PageSourceSearch

https://www.ifs.com/_next/static/chunks/06s9636a.yvu2.js?dpl=dpl_FqQThUhtGKSucg5RwazK6hPD979W

js ifs.com collected 2026-09-24 09:21:34 UTC 1,743,776 bytes, 178 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,702961,(e,t,r)=>{"use strict";function i(){var e=Object.create(null),t=0,r=0,i=0,n=!1;function a(t){i--,delete e[t]}this.put=function(t,r,s,o){if(n&&console.log("caching: %s = %j (@%s)",t,r,s),void 0!==s&&("number"!=typeof s||isNaN(s)||s<=0))throw Error("Cache timeout must be a positive number");if(void 0!==o&&"function"!=typeof o)throw Error("Cache timeout callback must be a function");var l=e[t];l?clearTimeout(l.timeout):i++;var c={value:r,expire:s+Date.now()};return isNaN(c.expire)||(c.timeout=setTimeout((function(){a(t),o&&o(t,r)}).bind(this),s)),e[t]=c,r},this.del=function(t){var r=!0,i=e[t];return i?(clearTimeout(i.timeout),!isNaN(i.expire)&&i.expire<Date.now()&&(r=!1)):r=!1,r&&a(t),r},this.clear=function(){for(var a in e)clearTimeout(e[a].timeout);i=0,e=Object.create(null),n&&(t=0,r=0)},this.get=function(a){var s=e[a];if(void 0!==s)if(isNaN(s.expire)||s.expire>=Date.now())return n&&t++,s.value;else n&&r++,i--,delete e[a];else n&&r++;return null},this.size=function(){return i},this.memsize=function(){var t,r=0;for(t in e)r++;return r},this.debug=function(e){n=e},this.hits=function(){return t},this.misses=function(){return r},this.keys=function(){return Object.keys(e)},this.exportJson=function(){var t={};for(var r in e){var i=e[r];t[r]={value:i.value,expire:i.expire||"NaN"}}return JSON.stringify(t)},this.importJson=function(t,r){var i=JSON.parse(t),a=Date.now(),s=r&&r.skipDuplicates;for(var o in i)if(i.hasOwnProperty(o)){if(s&&e[o]){n&&console.log("Skipping duplicate imported key '%s'",o);continue}var l=i[o],c=l.expire-a;if(c<=0){this.del(o);continue}c=c>0?c:void 0,this.put(o,l.value,c)}return this.size()}}t.exports=new i,t.exports.Cache=i},320502,(e,t,r)=>{var i="u">typeof globalThis&&globalThis||"u">typeof self&&self||e.g,n=function(){function e(){this.fetch=!1,this.DOMException=i.DOMException}return e.prototype=i,new e}();(function(t){var r=void 0!==n&&n||"u">typeof self&&self||e.g||{},i={searchParams:"URLSearchParams"in r,iterable:"Symbol"in r&&"iterator"in Symbol,blob:"FileReader"in r&&"Blob"in r&&function(){try{return new Blob,!0}catch(e){return!1}}(),formData:"FormData"in r,arrayBuffer:"ArrayBuffer"in r};if(i.arrayBuffer)var a=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],s=ArrayBuffer.isView||function(e){return e&&a.indexOf(Object.prototype.toString.call(e))>-1};function o(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(e)||""===e)throw TypeError('Invalid character in header field name: "'+e+'"');return e.toLowerCase()}function l(e){return"string"!=typeof e&&(e=String(e)),e}function c(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return i.iterable&&(t[Symbol.iterator]=function(){return t}),t}function u(e){this.map={},e instanceof u?e.forEach(function(e,t){this.append(t,e)},this):Array.isArray(e)?e.forEach(function(e){if(2!=e.length)throw TypeError("Headers constructor: expected name/value pair to be length 2, found"+e.length);this.append(e[0],e[1])},this):e&&Object.getOwnPropertyNames(e).forEach(function(t){this.append(t,e[t])},this)}function d(e){if(!e._noBody){if(e.bodyUsed)return Promise.reject(TypeError("Already read"));e.bodyUsed=!0}}function p(e){return new Promise(function(t,r){e.onload=function(){t(e.result)},e.onerror=function(){r(e.error)}})}function h(e){var t=new FileReader,r=p(t);return t.readAsArrayBuffer(e),r}function f(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function g(){return this.bodyUsed=!1,this._initBody=function(e){if(this.bodyUsed=this.bodyUsed,this._bodyInit=e,e)if("string"==typeof e)this._bodyText=e;else if(i.blob&&Blob.prototype.isPrototypeOf(e))this._bodyBlob=e;else if(i.formData&&FormData.prototype.isPrototypeOf(e))this._bodyFormData=e;else if(i.searchParams&&URLSearchParams.prototype.isPrototypeOf(e))this._bodyText=e.toString();else{var t;i.arrayBuffer&&i.blob&&(t=e)&&DataView.prototype.isPrototypeOf(t)?(this._bodyArrayBuffer=f(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):i.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(e)||s(e))?this._bodyArrayBuffer=f(e):this._bodyText=e=Object.prototype.toString.call(e)}else this._noBody=!0,this._bodyText="";!this.headers.get("content-type")&&("string"==typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):i.searchParams&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},i.blob&&(this.blob=function(){var e=d(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(!this._bodyFormData)return Promise.resolve(new Blob([this._bodyText]));throw Error("could not read FormData body as blob")}),this.arrayBuffer=function(){if(this._bodyArrayBuffer){var e=d(this);return e||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer))}if(i.blob)return this.blob().then(h);throw Error("could not read as ArrayBuffer")},this.text=function(){var e,t,r,i,n,a=d(this);if(a)return a;
1if(this._bodyBlob)return e=this._bodyBlob,r=p(t=new FileReader),n=(i=/charset=([A-Za-z0-9_-]+)/.exec(e.type))?i[1]:"utf-8",t.readAsText(e,n),r;if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),r=Array(t.length),i=0;i<t.length;i++)r[i]=String.fromCharCode(t[i]);return r.join("")}(this._bodyArrayBuffer));if(!this._bodyFormData)return Promise.resolve(this._bodyText);throw Error("could not read FormData body as text")},i.formData&&(this.formData=function(){return this.text().then(b)}),this.json=function(){return this.text().then(JSON.parse)},this}u.prototype.append=function(e,t){e=o(e),t=l(t);var r=this.map[e];this.map[e]=r?r+", "+t:t},u.prototype.delete=function(e){delete this.map[o(e)]},u.prototype.get=function(e){return e=o(e),this.has(e)?this.map[e]:null},u.prototype.has=function(e){return this.map.hasOwnProperty(o(e))},u.prototype.set=function(e,t){this.map[o(e)]=l(t)},u.prototype.forEach=function(e,t){for(var r in this.map)this.map.hasOwnProperty(r)&&e.call(t,this.map[r],r,this)},u.prototype.keys=function(){var e=[];return this.forEach(function(t,r){e.push(r)}),c(e)},u.prototype.values=function(){var e=[];return this.forEach(function(t){e.push(t)}),c(e)},u.prototype.entries=function(){var e=[];return this.forEach(function(t,r){e.push([r,t])}),c(e)},i.iterable&&(u.prototype[Symbol.iterator]=u.prototype.entries);var m=["CONNECT","DELETE","GET","HEAD","OPTIONS","PATCH","POST","PUT","TRACE"];function y(e,t){if(!(this instanceof y))throw TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');var i,n,a=(t=t||{}).body;if(e instanceof y){if(e.bodyUsed)throw TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new u(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,a||null==e._bodyInit||(a=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||"same-origin",(t.headers||!this.headers)&&(this.headers=new u(t.headers)),this.method=(n=(i=t.method||this.method||"GET").toUpperCase(),m.indexOf(n)>-1?n:i),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal||function(){if("AbortController"in r)return new AbortController().signal}(),this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&a)throw TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(a),("GET"===this.method||"HEAD"===this.method)&&("no-store"===t.cache||"no-cache"===t.cache)){var s=/([?&])_=[^&]*/;s.test(this.url)?this.url=this.url.replace(s,"$1_="+new Date().getTime()):this.url+=(/\?/.test(this.url)?"&":"?")+"_="+new Date().getTime()}}function b(e){var t=new FormData;return e.trim().split("&").forEach(function(e){if(e){var r=e.split("="),i=r.shift().replace(/\+/g," "),n=r.join("=").replace(/\+/g," ");t.append(decodeURIComponent(i),decodeURIComponent(n))}}),t}function v(e,t){if(!(this instanceof v))throw TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');if(t||(t={}),this.type="default",this.status=void 0===t.status?200:t.status,this.status<200||this.status>599)throw RangeError("Failed to construct 'Response': The status provided (0) is outside the range [200, 599].");this.ok=this.status>=200&&this.status<300,this.statusText=void 0===t.statusText?"":""+t.statusText,this.headers=new u(t.headers),this.url=t.url||"",this._initBody(e)}y.prototype.clone=function(){return new y(this,{body:this._bodyInit})},g.call(y.prototype),g.call(v.prototype),v.prototype.clone=function(){return new v(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new u(this.headers),url:this.url})},v.error=function(){var e=new v(null,{status:200,statusText:""});return e.ok=!1,e.status=0,e.type="error",e};var x=[301,302,303,307,308];v.redirect=function(e,t){if(-1===x.indexOf(t))throw RangeError("Invalid status code");return new v(null,{status:t,headers:{location:e}})},t.DOMException=r.DOMException;try{new t.DOMException}catch(e){t.DOMException=function(e,t){this.message=e,this.name=t;var r=Error(e);this.stack=r.stack},t.DOMException.prototype=Object.create(Error.prototype),t.DOMException.prototype.constructor=t.DOMException}function _(e,n){return new Promise(function(a,s){var c=new y(e,n);if(c.signal&&c.signal.aborted)return s(new t.DOMException("Aborted","AbortError"));var d=new XMLHttpRequest;function p(){d.abort()}if(d.onload=function(){var e,t,r={statusText:d.statusText,headers:(e=d.getAllResponseHeaders()||"",t=new u,e.replace(/\r?\n[\t ]+/g," ").split("\r").map(function(e){return 0===e.indexOf("\n")?e.substr(1,e.length):e}
1).forEach(function(e){var r=e.split(":"),i=r.shift().trim();if(i){var n=r.join(":").trim();try{t.append(i,n)}catch(e){console.warn("Response "+e.message)}}}),t)};0===c.url.indexOf("file://")&&(d.status<200||d.status>599)?r.status=200:r.status=d.status,r.url="responseURL"in d?d.responseURL:r.headers.get("X-Request-URL");var i="response"in d?d.response:d.responseText;setTimeout(function(){a(new v(i,r))},0)},d.onerror=function(){setTimeout(function(){s(TypeError("Network request failed"))},0)},d.ontimeout=function(){setTimeout(function(){s(TypeError("Network request timed out"))},0)},d.onabort=function(){setTimeout(function(){s(new t.DOMException("Aborted","AbortError"))},0)},d.open(c.method,function(e){try{return""===e&&r.location.href?r.location.href:e}catch(t){return e}}(c.url),!0),"include"===c.credentials?d.withCredentials=!0:"omit"===c.credentials&&(d.withCredentials=!1),"responseType"in d&&(i.blob?d.responseType="blob":i.arrayBuffer&&(d.responseType="arraybuffer")),n&&"object"==typeof n.headers&&!(n.headers instanceof u||r.Headers&&n.headers instanceof r.Headers)){var h=[];Object.getOwnPropertyNames(n.headers).forEach(function(e){h.push(o(e)),d.setRequestHeader(e,l(n.headers[e]))}),c.headers.forEach(function(e,t){-1===h.indexOf(t)&&d.setRequestHeader(t,e)})}else c.headers.forEach(function(e,t){d.setRequestHeader(t,e)});c.signal&&(c.signal.addEventListener("abort",p),d.onreadystatechange=function(){4===d.readyState&&c.signal.removeEventListener("abort",p)}),d.send(void 0===c._bodyInit?null:c._bodyInit)})}_.polyfill=!0,r.fetch||(r.fetch=_,r.Headers=u,r.Request=y,r.Response=v),t.Headers=u,t.Request=y,t.Response=v,t.fetch=_,Object.defineProperty(t,"__esModule",{value:!0})})({}),n.fetch.ponyfill=!0,delete n.fetch.polyfill;var a=i.fetch?i:n;(r=a.fetch).default=a.fetch,r.fetch=a.fetch,r.Headers=a.Headers,r.Request=a.Request,r.Response=a.Response,t.exports=r},445510,e=>{"use strict";var t=e.i(122707),r=e.i(168383);let i=(e=t.constants.SITECORE_EDGE_PLATFORM_URL_DEFAULT)=>(0,r.normalizeUrl)(e);e.s(["getEdgeProxyContentUrl",0,(e=t.constants.SITECORE_EDGE_PLATFORM_URL_DEFAULT)=>`${i(e)}/v1/content/api/graphql/v1`,"getEdgeProxyFormsUrl",0,(e,r,n=t.constants.SITECORE_EDGE_PLATFORM_URL_DEFAULT)=>`${i(n)}/v1/forms/publisher/${r}?sitecoreContextId=${e}`])},829126,761749,e=>{"use strict";let t="_site_";e.s(["SITE_KEY",0,"sc_site","getSiteRewrite",0,function(e,r){let i=e.startsWith("/")?e:"/"+e;return`/${t}${r.siteName}${i}`},"getSiteRewriteData",0,function(e,r){let i={siteName:r},n=(e.endsWith("/")?e:e+"/").match(`${t}(.*?)\\/`);return n&&""!==n[1]&&(i.siteName=n[1]),i},"normalizeSiteRewrite",0,function(e){let r=e.match(`${t}.*?(?:\\/|$)`);return null===r?e:e.replace(r[0],"")}],829126);let r=JSON,i=/\r\n|[\n\r]/g;function n(e,t){let r=0,n=1;
1for(let a of e.body.matchAll(i)){if("number"==typeof a.index||function(e){if(!e)throw Error("Unexpected invariant triggered.")}(!1),a.index>=t)break;r=a.index+a[0].length,n+=1}return{line:n,column:t+1-r}}function a(e,t){let r=e.locationOffset.column-1,i="".padStart(r)+e.body,n=t.line-1,a=e.locationOffset.line-1,o=t.line+a,l=1===t.line?r:0,c=t.column+l,u=`${e.name}:${o}:${c}
2`,d=i.split(/\r\n|[\n\r]/g),p=d[n];if(p.length>120){let e=Math.floor(c/80),t=[];for(let e=0;e<p.length;e+=80)t.push(p.slice(e,e+80));return u+s([[`${o} |`,t[0]],...t.slice(1,e+1).map(e=>["|",e]),["|","^".padStart(c%80)],["|",t[e+1]]])}return u+s([[`${o-1} |`,d[n-1]],[`${o} |`,p],["|","^".padStart(c)],[`${o+1} |`,d[n+1]]])}function s(e){let t=e.filter(([e,t])=>void 0!==t),r=Math.max(...t.map(([e])=>e.length));return t.map(([e,t])=>e.padStart(r)+(t?" "+t:"")).join("\n")}class o extends Error{constructor(e,...t){var r,i,a;const{nodes:s,source:c,positions:u,path:d,originalError:p,extensions:h}=function(e){let t=e[0];return null==t||"kind"in t||"length"in t?{nodes:t,source:e[1],positions:e[2],path:e[3],originalError:e[4],extensions:e[5]}:t}(t);super(e),this.name="GraphQLError",this.path=null!=d?d:void 0,this.originalError=null!=p?p:void 0,this.nodes=l(Array.isArray(s)?s:s?[s]:void 0);const f=l(null==(r=this.nodes)?void 0:r.map(e=>e.loc).filter(e=>null!=e));this.source=null!=c?c:null==f||null==(i=f[0])?void 0:i.source,this.positions=null!=u?u:null==f?void 0:f.map(e=>e.start),this.locations=u&&c?u.map(e=>n(c,e)):null==f?void 0:f.map(e=>n(e.source,e.start));const g=!function(e){return"object"==typeof e&&null!==e}(null==p?void 0:p.extensions)||null==p?void 0:p.extensions;this.extensions=null!=(a=null!=h?h:g)?a:Object.create(null),Object.defineProperties(this,{message:{writable:!0,enumerable:!0},name:{enumerable:!1},nodes:{enumerable:!1},source:{enumerable:!1},positions:{enumerable:!1},originalError:{enumerable:!1}}),null!=p&&p.stack?Object.defineProperty(this,"stack",{value:p.stack,writable:!0,configurable:!0}):Error.captureStackTrace?Error.captureStackTrace(this,o):Object.defineProperty(this,"stack",{value:Error().stack,writable:!0,configurable:!0})}get[Symbol.toStringTag](){return"GraphQLError"}toString(){let e=this.message;if(this.nodes)for(let r of this.nodes){var t;r.loc&&(e+="\n\n"+a((t=r.loc).source,n(t.source,t.start)))}else if(this.source&&this.locations)for(let t of this.locations)e+="\n\n"+a(this.source,t);return e}toJSON(){let e={message:this.message};return null!=this.locations&&(e.locations=this.locations),null!=this.path&&(e.path=this.path),null!=this.extensions&&Object.keys(this.extensions).length>0&&(e.extensions=this.extensions),e}}function l(e){return void 0===e||0===e.length?void 0:e}function c(e,t,r){return new o(`Syntax Error: ${r}`,{source:e,positions:[t]})}class u{constructor(e,t,r){this.start=e.start,this.end=t.end,this.startToken=e,this.endToken=t,this.source=r}get[Symbol.toStringTag](){return"Location"}toJSON(){return{start:this.start,end:this.end}}}class d{constructor(e,t,r,i,n,a){this.kind=e,this.start=t,this.end=r,this.line=i,this.column=n,this.value=a,this.prev=null,this.next=null}get[Symbol.toStringTag](){return"Token"}toJSON(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}}}let p={Name:[],Document:["definitions"],OperationDefinition:["description","name","variableDefinitions","directives","selectionSet"],VariableDefinition:["description","variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["description","name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["description","directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","interfaces","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","locations"],SchemaExtension:["directives","operationTypes"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","interfaces","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"],TypeCoordinate:["name"],MemberCoordinate:["name","memberName"],ArgumentCoordinate:["name","fieldName","argumentName"],DirectiveCoordinate:["name"],DirectiveArgumentCoordinate:["name","argumentName"]},h=new Set(Object.keys(p));function f(e){let t=null==e?void 0:e.kind;return"string"==typeof t&&h.has(t)}function g(e){return 9===e||32===e}function m(e){return e>=48&&e<=57}function y(e){return e>=97&&e<=122||e>=65&&e<=90}function b(e){return y(e)||95===e}(K=Z||(Z={})).QUERY="query",K.MUTATION="mutation",K.SUBSCRIPTION="subscription",(Y=ee||(ee={})).QUERY="QUERY",Y.MUTATION="MUTATION",Y.SUBSCRIPTION="SUBSCRIPTION",Y.FIELD="FIELD",Y.FRAGMENT_DEFINITION="FRAGMENT_DEFINITION",Y.FRAGMENT_SPREAD="FRAGMENT_SPREAD",Y.INLINE_FRAGMENT="INLINE_FRAGMENT",Y.VARIABLE_DEFINITION="VARIABLE_DEFINITION",Y.SCHEMA="SCHEMA",Y.SCALAR="SCALAR",Y.OBJECT="OBJECT",Y.FIELD_DEFINITION="FIELD_DEFINITION",Y.ARGUMENT_DEFINITION="ARGUMENT_DEFINITION",Y.INTERFACE="INTERFACE",Y.UNION="UNION",Y.ENUM="ENUM",Y.ENUM_VALUE="ENUM_VALUE",Y.INPUT_OBJECT="INPUT_OBJECT",Y.INPUT_FIELD_DEFINITION="INPUT_FIELD_DEFINITION",(Q=et||(et={})).NAME="Name",Q.DOCUMENT="Document",Q.OPERATION_DEFINITION="OperationDefinition",Q.VARIABLE_DEFINITION="VariableDefinition",Q.SELECTION_SET="SelectionSet",Q.FIELD="Field",Q.ARGUMENT="Argument",Q.FRAGMENT_SPREAD="FragmentSpread",Q.INLINE_FRAGMENT="InlineFragment",Q.FRAGMENT_DEFINITION="FragmentDefinition",Q.VARIABLE="Variable",Q.INT="IntValue",Q.FLOAT="FloatValue",Q.STRING="Str
2ingValue",Q.BOOLEAN="BooleanValue",Q.NULL="NullValue",Q.ENUM="EnumValue",Q.LIST="ListValue",Q.OBJECT="ObjectValue",Q.OBJECT_FIELD="ObjectField",Q.DIRECTIVE="Directive",Q.NAMED_TYPE="NamedType",Q.LIST_TYPE="ListType",Q.NON_NULL_TYPE="NonNullType",Q.SCHEMA_DEFINITION="SchemaDefinition",Q.OPERATION_TYPE_DEFINITION="OperationTypeDefinition",Q.SCALAR_TYPE_DEFINITION="ScalarTypeDefinition",Q.OBJECT_TYPE_DEFINITION="ObjectTypeDefinition",Q.FIELD_DEFINITION="FieldDefinition",Q.INPUT_VALUE_DEFINITION="InputValueDefinition",Q.INTERFACE_TYPE_DEFINITION="InterfaceTypeDefinition",Q.UNION_TYPE_DEFINITION="UnionTypeDefinition",Q.ENUM_TYPE_DEFINITION="EnumTypeDefinition",Q.ENUM_VALUE_DEFINITION="EnumValueDefinition",Q.INPUT_OBJECT_TYPE_DEFINITION="InputObjectTypeDefinition",Q.DIRECTIVE_DEFINITION="DirectiveDefinition",Q.SCHEMA_EXTENSION="SchemaExtension",Q.SCALAR_TYPE_EXTENSION="ScalarTypeExtension",Q.OBJECT_TYPE_EXTENSION="ObjectTypeExtension",Q.INTERFACE_TYPE_EXTENSION="InterfaceTypeExtension",Q.UNION_TYPE_EXTENSION="UnionTypeExtension",Q.ENUM_TYPE_EXTENSION="EnumTypeExtension",Q.INPUT_OBJECT_TYPE_EXTENSION="InputObjectTypeExtension",Q.TYPE_COORDINATE="TypeCoordinate",Q.MEMBER_COORDINATE="MemberCoordinate",Q.ARGUMENT_COORDINATE="ArgumentCoordinate",Q.DIRECTIVE_COORDINATE="DirectiveCoordinate",Q.DIRECTIVE_ARGUMENT_COORDINATE="DirectiveArgumentCoordinate",(J=er||(er={})).SOF="<SOF>",J.EOF="<EOF>",J.BANG="!",J.DOLLAR="$",J.AMP="&",J.PAREN_L="(",J.PAREN_R=")",J.DOT=".",J.SPREAD="...",J.COLON=":",J.EQUALS="=",J.AT="@",J.BRACKET_L="[",J.BRACKET_R="]",J.BRACE_L="{",J.PIPE="|",J.BRACE_R="}",J.NAME="Name",J.INT="Int",J.FLOAT="Float",J.STRING="String",J.BLOCK_STRING="BlockString",J.COMMENT="Comment";class v{constructor(e){const t=new d(er.SOF,0,0,0,0);this.source=e,this.lastToken=t,this.token=t,this.line=1,this.lineStart=0}get[Symbol.toStringTag](){return"Lexer"}advance(){return this.lastToken=this.token,this.token=this.lookahead()}lookahead(){let e=this.token;if(e.kind!==er.EOF)do if(e.next)e=e.next;else{let t=function(e,t){let r=e.source.body,i=r.length,n=t;for(;n<i;){let t=r.charCodeAt(n);switch(t){case 65279:case 9:case 32:case 44:++n;continue;case 10:++n,++e.line,e.lineStart=n;continue;case 13:10===r.charCodeAt(n+1)?n+=2:++n,++e.line,e.lineStart=n;continue;case 35:return function(e,t){let r=e.source.body,i=r.length,n=t+1;for(;n<i;){let e=r.charCodeAt(n);if(10===e||13===e)break;if(x(e))++n;else if(_(r,n))n+=2;else break}return C(e,er.COMMENT,t,n,r.slice(t+1,n))}(e,n);case 33:return C(e,er.BANG,n,n+1);case 36:return C(e,er.DOLLAR,n,n+1);case 38:return C(e,er.AMP,n,n+1);case 40:return C(e,er.PAREN_L,n,n+1);case 41:return C(e,er.PAREN_R,n,n+1);case 46:if(46===r.charCodeAt(n+1)&&46===r.charCodeAt(n+2))return C(e,er.SPREAD,n,n+3);break;case 58:return C(e,er.COLON,n,n+1);case 61:return C(e,er.EQUALS,n,n+1);case 64:return C(e,er.AT,n,n+1);case 91:return C(e,er.BRACKET_L,n,n+1);case 93:return C(e,er.BRACKET_R,n,n+1);case 123:return C(e,er.BRACE_L,n,n+1);case 124:return C(e,er.PIPE,n,n+1);case 125:return C(e,er.BRACE_R,n,n+1);case 34:if(34===r.charCodeAt(n+1)&&34===r.charCodeAt(n+2))return function(e,t){let r=e.source.body,i=r.length,n=e.lineStart,a=t+3,s=a,o="",l=[];for(;a<i;){let i=r.charCodeAt(a);if(34===i&&34===r.charCodeAt(a+1)&&34===r.charCodeAt(a+2)){o+=r.slice(s,a),l.push(o);let i=C(e,er.BLOCK_STRING,t,a+3,(function(e){var t,r;let i=Number.MAX_SAFE_INTEGER,n=null,a=-1;for(let t=0;t<e.length;++t){let s=e[t],o=function(e){let t=0;for(;t<e.length&&g(e.charCodeAt(t));)++t;return t}(s);o!==s.length&&(n=null!=(r=n)?r:t,a=t,0!==t&&o<i&&(i=o))}return e.map((e,t)=>0===t?e:e.slice(i)).slice(null!=(t=n)?t:0,a+1)})(l).join("\n"));return e.line+=l.length-1,e.lineStart=n,i}if(92===i&&34===r.charCodeAt(a+1)&&34===r.charCodeAt(a+2)&&34===r.charCodeAt(a+3)){o+=r.slice(s,a),s=a+1,a+=4;continue}if(10===i||13===i){o+=r.slice(s,a),l.push(o),13===i&&10===r.charCodeAt(a+1)?a+=2:++a,o="",s=a,n=a;continue}if(x(i))++a;else if(_(r,a))a+=2;else throw c(e.source,a,`Invalid character within String: ${S(e,a)}.`)}throw c(e.source,a,"Unterminated string.")}(e,n);return function(e,t){let r=e.source.body,i=r.length,n=t+1,a=n,s="";for(;n<i;){let i=r.charCodeAt(n);if(34===i)return s+=r.slice(a,n),C(e,er.STRING,t,n+1,s);if(92===i){s+=r.slice(a,n);let t=117===r.charCodeAt(n+1)?123===r.charCodeAt(n+2)?function(e,t){let r=e.source.body,i=0,n=3;for(;n<12;){let e=r.charCodeAt(t+n++);if(125===e){if(n<5||!x(i))break;return{value:String.fromCodePoint(i),size:n}}if((i=i<<4|N(e))<0)break}throw c(e.source,t,`Invalid Unicode escape sequence: "${r.slice(t,t+n)}".`)}(e,n):function(e,t){let r=e.source.body,i=k(r,t+2);if(x(i))return{value:String.fromCodePoint(i),size:6};if(w(i)&&92===r.charCodeAt(t+6)&&117===r.charCodeAt(t+7)){let e=k(r,t+8);
2if(T(e))return{value:String.fromCodePoint(i,e),size:12}}throw c(e.source,t,`Invalid Unicode escape sequence: "${r.slice(t,t+6)}".`)}(e,n):function(e,t){let r=e.source.body;switch(r.charCodeAt(t+1)){case 34:return{value:'"',size:2};case 92:return{value:"\\",size:2};case 47:return{value:"/",size:2};case 98:return{value:"\b",size:2};case 102:return{value:"\f",size:2};case 110:return{value:"\n",size:2};case 114:return{value:"\r",size:2};case 116:return{value:"	",size:2}}throw c(e.source,t,`Invalid character escape sequence: "${r.slice(t,t+2)}".`)}(e,n);s+=t.value,n+=t.size,a=n;continue}if(10===i||13===i)break;if(x(i))++n;else if(_(r,n))n+=2;else throw c(e.source,n,`Invalid character within String: ${S(e,n)}.`)}throw c(e.source,n,"Unterminated string.")}(e,n)}if(m(t)||45===t)return function(e,t,r){let i=e.source.body,n=t,a=r,s=!1;if(45===a&&(a=i.charCodeAt(++n)),48===a){if(m(a=i.charCodeAt(++n)))throw c(e.source,n,`Invalid number, unexpected digit after 0: ${S(e,n)}.`)}else n=E(e,n,a),a=i.charCodeAt(n);if(46===a&&(s=!0,a=i.charCodeAt(++n),n=E(e,n,a),a=i.charCodeAt(n)),(69===a||101===a)&&(s=!0,(43===(a=i.charCodeAt(++n))||45===a)&&(a=i.charCodeAt(++n)),n=E(e,n,a),a=i.charCodeAt(n)),46===a||b(a))throw c(e.source,n,`Invalid number, expected digit but got: ${S(e,n)}.`);return C(e,s?er.FLOAT:er.INT,t,n,i.slice(t,n))}(e,n,t);if(b(t))return function(e,t){let r=e.source.body,i=r.length,n=t+1;for(;n<i;){var a;if(y(a=r.charCodeAt(n))||m(a)||95===a)++n;else break}return C(e,er.NAME,t,n,r.slice(t,n))}(e,n);throw c(e.source,n,39===t?"Unexpected single quote character ('), did you mean to use a double quote (\")?":x(t)||_(r,n)?`Unexpected character: ${S(e,n)}.`:`Invalid character: ${S(e,n)}.`)}return C(e,er.EOF,i,i)}(this,e.end);e.next=t,t.prev=e,e=t}while(e.kind===er.COMMENT)return e}}function x(e){return e>=0&&e<=55295||e>=57344&&e<=1114111}function _(e,t){return w(e.charCodeAt(t))&&T(e.charCodeAt(t+1))}function w(e){return e>=55296&&e<=56319}function T(e){return e>=56320&&e<=57343}function S(e,t){let r=e.source.body.codePointAt(t);if(void 0===r)return er.EOF;if(r>=32&&r<=126){let e=String.fromCodePoint(r);return'"'===e?"'\"'":`"${e}"`}return"U+"+r.toString(16).toUpperCase().padStart(4,"0")}function C(e,t,r,i,n){let a=e.line,s=1+r-e.lineStart;return new d(t,r,i,a,s,n)}function E(e,t,r){if(!m(r))throw c(e.source,t,`Invalid number, expected digit but got: ${S(e,t)}.`);let i=e.source.body,n=t+1;for(;m(i.charCodeAt(n));)++n;return n}function k(e,t){return N(e.charCodeAt(t))<<12|N(e.charCodeAt(t+1))<<8|N(e.charCodeAt(t+2))<<4|N(e.charCodeAt(t+3))}function N(e){return e>=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}function I(e,t){if(!e)throw Error(t)}function A(e,t){switch(typeof e){case"string":return JSON.stringify(e);case"function":return e.name?`[function ${e.name}]`:"[function]";case"object":return function(e,t){let r;if(null===e)return"null";if(t.includes(e))return"[Circular]";let i=[...t,e];if("function"==typeof e.toJSON){let t=e.toJSON();if(t!==e)return"string"==typeof t?t:A(t,i)}else if(Array.isArray(e)){var n,a,s=e,o=i;if(0===s.length)return"[]";if(o.length>2)return"[Array]";let t=Math.min(10,s.length),r=s.length-t,l=[];for(let e=0;e<t;++e)l.push(A(s[e],o));return 1===r?l.push("... 1 more item"):r>1&&l.push(`... ${r} more items`),"["+l.join(", ")+"]"}return n=e,a=i,0===(r=Object.entries(n)).length?"{}":a.length>2?"["+function(e){let t=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]$/,"");if("Object"===t&&"function"==typeof e.constructor){let t=e.constructor.name;if("string"==typeof t&&""!==t)return t}return t}(n)+"]":"{ "+r.map(([e,t])=>e+": "+A(t,a)).join(", ")+" }"}(e,t);default:return String(e)}}e.i(247167);let j=globalThis.process&&1?function(e,t){return e instanceof t}:function(e,t){if(e instanceof t)return!0;if("object"==typeof e&&null!==e){var r;let i=t.prototype[Symbol.toStringTag];if(i===(Symbol.toStringTag in e?e[Symbol.toStringTag]:null==(r=e.constructor)?void 0:r.name)){let t=A(e,[]);throw Error(`Cannot use ${i} "${t}" from another module or realm.
3
4Ensure that there is only one instance of "graphql" in the node_modules
5directory. If different versions of "graphql" are the dependencies of other
6relied on modules, use "resolutions" to ensure only one version is installed.
7
8https://yarnpkg.com/en/docs/selective-version-resolutions
9
10Duplicate "graphql" modules cannot be used at the same time since different
11versions may have different capabilities and behavior. The data from one
12version used in the function from another could produce confusing and
13spurious results.`)}}return!1};class P{constructor(e,t="GraphQL request",r={line:1,column:1}){"string"==typeof e||I(!1,`Body must be a string. Received: ${function(e){return A(e,[])}(e)}.`),this.body=e,this.name=t,this.locationOffset=r,this.locationOffset.line>0||I(!1,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||I(!1,"column in locationOffset is 1-indexed and must be positive.")}get[Symbol.toStringTag](){return"Source"}}class O{constructor(e,t={}){const{lexer:r,...i}=t;if(r)this._lexer=r;else{const t=!function(e){return j(e,P)}(e)?new P(e):e;this._lexer=new v(t)}this._options=i,this._tokenCounter=0}get tokenCount(){return this._tokenCounter}parseName(){let e=this.expectToken(er.NAME);return this.node(e,{kind:et.NAME,value:e.value})}parseDocument(){return this.node(this._lexer.token,{kind:et.DOCUMENT,definitions:this.many(er.SOF,this.parseDefinition,er.EOF)})}parseDefinition(){if(this.peek(er.BRACE_L))return this.parseOperationDefinition();let e=this.peekDescription(),t=e?this._lexer.lookahead():this._lexer.token;if(e&&t.kind===er.BRACE_L)throw c(this._lexer.source,this._lexer.token.start,"Unexpected description, descriptions are not supported on shorthand queries.");if(t.kind===er.NAME){switch(t.value){case"schema":return this.parseSchemaDefinition();case"scalar":return this.parseScalarTypeDefinition();case"type":return this.parseObjectTypeDefinition();case"interface":return this.parseInterfaceTypeDefinition();case"union":return this.parseUnionTypeDefinition();case"enum":return this.parseEnumTypeDefinition();case"input":return this.parseInputObjectTypeDefinition();case"directive":return this.parseDirectiveDefinition()}switch(t.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition()}if(e)throw c(this._lexer.source,this._lexer.token.start,"Unexpected description, only GraphQL definitions supp
13ort descriptions.");if("extend"===t.value)return this.parseTypeSystemExtension()}throw this.unexpected(t)}parseOperationDefinition(){let e,t=this._lexer.token;if(this.peek(er.BRACE_L))return this.node(t,{kind:et.OPERATION_DEFINITION,operation:Z.QUERY,description:void 0,name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet()});let r=this.parseDescription(),i=this.parseOperationType();return this.peek(er.NAME)&&(e=this.parseName()),this.node(t,{kind:et.OPERATION_DEFINITION,operation:i,description:r,name:e,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseOperationType(){let e=this.expectToken(er.NAME);switch(e.value){case"query":return Z.QUERY;case"mutation":return Z.MUTATION;case"subscription":return Z.SUBSCRIPTION}throw this.unexpected(e)}parseVariableDefinitions(){return this.optionalMany(er.PAREN_L,this.parseVariableDefinition,er.PAREN_R)}parseVariableDefinition(){return this.node(this._lexer.token,{kind:et.VARIABLE_DEFINITION,description:this.parseDescription(),variable:this.parseVariable(),type:(this.expectToken(er.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(er.EQUALS)?this.parseConstValueLiteral():void 0,directives:this.parseConstDirectives()})}parseVariable(){let e=this._lexer.token;return this.expectToken(er.DOLLAR),this.node(e,{kind:et.VARIABLE,name:this.parseName()})}parseSelectionSet(){return this.node(this._lexer.token,{kind:et.SELECTION_SET,selections:this.many(er.BRACE_L,this.parseSelection,er.BRACE_R)})}parseSelection(){return this.peek(er.SPREAD)?this.parseFragment():this.parseField()}parseField(){let e,t,r=this._lexer.token,i=this.parseName();return this.expectOptionalToken(er.COLON)?(e=i,t=this.parseName()):t=i,this.node(r,{kind:et.FIELD,alias:e,name:t,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(er.BRACE_L)?this.parseSelectionSet():void 0})}parseArguments(e){let t=e?this.parseConstArgument:this.parseArgument;return this.optionalMany(er.PAREN_L,t,er.PAREN_R)}parseArgument(e=!1){let t=this._lexer.token,r=this.parseName();return this.expectToken(er.COLON),this.node(t,{kind:et.ARGUMENT,name:r,value:this.parseValueLiteral(e)})}parseConstArgument(){return this.parseArgument(!0)}parseFragment(){let e=this._lexer.token;this.expectToken(er.SPREAD);let t=this.expectOptionalKeyword("on");return!t&&this.peek(er.NAME)?this.node(e,{kind:et.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1)}):this.node(e,{kind:et.INLINE_FRAGMENT,typeCondition:t?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentDefinition(){let e=this._lexer.token,t=this.parseDescription();return(this.expectKeyword("fragment"),!0===this._options.allowLegacyFragmentVariables)?this.node(e,{kind:et.FRAGMENT_DEFINITION,description:t,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()}):this.node(e,{kind:et.FRAGMENT_DEFINITION,description:t,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentName(){if("on"===this._lexer.token.value)throw this.unexpected();return this.parseName()}parseValueLiteral(e){let t=this._lexer.token;switch(t.kind){case er.BRACKET_L:return this.parseList(e);case er.BRACE_L:return this.parseObject(e);case er.INT:return this.advanceLexer(),this.node(t,{kind:et.INT,value:t.value});case er.FLOAT:return this.advanceLexer(),this.node(t,{kind:et.FLOAT,value:t.value});case er.STRING:case er.BLOCK_STRING:return this.parseStringLiteral();case er.NAME:switch(this.advanceLexer(),t.value){case"true":return this.node(t,{kind:et.BOOLEAN,value:!0});case"false":return this.node(t,{kind:et.BOOLEAN,value:!1});case"null":return this.node(t,{kind:et.NULL});default:return this.node(t,{kind:et.ENUM,value:t.value})}case er.DOLLAR:if(e){if(this.expectToken(er.DOLLAR),this._lexer.token.kind===er.NAME){let e=this._lexer.token.value;throw c(this._lexer.source,t.start,`Unexpected variable "$${e}" in constant value.`)}throw this.unexpected(t)}return this.parseVariable();default:throw this.unexpected()}}parseConstValueLiteral(){return this.parseValueLiteral(!0)}parseStringLiteral(){let e=this._lexer.token;return this.advanceLexer(),this.node(e,{kind:et.STRING,value:e.value,block:e.kind===er.BLOCK_STRING})}parseList(e){let t=()=>this.parseValueLiteral(e);return this.node(this._lexer.token,{kind:et.LIST,values:this.any(er.BRACKET_L,t,er.BRACKET_R)})}parseObject(e){let t=()=>this.parseObjectField(e);return this.node(this._lexer.token,{kind:et.OBJECT,fields:this.any(er.BRACE_L,t,er.BRACE_R)})}parseObjectField(e){let t=this._lexer.token,r=this.parseName();return this.expectToken(er.COLON),this.node(t,{kind:et.OBJECT_FIELD,name:r,value:this.parseValueLiteral(e)})}parseDirectives(e){let t=[];for(;this.peek(er.AT);)t.push(this.parseDirective(e));return t}parseConstDirectives(){return this.parseDirectives(!0)}parseDirective(e){let t=this._lexer.token;return this.expectToken(er.AT),this.node(t,{kind:et.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(e)})}parseTypeReference(){let e,t=this._lexer.token;if(this.expectOptionalToken(er.BRACKET_L)){let r=this.parseTypeReference();this.expectToken(er.BRACKET_R),e=this.node(t,{kind:et.LIST_TYPE,type:r})}else e=this.parseNamedType();return this.expectOptionalToken(er.BANG)?this.node(t,{kind:et.NON_NULL_TYPE,type:e}):e}parseNamedType(){return this.node(this._lexer.token,{kind:et.NAMED_TYPE,name:this.parseName()})}peekDescription(){return this.peek(er.STRING)||this.peek(er.BLOCK_STRING)}parseDescription(){if(this.peekDescription())return this.parseStringLiteral()}parseSchemaDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("schema");let r=this.parseConstDirectives(),i=this.many(er.BRACE_L,this.parseOperationTypeDefinition,er.BRACE_R);return this.node(e,{kind:et.SCHEMA_DEFINITION,description:t,directives:r,operationTypes:i})}parseOperationTypeDefinition(){let e=this._lexer.token,t=this.parseOperationType();this.expectToken(er.COLON);let r=this.parseNamedType();return this.node(e,{kind:et.OPERATION_TYPE_DEFINITION,operation:t,type:r})}parseScalarTypeDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("scalar");let r=this.parseName(),i=this.parseConstDirectives();return this.node(e,{kind:et.SCALAR_TYPE_DEFINITION,description:t,name:r,directives:i})}parseObjectTypeDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("type");let r=this.parseName(),i=this.parseImplementsInterfaces(),n=this.parseConstDirectives(),a=this.parseFieldsDefinition();return this.node(e,{kind:et.OBJECT_TYPE_DEFINITION,description:t,name:r,interfaces:i,directives:n,fields:a})}parseImplementsInterfaces(){return this.expectOptionalKeyword("implements")?this.delimitedMany(er.AMP,this.parseNamedType):[]}parseFieldsDefinition(){return this.optionalMany(er.BRACE_L,this.parseFieldDefinition,er.BRACE_R)}parseFieldDefinition(){let e=this._lexer.token,t=this.parseDescription(),r=this.parseName(),i=this.parseArgumentDefs();this.expectToken(er.COLON);let n=this.parseTypeReference(),a=this.parseConstDirectives();return this.node(e,{kind:et.FIELD_DEFINITION,description:t,name:r,arguments:i,type:n,directives:a})}parseArgumentDefs(){return this.optionalMany(er.PAREN_L,this.parseInputValueDef,er.PAREN_R)}parseInputValueDef(){let e,t=this._lexer.token,r=this.parseDescription(),i=this.parseName();this.expectToken(er.COLON);let n=this.parseTypeReference();this.expectOptionalToken(er.EQUALS)&&(e=this.parseConstValueLiteral());let a=this.parseConstDirectives();return this.node(t,{kind:et.INPUT_VALUE_DEFINITION,description:r,name:i,type:n,defaultValue:e,directives:a})}parseInterfaceTypeDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("interface");let r=this.parseName(),i=this.parseImplementsInterfaces(),n=this.parseConstDirectives(),a=this.parseFieldsDefinition();return this.node(e,{kind:et.INTERFACE_TYPE_DEFINITION,description:t,name:r,interfaces:i,directives:n,fields:a})}parseUnionTypeDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("union");let r=this.parseName(),i=this.parseConstDirectives(),n=this.parseUnionMemberTypes();return this.node(e,{kind:et.UNION_TYPE_DEFINITION,description:t,name:r,directives:i,types:n})}parseUnionMemberTypes(){return this.expectOptionalToken(er.EQUALS)?this.delimitedMany(er.PIPE,this.parseNamedType):[]}parseEnumTypeDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("enum");let r=this.parseName(),i=this.parseConstDirectives(),n=this.parseEnumValuesDefinition();return this.node(e,{kind:et.ENUM_TYPE_DEFINITION,description:t,name:r,directives:i,values:n})}parseEnumValuesDefinition(){return this.optionalMany(er.BRACE_L,this.parseEnumValueDefinition,er.BRACE_R)}parseEnumValueDefinition(){let e=this._lexer.token,t=this.parseDescription(),r=this.parseEnumValueName(),i=this.parseConstDirectives();return this.node(e,{kind:et.ENUM_VALUE_DEFINITION,description:t,name:r,directives:i})}parseEnumValueName(){if("true"===this._lexer.token.value||"false"===this._lexer.token.value||"null"===this._lexer.token.value)throw c(this._lexer.source,this._lexer.token.start,`${L(this._lexer.token)} is reserved and cannot be used for an enum value.`);return this.parseName()}parseInputObjectTypeDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("input");let r=this.parseName(),i=this.parseConstDirectives(),n=this.parseInputFieldsDefinition();return this.node(e,{kind:et.INPUT_OBJECT_TYPE_DEFINITION,description:t,name:r,directives:i,fields:n})}parseInputFieldsDefinition(){return this.optionalMany(er.BRACE_L,this.parseInputValueDef,er.BRACE_R)}parseTypeSystemExtension(){let e=this._lexer.lookahead();if(e.kind===er.NAME)switch(e.value){case"schema":return this.parseSchemaExtension();case"scalar":return this.parseScalarTypeExtension();case"type":return this.parseObjectTypeExtension();case"interface":return this.parseInterfaceTypeExtension();case"union":return this.parseUnionTypeExtension();case"enum":return this.parseEnumTypeExtension();case"input":return this.parseInputObjectTypeExtension()}throw this.unexpected(e)}parseSchemaExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");let t=this.parseConstDirectives(),r=this.optionalMany(er.BRACE_L,this.parseOperationTypeDefinition,er.BRACE_R);if(0===t.length&&0===r.length)throw this.unexpected();return this.node(e,{kind:et.SCHEMA_EXTENSION,directives:t,operationTypes:r})}parseScalarTypeExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");let t=this.parseName(),r=this.parseConstDirectives();if(0===r.length)throw this.unexpected();return this.node(e,{kind:et.SCALAR_TYPE_EXTENSION,name:t,directives:r})}parseObjectTypeExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");let t=this.parseName(),r=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),n=this.parseFieldsDefinition();if(0===r.length&&0===i.length&&0===n.length)throw this.unexpected();return this.node(e,{kind:et.OBJECT_TYPE_EXTENSION,name:t,interfaces:r,directives:i,fields:n})}parseInterfaceTypeExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");let t=this.parseName(),r=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),n=this.parseFieldsDefinition();if(0===r.length&&0===i.length&&0===n.length)throw this.unexpected();return this.node(e,{kind:et.INTERFACE_TYPE_EXTENSION,name:t,interfaces:r,directives:i,fields:n})}parseUnionTypeExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");let t=this.parseName(),r=this.parseConstDirectives(),i=this.parseUnionMemberTypes();if(0===r.length&&0===i.length)throw this.unexpected();return this.node(e,{kind:et.UNION_TYPE_EXTENSION,name:t,directives:r,types:i})}parseEnumTypeExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");let t=this.parseName(),r=this.parseConstDirectives(),i=this.parseEnumValuesDefinition();if(0===r.length&&0===i.length)throw this.unexpected();return this.node(e,{kind:et.ENUM_TYPE_EXTENSION,name:t,directives:r,values:i})}parseInputObjectTypeExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");let t=this.parseName(),r=this.parseConstDirectives(),i=this.parseInputFieldsDefinition();if(0===r.length&&0===i.length)throw this.unexpected();return this.node(e,{kind:et.INPUT_OBJECT_TYPE_EXTENSION,name:t,directives:r,fields:i})}parseDirectiveDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("directive"),this.expectToken(er.AT);let r=this.parseName(),i=this.parseArgumentDefs(),n=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");let a=this.parseDirectiveLocations();return this.node(e,{kind:et.DIRECTIVE_DEFINITION,description:t,name:r,arguments:i,repeatable:n,locations:a})}parseDirectiveLocations(){return this.delimitedMany(er.PIPE,this.parseDirectiveLocation)}parseDirectiveLocation(){let e=this._lexer.token,t=this.parseName();if(Object.prototype.hasOwnProperty.call(ee,t.value))return t;throw this.unexpected(e)}parseSchemaCoordinate(){let e,t,r=this._lexer.token,i=this.expectOptionalToken(er.AT),n=this.parseName();return(!i&&this.expectOptionalToken(er.DOT)&&(e=this.parseName()),(i||e)&&this.expectOptionalToken(er.PAREN_L)&&(t=this.parseName(),this.expectToken(er.COLON),this.expectToken(er.PAREN_R)),i)?t?this.node(r,{kind:et.DIRECTIVE_ARGUMENT_COORDINATE,name:n,argumentName:t}):this.node(r,{kind:et.DIRECTIVE_COORDINATE,name:n}):e?t?this.node(r,{kind:et.ARGUMENT_COORDINATE,name:n,fieldName:e,argumentName:t}):this.node(r,{kind:et.MEMBER_COORDINATE,name:n,memberName:e}):this.node(r,{kind:et.TYPE_COORDINATE,name:n})}node(e,t){return!0!==this._options.noLocation&&(t.loc=new u(e,this._lexer.lastToken,this._lexer.source)),t}peek(e){return this._lexer.token.kind===e}expectToken(e){let t=this._lexer.token;if(t.kind===e)return this.advanceLexer(),t;throw c(this._lexer.source,t.start,`Expected ${D(e)}, found ${L(t)}.`)}expectOptionalToken(e){return this._lexer.token.kind===e&&(this.advanceLexer(),!0)}expectKeyword(e){let t=this._lexer.token;if(t.kind===er.NAME&&t.value===e)this.advanceLexer();else throw c(this._lexer.source,t.start,`Expected "${e}", found ${L(t)}.`)}expectOptionalKeyword(e){let t=this._lexer.token;return t.kind===er.NAME&&t.value===e&&(this.advanceLexer(),!0)}unexpected(e){let t=null!=e?e:this._lexer.token;return c(this._lexer.source,t.start,`Unexpected ${L(t)}.`)}any(e,t,r){this.expectToken(e);let i=[];for(;!this.expectOptionalToken(r);)i.push(t.call(this));return i}optionalMany(e,t,r){if(this.expectOptionalToken(e)){let e=[];do e.push(t.call(this));while(!this.expectOptionalToken(r))return e}return[]}many(e,t,r){this.expectToken(e);let i=[];do i.push(t.call(this));while(!this.expectOptionalToken(r))return i}delimitedMany(e,t){this.expectOptionalToken(e);let r=[];do r.push(t.call(this));while(this.expectOptionalToken(e))return r}advanceLexer(){let{maxTokens:e}=this._options,t=this._lexer.advance();if(t.kind!==er.EOF&&(++this._tokenCounter,void 0!==e&&this._tokenCounter>e))throw c(this._lexer.source,t.start,`Document contains more that ${e} tokens. Parsing aborted.`)}}function L(e){let t=e.value;return D(e.kind)+(null!=t?` "${t}"`:"")}function D(e){return e===er.BANG||e===er.DOLLAR||e===er.AMP||e===er.PAREN_L||e===er.PAREN_R||e===er.DOT||e===er.SPREAD||e===er.COLON||e===er.EQUALS||e===er.AT||e===er.BRACKET_L||e===er.BRACKET_R||e===er.BRACE_L||e===er.PIPE||e===er.BRACE_R?`"${e}"`:e}let R=/[\x00-\x1f\x22\x5c\x7f-\x9f]/g;function M(e){return B[e.charCodeAt(0)]}let B=["\\u0000","\\u0001","\\u0002","\\u0003","\\u0004","\\u0005","\\u0006","\\u0007","\\b","\\t","\\n","\\u000B","\\f","\\r","\\u000E","\\u000F","\\u0010","\\u0011","\\u0012","\\u0013","\\u0014","\\u0015","\\u0016","\\u0017","\\u0018","\\u0019","\\u001A","\\u001B","\\u001C","\\u001D","\\u001E
13","\\u001F","","",'\\"',"","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\\\","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\u007F","\\u0080","\\u0081","\\u0082","\\u0083","\\u0084","\\u0085","\\u0086","\\u0087","\\u0088","\\u0089","\\u008A","\\u008B","\\u008C","\\u008D","\\u008E","\\u008F","\\u0090","\\u0091","\\u0092","\\u0093","\\u0094","\\u0095","\\u0096","\\u0097","\\u0098","\\u0099","\\u009A","\\u009B","\\u009C","\\u009D","\\u009E","\\u009F"],U=Object.freeze({}),F={Name:{leave:e=>e.value},Variable:{leave:e=>"$"+e.name},Document:{leave:e=>$(e.definitions,"\n\n")},OperationDefinition:{leave(e){let t=W(e.variableDefinitions)?q("(\n",$(e.variableDefinitions,"\n"),"\n)"):q("(",$(e.variableDefinitions,", "),")"),r=q("",e.description,"\n")+$([e.operation,$([e.name,t]),$(e.directives," ")]," ");return("query"===r?"":r+" ")+e.selectionSet}},VariableDefinition:{leave:({variable:e,type:t,defaultValue:r,directives:i,description:n})=>q("",n,"\n")+e+": "+t+q(" = ",r)+q(" ",$(i," "))},SelectionSet:{leave:({selections:e})=>z(e)},Field:{leave({alias:e,name:t,arguments:r,directives:i,selectionSet:n}){let a=q("",e,": ")+t,s=a+q("(",$(r,", "),")");return s.length>80&&(s=a+q("(\n",H($(r,"\n")),"\n)")),$([s,$(i," "),n]," ")}},Argument:{leave:({name:e,value:t})=>e+": "+t},FragmentSpread:{leave:({name:e,directives:t})=>"..."+e+q(" ",$(t," "))},InlineFragment:{leave:({typeCondition:e,directives:t,selectionSet:r})=>$(["...",q("on ",e),$(t," "),r]," ")},FragmentDefinition:{leave:({name:e,typeCondition:t,variableDefinitions:r,directives:i,selectionSet:n,description:a})=>q("",a,"\n")+`fragment ${e}${q("(",$(r,", "),")")} `+`on ${t} ${q("",$(i," ")," ")}`+n},IntValue:{leave:({value:e})=>e},FloatValue:{leave:({value:e})=>e},StringValue:{leave:({value:e,block:t})=>{let r,i,n,a,s,o,l,c,u,d,p;return t?(n=1===(i=(r=e.replace(/"""/g,'\\"""')).split(/\r\n|[\n\r]/g)).length,a=i.length>1&&i.slice(1).every(e=>0===e.length||g(e.charCodeAt(0))),s=r.endsWith('\\"""'),o=e.endsWith('"')&&!s,l=e.endsWith("\\"),c=o||l,u=!n||e.length>70||c||a||s,d="",p=n&&g(e.charCodeAt(0)),(u&&!p||a)&&(d+="\n"),d+=r,(u||c)&&(d+="\n"),'"""'+d+'"""'):`"${e.replace(R,M)}"`}},BooleanValue:{leave:({value:e})=>e?"true":"false"},NullValue:{leave:()=>"null"},EnumValue:{leave:({value:e})=>e},ListValue:{leave:({values:e})=>"["+$(e,", ")+"]"},ObjectValue:{leave:({fields:e})=>"{"+$(e,", ")+"}"},ObjectField:{leave:({name:e,value:t})=>e+": "+t},Directive:{leave:({name:e,arguments:t})=>"@"+e+q("(",$(t,", "),")")},NamedType:{leave:({name:e})=>e},ListType:{leave:({type:e})=>"["+e+"]"},NonNullType:{leave:({type:e})=>e+"!"},SchemaDefinition:{leave:({description:e,directives:t,operationTypes:r})=>q("",e,"\n")+$(["schema",$(t," "),z(r)]," ")},OperationTypeDefinition:{leave:({operation:e,type:t})=>e+": "+t},ScalarTypeDefinition:{leave:({description:e,name:t,directives:r})=>q("",e,"\n")+$(["scalar",t,$(r," ")]," ")},ObjectTypeDefinition:{leave:({description:e,name:t,interfaces:r,directives:i,fields:n})=>q("",e,"\n")+$(["type",t,q("implements ",$(r," & ")),$(i," "),z(n)]," ")},FieldDefinition:{leave:({description:e,name:t,arguments:r,type:i,directives:n})=>q("",e,"\n")+t+(W(r)?q("(\n",H($(r,"\n")),"\n)"):q("(",$(r,", "),")"))+": "+i+q(" ",$(n," "))},InputValueDefinition:{leave:({description:e,name:t,type:r,defaultValue:i,directives:n})=>q("",e,"\n")+$([t+": "+r,q("= ",i),$(n," ")]," ")},InterfaceTypeDefinition:{leave:({description:e,name:t,interfaces:r,directives:i,fields:n})=>q("",e,"\n")+$(["interface",t,q("implements ",$(r," & ")),$(i," "),z(n)]," ")},UnionTypeDefinition:{leave:({description:e,name:t,directives:r,types:i})=>q("",e,"\n")+$(["union",t,$(r," "),q("= ",$(i," | "))]," ")},EnumTypeDefinition:{leave:({description:e,name:t,directives:r,values:i})=>q("",e,"\n")+$(["enum",t,$(r," "),z(i)]," ")},EnumValueDefinition:{leave:({description:e,name:t,directives:r})=>q("",e,"\n")+$([t,$(r," ")]," ")},InputObjectTypeDefinition:{leave:({description:e,name:t,directives:r,fields:i})=>q("",e,"\n")+$(["input",t,$(r," "),z(i)]," ")},DirectiveDefinition:{leave:({description:e,name:t,arguments:r,repeatable:i,locations:n})=>q("",e,"\n")+"directive @"+t+(W(r)?q("(\n",H($(r,"\n")),"\n)"):q("(",$(r,", "),")"))+(i?" repeatable":"")+" on "+$(n," | ")},SchemaExtension:{leave:({directives:e,operationTypes:t})=>$(["extend schema",$(e," "),z(t)]," ")},ScalarTypeExtension:{leave:({name:e,directives:t})=>$(["extend scalar",e,$(t," ")]," ")},ObjectTypeExtension:{leave:({name:e,interfaces:t,directives:r,fields:i})=>$(["extend type",e,q("implements ",$(t," & ")),$(r," "),z(i)]," ")},InterfaceTypeExtension:{leave:({name:e,interfaces:t,directives:r,fields:i})=>$(["extend interface",e,q("implements ",$(t," & ")),$(r," "),z(i)]," ")},UnionTypeExtension:{leave:({name:e,directives:t,types:r})=>$(["extend union",e,$(t," "),q("= ",$(r," | "))]," ")},EnumTypeExtension:{leave:({name:e,directives:t,values:r})=>$(["extend enum",e,$(t," "),z(r)]," ")},InputObjectTypeExtension:{leave:({name:e,directives:t,fields:r})=>$(["extend input",e,$(t," "),z(r)]," ")},TypeCoordinate:{leave:({name:e})=>e},MemberCoordinate:{leave:({name:e,memberName:t})=>$([e,q(".",t)])},ArgumentCoordinate:{leave:({name:e,fieldName:t,argumentName:r})=>$([e,q(".",t),q("(",r,":)")])},DirectiveCoordinate:{leave:({name:e})=>$(["@",e])},DirectiveArgumentCoordinate:{leave:({name:e,argumentName:t})=>$(["@",e,q("(",t,":)")])}};function $(e,t=""){var r;return null!=(r=null==e?void 0:e.filter(e=>e).join(t))?r:""}function z(e){return q("{\n",H($(e,"\n")),"\n}")}function q(e,t,r=""){return null!=t&&""!==t?e+t+r:""}function H(e){return q("  ",e.replace(/\n/g,"\n  "))}function W(e){var t;return null!=(t=null==e?void 0:e.some(e=>e.includes("\n")))&&t}let V=e=>{let t,r=e.definitions.filter(e=>"OperationDefinition"===e.kind);return 1===r.length&&(t=r[0]?.name?.value),t},G=e=>{if("string"==typeof e){let t;try{let r,i,n=(i=(r=new O(e,void 0)).parseDocument(),Object.defineProperty(i,"tokenCount",{enumerable:!1,value:r.tokenCount}),i);t=V(n)}catch(e){}return{query:e,operationName:t}}let t=V(e);return{query:function(e,t,r=p){let i,n,a,s=new Map;for(let e of Object.values(et))s.set(e,function(e,t){let r=e[t];return"object"==typeof r?r:"function"==typeof r?{enter:r,leave:void 0}:{enter:e.enter,leave:e.leave}}(t,e));let o=Array.isArray(e),l=[e],c=-1,u=[],d=e,h=[],g=[];do{var m,y,b;let e,p=++c===l.length,v=p&&0!==u.length;if(p){if(n=0===g.length?void 0:h[h.length-1],d=a,a=g.pop(),v)if(o){d=d.slice();let e=0;for(let[t,r]of u){let i=t-e;null===r?(d.splice(i,1),e++):d[i]=r}}else for(let[e,t]of(d={...d},u))d[e]=t;c=i.index,l=i.keys,u=i.edits,o=i.inArray,i=i.prev}else if(a){if(null==(d=a[n=o?c:l[c]]))continue;h.push(n)}if(!Array.isArray(d)){f(d)||I(!1,`Invalid AST Node: ${A(d,[])}.`);
13let r=p?null==(m=s.get(d.kind))?void 0:m.leave:null==(y=s.get(d.kind))?void 0:y.enter;if((e=null==r?void 0:r.call(t,d,n,a,h,g))===U)break;if(!1===e){if(!p){h.pop();continue}}else if(void 0!==e&&(u.push([n,e]),!p))if(f(e))d=e;else{h.pop();continue}}void 0===e&&v&&u.push([n,d]),p?h.pop():(i={inArray:o,index:c,keys:l,edits:u,prev:i},l=(o=Array.isArray(d))?d:null!=(b=r[d.kind])?b:[],c=-1,u=[],a&&g.push(a),a=d)}while(void 0!==i)return 0!==u.length?u[u.length-1][1]:e}(e,F),operationName:t}};class X extends Error{constructor(e,t){super(`${X.extractMessage(e)}: ${JSON.stringify({response:e,request:t})}`),Object.setPrototypeOf(this,X.prototype),this.response=e,this.request=t,"function"==typeof Error.captureStackTrace&&Error.captureStackTrace(this,X)}static extractMessage(e){return e.errors?.[0]?.message??`GraphQL Error (Code: ${e.status})`}}var K,Y,Q,J,Z,ee,et,er,ei=e.i(320502);let en=e=>{let t={};if(e)if("u">typeof Headers&&e instanceof Headers||ei&&ei.Headers&&e instanceof ei.Headers){let r;r={},e.forEach((e,t)=>{r[t]=e}),t=r}else Array.isArray(e)?e.forEach(([e,r])=>{e&&void 0!==r&&(t[e]=r)}):t=e;return t},ea=e=>e.replace(/([\s,]|#[^\n\r]+)+/g," ").trim();class es{constructor(e,t={}){this.url=e,this.requestConfig=t,this.rawRequest=async(...e)=>{let[t,r,i]=e,n=t.query?t:{query:t,variables:r,requestHeaders:i,signal:void 0},{headers:a,fetch:s=ei.default,method:o="POST",requestMiddleware:l,responseMiddleware:c,...u}=this.requestConfig,{url:d}=this;void 0!==n.signal&&(u.signal=n.signal);let{operationName:p}=G(n.query);return eo({url:d,query:n.query,variables:n.variables,headers:{...en(eu(a)),...en(n.requestHeaders)},operationName:p,fetch:s,method:o,fetchOptions:u,middleware:l}).then(e=>(c&&c(e),e)).catch(e=>{throw c&&c(e),e})}}async request(e,...t){let[r,i]=t,n=e.document?e:{document:e,variables:r,requestHeaders:i,signal:void 0},{headers:a,fetch:s=ei.default,method:o="POST",requestMiddleware:l,responseMiddleware:c,...u}=this.requestConfig,{url:d}=this;void 0!==n.signal&&(u.signal=n.signal);let{query:p,operationName:h}=G(n.document);return eo({url:d,query:p,variables:n.variables,headers:{...en(eu(a)),...en(n.requestHeaders)},operationName:h,fetch:s,method:o,fetchOptions:u,middleware:l}).then(e=>(c&&c(e),e.data)).catch(e=>{throw c&&c(e),e})}batchRequests(e,t){let r=e.documents?e:{documents:e,requestHeaders:t,signal:void 0},{headers:i,...n}=this.requestConfig;void 0!==r.signal&&(n.signal=r.signal);let a=r.documents.map(({document:e})=>G(e).query),s=r.documents.map(({variables:e})=>e);return eo({url:this.url,query:a,variables:s,headers:{...en(eu(i)),...en(r.requestHeaders)},operationName:void 0,fetch:this.requestConfig.fetch??ei.default,method:this.requestConfig.method||"POST",fetchOptions:n,middleware:this.requestConfig.requestMiddleware}).then(e=>(this.requestConfig.responseMiddleware&&this.requestConfig.responseMiddleware(e),e.data)).catch(e=>{throw this.requestConfig.responseMiddleware&&this.requestConfig.responseMiddleware(e),e})}setHeaders(e){return this.requestConfig.headers=e,this}setHeader(e,t){let{headers:r}=this.requestConfig;return r?r[e]=t:this.requestConfig.headers={[e]:t},this}setEndpoint(e){return this.url=e,this}}let eo=async e=>{let t,{query:i,variables:n,fetchOptions:a}=e,s=(t=(e.method??"post").toUpperCase(),async e=>{let i,{url:n,query:a,variables:s,operationName:o,fetch:l,fetchOptions:c,middleware:u}=e,d={...e.headers},p="";"POST"===t?"string"==typeof(i=el(a,s,o,c.jsonSerializer))&&(d["Content-Type"]="application/json"):p=(e=>{if(!Array.isArray(e.query)){let t=[`query=${encodeURIComponent(ea(e.query))}`];return e.variables&&t.push(`variables=${encodeURIComponent(e.jsonSerializer.stringify(e.variables))}`),e.operationName&&t.push(`operationName=${encodeURIComponent(e.operationName)}`),t.join("&")}if(void 0!==e.variables&&!Array.isArray(e.variables))throw Error("Cannot create query with given variable type, array expected");let t=e.query.reduce((t,r,i)=>(t.push({query:ea(r),variables:e.variables?e.jsonSerializer.stringify(e.variables[i]):void 0}),t),[]);return`query=${encodeURIComponent(e.jsonSerializer.stringify(t))}`})({query:a,variables:s,operationName:o,jsonSerializer:c.jsonSerializer??r});let h={method:t,headers:d,body:i,...c},f=n,g=h;if(u){let{url:e,...t}=await Promise.resolve(u({...h,url:n,operationName:o,variables:s}));f=e,g=t}return p&&(f=`${f}?${p}`),await l(f,g)}),o=Array.isArray(e.query),l=await s(e),c=await ec(l,a.jsonSerializer??r),u=Array.isArray(c)?!c.some(({data:e})=>!e):!!c.data,d=Array.isArray(c)||!c.errors||Array.isArray(c.errors)&&!c.errors.length||"all"===a.errorPolicy||"ignore"===a.errorPolicy;if(l.ok&&d&&u){let{errors:e,...t}=(Array.isArray(c),c),r="ignore"===a.errorPolicy?t:c;return{...o?{data:r}:r,headers:l.headers,status:l.status}}throw new X({..."string"==typeof c?{error:c}:c,status:l.status,headers:l.headers},{query:i,variables:n})},el=(e,t,i,n)=>{let a=n??r;if(!Array.isArray(e))return a.stringify({query:e,variables:t,operationName:i});if(void 0!==t&&!Array.isArray(t))throw Error("Cannot create request body with given variable type, array expected");let s=e.reduce((e,r,i)=>(e.push({query:r,variables:t?t[i]:void 0}),e),[]);return a.stringify(s)},ec=async(e,t)=>{let r;
13return(e.headers.forEach((e,t)=>{"content-type"===t.toLowerCase()&&(r=e)}),r&&(r.toLowerCase().startsWith("application/json")||r.toLowerCase().startsWith("application/graphql+json")||r.toLowerCase().startsWith("application/graphql-response+json")))?t.parse(await e.text()):e.text()},eu=e=>"function"==typeof e?e():e;var ed=e.i(574464),ep=e.i(433652),eh=e.i(78491),ef=e.i(185196),eg=function(e,t){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&0>t.indexOf(i)&&(r[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var n=0,i=Object.getOwnPropertySymbols(e);n<i.length;n++)0>t.indexOf(i[n])&&Object.prototype.propertyIsEnumerable.call(e,i[n])&&(r[i[n]]=e[i[n]]);return r};class em{constructor(e,t={}){var r;if(this.endpoint=e,this.headers={},t.apiKey&&(this.headers.sc_apikey=t.apiKey),t.headers&&(this.headers=Object.assign(Object.assign({},this.headers),t.headers)),t.contextId&&(this.headers["x-sitecore-contextid"]=t.contextId),!e||!(0,ed.default)(e).hostname)throw Error(`Invalid GraphQL endpoint '${e}'. Verify that appropriate environment variable is set`);this.timeout=t.timeout,this.retries=null!=(r=t.retries)?r:3,this.retryStrategy=t.retryStrategy||new ef.DefaultRetryStrategy({statusCodes:[429,502,503,504,520,521,522,523,524]}),this.client=new es(e,{headers:this.headers,fetch:t.fetch}),this.debug=t.debugger||ep.default.http}static createClientFactory(e){var{endpoint:t}=e,r=eg(e,["endpoint"]);return (e={})=>new em(t,Object.assign(Object.assign({},r),e))}async request(e,t,r){let i=1,n=async()=>{let a=(null==r?void 0:r.retries)||this.retries,s=(null==r?void 0:r.retryStrategy)||this.retryStrategy,o=(null==r?void 0:r.debugger)||this.debug;o("request: %o",{url:this.endpoint,headers:Object.assign(Object.assign({},this.headers),null==r?void 0:r.headers),query:e,variables:t,timeout:this.timeout});let l=Object.assign(Object.assign({},this.headers),null==r?void 0:r.headers),c=performance.now(),u=[this.client.request(e,t,l)];return this.timeout&&(this.abortTimeout=new eh.default(this.timeout),u.push(this.abortTimeout.start)),Promise.race(u).then(e=>{var t;return null==(t=this.abortTimeout)||t.clear(),this.debug("response in %dms: %o",performance.now()-c,e),Promise.resolve(e)},async e=>{var t,r;null==(t=this.abortTimeout)||t.clear(),o("response error: %o",e.response||e.message||e);let l=(null==(r=e.response)?void 0:r.status)||e.code;if(!s.shouldRetry(e,i,a))return Promise.reject(e);{let t=s.getDelay(e,i);return o("Error: %s. Retrying in %dms (attempt %d).",l,t,i),i++,new Promise(e=>setTimeout(e,t)).then(n)}})};return n()}}var ey=e.i(445510);e.s(["createGraphQLClientFactory",0,e=>{let t,{api:r}=e,{edge:i,local:n}=null!=r?r:{},a="u">typeof window;if(null==i?void 0:i.contextId)t={endpoint:(0,ey.getEdgeProxyContentUrl)(i.edgeUrl),contextId:i.contextId};else if(a&&(null==i?void 0:i.clientContextId))t={endpoint:(0,ey.getEdgeProxyContentUrl)(i.edgeUrl),contextId:i.clientContextId};else if((null==n?void 0:n.apiKey)&&(null==n?void 0:n.apiHost))t={endpoint:`${n.apiHost}${n.path}`,apiKey:n.apiKey};else if(a)console.warn("GraphQL client initialised in the browser without Edge or local API configuration; client-side requests may fail."),t={endpoint:"/api/graphql"};else throw Error(`GraphQL client misconfigured.
14      Configure one of the following in sitecore.config or your .env file:
15      Edge mode: set both sitecore.edge.contextId (server-side) and sitecore.edge.clientContextId (browser).
16      Local API mode: set api.local.apiHost and api.local.apiKey.
17      Supplying only api.edge.clientContextId will cause the application to fail at runtime.`);return em.createClientFactory(Object.assign(Object.assign({},t),e))}],761749)},158079,(e,t,r)=>{"use strict";let i=/(?:\\(u(?:[a-f\d]{4}|\{[a-f\d]{1,6}\})|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,n=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,a=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,s=/\\(u(?:[a-f\d]{4}|{[a-f\d]{1,6}})|x[a-f\d]{2}|.)|([^\\])/gi,o=new Map([["n","\n"],["r","\r"],["t","	"],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e","\x1b"],["a","\x07"]]);function l(e){let t="u"===e[0],r="{"===e[1];return t&&!r&&5===e.length||"x"===e[0]&&3===e.length?String.fromCharCode(parseInt(e.slice(1),16)):t&&r?String.fromCodePoint(parseInt(e.slice(2,-1),16)):o.get(e)||e}function c(e,t){let r={};for(let e of t)for(let t of e.styles)r[t[0]]=e.inverse?null:t.slice(1);let i=e;for(let[e,t]of Object.entries(r))if(Array.isArray(t)){if(!(e in i))throw Error(`Unknown Chalk style: ${e}`);i=t.length>0?i[e](...t):i[e]}return i}t.exports=(e,t)=>{let r=[],o=[],u=[];
17if(t.replace(i,(t,i,d,p,h,f)=>{if(i)u.push(l(i));else if(p){let t=u.join("");u=[],o.push(0===r.length?t:c(e,r)(t)),r.push({inverse:d,styles:function(e){let t;n.lastIndex=0;let r=[];for(;null!==(t=n.exec(e));){let e=t[1];if(t[2]){let i=function(e,t){let r,i=[];for(let n of t.trim().split(/\s*,\s*/g)){let t=Number(n);if(Number.isNaN(t))if(r=n.match(a))i.push(r[2].replace(s,(e,t,r)=>t?l(t):r));else throw Error(`Invalid Chalk template style argument: ${n} (in style '${e}')`);else i.push(t)}return i}(e,t[2]);r.push([e].concat(i))}else r.push([e])}return r}(p)})}else if(h){if(0===r.length)throw Error("Found extraneous } in Chalk template literal");o.push(c(e,r)(u.join(""))),u=[],r.pop()}else u.push(f)}),o.push(u.join("")),r.length>0)throw Error(`Chalk template literal is missing ${r.length} closing bracket${1===r.length?"":"s"} (\`}\`)`);return o.join("")}},304922,(e,t,r)=>{"use strict";t.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}},645687,(e,t,r)=>{let i=e.r(304922),n={};for(let e of Object.keys(i))n[i[e]]=e;let a={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};for(let e of(t.exports=a,Object.keys(a))){if(!("channels"in a[e]))throw Error("missing channels property: "+e);if(!("labels"in a[e]))throw Error("missing channel labels property: "+e);if(a[e].labels.length!==a[e].channels)throw Error("channel and label counts mismatch: "+e);let{channels:t,labels:r}=a[e];delete a[e].channels,delete a[e].labels,Object.defineProperty(a[e],"channels",{value:t}
17),Object.defineProperty(a[e],"labels",{value:r})}a.rgb.hsl=function(e){let t,r=e[0]/255,i=e[1]/255,n=e[2]/255,a=Math.min(r,i,n),s=Math.max(r,i,n),o=s-a;s===a?t=0:r===s?t=(i-n)/o:i===s?t=2+(n-r)/o:n===s&&(t=4+(r-i)/o),(t=Math.min(60*t,360))<0&&(t+=360);let l=(a+s)/2;return[t,100*(s===a?0:l<=.5?o/(s+a):o/(2-s-a)),100*l]},a.rgb.hsv=function(e){let t,r,i,n,a,s=e[0]/255,o=e[1]/255,l=e[2]/255,c=Math.max(s,o,l),u=c-Math.min(s,o,l),d=function(e){return(c-e)/6/u+.5};return 0===u?(n=0,a=0):(a=u/c,t=d(s),r=d(o),i=d(l),s===c?n=i-r:o===c?n=1/3+t-i:l===c&&(n=2/3+r-t),n<0?n+=1:n>1&&(n-=1)),[360*n,100*a,100*c]},a.rgb.hwb=function(e){let t=e[0],r=e[1],i=e[2];return[a.rgb.hsl(e)[0],1/255*Math.min(t,Math.min(r,i))*100,100*(i=1-1/255*Math.max(t,Math.max(r,i)))]},a.rgb.cmyk=function(e){let t=e[0]/255,r=e[1]/255,i=e[2]/255,n=Math.min(1-t,1-r,1-i);return[100*((1-t-n)/(1-n)||0),100*((1-r-n)/(1-n)||0),100*((1-i-n)/(1-n)||0),100*n]},a.rgb.keyword=function(e){let t,r=n[e];if(r)return r;let a=1/0;for(let r of Object.keys(i)){let n=i[r],s=(e[0]-n[0])**2+(e[1]-n[1])**2+(e[2]-n[2])**2;s<a&&(a=s,t=r)}return t},a.keyword.rgb=function(e){return i[e]},a.rgb.xyz=function(e){let t=e[0]/255,r=e[1]/255,i=e[2]/255;return[100*(.4124*(t=t>.04045?((t+.055)/1.055)**2.4:t/12.92)+.3576*(r=r>.04045?((r+.055)/1.055)**2.4:r/12.92)+.1805*(i=i>.04045?((i+.055)/1.055)**2.4:i/12.92)),100*(.2126*t+.7152*r+.0722*i),100*(.0193*t+.1192*r+.9505*i)]},a.rgb.lab=function(e){let t=a.rgb.xyz(e),r=t[0],i=t[1],n=t[2];return r/=95.047,i/=100,n/=108.883,[116*(i=i>.008856?i**(1/3):7.787*i+16/116)-16,500*((r=r>.008856?r**(1/3):7.787*r+16/116)-i),200*(i-(n=n>.008856?n**(1/3):7.787*n+16/116))]},a.hsl.rgb=function(e){let t,r,i,n=e[0]/360,a=e[1]/100,s=e[2]/100;if(0===a)return[i=255*s,i,i];t=s<.5?s*(1+a):s+a-s*a;let o=2*s-t,l=[0,0,0];for(let e=0;e<3;e++)(r=n+-(1/3*(e-1)))<0&&r++,r>1&&r--,i=6*r<1?o+(t-o)*6*r:2*r<1?t:3*r<2?o+(t-o)*(2/3-r)*6:o,l[e]=255*i;return l},a.hsl.hsv=function(e){let t=e[0],r=e[1]/100,i=e[2]/100,n=r,a=Math.max(i,.01);i*=2,r*=i<=1?i:2-i,n*=a<=1?a:2-a;let s=(i+r)/2;return[t,100*(0===i?2*n/(a+n):2*r/(i+r)),100*s]},a.hsv.rgb=function(e){let t=e[0]/60,r=e[1]/100,i=e[2]/100,n=Math.floor(t)%6,a=t-Math.floor(t),s=255*i*(1-r),o=255*i*(1-r*a),l=255*i*(1-r*(1-a));switch(i*=255,n){case 0:return[i,l,s];case 1:return[o,i,s];case 2:return[s,i,l];case 3:return[s,o,i];case 4:return[l,s,i];case 5:return[i,s,o]}},a.hsv.hsl=function(e){let t,r,i=e[0],n=e[1]/100,a=e[2]/100,s=Math.max(a,.01);r=(2-n)*a;let o=(2-n)*s;return[i,100*(t=(t=n*s/(o<=1?o:2-o))||0),100*(r/=2)]},a.hwb.rgb=function(e){let t,r,i,n,a=e[0]/360,s=e[1]/100,o=e[2]/100,l=s+o;l>1&&(s/=l,o/=l);let c=Math.floor(6*a),u=1-o;t=6*a-c,(1&c)!=0&&(t=1-t);let d=s+t*(u-s);switch(c){default:case 6:case 0:r=u,i=d,n=s;break;case 1:r=d,i=u,n=s;break;case 2:r=s,i=u,n=d;break;case 3:r=s,i=d,n=u;break;case 4:r=d,i=s,n=u;break;case 5:r=u,i=s,n=d}return[255*r,255*i,255*n]},a.cmyk.rgb=function(e){let t=e[0]/100,r=e[1]/100,i=e[2]/100,n=e[3]/100;return[255*(1-Math.min(1,t*(1-n)+n)),255*(1-Math.min(1,r*(1-n)+n)),255*(1-Math.min(1,i*(1-n)+n))]},a.xyz.rgb=function(e){let t,r,i,n=e[0]/100,a=e[1]/100,s=e[2]/100;return t=(t=3.2406*n+-1.5372*a+-.4986*s)>.0031308?1.055*t**(1/2.4)-.055:12.92*t,r=(r=-.9689*n+1.8758*a+.0415*s)>.0031308?1.055*r**(1/2.4)-.055:12.92*r,i=(i=.0557*n+-.204*a+1.057*s)>.0031308?1.055*i**(1/2.4)-.055:12.92*i,[255*(t=Math.min(Math.max(0,t),1)),255*(r=Math.min(Math.max(0,r),1)),255*(i=Math.min(Math.max(0,i),1))]},a.xyz.lab=function(e){let t=e[0],r=e[1],i=e[2];return t/=95.047,r/=100,i/=108.883,[116*(r=r>.008856?r**(1/3):7.787*r+16/116)-16,500*((t=t>.008856?t**(1/3):7.787*t+16/116)-r),200*(r-(i=i>.008856?i**(1/3):7.787*i+16/116))]},a.lab.xyz=function(e){let t,r,i,n=e[0],a=e[1],s=e[2];t=a/500+(r=(n+16)/116),i=r-s/200;let o=r**3,l=t**3,c=i**3;return r=(o>.008856?o:(r-16/116)/7.787)*100,[t=(l>.008856?l:(t-16/116)/7.787)*95.047,r,i=(c>.008856?c:(i-16/116)/7.787)*108.883]},a.lab.lch=function(e){let t,r=e[0],i=e[1],n=e[2];return(t=360*Math.atan2(n,i)/2/Math.PI)<0&&(t+=360),[r,Math.sqrt(i*i+n*n),t]},a.lch.lab=function(e){let t=e[0],r=e[1],i=e[2]/360*2*Math.PI;return[t,r*Math.cos(i),r*Math.sin(i)]},a.rgb.ansi16=function(e,t=null){let[r,i,n]=e,s=null===t?a.rgb.hsv(e)[2]:t;
17if(0===(s=Math.round(s/50)))return 30;let o=30+(Math.round(n/255)<<2|Math.round(i/255)<<1|Math.round(r/255));return 2===s&&(o+=60),o},a.hsv.ansi16=function(e){return a.rgb.ansi16(a.hsv.rgb(e),e[2])},a.rgb.ansi256=function(e){let t=e[0],r=e[1],i=e[2];return t===r&&r===i?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(r/255*5)+Math.round(i/255*5)},a.ansi16.rgb=function(e){let t=e%10;if(0===t||7===t)return e>50&&(t+=3.5),[t=t/10.5*255,t,t];let r=(~~(e>50)+1)*.5;return[(1&t)*r*255,(t>>1&1)*r*255,(t>>2&1)*r*255]},a.ansi256.rgb=function(e){let t;if(e>=232){let t=(e-232)*10+8;return[t,t,t]}return[Math.floor((e-=16)/36)/5*255,Math.floor((t=e%36)/6)/5*255,t%6/5*255]},a.rgb.hex=function(e){let t=(((255&Math.round(e[0]))<<16)+((255&Math.round(e[1]))<<8)+(255&Math.round(e[2]))).toString(16).toUpperCase();return"000000".substring(t.length)+t},a.hex.rgb=function(e){let t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];let r=t[0];3===t[0].length&&(r=r.split("").map(e=>e+e).join(""));let i=parseInt(r,16);return[i>>16&255,i>>8&255,255&i]},a.rgb.hcg=function(e){let t,r=e[0]/255,i=e[1]/255,n=e[2]/255,a=Math.max(Math.max(r,i),n),s=Math.min(Math.min(r,i),n),o=a-s;return t=o<1?s/(1-o):0,[360*((o<=0?0:a===r?(i-n)/o%6:a===i?2+(n-r)/o:4+(r-i)/o)/6%1),100*o,100*t]},a.hsl.hcg=function(e){let t=e[1]/100,r=e[2]/100,i=r<.5?2*t*r:2*t*(1-r),n=0;return i<1&&(n=(r-.5*i)/(1-i)),[e[0],100*i,100*n]},a.hsv.hcg=function(e){let t=e[1]/100,r=e[2]/100,i=t*r,n=0;return i<1&&(n=(r-i)/(1-i)),[e[0],100*i,100*n]},a.hcg.rgb=function(e){let t=e[0]/360,r=e[1]/100,i=e[2]/100;if(0===r)return[255*i,255*i,255*i];let n=[0,0,0],a=t%1*6,s=a%1,o=1-s,l=0;switch(Math.floor(a)){case 0:n[0]=1,n[1]=s,n[2]=0;break;case 1:n[0]=o,n[1]=1,n[2]=0;break;case 2:n[0]=0,n[1]=1,n[2]=s;break;case 3:n[0]=0,n[1]=o,n[2]=1;break;case 4:n[0]=s,n[1]=0,n[2]=1;break;default:n[0]=1,n[1]=0,n[2]=o}return l=(1-r)*i,[(r*n[0]+l)*255,(r*n[1]+l)*255,(r*n[2]+l)*255]},a.hcg.hsv=function(e){let t=e[1]/100,r=t+e[2]/100*(1-t),i=0;return r>0&&(i=t/r),[e[0],100*i,100*r]},a.hcg.hsl=function(e){let t=e[1]/100,r=e[2]/100*(1-t)+.5*t,i=0;return r>0&&r<.5?i=t/(2*r):r>=.5&&r<1&&(i=t/(2*(1-r))),[e[0],100*i,100*r]},a.hcg.hwb=function(e){let t=e[1]/100,r=t+e[2]/100*(1-t);return[e[0],(r-t)*100,(1-r)*100]},a.hwb.hcg=function(e){let t=e[1]/100,r=1-e[2]/100,i=r-t,n=0;return i<1&&(n=(r-i)/(1-i)),[e[0],100*i,100*n]},a.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]},a.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]},a.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]},a.gray.hsl=function(e){return[0,0,e[0]]},a.gray.hsv=a.gray.hsl,a.gray.hwb=function(e){return[0,100,e[0]]},a.gray.cmyk=function(e){return[0,0,0,e[0]]},a.gray.lab=function(e){return[e[0],0,0]},a.gray.hex=function(e){let t=255&Math.round(e[0]/100*255),r=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".substring(r.length)+r},a.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]}},28626,(e,t,r)=>{let i=e.r(645687);t.exports=function(e){let t=function(e){let t=function(){let e={},t=Object.keys(i);for(let r=t.length,i=0;i<r;i++)e[t[i]]={distance:-1,parent:null};return e}(),r=[e];for(t[e].distance=0;r.length;){let e=r.pop(),n=Object.keys(i[e]);for(let i=n.length,a=0;a<i;a++){let i=n[a],s=t[i];-1===s.distance&&(s.distance=t[e].distance+1,s.parent=e,r.unshift(i))}}return t}(e),r={},n=Object.keys(t);for(let e=n.length,a=0;a<e;a++){let e=n[a];null!==t[e].parent&&(r[e]=function(e,t){let r=[t[e].parent,e],n=i[t[e].parent][e],a=t[e].parent;for(;t[a].parent;)r.unshift(t[a].parent),n=function(e,t){return function(r){return t(e(r))}}(i[t[a].parent][a],n),a=t[a].parent;return n.conversion=r,n}(e,t))}return r}},438483,(e,t,r)=>{let i=e.r(645687),n=e.r(28626),a={};
17Object.keys(i).forEach(e=>{a[e]={},Object.defineProperty(a[e],"channels",{value:i[e].channels}),Object.defineProperty(a[e],"labels",{value:i[e].labels});let t=n(e);Object.keys(t).forEach(r=>{let i,n,s=t[r];a[e][r]=(i=function(...e){let t=e[0];if(null==t)return t;t.length>1&&(e=t);let r=s(e);if("object"==typeof r)for(let e=r.length,t=0;t<e;t++)r[t]=Math.round(r[t]);return r},"conversion"in s&&(i.conversion=s.conversion),i),a[e][r].raw=(n=function(...e){let t=e[0];return null==t?t:(t.length>1&&(e=t),s(e))},"conversion"in s&&(n.conversion=s.conversion),n)})}),t.exports=a},115388,(e,t,r)=>{"use strict";let i,n=(e,t)=>(...r)=>{let i=e(...r);return`\u001B[${i+t}m`},a=(e,t)=>(...r)=>{let i=e(...r);return`\u001B[${38+t};5;${i}m`},s=(e,t)=>(...r)=>{let i=e(...r);return`\u001B[${38+t};2;${i[0]};${i[1]};${i[2]}m`},o=e=>e,l=(e,t,r)=>[e,t,r],c=(e,t,r)=>{Object.defineProperty(e,t,{get:()=>{let i=r();return Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0}),i},enumerable:!0,configurable:!0})},u=(t,r,n,a)=>{void 0===i&&(i=e.r(438483));let s=10*!!a,o={};for(let[e,a]of Object.entries(i)){let i="ansi16"===e?"ansi":e;e===r?o[i]=t(n,s):"object"==typeof a&&(o[i]=t(a[r],s))}return o};Object.defineProperty(t,"exports",{enumerable:!0,get:function(){let e=new Map,t={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};for(let[r,i]of(t.color.gray=t.color.blackBright,t.bgColor.bgGray=t.bgColor.bgBlackBright,t.color.grey=t.color.blackBright,t.bgColor.bgGrey=t.bgColor.bgBlackBright,Object.entries(t))){for(let[r,n]of Object.entries(i))t[r]={open:`\u001B[${n[0]}m`,close:`\u001B[${n[1]}m`},i[r]=t[r],e.set(n[0],n[1]);Object.defineProperty(t,r,{value:i,enumerable:!1})}return Object.defineProperty(t,"codes",{value:e,enumerable:!1}),t.color.close="\x1b[39m",t.bgColor.close="\x1b[49m",c(t.color,"ansi",()=>u(n,"ansi16",o,!1)),c(t.color,"ansi256",()=>u(a,"ansi256",o,!1)),c(t.color,"ansi16m",()=>u(s,"rgb",l,!1)),c(t.bgColor,"ansi",()=>u(n,"ansi16",o,!0)),c(t.bgColor,"ansi256",()=>u(a,"ansi256",o,!0)),c(t.bgColor,"ansi16m",()=>u(s,"rgb",l,!0)),t}})},97383,(e,t,r)=>{"use strict";t.exports={stdout:!1,stderr:!1}},499939,(e,t,r)=>{"use strict";t.exports={stringReplaceAll:(e,t,r)=>{let i=e.indexOf(t);if(-1===i)return e;let n=t.length,a=0,s="";do s+=e.substr(a,i-a)+t+r,a=i+n,i=e.indexOf(t,a);while(-1!==i)return s+e.substr(a)},stringEncaseCRLFWithFirstIndex:(e,t,r,i)=>{let n=0,a="";do{let s="\r"===e[i-1];a+=e.substr(n,(s?i-1:i)-n)+t+(s?"\r\n":"\n")+r,n=i+1,i=e.indexOf("\n",n)}while(-1!==i)return a+e.substr(n)}}},358909,(e,t,r)=>{"use strict";let i,n=e.r(115388),{stdout:a,stderr:s}=e.r(97383),{stringReplaceAll:o,stringEncaseCRLFWithFirstIndex:l}=e.r(499939),{isArray:c}=Array,u=["ansi","ansi","ansi256","ansi16m"],d=Object.create(null);class p{constructor(e){return h(e)}}let h=e=>{let t={};return((e,t={})=>{if(t.level&&!(Number.isInteger(t.level)&&t.level>=0&&t.level<=3))throw Error("The `level` option should be an integer from 0 to 3");let r=a?a.level:0;e.level=void 0===t.level?r:t.level})(t,e),t.template=(...e)=>x(t.template,...e),Object.setPrototypeOf(t,f.prototype),Object.setPrototypeOf(t.template,t),t.template.constructor=()=>{throw Error("`chalk.constructor()` is deprecated. Use `new chalk.Instance()` instead.")},t.template.Instance=p,t.template};function f(e){return h(e)}for(let[e,t]of Object.entries(n))d[e]={get(){let r=b(this,y(t.open,t.close,this._styler),this._isEmpty);return Object.defineProperty(this,e,{value:r}),r}};d.visible={get(){let e=b(this,this._styler,!0);return Object.defineProperty(this,"visible",{value:e}),e}};let g=["rgb","hex","keyword","hsl","hsv","hwb","ansi","ansi256"];for(let e of g)d[e]={get(){let{level:t}=this;return function(...r){return b(this,y(n.color[u[t]][e](...r),n.color.close,this._styler),this._isEmpty)}}};for(let e of g)d["bg"+e[0].toUpperCase()+e.slice(1)]={get(){let{level:t}=this;return function(...r){return b(this,y(n.bgColor[u[t]][e](...r),n.bgColor.close,this._styler),this._isEmpty)}}};let m=Object.defineProperties(()=>{},{...d,level:{enumerable:!0,get(){return this._generator.level},set(e){this._generator.level=e}}}),y=(e,t,r)=>{let i,n;return void 0===r?(i=e,n=t):(i=r.openAll+e,n=t+r.closeAll),{open:e,close:t,openAll:i,closeAll:n,parent:r}},b=(e,t,r)=>{let i=(...e)=>c(e[0])&&c(e[0].raw)?v(i,x(i,...e)):v(i,1===e.length?""+e[0]:e.join(" "));return Object.setPrototypeOf(i,m),i._generator=e,i._styler=t,i._isEmpty=r,i},v=(e,t)=>
17{if(e.level<=0||!t)return e._isEmpty?"":t;let r=e._styler;if(void 0===r)return t;let{openAll:i,closeAll:n}=r;if(-1!==t.indexOf("\x1b"))for(;void 0!==r;)t=o(t,r.close,r.open),r=r.parent;let a=t.indexOf("\n");return -1!==a&&(t=l(t,n,i,a)),i+t+n},x=(t,...r)=>{let[n]=r;if(!c(n)||!c(n.raw))return r.join(" ");let a=r.slice(1),s=[n.raw[0]];for(let e=1;e<n.length;e++)s.push(String(a[e-1]).replace(/[{}\\]/g,"\\$&"),String(n.raw[e]));return void 0===i&&(i=e.r(158079)),i(t,s.join(""))};Object.defineProperties(f.prototype,d);let _=h(void 0);_.supportsColor=a,_.stderr=h({level:s?s.level:0}),_.stderr.supportsColor=s,t.exports=_},250754,994740,e=>{"use strict";var t,r,i=e.i(439845),n=e.i(743593),a=e.i(122707),s=e.i(204919),o=e.i(702961);let l=Object.freeze({cacheTimeout:60,cacheEnabled:!0});class c{constructor(e){var t;this.options=e,this.cache=new o.Cache,this.options.cacheTimeout=(null!=(t=this.options.cacheTimeout)?t:l.cacheTimeout)*1e3,void 0===this.options.cacheEnabled&&(this.options.cacheEnabled=l.cacheEnabled)}getCacheValue(e){return this.options.cacheEnabled?this.cache.get(e):null}setCacheValue(e,t){return this.options.cacheEnabled?this.cache.put(e,t,this.options.cacheTimeout):t}}var u=e.i(228242);let{ERROR_MESSAGES:d}=a.constants,p=`
18  query DictionarySiteQuery(
19    $siteName: String!
20    $language: String!
21    $pageSize: Int = 500
22    $after: String
23  ) {
24    site {
25      siteInfo(site: $siteName) {
26        dictionary(language: $language, first: $pageSize, after: $after) {
27          pageInfo {
28            endCursor
29            hasNext
30          }
31          results {
32            key
33            value
34          }
35        }
36      }
37    }
38  }
39`;class h{constructor(e){this.options=e,this.cache=this.getCacheClient(),this.graphQLClient=this.getGraphQLClient()}async fetchDictionaryData(e,t,r){var i,n;let a=t+e,s=this.getCacheValue(a);if(s)return u.default.dictionary("using cached dictionary data for %s %s",e,t),s;let o={};u.default.dictionary("fetching dictionary data for %s %s",e,t);let l=[],c=!0,h="";if(!t)throw RangeError(d.MV_002);if(!e)throw RangeError(d.MV_009);for(;c;){let a=await this.graphQLClient.request(p,{siteName:t,language:e,pageSize:this.options.pageSize,after:h},r);(null==(n=null==(i=null==a?void 0:a.site)?void 0:i.siteInfo)?void 0:n.dictionary)?(l=l.concat(a.site.siteInfo.dictionary.results),h=a.site.siteInfo.dictionary.pageInfo.endCursor,c=a.site.siteInfo.dictionary.pageInfo.hasNext):c=!1}return l.forEach(e=>o[e.key]=e.value),this.setCacheValue(a,o),o}setCacheValue(e,t){return this.cache.setCacheValue(e,t)}getCacheValue(e){return this.cache.getCacheValue(e)}getCacheClient(){return new c(this.options)}getGraphQLClient(){var e,t;if(!this.options.clientFactory)throw Error("clientFactory needs to be provided when initializing GraphQL client.");return this.options.clientFactory({debugger:u.default.dictionary,retries:null==(e=this.options.retries)?void 0:e.count,retryStrategy:null==(t=this.options.retries)?void 0:t.retryStrategy})}}var f=a,g=e.i(168383),m=e.i(26301);let y=/-library--([^\s]+)/,b=(e,t)=>{var r,i,n,a,s,o;let l;"params"in e&&e.params&&(l=(null==(i=null==(r=e.params.CSSStyles)?void 0:r.match(y))?void 0:i[1])||(null==(a=null==(n=e.params.Styles)?void 0:n.match(y))?void 0:a[1])||e.params.LibraryId||void 0),!l&&"fields"in e&&e.fields&&(l=(null==(s=(0,m.getFieldValue)(e.fields,"CSSStyles","").match(y))?void 0:s[1])||(null==(o=(0,m.getFieldValue)(e.fields,"Styles","").match(y))?void 0:o[1])||(0,m.getFieldValue)(e.fields,"LibraryId","")||void 0),l&&t.add(l);let c=e.placeholders||{};Object.keys(c).forEach(e=>{var r;r=c[e],r.map(e=>b(e,t))})};var v=a;let x=/class=".*(\bck-content\b).*"/g,_=(e,t)=>{e&&"object"==typeof e&&!t.loadStyles&&("value"in e&&"string"==typeof e.value?t.loadStyles=x.test(e.value):"fields"in e?Object.values(e.fields).forEach(e=>{_(e,t)}):Array.isArray(e)&&e.forEach(e=>{_(e,t)}))},w=(e,t)=>{if(t.loadStyles)return;"fields"in e&&e.fields&&Object.values(e.fields).forEach(e=>{_(e,t)});let r=e.placeholders||{};Object.keys(r).forEach(e=>{var i;i=r[e],t.loadStyles||i.forEach(e=>{w(e,t)})})};class T{constructor(e){this.serviceConfig=e,this.graphQLClient=this.getGraphQLClient()}getGraphQLClient(){var e,t;if(!this.serviceConfig.clientFactory)throw Error("clientFactory needs to be provided when initializing GraphQL client.");return this.serviceConfig.clientFactory({debugger:this.serviceConfig.debugger||n.debug.http,retries:null==(e=this.serviceConfig.retries)?void 0:e.count,retryStrategy:null==(t=this.serviceConfig.retries)?void 0:t.retryStrategy})}}class S extends T{constructor(e){super(e),this.serviceConfig=e}async fetchLayoutData(e,t,r){var i,n;let a=t.site,s=this.getLayoutQuery(e,a,null==t?void 0:t.locale);u.default.layout("fetching layout data for %s %s %s",e,null==t?void 0:t.locale,a);let o=await this.graphQLClient.request(s,{},r);return(null==(n=null==(i=null==o?void 0:o.layout)?void 0:i.item)?void 0:n.rendered)||{sitecore:{context:{pageEditing:!1,language:null==t?void 0:t.locale},route:null}}}getLayoutQuery(e,t,r){let i=r?`, language:"${r}"`:"",n=this.serviceConfig.formatLayoutQuery?this.serviceConfig.formatLayoutQuery(t,e,r):`layout(site:"${t}", routePath:"${e}"${i})`;return`query ContentSdkLayoutQuery {
40      ${n}{
41        item {
42          rendered
43        }
44      }
45    }`}}var C=e.i(143100);let E=new URL(a.constants.SITECORE_EXPERIENCE_EDGE_URL_DEFAULT).hostname;function k(e){try{return new URL(e.startsWith("http")?e:`https://${e}`).hostname.toLowerCase()!==E}catch(e){return!1}}let N=RegExp(`https?://${E.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}`,"gi");function I(e,t){let r=(0,g.normalizeUrl)(t);return k(r)?function e(t,r){if(null==t)return t;if("string"==typeof t)return A(t,r);
45if(Array.isArray(t))return t.map(t=>e(t,r));if("object"==typeof t){if(Object.getPrototypeOf(t)!==Object.prototype)return t;let i={};for(let n of Object.keys(t))i[n]=e(t[n],r);return i}return t}(e,r):e}function A(e,t){return N.lastIndex=0,e.replace(N,t)}var j=e.i(18621),P=e.i(812099);let O=e=>Object.assign(Object.assign({},e),{componentName:P.HIDDEN_RENDERING_NAME,experiences:{}});function L(e,t,r){var i;e.sitecore.context.variantId=t;let n=(null==(i=e.sitecore.route)?void 0:i.placeholders)||{};if(0===Object.keys(n).length)return;let a=e.sitecore.context.pageEditing;return Object.keys(n).forEach(e=>{n[e]=function e(t,r,i){return t.map(t=>{if(void 0!==t.experiences){var n=t,a=r,s=i;let o=Object.keys(n.experiences).find(e=>a.includes(e)),l=o&&n.experiences[o];if(l||n.componentName)if(l&&null===l.componentName&&null===l.dataSource)if(!s)return null;else n=O(n);else l&&(n=l);else{if(!s)return null;n=O(n)}return n.experiences&&(n.experiences={}),n.placeholders&&Object.keys(null==n?void 0:n.placeholders).forEach(t=>{n.placeholders&&(n.placeholders[t]=e(n.placeholders[t],a))}),n}if(t.placeholders){let n=t.placeholders;Object.keys(n).forEach(t=>{n[t]=e(n[t],r,i)})}return t}).filter(Boolean)}(n[e],[t,...r||[]],a)}),n}let{ERROR_MESSAGES:D}=a.constants,R=`
46  query ErrorPagesQuery($siteName: String!, $language: String!) {
47    site {
48      siteInfo(site: $siteName) {
49        errorHandling(language: $language) {
50          notFoundPage {
51            rendered
52          }
53          notFoundPagePath
54          serverErrorPage {
55            rendered
56          }
57          serverErrorPagePath
58        }
59      }
60    }
61  }
62`;class M{constructor(e){this.options=e,this.graphQLClient=this.getGraphQLClient()}get query(){return R}async fetchErrorPages(e,t,r){let i=t||this.options.language;if(!e)throw Error(D.MV_002);return this.graphQLClient.request(this.query,{siteName:e,language:i},r).then(e=>{var t,r;if(!e.site.siteInfo)return null;let i=e.site.siteInfo.errorHandling,n=(null==(t=i.notFoundPage)?void 0:t.rendered)?{rendered:i.notFoundPage.rendered}:null,a=(null==(r=i.serverErrorPage)?void 0:r.rendered)?{rendered:i.serverErrorPage.rendered}:null;return Object.assign(Object.assign({},i),{notFoundPage:n,serverErrorPage:a})}).catch(e=>Promise.reject(e))}getGraphQLClient(){var e,t;if(!this.options.clientFactory)throw Error("clientFactory needs to be provided when initializing GraphQL client.");return this.options.clientFactory({debugger:u.default.errorpages,retries:null==(e=this.options.retries)?void 0:e.count,retryStrategy:null==(t=this.options.retries)?void 0:t.retryStrategy})}}var B=e.i(829126);let{ERROR_MESSAGES:U}=a.constants;class F{constructor(e){this.options=e,this._graphQLClient=this.getGraphQLClient()}get graphQLClient(){return this._graphQLClient}get query(){let e;return e=this.options.includePersonalizedRoutes,`
63query ${e?"PersonalizeSitemapQuery":"DefaultSitemapQuery"}(
64  $siteName: String!
65  $language: String!
66  $includedPaths: [String]
67  $excludedPaths: [String]
68  $pageSize: Int = 100
69  $after: String
70) {
71  site {
72    siteInfo(site: $siteName) {
73      routes(
74        language: $language
75        includedPaths: $includedPaths
76        excludedPaths: $excludedPaths
77        first: $pageSize
78        after: $after
79      ){
80        total
81        pageInfo {
82          endCursor
83          hasNext
84        }
85        results {
86          path: routePath
87          ${e?`
88              route {
89                personalization {
90                  variantIds
91                }
92              }`:""}
93        }
94      }
95    }
96  }
97}
98`}async fetchSiteRoutes(e,t,r){let i=(e,t)=>({params:{path:e},locale:t}),n=[];if(!t.length)throw RangeError(U.MV_009);if(!e||!e.length)throw RangeError("The list of sites cannot be empty");for(let a=0;a<e.length;a++)for(let s of t){let t=await this.fetchLanguageSitePaths(s,e[a],r),o=await this.transformLanguageSitePaths(t,i,s);n.push(...o)}return[].concat(...n)}async transformLanguageSitePaths(e,t,r){let i=e=>decodeURI(e).replace(/^\/|\/$/g,"").split("/"),n=[];return e.forEach(e=>{var a,s,o;if(!e)return;n.push(t(i(e.path),r));let l=null==(o=null==(s=null==(a=e.route)?void 0:a.personalization)?void 0:s.variantIds)?void 0:o.filter(e=>!e.includes("_"));(null==l?void 0:l.length)&&n.push(...l.map(n=>t(i((0,j.getPersonalizedRewrite)(e.path,[n])),r)))}),n}getGraphQLClient(){if(!this.options.clientFactory)throw Error("clientFactory needs to be provided when initializing GraphQL client.");return this.options.clientFactory({debugger:u.default.sitemap})}async fetchLanguageSitePaths(e,t,r){var i,n,a,s;let o={siteName:t,language:e,pageSize:this.options.pageSize,includedPaths:this.options.includedPaths,excludedPaths:this.options.excludedPaths},l=[],c=!0,d="";for(u.default.sitemap("fetching sitemap data for %s %s",e,t);c;){let e=await this.graphQLClient.request(this.query,Object.assign(Object.assign({},o),{after:d}),r);if(null==(i=null==e?void 0:e.site)?void 0:i.siteInfo)l=l.concat(null==(n=e.site.siteInfo.routes)?void 0:n.results),c=null==(a=e.site.siteInfo.routes)?void 0:a.pageInfo.hasNext,d=null==(s=e.site.siteInfo.routes)?void 0:s.pageInfo.endCursor;else throw RangeError(U.IV_007(t))}
98return l.forEach(e=>{e&&(e.path=(0,B.getSiteRewrite)(e.path,{siteName:t}))}),l}}let{ERROR_MESSAGES:$}=a.constants,z="sitemap",q=`
99  query SitemapQuery($siteName: String!) {
100    site {
101      siteInfo(site: $siteName) {
102        sitemap
103      }
104    }
105  }
106`;class H{constructor(e){this.options=e,this.graphQLClient=this.getGraphQLClient()}get query(){return q}async fetchSitemaps(e){let t=this.options.siteName;if(!t)throw Error($.MV_002);let r=this.graphQLClient.request(this.query,{siteName:t},e);try{return r.then(e=>e.site.siteInfo.sitemap)}catch(e){return Promise.reject(e)}}async getSitemap(e){let t;if(void 0!==e){if(""===e)t=`${z}.xml`;else{let r=e.startsWith("-")?e.slice(1):e;t=`${z}-${r}.xml`}return(await this.fetchSitemaps()).find(e=>e.includes(t))}}getGraphQLClient(){if(!this.options.clientFactory)throw Error("clientFactory needs to be provided when initializing GraphQL client.");return this.options.clientFactory({debugger:u.default.sitemap})}}var W=e.i(761749);let{ERROR_MESSAGES:V}=a.constants,G=`
107  query RobotsQuery($siteName: String!) {
108    site {
109      siteInfo(site: $siteName) {
110        robots
111      }
112    }
113  }
114`;class X{constructor(e){this.options=e,this.graphQLClient=this.getGraphQLClient()}get query(){return G}async fetchRobots(e){let t=this.options.siteName;if(!t)throw Error(V.MV_002);let r=this.graphQLClient.request(this.query,{siteName:t},e);try{return r.then(e=>{var t,r;return null==(r=null==(t=null==e?void 0:e.site)?void 0:t.siteInfo)?void 0:r.robots})}catch(e){return Promise.reject(e)}}getGraphQLClient(){if(!this.options.clientFactory)throw Error("clientFactory needs to be provided when initializing GraphQL client.");return this.options.clientFactory({debugger:u.default.robots})}}var K=e.i(426868),Y=e.i(285463),Q=e.i(225790);let{ERROR_MESSAGES:J}=a.constants;(t=r||(r={})).NotFound="404",t.InternalServerError="500";class Z{constructor(e){var t,r,i,a,s,o,l,c,u,d;this.initOptions=e,this.clientFactory=this.getClientFactory(),this.graphQLClient=this.clientFactory({debugger:n.debug.http});const p=this.getBaseServiceOptions();this.layoutService=null!=(r=null==(t=e.custom)?void 0:t.layoutService)?r:this.getLayoutService(p),this.dictionaryService=null!=(a=null==(i=e.custom)?void 0:i.dictionaryService)?a:this.getDictionaryService(p),this.editingService=null!=(o=null==(s=e.custom)?void 0:s.editingService)?o:this.getEditingService(),this.errorPagesService=null!=(c=null==(l=e.custom)?void 0:l.errorPagesService)?c:this.getErrorPagesService(),this.sitePathService=null!=(d=null==(u=e.custom)?void 0:u.sitePathService)?d:this.getSitePathService(),this.componentService=this.getComponentService()}parsePath(e){return"string"==typeof e?e.startsWith("/")?e:`/${e}`:`/${e.filter(e=>"/"!==e).map(e=>e.replace(/^\/+/,"").replace(/\/+$/,"")).join("/")}`}getData(e,t,r){return this.graphQLClient.request(e,t,r)}async getPage(e,t,r){var i,n,a,s;let o=this.parsePath(e),l=null!=(i=null==t?void 0:t.locale)?i:this.initOptions.defaultLanguage,c=null!=(n=null==t?void 0:t.site)?n:this.initOptions.defaultSite,u=await this.layoutService.fetchLayoutData(o,{locale:l,site:c},r);return u.sitecore.route?((null==(a=null==t?void 0:t.personalize)?void 0:a.variantId)&&L(u,t.personalize.variantId,t.personalize.componentVariantIds),{layout:u=this.applyContentRewrite(u),siteName:(null==(s=u.sitecore.context.site)?void 0:s.name)||c,locale:l,mode:this.getPageMode(C.LayoutServicePageState.Normal)}):null}getHeadLinks(e,t={}){let{enableStyles:r=!0,enableThemes:i=!0}=t,{contextId:n,clientContextId:a}=this.initOptions.api.edge,o=[],l=n||a,c=(0,s.resolveEdgeUrlForStaticFiles)();if(r){let t=((e,t,r=v.constants.SITECORE_EDGE_PLATFORM_URL_DEFAULT)=>{if(!e.sitecore.route)return null;let i={loadStyles:!1};return(w(e.sitecore.route,i),i.loadStyles)?{href:((e,t=v.constants.SITECORE_EDGE_PLATFORM_URL_DEFAULT)=>`${(0,g.normalizeUrl)(t)}/v1/files/pages/styles/content-styles.css?sitecoreContextId=${e}`)(t,r),rel:"stylesheet"}:null})(e,l,c);t&&o.push(t)}return i&&o.push(...function(e,t,r=f.constants.SITECORE_EDGE_PLATFORM_URL_DEFAULT){let i=new Set;return e.sitecore.route?(b(e.sitecore.route,i),[...i].map(e=>({href:((e,t,r=f.constants.SITECORE_EDGE_PLATFORM_URL_DEFAULT)=>`${(0,g.normalizeUrl)(r)}/v1/files/components/styles/${e}
114.css?sitecoreContextId=${t}`)(e,t,r),rel:"stylesheet"}))):[]}(e,l,c)),o}async getDictionary(e,t){let r=(null==e?void 0:e.locale)||this.initOptions.defaultLanguage,i=(null==e?void 0:e.site)||this.initOptions.defaultSite;return await this.dictionaryService.fetchDictionaryData(r,i,t)}async getErrorPages(e,t){let r=(null==e?void 0:e.locale)||this.initOptions.defaultLanguage,i=(null==e?void 0:e.site)||this.initOptions.defaultSite;return await this.errorPagesService.fetchErrorPages(i,r,t)}async getPreview(e,t){var r;if(!e)return console.error("Preview data missing"),null;let{site:i,itemId:n,language:a,version:s,layoutKind:o,mode:l}=e,c=Array.isArray(e.variantIds)?e.variantIds:e.variantIds.split(","),u=await this.editingService.fetchEditingData({itemId:n,language:a,version:s,layoutKind:o,mode:l,site:i},t);if(!u)throw Error(`Unable to fetch editing data for preview ${JSON.stringify(e)}. ${J.CONTACT_SUPPORT}`);if(!u.layoutData.sitecore.route)return null;let d=u.layoutData,p=(0,j.getGroomedVariantIds)(c);return L(d,p.variantId,p.componentVariantIds),{locale:a,layout:d=this.applyContentRewrite(d),siteName:(null==(r=d.sitecore.context.site)?void 0:r.name)||i,mode:this.getPageMode(l)}}async getDesignLibraryData(e,t){var r;let{itemId:i,componentUid:n,site:a,language:s,renderingId:o,dataSourceId:l,version:c,mode:u,generation:d}=e,p=await this.componentService.fetchComponentData(Object.assign({siteName:a,itemId:i,language:s,componentUid:n,renderingId:o,dataSourceId:l,version:c,mode:u},d?{generation:d}:{}),t);if(!p)throw Error(`Unable to fetch editing data for preview ${JSON.stringify(e)}. ${J.CONTACT_SUPPORT}`);let h=this.applyContentRewrite(p);return{locale:e.language,layout:h,siteName:(null==(r=h.sitecore.context.site)?void 0:r.name)||a,mode:this.getPageMode(u,d)}}async getErrorPage(e,t,i){var n,a;let s=(null==t?void 0:t.locale)||this.initOptions.defaultLanguage,o=(null==t?void 0:t.site)||this.initOptions.defaultSite,l=await this.getErrorPages({site:o,locale:s},i),c=null;switch(e){case r.NotFound:c=(null==(n=null==l?void 0:l.notFoundPage)?void 0:n.rendered)||null;break;case r.InternalServerError:c=(null==(a=null==l?void 0:l.serverErrorPage)?void 0:a.rendered)||null;break;default:return null}return c?{layout:c=this.applyContentRewrite(c),locale:s,mode:this.getPageMode(C.LayoutServicePageState.Normal),siteName:o}:null}async getPagePaths(e,t,r){return this.sitePathService.fetchSiteRoutes(e,t||[],r)}async getSiteMap(e,t){let{reqHost:r,reqProtocol:n,id:a,siteName:o}=e,l=this.getGraphqlSitemapXMLService(o||this.initOptions.defaultSite),c=await l.getSitemap(a);if(c)try{let e=(0,s.resolveExperienceEdgeUrl)(),t=I(c,e),r=new i.NativeDataFetcher,n=await r.fetch(t);if(!n.data)throw Error("REDIRECT_404");return I(n.data,e)}catch(e){throw Error("REDIRECT_404")}let u=await l.fetchSitemaps(t);if(!u.length)throw Error("REDIRECT_404");return`<?xml version="1.0" encoding="UTF-8"?>
115      <sitemapindex xmlns="http://sitemaps.org/schemas/sitemap/0.9">
116      ${u.map(e=>{let t=e.split("/"),i=t[t.length-1],a=`${n}://${r}/${i}`.replace(/&/g,"&amp;");return`<sitemap><loc>${a}</loc></sitemap>`}).join("")}
117      </sitemapindex>`}async getRobots(e,t){let r=this.getRobotsService(e||this.initOptions.defaultSite);return await r.fetchRobots(t)||null}getGraphqlSitemapXMLService(e){return new H({clientFactory:this.clientFactory,siteName:e})}getRobotsService(e){return new X({clientFactory:this.clientFactory,siteName:e})}getBaseServiceOptions(){return{defaultSite:this.initOptions.defaultSite,clientFactory:this.clientFactory,retries:this.initOptions.retries}}applyContentRewrite(e){let t,r=this.initOptions.rewriteMediaUrls;if(!r)return e;let i=(0,s.resolveExperienceEdgeUrl)();return function e(t,r){if(null==t)return t;if("string"==typeof t)return r(t);if(Array.isArray(t))return t.map(t=>e(t,r));if("object"==typeof t&&Object.getPrototypeOf(t)===Object.prototype){let i={};for(let n of Object.keys(t))i[n]=e(t[n],r);return i}return t}(e,!0===r?k(t=(0,g.normalizeUrl)(i))?e=>A(e,t):e=>e:r)}getPageMode(e,t){let r={name:e,isNormal:!1,isPreview:!1,isEditing:!1,isDesignLibrary:!1,designLibrary:{isVariantGeneration:!1}};switch(e){case C.LayoutServicePageState.Normal:r.isNormal=!0;break;case C.LayoutServicePageState.Preview:r.isPreview=!0;break;case C.LayoutServicePageState.Edit:r.isEditing=!0;break;case K.DesignLibraryMode.Normal:r.isDesignLibrary=!0;break;case K.DesignLibraryMode.Metadata:r.isDesignLibrary=!0,r.isEditing=!0}return r.isDesignLibrary&&t===K.DesignLibraryVariantGeneration.Variant&&(r.designLibrary.isVariantGeneration=!0,r.isEditing=!0),r}getClientFactory(){let e={api:this.initOptions.api,retries:this.initOptions.retries.count,retryStrategy:this.initOptions.retries.retryStrategy};return(0,W.createGraphQLClientFactory)(e)}getLayoutService(e){return new S(Object.assign(Object.assign({},e),{formatLayoutQuery:this.initOptions.layout.formatLayoutQuery}))}getDictionaryService(e){return new h(Object.assign(Object.assign({},e),{cacheEnabled:this.initOptions.dictionary.caching.enabled,cacheTimeout:this.initOptions.dictionary.caching.timeout}))}getEditingService(){return new Y.EditingService({clientFactory:this.clientFactory})}getErrorPagesService(){return new M(Object.assign(Object.assign({},this.initOptions),{language:this.initOptions.defaultLanguage,clientFactory:this.clientFactory}))}getComponentService(){return new Q.ComponentLayoutService(this.initOptions.api.edge)}getSitePathService(){return new F({clientFactory:this.clientFactory})}}e.s(["ErrorPage",0,r,"SitecoreClient",0,Z],994740);var ee=e.i(358909);class et{async fetchComponentProps(e){var t;let{layoutData:r,context:i,components:n}=e,a=await this.collectRequests({placeholders:null==(t=r.sitecore.route)?void 0:t.placeholders,components:n,layoutData:r,context:i});return await this.execRequests(a)}async collectRequests(e){let{placeholders:t={},components:r,layoutData:i,context:n}=e;e.requests||(e.requests=[]);let a=this.flatRenderings(t).map(async t=>{var a;let s=null==(a=await this.getModule(r,t.componentName))?void 0:a.getComponentServerProps;s&&e.requests&&e.requests.push({fetch:s,rendering:t,layoutData:i,context:n}),t.placeholders&&await this.collectRequests(Object.assign(Object.assign({},e),{placeholders:t.placeholders}))});return await Promise.all(a),e.requests}async execRequests(e){let t={},r=e.map(e=>{let{uid:r}=e.rendering;return r?e.fetch(e.rendering,e.layoutData,e.context).then(e=>{t[r]=e}).catch(i=>{let n=`Error during preload data for component ${e.rendering.componentName} (${r}): ${i.message||i}`;console.error(ee.default.red(n)),t[r]={error:i.message||n,componentName:e.rendering.componentName}}):void console.log(`Component ${e.rendering.componentName} doesn't have uid, can't store data for this component`)});return await Promise.all(r),t}flatRenderings(e){let t=[];
117return Object.values(e).forEach(e=>{t.push(...e)}),t}async getModule(e,t){var r;let i=e.get(t);return i?i.dynamicModule?await (null==(r=null==i?void 0:i.dynamicModule)?void 0:r.call(i)):i:null}}var er=e.i(422822);let{ERROR_MESSAGES:ei}=a.constants,en=(0,W.createGraphQLClientFactory)({api:er.default.api,retries:er.default.retries?.count,retryStrategy:er.default.retries?.retryStrategy}),ea=new class extends M{async fetchErrorPages(e,t,r){let i=t||this.options.language;if(!e)throw Error(ei.MV_002);return this.graphQLClient.request(this.query,{siteName:e,language:i},r).then(e=>{if(!e.site?.siteInfo)return null;let t=e.site.siteInfo.errorHandling;if(!t)return null;let r=t.notFoundPage?.rendered?{rendered:t.notFoundPage.rendered}:null,i=t.serverErrorPage?.rendered?{rendered:t.serverErrorPage.rendered}:null;return{...t,notFoundPage:r,serverErrorPage:i}})}}({...er.default,language:er.default.defaultLanguage??"en",clientFactory:en}),es=new class extends Z{constructor(e){super(e),this.initOptions=e,this.componentPropsService=this.getComponentPropsService()}getSiteNameFromPath(e){let t=super.parsePath(e);return(0,B.getSiteRewriteData)(t,this.initOptions.defaultSite).siteName}parsePath(e){let t=super.parsePath(e);return(0,B.normalizeSiteRewrite)((0,j.normalizePersonalizedRewrite)(t))}async getPage(e,t,r){let i=this.parsePath(e),n=t.personalize||(0,j.getPersonalizedRewriteData)(super.parsePath(e)),a=t.site||this.getSiteNameFromPath(e);return await super.getPage(i,{locale:t.locale,site:a,personalize:n},r)}async getDesignLibraryData(e,t){return super.getDesignLibraryData(e,t)}async getPreview(e,t){return super.getPreview(e,t)}async getAppRouterStaticParams(e,t,r){let i=await super.getPagePaths(e,t,r),n=[];return i.map(e=>{var t;let r=(0,B.normalizeSiteRewrite)(e.params.path.join("/")).split("/");n.push({locale:null!=(t=e.locale)?t:this.initOptions.defaultLanguage,site:this.getSiteNameFromPath(e.params.path),path:r})}),n}async getPagePaths(e,t,r){var i;let n=await super.getPagePaths(e,t,r);return(null==(i=this.initOptions.multisite)?void 0:i.enabled)||n.map(e=>{e.params.path=(0,B.normalizeSiteRewrite)(e.params.path.join("/")).split("/")}),n}async getComponentData(e,t,r){let i={};if(!e.sitecore.route)return i;let n=Object.keys(i=await this.componentPropsService.fetchComponentProps({layoutData:e,context:t,components:r})).map(e=>{let t=i[e];return t.error?`
118Unable to get component props for ${t.componentName} (${e}): ${t.error}`:""}).join("");if(n.length)throw Error(n);return i}getPreviewData(e){var t;let r=null!=(t=e.get("x-sitecore-editing-params"))?t:"";if(!r)return{};try{return JSON.parse(r)}catch(e){return{}}}getComponentPropsService(){return new et}}({...er.default,custom:{...er.default.custom,errorPagesService:ea}});e.s(["default",0,es],250754)},754386,e=>{"use strict";var t=e.i(271645);e.s([],598677),e.i(598677);var r=e.i(118596),i=e.i(216369),n=e.i(757891),a=e.i(400203),s=e.i(556226),o=e.i(647133),l=e.i(920978),c=e.i(738766);e.s(["ANALYTICS_PLUGIN_NAME",()=>l.ANALYTICS_PLUGIN_NAME,"API_VERSION",()=>a.API_VERSION,"BOT_DETECTION_COOKIE",()=>c.BOT_DETECTION_COOKIE,"CLIENT_ID_COOKIE_NAME",()=>a.CLIENT_ID_COOKIE_NAME,"COOKIE_NAME_PREFIX",()=>a.COOKIE_NAME_PREFIX,"CORRELATION_ID_HEADER",()=>a.CORRELATION_ID_HEADER,"DAILY_SECONDS",()=>a.DAILY_SECONDS,"DEFAULT_COOKIE_EXPIRY_DAYS",()=>a.DEFAULT_COOKIE_EXPIRY_DAYS,"LIBRARY_VERSION",()=>a.LIBRARY_VERSION,"fetchClientIdFromEdgeProxy",()=>s.fetchClientIdFromEdgeProxy,"generateCorrelationId",()=>n.generateCorrelationId,"getAnalyticsPlugin",()=>o.getAnalyticsPlugin,"getDefaultCookieAttributes",()=>r.getDefaultCookieAttributes,"isBot",()=>c.isBot,"isBotClientSide",()=>c.isBotClientSide,"isBotServerSide",()=>c.isBotServerSide,"language",()=>i.language,"pageName",()=>i.pageName],427332);var u=e.i(427332);e.s([],90692),e.i(90692),e.i(523472);var d=e.i(3529),p=e.i(122707),h=e.i(445510),f=e.i(228242);let{ERROR_MESSAGES:g}=p.constants,m=async(e,t,r)=>{if(!e)return f.default.form(`${g.MV_001}. Form was not able to render.`),"";let i=(0,h.getEdgeProxyFormsUrl)(e,t,r);try{f.default.form(`Fetching form data from ${i}`);
118let e=await fetch(i,{method:"GET",cache:"no-cache"});if(200!==e.status)throw Error(`Failed to fetch form data. ${g.CONTACT_SUPPORT}`);let t=await e.text();return f.default.form(`Form data fetch response: ${t}`),t}catch(e){throw f.default.form(`Form '${t}' was not able to render. ${g.CONTACT_SUPPORT}`,e),e}};e.s(["executeScriptElements",0,e=>{let t=e.querySelectorAll("script");t&&Array.from(t).forEach(e=>{var t;let r=document.createElement("script");Array.from(e.attributes).forEach(e=>{r.setAttribute(e.name,e.value)}),r.text=e.text,null==(t=null==e?void 0:e.parentNode)||t.replaceChild(r,e)})},"loadForm",0,m,"subscribeToFormSubmitEvent",0,(e,t)=>{e.addEventListener("form:engage",e=>{let{formId:r,name:i}=e.detail;r&&i&&(f.default.form("Sending form event",r,i),(0,d.form)(r,i,(null==t?void 0:t.replace(/-/g,""))||""))})}],549826);var y=e.i(549826),y=y,b=e.i(882596),v=e.i(809467);let{ERROR_MESSAGES:x}=p.constants,{executeScriptElements:_,loadForm:w,subscribeToFormSubmitEvent:T}=y,{isBotClientSide:S}=u;e.s(["Form",0,({params:e,rendering:r})=>{var i,n,a,s,o;let l=null==e?void 0:e.RenderingIdentifier,[c,u]=(0,t.useState)(!1),[d,p]=(0,t.useState)(""),h=(0,b.useSitecore)(),f=(0,t.useRef)(null),g=h.page.mode.isEditing;return((0,t.useEffect)(()=>{var t,r,i,n;if(!d){let a=null==(r=null==(t=h.api)?void 0:t.edge)?void 0:r.clientContextId;if(!a)return void console.warn(`${x.MV_006}. Form cannot be loaded properly on the client`);w(a,e.FormId,null==(n=null==(i=h.api)?void 0:i.edge)?void 0:n.edgeUrl).then(p).catch(()=>{g&&console.error(`Failed to load form with id ${e.FormId}. Check debug logs for content-sdk:form for more details. ${x.CONTACT_SUPPORT}`),u(!0)})}},[d,g,e.FormId,null==(n=null==(i=h.api)?void 0:i.edge)?void 0:n.clientContextId,null==(s=null==(a=h.api)?void 0:a.edge)?void 0:s.edgeUrl]),(0,t.useEffect)(()=>{d&&f.current&&(f.current.innerHTML=d,_(f.current),g||S()||T(f.current,r.uid))},[d,g,r.uid]),g&&c)?t.default.createElement(v.ErrorComponent,{message:"There was a problem loading this section"}):t.default.createElement("div",{ref:f,className:null==(o=e.styles)?void 0:o.trimEnd(),id:l||void 0})},"mockAnalyticsInternalModule",0,e=>{S=e.isBotClientSide},"mockFormModule",0,e=>{_=e.executeScriptElements,w=e.loadForm,T=e.subscribeToFormSubmitEvent}],754386)},554831,e=>{"use strict";var t=e.i(843476),r=e.i(250754);e.s(["default",0,({layoutData:e,enableStyles:i,enableThemes:n})=>{let a=r.default.getHeadLinks(e,{enableStyles:i,enableThemes:n});return 0===a.length?null:(0,t.jsx)(t.Fragment,{children:a.map(({rel:e,href:r})=>(0,t.jsx)("link",{rel:e,href:r,precedence:"high"},r))})}])},836159,(e,t,r)=>{"use strict";function i(){return null}Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"default",{enumerable:!0,get:function(){return i}}),("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},508364,558363,411105,479858,915080,798493,e=>{"use strict";var t=e.i(843476),r=e.i(466339);function i(e,t,n={}){let a={},s=e=>null!=e?String(e):"";a.partnerName=s(e?.partnerName?.value),a.partnerShortDescription=s(e?.shortDescription?.value),a.partnerLogo=s(e?.partnerLogo?.value?.src??e?.partnerLogo?.value?.href),a.partnerType=(e?.PartnerType??[]).filter(e=>e?.fields?.Title?.value).map(e=>e.fields?.Title?.value).join(","),a.partnerTier=s(e?.PartnerTier?.fields?.Title?.value),a.partnerTypePath=(e?.PartnerType??[]).filter(e=>e?.fields?.Title?.value).map(e=>{var i;let a;if(!t||!e.url)return"";let s=e.fields?.Title?.value,o=n[new URL(e.url,"https://placeholder.local").pathname]??(0,r.titleCase)((i=e.url,a=i?.split("/").filter(Boolean),a?.[a.length-2]??""));return`/${o}/${s}`}).filter(Boolean).join(","),a.partnerSuccess=(e?.PartnerSuccess??[]).filter(e=>e?.fields?.Title?.value).map(e=>e.fields?.Title?.value).join(",");let o=(e?.Region??[]).filter(e=>e?.fields?.Title?.value).map(e=>e.fields?.Title?.value);return o.length&&(a.partnerRegion=String(o[0])),a}function n(e){let t=e?.eventFromDate?.value?.toString(),i=e?.eventToDate?.value?.toString(),n=(0,r.formatEventDateRange)(t,i);
118return{eventTitle:e?.eventTitle?.value??"",eventThumbnail:e?.eventThumbnail?.value?.src??"",eventType:e?.eventType?.fields?.Title?.value??"",description:e?.shortDescription?.value??"",eventStartDate:e?.eventFromDate?.value??"",eventToDate:e?.eventToDate?.value??"",eventDateLabel:n,eventLocation:e?.eventLocation?.value??""}}function a(e){let t=e?.customerStoryDate?.value?.toString();return{customerName:e?.customername?.value??"",customerLogo:e?.customerLogo?.value?.src??"",cutomerBriefSummary:e?.briefSummary?.value??"",customerStoryDate:t??"",customerStoryDateLabel:(0,r.formatDateLabel)(t),customerEyebrow:e?.customerEyebrow?.value??"",customerSubHeading:e?.customerSubHeading?.value??"",logo:e?.logo?.value?.src??"",stat:e?.stat?.value??"",statEyebrow:e?.statEyebrow?.value??""}}function s(e){let t=e?.newspublishDate?.value?.toString();return{newsTitle:e?.newsTitle?.value??"",newsDescription:e?.newsDescription?.value??"",timeToRead:e?.timetoRead?.value??"",newsThumbnail:e?.newsThumbnail?.value?.src??"",newsPublishDate:t??"",newsAuthor:e?.newsAuthor?.value??"",newsDateLabel:(0,r.formatDateLabel)(t)}}function o(e){let t=e?.assetPublishDate?.value?.toString();return{assetTitle:e?.assetTitle?.value??"",assetDescription:e?.assetDescription?.value??"",assetCoverImage:e?.assetCoverImage?.value?.src??"",assetPublishDate:t??"",assetPublishDateLabel:(0,r.formatDateLabel)(t)}}function l(e){return{marketplaceTitle:e?.marketplaceTitle?.value??"",description:e?.description?.value??"",marketplaceImage:e?.marketplaceImage?.value?.src??"",solutionArea:(0,r.joinTagTitles)(e?.SolutionArea)}}e.s(["default",0,({fields:e,wantPartner:r,partnerTypeParents:n={}})=>{let a=i(e,r,n);return(0,t.jsx)(t.Fragment,{children:Object.entries(a).map(([e,r])=>null!=r&&""!==r&&(0,t.jsx)("meta",{property:e,content:r},e))})},"getPartnerSearchMeta",0,i],508364),e.s(["default",0,({fields:e})=>{let r=n(e);return(0,t.jsx)(t.Fragment,{children:Object.entries(r).map(([e,r])=>null!=r&&""!==r&&(0,t.jsx)("meta",{property:e,content:r},e))})},"getEventSearchMeta",0,n],558363),e.s(["default",0,({fields:e})=>{let r=a(e);return(0,t.jsx)(t.Fragment,{children:Object.entries(r).map(([e,r])=>null!=r&&""!==r&&(0,t.jsx)("meta",{property:e,content:r},e))})},"getCustomerStoriesSearchMeta",0,a],411105),e.s(["default",0,({fields:e})=>{let r=s(e);return(0,t.jsx)(t.Fragment,{children:Object.entries(r).map(([e,r])=>null!=r&&""!==r&&(0,t.jsx)("meta",{property:e,content:r},e))})},"getNewsSearchMeta",0,s],479858),e.s(["default",0,({fields:e})=>{let r=o(e);return(0,t.jsx)(t.Fragment,{children:Object.entries(r).map(([e,r])=>null!=r&&""!==r&&(0,t.jsx)("meta",{property:e,content:r},e))})},"getAssetSearchMeta",0,o],915080),e.s(["default",0,({fields:e})=>{let r=l(e);return(0,t.jsx)(t.Fragment,{children:Object.entries(r).map(([e,r])=>null!=r&&""!==r&&(0,t.jsx)("meta",{property:e,content:r},e))})},"getMarketplaceSearchMeta",0,l],798493)},838316,e=>{"use strict";var t=e.i(843476),r=e.i(836159),i=e.i(466339),n=e.i(508364),a=e.i(558363),s=e.i(310099),o=e.i(411105),l=e.i(479858),c=e.i(915080),u=e.i(798493);e.s(["default",0,({route:e})=>{let d=e.fields,p=e.templateId,{getDictionaryValue:h}=(0,s.default)(),f=h("I_Want_A_Partner_Who"),g=h("Continents");return(0,t.jsxs)(r.default,{children:[(0,t.jsx)("meta",{property:"id",content:e.itemId?.toString()}),(0,t.jsx)("meta",{property:"templateName",content:e.templateName?.toString()}),(0,t.jsx)("meta",{property:"includeInSearch",content:d.includeInIndex?.value?.toString()}),p==i.SearchPageTemplates.PartnerTemplate&&(0,t.jsx)(n.default,{fields:d,wantPartner:f}),p==i.SearchPageTemplates.EventTemplate&&(0,t.jsx)(a.default,{fields:d}),p==i.SearchPageTemplates.CustomerStoriesTemplate&&(0,t.jsx)(o.default,{fields:d}),p==i.SearchPageTemplates.NewsTemplate&&(0,t.jsx)(l.default,{fields:d}),p==i.SearchPageTemplates.AssetTemplate&&(0,t.jsx)(c.default,{fields:d}),p==i.SearchPageTemplates.MarketplaceTemplate&&(0,t.jsx)(u.default,{fields:d}),(0,t.jsx)("meta",{property:"keywords",content:d.MetaKeywords?.value?.toString()}),(0,t.jsx)("meta",{property:"boost",content:d.boost?.value?.toString()}),(0,t.jsx)("meta",{property:"contentType",content:d?.ContentType?.filter(e=>e?.fields?.Title?.value).map(e=>e.fields?.Title?.value).join(",")}),(0,t.jsx)("meta",{property:"industry",content:d?.Industry?.filter(e=>e?.fields?.Title?.value).map(e=>e.fields?.Title?.value).join(",")}),(0,t.jsx)("meta",{property:"product",content:d?.Product?.filter(e=>e?.fields?.Title?.value).map(e=>e.fields?.Title?.value).join(",")}),(0,t.jsx)("meta",{property:"productCategory",content:d?.ProductCategory?.filter(e=>e?.fields?.Title?.value).map(e=>e.fields?.Title?.value).join(",")}),(0,t.jsx)("meta",{property:"appCategory",content:d?.AppCategory?.filter(e=>e?.fields?.Title?.value).map(e=>e.fields?.Title?.value).join(",")}),(0,t.jsx)("meta",{property:"region",content:d?.Region?.filter(e=>e?.fields?.Title?.value).map(e=>e.fields?.Title?.value).join(",")}),(0,t.jsx)("meta",{property:"country",content:d?.Country?.filter(e=>e?.fields?.Title?.value).map(e=>e.fields?.Title?.value).join(",")}),(0,t.jsx)("meta",{property:"salesPlay",content:d?.["Sales Play"]?.filter(e=>e?.fields?.Title?.value).map(e=>e.fields?.Title?.value).join(",")}),(0,t.jsx)("meta",{property:"continents",content:d?.Continents?.filter(e=>e?.fields?.Title?.value).map(e=>{if(!g)return"";{let t=e.url?.indexOf("continents")+g.length+1;return`/${(0,i.titleCase)(e.url?.substring(t)?.split("/")[0])}/${e.fields?.Title?.value}`}}).join(",")})]})}])},571115,e=>{"use strict";var t=e.i(843476),r=e.i(795092);e.s(["Default",0,e=>{let i=e.fields?(0,t.jsx)(r.RichText,{field:e.fields.Text}):(0,t.jsx)("span",{className:"is-empty-hint",children:"Rich text"}),n=e.params.RenderingIdentifier;return(0,t.jsx)("div",{className:`component rich-text ${e?.params?.styles.trimEnd()}`,id:n||void 0,children:(0,t.jsx)("div",{className:"component-content",children:i})})}])},126489,e=>{"use strict";var t=e.i(843476),r=e.i(38563),i=e.i(385180),n=e.i(795092);let a=e=>(0,t.jsx)("div",{className:`component promo ${e?.params?.styles}`,children:(0,t.jsx)("div",{className:"component-content",children:(0,t.jsx)("span",{className:"is-empty-hint",children:"Promo"})})});e.s(["Default",0,e=>{let s=e.params.RenderingIdentifier;return e.fields?(0,t.jsx)("div",{className:`component promo ${e?.params?.styles}`,id:s||void 0,children:(0,t.jsxs)("div",{className:"component-content",children:[(0,t.jsx)("div",{className:"field-
118promoicon",children:(0,t.jsx)(r.NextImage,{field:e.fields.PromoIcon})}),(0,t.jsxs)("div",{className:"promo-text",children:[(0,t.jsx)("div",{children:(0,t.jsx)("div",{className:"field-promotext",children:(0,t.jsx)(n.RichText,{field:e.fields.PromoText})})}),(0,t.jsx)("div",{className:"field-promolink",children:(0,t.jsx)(i.Link,{field:e.fields.PromoLink})})]})]})}):(0,t.jsx)(a,{...e})},"WithText",0,e=>{let i=e.params.RenderingIdentifier;return e.fields?(0,t.jsx)("div",{className:`component promo ${e?.params?.styles}`,id:i||void 0,children:(0,t.jsxs)("div",{className:"component-content",children:[(0,t.jsx)("div",{className:"field-promoicon",children:(0,t.jsx)(r.NextImage,{field:e.fields.PromoIcon})}),(0,t.jsxs)("div",{className:"promo-text",children:[(0,t.jsx)("div",{children:(0,t.jsx)("div",{className:"field-promotext",children:(0,t.jsx)(n.RichText,{className:"promo-text",field:e.fields.PromoText})})}),(0,t.jsx)("div",{className:"field-promotext",children:(0,t.jsx)(n.RichText,{className:"promo-text",field:e.fields.PromoText2})})]})]})}):(0,t.jsx)(a,{...e})}])},783697,e=>{"use strict";var t=e.i(843476),r=e.i(828029);e.s(["EditingHelpText",0,function({children:e,className:i,inline:n,hideIf:a,priority:s,...o}){if(!(0,r.default)()||a)return(0,t.jsx)(t.Fragment,{});let l=`${i} ${"warning"===s?"ee-warning-text-block":"ee-help-text-block"}`;return n?(0,t.jsx)("span",{className:l,...o,children:e}):(0,t.jsx)("div",{className:l,...o,children:e})}])},206303,e=>{"use strict";e.s(["PlaceholderWrapper",()=>l]);var t=e.i(843476),r=e.i(271645),i=e.i(698778),n=e.i(81058),a=e.i(783697);e.i(879806);var s=e.i(871084),o=e.i(828029);function l({helpTextClassName:a,helpTextHideIf:s,helpTextContent:u,render:d,renderEach:p,renderEmpty:h,name:f,page:g,rendering:m,componentMap:y,gridAlignment:b,isLargeIcon:v,isGradient:x,isAnimation:_,visualVariant:w,...T}){let S=(0,o.default)(),C=(0,r.useContext)(n.ComponentPropsReactContext),E=y??e.r(614981).default,k=e=>{let t={...void 0!==b&&{gridAlignment:b},...void 0!==v&&{isLargeIcon:v},...void 0!==x&&{isGradient:x},...void 0!==_&&{isAnimation:_},...void 0!==w&&{visualVariant:w}},r=e.rendering.uid;if(!r)return{...e,...t};let i=C[r];return i&&"object"==typeof i?{...e,...t,...i}:{...e,...t}},N=(0,r.useCallback)((e,t,r)=>{if(!d)return null;if(S){let i=e?.[0],n=i?.props?.children,a=d(n,t,r);return i?.props?.children?.splice&&i.props.children.splice(0,n.length,a),i}return d(e,t,r)},[S,d]),I=(0,r.useCallback)((e,t)=>{if(!p)return null;if(S){let t=e?.props?.children,r=t?.map((e,t)=>p(e,t));return e?.props?.children?.splice&&e.props.children.splice(0,t.length,...r),e}return p(e,t)},[S,p]);return S?(0,t.jsxs)("div",{children:[(0,t.jsx)(c,{helpTextClassName:a,helpTextContent:u,helpTextHideIf:s,direction:"down",name:f}),(0,t.jsx)(i.AppPlaceholder,{...T,page:g,rendering:m,componentMap:E,name:f,modifyComponentProps:k,render:d?N:void 0,renderEach:p?I:void 0,renderEmpty:h??(e=>e)}),(0,t.jsx)(c,{helpTextClassName:a,helpTextContent:u,helpTextHideIf:s,direction:"up",name:f})]}):(0,t.jsx)(i.AppPlaceholder,{...T,page:g,rendering:m,componentMap:E,name:f,modifyComponentProps:k,render:d,renderEach:p,renderEmpty:h??(e=>e),disableSuspense:!0})}function c({helpTextClassName:e,helpTextHideIf:r,helpTextContent:i,direction:n,name:o}){let l="up"===n?"chevron-up":"chevron-down";return(0,t.jsx)(a.EditingHelpText,{className:e,hideIf:r,children:(0,t.jsxs)("div",{className:"flex justify-center",children:[(0,t.jsx)(s.SvgIcon,{className:"mx-2 my-1",icon:l,size:"xxs"}),i??`Placeholder: ${o}`,(0,t.jsx)(s.SvgIcon,{className:"mx-2 my-1",icon:l,size:"xxs"})]})})}},252297,e=>{"use strict";e.s(["default",()=>i]);var t=e.i(843476),r=e.i(206303);let i=e=>(0,t.jsx)(r.PlaceholderWrapper,{name:e.rendering?.params?.sig||"",rendering:e.rendering,page:e.page,componentMap:e.componentMap})},178999,e=>{"use strict";var t=e.i(843476),r=e.i(795092),i=e.i(422674);let n=e=>{let r=e.id;return(0,t.jsx)("div",{className:`component content ${e?.styles}`,id:r||void 0,children:(0,t.jsx)("div",{className:"component-content",children:(0,t.jsx)("div",{className:"field-content",children:e.children})})})};e.s(["Default",0,e=>{let{sitecoreContext:a}=(0,i.useSitecoreContext)(),s=a?.route,o=e.params.RenderingIdentifier;if(!(e.fields&&e.fields.Content)&&!s?.fields?.Content)return(0,t.jsx)("div",{className:`component content ${e?.params?.styles}`,id:o||void 0,children:(0,t.jsx)("div",{className:"component-content",children:(0,t.jsx)("div",{className:"field-content",children:"[Content]"})})});let l=e.fields&&e.fields.Content?e.fields.Content:s?.fields?.Content;return(0,t.jsx)(n,{styles:e?.params?.styles,id:o,children:(0,t.jsx)(r.RichText,{field:l})})}])},388589,e=>{"use strict";var t=e.i(843476),r=e.i(271645),i=e.i(385180),n=e.i(376917),a=e.i(422674);let s=function(e){return e.fields.NavigationTitle?(0,t.jsx)(n.Text,{field:e.fields.NavigationTitle}):e.fields.Title?(0,t.jsx)(n.Text,{field:e.fields.Title}):e.fields.DisplayName},o=e=>{let{sitecoreContext:n}=(0,a.useSitecoreContext)(),[c,u]=(0,r.useState)(!1),d=`${e?.fields?.Styles.concat("rel-level"+e.relativeLevel).join(" ")}`,p=[];return e.fields.Children&&e.fields.Children.length&&(p=e.fields.Children.map((r,i)=>(0,t.jsx)(o,{fields:r,handleClick:e.handleClick,relativeLevel:e.relativeLevel+1},`${i}${r.Id}`))),(0,t.jsxs)("li",{className:`${d} ${c?"active":""}`,tabIndex:0,children:[(0,t.jsx)("div",{className:`navigation-title ${p.length?"child":""}`,onClick:()=>u(()=>!c),children:(0,t.jsx)(i.Link,{field:{value:{href:e.fields.Href,title:l(e),querystring:e.fields.Querystring}},editable:n?.pageEditing,onClick:e.handleClick,children:s(e)})}),p.length>0?(0,t.jsx)("ul",{className:"clearfix",children:p}):null]},e.fields.Id)},l=e=>e.fields.NavigationTitle?.value?e.fields.NavigationTitle.value.toString():e.fields.Title?.value?e.fields.Title.value.toString():e.fields.DisplayName;e.s(["Default",0,e=>{let[i,n]=(0,r.useState)(!1),{sitecoreContext:s}=(0,a.useSitecoreContext)(),l=null!=e.params?`${e.params.GridParameters??""} ${e?.params?.Styles??""}`.trimEnd():"",c=null!=e.params?e.params.RenderingIdentifier:null;if(!Object.values(e.fields).length)return(0,t.jsx)("div",{className:`component navigation ${l}`,id:c||void 0,children:(0,t.jsx)("div",{className:"component-content",children:"[Navigation]"})});let u=(e,t)=>
118{if(e&&s?.pageEditing&&e.preventDefault(),void 0!==t)return n(t);n(!i)},d=Object.values(e.fields).filter(e=>e).map((e,r)=>(0,t.jsx)(o,{fields:e,handleClick:e=>u(e,!1),relativeLevel:1},`${r}${e.Id}`));return(0,t.jsx)("div",{className:`component navigation ${l}`,id:c||void 0,children:(0,t.jsxs)("label",{className:"menu-mobile-navigate-wrapper",children:[(0,t.jsx)("input",{type:"checkbox",className:"menu-mobile-navigate",checked:i,onChange:()=>u()}),(0,t.jsx)("div",{className:"menu-humburger"}),(0,t.jsx)("div",{className:"component-content",children:(0,t.jsx)("nav",{children:(0,t.jsx)("ul",{className:"clearfix",children:d})})})]})})}])},859765,e=>{"use strict";var t=e.i(843476),r=e.i(385180),i=e.i(376917);let n=e=>{let i=`item${e.index}`;return i+=(e.index+1)%2==0?" even":" odd",0==e.index&&(i+=" first"),e.index+1==e.total&&(i+=" last"),(0,t.jsx)("li",{className:i,children:(0,t.jsx)("div",{className:"field-link",children:(0,t.jsx)(r.Link,{field:e.field})})})};e.s(["Default",0,e=>{let r=e.fields?.data?.datasource,a=`component link-list ${e?.params?.styles}`.trimEnd(),s=e.params.RenderingIdentifier;if(r){let e=r.children.results.filter(e=>e?.field?.link).map((e,i)=>(0,t.jsx)(n,{index:i,total:r.children.results.length,field:e.field.link},`${i}${e.field.link}`));return(0,t.jsx)("div",{className:a,id:s||void 0,children:(0,t.jsxs)("div",{className:"component-content",children:[(0,t.jsx)(i.Text,{tag:"h3",field:r?.field?.title}),(0,t.jsx)("ul",{children:e})]})})}return(0,t.jsx)("div",{className:a,id:s||void 0,children:(0,t.jsx)("div",{className:"component-content",children:(0,t.jsx)("h3",{children:"Link List"})})})}])},310,e=>{"use strict";var t=e.i(843476),r=e.i(143100),i=e.i(38563),n=e.i(385180),a=e.i(376917),s=e.i(422674);let o=e=>(0,t.jsx)("div",{className:`component image ${e?.params?.styles}`.trimEnd(),children:(0,t.jsx)("div",{className:"component-content",children:(0,t.jsx)("span",{className:"is-empty-hint",children:"Image"})})});e.s(["Banner",0,e=>{let n=e.params.RenderingIdentifier,{sitecoreContext:a}=(0,s.useSitecoreContext)(),o=a?.pageEditing,l=a?.editMode===r.EditMode.Metadata,c=o&&e.fields?.Image?.value?.class==="scEmptyImage"?"hero-banner-empty":"",u=e?.fields?.Image?.value?.src&&{backgroundImage:`url('${e.fields.Image.value.src}')`},d=l?{...e.fields.Image,value:{...e.fields.Image.value,style:{width:"100%",height:"100%"}}}:{...e.fields.Image,editable:e?.fields?.Image?.editable?.replace(`width="${e?.fields?.Image?.value?.width}"`,'width="100%"').replace(`height="${e?.fields?.Image?.value?.height}"`,'height="100%"')};return(0,t.jsx)("div",{className:`component hero-banner ${e?.params?.styles} ${c}`,id:n||void 0,children:(0,t.jsx)("div",{className:"component-content sc-sxa-image-hero-banner",style:u,children:a?.pageEditing?(0,t.jsx)(i.NextImage,{field:d}):""})})},"Default",0,e=>{let{sitecoreContext:r}=(0,s.useSitecoreContext)();if(e.fields){let s=()=>(0,t.jsx)(i.NextImage,{field:e.fields.Image}),o=e.params.RenderingIdentifier;return(0,t.jsx)("div",{className:`component image ${e?.params?.styles}`,id:o||void 0,children:(0,t.jsxs)("div",{className:"component-content",children:[r?.pageState!=="edit"&&e.fields.TargetUrl?.value?.href?(0,t.jsx)(n.Link,{field:e.fields.TargetUrl,children:(0,t.jsx)(s,{})}):(0,t.jsx)(s,{}),(0,t.jsx)(a.Text,{tag:"span",className:"image-caption field-imagecaption",field:e.fields.ImageCaption})]})})}return(0,t.jsx)(o,{...e})}])},957645,(e,t,r)=>{"use strict";function i(e,t,r){if(e){for(let i of(r&&(r=r.toLowerCase()),e))if(t===i.domain?.split(":",1)[0].toLowerCase()||r===i.defaultLocale.toLowerCase()||i.locales?.some(e=>e.toLowerCase()===r))return i}}Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"detectDomainLocale",{enumerable:!0,get:function(){return i}})},152539,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"addPathSuffix",{enumerable:!0,get:function(){return n}});let i=e.r(572463);function n(e,t){if(!e.startsWith("/")||!t)return e;let{pathname:r,query:n,hash:a}=(0,i.parsePath)(e);return`${r}${t}${n}${a}`}},95524,(e,t,r)=>{"use strict";
118Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"addLocale",{enumerable:!0,get:function(){return a}});let i=e.r(541858),n=e.r(59084);function a(e,t,r,a){if(!t||t===r)return e;let s=e.toLowerCase();return!a&&((0,n.pathHasPrefix)(s,"/api")||(0,n.pathHasPrefix)(s,`/${t.toLowerCase()}`))?e:(0,i.addPathPrefix)(e,`/${t}`)}},230283,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"formatNextPathnameInfo",{enumerable:!0,get:function(){return o}});let i=e.r(938281),n=e.r(541858),a=e.r(152539),s=e.r(95524);function o(e){let t=(0,s.addLocale)(e.pathname,e.locale,e.buildId?void 0:e.defaultLocale,e.ignorePrefix);return(e.buildId||!e.trailingSlash)&&(t=(0,i.removeTrailingSlash)(t)),e.buildId&&(t=(0,a.addPathSuffix)((0,n.addPathPrefix)(t,`/_next/data/${e.buildId}`),"/"===e.pathname?"index.json":".json")),t=(0,n.addPathPrefix)(t,e.basePath),!e.buildId&&e.trailingSlash?t.endsWith("/")?t:(0,a.addPathSuffix)(t,"/"):(0,i.removeTrailingSlash)(t)}},513079,(e,t,r)=>{"use strict";function i(e,t){let r;if(t?.host&&!Array.isArray(t.host))r=t.host.toString().split(":",1)[0];else{if(!e.hostname)return;r=e.hostname}return r.toLowerCase()}Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"getHostname",{enumerable:!0,get:function(){return i}})},927711,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"normalizeLocalePath",{enumerable:!0,get:function(){return n}});let i=new WeakMap;function n(e,t){let r;if(!t)return{pathname:e};let n=i.get(t);n||(n=t.map(e=>e.toLowerCase()),i.set(t,n));let a=e.split("/",2);if(!a[1])return{pathname:e};let s=a[1].toLowerCase(),o=n.indexOf(s);return o<0?{pathname:e}:(r=t[o],{pathname:e=e.slice(r.length+1)||"/",detectedLocale:r})}},657979,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"removePathPrefix",{enumerable:!0,get:function(){return n}});let i=e.r(59084);function n(e,t){if(!(0,i.pathHasPrefix)(e,t))return e;let r=e.slice(t.length);return r.startsWith("/")?r:`/${r}`}},283605,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"getNextPathnameInfo",{enumerable:!0,get:function(){return s}});let i=e.r(927711),n=e.r(657979),a=e.r(59084);function s(e,t){let{basePath:r,i18n:s,trailingSlash:o}=t.nextConfig??{},l={pathname:e,trailingSlash:"/"!==e?e.endsWith("/"):o};r&&(0,a.pathHasPrefix)(l.pathname,r)&&(l.pathname=(0,n.removePathPrefix)(l.pathname,r),l.basePath=r);let c=l.pathname;if(l.pathname.startsWith("/_next/data/")&&l.pathname.endsWith(".json")){let e=l.pathname.replace(/^\/_next\/data\//,"").replace(/\.json$/,"").split("/");l.buildId=e[0],c="index"!==e[1]?`/${e.slice(1).join("/")}`:"/",!0===t.parseData&&(l.pathname=c)}if(s){let e=t.i18nProvider?t.i18nProvider.analyze(l.pathname):(0,i.normalizeLocalePath)(l.pathname,s.locales);l.locale=e.detectedLocale,l.pathname=e.pathname??l.pathname,!e.detectedLocale&&l.buildId&&(e=t.i18nProvider?t.i18nProvider.analyze(c):(0,i.normalizeLocalePath)(c,s.locales)).detectedLocale&&(l.locale=e.detectedLocale)}return l}},973670,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"NextURL",{enumerable:!0,get:function(){return u}});let i=e.r(957645),n=e.r(230283),a=e.r(513079),s=e.r(283605),o=/^(?:127(?:\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}|\[::1\]|localhost)$/;function l(e,t){let r=new URL(String(e),t&&String(t));return o.test(r.hostname)&&(r.hostname="localhost"),r}let c=Symbol("NextURLInternal");class u{constructor(e,t,r){let i,n;"object"==typeof t&&"pathname"in t||"string"==typeof t?(i=t,n=r||{}):n=r||t||{},this[c]={url:l(e,i??n.base),options:n,basePath:""},this.analyze()}analyze(){var e,t,r,n,o;let l=(0,s.getNextPathnameInfo)(this[c].url.pathname,{nextConfig:this[c].options.nextConfig,parseData:!0,i18nProvider:this[c].options.i18nProvider}),u=(0,a.getHostname)(this[c].url,this[c].options.headers);this[c].domainLocale=this[c].options.i18nProvider?this[c].options.i18nProvider.detectDomainLocale(u):(0,i.detectDomainLocale)(null==(t=this[c].options.nextConfig)||null==(e=t.i18n)?void 0:e.domains,u);let d=(null==(r=this[c].domainLocale)?void 0:r.defaultLocale)||(null==(o=this[c].options.nextConfig)||null==(n=o.i18n)?void 0:n.defaultLocale);this[c].url.pathname=l.pathname,this[c].defaultLocale=d,this[c].basePath=l.basePath??"",this[c].buildId=l.buildId,this[c].locale=l.locale??d,this[c].trailingSlash=l.trailingSlash}formatPathname(){return(0,n.formatNextPathnameInfo)({basePath:this[c].basePath,buildId:this[c].buildId,defaultLocale:this[c].options.forceLocale?void 0:this[c].defaultLocale,locale:this[c].locale,pathname:this[c].url.pathname,trailingSlash:this[c].trailingSlash})}formatSearch(){return this[c].url.search}get buildId(){return this[c].buildId}set buildId(e){this[c].buildId=e}get locale(){return this[c].locale??""}set locale(e){var t,r;if(!this[c].locale||!(null==(r=this[c].options.nextConfig)||null==(t=r.i18n)?void 0:t.locales.includes(e)))throw Object.defineProperty(TypeError(`The NextURL configuration includes no locale "${e}
118"`),"__NEXT_ERROR_CODE",{value:"E597",enumerable:!1,configurable:!0});this[c].locale=e}get defaultLocale(){return this[c].defaultLocale}get domainLocale(){return this[c].domainLocale}get searchParams(){return this[c].url.searchParams}get host(){return this[c].url.host}set host(e){this[c].url.host=e}get hostname(){return this[c].url.hostname}set hostname(e){this[c].url.hostname=e}get port(){return this[c].url.port}set port(e){this[c].url.port=e}get protocol(){return this[c].url.protocol}set protocol(e){this[c].url.protocol=e}get href(){let e=this.formatPathname(),t=this.formatSearch();return`${this.protocol}//${this.host}${e}${t}${this.hash}`}set href(e){this[c].url=l(e),this.analyze()}get origin(){return this[c].url.origin}get pathname(){return this[c].url.pathname}set pathname(e){this[c].url.pathname=e}get hash(){return this[c].url.hash}set hash(e){this[c].url.hash=e}get search(){return this[c].url.search}set search(e){this[c].url.search=e}get password(){return this[c].url.password}set password(e){this[c].url.password=e}get username(){return this[c].url.username}set username(e){this[c].url.username=e}get basePath(){return this[c].basePath}set basePath(e){this[c].basePath=e.startsWith("/")?e:`/${e}`}toString(){return this.href}toJSON(){return this.href}[Symbol.for("edge-runtime.inspect.custom")](){return{href:this.href,origin:this.origin,protocol:this.protocol,username:this.username,password:this.password,host:this.host,hostname:this.hostname,port:this.port,pathname:this.pathname,search:this.search,searchParams:this.searchParams,hash:this.hash}}clone(){return new u(String(this),this[c].options)}}},531126,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var i={fromNodeOutgoingHttpHeaders:function(){return s},normalizeNextQueryParam:function(){return u},splitCookiesString:function(){return o},toNodeOutgoingHttpHeaders:function(){return l},validateURL:function(){return c}};for(var n in i)Object.defineProperty(r,n,{enumerable:!0,get:i[n]});let a=e.r(663416);function s(e){let t=new Headers;for(let[r,i]of Object.entries(e))for(let e of Array.isArray(i)?i:[i])void 0!==e&&("number"==typeof e&&(e=e.toString()),t.append(r,e));return t}function o(e){var t,r,i,n,a,s=[],o=0;function l(){for(;o<e.length&&/\s/.test(e.charAt(o));)o+=1;return o<e.length}for(;o<e.length;){for(t=o,a=!1;l();)if(","===(r=e.charAt(o))){for(i=o,o+=1,l(),n=o;o<e.length&&"="!==(r=e.charAt(o))&&";"!==r&&","!==r;)o+=1;o<e.length&&"="===e.charAt(o)?(a=!0,o=n,s.push(e.substring(t,i)),t=o):o=i+1}else o+=1;(!a||o>=e.length)&&s.push(e.substring(t,e.length))}return s}function l(e){let t={},r=[];if(e)for(let[i,n]of e.entries())"set-cookie"===i.toLowerCase()?(r.push(...o(n)),t[i]=1===r.length?r[0]:r):t[i]=n;return t}function c(e){try{return String(new URL(String(e)))}catch(t){throw Object.defineProperty(Error(`URL is malformed "${String(e)}". Please use only absolute URLs - https://nextjs.org/docs/messages/middleware-relative-urls`,{cause:t}),"__NEXT_ERROR_CODE",{value:"E61",enumerable:!1,configurable:!0})}}function u(e){for(let t of[a.NEXT_QUERY_PARAM_PREFIX,a.NEXT_INTERCEPTION_MARKER_PREFIX])if(e!==t&&e.startsWith(t))return e.substring(t.length);return null}},576420,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var i={PageSignatureError:function(){return a},RemovedPageError:function(){return s},RemovedUAError:function(){return o}};for(var n in i)Object.defineProperty(r,n,{enumerable:!0,get:i[n]});class a extends Error{constructor({page:e}){super(`The middleware "${e}" accepts an async API directly with the form:
119  
120  export function middleware(request, event) {
121    return NextResponse.redirect('/new-location')
122  }
123  
124  Read more: https://nextjs.org/docs/messages/middleware-new-signature
125  `)}}class s extends Error{constructor(){super("The request.page has been deprecated in favour of `URLPattern`.\n  Read more: https://nextjs.org/docs/messages/middleware-request-page\n  ")}}class o extends Error{constructor(){super("The request.ua has been removed in favour of `userAgent` function.\n  Read more: https://nextjs.org/docs/messages/middleware-parse-user-agent\n  ")}}},434591,(e,t,r)=>{"use strict";
125Object.defineProperty(r,"__esModule",{value:!0});var i={INTERNALS:function(){return c},NextRequest:function(){return u}};for(var n in i)Object.defineProperty(r,n,{enumerable:!0,get:i[n]});let a=e.r(973670),s=e.r(531126),o=e.r(576420),l=e.r(196883),c=Symbol("internal request");class u extends Request{constructor(e,t={}){const r="string"!=typeof e&&"url"in e?e.url:String(e);(0,s.validateURL)(r),t.body&&"half"!==t.duplex&&(t.duplex="half"),e instanceof Request?super(e,t):super(r,t);const i=new a.NextURL(r,{headers:(0,s.toNodeOutgoingHttpHeaders)(this.headers),nextConfig:t.nextConfig});this[c]={cookies:new l.RequestCookies(this.headers),nextUrl:i,url:i.toString()}}[Symbol.for("edge-runtime.inspect.custom")](){return{cookies:this.cookies,nextUrl:this.nextUrl,url:this.url,bodyUsed:this.bodyUsed,cache:this.cache,credentials:this.credentials,destination:this.destination,headers:Object.fromEntries(this.headers),integrity:this.integrity,keepalive:this.keepalive,method:this.method,mode:this.mode,redirect:this.redirect,referrer:this.referrer,referrerPolicy:this.referrerPolicy,signal:this.signal}}get cookies(){return this[c].cookies}get nextUrl(){return this[c].nextUrl}get page(){throw new o.RemovedPageError}get ua(){throw new o.RemovedUAError}get url(){return this[c].url}}},709256,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"NextResponse",{enumerable:!0,get:function(){return d}});let i=e.r(196883),n=e.r(973670),a=e.r(531126),s=e.r(242715),o=e.r(196883),l=Symbol("internal response"),c=new Set([301,302,303,307,308]);function u(e,t){var r;if(null==e||null==(r=e.request)?void 0:r.headers){if(!(e.request.headers instanceof Headers))throw Object.defineProperty(Error("request.headers must be an instance of Headers"),"__NEXT_ERROR_CODE",{value:"E119",enumerable:!1,configurable:!0});let r=[];for(let[i,n]of e.request.headers)t.set("x-middleware-request-"+i,n),r.push(i);t.set("x-middleware-override-headers",r.join(","))}}class d extends Response{constructor(e,t={}){super(e,t);const r=this.headers,c=new Proxy(new o.ResponseCookies(r),{get(e,n,a){switch(n){case"delete":case"set":return(...a)=>{let s=Reflect.apply(e[n],e,a),l=new Headers(r);return s instanceof o.ResponseCookies&&r.set("x-middleware-set-cookie",s.getAll().map(e=>(0,i.stringifyCookie)(e)).join(",")),u(t,l),s};default:return s.ReflectAdapter.get(e,n,a)}}});this[l]={cookies:c,url:t.url?new n.NextURL(t.url,{headers:(0,a.toNodeOutgoingHttpHeaders)(r),nextConfig:t.nextConfig}):void 0}}[Symbol.for("edge-runtime.inspect.custom")](){return{cookies:this.cookies,url:this.url,body:this.body,bodyUsed:this.bodyUsed,headers:Object.fromEntries(this.headers),ok:this.ok,redirected:this.redirected,status:this.status,statusText:this.statusText,type:this.type}}get cookies(){return this[l].cookies}static json(e,t){let r=Response.json(e,t);return new d(r.body,r)}static redirect(e,t){let r="number"==typeof t?t:(null==t?void 0:t.status)??307;if(!c.has(r))throw Object.defineProperty(RangeError('Failed to execute "redirect" on "response": Invalid status code'),"__NEXT_ERROR_CODE",{value:"E529",enumerable:!1,configurable:!0});let i="object"==typeof t?t:{},n=new Headers(null==i?void 0:i.headers);return n.set("Location",(0,a.validateURL)(e)),new d(null,{...i,headers:n,status:r})}static rewrite(e,t){let r=new Headers(null==t?void 0:t.headers);return r.set("x-middleware-rewrite",(0,a.validateURL)(e)),u(t,r),new d(null,{...t,headers:r})}static next(e){let t=new Headers(null==e?void 0:e.headers);return t.set("x-middleware-next","1"),u(e,t),new d(null,{...e,headers:t})}}},274370,(e,t,r)=>{"use strict";function i(){throw Object.defineProperty(Error('ImageResponse moved from "next/server" to "next/og" since Next.js 14, please import from "next/og" instead'),"__NEXT_ERROR_CODE",{value:"E183",enumerable:!1,configurable:!0})}Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"ImageResponse",{enumerable:!0,get:function(){return i}})},275600,(e,t,r)=>{var i={226:function(t,r){!function(i){"use strict";
vendor: 4,135 bytes, line 125
125var n="function",a="undefined",s="object",o="string",l="major",c="model",u="name",d="type",p="vendor",h="version",f="architecture",g="console",m="mobile",y="tablet",b="smarttv",v="wearable",x="embedded",_="Amazon",w="Apple",T="ASUS",S="BlackBerry",C="Browser",E="Chrome",k="Firefox",N="Google",I="Huawei",A="Microsoft",j="Motorola",P="Opera",O="Samsung",L="Sharp",D="Sony",R="Xiaomi",M="Zebra",B="Facebook",U="Chromium OS",F="Mac OS",$=function(e,t){var r={};for(var i in e)t[i]&&t[i].length%2==0?r[i]=t[i].concat(e[i]):r[i]=e[i];return r},z=function(e){for(var t={},r=0;r<e.length;r++)t[e[r].toUpperCase()]=e[r];return t},q=function(e,t){return typeof e===o&&-1!==H(t).indexOf(H(e))},H=function(e){return e.toLowerCase()},W=function(e,t){if(typeof e===o)return e=e.replace(/^\s\s*/,""),typeof t===a?e:e.substring(0,350)},V=function(e,t){for(var r,i,a,o,l,c,u=0;u<t.length&&!l;){var d=t[u],p=t[u+1];for(r=i=0;r<d.length&&!l&&d[r];)if(l=d[r++].exec(e))for(a=0;a<p.length;a++)c=l[++i],typeof(o=p[a])===s&&o.length>0?2===o.length?typeof o[1]==n?this[o[0]]=o[1].call(this,c):this[o[0]]=o[1]:3===o.length?typeof o[1]!==n||o[1].exec&&o[1].test?this[o[0]]=c?c.replace(o[1],o[2]):void 0:this[o[0]]=c?o[1].call(this,c,o[2]):void 0:4===o.length&&(this[o[0]]=c?o[3].call(this,c.replace(o[1],o[2])):void 0):this[o]=c||void 0;u+=2}},G=function(e,t){for(var r in t)if(typeof t[r]===s&&t[r].length>0){for(var i=0;i<t[r].length;i++)if(q(t[r][i],e))return"?"===r?void 0:r}else if(q(t[r],e))return"?"===r?void 0:r;return e},X={ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2",8.1:"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"},K={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[h,[u,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[h,[u,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[u,h],[/opios[\/ ]+([\w\.]+)/i],[h,[u,P+" Mini"]],[/\bopr\/([\w\.]+)/i],[h,[u,P]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer)[\/ ]?([\w\.]*)/i,/(avant |iemobile|slim)(?:browser)?[\/ ]?([\w\.]*)/i,/(ba?idubrowser)[\/ ]?([\w\.]+)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|bolt|iron|vivaldi|iridium|phantomjs|bowser|quark|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|qq|duckduckgo)\/([-\w\.]+)/i,/(heytap|ovi)browser\/([\d\.]+)/i,/(weibo)__([\d\.]+)/i],[u,h],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[h,[u,"UC"+C]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i],[h,[u,"WeChat(Win) Desktop"]],[/micromessenger\/([\w\.]+)/i],[h,[u,"WeChat"]],[/konqueror\/([\w\.]+)/i],[h,[u,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[h,[u,"IE"]],[/ya(?:search)?browser\/([\w\.]+)/i],[h,[u,"Yandex"]],[/(avast|avg)\/([\w\.]+)/i],[[u,/(.+)/,"$1 Secure "+C],h],[/\bfocus\/([\w\.]+)/i],[h,[u,k+" Focus"]],[/\bopt\/([\w\.]+)/i],[h,[u,P+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[h,[u,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[h,[u,"Dolphin"]],[/coast\/([\w\.]+)/i],[h,[u,P+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[h,[u,"MIUI "+C]],[/fxios\/([-\w\.]+)/i],[h,[u,k]],[/\bqihu|(qi?ho?o?|360)browser/i],[[u,"360 "+C]],[/(oculus|samsung|sailfish|huawei)browser\/([\w\.]+)/i],[[u,/(.+)/,"$1 "+C],h],[/(comodo_dragon)\/([\w\.]+)/i],[[u,/_/g," "],h],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|baiduboxapp|2345Explorer)[\/ ]?([\w\.]+)/i],[u,h],[/(metasr)[\/ ]?([\w\.]+)/i,/(lbbrowser)/i,/\[(linkedin)app\]/i],[u],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[u,B],h],[/(kakao(?:talk|story))[\/ ]([\w\.]+)/i,/(naver)\(.*?(\d+\.[\w\.]+).*\)/i,/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(chromium|instagram)[\/ ]([-\w\.]+)/i],[u,h],[/\bgsa\/([\w\.]+) .*safari\//i],[h,[u,"GSA"]],[/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i],[h,[u,"TikTok"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[h,[u,E+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[u,E+" WebView"],h],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[h,[u,"Android "+C]],[/(chrome|omniweb|arora|[t
vendor: 4,846 bytes, line 125
125izenoka]{5} ?browser)\/v?([\w\.]+)/i],[u,h],[/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i],[h,[u,"Mobile Safari"]],[/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i],[h,u],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[u,[h,G,{"1.0":"/8",1.2:"/1",1.3:"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"}]],[/(webkit|khtml)\/([\w\.]+)/i],[u,h],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[u,"Netscape"],h],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[h,[u,k+" Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror|klar)[\/ ]?([\w\.\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i,/(firefox)\/([\w\.]+)/i,/(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|sleipnir|obigo|mosaic|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/(links) \(([\w\.]+)/i,/panasonic;(viera)/i],[u,h],[/(cobalt)\/([\w\.]+)/i],[u,[h,/master.|lts./,""]]],cpu:[[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i],[[f,"amd64"]],[/(ia32(?=;))/i],[[f,H]],[/((?:i[346]|x)86)[;\)]/i],[[f,"ia32"]],[/\b(aarch64|arm(v?8e?l?|_?64))\b/i],[[f,"arm64"]],[/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i],[[f,"armhf"]],[/windows (ce|mobile); ppc;/i],[[f,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i],[[f,/ower/,"",H]],[/(sun4\w)[;\)]/i],[[f,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i],[[f,H]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[c,[p,O],[d,y]],[/\b((?:s[cgp]h|gt|sm)-\w+|sc[g-]?[\d]+a?|galaxy nexus)/i,/samsung[- ]([-\w]+)/i,/sec-(sgh\w+)/i],[c,[p,O],[d,m]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i],[c,[p,w],[d,m]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[c,[p,w],[d,y]],[/(macintosh);/i],[c,[p,w]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[c,[p,L],[d,m]],[/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i],[c,[p,I],[d,y]],[/(?:huawei|honor)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[c,[p,I],[d,m]],[/\b(poco[\w ]+)(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite)?)(?: bui|\))/i],[[c,/_/g," "],[p,R],[d,m]],[/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i],[[c,/_/g," "],[p,R],[d,y]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[c,[p,"OPPO"],[d,m]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[c,[p,"Vivo"],[d,m]],[/\b(rmx[12]\d{3})(?: bui|;|\))/i],[c,[p,"Realme"],[d,m]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ](\w*)/i,/((?:moto[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i],[c,[p,j],[d,m]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[c,[p,j],[d,y]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[c,[p,"LG"],[d,y]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i,/\blg-?([\d\w]+) bui/i],[c,[p,"LG"],[d,m]],[/(ideatab[-\w ]+)/i,/lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i],[c,[p,"Lenovo"],[d,y]],[/(?:maemo|nokia).*(n900|lumia \d+)/i,/nokia[-_ ]?([-\w\.]*)/i],[[c,/_/g," "],[p,"Nokia"],[d,m]],[/(pixel c)\b/i],[c,[p,N],[d,y]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[c,[p,N],[d,m]],[/droid.+ (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[c,[p,D],[d,m]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[c,"Xperia Tablet"],[p,D],[d,y]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[c,[p,"OnePlus"],[d,m]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo[c-r]{2})( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[c,[p,_],[d,y]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[c,/(.+)/g,"Fire Phone $1"],[p,_],[d,m]],[/(playbook);[-\w\),; ]+(rim)/i],[c,p,[d,y]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[c,[p,S],[d,m]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[c,[p,T],[d,y]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[c,[p,T],[d,m]],[/(nexus 9)/i],[c,[p,"HTC"],[d,y]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i],[p,[c,/_/g," "],[d,m]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[c,[p,"Acer"],[d,y]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[c,[p,"Meizu"],[d,m]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron)[-_ ]?([-\w]*)/i,/(hp) ([\w ]+\w)/i,/(asu
vendor: 3,691 bytes, line 125
125s)-?(\w+)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w]+)/i,/(jolla)/i,/(oppo) ?([\w ]+) bui/i],[p,c,[d,m]],[/(kobo)\s(ereader|touch)/i,/(archos) (gamepad2?)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i,/(nook)[\w ]+build\/(\w+)/i,/(dell) (strea[kpr\d ]*[\dko])/i,/(le[- ]+pan)[- ]+(\w{1,9}) bui/i,/(trinity)[- ]*(t\d{3}) bui/i,/(gigaset)[- ]+(q\w{1,9}) bui/i,/(vodafone) ([\w ]+)(?:\)| bui)/i],[p,c,[d,y]],[/(surface duo)/i],[c,[p,A],[d,y]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[c,[p,"Fairphone"],[d,m]],[/(u304aa)/i],[c,[p,"AT&T"],[d,m]],[/\bsie-(\w*)/i],[c,[p,"Siemens"],[d,m]],[/\b(rct\w+) b/i],[c,[p,"RCA"],[d,y]],[/\b(venue[\d ]{2,7}) b/i],[c,[p,"Dell"],[d,y]],[/\b(q(?:mv|ta)\w+) b/i],[c,[p,"Verizon"],[d,y]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[c,[p,"Barnes & Noble"],[d,y]],[/\b(tm\d{3}\w+) b/i],[c,[p,"NuVision"],[d,y]],[/\b(k88) b/i],[c,[p,"ZTE"],[d,y]],[/\b(nx\d{3}j) b/i],[c,[p,"ZTE"],[d,m]],[/\b(gen\d{3}) b.+49h/i],[c,[p,"Swiss"],[d,m]],[/\b(zur\d{3}) b/i],[c,[p,"Swiss"],[d,y]],[/\b((zeki)?tb.*\b) b/i],[c,[p,"Zeki"],[d,y]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[p,"Dragon Touch"],c,[d,y]],[/\b(ns-?\w{0,9}) b/i],[c,[p,"Insignia"],[d,y]],[/\b((nxa|next)-?\w{0,9}) b/i],[c,[p,"NextBook"],[d,y]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[p,"Voice"],c,[d,m]],[/\b(lvtel\-)?(v1[12]) b/i],[[p,"LvTel"],c,[d,m]],[/\b(ph-1) /i],[c,[p,"Essential"],[d,m]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[c,[p,"Envizen"],[d,y]],[/\b(trio[-\w\. ]+) b/i],[c,[p,"MachSpeed"],[d,y]],[/\btu_(1491) b/i],[c,[p,"Rotor"],[d,y]],[/(shield[\w ]+) b/i],[c,[p,"Nvidia"],[d,y]],[/(sprint) (\w+)/i],[p,c,[d,m]],[/(kin\.[onetw]{3})/i],[[c,/\./g," "],[p,A],[d,m]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[c,[p,M],[d,y]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[c,[p,M],[d,m]],[/smart-tv.+(samsung)/i],[p,[d,b]],[/hbbtv.+maple;(\d+)/i],[[c,/^/,"SmartTV"],[p,O],[d,b]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[p,"LG"],[d,b]],[/(apple) ?tv/i],[p,[c,w+" TV"],[d,b]],[/crkey/i],[[c,E+"cast"],[p,N],[d,b]],[/droid.+aft(\w)( bui|\))/i],[c,[p,_],[d,b]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[c,[p,L],[d,b]],[/(bravia[\w ]+)( bui|\))/i],[c,[p,D],[d,b]],[/(mitv-\w{5}) bui/i],[c,[p,R],[d,b]],[/Hbbtv.*(technisat) (.*);/i],[p,c,[d,b]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[p,W],[c,W],[d,b]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[d,b]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[p,c,[d,g]],[/droid.+; (shield) bui/i],[c,[p,"Nvidia"],[d,g]],[/(playstation [345portablevi]+)/i],[c,[p,D],[d,g]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[c,[p,A],[d,g]],[/((pebble))app/i],[p,c,[d,v]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[c,[p,w],[d,v]],[/droid.+; (glass) \d/i],[c,[p,N],[d,v]],[/droid.+; (wt63?0{2,3})\)/i],[c,[p,M],[d,v]],[/(quest( 2| pro)?)/i],[c,[p,B],[d,v]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[p,[d,x]],[/(aeobc)\b/i],[c,[p,_],[d,x]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+? mobile safari/i],[c,[d,m]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[c,[d,y]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[d,y]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[d,m]],[/(android[-\w\. ]{0,9});.+buil/i],[c,[p,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[h,[u,"EdgeHTML"]],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[h,[u,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i,/\b(libweb)/i],[u,h],[/rv\
125:([\w\.]{1,9})\b.+(gecko)/i],[h,u]],os:[[/microsoft (windows) (vista|xp)/i],[u,h],[/(windows) nt 6\.2; (arm)/i,/(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i,/(windows)[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i],[u,[h,G,X]],[/(win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[u,"Windows"],[h,G,X]],[/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i,/ios;fbsv\/([\d\.]+)/i,/cfnetwork\/.+darwin/i],[[h,/_/g,"."],[u,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[u,F],[h,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[h,u],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-\/ ]?([\w\.]*)/i,/(blackberry)\w*\/([\w\.]*)/i,/(tizen|kaios)[\/ ]([\w\.]+)/i,/\((series40);/i],[u,h],[/\(bb(10);/i],[h,[u,S]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i],[h,[u,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[h,[u,k+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[h,[u,"webOS"]],[/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i],[h,[u,"watchOS"]],[/crkey\/([\d\.]+)/i],[h,[u,E+"cast"]],[/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i],[[u,U],h],[/panasonic;(viera)/i,/(netrange)mmh/i,/(nettv)\/(\d+\.[\w\.]+)/i,/(nintendo|playstation) ([wids345portablevuch]+)/i,/(xbox); +xbox ([^\);]+)/i,/\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i,/(mint)[\/\(\) ]?(\w*)/i,/(mageia|vectorlinux)[; ]/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i,/(hurd|linux) ?([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) (\w+)/i],[u,h],[/(sunos) ?([\w\.\d]*)/i],[[u,"Solaris"],h],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i,/(unix) ?([\w\.]*)/i],[u,h]]},Y=function(e,t){if(typeof e===s&&(t=e,e=void 0),!(this instanceof Y))return new Y(e,t).getResult();var r=typeof i!==a&&i.navigator?i.navigator:void 0,g=e||(r&&r.userAgent?r.userAgent:""),b=r&&r.userAgentData?r.userAgentData:void 0,v=t?$(K,t):K,x=r&&r.userAgent==g;return this.getBrowser=function(){var e,t={};return t[u]=void 0,t[h]=void 0,V.call(t,g,v.browser),t[l]=typeof(e=t[h])===o?e.replace(/[^\d\.]/g,"").split(".")[0]:void 0,x&&r&&r.brave&&typeof r.brave.isBrave==n&&(t[u]="Brave"),t},this.getCPU=function(){var e={};return e[f]=void 0,V.call(e,g,v.cpu),e},this.getDevice=function(){var e={};return e[p]=void 0,e[c]=void 0,e[d]=void 0,V.call(e,g,v.device),x&&!e[d]&&b&&b.mobile&&(e[d]=m),x&&"Macintosh"==e[c]&&r&&typeof r.standalone!==a&&r.maxTouchPoints&&r.maxTouchPoints>2&&(e[c]="iPad",e[d]=y),e},this.getEngine=function(){var e={};return e[u]=void 0,e[h]=void 0,V.call(e,g,v.engine),e},this.getOS=function(){var e={};return e[u]=void 0,e[h]=void 0,V.call(e,g,v.os),x&&!e[u]&&b&&"Unknown"!=b.platform&&(e[u]=b.platform.replace(/chrome os/i,U).replace(/macos/i,F)),e},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return g},this.setUA=function(e){return g=typeof e===o&&e.length>350?W(e,350):e,this},this.setUA(g),this};if(Y.VERSION="1.0.35",Y.BROWSER=z([u,h,l]),Y.CPU=z([f]),Y.DEVICE=z([c,p,d,g,m,b,y,v,x]),Y.ENGINE=Y.OS=z([u,h]),typeof r!==a)t.exports&&(r=t.exports=Y),r.UAParser=Y;else if(typeof define===n&&define.amd)e.r,void 0!==Y&&e.v(Y);else typeof i!==a&&(i.UAParser=Y);var Q=typeof i!==a&&(i.jQuery||i.Zepto);if(Q&&!Q.ua){var J=new Y;Q.ua=J.getResult(),Q.ua.get=function(){return J.getUA()},Q.ua.set=function(e){J.setUA(e);var t=J.getResult();for(var r in t)Q.ua[r]=t[r]}}}("object"==typeof window?window:this)}},n={};function a(e){var t=n[e];if(void 0!==t)return t.exports;var r=n[e]={exports:{}},s=!0;try{i[e].call(r.exports,r,r.exports,a),s=!1}finally{s&&delete n[e]}return r.exports}a.ab="/ROOT/node_modules/next/dist/compiled/ua-parser-js/",t.exports=a(226)},653291,(e,t,r)=>{"use strict";
125Object.defineProperty(r,"__esModule",{value:!0});var i,n={isBot:function(){return o},userAgent:function(){return c},userAgentFromString:function(){return l}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});let s=(i=e.r(275600))&&i.__esModule?i:{default:i};function o(e){return/Googlebot|Mediapartners-Google|AdsBot-Google|googleweblight|Storebot-Google|Google-PageRenderer|Google-InspectionTool|Bingbot|BingPreview|Slurp|DuckDuckBot|baiduspider|yandex|sogou|LinkedInBot|bitlybot|tumblr|vkShare|quora link preview|facebookexternalhit|facebookcatalog|Twitterbot|applebot|redditbot|Slackbot|Discordbot|WhatsApp|SkypeUriPreview|ia_archiver|GPTBot/i.test(e)}function l(e){return{...(0,s.default)(e),isBot:void 0!==e&&o(e)}}function c({headers:e}){return l(e.get("user-agent")||void 0)}},773533,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"URLPattern",{enumerable:!0,get:function(){return i}});let i="u"<typeof URLPattern?void 0:URLPattern},771906,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"after",{enumerable:!0,get:function(){return n}});let i=e.r(563599);function n(e){let t=i.workAsyncStorage.getStore();if(!t)throw Object.defineProperty(Error("`after` was called outside a request scope. Read more: https://nextjs.org/docs/messages/next-dynamic-api-wrong-context"),"__NEXT_ERROR_CODE",{value:"E468",enumerable:!1,configurable:!0});let{afterContext:r}=t;return r.after(e)}},547227,(e,t,r)=>{"use strict";var i,n;Object.defineProperty(r,"__esModule",{value:!0}
125),i=e.r(771906),n=r,Object.keys(i).forEach(function(e){"default"===e||Object.prototype.hasOwnProperty.call(n,e)||Object.defineProperty(n,e,{enumerable:!0,get:function(){return i[e]}})})},272623,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"connection",{enumerable:!0,get:function(){return u}});let i=e.r(563599),n=e.r(662141),a=e.r(67673),s=e.r(643248),o=e.r(963138),l=e.r(850999);e.r(142852);let c=e.r(312718);function u(){let e=i.workAsyncStorage.getStore(),t=n.workUnitAsyncStorage.getStore();if(e){if(t&&"after"===t.phase&&!(0,l.isRequestAPICallableInsideAfter)())throw Object.defineProperty(Error(`Route ${e.route} used \`connection()\` inside \`after()\`. The \`connection()\` function is used to indicate the subsequent code must only run when there is an actual Request, but \`after()\` executes after the request, so this function is not allowed in this scope. See more info here: https://nextjs.org/docs/canary/app/api-reference/functions/after`),"__NEXT_ERROR_CODE",{value:"E827",enumerable:!1,configurable:!0});if(e.forceStatic)return Promise.resolve(void 0);if(e.dynamicShouldError)throw Object.defineProperty(new s.StaticGenBailoutError(`Route ${e.route} with \`dynamic = "error"\` couldn't be rendered statically because it used \`connection()\`. See more info here: https://nextjs.org/docs/app/building-your-application/rendering/static-and-dynamic#dynamic-rendering`),"__NEXT_ERROR_CODE",{value:"E847",enumerable:!1,configurable:!0});if(t)switch(t.type){case"cache":{let t=Object.defineProperty(Error(`Route ${e.route} used \`connection()\` inside "use cache". The \`connection()\` function is used to indicate the subsequent code must only run when there is an actual request, but caches must be able to be produced before a request, so this function is not allowed in this scope. See more info here: https://nextjs.org/docs/messages/next-request-in-use-cache`),"__NEXT_ERROR_CODE",{value:"E841",enumerable:!1,configurable:!0});throw Error.captureStackTrace(t,u),e.invalidDynamicUsageError??=t,t}case"private-cache":{let t=Object.defineProperty(Error(`Route ${e.route} used \`connection()\` inside "use cache: private". The \`connection()\` function is used to indicate the subsequent code must only run when there is an actual navigation request, but caches must be able to be produced before a navigation request, so this function is not allowed in this scope. See more info here: https://nextjs.org/docs/messages/next-request-in-use-cache`),"__NEXT_ERROR_CODE",{value:"E837",enumerable:!1,configurable:!0});throw Error.captureStackTrace(t,u),e.invalidDynamicUsageError??=t,t}case"unstable-cache":throw Object.defineProperty(Error(`Route ${e.route} used \`connection()\` inside a function cached with \`unstable_cache()\`. The \`connection()\` function is used to indicate the subsequent code must only run when there is an actual Request, but caches must be able to be produced before a Request so this function is not allowed in this scope. See more info here: https://nextjs.org/docs/app/api-reference/functions/unstable_cache`),"__NEXT_ERROR_CODE",{value:"E840",enumerable:!1,configurable:!0});case"generate-static-params":throw Object.defineProperty(Error(`Route ${e.route} used \`connection()\` inside \`generateStaticParams\`. This is not supported because \`generateStaticParams\` runs at build time without an HTTP request. Read more: https://nextjs.org/docs/messages/next-dynamic-api-wrong-context`),"__NEXT_ERROR_CODE",{value:"E1125",enumerable:!1,configurable:!0});case"prerender":case"prerender-client":case"prerender-runtime":return(0,o.makeHangingPromise)(t.renderSignal,e.route,"`connection()`");case"validation-client":{let e="`connection`";throw Object.defineProperty(new c.InvariantError(`${e} must not be used within a Client Component. Next.js should be preventing ${e} from being included in Client Components statically, but did not in this case.`),"__NEXT_ERROR_CODE",{value:"E1063",enumerable:!1,configurable:!0})}case"prerender-ppr":return(0,a.postponeWithTracking)(e.route,"connection",t.dynamicTracking);case"prerender-legacy":return(0,a.throwToInterruptStaticGeneration)("connection",e,t);case"request":if((0,a.trackDynamicDataInDynamicRender)(t),t.asyncApiPromises)return t.asyncApiPromises.connection;return Promise.resolve(void 0)}}(0,n.throwForMissingRequestStore)("connection")}},223397,(e,t,r)=>{let i={NextRequest:e.r(434591).NextRequest,NextResponse:e.r(709256).NextResponse,ImageResponse:e.r(274370).ImageResponse,userAgentFromString:e.r(653291).userAgentFromString,userAgent:e.r(653291).userAgent,URLPattern:e.r(773533).URLPattern,after:e.r(547227).after,connection:e.r(272623).connection};t.exports=i,r.NextRequest=i.NextRequest,r.NextResponse=i.NextResponse,r.ImageResponse=i.ImageResponse,r.userAgentFromString=i.userAgentFromString,r.userAgent=i.userAgent,r.URLPattern=i.URLPattern,r.after=i.after,r.connection=i.connection},182442,e=>{"use strict";e.i(247167),e.i(66808),e.i(829126);let{ERROR_MESSAGES:t}=e.i(122707).constants;e.i(223397),e.i(761749);var r=e.i(743593),i=e.i(228242),i=i,n=e.i(433652);let a=(0,n.debugModule)(`${n.debugNamespace}:search`);Object.assign(Object.assign(Object.assign({},r.debug),i.default),{search:a}),e.s(["extractPath",0,e=>{var t;return void 0===e.params?"/":Array.isArray(e.params.path)?e.params.path.join("/"):null!=(t=e.params.path)?t:"/"},"handleEditorFastRefresh",0,(e=!1)=>{}],182442)},750135,e=>{"use strict";var t=e.i(271645),r=e.i(182442);e.s(["default",0,function(){return(0,t.useEffect)(()=>{(0,r.handleEditorFastRefresh)()},[]),null}])},167229,e=>{"use strict";var t=e.i(843476),r=e.i(376917),i=e.i(795092);let n=(0,e.i(731501).withDatasourceCheck)()(({fields:e})=>(0,t.jsxs)("div",{className:"contentBlock",children:[(0,t.jsx)(r.Text,{tag:"h2",className:"contentTitle",field:e.heading}),(0,t.jsx)(i.RichText,{className:"contentDescription",field:e.content})]}));e.s(["default",0,n])},63167,e=>{"use strict";var t=e.i(843476),r=e.i(337442);let i=e=>{let i=e?.params?.Styles??"",n=`${e?.params?.GridParameters} ${i}`.trimEnd(),a=`container-${e?.params?.DynamicPlaceholderId}`,s=e?.params?.RenderingIdentifier,o=RegExp(/mediaurl=\"([^"]*)\"/,"i"),l=e?.params?.Backgroun
125dImage,c={};if(l&&l.match(o)){let e=l.match(o)?.[1]||"";c={backgroundImage:`url('${e}')`}}return(0,t.jsx)("div",{className:`component container-default ${n}`,id:s||void 0,children:(0,t.jsx)("div",{className:"component-content",style:c,children:(0,t.jsx)("div",{className:"row",children:(0,t.jsx)(r.Placeholder,{name:a,rendering:e.rendering})})})})};e.s(["Default",0,e=>{let r=e.params?.Styles?.split(" ");return r&&r.includes("container")?(0,t.jsx)("div",{className:"container-wrapper",children:(0,t.jsx)(i,{...e})}):(0,t.jsx)(i,{...e})}])},128572,e=>{"use strict";var t=e.i(843476),r=e.i(337442);e.s(["Default",0,e=>{let i=`${e?.params?.GridParameters??""} ${e?.params?.Styles??""}`.trimEnd(),n=[e.params.ColumnWidth1,e.params.ColumnWidth2,e.params.ColumnWidth3,e.params.ColumnWidth4,e.params.ColumnWidth5,e.params.ColumnWidth6,e.params.ColumnWidth7,e.params.ColumnWidth8],a=[e.params.Styles1,e.params.Styles2,e.params.Styles3,e.params.Styles4,e.params.Styles5,e.params.Styles6,e.params.Styles7,e.params.Styles8],s=e.params.EnabledPlaceholders.split(","),o=e.params.RenderingIdentifier;return(0,t.jsx)("div",{className:`row component column-splitter ${i}`,id:o||void 0,children:s.map((i,s)=>{let o=`column-${i}-{*}`,l=`${n[i-1]} ${a[i-1]??""}`.trimEnd();return(0,t.jsx)("div",{className:l,children:(0,t.jsx)("div",{className:"row",children:(0,t.jsx)(r.Placeholder,{name:o,rendering:e.rendering},s)},s)},s)})})}])},722904,e=>{"use strict";var t=e.i(843476),r=e.i(422674),i=e.i(3303);e.s(["BrightEdge",0,()=>{let e=(0,r.useSitecoreContext)(),n=e?.sitecoreContext?.siteSettings,a=e?.sitecoreContext?.route,s=n?.autoPilotIds,o=s?.find(t=>t.name===e?.sitecoreContext?.language)?.value,l=a?.templateId,c=!1;return l&&["cae2e30b-f1f6-474f-8475-bf5736303929","e263b582-dbcd-4ec6-a699-4384a305dcbf"].includes(l)&&(c=!0),(0,t.jsx)(t.Fragment,{children:c&&o&&(0,t.jsx)(i.default,{strategy:"lazyOnload",src:`https://cdn.bc0a.com/autopilot/f00000000${o}/autopilot_sdk.js`})})}])},582107,e=>{"use strict";var t=e.i(843476),r=e.i(422674),i=e.i(3303);e.s(["GTMBody",0,()=>{let{sitecoreContext:e}=(0,r.useSitecoreContext)(),i=e?.siteSettings,n=i?.gtmId?.value;return n?(0,t.jsx)("noscript",{children:(0,t.jsx)("iframe",{src:`https://www.googletagmanager.com/ns.html?id=${n}`,height:"0",width:"0",style:{display:"none",visibility:"hidden"}})}):null},"GTMHead",0,()=>{let{sitecoreContext:e}=(0,r.useSitecoreContext)(),n=e?.siteSettings,a=n?.gtmId?.value;return a?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(i.default,{id:"gtm-datalayer",strategy:"afterInteractive",dangerouslySetInnerHTML:{__html:`
126            window.dataLayer = window.dataLayer || [];
127            window.dataLayer.push({
128              'gtm.start': new Date().getTime(),
129              event: 'gtm.js'
130            });
131          `}}),(0,t.jsx)(i.default,{id:"gtm-script",src:`https://www.googletagmanager.com/gtm.js?id=${a}`,strategy:"lazyOnload",onError:e=>{console.warn("GTM script failed to load:",e)}})]}):null}])},929955,e=>{"use strict";e.i(247167);var t=e.i(271645);e.i(376806);var r=e.i(97451),i=e.i(855102),n=e.i(93830),a=e.i(915262),s=e.i(966675);class o extends s.BaseFilter{constructor(e,t,r){super(t,r),this._attributeName=e}toDTO(){return{name:this._attributeName,type:this.operator,value:this.value}}}var l=s;class c extends l.BaseFilter{constructor(e,t,r){super(t,r),this._attributeName=e}toDTO(){return{name:this._attributeName,type:this.operator,values:this.value}}}var u=s;class d extends u.BaseFilter{constructor(e,t){super(e,t)}toDTO(){return"not"===this.operator?{filter:this.value.toDTO(),type:this.operator}:{filters:this.value.map(e=>e.toDTO()),type:this.operator}}}var p=e.i(605879),h=e.i(301111),f=e.i(988500),g=e.i(401202),m=e.i(743020),y=e.i(90376);e.s(["useSitecoreCloudSearch",0,(e={})=>{let[s,l]=(0,t.useState)([]),[u,b]=(0,t.useState)([]),[v,x]=(0,t.useState)([]),[_,w]=(0,t.useState)(0),[T,S]=(0,t.useState)(!1),[C,E]=(0,t.useState)(null),[k,N]=(0,t.useState)(""),[I,A]=(0,t.useState)({numResults:0,totalResults:0,numRequested:0}),j=(0,t.useRef)(""),{language:P,country:O}=(0,y.useLocaleFromContext)(),{widgetType:L="content",widgetId:D="rfkid_101",maxResults:R=10,facets:M,filter:B,offset:U,sources:F,suggestions:$,highlight:z}=e,q=(0,t.useCallback)(async(e,t)=>{try{let r=t||{numResults:I.numResults,totalResults:I.totalResults,numRequested:I.numRequested},i=t?.keyword||k,n=`${i}-${r.numResults}-${r.totalResults}-${r.numRequested}-${e.length}`;if(j.current===n)return void console.log("Skipping duplicate widget view event");j.current=n;let a={request:{keyword:i,numResults:r.numResults,totalResults:r.totalResults,numRequested:r.numRequested},entities:e,pathname:window.location.pathname,widgetId:D};await (0,p.widgetView)(a),console.log("Widget view event sent successfully",a)}catch(e){console.error("Error sending widget view event:",e),j.current=""}},[D,k,I]),H=(0,t.useCallback)(async(e,t)=>{try{let r={entity:e,pathname:window.location.pathname,widgetId:D,itemPosition:t,request:{keyword:k,numResults:I.numResults,totalResults:I.totalResults,numRequested:I.numRequested},page:window.location.pathname};await (0,h.widgetItemClick)(r),console.log("Widget item click event sent successfully",r)}catch(e){console.error("Error sending widget item click event:",e)}},[D,k,I]),W=(0,t.useCallback)(async e=>{try{let t={filters:e,request:{keyword:k,numResults:I.numResults,totalResults:I.totalResults,numRequested:I.numRequested},pathname:window.location.pathname,widgetId:D};await (0,f.widgetFacetClick)(t),console.log("Widget facet click event sent successfully",t)}catch(e){console.error("Error sending widget facet click event:",e)}},[D,k,I]),V=(0,t.useCallback)(async e=>{try{let t={widgetId:D,pathname:window.location.pathname,itemPosition:e};await (0,g.widgetNavigationClick)(t),console.log("Widget navigation click event sent successfully",t)}catch(e){console.error("Error sending widget navigation click event:",e)}},[D]);return{results:s,facets:u,suggestions:v,totalItems:_,loading:T,error:C,performSearch:async(t,s,u=!1)=>{let p=t?.trim()||"";N(p),void 0===t||p||x([]),S(!0),E(null);try{let t={...e,...s},{widgetType:h=L,widgetId:f=D,maxResults:g=R,facets:m=M,filter:y=B,offset:v=U,sources:_=F,suggestions:T=$,highlight:S=z}=t,C=new r.SearchWidgetItem(h,f);if(C.content={},C.limit=g,v&&v>0&&(C.offset=v),_&&Array.isArray(_)&&_.length>0&&(C.sources=_),p&&p.length>=1&&p.length<=100&&(C.query={keyphrase:(p.startsWith('"')&&p.endsWith('"')?p.slice(1,-1):p).replace(/:/g," ").replace(/\//g," ").replace(/\\/g," ").replace(/[()[\]{}]/g," ").replace(/\s+/g," ").trim(),operator:p.trim().includes(" ")?"and":"or",...S?.fields&&S.fields.length>0?{highlight:{fields:S.fields}}:{}}),m&&(C.facet=m),T&&Array.isArray(T)&&T.length>0&&(C.suggestion=T),y&&y.filters&&y.filters.length>0)try{let e=y.filters.map(e=>{if("eq"===e.type&&e.value)return new o(e.name,"eq",e.value);if("anyOf"===e.type&&e.values)return new c(e.name,"anyOf",e.values);if("gte"===e.type&&e.value)return new o(e.name,"gte",e.value);if("lte"===e.type&&e.value)return new o(e.name,"lte",e.value);throw Error(`Unsupported filter type: ${e.type}`)});1===e.length?C.filter=e[0]:e.length>1&&(C.filter=new d("and",[e[0],e[1],...e.slice(2)])),console.log("widgetRequest.filter",C)}catch(e){console.error("Error creating filter instances:",e)}t.sort&&(C.sort={value:t.sort.value});let E=t.ranking;E&&E.length>0&&(C.ranking=E);let k=new i.Context({locale:{language:P,country:O}}),N=await (0,n.getWidgetData)(new a.WidgetRequestData([C]),k);if(N&&N.widgets&&N.widgets.length>0){let e=N.widgets[0],t="number"==typeof e.total_item?e.total_item:0;u||w(t);let r=e.content?e.content.length:0;if(A({numResults:r,totalResults:t,numRequested:g}),u||(e.facet&&Array.isArray(e.facet)?b(e.facet):b([])),e.suggestion&&"object"==typeof e.suggestion){let t=[];
131Object.keys(e.suggestion).forEach(r=>{let i=e.suggestion[r];Array.isArray(i)&&i.forEach(e=>{t.push({text:e.text,freq:e.freq,type:r})})}),console.log("Processed suggestions:",t.length,"items"),x(t)}else x([]);if(e&&e.content&&Array.isArray(e.content)&&!u){let i=e.content.map(e=>({id:e.id||e.item_id||Math.random().toString(36),title:e.title||e.name||"Untitled",description:e.description||e.excerpt||"",url:e.url||e.link||"#",eventstartdate:e.eventstartdate||"",eventenddate:e.eventenddate||"",...e}));console.log("Processed search results:",i.length,"items"),l(i);let n=i.map(e=>({entity:h,id:e.id}));await q(n,{numResults:r,totalResults:t,numRequested:g,keyword:p})}else console.log("No content in widget"),u||l([])}else console.log("No response or widgets"),l([]),b([]),x([]),w(0),A({numResults:0,totalResults:0,numRequested:g})}catch(e){console.error("Search error:",e),console.error("Widget Type:",L),console.error("Widget ID:",D),console.error("Search Query:",p),e instanceof Error&&console.error("Error details:",e.message),E("An error occurred while searching. Please try again."),l([]),x([])}finally{S(!1)}},trackWidgetView:q,trackItemClick:H,trackFacetClick:W,trackNavigationClick:V,trackSuggestionClick:(0,t.useCallback)(async e=>{try{let t={request:{keyword:e},pathname:window.location.pathname,widgetId:D};await (0,m.widgetSuggestionClick)(t),console.log("Widget suggestion click event sent successfully",t)}catch(e){console.error("Error sending widget suggestion click event:",e)}},[D])}}],929955)},506914,e=>{"use strict";var t=e.i(843476),r=e.i(376917),i=e.i(271645),n=e.i(828029),a=e.i(866026),s=e.i(783697),o=e.i(992210);e.s(["default",0,({field:e,fallbacks:l,tokens:c,className:u,tag:d="span",editable:p=!0,...h})=>{let f=(0,n.default)()&&p,{renderField:g,fallbackFieldForEditing:m}=(0,a.useFieldWithFallbacks)(e,l),y=function({field:e,tokens:t,editable:r=!0}){let i=(0,n.default)()&&r,a=t?(0,o.tokenReplace)(e?.value?.toString(),t):e?.value;return i?e:{value:a||""}}({field:g,tokens:c,editable:p});if(!(y?.value||f))return(0,t.jsx)(t.Fragment,{});if(f){let e=m&&m!==g;return i.default.createElement(d,{className:u},(0,t.jsx)(r.Text,{...h,"data-component":"helpers/fieldwrappers/plaintextwrapper",editable:p,field:y}),e&&(0,t.jsxs)(s.EditingHelpText,{children:["Fallback:"," ",(0,t.jsx)(r.Text,{...h,"data-component":"helpers/fieldwrappers/plaintextwrapper",editable:!1,field:m})]}))}return(0,t.jsx)(r.Text,{...h,"data-component":"helpers/fieldwrappers/plaintextwrapper",editable:p,field:y,className:u,tag:d})}])},455601,e=>{"use strict";e.i(387644),e.i(271645);let t=e=>e?"u">typeof DOMParser?(new DOMParser().parseFromString(e,"text/html").documentElement.textContent??"").trim():e.replace(/<[^>]*>/g,"").trim():"";e.s(["createCTAClickEvent",0,e=>({event:e.event||"cta_click",component_header:t(e.componentHeader),component_name:t(e.componentName),click_text:t(e.clickText)})])},197203,e=>{"use strict";var t=e.i(843476),r=e.i(207670),i=e.i(271645),n=e.i(469579);e.i(879806);var a=e.i(871084),s=e.i(310099),o=e.i(211418),l=e.i(455601);let c=(0,o.tv)({slots:{searchIcon:"w-8 min-w-8 h-8 flex items-center justify-center rounded-full text-color-icon-icon",inputWrapper:"flex items-center justify-center bg-white rounded-full px-spacing-spacing-16 py-spacing-spacing-10",inputBox:"w-full h-11 rounded-full px-3 outline-none text-color-text-text text-typography-font-family-body text-typography-font-size-body-large leading-typography-line-height-body-large font-typography-font-weight-body text-ellipsis overflow-hidden",clearSearchIcon:"border-white border me-2 bg-color-fill-light text-black min-w-8 w-8 h-8 rounded-full p-2 flex items-center justify-center",goSearchButton:"focus:outline-none focus:ring-offset-0 focus:!ring-0 !p
131x-spacing-spacing-16 !py-spacing-spacing-12 min-w-[79px] !w-auto !min-h-10 disabled:text-component-button-primary-filled-icon-disabled border-none [&_svg]:disabled:text-component-button-primary-filled-icon-disabled [&_svg]:text-component-button-primary-filled-text",suggestionItem:"text-white flex items-center justify-between w-full text-ellipsis overflow-hidden cursor-pointer hover:bg-component-button-primary-ghost-bg-hover rounded-full mb-spacing-spacing-8 group transition-all duration-300 focus:outline-none focus:ring-2 focus:ring-color-text-accent-1 focus:ring-offset-1 focus:ring-offset-color-fill-darkest focus-visible:ring-2 focus-visible:ring-color-text-accent-1",suggestionItemHighlighted:"bg-component-button-primary-ghost-bg-hover",suggestionItemText:"inline-block w-full py-spacing-spacing-10 px-spacing-spacing-16 truncate text-ellipsis overflow-hidden",suggestionItemArrow:"p-3 flex items-center justify-center",inputSuggestionsWrapper:"flex flex-col z-10 justify-center max-w-[627px] mx-auto w-full space-y-spacing-spacing-24 flex-grow"}});e.s(["SearchBar",0,e=>{let{query:o,setQuery:u,redirectToSearch:d,onSubmit:p,suggestions:h,trackSuggestionClick:f,loading:g,suggestionsStyle:m="fixed",handleClearSearch:y}=e,[b,v]=(0,i.useState)(!1),[x,_]=(0,i.useState)(-1),[w,T]=(0,i.useState)(!1),S=(0,i.useRef)(null),C=(0,i.useRef)(null),E=(0,i.useRef)([]),k=(0,i.useRef)(null),{getDictionaryValue:N}=(0,s.default)(),{inputWrapper:I,searchIcon:A,inputBox:j,clearSearchIcon:P,goSearchButton:O,suggestionItem:L,suggestionItemHighlighted:D,suggestionItemText:R,suggestionItemArrow:M,inputSuggestionsWrapper:B}=c();(0,i.useEffect)(()=>{_(-1),E.current=[]},[h]),(0,i.useEffect)(()=>{o.trim()||(_(-1),T(!1))},[o]),(0,i.useEffect)(()=>()=>{k.current&&clearTimeout(k.current)},[]),(0,i.useEffect)(()=>{if(x>=0&&w&&E.current[x]){let e=E.current[x];E.current.forEach((e,t)=>{t!==x&&e&&e.blur()}),requestAnimationFrame(()=>{requestAnimationFrame(()=>{e&&e.tabIndex<0&&(e.tabIndex=0),e?.focus({preventScroll:!0}),setTimeout(()=>{if(C.current&&e){let t=C.current.getBoundingClientRect(),r=e.getBoundingClientRect();(r.top<t.top||r.bottom>t.bottom)&&e.scrollIntoView({behavior:"smooth",block:"nearest",inline:"nearest"})}},10)})})}},[x,w]);let U=async e=>{await f(e.text);let t=e.text,r=t.replace(/:/g," ").replace(/\//g," ").replace(/\\/g," ").replace(/[()[\]{}]/g," ").replace(/\s+/g," ").trim();u(t),v(!1),_(-1),d?d(r):p&&p(r)},F=e=>{e.preventDefault()};return(0,t.jsxs)("div",{className:`${B()} relative ${"absolute"!==m?"overflow-y-auto":""}`,children:[(0,t.jsxs)("div",{className:I(),children:[(0,t.jsxs)("div",{className:"flex items-center justify-center w-full gap-spacing-spacing-12 ",children:[(0,t.jsx)("span",{className:A(),children:(0,t.jsx)("div",{className:"p-[2px]",children:(0,t.jsx)(a.SvgIcon,{icon:"magnifier",size:"xss",viewBox:"0 0 21 20"})})}),(0,t.jsx)("label",{htmlFor:"search-input",className:"sr-only",children:"Search"}),(0,t.jsx)("input",{ref:S,type:"text",id:"search-input",name:"search-input",placeholder:N("SearchInputPlaceholder"),className:j(),value:o,autoComplete:"off",onFocus:()=>{k.current&&(clearTimeout(k.current),k.current=null),v(!0),T(!1)},onBlur:e=>{let t=e.relatedTarget;if(t?.closest("#search-suggestions")!==null||t?.getAttribute("role")==="option"){k.current&&(clearTimeout(k.current),k.current=null);return}k.current=setTimeout(()=>{w||(v(!1),_(-1))},200)},onChange:e=>u(e.target.value),onKeyDown:e=>{let t=h.length>0&&!g;"ArrowDown"===e.key?(e.preventDefault(),T(!0),v(!0),t&&(S.current?.blur(),_(x<h.length-1?x+1:0))):"ArrowUp"===e.key?(e.preventDefault(),T(!0),v(!0),t&&(S.current?.blur(),_(x>0?x-1:h.length-1))):"Enter"===e.key?(e.preventDefault(),x>=0&&x<h.length?U(h[x]):o?.trim()&&(p?p():d&&d(o?.trim()))):("Escape"===e.key?(e.preventDefault(),v(!1),_(-1),T(!1)):(T(!1),_(-1)),S.current?.focus())},"aria-label":"Search","aria-controls":"search-suggestions","aria-autocomplete":"list"})]}),(0,t.jsxs)("div",{className:"flex items-center justify-center gap-spacing-spacing-8",children:[o?.trim()&&(0,t.jsx)("button",{className:P(),onClick:()=>{_(-1),T(!1),y(),S.current?.focus(),v(!0)},"aria-label":"Clear search",children:(0,t.jsx)(a.SvgIcon,{icon:"close",size:"xss-download",className:"!text-component-button-primary-filled-icon m-1 [&_path]:stroke-[3]"})}),(0,t.jsx)(n.default,{ctaComponentClass:"component-header-button-color-1",text:N("Go"),ctaIcon:"arrow-right",ctaVariant:"primary",ctaIconAlignment:"right",className:O(),gtmEvent:(0,l.createCTAClickEvent)({event:"cta_click",componentName:"Search Bar",clickText:N("Go")||"",componentHeader:o?.trim()||""}),onClick:()=>{o?.trim()&&(p?p():d&&d(o?.trim()))},disabled:!o?.trim()})]})]}),(0,t.jsx)("ul",{id:"search-suggestions",ref:C,className:(0,r.default)("sm:px-spacing-spacing-56 px-spacing-spacing-12","absolute"===m?(0,r.default)("absolute bg-color-fill-darkest top-full w-full pb-spacing-spacing-24",b&&h.length>0&&o.trim().length>0?"block":"hidden"):"h-full overflow-y-auto py-1"),role:"listbox","aria-label":"Search suggestions",children:!g&&h?.map((e,i)=>(0,t.jsxs)("li",{ref:e=>{E.current[i]=e},className:(0,r.default)(L(),x===i&&D()),onClick:()=>{T(!1),U(e)},onMouseDown:F,onMouseEnter:()=>{!w&&_(i)},onKeyDown:e=>{let t;return t=h.length>0&&!g,void("ArrowDown"===e.key?(e.preventDefault(),e.stopPropagation(),T(!0),v(!0),t&&_(i<h.length-1?i+1:0)):"ArrowUp"===e.key?(e.preventDefault(),e.stopPropagation(),T(!0),v(!0),t&&_(i>0?i-1:h.length-1)):"Enter"===e.key?(e.preventDefault(),e.stopPropagation(),U(h[i])):"Escape"===e.key&&(e.preventDefault(),e.stopPropagation(),v(!1),_(-1),T(!1),S.current?.focus()))},role:"option","aria-selected":x===i,tabIndex:w&&x===i?0:-1,children:[(0,t.jsx)("span",{className:R(),children:((e,r)=>{let i,n=r.trim();if(!n)return e;let a=RegExp(n.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),"ig"),s=[],o=0;for(;null!==(i=a.exec(e));){let r=i.index,n=r+i[0].length;r>o&&s.push(e.slice(o,r)),s.push((0,t.jsx)("span",{className:"bg-transparent text-color-text-accent-1",children:e.slice(r,n)},`${r}-${n}`)),o=n}return o<e.length&&s.push(e.slice(o)),s.length?s:e})(e.text,o)}),(0,t.jsx)("span",{className:M(),children:(0,t.jsx)(a.SvgIcon,{icon:"arrow-right",size:"xss",className:"text-white group-hover:text-color-text-accent-1 transition-all duration-300"})})]},`${e.text}-${i}`))})]})}])},293482,e=>{"use strict";var t=e.i(843476),r=e.i(271645),i=e.i(211418);e.i(879806);var n=e.i(871084),a=e.i(929955),s=e.i(310099),o=e.i(506914),l=e.i(422674),c=e.i(296217),u=e.i(197203),d=e.i(607952),p=e.i(90376),h=e.i(846763);let f=(0,i.tv)({slots:{searchBoxWrapper:["fixed inset-0 bg-white overflow-hidden h-[100dvh] flex flex-col transition-opacity duration-300 ease-out z-40","bg-[linear-gradient(111deg,_var(--color-core-color-1-600)_0%,_var(--color-bg-darkest)_80%,_var(--color-core-color-2-700)_100%)]"],overlayImage:"w-full h-full object-center object-cover no-repeat pointer-events-none z-[-1]",searchBoxContainer:"flex flex-col py-margin-base px-margin-base relative sm:sp
131ace-y-spacing-spacing-24 space-y-spacing-spacing-16 h-full flex-grow overflow-y-auto transition-transform duration-300 ease-out",closeButton:"border-general-border-width-button rounded-general-border-radius-button border-component-button-white-outline-border p-spacing-spacing-12 flex items-center justify-center ml-auto",searchBoxTitle:"bg-clip-text text-transparent bg-gradient-to-r from-color-core-color-2-400 via-color-core-gradient-1-stop-2 to-color-core-gradient-1-stop-1 from-[0%] via-[40%] to-[100%] font-typography-font-family-header font-typography-font-weight-large text-typography-font-size-large leading-typography-line-height-large text-center sm:pb-spacing-spacing-64 pb-spacing-spacing-32",searchIcon:"p-spacing-spacing-8 gap-[8px] flex items-center justify-center rounded-full text-color-icon-icon",inputWrapper:"flex items-center justify-between gap-space-between-less bg-white rounded-full px-spacing-spacing-16 py-spacing-spacing-10",inputBox:"w-full h-11 rounded-full outline-none text-color-text-text text-typography-font-family-body text-typography-font-size-body-large leading-typography-line-height-body-large font-typography-font-weight-body text-ellipsis overflow-hidden px-0.5",clearSearchIcon:"rounded-general-border-radius-button bg-color-fill-light flex items-center justify-center w-8 h-8",goSearchButton:"!px-spacing-spacing-16 !py-spacing-spacing-12 min-w-[79px] !w-auto !min-h-10 disabled:text-component-button-primary-filled-icon-disabled border-none [&_svg]:disabled:text-component-button-primary-filled-icon-disabled [&_svg]:text-component-button-primary-filled-text",suggestionItem:"text-white flex items-center justify-between w-full text-ellipsis overflow-hidden cursor-pointer hover:bg-component-button-primary-ghost-bg-hover rounded-full mb-spacing-spacing-8 group transition-all duration-300",suggestionItemText:"inline-block w-full py-spacing-spacing-10 px-spacing-spacing-16 truncate text-ellipsis overflow-hidden",suggestionItemArrow:"p-3 flex items-center justify-center",popularSearchesWrapper:"flex flex-col items-center justify-center max-w-[830px] w-full mx-auto py-spacing-spacing-24 border-t border-color-border-mid",popularSearchesTitle:"text-color-text-mid text-typography-font-family-body text-typography-font-size-body-large leading-typography-line-height-body-large font-typography-font-weight-body-bold",popularSearchesList:"flex flex-wrap items-center justify-center w-full mt-spacing-between-between-base sm:gap-spacing-spacing-24 gap-spacing-spacing-16 mt-spacing-spacing-24",popularItemButton:"!w-auto !min-w-2 !text-component-button-white-outline-text !border-component-button-white-outline-border !bg-component-button-white-outline-bg hover:!text-component-button-white-outline-text-hover hover:!border-component-button-white-outline-border-hover hover:!bg-component-button-white-outline-bg-hover whitespace-nowrap",inputSuggestionsWrapper:"flex flex-col justify-center max-w-[627px] mx-auto w-full space-y-spacing-spacing-24 overflow-y-auto flex-grow",searchBarWrapper:"flex flex-col flex-grow overflow-y-auto min-h-[350px] md:min-h-[430px]"},variants:{isOpen:{true:{searchBoxWrapper:"opacity-100",searchBoxContainer:"translate-y-0"},false:{searchBoxWrapper:"opacity-0",searchBoxContainer:"translate-y-4"}}}});e.s(["default",0,({closeSearch:e,entityName:i,rfkid:g,sources:m,aiMode:y})=>{let[b,v]=(0,r.useState)(!1),[x,_]=(0,r.useState)(""),w=(0,r.useRef)(null),T=(0,r.useRef)(null),{language:S,country:C}=(0,p.useLocaleFromContext)(),E=()=>{let e=w.current;return e?Array.from(e.querySelectorAll('a[href], area[href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), button:not([disabled]), [tabindex]:not([tabindex="-1"])')).filter(e=>!e.hasAttribute("data-focus-sentinel")):[]},{suggestions:k,trackSuggestionClick:N,performSearch:I,loading:A,error:j}=(0,a.useSitecoreCloudSearch)({widgetType:i||"globalsearch",widgetId:g||"rfkid_7",maxResults:6,locale:{language:S,country:C},sources:m||["1173498"],suggestions:[{name:"global_search_did_you_mean"},{name:"global_search_auto_suggest"}]}),P=(0,l.useSitecoreContext)(),O=P?.sitecoreContext?.siteSettings??{},L=O.searchTiles?.map(e=>e.searchTileCTA.jsonValue),D=O.searchPageLink?.value?.href,R=O.searchPageLink?.value?.target,{getDictionaryValue:M}=(0,s.default)(),B=(0,r.useRef)(I);(0,r.useEffect)(()=>{B.current=I},[I]),(0,r.useEffect)(()=>{let e=requestAnimationFrame(()=>v(!0));return()=>cancelAnimationFrame(e)},[]),(0,d.useBodyScrollLock)(!0),(0,r.useEffect)(()=>{let e=document.activeElement,t=setTimeout(()=>{T.current?.focus()},0);return()=>{clearTimeout(t),e?.focus?.()}},[]);let U=()=>{v(!1),setTimeout(()=>{e()},250)};(0,r.useEffect)(()=>{let e=setTimeout(()=>{x.trim().length>0?B.current(x.trim()):B.current("")},250);return()=>clearTimeout(e)},[x]);let{searchBoxWrapper:F,searchBoxContainer:$,closeButton:z,searchBoxTitle:q,popularSearchesWrapper:H,popularSearchesTitle:W,popularSearchesList:V,popularItemButton:G,searchBarWrapper:X}=f({isOpen:b});return(0,t.jsx)("div",{className:F(),ref:w,onKeyDown:e=>{"Escape"===e.key&&(e.preventDefault(),U())},role:"dialog","aria-modal":"true","aria-labelledby":"search-input",children:y?(0,t.jsx)(h.default,{handleClose:U}):(0,t.jsxs)("div",{className:$(),children:[(0,t.jsx)("span",{tabIndex:0,"data-focus-sentinel":!0,"aria-hidden":"true",className:"sr-only",onFocus:()=>{let e=E();e[e.length-1]?.focus()}}),(0,t.jsx)("div",{className:"relative",children:(0,t.jsx)("button",{onClick:U,className:z(),children:(0,t.jsx)(n.SvgIcon,{icon:"close",size:"xxs",className:"!text-component-button-white-outline-icon m-1 [&_path]:stroke-[3]"})})}),(0,t.jsxs)("div",{className:X(),children:[(0,t.jsx)(o.default,{className:q(),field:{value:M("What_Are_You_Looking_For")},tag:"div"}),(0,t.jsx)(u.SearchBar,{query:x,setQuery:_,handleClearSearch:()=>{_(""),B.current("",void 0)},redirectToSearch:e=>{let t=e.trim();if(!t||!D)return;let r=`${D}?q=${encodeURIComponent(t)}`;"_blank"===R?window.open(r,"_blank","noopener,noreferrer"):window.location.assign(r),U()},suggestions:k,trackSuggestionClick:N,loading:A,error:j})]}),(0,t.jsxs)("div",{className:H(),children:[(0,t.jsx)(o.default,{className:W(),field:{value:M("Popular_Searches")}}),(0,t.jsx)("ul",{className:V(),children:L?.map((e,r)=>(0,t.jsx)("li",{className:"text-center text-white",children:(0,t.jsx)(c.default,{ctaComponentClass:"default",ctaVariant:"secondary",className:G(),field:e,onClick:()=>U()})},`${String(r)}`))})]}),(0,t.jsx)("span",{tabIndex:0,"data-focus-sentinel":!0,"aria-hidden":"true",className:"sr-only",onFocus:()=>{let e=E();
131e[0]?.focus()}})]})})}])},39220,e=>{"use strict";var t=e.i(271645);let r=e=>{e?.scrollIntoView({block:"start",inline:"nearest",behavior:"smooth"})},i=(e,t,i,n=0,a,s)=>{if(!e)return;let o=0,l=t&&document.getElementById(t);l&&(o=l?.getBoundingClientRect().height||0),a&&(o+=a),e.style.top=`-${o}px`,i?Promise.all(i.getAnimations().map(e=>e.finished)).then(()=>{r(e),s&&s()}):setTimeout(()=>{r(e),s&&s()},n)};e.s(["smoothScrollToElement",0,i,"useScrollElementIntoView",0,function(e,r={disableScroll:!1,stickyHeaderId:"",condition:!1,animationElement:null,delay:0,allowScrollOnLoad:!1}){let{disableScroll:n,stickyHeaderId:a,condition:s,scrollTargetId:o,animationElement:l,delay:c,allowScrollOnLoad:u}=r,d=(0,t.useRef)(void 0);(0,t.useEffect)(()=>{if(n)return;let t="string"==typeof e?document.getElementById(e):e;if(!t)return;let r=document.createElement("div");r.classList.add("absolute","left-0"),o&&(r.id=o),d.current=r;let i=document.createElement("div");return i.classList.add("relative"),i.appendChild(r),t.insertAdjacentElement("beforebegin",i),()=>{i.remove()}},[e,n,o]);let p=(0,t.useCallback)(()=>{n||i(d.current,a??"",l,c)},[l,c,n,a]),h=(0,t.useRef)(!u&&s);return(0,t.useEffect)(()=>{n||(s&&!h.current&&p(),h.current=s)},[s,n,p]),p}])},12590,e=>{"use strict";var t=e.i(843476),r=e.i(211418),i=e.i(310099),n=e.i(39220);e.i(879806);var a=e.i(871084),s=e.i(506914),o=e.i(136905);let l=(0,r.tv)({slots:{base:["left-1","sr-only","top-1","focus:absolute","focus:!bg-component-button-primary-filled-bg-focused","focus:!text-component-button-primary-filled-text-hover","focus:font-typography-font-family-body","focus:text-typography-font-size-body-large","focus:shadow-2xs","focus:shadow-color-border-border-focus","focus:!outline-color-border-border-focus","focus:outline-none","focus:ring-4","focus:ring-offset-1","focus:ring-color-border-border-focus","focus:flex","focus:items-center","focus:gap-spacing-spacing-8","focus:not-sr-only","focus:py-spacing-spacing-16","focus:px-spacing-spacing-24","focus:border-general-border-width-button","focus:border-component-button-primary-filled-border-focused","focus:rounded-general-border-radius-button","focus:z-50"]}});e.s(["default",0,()=>{let{base:e}=l(),{getDictionaryValue:r}=(0,i.default)();return(0,t.jsx)("div",{"data-component":"authorable/shared/site-structure/skipnav/skipnav",...(0,o.getTestProps)("component-skip-nav"),children:(0,t.jsxs)("button",{className:e(),role:"button",...(0,o.getTestProps)("link"),onClick:()=>{let e=document.getElementById("main-content");e&&(0,n.smoothScrollToElement)(e,"header",null,0,void 0,()=>{e.setAttribute("tabindex","-1"),e.focus({preventScroll:!0}),e.removeAttribute("tabindex")})},children:[(0,t.jsx)(a.SvgIcon,{icon:"arrow-down",size:"s"}),(0,t.jsx)(s.default,{field:{value:r("SkipToMainContent")||"Skip to main content"},tag:"p"})]})})}])},859637,726875,e=>{"use strict";var t=e.i(843476),r=e.i(271645),i=e.i(929955),n=e.i(618566),a=e.i(90376);e.s(["FACET_VALUES_MAX",0,50],726875);let s="ranking";function o(e){return e?.fields?.title?.value?.toLowerCase()?.trim()==="relevance"}let l=["utm_campaign","utm_content","utm_term","utm_medium","utm_source"],c=(0,r.createContext)(null),u=(0,r.createContext)(null),d=(0,r.createContext)(null);function p({children:e,baseConfig:h,sortOptions:f,startDateFieldName:g,endDateFieldName:m}){let y=(0,n.usePathname)(),b=(0,n.useSearchParams)(),[v,x]=(0,r.useState)(""),[_,w]=(0,r.useState)(""),[T,S]=(0,r.useState)([]),[C,E]=(0,r.useState)(f?.[0]||null),k=(0,r.useRef)(C);k.current=C;let[N,I]=(0,r.useState)(1),[A,j]=(0,r.useState)({}),[P,O]=(0,r.useState)(null),[L,D]=(0,r.useState)(""),{results:R,suggestions:M,facets:B,totalItems:U,loading:F,error:$,performSearch:z,trackSuggestionClick:q,trackItemClick:H,trackFacetClick:W}=(0,i.useSitecoreCloudSearch)(h),{language:V,country:G}=(0,a.useLocaleFromContext)(),X=`${V}-${G}`,K=(0,r.useRef)(z),Y=(0,r.useRef)(!1);(0,r.useEffect)(()=>{K.current=z},[z]);let Q=(0,r.useCallback)((e,t,r)=>K.current(e,t,r),[]),J=(0,r.useCallback)(e=>{w(e?e.trim():v.trim()),I(1),E(f?.find(e=>o(e))||f?.[0]||null)},[v,f]),Z=(0,r.useCallback)(()=>{Y.current=!0,x(""),w(""),I(1),E(f?.[0]||null)},[f]);(0,r.useEffect)(()=>{let e="",t=1,r="",i="",n="",a=()=>f?.find(e=>o(e))??null,l=null;{let a=new URL(window.location.href);e=a.searchParams.get("q")||"",l=a.searchParams.get("sort"),t=Number(a.searchParams.get("page")||"1")||1,r=a.searchParams.get("facets")||"",i=a.searchParams.get("startDate")||"",n=a.searchParams.get("endDate")||""}let c=!!(e&&e.trim().length>0);if(x(e),l){let e=function(e,t){if(!e||!t?.length)return;let r=e.indexOf("~");if(r<0)return;let i=e.slice(0,r),n=e.slice(r+1);if(n===s||"__ranking__"===n){let e=t.find(e=>e.fields?.fieldName?.value===i&&e.fields?.sortByRanking?.value===!0);if(e)return e}return t.find(e=>e.fields?.fieldName?.value===i&&e.fields?.sortBy?.fields?.order?.value===n)}(l,f);e?E(e):E(a()||f?.[0]||null)}else if(c)E(a()||f?.[0]||null);else{let e=a();e&&k.current&&o(k.current)?E(e):E(f?.[0]||null)}I(t),e&&e.trim().length>0?w(e.trim()):w(""),r&&D(r),(i||n)&&j({start:i?new Date(`${i}T00:00:00Z`).toISOString():void 0,end:n?new Date(`${n}T23:59:59Z`).toISOString():void 0})},[y,b?.toString()]),(0,r.useEffect)(()=>
131{if(L&&B&&0!==B.length)try{let e=(()=>{try{return decodeURIComponent(L)}catch{return L}})();if(e.trim().startsWith("[")||e.trim().startsWith("{")){let t=JSON.parse(e);Array.isArray(t)&&(S(t),D(""))}else{let t=e.split("|").map(e=>e.trim()).filter(e=>e.length>0).map(e=>{let[t,r]=e.split("~");if(!t||!r)return null;let i=decodeURIComponent(t),n=r.split(",").map(e=>e.trim()).filter(e=>e.length>0).map(e=>{let t=decodeURIComponent(e),r=((e,t)=>{let r=B.find(t=>t.name?.toLowerCase()===e?.toLowerCase());if(!r)return null;let i=e=>e.trim().replace(/^\/+|\/+$/g,""),n=r.value?.find(e=>e.text===t);if(n)return n.id;let a=i(t);return(n=r.value?.find(e=>i(e.text)===a))||(n=r.value?.find(e=>e.text.toLowerCase()===t.toLowerCase()))||(n=r.value?.find(e=>i(e.text).toLowerCase()===a.toLowerCase()))?n.id:null})(i,t);return r?{id:r,value:t}:{id:`url-${i}-${t}`.replace(/[^a-zA-Z0-9-]/g,"-"),value:t}}).filter(e=>null!==e&&e.id.length>0);return 0===n.length?null:{name:i,values:n}}).filter(e=>!!e&&!!e.name&&(e.values?.length||0)>0);t.length>0?(S(t),D("")):e.includes("~")?console.warn("Failed to parse any facet items from URL, will retry when facets update"):D("")}}catch{D("")}},[L,B]),(0,r.useEffect)(()=>{if(!T.length||!B||0===B.length||!T.some(e=>e.values?.some(e=>e.id?.startsWith("url-"))))return;let e=!1,t=T.map(t=>{let r=t.values?.map(r=>{if(r.id?.startsWith("url-")&&r.value){let i=((e,t)=>{let r=B.find(t=>t.name?.toLowerCase()===e?.toLowerCase());if(!r)return null;let i=e=>e.trim().replace(/^\/+|\/+$/g,""),n=r.value?.find(e=>e.text===t);if(n)return n.id;let a=i(t);return(n=r.value?.find(e=>i(e.text)===a))||(n=r.value?.find(e=>e.text.toLowerCase()===t.toLowerCase()))||(n=r.value?.find(e=>i(e.text).toLowerCase()===a.toLowerCase()))?n.id:null})(t.name,r.value);if(i&&i!==r.id)return e=!0,{id:i,value:r.value}}return r});return{...t,values:r}});e&&S(t)},[B]);let ee=(0,r.useRef)(!1),et=(0,r.useRef)("");(0,r.useEffect)(()=>{let e,t;if(!ee.current){ee.current=!0;return}if(L&&(!B||0===B.length))return;let r=(e=new URLSearchParams(window.location.search),t={},e.forEach((e,r)=>{let i=r.toLowerCase();l.includes(i)&&e&&(t[i]=e)}),t),i=new URLSearchParams;if(_&&i.set("q",_),C&&!o(C)){let e=C.fields?.fieldName?.value;e&&(C.fields?.sortByRanking?.value===!0?i.set("sort",`${e}~${s}`):C.fields?.sortBy?.fields?.order?.value&&i.set("sort",`${e}~${C.fields.sortBy.fields.order.value}`))}if(N&&1!==N&&i.set("page",String(N)),A?.start){let e=A.start.split("T")[0];i.set("startDate",e)}if(A?.end){let e=A.end.split("T")[0];i.set("endDate",e)}if(T&&T.length>0){let e=T.filter(e=>(e.values||[]).length>0).map(e=>{let t=encodeURIComponent(e.name),r=(e.values||[]).map(t=>{if(!t.id)return null;let r=((e,t,r)=>{if(t.startsWith("url-")&&r)return r;let i=B.find(t=>t.name?.toLowerCase()===e?.toLowerCase());if(!i)return r||null;let n=i.value?.find(e=>e.id===t);return n?n.text:r||null})(e.name,t.id,t.value);return r?encodeURIComponent(r):null}).filter(e=>null!==e);return 0===r.length?null:`${t}~${r.join(",")}`}).filter(e=>null!==e&&e.includes("~")).join("|");e&&i.set("facets",e)}for(let e of l){let t=r[e];t&&i.set(e,t)}let n=window.location.pathname,a=i.toString(),c=a?`${n}?${a}`:n;et.current!==c&&(et.current=c,window.history?.replaceState&&window.history.replaceState(null,"",c))},[_,C,N,T,y,B,L,A]);let er=(0,r.useRef)(!1),ei=(0,r.useRef)("");(0,r.useEffect)(()=>{let e=setTimeout(()=>{let e=v.trim();if(!er.current){er.current=!0,ei.current=e;return}if(0===e.length){if(Y.current){Y.current=!1,ei.current=e;return}ei.current.length>0&&(w(""),I(1),E(f?.[0]||null)),ei.current=e;return}Q(e,void 0,!0),ei.current=e},250);return()=>clearTimeout(e)},[v,Q,f]);let en=(0,r.useRef)(!1),ea=(0,r.useRef)(B),es=(0,r.useRef)("");(0,r.useEffect)(()=>{let e=JSON.stringify(B);es.current!==e&&(es.current=e,ea.current=B)},[B]);let eo=ea.current,el=JSON.stringify(h.ranking??null),ec=(0,r.useMemo)(()=>JSON.stringify({committedQuery:_&&_.trim()||"",filtersFacets:T,sort:C?.fields?.fieldName?.value,sortOrder:C?.fields?.sortBy?.fields?.order?.value,sortByRanking:C?.fields?.sortByRanking?.value===!0,isRelevanceSort:o(C),page:N,dateRange:A,eventStatusFilter:P,facetsLength:eo?.length||0,localeKey:X,ranking:el}),[_,T,C,N,A,P,eo,X,el]),eu=(0,r.useRef)("");(0,r.useEffect)(()=>{let e,t;if(eu.current===ec||L&&(!eo||0===eo.length)||T.some(e=>e.values?.some(e=>e.id?.startsWith("url-")))&&(!eo||0===eo.length))return;eu.current=ec;let r=(N-1)*(h.maxResults??10),i=o(C),n=C?.fields?.sortByRanking?.value===!0,a=C?.fields?.fieldName?.value?.trim(),s=C?.fields?.fieldName?.value,l=C?.fields?.sortBy?.fields?.order?.value;i?(e=void 0,t=void 0):n&&a?(e=void 0,t=[{name:a}]):(e=s&&l?{value:[{name:s,order:l}]}:void 0,t=void 0);let c={offset:r,facets:{all:!0,max:50,types:function(e,t){if(!e||!Array.isArray(e)||0===e.length)return;let r=e?.map(e=>{let r=(e.values||[]).map(r=>((e,r,i)=>{if(!r.startsWith("url-"))return r;if(t&&i){let r=t.find(t=>t.name?.toLowerCase()===e?.toLowerCase());if(r){let e=e=>e.trim().replace(/^\/+|\/+$/g,""),t=r.value?.find(e=>e.text===i);if(t)return t.id;let n=e(i);if((t=r.value?.find(t=>e(t.text)===n))||(t=r.value?.find(e=>e.text.toLowerCase()===i.toLowerCase()))||(t=r.value?.find(t=>e(t.text).toLowerCase()===n.toLowerCase())))return t.id}}return null})(e.name,r.id,r.value)).filter(e=>null!==e&&e.length>0);return 0===r.length?null:{filter:{type:"or",values:r},name:e?.name}}).filter(e=>null!==e);return r.length>0?r:void 0}(T,eo)},sort:e,ranking:t},u=m||"eventenddate";if("futureOngoing"===P){let e=new Date;e.setHours(0,0,0,0),c.filter={type:"and",filters:[{name:u,type:"gte",value:e.toISOString()}]}}else(A?.start||A?.end)&&(c.filter={type:"and",filters:[...A?.start?[{name:g||"eventstartdate",type:"gte",value:A.start}]:[],...A?.end?[{name:u,type:"lte",value:A.end}]:[]]});Q(_&&_.trim()||"",c,!1),en.current=!0},[ec,L,eo,T,h.maxResults,h.filter,Q,_,A,P,N,C]);let ed=(0,r.useMemo)(()=>({query:v,setQuery:x,committedQuery:_,submitSearch:e=>J(e),handleClearSearch:Z}),[v,_,J,Z]),ep=(0,r.useMemo)(()=>({filtersFacets:T,setFiltersFacets:S,sort:C,setSort:E,page:N,setPage:I,handleSortChange:e=>{e?E(e):E(f?.[0]||null),I(1)},handleFilterChange:e=>{let t=new Date().toISOString().split("T")[0];if(!e.name||!e.id)return;let r=e.id,i=T;if("eventstatus"===e.name.toLowerCase()){let r=e.value||"";if("remove"===e.operations){O(null),j({}),S(T.filter(e=>"eventstatus"!==(e.name||"").toLowerCase())),I(1);return}if("add"===e.operations){let e=new Date(`${t}T23:59:59Z`).toISOString();if("Past Event"===r){O(null),j({start:void 0,end:e}),E({fields:{title:{value:"Past Event"},fieldName:{value:"eventstartdate"},sortBy:{fields:{order:{value:"desc"}}}}}),I(1);return}if("Future/Ongoing Event"===r||"Future Event"===r||"Ongoing Event"===r){j({}),O("futureOngoing"),E({fields:{title:{value:"Future/Ongoing Events"},fieldName:{value:"eventstartdate"},sortBy:{fields:{order:{value:"asc"}}}}}),I(1);return}}}if("add"===e.operations)if(T.some(t=>t.name===e.name))i=T.map(t=>t.name===e.name?{...t,values:[...(t.values||[]).filter(e=>e.id!==r),{id:r,value:e.value||""}]}:t);else{let t={...e};e.value&&(t.values=[{id:r,value:e.value||""}],t.id=void 0,t.value=void 0),i=[...T,t]}else"remove"===e.operations&&(i=(i=T.map(t=>t.name===e.name?{...t,values:t.values?.filter(e=>e.id!==r)||[]}:t)).filter(e=>e.values?.length!==0));S(i),I(1)},dateRange:A,setDateRange:j,eventStatusFilter:P,setEventStatusFilter:O}),[T,C,N,A,f,P,O]),[eh,ef]=(0,r.useState)([]),[eg,em]=(0,r.useState)([]),[ey,eb]=(0,r.useState)(0),ev=(0,r.useRef)(null);(0,r.useEffect)(()=>(ev.current&&(clearTimeout(ev.current),ev.current=null),F||(ev.current=setTimeout(()=>{ef(R),em(B),eb(U)},100)),()=>{ev.current&&(clearTimeout(ev.current),ev.current=null)}),[R,B,U,F]);let ex=(0,r.useMemo)(()=>({results:eh,suggestions:M,facets:eg,totalItems:ey,loading:F,error:$,maxResults:h.maxResults??10,runSearch:Q,trackSuggestionClick:q,trackItemClick:H,trackFacetClick:W}),[eh,M,eg,ey,F,$,h.maxResults,Q,q,H,W]);return(0,t.jsx)(c.Provider,{value:ed,children:(0,t.jsx)(u.Provider,{value:ep,children:(0,t.jsx)(d.Provider,{value:ex,children:e})})})}let h=()=>{let e=(0,r.useContext)(c);
131if(!e)throw Error("useSearchQuery must be used within SearchWrapper");return e},f=()=>{let e=(0,r.useContext)(u);if(!e)throw Error("useSearchControls must be used within SearchWrapper");return e},g=()=>{let e=(0,r.useContext)(d);if(!e)throw Error("useSearchData must be used within SearchWrapper");return e};e.s(["SearchWrapper",0,function(e){return(0,t.jsx)(r.Suspense,{fallback:null,children:(0,t.jsx)(p,{...e})})},"isRelevanceSortOption",0,o,"useSearch",0,()=>{let e=h(),t=f(),r=g();return{...e,...t,...r}},"useSearchControls",0,f,"useSearchData",0,g,"useSearchQuery",0,h],859637)},517042,e=>{"use strict";var t=e.i(271645);e.s(["default",0,(e,r,i)=>{let n=(0,t.useCallback)(t=>{e.current&&!e.current.contains(t.target)&&i()},[i,e]);(0,t.useEffect)(()=>(r?document.addEventListener("mousedown",n):document.removeEventListener("mousedown",n),()=>{document.removeEventListener("mousedown",n)}),[r,n])}])},724508,e=>{"use strict";var t=e.i(843476),r=e.i(271645),i=e.i(859637);e.i(879806);var n=e.i(871084),a=e.i(517042);function s(e){return(e??"").trim()}let o=(0,e.i(211418).tv)({slots:{dropdownWrapper:["relative","inline-block"],dropdownButton:["cursor-pointer","text-color-text-text","font-typography-font-family-body","text-typography-font-size-body-small","font-typography-font-weight-body-bold","leading-typography-line-height-body-small","py-spacing-spacing-12","px-spacing-spacing-4","border-border-width-width-025","border-color-border-mid","rounded-[5px]","bg-transparent","w-full","text-left","flex","items-center","gap-spacing-spacing-8","justify-between","transition-colors","relative"],dropdownButtonText:["flex","items-center","flex-1","pl-spacing-spacing-8"],dropdownArrowIcon:["flex","items-center","justify-center","shrink-0","pointer-events-none","transition-transform","duration-200","pl-spacing-spacing-8"],dropdownMenu:["absolute","top-12","left-0","bg-color-surface-white","border-border-width-width-025","border-color-border-mid","rounded-[5px]","shadow-lg","z-40","!w-auto","min-w-full","overflow-auto"],dropdownOption:["w-full","text-left","items-center","py-spacing-spacing-8","px-spacing-spacing-4","text-color-text-text","font-typography-font-family-body","text-typography-font-size-body-small","font-typography-font-weight-body","leading-typography-line-height-body-small","cursor-pointer","transition-colors","rounded-component-card-label-border-radius","hover:underline","decoration-solid","decoration-auto","hover:bg-color-fill-fill-hover","mb-spacing-spacing-4"]},variants:{isOpen:{true:{dropdownMenu:["border-t-0","rounded-tr-none","rounded-tl-none"],dropdownButton:["bg-color-fill-fill-hover","border-color-border-mid","border-b-0","rounded-bl-none","rounded-br-none"],dropdownArrowIcon:["rotate-180"]},false:{dropdownButton:["bg-color-surface-white","hover:bg-color-fill-fill-hover"],dropdownArrowIcon:["rotate-0"]}},isSelected:{true:{dropdownOption:["bg-color-fill-fill-hover","font-typography-font-weight-body-bold"]},false:{}},isFocused:{true:{dropdownOption:["bg-color-fill-fill-hover"]},false:{dropdownOption:["hover:bg-color-fill-fill-hover"]}}}});e.s(["default",0,({sortOptions:e})=>{let{handleSortChange:l,sort:c}
131=(0,i.useSearchControls)(),{totalItems:u}=(0,i.useSearchData)(),[d,p]=(0,r.useState)(!1),[h,f]=(0,r.useState)(-1),g=(0,r.useRef)(null),m=(0,r.useRef)(null),y=(0,r.useRef)([]),{dropdownWrapper:b,dropdownButton:v,dropdownButtonText:x,dropdownArrowIcon:_,dropdownMenu:w,dropdownOption:T}=o({isOpen:d}),S=(0,r.useMemo)(()=>c?e.find(e=>(function(e,t){if(!t)return!1;if(e.id&&t.id&&e.id===t.id||(0,i.isRelevanceSortOption)(e)&&(0,i.isRelevanceSortOption)(t))return!0;if(s(e.fields?.fieldName?.value)!==s(t.fields?.fieldName?.value))return!1;let r=e.fields?.sortByRanking?.value===!0,n=t.fields?.sortByRanking?.value===!0;return r===n&&(!!r&&!!n||s(e.fields?.sortBy?.fields?.order?.value)===s(t.fields?.sortBy?.fields?.order?.value))})(e,c))??e[0]:e[0],[c,e]),C=(0,r.useMemo)(()=>S?.id||"",[S]),E=r.default.useCallback(e=>{l(e||null),p(!1),f(-1)},[l]);return((0,a.default)(g,d,()=>{p(!1),f(-1)}),(0,r.useEffect)(()=>{if(!d)return;let t=t=>{if("Escape"===t.key)p(!1),f(-1),m.current?.focus();else if("ArrowDown"===t.key){t.preventDefault();let r=h<e.length-1?h+1:0;f(r),y.current[r]?.focus()}else if("ArrowUp"===t.key){t.preventDefault();let r=h>0?h-1:e.length-1;f(r),y.current[r]?.focus()}else("Enter"===t.key||" "===t.key)&&(t.preventDefault(),h>=0&&h<e.length&&E(e[h]))};return document.addEventListener("keydown",t),()=>{document.removeEventListener("keydown",t)}},[d,h,e,E]),(0,r.useEffect)(()=>{if(d){let t=e.findIndex(e=>e.id===C);f(t>=0?t:0)}},[d,C,e]),u<=0)?null:(0,t.jsxs)("div",{className:b(),ref:g,children:[(0,t.jsxs)("button",{ref:m,id:"search-sort",type:"button",onClick:()=>p(!d),onKeyDown:e=>{("Enter"===e.key||" "===e.key)&&(e.preventDefault(),p(!d))},"aria-haspopup":"listbox","aria-expanded":d,"aria-label":"Sort search results",className:v(),children:[(0,t.jsx)("span",{className:x(),children:S?.fields?.title?.value||""}),(0,t.jsx)("div",{className:_(),children:(0,t.jsx)(n.SvgIcon,{icon:"dropdown-arrow",size:"s",className:"text-color-icon-icon"})})]}),d&&(0,t.jsx)("div",{role:"listbox","aria-labelledby":"search-sort",className:w(),style:{boxShadow:"var(--shadow-400-box-shadow, 0px 8px 16px -4px rgba(0, 0, 0, 0.1))"},children:(0,t.jsx)("div",{className:"p-2",children:e?.map((e,r)=>{let i=e.id===C,n=r===h;return(0,t.jsx)("button",{ref:e=>{y.current[r]=e},type:"button",role:"option","aria-selected":i,onClick:()=>E(e),onMouseEnter:()=>f(r),className:T({isSelected:i,isFocused:n&&!i}),children:e.fields?.title?.value},e.id||r)})})})]})}])},467034,(e,t,r)=>{var i={675:function(e,t){"use strict";t.byteLength=function(e){var t=l(e),r=t[0],i=t[1];return(r+i)*3/4-i},t.toByteArray=function(e){var t,r,a=l(e),s=a[0],o=a[1],c=new n((s+o)*3/4-o),u=0,d=o>0?s-4:s;for(r=0;r<d;r+=4)t=i[e.charCodeAt(r)]<<18|i[e.charCodeAt(r+1)]<<12|i[e.charCodeAt(r+2)]<<6|i[e.charCodeAt(r+3)],c[u++]=t>>16&255,c[u++]=t>>8&255,c[u++]=255&t;return 2===o&&(t=i[e.charCodeAt(r)]<<2|i[e.charCodeAt(r+1)]>>4,c[u++]=255&t),1===o&&(t=i[e.charCodeAt(r)]<<10|i[e.charCodeAt(r+1)]<<4|i[e.charCodeAt(r+2)]>>2,c[u++]=t>>8&255,c[u++]=255&t),c},t.fromByteArray=function(e){for(var t,i=e.length,n=i%3,a=[],s=0,o=i-n;s<o;s+=16383)a.push(function(e,t,i){for(var n,a=[],s=t;s<i;s+=3)n=(e[s]<<16&0xff0000)+(e[s+1]<<8&65280)+(255&e[s+2]),a.push(r[n>>18&63]+r[n>>12&63]+r[n>>6&63]+r[63&n]);return a.join("")}(e,s,s+16383>o?o:s+16383));return 1===n?a.push(r[(t=e[i-1])>>2]+r[t<<4&63]+"=="):2===n&&a.push(r[(t=(e[i-2]<<8)+e[i-1])>>10]+r[t>>4&63]+r[t<<2&63]+"="),a.join("")};for(var r=[],i=[],n="u">typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,o=a.length;s<o;++s)r[s]=a[s],i[a.charCodeAt(s)]=s;function l(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 i=r===t?0:4-r%4;return[r,i]}i[45]=62,i[95]=63},72:function(e,t,r){"use strict";var i=r(675),n=r(783),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 u(e)}return l(e,t,r)}function l(e,t,r){if("string"==typeof e){var i=e,n=t;if(("string"!=typeof n||""===n)&&(n="utf8"),!o.isEncoding(n))throw TypeError("Unknown encoding: "+n);var a=0|h(i,n),l=s(a),c=l.write(i,n);return c!==a&&(l=l.slice(0,c)),l}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 i;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(i=void 0===t&&void 0===r?new Uint8Array(e):void 0===r?new Uint8Array(e,t):new Uint8Array(e,t,r),o.prototype),i}(e,t,r);if("number"==typeof e)throw TypeError('The "value" argument must not be of type number. Received type number');var u=e.valueOf&&e.valueOf();if(null!=u&&u!==e)return o.from(u,t,r);var f=function(e){if(o.isBuffer(e)){var t=0|p(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(f)return f;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 c(e){if("number"!=typeof e)throw TypeError('"size" argument must be of type number');
vendor: 16,459 bytes, line 131
131if(e<0)throw RangeError('The value "'+e+'" is invalid for option "size"')}function u(e){return c(e),s(e<0?0:0|p(e))}function d(e){for(var t=e.length<0?0:0|p(e.length),r=s(t),i=0;i<t;i+=1)r[i]=255&e[i];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 l(e,t,r)},Object.setPrototypeOf(o.prototype,Uint8Array.prototype),Object.setPrototypeOf(o,Uint8Array),o.alloc=function(e,t,r){return(c(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 u(e)},o.allocUnsafeSlow=function(e){return u(e)};function p(e){if(e>=0x7fffffff)throw RangeError("Attempt to allocate Buffer larger than maximum size: 0x7fffffff bytes");return 0|e}function h(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,i=arguments.length>2&&!0===arguments[2];if(!i&&0===r)return 0;for(var n=!1;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return C(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return k(e).length;default:if(n)return i?-1:C(e).length;t=(""+t).toLowerCase(),n=!0}}function f(e,t,r){var n,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 i=e.length;(!t||t<0)&&(t=0),(!r||r<0||r>i)&&(r=i);for(var n="",a=t;a<r;++a)n+=A[e[a]];return n}(this,t,r);case"utf8":case"utf-8":return b(this,t,r);case"ascii":return function(e,t,r){var i="";r=Math.min(e.length,r);for(var n=t;n<r;++n)i+=String.fromCharCode(127&e[n]);return i}(this,t,r);case"latin1":case"binary":return function(e,t,r){var i="";r=Math.min(e.length,r);for(var n=t;n<r;++n)i+=String.fromCharCode(e[n]);return i}(this,t,r);case"base64":return n=this,a=t,s=r,0===a&&s===n.length?i.fromByteArray(n):i.fromByteArray(n.slice(a,s));case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return function(e,t,r){for(var i=e.slice(t,r),n="",a=0;a<i.length;a+=2)n+=String.fromCharCode(i[a]+256*i[a+1]);return n}(this,t,r);default:if(o)throw TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),o=!0}}function g(e,t,r){var i=e[t];e[t]=e[r],e[r]=i}function m(e,t,r,i,n){var a;if(0===e.length)return -1;if("string"==typeof r?(i=r,r=0):r>0x7fffffff?r=0x7fffffff:r<-0x80000000&&(r=-0x80000000),(a=r*=1)!=a&&(r=n?0:e.length-1),r<0&&(r=e.length+r),r>=e.length)if(n)return -1;else r=e.length-1;else if(r<0)if(!n)return -1;else r=0;if("string"==typeof t&&(t=o.from(t,i)),o.isBuffer(t))return 0===t.length?-1:y(e,t,r,i,n);if("number"==typeof t){if(t&=255,"function"==typeof Uint8Array.prototype.indexOf)if(n)return Uint8Array.prototype.indexOf.call(e,t,r);else return Uint8Array.prototype.lastIndexOf.call(e,t,r);return y(e,[t],r,i,n)}throw TypeError("val must be string, number or Buffer")}function y(e,t,r,i,n){var a,s=1,o=e.length,l=t.length;if(void 0!==i&&("ucs2"===(i=String(i).toLowerCase())||"ucs-2"===i||"utf16le"===i||"utf-16le"===i)){if(e.length<2||t.length<2)return -1;s=2,o/=2,l/=2,r/=2}function c(e,t){return 1===s?e[t]:e.readUInt16BE(t*s)}if(n){var u=-1;for(a=r;a<o;a++)if(c(e,a)===c(t,-1===u?0:a-u)){if(-1===u&&(u=a),a-u+1===l)return u*s}else -1!==u&&(a-=a-u),u=-1}else for(r+l>o&&(r=o-l),a=r;a>=0;a--){for(var d=!0,p=0;p<l;p++)if(c(e,a+p)!==c(t,p)){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,i=t.length,n=0,a=Math.min(r,i);n<a;++n)if(e[n]!==t[n]){r=e[n],i=t[n];break}return r<i?-1:+(i<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,i=o.allocUnsafe(t),n=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(i,n),n+=a.length}return i},o.byteLength=h,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)g(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)g(this,t,t+3),g(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)g(this,t,t+7),g(this,t+1,t+6),g(this,t+2,t+5),g(this,t+3,t+4);return this},o.prototype.toString=function(){var e=this.length;return 0===e?"":0==arguments.length?b(this,0,e):f.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,i,n){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===i&&(i=0),void 0===n&&(n=this.length),t<0||r>e.length||i<0||n>this.length)throw RangeError("out of range index");if(i>=n&&t>=r)return 0;if(i>=n)return -1;if(t>=r)return 1;if(t>>>=0,r>>>=0,i>>>=0,n>>>=0,this===e)return 0;for(var a=n-i,s=r-t,l=Math.min(a,s),c=this.slice(i,n),u=e.slice(t,r),d=0;d<l;++d)if(c[d]!==u[d]){a=c[d],s=u[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 m(this,e,t,r,!0)},o.prototype.lastIndexOf=function(e,t,r){return m(this,e,t,r,!1)};function b(e,t,r){r=Math.min(e.length,r);for(var i=[],n=t;n<r;){var a,s,o,l,c=e[n],u=null,d=c>239?4:c>223?3:c>191?2:1;if(n+d<=r)switch(d){case 1:c<128&&(u=c);break;case 2:(192&(a=e[n+1]))==128&&(l=(31&c)<<6|63&a)>127&&(u=l);break;case 3:a=e[n+1],s=e[n+2],(192&a)==128&&(192&s)==128&&(l=(15&c)<<12|(63&a)<<6|63&s)>2047&&(l<55296||l>57343)&&(u=l);break;case 4:a=e[n+1],s=e[n+2],o=e[n+3],(192&a)==128&&(192&s)==128&&(192&o)==128&&(l=(15&c)<<18|(63&a)<<12|(63&s)<<6|63&o)>65535&&l<1114112&&(u=l)}null===u?(u=65533,d=1):u>65535&&(u-=65536,i.push(u>>>10&1023|55296),u=56320|1023&u),i.push(u),n+=d}var p=i,h=p.length;if(h<=4096)return String.fromCharCode.apply(String,p);for(var f="",g=0;g<h;)f+=String.fromCharCode.apply(String,p.slice(g,g+=4096));return f}function v(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 x(e,t,r,i,n,a){if(!o.isBuffer(e))throw TypeError('"buffer" argument must be a Buffer instance');if(t>n||t<a)throw RangeError('"value" argument is out of bounds');if(r+i>e.length)throw RangeError("Index out of range")}function _(e,t,r,i,n,a){if(r+i>e.length||r<0)throw RangeError("Index out of range")}function w(e,t,r,i,a){return t*=1,r>>>=0,a||_(e,t,r,4,34028234663852886e22,-34028234663852886e22),n.write(e,t,r,i,23,4),r+4}function T(e,t,r,i,a){return t*=1,r>>>=0,a||_(e,t,r,8,17976931348623157e292,-17976931348623157e292),n.write(e,t,r,i,52,8),r+8}o.prototype.write=function(e,t,r,i){if(void 0===t)i="utf8",r=this.length,t=0;else if(void 0===r&&"string"==typeof t)i=t,r=this.length,t=0;else if(isFinite(t))t>>>=0,isFinite(r)?(r>>>=0,void 0===i&&(i="utf8")):(i=r,r=void 0);else throw Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var n,a,s,o,l,c,u,d,p=this.length-t;if((void 0===r||r>p)&&(r=p),e.length>0&&(r<0||t<0)||t>this.length)throw RangeError("Attempt to write outside buffer bounds");i||(i="utf8");for(var h=!1;;)switch(i){case"hex":return function(e,t,r,i){r=Number(r)||0;var n=e.length-r;i?(i=Number(i))>n&&(i=n):i=n;var a=t.length;i>a/2&&(i=a/2);for(var s=0;s<i;++s){var o,l=parseInt(t.substr(2*s,2),16);if((o=l)!=o)break;e[r+s]=l}return s}(this,e,t,r);case"utf8":case"utf-8":return n=t,a=r,N(C(e,this.length-n),this,n,a);case"ascii":return s=t,o=r,N(E(e),this,s,o);case"latin1":case"binary":return function(e,t,r,i){return N(E(t),e,r,i)}(this,e,t,r);case"base64":return l=t,c=r,N(k(e),this,l,c);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return u=t,d=r,N(function(e,t){for(var r,i,n=[],a=0;a<e.length&&!((t-=2)<0);++a)i=(r=e.charCodeAt(a))>>8,n.push(r%256),n.push(i);return n}(e,this.length-u),this,u,d);default:if(h)throw TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),h=!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 i=this.subarray(e,t);return Object.setPrototypeOf(i,o.prototype),i},o.prototype.readUIntLE=function(e,t,r){e>>>=0,t>>>=0,r||v(e,t,this.length);for(var i=this[e],n=1,a=0;++a<t&&(n*=256);)i+=this[e+a]*n;return i},o.prototype.readUIntBE=function(e,t,r){e>>>=0,t>>>=0,r||v(e,t,this.length);for(var i=this[e+--t],n=1;t>0&&(n*=256);)i+=this[e+--t]*n;return i},o.prototype.readUInt8=function(e,t){return e>>>=0,t||v(e,1,this.length),this[e]},o.prototype.readUInt16LE=function(e,t){return e>>>=0,t||v(e,2,this.length),this[e]|this[e+1]<<8},o.prototype.readUInt16BE=function(e,t){return e>>>=0,t||v(e,2,this.length),this[e]<<8|this[e+1]},o.prototype.readUInt32LE=function(e,t){return e>>>=0,t||v(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||v(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||v(e,t,this.length);for(var i=this[e],n=1,a=0;++a<t&&(n*=256);)i+=this[e+a]*n;return i>=(n*=128)&&(i-=Math.pow(2,8*t)),i},o.prototype.readIntBE=function(e,t,r){e>>>=0,t>>>=0,r||v(e,t,this.length);for(var i=t,n=1,a=this[e+--i];i>0&&(n*=256);)a+=this[e+--i]*n;return a>=(n*=128)&&(a-=Math.pow(2,8*t)),a},o.prototype.readInt8=function(e,t){return(e>>>=0,t||v(e,1,this.length),128&this[e])?-((255-this[e]+1)*1):this[e]},o.prototype.readInt16LE=function(e,t){e>>>=0,t||v(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||v(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||v(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||v(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||v(e,4,this.length),n.read(this,e,!0,23,4)},o.prototype.readFloatBE=function(e,t){return e>>>=0,t||v(e,4,this.length),n.read(this,e,!1,23,4)},o.prototype.readDoubleLE=function(e,t){return e>>>=0,t||v(e,8,this.length),n.read(this,e,!0,52,8)},o.prototype.readDoubleBE=function(e,t){return e>>>=0,t||v(e,8,this.length),n.read(this,e,!1,52,8)},o.prototype.writeUIntLE=function(e,t,r,i){if(e*=1,t>>>=0,r>>>=0,!i){var n=Math.pow(2,8*r)-1;x(this,e,t,r,n,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,i){if(e*=1,t>>>=0,r>>>=0,!i){var n=Math.pow(2,8*r)-1;x(this,e,t,r,n,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||x(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||x(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||x(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||x(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||x(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,i){if(e*=1,t>>>=0,!i){var n=Math.pow(2,8*r-1);x(this,e,t,r,n-1,-n)}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,i){if(e*=1,t>>>=0,!i){var n=Math.pow(2,8*r-1);x(this,e,t,r,n-1,-n)}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||x(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||x(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||x(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||x(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||x(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 w(this,e,t,!0,r)},o.prototype.writeFloatBE=function(e,t,r){return w(this,e,t,!1,r)},o.prototype.writeDoubleLE=function(e,t,r){return T(this,e,t,!0,r)},o.prototype.writeDoubleBE=function(e,t,r){return T(this,e,t,!1,r)},o.prototype.copy=function(e,t,r,i){if(!o.isBuffer(e))throw TypeError("argument should be a Buffer");if(r||(r=0),i||0===i||(i=this.length),t>=e.length&&(t=e.length),t||(t=0),i>0&&i<r&&(i=r),i===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(i<0)throw RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),e.length-t<i-r&&(i=e.length-t+r);var n=i-r;if(this===e&&"function"==typeof Uint8Array.prototype.copyWithin)this.copyWithin(t,r,i);else if(this===e&&r<t&&t<i)for(var a=n-1;a>=0;--a)e[a+t]=this[a+r];else Uint8Array.prototype.set.call(e,this.subarray(r,i),t);return n},o.prototype.fill=function(e,t,r,i){if("string"==typeof e){if("string"==typeof t?(i=t,t=0,r=this.length):"string"==typeof r&&(i=r,r=this.length),void 0!==i&&"string"!=typeof i)throw TypeError("encoding must be a string");if("string"==typeof i&&!o.isEncoding(i))throw TypeError("Unknown encoding: "+i);if(1===e.length){var n,a=e.charCodeAt(0);("utf8"===i&&a<128||"latin1"===i)&&(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(n=t;n<r;++n)this[n]=e;
131else{var s=o.isBuffer(e)?e:o.from(e,i),l=s.length;if(0===l)throw TypeError('The value "'+e+'" is invalid for argument "value"');for(n=0;n<r-t;++n)this[n+t]=s[n%l]}return this};var S=/[^+/0-9A-Za-z-_]/g;function C(e,t){t=t||1/0;for(var r,i=e.length,n=null,a=[],s=0;s<i;++s){if((r=e.charCodeAt(s))>55295&&r<57344){if(!n){if(r>56319||s+1===i){(t-=3)>-1&&a.push(239,191,189);continue}n=r;continue}if(r<56320){(t-=3)>-1&&a.push(239,191,189),n=r;continue}r=(n-55296<<10|r-56320)+65536}else n&&(t-=3)>-1&&a.push(239,191,189);if(n=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 E(e){for(var t=[],r=0;r<e.length;++r)t.push(255&e.charCodeAt(r));return t}function k(e){return i.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(S,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function N(e,t,r,i){for(var n=0;n<i&&!(n+r>=t.length)&&!(n>=e.length);++n)t[n+r]=e[n];return n}function I(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}var A=function(){for(var e="0123456789abcdef",t=Array(256),r=0;r<16;++r)for(var i=16*r,n=0;n<16;++n)t[i+n]=e[r]+e[n];return t}()},783:function(e,t){t.read=function(e,t,r,i,n){var a,s,o=8*n-i-1,l=(1<<o)-1,c=l>>1,u=-7,d=r?n-1:0,p=r?-1:1,h=e[t+d];for(d+=p,a=h&(1<<-u)-1,h>>=-u,u+=o;u>0;a=256*a+e[t+d],d+=p,u-=8);for(s=a&(1<<-u)-1,a>>=-u,u+=i;u>0;s=256*s+e[t+d],d+=p,u-=8);if(0===a)a=1-c;else{if(a===l)return s?NaN:1/0*(h?-1:1);s+=Math.pow(2,i),a-=c}return(h?-1:1)*s*Math.pow(2,a-i)},t.write=function(e,t,r,i,n,a){var s,o,l,c=8*a-n-1,u=(1<<c)-1,d=u>>1,p=5960464477539062e-23*(23===n),h=i?0:a-1,f=i?1:-1,g=+(t<0||0===t&&1/t<0);for(isNaN(t=Math.abs(t))||t===1/0?(o=+!!isNaN(t),s=u):(s=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-s))<1&&(s--,l*=2),s+d>=1?t+=p/l:t+=p*Math.pow(2,1-d),t*l>=2&&(s++,l/=2),s+d>=u?(o=0,s=u):s+d>=1?(o=(t*l-1)*Math.pow(2,n),s+=d):(o=t*Math.pow(2,d-1)*Math.pow(2,n),s=0));n>=8;e[r+h]=255&o,h+=f,o/=256,n-=8);for(s=s<<n|o,c+=n;c>0;e[r+h]=255&s,h+=f,s/=256,c-=8);e[r+h-f]|=128*g}}},n={};function a(e){var t=n[e];if(void 0!==t)return t.exports;var r=n[e]={exports:{}},s=!0;try{i[e](r,r.exports,a),s=!1}finally{s&&delete n[e]}return r.exports}a.ab="/ROOT/node_modules/next/dist/compiled/buffer/",t.exports=a(72)},477398,(e,t,r)=>{var i=e.i(467034),n=e.i(247167),a={8992:function(e){e.exports=function(e,r,i){if(e.filter)return e.filter(r,i);if(null==e||"function"!=typeof r)throw TypeError();for(var n=[],a=0;a<e.length;a++)if(t.call(e,a)){var s=e[a];r.call(i,s,a,e)&&n.push(s)}return n};var t=Object.prototype.hasOwnProperty},5555:function(e,t,r){"use strict";var i=r(1212),n=r(1909),a=r(8737);e.exports=r(8772)||i.call(a,n)},9905:function(e,t,r){"use strict";var i=r(1212),n=r(1909),a=r(5555);e.exports=function(){return a(i,n,arguments)}},1909:function(e){"use strict";e.exports=Function.prototype.apply},8737:function(e){"use strict";e.exports=Function.prototype.call},7152:function(e,t,r){"use strict";var i=r(1212),n=r(8202),a=r(8737),s=r(5555);e.exports=function(e){if(e.length<1||"function"!=typeof e[0])throw new n("a function is required");return s(i,a,e)}},8772:function(e){"use strict";e.exports="u">typeof Reflect&&Reflect&&Reflect.apply},516:function(e,t,r){"use strict";var i=r(3197),n=r(9042),a=n(i("String.prototype.indexOf"));e.exports=function(e,t){var r=i(e,!!t);return"function"==typeof r&&a(e,".prototype.")>-1?n(r):r}},9042:function(e,t,r){"use strict";var i=r(3143),n=r(446),a=r(7152),s=r(9905);e.exports=function(e){var t=a(arguments),r=e.length-(arguments.length-1);return i(t,1+(r>0?r:0),!0)},n?n(e.exports,"apply",{value:s}):e.exports.apply=s},819:function(e,t,r){"use strict";var i=r(446),n=r(5182),a=r(8202),s=r(3990);e.exports=function(e,t,r){if(!e||"object"!=typeof e&&"function"!=typeof e)throw new a("`obj` must be an object or a function`");if("string"!=typeof t&&"symbol"!=typeof t)throw new a("`property` must be a string or a symbol`");
131if(arguments.length>3&&"boolean"!=typeof arguments[3]&&null!==arguments[3])throw new a("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&"boolean"!=typeof arguments[4]&&null!==arguments[4])throw new a("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&"boolean"!=typeof arguments[5]&&null!==arguments[5])throw new a("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&"boolean"!=typeof arguments[6])throw new a("`loose`, if provided, must be a boolean");var o=arguments.length>3?arguments[3]:null,l=arguments.length>4?arguments[4]:null,c=arguments.length>5?arguments[5]:null,u=arguments.length>6&&arguments[6],d=!!s&&s(e,t);if(i)i(e,t,{configurable:null===c&&d?d.configurable:!c,enumerable:null===o&&d?d.enumerable:!o,value:r,writable:null===l&&d?d.writable:!l});else if(!u&&(o||l||c))throw new n("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");else e[t]=r}},6211:function(e,t,r){"use strict";var i,n=r(7152),a=r(3990);try{i=[].__proto__===Array.prototype}catch(e){if(!e||"object"!=typeof e||!("code"in e)||"ERR_PROTO_ACCESS"!==e.code)throw e}var s=!!i&&a&&a(Object.prototype,"__proto__"),o=Object,l=o.getPrototypeOf;e.exports=s&&"function"==typeof s.get?n([s.get]):"function"==typeof l&&function(e){return l(null==e?e:o(e))}},446:function(e){"use strict";var t=Object.defineProperty||!1;if(t)try{t({},"a",{value:1})}catch(e){t=!1}e.exports=t},7181:function(e){"use strict";e.exports=EvalError},1545:function(e){"use strict";e.exports=Error},22:function(e){"use strict";e.exports=RangeError},2803:function(e){"use strict";e.exports=ReferenceError},5182:function(e){"use strict";e.exports=SyntaxError},8202:function(e){"use strict";e.exports=TypeError},3284:function(e){"use strict";e.exports=URIError},2811:function(e){"use strict";e.exports=Object},6144:function(e){var t=Object.prototype.hasOwnProperty,r=Object.prototype.toString;e.exports=function(e,i,n){if("[object Function]"!==r.call(i))throw TypeError("iterator must be a function");var a=e.length;if(a===+a)for(var s=0;s<a;s++)i.call(n,e[s],s,e);else for(var o in e)t.call(e,o)&&i.call(n,e[o],o,e)}},3136:function(e){"use strict";var t=Object.prototype.toString,r=Math.max,i=function(e,t){for(var r=[],i=0;i<e.length;i+=1)r[i]=e[i];for(var n=0;n<t.length;n+=1)r[n+e.length]=t[n];return r},n=function(e,t){for(var r=[],i=t||0,n=0;i<e.length;i+=1,n+=1)r[n]=e[i];return r},a=function(e,t){for(var r="",i=0;i<e.length;i+=1)r+=e[i],i+1<e.length&&(r+=t);return r};e.exports=function(e){var s,o=this;if("function"!=typeof o||"[object Function]"!==t.apply(o))throw TypeError("Function.prototype.bind called on incompatible "+o);for(var l=n(arguments,1),c=r(0,o.length-l.length),u=[],d=0;d<c;d++)u[d]="$"+d;if(s=Function("binder","return function ("+a(u,",")+"){ return binder.apply(this,arguments); }")(function(){if(this instanceof s){var t=o.apply(this,i(l,arguments));return Object(t)===t?t:this}return o.apply(e,i(l,arguments))}),o.prototype){var p=function(){};p.prototype=o.prototype,s.prototype=new p,p.prototype=null}return s}},1212:function(e,t,r){"use strict";var i=r(3136);e.exports=Function.prototype.bind||i},3197:function(e,t,r){"use strict";var i,n=r(2811),a=r(1545),s=r(7181),o=r(22),l=r(2803),c=r(5182),u=r(8202),d=r(3284),p=r(7173),h=r(847),f=r(2916),g=r(9882),m=r(3291),y=r(553),b=r(8629),v=Function,x=function(e){try{return v('"use strict"; return ('+e+").constructor;")()}catch(e){}},_=r(3990),w=r(446),T=function(){throw new u},S=_?function(){try{return arguments.callee,T}catch(e){try{return _(arguments,"callee").get}catch(e){return T}}}():T,C=r(4871)(),E=r(699),k=r(7823),N=r(7904),I=r(1909),A=r(8737),j={},P="u">typeof Uint8Array&&E?E(Uint8Array):i,O={__proto__:null,"%AggregateError%":"u"<typeof AggregateError?i:AggregateError,"%Array%":Array,"%ArrayBuffer%":"u"<typeof ArrayBuffer?i:ArrayBuffer,"%ArrayIteratorPrototype%":C&&E?E([][Symbol.iterator]()):i,"%AsyncFromSyncIteratorPrototype%":i,"%AsyncFunction%":j,"%AsyncGenerator%":j,"%AsyncGeneratorFunction%":j,"%AsyncIteratorPrototype%":j,"%Atomics%":"u"<typeof Atomics?i:Atomics,"%BigInt%":"u"<typeof BigInt?i:BigInt,"%BigInt64Array%":"u"<typeof BigInt64Array?i:BigInt64Array,"%BigUint64Array%":"u"<typeof BigUint64Array?i:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"u"<typeof DataView?i:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":a,"%eval%":eval,"%EvalError%":s,"%Float16Array%":"u"<typeof Float16Array?i:Float16Array,"%Float32Array%":"u"<typeof Float32Array?i:Float32Array,"%Float64Array%":"u"<typeof Float64Array?i:Float64Array,"%FinalizationRegistry%":"u"<typeof FinalizationRegistry?i:FinalizationRegistry,"%Function%":v,"%GeneratorFunction%":j,"%Int8Array%":"u"<typeof Int8Array?i:Int8Array,"%Int16Array%":"u"<typeof Int16Array?i:Int16Array,"%Int32Array%":"u"<typeof Int32Array?i:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%
131IteratorPrototype%":C&&E?E(E([][Symbol.iterator]())):i,"%JSON%":"object"==typeof JSON?JSON:i,"%Map%":"u"<typeof Map?i:Map,"%MapIteratorPrototype%":"u">typeof Map&&C&&E?E((new Map)[Symbol.iterator]()):i,"%Math%":Math,"%Number%":Number,"%Object%":n,"%Object.getOwnPropertyDescriptor%":_,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"u"<typeof Promise?i:Promise,"%Proxy%":"u"<typeof Proxy?i:Proxy,"%RangeError%":o,"%ReferenceError%":l,"%Reflect%":"u"<typeof Reflect?i:Reflect,"%RegExp%":RegExp,"%Set%":"u"<typeof Set?i:Set,"%SetIteratorPrototype%":"u">typeof Set&&C&&E?E((new Set)[Symbol.iterator]()):i,"%SharedArrayBuffer%":"u"<typeof SharedArrayBuffer?i:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":C&&E?E(""[Symbol.iterator]()):i,"%Symbol%":C?Symbol:i,"%SyntaxError%":c,"%ThrowTypeError%":S,"%TypedArray%":P,"%TypeError%":u,"%Uint8Array%":"u"<typeof Uint8Array?i:Uint8Array,"%Uint8ClampedArray%":"u"<typeof Uint8ClampedArray?i:Uint8ClampedArray,"%Uint16Array%":"u"<typeof Uint16Array?i:Uint16Array,"%Uint32Array%":"u"<typeof Uint32Array?i:Uint32Array,"%URIError%":d,"%WeakMap%":"u"<typeof WeakMap?i:WeakMap,"%WeakRef%":"u"<typeof WeakRef?i:WeakRef,"%WeakSet%":"u"<typeof WeakSet?i:WeakSet,"%Function.prototype.call%":A,"%Function.prototype.apply%":I,"%Object.defineProperty%":w,"%Object.getPrototypeOf%":k,"%Math.abs%":p,"%Math.floor%":h,"%Math.max%":f,"%Math.min%":g,"%Math.pow%":m,"%Math.round%":y,"%Math.sign%":b,"%Reflect.getPrototypeOf%":N};if(E)try{null.error}catch(e){var L=E(E(e));O["%Error.prototype%"]=L}var D=function e(t){var r;if("%AsyncFunction%"===t)r=x("async function () {}");else if("%GeneratorFunction%"===t)r=x("function* () {}");else if("%AsyncGeneratorFunction%"===t)r=x("async function* () {}");else if("%AsyncGenerator%"===t){var i=e("%AsyncGeneratorFunction%");i&&(r=i.prototype)}else if("%AsyncIteratorPrototype%"===t){var n=e("%AsyncGenerator%");n&&E&&(r=E(n.prototype))}return O[t]=r,r},R={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},M=r(1212),B=r(3270),U=M.call(A,Array.prototype.concat),F=M.call(I,Array.prototype.splice),$=M.call(A,String.prototype.replace),z=M.call(A,String.prototype.slice),q=M.call(A,RegExp.prototype.exec),H=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,W=/\\(\\)?/g,V=function(e){var t=z(e,0,1),r=z(e,-1);if("%"===t&&"%"!==r)throw new c("invalid intrinsic syntax, expected closing `%`");if("%"===r&&"%"!==t)throw new c("invalid intrinsic syntax, expected opening `%`");var i=[];return $(e,H,function(e,t,r,n){i[i.length]=r?$(n,W,"$1"):t||e}),i},G=function(e,t){var r,i=e;if(B(R,i)&&(i="%"+(r=R[i])[0]+"%"),B(O,i)){var n=O[i];if(n===j&&(n=D(i)),void 0===n&&!t)throw new u("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:r,name:i,value:n}}throw new c("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!=typeof e||0===e.length)throw new u("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new u('"allowMissing" argument must be a boolean');if(null===q(/^%?[^%]*%?$/,e))throw new c("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=V(e),i=r.length>0?r[0]:"",n=G("%"+i+"%",t),a=n.name,s=n.value,o=!1,l=n.alias;l&&(i=l[0],F(r,U([0,1],l)));for(var d=1,p=!0;d<r.length;d+=1){var h=r[d],f=z(h,0,1),g=z(h,-1);if(('"'===f||"'"===f||"`"===f||'"'===g||"'"===g||"`"===g)&&f!==g)throw new c("property names with quotes must have matching quotes");if("constructor"!==h&&p||(o=!0),i+="."+h,B(O,a="%"+i+"%"))s=O[a];else if(null!=s){if(!(h in s)){if(!t)throw new u("base intrinsic for "+e+" exists, but the property is not available.");return}if(_&&d+1>=r.length){var m=_(s,h);s=(p=!!m)&&"get"in m&&!("originalValue"in m.get)?m.get:s[h]}else p=B(s,h),s=s[h];p&&!o&&(O[a]=s)}}return s}},7823:function(e,t,r){"use strict";e.exports=r(2811).getPrototypeOf||null},7904:function(e){"use strict";e.exports="u">typeof Reflect&&Reflect.getPrototypeOf||null},699:function(e,t,r){"use strict";var i=r(7904),n=r(7823),a=r(6211);e.exports=i?function(e){return i(e)}:n?function(e){if(!e||"object"!=typeof e&&"function"!=typeof e)throw TypeError("getProto: not an object");return n(e)}:a?function(e){return a(e)}:null},4596:function(e){"use strict";e.exports=Object.getOwnPropertyDescriptor},3990:function(e,t,r){"use strict";var i=r(4596);if(i)try{i([],"length")}catch(e){i=null}e.exports=i},7122:function(e,t,r){"use strict";var i=r(446),n=function(){return!!i};n.hasArrayLengthDefineBug=function(){if(!i)return null;try{return 1!==i([],"length",{value:1}).length}catch(e){return!0}},e.exports=n},9942:function(e,t,r){"use strict";var i="u">typeof Symbol&&Symbol,n=r(3773);e.exports=function(){return"function"==typeof i&&"function"==typeof Symbol&&"symbol"==typeof i("foo")&&"symbol"==typeof Symbol("bar")&&n()}},3773:function(e){"use strict";e.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),r=Object(t);if("string"==typeof t||"[object Symbol]"!==Object.prototype.toString.call(t)||"[object Symbol]"!==Object.prototype.toString.call(r))return!1;for(t in e[t]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length||"function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var i=Object.getOwnPropertySymbols(e);if(1!==i.length||i[0]!==t||!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var n=Object.getOwnPropertyDescriptor(e,t);if(42!==n.value||!0!==n.enumerable)return!1}return!0}},4871:function(e,t,r){"use strict";var i="u">typeof Symbol&&Symbol,n=r(5960);e.exports=function(){return"function"==typeof i&&"function"==typeof Symbol&&"symbol"==typeof i("foo")&&"symbol"==typeof Symbol("bar")&&n()}},5960:function(e){"use strict";e.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),r=Object(t);if("string"==typeof t||"[object Symbol]"!==Object.prototype.toString.call(t)||"[object Symbol]"!==Object.prototype.toString.call(r))return!1;for(var i in e[t]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length||"function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var n=Object.getOwnPropertySymbols(e);if(1!==n.length||n[0]!==t||!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var a=Object.getOwnPropertyDescriptor(e,t);if(42!==a.value||!0!==a.enumerable)return!1}return!0}},3270:function(e,t,r){"use strict";var i=Function.prototype.call,n=Object.prototype.hasOwnProperty;e.exports=r(1212).call(i,n)},3782:function(e){"function"==typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}}},5157:function(e){"use strict";var t="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag,r=Object.prototype.toString,i=function(e){return(!t||!e||"object"!=typeof e||!(Symbol.toStringTag in e))&&"[object Arguments]"===r.call(e)},n=function(e){return!!i(e)||null!==e&&"object"==typeof e&&"number"==typeof e.length&&e.length>=0&&"[object Array]"!==r.call(e)&&"[object Function]"===r.call(e.callee)},a=function(){return i(arguments)}();i.isLegacyArguments=n,e.exports=a?i:n},3391:function(e){"use strict";var t=Object.prototype.toString,r=Function.prototype.toString,i=/^\s*(?:function)?\*/,n="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag,a=Object.getPrototypeOf,s=function(){if(!n)return!1;try{return Function("return function*() {}")()}catch(e){}}(),o=s?a(s):{};e.exports=function(e){return"function"==typeof e&&(!!i.test(r.call(e))||(n?a(e)===o:"[object GeneratorFunction]"===t.call(e)))}},994:function(t,r,i){"use strict";var n=i(6144),a=i(1349),s=i(516),o=s("Object.prototype.toString"),l=i(9942)()&&"symbol"==typeof Symbol.toStringTag,c=a(),u=s("Array.prototype.indexOf",!0)||function(e,t){for(var r=0;r<e.length;r+=1)if(e[r]===t)return r;return -1},d=s("String.prototype.slice"),p={},h=i(2154),f=Object.getPrototypeOf;l&&h&&f&&n(c,function(t){var r=new e.g[t];if(!(Symbol.toStringTag in r))throw EvalError("this engine has support for Symbol.toStringTag, but "+t+" does not have the property! Please report this.");var i=f(r),n=h(i,Symbol.toStringTag);n||(n=h(f(i),Symbol.toStringTag)),p[t]=n.get});var g=function(e){var t=!1;return n(p,function(r,i){if(!t)try{t=r.call(e)===i}catch(e){}}),t};t.exports=function(e){return!!e&&"object"==typeof e&&(l?!!h&&g(e):u(c,d(o(e),8,-1))>-1)}},7173:function(e){"use strict";e.exports=Math.abs},847:function(e){"use strict";e.exports=Math.floor},219:function(e){"use strict";e.exports=Number.isNaN||function(e){return e!=e}},2916:function(e){"use strict";e.exports=Math.max},9882:function(e){"use strict";e.exports=Math.min},3291:function(e){"use strict";e.exports=Math.pow},553:function(e){"use strict";e.exports=Math.round},8629:function(e,t,r){"use strict";var i=r(219);e.exports=function(e){return i(e)||0===e?e:e<0?-1:1}},3143:function(e,t,r){"use strict";var i=r(3197),n=r(819),a=r(7122)(),s=r(3990),o=r(8202),l=i("%Math.floor%");e.exports=function(e,t){if("function"!=typeof e)throw new o("`fn` is not a function");if("number"!=typeof t||t<0||t>0xffffffff||l(t)!==t)throw new o("`length` must be a positive 32-bit integer");var r=arguments.length>2&&!!arguments[2],i=!0,c=!0;if("length"in e&&s){var u=s(e,"length");u&&!u.configurable&&(i=!1),u&&!u.writable&&(c=!1)}return(i||c||!r)&&(a?n(e,"length",t,!0,!0):n(e,"length",t)),e}},2369:function(e){e.exports=function(e){return e instanceof i.Buffer}},5584:function(e,t,r){"use strict";var i=r(5157),n=r(3391),a=r(1490),s=r(994);function o(e){return e.call.bind(e)}var l="u">typeof BigInt,c="u">typeof Symbol,u=o(Object.prototype.toString),d=o(Number.prototype.valueOf),p=o(String.prototype.valueOf),h=o(Bo
131olean.prototype.valueOf);if(l)var f=o(BigInt.prototype.valueOf);if(c)var g=o(Symbol.prototype.valueOf);function m(e,t){if("object"!=typeof e)return!1;try{return t(e),!0}catch(e){return!1}}function y(e){return"[object Map]"===u(e)}function b(e){return"[object Set]"===u(e)}function v(e){return"[object WeakMap]"===u(e)}function x(e){return"[object WeakSet]"===u(e)}function _(e){return"[object ArrayBuffer]"===u(e)}function w(e){return!("u"<typeof ArrayBuffer)&&(_.working?_(e):e instanceof ArrayBuffer)}function T(e){return"[object DataView]"===u(e)}function S(e){return!("u"<typeof DataView)&&(T.working?T(e):e instanceof DataView)}t.isArgumentsObject=i,t.isGeneratorFunction=n,t.isTypedArray=s,t.isPromise=function(e){return"u">typeof Promise&&e instanceof Promise||null!==e&&"object"==typeof e&&"function"==typeof e.then&&"function"==typeof e.catch},t.isArrayBufferView=function(e){return"u">typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):s(e)||S(e)},t.isUint8Array=function(e){return"Uint8Array"===a(e)},t.isUint8ClampedArray=function(e){return"Uint8ClampedArray"===a(e)},t.isUint16Array=function(e){return"Uint16Array"===a(e)},t.isUint32Array=function(e){return"Uint32Array"===a(e)},t.isInt8Array=function(e){return"Int8Array"===a(e)},t.isInt16Array=function(e){return"Int16Array"===a(e)},t.isInt32Array=function(e){return"Int32Array"===a(e)},t.isFloat32Array=function(e){return"Float32Array"===a(e)},t.isFloat64Array=function(e){return"Float64Array"===a(e)},t.isBigInt64Array=function(e){return"BigInt64Array"===a(e)},t.isBigUint64Array=function(e){return"BigUint64Array"===a(e)},y.working="u">typeof Map&&y(new Map),t.isMap=function(e){return!("u"<typeof Map)&&(y.working?y(e):e instanceof Map)},b.working="u">typeof Set&&b(new Set),t.isSet=function(e){return!("u"<typeof Set)&&(b.working?b(e):e instanceof Set)},v.working="u">typeof WeakMap&&v(new WeakMap),t.isWeakMap=function(e){return!("u"<typeof WeakMap)&&(v.working?v(e):e instanceof WeakMap)},x.working="u">typeof WeakSet&&x(new WeakSet),t.isWeakSet=function(e){return x(e)},_.working="u">typeof ArrayBuffer&&_(new ArrayBuffer),t.isArrayBuffer=w,T.working="u">typeof ArrayBuffer&&"u">typeof DataView&&T(new DataView(new ArrayBuffer(1),0,1)),t.isDataView=S;var C="u">typeof SharedArrayBuffer?SharedArrayBuffer:void 0;function E(e){return"[object SharedArrayBuffer]"===u(e)}function k(e){return void 0!==C&&(void 0===E.working&&(E.working=E(new C)),E.working?E(e):e instanceof C)}function N(e){return m(e,d)}function I(e){return m(e,p)}function A(e){return m(e,h)}function j(e){return l&&m(e,f)}function P(e){return c&&m(e,g)}t.isSharedArrayBuffer=k,t.isAsyncFunction=function(e){return"[object AsyncFunction]"===u(e)},t.isMapIterator=function(e){return"[object Map Iterator]"===u(e)},t.isSetIterator=function(e){return"[object Set Iterator]"===u(e)},t.isGeneratorObject=function(e){return"[object Generator]"===u(e)},t.isWebAssemblyCompiledModule=function(e){return"[object WebAssembly.Module]"===u(e)},t.isNumberObject=N,t.isStringObject=I,t.isBooleanObject=A,t.isBigIntObject=j,t.isSymbolObject=P,t.isBoxedPrimitive=function(e){return N(e)||I(e)||A(e)||j(e)||P(e)},t.isAnyArrayBuffer=function(e){return"u">typeof Uint8Array&&(w(e)||k(e))},["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(e){Object.defineProperty(t,e,{enumerable:!1,value:function(){throw Error(e+" is not supported in userland")}})})},8177:function(e,t,r){var i=Object.getOwnPropertyDescriptors||function(e){for(var t=Object.keys(e),r={},i=0;i<t.length;i++)r[t[i]]=Object.getOwnPropertyDescriptor(e,t[i]);return r},a=/%[sdj%]/g;t.format=function(e){if(!v(e)){for(var t=[],r=0;r<arguments.length;r++)t.push(c(arguments[r]));return t.join(" ")}for(var r=1,i=arguments,n=i.length,s=String(e).replace(a,function(e){if("%%"===e)return"%";if(r>=n)return e;switch(e){case"%s":return String(i[r++]);case"%d":return Number(i[r++]);case"%j":try{return JSON.stringify(i[r++])}catch(e){return"[Circular]"}default:return e}}),o=i[r];r<n;o=i[++r])y(o)||!w(o)?s+=" "+o:s+=" "+c(o);return s},t.deprecate=function(e,r){if(void 0!==n.default&&!0===n.default.noDeprecation)return e;if(void 0===n.default)return function(){return t.deprecate(e,r).apply(this,arguments)};var i=!1;return function(){if(!i){if(n.default.throwDeprecation)throw Error(r);n.default.traceDeprecation?console.trace(r):console.error(r),i=!0}return e.apply(this,arguments)}};var s={},o=/^$/;if(n.default.env.NODE_DEBUG){var l=n.default.env.NODE_DEBUG;o=RegExp("^"+(l=l.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase())+"$","i")}function c(e,r){var i={seen:[],stylize:d};return arguments.length>=3&&(i.depth=arguments[2]),arguments.length>=4&&(i.colors=arguments[3]),m(r)?i.showHidden=r:r&&t._extend(i,r),x(i.showHidden)&&(i.showHidden=!1),x(i.depth)&&(i.depth=2),x(i.colors)&&(i.colors=!1),x(i.customInspect)&&(i.customInspect=!0),i.colors&&(i.stylize=u),p(i,e,i.depth)}function u(e,t){var r=c.styles[t];return r?"\x1b["+c.colors[r][0]+"m"+e+"\x1b["+c.colors[r][1]+"m":e}function d(e,t){return e}function p(e,r,i){if(e.customInspect&&r&&C(r.inspect)&&r.inspect!==t.inspect&&!(r.constructor&&r.constructor.prototype===r)){var n,a,s,o,l,c,u=r.inspect(i,e);return v(u)||(u=p(e,u,i)),u}var d=function(e,t){if(x(t))return e.stylize("undefined","undefined");if(v(t)){var r="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";
131return e.stylize(r,"string")}return b(t)?e.stylize(""+t,"number"):m(t)?e.stylize(""+t,"boolean"):y(t)?e.stylize("null","null"):void 0}(e,r);if(d)return d;var w=Object.keys(r),E=(l={},w.forEach(function(e,t){l[e]=!0}),l);if(e.showHidden&&(w=Object.getOwnPropertyNames(r)),S(r)&&(w.indexOf("message")>=0||w.indexOf("description")>=0))return h(r);if(0===w.length){if(C(r)){var k=r.name?": "+r.name:"";return e.stylize("[Function"+k+"]","special")}if(_(r))return e.stylize(RegExp.prototype.toString.call(r),"regexp");if(T(r))return e.stylize(Date.prototype.toString.call(r),"date");if(S(r))return h(r)}var N="",A=!1,j=["{","}"];if(g(r)&&(A=!0,j=["[","]"]),C(r)&&(N=" [Function"+(r.name?": "+r.name:"")+"]"),_(r)&&(N=" "+RegExp.prototype.toString.call(r)),T(r)&&(N=" "+Date.prototype.toUTCString.call(r)),S(r)&&(N=" "+h(r)),0===w.length&&(!A||0==r.length))return j[0]+N+j[1];if(i<0)if(_(r))return e.stylize(RegExp.prototype.toString.call(r),"regexp");else return e.stylize("[Object]","special");return e.seen.push(r),c=A?function(e,t,r,i,n){for(var a=[],s=0,o=t.length;s<o;++s)I(t,String(s))?a.push(f(e,t,r,i,String(s),!0)):a.push("");return n.forEach(function(n){n.match(/^\d+$/)||a.push(f(e,t,r,i,n,!0))}),a}(e,r,i,E,w):w.map(function(t){return f(e,r,i,E,t,A)}),e.seen.pop(),n=c,a=N,s=j,o=0,n.reduce(function(e,t){return o++,t.indexOf("\n")>=0&&o++,e+t.replace(/\u001b\[\d\d?m/g,"").length+1},0)>60?s[0]+(""===a?"":a+"\n ")+" "+n.join(",\n  ")+" "+s[1]:s[0]+a+" "+n.join(", ")+" "+s[1]}function h(e){return"["+Error.prototype.toString.call(e)+"]"}function f(e,t,r,i,n,a){var s,o,l;if((l=Object.getOwnPropertyDescriptor(t,n)||{value:t[n]}).get?o=l.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):l.set&&(o=e.stylize("[Setter]","special")),I(i,n)||(s="["+n+"]"),!o&&(0>e.seen.indexOf(l.value)?(o=y(r)?p(e,l.value,null):p(e,l.value,r-1)).indexOf("\n")>-1&&(o=a?o.split("\n").map(function(e){return"  "+e}).join("\n").substr(2):"\n"+o.split("\n").map(function(e){return"   "+e}).join("\n")):o=e.stylize("[Circular]","special")),x(s)){if(a&&n.match(/^\d+$/))return o;(s=JSON.stringify(""+n)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(s=s.substr(1,s.length-2),s=e.stylize(s,"name")):(s=s.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),s=e.stylize(s,"string"))}return s+": "+o}function g(e){return Array.isArray(e)}function m(e){return"boolean"==typeof e}function y(e){return null===e}function b(e){return"number"==typeof e}function v(e){return"string"==typeof e}function x(e){return void 0===e}function _(e){return w(e)&&"[object RegExp]"===E(e)}function w(e){return"object"==typeof e&&null!==e}function T(e){return w(e)&&"[object Date]"===E(e)}function S(e){return w(e)&&("[object Error]"===E(e)||e instanceof Error)}function C(e){return"function"==typeof e}function E(e){return Object.prototype.toString.call(e)}function k(e){return e<10?"0"+e.toString(10):e.toString(10)}t.debuglog=function(e){if(!s[e=e.toUpperCase()])if(o.test(e)){var r=n.default.pid;s[e]=function(){var i=t.format.apply(t,arguments);console.error("%s %d: %s",e,r,i)}}else s[e]=function(){};return s[e]},t.inspect=c,c.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},c.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},t.types=r(5584),t.isArray=g,t.isBoolean=m,t.isNull=y,t.isNullOrUndefined=function(e){return null==e},t.isNumber=b,t.isString=v,t.isSymbol=function(e){return"symbol"==typeof e},t.isUndefined=x,t.isRegExp=_,t.types.isRegExp=_,t.isObject=w,t.isDate=T,t.types.isDate=T,t.isError=S,t.types.isNativeError=S,t.isFunction=C,t.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e},t.isBuffer=r(2369);var N=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function I(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.log=function(){var e,r;console.log("%s - %s",(r=[k((e=new Date).getHours()),k(e.getMinutes()),k(e.getSeconds())].join(":"),[e.getDate(),N[e.getMonth()],r].join(" ")),t.format.apply(t,arguments))},t.inherits=r(3782),t._extend=function(e,t){if(!t||!w(t))return e;for(var r=Object.keys(t),i=r.length;i--;)e[r[i]]=t[r[i]];return e};var A="u">typeof Symbol?Symbol("util.promisify.custom"):void 0;function j(e,t){if(!e){var r=Error("Promise was rejected with a falsy value");r.reason=e,e=r}return t(e)}t.promisify=function(e){if("function"!=typeof e)throw TypeError('The "original" argument must be of type Function');if(A&&e[A]){var t=e[A];if("function"!=typeof t)throw TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(t,A,{value:t,enumerable:!1,writable:!1,
131configurable:!0}),t}function t(){for(var t,r,i=new Promise(function(e,i){t=e,r=i}),n=[],a=0;a<arguments.length;a++)n.push(arguments[a]);n.push(function(e,i){e?r(e):t(i)});try{e.apply(this,n)}catch(e){r(e)}return i}return Object.setPrototypeOf(t,Object.getPrototypeOf(e)),A&&Object.defineProperty(t,A,{value:t,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(t,i(e))},t.promisify.custom=A,t.callbackify=function(e){if("function"!=typeof e)throw TypeError('The "original" argument must be of type Function');function t(){for(var t=[],r=0;r<arguments.length;r++)t.push(arguments[r]);var i=t.pop();if("function"!=typeof i)throw TypeError("The last argument must be of type Function");var a=this,s=function(){return i.apply(a,arguments)};e.apply(this,t).then(function(e){n.default.nextTick(s.bind(null,null,e))},function(e){n.default.nextTick(j.bind(null,e,s))})}return Object.setPrototypeOf(t,Object.getPrototypeOf(e)),Object.defineProperties(t,i(e)),t}},1490:function(t,r,i){"use strict";var n=i(6144),a=i(1349),s=i(516),o=s("Object.prototype.toString"),l=i(9942)()&&"symbol"==typeof Symbol.toStringTag,c=a(),u=s("String.prototype.slice"),d={},p=i(2154),h=Object.getPrototypeOf;l&&p&&h&&n(c,function(t){if("function"==typeof e.g[t]){var r=new e.g[t];if(!(Symbol.toStringTag in r))throw EvalError("this engine has support for Symbol.toStringTag, but "+t+" does not have the property! Please report this.");var i=h(r),n=p(i,Symbol.toStringTag);n||(n=p(h(i),Symbol.toStringTag)),d[t]=n.get}});var f=function(e){var t=!1;return n(d,function(r,i){if(!t)try{var n=r.call(e);n===i&&(t=n)}catch(e){}}),t},g=i(994);t.exports=function(e){return!!g(e)&&(l?f(e):u(o(e),8,-1))}},1349:function(t,r,i){"use strict";var n=i(8992);t.exports=function(){return n(["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],function(t){return"function"==typeof e.g[t]})}},2154:function(e,t,r){"use strict";e.exports=r(3990)}},s={};function o(e){var t=s[e];if(void 0!==t)return t.exports;var r=s[e]={exports:{}},i=!0;try{a[e](r,r.exports,o),i=!1}finally{i&&delete s[e]}return r.exports}o.ab="/ROOT/node_modules/next/dist/compiled/util/",t.exports=o(8177)},404221,(e,t,r)=>{"use strict";r.isInteger=e=>"number"==typeof e?Number.isInteger(e):"string"==typeof e&&""!==e.trim()&&Number.isInteger(Number(e)),r.find=(e,t)=>e.nodes.find(e=>e.type===t),r.exceedsLimit=(e,t,i=1,n)=>!1!==n&&!!r.isInteger(e)&&!!r.isInteger(t)&&(Number(t)-Number(e))/Number(i)>=n,r.escapeNode=(e,t=0,r)=>{let i=e.nodes[t];i&&(r&&i.type===r||"open"===i.type||"close"===i.type)&&!0!==i.escaped&&(i.value="\\"+i.value,i.escaped=!0)},r.encloseBrace=e=>"brace"===e.type&&e.commas>>0+e.ranges==0&&(e.invalid=!0,!0),r.isInvalidBrace=e=>"brace"===e.type&&(!0===e.invalid||!!e.dollar||(e.commas>>0+e.ranges==0||!0!==e.open||!0!==e.close)&&(e.invalid=!0,!0)),r.isOpenOrClose=e=>"open"===e.type||"close"===e.type||!0===e.open||!0===e.close,r.reduce=e=>e.reduce((e,t)=>("text"===t.type&&e.push(t.value),"range"===t.type&&(t.type="text"),e),[]),r.flatten=(...e)=>{let t=[],r=e=>{for(let i=0;i<e.length;i++){let n=e[i];if(Array.isArray(n)){r(n);continue}void 0!==n&&t.push(n)}return t};return r(e),t}},591118,(e,t,r)=>{"use strict";let i=e.r(404221);t.exports=(e,t={})=>{let r=(e,n={})=>{let a=t.escapeInvalid&&i.isInvalidBrace(n),s=!0===e.invalid&&!0===t.escapeInvalid,o="";if(e.value)return(a||s)&&i.isOpenOrClose(e)?"\\"+e.value:e.value;if(e.value)return e.value;if(e.nodes)for(let t of e.nodes)o+=r(t);return o};return r(e)}},19351,(e,t,r)=>{"use strict";t.exports=function(e){return"number"==typeof e?e-e==0:"string"==typeof e&&""!==e.trim()&&(Number.isFinite?Number.isFinite(+e):isFinite(+e))}},979840,(e,t,r)=>{"use strict";let i=e.r(19351),n=(e,t,r)=>{var o,l,c;let u,d,h;if(!1===i(e))throw TypeError("toRegexRange: expected the first argument to be a number");if(void 0===t||e===t)return String(e);if(!1===i(t))throw TypeError("toRegexRange: expected the second argument to be a number.");let f={relaxZeros:!0,...r};"boolean"==typeof f.strictZeros&&(f.relaxZeros=!1===f.strictZeros);let g=e+":"+t+"="+String(f.relaxZeros)+String(f.shorthand)+String(f.capture)+String(f.wrap);if(n.cache.hasOwnProperty(g))return n.cache[g].result;let m=Math.min(e,t),y=Math.max(e,t);if(1===Math.abs(m-y)){let r=e+"|"+t;return f.capture?`(${r})`:!1===f.wrap?r:`(?:${r})`}let b=p(e)||p(t),v={min:e,max:t,a:m,b:y},x=[],_=[];return b&&(v.isPadded=b,v.maxLen=String(v.max).length),m<0&&(_=a(y<0?Math.abs(y):1,Math.abs(m),v,f),m=v.a=0),y>=0&&(x=a(m,y,v,f)),v.negatives=_,v.positives=x,u=s(o=_,l=x,"-",!1,c=f)||[],d=s(l,o,"",!1,c)||[],h=s(o,l,"-?",!0,c)||[],v.result=u.concat(h).concat(d).join("|"),!0===f.capture?v.result=`(${v.result})`:!1!==f.wrap&&x.length+_.length>1&&(v.result=`(?:${v.result})`),n.cache[g]=v,v.result};function a(e,t,r,i){let n,a=function(e,t){let r=1,i=1,n=c(e,1),a=new Set([t]);for(;e<=n&&n<=t;)a.add(n),r+=1,n=c(e,r);for(n=u(t+1,i)-1;e<n&&n<=t;)a.add(n),i+=1,n=u(t+1,i)-1;return(a=[...a]).sort(o),a}(e,t),s=[],l=e;for(let e=0;e<a.length;e++){let t=a[e],o=function(e,t,r){if(e===t)return{pattern:e,count:[],digits:0};let i=function(e,t){let r=[];for(let i=0;i<e.length;i++)r.push([e[i],t[i]]);return r}(e,t),n=i.length,a="",s=0;for(let e=0;e<n;e++){var o,l;let[t,r]=i[e];
131t===r?a+=t:"0"!==t||"9"!==r?a+=(o=t,l=r,`[${o}${l-o==1?"":"-"}${l}]`):s++}return s&&(a+=!0===r.shorthand?"\\d":"[0-9]"),{pattern:a,count:[s],digits:n}}(String(l),String(t),i),c="";if(!r.isPadded&&n&&n.pattern===o.pattern){n.count.length>1&&n.count.pop(),n.count.push(o.count[0]),n.string=n.pattern+d(n.count),l=t+1;continue}r.isPadded&&(c=function(e,t,r){if(!t.isPadded)return e;let i=Math.abs(t.maxLen-String(e).length),n=!1!==r.relaxZeros;switch(i){case 0:return"";case 1:return n?"0?":"0";case 2:return n?"0{0,2}":"00";default:return n?`0{0,${i}}`:`0{${i}}`}}(t,r,i)),o.string=c+o.pattern+d(o.count),s.push(o),l=t+1,n=o}return s}function s(e,t,r,i,n){let a=[];for(let n of e){let{string:e}=n;i||l(t,"string",e)||a.push(r+e),i&&l(t,"string",e)&&a.push(r+e)}return a}function o(e,t){return e>t?1:t>e?-1:0}function l(e,t,r){return e.some(e=>e[t]===r)}function c(e,t){return Number(String(e).slice(0,-t)+"9".repeat(t))}function u(e,t){return e-e%Math.pow(10,t)}function d(e){let[t=0,r=""]=e;return r||t>1?`{${t+(r?","+r:"")}}`:""}function p(e){return/^-?(0+)\d/.test(e)}n.cache={},n.clearCache=()=>n.cache={},t.exports=n},514548,(e,t,r)=>{"use strict";let i=e.r(477398),n=e.r(979840),a=e=>null!==e&&"object"==typeof e&&!Array.isArray(e),s=e=>"number"==typeof e||"string"==typeof e&&""!==e,o=e=>{let t=`${e}`,r=-1;if("-"===t[0]&&(t=t.slice(1)),"0"===t)return!1;for(;"0"===t[++r];);return r>0},l=(e,t,r)=>{if(t>0){let r="-"===e[0]?"-":"";r&&(e=e.slice(1)),e=r+e.padStart(r?t-1:t,"0")}return!1===r?String(e):e},c=(e,t)=>{let r="-"===e[0]?"-":"";for(r&&(e=e.slice(1),t--);e.length<t;)e="0"+e;return r?"-"+e:e},u=(e,t,r,i)=>{if(r)return n(e,t,{wrap:!1,...i});let a=String.fromCharCode(e);if(e===t)return a;let s=String.fromCharCode(t);return`[${a}-${s}]`},d=(e,t,r)=>{if(Array.isArray(e)){let t=!0===r.wrap,i=r.capture?"":"?:";return t?`(${i}${e.join("|")})`:e.join("|")}return n(e,t,r)},p=(...e)=>RangeError("Invalid range arguments: "+i.inspect(...e)),h=(e,t,r)=>{if(!0===r.strictRanges)throw p([e,t]);return[]},f=(e,t,r,i={})=>{if(null==t&&s(e))return[e];if(!s(e)||!s(t))return h(e,t,i);if("function"==typeof r)return f(e,t,1,{transform:r});if(a(r))return f(e,t,0,r);let n={...i};if(!0===n.capture&&(n.wrap=!0),!Number.isInteger(+(r=r||n.step||1))){if(null!=r&&!a(r)){var g=r;if(!0===n.strictRanges)throw TypeError(`Expected step "${g}" to be a number`);return[]}return f(e,t,1,r)}return Number.isInteger(+e)&&Number.isInteger(+t)?((e,t,r=1,i={})=>{let n=Number(e),a=Number(t);if(!Number.isInteger(n)||!Number.isInteger(a)){if(!0===i.strictRanges)throw p([e,t]);return[]}0===n&&(n=0),0===a&&(a=0);let s=n>a,h=String(e),f=String(t),g=String(r);r=Math.max(Math.abs(r),1);let m=o(h)||o(f)||o(g),y=m?Math.max(h.length,f.length,g.length):0,b=!1===m&&!1==("string"==typeof e||"string"==typeof t||!0===i.stringify),v=i.transform||(e=>!0===b?Number(e):String(e));if(i.toRegex&&1===r)return u(c(e,y),c(t,y),!0,i);let x={negatives:[],positives:[]},_=e=>x[e<0?"negatives":"positives"].push(Math.abs(e)),w=[],T=0;for(;s?n>=a:n<=a;)!0===i.toRegex&&r>1?_(n):w.push(l(v(n,T),y,b)),n=s?n-r:n+r,T++;if(!0===i.toRegex){let e,t,n,a;return r>1?(x.negatives.sort((e,t)=>e<t?-1:+(e>t)),x.positives.sort((e,t)=>e<t?-1:+(e>t)),t=i.capture?"":"?:",n="",a="",(x.positives.length&&(n=x.positives.map(e=>c(String(e),y)).join("|")),x.negatives.length&&(a=`-(${t}${x.negatives.map(e=>c(String(e),y)).join("|")})`),e=n&&a?`${n}|${a}`:n||a,i.wrap)?`(${t}${e})`:e):d(w,null,{wrap:!1,...i})}return w})(e,t,r,n):((e,t,r=1,i={})=>{if(!Number.isInteger(+e)&&e.length>1||!Number.isInteger(+t)&&t.length>1)return h(e,t,i);let n=i.transform||(e=>String.fromCharCode(e)),a=`${e}`.charCodeAt(0),s=`${t}`.charCodeAt(0),o=a>s,l=Math.min(a,s),c=Math.max(a,s);if(i.toRegex&&1===r)return u(l,c,!1,i);let p=[],f=0;for(;o?a>=s:a<=s;)p.push(n(a,f)),a=o?a-r:a+r,f++;return!0===i.toRegex?d(p,null,{wrap:!1,options:i}):p})(e,t,Math.max(Math.abs(r),1),n)};t.exports=f},70532,(e,t,r)=>{"use strict";let i=e.r(514548),n=e.r(404221);t.exports=(e,t={})=>{let r=(e,a={})=>{let s=n.isInvalidBrace(a),o=!0===e.invalid&&!0===t.escapeInvalid,l=!0===s||!0===o,c=!0===t.escapeInvalid?"\\":"",u="";if(!0===e.isOpen)return c+e.value;if(!0===e.isClose)return console.log("node.isClose",c,e.value),c+e.value;if("open"===e.type)return l?c+e.value:"(";if("close"===e.type)return l?c+e.value:")";if("comma"===e.type)return"comma"===e.prev.type?"":l?e.value:"|";if(e.value)return e.value;if(e.nodes&&e.ranges>0){let r=n.reduce(e.nodes),a=i(...r,{...t,wrap:!1,toRegex:!0,strictZeros:!0});if(0!==a.length)return r.length>1&&a.length>1?`(${a})`:a}if(e.nodes)for(let t of e.nodes)u+=r(t,e);return u};return r(e)}},422713,(e,t,r)=>{"use strict";let i=e.r(514548),n=e.r(591118),a=e.r(404221),s=(e="",t="",r=!1)=>{let i=[];if(e=[].concat(e),!(t=[].concat(t)).length)return e;if(!e.length)return r?a.flatten(t).map(e=>`{${e}}`):t;for(let n of e)if(Array.isArray(n))for(let e of n)i.push(s(e,t,r));else for(let e of t)!0===r&&"string"==typeof e&&(e=`{${e}}
131`),i.push(Array.isArray(e)?s(n,e,r):n+e);return a.flatten(i)};t.exports=(e,t={})=>{let r=void 0===t.rangeLimit?1e3:t.rangeLimit,o=(e,l={})=>{e.queue=[];let c=l,u=l.queue;for(;"brace"!==c.type&&"root"!==c.type&&c.parent;)u=(c=c.parent).queue;if(e.invalid||e.dollar)return void u.push(s(u.pop(),n(e,t)));if("brace"===e.type&&!0!==e.invalid&&2===e.nodes.length)return void u.push(s(u.pop(),["{}"]));if(e.nodes&&e.ranges>0){let o=a.reduce(e.nodes);if(a.exceedsLimit(...o,t.step,r))throw RangeError("expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit.");let l=i(...o,t);0===l.length&&(l=n(e,t)),u.push(s(u.pop(),l)),e.nodes=[];return}let d=a.encloseBrace(e),p=e.queue,h=e;for(;"brace"!==h.type&&"root"!==h.type&&h.parent;)p=(h=h.parent).queue;for(let t=0;t<e.nodes.length;t++){let r=e.nodes[t];if("comma"===r.type&&"brace"===e.type){1===t&&p.push(""),p.push("");continue}if("close"===r.type){u.push(s(u.pop(),p,d));continue}if(r.value&&"open"!==r.type){p.push(s(p.pop(),r.value));continue}r.nodes&&o(r,e)}return p};return a.flatten(o(e))}},381309,(e,t,r)=>{"use strict";t.exports={MAX_LENGTH:1e4,CHAR_0:"0",CHAR_9:"9",CHAR_UPPERCASE_A:"A",CHAR_LOWERCASE_A:"a",CHAR_UPPERCASE_Z:"Z",CHAR_LOWERCASE_Z:"z",CHAR_LEFT_PARENTHESES:"(",CHAR_RIGHT_PARENTHESES:")",CHAR_ASTERISK:"*",CHAR_AMPERSAND:"&",CHAR_AT:"@",CHAR_BACKSLASH:"\\",CHAR_BACKTICK:"`",CHAR_CARRIAGE_RETURN:"\r",CHAR_CIRCUMFLEX_ACCENT:"^",CHAR_COLON:":",CHAR_COMMA:",",CHAR_DOLLAR:"$",CHAR_DOT:".",CHAR_DOUBLE_QUOTE:'"',CHAR_EQUAL:"=",CHAR_EXCLAMATION_MARK:"!",CHAR_FORM_FEED:"\f",CHAR_FORWARD_SLASH:"/",CHAR_HASH:"#",CHAR_HYPHEN_MINUS:"-",CHAR_LEFT_ANGLE_BRACKET:"<",CHAR_LEFT_CURLY_BRACE:"{",CHAR_LEFT_SQUARE_BRACKET:"[",CHAR_LINE_FEED:"\n",CHAR_NO_BREAK_SPACE:" ",CHAR_PERCENT:"%",CHAR_PLUS:"+",CHAR_QUESTION_MARK:"?",CHAR_RIGHT_ANGLE_BRACKET:">",CHAR_RIGHT_CURLY_BRACE:"}",CHAR_RIGHT_SQUARE_BRACKET:"]",CHAR_SEMICOLON:";",CHAR_SINGLE_QUOTE:"'",CHAR_SPACE:" ",CHAR_TAB:"	",CHAR_UNDERSCORE:"_",CHAR_VERTICAL_LINE:"|",CHAR_ZERO_WIDTH_NOBREAK_SPACE:"\uFEFF"}},693725,(e,t,r)=>{"use strict";let i=e.r(591118),{MAX_LENGTH:n,CHAR_BACKSLASH:a,CHAR_BACKTICK:s,CHAR_COMMA:o,CHAR_DOT:l,CHAR_LEFT_PARENTHESES:c,CHAR_RIGHT_PARENTHESES:u,CHAR_LEFT_CURLY_BRACE:d,CHAR_RIGHT_CURLY_BRACE:p,CHAR_LEFT_SQUARE_BRACKET:h,CHAR_RIGHT_SQUARE_BRACKET:f,CHAR_DOUBLE_QUOTE:g,CHAR_SINGLE_QUOTE:m,CHAR_NO_BREAK_SPACE:y,CHAR_ZERO_WIDTH_NOBREAK_SPACE:b}=e.r(381309);t.exports=(e,t={})=>{let r;if("string"!=typeof e)throw TypeError("Expected a string");let v=t||{},x="number"==typeof v.maxLength?Math.min(n,v.maxLength):n;if(e.length>x)throw SyntaxError(`Input length (${e.length}), exceeds max characters (${x})`);
131let _={type:"root",input:e,nodes:[]},w=[_],T=_,S=_,C=0,E=e.length,k=0,N=0,I=()=>e[k++],A=e=>{if("text"===e.type&&"dot"===S.type&&(S.type="text"),S&&"text"===S.type&&"text"===e.type){S.value+=e.value;return}return T.nodes.push(e),e.parent=T,e.prev=S,S=e,e};for(A({type:"bos"});k<E;)if(T=w[w.length-1],(r=I())!==b&&r!==y){if(r===a){A({type:"text",value:(t.keepEscaping?r:"")+I()});continue}if(r===f){A({type:"text",value:"\\"+r});continue}if(r===h){let e;for(C++;k<E&&(e=I());){if(r+=e,e===h){C++;continue}if(e===a){r+=I();continue}if(e===f&&0==--C)break}A({type:"text",value:r});continue}if(r===c){T=A({type:"paren",nodes:[]}),w.push(T),A({type:"text",value:r});continue}if(r===u){if("paren"!==T.type){A({type:"text",value:r});continue}T=w.pop(),A({type:"text",value:r}),T=w[w.length-1];continue}if(r===g||r===m||r===s){let e,i=r;for(!0!==t.keepQuotes&&(r="");k<E&&(e=I());){if(e===a){r+=e+I();continue}if(e===i){!0===t.keepQuotes&&(r+=e);break}r+=e}A({type:"text",value:r});continue}if(r===d){N++,T=A({type:"brace",open:!0,close:!1,dollar:S.value&&"$"===S.value.slice(-1)||!0===T.dollar,depth:N,commas:0,ranges:0,nodes:[]}),w.push(T),A({type:"open",value:r});continue}if(r===p){if("brace"!==T.type){A({type:"text",value:r});continue}(T=w.pop()).close=!0,A({type:"close",value:r}),N--,T=w[w.length-1];continue}if(r===o&&N>0){if(T.ranges>0){T.ranges=0;let e=T.nodes.shift();T.nodes=[e,{type:"text",value:i(T)}]}A({type:"comma",value:r}),T.commas++;continue}if(r===l&&N>0&&0===T.commas){let e=T.nodes;if(0===N||0===e.length){A({type:"text",value:r});continue}if("dot"===S.type){if(T.range=[],S.value+=r,S.type="range",3!==T.nodes.length&&5!==T.nodes.length){T.invalid=!0,T.ranges=0,S.type="text";continue}T.ranges++,T.args=[];continue}if("range"===S.type){e.pop();let t=e[e.length-1];t.value+=S.value+r,S=t,T.ranges--;continue}A({type:"dot",value:r});continue}A({type:"text",value:r})}do if("root"!==(T=w.pop()).type){T.nodes.forEach(e=>{e.nodes||("open"===e.type&&(e.isOpen=!0),"close"===e.type&&(e.isClose=!0),e.nodes||(e.type="text"),e.invalid=!0)});let e=w[w.length-1],t=e.nodes.indexOf(T);e.nodes.splice(t,1,...T.nodes)}while(w.length>0)return A({type:"eos"}),_}},675541,(e,t,r)=>{"use strict";let i=e.r(591118),n=e.r(70532),a=e.r(422713),s=e.r(693725),o=(e,t={})=>{let r=[];if(Array.isArray(e))for(let i of e){let e=o.create(i,t);Array.isArray(e)?r.push(...e):r.push(e)}else r=[].concat(o.create(e,t));return t&&!0===t.expand&&!0===t.nodupes&&(r=[...new Set(r)]),r};o.parse=(e,t={})=>s(e,t),o.stringify=(e,t={})=>"string"==typeof e?i(o.parse(e,t),t):i(e,t),o.compile=(e,t={})=>("string"==typeof e&&(e=o.parse(e,t)),n(e,t)),o.expand=(e,t={})=>{"string"==typeof e&&(e=o.parse(e,t));let r=a(e,t);return!0===t.noempty&&(r=r.filter(Boolean)),!0===t.nodupes&&(r=[...new Set(r)]),r},o.create=(e,t={})=>""===e||e.length<3?[e]:!0!==t.expand?o.compile(e,t):o.expand(e,t),t.exports=o},741790,(e,t,r)=>{!function(){"use strict";var e={114:function(e){function t(e){if("string"!=typeof e)throw TypeError("Path must be a string. Received "+JSON.stringify(e))}function r(e,t){for(var r,i="",n=0,a=-1,s=0,o=0;o<=e.length;++o){if(o<e.length)r=e.charCodeAt(o);else if(47===r)break;else r=47;if(47===r){if(a===o-1||1===s);else if(a!==o-1&&2===s){if(i.length<2||2!==n||46!==i.charCodeAt(i.length-1)||46!==i.charCodeAt(i.length-2)){if(i.length>2){var l=i.lastIndexOf("/");if(l!==i.length-1){-1===l?(i="",n=0):n=(i=i.slice(0,l)).length-1-i.lastIndexOf("/"),a=o,s=0;continue}}else if(2===i.length||1===i.length){i="",n=0,a=o,s=0;continue}}t&&(i.length>0?i+="/..":i="..",n=2)}else i.length>0?i+="/"+e.slice(a+1,o):i=e.slice(a+1,o),n=o-a-1;a=o,s=0}else 46===r&&-1!==s?++s:s=-1}return i}var i={resolve:function(){for(var e,i,n="",a=!1,s=arguments.length-1;s>=-1&&!a;s--)s>=0?i=arguments[s]:(void 0===e&&(e=""),i=e),t(i),0!==i.length&&(n=i+"/"+n,a=47===i.charCodeAt(0));if(n=r(n,!a),a)if(n.length>0)return"/"+n;else return"/";return n.length>0?n:"."},normalize:function(e){if(t(e),0===e.length)return".";var i=47===e.charCodeAt(0),n=47===e.charCodeAt(e.length-1);return(0!==(e=r(e,!i)).length||i||(e="."),e.length>0&&n&&(e+="/"),i)?"/"+e:e},isAbsolute:function(e){return t(e),e.length>0&&47===e.charCodeAt(0)},join:function(){if(0==arguments.length)return".";for(var e,r=0;r<arguments.length;++r){var n=arguments[r];t(n),n.length>0&&(void 0===e?e=n:e+="/"+n)}return void 0===e?".":i.normalize(e)},relative:function(e,r){if(t(e),t(r),e===r||(e=i.resolve(e))===(r=i.resolve(r)))return"";for(var n=1;n<e.length&&47===e.charCodeAt(n);++n);for(var a=e.length,s=a-n,o=1;o<r.length&&47===r.charCodeAt(o);++o);for(var l=r.length-o,c=s<l?s:l,u=-1,d=0;d<=c;++d){if(d===c){if(l>c){if(47===r.charCodeAt(o+d))return r.slice(o+d+1);else if(0===d)return r.slice(o+d)}else s>c&&(47===e.charCodeAt(n+d)?u=d:0===d&&(u=0));break}var p=e.charCodeAt(n+d);if(p!==r.charCodeAt(o+d))break;47===p&&(u=d)}var h="";for(d=n+u+1;d<=a;
131++d)(d===a||47===e.charCodeAt(d))&&(0===h.length?h+="..":h+="/..");return h.length>0?h+r.slice(o+u):(o+=u,47===r.charCodeAt(o)&&++o,r.slice(o))},_makeLong:function(e){return e},dirname:function(e){if(t(e),0===e.length)return".";for(var r=e.charCodeAt(0),i=47===r,n=-1,a=!0,s=e.length-1;s>=1;--s)if(47===(r=e.charCodeAt(s))){if(!a){n=s;break}}else a=!1;return -1===n?i?"/":".":i&&1===n?"//":e.slice(0,n)},basename:function(e,r){if(void 0!==r&&"string"!=typeof r)throw TypeError('"ext" argument must be a string');t(e);var i,n=0,a=-1,s=!0;if(void 0!==r&&r.length>0&&r.length<=e.length){if(r.length===e.length&&r===e)return"";var o=r.length-1,l=-1;for(i=e.length-1;i>=0;--i){var c=e.charCodeAt(i);if(47===c){if(!s){n=i+1;break}}else -1===l&&(s=!1,l=i+1),o>=0&&(c===r.charCodeAt(o)?-1==--o&&(a=i):(o=-1,a=l))}return n===a?a=l:-1===a&&(a=e.length),e.slice(n,a)}for(i=e.length-1;i>=0;--i)if(47===e.charCodeAt(i)){if(!s){n=i+1;break}}else -1===a&&(s=!1,a=i+1);return -1===a?"":e.slice(n,a)},extname:function(e){t(e);for(var r=-1,i=0,n=-1,a=!0,s=0,o=e.length-1;o>=0;--o){var l=e.charCodeAt(o);if(47===l){if(!a){i=o+1;break}continue}-1===n&&(a=!1,n=o+1),46===l?-1===r?r=o:1!==s&&(s=1):-1!==r&&(s=-1)}return -1===r||-1===n||0===s||1===s&&r===n-1&&r===i+1?"":e.slice(r,n)},format:function(e){var t,r;if(null===e||"object"!=typeof e)throw TypeError('The "pathObject" argument must be of type Object. Received type '+typeof e);return t=e.dir||e.root,r=e.base||(e.name||"")+(e.ext||""),t?t===e.root?t+r:t+"/"+r:r},parse:function(e){t(e);var r,i={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return i;var n=e.charCodeAt(0),a=47===n;a?(i.root="/",r=1):r=0;for(var s=-1,o=0,l=-1,c=!0,u=e.length-1,d=0;u>=r;--u){if(47===(n=e.charCodeAt(u))){if(!c){o=u+1;break}continue}-1===l&&(c=!1,l=u+1),46===n?-1===s?s=u:1!==d&&(d=1):-1!==s&&(d=-1)}return -1===s||-1===l||0===d||1===d&&s===l-1&&s===o+1?-1!==l&&(0===o&&a?i.base=i.name=e.slice(1,l):i.base=i.name=e.slice(o,l)):(0===o&&a?(i.name=e.slice(1,s),i.base=e.slice(1,l)):(i.name=e.slice(o,s),i.base=e.slice(o,l)),i.ext=e.slice(s,l)),o>0?i.dir=e.slice(0,o-1):a&&(i.dir="/"),i},sep:"/",delimiter:":",win32:null,posix:null};i.posix=i,e.exports=i}},r={};function i(t){var n=r[t];if(void 0!==n)return n.exports;var a=r[t]={exports:{}},s=!0;try{e[t](a,a.exports,i),s=!1}finally{s&&delete r[t]}return a.exports}i.ab="/ROOT/node_modules/next/dist/compiled/path-browserify/",t.exports=i(114)}()},474778,(e,t,r)=>{"use strict";let i=e.r(741790),n="[^\\\\/]",a="[^/]",s="(?:\\/|$)",o="(?:^|\\/)",l=`\\.{1,2}${s}`,c=`(?!${o}${l})`,u=`(?!\\.{0,1}${s})`,d=`(?!${l})`,p=`${a}*?`,h={DOT_LITERAL:"\\.",PLUS_LITERAL:"\\+",QMARK_LITERAL:"\\?",SLASH_LITERAL:"\\/",ONE_CHAR:"(?=.)",QMARK:a,END_ANCHOR:s,DOTS_SLASH:l,NO_DOT:"(?!\\.)",NO_DOTS:c,NO_DOT_SLASH:u,NO_DOTS_SLASH:d,QMARK_NO_DOT:"[^.\\/]",STAR:p,START_ANCHOR:o},f={...h,SLASH_LITERAL:"[\\\\/]",QMARK:n,STAR:`${n}*?`,DOTS_SLASH:"\\.{1,2}(?:[\\\\/]|$)",NO_DOT:"(?!\\.)",NO_DOTS:"(?!(?:^|[\\\\/])\\.{1,2}(?:[\\\\/]|$))",NO_DOT_SLASH:"(?!\\.{0,1}(?:[\\\\/]|$))",NO_DOTS_SLASH:"(?!\\.{1,2}(?:[\\\\/]|$))",QMARK_NO_DOT:"[^.\\\\/]",START_ANCHOR:"(?:^|[\\\\/])",END_ANCHOR:"(?:[\\\\/]|$)"};t.exports={DEFAULT_MAX_EXTGLOB_RECURSION:0,MAX_LENGTH:65536,POSIX_REGEX_SOURCE:{__proto__:null,alnum:"a-zA-Z0-9",alpha:"a-zA-Z",ascii:"\\x00-\\x7F",blank:" \\t",cntrl:"\\x00-\\x1F\\x7F",digit:"0-9",graph:"\\x21-\\x7E",lower:"a-z",print:"\\x20-\\x7E ",punct:"\\-!\"#$%&'()\\*+,./:;<=>?@[\\]^_`{|}~",space:" \\t\\r\\n\\v\\f",upper:"A-Z",word:"A-Za-z0-9_",xdigit:"A-Fa-f0-9"},REGEX_BACKSLASH:/\\(?![*+?^${}(|)[\]])/g,REGEX_NON_SPECIAL_CHARS:/^[^@![\].,$*+?^{}()|\\/]+/,REGEX_SPECIAL_CHARS:/[-*+?.^${}(|)[\]]/,REGEX_SPECIAL_CHARS_BACKREF:/(\\?)((\W)(\3*))/g,REGEX_SPECIAL_CHARS_GLOBAL:/([-*+?.^${}(|)[\]])/g,REGEX_REMOVE_BACKSLASH:/(?:\[.*?[^\\]\]|\\(?=.))/g,REPLACEMENTS:{__proto__:null,"***":"*","**/**":"**","**/**/**":"**"},CHAR_0:48,CHAR_9:57,CHAR_UPPERCASE_A:65,CHAR_LOWERCASE_A:97,CHAR_UPPERCASE_Z:90,CHAR_LOWERCASE_Z:122,CHAR_LEFT_PARENTHESES:40,CHAR_RIGHT_PARENTHESES:41,CHAR_ASTERISK:42,CHAR_AMPERSAND:38,CHAR_AT:64,CHAR_BACKWARD_SLASH:92,CHAR_CARRIAGE_RETURN:13,CHAR_CIRCUMFLEX_ACCENT:94,CHAR_COLON:58,CHAR_COMMA:44,CHAR_DOT:46,CHAR_DOUBLE_QUOTE:34,CHAR_EQUAL:61,CHAR_EXCLAMATION_MARK:33,CHAR_FORM_FEED:12,CHAR_FORWARD_SLASH:47,CHAR_GRAVE_ACCENT:96,CHAR_HASH:35,CHAR_HYPHEN_MINUS:45,CHAR_LEFT_ANGLE_BRACKET:60,CHAR_LEFT_CURLY_BRACE:123,CHAR_LEFT_SQUARE_BRACKET:91,CHAR_LINE_FEED:10,CHAR_NO_BREAK_SPACE:160,CHAR_PERCENT:37,CHAR_PLUS:43,CHAR_QUESTION_MARK:63,CHAR_RIGHT_ANGLE_BRACKET:62,CHAR_RIGHT_CURLY_BRACE:125,CHAR_RIGHT_SQUARE_BRACKET:93,CHAR_SEM
131ICOLON:59,CHAR_SINGLE_QUOTE:39,CHAR_SPACE:32,CHAR_TAB:9,CHAR_UNDERSCORE:95,CHAR_VERTICAL_LINE:124,CHAR_ZERO_WIDTH_NOBREAK_SPACE:65279,SEP:i.sep,extglobChars:e=>({"!":{type:"negate",open:"(?:(?!(?:",close:`))${e.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}),globChars:e=>!0===e?f:h}},877815,(e,t,r)=>{"use strict";var i=e.i(247167);let n=e.r(741790),a="win32"===i.default.platform,{REGEX_BACKSLASH:s,REGEX_REMOVE_BACKSLASH:o,REGEX_SPECIAL_CHARS:l,REGEX_SPECIAL_CHARS_GLOBAL:c}=e.r(474778);r.isObject=e=>null!==e&&"object"==typeof e&&!Array.isArray(e),r.hasRegexChars=e=>l.test(e),r.isRegexChar=e=>1===e.length&&r.hasRegexChars(e),r.escapeRegex=e=>e.replace(c,"\\$1"),r.toPosixSlashes=e=>e.replace(s,"/"),r.removeBackslashes=e=>e.replace(o,e=>"\\"===e?"":e),r.supportsLookbehinds=()=>{let e=i.default.version.slice(1).split(".").map(Number);return 3===e.length&&!!(e[0]>=9)||8===e[0]&&!!(e[1]>=10)},r.isWindows=e=>e&&"boolean"==typeof e.windows?e.windows:!0===a||"\\"===n.sep,r.escapeLast=(e,t,i)=>{let n=e.lastIndexOf(t,i);return -1===n?e:"\\"===e[n-1]?r.escapeLast(e,t,n-1):`${e.slice(0,n)}\\${e.slice(n)}`},r.removePrefix=(e,t={})=>{let r=e;return r.startsWith("./")&&(r=r.slice(2),t.prefix="./"),r},r.wrapOutput=(e,t={},r={})=>{let i=r.contains?"":"^",n=r.contains?"":"$",a=`${i}(?:${e})${n}`;return!0===t.negated&&(a=`(?:^(?!${a}).*$)`),a}},22599,(e,t,r)=>{"use strict";let i=e.r(877815),{CHAR_ASTERISK:n,CHAR_AT:a,CHAR_BACKWARD_SLASH:s,CHAR_COMMA:o,CHAR_DOT:l,CHAR_EXCLAMATION_MARK:c,CHAR_FORWARD_SLASH:u,CHAR_LEFT_CURLY_BRACE:d,CHAR_LEFT_PARENTHESES:p,CHAR_LEFT_SQUARE_BRACKET:h,CHAR_PLUS:f,CHAR_QUESTION_MARK:g,CHAR_RIGHT_CURLY_BRACE:m,CHAR_RIGHT_PARENTHESES:y,CHAR_RIGHT_SQUARE_BRACKET:b}=e.r(474778),v=e=>e===u||e===s,x=e=>{!0!==e.isPrefix&&(e.depth=e.isGlobstar?1/0:1)};t.exports=(e,t)=>{let r,_,w=t||{},T=e.length-1,S=!0===w.parts||!0===w.scanToEnd,C=[],E=[],k=[],N=e,I=-1,A=0,j=0,P=!1,O=!1,L=!1,D=!1,R=!1,M=!1,B=!1,U=!1,F=!1,$=!1,z=0,q={value:"",depth:0,isGlob:!1},H=()=>I>=T,W=()=>N.charCodeAt(I+1),V=()=>(r=_,N.charCodeAt(++I));for(;I<T;){let e;if((_=V())===s){B=q.backslashes=!0,(_=V())===d&&(M=!0);continue}if(!0===M||_===d){for(z++;!0!==H()&&(_=V());){if(_===s){B=q.backslashes=!0,V();continue}if(_===d){z++;continue}if(!0!==M&&_===l&&(_=V())===l||!0!==M&&_===o){if(P=q.isBrace=!0,L=q.isGlob=!0,$=!0,!0===S)continue;break}if(_===m&&0==--z){M=!1,P=q.isBrace=!0,$=!0;break}}if(!0===S)continue;break}if(_===u){if(C.push(I),E.push(q),q={value:"",depth:0,isGlob:!1},!0===$)continue;if(r===l&&I===A+1){A+=2;continue}j=I+1;continue}if(!0!==w.noext&&!0==(_===f||_===a||_===n||_===g||_===c)&&W()===p){if(L=q.isGlob=!0,D=q.isExtglob=!0,$=!0,_===c&&I===A&&(F=!0),!0===S){for(;!0!==H()&&(_=V());){if(_===s){B=q.backslashes=!0,_=V();continue}if(_===y){L=q.isGlob=!0,$=!0;break}}continue}break}if(_===n){if(r===n&&(R=q.isGlobstar=!0),L=q.isGlob=!0,$=!0,!0===S)continue;break}if(_===g){if(L=q.isGlob=!0,$=!0,!0===S)continue;break}if(_===h){for(;!0!==H()&&(e=V());){if(e===s){B=q.backslashes=!0,V();continue}if(e===b){O=q.isBracket=!0,L=q.isGlob=!0,$=!0;break}}if(!0===S)continue;break}if(!0!==w.nonegate&&_===c&&I===A){U=q.negated=!0,A++;continue}if(!0!==w.noparen&&_===p){if(L=q.isGlob=!0,!0===S){for(;!0!==H()&&(_=V());){if(_===p){B=q.backslashes=!0,_=V();continue}if(_===y){$=!0;break}}continue}break}if(!0===L){if($=!0,!0===S)continue;break}}!0===w.noext&&(D=!1,L=!1);let G=N,X="",K="";A>0&&(X=N.slice(0,A),N=N.slice(A),j-=A),G&&!0===L&&j>0?(G=N.slice(0,j),K=N.slice(j)):!0===L?(G="",K=N):G=N,G&&""!==G&&"/"!==G&&G!==N&&v(G.charCodeAt(G.length-1))&&(G=G.
131slice(0,-1)),!0===w.unescape&&(K&&(K=i.removeBackslashes(K)),G&&!0===B&&(G=i.removeBackslashes(G)));let Y={prefix:X,input:e,start:A,base:G,glob:K,isBrace:P,isBracket:O,isGlob:L,isExtglob:D,isGlobstar:R,negated:U,negatedExtglob:F};if(!0===w.tokens&&(Y.maxDepth=0,v(_)||E.push(q),Y.tokens=E),!0===w.parts||!0===w.tokens){let t;for(let r=0;r<C.length;r++){let i=t?t+1:A,n=C[r],a=e.slice(i,n);w.tokens&&(0===r&&0!==A?(E[r].isPrefix=!0,E[r].value=X):E[r].value=a,x(E[r]),Y.maxDepth+=E[r].depth),(0!==r||""!==a)&&k.push(a),t=n}if(t&&t+1<e.length){let r=e.slice(t+1);k.push(r),w.tokens&&(E[E.length-1].value=r,x(E[E.length-1]),Y.maxDepth+=E[E.length-1].depth)}Y.slashes=C,Y.parts=k}return Y}},369751,(e,t,r)=>{"use strict";let i=e.r(474778),n=e.r(877815),{MAX_LENGTH:a,POSIX_REGEX_SOURCE:s,REGEX_NON_SPECIAL_CHARS:o,REGEX_SPECIAL_CHARS_BACKREF:l,REPLACEMENTS:c}=i,u=(e,t)=>{if("function"==typeof t.expandRange)return t.expandRange(...e,t);e.sort();let r=`[${e.join("-")}]`;try{new RegExp(r)}catch(t){return e.map(e=>n.escapeRegex(e)).join("..")}return r},d=(e,t)=>`Missing ${e}: "${t}" - use "\\\\${t}" to match literal characters`,p=e=>{let t=[],r=0,i=0,n=0,a="",s=!1;for(let o of e){if(!0===s){a+=o,s=!1;continue}if("\\"===o){a+=o,s=!0;continue}if('"'===o){n=+(1!==n),a+=o;continue}if(0===n){if("["===o)r++;else if("]"===o&&r>0)r--;else if(0===r){if("("===o)i++;else if(")"===o&&i>0)i--;else if("|"===o&&0===i){t.push(a),a="";continue}}}a+=o}return t.push(a),t},h=e=>{let t=e.trim(),r=!0;for(;!0===r;)r=!1,/^@\([^\\()[\]{}|]+\)$/.test(t)&&(t=t.slice(2,-1),r=!0);if((e=>{let t=!1;for(let r of e){if(!0===t){t=!1;continue}if("\\"===r){t=!0;continue}if(/[?*+@!()[\]{}]/.test(r))return!1}return!0})(t))return t.replace(/\\(.)/g,"$1")},f=(e,t=!0)=>{if("+"!==e[0]&&"*"!==e[0]||"("!==e[1])return;let r=0,i=0,n=0,a=!1;for(let s=1;s<e.length;s++){let o=e[s];if(!0===a){a=!1;continue}if("\\"===o){a=!0;continue}if('"'===o){n=+(1!==n);continue}if(1!==n){if("["===o){r++;continue}if("]"===o&&r>0){r--;continue}if(!(r>0)){if("("===o){i++;continue}if(")"===o&&0==--i){if(!0===t&&s!==e.length-1)return;return{type:e[0],body:e.slice(2,s),end:s}}}}}},g=e=>{let t=0,r=[];for(;t<e.length;){let i=f(e.slice(t),!1);if(!i||"*"!==i.type)return;let n=p(i.body).map(e=>e.trim());if(1!==n.length)return;let a=h(n[0]);if(!a||1!==a.length)return;r.push(a),t+=i.end+1}if(r.length<1)return;let i=1===r.length?n.escapeRegex(r[0]):`[${r.map(e=>n.escapeRegex(e)).join("")}]`;return`${i}*`},m=e=>{let t=0,r=e.trim(),i=f(r);for(;i;)t++,i=f(r=i.body.trim());return t},y=(e,t)=>{let r;if("string"!=typeof e)throw TypeError("Expected a string");e=c[e]||e;let f={...t},b="number"==typeof f.maxLength?Math.min(a,f.maxLength):a,v=e.length;if(v>b)throw SyntaxError(`Input length: ${v}, exceeds maximum allowed length: ${b}`);let x={type:"bos",value:"",output:f.prepend||""},_=[x],w=f.capture?"":"?:",T=n.isWindows(t),S=i.globChars(T),C=i.extglobChars(S),{DOT_LITERAL:E,PLUS_LITERAL:k,SLASH_LITERAL:N,ONE_CHAR:I,DOTS_SLASH:A,NO_DOT:j,NO_DOT_SLASH:P,NO_DOTS_SLASH:O,QMARK:L,QMARK_NO_DOT:D,STAR:R,START_ANCHOR:M}=S,B=e=>`(${w}(?:(?!${M}${e.dot?A:E}).)*?)`,U=f.dot?"":j,F=f.dot?L:D,$=!0===f.bash?B(f):R;f.capture&&($=`(${$})`),"boolean"==typeof f.noext&&(f.noextglob=f.noext);let z={input:e,index:-1,start:0,dot:!0===f.dot,consumed:"",output:"",prefix:"",backtrack:!1,negated:!1,brackets:0,braces:0,parens:0,quotes:0,globstar:!1,tokens:_};v=(e=n.removePrefix(e,z)).length;let q=[],H=[],W=[],V=x,G=()=>z.index===v-1,X=z.peek=(t=1)=>e[z.index+t],K=z.advance=()=>e[++z.index]||"",Y=()=>e.slice(z.index+1),Q=(e="",t=0)=>{z.consumed+=e,z.index+=t},J=e=>{z.output+=null!=e.output?e.output:e.value,Q(e.value)},Z=()=>{let e=1;for(;"!"===X()&&("("!==X(2)||"?"===X(3));)K(),z.start++,e++;return e%2!=0&&(z.negated=!0,z.start++,!0)},ee=e=>{z[e]++,W.push(e)},et=e=>{z[e]--,W.pop()},er=e=>{if("globstar"===V.type){let t=z.braces>0&&("comma"===e.type||"brace"===e.type),r=!0===e.extglob||q.length&&("pipe"===e.type||"paren"===e.type);"slash"===e.type||"paren"===e.type||t||r||(z.output=z.output.slice(0,-V.output.length),V.type="star",V.value="*",V.output=$,z.output+=V.output)}if(q.length&&"paren"!==e.type&&(q[q.length-1].inner+=e.value),(e.value||e.output)&&J(e),
131V&&"text"===V.type&&"text"===e.type){V.value+=e.value,V.output=(V.output||"")+e.value;return}e.prev=V,_.push(e),V=e},ei=(e,t)=>{let r={...C[t],conditions:1,inner:""};r.prev=V,r.parens=z.parens,r.output=z.output,r.startIndex=z.index,r.tokensIndex=_.length;let i=(f.capture?"(":"")+r.open;ee("parens"),er({type:e,value:t,output:z.output?"":I}),er({type:"paren",extglob:!0,value:K(),output:i}),q.push(r)},en=a=>{let s,o=e.slice(a.startIndex,z.index+1),l=((e,t)=>{if(!1===t.maxExtglobRecursion)return{risky:!1};let r="number"==typeof t.maxExtglobRecursion?t.maxExtglobRecursion:i.DEFAULT_MAX_EXTGLOB_RECURSION,n=p(e).map(e=>e.trim());if(n.length>1&&(n.some(e=>""===e)||n.some(e=>/^[*?]+$/.test(e))||(e=>{let t=e.map(h).filter(Boolean);for(let e=0;e<t.length;e++)for(let r=e+1;r<t.length;r++){let i=t[e],n=t[r],a=i[0];if(a&&i===a.repeat(i.length)&&n===a.repeat(n.length)&&(i===n||i.startsWith(n)||n.startsWith(i)))return!0}return!1})(n)))return{risky:!0};for(let e of n){let t=g(e);if(t)return{risky:!0,safeOutput:t};if(m(e)>r)return{risky:!0}}return{risky:!1}})(e.slice(a.startIndex+2,z.index),f);if(("plus"===a.type||"star"===a.type)&&l.risky){let e=l.safeOutput?(a.output?"":I)+(f.capture?`(${l.safeOutput})`:l.safeOutput):void 0,t=_[a.tokensIndex];t.type="text",t.value=o,t.output=e||n.escapeRegex(o);for(let e=a.tokensIndex+1;e<_.length;e++)_[e].value="",_[e].output="",delete _[e].suffix;z.output=a.output+t.output,z.backtrack=!0,er({type:"paren",extglob:!0,value:r,output:""}),et("parens");return}let c=a.close+(f.capture?")":"");if("negate"===a.type){let e=$;if(a.inner&&a.inner.length>1&&a.inner.includes("/")&&(e=B(f)),(e!==$||G()||/^\)+$/.test(Y()))&&(c=a.close=`)$))${e}`),a.inner.includes("*")&&(s=Y())&&/^\.[^\\/.]+$/.test(s)){let r=y(s,{...t,fastpaths:!1}).output;c=a.close=`)${r})${e})`}"bos"===a.prev.type&&(z.negatedExtglob=!0)}er({type:"paren",extglob:!0,value:r,output:c}),et("parens")};if(!1!==f.fastpaths&&!/(^[*!]|[/()[\]{}"])/.test(e)){let r=!1,i=e.replace(l,(e,t,i,n,a,s)=>"\\"===n?(r=!0,e):"?"===n?t?t+n+(a?L.repeat(a.length):""):0===s?F+(a?L.repeat(a.length):""):L.repeat(i.length):"."===n?E.repeat(i.length):"*"===n?t?t+n+(a?$:""):$:t?e:`\\${e}`);return(!0===r&&(i=!0===f.unescape?i.replace(/\\/g,""):i.replace(/\\+/g,e=>e.length%2==0?"\\\\":e?"\\":"")),i===e&&!0===f.contains)?z.output=e:z.output=n.wrapOutput(i,z,t),z}for(;!G();){if("\0"===(r=K()))continue;if("\\"===r){let e=X();if("/"===e&&!0!==f.bash||"."===e||";"===e)continue;if(!e){er({type:"text",value:r+="\\"});continue}let t=/^\\+/.exec(Y()),i=0;if(t&&t[0].length>2&&(i=t[0].length,z.index+=i,i%2!=0&&(r+="\\")),!0===f.unescape?r=K():r+=K(),0===z.brackets){er({type:"text",value:r});continue}}if(z.brackets>0&&("]"!==r||"["===V.value||"[^"===V.value)){if(!1!==f.posix&&":"===r){let e=V.value.slice(1);if(e.includes("[")&&(V.posix=!0,e.includes(":"))){let e=V.value.lastIndexOf("["),t=V.value.slice(0,e),r=s[V.value.slice(e+2)];if(r){V.value=t+r,z.backtrack=!0,K(),x.output||1!==_.indexOf(V)||(x.output=I);continue}}}("["===r&&":"!==X()||"-"===r&&"]"===X())&&(r=`\\${r}`),"]"===r&&("["===V.value||"[^"===V.value)&&(r=`\\${r}`),!0===f.posix&&"!"===r&&"["===V.value&&(r="^"),V.value+=r,J({value:r});continue}if(1===z.quotes&&'"'!==r){r=n.escapeRegex(r),V.value+=r,J({value:r});continue}if('"'===r){z.quotes=+(1!==z.quotes),!0===f.keepQuotes&&er({type:"text",value:r});continue}if("("===r){ee("parens"),er({type:"paren",value:r});continue}if(")"===r){if(0===z.parens&&!0===f.strictBrackets)throw SyntaxError(d("opening","("));let e=q[q.length-1];if(e&&z.parens===e.parens+1){en(q.pop());continue}er({type:"paren",value:r,output:z.parens?")":"\\)"}),et("parens");continue}if("["===r){if(!0!==f.nobracket&&Y().includes("]"))ee("brackets");else{if(!0!==f.nobracket&&!0===f.strictBrackets)throw SyntaxError(d("closing","]"));r=`\\${r}`}er({type:"bracket",value:r});continue}if("]"===r){if(!0===f.nobracket||V&&"bracket"===V.type&&1===V.value.length){er({type:"text",value:r,output:`\\${r}`});continue}if(0===z.brackets){if(!0===f.strictBrackets)throw SyntaxError(d("opening","["));er({type:"text",value:r,output:`\\${r}`});continue}et("brackets");let e=V.value.slice(1);if(!0===V.posix||"^"!==e[0]||e.includes("/")||(r=`/${r}`),V.value+=r,J({value:r}),!1===f.literalBrackets||n.hasRegexChars(e))continue;let t=n.escapeRegex(V.value);if(z.output=z.output.slice(0,-V.value.length),!0===f.literalBrackets){z.output+=t,V.value=t;continue}V.value=`(${w}${t}|${V.value})`,z.output+=V.value;continue}if("{"===r&&!0!==f.nobrace){ee("braces");let e={type:"brace",value:r,output:"(",outputIndex:z.output.length,tokensIndex:z.tokens.length};H.push(e),er(e);continue}if("}"===r){let e=H[H.length-1];if(!0===f.nobrace||!e){er({type:"text",value:r,output:r});continue}let t=")";if(!0===e.dots){let e=_.slice(),r=[];for(let t=e.length-1;t>=0&&(_.pop(),"brace"!==e[t].type);t--)"dots"!==e[t].type&&r.unshift(e[t].value);t=u(r,f),z.backtrack=!0}if(!0!==e.comma&&!0!==e.dots){let i=z.output.slice(0,e.outputIndex),n=z.tokens.slice(e.tokensIndex);for(let a of(e.value=e.output="\\{",r=t="\\}",z.output=i,n))z.output+=a.output||a.value}er({type:"brace",value:r,output:t}),et("braces"),H.pop();continue}if("|"===r){q.length>0&&q[q.length-1].conditions++,er({type:"text",value:r});continue}if(","===r){let e=r,t=H[H.length-1];t&&"braces"===W[W.length-1]&&(t.comma=!0,e="|"),er({type:"comma",value:r,output:e});continue}if("/"===r){if("dot"===V.type&&z.index===z.start+1){z.start=z.index+1,z.consumed="",z.output="",_.pop(),V=x;continue}er({type:"slash",value:r,output:N});continue}
131if("."===r){if(z.braces>0&&"dot"===V.type){"."===V.value&&(V.output=E);let e=H[H.length-1];V.type="dots",V.output+=r,V.value+=r,e.dots=!0;continue}if(z.braces+z.parens===0&&"bos"!==V.type&&"slash"!==V.type){er({type:"text",value:r,output:E});continue}er({type:"dot",value:r,output:E});continue}if("?"===r){if(!(V&&"("===V.value)&&!0!==f.noextglob&&"("===X()&&"?"!==X(2)){ei("qmark",r);continue}if(V&&"paren"===V.type){let e=X(),t=r;if("<"===e&&!n.supportsLookbehinds())throw Error("Node.js v10 or higher is required for regex lookbehinds");("("!==V.value||/[!=<:]/.test(e))&&("<"!==e||/<([!=]|\w+>)/.test(Y()))||(t=`\\${r}`),er({type:"text",value:r,output:t});continue}if(!0!==f.dot&&("slash"===V.type||"bos"===V.type)){er({type:"qmark",value:r,output:D});continue}er({type:"qmark",value:r,output:L});continue}if("!"===r){if(!0!==f.noextglob&&"("===X()&&("?"!==X(2)||!/[!=<:]/.test(X(3)))){ei("negate",r);continue}if(!0!==f.nonegate&&0===z.index){Z();continue}}if("+"===r){if(!0!==f.noextglob&&"("===X()&&"?"!==X(2)){ei("plus",r);continue}if(V&&"("===V.value||!1===f.regex){er({type:"plus",value:r,output:k});continue}if(V&&("bracket"===V.type||"paren"===V.type||"brace"===V.type)||z.parens>0){er({type:"plus",value:r});continue}er({type:"plus",value:k});continue}if("@"===r){if(!0!==f.noextglob&&"("===X()&&"?"!==X(2)){er({type:"at",extglob:!0,value:r,output:""});continue}er({type:"text",value:r});continue}if("*"!==r){("$"===r||"^"===r)&&(r=`\\${r}`);let e=o.exec(Y());e&&(r+=e[0],z.index+=e[0].length),er({type:"text",value:r});continue}if(V&&("globstar"===V.type||!0===V.star)){V.type="star",V.star=!0,V.value+=r,V.output=$,z.backtrack=!0,z.globstar=!0,Q(r);continue}let t=Y();if(!0!==f.noextglob&&/^\([^?]/.test(t)){ei("star",r);continue}if("star"===V.type){if(!0===f.noglobstar){Q(r);continue}let i=V.prev,n=i.prev,a="slash"===i.type||"bos"===i.type,s=n&&("star"===n.type||"globstar"===n.type);if(!0===f.bash&&(!a||t[0]&&"/"!==t[0])){er({type:"star",value:r,output:""});continue}let o=z.braces>0&&("comma"===i.type||"brace"===i.type),l=q.length&&("pipe"===i.type||"paren"===i.type);if(!a&&"paren"!==i.type&&!o&&!l){er({type:"star",value:r,output:""});continue}for(;"/**"===t.slice(0,3);){let r=e[z.index+4];if(r&&"/"!==r)break;t=t.slice(3),Q("/**",3)}if("bos"===i.type&&G()){V.type="globstar",V.value+=r,V.output=B(f),z.output=V.output,z.globstar=!0,Q(r);continue}if("slash"===i.type&&"bos"!==i.prev.type&&!s&&G()){z.output=z.output.slice(0,-(i.output+V.output).length),i.output=`(?:${i.output}`,V.type="globstar",V.output=B(f)+(f.strictSlashes?")":"|$)"),V.value+=r,z.globstar=!0,z.output+=i.output+V.output,Q(r);continue}if("slash"===i.type&&"bos"!==i.prev.type&&"/"===t[0]){let e=void 0!==t[1]?"|$":"";z.output=z.output.slice(0,-(i.output+V.output).length),i.output=`(?:${i.output}`,V.type="globstar",V.output=`${B(f)}${N}|${N}${e})`,V.value+=r,z.output+=i.output+V.output,z.globstar=!0,Q(r+K()),er({type:"slash",value:"/",output:""});continue}if("bos"===i.type&&"/"===t[0]){V.type="globstar",V.value+=r,V.output=`(?:^|${N}|${B(f)}${N})`,z.output=V.output,z.globstar=!0,Q(r+K()),er({type:"slash",value:"/",output:""});continue}z.output=z.output.slice(0,-V.output.length),V.type="globstar",V.output=B(f),V.value+=r,z.output+=V.output,z.globstar=!0,Q(r);continue}let i={type:"star",value:r,output:$};if(!0===f.bash){i.output=".*?",("bos"===V.type||"slash"===V.type)&&(i.output=U+i.output),er(i);continue}if(V&&("bracket"===V.type||"paren"===V.type)&&!0===f.regex){i.output=r,er(i);continue}(z.index===z.start||"slash"===V.type||"dot"===V.type)&&("dot"===V.type?(z.output+=P,V.output+=P):!0===f.dot?(z.output+=O,V.output+=O):(z.output+=U,V.output+=U),"*"!==X()&&(z.output+=I,V.output+=I)),er(i)}for(;z.brackets>0;){if(!0===f.strictBrackets)throw SyntaxError(d("closing","]"));z.output=n.escapeLast(z.output,"["),et("brackets")}for(;z.parens>0;){if(!0===f.strictBrackets)throw SyntaxError(d("closing",")"));z.output=n.escapeLast(z.output,"("),et("parens")}for(;z.braces>0;){if(!0===f.strictBrackets)throw SyntaxError(d("closing","}"));z.output=n.escapeLast(z.output,"{"),et("braces")}if(!0!==f.strictSlashes&&("star"===V.type||"bracket"===V.type)&&er({type:"maybe_slash",value:"",output:`${N}?`}),!0===z.backtrack)for(let e of(z.output="",z.tokens))z.output+=null!=e.output?e.output:e.value,e.suffix&&(z.output+=e.suffix);return z};y.fastpaths=(e,t)=>{let r={...t},s="number"==typeof r.maxLength?Math.min(a,r.maxLength):a,o=e.length;if(o>s)throw SyntaxError(`Input length: ${o}, exceeds maximum allowed length: ${s}`);e=c[e]||e;let l=n.isWindows(t),{DOT_LITERAL:u,SLASH_LITERAL:d,ONE_CHAR:p,DOTS_SLASH:h,NO_DOT:f,NO_DOTS:g,NO_DOTS_SLASH:m,STAR:y,START_ANCHOR:b}=i.globChars(l),v=r.dot?g:f,x=r.dot?m:f,_=r.capture?"":"?:",w=!0===r.bas
131h?".*?":y;r.capture&&(w=`(${w})`);let T=e=>!0===e.noglobstar?w:`(${_}(?:(?!${b}${e.dot?h:u}).)*?)`,S=e=>{switch(e){case"*":return`${v}${p}${w}`;case".*":return`${u}${p}${w}`;case"*.*":return`${v}${w}${u}${p}${w}`;case"*/*":return`${v}${w}${d}${p}${x}${w}`;case"**":return v+T(r);case"**/*":return`(?:${v}${T(r)}${d})?${x}${p}${w}`;case"**/*.*":return`(?:${v}${T(r)}${d})?${x}${w}${u}${p}${w}`;case"**/.*":return`(?:${v}${T(r)}${d})?${u}${p}${w}`;default:{let t=/^(.*?)\.(\w+)$/.exec(e);if(!t)return;let r=S(t[1]);if(!r)return;return r+u+t[2]}}},C=S(n.removePrefix(e,{negated:!1,prefix:""}));return C&&!0!==r.strictSlashes&&(C+=`${d}?`),C},t.exports=y},779544,(e,t,r)=>{"use strict";let i=e.r(741790),n=e.r(22599),a=e.r(369751),s=e.r(877815),o=e.r(474778),l=(e,t,r=!1)=>{if(Array.isArray(e)){let i=e.map(e=>l(e,t,r));return e=>{for(let t of i){let r=t(e);if(r)return r}return!1}}let i=e&&"object"==typeof e&&!Array.isArray(e)&&e.tokens&&e.input;if(""===e||"string"!=typeof e&&!i)throw TypeError("Expected pattern to be a non-empty string");let n=t||{},a=s.isWindows(t),o=i?l.compileRe(e,t):l.makeRe(e,t,!1,!0),c=o.state;delete o.state;let u=()=>!1;if(n.ignore){let e={...t,ignore:null,onMatch:null,onResult:null};u=l(n.ignore,e,r)}let d=(r,i=!1)=>{let{isMatch:s,match:d,output:p}=l.test(r,o,t,{glob:e,posix:a}),h={glob:e,state:c,regex:o,posix:a,input:r,output:p,match:d,isMatch:s};return("function"==typeof n.onResult&&n.onResult(h),!1===s)?(h.isMatch=!1,!!i&&h):u(r)?("function"==typeof n.onIgnore&&n.onIgnore(h),h.isMatch=!1,!!i&&h):("function"==typeof n.onMatch&&n.onMatch(h),!i||h)};return r&&(d.state=c),d};l.test=(e,t,r,{glob:i,posix:n}={})=>{if("string"!=typeof e)throw TypeError("Expected input to be a string");if(""===e)return{isMatch:!1,output:""};let a=r||{},o=a.format||(n?s.toPosixSlashes:null),c=e===i,u=c&&o?o(e):e;return!1===c&&(c=(u=o?o(e):e)===i),(!1===c||!0===a.capture)&&(c=!0===a.matchBase||!0===a.basename?l.matchBase(e,t,r,n):t.exec(u)),{isMatch:!!c,match:c,output:u}},l.matchBase=(e,t,r,n=s.isWindows(r))=>(t instanceof RegExp?t:l.makeRe(t,r)).test(i.basename(e)),l.isMatch=(e,t,r)=>l(t,r)(e),l.parse=(e,t)=>Array.isArray(e)?e.map(e=>l.parse(e,t)):a(e,{...t,fastpaths:!1}),l.scan=(e,t)=>n(e,t),l.compileRe=(e,t,r=!1,i=!1)=>{if(!0===r)return e.output;let n=t||{},a=n.contains?"":"^",s=n.contains?"":"$",o=`${a}(?:${e.output})${s}`;e&&!0===e.negated&&(o=`^(?!${o}).*$`);let c=l.toRegex(o,t);return!0===i&&(c.state=e),c},l.makeRe=(e,t={},r=!1,i=!1)=>{if(!e||"string"!=typeof e)throw TypeError("Expected a non-empty string");let n={negated:!1,fastpaths:!0};return!1!==t.fastpaths&&("."===e[0]||"*"===e[0])&&(n.output=a.fastpaths(e,t)),n.output||(n=a(e,t)),l.compileRe(n,t,r,i)},l.toRegex=(e,t)=>{try{let r=t||{};return new RegExp(e,r.flags||(r.nocase?"i":""))}catch(e){if(t&&!0===t.debug)throw e;return/$^/}},l.constants=o,t.exports=l},412728,(e,t,r)=>{"use strict";t.exports=e.r(779544)},947537,(e,t,r)=>{"use strict";let i=e.r(477398),n=e.r(675541),a=e.r(412728),s=e.r(877815),o=e=>""===e||"./"===e,l=e=>{let t=e.indexOf("{");return t>-1&&e.indexOf("}",t)>-1},c=(e,t,r)=>{t=[].concat(t),e=[].concat(e);let i=new Set,n=new Set,s=new Set,o=0,l=e=>{s.add(e.output),r&&r.onResult&&r.onResult(e)};for(let s=0;s<t.length;s++){let c=a(String(t[s]),{...r,onResult:l},!0),u=c.state.negated||c.state.negatedExtglob;for(let t of(u&&o++,e)){let e=c(t,!0);(u?!e.isMatch:e.isMatch)&&(u?i.add(e.output):(i.delete(e.output),n.add(e.output)))}}let c=(o===t.length?[...s]:[...n]).filter(e=>!i.has(e));if(r&&0===c.length){if(!0===r.failglob)throw Error(`No matches found for "${t.join(", ")}"`);if(!0===r.nonull||!0===r.nullglob)return r.unescape?t.map(e=>e.replace(/\\/g,"")):t}return c};c.match=c,c.matcher=(e,t)=>a(e,t),c.isMatch=(e,t,r)=>a(t,r)(e),c.any=c.isMatch,c.not=(e,t,r={})=>{t=[].concat(t).map(String);let i=new Set,n=[],a=new Set(c(e,t,{...r,onResult:e=>{r.onResult&&r.onResult(e),n.push(e.output)}}));for(let e of n)a.has(e)||i.add(e);return[...i]},c.contains=(e,t,r)=>{if("string"!=typeof e)throw TypeError(`Expected a string: "${i.inspect(e)}"`);if(Array.isArray(t))return t.some(t=>c.contains(e,t,r));if("string"==typeof t){if(o(e)||o(t))return!1;if(e.includes(t)||e.startsWith("./")&&e.slice(2).includes(t))return!0}return c.isMatch(e,t,{...r,contains:!0})},c.matchKeys=(e,t,r)=>{if(!s.isObject(e))throw TypeError("Expected the first argument to be an object");let i=c(Object.keys(e),t,r),n={};for(let t of i)n[t]=e[t];return n},c.some=(e,t,r)=>{let i=[].concat(e);for(let e of[].concat(t)){let t=a(String(e),r);if(i.some(e=>t(e)))return!0}return!1},c.every=(e,t,r)=>{let i=[].concat(e);for(let e of[].concat(t)){let t=a(String(e),r);if(!i.every(e=>t(e)))return!1}return!0},c.all=(e,t,r)=>{if("string"!=typeof e)throw TypeError(`Expected a string: "${i.inspect(e)}"`);return[].concat(t).every(t=>a(t,r)(e))},c.capture=(e,t,r)=>{let i=s.isWindows(r),n=a.makeRe(String(e),{...r,capture:!0}).exec(i?s.toPosixSlashes(t):t);if(n)return n.slice(1).map(e=>void 0===e?"":e)},c.makeRe=(...e)=>a.makeRe(...e),c.scan=(...e)=>a.scan(...e),c.parse=(e,t)=>{let r=[];for(let i of[].concat(e||[]))for(let e of n(String(i),t))r.push(a.parse(e,t));return r},c.braces=(e,t)=>{if("string"!=typeof e)throw TypeError("Expected a string");return t&&!0===t.nobrace||!l(e)?[e]:n(e,t)},c.braceExpand=(e,t)=>{if("string"!=typeof e)throw TypeError("Expected a string");return c.braces(e,{...t,expand:!0})},c.hasBraces=l,t.exports=c},796179,(e,t,r)=>{let i=e.r(947537).makeRe,n={dangerouslyAllowSVG:!0,formats:["image/avif","image/webp"],minimumCacheTTL:2592e3,localPatterns:[{pathname:"/-/media/**"}],remotePatterns:[{hostname:"edge.sitecorecloud.io"},{hostname:"*.placeholder.com"},{protocol:"https",hostname:"*.sitecorecontenthub.cloud",port:""},{protocol:"https",hostname:"sitecorecontenthub.cloud",port:""},{protocol:"https",hostname:"*.wistia.com",port:""},{protocol:"https",hostname:"edge*.**",port:""},{protocol:"https",hostname:"xmc-*.**",port:""},{protocol:"https",hostname:"feaas*.blob.core.windows.net",port:""}]};t.exports=(e={})=>Object.assign({},e,{images:n}),t.exports.isValidNextImageDomain=function(e){if(!e)return!1;if(e.startsWith("/"))return!0;try{let t=new URL(e);if(n.remotePatterns.some(e=>(function(e,t){if(void 0!==e.protocol){let r=t.protocol.slice(0,-1);if(e.protocol!==r)return!1}if(void 0!==e.port&&e.port!==t.port)return!1;if(void 0===e.hostname)throw Error(`Pattern should define hostname but found
132${JSON.stringify(e)}`);return!!i(e.hostname).test(t.hostname)&&!!i(e.pathname??"**").test(t.pathname)})(e,t)))return!0}catch{}return!1}},38930,e=>{"use strict";
132var t=e.i(247167),r=e.i(843476),i=e.i(236685),n=e.i(657688),a=e.i(796179),s=e.i(992210),o=e.i(828029),l=e.i(866026);function c(e){let r=e;if(e){let i=(0,s.parseUrlObject)(e);i?.pathname.startsWith("/-/media/")&&(r=e.replace(i.origin,t.default.env.SITECORE_API_HOST??""))}return r}e.s(["default",0,({className:e,editable:t,fetchPriority:s,field:u,fallbacks:d,layout:p="intrinsic",priority:h,sizes:f="100vw",quality:g=75})=>{let m=(0,o.default)(),{renderField:y}=(0,l.useFieldWithFallbacks)(u,d);if(!y)return(0,r.jsx)(r.Fragment,{});let{alt:b,height:v,src:x,width:_}=y?.value||{};if(m)return(0,r.jsx)(i.Image,{"data-component":"helpers/fieldwrappers/imagewrapper",editable:t,field:y,className:e});let w=c(x);if(!w)return(0,r.jsx)(r.Fragment,{});let T={alt:"string"==typeof b?b:"",className:e,fetchPriority:s,priority:h,sizes:f,src:w,quality:g};if("responsive"===p&&(T.sizes="100vw",T.style={width:"100%",height:"auto"}),"fill"===p?T.fill=!0:(T.height=v,T.width=_),!T.fill&&!T.width){let e=y?.value!=null&&"object"==typeof y.value?{...y,value:{...y.value,src:w}}:{...y,value:{src:w}};return(0,r.jsx)(i.Image,{...T,"data-component":"helpers/fieldwrappers/imagewrapper",field:e})}let S=(0,a.isValidNextImageDomain)(w);return(0,r.jsx)(n.default,{"data-component":"helpers/fieldwrappers/imagewrapper",...T,unoptimized:!S})},"normalizeImageUrl",0,c])},84853,e=>{"use strict";var t=e.i(731501),r=e.i(843476),i=e.i(422674),n=e.i(271645);e.s(["withStandardComponentWrapper",0,function(e,a=!0){var s;return s=a?(0,t.withDatasourceCheck)()(e):e,e=>{let t=(0,n.useRef)(null),[a,o]=(0,n.useState)(e.params?.Styles??""),l=(0,i.useSitecoreContext)(),c=l?.sitecoreContext?.pageEditing;return((0,n.useEffect)(()=>{if(!t.current||!c)return;let e=new MutationObserver(e=>{e.forEach(e=>{"attributes"===e.type&&"class"===e.attributeName&&o(t.current?.classList.value.replace("component ","")??"")})});return e.observe(t.current,{attributes:!0}),()=>{e.disconnect()}},[c,e.params]),c)?(e.params&&(e.params.Styles=a,e.rendering.params&&(e.rendering.params.Styles=a)),(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{ref:t,className:"component "+a,style:{display:"none"}}),(0,r.jsx)(s,{...e})]})):(0,r.jsx)(s,{...e})}}],84853)},474176,e=>{"use strict";let t=["ctaVariant","ctaIcon","ctaIconAlignment","ctaVisibility","cardsPerRow"];e.s(["parseStyleParams",0,function(e,r){let i=e?.Styles?.trim()??"",n={};return i.split(" ").forEach(e=>{let i=e.split(":");if(3!=i.length)return;let a=i[0],s=i[1],o=i[2];t.includes(s)||console.warn(`Unknown styleType ${s}, expected one of ${JSON.stringify(t)}`),r&&!r.includes(a)&&console.warn(`Unknown target element ${a}, expected one of ${JSON.stringify(r)}`),n[a]={...n[a],[s]:o}}),n}],474176)},340189,e=>{"use strict";e.s(["getCtaStyle",0,(e={},t)=>({...e,ctaVariant:e?.ctaVariant??t})])},435258,e=>{"use strict";e.s(["CardListContext",()=>c,"Default",()=>d,"useCardListContext",()=>u]);var t=e.i(843476),r=e.i(271645),i=e.i(211418),n=e.i(84853),a=e.i(474176),s=e.i(206303),o=e.i(136905),l=e.i(389980);let c=(0,r.createContext)({colCount:"1",isHideImage:void 0,cardVariant:"default",isAnimation:"0",cardListTheme:"ThemesWhite"}),u=()=>(0,r.useContext)(c),d=(0,n.withStandardComponentWrapper)(e=>{let{DynamicPlaceholderId:r,RenderingIdentifier:i,isHideImage:n,variant:u,isAnimation:d}=e?.params||{},h=e?.params?.selectTheme,f=`cardlist-${r}`,g=(0,a.parseStyleParams)(e.params,["cards"]),m=g?.cards?.cardsPerRow,{base:y,card:b}=p({colCount:m});return(0,t.jsx)(c.Provider,{value:{colCount:m,isHideImage:n,cardVariant:"Customer Card"===u?"customerCard":"default",isAnimation:"1"===d?"1":"0",cardListTheme:h},children:(0,t.jsx)("section",{"data-component":"authorable/shared/lists/cardlist",id:i||e.params?.sectionId,...(0,o.getTestProps)(`component-cardlist-${e?.rendering?.uid}`),children:(0,t.jsx)(l.BrandAndThemeProvider,{theme:h,children:(0,t.jsx)(s.PlaceholderWrapper,{name:f,rendering:e.rendering,render:e=>(0,t.jsx)("ul",{className:y(),"aria-label":"List of cards",children:e.map((e,r)=>(0,t.jsx)("li",{className:b(),role:"listitem",...(0,o.getTestProps)(`card-${r}`),children:e},r))}),page:e.page})})})})},!1),p=(0,i.tv)({defaultVariants:{colCount:"1"},slots:{base:["gap-6","grid","grid-cols-none"],card:["flex","flex-col"]},variants:{colCount:{1:{base:["lg:grid-cols-1"]},2:{base:["lg:grid-cols-2"]},3:{base:["lg:grid-cols-3"]},4:{base:["lg:grid-cols-4","max-md:!flex","max-md:flex-col"]}}}})}
132,693888,818756,e=>{"use strict";var t=e.i(843476),r=e.i(271645),i=e.i(211418),n=e.i(376917),a=e.i(84853),s=e.i(310099),o=e.i(618566),l=e.i(182442);function c(){let e=(0,o.usePathname)();return(0,l.extractPath)({params:{path:e}})}e.s(["useRealPathName",0,c],818756);var u=e.i(517042);e.i(879806);var d=e.i(871084),p=e.i(38930),h=e.i(136905),f=e.i(389980),g=e.i(422674);let m=e=>{let{getDictionaryValue:i}=(0,s.default)(),a=(0,g.useSitecoreContext)(),{theme:o}=(0,r.useContext)(f.BrandAndThemeContext),{socialShareLinks:l,socialShareLinksForResourceCard:m}=a?.sitecoreContext?.siteSettings??{},[y,v]=(0,r.useState)(""),[x,_]=(0,r.useState)(!1),[w,T]=(0,r.useState)(!1),S=(0,r.useRef)(null),C=a?.sitecoreContext?.route,E=C?.fields?.OpenGraphTitle,k=C?.fields?.OpenGraphDescription,N=C?.fields?.OpenGraphImageUrl,I=C?.fields?.canonicalUrl?.value,A=e?.params?.alignment||"Left",j=c(),P="ResourceCardItem"===e.rendering.componentName,O=P?e?.params?.cardLink1:null,L="inline"===e.variant||e?.params?.variant?.toLowerCase()==="inline",D=e?.params?.styles?.split(" ").includes("left")?"left":void 0;(0,r.useEffect)(()=>{if(P&&O?.value){let t=O.value;"internal"===t.linktype&&t.href?v(`${window?.location?.origin}${t.href}`):"external"===t.linktype&&t.url&&"string"==typeof t.url||e?.params?.isSearchpart?v(t.href||""):t.href&&v(`${window?.location?.origin}${t.href}`)}else v(window?.location?.href)},[j,P,O]);let R=async()=>{_(!x)};(0,u.default)(S,x,()=>{_(!1)});let M=(e="")=>{switch(e?.toLowerCase()){case"print":window.print();break;case"copy":T(!w),navigator.clipboard.writeText(y).then(()=>{setTimeout(()=>{T(!1),_(!1)},3e3)}).catch(e=>{console.error("Error copying text to clipboard",e)})}},B=(e="")=>e.replace("$url",I||y).replaceAll("$title",encodeURIComponent(E?.value??document?.title)).replace("$description",encodeURIComponent(k?.value??"")).replace("$image",N?.value?.src??""),U=P?m:l,{base:F,shareCta:$,resourceCardShareCta:z,content:q,shareListPanel:H,header:W,headerText:V,closeIcon:G,shareHeading:X,shareLinkItem:K,shareLinkText:Y,shareResourceCardIcon:Q}=b({theme:o,alignment:D});return(0,t.jsx)("section",{"data-component":"authorable/shared/media/share",...(0,h.getTestProps)("component-share}"),children:(0,t.jsxs)("div",{className:F({textAlignment:A,flag:!!L||P,inline:L}),ref:S,onClick:()=>{x&&_(!1)},children:[L?(0,t.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,t.jsx)(n.Text,{tag:"p",field:{value:i("ShareDialogHeading")},className:X(),...(0,h.getTestProps)("inline-share-heading")}),(0,t.jsx)("div",{className:"flex items-center gap-4",children:U?.map((e,r)=>{let n=e?.fields?.url?.value,a=n?.includes("http")||n?.toLowerCase()?.includes("mailto"),s=w&&n?.toLowerCase()==="copy";return(0,t.jsx)("a",{...(0,h.getTestProps)(`inline-link-${r}`),className:"flex items-center justify-center",href:a?B(n):"",target:a?"_blank":void 0,rel:a?"noopener noreferrer":void 0,"aria-label":s?i("ClickedLinkText"):e?.fields?.title?.value,onClick:e=>{a||(e.preventDefault(),M(n))},children:(0,t.jsx)(p.default,{field:e?.fields?.icon,...(0,h.getTestProps)(`inline-image-${r}`)})},r)})})]}):P?(0,t.jsx)("button",{className:z({theme:o}),"aria-label":i("ShareDialogHeading"),onClick:e=>{e.stopPropagation(),R()},onKeyDown:e=>{"Escape"===e.key&&x&&_(!1)},...(0,h.getTestProps)("share-button"),children:(0,t.jsx)(d.SvgIcon,{icon:"share",size:"xss",viewBox:"0 0 22 23",className:Q({theme:o})})}):(0,t.jsx)("button",{"aria-label":i("ShareDialogHeading"),className:$(),onClick:e=>{e.stopPropagation(),R()},onKeyDown:e=>{"Escape"===e.key&&x&&_(!1)},...(0,h.getTestProps)("share-button"),children:(0,t.jsx)(d.SvgIcon,{icon:"share",size:"xss",viewBox:"0 0 20 22",className:"!w-5 !h-[22px] my-px mx-0.5 fill-component-button-white-filled-icon"})}),!L&&x&&(0,t.jsxs)("div",{className:H({flag:P}),onClick:e=>e.stopPropagation(),onKeyDown:e=>{"Escape"===e.key&&_(!1)},...(0,h.getTestProps)("share-panel"),children:[(0,t.jsxs)("div",{className:W(),children:[(0,t.jsx)("div",{className:"hidden md:block",children:(0,t.jsx)(n.Text,{className:V(),encode:!1,field:{value:i("ShareDialogHeading")},tag:"p",...(0,h.getTestProps)("dialog-heading")})}),(0,t.jsx)("button",{"aria-label":"Close",onClick:()=>_(!1),...(0,h.getTestProps)("close-button"),children:(0,t.jsx)(d.SvgIcon,{className:G(),icon:"share-close",size:"sm",viewBox:"0 0 14 14"})})]}),(0,t.jsx)("div",{className:q(),children:U?.map((e,a)=>{let s=e?.fields?.url?.value,o=s?.includes("http")||s?.toLowerCase()?.includes("mailto"),l=w&&e?.fields?.url?.value?.toLowerCase()==="copy";return(0,t.jsx)(r.default.Fragment,{children:(0,t.jsxs)("a",{...(0,h.getTestProps)(`link-${a}`),className:K(),href:o?B(s):"",target:`${o?"_blank":""}`,onClick:t=>{o?_(!1):(t.preventDefault(),M(e?.fields?.url?.value))},children:[(0,t.jsx)(p.default,{field:e?.fields?.icon,...(0,h.getTestProps)(`image-${a}`)}
132),(0,t.jsx)(n.Text,{className:Y(),encode:!1,field:{value:l?i("ClickedLinkText"):e?.fields?.title?.value},tag:"span",...(0,h.getTestProps)(`text-${a}`)})]})},a)})})]})]})})},y=(0,a.withStandardComponentWrapper)(m,!1),b=(0,i.tv)({defaultVariants:{style:"primary",textAlignment:"Left",flag:!1,theme:"ThemesWhite",inline:!1},slots:{base:["print:hidden","relative","z-20","shareIconContainer"],shareResourceCardIcon:["!w-[16.66px] !h-[18.33px] my-[0.83px] mx-[1.67px]","transition-colors","duration-200"],resourceCardShareCta:["group","p-spacing-spacing-12","rounded-general-border-radius-button","border-general-border-width-button","border-component-button-primary-outline-border","bg-component-button-primary-outline-bg"],shareHeading:["font-typography-font-family-body","text-typography-font-size-body-medium","font-typography-font-size-body-medium","leading-typography-font-size-body-medium"],shareCta:["hover:bg-color-fill-fill-transparent-hover","rounded-general-border-radius-text-input","hover:rounded-general-border-radius-button","p-spacing-spacing-8"],shareListPanel:["absolute","p-spacing-spacing-16","rounded-general-border-radius-container","border","border-color-border-border","bg-color-surface-white","shadow-[0px_8px_16px_-4px]","shadow-color-black-alpha-10","flex","flex-col","gap-2","top-10","min-w-[75px]","md:min-w-[156px]","mt-3"],content:["flex","flex-col"],header:["flex","items-center","justify-center","md:justify-between"],headerText:["text-color-text-text","font-typography-font-family-body","text-typography-font-size-body-medium","font-typography-font-weight-body-bold","leading-typography-line-height-body-medium","pl-spacing-spacing-4"],closeIcon:["cursor-pointer","!w-[14px]","!h-[14px]","my-[5px]","mx-[5px]"],shareLinkItem:["cursor-pointer","flex","flex-row","gap-spacing-spacing-8","p-spacing-spacing-8","rounded-general-border-radius-text-input"],shareLinkText:["hidden","md:block","text-nowrap","text-color-text-text","font-typography-font-family-body","text-typography-font-size-body-medium","font-typography-font-weight-body-semibold","leading-typography-line-height-body-medium"]},variants:{flag:{false:{base:"px-general-spacing-margin-x pt-1"},true:{base:"",shareListPanel:"bottom-[-2px] left-[-3px] top-auto"}},inline:{false:{},true:{base:"py-0 px-2 pt-spacing-spacing-16"}},theme:{ThemesWhite:{shareResourceCardIcon:"fill-component-button-tonal-outline-icon group-hover:fill-component-button-tonal-outline-icon-hover group-focus:fill-component-button-tonal-outline-icon",resourceCardShareCta:"transition-colors duration-300 bg-component-button-primary-outline-bg border-component-button-tonal-outline-border hover:component-button-primary-filled-bg-hover hover:bg-component-button-tonal-outline-bg-hover hover:border-component-button-tonal-outline-border-hover focus:outline-none focus:ring-4 focus:ring-offset-1 focus:ring-color-border-border-focus hover:no-underline focus:bg-component-button-tonal-outline-bg-focused focus:border-component-button-tonal-outline-border-focused disabled:bg-component-button-tonal-outline-bg-disabled disabled:border-component-button-tonal-outline-border-disabled"},ThemesLight:{shareResourceCardIcon:"fill-component-button-tonal-outline-icon group-hover:fill-component-button-tonal-outline-icon-hover group-focus:fill-component-button-tonal-outline-icon",resourceCardShareCta:"transition-colors duration-300 bg-component-button-primary-outline-bg border-component-button-tonal-outline-border hover:component-button-primary-filled-bg-hover hover:bg-component-button-tonal-outline-bg-hover hover:border-component-button-tonal-outline-border-hover focus:outline-none focus:ring-4 focus:ring-offset-1 focus:ring-color-border-border-focus hover:no-underline focus:bg-component-button-tonal-outline-bg-focused focus:border-component-button-tonal-outline-border-focused disabled:bg-component-button-tonal-outline-bg-disabled disabled:border-component-button-tonal-outline-border-disabled"},ThemesDark:{shareResourceCardIcon:"fill-component-button-primary-outline-icon group-hover:fill-component-button-primary-outline-icon-hover group-focus:fill-component-button-primary-outline-icon",resourceCardShareCta:"transition-colors duration-300 bg-component-button-primary-outline-bg border-component-button-primary-outline-border hover:component-button-primary-filled-bg-hover hover:bg-component-button-primary-outline-bg-hover hover:border-component-button-primary-outline-border-hover focus:outline-none focus:ring-4 focus:ring-offset-1 focus:ring-color-border-border-focus hover:no-underline focus:bg-component-button-primary-outline-bg-focused focus:border-component-button-primary-outline-border-focused disabled:bg-component-button-primary-outline-bg-disabled disabled:border-component-button-primary-outline-border-disabled"}},textAlignment:{Left:{base:"flex justify-start"},Center:{base:"flex justify-center"},Right:{base:"flex justify-end"}},alignment:{left:{base:"!px-0"}}}});e.s(["Default",0,y,"default",0,m],693888)},907095,e=>{"use strict";e.s(["Default",()=>v,"ResourceCardItem",()=>b]);var t=e.i(843476),r=e.i(211418),i=e.i(84853),n=e.i(38930),a=e.i(296217),s=e.i(506914),o=e.i(474176),l=e.i(340189),c=e.i(207857),u=e.i(435258),d=e.i(136905),p=e.i(133267),h=e.i(783697),f=e.i(693888),g=e.i(455601),m=e.i(828029),y=e.i(202191);let b=e=>{let{cardImage:r,cardLink1:i,cardLink2:b,description:v,tag:_,heading:w,highlightedheading:T,subHeading:S,enableShare:C,eyebrow:E,descriptionMobileFontSize:k,descriptionDesktopFontSize:N,headingMobileFontSize:I,headingDesktopFontSize:A,subHeadingMobileFontSize:j,subHeadingDesktopFontSize:P,headingHtmlLevel:O}=e?.fields||{},{RenderingIdentifier:L}=e?.params||{},D=(0,o.parseStyleParams)(e.params,["cta1","cta2"]),R=e?.isSearchpart||!1,M=e?.isFromDynamicCardList||!1,B=e?.searchTrackingProps,{colCount:U,isHideImage:F}=(0,u.useCardListContext)(),$=(0,m.default)(),z=e=>{if(!e)return e;if(e.includes(" - "))return e.split(" - ").map(e=>e.trim()).map(e=>
132{if(/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}/.test(e))try{let t=new Date(e);if(!isNaN(t.getTime())){let e=String(t.getDate()).padStart(2,"0"),r=String(t.getMonth()+1).padStart(2,"0"),i=t.getFullYear();return`${e}/${r}/${i}`}}catch{}return e}).join(" - ");if(/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}/.test(e))try{let t=new Date(e);if(!isNaN(t.getTime())){let e=String(t.getDate()).padStart(2,"0"),r=String(t.getMonth()+1).padStart(2,"0"),i=t.getFullYear();return`${e}/${r}/${i}`}}catch{}return e},q=R&&S?.value?{...S,value:z(S.value)||S.value}:S,H=R&&E&&Array.isArray(E)?E.map(e=>z(e)||e):E,{container:W,header:V,body:G,contentWrapper:X,content:K,eyebrow:Y,eyebrowBadges:Q,eyebrowBadge:J,heading:Z,subheading:ee,description:et,footer:er,cta:ei,noImageContainer:en,noImageIcon:ea,imageWrapper:es,ctaResourceCard:eo}=x({colCount:R?"4":U,isHighlighted:!!T,isSearchpart:R}),el=(0,y.getTypographyClassName)(et,k,N),ec=(0,y.getTypographyClassName)(Z,I,A),eu=(0,y.getTypographyClassName)(ee,j,P),ed=(0,y.getHeadingTag)(O,$,"h3");return(0,t.jsxs)("article",{className:W(),"data-component":"authorable/shared/lists/ResourceCardItem",id:L,...(0,d.getTestProps)(`card-item-${e?.rendering?.uid}`),children:[!F&&(0,t.jsx)("div",{className:V(),children:r?.value?.src?(0,t.jsx)(n.default,{field:r,className:es(),...(0,d.getTestProps)("image")}):(0,t.jsx)("div",{className:en(),...(0,d.getTestProps)("no-image"),children:(0,t.jsx)(c.default,{icon:"no-image",size:"lg",viewBox:"0 0 240 240",className:ea()})})}),(0,t.jsx)("div",{className:G(),children:(0,t.jsxs)("div",{className:X(),children:[(0,t.jsxs)("div",{className:K(),children:[(0,t.jsx)(h.EditingHelpText,{children:"Tag is not inline editable. Select a tag from Resource Card Item canvas."}),_&&(0,t.jsx)(p.default,{className:Y(),editable:!1,field:_?.fields?.Title,...(0,d.getTestProps)("title")}),H&&Array.isArray(H)&&H.length>0&&(0,t.jsx)("div",{className:Q(),children:H.map((e,r)=>(0,t.jsx)("span",{className:J(),children:e},r))}),(0,t.jsx)(p.default,{className:(Z({isHighlighted:!!T}),ec),field:T||w,tag:ed,...(0,d.getTestProps)("heading")}),(0,t.jsx)(p.default,{className:eu,field:q,...(0,d.getTestProps)("sub-heading")}),R?(0,t.jsx)(p.default,{className:el,field:v,...(0,d.getTestProps)("description")}):(0,t.jsx)(s.default,{className:el,field:v,tag:"p",...(0,d.getTestProps)("description")})]}),(0,t.jsxs)("div",{className:er(),children:[(0,t.jsx)(a.default,{ctaComponentClass:"component-card-item-button-1-color",className:ei(),ctaStyle:(0,l.getCtaStyle)(D.cta1,"primary"),ctaIcon:R?"arrow-right":D.cta1?.ctaIcon,field:i,gtmEvent:R?void 0:(0,g.createCTAClickEvent)({event:"cta_click",componentName:"Resource Card Item Primary CTA",clickText:i?.value?.text||i?.value?.title||"",componentHeader:w?.value}),onClick:R&&B?B.onClick:void 0,...(0,d.getTestProps)("primary-cta")}),(0,t.jsx)(a.default,{ctaComponentClass:"component-card-item-button-2-color",className:eo(),ctaStyle:(0,l.getCtaStyle)(D.cta2,"secondary"),ctaIcon:D.cta2?.ctaIcon||"download",field:b,gtmEvent:(0,g.createCTAClickEvent)({event:"cta_click",componentName:"Resource Card Item Secondary CTA",clickText:b?.value?.text||b?.value?.title||"",componentHeader:w?.value}),suppressLinkText:!0,...(0,d.getTestProps)("secondary-cta")}),(C?.value||M)&&(0,t.jsx)(f.default,{params:{alignment:"Left",DynamicPlaceholderId:"2",GridParameters:"col-12",FieldNames:"Default",cardLink1:i,isSearchpart:R?.toString()},rendering:{componentName:"ResourceCardItem"}}),(0,t.jsx)("a",{className:ei()})]})]})})]})},v=(0,i.withStandardComponentWrapper)(b),x=(0,r.tv)({defaultVariants:{style:"primary",colCount:"1",theme:"ThemesWhite",isHighlighted:!1,isSearchpart:!1},slots:{container:["flex","w-full","h-full","overflow-visible","border","border-component-card-item-border","rounded-general-border-radius-card","bg-component-card-item-surface","transition-shadow","duration-200","ease-in-out","hover:shadow-[0px_8px_16px_-4px]","hover:shadow-color-black-alpha-20"],header:["relative","min-h-max","w-full","rounded-component-card-item-image-radius","text-color-fill-brand-1","transition","duration-300","ease-in-out","group","pt-component-card-item-portrait-image-padding-top","px-component-card-item-portrait-image-padding-x","pb-component-card-item-portrait-image-padding-bottom"],body:["flex","flex-col","h-full","w-full","items-center"],contentWrapper:["flex","flex-col","w-full","md:justify-center","gap-component-video-card-portrait-content-button-margin-top","pt-component-card-item-portrait-content-padding-top","pb-component-card-item-portrait-content-padding-bottom","px-component-card-item-portrait-content-padding-x"],content:["flex","flex-col","w-full"],eyebrow:["font-typography-font-family-body","text-component-card-item-eyebrow","font-typography-font-weight-body-semibold","text-typography-font-size-body-xSmall","leading-typography-line-height-body-xSmall","uppercase","mb-spacing-spacing-12","md:mb-spacing-spacing-16"],eyebrowBadges:["flex","flex-wrap","gap-space-between-tight","mb-spacing-spacing-12","md:mb-spacing-spacing-16"],eyebrowBadge:["bg-component-card-label-fill","w-max","px-component-card-label-padding-x","py-component-card-label-padding-y","rounded-component-card-label-border-radius","text-component-card-label-text","font-typography-font-family-body","text-typography-font-size-body-xSmall","font-typography-font-weight-body-semibold","leading-typography-line-height-body-xSmall","uppercase"],heading:["text-component-card-item-title","text-typography-font-size-medium","font-typography-font-size-medium","font-typography-font-weight-medium","leading-typography-line-height-medium","mb-spacing-spacing-12","md:mb-spacing-spacing-16","break-words","[&>span]:bg-clip-text","[&>span]:text-transparent","[&>span]:bg-gradient-to-r","[&>span]:from-color-core-color-2-400","[&>span]:via-color-core-gradient-1-stop-2","[&>span]:to-color-core-gradient-1-stop-1","[&>span]:from-[0%]","[&>span]:via-[40%]","[&>span]:to-[100%]"],subheading:["text-component-card-item-subtitle","font-typography-font-family-body","text-typography-font-size-body-small","font-typography-font-weight-body-semibold","leading-typography-line-height-body-small","md:font-typography-font-family-body","md:text-typography-font-size-body-medium","md:font-typography-font-weight-body-semibold","md:leading-typography-line-height-body-medium","mb-spacing-spacing-12","md:mb-spacing-spacing-16","[&_sup]:text-[50%]","[&_sub]:text-[50%]"],description:["text-component-card-item-body","text-typography-font-size-body-small","font-typography-font-weight-body","leading-typography-line-height-body-small"],footer:["flex","flex-wrap","gap-2","items-center","justify-normal","w-full"],cta:["flex","gap-spacing-spacing-8","items-center","justify-center","py-spacing-spacing-12","!w-auto"],ctaResourceCard:["rounded-general-border-radius-button","border-general-border-width-button","bg-component-button-primary-outline-bg","!min-w-0","!min-h-0","!w-auto","!py-spacing-spacing-12","!px-spacing-spacing-12"],noImageContainer:["flex","items-center","justify-center","w-full","bg-color-grayscale-400","rounded-component-card-item-image-radius"],noImageIcon:["text-color-text-text-secondary","opacity-50"],imageWrapper:["w-full","object-cover","rounded-component-card-item-image-radius"]},variants:{isHighlighted:{true:{heading:["[&_em]:bg-yellow-400"]},false:{}},isSearchpart:{true:{description:["line-clamp-2"]},false:{}},colCount:{1:{container:["flex-col","md:flex-row","md:gap-0"],body:["flex-row","items-start","text-left","lg:pl-0","justify-center"],content:["text-left","justify-center"],contentWrapper:["text-left","justify-center","sm:py-component-card-item-landscape-content-padding-y","sm:px-component-card-item-landscape-content-padding-x","lg:py-component-card-item-landscape-content-1-col-padding-y","lg:px-component-card-item-landscape-content-1-col-padding-x"],header:["sm:py-component-card-item-landscape-image-padding-y","sm:py-component-card-item-landscape-image-padding-y","sm:px-component-card-item-landscape-image-padding-x","md:!pe-0"],eyebrow:["font-typography-font-family-body","text-component-card-item-eyebrow","font-typography-font-weight-body-semibold","text-typography-font-size-body-xSmall","leading-typography-line-height-body-xSmall","md:text-typography-font-size-body-small","md:leading-typography-line-height-body-small"],description:["text-component-card-item-body","text-typography-font-size-body-small","font-typography-font-weight-body","leading-typography-line-height-body-small","md:text-typography-font-size-body-medium","md:font-typography-font-weight-body","md:leading-typography-line-height-body-medium"],imageWrapper:["aspect-[4/3]"],noImageContainer:["aspect-[4/3]"]},2:{container:["flex-col","md:flex-row"],body:["flex-row","items-start","text-left","justify-start"],content:["text-left"],heading:["md:text-typography-font-size-small","md:font-typography-font-weight-small","md:leading-typography-line-height-small"],subheading:["md:text-typography-font-size-body-small","md:font-typography-font-weight-body-semibold","md:leading-typography-line-height-body-small"],contentWrapper:["text-left","md:justify-between","h-full","sm:py-component-card-item-landscape-content-padding-y","sm:px-component-card-item-landscape-content-padding-x"],header:["sm:py-component-card-item-landscape-image-padding-y","sm:px-component-card-item-landscape-image-padding-x","sm:pr-0"],imageWrapper:["!aspect-square","!h-auto"],noImageContainer:["!aspect-square","!h-auto"]},3:{container:["flex-col"],body:["flex-col","items-start","text-left"],content:["text-left"],contentWrapper:["h-full","text-left"],footer:["mt-auto"],imageWrapper:["!aspect-video"],noImageContainer:["!aspect-video"],subheading:["md:text-typography-font-size-body-small","md:font-typography-font-weight-body-semibold","md:leading-typography-line-height-body-small"]},4:{heading:["font-typography-font-family-header","text-typography-font-size-medium","font-typography-font-weight-medium","leading-typography-line-height-medium","md:font-typography-font-family-header","md:text-typography-font-size-small","md:font-typography-font-weight-small","md:leading-typography-line-height-small"],container:["flex-col"],body:["flex-col","items-center","text-left"],content:["text-left"],contentWrapper:["h-full","text-left"],footer:["mt-auto"],subheading:["md:text-typography-font-size-body-small","md:font-typography-font-weight-body-semibold","md:leading-typography-line-height-body-small"],imageWrapper:["!aspect-video"],noImageContainer:["!aspect-video"]}}}})},757070,e=>{"use strict";var t=e.i(843476),r=e.i(271645),i=e.i(38930),n=e.i(296217),a=e.i(506914),s=e.i(133267),o=e.i(207857);let l=(0,e.i(211418).tv)({slots:{root:["digital-worker-search-card","group","flex","h-full","w-full","flex-col","overflow-hidden","border","border-component-card-item-border-width","border-component-card-item-border","rounded-general-border-radius-card","bg-component-card-item-surface","text-inherit","no-underline","hover:no-underline","transition-shadow","duration-200","ease-in-out","hover:shadow-[0px_8px_16px_
132-4px]","hover:shadow-color-black-alpha-20"],media:["flex","h-[130px]","shrink-0","flex-col","border-b","border-component-card-item-border","bg-component-card-item-surface"],mediaInner:["flex","h-full","w-full","items-center","justify-center"],logo:[" object-contain","max-w-[180px]","scale-150"],noImageContainer:["flex","h-full","w-full","items-center","justify-center","bg-color-grayscale-400"],noImageIcon:["text-color-text-text-secondary","opacity-50"],content:["flex","flex-1","flex-col","pt-component-card-item-portrait-content-padding-top","pb-component-card-item-portrait-content-padding-bottom","px-component-card-item-portrait-content-padding-x"],textStack:["flex","w-full","flex-col","gap-general-spacing-title-margin-bottom"],title:["text-component-card-item-title","font-typography-font-family-header","text-typography-font-size-small","font-typography-font-weight-small","leading-typography-line-height-small","line-clamp-2","break-words"],description:["text-component-card-item-body","font-typography-font-family-body","text-typography-font-size-body-small","font-typography-font-weight-body","leading-typography-line-height-body-small","line-clamp-3"],footer:["flex","w-full","flex-wrap","content-end","items-end","justify-between","pt-component-video-card-portrait-content-button-margin-top","gap-x-spacing-spacing-8","gap-y-spacing-spacing-8"],ctaIcon:["inline-flex","items-center","justify-center","rounded-general-border-radius-button","border","border-general-border-width-button","border-component-button-tonal-outline-border","bg-component-button-tonal-outline-bg","p-spacing-spacing-12","transition-colors","duration-300","group-hover:bg-component-button-tonal-outline-bg-hover","group-hover:border-component-button-tonal-outline-border-hover","group-focus-visible:bg-component-button-tonal-outline-bg-focused","group-focus-visible:border-component-button-tonal-outline-border-focused"],tagList:["flex","max-w-full","flex-wrap","justify-end","gap-spacing-spacing-8"],tag:["bg-component-tag-fill","px-component-tag-padding-x","py-component-tag-padding-y","rounded-general-border-radius-tag","font-typography-font-family-body","text-typography-font-size-body-xSmall","font-typography-font-weight-body-semibold","leading-typography-line-height-body-xSmall","text-component-tag-text","whitespace-nowrap"]},variants:{isInteractive:{true:{root:["cursor-pointer","focus-visible:outline-none","focus-visible:ring-4","focus-visible:ring-offset-1","focus-visible:ring-color-border-border-focus"]},false:{}},isHighlighted:{true:{title:["[&>span]:bg-clip-text","[&>span]:text-transparent","[&>span]:bg-gradient-to-r","[&>span]:from-color-core-color-2-400","[&>span]:via-color-core-gradient-1-stop-2","[&>span]:to-color-core-gradient-1-stop-1","[&>span]:from-[0%]","[&>span]:via-[40%]","[&>span]:to-[100%]"]},false:{}}}});e.s(["default",0,({logoSrc:e,title:c,highlightedTitle:u,description:d,featuredLabel:p,href:h,ctaText:f})=>{let g=(0,r.useId)(),m=!!u?.trim(),y=u||c||"",b=(e=>{if(!e)return!1;try{let t=new URL(e,"https://placeholder.local");return!!t.hostname&&"placeholder.local"!==t.hostname}catch{return!1}})(h)?h:void 0,v=b?.startsWith("http://")||b?.startsWith("https://")||!1,{root:x,media:_,mediaInner:w,logo:T,noImageContainer:S,noImageIcon:C,content:E,textStack:k,title:N,description:I,footer:A,ctaIcon:j,tagList:P,tag:O}=l({isHighlighted:m,isInteractive:!!b}),L=(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:_(),children:(0,t.jsx)("div",{className:w(),children:e?(0,t.jsx)(i.default,{field:{value:{src:e,alt:c||""}},className:T()}):(0,t.jsx)("div",{className:S(),children:(0,t.jsx)(o.default,{icon:"no-image",size:"lg",viewBox:"0 0 240 240",className:C()})})})}),(0,t.jsxs)("div",{className:E(),children:[(y||d)&&(0,t.jsxs)("div",{className:k(),children:[y?m?(0,t.jsx)(s.default,{id:g,className:N(),field:{value:u},tag:"h3"}):(0,t.jsx)(a.default,{id:g,field:{value:c},tag:"h3",className:N()}):null,d?(0,t.jsx)(s.default,{className:I(),field:{value:d},tag:"p"}):null]}),(b||p)&&(0,t.jsxs)("div",{className:A(),children:[b?(0,t.jsx)("span",{className:j(),"aria-hidden":"true",children:(0,t.jsx)(o.default,{icon:"new-window",size:"xss",className:"shrink-0 text-component-button-tonal-outline-icon",viewBox:"0 0 24 24"})}):null,p?(0,t.jsx)("ul",{className:P(),"aria-label":"Featured",children:(0,t.jsx)("li",{children:(0,t.jsx)("span",{className:O(),children:p})})}):null]})]})]});return b?(0,t.jsx)(n.default,{ctaVariant:"custom",className:x(),"data-component":"authorable/shared/site-structure/Search/DigitalWorker
132SearchCard",field:{value:{href:b,text:f,title:y||f,linktype:v?"external":void 0,target:v?"_blank":void 0}},suppressLinkText:!0,suppressNewTabIcon:!0,srOnlyText:f,"aria-labelledby":y?g:void 0,children:L}):(0,t.jsx)("article",{className:x(),"data-component":"authorable/shared/site-structure/Search/DigitalWorkerSearchCard","aria-labelledby":y?g:void 0,children:L})}])},150105,e=>{"use strict";var t=e.i(843476);e.i(879806);var r=e.i(871084),i=e.i(136905);let n=(0,e.i(211418).tv)({slots:{loaderStyle:["text-center"],loaderSVGIconStyle:["inline animate-spin","!w-[120px]","!h-[120px]","text-color-text-text"]}});e.s(["OverlayLoading",0,e=>{let{loaderSVGIconStyle:a,loaderStyle:s}=n();return e?.isLoading?(0,t.jsx)("div",{className:s({className:e?.className||""}),...(0,i.getTestProps)("component-search-loading"),children:(0,t.jsx)("div",{role:"status",children:(0,t.jsx)(r.SvgIcon,{className:a(),icon:"gradient-loading",size:e?.size||"md",viewBox:"0 0 120 120",fill:"none"})})}):(0,t.jsx)(t.Fragment,{})}])},706729,989970,883495,e=>{"use strict";var t=e.i(271645);function r(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function i(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var n,a,s,o,l,c,u,d,p,h,f,g,m,y,b,v,x,_,w,T,S,C,E,k,N,I,A={autoSleep:120,force3D:"auto",nullTargetWarn:1,units:{lineHeight:""}},j={duration:.5,overwrite:!1,delay:0},P=2*Math.PI,O=P/4,L=0,D=Math.sqrt,R=Math.cos,M=Math.sin,B=function(e){return"string"==typeof e},U=function(e){return"function"==typeof e},F=function(e){return"number"==typeof e},$=function(e){return void 0===e},z=function(e){return"object"==typeof e},q=function(e){return!1!==e},H=function(){return"u">typeof window},W=function(e){return U(e)||B(e)},V="function"==typeof ArrayBuffer&&ArrayBuffer.isView||function(){},G=Array.isArray,X=/random\([^)]+\)/g,K=/,\s*/g,Y=/(?:-?\.?\d|\.)+/gi,Q=/[-+=.]*\d+[.e\-+]*\d*[e\-+]*\d*/g,J=/[-+=.]*\d+[.e-]*\d*[a-z%]*/g,Z=/[-+=.]*\d+\.?\d*(?:e-|e\+)?\d*/gi,ee=/[+-]=-?[.\d]+/,et=/[^,'"\[\]\s]+/gi,er=/^[+\-=e\s\d]*\d+[.\d]*([a-z]*|%)\s*$/i,ei={},en={},ea=function(e){return(en=eD(e,ei))&&rE},es=function(e,t){return console.warn("Invalid property",e,"set to",t,"Missing plugin? gsap.registerPlugin()")},eo=function(e,t){return!t&&console.warn(e)},el=function(e,t){return e&&(ei[e]=t)&&en&&(en[e]=t)||ei},ec=function(){return 0},eu={suppressEvents:!0,isStart:!0,kill:!1},ed={suppressEvents:!0,kill:!1},ep={suppressEvents:!0},eh={},ef=[],eg={},em={},ey={},eb=30,ev=[],ex="",e_=function(e){var t,r,i=e[0];if(z(i)||U(i)||(e=[e]),!(t=(i._gsap||{}).harness)){for(r=ev.length;r--&&!ev[r].targetTest(i););t=ev[r]}for(r=e.length;r--;)e[r]&&(e[r]._gsap||(e[r]._gsap=new tz(e[r],t)))||e.splice(r,1);return e},ew=function(e){return e._gsap||e_(ta(e))[0]._gsap},eT=function(e,t,r){return(r=e[t])&&U(r)?e[t]():$(r)&&e.getAttribute&&e.getAttribute(t)||r},eS=function(e,t){return(e=e.split(",")).forEach(t)||e},eC=function(e){return Math.round(1e5*e)/1e5||0},eE=function(e){return Math.round(1e7*e)/1e7||0},ek=function(e,t){var r=t.charAt(0),i=parseFloat(t.substr(2));return e=parseFloat(e),"+"===r?e+i:"-"===r?e-i:"*"===r?e*i:e/i},eN=function(e,t){for(var r=t.length,i=0;0>e.indexOf(t[i])&&++i<r;);return i<r},eI=function(){var e,t,r=ef.length,i=ef.slice(0);for(e=0,eg={},ef.length=0;e<r;e++)(t=i[e])&&t._lazy&&(t.render(t._lazy[0],t._lazy[1],!0)._lazy=0)},eA=function(e){return!!(e._initted||e._startAt||e.add)},ej=function(e,t,r,i){ef.length&&!x&&eI(),e.render(t,r,i||!!(x&&t<0&&eA(e))),ef.length&&!x&&eI()},eP=function(e){var t=parseFloat(e);return(t||0===t)&&(e+"").match(et).length<2?t:B(e)?e.trim():e},eO=function(e){return e},eL=function(e,t){for(var r in t)r in e||(e[r]=t[r]);return e},eD=function(e,t){for(var r in t)e[r]=t[r];return e},eR=function e(t,r){for(var i in r)"__proto__"!==i&&"constructor"!==i&&"prototype"!==i&&(t[i]=z(r[i])?e(t[i]||(t[i]={}),r[i]):r[i]);return t},eM=function(e,t){var r,i={};for(r in e)r in t||(i[r]=e[r]);return i},eB=function(e){var t,r=e.parent||w,i=e.keyframes?(t=G(e.keyframes),function(e,r){for(var i in r)i in e||"duration"===i&&t||"ease"===i||(e[i]=r[i])}):eL;if(q(e.inherit))for(;r;)i(e,r.vars.defaults),r=r.parent||r._dp;return e},eU=function(e,t){for(var r=e.length,i=r===t.length;i&&r--&&e[r]===t[r];);return r<0},eF=function(e,t,r,i,n){void 0===r&&(r="_first"),void 0===i&&(i="_last");var a,s=e[i];if(n)for(a=t[n];s&&s[n]>a;)s=s._prev;return s?(t._next=s._next,s._next=t):(t._next=e[r],e[r]=t),t._next?t._next._prev=t:e[i]=t,t._prev=s,t.parent=t._dp=e,t},e$=function(e,t,r,i){void 0===r&&(r="_first"),void 0===i&&(i="_last");var n=t._prev,a=t._next;n?n._next=a:e[r]===t&&(e[r]=a),a?a._prev=n:e[i]===t&&(e[i]=n),t._next=t._prev=t.parent=null},ez=function(e,t){e.parent&&(!t||e.parent.autoRemoveChildren)&&e.parent.remove&&e.parent.remove(e),e._act=0},eq=function(e,t){if(e&&(!t||t._end>e._dur||t._start<0))for(var r=e;r;)r._dirty=1,r=r.parent;return e},eH=function(e){for(var t=e.parent;t&&t.parent;)t._dirty=1,t.totalDuration(),t=t.parent;return e},eW=function(e,t,r,i){return e._startAt&&(x?e._startAt.revert(ed):e.vars.immediateRender&&!e.vars.autoRevert||e._startAt.render(t,!0,i))},eV=function(e){return e._repeat?eG(e._tTime,e=e.duration()+e._rDelay)*e:0},eG=function(e,t){var r=Math.floor(e=eE(e/t));return e&&r===e?r-1:r},eX=function(e,t){return(e-t._start)*t._ts+(t._ts>=0?0:t._dirty?t.totalDuration():t._tDur)},eK=function(e){return e._end=eE(e._start+(e._tDur/Math.abs(e._ts||e._rts||1e-8)||0))},eY=function(e,t){var r=e._dp;return r&&r.smoothChildTiming&&e._ts&&(e._start=eE(r._time-(e._ts>0?t/e._ts:-(((e._dirty?e.totalDuration():e._tDur)-t)/e._ts))),eK(e),r._dirty||eq(r,e)),e},eQ=function(e,t){var r;if((t._time||!t._dur&&t._initted||t._start<e._time&&(t._dur||!t.add))&&(r=eX(e.rawTime(),t),(!t._dur||tt(0,t.totalDuration(),r)-t._tTime>1e-8)&&t.render(r,!0)),eq(e,t)._dp&&e._initted&&e._time>=e._dur&&e._ts){if(e._dur<e.duration())for(r=e;r._dp;)r.rawTime()>=0&&r.totalTime(r._tTime),r=r._dp;e._zTime=-1e-8}},eJ=function(e,t,r,i){return t.parent&&ez(t),t._start=eE((F(r)?r:r||e!==w?e7(e,r,t):e._time)+t._delay),t._end=eE(t._start+(t.totalDuration()/Math.abs(t.timeScale())||0)),eF(e,t,"_first","_last",e._sort?"_start":0),e2(t)||(e._recent=t),i||eQ(e,t),e._ts<0&&eY(e,e._tTime),e},eZ=function(e,t){return(ei.ScrollTrigger||es("scrollTrigger",t))&&ei.ScrollTrigger.create(t,e)},e0=function(e,t,r,i,n){return(t1(e,t,n),e._initted)?!r&&e._pt&&!x&&(e._dur&&!1!==e.vars.lazy||!e._dur&&e.vars.lazy)&&k!==tN.frame?(ef.push(e),e._lazy=[n,i],1):void 0:1},e1=function e(t){var r=t.parent;return r&&r._ts&&r._initted&&!r._lock&&(0>r.rawTime()||e(r))},e2=function(e){var t=e.data;return"isFromStart"===t||"isStart"===t},e4=function(e,t,r,i){var n,a,s,o=e.ratio,l=t<0||!t&&(!e._start&&e1(e)&&!(!e._initted&&e2(e))||(e._ts<0||e._dp._ts<0)&&!e2(e))?0:1,c=e._rDelay,u=0;if(c&&e._repeat&&(a=eG(u=tt(0,e._tDur,t),c),e._yoyo&&1&a&&(l=1-l),a!==eG(e._tTime,c)&&(o=1-l,e.vars.repeatRefresh&&e._initted&&e.invali
132date())),l!==o||x||i||1e-8===e._zTime||!t&&e._zTime){if(!e._initted&&e0(e,t,i,r,u))return;for(s=e._zTime,e._zTime=t||1e-8*!!r,r||(r=t&&!s),e.ratio=l,e._from&&(l=1-l),e._time=0,e._tTime=u,n=e._pt;n;)n.r(l,n.d),n=n._next;t<0&&eW(e,t,r,!0),e._onUpdate&&!r&&tm(e,"onUpdate"),u&&e._repeat&&!r&&e.parent&&tm(e,"onRepeat"),(t>=e._tDur||t<0)&&e.ratio===l&&(l&&ez(e,1),r||x||(tm(e,l?"onComplete":"onReverseComplete",!0),e._prom&&e._prom()))}else e._zTime||(e._zTime=t)},e5=function(e,t,r){var i;if(r>t)for(i=e._first;i&&i._start<=r;){if("isPause"===i.data&&i._start>t)return i;i=i._next}else for(i=e._last;i&&i._start>=r;){if("isPause"===i.data&&i._start<t)return i;i=i._prev}},e3=function(e,t,r,i){var n=e._repeat,a=eE(t)||0,s=e._tTime/e._tDur;return s&&!i&&(e._time*=a/e._dur),e._dur=a,e._tDur=n?n<0?1e10:eE(a*(n+1)+e._rDelay*n):a,s>0&&!i&&eY(e,e._tTime=e._tDur*s),e.parent&&eK(e),r||eq(e.parent,e),e},e8=function(e){return e instanceof tH?eq(e):e3(e,e._dur)},e6={_start:0,endTime:ec,totalDuration:ec},e7=function e(t,r,i){var n,a,s,o=t.labels,l=t._recent||e6,c=t.duration()>=1e8?l.endTime(!1):t._dur;return B(r)&&(isNaN(r)||r in o)?(a=r.charAt(0),s="%"===r.substr(-1),n=r.indexOf("="),"<"===a||">"===a)?(n>=0&&(r=r.replace(/=/,"")),("<"===a?l._start:l.endTime(l._repeat>=0))+(parseFloat(r.substr(1))||0)*(s?(n<0?l:i).totalDuration()/100:1)):n<0?(r in o||(o[r]=c),o[r]):(a=parseFloat(r.charAt(n-1)+r.substr(n+1)),s&&i&&(a=a/100*(G(i)?i[0]:i).totalDuration()),n>1?e(t,r.substr(0,n-1),i)+a:c+a):null==r?c:+r},e9=function(e,t,r){var i,n,a=F(t[1]),s=(a?2:1)+(e<2?0:1),o=t[s];if(a&&(o.duration=t[1]),o.parent=r,e){for(i=o,n=r;n&&!("immediateRender"in i);)i=n.vars.defaults||{},n=q(n.vars.inherit)&&n.parent;o.immediateRender=q(i.immediateRender),e<2?o.runBackwards=1:o.startAt=t[s-1]}return new t7(t[0],o,t[s+1])},te=function(e,t){return e||0===e?t(e):t},tt=function(e,t,r){return r<e?e:r>t?t:r},tr=function(e,t){return B(e)&&(t=er.exec(e))?t[1]:""},ti=[].slice,tn=function(e,t){return e&&z(e)&&"length"in e&&(!t&&!e.length||e.length-1 in e&&z(e[0]))&&!e.nodeType&&e!==T},ta=function(e,t,r){var i;return _&&!t&&_.selector?_.selector(e):B(e)&&!r&&(S||!tI())?ti.call((t||C).querySelectorAll(e),0):G(e)?(void 0===i&&(i=[]),e.forEach(function(e){var t;return B(e)&&!r||tn(e,1)?(t=i).push.apply(t,ta(e)):i.push(e)})||i):tn(e)?ti.call(e,0):e?[e]:[]},ts=function(e){return e=ta(e)[0]||eo("Invalid scope")||{},function(t){var r=e.current||e.nativeElement||e;return ta(t,r.querySelectorAll?r:r===e?eo("Invalid scope")||C.createElement("div"):e)}},to=function(e){return e.sort(function(){return .5-Math.random()})},tl=function(e){if(U(e))return e;var t=z(e)?e:{each:e},r=tM(t.ease),i=t.from||0,n=parseFloat(t.base)||0,a={},s=i>0&&i<1,o=isNaN(i)||s,l=t.axis,c=i,u=i;return B(i)?c=u=({center:.5,edges:.5,end:1})[i]||0:!s&&o&&(c=i[0],u=i[1]),function(e,s,d){var p,h,f,g,m,y,b,v,x,_=(d||t).length,w=a[_];if(!w){if(!(x="auto"===t.grid?0:(t.grid||[1,1e8])[1])){for(b=-1e8;b<(b=d[x++].getBoundingClientRect().left)&&x<_;);x<_&&x--}for(y=0,w=a[_]=[],p=o?Math.min(x,_)*c-.5:i%x,h=1e8===x?0:o?_*u/x-.5:i/x|0,b=0,v=1e8;y<_;y++)f=y%x-p,g=h-(y/x|0),w[y]=m=l?Math.abs("y"===l?g:f):D(f*f+g*g),m>b&&(b=m),m<v&&(v=m);"random"===i&&to(w),w.max=b-v,w.min=v,w.v=_=(parseFloat(t.amount)||parseFloat(t.each)*(x>_?_-1:l?"y"===l?_/x:x:Math.max(x,_/x))||0)*("edges"===i?-1:1),w.b=_<0?n-_:n,w.u=tr(t.amount||t.each)||0,r=r&&_<0?tR(r):r}return _=(w[e]-w.min)/w.max||0,eE(w.b+(r?r(_):_)*w.v)+w.u}},tc=function(e){var t=Math.pow(10,((e+"").split(".")[1]||"").length);return function(r){var i=eE(Math.round(parseFloat(r)/e)*e*t);return(i-i%1)/t+(F(r)?0:tr(r))}},tu=function(e,t){var r,i,n=G(e);return!n&&z(e)&&(r=n=e.radius||1e8,e.values?(i=!F((e=ta(e.values))[0]))&&(r*=r):e=tc(e.increment)),te(t,n?U(e)?function(t){return Math.abs((i=e(t))-t)<=r?i:t}:function(t){for(var n,a,s=parseFloat(i?t.x:t),o=parseFloat(i?t.y:0),l=1e8,c=0,u=e.length;u--;)(n=i?(n=e[u].x-s)*n+(a=e[u].y-o)*a:Math.abs(e[u]-s))<l&&(l=n,c=u);return c=!r||l<=r?e[c]:t,i||c===t||F(t)?c:c+tr(t)}:tc(e))},td=function(e,t,r,i){return te(G(e)?!t:!0===r?(r=0,!1):!i,function(){return G(e)?e[~~(Math.random()*e.length)]:(i=(r=r||1e-5)<1?Math.pow(10,(r+"").length-2):1)&&Math.floor(Math.round((e-r/2+Math.random()*(t-e+.99*r))/r)*r*i)/i})},tp=function(e,t,r){return te(r,function(r){return e[~~t(r)]})},th=function(e){return e.replace(X,function(e){var t=e.indexOf("[")+1,r=e.substring(t||7,t?e.indexOf("]"):e.length-1).split(K);return td(t?r:+r[0],t?0:+r[1],+r[2]||1e-5)})},tf=function(e,t,r,i,n){var a=t-e,s=i-r;return te(n,function(t){return r+((t-e)/a*s||0)})},tg=function(e,t,r){var i,n,a,s=e.labels,o=1e8;for(i in s)(n=s[i]-t)<0==!!r&&n&&o>(n=Math.abs(n))&&(a=i,o=n);return a},tm=function(e,t,r){var i,n,a,s=e.vars,o=s[t],l=_,c=e._ctx;if(o)return i=s[t+"Params"],n=s.callbackScope||e,r&&ef.length&&eI(),c&&(_=c),a=i?o.apply(n,i):o.call(n),_=l,a},ty=function(e){return ez(e),e.scrollTrigger&&e.scrollTrigger.kill(!!x),1>e.progress()&&tm(e,"onInterrupt"),e},tb=[],tv=function(e){if(e)if(e=!e.name&&e.default||e,H()||e.headless){var t=e.name,r=U(e),i=t&&!r&&e.init?function(){this._props=[]}:e,n={init:ec,render:ro,add:tJ,kill:rc,modifier:rl,rawVars:0},a={targetTest:0,get:0,getSetter:ri,aliases:{},register:0};if(tI(),e!==i){if(em[t])return;eL(i,eL(eM(e,n),a)),eD(i.prototype,eD(n,eM(e,a))),em[i.prop=t]=i,e.targetTest&&(ev.push(i),eh[t]=1),t=("css"===t?"CSS":t.charAt(0).toUpperCase()+t.substr(1))+"Plugin"}el(t,i),e.register&&e.register(rE,i,rp)}else tb.push(e)},tx={aqua:[0,255,255],lime:[0,255,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,255],navy:[0,0,128],white:[255,255,255],olive:[128,128,0],yellow:[255,255,0],orange:[255,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[255,0,0],pink:[255,192,203],cyan:[0,255,255],transparent:[255,255,255,0]},t_=function(e,t,r){return(6*(e+=e<0?1:e>1?-1:0)<1?t+(r-t)*e*6:e<.5?r:3*e<2?t+(r-t)*(2/3-e)*6:t)*255+.5|0},tw=function(e,t,r){var i,n,a,s,o,l,c,u,d,p,h=e?F(e)?[e>>16,e>>8&255,255&e]:0:tx.black;
132if(!h){if(","===e.substr(-1)&&(e=e.substr(0,e.length-1)),tx[e])h=tx[e];else if("#"===e.charAt(0)){if(e.length<6&&(i=e.charAt(1),e="#"+i+i+(n=e.charAt(2))+n+(a=e.charAt(3))+a+(5===e.length?e.charAt(4)+e.charAt(4):"")),9===e.length)return[(h=parseInt(e.substr(1,6),16))>>16,h>>8&255,255&h,parseInt(e.substr(7),16)/255];h=[(e=parseInt(e.substr(1),16))>>16,e>>8&255,255&e]}else if("hsl"===e.substr(0,3))if(h=p=e.match(Y),t){if(~e.indexOf("="))return h=e.match(Q),r&&h.length<4&&(h[3]=1),h}else s=h[0]%360/360,o=h[1]/100,n=(l=h[2]/100)<=.5?l*(o+1):l+o-l*o,i=2*l-n,h.length>3&&(h[3]*=1),h[0]=t_(s+1/3,i,n),h[1]=t_(s,i,n),h[2]=t_(s-1/3,i,n);else h=e.match(Y)||tx.transparent;h=h.map(Number)}return t&&!p&&(i=h[0]/255,l=((c=Math.max(i,n=h[1]/255,a=h[2]/255))+(u=Math.min(i,n,a)))/2,c===u?s=o=0:(d=c-u,o=l>.5?d/(2-c-u):d/(c+u),s=(c===i?(n-a)/d+6*(n<a):c===n?(a-i)/d+2:(i-n)/d+4)*60),h[0]=~~(s+.5),h[1]=~~(100*o+.5),h[2]=~~(100*l+.5)),r&&h.length<4&&(h[3]=1),h},tT=function(e){var t=[],r=[],i=-1;return e.split(tC).forEach(function(e){var n=e.match(J)||[];t.push.apply(t,n),r.push(i+=n.length+1)}),t.c=r,t},tS=function(e,t,r){var i,n,a,s,o="",l=(e+o).match(tC),c=t?"hsla(":"rgba(",u=0;if(!l)return e;if(l=l.map(function(e){return(e=tw(e,t,1))&&c+(t?e[0]+","+e[1]+"%,"+e[2]+"%,"+e[3]:e.join(","))+")"}),r&&(a=tT(e),(i=r.c).join(o)!==a.c.join(o)))for(s=(n=e.replace(tC,"1").split(J)).length-1;u<s;u++)o+=n[u]+(~i.indexOf(u)?l.shift()||c+"0,0,0,0)":(a.length?a:l.length?l:r).shift());if(!n)for(s=(n=e.split(tC)).length-1;u<s;u++)o+=n[u]+l[u];return o+n[s]},tC=function(){var e,t="(?:\\b(?:(?:rgb|rgba|hsl|hsla)\\(.+?\\))|\\B#(?:[0-9a-f]{3,4}){1,2}\\b";for(e in tx)t+="|"+e+"\\b";return RegExp(t+")","gi")}(),tE=/hsl[a]?\(/,tk=function(e){var t,r=e.join(" ");if(tC.lastIndex=0,tC.test(r))return t=tE.test(r),e[1]=tS(e[1],t),e[0]=tS(e[0],t,tT(e[1])),!0},tN=(u=Date.now,d=500,p=33,f=h=u(),g=1e3/240,m=1e3/240,y=[],b=function e(t){var r,i,s,b,v=u()-f,x=!0===t;if((v>d||v<0)&&(h+=v-p),f+=v,((r=(s=f-h)-m)>0||x)&&(b=++o.frame,l=s-1e3*o.time,o.time=s/=1e3,m+=r+(r>=g?4:g-r),i=1),x||(n=a(e)),i)for(c=0;c<y.length;c++)y[c](s,l,b,t)},o={time:0,frame:0,tick:function(){b(!0)},deltaRatio:function(e){return l/(1e3/(e||60))},wake:function(){E&&(!S&&H()&&(C=(T=S=window).document||{},ei.gsap=rE,(T.gsapVersions||(T.gsapVersions=[])).push(rE.version),ea(en||T.GreenSockGlobals||!T.gsap&&T||{}),tb.forEach(tv)),s="u">typeof requestAnimationFrame&&requestAnimationFrame,n&&o.sleep(),a=s||function(e){return setTimeout(e,m-1e3*o.time+1|0)},I=1,b(2))},sleep:function(){(s?cancelAnimationFrame:clearTimeout)(n),I=0,a=ec},lagSmoothing:function(e,t){p=Math.min(t||33,d=e||1/0)},fps:function(e){g=1e3/(e||240),m=1e3*o.time+g},add:function(e,t,r){var i=t?function(t,r,n,a){e(t,r,n,a),o.remove(i)}:e;return o.remove(e),y[r?"unshift":"push"](i),tI(),i},remove:function(e,t){~(t=y.indexOf(e))&&y.splice(t,1)&&c>=t&&c--},_listeners:y}),tI=function(){return!I&&tN.wake()},tA={},tj=/^[\d.\-M][\d.\-,\s]/,tP=/["']/g,tO=function(e){for(var t,r,i,n={},a=e.substr(1,e.length-3).split(":"),s=a[0],o=1,l=a.length;o<l;o++)r=a[o],t=o!==l-1?r.lastIndexOf(","):r.length,i=r.substr(0,t),n[s]=isNaN(i)?i.replace(tP,"").trim():+i,s=r.substr(t+1).trim();return n},tL=function(e){var t=e.indexOf("(")+1,r=e.indexOf(")"),i=e.indexOf("(",t);return e.substring(t,~i&&i<r?e.indexOf(")",r+1):r)},tD=function(e){var t=(e+"").split("("),r=tA[t[0]];return r&&t.length>1&&r.config?r.config.apply(null,~e.indexOf("{")?[tO(t[1])]:tL(e).split(",").map(eP)):tA._CE&&tj.test(e)?tA._CE("",e):r},tR=function(e){return function(t){return 1-e(1-t)}},tM=function(e,t){return e&&(U(e)?e:tA[e]||tD(e))||t},tB=function(e,t,r,i){void 0===r&&(r=function(e){return 1-t(1-e)}),void 0===i&&(i=function(e){return e<.5?t(2*e)/2:1-t((1-e)*2)/2});var n,a={easeIn:t,easeOut:r,easeInOut:i};return eS(e,function(e){for(var t in tA[e]=ei[e]=a,tA[n=e.toLowerCase()]=r,a)tA[n+("easeIn"===t?".in":"easeOut"===t?".out":".inOut")]=tA[e+"."+t]=a[t]}),a},tU=function(e){return function(t){return t<.5?(1-e(1-2*t))/2:.5+e((t-.5)*2)/2}},tF=function e(t,r,i){var n=r>=1?r:1,a=(i||(t?.3:.45))/(r<1?r:1),s=a/P*(Math.asin(1/n)||0),o=function(e){return 1===e?1:n*Math.pow(2,-10*e)*M((e-s)*a)+1},l="out"===t?o:"in"===t?function(e){return 1-o(1-e)}:tU(o);return a=P/a,l.config=function(r,i){return e(t,r,i)},l},t$=function e(t,r){void 0===r&&(r=1.70158);var i=function(e){return e?--e*e*((r+1)*e+r)+1:0},n="out"===t?i:"in"===t?function(e){return 1-i(1-e)}:tU(i);return n.config=function(r){return e(t,r)},n};eS("Linear,Quad,Cubic,Quart,Quint,Strong",function(e,t){var r=t<5?t+1:t;tB(e+",Power"+(r-1),t?function(e){return Math.pow(e,r)}:function(e){return e},function(e){return 1-Math.pow(1-e,r)},function(e){return e<.5?Math.pow(2*e,r)/2:1-Math.pow((1-e)*2,r)/2})}),tA.Linear.easeNone=tA.none=tA.Linear.easeIn,tB("Elastic",tF("in"),tF("out"),tF()),tV=2*(tW=1/2.75),tG=2.5*tW,tB("Bounce",function(e){return 1-tX(1-e)},tX=function(e){return e<tW?7.5625*e*e:e<tV?7.5625*Math.pow(e-1.5/2.75,2)+.75:e<tG?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*Math.pow(e-2.625/2.75,2)+.984375}),tB("Expo",function(e){return Math.pow(2,10*(e-1))*e+e*e*e*e*e*e*(1-e)}),tB("Circ",function(e){return-(D(1-e*e)-1)}),tB("Sine",function(e){return 1===e?1:-R(e*O)+1}),tB("Back",t$("in"),t$("out"),t$()),tA.SteppedEase=tA.steps=ei.SteppedEase={config:function(e,t){void 0===e&&(e=1);var r=1/e,i=e+ +!t,n=+!!t,a=.99999999;return function(e){return((i*tt(0,a,e)|0)+n)*r}}},j.ease=tA["quad.out"],eS("onComplete,onUpdate,onStart,onRepeat,onReverseComplete,onInterrupt",function(e){return ex+=e+","+e+"Params,"});var tz=function(e,t){this.id=L++,e._gsap=this,this.target=e,this.harness=t,this.get=t?t.get:eT,this.set=t?t.getSetter:ri},tq=function(){function e(e){this.vars=e,this._delay=+e.delay||0,(this._repeat=e.repeat===1/0?-2:e.repeat||0)&&(this._rDelay=e.repeatDelay||0,this._yoyo=!!e.yoyo||!!e.yoyoEase),this._ts=1,e3(this,+e.duration,1,1),this.data=e.data,_&&(this._ctx=_,_.data.push(this)),I||tN.wake()}var t=e.prototype;return t.delay=function(e){return e||0===e?(this.parent&&this.parent.smoothChildTiming&&this.startTime(this._start+e-this._delay),this._delay=e,this):this._delay},t.duration=function(e){return arguments.length?this.totalDuration(this._repeat>0?e+(e+this._rDelay)*this._repeat:e):this.totalDuration()&&this._dur},t.totalDuration=function(e){return arguments.length?(this._dirty=0,e3(this,this._repeat<0?e:(e-this._repeat*this._rDelay)/(this._repeat+1))):this._tDur},t.totalTime=function(e,t){if(tI(),!arguments.length)return this._tTime;var r=this._dp;if(r&&r.smoothChildTiming&&this._ts){for(eY(this,e),!r._dp||r.parent||eQ(r,this);r&&r.parent;)r.parent._time!==r._start+(r._ts>=0?r._tTime/r._ts:-((r.totalDuration()-r._tTime)/r._ts))&&r.totalTime(r._tTime,!0),r=r.parent;!this.parent&&this._dp.autoRemoveChildren&&(this._ts>0&&e<this._tDur||this._ts<0&&e>0||!this._tDur&&!e)&&eJ(this._dp,this,this._start-this._delay)}return(this._tTime!==e||!this._dur&&!t||this._initted&&1e-8===Math.abs(this._zTime)||!this._initted&&this._dur&&e||!e&&!this._initted&&(this.add||this._ptLookup))&&(this._ts||(this._pTime=e),ej(this,e,t)),this},t.time=function(e,t){return arguments.length?this.totalTime(Math.min(this.totalDuration(),e+eV(this))%(this._dur+this._rDelay)||(e?this._dur:0),t):this._time},t.totalProgress=function(e,t){return arguments.length?this.totalTime(this.totalDuration()*e,t):this.totalDuration()?Math.min(1,this._tTime/this._tDur):this.rawTime()>=0&&this._initted?1:0},t.progress=function(e,t){return arguments.length?this.totalTime(this.duration()*(this._yoyo&&!(1&this.iteration())?1-e:e)+eV(this),t):this.duration()?Math.min(1,this._time/this._dur):+(this.rawTime()>0)},t.iteration=function(e,t){var r=this.duration()+this._rDelay;return arguments.length?this.totalTime(this._time+(e-1)*r,t):this._repeat?eG(this._tTime,r)+1:1},t.timeScale=function(e,t){if(!arguments.length)return -1e-8===this._rts?0:this._rts;if(this._rts===e)return this;var r=this.parent&&this._ts?eX(this.parent._time,this):this._tTime;return this._rts=+e||0,this._ts=this._ps||-1e-8===e?0:this._rts,this.totalTime(tt(-Math.abs(this._delay),this.totalDuration(),r),!1!==t),eK(this),eH(this)},t.paused=function(e){return arguments.length?(this._ps!==e&&(this._ps=e,e?(this._pTime=this._tTime||Math.max(-this._delay,this.rawTime()),this._ts=this._act=0):(tI(),this._ts=this._rts,this.totalTime(this.parent&&!this.parent.smoothChildTiming?this.rawTime():this._tTime||this._pTime,1===this.progress()&&1e-8!==Math.abs(this._zTime)&&(this._tTime-=1e-8)))),this):this._ps},t.startTime=function(e){if(arguments.length){this._start=eE(e);var t=this.parent||this._dp;return t&&(t._sort||!this.parent)&&eJ(t,this,this._start-this._delay),this}return this._start},t.endTime=function(e){return this._start+(q(e)?this.totalDuration():this.duration())/Math.abs(this._ts||1)},t.rawTime=function(e){var t=this.parent||this._dp;return t?e&&(!this._ts||this._repeat&&this._time&&1>this.totalProgress())?this._tTime%(this._dur+this._rDelay):this._ts?eX(t.rawTime(e),this):this._tTime:this._tTime},t.revert=function(e){void 0===e&&(e=ep);var t=x;return x=e,eA(this)&&(this.timeline&&this.timeline.revert(e),this.totalTime(-.01,e.suppressEvents)),"nested"!==this.data&&!1!==e.kill&&this.kill(),x=t,this},t.globalTime=function(e){for(var t=this,r=arguments.length?e:t.rawTime();t;)r=t._start+r/(Math.abs(t._ts)||1),t=t._dp;return!this.parent&&this._sat?this._sat.globalTime(e):r},t.repeat=function(e){return arguments.length?(this._repeat=e===1/0?-2:e,e8(this)):-2===this._repeat?1/0:this._repeat},t.repeatDelay=function(e){if(arguments.length){var t=this._time;return this._rDelay=e,e8(this),t?this.time(t):this}return this._rDelay},t.yoyo=function(e){return arguments.length?(this._yoyo=e,this):this._yoyo},t.seek=function(e,t){return this.totalTime(e7(this,e),q(t))},t.restart=function(e,t){return this.play().totalTime(e?-this._delay:0,q(t)),this._dur||(this._zTime=-1e-8),this},t.play=function(e,t){return null!=e&&this.seek(e,t),this.reversed(!1).paused(!1)},t.reverse=function(e,t){return null!=e&&this.seek(e||this.totalDuration(),t),this.reversed(!0).paused(!1)},t.pause=function(e,t){return null!=e&&this.seek(e,t),this.paused(!0)},t.resume=function(){return this.paused(!1)},t.reversed=function(e){return arguments.length?(!!e!==this.reversed()&&this.timeScale(-this._rts||(e?-1e-8:0)),this):this._rts<0},t.invalidate=function(){return this._initted=this._act=0,this._zTime=-1e-8,this},t.isActive=function(){var e,t=this.parent||this._dp,r=this._start;return!!(!t||this._ts&&this._initted&&t.isActive()&&(e=t.rawTime(!0))>=r&&e<this.endTime(!0)-1e-8)},t.eventCallback=function(e,t,r){var i=this.vars;return arguments.length>
vendor: 5,219 bytes, line 132
1321?(t?(i[e]=t,r&&(i[e+"Params"]=r),"onUpdate"===e&&(this._onUpdate=t)):delete i[e],this):i[e]},t.then=function(e){var t=this,r=t._prom;return new Promise(function(i){var n=U(e)?e:eO,a=function(){var e=t.then;t.then=null,r&&r(),U(n)&&(n=n(t))&&(n.then||n===t)&&(t.then=e),i(n),t.then=e};t._initted&&1===t.totalProgress()&&t._ts>=0||!t._tTime&&t._ts<0?a():t._prom=a})},t.kill=function(){ty(this)},e}();eL(tq.prototype,{_time:0,_start:0,_end:0,_tTime:0,_tDur:0,_dirty:0,_repeat:0,_yoyo:!1,parent:null,_initted:!1,_rDelay:0,_ts:1,_dp:0,ratio:0,_zTime:-1e-8,_prom:0,_ps:!1,_rts:1});var tH=function(e){function t(t,i){var n;return void 0===t&&(t={}),(n=e.call(this,t)||this).labels={},n.smoothChildTiming=!!t.smoothChildTiming,n.autoRemoveChildren=!!t.autoRemoveChildren,n._sort=q(t.sortChildren),w&&eJ(t.parent||w,r(n),i),t.reversed&&n.reverse(),t.paused&&n.paused(!0),t.scrollTrigger&&eZ(r(n),t.scrollTrigger),n}i(t,e);var n=t.prototype;return n.to=function(e,t,r){return e9(0,arguments,this),this},n.from=function(e,t,r){return e9(1,arguments,this),this},n.fromTo=function(e,t,r,i){return e9(2,arguments,this),this},n.set=function(e,t,r){return t.duration=0,t.parent=this,eB(t).repeatDelay||(t.repeat=0),t.immediateRender=!!t.immediateRender,new t7(e,t,e7(this,r),1),this},n.call=function(e,t,r){return eJ(this,t7.delayedCall(0,e,t),r)},n.staggerTo=function(e,t,r,i,n,a,s){return r.duration=t,r.stagger=r.stagger||i,r.onComplete=a,r.onCompleteParams=s,r.parent=this,new t7(e,r,e7(this,n)),this},n.staggerFrom=function(e,t,r,i,n,a,s){return r.runBackwards=1,eB(r).immediateRender=q(r.immediateRender),this.staggerTo(e,t,r,i,n,a,s)},n.staggerFromTo=function(e,t,r,i,n,a,s,o){return i.startAt=r,eB(i).immediateRender=q(i.immediateRender),this.staggerTo(e,t,i,n,a,s,o)},n.render=function(e,t,r){var i,n,a,s,o,l,c,u,d,p,h,f,g=this._time,m=this._dirty?this.totalDuration():this._tDur,y=this._dur,b=e<=0?0:eE(e),v=this._zTime<0!=e<0&&(this._initted||!y);if(this!==w&&b>m&&e>=0&&(b=m),b!==this._tTime||r||v){if(g!==this._time&&y&&(b+=this._time-g,e+=this._time-g),i=b,d=this._start,l=!(u=this._ts),v&&(y||(g=this._zTime),(e||!t)&&(this._zTime=e)),this._repeat){if(h=this._yoyo,o=y+this._rDelay,this._repeat<-1&&e<0)return this.totalTime(100*o+e,t,r);if(i=eE(b%o),b===m?(s=this._repeat,i=y):((s=~~(p=eE(b/o)))&&s===p&&(i=y,s--),i>y&&(i=y)),p=eG(this._tTime,o),!g&&this._tTime&&p!==s&&this._tTime-p*o-this._dur<=0&&(p=s),h&&1&s&&(i=y-i,f=1),s!==p&&!this._lock){var _=h&&1&p,T=_===(h&&1&s);if(s<p&&(_=!_),g=_?0:b%y?y:b,this._lock=1,this.render(g||(f?0:eE(s*o)),t,!y)._lock=0,this._tTime=b,!t&&this.parent&&tm(this,"onRepeat"),this.vars.repeatRefresh&&!f&&(this.invalidate()._lock=1,p=s),g&&g!==this._time||!this._ts!==l||this.vars.onRepeat&&!this.parent&&!this._act||(y=this._dur,m=this._tDur,T&&(this._lock=2,g=_?y:-1e-4,this.render(g,!0),this.vars.repeatRefresh&&!f&&this.invalidate()),this._lock=0,!this._ts&&!l))return this}}if(this._hasPause&&!this._forcing&&this._lock<2&&(c=e5(this,eE(g),eE(i)))&&(b-=i-(i=c._start)),this._tTime=b,this._time=i,this._act=!!u,this._initted||(this._onUpdate=this.vars.onUpdate,this._initted=1,this._zTime=e,g=0),!g&&b&&y&&!t&&!p&&(tm(this,"onStart"),this._tTime!==b))return this;if(i>=g&&e>=0)for(n=this._first;n;){if(a=n._next,(n._act||i>=n._start)&&n._ts&&c!==n){if(n.parent!==this)return this.render(e,t,r);if(n.render(n._ts>0?(i-n._start)*n._ts:(n._dirty?n.totalDuration():n._tDur)+(i-n._start)*n._ts,t,r),i!==this._time||!this._ts&&!l){c=0,a&&(b+=this._zTime=-1e-8);break}}n=a}else{n=this._last;for(var S=e<0?e:i;n;){if(a=n._prev,(n._act||S<=n._end)&&n._ts&&c!==n){if(n.parent!==this)return this.render(e,t,r);if(n.render(n._ts>0?(S-n._start)*n._ts:(n._dirty?n.totalDuration():n._tDur)+(S-n._start)*n._ts,t,r||x&&eA(n)),i!==this._time||!this._ts&&!l){c=0,a&&(b+=this._zTime=S?-1e-8:1e-8);break}}n=a}}if(c&&!t&&(this.pause(),c.render(i>=g?0:-1e-8)._zTime=i>=g?1:-1,this._ts))return this._start=d,eK(this),this.render(e,t,r);this._onUpdate&&!t&&tm(this,"onUpdate",!0),(b===m&&this._tTime>=this.totalDuration()||!b&&g)&&(d===this._start||Math.abs(u)!==Math.abs(this._ts))&&!this._lock&&((e||!y)&&(b===m&&this._ts>0||!b&&this._ts<0)&&ez(this,1),t||e<0&&!g||!b&&!g&&m||(tm(this,b===m&&e>=0?"onComplete":"onReverseComplete",!0),this._prom&&!(b<m&&this.timeScale()>0)&&this._prom()))}return this},n.add=function(e,t){var r=this;if(F(t)||(t=e7(this,t,e)),!(e instanceof tq)){if(G(e))return e.forEach(function(e){return r.add(e,t)}),this;if(B(e))return this.addLabel(e,t);if(!U(e))return this;e=t7.delayedCall(0,e)}return this!==e?eJ(this,e,t):this},n.getChildren=function(e,t,r,i){void 0===e&&(e=!0),void 0===t&&(t=!0),void 0===r&&(r=!0),void 0===i&&(i=-1e8);for(var n=[],a=this._first;a;)a._start>=i&&(a instanceof t7?t&&n.push(a):(r&&n.push(a),e&&n.push.apply(n,a.getChildren(!0,t,r)))),a=a._next;return n},n.getById=function(e){for(var t=this.getChildren(1,1,1),r=t.length;r--;)if(t[r].vars.id===e)return t[r]},n.remove=function(e){return B(e)?this.removeLabel(e):U(e)?this.killTweensOf(e):(e.parent===this&&e$(this,e),e===this._recent&&(this._recent=this._last),eq(this))},n.totalTime=function(t,r){return arguments.length?(this._forcing=1,!this._dp&&this._ts&&(this._start=eE(tN.time-(this._ts>
1320?t/this._ts:-((this.totalDuration()-t)/this._ts)))),e.prototype.totalTime.call(this,t,r),this._forcing=0,this):this._tTime},n.addLabel=function(e,t){return this.labels[e]=e7(this,t),this},n.removeLabel=function(e){return delete this.labels[e],this},n.addPause=function(e,t,r){var i=t7.delayedCall(0,t||ec,r);return i.data="isPause",this._hasPause=1,eJ(this,i,e7(this,e))},n.removePause=function(e){var t=this._first;for(e=e7(this,e);t;)t._start===e&&"isPause"===t.data&&ez(t),t=t._next},n.killTweensOf=function(e,t,r){for(var i=this.getTweensOf(e,r),n=i.length;n--;)tK!==i[n]&&i[n].kill(e,t);return this},n.getTweensOf=function(e,t){for(var r,i=[],n=ta(e),a=this._first,s=F(t);a;)a instanceof t7?eN(a._targets,n)&&(s?(!tK||a._initted&&a._ts)&&a.globalTime(0)<=t&&a.globalTime(a.totalDuration())>t:!t||a.isActive())&&i.push(a):(r=a.getTweensOf(n,t)).length&&i.push.apply(i,r),a=a._next;return i},n.tweenTo=function(e,t){t=t||{};var r,i=this,n=e7(i,e),a=t,s=a.startAt,o=a.onStart,l=a.onStartParams,c=a.immediateRender,u=t7.to(i,eL({ease:t.ease||"none",lazy:!1,immediateRender:!1,time:n,overwrite:"auto",duration:t.duration||Math.abs((n-(s&&"time"in s?s.time:i._time))/i.timeScale())||1e-8,onStart:function(){if(i.pause(),!r){var e=t.duration||Math.abs((n-(s&&"time"in s?s.time:i._time))/i.timeScale());u._dur!==e&&e3(u,e,0,1).render(u._time,!0,!0),r=1}o&&o.apply(u,l||[])}},t));return c?u.render(0):u},n.tweenFromTo=function(e,t,r){return this.tweenTo(t,eL({startAt:{time:e7(this,e)}},r))},n.recent=function(){return this._recent},n.nextLabel=function(e){return void 0===e&&(e=this._time),tg(this,e7(this,e))},n.previousLabel=function(e){return void 0===e&&(e=this._time),tg(this,e7(this,e),1)},n.currentLabel=function(e){return arguments.length?this.seek(e,!0):this.previousLabel(this._time+1e-8)},n.shiftChildren=function(e,t,r){void 0===r&&(r=0);var i,n=this._first,a=this.labels;for(e=eE(e);n;)n._start>=r&&(n._start+=e,n._end+=e),n=n._next;if(t)for(i in a)a[i]>=r&&(a[i]+=e);return eq(this)},n.invalidate=function(t){var r=this._first;for(this._lock=0;r;)r.invalidate(t),r=r._next;return e.prototype.invalidate.call(this,t)},n.clear=function(e){void 0===e&&(e=!0);for(var t,r=this._first;r;)t=r._next,this.remove(r),r=t;return this._dp&&(this._time=this._tTime=this._pTime=0),e&&(this.labels={}),eq(this)},n.totalDuration=function(e){var t,r,i,n=0,a=this._last,s=1e8;if(arguments.length)return this.timeScale((this._repeat<0?this.duration():this.totalDuration())/(this.reversed()?-e:e));if(this._dirty){for(i=this.parent;a;)t=a._prev,a._dirty&&a.totalDuration(),(r=a._start)>s&&this._sort&&a._ts&&!this._lock?(this._lock=1,eJ(this,a,r-a._delay,1)._lock=0):s=r,r<0&&a._ts&&(n-=r,(!i&&!this._dp||i&&i.smoothChildTiming)&&(this._start+=eE(r/this._ts),this._time-=r,this._tTime-=r),this.shiftChildren(-r,!1,-Infinity),s=0),a._end>n&&a._ts&&(n=a._end),a=t;e3(this,this===w&&this._time>n?this._time:n,1,1),this._dirty=0}return this._tDur},t.updateRoot=function(e){if(w._ts&&(ej(w,eX(e,w)),k=tN.frame),tN.frame>=eb){eb+=A.autoSleep||120;var t=w._first;if((!t||!t._ts)&&A.autoSleep&&tN._listeners.length<2){for(;t&&!t._ts;)t=t._next;t||tN.sleep()}}},t}(tq);eL(tH.prototype,{_lock:0,_hasPause:0,_forcing:0});var tW,tV,tG,tX,tK,tY,tQ=function(e,t,r,i,n,a,s){var o,l,c,u,d,p,h,f,g=new rp(this._pt,e,t,0,1,rs,null,n),m=0,y=0;for(g.b=r,g.e=i,r+="",i+="",(h=~i.indexOf("random("))&&(i=th(i)),a&&(a(f=[r,i],e,t),r=f[0],i=f[1]),l=r.match(Z)||[];o=Z.exec(i);)u=o[0],d=i.substring(m,o.index),c?c=(c+1)%5:"rgba("===d.substr(-5)&&(c=1),u!==l[y++]&&(p=parseFloat(l[y-1])||0,g._pt={_next:g._pt,p:d||1===y?d:",",s:p,c:"="===u.charAt(1)?ek(p,u)-p:parseFloat(u)-p,m:c&&c<4?Math.round:0},m=Z.lastIndex);return g.c=m<i.length?i.substring(m,i.length):"",g.fp=s,(ee.test(i)||h)&&(g.e=0),this._pt=g,g},tJ=function(e,t,r,i,n,a,s,o,l,c){U(i)&&(i=i(n||0,e,a));var u,d=e[t],p="get"!==r?r:U(d)?l?e[t.indexOf("set")||!U(e["get"+t.substr(3)])?t:"get"+t.substr(3)](l):e[t]():d,h=U(d)?l?rt:re:t9;if(B(i)&&(~i.indexOf("random(")&&(i=th(i)),"="===i.charAt(1)&&((u=ek(p,i)+(tr(p)||0))||0===u)&&(i=u)),!c||p!==i||tY)return isNaN(p*i)||""===i?(d||t in e||es(t,i),tQ.call(this,e,t,p,i,h,o||A.stringFilter,l)):(u=new rp(this._pt,e,t,+p||0,i-(p||0),"boolean"==typeof d?ra:rn,0,h),l&&(u.fp=l),s&&u.modifier(s,this,e),this._pt=u)},tZ=function(e,t,r,i,n){if(U(e)&&(e=t3(e,n,t,r,i)),!z(e)||e.style&&e.nodeType||G(e)||V(e))return B(e)?t3(e,n,t,r,i):e;var a,s={};for(a in e)s[a]=t3(e[a],n,t,r,i);return s},t0=function(e,t,r,i,n,a){var s,o,l,c;if(em[e]&&!1!==(s=new em[e]).init(n,s.rawVars?t[e]:tZ(t[e],i,n,a,r),r,i,a)&&(r._pt=o=new rp(r._pt,n,e,0,1,s.render,s,0,s.priority),r!==N))for(l=r._ptLookup[r._targets.indexOf(n)],c=s._props.length;c--;)l[s._props[c]]=o;return s},t1=function e(t,r,i){var n,a,s,o,l,c,u,d,p,h,f,g,m,y=t.vars,b=y.ease,_=y.startAt,T=y.immediateRender,S=y.lazy,C=y.onUpdate,E=y.runBackwards,k=y.yoyoEase,N=y.keyframes,I=y.autoRevert,A=t._dur,P=t._startAt,O=t._targets,L=t.parent,D=L&&"nested"===L.data?L.vars.targets:O,R="auto"===t._overwrite&&!v,M=t.timeline,B=y.easeReverse||k;
vendor: 11,940 bytes, line 132
132if(!M||N&&b||(b="none"),t._ease=tM(b,j.ease),t._rEase=B&&(tM(B)||t._ease),t._from=!M&&!!y.runBackwards,t._from&&(t.ratio=1),!M||N&&!y.stagger){if(g=(d=O[0]?ew(O[0]).harness:0)&&y[d.prop],n=eM(y,eh),P&&(P._zTime<0&&P.progress(1),r<0&&E&&T&&!I?P.render(-1,!0):P.revert(E&&A?ed:eu),P._lazy=0),_){if(ez(t._startAt=t7.set(O,eL({data:"isStart",overwrite:!1,parent:L,immediateRender:!0,lazy:!P&&q(S),startAt:null,delay:0,onUpdate:C&&function(){return tm(t,"onUpdate")},stagger:0},_))),t._startAt._dp=0,t._startAt._sat=t,r<0&&(x||!T&&!I)&&t._startAt.revert(ed),T&&A&&r<=0&&i<=0){r&&(t._zTime=r);return}}else if(E&&A&&!P)if(r&&(T=!1),s=eL({overwrite:!1,data:"isFromStart",lazy:T&&!P&&q(S),immediateRender:T,stagger:0,parent:L},n),g&&(s[d.prop]=g),ez(t._startAt=t7.set(O,s)),t._startAt._dp=0,t._startAt._sat=t,r<0&&(x?t._startAt.revert(ed):t._startAt.render(-1,!0)),t._zTime=r,T){if(!r)return}else e(t._startAt,1e-8,1e-8);for(a=0,t._pt=t._ptCache=0,S=A&&q(S)||S&&!A;a<O.length;a++){if(u=(l=O[a])._gsap||e_(O)[a]._gsap,t._ptLookup[a]=h={},eg[u.id]&&ef.length&&eI(),f=D===O?a:D.indexOf(l),d&&!1!==(p=new d).init(l,g||n,t,f,D)&&(t._pt=o=new rp(t._pt,l,p.name,0,1,p.render,p,0,p.priority),p._props.forEach(function(e){h[e]=o}),p.priority&&(c=1)),!d||g)for(s in n)em[s]&&(p=t0(s,n,t,f,l,D))?p.priority&&(c=1):h[s]=o=tJ.call(t,l,s,"get",n[s],f,D,0,y.stringFilter);t._op&&t._op[a]&&t.kill(l,t._op[a]),R&&t._pt&&(tK=t,w.killTweensOf(l,h,t.globalTime(r)),m=!t.parent,tK=0),t._pt&&S&&(eg[u.id]=1)}c&&rd(t),t._onInit&&t._onInit(t)}t._onUpdate=C,t._initted=(!t._op||t._pt)&&!m,N&&r<=0&&M.render(1e8,!0,!0)},t2=function(e,t,r,i,n,a,s,o){var l,c,u,d,p=(e._pt&&e._ptCache||(e._ptCache={}))[t];if(!p)for(p=e._ptCache[t]=[],u=e._ptLookup,d=e._targets.length;d--;){if((l=u[d][t])&&l.d&&l.d._pt)for(l=l.d._pt;l&&l.p!==t&&l.fp!==t;)l=l._next;if(!l)return tY=1,e.vars[t]="+=0",t1(e,s),tY=0,o?eo(t+" not eligible for reset. Try splitting into individual properties"):1;p.push(l)}for(d=p.length;d--;)(l=(c=p[d])._pt||c).s=(i||0===i)&&!n?i:l.s+(i||0)+a*l.c,l.c=r-l.s,c.e&&(c.e=eC(r)+tr(c.e)),c.b&&(c.b=l.s+tr(c.b))},t4=function(e,t){var r,i,n,a,s=e[0]?ew(e[0]).harness:0,o=s&&s.aliases;if(!o)return t;for(i in r=eD({},t),o)if(i in r)for(n=(a=o[i].split(",")).length;n--;)r[a[n]]=r[i];return r},t5=function(e,t,r,i){var n,a,s=t.ease||i||"power1.inOut";if(G(t))a=r[e]||(r[e]=[]),t.forEach(function(e,r){return a.push({t:r/(t.length-1)*100,v:e,e:s})});else for(n in t)a=r[n]||(r[n]=[]),"ease"===n||a.push({t:parseFloat(e),v:t[n],e:s})},t3=function(e,t,r,i,n){return U(e)?e.call(t,r,i,n):B(e)&&~e.indexOf("random(")?th(e):e},t8=ex+"repeat,repeatDelay,yoyo,repeatRefresh,yoyoEase,easeReverse,autoRevert",t6={};eS(t8+",id,stagger,delay,duration,paused,scrollTrigger",function(e){return t6[e]=1});var t7=function(e){function t(t,i,n,a){"number"==typeof i&&(n.duration=i,i=n,n=null);var s,o,l,c,u,d,p,h,f=e.call(this,a?i:eB(i))||this,g=f.vars,m=g.duration,y=g.delay,b=g.immediateRender,x=g.stagger,_=g.overwrite,T=g.keyframes,S=g.defaults,C=g.scrollTrigger,E=i.parent||w,k=(G(t)||V(t)?F(t[0]):"length"in i)?[t]:ta(t);if(f._targets=k.length?e_(k):eo("GSAP target "+t+" not found. https://gsap.com",!A.nullTargetWarn)||[],f._ptLookup=[],f._overwrite=_,T||x||W(m)||W(y)){var N=(i=f.vars).easeReverse||i.yoyoEase;if((s=f.timeline=new tH({data:"nested",defaults:S||{},targets:E&&"nested"===E.data?E.vars.targets:k})).kill(),s.parent=s._dp=r(f),s._start=0,x||W(m)||W(y)){if(c=k.length,p=x&&tl(x),z(x))for(u in x)~t8.indexOf(u)&&(h||(h={}),h[u]=x[u]);for(o=0;o<c;o++)(l=eM(i,t6)).stagger=0,N&&(l.easeReverse=N),h&&eD(l,h),d=k[o],l.duration=+t3(m,r(f),o,d,k),l.delay=(+t3(y,r(f),o,d,k)||0)-f._delay,!x&&1===c&&l.delay&&(f._delay=y=l.delay,f._start+=y,l.delay=0),s.to(d,l,p?p(o,d,k):0),s._ease=tA.none;s.duration()?m=y=0:f.timeline=0}else if(T){eB(eL(s.vars.defaults,{ease:"none"})),s._ease=tM(T.ease||i.ease||"none");var I,j,P,O=0;if(G(T))T.forEach(function(e){return s.to(k,e,">")}),s.duration();else{for(u in l={},T)"ease"===u||"easeEach"===u||t5(u,T[u],l,T.easeEach);for(u in l)for(o=0,I=l[u].sort(function(e,t){return e.t-t.t}),O=0;o<I.length;o++)(P={ease:(j=I[o]).e,duration:(j.t-(o?I[o-1].t:0))/100*m})[u]=j.v,s.to(k,P,O),O+=P.duration;s.duration()<m&&s.to({},{duration:m-s.duration()})}}m||f.duration(m=s.duration())}else f.timeline=0;return!0!==_||v||(tK=r(f),w.killTweensOf(k),tK=0),eJ(E,r(f),n),i.reversed&&f.reverse(),i.paused&&f.paused(!0),(b||!m&&!T&&f._start===eE(E._time)&&q(b)&&function e(t){return!t||t._ts&&e(t.parent)}(r(f))&&"nested"!==E.data)&&(f._tTime=-1e-8,f.render(Math.max(0,-y)||0)),C&&eZ(r(f),C),f}i(t,e);var n=t.prototype;return n.render=function(e,t,r){var i,n,a,s,o,l,c,u,d=this._time,p=this._tDur,h=this._dur,f=e<0,g=e>p-1e-8&&!f?p:e<1e-8?0:e;if(h){if(g!==this._tTime||!e||r||!this._initted&&this._tTime||this._startAt&&this._zTime<0!==f||this._lazy){if(i=g,u=this.timeline,this._repeat){if(s=h+this._rDelay,this._repeat<-1&&f)return this.totalTime(100*s+e,t,r);if(i=eE(g%s),g===p?(a=this._repeat,i=h):(a=~~(o=eE(g/s)))&&a===o?(i=h,a--):i>h&&(i=h),(l=this._yoyo&&1&a)&&(i=h-i),o=eG(this._tTime,s),i===d&&!r&&this._initted&&a===o)return this._tTime=g,this;a!==o&&this.vars.repeatRefresh&&!l&&!this._lock&&i!==s&&this._initted&&(this._lock=r=1,this.render(eE(s*a),!0).invalidate()._lock=0)}if(!this._initted){if(e0(this,f?e:i,r,t,g))return this._tTime=0,this;if(d!==this._time&&!(r&&this.vars.repeatRefresh&&a!==o))return this;if(h!==this._dur)return this.render(e,t,r)}if(this._rEase){var m=i<d;if(m!==this._inv){var y=m?d:h-d;this._inv=m,this._from&&(this.ratio=1-this.ratio),this._invRatio=this.ratio,this._invTime=d,this._invRecip=y?(m?-1:1)/y:0,this._invScale=m?-this.ratio:1-this.ratio,this._invEase=m?this._rEase:this._ease}this.ratio=c=this._invRatio+this._invScale*this._invEase((i-this._invTime)*this._invRecip)}else this.ratio=c=this._ease(i/h);if(this._from&&(this.ratio=c=1-c),this._tTime=g,this._time=i,!this._act&&this._ts&&(this._act=1,this._lazy=0),!d&&g&&!t&&!o&&(tm(this,"onStart"),this._tTime!==g))return this;for(n=this._pt;n;)n.r(c,n.d),n=n._next;u&&u.render(e<0?e:u._dur*u._ease(i/this._dur),t,r)||this._startAt&&(this._zTime=e),this._onUpdate&&!t&&(f&&eW(this,e,t,r),tm(this,"onUpdate")),this._repeat&&a!==o&&this.vars.onRepeat&&!t&&this.parent&&tm(this,"onRepeat"),(g===this._tDur||!g)&&this._tTime===g&&(f&&!this._onUpdate&&eW(this,e,!0,!0),(e||!h)&&(g===this._tDur&&this._ts>0||!g&&this._ts<0)&&ez(this,1),!t&&!(f&&!d)&&(g||d||l)&&(tm(this,g===p?"onComplete":"onReverseComplete",!0),this._prom&&!(g<p&&this.timeScale()>0)&&this._prom()))}}else e4(this,e,t,r);return this},n.targets=function(){return this._targets},n.invalidate=function(t){return t&&this.vars.runBackwards||(this._startAt=0),this._pt=this._op=this._onUpdate=this._lazy=this.ratio=0,this._ptLookup=[],this.timeline&&this.timeline.invalidate(t),e.prototype.invalidate.call(this,t)},n.resetTo=function(e,t,r,i,n){I||tN.wake(),this._ts||this.play();var a=Math.min(this._dur,(this._dp._time-this._start)*this._ts);return(this._initted||t1(this,a),t2(this,e,t,r,i,this._ease(a/this._dur),a,n))?this.resetTo(e,t,r,i,1):(eY(this,0),this.parent||eF(this._dp,this,"_first","_last",this._dp._sort?"_start":0),this.render(0))},n.kill=function(e,t){if(void 0===t&&(t="all"),!e&&(!t||"all"===t))return this._lazy=this._pt=0,this.parent?ty(this):this.scrollTrigger&&this.scrollTrigger.kill(!!x),this;if(this.timeline){var r=this.timeline.totalDuration();return this.timeline.killTweensOf(e,t,tK&&!0!==tK.vars.overwrite)._first||ty(this),this.parent&&r!==this.timeline.totalDuration()&&e3(this,this._dur*this.timeline._tDur/r,0,1),this}var i,n,a,s,o,l,c,u=this._targets,d=e?ta(e):u,p=this._ptLookup,h=this._pt;if((!t||"all"===t)&&eU(u,d))return"all"===t&&(this._pt=0),ty(this);for(i=this._op=this._op||[],"all"!==t&&(B(t)&&(o={},eS(t,function(e){return o[e]=1}),t=o),t=t4(u,t)),c=u.length;c--;)if(~d.indexOf(u[c]))for(o in n=p[c],"all"===t?(i[c]=t,s=n,a={}):(a=i[c]=i[c]||{},s=t),s)(l=n&&n[o])&&("kill"in l.d&&!0!==l.d.kill(o)||e$(this,l,"_pt"),delete n[o]),"all"!==a&&(a[o]=1);return this._initted&&!this._pt&&h&&ty(this),this},t.to=function(e,r){return new t(e,r,arguments[2])},t.from=function(e,t){return e9(1,arguments)},t.delayedCall=function(e,r,i,n){return new t(r,0,{immediateRender:!1,lazy:!1,overwrite:!1,delay:e,onComplete:r,onReverseComplete:r,onCompleteParams:i,onReverseCompleteParams:i,callbackScope:n})},t.fromTo=function(e,t,r){return e9(2,arguments)},t.set=function(e,r){return r.duration=0,r.repeatDelay||(r.repeat=0),new t(e,r)},t.killTweensOf=function(e,t,r){return w.killTweensOf(e,t,r)},t}(tq);eL(t7.prototype,{_targets:[],_lazy:0,_startAt:0,_op:0,_onInit:0}),eS("staggerTo,staggerFrom,staggerFromTo",function(e){t7[e]=function(){var t=new tH,r=ti.call(arguments,0);return r.splice("staggerFromTo"===e?5:4,0,0),t[e].apply(t,r)}});var t9=function(e,t,r){return e[t]=r},re=function(e,t,r){return e[t](r)},rt=function(e,t,r,i){return e[t](i.fp,r)},rr=function(e,t,r){return e.setAttribute(t,r)},ri=function(e,t){return U(e[t])?re:$(e[t])&&e.setAttribute?rr:t9},rn=function(e,t){return t.set(t.t,t.p,Math.round((t.s+t.c*e)*1e6)/1e6,t)},ra=function(e,t){return t.set(t.t,t.p,!!(t.s+t.c*e),t)},rs=function(e,t){var r=t._pt,i="";if(!e&&t.b)i=t.b;else if(1===e&&t.e)i=t.e;else{for(;r;)i=r.p+(r.m?r.m(r.s+r.c*e):Math.round((r.s+r.c*e)*1e4)/1e4)+i,r=r._next;i+=t.c}t.set(t.t,t.p,i,t)},ro=function(e,t){for(var r=t._pt;r;)r.r(e,r.d),r=r._next},rl=function(e,t,r,i){for(var n,a=this._pt;a;)n=a._next,a.p===i&&a.modifier(e,t,r),a=n},rc=function(e){for(var t,r,i=this._pt;i;)r=i._next,(i.p!==e||i.op)&&i.op!==e?i.dep||(t=1):e$(this,i,"_pt"),i=r;return!t},ru=function(e,t,r,i){i.mSet(e,t,i.m.call(i.tween,r,i.mt),i)},rd=function(e){for(var t,r,i,n,a=e._pt;a;){for(t=a._next,r=i;r&&r.pr>a.pr;)r=r._next;(a._prev=r?r._prev:n)?a._prev._next=a:i=a,(a._next=r)?r._prev=a:n=a,a=t}e._pt=i},rp=function(){function e(e,t,r,i,n,a,s,o,l){this.t=t,this.s=i,this.c=n,this.p=r,this.r=a||rn,this.d=s||this,this.set=o||t9,this.pr=l||0,this._next=e,e&&(e._prev=this)}return e.prototype.modifier=function(e,t,r){this.mSet=this.mSet||this.set,this.set=ru,this.m=e,this.mt=r,this.tween=t},e}();eS(ex+"parent,duration,ease,delay,overwrite,runBackwards,startAt,yoyo,immediateRender,repeat,repeatDelay,data,paused,reversed,lazy,callbackScope,stringFilter,id,yoyoEase,stagger,inherit,repeatRefresh,keyframes,autoRevert,scrollTrigger,easeReverse",function(e){return eh[e]=1}),ei.TweenMax=ei.TweenLite=t7,ei.TimelineLite=ei.TimelineMax=tH,w=new tH({sortChildren:!1,defaults:j,autoRemoveChildren:!0,id:"root",smoothChildTiming:!0}),A.stringFilter=tk;var rh=[],rf={},rg=[],rm=0,ry=0,rb=function(e){return(rf[e]||rg).map(function(e){return e()})},rv=function(){var e=Date.now(),t=[];e-rm>2&&(rb("matchMediaInit"),rh.forEach(function(e){var r,i,n,a,s=e.queries,o=e.conditions;for(i in s)(r=T.matchMedia(s[i]).matches)&&(n=1),r!==o[i]&&(o[i]=r,a=1);a&&(e.revert(),n&&t.push(e))}),rb("matchMediaRevert"),t.forEach(function(e){return e.onMatch(e,function(t){return e.add(null,t)})}),rm=e,rb("matchMedia"))},rx=function(){function e(e,t){this.selector=t&&ts(t),this.data=[],this._r=[],this.isReverted=!1,this.id=ry++,e&&this.add(e)}var t=e.prototype;return t.add=function(e,t,r){U(e)&&(r=t,t=e,e=U);var i=this,n=function(){var e,n=_,a=i.selector;return n&&n!==i&&n.data.push(i),r&&(i.selector=ts(r)),_=i,e=t.apply(i,arguments),U(e)&&i._r.push(e),_=n,i.selector=a,i.isReverted=!1,e};return i.last=n,e===U?n(i,function(e){return i.add(null,e)}):e?i[e]=n:n},t.ignore=function(e){var t=_;_=null,e(this),_=t},t.getTweens=function(){var t=[];return this.data.forEach(function(r){return r instanceof e?t.push.apply(t,r.getTweens()):r instanceof t7&&!(r.parent&&"nested"===r.parent.data)&&t.push(r)}),t},t.clear=function(){this._r.length=this.data.length=0},t.kill=function(e,t){var r=this;if(e){for(var i,n=r.getTweens(),a=r.data.length;a--;)"isFlip"===(i=r.data[a]).data&&(i.revert(),i.getChildren(!0,!0,!1).forEac
132h(function(e){return n.splice(n.indexOf(e),1)}));for(n.map(function(e){return{g:e._dur||e._delay||e._sat&&!e._sat.vars.immediateRender?e.globalTime(0):-1/0,t:e}}).sort(function(e,t){return t.g-e.g||-1/0}).forEach(function(t){return t.t.revert(e)}),a=r.data.length;a--;)(i=r.data[a])instanceof tH?"nested"!==i.data&&(i.scrollTrigger&&i.scrollTrigger.revert(),i.kill()):i instanceof t7||!i.revert||i.revert(e);r._r.forEach(function(t){return t(e,r)}),r.isReverted=!0}else this.data.forEach(function(e){return e.kill&&e.kill()});if(this.clear(),t)for(var s=rh.length;s--;)rh[s].id===this.id&&rh.splice(s,1)},t.revert=function(e){this.kill(e||{})},e}(),r_=function(){function e(e){this.contexts=[],this.scope=e,_&&_.data.push(this)}var t=e.prototype;return t.add=function(e,t,r){z(e)||(e={matches:e});var i,n,a,s=new rx(0,r||this.scope),o=s.conditions={};for(n in _&&!s.selector&&(s.selector=_.selector),this.contexts.push(s),t=s.add("onMatch",t),s.queries=e,e)"all"===n?a=1:(i=T.matchMedia(e[n]))&&(0>rh.indexOf(s)&&rh.push(s),(o[n]=i.matches)&&(a=1),i.addListener?i.addListener(rv):i.addEventListener("change",rv));return a&&t(s,function(e){return s.add(null,e)}),this},t.revert=function(e){this.kill(e||{})}
vendor: 4,873 bytes, line 132
132,t.kill=function(e){this.contexts.forEach(function(t){return t.kill(e,!0)})},e}(),rw={registerPlugin:function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];t.forEach(function(e){return tv(e)})},timeline:function(e){return new tH(e)},getTweensOf:function(e,t){return w.getTweensOf(e,t)},getProperty:function(e,t,r,i){B(e)&&(e=ta(e)[0]);var n=ew(e||{}).get,a=r?eO:eP;return"native"===r&&(r=""),e?t?a((em[t]&&em[t].get||n)(e,t,r,i)):function(t,r,i){return a((em[t]&&em[t].get||n)(e,t,r,i))}:e},quickSetter:function(e,t,r){if((e=ta(e)).length>1){var i=e.map(function(e){return rE.quickSetter(e,t,r)}),n=i.length;return function(e){for(var t=n;t--;)i[t](e)}}e=e[0]||{};var a=em[t],s=ew(e),o=s.harness&&(s.harness.aliases||{})[t]||t,l=a?function(t){var i=new a;N._pt=0,i.init(e,r?t+r:t,N,0,[e]),i.render(1,i),N._pt&&ro(1,N)}:s.set(e,o);return a?l:function(t){return l(e,o,r?t+r:t,s,1)}},quickTo:function(e,t,r){var i,n=rE.to(e,eL(((i={})[t]="+=0.1",i.paused=!0,i.stagger=0,i),r||{})),a=function(e,r,i){return n.resetTo(t,e,r,i)};return a.tween=n,a},isTweening:function(e){return w.getTweensOf(e,!0).length>0},defaults:function(e){return e&&e.ease&&(e.ease=tM(e.ease,j.ease)),eR(j,e||{})},config:function(e){return eR(A,e||{})},registerEffect:function(e){var t=e.name,r=e.effect,i=e.plugins,n=e.defaults,a=e.extendTimeline;(i||"").split(",").forEach(function(e){return e&&!em[e]&&!ei[e]&&eo(t+" effect requires "+e+" plugin.")}),ey[t]=function(e,t,i){return r(ta(e),eL(t||{},n),i)},a&&(tH.prototype[t]=function(e,r,i){return this.add(ey[t](e,z(r)?r:(i=r)&&{},this),i)})},registerEase:function(e,t){tA[e]=tM(t)},parseEase:function(e,t){return arguments.length?tM(e,t):tA},getById:function(e){return w.getById(e)},exportRoot:function(e,t){void 0===e&&(e={});var r,i,n=new tH(e);for(n.smoothChildTiming=q(e.smoothChildTiming),w.remove(n),n._dp=0,n._time=n._tTime=w._time,r=w._first;r;)i=r._next,(t||!(!r._dur&&r instanceof t7&&r.vars.onComplete===r._targets[0]))&&eJ(n,r,r._start-r._delay),r=i;return eJ(w,n,0),n},context:function(e,t){return e?new rx(e,t):_},matchMedia:function(e){return new r_(e)},matchMediaRefresh:function(){return rh.forEach(function(e){var t,r,i=e.conditions;for(r in i)i[r]&&(i[r]=!1,t=1);t&&e.revert()})||rv()},addEventListener:function(e,t){var r=rf[e]||(rf[e]=[]);~r.indexOf(t)||r.push(t)},removeEventListener:function(e,t){var r=rf[e],i=r&&r.indexOf(t);i>=0&&r.splice(i,1)},utils:{wrap:function e(t,r,i){var n=r-t;return G(t)?tp(t,e(0,t.length),r):te(i,function(e){return(n+(e-t)%n)%n+t})},wrapYoyo:function e(t,r,i){var n=r-t,a=2*n;return G(t)?tp(t,e(0,t.length-1),r):te(i,function(e){return e=(a+(e-t)%a)%a||0,t+(e>n?a-e:e)})},distribute:tl,random:td,snap:tu,normalize:function(e,t,r){return tf(e,t,0,1,r)},getUnit:tr,clamp:function(e,t,r){return te(r,function(r){return tt(e,t,r)})},splitColor:tw,toArray:ta,selector:ts,mapRange:tf,pipe:function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(e){return t.reduce(function(e,t){return t(e)},e)}},unitize:function(e,t){return function(r){return e(parseFloat(r))+(t||tr(r))}},interpolate:function e(t,r,i,n){var a=isNaN(t+r)?0:function(e){return(1-e)*t+e*r};if(!a){var s,o,l,c,u,d=B(t),p={};if(!0===i&&(n=1)&&(i=null),d)t={p:t},r={p:r};else if(G(t)&&!G(r)){for(o=1,l=[],u=(c=t.length)-2;o<c;o++)l.push(e(t[o-1],t[o]));c--,a=function(e){var t=Math.min(u,~~(e*=c));return l[t](e-t)},i=r}else n||(t=eD(G(t)?[]:{},t));if(!l){for(s in r)tJ.call(p,t,s,"get",r[s]);a=function(e){return ro(e,p)||(d?t.p:t)}}}return te(i,a)},shuffle:to},install:ea,effects:ey,ticker:tN,updateRoot:tH.updateRoot,plugins:em,globalTimeline:w,core:{PropTween:rp,globals:el,Tween:t7,Timeline:tH,Animation:tq,getCache:ew,_removeLinkedListItem:e$,reverting:function(){return x},context:function(e){return e&&_&&(_.data.push(e),e._ctx=_),_},suppressOverwrites:function(e){return v=e}}};eS("to,from,fromTo,delayedCall,set,killTweensOf",function(e){return rw[e]=t7[e]}),tN.add(tH.updateRoot),N=rw.to({},{duration:0});var rT=function(e,t){for(var r=e._pt;r&&r.p!==t&&r.op!==t&&r.fp!==t;)r=r._next;return r},rS=function(e,t){var r,i,n,a=e._targets;for(r in t)for(i=a.length;i--;)(n=e._ptLookup[i][r])&&(n=n.d)&&(n._pt&&(n=rT(n,r)),n&&n.modifier&&n.modifier(t[r],e,a[i],r))},rC=function(e,t){return{name:e,headless:1,rawVars:1,init:function(e,r,i){i._onInit=function(e){var i,n;if(B(r)&&(i={},eS(r,function(e){return i[e]=1}),r=i),t){for(n in i={},r)i[n]=t(r[n]);r=i}rS(e,r)}}}},rE=rw.registerPlugin({name:"attr",init:function(e,t,r,i,n){var a,s,o;for(a in this.tween=r,t)o=e.getAttribute(a)||"",(s=this.add(e,"setAttribute",(o||0)+"",t[a],i,n,0,0,a)).op=a,s.b=o,this._props.push(a)},render:function(e,t){for(var r=t._pt;r;)x?r.set(r.t,r.p,r.b,r):r.r(e,r.d),r=r._next}},{name:"endArray",headless:1,init:function(e,t){for(var r=t.length;r--;)this.add(e,r,e[r]||0,t[r],0,0,0,0,0,1)}}
132,rC("roundProps",tc),rC("modifiers"),rC("snap",tu))||rw;t7.version=tH.version=rE.version="3.15.0",E=1,H()&&tI(),tA.Power0,tA.Power1,tA.Power2,tA.Power3,tA.Power4,tA.Linear,tA.Quad,tA.Cubic,tA.Quart,tA.Quint,tA.Strong,tA.Elastic,tA.Back,tA.SteppedEase,tA.Bounce,tA.Sine,tA.Expo,tA.Circ;var rk,rN,rI,rA,rj,rP,rO,rL={},rD=180/Math.PI,rR=Math.PI/180,rM=Math.atan2,rB=/([A-Z])/g,rU=/(left|right|width|margin|padding|x)/i,rF=/[\s,\(]\S/,r$={autoAlpha:"opacity,visibility",scale:"scaleX,scaleY",alpha:"opacity"},rz=function(e,t){return t.set(t.t,t.p,Math.round((t.s+t.c*e)*1e4)/1e4+t.u,t)},rq=function(e,t){return t.set(t.t,t.p,1===e?t.e:Math.round((t.s+t.c*e)*1e4)/1e4+t.u,t)},rH=function(e,t){return t.set(t.t,t.p,e?Math.round((t.s+t.c*e)*1e4)/1e4+t.u:t.b,t)},rW=function(e,t){return t.set(t.t,t.p,1===e?t.e:e?Math.round((t.s+t.c*e)*1e4)/1e4+t.u:t.b,t)},rV=function(e,t){var r=t.s+t.c*e;t.set(t.t,t.p,~~(r+(r<0?-.5:.5))+t.u,t)},rG=function(e,t){return t.set(t.t,t.p,e?t.e:t.b,t)},rX=function(e,t){return t.set(t.t,t.p,1!==e?t.b:t.e,t)},rK=function(e,t,r){return e.style[t]=r},rY=function(e,t,r){return e.style.setProperty(t,r)},rQ=function(e,t,r){return e._gsap[t]=r},rJ=function(e,t,r){return e._gsap.scaleX=e._gsap.scaleY=r},rZ=function(e,t,r,i,n){var a=e._gsap;a.scaleX=a.scaleY=r,a.renderTransform(n,a)},r0=function(e,t,r,i,n){var a=e._gsap;a[t]=r,a.renderTransform(n,a)},r1="transform",r2=r1+"Origin",r4=function e(t,r){var i=this,n=this.target,a=n.style,s=n._gsap;if(t in rL&&a){if(this.tfm=this.tfm||{},"transform"===t)return r$.transform.split(",").forEach(function(t){return e.call(i,t,r)});if(~(t=r$[t]||t).indexOf(",")?t.split(",").forEach(function(e){return i.tfm[e]=ip(n,e)}):this.tfm[t]=s.x?s[t]:ip(n,t),t===r2&&(this.tfm.zOrigin=s.zOrigin),this.props.indexOf(r1)>=0)return;s.svg&&(this.svgo=n.getAttribute("data-svg-origin"),this.props.push(r2,r,"")),t=r1}(a||r)&&this.props.push(t,r,a[t])},r5=function(e){e.translate&&(e.removeProperty("translate"),e.removeProperty("scale"),e.removeProperty("rotate"))},r3=function(){var e,t,r=this.props,i=this.target,n=i.style,a=i._gsap;for(e=0;e<r.length;e+=3)r[e+1]?2===r[e+1]?i[r[e]](r[e+2]):i[r[e]]=r[e+2]:r[e+2]?n[r[e]]=r[e+2]:n.removeProperty("--"===r[e].substr(0,2)?r[e]:r[e].replace(rB,"-$1").toLowerCase());if(this.tfm){for(t in this.tfm)a[t]=this.tfm[t];a.svg&&(a.renderTransform(),i.setAttribute("data-svg-origin",this.svgo||"")),(e=rP())&&e.isStart||n[r1]||(r5(n),a.zOrigin&&n[r2]&&(n[r2]+=" "+a.zOrigin+"px",a.zOrigin=0,a.renderTransform()),a.uncache=1)}},r8=function(e,t){var r={target:e,props:[],revert:r3,save:r4};return e._gsap||rE.core.getCache(e),t&&e.style&&e.nodeType&&t.split(",").forEach(function(e){return r.save(e)}),r},r6=function(e,t){var r=rk.createElementNS?rk.createElementNS((t||"http://www.w3.org/1999/xhtml").replace(/^https/,"http"),e):rk.createElement(e);return r&&r.style?r:rk.createElement(e)},r7=function e(t,r,i){var n=getComputedStyle(t);return n[r]||n.getPropertyValue(r.replace(rB,"-$1").toLowerCase())||n.getPropertyValue(r)||!i&&e(t,ie(r)||r,1)||""},r9="O,Moz,ms,Ms,Webkit".split(","),ie=function(e,t,r){var i=(t||rA).style,n=5;if(e in i&&!r)return e;for(e=e.charAt(0).toUpperCase()+e.substr(1);n--&&!(r9[n]+e in i););return n<0?null:(3===n?"ms":n>=0?r9[n]:"")+e},it=function(){"u">typeof window&&window.document&&(rN=(rk=window.document).documentElement,rA=r6("div")||{style:{}},r6("div"),r2=(r1=ie(r1))+"Origin",rA.style.cssText="border-width:0;line-height:0;position:absolute;padding:0",rO=!!ie("perspective"),rP=rE.core.reverting,rI=1)},ir=function(e){var t,r=e.ownerSVGElement,i=r6("svg",r&&r.getAttribute("xmlns")||"http://www.w3.org/2000/svg"),n=e.cloneNode(!0);n.style.display="block",i.appendChild(n),rN.appendChild(i);try{t=n.getBBox()}catch(e){}return i.removeChild(n),rN.removeChild(i),t},ii=function(e,t){for(var r=t.length;r--;)if(e.hasAttribute(t[r]))return e.getAttribute(t[r])},ia=function(e){var t,r;try{t=e.getBBox()}catch(i){t=ir(e),r=1}return t&&(t.width||t.height)||r||(t=ir(e)),!t||t.width||t.x||t.y?t:{x:+ii(e,["x","cx","x1"])||0,y:+ii(e,["y","cy","y1"])||0,width:0,height:0}},is=function(e){return!!(e.getCTM&&(!e.parentNode||e.ownerSVGElement)&&ia(e))},io=function(e,t){if(t){var r,i=e.style;t in rL&&t!==r2&&(t=r1),i.removeProperty?(("ms"===(r=t.substr(0,2))||"webkit"===t.substr(0,6))&&(t="-"+t),i.removeProperty("--"===r?t:t.replace(rB,"-$1").toLowerCase())):i.removeAttribute(t)}},il=function(e,t,r,i,n,a){var s=new rp(e._pt,t,r,0,1,a?rX:rG);return e._pt=s,s.b=i,s.e=n,e._props.push(r),s},ic={deg:1,rad:1,turn:1},iu={grid:1,flex:1},id=function e(t,r,i,n){var a,s,o,l,c=parseFloat(i)||0,u=(i+"").trim().substr((c+"").length)||"px",d=rA.style,p=rU.test(r),h="svg"===t.tagName.toLowerCase(),f=(h?"client":"offset")+(p?"Width":"Height"),g="px"===n,m="%"===n;if(n===u||!c||ic[n]||ic[u])return c;if("px"===u||g||(c=e(t,r,i,"px")),l=t.getCTM&&is(t),(m||"%"===u)&&(rL[r]||~r.indexOf("adius")))return a=l?t.getBBox()[p?"width":"height"]:t[f],eC(m?c/a*100:c/100*a);if(d[p?"width":"height"]=100+(g?u:n),s="rem"!==n&&~r.indexOf("adius")||"em"===n&&t.appendChild&&!h?t:t.parentNode,l&&(s=(t.ownerSVGElement||{}).parentNode),s&&s!==rk&&s.appendChild||(s=rk.body),(o=s._gsap)&&m&&o.width&&p&&o.time===tN.time&&!o.uncache)return eC(c/o.width*100);if(m&&("height"===r||"width"===r)){var y=t.style[r];t.style[r]=100+n,a=t[f],y?t.style[r]=y:io(t,r)}
132else(m||"%"===u)&&!iu[r7(s,"display")]&&(d.position=r7(t,"position")),s===t&&(d.position="static"),s.appendChild(rA),a=rA[f],s.removeChild(rA),d.position="absolute";return p&&m&&((o=ew(s)).time=tN.time,o.width=s[f]),eC(g?a*c/100:a&&c?100/a*c:0)},ip=function(e,t,r,i){var n;return rI||it(),t in r$&&"transform"!==t&&~(t=r$[t]).indexOf(",")&&(t=t.split(",")[0]),rL[t]&&"transform"!==t?(n=iC(e,i),n="transformOrigin"!==t?n[t]:n.svg?n.origin:iE(r7(e,r2))+" "+n.zOrigin+"px"):(!(n=e.style[t])||"auto"===n||i||~(n+"").indexOf("calc("))&&(n=ib[t]&&ib[t](e,t,r)||r7(e,t)||eT(e,t)||+("opacity"===t)),r&&!~(n+"").trim().indexOf(" ")?id(e,t,n,r)+r:n},ih=function(e,t,r,i){if(!r||"none"===r){var n=ie(t,e,1),a=n&&r7(e,n,1);a&&a!==r?(t=n,r=a):"borderColor"===t&&(r=r7(e,"borderTopColor"))}var s,o,l,c,u,d,p,h,f,g,m,y=new rp(this._pt,e.style,t,0,1,rs),b=0,v=0;if(y.b=r,y.e=i,r+="","var(--"===(i+="").substring(0,6)&&(i=r7(e,i.substring(4,i.indexOf(")")))),"auto"===i&&(d=e.style[t],e.style[t]=i,i=r7(e,t)||i,d?e.style[t]=d:io(e,t)),tk(s=[r,i]),r=s[0],i=s[1],l=r.match(J)||[],(i.match(J)||[]).length){for(;o=J.exec(i);)p=o[0],f=i.substring(b,o.index),u?u=(u+1)%5:("rgba("===f.substr(-5)||"hsla("===f.substr(-5))&&(u=1),p!==(d=l[v++]||"")&&(c=parseFloat(d)||0,m=d.substr((c+"").length),"="===p.charAt(1)&&(p=ek(c,p)+m),h=parseFloat(p),g=p.substr((h+"").length),b=J.lastIndex-g.length,g||(g=g||A.units[t]||m,b===i.length&&(i+=g,y.e+=g)),m!==g&&(c=id(e,t,d,g)||0),y._pt={_next:y._pt,p:f||1===v?f:",",s:c,c:h-c,m:u&&u<4||"zIndex"===t?Math.round:0});y.c=b<i.length?i.substring(b,i.length):""}else y.r="display"===t&&"none"===i?rX:rG;return ee.test(i)&&(y.e=0),this._pt=y,y},ig={top:"0%",bottom:"100%",left:"0%",right:"100%",center:"50%"},im=function(e){var t=e.split(" "),r=t[0],i=t[1]||"50%";return("top"===r||"bottom"===r||"left"===i||"right"===i)&&(e=r,r=i,i=e),t[0]=ig[r]||r,t[1]=ig[i]||i,t.join(" ")},iy=function(e,t){if(t.tween&&t.tween._time===t.tween._dur){var r,i,n,a=t.t,s=a.style,o=t.u,l=a._gsap;if("all"===o||!0===o)s.cssText="",i=1;else for(n=(o=o.split(",")).length;--n>-1;)rL[r=o[n]]&&(i=1,r="transformOrigin"===r?r2:r1),io(a,r);i&&(io(a,r1),l&&(l.svg&&a.removeAttribute("transform"),s.scale=s.rotate=s.translate="none",iC(a,1),l.uncache=1,r5(s)))}},ib={clearProps:function(e,t,r,i,n){if("isFromStart"!==n.data){var a=e._pt=new rp(e._pt,t,r,0,0,iy);return a.u=i,a.pr=-10,a.tween=n,e._props.push(r),1}}},iv=[1,0,0,1,0,0],ix={},i_=function(e){return"matrix(1, 0, 0, 1, 0, 0)"===e||"none"===e||!e},iw=function(e){var t=r7(e,r1);return i_(t)?iv:t.substr(7).match(Q).map(eC)},iT=function(e,t){var r,i,n,a,s=e._gsap||ew(e),o=e.style,l=iw(e);return s.svg&&e.getAttribute("transform")?"1,0,0,1,0,0"===(l=[(n=e.transform.baseVal.consolidate().matrix).a,n.b,n.c,n.d,n.e,n.f]).join(",")?iv:l:(l!==iv||e.offsetParent||e===rN||s.svg||(n=o.display,o.display="block",(r=e.parentNode)&&(e.offsetParent||e.getBoundingClientRect().width)||(a=1,i=e.nextElementSibling,rN.appendChild(e)),l=iw(e),n?o.display=n:io(e,"display"),a&&(i?r.insertBefore(e,i):r?r.appendChild(e):rN.removeChild(e))),t&&l.length>6?[l[0],l[1],l[4],l[5],l[12],l[13]]:l)},iS=function(e,t,r,i,n,a){var s,o,l,c,u=e._gsap,d=n||iT(e,!0),p=u.xOrigin||0,h=u.yOrigin||0,f=u.xOffset||0,g=u.yOffset||0,m=d[0],y=d[1],b=d[2],v=d[3],x=d[4],_=d[5],w=t.split(" "),T=parseFloat(w[0])||0,S=parseFloat(w[1])||0;r?d!==iv&&(o=m*v-y*b)&&(l=v/o*T+-b/o*S+(b*_-v*x)/o,c=-y/o*T+m/o*S-(m*_-y*x)/o,T=l,S=c):(T=(s=ia(e)).x+(~w[0].indexOf("%")?T/100*s.width:T),S=s.y+(~(w[1]||w[0]).indexOf("%")?S/100*s.height:S)),i||!1!==i&&u.smooth?(u.xOffset=f+((x=T-p)*m+(_=S-h)*b)-x,u.yOffset=g+(x*y+_*v)-_):u.xOffset=u.yOffset=0,u.xOrigin=T,u.yOrigin=S,u.smooth=!!i,u.origin=t,u.originIsAbsolute=!!r,e.style[r2]="0px 0px",a&&(il(a,u,"xOrigin",p,T),il(a,u,"yOrigin",h,S),il(a,u,"xOffset",f,u.xOffset),il(a,u,"yOffset",g,u.yOffset)),e.setAttribute("data-svg-origin",T+" "+S)},iC=function(e,t){var r=e._gsap||new tz(e);if("x"in r&&!t&&!r.uncache)return r;var i,n,a,s,o,l,c,u,d,p,h,f,g,m,y,b,v,x,_,w,T,S,C,E,k,N,I,j,P,O,L,D,R=e.style,M=r.scaleX<0,B=getComputedStyle(e),U=r7(e,r2)||"0";
132return i=n=a=l=c=u=d=p=h=0,s=o=1,r.svg=!!(e.getCTM&&is(e)),B.translate&&(("none"!==B.translate||"none"!==B.scale||"none"!==B.rotate)&&(R[r1]=("none"!==B.translate?"translate3d("+(B.translate+" 0 0").split(" ").slice(0,3).join(", ")+") ":"")+("none"!==B.rotate?"rotate("+B.rotate+") ":"")+("none"!==B.scale?"scale("+B.scale.split(" ").join(",")+") ":"")+("none"!==B[r1]?B[r1]:"")),R.scale=R.rotate=R.translate="none"),m=iT(e,r.svg),r.svg&&(r.uncache?(k=e.getBBox(),U=r.xOrigin-k.x+"px "+(r.yOrigin-k.y)+"px",E=""):E=!t&&e.getAttribute("data-svg-origin"),iS(e,E||U,!!E||r.originIsAbsolute,!1!==r.smooth,m)),f=r.xOrigin||0,g=r.yOrigin||0,m!==iv&&(x=m[0],_=m[1],w=m[2],T=m[3],i=S=m[4],n=C=m[5],6===m.length?(s=Math.sqrt(x*x+_*_),o=Math.sqrt(T*T+w*w),l=x||_?rM(_,x)*rD:0,(d=w||T?rM(w,T)*rD+l:0)&&(o*=Math.abs(Math.cos(d*rR))),r.svg&&(i-=f-(f*x+g*w),n-=g-(f*_+g*T))):(D=m[6],O=m[7],I=m[8],j=m[9],P=m[10],L=m[11],i=m[12],n=m[13],a=m[14],c=(y=rM(D,P))*rD,y&&(E=S*(b=Math.cos(-y))+I*(v=Math.sin(-y)),k=C*b+j*v,N=D*b+P*v,I=-(S*v)+I*b,j=-(C*v)+j*b,P=-(D*v)+P*b,L=-(O*v)+L*b,S=E,C=k,D=N),u=(y=rM(-w,P))*rD,y&&(E=x*(b=Math.cos(-y))-I*(v=Math.sin(-y)),k=_*b-j*v,N=w*b-P*v,L=T*v+L*b,x=E,_=k,w=N),l=(y=rM(_,x))*rD,y&&(E=x*(b=Math.cos(y))+_*(v=Math.sin(y)),k=S*b+C*v,_=_*b-x*v,C=C*b-S*v,x=E,S=k),c&&Math.abs(c)+Math.abs(l)>359.9&&(c=l=0,u=180-u),s=eC(Math.sqrt(x*x+_*_+w*w)),o=eC(Math.sqrt(C*C+D*D)),d=Math.abs(y=rM(S,C))>2e-4?y*rD:0,h=L?1/(L<0?-L:L):0),r.svg&&(E=e.getAttribute("transform"),r.forceCSS=e.setAttribute("transform","")||!i_(r7(e,r1)),E&&e.setAttribute("transform",E))),Math.abs(d)>90&&270>Math.abs(d)&&(M?(s*=-1,d+=l<=0?180:-180,l+=l<=0?180:-180):(o*=-1,d+=d<=0?180:-180)),t=t||r.uncache,r.x=i-((r.xPercent=i&&(!t&&r.xPercent||(Math.round(e.offsetWidth/2)===Math.round(-i)?-50:0)))?e.offsetWidth*r.xPercent/100:0)+"px",r.y=n-((r.yPercent=n&&(!t&&r.yPercent||(Math.round(e.offsetHeight/2)===Math.round(-n)?-50:0)))?e.offsetHeight*r.yPercent/100:0)+"px",r.z=a+"px",r.scaleX=eC(s),r.scaleY=eC(o),r.rotation=eC(l)+"deg",r.rotationX=eC(c)+"deg",r.rotationY=eC(u)+"deg",r.skewX=d+"deg",r.skewY=p+"deg",r.transformPerspective=h+"px",(r.zOrigin=parseFloat(U.split(" ")[2])||!t&&r.zOrigin||0)&&(R[r2]=iE(U)),r.xOffset=r.yOffset=0,r.force3D=A.force3D,r.renderTransform=r.svg?ij:rO?iA:iN,r.uncache=0,r},iE=function(e){return(e=e.split(" "))[0]+" "+e[1]},ik=function(e,t,r){var i=tr(t);return eC(parseFloat(t)+parseFloat(id(e,"x",r+"px",i)))+i},iN=function(e,t){t.z="0px",t.rotationY=t.rotationX="0deg",t.force3D=0,iA(e,t)},iI="0deg",iA=function(e,t){var r=t||this,i=r.xPercent,n=r.yPercent,a=r.x,s=r.y,o=r.z,l=r.rotation,c=r.rotationY,u=r.rotationX,d=r.skewX,p=r.skewY,h=r.scaleX,f=r.scaleY,g=r.transformPerspective,m=r.force3D,y=r.target,b=r.zOrigin,v="",x="auto"===m&&e&&1!==e||!0===m;if(b&&(u!==iI||c!==iI)){var _,w=parseFloat(c)*rR,T=Math.sin(w),S=Math.cos(w);a=ik(y,a,-(T*(_=Math.cos(w=parseFloat(u)*rR))*b)),s=ik(y,s,-(-Math.sin(w)*b)),o=ik(y,o,-(S*_*b)+b)}"0px"!==g&&(v+="perspective("+g+") "),(i||n)&&(v+="translate("+i+"%, "+n+"%) "),(x||"0px"!==a||"0px"!==s||"0px"!==o)&&(v+="0px"!==o||x?"translate3d("+a+", "+s+", "+o+") ":"translate("+a+", "+s+") "),l!==iI&&(v+="rotate("+l+") "),c!==iI&&(v+="rotateY("+c+") "),u!==iI&&(v+="rotateX("+u+") "),(d!==iI||p!==iI)&&(v+="skew("+d+", "+p+") "),(1!==h||1!==f)&&(v+="scale("+h+", "+f+") "),y.style[r1]=v||"translate(0, 0)"},ij=function(e,t){var r,i,n,a,s,o=t||this,l=o.xPercent,c=o.yPercent,u=o.x,d=o.y,p=o.rotation,h=o.skewX,f=o.skewY,g=o.scaleX,m=o.scaleY,y=o.target,b=o.xOrigin,v=o.yOrigin,x=o.xOffset,_=o.yOffset,w=o.forceCSS,T=parseFloat(u),S=parseFloat(d);p=parseFloat(p),h=parseFloat(h),(f=parseFloat(f))&&(h+=f=parseFloat(f),p+=f),p||h?(p*=rR,h*=rR,r=Math.cos(p)*g,i=Math.sin(p)*g,n=-(Math.sin(p-h)*m),a=Math.cos(p-h)*m,h&&(f*=rR,n*=s=Math.sqrt(1+(s=Math.tan(h-f))*s),a*=s,f&&(r*=s=Math.sqrt(1+(s=Math.tan(f))*s),i*=s)),r=eC(r),i=eC(i),n=eC(n),a=eC(a)):(r=g,a=m,i=n=0),(T&&!~(u+"").indexOf("px")||S&&!~(d+"").indexOf("px"))&&(T=id(y,"x",u,"px"),S=id(y,"y",d,"px")),(b||v||x||_)&&(T=eC(T+b-(b*r+v*n)+x),S=eC(S+v-(b*i+v*a)+_)),(l||c)&&(T=eC(T+l/100*(s=y.getBBox()).width),S=eC(S+c/100*s.height)),s="matrix("+r+","+i+","+n+","+a+","+T+","+S+")",y.setAttribute("transform",s),w&&(y.style[r1]=s)},iP=function(e,t,r,i,n){var a,s,o=B(n),l=parseFloat(n)*(o&&~n.indexOf("rad")?rD:1)-i,c=i+l+"deg";return o&&("short"===(a=n.split("_")[1])&&(l%=360)!=l%180&&(l+=l<0?360:-360),"cw"===a&&l<0?l=(l+36e9)%360-360*~~(l/360):"ccw"===a&&l>0&&(l=(l-36e9)%360-360*~~(l/360))),e._pt=s=new rp(e._pt,t,r,i,l,rq),s.e=c,s.u="deg",e._props.push(r),s},iO=function(e,t){for(var r in t)e[r]=t[r];return e},iL=function(e,t,r){var i,n,a,s,o,l,c,u=iO({},r._gsap),d=r.style;for(n in u.svg?(a=r.getAttribute("transform"),r.setAttribute("transform",""),d[r1]=t,i=iC(r,1),io(r,r1),r.setAttribute("transform",a)):(a=getComputedStyle(r)[r1],d[r1]=t,i=iC(r,1),d[r1]=a),rL)(a=u[n])!==(s=i[n])&&0>"perspective,force3D,transformOrigin,svgOrigin".indexOf(n)&&(o=tr(a
132)!==(c=tr(s))?id(r,n,a,c):parseFloat(a),l=parseFloat(s),e._pt=new rp(e._pt,i,n,o,l-o,rz),e._pt.u=c||0,e._props.push(n));iO(i,u)};eS("padding,margin,Width,Radius",function(e,t){var r="Right",i="Bottom",n="Left",a=(t<3?["Top",r,i,n]:["Top"+n,"Top"+r,i+r,i+n]).map(function(r){return t<2?e+r:"border"+r+e});ib[t>1?"border"+e:e]=function(e,t,r,i,n){var s,o;if(arguments.length<4)return 5===(o=(s=a.map(function(t){return ip(e,t,r)})).join(" ")).split(s[0]).length?s[0]:o;s=(i+"").split(" "),o={},a.forEach(function(e,t){return o[e]=s[t]=s[t]||s[(t-1)/2|0]}),e.init(t,o,n)}});var iD={name:"css",register:it,targetTest:function(e){return e.style&&e.nodeType},init:function(e,t,r,i,n){var a,s,o,l,c,u,d,p,h,f,g,m,y,b,v,x,_,w=this._props,T=e.style,S=r.vars.startAt;for(d in rI||it(),this.styles=this.styles||r8(e),x=this.styles.props,this.tween=r,t)if("autoRound"!==d&&(s=t[d],!(em[d]&&t0(d,t,r,i,e,n)))){if(c=typeof s,u=ib[d],"function"===c&&(c=typeof(s=s.call(r,i,e,n))),"string"===c&&~s.indexOf("random(")&&(s=th(s)),u)u(this,e,d,s,r)&&(v=1);else if("--"===d.substr(0,2))a=(getComputedStyle(e).getPropertyValue(d)+"").trim(),s+="",tC.lastIndex=0,!tC.test(a)&&(p=tr(a),(h=tr(s))?p!==h&&(a=id(e,d,a,h)+h):p&&(s+=p)),this.add(T,"setProperty",a,s,i,n,0,0,d),w.push(d),x.push(d,0,T[d]);else if("undefined"!==c){if(S&&d in S?(B(a="function"==typeof S[d]?S[d].call(r,i,e,n):S[d])&&~a.indexOf("random(")&&(a=th(a)),tr(a+"")||"auto"===a||(a+=A.units[d]||tr(ip(e,d))||""),"="===(a+"").charAt(1)&&(a=ip(e,d))):a=ip(e,d),l=parseFloat(a),(f="string"===c&&"="===s.charAt(1)&&s.substr(0,2))&&(s=s.substr(2)),o=parseFloat(s),d in r$&&("autoAlpha"===d&&(1===l&&"hidden"===ip(e,"visibility")&&o&&(l=0),x.push("visibility",0,T.visibility),il(this,T,"visibility",l?"inherit":"hidden",o?"inherit":"hidden",!o)),"scale"!==d&&"transform"!==d&&~(d=r$[d]).indexOf(",")&&(d=d.split(",")[0])),g=d in rL){if(this.styles.save(d),_=s,"string"===c&&"var(--"===s.substring(0,6)){if("calc("===(s=r7(e,s.substring(4,s.indexOf(")")))).substring(0,5)){var C=e.style.perspective;e.style.perspective=s,s=r7(e,"perspective"),C?e.style.perspective=C:io(e,"perspective")}o=parseFloat(s)}if(m||((y=e._gsap).renderTransform&&!t.parseTransform||iC(e,t.parseTransform),b=!1!==t.smoothOrigin&&y.smooth,(m=this._pt=new rp(this._pt,T,r1,0,1,y.renderTransform,y,0,-1)).dep=1),"scale"===d)this._pt=new rp(this._pt,y,"scaleY",y.scaleY,(f?ek(y.scaleY,f+o):o)-y.scaleY||0,rz),this._pt.u=0,w.push("scaleY",d),d+="X";else if("transformOrigin"===d){x.push(r2,0,T[r2]),s=im(s),y.svg?iS(e,s,0,b,0,this):((h=parseFloat(s.split(" ")[2])||0)!==y.zOrigin&&il(this,y,"zOrigin",y.zOrigin,h),il(this,T,d,iE(a),iE(s)));continue}else if("svgOrigin"===d){iS(e,s,1,b,0,this);continue}else if(d in ix){iP(this,y,d,l,f?ek(l,f+s):s);continue}else if("smoothOrigin"===d){il(this,y,"smooth",y.smooth,s);continue}else if("force3D"===d){y[d]=s;continue}else if("transform"===d){iL(this,s,e);continue}}else d in T||(d=ie(d)||d);if(g||(o||0===o)&&(l||0===l)&&!rF.test(s)&&d in T)p=(a+"").substr((l+"").length),o||(o=0),h=tr(s)||(d in A.units?A.units[d]:p
132),p!==h&&(l=id(e,d,a,h)),this._pt=new rp(this._pt,g?y:T,d,l,(f?ek(l,f+o):o)-l,!g&&("px"===h||"zIndex"===d)&&!1!==t.autoRound?rV:rz),this._pt.u=h||0,g&&_!==s?(this._pt.b=a,this._pt.e=_,this._pt.r=rW):p!==h&&"%"!==h&&(this._pt.b=a,this._pt.r=rH);else if(d in T)ih.call(this,e,d,a,f?f+s:s);else if(d in e)this.add(e,d,a||e[d],f?f+s:s,i,n);else if("parseTransform"!==d){es(d,s);continue}g||(d in T?x.push(d,0,T[d]):"function"==typeof e[d]?x.push(d,2,e[d]()):x.push(d,1,a||e[d])),w.push(d)}}v&&rd(this)},render:function(e,t){if(t.tween._time||!rP())for(var r=t._pt;r;)r.r(e,r.d),r=r._next;else t.styles.revert()},get:ip,aliases:r$,getSetter:function(e,t,r){var i=r$[t];return i&&0>i.indexOf(",")&&(t=i),t in rL&&t!==r2&&(e._gsap.x||ip(e,"x"))?r&&rj===r?"scale"===t?rJ:rQ:(rj=r||{},"scale"===t?rZ:r0):e.style&&!$(e.style[t])?rK:~t.indexOf("-")?rY:ri(e,t)},core:{_removeProperty:io,_getMatrix:iT}};rE.utils.checkPrefix=ie,rE.core.getStyleSaver=r8,iB=eS("x,y,z,scale,scaleX,scaleY,xPercent,yPercent,"+(iM="rotation,rotationX,rotationY,skewX,skewY")+",transform,transformOrigin,svgOrigin,force3D,smoothOrigin,transformPerspective",function(e){rL[e]=1}),eS(iM,function(e){A.units[e]="deg",ix[e]=1}),r$[iB[13]]="x,y,z,scale,scaleX,scaleY,xPercent,yPercent,"+iM,eS("0:translateX,1:translateY,2:translateZ,8:rotate,8:rotationZ,8:rotateZ,9:rotateX,10:rotateY",function(e){var t=e.split(":");r$[t[1]]=iB[t[0]]}),eS("x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective",function(e){A.units[e]="px"}),rE.registerPlugin(iD);var iR=rE.registerPlugin(iD)||rE;iR.core.Tween,e.s(["default",0,iR],989970);var iM,iB,iU,iF,i$,iz,iq,iH,iW,iV,iG,iX,iK,iY,iQ,iJ=function(){return iU||"u">typeof window&&(iU=window.gsap)&&iU.registerPlugin&&iU},iZ=1,i0=[],i1=[],i2=[],i4=Date.now,i5=function(e,t){return t},i3=function(){var e=iG.core,t=e.bridge||{},r=e._scrollers,i=e._proxies;r.push.apply(r,i1),i.push.apply(i,i2),i1=r,i2=i,i5=function(e,r){return t[e](r)}},i8=function(e,t){return~i2.indexOf(e)&&i2[i2.indexOf(e)+1][t]},i6=function(e){return!!~iX.indexOf(e)},i7=function(e,t,r,i,n){return e.addEventListener(t,r,{passive:!1!==i,capture:!!n})},i9=function(e,t,r,i){return e.removeEventListener(t,r,!!i)},ne="scrollLeft",nt="scrollTop",nr=function(){return iK&&iK.isPressed||i1.cache++},ni=function(e,t){var r=function r(i){if(i||0===i){iZ&&(i$.history.scrollRestoration="manual");var n=iK&&iK.isPressed;e(i=r.v=Math.round(i)||(iK&&iK.iOS?1:0)),r.cacheID=i1.cache,n&&i5("ss",i)}else(t||i1.cache!==r.cacheID||i5("ref"))&&(r.cacheID=i1.cache,r.v=e());return r.v+r.offset};return r.offset=0,e&&r},nn={s:ne,p:"left",p2:"Left",os:"right",os2:"Right",d:"width",d2:"Width",a:"x",sc:ni(function(e){return arguments.length?i$.scrollTo(e,na.sc()):i$.pageXOffset||iz[ne]||iq[ne]||iH[ne]||0})},na={s:nt,p:"top",p2:"Top",os:"bottom",os2:"Bottom",d:"height",d2:"Height",a:"y",op:nn,sc:ni(function(e){return arguments.length?i$.scrollTo(nn.sc(),e):i$.pageYOffset||iz[nt]||iq[nt]||iH[nt]||0})},ns=function(e,t){return(t&&t._ctx&&t._ctx.selector||iU.utils.toArray)(e)[0]||("string"==typeof e&&!1!==iU.config().nullTargetWarn?console.warn("Element not found:",e):null)},no=function(e,t){for(var r=t.length;r--;)if(t[r]===e||t[r].contains(e))return!0;return!1},nl=function(e,t){var r=t.s,i=t.sc;i6(e)&&(e=iz.scrollingElement||iq);var n=i1.indexOf(e),a=i===na.sc?1:2;~n||(n=i1.push(e)-1),i1[n+a]||i7(e,"scroll",nr);var s=i1[n+a],o=s||(i1[n+a]=ni(i8(e,r),!0)||(i6(e)?i:ni(function(t){return arguments.length?e[r]=t:e[r]})));return o.target=e,s||(o.smooth="smooth"===iU.getProperty(e,"scrollBehavior")),o},nc=function(e,t,r){var i=e,n=e,a=i4(),s=a,o=t||50,l=Math.max(500,3*o),c=function(e,t){var l=i4();t||l-a>o?(n=i,i=e,s=a,a=l):r?i+=e:i=n+(e-n)/(l-s)*(a-s)};return{update:c,reset:function(){n=i=r?0:i,s=a=0},getVelocity:function(e){var t=s,o=n,u=i4();return(e||0===e)&&e!==i&&c(e),a===s||u-s>l?0:(i+(r?o:-o))/((r?u:a)-t)*1e3}}},nu=function(e,t){return t&&!e._gsapAllow&&!1!==e.cancelable&&e.preventDefault(),e.changedTouches?e.changedTouches[0]:e},nd=function(e){var t=Math.max.apply(Math,e),r=Math.min.apply(Math,e);return Math.abs(t)>=Math.abs(r)?t:r},np=function(){(iG=iU.core.globals().ScrollTrigger)&&iG.core&&i3()},nh=function(e){return iU=e||iJ(),!iF&&iU&&"u">typeof document&&document.body&&(i$=window,iq=(iz=document).documentElement,iH=iz.body,iX=[i$,iz,iq,iH],iU.utils.clamp,iQ=iU.core.context||function(){},iV="onpointerenter"in iH?"pointer":"mouse",iW=nf.isTouch=i$.matchMedia&&i$.matchMedia("(hover: none), (pointer: coarse)").matches?1:2*("ontouchstart"in i$||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0),iY=nf.eventTypes=("ontouchstart"in iq?"touchstart,touchmove,touchcancel,touchend":!("onpointerdown"in iq)?"mousedown,mousemove,mouseup,mouseup":"pointerdown,pointermove,pointercancel,pointerup").split(","),setTimeout(function(){return iZ=0},500),iF=1),iG||np(),iF};nn.op=na,i1.cache=0;var nf=function(){var e;function t(e){this.init(e)}return t.prototype.init=function(e){iF||nh(iU)||console.warn("Please gsap.registerPlugin(Observer)"),iG||np();var t=e.tolerance,r=e.dragMinimum,i=e.type,n=e.target,a=e.lineHeight,s=e.debounce,o=e.preventDefault,l=e.onStop,c=e.onStopDelay,u=e.ignore,d=e.wheelSpeed,p=e.event,h=e.onDragStart,f=e.onDragEnd,g=e.onDrag,m=e.onPress,y=e.onRelease,b=e.onRight,v=e.onLeft,x=e.onUp,_=e.onDown,w=e.onCh
132angeX,T=e.onChangeY,S=e.onChange,C=e.onToggleX,E=e.onToggleY,k=e.onHover,N=e.onHoverEnd,I=e.onMove,A=e.ignoreCheck,j=e.isNormalizer,P=e.onGestureStart,O=e.onGestureEnd,L=e.onWheel,D=e.onEnable,R=e.onDisable,M=e.onClick,B=e.scrollSpeed,U=e.capture,F=e.allowClicks,$=e.lockAxis,z=e.onLockAxis;this.target=n=ns(n)||iq,this.vars=e,u&&(u=iU.utils.toArray(u)),t=t||1e-9,r=r||0,d=d||1,B=B||1,i=i||"wheel,touch,pointer",s=!1!==s,a||(a=parseFloat(i$.getComputedStyle(iH).lineHeight)||22);var q,H,W,V,G,X,K,Y=this,Q=0,J=0,Z=e.passive||!o&&!1!==e.passive,ee=nl(n,nn),et=nl(n,na),er=ee(),ei=et(),en=~i.indexOf("touch")&&!~i.indexOf("pointer")&&"pointerdown"===iY[0],ea=i6(n),es=n.ownerDocument||iz,eo=[0,0,0],el=[0,0,0],ec=0,eu=function(){return ec=i4()},ed=function(e,t){return(Y.event=e)&&u&&no(e.target,u)||t&&en&&"touch"!==e.pointerType||A&&A(e,t)},ep=function(){var e=Y.deltaX=nd(eo),r=Y.deltaY=nd(el),i=Math.abs(e)>=t,n=Math.abs(r)>=t;S&&(i||n)&&S(Y,e,r,eo,el),i&&(b&&Y.deltaX>0&&b(Y),v&&Y.deltaX<0&&v(Y),w&&w(Y),C&&Y.deltaX<0!=Q<0&&C(Y),Q=Y.deltaX,eo[0]=eo[1]=eo[2]=0),n&&(_&&Y.deltaY>0&&_(Y),x&&Y.deltaY<0&&x(Y),T&&T(Y),E&&Y.deltaY<0!=J<0&&E(Y),J=Y.deltaY,el[0]=el[1]=el[2]=0),(V||W)&&(I&&I(Y),W&&(h&&1===W&&h(Y),g&&g(Y),W=0),V=!1),X&&(X=!1,1)&&z&&z(Y),G&&(L(Y),G=!1),q=0},eh=function(e,t,r){eo[r]+=e,el[r]+=t,Y._vx.update(e),Y._vy.update(t),s?q||(q=requestAnimationFrame(ep)):ep()},ef=function(e,t){$&&!K&&(Y.axis=K=Math.abs(e)>Math.abs(t)?"x":"y",X=!0),"y"!==K&&(eo[2]+=e,Y._vx.update(e,!0)),"x"!==K&&(el[2]+=t,Y._vy.update(t,!0)),s?q||(q=requestAnimationFrame(ep)):ep()},eg=function(e){if(!ed(e,1)){var t=(e=nu(e,o)).clientX,i=e.clientY,n=t-Y.x,a=i-Y.y,s=Y.isDragging;Y.x=t,Y.y=i,(s||(n||a)&&(Math.abs(Y.startX-t)>=r||Math.abs(Y.startY-i)>=r))&&(W||(W=s?2:1),s||(Y.isDragging=!0),ef(n,a))}},em=Y.onPress=function(e){ed(e,1)||e&&e.button||(Y.axis=K=null,H.pause(),Y.isPressed=!0,e=nu(e),Q=J=0,Y.startX=Y.x=e.clientX,Y.startY=Y.y=e.clientY,Y._vx.reset(),Y._vy.reset(),i7(j?n:es,iY[1],eg,Z,!0),Y.deltaX=Y.deltaY=0,m&&m(Y))},ey=Y.onRelease=function(e){if(!ed(e,1)){i9(j?n:es,iY[1],eg,!0);var t=!isNaN(Y.y-Y.startY),r=Y.isDragging,i=r&&(Math.abs(Y.x-Y.startX)>3||Math.abs(Y.y-Y.startY)>3),a=nu(e);!i&&t&&(Y._vx.reset(),Y._vy.reset(),o&&F&&iU.delayedCall(.08,function(){if(i4()-ec>300&&!e.defaultPrevented){if(e.target.click)e.target.click();else if(es.createEvent){var t=es.createEvent("MouseEvents");t.initMouseEvent("click",!0,!0,i$,1,a.screenX,a.screenY,a.clientX,a.clientY,!1,!1,!1,!1,0,null),e.target.dispatchEvent(t)}}})),Y.isDragging=Y.isGesturing=Y.isPressed=!1,l&&r&&!j&&H.restart(!0),W&&ep(),f&&r&&f(Y),y&&y(Y,i)}},eb=function(e){return e.touches&&e.touches.length>1&&(Y.isGesturing=!0)&&P(e,Y.isDragging)},ev=function(){return Y.isGesturing=!1,O(Y)},ex=function(e){if(!ed(e)){var t=ee(),r=et();eh((t-er)*B,(r-ei)*B,1),er=t,ei=r,l&&H.restart(!0)}},e_=function(e){if(!ed(e)){e=nu(e,o),L&&(G=!0);var t=(1===e.deltaMode?a:2===e.deltaMode?i$.innerHeight:1)*d;eh(e.deltaX*t,e.deltaY*t,0),l&&!j&&H.restart(!0)}},ew=function(e){if(!ed(e)){var t=e.clientX,r=e.clientY,i=t-Y.x,n=r-Y.y;Y.x=t,Y.y=r,V=!0,l&&H.restart(!0),(i||n)&&ef(i,n)}},eT=function(e){Y.event=e,k(Y)},eS=function(e){Y.event=e,N(Y)},eC=function(e){return ed(e)||nu(e,o)&&M(Y)};H=Y._dc=iU.delayedCall(c||.25,function(){Y._vx.reset(),Y._vy.reset(),H.pause(),l&&l(Y)}).pause(),Y.deltaX=Y.deltaY=0,Y._vx=nc(0,50,!0),Y._vy=nc(0,50,!0),Y.scrollX=ee,Y.scrollY=et,Y.isDragging=Y.isGesturing=Y.isPressed=!1,iQ(this),Y.enable=function(e){return!Y.isEnabled&&(i7(ea?es:n,"scroll",nr),i.indexOf("scroll")>=0&&i7(ea?es:n,"scroll",ex,Z,U),i.indexOf("wheel")>=0&&i7(n,"wheel",e_,Z,U),(i.indexOf("touch")>=0&&iW||i.indexOf("pointer")>=0)&&(i7(n,iY[0],em,Z,U),i7(es,iY[2],ey),i7(es,iY[3],ey),F&&i7(n,"click",eu,!0,!0),M&&i7(n,"click",eC),P&&i7(es,"gesturestart",eb),O&&i7(es,"gestureend",ev),k&&i7(n,iV+"enter",eT),N&&i7(n,iV+"leave",eS),I&&i7(n,iV+"move",ew)),Y.isEnabled=!0,Y.isDragging=Y.isGesturing=Y.isPressed=V=W=!1,Y._vx.reset(),Y._vy.reset(),er=ee(),ei=et(),e&&e.type&&em(e),D&&D(Y)),Y},Y.disable=function(){Y.isEnabled&&(i0.filter(function(e){return e!==Y&&i6(e.target)}).length||i9(ea?es:n,"scroll",nr),Y.isPressed&&(Y._vx.reset(),Y._vy.reset(),i9(j?n:es,iY[1],eg,!0)),i9(ea?es:n,"scroll",ex,U),i9(n,"wheel",e_,U),i9(n,iY[0],em,U),i9(es,iY[2],ey),i9(es,iY[3],ey),i9(n,"click",eu,!0),i9(n,"click",eC),i9(es,"gesturestart",eb),i9(es,"gestureend",ev),i9(n,iV+"enter",eT),i9(n,iV+"leave",eS),i9(n,iV+"move",ew),Y.isEnabled=Y.isPressed=Y.isDragging=!1,R&&R(Y))},Y.kill=Y.revert=function(){Y.disable();var e=i0.indexOf(Y);e>=0&&i0.splice(e,1),iK===Y&&(iK=0)},i0.push(Y),j&&i6(n)&&(iK=Y),Y.enable(p)},e=[{key:"velocityX",get:function(){return this._vx.getVelocity()}},{key:"velocityY",get:function(){return this._vy.getVelocity()}}],function(e,t){for(var r=0;r<t.length;r++){var i=t[r];
132i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}(t.prototype,e),t}();nf.version="3.15.0",nf.create=function(e){return new nf(e)},nf.register=nh,nf.getAll=function(){return i0.slice()},nf.getById=function(e){return i0.filter(function(t){return t.vars.id===e})[0]},iJ()&&iU.registerPlugin(nf);var ng,nm,ny,nb,nv,nx,n_,nw,nT,nS,nC,nE,nk,nN,nI,nA,nj,nP,nO,nL,nD,nR,nM,nB,nU,nF,n$,nz,nq,nH,nW,nV,nG,nX,nK,nY,nQ,nJ,nZ=1,n0=Date.now,n1=n0(),n2=0,n4=0,n5=function(e,t,r){var i=al(e)&&("clamp("===e.substr(0,6)||e.indexOf("max")>-1);return r["_"+t+"Clamp"]=i,i?e.substr(6,e.length-7):e},n3=function(e,t){return t&&(!al(e)||"clamp("!==e.substr(0,6))?"clamp("+e+")":e},n8=function(){return nN=1},n6=function(){return nN=0},n7=function(e){return e},n9=function(e){return Math.round(1e5*e)/1e5||0},ae=function(){return"u">typeof window},at=function(){return ng||ae()&&(ng=window.gsap)&&ng.registerPlugin&&ng},ar=function(e){return!!~n_.indexOf(e)},ai=function(e){return("Height"===e?nW:ny["inner"+e])||nv["client"+e]||nx["client"+e]},an=function(e){return i8(e,"getBoundingClientRect")||(ar(e)?function(){return sd.width=ny.innerWidth,sd.height=nW,sd}:function(){return aA(e)})},aa=function(e,t,r){var i=r.d,n=r.d2,a=r.a;return(a=i8(e,"getBoundingClientRect"))?function(){return a()[i]}:function(){return(t?ai(n):e["client"+n])||0}},as=function(e,t){var r=t.s,i=t.d2,n=t.d,a=t.a;return Math.max(0,(a=i8(e,r="scroll"+i))?a()-an(e)()[n]:ar(e)?(nv[r]||nx[r])-ai(i):e[r]-e["offset"+i])},ao=function(e,t){for(var r=0;r<nO.length;r+=3)(!t||~t.indexOf(nO[r+1]))&&e(nO[r],nO[r+1],nO[r+2])},al=function(e){return"string"==typeof e},ac=function(e){return"function"==typeof e},au=function(e){return"number"==typeof e},ad=function(e){return"object"==typeof e},ap=function(e,t,r){return e&&e.progress(+!t)&&r&&e.pause()},ah=function(e,t,r){if(e.enabled){var i=e._ctx?e._ctx.add(function(){return t(e,r)}):t(e,r);i&&i.totalTime&&(e.callbackAnimation=i)}},af=Math.abs,ag="left",am="right",ay="bottom",ab="width",av="height",ax="Right",a_="Left",aw="Bottom",aT="padding",aS="margin",aC="Width",aE="Height",ak=function(e){return ny.getComputedStyle(e.nodeType===Node.DOCUMENT_NODE?e.scrollingElement:e)},aN=function(e){var t=ak(e).position;e.style.position="absolute"===t||"fixed"===t?t:"relative"},aI=function(e,t){for(var r in t)r in e||(e[r]=t[r]);return e},aA=function(e,t){var r=t&&"matrix(1, 0, 0, 1, 0, 0)"!==ak(e)[nI]&&ng.to(e,{x:0,y:0,xPercent:0,yPercent:0,rotation:0,rotationX:0,rotationY:0,scale:1,skewX:0,skewY:0}).progress(1),i=e.getBoundingClientRect?e.getBoundingClientRect():e.scrollingElement.getBoundingClientRect();return r&&r.progress(0).kill(),i},aj=function(e,t){var r=t.d2;return e["offset"+r]||e["client"+r]||0},aP=function(e){var t,r=[],i=e.labels,n=e.duration();for(t in i)r.push(i[t]/n);return r},aO=function(e){var t=ng.utils.snap(e),r=Array.isArray(e)&&e.slice(0).sort(function(e,t){return e-t});return r?function(e,i,n){var a;if(void 0===n&&(n=.001),!i)return t(e);if(i>0){for(e-=n,a=0;a<r.length;a++)if(r[a]>=e)return r[a];return r[a-1]}for(a=r.length,e+=n;a--;)if(r[a]<=e)return r[a];return r[0]}:function(r,i,n){void 0===n&&(n=.001);var a=t(r);return!i||Math.abs(a-r)<n||a-r<0==i<0?a:t(i<0?r-e:r+e)}},aL=function(e,t,r,i){return r.split(",").forEach(function(r){return e(t,r,i)})},aD=function(e,t,r,i,n){return e.addEventListener(t,r,{passive:!i,capture:!!n})},aR=function(e,t,r,i){return e.removeEventListener(t,r,!!i)},aM=function(e,t,r){(r=r&&r.wheelHandler)&&(e(t,"wheel",r),e(t,"touchmove",r))},aB={startColor:"green",endColor:"red",indent:0,fontSize:"16px",fontWeight:"normal"},aU={toggleActions:"play",anticipatePin:0},aF={top:0,left:0,center:.5,bottom:1,right:1},a$=function(e,t){if(al(e)){var r=e.indexOf("="),i=~r?(e.charAt(r-1)+1)*parseFloat(e.substr(r+1)):0;~r&&(e.indexOf("%")>r&&(i*=t/100),e=e.substr(0,r-1)),e=i+(e in aF?aF[e]*t:~e.indexOf("%")?parseFloat(e)*t/100:parseFloat(e)||0)}return e},az=function(e,t,r,i,n,a,s,o){var l=n.startColor,c=n.endColor,u=n.fontSize,d=n.indent,p=n.fontWeight,h=nb.createElement("div"),f=ar(r)||"fixed"===i8(r,"pinType"),g=-1!==e.indexOf("scroller"),m=f?nx:"IFRAME"===r.tagName?r.contentDocument.body:r,y=-1!==e.indexOf("start"),b=y?l:c,v="border-color:"+b+";font-size:"+u+";color:"+b+";font-weight:"+p+";pointer-events:none;white-space:nowrap;font-family:sans-serif,Arial;z-index:1000;padding:4px 8px;border-width:0;border-style:solid;";return v+="position:"+((g||o)&&f?"fixed;":"absolute;"),(g||o||!f)&&(v+=(i===na?am:ay)+":"+(a+parseFloat(d))+"px;"),s&&(v+="box-sizing:border-box;text-align:left;width:"+s.offsetWidth+"px;"),h._isStart=y,h.setAttribute("class","gsap-marker-"+e+(t?" marker-"+t:"")),h.style.cssText=v,h.innerText=t||0===t?e+"-"+t:e,m.children[0]?m.insertBefore(h,m.children[0]):m.appendChild(h),h._offset=h["offset"+i.op.d2],aq(h,0,i,y),h},aq=function(e,t,r,i){var n={display:"block"},a=r[i?"os2":"p2"],s=r[i?"p2":"os2"];e._isFlipped=i,n[r.a+"Percent"]=i?-100:0,n[r.a]=i?"1px":0,n["border"+a+aC]=1,n["border"+s+aC]=0,n[r.p]=t+"px",ng.set(e,n)},aH=[],aW={},aV=function(){return n0()-n2>34&&(nK||(nK=requestAnimationFrame(sr)))},aG=function(){nM&&nM.isPressed&&!(nM.startX>nx.clientWidth)||(i1.cache++,nM?nK||(nK=requestAnimationFrame(sr)):sr(),n2||aZ("scrollStart"),n2=n0())},aX=function(){nF=ny.innerWidth,nU=ny.innerHeight},aK=function(e){i1.cache++,(!0===e||!nk&&!nR&&!nb.fullscreenElement&&!nb.webkitFullscreenElement&&(!nB||nF!==ny.innerWidth||Math.abs(ny.innerHeight-nU)>.25*ny.innerHeight))&&nw.restart(!0)},aY={},aQ=[],aJ=function e(){return aR(sb,"scrollEnd",e)||a9(!0)},aZ=function(e){return aY[e]&&aY[e].map(function(e){return e()})||aQ},a0=[],a1=function(e){for(var t=0;t<a0.length;t+=5)(!e||a0[t+4]&&a0[t+4].query===e)&&(a0[t].style.cssText=a0[t+1],a0[t].getBBox&&a0[t].setAttribute("transform",a0[t+2]||""),a0[t+3].uncache=1)},a2=function(){return i1.forEach(function(e){return ac(e)&&++e.cacheID&&(e.rec=e())})},a4=function(e,t){var r;for(nA=0;nA<aH.length;nA++)(r=aH[nA])&&(!t||r._ctx===t)&&(e?r.kill(1):r.revert(!0,!0));nV=!0,t&&a1(t),t||aZ("revert")}
132,a5=function(e,t){i1.cache++,(t||!nY)&&i1.forEach(function(e){return ac(e)&&e.cacheID++&&(e.rec=0)}),al(e)&&(ny.history.scrollRestoration=nq=e)},a3=0,a8=function(){if(nQ!==a3){var e=nQ=a3;requestAnimationFrame(function(){return e===a3&&a9(!0)})}},a6=function(){nx.appendChild(nH),nW=!nM&&nH.offsetHeight||ny.innerHeight,nx.removeChild(nH)},a7=function(e){return nT(".gsap-marker-start, .gsap-marker-end, .gsap-marker-scroller-start, .gsap-marker-scroller-end").forEach(function(t){return t.style.display=e?"none":"block"})},a9=function(e,t){if(nv=nb.documentElement,nx=nb.body,n_=[ny,nb,nv,nx],n2&&!e&&!nV)return void aD(sb,"scrollEnd",aJ);a6(),nY=sb.isRefreshing=!0,nV||a2();var r=aZ("refreshInit");nL&&sb.sort(),t||a4(),i1.forEach(function(e){ac(e)&&(e.smooth&&(e.target.style.scrollBehavior="auto"),e(0))}),aH.slice(0).forEach(function(e){return e.refresh()}),nV=!1,aH.forEach(function(e){if(e._subPinOffset&&e.pin){var t=e.vars.horizontal?"offsetWidth":"offsetHeight",r=e.pin[t];e.revert(!0,1),e.adjustPinSpacing(e.pin[t]-r),e.refresh()}}),nG=1,a7(!0),aH.forEach(function(e){var t=as(e.scroller,e._dir),r="max"===e.vars.end||e._endClamp&&e.end>t,i=e._startClamp&&e.start>=t;(r||i)&&e.setPositions(i?t-1:e.start,r?Math.max(i?t:e.start+1,t):e.end,!0)}),a7(!1),nG=0,r.forEach(function(e){return e&&e.render&&e.render(-1)}),i1.forEach(function(e){ac(e)&&(e.smooth&&requestAnimationFrame(function(){return e.target.style.scrollBehavior="smooth"}),e.rec&&e(e.rec))}),a5(nq,1),nw.pause(),a3++,nY=2,sr(2),aH.forEach(function(e){return ac(e.vars.onRefresh)&&e.vars.onRefresh(e)}),nY=sb.isRefreshing=!1,aZ("refresh")},se=0,st=1,sr=function(e){if(2===e||!nY&&!nV){sb.isUpdating=!0,nJ&&nJ.update(0);var t=aH.length,r=n0(),i=r-n1>=50,n=t&&aH[0].scroll();if(st=se>n?-1:1,nY||(se=n),i&&(n2&&!nN&&r-n2>200&&(n2=0,aZ("scrollEnd")),nC=n1,n1=r),st<0){for(nA=t;nA-- >0;)aH[nA]&&aH[nA].update(0,i);st=1}else for(nA=0;nA<t;nA++)aH[nA]&&aH[nA].update(0,i);sb.isUpdating=!1}nK=0},si=[ag,"top",ay,am,aS+aw,aS+ax,aS+"Top",aS+a_,"display","flexShrink","float","zIndex","gridColumnStart","gridColumnEnd","gridRowStart","gridRowEnd","gridArea","justifySelf","alignSelf","placeSelf","order"],sn=si.concat([ab,av,"boxSizing","max"+aC,"max"+aE,"position",aS,aT,aT+"Top",aT+ax,aT+aw,aT+a_]),sa=function(e,t,r){sl(r);var i=e._gsap;if(i.spacerIsNative)sl(i.spacerState);else if(e._gsap.swappedIn){var n=t.parentNode;n&&(n.insertBefore(e,t),n.removeChild(t))}e._gsap.swappedIn=!1},ss=function(e,t,r,i){if(!e._gsap.swappedIn){for(var n,a=si.length,s=t.style,o=e.style;a--;)s[n=si[a]]=r[n];s.position="absolute"===r.position?"absolute":"relative","inline"===r.display&&(s.display="inline-block"),o[ay]=o[am]="auto",s.flexBasis=r.flexBasis||"auto",s.overflow="visible",s.boxSizing="border-box",s[ab]=aj(e,nn)+"px",s[av]=aj(e,na)+"px",s[aT]=o[aS]=o.top=o[ag]="0",sl(i),o[ab]=o["max"+aC]=r[ab],o[av]=o["max"+aE]=r[av],o[aT]=r[aT],e.parentNode!==t&&(e.parentNode.insertBefore(t,e),t.appendChild(e)),e._gsap.swappedIn=!0}},so=/([A-Z])/g,sl=function(e){if(e){var t,r,i=e.t.style,n=e.length,a=0;for((e.t._gsap||ng.core.getCache(e.t)).uncache=1;a<n;a+=2)r=e[a+1],t=e[a],r?i[t]=r:i[t]&&i.removeProperty(t.replace(so,"-$1").toLowerCase())}},sc=function(e){for(var t=sn.length,r=e.style,i=[],n=0;n<t;n++)i.push(sn[n],r[sn[n]]);return i.t=e,i},su=function(e,t,r){for(var i,n=[],a=e.length,s=8*!!r;s<a;s+=2)i=e[s],n.push(i,i in t?t[i]:e[s+1]);return n.t=e.t,n},sd={left:0,top:0},sp=function(e,t,r,i,n,a,s,o,l,c,u,d,p,h){ac(e)&&(e=e(o)),al(e)&&"max"===e.substr(0,3)&&(e=d+("="===e.charAt(4)?a$("0"+e.substr(3),r):0));var f,g,m,y=p?p.time():0;if(p&&p.seek(0),isNaN(e)||(e*=1),au(e))p&&(e=ng.utils.mapRange(p.scrollTrigger.start,p.scrollTrigger.end,0,d,e)),s&&aq(s,r,i,!0);else{ac(t)&&(t=t(o));var b,v,x,_,w=(e||"0").split(" ");(b=aA(m=ns(t,o)||nx)||{}).left||b.top||"none"!==ak(m).display||(_=m.style.display,m.style.display="block",b=aA(m),_?m.style.display=_:m.style.removeProperty("display")),v=a$(w[0],b[i.d]),x=a$(w[1]||"0",r),e=b[i.p]-l[i.p]-c+v+n-x,s&&aq(s,x,i,r-x<20||s._isStart&&x>20),r-=r-x}if(h&&(o[h]=e||-.001,e<0&&(e=0)),a){var T=e+r,S=a._isStart;f="scroll"+i.d2,aq(a,T,i,S&&T>20||!S&&(u?Math.max(nx[f],nv[f]):a.parentNode[f])<=T+1),u&&(l=aA(s),u&&(a.style[i.op.p]=l[i.op.p]-i.op.m-a._offset+"px"))}return p&&m&&(f=aA(m),p.seek(d),g=aA(m),p._caScrollDist=f[i.p]-g[i.p],e=e/p._c
132aScrollDist*d),p&&p.seek(y),p?e:Math.round(e)},sh=/(webkit|moz|length|cssText|inset)/i,sf=function(e,t,r,i){if(e.parentNode!==t){var n,a,s=e.style;if(t===nx){for(n in e._stOrig=s.cssText,a=ak(e))+n||sh.test(n)||!a[n]||"string"!=typeof s[n]||"0"===n||(s[n]=a[n]);s.top=r,s.left=i}else s.cssText=e._stOrig;ng.core.getCache(e).uncache=1,t.appendChild(e)}},sg=function(e,t,r){var i=t,n=i;return function(t){var a=Math.round(e());return a!==i&&a!==n&&Math.abs(a-i)>3&&Math.abs(a-n)>3&&(t=a,r&&r()),n=i,i=Math.round(t)}},sm=function(e,t,r){var i={};i[t.p]="+="+r,ng.set(e,i)},sy=function(e,t){var r=nl(e,t),i="_scroll"+t.p2,n=function t(n,a,s,o,l){var c=t.tween,u=a.onComplete,d={};s=s||r();var p=sg(r,s,function(){c.kill(),t.tween=0});return l=o&&l||0,o=o||n-s,c&&c.kill(),a[i]=n,a.inherit=!1,a.modifiers=d,d[i]=function(){return p(s+o*c.ratio+l*c.ratio*c.ratio)},a.onUpdate=function(){i1.cache++,t.tween&&sr()},a.onComplete=function(){t.tween=0,u&&u.call(c)},c=t.tween=ng.to(e,a)};return e[i]=r,r.wheelHandler=function(){return n.tween&&n.tween.kill()&&(n.tween=0)},aD(e,"wheel",r.wheelHandler),sb.isTouch&&aD(e,"touchmove",r.wheelHandler),n},sb=function(){function e(t,r){nm||e.register(ng)||console.warn("Please gsap.registerPlugin(ScrollTrigger)"),nz(this),this.init(t,r)}return e.prototype.init=function(t,r){if(this.progress=this.start=0,this.vars&&this.kill(!0,!0),!n4){this.update=this.refresh=this.kill=n7;return}var i,n,a,s,o,l,c,u,d,p,h,f,g,m,y,b,v,x,_,w,T,S,C,E,k,N,I,A,j,P,O,L,D,R,M,B,U,F,$,z,q,H=t=aI(al(t)||au(t)||t.nodeType?{trigger:t}:t,aU),W=H.onUpdate,V=H.toggleClass,G=H.id,X=H.onToggle,K=H.onRefresh,Y=H.scrub,Q=H.trigger,J=H.pin,Z=H.pinSpacing,ee=H.invalidateOnRefresh,et=H.anticipatePin,er=H.onScrubComplete,ei=H.onSnapComplete,en=H.once,ea=H.snap,es=H.pinReparent,eo=H.pinSpacer,el=H.containerAnimation,ec=H.fastScrollEnd,eu=H.preventOverlaps,ed=t.horizontal||t.containerAnimation&&!1!==t.horizontal?nn:na,ep=!Y&&0!==Y,eh=ns(t.scroller||ny),ef=ng.core.getCache(eh),eg=ar(eh),em=("pinType"in t?t.pinType:i8(eh,"pinType")||eg&&"fixed")==="fixed",ey=[t.onEnter,t.onLeave,t.onEnterBack,t.onLeaveBack],eb=ep&&t.toggleActions.split(" "),ev="markers"in t?t.markers:aU.markers,ex=eg?0:parseFloat(ak(eh)["border"+ed.p2+aC])||0,e_=this,ew=t.onRefreshInit&&function(){return t.onRefreshInit(e_)},eT=aa(eh,eg,ed),eS=!eg||~i2.indexOf(eh)?an(eh):function(){return sd},eC=0,eE=0,ek=0,eN=nl(eh,ed);if(e_._startClamp=e_._endClamp=!1,e_._dir=ed,et*=45,e_.scroller=eh,e_.scroll=el?el.time.bind(el):eN,l=eN(),e_.vars=t,r=r||t.animation,"refreshPriority"in t&&(nL=1,-9999===t.refreshPriority&&(nJ=e_)),ef.tweenScroll=ef.tweenScroll||{top:sy(eh,na),left:sy(eh,nn)},e_.tweenTo=a=ef.tweenScroll[ed.p],e_.scrubDuration=function(e){(M=au(e)&&e)?R?R.duration(e):R=ng.to(r,{ease:"expo",totalProgress:"+=0",inherit:!1,duration:M,paused:!0,onComplete:function(){return er&&er(e_)}}):(R&&R.progress(1).kill(),R=0)},r&&(r.vars.lazy=!1,r._initted&&!e_.isReverted||!1!==r.vars.immediateRender&&!1!==t.immediateRender&&r.duration()&&r.render(0,!0,!0),e_.animation=r.pause(),r.scrollTrigger=e_,e_.scrubDuration(Y),L=0,G||(G=r.vars.id)),ea&&((!ad(ea)||ea.push)&&(ea={snapTo:ea}),"scrollBehavior"in nx.style&&ng.set(eg?[nx,nv]:eh,{scrollBehavior:"auto"}),i1.forEach(function(e){return ac(e)&&e.target===(eg?nb.scrollingElement||nv:eh)&&(e.smooth=!1)}),o=ac(ea.snapTo)?ea.snapTo:"labels"===ea.snapTo?(i=r,function(e){return ng.utils.snap(aP(i),e)}):"labelsDirectional"===ea.snapTo?(n=r,function(e,t){return aO(aP(n))(e,t.direction)}):!1!==ea.directional?function(e,t){return aO(ea.snapTo)(e,n0()-eE<500?0:t.direction)}:ng.utils.snap(ea.snapTo),B=ad(B=ea.duration||{min:.1,max:2})?nS(B.min,B.max):nS(B,B),U=ng.delayedCall(ea.delay||M/2||.1,function(){var e=eN(),t=n0()-eE<500,i=a.tween;if((t||10>Math.abs(e_.getVelocity()))&&!i&&!nN&&eC!==e){var n,s,l=(e-u)/b,c=r&&!ep?r.totalProgress():l,p=t?0:(c-D)/(n0()-nC)*1e3||0,h=ng.utils.clamp(-l,1-l,af(p/2)*p/.185),f=l+(!1===ea.inertia?0:h),g=ea,m=g.onStart,y=g.onInterrupt,v=g.onComplete;if(au(n=o(f,e_))||(n=f),s=Math.max(0,Math.round(u+n*b)),e<=d&&e>=u&&s!==e){if(i&&!i._initted&&i.data<=af(s-e))return;!1===ea.inertia&&(h=n-l),a(s,{duration:B(af(.185*Math.max(af(f-c),af(n-c))/p/.05||0)),ease:ea.ease||"power3",data:af(s-e),onInterrupt:function(){return U.restart(!0)&&y&&ah(e_,y)}
132,onComplete:function(){e_.update(),eC=eN(),r&&!ep&&(R?R.resetTo("totalProgress",n,r._tTime/r._tDur):r.progress(n)),L=D=r&&!ep?r.totalProgress():e_.progress,ei&&ei(e_),v&&ah(e_,v)}},e,h*b,s-e-h*b),m&&ah(e_,m,a.tween)}}else e_.isActive&&eC!==e&&U.restart(!0)}).pause()),G&&(aW[G]=e_),(q=(Q=e_.trigger=ns(Q||!0!==J&&J))&&Q._gsap&&Q._gsap.stRevert)&&(q=q(e_)),J=!0===J?Q:ns(J),al(V)&&(V={targets:Q,className:V}),J&&(!1===Z||Z===aS||(Z=(!!Z||!J.parentNode||!J.parentNode.style||"flex"!==ak(J.parentNode).display)&&aT),e_.pin=J,(s=ng.core.getCache(J)).spacer?v=s.pinState:(eo&&((eo=ns(eo))&&!eo.nodeType&&(eo=eo.current||eo.nativeElement),s.spacerIsNative=!!eo,eo&&(s.spacerState=sc(eo))),s.spacer=w=eo||nb.createElement("div"),w.classList.add("pin-spacer"),G&&w.classList.add("pin-spacer-"+G),s.pinState=v=sc(J)),!1!==t.force3D&&ng.set(J,{force3D:!0}),e_.spacer=w=s.spacer,N=(O=ak(J))[Z+ed.os2],S=ng.getProperty(J),C=ng.quickSetter(J,ed.a,"px"),ss(J,w,O),_=sc(J)),ev){m=ad(ev)?aI(ev,aB):aB,f=az("scroller-start",G,eh,ed,m,0),g=az("scroller-end",G,eh,ed,m,0,f),T=f["offset"+ed.op.d2];var eI=ns(i8(eh,"content")||eh);p=this.markerStart=az("start",G,eI,ed,m,T,0,el),h=this.markerEnd=az("end",G,eI,ed,m,T,0,el),el&&(z=ng.quickSetter([p,h],ed.a,"px")),em||i2.length&&!0===i8(eh,"fixedMarkers")||(aN(eg?nx:eh),ng.set([f,g],{force3D:!0}),A=ng.quickSetter(f,ed.a,"px"),P=ng.quickSetter(g,ed.a,"px"))}if(el){var eA=el.vars.onUpdate,ej=el.vars.onUpdateParams;el.eventCallback("onUpdate",function(){e_.update(0,0,1),eA&&eA.apply(el,ej||[])})}if(e_.previous=function(){return aH[aH.indexOf(e_)-1]},e_.next=function(){return aH[aH.indexOf(e_)+1]},e_.revert=function(e,t){if(!t)return e_.kill(!0);var i=!1!==e||!e_.enabled,n=nk;i!==e_.isReverted&&(i&&(F=Math.max(eN(),e_.scroll.rec||0),ek=e_.progress,$=r&&r.progress()),p&&[p,h,f,g].forEach(function(e){return e.style.display=i?"none":"block"}),i&&(nk=e_,e_.update(i)),!J||es&&e_.isActive||(i?sa(J,w,v):ss(J,w,ak(J),I)),i||e_.update(i),nk=n,e_.isReverted=i)},e_.refresh=function(i,n,s,o){if(!nk&&e_.enabled||n){if(J&&i&&n2)return void aD(e,"scrollEnd",aJ);!nY&&ew&&ew(e_),nk=e_,a.tween&&!s&&(a.tween.kill(),a.tween=0),R&&R.pause(),ee&&r&&(r.revert({kill:!1}).invalidate(),r.getChildren?r.getChildren(!0,!0,!1).forEach(function(e){return e.vars.immediateRender&&e.render(0,!0,!0)}):r.vars.immediateRender&&r.render(0,!0,!0)),e_.isReverted||e_.revert(!0,!0),e_._subPinOffset=!1;var m,T,C,N,A,P,O,L,D,M,B,z,q,H=eT(),W=eS(),V=el?el.duration():as(eh,ed),G=b<=.01||!b,X=0,Y=o||0,et=ad(s)?s.end:t.end,er=t.endTrigger||Q,ei=ad(s)?s.start:t.start||(0!==t.start&&Q?J?"0 0":"0 100%":0),en=e_.pinnedContainer=t.pinnedContainer&&ns(t.pinnedContainer,e_),ea=Q&&Math.max(0,aH.indexOf(e_))||0,eo=ea;for(ev&&ad(s)&&(z=ng.getProperty(f,ed.p),q=ng.getProperty(g,ed.p));eo-- >0;)(P=aH[eo]).end||P.refresh(0,1)||(nk=e_),(O=P.pin)&&(O===Q||O===J||O===en)&&!P.isReverted&&(M||(M=[]),M.unshift(P),P.revert(!0,!0)),P!==aH[eo]&&(ea--,eo--);for(ac(ei)&&(ei=ei(e_)),u=sp(ei=n5(ei,"start",e_),Q,H,ed,eN(),p,f,e_,W,ex,em,V,el,e_._startClamp&&"_startClamp")||(J?-.001:0),ac(et)&&(et=et(e_)),al(et)&&!et.indexOf("+=")&&(~et.indexOf(" ")?et=(al(ei)?ei.split(" ")[0]:"")+et:(X=a$(et.substr(2),H),et=al(ei)?ei:(el?ng.utils.mapRange(0,el.duration(),el.scrollTrigger.start,el.scrollTrigger.end,u):u)+X,er=Q)),et=n5(et,"end",e_),d=Math.max(u,sp(et||(er?"100% 0":V),er,H,ed,eN()+X,h,g,e_,W,ex,em,V,el,e_._endClamp&&"_endClamp"))||-.001,X=0,eo=ea;eo--;)(O=(P=aH[eo]||{}).pin)&&P.start-P._pinPush<=u&&!el&&P.end>0&&(m=P.end-(e_._startClamp?Math.max(0,P.start):P.start),(O===Q&&P.start-P._pinPush<u||O===en)&&isNaN(ei)&&(X+=m*(1-P.progress)),O===J&&(Y+=m));if(u+=X,d+=X,e_._startClamp&&(e_._startClamp+=X),e_._endClamp&&!nY&&(e_._endClamp=d||-.001,d=Math.min(d,as(eh,ed))),b=d-u||(u-=.01)&&.001,G&&(ek=ng.utils.clamp(0,1,ng.utils.normalize(u,d,F))),e_._pinPush=Y,p&&X&&((m={})[ed.a]="+="+X,en&&(m[ed.p]="-="+eN()),ng.set([p,h],m)),J&&!(nG&&e_.end>=as(eh,ed)))m=ak(J),N=ed===na,C=eN(),E=parseFloat(S(ed.a))+Y,!V&&d>1&&(B={style:B=(eg?nb.scrollingElement||nv:eh).style,value:B["overflow"+ed.a.toUpperCase()]},eg&&"scroll"!==ak(nx)["overflow"+ed.a.toUpperCase()]&&(B.style["overflow"+ed.a.toUpperCase()]="scroll")),ss(J,w,m),_=sc(J),T=aA(J,!0),L=em&&nl(eh,N?nn:na)(),Z?((I=[Z+ed.os2,b+Y+"px"]).t=w,(eo=Z===aT?aj(J,ed)+b+Y:0)&&(I.push(ed.d,eo+"px"),"auto"!==w.style.flexBasis&&(w.style.flexBasis=eo+"px")),sl(I),en&&aH.forEac
132h(function(e){e.pin===en&&!1!==e.vars.pinSpacing&&(e._subPinOffset=!0)}),em&&eN(F)):(eo=aj(J,ed))&&"auto"!==w.style.flexBasis&&(w.style.flexBasis=eo+"px"),em&&((A={top:T.top+(N?C-u:L)+"px",left:T.left+(N?L:C-u)+"px",boxSizing:"border-box",position:"fixed"})[ab]=A["max"+aC]=Math.ceil(T.width)+"px",A[av]=A["max"+aE]=Math.ceil(T.height)+"px",A[aS]=A[aS+"Top"]=A[aS+ax]=A[aS+aw]=A[aS+a_]="0",A[aT]=m[aT],A[aT+"Top"]=m[aT+"Top"],A[aT+ax]=m[aT+ax],A[aT+aw]=m[aT+aw],A[aT+a_]=m[aT+a_],x=su(v,A,es),nY&&eN(0)),r?(D=r._initted,nD(1),r.render(r.duration(),!0,!0),k=S(ed.a)-E+b+Y,j=Math.abs(b-k)>1,em&&j&&x.splice(x.length-2,2),r.render(0,!0,!0),D||r.invalidate(!0),r.parent||r.totalTime(r.totalTime()),nD(0)):k=b,B&&(B.value?B.style["overflow"+ed.a.toUpperCase()]=B.value:B.style.removeProperty("overflow-"+ed.a));else if(Q&&eN()&&!el)for(T=Q.parentNode;T&&T!==nx;)T._pinOffset&&(u-=T._pinOffset,d-=T._pinOffset),T=T.parentNode;M&&M.forEach(function(e){return e.revert(!1,!0)}),e_.start=u,e_.end=d,l=c=nY?F:eN(),el||nY||(l<F&&eN(F),e_.scroll.rec=0),e_.revert(!1,!0),eE=n0(),U&&(eC=-1,U.restart(!0)),nk=0,r&&ep&&(r._initted||$)&&r.progress()!==$&&r.progress($||0,!0).render(r.time(),!0,!0),(G||ek!==e_.progress||el||ee||r&&!r._initted)&&(r&&!ep&&(r._initted||ek||!1!==r.vars.immediateRender)&&r.totalProgress(el&&u<-.001&&!ek?ng.utils.normalize(u,d,0):ek,!0),e_.progress=G||(l-u)/b===ek?0:ek),J&&Z&&(w._pinOffset=Math.round(e_.progress*k)),R&&R.invalidate(),isNaN(z)||(z-=ng.getProperty(f,ed.p),q-=ng.getProperty(g,ed.p),sm(f,ed,z),sm(p,ed,z-(o||0)),sm(g,ed,q),sm(h,ed,q-(o||0))),G&&!nY&&e_.update(),!K||nY||y||(y=!0,K(e_),y=!1)}},e_.getVelocity=function(){return(eN()-c)/(n0()-nC)*1e3||0},e_.endAnimation=function(){ap(e_.callbackAnimation),r&&(R?R.progress(1):r.paused()?ep||ap(r,e_.direction<0,1):ap(r,r.reversed()))},e_.labelToScroll=function(e){return r&&r.labels&&(u||e_.refresh()||u)+r.labels[e]/r.duration()*b||0},e_.getTrailing=function(e){var t=aH.indexOf(e_),r=e_.direction>0?aH.slice(0,t).reverse():aH.slice(t+1);return(al(e)?r.filter(function(t){return t.vars.preventOverlaps===e}):r).filter(function(e){return e_.direction>0?e.end<=u:e.start>=d})},e_.update=function(e,t,i){if(!el||i||e){var n,s,o,p,h,g,m,y=!0===nY?F:e_.scroll(),v=e?0:(y-u)/b,T=v<0?0:v>1?1:v||0,S=e_.progress;if(t&&(c=l,l=el?eN():y,ea&&(D=L,L=r&&!ep?r.totalProgress():T)),et&&J&&!nk&&!nZ&&n2&&(!T&&u<y+(y-c)/(n0()-nC)*et?T=1e-4:1===T&&d>y+(y-c)/(n0()-nC)*et&&(T=.9999)),T!==S&&e_.enabled){if(p=(h=(n=e_.isActive=!!T&&T<1)!=(!!S&&S<1))||!!T!=!!S,e_.direction=T>S?1:-1,e_.progress=T,p&&!nk&&(s=T&&!S?0:1===T?1:1===S?2:3,ep&&(o=!h&&"none"!==eb[s+1]&&eb[s+1]||eb[s],m=r&&("complete"===o||"reset"===o||o in r))),eu&&(h||m)&&(m||Y||!r)&&(ac(eu)?eu(e_):e_.getTrailing(eu).forEach(function(e){return e.endAnimation()})),!ep&&(!R||nk||nZ?r&&r.totalProgress(T,!!(nk&&(eE||e))):(R._dp._time-R._start!==R._time&&R.render(R._dp._time-R._start),R.resetTo?R.resetTo("totalProgress",T,r._tTime/r._tDur):(R.vars.totalProgress=T,R.invalidate().restart()))),J)if(e&&Z&&(w.style[Z+ed.os2]=N),em){if(p){if(g=!e&&T>S&&d+1>y&&y+1>=as(eh,ed),es)if(!e&&(n||g)){var I=aA(J,!0),O=y-u;sf(J,nx,I.top+(ed===na?O:0)+"px",I.left+(ed===na?0:O)+"px")}else sf(J,w);sl(n||g?x:_),j&&T<1&&n||C(E+(1!==T||g?0:k))}}else C(n9(E+k*T));!ea||a.tween||nk||nZ||U.restart(!0),V&&(h||en&&T&&(T<1||!nX))&&nT(V.targets).forEach(function(e){return e.classList[n||en?"add":"remove"](V.className)}),!W||ep||e||W(e_),p&&!nk?(ep&&(m&&("complete"===o?r.pause().totalProgress(1):"reset"===o?r.restart(!0).pause():"restart"===o?r.restart(!0):r[o]()),W&&W(e_)),(h||!nX)&&(X&&h&&ah(e_,X),ey[s]&&ah(e_,ey[s]),en&&(1===T?e_.kill(!1,1):ey[s]=0),!h&&ey[s=1===T?1:3]&&ah(e_,ey[s])),ec&&!n&&Math.abs(e_.getVelocity())>(au(ec)?ec:2500)&&(ap(e_.callbackAnimation),R?R.progress(1):ap(r,"reverse"===o?1:!T,1))):ep&&W&&!nk&&W(e_)}if(P){var M=el?y/el.duration()*(el._caScrollDist||0):y;A(M+ +!!f._isFlipped),P(M)}z&&z(-y/el.duration()*(el._caScrollDist||0))}},e_.enable=function(t,r){e_.enabled||(e_.enabled=!0,aD(eh,"resize",aK),eg||aD(eh,"scroll",aG),ew&&aD(e,"refreshInit",ew),!1!==t&&(e_.progress=ek=0,l=c=eC=eN()),!1!==r&&e_.refresh())},e_.getTween=function(e){return e&&a?a.tween:R},e_.setPositions=function(e,t,r,i){if(el){var n=el.scrollTrigger,a=el.duration(),s=n.end-n.start;e=n.start+s*e/a,t=n.start+s*t/a}e_.refresh(!1,!1,{start:n3(e,r&&!!e_._startClamp),end:n3(t,r&&!!e_._endClamp)}
132,i),e_.update()},e_.adjustPinSpacing=function(e){if(I&&e){var t=I.indexOf(ed.d)+1;I[t]=parseFloat(I[t])+e+"px",I[1]=parseFloat(I[1])+e+"px",sl(I)}},e_.disable=function(t,r){if(!1!==t&&e_.revert(!0,!0),e_.enabled&&(e_.enabled=e_.isActive=!1,r||R&&R.pause(),F=0,s&&(s.uncache=1),ew&&aR(e,"refreshInit",ew),U&&(U.pause(),a.tween&&a.tween.kill()&&(a.tween=0)),!eg)){for(var i=aH.length;i--;)if(aH[i].scroller===eh&&aH[i]!==e_)return;aR(eh,"resize",aK),eg||aR(eh,"scroll",aG)}},e_.kill=function(e,i){e_.disable(e,i),R&&!i&&R.kill(),G&&delete aW[G];var n=aH.indexOf(e_);n>=0&&aH.splice(n,1),n===nA&&st>0&&nA--,n=0,aH.forEach(function(e){return e.scroller===e_.scroller&&(n=1)}),n||nY||(e_.scroll.rec=0),r&&(r.scrollTrigger=null,e&&r.revert({kill:!1}),i||r.kill()),p&&[p,h,f,g].forEach(function(e){return e.parentNode&&e.parentNode.removeChild(e)}),nJ===e_&&(nJ=0),J&&(s&&(s.uncache=1),n=0,aH.forEach(function(e){return e.pin===J&&n++}),n||(s.spacer=0)),t.onKill&&t.onKill(e_)},aH.push(e_),e_.enable(!1,!1),q&&q(e_),r&&r.add&&!b){var eP=e_.update;e_.update=function(){e_.update=eP,i1.cache++,u||d||e_.refresh()},ng.delayedCall(.01,e_.update),b=.01,u=d=0}else e_.refresh();J&&a8()},e.register=function(t){return nm||(ng=t||at(),ae()&&window.document&&e.enable(),nm=n4),nm},e.defaults=function(e){if(e)for(var t in e)aU[t]=e[t];return aU},e.disable=function(e,t){n4=0,aH.forEach(function(r){return r[t?"kill":"disable"](e)}),aR(ny,"wheel",aG),aR(nb,"scroll",aG),clearInterval(nE),aR(nb,"touchcancel",n7),aR(nx,"touchstart",n7),aL(aR,nb,"pointerdown,touchstart,mousedown",n8),aL(aR,nb,"pointerup,touchend,mouseup",n6),nw.kill(),ao(aR);for(var r=0;r<i1.length;r+=3)aM(aR,i1[r],i1[r+1]),aM(aR,i1[r],i1[r+2])},e.enable=function(){if(ny=window,nv=(nb=document).documentElement,nx=nb.body,ng)if(nT=ng.utils.toArray,nS=ng.utils.clamp,nz=ng.core.context||n7,nD=ng.core.suppressOverwrites||n7,nq=ny.history.scrollRestoration||"auto",se=ny.pageYOffset||0,ng.core.globals("ScrollTrigger",e),nx){n4=1,(nH=document.createElement("div")).style.height="100vh",nH.style.position="absolute",a6(),function e(){return n4&&requestAnimationFrame(e)}(),nf.register(ng),e.isTouch=nf.isTouch,n$=nf.isTouch&&/(iPad|iPhone|iPod|Mac)/g.test(navigator.userAgent),nB=1===nf.isTouch,aD(ny,"wheel",aG),n_=[ny,nb,nv,nx],ng.matchMedia?(e.matchMedia=function(e){var t,r=ng.matchMedia();for(t in e)r.add(t,e[t]);return r},ng.addEventListener("matchMediaInit",function(){a2(),a4()}),ng.addEventListener("matchMediaRevert",function(){return a1()}),ng.addEventListener("matchMedia",function(){a9(0,1),aZ("matchMedia")}),ng.matchMedia().add("(orientation: portrait)",function(){return aX(),aX})):console.warn("Requires GSAP 3.11.0 or later"),aX(),aD(nb,"scroll",aG);var t,r,i=nx.hasAttribute("style"),n=nx.style,a=n.borderTopStyle,s=ng.core.Animation.prototype;for(s.revert||Object.defineProperty(s,"revert",{value:function(){return this.time(-.01,!0)}}),n.borderTopStyle="solid",na.m=Math.round((t=aA(nx)).top+na.sc())||0,nn.m=Math.round(t.left+nn.sc())||0,a?n.borderTopStyle=a:n.removeProperty("border-top-style"),i||(nx.setAttribute("style",""),nx.removeAttribute("style")),nE=setInterval(aV,250),ng.delayedCall(.5,function(){return nZ=0}),aD(nb,"touchcancel",n7),aD(nx,"touchstart",n7),aL(aD,nb,"pointerdown,touchstart,mousedown",n8),aL(aD,nb,"pointerup,touchend,mouseup",n6),nI=ng.utils.checkPrefix("transform"),sn.push(nI),nm=n0(),nw=ng.delayedCall(.2,a9).pause(),nO=[nb,"visibilitychange",function(){var e=ny.innerWidth,t=ny.innerHeight;nb.hidden?(nj=e,nP=t):(nj!==e||nP!==t)&&aK()},nb,"DOMContentLoaded",a9,ny,"load",a9,ny,"resize",aK],ao(aD),aH.forEach(function(e){return e.enable(0,1)}),r=0;r<i1.length;r+=3)aM(aR,i1[r],i1[r+1]),aM(aR,i1[r],i1[r+2])}else nb&&nb.addEventListener("DOMContentLoaded",function t(){e.enable(),nb.removeEventListener("DOMContentLoaded",t)})},e.config=function(t){"limitCallbacks"in t&&(nX=!!t.limitCallbacks);var r=t.syncInterval;r&&clearInterval(nE)||(nE=r)&&setInterval(aV,r),"ignoreMobileResize"in t&&(nB=1===e.isTouch&&t.ignoreMobileResize),"autoRefreshEvents"in t&&(ao(aR)||ao(aD,t.autoRefreshEvents||"none"),nR=-1===(t.autoRefreshEvents+"").indexOf("resize"))},e.scrollerProxy=function(e,t){var r=ns(e),i=i1.indexOf(r),n=ar(r);~i&&i1.splice(i,n?6:2),t&&(n?i2.unshift(ny,t,nx,t,nv,t):i2.unshift(r,t))}
132,e.clearMatchMedia=function(e){aH.forEach(function(t){return t._ctx&&t._ctx.query===e&&t._ctx.kill(!0,!0)})},e.isInViewport=function(e,t,r){var i=(al(e)?ns(e):e).getBoundingClientRect(),n=i[r?ab:av]*t||0;return r?i.right-n>0&&i.left+n<ny.innerWidth:i.bottom-n>0&&i.top+n<ny.innerHeight},e.positionInViewport=function(e,t,r){al(e)&&(e=ns(e));var i=e.getBoundingClientRect(),n=i[r?ab:av],a=null==t?n/2:t in aF?aF[t]*n:~t.indexOf("%")?parseFloat(t)*n/100:parseFloat(t)||0;return r?(i.left+a)/ny.innerWidth:(i.top+a)/ny.innerHeight},e.killAll=function(e){if(aH.slice(0).forEach(function(e){return"ScrollSmoother"!==e.vars.id&&e.kill()}),!0!==e){var t=aY.killAll||[];aY={},t.forEach(function(e){return e()})}},e}();sb.version="3.15.0",sb.saveStyles=function(e){return e?nT(e).forEach(function(e){if(e&&e.style){var t=a0.indexOf(e);t>=0&&a0.splice(t,5),a0.push(e,e.style.cssText,e.getBBox&&e.getAttribute("transform"),ng.core.getCache(e),nz())}}):a0},sb.revert=function(e,t){return a4(!e,t)},sb.create=function(e,t){return new sb(e,t)},sb.refresh=function(e){return e?aK(!0):(nm||sb.register())&&a9(!0)},sb.update=function(e){return++i1.cache&&sr(2*(!0===e))},sb.clearScrollMemory=a5,sb.maxScroll=function(e,t){return as(e,t?nn:na)},sb.getScrollFunc=function(e,t){return nl(ns(e),t?nn:na)},sb.getById=function(e){return aW[e]},sb.getAll=function(){return aH.filter(function(e){return"ScrollSmoother"!==e.vars.id})},sb.isScrolling=function(){return!!n2},sb.snapDirectional=aO,sb.addEventListener=function(e,t){var r=aY[e]||(aY[e]=[]);~r.indexOf(t)||r.push(t)},sb.removeEventListener=function(e,t){var r=aY[e],i=r&&r.indexOf(t);i>=0&&r.splice(i,1)},sb.batch=function(e,t){var r,i=[],n={},a=t.interval||.016,s=t.batchMax||1e9,o=function(e,t){var r=[],i=[],n=ng.delayedCall(a,function(){t(r,i),r=[],i=[]}).pause();return function(e){r.length||n.restart(!0),r.push(e.trigger),i.push(e),s<=r.length&&n.progress(1)}};for(r in t)n[r]="on"===r.substr(0,2)&&ac(t[r])&&"onRefreshInit"!==r?o(r,t[r]):t[r];return ac(s)&&(s=s(),aD(sb,"refresh",function(){return s=t.batchMax()})),nT(e).forEach(function(e){var t={};for(r in n)t[r]=n[r];t.trigger=e,i.push(sb.create(t))}),i};var sv,sx=function(e,t,r,i){return t>i?e(i):t<0&&e(0),r>i?(i-t)/(r-t):r<0?t/(t-r):1},s_=function e(t,r){!0===r?t.style.removeProperty("touch-action"):t.style.touchAction=!0===r?"auto":r?"pan-"+r+(nf.isTouch?" pinch-zoom":""):"none",t===nv&&e(nx,r)},sw={auto:1,scroll:1},sT=function(e){var t,r=e.event,i=e.target,n=e.axis,a=(r.changedTouches?r.changedTouches[0]:r).target,s=a._gsap||ng.core.getCache(a),o=n0();if(!s._isScrollT||o-s._isScrollT>2e3){for(;a&&a!==nx&&(a.scrollHeight<=a.clientHeight&&a.scrollWidth<=a.clientWidth||!(sw[(t=ak(a)).overflowY]||sw[t.overflowX]));)a=a.parentNode;s._isScroll=a&&a!==i&&!ar(a)&&(sw[(t=ak(a)).overflowY]||sw[t.overflowX]),s._isScrollT=o}(s._isScroll||"x"===n)&&(r.stopPropagation(),r._gsapAllow=!0)},sS=function(e,t,r,i){return nf.create({target:e,capture:!0,debounce:!1,lockAxis:!0,type:t,onWheel:i=i&&sT,onPress:i,onDrag:i,onScroll:i,onEnable:function(){return r&&aD(nb,nf.eventTypes[0],sE,!1,!0)},onDisable:function(){return aR(nb,nf.eventTypes[0],sE,!0)}})},sC=/(input|label|select|textarea)/i,sE=function(e){var t=sC.test(e.target.tagName);(t||sv)&&(e._gsapAllow=!0,sv=t)},sk=function(e){ad(e)||(e={}),e.preventDefault=e.isNormalizer=e.allowClicks=!0,e.type||(e.type="wheel,touch"),e.debounce=!!e.debounce,e.id=e.id||"normalizer";var t,r,i,n,a,s,o,l,c=e,u=c.normalizeScrollX,d=c.momentum,p=c.allowNestedScroll,h=c.onRelease,f=ns(e.target)||nv,g=ng.core.globals().ScrollSmoother,m=g&&g.get(),y=n$&&(e.content&&ns(e.content)||m&&!1!==e.content&&!m.smooth()&&m.content()),b=nl(f,na),v=nl(f,nn),x=1,_=(nf.isTouch&&ny.visualViewport?ny.visualViewport.scale*ny.visualViewport.width:ny.outerWidth)/ny.innerWidth,w=0,T=ac(d)?function(){return d(t)}:function(){return d||2.8},S=sS(f,e.type,!0,p),C=function(){return n=!1},E=n7,k=n7,N=function(){r=as(f,na),k=nS(+!!n$,r),u&&(E=nS(0,as(f,nn))),i=a3},I=function(){y._gsap.y=n9(parseFloat(y._gsap.y)+b.offset)+"px",y.style.transform="matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, "+parseFloat(y._gsap.y)+", 0, 1)",b.offset=b.cacheID=0},A=function(){if(n){requestAnimationFrame(C);var e=n9(t.deltaY/2),r=k(b.v-e);if(y&&r!==b.v+b.offset){b.offset=r-b.v;var i=n9((parseFloat(y&&y._gsap.y)||0)-b.offset);y.style.transform="matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, "+i+", 0, 1)",y._gsap.y=i+"px",b.cacheID=i1.cache,sr()}return!0}b.offset&&I(),n=!0},j=function(){N(),a.isActive()&&a.vars.scrollY>r&&(b()>r?a.progress(1)&&b(r):a.resetTo("scrollY",r))};return y&&ng.set(y,{y:"+=0"}),e.ignoreCheck=function(e){return n$&&"touchmove"===e.type&&A(e)||x>1.05&&"touchstart"!==e.type||t.isGesturing||e.touches&&e.touches.length>1},e.onPress=function(){n=!1;var e=x;
132x=n9((ny.visualViewport&&ny.visualViewport.scale||1)/_),a.pause(),e!==x&&s_(f,x>1.01||!u&&"x"),s=v(),o=b(),N(),i=a3},e.onRelease=e.onGestureStart=function(e,t){if(b.offset&&I(),t){i1.cache++;var i,n,s=T();u&&(n=(i=v())+-(.05*s*e.velocityX)/.227,s*=sx(v,i,n,as(f,nn)),a.vars.scrollX=E(n)),n=(i=b())+-(.05*s*e.velocityY)/.227,s*=sx(b,i,n,as(f,na)),a.vars.scrollY=k(n),a.invalidate().duration(s).play(.01),(n$&&a.vars.scrollY>=r||i>=r-1)&&ng.to({},{onUpdate:j,duration:s})}else l.restart(!0);h&&h(e)},e.onWheel=function(){a._ts&&a.pause(),n0()-w>1e3&&(i=0,w=n0())},e.onChange=function(e,t,r,n,a){if(a3!==i&&N(),t&&u&&v(E(n[2]===t?s+(e.startX-e.x):v()+t-n[1])),r){b.offset&&I();var l=a[2]===r,c=l?o+e.startY-e.y:b()+r-a[1],d=k(c);l&&c!==d&&(o+=d-c),b(d)}(r||t)&&sr()},e.onEnable=function(){s_(f,!u&&"x"),sb.addEventListener("refresh",j),aD(ny,"resize",j),b.smooth&&(b.target.style.scrollBehavior="auto",b.smooth=v.smooth=!1),S.enable()},e.onDisable=function(){s_(f,!0),aR(ny,"resize",j),sb.removeEventListener("refresh",j),S.kill()},e.lockAxis=!1!==e.lockAxis,(t=new nf(e)).iOS=n$,n$&&!b()&&b(1),n$&&ng.ticker.add(n7),l=t._dc,a=ng.to(t,{ease:"power4",paused:!0,inherit:!1,scrollX:u?"+=0.1":"+=0",scrollY:"+=0.1",modifiers:{scrollY:sg(b,b(),function(){return a.pause()})},onUpdate:sr,onComplete:l.vars.onComplete}),t};sb.sort=function(e){if(ac(e))return aH.sort(e);var t=ny.pageYOffset||0;return sb.getAll().forEach(function(e){return e._sortY=e.trigger?t+e.trigger.getBoundingClientRect().top:e.start+ny.innerHeight}),aH.sort(e||function(e,t){return -1e6*(e.vars.refreshPriority||0)+(e.vars.containerAnimation?1e6:e._sortY)-((t.vars.containerAnimation?1e6:t._sortY)+-1e6*(t.vars.refreshPriority||0))})},sb.observe=function(e){return new nf(e)},sb.normalizeScroll=function(e){if(void 0===e)return nM;if(!0===e&&nM)return nM.enable();if(!1===e){nM&&nM.kill(),nM=e;return}var t=e instanceof nf?e:sk(e);return nM&&nM.target===t.target&&nM.kill(),ar(t.target)&&(nM=t),t},sb.core={_getVelocityProp:nc,_inputObserver:sS,_scrollers:i1,_proxies:i2,bridge:{ss:function(){n2||aZ("scrollStart"),n2=n0()},ref:function(){return nk}}},at()&&ng.registerPlugin(sb),e.s(["ScrollTrigger",0,sb],883495),iR.registerPlugin(sb);let sN="[data-card-item-reveal]";function sI(){return!!sb.isRefreshing}function sA(e){let t=Array.from(e.querySelectorAll(sN));return e.matches(sN)?[e,...t]:t}e.s(["useCardItemContentReveal",0,function({cardRef:e,contentRef:r,enabled:i,animationKey:n=""}){(0,t.useLayoutEffect)(()=>{let t;if(!i||window.matchMedia("(prefers-reduced-motion: reduce)").matches)return;let n=e.current,a=r.current;if(!n||!a)return;let s=iR.context(()=>{let e=()=>{sI()||(clearTimeout(t),t=setTimeout(()=>{t=void 0,(()=>{let e=sA(a);if(0===e.length)return;iR.killTweensOf(e),iR.set(e,{opacity:0,y:24});let t=iR.timeline({delay:.5});e.forEach((e,r)=>{t.fromTo(e,{opacity:0,y:24},{opacity:1,y:0,duration:.42,ease:"power2.out"},0===r?0:">")})})()},150))},r=()=>{if(sI())return;clearTimeout(t),t=void 0;let e=sA(a);0!==e.length&&(iR.killTweensOf(e),iR.set(e,{opacity:0,y:24}))},i=sA(a);i.length>0&&iR.set(i,{opacity:0,y:24}),sb.create({trigger:n,start:"top 78%",onEnter:e,onEnterBack:e,onLeave:r,onLeaveBack:r,invalidateOnRefresh:!0})},n);return()=>{clearTimeout(t),s.revert()}},[n,i])}],706729)},142996,e=>{"use strict";var t=e.i(843476),r=e.i(271645),i=e.i(211418),n=e.i(84853),a=e.i(38930),s=e.i(296217),o=e.i(474176),l=e.i(340189),c=e.i(207857),u=e.i(136905),d=e.i(133267),p=e.i(455601),h=e.i(828029),f=e.i(202191),g=e.i(506914),m=e.i(522016),y=e.i(706729);let b={visibility:"hidden",position:"absolute",pointerEvents:"none"},v=e=>{let{logo:i,stat:n,statEyebrow:v,cardImage:x,cardLink1:w,description:T,eyebrow:S,heading:C,subHeading:E,descriptionMobileFontSize:k,descriptionDesktopFontSize:N,eyebrowMobileFontSize:I,eyebrowDesktopFontSize:A,headingMobileFontSize:j,headingDesktopFontSize:P,subHeadingMobileFontSize:O,subHeadingDesktopFontSize:L,headingHtmlLevel:D}=e?.fields||{},{RenderingIdentifier:R}=e?.params||{},M=(0,o.parseStyleParams)(e.params,["cta1","cta2"]),B=e?.searchTrackingProps,U=e?.isSearchpart||!1,F=(0,h.default)(),$=(0,r.useRef)(null),z=(0,r.useRef)(null),q=e?.rendering?.uid??"",H=Array.isArray(S)?S:null,[W,V]=(0,r.useState)(H?.length??0),[G,X]=(0,r.useState)(!1),K=(0,r.useRef)(null),Y=(0,r.useRef)(null),Q=(0,r.useCallback)(()=>
132{if(!K.current||!Y.current)return;let e=K.current.offsetWidth;if(0===e)return;let t=.6*e,r=parseFloat(window.getComputedStyle(Y.current).columnGap)||8,i=Array.from(Y.current.querySelectorAll("[data-tag]")),n=0,a=0;for(let e of i){let i=e.offsetWidth,s=0===a?i:i+r;if(n+s<=t)n+=s,a++;else break}V(Math.max(a,1))},[]);(0,r.useLayoutEffect)(()=>{H?.length&&Q()},[H,Q]),(0,r.useEffect)(()=>{if(!K.current||!H?.length)return;let e=K.current,t=new ResizeObserver(Q);return t.observe(e),()=>t.disconnect()},[H,Q]),(0,r.useEffect)(()=>{if(!G)return;let e=e=>{K.current&&!K.current.contains(e.target)&&X(!1)};return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},[G]);let{container:J,header:Z,body:ee,contentWrapper:et,content:er,eyebrow:ei,heading:en,subheading:ea,description:es,footer:eo,cta:el,noImageContainer:ec,noImageIcon:eu,imageWrapper:ed,logoImage:ep,logoWrapper:eh,statLogoWrapper:ef,statWrapper:eg,statText:em,statEyebrowText:ey,linkStretch:eb,eyebrowTagsWrapper:ev,eyebrowBadges:ex,eyebrowBadge:e_,eyebrowMoreWrapper:ew,eyebrowMoreButton:eT,eyebrowPopup:eS}=_({colCount:"3",variant:"customerCard"}),eC=(0,f.getHeadingTag)(D,F,"h3"),eE=(0,f.getTypographyClassName)(es,k,N),ek=(0,f.getTypographyClassName)(ei,I,A),eN=(0,f.getTypographyClassName)(en,j,P),eI=(0,f.getTypographyClassName)(ea,O,L);(0,y.useCardItemContentReveal)({cardRef:$,contentRef:z,enabled:!1,animationKey:q});let eA=H?H.length-W:0;return(0,t.jsx)("article",{ref:$,"data-component":"authorable/shared/lists/carditem",id:R,...(0,u.getTestProps)(`card-item-${e?.rendering?.uid}`),className:"flex-1",children:(0,t.jsxs)("div",{className:J(),ref:z,"data-card-item-reveal":!0,children:[(0,t.jsxs)("div",{ref:z,children:[(0,t.jsx)(m.default,{href:w?.value?.href??"#",target:w?.value?.target,className:eb(),"aria-label":w?.value?.text||w?.value?.title||void 0,onClick:U&&B?B.onClick:void 0}),(0,t.jsxs)("div",{className:Z(),"data-card-item-reveal":!0,children:[x?.value?.src?(0,t.jsx)(a.default,{field:x,className:ed(),fetchPriority:"high",...(0,u.getTestProps)("image")}):(0,t.jsx)("div",{className:ec(),...(0,u.getTestProps)("no-image"),children:(0,t.jsx)(c.default,{icon:"no-image",size:"lg",viewBox:"0 0 240 240",className:eu()})}),(0,t.jsxs)("div",{className:ef(),children:[i?.value?.src&&(0,t.jsx)("div",{className:eh(),children:(0,t.jsx)(a.default,{field:i,className:ep(),fetchPriority:"high",...(0,u.getTestProps)("logo image")})}),(0,t.jsxs)("div",{className:eg(),children:[v&&(0,t.jsx)(g.default,{className:ey(),field:v,tag:"p",...(0,u.getTestProps)("stat-eyebrow")}),n&&(0,t.jsx)(g.default,{className:em(),field:n,tag:"p",...(0,u.getTestProps)("stat")})]})]})]})]}),(0,t.jsx)("div",{className:ee(),ref:z,"data-card-item-reveal":!0,children:(0,t.jsxs)("div",{className:et(),children:[(0,t.jsxs)("div",{className:er(),ref:z,children:[H?(0,t.jsx)("div",{ref:K,className:ev(),children:(0,t.jsxs)("div",{ref:Y,className:ex(),children:[H.map((e,r)=>{let i=r>=W;return(0,t.jsx)("span",{"data-tag":!0,className:e_(),style:i?b:void 0,"aria-hidden":i||void 0,...!i?(0,u.getTestProps)(`eyebrow-tag-${r}`):{},children:e},r)}),eA>0&&(0,t.jsxs)("div",{className:ew(),children:[(0,t.jsxs)("button",{type:"button",className:eT(),onClick:e=>{e.stopPropagation(),X(e=>!e)},"aria-expanded":G,"aria-haspopup":"true","aria-label":`Show ${eA} more tag${eA>1?"s":""}`,...(0,u.getTestProps)("eyebrow-more"),children:["+",eA]}),G&&(0,t.jsx)("div",{className:eS(),role:"region","aria-label":"Additional tags",...(0,u.getTestProps)("eyebrow-popup"),children:H.slice(W).map((e,r)=>(0,t.jsx)("span",{className:e_(),children:e},r))})]})]})}):(0,t.jsx)(d.default,{className:ek,field:S,...(0,u.getTestProps)("eyebrow")}),(0,t.jsx)(d.default,{className:(en(),eN),field:C,...(0,u.getTestProps)("heading"),tag:eC}),(0,t.jsx)(d.default,{className:(ea(),eI),field:E,...(0,u.getTestProps)("sub-heading")}),(0,t.jsx)(d.default,{className:(es(),eE),field:T,...(0,u.getTestProps)("description")})]}),(0,t.jsx)("div",{className:eo(),"data-card-item-reveal":!0,children:(0,t.jsx)(s.default,{ctaComponentClass:"component-card-item-button-1-color",className:el(),ctaStyle:(0,l.getCtaStyle)(M.cta1,"primary"),ctaIcon:U?"arrow-right":M.cta1?.ctaIcon,field:w,gtmEvent:U?void 0:(0,p.createCTAClickEvent)({event:"cta_click",componentName:"Customer Card Item Primary CTA",clickText:w?.value?.text||w?.value?.title||"",componentHeader:C?.value}),...(0,u.getTestProps)("primary-cta")})})]})})]})})},x=(0,n.withStandardComponentWrapper)(v),_=(0,i.tv)({defaultVariants:{style:"primary",colCount:"1",theme:"ThemesWhite",variant:"default"},slots:{container:["relative","flex","w-full","h-full","overflow-hidden","border","border-component-card-item-border","rounded-general-border-radius-card","bg-component-card-item-surface","transition-shadow","duration-200","ease-in-out","hover:shadow-[0px_8px_16px_
132-4px]","hover:shadow-color-black-alpha-20"],header:["relative","min-h-max","h-[292px]","max-h-[292px]","w-full","rounded-component-card-item-image-radius","text-color-fill-brand-1","transition","duration-300","ease-in-out","group","pt-component-card-item-portrait-image-padding-top","px-component-card-item-portrait-image-padding-x","pb-component-card-item-portrait-image-padding-bottom","after:absolute after:inset-0 after:bg-black/50"],body:["flex","flex-col","h-full","w-full","items-center"],contentWrapper:["flex","flex-col","w-full","gap-component-video-card-portrait-content-button-margin-top","pt-component-card-item-portrait-content-padding-top","pb-component-card-item-portrait-content-padding-bottom","px-component-card-item-portrait-content-padding-x"],content:["flex","flex-col","w-full"],eyebrow:["font-typography-font-family-body","text-component-card-item-eyebrow","font-typography-font-weight-body-semibold","text-typography-font-size-body-xSmall","leading-typography-line-height-body-xSmall","uppercase","mb-spacing-spacing-12","md:mb-spacing-spacing-16"],heading:["text-component-card-item-title","text-typography-font-size-medium","font-typography-font-size-medium","font-typography-font-weight-medium","leading-typography-line-height-medium","mb-spacing-spacing-12","md:mb-spacing-spacing-16","break-words","[&>span]:bg-clip-text","[&>span]:text-transparent","[&>span]:bg-gradient-to-r","[&>span]:from-color-core-color-2-400","[&>span]:via-color-core-gradient-1-stop-2","[&>span]:to-color-core-gradient-1-stop-1","[&>span]:from-[0%]","[&>span]:via-[40%]","[&>span]:to-[100%]"],subheading:["text-component-card-item-subtitle","font-typography-font-family-body","text-typography-font-size-body-small","font-typography-font-weight-body-semibold","leading-typography-line-height-body-small","md:font-typography-font-family-body","md:text-typography-font-size-body-medium","md:font-typography-font-weight-body-semibold","md:leading-typography-line-height-body-medium","mb-spacing-spacing-12","md:mb-spacing-spacing-16"],description:["text-component-card-item-body","text-typography-font-size-body-small","font-typography-font-weight-body","leading-typography-line-height-body-small","line-clamp-3"],footer:["flex","flex-wrap","gap-2","items-center","justify-normal","w-full"],cta:["flex","gap-spacing-spacing-8","items-center","justify-center","py-spacing-spacing-12","!w-auto"],noImageContainer:["flex","items-center","justify-center","h-full","bg-color-grayscale-400","rounded-component-card-item-image-radius"],noImageIcon:["text-color-text-text-secondary","opacity-50"],imageWrapper:["w-full","object-cover","rounded-component-card-item-image-radius","text-component-card-item-title","relative","h-[292px]"],statLogoWrapper:["absolute inset-0 flex flex-col z-10"],logoWrapper:["flex","justifty-center","items-center","flex-1"],logoImage:["max-w-[150px] max-h-[150px] m-auto"],statWrapper:["px-spacing-spacing-24","pb-spacing-spacing-24","h-[90px]"],statEyebrowText:["font-typography-font-family-header text-typography-font-size-xxsmall font-typography-font-weight-xxsmall leading-typography-line-height-xxsmall text-color-text-white"],statText:["font-typography-font-family-header text-typography-font-size-large font-typography-font-weight-large leading-typography-line-height-large text-color-text-white"],linkStretch:["absolute inset-0 z-20"],eyebrowTagsWrapper:["relative","z-30","w-full","mb-spacing-spacing-12","md:mb-spacing-spacing-16"],eyebrowBadges:["flex","flex-wrap","gap-space-between-tight","items-center"],eyebrowBadge:["bg-component-tag-fill","border","border-component-tag-border","w-max","px-component-tag-padding-x","py-component-tag-padding-y","rounded-general-border-radius-tag","text-component-card-label-text","font-typography-font-family-body","text-typography-font-size-body-xSmall","font-typography-font-weight-body-semibold","leading-typography-line-height-body-xSmall","uppercase"],eyebrowMoreWrapper:["relative"],eyebrowMoreButton:["bg-component-tag-fill","border","border-component-tag-border","w-max","px-component-tag-padding-x","py-component-tag-padding-y","rounded-general-border-radius-tag","text-component-card-label-text","font-typography-font-family-body","text-typography-font-size-body-xSmall","font-typography-font-weight-body-semibold","leading-typography-line-height-body-xSmall","uppercase","cursor-pointer","transition-opacity","duration-150","hover:opacity-80","focus:outline-none","focus-visible:ring-2","focus-visible:ring-component-card-label-text"],eyebrowPopup:["absolute","top-0","left-0","z-20","flex","flex-wrap","gap-space-between-tight","bg-color-fill-white","rounded-general-border-radius-label","p-padding-micro","shadow-[0px_3px_1px_-1px_var(--color-black-alpha-10)]"]},variants:{cardVariant:{CardItemResourceCard:{contentWrapper:["md:justify-center"]}},variant:{default:{},customerCard:{header:["!px-0","!py-0"],imageWrapper:["!rounded-b-none"]}},colCount:{1:{container:["flex-col","md:flex-row","md:gap-0"],body:["flex-row","items-start","text-left","lg:pl-0","justify-center"],content:["text-left","justify-center"],contentWrapper:["text-left","justify-center","sm:py-component-card-item-landscape-content-padding-y","sm:px-component-card-item-landscape-content-padding-x","lg:py-component-card-item-landscape-content-1-col-padding-y","lg:px-component-card-item-landscape-content-1-col-padding-x"],header:["sm:py-component-card-item-landscape-image-padding-y","sm:py-component-card-item-landscape-image-padding-y","sm:px-component-card-item-landscape-image-padding-x","md:!pe-0"],eyebrow:["font-typography-font-family-body","text-component-card-item-eyebrow","font-typography-font-weight-body-semibold","text-typography-font-size-body-xSmall","leading-typography-line-height-body-xSmall","md:text-typography-font-size-body-small","md:leading-typography-line-height-body-small"],description:["text-component-card-item-body","text-typography-font-size-body-small","font-typography-font-weight-body","leading-typography-line-height-body-small","md:text-typography-font-size-body-medium","md:font-typography-font-weight-body","md:leading-typography-line-height-body-medium"],imageWrapper:["aspect-[4/3]"],eyebrowTagsWrapper:["md:w-2/3"]},2:{container:["flex-col","md:flex-row"],body:["flex-row","items-start","text-left","justify-start"],content:["text-left"],heading:["md:text-typography-font-size-small","md:font-typography-font-weight-small","md:leading-typography-line-height-small"],subheading:["md:text-typography-font-size-body-small","md:font-typography-font-weight-body-semibold","md:leading-typography-line-height-body-small"],contentWrapper:["text-left","justify-between","h-full","sm:py-component-card-item-landscape-content-padding-y","sm:px-component-card-item-landscape-content-padding-x"],header:["sm:py-component-card-item-landscape-image-padding-y","sm:px-component-card-item-landscape-image-padding-x","sm:pr-0"],imageWrapper:["!aspect-square","!h-auto"],eyebrowTagsWrapper:["md:w-2/3"]},3:{container:["flex-col"],body:["flex-col","items-start","text-left"],content:["text-left"],contentWrapper:["h-full","text-left"],footer:["mt-auto"],imageWrapper:["max-h-[292px]"],subheading:["md:text-typography-font-size-body-small","md:font-typography-font-weight-body-semibold","md:leading-typography-line-height-body-small"]},4:{container:["flex-col"],body:["flex-col","items-center","text-left"],content:["text-left"],contentWrapper:["h-full","text-left"],footer:["mt-auto"],subheading:["md:text-typography-font-size-body-small","md:font-typography-font-weight-body-semibold","md:leading-typography-line-height-body-small"],imageWrapper:["max-h-[292px]"]}}},compoundVariants:[{variant:"customerCard",colCount:"1",class:{imageWrapper:["sm:rou
132nded-tr-none"]}},{variant:"customerCard",colCount:"2",class:{imageWrapper:["sm:rounded-tr-none"]}}]});e.s(["Default",0,x,"default",0,v])},575917,77987,e=>{"use strict";e.s(["default",()=>j],575917);var t=e.i(843476),r=e.i(271645),i=e.i(618566),n=e.i(387644),a=e.i(422674),s=e.i(859637),o=e.i(38930),l=e.i(296217),c=e.i(907095),u=e.i(757070),d=e.i(310099),p=e.i(150105),h=e.i(133267),f=e.i(78737);let g=new Map,m=(e,t,r)=>{let i=(e=>{if(!e)return"";let t=e.trim();if(!t)return"";try{if(t.startsWith("/")||t.startsWith("#"))return((t.startsWith("#")?t:t.split("#")[0]).split("?")[0]||"").toLowerCase();return(new URL(t,window.location.origin).pathname||"/").toLowerCase()}catch{return""}})(e);if(!i)return Promise.resolve({});if(g.has(i))return Promise.resolve(g.get(i)??{});let n=new URLSearchParams({path:i}),a=t?.trim();a&&n.set("language",a);let s=r?.trim();return s&&n.set("site",s),y(i,n)},y=(e,t)=>fetch(`/api/cdp-target-meta?${t.toString()}`,{method:"GET"}).then(e=>e.ok?e.json():null).then(t=>{let r={region:t?.region?.trim()||void 0};return r.region&&g.set(e,r),r}).catch(()=>({}));e.s(["getDestinationPageMetaFromUrl",0,m],77987);var b=e.i(455601),v=e.i(142996),x=e.i(466339);let _={assets:"Asset Directory","customer-stories":"Customer Directory",events:"Event Directory",marketplace:"Marketplace Directory",news:"News Directory",partners:"Partner Directory",search:"Global Search"},w=e=>{if(null==e)return;if(Array.isArray(e)){let t=e.find(e=>null!=e&&""!==String(e).trim());return(null!=t?String(t).trim():"")||void 0}let t=String(e).trim();if(t&&"[]"!==t){if(t.startsWith("[")&&t.endsWith("]"))try{let e=JSON.parse(t);if(Array.isArray(e))return w(e)}catch{let e=t.slice(1,-1).trim();t=e.startsWith('"')&&e.endsWith('"')||e.startsWith("'")&&e.endsWith("'")?e.slice(1,-1).trim():e}return t||void 0}},T=/^event.*date/i,S=(e,t)=>{let r=t?.trim();if(!r)return"";let i=r.includes("-")?r.split("-").map(e=>e.trim()).filter(Boolean):[r],n=i.map(t=>w(e?.[t])??"");if(i.every(e=>T.test(e))){let e=(0,x.formatEventDateRange)(n[0],n[1]);if(e)return e}return n.filter(Boolean).join(" - ")},C=e=>{if(null==e||!1===e||0===e||""===e)return!1;if(!0===e||1===e)return!0;if("object"==typeof e&&null!==e&&"value"in e)return C(e.value);if("string"==typeof e){let t=e.trim().toLowerCase();return"true"===t||"1"===t||"yes"===t||"featured"===t}return!1},E=e=>{let{trackItemClick:t}=(0,s.useSearchData)(),o=(0,i.useRouter)(),l=(0,i.usePathname)()||"",{sitecoreContext:c}=(0,a.useSitecoreContext)(),u=c?.site?.name,d=c?.language||"en",p=c?.language?.split(/[-_]/)?.[0]?.toUpperCase()||"EN";return(0,r.useCallback)(async(r,i,a,s)=>{r.preventDefault();let c=()=>{if(i.url){let e=i.url;if(!i.url.startsWith("/")&&!i.url.startsWith("#"))try{let t=new URL(i.url,window.location.origin);e=t.pathname+t.search}catch{e=i.url}o.push(e)}};try{let r=(e=>{let t=e.split("?")[0].toLowerCase();for(let[e,r]of Object.entries(_))if(t.includes(`/${e}`)||t.includes(`/${e}-`))return r;return"Search Results"})(l),o=(await m(i.url,d,u)).region;s&&(0,n.sendGTMEvent)((0,b.createCTAClickEvent)({event:"cta_click",componentName:"Cards",clickText:s.clickText,componentHeader:s.componentHeader}));let h=("string"==typeof i.title?i.title:"")||i.url||"",g=s?.clickText??h,y=(0,f.createCdpClickEvent)({component:r,region:o,clickText:g,clickUrl:i.url,language:p});(0,f.sendCdpClickEvent)(y),await t({entity:e||"",id:i.id},a||0),setTimeout(c,400)}catch(e){console.error("Error tracking item click:",e),setTimeout(c,400)}},[e,t,o,l,p,d,u])},k=({results:e,fieldsMapping:r})=>{let{isFeatured:i,eyebrow:n,heading:a,description:s,thumbnail:o}=r,{getDictionaryValue:l}=(0,d.default)(),c=l("IsFeatured","Featured");return(0,t.jsx)("div",{className:"mt-layout-base-gutter mb-layout-base-gutter grid grid-cols-1 gap-layout-base-gutter md:grid-cols-2 lg:grid-cols-3",children:e.map(e=>{let d,p,h="string"==typeof(p=(d=r.link)?e?.[d]:void 0)&&p.trim()?p.trim():e.url||"",f=e?.highlight?.[a],g=f?Array.isArray(f)?f[0]:f:void 0,m=((e,t,r)=>{if([t,"isfeatured","IsFeatured","is_featured"].filter((e,t,r)=>!!e&&r.indexOf(e)===t).some(t=>C(e[t])))return!0;
132for(let t of[r,"integrationtags"].filter(Boolean)){let r=e[t];if(Array.isArray(r)){if(r.some(e=>"featured"===String(e).trim().toLowerCase()))return!0}else if("string"==typeof r&&"featured"===r.trim().toLowerCase())return!0}return!1})(e,i,n)?c||"Featured":void 0;return(0,t.jsx)(u.default,{logoSrc:w(e?.[o])||"",title:w(e?.[a]),highlightedTitle:null!=g?String(g):void 0,description:w(e?.[s]),featuredLabel:m,href:h,ctaText:l("Find_Out_More")??""},e.id)})})},N=({results:e,fieldsMapping:r,entity:i})=>{let{eyebrow:n,heading:a,description:s,thumbnail:o,subHeading:l}=r,{getDictionaryValue:u}=(0,d.default)(),p=E(i);return(0,t.jsx)("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-layout-base-gutter mb-spacing-spacing-24 md:mb-spacing-spacing-12",children:e.map((e,r)=>{let i=e?.[n],d=Array.isArray(i)?i:i?[i]:[],h=e?.highlight?.[a],f=h?Array.isArray(h)?h[0]:h:void 0,g=S(e,l),m={fields:{cardImage:{value:{src:e?.[o]||""}},cardLink1:{value:{href:e.url,text:u("Find_Out_More")}},description:{value:w(e?.[s])||""},heading:{value:e?.[a]||""},subHeading:{value:g},highlightedheading:f?{value:f}:void 0,eyebrow:d.length>0?d:void 0,enableShare:{value:!0}}};return(0,t.jsx)("div",{children:(0,t.jsx)(c.ResourceCardItem,{isSearchpart:!0,searchTrackingProps:{onClick:t=>p(t,e,r,{clickText:u("Find_Out_More")||"Find Out More",componentHeader:e?.[a]!=null?String(e[a]):void 0}),resultId:e.id,resultUrl:e.url},...m})},e.id)})})},I=({results:e,fieldsMapping:r,entity:i})=>{let{eyebrow:n,heading:a,description:s,thumbnail:o,subHeading:l,logo:c,stat:u,statEyebrow:p}=r,{getDictionaryValue:h}=(0,d.default)(),f=E(i);return(0,t.jsx)("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-layout-base-gutter mb-spacing-spacing-24 md:mb-spacing-spacing-12",children:e.map((e,r)=>{let i=e?.[n],d=Array.isArray(i)?i:i?[i]:[],g=e?.highlight?.[a],m=g?Array.isArray(g)?g[0]:g:void 0,y=S(e,l),b={fields:{cardImage:{value:{src:e?.[o]||""}},cardLink1:{value:{href:e.url,text:h("Find_Out_More")}},description:{value:w(e?.[s])||""},heading:{value:e?.[a]||""},subHeading:{value:y},logo:{value:{src:e?.[c]||""}},stat:{value:e?.[u]||""},statEyebrow:{value:e?.[p]||""},highlightedheading:m?{value:m}:void 0,eyebrow:d.length>0?d:void 0,enableShare:{value:!0}}};return(0,t.jsx)("div",{className:"flex",children:(0,t.jsx)(v.default,{isSearchpart:!0,searchTrackingProps:{onClick:t=>f(t,e,r,{clickText:h("Find_Out_More")||"Find Out More",componentHeader:e?.[a]!=null?String(e[a]):void 0}),resultId:e.id,resultUrl:e.url},...b})},e.id)})})},A=({results:e,fieldsMapping:r,entity:i})=>{let{eyebrow:n,heading:a,description:s,thumbnail:c,subHeading:u}=r,d=E(i);return(0,t.jsx)("ul",{className:"flex flex-col mb-spacing-spacing-24 lg:mb-0",children:e.map((e,r)=>{let i,p=S(e,u);return(0,t.jsxs)("li",{className:"flex flex-row gap-space-between-base pb-padding-tight mb-space-between-base lg:mb-space-between-less border-b border-color-grayscale-100",children:[(0,t.jsxs)("div",{className:"flex flex-col gap-space-between-tight py-padding-micro flex-grow",children:[(0,t.jsx)("div",{className:"flex flex-wrap gap-space-between-tight",children:(Array.isArray(i=e?.[n])?i:i?[i]:[]).map(e=>(0,t.jsx)("span",{className:"bg-component-card-label-fill   w-max   px-component-card-label-padding-x   py-component-card-label-padding-y   rounded-component-card-label-border-radius   text-component-card-label-text   font-typography-font-family-body   text-typography-font-size-body-xSmall   font-typography-font-weight-body-semibold   leading-typography-line-height-body-xSmall   uppercase",children:e},e))}),(0,t.jsx)(l.default,{field:{value:{href:e.url,text:e?.[a]||e.name}},ctaComponentClass:"default",ctaVariant:"custom",className:"text-typography-font-family-header text-typography-font-size-small font-typography-font-weight-small leading-typography-line-height-small text-color-text-link-link",onClick:t=>d(t,e,r)}),(0,t.jsx)(h.default,{className:"text-typography-font-family-body text-typography-font-size-body-medium font-typography-font-weight-body leading-typography-line-height-body-medium text-color-icon-dark line-clamp-1 md:line-clamp-2",field:{value:w(e?.[s])||w(e.description)||""}}),p?(0,t.jsx)("span",{className:"block text-typography-font-family-body text-typography-font-size-body-small font-typography-font-weight-body leading-typography-line-height-body-small text-color-text-text-secondary",children:p}):null]}),e?.[c]!==null&&e?.[c]!==void 0&&(0,t.jsx)("div",{className:"md:min-w-[193px] md:max-w-[193px] min-w-[100px] max-w-[100px] w-full",children:(0,t.jsx)(o.default,{field:{value:{src:e?.[c]||""}},className:"md:aspect-[193/118] aspect-square object-center object-cover rounded-border-radius-radius-3 w-full"})})]},e.id)})})}
132,j=({variant:e,fieldsMapping:i,entity:n})=>{let{results:a,loading:o,totalItems:l}=(0,s.useSearchData)(),{committedQuery:c}=(0,s.useSearchQuery)(),{filtersFacets:u,dateRange:d}=(0,s.useSearchControls)(),[h,f]=(0,r.useState)(!1),g=(0,r.useRef)(null),m=c&&c.trim().length>0||u&&u.length>0||d&&(d.start||d.end),y=o&&(a.length>0||l>0||!m);return((0,r.useEffect)(()=>(g.current&&(clearTimeout(g.current),g.current=null),y?f(!0):g.current=setTimeout(()=>{f(!1)},120),()=>{g.current&&(clearTimeout(g.current),g.current=null)}),[y]),h)?(0,t.jsx)("div",{className:"flex justify-center items-start min-h-height-min-height-half-min-height h-full",children:(0,t.jsx)(p.OverlayLoading,{isLoading:!0})}):0===a.length?null:(0,t.jsx)(t.Fragment,{children:"variant-digital-worker-cards"===e?(0,t.jsx)(k,{results:a??[],fieldsMapping:i}):"variant-cards"===e?(0,t.jsx)(N,{results:a??[],fieldsMapping:i,entity:n}):"customer-cards"===e?(0,t.jsx)(I,{results:a??[],fieldsMapping:i,entity:n}):(0,t.jsx)(A,{results:a??[],fieldsMapping:i,entity:n})})}},148263,e=>{"use strict";var t=e.i(271645);e.s(["useIsMobile",0,()=>{let[e,r]=(0,t.useState)(!1);return(0,t.useEffect)(()=>{let e=()=>{r(window.innerWidth<768)};return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[]),e}])},841258,e=>{"use strict";var t=e.i(843476),r=e.i(271645),i=e.i(859637);e.i(879806);var n=e.i(871084),a=e.i(469579),s=e.i(211418),o=e.i(207670),l=e.i(506914),c=e.i(148263);let u="DOTS";function d(e,t){let r=t-e+1;return r<=0?[]:Array.from({length:r},(t,r)=>r+e)}let p=(0,s.tv)({slots:{wrapper:["flex","items-center","gap-spacing-spacing-2 md:gap-spacing-spacing-8","flex-wrap","justify-center lg:justify-start"],IconButtons:["flex items-center justify-center","text-color-grayscale-600 rounded-[4px] md:w-11 md:h-11 w-8 h-8 text-p-color-icon","disabled:text-color-icon-icon-disabled disabled:!bg-transparent disabled:cursor-not-allowed","hover:bg-color-fill-brand-1 hover:text-color-text-white hover:border-color-border-border-hover","active:bg-color-fill-brand-1 active:text-color-text-white active:border-color-border-border-hover","transition-colors duration-300"],pageButtons:["md:w-11 md:h-11 w-8 h-8 rounded-[4px] text-center","font-typography-font-family-body","text-typography-font-size-body-medium","font-typography-font-weight-body-bold","leading-typography-line-height-body-medium","disabled:cursor-not-allowed","hover:bg-color-grayscale-300 hover:text-color-core-color-1-500 hover:border-color-border-border-hover","active:bg-color-fill-brand-1 active:text-color-text-white active:border-color-border-border-hover","transition-colors duration-300"]},variants:{isActive:{true:{pageButtons:["bg-color-core-color-1-500 text-color-grayscale-white"]},false:{pageButtons:["text-color-grayscale-600"]}}}});e.s(["default",0,()=>{let{wrapper:e,IconButtons:s,pageButtons:h}=p(),{page:f,setPage:g}
132=(0,i.useSearchControls)(),{totalItems:m,maxResults:y}=(0,i.useSearchData)(),b=(0,c.useIsMobile)(),v=(0,r.useMemo)(()=>Math.ceil(m/y),[m,y]),x=(0,r.useMemo)(()=>(function({totalPageCount:e,currentPage:t,siblingCount:r=1}){if(2*r+5>=e)return d(1,e);let i=Math.max(t-r,1),n=Math.min(t+r,e),a=i>2,s=n<e-1;if(!a&&s)return[...d(1,3+2*r),u,e];if(a&&!s)return[1,u,...d(e-(3+2*r)+1,e)];if(a&&s){let r=i,a=n;if(a-r+1<2){let i=Math.floor(1);if(r=Math.max(t-i,2),(a=Math.min(t+i,e-1))-r+1<2)if(t<=2)r=2,a=3;else if(t>=e-1)r=e-2,a=e-1;else{let t=2-(a-r+1);t>0&&(r>2?r=Math.max(2,r-t):a=Math.min(e-1,a+t))}}return[1,u,...d(r,a),u,e]}return d(1,e)})({currentPage:f,totalPageCount:v,siblingCount:+!b}),[f,v,b]),_=(0,r.useCallback)(e=>{g(e)},[g]),w=(0,r.useCallback)(()=>{_(Math.max(1,f-1))},[_,f]),T=(0,r.useCallback)(()=>{_(Math.min(v,f+1))},[_,f,v]);return v<=1?null:(0,t.jsxs)("div",{className:e(),children:[(0,t.jsx)(a.default,{onClick:w,disabled:1===f,className:s(),ctaVariant:"custom",children:(0,t.jsx)(n.SvgIcon,{icon:"page-arrow-left",size:"sm",viewBox:"6 6 32 32"})}),x.map((e,r)=>{if(e===u)return(0,t.jsx)(l.default,{field:{value:"..."},tag:"span",className:(0,o.default)(h(),"w-11 h-11 text-center flex items-center justify-center select-none")},`dots-${r}`);let i=e===f;return(0,t.jsx)(a.default,{ctaVariant:"custom",className:h({isActive:i}),onClick:()=>_(e),disabled:i,children:e},e)}),(0,t.jsx)(a.default,{onClick:T,disabled:f===v,className:s(),ctaVariant:"custom",children:(0,t.jsx)(n.SvgIcon,{icon:"page-arrow-right",size:"sm",viewBox:"6 6 32 32"})})]})}])},95761,e=>{"use strict";var t=e.i(843476),r=e.i(859637),i=e.i(211418),n=e.i(310099);let a=(0,i.tv)({slots:{base:"flex flex-col gap-2 mb-space-between-less",querySummaryText:"text-color-icon-darkest text-typography-font-family-body text-typography-font-size-body-large font-typography-font-weight-body-bold leading-typography-line-height-body-large"}});e.s(["default",0,()=>{let{totalItems:e,maxResults:i}=(0,r.useSearchData)(),{committedQuery:s}=(0,r.useSearchQuery)(),{page:o}
132=(0,r.useSearchControls)(),{getDictionaryValue:l}=(0,n.default)(),{base:c,querySummaryText:u}=a(),d=l("Of_Results")||"of results",p=l("For_Results")||"for results",[h,f]=d.split(" "),g=p.split(" ")[0];return(0,t.jsx)("div",{className:c(),children:(0,t.jsx)("span",{className:u(),children:`${e<=0?0:i*(o-1)+1} - ${Math.min(i*o,e)} ${h} ${e} ${f} ${s.trim().length>0?`${g} "${s}"`:""}`})})}])},520275,46510,e=>{"use strict";var t=e.i(843476),r=e.i(271645),i=e.i(859637),n=e.i(506914),a=e.i(469579),s=e.i(207857);let o=()=>{let[e,t]=(0,r.useState)(!1);return(0,r.useEffect)(()=>{let e=()=>{t(window.innerWidth<1024)};return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[]),e};e.s(["useIsTablet",0,o],46510);var l=e.i(211418),c=e.i(724508),u=e.i(310099);let d=(0,l.tv)({slots:{mobileFilterButton:"flex gap-spacing-spacing-8 text-typography-font-family-body text-typography-font-size-body-medium font-typography-font-weight-button leading-typography-line-height-body-small text-component-button-tonal-outline-text py-spacing-spacing-12 px-spacing-spacing-12 border-2 border-component-button-tonal-outline-border rounded-general-border-radius-button",filterLabel:"text-typography-font-family-body text-typography-font-size-body-medium font-typography-font-weight-body-semibold leading-typography-line-height-body-medium text-color-text-dark",clearAllButton:"inline-block text-typography-font-family-body text-typography-font-size-body-medium lg:text-typography-font-size-body-small font-typography-font-weight-body leading-typography-line-height-body-medium lg:leading-typography-line-height-body-small text-color-text-dark underline underline-offset-1",filterChipList:"flex flex-row gap-spacing-spacing-8 py-padding-tight flex-wrap",filterChipButton:"text-typography-font-family-body text-typography-font-size-body-xSmall font-typography-font-weight-body leading-typography-line-height-body-xSmall text-component-button-white-filled-text flex items-center justify-center gap-[6px] py-component-card-label-padding-y px-component-card-label-padding-x border border-color-core-color-1-200 rounded-component-card-label-border-radius",filterlabelClearAllContainer:"flex flex-row justify-between items-center gap-2 py-spacing-spacing-8",facetsContainer:"flex flex-col lg:py-padding-tight overflow-y-auto flex-grow",inputlabel:"flex cursor-pointer relative px-spacing-spacing-12 py-spacing-spacing-8 items-center",inputCheckbox:"peer cursor-pointer transition-all appearance-none rounded-general-border-radius-text-input border-general-border-width-button border-color-input-border min-w-7 w-7 h-7 checked:border-color-input-border-hover",inputCheckboxIcon:"absolute opacity-0 peer-checked:opacity-100 left-spacing-spacing-12 h-5 w-5 min-w-[28px] min-h-[28px]",inputCheckboxText:"pl-spacing-spacing-8 text-typography-font-family-body text-typography-font-size-body-medium font-typography-font-weight-body-semibold leading-typography-line-height-body-medium text-color-text-text peer-checked:font-typography-font-weight-body-bold"}}),p=(0,l.tv)({base:"w-full text-color-text-text text-typography-font-family-body text-typography-font-size-body-medium font-typography-font-weight-body-semibold leading-typography-line-height-body-medium flex justify-between py-padding-tight px-spacing-spacing-12 border-t border-color-border-light transition-all duration-300",variants:{open:{true:"bg-color-surface-surface-hover",false:"bg-transparent"}}}),h=(0,l.tv)({base:"flex flex-col py-padding-micro",variants:{open:{true:"block",fal
132se:"hidden"}}}),f=(0,l.tv)({base:"flex flex-col w-full",variants:{overlay:{true:"active-facets fixed top-0 left-0 w-full h-full bg-white z-50 py-spacing-spacing-16 px-spacing-spacing-8",false:"relative"}}}),g=(0,l.tv)({base:"flex  items-center gap-2 max-sm:items-start",variants:{justifyBetween:{true:"justify-between",false:"justify-end"}}}),m=({facet:e,value:r,handleFilter:a,isSelected:o,index:l})=>{let{dateRange:c,eventStatusFilter:u}=(0,i.useSearchControls)(),{inputlabel:p,inputCheckbox:h,inputCheckboxIcon:f,inputCheckboxText:g}=d(),{trackFacetClick:m}=(0,i.useSearchData)(),y="Future/Ongoing Event"===r.text||"Future Event"===r.text||"Ongoing Event"===r.text?"Future/Ongoing Event":r.text.includes("/")?r.text?.split("/").reverse()[0]:r.text,b="Past Event"===r.text||"Future/Ongoing Event"===r.text||"Future Event"===r.text||"Ongoing Event"===r.text,v="eventstatus"===e.name.toLowerCase(),x="Past Event"===r.text,_="Future/Ongoing Event"===r.text||"Future Event"===r.text||"Ongoing Event"===r.text,w=x?!!c.end&&"futureOngoing"!==u:!!_&&"futureOngoing"===u,T=v&&(x||_)?w:o,S=!!c.end&&"futureOngoing"!==u,C=v&&(x&&"futureOngoing"===u||_&&S)&&!T;return(0,t.jsxs)("label",{className:`${p()} ${C?"opacity-50 cursor-not-allowed":""}`,children:[(0,t.jsx)("input",{type:"checkbox",className:h(),name:r.text,id:r.id,disabled:C,onChange:async()=>{C||(a({name:e.name,value:r.text,id:r.id,operations:T?"remove":"add"}),await m([{displayName:e.name,facetPosition:l||0,name:e.name,title:e.name,value:r.text,valuePosition:l||0}]))},checked:T}),(0,t.jsx)(s.default,{icon:"checkmark",size:"xss",viewBox:"-10 -5 43 35",className:f()}),(0,t.jsx)(n.default,{field:{value:`${y}${!b?` (${r.count})`:""}`},tag:"span",className:g()})]})},y=({facet:e,index:o,selectedFilters:l,handleFilter:c,facetLabel:u})=>{let{dateRange:d,eventStatusFilter:f}
132=(0,i.useSearchControls)(),g=e?.name?.toLowerCase()==="eventstatus",y=l?.some(t=>t.name?.toLowerCase()===e?.name?.toLowerCase()&&(t.values?.length||0)>0)||g&&!!(d?.end||f),[v,x]=(0,r.useState)(0===o||g||y);(0,r.useEffect)(()=>{y&&x(!0)},[y]);let _=e?.value.every(e=>e.text.includes("/")),w=_&&e?Array.from(e.value.reduce((t,r)=>{let i=r.text.split("/"),n=i[i.length-2],a=i[i.length-1],s=t.get(n)??{name:e?.name,label:n,value:[]};return s.value.push({label:a,id:r.id,text:r.text,count:r.count}),t.set(n,s),t},new Map)).map(([,e])=>e):[];return(0,t.jsxs)("li",{className:"py-spacing-spacing-4",children:[(0,t.jsxs)(a.default,{ctaVariant:"custom",className:p({open:v}),onClick:()=>{x(!v)},children:[(0,t.jsx)(n.default,{field:u,tag:"span",className:"inline-block text-left flex-grow"}),(0,t.jsx)(s.default,{icon:v?"chevron-up":"chevron-down",size:"xss",className:"mt-[1px] min-w-[20px] text-color-icon-icon",viewBox:"-10 -10 40 40"})]}),_?(0,t.jsx)("div",{className:h({open:v}),children:w.map(e=>(0,t.jsx)(b,{facet:e,selectedFilters:l,handleFilter:c},e.name))}):(0,t.jsx)("ul",{className:h({open:v}),children:e?.value.map(r=>{let i=l?.some(t=>t.name?.toLowerCase()===e?.name?.toLowerCase()&&t.values?.some(e=>e.id===r.id||e.value?.toLowerCase()===r.text?.toLowerCase()));return(0,t.jsx)("li",{className:"py-spacing-spacing-4",children:(0,t.jsx)(m,{facet:e,value:r,handleFilter:c,isSelected:i||!1})},r.id)})})]})},b=({facet:e,handleFilter:i,selectedFilters:o})=>{let l=o?.some(t=>t.name===e?.name&&(t.values?.length||0)>0),[c,u]=(0,r.useState)(l);return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(a.default,{ctaVariant:"custom",className:p({open:c}),onClick:()=>{u(!c)},children:[(0,t.jsx)(s.default,{icon:c?"accordion-minus":"accordion-plus",size:"s",viewBox:"0 0 20 20",className:"mr-spacing-spacing-8"}),(0,t.jsx)(n.default,{field:{value:e?.label},tag:"span",className:"inline-block text-left flex-grow"})]}),(0,t.jsx)("ul",{className:`${h({open:c})} pl-spacing-spacing-24`,children:e?.value?.map((r,n)=>{let a=o?.some(t=>t.name===e?.name&&t.values?.some(e=>e.id===r.id));return(0,t.jsx)("li",{className:"py-spacing-spacing-4",children:(0,t.jsx)(m,{facet:e,value:r,handleFilter:i,isSelected:a||!1,index:n})},r.id)})})]})},v=({facet:e})=>{let{dateRange:o,setDateRange:l,setPage:c}
132=(0,i.useSearchControls)(),u=!!(o?.start||o?.end),[d,f]=(0,r.useState)(u),g=e=>{if(!e)return"";try{return e.split("T")[0]}catch{return""}},[m,y]=(0,r.useState)(()=>g(o?.start)),[b,v]=(0,r.useState)(()=>g(o?.end));return(0,r.useEffect)(()=>{y(g(o?.start)),v(g(o?.end))},[o]),(0,t.jsxs)("li",{className:"py-spacing-spacing-4",children:[(0,t.jsxs)(a.default,{ctaVariant:"custom",className:p({open:d}),onClick:()=>{f(!d)},children:[(0,t.jsx)(n.default,{field:{value:e?.label},tag:"span",className:"inline-block text-left flex-grow"}),(0,t.jsx)(s.default,{icon:d?"chevron-up":"chevron-down",size:"xss",className:"mt-[1px] min-w-[20px]",viewBox:"-10 -10 40 40"})]}),(0,t.jsxs)("form",{onSubmit:e=>{e.preventDefault();let t=e.target.startDate.value||"",r=e.target.endDate.value||"";l({start:t?new Date(`${t}T00:00:00Z`).toISOString():void 0,end:r?new Date(`${r}T23:59:59Z`).toISOString():void 0}),c(1)},className:`${h({open:d})}  py-padding-micro block`,children:[(0,t.jsxs)("label",{className:"flex cursor-pointer gap-spacing-spacing-8 relative px-spacing-spacing-12 py-spacing-spacing-8",children:[(0,t.jsx)("span",{children:"Start Date:"}),(0,t.jsx)("input",{type:"date",id:"startDate",name:"startDate",value:m,className:"flex-grow border-none outline-none",onChange:e=>y(e.target.value)})]}),(0,t.jsxs)("label",{className:"flex cursor-pointer gap-spacing-spacing-8 relative px-spacing-spacing-12 py-spacing-spacing-8",children:[(0,t.jsx)("span",{children:"End Date:"}),(0,t.jsx)("input",{type:"date",id:"endDate",name:"endDate",value:b,min:m,className:"flex-grow border-none outline-none",onChange:e=>v(e.target.value)})]}),(0,t.jsxs)(a.default,{ctaVariant:"custom",type:"submit",className:"flex items-center gap-spacing-spacing-8 px-spacing-spacing-12 py-spacing-spacing-8 text-typography-font-family-body text-typography-font-size-body-medium font-bold leading-typography-line-height-body-medium text-color-text-link-link",children:[(0,t.jsx)(n.default,{field:{value:"Apply"},tag:"span"}),(0,t.jsx)(s.default,{icon:"arrow-right",size:"xs",viewBox:"0 0 24 16"})]})]})]})},x=({filters:e,handleFilter:r})=>{let{filterChipList:o,filterChipButton:l}=d(),{facets:c}=(0,i.useSearchData)(),u=(e,t,r)=>{if(t.startsWith("url-")&&r)return r;let i=c.find(t=>t.name?.toLowerCase()===e?.toLowerCase()),n=i?.value?.find(e=>e.id===t);return n?.text||r},p=e.flatMap(e=>{if(!e.name||!e.values||0===e.values.length)return[];let t=c.find(t=>t.name?.toLowerCase()===e.name?.toLowerCase());return t?Array.from((e.values||[]).reduce((e,t)=>(t.id&&!e.has(t.id)&&e.set(t.id,t),e),new Map)).map(([,e])=>e).filter(r=>!!r.id&&!!(t.value?.find(e=>e.id===r.id)||t.value?.find(t=>t.text===r.value||t.text===u(e.name,r.id,r.value)))).map(r=>{let i,n=t.value?.find(e=>e.id===r.id),a=n?.text||r.value||u(e.name,r.id,r.value),s=a?.includes("/")?(i=a.split("/").reverse(),`${i[1]}: ${i[0]}`):a;return{key:`${e.name}-${r.id}`,filterName:e.name,value:r.value,valueId:r.id,label:s||"",filter:e}}):[]});return(0,t.jsxs)("ul",{className:o(),children:[p.map(e=>(0,t.jsx)("li",{children:(0,t.jsxs)(a.default,{ctaVariant:"custom",className:l(),onClick:()=>{r({...e.filter,value:e.value,id:e.valueId,operations:"remove"})},children:[(0,t.jsx)(n.default,{field:{value:e.label},className:"word-break",tag:"span"}),(0,t.jsx)(s.default,{icon:"tag-close",size:"xxs",viewBox:"0 0 16 16"})]})},e.key)),(0,t.jsx)(_,{})]})},_=()=>{let{filterChipButton:e}=d(),{dateRange:r,setDateRange:o,setPage:l}
132=(0,i.useSearchControls)(),c=e=>{if(!e)return"";try{return e.split("T")[0]}catch{return e}},u=!!r?.start,p=!!r?.end;return u||p?(0,t.jsxs)(t.Fragment,{children:[u&&(0,t.jsx)("li",{children:(0,t.jsxs)(a.default,{ctaVariant:"custom",className:e(),onClick:()=>{o({...r,start:void 0}),l(1)},children:[(0,t.jsx)(n.default,{field:{value:`Start: ${c(r.start)}`},tag:"span"}),(0,t.jsx)(s.default,{icon:"tag-close",size:"xxs",viewBox:"0 0 16 16"})]})},"date-start"),p&&(0,t.jsx)("li",{children:(0,t.jsxs)(a.default,{ctaVariant:"custom",className:e(),onClick:()=>{o({...r,end:void 0}),l(1)},children:[(0,t.jsx)(n.default,{field:{value:`End: ${c(r.end)}`},tag:"span"}),(0,t.jsx)(s.default,{icon:"tag-close",size:"xxs",viewBox:"0 0 16 16"})]})},"date-end")]}):null};e.s(["default",0,({sitecoreFacets:e,sortOptions:l})=>{let{facets:p,totalItems:h}=(0,i.useSearchData)(),{handleFilterChange:m,filtersFacets:b,setFiltersFacets:_,dateRange:w,setDateRange:T,setEventStatusFilter:S,eventStatusFilter:C}=(0,i.useSearchControls)(),E=o(),[k,N]=(0,r.useState)(!E),[I,A]=(0,r.useState)([]),[j,P]=(0,r.useState)({}),{mobileFilterButton:O,filterLabel:L,clearAllButton:D,filterlabelClearAllContainer:R,facetsContainer:M}=d(),{getDictionaryValue:B}=(0,u.default)(),U=e=>m({name:e.name,operations:e.operations||"add",id:e.id,value:e.value});return console.log("eventtype facet",I),r.default.useEffect(()=>{E&&k?document.body.classList.add("overflow-hidden"):document.body.classList.remove("overflow-hidden")},[k,E]),r.default.useEffect(()=>{let e=p?.find(e=>e.name?.toLowerCase()==="eventtype");e?.value?.length&&A(t=>{let r=new Map;return[...t,...e.value].forEach(e=>{let t="Future Event"===e.text||"Ongoing Event"===e.text||"Future/Ongoing Event"===e.text?"future-ongoing-event":e.text.toLowerCase(),i=r.get(t);(!i||e.count>i.count)&&r.set(t,{...e,text:"future-ongoing-event"===t?"Future/Ongoing Event":e.text})}),Array.from(r.values())})},[p]),r.default.useEffect(()=>{p?.length&&P(e=>{let t={...e};return p.forEach(e=>{let r=e.name?.toLowerCase();if(!r)return;let i=t[r]?.value||[],n=e.value||[];t[r]={...e,value:[...i,...n].filter((e,t,r)=>r.findIndex(t=>t.id===e.id||t.text===e.text)===t)}}),t})},[p]),r.default.useEffect(()=>{E?N(!1):N(!0)},[E]),(0,t.jsxs)("div",{children:[(0,t.jsxs)("div",{className:g({justifyBetween:E&&h>0}),children:[E&&h>0&&p.length>0&&(0,t.jsxs)(a.default,{ctaVariant:"custom",className:O(),onClick:()=>{N(!k)},children:[(0,t.jsx)(s.default,{icon:"filter-lines",size:"xss",viewBox:"0 0 21 20","aria-hidden":"true"}),(0,t.jsx)(n.default,{field:{value:B("Filters")||""},tag:"span"})]}
132),k&&(0,t.jsxs)("div",{className:f({overlay:E}),children:[(0,t.jsx)("button",{"aria-label":"Close filters Button",onClick:()=>N(!1),role:"button",className:"ml-auto w-6 h-6 p-[5px] lg:hidden",children:(0,t.jsx)(s.default,{"aria-hidden":"true","aria-label":"Close Modal Button Icon",icon:"close",size:"xxs",className:"!w-[14px] !h-[14px]"})}),(0,t.jsxs)("div",{className:R(),children:[h>0&&(0,t.jsx)(n.default,{field:{value:B("Filters")||""},tag:"h6",className:L()}),(b.length>0||w.start||w.end)&&(0,t.jsx)(a.default,{ctaVariant:"custom",text:B("Clear_All")||"",className:D(),onClick:()=>{_([]),T({}),S(null)}})]}),(b.length>0||w.start||w.end)&&(0,t.jsx)(x,{filters:b,handleFilter:U}),(0,t.jsx)("ul",{className:M(),children:e?.map((e,r)=>{let i=e.fields?.fieldName?.value?.toLowerCase()||"";if("country"===i||"industry"===i&&"futureOngoing"===C)return null;let n=p?.find(e=>i===e?.name?.toLowerCase()),a=j[i],s=n||a?{...a||n,...n||{},value:[...a?.value||[],...n?.value||[]].filter((e,t,r)=>r.findIndex(t=>t.id===e.id||t.text===e.text)===t)}:void 0,o="eventstatus"===i,l=b.find(e=>e.name?.toLowerCase()==="eventstatus")?.values?.map(e=>({id:e.id,text:e.value,count:0}))||[],c=new Map;o&&[{id:"future-ongoing-event",text:"Future/Ongoing Event",count:0},{id:"past-event",text:"Past Event",count:0},...s?.value||[],...l].forEach(e=>{let t="Future Event"===e.text||"Ongoing Event"===e.text||"Future/Ongoing Event"===e.text?"future-ongoing-event":e.text.toLowerCase().trim();c.has(t)||c.set(t,{...e,text:"future-ongoing-event"===t?"Future/Ongoing Event":e.text})});let u=o?{name:s?.name||e.fields?.fieldName?.value||"",label:e.fields?.title?.value||"",value:Array.from(c.values())}:s;if(!u&&e.fields?.startDatefieldName?.value&&e.fields?.endDatefieldName?.value){let i={name:e.fields?.fieldName?.value||"",label:e.fields?.title?.value||"",value:[]};return(0,t.jsx)(v,{facet:i},r)}let d=b.some(e=>e.name?.toLowerCase()===i&&(e.values?.length||0)>0),h=u||(d?{name:e.fields?.fieldName?.value||"",label:e.fields?.title?.value||"",value:[]}:null);return h?(0,t.jsx)(y,{facet:h,index:r,selectedFilters:b,handleFilter:U,facetLabel:e?.fields?.title},h.name):(0,t.jsx)(y,{facet:{name:e.fields?.fieldName?.value||"",label:e.fields?.title?.value||"",value:[]},index:r,selectedFilters:b,handleFilter:U,facetLabel:e?.fields?.title},e.fields?.fieldName?.value||r)})})]}),E&&h>0&&(0,t.jsxs)("div",{className:`flex flex-row justify-end items-center max-sm:max-w-[60%] max-sm:flex-col max-sm:items-start gap-2 ${!E?"mb-spacing-spacing-12":""}`,children:[(0,t.jsx)(n.default,{htmlFor:"search-sort",field:{value:`${B("SortBy")} `||""},tag:"span",className:"text-typography-font-family-body text-typography-font-size-body-small font-typography-font-weight-body leading-typography-line-height-body-small text-[#535355]"}),(0,t.jsx)(c.default,{sortOptions:l})]})]}),E&&(b.length>0||w.start||w.end)&&(0,t.jsx)(x,{filters:b,handleFilter:U})]})}],520275)},50349,e=>{"use strict";e.s(["CardListing",()=>C,"CustomerCardListing",()=>k,"Default",()=>I,"DigitalWorkerCardListing",()=>E,"ListListing",()=>N,"getVariant",()=>y]);var t=e.i(843476),r=e.i(271645),i=e.i(859637),n=e.i(575917),a=e.i(841258),s=e.i(95761),o=e.i(724508),l=e.i(520275),c=e.i(506914),u=e.i(197203),d=e.i(46510),p=e.i(310099),h=e.i(133267),f=e.i(150105),g=e.i(90376),m=e.i(726875);let y=e=>{switch(e){case"cards":return"variant-cards";case"customer-cards":return"customer-cards";case"digital-worker-cards":return"variant-digital-worker-cards";default:return"variant-list"}},b=e=>{let{entityName:n,sourceId:a,widgetId:s,facets:o,numOfItemsPerPage:l}=e?.fields,c=(0,r.useRef)(null),u=y(e.variant||"list"),{language:p,country:h}=(0,g.useLocaleFromContext)(),f=e.fields?.sortOptions||[],b={eyebrow:e?.fields?.eyebrow?.value||"",heading:e?.fields?.heading?.value||"",subHeading:e?.fields?.subHeading?.value||"",description:e?.fields?.description?.value||"",thumbnail:e?.fields?.thumbnail?.value||"",logo:e?.fields?.logo?.value||"",stat:e?.fields?.stat?.value||"",statEyebrow:e?.fields?.statEyebrow?.value||"",link:e?.fields?.link?.value||"",isFeatured:e?.fields?.isFeatured?.value||""},x=e.fields?.suggestionBlocks?.map(e=>({name:e.fields?.suggestionBlockName?.value})),_=["text","count"],w=["asc","desc"],S=o?.map(e=>{let t=e?.fields?.fieldName?.value;if(!t)return null;let r={name:t},i=e?.fields?.sortField?.name?.toLowerCase(),n=e?.fields?.sortBy?.name?.toLowerCase();return i&&n&&_.includes(i)&&w.includes(n)&&(r.sort={name:i,order:n}),r}).filter(e=>null!==e),C={widgetType:n?.value,widgetId:s?.value,maxResults:l?.value||10,locale:{language:p,country:h},sources:[a?.value],facets:S&&S.length>0?{max:m.FACET_VALUES_MAX,types:S}:{all:!0,max:m.FACET_VALUES_MAX},suggestions:x&&x?.length>0?x:void 0,highlight:{fields:[e?.fields?.heading?.value]}},E=(0,d.useIsTablet)(),k=e?.fields?.facets?.find(e=>e?.url&&e.url.includes("search/filters")),N=k?.fields?.endDatefieldName?.value||"assetsenddate",I=k?.fields?.startDatefieldName?.value||"assetstartdate";
132return(0,t.jsxs)(i.SearchWrapper,{baseConfig:C,sortOptions:f,startDateFieldName:I,endDateFieldName:N,children:[(0,t.jsx)(A,{targetRef:c}),(0,t.jsxs)("div",{className:"w-full flex flex-col",ref:c,style:{scrollMarginTop:120},children:[(0,t.jsx)(T,{}),(0,t.jsx)("div",{className:"w-full mx-auto md:pt-padding-more md:px-general-spacing-margin-x md:pb-general-spacing-margin-y py-margin-less px-general-spacing-margin-x",children:(0,t.jsx)(v,{props:e,facets:o,sortOptions:f,isTablet:E,variant:u,fieldsMapping:b,entity:n?.value||""})})]})]})},v=({props:e,facets:s,sortOptions:o,isTablet:l,variant:c,fieldsMapping:u,entity:d})=>{let{results:p,loading:h,totalItems:g}=(0,i.useSearchData)(),{committedQuery:m}=(0,i.useSearchQuery)(),{filtersFacets:y,dateRange:b}=(0,i.useSearchControls)(),[v,T]=(0,r.useState)(!1),C=(0,r.useRef)(null),E=m&&m.trim().length>0||y&&y.length>0||b&&(b.start||b.end),k=h&&(p.length>0||g>0||!E);return(0,r.useEffect)(()=>(C.current&&(clearTimeout(C.current),C.current=null),k?T(!0):C.current=setTimeout(()=>{T(!1)},120),()=>{C.current&&(clearTimeout(C.current),C.current=null)}),[k]),(0,t.jsx)("div",{className:"relative",children:v?(0,t.jsx)(f.OverlayLoading,{isLoading:v}):(0,t.jsxs)("div",{className:"grid grid-cols-4 gap-spacing-spacing-40",children:[(0,t.jsx)("div",{className:"lg:col-span-1 col-span-4",children:(0,t.jsx)(x,{sitecoreFacets:s,sortOptions:o||[]})}),(0,t.jsxs)("div",{className:"lg:col-span-3 col-span-4",children:[(0,t.jsx)(w,{sortOptions:o||[],isTablet:l}),(0,t.jsx)(_,{variant:c}),(0,t.jsx)(n.default,{variant:c,fieldsMapping:u,entity:d}),(0,t.jsx)(S,{props:e}),(0,t.jsx)(a.default,{})]})]})})},x=({sitecoreFacets:e,sortOptions:r})=>(0,t.jsx)(l.default,{sitecoreFacets:e,sortOptions:r||[]}),_=({variant:e})=>{let{totalItems:r}=(0,i.useSearchData)();return"variant-digital-worker-cards"===e||r<=0?null:(0,t.jsx)(s.default,{})},w=({sortOptions:e,isTablet:r})=>{let{totalItems:n}=(0,i.useSearchData)(),{getDictionaryValue:a}=(0,p.default)();return r||n<=0?null:(0,t.jsxs)("div",{className:"flex flex-row justify-end items-center gap-space-between-tight mb-spacing-spacing-12",children:[(0,t.jsx)(c.default,{htmlFor:"search-sort",field:{value:`${a("Sort_By")}: `||""},tag:"span",className:"text-color-text-text-secondary text-typography-font-size-body-small font-typography-font-family-body leading-typography-line-height-body-small font-typography-font-weight-body text-color-text-text-secondary"}),(0,t.jsx)(o.default,{sortOptions:e})]})},T=()=>{let{query:e,setQuery:r,submitSearch:n,handleClearSearch:a}=(0,i.useSearchQuery)(),{suggestions:s,loading:o,error:l,trackSuggestionClick:c}=(0,i.useSearchData)();return(0,t.jsx)("div",{className:"border-solid border-color-border-mid border-b pt-layout-base-margin-y pr-general-spacing-margin-x pb-layout-base-margin-y pl-general-spacing-margin-x flex flex-col gap-20 items-center justify-start shrink-0 relative bg-[#170430] before:content-[''] before:absolute before:bg-[#170430] before:z-[-1] before:pointer-events-none before:left-1/2 before:top-0 before:-translate-x-1/2 before:w-screen before:h-full",children:(0,t.jsx)(u.SearchBar,{query:e,setQuery:r,onSubmit:n,suggestions:s,trackSuggestionClick:c,loading:o,error:l,suggestionsStyle:"absolute",handleClearSearch:a})})},S=({props:e})=>{let{results:n,loading:a,totalItems:s}=(0,i.useSearchData)(),{committedQuery:o}=(0,i.useSearchQuery)(),{filtersFacets:l,dateRange:c}
132=(0,i.useSearchControls)(),[u,d]=r.default.useState(!1),p=o&&o.trim().length>0||l&&l.length>0||c&&(c.start||c.end);return((0,r.useEffect)(()=>{if(a)return void d(!1);let e=setTimeout(()=>{d(!a&&0===n.length&&0===s&&!!p)},150);return()=>clearTimeout(e)},[a,n.length,s,p]),a||n.length>0||s>0||!p||!u)?null:(0,t.jsx)("div",{className:"max-w-[845px] mx-auto",children:(0,t.jsx)("div",{className:"text-typography-font-family-body text-typography-font-size-body-medium font-typography-font-weight-body leading-typography-line-height-body-medium text-color-icon-dark mb-space-between-less",children:(0,t.jsx)(h.default,{field:e.fields?.noResultsFound})})})},C=e=>(0,t.jsx)(b,{...e,variant:"cards"}),E=e=>(0,t.jsx)(b,{...e,variant:"digital-worker-cards"}),k=e=>(0,t.jsx)(b,{...e,variant:"customer-cards"}),N=e=>(0,t.jsx)(b,{...e,variant:"list"}),I=e=>(0,t.jsx)(b,{...e,variant:"list"}),A=({targetRef:e})=>{let{page:t}=(0,i.useSearchControls)(),[n,a]=r.default.useState(!0);return(0,r.useEffect)(()=>{if(n)return void a(!1);let t=e.current;if(t)try{t.scrollIntoView({behavior:"smooth",block:"start"})}catch{console.error("Failed to scroll to top")}},[t,e]),null}},588318,e=>{"use strict";e.s(["findComponent",0,function(e,t){return((e,t,r=!1)=>{let i=[],n=[];return!function e(a){if(null!=a&&(!0!==t(a)||(n.push(a),!r)))for(let t of Object.keys(a)){let r=a[t];r&&"object"==typeof r&&!i.find(e=>e===r)&&(i.push(r),e(r))}}(e),n})(e,e=>e.componentName===t&&"string"==typeof e.uid)}])},520593,e=>{"use strict";e.s(["Default",()=>o]);var t=e.i(843476),r=e.i(211418),i=e.i(271645),n=e.i(206303),a=e.i(39220),s=e.i(588318);let o=e=>{let{RenderingIdentifier:r}=e?.params||{},{base:o}=l(),c=(0,i.useRef)(null);(0,a.useScrollElementIntoView)(c.current,{stickyHeaderId:"header",scrollTargetId:"main-content"});let u=(0,s.findComponent)(e.rendering,"ArticleMain")?.length>0||(0,s.findComponent)(e.rendering,"SearchResult")?.length>0;return(0,t.jsxs)("div",{ref:c,className:o({isSearchLayout:u}),"data-component":"authorable/shared/site-structure/main-layout/mainlayout",id:r,children:[(0,t.jsx)(n.PlaceholderWrapper,{helpTextHideIf:!0,name:"custom-headless-breadcrumb",rendering:e.rendering,page:e.page}),(0,t.jsx)(n.PlaceholderWrapper,{page:e.page,name:"custom-headless-hero",rendering:e.rendering,helpTextContent:"placeholder: custom-headless-hero Use the following prefixes in the CTA link (URL or href field in Page Builder) to open videos in a modal popup: For YouTube videos, use the prefix yt# (e.g., yt#5SIg3Xq6aGc) For  Wistia videos, use the prefix wst# (e.g., wst#giuqj66gf3)"}),(0,t.jsx)(n.PlaceholderWrapper,{page:e.page,name:"custom-headless-main-content",rendering:e.rendering})]})},l=(0,r.tv)({slots:{base:["grid","grid-cols-1","m-auto","w-full","max-w-screen-dimensions-max-width","min-w-screen-dimensions-min-width"]},variants:{isSearchLayout:{true:{base:["gap-0","!pb-general-spacing-margin-y"]}}}})},887528,e=>{"use strict";var t=e.i(843476),r=e.i(271645),i=e.i(211418);e.i(879806);var n=e.i(871084),a=e.i(929955),s=e.i(310099),o=e.i(506914),l=e.i(296217),c=e.i(197203),u=e.i(607952),d=e.i(90376),p=e.i(618566),h=e.i(422674);let f=(0,i.tv)({slots:{searchBoxWrapper:["fixed inset-0 bg-white overflow-hidden h-[100dvh] flex flex-col transition-opacity duration-300 ease-out z-40","bg-[linear-gradient(111deg,_var(--color-core-color-1-600)_0%,_var(--color-bg-darkest)_80%,_var(--color-core-color-2-700)_100%)]"],overlayImage:"w-full h-full object-center object-cover no-repeat pointer-events-none z-[-1]",searchBoxContainer:"flex flex-col py-margin-base px-margin-base relative sm:sp
132ace-y-spacing-spacing-24 space-y-spacing-spacing-16 h-full flex-grow overflow-y-auto transition-transform duration-300 ease-out",closeButton:"border-general-border-width-button rounded-general-border-radius-button border-component-button-white-outline-border p-spacing-spacing-12 flex items-center justify-center ml-auto",searchBoxTitle:"bg-clip-text text-transparent bg-gradient-to-r from-color-core-color-2-400 via-color-core-gradient-1-stop-2 to-color-core-gradient-1-stop-1 from-[0%] via-[40%] to-[100%] font-typography-font-family-header font-typography-font-weight-large text-typography-font-size-large leading-typography-line-height-large text-center sm:pb-spacing-spacing-64 pb-spacing-spacing-32",searchIcon:"p-spacing-spacing-8 gap-[8px] flex items-center justify-center rounded-full text-color-icon-icon",inputWrapper:"flex items-center justify-between gap-space-between-less bg-white rounded-full px-spacing-spacing-16 py-spacing-spacing-10",inputBox:"w-full h-11 rounded-full outline-none text-color-text-text text-typography-font-family-body text-typography-font-size-body-large leading-typography-line-height-body-large font-typography-font-weight-body text-ellipsis overflow-hidden px-0.5",clearSearchIcon:"rounded-general-border-radius-button bg-color-fill-light flex items-center justify-center w-8 h-8",goSearchButton:"!px-spacing-spacing-16 !py-spacing-spacing-12 min-w-[79px] !w-auto !min-h-10 disabled:text-component-button-primary-filled-icon-disabled border-none [&_svg]:disabled:text-component-button-primary-filled-icon-disabled [&_svg]:text-component-button-primary-filled-text",suggestionItem:"text-white flex items-center justify-between w-full text-ellipsis overflow-hidden cursor-pointer hover:bg-component-button-primary-ghost-bg-hover rounded-full mb-spacing-spacing-8 group transition-all duration-300",suggestionItemText:"inline-block w-full py-spacing-spacing-10 px-spacing-spacing-16 truncate text-ellipsis overflow-hidden",suggestionItemArrow:"p-3 flex items-center justify-center",popularSearchesWrapper:"flex flex-col items-center justify-center max-w-[830px] w-full mx-auto py-spacing-spacing-24 border-t border-color-border-mid",popularSearchesTitle:"text-color-text-mid text-typography-font-family-body text-typography-font-size-body-large leading-typography-line-height-body-large font-typography-font-weight-body-bold",popularSearchesList:"flex flex-wrap items-center justify-center w-full mt-spacing-between-between-base sm:gap-spacing-spacing-24 gap-spacing-spacing-16 mt-spacing-spacing-24",popularItemButton:"!w-auto !min-w-2 !text-component-button-white-outline-text !border-component-button-white-outline-border !bg-component-button-white-outline-bg hover:!text-component-button-white-outline-text-hover hover:!border-component-button-white-outline-border-hover hover:!bg-component-button-white-outline-bg-hover whitespace-nowrap",inputSuggestionsWrapper:"flex flex-col justify-center max-w-[627px] mx-auto w-full space-y-spacing-spacing-24 overflow-y-auto flex-grow",searchBarWrapper:"flex flex-col flex-grow overflow-y-auto min-h-[350px] md:min-h-[430px]"},variants:{isOpen:{true:{searchBoxWrapper:"opacity-100",searchBoxContainer:"translate-y-0"},false:{searchBoxWrapper:"opacity-0",searchBoxContainer:"translate-y-4"}}}});e.s(["default",0,({closeSearch:e,entityName:i,rfkid:g,sources:m})=>{let[y,b]=(0,r.useState)(!1),[v,x]=(0,r.useState)(""),_=(0,r.useRef)(null),w=(0,r.useRef)(null),{language:T,country:S}=(0,d.useLocaleFromContext)(),C=()=>{let e=_.current;return e?Array.from(e.querySelectorAll('a[href], area[href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), button:not([disabled]), [tabindex]:not([tabindex="-1"])')).filter(e=>!e.hasAttribute("data-focus-sentinel")):[]},{suggestions:E,trackSuggestionClick:k,performSearch:N,loading:I,error:A}=(0,a.useSitecoreCloudSearch)({widgetType:i||"globalsearch",widgetId:g||"rfkid_7",maxResults:6,locale:{language:T,country:S},sources:m||["1173498"],suggestions:[{name:"global_search_did_you_mean"},{name:"global_search_auto_suggest"}]}),j=(0,h.useSitecoreContext)(),P=j?.sitecoreContext?.siteSettings,O=P?.searchTiles?.map(e=>e.searchTileCTA.jsonValue),L=P?.searchPageLink?.value?.href,D=P?.searchPageLink?.value?.target,{getDictionaryValue:R}=(0,s.default)(),M=(0,p.useRouter)(),B=(0,r.useRef)(N);(0,r.useEffect)(()=>{B.current=N},[N]),(0,r.useEffect)(()=>{let e=requestAnimationFrame(()=>b(!0));return()=>cancelAnimationFrame(e)},[]),(0,u.useBodyScrollLock)(!0),(0,r.useEffect)(()=>{let e=document.activeElement,t=setTimeout(()=>{w.current?.focus()},0);return()=>{clearTimeout(t),e?.focus?.()}},[]);let U=()=>{b(!1),setTimeout(()=>{e()},250)};(0,r.useEffect)(()=>{let e=setTimeout(()=>{v.trim().length>0?B.current(v.trim()):B.current("")},250);return()=>clearTimeout(e)},[v]);let{searchBoxWrapper:F,searchBoxContainer:$,closeButton:z,searchBoxTitle:q,popularSearchesWrapper:H,popularSearchesTitle:W,popularSearchesList:V,popularItemButton:G,searchBarWrapper:X}=f({isOpen:y});return(0,t.jsx)("div",{className:F(),ref:_,onKeyDown:e=>{"Escape"===e.key&&(e.preventDefault(),U())},role:"dialog","aria-modal":"true","aria-labelledby":"search-input",children:(0,t.jsxs)("div",{className:$(),children:[(0,t.jsx)("span",{tabIndex:0,"data-focus-sentinel":!0,"aria-hidden":"true",className:"sr-only",onFocus:()=>{let e=C();e[e.length-1]?.focus()}}),(0,t.jsx)("div",{className:"relative",children:(0,t.jsx)("button",{onClick:U,className:z(),children:(0,t.jsx)(n.SvgIcon,{icon:"close",size:"xxs",className:"!text-component-button-white-outline-icon m-1 [&_path]:stroke-[3]"})})}),(0,t.jsxs)("div",{className:X(),children:[(0,t.jsx)(o.default,{className:q(),field:{value:R("What_Are_You_Looking_For")}}),(0,t.jsx)(c.SearchBar,{query:v,setQuery:x,handleClearSearch:()=>{x(""),B.current("",void 0)},redirectToSearch:e=>{let t=e.trim();if(!t||!L)return;let r=`q=${encodeURIComponent(t)}`,i=`${L}${L.includes("?")?"&":"?"}${r}`;if("_blank"===D)window.open(i,"_blank","noopener,noreferrer"),U();else{if(i.startsWith("/"))M.push(i);else if(1)try{let e=new URL(i);e.origin===window.location.origin?M.push(`${e.pathname}${e.search}`):window.location.href=i}catch{window.location.href=i}U()}},suggestions:E,trackSuggestionClick:k,loading:I,error:A})]}),(0,t.jsxs)("div",{className:H(),children:[(0,t.jsx)(o.default,{className:W(),field:{value:R("Popular_Searches")}}),(0,t.jsx)("ul",{className:V(),children:O?.map((e,r)=>(0,t.jsx)("li",{className:"text-white text-center",children:(0,t.jsx)(l.default,{ctaComponentClass:"default",ctaVariant:"secondary",className:G(),field:e,onClick:()=>U()})},`${e}-${r}`))})]}),(0,t.jsx)("span",{tabIndex:0,"data-focus-sentinel":!0,"aria-hidden":"true",className:"sr-only",onFocus:()=>{let e=C();
132e[0]?.focus()}})]})})}])},745328,(e,t,r)=>{t.exports=[{name:"IFS",hostName:"*",language:"default"},{name:"IFS",hostName:"prod-ifs.vercel.app|prod-preview-ifs.vercel.app|prod-ifs.com|prod-preview.ifs.com|prod.ifs.com|www.ifs.com",language:"en"},{name:"IFSFoundation",hostName:"prod-ifsfoundation.vercel.app|prod-ifsfoundation.org|prod-foundation.vercel.app|www.ifsfoundation.org",language:"en"},{name:"IGT1",hostName:"prod-igt.vercel.app|www.igt1sl.com",language:"en"},{name:"Shared",hostName:"shared",language:"en"}]},288967,e=>{"use strict";var t=e.i(271645),r=e.i(618566),i=e.i(745328);let n=new Set(e.i(787884).locales.filter(e=>"default"!==e));e.s(["useLocalizedPageHref",0,function(){let e=(0,r.useParams)(),a=(0,r.usePathname)(),s=(0,t.useMemo)(()=>i.default.map(e=>e.name).filter(e=>!!e),[]),o=(0,t.useMemo)(()=>{let t=function(e){if(null==e)return null;let t=Array.isArray(e)?e.join("/"):e;return t?`/${t}`:""}(e?.path);return null!==t?t:function(e,t=[]){let r=e.split("/").filter(Boolean);if(0===r.length)return"";let i=new Set(t.map(e=>e.toLowerCase())),a=0;i.has(r[0]?.toLowerCase())&&(a=1);let s=r[a];s&&n.has(s)?a+=1:r[0]&&n.has(r[0])&&(a=1);let o=r.slice(a);return o.length?`/${o.join("/")}`:""}(a,s)},[e?.path,a,s]);return{buildHref:(0,t.useCallback)(e=>(function({targetLocale:e,pathSuffix:t,search:r=""}){let i=`/${"default"===e?"en":e}${"/"===t?"":t}`;return r?r.startsWith("?")?`${i}${r}`:`${i}?${r}`:i})({targetLocale:e,pathSuffix:o,search:window.location.search?window.location.search:""}),[o])}}],288967)},503441,e=>{"use strict";var t=e.i(843476),r=e.i(271645);let i=(0,r.createContext)(void 0);e.s(["HeaderProvider",0,({children:e})=>{let[n,a]=(0,r.useState)(null),[s,o]=(0,r.useState)(!1),[l,c]=(0,r.useState)(!1),[u,d]=(0,r.useState)(null),[p,h]=(0,r.useState)(!1),[f,g]=(0,r.useState)(!1),[m,y]=(0,r.useState)(!1),[b,v]=(0,r.useState)(!1),x=(0,r.useCallback)(()=>{a(null),o(!1),v(!1),y(!!l&&(f||null!==u||b||p))}
132,[l,f,u,b,p]),_=(0,r.useCallback)(e=>{e===n?a(null):a(e)},[n]),w=(0,r.useCallback)(e=>{o(e),e&&(a(null),v(!1))},[]),T=(0,r.useCallback)(()=>{g(!1),d(null),h(!1),v(!1),y(!1)},[]),S=(0,r.useCallback)(e=>{e===u?d(null):d(e)},[u]),C=(0,r.useCallback)(e=>{h(e),e&&(d(null),v(!1))},[]),E=(0,r.useCallback)(()=>{y(l?f||null!==u||p:null!==n||s)},[l,f,u,n,p,s]),k=(0,r.useCallback)(()=>{l?T():x()},[l,T,x]);return(0,t.jsx)(i.Provider,{value:{isDesktopDropdownOpen:n,isDesktopLanguageSelectorOpen:s,showSearch:b,isMobile:l,isMobileDropdownOpen:u,isMobileLanguageSelectorOpen:p,isMobileMenuOpen:f,isOverlayVisible:m,setDesktopDropdownOpen:_,setDesktopLanguageSelectorOpen:w,closeDesktopMenus:x,setIsMobile:c,setMobileDropdownOpen:S,setMobileLanguageSelectorOpen:C,setMobileMenuOpen:g,closeMobileMenu:T,setShowSearch:v,handleOverlayChange:E,handleRouteChange:k},children:e})},"useHeader",0,()=>{let e=(0,r.useContext)(i);if(void 0===e)throw Error("useHeader must be used within a HeaderProvider");return e}])},456080,e=>{"use strict";var t=e.i(271645),r=["title"],i=["title"],n=["title"],a=["title"],s=["title"];function o(){return(o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e}).apply(this,arguments)}function l(e,t){if(null==e)return{};var r,i,n=function(e,t){if(null==e)return{};var r,i,n={},a=Object.keys(e);for(i=0;i<a.length;i++)r=a[i],t.indexOf(r)>=0||(n[r]=e[r]);return n}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}e.s(["AE",0,function(e){var i=e.title,n=l(e,r);return t.default.createElement("svg",o({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},n),i&&t.default.createElement("title",null,i),t.default.createElement("path",{fill:"#FFF",d:"M0 0h513v342H0z"}),t.default.createElement("path",{fill:"#009e49",d:"M0 0h513v114H0z"}),t.default.createElement("path",{d:"M0 228h513v114H0z"}),t.default.createElement("path",{fill:"#ce1126",d:"M0 0h171v342H0z"}))},"BR",0,function(e){var r=e.title,n=l(e,i);return t.default.createElement("svg",o({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},n),r&&t.default.createElement("title",null,r),t.default.createElement("path",{fill:"#009b3a",d:"M0 0h513v342H0z"}),t.default.createElement("path",{fill:"#fedf00",d:"m256.5 19.3 204.9 151.4L256.5 322 50.6 170.7z"}),t.default.createElement("circle",{fill:"#FFF",cx:256.5,cy:171,r:80.4}),t.default.createElement("path",{fill:"#002776",d:"M215.9 165.7c-13.9 0-27.4 2.1-40.1 6 .6 43.9 36.3 79.3 80.3 79.3 27.2 0 51.3-13.6 65.8-34.3-24.9-31-63.2-51-106-51zm119 20.3c.9-5 1.5-10.1 1.5-15.4 0-44.4-36-80.4-80.4-80.4-33.1 0-61.5 20.1-73.9 48.6 10.9-2.2 22.1-3.4 33.6-3.4 46.8.1 89 19.5 119.2 50.6z"}))},"CA",0,function(e){var r=e.title,i=l(e,n);return t.default.createElement("svg",o({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},i),r&&t.default.createElement("title",null,r),t.default.createElement("path",{fill:"#FFF",d:"M0 0h513v342H0z"}),t.default.createElement("path",{d:"M0 0h142v342H0zm371 0h142v342H371zm-64.5 206 50.4-25.2-25.2-12.6V143l-50.4 25.2 25.2-50.4h-25.2L256.1 80l-25.2 37.8h-25.2l25.2 50.4-50.4-25.2v25.2l-25.2 12.6 50.4 25.2-12.6 25.2h50.4V269h25.2v-37.8h50.4z",fill:"red"}))},"MX",0,function(e){var r=e.title,i=l(e,a);return t.default.createElement("svg",o({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},i),r&&t.default.createElement("title",null,r),t.default.createElement("path",{fill:"#dc2339",d:"M342 0H0v341.3h513V0z"}),t.default.createElement("path",{fill:"#11865d",d:"M0 0h171v342H0z"}),t.default.createElement("path",{fill:"#FFF",d:"M171 0h171v342H171z"}),t.default.createElement("path",{fill:"#8C9157",d:"M195.8 171.2c0 21.6 11.5 41.7 30.3 52.5 5.8 3.4 13.2 1.4 16.6-4.4 3.4-5.8 1.4-13.2-4.4-16.6-11.3-6.5-18.2-18.5-18.2-31.5 0-6.7-5.4-12.1-12.1-12.1-6.7 0-12.2 5.4-12.2 12.1zm93.4 51.1c17.5-11.1 28-30.4 28-51.1 0-6.7-5.4-12.1-12.1-12.1s-12.1 5.4-12.1 12.1c0 12.4-6.3 24-16.8 30.7-5.7 3.5-7.5 10.9-4.1 16.7s10.9 7.5 16.7 4.1c0-.2.2-.3.4-.4z"}),t.default.createElement("ellipse",{fill:"#C59262",cx:256.5,cy:159.1,rx:24.3,ry:36.4}))},"US",0,function(e){var r=e.title,i=l(e,s);return t.default.createElement("svg",o({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},i),r&&t.default.createElement("title",null,r),t.default.createElement("path",{fill:"#FFF",d:"M0 0h513v342H0z"}),t.default.createElement("path",{d:"M0 0h513v26.3H0zm0 52.6h513v26.3H0zm0 52.6h513v26.3H0zm0 52.6h513v26.3H0zm0 52.7h513v26.3H0zm0 52.6h513v26.3H0zm0 52.6h513V342H0z",fill:"#D80027"}),t.default.createElement("path",{fill:"#2E52B2",d:"M0 0h256.5v184.1H0z"}),t.default.createElement("path",{d:"m47.8 138.9-4-12.8-4.4 12.8H26.2l
13210.7 7.7-4 12.8 10.9-7.9 10.6 7.9-4.1-12.8 10.9-7.7zm56.3 0-4.1-12.8-4.2 12.8H82.6l10.7 7.7-4 12.8 10.7-7.9 10.8 7.9-4-12.8 10.7-7.7zm56.5 0-4.3-12.8-4 12.8h-13.5l11 7.7-4.2 12.8 10.7-7.9 11 7.9-4.2-12.8 10.7-7.7zm56.2 0-4-12.8-4.2 12.8h-13.3l10.8 7.7-4 12.8 10.7-7.9 10.8 7.9-4.3-12.8 11-7.7zM100 75.3l-4.2 12.8H82.6L93.3 96l-4 12.6 10.7-7.8 10.8 7.8-4-12.6 10.7-7.9h-13.4zm-56.2 0-4.4 12.8H26.2L36.9 96l-4 12.6 10.9-7.8 10.6 7.8L50.3 96l10.9-7.9H47.8zm112.5 0-4 12.8h-13.5l11 7.9-4.2 12.6 10.7-7.8 11 7.8-4.2-12.6 10.7-7.9h-13.2zm56.5 0-4.2 12.8h-13.3l10.8 7.9-4 12.6 10.7-7.8 10.8 7.8-4.3-12.6 11-7.9h-13.5zm-169-50.6-4.4 12.6H26.2l10.7 7.9-4 12.7L43.8 50l10.6 7.9-4.1-12.7 10.9-7.9H47.8zm56.2 0-4.2 12.6H82.6l10.7 7.9-4 12.7L100 50l10.8 7.9-4-12.7 10.7-7.9h-13.4zm56.3 0-4 12.6h-13.5l11 7.9-4.2 12.7 10.7-7.9 11 7.9-4.2-12.7 10.7-7.9h-13.2zm56.5 0-4.2 12.6h-13.3l10.8 7.9-4 12.7 10.7-7.9 10.8 7.9-4.3-12.7 11-7.9h-13.5z",fill:"#FFF"}))}])},603874,e=>{"use strict";var t=e.i(843476),r=e.i(618566),i=e.i(271645),n=e.i(522016),a=e.i(211418),s=e.i(422674);e.i(879806);var o=e.i(871084),l=e.i(506914),c=e.i(310099),u=e.i(288967),d=e.i(503441),p=e.i(992210),h=e.i(136905),f=e.i(456080);let g={US:f.US,AE:f.AE,MX:f.MX,CA:f.CA,BR:f.BR},m=new Intl.DisplayNames(["en"],{type:"region"}),y=(0,a.tv)({slots:{base:["block","relative","text-left","md:mr-4"],buttonClasses:["block","w-full","px-spacing-spacing-12","py-spacing-spacing-8","md:p-xxs","rounded-md","border-gray-300","text-base","sm:text-sm","cursor-pointer","focus:outline-none","focus:ring-4","focus:ring-color-border-border-focus","hover:bg-color-surface-surface-secondary","group","transition-colors","duration-200"],imageContainer:["flex","items-center","w-full","justify-between","md:justify-start","hover:text-color-text-text"],countryNameWrapper:["flex","flex-col","ml-spacing-spacing-12","mr-5","truncate","lg:flex-col","capitalize","w-full","md:w-auto","text-left"],countryText:["text-typography-font-size-body-medium","font-semibold","leading-tight","text-color-text-text-secondary","group-hover:text-color-text-text","group-focus:text-color-text-text"],languageText:["text-typography-font-size-body-small","font-normal","leading-tight","text-color-text-text-secondary","group-hover:text-color-text-text","group-focus:text-color-text-text"],dropDownMenuWrapper:["absolute","left-0","right-0","bg-white","z-10","top-full","border-b","border-color-component-header-nav-bottom-border","overflow-hidden","transition-all","duration-300","ease-in-out","md:opacity-100","md:block","max-h-0","opacity-0","relative","md:absolute"],dropDownMenuList:["flex","flex-col","list-none","py-2","gap-spacing-spacing-8"],dropDownMenuColHeading:["font-semibold","text-typography-font-size-body-small","text-color-text-text-secondary","text-sm"],dropDownMenuItem:["cursor-pointer","list-none","relative","select-none"],dropDownImageWrapper:["flex","items-center","justify-start","w-full","px-spacing-spacing-12","py-spacing-spacing-8","rounded-general-border-radius-button","border","!border-transparent","border-width-025","group","hover:bg-color-fill-fill-hover","hover:!border-color-border-border-hover","focus:bg-color-fill-fill-hover","focus:!border-color-border-border-hover","focus:outline-none","focus:ring-4","focus:ring-color-border-border-focus"],dropDownItemName:["block","font-semibold","ml-3","capitalize","flex","flex-col"],gridContainer:["grid","w-full","grid-cols-1","md:grid-cols-2","lg:grid-cols-3","xl:grid-cols-4","md:gap-8","md:p-8"],gridWrapper:["max-w-screen-dimensions-max-width","flex","xl:mx-auto","md:px-general-spacing-margin-x"],gridSection:["px-spacing-spacing-8","bg-color-surface-surface","border-b","overflow-hidden","border-t","border-color-component-header-nav-bottom-border"],flagIcon:["mt-0.5","self-baseline"],chevronContainer:["flex"],buttonIcon:["duration-200","h-4","w-4","transition"],checkmarkIcon:["ml-auto","opacity-0","transition-opacity","duration-200","text-component-header-nav-link-icon"],instructions:["px-spacing-spacing-8","py-spacing-spacing-16","font-bold","text-left","md:hidden"]},variants:{isSelected:{false:{dropDownMenuItem:[],checkmarkIcon:["group-hover:opacity-100","group-focus:opacity-100"],countryText:["text-component-header-nav-language-selector-text","group-hover:text-color-text-text"],languageText:["text-component-header-nav-language-selector-text","group-hover:text-color-text-text"]},true:{dropDownMenuItem:[],checkmarkIcon:["opacity-100","text-component-header-mega-menu-language-item-icon-active","group-hover:opacity-100","group-focus:opacity-100"],countryText:["text-component-header-nav-language-selector-text"],languageText:["text-component-header-nav-language-selector-text"]}},isMainButton:{true:{countryText:["group-hover:!text-component-header-nav-language-selector-text"],languageText:["group-hover:!text-component-header-nav-language-selector-text"]},false:{}},isOverlayVisible:{true:{overlay:["block"],dropDownMenuWrapper:["md:block","max-h-screen","opacity-100","relative","md:absolute","overflow-y-auto"],buttonIcon:["rotate-0","text-component-header-nav-link-icon"]},false:{overlay:["hidden"],dropDownMenuWrapper:["md:hidden","max-h-0","opacity-0","relative","md:absolute"],buttonIcon:["rotate-180","text-component-header-nav-link-icon"]}}},compoundVariants:[{isMainButton:!0,isOverlayVisible:!0,class:{countryText:["text-component-header-nav-language-selector-text"],languageText:["text-component-header-nav-language-selector-text"]}}]});e.s(["default",0,({regionList:e})=>{let a=(0,r.useParams)(),f=a?.locale??"",{buildHref:b}=(0,u.useLocalizedPageHref)(),{isMobile:v,isMobileLanguageSelectorOpen:x,isDesktopLanguageSelectorOpen:_,setMobileLanguageSelectorOpen:w,setDesktopLanguageSelectorOpen:T,closeDesktopMenus:S,closeMobileMenu:C}=(0,d.useHeader)(),E=(0,i.useRef)(null),k=(0,i.useRef)(null),{getDictionaryValue:N}
132=(0,c.default)(),I=(0,s.useSitecoreContext)(),A=I?.sitecoreContext?.languages??[],j=A.find(e=>e.isoCode===f),P=(0,i.useCallback)(e=>{let t=e?.countryCode,{language:r,country:i}=((e,t)=>{if("US"===t&&!e.includes("United States"))return{language:e,country:"United States"};let r=e.match(/(.*?)\s*\((.*?)\)/);return r?{language:r[1].trim(),country:r[2].trim()}:{language:e,country:m.of(t.toUpperCase())}})(e?.nativeName||"",t||"");return{language:(0,p.capitalizeFirstLetter)(r),country:i}},[]),{language:O,country:L}=P(j),D=g[j?.countryCode],R=v?x:_,M=v?w:T,B=v?C:S,U=(0,i.useCallback)(e=>{if("Enter"===e.key||" "===e.key)e.preventDefault(),M(!R);else if("Escape"===e.key)M(!1),B();else if("ArrowDown"===e.key&&R){e.preventDefault();let t=k.current?.querySelector('[role="menuitem"]');t?.focus()}},[R,M,B]),F=(0,i.useCallback)(e=>{v||null===e.relatedTarget||E.current?.contains(e.relatedTarget)||k.current?.contains(e.relatedTarget)||(M(!1),B())},[B,M,v]),$=(0,i.useCallback)(e=>{if("Escape"===e.key)M(!1),B(),E.current?.querySelector("button")?.focus();else if("Tab"!==e.key||e.shiftKey){if("ArrowDown"===e.key){e.preventDefault();let t=e.target,r=t.parentElement?.nextElementSibling?.querySelector('[role="menuitem"]');if(r)r.focus();else{let e=k.current?.querySelector('[role="menuitem"]');e?.focus()}}else if("ArrowUp"===e.key){e.preventDefault();let t=e.target,r=t.parentElement?.previousElementSibling?.querySelector('[role="menuitem"]');if(r)r.focus();else{let e=k.current?.querySelectorAll('[role="menuitem"]'),t=e?.[e.length-1];t?.focus()}}}else{let t=k.current?.querySelectorAll('[role="menuitem"]'),r=t?.[t.length-1];e.target===r&&(M(!1),B())}},[M,B]),z=(0,i.useCallback)(e=>{e.preventDefault(),e.stopPropagation(),M(!R)},[R,M]),{base:q,buttonClasses:H,imageContainer:W,countryNameWrapper:V,dropDownMenuWrapper:G,dropDownMenuList:X,dropDownImageWrapper:K,dropDownItemName:Y,dropDownMenuColHeading:Q,instructions:J,buttonIcon:Z,countryText:ee,languageText:et,gridContainer:er,gridWrapper:ei,gridSection:en,flagIcon:ea,chevronContainer:es,checkmarkIcon:eo}=y({isOverlayVisible:R});return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:q(),ref:E,...(0,h.getTestProps)("component-header-language-selector"),children:[(0,t.jsx)("button",{"aria-expanded":R,"aria-haspopup":"true","aria-label":`${N("LanguageSelectorAriaLabel")||"Language selected is"} ${O}`,className:H(),onClick:z,onKeyDown:U,onBlur:F,type:"button",role:"menuitem",...(0,h.getTestProps)("select-button"),children:(0,t.jsxs)("div",{className:W(),children:[D&&(0,t.jsx)(D,{width:28,height:20,className:ea()}),(0,t.jsxs)("div",{className:V(),children:[(0,t.jsx)("span",{className:"sr-only",children:"Language selected is"}),(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("span",{className:ee({isMainButton:!0}),...(0,h.getTestProps)("country-text"),children:[L," ",""]}),(0,t.jsx)("span",{className:et({isMainButton:!0,isOverlayVisible:R}),...(0,h.getTestProps)("language-text"),children:O})]})]}),(0,t.jsx)("span",{className:es(),...(0,h.getTestProps)("chevron"),children:(0,t.jsx)(o.SvgIcon,{className:Z(),fill:"currentColor",icon:R?"chevron-up":"chevron-down",size:"xs",viewBox:"0 0 24 24"})})]})}),(0,t.jsx)("div",{className:J(),...(0,h.getTestProps)("language-selector-instructions"),children:N("LanguageSelectorInstructions")||"Choose your language"})]}),R&&(0,t.jsx)("div",{className:G(),role:"group","aria-labelledby":"language-selector-menu",ref:k,onKeyDown:$,...(0,h.getTestProps)("language-dropdown"),children:(0,t.jsx)("div",{className:en(),children:(0,t.jsxs)("div",{className:ei(),children:[(0,t.jsx)("h2",{id:"language-selector-menu",className:"sr-only",children:N("LanguageSelectorMenuTitle")||"Choose your language"}),(0,t.jsx)("div",{className:er(),children:e?.map(e=>e.fields?.languageList?.some(e=>{let t=e.fields?.["Regional Iso Code"]?.value;return A.some(e=>e.isoCode===t||e.isoCode.startsWith(t+"-")||t.startsWith(e.isoCode+"-"))})?(0,t.jsxs)("div",{role:"group","aria-labelledby":`language-region-${e.id}`,children:[(0,t.jsx)(l.default,{field:e.fields?.regionName,tag:"h2",className:Q(),id:`language-region-${e.id}`,...(0,h.getTestProps)(`language-region-${e.id}`)}),(0,t.jsx)("ul",{className:X(),role:"presentation",children:e.fields?.languageList?.map(e=>{let r=e.fields?.["Regional Iso Code"]?.value,i=A.find(e=>e.isoCode===r||e.isoCode.startsWith(r+"-")||r.startsWith(e.isoCode+"-"));if(!i)return null;let a=j?.isoCode===i.isoCode,{dropDownMenuItem:s}=y({isSelected:a}),l=r?.split("-")[1],c=g[l];c||console.error(`Include the country: ${l} in the Flags Array.`);let{language:u,country:d}=P(i),p=`${d} ${u}`;return(0,t.jsx)("li",{role:"presentation",onBlur:F,className:s(),...(0,h.getTestProps)("header-language-dropdown-item"),children:(0,t.jsxs)(n.default,{href:b(i.isoCode),className:K(),role:"menuitem",tabIndex:0,"aria-current":a?"true":void 0,"aria-label":a?`${p} ${N("IsSelected")||"is selected"}`:p,onClick:()=>{B(),M(!1)},onKeyDown:e=>
132{("Enter"===e.key||" "===e.key)&&(e.preventDefault(),B(),M(!1),window.location.href=e.currentTarget.href)},...(0,h.getTestProps)(`dropdown-link-${e.id}`),children:[c&&(0,t.jsx)(c,{width:28,height:20,className:ea(),...(0,h.getTestProps)("flag-icon")}),(0,t.jsxs)("span",{className:Y(),children:[(0,t.jsxs)("span",{className:ee({isSelected:a}),children:[d," ",""]}),(0,t.jsx)("span",{className:et({isSelected:a}),children:u}),a&&(0,t.jsx)("span",{className:"sr-only",children:N("IsSelected")||"is selected"})]}),(0,t.jsx)(o.SvgIcon,{icon:"checkmark",size:"s",viewBox:"0 0 24 24",className:eo({isSelected:a})})]})},e.id)})})]},e.id):null)})]})})})]})}])},227832,e=>{"use strict";var t=e.i(843476),r=e.i(296217),i=e.i(38930),n=e.i(136905),a=e.i(211418),s=e.i(618566);let o=(0,a.tv)({slots:{logoContainer:["xl:pr-margin-base","flex","flex-row","gap-0","items-center","justify-start","relative"],logoWrapper:["self-stretch","relative","overflow-hidden"],logoImage:["h-[100%]"]}});e.s(["default",0,({logo:e,logoLink:a,isMobile:l})=>{let{logoContainer:c,logoWrapper:u,logoImage:d}=o(),p=(0,s.useParams)(),h=p?.locale??"",f=a?.value?.href==="/"||!!h&&"en"!==h&&a?.value?.href===`/${h}`||a?.value?.href?.endsWith("/"),g=e?.value?.alt||"IFS",m=f?`${g} – Home`:"",y=m?void 0:`${g} – Home`;return(0,t.jsx)("div",{className:c(),children:(0,t.jsx)("div",{className:u(),style:{aspectRatio:"103.2/48"},children:(0,t.jsxs)(r.default,{ctaComponentClass:"default",field:a?.value,role:l?"":"menuitem","aria-label":y,...(0,n.getTestProps)("header-logo"),children:[(0,t.jsx)(i.default,{className:d(),field:e?{...e,value:{...e.value,alt:m}}:e,priority:!0}),!m&&(0,t.jsx)("span",{className:"sr-only",children:y||`${g} – Home`})]})})})}])},775518,e=>{"use strict";var t=e.i(618566),r=e.i(271645);let i=(e,i=["routeChangeComplete"],n=!1)=>{let a=(0,t.usePathname)(),s=(0,r.useRef)(null);(0,r.useEffect)(()=>{null!==s.current&&s.current!==a&&e(),s.current=a},[a,e]),(0,r.useEffect)(()=>(n&&window.addEventListener("hashchange",e),()=>{n&&window.removeEventListener("hashchange",e)}),[e,n])};e.s(["useOnHashChange",0,function(e){return i(e,["routeChangeComplete"],!0)},"useOnRouteChange",0,i])},609443,e=>{"use strict";var t=e.i(843476),r=e.i(211418),i=e.i(506914);let n=(0,r.tv)({slots:{searchButton:["bg-component-header-nav-button-bg","rounded-component-header-nav-button-border-radius","border-solid","border-component-header-nav-button-border","border","pt-spacing-spacing-8","pr-spacing-spacing-24","pb-spacing-spacing-8","pl-spacing-spacing-16","flex","flex-row","gap-2","items-center","justify-start","flex-1","overflow-hidden","cursor-pointer","text-left","min-w-0"],searchIcon:["shrink-0","w-6","h-6","overflow-visible","[&_path]:fill-component-header-icon"],searchText:["text-component-header-nav-button-text","text-left","font-body-medium-font-family","text-body-medium-font-size","leading-body-medium-line-height","font-body-medium-font-weight","flex-1","overflow-hidden","text-ellipsis","whitespace-nowrap","min-w-0"]}});e.s(["default",0,({searchPlaceholder:e,setShowSearch:r})=>{let{searchButton:a,searchIcon:s,searchText:o}=n();return e?.value?(0,t.jsxs)("button",{className:a(),"aria-label":"Search",onClick:()=>{r(!0)},children:[(0,t.jsx)("svg",{className:s(),style:{aspectRatio:"1"},width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,t.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11 4C7.13401 4 4 7.13401 4 11C4 14.866 7.13401 18 11 18C12.8859 18 14.5977 17.2542 15.8564 16.0414C15.8827 16.0072 15.9115 15.9742 15.9429 15.9429C15.9742 15.9115 16.0072 15.8827 16.0414 15.8564C17.2542 14.5977 18 12.8859 18 11C18 7.13401 14.866 4 11 4ZM18.0319 16.6177C19.2635 15.078 20 13.125 20 11C20 6.02944 15.9706 2 11 2C6.02944 2 2 6.02944 2 11C2 15.9706 6.02944 20 11 20C13.125 20 15.078 19.2635 16.6177 18.0319L20.2929 21.7071C20.6834 22.0976 21.3166 22.0976 21.7071 21.7071C22.0976 21.3166 22.0976 20.6834 21.7071 20.2929L18.0319 16.6177Z"})}),(0,t.jsx)("span",{className:o(),children:(0,t.jsx)(i.default,{field:e})})]}):null}])},552601,e=>{"use strict";var t=e.i(843476);let r=(0,e.i(211418).tv)({slots:{menuButton:["bg-component-header-nav-button-bg","rounded-component-header-nav-button-border-radius","p-spacing-spacing-8","flex","flex-row","gap-2","items-center","justify-center","shrink-0","overflow-hidden","cursor-pointer"],menuIcon:["shrink-0","w-6","h-6","overflow-visible","[&_path]:fill-component-header-icon"]}});e.s(["default",0,({isMobileMenuOpen:e,onToggle:i})=>{let{menuButton:n,menuIcon:a}=r();return(0,t.jsx)("button",{className:n(),onClick:i,"aria-expanded":e,"aria-label":e?"Close Menu":"Open Menu","aria-controls":"mobile-menu-items",type:"button",children:e?(0,t.jsx)("svg",{className:a(),width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,t.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.29289 5.29289C5.68342 4.90237 6.31658 4.90237 6.70711 5.29289L12 10.5858L17.2929 5.29289C17.6834 4.90237 18.3166 4.90237 18.7071 5.29289C19.0976 5.68342 19.0976 6.31658 18.7071 6.70711L13.4142 12L18.7071 17.2929C19.0976 17.6834 19.0976 18.3166 18.7071 18.7071C18.3166 19.0976 17.6834 19.0976 17.2929 18.7071L12 13.4142L6.70711 18.7071C6.31658 19.0976 5.68342 19.0976 5.29289 18.7071C4.90237 18.3166 4.90237 17.6834 5.29289 17.2929L10.5858 12L5.29289 6.70711C4.90237 6.31658 4.90237 5.68342 5.29289 5.29289Z"})}):(0,t.jsx)("svg",{className:a(),width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,t.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2 6C2 5.44772 2.44772 5 3 5H21C21.5523 5 22 5.44772 22 6C22 6.55228 21.5523 7 21 7H3C2.44772 7 2 6.55228 2 6ZM2 12C2 11.4477 2.44772 11 3 11H21C21.5523 11 22 11.4477 22 12C22 12.5523 21.5523 13 21 13H3C2.44772 13 2 12.5523 2 12ZM2 18C2 17.4477 2.44772 17 3 17H21C21.5523 17 22 17.4477 22 18C22 18.5523 21.5523 19 21 19H3C2.44772 19 2 18.5523 2 18Z"})})})}])},465133,e=>{"use strict";var t=e.i(843476),r=e.i(211418),i=e.i(506914),n=e.i(296217),a=e.i(136905),s=e.i(78737);let o=(0,r.tv)({slots:{menuItemsList:["pt-spacing-spacing-16","pb-spacing-spacing-16","flex","flex-col","gap-spacing-spacing-8","items-start","justify-start","self-stretch","flex-1","relative"],menuDropdownItem:["text-component-header-text","bg-component-header-nav-item-dropdown-bg","rounded-component-header-nav-dropdown-border-radius","pt-spacing-spacing-12","pr-general-spacing-margin-x","pb-spacing-spacing-12","pl-general-spacing-margin-x","flex","flex-row","gap-4","items-center","justify-start","self-stretch","shrink-0","relative","w-full","text-left","cursor-pointer"],menuDropdownItemText:["text-component-header-text","text-left","font-typography-font-family-body","text-typography-font-size-body-large","leading-typography-line-height-body-medium","font-typography-font-weight-button","relative","flex-1"],menuDropdownItemIcon:["shrink-0","w-5","h-5","relative","overflow-visible","[&_path]:fill-component-header-icon"]}});e.s(["default",0,({navigationList:e,dropdownOpen:r,onMenuItemClick:l})=>{let{menuItemsList:c,menuDropdownItem:u,menuDropdownItemText:d,menuDropdownItemIcon:p}=o();return(0,t.jsx)("ul",{className:c(),role:"presentation",children:e?.map((e,o)=>{let c=e?.fields?.megaMenuList,h=e?.fields,f=h?.disableFlyout,g=h?.clickableLink,m=f?.value===!0,y=!m&&c&&c.length>0,b=g?.value?.href,v=g?.value?.href?.startsWith("http://");return(0,t.jsx)("li",{className:"list-none m-0 relative w-full",role:"presentation",children:m||!y?(0,t.jsxs)(t.Fragment,{children:[v?(0,t.jsx)("div",{className:u(),role:"menuitem",...(0,a.getTestProps)(`header-mobile-nav-label-${o+1}`),children:(0,t.jsx)("span",{className:d(),children:e?.fields?.navigationTitle?.value})}):b&&(0,t.jsx)(n.default,{field:g,ctaComponentClass:"default",ctaVariant:"custom",className:u(),role:"menuitem",...(0,a.getTestProps)(`header-mobile-nav-link-${o+1}`),cdpEvent:s.HEADER_NAVIGATION_CDP,children:(0,t.jsx)("span",{className:d(),children:g?.value?.text||e?.fields?.navigationTitle?.value})}),!b&&!v&&(0,t.jsx)("div",{className:u(),role:"menuitem",...(0,a.getTestProps)(`header-mobile-nav-label-${o+1}`),children:(0,t.jsx)("span",{className:d(),children:e?.fields?.navigationTitle?.value})})]}):y?(0,t.jsxs)("button",{className:u(),onClick:()=>l(o),"aria-haspopup":"true","aria-expanded":r===o,type:"button",role:"menuitem",...(0,a.getTestProps)(`header-mobile-nav-item-${o+1}`),children:[(0,t.jsx)("span",{className:d(),children:(0,t.jsx)(i.default,{field:e?.fields?.navigationTitle})}),(0,t.jsx)("svg",{className:p(),width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",children:r===o?(0,t.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.91076 15.5893C6.58533 15.2639 6.58533 14.7363 6.91076 14.4108L11.3215 10.0001L6.91076 5.58934C6.58533 5.2639 6.58533 4.73626 6.91076 4.41083C7.2362 4.08539 7.76384 4.08539 8.08928 4.41083L13.0893 9.41083C13.4147 9.73626 13.4147 10.2639 13.0893 10.5893L8.08928 15.5893C7.76384 15.9148 7.2362 15.9148 6.91076 15.5893Z"}):(0,t.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.91076 4.41083C7.2362 4.08539 7.76384 4.08539 8.08928 4.41083L13.0893 9.41083C13.4147 9.73626 13.4147 10.2639 13.0893 10.5893L8.08928 15.5893C7.76384 15.9148 7.2362 15.9148 6.91076 15.5893C6.58533 15.2639 6.58533 14.7363 6.91076 14.4108L11.3215 10.0001L6.91076 5.58934C6.58533 5.2639 6.58533 4.73626 6.91076 4.41083Z"})})]}):null},e.id||o)})})}])},290882,e=>{"use strict";var t=e.i(843476),r=e.i(211418),i=e.i(506914),n=e.i(296217),a=e.i(38930),s=e.i(136905),o=e.i(78737);let l=(0,r.tv)({slots:{megaMenuContainer:["flex","flex-col","gap-0","items-start","justify-start","w-full","h-full","relative","overflow-y-auto","bg-component-header-mega-menu-bg","bg-gradient-to-b","from-component-header-mega-menu-bg-stop-1","to-component-header-mega-menu-bg-stop-2","from-60%","to-100%"],megaMenuInner:["pt-spacing-spacing-16","pb-spacing-spacing-16","flex","flex-col","gap-spacing-spacing-24","items-start","justify-start","self-stretch","shrink-0","relative"],megaMenuBackButton:["bg-component-header-nav-item-dropdown-bg-active","rounded-component-header-nav-dropdown-border-radius","pt-spacing-spacing-12","pr-general-spacing-margin-x","pb-spacing-spacing-12","pl-general-spacing-margin-x","flex","flex-row","gap-space-between-less","items-center","justify-start","shrink-0","w-[375px]","relative","cursor-pointer","text-left"],megaMenuBackIcon:["shrink-0","w-5","h-5","relative","overflow-visible","[&_path]:fill-component-header-icon"],megaMenuBackText:["text-component-header-text","text-left","font-typography-font-family-body","text-typography-font-size-body-large","leading-typography-line-height-body-medium","font-typography-font-weight-button","relative","flex-1"],megaMenuSection:["flex","flex-col","gap-3","items-start","justify-start","self-stretch","shrink-0","relative"],megaMenuCategoryWrapper:["flex","flex-col","gap-2","items-start","justify-start","self-stretch","shrink-0","relative"],megaMenuCategoryContent:["pt-spacing-spacing-1","pr-spacing-spacing-24","pb-spacing-spacing-24","pl-sp
132acing-spacing-24","flex","flex-col","gap-0","items-start","justify-start","self-stretch","shrink-0","relative"],megaMenuCategoryContentAlt:["pt-spacing-spacing-0","pr-spacing-spacing-24","pb-spacing-spacing-24","pl-spacing-spacing-24","flex","flex-col","gap-0","items-start","justify-start","self-stretch","shrink-0","relative"],megaMenuCategoryInner:["flex","flex-col","gap-spacing-spacing-16","items-start","justify-start","self-stretch","shrink-0","relative"],megaMenuCategoryHeader:["flex","flex-col","gap-1","items-start","justify-start","self-stretch","shrink-0","relative"],megaMenuCategoryTitleWrapper:["flex","flex-row","gap-2","items-center","justify-start","self-stretch","shrink-0","relative"],megaMenuCategoryTitle:["text-component-header-mega-menu-category-label","text-left","font-typography-font-family-header","text-typography-font-size-xsmall","leading-typography-line-height-xsmall","font-typography-font-weight-xsmall","relative"],megaMenuDivider:["border-solid","border-component-header-menu-item-list-border","border-t","border-r-[0]","border-b-[0]","border-l-[0]","self-stretch","shrink-0","h-0","relative"],megaMenuLinksWrapper:["flex","flex-col","gap-spacing-spacing-16","items-start","justify-start","self-stretch","shrink-0","relative"],megaMenuLinkItem:["pb-spacing-spacing-1","flex","flex-row","gap-0","items-start","justify-start","self-stretch","shrink-0","relative","group"],megaMenuLinkInner:["text-component-header-text","border-solid","border-component-header-mega-menu-link-border","border-b","p-spacing-spacing-2","flex","flex-row","gap-spacing-spacing-8","items-center","justify-start","relative","hover:border-component-header-mega-menu-link-border-hover","[&>svg]:text-component-header-icon-hover","[&>svg]:ml-0","focus:!bg-transparent","focus:no-underline","focus:[&>svg]:hover:text-component-header-icon-hover"],megaMenuLinkText:["text-component-header-text","text-left","font-typography-font-family-body","text-typography-font-size-body-large","leading-typography-line-height-body-large","font-typography-font-weight-body","relative"],megaMenuLinkArrowIcon:["scale-x-0","group-hover:scale-x-100"],megaMenuCtaWrapper:["flex","flex-col","gap-space-between-base","items-start","justify-start","self-stretch","shrink-0","relative"],megaMenuCtaInner:["flex","flex-col","gap-4","items-start","justify-start","self-stretch","shrink-0","relative"],megaMenuCtaButton:["p-spacing-spacing-2","flex","flex-row","gap-spacing-spacing-8","items-center","justify-center","shrink-0","relative"],megaMenuCtaText:["text-component-header-text","text-center","font-typography-font-family-body","text-typography-font-size-body-medium","leading-typography-line-height-body-small","font-typography-font-weight-button","relative"],megaMenuCtaIcon:["shrink-0","w-5","h-5","relative","overflow-visible","[&_path]:fill-component-header-icon"],megaMenuFeatureWrapper:["pt-padding-none","pr-spacing-spacing-24","pb-padding-more","pl-spacing-spacing-24","flex","flex-col","gap-space-between-more","items-start","justify-start","self-stretch","shrink-0","relative"],megaMenuFeatureSection:["border-solid","border-component-header-menu-item-list-border","border-t","border-r-[0]","border-b-[0]","border-l-[0]","self-stretch","shrink-0","h-0","relative"],megaMenuFeatureContainer:["flex","flex-col","gap-space-between-base","items-start","justify-start","self-stretch","shrink-0","relative","overflow-hidden","rounded-lg"],megaMenuFeatureInner:["flex","flex-col","gap-spacing-spacing-40","items-start","justify-start","self-stretch","shrink-0","relative"],megaMenuFeatureRow:["flex","flex-row","gap-general-spacing-gutter","items-center","justify-start","self-stretch","shrink-0","relative"],megaMenuFeatureCard:["bg-color-surface-light","rounded-lg","flex","flex-col","gap-spacing-spacing-16","items-start","justify-start","flex-1","relative","overflow-hidden"],megaMenuFeatureImageWrapper:["self-stretch","shrink-0","relative","overflow-hidden"],megaMenuFeatureImage:["w-[100%]","h-auto"],megaMenuFeatureContent:["pr-padding-tight","pb-padding-tight","pl-padding-tight","flex","flex-col","gap-3","items-start","justify-start","self-stretch","shrink-0","relative"],megaMenuFeatureTextWrapper:["flex","flex-col","gap-spacing-spacing-4","items-start","justify-start","self-stretch","shrink-0","relative"],megaMenuFeatureTitle:["text-component-header-mega-menu-feature-description","text-left","font-header-xsmall-font-family","text-header-xsmall-font-size","leading-header-xsmall-line-height","font-header-xsmall-font-we
132ight","relative","self-stretch"],megaMenuFeatureActions:["flex","flex-row","gap-3","items-start","justify-start","shrink-0","relative","[&_path]:fill-component-button-tonal-link-icon"],megaMenuFeatureButton:["p-spacing-spacing-2","flex","flex-row","gap-spacing-spacing-8","items-center","justify-center","shrink-0","relative"],megaMenuFeatureButtonText:["text-component-button-tonal-link-text","text-center","font-typography-font-family-body","text-typography-font-size-body-medium","leading-typography-line-height-body-small","font-typography-font-weight-button","relative"],megaMenuFeatureButtonIcon:["shrink-0","w-5","h-5","relative","overflow-visible"]}});e.s(["default",0,({navigationList:e,dropdownOpen:r,onBackClick:c})=>{let{megaMenuContainer:u,megaMenuInner:d,megaMenuBackButton:p,megaMenuBackIcon:h,megaMenuBackText:f,megaMenuSection:g,megaMenuCategoryWrapper:m,megaMenuCategoryContent:y,megaMenuCategoryContentAlt:b,megaMenuCategoryInner:v,megaMenuCategoryHeader:x,megaMenuCategoryTitleWrapper:_,megaMenuCategoryTitle:w,megaMenuDivider:T,megaMenuLinksWrapper:S,megaMenuLinkItem:C,megaMenuLinkInner:E,megaMenuLinkText:k,megaMenuLinkArrowIcon:N,megaMenuCtaWrapper:I,megaMenuCtaInner:A,megaMenuCtaButton:j,megaMenuCtaText:P,megaMenuCtaIcon:O,megaMenuFeatureWrapper:L,megaMenuFeatureSection:D,megaMenuFeatureContainer:R,megaMenuFeatureInner:M,megaMenuFeatureRow:B,megaMenuFeatureCard:U,megaMenuFeatureImageWrapper:F,megaMenuFeatureImage:$,megaMenuFeatureContent:z,megaMenuFeatureTextWrapper:q,megaMenuFeatureTitle:H,megaMenuFeatureActions:W,megaMenuFeatureButton:V,megaMenuFeatureButtonText:G,megaMenuFeatureButtonIcon:X}=l(),K=`mobile-mega-menu-heading-${r}`,Y=null!==r?e[r]:null,Q=Y?.fields,J=Q?.disableFlyout;return null!==r&&e[r]&&J?.value!==!0?(0,t.jsx)("div",{className:u(),children:null!==r&&e[r]&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("h2",{id:K,className:"sr-only",children:Y?.fields?.navigationTitle?.value||"Navigation menu"}),(0,t.jsxs)("div",{className:d(),role:"menu","aria-labelledby":K,children:[(0,t.jsxs)("button",{className:p(),onClick:c,"aria-label":"Back to main menu",type:"button",...(0,s.getTestProps)("header-mobile-mega-menu-back"),children:[(0,t.jsx)("svg",{className:h(),width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",children:(0,t.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.0893 4.41083C13.4147 4.73626 13.4147 5.2639 13.0893 5.58934L8.67853 10.0001L13.0893 14.4108C13.4147 14.7363 13.4147 15.2639 13.0893 15.5893C12.7638 15.9148 12.2362 15.9148 11.9108 15.5893L6.91076 10.5893C6.58533 10.2639 6.58533 9.73626 6.91076 9.41083L11.9108 4.41083C12.2362 4.08539 12.7638 4.08539 13.0893 4.41083Z"})}),(0,t.jsx)("span",{className:f(),children:(0,t.jsx)(i.default,{field:e[r]?.fields?.navigationTitle})})]}),e[r]?.fields?.megaMenuList?.map((e,a)=>{let{megaMenuTitle:l,megaMenuLinks:c,megaMenuCTA:u}=e.fields||{},d=u&&u;return(0,t.jsx)("div",{className:g(),role:"group","aria-labelledby":`mobile-mega-menu-${r}-category-${a+1}`,...(0,s.getTestProps)(`header-mobile-mega-menu-category-${a+1}`),children:(0,t.jsx)("div",{className:m(),children:(0,t.jsx)("div",{className:0===a?y():b(),children:(0,t.jsxs)("div",{className:v(),children:[(0,t.jsx)("div",{className:x(),children:(0,t.jsx)("div",{className:_(),children:(0,t.jsx)(i.default,{field:l,tag:"h2",className:w(),id:`mobile-mega-menu-${r}-category-${a+1}`})})}),(0,t.jsx)("div",{className:T(),style:{marginTop:"-1px"}}),(0,t.jsx)("ul",{className:S(),role:"presentation",children:c?.filter(e=>e.fields?.link?.value?.href).map((e,r)=>(0,t.jsx)("li",{className:C(),role:"presentation",...(0,s.getTestProps)(`header-mobile-mega-menu-link-${a+1}-${r+1}`),children:(0,t.jsxs)(n.default,{ctaComponentClass:"default",className:E(),field:e.fields?.link,tabIndex:0,role:"menuitem",cdpEvent:o.HEADER_NAVIGATION_CDP,children:[(0,t.jsx)("div",{className:k(),children:e.fields?.link?.value?.text||e.name}),e.fields?.link?.value?.target==="_blank"||e.fields?.link?.value?.href?.startsWith("http")&&!e.fields?.link?.value?.href?.includes(window.location.hostname)?null:(0,t.jsx)("svg",{className:N(),width:"20",height:"20",viewBox:"0 0 20 20",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",children:(0,t.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.0774 4.91058C11.4028 4.58514 11.9305 4.58514 12.2559 4.91058L17.2559 9.91058C17.5814 10.236 17.5814 10.7637 17.2559 11.0891L12.2559 16.0891C11.9305 16.4145 11.4028 16.4145 11.0774 16.0891C10.752 15.7637 10.752 15.236 11.0774 14.9106L14.6548 11.3332H3.33333C2.8731 11.3332 2.5 10.9601 2.5 10.4998C2.5 10.0396 2.8731 9.6665 3.33333 9.6665H14.6548L11.0774 6.08909C10.752 5.76366 10.752 5.23602 11.0774 4.91058Z",fill:"var(--component-header-mega-menu-link-icon, #ffffff)"})})]})},e.id||r))}),d?.value?.href&&(0,t.jsx)("div",{className:I(),children:(0,t.jsx)("div",{className:A(),children:(0,t.jsxs)(n.default,{ctaComponentClass:"default",className:j(),field:d,tabIndex:0,cdpEvent:o.HEADER_NAVIGATION_CDP,children:[(0,t.jsx)("div",{className:P(),children:d?.value?.text}),(0,t.jsx)("svg",{className:O(),width:"20",height:"21",viewBox:"0 0 20 21",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",children:(0,t.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.0774 4.91083C11.4028 4.58539 11.9305 4.58539 12.2559 4.91083L17.2559 9.91083C17.5814 10.2363 17.5814 10.7639 17.2559 11.0893L12.2559 16.0893C11.9305 16.4148 11.4028 16.4148 11.0774 16.0893C10.752 15.7639 10.752 15.2363 11.0774 14.9108L14.6548 11.3334H3.33333C2.8731 11.3334 2.5 10.9603 2.5 10.5001C2.5 10.0398 2.8731 9.66675 3.33333 9.66675H14.6548L11.0774 6.08934C10.752 5.7639 10.752 5.23626 11.0774 4.91083Z"})})]})})})]})})})},e.id||a)}),e[r]?.fields?.featureLink?.value?.href&&(0,t.jsxs)("div",{className:L(),children:[(0,t.jsx)("div",{className:D(),style:{marginTop:"-1px"}}),(0,t.jsx)("div",{className:R(),children:(0,t.jsx)("div",{className:M(),children:(0,t.jsx)("div",{className:B(),children:(0,t.jsxs)("div",{className:U(),children:[(0,t.jsx)("div",{className:F(),style:{aspectRatio:"1"},children:(0,t.jsx)(a.default,{field:e[r]?.fields?.featureImage,className:$()})}),(0,t.jsxs)("div",{className:z(),children:[(0,t.jsx)("div",{className:q(),children:(0,t.jsx)(i.default,{tag:"div",field:e[r]?.fields?.featureTitle?.value?e[r]?.fields?.featureTitle:e[r]?.fields?.navigationTitle,className:H()})}),(0,t.jsx)("div",{className:W(),children:(0,t.jsxs)(n.default,{ctaComponentClass:"default",className:V(),field:e[r]?.fields?.featureLink,tabIndex:0,onClick:c,cdpEvent:o.HEADER_NAVIGATION_CDP,children:[(0,t.jsx)("div",{className:G(),children:e[r]?.fields?.featureLink?.value?.text||(e[r]?.fields?.featureTitle?.value?e[r]?.fields?.featureTitle?.value:e[r]?.fields?.navigationTitle?.value)}),(0,t.jsx)("svg",{className:X(),width:"20",height:"21",viewBox:"0 0 20 21",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",children:(0,t.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.0774 4.91083C11.4028 4.58539 11.9305 4.58539 12.2559 4.91083L17.2559 9.91083C17.5814 10.2363 17.5814 10.7639 17.2559 11.0893L12.2559 16.0893C11.9305 16.4148 11.4028 16.4148 11.0774 16.0893C10.752 15.7639 10.752 15.2363 11.0774 14.9108L14.6548 11.3334H3.33333C2.8731 11.3334 2.5 10.9603 2.5 10.5001C2.5 10.0398 2.8731 9.66675 3.33333 9.66675H14.6548L11.0774 6.08934C10.752 5.7639 10.752 5.23626 11.0774 4.91083Z"})})]})})]})]})})})})]})]})]})}):null}])},830088,e=>{"use strict";var t=e.i(843476),r=e.i(211418),i=e.i(522016),n=e.i(618566),a=e.i(422674),s=e.i(2889
13267),o=e.i(136905),l=e.i(992210),c=e.i(310099);let u=(0,r.tv)({slots:{languageSelectorContainer:["flex","flex-col","gap-space-between-base","items-start","justify-start","w-full","h-full","relative","overflow-y-auto","bg-gradient-to-b","from-component-header-mega-menu-bg-stop-1","to-component-header-mega-menu-bg-stop-2","from-60%","to-100%"],languageSelectorWrapper:["pb-spacing-spacing-16","w-full"],languageSelectorBackButton:["bg-component-header-nav-item-dropdown-bg-active","rounded-component-header-nav-dropdown-border-radius","pt-spacing-spacing-12","pr-general-spacing-margin-x","pb-spacing-spacing-12","pl-general-spacing-margin-x","flex","flex-row","gap-space-between-less","items-center","justify-start","shrink-0","w-full","relative","cursor-pointer","text-left"],languageSelectorBackIcon:["shrink-0","w-5","h-5","relative","overflow-visible","[&_path]:fill-component-header-icon"],languageSelectorBackText:["text-component-header-text","text-left","font-typography-font-family-body","text-typography-font-size-body-large","leading-typography-line-height-body-medium","font-typography-font-weight-button","relative","flex-1"],languageSelectorContent:["flex","flex-col","gap-6","items-start","justify-start","w-full"],languageSelectorInner:["pt-spacing-spacing-16","pb-spacing-spacing-16","flex","flex-col","gap-6","items-start","justify-start","self-stretch","shrink-0","relative","overflow-hidden","w-full"],languageSelectorColumns:["flex","flex-col","gap-3","items-start","justify-start","self-stretch","shrink-0","relative"],languageSelectorColumn:["flex","flex-col","gap-2","items-start","justify-start","self-stretch","shrink-0","relative"],languageSelectorColumnInner:["flex","flex-col","gap-0","items-start","justify-start","self-stretch","shrink-0","relative"],languageSelectorColumnContent:["pt-padding-micro","pr-padding-tight","pb-padding-micro","pl-padding-tight","flex","flex-col","gap-spacing-spacing-12","items-start","justify-start","self-stretch","shrink-0","relative"],languageSelectorItems:["flex","flex-col","gap-spacing-spacing-12","items-start","justify-start","self-stretch","shrink-0","relative"],languageSelectorItemActive:["bg-component-header-mega-menu-language-item-bg-active","rounded-component-header-nav-language-item-border-radius","border-solid","border-component-header-mega-menu-language-item-border-active","border","pt-spacing-spacing-8","pr-spacing-spacing-12","pb-spacing-spacing-8","pl-spacing-spacing-12","flex","flex-row","items-center","justify-between","self-stretch","shrink-0","relative"],languageSelectorItem:["bg-component-header-mega-menu-language-item-bg","rounded-component-header-nav-language-item-border-radius","border-solid","border-component-header-mega-menu-language-item-border","border","pt-spacing-spacing-8","pr-spacing-spacing-12","pb-spacing-spacing-8","pl-spacing-spacing-12","flex","flex-row","gap-2","items-center","justify-start","self-stretch","shrink-0","relative"],languageSelectorItemContent:["flex","flex-row","gap-spacing-spacing-12","items-start","justify-start","shrink-0","relative"],languageSelectorItemTextContainer:["flex","flex-col","gap-spacing-spacing-8","items-start","justify-center","shrink-0","relative"],languageSelectorItemTextActive:["text-component-header-text-active","text-left","font-typography-font-family-body","text-typography-font-size-body-medium","leading-typography-line-height-body-medium","font-typography-font-weight-body-semibold","relative","flex","items-center","justify-start"],languageSelectorItemText:["text-component-header-text","text-left","font-typography-font-family-body","text-typography-font-size-body-medium","leading-typography-line-height-body-medium","font-typography-font-weight-body-semibold","relative","flex","items-center","justify-start"],languageSelectorItemSubtextActive:["text-component-header-text-active","text-left","font-typography-font-family-body","text-typography-font-size-body-small","leading-typography-line-height-body-small","font-typography-font-weight-body","relative","flex","items-center","justify-start"],languageSelectorItemSubtext:["text-component-header-text","text-left","font-typography-font-family-body","text-typography-font-size-body-small","leading-typography-line-height-body-small","font-typography-font-weight-body","relative","flex","items-center","justify-start"],languageSelectorItemIcon:["shrink-0","w-6","h-6","relative","overflow-visible","[&_path]:fill-component-header-nav-lang-select-icon-selected"],languageSelectorListItem:["w-full"],languageSelectorLink:["w-full","group"]}});e.s(["default",0,({languageList:e,isLanguageSelectorOpen:r,onBackClick:d})=>{let p=(0,n.useParams)(),h=p?.locale??"",{buildHref:f}=(0,s.useLocalizedPageHref)(),g=(0,a.useSitecoreContext)(),m=g?.sitecoreContext?.languages??[],y=m.find(e=>e.isoCode===h),{getDictionaryValue:b}=(0,c.default)(),{languageSelectorContainer:v,languageSelectorWrapper:x,languageSelectorBackButton:_,languageSelectorBackIcon:w,languageSelectorBackText:T,languageSelectorContent:S,languageSelectorInner:C,languageSelectorColumns:E,languageSelectorColumn:k,languageSelectorColumnInner:N,languageSelectorColumnContent:I,languageSelectorItems:A,languageSelectorItemActive:j,languageSelectorItem:P,languageSelectorItem
132Content:O,languageSelectorItemTextContainer:L,languageSelectorItemTextActive:D,languageSelectorItemText:R,languageSelectorItemSubtextActive:M,languageSelectorItemSubtext:B,languageSelectorItemIcon:U,languageSelectorListItem:F,languageSelectorLink:$}=u();return(0,t.jsx)("div",{className:v(),children:r&&(0,t.jsxs)("div",{className:x(),children:[(0,t.jsxs)("button",{className:_(),onClick:d,"aria-label":"Back to main menu",type:"button",...(0,o.getTestProps)("header-mobile-language-selector-back"),children:[(0,t.jsx)("svg",{className:w(),width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",children:(0,t.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.0891 4.41058C13.4145 4.73602 13.4145 5.26366 13.0891 5.58909L8.67835 9.99984L13.0891 14.4106C13.4145 14.736 13.4145 15.2637 13.0891 15.5891C12.7637 15.9145 12.236 15.9145 11.9106 15.5891L6.91058 10.5891C6.58514 10.2637 6.58514 9.73602 6.91058 9.41058L11.9106 4.41058C12.236 4.08514 12.7637 4.08514 13.0891 4.41058Z"})}),(0,t.jsx)("span",{className:T(),children:b("Back")})]}),(0,t.jsx)("div",{className:S(),children:(0,t.jsxs)("div",{className:C(),children:[(0,t.jsx)("h2",{id:"mobile-language-selector-menu",className:"sr-only",children:b("LanguageSelectorMenuTitle")||"Choose your language"}),e&&e.length>0&&(0,t.jsx)("div",{className:E(),role:"group","aria-labelledby":"mobile-language-selector-menu",children:(0,t.jsx)("div",{className:k(),children:(0,t.jsx)("div",{className:N(),children:(0,t.jsx)("div",{className:I(),children:(0,t.jsx)("ul",{className:A(),role:"presentation",children:e.map((e,r)=>{let n=(e.fields&&"Regional Iso Code"in e.fields?e.fields["Regional Iso Code"]:void 0)?.value,a=(e.fields&&"Iso"in e.fields?e.fields.Iso:void 0)?.value,s=m.find(e=>!!n&&(e.isoCode===n||e.isoCode.startsWith(n+"-")||n.startsWith(e.isoCode+"-")));if(!s)return null;let o=y?.isoCode===s.isoCode,{language:c}=(e=>{let t=e?.countryCode,{language:r}=((e,t)=>{if("US"===t&&!e.includes("United States"))return{language:e};let r=e.match(/(.*?)\s*\((.*?)\)/);return r?{language:r[1].trim()}:{language:e}})(e?.nativeName||"",t||"");return{language:(0,l.capitalizeFirstLetter)(r),isoCode:e?.isoCode}})(s);return(0,t.jsx)("li",{role:"presentation",className:F(),children:(0,t.jsx)(i.default,{href:f(s.isoCode),className:$(),role:"menuitem",tabIndex:0,"aria-current":o?"true":void 0,"aria-label":o?`${c} ${b("IsSelected")||"is selected"}`:c,children:(0,t.jsxs)("div",{className:o?j():P(),children:[(0,t.jsx)("div",{className:O(),children:(0,t.jsxs)("div",{className:L(),children:[(0,t.jsx)("div",{className:o?D():R(),children:a?.toUpperCase()||e.name}),(0,t.jsx)("div",{className:o?M():B(),children:c})]})}),o&&(0,t.jsx)("svg",{className:U(),width:"24",height:"25",viewBox:"0 0 24 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,t.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M20.7071 5.79289C21.0976 6.18342 21.0976 6.81658 20.7071 7.20711L9.70711 18.2071C9.31658 18.5976 8.68342 18.5976 8.29289 18.2071L3.29289 13.2071C2.90237 12.8166 2.90237 12.1834 3.29289 11.7929C3.68342 11.4024 4.31658 11.4024 4.70711 11.7929L9 16.0858L19.2929 5.79289C19.6834 5.40237 20.3166 5.40237 20.7071 5.79289Z"})})]})})},e.id||r)})})})})})})]})})]})})}])},749301,e=>{"use strict";var t=e.i(843476),r=e.i(211418),i=e.i(296217),n=e.i(136905),a=e.i(340189),s=e.i(310099),o=e.i(992210);let l=(0,r.tv)({slots:{menuFooter:["border-solid","border-component-header-nav-utility-stroke","border-t","pt-margin-base","pr-layout-base-margin-x","pb-margin-base","pl-layout-base-margin-x","flex","flex-row","items-center","justify-between","self-stretch","shrink-0","relative"],languageSelector:["pt-spacing-spacing-16","pr-spacing-spacing-24","pb-spacing-spacing-16","pl-spacing-spacing-24","flex","flex-row","gap-spacing-spacing-4","items-center","justify-start","self-stretch","shrink-0","relative","group","text-component-header-nav-language-selector-icon"],languageSelectorContent:["flex","flex-row","gap-spacing-spacing-12","items-center","justify-start","shrink-0","relative"],languageSelectorTextWrapper:["flex","flex-col","gap-spacing-spacing-8","items-start","justify-center","shrink-0","relative"],languageSelectorText:["text-component-header-text","text-left","font-typography-font-family-body","text-typography-font-size-body-medium","leading-typography-line-height-body-small","font-typography-font-weight-button","relative","flex","items-center","justify-start"],languageSelectorIcon:["shrink-0","w-4","h-4","relative","overflow-visible","[&_path]:fill-component-header-icon"],demoButtonText:["text-component-button-primary-filled-text","text-center","font-typography-font-family-body","text-typography-font-size-body-medium","leading-typography-line-height-body-small","font-typography-font-weight-button","relative"]}});e.s(["default",0,({utilityLink:e,currentLanguage:r,isLanguageSelectorOpen:c,onLanguageSelectorClick:u})=>{let{getDictionaryValue:d}=(0,s.default)(),p=e=>{let t=e?.countryCode,{language:r}=((e,t)=>{if("US"===t&&!e.includes("United States"))return{language:e};let r=e.match(/(.*?)\s*\((.*?)\)/);return r?{language:r[1].trim()}:{language:e}})(e?.nativeName||"",t||"");return{language:(0,o.capitalizeFirstLetter)(r),isoCode:e?.isoCode}}
132,{isoCode:h}=p(r),{menuFooter:f,languageSelector:g,languageSelectorContent:m,languageSelectorTextWrapper:y,languageSelectorText:b,languageSelectorIcon:v,demoButtonText:x}=l();return(0,t.jsxs)("div",{className:f(),children:[(0,t.jsx)("button",{onClick:u,"aria-expanded":c,"aria-haspopup":"true","aria-label":`${d("LanguageSelectorAriaLabel")||"Language selected is"} ${p(r).language}`,type:"button",role:"menuitem",children:(0,t.jsxs)("div",{className:g(),children:[(0,t.jsx)("div",{className:m(),children:(0,t.jsxs)("div",{className:y(),children:[(0,t.jsx)("span",{className:"sr-only",children:"Language selected is"}),(0,t.jsx)("div",{className:b(),children:h?.split("-")[0]?.toUpperCase()})]})}),(0,t.jsx)("svg",{className:v(),style:{aspectRatio:"1"},viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",children:(0,t.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:c?"M5.52861 4.02851C5.78896 3.76816 6.21107 3.76816 6.47141 4.02851L10.4714 8.02851C10.7318 8.28886 10.7318 8.71097 10.4714 8.97132L6.47141 12.9713C6.21107 13.2317 5.78896 13.2317 5.52861 12.9713C5.26826 12.711 5.26826 12.2889 5.52861 12.0285L9.0572 8.49992L5.52861 4.97132C5.26826 4.71097 5.26826 4.28886 5.52861 4.02851Z":"M5.52861 12.9713C5.78896 13.2317 6.21107 13.2317 6.47141 12.9713L10.4714 8.97132C10.7318 8.71097 10.7318 8.28886 10.4714 8.02851L6.47141 4.02851C6.21107 3.76816 5.78896 3.76816 5.52861 4.02851C5.26826 4.28886 5.26826 4.711 5.52861 4.97132L9.0572 8.49992L5.52861 12.0285C5.26826 12.2889 5.26826 12.711 5.52861 12.9713Z"})})]})}),(0,t.jsx)("div",{children:(0,t.jsx)(i.default,{ctaComponentClass:"component-header-button-color-1",field:e,...(0,n.getTestProps)("link-cta1"),ctaStyle:(0,a.getCtaStyle)(e,"primary"),className:x(),cdpEvent:{component:"Book a demo"}})})]})}])},432808,e=>{"use strict";var t=e.i(843476),r=e.i(211418),i=e.i(465133),n=e.i(290882),a=e.i(830088),s=e.i(749301);let o=(0,r.tv)({slots:{slidingMenuContainer:["absolute","top-full","inset-x-0","h-[calc(100dvh-72px)]","z-50","overflow-hidden"],slidingMenuInner:["flex","transition-transform","duration-300","ease-in-out","h-full"],menuItemsContainer:["flex","flex-col","gap-space-between-base","items-start","justify-start","h-full","relative","overflow-y-auto","bg-gradient-to-b","bg-component-header-mega-menu-bg","from-component-header-mega-menu-bg-stop-1","to-component-header-mega-menu-bg-stop-2","from-60%","to-100%"]}});e.s(["default",0,({navigationList:e,dropdownOpen:r,isLanguageSelectorOpen:l,languageList:c,utilityLink:u,currentLanguage:d,onMenuItemClick:p,onBackClick:h,onLanguageSelectorBackClick:f,onLanguageSelectorClick:g})=>{let{menuItemsContainer:m,slidingMenuContainer:y,slidingMenuInner:b}=o();return(0,t.jsx)("div",{className:y(),children:(0,t.jsxs)("div",{className:b(),style:{transform:null!==r?"translateX(-33.333%)":l?"translateX(-66.666%)":"translateX(0)",width:"300%"},children:[(0,t.jsxs)("div",{className:`${m()} h-full overflow-y-auto`,id:"mobile-menu-items",role:"menubar",style:{boxShadow:"var(--shadow-400-box-shadow, 0px 8px 16px -4px rgba(0, 0, 0, 0.1))",width:"33.333%"},children:[(0,t.jsx)(i.default,{navigationList:e,dropdownOpen:r,onMenuItemClick:p}),(0,t.jsx)(s.default,{utilityLink:u,languageList:c,currentLanguage:d,isLanguageSelectorOpen:l,onLanguageSelectorClick:g})]}),(0,t.jsx)("div",{style:{width:"33.333%"},children:(0,t.jsx)(n.default,{navigationList:e,dropdownOpen:r,onBackClick:h})}),(0,t.jsx)("div",{style:{width:"33.333%"},children:(0,t.jsx)(a.default,{languageList:c,isLanguageSelectorOpen:l,onBackClick:f})})]})})}])},365303,e=>{"use strict";var t=e.i(843476),r=e.i(211418),i=e.i(271645),n=e.i(227832),a=e.i(887528),s=e.i(503441),o=e.i(422674),l=e.i(618566),c=e.i(775518),u=e.i(197510),d=e.i(389980),p=e.i(609443),h=e.i(552601),f=e.i(432808);let g=["ThemesWhite","ThemesLight"],m=(0,r.tv)({slots:{headerWrapper:["relative","w-full"],base:["bg-component-header-nav-bg","border-solid","border-component-header-nav-bottom-border","border-b","h-[72px]","flex","items-center"],contentWrapper:["pr-margin-less","pl-margin-less","flex","flex-row","gap-spacing-spacing-24","items-center","justify-start","w-full"],logoWrapper:["flex","flex-row","gap-0","items-center","justify-start","shrink-0","w-[86px]"],logoContainer:["shrink-0","w-[86px]","h-10","overflow-hidden"],actionsWrapper:["flex","flex-row","gap-spacing-spacing-24","items-center","justify-start","flex-1","min-w-0"]}});e.s(["default",0,e=>{let{fields:r}=e,{theme:y}=(0,d.useBrandAndTheme)(),{logo:b,lightThemeLogo:v,isLightHeader:x,logoLink:_,utilityLink:w,searchPlaceholder:T,languageList:S}=r||{},C=(null!=y?g.includes(y):x?.value===!0)?v?.value?.src?v:b:b?.value?.src?b:v,E=r?.navigationList,k=(0,l.useParams)().locale,N=(0,o.useSitecoreContext)(),I=(N?.sitecoreContext?.languages??[]).find(e=>e.isoCode.toLowerCase()===k),[A,j]=(0,i.useState)(!1),[P,O]=(0,i.useState)(null),[L,D]=(0,i.useState)(!1),{showSearch:R,setShowSearch:M}=(0,s.useHeader)();(0,i.useEffect)(()=>{R&&(j(!1),O(null),D(!1))},[R]),(0,i.useEffect)(()=>
132{if(A){let e=document.getElementById("header");e&&e.scrollIntoView({behavior:"smooth",block:"start"}),(0,u.lockBodyScroll)()}return()=>{A&&(0,u.unlockBodyScroll)()}},[A]);let B=(0,o.useSitecoreContext)(),U=B?.sitecoreContext?.siteSettings,F=U?.globalSearchSourceId?.value,$=U?.globalSearchPreviewWidgetId?.value,z=U?.globalSearchEntityName?.value,q=[...F?F.split("|").map(e=>e.trim()).filter(e=>e):[]];(0,c.useOnRouteChange)(()=>{j(!1),O(null),D(!1)});let{base:H,contentWrapper:W,logoWrapper:V,logoContainer:G,actionsWrapper:X,headerWrapper:K}=m();return(0,t.jsxs)("div",{className:K(),children:[(0,t.jsx)("div",{className:H(),children:(0,t.jsxs)("div",{className:W(),children:[(0,t.jsx)("div",{className:V(),children:(0,t.jsx)("div",{className:G(),style:{aspectRatio:"86/40"},children:(0,t.jsx)(n.default,{logo:C,logoLink:_,isMobile:!0})})}),(0,t.jsxs)("div",{className:X(),children:[T?.value&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(p.default,{searchPlaceholder:T,showSearch:R,setShowSearch:M}),R&&(0,t.jsx)(a.default,{closeSearch:()=>M(!1),rfkid:$||"",sources:q,entityName:z||""})]}),(0,t.jsx)(h.default,{isMobileMenuOpen:A,onToggle:()=>{j(!A),A&&(O(null),D(!1))}})]})]})}),A&&(0,t.jsx)(f.default,{navigationList:E,dropdownOpen:P,isLanguageSelectorOpen:L,languageList:S,utilityLink:w,currentLanguage:I,onMenuItemClick:e=>{O(e),D(!1)},onBackClick:()=>{O(null)},onLanguageSelectorBackClick:()=>{D(!1)},onLanguageSelectorClick:()=>{D(!0),O(null)}})]})}])},901260,e=>{"use strict";var t=e.i(843476),r=e.i(211418),i=e.i(136905),n=e.i(296217),a=e.i(506914),s=e.i(78737),o=e.i(455601);let l=(0,r.tv)({slots:{navLink:["border-solid","border-component-header-nav-link-border","border-b-2","pt-spacing-spacing-12","pr-spacing-spacing-2","pb-spacing-spacing-12","pl-spacing-spacing-2","flex","flex-row","gap-spacing-spacing-4","items-center","justify-center","shrink-0","relative","hover:border-component-header-nav-item-border-hover","group"],navLinkText:["text-component-header-text","group-hover:text-component-header-text-hover","text-center","font-typography-font-family-header","text-typography-font-size-xsmall","leading-typography-line-height-xsmall","font-typography-font-weight-xsmall","relative"],navLinkIcon:["shrink-0","w-5","h-5","relative","overflow-visible","transition","duration-200","[&_path]:transition-colors","[&_path]:duration-200","[&_path]:fill-component-header-icon","group-hover:[&_path]:fill-component-header-icon-hover"]},variants:{isRotated:{false:{navLinkIcon:["rotate-0"]},true:{navLinkIcon:["rotate-180"]}},isActive:{false:{},true:{navLink:["border-component-header-nav-link-border-active"],navLinkText:["text-component-header-text-active"],navLinkIcon:["[&_path]:fill-component-header-icon-active"]}}}});e.s(["default",0,e=>{let{dropdownOpen:r,index:c}=e||{},u=e?.fields?.megaMenuList,d=e?.fields?.navigationTitle,p=e?.fields,h=p?.disableFlyout,f=p?.clickableLink,g=h?.value===!0,m=!g&&u&&u.length>0,y=f?.value?.href,b=f?.value?.href?.startsWith("http://"),{navLink:v,navLinkText:x,navLinkIcon:_}=l({isRotated:c===r,isActive:c===r}),w=`nav-item-${c}-${e.id||"default"}`;return g?y&&b||!f?(0,t.jsx)("div",{className:x(),role:"menuitem","aria-labelledby":w,...(0,i.getTestProps)("header-nav-label"),children:(0,t.jsx)("div",{className:v(),role:"presentation",children:(0,t.jsx)("div",{className:x(),id:w,children:d?.value})},e.id)}):y?(0,t.jsx)(n.default,{field:f,ctaComponentClass:"default",ctaVariant:"custom",className:"flex flex-row gap-spacing-spacing-4 text-component-header-text items-center justify-center bg-transparent border-none cursor-pointer",role:"menuitem","aria-labelledby":w,...(0,i.getTestProps)("header-nav-link"),gtmEvent:(0,o.createCTAClickEvent)({event:"cta_click",componentName:"header navigation",clickText:f?.value?.text||"",componentHeader:f?.value?.text||""}),cdpEvent:s.HEADER_NAVIGATION_CDP,children:(0,t.jsx)("div",{className:v(),role:"presentation",children:(0,t.jsx)("div",{className:x(),id:w,children:f?.value?.text})},e.id)}):(0,t.jsx)("div",{className:"flex flex-row gap-spacing-spacing-4 items-center justify-center bg-transparent border-none",role:"menuitem","aria-labelledby":w,...(0,i.getTestProps)("header-nav-label"),children:(0,t.jsx)("div",{className:v(),role:"presentation",children:(0,t.jsx)("div",{className:x(),id:w,children:(0,t.jsx)(a.default,{field:{value:d?.value}})})},e.id)}):(0,t.jsx)("button",{"aria-haspopup":m?"true":"false","aria-expanded":m?r===c:void 0,className:"flex flex-row gap-spacing-spacing-4 items-center justify-center bg-transparent border-none cursor-pointer",role:"menuitem","aria-labelledby":w,onClick:()=>{m&&(r===c?e.close():(e.open(),e.closeLanguageSelector()))},onKeyDown:t=>
132{m&&("Enter"===t.key||" "===t.key?(t.preventDefault(),r===c?e.close():(e.open(),e.closeLanguageSelector())):"Escape"===t.key&&e.close())},...(0,i.getTestProps)("header-nav-button"),children:(0,t.jsxs)("div",{className:v(),role:"presentation",children:[(0,t.jsx)("div",{className:x(),id:w,children:d?.value}),m&&(0,t.jsx)("svg",{className:_(),style:{aspectRatio:1},width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",children:(0,t.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.41076 6.91058C4.7362 6.58514 5.26384 6.58514 5.58928 6.91058L10 11.3213L14.4108 6.91058C14.7362 6.58514 15.2638 6.58514 15.5893 6.91058C15.9147 7.23602 15.9147 7.76366 15.5893 8.08909L10.5893 13.0891C10.2638 13.4145 9.7362 13.4145 9.41076 13.0891L4.41076 8.08909C4.08533 7.76366 4.08533 7.23602 4.41076 6.91058Z"})})]},e.id)})}])},842375,e=>{"use strict";var t=e.i(843476),r=e.i(271645),i=e.i(211418),n=e.i(296217),a=e.i(506914),s=e.i(38930),o=e.i(136905),l=e.i(78737),c=e.i(455601);let u=(0,i.tv)({slots:{megaMenuContainer:["flex","flex-col","gap-0","items-center","justify-start","self-stretch","shrink-0","overflow-hidden","absolute","w-full"],megaMenuWrapper:["pr-margin-base","pl-margin-base","flex","flex-row","gap-0","items-start","justify-start","w-[100%]","shrink-0","relative","bg-component-header-mega-menu-bg","bg-gradient-to-b","from-component-header-mega-menu-bg-stop-1","to-component-header-mega-menu-bg-stop-2","from-60%","to-100%"],megaMenuContent:["pt-spacing-spacing-40","pr-spacing-spacing-0","pb-spacing-spacing-40","pl-spacing-spacing-0","flex","flex-row","gap-space-between-more","items-start","justify-start","shrink-0","w-full","relative"],megaMenuColumnsWrapper:["flex","flex-row","gap-space-between-more","items-center","justify-start","self-stretch","relative","w-[74.26470588%]"],megaMenuColumn:["rounded-lg","flex","flex-row","gap-0","items-start","justify-start","self-stretch","shrink-0","relative","w-[30.6930693%]"],megaMenuColumnInner:["flex","flex-col","gap-spacing-spacing-16","items-start","justify-start","self-stretch","flex-1","relative"],megaMenuCategoryHeader:["flex","flex-col","gap-space-between-less","items-start","justify-start","self-stretch","shrink-0","relative"],megaMenuCategoryRow:["flex","flex-row","gap-2","items-center","justify-start","self-stretch","shrink-0","relative"],megaMenuCategoryLabel:["text-component-header-mega-menu-category-label","text-left","font-typography-font-family-header","text-typography-font-size-xsmall","leading-typography-line-height-xsmall","font-typography-font-weight-xsmall","relative"],megaMenuDivider:["border-solid","border-component-header-menu-item-list-border","border-t","border-r-0","border-b-0","border-l-0","self-stretch","shrink-0","h-0","relative"],megaMenuLinks:["flex","flex-col","gap-spacing-spacing-8","items-start","justify-start","self-stretch","flex-1","relative"],megaMenuLinkRow:["pb-spacing-spacing-1","flex","flex-row","gap-0","items-center","justify-start","shrink-0","relative"],megaMenuLink:["group","border-solid","border-component-header-mega-menu-link-border","border-b","p-spacing-spacing-2","flex","flex-row","gap-spacing-spacing-8","items-center","justify-start","flex-1","relative","hover:border-component-header-mega-menu-link-border-hover","[&>svg]:text-component-header-icon-hover","[&>svg]:ml-0","focus:!bg-transparent","focus:no-underline","focus:[&>svg]:hover:text-component-header-icon-hover"],megaMenuLinkText:["text-component-header-text","group-hover:text-component-header-text-hover","text-left","font-typography-font-family-body","text-typography-font-size-body-large","leading-typography-line-height-body-large","font-typography-font-weight-body","relative"],megaMenuLinkArrowIcon:["scale-x-0","group-hover:scale-x-100","[&_path]:fill-component-header-icon-hover"],megaMenuFooter:["flex","flex-col","gap-space-between-less","items-start","justify-start","self-stretch","shrink-0","relative"],megaMenuFooterDivider:["border-solid","border-component-header-nav-bottom-border","border-t","border-r-[0]","border-b-[0]","border-l-[0]","self-stretch","shrink-0","h-0","relative"],megaMenuFooterContent:["flex","flex-col","gap-4","items-start","justify-start","self-stretch","shrink-0","relative"],megaMenuFooterLink:["group","p-spacing-spacing-2","flex","flex-row","gap-spacing-spacing-8","items-center","justify-center","shrink-0","relative","border-solid","border-component-header-mega-menu-link-border","border-b","hover:border-component-header-mega-menu-link-border-hover","focus:!bg-transparent","focus:no-underline"],megaMenuFooterLinkText:["text-component-header-text","text-center","font-typography-font-family-body","text-typography-font-size-body-medium","leading-typography-line-height-body-small","font-typography-font-weight-button","relative"],megaMenuFooterIcon:["shrink-0","w-5","h-5","relative","overflow-visible","text-component-header-icon","group-hover:text-component-header-icon-hover","[&_path]:fill-component-header-icon","group-hover:[&_path]:fill-component-header-icon-hover"],megaMenuFeature:["flex","flex-col","gap-space-between-base","items-start","justify-start","self-stretch","shrink-0","relative","overflow-hidden","w-[22.79411765%]"],megaMenuFeatureContent:["flex","flex-col","gap-spacing-spacing-40","items-start","justify-start","self-stretch","shrink-0","relative"],megaMenuFeatureRow:["flex","flex-row","gap-general-spacing-gutter","items-center","justify-start","self-stretch","shrink-0","relative"],megaMenuFeatureCard:["bg-color-surface-light","rounded-lg","flex","flex-col","gap-spacing-spacing-16","items-start","justify-start","flex-1","relative","overflow-hidden"],megaMenuFeatureImageContainer:["self-stretch","shrink-0","h-[310px]","relative","overflow-hidden"],megaMenuFeatureImage:["w-[100%]","overflow-hidden"],megaMenuFeatureTextContainer:["pr-padding-tight","pb-padding-tight","pl-padding-tight","flex","flex-col","gap-3","items-start","justify-start","self-stretch","shrink-0","relative"],megaMenuFeatureTitleWrapper:["flex","flex-col","gap-spacing-spacing-4","items-start","justify-start","self-stretch","shrink-0","relative"],megaMenuFeatureTitle:["text-left","text-component-header-mega-menu-feature-description","font-typography-font-family-header","text-typography-font-size-xsmall","leading-typography-line-height-xsmall","font-typography-font-weight-xsmall","relative","self-stretch"],megaMenuFeatureLinkWrapper:["flex","flex-row","gap-3","items-start","justify-start","shrink-0","relative"],megaMenuFeatureLink:["p-spacing-spacing-2","flex","flex-row","gap-spacing-spacing-8","items-center","justify-center","shrink-0","relative"],megaMenuFeatureLinkText:["text-component-button-tonal-link-text","text-center","font-typography-font-family-body","text-typography-font-size-body-medium","leading-typography-line-height-body-small","font-typography-font-weight-button","relative"],megaMenuFeatureLinkIcon:["shrink-0","w-5","h-5","relative","overflow-visible","[&_path]:fill-component-button-tonal-link-icon"]}});e.s(["default",0,({navigationList:e,dropdownOpen:i,megaMenuContainerRef:d,setDropdownOpen:p})=>{if((0,r.useEffect)(()=>
132{if(null===i)return;let e=e=>{let t=e.relatedTarget;d.current&&!d.current.contains(t)&&t&&!t.closest('[role="menubar"]')&&p(null)},t=d.current;if(t)return t.addEventListener("focusout",e),()=>{t.removeEventListener("focusout",e)}},[i,d,p]),null===i||!e[i])return null;let h=e[i],f=h?.fields?.navigationTitle?.value,g=h?.fields,m=g?.disableFlyout;if(m?.value===!0)return null;let{megaMenuContainer:y,megaMenuWrapper:b,megaMenuContent:v,megaMenuColumnsWrapper:x,megaMenuColumn:_,megaMenuColumnInner:w,megaMenuCategoryHeader:T,megaMenuCategoryRow:S,megaMenuCategoryLabel:C,megaMenuDivider:E,megaMenuLinks:k,megaMenuLinkRow:N,megaMenuLink:I,megaMenuLinkText:A,megaMenuLinkArrowIcon:j,megaMenuFooter:P,megaMenuFooterDivider:O,megaMenuFooterContent:L,megaMenuFooterLink:D,megaMenuFooterLinkText:R,megaMenuFooterIcon:M,megaMenuFeature:B,megaMenuFeatureContent:U,megaMenuFeatureRow:F,megaMenuFeatureCard:$,megaMenuFeatureImageContainer:z,megaMenuFeatureImage:q,megaMenuFeatureTextContainer:H,megaMenuFeatureTitleWrapper:W,megaMenuFeatureTitle:V,megaMenuFeatureLinkWrapper:G,megaMenuFeatureLink:X,megaMenuFeatureLinkText:K,megaMenuFeatureLinkIcon:Y}=u(),Q=`mega-menu-heading-${i}`;return(0,t.jsxs)("div",{ref:d,className:y(),style:{boxShadow:"var(--shadow-400-box-shadow, 0px 8px 16px -4px rgba(0, 0, 0, 0.1))"},id:"mega-menu",role:"menu","aria-orientation":"vertical","aria-labelledby":Q,children:[(0,t.jsx)("h2",{id:Q,className:"sr-only",children:h?.fields?.navigationTitle?.value||"Navigation menu"}),(0,t.jsx)("div",{className:b(),children:(0,t.jsxs)("div",{className:v(),children:[(0,t.jsx)("div",{className:x(),children:e[i]?.fields?.megaMenuList?.map((e,r)=>{let{megaMenuTitle:i,megaMenuLinks:s,megaMenuCTA:u}=e.fields||{},d=u&&u;return(0,t.jsx)("div",{className:_(),role:"group","aria-labelledby":`secondary-menu-${r+1}`,...(0,o.getTestProps)(`header-secondary-menu-category-${r+1}`),children:(0,t.jsxs)("div",{className:w(),children:[(0,t.jsx)("div",{className:T(),children:(0,t.jsx)("div",{className:S(),children:(0,t.jsx)(a.default,{field:i,tag:"h2",className:C(),id:`secondary-menu-${r+1}`})})}),(0,t.jsx)("div",{className:E(),style:{marginTop:"-1px"}}),(0,t.jsx)("ul",{className:k(),role:"presentation",children:s?.filter(e=>e.fields?.link?.value?.href).map((e,i)=>{let a=e.fields?.link?.value?.target==="_blank"||e.fields?.link?.value?.href?.startsWith("http")&&!e.fields?.link?.value?.href?.includes(window.location.hostname);return(0,t.jsx)("li",{className:N(),role:"presentation",children:(0,t.jsxs)(n.default,{ctaComponentClass:"default",className:I(),field:e.fields?.link,tabIndex:0,onClick:()=>p(null),role:"menuitem",...(0,o.getTestProps)(`header-secondary-menu-${r+1}-nav-link`),gtmEvent:(0,c.createCTAClickEvent)({event:"cta_click",componentName:"header navigation",clickText:e.fields?.link?.value?.text||e.name||"",componentHeader:f||""}),cdpEvent:l.HEADER_NAVIGATION_CDP,children:[(0,t.jsx)("div",{className:A(),children:e.fields?.link?.value?.text||e.name}),!a&&(0,t.jsx)("svg",{className:j(),width:"20",height:"20",viewBox:"0 0 20 20",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",children:(0,t.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.0774 4.91058C11.4028 4.58514 11.9305 4.58514 12.2559 4.91058L17.2559 9.91058C17.5814 10.236 17.5814 10.7637 17.2559 11.0891L12.2559 16.0891C11.9305 16.4145 11.4028 16.4145 11.0774 16.0891C10.752 15.7637 10.752 15.236 11.0774 14.9106L14.6548 11.3332H3.33333C2.8731 11.3332 2.5 10.9601 2.5 10.4998C2.5 10.0396 2.8731 9.6665 3.33333 9.6665H14.6548L11.0774 6.08909C10.752 5.76366 10.752 5.23602 11.0774 4.91058Z"})})]})},e.id||i)})}),d?.value?.href&&(0,t.jsxs)("div",{className:P(),children:[(0,t.jsx)("div",{className:O(),style:{marginTop:"-1px"}}),(0,t.jsx)("div",{className:L(),children:(0,t.jsxs)(n.default,{ctaComponentClass:"default",className:D(),field:d,tabIndex:0,onClick:()=>p(null),...(0,o.getTestProps)(`header-secondary-menu-category-${r+1}-nav-link`),gtmEvent:(0,c.createCTAClickEvent)({event:"cta_click",componentName:"header navigation",clickText:d?.value?.text||"",componentHeader:f||""}),cdpEvent:l.HEADER_NAVIGATION_CDP,children:[(0,t.jsx)("div",{className:R(),children:d?.value?.text}),(0,t.jsx)("svg",{className:M(),width:"20",height:"21",viewBox:"0 0 20 21",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,t.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.0774 4.91058C11.4028 4.58514 11.9305 4.58514 12.2559 4.91058L17.2559 9.91058C17.5814 10.236 17.5814 10.7637 17.2559 11.0891L12.2559 16.0891C11.9305 16.4145 11.4028 16.4145 11.0774 16.0891C10.752 15.7637 10.752 15.236 11.0774 14.9106L14.6548 11.3332H3.33333C2.8731 11.3332 2.5 10.9601 2.5 10.4998C2.5 10.0396 2.8731 9.6665 3.33333 9.6665H14.6548L11.0774 6.08909C10.752 5.76366 10.752 5.23602 11.0774 4.91058Z"})})]})})]})]})},e.id||r)})}),e[i]?.fields?.featureLink?.value?.href&&(0,t.jsx)("div",{className:B(),role:"complementary",children:(0,t.jsx)("div",{className:U(),children:(0,t.jsx)("div",{className:F(),children:(0,t.jsxs)("div",{className:$(),children:[(0,t.jsx)("div",{className:z(),children:(0,t.jsx)(s.default,{field:e[i]?.fields?.featureImage,className:q()})}),(0,t.jsxs)("div",{className:H(),children:[(0,t.jsx)("div",{className:W(),children:(0,t.jsx)(a.default,{tag:"div",field:e[i]?.fields?.featureTitle?.value?e[i]?.fields?.featureTitle:e[i]?.fields?.navigationTitle,className:V()})}),(0,t.jsx)("div",{className:G(),children:(0,t.jsxs)(n.default,{ctaComponentClass:"default",className:X(),field:e[i]?.fields?.featureLink,tabIndex:0,onClick:()=>p(null),gtmEvent:(0,c.createCTAClickEvent)({event:"cta_click",componentName:"header navigation",clickText:`${e[i]?.fields?.featureLink?.value?.text||(e[i]?.fields?.featureTitle?.value?e[i]?.fields?.featureTitle?.value:e[i]?.fields?.navigationTitle?.value)}`,componentHeader:f||""}),cdpEvent:l.HEADER_NAVIGATION_CDP,children:[(0,t.jsx)("div",{className:K(),children:(0,t.jsx)(t.Fragment,{children:e[i]?.fields?.featureLink?.value?.text||(e[i]?.fields?.featureTitle?.value?e[i]?.fields?.featureTitle?.value:e[i]?.fields?.navigationTitle?.value)})}),(0,t.jsx)("svg",{className:Y(),width:"20",height:"21",viewBox:"0 0 20 21",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,t.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.0774 4.91058C11.4028 4.58514 11.9305 4.58514 12.2559 4.91058L17.2559 9.91058C17.5814 10.236 17.5814 10.7637 17.2559 11.0891L12.2559 16.0891C11.9305 16.4145 11.4028 16.4145 11.0774 16.0891C10.752 15.7637 10.752 15.236 11.0774 14.9106L14.6548 11.3332H3.33333C2.8731 11.3332 2.5 10.9601 2.5 10.4998C2.5 10.0396 2.8731 9.6665 3.33333 9.6665H14.6548L11.0774 6.08909C10.752 5.26366 10.752 4.73602 11.0774 4.91058Z"})})]})})]})]})})})})]})})]})}])},640127,e=>{"use strict";var t=e.i(843476),r=e.i(271645),i=e.i(211418),n=e.i(522016),a=e.i(618566),s=e.i(422674),o=e.i(2889
13267),l=e.i(992210);let c=(0,i.tv)({slots:{languageSelectorContainer:["flex","flex-col","gap-0","items-center","justify-start","self-stretch","shrink-0","overflow-hidden","absolute","w-full"],languageSelectorWrapper:["bg-component-header-nav-bg","flex","flex-row","gap-0","items-start","justify-center","shrink-0","w-full","relative","overflow-hidden"],languageSelectorContent:["pr-general-spacing-margin-x","pl-general-spacing-margin-x","flex","flex-row","gap-0","items-start","justify-center","flex-1","relative","bg-component-header-nav-bg","bg-gradient-to-r","from-component-header-mega-menu-bg-stop-1","from-60%","to-component-header-mega-menu-bg-stop-2","to-100%","bg-center","bg-cover","bg-no-repeat"],languageSelectorInner:["p-spacing-spacing-32","flex","flex-row","gap-space-between-base","items-start","justify-center","self-stretch","flex-1","relative","overflow-hidden"],languageSelectorColumn:["flex","flex-col","gap-3","items-start","justify-start","flex-1","relative"],languageSelectorColumnInner:["flex","flex-col","gap-2","items-start","justify-start","self-stretch","shrink-0","relative"],languageSelectorCard:["rounded-lg","flex","flex-row","gap-0","items-start","justify-start","shrink-0","relative"],languageSelectorCardInner:["flex","flex-col","gap-spacing-spacing-16","items-start","justify-start","shrink-0","relative"],languageSelectorItems:["flex","flex-col","gap-spacing-spacing-8","items-start","justify-start","shrink-0","relative"],languageSelectorItemActive:["group","bg-component-header-mega-menu-language-item-bg-active","rounded-component-header-nav-language-item-border-radius","border-solid","border-component-header-mega-menu-language-item-border-active","border","pt-spacing-spacing-8","pr-spacing-spacing-12","pb-spacing-spacing-8","pl-spacing-spacing-12","flex","flex-row","items-center","justify-between","shrink-0","w-[185px]","relative","max-h-[69px]","focus:outline-none","focus-visible:ring-4","focus-visible:ring-color-border-border-focus"],languageSelectorItem:["bg-component-header-mega-menu-language-item-bg","rounded-component-header-nav-language-item-border-radius","border-solid","border-component-header-mega-menu-language-item-border","border","pt-spacing-spacing-8","pr-spacing-spacing-12","pb-spacing-spacing-8","pl-spacing-spacing-12","flex","flex-row","gap-2","items-center","justify-between","shrink-0","w-[185px]","relative","cursor-pointer","transition-all","duration-200","group","hover:bg-component-header-mega-menu-language-item-bg-hover","hover:border-component-header-mega-menu-language-item-border-hover","hover:shadow-sm","focus-visible:bg-component-header-mega-menu-language-item-bg-hover","focus-visible:border-component-header-mega-menu-language-item-border-hover","focus:outline-none","focus-visible:ring-4","focus-visible:ring-color-border-border-focus","max-h-[69px]"],languageSelectorItemContent:["flex","flex-row","gap-spacing-spacing-12","items-start","justify-start","shrink-0","relative"],languageSelectorItemTextContainer:["flex","flex-col","gap-spacing-spacing-8","items-start","justify-center","shrink-0","relative"],languageSelectorItemTextActive:["text-component-header-text-active","text-left","font-typography-font-family-body","text-typography-font-size-body-medium","leading-typography-line-height-body-medium","font-typography-font-weight-body-semibold","relative","flex","items-center","justify-start"],languageSelectorItemText:["text-component-header-text","text-left","font-typography-font-family-body","text-typography-font-size-body-medium","leading-typography-line-height-body-medium","font-typography-font-weight-body-semibold","relative","flex","items-center","justify-start","transition-colors","duration-200","group-hover:text-component-header-text-hover"],languageSelectorItemSubtextActive:["text-component-header-text-active","text-left","font-typography-font-family-body","text-typography-font-size-body-small","leading-typography-line-height-body-small","font-typography-font-weight-body","relative","flex","items-center","justify-start"],languageSelectorItemSubtext:["text-component-header-text","text-left","font-typography-font-family-body","text-typography-font-size-body-small","leading-typography-line-height-body-small","font-typography-font-weight-body","relative","flex","items-center","justify-start","transition-colors","duration-200","group-hover:text-component-header-text-hover"],languageSelectorItemIcon:["shrink-0","w-6","h-6","relative","overflow-visible"]}});e.s(["default",0,({languageList:e,languageSelectorRef:i,headerRef:u,languageSelectorOpen:d,setLanguageSelectorOpen:p})=>{let h=(0,a.useParams)(),f=h?.locale??"",{buildHref:g}
132=(0,o.useLocalizedPageHref)(),m=(0,s.useSitecoreContext)(),y=m?.sitecoreContext?.languages??[],b=y.find(e=>e.isoCode.toLowerCase()===f),v=(0,r.useCallback)(e=>{let t=e?.countryCode,{language:r}=((e,t)=>{if("US"===t&&!e.includes("United States"))return{language:e};let r=e.match(/(.*?)\s*\((.*?)\)/);return r?{language:r[1].trim()}:{language:e}})(e?.nativeName||"",t||"");return{language:(0,l.capitalizeFirstLetter)(r),isoCode:e?.isoCode}},[]);v(b);let x=(0,r.useCallback)(e=>{if("Escape"===e.key){p(!1);let e=document.getElementById("language-selector-button");e?.focus()}else if("Tab"!==e.key||e.shiftKey){if("ArrowDown"===e.key){e.preventDefault();let t=e.target,r=t.parentElement?.nextElementSibling?.querySelector('[role="menuitem"]');if(r)r.focus();else{let e=i.current?.querySelector('[role="menuitem"]');e?.focus()}}else if("ArrowUp"===e.key){e.preventDefault();let t=e.target,r=t.parentElement?.previousElementSibling?.querySelector('[role="menuitem"]');if(r)r.focus();else{let e=i.current?.querySelectorAll('[role="menuitem"]'),t=e?.[e.length-1];t?.focus()}}}else{let t=i.current?.querySelectorAll('[role="menuitem"]'),r=t?.[t.length-1];e.target===r&&p(!1)}},[p,i]);(0,r.useEffect)(()=>{if(!d)return;let e=e=>{let t=e.target,r=u.current&&u.current.contains(t),n=i.current&&i.current.contains(t);r||n||p(!1)};return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}},[d,u,i,p]),(0,r.useEffect)(()=>{if(!d)return;let e=e=>{let t=e.relatedTarget;!i.current||i.current.contains(t)||!t||t.closest('[role="menubar"]')||u.current&&u.current.contains(t)||p(!1)},t=i.current;if(t)return t.addEventListener("focusout",e),()=>{t.removeEventListener("focusout",e)}},[d,i,u,p]);let{languageSelectorContainer:_,languageSelectorWrapper:w,languageSelectorContent:T,languageSelectorInner:S,languageSelectorColumn:C,languageSelectorColumnInner:E,languageSelectorCard:k,languageSelectorCardInner:N,languageSelectorItems:I,languageSelectorItemActive:A,languageSelectorItem:j,languageSelectorItemContent:P,languageSelectorItemTextContainer:O,languageSelectorItemTextActive:L,languageSelectorItemText:D,languageSelectorItemSubtextActive:R,languageSelectorItemSubtext:M,languageSelectorItemIcon:B}=c();return d?(0,t.jsx)("div",{ref:i,className:_(),style:{boxShadow:"var(--shadow-400-box-shadow, 0px 8px 16px -4px rgba(0, 0, 0, 0.1))"},id:"language-selector",role:"group","aria-labelledby":"language-selector-menu",onKeyDown:x,children:(0,t.jsx)("div",{className:w(),style:{boxShadow:"var(--shadow-400-box-shadow, 0px 8px 16px -4px rgba(0, 0, 0, 0.1))"},children:(0,t.jsxs)("div",{className:T(),children:[(0,t.jsx)("h2",{id:"language-selector-menu",className:"sr-only",children:"Choose your language"}),(0,t.jsx)("div",{className:S(),children:e&&e.length>0&&(()=>{let r=[];for(let t=0;t<e.length;t+=3){let i=e.slice(t,t+3);r.push(i)}return r.map((e,r)=>(0,t.jsx)("div",{className:C(),children:(0,t.jsx)("div",{className:E(),children:(0,t.jsx)("div",{className:k(),children:(0,t.jsx)("div",{className:N(),children:(0,t.jsx)("ul",{className:I(),role:"presentation",children:e.map((e,i)=>{let a=(e.fields&&"Regional Iso Code"in e.fields?e.fields["Regional Iso Code"]:void 0)?.value,s=(e.fields&&"Iso"in e.fields?e.fields.Iso:void 0)?.value,o=y.find(e=>!!a&&(e.isoCode===a||e.isoCode.startsWith(a+"-")||a.startsWith(e.isoCode+"-")));if(!o)return null;let l=b?.isoCode===o.isoCode,{language:c}=v(o);return(0,t.jsx)("li",{role:"presentation",children:(0,t.jsxs)(n.default,{href:g(o.isoCode),className:l?A():j(),role:"menuitem",tabIndex:0,"aria-current":l?"true":void 0,"aria-label":l?`${c} is selected`:c,onKeyDown:e=>{("Enter"===e.key||" "===e.key)&&(e.preventDefault(),p(!1),window.location.href=e.currentTarget.href)},children:[(0,t.jsx)("div",{className:P(),children:(0,t.jsxs)("div",{className:O(),children:[(0,t.jsx)("span",{className:"sr-only",children:"Language selected is"}),(0,t.jsx)("div",{className:l?L():D(),children:s?.toUpperCase()||e.name}),(0,t.jsx)("div",{className:l?R():M(),children:c})]})}),l&&(0,t.jsx)("svg",{className:`${B()} 
133                                            [&_path]:fill-component-header-nav-lang-select-icon-selected`,width:"24",height:"25",viewBox:"0 0 24 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,t.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M20.7071 5.79289C21.0976 6.18342 21.0976 6.81658 20.7071 7.20711L9.70711 18.2071C9.31658 18.5976 8.68342 18.5976 8.29289 18.2071L3.29289 13.2071C2.90237 12.8166 2.90237 12.1834 3.29289 11.7929C3.68342 11.4024 4.31658 11.4024 4.70711 11.7929L9 16.0858L19.2929 5.79289C19.6834 5.40237 20.3166 5.40237 20.7071 5.79289Z"})}),!l&&(0,t.jsx)("svg",{className:`${B()} opacity-0 group-hover:opacity-100 group-focus-visible:opacity-100 transition-opacity duration-200 [&_path]:fill-component-header-nav-lang-select-icon-focused `,width:"24",height:"25",viewBox:"0 0 24 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,t.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M20.7071 5.79289C21.0976 6.18342 21.0976 6.81658 20.7071 7.20711L9.70711 18.2071C9.31658 18.5976 8.68342 18.5976 8.29289 18.2071L3.29289 13.2071C2.90237 12.8166 2.90237 12.1834 3.29289 11.7929C3.68342 11.4024 4.31658 11.4024 4.70711 11.7929L9 16.0858L19.2929 5.79289C19.6834 5.40237 20.3166 5.40237 20.7071 5.79289Z"})})]})},e.id||`${r}-${i}`)})})})})})},r))})()})]})})}):null}])},202289,e=>{"use strict";var t=e.i(843476),r=e.i(211418),i=e.i(136905);let n=(0,r.tv)({slots:{languageSelector:["bg-component-header-nav-language-selector-bg","py-spacing-spacing-8","px-spacing-spacing-16","flex","flex-row","gap-spacing-spacing-4","items-center","justify-start","self-stretch","shrink-0","relative","border-solid","border-component-header-nav-link-border","border-b-2","hover:border-component-header-nav-item-border-hover","group"],languageContent:["flex","flex-row","gap-spacing-spacing-12","items-center","justify-start","shrink-0","relative"],languageTextContainer:["flex","flex-col","gap-spacing-spacing-8","items-start","justify-center","shrink-0","relative"],languageText:["text-component-header-text","text-left","font-typography-font-family-body","text-typography-font-size-body-small","leading-typography-line-height-body-small","font-typography-font-weight-body-semibold","relative","flex","items-center","justify-start"],languageIcon:["shrink-0","w-4","h-4","relative","overflow-visible","transition","duration-200","[&_path]:transition-colors","[&_path]:duration-200","[&_path]:fill-component-header-icon","group-hover:[&_path]:fill-component-header-icon-hover"]},variants:{isLanguageSelectorOpen:{false:{languageIcon:["rotate-0"]},true:{languageSelector:["border-component-header-nav-link-border-active"],languageIcon:["rotate-180","[&_path]:fill-component-header-icon-active"]}}}});e.s(["default",0,({isoCode:e,languageSelectorOpen:r,setLanguageSelectorOpen:a,dropdownOpen:s,setDropdownOpen:o})=>{let{languageSelector:l,languageContent:c,languageTextContainer:u,languageText:d,languageIcon:p}=n({isLanguageSelectorOpen:r});return(0,t.jsx)("button",{id:"language-selector-button","aria-haspopup":"true","aria-expanded":r,"aria-label":"Toggle Language Selector",type:"button",role:"menuitem",onClick:()=>{a(!r),null!==s&&o(null)},...(0,i.getTestProps)("select-button"),children:(0,t.jsxs)("div",{className:l(),children:[(0,t.jsx)("div",{className:c(),children:(0,t.jsxs)("div",{className:u(),children:[(0,t.jsx)("span",{className:"sr-only",children:"Language selected is"}
133),(0,t.jsx)("div",{className:d(),children:e?.split("-")[0]?.toUpperCase()})]})}),(0,t.jsx)("svg",{className:p(),style:{aspectRatio:1},width:"16",height:"17",viewBox:"0 0 16 17",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,t.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.5286 6.02876C3.78894 5.76841 4.21105 5.76841 4.4714 6.02876L8 9.55735L11.5286 6.02876C11.7889 5.76841 12.2111 5.76841 12.4714 6.02876C12.7318 6.28911 12.7318 6.71122 12.4714 6.97157L8.4714 10.9716C8.21105 11.2319 7.78894 11.2319 7.5286 10.9716L3.5286 6.97157C3.26825 6.71122 3.26825 6.28911 3.5286 6.02876Z"})})]})})}])},657190,e=>{"use strict";var t=e.i(843476),r=e.i(211418),i=e.i(506914),n=e.i(136905);let a=(0,r.tv)({slots:{searchContainer:["bg-component-header-nav-button-bg","rounded-component-header-nav-button-border-radius","border-solid","border-component-header-nav-button-border","border","pt-spacing-spacing-8","pr-spacing-spacing-24","pb-spacing-spacing-8","pl-spacing-spacing-16","flex","flex-row","gap-2","items-center","justify-start","shrink-0","h-[52px]","relative","overflow-hidden","cursor-pointer"],searchIcon:["shrink-0","w-8","h-8","relative","overflow-visible","[&_path]:fill-component-header-icon"],searchText:["text-component-header-nav-button-text","text-center","font-body-medium-font-family","text-body-medium-font-size","leading-body-medium-line-height","font-body-medium-font-weight","relative"]}});e.s(["default",0,({searchPlaceholder:e,showSearch:r,setShowSearch:s})=>{let{searchContainer:o,searchIcon:l,searchText:c}=a();return e?.value?(0,t.jsxs)("button",{className:o(),onClick:()=>s(!0),"aria-expanded":!!r,"aria-label":"Toggle Search",role:"menuitem",...(0,n.getTestProps)("header-search-toggle"),children:[(0,t.jsx)("svg",{className:l(),style:{aspectRatio:1},width:"33",height:"33",viewBox:"0 0 33 33",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,t.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14.8666 5.83317C9.71192 5.83317 5.53324 10.0118 5.53324 15.1665C5.53324 20.3212 9.71192 24.4998 14.8666 24.4998C17.3812 24.4998 19.6635 23.5054 21.3418 21.8884C21.3769 21.8427 21.4153 21.7988 21.4571 21.757C21.4989 21.7152 21.5428 21.6768 21.5884 21.6417C23.2055 19.9634 24.1999 17.6811 24.1999 15.1665C24.1999 10.0118 20.0212 5.83317 14.8666 5.83317ZM24.2424 22.6568C25.8846 20.6039 26.8666 17.9999 26.8666 15.1665C26.8666 8.53909 21.494 3.1665 14.8666 3.1665C8.23916 3.1665 2.86658 8.53909 2.86658 15.1665C2.86658 21.7939 8.23916 27.1665 14.8666 27.1665C17.6999 27.1665 20.3039 26.1845 22.3568 24.5424L27.2571 29.4426C27.7778 29.9633 28.622 29.9633 29.1427 29.4426C29.6634 28.9219 29.6634 28.0777 29.1427 27.557L24.2424 22.6568Z"})}),(0,t.jsx)("div",{className:c(),children:(0,t.jsx)(i.default,{field:e})})]}):null}])},720148,e=>{"use strict";var t=e.i(843476),r=e.i(211418),i=e.i(271645),n=e.i(296217),a=e.i(136905),s=e.i(422674),o=e.i(340189),l=e.i(775518),c=e.i(503441),u=e.i(389980),d=e.i(887528),p=e.i(992210),h=e.i(618566),f=e.i(197510),g=e.i(227832),m=e.i(901260),y=e.i(842375),b=e.i(640127),v=e.i(202289),x=e.i(657190),_=e.i(455601);let w=["ThemesWhite","ThemesLight"],T=(0,r.tv)({slots:{container:["bg-component-header-nav-bg","border-solid","border-component-header-nav-bottom-border","border-b","flex","flex-col","gap-2","items-center","justify-start","relative","overflow-hidden"],headerSection:["pt-spacing-spacing-24","pr-padding-base","pb-spacing-spacing-24","pl-padding-base","flex","flex-row","gap-0","items-center","justify-center","self-stretch","shrink-0","relative"],headerContent:["flex","flex-row","items-center","justify-between","flex-1","max-w-columns-full-max-width","relative"],leftSection:["flex","flex-row","gap-0","items-center","justify-start","flex-1","relative"],rightSection:["flex","flex-col","gap-space-between-micro","items-end","justify-center","shrink-0","relative"],topRightRow:["flex","flex-row","gap-space-between-tight","items-center","justify-end","shrink-0","relative"],utilityButton:["!px-spacing-spacing-12","py-spacing-spacing-8","!min-h-full","h-[37px]"],navigationRow:["flex","flex-row","gap-space-between-base","items-center","justify-end","self-stretch","shrink-0","relative"]}});e.s(["default",0,e=>{let{fields:r,onMegaMenuStateChange:S,onLanguageDropdownStateChange:C}=e||{},{theme:E}=(0,u.useBrandAndTheme)(),{logo:k,lightThemeLogo:N,isLightHeader:I,logoLink:A,utilityLink:j,searchPlaceholder:P,languageList:O}=r||{},L=(null!=E?w.includes(E):I?.value===!0)?N?.value?.src?N:k:k?.value?.src?k:N,D=r?.navigationList,R=(0,h.useParams)().locale,M=(0,s.use
133SitecoreContext)(),B=(M?.sitecoreContext?.languages??[]).find(e=>e.isoCode.toLowerCase()===R),{isoCode:U}=(0,i.useCallback)(e=>{let t=e?.countryCode,{language:r}=((e,t)=>{if("US"===t&&!e.includes("United States"))return{language:e};let r=e.match(/(.*?)\s*\((.*?)\)/);return r?{language:r[1].trim()}:{language:e}})(e?.nativeName||"",t||"");return{language:(0,p.capitalizeFirstLetter)(r),isoCode:e?.isoCode}},[])(B),[F,$]=(0,i.useState)(null),[z,q]=(0,i.useState)(!1),H=(0,i.useRef)(null),W=(0,i.useRef)(null),V=(0,i.useRef)(null);(0,i.useEffect)(()=>{S&&S(()=>$(null),()=>null!==F)},[S,F]),(0,i.useEffect)(()=>{C&&C(()=>q(!1),()=>z)},[C,z]),(0,i.useEffect)(()=>{if(null===F)return;let e=e=>{let t=e.target,r=H.current&&H.current.contains(t),i=W.current&&W.current.contains(t);r||i||$(null)};return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}},[F]),(0,i.useEffect)(()=>{if(!z)return;let e=e=>{let t=e.target,r=H.current&&H.current.contains(t),i=V.current&&V.current.contains(t);r||i||q(!1)};return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}},[z]),(0,i.useEffect)(()=>(null!==F?(0,f.lockBodyScroll)():(0,f.unlockBodyScroll)(),()=>{(0,f.unlockBodyScroll)()}),[F]),(0,i.useEffect)(()=>(z?(0,f.lockBodyScroll)():(0,f.unlockBodyScroll)(),()=>{(0,f.unlockBodyScroll)()}),[z]);let G=e=>{$(e)},X=(0,i.useMemo)(()=>'[role="menuitem"],[role="menubar"],button[aria-haspopup="true"],a,button,input,[data-component*="search"],[data-component*="language"]',[]),K=(0,i.useCallback)(e=>{!e.target.closest(X)&&(null!==F&&$(null),z&&q(!1))},[F,z,X,$,q]),{showSearch:Y,setShowSearch:Q}=(0,c.useHeader)();(0,i.useEffect)(()=>{Y&&$(null)},[Y]);let J=M?.sitecoreContext?.siteSettings,Z=J?.globalSearchSourceId?.value,ee=J?.globalSearchPreviewWidgetId?.value,et=J?.globalSearchEntityName?.value,er=[...Z?Z.split("|").map(e=>e.trim()).filter(e=>e):[]];if((0,l.useOnRouteChange)(()=>{$(null),q(!1)}),!r)return(0,t.jsx)(t.Fragment,{});let{container:ei,headerSection:en,headerContent:ea,leftSection:es,rightSection:eo,topRightRow:el,utilityButton:ec,navigationRow:eu}=T();return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:ei(),ref:H,id:"header-desktop",onClick:K,...(0,a.getTestProps)("header-desktop"),role:"menubar",children:(0,t.jsx)("div",{className:en(),children:(0,t.jsxs)("div",{className:ea(),children:[(0,t.jsxs)("div",{className:es(),children:[(0,t.jsx)(g.default,{logo:L,logoLink:A,isMobile:!1}),(0,t.jsx)(x.default,{searchPlaceholder:P,showSearch:Y,setShowSearch:Q}),Y&&(0,t.jsx)(d.default,{rfkid:ee||"",sources:er,closeSearch:()=>Q(!1),entityName:et||""})]}),(0,t.jsxs)("div",{className:eo(),children:[(0,t.jsxs)("div",{className:el(),children:[(0,t.jsx)(v.default,{isoCode:U,languageSelectorOpen:z,setLanguageSelectorOpen:q,dropdownOpen:F,setDropdownOpen:$}),(0,t.jsx)("div",{children:(0,t.jsx)(n.default,{ctaComponentClass:"component-header-button-color-1",field:j,ctaStyle:(0,o.getCtaStyle)(j,"primary"),className:ec(),gtmEvent:(0,_.createCTAClickEvent)({event:"cta_click",componentName:"header navigation",clickText:j?.value?.text||"",componentHeader:"Primary CTA"}),cdpEvent:{component:"Book a demo"},...(0,a.getTestProps)("link-cta1")})})]}),(0,t.jsx)("div",{className:eu(),children:(0,t.jsx)("ul",{className:"flex flex-row gap-space-between-base items-center justify-end self-stretch shrink-0 relative list-none m-0 p-0",role:"presentation",children:D?.map((e,r)=>(0,t.jsx)("li",{role:"presentation",children:(0,t.jsx)(m.default,{...e,index:r,dropdownOpen:F,headerRef:H,open:()=>G(r),close:()=>G(null),closeLanguageSelector:()=>q(!1),languageSelectorOpen:z})},e.id))})})]})]})})}),(0,t.jsx)(y.default,{navigationList:D,dropdownOpen:F,megaMenuContainerRef:W,setDropdownOpen:$,headerRef:H}),(0,t.jsx)(b.default,{languageList:O,languageSelectorRef:V,headerRef:H,languageSelectorOpen:z,setLanguageSelectorOpen:q})]})}])},197395,e=>{"use strict";var t=e.i(843476),r=e.i(271645),i=e.i(720148),n=e.i(365303),a=e.i(211418),s=e.i(828029),o=e.i(148263),l=e.i(503441),c=e.i(136905),u=e.i(389980),d=e.i(461649),p=e.i(422674);let h=e=>{let a=(0,s.default)(),{brand:d,theme:p}=(0,u.useBrandAndTheme)(),{isOverlayVisible:h,handleOverlayChange:g,setIsMobile:m}=(0,l.useHeader)(),y=(0,o.useIsMobile)(),b=(0,r.useRef)(null),v=(0,r.useRef)(null),x=(0,r.useRef)(null),_=(0,r.useRef)(null);(0,r.useEffect)(()=>{m(y)},[y,m]),(0,r.useEffect)(()=>{g()},[g]);let w=(0,r.useCallback)(e=>{!e.target.closest('button, a, input, [role="menuitem"]')&&(v.current?.()&&b.current&&b.current(),_.current?.()&&x.current&&x.current())},[]),T=(0,r.useCallback)((e,t)=>{b.current=e,v.current=t},[]),S=(0,r.useCallback)((e,t)=>{x.current=e,_.current=t},[]),{base:C,overlay:E}=f({isOverlayVisible:h});return e.fields?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("header",{id:"header","data-component":"authorable/shared/site-structure/header/header",...(0,c.getTestProps)("component-header-"+e?.rendering?.uid
133),className:`${d} ${p} brand-root ${C()} ${a?"relative":"sticky"}`,onClick:w,children:[(0,t.jsx)("div",{className:"hidden xl:block",children:(0,t.jsx)(i.default,{onMegaMenuStateChange:T,onLanguageDropdownStateChange:S,...e})}),(0,t.jsx)("div",{className:"block xl:hidden",children:(0,t.jsx)(n.default,{...e})})]}),h&&(0,t.jsx)("div",{className:E()})]}):(0,t.jsx)(t.Fragment,{})},f=(0,a.tv)({slots:{base:["top-0","bg-component-header-nav-bg","w-full","z-50","transition-transform","duration-300"],overlay:["fixed","inset-0","bg-black","opacity-50","z-30"]},variants:{isOverlayVisible:{true:{overlay:["block"]},false:{overlay:["hidden"]}}}});e.s(["Default",0,e=>{let{sitecoreContext:r}=(0,p.useSitecoreContext)(),i=r?.site?.name,n=i?(0,d.getBrandForSiteName)(i):void 0,a=r?.route,s=a?.fields?.selectTheme?.value,o=e?.fields?.selectTheme?.value||u.ALL_THEMES[2],c=e?.params?.selectBrand??n??u.ALL_BRANDS[0];return(0,t.jsx)(u.BrandAndThemeContext.Provider,{value:{brand:c,theme:s||o},children:(0,t.jsx)(l.HeaderProvider,{children:(0,t.jsx)(h,{...e})})})}])},74442,e=>{"use strict";var t=e.i(843476),r=e.i(271645),i=e.i(38930),n=e.i(422674);e.s(["SvgImageWrapper",0,({src:e,fallback:a=null,alt:s="",className:o="",sanitize:l=!0})=>{let[c,u]=(0,r.useState)(!1),d=(0,n.useSvgCache)(),p=(0,i.normalizeImageUrl)(e),[h,f]=(0,r.useState)(d?.[p??""]??null);return((0,r.useEffect)(()=>{let e=async()=>{var e;if(!p){u(!0),f(null);return}let r=d?.[p]??await t();
133r?(l&&(e=r,r=e?.replace(/fill=".*?"/g,'fill="currentColor"').replace(/<script.*?>.*?<\/script>/gi,"").replace(/on\w+=".*?"/gi,"").replace(/javascript:/gi,"")??""),f(r)):(u(!0),f(null))},t=async()=>{try{if(!p){u(!0),f(null);return}let e=await fetch(p);if(!e.ok||!e.headers.get("content-type")?.includes("image/svg"))throw Error("Invalid SVG file or blocked");return await e.text()}catch(e){return console.error("Error loading SVG:",e),null}};h||e()},[l,o,d,p,h]),c||!h)?(0,t.jsx)("div",{className:o,children:a}):(0,t.jsx)("div",{className:o,role:"img","aria-label":s,dangerouslySetInnerHTML:{__html:h}})}])},403577,e=>{"use strict";var t=e.i(843476),r=e.i(211418),i=e.i(296217),n=e.i(133267);e.i(879806);var a=e.i(871084),s=e.i(136905),o=e.i(506914),l=e.i(74442),c=e.i(38930),u=e.i(455601);let d=(0,r.tv)({slots:{base:["w-full","bg-component-footer-bg","bg-gradient-to-br","from-color-core-color-1-500","from-[5.64%]","via-color-core-color-1-700","via-[46%]","to-color-core-color-1-800","to-[86.74%]","relative","overflow-hidden"],footerBG:["md:!w-[1076px]","md:!h-[auto]","!w-[799px]","!h-[799px]","absolute","md:right-[20%]","md:bottom-[-699px]","right-[-369px]","bottom-[-453px]","opacity-[0.1]","z-0","pointer-events-none"],contentContainer:["flex","flex-col","md:gap-spacing-spacing-64","gap-spacing-spacing-48","lg:flex","lg:flex-row","lg:gap-spacing-spacing-64","lg:pt-spacing-spacing-80","md:pb-spacing-spacing-120","lg:col-span-4","m-auto","max-w-screen-dimensions-max-width","min-w-screen-dimensions-min-width","px-general-spacing-margin-x","pb-spacing-spacing-48","py-spacing-spacing-48"],linkListContainer:["gap-spacing-spacing-32","lg:gap-spacing-spacing-40","lg:flex","flex-1","lg:flex-nowrap","flex-wrap","items-start","self-stretch","lg:basis-1/2","lg:justify-end","grid","grid-cols-2","lg:grid-cols-none","z-10"],navContainer:["w-full"],linkListItem:["first:pb-1","first:pb-spacing-spacing-16","group","pb-spacing-spacing-12"],linkListLink:["flex","items-center","border-b","group-hover:border-b","group-hover:border-component-footer-link-border-hover","border-component-footer-link-border","!text-component-footer-link-text","hover:!text-component-footer-link-text-hover","focus:!bg-transparent","focus:no-underline"],linkListText:["flex","gap-spacing-spacing-8","items-center","text-component-footer-link-text","group-hover:text-component-footer-link-text-hover","font-typography-font-family-body","text-typography-font-size-body-small","font-typography-font-weight-body-semibold","leading-typography-line-height-body-small"],linkListTitle:["text-component-footer-category-label","font-typography-font-family-body","text-typography-font-size-body-small","font-typography-font-weight-body","leading-typography-line-height-body-small"],svgIconClass:["scale-x-0","group-hover:scale-x-100","!h-5","!w-5","fill-current","text-component-footer-link-text","group-hover:text-component-footer-link-text-hover"],logoContainer:["lg:w-1/4","flex","flex-col","gap-6","lg:gap-8"],logoDescription:["text-component-footer-description-text","font-typography-font-family-header","text-typography-font-size-large","font-typography-font-weight-large","leading-typography-line-height-large","[&>span]:bg-clip-text","[&>span]:text-transparent","[&>span]:bg-gradient-to-r","[&>span]:from-color-core-color-2-400","[&>span]:via-color-core-gradient-1-stop-2","[&>span]:to-color-core-gradient-1-stop-1","[&>span]:from-[0%]","[&>span]:via-[40%]","[&>span]:to-[100%]"],footerSectionWrapper:["w-full","py-spacing-spacing-40","lg:py-spacing-spacing-48","bg-component-footer-utility-bg"],footerSocialLinksSection:["m-auto","lg:items-center","flex","flex-col-reverse","lg:flex-row","gap-spacing-spacing-24","md:gap-spacing-spacing-32","justify-between","max-w-screen-dimensions-max-width","min-w-screen-dimensions-min-width","px-general-spacing-margin-x","relative","z-10"],copyRightTextStyle:["text-component-footer-legal-text","text-typography-font-size-body-xSmall","font-typography-font-weight-body","leading-typography-line-height-body-xSmall"],socialMediaLinkWrapper:["flex","gap-6","items-center","relative","z-10"],socialMediaImageWrapper:["!w-6","block","group","focus:!bg-transparent","focus:no-underline"],socialIconImage:["w-6","h-6","fill-component-footer-social-icon","group-hover:[&_path]:fill-component-footer-social-icon-hover"]}});e.s(["Default",0,e=>{let{RenderingIdentifier:p}=e?.params||{},h=e.fields?.footerColumns,f=e.fields?.footerLogo,g=e.fields?.footerLogoLink,m=e?.fields?.footerDescription,y=e?.fields?.copyrightText,b=e?.fields?.socialMediaLinks,v=[{key:"{{year}}",value:new Date().getFullYear().toString()}];if(!e.fields)return(0,t.jsx)(t.Fragment,{});let{base:x,contentContainer:_,linkListContainer:w,linkListItem:T,linkListLink:S,linkListTitle:C,logoContainer:E,logoDescription:k,svgIconClass:N,linkListText:I,footerSocialLinksSection:A,footerSectionWrapper:j,copyRightTextStyle:P,socialMediaLinkWrapper:O,socialMediaImageWrapper:L,socialIconImage:D,navContainer:R,footerBG:M}=(0,r.tv)({extend:d,slots:{base:[e?.params?.styles]}})();return(0,t.jsxs)("div",{"data-component":"authorable/shared/site-structure/footer/footer",id:p,...(0,s.getTestProps)("component-footer-"+e?.rendering?.uid
133),className:x(),children:[(0,t.jsxs)("div",{className:_(),children:[(0,t.jsxs)("div",{className:E(),children:[(0,t.jsx)(i.default,{ctaComponentClass:"default",className:"focus:!bg-transparent",...(0,s.getTestProps)("footer-logo"),field:g,children:(0,t.jsx)(t.Fragment,{children:(0,t.jsx)(c.default,{field:f,className:"max-w-full h-auto"})})}),(0,t.jsx)("div",{children:(0,t.jsx)(n.default,{...(0,s.getTestProps)("footer-description"),className:k(),field:m,tag:"p"})})]}),(0,t.jsx)("div",{className:w(),children:h?.map(e=>{let r=e?.fields?.columnLinks;return(0,t.jsxs)("ul",{className:R(),children:[(0,t.jsx)("li",{className:T(),children:(0,t.jsx)(o.default,{...(0,s.getTestProps)("footer-nav-header"),className:C(),field:e?.fields?.columnHeader,tag:"div"})}),r?.map(r=>{let n=r?.fields?.link?.value?.target==="_blank";return(0,t.jsx)("li",{className:T(),children:(0,t.jsx)(i.default,{ctaComponentClass:"default",...(0,s.getTestProps)("footer-nav-link"),className:S(),field:r?.fields?.link,gtmEvent:(0,u.createCTAClickEvent)({event:"cta_click",componentName:"footer navigation",clickText:r?.fields?.link?.value?.text||"",componentHeader:e?.fields?.columnHeader?.value||""}),cdpEvent:{component:"Footer Navigation"},children:(0,t.jsxs)("span",{className:I(),children:[r?.fields?.link?.value?.text,!n&&(0,t.jsx)(a.SvgIcon,{className:N(),icon:"arrow-dash-right",size:"xs",viewBox:"0 0 20 20",fill:"currentColor"})]})})},r?.id)})]},e?.id)})})]}),(0,t.jsx)("div",{className:j(),children:(0,t.jsxs)("div",{className:A(),children:[(0,t.jsx)(n.default,{...(0,s.getTestProps)("copyright-info"),className:P(),field:y,tag:"p",tokens:v}),(0,t.jsx)("ul",{className:O(),...(0,s.getTestProps)("social-media"),children:b?.map(e=>{let r=e?.fields?.socialMediaLink,n=e?.fields?.socialMediaLogo?.value?.src||"";return(0,t.jsx)("li",{children:(0,t.jsx)(i.default,{ctaComponentClass:"default",...(0,s.getTestProps)("social-media-link"),className:L(),field:r,suppressNewTabIcon:!0,children:(0,t.jsx)(l.SvgImageWrapper,{className:D(),src:n,alt:e?.fields?.socialMediaLogo?.value?.alt||"Social media icon"})})},e?.id)})})]})}),(0,t.jsx)(a.SvgIcon,{className:M(),icon:"footer-bg",viewBox:"0 0 250 250.23"})]})}])},98769,e=>{"use strict";var t=e.i(843476),r=e.i(376917),i=e.i(211418),n=e.i(296217);e.i(879806);var a=e.i(871084),s=e.i(136905),o=e.i(422674);let l=(0,i.tv)({slots:{base:["component","py-padding-less","pl-padding-more","md:pl-general-spacing-margin-x","bg-p-color-bg-surface","flex","relative","w-full","before:h-full","before:z-1","before:absolute","before:top-0","before:border-b-border-width-width-025","before:border-color-border-light","before:border-solid","before:left-[calc(-50vw+50%)]","before:right-[calc(-50vw+50%)]"],iconAnchorWrapper:["flex","items-center","focus:outline-2","focus:outline-component-breadcrumb-text","focus:outline-offset-[-2px]"],iconWrapper:["flex","items-center","gap-spacing-spacing-4","pb-[1px]","text-component-breadcrumb-icon"],list:["flex","flex-row","overflow-x-auto","gap-spacing-spacing-4","items-center","justify-start","list","flex-1","[&::-webkit-scrollbar]:hidden","-ms-overflow-style-none","scrollbar-none","relative","snap-x","snap-mandatory","scroll-smooth","pr-[60px]","md:pr-general-spacing-margin-x","[-webkit-overflow-scrolling:touch]","[touch-action:pan-x]","[overscroll-behavior-x:contain]","max-md:snap-proximity","md:snap-mandatory"],listItem:["flex","flex-row ","items-center","list-none","gap-spacing-spacing-4","shrink-0","relative","snap-start","min-w-0","flex-shrink-0"],linkWrapper:["font-typography-font-family-body","text-typography-font-size-body-small","font-typography-font-weight-body","text-component-breadcrumb-text-secondary","hover:text-component-breadcrumb-text","leading-5","flex","items-center","justify-start","text-left","relative","[&>span]:truncate","focus:outline-none","focus:ring-2","focus:ring-inset","focus:ring-current","touch-manipulation","select-none","whitespace-nowrap"],lastLevelText:["font-typography-font-family-body","text-typography-font-size-body-small","text-component-breadcrumb-text","font-typography-font-weight-body-semibold","leading-5","whitespace-nowrap","[&>span]:truncate","touch-manipulation"],icon:["h-auto","w-auto","aspect-square","text-component-breadcrumb-icon"],listOverLay:["absolute","right-0","top-0","flex","h-[99%]","w-[60px]","md:w-general-spacing-margin-x","py-[10
133px]","pr-[0px]","pl-[16px]","flex-col","justify-center","items-center","shrink-0","border-b-border-width-025","border-color-border-light","border-solid","bg-p-color-bg-surface","bg-gradient-to-r","from-color-white-alpha-0","to-color-bg-white","from-[0%]","to-[50%]"]}});e.s(["Default",0,e=>{let{sitecoreContext:i}=(0,o.useSitecoreContext)(),c=i?.breadcrumbData??null,u=e?.staticProps??c??null,d={...e,staticProps:u??{currentPage:{ancestors:[]}}},p=d.staticProps.currentPage,h=p?.ancestors??[],f=p?.Title,g=p?.BreadcrumbTitle,{componentName:m,dataSource:y}=d?.rendering??{},b=(h??[]).slice().reverse().filter(e=>e?.url?.path?.length&&e?.Title?.jsonValue?.value?.length).filter(e=>!e?.navigationFilter?.targetItems?.length||e?.navigationFilter?.targetItems?.find(e=>e?.key?.jsonValue?.value!=="breadcrumb")),v=(h?.length??0)>0;if(0===b.length&&!v)return(0,t.jsx)(t.Fragment,{});let{base:x,icon:_,linkWrapper:w,iconAnchorWrapper:T,iconWrapper:S,list:C,listItem:E,lastLevelText:k,listOverLay:N}=l();return(0,t.jsxs)("nav",{"aria-label":"Breadcrumb",className:x(),"data-component":"authorable/shared/site-structure/breadcrumb",...(0,s.getTestProps)("component-breadcrumb"),children:[(0,t.jsxs)("ul",{className:C(),children:[b.map((e,i)=>{let{url:o,Title:l,BreadcrumbTitle:c}=e||{};return(0,t.jsxs)("li",{className:E(),...(0,s.getTestProps)(`parent-page-${i}`),children:[0===i?(0,t.jsx)("a",{href:o?.path?.replace(/\/$/,""),className:T(),...(0,s.getTestProps)(`link-${i}`),title:c?.jsonValue?.value??l?.jsonValue?.value,children:(0,t.jsx)(a.SvgIcon,{icon:"breadcrumb-home",size:"xs",viewBox:"0 0 14 15",className:S(),...(0,s.getTestProps)("current-page-icon")})}):(0,t.jsx)(n.default,{ctaVariant:"custom",className:w(),field:{value:{href:o?.path?.replace(/\/$/,""),text:c?.jsonValue?.value?c?.jsonValue?.value:l?.jsonValue?.value,title:c?.jsonValue?.value?c?.jsonValue?.value:l?.jsonValue?.value}},gtmEvent:{event:"link",type:"breadcrumb","gtm.element.dataset.gtmDatasourceId":y,"gtm.element.dataset.gtmComponentName":m},...(0,s.getTestProps)(`link-${i}`),children:(0,t.jsx)(r.Text,{field:{value:c?.jsonValue?.value?c?.jsonValue?.value:l?.jsonValue?.value},...(0,s.getTestProps)(`link-text-${i}`),tag:"span",encode:!1})}),(0,t.jsx)("div",{className:"h-full",children:(0,t.jsx)(a.SvgIcon,{className:_(),fill:"none",icon:"chevron-right",size:"xs",viewBox:"0 0 16 16"})})]},o?.path)}),h?.length>0&&(0,t.jsx)("li",{"aria-current":"true",...(0,s.getTestProps)("current-page"),children:(0,t.jsx)(r.Text,{className:k(),encode:!1,field:{value:g?.jsonValue?.value??f?.jsonValue?.value},tag:"span",...(0,s.getTestProps)("current-page-text")})})]}),(0,t.jsx)("div",{className:N()})]})}])},227488,e=>{"use strict";var t=e.i(843476);let r=(0,e.i(84853).withStandardComponentWrapper)(e=>(0,t.jsx)(t.Fragment,{}),!1);e.s(["Default",0,r])},696568,e=>{"use strict";let t=/^\d{4}-\d{2}-\d{2}T|^\d{8}T\d{6}/,r=e=>!isNaN(e)&&e>=-22089888e5;e.s(["default",0,e=>{let t,i="u">typeof navigator&&navigator?.language||"en-US";if(!e)return"";if(/^\d{8}T\d{6}/.test(e)){let r=e.substring(0,4),i=e.substring(4,6),n=e.substring(6,8);t=new Date(`${r}-${i}-${n}`)}else t=new Date(e);return r(t.getTime())?t.toLocaleDateString(i,{month:"2-digit",day:"2-digit",year:"numeric"}):""},"formatEventDateTime",0,e=>{let i=e?.trim();if(!i)return"";let n=(e=>{let i,n=e?.trim();if(!n||!t.test(n))return null;if(/^\d{8}T\d{6}/.test(n)){let e=n.substring(0,4),t=n.substring(4,6),r=n.substring(6,8),a=n.substring(9,11),s=n.substring(11,13),o=n.substring(13,15),l=/Z$/i.test(n);i=new Date(`${e}-${t}-${r}T${a}:${s}:${o}${l?"Z":""}`)}else i=new Date(n);return r(i.getTime())?i:null})(i);if(!n)return i;let a=new Intl.DateTimeFormat("en-US",{hour:"numeric",minute:"2-digit",hour12:!0,timeZone:"UTC"}).format(n),s=new Intl.DateTimeFormat("en-US",{month:"long",day:"2-digit",year:"numeric",timeZone:"UTC"}).format(n);return`${a} GMT - ${s}`}])},631973,463534,e=>{"use strict";var t=e.i(843476),r=e.i(271645),i=e.i(136905);let n=(0,e.i(211418).tv)({slots:{tagsWrapper:["flex","gap-2","flex-wrap","items-start"],tagStyle:["py-component-tag-padding-y","px-component-tag-padding-x","border-component-tag-border","border-border-width-width-025","rounded-general-border-radius-tag","text-component-tag-text","text-typography-font-size-body-xSmall","font-typography-font-family-body","font-normal","relative"],tooltipStyle:["absolute","z-10","right-0","bg-color-fill-white","border","border-color-border-darkest","rounded-general-border-radius-label","py-component-tag-padding-y","px-component-tag-padding-x","shadow-[0px_3px_1px_-1px]","shadow-color-black-alpha-10","min-w-[120px]","cursor-text","text-left"]},variants:{isMoreTagButton:{true:{tagStyle:["cursor-pointer","bg-component-button-white-link-border-hover","border-color-border-darkest"]},false:{tagStyle:["bg-component-tag-fill"]}},tooltipPosition:{top:{tooltipStyle:["bottom-full","mb-2"]},bottom:{tooltipStyle:["top-full","mt-2"]}}}});e.s(["default",0,e=>{let{tags:a=[],maxTagsBreakPointNumber:s}=e,{tagsWrapper:o,tagStyle:l,tooltipStyle:c}=n(),[u,d]=(0,r.useState)("top"),p=(0,r.useRef)(null),h=(0,r.useRef)(null),{showTooltip:f,setShowTooltip:g,handleBlur:m,handleMouseEnter:y,handleMouseLeave:b}=(({wrapperRef:e,tooltipRef:t,timeout:i=5e3})=>{let[n,a]=(0,r.useState)(!1),[s,o]=(0,r.useState)(!1),l=(0,r.useRef)(null);return(0,r.useEffect)(()=>{let r=r=>{e.current&&!e.current.contains(r.target)&&t.current&&!t.current.contains(r.target)&&a(!1)},i=e=>{"Escape"===e.key&&a(!1)};return n&&(document.addEventListener("mousedown",r),document.addEventListener("keydown",i)),()=>{document.removeEventListener("mousedown",r),document.removeEventListener("keydown",i)}},[n,e,t]),(0,r.useEffect)(()=>(l.current&&(clearTimeout(l.current),l.current=null),n&&!s&&(l.current=setTimeout(()=>{a(!1)},i)),()=>{l.current&&clearTimeout(l.current)}),[n,s,i]),{showTooltip:n,setShowTooltip:a,handleBlur:r=>{let i=r.relatedTarget;e.current?.contains(i)||t.current?.contains(i)||a(!1)},handleMouseEnter:()=>o(!0),handleMouseLeave:()=>o(!1)}})({wrapperRef:p,tooltipRef:h}),v=(({items:e,maxItems:t,wrapperRef:i})=>{let n=void 0!==t?t:e.length,[a,s]=(0,r.useState)(Math.min(e?.length,n)),o=(0,r.useRef)(null);return(0,r.useEffect)(()=>{s(Math.min(e.length,n))},[e,n]),(0,r.useEffect)(()=>(o.current&&(clearTimeout(o.current),o.current=null),o.current=setTimeout(()=>{if(!i.current)return;let e=Array.from(i.current.children);if(e.length<=1)return;let t=e[0],r=e[e.length-1],n=t.getBoundingClientRect().top;r.getBoundingClientRect().top>n+5&&a>0&&s(e=>e-1)},100),()=>{o.current&&clearTimeout(o.current)}),[a,e,i]),a})({items:a,maxItems:s,wrapperRef:p}),x=a.slice(0,v),_=a.slice(v);return(0,t.jsxs)("div",{className:o(),ref:p,...(0,i.getTestProps)("article-tags-wrapper"),children:[x.map((e,r)=>(0,t.jsx)("div",{className:l(),title:e,...(0,i.getTestProps)(`tag-${r}`),children:e},r)),_?.length>0&&(0,t.jsxs)("button",{className:l({isMoreTagButton:!0}),onClick:()=>
133{if(!f&&p.current){let e=p.current.children[p.current.children.length-1];if(!e)return;let t=e.getBoundingClientRect(),r=window.innerHeight-t.bottom;r>150&&t.top<r?d("bottom"):d("top")}g(!0)},onBlur:m,onMouseEnter:y,onMouseLeave:b,...(0,i.getTestProps)("hidden-tags-button"),children:["+ ",_?.length,f&&(0,t.jsx)("div",{ref:h,className:c({tooltipPosition:u}),id:"article-tags-tooltip",tabIndex:-1,onBlur:m,onMouseEnter:y,onMouseLeave:b,children:_.map((e,r)=>(0,t.jsx)("div",{...(0,i.getTestProps)(`hidden-tag-${r}`),children:e},r))})]})]})}],631973);var a=e.i(828029);e.s(["EditingConditionalRender",0,function({children:e,showIf:r}){return(0,a.default)()||r?(0,t.jsx)(t.Fragment,{children:e}):(0,t.jsx)(t.Fragment,{})}],463534)},496057,e=>{"use strict";var t=e.i(843476),r=e.i(211418),i=e.i(38930),n=e.i(310099),a=e.i(133267),s=e.i(631973),o=e.i(696568),l=e.i(506914),c=e.i(463534),u=e.i(828029),d=e.i(136905);let p=e=>{let r=e.staticProps.parentCategory,p=e.staticProps.articleDetail,f=p?.fields||{},g=(0,o.default)(f.publishedDate?.value),m=Array.isArray(f.SxaTags)?f.SxaTags:[],y=m?.map(e=>e?.fields?.Title?.value)||[],{getDictionaryValue:b}=(0,n.default)(),{base:v,imageWithDetailContainer:x,imageStyle:_,authorDetails:w,authorStyleWrapper:T,authorHeadStyleText:S,authorStyleText:C,metaInfo:E}=h(),k=(0,u.default)(),N=!!f.authorName?.value||!!g||!!r;return(0,t.jsxs)("div",{className:v(),...(0,d.getTestProps)(`component-article-content-${p?.id}`),children:[(0,t.jsxs)("div",{className:x(),children:[f.image&&(0,t.jsx)(i.default,{className:_(),field:f.image,priority:!0,...(0,d.getTestProps)("image")}),(0,t.jsxs)("div",{className:w({isMetaDataContainerVisible:N||k}),children:[(0,t.jsx)(c.EditingConditionalRender,{showIf:!!f.authorName?.value,children:(0,t.jsxs)("div",{className:T(),children:[(0,t.jsx)("div",{className:S(),...(0,d.getTestProps)("author-name-label"),children:b("WrittenBy")||"Written by"}),(0,t.jsx)("div",{className:C(),...(0,d.getTestProps)("author-name"),children:(0,t.jsx)(l.default,{field:f?.authorName,tag:"div"})})]})}),(0,t.jsx)(c.EditingConditionalRender,{showIf:!!g,children:(0,t.jsxs)("div",{className:T(),children:[(0,t.jsx)("div",{className:S(),...(0,d.getTestProps)("published-date-label"),children:b("PublishedOn")||"Published on"}),(0,t.jsx)("div",{className:C(),...(0,d.getTestProps)("published-date"),children:g})]})}),(0,t.jsx)(c.EditingConditionalRender,{showIf:!!r,children:(0,t.jsxs)("div",{className:T(),children:[(0,t.jsx)("div",{className:S(),...(0,d.getTestProps)("category-label"),children:b("Category")||"Category"}),(0,t.jsx)("div",{className:C(),...(0,d.getTestProps)("category"),children:r||"Uncategorized"})]})})]})]}),(0,t.jsxs)("div",{className:E(),children:[(0,t.jsx)(a.default,{field:f?.description,tag:"p",...(0,d.getTestProps)("description")}),(0,t.jsx)(s.default,{tags:y,...(0,d.getTestProps)("article-tags-wrapper")})]})]})},h=(0,r.tv)({slots:{base:["flex","flex-col"],imageWithDetailContainer:["flex","flex-col","gap-component-article-hero-image-margin-bottom","border-b","border-b-width-width-025","border-color-border-border"],imageStyle:["object-cover","w-full","aspect-[21/9]","rounded-xl"],authorDetails:["flex","gap-space-between-more"],authorStyleWrapper:["flex","flex-col","gap-spacing-spacing-8"],authorHeadStyleText:["text-color-icon-dark","font-typography-font-family-body","text-typography-font-size-body-small","font-semibold"],authorStyleText:["text-color-text-text","font-typography-font-family-body","text-typography-font-size-body-large","font-normal"],metaInfo:["container","max-w-4xl","mx-auto","pt-general-spacing-margin-y","flex","flex-col","gap-margin-more"]},variants:{isMetaDataContainerVisible:{true:{authorDetails:["mb-component-article-hero-image-margin-bottom"]},false:{authorDetails:["mb-0"]}}}});e.s(["Default",0,p,"default",0,p])},153817,e=>{"use strict";var t=e.i(843476),r=e.i(271645);let i=(0,r.createContext)(void 0);e.s(["TabContextProvider",0,function({children:e,tabs:n}){let[a,s]=(0,r.useState)("");(0,r.useEffect)(()=>{let e=(t,r=0)=>{{let i=document.getElementById(`tab-content-${t}`);if(i){let e=i.getBoundingClientRect(),t=Math.max(0,window.scrollY+e.top-100);window.scrollTo({top:t,behavior:"smooth"})}else r<20&&setTimeout(()=>e(t,r+1),150)}},t=()=>{let t=window.location.hash;if(t&&t.startsWith("#tab-content-")){let r=t.replace("#tab-content-","");n.some(e=>e.uid===r)&&(s(r),setTimeout(()=>e(r),100))}};s((()=>{{let e=window.location.hash;if(e&&e.startsWith("#tab-content-")){let t=e.replace("#tab-content-","");if(n.some(e=>e.uid===t))return t}}return n[0]?.uid??""})());let r=()=>{let t=window.location.hash;if(t&&t.startsWith("#tab-content-")){let r=t.replace("#tab-content-","");n.some(e=>e.uid===r)&&e(r)}};window.addEventListener("hashchange",t);let i=()=>{setTimeout(r,300)};return"loading"===document.readyState?document.addEventListener("DOMContentLoaded",i):window.addEventListener("load",i),setTimeout(r,100),setTimeout(r,500),setTimeout(r,1e3),()=>{window.removeEventListener("hashchange",t),document.removeEventListener("DOMContentLoaded",i),window.removeEventListener("load",i)}},[n]);let o=(0,r.useMemo)(()=>({tabs:n,activeTab:a,setActiveTab:s}),[n,a]);return(0,t.jsx)(i.Provider,{value:o,children:e})},"useTab",0,()=>{let e=(0,r.useContext)(i);if(!e)throw Error("useTab must be used within a TabProvider");return e}])},373073,e=>{"use strict";var t=e.i(271645);e.s(["useScrollableTabs",0,function(e={}){let{leftArrowWidth:r=0,rightArrowWidth:i=0}=e,n=(0,t.useRef)(null),[a,s]=(0,t.useState)(!1),[o,l]=(0,t.useState)(!1),[c,u]=(0,t.useState)(!1),d=e=>{if(n.current)if(e){let t=n.current,r=t.clientWidth,i="left"===e?t.scrollLeft-r:t.scrollLeft+r;t.scrollTo({left:i,behavior:"smooth"})}else{let{scrollLeft:e,scrollWidth:t,clientWidth:r}=n.current;l(e>0),u(e<t-r-1)}};return(0,t.useEffect)(()=>{let e=()=>{if(n.current){let{scrollWidth:e,clientWidth:t,scrollLeft:r}=n.current;s(e>t),l(r>0),u(r<e-t-1)}},t=()=>d();e(),d();let r=n.current;return r&&r.addEventListener("scroll",t),window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e),r&&r.removeEventListener("scroll",t)}},[n]),{containerRef:n,isScrollable:a,isLeftArrowVisible:o,isRightArrowVisible:c,handleScroll:d,scrollTabIntoView:e=>{if(!n.current||!e)return;let t=n.current,r=t.getBoundingClientRect(),i=e.getBoundingClientRect();if(!(i.left>=r.left&&i.right<=r.right)){let r=e.offsetLeft,i=e.offsetWidth,n=t.clientWidth,a=t.scrollWidth-n,s=Math.max(0,Math.min(r-(n-i)/2,a));t.scrollTo({left:s,behavior:"smooth"})}},scrollTabIntoViewOnClick:e=>{if(!n.current||!e)return;let t=n.current,a=t.getBoundingClientRect(),s=e.getBoundingClientRect(),l=a.left+(o?r:0),u=a.right-(c?
133i:0);if(!(s.left>=l&&s.right<=u)){let n=e.offsetLeft,a=e.offsetWidth,s=Math.max(0,Math.min(n-(t.clientWidth-(o?r:0)-(c?i:0)-a)/2,t.scrollWidth-t.clientWidth));t.scrollTo({left:s,behavior:"smooth"})}}}}])},787836,e=>{"use strict";e.s(["Default",()=>y,"ScrollButton",()=>g]);var t=e.i(843476),r=e.i(271645),i=e.i(211418),n=e.i(84853),a=e.i(588318),s=e.i(296217),o=e.i(506914),l=e.i(153817),c=e.i(474176),u=e.i(340189),d=e.i(373073),p=e.i(136905);e.i(879806);var h=e.i(871084),f=e.i(206303);let g=({direction:e,onClick:r})=>{let{tabArrows:i,scrollButtonContainer:n,scrollButtonInner:a}=b();return(0,t.jsx)("button",{className:i({right:"right"===e}),onClick:r,onKeyDown:e=>{("Enter"===e.key||" "===e.key)&&(e.preventDefault(),r())},"aria-label":`Scroll tabs ${e}`,"aria-controls":"tab-list",tabIndex:0,children:(0,t.jsx)("div",{className:n(),children:(0,t.jsx)("div",{className:a(),children:(0,t.jsx)(h.SvgIcon,{icon:`arrow-dash-${e}`,size:"xss",viewBox:"0 0 20 20",fill:"currentColor"})})})})},m=e=>{let{DynamicPlaceholderId:i,RenderingIdentifier:n}=e?.params||{},{activeTab:h,setActiveTab:m}=(0,l.useTab)(),{containerRef:y,isScrollable:v,isLeftArrowVisible:x,isRightArrowVisible:_,handleScroll:w,scrollTabIntoView:T,scrollTabIntoViewOnClick:S}=(0,d.useScrollableTabs)({leftArrowWidth:48,rightArrowWidth:48}),C=`tab-${i}`,E=(0,a.findComponent)(e.rendering,"TabItem"),k=(0,r.useRef)(null),{base:N,tabsContainerWrapper:I,tabsWrapper:A,tabLinkWrapper:j,tabLink:P}=b(),[O,L]=(0,r.useState)(!1);return(0,r.useEffect)(()=>{h&&k.current&&!O&&(T(k.current),L(!0))},[h,T,O]),(0,t.jsxs)("section",{className:N(),"data-component":"authorable/shared/lists/Tab",id:n,...(0,p.getTestProps)(`component-tab-${e?.rendering?.uid}`),children:[(0,t.jsxs)("div",{className:I(),children:[v&&x&&(0,t.jsx)(g,{direction:"left",onClick:()=>w("left")}),(0,t.jsx)("ul",{className:A(),ref:y,role:"tablist",id:"tab-list","aria-label":"Tab navigation",...(0,p.getTestProps)("tab-ul"),children:E.map((e,r)=>{let i=h===e.uid,n=(0,c.parseStyleParams)(e.params,["cta1"]),a=n.cta1?.ctaVariant||"primary";return(0,t.jsx)("li",{ref:i?k:null,className:j({isActive:i}),role:"presentation",...(0,p.getTestProps)(`tab-content-${r+1}`),children:(0,t.jsx)(s.default,{ctaComponentClass:"default",className:P({style:a,isActive:i}),ctaStyle:{...(0,u.getCtaStyle)(n.cta1,a)},ctaVariant:"custom",field:{href:"#",anchor:"tab-content-"+e.uid},onClick:t=>{t.preventDefault(),m(e.uid||""),setTimeout(()=>{k.current&&S(k.current)},0)},role:"tab","aria-controls":`tab-content-${e.uid}`,"aria-selected":i,...(0,p.getTestProps)(`tab-link-${r+1}`),children:(0,t.jsx)(o.default,{field:e.fields?.title,...(0,p.getTestProps)(`tab-title-${r+1}`)})})},e.uid)})}),v&&_&&(0,t.jsx)(g,{direction:"right",onClick:()=>w("right")})]}),(0,t.jsx)(f.PlaceholderWrapper,{name:C,rendering:e.rendering,...(0,p.getTestProps)(`tab-ph-${e?.rendering?.uid}`),page:e.page})]})},y=(0,n.withStandardComponentWrapper)(e=>{let r=(0,a.findComponent)(e.rendering,"TabItem");return(0,t.jsx)(l.TabContextProvider,{tabs:r,children:(0,t.jsx)(m,{...e})})},!1),b=(0,i.tv)({slots:{base:["pt-margin-less","px-general-spacing-margin-x"],tabsContainerWrapper:["w-full","flex","items-center","gap-space-between-micro","relative"],tabArrows:["absolute","w-[48px]","h-full","text-component-button-tonal-ghost-icon","bg-color-fill-white"],scrollButtonContainer:["bg-color-fill-white","shrink-0","w-12","h-[52px]","relative","flex","items-center","justify-center","overflow-hidden"],scrollButtonInner:["bg-component-button-tonal-ghost-bg","p-spacing-spacing-12","flex","flex-row","gap-spacing-spacing-8","items-center","justify-center","absolute","right-0"],tabsWrapper:["container","overflow-x-auto","bg-component-tab-color-bg","rounded-component-tab-border-radius","flex","px-component-tab-layout-container-padding-x","no-scrollbar","snap-x"],tabLinkWrapper:["gap-spacing-spacing-8","border-l-component-tab-border-width-left","border-r-component-tab-border-width-right","border-t-component-tab-border-width-top","rounded-component-tab-border-radius","focus:ring-color-border-border-focus","focus:border-component-tab-color-border-focused","snap-center"],tabLink:["flex","items-center","justify-center","px-spacing-spacing-24","py-spacing-spacing-16","min-w-component-tab-layout-min-width","text-typography-font-size-body-medium","font-typography-font-family-body","leading-5","font-semibold","text-component-tab-color-text","bg-component-tab-color-bg","hover:text-component-tab-color-text-hover","hover:bg-component-tab-color-bg-hover","focus:outline-none","h-full","md:whitespace-nowrap","border-b-component-tab-border-width-bottom","border-component-tab-color-border","focus-visible:border-t-border-width-width-1","focus-visible:border-t-component-tab-color-border-active","focus-visible:border-l-border-width-width-1","focus-visible:border-l-component-tab-color-border-active","focus-visible:border-r-border-width-width-1","focus-visible:border-r-component-tab-color-border-active","focus-visible:border-b-border-width-width-1","focus-visible:border-b-component-tab-color-border-active"]},variants:{isActive:{true:{tabLinkWrapper:[],tabLink:["border-component-tab-color-border-active","text-component-tab-color-text-active","focus-visible:border-b-border-width-width-1","bg-component-tab-color-bg-active","!border-b-border-b-border-width-width-1"]}},disabled:{true:{tabArrows:["opacity-50","cursor-not-allowed","hover:bg-transparent"]}},style:{link:{tabLink:["gap-spacing-spacing-8"]},primary:{tabLink:["gap-spacing-spacing-8"]},secondary:{tabLink:["gap-spacing-spacing-8"]},tertiary:{tabLink:["gap-spacing-spacing-8"]}},right:{true:{tabArrows:["right-[-1px]"]},false:{tabArrows:["left-[-1px]"]}}}})},838496,e=>{"use strict";e.s(["Default",()=>c]);var t=e.i(843476),r=e.i(211418),i=e.i(296217),n=e.i(506914),a=e.i(84853),s=e.i(787836),o=e.i(373073),l=e.i(136905);let c=(0,a.withStandardComponentWrapper)(e=>{let r=e.staticProps?.currentPage,a=r?.template?.name==="Article Landing Page"?r:r?.parent,c=a?.children?.results||[],{RenderingIdentifier:d}=e?.params||{},{containerRef:p,isScrollable:h,isLeftArrowVisible:f,isRightArrowVisible:g,handleScroll:m}=(0,o.useScrollableTabs)(),y=r?.url?.path,b=y===a?.url?.path,{base:v,tabsContainerWrapper:x,tabsWrapper:_,tabLinkWrapper:w,tabLink:T}=u();return(0,t.jsx)("section",{className:v(),"data-component":"authorable/shared/page-specific/articlecategorytabs",id:d,...(0,l.getTestProps)(`component-article-category-tabs-${e?.rendering?.uid}`),children:(0,t.jsxs)("div",{className:x(),children:[h&&f&&(0,t.jsx)(s.ScrollButton,{direction:"left",onClick:()=>m("left")}),(0,t.jsxs)("ul",{className:_(),ref:p,role:"tablist",id:"articletab-list","aria-label":"Article Tab navigation",children:[(0,t.jsx)("li",{className:w({isActive:b}),role:"tab","aria-controls":`articletab-content-${a?.id}`,"aria-selected":b,children:(0,t.jsx)(i.default,{ctaComponentClass:"default",className:T({isActive:b}),field:{href:a?.url?.path},...(0,l.getTestProps)("category-link-0"),children:(0,t.jsx)(n.default,{field:{value:a?.categoryName?.value},...(0,l.getTestProps)("category-name-0")})})}),c.map((e,r)=>{let a=y===e.url?.path;return(0,t.jsx)("li",{className:w({isActive:a}),role:"tab","aria-controls":`articletab-content-${e.id}`,"aria-selected":a,children:(0,t.jsx)(i.default,{ctaComponentClass:"default",className:T({isActive:a}),ctaVariant:"custom",field:{href:e.url?.path},...(0,l.getTestProps)(`category-link-${r+1}`),children:(0,t.jsx)(n.default,{field:{value:e.categoryName.value},...(0,l.getTestProps)(`category-name-${r+1}`)})})},e.id)})]}),h&&g&&(0,t.jsx)(s.ScrollButton,{direction:"right",onClick:()=>m("right"),...(0,l.getTestProps)("scroll-button")})]})})},!1),u=(0,r.tv)({slots:{base:[],tabsContainerWrapper:["container","flex","items-center","gap-space-between-micro","relative","pt-margin-less","pb-0"],tabArrows:["absolute","py-4","px-0","w-[44px]","h-[68px]"],tabsWrapper:["container","overflow-x-auto","bg-component-tab-color-bg","flex","px-component-tab-layout-container-padding-x","py-component-tab-layout-container-padding-y"],tabLinkWrapper:["gap-spacing-spacing-8","border-l-component-tab-border-width-left","border-r-component-tab-border-width-right","border-t-component-tab-border-width-top","border-b-component-tab-border-width-bottom","border-component-tab-color-border","hover:border-component-tab-color-border-hover","rounded-component-tab-border-radius","focus:ring-color-border-border-focus","focus:border-component-tab-color-border-focused","overflow-hidden"],tabLink:["flex","items-center","justify-center","px-spacing-spacing-24","py-spacing-spacing-16","min-w-component-tab-layout-min-width","text-typography-font-size-body-medium","font-typography-font-family-body","leading-5","font-semibold","text-component-tab-color-text","bg-component-tab-color-bg","hover:text-component-tab-color-text-hover","hover:bg-component-tab-color-bg-hover","focus:bg-component-tab-color-bg-focused","focus:text-component-tab-color-text-focused","whitespace-nowrap","rounded-component-tab-border-radius"]},variants:{isActive:{true:{tabLinkWrapper:["border-component-tab-color-border-active","bg-component-tab-color-bg-active"],tabLink:["text-component-tab-color-text-active","bg-component-tab-color-bg-active"]}},disabled:{true:{tabArrows:["opacity-50","cursor-not-allowed","hover:bg-transparent"]}},right:{true:{tabArrows:["right-[-1px]","bg-gradient-to-l","from-color-bg-bg to-color-white-alpha-0 from-[9.61%] to-100%"]},false:{tabArrows:["left-[-1px]","bg-gradient-to-r","from-color-bg-bg to-color-white-alpha-0 from-[9.61%] to-100%"]}}}})},274532,e=>{"use strict";var t=e.i(843476),r=e.i(133267),i=e.i(197203),n=e.i(271645),a=e.i(90376),s=e.i(929955),o=e.i(422674),l=e.i(618566),c=e.i(389980),u=e.i(828029);e.s(["Default",0,e=>{let{heading:d,description:p}=e?.fields||{},h=(0,o.useSitecoreContext)(),f=(0,u.default)(),g=h?.sitecoreContext?.siteSettings??{},m=g.globalSearchSourceId?.value,y=g.globalSearchPreviewWidgetId?.value,b=g.globalSearchEntityName?.value,v=[...m?m.split("|").map(e=>e.trim()).filter(e=>
133e):[]],[x,_]=(0,n.useState)(""),w=(0,n.useRef)(null),{language:T,country:S}=(0,a.useLocaleFromContext)(),{suggestions:C,trackSuggestionClick:E,performSearch:k,loading:N,error:I}=(0,s.useSitecoreCloudSearch)({widgetType:b||"globalsearch",widgetId:y||"rfkid_7",maxResults:6,locale:{language:T,country:S},sources:v||["1173498"],suggestions:[{name:"global_search_did_you_mean"},{name:"global_search_auto_suggest"}]}),A=g.searchPageLink?.value?.href,j=g.searchPageLink?.value?.target,P=(0,l.useRouter)(),O=(0,n.useRef)(k);return(0,n.useEffect)(()=>{O.current=k},[k]),(0,n.useEffect)(()=>{let e=document.activeElement,t=setTimeout(()=>{w.current?.focus()},0);return()=>{clearTimeout(t),e?.focus?.()}},[]),(0,n.useEffect)(()=>{let e=setTimeout(()=>{x.trim().length>0?O.current(x.trim()):O.current("")},250);return()=>clearTimeout(e)},[x]),(0,t.jsx)(c.BrandAndThemeProvider,{theme:"ThemesDark",children:(0,t.jsxs)("div",{className:"bg-color-bg-darkest pt-component-section-container-padding-y pr-component-section-container-padding-x pb-component-section-container-padding-y pl-component-section-container-padding-x flex flex-col gap-component-section-container-gutter items-center justify-center w-[100%] shrink-0 min-w-columns-full-min-width max-w-columns-full-max-width min-h-height-min-height-header-min-height relative 'gap-component-section-container-gutter',         before:absolute   before:inset-0   before:left-[calc(-50vw+50%)]   before:right-[calc(-50vw+50%)]   before:bg-color-bg-darkest   before:-z-10   after:absolute   after:inset-0   after:left-[calc(-50vw+50%)]   after:right-[calc(-50vw+50%)]   after:bg-color-bg-darkest   after:-z-10",children:[(0,t.jsxs)("div",{className:"flex flex-col justify-center max-w-columns-two-third-max-width gap-general-spacing-title-margin-bottom",children:[(d?.value||f)&&(0,t.jsx)("div",{className:"flex w-full align-center justify-center text-center relative text-component-section-title font-typography-font-family-header text-typography-font-size-large leading-typography-line-height-large font-typography-font-weight-large [&>span]:bg-clip-text   break-words   overflow-wrap-anywhere   [&_span]:bg-clip-text   [&_span]:text-transparent   [&_span]:bg-gradient-to-r   [&_span]:from-color-core-color-2-400   [&_span]:via-color-co-gradient-1-stop-2   [&_span]:to-color-core-gradient-1-stop-1   [&_span]:from-[0%]   [&_span]:via-[40%]   [&_span]:to-[100%]",children:(0,t.jsx)(r.default,{field:d,tag:"h2"})}),(p?.value||f)&&(0,t.jsx)("div",{className:"flex w-full align-center justify-center text-center",children:(0,t.jsx)(r.default,{field:p,className:"text-component-section-body font-typography-font-family-body text-typography-font-size-body-large font-typography-font-weight-body leading-typography-line-height-body-large"})})]}),(0,t.jsx)(i.SearchBar,{query:x,setQuery:_,suggestions:C,trackSuggestionClick:E,loading:N,error:I,suggestionsStyle:"absolute",handleClearSearch:()=>{_(""),O.current("",void 0)},redirectToSearch:e=>{let t=e.trim();if(!t||!A)return;let r=`q=${encodeURIComponent(t)}`,i=`${A}${A.includes("?")?"&":"?"}${r}`;if("_blank"===j)window.open(i,"_blank","noopener,noreferrer");else if(i.startsWith("/"))P.push(i);else if(1)try{let e=new URL(i);e.origin===window.location.origin?P.push(`${e.pathname}${e.search}`):window.location.href=i}catch{window.location.href=i}}})]})})}])},495045,e=>{"use strict";var t=e.i(843476),r=e.i(376917),i=e.i(84853),n=e.i(133267),a=e.i(296217),s=e.i(136905);let o=e=>(0,t.jsx)("div",{className:`component card ${e?.params?.styles}`,children:(0,t.jsx)("div",{className:"component-content",children:(0,t.jsx)("span",{className:"is-empty-hint",children:"CustomForm"})})}),l=(0,i.withStandardComponentWrapper)(e=>{let i=e?.params?.RenderingIdentifier;return e?.fields?(0,t.jsx)("section",{className:`card ${e?.params?.styles}`,id:i||void 0,...(0,s.getTestProps)(`component-contact-form-${e?.rendering?.uid}`),children:(0,t.jsx)("div",{className:"flex justify-center items-center","data-component":"authorable/shared/other/customform",children:(0,t.jsx)("div",{className:"mx-auto my-0",children:(0,t.jsxs)("div",{className:"border border-gray",children:[(0,t.jsx)(r.Text,{field:e?.fields?.title,tag:"h3",...(0,s.getTestProps)("title")}),(0,t.jsx)(n.default,{className:"text-gray text-base font-normal not-italic leading-6 mb
133-2 opacity-90",field:e?.fields?.description,tag:"div",...(0,s.getTestProps)("description")}),(0,t.jsxs)("div",{className:"flex gap-xxs flex-wrap justify-center md:justify-normal",children:[(0,t.jsx)(a.default,{ctaComponentClass:"default",className:"flex items-center justify-center px-4 py-3 rounded bg-gray text-center text-white text-sm font-bold not-italic leading-normal",field:e?.fields?.primaryCTA,suppressNewTabIcon:!0,...(0,s.getTestProps)("primary-cta")}),(0,t.jsx)(a.default,{ctaComponentClass:"default",className:"flex items-center justify-center p-3 rounded border border-gray text-center text-gray text-base font-bold not-italic leading-normal",field:e?.fields?.secondaryCTA,suppressNewTabIcon:!0,...(0,s.getTestProps)("secondary-cta")})]})]})})})}):(0,t.jsx)(o,{...e})});e.s(["Default",0,l])},232189,(e,t,r)=>{"use strict";t.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},865156,(e,t,r)=>{"use strict";var i=e.r(232189);function n(){}function a(){}a.resetWarningCache=n,t.exports=function(){function e(e,t,r,n,a,s){if(s!==i){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:n};return r.PropTypes=r,r}},745009,(e,t,r)=>{t.exports=e.r(865156)()},290808,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=function e(t){return[].slice.call(t.querySelectorAll("*"),0).reduce(function(t,r){return t.concat(r.shadowRoot?e(r.shadowRoot):[r])},[]).filter(n)};var i=/^(input|select|textarea|button|object|iframe)$/;function n(e){var t,r,n=e.getAttribute("tabindex");null===n&&(n=void 0);var a=isNaN(n);return(a||n>=0)&&(t=!a,r=e.nodeName.toLowerCase(),(i.test(r)&&!e.disabled||"a"===r&&e.href||t)&&function(e){for(var t=e,r=e.getRootNode&&e.getRootNode();t&&t!==document.body;){if(r&&t===r&&(t=r.host.parentNode),function(e){var t=e.offsetWidth<=0&&e.offsetHeight<=0;if(t&&!e.innerHTML)return!0;try{var r=window.getComputedStyle(e),i=r.getPropertyValue("display");return t?"contents"!==i&&("visible"!==r.getPropertyValue("overflow")||e.scrollWidth<=0&&e.scrollHeight<=0):"none"===i}catch(e){return console.warn("Failed to inspect element style"),!1}}(t))return!1;t=t.parentNode}return!0}(e))}t.exports=r.default},779197,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.resetState=function(){a=[]},r.log=function(){},r.handleBlur=l,r.handleFocus=c,r.markForFocusLater=function(){a.push(document.activeElement)},r.returnFocus=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=null;try{0!==a.length&&(t=a.pop()).focus({preventScroll:e});return}catch(e){console.warn(["You tried to return focus to",t,"but it is not in the DOM anymore"].join(" "))}},r.popWithoutFocus=function(){a.length>0&&a.pop()},r.setupScopedFocus=function(e){s=e,window.addEventListener?(window.addEventListener("blur",l,!1),document.addEventListener("focus",c,!0)):(window.attachEvent("onBlur",l),document.attachEvent("onFocus",c))},r.teardownScopedFocus=function(){s=null,window.addEventListener?(window.removeEventListener("blur",l),document.removeEventListener("focus",c)):(window.detachEvent("onBlur",l),document.detachEvent("onFocus",c))};var i,n=(i=e.r(290808))&&i.__esModule?i:{default:i},a=[],s=null,o=!1;function l(){o=!0}function c(){o&&(o=!1,s&&setTimeout(function(){s.contains(document.activeElement)||((0,n.default)(s)[0]||s).focus()},0))}},474136,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=function(e,t){var r=(0,n.default)(e);if(!r.length)return void t.preventDefault();var i=void 0,a=t.shiftKey,s=r[0],o=r[r.length-1],l=function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document;return t.activeElement.shadowRoot?e(t.activeElement.shadowRoot):t.activeElement}();if(e===l){if(!a)return;i=o}if(o!==l||a||(i=s),s===l&&a&&(i=o),i){t.preventDefault(),i.focus();return}var c=/(\bChrome\b|\bSafari\b)\//.exec(navigator.userAgent);if(null!=c&&"Chrome"!=c[1]&&null==/\biPod\b|\biPad\b/g.exec(navigator.userAgent)){var u=r.indexOf(l);if(u>-1&&(u+=a?-1:1),void 0===(i=r[u])){t.preventDefault(),(i=a?o:s).focus();return}t.preventDefault(),i.focus()}};var i,n=(i=e.r(290808))&&i.__esModule?i:{default:i};t.exports=r.default},442656,(e,t,r)=>{"use strict";
133t.exports=function(){}},447378,(e,t,r)=>{!function(){"use strict";var r=!!("u">typeof window&&window.document&&window.document.createElement),i={canUseDOM:r,canUseWorkers:"u">typeof Worker,canUseEventListeners:r&&!!(window.addEventListener||window.attachEvent),canUseViewport:r&&!!window.screen};if("function"==typeof define&&"object"==typeof define.amd&&define.amd)e.r,void 0!==i&&e.v(i);else t.exports?t.exports=i:window.ExecutionEnvironment=i}()},123028,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.canUseDOM=r.SafeNodeList=r.SafeHTMLCollection=void 0;var i,n=((i=e.r(447378))&&i.__esModule?i:{default:i}).default,a=n.canUseDOM?window.HTMLElement:{};r.SafeHTMLCollection=n.canUseDOM?window.HTMLCollection:{},r.SafeNodeList=n.canUseDOM?window.NodeList:{},r.canUseDOM=n.canUseDOM,r.default=a},749633,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.resetState=function(){s&&(s.removeAttribute?s.removeAttribute("aria-hidden"):null!=s.length?s.forEach(function(e){return e.removeAttribute("aria-hidden")}):document.querySelectorAll(s).forEach(function(e){return e.removeAttribute("aria-hidden")})),s=null},r.log=function(){},r.assertNodeList=o,r.setElement=function(e){var t=e;if("string"==typeof t&&a.canUseDOM){var r=document.querySelectorAll(t);o(r,t),t=r}return s=t||s},r.validateElement=l,r.hide=function(e){var t=!0,r=!1,i=void 0;try{for(var n,a=l(e)[Symbol.iterator]();!(t=(n=a.next()).done);t=!0)n.value.setAttribute("aria-hidden","true")}catch(e){r=!0,i=e}finally{try{!t&&a.return&&a.return()}finally{if(r)throw i}}},r.show=function(e){var t=!0,r=!1,i=void 0;try{for(var n,a=l(e)[Symbol.iterator]();!(t=(n=a.next()).done);t=!0)n.value.removeAttribute("aria-hidden")}catch(e){r=!0,i=e}finally{try{!t&&a.return&&a.return()}finally{if(r)throw i}}},r.documentNotReadyOrSSRTesting=function(){s=null};var i,n=(i=e.r(442656))&&i.__esModule?i:{default:i},a=e.r(123028),s=null;function o(e,t){if(!e||!e.length)throw Error("react-modal: No elements were found for selector "+t+".")}function l(e){var t=e||s;return t?Array.isArray(t)||t instanceof HTMLCollection||t instanceof NodeList?t:[t]:((0,n.default)(!1,"react-modal: App element is not defined. Please use `Modal.setAppElement(el)` or set `appElement={el}`. This is needed so screen readers don't see main content when modal is opened. It is not recommended, but you can opt-out by setting `ariaHideApp={false}`."),[])}},162807,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.resetState=function(){var e=document.getElementsByTagName("html")[0];for(var t in i)a(e,i[t]);var r=document.body;for(var s in n)a(r,n[s]);i={},n={}},r.log=function(){};var i={},n={};function a(e,t){e.classList.remove(t)}var s=function(e,t,r){r.forEach(function(r){t[r]||(t[r]=0),t[r]+=1,e.add(r)})},o=function(e,t,r){r.forEach(function(r){t[r]&&(t[r]-=1),0===t[r]&&e.remove(r)})};r.add=function(e,t){return s(e.classList,"html"==e.nodeName.toLowerCase()?i:n,t.split(" "))},r.remove=function(e,t){return o(e.classList,"html"==e.nodeName.toLowerCase()?i:n,t.split(" "))}},372811,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.log=function(){console.log("portalOpenInstances ----------"),console.log(n.openInstances.length),n.openInstances.forEach(function(e){return console.log(e)}),console.log("end portalOpenInstances ----------")},r.resetState=function(){n=new i};var i=function e(){var t=this;if(!(this instanceof e))throw TypeError("Cannot call a class as a function");this.register=function(e){-1!==t.openInstances.indexOf(e)||(t.openInstances.push(e),t.emit("register"))},this.deregister=function(e){var r=t.openInstances.indexOf(e);-1===r||(t.openInstances.splice(r,1),t.emit("deregister"))},this.subscribe=function(e){t.subscribers.push(e)},this.emit=function(e){t.subscribers.forEach(function(r){return r(e,t.openInstances.slice())})},this.openInstances=[],this.subscribers=[]},n=new i;r.default=n},943146,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.resetState=function(){for(var e=[a,s],t=0;t<e.length;t++){var r=e[t];r&&r.parentNode&&r.parentNode.removeChild(r)}a=s=null,o=[]},r.log=function(){console.log("bodyTrap ----------"),console.log(o.length);for(var e=[a,s],t=0;t<e.length;t++){var r=e[t]||{};console.log(r.nodeName,r.className,r.id)}console.log("edn bodyTrap ----------")};var i,n=(i=e.r(372811))&&i.__esModule?i:{default:i},a=void 0,s=void 0,o=[];function l(){0===o.length||o[o.length-1].focusContent()}n.default.subscribe(function(e,t){a||s||((a=document.createElement("div")).setAttribute("data-react-modal-body-trap",""),a.style.position="absolute",a.style.opacity="0",a.setAttribute("tabindex","0"),a.addEventListener("focus",l),(s=a.cloneNode()).addEventListener("focus",l)),(o=t).length>0?(document.body.firstChild!==a&&document.body.insertBefore(a,document.body.firstChild),document.body.lastChild!==s&&document.body.appendChild(s)):(a.parentElement&&a.parentElement.removeChild(a),s.parentElement&&s.parentElement.removeChild(s))})},62245,(e,t,r)=>{"use strict";
133Object.defineProperty(r,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e},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},a=function(){function e(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,i.key,i)}}return function(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}}(),s=e.r(271645),o=m(e.r(745009)),l=g(e.r(779197)),c=m(e.r(474136)),u=g(e.r(749633)),d=g(e.r(162807)),p=e.r(123028),h=m(p),f=m(e.r(372811));function g(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}function m(e){return e&&e.__esModule?e:{default:e}}e.r(943146);var y={overlay:"ReactModal__Overlay",content:"ReactModal__Content"},b=0,v=function(e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function, not "+typeof e);function t(e){if(!(this instanceof t))throw TypeError("Cannot call a class as a function");var r=function(e,t){if(!e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&("object"==typeof t||"function"==typeof t)?t:e}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return r.setOverlayRef=function(e){r.overlay=e,r.props.overlayRef&&r.props.overlayRef(e)},r.setContentRef=function(e){r.content=e,r.props.contentRef&&r.props.contentRef(e)},r.afterClose=function(){var e=r.props,t=e.appElement,i=e.ariaHideApp,n=e.htmlOpenClassName,a=e.bodyOpenClassName,s=e.parentSelector,o=s&&s().ownerDocument||document;a&&d.remove(o.body,a),n&&d.remove(o.getElementsByTagName("html")[0],n),i&&b>0&&0==(b-=1)&&u.show(t),r.props.shouldFocusAfterRender&&(r.props.shouldReturnFocusAfterClose?(l.returnFocus(r.props.preventScroll),l.teardownScopedFocus()):l.popWithoutFocus()),r.props.onAfterClose&&r.props.onAfterClose(),f.default.deregister(r)},r.open=function(){r.beforeOpen(),r.state.afterOpen&&r.state.beforeClose?(clearTimeout(r.closeTimer),r.setState({beforeClose:!1})):(r.props.shouldFocusAfterRender&&(l.setupScopedFocus(r.node),l.markForFocusLater()),r.setState({isOpen:!0},function(){r.openAnimationFrame=requestAnimationFrame(function(){r.setState({afterOpen:!0}),r.props.isOpen&&r.props.onAfterOpen&&r.props.onAfterOpen({overlayEl:r.overlay,contentEl:r.content})})}))},r.close=function(){r.props.closeTimeoutMS>0?r.closeWithTimeout():r.closeWithoutTimeout()},r.focusContent=function(){return r.content&&!r.contentHasFocus()&&r.content.focus({preventScroll:!0})},r.closeWithTimeout=function(){var e=Date.now()+r.props.closeTimeoutMS;r.setState({beforeClose:!0,closesAt:e},function(){r.closeTimer=setTimeout(r.closeWithoutTimeout,r.state.closesAt-Date.now())})},r.closeWithoutTimeout=function(){r.setState({beforeClose:!1,isOpen:!1,afterOpen:!1,closesAt:null},r.afterClose)},r.handleKeyDown=function(e){("Tab"===e.code||9===e.keyCode)&&(0,c.default)(r.content,e),r.props.shouldCloseOnEsc&&("Escape"===e.code||27===e.keyCode)&&(e.stopPropagation(),r.requestClose(e))},r.handleOverlayOnClick=function(e){null===r.shouldClose&&(r.shouldClose=!0),r.shouldClose&&r.props.shouldCloseOnOverlayClick&&(r.ownerHandlesClose()?r.requestClose(e):r.focusContent()),r.shouldClose=null},r.handleContentOnMouseUp=function(){r.shouldClose=!1},r.handleOverlayOnMouseDown=function(e){r.props.shouldCloseOnOverlayClick||e.target!=r.overlay||e.preventDefault()},r.handleContentOnClick=function(){r.shouldClose=!1},r.handleContentOnMouseDown=function(){r.shouldClose=!1},r.requestClose=function(e){return r.ownerHandlesClose()&&r.props.onRequestClose(e)},r.ownerHandlesClose=function(){return r.props.onRequestClose},r.shouldBeClosed=function(){return!r.state.isOpen&&!r.state.beforeClose},r.contentHasFocus=function(){return document.activeElement===r.content||r.content.contains(document.activeElement)},r.buildClassName=function(e,t){var i=(void 0===t?"undefined":n(t))==="object"?t:{base:y[e],afterOpen:y[e]+"--after-open",beforeClose:y[e]+"--before-close"},a=i.base;return r.state.afterOpen&&(a=a+" "+i.afterOpen),r.state.beforeClose&&(a=a+" "+i.beforeClose),"string"==typeof t&&t?a+" "+t:a},r.attributesFromObject=function(e,t){return Object.keys(t).reduce(function(r,i){return r[e+"-"+i]=t[i],r},{})},r.state={afterOpen:!1,beforeClose:!1}
133,r.shouldClose=null,r.moveFromContentToOverlay=null,r}return t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e),a(t,[{key:"componentDidMount",value:function(){this.props.isOpen&&this.open()}},{key:"componentDidUpdate",value:function(e,t){this.props.isOpen&&!e.isOpen?this.open():!this.props.isOpen&&e.isOpen&&this.close(),this.props.shouldFocusAfterRender&&this.state.isOpen&&!t.isOpen&&this.focusContent()}},{key:"componentWillUnmount",value:function(){this.state.isOpen&&this.afterClose(),clearTimeout(this.closeTimer),cancelAnimationFrame(this.openAnimationFrame)}},{key:"beforeOpen",value:function(){var e=this.props,t=e.appElement,r=e.ariaHideApp,i=e.htmlOpenClassName,n=e.bodyOpenClassName,a=e.parentSelector,s=a&&a().ownerDocument||document;n&&d.add(s.body,n),i&&d.add(s.getElementsByTagName("html")[0],i),r&&(b+=1,u.hide(t)),f.default.register(this)}},{key:"render",value:function(){var e=this.props,t=e.id,r=e.className,n=e.overlayClassName,a=e.defaultStyles,s=e.children,o=r?{}:a.content,l=n?{}:a.overlay;if(this.shouldBeClosed())return null;var c={ref:this.setOverlayRef,className:this.buildClassName("overlay",n),style:i({},l,this.props.style.overlay),onClick:this.handleOverlayOnClick,onMouseDown:this.handleOverlayOnMouseDown},u=i({id:t,ref:this.setContentRef,style:i({},o,this.props.style.content),className:this.buildClassName("content",r),tabIndex:"-1",onKeyDown:this.handleKeyDown,onMouseDown:this.handleContentOnMouseDown,onMouseUp:this.handleContentOnMouseUp,onClick:this.handleContentOnClick,role:this.props.role,"aria-label":this.props.contentLabel},this.attributesFromObject("aria",i({modal:!0},this.props.aria)),this.attributesFromObject("data",this.props.data||{}),{"data-testid":this.props.testId}),d=this.props.contentElement(u,s);return this.props.overlayElement(c,d)}}]),t}(s.Component);v.defaultProps={style:{overlay:{},content:{}},defaultStyles:{}},v.propTypes={isOpen:o.default.bool.isRequired,defaultStyles:o.default.shape({content:o.default.object,overlay:o.default.object}),style:o.default.shape({content:o.default.object,overlay:o.default.object}),className:o.default.oneOfType([o.default.string,o.default.object]),overlayClassName:o.default.oneOfType([o.default.string,o.default.object]),parentSelector:o.default.func,bodyOpenClassName:o.default.string,htmlOpenClassName:o.default.string,ariaHideApp:o.default.bool,appElement:o.default.oneOfType([o.default.instanceOf(h.default),o.default.instanceOf(p.SafeHTMLCollection),o.default.instanceOf(p.SafeNodeList),o.default.arrayOf(o.default.instanceOf(h.default))]),onAfterOpen:o.default.func,onAfterClose:o.default.func,onRequestClose:o.default.func,closeTimeoutMS:o.default.number,shouldFocusAfterRender:o.default.bool,shouldCloseOnOverlayClick:o.default.bool,shouldReturnFocusAfterClose:o.default.bool,preventScroll:o.default.bool,role:o.default.string,contentLabel:o.default.string,aria:o.default.object,data:o.default.object,children:o.default.node,shouldCloseOnEsc:o.default.bool,overlayRef:o.default.func,contentRef:o.default.func,id:o.default.string,overlayElement:o.default.func,contentElement:o.default.func,testId:o.default.string},r.default=v,t.exports=r.default},758161,e=>{"use strict";function t(){var e=this.constructor.getDerivedStateFromProps(this.props,this.state);null!=e&&this.setState(e)}function r(e){this.setState((function(t){var r=this.constructor.getDerivedStateFromProps(e,t);return null!=r?r:null}).bind(this))}function i(e,t){try{var r=this.props,i=this.state;this.props=e,this.state=t,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(r,i)}finally{this.props=r,this.state=i}}t.__suppressDeprecationWarning=!0,r.__suppressDeprecationWarning=!0,i.__suppressDeprecationWarning=!0,e.s(["polyfill",0,function(e){var n=e.prototype;if(!n||!n.isReactComponent)throw Error("Can only polyfill class components");if("function"!=typeof e.getDerivedStateFromProps&&"function"!=typeof n.getSnapshotBeforeUpdate)return e;var a=null,s=null,o=null;if("function"==typeof n.componentWillMount?a="componentWillMount":"function"==typeof n.UNSAFE_componentWillMount&&(a="UNSAFE_componentWillMount"),"function"==typeof n.componentWillReceiveProps?s="c
133omponentWillReceiveProps":"function"==typeof n.UNSAFE_componentWillReceiveProps&&(s="UNSAFE_componentWillReceiveProps"),"function"==typeof n.componentWillUpdate?o="componentWillUpdate":"function"==typeof n.UNSAFE_componentWillUpdate&&(o="UNSAFE_componentWillUpdate"),null!==a||null!==s||null!==o)throw Error("Unsafe legacy lifecycles will not be called for components using new component APIs.\n\n"+(e.displayName||e.name)+" uses "+("function"==typeof e.getDerivedStateFromProps?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()")+" but also contains the following legacy lifecycles:"+(null!==a?"\n  "+a:"")+(null!==s?"\n  "+s:"")+(null!==o?"\n  "+o:"")+"\n\nThe above lifecycles should be removed. Learn more about this warning here:\nhttps://fb.me/react-async-component-lifecycle-hooks");if("function"==typeof e.getDerivedStateFromProps&&(n.componentWillMount=t,n.componentWillReceiveProps=r),"function"==typeof n.getSnapshotBeforeUpdate){if("function"!=typeof n.componentDidUpdate)throw Error("Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype");n.componentWillUpdate=i;var l=n.componentDidUpdate;n.componentDidUpdate=function(e,t,r){var i=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:r;l.call(this,e,t,i)}}return e}])},963749,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.bodyOpenClassName=r.portalClassName=void 0;var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e},n=function(){function e(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,i.key,i)}}return function(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}}(),a=e.r(271645),s=f(a),o=f(e.r(174080)),l=f(e.r(745009)),c=f(e.r(62245)),u=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}(e.r(749633)),d=e.r(123028),p=f(d),h=e.r(758161);function f(e){return e&&e.__esModule?e:{default:e}}function g(e,t){if(!e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&("object"==typeof t||"function"==typeof t)?t:e}var m=r.portalClassName="ReactModalPortal",y=r.bodyOpenClassName="ReactModal__Body--open",b=d.canUseDOM&&void 0!==o.default.createPortal,v=function(e){return document.createElement(e)},x=function(){return b?o.default.createPortal:o.default.unstable_renderSubtreeIntoContainer},_=function(e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function, not "+typeof e);function t(){if(!(this instanceof t))throw TypeError("Cannot call a class as a function");for(var e,r,n,a=arguments.length,l=Array(a),u=0;u<a;u++)l[u]=arguments[u];return r=n=g(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(l))),n.removePortal=function(){b||o.default.unmountComponentAtNode(n.node);var e=(0,n.props.parentSelector)();e&&e.contains(n.node)?e.removeChild(n.node):console.warn('React-Modal: "parentSelector" prop did not returned any DOM element. Make sure that the parent element is unmounted to avoid any memory leaks.')},n.portalRef=function(e){n.portal=e},n.renderPortal=function(e){var r=x()(n,s.default.createElement(c.default,i({defaultStyles:t.defaultStyles},e)),n.node);n.portalRef(r)},g(n,r)}return t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e),n(t,[{key:"componentDidMount",value:function(){d.canUseDOM&&(b||(this.node=v("div")),this.node.className=this.props.portalClassName,(0,this.props.parentSelector)().appendChild(this.node),b||this.renderPortal(this.props))}},{key:"getSnapshotBeforeUpdate",value:function(e){return{prevParent:(0,e.parentSelector)(),nextParent:(0,this.props.parentSelector)()}}},{key:"componentDidUpdate",value:function(e,t,r){if(d.canUseDOM){var i=this.props,n=i.isOpen,a=i.portalClassName;e.portalClassName!==a&&(this.node.className=a);var s=r.prevParent,o=r.nextParent;o!==s&&(s.removeChild(this.node),o.appendChild(this.node)),(e.isOpen||n)&&(b||this.renderPortal(this.props))}}},{key:"componentWillUnmount",value:function(){if(d.canUseDOM&&this.node&&this.portal){var e=this.portal.state,t=Date.now(),r=e.isOpen&&this.props.closeTimeoutMS&&(e.closesAt||t+this.props.closeTimeoutMS);r?(e.beforeClose||this.portal.closeWithTimeout(),setTimeout(this.removePortal,r-t)):this.removePortal()}}},{key:"render",value:function(){return d.canUseDOM&&b?(!this.node&&b&&(this.node=v("div")),x()(s.default.createElement(c.default,i({ref:this.portalRef,defaultStyles:t.defaultStyles},this.props)),this.node)):null}}],[{key:"setAppElement",value:function(e){u.setElement(e)}}]),t}(a.Component);_.propTypes={isOpen:l.default.bool.isRequired,style:l.default.shape({content:l.default.object,overlay:l.default.object}),portalClassName:l.default.string,bodyOpenClassName:l.default.string,htmlOpenClassName:l.default.string,className:l.default.oneOfType([l.default.string,l.default.shape({base
133:l.default.string.isRequired,afterOpen:l.default.string.isRequired,beforeClose:l.default.string.isRequired})]),overlayClassName:l.default.oneOfType([l.default.string,l.default.shape({base:l.default.string.isRequired,afterOpen:l.default.string.isRequired,beforeClose:l.default.string.isRequired})]),appElement:l.default.oneOfType([l.default.instanceOf(p.default),l.default.instanceOf(d.SafeHTMLCollection),l.default.instanceOf(d.SafeNodeList),l.default.arrayOf(l.default.instanceOf(p.default))]),onAfterOpen:l.default.func,onRequestClose:l.default.func,closeTimeoutMS:l.default.number,ariaHideApp:l.default.bool,shouldFocusAfterRender:l.default.bool,shouldCloseOnOverlayClick:l.default.bool,shouldReturnFocusAfterClose:l.default.bool,preventScroll:l.default.bool,parentSelector:l.default.func,aria:l.default.object,data:l.default.object,role:l.default.string,contentLabel:l.default.string,shouldCloseOnEsc:l.default.bool,overlayRef:l.default.func,contentRef:l.default.func,id:l.default.string,overlayElement:l.default.func,contentElement:l.default.func},_.defaultProps={isOpen:!1,portalClassName:m,bodyOpenClassName:y,role:"dialog",ariaHideApp:!0,closeTimeoutMS:0,shouldFocusAfterRender:!0,shouldCloseOnEsc:!0,shouldCloseOnOverlayClick:!0,shouldReturnFocusAfterClose:!0,preventScroll:!1,parentSelector:function(){return document.body},overlayElement:function(e,t){return s.default.createElement("div",e,t)},contentElement:function(e,t){return s.default.createElement("div",e,t)}},_.defaultStyles={overlay:{position:"fixed",top:0,left:0,right:0,bottom:0,backgroundColor:"rgba(255, 255, 255, 0.75)"},content:{position:"absolute",top:"40px",left:"40px",right:"40px",bottom:"40px",border:"1px solid #ccc",background:"#fff",overflow:"auto",WebkitOverflowScrolling:"touch",borderRadius:"4px",outline:"none",padding:"20px"}},(0,h.polyfill)(_),r.default=_},719507,(e,t,r)=>{"use strict";var i;Object.defineProperty(r,"__esModule",{value:!0}),r.default=((i=e.r(963749))&&i.__esModule?i:{default:i}).default,t.exports=r.default},841428,e=>{"use strict";var t=e.i(247167),r=e.i(843476),i=e.i(387644),n=e.i(271645),a=e.i(719507),s=e.i(211418);e.i(879806);var o=e.i(871084),l=e.i(775518),c=e.i(389980);e.i(127600);var u=e.i(637258),d=e.i(197510),p=e.i(136905);if(a.default.defaultStyles={overlay:{backgroundColor:"rgba(0, 0, 0, 0.70)",bottom:0,left:0,position:"fixed",right:0,top:0,zIndex:100}},"u">typeof document){let e=t.default.env.IS_STORYBOOK?"#storybook-root":"#__next",r=document.querySelector(e);a.default.setAppElement(r??document.body)}let h=(0,s.tv)({slots:{body:["text-modal-body","font-typography-font-family-body","text-typography-font-size-body-medium","font-normal","leading-[24px]","pt-padding-tight","overflow-y-auto","overscroll-contain"],closeButton:["h-6","w-6","self-end","absolute","top-4","right-4","flex","items-center","justify-center","text-component-modal-close-icon"],modal:["absolute","flex","flex-col","left-2/4","top-2/4","-translate-x-2/4","-translate-y-2/4","outline-none"],modalWrapper:["flex","flex-col","bg-component-modal-surface","gap-0","px-padding-base","py-spacing-spacing-40","rounded-general-border-radius-container","w-full"],titleBar:["flex","flex-row"],titleBarText:["grow","text-modal-title","font-typography-font-family-body","text-typography-font-size-body-large","font-bold","leading-[27px]"],triggerContainer:["inline-block"]},variants:{size:{xLarge:{body:["max-h-[540px]","w-[78.67vw]","md:max-h-[680px]","md:w-[53.2vw]"]},Fluid:{modal:["h-auto","max-h-[90vh]","my-auto"],body:["w-auto","md:w-auto","max-h-[70vh]"]},Large:{modal:["w-[90vw]","md:w-auto"],body:["h-auto","max-h-[540px]","w-full","md:max-h-[680px]","md:w-[50vw]"]},Medium:{modal:["w-[90vw]","md:w-auto"],body:["h-auto","max-h-[540px]","w-full","md:max-h-[540px]","md:w-[33vw]"]},Small:{modal:["w-[90vw]","md:w-auto"],body:["h-auto","max-h-[540px]","w-full","md:max-h-[432px]","md:w-[25vw]"]}}}});e.s(["default",0,e=>{let{content:s,gtmEvent:f,id:g,label:m,openOnLoad:y=!1,size:b="Large",title:v,trigger:x}=e||{},{body:_,closeButton:w,modal:T,modalWrapper:S,titleBar:C,triggerContainer:E}=h({size:b}),{brand:k,theme:N}=(0,n.useContext)(c.BrandAndThemeContext);(0,n.useEffect)(()=>
133{if(t.default.env.IS_STORYBOOK)return;let e=document.querySelector("#__next");e&&a.default.setAppElement(e)},[]);let[I,A]=(0,n.useState)(y),j=(0,n.useRef)(!1);(0,n.useEffect)(()=>{if(y&&!j.current){let e=setTimeout(()=>{(0,d.lockBodyScroll)(),j.current=!0},0);return()=>clearTimeout(e)}},[y]);let P=()=>{let e=window.history.state&&"object"==typeof window.history.state?window.history.state:{};window.history.replaceState(e,document.title,window.location.pathname+window.location.search),A(!1);let t={...f,"gtm.element.dataset.gtmComponentName":"helpers-sitecorewrappers-modalwrappertwo","gtm.element.dataset.gtmDatasourceId":g};(0,i.sendGTMEvent)(t)},O=()=>{if(A(!0),window.location.hash){let e=window.location.href.split("#")[0];window.history.replaceState(null,"",e)}},L=(0,n.useCallback)(()=>{let{hash:e}=window?.location;e===`#modal-${g}`&&O()},[g]);return(0,l.useOnHashChange)(L),(0,n.useEffect)(()=>(I?(0,d.lockBodyScroll)():(0,d.unlockBodyScroll)(),()=>{I&&(0,d.unlockBodyScroll)()}),[I]),(0,r.jsxs)(r.Fragment,{children:[x&&(0,r.jsx)("span",{"aria-controls":`modal-${g}`,className:E(),id:`modal-${g}-button`,onClick:O,role:"button",children:x}),(0,r.jsx)(a.default,{ariaHideApp:!0,className:T(),closeTimeoutMS:300,contentLabel:m,"data-component":"helpers/generic-wrappers/modal-wrapper",id:`modal-${g}`,isOpen:I,onAfterClose:()=>{},onAfterOpen:()=>{let e={...f,"gtm.element.dataset.gtmComponentName":"helpers-sitecorewrappers-modalwrappertwo","gtm.element.dataset.gtmDatasourceId":g};(0,i.sendGTMEvent)(e)},onRequestClose:P,role:"dialog",shouldCloseOnEsc:!0,shouldCloseOnOverlayClick:!0,shouldReturnFocusAfterClose:!0,...(0,p.getTestProps)(`component-modal-${g}`),children:(0,r.jsx)("div",{className:`${k} ${N} ${u.supportedFonts.map(e=>e.className).join(" ")} brand-root`,children:(0,r.jsxs)("div",{className:S(),children:[(0,r.jsx)("button",{"aria-label":"Close Modal Button",className:w(),onClick:P,role:"button",...(0,p.getTestProps)("close-btn"),children:(0,r.jsx)(o.SvgIcon,{"aria-hidden":"true","aria-label":"Close Modal Button Icon",icon:"close",size:"xs"})}),(0,r.jsx)("div",{className:C(),...(0,p.getTestProps)("title"),children:v}),(0,r.jsx)("div",{className:_(),...(0,p.getTestProps)("content"),children:s})]})})})]})}])},325273,(e,t,r)=>{var i;t.exports=i="u">typeof window?window:e.g},729265,(e,t,r)=>{var i,n=e.g;"u">typeof document?i=document:(i=n["__GLOBAL_DOCUMENT_CACHE@4"])||(i=n["__GLOBAL_DOCUMENT_CACHE@4"]={}),t.exports=i},343676,(e,t,r)=>{function i(){return t.exports=i=Object.assign.bind(),t.exports.__esModule=!0,t.exports.default=t.exports,i.apply(null,arguments)}t.exports=i,t.exports.__esModule=!0,t.exports.default=t.exports},575959,(e,t,r)=>{t.exports=function(e){if(!e)return!1;var t=i.call(e);return"[object Function]"===t||"function"==typeof e&&"[object RegExp]"!==t||"u">typeof window&&(e===window.setTimeout||e===window.alert||e===window.confirm||e===window.prompt)};var i=Object.prototype.toString},475071,(e,t,r)=>{"use strict";function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,i=Array(t);r<t;r++)i[r]=e[r];return i}t.exports=function(){function e(){this.typeToInterceptorsMap_=new Map,this.enabled_=!1}var t=e.prototype;return t.getIsEnabled=function(){return this.enabled_},t.enable=function(){this.enabled_=!0},t.disable=function(){this.enabled_=!1},t.reset=function(){this.typeToInterceptorsMap_=new Map,this.enabled_=!1},t.addInterceptor=function(e,t){this.typeToInterceptorsMap_.has(e)||this.typeToInterceptorsMap_.set(e,new Set);var r=this.typeToInterceptorsMap_.get(e);return!r.has(t)&&(r.add(t),!0)},t.removeInterceptor=function(e,t){var r=this.typeToInterceptorsMap_.get(e);return!!(r&&r.has(t))&&(r.delete(t),!0)},t.clearInterceptorsByType=function(e){return!!this.typeToInterceptorsMap_.get(e)&&(this.typeToInterceptorsMap_.delete(e),this.typeToInterceptorsMap_.set(e,new Set),!0)},t.clear=function(){return!!this.typeToInterceptorsMap_.size&&(this.typeToInterceptorsMap_=new Map,!0)},t.getForType=function(e){return this.typeToInterceptorsMap_.get(e)||new Set},t.execute=function(e,t){for(var r,n=this.getForType(e),a=function(e){var t="u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(t)return(t=t.call(e)).next.bind(t);if(Array.isArray(e)||(t=function(e){if(e){if("string"==typeof e)return i(e,void 0);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(e);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return i(e,void 0)}}(e))){t&&(e=t);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(n);!(r=a()).done;){var s=r.value;try{t=s(t)}catch(e){}}return t},e}()},177346,(e,t,r)=>{"use strict";var i=function(){function e(){this.maxAttempts_=1,this.delayFactor_=.1,this.fuzzFactor_=.1,this.initialDelay_=1e3,this.enabled_=!1}var t=e.prototype;return t.getIsEnabled=function(){return this.enabled_},t.enable=function(){this.enabled_=!0},t.disable=function(){this.enabled_=!1},t.reset=function(){this.maxAttempts_=1,this.delayFactor_=.1,this.fuzzFactor_=.1,this.initialDelay_=1e3,this.enabled_=!1},t.getMaxAttempts=function(){return this.maxAttempts_},t.setMaxAttempts=function(e){this.maxAttempts_=e},t.getDelayFactor=function(){return this.delayFactor_},t.setDelayFactor=function(e){this.delayFactor_=e},t.getFuzzFactor=function(){return this.fuzzFactor_},t.setFuzzFactor=function(e){this.fuzzFactor_=e},t.getInitialDelay=function(){return this.initialDelay_},t.setInitialDelay=function(e){this.initialDelay_=e},t.createRetry=function(e){var t=void 0===e?{}:e,r=t.maxAttempts,i=t.delayFactor,a=t.fuzzFactor,s=t.initialDelay;return new n({maxAttempts:r||this.maxAttempts_,delayFactor:i||this.delayFactor_,fuzzFactor:a||this.fuzzFactor_,initialDelay:s||this.initialDelay_})},e}(),n=function(){function e(e){this.maxAttempts_=e.maxAttempts,this.delayFactor_=e.delayFactor,this.fuzzFactor_=e.fuzzFactor,this.currentDelay_=e.initialDelay,this.currentAttempt_=1}var t=e.prototype;return t.moveToNextAttempt=function(){this.currentAttempt_++;var e=this.currentDelay_*this.delayFactor_;this.currentDelay_=this.currentDelay_+e},t.shouldRetry=function(){return this.currentAttempt_<this.maxAttempts_},t.getCurrentDelay=function(){return this.currentDelay_},t.getCurrentMinPossibleDelay=function(){return(1-this.fuzzFactor_)*this.currentDelay_},t.getCurrentMaxPossibleDelay=function(){return(1+this.fuzzFactor_)*this.currentDelay_},t.getCurrentFuzzedDelay=function(){var e=this.getCurrentMinPossibleDelay();return e+Math.random()*(this.getCurrentMaxPossibleDelay()-e)},e}();t.exports=i},937496,(e,t,r)=>{"use strict";var i=e.r(325273);t.exports=function(e,t){return void 0===t&&(t=!1),function(r,n,a){if(r)return void e(r);if(n.statusCode>=400&&n.statusCode<=599){var s=a;if(t)if(i.TextDecoder){var o,l=(void 0===(o=n.headers&&n.headers["content-type"])&&(o=""),o.toLowerCase().split(";").reduce(function(e,t){var r=t.split("="),i=r[0],n=r[1];return"charset"===i.trim()?n.trim():e},"utf-8"));try{s=new TextDecoder(l).decode(a)}catch(e){}}else s=String.fromCharCode.apply(null,new Uint8Array(a));e({cause:s});return}e(null,a)}}},53618,(e,t,r)=>{"use strict";var i=e.r(325273),n=e.r(343676),a=e.r(575959),s=e.r(475071),o=e.r(177346);u.httpHandler=e.r(937496),u.requestInterceptorsStorage=new s,u.responseInterceptorsStorage=new s,u.retryM
133anager=new o;var l=function(e){var t={};return e&&e.trim().split("\n").forEach(function(e){var r=e.indexOf(":"),i=e.slice(0,r).trim().toLowerCase(),n=e.slice(r+1).trim();void 0===t[i]?t[i]=n:Array.isArray(t[i])?t[i].push(n):t[i]=[t[i],n]}),t};function c(e,t,r){var i=e;return a(t)?(r=t,"string"==typeof e&&(i={uri:e})):i=n({},t,{uri:e}),i.callback=r,i}function u(e,t,r){return d(t=c(e,t,r))}function d(e){if(void 0===e.callback)throw Error("callback argument missing");if(e.requestType&&u.requestInterceptorsStorage.getIsEnabled()){var t,r,i,n={uri:e.uri||e.url,headers:e.headers||{},body:e.body,metadata:e.metadata||{},retry:e.retry,timeout:e.timeout},a=u.requestInterceptorsStorage.execute(e.requestType,n);e.uri=a.uri,e.headers=a.headers,e.body=a.body,e.metadata=a.metadata,e.retry=a.retry,e.timeout=a.timeout}var s=!1,o=function(t,r,i){s||(s=!0,e.callback(t,r,i))};function c(t){if(clearTimeout(i),clearTimeout(e.retryTimeout),t instanceof Error||(t=Error(""+(t||"Unknown XMLHttpRequest Error"))),t.statusCode=0,!r&&u.retryManager.getIsEnabled()&&e.retry&&e.retry.shouldRetry()){e.retryTimeout=setTimeout(function(){e.retry.moveToNextAttempt(),e.xhr=h,d(e)},e.retry.getCurrentFuzzedDelay());return}if(e.requestType&&u.responseInterceptorsStorage.getIsEnabled()){var n={headers:x.headers||{},body:x.body,responseUrl:h.responseURL,responseType:h.responseType},a=u.responseInterceptorsStorage.execute(e.requestType,n);x.body=a.body,x.headers=a.headers}return o(t,x)}function p(){if(!r){clearTimeout(i),clearTimeout(e.retryTimeout);var t=e.useXDR&&void 0===h.status?200:1223===h.status?204:h.status,n=x,a=null;if(0!==t?(n={body:function(){var e=void 0;if(e=h.response?h.response:h.responseText||function(e){try{if("document"===e.responseType)return e.responseXML;var t=e.responseXML&&"parsererror"===e.responseXML.documentElement.nodeName;if(""===e.responseType&&!t)return e.responseXML}catch(e){}return null}(h),v)try{e=JSON.parse(e)}catch(e){}return e}(),statusCode:t,method:g,headers:{},url:f,rawRequest:h},h.getAllResponseHeaders&&(n.headers=l(h.getAllResponseHeaders()))):a=Error("Internal XMLHttpRequest Error"),e.requestType&&u.responseInterceptorsStorage.getIsEnabled()){var s={headers:n.headers||{},body:n.body,responseUrl:h.responseURL,responseType:h.responseType},c=u.responseInterceptorsStorage.execute(e.requestType,s);n.body=c.body,n.headers=c.headers}return o(a,n,n.body)}}var h=e.xhr||null;h||(h=e.cors||e.useXDR?new u.XDomainRequest:new u.XMLHttpRequest);var f=h.url=e.uri||e.url,g=h.method=e.method||"GET",m=e.body||e.data,y=h.headers=e.headers||{},b=!!e.sync,v=!1,x={body:void 0,headers:{},statusCode:0,method:g,url:f,rawRequest:h};if("json"in e&&!1!==e.json&&(v=!0,y.accept||y.Accept||(y.Accept="application/json"),"GET"!==g&&"HEAD"!==g&&(y["content-type"]||y["Content-Type"]||(y["Content-Type"]="application/json"),m=JSON.stringify(!0===e.json?m:e.json))),h.onreadystatechange=function(){4!==h.readyState||u.responseInterceptorsStorage.getIsEnabled()||setTimeout(p,0)},h.onload=p,h.onerror=c,h.onprogress=function(){},h.onabort=function(){r=!0,clearTimeout(e.retryTimeout)},h.ontimeout=c,h.open(g,f,!b,e.username,e.password),b||(h.withCredentials=!!e.withCredentials),!b&&e.timeout>0&&(i=setTimeout(function(){if(!r){r=!0,h.abort("timeout");var e=Error("XMLHttpRequest timeout");e.code="ETIMEDOUT",c(e)}},e.timeout)),h.setRequestHeader)for(t in y)y.hasOwnProperty(t)&&h.setRequestHeader(t,y[t]);else if(e.headers&&!function(e){for(var t in e)if(e.hasOwnProperty(t))return!1;return!0}(e.headers))throw Error("Headers cannot be set on an XDomainRequest object");return"responseType"in e&&(h.responseType=e.responseType),"beforeSend"in e&&"function"==typeof e.beforeSend&&e.beforeSend(h),h.send(m||null),h}t.exports=u,t.exports.default=u,u.XMLHttpRequest=i.XMLHttpRequest||function(){},u.XDomainRequest="withCredentials"in new u.XMLHttpRequest?u.XMLHttpRequest:i.XDomainRequest,function(e,t){for(var r=0;r<e.length;r++)t(e[r])}(["get","put","post","patch","head","delete"],function(e){u["delete"===e?"del":e]=function(t,r,i){return(r=c(t,r,i)).method=e.toUpperCase(),d(r)}})},35525,(e,t,r)=>{var i=e.r(729265),n=Object.create||function(){function e(){}return function(t){if(1!=arguments.length)throw Error("Object.create shim only accepts one parameter.");return e.prototype=t,new e}}();
133function a(e,t){this.name="ParsingError",this.code=e.code,this.message=t||e.message}function s(e){function t(e,t,r,i){return(0|e)*3600+(0|t)*60+(0|r)+(0|i)/1e3}var r=e.match(/^(\d+):(\d{1,2})(:\d{1,2})?\.(\d{3})/);return r?r[3]?t(r[1],r[2],r[3].replace(":",""),r[4]):r[1]>59?t(r[1],r[2],0,r[4]):t(0,r[1],r[2],r[4]):null}function o(){this.values=n(null)}function l(e,t,r,i){var n=i?e.split(i):[e];for(var a in n)if("string"==typeof n[a]){var s=n[a].split(r);2===s.length&&t(s[0].trim(),s[1].trim())}}a.prototype=n(Error.prototype),a.prototype.constructor=a,a.Errors={BadSignature:{code:0,message:"Malformed WebVTT signature."},BadTimeStamp:{code:1,message:"Malformed time stamp."}},o.prototype={set:function(e,t){this.get(e)||""===t||(this.values[e]=t)},get:function(e,t,r){return r?this.has(e)?this.values[e]:t[r]:this.has(e)?this.values[e]:t},has:function(e){return e in this.values},alt:function(e,t,r){for(var i=0;i<r.length;++i)if(t===r[i]){this.set(e,t);break}},integer:function(e,t){/^-?\d+$/.test(t)&&this.set(e,parseInt(t,10))},percent:function(e,t){return!!(t.match(/^([\d]{1,3})(\.[\d]*)?%$/)&&(t=parseFloat(t))>=0)&&!!(t<=100)&&(this.set(e,t),!0)}};var c=i.createElement&&i.createElement("textarea"),u={c:"span",i:"i",b:"b",u:"u",ruby:"ruby",rt:"rt",v:"span",lang:"span"},d={white:"rgba(255,255,255,1)",lime:"rgba(0,255,0,1)",cyan:"rgba(0,255,255,1)",red:"rgba(255,0,0,1)",yellow:"rgba(255,255,0,1)",magenta:"rgba(255,0,255,1)",blue:"rgba(0,0,255,1)",black:"rgba(0,0,0,1)"},p={v:"title",lang:"lang"},h={rt:"ruby"};function f(e,t){for(var r,i=e.document.createElement("div"),n=i,a=[];null!==(r=function(){if(!t)return null;var e,r=t.match(/^([^<]*)(<[^>]*>?)?/);return e=r[1]?r[1]:r[2],t=t.substr(e.length),e}());){if("<"===r[0]){if("/"===r[1]){a.length&&a[a.length-1]===r.substr(2).replace(">","")&&(a.pop(),n=n.parentNode);continue}var o,l,f,g,m=s(r.substr(1,r.length-2));if(m){g=e.document.createProcessingInstruction("timestamp",m),n.appendChild(g);continue}var y=r.match(/^<([^.\s/0-9>]+)(\.[^\s\\>]+)?([^>\\]+)?(\\?)>?$/);if(!y||!(g=function(t,r){var i=u[t];if(!i)return null;var n=e.document.createElement(i),a=p[t];return a&&r&&(n[a]=r.trim()),n}(y[1],y[3]))||(l=n,h[(f=g).localName]&&h[f.localName]!==l.localName))continue;if(y[2]){var b=y[2].split(".");b.forEach(function(e){var t=/^bg_/.test(e),r=t?e.slice(3):e;if(d.hasOwnProperty(r)){var i=t?"background-color":"color",n=d[r];g.style[i]=n}}),g.className=b.join(" ")}a.push(y[1]),n.appendChild(g),n=g;continue}n.appendChild(e.document.createTextNode((c.innerHTML=o=r,o=c.textContent,c.textContent="",o)))}return i}var g=[[1470,1470],[1472,1472],[1475,1475],[1478,1478],[1488,1514],[1520,1524],[1544,1544],[1547,1547],[1549,1549],[1563,1563],[1566,1610],[1645,1647],[1649,1749],[1765,1766],[1774,1775],[1786,1805],[1807,1808],[1810,1839],[1869,1957],[1969,1969],[1984,2026],[2036,2037],[2042,2042],[2048,2069],[2074,2074],[2084,2084],[2088,2088],[2096,2110],[2112,2136],[2142,2142],[2208,2208],[2210,2220],[8207,8207],[64285,64285],[64287,64296],[64298,64310],[64312,64316],[64318,64318],[64320,64321],[64323,64324],[64326,64449],[64467,64829],[64848,64911],[64914,64967],[65008,65020],[65136,65140],[65142,65276],[67584,67589],[67592,67592],[67594,67637],[67639,67640],[67644,67644],[67647,67669],[67671,67679],[67840,67867],[67872,67897],[67903,67903],[67968,68023],[68030,68031],[68096,68096],[68112,68115],[68117,68119],[68121,68147],[68160,68167],[68176,68184],[68192,68223],[68352,68405],[68416,68437],[68440,68466],[68472,68479],[68608,68680],[126464,126467],[126469,126495],[126497,126498],[126500,126500],[126503,126503],[126505,126514],[126516,126519],[126521,126521],[126523,126523],[126530,126530],[126535,126535],[126537,126537],[126539,126539],[126541,126543],[126545,126546],[126548,126548],[126551,126551],[126553,126553],[126555,126555],[126557,126557],[126559,126559],[126561,126562],[126564,126564],[126567,126570],[126572,126578],[126580,126583],[126585,126588],[126590,126590],[126592,126601],[126603,126619],[126625,126627],[126629,126633],[126635,126651],[1114109,1114109]];function m(){}function y(e,t,r){m.call(this),this.cue=t,this.cueDiv=f(e,t.text);var i={color:"rgba(255, 255, 255, 1)",backgroundColor:"rgba(0, 0, 0, 0.8)",position:"relative",left:0,right:0,top:0,bottom:0,display:"inline",writingMode:""===t.vertical?"horizontal-tb":"lr"
133===t.vertical?"vertical-lr":"vertical-rl",unicodeBidi:"plaintext"};this.applyStyles(i,this.cueDiv),this.div=e.document.createElement("div"),i={direction:function(e){var t=[],r="";if(!e||!e.childNodes)return"ltr";function i(e,t){for(var r=t.childNodes.length-1;r>=0;r--)e.push(t.childNodes[r])}for(i(t,e);r=function e(t){if(!t||!t.length)return null;var r=t.pop(),n=r.textContent||r.innerText;if(n){var a=n.match(/^.*(\n|\r)/);return a?(t.length=0,a[0]):n}return"ruby"===r.tagName?e(t):r.childNodes?(i(t,r),e(t)):void 0}(t);)for(var n=0;n<r.length;n++)if(function(e){for(var t=0;t<g.length;t++){var r=g[t];if(e>=r[0]&&e<=r[1])return!0}return!1}(r.charCodeAt(n)))return"rtl";return"ltr"}(this.cueDiv),writingMode:""===t.vertical?"horizontal-tb":"lr"===t.vertical?"vertical-lr":"vertical-rl",unicodeBidi:"plaintext",textAlign:"middle"===t.align?"center":t.align,font:r.font,whiteSpace:"pre-line",position:"absolute"},this.applyStyles(i),this.div.appendChild(this.cueDiv);var n=0;switch(t.positionAlign){case"start":case"line-left":n=t.position;break;case"center":n=t.position-t.size/2;break;case"end":case"line-right":n=t.position-t.size}""===t.vertical?this.applyStyles({left:this.formatStyle(n,"%"),width:this.formatStyle(t.size,"%")}):this.applyStyles({top:this.formatStyle(n,"%"),height:this.formatStyle(t.size,"%")}),this.move=function(e){this.applyStyles({top:this.formatStyle(e.top,"px"),bottom:this.formatStyle(e.bottom,"px"),left:this.formatStyle(e.left,"px"),right:this.formatStyle(e.right,"px"),height:this.formatStyle(e.height,"px"),width:this.formatStyle(e.width,"px")})}}function b(e){var t,r,i,n;if(e.div){r=e.div.offsetHeight,i=e.div.offsetWidth,n=e.div.offsetTop;var a=(a=e.div.childNodes)&&(a=a[0])&&a.getClientRects&&a.getClientRects();e=e.div.getBoundingClientRect(),t=a?Math.max(a[0]&&a[0].height||0,e.height/a.length):0}this.left=e.left,this.right=e.right,this.top=e.top||n,this.height=e.height||r,this.bottom=e.bottom||n+(e.height||r),this.width=e.width||i,this.lineHeight=void 0!==t?t:e.lineHeight}function v(){}m.prototype.applyStyles=function(e,t){for(var r in t=t||this.div,e)e.hasOwnProperty(r)&&(t.style[r]=e[r])},m.prototype.formatStyle=function(e,t){return 0===e?0:e+t},y.prototype=n(m.prototype),y.prototype.constructor=y,b.prototype.move=function(e,t){switch(t=void 0!==t?t:this.lineHeight,e){case"+x":this.left+=t,this.right+=t;break;case"-x":this.left-=t,this.right-=t;break;case"+y":this.top+=t,this.bottom+=t;break;case"-y":this.top-=t,this.bottom-=t}},b.prototype.overlaps=function(e){return this.left<e.right&&this.right>e.left&&this.top<e.bottom&&this.bottom>e.top},b.prototype.overlapsAny=function(e){for(var t=0;t<e.length;t++)if(this.overlaps(e[t]))return!0;return!1},b.prototype.within=function(e){return this.top>=e.top&&this.bottom<=e.bottom&&this.left>=e.left&&this.right<=e.right},b.prototype.overlapsOppositeAxis=function(e,t){switch(t){case"+x":return this.left<e.left;case"-x":return this.right>e.right;case"+y":return this.top<e.top;case"-y":return this.bottom>e.bottom}},b.prototype.intersectPercentage=function(e){return Math.max(0,Math.min(this.right,e.right)-Math.max(this.left,e.left))*Math.max(0,Math.min(this.bottom,e.bottom)-Math.max(this.top,e.top))/(this.height*this.width)},b.prototype.toCSSCompatValues=function(e){return{top:this.top-e.top,bottom:e.bottom-this.bottom,left:this.left-e.left,right:e.right-this.right,height:this.height,width:this.width}},b.getSimpleBoxPosition=function(e){var t=e.div?e.div.offsetHeight:e.tagName?e.offsetHeight:0,r=e.div?e.div.offsetWidth:e.tagName?e.offsetWidth:0,i=e.div?e.div.offsetTop:e.tagName?e.offsetTop:0;return{left:(e=e.div?e.div.getBoundingClientRect():e.tagName?e.getBoundingClientRect():e).left,right:e.right,top:e.top||i,height:e.height||t,bottom:e.bottom||i+(e.height||t),width:e.width||r}},v.StringDecoder=function(){return{decode:function(e){if(!e)return"";if("string"!=typeof e)throw Error("Error - expected string data.");return decodeURIComponent(encodeURIComponent(e))}}},v.convertCueToDOMTree=function(e,t){return e&&t?f(e,t):null},v.processCues=function(e,t,r){if(!e||!t||!r)return null;for(;r.firstChild;)r.removeChild(r.firstChild);var i,n,a=e.document.createElement("div");if(a.style.position="absolute",a.style.left="0",a.style.right="0",a.style.top="0",a.style.bottom="0",a.style.margin="1.5%",r.appendChild(a),!function(e){for(var t=0;t<e.length;t++)if(e[t].hasBeenReset||!e[t].displayState)return!0;return!1}(t)){for(var s=0;s<t.length;s++)a.appendChild(t[s].displayState);return}for(var o=[],l=b.getSimpleBoxPosition(a),c={font:Math.round(.05*l.height*100)/100+"px sans-serif"},u=0;u<t.length;u++)i=new y(e,n=t[u],c),a.appendChild(i.div),function(e,t,r){var i=new b(e),n=e.cue,a=function(e){if("number"==typeof e.line&&(e.snapToLines||e.line>=0&&e.line<=100))return e.line;if(!e.track||!e.track.textTrackList||!e.track.textTrackList.mediaElement)return -1;for(var t=e.track,r=t.textTrackList,i=0,n=0;n<r.length&&r[n]!==t;n++)"showing"===r[n].mode&&i++;return -1*++i}(n),s=[];if(n.snapToLines){switch(n.vertical){case"":s=["+y","-y"],o="height";break;case"rl":s=["+x","-x"],o="width";break;case"lr":s=["-x","+x"],o="width"}var o,l=i.lineHeight,c=l*Math.round(a),u=t[o]+l,d=s[0];Math.abs(c)>u&&(c=Math.ceil(u/l)*l*(c<0?-1:1)),a<0&&(c+=""===n.vertical?t.height:t.width,s=s.reverse()),i.move(d,c)}else{var p=i.lineHeight/t.height*100;switch(n.lineAlign){case"center":a-=p/2;break;case"end":a-=p}switch(n.vertical){case"":e.applyStyles({top:e.formatStyle(a,"%")});break;case"rl":e.applyStyles({left:e.formatStyle(a,"%")});break;case"lr":e.applyStyles({right:e.formatStyle(a,"%")})}s=["+y","-x","+x","-y"],i=new b(e)}var h=function(e,i){for(var n,a=new b(e),s=1,o=0;o<i.length;o++){for(;e.overlapsOppositeAxis(t,i[o])||e.within(t)&&e.overlapsAny(r);)e.move(i[o]);if(e.within(t))return e;var l=e.intersectPercentage(t);s>l&&(n=new b(e),s=l),e=new b(a)}return n||a}(i,s);e.move(h.toCSSCompatValues(t))}(i,l,o),n.displayState=i.div,o.push(b.getSimpleBoxPosition(i))},v.Parser=function(e,t,r){r||(r=t,t={}),t||(t={}),this.window=e,this.vttjs=t,this.state="INITIAL",this.buffer="",this.decoder=r||new TextDecoder("utf8"),this.regionList=[]},v.Parser.prototype={reportOrThrowError:function(e){if(e instanceof a)this.onparsingerror&&this.onparsingerror(e);else throw e},parse:function(e){var t=this;function r(){for(var e=t.buffer,r=0;r<e.length&&"\r"!==e[r]&&"\n"!==e[r];)++r;var i=e.substr(0,r);return"\r"===e[r]&&++r,"\n"===e[r]&&++r,t.buffer=e.substr(r),i}e&&(t.buffer+=t.decoder.decode(e,{stream:!0}));try{if("INITIAL"===t.state){if(!/\r\n|\n/.test(t.buffer))return this;var i,n=r(),c=n.match(/^WEBVTT([ \t].*)?$/);if(!c||!c[0])throw new a(a.Errors.BadSignature);t.state="HEADER"}for(var u=!1;t.buffer&&/\r\n|\n/.test(t.buffer);)switch(u?u=!1:n=r(),t.state){case"HEADER":/:/.test(n)?(i=n).match(/X-TIMESTAMP-MAP/)?l(i,function(e,r){if("X-TIMESTAMP-MAP"===e){var i;i=new o,l(r,function(e,t){switch(e){case"MPEGT":i.integer(e+"S",t);break;case"LOCA":i.set(e+"L",s(t))}},/[^\d]:/,/,/),t.ontimestampmap&&t.ontimestampmap({MPEGTS:i.get("MPEGTS"),LOCAL:i.get("LOCAL")})}},/=/):l(i,function(e,r){if("Region"===e){var i=new o;if(l(r,function(e,t){switch(e){case"id":i.set(e,t);break;case"width":i.percent(e,t);break;case"lines":i.integer(e,t);break;case"regionanchor":case"viewportanchor":var r=t.split(",");if(2!==r.length)break;var n=new o;if(n.percent("x",r[0]),n.percent("y",r[1]),!n.has("x")||!n.has("y"))break;i.set(e+"X",n.get("x")),i.set(e+"Y",n.get("y"));break;case"scroll":i.alt(e,t,["up"])}}
133,/=/,/\s/),i.has("id")){var n=new(t.vttjs.VTTRegion||t.window.VTTRegion);n.width=i.get("width",100),n.lines=i.get("lines",3),n.regionAnchorX=i.get("regionanchorX",0),n.regionAnchorY=i.get("regionanchorY",100),n.viewportAnchorX=i.get("viewportanchorX",0),n.viewportAnchorY=i.get("viewportanchorY",100),n.scroll=i.get("scroll",""),t.onregion&&t.onregion(n),t.regionList.push({id:i.get("id"),region:n})}}},/:/):n||(t.state="ID");continue;case"NOTE":n||(t.state="ID");continue;case"ID":if(/^NOTE($|[ \t])/.test(n)){t.state="NOTE";break}if(!n)continue;t.cue=new(t.vttjs.VTTCue||t.window.VTTCue)(0,0,"");try{t.cue.align="center"}catch(e){t.cue.align="middle"}if(t.state="CUE",-1===n.indexOf("-->")){t.cue.id=n;continue}case"CUE":try{!function(e,t,r){var i=e;function n(){var t=s(e);if(null===t)throw new a(a.Errors.BadTimeStamp,"Malformed timestamp: "+i);return e=e.replace(/^[^\sa-zA-Z-]+/,""),t}function c(){e=e.replace(/^\s+/,"")}if(c(),t.startTime=n(),c(),"-->"!==e.substr(0,3))throw new a(a.Errors.BadTimeStamp,"Malformed time stamp (time stamps must be separated by '-->'): "+i);e=e.substr(3),c(),t.endTime=n(),c();var u=e,d=new o;l(u,function(e,t){switch(e){case"region":for(var i=r.length-1;i>=0;i--)if(r[i].id===t){d.set(e,r[i].region);break}break;case"vertical":d.alt(e,t,["rl","lr"]);break;case"line":var n=t.split(","),a=n[0];d.integer(e,a),d.percent(e,a)&&d.set("snapToLines",!1),d.alt(e,a,["auto"]),2===n.length&&d.alt("lineAlign",n[1],["start","center","end"]);break;case"position":n=t.split(","),d.percent(e,n[0]),2===n.length&&d.alt("positionAlign",n[1],["start","center","end"]);break;case"size":d.percent(e,t);break;case"align":d.alt(e,t,["start","center","end","left","right"])}},/:/,/\s/),t.region=d.get("region",null),t.vertical=d.get("vertical","");try{t.line=d.get("line","auto")}catch(e){}t.lineAlign=d.get("lineAlign","start"),t.snapToLines=d.get("snapToLines",!0),t.size=d.get("size",100);try{t.align=d.get("align","center")}catch(e){t.align=d.get("align","middle")}try{t.position=d.get("position","auto")}catch(e){t.position=d.get("position",{start:0,left:0,center:50,middle:50,end:100,right:100},t.align)}t.positionAlign=d.get("positionAlign",{start:"start",left:"start",center:"center",middle:"center",end:"end",right:"end"},t.align)}(n,t.cue,t.regionList)}catch(e){t.reportOrThrowError(e),t.cue=null,t.state="BADCUE";continue}t.state="CUETEXT";continue;case"CUETEXT":var d=-1!==n.indexOf("-->");if(!n||d&&(u=!0)){t.oncue&&t.oncue(t.cue),t.cue=null,t.state="ID";continue}t.cue.text&&(t.cue.text+="\n"),t.cue.text+=n.replace(/\u2028/g,"\n").replace(/u2029/g,"\n");continue;case"BADCUE":n||(t.state="ID");continue}}catch(e){t.reportOrThrowError(e),"CUETEXT"===t.state&&t.cue&&t.oncue&&t.oncue(t.cue),t.cue=null,t.state="INITIAL"===t.state?"BADWEBVTT":"BADCUE"}return this},flush:function(){try{if(this.buffer+=this.decoder.decode(),(this.cue||"HEADER"===this.state)&&(this.buffer+="\n\n",this.parse()),"INITIAL"===this.state)throw new a(a.Errors.BadSignature)}catch(e){this.reportOrThrowError(e)}return this.onflush&&this.onflush(),this}},t.exports=v},635129,(e,t,r)=>{var i={"":1,lr:1,rl:1},n={start:1,center:1,end:1,left:1,right:1,auto:1,"line-left":1,"line-right":1};function a(e){return"string"==typeof e&&!!n[e.toLowerCase()]&&e.toLowerCase()}function s(e,t,r){this.hasBeenReset=!1;var n="",s=!1,o=e,l=t,c=r,u=null,d="",p=!0,h="auto",f="start",g="auto",m="auto",y=100,b="center";Object.defineProperties(this,{id:{enumerable:!0,get:function(){return n},set:function(e){n=""+e}},pauseOnExit:{enumerable:!0,get:function(){return s},set:function(e){s=!!e}},startTime:{enumerable:!0,get:function(){return o},set:function(e){if("number"!=typeof e)throw TypeError("Start time must be set to a number.");o=e,this.hasBeenReset=!0}},endTime:{enumerable:!0,get:function(){return l},set:function(e){if("number"!=typeof e)throw TypeError("End time must be set to a number.");l=e,this.hasBeenReset=!0}},text:{enumerable:!0,get:function(){return c},set:function(e){c=""+e,this.hasBeenReset=!0}},region:{enumerable:!0,get:function(){return u},set:function(e){u=e,this.hasBeenReset=!0}},vertical:{enumerable:!0,get:function(){return d}
133,set:function(e){var t="string"==typeof e&&!!i[e.toLowerCase()]&&e.toLowerCase();if(!1===t)throw SyntaxError("Vertical: an invalid or illegal direction string was specified.");d=t,this.hasBeenReset=!0}},snapToLines:{enumerable:!0,get:function(){return p},set:function(e){p=!!e,this.hasBeenReset=!0}},line:{enumerable:!0,get:function(){return h},set:function(e){if("number"!=typeof e&&"auto"!==e)throw SyntaxError("Line: an invalid number or illegal string was specified.");h=e,this.hasBeenReset=!0}},lineAlign:{enumerable:!0,get:function(){return f},set:function(e){var t=a(e);t?(f=t,this.hasBeenReset=!0):console.warn("lineAlign: an invalid or illegal string was specified.")}},position:{enumerable:!0,get:function(){return g},set:function(e){if(e<0||e>100)throw Error("Position must be between 0 and 100.");g=e,this.hasBeenReset=!0}},positionAlign:{enumerable:!0,get:function(){return m},set:function(e){var t=a(e);t?(m=t,this.hasBeenReset=!0):console.warn("positionAlign: an invalid or illegal string was specified.")}},size:{enumerable:!0,get:function(){return y},set:function(e){if(e<0||e>100)throw Error("Size must be between 0 and 100.");y=e,this.hasBeenReset=!0}},align:{enumerable:!0,get:function(){return b},set:function(e){var t=a(e);if(!t)throw SyntaxError("align: an invalid or illegal alignment string was specified.");b=t,this.hasBeenReset=!0}}}),this.displayState=void 0}s.prototype.getCueAsHTML=function(){return WebVTT.convertCueToDOMTree(window,this.text)},t.exports=s},242454,(e,t,r)=>{var i={"":!0,up:!0};function n(e){return"number"==typeof e&&e>=0&&e<=100}t.exports=function(){var e=100,t=3,r=0,a=100,s=0,o=100,l="";Object.defineProperties(this,{width:{enumerable:!0,get:function(){return e},set:function(t){if(!n(t))throw Error("Width must be between 0 and 100.");e=t}},lines:{enumerable:!0,get:function(){return t},set:function(e){if("number"!=typeof e)throw TypeError("Lines must be set to a number.");t=e}},regionAnchorY:{enumerable:!0,get:function(){return a}
133,set:function(e){if(!n(e))throw Error("RegionAnchorX must be between 0 and 100.");a=e}},regionAnchorX:{enumerable:!0,get:function(){return r},set:function(e){if(!n(e))throw Error("RegionAnchorY must be between 0 and 100.");r=e}},viewportAnchorY:{enumerable:!0,get:function(){return o},set:function(e){if(!n(e))throw Error("ViewportAnchorY must be between 0 and 100.");o=e}},viewportAnchorX:{enumerable:!0,get:function(){return s},set:function(e){if(!n(e))throw Error("ViewportAnchorX must be between 0 and 100.");s=e}},scroll:{enumerable:!0,get:function(){return l},set:function(e){var t="string"==typeof e&&!!i[e.toLowerCase()]&&e.toLowerCase();!1===t?console.warn("Scroll: an invalid or illegal string was specified."):l=t}}})}},810755,(e,t,r)=>{var i=e.r(325273),n=t.exports={WebVTT:e.r(35525),VTTCue:e.r(635129),VTTRegion:e.r(242454)};i.vttjs=n,i.WebVTT=n.WebVTT;var a=n.VTTCue,s=n.VTTRegion,o=i.VTTCue,l=i.VTTRegion;n.shim=function(){i.VTTCue=a,i.VTTRegion=s},n.restore=function(){i.VTTCue=o,i.VTTRegion=l},i.VTTCue||n.shim()},607598,(e,t,r)=>{"use strict";function i(e,t){return void 0===t&&(t=Object),t&&"function"==typeof t.freeze?t.freeze(e):e}var n=i({HTML:"text/html",isHTML:function(e){return e===n.HTML},XML_APPLICATION:"application/xml",XML_TEXT:"text/xml",XML_XHTML_APPLICATION:"application/xhtml+xml",XML_SVG_IMAGE:"image/svg+xml"}),a=i({HTML:"http://www.w3.org/1999/xhtml",isHTML:function(e){return e===a.HTML},SVG:"http://www.w3.org/2000/svg",XML:"http://www.w3.org/XML/1998/namespace",XMLNS:"http://www.w3.org/2000/xmlns/"});r.assign=function(e,t){if(null===e||"object"!=typeof e)throw TypeError("target is not an object");for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},r.find=function(e,t,r){if(void 0===r&&(r=Array.prototype),e&&"function"==typeof r.find)return r.find.call(e,t);for(var i=0;i<e.length;i++)if(Object.prototype.hasOwnProperty.call(e,i)){var n=e[i];if(t.call(void 0,n,i,e))return n}},r.freeze=i,r.MIME_TYPE=n,r.NAMESPACE=a},949684,(e,t,r)=>{var i=e.r(607598),n=i.find,a=i.NAMESPACE;function s(e){return""!==e}function o(e,t){return e.hasOwnProperty(t)||(e[t]=!0),e}function l(e){return e?Object.keys((e?e.split(/[\t\n\f\r ]+/).filter(s):[]).reduce(o,{})):[]}function c(e,t){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])}function u(e,t){var r=e.prototype;if(!(r instanceof t)){function i(){}i.prototype=t.prototype,c(r,i=new i),e.prototype=r=i}r.constructor!=e&&("function"!=typeof e&&console.error("unknown Class:"+e),r.constructor=e)}var d={},p=d.ELEMENT_NODE=1,h=d.ATTRIBUTE_NODE=2,f=d.TEXT_NODE=3,g=d.CDATA_SECTION_NODE=4,m=d.ENTITY_REFERENCE_NODE=5,y=d.ENTITY_NODE=6,b=d.PROCESSING_INSTRUCTION_NODE=7,v=d.COMMENT_NODE=8,x=d.DOCUMENT_NODE=9,_=d.DOCUMENT_TYPE_NODE=10,w=d.DOCUMENT_FRAGMENT_NODE=11,T=d.NOTATION_NODE=12,S={},C={};C[1]="Index size error",S.INDEX_SIZE_ERR=1,C[2]="DOMString size error",S.DOMSTRING_SIZE_ERR=2;var E=(C[3]="Hierarchy request error",S.HIERARCHY_REQUEST_ERR=3);C[4]="Wrong document",S.WRONG_DOCUMENT_ERR=4;var k=(C[5]="Invalid character",S.INVALID_CHARACTER_ERR=5);C[6]="No data allowed",S.NO_DATA_ALLOWED_ERR=6,C[7]="No modification allowed",S.NO_MODIFICATION_ALLOWED_ERR=7;var N=(C[8]="Not found",S.NOT_FOUND_ERR=8);C[9]="Not supported",S.NOT_SUPPORTED_ERR=9;var I=(C[10]="Attribute in use",S.INUSE_ATTRIBUTE_ERR=10),A=(C[11]="Invalid state",S.INVALID_STATE_ERR=11);function j(e,t){if(t instanceof Error)var r=t;else r=this,Error.call(this,C[e]),this.message=C[e],Error.captureStackTrace&&Error.captureStackTrace(this,j);return r.code=e,t&&(this.message=this.message+": "+t),r}function P(){}function O(e,t){this._node=e,this._refresh=t,L(this)}function L(e){var t=e._node._inc||e._node.ownerDocument._inc;if(e._inc!==t){var r=e._refresh(e._node);if(ev(e,"length",r.length),!e.$$length||r.length<e.$$length)for(var i=r.length;i in e;i++)Object.prototype.hasOwnProperty.call(e,i)&&delete e[i];c(r,e),e._inc=t}}function D(){}function R(e,t){for(var r=e.length;r--;)if(e[r]===t)return r}function M(e,t,r,i){if(i?t[R(t,i)]=r:t[t.length++]=r,e){r.ownerElement=e;var n,s,o,l=e.ownerDocument;l&&(i&&W(l,e,i),n=l,s=e,o=r,n&&n._inc++,o.namespaceURI===a.XMLNS&&(s._nsMap[o.prefix?o.localName:""]=o.value))}}function B(e,t,r){var i=R(t,r);if(i>=0){for(var n=t.length-1;i<n;)t[i]=t[++i];if(t.length=n,e){var a=e.ownerDocument;
133a&&(W(a,e,r),r.ownerElement=null)}}else throw new j(N,Error(e.tagName+"@"+r))}function U(){}function F(){}function $(e){return"<"==e&&"&lt;"||">"==e&&"&gt;"||"&"==e&&"&amp;"||'"'==e&&"&quot;"||"&#"+e.charCodeAt()+";"}function z(e,t){return q(e,null,{enter:function(e){return!t(e)||q.STOP}})===q.STOP}function q(e,t,r){for(var i=[{node:e,context:t,phase:q.ENTER}];i.length>0;){var n=i.pop();if(n.phase===q.ENTER){var a=r.enter(n.node,n.context);if(a===q.STOP)return q.STOP;if(i.push({node:n.node,context:a,phase:q.EXIT}),null==a)continue;for(var s=n.node.lastChild;s;)i.push({node:s,context:a,phase:q.ENTER}),s=s.previousSibling}else r.exit&&r.exit(n.node,n.context)}}function H(){this.ownerDocument=this}function W(e,t,r,i){e&&e._inc++,r.namespaceURI===a.XMLNS&&delete t._nsMap[r.prefix?r.localName:""]}function V(e,t,r){if(e&&e._inc){e._inc++;var i=t.childNodes;if(r)i[i.length++]=r;else{for(var n=t.firstChild,a=0;n;)i[a++]=n,n=n.nextSibling;i.length=a,delete i[i.length]}}}function G(e,t){var r=t.previousSibling,i=t.nextSibling;return r?r.nextSibling=i:e.firstChild=i,i?i.previousSibling=r:e.lastChild=r,t.parentNode=null,t.previousSibling=null,t.nextSibling=null,V(e.ownerDocument,e),t}function X(e){return e&&e.nodeType===F.DOCUMENT_TYPE_NODE}function K(e){return e&&e.nodeType===F.ELEMENT_NODE}function Y(e){return e&&e.nodeType===F.TEXT_NODE}function Q(e,t){var r=e.childNodes||[];if(n(r,K)||X(t))return!1;var i=n(r,X);return!(t&&i&&r.indexOf(i)>r.indexOf(t))}function J(e,t){var r=e.childNodes||[];if(n(r,function(e){return K(e)&&e!==t}))return!1;var i=n(r,X);return!(t&&i&&r.indexOf(i)>r.indexOf(t))}function Z(e,t,r){var i=e.childNodes||[],a=t.childNodes||[];
133if(t.nodeType===F.DOCUMENT_FRAGMENT_NODE){var s=a.filter(K);if(s.length>1||n(a,Y))throw new j(E,"More than one element or text in fragment");if(1===s.length&&!J(e,r))throw new j(E,"Element in fragment can not be inserted before doctype")}if(K(t)&&!J(e,r))throw new j(E,"Only one element can be added and only after doctype");if(X(t)){if(n(i,function(e){return X(e)&&e!==r}))throw new j(E,"Only one doctype is allowed");var o=n(i,K);if(r&&i.indexOf(o)<i.indexOf(r))throw new j(E,"Doctype can only be inserted before an element")}}function ee(e,t,r,i){if(!(e&&(e.nodeType===F.DOCUMENT_NODE||e.nodeType===F.DOCUMENT_FRAGMENT_NODE||e.nodeType===F.ELEMENT_NODE)))throw new j(E,"Unexpected parent node type "+e.nodeType);if(r&&r.parentNode!==e)throw new j(N,"child not in parent");if(!(t&&(K(t)||Y(t)||X(t)||t.nodeType===F.DOCUMENT_FRAGMENT_NODE||t.nodeType===F.COMMENT_NODE||t.nodeType===F.PROCESSING_INSTRUCTION_NODE))||X(t)&&e.nodeType!==F.DOCUMENT_NODE)throw new j(E,"Unexpected node type "+t.nodeType+" for parent node type "+e.nodeType);e.nodeType===F.DOCUMENT_NODE&&(i||function(e,t,r){var i=e.childNodes||[],a=t.childNodes||[];
vendor: 11,574 bytes, line 133
133if(t.nodeType===F.DOCUMENT_FRAGMENT_NODE){var s=a.filter(K);if(s.length>1||n(a,Y))throw new j(E,"More than one element or text in fragment");if(1===s.length&&!Q(e,r))throw new j(E,"Element in fragment can not be inserted before doctype")}if(K(t)&&!Q(e,r))throw new j(E,"Only one element can be added and only after doctype");if(X(t)){if(n(i,X))throw new j(E,"Only one doctype is allowed");var o=n(i,K);if(r&&i.indexOf(o)<i.indexOf(r))throw new j(E,"Doctype can only be inserted before an element");if(!r&&o)throw new j(E,"Doctype can not be appended since element is present")}})(e,t,r);var a=t.parentNode;if(a&&a.removeChild(t),t.nodeType===w){var s=t.firstChild;if(null==s)return t;var o=t.lastChild}else s=o=t;var l=r?r.previousSibling:e.lastChild;s.previousSibling=l,o.nextSibling=r,l?l.nextSibling=s:e.firstChild=s,null==r?e.lastChild=o:r.previousSibling=o;do s.parentNode=e,et(s,e.ownerDocument||e);while(s!==o&&(s=s.nextSibling))return V(e.ownerDocument||e,e),t.nodeType==w&&(t.firstChild=t.lastChild=null),t}function et(e,t){if(e.ownerDocument!==t){if(e.ownerDocument=t,e.nodeType===p&&e.attributes)for(var r=0;r<e.attributes.length;r++){var i=e.attributes.item(r);i&&(i.ownerDocument=t)}for(var n=e.firstChild;n;)et(n,t),n=n.nextSibling}}function er(){this._nsMap={}}function ei(){}function en(){}function ea(){}function es(){}function eo(){}function el(){}function ec(){}function eu(){}function ed(){}function ep(){}function eh(){}function ef(){}function eg(e,t,r){var i=!!r&&!!r.requireWellFormed,n=[],a=9==this.nodeType&&this.documentElement||this,s=a.prefix,o=a.namespaceURI;if(o&&null==s){var s=a.lookupPrefix(o);if(null==s)var l=[{namespace:o,prefix:null}]}return eb(this,n,e,t,l,i),n.join("")}function em(e,t,r){var i=e.prefix||"",n=e.namespaceURI;if(!n||"xml"===i&&n===a.XML||n===a.XMLNS)return!1;for(var s=r.length;s--;){var o=r[s];if(o.prefix===i)return o.namespace!==n}return!0}function ey(e,t,r){e.push(" ",t,'="',r.replace(/[<>&"\t\n\r]/g,$),'"')}function eb(e,t,r,i,n,s){n||(n=[]),q(e,{ns:n,isHTML:r},{enter:function(e,r){var n=r.ns,o=r.isHTML;if(i){if(!(e=i(e)))return null;if("string"==typeof e)return t.push(e),null}switch(e.nodeType){case p:var l,c=e.attributes,u=c.length,d=e.tagName;o=a.isHTML(e.namespaceURI)||o;var y=d;if(!o&&!e.prefix&&e.namespaceURI){for(var T=0;T<c.length;T++)if("xmlns"===c.item(T).name){l=c.item(T).value;break}if(!l)for(var S=n.length-1;S>=0;S--){var C=n[S];if(""===C.prefix&&C.namespace===e.namespaceURI){l=C.namespace;break}}if(l!==e.namespaceURI)for(var S=n.length-1;S>=0;S--){var C=n[S];if(C.namespace===e.namespaceURI){C.prefix&&(y=C.prefix+":"+d);break}}}t.push("<",y);for(var E=n.slice(),k=0;k<u;k++){var N=c.item(k);"xmlns"==N.prefix?E.push({prefix:N.localName,namespace:N.value}):"xmlns"==N.nodeName&&E.push({prefix:"",namespace:N.value})}for(var k=0;k<u;k++){var N=c.item(k);if(em(N,o,E)){var I=N.prefix||"",P=N.namespaceURI;ey(t,I?"xmlns:"+I:"xmlns",P),E.push({prefix:I,namespace:P})}var O=i?i(N):N;O&&("string"==typeof O?t.push(O):ey(t,O.name,O.value))}if(d===y&&em(e,o,E)){var L=e.prefix||"",P=e.namespaceURI;ey(t,L?"xmlns:"+L:"xmlns",P),E.push({prefix:L,namespace:P})}var D=e.firstChild;if(!D&&(!o||/^(?:meta|link|img|br|hr|input)$/i.test(d)))return t.push("/>"),null;if(t.push(">"),o&&/^script$/i.test(d)){for(;D;)D.data?t.push(D.data):eb(D,t,o,i,E.slice(),s),D=D.nextSibling;return t.push("</",d,">"),null}return{ns:E,isHTML:o,tag:y};case x:case w:return{ns:n.slice(),isHTML:o,tag:null};case h:return ey(t,e.name,e.value),null;case f:return t.push(e.data.replace(/[<&>]/g,$)),null;case g:if(s&&-1!==e.data.indexOf("]]>"))throw new j(A,'The CDATASection data contains "]]>"');return t.push("<![CDATA[",e.data.replace(/]]>/g,"]]]]><![CDATA[>"),"]]>"),null;case v:if(s&&-1!==e.data.indexOf("-->"))throw new j(A,'The comment node data contains "-->"');return t.push("<!--",e.data,"-->"),null;case _:if(s){if(e.publicId&&!/^("[\x20\r\na-zA-Z0-9\-()+,.\/:=?;!*#@$_%']*"|'[\x20\r\na-zA-Z0-9\-()+,.\/:=?;!*#@$_%'"]*')$/.test(e.publicId))throw new j(A,"DocumentType publicId is not a valid PubidLiteral");if(e.systemId&&!/^("[^"]*"|'[^']*')$/.test(e.systemId))throw new j(A,"DocumentType systemId is not a valid SystemLiteral");if(e.internalSubset&&-1!==e.internalSubset.indexOf("]>"))throw new j(A,'DocumentType internalSubset contains "]>"')}var R=e.publicId,M=e.systemId;if(t.push("<!DOCTYPE ",e.name),R)t.push(" PUBLIC ",R),M&&"."!=M&&t.push(" ",M),t.push(">");else if(M&&"."!=M)t.push(" SYSTEM ",M,">");else{var B=e.internalSubset;B&&t.push(" [",B,"]"),t.push(">")}return null;case b:if(s&&-1!==e.data.indexOf("?>"))throw new j(A,'The ProcessingInstruction data contains "?>"');return t.push("<?",e.target," ",e.data,"?>"),null;case m:return t.push("&",e.nodeName,";"),null;default:return t.push("??",e.nodeName),null}},exit:function(e,r){r&&r.tag&&t.push("</",r.tag,">")}})}function ev(e,t,r){e[t]=r}C[12]="Syntax error",S.SYNTAX_ERR=12,C[13]="Invalid modification",S.INVALID_MODIFICATION_ERR=13,C[14]="Invalid namespace",S.NAMESPACE_ERR=14,C[15]="Invalid access",S.INVALID_ACCESS_ERR=15,j.prototype=Error.prototype,c(S,j),P.prototype={length:0,item:function(e){return e>=0&&e<this.length?this[e]:null},toString:function(e,t,r){for(var i=!!r&&!!r.requireWellFormed,n=[],a=0;a<this.length;a++)eb(this[a],n,e,t,null,i);return n.join("")},filter:function(e){return Array.prototype.filter.call(this,e)},indexOf:function(e){return Array.prototype.indexOf.call(this,e)}},O.prototype.item=function(e){return L(this),this[e]||null},u(O,P),D.prototype={length:0,item:P.prototype.item,getNamedItem:function(e){for(var t=this.length;t--;){var r=this[t];if(r.nodeName==e)return r}},setNamedItem:function(e){var t=e.ownerElement;if(t&&t!=this._ownerElement)throw new j(I);var r=this.getNamedItem(e.nodeName);return M(this._ownerElement,this,e,r),r},setNamedItemNS:function(e){var t,r=e.ownerElement;if(r&&r!=this._ownerElement)throw new j(I);return t=this.getNamedItemNS(e.namespaceURI,e.localName),M(this._ownerElement,this,e,t),t},removeNamedItem:function(e){var t=this.getNamedItem(e);return B(this._ownerElement,this,t),t},removeNamedItemNS:function(e,t){var r=this.getNamedItemNS(e,t);return B(this._ownerElement,this,r),r},getNamedItemNS:function(e,t){for(var r=this.length;r--;){var i=this[r];if(i.localName==t&&i.namespaceURI==e)return i}return null}},U.prototype={hasFeature:function(e,t){return!0},createDocument:function(e,t,r){var i=new H;if(i.implementation=this,i.childNodes=new P,i.doctype=r||null,r&&i.appendChild(r),t){var n=i.createElementNS(e,t);i.appendChild(n)}return i},createDocumentType:function(e,t,r){var i=new el;return i.name=e,i.nodeName=e,i.publicId=t||"",i.systemId=r||"",i}},F.prototype={firstChild:null,lastChild:null,previousSibling:null,nextSibling:null,attributes:null,parentNode:null,childNodes:null,ownerDocument:null,nodeValue:null,namespaceURI:null,prefix:null,localName:null,insertBefore:function(e,t){return ee(this,e,t)},replaceChild:function(e,t){ee(this,e,t,Z),t&&this.removeChild(t)},removeChild:function(e){return G(this,e)},appendChild:function(e){return this.insertBefore(e,null)},hasChildNodes:function(){return null!=this.firstChild},cloneNode:function(e){return function e(t,r,i){var n;return q(r,null,{enter:function(r,a){var s=new r.constructor;for(var o in r)if(Object.prototype.hasOwnProperty.call(r,o)){var l=r[o];"object"!=typeof l&&l!=s[o]&&(s[o]=l)}r.childNodes&&(s.childNodes=new P),s.ownerDocument=t;var c=i;switch(s.nodeType){case p:var u=r.attributes,d=s.attributes=new D,f=u.length;d._ownerElement=s;for(var g=0;g<f;g++)s.setAttributeNode(e(t,u.item(g),!0));break;case h:c=!0}return null!==a?a.appendChild(s):n=s,c?s:null}}),n}(this.ownerDocument||this,this,e)},normalize:function(){q(this,null,{enter:function(e){for(var t=e.firstChild;t;){var r=t.nextSibling;null!==r&&r.nodeType===f&&t.nodeType===f?(e.removeChild(r),t.appendData(r.data)):t=r}return!0}})},isSupported:function(e,t){return this.ownerDocument.implementation.hasFeature(e,t)},hasAttributes:function(){return this.attributes.length>0},lookupPrefix:function(e){for(var t=this;t;){var r=t._nsMap;if(r){for(var i in r)if(Object.prototype.hasOwnProperty.call(r,i)&&r[i]===e)return i}t=t.nodeType==h?t.ownerDocument:t.parentNode}return null},lookupNamespaceURI:function(e){for(var t=this;t;){var r=t._nsMap;if(r&&Object.prototype.hasOwnProperty.call(r,e))return r[e];t=t.nodeType==h?t.ownerDocument:t.parentNode}return null},isDefaultNamespace:function(e){return null==this.lookupPrefix(e)}},c(d,F),c(d,F.prototype),q.STOP=Symbol("walkDOM.STOP"),q.ENTER=0,q.EXIT=1,H.prototype={nodeName:"#document",nodeType:x,doctype:null,documentElement:null,_inc:1,insertBefore:function(e,t){if(e.nodeType==w){for(var r=e.firstChild;r;){var i=r.nextSibling;this.insertBefore(r,t),r=i}return e}return ee(this,e,t),et(e,this),null===this.documentElement&&e.nodeType===p&&(this.documentElement=e),e},removeChild:function(e){return this.documentElement==e&&(this.documentElement=null),G(this,e)},replaceChild:function(e,t){ee(this,e,t,Z),et(e,this),t&&this.removeChild(t),K(e)&&(this.documentElement=e)},importNode:function(e,t){var r,i,n,a;return r=this,i=e,n=t,q(i,null,{enter:function(e,t){var i=e.cloneNode(!1);return i.ownerDocument=r,i.parentNode=null,null===t?a=i:t.appendChild(i),e.nodeType===h||n?i:null}}),a},getElementById:function(e){var t=null;return z(this.documentElement,function(r){if(r.nodeType==p&&r.getAttribute("id")==e)return t=r,!0}),t},getElementsByClassName:function(e){var t=l(e);return new O(this,function(r){var i=[];return t.length>0&&z(r.documentElement,function(n){if(n!==r&&n.nodeType===p){var a=n.getAttribute("class");if(a){var s=e===a;if(!s){var o=l(a);s=t.every(function(e){return o&&-1!==o.indexOf(e)})}s&&i.push(n)}}}),i})},createElement:function(e){var t=new er;return t.ownerDocument=this,t.nodeName=e,t.tagName=e,t.localName=e,t.childNodes=new P,(t.attributes=new D)._ownerElement=t,t},createDocumentFragment:function(){var e=new ep;return e.ownerDocument=this,e.childNodes=new P,e},createTextNode:function(e){var t=new ea;return t.ownerDocument=this,t.appendData(e),t},createComment:function(e){var t=new es;return t.ownerDocument=this,t.appendData(e),t},createCDATASection:function(e){if(-1!==e.indexOf("]]>"))throw new j(k,'data contains "]]>"');var t=new eo;return t.ownerDocument=this,t.appendData(e),t},createProcessingInstruction:function(e,t){var r=new eh;return r.ownerDocument=this,r.tagName=r.nodeName=r.target=e,r.nodeValue=r.data=t,r},createAttribute:function(e){var t=new ei;return t.ownerDocument=this,t.name=e,t.nodeName=e,t.localName=e,t.specified=!0,t},createEntityReference:function(e){var t=new ed;return t.ownerDocument=this,t.nodeName=e,t},createElementNS:function(e,t){var r=new er,i=t.split(":"),n=r.attributes=new D;return r.childNodes=new P,r.ownerDocument=this,r.nodeName=t,r.tagName=t,r.namespaceURI=e,2==i.length?(r.prefix=i[0],r.localName=i[1]):r.localName=t,n._ownerElement=r,r},createAttributeNS:function(e,t){var r=new ei,i=t.split(":");return r.ownerDocument=this,r.nodeName=t,r.name=t,r.namespaceURI=e,r.specified=!0,2==i.length?(r.prefix=i[0],r.localName=i[1]):r.localName=t,r}},u(H,F),er.prototype={nodeType:p,hasAttribute:function(e){return null!=this.getAttributeNode(e)},getAttribute:function(e){var t=this.getAttributeNode(e);return t&&t.value||""},getAttributeNode:function(e){return this.attributes.getNamedItem(e)},setAttribute:function(e,t){var r=this.ownerDocument.createAttribute(e);r.value=r.nodeValue=""+t,this.setAttributeNode(r)},removeAttribute:function(e){var t=this.getAttributeNode(e);t&&this.removeAttributeNode(t)}
133,appendChild:function(e){return e.nodeType===w?this.insertBefore(e,null):(e.parentNode&&e.parentNode.removeChild(e),e.parentNode=this,e.previousSibling=this.lastChild,e.nextSibling=null,e.previousSibling?e.previousSibling.nextSibling=e:this.firstChild=e,this.lastChild=e,V(this.ownerDocument,this,e),et(e,this.ownerDocument||this),e)},setAttributeNode:function(e){return this.attributes.setNamedItem(e)},setAttributeNodeNS:function(e){return this.attributes.setNamedItemNS(e)},removeAttributeNode:function(e){return this.attributes.removeNamedItem(e.nodeName)},removeAttributeNS:function(e,t){var r=this.getAttributeNodeNS(e,t);r&&this.removeAttributeNode(r)},hasAttributeNS:function(e,t){return null!=this.getAttributeNodeNS(e,t)},getAttributeNS:function(e,t){var r=this.getAttributeNodeNS(e,t);return r&&r.value||""},setAttributeNS:function(e,t,r){var i=this.ownerDocument.createAttributeNS(e,t);i.value=i.nodeValue=""+r,this.setAttributeNode(i)},getAttributeNodeNS:function(e,t){return this.attributes.getNamedItemNS(e,t)},getElementsByTagName:function(e){return new O(this,function(t){var r=[];return z(t,function(i){i!==t&&i.nodeType==p&&("*"===e||i.tagName==e)&&r.push(i)}),r})},getElementsByTagNameNS:function(e,t){return new O(this,function(r){var i=[];return z(r,function(n){n!==r&&n.nodeType===p&&("*"===e||n.namespaceURI===e)&&("*"===t||n.localName==t)&&i.push(n)}),i})}},H.prototype.getElementsByTagName=er.prototype.getElementsByTagName,H.prototype.getElementsByTagNameNS=er.prototype.getElementsByTagNameNS,u(er,F),ei.prototype.nodeType=h,u(ei,F),en.prototype={data:"",substringData:function(e,t){return this.data.substring(e,e+t)},appendData:function(e){e=this.data+e,this.nodeValue=this.data=e,this.length=e.length},insertData:function(e,t){this.replaceData(e,0,t)},appendChild:function(e){throw Error(C[E])},deleteData:function(e,t){this.replaceData(e,t,"")},replaceData:function(e,t,r){r=this.data.substring(0,e)+r+this.data.substring(e+t),this.nodeValue=this.data=r,this.length=r.length}},u(en,F),ea.prototype={nodeName:"#text",nodeType:f,splitText:function(e){var t=this.data,r=t.substring(e);t=t.substring(0,e),this.data=this.nodeValue=t,this.length=t.length;var i=this.ownerDocument.createTextNode(r);return this.parentNode&&this.parentNode.insertBefore(i,this.nextSibling),i}},u(ea,en),es.prototype={nodeName:"#comment",nodeType:v},u(es,en),eo.prototype={nodeName:"#cdata-section",nodeType:g},u(eo,en),el.prototype.nodeType=_,u(el,F),ec.prototype.nodeType=T,u(ec,F),eu.prototype.nodeType=y,u(eu,F),ed.prototype.nodeType=m,u(ed,F),ep.prototype.nodeName="#document-fragment",ep.prototype.nodeType=w,u(ep,F),eh.prototype.nodeType=b,u(eh,F),ef.prototype.serializeToString=function(e,t,r,i){return eg.call(e,t,r,i)},F.prototype.toString=eg;try{Object.defineProperty&&(Object.defineProperty(O.prototype,"length",{get:function(){return L(this),this.$$length}}),Object.defineProperty(F.prototype,"textContent",{get:function(){if(this.nodeType===p||this.nodeType===w){var e=[];return q(this,null,{enter:function(t){return t.nodeType===p||t.nodeType===w||(t.nodeType===b||t.nodeType===v?null:void e.push(t.nodeValue))}}),e.join("")}return this.nodeValue},set:function(e){switch(this.nodeType){case p:case w:for(;this.firstChild;)this.removeChild(this.firstChild);(e||String(e))&&this.appendChild(this.ownerDocument.createTextNode(e));break;default:this.data=e,this.value=e,this.nodeValue=e}}}),ev=function(e,t,r){e["$$"+t]=r})}catch(e){}r.DocumentType=el,r.DOMException=j,r.DOMImplementation=U,r.Element=er,r.Node=F,r.NodeList=P,r.walkDOM=q,r.XMLSerializer=ef},353393,(e,t,r)=>{"use strict";var i=e.r(607598).freeze;r.XML_ENTITIES=i({amp:"&",apos:"'",gt:">",lt:"<",quot:'"'}),r.HTML_ENTITIES=i
vendor: 24,744 bytes, line 133
133({Aacute:"Á",aacute:"á",Abreve:"Ă",abreve:"ă",ac:"∾",acd:"∿",acE:"∾̳",Acirc:"Â",acirc:"â",acute:"´",Acy:"А",acy:"а",AElig:"Æ",aelig:"æ",af:"⁡",Afr:"𝔄",afr:"𝔞",Agrave:"À",agrave:"à",alefsym:"ℵ",aleph:"ℵ",Alpha:"Α",alpha:"α",Amacr:"Ā",amacr:"ā",amalg:"⨿",AMP:"&",amp:"&",And:"⩓",and:"∧",andand:"⩕",andd:"⩜",andslope:"⩘",andv:"⩚",ang:"∠",ange:"⦤",angle:"∠",angmsd:"∡",angmsdaa:"⦨",angmsdab:"⦩",angmsdac:"⦪",angmsdad:"⦫",angmsdae:"⦬",angmsdaf:"⦭",angmsdag:"⦮",angmsdah:"⦯",angrt:"∟",angrtvb:"⊾",angrtvbd:"⦝",angsph:"∢",angst:"Å",angzarr:"⍼",Aogon:"Ą",aogon:"ą",Aopf:"𝔸",aopf:"𝕒",ap:"≈",apacir:"⩯",apE:"⩰",ape:"≊",apid:"≋",apos:"'",ApplyFunction:"⁡",approx:"≈",approxeq:"≊",Aring:"Å",aring:"å",Ascr:"𝒜",ascr:"𝒶",Assign:"≔",ast:"*",asymp:"≈",asympeq:"≍",Atilde:"Ã",atilde:"ã",Auml:"Ä",auml:"ä",awconint:"∳",awint:"⨑",backcong:"≌",backepsilon:"϶",backprime:"‵",backsim:"∽",backsimeq:"⋍",Backslash:"∖",Barv:"⫧",barvee:"⊽",Barwed:"⌆",barwed:"⌅",barwedge:"⌅",bbrk:"⎵",bbrktbrk:"⎶",bcong:"≌",Bcy:"Б",bcy:"б",bdquo:"„",becaus:"∵",Because:"∵",because:"∵",bemptyv:"⦰",bepsi:"϶",bernou:"ℬ",Bernoullis:"ℬ",Beta:"Β",beta:"β",beth:"ℶ",between:"≬",Bfr:"𝔅",bfr:"𝔟",bigcap:"⋂",bigcirc:"◯",bigcup:"⋃",bigodot:"⨀",bigoplus:"⨁",bigotimes:"⨂",bigsqcup:"⨆",bigstar:"★",bigtriangledown:"▽",bigtriangleup:"△",biguplus:"⨄",bigvee:"⋁",bigwedge:"⋀",bkarow:"⤍",blacklozenge:"⧫",blacksquare:"▪",blacktriangle:"▴",blacktriangledown:"▾",blacktriangleleft:"◂",blacktriangleright:"▸",blank:"␣",blk12:"▒",blk14:"░",blk34:"▓",block:"█",bne:"=⃥",bnequiv:"≡⃥",bNot:"⫭",bnot:"⌐",Bopf:"𝔹",bopf:"𝕓",bot:"⊥",bottom:"⊥",bowtie:"⋈",boxbox:"⧉",boxDL:"╗",boxDl:"╖",boxdL:"╕",boxdl:"┐",boxDR:"╔",boxDr:"╓",boxdR:"╒",boxdr:"┌",boxH:"═",boxh:"─",boxHD:"╦",boxHd:"╤",boxhD:"╥",boxhd:"┬",boxHU:"╩",boxHu:"╧",boxhU:"╨",boxhu:"┴",boxminus:"⊟",boxplus:"⊞",boxtimes:"⊠",boxUL:"╝",boxUl:"╜",boxuL:"╛",boxul:"┘",boxUR:"╚",boxUr:"╙",boxuR:"╘",boxur:"└",boxV:"║",boxv:"│",boxVH:"╬",boxVh:"╫",boxvH:"╪",boxvh:"┼",boxVL:"╣",boxVl:"╢",boxvL:"╡",boxvl:"┤",boxVR:"╠",boxVr:"╟",boxvR:"╞",boxvr:"├",bprime:"‵",Breve:"˘",breve:"˘",brvbar:"¦",Bscr:"ℬ",bscr:"𝒷",bsemi:"⁏",bsim:"∽",bsime:"⋍",bsol:"\\",bsolb:"⧅",bsolhsub:"⟈",bull:"•",bullet:"•",bump:"≎",bumpE:"⪮",bumpe:"≏",Bumpeq:"≎",bumpeq:"≏",Cacute:"Ć",cacute:"ć",Cap:"⋒",cap:"∩",capand:"⩄",capbrcup:"⩉",capcap:"⩋",capcup:"⩇",capdot:"⩀",CapitalDifferentialD:"ⅅ",caps:"∩︀",caret:"⁁",caron:"ˇ",Cayleys:"ℭ",ccaps:"⩍",Ccaron:"Č",ccaron:"č",Ccedil:"Ç",ccedil:"ç",Ccirc:"Ĉ",ccirc:"ĉ",Cconint:"∰",ccups:"⩌",ccupssm:"⩐",Cdot:"Ċ",cdot:"ċ",cedil:"¸",Cedilla:"¸",cemptyv:"⦲",cent:"¢",CenterDot:"·",centerdot:"·",Cfr:"ℭ",cfr:"𝔠",CHcy:"Ч",chcy:"ч",check:"✓",checkmark:"✓",Chi:"Χ",chi:"χ",cir:"○",circ:"ˆ",circeq:"≗",circlearrowleft:"↺",circlearrowright:"↻",circledast:"⊛",circledcirc:"⊚",circleddash:"⊝",CircleDot:"⊙",circledR:"®",circledS:"Ⓢ",CircleMinus:"⊖",CirclePlus:"⊕",CircleTimes:"⊗",cirE:"⧃",cire:"≗",cirfnint:"⨐",cirmid:"⫯",cirscir:"⧂",ClockwiseContourIntegral:"∲",CloseCurlyDoubleQuote:"”",CloseCurlyQuote:"’",clubs:"♣",clubsuit:"♣",Colon:"∷",colon:":",Colone:"⩴",colone:"≔",coloneq:"≔",comma:",",commat:"@",comp:"∁",compfn:"∘",complement:"∁",complexes:"ℂ",cong:"≅",congdot:"⩭",Congruent:"≡",Conint:"∯",conint:"∮",ContourIntegral:"∮",Copf:"ℂ",copf:"𝕔",coprod:"∐",Coproduct:"∐",COPY:"©",copy:"©",copysr:"℗",CounterClockwiseContourIntegral:"∳",crarr:"↵",Cross:"⨯",cross:"✗",Cscr:"𝒞",cscr:"𝒸",csub:"⫏",csube:"⫑",csup:"⫐",csupe:"⫒",ctdot:"⋯",cudarrl:"⤸",cudarrr:"⤵",cuepr:"⋞",cuesc:"⋟",cularr:"↶",cularrp:"⤽",Cup:"⋓",cup:"∪",cupbrcap:"⩈",CupCap:"≍",cupcap:"⩆",cupcup:"⩊",cupdot:"⊍",cupor:"⩅",cups:"∪︀",curarr:"↷",curarrm:"⤼",curlyeqprec:"⋞",curlyeqsucc:"⋟",curlyvee:"⋎",curlywedge:"⋏",curren:"¤",curvearrowleft:"↶",curvearrowright:"↷",cuvee:"⋎",cuwed:"⋏",cwconint:"∲",cwint:"∱",cylcty:"⌭",Dagger:"‡",dagger:"†",daleth:"ℸ",Darr:"↡",dArr:"⇓",darr:"↓",dash:"‐",Dashv:"⫤",dashv:"⊣",dbkarow:"⤏",dblac:"˝",Dcaron:"Ď",dcaron:"ď",Dcy:"Д",dcy:"д",DD:"ⅅ",dd:"ⅆ",ddagger:"‡",ddarr:"⇊",DDotrahd:"⤑",ddotseq:"⩷",deg:"°",Del:"∇",Delta:"Δ",delta:"δ",demptyv:"⦱",dfisht:"⥿",Dfr:"𝔇",dfr:"𝔡",dHar:"⥥",dharl:"⇃",dharr:"⇂",DiacriticalAcute:"´",DiacriticalDot:"˙",DiacriticalDoubleAcute:"˝",DiacriticalGrave:"`",DiacriticalTilde:"˜",diam:"⋄",Diamond:"⋄",diamond:"⋄",diamondsuit:"♦",diams:"♦",die:"¨",DifferentialD:"ⅆ",digamma:"ϝ",disin:"⋲",div:"÷",divide:"÷",divideontimes:"⋇",divonx:"⋇",DJcy:"Ђ",djcy:"ђ",dlcorn:"⌞",dlcrop:"⌍",dollar:"$",Dopf:"𝔻",dopf:"𝕕",Dot:"¨",dot:"˙",DotDot:"⃜",doteq:"≐",doteqdot:"≑",DotEqual:"≐",dotminus:"∸",dotplus:"∔",dotsquare:"⊡",doublebarwedge:"⌆",DoubleContourIntegral:"∯",DoubleDot:"¨",DoubleDownArrow:"⇓",DoubleLeftArrow:"⇐",DoubleLeftRightArrow:"⇔",DoubleLeftTee:"⫤",DoubleLongLeftArrow:"⟸",DoubleLongLeftRightArrow:"⟺",DoubleLongRightArrow:"⟹",DoubleRightArrow:"⇒",DoubleRightTee:"⊨",DoubleUpArrow:"⇑",DoubleUpDownArrow:"⇕",DoubleVerticalBar:"∥",DownArrow:"↓",Downarrow:"⇓",downarrow:"↓",DownArrowBar:"⤓",DownArrowUpArrow:"⇵",DownBreve:"̑",downdownarrows:"⇊",downharpoonleft:"⇃",downharpoonright:"⇂",DownLeftRightVector:"⥐",DownLeftTeeVector:"⥞",DownLeftVector:"↽",DownLeftVectorBar:"⥖",DownRightTeeVector:"⥟",DownRightVector:"⇁",DownRightVectorBar:"⥗",DownTee:"⊤",DownTeeArrow:"↧",drbkarow:"⤐",drcorn:"⌟",drcrop:"⌌",Dscr:"𝒟",dscr:"𝒹",DScy:"Ѕ",dscy:"ѕ",dsol:"⧶",Dstrok:"Đ",dstrok:"đ",dtdot:"⋱",dtri:"▿",dtrif:"▾",duarr:"⇵",duhar:"⥯",dwangle:"⦦",DZcy:"Џ",dzcy:"џ",dzigrarr:"⟿",Eacute:"É",eacute:"é",easter:"⩮",Ecaron:"Ě",ecaron:"ě",ecir:"≖",Ecirc:"Ê",ecirc:"ê",ecolon:"≕",Ecy:"Э",ecy:"э",eDDot:"⩷",Edot:"Ė",eDot:"≑",edot:"ė",ee:"ⅇ",efDot:"≒",Efr:"𝔈",efr:"𝔢",eg:"⪚",Egrave:"È",egrave:"è",egs:"⪖",egsdot:"⪘",el:"⪙",Element:"∈",elinters:"⏧",ell:"ℓ",els:"⪕",elsdot:"⪗",Emacr:"Ē",emacr:"ē",empty:"∅",emptyset:"∅",EmptySmallSquare:"◻",emptyv:"∅",EmptyVerySmallSquare:"▫",emsp:" ",emsp13:" ",emsp14:" ",ENG:"Ŋ",eng:"ŋ",ensp:" ",Eogon:"Ę",eogon:"ę",Eopf:"𝔼",eopf:"𝕖",epar:"⋕",eparsl:"⧣",eplus:"⩱",epsi:"ε",Epsilon:"Ε",epsilon:"ε",epsiv:"ϵ",eqcirc:"≖",eqcolon:"≕",eqsim:"≂",eqslantgtr:"⪖",eqslantless:"⪕",Equal:"⩵",equals:"=",EqualTilde:"≂",equest:"≟",Equilibrium:"⇌",equiv:"≡",equivDD:"⩸",eqvparsl:"⧥",erarr:"⥱",erDot:"≓",Escr:"ℰ",escr:"ℯ",esdot:"≐",Esim:"⩳",esim:"≂",Eta:"Η",eta:"η",ETH:"Ð",eth:"ð",Euml:"Ë",euml:"ë",euro:"€",excl:"!",exist:"∃",Exists:"∃",expectation:"ℰ",ExponentialE:"ⅇ",exponentiale:"ⅇ",fallingdotseq:"≒",Fcy:"Ф",fcy:"ф",female:"♀",ffilig:"ffi",fflig:"ff",ffllig:"ffl",Ffr:"𝔉",ffr:"𝔣",filig:"fi",FilledSmallSquare:"◼",FilledVerySmallSquare:"▪",fjlig:"fj",flat:"♭",fllig:"fl",fltns:"▱",fnof:"ƒ",Fopf:"𝔽",fopf:"𝕗",ForAll:"∀",forall:"∀",fork:"⋔",forkv:"⫙",Fouriertrf:"ℱ",fpartint:"⨍",frac12:"½",frac13:"⅓",frac14:"¼",frac15:"⅕",frac16:"⅙",frac18:"⅛",frac23:"⅔",frac25:"⅖",frac34:"¾",frac35:"⅗",frac38:"⅜",frac45:"⅘",frac56:"⅚",frac58:"⅝",frac78:"⅞",frasl:"⁄",frown:"⌢",Fscr:"ℱ",fscr:"𝒻",gacute:"ǵ",Gamma:"Γ",gamma:"γ",Gammad:"Ϝ",gammad:"ϝ",gap:"⪆",Gbreve:"Ğ",gbreve:"ğ",Gcedil:"Ģ",Gcirc:"Ĝ",gcirc:"ĝ",Gcy:"Г",gcy:"г",Gdot:"Ġ",gdot:"ġ",gE:"≧",ge:"≥",gEl:"⪌",gel:"⋛",geq:"≥",geqq:"≧",geqslant:"⩾",ges:"⩾",gescc:"⪩",gesdot:"⪀",gesdoto:"⪂",gesdotol:"⪄",gesl:"⋛︀",gesles:"⪔",Gfr:"𝔊",gfr:"𝔤",Gg:"⋙",gg:"≫",ggg:"⋙",gimel:"ℷ",GJcy:"Ѓ",gjcy:"ѓ",gl:"≷",gla:"⪥",glE:"⪒",glj:"⪤",gnap:"⪊",gnapprox:"⪊",gnE:"≩",gne:"⪈",gneq:"⪈",gneqq:"≩",gnsim:"⋧",Gopf:"𝔾",gopf:"𝕘",grave:"`",GreaterEqual:"≥",GreaterEqualLess:"⋛",GreaterFullEqual:"≧",GreaterGreater:"⪢",GreaterLess:"≷",GreaterSlantEqual:"⩾",GreaterTilde:"≳",Gscr:"𝒢",gscr:"ℊ",gsim:"≳",gsime:"⪎",gsiml:"⪐",Gt:"≫",GT:">",gt:">",gtcc:"⪧",gtcir:"⩺",gtdot:"⋗",gtlPar:"⦕",gtquest:"⩼",gtrapprox:"⪆",gtrarr:"⥸",gtrdot:"⋗",gtreqless:"⋛",gtreqqless:"⪌",gtrless:"≷",gtrsim:"≳",gvertneqq:"≩︀",gvnE:"≩︀",Hacek:"ˇ",hairsp:" ",half:"½",hamilt:"ℋ",HARDcy:"Ъ",hardcy:"ъ",hArr:"⇔",harr:"↔",harrcir:"⥈",harrw:"↭",Hat:"^",hbar:"ℏ",Hcirc:"Ĥ",hcirc:"ĥ",hearts:"♥",heartsuit:"♥",hellip:"…",hercon:"⊹",Hfr:"ℌ",hfr:"𝔥",HilbertSpace:"ℋ",hksearow:"⤥",hkswarow:"⤦",hoarr:"⇿",homtht:"∻",hookleftarrow:"↩",hookrightarrow:"↪",Hopf:"ℍ",hopf:"𝕙",horbar:"―",HorizontalLine:"─",Hscr:"ℋ",hscr:"𝒽",hslash:"ℏ",Hstrok:"Ħ",hstrok:"ħ",HumpDownHump:"≎",HumpEqual:"≏",hybull:"⁃",hyphen:"‐",Iacute:"Í",iacute:"í",ic:"⁣",Icirc:"Î",icirc:"î",Icy:"И",icy:"и",Idot:"İ",IEcy:"Е",iecy:"е",iexcl:"¡",iff:"⇔",Ifr:"ℑ",ifr:"𝔦",Igrave:"Ì",igrave:"ì",ii:"ⅈ",iiiint:"⨌",iiint:"∭",iinfin:"⧜",iiota:"℩",IJlig:"IJ",ijlig:"ij",Im:"ℑ",Imacr:"Ī",imacr:"ī",image:"ℑ",ImaginaryI:"ⅈ",imagline:"ℐ",imagpart:"ℑ",imath:"ı",imof:"⊷",imped:"Ƶ",Implies:"⇒",in:"∈",incare:"℅",infin:"∞",infintie:"⧝",inodot:"ı",Int:"∬",int:"∫",intcal:"⊺",integers:"ℤ",Integral:"∫",intercal:"⊺",Intersection:"⋂",intlarhk:"⨗",intprod:"⨼",InvisibleComma:"⁣",InvisibleTimes:"⁢",IOcy:"Ё",iocy:"ё",Iogon:"Į",iogon:"į",Iopf:"𝕀",iopf:"𝕚",Iota:"Ι",iota:"ι",iprod:"⨼",iquest:"¿",Iscr:"ℐ",iscr:"𝒾",isin:"∈",isindot:"⋵",isinE:"⋹",isins:"⋴",isinsv:"⋳",isinv:"∈",it:"⁢",Itilde:"Ĩ",itilde:"ĩ",Iukcy:"І",iukcy:"і",Iuml:"Ï",iuml:"ï",Jcirc:"Ĵ",jcirc:"ĵ",Jcy:"Й",jcy:"й",Jfr:"𝔍",jfr:"𝔧",jmath:"ȷ",Jopf:"𝕁",jopf:"𝕛",Jscr:"𝒥",jscr:"𝒿",Jsercy:"Ј",jsercy:"ј",Jukcy:"Є",jukcy:"є",Kappa:"Κ",kappa:"κ",kappav:"ϰ",Kcedil:"Ķ",kcedil:"ķ",Kcy:"К",kcy:"к",Kfr:"𝔎",kfr:"𝔨",kgreen:"ĸ",KHcy:"Х",khcy:"х",KJcy:"Ќ",kjcy:"ќ",Kopf:"𝕂",kopf:"𝕜",Kscr:"𝒦",kscr:"𝓀",lAarr:"⇚",Lacute:"Ĺ",lacute:"ĺ",laemptyv:"⦴",lagran:"ℒ",Lambda:"Λ",lambda:"λ",Lang:"⟪",lang:"⟨",langd:"⦑",langle:"⟨",lap:"⪅",Laplacetrf:"ℒ",laquo:"«",Larr:"↞",lArr:"⇐",larr:"←",larrb:"⇤",larrbfs:"⤟",larrfs:"⤝",larrhk:"↩",larrlp:"↫",larrpl:"⤹",larrsim:"⥳",larrtl:"↢",lat:"⪫",lAtail:"⤛",latail:"⤙",late:"⪭",lates:"⪭︀",lBarr:"⤎",lbarr:"⤌",lbbrk:"❲",lbrace:"{",lbrack:"[",lbrke:"⦋",lbrksld:"⦏",lbrkslu:"⦍",Lcaron:"Ľ",lcaron:"ľ",Lcedil:"Ļ",lcedil:"ļ",lceil:"⌈",lcub:"{",Lcy:"Л",lcy:"л",ldca:"⤶",ldquo:"“",ldquor:"„",ldrdhar:"⥧",ldrushar:"⥋",ldsh:"↲",lE:"≦",le:"≤",LeftAngleBracket:"⟨",LeftArrow:"←",Leftarrow:"⇐",leftarrow:"←",LeftArrowBar:"⇤",LeftArrowRightArrow:"⇆",leftarrowtail:"↢",LeftCeiling:"⌈",LeftDoubleBracket:"⟦",LeftDownTeeVector:"⥡",LeftDownVector:"⇃",LeftDownVectorBar:"⥙",LeftFloor:"⌊",leftharpoondown:"↽",leftharpoonup:"↼",leftleftarrows:"⇇",LeftRightArrow:"↔",Leftrightarrow:"⇔",leftrightarrow:"↔",leftrightarrows:"⇆",leftrightharpoons:"⇋",leftrightsquigarrow:"↭",LeftRightVector:"⥎",LeftTee:"⊣",LeftTeeArrow:"↤",LeftTeeVector:"⥚",leftthreetimes:"⋋",LeftTriangle:"⊲",LeftTriangleBar:"⧏",LeftTriangleEqual:"⊴",LeftUpDownVector:"⥑",LeftUpTeeVector:"⥠",LeftUpVector:"↿",LeftUpVectorBar:"⥘",LeftVector:"↼",LeftVectorBar:"⥒",lEg:"⪋",leg:"⋚",leq:"≤",leqq:"≦",leqslant:"⩽",les:"⩽",lescc:"⪨",lesdot:"⩿",lesdoto:"⪁",lesdotor:"⪃",lesg:"⋚︀",lesges:"⪓",lessapprox:"⪅",lessdot:"⋖",lesseqgtr:"⋚",lesseqqgtr:"⪋",LessEqualGreater:"⋚",LessFullEqual:"≦",LessGreater:"≶",lessgtr:"≶",LessLess:"⪡",lesssim:"≲",LessSlantEqual:"⩽",LessTilde:"≲",lfisht:"⥼",lfloor:"⌊",Lfr:"𝔏",lfr:"𝔩",lg:"≶",lgE:"⪑",lHar:"⥢",lhard:"↽",lharu:"↼",lharul:"⥪",lhblk:"▄",LJcy:"Љ",ljcy:"љ",Ll:"⋘",ll:"≪",llarr:"⇇",llcorner:"⌞",Lleftarrow:"⇚",llhard:"⥫",lltri:"◺",Lmidot:"Ŀ",lmidot:"ŀ",lmoust:"⎰",lmoustache:"⎰",lnap:"⪉",lnapprox:"⪉",lnE:"≨",lne:"⪇",lneq:"⪇",lneqq:"≨",lnsim:"⋦",loang:"⟬",loarr:"⇽",lobrk:"⟦",LongLeftArrow:"⟵",Longleftarrow:"⟸",longleftarrow:"⟵",LongLeftRightArrow:"⟷",Longleftrightarrow:"⟺",longleftrightarrow:"⟷",longmapsto:"⟼",LongRightArrow:"⟶",Longrightarrow:"⟹",longrightarrow:"⟶",looparrowleft:"↫",looparrowright:"↬",lopar:"⦅",Lopf:"𝕃",lopf:"𝕝",loplus:"⨭",lotimes:"⨴",lowast:"∗",lowbar:"_",LowerLeftArrow:"↙",LowerRightArrow:"↘",loz:"◊",lozenge:"◊",lozf:"⧫",lpar:"(",lparlt:"⦓",lrarr:"⇆",lrcorner:"⌟",lrhar:"⇋",lrhard:"⥭",lrm:"‎",lrtri:"⊿",lsaquo:"‹",Lscr:"ℒ",lscr:"𝓁",Lsh:"↰",lsh:"↰",lsim:"≲",lsime:"⪍",lsimg:"⪏",lsqb:"[",lsquo:"‘",lsquor:"‚",Lstrok:"Ł",lstrok:"ł",Lt:"≪",LT:"<",lt:"<",ltcc:"⪦",ltcir:"⩹",ltdot:"⋖",lthree:"⋋",ltimes:"⋉",ltlarr:"⥶",ltquest:"⩻",ltri:"◃",ltrie:"⊴",ltrif:"◂",ltrPar:"⦖",lurdshar:"⥊",luruhar:"⥦",lvertneqq:"≨︀",lvnE:"≨︀",macr:"¯",male:"♂",malt:"✠",maltese:"✠",Map:"⤅",map:"↦",mapsto:"↦",mapstodown:"↧",mapstoleft:"↤",mapstoup:"↥",marker:"▮",mcomma:"⨩",Mcy:"М",mcy:"м",mdash:"—",mDDot:"∺",measuredangle:"∡",MediumSpace:" ",Mellintrf:"ℳ",Mfr:"𝔐",mfr:"𝔪",mho:"℧",micro:"µ",mid:"∣",midast:"*",midcir:"⫰",middot:"·",minus:"−",minusb:"⊟",minusd:"∸",minusdu:"⨪",MinusPlus:"∓",mlcp:"⫛",mldr:"…",mnplus:"∓",models:"⊧",Mopf:"𝕄",mopf:"𝕞",mp:"∓",Mscr:"ℳ",mscr:"𝓂",mstpos:"∾",Mu:"Μ",mu:"μ",multimap:"⊸",mumap:"⊸",nabla:"∇",Nacute:"Ń",nacute:"ń",nang:"∠⃒",nap:"≉",napE:"⩰̸",napid:"≋̸",napos:"ʼn",napprox:"≉",natur:"♮",natural:"♮",naturals:"ℕ",nbsp:" ",nbump:"≎̸",nbumpe:"≏̸",ncap:"⩃",Ncaron:"Ň",ncaron:"ň",Ncedil:"Ņ",ncedil:"ņ",ncong:"≇",ncongdot:"⩭̸",ncup:"⩂",Ncy:"Н",ncy:"н",ndash:"–",ne:"≠",nearhk:"⤤",neArr:"⇗",nearr:"↗",nearrow:"↗",nedot:"≐̸",NegativeMediumSpace:"​",NegativeThickSpace:"​",NegativeThinSpace:"​",NegativeVeryThinSpace:"​",nequiv:"≢",nesear:"⤨",nesim:"≂̸",NestedGreaterGreater:"≫",NestedLessLess:"≪",NewLine:"\n",nexist:"∄",nexists:"∄",Nfr:"𝔑",nfr:"𝔫",ngE:"≧̸",nge:"≱",ngeq:"≱",ngeqq:"≧̸",ngeqslant:"⩾̸",nges:"⩾̸",nGg:"⋙̸",ngsim:"≵",nGt:"≫⃒",ngt:"≯",ngtr:"≯",nGtv:"≫̸",nhArr:"⇎",nharr:"↮",nhpar:"⫲",ni:"∋",nis:"⋼",nisd:"⋺",niv:"∋",NJcy:"Њ",njcy:"њ",nlArr:"⇍",nlarr:"↚",nldr:"‥",nlE:"≦̸",nle:"≰",nLeftarrow:"⇍",nleftarrow:"↚",nLeftrightarrow:"⇎",nleftrightarrow:"↮",nleq:"≰",nleqq:"≦̸",nleqslant:"⩽̸",nles:"⩽̸",nless:"≮",nLl:"⋘̸",nlsim:"≴",nLt:"≪⃒",nlt:"≮",nltri:"⋪",nltrie:"⋬",nLtv:"≪̸",nmid:"∤",NoBreak:"⁠",NonBreakingSpace:" ",Nopf:"ℕ",nopf:"𝕟",Not:"⫬",not:"¬",NotCongruent:"≢",NotCupCap:"≭",NotDoubleVerticalBar:"∦",NotElement:"∉",NotEqual:"≠",NotEqualTilde:"≂̸",NotExists:"∄",NotGreater:"≯",NotGreaterEqual:"≱",NotGreaterFullEqual:"≧̸",NotGreaterGreater:"≫̸",NotGreaterLess:"≹",NotGreaterSlantEqual:"⩾̸",NotGreaterTilde:"≵",NotHumpDownHump:"≎̸",NotHumpEqual:"≏̸",notin:"∉",notindot:"⋵̸",notinE:"⋹̸",notinva:"∉",notinvb:"⋷",notinvc:"⋶",NotLeftTriangle:"⋪",NotLeftTriangleBar:"⧏̸",NotLeftTriangleEqual:"⋬",NotLess:"≮",NotLessEqual:"≰",NotLessGreater:"≸",NotLessLess:"≪̸",NotLessSlantEqual:"⩽̸",NotLessTilde:"≴",NotNestedGreaterGreater:"⪢̸",NotNestedLessLess:"⪡̸",notni:"∌",notniva:"∌",notnivb:"⋾",notnivc:"⋽",NotPrecedes:"⊀",NotPrecedesEqual:"⪯̸",NotPrecedesSlantEqual:"⋠",NotReverseElement:"∌",NotRightTriangle:"⋫",NotRightTriangleBar:"⧐̸",NotRightTriangleEqual:"⋭",NotSquareSubset:"⊏̸",NotSquareSubsetEqual:"⋢",NotSquareSuperset:"⊐̸",NotSquareSupersetEqual:"⋣",NotSubset:"⊂⃒",NotSubsetEqual:"⊈",NotSucceeds:"⊁",NotSucceedsEqual:"⪰̸",NotSucceedsSlantEqual:"⋡",NotSucceedsTilde:"≿̸",NotSuperset:"⊃⃒",NotSupersetEqual:"⊉",NotTilde:"≁",NotTildeEqual:"≄",NotTildeFullEqual:"≇",NotTildeTilde:"≉",NotVerticalBar:"∤",npar:"∦",nparallel:"∦",nparsl:"⫽⃥",npart:"∂̸",npolint:"⨔",npr:"⊀",nprcue:"⋠",npre:"⪯̸",nprec:"⊀",npreceq:"⪯̸",nrArr:"⇏",nrarr:"↛",nrarrc:"⤳̸",nrarrw:"↝̸",nRightarrow:"⇏",nrightarrow:"↛",nrtri:"⋫",nrtrie:"⋭",nsc:"⊁",nsccue:"⋡",nsce:"⪰̸",Nscr:"𝒩",nscr:"𝓃",nshortmid:"∤",nshortparallel:"∦",nsim:"≁",nsime:"≄",nsimeq:"≄",nsmid:"∤",nspar:"∦",nsqsube:"⋢",nsqsupe:"⋣",nsub:"⊄",nsubE:"⫅̸",nsube:"⊈",nsubset:"⊂⃒",nsubseteq:"⊈",nsubseteqq:"⫅̸",nsucc:"⊁",nsucceq:"⪰̸",nsup:"⊅",nsupE:"⫆̸",nsupe:"⊉",nsupset:"⊃⃒",nsupseteq:"⊉",nsupseteqq:"⫆̸",ntgl:"≹",Ntilde:"Ñ",ntilde:"ñ",ntlg:"≸",ntriangleleft:"⋪",ntrianglelefteq:"⋬",ntriangleright:"⋫",ntrianglerighteq:"⋭",Nu:"Ν",nu:"ν",num:"#",numero:"№",numsp:" ",nvap:"≍⃒",nVDash:"⊯",nVdash:"⊮",nvDash:"⊭",nvdash:"⊬",nvge:"≥⃒",nvgt:">⃒",nvHarr:"⤄",nvinfin:"⧞",nvlArr:"⤂",nvle:"≤⃒",nvlt:"<⃒",nvltrie:"⊴⃒",nvrArr:"⤃",nvrtrie:"⊵⃒",nvsim:"∼⃒",nwarhk:"⤣",nwArr:"⇖",nwarr:"↖",nwarrow:"↖",nwnear:"⤧",Oacute:"Ó",oacute:"ó",oast:"⊛",ocir:"⊚",Ocirc:"Ô",ocirc:"ô",Ocy:"О",ocy:"о",odash:"⊝",Odblac:"Ő",odblac:"ő",odiv:"⨸",odot:"⊙",odsold:"⦼",OElig:"Œ",oelig:"œ",ofcir:"⦿",Ofr:"𝔒",ofr:"𝔬",ogon:"˛",Ograve:"Ò",ograve:"ò",ogt:"⧁",ohbar:"⦵",ohm:"Ω",oint:"∮",olarr:"↺",olcir:"⦾",olcross:"⦻",oline:"‾",olt:"⧀",Omacr:"Ō",omacr:"ō",Omega:"Ω",omega:"ω",Omicron:"Ο",omicron:"ο",omid:"⦶",ominus:"⊖",Oopf:"𝕆",oopf:"𝕠",opar:"⦷",OpenCurlyDoubleQuote:"“",OpenCurlyQuote:"‘",operp:"⦹",oplus:"⊕",Or:"⩔",or:"∨",orarr:"↻",ord:"⩝",order:"ℴ",orderof:"ℴ",ordf:"ª",ordm:"º",origof:"⊶",oror:"⩖",orslope:"⩗",orv:"⩛",oS:"Ⓢ",Oscr:"𝒪",oscr:"ℴ",Oslash:"Ø",oslash:"ø",osol:"⊘",Otilde:"Õ",otilde:"õ",Otimes:"⨷",otimes:"⊗",otimesas:"⨶",Ouml:"Ö",ouml:"ö",ovbar:"⌽",OverBar:"‾",OverBrace:"⏞",OverBracket:"⎴",OverParenthesis:"⏜",par:"∥",para:"¶",parallel:"∥",parsim:"⫳",parsl:"⫽",part:"∂",PartialD:"∂",Pcy:"П",pcy:"п",percnt:"%",period:".",permil:"‰",perp:"⊥",pertenk:"‱",Pfr:"𝔓",pfr:"𝔭",Phi:"Φ",phi:"φ",phiv:"ϕ",phmmat:"ℳ",phone:"☎",Pi:"Π",pi:"π",pitchfork:"⋔",piv:"ϖ",planck:"ℏ",planckh:"ℎ",plankv:"ℏ",plus:"+",plusacir:"⨣",plusb:"⊞",pluscir:"⨢",plusdo:"∔",plusdu:"⨥",pluse:"⩲",PlusMinus:"±",plusmn:"±",plussim:"⨦",plustwo:"⨧",pm:"±",Poincareplane:"ℌ",pointint:"⨕",Popf:"ℙ",popf:"𝕡",pound:"£",Pr:"⪻",pr:"≺",prap:"⪷",prcue:"≼",prE:"⪳",pre:"⪯",prec:"≺",precapprox:"⪷",preccurlyeq:"≼",Precedes:"≺",PrecedesEqual:"⪯",PrecedesSlantEqual:"≼",PrecedesTilde:"≾",preceq:"⪯",precnapprox:"⪹",precneqq:"⪵",precnsim:"⋨",precsim:"≾",Prime:"″",prime:"′",primes:"ℙ",prnap:"⪹",prnE:"⪵",prnsim:"⋨",prod:"∏",Product:"∏",profalar:"⌮",profline:"⌒",profsurf:"⌓",prop:"∝",Proportion:"∷",Proportional:"∝",propto:"∝",prsim:"≾",prurel:"⊰",Pscr:"𝒫",pscr:"𝓅",Psi:"Ψ",psi:"ψ",puncsp:" ",Qfr:"𝔔",qfr:"𝔮",qint:"⨌",Qopf:"ℚ",qopf:"𝕢",qprime:"⁗",Qscr:"𝒬",qscr:"𝓆",quaternions:"ℍ",quatint:"⨖",quest:"?",questeq:"≟",QUOT:'"',quot:'"',rAarr:"⇛",race:"∽̱",Racute:"Ŕ",racute:"ŕ",radic:"√",raemptyv:"⦳",Rang:"⟫",rang:"⟩",rangd:"⦒",range:"⦥",rangle:"⟩",raquo:"»",Rarr:"↠",rArr:"⇒",rarr:"→",rarrap:"⥵",rarrb:"⇥",rarrbfs:"⤠",rarrc:"⤳",rarrfs:"⤞",rarrhk:"↪",rarrlp:"↬",rarrpl:"⥅",rarrsim:"⥴",Rarrtl:"⤖",rarrtl:"↣",rarrw:"↝",rAtail:"⤜",ratail:"⤚",ratio:"∶",rationals:"ℚ",RBarr:"⤐",rBarr:"⤏",rbarr:"⤍",rbbrk:"❳",rbrace:"}",rbrack:"]",rbrke:"⦌",rbrksld:"⦎",rbrkslu:"⦐",Rcaron:"Ř",rcaron:"ř",Rcedil:"Ŗ",rcedil:"ŗ",rceil:"⌉",rcub:"}",Rcy:"Р",rcy:"р",rdca:"⤷",rdldhar:"⥩",rdquo:"”",rdquor:"”",rdsh:"↳",Re:"ℜ",real:"ℜ",realine:"ℛ",realpart:"ℜ",reals:"ℝ",rect:"▭",REG:"®",reg:"®",ReverseElement:"∋",ReverseEquilibrium:"⇋",ReverseUpEquilibrium:"⥯",rfisht:"⥽",rfloor:"⌋",Rfr:"ℜ",rfr:"𝔯",rHar:"⥤",rhard:"⇁",rharu:"⇀",rharul:"⥬",Rho:"Ρ",rho:"ρ",rhov:"ϱ",RightAngleBracket:"⟩",RightArrow:"→",Rightarrow:"⇒",rightarrow:"→",RightArrowBar:"⇥",RightArrowLeftArrow:"⇄",rightarrowtail:"↣",RightCeiling:"⌉",RightDoubleBracket:"⟧",RightDownTeeVector:"⥝",RightDownVector:"⇂",RightDownVectorBar:"⥕",RightFloor:"⌋",rightharpoondown:"⇁",rightharpoonup:"⇀",rightleftarrows:"⇄",rightleftharpoons:"⇌",rightrightarrows:"⇉",rightsquigarrow:"↝",RightTee:"⊢",RightTeeArrow:"↦",RightTeeVector:"⥛",rightthreetimes:"⋌",RightTriangle:"⊳",RightTriangleBar:"⧐",RightTriangleEqual:"⊵",RightUpDownVector:"⥏",RightUpTeeVector:"⥜",RightUpVector:"↾",RightUpVectorBar:"⥔",RightVector:"⇀",RightVectorBar:"⥓",ring:"˚",risingdotseq:"≓",rlarr:"⇄",rlhar:"⇌",rlm:"‏",rmoust:"⎱",rmoustache:"⎱",rnmid:"⫮",roang:"⟭",roarr:"⇾",robrk:"⟧",ropar:"⦆",Ropf:"ℝ",ropf:"𝕣",roplus:"⨮",rotimes:"⨵",RoundImplies:"⥰",rpar:")",rpargt:"⦔",rppolint:"⨒",rrarr:"⇉",Rrightarrow:"⇛",rsaquo:"›",Rscr:"ℛ",rscr:"𝓇",Rsh:"↱",rsh:"↱",rsqb:"]",rsquo:"’",rsquor:"’",rthree:"⋌",rtimes:"⋊",rtri:"▹",rtrie:"⊵",rtrif:"▸",rtriltri:"⧎",RuleDelayed:"⧴",ruluhar:"⥨",rx:"℞",Sacute:"Ś",sacute:"ś",sbquo:"‚",Sc:"⪼",sc:"≻",scap:"⪸",Scaron:"Š",scaron:"š",sccue:"≽",scE:"⪴",sce:"⪰",Scedil:"Ş",scedil:"ş",Scirc:"Ŝ",scirc:"ŝ",scnap:"⪺",scnE:"⪶",scnsim:"⋩",scpolint:"⨓",scsim:"≿",Scy:"С",scy:"с",sdot:"⋅",sdotb:"⊡",sdote:"⩦",searhk:"⤥",seArr:"⇘",searr:"↘",searrow:"↘",sect:"§",semi:";",seswar:"⤩",setminus:"∖",setmn:"∖",sext:"✶",Sfr:"𝔖",sfr:"𝔰",sfrown:"⌢",sharp:"♯",SHCHcy:"Щ",shchcy:"щ",SHcy:"Ш",shcy:"ш",ShortDownArrow:"↓",ShortLeftArrow:"←",shortmid:"∣",shortparallel:"∥",ShortRightArrow:"→",ShortUpArrow:"↑",shy:"­",Sigma:"Σ",sigma:"σ",sigmaf:"ς",sigmav:"ς",sim:"∼",simdot:"⩪",sime:"≃",simeq:"≃",simg:"⪞",simgE:"⪠",siml:"⪝",simlE:"⪟",simne:"≆",simplus:"⨤",simrarr:"⥲",slarr:"←",SmallCircle:"∘",smallsetminus:"∖",smashp:"⨳",smeparsl:"⧤",smid:"∣",smile:"⌣",smt:"⪪",smte:"⪬",smtes:"⪬︀",SOFTcy:"Ь",softcy:"ь",sol:"/",solb:"⧄",solbar:"⌿",Sopf:"𝕊",sopf:"𝕤",spades:"♠",spadesuit:"♠",spar:"∥",sqcap:"⊓",sqcaps:"⊓︀",sqcup:"⊔",sqcups:"⊔︀",Sqrt:"√",sqsub:"⊏",sqsube:"⊑",sqsubset:"⊏",sqsubseteq:"⊑",sqsup:"⊐",sqsupe:"⊒",sqsupset:"⊐",sqsupseteq:"⊒",squ:"□",Square:"□",square:"□",SquareIntersection:"⊓",SquareSubset:"⊏",SquareSubsetEqual:"⊑",SquareSuperset:"⊐",SquareSupersetEqual:"⊒",SquareUnion:"⊔",squarf:"▪",squf:"▪",srarr:"→",Sscr:"𝒮",sscr:"𝓈",ssetmn:"∖",ssmile:"⌣",sstarf:"⋆",Star:"⋆",star:"☆",starf:"★",straightepsilon:"ϵ",straightphi:"ϕ",strns:"¯",Sub:"⋐",sub:"⊂",subdot:"⪽",subE:"⫅",sube:"⊆",subedot:"⫃",submult:"⫁",subnE:"⫋",subne:"⊊",subplus:"⪿",subrarr:"⥹",Subset:"⋐",subset:"⊂",subseteq:"⊆",subseteqq:"⫅",SubsetEqual:"⊆",subsetneq:"⊊",subsetneqq:"⫋",subsim:"⫇",subsub:"⫕",subsup:"⫓",succ:"≻",succapprox:"⪸",succcurlyeq:"≽",Succeeds:"≻",SucceedsEqual:"⪰",SucceedsSlantEqual:"≽",SucceedsTilde:"≿",succeq:"⪰",succnapprox:"⪺",succneqq:"⪶",succnsim:"⋩",succsim:"≿",SuchThat:"∋",Sum:"∑",sum:"∑",sung:"♪",Sup:"⋑",sup:"⊃",sup1:"¹",sup2:"²",sup3:"³",supdot:"⪾",supdsub:"⫘",supE:"⫆",supe:"⊇",supedot:"⫄",Superset:"⊃",SupersetEqual:"⊇",suphsol:"⟉",suphsub:"⫗",suplarr:"⥻",supmult:"⫂",supnE:"⫌",supne:"⊋",supplus:"⫀",Supset:"⋑",supset:"⊃",supseteq:"⊇",supseteqq:"⫆",supsetneq:"⊋",supsetneqq:"⫌",supsim:"⫈",supsub:"⫔",supsup:"⫖",swarhk:"⤦",swArr:"⇙",swarr:"↙",swarrow:"↙",swnwar:"⤪",szlig:"ß",Tab:"
133	",target:"⌖",Tau:"Τ",tau:"τ",tbrk:"⎴",Tcaron:"Ť",tcaron:"ť",Tcedil:"Ţ",tcedil:"ţ",Tcy:"Т",tcy:"т",tdot:"⃛",telrec:"⌕",Tfr:"𝔗",tfr:"𝔱",there4:"∴",Therefore:"∴",therefore:"∴",Theta:"Θ",theta:"θ",thetasym:"ϑ",thetav:"ϑ",thickapprox:"≈",thicksim:"∼",ThickSpace:"  ",thinsp:" ",ThinSpace:" ",thkap:"≈",thksim:"∼",THORN:"Þ",thorn:"þ",Tilde:"∼",tilde:"˜",TildeEqual:"≃",TildeFullEqual:"≅",TildeTilde:"≈",times:"×",timesb:"⊠",timesbar:"⨱",timesd:"⨰",tint:"∭",toea:"⤨",top:"⊤",topbot:"⌶",topcir:"⫱",Topf:"𝕋",topf:"𝕥",topfork:"⫚",tosa:"⤩",tprime:"‴",TRADE:"™",trade:"™",triangle:"▵",triangledown:"▿",triangleleft:"◃",trianglelefteq:"⊴",triangleq:"≜",triangleright:"▹",trianglerighteq:"⊵",tridot:"◬",trie:"≜",triminus:"⨺",TripleDot:"⃛",triplus:"⨹",trisb:"⧍",tritime:"⨻",trpezium:"⏢",Tscr:"𝒯",tscr:"𝓉",TScy:"Ц",tscy:"ц",TSHcy:"Ћ",tshcy:"ћ",Tstrok:"Ŧ",tstrok:"ŧ",twixt:"≬",twoheadleftarrow:"↞",twoheadrightarrow:"↠",Uacute:"Ú",uacute:"ú",Uarr:"↟",uArr:"⇑",uarr:"↑",Uarrocir:"⥉",Ubrcy:"Ў",ubrcy:"ў",Ubreve:"Ŭ",ubreve:"ŭ",Ucirc:"Û",ucirc:"û",Ucy:"У",ucy:"у",udarr:"⇅",Udblac:"Ű",udblac:"ű",udhar:"⥮",ufisht:"⥾",Ufr:"𝔘",ufr:"𝔲",Ugrave:"Ù",ugrave:"ù",uHar:"⥣",uharl:"↿",uharr:"↾",uhblk:"▀",ulcorn:"⌜",ulcorner:"⌜",ulcrop:"⌏",ultri:"◸",Umacr:"Ū",umacr:"ū",uml:"¨",UnderBar:"_",UnderBrace:"⏟",UnderBracket:"⎵",UnderParenthesis:"⏝",Union:"⋃",UnionPlus:"⊎",Uogon:"Ų",uogon:"ų",Uopf:"𝕌",uopf:"𝕦",UpArrow:"↑",Uparrow:"⇑",uparrow:"↑",UpArrowBar:"⤒",UpArrowDownArrow:"⇅",UpDownArrow:"↕",Updownarrow:"⇕",updownarrow:"↕",UpEquilibrium:"⥮",upharpoonleft:"↿",upharpoonright:"↾",uplus:"⊎",UpperLeftArrow:"↖",UpperRightArrow:"↗",Upsi:"ϒ",upsi:"υ",upsih:"ϒ",Upsilon:"Υ",upsilon:"υ",UpTee:"⊥",UpTeeArrow:"↥",upuparrows:"⇈",urcorn:"⌝",urcorner:"⌝",urcrop:"⌎",Uring:"Ů",uring:"ů",urtri:"◹",Uscr:"𝒰",uscr:"𝓊",utdot:"⋰",Utilde:"Ũ",utilde:"ũ",utri:"▵",utrif:"▴",uuarr:"⇈",Uuml:"Ü",uuml:"ü",uwangle:"⦧",vangrt:"⦜",varepsilon:"ϵ",varkappa:"ϰ",varnothing:"∅",varphi:"ϕ",varpi:"ϖ",varpropto:"∝",vArr:"⇕",varr:"↕",varrho:"ϱ",varsigma:"ς",varsubsetneq:"⊊︀",varsubsetneqq:"⫋︀",varsupsetneq:"⊋︀",varsupsetneqq:"⫌︀",vartheta:"ϑ",vartriangleleft:"⊲",vartriangleright:"⊳",Vbar:"⫫",vBar:"⫨",vBarv:"⫩",Vcy:"В",vcy:"в",VDash:"⊫",Vdash:"⊩",vDash:"⊨",vdash:"⊢",Vdashl:"⫦",Vee:"⋁",vee:"∨",veebar:"⊻",veeeq:"≚",vellip:"⋮",Verbar:"‖",verbar:"|",Vert:"‖",vert:"|",VerticalBar:"∣",VerticalLine:"|",VerticalSeparator:"❘",VerticalTilde:"≀",VeryThinSpace:" ",Vfr:"𝔙",vfr:"𝔳",vltri:"⊲",vnsub:"⊂⃒",vnsup:"⊃⃒",Vopf:"𝕍",vopf:"𝕧",vprop:"∝",vrtri:"⊳",Vscr:"𝒱",vscr:"𝓋",vsubnE:"⫋︀",vsubne:"⊊︀",vsupnE:"⫌︀",vsupne:"⊋︀",Vvdash:"⊪",vzigzag:"⦚",Wcirc:"Ŵ",wcirc:"ŵ",wedbar:"⩟",Wedge:"⋀",wedge:"∧",wedgeq:"≙",weierp:"℘",Wfr:"𝔚",wfr:"𝔴",Wopf:"𝕎",wopf:"𝕨",wp:"℘",wr:"≀",wreath:"≀",Wscr:"𝒲",wscr:"𝓌",xcap:"⋂",xcirc:"◯",xcup:"⋃",xdtri:"▽",Xfr:"𝔛",xfr:"𝔵",xhArr:"⟺",xharr:"⟷",Xi:"Ξ",xi:"ξ",xlArr:"⟸",xlarr:"⟵",xmap:"⟼",xnis:"⋻",xodot:"⨀",Xopf:"𝕏",xopf:"𝕩",xoplus:"⨁",xotime:"⨂",xrArr:"⟹",xrarr:"⟶",Xscr:"𝒳",xscr:"𝓍",xsqcup:"⨆",xuplus:"⨄",xutri:"△",xvee:"⋁",xwedge:"⋀",Yacute:"Ý",yacute:"ý",YAcy:"Я",yacy:"я",Ycirc:"Ŷ",ycirc:"ŷ",Ycy:"Ы",ycy:"ы",yen:"¥",Yfr:"𝔜",yfr:"𝔶",YIcy:"Ї",yicy:"ї",Yopf:"𝕐",yopf:"𝕪",Yscr:"𝒴",yscr:"𝓎",YUcy:"Ю",yucy:"ю",Yuml:"Ÿ",yuml:"ÿ",Zacute:"Ź",zacute:"ź",Zcaron:"Ž",zcaron:"ž",Zcy:"З",zcy:"з",Zdot:"Ż",zdot:"ż",zeetrf:"ℨ",ZeroWidthSpace:"​",Zeta:"Ζ",zeta:"ζ",Zfr:"ℨ",zfr:"𝔷",ZHcy:"Ж",zhcy:"ж",zigrarr:"⇝",Zopf:"ℤ",zopf:"𝕫",Zscr:"𝒵",zscr:"𝓏",zwj:"‍",zwnj:"‌"}),r.entityMap=r.HTML_ENTITIES},994100,(e,t,r)=>{var i=e.r(607598).NAMESPACE,n=/[A-Z_a-z\xC0-\xD6\xD8-\xF6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,a=RegExp("[\\-\\.0-9"+n.source.slice(1,-1)+"\\u00B7\\u0300-\\u036F\\u203F-\\u2040]"),s=RegExp("^"+n.source+a.source+"*(?::"+n.source+a.source+"*)?$");function o(e,t){this.message=e,this.locator=t,Error.captureStackTrace&&Error.captureStackTrace(this,o)}function l(){}function c(e,t){return t.lineNumber=e.lineNumber,t.columnNumber=e.columnNumber,t}function u(e,t,r){for(var n=e.tagName,a=null,s=e.length;s--;){var o=e[s],l=o.qName,c=o.value,u=l.indexOf(":");if(u>0)var p=o.prefix=l.slice(0,u),h=l.slice(u+1),f="xmlns"===p&&h;else h=l,p=null,f="xmlns"===l&&"";o.localName=h,!1!==f&&(null==a&&(a={},d(r,r={}
133)),r[f]=a[f]=c,o.uri=i.XMLNS,t.startPrefixMapping(f,c))}for(var s=e.length;s--;){var p=(o=e[s]).prefix;p&&("xml"===p&&(o.uri=i.XML),"xmlns"!==p&&(o.uri=r[p||""]))}var u=n.indexOf(":");u>0?(p=e.prefix=n.slice(0,u),h=e.localName=n.slice(u+1)):(p=null,h=e.localName=n);var g=e.uri=r[p||""];if(t.startElement(g,h,n,e),!e.closed)return e.currentNSMap=r,e.localNSMap=a,!0;if(t.endElement(g,h,n),a)for(p in a)Object.prototype.hasOwnProperty.call(a,p)&&t.endPrefixMapping(p)}function d(e,t){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])}function p(){this.attributeNames={}}o.prototype=Error(),o.prototype.name=o.name,l.prototype={parse:function(e,t,r){var n=this.domBuilder;n.startDocument(),d(t,t={}),function(e,t,r,n,a){function s(e){var t,i=e.slice(1,-1);return Object.hasOwnProperty.call(r,i)?r[i]:"#"===i.charAt(0)?(t=parseInt(i.substr(1).replace("x","0x")))>65535?String.fromCharCode(55296+((t-=65536)>>10),56320+(1023&t)):String.fromCharCode(t):(a.error("entity not found:"+e),e)}function l(t){if(t>v){var r=e.substring(v,t).replace(/&#?\w+;/g,s);m&&d(v),n.characters(r,0,t-v),v=t}}function d(t,r){for(;t>=f&&(r=g.exec(e));)f=(h=r.index)+r[0].length,m.lineNumber++;m.columnNumber=t-h+1}for(var h=0,f=0,g=/.*(?:\r\n?|\n)|.*$/g,m=n.locator,y=[{currentNSMap:t}],b={},v=0;;){try{var x=e.indexOf("<",v);if(x<0){if(!e.substr(v).match(/^\s*$/)){var _=n.doc,w=_.createTextNode(e.substr(v));_.appendChild(w),n.currentElement=w}return}switch(x>v&&l(x),e.charAt(x+1)){case"/":var T=e.indexOf(">",x+3),S=e.substring(x+2,T).replace(/[ \t\n\r]+$/g,""),C=y.pop();T<0?(S=e.substring(x+2).replace(/[\s<].*/,""),a.error("end tag name: "+S+" is not complete:"+C.tagName),T=x+1+S.length):S.match(/\s</)&&(S=S.replace(/[\s<].*/,""),a.error("end tag name: "+S+" maybe not complete"),T=x+1+S.length);var E=C.localNSMap,k=C.tagName==S;if(k||C.tagName&&C.tagName.toLowerCase()==S.toLowerCase()){if(n.endElement(C.uri,C.localName,S),E)for(var N in E)Object.prototype.hasOwnProperty.call(E,N)&&n.endPrefixMapping(N);k||a.fatalError("end tag name: "+S+" is not match the current start tagName:"+C.tagName)}else y.push(C);T++;break;case"?":m&&d(x),T=function(e,t,r){var i=e.indexOf("?>",t);if(i){var n=e.substring(t,i).match(/^<\?(\S*)\s*([\s\S]*?)$/);if(n)return n[0].length,r.processingInstruction(n[1],n[2]),i+2}return -1}(e,x,n);break;case"!":m&&d(x),T=function(e,t,r,i){if("-"===e.charAt(t+2)){if("-"===e.charAt(t+3)){var n=e.indexOf("-->",t+4);if(n>t)return r.comment(e,t+4,n-t-4),n+3;i.error("Unclosed comment")}}else{if("CDATA["==e.substr(t+3,6)){var n=e.indexOf("]]>",t+9);return r.startCDATA(),r.characters(e,t+9,n-t-9),r.endCDATA(),n+3}var a=function(e,t){var r,i=[],n=/'[^']+'|"[^"]+"|[^\s<>\/=]+=?|(\/?\s*>|<)/g;for(n.lastIndex=t,n.exec(e);r=n.exec(e);)if(i.push(r),r[1])return i}(e,t),s=a.length;if(s>1&&/!doctype/i.test(a[0][0])){var o=a[1][0],l=!1,c=!1;s>3&&(/^public$/i.test(a[2][0])?(l=a[3][0],c=s>4&&a[4][0]):/^system$/i.test(a[2][0])&&(c=a[3][0]));var u=a[s-1];return r.startDTD(o,l,c),r.endDTD(),u.index+u[0].length}}return -1}(e,x,n,a);break;default:m&&d(x);var I=new p,A=y[y.length-1].currentNSMap,T=function(e,t,r,n,a,s){function o(e,t,i){r.attributeNames.hasOwnProperty(e)&&s.fatalError("Attribute "+e+" redefined"),r.addValue(e,t.replace(/[\t\n\r]/g," ").replace(/&#?\w+;/g,a),i)}for(var l,c,u=++t,d=0;;){var p=e.charAt(u);switch(p){case"=":if(1===d)l=e.slice(t,u),d=3;else if(2===d)d=3;else throw Error("attribute equal must after attrName");break;case"'":case'"':if(3===d||1===d)if(1===d&&(s.warning('attribute value must after "="'),l=e.slice(t,u)),t=u+1,(u=e.indexOf(p,t))>0)o(l,c=e.slice(t,u),t-1),d=5;else throw Error("attribute value no end '"+p+"' match");else if(4==d)o(l,c=e.slice(t,u),t),s.warning('attribute "'+l+'" missed start quot('+p+")!!"),t=u+1,d=5;else throw Error('attribute value must after "="');break;case"/":switch(d){case 0:r.setTagName(e.slice(t,u));case 5:case 6:case 7:d=7,r.closed=!0;case 4:case 1:break;case 2:r.closed=!0;break;default:throw Error("attribute invalid close char('/')")}break;case"":return s.error("unexpected end of input"),0==d&&r.setTagName(e.slice(t,u)),u;case">":switch(d){case 0:r.setTagName(e.slice(t,u));
vendor: 5,779 bytes, line 133
133case 5:case 6:case 7:break;case 4:case 1:"/"===(c=e.slice(t,u)).slice(-1)&&(r.closed=!0,c=c.slice(0,-1));case 2:2===d&&(c=l),4==d?(s.warning('attribute "'+c+'" missed quot(")!'),o(l,c,t)):(i.isHTML(n[""])&&c.match(/^(?:disabled|checked|selected)$/i)||s.warning('attribute "'+c+'" missed value!! "'+c+'" instead!!'),o(c,c,t));break;case 3:throw Error("attribute value missed!!")}return u;case"€":p=" ";default:if(p<=" ")switch(d){case 0:r.setTagName(e.slice(t,u)),d=6;break;case 1:l=e.slice(t,u),d=2;break;case 4:var c=e.slice(t,u);s.warning('attribute "'+c+'" missed quot(")!!'),o(l,c,t);case 5:d=6}else switch(d){case 2:r.tagName,i.isHTML(n[""])&&l.match(/^(?:disabled|checked|selected)$/i)||s.warning('attribute "'+l+'" missed value!! "'+l+'" instead2!!'),o(l,l,t),t=u,d=1;break;case 5:s.warning('attribute space is required"'+l+'"!!');case 6:d=1,t=u;break;case 3:d=4,t=u;break;case 7:throw Error("elements closed character '/' and '>' must be connected to")}}u++}}(e,x,I,A,s,a),j=I.length;if(!I.closed&&function(e,t,r,i){var n=i[r];return null==n&&((n=e.lastIndexOf("</"+r+">"))<t&&(n=e.lastIndexOf("</"+r)),i[r]=n),n<t}(e,T,I.tagName,b)&&(I.closed=!0,r.nbsp||a.warning("unclosed xml attribute")),m&&j){for(var P=c(m,{}),O=0;O<j;O++){var L=I[O];d(L.offset),L.locator=c(m,{})}n.locator=P,u(I,n,A)&&y.push(I),n.locator=m}else u(I,n,A)&&y.push(I);i.isHTML(I.uri)&&!I.closed?T=function(e,t,r,i,n){if(/^(?:script|textarea)$/i.test(r)){var a=e.indexOf("</"+r+">",t),s=e.substring(t+1,a);if(/[&<]/.test(s))return/^script$/i.test(r)||(s=s.replace(/&#?\w+;/g,i)),n.characters(s,0,s.length),a}return t+1}(e,T,I.tagName,s,n):T++}}catch(e){if(e instanceof o)throw e;a.error("element parse error: "+e),T=-1}T>v?v=T:l(Math.max(x,v)+1)}}(e,t,r,n,this.errorHandler),n.endDocument()}},p.prototype={setTagName:function(e){if(!s.test(e))throw Error("invalid tagName:"+e);this.tagName=e},addValue:function(e,t,r){if(!s.test(e))throw Error("invalid attribute:"+e);this.attributeNames[e]=this.length,this[this.length++]={qName:e,value:t,offset:r}},length:0,getLocalName:function(e){return this[e].localName},getLocator:function(e){return this[e].locator},getQName:function(e){return this[e].qName},getURI:function(e){return this[e].uri},getValue:function(e){return this[e].value}},r.XMLReader=l,r.ParseError=o},197856,(e,t,r)=>{var i=e.r(607598),n=e.r(949684),a=e.r(353393),s=e.r(994100),o=n.DOMImplementation,l=i.NAMESPACE,c=s.ParseError,u=s.XMLReader;function d(e){return e.replace(/\r[\n\u0085]/g,"\n").replace(/[\r\u0085\u2028]/g,"\n")}function p(e){this.options=e||{locator:{}}}function h(){this.cdata=!1}function f(e,t){t.lineNumber=e.lineNumber,t.columnNumber=e.columnNumber}function g(e){if(e)return"\n@"+(e.systemId||"")+"#[line:"+e.lineNumber+",col:"+e.columnNumber+"]"}function m(e,t,r){return"string"==typeof e?e.substr(t,r):e.length>=t+r||t?new java.lang.String(e,t,r)+"":e}function y(e,t){e.currentElement?e.currentElement.appendChild(t):e.doc.appendChild(t)}p.prototype.parseFromString=function(e,t){var r=this.options,i=new u,n=r.domBuilder||new h,s=r.errorHandler,o=r.locator,c=r.xmlns||{},p=/\/x?html?$/.test(t),f=p?a.HTML_ENTITIES:a.XML_ENTITIES;o&&n.setDocumentLocator(o),i.errorHandler=function(e,t,r){if(!e){if(t instanceof h)return t;e=t}var i={},n=e instanceof Function;function a(t){var a=e[t];!a&&n&&(a=2==e.length?function(r){e(t,r)}:e),i[t]=a&&function(e){a("[xmldom "+t+"]	"+e+g(r))}||function(){}}return r=r||{},a("warning"),a("error"),a("fatalError"),i}(s,n,o),i.domBuilder=r.domBuilder||n,p&&(c[""]=l.HTML),c.xml=c.xml||l.XML;var m=r.normalizeLineEndings||d;return e&&"string"==typeof e?i.parse(m(e),c,f):i.errorHandler.error("invalid doc source"),n.doc},h.prototype={startDocument:function(){this.doc=new o().createDocument(null,null,null),this.locator&&(this.doc.documentURI=this.locator.systemId)},startElement:function(e,t,r,i){var n=this.doc,a=n.createElementNS(e,r||t),s=i.length;y(this,a),this.currentElement=a,this.locator&&f(this.locator,a);for(var o=0;o<s;o++){var e=i.getURI(o),l=i.getValue(o),r=i.getQName(o),c=n.createAttributeNS(e,r);this.locator&&f(i.getLocator(o),c),c.value=c.nodeValue=l,a.setAttributeNode(c)}},endElement:function(e,t,r){var i=this.currentElement;i.tagName,this.currentElement=i.parentNode},startPrefixMapping:function(e,t){},endPrefixMapping:function(e){},processingInstruction:function(e,t){var r=this.doc.createProcessingInstruction(e,t);this.locator&&f(this.locator,r),y(this,r)},ignorableWhitespace:function(e,t,r){},characters:function(e,t,r){if(e=m.apply(this,arguments)){if(this.cdata)var i=this.doc.createCDATASection(e);else var i=this.doc.createTextNode(e);this.currentElement?this.currentElement.appendChild(i):/^\s*$/.test(e)&&this.doc.appendChild(i),this.locator&&f(this.locator,i)}},skippedEntity:function(e){},endDocument:function(){this.doc.normalize()},setDocumentLocator:function(e){(this.locator=e)&&(e.lineNumber=0)},comment:function(e,t,r){e=m.apply(this,arguments);var i=this.doc.createComment(e);this.locator&&f(this.locator,i),y(this,i)},startCDATA:function(){this.cdata=!0},endCDATA:function(){this.cdata=!1},startDTD:function(e,t,r){var i=this.doc.implementation;if(i&&i.createDocumentType){var n=i.createDocumentType(e,t,r);this.locator&&f(this.locator,n),y(this,n),this.doc.doctype=n}},warning:function(e){console.warn("[xmldom warning]	"+e,g(this.locator))},error:function(e){console.error("[xmldom error]	"+e,g(this.locator))},fatalError:function(e){throw new c(e,this.locator)}},"endDTD,startEntity,endEntity,attributeDecl,elementDecl,externalEntityDecl,internalEntityDecl,resolveEntity,getExternalSubset,notationDecl,unparsedEntityDecl".replace(/\w+/g,function(e){h.prototype[e]=function(){return null}}),r.__DOMHandler=h,r.normalizeLineEndings=d,r.DOMParser=p},519204,(e,t,r)=>{var i=e.r(949684);
133r.DOMImplementation=i.DOMImplementation,r.XMLSerializer=i.XMLSerializer,r.DOMParser=e.r(197856).DOMParser},903342,(e,t,r)=>{t.exports={getUint64:function(e){var t,r=new DataView(e.buffer,e.byteOffset,e.byteLength);return r.getBigUint64?(t=r.getBigUint64(0))<Number.MAX_SAFE_INTEGER?Number(t):t:0x100000000*r.getUint32(0)+r.getUint32(4)},MAX_UINT32:0x100000000}},722277,(e,t,r)=>{var i=e.r(903342).getUint64;t.exports=function(e){var t=new DataView(e.buffer,e.byteOffset,e.byteLength),r={version:e[0],flags:new Uint8Array(e.subarray(1,4)),references:[],referenceId:t.getUint32(4),timescale:t.getUint32(8)},n=12;0===r.version?(r.earliestPresentationTime=t.getUint32(n),r.firstOffset=t.getUint32(n+4),n+=8):(r.earliestPresentationTime=i(e.subarray(n)),r.firstOffset=i(e.subarray(n+8)),n+=16),n+=2;var a=t.getUint16(n);for(n+=2;a>0;n+=12,a--)r.references.push({referenceType:(128&e[n])>>>7,referencedSize:0x7fffffff&t.getUint32(n),subsegmentDuration:t.getUint32(n+4),startsWithSap:!!(128&e[n+8]),sapType:(112&e[n+8])>>>4,sapDeltaTime:0xfffffff&t.getUint32(n+8)});return r}},98124,(e,t,r)=>{var i,n,a,s;i=function(e){return 9e4*e},n=function(e,t){return e*t},a=function(e){return e/9e4},t.exports={ONE_SECOND_IN_TS:9e4,secondsToVideoTs:i,secondsToAudioTs:n,videoTsToSeconds:a,audioTsToSeconds:s=function(e,t){return e/t},audioTsToVideoTs:function(e,t){return i(s(e,t))},videoTsToAudioTs:function(e,t){return n(a(e),t)},metadataTsToSeconds:function(e,t,r){return a(r?e:e-t)}}},815451,e=>{"use strict";let t,r,i,n,a,s;var o,l,c,u=e.i(843476),d=e.i(271645),p=e.i(770703),h=e.i(325273),f=e.i(729265),g=e.i(53618),m=e.i(810755);function y(){return(y=Object.assign.bind()).apply(null,arguments)}var b="https://example.com";let v=function(e,t){if(/^[a-z]+:/i.test(t))return t;/^data:/.test(e)&&(e=h.default.location&&h.default.location.href||"");var r=/^\/\//.test(e),i=!h.default.location&&!/\/\//i.test(e),n=new URL(t,e=new h.default.URL(e,h.default.location||b));return i?n.href.slice(b.length):r?n.href.slice(n.protocol.length):n.href};var x=function(){function e(){this.listeners={}}var t=e.prototype;return t.on=function(e,t){this.listeners[e]||(this.listeners[e]=[]),this.listeners[e].push(t)},t.off=function(e,t){if(!this.listeners[e])return!1;var r=this.listeners[e].indexOf(t);return this.listeners[e]=this.listeners[e].slice(0),this.listeners[e].splice(r,1),r>-1},t.trigger=function(e){var t=this.listeners[e];if(t)if(2==arguments.length)for(var r=t.length,i=0;i<r;++i)t[i].call(this,arguments[1]);else for(var n=Array.prototype.slice.call(arguments,1),a=t.length,s=0;s<a;++s)t[s].apply(this,n)},t.dispose=function(){this.listeners={}},t.pipe=function(e){this.on("data",function(t){e.push(t)})},e}(),_=e.i(467034);function w(e){for(var t=h.default.atob?h.default.atob(e):_.Buffer.from(e,"base64").toString("binary"),r=new Uint8Array(t.length),i=0;i<t.length;i++)r[i]=t.charCodeAt(i);return r}class T extends x{constructor(){super(),this.buffer=""}push(e){let t;for(this.buffer+=e,t=this.buffer.indexOf("\n");t>-1;t=this.buffer.indexOf("\n"))this.trigger("data",this.buffer.substring(0,t)),this.buffer=this.buffer.substring(t+1)}}let S=function(e){let t=/([0-9.]*)?@?([0-9.]*)?/.exec(e||""),r={};return t[1]&&(r.length=parseInt(t[1],10)),t[2]&&(r.offset=parseInt(t[2],10)),r},C=function(e){let t,r={};if(!e)return r;let i=e.split(RegExp('(?:^|,)((?:[^=]*)=(?:"[^"]*"|[^,]*))')),n=i.length;for(;n--;)""!==i[n]&&((t=/([^=]*)=(.*)/.exec(i[n]).slice(1))[0]=t[0].replace(/^\s+|\s+$/g,""),t[1]=t[1].replace(/^\s+|\s+$/g,""),t[1]=t[1].replace(/^['"](.*)['"]$/g,"$1"),r[t[0]]=t[1]);return r},E=e=>{let t=e.split("x"),r={};return t[0]&&(r.width=parseInt(t[0],10)),t[1]&&(r.height=parseInt(t[1],10)),r};class k extends x{constructor(){super(),this.customParsers=[],this.tagMappers=[]}push(e){let t,r;0===(e=e.trim()).length||("#"!==e[0]?this.trigger("data",{type:"uri",uri:e}):this.tagMappers.reduce((t,r)=>{let i=r(e);return i===e?t:t.concat([i])},[e]).forEach(e=>{for(let t=0;t<this.customParsers.length;t++)if(this.customParsers[t].call(this,e))return;if(0!==e.indexOf("#EXT"))return void this.trigger("data",{type:"comment",text:e.slice(1)});if(e=e.replace("\r",""),t=/^#EXTM3U/.exec(e))return void this.trigger("data",{type:"tag",tagType:"m3u"});if(t=/^#EXTINF:([0-9\.]*)?,?(.*)?$/.exec(e)){r={type:"tag",tagType:"inf"},t[1]&&(r.duration=parseFloat(t[1])),t[2]&&(r.title=t[2]),this.trigger("data",r);return}if(t=/^#EXT-X-TARGETDURATION:([0-9.]*)?/.exec(e)){r={type:"tag",tagType:"targetduration"},t[1]&&(r.duration=parseInt(t[1],10)),this.trigger("data",r);return}if(t=/^#EXT-X-VERSION:([0-9.]*)?/.exec(e)){r={type:"tag",tagType:"version"},t[1]&&(r.version=parseInt(t[1],10)),this.trigger("data",r);return}if(t=/^#EXT-X-MEDIA-SEQUENCE:(\-?[0-9.]*)?/.exec(e)){r={type:"tag",tagType:"media-sequence"},t[1]&&(r.number=parseInt(t[1],10)),this.trigger("data",r);return}if(t=/^#EXT-X-DISCONTINUITY-SEQUENCE:(\-?[0-9.]*)?/.exec(e)){r={type:"tag",tagType:"discontinuity-sequence"},t[1]&&(r.number=parseInt(t[1],10)),this.trigger("data",r);return}if(t=/^#EXT-X-PLAYLIST-TYPE:(.*)?$/.exec(e)){r={type:"tag",tagType:"playlist-type"},t[1]&&(r.playlistType=t[1]),this.trigger("data",r);return}if(t=/^#EXT-X-BYTERANGE:(.*)?$/.exec(e)){r=y(S(t[1]),{type:"tag",tagType:"byterange"}),this.trigger("data",r);return}if(t=/^#EXT-X-ALLOW-CACHE:(YES|NO)?/.exec(e)){r={type:"tag",tagType:"allow-cache"},t[1]&&(r.allowed=!/NO/.test(t[1])),this.trigger("data",r);return}if(t=/^#EXT-X-MAP:(.*)$/.exec(e)){if(r={type:"tag",tagType:"map"},t[1]){let e=C(t[1]);e.URI&&(r.uri=e.URI),e.BYTERANGE&&(r.byterange=S(e.BYTERANGE))}this.trigger("data",r);return}if(t=/^#EXT-X-STREAM-INF:(.*)$/.exec(e)){r={type:"tag",tagType:"stream-inf"},t[1]&&(r.attributes=C(t[1]),r.attributes.RESOLUTION&&(r.attributes.RESOLUTION=E(r.attributes.RESOLUTION)),r.attributes.BANDWIDTH&&(r.attributes.BANDWIDTH=parseInt(r.attributes.BANDWIDTH,10)),r.attributes["FRAME-RATE"]&&(r.attributes["FRAME-RATE"]=parseFloat(r.attributes["FRAME-RATE"])),r.attributes["PROGRAM-ID"]&&(r.attributes["PROGRAM-ID"]=parseInt(r.attributes["PROGRAM-ID"],10))),this.trigger("data",r);return}if(t=/^#EXT-X-MEDIA:(.*)$/.exec(e)){r={type:"tag",tagType:"media"},t[1]&&(r.attributes=C(t[1])),this.trigger("data",r);return}if(t=/^#EXT-X-ENDLIST/.exec(e))return void this.trigger("data",{type:"tag",tagType:"endlist"});if(t=/^#EXT-X-DISCONTINUITY/.exec(e))return void this.trigger("data",{type:"tag",tagType:"discontinuity"});if(t=/^#EXT-X-PROGRAM-DATE-TIME:(.*)$/.exec(e)){r={type:"tag",tagType:"program-date-time"}
133,t[1]&&(r.dateTimeString=t[1],r.dateTimeObject=new Date(t[1])),this.trigger("data",r);return}if(t=/^#EXT-X-KEY:(.*)$/.exec(e)){r={type:"tag",tagType:"key"},t[1]&&(r.attributes=C(t[1]),r.attributes.IV&&("0x"===r.attributes.IV.substring(0,2).toLowerCase()&&(r.attributes.IV=r.attributes.IV.substring(2)),r.attributes.IV=r.attributes.IV.match(/.{8}/g),r.attributes.IV[0]=parseInt(r.attributes.IV[0],16),r.attributes.IV[1]=parseInt(r.attributes.IV[1],16),r.attributes.IV[2]=parseInt(r.attributes.IV[2],16),r.attributes.IV[3]=parseInt(r.attributes.IV[3],16),r.attributes.IV=new Uint32Array(r.attributes.IV))),this.trigger("data",r);return}if(t=/^#EXT-X-START:(.*)$/.exec(e)){r={type:"tag",tagType:"start"},t[1]&&(r.attributes=C(t[1]),r.attributes["TIME-OFFSET"]=parseFloat(r.attributes["TIME-OFFSET"]),r.attributes.PRECISE=/YES/.test(r.attributes.PRECISE)),this.trigger("data",r);return}if(t=/^#EXT-X-CUE-OUT-CONT:(.*)?$/.exec(e)){r={type:"tag",tagType:"cue-out-cont"},t[1]?r.data=t[1]:r.data="",this.trigger("data",r);return}if(t=/^#EXT-X-CUE-OUT:(.*)?$/.exec(e)){r={type:"tag",tagType:"cue-out"},t[1]?r.data=t[1]:r.data="",this.trigger("data",r);return}if(t=/^#EXT-X-CUE-IN:?(.*)?$/.exec(e)){r={type:"tag",tagType:"cue-in"},t[1]?r.data=t[1]:r.data="",this.trigger("data",r);return}if((t=/^#EXT-X-SKIP:(.*)$/.exec(e))&&t[1]){(r={type:"tag",tagType:"skip"}).attributes=C(t[1]),r.attributes.hasOwnProperty("SKIPPED-SEGMENTS")&&(r.attributes["SKIPPED-SEGMENTS"]=parseInt(r.attributes["SKIPPED-SEGMENTS"],10)),r.attributes.hasOwnProperty("RECENTLY-REMOVED-DATERANGES")&&(r.attributes["RECENTLY-REMOVED-DATERANGES"]=r.attributes["RECENTLY-REMOVED-DATERANGES"].split("	")),this.trigger("data",r);return}if((t=/^#EXT-X-PART:(.*)$/.exec(e))&&t[1]){(r={type:"tag",tagType:"part"}).attributes=C(t[1]),["DURATION"].forEach(function(e){r.attributes.hasOwnProperty(e)&&(r.attributes[e]=parseFloat(r.attributes[e]))}),["INDEPENDENT","GAP"].forEach(function(e){r.attributes.hasOwnProperty(e)&&(r.attributes[e]=/YES/.test(r.attributes[e]))}),r.attributes.hasOwnProperty("BYTERANGE")&&(r.attributes.byterange=S(r.attributes.BYTERANGE)),this.trigger("data",r);return}if((t=/^#EXT-X-SERVER-CONTROL:(.*)$/.exec(e))&&t[1]){(r={type:"tag",tagType:"server-control"}).attributes=C(t[1]),["CAN-SKIP-UNTIL","PART-HOLD-BACK","HOLD-BACK"].forEach(function(e){r.attributes.hasOwnProperty(e)&&(r.attributes[e]=parseFloat(r.attributes[e]))}),["CAN-SKIP-DATERANGES","CAN-BLOCK-RELOAD"].forEach(function(e){r.attributes.hasOwnProperty(e)&&(r.attributes[e]=/YES/.test(r.attributes[e]))}),this.trigger("data",r);return}if((t=/^#EXT-X-PART-INF:(.*)$/.exec(e))&&t[1]){(r={type:"tag",tagType:"part-inf"}).attributes=C(t[1]),["PART-TARGET"].forEach(function(e){r.attributes.hasOwnProperty(e)&&(r.attributes[e]=parseFloat(r.attributes[e]))}),this.trigger("data",r);return}if((t=/^#EXT-X-PRELOAD-HINT:(.*)$/.exec(e))&&t[1]){(r={type:"tag",tagType:"preload-hint"}).attributes=C(t[1]),["BYTERANGE-START","BYTERANGE-LENGTH"].forEach(function(e){if(r.attributes.hasOwnProperty(e)){r.attributes[e]=parseInt(r.attributes[e],10);let t="BYTERANGE-LENGTH"===e?"length":"offset";r.attributes.byterange=r.attributes.byterange||{},r.attributes.byterange[t]=r.attributes[e],delete r.attributes[e]}}),this.trigger("data",r);return}if((t=/^#EXT-X-RENDITION-REPORT:(.*)$/.exec(e))&&t[1]){(r={type:"tag",tagType:"rendition-report"}).attributes=C(t[1]),["LAST-MSN","LAST-PART"].forEach(function(e){r.attributes.hasOwnProperty(e)&&(r.attributes[e]=parseInt(r.attributes[e],10))}),this.trigger("data",r);return}if((t=/^#EXT-X-DATERANGE:(.*)$/.exec(e))&&t[1]){(r={type:"tag",tagType:"daterange"}).attributes=C(t[1]),["ID","CLASS"].forEach(function(e){r.attributes.hasOwnProperty(e)&&(r.attributes[e]=String(r.attributes[e]))}),["START-DATE","END-DATE"].forEach(function(e){r.attributes.hasOwnProperty(e)&&(r.attributes[e]=new Date(r.attributes[e]))}),["DURATION","PLANNED-DURATION"].forEach(function(e){r.attributes.hasOwnProperty(e)&&(r.attributes[e]=parseFloat(r.attributes[e]))}),["END-ON-NEXT"].forEach(function(e){r.attributes.hasOwnProperty(e)&&(r.attributes[e]=/YES/i.test(r.attributes[e]))}),["SCTE35-CMD"," SCTE35-OUT","SCTE35-IN"].forEach(function(e){r.attributes.hasOwnProperty(e)&&(r.attributes[e]=r.attributes[e].toString(16))});let e=/^X-([A-Z]+-)+[A-Z]+$/;
133for(let t in r.attributes){if(!e.test(t))continue;let i=/[0-9A-Fa-f]{6}/g.test(r.attributes[t]),n=/^\d+(\.\d+)?$/.test(r.attributes[t]);r.attributes[t]=i?r.attributes[t].toString(16):n?parseFloat(r.attributes[t]):String(r.attributes[t])}this.trigger("data",r);return}if(t=/^#EXT-X-INDEPENDENT-SEGMENTS/.exec(e))return void this.trigger("data",{type:"tag",tagType:"independent-segments"});if(t=/^#EXT-X-I-FRAMES-ONLY/.exec(e))return void this.trigger("data",{type:"tag",tagType:"i-frames-only"});if(t=/^#EXT-X-CONTENT-STEERING:(.*)$/.exec(e)){(r={type:"tag",tagType:"content-steering"}).attributes=C(t[1]),this.trigger("data",r);return}if(t=/^#EXT-X-I-FRAME-STREAM-INF:(.*)$/.exec(e)){(r={type:"tag",tagType:"i-frame-playlist"}).attributes=C(t[1]),r.attributes.URI&&(r.uri=r.attributes.URI),r.attributes.BANDWIDTH&&(r.attributes.BANDWIDTH=parseInt(r.attributes.BANDWIDTH,10)),r.attributes.RESOLUTION&&(r.attributes.RESOLUTION=E(r.attributes.RESOLUTION)),r.attributes["AVERAGE-BANDWIDTH"]&&(r.attributes["AVERAGE-BANDWIDTH"]=parseInt(r.attributes["AVERAGE-BANDWIDTH"],10)),r.attributes["FRAME-RATE"]&&(r.attributes["FRAME-RATE"]=parseFloat(r.attributes["FRAME-RATE"])),this.trigger("data",r);return}if(t=/^#EXT-X-DEFINE:(.*)$/.exec(e)){(r={type:"tag",tagType:"define"}).attributes=C(t[1]),this.trigger("data",r);return}this.trigger("data",{type:"tag",data:e.slice(4)})}))}addParser({expression:e,customType:t,dataParser:r,segment:i}){"function"!=typeof r&&(r=e=>e),this.customParsers.push(n=>{if(e.exec(n))return this.trigger("data",{type:"custom",data:r(n),customType:t,segment:i}),!0})}addTagMapper({expression:e,map:t}){this.tagMappers.push(r=>e.test(r)?t(r):r)}}let N=function(e){let t={};return Object.keys(e).forEach(function(r){t[r.toLowerCase().replace(/-(\w)/g,e=>e[1].toUpperCase())]=e[r]}),t},I=function(e){let{serverControl:t,targetDuration:r,partTargetDuration:i}=e;if(!t)return;let n="#EXT-X-SERVER-CONTROL",a="holdBack",s="partHoldBack",o=r&&3*r,l=i&&2*i;r&&!t.hasOwnProperty(a)&&(t[a]=o,this.trigger("info",{message:`${n} defaulting HOLD-BACK to targetDuration * 3 (${o}).`})),o&&t[a]<o&&(this.trigger("warn",{message:`${n} clamping HOLD-BACK (${t[a]}) to targetDuration * 3 (${o})`}),t[a]=o),i&&!t.hasOwnProperty(s)&&(t[s]=3*i,this.trigger("info",{message:`${n} defaulting PART-HOLD-BACK to partTargetDuration * 3 (${t[s]}).`})),i&&t[s]<l&&(this.trigger("warn",{message:`${n} clamping PART-HOLD-BACK (${t[s]}) to partTargetDuration * 2 (${l}).`}),t[s]=l)};class A extends x{constructor(e={}){let t,r;super(),this.lineStream=new T,this.parseStream=new k,this.lineStream.pipe(this.parseStream),this.mainDefinitions=e.mainDefinitions||{},this.params=new URL(e.uri,"https://a.com").searchParams,this.lastProgramDateTime=null;const i=this,n=[];let a={},s=!1;const o=function(){},l={AUDIO:{},VIDEO:{},"CLOSED-CAPTIONS":{},SUBTITLES:{}};let c=0;this.manifest={allowCache:!0,discontinuityStarts:[],dateRanges:[],iFramePlaylists:[],segments:[]};let u=0,d=0;const p={};this.on("end",()=>{!a.uri&&(a.parts||a.preloadHints)&&(!a.map&&t&&(a.map=t),!a.key&&r&&(a.key=r),a.timeline||"number"!=typeof c||(a.timeline=c),this.manifest.preloadSegment=a)}),this.parseStream.on("data",function(e){let h,f;if(i.manifest.definitions){for(let t in i.manifest.definitions)if(e.uri&&(e.uri=e.uri.replace(`{$${t}}`,i.manifest.definitions[t])),e.attributes)for(let r in e.attributes)"string"==typeof e.attributes[r]&&(e.attributes[r]=e.attributes[r].replace(`{$${t}}`,i.manifest.definitions[t]))}({tag(){(({version(){e.version&&(this.manifest.version=e.version)},"allow-cache"(){this.manifest.allowCache=e.allowed,"allowed"in e||(this.trigger("info",{message:"defaulting allowCache to YES"}),this.manifest.allowCache=!0)},byterange(){let t={};"length"in e&&(a.byterange=t,t.length=e.length,"offset"in e||(e.offset=u)),"offset"in e&&(a.byterange=t,t.offset=e.offset),u=t.offset+t.length},endlist(){this.manifest.endList=!0},inf(){"mediaSequence"in this.manifest||(this.manifest.mediaSequence=0,this.trigger("info",{message:"defaulting media sequence to zero"})),"discontinuitySequence"in this.manifest||(this.manifest.discontinuitySequence=0,this.trigger("info",{message:"defaulting discontinuity sequence to zero"})),e.title&&(a.title=e.title),e.duration>0&&(a.duration=e.duration),0===e.duration&&(a.duration=.01,this.trigger("info",{message:"updating zero segment duration to a small value"})),this.manifest.segments=n},key(){if(!e.attributes)return void this.trigger("warn",{message:"ignoring key declaration without attribute list"});if("NONE"===e.attributes.METHOD){r=null;return}if(!e.attributes.URI)return void this.trigger("warn",{message:"ignoring key declaration without URI"});if("com.apple.streamingkeydelivery"===e.attributes.KEYFORMAT){this.manifest.contentProtection=this.manifest.contentProtection||{},this.manifest.contentProtection["com.apple.fps.1_0"]={attributes:e.attributes};return}if("com.microsoft.playready"===e.attributes.KEYFORMAT){this.manifest.contentProtection=this.manifest.contentProtection||{},this.manifest.contentProtection["com.microsoft.playready"]={uri:e.attributes.URI};return}"urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed"===e.attributes.KEYFORMAT?-1===["SAMPLE-AES","SAMPLE-AES-CTR","SAMPLE-AES-CENC"].indexOf(e.attributes.METHOD)?this.trigger("warn",{message:"invalid key method provided for Widevine"}):("SAMPLE-AES-CENC"===e.attributes.METHOD&&this.trigger("warn",{message:"SAMPLE-AES-CENC is deprecated, please use SAMPLE-AES-CTR instead"}),"data:text/plain;base64,"!==e.attributes.URI.substring(0,23))?this.trigger("warn",{message:"invalid key URI provided for Widevine"}):e.attributes.KEYID&&"0x"===e.attributes.KEYID.substring(0,2)?(this.manifest.contentProtection=this.manifest.contentProtection||{},this.manifest.contentProtection["com.widevine.alpha"]={attributes:{schemeIdUri:e.attributes.KEYFORMAT,keyId:e.attributes.KEYID.substring(2)},pssh:w(e.attributes.URI.split(",")[1])}):this.trigger("warn",{message:"invalid key ID provided for Widevine"}):(e.attributes.METHOD||this.trigger("warn",{message:"defaulting key method to AES-128"}),r={method:e.attributes.METHOD||"AES-128",uri:e.attributes.URI},void 0!==e.attributes.IV&&(r.iv=e.attributes.IV))},"media-sequence"(){isFinite(e.number)?this.manifest.mediaSequence=e.number:this.trigger("warn",{message:"ignoring invalid media sequence: "+e.number})},"discontinuity-sequence"(){isFinite(e.number)?(this.manifest.discontinuitySequence=e.number,c=e.number):this.trigger("warn",{message:"ignoring invalid discontinuity sequence: "+e.number})},"playlist-type"(){/VOD|EVENT/.test(e.playlistType)?this.manifest.playlistType=e.playlistType:this.trigger("warn",{message:"ignoring unknown playlist type: "+e.playlist})},map(){t={}
133,e.uri&&(t.uri=e.uri),e.byterange&&(t.byterange=e.byterange),r&&(t.key=r)},"stream-inf"(){(this.manifest.playlists=n,this.manifest.mediaGroups=this.manifest.mediaGroups||l,e.attributes)?(a.attributes||(a.attributes={}),y(a.attributes,e.attributes)):this.trigger("warn",{message:"ignoring empty stream-inf attributes"})},media(){if(this.manifest.mediaGroups=this.manifest.mediaGroups||l,!(e.attributes&&e.attributes.TYPE&&e.attributes["GROUP-ID"]&&e.attributes.NAME))return void this.trigger("warn",{message:"ignoring incomplete or missing media group"});let t=this.manifest.mediaGroups[e.attributes.TYPE];t[e.attributes["GROUP-ID"]]=t[e.attributes["GROUP-ID"]]||{},h=t[e.attributes["GROUP-ID"]],(f={default:/yes/i.test(e.attributes.DEFAULT)}).default?f.autoselect=!0:f.autoselect=/yes/i.test(e.attributes.AUTOSELECT),e.attributes.LANGUAGE&&(f.language=e.attributes.LANGUAGE),e.attributes.URI&&(f.uri=e.attributes.URI),e.attributes["INSTREAM-ID"]&&(f.instreamId=e.attributes["INSTREAM-ID"]),e.attributes.CHARACTERISTICS&&(f.characteristics=e.attributes.CHARACTERISTICS),e.attributes.FORCED&&(f.forced=/yes/i.test(e.attributes.FORCED)),h[e.attributes.NAME]=f},discontinuity(){c+=1,a.discontinuity=!0,this.manifest.discontinuityStarts.push(n.length)},"program-date-time"(){void 0===this.manifest.dateTimeString&&(this.manifest.dateTimeString=e.dateTimeString,this.manifest.dateTimeObject=e.dateTimeObject),a.dateTimeString=e.dateTimeString,a.dateTimeObject=e.dateTimeObject;let{lastProgramDateTime:t}=this;this.lastProgramDateTime=new Date(e.dateTimeString).getTime(),null===t&&this.manifest.segments.reduceRight((e,t)=>(t.programDateTime=e-1e3*t.duration,t.programDateTime),this.lastProgramDateTime)},targetduration(){!isFinite(e.duration)||e.duration<0?this.trigger("warn",{message:"ignoring invalid target duration: "+e.duration}):(this.manifest.targetDuration=e.duration,I.call(this,this.manifest))},start(){!e.attributes||isNaN(e.attributes["TIME-OFFSET"])?this.trigger("warn",{message:"ignoring start declaration without appropriate attribute list"}):this.manifest.start={timeOffset:e.attributes["TIME-OFFSET"],precise:e.attributes.PRECISE}},"cue-out"(){a.cueOut=e.data},"cue-out-cont"(){a.cueOutCont=e.data},"cue-in"(){a.cueIn=e.data},skip(){this.manifest.skip=N(e.attributes),this.warnOnMissingAttributes_("#EXT-X-SKIP",e.attributes,["SKIPPED-SEGMENTS"])},part(){s=!0;let t=this.manifest.segments.length,r=N(e.attributes);a.parts=a.parts||[],a.parts.push(r),r.byterange&&(r.byterange.hasOwnProperty("offset")||(r.byterange.offset=d),d=r.byterange.offset+r.byterange.length);let i=a.parts.length-1;this.warnOnMissingAttributes_(`#EXT-X-PART #${i} for segment #${t}`,e.attributes,["URI","DURATION"]),this.manifest.renditionReports&&this.manifest.renditionReports.forEach((e,t)=>{e.hasOwnProperty("lastPart")||this.trigger("warn",{message:`#EXT-X-RENDITION-REPORT #${t} lacks required attribute(s): LAST-PART`})})},"server-control"(){let t=this.manifest.serverControl=N(e.attributes);t.hasOwnProperty("canBlockReload")||(t.canBlockReload=!1,this.trigger("info",{message:"#EXT-X-SERVER-CONTROL defaulting CAN-BLOCK-RELOAD to false"})),I.call(this,this.manifest),t.canSkipDateranges&&!t.hasOwnProperty("canSkipUntil")&&this.trigger("warn",{message:"#EXT-X-SERVER-CONTROL lacks required attribute CAN-SKIP-UNTIL which is required when CAN-SKIP-DATERANGES is set"})},"preload-hint"(){let t=this.manifest.segments.length,r=N(e.attributes),i=r.type&&"PART"===r.type;a.preloadHints=a.preloadHints||[],a.preloadHints.push(r),r.byterange&&!r.byterange.hasOwnProperty("offset")&&(r.byterange.offset=i?d:0,i&&(d=r.byterange.offset+r.byterange.length));let n=a.preloadHints.length-1;if(this.warnOnMissingAttributes_(`#EXT-X-PRELOAD-HINT #${n} for segment #${t}`,e.attributes,["TYPE","URI"]),r.type)for(let e=0;e<a.preloadHints.length-1;e++){let i=a.preloadHints[e];i.type&&i.type===r.type&&this.trigger("warn",{message:`#EXT-X-PRELOAD-HINT #${n} for segment #${t} has the same TYPE ${r.type} as preload hint #${e}`})}},"rendition-report"(){let t=N(e.attributes);this.manifest.renditionReports=this.manifest.renditionReports||[],this.manifest.renditionReports.push(t);let r=this.manifest.renditionReports.length-1,i=["LAST-MSN","URI"];s&&i.push("LAST-PART"),this.warnOnMissingAttributes_(`#EXT-X-RENDITION-REPORT #${r}`,e.attributes,i)},"part-inf"(){this.manifest.partInf=N(e.attributes),this.warnOnMissingAttributes_("#EXT-X-PART-INF",e.attributes,["PART-TARGET"]),this.manifest.partInf.partTarget&&(this.manifest.partTargetDuration=this.manifest.partInf.partTarget),I.call(this,this.manifest)},daterange(){this.manifest.dateRanges.push(N(e.attributes));let t=this.manifest.dateRanges.length-1;this.warnOnMissingAttributes_(`#EXT-X-DATERANGE #${t}`,e.attributes,["ID","START-DATE"]);let r=this.manifest.dateRanges[t];r.endDate&&r.startDate&&new Date(r.endDate)<new Date(r.startDate)&&this.trigger("warn",{message:"EXT-X-DATERANGE END-DATE must be equal to or later than the value of the START-DATE"}),r.duration&&r.duration<0&&this.trigger("warn",{message:"EXT-X-DATERANGE DURATION must not be negative"}),r.plannedDuration&&r.plannedDuration<0&&this.trigger("warn",{message:"EXT-X-DATERANGE PLANNED-DURATION must not be negative"});let i=!!r.endOnNext;if(i&&!r.class&&this.trigger("warn",{message:"EXT-X-DATERANGE with an END-ON-NEXT
133=YES attribute must have a CLASS attribute"}),i&&(r.duration||r.endDate)&&this.trigger("warn",{message:"EXT-X-DATERANGE with an END-ON-NEXT=YES attribute must not contain DURATION or END-DATE attributes"}),r.duration&&r.endDate){let e=r.startDate.getTime()+1e3*r.duration;this.manifest.dateRanges[t].endDate=new Date(e)}if(p[r.id]){for(let e in p[r.id])if(r[e]&&JSON.stringify(p[r.id][e])!==JSON.stringify(r[e])){this.trigger("warn",{message:"EXT-X-DATERANGE tags with the same ID in a playlist must have the same attributes values"});break}let e=this.manifest.dateRanges.findIndex(e=>e.id===r.id);this.manifest.dateRanges[e]=y(this.manifest.dateRanges[e],r),p[r.id]=y(p[r.id],r),this.manifest.dateRanges.pop()}else p[r.id]=r},"independent-segments"(){this.manifest.independentSegments=!0},"i-frames-only"(){this.manifest.iFramesOnly=!0,this.requiredCompatibilityversion(this.manifest.version,4)},"content-steering"(){this.manifest.contentSteering=N(e.attributes),this.warnOnMissingAttributes_("#EXT-X-CONTENT-STEERING",e.attributes,["SERVER-URI"])},define(){this.manifest.definitions=this.manifest.definitions||{};let t=(e,t)=>{e in this.manifest.definitions?this.trigger("error",{message:`EXT-X-DEFINE: Duplicate name ${e}`}):this.manifest.definitions[e]=t};if("QUERYPARAM"in e.attributes){if("NAME"in e.attributes||"IMPORT"in e.attributes)return void this.trigger("error",{message:"EXT-X-DEFINE: Invalid attributes"});let r=this.params.get(e.attributes.QUERYPARAM);return r?void t(e.attributes.QUERYPARAM,decodeURIComponent(r)):void this.trigger("error",{message:`EXT-X-DEFINE: No query param ${e.attributes.QUERYPARAM}`})}"NAME"in e.attributes?"IMPORT"in e.attributes?this.trigger("error",{message:"EXT-X-DEFINE: Invalid attributes"}):"VALUE"in e.attributes&&"string"==typeof e.attributes.VALUE?t(e.attributes.NAME,e.attributes.VALUE):this.trigger("error",{message:`EXT-X-DEFINE: No value for ${e.attributes.NAME}`}):"IMPORT"in e.attributes?this.mainDefinitions[e.attributes.IMPORT]?t(e.attributes.IMPORT,this.mainDefinitions[e.attributes.IMPORT]):this.trigger("error",{message:`EXT-X-DEFINE: No value ${e.attributes.IMPORT} to import, or IMPORT used on main playlist`}):this.trigger("error",{message:"EXT-X-DEFINE: No attribute"})},"i-frame-playlist"(){this.manifest.iFramePlaylists.push({attributes:e.attributes,uri:e.uri,timeline:c}),this.warnOnMissingAttributes_("#EXT-X-I-FRAME-STREAM-INF",e.attributes,["BANDWIDTH","URI"])}})[e.tagType]||o).call(i)},uri(){a.uri=e.uri,n.push(a),!this.manifest.targetDuration||"duration"in a||(this.trigger("warn",{message:"defaulting segment duration to the target duration"}),a.duration=this.manifest.targetDuration),r&&(a.key=r),a.timeline=c,t&&(a.map=t),d=0,null!==this.lastProgramDateTime&&(a.programDateTime=this.lastProgramDateTime,this.lastProgramDateTime+=1e3*a.duration),a={}},comment(){},custom(){e.segment?(a.custom=a.custom||{},a.custom[e.customType]=e.data):(this.manifest.custom=this.manifest.custom||{},this.manifest.custom[e.customType]=e.data)}})[e.type].call(i)})}requiredCompatibilityversion(e,t){(e<t||!e)&&this.trigger("warn",{message:`manifest must be at least version ${t}`})}warnOnMissingAttributes_(e,t,r){let i=[];r.forEach(function(e){t.hasOwnProperty(e)||i.push(e)}),i.length&&this.trigger("warn",{message:`${e} lacks required attribute(s): ${i.join(", ")}`})}push(e){this.lineStream.push(e)}end(){this.lineStream.push("\n"),this.manifest.dateRanges.length&&null===this.lastProgramDateTime&&this.trigger("warn",{message:"A playlist with EXT-X-DATERANGE tag must contain atleast one EXT-X-PROGRAM-DATE-TIME tag"}),this.lastProgramDateTime=null,this.trigger("end")}addParser(e){this.parseStream.addParser(e)}addTagMapper(e){this.parseStream.addTagMapper(e)}}var j={mp4:/^(av0?1|avc0?[1234]|vp0?9|flac|opus|mp3|mp4a|mp4v|stpp.ttml.im1t)/,webm:/^(vp0?[89]|av0?1|opus|vorbis)/,ogg:/^(vp0?[89]|theora|flac|opus|vorbis)/,video:/^(av0?1|avc0?[1234]|vp0?[89]|hvc1|hev1|theora|mp4v)/,audio:/^(mp4a|flac|vorbis|opus|ac-[34]|ec-3|alac|mp3|speex|aac)/,text:/^(stpp.ttml.im1t)/,muxerVideo:/^(avc0?1)/,muxerAudio:/^(mp4a)/,muxerText:/a^/},P=["video","audio","text"],O=["Video","Audio","Text"],L=function(e){return e?e.replace(/avc1\.(\d+)\.(\d+)/i,function(e,t,r){return"avc1."+("00"+Number(t).toString(16)).slice(-2)+"00"+("00"+Number(r).toString(16)).slice(-2)}):e},D=function(e){void 0===e&&(e="");var t=e.split(","),r=[];return t.forEach(function(e){var t;e=e.trim(),P.forEach(function(i){var n=j[i].exec(e.toLowerCase());if(n&&!(n.length<=1)){t=i;var a=e.substring(0,n[1].length),s=e.replace(a,"");r.push({type:a,details:s,mediaType:i})}}),t||r.push({type:e,details:"",mediaType:"unknown"})}),r},R=function(e,t){if(!e.mediaGroups.AUDIO||!t)return null;var r=e.mediaGroups.AUDIO[t];if(!r)return null;for(var i in r){var n=r[i];if(n.default&&n.playlists)return D(n.playlists[0].attributes.CODECS)}return null},M=function(e){return void 0===e&&(e=""),j.audio.test(e.trim().toLowerCase())},B=function(e){if(e&&"string"==typeof e){var t,r=e.toLowerCase().split(",").map(function(e){return L(e.trim())}),i="video";1===r.length&&M(r[0])?i="audio":1===r.length&&(void 0===(t=r[0])&&(t=""),j.text.test(t.trim().toLowerCase()))&&
133(i="application");var n="mp4";return r.every(function(e){return j.mp4.test(e)})?n="mp4":r.every(function(e){return j.webm.test(e)})?n="webm":r.every(function(e){return j.ogg.test(e)})&&(n="ogg"),i+"/"+n+';codecs="'+e+'"'}},U=function(e,t){return void 0===e&&(e=""),void 0===t&&(t=!1),h.default.MediaSource&&h.default.MediaSource.isTypeSupported&&h.default.MediaSource.isTypeSupported(B(e))||t&&h.default.ManagedMediaSource&&h.default.ManagedMediaSource.isTypeSupported&&h.default.ManagedMediaSource.isTypeSupported(B(e))||!1},F=function(e){return void 0===e&&(e=""),e.toLowerCase().split(",").every(function(e){e=e.trim();for(var t=0;t<O.length;t++)if(j["muxer"+O[t]].test(e))return!0;return!1})},$="mp4a.40.2",z=/^(audio|video|application)\/(x-|vnd\.apple\.)?mpegurl/i,q=/^application\/dash\+xml/i,H=function(e){return z.test(e)?"hls":q.test(e)?"dash":"application/vnd.videojs.vhs+json"===e?"vhs-json":null},W=function(e){return"function"===ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer instanceof ArrayBuffer},V=function(e){return e instanceof Uint8Array?e:(Array.isArray(e)||W(e)||e instanceof ArrayBuffer||(e="number"!=typeof e||"number"==typeof e&&e!=e?0:[e]),new Uint8Array(e&&e.buffer||e,e&&e.byteOffset||0,e&&e.byteLength||0))},G=h.default.BigInt||Number,X=[G("0x1"),G("0x100"),G("0x10000"),G("0x1000000"),G("0x100000000"),G("0x10000000000"),G("0x1000000000000"),G("0x100000000000000"),G("0x10000000000000000")];255===(l=new Uint8Array((o=new Uint16Array([65484])).buffer,o.byteOffset,o.byteLength))[0]||l[0];var K=function(e,t){var r=void 0===t?{}:t,i=r.signed,n=r.le,a=void 0!==n&&n;e=V(e);var s=a?"reduce":"reduceRight",o=(e[s]?e[s]:Array.prototype[s]).call(e,function(t,r,i){var n=a?i:Math.abs(i+1-e.length);return t+G(r)*X[n]},G(0));if(void 0!==i&&i){var l=X[e.length]/G(2)-G(1);(o=G(o))>l&&(o-=l,o-=l,o-=G(2))}return Number(o)},Y=function(e,t){var r=(void 0===t?{}:t).le,i=void 0!==r&&r;("bigint"!=typeof e&&"number"!=typeof e||"number"==typeof e&&e!=e)&&(e=0);for(var n=Math.ceil((e=G(e)).toString(2).length/8),a=new Uint8Array(new ArrayBuffer(n)),s=0;s<n;s++){var o=i?s:Math.abs(s+1-a.length);a[o]=Number(e/X[s]&G(255)),e<0&&(a[o]=Math.abs(~a[o]),a[o]-=0===s?1:2)}return a},Q=function(e){if(!e)return"";e=Array.prototype.slice.call(e);var t=String.fromCharCode.apply(null,V(e));try{return decodeURIComponent(escape(t))}catch(e){}return t},J=function(e,t){if("string"!=typeof e&&e&&"function"==typeof e.toString&&(e=e.toString()),"string"!=typeof e)return new Uint8Array;t||(e=unescape(encodeURIComponent(e)));for(var r=new Uint8Array(e.length),i=0;i<e.length;i++)r[i]=e.charCodeAt(i);return r},Z=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];if((t=t.filter(function(e){return e&&(e.byteLength||e.length)&&"string"!=typeof e})).length<=1)return V(t[0]);var i=new Uint8Array(t.reduce(function(e,t,r){return e+(t.byteLength||t.length)},0)),n=0;return t.forEach(function(e){e=V(e),i.set(e,n),n+=e.byteLength}),i},ee=function(e,t,r){var i=void 0===r?{}:r,n=i.offset,a=void 0===n?0:n,s=i.mask,o=void 0===s?[]:s;e=V(e);var l=(t=V(t)).every?t.every:Array.prototype.every;return t.length&&e.length-a>=t.length&&l.call(t,function(t,r){return t===(o[r]?o[r]&e[a+r]:e[a+r])})},et=function(e,t,r){t.forEach(function(t){for(var i in e.mediaGroups[t])for(var n in e.mediaGroups[t][i])r(e.mediaGroups[t][i][n],t,i,n)})},er=e.i(519204);let ei=e=>!!e&&"object"==typeof e,en=(...e)=>e.reduce((e,t)=>("object"!=typeof t||Object.keys(t).forEach(r=>{Array.isArray(e[r])&&Array.isArray(t[r])?e[r]=e[r].concat(t[r]):ei(e[r])&&ei(t[r])?e[r]=en(e[r],t[r]):e[r]=t[r]}),e),{}),ea=e=>Object.keys(e).map(t=>e[t]),es=e=>e.reduce((e,t)=>e.concat(t),[]),eo=e=>{if(!e.length)return[];let t=[];for(let r=0;r<e.length;r++)t.push(e[r]);return t},el=({baseUrl:e="",source:t="",range:r="",indexRange:i=""})=>{let n={uri:t,resolvedUri:v(e||"",t)};if(r||i){let e,t=(r||i).split("-"),a=h.default.BigInt?h.default.BigInt(t[0]):parseInt(t[0],10),s=h.default.BigInt?h.default.BigInt(t[1]):parseInt(t[1],10);a<Number.MAX_SAFE_INTEGER&&"bigint"==typeof a&&(a=Number(a)),s<Number.MAX_SAFE_INTEGER&&"bigint"==typeof s&&(s=Number(s)),"b
133igint"==typeof(e="bigint"==typeof s||"bigint"==typeof a?h.default.BigInt(s)-h.default.BigInt(a)+h.default.BigInt(1):s-a+1)&&e<Number.MAX_SAFE_INTEGER&&(e=Number(e)),n.byterange={length:e,offset:a}}return n},ec=e=>(e&&"number"!=typeof e&&(e=parseInt(e,10)),isNaN(e))?null:e,eu={static(e){let{duration:t,timescale:r=1,sourceDuration:i,periodDuration:n}=e,a=ec(e.endNumber),s=t/r;return"number"==typeof a?{start:0,end:a}:"number"==typeof n?{start:0,end:n/s}:{start:0,end:i/s}},dynamic(e){let{NOW:t,clientOffset:r,availabilityStartTime:i,timescale:n=1,duration:a,periodStart:s=0,minimumUpdatePeriod:o=0,timeShiftBufferDepth:l=1/0}=e,c=ec(e.endNumber),u=(t+r)/1e3,d=i+s,p=Math.ceil((u+o-d)*n/a),h=Math.floor((u-d-l)*n/a),f=Math.floor((u-d)*n/a);return{start:Math.max(0,h),end:"number"==typeof c?c:Math.min(p,f)}}},ed=e=>{let{type:t,duration:r,timescale:i=1,periodDuration:n,sourceDuration:a}=e,{start:s,end:o}=eu[t](e),l=((e,t)=>{let r=[];for(let i=e;i<t;i++)r.push(i);return r})(s,o).map(t=>{let{duration:r,timescale:i=1,periodStart:n,startNumber:a=1}=e;return{number:a+t,duration:r/i,timeline:n,time:t*r}});if("static"===t){let e=l.length-1;l[e].duration=("number"==typeof n?n:a)-r/i*e}return l},ep=e=>{let{baseUrl:t,initialization:r={},sourceDuration:i,indexRange:n="",periodStart:a,presentationTime:s,number:o=0,duration:l}=e;if(!t)throw Error("NO_BASE_URL");let c=el({baseUrl:t,source:r.sourceURL,range:r.range}),u=el({baseUrl:t,source:t,indexRange:n});if(u.map=c,l){let t=ed(e);t.length&&(u.duration=t[0].duration,u.timeline=t[0].timeline)}else i&&(u.duration=i,u.timeline=a);return u.presentationTime=s||a,u.number=o,[u]},eh=(e,t,r)=>{let i,n=e.sidx.map?e.sidx.map:null,a=e.sidx.duration,s=e.timeline||0,o=e.sidx.byterange,l=o.offset+o.length,c=t.timescale,u=t.references.filter(e=>1!==e.referenceType),d=[],p=e.endList?"static":"dynamic",f=e.sidx.timeline,g=f,m=e.mediaSequence||0;i="bigint"==typeof t.firstOffset?h.default.BigInt(l)+t.firstOffset:l+t.firstOffset;for(let e=0;e<u.length;e++){let o,l=t.references[e],u=l.referencedSize,y=l.subsegmentDuration;o="bigint"==typeof i?i+h.default.BigInt(u)-h.default.BigInt(1):i+u-1;let b={baseUrl:r,timescale:c,timeline:s,periodStart:f,presentationTime:g,number:m,duration:y,sourceDuration:a,indexRange:`${i}-${o}`,type:p},v=ep(b)[0];n&&(v.map=n),d.push(v),"bigint"==typeof i?i+=h.default.BigInt(u):i+=u,g+=y/c,m++}return e.segments=d,e},ef=["AUDIO","SUBTITLES"],eg=1/60,em=e=>{let t;return(t=({timeline:e})=>e,ea(e.reduce((e,r)=>(r.forEach(r=>{e[t(r)]=r}),e),{}))).sort((e,t)=>e.timeline>t.timeline?1:-1)},ey=e=>{let t=[];return et(e,ef,(e,r,i,n)=>{t=t.concat(e.playlists||[])}),t},eb=({playlist:e,mediaSequence:t})=>{e.mediaSequence=t,e.segments.forEach((t,r)=>{t.number=e.mediaSequence+r})},ev=e=>{var t;let r;return e&&e.uri+"-"+(r="bigint"==typeof(t=e.byterange).offset||"bigint"==typeof t.length?h.default.BigInt(t.offset)+h.default.BigInt(t.length)-h.default.BigInt(1):t.offset+t.length-1,`${t.offset}-${r}`)},ex=e=>{let t=e.reduce(function(e,t){return e[t.attributes.baseUrl]||(e[t.attributes.baseUrl]=[]),e[t.attributes.baseUrl].push(t),e},{}),r=[];return Object.values(t).forEach(e=>{let t=ea(e.reduce((e,t)=>{let r=t.attributes.id+(t.attributes.lang||"");return e[r]?(t.segments&&(t.segments[0]&&(t.segments[0].discontinuity=!0),e[r].segments.push(...t.segments)),t.attributes.contentProtection&&(e[r].attributes.contentProtection=t.attributes.contentProtection)):(e[r]=t,e[r].attributes.timelineStarts=[]),e[r].attributes.timelineStarts.push({start:t.attributes.periodStart,timeline:t.attributes.periodStart}),e},{}));r=r.concat(t)}),r.map(e=>(e.discontinuityStarts=(e.segments||[]).reduce((e,t,r)=>(t.discontinuity&&e.push(r),e),[]),e))},e_=(e,t)=>{let r=ev(e.sidx),i=r&&t[r]&&t[r].sidx;return i&&eh(e,i,e.sidx.resolvedUri),e},ew=({attributes:e,segments:t,sidx:r,discontinuityStarts:i})=>{let n={attributes:{NAME:e.id,AUDIO:"audio",SUBTITLES:"subs",RESOLUTION:{width:e.width,height:e.height},CODECS:e.codecs,BANDWIDTH:e.bandwidth,"PROGRAM-ID":1},uri:"",endList:"static"===e.type,timeline:e.periodStart,resolvedUri:e.baseUrl||"",targetDuration:e.duration,discontinuityStarts:i,timelineStarts:e.timelineStarts,segments:t};return e.frameRate&&(n.attributes["FRAME-RATE"]=e.frameRate),e.contentProtection&&(n.contentProtection=e.contentProtection),e.serviceLocation&&(n.attributes.serviceLocation=e.serviceLocation),r&&(n.sidx=r),n},eT=({attributes:e})=>"video/mp4"===e.mimeType||"video/webm"===e.mimeType||"video"===e.contentType,eS=({attributes:e})=>"audio/mp4"===e.mimeType||"audio/webm"===e.mimeType||"audio"===e.contentType,eC=({attributes:e})=>"text/vtt"===e.mimeType||"text"===e.contentType,eE=e=>e?Object.keys(e).reduce((t,r)=>{let i=e[r];return t.concat(i.playlists)},[]):[],ek=(e,t,r)=>{let{NOW:i,clientOffset:n,availabilityStartTime:a,timescale:s=1,periodStart:o=0,minimumUpdatePeriod:l=0}=e;return Math.ceil((((i+n)/1e3+l-(a+o))*s-t)/r)},eN=(e,t)=>{let{type:r,minimumUpdatePeriod:i=0,media:n="",sourceDuration:a,timescale:s=1,startNumber:o=1,periodStart:l}=e,c=[],u=-1;for(let d=0;d<t.length;d++){let p,h=t[d],f=h.d,g=h.r||0,m=h.t||0;if(u<0&&(u=m),m&&m>u&&(u=m),g<0){let o=d+1;p=o===t.length?"dynamic"===r&&i>0&&n.indexOf("$Number$")>0?ek(e,u,f):(a*s-u)/f:(t[o].t-u)/f}else p=g+1;let y=o+c.length+p,b=o+c.length;for(;b<y;)c.push({number:b,duration:f/s,time:u,timeline:l}),u+=f,b++}return c},eI=/\$([A-z]*)(?:(%0)([0-9]+)d)?\$/g,eA=(e,t)=>
133e.replace(eI,(e,r,i,n)=>{if("$$"===e)return"$";if(void 0===t[r])return e;let a=""+t[r];return"RepresentationID"===r||(n=i?parseInt(n,10):1,a.length>=n)?a:`${Array(n-a.length+1).join("0")}${a}`}),ej=(e,t)=>{let r={RepresentationID:e.id,Bandwidth:e.bandwidth||0},{initialization:i={sourceURL:"",range:""}}=e,n=el({baseUrl:e.baseUrl,source:eA(i.sourceURL,r),range:i.range});return(!e.duration&&!t?[{number:e.startNumber||1,duration:e.sourceDuration,time:0,timeline:e.periodStart}]:e.duration?ed(e):eN(e,t)).map(t=>{r.Number=t.number,r.Time=t.time;let i=eA(e.media||"",r),a=e.timescale||1,s=e.presentationTimeOffset||0,o=e.periodStart+(t.time-s)/a;return{uri:i,timeline:t.timeline,duration:t.duration,resolvedUri:v(e.baseUrl||"",i),map:n,number:t.number,presentationTime:o}})},eP=(e,t)=>{let r,{duration:i,segmentUrls:n=[],periodStart:a}=e;if(!i&&!t||i&&t)throw Error("SEGMENT_TIME_UNSPECIFIED");let s=n.map(t=>((e,t)=>{let{baseUrl:r,initialization:i={}}=e,n=el({baseUrl:r,source:i.sourceURL,range:i.range}),a=el({baseUrl:r,source:t.media,range:t.mediaRange});return a.map=n,a})(e,t));return i&&(r=ed(e)),t&&(r=eN(e,t)),r.map((t,r)=>{if(s[r]){let i=s[r],n=e.timescale||1,o=e.presentationTimeOffset||0;return i.timeline=t.timeline,i.duration=t.duration,i.number=t.number,i.presentationTime=a+(t.time-o)/n,i}}).filter(e=>e)},eO=({attributes:e,segmentInfo:t})=>{let r,i;t.template?(i=ej,r=en(e,t.template)):t.base?(i=ep,r=en(e,t.base)):t.list&&(i=eP,r=en(e,t.list));let n={attributes:e};if(!i)return n;let a=i(r,t.segmentTimeline);if(r.duration){let{duration:e,timescale:t=1}=r;r.duration=e/t}else a.length?r.duration=a.reduce((e,t)=>Math.max(e,Math.ceil(t.duration)),0):r.duration=0;return n.attributes=r,n.segments=a,t.base&&r.indexRange&&(n.sidx=a[0],n.segments=[]),n},eL=(e,t)=>eo(e.childNodes).filter(({tagName:e})=>e===t),eD=e=>e.textContent.trim(),eR=e=>{let t=/P(?:(\d*)Y)?(?:(\d*)M)?(?:(\d*)D)?(?:T(?:(\d*)H)?(?:(\d*)M)?(?:([\d.]*)S)?)?/.exec(e);if(!t)return 0;let[r,i,n,a,s,o]=t.slice(1);return 31536e3*parseFloat(r||0)+2592e3*parseFloat(i||0)+86400*parseFloat(n||0)+3600*parseFloat(a||0)+60*parseFloat(s||0)+parseFloat(o||0)},eM={mediaPresentationDuration:e=>eR(e),availabilityStartTime:e=>{var t;return t=e,/^\d+-\d+-\d+T\d+:\d+:\d+(\.\d+)?$/.test(t)&&(t+="Z"),Date.parse(t)/1e3},minimumUpdatePeriod:e=>eR(e),suggestedPresentationDelay:e=>eR(e),type:e=>e,timeShiftBufferDepth:e=>eR(e),start:e=>eR(e),width:e=>parseInt(e,10),height:e=>parseInt(e,10),bandwidth:e=>parseInt(e,10),frameRate:e=>parseFloat(e.split("/").reduce((e,t)=>e/t)),startNumber:e=>parseInt(e,10),timescale:e=>parseInt(e,10),presentationTimeOffset:e=>parseInt(e,10),duration(e){let t=parseInt(e,10);return isNaN(t)?eR(e):t},d:e=>parseInt(e,10),t:e=>parseInt(e,10),r:e=>parseInt(e,10),presentationTime:e=>parseInt(e,10),DEFAULT:e=>e},eB=e=>e&&e.attributes?eo(e.attributes).reduce((e,t)=>{let r=eM[t.name]||eM.DEFAULT;return e[t.name]=r(t.value),e},{}):{},eU={"urn:uuid:1077efec-c0b2-4d02-ace3-3c1e52e2fb4b":"org.w3.clearkey","urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed":"com.widevine.alpha","urn:uuid:9a04f079-9840-4286-ab92-e65be0885f95":"com.microsoft.playready","urn:uuid:f239e769-efa3-4850-9c16-a903c6932efb":"com.adobe.primetime","urn:mpeg:dash:mp4protection:2011":"mp4protection"},eF=(e,t)=>t.length?es(e.map(function(e){return t.map(function(t){let r=eD(t),i=v(e.baseUrl,r),n=en(eB(t),{baseUrl:i});return i!==r&&!n.serviceLocation&&e.serviceLocation&&(n.serviceLocation=e.serviceLocation),n})})):e,e$=e=>{let t=eL(e,"SegmentTemplate")[0],r=eL(e,"SegmentList")[0],i=r&&eL(r,"SegmentURL").map(e=>en({tag:"SegmentURL"},eB(e))),n=eL(e,"SegmentBase")[0],a=r||t,s=a&&eL(a,"SegmentTimeline")[0],o=r||n||t,l=o&&eL(o,"Initialization")[0],c=t&&eB(t);c&&l?c.initialization=l&&eB(l):c&&c.initialization&&(c.initialization={sourceURL:c.initialization});let u={template:c,segmentTimeline:s&&eL(s,"S").map(e=>eB(e)),list:r&&en(eB(r),{segmentUrls:i,initialization:eB(l)}),base:n&&en(eB(n),{initialization:eB(l)})};return Object.keys(u).forEach(e=>{u[e]||delete u[e]}),u},ez=e=>es(eL(e.node,"EventStream").map(t=>{let r=eB(t),i=r.schemeIdUri;return eL(t,"Event").map(t=>{let n=eB(t),a=n.presentationTime||0,s=r.timescale||1,o=n.duration||0,l=a/s+e.attributes.start;return{schemeIdUri:i,value:r.value,id:n.id,start:l,end:l+o/s,messageData:eD(t)||n.messageData,contentEncoding:r.contentEncoding,presentationTimeOffset:r.presentationTimeOffset||0}})})),eq=e=>{let t,r;if(""===e)throw Error("DASH_EMPTY_MANIFEST");let i=new er.DOMParser;try{r=(t=i.parseFromString(e,"application/xml"))&&"MPD"===t.documentElement.tagName?t.documentElement:null}catch(e){}if(!r||r&&r.getElementsByTagName("parsererror").length>0)throw Error("DASH_INVALID_XML");return r};var eH=e.i(722277),eW=V([73,68,51]),eV=function(e,t){void 0===t&&(t=0);var r=(e=V(e))[t+5],i=e[t+6]<<21|e[t+7]<<14|e[t+8]<<7|e[t+9];return(16&r)>>4?i+20:i+10},eG=function e(t,r){return(void 0===r&&(r=0),(t=V(t)).length-r<10||!ee(t,eW,{offset:r}))?r:(r+=eV(t,r),e(t,r))};
133new Uint8Array([79,112,117,115,72,101,97,100]);var eX=function(e){return"string"==typeof e?J(e):e},eK=function(e){e=V(e);for(var t=[],r=0;e.length>r;){var i=e[r],n=0,a=0,s=e[++a];for(a++;128&s;)n=(127&s)<<7,s=e[a],a++;n+=127&s;for(var o=0;o<c.length;o++){var l=c[o],u=l.id,d=l.parser;if(i===u){t.push(d(e.subarray(a,a+n)));break}}r+=n+a}return t};c=[{id:3,parser:function(e){var t={tag:3,id:e[0]<<8|e[1],flags:e[2],size:3,dependsOnEsId:0,ocrEsId:0,descriptors:[],url:""};if(128&t.flags&&(t.dependsOnEsId=e[t.size]<<8|e[t.size+1],t.size+=2),64&t.flags){var r=e[t.size];t.url=Q(e.subarray(t.size+1,t.size+1+r)),t.size+=r}return 32&t.flags&&(t.ocrEsId=e[t.size]<<8|e[t.size+1],t.size+=2),t.descriptors=eK(e.subarray(t.size))||[],t}},{id:4,parser:function(e){return{tag:4,oti:e[0],streamType:e[1],bufferSize:e[2]<<16|e[3]<<8|e[4],maxBitrate:e[5]<<24|e[6]<<16|e[7]<<8|e[8],avgBitrate:e[9]<<24|e[10]<<16|e[11]<<8|e[12],descriptors:eK(e.subarray(13))}}},{id:5,parser:function(e){return{tag:5,bytes:e}}},{id:6,parser:function(e){return{tag:6,bytes:e}}}];var eY=function e(t,r,i){void 0===i&&(i=!1),r=Array.isArray(n=r)?n.map(function(e){return eX(e)}):[eX(n)],t=V(t);var n,a=[];if(!r.length)return a;for(var s=0;s<t.length;){var o=(t[s]<<24|t[s+1]<<16|t[s+2]<<8|t[s+3])>>>0,l=t.subarray(s+4,s+8);if(0===o)break;var c=s+o;if(c>t.length){if(i)break;c=t.length}var u=t.subarray(s+8,c);ee(l,r[0])&&(1===r.length?a.push(u):a.push.apply(a,e(u,r.slice(1),i))),s=c}return a},eQ={EBML:V([26,69,223,163]),DocType:V([66,130]),Segment:V([24,83,128,103]),SegmentInfo:V([21,73,169,102]),Tracks:V([22,84,174,107]),Track:V([174]),TrackNumber:V([215]),DefaultDuration:V([35,227,131]),TrackEntry:V([174]),TrackType:V([131]),FlagDefault:V([136]),CodecID:V([134]),CodecPrivate:V([99,162]),VideoTrack:V([224]),AudioTrack:V([225]),Cluster:V([31,67,182,117]),Timestamp:V([231]),TimestampScale:V([42,215,177]),BlockGroup:V([160]),BlockDuration:V([155]),Block:V([161]),SimpleBlock:V([163])},eJ=[128,64,32,16,8,4,2,1],eZ=function(e){for(var t=1,r=0;r<eJ.length&&!(e&eJ[r]);r++)t++;return t},e0=function(e,t,r,i){void 0===r&&(r=!0),void 0===i&&(i=!1);var n=eZ(e[t]),a=e.subarray(t,t+n);return r&&(a=Array.prototype.slice.call(e,t,t+n),a[0]^=eJ[n-1]),{length:n,value:K(a,{signed:i}),bytes:a}},e1=function e(t){return"string"==typeof t?t.match(/.{1,2}/g).map(function(t){return e(t)}):"number"==typeof t?Y(t):t},e2=function e(t,r,i){if(i>=r.length)return r.length;var n=e0(r,i,!1);if(ee(t.bytes,n.bytes))return i;var a=e0(r,i+n.length);return e(t,r,i+a.length+a.value+n.length)},e4=function e(t,r){r=Array.isArray(i=r)?i.map(function(e){return e1(e)}):[e1(i)],t=V(t);var i,n=[];if(!r.length)return n;for(var a=0;a<t.length;
133){var s=e0(t,a,!1),o=e0(t,a+s.length),l=a+s.length+o.length;127===o.value&&(o.value=e2(s,t,l),o.value!==t.length&&(o.value-=l));var c=l+o.value>t.length?t.length:l+o.value,u=t.subarray(l,c);ee(r[0],s.bytes)&&(1===r.length?n.push(u):n=n.concat(e(u,r.slice(1)))),a+=s.length+o.length+u.length}return n},e5=V([0,0,0,1]),e3=V([0,0,1]),e8=V([0,0,3]),e6=function(e){for(var t=[],r=1;r<e.length-2;)ee(e.subarray(r,r+3),e8)&&(t.push(r+2),r++),r++;if(0===t.length)return e;var i=e.length-t.length,n=new Uint8Array(i),a=0;for(r=0;r<i;a++,r++)a===t[0]&&(a++,t.shift()),n[r]=e[a];return n},e7=function(e,t,r,i){void 0===i&&(i=1/0),e=V(e),r=[].concat(r);for(var n,a=0,s=0;a<e.length&&(s<i||n);){var o=void 0;if(ee(e.subarray(a),e5)?o=4:ee(e.subarray(a),e3)&&(o=3),!o){a++;continue}if(s++,n)return e6(e.subarray(n,a));var l=void 0;"h264"===t?l=31&e[a+o]:"h265"===t&&(l=e[a+o]>>1&63),-1!==r.indexOf(l)&&(n=a+o),a+=o+("h264"===t?1:2)}return e.subarray(0,0)},e9={webm:V([119,101,98,109]),matroska:V([109,97,116,114,111,115,107,97]),flac:V([102,76,97,67]),ogg:V([79,103,103,83]),ac3:V([11,119]),riff:V([82,73,70,70]),avi:V([65,86,73]),wav:V([87,65,86,69]),"3gp":V([102,116,121,112,51,103]),mp4:V([102,116,121,112]),fmp4:V([115,116,121,112]),mov:V([102,116,121,112,113,116]),moov:V([109,111,111,118]),moof:V([109,111,111,102])},te={aac:function(e){var t=eG(e);return ee(e,[255,16],{offset:t,mask:[255,22]})},mp3:function(e){var t=eG(e);return ee(e,[255,2],{offset:t,mask:[255,6]})},webm:function(e){return ee(e4(e,[eQ.EBML,eQ.DocType])[0],e9.webm)},mkv:function(e){return ee(e4(e,[eQ.EBML,eQ.DocType])[0],e9.matroska)},mp4:function(e){return!(te["3gp"](e)||te.mov(e))&&(!!(ee(e,e9.mp4,{offset:4})||ee(e,e9.fmp4,{offset:4})||ee(e,e9.moof,{offset:4})||ee(e,e9.moov,{offset:4}))||void 0)},mov:function(e){return ee(e,e9.mov,{offset:4})},"3gp":function(e){return ee(e,e9["3gp"],{offset:4})},ac3:function(e){var t=eG(e);return ee(e,e9.ac3,{offset:t})},ts:function(e){if(e.length<189&&e.length>=1)return 71===e[0];for(var t=0;t+188<e.length&&t<188;){if(71===e[t]&&71===e[t+188])return!0;t+=1}return!1},flac:function(e){var t=eG(e);return ee(e,e9.flac,{offset:t})},ogg:function(e){return ee(e,e9.ogg)},avi:function(e){return ee(e,e9.riff)&&ee(e,e9.avi,{offset:8})},wav:function(e){return ee(e,e9.riff)&&ee(e,e9.wav,{offset:8})},h264:function(e){return e7(e,"h264",7,3).length},h265:function(e){return e7(e,"h265",[32,33],3).length}},tt=Object.keys(te).filter(function(e){return"ts"!==e&&"h264"!==e&&"h265"!==e}).concat(["ts","h264","h265"]);tt.forEach(function(e){var t=te[e];te[e]=function(e){return t(V(e))}});var tr=function(e){e=V(e);for(var t=0;t<tt.length;t++){var r=tt[t];if(te[r](e))return r}return""},ti=e.i(98124),tn="8.23.7";let ta={},ts=function(e,t){return ta[e]=ta[e]||[],t&&(ta[e]=ta[e].concat(t)),ta[e]},to=function(e,t){let r=ts(e).indexOf(t);return!(r<=-1)&&(ta[e]=ta[e].slice(),ta[e].splice(r,1),!0)},tl={prefixed:!0},tc=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror","fullscreen"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror","-webkit-full-screen"]],tu=tc[0];for(let e=0;e<tc.length;e++)if(tc[e][1]in f.default){t=tc[e];break}if(t){for(let e=0;e<t.length;e++)tl[tu[e]]=t[e];tl.prefixed=t[0]!==tu[0]}let td=[],tp=function e(t,r=":",i=""){let n,a="info";function s(...e){n("log",a,e)}return n=(e,r,n)=>{let a=s.levels[r],o=RegExp(`^(${a})$`),l=t;if("log"!==e&&n.unshift(e.toUpperCase()+":"),i&&(l=`%c${t}`,n.unshift(i)),n.unshift(l+":"),td){td.push([].concat(n));let e=td.length-1e3;td.splice(0,e>0?e:0)}if(!h.default.console)return;let c=h.default.console[e];c||"debug"!==e||(c=h.default.console.info||h.default.console.log),c&&a&&o.test(e)&&c[Array.isArray(n)?"apply":"call"](h.default.console,n)},s.createLogger=(n,a,s)=>{let o=void 0!==a?a:r;return e(`${t} ${o} ${n}`,o,void 0!==s?s:i)},s.createNewLogger=(t,r,i)=>e(t,r,i),s.levels={all:"debug|log|warn|error",off:"",debug:"debug|log|warn|error",info:"log|warn|error",warn:"warn|error",error:"error",DEFAULT:a},s.level=e=>{if("string"==typeof e){if(!s.levels.hasOwnProperty(e))throw Error(`"${e}" in not a valid log level`);a=e}return a},s.history=()=>td?[].concat(td):[],s.history.filter=e=>(td||[]).filter(t=>RegExp(`.*${e}.*`).test(t[0])),s.history.clear=()=>{td&&(td.length=0)},s.history.disable=()=>{null!==td&&(td.length=0,td=null)},s.history.enable=()=>{null===td&&(td=[])},s.error=(...e)=>n("error",a,e),s.warn=(...e)=>n("warn",a,e),s.debug=(...e)=>n("debug",a,e),s}("VIDEOJS"),th=tp.createLogger,tf=Object.prototype.toString,tg=function(e){return tb(e)?Object.keys(e):[]};function tm(e,t){tg(e).forEach(r=>t(e[r],r))}function ty(e,t,r=0){return tg(e).reduce((r,i)=>t(r,e[i],i),r)}function tb(e){return!!e&&"object"==typeof e}function tv(e){return tb(e)&&"[object Object]"===tf.call(e)&&e.constructor===Object}function tx(...e){let t={};
133return e.forEach(e=>{e&&tm(e,(e,r)=>{if(!tv(e)){t[r]=e;return}tv(t[r])||(t[r]={}),t[r]=tx(t[r],e)})}),t}function t_(e={}){let t=[];for(let r in e)if(e.hasOwnProperty(r)){let i=e[r];t.push(i)}return t}function tw(e,t,r,i=!0){let n=r=>Object.defineProperty(e,t,{value:r,enumerable:!0,writable:!0}),a={configurable:!0,enumerable:!0,get(){let e=r();return n(e),e}};return i&&(a.set=n),Object.defineProperty(e,t,a)}var tT=Object.freeze({__proto__:null,each:tm,reduce:ty,isObject:tb,isPlain:tv,merge:tx,values:t_,defineLazyProperty:tw});let tS=!1,tC=null,tE=!1,tk=!1,tN=!1,tI=!1,tA=!1,tj=null,tP=null,tO=!!(h.default.cast&&h.default.cast.framework&&h.default.cast.framework.CastReceiverContext),tL=null,tD=!1,tR=!1,tM=!1,tB=!1,tU=!1,tF=!1,t$=!1,tz=!!(tX()&&("ontouchstart"in h.default||h.default.navigator.maxTouchPoints||h.default.DocumentTouch&&h.default.document instanceof h.default.DocumentTouch)),tq=h.default.navigator&&h.default.navigator.userAgentData;if(tq&&tq.platform&&tq.brands&&(tE="Android"===tq.platform,tN=!!tq.brands.find(e=>"Microsoft Edge"===e.brand),tI=!!tq.brands.find(e=>"Chromium"===e.brand),tA=!tN&&tI,tj=tP=(tq.brands.find(e=>"Chromium"===e.brand)||{}).version||null,tR="Windows"===tq.platform),!tI){let e,t,i,n,a=h.default.navigator&&h.default.navigator.userAgent||"";tS=/iPod/i.test(a),tC=(e=a.match(/OS (\d+)_/i))&&e[1]?e[1]:null,t
133E=/Android/i.test(a),r=function(){let e=a.match(/Android (\d+)(?:\.(\d+))?(?:\.(\d+))*/i);if(!e)return null;let t=e[1]&&parseFloat(e[1]),r=e[2]&&parseFloat(e[2]);return t&&r?parseFloat(e[1]+"."+e[2]):t||null}(),tk=/Firefox/i.test(a),tN=/Edg/i.test(a),tI=/Chrome/i.test(a)||/CriOS/i.test(a),tA=!tN&&tI,tj=tP=(t=a.match(/(Chrome|CriOS)\/(\d+)/))&&t[2]?parseFloat(t[2]):null,!(n=(i=/MSIE\s(\d+)\.\d/.exec(a))&&parseFloat(i[1]))&&/Trident\/7.0/i.test(a)&&/rv:11.0/.test(a)&&(n=11),tL=n,tU=/Tizen/i.test(a),tF=/Web0S/i.test(a),t$=tU||tF,tD=/Safari/i.test(a)&&!tA&&!tE&&!tN&&!t$,tR=/Windows/i.test(a),tM=/iPad/i.test(a)||tD&&tz&&!/iPhone/i.test(a),tB=/iPhone/i.test(a)&&!tM}let tH=tB||tM||tS,tW=(tD||tH)&&!tA;var tV=Object.freeze({__proto__:null,get IS_IPOD(){return tS},get IOS_VERSION(){return tC},get IS_ANDROID(){return tE},get ANDROID_VERSION(){return r},get IS_FIREFOX(){return tk},get IS_EDGE(){return tN},get IS_CHROMIUM(){return tI},get IS_CHROME(){return tA},get CHROMIUM_VERSION(){return tj},get CHROME_VERSION(){return tP},IS_CHROMECAST_RECEIVER:tO,get IE_VERSION(){return tL},get IS_SAFARI(){return tD},get IS_WINDOWS(){return tR},get IS_IPAD(){return tM},get IS_IPHONE(){return tB},get IS_TIZEN(){return tU},get IS_WEBOS(){return tF},get IS_SMART_TV(){return t$},TOUCH_ENABLED:tz,IS_IOS:tH,IS_ANY_SAFARI:tW});function tG(e){return"string"==typeof e&&!!e.trim()}function tX(){return f.default===h.default.document}function tK(e){return tb(e)&&1===e.nodeType}function tY(){try{return h.default.parent!==h.default.self}catch(e){return!0}}function tQ(e){return function(t,r){if(!tG(t))return f.default[e](null);tG(r)&&(r=f.default.querySelector(r));let i=tK(r)?r:f.default;return i[e]&&i[e](t)}}function tJ(e="div",t={},r={},i){let n=f.default.createElement(e);return Object.getOwnPropertyNames(t).forEach(function(e){let r=t[e];"textContent"===e?tZ(n,r):(n[e]!==r||"tabIndex"===e)&&(n[e]=r)}),Object.getOwnPropertyNames(r).forEach(function(e){n.setAttribute(e,r[e])}),i&&rl(n,i),n}function tZ(e,t){return void 0===e.textContent?e.innerText=t:e.textContent=t,e}function t0(e,t){t.firstChild?t.insertBefore(e,t.firstChild):t.appendChild(e)}function t1(e,t){if(t.indexOf(" ")>=0)throw Error("class has illegal whitespace characters");return e.classList.contains(t)}function t2(e,...t){return e.classList.add(...t.reduce((e,t)=>e.concat(t.split(/\s+/)),[])),e}function t4(e,...t){return e?(e.classList.remove(...t.reduce((e,t)=>e.concat(t.split(/\s+/)),[])),e):(tp.warn("removeClass was called with an element that doesn't exist"),null)}function t5(e,t,r){return"function"==typeof r&&(r=r(e,t)),"boolean"!=typeof r&&(r=void 0),t.split(/\s+/).forEach(t=>e.classList.toggle(t,r)),e}function t3(e,t){Object.getOwnPropertyNames(t).forEach(function(r){let i=t[r];null==i||!1===i?e.removeAttribute(r):e.setAttribute(r,!0===i?"":i)})}function t8(e){let t={},r=["autoplay","controls","playsinline","loop","muted","default","defaultMuted"];if(e&&e.attributes&&e.attributes.length>0){let i=e.attributes;for(let e=i.length-1;e>=0;e--){let n=i[e].name,a=i[e].value;r.includes(n)&&(a=null!==a),t[n]=a}}return t}function t6(e,t){return e.getAttribute(t)}function t7(e,t,r){e.setAttribute(t,r)}function t9(e,t){e.removeAttribute(t)}function re(){f.default.body.focus(),f.default.onselectstart=function(){return!1}}function rt(){f.default.onselectstart=function(){return!0}}function rr(e){if(e&&e.getBoundingClientRect&&e.parentNode){let t=e.getBoundingClientRect(),r={};return["bottom","height","left","right","top","width"].forEach(e=>{void 0!==t[e]&&(r[e]=t[e])}),r.height||(r.height=parseFloat(rh(e,"height"))),r.width||(r.width=parseFloat(rh(e,"width"))),r}}function ri(e){if(!e||e&&!e.offsetParent)return{left:0,top:0,width:0,height:0};let t=e.offsetWidth,r=e.offsetHeight,i=0,n=0;for(;e.offsetParent&&e!==f.default[tl.fullscreenElement];)i+=e.offsetLeft,n+=e.offsetTop,e=e.offsetParent;return{left:i,top:n,width:t,height:r}}function rn(e,t){let r={x:0,y:0};if(tH){let t=e;for(;t&&"html"!==t.nodeName.toLowerCase();){let e=rh(t,"transform");
133if(/^matrix/.test(e)){let t=e.slice(7,-1).split(/,\s/).map(Number);r.x+=t[4],r.y+=t[5]}else if(/^matrix3d/.test(e)){let t=e.slice(9,-1).split(/,\s/).map(Number);r.x+=t[12],r.y+=t[13]}if(t.assignedSlot&&t.assignedSlot.parentElement&&h.default.WebKitCSSMatrix){let e=h.default.getComputedStyle(t.assignedSlot.parentElement).transform,i=new h.default.WebKitCSSMatrix(e);r.x+=i.m41,r.y+=i.m42}t=t.parentNode||t.host}}let i={},n=ri(t.target),a=ri(e),s=a.width,o=a.height,l=t.offsetY-(a.top-n.top),c=t.offsetX-(a.left-n.left);return t.changedTouches&&(c=t.changedTouches[0].pageX-a.left,l=t.changedTouches[0].pageY+a.top,tH&&(c-=r.x,l-=r.y)),i.y=1-Math.max(0,Math.min(1,l/o)),i.x=Math.max(0,Math.min(1,c/s)),i}function ra(e){return tb(e)&&3===e.nodeType}function rs(e){for(;e.firstChild;)e.removeChild(e.firstChild);return e}function ro(e){return"function"==typeof e&&(e=e()),(Array.isArray(e)?e:[e]).map(e=>("function"==typeof e&&(e=e()),tK(e)||ra(e))?e:"string"==typeof e&&/\S/.test(e)?f.default.createTextNode(e):void 0).filter(e=>e)}function rl(e,t){return ro(t).forEach(t=>e.appendChild(t)),e}function rc(e,t){return rl(rs(e),t)}function ru(e){return void 0===e.button&&void 0===e.buttons||0===e.button&&void 0===e.buttons||"mouseup"===e.type&&0===e.button&&0===e.buttons||"mousedown"===e.type&&0===e.button&&0===e.buttons||0===e.button&&1===e.buttons}let rd=tQ("querySelector"),rp=tQ("querySelectorAll");function rh(e,t){if(!e||!t)return"";if("function"==typeof h.default.getComputedStyle){let r;try{r=h.default.getComputedStyle(e)}catch(e){return""}return r?r.getPropertyValue(t)||r[t]:""}return""}function rf(e){[...f.default.styleSheets].forEach(t=>{try{let r=[...t.cssRules].map(e=>e.cssText).join(""),i=f.default.createElement("style");i.textContent=r,e.document.head.appendChild(i)}catch(i){let r=f.default.createElement("link");r.rel="stylesheet",r.type=t.type,r.media=t.media.mediaText,r.href=t.href,e.document.head.appendChild(r)}})}var rg=Object.freeze({__proto__:null,isReal:tX,isEl:tK,isInFrame:tY,createEl:tJ,textContent:tZ,prependTo:t0,hasClass:t1,addClass:t2,removeClass:t4,toggleClass:t5,setAttributes:t3,getAttributes:t8,getAttribute:t6,setAttribute:t7,removeAttribute:t9,blockTextSelection:re,unblockTextSelection:rt,getBoundingClientRect:rr,findPosition:ri,getPointerPosition:rn,isTextNode:ra,emptyEl:rs,normalizeContent:ro,appendContent:rl,insertContent:rc,isSingleLeftClick:ru,$:rd,$$:rp,computedStyle:rh,copyStyleSheetsToWindow:rf});let rm=!1,ry=function(){if(!1===i.options.autoSetup)return;let e=Array.prototype.slice.call(f.default.getElementsByTagName("video")),t=Array.prototype.slice.call(f.default.getElementsByTagName("audio")),r=Array.prototype.slice.call(f.default.getElementsByTagName("video-js")),n=e.concat(t,r);if(n&&n.length>0)for(let e=0,t=n.length;e<t;e++){let t=n[e];if(t&&t.getAttribute)void 0===t.player&&null!==t.getAttribute("data-setup")&&i(t);else{rb(1);break}}else rm||rb(1)};function rb(e,t){tX()&&(t&&(i=t),h.default.setTimeout(ry,e))}function rv(){rm=!0,h.default.removeEventListener("load",rv)}tX()&&("complete"===f.default.readyState?rv():h.default.addEventListener("load",rv));let rx=function(e){let t=f.default.createElement("style");return t.className=e,t},r_=function(e,t){e.styleSheet?e.styleSheet.cssText=t:e.textContent=t};var rw=new WeakMap;let rT=3;function rS(e,t){if(!rw.has(e))return;let r=rw.get(e);0===r.handlers[t].length&&(delete r.handlers[t],e.removeEventListener?e.removeEventListener(t,r.dispatcher,!1):e.detachEvent&&e.detachEvent("on"+t,r.dispatcher)),Object.getOwnPropertyNames(r.handlers).length<=0&&(delete r.handlers,delete r.dispatcher,delete r.disabled),0===Object.getOwnPropertyNames(r).length&&rw.delete(e)}function rC(e,t,r,i){r.forEach(function(r){e(t,r,i)})}function rE(e){if(e.fixed_)return e;function t(){return!0}function r(){return!1}if(!e||!e.isPropagationStopped||!e.isImmediatePropagationStopped){let i=e||h.default.event;e={};let n=["layerX","layerY","keyLocation","path","webkitMovementX","webkitMovementY","mozPressure","mozInputSource"];for(let t in i)n.includes(t)||"returnValue"===t&&i.preventDefault||(e[t]=i[t]);if(e.target||(e.target=e.srcElement||f.default),e.relatedTarget||(e.relatedTarget=e.fromElement===e.target?e.toElement:e.fromElement),e.preventDefault=function(){i.preventDefault&&i.preventDefault(),e.returnValue=!1,i.returnValue=!1,e.defaultPrevented=!0},e.defaultPrevented=!1,e.stopPropagation=function(){i.stopPropagation&&i.stopPropagation(),e.cancelBubble=!0,i.cancelBubble=!0,e.isPropagationStopped=t},e.isPropagationStopped=r,e.stopImmediatePropagation=function(){i.stopImmediatePropagation&&i.stopImmediatePropagation(),e.isImmediatePropagationStopped=t,e.stopPropagation()},e.isImmediatePropagationStopped=r,null!==e.clientX&&void 0!==e.clientX){let t=f.default.documentElement,r=f.default.body;e.pageX=e.clientX+(t&&t.scrollLeft||r&&r.scrollLeft||0)-(t&&t.clientLeft||r&&r.clientLeft||0),e.pageY=e.clientY+(t&&t.scrollTop||r&&r.scrollTop||0)-(t&&t.clientTop||r&&r.clientTop||0)}e.which=e.charCode||e.keyCode,null!==e.button&&void 0!==e.button&&(e.button=1&e.button?0:4&e.button?1:2&e.button?2:0)}return e.fixed_=!0,e}let rk=function(){if("boolean"!=typeof n){n=!1;try{let e=Object.defineProperty({},"passive",{get(){n=!0}});h.default.addEventListener("test",null,e),h.default.removeEventListener("test",null,e)}catch(e){}}return n},rN=["touchstart","touchmove"];function rI(e,t,r){if(Array.isArray(t))return rC(rI,e,t,r);rw.has(e)||rw.set(e,{});let i=rw.get(e);if(i.handlers||(i.handlers={}),i.handlers[t]||(i.handlers[t]=[]),r.guid||(r.guid=rT++),i.handlers[t].push(r),i.dispatcher||(i.disabled=!1,i.dispatcher=function(t,r){if(i.disabled)return;t=rE(t);let n=i.handlers[t.type];if(n){let i=n.slice(0);for(let n=0,a=i.length;n<a;n++)if(t.isImmediatePropagationStopped())break;else try{i[n].call(e,t,r)}catch(e){tp.error(e)}}}),1===i.handlers[t].length)if(e.addEventListener){let r=!1;rk()&&rN.indexOf(t)>-1&&(r={passive:!0}),e.addEventListener(t,i.dispatcher,r)}else e.attachEvent&&e.attachEvent("on"+t,i.dispatcher)}function rA(e,t,r){if(!rw.has(e))return;let i=rw.get(e);if(!i.handlers)return;if(Array.isArray(t))return rC(rA,e,t,r);let n=function(e,t){i.handlers[t]=[],rS(e,t)};if(void 0===t){for(let t in i.handlers)Object.prototype.hasOwnProperty.call(i.handlers||{},t)&&n(e,t);return}let a=i.handlers[t];if(a){if(!r)return void n(e,t);if(r.guid)for(let e=0;e<a.length;e++)a[e].guid===r.guid&&a.splice(e--,1);rS(e,t)}}function rj(e,t,r){let i=rw.has(e)?rw.get(e):{},n=e.parentNode||e.ownerDocument;if("string"==typeof t?t={type:t,target:e}:t.target||(t.target=e),t=rE(t),i.dispatcher&&i.dispatcher.call(e,t,r),n&&!t.isPropagationStopped()&&!0===t.bubbles)rj.call(null,n,t,r);else if(!n&&!t.defaultPrevented&&t.target&&t.target[t.type]){rw.has(t.target)||rw.set(t.target,{});let e=rw.get(t.target);t.target[t.type]&&(e.disabled=!0,"function"==typeof t.target[t.type]&&t.target[t.type](),e.disabled=!1)}return!t.defaultPrevented}function rP(e,t,r){if(Array.isArray(t))return rC(rP,e,t,r);let i=function(){rA(e,t,i),r.apply(this,arguments)};i.guid=r.guid=r.guid||rT++,rI(e,t,i)}function rO(e,t,r){let i=function(){rA(e,t,i),r.apply(this,arguments)};i.guid=r.guid=r.guid||rT++,rI(e,t,i)}var rL=Object.freeze({__proto__:null,fixEvent:rE,on:rI,off:rA,trigger:rj,one:rP,any:rO});let rD=function(e,t,r){t.guid||(t.guid=rT++);let i=t.bind(e);return i.guid=r?r+"_"+t.guid:t.guid,i},rR=function(e,t){let r=h.default.performance.now();return function(...i){let n=h.default.performance.now();n-r>=t&&(e(...i),r=n)}},rM=function(e,t,r,i=h.default){let n,a=function(){let a=this,s=arguments,o=function(){n=null,o=null,r||e.apply(a,s)};!n&&r&&e.apply(a,s),i.clearTimeout(n),n=i.setTimeout(o,t)};return a.cancel=()=>{i.clearTimeout(n),n=null},a};var rB=Object.freeze({__proto__:null,UPDATE_REFRESH_INTERVAL:30,bind_:rD,throttle:rR,debounce:rM});class rU{on(e,t){let r=this.addEventListener;this.addEventListener=()=>{},rI(this,e,t),this.addEventListener=r}off(e,t){rA(this,e,t)}
133one(e,t){let r=this.addEventListener;this.addEventListener=()=>{},rP(this,e,t),this.addEventListener=r}any(e,t){let r=this.addEventListener;this.addEventListener=()=>{},rO(this,e,t),this.addEventListener=r}trigger(e){let t=e.type||e;"string"==typeof e&&(e={type:t}),e=rE(e),this.allowedEvents_[t]&&this["on"+t]&&this["on"+t](e),rj(this,e)}queueTrigger(e){a||(a=new Map);let t=e.type||e,r=a.get(this);r||(r=new Map,a.set(this,r));let i=r.get(t);r.delete(t),h.default.clearTimeout(i);let n=h.default.setTimeout(()=>{r.delete(t),0===r.size&&(r=null,a.delete(this)),this.trigger(e)},0);r.set(t,n)}}rU.prototype.allowedEvents_={},rU.prototype.addEventListener=rU.prototype.on,rU.prototype.removeEventListener=rU.prototype.off,rU.prototype.dispatchEvent=rU.prototype.trigger;let rF=e=>"function"==typeof e.name?e.name():"string"==typeof e.name?e.name:e.name_?e.name_:e.constructor&&e.constructor.name?e.constructor.name:typeof e,r$=e=>e instanceof rU||!!e.eventBusEl_&&["on","one","off","trigger"].every(t=>"function"==typeof e[t]),rz=e=>"string"==typeof e&&/\S/.test(e)||Array.isArray(e)&&!!e.length,rq=(e,t,r)=>{if(!e||!e.nodeName&&!r$(e))throw Error(`Invalid target for ${rF(t)}#${r}; must be a DOM node or evented object.`)},rH=(e,t,r)=>{if(!rz(e))throw Error(`Invalid event type for ${rF(t)}#${r}; must be a non-empty string or array.`)},rW=(e,t,r)=>{if("function"!=typeof e)throw Error(`Invalid listener for ${rF(t)}#${r}; must be a function.`)},rV=(e,t,r)=>{let i,n,a,s=t.length<3||t[0]===e||t[0]===e.eventBusEl_;return s?(i=e.eventBusEl_,t.length>=3&&t.shift(),[n,a]=t):(i=t[0],n=t[1],a=t[2]),rq(i,e,r),rH(n,e,r),rW(a,e,r),{isTargetingSelf:s,target:i,type:n,listener:a=rD(e,a)}},rG=(e,t,r,i)=>{rq(e,e,t),e.nodeName?rL[t](e,r,i):e[t](r,i)},rX={on(...e){let{isTargetingSelf:t,target:r,type:i,listener:n}=rV(this,e,"on");if(rG(r,"on",i,n),!t){let e=()=>this.off(r,i,n);e.guid=n.guid;let t=()=>this.off("dispose",e);t.guid=n.guid,rG(this,"on","dispose",e),rG(r,"on","dispose",t)}},one(...e){let{isTargetingSelf:t,target:r,type:i,listener:n}=rV(this,e,"one");if(t)rG(r,"one",i,n);else{let e=(...t)=>{this.off(r,i,e),n.apply(null,t)};e.guid=n.guid,rG(r,"one",i,e)}},any(...e){let{isTargetingSelf:t,target:r,type:i,listener:n}=rV(this,e,"any");if(t)rG(r,"any",i,n);else{let e=(...t)=>{this.off(r,i,e),n.apply(null,t)};e.guid=n.guid,rG(r,"any",i,e)}},off(e,t,r){!e||rz(e)?rA(this.eventBusEl_,e,t):(rq(e,this,"off"),rH(t,this,"off"),rW(r,this,"off"),r=rD(this,r),this.off("dispose",r),e.nodeName?(rA(e,t,r),rA(e,"dispose",r)):r$(e)&&(e.off(t,r),e.off("dispose",r)))},trigger(e,t){if(rq(this.eventBusEl_,this,"trigger"),!rz(e&&"string"!=typeof e?e.type:e))throw Error(`Invalid event type for ${rF(this)}#trigger; must be a non-empty string or object with a type key that has a non-empty value.`);return rj(this.eventBusEl_,e,t)}};function rK(e,t={}){let{eventBusKey:r}=t;if(r){if(!e[r].nodeName)throw Error(`The eventBusKey "${r}" does not refer to an element.`);e.eventBusEl_=e[r]}else e.eventBusEl_=tJ("span",{className:"vjs-event-bus"});return Object.assign(e,rX),e.eventedCallbacks&&e.eventedCallbacks.forEach(e=>{e()}),e.on("dispose",()=>{e.off(),[e,e.el_,e.eventBusEl_].forEach(function(e){e&&rw.has(e)&&rw.delete(e)}),h.default.setTimeout(()=>{e.eventBusEl_=null},0)}),e}let rY={state:{},setState(e){let t;return"function"==typeof e&&(e=e()),tm(e,(e,r)=>{this.state[r]!==e&&((t=t||{})[r]={from:this.state[r],to:e}),this.state[r]=e}),t&&r$(this)&&this.trigger({changes:t,type:"statechanged"}),t}};function rQ(e,t){return Object.assign(e,rY),e.state=Object.assign({},e.state,t),"function"==typeof e.handleStateChanged&&r$(e)&&e.on("statechanged",e.handleStateChanged),e}let rJ=function(e){return"string"!=typeof e?e:e.replace(/./,e=>e.toLowerCase())},rZ=function(e){return"string"!=typeof e?e:e.replace(/./,e=>e.toUpperCase())},r0=function(e,t){return rZ(e)===rZ(t)};var r1=Object.freeze({__proto__:null,toLowerCase:rJ,toTitleCase:rZ,titleCaseEquals:r0});class r2{constructor(e,t,r){if(!e&&this.play?this.player_=e=this:this.player_=e,this.isDisposed_=!1,this.parentComponent_=null,this.options_=tx({},this.options_),t=this.options_=tx(this.options_,t),this.id_=t.id||t.el&&t.el.id,!this.id_){const t=e&&e.id&&e.id()||"no_player";this.id_=`${t}_component_${rT++}`}this.name_=t.name||null,t.el?this.el_=t.el:!1!==t.createEl&&(this.el_=this.createEl()),t.className&&this.el_&&t.className.split(" ").forEach(e
133=>this.addClass(e)),["on","off","one","any","trigger"].forEach(e=>{this[e]=void 0}),!1!==t.evented&&(rK(this,{eventBusKey:this.el_?"el_":null}),this.handleLanguagechange=this.handleLanguagechange.bind(this),this.on(this.player_,"languagechange",this.handleLanguagechange)),rQ(this,this.constructor.defaultState),this.children_=[],this.childIndex_={},this.childNameIndex_={},this.setTimeoutIds_=new Set,this.setIntervalIds_=new Set,this.rafIds_=new Set,this.namedRafs_=new Map,this.clearingTimersOnDispose_=!1,!1!==t.initChildren&&this.initChildren(),this.ready(r),!1!==t.reportTouchActivity&&this.enableTouchActivity()}dispose(e={}){if(!this.isDisposed_){if(this.readyQueue_&&(this.readyQueue_.length=0),this.trigger({type:"dispose",bubbles:!1}),this.isDisposed_=!0,this.children_)for(let e=this.children_.length-1;e>=0;e--)this.children_[e].dispose&&this.children_[e].dispose();this.children_=null,this.childIndex_=null,this.childNameIndex_=null,this.parentComponent_=null,this.el_&&(this.el_.parentNode&&(e.restoreEl?this.el_.parentNode.replaceChild(e.restoreEl,this.el_):this.el_.parentNode.removeChild(this.el_)),this.el_=null),this.player_=null}}isDisposed(){return!!this.isDisposed_}player(){return this.player_}options(e){return e&&(this.options_=tx(this.options_,e)),this.options_}el(){return this.el_}createEl(e,t,r){return tJ(e,t,r)}localize(e,t,r=e){let i=this.player_.language&&this.player_.language(),n=this.player_.languages&&this.player_.languages(),a=n&&n[i],s=i&&i.split("-")[0],o=n&&n[s],l=r;return a&&a[e]?l=a[e]:o&&o[e]&&(l=o[e]),t&&(l=l.replace(/\{(\d+)\}/g,function(e,r){let i=t[r-1],n=i;return void 0===i&&(n=e),n})),l}handleLanguagechange(){}contentEl(){return this.contentEl_||this.el_}id(){return this.id_}name(){return this.name_}children(){return this.children_}getChildById(e){return this.childIndex_[e]}getChild(e){if(e)return this.childNameIndex_[e]}getDescendant(...e){e=e.reduce((e,t)=>e.concat(t),[]);let t=this;for(let r=0;r<e.length;r++)if(!(t=t.getChild(e[r]))||!t.getChild)return;return t}setIcon(e,t=this.el()){if(!this.player_.options_.experimentalSvgIcons)return;let r="http://www.w3.org/2000/svg",i=tJ("span",{className:"vjs-icon-placeholder vjs-svg-icon"},{"aria-hidden":"true"}),n=f.default.createElementNS(r,"svg");n.setAttributeNS(null,"viewBox","0 0 512 512");let a=f.default.createElementNS(r,"use");return n.appendChild(a),a.setAttributeNS(null,"href",`#vjs-icon-${e}`),i.appendChild(n),this.iconIsSet_?t.replaceChild(i,t.querySelector(".vjs-icon-placeholder")):t.appendChild(i),this.iconIsSet_=!0,i}addChild(e,t={},r=this.children_.length){let i,n;if("string"==typeof e){n=rZ(e);let r=t.componentClass||n;t.name=n;let a=r2.getComponent(r);if(!a)throw Error(`Component ${r} does not exist`);if("function"!=typeof a)return null;i=new a(this.player_||this,t)}else i=e;if(i.parentComponent_&&i.parentComponent_.removeChild(i),this.children_.splice(r,0,i),i.parentComponent_=this,"function"==typeof i.id&&(this.childIndex_[i.id()]=i),(n=n||i.name&&rZ(i.name()))&&(this.childNameIndex_[n]=i,this.childNameIndex_[rJ(n)]=i),"function"==typeof i.el&&i.el()){let e=null;this.children_[r+1]&&(this.children_[r+1].el_?e=this.children_[r+1].el_:tK(this.children_[r+1])&&(e=this.children_[r+1])),this.contentEl().insertBefore(i.el(),e)}return i}removeChild(e){if("string"==typeof e&&(e=this.getChild(e)),!e||!this.children_)return;let t=!1;for(let r=this.children_.length-1;r>=0;r--)if(this.children_[r]===e){t=!0,this.children_.splice(r,1);break}if(!t)return;e.parentComponent_=null,this.childIndex_[e.id()]=null,this.childNameIndex_[rZ(e.name())]=null,this.childNameIndex_[rJ(e.name())]=null;let r=e.el();r&&r.parentNode===this.contentEl()&&this.contentEl().removeChild(e.el())}initChildren(){let e=this.options_.children;if(e){let t,r=this.options_,i=e=>{let t=e.name,i=e.opts;if(void 0!==r[t]&&(i=r[t]),!1===i)return;!0===i&&(i={}),i.playerOptions=this.options_.playerOptions;let n=this.addChild(t,i);n&&(this[t]=n)},n=r2.getComponent("Tech");(t=Array.isArray(e)?e:Object.keys(e)).concat(Object.keys(this.options_).filter(function(e){return!t.some(function(t){return"string"==typeof t?e===t:e===t.name})})).map(t=>{let r,i;return"string"==typeof t?i=e[r=t]||this.options_[r]||{}:(r=t.name,i=t),{name:r,opts:i}}).filter(e=>
133{let t=r2.getComponent(e.opts.componentClass||rZ(e.name));return t&&!n.isTech(t)}).forEach(i)}}buildCSSClass(){return""}ready(e,t=!1){if(e){if(!this.isReady_){this.readyQueue_=this.readyQueue_||[],this.readyQueue_.push(e);return}t?e.call(this):this.setTimeout(e,1)}}triggerReady(){this.isReady_=!0,this.setTimeout(function(){let e=this.readyQueue_;this.readyQueue_=[],e&&e.length>0&&e.forEach(function(e){e.call(this)},this),this.trigger("ready")},1)}$(e,t){return rd(e,t||this.contentEl())}$$(e,t){return rp(e,t||this.contentEl())}hasClass(e){return t1(this.el_,e)}addClass(...e){t2(this.el_,...e)}removeClass(...e){t4(this.el_,...e)}toggleClass(e,t){t5(this.el_,e,t)}show(){this.removeClass("vjs-hidden")}hide(){this.addClass("vjs-hidden")}lockShowing(){this.addClass("vjs-lock-showing")}unlockShowing(){this.removeClass("vjs-lock-showing")}getAttribute(e){return t6(this.el_,e)}setAttribute(e,t){t7(this.el_,e,t)}removeAttribute(e){t9(this.el_,e)}width(e,t){return this.dimension("width",e,t)}height(e,t){return this.dimension("height",e,t)}dimensions(e,t){this.width(e,!0),this.height(t)}dimension(e,t,r){if(void 0!==t){(null===t||t!=t)&&(t=0),-1!==(""+t).indexOf("%")||-1!==(""+t).indexOf("px")?this.el_.style[e]=t:"auto"===t?this.el_.style[e]="":this.el_.style[e]=t+"px",r||this.trigger("componentresize");return}if(!this.el_)return 0;let i=this.el_.style[e],n=i.indexOf("px");return -1!==n?parseInt(i.slice(0,n),10):parseInt(this.el_["offset"+rZ(e)],10)}currentDimension(e){let t=0;if("width"!==e&&"height"!==e)throw Error("currentDimension only accepts width or height value");if(0===(t=parseFloat(t=rh(this.el_,e)))||isNaN(t)){let r=`offset${rZ(e)}`;t=this.el_[r]}return t}currentDimensions(){return{width:this.currentDimension("width"),height:this.currentDimension("height")}}currentWidth(){return this.currentDimension("width")}currentHeight(){return this.currentDimension("height")}getPositions(){let e=this.el_.getBoundingClientRect();return{boundingClientRect:{x:e.x,y:e.y,width:e.width,height:e.height,top:e.top,right:e.right,bottom:e.bottom,left:e.left},center:{x:e.left+e.width/2,y:e.top+e.height/2,width:0,height:0,top:e.top+e.height/2,right:e.left+e.width/2,bottom:e.top+e.height/2,left:e.left+e.width/2}}}focus(){this.el_.focus()}blur(){this.el_.blur()}handleKeyDown(e){this.player_&&("Tab"===e.key||this.player_.options_.playerOptions.spatialNavigation&&this.player_.options_.playerOptions.spatialNavigation.enabled||e.stopPropagation(),this.player_.handleKeyDown(e))}handleKeyPress(e){this.handleKeyDown(e)}emitTapEvents(){let e,t=0,r=null;this.on("touchstart",function(i){1===i.touches.length&&(r={pageX:i.touches[0].pageX,pageY:i.touches[0].pageY},t=h.default.performance.now(),e=!0)}),this.on("touchmove",function(t){if(t.touches.length>1)e=!1;else if(r){let i=t.touches[0].pageX-r.pageX,n=t.touches[0].pageY-r.pageY;Math.sqrt(i*i+n*n)>10&&(e=!1)}});let i=function(){e=!1};this.on("touchleave",i),this.on("touchcancel",i),this.on("touchend",function(i){r=null,!0===e&&h.default.performance.now()-t<200&&(i.preventDefault(),this.trigger("tap"))})}enableTouchActivity(){let e;if(!this.player()||!this.player().reportUserActivity)return;let t=rD(this.player(),this.player().reportUserActivity);this.on("touchstart",function(){t(),this.clearInterval(e),e=this.setInterval(t,250)});let r=function(r){t(),this.clearInterval(e)};this.on("touchmove",t),this.on("touchend",r),this.on("touchcancel",r)}setTimeout(e,t){var r;return e=rD(this,e),this.clearTimersOnDispose_(),r=h.default.setTimeout(()=>{this.setTimeoutIds_.has(r)&&this.setTimeoutIds_.delete(r),e()},t),this.setTimeoutIds_.add(r),r}clearTimeout(e){return this.setTimeoutIds_.has(e)&&(this.setTimeoutIds_.delete(e),h.default.clearTimeout(e)),e}setInterval(e,t){e=rD(this,e),this.clearTimersOnDispose_();let r=h.default.setInterval(e,t);return this.setIntervalIds_.add(r),r}clearInterval(e){return this.setIntervalIds_.has(e)&&(this.setIntervalIds_.delete(e),h.default.clearInterval(e)),e}requestAnimationFrame(e){var t;return this.clearTimersOnDispose_(),e=rD(this,e),t=h.default.requestAnimationFrame(()=>{this.rafIds_.has(t)&&this.rafIds_.delete(t),e()}),this.rafIds_.add(t),t}requestNamedAnimationFrame(e,t){this.namedRafs_.has(e)&&this.cancelNamedAnimationFrame(e),this.clearTimersOnDispose_(),t=rD(this,t);let r=this.requestAnimationFrame(()=>{t(),this.namedRafs_.has(e)&&this.namedRafs_.delete(e)});return this.namedRafs_.set(e,r),e}cancelNamedAnimationFrame(e){this.namedRafs_.has(e)&&(this.cancelAnimationFrame(this.namedRafs_.get(e)),this.namedRafs_.delete(e))}cancelAnimationFrame(e){return this.rafIds_.has(e)&&(this.rafIds_.delete(e),h.default.cancelAnimationFrame(e)),e}clearTimersOnDispose_(){this.clearingTimersOnDispose_||(this.clearingTimersOnDispose_=!0,this.one("dispose",()=>{[["namedRafs_","cancelNamedAnimationFrame"],["rafIds_","cancelAnimationFrame"],["setTimeoutIds_","clearTimeout"],["setIntervalIds_","clearInterval"]].forEac
133h(([e,t])=>{this[e].forEach((e,r)=>this[t](r))}),this.clearingTimersOnDispose_=!1}))}getIsDisabled(){return!!this.el_.disabled}getIsExpresslyInert(){return this.el_.inert&&!this.el_.ownerDocument.documentElement.inert}getIsFocusable(e){return(e||this.el_).tabIndex>=0&&!(this.getIsDisabled()||this.getIsExpresslyInert())}getIsAvailableToBeFocused(e){var t;function r(e){let t=h.default.getComputedStyle(e,null),r=t.getPropertyValue("visibility");return"none"!==t.getPropertyValue("display")&&!["hidden","collapse"].includes(r)}return e||(e=this.el()),!!(function(e){if(e.offsetWidth+e.offsetHeight+e.getBoundingClientRect().height+e.getBoundingClientRect().width===0)return!1;let t={x:e.getBoundingClientRect().left+e.offsetWidth/2,y:e.getBoundingClientRect().top+e.offsetHeight/2};if(t.x<0||t.x>(f.default.documentElement.clientWidth||h.default.innerWidth)||t.y<0||t.y>(f.default.documentElement.clientHeight||h.default.innerHeight))return!1;let r=f.default.elementFromPoint(t.x,t.y);for(;r;){if(r===e)return!0;if(!r.parentNode)return!1;r=r.parentNode}}(e)&&r((t=e).parentElement)&&r(t)&&"0"!==t.style.opacity&&"0px"!==h.default.getComputedStyle(t).height&&"0px"!==h.default.getComputedStyle(t).width&&1)&&(!e.parentElement||!!(e.tabIndex>=0))}static registerComponent(e,t){if("string"!=typeof e||!e)throw Error(`Illegal component name, "${e}"; must be a non-empty string.`);let r=r2.getComponent("Tech"),i=r&&r.isTech(t),n=r2===t||r2.prototype.isPrototypeOf(t.prototype);if(i||!n){let t;throw t=i?"techs must be registered using Tech.registerTech()":"must be a Component subclass",Error(`Illegal component, "${e}"; ${t}.`)}e=rZ(e),r2.components_||(r2.components_={});let a=r2.getComponent("Player");if("Player"===e&&a&&a.players){let e=a.players,t=Object.keys(e);if(e&&t.length>0){for(let r=0;r<t.length;r++)if(null!==e[t[r]])throw Error("Can not register Player component after player has been created.")}}return r2.components_[e]=t,r2.components_[rJ(e)]=t,t}static getComponent(e){if(e&&r2.components_)return r2.components_[e]}}function r4(e,t,r,i){var n=r.length-1;if("number"!=typeof i||i<0||i>n)throw Error(`Failed to execute '${e}' on 'TimeRanges': The index provided (${i}) is non-numeric or out of bounds (0-${n}).`);return r[i][t]}function r5(e){let t;return t=void 0===e||0===e.length?{length:0,start(){throw Error("This TimeRanges object is empty")},end(){throw Error("This TimeRanges object is empty")}}:{length:e.length,start:r4.bind(null,"start",0,e),end:r4.bind(null,"end",1,e)},h.default.Symbol&&h.default.Symbol.iterator&&(t[h.default.Symbol.iterator]=()=>(e||[]).values()),t}function r3(e,t){return Array.isArray(e)?r5(e):void 0===e||void 0===t?r5():r5([[e,t]])}r2.registerComponent("Component",r2);let r8=function(e,t){let r=Math.floor((e=e<0?0:e)%60),i=Math.floor(e/60%60),n=Math.floor(e/3600),a=Math.floor(t/60%60),s=Math.floor(t/3600);return(isNaN(e)||e===1/0)&&(n=i=r="-"),i=(((n=n>0||s>0?n+":":"")||a>=10)&&i<10?"0"+i:i)+":",n+i+(r=r<10?"0"+r:r)},r6=r8;function r7(e){r6=e}function r9(){r6=r8}function ie(e,t=e){return r6(e,t)}var it=Object.freeze({__proto__:null,createTimeRanges:r3,createTimeRange:r3,setFormatTime:r7,resetFormatTime:r9,formatTime:ie});function ir(e,t){let r,i,n=0;if(!t)return 0;e&&e.length||(e=r3(0,0));for(let a=0;a<e.length;a++)r=e.start(a),(i=e.end(a))>t&&(i=t),n+=i-r;return n/t}function ii(e){if(e instanceof ii)return e;"number"==typeof e?this.code=e:"string"==typeof e?this.message=e:tb(e)&&("number"==typeof e.code&&(this.code=e.code),Object.assign(this,e)),this.message||(this.message=ii.defaultMessages[this.code]||"")}function ia(e){return null!=e&&"function"==typeof e.then}function is(e){ia(e)&&e.then(null,e=>{})}ii.prototype.code=0,ii.prototype.message="",ii.prototype.status=null,ii.prototype.metadata=null,ii.errorTypes=["MEDIA_ERR_CUSTOM","MEDIA_ERR_ABORTED","MEDIA_ERR_NETWORK","MEDIA_ERR_DECODE","MEDIA_ERR_SRC_NOT_SUPPORTED","MEDIA_ERR_ENCRYPTED"],ii.defaultMessages={1:"You aborted the media playback",2:"A network error caused the media download to fail part-way.",3:"The media playback was aborted due to a corruption problem or because the media used features your browser did not support.",4:"The media could not be loaded, either because the server or network failed or because the format is not supported.",5:"The media is encrypted and we do not have the keys to decrypt it."},ii.MEDIA_ERR_CUSTOM=0,ii.prototype.MEDIA_ERR_CUSTOM=0,ii.MEDIA_ERR_ABORTED=1,ii.prototype.MEDIA_ERR_ABORTED=1,ii.MEDIA_ERR_NETWORK=2,ii.prototype.MEDIA_ERR_NETWORK=2,ii.MEDIA_ERR_DECODE=3,ii.prototype.MEDIA_ERR_DECODE=3,ii.MEDIA_ERR_SRC_NOT_SUPPORTED=4,ii.prototype.MEDIA_ERR_SRC_NOT_SUPPORTED=4,ii.MEDIA_ERR_ENCRYPTED=5,ii.prototype.MEDIA_ERR_ENCRYPTED=5;let io=function(e){return["kind","label","language","id","inBandMetadataTrackDispatchType","mode","src"].reduce((t,r,i)=>(e[r]&&(t[r]=e[r]),t),{cues:e.cues&&Array.prototype.map.call(e.cues,function(e){return{startTime:e.startTime,endTime:e.endTime,text:e.text,id:e.id}})})};var il=function(e){let t=e.$$("track"),r=Array.prototype.map.call(t,e=>e.track);return Array.prototype.map.call(t,function(e){let t=io(e.track);return e.src&&(t.src=e.src),t}).concat(Array.prototype.filter.call(e.textTracks(),function(e){return -1===r.indexOf(e)}).map(io))};let ic="vjs-modal-dialog";class iu extends r2{constructor(e,t){super(e,t),this.handleKeyDown_=e=>this.handleKeyDown(e),this.close_=e=>this.close(e),this.opened_=this.hasBeenOpened_=this.hasBeenFilled_=!1,this.closeable(!this.options_.uncloseable),this.content(this.options_.content),this.contentEl_=tJ("div",{className:`${ic}-content`},{role:"document"}),this.descEl_=tJ("p",{className:`${ic}-description vjs-control-text`,id:this.el().getAttribute("aria-describedby")}),tZ(this.descEl_,this.description()),this.el_.appendChild(this.descEl_),this.el_.appendChild(this.contentEl_)}createEl(){return super.createEl("div",{className:this.buildCSSClass(),tabIndex:-1},{"aria-describedby":`${this.id()}_description`,"aria-hidden":"true","aria-label":this.label(),role:"dialog","aria-live":"polite"})}dispose(){this.contentEl_=null,this.descEl_=null,this.previouslyActiveEl_=null,super.dispose()}buildCSSClass(){return`${ic} vjs-hidden ${super.buildCSSClass()}`}label(){return this.localize(this.options_.label||"Modal Window")}description(){let e=this.options_.description||this.localize("This is a modal window.");return this.closeable()&&(e+=" "+this.localize("This modal can be closed by pressing the Escape key or activating the close button.")),e}open(){if(this.opened_){this.options_.fillAlways&&this.fill();return}let e=this.player();this.trigger("beforemodalopen"),this.opened_=!0,!this.options_.fillAlways&&(this.hasBeenOpened_||this.hasBeenFilled_)||this.fill(),this.wasPlaying_=!e.paused(),this.options_.pauseOnOpe
133n&&this.wasPlaying_&&e.pause(),this.on("keydown",this.handleKeyDown_),this.hadControls_=e.controls(),e.controls(!1),this.show(),this.conditionalFocus_(),this.el().setAttribute("aria-hidden","false"),this.trigger("modalopen"),this.hasBeenOpened_=!0}opened(e){return"boolean"==typeof e&&this[e?"open":"close"](),this.opened_}close(){if(!this.opened_)return;let e=this.player();this.trigger("beforemodalclose"),this.opened_=!1,this.wasPlaying_&&this.options_.pauseOnOpen&&e.play(),this.off("keydown",this.handleKeyDown_),this.hadControls_&&e.controls(!0),this.hide(),this.el().setAttribute("aria-hidden","true"),this.trigger({type:"modalclose",bubbles:!0}),this.conditionalBlur_(),this.options_.temporary&&this.dispose()}closeable(e){if("boolean"==typeof e){let t=this.closeable_=!!e,r=this.getChild("closeButton");if(t&&!r){let e=this.contentEl_;this.contentEl_=this.el_,r=this.addChild("closeButton",{controlText:"Close Modal Dialog"}),this.contentEl_=e,this.on(r,"close",this.close_)}!t&&r&&(this.off(r,"close",this.close_),this.removeChild(r),r.dispose())}return this.closeable_}fill(){this.fillWith(this.content())}
133fillWith(e){let t=this.contentEl(),r=t.parentNode,i=t.nextSibling;this.trigger("beforemodalfill"),this.hasBeenFilled_=!0,r.removeChild(t),this.empty(),rc(t,e),this.trigger("modalfill"),i?r.insertBefore(t,i):r.appendChild(t);let n=this.getChild("closeButton");n&&r.appendChild(n.el_),this.trigger("aftermodalfill")}empty(){this.trigger("beforemodalempty"),rs(this.contentEl()),this.trigger("modalempty")}content(e){return void 0!==e&&(this.content_=e),this.content_}conditionalFocus_(){let e=f.default.activeElement,t=this.player_.el_;this.previouslyActiveEl_=null,(t.contains(e)||t===e)&&(this.previouslyActiveEl_=e,this.focus())}conditionalBlur_(){this.previouslyActiveEl_&&(this.previouslyActiveEl_.focus(),this.previouslyActiveEl_=null)}handleKeyDown(e){let t;if(this.trigger({type:"modalKeydown",originalEvent:e,target:this,bubbles:!0}),e.stopPropagation(),"Escape"===e.key&&this.closeable()){e.preventDefault(),this.close();return}if("Tab"!==e.key)return;let r=this.focusableEls_(),i=this.el_.querySelector(":focus");for(let e=0;e<r.length;e++)if(i===r[e]){t=e;break}f.default.activeElement===this.el_&&(t=0),e.shiftKey&&0===t?(r[r.length-1].focus(),e.preventDefault()):e.shiftKey||t!==r.length-1||(r[0].focus(),e.preventDefault())}focusableEls_(){let e=this.el_.querySelectorAll("*");return Array.prototype.filter.call(e,e=>(e instanceof h.default.HTMLAnchorElement||e instanceof h.default.HTMLAreaElement)&&e.hasAttribute("href")||(e instanceof h.default.HTMLInputElement||e instanceof h.default.HTMLSelectElement||e instanceof h.default.HTMLTextAreaElement||e instanceof h.default.HTMLButtonElement)&&!e.hasAttribute("disabled")||e instanceof h.default.HTMLIFrameElement||e instanceof h.default.HTMLObjectElement||e instanceof h.default.HTMLEmbedElement||e.hasAttribute("tabindex")&&-1!==e.getAttribute("tabindex")||e.hasAttribute("contenteditable"))}}iu.prototype.options_={pauseOnOpen:!0,temporary:!0},r2.registerComponent("ModalDialog",iu);class id extends rU{constructor(e=[]){super(),this.tracks_=[];for(let t=0;t<e.length;t++)this.addTrack(e[t])}get length(){return this.tracks_.length}addTrack(e){let t=this.tracks_.length;""+t in this||Object.defineProperty(this,t,{get(){return this.tracks_[t]}}),-1===this.tracks_.indexOf(e)&&(this.tracks_.push(e),this.trigger({track:e,type:"addtrack",target:this})),e.labelchange_=()=>{this.trigger({track:e,type:"labelchange",target:this})},r$(e)&&e.addEventListener("labelchange",e.labelchange_)}removeTrack(e){let t;for(let r=0,i=this.length;r<i;r++)if(this[r]===e){(t=this[r]).off&&t.off(),this.tracks_.splice(r,1);break}t&&this.trigger({track:t,type:"removetrack",target:this})}getTrackById(e){let t=null;for(let r=0,i=this.length;r<i;r++){let i=this[r];if(i.id===e){t=i;break}}return t}}for(let e in id.prototype.allowedEvents_={change:"change",addtrack:"addtrack",removetrack:"removetrack",labelchange:"labelchange"},id.prototype.allowedEvents_)id.prototype["on"+e]=null;let ip=function(e,t){for(let r=0;r<e.length;r++)Object.keys(e[r]).length&&t.id!==e[r].id&&(e[r].enabled=!1)};class ih extends id{constructor(e=[]){for(let t=e.length-1;t>=0;t--)if(e[t].enabled){ip(e,e[t]);break}super(e),this.changing_=!1}addTrack(e){e.enabled&&ip(this,e),super.addTrack(e),e.addEventListener&&(e.enabledChange_=()=>{this.changing_||(this.changing_=!0,ip(this,e),this.changing_=!1,this.trigger("change"))},e.addEventListener("enabledchange",e.enabledChange_))}removeTrack(e){super.removeTrack(e),e.removeEventListener&&e.enabledChange_&&(e.removeEventListener("enabledchange",e.enabledChange_),e.enabledChange_=null)}}let ig=function(e,t){for(let r=0;r<e.length;r++)Object.keys(e[r]).length&&t.id!==e[r].id&&(e[r].selected=!1)};class im extends id{constructor(e=[]){for(let t=e.length-1;t>=0;t--)if(e[t].selected){ig(e,e[t]);break}super(e),this.changing_=!1,Object.defineProperty(this,"selectedIndex",{get(){for(let e=0;e<this.length;e++)if(this[e].selected)return e;return -1},set(){}})}addTrack(e){e.selected&&ig(this,e),super.addTrack(e),e.addEventListener&&(e.selectedChange_=()=>{this.changing_||(this.changing_=!0,ig(this,e),this.changing_=!1,this.trigger("change"))},e.addEventListener("selectedchange",e.selectedChange_))}removeTrack(e){super.removeTrack(e),e.removeEventListener&&e.selectedChange_&&(e.removeEventListener("selectedchange",e.selectedChange_),e.selectedChange_=null)}}class iy extends id{addTrack(e){super.addTrack(e),this.queueChange_||(this.queueChange_=()=>this.queueTrigger("change")),this.triggerSelectedlanguagechange||(this.triggerSelectedlanguagechange_=()=>this.trigger("selectedlanguagechange")),e.addEventListener("modechange",this.queueChange_),-1===["metadata","chapters"].indexOf(e.kind)&&e.addEventListener("modechange",this.triggerSelectedlanguagechange_)}removeTrack(e){super.removeTrack(e),e.removeEventListener&&(this.queueChange_&&e.removeEventListener("modechange",this.queueChange_),this.selectedlanguagechange_&&e.removeEventListener("modechange",this.triggerSelectedlanguagechange_))}toJSON(){return this.tracks_.map(e=>e.toJSON())}}class ib{constructor(e){ib.prototype.setCues_.call(this,e),Object.defineProperty(this,"length",{get(){return this.length_}})}setCues_(e){let t=this.length||0,r=0,i=e.length;this.cues_=e,this.length_=e.length;let n=function(e){""+e in this||Object.defineProperty(this,""+e,{get(){return this.cues_[e]}})};if(t<i)for(r=t;r<i;r++)n.call(this,r)}getCueById(e){let t=null;for(let r=0,i=this.length;r<i;r++){let i=this[r];if(i.id===e){t=i;break}}return t}}let iv={alternative:"alternative",captions:"captions",main:"main",sign:"sign",subtitles:"subtitles",commentary:"commentary"},ix={alternative:"alternative",descriptions:"descriptions",main:"main","main-desc":"main-desc",translation:"translation",commentary:"commentary"},i_={subtitles:"subtitles",captions:"captions",descriptions:"descriptions",chapters:"chapters",metadata:"metadata"},iw={disabled:"disabled",hidden:"hidden",showing:"showing"};class iT extends rU{constructor(e={}){super();const t={id:e.id||"vjs_track_"+rT++,kind:e.kind||"",language:e.language||""};let r=e.label||"";for(const e in t)Object.defineProperty(this,e,{get:()=>t[e],set(){}});Object.defineProperty(this,"label",{get:()=>r,set(e){e!==r&&(r=e,this.trigger("labelchange"))}})}}let iS=function(e){return new URL(e,f.default.baseURI)},iC=function(e){return new URL(e,f.default.baseURI).href},iE=function(e){if("string"==typeof e){let t=e.split("?")[0].replace(/\/+$/,"").match(/\.([^.\/]+)$/);return t?t[1].toLowerCase():""}return""},ik=function(e,t=h.default.location){return iS(e).origin!==t.origin};var iN=Object.freeze({__proto__:null,parseUrl:iS,getAbsoluteURL:iC,getFileExtension:iE,isCrossOrigin:ik});let iI=function(e,t){let r=new h.default.WebVTT.Parser(h.default,h.default.vttjs,h.default.WebVTT.StringDecoder()),i=[];r.oncue=function(e){t.addCue(e)},r.onparsingerror=function(e){i.push(e)},r.onflush=function(){t.trigger({type:"loadeddata",target:t})},r.parse(e),i.length>0&&(h.default.console&&h.default.console.groupCollapsed&&h.default.console.groupCollapsed(`Text Track parsing errors for ${t.src}
133`),i.forEach(e=>tp.error(e)),h.default.console&&h.default.console.groupEnd&&h.default.console.groupEnd()),r.flush()},iA=function(e,t){let r={uri:e},i=ik(e);i&&(r.cors=i);let n="use-credentials"===t.tech_.crossOrigin();n&&(r.withCredentials=n),(0,g.default)(r,rD(this,function(e,r,i){if(e)return tp.error(e,r);t.loaded_=!0,"function"!=typeof h.default.WebVTT?t.tech_&&t.tech_.any(["vttjsloaded","vttjserror"],e=>"vttjserror"===e.type?void tp.error(`vttjs failed to load, stopping trying to process ${t.src}`):iI(i,t)):iI(i,t)}))};class ij extends iT{constructor(e={}){if(!e.tech)throw Error("A tech was not provided.");const t=tx(e,{kind:i_[e.kind]||"subtitles",language:e.language||e.srclang||""});let r=iw[t.mode]||"disabled";const i=t.default;("metadata"===t.kind||"chapters"===t.kind)&&(r="hidden"),super(t),this.tech_=t.tech,this.cues_=[],this.activeCues_=[],this.preload_=!1!==this.tech_.preloadTextTracks;const n=new ib(this.cues_),a=new ib(this.activeCues_);let s=!1;this.timeupdateHandler=rD(this,function(e={}){if(!this.tech_.isDisposed()){if(!this.tech_.isReady_){"timeupdate"!==e.type&&(this.rvf_=this.tech_.requestVideoFrameCallback(this.timeupdateHandler));return}this.activeCues=this.activeCues,s&&(this.trigger("cuechange"),s=!1),"timeupdate"!==e.type&&(this.rvf_=this.tech_.requestVideoFrameCallback(this.timeupdateHandler))}});const o=()=>{this.stopTracking()};this.tech_.one("dispose",o),"disabled"!==r&&this.startTracking(),Object.defineProperties(this,{default:{get:()=>i,set(){}},mode:{get:()=>r,set(e){iw[e]&&r!==e&&(r=e,this.preload_||"disabled"===r||0!==this.cues.length||iA(this.src,this),this.stopTracking(),"disabled"!==r&&this.startTracking(),this.trigger("modechange"))}},cues:{get(){return this.loaded_?n:null},set(){}},activeCues:{get(){if(!this.loaded_)return null;if(0===this.cues.length)return a;let e=this.tech_.currentTime(),t=[];for(let r=0,i=this.cues.length;r<i;r++){let i=this.cues[r];i.startTime<=e&&i.endTime>=e&&t.push(i)}if(s=!1,t.length!==this.activeCues_.length)s=!0;else for(let e=0;e<t.length;e++)-1===this.activeCues_.indexOf(t[e])&&(s=!0);return this.activeCues_=t,a.setCues_(this.activeCues_),a},set(){}}}),t.src?(this.src=t.src,this.preload_||(this.loaded_=!0),(this.preload_||"subtitles"!==t.kind&&"captions"!==t.kind)&&iA(this.src,this)):this.loaded_=!0}startTracking(){this.rvf_=this.tech_.requestVideoFrameCallback(this.timeupdateHandler),this.tech_.on("timeupdate",this.timeupdateHandler)}stopTracking(){this.rvf_&&(this.tech_.cancelVideoFrameCallback(this.rvf_),this.rvf_=void 0),this.tech_.off("timeupdate",this.timeupdateHandler)}addCue(e){let t=e;if(!("getCueAsHTML"in t)){for(let r in t=new h.default.vttjs.VTTCue(e.startTime,e.endTime,e.text),e)r in t||(t[r]=e[r]);t.id=e.id,t.originalCue_=e}let r=this.tech_.textTracks();for(let e=0;e<r.length;e++)r[e]!==this&&r[e].removeCue(t);this.cues_.push(t),this.cues.setCues_(this.cues_)}toJSON(){return io(this)}removeCue(e){let t=this.cues_.length;for(;t--;){let r=this.cues_[t];if(r===e||r.originalCue_&&r.originalCue_===e){this.cues_.splice(t,1),this.cues.setCues_(this.cues_);break}}}}ij.prototype.allowedEvents_={cuechange:"cuechange"};class iP extends iT{constructor(e={}){const t=tx(e,{kind:ix[e.kind]||""});super(t);let r=!1;Object.defineProperty(this,"enabled",{get:()=>r,set(e){"boolean"==typeof e&&e!==r&&(r=e,this.trigger("enabledchange"))}}),t.enabled&&(this.enabled=t.enabled),this.loaded_=!0}}class iO extends iT{constructor(e={}){const t=tx(e,{kind:iv[e.kind]||""});super(t);let r=!1;Object.defineProperty(this,"selected",{get:()=>r,set(e){"boolean"==typeof e&&e!==r&&(r=e,this.trigger("selectedchange"))}}),t.selected&&(this.selected=t.selected)}}class iL extends rU{constructor(e={}){let t;super();const r=new ij(e);this.kind=r.kind,this.src=r.src,this.srclang=r.language,this.label=r.label,this.default=r.default,Object.defineProperties(this,{readyState:{get:()=>t},track:{get:()=>r}}),t=iL.NONE,r.addEventListener("loadeddata",()=>{t=iL.LOADED,this.trigger({type:"load",target:this})})}}iL.prototype.allowedEvents_={load:"load"},iL.NONE=0,iL.LOADING=1,iL.LOADED=2,iL.ERROR=3;
vendor: 4,478 bytes, line 133
133let iD={audio:{ListClass:ih,TrackClass:iP,capitalName:"Audio"},video:{ListClass:im,TrackClass:iO,capitalName:"Video"},text:{ListClass:iy,TrackClass:ij,capitalName:"Text"}};Object.keys(iD).forEach(function(e){iD[e].getterName=`${e}Tracks`,iD[e].privateName=`${e}Tracks_`});let iR={remoteText:{ListClass:iy,TrackClass:ij,capitalName:"RemoteText",getterName:"remoteTextTracks",privateName:"remoteTextTracks_"},remoteTextEl:{ListClass:class{constructor(e=[]){this.trackElements_=[],Object.defineProperty(this,"length",{get(){return this.trackElements_.length}});for(let t=0,r=e.length;t<r;t++)this.addTrackElement_(e[t])}addTrackElement_(e){let t=this.trackElements_.length;""+t in this||Object.defineProperty(this,t,{get(){return this.trackElements_[t]}}),-1===this.trackElements_.indexOf(e)&&this.trackElements_.push(e)}getTrackElementByTrack_(e){let t;for(let r=0,i=this.trackElements_.length;r<i;r++)if(e===this.trackElements_[r].track){t=this.trackElements_[r];break}return t}removeTrackElement_(e){for(let t=0,r=this.trackElements_.length;t<r;t++)if(e===this.trackElements_[t]){this.trackElements_[t].track&&"function"==typeof this.trackElements_[t].track.off&&this.trackElements_[t].track.off(),"function"==typeof this.trackElements_[t].off&&this.trackElements_[t].off(),this.trackElements_.splice(t,1);break}}},TrackClass:iL,capitalName:"RemoteTextTrackEls",getterName:"remoteTextTrackEls",privateName:"remoteTextTrackEls_"}},iM=Object.assign({},iD,iR);iR.names=Object.keys(iR),iD.names=Object.keys(iD),iM.names=[].concat(iR.names).concat(iD.names);class iB extends r2{constructor(e={},t=function(){}){e.reportTouchActivity=!1,super(null,e,t),this.onDurationChange_=e=>this.onDurationChange(e),this.trackProgress_=e=>this.trackProgress(e),this.trackCurrentTime_=e=>this.trackCurrentTime(e),this.stopTrackingCurrentTime_=e=>this.stopTrackingCurrentTime(e),this.disposeSourceHandler_=e=>this.disposeSourceHandler(e),this.queuedHanders_=new Set,this.hasStarted_=!1,this.on("playing",function(){this.hasStarted_=!0}),this.on("loadstart",function(){this.hasStarted_=!1}),iM.names.forEach(t=>{let r=iM[t];e&&e[r.getterName]&&(this[r.privateName]=e[r.getterName])}),this.featuresProgressEvents||this.manualProgressOn(),this.featuresTimeupdateEvents||this.manualTimeUpdatesOn(),["Text","Audio","Video"].forEach(t=>{!1===e[`native${t}Tracks`]&&(this[`featuresNative${t}Tracks`]=!1)}),!1===e.nativeCaptions||!1===e.nativeTextTracks?this.featuresNativeTextTracks=!1:(!0===e.nativeCaptions||!0===e.nativeTextTracks)&&(this.featuresNativeTextTracks=!0),this.featuresNativeTextTracks||this.emulateTextTracks(),this.preloadTextTracks=!1!==e.preloadTextTracks,this.autoRemoteTextTracks_=new iM.text.ListClass,this.initTrackListeners(),e.nativeControlsForTouch||this.emitTapEvents(),this.constructor&&(this.name_=this.constructor.name||"Unknown Tech")}triggerSourceset(e){this.isReady_||this.one("ready",()=>this.setTimeout(()=>this.triggerSourceset(e),1)),this.trigger({src:e,type:"sourceset"})}manualProgressOn(){this.on("durationchange",this.onDurationChange_),this.manualProgress=!0,this.one("ready",this.trackProgress_)}manualProgressOff(){this.manualProgress=!1,this.stopTrackingProgress(),this.off("durationchange",this.onDurationChange_)}trackProgress(e){this.stopTrackingProgress(),this.progressInterval=this.setInterval(rD(this,function(){let e=this.bufferedPercent();this.bufferedPercent_!==e&&this.trigger("progress"),this.bufferedPercent_=e,1===e&&this.stopTrackingProgress()}),500)}onDurationChange(e){this.duration_=this.duration()}buffered(){return r3(0,0)}bufferedPercent(){return ir(this.buffered(),this.duration_)}stopTrackingProgress(){this.clearInterval(this.progressInterval)}manualTimeUpdatesOn(){this.manualTimeUpdates=!0,this.on("play",this.trackCurrentTime_),this.on("pause",this.stopTrackingCurrentTime_)}manualTimeUpdatesOff(){this.manualTimeUpdates=!1,this.stopTrackingCurrentTime(),this.off("play",this.trackCurrentTime_),this.off("pause",this.stopTrackingCurrentTime_)}trackCurrentTime(){this.currentTimeInterval&&this.stopTrackingCurrentTime(),this.currentTimeInterval=this.setInterval(function(){this.trigger({type:"timeupdate",target:this,manuallyTriggered:!0})},250)}stopTrackingCurrentTime(){this.clearInterval(this.currentTimeInterval),this.trigger({type:"timeupdate",target:this,manuallyTriggered:!0})}dispose(){this.clearTracks(iD.names),this.manualProgress&&this.manualProgressOff(),this.manualTimeUpdates&&this.manualTimeUpdatesOff(),super.dispose()}
133clearTracks(e){(e=[].concat(e)).forEach(e=>{let t=this[`${e}Tracks`]()||[],r=t.length;for(;r--;){let i=t[r];"text"===e&&this.removeRemoteTextTrack(i),t.removeTrack(i)}})}cleanupAutoTextTracks(){let e=this.autoRemoteTextTracks_||[],t=e.length;for(;t--;){let r=e[t];this.removeRemoteTextTrack(r)}}reset(){}crossOrigin(){}setCrossOrigin(){}error(e){return void 0!==e&&(this.error_=new ii(e),this.trigger("error")),this.error_}played(){return this.hasStarted_?r3(0,0):r3()}play(){}setScrubbing(e){}scrubbing(){}setCurrentTime(e){this.manualTimeUpdates&&this.trigger({type:"timeupdate",target:this,manuallyTriggered:!0})}initTrackListeners(){iD.names.forEach(e=>{let t=iD[e],r=()=>{this.trigger(`${e}trackchange`)},i=this[t.getterName]();i.addEventListener("removetrack",r),i.addEventListener("addtrack",r),this.on("dispose",()=>{i.removeEventListener("removetrack",r),i.removeEventListener("addtrack",r)})})}addWebVttScript_(){if(!h.default.WebVTT)if(f.default.body.contains(this.el())){if(!this.options_["vtt.js"]&&tv(m.default)&&Object.keys(m.default).length>0)return void this.trigger("vttjsloaded");let e=f.default.createElement("script");e.src=this.options_["vtt.js"]||"https://vjs.zencdn.net/vttjs/0.14.1/vtt.min.js",e.onload=()=>{this.trigger("vttjsloaded")},e.onerror=()=>{this.trigger("vttjserror")},this.on("dispose",()=>{e.onload=null,e.onerror=null}),h.default.WebVTT=!0,this.el().parentNode.appendChild(e)}else this.ready(this.addWebVttScript_)}emulateTextTracks(){let e=this.textTracks(),t=this.remoteTextTracks(),r=t=>e.addTrack(t.track),i=t=>e.removeTrack(t.track);t.on("addtrack",r),t.on("removetrack",i),this.addWebVttScript_();let n=()=>this.trigger("texttrackchange"),a=()=>{n();for(let t=0;t<e.length;t++){let r=e[t];r.removeEventListener("cuechange",n),"showing"===r.mode&&r.addEventListener("cuechange",n)}};a(),e.addEventListener("change",a),e.addEventListener("addtrack",a),e.addEventListener("removetrack",a),this.on("dispose",function(){t.off("addtrack",r),t.off("removetrack",i),e.removeEventListener("change",a),e.removeEventListener("addtrack",a),e.removeEventListener("removetrack",a);for(let t=0;t<e.length;t++)e[t].removeEventListener("cuechange",n)})}addTextTrack(e,t,r){if(!e)throw Error("TextTrack kind is required but was not provided");return function(e,t,r,i,n={}){let a=e.textTracks();n.kind=t,r&&(n.label=r),i&&(n.language=i),n.tech=e;let s=new iM.text.TrackClass(n);return a.addTrack(s),s}(this,e,t,r)}createRemoteTextTrack(e){let t=tx(e,{tech:this});return new iR.remoteTextEl.TrackClass(t)}addRemoteTextTrack(e={},t){let r=this.createRemoteTextTrack(e);return"boolean"!=typeof t&&(t=!1),this.remoteTextTrackEls().addTrackElement_(r),this.remoteTextTracks().addTrack(r.track),!1===t&&this.ready(()=>this.autoRemoteTextTracks_.addTrack(r.track)),r}removeRemoteTextTrack(e){let t=this.remoteTextTrackEls().getTrackElementByTrack_(e);this.remoteTextTrackEls().removeTrackElement_(t),this.remoteTextTracks().removeTrack(e),this.autoRemoteTextTracks_.removeTrack(e)}getVideoPlaybackQuality(){return{}}requestPictureInPicture(){return Promise.reject()}disablePictureInPicture(){return!0}setDisablePictureInPicture(){}requestVideoFrameCallback(e){let t=rT++;return!this.isReady_||this.paused()?(this.queuedHanders_.add(t),this.one("playing",()=>{this.queuedHanders_.has(t)&&(this.queuedHanders_.delete(t),e())})):this.requestNamedAnimationFrame(t,e),t}cancelVideoFrameCallback(e){this.queuedHanders_.has(e)?this.queuedHanders_.delete(e):this.cancelNamedAnimationFrame(e)}setPoster(){}playsinline(){}setPlaysinline(){}overrideNativeAudioTracks(e){}overrideNativeVideoTracks(e){}canPlayType(e){return""}static canPlayType(e){return""}static canPlaySource(e,t){return iB.canPlayType(e.type)}static isTech(e){return e.prototype instanceof iB||e instanceof iB||e===iB}static registerTech(e,t){if(iB.techs_||(iB.techs_={}),!iB.isTech(t))throw Error(`Tech ${e} must be a Tech`);if(!iB.canPlayType)throw Error("Techs must have a static canPlayType method on them");if(!iB.canPlaySource)throw Error("Techs must have a static canPlaySource method on them");return e=rZ(e),iB.techs_[e]=t,iB.techs_[rJ(e)]=t,"Tech"!==e&&iB.defaultTechOrder_.push(e),t}static getTech(e){if(e){if(iB.techs_&&iB.techs_[e])return iB.techs_[e];
133if(e=rZ(e),h.default&&h.default.videojs&&h.default.videojs[e])return tp.warn(`The ${e} tech was added to the videojs object when it should be registered using videojs.registerTech(name, tech)`),h.default.videojs[e]}}}iM.names.forEach(function(e){let t=iM[e];iB.prototype[t.getterName]=function(){return this[t.privateName]=this[t.privateName]||new t.ListClass,this[t.privateName]}}),iB.prototype.featuresVolumeControl=!0,iB.prototype.featuresMuteControl=!0,iB.prototype.featuresFullscreenResize=!1,iB.prototype.featuresPlaybackRate=!1,iB.prototype.featuresProgressEvents=!1,iB.prototype.featuresSourceset=!1,iB.prototype.featuresTimeupdateEvents=!1,iB.prototype.featuresNativeTextTracks=!1,iB.prototype.featuresVideoFrameCallback=!1,iB.withSourceHandlers=function(e){e.registerSourceHandler=function(t,r){let i=e.sourceHandlers;i||(i=e.sourceHandlers=[]),void 0===r&&(r=i.length),i.splice(r,0,t)},e.canPlayType=function(t){let r,i=e.sourceHandlers||[];for(let e=0;e<i.length;e++)if(r=i[e].canPlayType(t))return r;return""},e.selectSourceHandler=function(t,r){let i=e.sourceHandlers||[];for(let e=0;e<i.length;e++)if(i[e].canHandleSource(t,r))return i[e];return null},e.canPlaySource=function(t,r){let i=e.selectSourceHandler(t,r);return i?i.canHandleSource(t,r):""},["seekable","seeking","duration"].forEach(function(e){let t=this[e];"function"==typeof t&&(this[e]=function(){return this.sourceHandler_&&this.sourceHandler_[e]?this.sourceHandler_[e].apply(this.sourceHandler_,arguments):t.apply(this,arguments)})},e.prototype),e.prototype.setSource=function(t){let r=e.selectSourceHandler(t,this.options_);r||(e.nativeSourceHandler?r=e.nativeSourceHandler:tp.error("No source handler found for the current source.")),this.disposeSourceHandler(),this.off("dispose",this.disposeSourceHandler_),r!==e.nativeSourceHandler&&(this.currentSource_=t),this.sourceHandler_=r.handleSource(t,this,this.options_),this.one("dispose",this.disposeSourceHandler_)},e.prototype.disposeSourceHandler=function(){this.currentSource_&&(this.clearTracks(["audio","video"]),this.currentSource_=null),this.cleanupAutoTextTracks(),this.sourceHandler_&&(this.sourceHandler_.dispose&&this.sourceHandler_.dispose(),this.sourceHandler_=null)}},r2.registerComponent("Tech",iB),iB.registerTech("Tech",iB),iB.defaultTechOrder_=[];let iU={},iF={},i$={};function iz(e,t,r,i=null){let n="call"+rZ(r),a=e.reduce(iV(n),i),s=a===i$,o=s?null:t[r](a);return function(e,t,r,i){for(let n=e.length-1;n>=0;n--){let a=e[n];a[t]&&a[t](i,r)}}(e,r,o,s),o}let iq={buffered:1,currentTime:1,duration:1,muted:1,played:1,paused:1,seekable:1,volume:1,ended:1},iH={setCurrentTime:1,setMuted:1,setVolume:1},iW={play:1,pause:1};function iV(e){return(t,r)=>t===i$?i$:r[e]?r[e](t):t}let iG={opus:"video/ogg",ogv:"video/ogg",mp4:"video/mp4",mov:"video/mp4",m4v:"video/mp4",mkv:"video/x-matroska",m4a:"audio/mp4",mp3:"audio/mpeg",aac:"audio/aac",caf:"audio/x-caf",flac:"audio/flac",oga:"audio/ogg",wav:"audio/wav",m3u8:"application/x-mpegURL",mpd:"application/dash+xml",jpg:"image/jpeg",jpeg:"image/jpeg",gif:"image/gif",png:"image/png",svg:"image/svg+xml",webp:"image/webp"},iX=function(e=""){return iG[iE(e).toLowerCase()]||""},iK=function(e){if(Array.isArray(e)){let t=[];e.forEach(function(e){Array.isArray(e=iK(e))?t=t.concat(e):tb(e)&&t.push(e)}),e=t}else e="string"==typeof e&&e.trim()?[iY({src:e})]:tb(e)&&"string"==typeof e.src&&e.src&&e.src.trim()?[iY(e)]:[];return e};function iY(e){if(!e.type){let t=iX(e.src);t&&(e.type=t)}return e}let iQ=tU?10009:tF?461:8,iJ={codes:{play:415,pause:19,ff:417,rw:412,back:iQ},names:{415:"play",19:"pause",417:"ff",412:"rw",[iQ]:"back"},isEventKey(e,t){return t=t.toLowerCase(),!!this.names[e.keyCode]&&this.names[e.keyCode]===t},getEventName(e){if(this.names[e.keyCode])return this.names[e.keyCode];if(this.codes[e.code]){let t=this.codes[e.code];return this.names[t]}return null}};class iZ extends rU{constructor(e){super(),this.player_=e,this.focusableComponents=[],this.isListening_=!1,this.isPaused_=!1,this.onKeyDown_=this.onKeyDown_.bind(this),this.lastFocusedComponent_=null}
133start(){!this.isListening_&&(this.player_.on("keydown",this.onKeyDown_),this.player_.on("modalKeydown",this.onKeyDown_),this.player_.on("loadedmetadata",()=>{this.focus(this.updateFocusableComponents()[0])}),this.player_.on("modalclose",()=>{this.refocusComponent()}),this.player_.on("focusin",this.handlePlayerFocus_.bind(this)),this.player_.on("focusout",this.handlePlayerBlur_.bind(this)),this.isListening_=!0,this.player_.errorDisplay&&this.player_.errorDisplay.on("aftermodalfill",()=>{this.updateFocusableComponents(),this.focusableComponents.length&&(this.focusableComponents.length>1?this.focusableComponents[1].focus():this.focusableComponents[0].focus())}))}stop(){this.player_.off("keydown",this.onKeyDown_),this.isListening_=!1}onKeyDown_(e){let t=e.originalEvent?e.originalEvent:e;if(["ArrowLeft","ArrowRight","ArrowUp","ArrowDown"].includes(t.key)){if(this.isPaused_)return;t.preventDefault();let e=t.key.substring(5).toLowerCase();this.move(e)}else if(iJ.isEventKey(t,"play")||iJ.isEventKey(t,"pause")||iJ.isEventKey(t,"ff")||iJ.isEventKey(t,"rw")){t.preventDefault();let e=iJ.getEventName(t);this.performMediaAction_(e)}else iJ.isEventKey(t,"Back")&&e.target&&"function"==typeof e.target.closeable&&e.target.closeable()&&(t.preventDefault(),e.target.close())}performMediaAction_(e){if(this.player_)switch(e){case"play":this.player_.paused()&&this.player_.play();break;case"pause":this.player_.paused()||this.player_.pause();break;case"ff":this.userSeek_(this.player_.currentTime()+5);break;case"rw":this.userSeek_(this.player_.currentTime()-5)}}userSeek_(e){this.player_.liveTracker&&this.player_.liveTracker.isLive()&&this.player_.liveTracker.nextSeekedFromUser(),this.player_.currentTime(e)}pause(){this.isPaused_=!0}resume(){this.isPaused_=!1}handlePlayerBlur_(e){let t=e.relatedTarget,r=null,i=this.getCurrentComponent(e.target);t&&(r=!!t.closest(".video-js"),t.classList.contains("vjs-text-track-settings")&&!this.isPaused_&&this.searchForTrackSelect_()),(!e.currentTarget.contains(e.relatedTarget)&&!r||!t)&&(i&&"CloseButton"===i.name()?this.refocusComponent():(this.pause(),i&&i.el()&&(this.lastFocusedComponent_=i)))}handlePlayerFocus_(){this.getCurrentComponent()&&this.getCurrentComponent().getIsFocusable()&&this.resume()}updateFocusableComponents(){let e=this.player_,t=[];function r(e){for(let i of e)i.hasOwnProperty("el_")&&i.getIsFocusable()&&i.getIsAvailableToBeFocused(i.el())&&t.pu
133sh(i),i.hasOwnProperty("children_")&&i.children_.length>0&&r(i.children_)}return e.children_.forEach(e=>{if(e.hasOwnProperty("el_"))if(e.getIsFocusable&&e.getIsAvailableToBeFocused&&e.getIsFocusable()&&e.getIsAvailableToBeFocused(e.el()))return void t.push(e);else e.hasOwnProperty("children_")&&e.children_.length>0?r(e.children_):e.hasOwnProperty("items")&&e.items.length>0?r(e.items):this.findSuitableDOMChild(e)&&t.push(e);if("ErrorDisplay"===e.name_&&e.opened_){let r=e.el_.querySelector(".vjs-errors-ok-button-container");r&&r.querySelectorAll("button").forEach((e,r)=>{t.push({name:()=>"ModalButton"+(r+1),el:()=>e,getPositions:()=>{let t=e.getBoundingClientRect();return{boundingClientRect:{x:t.x,y:t.y,width:t.width,height:t.height,top:t.top,right:t.right,bottom:t.bottom,left:t.left},center:{x:t.left+t.width/2,y:t.top+t.height/2,width:0,height:0,top:t.top+t.height/2,right:t.left+t.width/2,bottom:t.top+t.height/2,left:t.left+t.width/2}}},getIsAvailableToBeFocused:()=>!0,getIsFocusable:e=>!0,focus:()=>e.focus()})})}}),this.focusableComponents=t,this.focusableComponents}findSuitableDOMChild(e){return e.el()?function t(r){if(e.getIsFocusable(r)&&e.getIsAvailableToBeFocused(r))return r;for(let e=0;e<r.children.length;e++){let i=t(r.children[e]);if(i)return i}return null}(e.el()):null}getCurrentComponent(e){this.updateFocusableComponents();let t=e||document.activeElement;if(this.focusableComponents.length){for(let e of this.focusableComponents)if(e.el()===t)return e}}add(e){let t=[...this.focusableComponents];e.hasOwnProperty("el_")&&e.getIsFocusable()&&e.getIsAvailableToBeFocused(e.el())&&t.push(e),this.focusableComponents=t,this.trigger({type:"focusableComponentsChanged",focusableComponents:this.focusableComponents})}remove(e){for(let t=0;t<this.focusableComponents.length;t++)if(this.focusableComponents[t].name()===e.name()){this.focusableComponents.splice(t,1),this.trigger({type:"focusableComponentsChanged",focusableComponents:this.focusableComponents});return}}clear(){this.focusableComponents.length>0&&(this.focusableComponents=[],this.trigger({type:"focusableComponentsChanged",focusableComponents:this.focusableComponents}))}move(e){let t=this.getCurrentComponent();if(!t)return;let r=t.getPositions(),i=this.focusableComponents.filter(i=>i!==t&&this.isInDirection_(r.boundingClientRect,i.getPositions().boundingClientRect,e)),n=this.findBestCandidate_(r.center,i,e);n?this.focus(n):this.trigger({type:"endOfFocusableComponents",direction:e,focu
vendor: 4,342 bytes, line 133
133sedComponent:t})}findBestCandidate_(e,t,r){let i=1/0,n=null;for(let a of t){let t=a.getPositions().center,s=this.calculateDistance_(e,t,r);s<i&&(i=s,n=a)}return n}isInDirection_(e,t,r){switch(r){case"right":return t.left>=e.right;case"left":return t.right<=e.left;case"down":return t.top>=e.bottom;case"up":return t.bottom<=e.top;default:return!1}}refocusComponent(){if(this.lastFocusedComponent_){this.player_.userActive()||this.player_.userActive(!0),this.updateFocusableComponents();for(let e=0;e<this.focusableComponents.length;e++)if(this.focusableComponents[e].name()===this.lastFocusedComponent_.name())return void this.focus(this.focusableComponents[e])}else this.focus(this.updateFocusableComponents()[0])}focus(e){"object"==typeof e&&(e.getIsAvailableToBeFocused(e.el())?e.focus():this.findSuitableDOMChild(e)&&this.findSuitableDOMChild(e).focus())}calculateDistance_(e,t,r){let i,n=Math.abs(e.x-t.x),a=Math.abs(e.y-t.y);switch(r){case"right":case"left":i=n+100*a;break;case"up":i=2*a+.5*n;break;case"down":i=5*a+n;break;default:i=n+a}return i}searchForTrackSelect_(){for(let e of this.updateFocusableComponents())if("TextTrackSelect"===e.constructor.name){this.focus(e);break}}}r2.registerComponent("MediaLoader",class extends r2{constructor(e,t,r){if(super(e,tx({createEl:!1},t),r),t.playerOptions.sources&&0!==t.playerOptions.sources.length)e.src(t.playerOptions.sources);else for(let r=0,i=t.playerOptions.techOrder;r<i.length;r++){const t=rZ(i[r]);let n=iB.getTech(t);if(t||(n=r2.getComponent(t)),n&&n.isSupported()){e.loadTech_(t);break}}}});class i0 extends r2{constructor(e,t){super(e,t),this.options_.controlText&&this.controlText(this.options_.controlText),this.handleMouseOver_=e=>this.handleMouseOver(e),this.handleMouseOut_=e=>this.handleMouseOut(e),this.handleClick_=e=>this.handleClick(e),this.handleKeyDown_=e=>this.handleKeyDown(e),this.emitTapEvents(),this.enable()}createEl(e="div",t={},r={}){t=Object.assign({className:this.buildCSSClass(),tabIndex:0},t),"button"===e&&tp.error(`Creating a ClickableComponent with an HTML element of ${e} is not supported; use a Button instead.`),r=Object.assign({role:"button"},r),this.tabIndex_=t.tabIndex;let i=tJ(e,t,r);return this.player_.options_.experimentalSvgIcons||i.appendChild(tJ("span",{className:"vjs-icon-placeholder"},{"aria-hidden":!0})),this.createControlTextEl(i),i}dispose(){this.controlTextEl_=null,super.dispose()}createControlTextEl(e){return this.controlTextEl_=tJ("span",{className:"vjs-control-text"},{"aria-live":"polite"}),e&&e.appendChild(this.controlTextEl_),this.controlText(this.controlText_,e),this.controlTextEl_}controlText(e,t=this.el()){if(void 0===e)return this.controlText_||"Need Text";let r=this.localize(e);this.controlText_=e,tZ(this.controlTextEl_,r),this.nonIconControl||this.player_.options_.noUITitleAttributes||t.setAttribute("title",r)}buildCSSClass(){return`vjs-control vjs-button ${super.buildCSSClass()}`}enable(){this.enabled_||(this.enabled_=!0,this.removeClass("vjs-disabled"),this.el_.setAttribute("aria-disabled","false"),void 0!==this.tabIndex_&&this.el_.setAttribute("tabIndex",this.tabIndex_),this.on(["tap","click"],this.handleClick_),this.on("keydown",this.handleKeyDown_))}disable(){this.enabled_=!1,this.addClass("vjs-disabled"),this.el_.setAttribute("aria-disabled","true"),void 0!==this.tabIndex_&&this.el_.removeAttribute("tabIndex"),this.off("mouseover",this.handleMouseOver_),this.off("mouseout",this.handleMouseOut_),this.off(["tap","click"],this.handleClick_),this.off("keydown",this.handleKeyDown_)}handleLanguagechange(){this.controlText(this.controlText_)}handleClick(e){this.options_.clickHandler&&this.options_.clickHandler.call(this,arguments)}handleKeyDown(e){" "===e.key||"Enter"===e.key?(e.preventDefault(),e.stopPropagation(),this.trigger("click")):super.handleKeyDown(e)}}r2.registerComponent("ClickableComponent",i0);class i1 extends i0{constructor(e,t){super(e,t),this.update(),this.update_=e=>this.update(e),e.on("posterchange",this.update_)}dispose(){this.player().off("posterchange",this.update_),super.dispose()}createEl(){return tJ("div",{className:"vjs-poster"})}crossOrigin(e){if(void 0===e)return this.$("img")?this.$("img").crossOrigin:this.player_.tech_&&this.player_.tech_.isReady_?this.player_.crossOrigin():this.player_.options_.crossOrigin||this.player_.options_.crossorigin||null;
133null!==e&&"anonymous"!==e&&"use-credentials"!==e?this.player_.log.warn(`crossOrigin must be null,  "anonymous" or "use-credentials", given "${e}"`):this.$("img")&&(this.$("img").crossOrigin=e)}update(e){let t=this.player().poster();this.setSrc(t),t?this.show():this.hide()}setSrc(e){if(!e){this.el_.textContent="";return}this.$("img")||this.el_.appendChild(tJ("picture",{className:"vjs-poster",tabIndex:-1},{},tJ("img",{loading:"lazy",crossOrigin:this.crossOrigin()},{alt:""}))),this.$("img").src=e}handleClick(e){this.player_.controls()&&(this.player_.tech(!0)&&this.player_.tech(!0).focus(),this.player_.paused()?is(this.player_.play()):this.player_.pause())}}i1.prototype.crossorigin=i1.prototype.crossOrigin,r2.registerComponent("PosterImage",i1);let i2="#222",i4="#ccc",i5={monospace:"monospace",sansSerif:"sans-serif",serif:"serif",monospaceSansSerif:'"Andale Mono", "Lucida Console", monospace',monospaceSerif:'"Courier New", monospace',proportionalSansSerif:"sans-serif",proportionalSerif:"serif",casual:'"Comic Sans MS", Impact, fantasy',script:'"Monotype Corsiva", cursive',smallcaps:'"Andale Mono", "Lucida Console", monospace, sans-serif'};function i3(e,t){let r;if(4===e.length)r=e[1]+e[1]+e[2]+e[2]+e[3]+e[3];else if(7===e.length)r=e.slice(1);else throw Error("Invalid color code provided, "+e+"; must be formatted as e.g. #f0e or #f604e2.");return"rgba("+parseInt(r.slice(0,2),16)+","+parseInt(r.slice(2,4),16)+","+parseInt(r.slice(4,6),16)+","+t+")"}function i8(e,t,r){try{e.style[t]=r}catch(e){return}}function i6(e){return e?`${e}px`:""}r2.registerComponent("TextTrackDisplay",class extends r2{constructor(e,t,r){super(e,t,r);const i=e=>this.updateDisplay(e),n=e=>{this.updateDisplayOverlay(),this.updateDisplay(e)};e.on("loadstart",e=>this.toggleDisplay(e)),e.on("useractive",i),e.on("userinactive",i),e.on("texttrackchange",i),e.on("loadedmetadata",e=>{this.updateDisplayOverlay(),this.preselectTrack(e)}),e.ready(rD(this,function(){if(e.tech_&&e.tech_.featuresNativeTextTracks)return void this.hide();e.on("fullscreenchange",n),e.on("playerresize",n);let t=h.default.screen.orientation||h.default,r=h.default.screen.orientation?"change":"orientationchange";t.addEventListener(r,n),e.on("dispose",()=>t.removeEventListener(r,n));let i=this.options_.playerOptions.tracks||[];for(let e=0;e<i.length;e++)this.player_.addRemoteTextTrack(i[e],!0);this.preselectTrack()}))}preselectTrack(){let e,t,r,i={captions:1,subtitles:1},n=this.player_.textTracks(),a=this.player_.cache_.selectedLanguage;for(let s=0;s<n.length;s++){let o=n[s];a&&a.enabled&&a.language&&a.language===o.language&&o.kind in i?o.kind===a.kind?r=o:r||(r=o):a&&!a.enabled?(r=null,e=null,t=null):o.default&&("descriptions"!==o.kind||e?o.kind in i&&!t&&(t=o):e=o)}r?r.mode="showing":t?t.mode="showing":e&&(e.mode="showing")}toggleDisplay(){this.player_.tech_&&this.player_.tech_.featuresNativeTextTracks?this.hide():this.show()}createEl(){return super.createEl("div",{className:"vjs-text-track-display"},{translate:"yes","aria-live":"off","aria-atomic":"true"})}clearDisplay(){"function"==typeof h.default.WebVTT&&h.default.WebVTT.processCues(h.default,[],this.el_)}updateDisplay(){let e=this.player_.textTracks(),t=this.options_.allowMultipleShowingTracks;if(this.clearDisplay(),t){let t=[];for(let r=0;r<e.length;++r){let i=e[r];"showing"===i.mode&&t.push(i)}this.updateForTrack(t);return}let r=null,i=null,n=e.length;for(;n--;){let t=e[n];"showing"===t.mode&&("descriptions"===t.kind?r=t:i=t)}if(i?("off"!==this.getAttribute("aria-live")&&this.setAttribute("aria-live","off"),this.updateForTrack(i)):r&&("assertive"!==this.getAttribute("aria-live")&&this.setAttribute("aria-live","assertive"),this.updateForTrack(r)),!(void 0!==h.default.CSS&&h.default.CSS.supports("inset","10px"))){let e=this.el_,t=e.querySelectorAll(".vjs-text-track-cue"),r=this.player_.controlBar.el_.getBoundingClientRect().height,i=this.player_.el_.getBoundingClientRect().height;e.style="",i8(e,"position","relative"),i8(e,"height",i-r+"px"),i8(e,"top","unset"),t$?i8(e,"bottom",i+"px"):i8(e,"bottom","0px"),t.length>0&&t.forEach(e=>{if(e.style.inset){let t=e.style.inset.split(" ");3===t.length&&Object.assign(e.style,{top:t[0],right:t[1],bottom:t[2],left:"unset"})}})}}updateDisplayOverlay(){if(!this.player_.videoHeight()||!(void 0!==h.default.CSS&&h.default.CSS.supports("inset-inline: 10px")))return;let e=this.player_.currentWidth(),t=this.player_.currentHeight(),r=e/t,i=this.player_.videoWidth()/this.player_.videoHeight(),n=0,a=0;Math.abs(r-i)>.1&&(r>i?n=Math.round((e-t*i)/2):a=Math.round((t-e/i)/2)),i8(this.el_,"insetInline",i6(n)),i8(this.el_,"insetBlock",i6(a))}updateDisplayState(e){let t=this.player_.textTrackSettings.getValues(),r=e.activeCues,i=r.length;for(;i--;){let e=r[i];if(!e)continue;let n=e.displayState;if(t.color&&(n.firstChild.style.color=t.color),t.textOpacity&&i8(n.firstChild,"color",i3(t.color||"#fff",t.textOpacity)),t.backgroundColor&&(n.firstChild.style.backgroundColor=t.backgroundColor),t.backgroundOpacity&&i8(n.firstChild,"backgroundColor",i3(t.backgroundColor||"#000",t.backgroundOpacity)),t.windowColor&&(t.windowOpacity?i8(n,"backgroundColor",i3(t.windowColor,t.windowOpacity)):n.style.backgroundColor=t.windowColor),t.edgeStyle&&("dropshadow"===t.edgeStyle?n.firstChild.style.textShadow=`2px 2px 3px ${i2}, 2px 2px 4px ${i2}, 2px 2px 5px ${i2}`:"raised"===t.edgeStyle?n.firstChild.style.textShadow=`1px 1px ${i2}, 2px 2px ${i2}, 3px 3px ${i2}`:"depressed"===t.edgeStyle?n.firstChild.style.textShadow=`1px 1px ${i4}, 0 1px ${i4}, -1px -1px ${i2}, 0 -1px ${i2}`:"uniform"===t.edgeStyle&&(n.firstChild.style.textShadow=`0 0 4px ${i2}, 0 0 4px ${i2}, 0 0 4px ${i2}, 0 0 4px ${i2}`)),t.fontPercent&&1!==t.fontPercent){let e=h.default.parseFloat(n.style.fontSize);n.style.fontSize=e*t.fontPercent+"px",n.style.height="auto",n.style.top="auto"}
133t.fontFamily&&"default"!==t.fontFamily&&("small-caps"===t.fontFamily?n.firstChild.style.fontVariant="small-caps":n.firstChild.style.fontFamily=i5[t.fontFamily])}}updateForTrack(e){if(Array.isArray(e)||(e=[e]),"function"!=typeof h.default.WebVTT||e.every(e=>!e.activeCues))return;let t=[];for(let r=0;r<e.length;++r){let i=e[r];for(let e=0;e<i.activeCues.length;++e)t.push(i.activeCues[e])}h.default.WebVTT.processCues(h.default,t,this.el_);for(let t=0;t<e.length;++t){let r=e[t];for(let e=0;e<r.activeCues.length;++e){let i=r.activeCues[e].displayState;t2(i,"vjs-text-track-cue","vjs-text-track-cue-"+(r.language?r.language:t)),r.language&&t7(i,"lang",r.language)}this.player_.textTrackSettings&&this.updateDisplayState(r)}}}),r2.registerComponent("LoadingSpinner",class extends r2{createEl(){let e=this.player_.isAudio(),t=this.localize(e?"Audio Player":"Video Player"),r=tJ("span",{className:"vjs-control-text",textContent:this.localize("{1} is loading.",[t])}),i=super.createEl("div",{className:"vjs-loading-spinner",dir:"ltr"});return i.appendChild(r),i}handleLanguagechange(){this.$(".vjs-control-text").textContent=this.localize("{1} is loading.",[this.player_.isAudio()?"Audio Player":"Video Player"])}});class i7 extends i0{createEl(e,t={},r={}){e="button",t=Object.assign({className:this.buildCSSClass()},t),r=Object.assign({type:"button"},r);let i=tJ(e,t,r);return this.player_.options_.experimentalSvgIcons||i.appendChild(tJ("span",{className:"vjs-icon-placeholder"},{"aria-hidden":!0})),this.createControlTextEl(i),i}addChild(e,t={}){let r=this.constructor.name;return tp.warn(`Adding an actionable (user controllable) child to a Button (${r}) is not supported; use a ClickableComponent instead.`),r2.prototype.addChild.call(this,e,t)}enable(){super.enable(),this.el_.removeAttribute("disabled")}disable(){super.disable(),this.el_.setAttribute("disabled","disabled")}handleKeyDown(e){" "===e.key||"Enter"===e.key?e.stopPropagation():super.handleKeyDown(e)}}r2.registerComponent("Button",i7);class i9 extends i7{constructor(e,t){super(e,t),this.mouseused_=!1,this.setIcon("play"),this.on("mousedown",e=>this.handleMouseDown(e))}buildCSSClass(){return"vjs-big-play-button"}handleClick(e){let t=this.player_.play();if("tap"===e.type||this.mouseused_&&"clientX"in e&&"clientY"in e){is(t),this.player_.tech(!0)&&this.player_.tech(!0).focus();return}let r=this.player_.getChild("controlBar"),i=r&&r.getChild("playToggle");if(!i)return void this.player_.tech(!0).focus();let n=()=>i.focus();ia(t)?t.then(n,()=>{}):this.setTimeout(n,1)}handleKeyDown(e){this.mouseused_=!1,super.handleKeyDown(e)}handleMouseDown(e){this.mouseused_=!0}}i9.prototype.controlText_="Play Video",r2.registerComponent("BigPlayButton",i9),r2.registerComponent("CloseButton",class extends i7{constructor(e,t){super(e,t),this.setIcon("cancel"),this.controlText(t&&t.controlText||this.localize("Close"))}buildCSSClass(){return`vjs-close-button ${super.buildCSSClass()}`}handleClick(e){this.trigger({type:"close",bubbles:!1})}handleKeyDown(e){"Escape"===e.key?(e.preventDefault(),e.stopPropagation(),this.trigger("click")):super.handleKeyDown(e)}});class ne extends i7{constructor(e,t={}){super(e,t),t.replay=void 0===t.replay||t.replay,this.setIcon("play"),this.on(e,"play",e=>this.handlePlay(e)),this.on(e,"pause",e=>this.handlePause(e)),t.replay&&this.on(e,"ended",e=>this.handleEnded(e))}buildCSSClass(){return`vjs-play-control ${super.buildCSSClass()}`}handleClick(e){this.player_.paused()?is(this.player_.play()):this.player_.pause()}handleSeeked(e){this.removeClass("vjs-ended"),this.player_.paused()?this.handlePause(e):this.handlePlay(e)}handlePlay(e){this.removeClass("vjs-ended","vjs-paused"),this.addClass("vjs-playing"),this.setIcon("pause"),this.controlText("Pause")}handlePause(e){this.removeClass("vjs-playing"),this.addClass("vjs-paused"),this.setIcon("play"),this.controlText("Play")}handleEnded(e){this.removeClass("vjs-playing"),this.addClass("vjs-ended"),this.setIcon("replay"),this.controlText("Replay"),this.one(this.player_,"seeked",e=>this.handleSeeked(e))}}ne.prototype.controlText_="Play",r2.registerComponent("PlayToggle",ne);class nt extends r2{constructor(e,t){super(e,t),this.on(e,["timeupdate","ended","seeking"],e=>this.update(e)),this.updateTextNode_()}createEl(){let e=this.buildCSSClass(),t=super.createEl("div",{className:`${e} vjs-time-control vjs-control`}),r=tJ("span",{className:"vjs-control-text",textContent:`${this.localize(this.labelText_)}\u00a0`},{role:"presentation"});return t.appendChild(r),this.contentEl_=tJ("span",{className:`${e}-display`},{role:"presentation"}),t.appendChild(this.contentEl_),t}dispose(){this.contentEl_=null,this.textNode_=null,super.dispose()}update(e){(this.player_.options_.enableSmoothSeeking||"seeking"!==e.type)&&this.updateContent(e)}updateTextNode_(e=0){e=ie(e),this.formattedTime_!==e&&(this.formattedTime_=e,this.requestNamedAnimationFrame("TimeDisplay#updateTextNode_",()=>{if(!this.contentEl_)return;let e=this.textNode_;e&&this.contentEl_.firstChild!==e&&(e=null,tp.warn("TimeDisplay#updateTextnode_: Prevented replacement of text node element since it was no longer a child of this node. Appending a new node instead.")),this.textNode_=f.default.createTextNode(this.formattedTime_),this.textNode_&&(e?this.contentEl_.replaceChild(this.textNode_,e):this.contentEl_.appendChild(this.textNode_))}))}updateContent(e){}}nt.prototype.labelText_="Time",nt.prototype.controlText_="Time",r2.registerComponent("TimeDisplay",nt);class nr extends nt{buildCSSClass(){return"vjs-current-time"}updateContent(e){let t;t=this.player_.ended()?this.player_.duration():e&&e.target&&"function"==typeof e.target.pendingSeekTime&&null!==e.target.pendingSeekTime()?e.target.pendingSeekTime():this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime(),this.updateTextNode_(t)}}nr.prototype.labelText_="Current Time",nr.prototype.controlText_="Current Time",r2.registerComponent("CurrentTimeDisplay",nr);class ni extends nt{constructor(e,t){super(e,t);const r=e=>this.updateContent(e);this.on(e,"durationchange",r),this.on(e,"loadstart",r),this.on(e,"loadedmetadata",r)}buildCSSClass(){return"vjs-duration"}updateContent(e){let t=this.player_.duration();this.updateTextNode_(t)}}ni.prototype.labelText_="Duration",ni.prototype.controlText_="Duration",r2.registerComponent("DurationDisplay",ni),r2.registerComponent("TimeDivider",class extends r2{createEl(){let e=super.createEl("div",{className:"vjs-time-control vjs-time-divider"},{"aria-hidden":!0}),t=super.createEl("div"),r=super.createEl("span",{textContent:"/"});
vendor: 6,387 bytes, line 133
133return t.appendChild(r),e.appendChild(t),e}});class nn extends nt{constructor(e,t){super(e,t),this.on(e,"durationchange",e=>this.updateContent(e))}buildCSSClass(){return"vjs-remaining-time"}createEl(){let e=super.createEl();return!1!==this.options_.displayNegative&&e.insertBefore(tJ("span",{},{"aria-hidden":!0},"-"),this.contentEl_),e}updateContent(e){let t;"number"==typeof this.player_.duration()&&(t=this.player_.ended()?0:this.player_.remainingTimeDisplay?this.player_.remainingTimeDisplay():this.player_.remainingTime(),this.updateTextNode_(t))}}nn.prototype.labelText_="Remaining Time",nn.prototype.controlText_="Remaining Time",r2.registerComponent("RemainingTimeDisplay",nn),r2.registerComponent("LiveDisplay",class extends r2{constructor(e,t){super(e,t),this.updateShowing(),this.on(this.player(),"durationchange",e=>this.updateShowing(e))}createEl(){let e=super.createEl("div",{className:"vjs-live-control vjs-control"});return this.contentEl_=tJ("div",{className:"vjs-live-display"},{"aria-live":"off"}),this.contentEl_.appendChild(tJ("span",{className:"vjs-control-text",textContent:`${this.localize("Stream Type")}\u00a0`})),this.contentEl_.appendChild(f.default.createTextNode(this.localize("LIVE"))),e.appendChild(this.contentEl_),e}dispose(){this.contentEl_=null,super.dispose()}updateShowing(e){this.player().duration()===1/0?this.show():this.hide()}});class na extends i7{constructor(e,t){super(e,t),this.updateLiveEdgeStatus(),this.player_.liveTracker&&(this.updateLiveEdgeStatusHandler_=e=>this.updateLiveEdgeStatus(e),this.on(this.player_.liveTracker,"liveedgechange",this.updateLiveEdgeStatusHandler_))}createEl(){let e=super.createEl("button",{className:"vjs-seek-to-live-control vjs-control"});return this.setIcon("circle",e),this.textEl_=tJ("span",{className:"vjs-seek-to-live-text",textContent:this.localize("LIVE")},{"aria-hidden":"true"}),e.appendChild(this.textEl_),e}updateLiveEdgeStatus(){!this.player_.liveTracker||this.player_.liveTracker.atLiveEdge()?(this.setAttribute("aria-disabled",!0),this.addClass("vjs-at-live-edge"),this.controlText("Seek to live, currently playing live")):(this.setAttribute("aria-disabled",!1),this.removeClass("vjs-at-live-edge"),this.controlText("Seek to live, currently behind live"))}handleClick(){this.player_.liveTracker.seekToLiveEdge()}dispose(){this.player_.liveTracker&&this.off(this.player_.liveTracker,"liveedgechange",this.updateLiveEdgeStatusHandler_),this.textEl_=null,super.dispose()}}function ns(e,t,r){return Math.min(r,Math.max(t,isNaN(e=Number(e))?t:e))}na.prototype.controlText_="Seek to live, currently playing live",r2.registerComponent("SeekToLive",na);var no=Object.freeze({__proto__:null,clamp:ns});class nl extends r2{constructor(e,t){super(e,t),this.handleMouseDown_=e=>this.handleMouseDown(e),this.handleMouseUp_=e=>this.handleMouseUp(e),this.handleKeyDown_=e=>this.handleKeyDown(e),this.handleClick_=e=>this.handleClick(e),this.handleMouseMove_=e=>this.handleMouseMove(e),this.update_=e=>this.update(e),this.bar=this.getChild(this.options_.barName),this.vertical(!!this.options_.vertical),this.enable()}enabled(){return this.enabled_}enable(){this.enabled()||(this.on("mousedown",this.handleMouseDown_),this.on("touchstart",this.handleMouseDown_),this.on("keydown",this.handleKeyDown_),this.on("click",this.handleClick_),this.on(this.player_,"controlsvisible",this.update),this.playerEvent&&this.on(this.player_,this.playerEvent,this.update),this.removeClass("disabled"),this.setAttribute("tabindex",0),this.enabled_=!0)}disable(){if(!this.enabled())return;let e=this.bar.el_.ownerDocument;this.off("mousedown",this.handleMouseDown_),this.off("touchstart",this.handleMouseDown_),this.off("keydown",this.handleKeyDown_),this.off("click",this.handleClick_),this.off(this.player_,"controlsvisible",this.update_),this.off(e,"mousemove",this.handleMouseMove_),this.off(e,"mouseup",this.handleMouseUp_),this.off(e,"touchmove",this.handleMouseMove_),this.off(e,"touchend",this.handleMouseUp_),this.removeAttribute("tabindex"),this.addClass("disabled"),this.playerEvent&&this.off(this.player_,this.playerEvent,this.update),this.enabled_=!1}createEl(e,t={},r={}){return t.className=t.className+" vjs-slider",t=Object.assign({tabIndex:0},t),r=Object.assign({role:"slider","aria-valuenow":0,"aria-valuemin":0,"aria-valuemax":100},r),super.createEl(e,t,r)}handleMouseDown(e){let t=this.bar.el_.ownerDocument;"mousedown"===e.type&&e.preventDefault(),"touchstart"!==e.type||tA||e.preventDefault(),re(),this.addClass("vjs-sliding"),this.trigger("slideractive"),this.on(t,"mousemove",this.handleMouseMove_),this.on(t,"mouseup",this.handleMouseUp_),this.on(t,"touchmove",this.handleMouseMove_),this.on(t,"touchend",this.handleMouseUp_),this.handleMouseMove(e,!0)}handleMouseMove(e){}handleMouseUp(e){let t=this.bar.el_.ownerDocument;rt(),this.removeClass("vjs-sliding"),this.trigger("sliderinactive"),this.off(t,"mousemove",this.handleMouseMove_),this.off(t,"mouseup",this.handleMouseUp_),this.off(t,"touchmove",this.handleMouseMove_),this.off(t,"touchend",this.handleMouseUp_),this.update()}update(){if(!this.el_||!this.bar)return;let e=this.getProgress();return e===this.progress_||(this.progress_=e,this.requestNamedAnimationFrame("Slider#update",()=>{let t=this.vertical()?"height":"width";this.bar.el().style[t]=(100*e).toFixed(2)+"%"})),e}getProgress(){return Number(ns(this.getPercent(),0,1).toFixed(4))}calculateDistance(e){let t=rn(this.el_,e);return this.vertical()?t.y:t.x}handleKeyDown(e){let t=this.options_.playerOptions.spatialNavigation,r=t&&t.enabled,i=t&&t.horizontalSeek;r?i&&"ArrowLeft"===e.key||!i&&"ArrowDown"===e.key?(e.preventDefault(),e.stopPropagation(),this.stepBack()):i&&"ArrowRight"===e.key||!i&&"ArrowUp"===e.key?(e.preventDefault(),e.stopPropagation(),this.stepForward()):(this.pendingSeekTime()&&(this.pendingSeekTime(null),this.userSeek_(this.player_.currentTime())),super.handleKeyDown(e)):"ArrowLeft"===e.key||"ArrowDown"===e.key?(e.preventDefault(),e.stopPropagation(),this.stepBack()):"ArrowUp"===e.key||"ArrowRight"===e.key?(e.preventDefault(),e.stopPropagation(),this.stepForward()):super.handleKeyDown(e)}handleClick(e){e.stopPropagation(),e.preventDefault()}vertical(e){if(void 0===e)return this.vertical_||!1;this.vertical_=!!e,this.vertical_?this.addClass("vjs-slider-vertical"):this.addClass("vjs-slider-horizontal")}}r2.registerComponent("Slider",nl);let nc=(e,t)=>
133ns(e/t*100,0,100).toFixed(2)+"%";r2.registerComponent("LoadProgressBar",class extends r2{constructor(e,t){super(e,t),this.partEls_=[],this.on(e,"progress",e=>this.update(e))}createEl(){let e=super.createEl("div",{className:"vjs-load-progress"}),t=tJ("span",{className:"vjs-control-text"}),r=tJ("span",{textContent:this.localize("Loaded")}),i=f.default.createTextNode(": ");return this.percentageEl_=tJ("span",{className:"vjs-control-text-loaded-percentage",textContent:"0%"}),e.appendChild(t),t.appendChild(r),t.appendChild(i),t.appendChild(this.percentageEl_),e}dispose(){this.partEls_=null,this.percentageEl_=null,super.dispose()}update(e){this.requestNamedAnimationFrame("LoadProgressBar#update",()=>{let e=this.player_.liveTracker,t=this.player_.buffered(),r=e&&e.isLive()?e.seekableEnd():this.player_.duration(),i=this.player_.bufferedEnd(),n=this.partEls_,a=nc(i,r);this.percent_!==a&&(this.el_.style.width=a,tZ(this.percentageEl_,a),this.percent_=a);for(let e=0;e<t.length;e++){let r=t.start(e),a=t.end(e),s=n[e];s||(s=this.el_.appendChild(tJ()),n[e]=s),(s.dataset.start!==r||s.dataset.end!==a)&&(s.dataset.start=r,s.dataset.end=a,s.style.left=nc(r,i),s.style.width=nc(a-r,i))}for(let e=n.length;e>t.length;e--)this.el_.removeChild(n[e-1]);n.length=t.length})}}),r2.registerComponent("TimeTooltip",class extends r2{constructor(e,t){super(e,t),this.update=rR(rD(this,this.update),30)}createEl(){return super.createEl("div",{className:"vjs-time-tooltip"},{"aria-hidden":"true"})}update(e,t,r){let i=ri(this.el_),n=rr(this.player_.el()),a=e.width*t;if(!n||!i)return;let s=e.left-n.left+a,o=e.width-a+(n.right-e.right);o||(o=e.width-a,s=a);let l=i.width/2;s<l?l+=l-s:o<l&&(l=o),l<0?l=0:l>i.width&&(l=i.width),l=Math.round(l),this.el_.style.right=`-${l}px`,this.write(r)}write(e){tZ(this.el_,e)}updateTime(e,t,r,i){this.requestNamedAnimationFrame("TimeTooltip#updateTime",()=>{let n,a=this.player_.duration();if(this.player_.liveTracker&&this.player_.liveTracker.isLive()){let e=this.player_.liveTracker.liveWindow(),r=e-t*e;n=(r<1?"":"-")+ie(r,e)}else n=ie(r,a);this.update(e,t,n),i&&i()})}});class nu extends r2{constructor(e,t){super(e,t),this.setIcon("circle"),this.update=rR(rD(this,this.update),30)}createEl(){return super.createEl("div",{className:"vjs-play-progress vjs-slider-bar"},{"aria-hidden":"true"})}update(e,t,r){let i=this.getChild("timeTooltip");if(!i)return;let n=r&&r.target&&"function"==typeof r.target.pendingSeekTime?r.target.pendingSeekTime():this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime();i.updateTime(e,t,n)}}nu.prototype.options_={children:[]},tH||tE||nu.prototype.options_.children.push("timeTooltip"),r2.registerComponent("PlayProgressBar",nu);class nd extends r2{constructor(e,t){super(e,t),this.update=rR(rD(this,this.update),30)}createEl(){return super.createEl("div",{className:"vjs-mouse-display"})}update(e,t){let r=t*this.player_.duration();this.getChild("timeTooltip").updateTime(e,t,r,()=>{this.el_.style.left=`${e.width*t}px`})}}nd.prototype.options_={children:["timeTooltip"]},r2.registerComponent("MouseTimeDisplay",nd);class np extends nl{constructor(e,t){(t=tx(np.prototype.options_,t)).children=[...t.children];const r=e.options_.disableSeekWhileScrubbingOnMobile&&(tH||tE)||e.options_.disableSeekWhileScrubbingOnSTV;(tH||tE)&&!r||t.children.splice(1,0,"mouseTimeDisplay"),super(e,t),this.shouldDisableSeekWhileScrubbing_=r,this.pendingSeekTime_=null,this.setEventHandlers_()}setEventHandlers_(){this.update_=rD(this,this.update),this.update=rR(this.update_,30),this.on(this.player_,["durationchange","timeupdate"],this.update),this.on(this.player_,["ended"],this.update_),this.player_.liveTracker&&this.on(this.player_.liveTracker,"liveedgechange",this.update),this.updateInterval=null,this.enableIntervalHandler_=e=>this.enableInterval_(e),this.disableIntervalHandler_=e=>this.disableInterval_(e),this.on(this.player_,["playing"],this.enableIntervalHandler_),this.on(this.player_,["ended","pause","waiting"],this.disableIntervalHandler_),"hidden"in f.default&&"visibilityState"in f.default&&this.on(f.default,"visibilitychange",this.toggleVisibility_)}toggleVisibility_(e){"hidden"===f.default.visibilityState?(this.cancelNamedAnimationFrame("SeekBar#update"),this.cancelNamedAnimationFrame("Slider#update"),this.disableInterval_(e)):(this.player_.ended()||this.player_.paused()||this.enableInterval_(),this.update())}enableInterval_(){this.updateInterval||(this.updateInterval=this.setInterval(this.update,30))}disableInterval_(e){this.player_.liveTracker&&this.player_.liveTracker.isLive()&&e&&"ended"!==e.type||this.updateInterval&&(this.clearInterval(this.updateInterval),this.updateInterval=null)}createEl(){return super.createEl("div",{className:"vjs-progress-holder"},{"aria-label":this.localize("Progress Bar")})}update(e){if("hidden"===f.default.visibilityState)return;
133let t=super.update();return this.requestNamedAnimationFrame("SeekBar#update",()=>{let r=this.player_.ended()?this.player_.duration():this.getCurrentTime_(),i=this.player_.liveTracker,n=this.player_.duration();i&&i.isLive()&&(n=this.player_.liveTracker.liveCurrentTime()),this.percent_!==t&&(this.el_.setAttribute("aria-valuenow",(100*t).toFixed(2)),this.percent_=t),(this.currentTime_!==r||this.duration_!==n)&&(this.el_.setAttribute("aria-valuetext",this.localize("progress bar timing: currentTime={1} duration={2}",[ie(r,n),ie(n,n)],"{1} of {2}")),this.currentTime_=r,this.duration_=n),this.bar&&this.bar.update(rr(this.el()),this.getProgress(),e)}),t}userSeek_(e){this.player_.liveTracker&&this.player_.liveTracker.isLive()&&this.player_.liveTracker.nextSeekedFromUser(),this.player_.currentTime(e)}getCurrentTime_(){return this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime()}pendingSeekTime(e){if(void 0!==e)if(null!==e){let t=this.player_.duration();this.pendingSeekTime_=Math.max(0,Math.min(e,t))}else this.pendingSeekTime_=null;return this.pendingSeekTime_}getPercent(){let e;if(null!==this.pendingSeekTime())return this.pendingSeekTime()/this.player_.duration();let t=this.getCurrentTime_(),r=this.player_.liveTracker;return r&&r.isLive()?(e=(t-r.seekableStart())/r.liveWindow(),r.atLiveEdge()&&(e=1)):e=t/this.player_.duration(),e}handleMouseDown(e){ru(e)&&(e.stopPropagation(),this.videoWasPlaying=!this.player_.paused(),this.shouldDisableSeekWhileScrubbing_||this.player_.pause(),super.handleMouseDown(e))}handleMouseMove(e,t=!1){let r;if(!ru(e)||isNaN(this.player_.duration()))return;t||this.player_.scrubbing()||this.player_.scrubbing(!0);let i=this.calculateDistance(e),n=this.player_.liveTracker;if(n&&n.isLive()){if(i>=.99)return void n.seekToLiveEdge();let e=n.seekableStart(),t=n.liveCurrentTime();if((r=e+i*n.liveWindow())>=t&&(r=t),r<=e&&(r=e+.1),r===1/0)return}else(r=i*this.player_.duration())===this.player_.duration()&&(r-=.1);this.shouldDisableSeekWhileScrubbing_?this.pendingSeekTime(r):this.userSeek_(r),this.player_.options_.enableSmoothSeeking&&this.update()}enable(){super.enable();let e=this.getChild("mouseTimeDisplay");e&&e.show()}disable(){super.disable();let e=this.getChild("mouseTimeDisplay");e&&e.hide()}handleMouseUp(e){super.handleMouseUp(e),e&&e.stopPropagation(),this.player_.scrubbing(!1),null!==this.pendingSeekTime()&&(this.userSeek_(this.pendingSeekTime()),this.pendingSeekTime(null)),this.player_.trigger({type:"timeupdate",target:this,manuallyTriggered:!0}),this.videoWasPlaying?is(this.player_.play()):this.update_()}handlePendingSeek_(e){this.player_.paused()||this.player_.pause();let t=null!==this.pendingSeekTime()?this.pendingSeekTime():this.player_.currentTime();this.pendingSeekTime(t+e),this.player_.trigger({type:"timeupdate",target:this,manuallyTriggered:!0})}stepForward(){this.shouldDisableSeekWhileScrubbing_?this.handlePendingSeek_(this.options().stepSeconds):this.userSeek_(this.player_.currentTime()+this.options().stepSeconds)}stepBack(){this.shouldDisableSeekWhileScrubbing_?this.handlePendingSeek_(-this.options().stepSeconds):this.userSeek_(this.player_.currentTime()-this.options().stepSeconds)}handleAction(e){null!==this.pendingSeekTime()&&(this.userSeek_(this.pendingSeekTime()),this.pendingSeekTime(null)),this.player_.paused()?this.player_.play():this.player_.pause()}handleKeyDown(e){let t=this.player_.liveTracker;if(" "===e.key||"Enter"===e.key)e.preventDefault(),e.stopPropagation(),this.handleAction(e);else if("Home"===e.key)e.preventDefault(),e.stopPropagation(),this.userSeek_(0);else if("End"===e.key)e.preventDefault(),e.stopPropagation(),t&&t.isLive()?this.userSeek_(t.liveCurrentTime()):this.userSeek_(this.player_.duration());else if(/^[0-9]$/.test(e.key)){e.preventDefault(),e.stopPropagation();let r=.1*parseInt(e.key,10);t&&t.isLive()?this.userSeek_(t.seekableStart()+t.liveWindow()*r):this.userSeek_(this.player_.duration()*r)}else"PageDown"===e.key?(e.preventDefault(),e.stopPropagation(),this.userSeek_(this.player_.currentTime()-this.options().stepSeconds*this.options().pageMultiplier)):"PageUp"===e.key?(e.preventDefault(),e.stopPropagation(),this.userSeek_(this.player_.currentTime()+this.options().stepSeconds*this.options().pageMultiplier)):super.handleKeyDown(e)}dispose(){this.disableInterval_(),this.off(this.player_,["durationchange","timeupdate"],this.update),this.off(this.player_,["ended"],this.update_),this.player_.liveTracker&&this.off(this.player_.liveTracker,"liveedgechange",this.update),this.off(this.player_,["playing"],this.enableIntervalHandler_),this.off(this.player_,["ended","pause","waiting"],this.disableIntervalHandler_),"hidden"in f.default&&"visibilityState"in f.default&&this.off(f.default,"visibilitychange",this.toggleVisibility_),super.dispose()}}np.prototype.options_={children:["loadProgressBar","playProgressBar"],barName:"playProgressBar",stepSeconds:5,pageMultiplier:12},r2.registerComponent("SeekBar",np);
133class nh extends r2{constructor(e,t){super(e,t),this.handleMouseMove=rR(rD(this,this.handleMouseMove),30),this.throttledHandleMouseSeek=rR(rD(this,this.handleMouseSeek),30),this.handleMouseUpHandler_=e=>this.handleMouseUp(e),this.handleMouseDownHandler_=e=>this.handleMouseDown(e),this.enable()}createEl(){return super.createEl("div",{className:"vjs-progress-control vjs-control"})}handleMouseMove(e){let t=this.getChild("seekBar");if(!t)return;let r=t.getChild("playProgressBar"),i=t.getChild("mouseTimeDisplay");if(!r&&!i)return;let n=t.el(),a=ri(n),s=rn(n,e).x;s=ns(s,0,1),i&&i.update(a,s),r&&r.update(a,t.getProgress())}handleMouseSeek(e){let t=this.getChild("seekBar");t&&t.handleMouseMove(e)}enabled(){return this.enabled_}disable(){if(this.children().forEach(e=>e.disable&&e.disable()),this.enabled()&&(this.off(["mousedown","touchstart"],this.handleMouseDownHandler_),this.off(this.el_,["mousemove","touchmove"],this.handleMouseMove),this.removeListenersAddedOnMousedownAndTouchstart(),this.addClass("disabled"),this.enabled_=!1,this.player_.scrubbing())){let e=this.getChild("seekBar");this.player_.scrubbing(!1),e.videoWasPlaying&&is(this.player_.play())}}
133enable(){this.children().forEach(e=>e.enable&&e.enable()),this.enabled()||(this.on(["mousedown","touchstart"],this.handleMouseDownHandler_),this.on(this.el_,["mousemove","touchmove"],this.handleMouseMove),this.removeClass("disabled"),this.enabled_=!0)}removeListenersAddedOnMousedownAndTouchstart(){let e=this.el_.ownerDocument;this.off(e,"mousemove",this.throttledHandleMouseSeek),this.off(e,"touchmove",this.throttledHandleMouseSeek),this.off(e,"mouseup",this.handleMouseUpHandler_),this.off(e,"touchend",this.handleMouseUpHandler_)}handleMouseDown(e){let t=this.el_.ownerDocument,r=this.getChild("seekBar");r&&r.handleMouseDown(e),this.on(t,"mousemove",this.throttledHandleMouseSeek),this.on(t,"touchmove",this.throttledHandleMouseSeek),this.on(t,"mouseup",this.handleMouseUpHandler_),this.on(t,"touchend",this.handleMouseUpHandler_)}handleMouseUp(e){let t=this.getChild("seekBar");t&&t.handleMouseUp(e),this.removeListenersAddedOnMousedownAndTouchstart()}}nh.prototype.options_={children:["seekBar"]},r2.registerComponent("ProgressControl",nh);class nf extends i7{constructor(e,t){super(e,t),this.setIcon("picture-in-picture-enter"),this.on(e,["enterpictureinpicture","leavepictureinpicture"],e=>this.handlePictureInPictureChange(e)),this.on(e,["disablepictureinpicturechanged","loadedmetadata"],e=>this.handlePictureInPictureEnabledChange(e)),this.on(e,["loadedmetadata","audioonlymodechange","audiopostermodechange"],()=>this.handlePictureInPictureAudioModeChange()),this.disable()}buildCSSClass(){return`vjs-picture-in-picture-control vjs-hidden ${super.buildCSSClass()}`}handlePictureInPictureAudioModeChange(){"audio"===this.player_.currentType().substring(0,5)||this.player_.audioPosterMode()||this.player_.audioOnlyMode()?(this.player_.isInPictureInPicture()&&this.player_.exitPictureInPicture(),this.hide()):this.show()}handlePictureInPictureEnabledChange(){f.default.pictureInPictureEnabled&&!1===this.player_.disablePictureInPicture()||this.player_.options_.enableDocumentPictureInPicture&&"documentPictureInPicture"in h.default?this.enable():this.disable()}handlePictureInPictureChange(e){this.player_.isInPictureInPicture()?(this.setIcon("picture-in-picture-exit"),this.controlText("Exit Picture-in-Picture")):(this.setIcon("picture-in-picture-enter"),this.controlText("Picture-in-Picture")),this.handlePictureInPictureEnabledChange()}handleClick(e){this.player_.isInPictureInPicture()?this.player_.exitPictureInPicture():this.player_.requestPictureInPicture()}show(){"function"==typeof f.default.exitPictureInPicture&&super.show()}}nf.prototype.controlText_="Picture-in-Picture",r2.registerComponent("PictureInPictureToggle",nf);class ng extends i7{constructor(e,t){super(e,t),this.setIcon("fullscreen-enter"),this.on(e,"fullscreenchange",e=>this.handleFullscreenChange(e)),!1===f.default[e.fsApi_.fullscreenEnabled]&&this.disable()}buildCSSClass(){return`vjs-fullscreen-control ${super.buildCSSClass()}`}handleFullscreenChange(e){this.player_.isFullscreen()?(this.controlText("Exit Fullscreen"),this.setIcon("fullscreen-exit")):(this.controlText("Fullscreen"),this.setIcon("fullscreen-enter"))}handleClick(e){this.player_.isFullscreen()?this.player_.exitFullscreen():this.player_.requestFullscreen()}}ng.prototype.controlText_="Fullscreen",r2.registerComponent("FullscreenToggle",ng);let nm=function(e,t){t.tech_&&!t.tech_.featuresVolumeControl&&e.addClass("vjs-hidden"),e.on(t,"loadstart",function(){t.tech_.featuresVolumeControl?e.removeClass("vjs-hidden"):e.addClass("vjs-hidden")})};r2.registerComponent("VolumeLevel",class extends r2{createEl(){let e=super.createEl("div",{className:"vjs-volume-level"});return this.setIcon("circle",e),e.appendChild(super.createEl("span",{className:"vjs-control-text"})),e}}),r2.registerComponent("VolumeLevelTooltip",class extends r2{constructor(e,t){super(e,t),this.update=rR(rD(this,this.update),30)}createEl(){return super.createEl("div",{className:"vjs-volume-tooltip"},{"aria-hidden":"true"})}update(e,t,r,i){if(!r){let r=rr(this.el_),i=rr(this.player_.el()),n=e.width*t;if(!i||!r)return;let a=e.left-i.left+n,s=e.width-n+(i.right-e.right),o=r.width/2;a<o?o+=o-a:s<o&&(o=s),o<0?o=0:o>r.width&&(o=r.width),this.el_.style.right=`-${o}px`}this.write(`${i}%`)}write(e){tZ(this.el_,e)}updateVolume(e,t,r,i,n){this.requestNamedAnimationFrame("VolumeLevelTooltip#updateVolume",()=>{this.update(e,t,r,i.toFixed(0)),n&&n()})}});
133class ny extends r2{constructor(e,t){super(e,t),this.update=rR(rD(this,this.update),30)}createEl(){return super.createEl("div",{className:"vjs-mouse-display"})}update(e,t,r){this.getChild("volumeLevelTooltip").updateVolume(e,t,r,100*t,()=>{r?this.el_.style.bottom=`${e.height*t}px`:this.el_.style.left=`${e.width*t}px`})}}ny.prototype.options_={children:["volumeLevelTooltip"]},r2.registerComponent("MouseVolumeLevelDisplay",ny);class nb extends nl{constructor(e,t){super(e,t),this.on("slideractive",e=>this.updateLastVolume_(e)),this.on(e,"volumechange",e=>this.updateARIAAttributes(e)),e.ready(()=>this.updateARIAAttributes())}createEl(){return super.createEl("div",{className:"vjs-volume-bar vjs-slider-bar"},{"aria-label":this.localize("Volume Level"),"aria-live":"polite"})}handleMouseDown(e){ru(e)&&super.handleMouseDown(e)}handleMouseMove(e){let t=this.getChild("mouseVolumeLevelDisplay");if(t){let r=this.el(),i=rr(r),n=this.vertical(),a=rn(r,e);a=ns(a=n?a.y:a.x,0,1),t.update(i,a,n)}ru(e)&&(this.checkMuted(),this.player_.volume(this.calculateDistance(e)))}checkMuted(){this.player_.muted()&&this.player_.muted(!1)}getPercent(){return this.player_.muted()?0:this.player_.volume()}stepForward(){this.checkMuted(),this.player_.volume(this.player_.volume()+.1)}stepBack(){this.checkMuted(),this.player_.volume(this.player_.volume()-.1)}updateARIAAttributes(e){let t=this.player_.muted()?0:this.volumeAsPercentage_();this.el_.setAttribute("aria-valuenow",t),this.el_.setAttribute("aria-valuetext",t+"%")}volumeAsPercentage_(){return Math.round(100*this.player_.volume())}updateLastVolume_(){let e=this.player_.volume();this.one("sliderinactive",()=>{0===this.player_.volume()&&this.player_.lastVolume_(e)})}}nb.prototype.options_={children:["volumeLevel"],barName:"volumeLevel"},tH||tE||nb.prototype.options_.children.splice(0,0,"mouseVolumeLevelDisplay"),nb.prototype.playerEvent="volumechange",r2.registerComponent("VolumeBar",nb);class nv extends r2{constructor(e,t={}){t.vertical=t.vertical||!1,(void 0===t.volumeBar||tv(t.volumeBar))&&(t.volumeBar=t.volumeBar||{},t.volumeBar.vertical=t.vertical),super(e,t),nm(this,e),this.throttledHandleMouseMove=rR(rD(this,this.handleMouseMove),30),this.handleMouseUpHandler_=e=>this.handleMouseUp(e),this.on("mousedown",e=>this.handleMouseDown(e)),this.on("touchstart",e=>this.handleMouseDown(e)),this.on("mousemove",e=>this.handleMouseMove(e)),this.on(this.volumeBar,["focus","slideractive"],()=>{this.volumeBar.addClass("vjs-slider-active"),this.addClass("vjs-slider-active"),this.trigger("slideractive")}),this.on(this.volumeBar,["blur","sliderinactive"],()=>{this.volumeBar.removeClass("vjs-slider-active"),this.removeClass("vjs-slider-active"),this.trigger("sliderinactive")})}createEl(){let e="vjs-volume-horizontal";return this.options_.vertical&&(e="vjs-volume-vertical"),super.createEl("div",{className:`vjs-volume-control vjs-control ${e}`})}handleMouseDown(e){let t=this.el_.ownerDocument;this.on(t,"mousemove",this.throttledHandleMouseMove),this.on(t,"touchmove",this.throttledHandleMouseMove),this.on(t,"mouseup",this.handleMouseUpHandler_),this.on(t,"touchend",this.handleMouseUpHandler_)}handleMouseUp(e){let t=this.el_.ownerDocument;this.off(t,"mousemove",this.throttledHandleMouseMove),this.off(t,"touchmove",this.throttledHandleMouseMove),this.off(t,"mouseup",this.handleMouseUpHandler_),this.off(t,"touchend",this.handleMouseUpHandler_)}handleMouseMove(e){this.volumeBar.handleMouseMove(e)}}nv.prototype.options_={children:["volumeBar"]},r2.registerComponent("VolumeControl",nv);let nx=function(e,t){t.tech_&&!t.tech_.featuresMuteControl&&e.addClass("vjs-hidden"),e.on(t,"loadstart",function(){t.tech_.featuresMuteControl?e.removeClass("vjs-hidden"):e.addClass("vjs-hidden")})};class n_ extends i7{constructor(e,t){super(e,t),nx(this,e),this.on(e,["loadstart","volumechange"],e=>this.update(e))}buildCSSClass(){return`vjs-mute-control ${super.buildCSSClass()}`}handleClick(e){let t=this.player_.volume(),r=this.player_.lastVolume_();0===t?(this.player_.volume(r<.1?.1:r),this.player_.muted(!1)):this.player_.muted(!this.player_.muted())}update(e){this.updateIcon_(),this.updateControlText_()}updateIcon_(){let e=this.player_.volume(),t=3;this.setIcon("volume-high"),tH&&this.player_.tech_&&this.player_.tech_.el_&&this.player_.muted(this.player_.tech_.el_.muted),0===e||this.player_.muted()?(this.setIcon("volume-mute"),t=0):e<.33?(this.setIcon("volume-low"),t=1):e<.67&&(this.setIcon("volume-medium"),t=2),t4(this.el_,[0,1,2,3].reduce((e,t)=>
133e+`${t?" ":""}vjs-vol-${t}`,"")),t2(this.el_,`vjs-vol-${t}`)}updateControlText_(){let e=this.player_.muted()||0===this.player_.volume()?"Unmute":"Mute";this.controlText()!==e&&this.controlText(e)}}n_.prototype.controlText_="Mute",r2.registerComponent("MuteToggle",n_);class nw extends r2{constructor(e,t={}){void 0!==t.inline?t.inline=t.inline:t.inline=!0,(void 0===t.volumeControl||tv(t.volumeControl))&&(t.volumeControl=t.volumeControl||{},t.volumeControl.vertical=!t.inline),super(e,t),this.handleKeyPressHandler_=e=>this.handleKeyPress(e),this.on(e,["loadstart"],e=>this.volumePanelState_(e)),this.on(this.muteToggle,"keyup",e=>this.handleKeyPress(e)),this.on(this.volumeControl,"keyup",e=>this.handleVolumeControlKeyUp(e)),this.on("keydown",e=>this.handleKeyPress(e)),this.on("mouseover",e=>this.handleMouseOver(e)),this.on("mouseout",e=>this.handleMouseOut(e)),this.on(this.volumeControl,["slideractive"],this.sliderActive_),this.on(this.volumeControl,["sliderinactive"],this.sliderInactive_)}sliderActive_(){this.addClass("vjs-slider-active")}sliderInactive_(){this.removeClass("vjs-slider-active")}volumePanelState_(){this.volumeControl.hasClass("vjs-hidden")&&this.muteToggle.hasClass("vjs-hidden")&&this.addClass("vjs-hidden"),this.volumeControl.hasClass("vjs-hidden")&&!this.muteToggle.hasClass("vjs-hidden")&&this.addClass("vjs-mute-toggle-only")}createEl(){let e="vjs-volume-panel-horizontal";return this.options_.inline||(e="vjs-volume-panel-vertical"),super.createEl("div",{className:`vjs-volume-panel vjs-control ${e}`})}dispose(){this.handleMouseOut(),super.dispose()}handleVolumeControlKeyUp(e){"Escape"===e.key&&this.muteToggle.focus()}handleMouseOver(e){this.addClass("vjs-hover"),rI(f.default,"keyup",this.handleKeyPressHandler_)}handleMouseOut(e){this.removeClass("vjs-hover"),rA(f.default,"keyup",this.handleKeyPressHandler_)}handleKeyPress(e){"Escape"===e.key&&this.handleMouseOut()}}nw.prototype.options_={children:["muteToggle","volumeControl"]},r2.registerComponent("VolumePanel",nw);class nT extends i7{constructor(e,t){super(e,t),this.validOptions=[5,10,30],this.skipTime=this.getSkipForwardTime(),this.skipTime&&this.validOptions.includes(this.skipTime)?(this.setIcon(`forward-${this.skipTime}`),this.controlText(this.localize("Skip forward {1} seconds",[this.skipTime.toLocaleString(e.language())])),this.show()):this.hide()}getSkipForwardTime(){let e=this.options_.playerOptions;return e.controlBar&&e.controlBar.skipButtons&&e.controlBar.skipButtons.forward}buildCSSClass(){return`vjs-skip-forward-${this.getSkipForwardTime()} ${super.buildCSSClass()}`}handleClick(e){let t;if(isNaN(this.player_.duration()))return;let r=this.player_.currentTime(),i=this.player_.liveTracker,n=i&&i.isLive()?i.seekableEnd():this.player_.duration();t=r+this.skipTime<=n?r+this.skipTime:n,this.player_.currentTime(t)}handleLanguagechange(){this.controlText(this.localize("Skip forward {1} seconds",[this.skipTime]))}}nT.prototype.controlText_="Skip Forward",r2.registerComponent("SkipForward",nT);class nS extends i7{constructor(e,t){super(e,t),this.validOptions=[5,10,30],this.skipTime=this.getSkipBackwardTime(),this.skipTime&&this.validOptions.includes(this.skipTime)?(this.setIcon(`replay-${this.skipTime}`),this.controlText(this.localize("Skip backward {1} seconds",[this.skipTime.toLocaleString(e.language())])),this.show()):this.hide()}getSkipBackwardTime(){let e=this.options_.playerOptions;return e.controlBar&&e.controlBar.skipButtons&&e.controlBar.skipButtons.backward}buildCSSClass(){return`vjs-skip-backward-${this.getSkipBackwardTime()} ${super.buildCSSClass()}`}handleClick(e){let t,r=this.player_.currentTime(),i=this.player_.liveTracker,n=i&&i.isLive()&&i.seekableStart();t=n&&r-this.skipTime<=n?n:r>=this.skipTime?r-this.skipTime:0,this.player_.currentTime(t)}handleLanguagechange(){this.controlText(this.localize("Skip backward {1} seconds",[this.skipTime]))}}nS.prototype.controlText_="Skip Backward",r2.registerComponent("SkipBackward",nS);class nC extends r2{constructor(e,t){super(e,t),t&&(this.menuButton_=t.menuButton),this.focusedChild_=-1,this.on("keydown",e=>this.handleKeyDown(e)),this.boundHandleBlur_=e=>this.handleBlur(e),this.boundHandleTapClick_=e=>this.handleTapClick(e)}addEventListenerForItem(e){e instanceof r2&&(this.on(e,"blur",this.boundHandleBlur_),this.on(e,["tap","click"],this.boundHandleTapClick_))}removeEventListenerForItem(e){e instanceof r2&&(this.off(e,"blur",this.boundHandleBlur_),this.off(e,["tap","click"],this.boundHandleTapClick_))}removeChild(e){"string"==typeof e&&(e=this.getChild(e)),this.removeEventListenerForItem(e),super.removeChild(e)}addItem(e){let t=this.addChild(e);t&&this.addEventListenerForItem(t)}createEl(){let e=this.options_.contentElType||"ul";this.contentEl_=tJ(e,{className:"vjs-menu-content"}),this.contentEl_.setAttribute("role","menu");let t=super.createEl("div",{append:this.contentEl_,className:"vjs-menu"});return t.appendChild(this.contentEl_),rI(t,"click",function(e){e.preventDefault(),e.stopImmediatePropagation()}),t}dispose(){this.contentEl_=null,this.boundHandleBlur_=null,this.boundHandleTapClick_=null,super.dispose()}handleBlur(e){let t=e.relatedTarget||f.default.activeElement;if(!this.children().some(e=>e.el()===t)){let e=this.menuButton_;e&&e.buttonPressed_&&t!==e.el().firstChild&&e.unpressButton()}}handleTapClick(e){if(this.menuButton_){this.menuButton_.unpressButton();let t=this.children();if(!Array.isArray(t))return;let r=t.filter(t=>t.el()===e.target)[0];r&&"CaptionSettingsMenuItem"!==r.name()&&this.menuButton_.focus()}}handleKeyDown(e){"ArrowLeft"===e.key||"ArrowDown"===e.key?(e.preventDefault(),e.stopPropagation(),this.stepForward()):("ArrowRight"===e.key||"ArrowUp"===e.key)&&
133(e.preventDefault(),e.stopPropagation(),this.stepBack())}stepForward(){let e=0;void 0!==this.focusedChild_&&(e=this.focusedChild_+1),this.focus(e)}stepBack(){let e=0;void 0!==this.focusedChild_&&(e=this.focusedChild_-1),this.focus(e)}focus(e=0){let t=this.children().slice();t.length&&t[0].hasClass("vjs-menu-title")&&t.shift(),t.length>0&&(e<0?e=0:e>=t.length&&(e=t.length-1),this.focusedChild_=e,t[e].el_.focus())}}r2.registerComponent("Menu",nC);class nE extends r2{constructor(e,t={}){super(e,t),this.menuButton_=new i7(e,t),this.menuButton_.controlText(this.controlText_),this.menuButton_.el_.setAttribute("aria-haspopup","true");const r=i7.prototype.buildCSSClass();this.menuButton_.el_.className=this.buildCSSClass()+" "+r,this.menuButton_.removeClass("vjs-control"),this.addChild(this.menuButton_),this.update(),this.enabled_=!0;const i=e=>this.handleClick(e);this.handleMenuKeyUp_=e=>this.handleMenuKeyUp(e),this.on(this.menuButton_,"tap",i),this.on(this.menuButton_,"click",i),this.on(this.menuButton_,"keydown",e=>this.handleKeyDown(e)),this.on(this.menuButton_,"mouseenter",()=>{this.addClass("vjs-hover"),this.menu.show(),rI(f.default,"keyup",this.handleMenuKeyUp_)}),this.on("mouseleave",e=>this.handleMouseLeave(e)),this.on("keydown",e=>this.handleSubmenuKeyDown(e))}update(){let e=this.createMenu();this.menu&&(this.menu.dispose(),this.removeChild(this.menu)),this.menu=e,this.addChild(e),this.buttonPressed_=!1,this.menuButton_.el_.setAttribute("aria-expanded","false"),this.items&&this.items.length<=this.hideThreshold_?(this.hide(),this.menu.contentEl_.removeAttribute("role")):(this.show(),this.menu.contentEl_.setAttribute("role","menu"))}createMenu(){let e=new nC(this.player_,{menuButton:this});if(this.hideThreshold_=0,this.options_.title){let t=tJ("li",{className:"vjs-menu-title",textContent:rZ(this.options_.title),tabIndex:-1}),r=new r2(this.player_,{el:t});e.addItem(r)}if(this.items=this.createItems(),this.items)for(let t=0;t<this.items.length;t++)e.addItem(this.items[t]);return e}createItems(){}createEl(){return super.createEl("div",{className:this.buildWrapperCSSClass()},{})}setIcon(e){return super.setIcon(e,this.menuButton_.el_)}buildWrapperCSSClass(){let e="vjs-menu-button";!0===this.options_.inline?e+="-inline":e+="-popup";let t=i7.prototype.buildCSSClass();return`vjs-menu-button ${e} ${t} ${super.buildCSSClass()}`}buildCSSClass(){let e="vjs-menu-button";return!0===this.options_.inline?e+="-inline":e+="-popup",`vjs-menu-button ${e} ${super.buildCSSClass()}`}controlText(e,t=this.menuButton_.el()){return this.menuButton_.controlText(e,t)}dispose(){this.handleMouseLeave(),super.dispose()}handleClick(e){this.buttonPressed_?this.unpressButton():this.pressButton()}handleMouseLeave(e){this.removeClass("vjs-hover"),rA(f.default,"keyup",this.handleMenuKeyUp_)}focus(){this.menuButton_.focus()}blur(){this.menuButton_.blur()}handleKeyDown(e){"Escape"===e.key||"Tab"===e.key?(this.buttonPressed_&&this.unpressButton(),e.key):"Up"!==e.key&&("Down"!==e.key||this.player_.options_.playerOptions.spatialNavigation&&this.player_.options_.playerOptions.spatialNavigation.enabled)||this.buttonPressed_||(e.preventDefault(),this.pressButton())}handleMenuKeyUp(e){("Escape"===e.key||"Tab"===e.key)&&this.removeClass("vjs-hover")}handleSubmenuKeyPress(e){this.handleSubmenuKeyDown(e)}handleSubmenuKeyDown(e){("Escape"===e.key||"Tab"===e.key)&&(this.buttonPressed_&&this.unpressButton(),e.key)}pressButton(){this.enabled_&&(this.buttonPressed_=!0,this.menu.show(),this.menu.lockShowing(),this.menuButton_.el_.setAttribute("aria-expanded","true"),tH&&tY()||this.menu.focus())}unpressButton(){this.enabled_&&(this.buttonPressed_=!1,this.menu.unlockShowing(),this.menu.hide(),this.menuButton_.el_.setAttribute("aria-expanded","false"))}disable(){this.unpressButton(),this.enabled_=!1,this.addClass("vjs-disabled"),this.menuButton_.disable()}enable(){this.enabled_=!0,this.removeClass("vjs-disabled"),this.menuButton_.enable()}}r2.registerComponent("MenuButton",nE);class nk extends nE{constructor(e,t){const r=t.tracks;if(super(e,t),this.items.length<=1&&this.hide(),!r)return;const i=rD(this,this.update);r.addEventListener("removetrack",i),r.addEventListener("addtrack",i),r.addEventListener("labelchange",i
133),this.player_.on("ready",i),this.player_.on("dispose",function(){r.removeEventListener("removetrack",i),r.removeEventListener("addtrack",i),r.removeEventListener("labelchange",i)})}}r2.registerComponent("TrackButton",nk);class nN extends i0{constructor(e,t){super(e,t),this.selectable=t.selectable,this.isSelected_=t.selected||!1,this.multiSelectable=t.multiSelectable,this.selected(this.isSelected_),this.selectable?this.multiSelectable?this.el_.setAttribute("role","menuitemcheckbox"):this.el_.setAttribute("role","menuitemradio"):this.el_.setAttribute("role","menuitem")}createEl(e,t,r){this.nonIconControl=!0;let i=super.createEl("li",Object.assign({className:"vjs-menu-item",tabIndex:-1},t),r),n=tJ("span",{className:"vjs-menu-item-text",textContent:this.localize(this.options_.label)});return this.player_.options_.experimentalSvgIcons?i.appendChild(n):i.replaceChild(n,i.querySelector(".vjs-icon-placeholder")),i}handleKeyDown(e){["Tab","Escape","ArrowUp","ArrowLeft","ArrowRight","ArrowDown"].includes(e.key)||super.handleKeyDown(e)}handleClick(e){this.selected(!0)}selected(e){this.selectable&&(e?(this.addClass("vjs-selected"),this.el_.setAttribute("aria-checked","true"),this.controlText(", selected"),this.isSelected_=!0):(this.removeClass("vjs-selected"),this.el_.setAttribute("aria-checked","false"),this.controlText(""),this.isSelected_=!1))}}r2.registerComponent("MenuItem",nN);class nI extends nN{constructor(e,t){const r=t.track,i=e.textTracks();t.label=r.label||r.language||"Unknown",t.selected="showing"===r.mode,super(e,t),this.track=r,this.kinds=(t.kinds||[t.kind||this.track.kind]).filter(Boolean);const n=(...e)=>{this.handleTracksChange.apply(this,e)},a=(...e)=>{this.handleSelectedLanguageChange.apply(this,e)};if(e.on(["loadstart","texttrackchange"],n),i.addEventListener("change",n),i.addEventListener("selectedlanguagechange",a),this.on("dispose",function(){e.off(["loadstart","texttrackchange"],n),i.removeEventListener("change",n),i.removeEventListener("selectedlanguagechange",a)}),void 0===i.onchange){let e;this.on(["tap","click"],function(){if("object"!=typeof h.default.Event)try{e=new h.default.Event("change")}catch(e){}e||(e=f.default.createEvent("Event")).initEvent("change",!0,!0),i.dispatchEvent(e)})}this.handleTracksChange()}handleClick(e){let t=this.track,r=this.player_.textTracks();if(super.handleClick(e),r)for(let e=0;e<r.length;e++){let i=r[e];-1!==this.kinds.indexOf(i.kind)&&(i===t?"showing"!==i.mode&&(i.mode="showing"):"disabled"!==i.mode&&(i.mode="disabled"))}}handleTracksChange(e){let t="showing"===this.track.mode;t!==this.isSelected_&&this.selected(t)}handleSelectedLanguageChange(e){if("showing"===this.track.mode){let e=this.player_.cache_.selectedLanguage;e&&e.enabled&&e.language===this.track.language&&e.kind!==this.track.kind||(this.player_.cache_.selectedLanguage={enabled:!0,language:this.track.language,kind:this.track.kind})}}dispose(){this.track=null,super.dispose()}}r2.registerComponent("TextTrackMenuItem",nI);class nA extends nI{constructor(e,t){t.track={player:e,kind:t.kind,kinds:t.kinds,default:!1,mode:"disabled"},t.kinds||(t.kinds=[t.kind]),t.label?t.track.label=t.label:t.track.label=t.kinds.join(" and ")+" off",t.selectable=!0,t.multiSelectable=!1,super(e,t)}handleTracksChange(e){let t=this.player().textTracks(),r=!0;for(let e=0,i=t.length;e<i;e++){let i=t[e];if(this.options_.kinds.indexOf(i.kind)>-1&&"showing"===i.mode){r=!1;break}}r!==this.isSelected_&&this.selected(r)}handleSelectedLanguageChange(e){let t=this.player().textTracks(),r=!0;for(let e=0,i=t.length;e<i;e++){let i=t[e];if(["captions","descriptions","subtitles"].indexOf(i.kind)>-1&&"showing"===i.mode){r=!1;break}}r&&(this.player_.cache_.selectedLanguage={enabled:!1})}handleLanguagechange(){this.$(".vjs-menu-item-text").textContent=this.player_.localize(this.options_.label),super.handleLanguagechange()}}r2.registerComponent("OffTextTrackMenuItem",nA);class nj extends nk{constructor(e,t={}){t.tracks=e.textTracks(),super(e,t)}createItems(e=[],t=nI){let r;this.label_&&(r=`${this.label_} off`),e.push(new nA(this.player_,{kinds:this.kinds_,kind:this.kind_,label:r})),this.hideThreshold_+=1;let i=this.player_.textTracks();Array.isArray(this.kinds_)||(this.kinds_=[this.kind_]);for(let r=0;r<i.length;r++){let n=i[r];if(this.kinds_.indexOf(n.kind)>-1){let r=new t(this.player_,{track:n,kinds:this.kinds_,kind:this.kind_,selectable:!0,multiSelectable:!1});r.addClass(`vjs-${n.kind}-menu-item`),e.push(r)}}return e}}r2.registerComponent("TextTrackButton",nj);
133class nP extends nN{constructor(e,t){const r=t.track,i=t.cue,n=e.currentTime();t.selectable=!0,t.multiSelectable=!1,t.label=i.text,t.selected=i.startTime<=n&&n<i.endTime,super(e,t),this.track=r,this.cue=i}handleClick(e){super.handleClick(),this.player_.currentTime(this.cue.startTime)}}r2.registerComponent("ChaptersTrackMenuItem",nP);class nO extends nj{constructor(e,t,r){super(e,t,r),this.setIcon("chapters"),this.selectCurrentItem_=()=>{this.items.forEach(e=>{e.selected(this.track_.activeCues[0]===e.cue)})}}buildCSSClass(){return`vjs-chapters-button ${super.buildCSSClass()}`}buildWrapperCSSClass(){return`vjs-chapters-button ${super.buildWrapperCSSClass()}`}update(e){if(e&&e.track&&"chapters"!==e.track.kind)return;let t=this.findChaptersTrack();t!==this.track_?(this.setTrack(t),super.update()):(!this.items||t&&t.cues&&t.cues.length!==this.items.length)&&super.update()}setTrack(e){if(this.track_!==e){if(this.updateHandler_||(this.updateHandler_=this.update.bind(this)),this.track_){let e=this.player_.remoteTextTrackEls().getTrackElementByTrack_(this.track_);e&&e.removeEventListener("load",this.updateHandler_),this.track_.removeEventListener("cuechange",this.selectCurrentItem_),this.track_=null}if(this.track_=e,this.track_){this.track_.mode="hidden";let e=this.player_.remoteTextTrackEls().getTrackElementByTrack_(this.track_);e&&e.addEventListener("load",this.updateHandler_),this.track_.addEventListener("cuechange",this.selectCurrentItem_)}}}findChaptersTrack(){let e=this.player_.textTracks()||[];for(let t=e.length-1;t>=0;t--){let r=e[t];if(r.kind===this.kind_)return r}}getMenuCaption(){return this.track_&&this.track_.label?this.track_.label:this.localize(rZ(this.kind_))}createMenu(){return this.options_.title=this.getMenuCaption(),super.createMenu()}createItems(){let e=[];
133if(!this.track_)return e;let t=this.track_.cues;if(!t)return e;for(let r=0,i=t.length;r<i;r++){let i=t[r],n=new nP(this.player_,{track:this.track_,cue:i});e.push(n)}return e}}nO.prototype.kind_="chapters",nO.prototype.controlText_="Chapters",r2.registerComponent("ChaptersButton",nO);class nL extends nj{constructor(e,t,r){super(e,t,r),this.setIcon("audio-description");const i=e.textTracks(),n=rD(this,this.handleTracksChange);i.addEventListener("change",n),this.on("dispose",function(){i.removeEventListener("change",n)})}handleTracksChange(e){let t=this.player().textTracks(),r=!1;for(let e=0,i=t.length;e<i;e++){let i=t[e];if(i.kind!==this.kind_&&"showing"===i.mode){r=!0;break}}r?this.disable():this.enable()}buildCSSClass(){return`vjs-descriptions-button ${super.buildCSSClass()}`}buildWrapperCSSClass(){return`vjs-descriptions-button ${super.buildWrapperCSSClass()}`}}nL.prototype.kind_="descriptions",nL.prototype.controlText_="Descriptions",r2.registerComponent("DescriptionsButton",nL);class nD extends nj{constructor(e,t,r){super(e,t,r),this.setIcon("subtitles")}buildCSSClass(){return`vjs-subtitles-button ${super.buildCSSClass()}`}buildWrapperCSSClass(){return`vjs-subtitles-button ${super.buildWrapperCSSClass()}`}}nD.prototype.kind_="subtitles",nD.prototype.controlText_="Subtitles",r2.registerComponent("SubtitlesButton",nD);class nR extends nI{constructor(e,t){t.track={player:e,kind:t.kind,label:t.kind+" settings",selectable:!1,default:!1,mode:"disabled"},t.selectable=!1,t.name="CaptionSettingsMenuItem",super(e,t),this.addClass("vjs-texttrack-settings"),this.controlText(", opens "+t.kind+" settings dialog")}handleClick(e){this.player().getChild("textTrackSettings").open()}handleLanguagechange(){this.$(".vjs-menu-item-text").textContent=this.player_.localize(this.options_.kind+" settings"),super.handleLanguagechange()}}r2.registerComponent("CaptionSettingsMenuItem",nR);class nM extends nj{constructor(e,t,r){super(e,t,r),this.setIcon("captions")}buildCSSClass(){return`vjs-captions-button ${super.buildCSSClass()}`}buildWrapperCSSClass(){return`vjs-captions-button ${super.buildWrapperCSSClass()}`}createItems(){let e=[];return!(this.player().tech_&&this.player().tech_.featuresNativeTextTracks)&&this.player().getChild("textTrackSettings")&&(e.push(new nR(this.player_,{kind:this.kind_})),this.hideThreshold_+=1),super.createItems(e)}}nM.prototype.kind_="captions",nM.prototype.controlText_="Captions",r2.registerComponent("CaptionsButton",nM);class nB extends nI{createEl(e,t,r){let i=super.createEl(e,t,r),n=i.querySelector(".vjs-menu-item-text");return"captions"===this.options_.track.kind&&(this.player_.options_.experimentalSvgIcons?this.setIcon("captions",i):n.appendChild(tJ("span",{className:"vjs-icon-placeholder"},{"aria-hidden":!0})),n.appendChild(tJ("span",{className:"vjs-control-text",textContent:` ${this.localize("Captions")}`}))),i}}r2.registerComponent("SubsCapsMenuItem",nB);class nU extends nj{constructor(e,t={}){super(e,t),this.label_="subtitles",this.setIcon("subtitles"),["en","en-us","en-ca","fr-ca"].indexOf(this.player_.language_)>-1&&(this.label_="captions",this.setIcon("captions")),this.menuButton_.controlText(rZ(this.label_))}buildCSSClass(){return`vjs-subs-caps-button ${super.buildCSSClass()}`}buildWrapperCSSClass(){return`vjs-subs-caps-button ${super.buildWrapperCSSClass()}`}createItems(){let e=[];return!(this.player().tech_&&this.player().tech_.featuresNativeTextTracks)&&this.player().getChild("textTrackSettings")&&(e.push(new nR(this.player_,{kind:this.label_})),this.hideThreshold_+=1),e=super.createItems(e,nB)}}nU.prototype.kinds_=["captions","subtitles"],nU.prototype.controlText_="Subtitles",r2.registerComponent("SubsCapsButton",nU);class nF extends nN{constructor(e,t){const r=t.track,i=e.audioTracks();t.label=r.label||r.language||"Unknown",t.selected=r.enabled,super(e,t),this.track=r,this.addClass(`vjs-${r.kind}-menu-item`);const n=(...e)=>{this.handleTracksChange.apply(this,e)};i.addEventListener("change",n),this.on("dispose",()=>{i.removeEventListener("change",n)})}createEl(e,t,r){let i=super.createEl(e,t,r),n=i.querySelector(".vjs-menu-item-text");return["main-desc","descriptions"].indexOf(this.options_.track.kind)>=0&&(n.appendChild(tJ("span",{className:"vjs-icon-placeholder"},{"aria-hidden":!0})),n.appendChild(tJ("span",{className:"vjs-control-text",textContent:" "+this.localize("Descriptions")}))),i}handleClick(e){if(super.handleClick(e),this.track.enabled=!0,this.player_.tech_.featuresNativeAudioTracks){let e=this.player_.audioTracks();for(let t=0;t<e.length;t++){let r=e[t];r!==this.track&&(r.enabled=r===this.track)}}}handleTracksChange(e){this.selected(this.track.enabled)}}r2.registerComponent("AudioTrackMenuItem",nF);
vendor: 11,676 bytes, line 133
133class n$ extends nk{constructor(e,t={}){t.tracks=e.audioTracks(),super(e,t),this.setIcon("audio")}buildCSSClass(){return`vjs-audio-button ${super.buildCSSClass()}`}buildWrapperCSSClass(){return`vjs-audio-button ${super.buildWrapperCSSClass()}`}createItems(e=[]){this.hideThreshold_=1;let t=this.player_.audioTracks();for(let r=0;r<t.length;r++){let i=t[r];e.push(new nF(this.player_,{track:i,selectable:!0,multiSelectable:!1}))}return e}}n$.prototype.controlText_="Audio Track",r2.registerComponent("AudioTrackButton",n$);class nz extends nN{constructor(e,t){const r=t.rate,i=parseFloat(r,10);t.label=r,t.selected=i===e.playbackRate(),t.selectable=!0,t.multiSelectable=!1,super(e,t),this.label=r,this.rate=i,this.on(e,"ratechange",e=>this.update(e))}handleClick(e){super.handleClick(),this.player().playbackRate(this.rate)}update(e){this.selected(this.player().playbackRate()===this.rate)}}nz.prototype.contentElType="button",r2.registerComponent("PlaybackRateMenuItem",nz);class nq extends nE{constructor(e,t){super(e,t),this.menuButton_.el_.setAttribute("aria-describedby",this.labelElId_),this.updateVisibility(),this.updateLabel(),this.on(e,"loadstart",e=>this.updateVisibility(e)),this.on(e,"ratechange",e=>this.updateLabel(e)),this.on(e,"playbackrateschange",e=>this.handlePlaybackRateschange(e))}createEl(){let e=super.createEl();return this.labelElId_="vjs-playback-rate-value-label-"+this.id_,this.labelEl_=tJ("div",{className:"vjs-playback-rate-value",id:this.labelElId_,textContent:"1x"}),e.appendChild(this.labelEl_),e}dispose(){this.labelEl_=null,super.dispose()}buildCSSClass(){return`vjs-playback-rate ${super.buildCSSClass()}`}buildWrapperCSSClass(){return`vjs-playback-rate ${super.buildWrapperCSSClass()}`}createItems(){let e=this.playbackRates(),t=[];for(let r=e.length-1;r>=0;r--)t.push(new nz(this.player(),{rate:e[r]+"x"}));return t}handlePlaybackRateschange(e){this.update()}playbackRates(){let e=this.player();return e.playbackRates&&e.playbackRates()||[]}playbackRateSupported(){return this.player().tech_&&this.player().tech_.featuresPlaybackRate&&this.playbackRates()&&this.playbackRates().length>0}updateVisibility(e){this.playbackRateSupported()?this.removeClass("vjs-hidden"):this.addClass("vjs-hidden")}updateLabel(e){this.playbackRateSupported()&&(this.labelEl_.textContent=this.player().playbackRate()+"x")}}nq.prototype.controlText_="Playback Rate",r2.registerComponent("PlaybackRateMenuButton",nq);class nH extends r2{buildCSSClass(){return`vjs-spacer ${super.buildCSSClass()}`}createEl(e="div",t={},r={}){return t.className||(t.className=this.buildCSSClass()),super.createEl(e,t,r)}}r2.registerComponent("Spacer",nH),r2.registerComponent("CustomControlSpacer",class extends nH{buildCSSClass(){return`vjs-custom-control-spacer ${super.buildCSSClass()}`}createEl(){return super.createEl("div",{className:this.buildCSSClass(),textContent:" "})}});class nW extends r2{createEl(){return super.createEl("div",{className:"vjs-control-bar",dir:"ltr"})}}nW.prototype.options_={children:["playToggle","skipBackward","skipForward","volumePanel","currentTimeDisplay","timeDivider","durationDisplay","progressControl","liveDisplay","seekToLive","remainingTimeDisplay","customControlSpacer","playbackRateMenuButton","chaptersButton","descriptionsButton","subsCapsButton","audioTrackButton","pictureInPictureToggle","fullscreenToggle"]},r2.registerComponent("ControlBar",nW);class nV extends iu{constructor(e,t){super(e,t),this.on(e,"error",e=>{this.open(e)})}buildCSSClass(){return`vjs-error-display ${super.buildCSSClass()}`}content(){let e=this.player().error();return e?this.localize(e.message):""}}nV.prototype.options_=Object.assign({},iu.prototype.options_,{pauseOnOpen:!1,fillAlways:!0,temporary:!1,uncloseable:!0}),r2.registerComponent("ErrorDisplay",nV);class nG extends r2{constructor(e,t={}){super(e,t),this.el_.setAttribute("aria-labelledby",this.selectLabelledbyIds)}createEl(){return this.selectLabelledbyIds=[this.options_.legendId,this.options_.labelId].join(" ").trim(),tJ("select",{id:this.options_.id},{},this.options_.SelectOptions.map(e=>{let t=(this.options_.labelId?this.options_.labelId:`vjs-track-option-${rT++}`)+"-"+e[1].replace(/\W+/g,""),r=tJ("option",{id:t,value:this.localize(e[0]),textContent:this.localize(e[1])});return r.setAttribute("aria-labelledby",`${this.selectLabelledbyIds} ${t}`),r}))}}r2.registerComponent("TextTrackSelect",nG);class nX extends r2{constructor(e,t={}){super(e,t);const r=tJ("legend",{textContent:this.localize(this.options_.legendText),id:this.options_.legendId});for(const t of(this.el().appendChild(r),this.options_.selects)){const r=this.options_.selectConfigs[t],i=r.className,n=r.id.replace("%s",this.options_.id_);let a=null;const s=`vjs_select_${rT++}`;if("colors"===this.options_.type){a=tJ("span",{className:i});const e=tJ("label",{id:n,className:"vjs-label",textContent:this.localize(r.label)});e.setAttribute("for",s),a.appendChild(e)}const o=new nG(e,{SelectOptions:r.options,legendId:this.options_.legendId,id:s,labelId:n});this.addChild(o),"colors"===this.options_.type&&(a.appendChild(o.el()),this.el().appendChild(a))}}createEl(){return tJ("fieldset",{className:this.options_.className})}}r2.registerComponent("TextTrackFieldset",nX);class nK extends r2{constructor(e,t={}){super(e,t);const r=this.options_.textTrackComponentid,i=new nX(e,{id_:r,legendId:`captions-text-legend-${r}`,legendText:this.localize("Text"),className:"vjs-fg vjs-track-setting",selects:this.options_.fieldSets[0],selectConfigs:this.options_.selectConfigs,type:"colors"});this.addChild(i);const n=new nX(e,{id_:r,legendId:`captions-background-${r}`,legendText:this.localize("Text Background"),className:"vjs-bg vjs-track-setting",selects:this.options_.fieldSets[1],selectConfigs:this.options_.selectConfigs,type:"colors"});this.addChild(n);const a=new nX(e,{id_:r,legendId:`captions-window-${r}`,legendText:this.localize("Caption Area Background"),className:"vjs-window vjs-track-setting",selects:this.options_.fieldSets[2],selectConfigs:this.options_.selectConfigs,type:"colors"});this.addChild(a)}createEl(){return tJ("div",{className:"vjs-track-settings-colors"})}}r2.registerComponent("TextTrackSettingsColors",nK);class nY extends r2{constructor(e,t={}){super(e,t);const r=this.options_.textTrackComponentid,i=new nX(e,{id_:r,legendId:`captions-font-size-${r}`,legendText:"Font Size",className:"vjs-font-percent vjs-track-setting",selects:this.options_.fieldSets[0],selectConfigs:this.options_.selectConfigs,type:"font"});this.addChild(i);const n=new nX(e,{id_:r,legendId:`captions-edge-style-${r}`,legendText:this.localize("Text Edge Style"),className:"vjs-edge-style vjs-track-setting",selects:this.options_.fieldSets[1],selectConfigs:this.options_.selectConfigs,type:"font"});this.addChild(n);const a=new nX(e,{id_:r,legendId:`captions-font-family-${r}`,legendText:this.localize("Font Family"),className:"vjs-font-family vjs-track-setting",selects:this.options_.fieldSets[2],selectConfigs:this.options_.selectConfigs,type:"font"});this.addChild(a)}createEl(){return tJ("div",{className:"vjs-track-settings-font"})}}r2.registerComponent("TextTrackSettingsFont",nY);class nQ extends r2{constructor(e,t={}){super(e,t);const r=new i7(e,{controlText:this.localize("restore all settings to the default values"),className:"vjs-default-button"});r.el().classList.remove("vjs-control","vjs-button"),r.el().textContent=this.localize("Reset"),this.addChild(r);const i=this.localize("Done"),n=new i7(e,{controlText:i,className:"vjs-done-button"});n.el().classList.remove("vjs-control","vjs-button"),n.el().textContent=i,this.addChild(n)}createEl(){return tJ("div",{className:"vjs-track-settings-controls"})}}r2.registerComponent("TrackSettingsControls",nQ);let nJ="vjs-text-track-settings",nZ=["#000","Black"],n0=["#00F","Blue"],n1=["#0FF","Cyan"],n2=["#0F0","Green"],n4=["#F0F","Magenta"],n5=["#F00","Red"],n3=["#FFF","White"],n8=["#FF0","Yellow"],n6=["1","Opaque"],n7=["0.5","Semi-Transparent"],n9=["0","Transparent"],ae={backgroundColor:{selector:".vjs-bg-color > select",id:"captions-background-color-%s",label:"Color",options:[nZ,n3,n5,n2,n0,n8,n4,n1],className:"vjs-bg-color"},backgroundOpacity:{selector:".vjs-bg-opacity > select",id:"captions-background-opacity-%s",label:"Opacity",options:[n6,n7,n9],className:"vjs-bg-opacity vjs-opacity"},color:{selector:".vjs-text-color > select",id:"captions-foreground-color-%s",label:"Color",options:[n3,nZ,n5,n2,n0,n8,n4,n1],className:"vjs-text-color"},edgeStyle:{selector:".vjs-edge-style > select",id:"",label:"Text Edge Style",options:[["none","None"],["raised","Raised"],["depressed","Depressed"],["uniform","Uniform"],["dropshadow","Drop shadow"]]},fontFamily:{selector:".vjs-font-family > select",id:"",label:"Font Family",options:[["proportionalSansSerif","Proportional Sans-Serif"],["monospaceSansSerif","Monospace Sans-Serif"],["proportionalSerif","Proportional Serif"],["monospaceSerif","Monospace Serif"],["casual","Casual"],["script","Script"],["small-caps","Small Caps"]]},fontPercent:{selector:".vjs-font-percent > select",id:"",label:"Font Size",options:[["0.50","50%"],["0.75","75%"],["1.00","100%"],["1.25","125%"],["1.50","150%"],["1.75","175%"],["2.00","200%"],["3.00","300%"],["4.00","400%"]],default:2,parser:e=>"1.00"===e?null:Number(e)},textOpacity:{selector:".vjs-text-opacity > select",id:"captions-foreground-opacity-%s",label:"Opacity",options:[n6,n7],className:"vjs-text-opacity vjs-opacity"},windowColor:{selector:".vjs-window-color > select",id:"captions-window-color-%s",label:"Color",className:"vjs-window-color"},windowOpacity:{selector:".vjs-window-opacity > select",id:"captions-window-opacity-%s",label:"Opacity",options:[n9,n7,n6],className:"vjs-window-opacity vjs-opacity"}};function at(e,t){if(t&&(e=t(e)),e&&"none"!==e)return e}ae.windowColor.options=ae.backgroundColor.options,r2.registerComponent("TextTrackSettings",class extends iu{constructor(e,t){t.temporary=!1,super(e,t),this.updateDisplay=this.updateDisplay.bind(this),this.fill(),this.hasBeenOpened_=this.hasBeenFilled_=!0,this.renderModalComponents(e),this.endDialog=tJ("p",{className:"vjs-control-text",textContent:this.localize("End of dialog window.")}),this.el().appendChild(this.endDialog),this.setDefaults(),void 0===t.persistTextTrackSettings&&(this.options_.persistTextTrackSettings=this.options_.playerOptions.persistTextTrackSettings),this.bindFunctionsToSelectsAndButtons(),this.options_.persistTextTrackSettings&&this.restoreSettings()}renderModalComponents(e){let t=new nK(e,{textTrackComponentid:this.id_,selectConfigs:ae,fieldSets:[["color","textOpacity"],["backgroundColor","backgroundOpacity"],["windowColor","windowOpacity"]]});this.addChild(t);let r=new nY(e,{textTrackComponentid:this.id_,selectConfigs:ae,fieldSets:[["fontPercent"],["edgeStyle"],["fontFamily"]]});this.addChild(r);let i=new nQ(e);this.addChild(i)}bindFunctionsToSelectsAndButtons(){this.on(this.$(".vjs-done-button"),["click","tap"],()=>{this.saveSettings(),this.close()}),this.on(this.$(".vjs-default-button"),["click","tap"],()=>{this.setDefaults(),this.updateDisplay()}),tm(ae,e=>{this.on(this.$(e.selector),"change",this.updateDisplay)})}dispose(){this.endDialog=null,super.dispose()}label(){return this.localize("Caption Settings Dialog")}description(){return this.localize("Beginning of dialog window. Escape will cancel and close the window.")}buildCSSClass(){return super.buildCSSClass()+" vjs-text-track-settings"}getValues(){return ty(ae,(e,t,r)=>{var i,n;let a=(i=this.$(t.selector),n=t.parser,at(i.options[i.options.selectedIndex].value,n));return void 0!==a&&(e[r]=a),e},{})}setValues(e){tm(ae,(t,r)=>{!function(e,t,r){if(t){for(let i=0;i<e.options.length;
133i++)if(at(e.options[i].value,r)===t){e.selectedIndex=i;break}}}(this.$(t.selector),e[r],t.parser)})}setDefaults(){tm(ae,e=>{let t=e.hasOwnProperty("default")?e.default:0;this.$(e.selector).selectedIndex=t})}restoreSettings(){let e;try{e=JSON.parse(h.default.localStorage.getItem(nJ))}catch(e){tp.warn(e)}e&&this.setValues(e)}saveSettings(){if(!this.options_.persistTextTrackSettings)return;let e=this.getValues();try{Object.keys(e).length?h.default.localStorage.setItem(nJ,JSON.stringify(e)):h.default.localStorage.removeItem(nJ)}catch(e){tp.warn(e)}}updateDisplay(){let e=this.player_.getChild("textTrackDisplay");e&&e.updateDisplay()}handleLanguagechange(){this.fill(),this.renderModalComponents(this.player_),this.bindFunctionsToSelectsAndButtons()}}),r2.registerComponent("ResizeManager",class extends r2{constructor(e,t){let r=t.ResizeObserver||h.default.ResizeObserver;null===t.ResizeObserver&&(r=!1),super(e,tx({createEl:!r,reportTouchActivity:!1},t)),this.ResizeObserver=t.ResizeObserver||h.default.ResizeObserver,this.loadListener_=null,this.resizeObserver_=null,this.debouncedHandler_=rM(()=>{this.resizeHandler()},100,!1,this),r?(this.resizeObserver_=new this.ResizeObserver(this.debouncedHandler_),this.resizeObserver_.observe(e.el())):(this.loadListener_=()=>{if(!this.el_||!this.el_.contentWindow)return;let e=this.debouncedHandler_,t=this.unloadListener_=function(){rA(this,"resize",e),rA(this,"unload",t),t=null};rI(this.el_.contentWindow,"unload",t),rI(this.el_.contentWindow,"resize",e)},this.one("load",this.loadListener_))}createEl(){return super.createEl("iframe",{className:"vjs-resize-manager",tabIndex:-1,title:this.localize("No content")},{"aria-hidden":"true"})}resizeHandler(){this.player_&&this.player_.trigger&&this.player_.trigger("playerresize")}dispose(){this.debouncedHandler_&&this.debouncedHandler_.cancel(),this.resizeObserver_&&(this.player_.el()&&this.resizeObserver_.unobserve(this.player_.el()),this.resizeObserver_.disconnect()),this.loadListener_&&this.off("load",this.loadListener_),this.el_&&this.el_.contentWindow&&this.unloadListener_&&this.unloadListener_.call(this.el_.contentWindow),this.ResizeObserver=null,this.resizeObserver=null,this.debouncedHandler_=null,this.loadListener_=null,super.dispose()}});let ar={trackingThreshold:20,liveTolerance:15};r2.registerComponent("LiveTracker",class extends r2{constructor(e,t){super(e,tx(ar,t,{createEl:!1})),this.trackLiveHandler_=()=>this.trackLive_(),this.handlePlay_=e=>this.handlePlay(e),this.handleFirstTimeupdate_=e=>this.handleFirstTimeupdate(e),this.handleSeeked_=e=>this.handleSeeked(e),this.seekToLiveEdge_=e=>this.seekToLiveEdge(e),this.reset_(),this.on(this.player_,"durationchange",e=>this.handleDurationchange(e)),this.on(this.player_,"canplay",()=>this.toggleTracking())}trackLive_(){let e=this.player_.seekable();if(!e||!e.length)return;let t=Number(h.default.performance.now().toFixed(4)),r=-1===this.lastTime_?0:(t-this.lastTime_)/1e3;this.lastTime_=t,this.pastSeekEnd_=this.pastSeekEnd()+r;let i=this.liveCurrentTime(),n=this.player_.currentTime(),a=this.player_.paused()||this.seekedBehindLive_||Math.abs(i-n)>this.options_.liveTolerance;this.timeupdateSeen_&&i!==1/0||(a=!1),a!==this.behindLiveEdge_&&(this.behindLiveEdge_=a,this.trigger("liveedgechange"))}handleDurationchange(){this.toggleTracking()}toggleTracking(){this.player_.duration()===1/0&&this.liveWindow()>=this.options_.trackingThreshold?(this.player_.options_.liveui&&this.player_.addClass("vjs-liveui"),this.startTracking()):(this.player_.removeClass("vjs-liveui"),this.stopTracking())}startTracking(){this.isTracking()||(this.timeupdateSeen_||(this.timeupdateSeen_=this.player_.hasStarted()),this.trackingInterval_=this.setInterval(this.trackLiveHandler_,30),this.trackLive_(),this.on(this.player_,["play","pause"],this.trackLiveHandler_),this.timeupdateSeen_?this.on(this.player_,"seeked",this.handleSeeked_):(this.one(this.player_,"play",this.handlePlay_),this.one(this.player_,"timeupdate",this.handleFirstTimeupdate_)))}handleFirstTimeupdate(){this.timeupdateSeen_=!0,this.on(this.player_,"seeked",this.handleSeeked_)}handleSeeked(){let e=Math.abs(this.liveCurrentTime()-this.player_.currentTime());this.seekedBehindLive_=this.nextSeekedFromUser_&&e>2,this.nextSeekedFromUser_=!1,this.trackLive_()}handlePlay(){this.one(this.player_,"timeupdate",this.seekToLiveEdge_)}reset_(){this.lastTime_=-1,this.pastSeekEnd_=0,this.lastSeekEnd_=-1,this.behindLiveEdge_=!0,this.timeupdateSeen_=!1,this.seekedBehindLive_=!1,this.nextSeekedFromUser_=!1,this.clearInterval(this.trackingInterval_),this.trackingInterval_=null,this.off(this.player_,["play","pause"],this.trackLiveHandler_),this.off(this.player_,"seeked",this.handleSeeked_),this.off(this.player_,"play",this.handlePlay_),this.off(this.player_,"timeupdate",this.handleFirstTimeupdate_),this.off(this.player_,"timeupdate",this.seekToLiveEdge_)}nextSeekedFromUser(){this.nextSeekedFromUser_=!0}stopTracking(){this.isTracking()&&(this.reset_(),this.trigger("liveedgechange"))}seekableEnd(){let e=this.player_.seekable(),t=[],r=e?e.length:0;for(;r--;)t.push(e.end(r));return t.length?t.sort()[t.length-1]:1/0}seekableStart(){let e=this.player_.seekable(),t=[],r=e?e.length:0;for(;r--;)t.push(e.start(r));return t.length?t.sort()[0]:0}
133liveWindow(){let e=this.liveCurrentTime();return e===1/0?0:e-this.seekableStart()}isLive(){return this.isTracking()}atLiveEdge(){return!this.behindLiveEdge()}liveCurrentTime(){return this.pastSeekEnd()+this.seekableEnd()}pastSeekEnd(){let e=this.seekableEnd();return -1!==this.lastSeekEnd_&&e!==this.lastSeekEnd_&&(this.pastSeekEnd_=0),this.lastSeekEnd_=e,this.pastSeekEnd_}behindLiveEdge(){return this.behindLiveEdge_}isTracking(){return"number"==typeof this.trackingInterval_}seekToLiveEdge(){this.seekedBehindLive_=!1,this.atLiveEdge()||(this.nextSeekedFromUser_=!1,this.player_.currentTime(this.liveCurrentTime()))}dispose(){this.stopTracking(),super.dispose()}}),r2.registerComponent("TitleBar",class extends r2{constructor(e,t){super(e,t),this.on("statechanged",e=>this.updateDom_()),this.updateDom_()}createEl(){return this.els={title:tJ("div",{className:"vjs-title-bar-title",id:`vjs-title-bar-title-${rT++}`}),description:tJ("div",{className:"vjs-title-bar-description",id:`vjs-title-bar-description-${rT++}`})},tJ("div",{className:"vjs-title-bar"},{},t_(this.els))}updateDom_(){let e=this.player_.tech_,t=e&&e.el_,r={title:"aria-labelledby",description:"aria-describedby"};["title","description"].forEach(e=>{let i=this.state[e],n=this.els[e],a=r[e];rs(n),i&&tZ(n,i),t&&(t.removeAttribute(a),i&&t.setAttribute(a,n.id))}),this.state.title||this.state.description?this.show():this.hide()}update(e){this.setState(e)}dispose(){let e=this.player_.tech_,t=e&&e.el_;t&&(t.removeAttribute("aria-labelledby"),t.removeAttribute("aria-describedby")),super.dispose(),this.els=null}});let ai={initialDisplay:4e3,position:[],takeFocus:!1};r2.registerComponent("TransientButton",class extends i7{constructor(e,t){super(e,t=tx(ai,t)),this.controlText(t.controlText),this.hide(),this.on(this.player_,["useractive","userinactive"],e=>{this.removeClass("force-display")})}buildCSSClass(){return`vjs-transient-button focus-visible ${this.options_.position.map(e=>`vjs-${e}`).join(" ")}`}createEl(){let e=tJ("button",{},{type:"button",class:this.buildCSSClass()},tJ("span"));return this.controlTextEl_=e.querySelector("span"),e}show(){super.show(),this.addClass("force-display"),this.options_.takeFocus&&this.el().focus({preventScroll:!0}),this.forceDisplayTimeout=this.player_.setTimeout(()=>{this.removeClass("force-display")},this.options_.initialDisplay)}hide(){this.removeClass("force-display"),super.hide()}dispose(){this.player_.clearTimeout(this.forceDisplayTimeout),super.dispose()}});let an=e=>{let t=e.el();if(t.hasAttribute("src"))return e.triggerSourceset(t.src),!0;let r=e.$$("source"),i=[],n="";if(!r.length)return!1;for(let e=0;e<r.length;e++){let t=r[e].src;t&&-1===i.indexOf(t)&&i.push(t)}return!!i.length&&(1===i.length&&(n=i[0]),e.triggerSourceset(n),!0)},aa=Object.defineProperty({},"innerHTML",{get(){return this.cloneNode(!0).innerHTML},set(e){let t=f.default.createElement(this.nodeName.toLowerCase());t.innerHTML=e;let r=f.default.createDocumentFragment();for(;t.childNodes.length;)r.appendChild(t.childNodes[0]);return this.innerText="",h.default.Element.prototype.appendChild.call(this,r),this.innerHTML}}),as=(e,t)=>{let r={};for(let i=0;i<e.length&&(!(r=Object.getOwnPropertyDescriptor(e[i],t))||!r.set||!r.get);i++);return r.enumerable=!0,r.configurable=!0,r},ao=function(e){let t=e.el();if(t.resetSourceWatch_)return;let r={},i=as([e.el(),h.default.HTMLMediaElement.prototype,h.default.Element.prototype,aa],"innerHTML"),n=r=>(...i)=>{let n=r.apply(t,i);return an(e),n};["append","appendChild","insertAdjacentHTML"].forEach(e=>{t[e]&&(r[e]=t[e],t[e]=n(r[e]))}),Object.defineProperty(t,"innerHTML",tx(i,{set:n(i.set)})),t.resetSourceWatch_=()=>{t.resetSourceWatch_=null,Object.keys(r).forEach(e=>{t[e]=r[e]}),Object.defineProperty(t,"innerHTML",i)},e.one("sourceset",t.resetSourceWatch_)},al=Object.defineProperty({},"src",{get(){return this.hasAttribute("src")?iC(h.default.Element.prototype.getAttribute.call(this,"src")):""},set(e){return h.default.Element.prototype.setAttribute.call(this,"src",e),e}}),ac=function(e){if(!e.featuresSourceset)return;let t=e.el();if(t.resetSourceset_)return;let r=as([e.el(),h.default.HTMLMediaElement.prototype,al],"src"),i=t.setAttribute,n=t.load;Object.defineProperty(t,"src",tx(r,{set:i=>{let n=r.set.call(t,i);return e.triggerSourceset(t.src),n}})),t.setAttribute=(r,n)=>{let a=i.call(t,r,n);return/src/i.test(r)&&e.triggerSourceset(t.src),a},t.load=()=>{let r=n.call(t);return an(e)||(e.triggerSourceset(""),ao(e)),r},t.currentSrc?e.triggerSourceset(t.currentSrc):an(e)||ao(e),t.resetSourceset_=()=>{t.resetSourceset_=null,t.load=n,t.setAttribute=i,Object.defineProperty(t,"src",r),t.resetSourceWatch_&&t.resetSourceWatch_()}};class au extends iB{constructor(e,t){super(e,t);const r=e.source;let i=!1;if(this.featuresVideoFrameCallback=this.featuresVideoFrameCallback&&"VIDEO"===this.el_.tagName,r&&(this.el_.currentSrc!==r.src||e.tag&&3===e.tag.initNetworkState_)?this.setSource(r):this.handleLateInit_(this.el_),e.enableSourceset&&this.setupSourcesetHandling_(),this.isScrubbing_=!1,this.el_.hasChildNodes()){const e=this.el_.childNodes;let t=e.length;const r=[];for(;t--;){const n=e[t];"track"===n.nodeName.toLowerCase()&&(this.featuresNativeTextTracks?(this.remoteTextTrackEls().addTrackElement_(n),this.remoteTextTracks().addTrack(n.track),this.textTracks().addTrack(n.track),!i&&!this.el_.hasAttribute("crossorigin")&&ik(n.src)&&(i=!0)):r.push(n))}for(let e=0;e<r.length;e++)this.el_.removeChild(r[e])}this.proxyNativeTracks_(),this.featuresNativeTextTracks&&i&&tp.warn("Text Tracks are being loaded from another origin but the crossorigin attribute isn't used.\nThis may prevent text tracks from loading."),this.restoreMetadataTracksInIOSNativePlayer_(),(tz||tB)&&!0===e.nativeControlsForTouch&&this.setControls(!0),this.proxyWebkitFullscreen_(),this.triggerReady()}dispose(){this.el_&&this.el_.resetSourceset_&&this.el_.resetSourceset_(),au.disposeMediaElement(this.el_),this.options_=null,super.dispose()}setupSourcesetHandling_(){ac(this)}restoreMetadataTracksInIOSNativePlayer_(){let e,t=this.textTracks(),r=()=>{e=[];for(let r=0;r<t.length;r++){let i=t[r];"metadata"===i.kind&&e.push({track:i,storedMode:i.mode})}};r(),t.addEventListener("change",r),this.on("dispose",()=>t.removeEventListener("change",r));let i=()=>{for(let t=0;t<e.length;t++){let r=e[t];"disabled"===r.track.mode&&r.track.mode!==r.storedMode&&(r.track.mode=r.storedMode)}
133t.removeEventListener("change",i)};this.on("webkitbeginfullscreen",()=>{t.removeEventListener("change",r),t.removeEventListener("change",i),t.addEventListener("change",i)}),this.on("webkitendfullscreen",()=>{t.removeEventListener("change",r),t.addEventListener("change",r),t.removeEventListener("change",i)})}overrideNative_(e,t){if(t!==this[`featuresNative${e}Tracks`])return;let r=e.toLowerCase();this[`${r}TracksListeners_`]&&Object.keys(this[`${r}TracksListeners_`]).forEach(e=>{this.el()[`${r}Tracks`].removeEventListener(e,this[`${r}TracksListeners_`][e])}),this[`featuresNative${e}Tracks`]=!t,this[`${r}TracksListeners_`]=null,this.proxyNativeTracksForType_(r)}overrideNativeAudioTracks(e){this.overrideNative_("Audio",e)}overrideNativeVideoTracks(e){this.overrideNative_("Video",e)}proxyNativeTracksForType_(e){let t=iD[e],r=this.el()[t.getterName],i=this[t.getterName]();if(!this[`featuresNative${t.capitalName}Tracks`]||!r||!r.addEventListener)return;let n={change:t=>{let r={type:"change",target:i,currentTarget:i,srcElement:i};i.trigger(r),"text"===e&&this[iR.remoteText.getterName]().trigger(r)},addtrack(e){i.addTrack(e.track)},removetrack(e){i.removeTrack(e.track)}},a=function(){let e=[];for(let t=0;t<i.length;t++){let n=!1;for(let e=0;e<r.length;e++)if(r[e]===i[t]){n=!0;break}n||e.push(i[t])}for(;e.length;)i.removeTrack(e.shift())};this[t.getterName+"Listeners_"]=n,Object.keys(n).forEach(e=>{let t=n[e];r.addEventListener(e,t),this.on("dispose",i=>r.removeEventListener(e,t))}),this.on("loadstart",a),this.on("dispose",e=>this.off("loadstart",a))}proxyNativeTracks_(){iD.names.forEach(e=>{this.proxyNativeTracksForType_(e)})}createEl(){let e=this.options_.tag;if(!e||!(this.options_.playerElIngest||this.movingMediaElementInDOM)){if(e){let t=e.cloneNode(!0);e.parentNode&&e.parentNode.insertBefore(t,e),au.disposeMediaElement(e),e=t}else{e=f.default.createElement("video");let t=tx({},this.options_.tag&&t8(this.options_.tag));tz&&!0===this.options_.nativeControlsForTouch||delete t.controls,t3(e,Object.assign(t,{id:this.options_.techId,class:"vjs-tech"}))}e.playerId=this.options_.playerId}void 0!==this.options_.preload&&t7(e,"preload",this.options_.preload),void 0!==this.options_.disablePictureInPicture&&(e.disablePictureInPicture=this.options_.disablePictureInPicture);let t=["loop","muted","playsinline","autoplay"];for(let r=0;r<t.length;r++){let i=t[r],n=this.options_[i];void 0!==n&&(n?t7(e,i,i):t9(e,i),e[i]=n)}return e}handleLateInit_(e){if(0===e.networkState||3===e.networkState)return;if(0===e.readyState){let e=!1,t=function(){e=!0};this.on("loadstart",t);let r=function(){e||this.trigger("loadstart")};this.on("loadedmetadata",r),this.ready(function(){this.off("loadstart",t),this.off("loadedmetadata",r),e||this.trigger("loadstart")});return}let t=["loadstart"];t.push("loadedmetadata"),e.readyState>=2&&t.push("loadeddata"),e.readyState>=3&&t.push("canplay"),e.readyState>=4&&t.push("canplaythrough"),this.ready(function(){t.forEach(function(e){this.trigger(e)},this)})}setScrubbing(e){this.isScrubbing_=e}scrubbing(){return this.isScrubbing_}setCurrentTime(e){try{this.isScrubbing_&&this.el_.fastSeek&&tW?this.el_.fastSeek(e):this.el_.currentTime=e}catch(e){tp(e,"Video is not ready. (Video.js)")}}duration(){if(this.el_.duration===1/0&&tE&&tA&&0===this.el_.currentTime){let e=()=>{this.el_.currentTime>0&&(this.el_.duration===1/0&&this.trigger("durationchange"),this.off("timeupdate",e))};return this.on("timeupdate",e),NaN}return this.el_.duration||NaN}width(){return this.el_.offsetWidth}height(){return this.el_.offsetHeight}proxyWebkitFullscreen_(){if(!("webkitDisplayingFullscreen"in this.el_))return;let e=function(){this.trigger("fullscreenchange",{isFullscreen:!1}),this.el_.controls&&!this.options_.nativeControlsForTouch&&this.controls()&&(this.el_.controls=!1)},t=function(){"webkitPresentationMode"in this.el_&&"picture-in-picture"!==this.el_.webkitPresentationMode&&(this.one("webkitendfullscreen",e),this.trigger("fullscreenchange",{isFullscreen:!0,nativeIOSFullscreen:!0}))};this.on("webkitbeginfullscreen",t),this.on("dispose",()=>{this.off("webkitbeginfullscreen",t),this.off("webkitendfullscreen",e)})}supportsFullScreen(){return"function"==typeof this.el_.webkitEnterFullScreen}enterFullScreen(){let e=this.el_;if(e.paused&&e.networkState<=e.HAVE_METADATA)is(this.el_.play()),this.setTimeout(function(){e.pause();try{e.webkitEnterFullScreen()}catch(e){this.trigger("fullscreenerror",e)}},0);else try{e.webkitEnterFullScreen()}catch(e){this.trigger("fullscreenerror",e)}}exitFullScreen(){this.el_.webkitDisplayingFullscreen?this.el_.webkitExitFullScreen():this.trigger("fullscreenerror",Error("The video is not fullscreen"))}requestPictureInPicture(){return this.el_.requestPictureInPicture()}requestVideoFrameCallback(e){return this.featuresVideoFrameCallback&&!this.el_.webkitKeys?this.el_.requestVideoFrameCallback(e):super.requestVideoFrameCallback(e)}cancelVideoFrameCallback(e){this.featuresVideoFrameCallback&&!this.el_.webkitKeys?this.el_.cancelVideoFrameCallback(e):super.cancelVideoFrameCallback(e)}src(e){if(void 0===e)return this.el_.src;this.setSrc(e)}addSourceElement(e,t){if(!e)return tp.error("Invalid source URL."),!1;let r={src:e};t&&(r.type=t);let i=tJ("source",{},r);return this.el_.appendChild(i),!0}removeSourceElement(e){if(!e)return tp.error("Source URL is required to remove the source element."),!1;for(let t of this.el_.querySelectorAll("source"))if(t.src===e)return this.el_.removeChild(t),!0;return tp.warn(`No matching source element found with src: ${e}`),!1}reset(){au.resetMediaElement(this.el_)}currentSrc(){return this.currentSource_?this.currentSource_.src:this.el_.currentSrc}setControls(e){this.el_.controls=!!e}addTextTrack(e,t,r){return this.featuresNativeTextTracks?this.el_.addTextTrack(e,t,r):super.addTextTrack(e,t,r)}createRemoteTextTrack(e){if(!this.featuresNativeTextTracks)return super.createRemoteTextTrack(e);let t=f.default.createElement("track");return e.kind&&(t.kind=e.kind),e.label&&(t.label=e.label),(e.language||e.srclang)&&(t.srclang=e.language||e.srclang),e.default&&(t.default=e.default),e.id&&(t.id=e.id),e.src&&(t.src=e.src),t}addRemoteTextTrack(e,t){let r=super.addRemoteTextTrack(e,t);return this.featuresNativeTextTracks&&this.el().appendChild(r),r}removeRemoteTextTrack(e){if(super.removeRemoteTextTrack(e),this.featuresNativeTextTracks){let t=this.$$("track"),r=t.length;for(;r--;)(e===t[r]||e===t[r].track)&&this.el().removeChild(t[r])}}getVideoPlaybackQuality(){if("function"==typeof this.el().getVideoPlaybackQuality)return this.el().getVideoPlaybackQuality();let e={};return void 0!==this.el().webkitDroppedFrameCount&&void 0!==this.el().webkitDecodedFrameCount&&(e.droppedVideoFrames=this.el().webkitDroppedFrameCount,e.totalVideoFrames=this.el().webkitDecodedFrameCount),h.default.performance&&(e.creationTime=h.default.performance.now()),e}}tw(au,"TEST_VID",function(){if(!tX())return;let e=f.default.createElement("video"),t=f.default.createElement("track");return t.kind="captions",t.srclang="en",t.label="English",e.appendChild(t),e}),au.isSupported=function(){try{au.TEST_VID.volume=.5}catch(e){return!1}return!!(au.TEST_VID&&au.TEST_VID.canPlayType)},au.canPlayType=function(e){return au.TEST_VID.canPlayType(e)},au.canPlaySource=function(e,t){return au.canPlayType(e.type)},au.canControlVolume=function(){try{let e=au.TEST_VID.volume;au.TEST_VID.volume=e/2+.1;let t=e!==au.TEST_VID.volume;if(t&&tH)return h.default.setTimeout(()=>{au&&au.prototype&&(au.prototype.featuresVolumeControl=e!==au.TEST_VID.volume)}),!1;return t}catch(e){return!1}},au.canMuteVolume=function(){try{let e=au.TEST_VID.muted;return au.TEST_VID.muted=!e,au.TEST_VID.muted?t7(au.TEST_VID,"muted","muted"):t9(au.TEST_VID,"muted","muted"),e!==au.TEST_VID.muted}catch(e){return!1}},au.canControlPlaybackRate=function(){if(tE&&tA&&tP<58)return!1;try{let e=au.TEST_VID.playbackRate;return au.TEST_VID.playbackRate=e/2+.1,e!==au.TEST_VID.playbackRate}catch(e){return!1}},au.canOverrideAttributes=function(){try{let e=()=>{};Object.defineProperty(f.default.createElement("video"),"src",{get:e,set:e}),Object.defineProperty(f.default.createElement("audio"),"src",{get:e,set:e}),Object.defineProperty(f.default.createElement("video"),"innerHTML",{get:e,set:e}),Object.defineProperty(f.default.createElement("audio"),"innerHTML",{get:e,set:e})}catch(e){return!1}return!0},au.supportsNativeTextTracks=function(){return tW||tH&&tA},au.supportsNativeVideoTracks=function(){return!!(au.TEST_VID&&au.TEST_VID.videoTracks)},au.supportsNativeAudioTracks=function(){return!!(au.TEST_VID&&au.TEST_VID.audioTracks)},au.Events=["loadstart","suspend","abort","error","emptied","stalled","loadedmetadata","loadeddata","canplay","canplaythrough","playing","waiting","seeking","seeked","ended","durationchange","timeupdate","progress","play","pause","ratechange","resize","volumechange"],[["featuresMuteControl","canMuteVolume"],["featuresPlaybackRate","canControlPlaybackRate"],["featuresSourceset","canOverrideAttributes"],["featuresNativeTextTracks","supportsNativeTextTracks"],["featuresNativeVideoTracks","supportsNativeVideoTracks"],["featuresNativeAudioTracks","supportsNativeAudioTracks"]].forEac
133h(function([e,t]){tw(au.prototype,e,()=>au[t](),!0)}),au.prototype.featuresVolumeControl=au.canControlVolume(),au.prototype.movingMediaElementInDOM=!tH,au.prototype.featuresFullscreenResize=!0,au.prototype.featuresProgressEvents=!0,au.prototype.featuresTimeupdateEvents=!0,au.prototype.featuresVideoFrameCallback=!!(au.TEST_VID&&au.TEST_VID.requestVideoFrameCallback),au.disposeMediaElement=function(e){if(e){for(e.parentNode&&e.parentNode.removeChild(e);e.hasChildNodes();)e.removeChild(e.firstChild);e.removeAttribute("src"),"function"==typeof e.load&&function(){try{e.load()}catch(e){}}()}},au.resetMediaElement=function(e){if(!e)return;let t=e.querySelectorAll("source"),r=t.length;for(;r--;)e.removeChild(t[r]);e.removeAttribute("src"),"function"==typeof e.load&&function(){try{e.load()}catch(e){}}()},["muted","defaultMuted","autoplay","controls","loop","playsinline"].forEach(function(e){au.prototype[e]=function(){return this.el_[e]||this.el_.hasAttribute(e)}}),["muted","defaultMuted","autoplay","loop","playsinline"].forEach(function(e){au.prototype["set"+rZ(e)]=function(t){this.el_[e]=t,t?this.el_.setAttribute(e,e):this.el_.removeAttribute(e)}}),["paused","currentTime","buffered","volume","poster","preload","error","seeking","seekable","ended","playbackRate","defaultPlaybackRate","disablePictureInPicture","played","networkState","readyState","videoWidth","videoHeight","crossOrigin"].forEach(function(e){au.prototype[e]=function(){return this.el_[e]}}),["volume","src","poster","preload","playbackRate","defaultPlaybackRate","disablePictureInPicture","crossOrigin"].forEach(function(e){au.prototype["set"+rZ(e)]=function(t){this.el_[e]=t}}),["pause","load","play"].forEach(function(e){au.prototype[e]=function(){return this.el_[e]()}}),iB.withSourceHandlers(au),au.nativeSourceHandler={},au.nativeSourceHandler.canPlayType=function(e){try{return au.TEST_VID.canPlayType(e)}catch(e){return""}},au.nativeSourceHandler.canHandleSource=function(e,t){if(e.type)return au.nativeSourceHandler.canPlayType(e.type);if(e.src){let t=iE(e.src);return au.nativeSourceHandler.canPlayType(`video/${t}`)}return""},au.nativeSourceHandler.handleSource=function(e,t,r){t.setSrc(e.src)},au.nativeSourceHandler.dispose=function(){},au.registerSourceHandler(au.nativeSourceHandler),iB.registerTech("Html5",au);let ad=["progress","abort","suspend","emptied","stalled","loadedmetadata","loadeddata","timeupdate","resize","volumechange","texttrackchange"],ap={canplay:"CanPlay",canplaythrough:"CanPlayThrough",playing:"Playing",seeked:"Seeked"},ah=["tiny","xsmall","small","medium","large","xlarge","huge"],af={};ah.forEach(e=>{let t="x"===e.charAt(0)?`x-${e.substring(1)}`:e;af[e]=`vjs-layout-${t}`});let ag={tiny:210,xsmall:320,small:425,medium:768,large:1440,xlarge:2560,huge:1/0};class am extends r2{constructor(e,t,r){if(e.id=e.id||t.id||`vjs_video_${rT++}`,(t=Object.assign(am.getTagSettings(e),t)).initChildren=!1,t.createEl=!1,t.evented=!1,t.reportTouchActivity=!1,!t.language){const r=e.closest("[lang]");r&&(t.language=r.getAttribute("lang"))}if(super(null,t,r),this.boundDocumentFullscreenChange_=e=>this.documentFullscreenChange_(e),this.boundFullWindowOnEscKey_=e=>this.fullWindowOnEscKey(e),this.boundUpdateStyleEl_=e=>this.updateStyleEl_(e),this.boundApplyInitTime_=e=>this.applyInitTime_(e),this.boundUpdateCurrentBreakpoint_=e=>this.updateCurrentBreakpoint_(e),this.boundHandleTechClick_=e=>this.handleTechClick_(e),this.boundHandleTechDoubleClick_=e=>this.handleTechDoubleClick_(e),this.boundHandleTechTouchStart_=e=>this.handleTechTouchStart_(e),this.boundHandleTechTouchMove_=e=>this.handleTechTouchMove_(e),this.boundHandleTechTouchEnd_=e=>this.handleTechTouchEnd_(e),this.boundHandleTechTap_=e=>this.handleTechTap_(e),this.boundUpdatePlayerHeightOnAudioOnlyMode_=e=>this.updatePlayerHeightOnAudioOnlyMode_(e),this.isFullscreen_=!1,this.log=th(this.id_),this.fsApi_=tl,this.isPosterFromTech_=!1,this.queuedCallbacks_=[],this.isReady_=!1,this.hasStarted_=!1,this.userActive_=!1,this.debugEnabled_=!1,this.audioOnlyMode_=!1,this.audioPosterMode_=!1,this.audioOnlyCache_={controlBarHeight:null,playerHe
vendor: 1,500 bytes, line 133
133ight:null,hiddenChildren:[]},!this.options_||!this.options_.techOrder||!this.options_.techOrder.length)throw Error("No techOrder specified. Did you overwrite videojs.options instead of just changing the properties you want to override?");if(this.tag=e,this.tagAttributes=e&&t8(e),this.language(this.options_.language),t.languages){const e={};Object.getOwnPropertyNames(t.languages).forEach(function(r){e[r.toLowerCase()]=t.languages[r]}),this.languages_=e}else this.languages_=am.prototype.options_.languages;this.resetCache_(),this.poster_=t.poster||"",this.controls_=!!t.controls,e.controls=!1,e.removeAttribute("controls"),this.changingSrc_=!1,this.playCallbacks_=[],this.playTerminatedQueue_=[],e.hasAttribute("autoplay")?this.autoplay(!0):this.autoplay(this.options_.autoplay),t.plugins&&Object.keys(t.plugins).forEach(e=>{if("function"!=typeof this[e])throw Error(`plugin "${e}" does not exist`)}),this.scrubbing_=!1,this.el_=this.createEl(),rK(this,{eventBusKey:"el_"}),this.fsApi_.requestFullscreen&&(rI(f.default,this.fsApi_.fullscreenchange,this.boundDocumentFullscreenChange_),this.on(this.fsApi_.fullscreenchange,this.boundDocumentFullscreenChange_)),this.fluid_&&this.on(["playerreset","resize"],this.boundUpdateStyleEl_);const i=tx(this.options_);if(t.plugins&&Object.keys(t.plugins).forEach(e=>{this[e](t.plugins[e])}),t.debug&&this.debug(!0),this.options_.playerOptions=i,this.middleware_=[],this.playbackRates(t.playbackRates),t.experimentalSvgIcons){const e=new h.default.DOMParser(
vendor: 17,817 bytes, line 133
133).parseFromString('<svg xmlns="http://www.w3.org/2000/svg">\n  <defs>\n    <symbol viewBox="0 0 48 48" id="vjs-icon-play">\n      <path d="M16 10v28l22-14z"></path>\n    </symbol>\n    <symbol viewBox="0 0 48 48" id="vjs-icon-pause">\n      <path d="M12 38h8V10h-8v28zm16-28v28h8V10h-8z"></path>\n    </symbol>\n    <symbol viewBox="0 0 48 48" id="vjs-icon-audio">\n      <path d="M24 2C14.06 2 6 10.06 6 20v14c0 3.31 2.69 6 6 6h6V24h-8v-4c0-7.73 6.27-14 14-14s14 6.27 14 14v4h-8v16h6c3.31 0 6-2.69 6-6V20c0-9.94-8.06-18-18-18z"></path>\n    </symbol>\n    <symbol viewBox="0 0 48 48" id="vjs-icon-captions">\n      <path d="M38 8H10c-2.21 0-4 1.79-4 4v24c0 2.21 1.79 4 4 4h28c2.21 0 4-1.79 4-4V12c0-2.21-1.79-4-4-4zM22 22h-3v-1h-4v6h4v-1h3v2a2 2 0 0 1-2 2h-6a2 2 0 0 1-2-2v-8a2 2 0 0 1 2-2h6a2 2 0 0 1 2 2v2zm14 0h-3v-1h-4v6h4v-1h3v2a2 2 0 0 1-2 2h-6a2 2 0 0 1-2-2v-8a2 2 0 0 1 2-2h6a2 2 0 0 1 2 2v2z"></path>\n    </symbol>\n    <symbol viewBox="0 0 48 48" id="vjs-icon-subtitles">\n      <path d="M40 8H8c-2.21 0-4 1.79-4 4v24c0 2.21 1.79 4 4 4h32c2.21 0 4-1.79 4-4V12c0-2.21-1.79-4-4-4zM8 24h8v4H8v-4zm20 12H8v-4h20v4zm12 0h-8v-4h8v4zm0-8H20v-4h20v4z"></path>\n    </symbol>\n    <symbol viewBox="0 0 48 48" id="vjs-icon-fullscreen-enter">\n      <path d="M14 28h-4v10h10v-4h-6v-6zm-4-8h4v-6h6v-4H10v10zm24 14h-6v4h10V28h-4v6zm-6-24v4h6v6h4V10H28z"></path>\n    </symbol>\n    <symbol viewBox="0 0 48 48" id="vjs-icon-fullscreen-exit">\n      <path d="M10 32h6v6h4V28H10v4zm6-16h-6v4h10V10h-4v6zm12 22h4v-6h6v-4H28v10zm4-22v-6h-4v10h10v-4h-6z"></path>\n    </symbol>\n    <symbol viewBox="0 0 48 48" id="vjs-icon-play-circle">\n      <path d="M20 33l12-9-12-9v18zm4-29C12.95 4 4 12.95 4 24s8.95 20 20 20 20-8.95 20-20S35.05 4 24 4zm0 36c-8.82 0-16-7.18-16-16S15.18 8 24 8s16 7.18 16 16-7.18 16-16 16z"></path>\n    </symbol>\n    <symbol viewBox="0 0 48 48" id="vjs-icon-volume-mute">\n      <path d="M33 24c0-3.53-2.04-6.58-5-8.05v4.42l4.91 4.91c.06-.42.09-.85.09-1.28zm5 0c0 1.88-.41 3.65-1.08 5.28l3.03 3.03C41.25 29.82 42 27 42 24c0-8.56-5.99-15.72-14-17.54v4.13c5.78 1.72 10 7.07 10 13.41zM8.55 6L6 8.55 15.45 18H6v12h8l10 10V26.55l8.51 8.51c-1.34 1.03-2.85 1.86-4.51 2.36v4.13a17.94 17.94 0 0 0 7.37-3.62L39.45 42 42 39.45l-18-18L8.55 6zM24 8l-4.18 4.18L24 16.36V8z"></path>\n    </symbol>\n    <symbol viewBox="0 0 48 48" id="vjs-icon-volume-low">\n      <path d="M14 18v12h8l10 10V8L22 18h-8z"></path>\n    </symbol>\n    <symbol viewBox="0 0 48 48" id="vjs-icon-volume-medium">\n      <path d="M37 24c0-3.53-2.04-6.58-5-8.05v16.11c2.96-1.48 5-4.53 5-8.06zm-27-6v12h8l10 10V8L18 18h-8z"></path>\n    </symbol>\n    <symbol viewBox="0 0 48 48" id="vjs-icon-volume-high">\n      <path d="M6 18v12h8l10 10V8L14 18H6zm27 6c0-3.53-2.04-6.58-5-8.05v16.11c2.96-1.48 5-4.53 5-8.06zM28 6.46v4.13c5.78 1.72 10 7.07 10 13.41s-4.22 11.69-10 13.41v4.13c8.01-1.82 14-8.97 14-17.54S36.01 8.28 28 6.46z"></path>\n    </symbol>\n    <symbol viewBox="0 0 48 48" id="vjs-icon-spinner">\n      <path d="M18.8 21l9.53-16.51C26.94 4.18 25.49 4 24 4c-4.8 0-9.19 1.69-12.64 4.51l7.33 12.69.11-.2zm24.28-3c-1.84-5.85-6.3-10.52-11.99-12.68L23.77 18h19.31zm.52 2H28.62l.58 1 9.53 16.5C41.99 33.94 44 29.21 44 24c0-1.37-.14-2.71-.4-4zm-26.53 4l-7.8-13.5C6.01 14.06 4 18.79 4 24c0 1.37.14 2.71.4 4h14.98l-2.31-4zM4.92 30c1.84 5.85 6.3 10.52 11.99 12.68L24.23 30H4.92zm22.54 0l-7.8 13.51c1.4.31 2.85.49 4.34.49 4.8 0 9.19-1.69 12.64-4.51L29.31 26.8 27.46 30z"></path>\n    </symbol>\n    <symbol viewBox="0 0 24 24" id="vjs-icon-hd">\n      <path d="M19 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-8 12H9.5v-2h-2v2H6V9h1.5v2.5h2V9H11v6zm2-6h4c.55 0 1 .45 1 1v4c0 .55-.45 1-1 1h-4V9zm1.5 4.5h2v-3h-2v3z"></path>\n    </symbol>\n    <symbol viewBox="0 0 48 48" id="vjs-icon-chapters">\n      <path d="M6 26h4v-4H6v4zm0 8h4v-4H6v4zm0-16h4v-4H6v4zm8 8h28v-4H14v4zm0 8h28v-4H14v4zm0-20v4h28v-4H14z"></path>\n    </symbol>\n    <symbol viewBox="0 0 40 40" id="vjs-icon-downloading">\n      <path d="M18.208 36.875q-3.208-.292-5.979-1.729-2.771-1.438-4.812-3.729-2.042-2.292-3.188-5.229-1.146-2.938-1.146-6.23 0-6.583 4.334-11.416 4.333-4.834 10.833-5.5v3.166q-5.167.75-8.583 4.646Q6.25 14.75 6.25 19.958q0 5.209 3.396 9.104 3.396 3.896 8.562 4.646zM20 28.417L11.542 20l2.083-2.083 4.917 4.916v-11.25h2.916v11.25l4.875-4.916L28.417 20zm1.792 8.458v-3.167q1.833-.25 3.541-.958 1.709-.708 3.167-1.875l2.333 2.292q-1.958 1.583-4.25 2.541-2.291.959-4.791 1.167zm6.791-27.792q-1.541-1.125-3.25-1.854-1.708-.729-3.541-1.021V3.042q2.5.25 4.77 1.208 2.271.958 4.271 2.5zm4.584 21.584l-2.25-2.25q1.166-1.5 1.854-3.209.687-1.708.937-3.541h3.209q-.292 2.5-1.229 4.791-.938 2.292-2.521 4.209zm.541-12.417q-.291-1.833-.958-3.562-.667-1.73-1.833-3.188l2.375-2.208q1.541 1.916 2.458 4.208.917 2.292 1.167 4.75z"></path>\n    </symbol>\n    <symbol viewBox="0 0 48 48" id="vjs-icon-file-download">\n      <path d="M10.8 40.55q-1.35 0-2.375-1T7.4 37.15v-7.7h3.4v7.7h26.35v-7.7h3.4v7.7q0 1.4-1 2.4t-2.4 1zM24 32.1L13.9 22.05l2.45-2.45 5.95 5.95V7.15h3.4v18.4l5.95-5.95 2.45 2.45z"></path>\n    </symbol>\n    <symbol viewBox="0 0 48 48" id="vjs-icon-file-download-done">\n      <path d="M9.8 40.5v-3.45h28.4v3.45zm9.2-9.05L7.4 19.85l2.45-2.35L19 26.65l19.2-19.2 2.4 2.4z"></path>\n    </symbol>\n    <symbol viewBox="0 0 48 48" id="vjs-icon-file-download-off">\n      <path d="M4.9 4.75L43.25 43.1 41 45.3l-4.75-4.75q-.05.05-.075.025-.025-.025-.075-.025H10.8q-1.35 0-2.375-1T7.4 37.15v-7.7h3.4v7.7h22.05l-7-7-1.85 1.8L13.9 21.9l1.85-1.85L2.7 7zm26.75 14.7l2.45 2.45-3.75 3.8-2.45-2.5zM25.7 7.15V21.1l-3.4-3.45V7.15z"></path>\n    </symbol>\n    <symbol viewBox="0 0 48 48" id="vjs-icon-share">\n      <path d="M36 32.17c-1.52 0-2.89.59-3.93 1.54L17.82 25.4c.11-.45.18-.92.18-1.4s-.07-.95-.18-1.4l14.1-8.23c1.07 1 2.5 1.62 4.08 1.62 3.31 0 6-2.69 6-6s-2.69-6-6-6-6 2.69-6 6c0 .48.07.95.18 1.4l-14.1 8.23c-1.07-1-2.5-1.62-4.08-1.62-3.31 0-6 2.69-6 6s2.69 6 6 6c1.58 0 3.01-.62 4.08-1.62l14.25 8.31c-.1.42-.16.86-.16 1.31A5.83 5.83 0 1 0 36 32.17z"></path>\n    </symbol>\n    <symbol viewBox="0 0 48 48" id="vjs-icon-cog">\n      <path d="M38.86 25.95c.08-.64.14-1.29.14-1.95s-.06-1.31-.14-1.95l4.23-3.31c.38-.3.49-.84.24-1.28l-4-6.93c-.25-.43-.77-.61-1.22-.43l-4.98 2.01c-1.03-.79-2.16-1.46-3.38-1.97L29 4.84c-.09-.47-.5-.84-1-.84h-8c-.5 0-.91.37-.99.84l-.75 5.3a14.8 14.8 0 0 0-3.38 1.97L9.9 10.1a1 1 0 0 0-1.22.43l-4 6.93c-.25.43-.14.97.24 1.28l4.22 3.31C9.06 22.69 9 23.34 9 24s.06 1.31.14 1.95l-4.22 3.31c-.38.3-.49.84-.24 1.28l4 6.93c.25.43.77.61 1.22.43l4.98-2.01c1.03.79 2.16 1.46 3.38 1.97l.75 5.3c.08.47.49.84.99.84h8c.5 0 .91-.37.99-.84l.75-5.3a14.8 14.8 0 0 0 3.38-1.97l4.98 2.01a1 1 0 0 0 1.22-.43l4-6.93c.25-.43.14-.97-.24-1.28l-4.22-3.31zM24 31c-3.87 0-7-3.13-7-7s3.13-7 7-7 7 3.13 7 7-3.13 7-7 7z"></path>\n    </symbol>\n    <symbol viewBox="0 0 48 48" id="vjs-icon-square">\n      <path d="M36 8H12c-2.21 0-4 1.79-4 4v24c0 2.21 1.79 4 4 4h24c2.21 0 4-1.79 4-4V12c0-2.21-1.79-4-4-4zm0 28H12V12h24v24z"></path>\n    </symbol>\n    <symbol viewBox="0 0 48 48" id="vjs-icon-circle">\n      <circle cx="24" cy="24" r="20"></circle>\n    </symbol>\n    <symbol viewBox="0 0 48 48" id="vjs-icon-circle-outline">\n      <path d="M24 4C12.95 4 4 12.95 4 24s8.95 20 20 20 20-8.95 20-20S35.05 4 24 4zm0 36c-8.82 0-16-7.18-16-16S15.18 8 24 8s16 7.18 16 16-7.18 16-16 16z"></path>\n    </symbol>\n    <symbol viewBox="0 0 48 48" id="vjs-icon-circle-inner-circle">\n      <path d="M24 4C12.97 4 4 12.97 4 24s8.97 20 20 20 20-8.97 20-20S35.03 4 24 4zm0 36c-8.82 0-16-7.18-16-16S15.18 8 24 8s16 7.18 16 16-7.18 16-16 16zm6-16c0 3.31-2.69 6-6 6s-6-2.69-6-6 2.69-6 6-6 6 2.69 6 6z"></path>\n    </symbol>\n    <symbol viewBox="0 0 48 48" id="vjs-icon-cancel">\n      <path d="M24 4C12.95 4 4 12.95 4 24s8.95 20 20 20 20-8.95 20-20S35.05 4 24 4zm10 27.17L31.17 34 24 26.83 16.83 34 14 31.17 21.17 24 14 16.83 16.83 14 24 21.17 31.17 14 34 16.83 26.83 24 34 31.17z"></path>\n    </symbol>\n    <symbol viewBox="0 0 48 48" id="vjs-icon-replay">\n      <path d="M24 10V2L14 12l10 10v-8c6.63 0 12 5.37 12 12s-5.37 12-12 12-12-5.37-12-12H8c0 8.84 7.16 16 16 16s16-7.16 16-16-7.16-16-16-16z"></path>\n    </symbol>\n    <symbol viewBox="0 0 48 48" id="vjs-icon-repeat">\n      <path d="M14 14h20v6l8-8-8-8v6H10v12h4v-8zm20 20H14v-6l-8 8 8 8v-6h24V26h-4v8z"></path>\n    </symbol>\n    <symbol viewBox="0 96 48 48" id="vjs-icon-replay-5">\n      <path d="M17.689 98l-8.697 8.696 8.697 8.697 2.486-2.485-4.32-4.319h1.302c4.93 0 9.071 1.722 12.424 5.165 3.352 3.443 5.029 7.638 5.029 12.584h3.55c0-2.958-.553-5.73-1.658-8.313-1.104-2.583-2.622-4.841-4.555-6.774-1.932-1.932-4.19-3.45-6.773-4.555-2.584-1.104-5.355-1.657-8.313-1.657H15.5l4.615-4.615zm-8.08 21.659v13.861h11.357v5.008H9.609V143h12.7c.834 0 1.55-.298 2.146-.894.596-.597.895-1.31.895-2.145v-7.781c0-.835-.299-1.55-.895-2.147a2.929 2.929 0 0 0-2.147-.894h-8.227v-5.096H25.35v-4.384z"></path>\n    </symbol>\n    <symbol viewBox="0 96 48 48" id="vjs-icon-replay-10">\n      <path d="M42.315 125.63c0-4.997-1.694-9.235-5.08-12.713-3.388-3.479-7.571-5.218-12.552-5.218h-1.315l4.363 4.363-2.51 2.51-8.787-8.786L25.221 97l2.45 2.45-4.662 4.663h1.375c2.988 0 5.788.557 8.397 1.673 2.61 1.116 4.892 2.65 6.844 4.602 1.953 1.953 3.487 4.234 4.602 6.844 1.116 2.61 1.674 5.41 1.674 8.398zM8.183 142v-19.657H3.176V117.8h9.643V142zm13.63 0c-1.156 0-2.127-.393-2.912-1.178-.778-.778-1.168-1.746-1.168-2.902v-16.04c0-1.156.393-2.127 1.178-2.912.779-.779 1.746-1.168 2.902-1.168h7.696c1.156 0 2.126.392 2.911 1.177.779.78 1.168 1.747 1.168 2.903v16.04c0 1.156-.392 2.127-1.177 2.912-.779.779-1.746 1.168-2.902 1.168zm.556-4.636h6.583v-15.02H22.37z"></path>\n    </symbol>\n    <symbol viewBox="0 96 48 48" id="vjs-icon-replay-30">\n      <path d="M26.047 97l-8.733 8.732 8.733 8.733 2.496-2.494-4.336-4.338h1.307c4.95 0 9.108 1.73 12.474 5.187 3.367 3.458 5.051 7.668 5.051 12.635h3.565c0-2.97-.556-5.751-1.665-8.346-1.109-2.594-2.633-4.862-4.574-6.802-1.94-1.941-4.208-3.466-6.803-4.575-2.594-1.109-5.375-1.664-8.345-1.664H23.85l4.634-4.634zM2.555 117.531v4.688h10.297v5.25H5.873v4.687h6.979v5.156H2.555V142H13.36c1.061 0 1.95-.395 2.668-1.186.718-.79 1.076-1.772 1.076-2.94v-16.218c0-1.168-.358-2.149-1.076-2.94-.717-.79-1.607-1.185-2.668-1.185zm22.482.14c-1.149 0-2.11.39-2.885 1.165-.78.78-1.172 1.744-1.172 2.893v15.943c0 1.149.388 2.11 1.163 2.885.78.78 1.745 1.172 2.894 1.172h7.649c1.148 0 2.11-.388 2.884-1.163.78-.78 1.17-1.745 1.17-2.894v-15.943c0-1.15-.386-2.111-1.16-2.885-.78-.78-1.746-1.172-2.894-1.172zm.553 4.518h6.545v14.93H25.59z"></path>\n    </symbol>\n    <symbol viewBox="0 96 48 48" id="vjs-icon-forward-5">\n      <path d="M29.508 97l-2.431 2.43 4.625 4.625h-1.364c-2.965 0-5.742.554-8.332 1.66-2.589 1.107-4.851 2.629-6.788 4.566-1.937 1.937-3.458 4.2-4.565 6.788-1.107 2.59-1.66 5.367-1.66 8.331h3.557c0-4.957 1.68-9.16 5.04-12.611 3.36-3.45 7.51-5.177 12.451-5.177h1.304l-4.326 4.33 2.49 2.49 8.715-8.716zm-9.783 21.61v13.89h11.382v5.018H19.725V142h12.727a2.93 2.93 0 0 0 2.15-.896 2.93 2.93 0 0 0 .896-2.15v-7.798c0-.837-.299-1.554-.896-2.152a2.93 2.93 0 0 0-2.15-.896h-8.245V123h11.29v-4.392z"></path>\n    </symbol>\n    <symbol viewBox="0 96 48 48" id="vjs-icon-forward-10">\n      <path d="M23.119 97l-2.386 2.383 4.538 4.538h-1.339c-2.908 0-5.633.543-8.173 1.63-2.54 1.085-4.76 2.577-6.66 4.478-1.9 1.9-3.392 4.12-4.478 6.66-1.085 2.54-1.629 5.264-1.629 8.172h3.49c0-4.863 1.648-8.986 4.944-12.372 3.297-3.385 7.368-5.078 12.216-5.078h1.279l-4.245 4.247 2.443 2.442 8.55-8.55zm-9.52 21.45v4.42h4.871V142h4.513v-23.55zm18.136 0c-1.125 0-2.066.377-2.824 1.135-.764.764-1.148 1.709-1.148 2.834v15.612c0 1.124.38 2.066 1.139 2.824.764.764 1.708 1.145 2.833 1.145h7.489c1.125 0 2.066-.378 2.824-1.136.764-.764 1.145-1.709 1.145-2.833v-15.612c0-1.125-.378-2.067-1.136-2.825-.764-.764-1.708-1.145-2.833-1.145zm.54 4.42h6.408v14.617h-6.407z"></path>\n    </symbol>\n    <symbol viewBox="0 96 48 48" id="vjs-icon-forward-30">\n      <path d="M25.549 97l-2.437 2.434 4.634 4.635H26.38c-2.97 0-5.753.555-8.347 1.664-2.594 1.109-4.861 2.633-6.802 4.574-1.94 1.94-3.465 4.207-4.574 6.802-1.109 2.594-1.664 5.377-1.664 8.347h3.565c0-4.967 1.683-9.178 5.05-12.636 3.366-3.458 7.525-5.187 12.475-5.187h1.307l-4.335 4.338 2.495 2.494 8.732-8.732zm-11.553 20.53v4.689h10.297v5.249h-6.978v4.688h6.978v5.156H13.996V142h10.808c1.06 0 1.948-.395 2.666-1.186.718-.79 1.077-1.771 1.077-2.94v-16.217c0-1.169-.36-2.15-1.077-2.94-.718-.79-1.605-1.186-2.666-1.186zm21.174.168c-1.149 0-2.11.389-2.884 1.163-.78.78-1.172 1.745-1.172 2.894v15.942c0 1.15.388 2.11 1.162 2.885.78.78 1.745 1.17 2.894 1.17h7.649c1.149 0 2.11-.386 2.885-1.16.78-.78 1.17-1.746 1.17-2.895v-15.942c0-1.15-.387-2.11-1.161-2.885-.78-.78-1.745-1.172-2.894-1.172zm.552 4.516h6.542v14.931h-6.542z"></path>\n    </symbol>\n    <symbol viewBox="0 0 512 512" id="vjs-icon-audio-description">\n      <g fill-rule="evenodd"><path d="M227.29 381.351V162.993c50.38-1.017 89.108-3.028 117.631 17.126 27.374 19.342 48.734 56.965 44.89 105.325-4.067 51.155-41.335 94.139-89.776 98.475-24.085 2.155-71.972 0-71.972 0s-.84-1.352-.773-2.568m48.755-54.804c31.43 1.26 53.208-16.633 56.495-45.386 4.403-38.51-21.188-63.552-58.041-60.796v103.612c-.036 1.466.575 2.22 1.546 2.57"></path><path d="M383.78 381.328c13.336 3.71 17.387-11.06 23.215-21.408 12.722-22.571 22.294-51.594 22.445-84.774.221-47.594-18.343-82.517-35.6-106.182h-8.51c-.587 3.874 2.226 7.315 3.865 10.276 13.166 23.762 25.367 56.553 25.54 94.194.2 43.176-14.162 79.278-30.955 107.894"></path><path d="M425.154 381.328c13.336 3.71 17.384-11.061 23.215-21.408 12.721-22.571 22.291-51.594 22.445-84.774.221-47.594-18.343-82.517-35.6-106.182h-8.511c-.586 3.874 2.226 7.315 3.866 10.276 13.166 23.762 25.367 56.553 25.54 94.194.2 43.176-14.162 79.278-30.955 107.894"></path><path d="M466.26 381.328c13.337 3.71 17.385-11.061 23.216-21.408 12.722-22.571 22.292-51.594 22.445-84.774.221-47.594-18.343-82.517-35.6-106.182h-8.51c-.587 3.874 2.225 7.315 3.865 10.276 13.166 23.762 25.367 56.553 25.54 94.194.2 43.176-14.162 79.278-30.955 107.894M4.477 383.005H72.58l18.573-28.484 64.169-.135s.065 19.413.065 28.62h48.756V160.307h-58.816c-5.653 9.537-140.85 222.697-140.85 222.697zm152.667-145.282v71.158l-40.453-.27 40.453-70.888z"></path></g>\n    </symbol>\n    <symbol viewBox="0 0 48 48" id="vjs-icon-next-item">\n      <path d="M12 36l17-12-17-12v24zm20-24v24h4V12h-4z"></path>\n    </symbol>\n    <symbol viewBox="0 0 48 48" id="vjs-icon-previous-item">\n      <path d="M12 12h4v24h-4zm7 12l17 12V12z"></path>\n    </symbol>\n    <symbol viewBox="0 0 48 48" id="vjs-icon-shuffle">\n      <path d="M21.17 18.34L10.83 8 8 10.83l10.34 10.34 2.83-2.83zM29 8l4.09 4.09L8 37.17 10.83 40l25.09-25.09L40 19V8H29zm.66 18.83l-2.83 2.83 6.26 6.26L29 40h11V29l-4.09 4.09-6.25-6.26z"></path>\n    </symbol>\n    <symbol viewBox="0 0 48 48" id="vjs-icon-cast">\n      <path d="M42 6H6c-2.21 0-4 1.79-4 4v6h4v-6h36v28H28v4h14c2.21 0 4-1.79 4-4V10c0-2.21-1.79-4-4-4zM2 36v6h6c0-3.31-2.69-6-6-6zm0-8v4c5.52 0 10 4.48 10 10h4c0-7.73-6.27-14-14-14zm0-8v4c9.94 0 18 8.06 18 18h4c0-12.15-9.85-22-22-22z"></path>\n    </symbol>\n    <symbol viewBox="0 0 48 48" id="vjs-icon-picture-in-picture-enter">\n      <path d="M38 22H22v11.99h16V22zm8 16V9.96C46 7.76 44.2 6 42 6H6C3.8 6 2 7.76 2 9.96V38c0 2.2 1.8 4 4 4h36c2.2 0 4-1.8 4-4zm-4 .04H6V9.94h36v28.1z"></path>\n    </symbol>\n    <symbol viewBox="0 0 22 18" id="vjs-icon-picture-in-picture-exit">\n      <path d="M18 4H4v10h14V4zm4 12V1.98C22 .88 21.1 0 20 0H2C.9 0 0 .88 0 1.98V16c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2zm-2 .02H2V1.97h18v14.05z"></path>\n      <path fill="none" d="M-1-3h24v24H-1z"></path>\n    </symbol>\n    <symbol viewBox="0 0 1792 1792" id="vjs-icon-facebook">\n      <path d="M1343 12v264h-157q-86 0-116 36t-30 108v189h293l-39 296h-254v759H734V905H479V609h255V391q0-186 104-288.5T1115 0q147 0 228 12z"></path>\n    </symbol>\n    <symbol viewBox="0 0 1792 1792" id="vjs-icon-linkedin">\n      <path d="M477 625v991H147V625h330zm21-306q1 73-50.5 122T312 490h-2q-82 0-132-49t-50-122q0-74 51.5-122.5T314 148t133 48.5T498 319zm1166 729v568h-329v-530q0-105-40.5-164.5T1168 862q-63 0-105.5 34.5T999 982q-11 30-11 81v553H659q2-399 2-647t-1-296l-1-48h329v144h-2q20-32 41-56t56.5-52 87-43.5T1285 602q171 0 275 113.5t104 332.5z"></path>\n    </symbol>\n    <symbol viewBox="0 0 1200 1227" id="vjs-icon-twitter">\n      <path d="M714.163 519.284L1160.89 0H1055.03L667.137 450.887L357.328 0H0L468.492 681.821L0 1226.37H105.866L515.491 750.218L842.672 1226.37H1200L714.137 519.284H714.163ZM569.165 687.828L521.697 619.934L144.011 79.6944H306.615L611.412 515.685L658.88 583.579L1055.08 1150.3H892.476L569.165 687.854V687.828Z"/>\n    </symbol>\n    <symbol viewBox="0 0 1792 1792" id="vjs-icon-tumblr">\n      <path d="M1328 1329l80 237q-23 35-111 66t-177 32q-104 2-190.5-26T787 1564t-95-106-55.5-120-16.5-118V676H452V461q72-26 129-69.5t91-90 58-102 34-99T779 12q1-5 4.5-8.5T791 0h244v424h333v252h-334v518q0 30 6.5 56t22.5 52.5 49.5 41.5 81.5 14q78-2 134-29z"></path>\n    </symbol>\n    <symbol viewBox="0 0 1792 1792" id="vjs-icon-pinterest">\n      <path d="M1664 896q0 209-103 385.5T1281.5 1561 896 1664q-111 0-218-32 59-93 78-164 9-34 54-211 20 39 73 67.5t114 28.5q121 0 216-68.5t147-188.5 52-270q0-114-59.5-214T1180 449t-255-63q-105 0-196 29t-154.5 77-109 110.5-67 129.5T377 866q0 104 40 183t117 111q30 12 38-20 2-7 8-31t8-30q6-23-11-43-51-61-51-151 0-151 104.5-259.5T904 517q151 0 235.5 82t84.5 213q0 170-68.5 289T980 1220q-61 0-98-43.5T859 1072q8-35 26.5-93.5t30-103T927 800q0-50-27-83t-77-33q-62 0-105 57t-43 142q0 73 25 122l-99 418q-17 70-13 177-206-91-333-281T128 896q0-209 103-385.5T510.5 231 896 128t385.5 103T1561 510.5 1664 896z"></path>\n    </symbol>\n  </defs>\n</svg>',"image/svg+xml");if(e.querySelector("parsererror"))
vendor: 1,959 bytes, line 133
133tp.warn("Failed to load SVG Icons. Falling back to Font Icons."),this.options_.experimentalSvgIcons=null;else{const t=e.documentElement;t.style.display="none",this.el_.appendChild(t),this.addClass("vjs-svg-icons-enabled")}}this.initChildren(),this.isAudio("audio"===e.nodeName.toLowerCase()),this.controls()?this.addClass("vjs-controls-enabled"):this.addClass("vjs-controls-disabled"),this.el_.setAttribute("role","region"),this.isAudio()?this.el_.setAttribute("aria-label",this.localize("Audio Player")):this.el_.setAttribute("aria-label",this.localize("Video Player")),this.isAudio()&&this.addClass("vjs-audio"),t.spatialNavigation&&t.spatialNavigation.enabled&&(this.spatialNavigation=new iZ(this),this.addClass("vjs-spatial-navigation-enabled")),tz&&this.addClass("vjs-touch-enabled"),tH||this.addClass("vjs-workinghover"),am.players[this.id_]=this;const n=tn.split(".")[0];this.addClass(`vjs-v${n}`),this.userActive(!0),this.reportUserActivity(),this.one("play",e=>this.listenForUserActivity_(e)),this.on("keydown",e=>this.handleKeyDown(e)),this.on("languagechange",e=>this.handleLanguagechange(e)),this.breakpoints(this.options_.breakpoints),this.responsive(this.options_.responsive),this.on("ready",()=>{this.audioPosterMode(this.options_.audioPosterMode),this.audioOnlyMode(this.options_.audioOnlyMode)})}dispose(){this.trigger("dispose"),this.off("dispose"),rA(f.default,this.fsApi_.fullscreenchange,this.boundDocumentFullscreenChange_),rA(f.default,"keydown",this.boundFullWindowOnEscKey_),this.styleEl_&&this.styleEl_.parentNode&&(this.styleEl_.parentNode.removeChild(this.styleEl_),this.styleEl_=null),am.players[this.id_]=null,this.tag&&this.tag.player&&(this.tag.player=null),this.el_&&this.el_.player&&(this.el_.player=null),this.tech_&&(this.tech_.dispose(),this.isPosterFromTech_=!1,this.poster_=""),this.playerElIngest_&&(this.playerElIngest_=null),this.tag&&(this.tag=null),iF.hasOwnProperty(this.id())&&delete iF[this.id()],iM.names.forEac
133h(e=>{let t=this[iM[e].getterName]();t&&t.off&&t.off()}),super.dispose({restoreEl:this.options_.restoreEl})}createEl(){let e,t=this.tag,r=this.playerElIngest_=t.parentNode&&t.parentNode.hasAttribute&&t.parentNode.hasAttribute("data-vjs-player"),i="video-js"===this.tag.tagName.toLowerCase();r?e=this.el_=t.parentNode:i||(e=this.el_=super.createEl("div"));let n=t8(t);if(i){for(e=this.el_=t,t=this.tag=f.default.createElement("video");e.children.length;)t.appendChild(e.firstChild);t1(e,"video-js")||t2(e,"video-js"),e.appendChild(t),r=this.playerElIngest_=e,Object.keys(e).forEach(r=>{try{t[r]=e[r]}catch(e){}})}t.setAttribute("tabindex","-1"),n.tabindex="-1",tA&&tR&&(t.setAttribute("role","application"),n.role="application"),t.removeAttribute("width"),t.removeAttribute("height"),"width"in n&&delete n.width,"height"in n&&delete n.height,Object.getOwnPropertyNames(n).forEach(function(r){i&&"class"===r||e.setAttribute(r,n[r]),i&&t.setAttribute(r,n[r])}),t.playerId=t.id,t.id+="_html5_api",t.className="vjs-tech",t.player=e.player=this,this.addClass("vjs-paused");let a=["IS_SMART_TV","IS_TIZEN","IS_WEBOS","IS_ANDROID","IS_IPAD","IS_IPHONE","IS_CHROMECAST_RECEIVER"].filter(e=>tV[e]).map(e=>"vjs-device-"+e.substring(3).toLowerCase().replace(/\_/g,"-"));if(this.addClass(...a),!0!==h.default.VIDEOJS_NO_DYNAMIC_STYLE){this.styleEl_=rx("vjs-styles-dimensions");let e=rd(".vjs-styles-defaults"),t=rd("head");t.insertBefore(this.styleEl_,e?e.nextSibling:t.firstChild)}this.fill_=!1,this.fluid_=!1,this.width(this.options_.width),this.height(this.options_.height),this.fill(this.options_.fill),this.fluid(this.options_.fluid),this.aspectRatio(this.options_.aspectRatio),this.crossOrigin(this.options_.crossOrigin||this.options_.crossorigin);let s=t.getElementsByTagName("a");for(let e=0;e<s.length;e++){let t=s.item(e);t2(t,"vjs-hidden"),t.setAttribute("hidden","hidden")}return t.initNetworkState_=t.networkState,t.parentNode&&!r&&t.parentNode.insertBefore(e,t),t0(t,e),this.children_.unshift(t),this.el_.setAttribute("lang",this.language_),this.el_.setAttribute("translate","no"),this.el_=e,e}crossOrigin(e){return void 0===e?this.techGet_("crossOrigin"):null!==e&&"anonymous"!==e&&"use-credentials"!==e?void tp.warn(`crossOrigin must be null,  "anonymous" or "use-credentials", given "${e}"`):void(this.techCall_("setCrossOrigin",e),this.posterImage&&this.posterImage.crossOrigin(e))}width(e){return this.dimension("width",e)}height(e){return this.dimension("height",e)}dimension(e,t){let r=e+"_";if(void 0===t)return this[r]||0;if(""===t||"auto"===t){this[r]=void 0,this.updateStyleEl_();return}let i=parseFloat(t);isNaN(i)?tp.error(`Improper value "${t}" supplied for for ${e}`):(this[r]=i,this.updateStyleEl_())}fluid(e){if(void 0===e)return!!this.fluid_;if(this.fluid_=!!e,r$(this)&&this.off(["playerreset","resize"],this.boundUpdateStyleEl_),e){var t;this.addClass("vjs-fluid"),this.fill(!1),t=()=>{this.on(["playerreset","resize"],this.boundUpdateStyleEl_)},r$(this)?t():(this.eventedCallbacks||(this.eventedCallbacks=[]),this.eventedCallbacks.push(t))}else this.removeClass("vjs-fluid");this.updateStyleEl_()}fill(e){if(void 0===e)return!!this.fill_;this.fill_=!!e,e?(this.addClass("vjs-fill"),this.fluid(!1)):this.removeClass("vjs-fill")}aspectRatio(e){if(void 0===e)return this.aspectRatio_;if(!/^\d+\:\d+$/.test(e))throw Error("Improper value supplied for aspect ratio. The format should be width:height, for example 16:9.");this.aspectRatio_=e,this.fluid(!0),this.updateStyleEl_()}updateStyleEl_(){let e,t,r;if(!0===h.default.VIDEOJS_NO_DYNAMIC_STYLE){let e="number"==typeof this.width_?this.width_:this.options_.width,t="number"==typeof this.height_?this.height_:this.options_.height,r=this.tech_&&this.tech_.el();r&&(e>=0&&(r.width=e),t>=0&&(r.height=t));return}let i=(void 0!==this.aspectRatio_&&"auto"!==this.aspectRatio_?this.aspectRatio_:this.videoWidth()>0?this.videoWidth()+":"+this.videoHeight():"16:9").split(":"),n=i[1]/i[0];e=void 0!==this.width_?this.width_:void 0!==this.height_?this.height_/n:this.videoWidth()||300,t=void 0!==this.height_?this.height_:e*n,r=/^[^a-zA-Z]/.test(this.id())?"dimensions-"+this.id():this.id()+"-dimensions",this.addClass(r),r_(this.styleEl_,`
134      .${r} {
135        width: ${e}px;
136        height: ${t}px;
137      }
138
139      .${r}.vjs-fluid:not(.vjs-audio-only-mode) {
140        padding-top: ${100*n}%;
141      }
142    `)}loadTech_(e,t){var r,i;this.tech_&&this.unloadTech_();let n=rZ(e),a=e.charAt(0).toLowerCase()+e.slice(1);"Html5"!==n&&this.tag&&(iB.getTech("Html5").disposeMediaElement(this.tag),this.tag.player=null,this.tag=null),this.techName_=n,this.isReady_=!1;let s=this.autoplay();("string"==typeof this.autoplay()||!0===this.autoplay()&&this.options_.normalizeAutoplay)&&(s=!1);let o={source:t,autoplay:s,nativeControlsForTouch:this.options_.nativeControlsForTouch,playerId:this.id(),techId:`${this.id()}_${a}_api`,playsinline:this.options_.playsinline,preload:this.options_.preload,loop:this.options_.loop,disablePictureInPicture:this.options_.disablePictureInPicture,muted:this.options_.muted,poster:this.poster(),language:this.language(),playerElIngest:this.playerElIngest_||!1,"vtt.js":this.options_["vtt.js"],canOverridePoster:!!this.options_.techCanOverridePoster,enableSourceset:this.options_.enableSourceset};
142iM.names.forEach(e=>{let t=iM[e];o[t.getterName]=this[t.privateName]}),Object.assign(o,this.options_[n]),Object.assign(o,this.options_[a]),Object.assign(o,this.options_[e.toLowerCase()]),this.tag&&(o.tag=this.tag),t&&t.src===this.cache_.src&&this.cache_.currentTime>0&&(o.startTime=this.cache_.currentTime);let l=iB.getTech(e);if(!l)throw Error(`No Tech named '${n}' exists! '${n}' should be registered using videojs.registerTech()'`);this.tech_=new l(o),this.tech_.ready(rD(this,this.handleTechReady_),!0),r=this.textTracksJson_||[],i=this.tech_,r.forEach(function(e){let t=i.addRemoteTextTrack(e).track;!e.src&&e.cues&&e.cues.forEach(e=>t.addCue(e))}),i.textTracks(),ad.forEach(e=>{this.on(this.tech_,e,t=>this[`handleTech${rZ(e)}_`](t))}),Object.keys(ap).forEach(e=>{this.on(this.tech_,e,t=>{0===this.tech_.playbackRate()&&this.tech_.seeking()?this.queuedCallbacks_.push({callback:this[`handleTech${ap[e]}_`].bind(this),event:t}):this[`handleTech${ap[e]}_`](t)})}),this.on(this.tech_,"loadstart",e=>this.handleTechLoadStart_(e)),this.on(this.tech_,"sourceset",e=>this.handleTechSourceset_(e)),this.on(this.tech_,"waiting",e=>this.handleTechWaiting_(e)),this.on(this.tech_,"ended",e=>this.handleTechEnded_(e)),this.on(this.tech_,"seeking",e=>this.handleTechSeeking_(e)),this.on(this.tech_,"play",e=>this.handleTechPlay_(e)),this.on(this.tech_,"pause",e=>this.handleTechPause_(e)),this.on(this.tech_,"durationchange",e=>this.handleTechDurationChange_(e)),this.on(this.tech_,"fullscreenchange",(e,t)=>this.handleTechFullscreenChange_(e,t)),this.on(this.tech_,"fullscreenerror",(e,t)=>this.handleTechFullscreenError_(e,t)),this.on(this.tech_,"enterpictureinpicture",e=>this.handleTechEnterPictureInPicture_(e)),this.on(this.tech_,"leavepictureinpicture",e=>this.handleTechLeavePictureInPicture_(e)),this.on(this.tech_,"error",e=>this.handleTechError_(e)),this.on(this.tech_,"posterchange",e=>this.handleTechPosterChange_(e)),this.on(this.tech_,"textdata",e=>this.handleTechTextData_(e)),this.on(this.tech_,"ratechange",e=>this.handleTechRateChange_(e)),this.on(this.tech_,"loadedmetadata",this.boundUpdateStyleEl_),this.usingNativeControls(this.techGet_("controls")),this.controls()&&!this.usingNativeControls()&&this.addTechControlsListeners_(),this.tech_.el().parentNode===this.el()||"Html5"===n&&this.tag||t0(this.tech_.el(),this.el()),this.tag&&(this.tag.player=null,this.tag=null)}unloadTech_(){iM.names.forEach(e=>{let t=iM[e];this[t.privateName]=this[t.getterName]()}),this.textTracksJson_=il(this.tech_),this.isReady_=!1,this.tech_.dispose(),this.tech_=!1,this.isPosterFromTech_&&(this.poster_="",this.trigger("posterchange")),this.isPosterFromTech_=!1}tech(e){return void 0===e&&tp.warn("Using the tech directly can be dangerous. I hope you know 
142what you're doing.\nSee https://github.com/videojs/video.js/issues/2617 for more info.\n"),this.tech_}version(){return{"video.js":tn}}addTechControlsListeners_(){this.removeTechControlsListeners_(),this.on(this.tech_,"click",this.boundHandleTechClick_),this.on(this.tech_,"dblclick",this.boundHandleTechDoubleClick_),this.on(this.tech_,"touchstart",this.boundHandleTechTouchStart_),this.on(this.tech_,"touchmove",this.boundHandleTechTouchMove_),this.on(this.tech_,"touchend",this.boundHandleTechTouchEnd_),this.on(this.tech_,"tap",this.boundHandleTechTap_)}removeTechControlsListeners_(){this.off(this.tech_,"tap",this.boundHandleTechTap_),this.off(this.tech_,"touchstart",this.boundHandleTechTouchStart_),this.off(this.tech_,"touchmove",this.boundHandleTechTouchMove_),this.off(this.tech_,"touchend",this.boundHandleTechTouchEnd_),this.off(this.tech_,"click",this.boundHandleTechClick_),this.off(this.tech_,"dblclick",this.boundHandleTechDoubleClick_)}handleTechReady_(){this.triggerReady(),this.cache_.volume&&this.techCall_("setVolume",this.cache_.volume),this.handleTechPosterChange_(),this.handleTechDurationChange_()}handleTechLoadStart_(){this.removeClass("vjs-ended","vjs-seeking"),this.error(null),this.handleTechDurationChange_(),this.paused()&&this.hasStarted(!1),this.trigger("loadstart"),this.manualAutoplay_(!0===this.autoplay()&&this.options_.normalizeAutoplay?"play":this.autoplay())}manualAutoplay_(e){let t;if(!this.tech_||"string"!=typeof e)return;let r=()=>{let e=this.muted();this.muted(!0);let t=()=>{this.muted(e)};this.playTerminatedQueue_.push(t);let r=this.play();if(ia(r))return r.catch(e=>{throw t(),Error(`Rejection at manualAutoplay. Restoring muted value. ${e||""}`)})};if("any"!==e||this.muted()?t="muted"!==e||this.muted()?this.play():r():ia(t=this.play())&&(t=t.catch(r)),ia(t))return t.then(()=>{this.trigger({type:"autoplay-success",autoplay:e})}).catch(()=>{this.trigger({type:"autoplay-failure",autoplay:e})})}updateSourceCaches_(e=""){let t=e,r="";"string"!=typeof t&&(t=e.src,r=e.type),this.cache_.source=this.cache_.source||{},this.cache_.sources=this.cache_.sources||[],t&&!r&&(r=((e,t)=>{if(!t)return"";if(e.cache_.source.src===t&&e.cache_.source.type)return e.cache_.source.type;let r=e.cache_.sources.filter(e=>e.src===t);if(r.length)return r[0].type;let i=e.$$("source");for(let e=0;e<i.length;e++){let r=i[e];if(r.type&&r.src&&r.src===t)return r.type}return iX(t)})(this,t)),this.cache_.source=tx({},e,{src:t,type:r});let i=this.cache_.sources.filter(e=>e.src&&e.src===t),n=[],a=this.$$("source"),s=[];for(let e=0;e<a.length;e++){let r=t8(a[e]);n.push(r),r.src&&r.src===t&&s.push(r.src)}s.length&&!i.length?this.cache_.sources=n:i.length||(this.cache_.sources=[this.cache_.source]),this.cache_.src=t}handleTechSourceset_(e){if(!this.changingSrc_){let t=e=>this.updateSourceCaches_(e),r=this.currentSource().src,i=e.src;r&&!/^blob:/.test(r)&&/^blob:/.test(i)&&(!this.lastSource_||this.lastSource_.tech!==i&&this.lastSource_.player!==r)&&(t=()=>{}),t(i),e.src||this.tech_.any(["sourceset","loadstart"],e=>{if("sourceset"===e.type)return;let t=this.techGet_("currentSrc");this.lastSource_.tech=t,this.updateSourceCaches_(t)})}this.lastSource_={player:this.currentSource().src,tech:e.src},this.trigger({src:e.src,type:"sourceset"})}hasStarted(e){if(void 0===e)return this.hasStarted_;e!==this.hasStarted_&&(this.hasStarted_=e,this.hasStarted_?this.addClass("vjs-has-started"):this.removeClass("vjs-has-started"))}handleTechPlay_(){this.removeClass("vjs-ended","vjs-paused"),this.addClass("vjs-playing"),this.hasStarted(!0),this.trigger("play")}handleTechRateChange_(){this.tech_.playbackRate()>0&&0===this.cache_.lastPlaybackRate&&(this.queuedCallbacks_.forEach(e=>e.callback(e.event)),this.queuedCallbacks_=[]),this.cache_.lastPlaybackRate=this.tech_.playbackRate(),this.trigger("ratechange")}handleTechWaiting_(){this.addClass("vjs-waiting"),this.trigger("waiting");let e=this.currentTime(),t=()=>{e!==this.currentTime()&&(this.removeClass("vjs-waiting"),this.off("timeupdate",t))};this.on("timeupdate",t)}handleTechCanPlay_(){this.removeClass("vjs-waiting"),this.trigger("canplay")}handleTechCanPlayThrough_(){this.removeClass("vjs-waiting"),this.trigger("canplaythrough")}handleTechPlaying_(){this.removeClass("vjs-waiting"),this.trigger("playing")}handleTechSeeking_(){this.addClass("vjs-seeking"),this.trigger("seeking")}
142handleTechSeeked_(){this.removeClass("vjs-seeking","vjs-ended"),this.trigger("seeked")}handleTechPause_(){this.removeClass("vjs-playing"),this.addClass("vjs-paused"),this.trigger("pause")}handleTechEnded_(){this.addClass("vjs-ended"),this.removeClass("vjs-waiting"),this.options_.loop?(this.currentTime(0),this.play()):this.paused()||this.pause(),this.trigger("ended")}handleTechDurationChange_(){this.duration(this.techGet_("duration"))}handleTechClick_(e){this.controls_&&(void 0===this.options_||void 0===this.options_.userActions||void 0===this.options_.userActions.click||!1!==this.options_.userActions.click)&&(void 0!==this.options_&&void 0!==this.options_.userActions&&"function"==typeof this.options_.userActions.click?this.options_.userActions.click.call(this,e):this.paused()?is(this.play()):this.pause())}handleTechDoubleClick_(e){!this.controls_||Array.prototype.some.call(this.$$(".vjs-control-bar, .vjs-modal-dialog"),t=>t.contains(e.target))||void 0!==this.options_&&void 0!==this.options_.userActions&&void 0!==this.options_.userActions.doubleClick&&!1===this.options_.userActions.doubleClick||(void 0!==this.options_&&void 0!==this.options_.userActions&&"function"==typeof this.options_.userActions.doubleClick?this.options_.userActions.doubleClick.call(this,e):this.isInPictureInPicture()&&!f.default.pictureInPictureElement?this.exitPictureInPicture():this.isFullscreen()?this.exitFullscreen():this.requestFullscreen())}handleTechTap_(){this.userActive(!this.userActive())}handleTechTouchStart_(){this.userWasActive=this.userActive()}handleTechTouchMove_(){this.userWasActive&&this.reportUserActivity()}handleTechTouchEnd_(e){e.cancelable&&e.preventDefault()}toggleFullscreenClass_(){this.isFullscreen()?this.addClass("vjs-fullscreen"):this.removeClass("vjs-fullscreen")}documentFullscreenChange_(e){let t=e.target.player;if(t&&t!==this)return;let r=this.el(),i=f.default[this.fsApi_.fullscreenElement]===r;!i&&r.matches&&(i=r.matches(":"+this.fsApi_.fullscreen)),this.isFullscreen(i)}handleTechFullscreenChange_(e,t){t&&(t.nativeIOSFullscreen&&(this.addClass("vjs-ios-native-fs"),this.tech_.one("webkitendfullscreen",()=>{this.removeClass("vjs-ios-native-fs")})),this.isFullscreen(t.isFullscreen))}handleTechFullscreenError_(e,t){this.trigger("fullscreenerror",t)}togglePictureInPictureClass_(){this.isInPictureInPicture()?this.addClass("vjs-picture-in-picture"):this.removeClass("vjs-picture-in-picture")}handleTechEnterPictureInPicture_(e){this.isInPictureInPicture(!0)}handleTechLeavePictureInPicture_(e){this.isInPictureInPicture(!1)}handleTechError_(){let e=this.tech_.error();e&&this.error(e)}handleTechTextData_(){let e=null;arguments.length>1&&(e=arguments[1]),this.trigger("textdata",e)}getCache(){return this.cache_}resetCache_(){this.cache_={currentTime:0,initTime:0,inactivityTimeout:this.options_.inactivityTimeout,duration:NaN,lastVolume:1,lastPlaybackRate:this.defaultPlaybackRate(),media:null,src:"",source:{},sources:[],playbackRates:[],volume:1}}techCall_(e,t){this.ready(function(){if(e in iH){var r,i;return r=this.middleware_,i=this.tech_,i[e](r.reduce(iV(e),t))}if(e in iW)return iz(this.middleware_,this.tech_,e,t);try{this.tech_&&this.tech_[e](t)}catch(e){throw tp(e),e}},!0)}techGet_(e){if(this.tech_&&this.tech_.isReady_){if(e in iq){var t,r;return t=this.middleware_,r=this.tech_,t.reduceRight(iV(e),r[e]())}if(e in iW)return iz(this.middleware_,this.tech_,e);try{return this.tech_[e]()}catch(t){if(void 0===this.tech_[e])throw tp(`Video.js: ${e} method not defined for ${this.techName_} playback technology.`,t),t;if("TypeError"===t.name)throw tp(`Video.js: ${e} unavailable on ${this.techName_} playback technology element.`,t),this.tech_.isReady_=!1,t;throw tp(t),t}}}play(){return new Promise(e=>{this.play_(e)})}play_(e=is){this.playCallbacks_.push(e);let t=!!(!this.changingSrc_&&(this.src()||this.currentSrc())),r=!!(tW||tH);if(this.waitToPlay_&&(this.off(["ready","loadstart"],this.waitToPlay_),this.waitToPlay_=null),!this.isReady_||!t){this.waitToPlay_=e=>{this.play_()},this.one(["ready","loadstart"],this.waitToPlay_),!t&&r&&this.load();return}let i=this.techGet_("play");r&&this.hasClass("vjs-ended")&&this.resetProgressBar_(),null===i?this.runPlayTerminatedQueue_():this.runPlayCallbacks_(i)}runPlayTerminatedQueue_(){let e=this.playTerminatedQueue_.slice(0);this.playTerminatedQueue_=[],e.forEach(function(e){e()})}runPlayCallbacks_(e){let t=this.playCallbacks_.slice(0);this.playCallbacks_=[],this.playTerminatedQueue_=[],t.forEach(function(t){t(e)})}pause(){this.techCall_("pause")}paused(){return!1!==this.techGet_("paused")}played(){return this.techGet_("played")||r3(0,0)}scrubbing(e){if(void 0===e)return this.scrubbing_;this.scrubbing_=!!e,this.techCall_("setScrubbing",this.scrubbing_),e?this.addClass("vjs-scrubbing"):this.removeClass("vjs-scrubbing")}currentTime(e){if(void 0===e)return this.cache_.currentTime=this.techGet_("currentTime")||0,this.cache_.currentTime;if(e<0&&(e=0),!this.isReady_||this.changingSrc_||!this.tech_||!this.tech_.isReady_){this.cache_.initTime=e,this.off("canplay",this.boundApplyInitTime_),this.one("canplay",this.boundApplyInitTime_);return}this.techCall_("setCurrentTime",e),this.cache_.initTime=0,isFinite(e)&&(this.cache_.currentTime=Number(e))}applyInitTime_(){this.currentTime(this.cache_.initTime)}duration(e){if(void 0===e)return void 0!==this.cache_.duration?this.cache_.duration:NaN;(e=parseFloat(e))<0&&(e=1/0),e!==this.cache_.duration&&(this.cache_.duration=e,e===1/0?this.addClass("vjs-live"):this.removeClass("vjs-live"),isNaN(e)||this.trigger("durationchange"))}remainingTime(){return this.duration()-this.currentTime()}remainingTimeDisplay(){return Math.floor(this.duration())-Math.floor(this.currentTime())}buffered(){let e=this.techGet_("buffered");return e&&e.length||(e=r3(0,0)),e}seekable(){let e=this.techGet_("seekable");return e&&e.length||(e=r3(0,0)),e}seeking(){return this.techGet_("seeking")}ended(){return this.techGet_("ended")}networkState(){return this.techGet_("networkState")}readyState(){return this.techGet_("readyState")}bufferedPercent(){return ir(this.buffered(),this.duration())}bufferedEnd(){let e=this.buffered(),t=this.duration(),r=e.end(e.length-1);return r>t&&(r=t),r}volume(e){let t;if(void 0!==e){t=Math.max(0,Math.min(1,e)),this.cache_.volume=t,this.techCall_("setVolume",t),t>0&&this.lastVolume_(t);return}return isNaN(t=parseFloat(this.techGet_("volume")))?1:t}muted(e){return void 0!==e?void this.techCall_("setMuted",e):this.techGet_("muted")||!1}defaultMuted(e){return void 0!==e&&this.techCall_("setDefaultMuted",e),this.techGet_("defaultMuted")||!1}lastVolume_(e){if(void 0!==e&&0!==e){this.cache_.lastVolume=e;return}return this.cache_.lastVolume}supportsFullScreen(){return this.techGet_("supportsFullScreen")||!1}isFullscreen(e){if(void 0!==e){let t=this.isFullscreen_;this.isFullscreen_=!!e,this.isFullscreen_!==t&&this.fsApi_.prefixed&&this.trigger("fullscreenchange"),this.toggleFullscreenClass_();return}return this.isFullscreen_}requestFullscreen(e){this.isInPictureInPicture()&&this.exitPictureInPicture();let t=this;return new Promise((r,i)=>{function n(){t.off("fullscreenerror",s),t.off("fullscreenchange",a)}function a(){n(),r()}function s(e,t){n(),i(t)}t.one("fullscreenchange",a),t.one("fullscreenerror",s);let o=t.requestFullscreenHelper_(e);o&&(o.then(n,n),o.then(r,i))})}requestFullscreenHelper_(e){let t;if(this.fsApi_.prefixed||(t=this.options_.fullscreen&&this.options_.fullscreen.options||{},void 0!==e&&(t=e)),this.fsApi_.requestFullscreen){let e=this.el_[this.fsApi_.requestFullscreen](t);return e&&e.then(()=>this.isFullscreen(!0),()=>this.isFullscreen(!1)),e}this.tech_.supportsFullScreen()&&!0==!this.options_.preferFullWindow?this.techCall_("enterFullScreen"):this.enterFullWindow()}exitFullscreen(){let e=this;return new Promise((t,r)=>{function i(){e.off("fullscreenerror",a),e.off("fullscreenchange",n)}function n(){i(),t()}function a(e,t){i(),r(t)}e.one("fullscreenchange",n),e.one("fullscreenerror",a);let s=e.exitFullscreenHelper_();s&&(s.then(i,i),s.then(t,r))})}exitFullscreenHelper_(){if(this.fsApi_.requestFullscreen){let e=f.default[this.fsApi_.exitFullscreen]();return e&&is(e.then(()=>this.isFullscreen(!1))),e}this.tech_.supportsFullScreen()&&!0==!this.options_.preferFullWindow?this.techCall_("exitFullScreen"):this.exitFullWindow()}enterFullWindow(){this.isFullscreen(!0),this.isFullWindow=!0,this.docOrigOverflow=f.default.documentElement.style.overflow,rI(f.default,"keydown",this.boundFullWindowOnEscKey_),f.default.documentElement.style.overflow="hidden",t2(f.default.body,"vjs-full-window"),this.trigger("enterFullWindow")}fullWindowOnEscKey(e){"Escape"===e.key&&!0===this.isFullscreen()&&(this.isFullWindow?this.exitFullWindow():this.exitFullscreen())}exitFullWindow(){this.isFullscreen(!1),this.isFullWindow=!1,rA(f.default,"keydown",this.boundFullWindowOnEscKey_),f.default.documentElement.style.overflow=this.docOrigOverflow,t4(f.default.body,"vjs-full-window"),this.trigger("exitFullWindow")}disablePictureInPicture(e){if(void 0===e)return this.techGet_("disablePictureInPicture");this.techCall_("setDisablePictureInPicture",e),this.options_.disablePictureInPicture=e,this.trigger("disablepictureinpicturechanged")}isInPictureInPicture(e){if(void 0!==e){this.isInPictureInPicture_=!!e,this.togglePictureInPictureClass_();return}return!!this.isInPictureInPicture_}requestPictureInPicture(){if(this.options_.enableDocumentPictureInPicture&&h.default.documentPictureInPicture){let e=f.default.createElement(this.el().tagName);return e.classList=this.el().classList,e.classList.add("vjs-pip-container"),this.posterImage&&e.appendChild(this.posterImage.el().cloneNode(!0)),this.titleBar&&e.appendChild(this.titleBar.el().cloneNode(!0)),e.appendChild(tJ("p",{className:"vjs-pip-text"},{},this.localize("Playing in picture-in-picture"))),h.default.documentPictureInPicture.requestWindow({width:this.videoWidth(),height:this.videoHeight()}).then(t=>(rf(t),this.el_.parentNode.insertBefore(e,this.el_),t.document.body.appendChild(this.el_),t.document.body.classList.add("vjs-pip-window"),this.player_.isInPictureInPicture(!0),this.player_.trigger({type:"enterpictureinpicture",pipWindow:t}),t.addEventListener("pagehide",t=>{let r=t.target.querySelector(".video-js");e.parentNode.replaceChild(r,e),this.player_.isInPictureInPicture(!1),this.player_.trigger("leavepictureinpicture")}),t))}return"pictureInPictureEnabled"in f.default&&!1===this.disablePictureInPicture()?this.techGet_("requestPictureInPicture"):Promise.reject("No PiP mode is available")}exitPictureInPicture(){return h.default.documentPictureInPicture&&h.default.documentPictureInPicture.window?(h.default.documentPictureInPicture.window.close(),Promise.resolve()):"pictureInPictureEnabled"in f.default?f.default.exitPictureInPicture():void 0}handleKeyDown(e){var t;let r,{userActions:i}=this.options_;i&&i.hotkeys&&(r=(t=this.el_.ownerDocument.activeElement).tagName.toLowerCase(),t.isContentEditable||("input"===r?-1===["button","checkbox","hidden","radio","reset","submit"].indexOf(t.type):-1!==["textarea"].indexOf(r))||("function"==typeof i.hotkeys?i.hotkeys.call(this,e):this.handleHotkeys(e)))}handleHotkeys(e){let{fullscreenKey:t=t=>"f"===e.key.toLowerCase(),muteKey:r=t=>"m"===e.key.toLowerCase(),playPauseKey:i=t=>"k"===e.key.toLowerCase()||" "===e.key.toLowerCase()}=this.options_.userActions?this.options_.userActions.hotkeys:{};if(t.call(this,e)){e.preventDefault(),e.stopPropagation();let t=r2.getComponent("FullscreenToggle");!1!==f.default[this.fsApi_.fullscreenEnabled]&&t.prototype.handleClick.call(this,e)}else r.call(this,e)?(e.preventDefault(),e.stopPropagation(),r2.getComponent("MuteToggle").prototype.handleClick.call(this,e)):i.call(this,e)&&(e.preventDefault(),e.stopPropagation(),r2.getComponent("PlayToggle").prototype.handleClick.call(this,e))}canPlayType(e){let t;for(let r=0,i=this.options_.techOrder;r<i.length;r++){let n=i[r],a=iB.getTech(n);if(a||(a=r2.getComponent(n)),!a){tp.error(`The "${n}" tech is undefined. Skipped browser support check for that tech.`);continue}if(a.isSupported()&&(t=a.canPlayType(e)))return t}return""}selectSource(e){let t,r=this.options_.techOrder.map(e=>[e,iB.getTech(e)]).filter(([e,t])=>t?t.isSupported():(tp.error(`The "${e}" tech is undefined. Skipped browser support check for that tech.`),!1)),i=function(e,t,r){let i;return e.some(e=>
142t.some(t=>{if(i=r(e,t))return!0})),i},n=([e,t],r)=>{if(t.canPlaySource(r,this.options_[e.toLowerCase()]))return{source:r,tech:e}};if(this.options_.sourceOrder)t=i(e,r,(e,t)=>n(t,e));else t=i(r,e,n);return t||!1}handleSrc_(e,t){var r,i,n;if(void 0===e)return this.cache_.src||"";this.resetRetryOnError_&&this.resetRetryOnError_();let a=iK(e);if(!a.length)return void this.setTimeout(function(){this.error({code:4,message:this.options_.notSupportedMessage})},0);if(this.changingSrc_=!0,t||(this.cache_.sources=a),this.updateSourceCaches_(a[0]),r=this,i=a[0],n=(e,r)=>{var i;if(this.middleware_=r,t||(this.cache_.sources=a),this.updateSourceCaches_(e),this.src_(e))return a.length>1?this.handleSrc_(a.slice(1)):(this.changingSrc_=!1,this.setTimeout(function(){this.error({code:4,message:this.options_.notSupportedMessage})},0),void this.triggerReady());i=this.tech_,r.forEach(e=>e.setTech&&e.setTech(i))},r.setTimeout(()=>(function e(t={},r=[],i,n,a=[],s=!1){let[o,...l]=r;if("string"==typeof o)e(t,iU[o],i,n,a,s);else if(o){let r=function(e,t){let r=iF[e.id()],i=null;if(null==r)return i=t(e),iF[e.id()]=[[t,i]],i;for(let e=0;e<r.length;e++){let[n,a]=r[e];n===t&&(i=a)}return null===i&&(i=t(e),r.push([t,i])),i}(n,o);if(!r.setSource)return a.push(r),e(t,l,i,n,a,s);r.setSource(Object.assign({},t),function(o,c){if(o)return e(t,l,i,n,a,s);a.push(r),e(c,t.type===c.type?l:iU[c.type],i,n,a,s)})}else l.length?e(t,l,i,n,a,s):s?i(t,a):e(t,iU["*"],i,n,a,!0)})(i,iU[i.type],n,r),1),a.length>1){let e=()=>{this.error(null),this.handleSrc_(a.slice(1),!0)},t=()=>{this.off("error",e)};this.one("error",e),this.one("playing",t),this.resetRetryOnError_=()=>{this.off("error",e),this.off("playing",t)}}}src(e){return this.handleSrc_(e,!1)}src_(e){let t=this.selectSource([e]);return!t||(r0(t.tech,this.techName_)?this.ready(function(){this.tech_.constructor.prototype.hasOwnProperty("setSource")?this.techCall_("setSource",e):this.techCall_("src",e.src),this.changingSrc_=!1},!0):(this.changingSrc_=!0,this.loadTech_(t.tech,t.source),this.tech_.ready(()=>{this.changingSrc_=!1})),!1)}addSourceElement(e,t){return!!this.tech_&&this.tech_.addSourceElement(e,t)}removeSourceElement(e){return!!this.tech_&&this.tech_.removeSourceElement(e)}load(){this.tech_&&this.tech_.vhs?this.src(this.currentSource()):this.techCall_("load")}reset(){this.paused()?this.doReset_():is(this.play().then(()=>this.doReset_()))}doReset_(){this.tech_&&this.tech_.clearTracks("text"),this.removeClass("vjs-playing"),this.addClass("vjs-paused"),this.resetCache_(),this.poster(""),this.loadTech_(this.options_.techOrder[0],null),this.techCall_("reset"),this.resetControlBarUI_(),this.error(null),this.titleBar&&this.titleBar.update({title:void 0,description:void 0}),r$(this)&&this.trigger("playerreset")}resetControlBarUI_(){this.resetProgressBar_(),this.resetPlaybackRate_(),this.resetVolumeBar_()}resetProgressBar_(){this.currentTime(0);let{currentTimeDisplay:e,durationDisplay:t,progressControl:r,remainingTimeDisplay:i}=this.controlBar||{},{seekBar:n}=r||{};e&&e.updateContent(),t&&t.updateContent(),i&&i.updateContent(),n&&(n.update(),n.loadProgressBar&&n.loadProgressBar.update())}resetPlaybackRate_(){this.playbackRate(this.defaultPlaybackRate()),this.handleTechRateChange_()}resetVolumeBar_(){this.volume(1),this.trigger("volumechange")}currentSources(){let e=this.currentSource(),t=[];return 0!==Object.keys(e).length&&t.push(e),this.cache_.sources||t}currentSource(){return this.cache_.source||{}}currentSrc(){return this.currentSource()&&this.currentSource().src||""}currentType(){return this.currentSource()&&this.currentSource().type||""}preload(e){if(void 0!==e){this.techCall_("setPreload",e),this.options_.preload=e;return}return this.techGet_("preload")}autoplay(e){let t;if(void 0===e)return this.options_.autoplay||!1;"string"==typeof e&&/(any|play|muted)/.test(e)||!0===e&&this.options_.normalizeAutoplay?(this.options_.autoplay=e,this.manualAutoplay_("string"==typeof e?e:"play"),t=!1):e?this.options_.autoplay=!0:this.options_.autoplay=!1,t=void 0===t?this.options_.autoplay:t,this.tech_&&this.techCall_("setAutoplay",t)}playsinline(e){return void 0!==e&&(this.techCall_("setPlaysinline",e),this.options_.playsinline=e),this.techGet_("playsinline")}loop(e){if(void 0!==e){this.techCall_("setLoop",e),this.options_.loop=e;return}return this.techGet_("loop")}poster(e){if(void 0===e)return this.poster_;e||(e=""),e!==this.poster_&&(this.poster_=e,this.techCall_("setPoster",e),this.isPosterFromTech_=!1,this.trigger("posterchange"))}handleTechPosterChange_(){if((!this.poster_||this.options_.techCanOverridePoster)&&this.tech_&&this.tech_.poster){let e=this.tech_.poster()||"";e!==this.poster_&&(this.poster_=e,this.isPosterFromTech_=!0,this.trigger("posterchange"))}}
142controls(e){if(void 0===e)return!!this.controls_;e=!!e,this.controls_!==e&&(this.controls_=e,this.usingNativeControls()&&this.techCall_("setControls",e),this.controls_?(this.removeClass("vjs-controls-disabled"),this.addClass("vjs-controls-enabled"),this.trigger("controlsenabled"),this.usingNativeControls()||this.addTechControlsListeners_()):(this.removeClass("vjs-controls-enabled"),this.addClass("vjs-controls-disabled"),this.trigger("controlsdisabled"),this.usingNativeControls()||this.removeTechControlsListeners_()))}usingNativeControls(e){if(void 0===e)return!!this.usingNativeControls_;e=!!e,this.usingNativeControls_!==e&&(this.usingNativeControls_=e,this.usingNativeControls_?(this.addClass("vjs-using-native-controls"),this.trigger("usingnativecontrols")):(this.removeClass("vjs-using-native-controls"),this.trigger("usingcustomcontrols")))}error(e){if(void 0===e)return this.error_||null;if(ts("beforeerror").forEach(t=>{let r=t(this,e);tb(r)&&!Array.isArray(r)||"string"==typeof r||"number"==typeof r||null===r?e=r:this.log.error("please return a value that MediaError expects in beforeerror hooks")}),this.options_.suppressNotSupportedError&&e&&4===e.code){let t=function(){this.error(e)};this.options_.suppressNotSupportedError=!1,this.any(["click","touchstart"],t),this.one("loadstart",function(){this.off(["click","touchstart"],t)});return}if(null===e){this.error_=null,this.removeClass("vjs-error"),this.errorDisplay&&this.errorDisplay.close();return}this.error_=new ii(e),this.addClass("vjs-error"),tp.error(`(CODE:${this.error_.code} ${ii.errorTypes[this.error_.code]})`,this.error_.message,this.error_),this.trigger("error"),ts("error").forEach(e=>e(this,this.error_))}reportUserActivity(e){this.userActivity_=!0}userActive(e){if(void 0===e)return this.userActive_;if((e=!!e)!==this.userActive_){if(this.userActive_=e,this.userActive_){this.userActivity_=!0,this.removeClass("vjs-user-inactive"),this.addClass("vjs-user-active"),this.trigger("useractive");return}this.tech_&&this.tech_.one("mousemove",function(e){e.stopPropagation(),e.preventDefault()}),this.userActivity_=!1,this.removeClass("vjs-user-active"),this.addClass("vjs-user-inactive"),this.trigger("userinactive")}}listenForUserActivity_(){let e,t,r,i,n=rD(this,this.reportUserActivity),a=function(t){n(),this.clearInterval(e)};this.on("mousedown",function(){n(),this.clearInterval(e),e=this.setInterval(n,250)}),this.on("mousemove",function(e){(e.screenX!==t||e.screenY!==r)&&(t=e.screenX,r=e.screenY,n())}),this.on("mouseup",a),this.on("mouseleave",a);let s=this.getChild("controlBar");!s||tH||tE||(s.on("mouseenter",function(e){0!==this.player().options_.inactivityTimeout&&(this.player().cache_.inactivityTimeout=this.player().options_.inactivityTimeout),this.player().options_.inactivityTimeout=0}),s.on("mouseleave",function(e){this.player().options_.inactivityTimeout=this.player().cache_.inactivityTimeout})),this.on("keydown",n),this.on("keyup",n),this.setInterval(function(){if(!this.userActivity_)return;this.userActivity_=!1,this.userActive(!0),this.clearTimeout(i);let e=this.options_.inactivityTimeout;e<=0||(i=this.setTimeout(function(){this.userActivity_||this.userActive(!1)},e))},250)}playbackRate(e){return void 0!==e?void this.techCall_("setPlaybackRate",e):this.tech_&&this.tech_.featuresPlaybackRate?this.cache_.lastPlaybackRate||this.techGet_("playbackRate"):1}defaultPlaybackRate(e){return void 0!==e?this.techCall_("setDefaultPlaybackRate",e):this.tech_&&this.tech_.featuresPlaybackRate?this.techGet_("defaultPlaybackRate"):1}isAudio(e){if(void 0!==e){this.isAudio_=!!e;return}return!!this.isAudio_}updatePlayerHeightOnAudioOnlyMode_(){let e=this.getChild("ControlBar");e&&this.audioOnlyCache_.controlBarHeight!==e.currentHeight()&&(this.audioOnlyCache_.controlBarHeight=e.currentHeight(),this.height(this.audioOnlyCache_.controlBarHeight))}enableAudioOnlyUI_(){this.addClass("vjs-audio-only-mode");let e=this.children(),t=this.getChild("ControlBar"),r=t&&t.currentHeight();e.forEach(e=>{e!==t&&e.el_&&!e.hasClass("vjs-hidden")&&(e.hide(),this.audioOnlyCache_.hiddenChildren.push(e))}
142),this.audioOnlyCache_.playerHeight=this.currentHeight(),this.audioOnlyCache_.controlBarHeight=r,this.on("playerresize",this.boundUpdatePlayerHeightOnAudioOnlyMode_),this.height(r),this.trigger("audioonlymodechange")}disableAudioOnlyUI_(){this.removeClass("vjs-audio-only-mode"),this.off("playerresize",this.boundUpdatePlayerHeightOnAudioOnlyMode_),this.audioOnlyCache_.hiddenChildren.forEach(e=>e.show()),this.height(this.audioOnlyCache_.playerHeight),this.trigger("audioonlymodechange")}audioOnlyMode(e){if("boolean"!=typeof e||e===this.audioOnlyMode_)return this.audioOnlyMode_;if(this.audioOnlyMode_=e,e){let e=[];return this.isInPictureInPicture()&&e.push(this.exitPictureInPicture()),this.isFullscreen()&&e.push(this.exitFullscreen()),this.audioPosterMode()&&e.push(this.audioPosterMode(!1)),Promise.all(e).then(()=>this.enableAudioOnlyUI_())}return Promise.resolve().then(()=>this.disableAudioOnlyUI_())}enablePosterModeUI_(){(this.tech_&&this.tech_).hide(),this.addClass("vjs-audio-poster-mode"),this.trigger("audiopostermodechange")}disablePosterModeUI_(){(this.tech_&&this.tech_).show(),this.removeClass("vjs-audio-poster-mode"),this.trigger("audiopostermodechange")}audioPosterMode(e){return"boolean"!=typeof e||e===this.audioPosterMode_?this.audioPosterMode_:(this.audioPosterMode_=e,e)?this.audioOnlyMode()?this.audioOnlyMode(!1).then(()=>{this.enablePosterModeUI_()}):Promise.resolve().then(()=>{this.enablePosterModeUI_()}):Promise.resolve().then(()=>{this.disablePosterModeUI_()})}addTextTrack(e,t,r){if(this.tech_)return this.tech_.addTextTrack(e,t,r)}addRemoteTextTrack(e,t){if(this.tech_)return this.tech_.addRemoteTextTrack(e,t)}removeRemoteTextTrack(e={}){let{track:t}=e;if(t||(t=e),this.tech_)return this.tech_.removeRemoteTextTrack(t)}getVideoPlaybackQuality(){return this.techGet_("getVideoPlaybackQuality")}videoWidth(){return this.tech_&&this.tech_.videoWidth&&this.tech_.videoWidth()||0}videoHeight(){return this.tech_&&this.tech_.videoHeight&&this.tech_.videoHeight()||0}language(e){if(void 0===e)return this.language_;this.language_!==String(e).toLowerCase()&&(this.language_=String(e).toLowerCase(),r$(this)&&this.trigger("languagechange"))}languages(){return tx(am.prototype.options_.languages,this.languages_)}toJSON(){let e=tx(this.options_),t=e.tracks;e.tracks=[];for(let r=0;r<t.length;r++){let i=t[r];(i=tx(i)).player=void 0,e.tracks[r]=i}return e}createModal(e,t){(t=t||{}).content=e||"";let r=new iu(this,t);return this.addChild(r),r.on("dispose",()=>{this.removeChild(r)}),r.open(),r}updateCurrentBreakpoint_(){if(!this.responsive())return;let e=this.currentBreakpoint(),t=this.currentWidth();for(let r=0;r<ah.length;r++){let i=ah[r];if(t<=this.breakpoints_[i]){if(e===i)return;e&&this.removeClass(af[e]),this.addClass(af[i]),this.breakpoint_=i;break}}}removeCurrentBreakpoint_(){let e=this.currentBreakpointClass();this.breakpoint_="",e&&this.removeClass(e)}breakpoints(e){return void 0===e||(this.breakpoint_="",this.breakpoints_=Object.assign({},ag,e),this.updateCurrentBreakpoint_()),Object.assign(this.breakpoints_)}responsive(e){if(void 0===e)return this.responsive_;e=!!e;let t=this.responsive_;if(e!==t)return this.responsive_=e,e?(this.on("playerresize",this.boundUpdateCurrentBreakpoint_),this.updateCurrentBreakpoint_()):(this.off("playerresize",this.boundUpdateCurrentBreakpoint_),this.removeCurrentBreakpoint_()),e}currentBreakpoint(){return this.breakpoint_}currentBreakpointClass(){return af[this.breakpoint_]||""}loadMedia(e,t){if(!e||"object"!=typeof e)return;let r=this.crossOrigin();this.reset(),this.cache_.media=tx(e);let{artist:i,artwork:n,description:a,poster:s,src:o,textTracks:l,title:c}=this.cache_.media;!n&&s&&(this.cache_.media.artwork=[{src:s,type:iX(s)}]),r&&this.crossOrigin(r),o&&this.src(o),s&&this.poster(s),Array.isArray(l)&&l.forEach(e=>this.addRemoteTextTrack(e,!1)),this.titleBar&&this.titleBar.update({title:c,description:a||i||""}),this.ready(t)}getMedia(){if(!this.cache_.media){let e=this.poster(),t={src:this.currentSources(),textTracks:Array.prototype.map.call(this.remoteTextTracks(),e=>({kind:e.kind,label:e.label,language:e.language,src:e.src}))};return e&&(t.poster=e,t.artwork=[{src:t.poster,type:iX(t.poster)}]),t}return tx(this.cache_.media)}static getTagSettings(e){let t={sources:[],tracks:[]},r=t8(e),i=r["data-setup"];if(t1(e,"vjs-fill")&&(r.fill=!0),t1(e,"vjs-fluid")&&(r.fluid=!0),null!==i)try{Object.assign(r,JSON.parse(i||"{}"))}catch(e){tp.error("data-setup",e)}if(Object.assign(t,r),e.hasChildNodes()){let r=e.childNodes;for(let e=0,i=r.length;e<i;e++){let i=r[e],n=i.nodeName.toLowerCase();"source"===n?t.sources.push(t8(i)):"track"===n&&t.tracks.push(t8(i))}}return t}debug(e){if(void 0===e)return this.debugEnabled_;e?(this.trigger("debugon"),this.previousLogLevel_=this.log.level,this.log.level("debug"),this.debugEnabled_=!0):(this.trigger("debugoff"),this.log.level(this.previousLogLevel_),this.previousLogLevel_=void 0,this.debugEnabled_=!1)}playbackRates(e){return void 0===e?this.cache_.playbackRates:Array.isArray(e)?void(e.every(e=>"number"==typeof e)&&(this.cache_.playbackRates=e,this.trigger("playbackrateschange"))):void 0}}am.prototype.videoTracks=()=>{},am.prototype.audioTracks=()=>{},am.prototype.textTracks=()=>{},am.prototype.remoteTextTracks=()=>{},am.prototype.remoteTextTrackEls=()=>{}
142,iM.names.forEach(function(e){let t=iM[e];am.prototype[t.getterName]=function(){return this.tech_?this.tech_[t.getterName]():(this[t.privateName]=this[t.privateName]||new t.ListClass,this[t.privateName])}}),am.prototype.crossorigin=am.prototype.crossOrigin,am.players={};let ay=h.default.navigator;am.prototype.options_={techOrder:iB.defaultTechOrder_,html5:{},enableSourceset:!0,inactivityTimeout:2e3,playbackRates:[],liveui:!1,children:["mediaLoader","posterImage","titleBar","textTrackDisplay","loadingSpinner","bigPlayButton","liveTracker","controlBar","errorDisplay","textTrackSettings","resizeManager"],language:ay&&(ay.languages&&ay.languages[0]||ay.userLanguage||ay.language)||"en",languages:{},notSupportedMessage:"No compatible source was found for this media.",normalizeAutoplay:!1,fullscreen:{options:{navigationUI:"hide"}},breakpoints:{},responsive:!1,audioOnlyMode:!1,audioPosterMode:!1,spatialNavigation:{enabled:!1,horizontalSeek:!1},enableSmoothSeeking:!1,disableSeekWhileScrubbingOnMobile:!1,disableSeekWhileScrubbingOnSTV:!1},ad.forEach(function(e){am.prototype[`handleTech${rZ(e)}_`]=function(){return this.trigger(e)}}),r2.registerComponent("Player",am);let ab="plugin",av="activePlugins_",ax={},a_=e=>ax.hasOwnProperty(e)?ax[e]:void 0,aw=(e,t)=>{e[av]=e[av]||{},e[av][t]=!0},aT=(e,t,r)=>{let i=(r?"before":"")+"pluginsetup";e.trigger(i,t),e.trigger(i+":"+t.name,t)},aS=function(e,t){let r=function(){aT(this,{name:e,plugin:t,instance:null},!0);let r=t.apply(this,arguments);return aw(this,e),aT(this,{name:e,plugin:t,instance:r}),r};return Object.keys(t).forEach(function(e){r[e]=t[e]}),r},aC=(e,t)=>(t.prototype.name=e,function(...r){aT(this,{name:e,plugin:t,instance:null},!0);let i=new t(...[this,...r]);return this[e]=()=>i,aT(this,i.getEventHash()),i});class aE{constructor(e){if(this.constructor===aE)throw Error("Plugin must be sub-classed; not directly instantiated.");this.player=e,this.log||(this.log=this.player.log.createLogger(this.name)),rK(this),delete this.trigger,rQ(this,this.constructor.defaultState),aw(e,this.name),this.dispose=this.dispose.bind(this),e.on("dispose",this.dispose)}version(){return this.constructor.VERSION}getEventHash(e={}){return e.name=this.name,e.plugin=this.constructor,e.instance=this,e}trigger(e,t={}){return rj(this.eventBusEl_,e,this.getEventHash(t))}handleStateChanged(e){}dispose(){let{name:e,player:t}=this;this.trigger("dispose"),this.off(),t.off("dispose",this.dispose),t[av][e]=!1,this.player=this.state=null,t[e]=aC(e,ax[e])}static isBasic(e){let t="string"==typeof e?a_(e):e;return"function"==typeof t&&!aE.prototype.isPrototypeOf(t.prototype)}static registerPlugin(e,t){if("string"!=typeof e)throw Error(`Illegal plugin name, "${e}", must be a string, was ${typeof e}.`);if(ax.hasOwnProperty(e))tp.warn(`A plugin named "${e}" already exists. You may want to avoid re-registering plugins!`);else if(am.prototype.hasOwnProperty(e))throw Error(`Illegal plugin name, "${e}", cannot share a name with an existing player method!`);if("function"!=typeof t)throw Error(`Illegal plugin for "${e}", must be a function, was ${typeof t}.`);return ax[e]=t,e!==ab&&(aE.isBasic(t)?am.prototype[e]=aS(e,t):am.prototype[e]=aC(e,t)),t}static deregisterPlugin(e){if(e===ab)throw Error("Cannot de-register base plugin.");ax.hasOwnProperty(e)&&(delete ax[e],delete am.prototype[e])}static getPlugins(e=Object.keys(ax)){let t;return e.forEach(e=>{let r=a_(e);r&&((t=t||{})[e]=r)}),t}static getPluginVersion(e){let t=a_(e);return t&&t.VERSION||""}}function ak(e,t,r,i){var n;let a;return n=`${t} is deprecated and will be removed in ${e}.0; please use ${r} instead.`,a=!1,function(...e){return a||tp.warn(n),a=!0,i.apply(this,e)}}aE.getPlugin=a_,aE.BASE_PLUGIN_NAME=ab,aE.registerPlugin(ab,aE),am.prototype.usingPlugin=function(e){return!!this[av]&&!0===this[av][e]},am.prototype.hasPlugin=function(e){return!!ax.hasOwnProperty(e)};let aN=e=>0===e.indexOf("#")?e.slice(1):e;function aI(e,t,r){let i=aI.getPlayer(e);if(i)return t&&tp.warn(`Player "${e}" is already initialised. Options will not be applied.`),r&&i.ready(r),i;let n="string"==typeof e?rd("#"+aN(e)):e;if(!tK(n))throw TypeError("The element or ID supplied is not val
142id. (videojs)");let a="getRootNode"in n&&n.getRootNode()instanceof h.default.ShadowRoot?n.getRootNode():n.ownerDocument.body;return n.ownerDocument.defaultView&&a.contains(n)||tp.warn("The element supplied is not included in the DOM"),!0===(t=t||{}).restoreEl&&(t.restoreEl=(n.parentNode&&n.parentNode.hasAttribute&&n.parentNode.hasAttribute("data-vjs-player")?n.parentNode:n).cloneNode(!0)),ts("beforesetup").forEach(e=>{let r=e(n,tx(t));!tb(r)||Array.isArray(r)?tp.error("please return an object in beforesetup hooks"):t=tx(t,r)}),i=new(r2.getComponent("Player"))(n,t,r),ts("setup").forEach(e=>e(i)),i}if(aI.hooks_=ta,aI.hooks=ts,aI.hook=function(e,t){ts(e,t)},aI.hookOnce=function(e,t){ts(e,[].concat(t).map(t=>{let r=(...i)=>(to(e,r),t(...i));return r}))},aI.removeHook=to,!0!==h.default.VIDEOJS_NO_DYNAMIC_STYLE&&tX()){let e=rd(".vjs-styles-defaults");if(!e){e=rx("vjs-styles-defaults");let t=rd("head");t&&t.insertBefore(e,t.firstChild),r_(e,`
143      .video-js {
144        width: 300px;
145        height: 150px;
146      }
147
148      .vjs-fluid:not(.vjs-audio-only-mode) {
149        padding-top: 56.25%
150      }
151    `)}}rb(1,aI),aI.VERSION=tn,aI.options=am.prototype.options_,aI.getPlayers=()=>am.players,aI.getPlayer=e=>{let t,r=am.players;if("string"==typeof e){let i=aN(e),n=r[i];if(n)return n;t=rd("#"+i)}else t=e;if(tK(t)){let{player:e,playerId:i}=t;if(e||r[i])return e||r[i]}},aI.getAllPlayers=()=>Object.keys(am.players).map(e=>am.players[e]).filter(Boolean),aI.players=am.players,aI.getComponent=r2.getComponent,aI.registerComponent=(e,t)=>(iB.isTech(t)&&tp.warn(`The ${e} tech was registered as a component. It should instead be registered using videojs.registerTech(name, tech)`),r2.registerComponent.call(r2,e,t)),aI.getTech=iB.getTech,aI.registerTech=iB.registerTech,aI.use=function(e,t){iU[e]=iU[e]||[],iU[e].push(t)},Object.defineProperty(aI,"middleware",{value:{},writeable:!1,enumerable:!0}),Object.defineProperty(aI.middleware,"TERMINATOR",{value:i$,writeable:!1,enumerable:!0}),aI.browser=tV,aI.obj=tT,aI.mergeOptions=ak(9,"videojs.mergeOptions","videojs.obj.merge",tx),aI.defineLazyProperty=ak(9,"videojs.defineLazyProperty","videojs.obj.defineLazyProperty",tw),aI.bind=ak(9,"videojs.bind","native Function.prototype.bind",rD),aI.registerPlugin=aE.registerPlugin,aI.deregisterPlugin=aE.deregisterPlugin,aI.plugin=(e,t)=>(tp.warn("videojs.plugin() is deprecated; use videojs.registerPlugin() instead"),aE.registerPlugin(e,t)),aI.getPlugins=aE.getPlugins,aI.getPlugin=aE.getPlugin,aI.getPluginVersion=aE.getPluginVersion,aI.addLanguage=function(e,t){return e=(""+e).toLowerCase(),aI.options.languages=tx(aI.options.languages,{[e]:t}),aI.options.languages[e]},aI.log=tp,aI.createLogger=th,aI.time=it,aI.createTimeRange=ak(9,"videojs.createTimeRange","videojs.time.createTimeRanges",r3),aI.createTimeRanges=ak(9,"videojs.createTimeRanges","videojs.time.createTimeRanges",r3),aI.formatTime=ak(9,"videojs.formatTime","videojs.time.formatTime",ie),aI.setFormatTime=ak(9,"videojs.setFormatTime","videojs.time.setFormatTime",r7),aI.resetFormatTime=ak(9,"videojs.resetFormatTime","videojs.time.resetFormatTime",r9),aI.parseUrl=ak(9,"videojs.parseUrl","videojs.url.parseUrl",iS),aI.isCrossOrigin=ak(9,"videojs.isCrossOrigin","videojs.url.isCrossOrigin",ik),aI.EventTarget=rU,aI.any=rO,aI.on=rI,aI.one=rP,aI.off=rA,aI.trigger=rj,aI.xhr=g.default,aI.TrackList=id,aI.TextTrack=ij,aI.TextTrackList=iy,aI.AudioTrack=iP,aI.AudioTrackList=ih,aI.VideoTrack=iO,aI.VideoTrackList=im,["isEl","isTextNode","createEl","hasClass","addClass","removeClass","toggleClass","setAttributes","getAttributes","emptyEl","appendContent","insertContent"].forEach(e=>{aI[e]=function(){return tp.warn(`videojs.${e}() is deprecated; use videojs.dom.${e}() instead`),rg[e].apply(null,arguments)}}),aI.computedStyle=ak(9,"videojs.computedStyle","videojs.dom.computedStyle",rh),aI.dom=rg,aI.fn=rB,aI.num=no,aI.str=r1,aI.url=iN,aI.Error={NetworkBadStatus:"networkbadstatus",NetworkRequestFailed:"networkrequestfailed",NetworkRequestAborted:"networkrequestaborted",NetworkRequestTimeout:"networkrequesttimeout",NetworkBodyParserFailed:"networkbodyparserfailed",StreamingHlsPlaylistParserError:"streaminghlsplaylistparsererror",StreamingDashManifestParserError:"streamingdashmanifestparsererror",StreamingContentSteeringParserError:"streamingcontentsteeringparsererror",StreamingVttParserError:"streamingvttparsererror",StreamingFailedToSelectNextSegment:"streamingfailedtoselectnextsegment",StreamingFailedToDecryptSegment:"streamingfailedtodecryptsegment",StreamingFailedToTransmuxSegment:"streamingfailedtotransmuxsegment",StreamingFailedToAppendSegment:"streamingfailedtoappendsegment",StreamingCodecsChangeError:"streamingcodecschangeerror"};class aA{constructor(e){let t=this;return t.id=e.id,t.label=t.id,t.width=e.width,t.height=e.height,t.bitrate=e.bandwidth,t.frameRate=e.frameRate,t.enabled_=e.enabled,Object.defineProperty(t,"enabled",{get:()=>t.enabled_(),set(e){t.enabled_(e)}}),t}}class aj extends aI.EventTarget{constructor(){super();let e=this;return e.levels_=[],e.selectedIndex_=-1,Object.defineProperty(e,"selectedIndex",{get:()=>e.selectedIndex_}),Object.defineProperty(e,"length",{get:()=>e.levels_.length}),e[Symbol.iterator]=()=>e.levels_.values(),e}addQualityLevel(e){let t=this.getQualityLevelById(e.id);if(t)return t;let r=this.levels_.length;return t=new aA(e),""+r in this||Object.defineProperty(this,r,{get(){return this.levels_[r]}}),this.levels_.push(t),this.trigger({qualityLevel:t,type:"addqualitylevel"}),t}removeQualityLevel(e){let t=null;for(let r=0,i=this.length;r<i;r++)if(this[r]===e){t=this.levels_.splice(r,1)[0],this.selectedIndex_===r?this.selectedIndex_=-1:this.selectedIndex_>r&&this.selectedIndex_--;break}return t&&this.trigger({qualityLevel:e,type:"removequalitylevel"}),t}getQualityLevelById(e){for(let t=0,r=this.length;t<r;t++){let r=this[t];if(r.id===e)return r}return null}dispose(){this.selectedIndex_=-1,this.levels_.length=0}}for(let e in aj.prototype.allowedEvents_={change:"change",addqualitylevel:"addqualitylevel",removequalitylevel:"removequalitylevel"},aj.prototype.allowedEvents_)aj.prototype["on"+e]=null;var aP="4.1.0";let aO=function(e,t){let r=e.qualityLevels,i=new aj,n=function(){i.dispose(),e.qualityLevels=r,e.off("dispose",n)};return e.on("dispose",n),e.qualityLevels=()=>
151i,e.qualityLevels.VERSION=aP,i},aL=function(e){return aO(this,aI.obj.merge({},e))};aI.registerPlugin("qualityLevels",aL),aL.VERSION=aP;let aD=(e,t)=>t&&t.responseURL&&e!==t.responseURL?t.responseURL:e,aR=e=>aI.log.debug?aI.log.debug.bind(aI,"VHS:",`${e} >`):function(){};function aM(...e){let t=aI.obj||aI;return(t.merge||t.mergeOptions).apply(t,e)}function aB(...e){let t=aI.time||aI;return(t.createTimeRanges||t.createTimeRanges).apply(t,e)}let aU=1/30,aF=1/30*3,a$=function(e,t){let r,i=[];if(e&&e.length)for(r=0;r<e.length;r++)t(e.start(r),e.end(r))&&i.push([e.start(r),e.end(r)]);return aB(i)},az=function(e,t){return a$(e,function(e,r){return e-aF<=t&&r+aF>=t})},aq=function(e,t){return a$(e,function(e){return e-aU>=t})},aH=function(e){if(e.length<2)return aB();let t=[];for(let r=1;r<e.length;r++){let i=e.end(r-1),n=e.start(r);t.push([i,n])}return aB(t)},aW=function(e,t){let r=null,i=null,n=0,a=[],s=[];if(!e||!e.length||!t||!t.length)return aB();let o=e.length;for(;o--;)a.push({time:e.start(o),type:"start"}),a.push({time:e.end(o),type:"end"});for(o=t.length;o--;)a.push({time:t.start(o),type:"start"}),a.push({time:t.end(o),type:"end"});for(a.sort(function(e,t){return e.time-t.time}),o=0;o<a.length;o++)"start"===a[o].type?2==++n&&(r=a[o].time):"end"===a[o].type&&1==--n&&(i=a[o].time),null!==r&&null!==i&&(s.push([r,i]),r=null,i=null);return aB(s)},aV=e=>{let t=[];if(!e||!e.length)return"";for(let r=0;r<e.length;r++)t.push(e.start(r)+" => "+e.end(r));return t.join(", ")},aG=e=>{let t=[];for(let r=0;r<e.length;r++)t.push({start:e.start(r),end:e.end(r)});return t},aX=function(e,t){if(e===t)return!1;if(!e&&t||!t&&e||e.length!==t.length)return!0;for(let r=0;r<e.length;r++)if(e.start(r)!==t.start(r)||e.end(r)!==t.end(r))return!0;return!1},aK=function(e){if(e&&e.length&&e.end)return e.end(e.length-1)},aY=function(e,t){let r=0;if(!e||!e.length)return r;for(let i=0;i<e.length;i++){let n=e.start(i),a=e.end(i);if(!(t>a)){if(t>n&&t<=a){r+=a-t;continue}r+=a-n}}return r},aQ=(e,t)=>{if(!t.preload)return t.duration;let r=0;return(t.parts||[]).forEach(function(e){r+=e.duration}),(t.preloadHints||[]).forEach(function(t){"PART"===t.type&&(r+=e.partTargetDuration)}),r},aJ=e=>(e.segments||[]).reduce((e,t,r)=>(t.parts?t.parts.forEach(function(i,n){e.push({duration:i.duration,segmentIndex:r,partIndex:n,part:i,segment:t})}):e.push({duration:t.duration,segmentIndex:r,partIndex:null,segment:t,part:null}),e),[]),aZ=e=>{let t=e.segments&&e.segments.length&&e.segments[e.segments.length-1];return t&&t.parts||[]},a0=({preloadSegment:e})=>{if(!e)return;let{parts:t,preloadHints:r}=e,i=(r||[]).reduce((e,t)=>e+ +("PART"===t.type),0);return i+(t&&t.length?t.length:0)},a1=(e,t)=>{if(t.endList)return 0;if(e&&e.suggestedPresentationDelay)return e.suggestedPresentationDelay;let r=aZ(t).length>0;return r&&t.serverControl&&t.serverControl.partHoldBack?t.serverControl.partHoldBack:r&&t.partTargetDuration?3*t.partTargetDuration:t.serverControl&&t.serverControl.holdBack?t.serverControl.holdBack:t.targetDuration?3*t.targetDuration:0},a2=function(e,t){let r=0,i=t-e.mediaSequence,n=e.segments[i];if(n){if(void 0!==n.start)return{result:n.start,precise:!0};if(void 0!==n.end)return{result:n.end-n.duration,precise:!0}}for(;i--;){if(void 0!==(n=e.segments[i]).end)return{result:r+n.end,precise:!0};if(r+=aQ(e,n),void 0!==n.start)return{result:r+n.start,precise:!0}}return{result:r,precise:!1}},a4=function(e,t){let r,i=0,n=t-e.mediaSequence;for(;n<e.segments.length;n++){if(void 0!==(r=e.segments[n]).start)return{result:r.start-i,precise:!0};if(i+=aQ(e,r),void 0!==r.end)return{result:r.end-i,precise:!0}}return{result:-1,precise:!1}},a5=function(e,t,r){if(void 0===t&&(t=e.mediaSequence+e.segments.length),t<e.mediaSequence)return 0;let i=a2(e,t);if(i.precise)return i.result;let n=a4(e,t);return n.precise?n.result:i.result+r},a3=function(e,t,r){if(!e)return 0;if("number"!=typeof r&&(r=0),void 0===t){if(e.totalDuration)return e.totalDuration;if(!e.endList)return h.default.Infinity}return a5(e,t,r)},a8=function({defaultDuration:e,durationList:t,startIndex:r,endIndex:i}){let n=0;if(r>i&&([r,i]=[i,r]),r<0){for(let t=r;t<Math.min(0,i);t++)n+=e;r=0}for(let e=r;e<i;e++)n+=t[e].duration;return n},a6=function(e,t,r,i){if(!e||!e.segments)return null;if(e.endList)return a3(e);if(null===t)return null;t=t||0;let n=a5(e,e.mediaSequence+e.segments.length,t);return r&&(n-=i="number"==typeof i?i:a1(null,e)),Math.max(0,n)},a7=function(e){return e.excludeUntil&&e.excludeUntil>Date.now()},a9=function(e){return e.excludeUntil&&e.excludeUntil===1/0},se=function(e){let t=a7(e);return!e.disabled&&!t},st=function(e,t){return t.attributes&&t.attributes[e]},sr=(e,t)=>
151{if(1===e.playlists.length)return!0;let r=t.attributes.BANDWIDTH||Number.MAX_VALUE;return 0===e.playlists.filter(e=>!!se(e)&&(e.attributes.BANDWIDTH||0)<r).length},si=(e,t)=>(!!e||!!t)&&(!!e||!t)&&(!e||!!t)&&(e===t||!!e.id&&!!t.id&&e.id===t.id||!!e.resolvedUri&&!!t.resolvedUri&&e.resolvedUri===t.resolvedUri||!!e.uri&&!!t.uri&&e.uri===t.uri),sn=function(e,t){let r=e&&e.mediaGroups&&e.mediaGroups.AUDIO||{},i=!1;for(let e in r){for(let n in r[e])if(i=t(r[e][n]))break;if(i)break}return!!i},sa=e=>{if(!e||!e.playlists||!e.playlists.length)return sn(e,e=>e.playlists&&e.playlists.length||e.uri);for(let t=0;t<e.playlists.length;t++){let r=e.playlists[t],i=r.attributes&&r.attributes.CODECS;if(!(i&&i.split(",").every(e=>M(e)))&&!sn(e,e=>si(r,e)))return!1}return!0};var ss={liveEdgeDelay:a1,duration:a3,seekable:function(e,t,r){let i=t||0,n=a6(e,t,!0,r);return null===n?aB():(n<i&&(n=i),aB(i,n))},getMediaInfoForTime:function({playlist:e,currentTime:t,startingSegmentIndex:r,startingPartIndex:i,startTime:n,exactManifestTimings:a}){let s=t-n,o=aJ(e),l=0;for(let e=0;e<o.length;e++){let t=o[e];if(r===t.segmentIndex&&("number"!=typeof i||"number"!=typeof t.partIndex||i===t.partIndex)){l=e;break}}if(s<0){if(l>0)for(let t=l-1;t>=0;t--){let r=o[t];if(s+=r.duration,a){if(s<0)continue}else if(s+aU<=0)continue;return{partIndex:r.partIndex,segmentIndex:r.segmentIndex,startTime:n-a8({defaultDuration:e.targetDuration,durationList:o,startIndex:l,endIndex:t})}}return{partIndex:o[0]&&o[0].partIndex||null,segmentIndex:o[0]&&o[0].segmentIndex||0,startTime:t}}if(l<0){for(let r=l;r<0;r++)if((s-=e.targetDuration)<0)return{partIndex:o[0]&&o[0].partIndex||null,segmentIndex:o[0]&&o[0].segmentIndex||0,startTime:t};l=0}for(let t=l;t<o.length;t++){let r=o[t];s-=r.duration;let i=r.duration>aU,c=0===s,u=i&&s+aU>=0;if(!c&&!u||t===o.length-1){if(a){if(s>0)continue}else if(s-aU>=0)continue;return{partIndex:r.partIndex,segmentIndex:r.segmentIndex,startTime:n+a8({defaultDuration:e.targetDuration,durationList:o,startIndex:l,endIndex:t})}}}return{segmentIndex:o[o.length-1].segmentIndex,partIndex:o[o.length-1].partIndex,startTime:t}},isEnabled:se,isDisabled:function(e){return e.disabled},isExcluded:a7,isIncompatible:a9,playlistEnd:a6,isAes:function(e){for(let t=0;t<e.segments.length;t++)if(e.segments[t].key)return!0;return!1},hasAttribute:st,estimateSegmentRequestTime:function(e,t,r,i=0){return st("BANDWIDTH",r)?(e*r.attributes.BANDWIDTH-8*i)/t:NaN},isLowestEnabledRendition:sr,isAudioOnly:sa,playlistMatch:si,segmentDurationWithParts:aQ};let{log:so}=aI,sl=(e,t)=>`${e}-${t}`,sc=(e,t,r)=>`placeholder-uri-${e}-${t}-${r}`,su=(e,t)=>{e.mediaGroups&&["AUDIO","SUBTITLES"].forEach(r=>{if(e.mediaGroups[r])for(let i in e.mediaGroups[r])for(let n in e.mediaGroups[r][i])t(e.mediaGroups[r][i][n],r,i,n)})},sd=({playlist:e,uri:t,id:r})=>{e.id=r,e.playlistErrors_=0,t&&(e.uri=t),e.attributes=e.attributes||{}},sp=(e,t,r=sc)=>{e.uri=t;for(let t=0;t<e.playlists.length;t++)if(!e.playlists[t].uri){let r=`placeholder-uri-${t}`;e.playlists[t].uri=r}let i=sa(e);su(e,(t,n,a,s)=>{if(!t.playlists||!t.playlists.length){if(i&&"AUDIO"===n&&!t.uri)for(let t=0;t<e.playlists.length;t++){let r=e.playlists[t];if(r.attributes&&r.attributes.AUDIO&&r.attributes.AUDIO===a)return}t.playlists=[y({},t)]}
151t.playlists.forEach(function(t,i){let o=r(n,a,s,t),l=sl(i,o);t.uri?t.resolvedUri=t.resolvedUri||v(e.uri,t.uri):(t.uri=0===i?o:l,t.resolvedUri=t.uri),t.id=t.id||l,t.attributes=t.attributes||{},e.playlists[t.id]=t,e.playlists[t.uri]=t})});let n=e.playlists.length;for(;n--;){let t=e.playlists[n];sd({playlist:t,id:sl(n,t.uri)}),t.resolvedUri=v(e.uri,t.uri),e.playlists[t.id]=t,e.playlists[t.uri]=t,t.attributes.BANDWIDTH||so.warn("Invalid playlist STREAM-INF detected. Missing BANDWIDTH attribute.")}su(e,t=>{t.uri&&(t.resolvedUri=v(e.uri,t.uri))})};class sh{constructor(){this.offset_=null,this.pendingDateRanges_=new Map,this.processedDateRanges_=new Map}setOffset(e=[]){if(null!==this.offset_||!e.length)return;let[t]=e;void 0!==t.programDateTime&&(this.offset_=t.programDateTime/1e3)}setPendingDateRanges(e=[]){if(!e.length)return;let[t]=e,r=t.startDate.getTime();this.trimProcessedDateRanges_(r),this.pendingDateRanges_=e.reduce((e,t)=>(e.set(t.id,t),e),new Map)}processDateRange(e){this.pendingDateRanges_.delete(e.id),this.processedDateRanges_.set(e.id,e)}getDateRangesToProcess(){if(null===this.offset_)return[];let e={},t=[];for(let r of(this.pendingDateRanges_.forEach((r,i)=>{if(!this.processedDateRanges_.has(i)&&(r.startTime=r.startDate.getTime()/1e3-this.offset_,r.processDateRange=()=>this.processDateRange(r),t.push(r),r.class))if(e[r.class]){let t=e[r.class].push(r);r.classListIndex=t-1}else e[r.class]=[r],r.classListIndex=0}),t)){let t=e[r.class]||[];r.endDate?r.endTime=r.endDate.getTime()/1e3-this.offset_:r.endOnNext&&t[r.classListIndex+1]?r.endTime=t[r.classListIndex+1].startTime:r.duration?r.endTime=r.startTime+r.duration:r.plannedDuration?r.endTime=r.startTime+r.plannedDuration:r.endTime=r.startTime}return t}trimProcessedDateRanges_(e){new Map(this.processedDateRanges_).forEach((t,r)=>{t.startDate.getTime()<e&&this.processedDateRanges_.delete(r)})}}let sf=({requestType:e,request:t,error:r,parseFailure:i})=>{let n=t.status<200||t.status>299,a=t.status>=400&&t.status<=499,s={uri:t.uri,requestType:e};return r&&a?(s.error=y({},r),s.errorType=aI.Error.NetworkRequestFailed):t.aborted?s.errorType=aI.Error.NetworkRequestAborted:t.timedout?s.errorType=aI.Error.NetworkRequestTimeout:(n&&!a||i)&&(s.errorType=i?aI.Error.NetworkBodyParserFailed:aI.Error.NetworkBadStatus,s.status=t.status,s.headers=t.headers),s},sg=aR("CodecUtils"),sm=function(e){let t=e.attributes||{};if(t.CODECS)return D(t.CODECS)},sy=(e,t)=>{let r=t.attributes||{};return e&&e.mediaGroups&&e.mediaGroups.AUDIO&&r.AUDIO&&e.mediaGroups.AUDIO[r.AUDIO]},sb=function(e){let t={};return e.forEach(({mediaType:e,type:r,details:i})=>{t[e]=t[e]||[],t[e].push(L(`${r}${i}`))}),Object.keys(t).forEach(function(e){if(t[e].length>1){sg(`multiple ${e} codecs found as attributes: ${t[e].join(", ")}. Setting playlist codecs to null so that we wait for mux.js to probe segments for real codecs.`),t[e]=null;return}t[e]=t[e][0]}),t},sv=function(e){let t=0;return e.audio&&t++,e.video&&t++,t},sx=function(e,t){let r=t.attributes||{},i=sb(sm(t)||[]);if(sy(e,t)&&!i.audio&&!((e,t)=>{if(!sy(e,t))return!0;let r=t.attributes||{},i=e.mediaGroups.AUDIO[r.AUDIO];for(let e in i)if(!i[e].uri&&!i[e].playlists)return!0;return!1})(e,t)){let t=sb(R(e,r.AUDIO)||[]);t.audio&&(i.audio=t.audio)}return i},{EventTarget:s_}=aI,sw=(e,t)=>{if(!e)return t;let r=aM(e,t);if(e.preloadHints&&!t.preloadHints&&delete r.preloadHints,e.parts&&!t.parts)delete r.parts;else if(e.parts&&t.parts)for(let i=0;i<t.parts.length;i++)e.parts&&e.parts[i]&&(r.parts[i]=aM(e.parts[i],t.parts[i]));return!e.skipped&&t.skipped&&(r.skipped=!1),e.preload&&!t.preload&&(r.preload=!1),r},sT=(e,t)=>{!e.resolvedUri&&e.uri&&(e.resolvedUri=v(t,e.uri)),e.key&&!e.key.resolvedUri&&(e.key.resolvedUri=v(t,e.key.uri)),e.map&&!e.map.resolvedUri&&(e.map.resolvedUri=v(t,e.map.uri)),e.map&&e.map.key&&!e.map.key.resolvedUri&&(e.map.key.resolvedUri=v(t,e.map.key.uri)),e.parts&&e.parts.length&&e.parts.forEach(e=>{e.resolvedUri||(e.resolvedUri=v(t,e.uri))}),e.preloadHints&&e.preloadHints.length&&e.preloadHints.forEach(e=>{e.resolvedUri||(e.resolvedUri=v(t,e.uri))})},sS=function(e){let t=e.segments||[],r=e.preloadSegment;if(r&&r.parts&&r.parts.length){if(r.preloadHints){for(let e=0;e<r.preloadHints.length;e++)if("MAP"===r.preloadHints[e].type)return t}r.duration=e.targetDuration,r.preload=!0,t.push(r)}return t},sC=(e,t)=>e===t||e.segments&&t.segments&&e.segments.length===t.segments.length&&e.endList===t.endList&&e.mediaSequence===t.mediaSequence&&e.preloadSegment===t.preloadSegment,sE=(e,t,r=sC)=>{let i=aM(e,{}),n=i.playlists[t.id];if(!n||r(n,t))return null;t.segments=sS(t);let a=aM(n,t);if(a.preloadSegment&&!t.preloadSegment&&delete a.preloadSegment,n.segments){if(t.skip){t.segments=t.segments||[];for(let e=0;e<t.skip.skippedSegments;e++)t.segments.unshift({skipped:!0})}a.segments=((e,t,r)=>{let i,n=e.slice(),a=t.slice();r=r||0;let s=[];for(let e=0;e<a.length;e++){let t=n[e+r],o=a[e];t?(i=t.map||i,s.push(sw(t,o))):(i&&!o.map&&(o.map=i),s.push(o))}return s})(n.segments,t.segments,t.mediaSequence-n.mediaSequence)}
151a.segments.forEach(e=>{sT(e,a.resolvedUri)});for(let e=0;e<i.playlists.length;e++)i.playlists[e].id===t.id&&(i.playlists[e]=a);return i.playlists[t.id]=a,i.playlists[t.uri]=a,su(e,(e,r,i,n)=>{if(e.playlists)for(let r=0;r<e.playlists.length;r++)t.id===e.playlists[r].id&&(e.playlists[r]=a)}),i},sk=(e,t)=>{let r=e.segments||[],i=r[r.length-1],n=i&&i.parts&&i.parts[i.parts.length-1],a=n&&n.duration||i&&i.duration;return t&&a?1e3*a:500*(e.partTargetDuration||e.targetDuration||10)},sN=(e,t,r)=>{if(!e)return;let i=[];return e.forEach(e=>{if(!e.attributes)return;let{BANDWIDTH:t,RESOLUTION:r,CODECS:n}=e.attributes;i.push({id:e.id,bandwidth:t,resolution:r,codecs:n})}),{type:t,isLive:r,renditions:i}};class sI extends s_{constructor(e,t,r={}){if(super(),!e)throw Error("A non-empty playlist URL or object is required");this.logger_=aR("PlaylistLoader");const{withCredentials:i=!1}=r;this.src=e,this.vhs_=t,this.withCredentials=i,this.addDateRangesToTextTrack_=r.addDateRangesToTextTrack;const n=t.options_;this.customTagParsers=n&&n.customTagParsers||[],this.customTagMappers=n&&n.customTagMappers||[],this.llhls=n&&n.llhls,this.dateRangesStorage_=new sh,this.state="HAVE_NOTHING",this.handleMediaupdatetimeout_=this.handleMediaupdatetimeout_.bind(this),this.on("mediaupdatetimeout",this.handleMediaupdatetimeout_),this.on("loadedplaylist",this.handleLoadedPlaylist_.bind(this))}handleLoadedPlaylist_(){let e=this.media();if(!e)return;this.dateRangesStorage_.setOffset(e.segments),this.dateRangesStorage_.setPendingDateRanges(e.dateRanges);let t=this.dateRangesStorage_.getDateRangesToProcess();t.length&&this.addDateRangesToTextTrack_&&this.addDateRangesToTextTrack_(t)}handleMediaupdatetimeout_(){if("HAVE_METADATA"!==this.state)return;let e=this.media(),t=v(this.main.uri,e.uri);this.llhls&&(t=((e,t)=>{if(t.endList||!t.serverControl)return e;let r={};if(t.serverControl.canBlockReload){let{preloadSegment:e}=t,i=t.mediaSequence+t.segments.length;if(e){let n=e.parts||[],a=a0(t)-1;a>-1&&a!==n.length-1&&(r._HLS_part=a),(a>-1||n.length)&&i--}r._HLS_msn=i}if(t.serverControl&&t.serverControl.canSkipUntil&&(r._HLS_skip=t.serverControl.canSkipDateranges?"v2":"YES"),Object.keys(r).length){let t=new h.default.URL(e);["_HLS_skip","_HLS_msn","_HLS_part"].forEach(function(e){r.hasOwnProperty(e)&&t.searchParams.set(e,r[e])}),e=t.toString()}return e})(t,e)),this.state="HAVE_CURRENT_METADATA",this.request=this.vhs_.xhr({uri:t,withCredentials:this.withCredentials,requestType:"hls-playlist"},(e,t)=>{if(this.request){if(e)return this.playlistRequestError(this.request,this.media(),"HAVE_METADATA");this.haveMetadata({playlistString:this.request.responseText,url:this.media().uri,id:this.media().id})}})}playlistRequestError(e,t,r){let{uri:i,id:n}=t;this.request=null,r&&(this.state=r),this.error={playlist:this.main.playlists[n],status:e.status,message:`HLS playlist request error at URL: ${i}.`,responseText:e.responseText,code:e.status>=500?4:2,metadata:sf({requestType:e.requestType,request:e,error:e.error})},this.trigger("error")}parseManifest_({url:e,manifestString:t}){try{let r=(({onwarn:e,oninfo:t,manifestString:r,customTagParsers:i=[],customTagMappers:n=[],llhls:a})=>{let s=new A;e&&s.on("warn",e),t&&s.on("info",t),i.forEach(e=>
151s.addParser(e)),n.forEach(e=>s.addTagMapper(e)),s.push(r),s.end();let o=s.manifest;if(!a&&(["preloadSegment","skip","serverControl","renditionReports","partInf","partTargetDuration"].forEach(function(e){o.hasOwnProperty(e)&&delete o[e]}),o.segments&&o.segments.forEach(function(e){["parts","preloadHints"].forEach(function(t){e.hasOwnProperty(t)&&delete e[t]})})),!o.targetDuration){let t=10;o.segments&&o.segments.length&&(t=o.segments.reduce((e,t)=>Math.max(e,t.duration),0)),e&&e({message:`manifest has no targetDuration defaulting to ${t}`}),o.targetDuration=t}let l=aZ(o);if(l.length&&!o.partTargetDuration){let t=l.reduce((e,t)=>Math.max(e,t.duration),0);e&&(e({message:`manifest has no partTargetDuration defaulting to ${t}`}),so.error("LL-HLS manifest has parts but lacks required #EXT-X-PART-INF:PART-TARGET value. See https://datatracker.ietf.org/doc/html/draft-pantos-hls-rfc8216bis-09#section-4.4.3.7. Playback is not guaranteed.")),o.partTargetDuration=t}return o})({onwarn:({message:t})=>this.logger_(`m3u8-parser warn for ${e}: ${t}`),oninfo:({message:t})=>this.logger_(`m3u8-parser info for ${e}: ${t}`),manifestString:t,customTagParsers:this.customTagParsers,customTagMappers:this.customTagMappers,llhls:this.llhls});if(!r.playlists||!r.playlists.length)return r;return this.excludeAudioOnlyVariants(r.playlists),r}catch(e){this.error=e,this.error.metadata={errorType:aI.Error.StreamingHlsPlaylistParserError,error:e}}}excludeAudioOnlyVariants(e){let t=e=>{let{width:t,height:r}=(e.attributes||{}).RESOLUTION||{};return!!t&&!!r||!!sb(sm(e)||[]).video};e.some(t)&&e.forEach(e=>{t(e)||(e.excludeUntil=1/0)})}haveMetadata({playlistString:e,playlistObject:t,url:r,id:i}){this.request=null,this.state="HAVE_METADATA";let n={playlistInfo:{type:"media",uri:r}};this.trigger({type:"playlistparsestart",metadata:n});let a=t||this.parseManifest_({url:r,manifestString:e});a.lastRequest=Date.now(),sd({playlist:a,uri:r,id:i});let s=sE(this.main,a);this.targetDuration=a.partTargetDuration||a.targetDuration,this.pendingMedia_=null,s?(this.main=s,this.media_=this.main.playlists[i]):this.trigger("playlistunchanged"),this.updateMediaUpdateTimeout_(sk(this.media(),!!s)),n.parsedPlaylist=sN(this.main.playlists,n.playlistInfo.type,!this.media_.endList),this.trigger({type:"playlistparsecomplete",metadata:n}),this.trigger("loadedplaylist")}dispose(){this.trigger("dispose"),this.stopRequest(),h.default.clearTimeout(this.mediaUpdateTimeout),h.default.clearTimeout(this.finalRenditionTimeout),this.dateRangesStorage_=new sh,this.off()}stopRequest(){if(this.request){let e=this.request;this.request=null,e.onreadystatechange=null,e.abort()}}media(e,t){if(!e)return this.media_;if("HAVE_NOTHING"===this.state)throw Error("Cannot switch media playlist from "+this.state);if("string"==typeof e){if(!this.main.playlists[e])throw Error("Unknown playlist URI: "+e);e=this.main.playlists[e]}if(h.default.clearTimeout(this.finalRenditionTimeout),t){let t=(e.partTargetDuration||e.targetDuration)/2*1e3||5e3;this.finalRenditionTimeout=h.default.setTimeout(this.media.bind(this,e,!1),t);return}let r=this.state,i=!this.media_||e.id!==this.media_.id,n=this.main.playlists[e.id];if(n&&n.endList||e.endList&&e.segments.length){this.request&&(this.request.onreadystatechange=null,this.request.abort(),this.request=null),this.state="HAVE_METADATA",this.media_=e,i&&(this.trigger("mediachanging"),"HAVE_MAIN_MANIFEST"===r?this.trigger("loadedmetadata"):this.trigger("mediachange"));return}if(this.updateMediaUpdateTimeout_(sk(e,!0)),!i)return;if(this.state="SWITCHING_MEDIA",this.request){if(e.resolvedUri===this.request.url)return;this.request.onreadystatechange=null,this.request.abort(),this.request=null}this.media_&&this.trigger("mediachanging"),this.pendingMedia_=e;let a={playlistInfo:{type:"media",uri:e.uri}};this.trigger({type:"playlistrequeststart",metadata:a}),this.request=this.vhs_.xhr({uri:e.resolvedUri,withCredentials:this.withCredentials,requestType:"hls-playlist"},(t,i)=>{if(this.request){if(e.lastRequest=Date.now(),e.resolvedUri=aD(e.resolvedUri,i),t)return this.playlistRequestError(this.request,e,r);this.trigger({type:"playlistrequestcomplete",metadata:a}),this.haveMetadata({playlistString:i.responseText,url:e.uri,id:e.id}),"HAVE_MAIN_MANIFEST"===r?this.trigger("loadedmetadata"):this.trigger("mediachange")}})}pause(){this.mediaUpdateTimeout&&(h.default.clearTimeout(this.mediaUpdateTimeout),this.mediaUpdateTimeout=null),this.stopRequest(),"HAVE_NOTHING"===this.state&&(this.started=!1),"SWITCHING_MEDIA"===this.state?this.media_?this.state="HAVE_METADATA":this.state="HAVE_MAIN_MANIFEST":"HAVE_CURRENT_METADATA"===this.state&&(this.state="HAVE_METADATA")}load(e){this.mediaUpdateTimeout&&(h.default.clearTimeout(this.mediaUpdateTimeout),this.mediaUpdateTimeout=null);let t=this.media();if(e){let e=t?(t.partTargetDuration||t.targetDuration)/2*1e3:5e3;this.mediaUpdateTimeout=h.default.setTimeout(()=>{this.mediaUpdateTimeout=null,this.load()},e);return}this.started?t&&!t.endList?this.trigger("mediaupdatetimeout"):this.trigger("loadedplaylist"):this.start()}updateMediaUpdateTimeout_(e){this.mediaUpdateTimeout&&(h.default.clearTimeout(this.mediaUpdateTimeout),this.mediaUpdateTimeout=null),this.media()&&!this.media().endList&&(this.mediaUpdateTimeout=h.default.setTimeout(()=>{this.mediaUpdateTimeout=null,this.trigger("mediaupdatetimeout"),this.updateMediaUpdateTimeout_(e)},e))}
151start(){if(this.started=!0,"object"==typeof this.src){this.src.uri||(this.src.uri=h.default.location.href),this.src.resolvedUri=this.src.uri,setTimeout(()=>{this.setupInitialPlaylist(this.src)},0);return}let e={playlistInfo:{type:"multivariant",uri:this.src}};this.trigger({type:"playlistrequeststart",metadata:e}),this.request=this.vhs_.xhr({uri:this.src,withCredentials:this.withCredentials,requestType:"hls-playlist"},(t,r)=>{if(!this.request)return;if(this.request=null,t)return this.error={status:r.status,message:`HLS playlist request error at URL: ${this.src}.`,responseText:r.responseText,code:2,metadata:sf({requestType:r.requestType,request:r,error:t})},"HAVE_NOTHING"===this.state&&(this.started=!1),this.trigger("error");this.trigger({type:"playlistrequestcomplete",metadata:e}),this.src=aD(this.src,r),this.trigger({type:"playlistparsestart",metadata:e});let i=this.parseManifest_({manifestString:r.responseText,url:this.src});e.parsedPlaylist=sN(i.playlists,e.playlistInfo.type,!1),this.trigger({type:"playlistparsecomplete",metadata:e}),this.setupInitialPlaylist(i)})}srcUri(){return"string"==typeof this.src?this.src:this.src.uri}setupInitialPlaylist(e){let t,r;if(this.state="HAVE_MAIN_MANIFEST",e.playlists){this.main=e,sp(this.main,this.srcUri()),e.playlists.forEac
151h(e=>{e.segments=sS(e),e.segments.forEach(t=>{sT(t,e.resolvedUri)})}),this.trigger("loadedplaylist"),this.request||this.media(this.main.playlists[0]);return}let i=this.srcUri()||h.default.location.href;this.main=(t=sl(0,i),(r={mediaGroups:{AUDIO:{},VIDEO:{},"CLOSED-CAPTIONS":{},SUBTITLES:{}},uri:h.default.location.href,resolvedUri:h.default.location.href,playlists:[{uri:i,id:t,resolvedUri:i,attributes:{}}]}).playlists[t]=r.playlists[0],r.playlists[i]=r.playlists[0],r),this.haveMetadata({playlistObject:e,url:i,id:this.main.playlists[0].id}),this.trigger("loadedmetadata")}updateOrDeleteClone(e,t){let r=this.main,i=e.ID,n=r.playlists.length;for(;n--;){let a=r.playlists[n];if(a.attributes["PATHWAY-ID"]===i){let s=a.resolvedUri,o=a.id;if(t){let t=this.createCloneURI_(a.resolvedUri,e),s=sl(i,t),o=this.createCloneAttributes_(i,a.attributes),l=this.createClonePlaylist_(a,s,e,o);r.playlists[n]=l,r.playlists[s]=l,r.playlists[t]=l}else r.playlists.splice(n,1);delete r.playlists[o],delete r.playlists[s]}}this.updateOrDeleteCloneMedia(e,t)}updateOrDeleteCloneMedia(e,t){let r=this.main,i=e.ID;["AUDIO","SUBTITLES","CLOSED-CAPTIONS"].forEach(e=>{if(r.mediaGroups[e]&&r.mediaGroups[e][i]){for(let t in r.mediaGroups[e])if(t===i){for(let i in r.mediaGroups[e][t])r.mediaGroups[e][t][i].playlists.forEac
151h((e,t)=>{let i=r.playlists[e.id],n=i.id,a=i.resolvedUri;delete r.playlists[n],delete r.playlists[a]});delete r.mediaGroups[e][t]}}}),t&&this.createClonedMediaGroups_(e)}addClonePathway(e,t={}){let r=this.main,i=r.playlists.length,n=this.createCloneURI_(t.resolvedUri,e),a=sl(e.ID,n),s=this.createCloneAttributes_(e.ID,t.attributes),o=this.createClonePlaylist_(t,a,e,s);r.playlists[i]=o,r.playlists[a]=o,r.playlists[n]=o,this.createClonedMediaGroups_(e)}createClonedMediaGroups_(e){let t=e.ID,r=e["BASE-ID"],i=this.main;["AUDIO","SUBTITLES","CLOSED-CAPTIONS"].forEach(n=>{if(i.mediaGroups[n]&&!i.mediaGroups[n][t]){for(let a in i.mediaGroups[n])if(a===r)for(let r in i.mediaGroups[n][t]={},i.mediaGroups[n][a]){let s=i.mediaGroups[n][a][r];i.mediaGroups[n][t][r]=y({},s);let o=i.mediaGroups[n][t][r],l=this.createCloneURI_(s.resolvedUri,e);o.resolvedUri=l,o.uri=l,o.playlists=[],s.playlists.forEach((a,s)=>{let l=i.playlists[a.id],c=sc(n,t,r),u=sl(t,c);if(l&&!i.playlists[u]){let t=this.createClonePlaylist_(l,u,e),r=t.resolvedUri;i.playlists[u]=t,i.playlists[r]=t}o.playlists[s]=this.createClonePlaylist_(a,u,e)})}}})}createClonePlaylist_(e,t,r,i){let n=this.createCloneURI_(e.resolvedUri,r),a={resolvedUri:n,uri:n,id:t};return e.segments&&(a.segments=[]),i&&(a.attributes=i),aM(e,a)}createCloneURI_(e,t){let r=new URL(e);r.hostname=t["URI-REPLACEMENT"].HOST;let i=t["URI-REPLACEMENT"].PARAMS;for(let e of Object.keys(i))r.searchParams.set(e,i[e]);return r.href}createCloneAttributes_(e,t){let r={"PATHWAY-ID":e};return["AUDIO","SUBTITLES","CLOSED-CAPTIONS"].forEach(i=>{t[i]&&(r[i]=e)}),r}getKeyIdSet(e){let t=new Set;if(!e||!e.contentProtection)return t;for(let r in e.contentProtection)if(e.contentProtection[r]&&e.contentProtection[r].attributes&&e.contentProtection[r].attributes.keyId){let i=e.contentProtection[r].attributes.keyId;t.add(i.toLowerCase())}return t}}let sA=function(e,t,r,i){let n="arraybuffer"===e.responseType?e.response:e.responseText;!t&&n&&(e.responseTime=Date.now(),e.roundTripTime=e.responseTime-e.requestTime,e.bytesReceived=n.byteLength||n.length,e.bandwidth||(e.bandwidth=Math.floor(e.bytesReceived/e.roundTripTime*8e3))),r.headers&&(e.responseHeaders=r.headers),t&&"ETIMEDOUT"===t.code&&(e.timedout=!0),t||e.aborted||200===r.statusCode||206===r.statusCode||0===r.statusCode||(t=Error("XHR Failed with a response of: "+(e&&(n||e.responseText)))),i(t,e)},sj=function(){let e=function e(t,r){t=aM({timeout:45e3},t);let i=e.beforeRequest||aI.Vhs.xhr.beforeRequest,n=e._requestCallbackSet||aI.Vhs.xhr._requestCallbackSet||new Set,a=e._responseCallbackSet||aI.Vhs.xhr._responseCallbackSet;i&&"function"==typeof i&&(aI.log.warn("beforeRequest is deprecated, use onRequest instead."),n.add(i));let s=!0===aI.Vhs.xhr.original?aI.xhr:aI.Vhs.xhr,o=((e,t)=>{if(!e||!e.size)return;let r=t;return e.forEach(e=>{r=e(r)}),r})(n,t);n.delete(i);let l=s(o||t,function(e,t){return a&&a.size&&a.forEach(r=>{r(l,e,t)}),sA(l,e,t,r)}),c=l.abort;return l.abort=function(){return l.aborted=!0,c.apply(l,arguments)},l.uri=t.uri,l.requestType=t.requestType,l.requestTime=Date.now(),l};return e.original=!0,e},sP=function(e){return"bytes="+e.offset+"-"+("bigint"==typeof e.offset||"bigint"==typeof e.length?h.default.BigInt(e.offset)+h.default.BigInt(e.length)-h.default.BigInt(1):e.offset+e.length-1)},sO=function(e){let t={};return e.byterange&&(t.Range=sP(e.byterange)),t},sL=function(e,t){let r=e.toString(16);return"00".substring(0,2-r.length)+r+(t%2?" ":"")},sD=function(e){return e>=32&&e<126?String.fromCharCode(e):"."},sR=function(e){let t={};return Object.keys(e).forEach(r=>{let i=e[r];W(i)?t[r]={bytes:i.buffer,byteOffset:i.byteOffset,byteLength:i.byteLength}:t[r]=i}),t},sM=function(e){let t=e.byterange||{length:1/0,offset:0};return[t.length,t.offset,e.resolvedUri].join(",")},sB=function(e){return e.resolvedUri},sU=e=>{let t=Array.prototype.slice.call(e),r="";for(let e=0;e<t.length/16;e++)r+=t.slice(16*e,16*e+16).map(sL).join("")+" "+t.slice(16*e,16*e+16).map(sD).join("")+"\n";return r};var sF=Object.freeze({__proto__:null,createTransferableMessage:sR,initSegmentId:sM,segmentKeyId:sB,hexDump:sU,tagDump:({bytes:e})=>sU(e),textRanges:e=>{let t,r="";for(t=0;t<e.length;t++){var i;r+=(i=t,e.start(i)+"-"+e.end(i)+" ")}return r}});let s$=({programTime:e,playlist:t,retryCount:r=2,seekTo:i,pauseAfterSeek:n=!0,tech:a,callback:s})=>{if(!s)throw Error("seekToProgramTime: callback must be provided");
151if(void 0===e||!t||!i)return s({message:"seekToProgramTime: programTime, seekTo and playlist must be provided"});if(!t.endList&&!a.hasStarted_)return s({message:"player must be playing a live stream to start buffering"});if(!(e=>{if(!e.segments||0===e.segments.length)return!1;for(let t=0;t<e.segments.length;t++)if(!e.segments[t].dateTimeObject)return!1;return!0})(t))return s({message:"programDateTime tags must be provided in the manifest "+t.resolvedUri});let o=((e,t)=>{let r,i;try{r=new Date(e)}catch(e){return null}if(!t||!t.segments||0===t.segments.length)return null;let n=t.segments[0];if(r<new Date(n.dateTimeObject))return null;for(let e=0;e<t.segments.length-1&&(n=t.segments[e],!(r<new Date(t.segments[e+1].dateTimeObject)));e++);let a=t.segments[t.segments.length-1],s=a.dateTimeObject,o=a.videoTimingInfo?(i=a.videoTimingInfo).transmuxedPresentationEnd-i.transmuxedPresentationStart-i.transmuxerPrependedSeconds:a.duration+.25*a.duration;return r>new Date(s.getTime()+1e3*o)?null:(r>new Date(s)&&(n=a),{segment:n,estimatedStart:n.videoTimingInfo?n.videoTimingInfo.transmuxedPresentationStart:ss.duration(t,t.mediaSequence+t.segments.indexOf(n)),type:n.videoTimingInfo?"accurate":"estimate"})})(e,t);if(!o)return s({message:`${e} was not found in the stream`});let l=o.segment,c=((e,t)=>{let r,i;try{r=new Date(e),i=new Date(t)}catch(e){}let n=r.getTime();return(i.getTime()-n)/1e3})(l.dateTimeObject,e);if("estimate"===o.type)return 0===r?s({message:`${e} is not buffered yet. Try again`}):(i(o.estimatedStart+c),void a.one("seeked",()=>{s$({programTime:e,playlist:t,retryCount:r-1,seekTo:i,pauseAfterSeek:n,tech:a,callback:s})}));let u=l.start+c;a.one("seeked",()=>s(null,a.currentTime())),n&&a.pause(),i(u)},sz=(e,t)=>{if(4===e.readyState)return t()},{EventTarget:sq}=aI,sH=function(e,t){if(!sC(e,t)||e.sidx&&t.sidx&&(e.sidx.offset!==t.sidx.offset||e.sidx.length!==t.sidx.length)||!e.sidx&&t.sidx||e.sidx&&!t.sidx||e.segments&&!t.segments||!e.segments&&t.segments)return!1;if(!e.segments&&!t.segments)return!0;for(let r=0;r<e.segments.length;r++){let i=e.segments[r],n=t.segments[r];if(i.uri!==n.uri)return!1;if(!i.byterange&&!n.byterange)continue;let a=i.byterange,s=n.byterange;if(a&&!s||!a&&s||a.offset!==s.offset||a.length!==s.length)return!1}return!0},sW=(e,t,r,i)=>{let n=i.attributes.NAME||r;return`placeholder-uri-${e}-${t}-${n}`},sV=(e,t)=>(!!(!e.map&&!t.map)||!!(e.map&&t.map&&e.map.byterange.offset===t.map.byterange.offset&&e.map.byterange.length===t.map.byterange.length))&&e.uri===t.uri&&e.byterange.offset===t.byterange.offset&&e.byterange.length===t.byterange.length,sG=(e,t)=>{let r={};for(let i in e){let n=e[i].sidx;if(n){let e=ev(n);if(!t[e])break;sV(t[e].sidxInfo,n)&&(r[e]=t[e])}}return r};class sX extends sq{constructor(e,t,r={},i){super(),this.isPaused_=!0,this.mainPlaylistLoader_=i||this,i||(this.isMain_=!0);const{withCredentials:n=!1}=r;if(this.vhs_=t,this.withCredentials=n,this.addMetadataToTextTrack=r.addMetadataToTextTrack,!e)throw Error("A non-empty playlist URL or object is required");this.on("minimumUpdatePeriod",()=>{this.refreshXml_()}),this.on("mediaupdatetimeout",()=>{this.refreshMedia_(this.media().id)}),this.state="HAVE_NOTHING",this.loadedPlaylists_={},this.logger_=aR("DashPlaylistLoader"),this.isMain_?(this.mainPlaylistLoader_.srcUrl=e,this.mainPlaylistLoader_.sidxMapping_={}):this.childPlaylist_=e}get isPaused(){return this.isPaused_}requestErrored_(e,t,r){return!this.request||((this.request=null,e)?(this.error="object"!=typeof e||e instanceof Error?{status:t.status,message:"DASH request error at URL: "+t.uri,response:t.response,code:2,metadata:e.metadata}:e,r&&(this.state=r),this.trigger("error"),!0):void 0)}addSidxSegments_(e,t,r){var i,n;let a,s,o,l,c,u,d=e.sidx&&ev(e.sidx);if(!e.sidx||!d||this.mainPlaylistLoader_.sidxMapping_[d]){h.default.clearTimeout(this.mediaRequest_),this.mediaRequest_=h.default.setTimeout(()=>r(!1),0);return}let p=aD(e.sidx.resolvedUri),f=(i,n)=>{let a;if(this.requestErrored_(i,n,t))return;let s=this.mainPlaylistLoader_.sidxMapping_,{requestType:o}=n;try{a=(0,eH.default)(V(n.response).subarray(8))}catch(e){e.metadata=sf({requestType:o,request:n,parseFailure:!0}),this.requestErrored_(e,n,t);return}return s[d]={sidxInfo:e.sidx,sidx:a},eh(e,a,e.sidx.resolvedUri),r(!0)};this.request=(i=this.vhs_.xhr,n=(t,r,i,n)=>{if(t)return f(t,r);
151if(!i||"mp4"!==i)return f({status:r.status,message:`Unsupported ${i||"unknown"} container type for sidx segment at URL: ${p}`,response:"",playlist:e,internal:!0,playlistExclusionDuration:1/0,code:2},r);let{offset:a,length:s}=e.sidx.byterange;if(n.length>=s+a)return f(t,{response:n.subarray(a,a+s),status:r.status,uri:r.uri});this.request=this.vhs_.xhr({uri:p,responseType:"arraybuffer",requestType:"dash-sidx",headers:sO({byterange:e.sidx.byterange})},f)},s=[],o=!1,l=function(e,t,r,i){return t.abort(),o=!0,n(e,t,r,i)},c=function(e,t){if(o)return;if(e)return e.metadata=sf({requestType:"dash-sidx",request:t,error:e}),l(e,t,"",s);let r=t.responseText.substring(s&&s.byteLength||0,t.responseText.length);if(s=Z(s,J(r,!0)),a=a||eG(s),s.length<10||a&&s.length<a+2)return sz(t,()=>l(e,t,"",s));let i=tr(s);return"ts"===i&&s.length<188||!i&&s.length<376?sz(t,()=>l(e,t,"",s)):l(null,t,i,s)},u=i({uri:p,beforeSend(e){e.overrideMimeType("text/plain; charset=x-user-defined"),e.addEventListener("progress",function({total:t,loaded:r}){return sA(e,null,{statusCode:e.status},c)})}},function(e,t){return sA(u,e,t,c)}))}dispose(){this.isPaused_=!0,this.trigger("dispose"),this.stopRequest(),this.loadedPlaylists_={},h.default.clearTimeout(this.minimumUpdatePeriodTimeout_),h.default.clearTimeout(this.mediaRequest_),h.default.clearTimeout(this.mediaUpdateTimeout),this.mediaUpdateTimeout=null,this.mediaRequest_=null,this.minimumUpdatePeriodTimeout_=null,this.mainPlaylistLoader_.createMupOnMedia_&&(this.off("loadedmetadata",this.mainPlaylistLoader_.createMupOnMedia_),this.mainPlaylistLoader_.createMupOnMedia_=null),this.off()}hasPendingRequest(){return this.request||this.mediaRequest_}stopRequest(){if(this.request){let e=this.request;this.request=null,e.onreadystatechange=null,e.abort()}}media(e){if(!e)return this.media_;if("HAVE_NOTHING"===this.state)throw Error("Cannot switch media playlist from "+this.state);let t=this.state;if("string"==typeof e){if(!this.mainPlaylistLoader_.main.playlists[e])throw Error("Unknown playlist URI: "+e);e=this.mainPlaylistLoader_.main.playlists[e]}let r=!this.media_||e.id!==this.media_.id;if(r&&this.loadedPlaylists_[e.id]&&this.loadedPlaylists_[e.id].endList){this.state="HAVE_METADATA",this.media_=e,r&&(this.trigger("mediachanging"),this.trigger("mediachange"));return}r&&(this.media_&&this.trigger("mediachanging"),this.addSidxSegments_(e,t,r=>{this.haveMetadata({startingState:t,playlist:e})}))}haveMetadata({startingState:e,playlist:t}){this.state="HAVE_METADATA",this.loadedPlaylists_[t.id]=t,h.default.clearTimeout(this.mediaRequest_),this.mediaRequest_=null,this.refreshMedia_(t.id),"HAVE_MAIN_MANIFEST"===e?this.trigger("loadedmetadata"):this.trigger("mediachange")}pause(){this.isPaused_=!0,this.mainPlaylistLoader_.createMupOnMedia_&&(this.off("loadedmetadata",this.mainPlaylistLoader_.createMupOnMedia_),this.mainPlaylistLoader_.createMupOnMedia_=null),this.stopRequest(),h.default.clearTimeout(this.mediaUpdateTimeout),this.mediaUpdateTimeout=null,this.isMain_&&(h.default.clearTimeout(this.mainPlaylistLoader_.minimumUpdatePeriodTimeout_),this.mainPlaylistLoader_.minimumUpdatePeriodTimeout_=null),"HAVE_NOTHING"===this.state&&(this.started=!1)}load(e){this.isPaused_=!1,h.default.clearTimeout(this.mediaUpdateTimeout),this.mediaUpdateTimeout=null;let t=this.media();if(e){let e=t?t.targetDuration/2*1e3:5e3;this.mediaUpdateTimeout=h.default.setTimeout(()=>this.load(),e);return}this.started?t&&!t.endList?(this.isMain_&&!this.minimumUpdatePeriodTimeout_&&(this.trigger("minimumUpdatePeriod"),this.updateMinimumUpdatePeriodTimeout_()),this.trigger("mediaupdatetimeout")):this.trigger("loadedplaylist"):this.start()}start(){if(this.started=!0,!this.isMain_){h.default.clearTimeout(this.mediaRequest_),this.mediaRequest_=h.default.setTimeout(()=>this.haveMain_(),0);return}this.requestMain_((e,t)=>{this.haveMain_(),this.hasPendingRequest()||this.media_||this.media(this.mainPlaylistLoader_.main.playlists[0])})}requestMain_(e){let t={manifestInfo:{uri:this.mainPlaylistLoader_.srcUrl}};this.trigger({type:"manifestrequeststart",metadata:t}),this.request=this.vhs_.xhr({uri:this.mainPlaylistLoader_.srcUrl,withCredentials:this.withCredentials,requestType:"dash-manifest"},(r,i)=>{if(r){let{requestType:e}=i;r.metadata=sf({requestType:e,request:i,error:r})}if(this.requestErrored_(r,i)){"HAVE_NOTHING"===this.state&&(this.started=!1);return}this.trigger({type:"manifestrequestcomplete",metadata:t});let n=i.responseText!==this.mainPlaylistLoader_.mainXml_;if(this.mainPlaylistLoader_.mainXml_=i.responseText,i.responseHeaders&&i.responseHeaders.date?this.mainLoaded_=Date.parse(i.responseHeaders.date):this.mainLoaded_=Date.now(),this.mainPlaylistLoader_.srcUrl=aD(this.mainPlaylistLoader_.srcUrl,i),n){this.handleMain_(),this.syncCl
151ientServerClock_(()=>e(i,n));return}return e(i,n)})}syncClientServerClock_(e){let t=(e=>{let t=eL(e,"UTCTiming")[0];if(!t)return null;let r=eB(t);switch(r.schemeIdUri){case"urn:mpeg:dash:utc:http-head:2014":case"urn:mpeg:dash:utc:http-head:2012":r.method="HEAD";break;case"urn:mpeg:dash:utc:http-xsdate:2014":case"urn:mpeg:dash:utc:http-iso:2014":case"urn:mpeg:dash:utc:http-xsdate:2012":case"urn:mpeg:dash:utc:http-iso:2012":r.method="GET";break;case"urn:mpeg:dash:utc:direct:2014":case"urn:mpeg:dash:utc:direct:2012":r.method="DIRECT",r.value=Date.parse(r.value);break;default:throw Error("UNSUPPORTED_UTC_TIMING_SCHEME")}return r})(eq(this.mainPlaylistLoader_.mainXml_));return null===t?(this.mainPlaylistLoader_.clientOffset_=this.mainLoaded_-Date.now(),e()):"DIRECT"===t.method?(this.mainPlaylistLoader_.clientOffset_=t.value-Date.now(),e()):void(this.request=this.vhs_.xhr({uri:v(this.mainPlaylistLoader_.srcUrl,t.value),method:t.method,withCredentials:this.withCredentials,requestType:"dash-clock-sync"},(r,i)=>{let n;if(this.request){if(r){let{requestType:t}=i;return this.error.metadata=sf({requestType:t,request:i,error:r}),this.mainPlaylistLoader_.clientOffset_=this.mainLoaded_-Date.now(),e()}n="HEAD"===t.method?i.responseHeaders&&i.responseHeaders.date?Date.parse(i.responseHeaders.date):this.mainLoaded_:Date.parse(i.responseText),this.mainPlaylistLoader_.clientOffset_=n-Date.now(),e()}}))}haveMain_(){this.state="HAVE_MAIN_MANIFEST",this.isMain_?this.trigger("loadedplaylist"):this.media_||this.media(this.childPlaylist_)}handleMain_(){let e;h.default.clearTimeout(this.mediaRequest_),this.mediaRequest_=null;let t=this.mainPlaylistLoader_.main,r={manifestInfo:{uri:this.mainPlaylistLoader_.srcUrl}};this.trigger({type:"manifestparsestart",metadata:r});try{e=(({mainXml:e,srcUrl:t,clientOffset:r,sidxMapping:i,previousManifest:n})=>{let a=((e,t={})=>{let r=((e,t={})=>{let{manifestUri:r="",NOW:i=Date.now(),clientOffset:n=0,eventHandler:a=function(){}}=t,s=eL(e,"Period");if(!s.length)throw Error("INVALID_NUMBER_OF_PERIOD");let o=eL(e,"Location"),l=eB(e),c=eF([{baseUrl:r}],eL(e,"BaseURL")),u=eL(e,"ContentSteering");l.type=l.type||"static",l.sourceDuration=l.mediaPresentationDuration||0,l.NOW=i,l.clientOffset=n,o.length&&(l.locations=o.map(eD));let d=[];return s.forEach((e,t)=>{let r=eB(e),i=d[t-1];r.start=(({attributes:e,priorPeriodAttributes:t,mpdType:r})=>"number"==typeof e.start?e.start:t&&"number"==typeof t.start&&"number"==typeof t.duration?t.start+t.duration:t||"static"!==r?null:0)({attributes:r,priorPeriodAttributes:i?i.attributes:null,mpdType:l.type}),d.push({node:e,attributes:r})}),{locations:l.locations,contentSteeringInfo:((e,t)=>{if(e.length>1&&t({type:"warn",message:"The MPD manifest should contain no more than one ContentSteering tag"}),!e.length)return null;let r=en({serverURL:eD(e[0])},eB(e[0]));return r.queryBeforeStart="true"===r.queryBeforeStart,r})(u,a),representationInfo:es(d.map((e,t)=>{let r=eF(c,eL(e.node,"BaseURL")),i=en(l,{periodStart:e.attributes.start});"number"==typeof e.attributes.duration&&(i.periodDuration=e.attributes.duration);let n=eL(e.node,"AdaptationSet"),a=e$(e.node);return es(n.map(e=>{var t;let n,s=eB(e),o=eF(r,eL(e,"BaseURL")),l=en(i,s,{role:eB(eL(e,"Role")[0])}),c="urn:scte:dash:cc:cea-608:2015"===(t=eB(eL(e,"Accessibility")[0])).schemeIdUri?("string"!=typeof t.value?[]:t.value.split(";")).map(e=>{let t,r;return r=e,/^CC\d=/.test(e)?[t,r]=e.split("="):/^CC\d$/.test(e)&&(t=e),{channel:t,language:r}}):"urn:scte:dash:cc:cea-708:2015"===t.schemeIdUri?("string"!=typeof t.value?[]:t.value.split(";")).map(e=>{let t={channel:void 0,language:void 0,aspectRatio:1,easyReader:0,"3D":0};if(/=/.test(e)){let[r,i=""]=e.split("=");t.channel=r,t.language=e,i.split(",").forEach(e=>{let[r,i]=e.split(":");"lang"===r?t.language=i:"er"===r?t.easyReader=Number(i):"war"===r?t.aspectRatio=Number(i):"3D"===r&&(t["3D"]=Number(i))})}else t.language=e;return t.channel&&(t.channel="SERVICE"+t.channel),t}):void 0;c&&(l=en(l,{captionServices:c}));let u=eL(e,"Label")[0];u&&u.childNodes.length&&(l=en(l,{label:u.childNodes[0].nodeValue.trim()}));let d=eL(e,"ContentProtection").reduce((e,t)=>
151{let r=eB(t);r.schemeIdUri&&(r.schemeIdUri=r.schemeIdUri.toLowerCase());let i=eU[r.schemeIdUri];if(i){e[i]={attributes:r};let n=eL(t,"cenc:pssh")[0];if(n){let t=eD(n);e[i].pssh=t&&w(t)}}return e},{});Object.keys(d).length&&(l=en(l,{contentProtection:d}));let p=e$(e),h=eL(e,"Representation"),f=en(a,p);return es(h.map((n=l,e=>{let t=eF(o,eL(e,"BaseURL")),r=en(n,eB(e)),i=e$(e);return t.map(e=>({segmentInfo:en(f,i),attributes:en(r,e)}))})))}))})),eventStream:es(d.map(ez))}})(eq(e),t);return(({dashPlaylists:e,locations:t,contentSteering:r,sidxMapping:i={},previousManifest:n,eventStream:a})=>{var s;if(!e.length)return{};let{sourceDuration:o,type:l,suggestedPresentationDelay:c,minimumUpdatePeriod:u}=e[0].attributes,d=ex(e.filter(eT)).map(ew),p=ex(e.filter(eS)),h=ex(e.filter(eC)),f=e.map(e=>e.attributes.captionServices).filter(Boolean),g={allowCache:!0,discontinuityStarts:[],segments:[],endList:!0,mediaGroups:{AUDIO:{},VIDEO:{},"CLOSED-CAPTIONS":{},SUBTITLES:{}},uri:"",duration:o,playlists:((e,t={})=>{if(!Object.keys(t).length)return e;for(let r in e)e[r]=e_(e[r],t);return e})(d,i)};u>=0&&(g.minimumUpdatePeriod=1e3*u),t&&(g.locations=t),r&&(g.contentSteering=r),"dynamic"===l&&(g.suggestedPresentationDelay=c),a&&a.length>0&&(g.eventStream=a);let m=0===g.playlists.length,y=p.length?((e,t={},r=!1)=>{let i,n=e.reduce((e,n)=>{let a=n.attributes.role&&n.attributes.role.value||"",s=n.attributes.lang||"",o=n.attributes.label||"main";if(s&&!n.attributes.label){let e=a?` (${a})`:"";o=`${n.attributes.lang}${e}`}e[o]||(e[o]={language:s,autoselect:!0,default:"main"===a,playlists:[],uri:""});let l=e_((({attributes:e,segments:t,sidx:r,mediaSequence:i,discontinuitySequence:n,discontinuityStarts:a},s)=>{let o={attributes:{NAME:e.id,BANDWIDTH:e.bandwidth,CODECS:e.codecs,"PROGRAM-ID":1},uri:"",endList:"static"===e.type,timeline:e.periodStart,resolvedUri:e.baseUrl||"",targetDuration:e.duration,discontinuitySequence:n,discontinuityStarts:a,timelineStarts:e.timelineStarts,mediaSequence:i,segments:t};return e.contentProtection&&(o.contentProtection=e.contentProtection),e.serviceLocation&&(o.attributes.serviceLocation=e.serviceLocation),r&&(o.sidx=r),s&&(o.attributes.AUDIO="audio",o.attributes.SUBTITLES="subs"),o})(n,r),t);return e[o].playlists.push(l),void 0===i&&"main"===a&&((i=n).default=!0),e},{});if(!i){let e=Object.keys(n)[0];n[e].default=!0}return n})(p,i,m):null,b=h.length?((e,t={})=>e.reduce((e,r)=>{let i=r.attributes.label||r.attributes.lang||"text",n=r.attributes.lang||"und";return e[i]||(e[i]={language:n,default:!1,autoselect:!1,playlists:[],uri:""}),e[i].playlists.push(e_((({attributes:e,segments:t,mediaSequence:r,discontinuityStarts:i,discontinuitySequence:n})=>{void 0===t&&(t=[{uri:e.baseUrl,timeline:e.periodStart,resolvedUri:e.baseUrl||"",duration:e.sourceDuration,number:0}],e.duration=e.sourceDuration);let a={NAME:e.id,BANDWIDTH:e.bandwidth,"PROGRAM-ID":1};e.codecs&&(a.CODECS=e.codecs);let s={attributes:a,uri:"",endList:"static"===e.type,timeline:e.periodStart,resolvedUri:e.baseUrl||"",targetDuration:e.duration,timelineStarts:e.timelineStarts,discontinuityStarts:i,discontinuitySequence:n,mediaSequence:r,segments:t};return e.serviceLocation&&(s.attributes.serviceLocation=e.serviceLocation),s})(r),t)),e},{}))(h,i):null,v=d.concat(eE(y),eE(b));return g.timelineStarts=em(v.map(({timelineStarts:e})=>e)),s=g.timelineStarts,v.forEach(e=>{e.mediaSequence=0,e.discontinuitySequence=s.findIndex(function({timeline:t}){return t===e.timeline}),e.segments&&e.segments.forEach((e,t)=>{e.number=t})}),y&&(g.mediaGroups.AUDIO.audio=y),b&&(g.mediaGroups.SUBTITLES.subs=b),(f.length&&(g.mediaGroups["CLOSED-CAPTIONS"].cc=f.reduce((e,t)=>(t&&t.forEach(t=>{let{channel:r,language:i}=t;e[i]={autoselect:!1,default:!1,instreamId:r,language:i},t.hasOwnProperty("aspectRatio")&&(e[i].aspectRatio=t.aspectRatio),t.hasOwnProperty("easyReader")&&(e[i].easyReader=t.easyReader),t.hasOwnProperty("3D")&&(e[i]["3D"]=t["3D"])}),e),{})),n)?(({oldManifest:e,newManifest:t})=>{let r=e.playlists.concat(ey(e)),i=t.playlists.concat(ey(t));return t.timelineStarts=em([e.timelineStarts,t.timelineStarts]),(({oldPlaylists:e,newPlaylists:t,timelineStarts:r})=>{t.forEach(t=>{t.discontinuitySequence=r.findIndex(function({timeline:e}){return e===t.timeline});let i=((e,t)=>{for(let r=0;r<e.length;r++)if(e[r].attributes.NAME===t)return e[r];return null})(e,t.attributes.NAME);if(!i||t.sidx)return;let n=t.segments[0],a=i.segments.findIndex(function(e){return Math.abs(e.presentationTime-n.presentationTime)<eg});if(-1===a){eb({playlist:t,mediaSequence:i.mediaSequence+i.segments.length}),t.segments[0].discontinuity=!0,t.discontinuityStarts.unshift(0),(!i.segments.length&&t.timeline>i.timeline||i.segments.length&&t.timeline>i.segments[i.segments.length-1].timeline)&&t.discontinuitySequence--;return}i.segments[a].discontinuity&&!n.discontinuity&&(n.discontinuity=!0,t.discontinuityStarts.unshift(0),t.discontinuitySequence--),eb({playlist:t,mediaSequence:i.segments[a].number})})})({oldPlaylists:r,newPlaylists:i,timelineStarts:t.timelineStarts}),t})({oldManifest:n,newManifest:g}):g})({dashPlaylists:r.representationInfo.map(eO),locations:r.locations,contentSteering:r.contentSteeringInfo,sidxMapping:t.sidxMapping,previousManifest:t.previousManifest,eventStream:r.eventStream})})(e,{manifestUri:t,clientOffset:r,sidxMapping:i,previousManifest:n});return sp(a,t,sW),a})({mainXml:this.mainPlaylistLoader_.mainXml_,srcUrl:this.mainPlaylistLoader_.srcUrl,clientOffset:this.mainPlaylistLoader_.clientOffset_,sidxMapping:this.mainPlaylistLoader_.sidxMapping_,previousManifest:t})}catch(e){this.error=e,this.error.metadata={errorType:aI.Error.StreamingDashManifestParserError,error:e},this.trigger("error")}t&&(e=((e,t,r)=>{var i;let n=!0,a=aM(e,{duration:t.duration,minimumUpdatePeriod:t.minimumUpdatePeriod,timelineStarts:t.timelineStarts});for(let e=0;e<t.playlists.length;e++){let i=t.playlists[e];if(i.sidx){let e=ev(i.sidx);r&&r[e]&&r[e].sidx&&eh(i,r[e].sidx,i.sidx.resolvedUri)}let s=sE(a,i,sH);s&&(a=s,n=!1)}
151return(su(t,(e,t,r,i)=>{if(e.playlists&&e.playlists.length){let s=e.playlists[0].id,o=sE(a,e.playlists[0],sH);o&&(i in(a=o).mediaGroups[t][r]||(a.mediaGroups[t][r][i]=e),a.mediaGroups[t][r][i].playlists[0]=a.playlists[s],n=!1)}}),su(i=a,(e,r,n,a)=>{t.mediaGroups[r][n]&&a in t.mediaGroups[r][n]||delete i.mediaGroups[r][n][a]}),t.minimumUpdatePeriod!==e.minimumUpdatePeriod&&(n=!1),n)?null:a})(t,e,this.mainPlaylistLoader_.sidxMapping_)),this.mainPlaylistLoader_.main=e||t;let i=this.mainPlaylistLoader_.main.locations&&this.mainPlaylistLoader_.main.locations[0];if(i&&i!==this.mainPlaylistLoader_.srcUrl&&(this.mainPlaylistLoader_.srcUrl=i),(!t||e&&e.minimumUpdatePeriod!==t.minimumUpdatePeriod)&&this.updateMinimumUpdatePeriodTimeout_(),this.addEventStreamToMetadataTrack_(e),e){let{duration:t,endList:i}=e,n=[];e.playlists.forEach(e=>{n.push({id:e.id,bandwidth:e.attributes.BANDWIDTH,resolution:e.attributes.RESOLUTION,codecs:e.attributes.CODECS})}),r.parsedManifest={duration:t,isLive:!i,renditions:n},this.trigger({type:"manifestparsecomplete",metadata:r})}return!!e}updateMinimumUpdatePeriodTimeout_(){let e=this.mainPlaylistLoader_;e.createMupOnMedia_&&(e.off("loadedmetadata",e.createMupOnMedia_),e.createMupOnMedia_=null),e.minimumUpdatePeriodTimeout_&&(h.default.clearTimeout(e.minimumUpdatePeriodTimeout_),e.minimumUpdatePeriodTimeout_=null);let t=e.main&&e.main.minimumUpdatePeriod;if(0===t&&(e.media()?t=1e3*e.media().targetDuration:(e.createMupOnMedia_=e.updateMinimumUpdatePeriodTimeout_,e.one("loadedmetadata",e.createMupOnMedia_))),"number"!=typeof t||t<=0){t<0&&this.logger_(`found invalid minimumUpdatePeriod of ${t}, not setting a timeout`);return}this.createMUPTimeout_(t)}createMUPTimeout_(e){let t=this.mainPlaylistLoader_;t.minimumUpdatePeriodTimeout_=h.default.setTimeout(()=>{t.minimumUpdatePeriodTimeout_=null,t.trigger("minimumUpdatePeriod"),t.createMUPTimeout_(e)},e)}refreshXml_(){this.requestMain_((e,t)=>{if(t){var r,i;let e;this.media_&&(this.media_=this.mainPlaylistLoader_.main.playlists[this.media_.id]),this.mainPlaylistLoader_.sidxMapping_=(r=this.mainPlaylistLoader_.main,i=this.mainPlaylistLoader_.sidxMapping_,e=sG(r.playlists,i),su(r,(t,r,n,a)=>{if(t.playlists&&t.playlists.length){let r=t.playlists;e=aM(e,sG(r,i))}}),e),this.addSidxSegments_(this.media(),this.state,e=>{this.refreshMedia_(this.media().id)})}})}refreshMedia_(e){if(!e)throw Error("refreshMedia_ must take a media id");this.media_&&this.isMain_&&this.handleMain_();let t=this.mainPlaylistLoader_.main.playlists,r=!this.media_||this.media_!==t[e];if(r?this.media_=t[e]:this.trigger("playlistunchanged"),!this.mediaUpdateTimeout){let e=()=>{this.media().endList||(this.mediaUpdateTimeout=h.default.setTimeout(()=>{this.trigger("mediaupdatetimeout"),e()},sk(this.media(),!!r)))};e()}this.trigger("loadedplaylist")}addEventStreamToMetadataTrack_(e){if(e&&this.mainPlaylistLoader_.main.eventStream){let e=this.mainPlaylistLoader_.main.eventStream.map(e=>({cueTime:e.start,frames:[{data:e.messageData}]}));this.addMetadataToTextTrack("EventStream",e,this.mainPlaylistLoader_.main.duration)}}getKeyIdSet(e){if(e.contentProtection){let t=new Set;for(let r in e.contentProtection){let i=e.contentProtection[r].attributes["cenc:default_KID"];i&&t.add(i.replace(/-/g,"").toLowerCase())}return t}}}var sK={GOAL_BUFFER_LENGTH:30,MAX_GOAL_BUFFER_LENGTH:60,BACK_BUFFER_LENGTH:30,GOAL_BUFFER_LENGTH_RATE:1,INITIAL_BANDWIDTH:4194304,BANDWIDTH_VARIANCE:1.2,BUFFER_LOW_WATER_LINE:0,MAX_BUFFER_LOW_WATER_LINE:30,EXPERIMENTAL_MAX_BUFFER_LOW_WATER_LINE:16,BUFFER_LOW_WATER_LINE_RATE:1,BUFFER_HIGH_WATER_LINE:30};let sY=function(e){return e.on=e.addEventListener,e.off=e.removeEventListener,e},sQ=function(e){try{return URL.createObjectURL(new Blob([e],{type:"application/javascript"}))}catch(r){let t=new BlobBuilder;return t.append(e),URL.createObjectURL(t.getBlob())}},sJ=function(e){return function(){let t=sQ(e),r=sY(new Worker(t));r.objURL=t;let i=r.terminate;return r.on=r.addEventListener,r.off=r.removeEventListener,r.terminate=function(){return URL.revokeObjectURL(t),i.call(this)},r}},sZ=function(e){return`var browserWorkerPolyFill = ${sY.toString()};
152browserWorkerPolyFill(self);
153`+e},s0=function(e){return e.toString().replace(/^function.+?{/,"").slice(0,-1)};var s1=sJ(sZ(s0(function(){var t,r="u">typeof globalThis?globalThis:"u">typeof window?window:e.g,i=function(){this.init=function(){var e={};this.on=function(t,r){e[t]||(e[t]=[]),e[t]=e[t].concat(r)},this.off=function(t,r){var i;return!!e[t]&&(i=e[t].indexOf(r),e[t]=e[t].slice(),e[t].splice(i,1),i>-1)},this.trigger=function(t){var r,i,n,a;
153if(r=e[t])if(2==arguments.length)for(i=0,n=r.length;i<n;++i)r[i].call(this,arguments[1]);else{for(a=[],i=arguments.length,i=1;i<arguments.length;++i)a.push(arguments[i]);for(i=0,n=r.length;i<n;++i)r[i].apply(this,a)}},this.dispose=function(){e={}}}};i.prototype.pipe=function(e){return this.on("data",function(t){e.push(t)}),this.on("done",function(t){e.flush(t)}),this.on("partialdone",function(t){e.partialFlush(t)}),this.on("endedtimeline",function(t){e.endTimeline(t)}),this.on("reset",function(t){e.reset(t)}),e},i.prototype.push=function(e){this.trigger("data",e)},i.prototype.flush=function(e){this.trigger("done",e)},i.prototype.partialFlush=function(e){this.trigger("partialdone",e)},i.prototype.endTimeline=function(e){this.trigger("endedtimeline",e)},i.prototype.reset=function(e){this.trigger("reset",e)};var n=function(e){var t,r=new DataView(e.buffer,e.byteOffset,e.byteLength);return r.getBigUint64?(t=r.getBigUint64(0))<Number.MAX_SAFE_INTEGER?Number(t):t:0x100000000*r.getUint32(0)+r.getUint32(4)},a=0x100000000,s=a;if(e1={avc1:[],avcC:[],btrt:[],dinf:[],dref:[],esds:[],ftyp:[],hdlr:[],mdat:[],mdhd:[],mdia:[],mfhd:[],minf:[],moof:[],moov:[],mp4a:[],mvex:[],mvhd:[],pasp:[],sdtp:[],smhd:[],stbl:[],stco:[],stsc:[],stsd:[],stsz:[],stts:[],styp:[],tfdt:[],tfhd:[],traf:[],trak:[],trun:[],trex:[],tkhd:[],vmhd:[]},"u">typeof Uint8Array){for(eL in e1)e1.hasOwnProperty(eL)&&(e1[eL]=[eL.charCodeAt(0),eL.charCodeAt(1),eL.charCodeAt(2),eL.charCodeAt(3)]);e2=new Uint8Array([105,115,111,109]),e5=new Uint8Array([97,118,99,49]),e4=new Uint8Array([0,0,0,1]),e3={video:new Uint8Array([0,0,0,0,0,0,0,0,118,105,100,101,0,0,0,0,0,0,0,0,0,0,0,0,86,105,100,101,111,72,97,110,100,108,101,114,0]),audio:new Uint8Array([0,0,0,0,0,0,0,0,115,111,117,110,0,0,0,0,0,0,0,0,0,0,0,0,83,111,117,110,100,72,97,110,100,108,101,114,0])},e7=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,12,117,114,108,32,0,0,0,1]),e6=new Uint8Array([0,0,0,0,0,0,0,0]),te=e9=new Uint8Array([0,0,0,0,0,0,0,0]),tt=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0]),tr=e9,e8=new Uint8Array([0,0,0,1,0,0,0,0,0,0,0,0])}eF=function(e){var t,r,i=[],n=0;for(t=1;t<arguments.length;t++)i.push(arguments[t]);for(t=i.length;t--;)n+=i[t].byteLength;for(new DataView((r=new Uint8Array(n+8)).buffer,r.byteOffset,r.byteLength).setUint32(0,r.byteLength),r.set(e,4),t=0,n=8;t<i.length;t++)r.set(i[t],n),n+=i[t].byteLength;return r};eX=function(e){var t=new Uint8Array([0,0,0,0,0,0,0,2,0,0,0,3,0,1,95,144,e.duration>>>24&255,e.duration>>>16&255,e.duration>>>8&255,255&e.duration,85,196,0,0]);return e.samplerate&&(t[12]=e.samplerate>>>24&255,t[13]=e.samplerate>>>16&255,t[14]=e.samplerate>>>8&255,t[15]=255&e.samplerate),eF(e1.mdhd,t)},eG=function(e){var t;return eF(e1.mdia,eX(e),(t=e.type,eF(e1.hdlr,e3[t])),e$(e))},e$=function(e){return eF(e1.minf,"video"===e.type?eF(e1.vmhd,e8):eF(e1.smhd,e6),eF(e1.dinf,eF(e1.dref,e7)),eY(e))},ez=function(e){for(var t=e.length,r=[];t--;)r[t]=eW(e[t]);return eF.apply(null,[e1.moov,eH(0xffffffff)].concat(r).concat(eq(e)))},eq=function(e){for(var t=e.length,r=[];t--;)r[t]=eZ(e[t]);return eF.apply(null,[e1.mvex].concat(r))},eH=function(e){var t=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,2,0,1,95,144,(0xff000000&e)>>24,(0xff0000&e)>>16,(65280&e)>>8,255&e,0,1,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255]);return eF(e1.mvhd,t)},eK=function(e){var t,r,i=e.samples||[],n=new Uint8Array(4+i.length);for(r=0;r<i.length;r++)t=i[r].flags,n[r+4]=t.dependsOn<<4|t.isDependedOn<<2|t.hasRedundancy;return eF(e1.sdtp,n)},eY=function(e){return eF(e1.stbl,eQ(e),eF(e1.stts,tr),eF(e1.stsc,te),eF(e1.stsz,tt),eF(e1.stco,e9))},eQ=function(e){return eF(e1.stsd,new Uint8Array([0,0,0,0,0,0,0,1]),"video"===e.type?eD(e):eR(e))},eD=function(e){var t,r,i=e.sps||[],n=e.pps||[],a=[],s=[];for(t=0;t<i.length;t++)a.push((65280&i[t].byteLength)>>>8),a.push(255&i[t].byteLength),a=a.concat(Array.prototype.slice.call(i[t]));for(t=0;t<n.length;t++)s.push((65280&n[t].byteLength)>>>8),s.push(255&n[t].byteLength),s=s.concat(Array.prototype.slice.call(n[t]));if(r=[e1.avc1,new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,(65280&e.width)>>8,255&e.width,(65280&e.height)>>8,255&e.height,0,72,0,0,0,72,0,0,0,0,0,0,0,1,19,118,105,100,101,111,106,115,45,99,111,110,116,114,105,98,45,104,108,115,0,0,0,0,0,0,0,0,0,0,0,0,0,24,17,17]),eF(e1.avcC,new Uint8Array([1,e.profileIdc,e.profileCompatibility,e.levelIdc,255].concat([i.length],a,[n.length],s))),eF(e1.btrt,new Uint8Array([0,28,156,128,0,45,198,192,0,45,198,192]))],e.sarRatio){var o=e.sarRatio[0],l=e.sarRatio[1];
153r.push(eF(e1.pasp,new Uint8Array([(0xff000000&o)>>24,(0xff0000&o)>>16,(65280&o)>>8,255&o,(0xff000000&l)>>24,(0xff0000&l)>>16,(65280&l)>>8,255&l])))}return eF.apply(null,r)},eR=function(e){return eF(e1.mp4a,new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,(65280&e.channelcount)>>8,255&e.channelcount,(65280&e.samplesize)>>8,255&e.samplesize,0,0,0,0,(65280&e.samplerate)>>8,255&e.samplerate,0,0]),eF(e1.esds,new Uint8Array([0,0,0,0,3,25,0,0,0,4,17,64,21,0,6,0,0,0,218,192,0,0,218,192,5,2,e.audioobjecttype<<3|e.samplingfrequencyindex>>>1,e.samplingfrequencyindex<<7|e.channelcount<<3,6,1,2])))},eV=function(e){var t=new Uint8Array([0,0,0,7,0,0,0,0,0,0,0,0,(0xff000000&e.id)>>24,(0xff0000&e.id)>>16,(65280&e.id)>>8,255&e.id,0,0,0,0,(0xff000000&e.duration)>>24,(0xff0000&e.duration)>>16,(65280&e.duration)>>8,255&e.duration,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,(65280&e.width)>>8,255&e.width,0,0,(65280&e.height)>>8,255&e.height,0,0]);return eF(e1.tkhd,t)},eJ=function(e){var t,r,i,n,a,o;return(t=eF(e1.tfhd,new Uint8Array([0,0,0,58,(0xff000000&e.id)>>24,(0xff0000&e.id)>>16,(65280&e.id)>>8,255&e.id,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0])),a=Math.floor(e.baseMediaDecodeTime/s),o=Math.floor(e.baseMediaDecodeTime%s),r=eF(e1.tfdt,new Uint8Array([1,0,0,0,a>>>24&255,a>>>16&255,a>>>8&255,255&a,o>>>24&255,o>>>16&255,o>>>8&255,255&o])),"audio"===e.type)?(i=e0(e,92),eF(e1.traf,t,r,i)):(n=eK(e),i=e0(e,n.length+92),eF(e1.traf,t,r,i,n))},eW=function(e){return e.duration=e.duration||0xffffffff,eF(e1.trak,eV(e),eG(e))},eZ=function(e){var t=new Uint8Array([0,0,0,0,(0xff000000&e.id)>>24,(0xff0000&e.id)>>16,(65280&e.id)>>8,255&e.id,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,1]);return"video"!==e.type&&(t[t.length-1]=0),eF(e1.trex,t)},eU=function(e,t){var r=0,i=0,n=0,a=0;return e.length&&(void 0!==e[0].duration&&(r=1),void 0!==e[0].size&&(i=2),void 0!==e[0].flags&&(n=4),void 0!==e[0].compositionTimeOffset&&(a=8)),[0,0,r|i|n|a,1,(0xff000000&e.length)>>>24,(0xff0000&e.length)>>>16,(65280&e.length)>>>8,255&e.length,(0xff000000&t)>>>24,(0xff0000&t)>>>16,(65280&t)>>>8,255&t]},eB=function(e,t){var r,i,n,a,s,o;for(t+=20+16*(a=e.samples||[]).length,(i=new Uint8Array((n=eU(a,t)).length+16*a.length)).set(n),r=n.length,o=0;o<a.length;o++)s=a[o],i[r++]=(0xff000000&s.duration)>>>24,i[r++]=(0xff0000&s.duration)>>>16,i[r++]=(65280&s.duration)>>>8,i[r++]=255&s.duration,i[r++]=(0xff000000&s.size)>>>24,i[r++]=(0xff0000&s.size)>>>16,i[r++]=(65280&s.size)>>>8,i[r++]=255&s.size,i[r++]=s.flags.isLeading<<2|s.flags.dependsOn,i[r++]=s.flags.isDependedOn<<6|s.flags.hasRedundancy<<4|s.flags.paddingValue<<1|s.flags.isNonSyncSample,i[r++]=61440&s.flags.degradationPriority,i[r++]=15&s.flags.degradationPriority,i[r++]=(0xff000000&s.compositionTimeOffset)>>>24,i[r++]=(0xff0000&s.compositionTimeOffset)>>>16,i[r++]=(65280&s.compositionTimeOffset)>>>8,i[r++]=255&s.compositionTimeOffset;return eF(e1.trun,i)},eM=function(e,t){var r,i,n,a,s,o;for(t+=20+8*(a=e.samples||[]).length,(r=new Uint8Array((n=eU(a,t)).length+8*a.length)).set(n),i=n.length,o=0;o<a.length;o++)s=a[o],r[i++]=(0xff000000&s.duration)>>>24,r[i++]=(0xff0000&s.duration)>>>16,r[i++]=(65280&s.duration)>>>8,r[i++]=255&s.duration,r[i++]=(0xff000000&s.size)>>>24,r[i++]=(0xff0000&s.size)>>>16,r[i++]=(65280&s.size)>>>8,r[i++]=255&s.size;return eF(e1.trun,r)},e0=function(e,t){return"audio"===e.type?eM(e,t):eB(e,t)};var o=function(e,t){var r={size:0,flags:{isLeading:0,dependsOn:1,isDependedOn:0,hasRedundancy:0,degradationPriority:0,isNonSyncSample:1}};return r.dataOffset=t,r.compositionTimeOffset=e.pts-e.dts,r.duration=e.duration,r.size=4*e.length,r.size+=e.byteLength,e.keyFrame&&(r.flags.dependsOn=2,r.flags.isNonSyncSample=0),r},l=[33,16,5,32,164,27],c=[33,65,108,84,1,2,4,8,168,2,4,8,17,191,252],u=function(e){for(var t=[];e--;)t.push(0);return t};tn=function(e){return 9e4*e},ta=function(e,t){return e*t},ts=function(e){return e/9e4},to=function(e,t){return e/t};var d=9e4,p=tn,h=ts,f=function(e,t){return tn(to(e,t))},g=function(e,t){return ta(ts(e),t)},m=function(e,t,r){return ts(r?e:e-t)},y=function(){if(!ti){var e;ti=Object.keys(e={96e3:[l,[227,64],u(154),[56]],88200:[l,[231],u(170),[56]],64e3:[l,[248,192],u(240),[56]],48e3:[l,[255,192],u(268),[55,148,128],u(54),[112]],44100:[l,[255,192],u(268),[55,163,128],u(84),[112]],32e3:[l,[255,192],u(268),[55,234],u(226),[112]],24e3:[l,[255,192],u(268),[55,255,128],u(268),[111,112],u(126),[224]],16e3:[l,[255,192],u(268),[55,255,128],u(268),[111,255],u(269),[223,108],u(195),[1,192]],12e3:[c,u(268),[3,127,248],u(268),[6,255,240],u(268),[13,255,224],u(268),[27,253,128],u(259),[56]],11025:[c,u(268),[3,127,248],u(268),[6,255,240],u(268),[13,255,224],u(268),[27,255,192],u(268),[55,175,128],u(108),[112]],8e3:[c,u(268),[3,121,16],u(47),[7]]}).reduce(function(t,r){return t[r]=new Uint8Array(e[r].reduce(function(e,t){return e.concat(t)},[])),t},{})}return ti},b=function(e){var t,r=0;for(t=0;t<e.length;t++)r+=e[t].data.byteLength;return r},v=function(e){for(var t=0,r={payloadType:-1,payloadSize:0},i=0,n=0;t<e.byteLength&&128!==e[t];){for(;255===e[t];)i+=255,t++;for(i+=e[t++];255===e[t];)n+=255,t++;if(n+=e[t++],!r.payload&&4===i){if("GA94"===String.fromCharCode(e[t+3],e[t+4],e[t+5],e[t+6])){r.payloadType=i,r.payloadSize=n,r.payload=e.subarray(t,t+n);break}r.payload=void 0}t+=n,i=0,n=0}return r},x=function(e){return 181!==e.payload[0]||(e.payload[1]<<8|e.payload[2])!=49||"GA94"!==String.fromCharCode(e.payload[3],e.payload[4],e.payload[5],e.payload[6])||3!==e.payload[7]?null:e.payload.subarray(8,e.payload.length-1)},_=function(e,t){var r,i,n,a,s=[];if(!(64&t[0]))return s;for(r=0,i=31&t[0];r<i;r++)a={type:3&t[(n=3*r)+2],pts:e},4&t[n+2]&&(a.ccData=t[n+3]<<8|t[n+4],s.push(a));return s},w=function(e){for(var t,r,i=e.byteLength,n=[],a=1;a<i-2;)0===e[a]&&0===e[a+1]&&3===e[a+2]?(n.push(a+2),a+=2):a++;if(0===n.length)return e;
153r=new Uint8Array(t=i-n.length);var s=0;for(a=0;a<t;s++,a++)s===n[0]&&(s++,n.shift()),r[a]=e[s];return r},T=4,S=function(e){e=e||{},S.prototype.init.call(this),this.parse708captions_="boolean"!=typeof e.parse708captions||e.parse708captions,this.captionPackets_=[],this.ccStreams_=[new D(0,0),new D(0,1),new D(1,0),new D(1,1)],this.parse708captions_&&(this.cc708Stream_=new A({captionServices:e.captionServices})),this.reset(),this.ccStreams_.forEach(function(e){e.on("data",this.trigger.bind(this,"data")),e.on("partialdone",this.trigger.bind(this,"partialdone")),e.on("done",this.trigger.bind(this,"done"))},this),this.parse708captions_&&(this.cc708Stream_.on("data",this.trigger.bind(this,"data")),this.cc708Stream_.on("partialdone",this.trigger.bind(this,"partialdone")),this.cc708Stream_.on("done",this.trigger.bind(this,"done")))};S.prototype=new i,S.prototype.push=function(e){var t,r,i;if("sei_rbsp"===e.nalUnitType&&(t=v(e.escapedRBSP)).payload&&t.payloadType===T&&(r=x(t))){if(e.dts<this.latestDts_){this.ignoreNextEqualDts_=!0;return}if(e.dts===this.latestDts_&&this.ignoreNextEqualDts_){this.numSameDts_--,this.numSameDts_||(this.ignoreNextEqualDts_=!1);return}i=_(e.pts,r),this.captionPackets_=this.captionPackets_.concat(i),this.latestDts_!==e.dts&&(this.numSameDts_=0),this.numSameDts_++,this.latestDts_=e.dts}},S.prototype.flushCCStreams=function(e){this.ccStreams_.forEach(function(t){return"flush"===e?t.flush():t.partialFlush()},this)},S.prototype.flushStream=function(e){this.captionPackets_.length&&(this.captionPackets_.forEach(function(e,t){e.presortIndex=t}),this.captionPackets_.sort(function(e,t){return e.pts===t.pts?e.presortIndex-t.presortIndex:e.pts-t.pts}),this.captionPackets_.forEach(function(e){e.type<2?this.dispatchCea608Packet(e):this.dispatchCea708Packet(e)},this),this.captionPackets_.length=0),this.flushCCStreams(e)},S.prototype.flush=function(){return this.flushStream("flush")},S.prototype.partialFlush=function(){return this.flushStream("partialFlush")},S.prototype.reset=function(){this.latestDts_=null,this.ignoreNextEqualDts_=!1,this.numSameDts_=0,this.activeCea608Channel_=[null,null],this.ccStreams_.forEach(function(e){e.reset()})},S.prototype.dispatchCea608Packet=function(e){this.setsTextOrXDSActive(e)?this.activeCea608Channel_[e.type]=null:this.setsChannel1Active(e)?this.activeCea608Channel_[e.type]=0:this.setsChannel2Active(e)&&(this.activeCea608Channel_[e.type]=1),null!==this.activeCea608Channel_[e.type]&&this.ccStreams_[(e.type<<1)+this.activeCea608Channel_[e.type]].push(e)},S.prototype.setsChannel1Active=function(e){return(30720&e.ccData)==4096},S.prototype.setsChannel2Active=function(e){return(30720&e.ccData)==6144},S.prototype.setsTextOrXDSActive=function(e){return(28928&e.ccData)==256||(30974&e.ccData)==4138||(30974&e.ccData)==6186},S.prototype.dispatchCea708Packet=function(e){this.parse708captions_&&this.cc708Stream_.push(e)};var C={127:9834,4128:32,4129:160,4133:8230,4138:352,4140:338,4144:9608,4145:8216,4146:8217,4147:8220,4148:8221,4149:8226,4153:8482,4154:353,4156:339,4157:8480,4159:376,4214:8539,4215:8540,4216:8541,4217:8542,4218:9168,4219:9124,4220:9123,4221:9135,4222:9126,4223:9121,4256:12600},E=function(e){var t=C[e]||e;return 4096&e&&e===t?"":String.fromCharCode(t)},k=function(e){return 32<=e&&e<=127||160<=e&&e<=255},N=function(e){this.windowNum=e,this.reset()};N.prototype.reset=function(){this.clearText(),this.pendingNewLine=!1,this.winAttr={},this.penAttr={},this.penLoc={},this.penColor={},this.visible=0,this.rowLock=0,this.columnLock=0,this.priority=0,this.relativePositioning=0,this.anchorVertical=0,this.anchorHorizontal=0,this.anchorPoint=0,this.rowCount=1,this.virtualRowCount=this.rowCount+1,this.columnCount=41,this.windowStyle=0,this.penStyle=0},N.prototype.getText=function(){return this.rows.join("\n")},N.prototype.clearText=function(){this.rows=[""],this.rowIdx=0},N.prototype.newLine=function(e){for(this.rows.length>=this.virtualRowCount&&"function"==typeof this.beforeRowOverflow&&this.beforeRowOverflow(e),this.rows.length>0&&(this.rows.push(""),this.rowIdx++);this.rows.length>this.virtualRowCount;)this.rows.shift(),this.rowIdx--},N.prototype.isEmpty=function(){return 0===this.rows.length||1===this.rows.length&&""===this.rows[0]},N.prototype.addText=function(e){this.rows[this.rowIdx]+=e},N.prototype.backspace=function(){if(!this.isEmpty()){var e=this.rows[this.rowIdx];this.rows[this.rowIdx]=e.substr(0,e.length-1)}};var I=function(e,t,r){this.serviceNum=e,this.text="",this.currentWindow=new N(-1),this.windows=[],this.stream=r,"string"==typeof t&&this.createTextDecoder(t)};I.prototype.init=function(e,t){this.startPts=e;for(var r=0;r<8;r++)this.windows[r]=new N(r),"function"==typeof t&&(this.windows[r].beforeRowOverflow=t)},I.prototype.setCurrentWindow=function(e){this.currentWindow=this.windows[e]},I.prototype.createTextDecoder=function(e){if("u"<typeof TextDecoder)this.stream.trigger("log",{level:"warn",message:"The `encoding` option is unsupported without TextDecoder support"});else try{this.textDecoder_=new TextDecoder(e)}catch(t){this.stream.trigger("log",{level:"warn",message:"TextDecoder could not be created with "+e+" encoding. "+t})}};var A=function(e){e=e||{},A.prototype.init.call(this);var t,r=this,i=e.captionServices||{},n={};
153Object.keys(i).forEach(e=>{t=i[e],/^SERVICE/.test(e)&&(n[e]=t.encoding)}),this.serviceEncodings=n,this.current708Packet=null,this.services={},this.push=function(e){3===e.type?r.new708Packet():null===r.current708Packet&&r.new708Packet(),r.add708Bytes(e)}};A.prototype=new i,A.prototype.new708Packet=function(){null!==this.current708Packet&&this.push708Packet(),this.current708Packet={data:[],ptsVals:[]}},A.prototype.add708Bytes=function(e){var t=e.ccData;this.current708Packet.ptsVals.push(e.pts),this.current708Packet.data.push(t>>>8),this.current708Packet.data.push(255&t)},A.prototype.push708Packet=function(){var e=this.current708Packet,t=e.data,r=null,i=null,n=0,a=t[n++];for(e.seq=a>>6,e.sizeCode=63&a;n<t.length;n++)r=(a=t[n++])>>5,i=31&a,7===r&&i>0&&(r=a=t[n++]),this.pushServiceBlock(r,n,i),i>0&&(n+=i-1)},A.prototype.pushServiceBlock=function(e,t,r){var i,n=t,a=this.current708Packet.data,s=this.services[e];for(s||(s=this.initService(e,n));n<t+r&&n<a.length;n++)k(i=a[n])?n=this.handleText(n,s):24===i?n=this.multiByteCharacter(n,s):16===i?n=this.extendedCommands(n,s):128<=i&&i<=135?n=this.setCurrentWindow(n,s):152<=i&&i<=159?n=this.defineWindow(n,s):136===i?n=this.clearWindows(n,s):140===i?n=this.deleteWindows(n,s):137===i?n=this.displayWindows(n,s):138===i?n=this.hideWindows(n,s):139===i?n=this.toggleWindows(n,s):151===i?n=this.setWindowAttributes(n,s):144===i?n=this.setPenAttributes(n,s):145===i?n=this.setPenColor(n,s):146===i?n=this.setPenLocation(n,s):143===i?s=this.reset(n,s):8===i?s.currentWindow.backspace():12===i?s.currentWindow.clearText():13===i?s.currentWindow.pendingNewLine=!0:14===i?s.currentWindow.clearText():141===i&&n++},A.prototype.extendedCommands=function(e,t){return k(this.current708Packet.data[++e])&&(e=this.handleText(e,t,{isExtended:!0})),e},A.prototype.getPts=function(e){return this.current708Packet.ptsVals[Math.floor(e/2)]},A.prototype.initService=function(e,t){var r,i="SERVICE"+e,n=this;return i in this.serviceEncodings&&(r=this.serviceEncodings[i]),this.services[e]=new I(e,r,n),this.services[e].init(this.getPts(t),function(t){n.flushDisplayed(t,n.services[e])}),this.services[e]},A.prototype.handleText=function(e,t,r){var i,n,a=r&&r.isExtended,s=r&&r.isMultiByte,o=this.current708Packet.data,l=o[e],c=o[e+1],u=t.currentWindow;return s?(n=[l,c],e++):n=[l],i=t.textDecoder_&&!a?t.textDecoder_.decode(new Uint8Array(n)):s?String.fromCharCode(parseInt(n.map(e=>("0"+(255&e).toString(16)).slice(-2)).join(""),16)):E(4096*!!a|l),u.pendingNewLine&&!u.isEmpty()&&u.newLine(this.getPts(e)),u.pendingNewLine=!1,u.addText(i),e},A.prototype.multiByteCharacter=function(e,t){var r=this.current708Packet.data,i=r[e+1],n=r[e+2];return k(i)&&k(n)&&(e=this.handleText(++e,t,{isMultiByte:!0})),e},A.prototype.setCurrentWindow=function(e,t){var r=this.current708Packet.data[e];return t.setCurrentWindow(7&r),e},A.prototype.defineWindow=function(e,t){var r=this.current708Packet.data,i=r[e],n=7&i;t.setCurrentWindow(n);var a=t.currentWindow;return a.visible=(32&(i=r[++e]))>>5,a.rowLock=(16&i)>>4,a.columnLock=(8&i)>>3,a.priority=7&i,a.relativePositioning=(128&(i=r[++e]))>>7,a.anchorVertical=127&i,a.anchorHorizontal=i=r[++e],a.anchorPoint=(240&(i=r[++e]))>>4,a.rowCount=15&i,a.columnCount=63&(i=r[++e]),a.windowStyle=(56&(i=r[++e]))>>3,a.penStyle=7&i,a.virtualRowCount=a.rowCount+1,e},A.prototype.setWindowAttributes=function(e,t){var r=this.current708Packet.data,i=r[e],n=t.currentWindow.winAttr;return n.fillOpacity=(192&(i=r[++e]))>>6,n.fillRed=(48&i)>>4,n.fillGreen=(12&i)>>2,n.fillBlue=3&i,n.borderType=(192&(i=r[++e]))>>6,n.borderRed=(48&i)>>4,n.borderGreen=(12&i)>>2,n.borderBlue=3&i,i=r[++e],n.borderType+=(128&i)>>5,n.wordWrap=(64&i)>>6,n.printDirection=(48&i)>>4,n.scrollDirection=(12&i)>>2,n.justify=3&i,n.effectSpeed=(240&(i=r[++e]))>>4,n.effectDirection=(12&i)>>2,n.displayEffect=3&i,e},A.prototype.flushDisplayed=function(e,t){for(var r=[],i=0;i<8;i++)t.windows[i].visible&&!t.windows[i].isEmpty()&&r.push(t.windows[i].getText());t.endPts=e,t.text=r.join("\n\n"),this.pushCaption(t),t.startPts=e},A.prototype.pushCaption=function(e){""!==e.text&&(this.trigger("data",{startPts:e.startPts,endPts:e.endPts,text:e.text,stream
153:"cc708_"+e.serviceNum}),e.text="",e.startPts=e.endPts)},A.prototype.displayWindows=function(e,t){var r=this.current708Packet.data[++e],i=this.getPts(e);this.flushDisplayed(i,t);for(var n=0;n<8;n++)r&1<<n&&(t.windows[n].visible=1);return e},A.prototype.hideWindows=function(e,t){var r=this.current708Packet.data[++e],i=this.getPts(e);this.flushDisplayed(i,t);for(var n=0;n<8;n++)r&1<<n&&(t.windows[n].visible=0);return e},A.prototype.toggleWindows=function(e,t){var r=this.current708Packet.data[++e],i=this.getPts(e);this.flushDisplayed(i,t);for(var n=0;n<8;n++)r&1<<n&&(t.windows[n].visible^=1);return e},A.prototype.clearWindows=function(e,t){var r=this.current708Packet.data[++e],i=this.getPts(e);this.flushDisplayed(i,t);for(var n=0;n<8;n++)r&1<<n&&t.windows[n].clearText();return e},A.prototype.deleteWindows=function(e,t){var r=this.current708Packet.data[++e],i=this.getPts(e);this.flushDisplayed(i,t);for(var n=0;n<8;n++)r&1<<n&&t.windows[n].reset();return e},A.prototype.setPenAttributes=function(e,t){var r=this.current708Packet.data,i=r[e],n=t.currentWindow.penAttr;return n.textTag=(240&(i=r[++e]))>>4,n.offset=(12&i)>>2,n.penSize=3&i,n.italics=(128&(i=r[++e]))>>7,n.underline=(64&i)>>6,n.edgeType=(56&i)>>3,n.fontStyle=7&i,e},A.prototype.setPenColor=function(e,t){var r=this.current708Packet.data,i=r[e],n=t.currentWindow.penColor;return n.fgOpacity=(192&(i=r[++e]))>>6,n.fgRed=(48&i)>>4,n.fgGreen=(12&i)>>2,n.fgBlue=3&i,n.bgOpacity=(192&(i=r[++e]))>>6,n.bgRed=(48&i)>>4,n.bgGreen=(12&i)>>2,n.bgBlue=3&i,n.edgeRed=(48&(i=r[++e]))>>4,n.edgeGreen=(12&i)>>2,n.edgeBlue=3&i,e},A.prototype.setPenLocation=function(e,t){var r=this.current708Packet.data,i=r[e],n=t.currentWindow.penLoc;return t.currentWindow.pendingNewLine=!0,n.row=15&r[++e],n.column=63&r[++e],e},A.prototype.reset=function(e,t){var r=this.getPts(e);return this.flushDisplayed(r,t),this.initService(t.serviceNum,e)};var j={42:225,92:233,94:237,95:243,96:250,123:231,124:247,125:209,126:241,127:9608,304:174,305:176,306:189,307:191,308:8482,309:162,310:163,311:9834,312:224,313:160,314:232,315:226,316:234,317:238,318:244,319:251,544:193,545:201,546:211,547:218,548:220,549:252,550:8216,551:161,552:42,553:39,554:8212,555:169,556:8480,557:8226,558:8220,559:8221,560:192,561:194,562:199,563:200,564:202,565:203,566:235,567:206,568:207,569:239,570:212,571:217,572:249,573:219,574:171,575:187,800:195,801:227,802:205,803:204,804:236,805:210,806:242,807:213,808:245,809:123,810:125,811:92,812:94,813:95,814:124,815:126,816:196,817:228,818:214,819:246,820:223,821:165,822:164,823:9474,824:197,825:229,826:216,827:248,828:9484,829:9488,830:9492,831:9496},P=function(e){return null===e?"":String.fromCharCode(e=j[e]||e)},O=[4352,4384,4608,4640,5376,5408,5632,5664,5888,5920,4096,4864,4896,5120,5152],L=function(){for(var e=[],t=15;t--;)e.push({text:"",indent:0,offset:0});return e},D=function(e,t){D.prototype.init.call(this),this.field_=e||0,this.dataChannel_=t||0,this.name_="CC"+((this.field_<<1|this.dataChannel_)+1),this.setConstants(),this.reset(),this.push=function(e){var t,r,i,n,a;if((t=32639&e.ccData)===this.lastControlCode_){this.lastControlCode_=null;return}if((61440&t)==4096?this.lastControlCode_=t:t!==this.PADDING_&&(this.lastControlCode_=null),i=t>>>8,n=255&t,t!==this.PADDING_)if(t===this.RESUME_CAPTION_LOADING_)this.mode_="popOn";else if(t===this.END_OF_CAPTION_)this.mode_="popOn",this.clearFormatting(e.pts),this.flushDisplayed(e.pts),r=this.displayed_,this.displayed_=this.nonDisplayed_,this.nonDisplayed_=r,this.startPts_=e.pts;else if(t===this.ROLL_UP_2_ROWS_)this.rollUpRows_=2,this.setRollUp(e.pts);else if(t===this.ROLL_UP_3_ROWS_)this.rollUpRows_=3,this.setRollUp(e.pts);else if(t===this.ROLL_UP_4_ROWS_)this.rollUpRows_=4,this.setRollUp(e.pts);else if(t===this.CARRIAGE_RETURN_)this.clearFormatting(e.pts),this.flushDisplayed(e.pts),this.shiftRowsUp_(),this.startPts_=e.pts;else if(t===this.BACKSPACE_)"popOn"===this.mode_?this.nonDisplayed_[this.row_].text=this.nonDisplayed_[this.row_].text.slice(0,-1):this.displayed_[this.row_].text=this.displayed_[this.row_].text.slice(0,-1);else if(t===this.ERASE_DISPLAYED_MEMORY_)this.flushDisplayed(e.pts),this.displayed_=L();else if(t===this.ERASE_NON_DISPLAYED_MEMORY_)this.nonDisplayed_=L();else if(t===this.RESUME_DIRECT_CAPTIONING_)"paintOn"!==this.mode_&&(this.flushDisplayed(e.pts),this.displayed_=L()),this.mode_="paintOn",this.startPts_=e.pts;else if(this.isSpecialCharacter(i,n))a=P((i=(3&i)<<8)|n),this[this.mode_](e.pts,a),this.column_++;else if(this.isExtCharacter(i,n))"popOn"===this.mode_?this.nonDisplayed_[this.row_].text=this.nonDisplayed_[this.row_].text.slice(0,-1):this.displayed_[this.row_].text=this.displayed_[this.row_].text.slice(0,-1),a=P((i=(3&i)<<8)|n),this[this.mode_](e.pts,a),this.column_++;else if(this.isMidRowCode(i,n))this.clearFormatting(e.pts),this[this.mode_](e.pts," "),this.column_++,(14&n)==14&&this.addFormatting(e.pts,["i"]),(1&n)==1&&this.addFormatting(e.pts,["u"]);else if(this.isOffsetControlCode(i,n)){let e=3&n;this.nonDisplayed_[this.row_].offset=e,this.column_+=e}else if(this.isPAC(i,n)){var s=O.indexOf(7968&t);if("rollUp"===this.mode_&&(s-this.rollUpRows_+1<0&&(s=this.rollUpRows_-1),this.setRollUp(e.pts,s)
153),s!==this.row_&&s>=0&&s<=14&&(this.clearFormatting(e.pts),this.row_=s),1&n&&-1===this.formatting_.indexOf("u")&&this.addFormatting(e.pts,["u"]),(16&t)==16){let e=(14&t)>>1;this.column_=4*e,this.nonDisplayed_[this.row_].indent+=e}this.isColorPAC(n)&&(14&n)==14&&this.addFormatting(e.pts,["i"])}else this.isNormalChar(i)&&(0===n&&(n=null),a=P(i)+P(n),this[this.mode_](e.pts,a),this.column_+=a.length)}};D.prototype=new i,D.prototype.flushDisplayed=function(e){let t=e=>{this.trigger("log",{level:"warn",message:"Skipping a malformed 608 caption at index "+e+"."})},r=[];this.displayed_.forEach((e,i)=>{if(e&&e.text&&e.text.length){try{e.text=e.text.trim()}catch(e){t(i)}e.text.length&&r.push({text:e.text,line:i+1,position:10+Math.min(70,10*e.indent)+2.5*e.offset})}else null==e&&t(i)}),r.length&&this.trigger("data",{startPts:this.startPts_,endPts:e,content:r,stream:this.name_})},D.prototype.reset=function(){this.mode_="popOn",this.topRow_=0,this.startPts_=0,this.displayed_=L(),this.nonDisplayed_=L(),this.lastControlCode_=null,this.column_=0,this.row_=14,this.rollUpRows_=2,this.formatting_=[]},D.prototype.setConstants=function(){0===this.dataChannel_?(this.BASE_=16,this.EXT_=17,this.CONTROL_=(20|this.field_)<<8,this.OFFSET_=23):1===this.dataChannel_&&(this.BASE_=24,this.EXT_=25,this.CONTROL_=(28|this.field_)<<8,this.OFFSET_=31),this.PADDING_=0,this.RESUME_CAPTION_LOADING_=32|this.CONTROL_,this.END_OF_CAPTION_=47|this.CONTROL_,this.ROLL_UP_2_ROWS_=37|this.CONTROL_,this.ROLL_UP_3_ROWS_=38|this.CONTROL_,this.ROLL_UP_4_ROWS_=39|this.CONTROL_,this.CARRIAGE_RETURN_=45|this.CONTROL_,this.RESUME_DIRECT_CAPTIONING_=41|this.CONTROL_,this.BACKSPACE_=33|this.CONTROL_,this.ERASE_DISPLAYED_MEMORY_=44|this.CONTROL_,this.ERASE_NON_DISPLAYED_MEMORY_=46|this.CONTROL_},D.prototype.isSpecialCharacter=function(e,t){return e===this.EXT_&&t>=48&&t<=63},D.prototype.isExtCharacter=function(e,t){return(e===this.EXT_+1||e===this.EXT_+2)&&t>=32&&t<=63},D.prototype.isMidRowCode=function(e,t){return e===this.EXT_&&t>=32&&t<=47},D.prototype.isOffsetControlCode=function(e,t){return e===this.OFFSET_&&t>=33&&t<=35},D.prototype.isPAC=function(e,t){return e>=this.BASE_&&e<this.BASE_+8&&t>=64&&t<=127},D.prototype.isColorPAC=function(e){return e>=64&&e<=79||e>=96&&e<=127},D.prototype.isNormalChar=function(e){return e>=32&&e<=127},D.prototype.setRollUp=function(e,t){if("rollUp"!==this.mode_&&(this.row_=14,this.mode_="rollUp",this.flushDisplayed(e),this.nonDisplayed_=L(),this.displayed_=L()),void 0!==t&&t!==this.row_)for(var r=0;r<this.rollUpRows_;r++)this.displayed_[t-r]=this.displayed_[this.row_-r],this.displayed_[this.row_-r]={text:"",indent:0,offset:0};void 0===t&&(t=this.row_),this.topRow_=t-this.rollUpRows_+1},D.prototype.addFormatting=function(e,t){this.formatting_=this.formatting_.concat(t);var r=t.reduce(function(e,t){return e+"<"+t+">"},"");this[this.mode_](e,r)},D.prototype.clearFormatting=function(e){if(this.formatting_.length){var t=this.formatting_.reverse().reduce(function(e,t){return e+"</"+t+">"},"");this.formatting_=[],this[this.mode_](e,t)}},D.prototype.popOn=function(e,t){var r=this.nonDisplayed_[this.row_].text;r+=t,this.nonDisplayed_[this.row_].text=r},D.prototype.rollUp=function(e,t){var r=this.displayed_[this.row_].text;r+=t,this.displayed_[this.row_].text=r},D.prototype.shiftRowsUp_=function(){var e;for(e=0;e<this.topRow_;e++)this.displayed_[e]={text:"",indent:0,offset:0};for(e=this.row_+1;e<15;e++)this.displayed_[e]={text:"",indent:0,offset:0};for(e=this.topRow_;e<this.row_;e++)this.displayed_[e]=this.displayed_[e+1];this.displayed_[this.row_]={text:"",indent:0,offset:0}},D.prototype.paintOn=function(e,t){var r=this.displayed_[this.row_].text;r+=t,this.displayed_[this.row_].text=r};var R=S,M=D,B=A,U={H264_STREAM_TYPE:27,ADTS_STREAM_TYPE:15,METADATA_STREAM_TYPE:21},F="shared",$=function(e,t){var r=1;for(e>t&&(r=-1);Math.abs(t-e)>0x100000000;)e+=0x200000000*r;return e},z=function(e){var t,r;z.prototype.init.call(this),this.type_=e||F,this.push=function(e){"metadata"===e.type?this.trigger("data",e):(this.type_===F||e.type===this.type_)&&(void 0===r&&(r=e.dts),e.dts=$(e.dts,r),e.pts=$(e.pts,r),t=e.dts,this.trigger("data",e))},this.flush=function(){r=t,this.trigger("done")},this.endTimeline=function(){this.flush(),this.trigger("endedtimeline")},this.discontinuity=function(){r=void 0,t=void 0},this.reset=function(){this.discontinuity(),this.trigger("reset")}};z.prototype=new i;var q=(e,t,r)=>{if(!e)return -1;for(var i=r;i<e.length;i++)if(e[i]===t)return i;return -1},H=function(e,t,r){var i,n="";for(i=t;i<r;i++)n+="%"+("00"+e[i].toString(16)).slice(-2);return n},W=function(e,t,r){return decodeURIComponent(H(e,t,r))},V=function(e,t,r){return unescape(H(e,t,r))},G=function(e){return e[0]<<21|e[1]<<14|e[2]<<7|e[3]},X={APIC:function(e){var t,r,i=1;
1533!==e.data[0]||(t=q(e.data,0,i))<0||(e.mimeType=V(e.data,i,t),i=t+1,e.pictureType=e.data[i],i++,(r=q(e.data,0,i))<0||(e.description=W(e.data,i,r),i=r+1,"-->"===e.mimeType?e.url=V(e.data,i,e.data.length):e.pictureData=e.data.subarray(i,e.data.length)))},"T*":function(e){3===e.data[0]&&(e.value=W(e.data,1,e.data.length).replace(/\0*$/,""),e.values=e.value.split("\0"))},TXXX:function(e){var t;3!==e.data[0]||-1!==(t=q(e.data,0,1))&&(e.description=W(e.data,1,t),e.value=W(e.data,t+1,e.data.length).replace(/\0*$/,""),e.data=e.value)},"W*":function(e){e.url=V(e.data,0,e.data.length).replace(/\0.*$/,"")},WXXX:function(e){var t;3!==e.data[0]||-1!==(t=q(e.data,0,1))&&(e.description=W(e.data,1,t),e.url=V(e.data,t+1,e.data.length).replace(/\0.*$/,""))},PRIV:function(e){var t;for(t=0;t<e.data.length;t++)if(0===e.data[t]){e.owner=V(e.data,0,t);break}e.privateData=e.data.subarray(t+1),e.data=e.privateData}},K=function(e){var t,r=10,i=0,n=[];if(!(e.length<10)&&73===e[0]&&68===e[1]&&51===e[2]){i=G(e.subarray(6,10))+10,64&e[5]&&(r+=4,r+=G(e.subarray(10,14)),i-=G(e.subarray(16,20)));do{if((t=G(e.subarray(r+4,r+8)))<1)break;var a={id:String.fromCharCode(e[r],e[r+1],e[r+2],e[r+3]),data:e.subarray(r+10,r+t+10)};a.key=a.id,X[a.id]?X[a.id](a):"T"===a.id[0]?X["T*"](a):"W"===a.id[0]&&X["W*"](a),n.push(a),r+=10,r+=t}while(r<i)return n}},Y=G,Q=X;(tl=function(e){var t,r={descriptor:e&&e.descriptor},i=0,n=[],a=0;if(tl.prototype.init.call(this),this.dispatchType=U.METADATA_STREAM_TYPE.toString(16),r.descriptor)for(t=0;t<r.descriptor.length;t++)this.dispatchType+=("00"+r.descriptor[t].toString(16)).slice(-2);this.push=function(e){var t,r,s,o,l;if("timed-metadata"===e.type){if(e.dataAlignmentIndicator&&(a=0,n.length=0),0===n.length&&(e.data.length<10||73!==e.data[0]||68!==e.data[1]||51!==e.data[2]))return void this.trigger("log",{level:"warn",message:"Skipping unrecognized metadata packet"});if(n.push(e),a+=e.data.byteLength,1===n.length&&(i=Y(e.data.subarray(6,10))+10),!(a<i)){for(l=0,t={data:new Uint8Array(i),frames:[],pts:n[0].pts,dts:n[0].dts};l<i;)t.data.set(n[0].data.subarray(0,i-l),l),l+=n[0].data.byteLength,a-=n[0].data.byteLength,n.shift();r=10,64&t.data[5]&&(r+=4,r+=Y(t.data.subarray(10,14)),i-=Y(t.data.subarray(16,20)));do{if((s=Y(t.data.subarray(r+4,r+8)))<1){this.trigger("log",{level:"warn",message:"Malformed ID3 frame encountered. Skipping remaining metadata parsing."});break}if((o={id:String.fromCharCode(t.data[r],t.data[r+1],t.data[r+2],t.data[r+3]),data:t.data.subarray(r+10,r+s+10)}).key=o.id,Q[o.id]?Q[o.id](o):"T"===o.id[0]?Q["T*"](o):"W"===o.id[0]&&Q["W*"](o),"com.apple.streaming.transportStreamTimestamp"===o.owner){var c=o.data,u=(1&c[3])<<30|c[4]<<22|c[5]<<14|c[6]<<6|c[7]>>>2;u*=4,o.timeStamp=u+=3&c[7],void 0===t.pts&&void 0===t.dts&&(t.pts=o.timeStamp,t.dts=o.timeStamp),this.trigger("timestamp",o)}t.frames.push(o),r+=10,r+=s}while(r<i)this.trigger("data",t)}}}}).prototype=new i;var J=tl;(tc=function(){var e=new Uint8Array(188),t=0;tc.prototype.init.call(this),this.push=function(r){var i,n=0,a=188;for(t?((i=new Uint8Array(r.byteLength+t)).set(e.subarray(0,t)),i.set(r,t),t=0):i=r;a<i.byteLength;){if(71===i[n]&&71===i[a]){this.trigger("data",i.subarray(n,a)),n+=188,a+=188;continue}n++,a++}n<i.byteLength&&(e.set(i.subarray(n),0),t=i.byteLength-n)},this.flush=function(){188===t&&71===e[0]&&(this.trigger("data",e),t=0),this.trigger("done")},this.endTimeline=function(){this.flush(),this.trigger("endedtimeline")},this.reset=function(){t=0,this.trigger("reset")}}).prototype=new i,(tu=function(){var e,t,r,i;tu.prototype.init.call(this),i=this,this.packetsWaitingForPmt=[],this.programMapTable=void 0,e=function(e,i){var n=0;i.payloadUnitStartIndicator&&(n+=e[n]+1),"pat"===i.type?t(e.subarray(n),i):r(e.subarray(n),i)},t=function(e,t){t.section_number=e[7],t.last_section_number=e[8],i.pmtPid=(31&e[10])<<8|e[11],t.pmtPid=i.pmtPid},r=function(e,t){var r,n;if(1&e[5]){for(i.programMapTable={video:null,audio:null,"timed-metadata":{}},r=3+((15&e[1])<<8|e[2])-4,n=12+((15&e[10])<<8|e[11]);n<r;){var a=e[n],s=(31&e[n+1])<<8|e[n+2];a===U.H264_STREAM_TYPE&&null===i.programMapTable.video?i.programMapTable.video=s:a===U.ADTS_STREAM_TYPE&&null===i.programMapTable.audio?i.programMapTable.audio=s:a===U.METADATA_STREAM_TYPE&&(i.programMapTable["timed-metadata"][s]=a),n+=((15&e[n+3])<<8|e[n+4])+5}t.programMapTable=i.programMapTable}},this.push=function(t){var r={},i=4;if(r.payloadUnitStartIndicator=!!(64&t[1]),r.pid=31&t[1],r.pid<<=8,r.pid|=t[2],(48&t[3])>>>4>1&&(i+=t[i]+1),0===r.pid)r.type="pat",e(t.subarray(i),r),this.trigger("data",r);else if(r.pid===this.pmtPid)for(r.type="pmt",e(t.subarray(i),r),this.trigger("data",r);this.packetsWaitingForPmt.length;)this.processPes_.apply(this,this.packetsWaitingForPmt.shift());
153else void 0===this.programMapTable?this.packetsWaitingForPmt.push([t,i,r]):this.processPes_(t,i,r)},this.processPes_=function(e,t,r){r.pid===this.programMapTable.video?r.streamType=U.H264_STREAM_TYPE:r.pid===this.programMapTable.audio?r.streamType=U.ADTS_STREAM_TYPE:r.streamType=this.programMapTable["timed-metadata"][r.pid],r.type="pes",r.data=e.subarray(t),this.trigger("data",r)}}).prototype=new i,tu.STREAM_TYPES={h264:27,adts:15},(td=function(){var e,t=this,r=!1,i={data:[],size:0},n={data:[],size:0},a={data:[],size:0},s=function(e,t){var r;let i=e[0]<<16|e[1]<<8|e[2];t.data=new Uint8Array,1===i&&(t.packetLength=6+(e[4]<<8|e[5]),t.dataAlignmentIndicator=(4&e[6])!=0,192&(r=e[7])&&(t.pts=(14&e[9])<<27|(255&e[10])<<20|(254&e[11])<<12|(255&e[12])<<5|(254&e[13])>>>3,t.pts*=4,t.pts+=(6&e[13])>>>1,t.dts=t.pts,64&r&&(t.dts=(14&e[14])<<27|(255&e[15])<<20|(254&e[16])<<12|(255&e[17])<<5|(254&e[18])>>>3,t.dts*=4,t.dts+=(6&e[18])>>>1)),t.data=e.subarray(9+e[8]))},o=function(e,r,i){var n,a=new Uint8Array(e.size),o={type:r},l=0,c=0,u=!1;if(e.data.length&&!(e.size<9)){for(l=0,o.trackId=e.data[0].pid;l<e.data.length;l++)n=e.data[l],a.set(n.data,c),c+=n.data.byteLength;s(a,o),u="video"===r||o.packetLength<=e.size,(i||u)&&(e.size=0,e.data.length=0),u&&t.trigger("data",o)}};td.prototype.init.call(this),this.push=function(s){({pat:function(){},pes:function(){var e,t;switch(s.streamType){case U.H264_STREAM_TYPE:e=i,t="video";break;case U.ADTS_STREAM_TYPE:e=n,t="audio";break;case U.METADATA_STREAM_TYPE:e=a,t="timed-metadata";break;default:return}s.payloadUnitStartIndicator&&o(e,t,!0),e.data.push(s),e.size+=s.data.byteLength},pmt:function(){var i={type:"metadata",tracks:[]};null!==(e=s.programMapTable).video&&i.tracks.push({timelineStartInfo:{baseMediaDecodeTime:0},id:+e.video,codec:"avc",type:"video"}),null!==e.audio&&i.tracks.push({timelineStartInfo:{baseMediaDecodeTime:0},id:+e.audio,codec:"adts",type:"audio"}),r=!0,t.trigger("data",i)}})[s.type]()},this.reset=function(){i.size=0,i.data.length=0,n.size=0,n.data.length=0,this.trigger("reset")},this.flushStreams_=function(){o(i,"video"),o(n,"audio"),o(a,"timed-metadata")},this.flush=function(){if(!r&&e){var i={type:"metadata",tracks:[]};null!==e.video&&i.tracks.push({timelineStartInfo:{baseMediaDecodeTime:0},id:+e.video,codec:"avc",type:"video"}),null!==e.audio&&i.tracks.push({timelineStartInfo:{baseMediaDecodeTime:0},id:+e.audio,codec:"adts",type:"audio"}),t.trigger("data",i)}r=!1,this.flushStreams_(),this.trigger("done")}}).prototype=new i;var Z={PAT_PID:0,MP2T_PACKET_LENGTH:188,TransportPacketStream:tc,TransportParseStream:tu,ElementaryStream:td,TimestampRolloverStream:z,CaptionStream:R,Cea608Stream:M,Cea708Stream:B,MetadataStream:J};for(var ee in U)U.hasOwnProperty(ee)&&(Z[ee]=U[ee]);var et=d,er=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350];(tp=function(e){var t,r=0;tp.prototype.init.call(this),this.skipWarn_=function(e,t){this.trigger("log",{level:"warn",message:`adts ski
153ping bytes ${e} to ${t} in frame ${r} outside syncword`})},this.push=function(i){var n,a,s,o,l,c,u=0;if(e||(r=0),"audio"===i.type){for(t&&t.length?((t=new Uint8Array((o=t).byteLength+i.data.byteLength)).set(o),t.set(i.data,o.byteLength)):t=i.data;u+7<t.length;){if(255!==t[u]||(246&t[u+1])!=240){"number"!=typeof n&&(n=u),u++;continue}if("number"==typeof n&&(this.skipWarn_(n,u),n=null),s=(1&~t[u+1])*2,a=(3&t[u+3])<<11|t[u+4]<<3|(224&t[u+5])>>5,c=(l=((3&t[u+6])+1)*1024)*et/er[(60&t[u+2])>>>2],t.byteLength-u<a)break;this.trigger("data",{pts:i.pts+r*c,dts:i.dts+r*c,sampleCount:l,audioobjecttype:(t[u+2]>>>6&3)+1,channelcount:(1&t[u+2])<<2|(192&t[u+3])>>>6,samplerate:er[(60&t[u+2])>>>2],samplingfrequencyindex:(60&t[u+2])>>>2,samplesize:16,data:t.subarray(u+7+s,u+a)}),r++,u+=a}"number"==typeof n&&(this.skipWarn_(n,u),n=null),t=t.subarray(u)}},this.flush=function(){r=0,this.trigger("done")},this.reset=function(){t=void 0,this.trigger("reset")},this.endTimeline=function(){t=void 0,this.trigger("endedtimeline")}}).prototype=new i;var ei=tp,en=function(e){var t=e.byteLength,r=0,i=0;this.length=function(){return 8*t},this.bitsAvailable=function(){return 8*t+i},this.loadWord=function(){var n=e.byteLength-t,a=new Uint8Array(4),s=Math.min(4,t);if(0===s)throw Error("no bytes available");a.set(e.subarray(n,n+s)),r=new DataView(a.buffer).getUint32(0),i=8*s,t-=s},this.skipBits=function(e){var n;i>e||(e-=i,n=Math.floor(e/8),e-=8*n,t-=n,this.loadWord()),r<<=e,i-=e},this.readBits=function(e){var n=Math.min(i,e),a=r>>>32-n;return((i-=n)>0?r<<=n:t>0&&this.loadWord(),(n=e-n)>0)?a<<n|this.readBits(n):a},this.skipLeadingZeros=function(){var e;for(e=0;e<i;++e)if((r&0x80000000>>>e)!=0)return r<<=e,i-=e,e;return this.loadWord(),e+this.skipLeadingZeros()},this.skipUnsignedExpGolomb=function(){this.skipBits(1+this.skipLeadingZeros())},this.skipExpGolomb=function(){this.skipBits(1+this.skipLeadingZeros())},this.readUnsignedExpGolomb=function(){var e=this.skipLeadingZeros();return this.readBits(e+1)-1},this.readExpGolomb=function(){var e=this.readUnsignedExpGolomb();return 1&e?1+e>>>1:-1*(e>>>1)},this.readBoolean=function(){return 1===this.readBits(1)},this.readUnsignedByte=function(){return this.readBits(8)},this.loadWord()};(tf=function(){var e,t,r=0;tf.prototype.init.call(this),this.push=function(i){t?((n=new Uint8Array(t.byteLength+i.data.byteLength)).set(t),n.set(i.data,t.byteLength),t=n):t=i.data;for(var n,a=t.byteLength;r<a-3;r++)if(1===t[r+2]){e=r+5;break}for(;e<a;)switch(t[e]){case 0:if(0!==t[e-1]){e+=2;break}if(0!==t[e-2]){e++;break}r+3!==e-2&&this.trigger("data",t.subarray(r+3,e-2));do e++;while(1!==t[e]&&e<a)r=e-2,e+=3;break;case 1:if(0!==t[e-1]||0!==t[e-2]){e+=3;break}this.trigger("data",t.subarray(r+3,e-2)),r=e-2,e+=3;break;default:e+=3}t=t.subarray(r),e-=r,r=0},this.reset=function(){t=null,r=0,this.trigger("reset")},this.flush=function(){t&&t.byteLength>3&&this.trigger("data",t.subarray(r+3)),t=null,r=0,this.trigger("done")},this.endTimeline=function(){this.flush(),this.trigger("endedtimeline")}}).prototype=new i,tg={100:!0,110:!0,122:!0,244:!0,44:!0,83:!0,86:!0,118:!0,128:!0,138:!0,139:!0,134:!0},(th=function(){var e,t,r,i,n,a,s,o=new tf;th.prototype.init.call(this),e=this,this.push=function(e){"video"===e.type&&(t=e.trackId,r=e.pts,i=e.dts,o.push(e))},o.on("data",function(s){var o={trackId:t,pts:r,dts:i,data:s,nalUnitTypeCode:31&s[0]};switch(o.nalUnitTypeCode){case 5:o.nalUnitType="slice_layer_without_partitioning_rbsp_idr";break;case 6:o.nalUnitType="sei_rbsp",o.escapedRBSP=n(s.subarray(1));break;case 7:o.nalUnitType="seq_parameter_set_rbsp",o.escapedRBSP=n(s.subarray(1)),o.config=a(o.escapedRBSP);break;case 8:o.nalUnitType="pic_parameter_set_rbsp";break;case 9:o.nalUnitType="access_unit_delimiter_rbsp"}e.trigger("data",o)}),o.on("done",function(){e.trigger("done")}),o.on("partialdone",function(){e.trigger("partialdone")}),o.on("reset",function(){e.trigger("reset")}),o.on("endedtimeline",function(){e.trigger("endedtimeline")}),this.flush=function(){o.flush()},this.partialFlush=function(){o.partialFlush()},this.reset=function(){o.reset()},this.endTimeline=function(){o.endTimeline()},s=function(e,t){var r,i=8,n=8;for(r=0;r<e;r++)0!==n&&(n=(i+t.readExpGolomb()+256)%256),i=0===n?i:n},n=function(e){for(var t,r,i=e.byteLength,n=[],a=1;a<i-2;)0===e[a]&&0===e[a+1]&&3===e[a+2]?(n.push(a+2),a+=2):a++;if(0===n.length)return e;
153r=new Uint8Array(t=i-n.length);var s=0;for(a=0;a<t;s++,a++)s===n[0]&&(s++,n.shift()),r[a]=e[s];return r},a=function(e){var t,r,i,n,a,o,l,c,u,d,p,h,f=0,g=0,m=0,y=0,b=[1,1];if(r=(t=new en(e)).readUnsignedByte(),n=t.readUnsignedByte(),i=t.readUnsignedByte(),t.skipUnsignedExpGolomb(),tg[r]&&(3===(a=t.readUnsignedExpGolomb())&&t.skipBits(1),t.skipUnsignedExpGolomb(),t.skipUnsignedExpGolomb(),t.skipBits(1),t.readBoolean()))for(h=0,p=3!==a?8:12;h<p;h++)t.readBoolean()&&(h<6?s(16,t):s(64,t));if(t.skipUnsignedExpGolomb(),0===(o=t.readUnsignedExpGolomb()))t.readUnsignedExpGolomb();else if(1===o)for(t.skipBits(1),t.skipExpGolomb(),t.skipExpGolomb(),l=t.readUnsignedExpGolomb(),h=0;h<l;h++)t.skipExpGolomb();if(t.skipUnsignedExpGolomb(),t.skipBits(1),c=t.readUnsignedExpGolomb(),u=t.readUnsignedExpGolomb(),0===(d=t.readBits(1))&&t.skipBits(1),t.skipBits(1),t.readBoolean()&&(f=t.readUnsignedExpGolomb(),g=t.readUnsignedExpGolomb(),m=t.readUnsignedExpGolomb(),y=t.readUnsignedExpGolomb()),t.readBoolean()&&t.readBoolean()){switch(t.readUnsignedByte()){case 1:b=[1,1];break;case 2:b=[12,11];break;case 3:b=[10,11];break;case 4:b=[16,11];break;case 5:b=[40,33];break;case 6:b=[24,11];break;case 7:b=[20,11];break;case 8:b=[32,11];break;case 9:b=[80,33];break;case 10:b=[18,11];break;case 11:b=[15,11];break;case 12:b=[64,33];break;case 13:b=[160,99];break;case 14:b=[4,3];break;case 15:b=[3,2];break;case 16:b=[2,1];break;case 255:b=[t.readUnsignedByte()<<8|t.readUnsignedByte(),t.readUnsignedByte()<<8|t.readUnsignedByte()]}b[0],b[1]}return{profileIdc:r,levelIdc:i,profileCompatibility:n,width:(c+1)*16-2*f-2*g,height:(2-d)*(u+1)*16-2*m-2*y,sarRatio:b}}}).prototype=new i;var ea=th,es=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350],eo=function(e,t){var r=e[t+6]<<21|e[t+7]<<14|e[t+8]<<7|e[t+9];return(r=r>=0?r:0,(16&e[t+5])>>4)?r+20:r+10},el=function(e,t){return e.length-t<10||73!==e[t]||68!==e[t+1]||51!==e[t+2]?t:(t+=eo(e,t),el(e,t))},ec=function(e){return e[0]<<21|e[1]<<14|e[2]<<7|e[3]},eu=function(e,t,r){var i,n="";for(i=t;i<r;i++)n+="%"+("00"+e[i].toString(16)).slice(-2);return n},ed={isLikelyAacData:function(e){var t=el(e,0);return e.length>=t+2&&(255&e[t])==255&&(240&e[t+1])==240&&(22&e[t+1])==16},parseId3TagSize:eo,parseAdtsSize:function(e,t){var r=(224&e[t+5])>>5,i=e[t+4]<<3;return 6144&e[t+3]|i|r},parseType:function(e,t){return 73===e[t]&&68===e[t+1]&&51===e[t+2]?"timed-metadata":!0&e[t]&&(240&e[t+1])==240?"audio":null},parseSampleRate:function(e){for(var t=0;t+5<e.length;){if(255!==e[t]||(246&e[t+1])!=240){t++;continue}return es[(60&e[t+2])>>>2]}return null},parseAacTimestamp:function(e){var t,r,i;t=10,64&e[5]&&(t+=4,t+=ec(e.subarray(10,14)));do{if((r=ec(e.subarray(t+4,t+8)))<1)break;if("PRIV"===String.fromCharCode(e[t],e[t+1],e[t+2],e[t+3])){i=e.subarray(t+10,t+r+10);for(var n=0;n<i.byteLength;n++)if(0===i[n]){if("com.apple.streaming.transportStreamTimestamp"===unescape(eu(i,0,n))){var a=i.subarray(n+1),s=(1&a[3])<<30|a[4]<<22|a[5]<<14|a[6]<<6|a[7]>>>2;return s*=4,s+=3&a[7]}break}}t+=10,t+=r}while(t<e.byteLength)return null}};(tm=function(){var e=new Uint8Array,t=0;tm.prototype.init.call(this),this.setTimestamp=function(e){t=e},this.push=function(r){var i,n,a,s=0,o=0;for(e.length?(a=e.length,(e=new Uint8Array(r.byteLength+a)).set(e.subarray(0,a)),e.set(r,a)):e=r;e.length-o>=3;){if(73===e[o]&&68===e[o+1]&&51===e[o+2]){if(e.length-o<10||(s=ed.parseId3TagSize(e,o),o+s>e.length))break;i={type:"timed-metadata",data:e.subarray(o,o+s)},this.trigger("data",i),o+=s;continue}if((255&e[o])==255&&(240&e[o+1])==240){if(e.length-o<7||(s=ed.parseAdtsSize(e,o),o+s>e.length))break;n={type:"audio",data:e.subarray(o,o+s),pts:t,dts:t},this.trigger("data",n),o+=s;continue}o++}e=e.length-o>0?e.subarray(o):new Uint8Array},this.reset=function(){e=new Uint8Array,this.trigger("reset")},this.endTimeline=function(){e=new Uint8Array,this.trigger("endedtimeline")}}).prototype=new i;var ep=tm,eh=function(e){return eF(e1.mdat,e)},ef=function(e,t){for(var r=[],i=t.length;i--;)r[i]=eJ(t[i]);return eF.apply(null,[e1.moof,eF(e1.mfhd,new Uint8Array([0,0,0,0,(0xff000000&e)>>24,(0xff0000&e)>>16,(65280&e)>>8,255&e]))].concat(r))},eg=function(e){var t,r=eF(e1.ftyp,e2,e4,e2,e5),i=ez(e);return(t=new Uint8Array(r.byteLength+i.byteLength)).set(r),t.set(i,r.byteLength),t},em=function(e){var t,r,i=[],n=[];for(t=0,n.byteLength=0,n.nalCount=0,n.duration=0,i.byteLength=0;t<e.length;t++)"access_unit_delimiter_rbsp"===(r=e[t]).nalUnitType?(i.length&&(i.duration=r.dts-i.dts,n.byteLength+=i.byteLength,n.nalCount+=i.length,n.duration+=i.duration,n.push(i)),(i=[r]).byteLength=r.data.byteLength,i.pts=r.pts,i.dts=r.dts):("slice_layer_without_partitioning_rbsp_idr"===r.nalUnitType&&(i.keyFrame=!0),i.duration=r.dts-i.dts,i.byteLength+=r.data.byteLength,i.push(r));return n.length&&(!i.duration||i.duration<=0)&&(i.duration=n[n.length-1].duration),n.byteLength+=i.byteLength,n.nalCount+=i.length,n.duration+=i.duration,n.push(i),n},ey=function(e){var t,r,i=[],n=[];for(t=0,i.byteLength=0,i.nalCount=0,i.duration=0,i.pts=e[0].pts,i.dts=e[0].dts,n.byteLength=0,n.nalCount=0,n.duration=0,n.pts=e[0].pts,n.dts=e[0].dts;t<e.length;t++)(r=e[t]).keyFrame?(i.length&&(n.push(i),n.byteLength+=i.byteLength,n.nalCount+=i.nalCount,n.duration+=i.duration),(i=[r]).nalCount=r.length,i.byteLength=r.byteLength,i.pts=r.pts,i.dts=r.dts,i.duration=r.duration):(i.duration+=r.duration,i.nalCount+=r.length,i.byteLength+=r.byteLength,i.push(r));return n.length&&i.duration<=0&&(i.duration=n[n.length-1].duration),n.byteLength+=i.byteLength,n.nalCount+=i.nalCount,n.duration+=i.duration,n.push(i),n},eb=function(e){var t;return!e[0][0].keyFrame&&e.length>1&&(t=e.shift(),e.byteLength-=t.byteLength,e.nalCount-=t.nalCount,e[0][0].dts=t.dts,e[0][0].pts=t.pts,e[0][0].duration+=t.duration),e},ev=function(e,t){var r,i,n,a,s=t||0,l=[];for(r=0;r<e.length;r++)for(i=0,a=e[r];i<a.length;i++)n=o(a[i],s),s+=n.size,l.push(n);return l},ex=function(e){var t,r,i,n,a,s,o=0,l=new Uint8Array(e.byteLength+4*e.nalCount),c=new DataView(l.buffer);for(t=0;t<e.length;t++)for(r=0,n=e[t];r<n.length;r++)for(i=0,a=n[r];i<a.length;i++)s=a[i],c.setUint32(o,s.data.byteLength),o+=4,l.set(s.data,o),o+=s.data.byteLength;return l},e_=function(e,t,r,i){var n,a,s,o,l=0,c=0,u=0;if(t.length&&(n=f(e.baseMediaDecodeTime,e.samplerate),l=Math.ceil(d/(e.samplerate/1024)),r&&i&&(u=(c=Math.floor((n-Math.max(r,
153i))/l))*l),!(c<1)&&!(u>d/2))){for((a=y()[e.samplerate])||(a=t[0].data),s=0;s<c;s++)o=t[0],t.splice(0,0,{data:a,dts:o.dts-l,pts:o.pts-l});return e.baseMediaDecodeTime-=Math.floor(g(u,e.samplerate)),u}},ew=function(e){var t,r=[];for(t=0;t<e.length;t++)r.push({size:e[t].data.byteLength,duration:1024});return r},eT=function(e){var t,r,i=0,n=new Uint8Array(b(e));for(t=0;t<e.length;t++)r=e[t],n.set(r.data,i),i+=r.data.byteLength;return n},eS=function(e){delete e.minSegmentDts,delete e.maxSegmentDts,delete e.minSegmentPts,delete e.maxSegmentPts},eC=function(e,t){var r,i=e.minSegmentDts;return t||(i-=e.timelineStartInfo.dts),r=Math.max(0,r=e.timelineStartInfo.baseMediaDecodeTime+i),"audio"===e.type&&(r*=e.samplerate/d,r=Math.floor(r)),r},eE=function(e,t){"number"==typeof t.pts&&(void 0===e.timelineStartInfo.pts&&(e.timelineStartInfo.pts=t.pts),void 0===e.minSegmentPts?e.minSegmentPts=t.pts:e.minSegmentPts=Math.min(e.minSegmentPts,t.pts),void 0===e.maxSegmentPts?e.maxSegmentPts=t.pts:e.maxSegmentPts=Math.max(e.maxSegmentPts,t.pts)),"number"==typeof t.dts&&(void 0===e.timelineStartInfo.dts&&(e.timelineStartInfo.dts=t.dts),void 0===e.minSegmentDts?e.minSegmentDts=t.dts:e.minSegmentDts=Math.min(e.minSegmentDts,t.dts),void 0===e.maxSegmentDts?e.maxSegmentDts=t.dts:e.maxSegmentDts=Math.max(e.maxSegmentDts,t.dts))},ek=ed.isLikelyAacData,eN=["audioobjecttype","channelcount","samplerate","samplingfrequencyindex","samplesize"],eI=["width","height","profileIdc","levelIdc","profileCompatibility","sarRatio"],eA=function(e,t){t.stream=e,this.trigger("log",t)},ej=function(e,t){for(var r=Object.keys(t),i=0;i<r.length;i++){var n=r[i];"headOfPipeline"!==n&&t[n].on&&t[n].on("log",eA.bind(e,n))}},eP=function(e,t){var r;if(e.length!==t.length)return!1;for(r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0},eO=function(e,t,r,i,n,a){return{start:{dts:e,pts:e+(r-t)},end:{dts:e+(i-t),pts:e+(n-r)},prependedContentDuration:a,baseMediaDecodeTime:e}};(tb=function(e,t){var r,i=[],n=0,a=0,s=1/0;r=(t=t||{}).firstSequenceNumber||0,tb.prototype.init.call(this),this.push=function(t){eE(e,t),e&&eN.forEach(function(r){e[r]=t[r]}),i.push(t)},this.setEarliestDts=function(e){n=e},this.setVideoBaseMediaDecodeTime=function(e){s=e},this.setAudioAppendStart=function(e){a=e},this.flush=function(){var o,l,c,u,p,h,g,m,y,b;0===i.length||(m=i,y=e,b=n,o=y.minSegmentDts>=b?m:(y.minSegmentDts=1/0,m.filter(function(e){return e.dts>=b&&(y.minSegmentDts=Math.min(y.minSegmentDts,e.dts),y.minSegmentPts=y.minSegmentDts,!0)})),e.baseMediaDecodeTime=eC(e,t.keepOriginalTimestamps),g=e_(e,o,a,s),e.samples=ew(o),c=eh(eT(o)),i=[],u=new Uint8Array((l=ef(r,[e])).byteLength+c.byteLength),r++,u.set(l),u.set(c,l.byteLength),eS(e),p=Math.ceil(1024*d/e.samplerate),o.length&&(h=o.length*p,this.trigger("segmentTimingInfo",eO(f(e.baseMediaDecodeTime,e.samplerate),o[0].dts,o[0].pts,o[0].dts+h,o[0].pts+h,g||0)),this.trigger("timingInfo",{start:o[0].pts,end:o[0].pts+h})),this.trigger("data",{track:e,boxes:u})),this.trigger("done","AudioSegmentStream")},this.reset=function(){eS(e),i=[],this.trigger("reset")}}).prototype=new i,(ty=function(e,t){var r,i,n,a=[],s=[];r=(t=t||{}).firstSequenceNumber||0,ty.prototype.init.call(this),delete e.minPTS,this.gopCache_=[],this.push=function(t){eE(e,t),"seq_parameter_set_rbsp"!==t.nalUnitType||i||(i=t.config,e.sps=[t.data],eI.forEach(function(t){e[t]=i[t]},this)),"pic_parameter_set_rbsp"!==t.nalUnitType||n||(n=t.data,e.pps=[t.data]),a.push(t)},this.flush=function(){for(var i,n,o,l,c,u,d,p,h=0;a.length&&"access_unit_delimiter_rbsp"!==a[0].nalUnitType;)a.shift();if(0===a.length){this.resetStream_(),this.trigger("done","VideoSegmentStream");return}if((o=ey(em(a)))[0][0].keyFrame||((n=this.getGopForFusion_(a[0],e))?(h=n.duration,o.unshift(n),o.byteLength+=n.byteLength,o.nalCount+=n.nalCount,o.pts=n.pts,o.dts=n.dts,o.duration+=n.duration):o=eb(o)),s.length){if(!(i=t.alignGopsAtEnd?this.alignGopsAtEnd_(o):this.alignGopsAtStart_(o))){this.gopCache_.unshift({gop:o.pop(),pps:e.pps,sps:e.sps}),this.gopCache_.length=Math.min(6,this.gopCache_.length),a=[],this.resetStream_(),this.trigger("done","VideoSegmentStream");return}eS(e),o=i}eE(e,o),e.samples=ev(o),c=eh(ex(o)),e.baseMediaDecodeTime=eC(e,t.keepOriginalTimestamps),this.trigger("processedGopsInfo",o.map(function(e){return{pts:e.pts,dts:e.dts,byteLength:e.byteLength}})),d=o[0],p=o[o.length-1],this.trigger("segmentTimingInfo",eO(e.baseMediaDecodeTime,d.dts,d.pts,p.dts+p.duration,p.pts+p.duration,h)),this.trigger("timingInfo",{start:o[0].pts,end:o[o.length-1].pts+o[o.length-1].duration}),this.gopCache_.unshift({gop:o.pop(),pps:e.pps,sps:e.sps}),this.gopCache_.length=Math.min(6,this.gopCache_.length),a=[],this.trigger("baseMediaDecodeTime",e.baseMediaDecodeTime),this.trigger("timelineStartInfo",e.timelineStartInfo),u=new Uint8Array((l=ef(r,[e])).byteLength+c.byteLength),r++,u.set(l),u.set(c,l.byteLength),this.trigger("data",{track:e,boxes:u}
153),this.resetStream_(),this.trigger("done","VideoSegmentStream")},this.reset=function(){this.resetStream_(),a=[],this.gopCache_.length=0,s.length=0,this.trigger("reset")},this.resetStream_=function(){eS(e),i=void 0,n=void 0},this.getGopForFusion_=function(t){var r,i,n,a,s,o=1/0;for(s=0;s<this.gopCache_.length;s++)n=(a=this.gopCache_[s]).gop,e.pps&&eP(e.pps[0],a.pps[0])&&e.sps&&eP(e.sps[0],a.sps[0])&&!(n.dts<e.timelineStartInfo.dts)&&(r=t.dts-n.dts-n.duration)>=-1e4&&r<=45e3&&(!i||o>r)&&(i=a,o=r);return i?i.gop:null},this.alignGopsAtStart_=function(e){var t,r,i,n,a,o,l,c;for(a=e.byteLength,o=e.nalCount,l=e.duration,t=r=0;t<s.length&&r<e.length&&(i=s[t],n=e[r],i.pts!==n.pts);){if(n.pts>i.pts){t++;continue}r++,a-=n.byteLength,o-=n.nalCount,l-=n.duration}return 0===r?e:r===e.length?null:((c=e.slice(r)).byteLength=a,c.duration=l,c.nalCount=o,c.pts=c[0].pts,c.dts=c[0].dts,c)},this.alignGopsAtEnd_=function(e){for(t=s.length-1,r=e.length-1,a=null,o=!1;t>=0&&r>=0;){if(i=s[t],n=e[r],i.pts===n.pts){o=!0;break}if(i.pts>n.pts){t--;continue}t===s.length-1&&(a=r),r--}if(!o&&null===a)return null;if(0===(l=o?r:a))return e;var t,r,i,n,a,o,l,c=e.slice(l),u=c.reduce(function(e,t){return e.byteLength+=t.byteLength,e.duration+=t.duration,e.nalCount+=t.nalCount,e},{byteLength:0,duration:0,nalCount:0});return c.byteLength=u.byteLength,c.duration=u.duration,c.nalCount=u.nalCount,c.pts=c[0].pts,c.dts=c[0].dts,c},this.alignGopsWith=function(e){s=e}}).prototype=new i,(tx=function(e,t){this.numberOfTracks=0,this.metadataStream=t,void 0!==(e=e||{}).remux?this.remuxTracks=!!e.remux:this.remuxTracks=!0,"boolean"==typeof e.keepOriginalTimestamps?this.keepOriginalTimestamps=e.keepOriginalTimestamps:this.keepOriginalTimestamps=!1,this.pendingTracks=[],this.videoTrack=null,this.pendingBoxes=[],this.pendingCaptions=[],this.pendingMetadata=[],this.pendingBytes=0,this.emittedTracks=0,tx.prototype.init.call(this),this.push=function(e){return e.content||e.text?this.pendingCaptions.push(e):e.frames?this.pendingMetadata.push(e):void(this.pendingTracks.push(e.track),this.pendingBytes+=e.boxes.byteLength,"video"===e.track.type&&(this.videoTrack=e.track,this.pendingBoxes.push(e.boxes)),"audio"===e.track.type&&(this.audioTrack=e.track,this.pendingBoxes.unshift(e.boxes)))}}).prototype=new i,tx.prototype.flush=function(e){var t,r,i,n,a=0,s={captions:[],captionStreams:{},metadata:[],info:{}},o=0;if(this.pendingTracks.length<this.numberOfTracks){if("VideoSegmentStream"!==e&&"AudioSegmentStream"!==e)return;else if(this.remuxTracks)return;else if(0===this.pendingTracks.length){this.emittedTracks++,this.emittedTracks>=this.numberOfTracks&&(this.trigger("done"),this.emittedTracks=0);return}}if(this.videoTrack?(o=this.videoTrack.timelineStartInfo.pts,eI.forEach(function(e){s.info[e]=this.videoTrack[e]},this)):this.audioTrack&&(o=this.audioTrack.timelineStartInfo.pts,eN.forEach(function(e){s.info[e]=this.audioTrack[e]},this)),this.videoTrack||this.audioTrack){for(1===this.pendingTracks.length?s.type=this.pendingTracks[0].type:s.type="combined",this.emittedTracks+=this.pendingTracks.length,s.initSegment=new Uint8Array((i=eg(this.pendingTracks)).byteLength),s.initSegment.set(i),s.data=new Uint8Array(this.pendingBytes),n=0;n<this.pendingBoxes.length;n++)s.data.set(this.pendingBoxes[n],a),a+=this.pendingBoxes[n].byteLength;for(n=0;n<this.pendingCaptions.length;n++)(t=this.pendingCaptions[n]).startTime=m(t.startPts,o,this.keepOriginalTimestamps),t.endTime=m(t.endPts,o,this.keepOriginalTimestamps),s.captionStreams[t.stream]=!0,s.captions.push(t);for(n=0;n<this.pendingMetadata.length;n++)(r=this.pendingMetadata[n]).cueTime=m(r.pts,o,this.keepOriginalTimestamps),s.metadata.push(r);for(s.metadata.dispatchType=this.metadataStream.dispatchType,this.pendingTracks.length=0,this.videoTrack=null,this.pendingBoxes.length=0,this.pendingCaptions.length=0,this.pendingBytes=0,this.pendingMetadata.length=0,this.trigger("data",s),n=0;n<s.captions.length;n++)t=s.captions[n],this.trigger("caption",t);for(n=0;n<s.metadata.length;n++)r=s.metadata[n],this.trigger("id3Frame",r)}this.emittedTracks>=this.numberOfTracks&&(this.trigger("done"),this.emittedTracks=0)},tx.prototype.setRemux=function(e){this.remuxTracks=e},(tv=function(e){var t,r,i=this,n=!0;tv.prototype.init.call(this),e=e||{},this.baseMediaDecodeTime=e.baseMediaDecodeTime||0,this.transmuxPipeline_={},this.setupAacPipeline=function(){var n={};this.transmuxPipeline_=n,n.type="aac",n.metadataStream=new Z.MetadataStream,n.aacStream
vendor: 5,944 bytes, line 153
153=new ep,n.audioTimestampRolloverStream=new Z.TimestampRolloverStream("audio"),n.timedMetadataTimestampRolloverStream=new Z.TimestampRolloverStream("timed-metadata"),n.adtsStream=new ei,n.coalesceStream=new tx(e,n.metadataStream),n.headOfPipeline=n.aacStream,n.aacStream.pipe(n.audioTimestampRolloverStream).pipe(n.adtsStream),n.aacStream.pipe(n.timedMetadataTimestampRolloverStream).pipe(n.metadataStream).pipe(n.coalesceStream),n.metadataStream.on("timestamp",function(e){n.aacStream.setTimestamp(e.timeStamp)}),n.aacStream.on("data",function(a){"timed-metadata"!==a.type&&"audio"!==a.type||n.audioSegmentStream||(r=r||{timelineStartInfo:{baseMediaDecodeTime:i.baseMediaDecodeTime},codec:"adts",type:"audio"},n.coalesceStream.numberOfTracks++,n.audioSegmentStream=new tb(r,e),n.audioSegmentStream.on("log",i.getLogTrigger_("audioSegmentStream")),n.audioSegmentStream.on("timingInfo",i.trigger.bind(i,"audioTimingInfo")),n.adtsStream.pipe(n.audioSegmentStream).pipe(n.coalesceStream),i.trigger("trackinfo",{hasAudio:!!r,hasVideo:!!t}))}),n.coalesceStream.on("data",this.trigger.bind(this,"data")),n.coalesceStream.on("done",this.trigger.bind(this,"done")),ej(this,n)},this.setupTsPipeline=function(){var n={};this.transmuxPipeline_=n,n.type="ts",n.metadataStream=new Z.MetadataStream,n.packetStream=new Z.TransportPacketStream,n.parseStream=new Z.TransportParseStream,n.elementaryStream=new Z.ElementaryStream,n.timestampRolloverStream=new Z.TimestampRolloverStream,n.adtsStream=new ei,n.h264Stream=new ea,n.captionStream=new Z.CaptionStream(e),n.coalesceStream=new tx(e,n.metadataStream),n.headOfPipeline=n.packetStream,n.packetStream.pipe(n.parseStream).pipe(n.elementaryStream).pipe(n.timestampRolloverStream),n.timestampRolloverStream.pipe(n.h264Stream),n.timestampRolloverStream.pipe(n.adtsStream),n.timestampRolloverStream.pipe(n.metadataStream).pipe(n.coalesceStream),n.h264Stream.pipe(n.captionStream).pipe(n.coalesceStream),n.elementaryStream.on("data",function(a){var s;if("metadata"===a.type){for(s=a.tracks.length;s--;)t||"video"!==a.tracks[s].type?r||"audio"!==a.tracks[s].type||((r=a.tracks[s]).timelineStartInfo.baseMediaDecodeTime=i.baseMediaDecodeTime):(t=a.tracks[s]).timelineStartInfo.baseMediaDecodeTime=i.baseMediaDecodeTime;t&&!n.videoSegmentStream&&(n.coalesceStream.numberOfTracks++,n.videoSegmentStream=new ty(t,e),n.videoSegmentStream.on("log",i.getLogTrigger_("videoSegmentStream")),n.videoSegmentStream.on("timelineStartInfo",function(t){r&&!e.keepOriginalTimestamps&&(r.timelineStartInfo=t,n.audioSegmentStream.setEarliestDts(t.dts-i.baseMediaDecodeTime))}),n.videoSegmentStream.on("processedGopsInfo",i.trigger.bind(i,"gopInfo")),n.videoSegmentStream.on("segmentTimingInfo",i.trigger.bind(i,"videoSegmentTimingInfo")),n.videoSegmentStream.on("baseMediaDecodeTime",function(e){r&&n.audioSegmentStream.setVideoBaseMediaDecodeTime(e)}),n.videoSegmentStream.on("timingInfo",i.trigger.bind(i,"videoTimingInfo")),n.h264Stream.pipe(n.videoSegmentStream).pipe(n.coalesceStream)),r&&!n.audioSegmentStream&&(n.coalesceStream.numberOfTracks++,n.audioSegmentStream=new tb(r,e),n.audioSegmentStream.on("log",i.getLogTrigger_("audioSegmentStream")),n.audioSegmentStream.on("timingInfo",i.trigger.bind(i,"audioTimingInfo")),n.audioSegmentStream.on("segmentTimingInfo",i.trigger.bind(i,"audioSegmentTimingInfo")),n.adtsStream.pipe(n.audioSegmentStream).pipe(n.coalesceStream)),i.trigger("trackinfo",{hasAudio:!!r,hasVideo:!!t})}}),n.coalesceStream.on("data",this.trigger.bind(this,"data")),n.coalesceStream.on("id3Frame",function(e){e.dispatchType=n.metadataStream.dispatchType,i.trigger("id3Frame",e)}),n.coalesceStream.on("caption",this.trigger.bind(this,"caption")),n.coalesceStream.on("done",this.trigger.bind(this,"done")),ej(this,n)},this.setBaseMediaDecodeTime=function(i){var n=this.transmuxPipeline_;e.keepOriginalTimestamps||(this.baseMediaDecodeTime=i),r&&(r.timelineStartInfo.dts=void 0,r.timelineStartInfo.pts=void 0,eS(r),n.audioTimestampRolloverStream&&n.audioTimestampRolloverStream.discontinuity()),t&&(n.videoSegmentStream&&(n.videoSegmentStream.gopCache_=[]),t.timelineStartInfo.dts=void 0,t.timelineStartInfo.pts=void 0,eS(t),n.captionStream.reset()),n.timestampRolloverStream&&n.timestampRolloverStream.discontinuity()},this.setAudioAppendStart=function(e){r&&this.transmuxPipeline_.audioSegmentStream.setAudioAppendStart(e)},this.setRemux=function(t){var r=this.transmuxPipeline_;e.remux=t,r&&r.coalesceStream&&r.coalesceStream.setRemux(t)},this.alignGopsWith=function(e){t&&this.transmuxPipeline_.videoSegmentStream&&this.transmuxPipeline_.videoSegmentStream.alignGopsWith(e)},this.getLogTrigger_=function(e){var t=this;return function(r){r.stream=e,t.trigger("log",r)}},this.push=function(e){if(n){var t=ek(e);t&&"aac"!==this.transmuxPipeline_.type?this.setupAacPipeline():t||"ts"===this.transmuxPipeline_.type||this.setupTsPipeline(),n=!1}this.transmuxPipeline_.headOfPipeline.push(e)},this.flush=function(){n=!0,this.transmuxPipeline_.headOfPipeline.flush()},this.endTimeline=function(){this.transmuxPipeline_.headOfPipeline.endTimeline()},this.reset=function(){this.transmuxPipeline_.headOfPipeline&&this.transmuxPipeline_.headOfPipeline.reset()},this.resetCaptions=function(){this.transmuxPipeline_.captionStream&&this.transmuxPipeline_.captionStream.reset()}}).prototype=new i;var eL,eD,eR,eM,eB,eU,eF,e$,ez,eq,eH,eW,eV,eG,eX,eK,eY,eQ,eJ,eZ,e0,e1,e2,e4,e5,e3,e8,e6,e7,e9,te,tt,tr,ti,tn,ta,ts,to,tl,tc,tu,td,tp,th,tf,tg,tm,ty,tb,tv,tx,t_,tw,tT=tv,tS=function(e){return e>>>0},tC=function(e){var t="";return t+=String.fromCharCode(e[0]),t+=String.fromCharCode(e[1]),t+=String.fromCharCode(e[2]),t+=String.fromCharCode(e[3])},tE=function(e,t){var r,i,n,a,s,o=[];if(!t.length)return null;for(r=0;r<e.byteLength;)i=tS(e[r]<<24|e[r+1]<<16|e[r+2]<<8|e[r+3]),n=tC(e.subarray(r+4,r+8)),a=i>1?r+i:e.byteLength,n===t[0]&&(1===t.length?o.push(e.subarray(r+8,a)):(s=tE(e.subarray(r+8,a),t.slice(1))).length&&(o=o.c
vendor: 9,064 bytes, line 153
153oncat(s))),r=a;return o},tk=function(e){var t={version:e[0],flags:new Uint8Array(e.subarray(1,4))};return 1===t.version?t.baseMediaDecodeTime=n(e.subarray(4)):t.baseMediaDecodeTime=tS(e[4]<<24|e[5]<<16|e[6]<<8|e[7]),t},tN=function(e){var t,r=new DataView(e.buffer,e.byteOffset,e.byteLength),i={version:e[0],flags:new Uint8Array(e.subarray(1,4)),trackId:r.getUint32(4)},n=1&i.flags[2],a=2&i.flags[2],s=8&i.flags[2],o=16&i.flags[2],l=32&i.flags[2],c=65536&i.flags[0],u=131072&i.flags[0];return t=8,n&&(t+=4,i.baseDataOffset=r.getUint32(12),t+=4),a&&(i.sampleDescriptionIndex=r.getUint32(t),t+=4),s&&(i.defaultSampleDuration=r.getUint32(t),t+=4),o&&(i.defaultSampleSize=r.getUint32(t),t+=4),l&&(i.defaultSampleFlags=r.getUint32(t)),c&&(i.durationIsEmpty=!0),!n&&u&&(i.baseDataOffsetIsMoof=!0),i},tI=n,tA=function(e){return{isLeading:(12&e[0])>>>2,dependsOn:3&e[0],isDependedOn:(192&e[1])>>>6,hasRedundancy:(48&e[1])>>>4,paddingValue:(14&e[1])>>>1,isNonSyncSample:1&e[1],degradationPriority:e[2]<<8|e[3]}},tj=function(e){var t,r={version:e[0],flags:new Uint8Array(e.subarray(1,4)),samples:[]},i=new DataView(e.buffer,e.byteOffset,e.byteLength),n=1&r.flags[2],a=4&r.flags[2],s=1&r.flags[1],o=2&r.flags[1],l=4&r.flags[1],c=8&r.flags[1],u=i.getUint32(4),d=8;for(n&&(r.dataOffset=i.getInt32(d),d+=4),a&&u&&(t={flags:tA(e.subarray(d,d+4))},d+=4,s&&(t.duration=i.getUint32(d),d+=4),o&&(t.size=i.getUint32(d),d+=4),c&&(1===r.version?t.compositionTimeOffset=i.getInt32(d):t.compositionTimeOffset=i.getUint32(d),d+=4),r.samples.push(t),u--);u--;)t={},s&&(t.duration=i.getUint32(d),d+=4),o&&(t.size=i.getUint32(d),d+=4),l&&(t.flags=tA(e.subarray(d,d+4)),d+=4),c&&(1===r.version?t.compositionTimeOffset=i.getInt32(d):t.compositionTimeOffset=i.getUint32(d),d+=4),r.samples.push(t);return r},tP=n,tO=function(e){return new Date(1e3*e-20828448e5)},tL=function(e){var t,r,i=new DataView(e.buffer,e.byteOffset,e.byteLength),n=[];for(t=0;t+4<e.length;t+=r){if(r=i.getUint32(t),t+=4,r<=0){n.push("<span style='color:red;'>MALFORMED DATA</span>");continue}switch(31&e[t]){case 1:n.push("slice_layer_without_partitioning_rbsp");break;case 5:n.push("slice_layer_without_partitioning_rbsp_idr");break;case 6:n.push("sei_rbsp");break;case 7:n.push("seq_parameter_set_rbsp");break;case 8:n.push("pic_parameter_set_rbsp");break;case 9:n.push("access_unit_delimiter_rbsp");break;default:n.push("UNKNOWN NAL - "+e[t]&31)}}return n},tD={avc1:function(e){var t=new DataView(e.buffer,e.byteOffset,e.byteLength);return{dataReferenceIndex:t.getUint16(6),width:t.getUint16(24),height:t.getUint16(26),horizresolution:t.getUint16(28)+t.getUint16(30)/16,vertresolution:t.getUint16(32)+t.getUint16(34)/16,frameCount:t.getUint16(40),depth:t.getUint16(74),config:t_(e.subarray(78,e.byteLength))}},avcC:function(e){var t,r,i,n,a=new DataView(e.buffer,e.byteOffset,e.byteLength),s={configurationVersion:e[0],avcProfileIndication:e[1],profileCompatibility:e[2],avcLevelIndication:e[3],lengthSizeMinusOne:3&e[4],sps:[],pps:[]},o=31&e[5];for(n=0,i=6;n<o;n++)r=a.getUint16(i),i+=2,s.sps.push(new Uint8Array(e.subarray(i,i+r))),i+=r;for(t=e[i],i++,n=0;n<t;n++)r=a.getUint16(i),i+=2,s.pps.push(new Uint8Array(e.subarray(i,i+r))),i+=r;return s},btrt:function(e){var t=new DataView(e.buffer,e.byteOffset,e.byteLength);return{bufferSizeDB:t.getUint32(0),maxBitrate:t.getUint32(4),avgBitrate:t.getUint32(8)}},edts:function(e){return{boxes:t_(e)}},elst:function(e){var t,r=new DataView(e.buffer,e.byteOffset,e.byteLength),i={version:r.getUint8(0),flags:new Uint8Array(e.subarray(1,4)),edits:[]},n=r.getUint32(4);for(t=8;n;n--)0===i.version?(i.edits.push({segmentDuration:r.getUint32(t),mediaTime:r.getInt32(t+4),mediaRate:r.getUint16(t+8)+r.getUint16(t+10)/65536}),t+=12):(i.edits.push({segmentDuration:tP(e.subarray(t)),mediaTime:tP(e.subarray(t+8)),mediaRate:r.getUint16(t+16)+r.getUint16(t+18)/65536}),t+=20);return i},esds:function(e){return{version:e[0],flags:new Uint8Array(e.subarray(1,4)),esId:e[6]<<8|e[7],streamPriority:31&e[8],decoderConfig:{objectProfileIndication:e[11],streamType:e[12]>>>2&63,bufferSize:e[13]<<16|e[14]<<8|e[15],maxBitrate:e[16]<<24|e[17]<<16|e[18]<<8|e[19],avgBitrate:e[20]<<24|e[21]<<16|e[22]<<8|e[23],decoderConfigDescriptor:{tag:e[24],length:e[25],audioObjectType:e[26]>>>3&31,samplingFrequencyIndex:(7&e[26])<<1|e[27]>>>7&1,channelConfiguration:e[27]>>>3&15}}}},ftyp:function(e){for(var t=new DataView(e.buffer,e.byteOffset,e.byteLength),r={majorBrand:tC(e.subarray(0,4)),minorVersion:t.getUint32(4),compatibleBrands:[]},i=8;i<e.byteLength;)r.compatibleBrands.push(tC(e.subarray(i,i+4))),i+=4;return r},dinf:function(e){return{boxes:t_(e)}},dref:function(e){return{version:e[0],flags:new Uint8Array(e.subarray(1,4)),dataReferences:t_(e.subarray(8))}},hdlr:function(e){var t={version:new DataView(e.buffer,e.byteOffset,e.byteLength).getUint8(0),flags:new Uint8Array(e.subarray(1,4)),handlerType:tC(e.subarray(8,12)),name:""},r=8;for(r=24;r<e.byteLength;r++){if(0===e[r]){r++;break}t.name+=String.fromCharCode(e[r])}return t.name=decodeURIComponent(escape(t.name)),t},mdat:function(e){return{byteLength:e.byteLength,nals:tL(e)}},mdhd:function(e){var t,r=new DataView(e.buffer,e.byteOffset,e.byteLength),i=4,n={version:r.getUint8(0),flags:new Uint8Array(e.subarray(1,4)),language:""};return 1===n.version?(i+=4,n.creationTime=tO(r.getUint32(i)),i+=8,n.modificationTime=tO(r.getUint32(i)),i+=4,n.timescale=r.getUint32(i),i+=8):(n.creationTime=tO(r.getUint32(i)),i+=4,n.modificationTime=tO(r.getUint32(i)),i+=4,n.timescale=r.getUint32(i),i+=4),n.duration=r.getUint32(i),i+=4,t=r.getUint16(i),n.language+=String.fromCharCode((t>>10)+96),n.language+=String.fromCharCode(((992&t)>>5)+96),n.language+=String.fromCharCode((31&t)+96),n},mdia:function(e){return{boxes:t_(e)}},mfhd:function(e){return{version:e[0],flags:new Uint8Array(e.subarray(1,4)),sequenceNumber:e[4]<<24|e[5]<<16|e[6]<<8|e[7]}},minf:function(e){return{boxes:t_(e)}},mp4a:function(e){var t=new DataView(e.buffer,e.byteOffset,e.byteLength),r={dataReferenceIndex:t.getUint16(6),channelcount:t.getUint16(16),samplesize:t.getUint16(18),samplerate:t.getUint16(24)+t.getUint16(26)/65536};return e.byteLength>28&&(r.streamDescriptor=t_(e.subarray(28))[0]),r},moof:function(e){return{boxes:t_(e)}},moov:function(e){return{boxes:t_(e)}},mvex:function(e){return{boxes:t_(e)}},mvhd:function(e){var t=new DataView(e.buffer,e.byteOffset,e.byteLength),r=4,i={version:t.getUint8(0),flags:new Uint8Array(e.subarray(1,4))};return 1===i.version?(r+=4,i.creationTime=tO(t.getUint32(r)),r+=8,i.modificationTime=tO(t.getUint32(r)),r+=4,i.timescale=t.getUint32(r),r+=8):(i.creationTime=tO(t.getUint32(r)),r+=4,i.modificationTime=tO(t.getUint32(r)),r+=4,i.timescale=t.getUint32(r),r+=4),i.duration=t.getUint32(r),r+=4,i.rate=t.getUint16(r)+t.getUint16(r+2)/16,r+=4,i.volume=t.getUint8(r)+t.getUint8(r+1)/8,r+=12,i.matrix=new Uint32Array(e.subarray(r,r+36)),r+=60,i.nextTrackId=t.getUint32(r),i},pdin:function(e){var t=new DataView(e.buffer,e.byteOffset,e.byteLength);return{version:t.getUint8(0),flags:new Uint8Array(e.subarray(1,4)),rate:t.getUint32(4),initialDelay:t.getUint32(8)}},sdtp:function(e){var t,r={version:e[0],flags:new Uint8Array(e.subarray(1,4)),samples:[]};for(t=4;t<e.byteLength;t++)r.samples.push({dependsOn:(48&e[t])>>4,isDependedOn:(12&e[t])>>2,hasRedundancy:3&e[t]});return r},sidx:function(e){var t=new DataView(e.buffer,e.byteOffset,e.byteLength),r={version:e[0],flags:new Uint8Array(e.subarray(1,4)),references:[],referenceId:t.getUint32(4),timescale:t.getUint32(8)},i=12;0===r.version?(r.earliestPresentationTime=t.getUint32(i),r.firstOffset=t.getUint32(i+4),i+=8):(r.earliestPresentationTime=tI(e.subarray(i)),r.firstOffset=tI(e.subarray(i+8)),i+=16),i+=2;var n=t.getUint16(i);for(i+=2;n>0;i+=12,n--)r.references.push({referenceType:(128&e[i])>>>7,referencedSize:0x7fffffff&t.getUint32(i),subsegmentDuration:t.getUint32(i+4),startsWithSap:!!(128&e[i+8]),sapType:(112&e[i+8])>>>4,sapDeltaTime:0xfffffff&t.getUint32(i+8)});return r},smhd:function(e){return{version:e[0],flags:new Uint8Array(e.subarray(1,4)),balance:e[4]+e[5]/256}},stbl:function(e){return{boxes:t_(e)}},ctts:function(e){var t,r=new DataView(e.buffer,e.byteOffset,e.byteLength),i={version:r.getUint8(0),flags:new Uint8Array(e.subarray(1,4)),compositionOffsets:[]},n=r.getUint32(4);for(t=8;n;t+=8,n--)i.compositionOffsets.push({sampleCount:r.getUint32(t),sampleOffset:r[0===i.version?"getUint32":"getInt32"](t+4)});return i},stss:function(e){var t,r=new DataView(e.buffer,e.byteOffset,e.byteLength),i={version:r.getUint8(0),flags:new Uint8Array(e.subarray(1,4)),syncSamples:[]},n=r.getUint32(4);for(t=8;n;t+=4,n--)i.syncSamples.push(r.getUint32(t));return i},stco:function(e){var t,r=new DataView(e.buffer,e.byteOffset,e.byteLength),i={version:e[0],flags:new Uint8Array(e.subarray(1,4)),chunkOffsets:[]},n=r.getUint32(4);for(t=8;n;t+=4,n--)i.chunkOffsets.push(r.getUint32(t));return i},stsc:function(e){var t,r=new DataView(e.buffer,e.byteOffset,e.byteLength),i=r.getUint32(4),n={version:e[0],flags:new Uint8Array(e.subarray(1,4)),sampleToChunks:[]};for(t=8;i;
153t+=12,i--)n.sampleToChunks.push({firstChunk:r.getUint32(t),samplesPerChunk:r.getUint32(t+4),sampleDescriptionIndex:r.getUint32(t+8)});return n},stsd:function(e){return{version:e[0],flags:new Uint8Array(e.subarray(1,4)),sampleDescriptions:t_(e.subarray(8))}},stsz:function(e){var t,r=new DataView(e.buffer,e.byteOffset,e.byteLength),i={version:e[0],flags:new Uint8Array(e.subarray(1,4)),sampleSize:r.getUint32(4),entries:[]};for(t=12;t<e.byteLength;t+=4)i.entries.push(r.getUint32(t));return i},stts:function(e){var t,r=new DataView(e.buffer,e.byteOffset,e.byteLength),i={version:e[0],flags:new Uint8Array(e.subarray(1,4)),timeToSamples:[]},n=r.getUint32(4);for(t=8;n;t+=8,n--)i.timeToSamples.push({sampleCount:r.getUint32(t),sampleDelta:r.getUint32(t+4)});return i},styp:function(e){return tD.ftyp(e)},tfdt:tk,tfhd:tN,tkhd:function(e){var t=new DataView(e.buffer,e.byteOffset,e.byteLength),r=4,i={version:t.getUint8(0),flags:new Uint8Array(e.subarray(1,4))};return 1===i.version?(r+=4,i.creationTime=tO(t.getUint32(r)),r+=8,i.modificationTime=tO(t.getUint32(r)),r+=4,i.trackId=t.getUint32(r),r+=12):(i.creationTime=tO(t.getUint32(r)),r+=4,i.modificationTime=tO(t.getUint32(r)),r+=4,i.trackId=t.getUint32(r),r+=8),i.duration=t.getUint32(r),r+=12,i.layer=t.getUint16(r),r+=2,i.alternateGroup=t.getUint16(r),r+=2,i.volume=t.getUint8(r)+t.getUint8(r+1)/8,r+=4,i.matrix=new Uint32Array(e.subarray(r,r+36)),r+=36,i.width=t.getUint16(r)+t.getUint16(r+2)/65536,r+=4,i.height=t.getUint16(r)+t.getUint16(r+2)/65536,i},traf:function(e){return{boxes:t_(e)}},trak:function(e){return{boxes:t_(e)}},trex:function(e){var t=new DataView(e.buffer,e.byteOffset,e.byteLength);return{version:e[0],flags:new Uint8Array(e.subarray(1,4)),trackId:t.getUint32(4),defaultSampleDescriptionIndex:t.getUint32(8),defaultSampleDuration:t.getUint32(12),defaultSampleSize:t.getUint32(16),sampleDependsOn:3&e[20],sampleIsDependedOn:(192&e[21])>>6,sampleHasRedundancy:(48&e[21])>>4,samplePaddingValue:(14&e[21])>>1,sampleIsDifferenceSample:!!(1&e[21]),sampleDegradationPriority:t.getUint16(22)}},trun:tj,"url ":function(e){return{version:e[0],flags:new Uint8Array(e.subarray(1,4))}},vmhd:function(e){var t=new DataView(e.buffer,e.byteOffset,e.byteLength);return{version:e[0],flags:new Uint8Array(e.subarray(1,4)),graphicsmode:t.getUint16(4),opcolor:new Uint16Array([t.getUint16(6),t.getUint16(8),t.getUint16(10)])}}},tR={inspect:t_=function(e){for(var t,r,i,n,a,s=0,o=[],l=new ArrayBuffer(e.length),c=new Uint8Array(l),u=0;u<e.length;++u)c[u]=e[u];for(t=new DataView(l);s<e.byteLength;)r=t.getUint32(s),i=tC(e.subarray(s+4,s+8)),n=r>1?s+r:e.byteLength,(a=(tD[i]||function(e){return{data:e}})(e.subarray(s+8,n))).size=r,a.type=i,o.push(a),s=n;return o},textify:tw=function(e,t){var r;return r=Array(2*(t=t||0)+1).join(" "),e.map(function(e,i){return r+e.type+"\n"+Object.keys(e).filter(function(e){return"type"!==e&&"boxes"!==e}).map(function(t){var i=r+"  "+t+": ",n=e[t];if(n instanceof Uint8Array||n instanceof Uint32Array){var a=Array.prototype.slice.call(new Uint8Array(n.buffer,n.byteOffset,n.byteLength)).map(function(e){return" "+("00"+e.toString(16)).slice(-2)}).join("").match(/.{1,24}/g);return a?1===a.length?i+"<"+a.join("").slice(1)+">":i+"<\n"+a.map(function(e){return r+"  "+e}).join("\n")+"\n"+r+"  >":i+"<>"}return i+JSON.stringify(n,null,2).split("\n").map(function(e,t){return 0===t?e:r+"  "+e}).join("\n")}).join("\n")+(e.boxes?"\n"+tw(e.boxes,t+1):"")}).join("\n")},parseType:tC,findBox:tE,parseTraf:tD.traf,parseTfdt:tD.tfdt,parseHdlr:tD.hdlr,parseTfhd:tD.tfhd,parseTrun:tD.trun,parseSidx:tD.sidx},tM=function(e){for(var t=0,r=String.fromCharCode(e[0]),i="";"\0"!==r;)i+=r,r=String.fromCharCode(e[++t]);return i+r},tB=function(e,t){var r="\0"!==t.scheme_id_uri,i=0===e&&tU(t.presentation_time_delta)&&r,n=1===e&&tU(t.presentation_time)&&r;return!(e>1)&&i||n},tU=function(e){return void 0!==e||null!==e},tF="u">typeof window?window:void 0!==r?r:"u">typeof self?self:{},t$=function(e){return("00"+e.toString(16)).slice(-2)},tz=function(e){var t,r,i,a,s,o,l,c=4,u=e[0];if(0===u){t=tM(e.subarray(c)),c+=t.length,r=tM(e.subarray(c)),c+=r.length;var d=new DataView(e.buffer);i=d.getUint32(c),c+=4,s=d.getUint32(c),c+=4,o=d.getUint32(c),c+=4,l=d.getUint32(c),c+=4}else if(1===u){var d=new DataView(e.buffer);i=d.getUint32(c),c+=4,a=n(e.subarray(c)),c+=8,o=d.getUint32(c),c+=4,l=d.getUint32(c),c+=4,t=tM(e.subarray(c)),c+=t.length,r=tM(e.subarray(c)),c+=r.length}var p={scheme_id_uri:t,value:r,timescale:i||1,presentation_time:a,presentation_time_delta:s,event_duration:o,id:l,message_data:new Uint8Array(e.subarray(c,e.byteLength))};return tB(u,p)?p:void 0},tq=function(e,t,r,i){return e||0===e?e/t:i+r/t},tH={findBox:tE,parseType:tC,timescale:function(e){return tE(e,["moov","trak"]).reduce(function(e,t){var r,i,n,a;return(r=tE(t,["tkhd"])[0])&&(i=0===r[0]?12:20,n=tS(r[i]<<24|r[i+1]<<16|r[i+2]<<8|r[i+3]),a=tE(t,["mdia","mdhd"])[0])?(i=0===a[0]?12:20,e[n]=tS(a[i]<<24|a[i+1]<<16|a[i+2]<<8|a[i+3]),e):null},{})},startTime:function(e,t){var r=tE(t,["moof","traf"]).reduce(function(t,r){let i;var a,s=tE(r,["tfhd"])[0],o=e[tS(s[4]<<24|s[5]<<16|s[6]<<8|s[7])]||9e4,l=tE(r,["tfdt"])[0],c=new DataView(l.buffer,l.byteOffset,l.byteLength);return"bigint"==typeof(a=1===l[0]?n(l.subarray(4,12)):c.getUint32(4))?i=a/tF.BigInt(o):"number"!=typeof a||isNaN(a)||
153(i=a/o),i<Number.MAX_SAFE_INTEGER&&(i=Number(i)),i<t&&(t=i),t},1/0);return"bigint"==typeof r||isFinite(r)?r:0},compositionStartTime:function(e,t){var r,i=tE(t,["moof","traf"]),n=0,a=0;if(i&&i.length){var s=tE(i[0],["tfhd"])[0],o=tE(i[0],["trun"])[0],l=tE(i[0],["tfdt"])[0];if(s&&(r=tN(s).trackId),l&&(n=tk(l).baseMediaDecodeTime),o){var c=tj(o);c.samples&&c.samples.length&&(a=c.samples[0].compositionTimeOffset||0)}}var u=e[r]||9e4;"bigint"==typeof n&&(a=tF.BigInt(a),u=tF.BigInt(u));var d=(n+a)/u;return"bigint"==typeof d&&d<Number.MAX_SAFE_INTEGER&&(d=Number(d)),d},videoTrackIds:function(e){var t=tE(e,["moov","trak"]),r=[];return t.forEach(function(e){var t=tE(e,["mdia","hdlr"]),i=tE(e,["tkhd"]);t.forEach(function(e,t){var n,a,s=tC(e.subarray(8,12)),o=i[t];"vide"===s&&(a=0===(n=new DataView(o.buffer,o.byteOffset,o.byteLength)).getUint8(0)?n.getUint32(12):n.getUint32(20),r.push(a))})}),r},tracks:function(e){var r=tE(e,["moov","trak"]),i=[];return r.forEach(function(e){var r={},n=tE(e,["tkhd"])[0];n&&(r.id=0===(l=new DataView(n.buffer,n.byteOffset,n.byteLength)).getUint8(0)?l.getUint32(12):l.getUint32(20));var a=tE(e,["mdia","hdlr"])[0];if(a){var s=tC(a.subarray(8,12));"vide"===s?r.type="video":"soun"===s?r.type="audio":r.type=s}var o=tE(e,["mdia","minf","stbl","stsd"])[0];if(o){var l,c,u=o.subarray(8);r.codec=tC(u.subarray(4,8));var d=tE(u,[r.codec])[0];d&&(/^[asm]vc[1-9]$/i.test(r.codec)?"avcC"===tC((c=d.subarray(78)).subarray(4,8))&&c.length>11?(r.codec+=".",r.codec+=t$(c[9]),r.codec+=t$(c[10]),r.codec+=t$(c[11])):r.codec="avc1.4d400d":/^mp4[a,v]$/i.test(r.codec)?"esds"===tC((c=d.subarray(28)).subarray(4,8))&&c.length>20&&0!==c[19]?(r.codec+="."+t$(c[19]),r.codec+="."+t$(c[20]>>>2&63).replace(/^0/,"")):r.codec="mp4a.40.2":r.codec=r.codec.toLowerCase())}var p=tE(e,["mdia","mdhd"])[0];p&&(r.timescale=t(p)),i.push(r)}),i},getTimescaleFromMediaHeader:t=function(e){var t=0===e[0]?12:20;return tS(e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3])},getEmsgID3:function(e,t=0){return tE(e,["emsg"]).map(e=>{var r=tz(new Uint8Array(e)),i=K(r.message_data);return{cueTime:tq(r.presentation_time,r.timescale,r.presentation_time_delta,t),duration:tq(r.event_duration,r.timescale),frames:i}})}};let{parseTrun:tW}=tR,{findBox:tV}=tH;var tG={getMdatTrafPairs:function(e){var t=tV(e,["moof","traf"]),r=tV(e,["mdat"]),i=[];return r.forEach(function(e,r){var n=t[r];i.push({mdat:e,traf:n})}),i},parseSamples:function(e,t,r){var i=t,n=r.defaultSampleDuration||0,a=r.defaultSampleSize||0,s=r.trackId,o=[];return e.forEach(function(e){var t=tW(e).samples;t.forEach(function(e){void 0===e.duration&&(e.duration=n),void 0===e.size&&(e.size=a),e.trackId=s,e.dts=i,void 0===e.compositionTimeOffset&&(e.compositionTimeOffset=0),"bigint"==typeof i?(e.pts=i+tF.BigInt(e.compositionTimeOffset),i+=tF.BigInt(e.duration)):(e.pts=i+e.compositionTimeOffset,i+=e.duration)}),o=o.concat(t)}),o}},tX=w,{getMdatTrafPairs:tK,parseSamples:tY}=tG,tQ=function(e,t){for(var r=e,i=0;i<t.length;i++){var n=t[i];if(r<n.size)return n;r-=n.size}return null},tJ=function(e,t,r){var i,n,a,s,o=new DataView(e.buffer,e.byteOffset,e.byteLength),l={logs:[],seiNals:[]};for(n=0;n+4<e.length;n+=a)if(a=o.getUint32(n),n+=4,!(a<=0))switch(31&e[n]){case 6:var c=e.subarray(n+1,n+1+a),u=tQ(n,t);if(i={nalUnitType:"sei_rbsp",size:a,data:c,escapedRBSP:tX(c),trackId:r},u)i.pts=u.pts,i.dts=u.dts,s=u;else if(s)i.pts=s.pts,i.dts=s.dts;else{l.logs.push({level:"warn",message:"We've encountered a nal unit without data at "+n+" for trackId "+r+". See mux.js#223."});break}l.seiNals.push(i)}return l},tZ=function(e,t){var r={};return tK(e).forEach(function(e){var i,n=e.mdat,a=e.traf,s=tN(tE(a,["tfhd"])[0]),o=s.trackId,l=tE(a,["tfdt"]),c=l.length>0?tk(l[0]).baseMediaDecodeTime:0,u=tE(a,["trun"]);t===o&&u.length>0&&(i=tJ(n,tY(u,c,s),o),r[o]||(r[o]={seiNals:[],logs:[]}),r[o].seiNals=r[o].seiNals.concat(i.seiNals),r[o].logs=r[o].logs.concat(i.logs))}),r},t0=function(e,t,r){if(null===t)return null;var i=tZ(e,t)[t]||{};return{seiNals:i.seiNals,logs:i.logs,timescale:r}},t1=function(){var e,t,r,i,n,a,s=!1;this.isInitialized=function(){return s},this.init=function(t){e=new R,s=!0,a=!!t&&t.isPartial,e.on("data",function(e){e.startTime=e.startPts/i,e.endTime=e.endPts/i,n.captions.push(e),n.captionStream
153s[e.stream]=!0}),e.on("log",function(e){n.logs.push(e)})},this.isNewInit=function(e,t){return(!e||0!==e.length)&&(!t||"object"!=typeof t||0!==Object.keys(t).length)&&(r!==e[0]||i!==t[r])},this.parse=function(e,a,s){var o;if(!this.isInitialized()||!a||!s)return null;if(this.isNewInit(a,s))i=s[r=a[0]];else if(null===r||!i)return t.push(e),null;for(;t.length>0;){var l=t.shift();this.parse(l,a,s)}return((o=t0(e,r,i))&&o.logs&&(n.logs=n.logs.concat(o.logs)),null!==o&&o.seiNals)?(this.pushNals(o.seiNals),this.flushStream(),n):n.logs.length?{logs:n.logs,captions:[],captionStreams:[]}:null},this.pushNals=function(t){if(!this.isInitialized()||!t||0===t.length)return null;t.forEach(function(t){e.push(t)})},this.flushStream=function(){if(!this.isInitialized())return null;a?e.partialFlush():e.flush()},this.clearParsedCaptions=function(){n.captions=[],n.captionStreams={},n.logs=[]},this.resetCaptionStream=function(){if(!this.isInitialized())return null;e.reset()},this.clearAllCaptions=function(){this.clearParsedCaptions(),this.resetCaptionStream()},this.reset=function(){t=[],r=null,i=null,n?this.clearParsedCaptions():n={captions:[],captionStreams:{},logs:[]},this.resetCaptionStream()},this.reset()};let{parseTfdt:t2}=tR,{getTimescaleFromMediaHeader:t4}=tH,{parseSamples:t5,getMdatTrafPairs:t3}=tG;var t8=function(){let e=9e4;this.init=function(t){let r=tE(t,["moov","trak","mdia","mdhd"])[0];r&&(e=t4(r))},this.parseSegment=function(t){let r=[],i=t3(t),n=0;return i.forEach(function(t){let i=t.mdat,a=t.traf,s=tE(a,["tfdt"])[0],o=tE(a,["tfhd"])[0],l=tE(a,["trun"]);if(s&&(n=t2(s).baseMediaDecodeTime),l.length&&o){let t=t5(l,n,o),a=0;t.forEach(function(t){let n=new TextDecoder("utf-8"),s=i.slice(a,a+t.size);if(tE(s,["vtte"])[0]){a+=t.size;return}tE(s,["vttc"]).forEach(function(i){let a,s,o=tE(i,["payl"])[0],l=tE(i,["sttg"])[0],c=t.pts/e,u=(t.pts+t.duration)/e;if(o)try{a=n.decode(o)}catch(e){console.error(e)}if(l)try{s=n.decode(l)}catch(e){console.error(e)}t.duration&&a&&r.push({cueText:a,start:c,end:u,settings:s})}),a+=t.size})}}),r}},t6=function(e){var t=31&e[1];return t<<=8,t|=e[2]},t7=function(e){return!!(64&e[1])},t9=function(e){var t=0;return(48&e[3])>>>4>1&&(t+=e[4]+1),t},re=function(e){switch(e){case 5:return"slice_layer_without_partitioning_rbsp_idr";case 6:return"sei_rbsp";case 7:return"seq_parameter_set_rbsp";case 8:return"pic_parameter_set_rbsp";case 9:return"access_unit_delimiter_rbsp";default:return null}},rt={};rt.ts={parseType:function(e,t){var r=t6(e);return 0===r?"pat":r===t?"pmt":t?"pes":null},parsePat:function(e){var t=t7(e),r=4+t9(e);return t&&(r+=e[r]+1),(31&e[r+10])<<8|e[r+11]},parsePmt:function(e){var t,r={},i=t7(e),n=4+t9(e);if(i&&(n+=e[n]+1),1&e[n+5]){t=3+((15&e[n+1])<<8|e[n+2])-4;for(var a=12+((15&e[n+10])<<8|e[n+11]);a<t;){var s=n+a;r[(31&e[s+1])<<8|e[s+2]]=e[s],a+=((15&e[s+3])<<8|e[s+4])+5}return r}},parsePayloadUnitStartIndicator:t7,parsePesType:function(e,t){switch(t[t6(e)]){case U.H264_STREAM_TYPE:return"video";case U.ADTS_STREAM_TYPE:return"audio";case U.METADATA_STREAM_TYPE:return"timed-metadata";default:return null}},parsePesTime:function(e){if(!t7(e))return null;var t,r=4+t9(e);if(r>=e.byteLength)return null;var i=null;return 192&(t=e[r+7])&&((i={}).pts=(14&e[r+9])<<27|(255&e[r+10])<<20|(254&e[r+11])<<12|(255&e[r+12])<<5|(254&e[r+13])>>>3,i.pts*=4,i.pts+=(6&e[r+13])>>>1,i.dts=i.pts,64&t&&(i.dts=(14&e[r+14])<<27|(255&e[r+15])<<20|(254&e[r+16])<<12|(255&e[r+17])<<5|(254&e[r+18])>>>3,i.dts*=4,i.dts+=(6&e[r+18])>>>1)),i},videoPacketContainsKeyFrame:function(e){for(var t,r=4+t9(e),i=e.subarray(r),n=0,a=0,s=!1;a<i.byteLength-3;a++)if(1===i[a+2]){n=a+5;break}for(;n<i.byteLength;)switch(i[n]){case 0:if(0!==i[n-1]){n+=2;break}if(0!==i[n-2]){n++;break}a+3!==n-2&&"slice_layer_without_partitioning_rbsp_idr"===re(31&i[a+3])&&(s=!0);do n++;while(1!==i[n]&&n<i.length)a=n-2,n+=3;break;case 1:if(0!==i[n-1]||0!==i[n-2]){n+=3;break}"slice_layer_without_partitioning_rbsp_idr"===re(31&i[a+3])&&(s=!0),a=n-2,n+=3;break;default:n+=3}return i=i.subarray(a),n-=a,a=0,i&&i.byteLength>3&&"slice_layer_without_partitioning_rbsp_idr"===re(31&i[a+3])&&(s=!0),s}},rt.aac=ed;var rr=d,ri=function(e,t){for(var r,i=0,n=188;n<e.byteLength;){if(71===e[i]&&71===e[n]){switch(r=e.subarray(i,n),rt.ts.parseType(r,t.pid)){case"pat":t.pid=rt.ts.parsePat(r);break;case"pmt":var a=rt.ts.parsePmt(r);t.table=t.table||{}
153,Object.keys(a).forEach(function(e){t.table[e]=a[e]})}i+=188,n+=188;continue}i++,n++}},rn=function(e,t,r){for(var i,n,a,s,o,l=0,c=188,u=!1;c<=e.byteLength;){if(71===e[l]&&(71===e[c]||c===e.byteLength)){if(i=e.subarray(l,c),"pes"===rt.ts.parseType(i,t.pid)&&(a=rt.ts.parsePesType(i,t.table),s=rt.ts.parsePayloadUnitStartIndicator(i),"audio"===a&&s&&(o=rt.ts.parsePesTime(i))&&(o.type="audio",r.audio.push(o),u=!0)),u)break;l+=188,c+=188;continue}l++,c++}for(l=(c=e.byteLength)-188,u=!1;l>=0;){if(71===e[l]&&(71===e[c]||c===e.byteLength)){if(i=e.subarray(l,c),"pes"===rt.ts.parseType(i,t.pid)&&(a=rt.ts.parsePesType(i,t.table),s=rt.ts.parsePayloadUnitStartIndicator(i),"audio"===a&&s&&(o=rt.ts.parsePesTime(i))&&(o.type="audio",r.audio.push(o),u=!0)),u)break;l-=188,c-=188;continue}l--,c--}},ra=function(e,t,r){for(var i,n,a,s,o,l,c,u,d=0,p=188,h=!1,f={data:[],size:0};p<e.byteLength;){if(71===e[d]&&71===e[p]){if(i=e.subarray(d,p),"pes"===rt.ts.parseType(i,t.pid)&&(a=rt.ts.parsePesType(i,t.table),s=rt.ts.parsePayloadUnitStartIndicator(i),"video"===a)&&(s&&!h&&(o=rt.ts.parsePesTime(i))&&(o.type="video",r.video.push(o),h=!0),!r.firstKeyFrame)){if(s&&0!==f.size){for(l=new Uint8Array(f.size),c=0;f.data.length;)u=f.data.shift(),l.set(u,c),c+=u.byteLength;if(rt.ts.videoPacketContainsKeyFrame(l)){var g=rt.ts.parsePesTime(l);g?(r.firstKeyFrame=g,r.firstKeyFrame.type="video"):console.warn("Failed to extract PTS/DTS from PES at first keyframe. This could be an unusual TS segment, or else mux.js did not parse your TS segment correctly. If you know your TS segments do contain PTS/DTS on keyframes please file a bug report! You can try ffprobe to double check for yourself.")}f.size=0}f.data.push(i),f.size+=i.byteLength}if(h&&r.firstKeyFrame)break;d+=188,p+=188;continue}d++,p++}for(d=(p=e.byteLength)-188,h=!1;d>=0;){if(71===e[d]&&71===e[p]){if(i=e.subarray(d,p),"pes"===rt.ts.parseType(i,t.pid)&&(a=rt.ts.parsePesType(i,t.table),s=rt.ts.parsePayloadUnitStartIndicator(i),"video"===a&&s&&(o=rt.ts.parsePesTime(i))&&(o.type="video",r.video.push(o),h=!0)),h)break;d-=188,p-=188;continue}d--,p--}},rs=function(e,t){if(e.audio&&e.audio.length){var r=t;(void 0===r||isNaN(r))&&(r=e.audio[0].dts),e.audio.forEach(function(e){e.dts=$(e.dts,r),e.pts=$(e.pts,r),e.dtsTime=e.dts/rr,e.ptsTime=e.pts/rr})}if(e.video&&e.video.length){var i=t;if((void 0===i||isNaN(i))&&(i=e.video[0].dts),e.video.forEach(function(e){e.dts=$(e.dts,i),e.pts=$(e.pts,i),e.dtsTime=e.dts/rr,e.ptsTime=e.pts/rr}),e.firstKeyFrame){var n=e.firstKeyFrame;n.dts=$(n.dts,i),n.pts=$(n.pts,i),n.dtsTime=n.dts/rr,n.ptsTime=n.pts/rr}}},ro=function(e){for(var t,r=!1,i=0,n=null,a=null,s=0,o=0;e.length-o>=3;){switch(rt.aac.parseType(e,o)){case"timed-metadata":if(e.length-o<10||(s=rt.aac.parseId3TagSize(e,o))>e.length){r=!0;break}null===a&&(t=e.subarray(o,o+s),a=rt.aac.parseAacTimestamp(t)),o+=s;break;case"audio":if(e.length-o<7||(s=rt.aac.parseAdtsSize(e,o))>e.length){r=!0;break}null===n&&(t=e.subarray(o,o+s),n=rt.aac.parseSampleRate(t)),i++,o+=s;break;default:o++}if(r)return null}if(null===n||null===a)return null;var l=rr/n;return{audio:[{type:"audio",dts:a,pts:a},{type:"audio",dts:a+1024*i*l,pts:a+1024*i*l}]}},rl=function(e){var t={pid:null,table:null},r={};for(var i in ri(e,t),t.table)if(t.table.hasOwnProperty(i))switch(t.table[i]){case U.H264_STREAM_TYPE:r.video=[],ra(e,t,r),0===r.video.length&&delete r.video;break;case U.ADTS_STREAM_TYPE:r.audio=[],rn(e,t,r),0===r.audio.length&&delete r.audio}return r},rc=function(e,t){var r;return(r=rt.aac.isLikelyAacData(e)?ro(e):rl(e))&&(r.audio||r.video)?(rs(r,t),r):null};let ru=function(e,t){t.on("data",function(t){let r=t.initSegment;t.initSegment={data:r.buffer,byteOffset:r.byteOffset,byteLength:r.byteLength};let i=t.data;t.data=i.buffer,e.postMessage({action:"data",segment:t,byteOffset:i.byteOffset,byteLength:i.byteLength},[t.data])}),t.on("done",function(t){e.postMessage({action:"done"})}),t.on("gopInfo",function(t){e.postMessage({action:"gopInfo",gopInfo:t})}),t.on("videoSegmentTimingInfo",function(t){let r={start:{decode:h(t.start.dts),presentation:h(t.start.pts)},end:{decode:h(t.end.dts),presentation:h(t.end.pts)},baseMediaDecodeTime:h(t.baseMediaDecodeTime)};t.prependedContentDuration&&(r.prependedContentDuration=h(t.prependedContentDuration)),e.postMessage({action:"videoSegmentTimingInfo",videoSegmentTimingInfo:r})}),t.on("audioSegmentTimingInfo",function(t){let r={start:{decode:h(t.start.dts),presentation:h(t.start.pts)},end:{decode:h(t.end.dts),presentation:h(t.end.pts)},baseMediaDecodeTime:h(t.baseMediaDecodeTime)};t.prependedContentDuration&&(r.prependedContentDuration=h(t.prependedContentDuration)),e.postMessage({action:"audioSegmentTimingInfo",audioSegmentTimingInfo:r})}),t.on("id3Frame",function(t){e.postMessage({action:"id3Frame",id3Frame:t})}),t.on("caption",function(t){e.postMessage({action:"caption",caption:t})}),t.on("trackinfo",function(t){e.postMessage({action:"trackinfo",trackInfo:t})}),t.on("audioTimingInfo",function(t){e.postMessage({action:"audioTimingInfo",audioTimingInfo:{start:h(t.start),end:h(t.end)}})}),t.on("videoTimingInfo",function(t){e.postMessage({action:"videoTimingInfo",videoTimingInfo:{start:h(t.start),end:h(t.end)}})}),t.on("log",function(t){e.postMessage({action:"log",log:t})})};class rd{constructor(e,t){this.options=t||{},this.self=e,this.init()}init(){this.transmuxer&&this.transmuxer.dispose(),this.transmuxer=new tT(this.options),ru(this.self,this.transmuxer)}pushMp4Captions(e){this.captionParser||(this.captionParser=new t1,this.captionParser.init());let t=new Uint8Array(e.data,e.byteOffset,e.byteLength),r=this.captionParser.parse(t,e.trackIds,e.timescales);this.self.postMessage({action:"mp4Captions",captions:r&&r.captions||[],logs:r&&r.logs||[],data:t.buffer},[t.buffer])}initMp4WebVttParser(e){this.webVttParser||(this.webVttParser=new t8);let t=new Uint8Array(e.data,e.byteOffset,e.byteLength);this.webVttParser.init(t)}getMp4WebVttText(e){this.webVttParser||(this.webVttParser=new t8);let t=new Uint8Array(e.data,e.byteOffset,e.byteLength),r=this.webVttParser.parseSegment(t);this.self.postMessage({action:"getMp4WebVttText",mp4VttCues:r||[],data:t.buffer},[t.buffer])}probeMp4StartTime({timescales:e,data:t}){let r=tH.startTime(e,t);this.self.postMessage({action:"probeMp4StartTime",startTime:r,data:t},[t.buffer])}probeMp4Tracks({data:e}){let t=tH.tracks(e);this.self.postMessage({action:"probeMp4Tracks",tracks:t,data:e},[e.buffer])}probeEmsgID3({data:e,offset:t}){let r=tH.getEmsgID3(e,t);this.self.postMessage({action:"probeEmsgID3",id3Frames:r,emsgData:e},[e.buffer])}probeTs({data:e,baseStartTime:t}){let r=rc(e,"number"!=typeof t||isNaN(t)?void 0:t*d),i=null;r&&((i={hasVideo:r.video&&2===r.video.length||!1,hasAudio:r.audio&&2===r.audio.length||!1}).hasVideo&&(i.videoStart=r.video[0].ptsTime),i.hasAudio&&(i.audioStart=r.audio[0].ptsTime)),this.self.postMessage({action:"probeTs",result:i,data:e},[e.buffer])}clearAllMp4Captions(){this.captionParser&&this.captionParser.clearAllCaptions()}clearParsedMp4Captions(){this.captionParser&&this.captionParser.clearParsedCaptions()}push(e){let t=new Uint8Array(e.data,e.byteOffset,e.byteLength);this.transmuxer.push(t)}reset(){this.transmuxer.reset()}setTimestampOffset(e){let t=e.timestampOffset||0;this.transmuxer.setBaseMediaDecodeTime(Math.round(p(t)))}setAudioAppendStart(e){this.transmuxer.setAudioAppendStart(Math.ceil(p(e.appendStart)))}setRemux(e){this.transmuxer.setRemux(e.remux)}flush(e){this.transmuxer.flush(),self.postMessage({action:"done",type:"transmuxed"})}endTimeline(){this.transmuxer.endTimeline(),self.postMessage({action:"endedtimeline",type:"transmuxed"})}alignGopsWith(e){this.transmuxer.alignGopsWith(e.gopsToAlignWith.slice())}}self.onmessage=function(e){if("init"===e.data.action&&e.data.options){this.messageHandlers=new rd(self,e.data.options);return}this.messageHandlers||(this.messageHandlers=new rd(self)),e.data&&e.data.action&&"init"!==e.data.action&&this.messageHandlers[e.data.action]&&this.messageHandlers[e.data.action](e.data)}})));let s2=e=>{let{transmuxer:t,bytes:r,audioAppendStart:i,gopsToAlignWith:n,remux:a,onData:s,onTrackInfo:o,onAudioTimingInfo:l,onVideoTimingInfo:c,onVideoSegmentTimingInfo:u,onAudioSegmentTimingInfo:d,onId3:p,onCaptions:h,onDone:f,onEndedTimeline:g,onTransmuxerLog:m,isEndOfTimeline:y,segment:b,triggerSegmentEventFn:v}=e,x={buffer:[]},_=y;if(t.onmessage=r=>{t.currentTransmux===e&&("data"===r.data.action&&((e,t,r)=>
153{let{type:i,initSegment:n,captions:a,captionStreams:s,metadata:o,videoFrameDtsTime:l,videoFramePtsTime:c}=e.data.segment;t.buffer.push({captions:a,captionStreams:s,metadata:o});let u=e.data.segment.boxes||{data:e.data.segment.data},d={type:i,data:new Uint8Array(u.data,u.data.byteOffset,u.data.byteLength),initSegment:new Uint8Array(n.data,n.byteOffset,n.byteLength)};void 0!==l&&(d.videoFrameDtsTime=l),void 0!==c&&(d.videoFramePtsTime=c),r(d)})(r,x,s),"trackinfo"===r.data.action&&o(r.data.trackInfo),"gopInfo"===r.data.action&&(x.gopInfo=r.data.gopInfo),"audioTimingInfo"===r.data.action&&l(r.data.audioTimingInfo),"videoTimingInfo"===r.data.action&&c(r.data.videoTimingInfo),"videoSegmentTimingInfo"===r.data.action&&u(r.data.videoSegmentTimingInfo),"audioSegmentTimingInfo"===r.data.action&&d(r.data.audioSegmentTimingInfo),"id3Frame"===r.data.action&&p([r.data.id3Frame],r.data.id3Frame.dispatchType),"caption"===r.data.action&&h(r.data.caption),"endedtimeline"===r.data.action&&(_=!1,g()),"log"===r.data.action&&m(r.data.log),"transmuxed"!==r.data.type||_||(t.onmessage=null,(({transmuxedData:e,callback:t})=>{e.buffer=[],t(e)})({transmuxedData:x,callback:f}),s4(t)))},t.onerror=()=>{f(null,{message:"Received an error message from the transmuxer worker",metadata:{errorType:aI.Error.StreamingFailedToTransmuxSegment,segmentInfo:oA({segment:b})}})},i&&t.postMessage({action:"setAudioAppendStart",appendStart:i}),Array.isArray(n)&&t.postMessage({action:"alignGopsWith",gopsToAlignWith:n}),void 0!==a&&t.postMessage({action:"setRemux",remux:a}),r.byteLength){let e=r instanceof ArrayBuffer?r:r.buffer,i=r instanceof ArrayBuffer?0:r.byteOffset;v({type:"segmenttransmuxingstart",segment:b}),t.postMessage({action:"push",data:e,byteOffset:i,byteLength:r.byteLength},[e])}y&&t.postMessage({action:"endTimeline"}),t.postMessage({action:"flush"})},s4=e=>{e.currentTransmux=null,e.transmuxQueue.length&&(e.currentTransmux=e.transmuxQueue.shift(),"function"==typeof e.currentTransmux?e.currentTransmux():s2(e.currentTransmux))},s5=(e,t)=>{e.postMessage({action:t}),s4(e)};var s3=e=>{((e,t)=>{if(!t.currentTransmux){t.currentTransmux=e,s5(t,e);return}t.transmuxQueue.push(s5.bind(null,t,e))})("reset",e)};let s8=function(e){let t=e.transmuxer,r=e.endAction||e.action,i=e.callback,n=y({},e,{endAction:null,transmuxer:null,callback:null}),a=n=>{n.data.action===r&&(t.removeEventListener("message",a),n.data.data&&(n.data.data=new Uint8Array(n.data.data,e.byteOffset||0,e.byteLength||n.data.data.byteLength),e.data&&(e.data=n.data.data)),i(n.data))};if(t.addEventListener("message",a),e.data){let r=e.data instanceof ArrayBuffer;n.byteOffset=r?0:e.data.byteOffset,n.byteLength=e.data.byteLength;let i=[r?e.data:e.data.buffer];t.postMessage(n,i)}else t.postMessage(n)},s6="wvtt",s7=e=>{e.forEach(e=>{e.abort()})},s9=(e,t)=>{let{requestType:r}=t,i=sf({requestType:r,request:t,error:e});return t.timedout?{status:t.status,message:"HLS request timed-out at URL: "+t.uri,code:-101,xhr:t,metadata:i}:t.aborted?{status:t.status,message:"HLS request aborted at URL: "+t.uri,code:-102,xhr:t,metadata:i}:e?{status:t.status,message:"HLS request errored at URL: "+t.uri,code:2,xhr:t,metadata:i}:"arraybuffer"===t.responseType&&0===t.response.byteLength?{status:t.status,message:"Empty HLS response at URL: "+t.uri,code:2,xhr:t,metadata:i}:null},oe=(e,t,r,i)=>(n,a)=>{let s=a.response,o=s9(n,a);if(o)return r(o,e);if(16!==s.byteLength)return r({status:a.status,message:"Invalid HLS key at URL: "+a.uri,code:2,xhr:a},e);let l=new DataView(s),c=new Uint32Array([l.getUint32(0),l.getUint32(4),l.getUint32(8),l.getUint32(12)]);for(let e=0;e<t.length;e++)t[e].bytes=c;return i({type:"segmentkeyloadcomplete",segment:e,keyInfo:{uri:a.uri}}),r(null,e)},ot=(e,t)=>{let r=tr(e.map.bytes);if("mp4"!==r){let i=e.map.resolvedUri||e.map.uri,n=r||"unknown";return t({internal:!0,message:`Found unsupported ${n} container for initialization segment at URL: ${i}`,code:2,metadata:{mediaType:n}})}s8({action:"probeMp4Tracks",data:e.map.bytes,transmuxer:e.transmuxer,callback:({tracks:r,data:i})=>(e.map.bytes=i,r.forEach(function(t){(e.map.tracks=e.map.tracks||{},!e.map.tracks[t.type])&&(e.map.tracks[t.type]=t,"number"==typeof t.id&&t.timescale&&(e.map.timescales=e.map.timescales||{},e.map.timescales[t.id]=t.timescale),"text"===t.type&&t.codec===s6&&e.transmuxer.postMessage({action:"initMp4WebVttParser",data:e.map.bytes}))}),t(null))})},or=({segment:e,bytes:t,trackInfoFn:r,timingInfoFn:i,videoSegmentTimingInfoFn:n,audioSegmentTimingInfoFn:a,id3Fn:s,captionsFn:o,isEndOfTimeline:l,endedTimelineFn:c,dataFn:u,doneFn:d,onTransmuxerLog:p,triggerSegmentEventFn:h})=>{let f=new Uint8Array(t);if(eY(f,["moof"]).length>0){e.isFmp4=!0;let{tracks:n}=e.map;if(n.text&&(!n.audio||!n.video)){var g;u(e,{data:f,type:"text"}),g=n.text.codec,g===s6&&s8({action:"getMp4WebVttText",data:e.bytes,transmuxer:e.transmuxer,callback:({data:t,mp4VttCues:r})=>{e.bytes=t,d(null,e,{mp4VttCues:r})}});return}let a={isFmp4:!0,hasVideo:!!n.video,hasAudio:!!n.audio};n.audio&&n.audio.codec&&"enca"!==n.audio.codec&&(a.audioCodec=n.audio.codec),n.video&&n.video.codec&&"encv"!==n.video.codec&&(a.videoCodec=n.video.codec),n.video&&n.audio&&(a.isMuxed=!0),r(e,a);let l=(t,r)=>{u(e,{data:f,type:a.hasAudio&&!a.isMuxed?"audio":"video"}),r&&r.length&&s(e,r),t&&t.length&&o(e,t),d(null,e,{})};s8({action:"probeMp4StartTime",timescales:e.map.timescales,data:f,transmuxer:e.transmuxer,callback:({data:r,startTime:s})=>{t=r.buffer,e.bytes=f=r,a.hasAudio&&!a.isMuxed&&i(e,"audio","start",s),a.hasVideo&&i(e,"video","start",s),s8({action:"probeEmsgID3",data:f,transmuxer:e.transmuxer,offset:s,callback:({emsgData:r,id3Frames:i})=>{(t=r.buffer,e.bytes=f=r,n.video&&r.byteLength&&e.transmuxer)?s8({action:"pushMp4Captions",endAction:"mp4Captions",transmuxer:e.transmuxer,data:f,timescales:e.map.timescales,trackIds:[n.video.id],callback:r=>
153{t=r.data.buffer,e.bytes=f=r.data,r.logs.forEach(function(e){p(aM(e,{stream:"mp4CaptionParser"}))}),l(r.captions,i)}}):l(void 0,i)}})}});return}if(!e.transmuxer)return void d(null,e,{});if(void 0===e.container&&(e.container=tr(f)),"ts"!==e.container&&"aac"!==e.container){r(e,{hasAudio:!1,hasVideo:!1}),d(null,e,{});return}(({segment:e,bytes:t,trackInfoFn:r,timingInfoFn:i,videoSegmentTimingInfoFn:n,audioSegmentTimingInfoFn:a,id3Fn:s,captionsFn:o,isEndOfTimeline:l,endedTimelineFn:c,dataFn:u,doneFn:d,onTransmuxerLog:p,triggerSegmentEventFn:h})=>{let f=e.map&&e.map.tracks||{},g=!!(f.audio&&f.video),m=i.bind(null,e,"audio","start"),y=i.bind(null,e,"audio","end"),b=i.bind(null,e,"video","start"),v=i.bind(null,e,"video","end");s8({action:"probeTs",transmuxer:e.transmuxer,data:t,baseStartTime:e.baseStartTime,callback:i=>{e.bytes=t=i.data;let f=i.result;f&&(r(e,{hasAudio:f.hasAudio,hasVideo:f.hasVideo,isMuxed:g}),r=null),(e=>{if(!e.transmuxer.currentTransmux){e.transmuxer.currentTransmux=e,s2(e);return}e.transmuxer.transmuxQueue.push(e)})({bytes:t,transmuxer:e.transmuxer,audioAppendStart:e.audioAppendStart,gopsToAlignWith:e.gopsToAlignWith,remux:g,onData:t=>{t.type="combined"===t.type?"video":t.type,u(e,t)},onTrackInfo:t=>{r&&(g&&(t.isMuxed=!0),r(e,t))},onAudioTimingInfo:e=>{m&&void 0!==e.start&&(m(e.start),m=null),y&&void 0!==e.end&&y(e.end)},onVideoTimingInfo:e=>{b&&void 0!==e.start&&(b(e.start),b=null),v&&void 0!==e.end&&v(e.end)},onVideoSegmentTimingInfo:t=>{h({type:"segmenttransmuxingtiminginfoavailable",segment:e,timingInfo:{pts:{start:t.start.presentation,end:t.end.presentation},dts:{start:t.start.decode,end:t.end.decode}}}),n(t)},onAudioSegmentTimingInfo:t=>{h({type:"segmenttransmuxingtiminginfoavailable",segment:e,timingInfo:{pts:{start:t.start.pts,end:t.end.pts},dts:{start:t.start.dts,end:t.end.dts}}}),a(t)},onId3:(t,r)=>{s(e,t,r)},onCaptions:t=>{o(e,[t])},isEndOfTimeline:l,onEndedTimeline:()=>{c()},onTransmuxerLog:p,onDone:(t,r)=>{d&&(t.type="combined"===t.type?"video":t.type,h({type:"segmenttransmuxingcomplete",segment:e}),d(r,e,t))},segment:e,triggerSegmentEventFn:h})}})})({segment:e,bytes:t,trackInfoFn:r,timingInfoFn:i,videoSegmentTimingInfoFn:n,audioSegmentTimingInfoFn:a,id3Fn:s,captionsFn:o,isEndOfTimeline:l,endedTimelineFn:c,dataFn:u,doneFn:d,onTransmuxerLog:p,triggerSegmentEventFn:h})},oi=function({id:e,key:t,encryptedBytes:r,decryptionWorker:i,segment:n,doneFn:a},s){let o,l=t=>{if(t.data.source===e){i.removeEventListener("message",l);let e=t.data.decrypted;s(new Uint8Array(e.bytes,e.byteOffset,e.byteLength))}};i.onerror=()=>{let e="An error occurred in the decryption worker",t=oA({segment:n});a({message:e,metadata:{error:Error(e),errorType:aI.Error.StreamingFailedToDecryptSegment,segmentInfo:t,keyInfo:{uri:n.key.resolvedUri||n.map.key.resolvedUri}}},n)},i.addEventListener("message",l),o=t.bytes.slice?t.bytes.slice():new Uint32Array(Array.prototype.slice.call(t.bytes)),i.postMessage(sR({source:e,encrypted:r,key:o,iv:t.iv}),[r.buffer,o.buffer])},on=aR("PlaylistSelector"),oa=function(e){if(!e||!e.playlist)return;let t=e.playlist;return JSON.stringify({id:t.id,bandwidth:e.bandwidth,width:e.width,height:e.height,codecs:t.attributes&&t.attributes.CODECS||""})},os=function(e,t){if(!e)return"";let r=h.default.getComputedStyle(e);return r?r[t]:""},oo=function(e,t){let r=e.slice();e.sort(function(e,i){let n=t(e,i);return 0===n?r.indexOf(e)-r.indexOf(i):n})},ol=function(e,t){let r,i;return e.attributes.BANDWIDTH&&(r=e.attributes.BANDWIDTH),r=r||h.default.Number.MAX_VALUE,t.attributes.BANDWIDTH&&(i=t.attributes.BANDWIDTH),r-(i=i||h.default.Number.MAX_VALUE)},oc=function(e){let t,r,i,n,{main:a,bandwidth:s,playerWidth:o,playerHeight:l,playerObjectFit:c,limitRenditionByPlayerDimensions:u,playlistController:d}=e;if(!a)return;let p={bandwidth:s,width:o,height:l,limitRenditionByPlayerDimensions:u},f=a.playlists;ss.isAudioOnly(a)&&(f=d.getAudioTrackPlaylists_(),p.audioOnly=!0);let g=f.map(e=>{let t=e.attributes&&e.attributes.RESOLUTION&&e.attributes.RESOLUTION.width,r=e.attributes&&e.attributes.RESOLUTION&&e.attributes.RESOLUTION.height;return{bandwidth:e.attributes&&e.attributes.BANDWIDTH||h.default.Number.MAX_VALUE,width:t,height:r,playlist:e}});oo(g,(e,t)=>e.bandwidth-t.bandwidth);let m=(g=g.filter(e=>!ss.isIncompatible(e.playlist))).filter(e=>ss.isEnabled(e.playlist));m.length||(m=g.filter(e=>!ss.isDisabled(e.playlist)));let y=m.filter(e=>e.bandwidth*sK.BANDWIDTH_VARIANCE<s),b=y[y.length-1],v=y.filter(e=>e.bandwidth===b.bandwidth)[0];if(!1===u){let e=v||m[0]||g[0];if(e&&e.playlist){let t="sortedPlaylistReps";return v&&(t="bandwidthBestRep"),m[0]&&(t="enabledPlaylistReps"),on(`choosing ${oa(e)} using ${t} with options`,p),e.playlist}return on("could not choose a playlist with options",p),null}let x=y.filter(e=>e.width&&e.height);oo(x,(e,t)=>e.width-t.width);let _=x.filter(e=>e.width===o&&e.height===l);b=_[_.length-1];let w=_.filter(e=>e.bandwidth===b.bandwidth)[0];if(w||(b=(r=(t=x.filter(e=>"cover"===c?e.width>o&&e.height>l:e.width>o||e.height>l)).filter(e=>e.width===t[0].width&&e.height===t[0].height))[r.length-1],i=r.filter(e=>e.bandwidth===b.bandwidth)[0]),d.leastPixelDiffSelector){let e=x.map(e=>(e.pixelDiff=Math.abs(e.width-o)+Math.abs(e.height-l),e));oo(e,(e,t)=>e.pixelDiff===t.pixelDiff?t.bandwidth-e.bandwidth:e.pixelDiff-t.pixelDiff),n=e[0]}let T=n||i||w||v||m[0]||g[0];if(T&&T.playlist){let e="sortedPlaylistReps";return n?e="leastPixelDiffRep":i?e="resolutionPlusOneRep":w?e="resolutionBestRep":v?e="bandwidthBestRep":m[0]&&(e="enabledPlaylistReps"),on(`choosing ${oa(T)} using ${e} with options`,p),T.playlist}return on("could not choose a playlist with options",p),null},ou=function(){let e=this.useDevicePixelRatio&&h.default.devicePixelRatio||1;return isNaN(this.customPixelRatio)||(e=this.customPixelRatio),oc({main:this.playlists.main,bandwidth:this.systemBandwidth,playerWidth:parseInt(os(this.tech_.el(),"width"),10)*e,playerHe
153ight:parseInt(os(this.tech_.el(),"height"),10)*e,playerObjectFit:this.usePlayerObjectFit?os(this.tech_.el(),"objectFit"):"",limitRenditionByPlayerDimensions:this.limitRenditionByPlayerDimensions,playlistController:this.playlistController_})},od=function(e){let{main:t,currentTime:r,bandwidth:i,duration:n,segmentDuration:a,timeUntilRebuffer:s,currentTimeline:o,syncController:l}=e,c=t.playlists.filter(e=>!ss.isIncompatible(e)),u=c.filter(ss.isEnabled);u.length||(u=c.filter(e=>!ss.isDisabled(e)));let d=u.filter(ss.hasAttribute.bind(null,"BANDWIDTH")).map(e=>{let t=l.getSyncPoint(e,n,o,r),c=ss.estimateSegmentRequestTime(a,i,e);return{playlist:e,rebufferingImpact:c*(t?1:2)-s}}),p=d.filter(e=>e.rebufferingImpact<=0);return(oo(p,(e,t)=>ol(t.playlist,e.playlist)),p.length)?p[0]:(oo(d,(e,t)=>e.rebufferingImpact-t.rebufferingImpact),d[0]||null)};function op(e){try{return new URL(e).pathname.split("/").slice(-2).join("/")}catch(e){return""}}let oh=function(e,t,r){if(!e[r]){t.trigger({type:"usage",name:"vhs-608"});let i=r;/^cc708_/.test(r)&&(i="SERVICE"+r.split("_")[1]);let n=t.textTracks().getTrackById(i);if(n)e[r]=n;else{let n=t.options_.vhs&&t.options_.vhs.captionServices||{},a=r,s=r,o=!1,l=n[i];l&&(a=l.label,s=l.language,o=l.default),e[r]=t.addRemoteTextTrack({kind:"captions",id:i,default:o,label:a,language:s},!1).track}}},of=function({inbandTextTracks:e,captionArray:t,timestampOffset:r}){if(!t)return;let i=h.default.WebKitDataCue||h.default.VTTCue;t.forEach(t=>{let n=t.stream;t.content?t.content.forEach(a=>{let s=new i(t.startTime+r,t.endTime+r,a.text);s.line=a.line,s.align="left",s.position=a.position,s.positionAlign="line-left",e[n].addCue(s)}):e[n].addCue(new i(t.startTime+r,t.endTime+r,t.text))})},og=function(e){Object.defineProperties(e.frame,{id:{get:()=>(aI.log.warn("cue.frame.id is deprecated. Use cue.value.key instead."),e.value.key)},value:{get:()=>(aI.log.warn("cue.frame.value is deprecated. Use cue.value.data instead."),e.value.data)},privateData:{get:()=>(aI.log.warn("cue.frame.privateData is deprecated. Use cue.value.data instead."),e.value.data)}})},om={id:"ID",class:"CLASS",startDate:"START-DATE",duration:"DURATION",endDate:"END-DATE",endOnNext:"END-ON-NEXT",plannedDuration:"PLANNED-DURATION",scte35Out:"SCTE35-OUT",scte35In:"SCTE35-IN"},oy=new Set(["id","class","startDate","duration","endDate","endOnNext","startTime","endTime","processDateRange"]),ob=(e,t,r)=>{!e.metadataTrack_&&(e.metadataTrack_=r.addRemoteTextTrack({kind:"metadata",label:"Timed Metadata"},!1).track,aI.browser.IS_ANY_SAFARI||(e.metadataTrack_.inBandMetadataTrackDispatchType=t))},ov=function(e,t,r){let i,n;if(r&&r.cues)for(i=r.cues.length;i--;)(n=r.cues[i]).startTime>=e&&n.endTime<=t&&r.removeCue(n)},ox=function(e){let t=e.cues;if(!t)return;let r={};for(let i=t.length-1;i>=0;i--){let n=t[i],a=`${n.startTime}-${n.endTime}-${n.text}`;r[a]?e.removeCue(n):r[a]=n}},o_=function(e,t){if(!e&&!t||!e&&t||e&&!t)return!1;if(e===t)return!0;let r=Object.keys(e).sort(),i=Object.keys(t).sort();if(r.length!==i.length)return!1;for(let n=0;n<r.length;n++){let a=r[n];if(a!==i[n]||e[a]!==t[a])return!1}return!0},ow=function(e,t,r){t=t||[];let i=[],n=0;for(let a=0;a<t.length;a++){let s=t[a];if(e===s.timeline&&(i.push(a),(n+=s.duration)>r))return a}return 0===i.length?0:i[i.length-1]},oT=e=>"number"==typeof e&&isFinite(e),oS=1/60,oC=e=>{let{startOfSegment:t,duration:r,segment:i,part:n,playlist:{mediaSequence:a,id:s,segments:o=[]},mediaIndex:l,partIndex:c,timeline:u}=e,d=o.length-1,p="mediaIndex/partIndex increment";e.getMediaInfoForTime?p=`getMediaInfoForTime (${e.getMediaInfoForTime})`:e.isSyncRequest&&(p="getSyncSegmentCandidate (isSyncRequest)"),e.independent&&(p+=` with independent ${e.independent}`);let h="number"==typeof c,f=e.segment.uri?"segment":"pre-segment",g=h?a0({preloadSegment:i})-1:0;return`${f} [${a+l}/${a+d}]`+(h?` part [${c}/${g}]`:"")+` segment start/end [${i.start} => ${i.end}]`+(h?` part start/end [${n.start} => ${n.end}]`:"")+` startOfSegment [${t}]`+` duration [${r}]`+` timeline [${u}]`+` selected by [${p}]`+` playlist [${s}]`},oE=e=>`${e}TimingInfo`,ok=({timelineChangeController:e,currentTimeline:t,segmentTimeline:r,loaderType:i,audioDisabled:n})=>{if(t===r)return!1;if("audio"===i){let t=e.lastTimelineChange({type:"main"});return!t||t.to!==r}if("main"===i&&n){let t=e.pendingTimelineChange({type:"audio"});return!t||t.to!==r}return!1},oN=e=>{let t=e.pendingSegment_;if(t&&ok({timelineChangeController:e.timelineChangeController_,currentTimeline:e.currentTimeline_,segmentTimeline:t.timeline,loaderType:e.loaderType_,audioDisabled:e.audioDisabled_})&&(e=>{if(!e)return!1;let t=e.pendingTimelineChange({type:"audio"}),r=e.pendingTimelineChange({type:"main"}),i=t&&r,n=i&&t.to!==r.to;return!!i&&-1!==t.from&&-1!==r.from&&!!n})(e.timelineChangeController_)){let t,r;if(t=e.timelineChangeController_.pendingTimelineChange({type:"audio"}),r=e.timelineChangeController_.pendingTimelineChange({type:"main"}),t&&r&&t.to<r.to)return void e.timelineChangeController_.trigger("audioTimelineBehind");e.timelineChangeController_.trigger("fixBadTimelineChange")}},oI=({segmentDuration:e,maxDuration:t})=>!!e&&Math.round(e)>t+aU,oA=({type:e,segment:t})=>{if(!t)return;let r=!!(t.key||t.map&&t.map.ke),i=!!(t.map&&!t.map.bytes),n=void 0===t.startOfSegment?t.start:t.startOfSegment;return{type:e||t.type,uri:t.resolvedUri||t.uri,start:n,duration:t.duration,isEncrypted:r,isMediaInitialization:i}};class oj extends aI.EventTarget{constructor(e,t={}){if(super(),!e)throw TypeError("Initialization settings are required");if("function"!=typeof e.currentTime)throw TypeError("No currentTime getter specified");if(!e.mediaSource)throw TypeError("No MediaSource specified");this.bandwidth=e.bandwidth,this.throughput={rate:0,count:0},this.roundTrip=NaN,this.resetStats_(),this.mediaIndex=null,this.partIndex=null,this.hasPlayed_=e.hasPlayed,this.currentTime_=e.currentTime,this.seekable_=e.seekable,this.seeking_=e.seeking,this.duration_=e.duration,this.mediaSource_=e.mediaSource,this.vhs_=e.vhs,this.loaderType_=e.loaderType,this.currentMediaInfo_=void 0,this.startingMediaInfo_=void 0,this.segmentMetadataTrack_=e.segmentMetadataTrack,this.goalBufferLength_=e.goalBufferLength,this.sourceType_=e.sourceType,this.sourceUpdater_=e.sourceUpdater,this.inbandTextTracks_=e.inbandTextTracks,this.state_="INIT",this.timelineChangeController_=e.timelineChangeController,this.shouldSaveSegmentTimingInfo_=!0,this.parse708captions_=e.parse708captions,this.useDtsForTimestampOffset_=e.useDtsForTimestampOffset,this.captionServices_=e.captionServices,this.exactManifestTimings=e.exactManifestTimings,this.addMetadataToTextTrack=e.addMetadataToTextTrack,this.checkBufferTimeout_=null,this.error_=void 0,this.currentTimeline_=-1,this.shouldForceTimestampOffsetAfterResync_=!1,this.pendingSegment_=null,this.xhrOptions_=null,this.pendingSegments_=[],this.audioDisabled_=!1,this.isPendingTimestampOffset_=!1,this.gopBuffer_=[],this.timeMapping_=0,this.safeAppend_=!1,this.appendInitSegment_={audio:!0,video:!0},this.playlistOfLastInitSegment_={audio:null,video:null},this.callQueue_=[],this.loadQueue_=[],this.metadataQueue_={id3:[],caption:[]},this.waitingOnRemove_=!1,this.quotaExceededErrorRetryTimeout_=null,this.activeInitSegmentId_=null,this.initSegments_={}
153,this.cacheEncryptionKeys_=e.cacheEncryptionKeys,this.keyCache_={},this.decrypter_=e.decrypter,this.syncController_=e.syncController,this.syncPoint_={segmentIndex:0,time:0},this.transmuxer_=this.createTransmuxer_(),this.triggerSyncInfoUpdate_=()=>this.trigger("syncinfoupdate"),this.syncController_.on("syncinfoupdate",this.triggerSyncInfoUpdate_),this.mediaSource_.addEventListener("sourceopen",()=>{this.isEndOfStream_()||(this.ended_=!1)}),this.fetchAtBuffer_=!1,this.logger_=aR(`SegmentLoader[${this.loaderType_}]`),Object.defineProperty(this,"state",{get(){return this.state_},set(e){e!==this.state_&&(this.logger_(`${this.state_} -> ${e}`),this.state_=e,this.trigger("statechange"))}}),this.sourceUpdater_.on("ready",()=>{this.hasEnoughInfoToAppend_()?this.processCallQueue_():oN(this)}),this.sourceUpdater_.on("codecschange",e=>{this.trigger(y({type:"codecschange"},e))}),"main"===this.loaderType_&&this.timelineChangeController_.on("pendingtimelinechange",()=>{this.hasEnoughInfoToAppend_()?this.processCallQueue_():oN(this)}),"audio"===this.loaderType_&&this.timelineChangeController_.on("timelinechange",e=>{this.trigger(y({type:"timelinechange"},e)),this.hasEnoughInfoToLoad_()?this.processLoadQueue_():oN(this),this.hasEnoughInfoToAppend_()?this.processCallQueue_():oN(this)})}get mediaSequenceSync_(){return this.syncController_.getMediaSequenceSync(this.loaderType_)}createTransmuxer_(){var e;let t,r;return e={remux:!1,alignGopsAtEnd:this.safeAppend_,keepOriginalTimestamps:!0,parse708captions:this.parse708captions_,captionServices:this.captionServices_},(t=new s1).currentTransmux=null,t.transmuxQueue=[],r=t.terminate,t.terminate=()=>(t.currentTransmux=null,t.transmuxQueue.length=0,r.call(t)),t.postMessage({action:"init",options:e}),t}resetStats_(){this.mediaBytesTransferred=0,this.mediaRequests=0,this.mediaRequestsAborted=0,this.mediaRequestsTimedout=0,this.mediaRequestsErrored=0,this.mediaTransferDuration=0,this.mediaSecondsLoaded=0,this.mediaAppends=0}dispose(){this.trigger("dispose"),this.state="DISPOSED",this.pause(),this.abort_(),this.transmuxer_&&this.transmuxer_.terminate(),this.resetStats_(),this.checkBufferTimeout_&&h.default.clearTimeout(this.checkBufferTimeout_),this.syncController_&&this.triggerSyncInfoUpdate_&&this.syncController_.off("syncinfoupdate",this.triggerSyncInfoUpdate_),this.off()}setAudio(e){this.audioDisabled_=!e,e?this.appendInitSegment_.audio=!0:this.sourceUpdater_.removeAudio(0,this.duration_())}abort(){if("WAITING"!==this.state){this.pendingSegment_&&(this.pendingSegment_=null),this.timelineChangeController_.clearPendingTimelineChange(this.loaderType_);return}this.abort_(),this.state="READY",this.paused()||this.monitorBuffer_()}abort_(){this.pendingSegment_&&this.pendingSegment_.abortRequests&&this.pendingSegment_.abortRequests(),this.pendingSegment_=null,this.callQueue_=[],this.loadQueue_=[],this.metadataQueue_.id3=[],this.metadataQueue_.caption=[],this.timelineChangeController_.clearPendingTimelineChange(this.loaderType_),this.waitingOnRemove_=!1,h.default.clearTimeout(this.quotaExceededErrorRetryTimeout_),this.quotaExceededErrorRetryTimeout_=null}checkForAbort_(e){return"APPENDING"!==this.state||this.pendingSegment_?!this.pendingSegment_||this.pendingSegment_.requestId!==e:(this.state="READY",!0)}error(e){return void 0!==e&&(this.logger_("error occurred:",e),this.error_=e),this.pendingSegment_=null,this.error_}endOfStream(){this.ended_=!0,this.transmuxer_&&s3(this.transmuxer_),this.gopBuffer_.length=0,this.pause(),this.trigger("ended")}buffered_(){let e=this.getMediaInfo_();if(!this.sourceUpdater_||!e)return aB();if("main"===this.loaderType_){let{hasAudio:t,hasVideo:r,isMuxed:i}=e;if(r&&t&&!this.audioDisabled_&&!i)return this.sourceUpdater_.buffered();if(r)return this.sourceUpdater_.videoBuffered()}return this.sourceUpdater_.audioBuffered()}initSegmentForMap(e,t=!1){if(!e)return null;let r=sM(e),i=this.initSegments_[r];return t&&!i&&e.bytes&&(this.initSegments_[r]=i={resolvedUri:e.resolvedUri,byterange:e.byterange,bytes:e.bytes,tracks:e.tracks,timescales:e.timescales}),i||e}segmentKey(e,t=!1){if(!e)return null;let r=sB(e),i=this.keyCache_[r];this.cacheEncryptionKeys_&&t&&!i&&e.bytes&&(this.keyCache_[r]=i={resolvedUri:e.resolvedUri,bytes:e.bytes});let n={resolvedUri:(i||e).resolvedUri};return i&&(n.bytes=i.bytes),n}couldBeginLoading_(){return this.playlist_&&!this.paused()}load(){if(this.monitorBuffer_(),this.playlist_){if("INIT"===this.state&&this.couldBeginLoading_())return this.init_();this.couldBeginLoading_()&&("READY"===this.state||"INIT"===this.state)&&(this.state="READY")}}init_(){return this.state="READY",this.resetEverything(),this.monitorBuffer_()}playlist(e,t={}){if(!e||this.playlist_&&this.playlist_.endList&&e.endList&&this.playlist_.uri===e.uri)return;let r=this.playlist_,i=this.pendingSegment_;this.playlist_=e,this.xhrOptions_=t,"INIT"===this.state&&(e.syncInfo={mediaSequence:e.mediaSequence,time:0},"main"===this.loaderType_&&this.syncController_.setDateTimeMappingForStart(e));let n=null;if(r&&(r.id?n=r.id:r.uri&&(n=r.uri)),this.logger_(`playlist update [${n} => ${e.id||e.uri}]`),this.mediaSequenceSync_&&(this.mediaSequenceSync_.update(e,this.currentTime_()),this.logger_(`Playlist update:
154currentTime: ${this.currentTime_()}
155bufferedEnd: ${aK(this.buffered_())}
156`,this.mediaSequenceSync_.diagnostics)),this.trigger("syncinfoupdate"),"INIT"===this.state&&this.couldBeginLoading_())return this.init_();if(!r||r.uri!==e.uri){null!==this.mediaIndex&&(e.endList||"number"!=typeof e.partTargetDuration?this.resyncLoader():this.resetLoader()),this.currentMediaInfo_=void 0,this.trigger("playlistupdate");return}let a=e.mediaSequence-r.mediaSequence;if(this.logger_(`live window shift [${a}]`),null!==this.mediaIndex)if(this.mediaIndex-=a,this.mediaIndex<0)this.mediaIndex=null,this.partIndex=null;else{let e=this.playlist_.segments[this.mediaIndex];if(this.partIndex&&(!e.parts||!e.parts.length||!e.parts[this.partIndex])){let e=this.mediaIndex;this.logger_(`currently processing part (index ${this.partIndex}) no longer exists.`),this.resetLoader(),this.mediaIndex=e}}i&&(i.mediaIndex-=a,i.mediaIndex<0?(i.mediaIndex=null,i.partIndex=null):(i.mediaIndex>=0&&(i.segment=e.segments[i.mediaIndex]),i.partIndex>=0&&i.segment.parts&&(i.part=i.segment.parts[i.partIndex]))),this.syncController_.saveExpiredSegmentInfo(r,e)}pause(){this.checkBufferTimeout_&&(h.default.clearTimeout(this.checkBufferTimeout_),this.checkBufferTimeout_=null)}paused(){return null===this.checkBufferTimeout_}resetEverything(e){this.ended_=!1,this.activeInitSegmentId_=null,this.appendInitSegment_={audio:!0,video:!0},this.resetLoader(),this.remove(0,1/0,e),this.transmuxer_&&(this.transmuxer_.postMessage({action:"clearAllMp4Captions"}),this.transmuxer_.postMessage({action:"reset"}))}
156resetLoader(){this.fetchAtBuffer_=!1,this.mediaSequenceSync_&&this.mediaSequenceSync_.resetAppendedStatus(),this.resyncLoader()}resyncLoader(){this.transmuxer_&&s3(this.transmuxer_),this.mediaIndex=null,this.partIndex=null,this.syncPoint_=null,this.isPendingTimestampOffset_=!1;let e=this.currentMediaInfo_&&this.currentMediaInfo_.isFmp4;"hls"!==this.sourceType_||e||(this.shouldForceTimestampOffsetAfterResync_=!0),this.callQueue_=[],this.loadQueue_=[],this.metadataQueue_.id3=[],this.metadataQueue_.caption=[],this.abort(),this.transmuxer_&&this.transmuxer_.postMessage({action:"clearParsedMp4Captions"})}remove(e,t,r=()=>{},i=!1){if(t===1/0&&(t=this.duration_()),t<=e)return void this.logger_("skipping remove because end ${end} is <= start ${start}");if(!this.sourceUpdater_||!this.getMediaInfo_())return void this.logger_("skipping remove because no source updater or starting media info");let n=1,a=()=>{0==--n&&r()};for(let r in(i||!this.audioDisabled_)&&(n++,this.sourceUpdater_.removeAudio(e,t,a)),(i||"main"===this.loaderType_)&&(this.gopBuffer_=((e,t,r,i)=>{let n=Math.ceil((t-i)*ti.ONE_SECOND_IN_TS),a=Math.ceil((r-i)*ti.ONE_SECOND_IN_TS),s=e.slice(),o=e.length;for(;o--&&!(e[o].pts<=a););if(-1===o)return s;let l=o+1;for(;l--&&!(e[l].pts<=n););return l=Math.max(l,0),s.splice(l,o-l+1),s})(this.gopBuffer_,e,t,this.timeMapping_),n++,this.sourceUpdater_.removeVideo(e,t,a)),this.inbandTextTracks_)ov(e,t,this.inbandTextTracks_[r]);ov(e,t,this.segmentMetadataTrack_),a()}monitorBuffer_(){this.checkBufferTimeout_&&h.default.clearTimeout(this.checkBufferTimeout_),this.checkBufferTimeout_=h.default.setTimeout(this.monitorBufferTick_.bind(this),1)}monitorBufferTick_(){"READY"===this.state&&this.fillBuffer_(),this.checkBufferTimeout_&&h.default.clearTimeout(this.checkBufferTimeout_),this.checkBufferTimeout_=h.default.setTimeout(this.monitorBufferTick_.bind(this),500)}fillBuffer_(){if(this.sourceUpdater_.updating())return;let e=this.chooseNextRequest_();if(!e)return;let t={segmentInfo:oA({type:this.loaderType_,segment:e})};this.trigger({type:"segmentselected",metadata:t}),"number"==typeof e.timestampOffset&&(this.isPendingTimestampOffset_=!1,this.timelineChangeController_.pendingTimelineChange({type:this.loaderType_,from:this.currentTimeline_,to:e.timeline})),this.loadSegment_(e)}isEndOfStream_(e=this.mediaIndex,t=this.playlist_,r=this.partIndex){if(!t||!this.mediaSource_)return!1;let i="number"==typeof e&&t.segments[e],n=e+1===t.segments.length,a=!i||!i.parts||r+1===i.parts.length;return t.endList&&"open"===this.mediaSource_.readyState&&n&&a}chooseNextRequest_(){let e=this.buffered_(),t=aK(e)||0,r=aY(e,this.currentTime_()),i=!this.hasPlayed_()&&r>=1,n=r>=this.goalBufferLength_(),a=this.playlist_.segments;if(!a.length||i||n)return null;this.syncPoint_=this.syncPoint_||this.syncController_.getSyncPoint(this.playlist_,this.duration_(),this.currentTimeline_,this.currentTime_(),this.loaderType_);let s={partIndex:null,mediaIndex:null,startOfSegment:null,playlist:this.playlist_,isSyncRequest:!this.syncPoint_};if(s.isSyncRequest)s.mediaIndex=ow(this.currentTimeline_,a,t),this.logger_(`choose next request. Can not find sync point. Fallback to media Index: ${s.mediaIndex}`);else if(null!==this.mediaIndex){let e=a[this.mediaIndex],r="number"==typeof this.partIndex?this.partIndex:-1;s.startOfSegment=e.end?e.end:t,e.parts&&e.parts[r+1]?(s.mediaIndex=this.mediaIndex,s.partIndex=r+1):s.mediaIndex=this.mediaIndex+1}else{let e,r,i,n=this.fetchAtBuffer_?t:this.currentTime_();if(this.mediaSequenceSync_&&this.logger_(`chooseNextRequest_ request after Quality Switch:
157For TargetTime: ${n}.
158CurrentTime: ${this.currentTime_()}
159BufferedEnd: ${t}
160Fetch At Buffer: ${this.fetchAtBuffer_}
161`,this.mediaSequenceSync_.diagnostics),this.mediaSequenceSync_&&this.mediaSequenceSync_.isReliable){let t=this.getSyncInfoFromMediaSequenceSync_(n);if(!t){let e="No sync info found while using media sequence sync";return this.error({message:e,metadata:{errorType:aI.Error.StreamingFailedToSelectNextSegment,error:Error(e)}}),this.logger_("chooseNextRequest_ - no sync info found using media sequence sync"),null}this.logger_(`chooseNextRequest_ mediaSequence syncInfo (${t.start} --> ${t.end})`),e=t.segmentIndex,r=t.partIndex,i=t.start}else{this.logger_("chooseNextRequest_ - fallback to a regular segment selection algorithm, based on a syncPoint.");let t=ss.getMediaInfoForTime({exactManifestTimings:this.exactManifestTimings,playlist:this.playlist_,currentTime:n,startingPartIndex:this.syncPoint_.partIndex,startingSegmentIndex:this.syncPoint_.segmentIndex,startTime:this.syncPoint_.time});e=t.segmentIndex,r=t.partIndex,i=t.startTime}s.getMediaInfoForTime=this.fetchAtBuffer_?`bufferedEnd ${n}`:`currentTime ${n}`,s.mediaIndex=e,s.startOfSegment=i,s.partIndex=r,this.logger_(`choose next request. Playlist switched and we have a sync point. Media Index: ${s.mediaIndex} `)}let o=a[s.mediaIndex],l=o&&"number"==typeof s.partIndex&&o.parts&&o.parts[s.partIndex];if(!o||"number"==typeof s.partIndex&&!l)return null;"number"!=typeof s.partIndex&&o.parts&&(s.partIndex=0,l=o.parts[0]);let c=this.vhs_.playlists&&this.vhs_.playlists.main&&this.vhs_.playlists.main.independentSegments||this.playlist_.independentSegments;if(!r&&l&&!c&&!l.independent)if(0===s.partIndex){let e=a[s.mediaIndex-1],t=e.parts&&e.parts.length&&e.parts[e.parts.length-1];t&&t.independent&&(s.mediaIndex-=1,s.partIndex=e.parts.length-1,s.independent="previous segment")}else o.parts[s.partIndex-1].independent&&(s.partIndex-=1,s.independent="previous part");let u=this.mediaSource_&&"ended"===this.mediaSource_.readyState;return s.mediaIndex>=a.length-1&&u&&!this.seeking_()?null:(this.shouldForceTimestampOffsetAfterResync_&&(this.shouldForceTimestampOffsetAfterResync_=!1,s.forceTimestampOffset=!0,this.logger_("choose next request. Force timestamp offset after loader resync")),this.generateSegmentInfo_(s))}getSyncInfoFromMediaSequenceSync_(e){if(!this.mediaSequenceSync_)return null;let t=Math.max(e,this.mediaSequenceSync_.start);e!==t&&this.logger_(`getSyncInfoFromMediaSequenceSync_. Pulled target time from ${e} to ${t}`);let r=this.mediaSequenceSync_.getSyncInfoForTime(t);if(!r)return null;if(!r.isAppended)return r;let i=this.mediaSequenceSync_.getSyncInfoForTime(r.end);return i?(i.isAppended&&this.logger_("getSyncInfoFromMediaSequenceSync_: We encounter unexpected scenario where next media sequence sync info is also appended!"),i):null}generateSegmentInfo_(e){let{independent:t,playlist:r,mediaIndex:i,startOfSegment:n,isSyncRequest:a,partIndex:s,forceTimestampOffset:o,getMediaInfoForTime:l}=e,c=r.segments[i],u="number"==typeof s&&c.parts[s],d={requestId:"segment-loader-"+Math.random(),uri:u&&u.resolvedUri||c.resolvedUri,mediaIndex:i,partIndex:u?s:null,isSyncRequest:a,startOfSegment:n,playlist:r,bytes:null,encryptedBytes:null,timestampOffset:null,timeline:c.timeline,duration:u&&u.duration||c.duration,segment:c,part:u,byteLength:0,transmuxer:this.transmuxer_,getMediaInfoForTime:l,independent:t},p=void 0!==o?o:this.isPendingTimestampOffset_;d.timestampOffset=this.timestampOffsetForSegment_({segmentTimeline:c.timeline,currentTimeline:this.currentTimeline_,startOfSegment:n,buffered:this.buffered_(),overrideCheck:p});
161let h=aK(this.sourceUpdater_.audioBuffered());return"number"==typeof h&&(d.audioAppendStart=h-this.sourceUpdater_.audioTimestampOffset()),this.sourceUpdater_.videoBuffered().length&&(d.gopsToAlignWith=((e,t,r)=>{let i;if(null==t||!e.length)return[];let n=Math.ceil((t-r+3)*ti.ONE_SECOND_IN_TS);for(i=0;i<e.length&&!(e[i].pts>n);i++);return e.slice(i)})(this.gopBuffer_,this.currentTime_()-this.sourceUpdater_.videoTimestampOffset(),this.timeMapping_)),d}timestampOffsetForSegment_(e){return(({segmentTimeline:e,currentTimeline:t,startOfSegment:r,buffered:i,overrideCheck:n})=>n||e!==t?e<t?r:i.length?i.end(i.length-1):r:null)(e)}earlyAbortWhenNeeded_(e){if(this.vhs_.tech_.paused()||!this.xhrOptions_.timeout||!this.playlist_.attributes.BANDWIDTH||Date.now()-(e.firstBytesReceivedAt||Date.now())<1e3)return;let t=this.currentTime_(),r=e.bandwidth,i=this.pendingSegment_.duration,n=ss.estimateSegmentRequestTime(i,r,this.playlist_,e.bytesReceived),a=function(e,t,r=1){return((e.length?e.end(e.length-1):0)-t)/r}(this.buffered_(),t,this.vhs_.tech_.playbackRate())-1;if(n<=a)return;let s=od({main:this.vhs_.playlists.main,currentTime:t,bandwidth:r,duration:this.duration_(),segmentDuration:i,timeUntilRebuffer:a,currentTimeline:this.currentTimeline_,syncController:this.syncController_});if(!s)return;let o=n-a-s.rebufferingImpact,l=.5;a<=aU&&(l=1),s.playlist&&s.playlist.uri!==this.playlist_.uri&&!(o<l)&&(this.bandwidth=s.playlist.attributes.BANDWIDTH*sK.BANDWIDTH_VARIANCE+1,this.trigger("earlyabort"))}handleAbort_(e){this.logger_(`Aborting ${oC(e)}`),this.mediaRequestsAborted+=1}handleProgress_(e,t){this.earlyAbortWhenNeeded_(t.stats),this.checkForAbort_(t.requestId)||this.trigger("progress")}handleTrackInfo_(e,t){let{hasAudio:r,hasVideo:i}=t,n={segmentInfo:oA({type:this.loaderType_,segment:e}),trackInfo:{hasAudio:r,hasVideo:i}};this.trigger({type:"segmenttransmuxingtrackinfoavailable",metadata:n}),this.earlyAbortWhenNeeded_(e.stats),this.checkForAbort_(e.requestId)||this.checkForIllegalMediaSwitch(t)||(t=t||{},o_(this.currentMediaInfo_,t)||(this.appendInitSegment_={audio:!0,video:!0},this.startingMediaInfo_=t,this.currentMediaInfo_=t,this.logger_("trackinfo update",t),this.trigger("trackinfo")),this.checkForAbort_(e.requestId)||(this.pendingSegment_.trackInfo=t,this.hasEnoughInfoToAppend_()?this.processCallQueue_():oN(this)))}handleTimingInfo_(e,t,r,i){if(this.earlyAbortWhenNeeded_(e.stats),this.checkForAbort_(e.requestId))return;let n=this.pendingSegment_,a=oE(t);n[a]=n[a]||{},n[a][r]=i,this.logger_(`timinginfo: ${t} - ${r} - ${i}`),this.hasEnoughInfoToAppend_()?this.processCallQueue_():oN(this)}handleCaptions_(e,t){if(this.earlyAbortWhenNeeded_(e.stats),this.checkForAbort_(e.requestId))return;if(0===t.length)return void this.logger_("SegmentLoader received no captions from a caption event");if(!this.pendingSegment_.hasAppendedData_)return void this.metadataQueue_.caption.push(this.handleCaptions_.bind(this,e,t));let r=null===this.sourceUpdater_.videoTimestampOffset()?this.sourceUpdater_.audioTimestampOffset():this.sourceUpdater_.videoTimestampOffset(),i={};t.forEach(e=>{i[e.stream]=i[e.stream]||{startTime:1/0,captions:[],endTime:0};let t=i[e.stream];t.startTime=Math.min(t.startTime,e.startTime+r),t.endTime=Math.max(t.endTime,e.endTime+r),t.captions.push(e)}
161),Object.keys(i).forEach(e=>{let{startTime:t,endTime:n,captions:a}=i[e],s=this.inbandTextTracks_;this.logger_(`adding cues from ${t} -> ${n} for ${e}`),oh(s,this.vhs_.tech_,e),ov(t,n,s[e]),of({captionArray:a,inbandTextTracks:s,timestampOffset:r})}),this.transmuxer_&&this.transmuxer_.postMessage({action:"clearParsedMp4Captions"})}handleId3_(e,t,r){this.earlyAbortWhenNeeded_(e.stats),this.checkForAbort_(e.requestId)||(this.pendingSegment_.hasAppendedData_?this.addMetadataToTextTrack(r,t,this.duration_()):this.metadataQueue_.id3.push(this.handleId3_.bind(this,e,t,r)))}processMetadataQueue_(){this.metadataQueue_.id3.forEach(e=>e()),this.metadataQueue_.caption.forEach(e=>e()),this.metadataQueue_.id3=[],this.metadataQueue_.caption=[]}processCallQueue_(){let e=this.callQueue_;this.callQueue_=[],e.forEach(e=>e())}processLoadQueue_(){let e=this.loadQueue_;this.loadQueue_=[],e.forEach(e=>e())}hasEnoughInfoToLoad_(){if("audio"!==this.loaderType_)return!0;let e=this.pendingSegment_;return!!e&&(!this.getCurrentMediaInfo_()||!ok({timelineChangeController:this.timelineChangeController_,currentTimeline:this.currentTimeline_,segmentTimeline:e.timeline,loaderType:this.loaderType_,audioDisabled:this.audioDisabled_}))}getCurrentMediaInfo_(e=this.pendingSegment_){return e&&e.trackInfo||this.currentMediaInfo_}getMediaInfo_(e=this.pendingSegment_){return this.getCurrentMediaInfo_(e)||this.startingMediaInfo_}getPendingSegmentPlaylist(){return this.pendingSegment_?this.pendingSegment_.playlist:null}hasEnoughInfoToAppend_(){if(!this.sourceUpdater_.ready()||this.waitingOnRemove_||this.quotaExceededErrorRetryTimeout_)return!1;let e=this.pendingSegment_,t=this.getCurrentMediaInfo_();if(!e||!t)return!1;let{hasAudio:r,hasVideo:i,isMuxed:n}=t;return!(i&&!e.videoTimingInfo||r&&!this.audioDisabled_&&!n&&!e.audioTimingInfo||ok({timelineChangeController:this.timelineChangeController_,currentTimeline:this.currentTimeline_,segmentTimeline:e.timeline,loaderType:this.loaderType_,audioDisabled:this.audioDisabled_}))}handleData_(e,t){if(this.earlyAbortWhenNeeded_(e.stats),this.checkForAbort_(e.requestId))return;if(this.callQueue_.length||!this.hasEnoughInfoToAppend_()){oN(this),this.callQueue_.push(this.handleData_.bind(this,e,t));return}let r=this.pendingSegment_;if(this.setTimeMapping_(r.timeline),this.updateMediaSecondsLoaded_(r.part||r.segment),"closed"!==this.mediaSource_.readyState){if(e.map&&(e.map=this.initSegmentForMap(e.map,!0),r.segment.map=e.map),e.key&&this.segmentKey(e.key,!0),r.isFmp4=e.isFmp4,r.timingInfo=r.timingInfo||{},r.isFmp4)this.trigger("fmp4"),r.timingInfo.start=r[oE(t.type)].start;else{let e,t=this.getCurrentMediaInfo_(),i="main"===this.loaderType_&&t&&t.hasVideo;i&&(e=r.videoTimingInfo.start),r.timingInfo.start=this.trueSegmentStart_({currentStart:r.timingInfo.start,playlist:r.playlist,mediaIndex:r.mediaIndex,currentVideoTimestampOffset:this.sourceUpdater_.videoTimestampOffset(),useVideoTimingInfo:i,firstVideoFrameTimeForData:e,videoTimingInfo:r.videoTimingInfo,audioTimingInfo:r.audioTimingInfo})}if(this.updateAppendInitSegmentStatus(r,t.type),this.updateSourceBufferTimestampOffset_(r),r.isSyncRequest){this.updateTimingInfoEnd_(r),this.syncController_.saveSegmentTimingInfo({segmentInfo:r,shouldSaveTimelineMapping:"main"===this.loaderType_});let e=this.chooseNextRequest_();if(e.mediaIndex!==r.mediaIndex||e.partIndex!==r.partIndex)return void this.logger_("sync segment was incorrect, not appending");this.logger_("sync segment was correct, appending")}r.hasAppendedData_=!0,this.processMetadataQueue_(),this.appendData_(r,t)}}updateAppendInitSegmentStatus(e,t){"main"!==this.loaderType_||"number"!=typeof e.timestampOffset||e.changedTimestampOffset||(this.appendInitSegment_={audio:!0,video:!0}),this.playlistOfLastInitSegment_[t]!==e.playlist&&(this.appendInitSegment_[t]=!0)}getInitSegmentAndUpdateState_({type:e,initSegment:t,map:r,playlist:i}){if(r){let e=sM(r);if(this.activeInitSegmentId_===e)return null;t=this.initSegmentForMap(r,!0).bytes,this.activeInitSegmentId_=e}return t&&this.appendInitSegment_[e]?(this.playlistOfLastInitSegment_[e]=i,this.appendInitSegment_[e]=!1,this.activeInitSegmentId_=null,t):null}handleQuotaExceededError_({segmentInfo:e,type:t,bytes:r}
161,i){let n=this.sourceUpdater_.audioBuffered(),a=this.sourceUpdater_.videoBuffered();n.length>1&&this.logger_("On QUOTA_EXCEEDED_ERR, found gaps in the audio buffer: "+aG(n).join(", ")),a.length>1&&this.logger_("On QUOTA_EXCEEDED_ERR, found gaps in the video buffer: "+aG(a).join(", "));let s=n.length?n.start(0):0,o=n.length?n.end(n.length-1):0,l=a.length?a.start(0):0,c=a.length?a.end(a.length-1):0;if(o-s<=1&&c-l<=1){this.logger_(`On QUOTA_EXCEEDED_ERR, single segment too large to append to buffer, triggering an error. Appended byte length: ${r.byteLength}, audio buffer: ${aG(n).join(", ")}, video buffer: ${aG(a).join(", ")}, `),this.error({message:"Quota exceeded error with append of a single segment of content",excludeUntil:1/0}),this.trigger("error");return}this.waitingOnRemove_=!0,this.callQueue_.push(this.appendToSourceBuffer_.bind(this,{segmentInfo:e,type:t,bytes:r}));let u=this.currentTime_()-1;this.logger_(`On QUOTA_EXCEEDED_ERR, removing audio/video from 0 to ${u}`),this.remove(0,u,()=>{this.logger_("On QUOTA_EXCEEDED_ERR, retrying append in 1s"),this.waitingOnRemove_=!1,this.quotaExceededErrorRetryTimeout_=h.default.setTimeout(()=>{this.logger_("On QUOTA_EXCEEDED_ERR, re-processing call queue"),this.quotaExceededErrorRetryTimeout_=null,this.processCallQueue_()},1e3)},!0)}handleAppendError_({segmentInfo:e,type:t,bytes:r},i){if(i){if(22===i.code)return void this.handleQuotaExceededError_({segmentInfo:e,type:t,bytes:r});this.logger_("Received non QUOTA_EXCEEDED_ERR on append",i),this.error({message:`${t} append of ${r.length}b failed for segment #${e.mediaIndex} in playlist ${e.playlist.id}`,metadata:{errorType:aI.Error.StreamingFailedToAppendSegment}}),this.trigger("appenderror")}}appendToSourceBuffer_({segmentInfo:e,type:t,initSegment:r,data:i,bytes:n}){if(!n){var a;let e,t,s=[i],o=i.byteLength;r&&(s.unshift(r),o+=r.byteLength),t=0,(a={bytes:o,segments:s}).bytes&&(e=new Uint8Array(a.bytes),a.segments.forEach(r=>{e.set(r,t),t+=r.byteLength})),n=e}let s={segmentInfo:oA({type:this.loaderType_,segment:e})};this.trigger({type:"segmentappendstart",metadata:s}),this.sourceUpdater_.appendBuffer({segmentInfo:e,type:t,bytes:n},this.handleAppendError_.bind(this,{segmentInfo:e,type:t,bytes:n}))}handleSegmentTimingInfo_(e,t,r){if(!this.pendingSegment_||t!==this.pendingSegment_.requestId)return;let i=this.pendingSegment_.segment,n=`${e}TimingInfo`;i[n]||(i[n]={}),i[n].transmuxerPrependedSeconds=r.prependedContentDuration||0,i[n].transmuxedPresentationStart=r.start.presentation,i[n].transmuxedDecodeStart=r.start.decode,i[n].transmuxedPresentationEnd=r.end.presentation,i[n].transmuxedDecodeEnd=r.end.decode,i[n].baseMediaDecodeTime=r.baseMediaDecodeTime}appendData_(e,t){let{type:r,data:i}=t;if(!i||!i.byteLength||"audio"===r&&this.audioDisabled_)return;let n=this.getInitSegmentAndUpdateState_({type:r,initSegment:t.initSegment,playlist:e.playlist,map:e.isFmp4?e.segment.map:null});this.appendToSourceBuffer_({segmentInfo:e,type:r,initSegment:n,data:i})}loadSegment_(e){if(this.state="WAITING",this.pendingSegment_=e,this.trimBackBuffer_(e),"number"==typeof e.timestampOffset&&this.transmuxer_&&this.transmuxer_.postMessage({action:"clearAllMp4Captions"}),!this.hasEnoughInfoToLoad_()){oN(this),this.loadQueue_.push(()=>{let t=y({},e,{forceTimestampOffset:!0});y(e,this.generateSegmentInfo_(t)),this.isPendingTimestampOffset_=!1,this.updateTransmuxerAndRequestSegment_(e)});return}this.updateTransmuxerAndRequestSegment_(e)}updateTransmuxerAndRequestSegment_(e){this.shouldUpdateTransmuxerTimestampOffset_(e.timestampOffset)&&(this.gopBuffer_.length=0,e.gopsToAlignWith=[],this.timeMapping_=0,this.transmuxer_.postMessage({action:"reset"}),this.transmuxer_.postMessage({action:"setTimestampOffset",timestampOffset:e.timestampOffset}));let t=this.createSimplifiedSegmentObj_(e),r=this.isEndOfStream_(e.mediaIndex,e.playlist,e.partIndex),i=null!==this.mediaIndex,n=e.timeline!==this.currentTimeline_&&e.timeline>0;this.logger_(`Requesting
162${op(e.uri)}
163${oC(e)}`),t.map&&!t.map.bytes&&(this.logger_("going to request init segment."),this.appendInitSegment_={video:!0,audio:!0}),e.abortRequests=(({xhr:e,xhrOptions:t,decryptionWorker:r,segment:i,abortFn:n,progressFn:a,trackInfoFn:s,timingInfoFn:o,videoSegmentTimingInfoFn:l,audioSegmentTimingInfoFn:c,id3Fn:u,captionsFn:d,isEndOfTimeline:p,endedTimelineFn:h,dataFn:f,doneFn:g,onTransmuxerLog:m,triggerSegmentEventFn:y})=>{let b=[],v=(({activeXhrs:e,decryptionWorker:t,trackInfoFn:r,timingInfoFn:i,videoSegmentTimingInfoFn:n,audioSegmentTimingInfoFn:a,id3Fn:s,captionsFn:o,isEndOfTimeline:l,endedTimelineFn:c,dataFn:u,doneFn:d,onTransmuxerLog:p,triggerSegmentEventFn:h})=>{let f=0,g=!1;return(m,y)=>{if(!g){if(m)return g=!0,s7(e),d(m,y);if((f+=1)===e.length){let f=function(){if(y.encryptedBytes)return(({decryptionWorker:e,segment:t,trackInfoFn:r,timingInfoFn:i,videoSegmentTimingInfoFn:n,audioSegmentTimingInfoFn:a,id3Fn:s,captionsFn:o,isEndOfTimeline:l,endedTimelineFn:c,dataFn:u,doneFn:d,onTransmuxerLog:p,triggerSegmentEventFn:h})=>{h({type:"segmentdecryptionstart"}),oi({id:t.requestId,key:t.key,encryptedBytes:t.encryptedBytes,decryptionWorker:e,segment:t,doneFn:d},e=>{t.bytes=e,h({type:"segmentdecryptioncomplete",segment:t}),or({segment:t,bytes:t.bytes,trackInfoFn:r,timingInfoFn:i,videoSegmentTimingInfoFn:n,audioSegmentTimingInfoFn:a,id3Fn:s,captionsFn:o,isEndOfTimeline:l,endedTimelineFn:c,dataFn:u,doneFn:d,onTransmuxerLog:p,triggerSegmentEventFn:h})})})({decryptionWorker:t,segment:y,trackInfoFn:r,timingInfoFn:i,videoSegmentTimingInfoFn:n,audioSegmentTimingInfoFn:a,id3Fn:s,captionsFn:o,isEndOfTimeline:l,endedTimelineFn:c,dataFn:u,doneFn:d,onTransmuxerLog:p,triggerSegmentEventFn:h});or({segment:y,bytes:y.bytes,trackInfoFn:r,timingInfoFn:i,videoSegmentTimingInfoFn:n,audioSegmentTimingInfoFn:a,id3Fn:s,captionsFn:o,isEndOfTimeline:l,endedTimelineFn:c,dataFn:u,doneFn:d,onTransmuxerLog:p,triggerSegmentEventFn:h})};if(y.endOfAllRequests=Date.now(),y.map&&y.map.encryptedBytes&&!y.map.bytes)return h({type:"segmentdecryptionstart",segment:y}),oi({decryptionWorker:t,id:y.requestId+"-init",encryptedBytes:y.map.encryptedBytes,key:y.map.
163key,segment:y,doneFn:d},t=>{y.map.bytes=t,h({type:"segmentdecryptioncomplete",segment:y}),ot(y,t=>{if(t)return s7(e),d(t,y);f()})});f()}}}})({activeXhrs:b,decryptionWorker:r,trackInfoFn:s,timingInfoFn:o,videoSegmentTimingInfoFn:l,audioSegmentTimingInfoFn:c,id3Fn:u,captionsFn:d,isEndOfTimeline:p,endedTimelineFn:h,dataFn:f,doneFn:g,onTransmuxerLog:m,triggerSegmentEventFn:y});if(i.key&&!i.key.bytes){let r=[i.key];i.map&&!i.map.bytes&&i.map.key&&i.map.key.resolvedUri===i.key.resolvedUri&&r.push(i.map.key);let n=aM(t,{uri:i.key.resolvedUri,responseType:"arraybuffer",requestType:"segment-key"}),a=oe(i,r,v,y),s={uri:i.key.resolvedUri};y({type:"segmentkeyloadstart",segment:i,keyInfo:s});let o=e(n,a);b.push(o)}if(i.map&&!i.map.bytes){if(i.map.key&&(!i.key||i.key.resolvedUri!==i.map.key.resolvedUri)){let r=aM(t,{uri:i.map.key.resolvedUri,responseType:"arraybuffer",requestType:"segment-key"}),n=oe(i,[i.map.key],v,y),a={uri:i.map.key.resolvedUri};y({type:"segmentkeyloadstart",segment:i,keyInfo:a});let s=e(r,n);b.push(s)}let r=aM(t,{uri:i.map.resolvedUri,responseType:"arraybuffer",headers:sO(i.map),requestType:"segment-media-initialization"}),n=(({segment:e,finishProcessingFn:t,triggerSegmentEventFn:r})=>(i,n)=>{let a=s9(i,n);if(a)return t(a,e);let s=new Uint8Array(n.response);if(r({type:"segmentloaded",segment:e}),e.map.key)return e.map.encryptedBytes=s,t(null,e);e.map.bytes=s,ot(e,function(r){if(r)return r.xhr=n,r.status=n.status,t(r,e);t(null,e)})})({segment:i,finishProcessingFn:v,triggerSegmentEventFn:y});y({type:"segmentloadstart",segment:i});let a=e(r,n);b.push(a)}let x=aM(t,{uri:i.part&&i.part.resolvedUri||i.resolvedUri,responseType:"arraybuffer",headers:sO(i),requestType:"segment"}),_=(({segment:e,finishProcessingFn:t,responseType:r,triggerSegmentEventFn:i})=>(n,a)=>{let s=s9(n,a);if(s)return t(s,e);i({type:"segmentloaded",segment:e});let o="arraybuffer"!==r&&a.responseText?(e=>{let t=new Uint8Array(new ArrayBuffer(e.length));for(let r=0;r<e.length;r++)t[r]=e.charCodeAt(r);return t.buffer})(a.responseText.substring(e.lastReachedChar||0)):a.response;return e.stats={bandwidth:a.bandwidth,bytesReceived:a.bytesReceived||0,roundTripTime:a.roundTripTime||0},e.key?e.encryptedBytes=new Uint8Array(o):e.bytes=new Uint8Array(o),t(null,e)})({segment:i,finishProcessingFn:v,responseType:x.responseType,triggerSegmentEventFn:y});y({type:"segmentloadstart",segment:i});let w=e(x,_);w.addEventListener("progress",(({segment:e,progressFn:t,trackInfoFn:r,timingInfoFn:i,videoSegmentTimingInfoFn:n,audioSegmentTimingInfoFn:a,id3Fn:s,captionsFn:o,isEndOfTimeline:l,endedTimelineFn:c,dataFn:u})=>r=>{if(!r.target.aborted){let i,n;return e.stats=aM(e.stats,(i=r.target,(n={bandwidth:1/0,bytesReceived:0,roundTripTime:Date.now()-i.requestTime||0}).bytesReceived=r.loaded,n.bandwidth=Math.floor(n.bytesReceived/n.roundTripTime*8e3),n)),!e.stats.firstBytesReceivedAt&&e.stats.bytesReceived&&(e.stats.firstBytesReceivedAt=Date.now()),t(r,e)}})({segment:i,progressFn:a,trackInfoFn:s,timingInfoFn:o,videoSegmentTimingInfoFn:l,audioSegmentTimingInfoFn:c,id3Fn:u,captionsFn:d,isEndOfTimeline:p,endedTimelineFn:h,dataFn:f})),b.push(w);let T={};return b.forEach(e=>{e.addEventListener("loadend",(({loadendState:e,abortFn:t})=>r=>{r.target.aborted&&t&&!e.calledAbortFn&&(t(),e.calledAbortFn=!0)})({loadendState:T,abortFn:n}))}),()=>s7(b)})({xhr:this.vhs_.xhr,xhrOptions:this.xhrOptions_,decryptionWorker:this.decrypter_,segment:t,abortFn:this.handleAbort_.bind(this,e),progressFn:this.handleProgress_.bind(this),trackInfoFn:this.handleTrackInfo_.bind(this),timingInfoFn:this.handleTimingInfo_.bind(this),videoSegmentTimingInfoFn:this.handleSegmentTimingInfo_.bind(this,"video",e.requestId),audioSegmentTimingInfoFn:this.handleSegmentTimingInfo_.bind(this,"audio",e.requestId),captionsFn:this.handleCaptions_.bind(this),isEndOfTimeline:r||i&&n,endedTimelineFn:()=>{this.logger_("received endedtimeline callback")},id3Fn:this.handleId3_.bind(this),dataFn:this.handleData_.bind(this),doneFn:this.segmentRequestFinished_.bind(this),onTransmuxerLog:({message:t,level:r,stream:i})=>{this.logger_(`${oC(e)} logged from transmuxer stream ${i} as a ${r}: ${t}`)},triggerSegmentEventFn:({type:e,segment:t,keyInfo:r,trackInfo:i,timingInfo:n})=>{let a={segmentInfo:oA({segment:t})};r&&(a.keyInfo=r),i&&(a.trackInfo=i),n&&(a.timingInfo=n),this.trigger({type:e,metadata:a})}})}trimBackBuffer_(e){var t,r,i;let n,a=(t=this.seekable_(),r=this.currentTime_(),i=this.playlist_.targetDuration||10,n=r-sK.BACK_BUFFER_LENGTH,t.length&&(n=Math.max(n,t.start(0))),Math.min(r-i,n));a>0&&this.remove(0,a)}createSimplifiedSegmentObj_(e){let t=e.segment,r=e.part,i=e.segment.key||e.segment.map&&e.segment.map.key,n=e.segment.map&&!e.segment.map.bytes,a={resolvedUri:r?r.resolvedUri:t.resolvedUri,byterange:r?r.byterange:t.byterange,requestId:e.requestId,transmuxer:e.transmuxer,audioAppendStart:e.audioAppendStart,gopsToAlignWith:e.gopsToAlignWith,part:e.part,type:this.loaderType_,start:e.startOfSegment,duration:e.duration,isEncrypted:i,isMediaInitialization:n},s=e.playlist.segments[e.mediaIndex-1];if(s&&s.timeline===t.timeline&&(s.videoTimingInfo?a.baseStartTime=s.videoTimingInfo.transmuxedDecodeEnd:s.audioTimingInfo&&(a.baseStartTime=s.audioTimingInfo.transmuxedDecodeEnd)),t.key){let r=t.key.iv||new Uint32Array([0,0,0,e.mediaIndex+e.playlist.mediaSequence]);a.key=this.segmentKey(t.key),a.key.iv=r}return t.map&&(a.map=this.initSegmentForMap(t.map)),a}saveTransferStats_(e){this.mediaRequests+=1,e&&(this.mediaBytesTransferred+=e.bytesReceived,this.mediaTransferDuration+=e.roundTripTime)}saveBandwidthRelatedStats_(e,t){if(this.pendingSegment_.byteLength=t.bytesReceived,e<oS)return void this.logger_(`Ignoring segment's bandwidth because its duration of ${e} is less than the min to record ${oS}`);let r={bandwidthInfo:{from:this.bandwidth,to:t.bandwidth}};this.trigger({type:"bandwidthupdated",metadata:r}),this.bandwidth=t.bandwidth,this.roundTrip=t.roundTripTime}handleTimeout_(){this.mediaRequestsTimedout+=1,this.bandwidth=1,this.roundTrip=NaN,this.trigger("bandwidthupdate"),this.trigger("timeout")}segmentRequestFinished_(e,t,r){if(this.callQueue_.length)return void this.callQueue_.push(this.segmentRequestFinished_.bind(this,e,t,r));if(this.saveTransferStats_(t.stats),!this.pendingSegment_||t.requestId!==this.pendingSegment_.requestId)return;if(e)return(this.pendingSegment_=null,this.state="READY",-102===e.code)?void 0:(this.pause(),-101===e.code)?void this.handleTimeout_():(this.mediaRequestsErrored+=1,this.error(e),void this.trigger("error"));let i=this.pendingSegment_;this.saveBandwidthRelatedStats_(i.duration,t.stats),i.endOfAllRequests=t.endOfAllRequests,r.gopInfo&&(this.gopBuffer_=((e,t,r)=>{if(!t.length)return e;if(r)return t.slice();let i=t[0].pts,n=0;for(;n<e.length&&!(e[n].pts>=i);n++);return e.slice(0,n).concat(t)})(this.gopBuffer_,r.gopInfo,this.safeAppend_)),this.state="APPENDING",this.trigger("appending"),this.waitForAppendsToComplete_(i)}setTimeMapping_(e){let t=this.syncController_.mappingForTimeline(e);null!==t&&(this.timeMapping_=t)}updateMediaSecondsLoaded_(e){"number"==typeof e.start&&"number"==typeof e.end?this.mediaSecondsLoaded+=e.end-e.start:this.mediaSecondsLoaded+=e.duration}shouldUpdateTransmuxerTimestampOffset_(e){return null!==e&&("main"===this.loaderType_&&e!==this.sourceUpdater_.videoTimestampOffset()||!this.audioDisabled_&&e!==this.sourceUpdater_.audioTimestampOffset())}trueSegmentStart_({currentStart:e,playlist:t,mediaIndex:r,firstVideoFrameTimeForData:i,currentVideoTimestampOffset:n,useVideoTimingInfo:a,videoTimingInfo:s,audioTimingInfo:o}
163){if(void 0!==e)return e;if(!a)return o.start;let l=t.segments[r-1];return 0!==r&&l&&void 0!==l.start&&l.end===i+n?s.start:i}waitForAppendsToComplete_(e){let t=this.getCurrentMediaInfo_(e);if(!t){this.error({message:"No starting media returned, likely due to an unsupported media format.",playlistExclusionDuration:1/0}),this.trigger("error");return}let{hasAudio:r,hasVideo:i,isMuxed:n}=t,a="main"===this.loaderType_&&i,s=!this.audioDisabled_&&r&&!n;if(e.waitingOnAppends=0,!e.hasAppendedData_){e.timingInfo||"number"!=typeof e.timestampOffset||(this.isPendingTimestampOffset_=!0),e.timingInfo={start:0},e.waitingOnAppends++,this.isPendingTimestampOffset_||(this.updateSourceBufferTimestampOffset_(e),this.processMetadataQueue_()),this.checkAppendsDone_(e);return}a&&e.waitingOnAppends++,s&&e.waitingOnAppends++,a&&this.sourceUpdater_.videoQueueCallback(this.checkAppendsDone_.bind(this,e)),s&&this.sourceUpdater_.audioQueueCallback(this.checkAppendsDone_.bind(this,e))}checkAppendsDone_(e){this.checkForAbort_(e.requestId)||(e.waitingOnAppends--,0===e.waitingOnAppends&&this.handleAppendsDone_())}checkForIllegalMediaSwitch(e){var t,r;let i=(t=this.loaderType_,r=this.getCurrentMediaInfo_(),"main"===t&&r&&e?e.hasAudio||e.hasVideo?r.hasVideo&&!e.hasVideo?"Only audio found in segment when we expected video. We can't switch to audio only from a stream that had video. To get rid of this message, please add codec information to the manifest.":!r.hasVideo&&e.hasVideo?"Video found in segment when we expected only audio. We can't switch to a stream with video from an audio only stream. To get rid of this message, please add codec information to the manifest.":null:"Neither audio nor video found in segment.":null);return!!i&&(this.error({message:i,playlistExclusionDuration:1/0}),this.trigger("error"),!0)}updateSourceBufferTimestampOffset_(e){if(null===e.timestampOffset||"number"!=typeof e.timingInfo.start||e.changedTimestampOffset||"main"!==this.loaderType_)return;let t=!1;e.timestampOffset-=this.getSegmentStartTimeForTimestampOffsetCalculation_({videoTimingInfo:e.segment.videoTimingInfo,audioTimingInfo:e.segment.audioTimingInfo,timingInfo:e.timingInfo}),e.changedTimestampOffset=!0,e.timestampOffset!==this.sourceUpdater_.videoTimestampOffset()&&(this.sourceUpdater_.videoTimestampOffset(e.timestampOffset),t=!0),e.timestampOffset!==this.sourceUpdater_.audioTimestampOffset()&&(this.sourceUpdater_.audioTimestampOffset(e.timestampOffset),t=!0),t&&this.trigger("timestampoffset")}getSegmentStartTimeForTimestampOffsetCalculation_({videoTimingInfo:e,audioTimingInfo:t,timingInfo:r}){return this.useDtsForTimestampOffset_?e&&"number"==typeof e.transmuxedDecodeStart?e.transmuxedDecodeStart:t&&"number"==typeof t.transmuxedDecodeStart?t.transmuxedDecodeStart:r.start:r.start}updateTimingInfoEnd_(e){e.timingInfo=e.timingInfo||{};let t=this.getMediaInfo_(),r="main"===this.loaderType_&&t&&t.hasVideo&&e.videoTimingInfo?e.videoTimingInfo:e.audioTimingInfo;r&&(e.timingInfo.end="number"==typeof r.end?r.end:r.start+e.duration)}handleAppendsDone_(){if(this.pendingSegment_){let e={segmentInfo:oA({type:this.loaderType_,segment:this.pendingSegment_})};this.trigger({type:"appendsdone",metadata:e})}if(!this.pendingSegment_){this.state="READY",this.paused()||this.monitorBuffer_();return}let e=this.pendingSegment_;e.part&&e.part.syncInfo?e.part.syncInfo.markAppended():e.segment.syncInfo&&e.segment.syncInfo.markAppended(),this.updateTimingInfoEnd_(e),this.shouldSaveSegmentTimingInfo_&&this.syncController_.saveSegmentTimingInfo({segmentInfo:e,shouldSaveTimelineMapping:"main"===this.loaderType_});let t=((e,t)=>{var r;let i;if("hls"!==t)return null;let n=(r={audioTimingInfo:e.audioTimingInfo,videoTimingInfo:e.videoTimingInfo},i=0,["video","audio"].forEach(function(e){let t,n=r[`${e}TimingInfo`];if(!n)return;let{start:a,end:s}=n;"bigint"==typeof a||"bigint"==typeof s?t=h.default.BigInt(s)-h.default.BigInt(a):"number"==typeof a&&"number"==typeof s&&(t=s-a),void 0!==t&&t>i&&(i=t)}),"bigint"==typeof i&&i<Number.MAX_SAFE_INTEGER&&(i=Number(i)),i);if(!n)return null;let a=e.playlist.targetDuration,s=oI({segmentDuration:n,maxDuration:2*a}),o=oI({segmentDuration:n,maxDuration:a}),l=`Segment with index ${e.mediaIndex} from playlist ${e.playlist.id} has a duration of ${n} when the reported duration is ${e.duration} and the target duration is ${a}. For HLS content, a duration in excess of the target duration may result in playback issues. See the HLS specification section on EXT-X-TARGETDURATION for more details: https://tools.ietf.org/html/draft-pantos-http-live-streaming-23#section-4.3.3.1`;return s||o?{severity:s?"warn":"info",message:l}:null})(e,this.sourceType_);if(t&&("warn"===t.severity?aI.log.warn(t.message):this.logger_(t.message)),this.recordThroughput_(e),this.pendingSegment_=null,this.state="READY",e.isSyncRequest&&(this.trigger("syncinfoupdate"),!e.hasAppendedData_))return void this.logger_(`Throwing away un-appended sync request ${oC(e)}`);this.logger_(`Appended ${oC(e)}`),this.addSegmentMetadataCue_(e),this.fetchAtBuffer_=!0,this.currentTimeline_!==e.timeline&&(this.timelineChangeController_.lastTimelineChange({type:this.loaderType_,from:this.currentTimeline_,to:e.timeline}),"main"!==this.loaderType_||this.audioDisabled_||this.timelineChangeController_.lastTimelineChange({type:"audio",from:this.currentTimeline_,to:e.timeline})),this.currentTimeline_=e.timeline,this.trigger("syncinfoupdate");let r=e.segment,i=e.part,n=r.end&&this.currentTime_()-r.end>3*e.playlist.targetDuration,a=i&&i.end&&this.currentTime_()-i.end>3*e.playlist.partTargetDuration;if(n||a){this.logger_(`bad ${n?"segment":"part"} ${oC(e)}`),this.resetEverything();return}null!==this.mediaIndex&&this.trigger("bandwidthupdate"),this.trigger("progress"),this.mediaIndex=e.mediaIndex,this.partIndex=e.partIndex,this.isEndOfStream_
163(e.mediaIndex,e.playlist,e.partIndex)&&this.endOfStream(),this.trigger("appended"),e.hasAppendedData_&&this.mediaAppends++,this.paused()||this.monitorBuffer_()}recordThroughput_(e){if(e.duration<oS)return void this.logger_(`Ignoring segment's throughput because its duration of ${e.duration} is less than the min to record ${oS}`);let t=this.throughput.rate,r=Date.now()-e.endOfAllRequests+1,i=Math.floor(e.byteLength/r*8e3);this.throughput.rate+=(i-t)/++this.throughput.count}addSegmentMetadataCue_(e){if(!this.segmentMetadataTrack_)return;let t=e.segment,r=t.start,i=t.end;if(!oT(r)||!oT(i))return;ov(r,i,this.segmentMetadataTrack_);let n=h.default.WebKitDataCue||h.default.VTTCue,a={custom:t.custom,dateTimeObject:t.dateTimeObject,dateTimeString:t.dateTimeString,programDateTime:t.programDateTime,bandwidth:e.playlist.attributes.BANDWIDTH,resolution:e.playlist.attributes.RESOLUTION,codecs:e.playlist.attributes.CODECS,byteLength:e.byteLength,uri:e.uri,timeline:e.timeline,playlist:e.playlist.id,start:r,end:i},s=new n(r,i,JSON.stringify(a));s.value=a,this.segmentMetadataTrack_.addCue(s)}}function oP(){}let oO=function(e){return"string"!=typeof e?e:e.replace(/./,e=>e.toUpperCase())},oL=["video","audio"],oD=(e,t)=>{let r=t[`${e}Buffer`];return r&&r.updating||t.queuePending[e]},oR=(e,t)=>{if(0===t.queue.length)return;let r=0,i=t.queue[r];if("mediaSource"===i.type){t.updating()||"closed"===t.mediaSource.readyState||(t.queue.shift(),i.action(t),i.doneFn&&i.doneFn(),oR("audio",t),oR("video",t));return}if("mediaSource"!==e&&!(!t.ready()||"closed"===t.mediaSource.readyState||oD(e,t))){if(i.type!==e){if(null===(r=((e,t)=>{for(let r=0;r<t.length;r++){let i=t[r];if("mediaSource"===i.type)break;if(i.type===e)return r}return null})(e,t.queue)))return;i=t.queue[r]}if(t.queue.splice(r,1),t.queuePending[e]=i,i.action(e,t),!i.doneFn){t.queuePending[e]=null,oR(e,t);return}}},oM=(e,t)=>{let r=t[`${e}Buffer`],i=oO(e);r&&(r.removeEventListener("updateend",t[`on${i}UpdateEnd_`]),r.removeEventListener("error",t[`on${i}Error_`]),t.codecs[e]=null,t[`${e}Buffer`]=null)},oB=(e,t)=>e&&t&&-1!==Array.prototype.indexOf.call(e.sourceBuffers,t),oU=(e,t)=>(r,i)=>{let n=i[`${r}Buffer`];if(oB(i.mediaSource,n)){i.logger_(`Removing ${e} to ${t} from ${r}Buffer`);try{n.remove(e,t)}catch(n){i.logger_(`Remove ${e} to ${t} from ${r}Buffer failed`)}}},oF=e=>(t,r)=>{let i=r[`${t}Buffer`];oB(r.mediaSource,i)&&(r.logger_(`Setting ${t}timestampOffset to ${e}`),i.timestampOffset=e)},o$=e=>(t,r)=>{e()},oz=({type:e,sourceUpdater:t,action:r,doneFn:i,name:n})=>{t.queue.push({type:e,action:r,doneFn:i,name:n}),oR(e,t)},oq=(e,t)=>r=>{let i=function(e){if(0===e.length)return"Buffered Ranges are empty";let t="Buffered Ranges: \n";for(let r=0;r<e.length;r++){let i=e.start(r),n=e.end(r);t+=`${i} --> ${n}. Duration (${n-i})
164`}return t}(t[`${e}Buffered`]());if(t.logger_(`received "updateend" event for ${e} Source Buffer: `,i),t.queuePending[e]){let r=t.queuePending[e].doneFn;t.queuePending[e]=null,r&&r(t[`${e}Error_`])}oR(e,t)};class oH extends aI.EventTarget{constructor(e){super(),this.mediaSource=e,this.sourceopenListener_=()=>oR("mediaSource",this),this.mediaSource.addEventListener("sourceopen",this.sourceopenListener_),this.logger_=aR("SourceUpdater"),this.audioTimestampOffset_=0,this.videoTimestampOffset_=0,this.queue=[],this.queuePending={audio:null,video:null},this.delayedAudioAppendQueue_=[],this.videoAppendQueued_=!1,this.codecs={},this.onVideoUpdateEnd_=oq("video",this),this.onAudioUpdateEnd_=oq("audio",this),this.onVideoError_=e=>{this.videoError_=e},this.onAudioError_=e=>{this.audioError_=e},this.createdSourceBuffers_=!1,this.initializedEme_=!1,this.triggeredReady_=!1}initializedEme(){this.initializedEme_=!0,this.triggerReady()}hasCreatedSourceBuffers(){return this.createdSourceBuffers_}hasInitializedAnyEme(){return this.initializedEme_}ready(){return this.hasCreatedSourceBuffers()&&this.hasInitializedAnyEme()}createSourceBuffers(e){this.hasCreatedSourceBuffers()||(this.addOrChangeSourceBuffers(e),this.createdSourceBuffers_=!0,this.trigger("createdsourcebuffers"),this.triggerReady())}
164triggerReady(){this.ready()&&!this.triggeredReady_&&(this.triggeredReady_=!0,this.trigger("ready"))}addSourceBuffer(e,t){let r,i;oz({type:"mediaSource",sourceUpdater:this,action:(r=e,i=t,e=>{let t=oO(r),n=B(i);e.logger_(`Adding ${r}Buffer with codec ${i} to mediaSource`);let a=e.mediaSource.addSourceBuffer(n);a.addEventListener("updateend",e[`on${t}UpdateEnd_`]),a.addEventListener("error",e[`on${t}Error_`]),e.codecs[r]=i,e[`${r}Buffer`]=a}),name:"addSourceBuffer"})}abort(e){oz({type:e,sourceUpdater:this,action:(e,t)=>{if("open"!==t.mediaSource.readyState)return;let r=t[`${e}Buffer`];if(oB(t.mediaSource,r)){t.logger_(`calling abort on ${e}Buffer`);try{r.abort()}catch(t){aI.log.warn(`Failed to abort on ${e}Buffer`,t)}}},name:"abort"})}removeSourceBuffer(e){let t;this.canRemoveSourceBuffer()?oz({type:"mediaSource",sourceUpdater:this,action:(t=e,e=>{let r=e[`${t}Buffer`];if(oM(t,e),oB(e.mediaSource,r)){e.logger_(`Removing ${t}Buffer with codec ${e.codecs[t]} from mediaSource`);try{e.mediaSource.removeSourceBuffer(r)}catch(e){aI.log.warn(`Failed to removeSourceBuffer ${t}Buffer`,e)}}}),name:"removeSourceBuffer"}):aI.log.error("removeSourceBuffer is not supported!")}canRemoveSourceBuffer(){return!aI.browser.IS_FIREFOX&&h.default.MediaSource&&h.default.MediaSource.prototype&&"function"==typeof h.default.MediaSource.prototype.removeSourceBuffer}static canChangeType(){return h.default.SourceBuffer&&h.default.SourceBuffer.prototype&&"function"==typeof h.default.SourceBuffer.prototype.changeType}canChangeType(){return this.constructor.canChangeType()}changeType(e,t){let r;this.canChangeType()?oz({type:e,sourceUpdater:this,action:(r=t,(e,t)=>{let i=t[`${e}Buffer`],n=B(r);if(!oB(t.mediaSource,i))return;let a=r.substring(0,r.indexOf(".")),s=t.codecs[e];if(s.substring(0,s.indexOf("."))===a)return;let o={codecsChangeInfo:{from:s,to:r}};t.trigger({type:"codecschange",metadata:o}),t.logger_(`changing ${e}Buffer codec from ${s} to ${r}`);try{i.changeType(n),t.codecs[e]=r}catch(r){o.errorType=aI.Error.StreamingCodecsChangeError,o.error=r,r.metadata=o,t.error_=r,t.trigger("error"),aI.log.warn(`Failed to changeType on ${e}Buffer`,r)}}),name:"changeType"}):aI.log.error("changeType is not supported!")}addOrChangeSourceBuffers(e){if(!e||"object"!=typeof e||0===Object.keys(e).length)throw Error("Cannot addOrChangeSourceBuffers to undefined codecs");Object.keys(e).forEach(t=>{let r=e[t];if(!this.hasCreatedSourceBuffers())return this.addSourceBuffer(t,r);this.canChangeType()&&this.changeType(t,r)})}appendBuffer(e,t){let r,i,n,{segmentInfo:a,type:s,bytes:o}=e;if(this.processedAppend_=!0,"audio"===s&&this.videoBuffer&&!this.videoAppendQueued_){this.delayedAudioAppendQueue_.push([e,t]),this.logger_(`delayed audio append of ${o.length} until video append`);return}if(oz({type:s,sourceUpdater:this,action:(r=o,i=a||{mediaIndex:-1},n=t,(e,t)=>{let a=t[`${e}Buffer`];if(oB(t.mediaSource,a)){t.logger_(`Appending segment ${i.mediaIndex}'s ${r.length} bytes to ${e}Buffer`);try{a.appendBuffer(r)}catch(r){t.logger_(`Error with code ${r.code} `+(22===r.code?"(QUOTA_EXCEEDED_ERR) ":"")+`when appending segment ${i.mediaIndex} to ${e}Buffer`),t.queuePending[e]=null,n(r)}}}),doneFn:t,name:"appendBuffer"}),"video"===s){if(this.videoAppendQueued_=!0,!this.delayedAudioAppendQueue_.length)return;let e=this.delayedAudioAppendQueue_.slice();this.logger_(`queuing delayed audio ${e.length} appendBuffers`),this.delayedAudioAppendQueue_.length=0,e.forEach(e=>{this.appendBuffer.apply(this,e)})}}audioBuffered(){return oB(this.mediaSource,this.audioBuffer)&&this.audioBuffer.buffered?this.audioBuffer.buffered:aB()}videoBuffered(){return oB(this.mediaSource,this.videoBuffer)&&this.videoBuffer.buffered?this.videoBuffer.buffered:aB()}buffered(){let e=oB(this.mediaSource,this.videoBuffer)?this.videoBuffer:null,t=oB(this.mediaSource,this.audioBuffer)?this.audioBuffer:null;return t&&!e?this.audioBuffered():e&&!t?this.videoBuffered():aW(this.audioBuffered(),this.videoBuffered())}setDuration(e,t=oP){let r;oz({type:"mediaSource",sourceUpdater:this,action:(r=e,e=>{e.logger_(`Setting mediaSource duration to ${r}`);try{e.mediaSource.duration=r}catch(e){aI.log.warn("Failed to set media source duration",e)}}),name:"duration",doneFn:t})}endOfStream(e=null,t=oP){let r;"string"!=typeof e&&(e=void 0),oz({type:"mediaSource",sourceUpdater:this,action:(r=e,e=>
164{if("open"===e.mediaSource.readyState){e.logger_(`Calling mediaSource endOfStream(${r||""})`);try{e.mediaSource.endOfStream(r)}catch(e){aI.log.warn("Failed to call media source endOfStream",e)}}}),name:"endOfStream",doneFn:t})}removeAudio(e,t,r=oP){this.audioBuffered().length&&0!==this.audioBuffered().end(0)?oz({type:"audio",sourceUpdater:this,action:oU(e,t),doneFn:r,name:"remove"}):r()}removeVideo(e,t,r=oP){this.videoBuffered().length&&0!==this.videoBuffered().end(0)?oz({type:"video",sourceUpdater:this,action:oU(e,t),doneFn:r,name:"remove"}):r()}updating(){return!!(oD("audio",this)||oD("video",this))}audioTimestampOffset(e){return void 0!==e&&this.audioBuffer&&this.audioTimestampOffset_!==e&&(oz({type:"audio",sourceUpdater:this,action:oF(e),name:"timestampOffset"}),this.audioTimestampOffset_=e),this.audioTimestampOffset_}videoTimestampOffset(e){return void 0!==e&&this.videoBuffer&&this.videoTimestampOffset_!==e&&(oz({type:"video",sourceUpdater:this,action:oF(e),name:"timestampOffset"}),this.videoTimestampOffset_=e),this.videoTimestampOffset_}audioQueueCallback(e){this.audioBuffer&&oz({type:"audio",sourceUpdater:this,action:o$(e),name:"callback"})}videoQueueCallback(e){this.videoBuffer&&oz({type:"video",sourceUpdater:this,action:o$(e),name:"callback"})}dispose(){this.trigger("dispose"),oL.forEach(e=>{this.abort(e),this.canRemoveSourceBuffer()?this.removeSourceBuffer(e):this[`${e}QueueCallback`](()=>oM(e,this))}),this.videoAppendQueued_=!1,this.delayedAudioAppendQueue_.length=0,this.sourceopenListener_&&this.mediaSource.removeEventListener("sourceopen",this.sourceopenListener_),this.off()}}let oW=e=>decodeURIComponent(escape(String.fromCharCode.apply(null,e))),oV=new Uint8Array("\n\n".split("").map(e=>e.charCodeAt(0)));class oG extends Error{constructor(){super("Trying to parse received VTT cues, but there is no WebVTT. Make sure vtt.js is loaded.")}}class oX extends oj{constructor(e,t={}){super(e,t),this.mediaSource_=null,this.subtitlesTrack_=null,this.featuresNativeTextTracks_=e.featuresNativeTextTracks,this.loadVttJs=e.loadVttJs,this.shouldSaveSegmentTimingInfo_=!1}buffered_(){if(!this.subtitlesTrack_||!this.subtitlesTrack_.cues||!this.subtitlesTrack_.cues.length)return aB();let e=this.subtitlesTrack_.cues;return aB([[e[0].startTime,e[e.length-1].startTime]])}initSegmentForMap(e,t=!1){if(!e)return null;let r=sM(e),i=this.initSegments_[r];if(t&&!i&&e.bytes){let t=new Uint8Array(oV.byteLength+e.bytes.byteLength);t.set(e.bytes),t.set(oV,e.bytes.byteLength),this.initSegments_[r]=i={resolvedUri:e.resolvedUri,byterange:e.byterange,bytes:t}}return i||e}couldBeginLoading_(){return this.playlist_&&this.subtitlesTrack_&&!this.paused()}init_(){return this.state="READY",this.resetEverything(),this.monitorBuffer_()}track(e){return void 0===e||(this.subtitlesTrack_=e,"INIT"===this.state&&this.couldBeginLoading_()&&this.init_()),this.subtitlesTrack_}remove(e,t){ov(e,t,this.subtitlesTrack_)}fillBuffer_(){let e=this.chooseNextRequest_();if(e){if(null===this.syncController_.timestampOffsetForTimeline(e.timeline)){let e=()=>{this.state="READY",this.paused()||this.monitorBuffer_()};this.syncController_.one("timestampoffset",e),this.state="WAITING_ON_TIMELINE";return}this.loadSegment_(e)}}timestampOffsetForSegment_(){return null}chooseNextRequest_(){return this.skipEmptySegments_(super.chooseNextRequest_())}skipEmptySegments_(e){for(;e&&e.segment.empty;){if(e.mediaIndex+1>=e.playlist.segments.length){e=null;break}e=this.generateSegmentInfo_({playlist:e.playlist,mediaIndex:e.mediaIndex+1,startOfSegment:e.startOfSegment+e.duration,isSyncRequest:e.isSyncRequest})}return e}stopForError(e){this.error(e),this.state="READY",this.pause(),this.trigger("error")}segmentRequestFinished_(e,t,r){if(!this.subtitlesTrack_){this.state="READY";return}if(this.saveTransferStats_(t.stats),!this.pendingSegment_){this.state="READY",this.mediaRequestsAborted+=1;return}if(e){-101===e.code&&this.handleTimeout_(),-102===e.code?this.mediaRequestsAborted+=1:this.mediaRequestsErrored+=1,this.stopForError(e);return}let i=this.pendingSegment_,n=r.mp4VttCues&&r.mp4VttCues.length;n&&(i.mp4VttCues=r.mp4VttCues),this.saveBandwidthRelatedStats_(i.duration,t.stats),t.key&&this.segmentKey(t.key,!0),this.state="APPENDING",this.trigger("appending");let a=i.segment;if(a.map&&(a.map.bytes=t.map.bytes),i.bytes=t.bytes,"function"!=typeof h.default.WebVTT&&"function"==typeof this.loadVttJs){this.state="WAITING_ON_VTTJS",this.loadVttJs().then(()=>this.segmentRequestFinished_(e,t,r),()=>this.stopForError({message:"Error loading vtt.js"}));return}a.requested=!0;try{this.parseVTTCues_(i)}catch(e){this.stopForError({message:e.message,metadata:{errorType:aI.Error.StreamingVttParserError,error:e}});return}if(n||this.updateTimeMapping_(i,this.syncController_.timelines[i.timeline],this.playlist_),i.cues.length?i.timingInfo={start:i.cues[0].startTime,end:i.cues[i.cues.length-1].endTime}:i.timingInfo={start:i.startOfSegment,end:i.startOfSegment+i.duration},i.isSyncRequest){this.trigger("syncinfoupdate"),this.pendingSegment_=null,this.state="READY";return}i.byteLength=i.bytes.byteLength,this.mediaSecondsLoaded+=a.duration,i.cues.forEac
164h(e=>{this.subtitlesTrack_.addCue(this.featuresNativeTextTracks_?new h.default.VTTCue(e.startTime,e.endTime,e.text):e)}),ox(this.subtitlesTrack_),this.handleAppendsDone_()}handleData_(e,t){let r=e&&"vtt"===e.type,i=t&&"text"===t.type;r&&i&&super.handleData_(e,t)}updateTimingInfoEnd_(){}parseMp4VttCues_(e){let t=null===this.sourceUpdater_.videoTimestampOffset()?this.sourceUpdater_.audioTimestampOffset():this.sourceUpdater_.videoTimestampOffset();e.mp4VttCues.forEach(r=>{let i=r.start+t,n=r.end+t,a=new h.default.VTTCue(i,n,r.cueText);r.settings&&r.settings.split(" ").forEach(e=>{let t=e.split(":"),r=t[0],i=t[1];a[r]=isNaN(i)?i:Number(i)}),e.cues.push(a)})}parseVTTCues_(e){let t,r=!1;if("function"!=typeof h.default.WebVTT)throw new oG;if(e.cues=[],e.timestampmap={MPEGTS:0,LOCAL:0},e.mp4VttCues)return void this.parseMp4VttCues_(e);"function"==typeof h.default.TextDecoder?t=new h.default.TextDecoder("utf8"):(t=h.default.WebVTT.StringDecoder(),r=!0);let i=new h.default.WebVTT.Parser(h.default,h.default.vttjs,t);if(i.oncue=e.cues.push.bind(e.cues),i.ontimestampmap=t=>{e.timestampmap=t},i.onparsingerror=e=>{aI.log.warn("Error encountered when parsing cues: "+e.message)},e.segment.map){let t=e.segment.map.bytes;r&&(t=oW(t)),i.parse(t)}let n=e.bytes;r&&(n=oW(n)),i.parse(n),i.flush()}updateTimeMapping_(e,t,r){let i=e.segment;if(!t)return;if(!e.cues.length){i.empty=!0;return}let{MPEGTS:n,LOCAL:a}=e.timestampmap,s=n/ti.ONE_SECOND_IN_TS-a+t.mapping;if(e.cues.forEach(e=>{let r=e.endTime-e.startTime,i=this.handleRollover_(e.startTime+s,t.time);e.startTime=Math.max(i,0),e.endTime=Math.max(i+r,0)}),!r.syncInfo){let t=e.cues[0].startTime,n=e.cues[e.cues.length-1].startTime;r.syncInfo={mediaSequence:r.mediaSequence+e.mediaIndex,time:Math.min(t,n-i.duration)}}}handleRollover_(e,t){let r;if(null===t)return e;let i=e*ti.ONE_SECOND_IN_TS,n=t*ti.ONE_SECOND_IN_TS;for(r=n<i?-0x200000000:0x200000000;Math.abs(i-n)>0x100000000;)i+=r;return i/ti.ONE_SECOND_IN_TS}}let oK=function(e,t){let r=e.cues;for(let e=0;e<r.length;e++){let i=r[e];if(t>=i.adStartTime&&t<=i.adEndTime)return i}return null},oY=function(e,t,r=0){let i;if(!e.segments)return;let n=r;for(let r=0;r<e.segments.length;r++){let a=e.segments[r];if(i||(i=oK(t,n+a.duration/2)),i){if("cueIn"in a){i.endTime=n,i.adEndTime=n,n+=a.duration,i=null;continue}if(n<i.endTime){n+=a.duration;continue}i.endTime+=a.duration}else if("cueOut"in a&&((i=new h.default.VTTCue(n,n+a.duration,a.cueOut)).adStartTime=n,i.adEndTime=n+parseFloat(a.cueOut),t.addCue(i)),"cueOutCont"in a){let[e,r]=a.cueOutCont.split("/").map(parseFloat);(i=new h.default.VTTCue(n,n+a.duration,"")).adStartTime=n-e,i.adEndTime=i.adStartTime+r,t.addCue(i)}n+=a.duration}};class oQ{constructor({start:e,end:t,segmentIndex:r,partIndex:i=null,appended:n=!1}){this.start_=e,this.end_=t,this.segmentIndex_=r,this.partIndex_=i,this.appended_=n}isInRange(e){return e>=this.start&&e<this.end}markAppended(){this.appended_=!0}resetAppendedStatus(){this.appended_=!1}get isAppended(){return this.appended_}get start(){return this.start_}get end(){return this.end_}get segmentIndex(){return this.segmentIndex_}get partIndex(){return this.partIndex_}}class oJ{constructor(e,t=[]){this.segmentSyncInfo_=e,this.partsSyncInfo_=t}get segmentSyncInfo(){return this.segmentSyncInfo_}get partsSyncInfo(){return this.partsSyncInfo_}get hasPartsSyncInfo(){return this.partsSyncInfo_.length>0}resetAppendStatus(){this.segmentSyncInfo_.resetAppendedStatus(),this.partsSyncInfo_.forEach(e=>e.resetAppendedStatus())}}class oZ{constructor(){this.storage_=new Map,this.diagnostics_="",this.isReliable_=!1,this.start_=-1/0,this.end_=1/0}get start(){return this.start_}get end(){return this.end_}get diagnostics(){return this.diagnostics_}get isReliable(){return this.isReliable_}resetAppendedStatus(){this.storage_.forEach(e=>e.resetAppendStatus())}update(e,t){let{mediaSequence:r,segments:i}=e;if(this.isReliable_=this.isReliablePlaylist_(r,i),this.isReliable_)return this.updateStorage_(i,r,this.calculateBaseTime_(r,i,t))}getSyncInfoForTime(e){for(let{segmentSyncInfo:t,partsSyncInfo:r}of this.storage_.values())if(r.length){for(let t of r)if(t.isInRange(e))return t}else if(t.isInRange(e))return t;return null}getSyncInfoForMediaSequence(e){return this.storage_.get(e)}
164updateStorage_(e,t,r){let i=new Map,n="\n",a=r,s=t;this.start_=a,e.forEach((e,t)=>{let r=this.storage_.get(s),o=a,l=o+e.duration,c=!!(r&&r.segmentSyncInfo&&r.segmentSyncInfo.isAppended),u=new oQ({start:o,end:l,appended:c,segmentIndex:t});e.syncInfo=u;let d=a,p=(e.parts||[]).map((e,i)=>{let a=d,o=d+e.duration,l=!!(r&&r.partsSyncInfo&&r.partsSyncInfo[i]&&r.partsSyncInfo[i].isAppended),c=new oQ({start:a,end:o,appended:l,segmentIndex:t,partIndex:i});return d=o,n+=`Media Sequence: ${s}.${i} | Range: ${a} --> ${o} | Appended: ${l}
165`,e.syncInfo=c,c});i.set(s,new oJ(u,p)),n+=`${op(e.resolvedUri)} | Media Sequence: ${s} | Range: ${o} --> ${l} | Appended: ${c}
166`,s++,a=l}),this.end_=a,this.storage_=i,this.diagnostics_=n}calculateBaseTime_(e,t,r){if(!this.storage_.size)return 0;if(this.storage_.has(e))return this.storage_.get(e).segmentSyncInfo.start;let i=Math.min(...this.storage_.keys());if(e<i){let r=i-e,n=this.storage_.get(i).segmentSyncInfo.start;for(let e=0;e<r;e++)n-=t[e].duration;return n}return r}isReliablePlaylist_(e,t){return null!=e&&Array.isArray(t)&&t.length}}class o0 extends oZ{constructor(e){super(),this.parent_=e}calculateBaseTime_(e,t,r){if(!this.storage_.size){let t=this.parent_.getSyncInfoForMediaSequence(e);return t?t.segmentSyncInfo.start:0}return super.calculateBaseTime_(e,t,r)}}let o1=[{name:"VOD",run:(e,t,r,i,n)=>r!==1/0?{time:0,segmentIndex:0,partIndex:null}:null},{name:"MediaSequence",run:(e,t,r,i,n,a)=>{let s=e.getMediaSequenceSync(a);if(!s||!s.isReliable)return null;let o=s.getSyncInfoForTime(n);return o?{time:o.start,partIndex:o.partIndex,segmentIndex:o.segmentIndex}:null}},{name:"ProgramDateTime",run:(e,t,r,i,n)=>{if(!Object.keys(e.timelineToDatetimeMappings).length)return null;let a=null,s=null,o=aJ(t);n=n||0;for(let r=0;r<o.length;r++){let i=t.endList||0===n?r:o.length-(r+1),l=o[i],c=l.segment,u=e.timelineToDatetimeMappings[c.timeline];if(!u||!c.dateTimeObject)continue;let d=c.dateTimeObject.getTime()/1e3+u;if(c.parts&&"number"==typeof l.partIndex)for(let e=0;e<l.partIndex;e++)d+=c.parts[e].duration;let p=Math.abs(n-d);if(null!==s&&(0===p||s<p))break;s=p,a={time:d,segmentIndex:l.segmentIndex,partIndex:l.partIndex}}return a}},{name:"Segment",run:(e,t,r,i,n)=>{let a=null,s=null;n=n||0;let o=aJ(t);for(let e=0;e<o.length;e++){let r=t.endList||0===n?e:o.length-(e+1),l=o[r],c=l.segment,u=l.part&&l.part.start||c&&c.start;if(c.timeline===i&&void 0!==u){let e=Math.abs(n-u);if(null!==s&&s<e)break;(!a||null===s||s>=e)&&(s=e,a={time:u,segmentIndex:l.segmentIndex,partIndex:l.partIndex})}}return a}},{name:"Discontinuity",run:(e,t,r,i,n)=>{let a=null;if(n=n||0,t.discontinuityStarts&&t.discontinuityStarts.length){let r=null;for(let i=0;i<t.discontinuityStarts.length;i++){let s=t.discontinuityStarts[i],o=t.discontinuitySequence+i+1,l=e.discontinuities[o];if(l){let e=Math.abs(n-l.time);if(null!==r&&r<e)break;(!a||null===r||r>=e)&&(r=e,a={time:l.time,segmentIndex:s,partIndex:null})}}}return a}},{name:"Playlist",run:(e,t,r,i,n)=>t.syncInfo?{time:t.syncInfo.time,segmentIndex:t.syncInfo.mediaSequence-t.mediaSequence,partIndex:null}:null}];class o2 extends aI.EventTarget{constructor(e={}){super(),this.timelines=[],this.discontinuities=[],this.timelineToDatetimeMappings={};const t=new oZ,r=new o0(t),i=new o0(t);this.mediaSequenceStorage_={main:t,audio:r,vtt:i},this.logger_=aR("SyncController")}getMediaSequenceSync(e){return this.mediaSequenceStorage_[e]||null}getSyncPoint(e,t,r,i,n){if(t!==1/0)return o1.find(({name:e})=>"VOD"===e).run(this,e,t);let a=this.runStrategies_(e,t,r,i,n);if(!a.length)return null;for(let t of a){let{syncPoint:r,strategy:n}=t,{segmentIndex:a,time:s}=r;if(a<0)continue;let o=s+e.segments[a].duration;if(this.logger_(`Strategy: ${n}. Current time: ${i}. selected segment: ${a}. Time: [${s} -> ${o}]}`),i>=s&&i<o)return this.logger_("Found sync point with exact match: ",r),r}return this.selectSyncPoint_(a,{key:"time",value:i})}getExpiredTime(e,t){if(!e||!e.segments)return null;let r=this.runStrategies_(e,t,e.discontinuitySequence,0);if(!r.length)return null;let i=this.selectSyncPoint_(r,{key:"segmentIndex",value:0});return i.segmentIndex>0&&(i.time*=-1),Math.abs(i.time+a8({defaultDuration:e.targetDuration,durationList:e.segments,startIndex:i.segmentIndex,endIndex:0}))}runStrategies_(e,t,r,i,n){let a=[];for(let s=0;s<o1.length;s++){let o=o1[s],l=o.run(this,e,t,r,i,n);l&&(l.strategy=o.name,a.push({strategy:o.name,syncPoint:l}))}return a}selectSyncPoint_(e,t){let r=e[0].syncPoint,i=Math.abs(e[0].syncPoint[t.key]-t.value),n=e[0].strategy;for(let a=1;a<e.length;a++){let s=Math.abs(e[a].syncPoint[t.key]-t.value);s<i&&(i=s,r=e[a].syncPoint,n=e[a].strategy)}return this.logger_(`syncPoint for [${t.key}: ${t.value}] chosen with strategy [${n}]: [time:${r.time}, segmentIndex:${r.segmentIndex}`+("number"==typeof r.partIndex?`,partIndex:${r.partIndex}`:"")+"]"),r}saveExpiredSegmentInfo(e,t){let r=t.mediaSequence-e.mediaSequence;if(r>86400)return void aI.log.warn(`Not saving expired segment info. Media sequence gap ${r} is too large.`);for(let i=r-1;i>=0;i--){let r=e.segments[i];if(r&&void 0!==r.start){t.syncInfo={mediaSequence:e.mediaSequence+i,time:r.start}
166,this.logger_(`playlist refresh sync: [time:${t.syncInfo.time}, mediaSequence: ${t.syncInfo.mediaSequence}]`),this.trigger("syncinfoupdate");break}}}setDateTimeMappingForStart(e){if(this.timelineToDatetimeMappings={},e.segments&&e.segments.length&&e.segments[0].dateTimeObject){let t=e.segments[0],r=t.dateTimeObject.getTime()/1e3;this.timelineToDatetimeMappings[t.timeline]=-r}}saveSegmentTimingInfo({segmentInfo:e,shouldSaveTimelineMapping:t}){let r=this.calculateSegmentTimeMapping_(e,e.timingInfo,t),i=e.segment;r&&(this.saveDiscontinuitySyncInfo_(e),e.playlist.syncInfo||(e.playlist.syncInfo={mediaSequence:e.playlist.mediaSequence+e.mediaIndex,time:i.start}));let n=i.dateTimeObject;i.discontinuity&&t&&n&&(this.timelineToDatetimeMappings[i.timeline]=-(n.getTime()/1e3))}timestampOffsetForTimeline(e){return void 0===this.timelines[e]?null:this.timelines[e].time}mappingForTimeline(e){return void 0===this.timelines[e]?null:this.timelines[e].mapping}calculateSegmentTimeMapping_(e,t,r){let i,n,a=e.segment,s=e.part,o=this.timelines[e.timeline];if("number"==typeof e.timestampOffset)o={time:e.startOfSegment,mapping:e.startOfSegment-t.start},r&&(this.timelines[e.timeline]=o,this.trigger("timestampoffset"),this.logger_(`time mapping for timeline ${e.timeline}: [time: ${o.time}] [mapping: ${o.mapping}]`)),i=e.startOfSegment,n=t.end+o.mapping;else{if(!o)return!1;i=t.start+o.mapping,n=t.end+o.mapping}return s&&(s.start=i,s.end=n),(!a.start||i<a.start)&&(a.start=i),a.end=n,!0}saveDiscontinuitySyncInfo_(e){let t=e.playlist,r=e.segment;if(r.discontinuity)this.discontinuities[r.timeline]={time:r.start,accuracy:0};else if(t.discontinuityStarts&&t.discontinuityStarts.length)for(let i=0;i<t.discontinuityStarts.length;i++){let n=t.discontinuityStarts[i],a=t.discontinuitySequence+i+1,s=n-e.mediaIndex,o=Math.abs(s);if(!this.discontinuities[a]||this.discontinuities[a].accuracy>o){let i;i=s<0?r.start-a8({defaultDuration:t.targetDuration,durationList:t.segments,startIndex:e.mediaIndex,endIndex:n}):r.end+a8({defaultDuration:t.targetDuration,durationList:t.segments,startIndex:e.mediaIndex+1,endIndex:n}),this.discontinuities[a]={time:i,accuracy:o}}}}dispose(){this.trigger("dispose"),this.off()}}class o4 extends aI.EventTarget{constructor(){super(),this.pendingTimelineChanges_={},this.lastTimelineChanges_={}}clearPendingTimelineChange(e){this.pendingTimelineChanges_[e]=null,this.trigger("pendingtimelinechange")}pendingTimelineChange({type:e,from:t,to:r}){return"number"==typeof t&&"number"==typeof r&&(this.pendingTimelineChanges_[e]={type:e,from:t,to:r},this.trigger("pendingtimelinechange")),this.pendingTimelineChanges_[e]}lastTimelineChange({type:e,from:t,to:r}){return"number"==typeof t&&"number"==typeof r&&(this.lastTimelineChanges_[e]={type:e,from:t,to:r},delete this.pendingTimelineChanges_[e],this.trigger({type:"timelinechange",metadata:{timelineChangeInfo:{from:t,to:r}}})),this.lastTimelineChanges_[e]}dispose(){this.trigger("dispose"),this.pendingTimelineChanges_={},this.lastTimelineChanges_={},this.off()}}var o5=sJ(sZ(s0(function(){var t,r,i=function(){function e(){this.listeners={}}var t=e.prototype;return t.on=function(e,t){this.listeners[e]||(this.listeners[e]=[]),this.listeners[e].push(t)},t.off=function(e,t){if(!this.listeners[e])return!1;var r=this.listeners[e].indexOf(t);return this.listeners[e]=this.listeners[e].slice(0),this.listeners[e].splice(r,1),r>-1},t.trigger=function(e){var t=this.listeners[e];if(t)if(2==arguments.length)for(var r=t.length,i=0;i<r;++i)t[i].call(this,arguments[1]);else for(var n=Array.prototype.slice.call(arguments,1),a=t.length,s=0;s<a;++s)t[s].apply(this,n)},t.dispose=function(){this.listeners={}},t.pipe=function(e){this.on("data",function(t){e.push(t)})},e}();let n=function(){let e,t,r,i,n,a,s,o,l=[[[],[],[],[],[]],[[],[],[],[],[]]],c=l[0],u=l[1],d=c[4],p=u[4],h=[],f=[];for(e=0;e<256;e++)f[(h[e]=e<<1^(e>>7)*283)^e]=e;for(t=r=0;!d[t];t^=i||1,r=f[r]||1)for(e=0,a=(a=r^r<<1^r<<2^r<<3^r<<4)>>8^255&a^99,d[t]=a,p[a]=t,o=0x1010101*h[n=h[i=h[t]]]^65537*n^257*i^0x1010100*t,s=257*h[a]^0x1010100*a;e<4;e++)c[e][t]=s=s<<24^s>>>8,u[e][a]=o=o<<24^o>>>8;for(e=0;e<5;e++)c[e]=c[e].slice(0),u[e]=u[e].slice(0);return l},a=null;class s{constructor(e){let t,r,i;a||(a=n()),this._tables=[[a[0][0].slice(),a[0][1].slice(),a[0][2].slice(),a[0][3].slice(),a[0][4].slice()],[a[1][0].slice(),a[1][1].slice(),a[1][2].slice(),a[1][3].slice(),a[1][4].slice()]];const s=this._tables[0][4],o=this._tables[1],l=e.length;let c=1;if(4!==l&&6!==l&&8!==l)throw Error("Invalid aes key size");const u=e.slice(0),d=[];for(this._key=[u,d],t=l;t<4*l+28;t++)i=u[t-1],(t%l==0||8===l&&t%l==4)&&(i=s[i>>>24]<<24^s[i>>16&255]<<16^s[i>>8&255]<<8^s[255&i],t%l==0&&(i=i<<8^i>>>24^c<<24,c=c<<1^(c>>7)*283)),u[t]=u[t-l]^i;for(r=0;t;r++,t--)i=u[3&r?t:t-4],t<=4||r<4?d[r]=i:d[r]=o[0][s[i>>>24]]^o[1][s[i>>16&255]]^o[2][s[i>>8&255]]^o[3][s[255&i]]}decrypt(e,t,r,i,n,a){let s,o,l,c,u=this._key[1],d=e^u[0],p=i^u[1],h=r^u[2],f=t^u[3],g=u.length/4-2,m=4,y=this._tables[1],b=y[0],v=y[1],x=y[2],_=y[3],w=y[4];for(c=0;c<g;c++)s=b[d>>>24]^v[p>>16&255]^x[h>>8&255]^_[255&f]^u[m],o=b[p>>>24]^v[h>>16&255]^x[f>>8&255]^_[255&d]^u[m+1],l=b[h>>>24]^v[f>>16&255]^x[d>>8&255]^_[255&p]^u[m+2],f=b[f>>>24]^v[d>>16&255]^x[p>>8&255]^_[255&h]^u[m+3],m+=4,d=s,p=o,h=l;for(c=0;c<4;c++)n[(3&-c)+a]=w[d>>>24]<<24^w[p>>16&255]<<16^w[h>>8&255]<<8^w[255&f]^u[m++],s=d,d=p,p=h,h=f,f=s}}class o extends i{constructor(){super(i),this.jobs=[],this.delay=1,this.timeout_=null}processJob_(){this.jobs.shift()(),this.jobs.length?this.timeout_=setTimeout(this.processJob_.bind(this),this.delay):this.timeout_=null}push(e){this.jobs.push(e),this.timeout_||(this.timeout_=setTimeout(this.processJob_.bind(this),this.delay))}}let l=function(e){return e<<24|(65280&e)<<8|(0xff0000&e)>>8|e>>>24}
166,c=function(e,t,r){let i,n,a,o,c,u,d,p,h,f=new Int32Array(e.buffer,e.byteOffset,e.byteLength>>2),g=new s(Array.prototype.slice.call(t)),m=new Uint8Array(e.byteLength),y=new Int32Array(m.buffer);for(h=0,i=r[0],n=r[1],a=r[2],o=r[3];h<f.length;h+=4)c=l(f[h]),u=l(f[h+1]),d=l(f[h+2]),p=l(f[h+3]),g.decrypt(c,u,d,p,y,h),y[h]=l(y[h]^i),y[h+1]=l(y[h+1]^n),y[h+2]=l(y[h+2]^a),y[h+3]=l(y[h+3]^o),i=c,n=u,a=d,o=p;return m};class u{constructor(e,t,r,i){const n=u.STEP,a=new Int32Array(e.buffer),s=new Uint8Array(e.byteLength);let c=0;for(this.asyncStream_=new o,this.asyncStream_.push(this.decryptChunk_(a.subarray(c,c+n),t,r,s)),c=n;c<a.length;c+=n)r=new Uint32Array([l(a[c-4]),l(a[c-3]),l(a[c-2]),l(a[c-1])]),this.asyncStream_.push(this.decryptChunk_(a.subarray(c,c+n),t,r,s));this.asyncStream_.push(function(){i(null,s.subarray(0,s.byteLength-s[s.byteLength-1]))})}static get STEP(){return 32e3}decryptChunk_(e,t,r,i){return function(){let n=c(e,t,r);i.set(n,e.byteOffset)}}}var d="u">typeof globalThis?globalThis:"u">typeof window?window:e.g,p=("u">typeof window?window:void 0!==d?d:"u">typeof self?self:{}).BigInt||Number;p("0x1"),p("0x100"),p("0x10000"),p("0x1000000"),p("0x100000000"),p("0x10000000000"),p("0x1000000000000"),p("0x100000000000000"),p("0x10000000000000000"),255===(r=new Uint8Array((t=new Uint16Array([65484])).buffer,t.byteOffset,t.byteLength))[0]||r[0];let h=function(e){let t={};return Object.keys(e).forEach(r=>{let i=e[r];("function"===ArrayBuffer.isView?ArrayBuffer.isView(i):i&&i.buffer instanceof ArrayBuffer)?t[r]={bytes:i.buffer,byteOffset:i.byteOffset,byteLength:i.byteLength}:t[r]=i}),t};self.onmessage=function(e){let t=e.data;new u(new Uint8Array(t.encrypted.bytes,t.encrypted.byteOffset,t.encrypted.byteLength),new Uint32Array(t.key.bytes,t.key.byteOffset,t.key.byteLength/4),new Uint32Array(t.iv.bytes,t.iv.byteOffset,t.iv.byteLength/4),function(e,r){self.postMessage(h({source:t.source,decrypted:r}),[r.buffer])})}})));let o3=e=>{let t=e.default?"main":"alternative";return e.characteristics&&e.characteristics.indexOf("public.accessibility.describes-video")>=0&&(t="main-desc"),t},o8=(e,t)=>{e.abort(),e.pause(),t&&t.activePlaylistLoader&&(t.activePlaylistLoader.pause(),t.activePlaylistLoader=null)},o6=(e,t)=>{t.activePlaylistLoader=e,e.load()},o7={AUDIO:(e,t)=>()=>{let{mediaTypes:{[e]:r},excludePlaylist:i}=t,n=r.activeTrack(),a=r.activeGroup(),s=(a.filter(e=>e.default)[0]||a[0]).id,o=r.tracks[s];if(n===o)return void i({error:{message:"Problem encountered loading the default audio track."}});for(let e in aI.log.warn("Problem encountered loading the alternate audio track.Switching back to default."),r.tracks)r.tracks[e].enabled=r.tracks[e]===o;r.onTrackChanged()},SUBTITLES:(e,t)=>()=>{let{mediaTypes:{[e]:r}}=t;aI.log.warn("Problem encountered loading the subtitle track.Disabling subtitle track.");let i=r.activeTrack();i&&(i.mode="disabled"),r.onTrackChanged()}},o9={AUDIO:(e,t,r)=>{if(!t)return;let{tech:i,requestOptions:n,segmentLoaders:{[e]:a}}=r;t.on("loadedmetadata",()=>{let e=t.media();a.playlist(e,n),(!i.paused()||e.endList&&"none"!==i.preload())&&a.load()}),t.on("loadedplaylist",()=>{a.playlist(t.media(),n),i.paused()||a.load()}),t.on("error",o7[e](e,r))},SUBTITLES:(e,t,r)=>{let{tech:i,requestOptions:n,segmentLoaders:{[e]:a},mediaTypes:{[e]:s}}=r;t.on("loadedmetadata",()=>{let e=t.media();a.playlist(e,n),a.track(s.activeTrack()),(!i.paused()||e.endList&&"none"!==i.preload())&&a.load()}),t.on("loadedplaylist",()=>{a.playlist(t.media(),n),i.paused()||a.load()}),t.on("error",o7[e](e,r))}},le={AUDIO:(e,t)=>{let{vhs:r,sourceType:i,segmentLoaders:{[e]:n},requestOptions:a,main:{mediaGroups:s},mediaTypes:{[e]:{groups:o,tracks:l,logger_:c}},mainPlaylistLoader:u}=t,d=sa(u.main);for(let n in(!s[e]||0===Object.keys(s[e]).length)&&(s[e]={main:{default:{default:!0}}},d&&(s[e].main.default.playlists=u.main.playlists)),s[e])for(let p in o[n]||(o[n]=[]),s[e][n]){let h,f=s[e][n][p];if(d?(c(`AUDIO group '${n}' label '${p}' is a main playlist`),f.isMainPlaylist=!0,h=null):h="vhs-json"===i&&f.playlists?new sI(f.playlists[0],r,a):f.resolvedUri?new sI(f.resolvedUri,r,a):f.playlists&&"dash"===i?new sX(f.playlists[0],r,a,u):null,f=aM({id:p,playlistLoader:h},f),o9[e](e,f.playlistLoader,t),o[n].push(f),void 0===l[p]){let e=new aI.AudioTrack({id:p,kind:o3(f),enabled:!1,language:f.language,default:f.default,label:p});l[p]=e}}n.on("error",o7[e](e,t))},SUBTITLES:(e,t)=>{let{tech:r,vhs:i,sourceType:n,segmentLoaders:{[e]:a},requestOptions:s,main:{mediaGroups:o},mediaTypes:{[e]:{groups:l,tracks:c}},mainPlaylistLoader:u}=t;for(let a in o[e])for(let d in l[a]||(l[a]=[]),o[e][a]){let p;if(!i.options_.useForcedSubtitles&&o[e][a][d].forced)continue;let h=o[e][a][d];if("hls"===n)p=new sI(h.resolvedUri,i,s);
166else if("dash"===n){if(!h.playlists.filter(e=>e.excludeUntil!==1/0).length)return;p=new sX(h.playlists[0],i,s,u)}else"vhs-json"===n&&(p=new sI(h.playlists?h.playlists[0]:h.resolvedUri,i,s));if(h=aM({id:d,playlistLoader:p},h),o9[e](e,h.playlistLoader,t),l[a].push(h),void 0===c[d]){let e=r.addRemoteTextTrack({id:d,kind:"subtitles",default:h.default&&h.autoselect,language:h.language,label:d},!1).track;c[d]=e}}a.on("error",o7[e](e,t))},"CLOSED-CAPTIONS":(e,t)=>{let{tech:r,main:{mediaGroups:i},mediaTypes:{[e]:{groups:n,tracks:a}}}=t;for(let t in i[e])for(let s in n[t]||(n[t]=[]),i[e][t]){let o=i[e][t][s];if(!/^(?:CC|SERVICE)/.test(o.instreamId))continue;let l=r.options_.vhs&&r.options_.vhs.captionServices||{},c={label:s,language:o.language,instreamId:o.instreamId,default:o.default&&o.autoselect};if(l[c.instreamId]&&(c=aM(c,l[c.instreamId])),void 0===c.default&&delete c.default,n[t].push(aM({id:s},o)),void 0===a[s]){let e=r.addRemoteTextTrack({id:c.instreamId,kind:"captions",default:c.default,language:c.language,label:c.label},!1).track;a[s]=e}}}},lt=(e,t)=>{for(let r=0;r<e.length;r++)if(si(t,e[r])||e[r].playlists&&lt(e[r].playlists,t))return!0;return!1},lr={AUDIO:(e,t)=>()=>{let{mediaTypes:{[e]:{tracks:r}}}=t;for(let e in r)if(r[e].enabled)return r[e];return null},SUBTITLES:(e,t)=>()=>{let{mediaTypes:{[e]:{tracks:r}}}=t;for(let e in r)if("showing"===r[e].mode||"hidden"===r[e].mode)return r[e];return null}};class li{constructor(){this.priority_=[],this.pathwayClones_=new Map}set version(e){1===e&&(this.version_=e)}set ttl(e){this.ttl_=e||300}set reloadUri(e){e&&(this.reloadUri_=v(this.reloadUri_,e))}set priority(e){e&&e.length&&(this.priority_=e)}set pathwayClones(e){e&&e.length&&(this.pathwayClones_=new Map(e.map(e=>[e.ID,e])))}get version(){return this.version_}get ttl(){return this.ttl_}get reloadUri(){return this.reloadUri_}get priority(){return this.priority_}get pathwayClones(){return this.pathwayClones_}}class ln extends aI.EventTarget{constructor(e,t){super(),this.currentPathway=null,this.defaultPathway=null,this.queryBeforeStart=!1,this.availablePathways_=new Set,this.steeringManifest=new li,this.proxyServerUrl_=null,this.manifestType_=null,this.ttlTimeout_=null,this.request_=null,this.currentPathwayClones=new Map,this.nextPathwayClones=new Map,this.excludedSteeringManifestURLs=new Set,this.logger_=aR("Content Steering"),this.xhr_=e,this.getBandwidth_=t}assignTagProperties(e,t){this.manifestType_=t.serverUri?"HLS":"DASH";let r=t.serverUri||t.serverURL;if(!r){this.logger_(`steering manifest URL is ${r}, cannot request steering manifest.`),this.trigger("error");return}r.startsWith("data:")?this.decodeDataUriManifest_(r.substring(r.indexOf(",")+1)):(this.steeringManifest.reloadUri=v(e,r),this.defaultPathway=t.pathwayId||t.defaultServiceLocation,this.queryBeforeStart=t.queryBeforeStart,this.proxyServerUrl_=t.proxyServerURL,this.defaultPathway&&!this.queryBeforeStart&&this.trigger("content-steering"))}requestSteeringManifest(e){let t=this.steeringManifest.reloadUri;if(!t)return;let r=e?t:this.getRequestURI(t);if(!r){this.logger_("No valid content steering manifest URIs. Stopping content steering."),this.trigger("error"),this.dispose();return}let i={contentSteeringInfo:{uri:r}};this.trigger({type:"contentsteeringloadstart",metadata:i}),this.request_=this.xhr_({uri:r,requestType:"content-steering-manifest"},(e,t)=>{let n;if(e){if(410===t.status){this.logger_(`manifest request 410 ${e}.`),this.logger_(`There will be no more content steering requests to ${r} this session.`),this.excludedSteeringManifestURLs.add(r);return}if(429===t.status){let r=t.responseHeaders["retry-after"];this.logger_(`manifest request 429 ${e}.`),this.logger_(`content steering will retry in ${r} seconds.`),this.startTTLTimeout_(parseInt(r,10));return}this.logger_(`manifest failed to load ${e}.`),this.startTTLTimeout_();return}this.trigger({type:"contentsteeringloadcomplete",metadata:i});try{n=JSON.parse(this.request_.responseText)}catch(t){let e={errorType:aI.Error.StreamingContentSteeringParserError,error:t};this.trigger({type:"error",metadata:e})}this.assignSteeringProperties_(n);let a={contentSteeringInfo:i.contentSteeringInfo,contentSteeringManifest:{version:this.steeringManifest.version,reloadUri:this.steeringManifest.reloadUri,priority:this.steeringManifest.priority}};this.trigger({type:"contentsteeringparsed",metadata:a}),this.startTTLTimeout_()})}setProxyServerUrl_(e){let t=new h.default.URL(e),r=new h.default.URL(this.proxyServerUrl_);return r.searchParams.set("url",encodeURI(t.toString())),this.setSteeringParams_(r.toString())}decodeDataUriManifest_(e){let t=JSON.parse(h.default.atob(e));this.assignSteeringProperties_(t)}setSteeringParams_(e){let t=new h.default.URL(e),r=this.getPathway(),i=this.getBandwidth_();if(r){let e=`_${this.manifestType_}_pathway`;t.searchParams.set(e,r)}if(i){let e=`_${this.manifestType_}_throughput`;t.searchParams.set(e,i)}return t.toString()}assignSteeringProperties_(e){if(this.steeringManifest.version=e.VERSION,!this.steeringManifest.version){this.logger_(`manifest version is ${e.VERSION}, which is not supported.`),this.trigger("error");return}this.steeringManifest.ttl=e.TTL,this.steeringManifest.reloadUri=e["RELOAD-URI"],this.steeringManifest.priority=e["PATHWAY-PRIORITY"]||e["SERVICE-LOCATION-PRIORITY"],this.steeringManifest.pathwayClones=e["PATHWAY-CLONES"],this.nextPathwayClones=this.steeringManifest.pathwayClones,this.availablePathways_.size||(this.logger_("There are no available pathways for c
166ontent steering. Ending content steering."),this.trigger("error"),this.dispose());let t=(e=>{for(let t of e)if(this.availablePathways_.has(t))return t;return[...this.availablePathways_][0]})(this.steeringManifest.priority);this.currentPathway!==t&&(this.currentPathway=t,this.trigger("content-steering"))}getPathway(){return this.currentPathway||this.defaultPathway}getRequestURI(e){if(!e)return null;let t=e=>this.excludedSteeringManifestURLs.has(e);if(this.proxyServerUrl_){let r=this.setProxyServerUrl_(e);if(!t(r))return r}let r=this.setSteeringParams_(e);return t(r)?null:r}startTTLTimeout_(e=this.steeringManifest.ttl){this.ttlTimeout_=h.default.setTimeout(()=>{this.requestSteeringManifest()},1e3*e)}clearTTLTimeout_(){h.default.clearTimeout(this.ttlTimeout_),this.ttlTimeout_=null}abort(){this.request_&&this.request_.abort(),this.request_=null}dispose(){this.off("content-steering"),this.off("error"),this.abort(),this.clearTTLTimeout_(),this.currentPathway=null,this.defaultPathway=null,this.queryBeforeStart=null,this.proxyServerUrl_=null,this.manifestType_=null,this.ttlTimeout_=null,this.request_=null,this.excludedSteeringManifestURLs=new Set,this.availablePathways_=new Set,this.steeringManifest=new li}addAvailablePathway(e){e&&this.availablePathways_.add(e)}clearAvailablePathways(){this.availablePathways_.clear()}excludePathway(e){return this.availablePathways_.delete(e)}didDASHTagChange(e,t){return!t&&this.steeringManifest.reloadUri||t&&(v(e,t.serverURL)!==this.steeringManifest.reloadUri||t.defaultServiceLocation!==this.defaultPathway||t.queryBeforeStart!==this.queryBeforeStart||t.proxyServerURL!==this.proxyServerUrl_)}getAvailablePathways(){return this.availablePathways_}}let la=["mediaRequests","mediaRequestsAborted","mediaRequestsTimedout","mediaRequestsErrored","mediaTransferDuration","mediaBytesTransferred","mediaAppends"],ls=function(e){return this.audioSegmentLoader_[e]+this.mainSegmentLoader_[e]},lo=function({currentPlaylist:e,buffered:t,currentTime:r,nextPlaylist:i,bufferLowWaterLine:n,bufferHighWaterLine:a,duration:s,bufferBasedABR:o,log:l}){if(!i)return aI.log.warn("We received no playlist to switch to. Please check your stream."),!1;let c=`allowing switch ${e&&e.id||"null"} -> ${i.id}`;if(!e)return l(`${c} as current playlist is not set`),!0;if(i.id===e.id)return!1;let u=!!az(t,r).length;if(!e.endList)return u||"number"!=typeof e.partTargetDuration?(l(`${c} as current playlist is live`),!0):(l(`not ${c} as current playlist is live llhls, but currentTime isn't in buffered.`),!1);let d=aY(t,r),p=o?sK.EXPERIMENTAL_MAX_BUFFER_LOW_WATER_LINE:sK.MAX_BUFFER_LOW_WATER_LINE;if(s<p)return l(`${c} as duration < max low water line (${s} < ${p})`),!0;let h=i.attributes.BANDWIDTH,f=e.attributes.BANDWIDTH;if(h<f&&(!o||d<a)){let e=`${c} as next bandwidth < current bandwidth (${h} < ${f})`;return o&&(e+=` and forwardBuffer < bufferHighWaterLine (${d} < ${a})`),l(e),!0}if((!o||h>f)&&d>=n){let e=`${c} as forwardBuffer >= bufferLowWaterLine (${d} >= ${n})`;return o&&(e+=` and next bandwidth > current bandwidth (${h} > ${f})`),l(e),!0}return l(`not ${c} as no switching criteria met`),!1};class ll extends aI.EventTarget{constructor(e){super(),this.fastQualityChange_=((e,t)=>{let r=null;return(...i)=>{clearTimeout(r),r=setTimeout(()=>{e.apply(null,i)},t)}})(this.fastQualityChange_.bind(this),100);const{src:t,withCredentials:r,tech:i,bandwidth:n,externVhs:a,useCueTags:o,playlistExclusionDuration:l,enableLowInitialPlaylist:c,sourceType:u,cacheEncryptionKeys:d,bufferBasedABR:p,leastPixelDiffSelector:f,captionServices:g,experimentalUseMMS:m}=e;if(!t)throw Error("A non-empty playlist URL or JSON manifest string is required");let{maxPlaylistRetries:y}=e;null==y&&(y=1/0),s=a,this.bufferBasedABR=!!p,this.leastPixelDiffSelector=!!f,this.withCredentials=r,this.tech_=i,this.vhs_=i.vhs,this.player_=e.player_,this.sourceType_=u,this.useCueTags_=o,this.playlistExclusionDuration=l,this.maxPlaylistRetries=y,this.enableLowInitialPlaylist=c,this.usingManagedMediaSource_=!1,this.useCueTags_&&(this.cueTagsTrack_=this.tech_.addTextTrack("metadata","ad-cues"),this.cueTagsTrack_.inBandMetadataTrackDispatchType=""),this.requestOptions_={withCredentials:r,maxPlaylistRetries:y,timeout:null},this.on("error",this.pauseLoading),this.mediaTypes_=(()=>{let e={};return["AUDIO","SUBTITLES","CLOSED-CAPTIONS"].forEach(t=>{e[t]={groups:{},tracks:{},activePlaylistLoader:null,activeGroup:oP,activeTrack:oP,getActiveGroup:oP,onGroupChanged:oP,onTrackChanged:oP,lastTrack_:null,logger_:aR(`MediaGroups[${t}]`)}}),e})(),m&&h.default.ManagedMediaSource?(this.tech_.el_.disableRemotePlayback=!0,this.mediaSource=new h.default.ManagedMediaSource,this.usingManagedMediaSource_=!0,aI.log("Using ManagedMediaSource")):h.default.MediaSource&&(this.mediaSource=new h.default.MediaSource),this.handleDurationChange_=this.handleDurationChange_.bind(this),this.handleSourceOpen_=this.handleSourceOpen_.bind(this),this.handleSourceEnded_=this.handleSourceEnded_.bind(this),this.load=this.load.bind(this),this.pause=this.pause.bind(this),this.mediaSource.addEventListener("durationchange",this.handleDurationChange_),this.mediaSource.addEventListener("sourceopen",this.handleSourceOpen_),this.mediaSource.addEventListener("sourceended",this.handleSourceEnded_),this.mediaSource.addEventListener("startstreaming",this.load),this.mediaSource.addEventListener("endstreaming",this.pause),this.seekable_=aB(),this.hasPlayed_=!1,this.syncController_=new o2(e),this.segmentMetadataTrack_=i.addRemoteTextTrack({kind:"metadata",label:"segment-metadata"},!1).track,this.segmentMetadataTrack_.mode="hidden",this.decrypter_=new o5,this.sourceUpdater_=new oH(this.mediaSource),this.inbandTextTracks_={},this.timelineChangeController_=new o4,this.keyStatusMap_=new Map;const b={vhs:this.vhs_,parse708captions:e.parse708captions,useDtsForTimestampOffset:e.useDtsForTimestampOffset,captionServices:g,mediaSource:this.mediaSource,currentTime:this.tech_.currentTime.bind(this.tech_),seekable:()=>this.seekable(),seeking:()=>this.tech_.seeking(),duration:()=>this.duration(),hasPlayed:()=>this.hasPlayed_,goalBufferLength:()=>this.goalBufferLength(),bandwidth:n,syncController:this.syncController_,decrypter:this.decrypter_,sourceType:this.sourceType_,inbandTextTracks:this.inbandTextTracks_,cacheEncryptionKeys:d,sourceUpdater:this.sourceUpdater_,timelineChangeController:this.timelineChangeController_,exactManifestTimings:e.exactManifestTimings,addMetadataToTextTrack:this.addMetadataToTextTrack.bind(this)};this.mainPlaylistLoader_="dash"===this.sourceType_?new sX(t,this.vhs_,aM(this.requestOptions_,{addMetadataToTextTrack:this.addMetadataToTextTrack.bind(this)})):new sI(t,this.vhs_,aM(this.requestOptions_,{addDateRangesToTextTrack:this.addDateRangesToTextTrack_.bind(this)})),this.setupMainPlaylistLoaderListeners_(),this.mainSegmentLoader_=new oj(aM(b,{segmentMetadataTrack:this.segmentMetadataTrack_,loaderType:"main"}),e),this.audioSegmentLoader_=new oj(aM(b,{loaderType:"audio"}),e),this.subtitleSegmentLoader_=new oX(aM(b,{loaderType:"vtt",featuresNativeTextTracks:this.tech_.featuresNativeTextTracks,loadVttJs:()=>new Promise((e,t)=>
166{function r(){i.off("vttjserror",n),e()}function n(){i.off("vttjsloaded",r),t()}i.one("vttjsloaded",r),i.one("vttjserror",n),i.addWebVttScript_()})}),e);const v=()=>this.mainSegmentLoader_.bandwidth;this.contentSteeringController_=new ln(this.vhs_.xhr,v),this.setupSegmentLoaderListeners_(),this.bufferBasedABR&&(this.mainPlaylistLoader_.one("loadedplaylist",()=>this.startABRTimer_()),this.tech_.on("pause",()=>this.stopABRTimer_()),this.tech_.on("play",()=>this.startABRTimer_())),la.forEach(e=>{this[e+"_"]=ls.bind(this,e)}),this.logger_=aR("pc"),this.triggeredFmp4Usage=!1,"none"===this.tech_.preload()?(this.loadOnPlay_=()=>{this.loadOnPlay_=null,this.mainPlaylistLoader_.load()},this.tech_.one("play",this.loadOnPlay_)):this.mainPlaylistLoader_.load(),this.timeToLoadedData__=-1,this.mainAppendsToLoadedData__=-1,this.audioAppendsToLoadedData__=-1;const x="none"===this.tech_.preload()?"play":"loadstart";this.tech_.one(x,()=>{let e=Date.now();this.tech_.one("loadeddata",()=>{this.timeToLoadedData__=Date.now()-e,this.mainAppendsToLoadedData__=this.mainSegmentLoader_.mediaAppends,this.audioAppendsToLoadedData__=this.audioSegmentLoader_.mediaAppends})})}mainAppendsToLoadedData_(){return this.mainAppendsToLoadedData__}audioAppendsToLoadedData_(){return this.audioAppendsToLoadedData__}appendsToLoadedData_(){let e=this.mainAppendsToLoadedData_(),t=this.audioAppendsToLoadedData_();return -1===e||-1===t?-1:e+t}timeToLoadedData_(){return this.timeToLoadedData__}checkABR_(e="abr"){let t=this.selectPlaylist();t&&this.shouldSwitchToMedia_(t)&&this.switchMedia_(t,e)}switchMedia_(e,t,r){let i=this.media(),n=i&&(i.id||i.uri),a=e&&(e.id||e.uri);if(n&&n!==a){this.logger_(`switch media ${n} -> ${a} from ${t}`);let r={renditionInfo:{id:a,bandwidth:e.attributes.BANDWIDTH,resolution:e.attributes.RESOLUTION,codecs:e.attributes.CODECS},cause:t};this.trigger({type:"renditionselected",metadata:r}),this.tech_.trigger({type:"usage",name:`vhs-rendition-change-${t}`})}this.mainPlaylistLoader_.media(e,r)}switchMediaForDASHContentSteering_(){["AUDIO","SUBTITLES","CLOSED-CAPTIONS"].forEach(e=>{let t=this.mediaTypes_[e],r=t?t.activeGroup():null,i=this.contentSteeringController_.getPathway();if(r&&i){let t=(r.length?r[0].playlists:r.playlists).filter(e=>e.attributes.serviceLocation===i);t.length&&this.mediaTypes_[e].activePlaylistLoader.media(t[0])}})}startABRTimer_(){this.stopABRTimer_(),this.abrTimer_=h.default.setInterval(()=>this.checkABR_(),250)}stopABRTimer_(){this.tech_.scrubbing&&this.tech_.scrubbing()||(h.default.clearInterval(this.abrTimer_),this.abrTimer_=null)}getAudioTrackPlaylists_(){let e,t=this.main(),r=t&&t.playlists||[];if(!t||!t.mediaGroups||!t.mediaGroups.AUDIO)return r;let i=t.mediaGroups.AUDIO,n=Object.keys(i);if(Object.keys(this.mediaTypes_.AUDIO.groups).length)e=this.mediaTypes_.AUDIO.activeTrack();else{let t=i.main||n.length&&i[n[0]];for(let r in t)if(t[r].default){e={label:r};break}}if(!e)return r;let a=[];for(let r in i)if(i[r][e.label]){let n=i[r][e.label];if(n.playlists&&n.playlists.length)a.push.apply(a,n.playlists);else if(n.uri)a.push(n);else if(t.playlists.length)for(let e=0;e<t.playlists.length;e++){let i=t.playlists[e];i.attributes&&i.attributes.AUDIO&&i.attributes.AUDIO===r&&a.push(i)}}return a.length?a:r}setupMainPlaylistLoaderListeners_(){this.mainPlaylistLoader_.on("loadedmetadata",()=>{let e=this.mainPlaylistLoader_.media(),t=1.5*e.targetDuration*1e3;sr(this.mainPlaylistLoader_.main,this.mainPlaylistLoader_.media())?this.requestOptions_.timeout=0:this.requestOptions_.timeout=t,e.endList&&"none"!==this.tech_.preload()&&(this.mainSegmentLoader_.playlist(e,this.requestOptions_),this.mainSegmentLoader_.load()),(e=>{["AUDIO","SUBTITLES","CLOSED-CAPTIONS"].forEach(t=>{le[t](t,e)});let{mediaTypes:t,mainPlaylistLoader:r,tech:i,vhs:n,segmentLoaders:{AUDIO:a,main:s}}=e;["AUDIO","SUBTITLES"].forEach(r=>{t[r].activeGroup=t=>{let{mainPlaylistLoader:i,mediaTypes:{[r]:{groups:n}}}=e,a=i.media();if(!a)return null;let s=null;a.attributes[r]&&(s=n[a.attributes[r]]);let o=Object.keys(n);if(!s)if("AUDIO"===r&&o.length>1&&sa(e.main))for(let e=0;e<o.length;e++){let t=n[o[e]];if(lt(t,a)){s=t;break}}else n.main?s=n.main:1===o.length&&(s=n[o[0]]);return void 0===t?s:null!==t&&s&&s.filter(e=>e.id===t.id)[0]||null},t[r].activeTrack=lr[r](r,e),t[r].onGroupChanged=()=>{let{segmentLoaders:{[r]:t,main:i},mediaTypes:{[r]:n}}=e,a=n.activeTrack(),s=n.getActiveGroup(),o=n.activePlaylistLoader,l=n.lastGroup_;if((!s||!l||s.id!==l.id)&&(n.lastGroup_=s,n.lastTrack_=a,o8(t,n),s&&!s.isMainPlaylist)){if(!s.playlistLoader){o&&i.resetEverything();return}t.resyncLoader(),o6(s.playlistLoader,n)}},t[r].onGroupChanging=()=>{let{segmentLoaders:{[r]:t},mediaTypes:{[r]:i}}=e;i.lastGroup_=null,t.abort(),t.pause()},t[r].onTrackChanged=()=>{let{mainPlaylistLoader:t,segmentLoaders:{[r]:i,main:n},mediaTypes:{[r]:a}}=e,s=a.activeTrack(),o=a.getActiveGroup(),l=a.activePlaylistLoader,c=a.lastTrack_;
166if((!c||!s||c.id!==s.id)&&(a.lastGroup_=o,a.lastTrack_=s,o8(i,a),o)){if(o.isMainPlaylist){if(!s||!c||s.id===c.id)return;let r=e.vhs.playlistController_,i=r.selectPlaylist();if(r.media()===i)return;a.logger_(`track change. Switching main audio from ${c.id} to ${s.id}`),t.pause(),n.resetEverything(),r.fastQualityChange_(i);return}if("AUDIO"===r){if(!o.playlistLoader){n.setAudio(!0),n.resetEverything();return}i.setAudio(!0),n.setAudio(!1)}if(l===o.playlistLoader)return void o6(o.playlistLoader,a);i.track&&i.track(s),i.resetEverything(),o6(o.playlistLoader,a)}},t[r].getActiveGroup=((e,{mediaTypes:t})=>()=>{let r=t[e].activeTrack();return r?t[e].activeGroup(r):null})(r,e)});let o=t.AUDIO.activeGroup();if(o){let e=(o.filter(e=>e.default)[0]||o[0]).id;t.AUDIO.tracks[e].enabled=!0,t.AUDIO.onGroupChanged(),t.AUDIO.onTrackChanged(),t.AUDIO.getActiveGroup().playlistLoader?(s.setAudio(!1),a.setAudio(!0)):s.setAudio(!0)}r.on("mediachange",()=>{["AUDIO","SUBTITLES"].forEach(e=>t[e].onGroupChanged())}),r.on("mediachanging",()=>{["AUDIO","SUBTITLES"].forEach(e=>t[e].onGroupChanging())});let l=()=>{t.AUDIO.onTrackChanged(),i.trigger({type:"usage",name:"vhs-audio-change"})};for(let e in i.audioTracks().addEventListener("change",l),i.remoteTextTracks().addEventListener("change",t.SUBTITLES.onTrackChanged),n.on("dispose",()=>{i.audioTracks().removeEventListener("change",l),i.remoteTextTracks().removeEventListener("change",t.SUBTITLES.onTrackChanged)}),i.clearTracks("audio"),t.AUDIO.tracks)i.audioTracks().addTrack(t.AUDIO.tracks[e])})({sourceType:this.sourceType_,segmentLoaders:{AUDIO:this.audioSegmentLoader_,SUBTITLES:this.subtitleSegmentLoader_,main:this.mainSegmentLoader_},tech:this.tech_,requestOptions:this.requestOptions_,mainPlaylistLoader:this.mainPlaylistLoader_,vhs:this.vhs_,main:this.main(),mediaTypes:this.mediaTypes_,excludePlaylist:this.excludePlaylist.bind(this)}),this.triggerPresenceUsage_(this.main(),e),this.setupFirstPlay(),!this.mediaTypes_.AUDIO.activePlaylistLoader||this.mediaTypes_.AUDIO.activePlaylistLoader.media()?this.trigger("selectedinitialmedia"):this.mediaTypes_.AUDIO.activePlaylistLoader.one("loadedmetadata",()=>{this.trigger("selectedinitialmedia")})}),this.mainPlaylistLoader_.on("loadedplaylist",()=>{this.loadOnPlay_&&this.tech_.off("play",this.loadOnPlay_);let e=this.mainPlaylistLoader_.media();if(!e){let t;if(this.attachContentSteeringListeners_(),this.initContentSteeringController_(),this.excludeUnsupportedVariants_(),this.enableLowInitialPlaylist&&(t=this.selectInitialPlaylist()),t||(t=this.selectPlaylist()),!t||!this.shouldSwitchToMedia_(t)||(this.initialMedia_=t,this.switchMedia_(this.initialMedia_,"initial"),!("vhs-json"===this.sourceType_&&this.initialMedia_.segments)))return;e=this.initialMedia_}this.handleUpdatedMediaPlaylist(e)}),this.mainPlaylistLoader_.on("error",()=>{let e=this.mainPlaylistLoader_.error;this.excludePlaylist({playlistToExclude:e.playlist,error:e})}),this.mainPlaylistLoader_.on("mediachanging",()=>{this.mainSegmentLoader_.abort(),this.mainSegmentLoader_.pause()}),this.mainPlaylistLoader_.on("mediachange",()=>{let e=this.mainPlaylistLoader_.media(),t=1.5*e.targetDuration*1e3;sr(this.mainPlaylistLoader_.main,this.mainPlaylistLoader_.media())?this.requestOptions_.timeout=0:this.requestOptions_.timeout=t,"dash"===this.sourceType_&&this.mainPlaylistLoader_.isPaused&&this.mainPlaylistLoader_.load(),this.mainSegmentLoader_.pause(),this.mainSegmentLoader_.playlist(e,this.requestOptions_),this.waitingForFastQualityPlaylistReceived_?this.runFastQualitySwitch_():this.mainSegmentLoader_.load(),this.tech_.trigger({type:"mediachange",bubbles:!0})}),this.mainPlaylistLoader_.on("playlistunchanged",()=>{let e=this.mainPlaylistLoader_.media();"playlist-unchanged"===e.lastExcludeReason_||this.stuckAtPlaylistEnd_(e)&&(this.excludePlaylist({error:{message:"Playlist no longer updating.",reason:"playlist-unchanged"}}),this.tech_.trigger("playliststuck"))}),this.mainPlaylistLoader_.on("renditiondisabled",()=>{this.tech_.trigger({type:"usage",name:"vhs-rendition-disabled"})}),this.mainPlaylistLoader_.on("renditionenabled",()=>{this.tech_.trigger({type:"usage",name:"vhs-rendition-enabled"})}),["manifestrequeststart","manifestrequestcomplete","manifestparsestart","manifestparsecomplete","playlistrequeststart","playlistrequestcomplete","playlistparsestart","playlistparsecomplete","renditiondisabled","renditionenabled"].forEach(e
166=>{this.mainPlaylistLoader_.on(e,e=>{this.player_.trigger(y({},e))})})}handleUpdatedMediaPlaylist(e){this.useCueTags_&&this.updateAdCues_(e),this.mainSegmentLoader_.pause(),this.mainSegmentLoader_.playlist(e,this.requestOptions_),this.waitingForFastQualityPlaylistReceived_&&this.runFastQualitySwitch_(),this.updateDuration(!e.endList),!this.tech_.paused()&&(this.mainSegmentLoader_.load(),this.audioSegmentLoader_&&this.audioSegmentLoader_.load())}triggerPresenceUsage_(e,t){let r=e.mediaGroups||{},i=!0,n=Object.keys(r.AUDIO);for(let e in r.AUDIO)for(let t in r.AUDIO[e])r.AUDIO[e][t].uri||(i=!1);i&&this.tech_.trigger({type:"usage",name:"vhs-demuxed"}),Object.keys(r.SUBTITLES).length&&this.tech_.trigger({type:"usage",name:"vhs-webvtt"}),s.Playlist.isAes(t)&&this.tech_.trigger({type:"usage",name:"vhs-aes"}),n.length&&Object.keys(r.AUDIO[n[0]]).length>1&&this.tech_.trigger({type:"usage",name:"vhs-alternate-audio"}),this.useCueTags_&&this.tech_.trigger({type:"usage",name:"vhs-playlist-cue-tags"})}shouldSwitchToMedia_(e){let t=this.mainPlaylistLoader_.media()||this.mainPlaylistLoader_.pendingMedia_,r=this.tech_.currentTime(),i=this.bufferLowWaterLine(),n=this.bufferHighWaterLine();return lo({buffered:this.tech_.buffered(),currentTime:r,currentPlaylist:t,nextPlaylist:e,bufferLowWaterLine:i,bufferHighWaterLine:n,duration:this.duration(),bufferBasedABR:this.bufferBasedABR,log:this.logger_})}setupSegmentLoaderListeners_(){this.mainSegmentLoader_.on("bandwidthupdate",()=>{this.checkABR_("bandwidthupdate"),this.tech_.trigger("bandwidthupdate")}),this.mainSegmentLoader_.on("timeout",()=>{this.bufferBasedABR&&this.mainSegmentLoader_.load()}),this.bufferBasedABR||this.mainSegmentLoader_.on("progress",()=>{this.trigger("progress")}),this.mainSegmentLoader_.on("error",()=>{let e=this.mainSegmentLoader_.error();this.excludePlaylist({playlistToExclude:e.playlist,error:e})}),this.mainSegmentLoader_.on("appenderror",()=>{this.error=this.mainSegmentLoader_.error_,this.trigger("error")}),this.mainSegmentLoader_.on("syncinfoupdate",()=>{this.onSyncInfoUpdate_()}),this.mainSegmentLoader_.on("timestampoffset",()=>{this.tech_.trigger({type:"usage",name:"vhs-timestamp-offset"})}),this.audioSegmentLoader_.on("syncinfoupdate",()=>{this.onSyncInfoUpdate_()}),this.audioSegmentLoader_.on("appenderror",()=>{this.error=this.audioSegmentLoader_.error_,this.trigger("error")}),this.mainSegmentLoader_.on("ended",()=>
166{this.logger_("main segment loader ended"),this.onEndOfStream()}),this.timelineChangeController_.on("audioTimelineBehind",()=>{let e=this.audioSegmentLoader_.pendingSegment_;if(!e||!e.segment||!e.segment.syncInfo)return;let t=e.segment.syncInfo.end+.01;this.tech_.setCurrentTime(t)}),this.timelineChangeController_.on("fixBadTimelineChange",()=>{this.logger_("Fix bad timeline change. Restarting al segment loaders..."),this.mainSegmentLoader_.pause(),this.mainSegmentLoader_.resetEverything(),this.mediaTypes_.AUDIO.activePlaylistLoader&&(this.audioSegmentLoader_.pause(),this.audioSegmentLoader_.resetEverything()),this.mediaTypes_.SUBTITLES.activePlaylistLoader&&(this.subtitleSegmentLoader_.pause(),this.subtitleSegmentLoader_.resetEverything()),this.load()}),this.mainSegmentLoader_.on("earlyabort",e=>{this.bufferBasedABR||(this.delegateLoaders_("all",["abort"]),this.excludePlaylist({error:{message:"Aborted early because there isn't enough bandwidth to complete the request without rebuffering."},playlistExclusionDuration:10}))});let e=()=>{if(!this.sourceUpdater_.hasCreatedSourceBuffers())return this.tryToCreateSourceBuffers_();let e=this.getCodecsOrExclude_();e&&this.sourceUpdater_.addOrChangeSourceBuffers(e)};this.mainSegmentLoader_.on("trackinfo",e),this.audioSegmentLoader_.on("trackinfo",e),this.mainSegmentLoader_.on("fmp4",()=>{this.triggeredFmp4Usage||(this.tech_.trigger({type:"usage",name:"vhs-fmp4"}),this.triggeredFmp4Usage=!0)}),this.audioSegmentLoader_.on("fmp4",()=>{this.triggeredFmp4Usage||(this.tech_.trigger({type:"usage",name:"vhs-fmp4"}),this.triggeredFmp4Usage=!0)}),this.audioSegmentLoader_.on("ended",()=>
166{this.logger_("audioSegmentLoader ended"),this.onEndOfStream()}),["segmentselected","segmentloadstart","segmentloaded","segmentkeyloadstart","segmentkeyloadcomplete","segmentdecryptionstart","segmentdecryptioncomplete","segmenttransmuxingstart","segmenttransmuxingcomplete","segmenttransmuxingtrackinfoavailable","segmenttransmuxingtiminginfoavailable","segmentappendstart","appendsdone","bandwidthupdated","timelinechange","codecschange"].forEach(e=>{this.mainSegmentLoader_.on(e,e=>{this.player_.trigger(y({},e))}),this.audioSegmentLoader_.on(e,e=>{this.player_.trigger(y({},e))}),this.subtitleSegmentLoader_.on(e,e=>{this.player_.trigger(y({},e))})})}mediaSecondsLoaded_(){return Math.max(this.audioSegmentLoader_.mediaSecondsLoaded+this.mainSegmentLoader_.mediaSecondsLoaded)}load(){this.mainSegmentLoader_.load(),this.mediaTypes_.AUDIO.activePlaylistLoader&&this.audioSegmentLoader_.load(),this.mediaTypes_.SUBTITLES.activePlaylistLoader&&this.subtitleSegmentLoader_.load()}pause(){this.mainSegmentLoader_.pause(),this.mediaTypes_.AUDIO.activePlaylistLoader&&this.audioSegmentLoader_.pause(),this.mediaTypes_.SUBTITLES.activePlaylistLoader&&this.subtitleSegmentLoader_.pause()}fastQualityChange_(e=this.selectPlaylist()){e&&e===this.mainPlaylistLoader_.media()?this.logger_("skipping fastQualityChange because new media is same as old"):(this.switchMedia_(e,"fast-quality"),this.waitingForFastQualityPlaylistReceived_=!0)}runFastQualitySwitch_(){this.waitingForFastQualityPlaylistReceived_=!1,this.mainSegmentLoader_.pause(),this.mainSegmentLoader_.resetEverything(),this.mediaTypes_.AUDIO.activePlaylistLoader&&(this.audioSegmentLoader_.pause(),this.audioSegmentLoader_.resetEverything()),this.mediaTypes_.SUBTITLES.activePlaylistLoader&&(this.subtitleSegmentLoader_.pause(),this.subtitleSegmentLoader_.resetEverything()),this.load()}play(){if(this.setupFirstPlay())return;this.tech_.ended()&&this.tech_.setCurrentTime(0),this.hasPlayed_&&this.load();let e=this.tech_.seekable();if(this.tech_.duration()===1/0&&this.tech_.currentTime()<e.start(0))return this.tech_.setCurrentTime(e.end(e.length-1))}setupFirstPlay(){let e=this.mainPlaylistLoader_.media();if(!e||this.tech_.paused()||this.hasPlayed_)return!1;if(!e.endList||e.start){let t=this.seekable();if(!t.length)return!1;let r=t.end(0),i=r;if(e.start){let n=e.start.timeOffset;if(n<0){let a=this.mainPlaylistLoader_.main;i=Math.max(Math.min(r+s.Playlist.liveEdgeDelay(a,e)+n,r),t.start(0))}else i=Math.min(r,n)}this.trigger("firstplay"),this.tech_.setCurrentTime(i)}return this.hasPlayed_=!0,this.load(),!0}handleSourceOpen_(){if(this.tryToCreateSourceBuffers_(),this.tech_.autoplay()){let e=this.tech_.play();void 0!==e&&"function"==typeof e.then&&e.then(null,e=>{})}this.trigger("sourceopen")}handleSourceEnded_(){if(!this.inbandTextTracks_.metadataTrack_)return;let e=this.inbandTextTracks_.metadataTrack_.cues;if(!e||!e.length)return;let t=this.duration();e[e.length-1].endTime=isNaN(t)||Math.abs(t)===1/0?Number.MAX_VALUE:t}handleDurationChange_(){this.tech_.trigger("durationchange")}onEndOfStream(){let e=this.mainSegmentLoader_.ended_;if(this.mediaTypes_.AUDIO.activePlaylistLoader){let t=this.mainSegmentLoader_.getCurrentMediaInfo_();e=!t||t.hasVideo?e&&this.audioSegmentLoader_.ended_:this.audioSegmentLoader_.ended_}e&&(this.stopABRTimer_(),this.sourceUpdater_.endOfStream())}stuckAtPlaylistEnd_(e){if(!this.seekable().length)return!1;let t=this.syncController_.getExpiredTime(e,this.duration());if(null===t)return!1;let r=s.Playlist.playlistEnd(e,t),i=this.tech_.currentTime(),n=this.tech_.buffered();if(!n.length)return r-i<=aF;let a=n.end(n.length-1);return a-i<=aF&&r-a<=aF}excludePlaylist({playlistToExclude:e=this.mainPlaylistLoader_.media(),error:t={},playlistExclusionDuration:r}){let i;if(e=e||this.mainPlaylistLoader_.media(),r=r||t.playlistExclusionDuration||this.playlistExclusionDuration,!e){this.error=t,"open"!==this.mediaSource.readyState?this.trigger("error"):this.sourceUpdater_.endOfStream("network");return}e.playlistErrors_++;let n=this.mainPlaylistLoader_.main.playlists,a=n.filter(se),s=1===a.length&&a[0]===e;if(1===n.length&&r!==1/0)return aI.log.warn(`Problem encountered with playlist ${e.id}. Trying again since it is the only playlist.`),this.tech_.trigger("retryplaylist"),this.mainPlaylistLoader_.load(s);if(s){if(this.main().contentSteering){let t=this.pathwayAttribute_(e),r=1e3*this.contentSteeringController_.steeringManifest.ttl;this.contentSteeringController_.excludePathway(t),this.excludeThenChangePathway_(),setTimeout(()=>{this.contentSteeringController_.addAvailablePathway(t)},r);return}let t=!1;
166n.forEach(r=>{if(r===e)return;let i=r.excludeUntil;void 0!==i&&i!==1/0&&(t=!0,delete r.excludeUntil)}),t&&(aI.log.warn("Removing other playlists from the exclusion list because the last rendition is about to be excluded."),this.tech_.trigger("retryplaylist"))}i=e.playlistErrors_>this.maxPlaylistRetries?1/0:Date.now()+1e3*r,e.excludeUntil=i,t.reason&&(e.lastExcludeReason_=t.reason),this.tech_.trigger("excludeplaylist"),this.tech_.trigger({type:"usage",name:"vhs-rendition-excluded"});let o=this.selectPlaylist();if(!o){this.error="Playback cannot continue. No available working or supported playlists.",this.trigger("error");return}let l=t.internal?this.logger_:aI.log.warn,c=t.message?" "+t.message:"";l(`${t.internal?"Internal problem":"Problem"} encountered with playlist ${e.id}.${c} Switching to playlist ${o.id}.`),o.attributes.AUDIO!==e.attributes.AUDIO&&this.delegateLoaders_("audio",["abort","pause"]),o.attributes.SUBTITLES!==e.attributes.SUBTITLES&&this.delegateLoaders_("subtitle",["abort","pause"]),this.delegateLoaders_("main",["abort","pause"]);let u=o.targetDuration/2*1e3||5e3,d="number"==typeof o.lastRequest&&Date.now()-o.lastRequest<=u;return this.switchMedia_(o,"exclude",s||d)}pauseLoading(){this.delegateLoaders_("all",["abort","pause"]),this.stopABRTimer_()}delegateLoaders_(e,t){let r=[],i="all"===e;(i||"main"===e)&&r.push(this.mainPlaylistLoader_);let n=[];(i||"audio"===e)&&n.push("AUDIO"),(i||"subtitle"===e)&&(n.push("CLOSED-CAPTIONS"),n.push("SUBTITLES")),n.forEach(e=>{let t=this.mediaTypes_[e]&&this.mediaTypes_[e].activePlaylistLoader;t&&r.push(t)}),["main","audio","subtitle"].forEach(t=>{let i=this[`${t}SegmentLoader_`];i&&(e===t||"all"===e)&&r.push(i)}),r.forEach(e=>t.forEach(t=>{"function"==typeof e[t]&&e[t]()}))}setCurrentTime(e){let t=az(this.tech_.buffered(),e);return this.mainPlaylistLoader_&&this.mainPlaylistLoader_.media()&&this.mainPlaylistLoader_.media().segments?t&&t.length?e:void(this.mainSegmentLoader_.pause(),this.mainSegmentLoader_.resetEverything(),this.mediaTypes_.AUDIO.activePlaylistLoader&&(this.audioSegmentLoader_.pause(),this.audioSegmentLoader_.resetEverything()),this.mediaTypes_.SUBTITLES.activePlaylistLoader&&(this.subtitleSegmentLoader_.pause(),this.subtitleSegmentLoader_.resetEverything()),this.load()):0}duration(){if(!this.mainPlaylistLoader_)return 0;let e=this.mainPlaylistLoader_.media();return e?e.endList?this.mediaSource?this.mediaSource.duration:s.Playlist.duration(e):1/0:0}seekable(){return this.seekable_}getSeekableRange_(e,t){let r=e.media();if(!r)return null;let i=this.syncController_.getMediaSequenceSync(t);if(i&&i.isReliable){let e=i.start,t=i.end;if(!isFinite(e)||!isFinite(t))return null;let n=Math.max(e,t-s.Playlist.liveEdgeDelay(this.mainPlaylistLoader_.main,r));return aB([[e,n]])}let n=this.syncController_.getExpiredTime(r,this.duration());if(null===n)return null;let a=s.Playlist.seekable(r,n,s.Playlist.liveEdgeDelay(this.mainPlaylistLoader_.main,r));return a.length?a:null}computeFinalSeekable_(e,t){if(!t)return e;let r=e.start(0),i=e.end(0),n=t.start(0),a=t.end(0);return n>i||r>a?e:aB([[Math.max(r,n),Math.min(i,a)]])}onSyncInfoUpdate_(){let e;if(!this.mainPlaylistLoader_)return;let t=this.getSeekableRange_(this.mainPlaylistLoader_,"main");if(!t||this.mediaTypes_.AUDIO.activePlaylistLoader&&!(e=this.getSeekableRange_(this.mediaTypes_.AUDIO.activePlaylistLoader,"audio")))return;let r=this.seekable_;if(this.seekable_=this.computeFinalSeekable_(t,e),!this.seekable_||r&&r.length&&this.seekable_.length&&r.start(0)===this.seekable_.start(0)&&r.end(0)===this.seekable_.end(0))return;this.logger_(`seekable updated [${aV(this.seekable_)}]`);let i={seekableRanges:this.seekable_};this.trigger({type:"seekablerangeschanged",metadata:i}),this.tech_.trigger("seekablechanged")}updateDuration(e){if(this.updateDuration_&&(this.mediaSource.removeEventListener("sourceopen",this.updateDuration_),this.updateDuration_=null),"open"!==this.mediaSource.readyState){this.updateDuration_=this.updateDuration.bind(this,e),this.mediaSource.addEventListener("sourceopen",this.updateDuration_);return}if(e){let e=this.seekable();if(!e.length)return;(isNaN(this.mediaSource.duration)||this.mediaSource.duration<e.end(e.length-1))&&this.sourceUpdater_.setDuration(e.end(e.length-1));return}let t=this.tech_.buffered(),r=s.Playlist.duration(this.mainPlaylistLoader_.media());t.length>0&&(r=Math.max(r,t.end(t.length-1))),this.mediaSource.duration!==r&&this.sourceUpdater_.setDuration(r)}dispose(){this.trigger("dispose"),this.decrypter_.terminate(),this.mainPlaylistLoader_.dispose(),this.mainSegmentLoader_.dispose(),this.contentSteeringController_.dispose(),this.keyStatusMap_.clear(),this.loadOnPlay_&&this.tech_.off("play",this.loadOnPlay_),["AUDIO","SUBTITLES"].forEach(e
166=>{let t=this.mediaTypes_[e].groups;for(let e in t)t[e].forEach(e=>{e.playlistLoader&&e.playlistLoader.dispose()})}),this.audioSegmentLoader_.dispose(),this.subtitleSegmentLoader_.dispose(),this.sourceUpdater_.dispose(),this.timelineChangeController_.dispose(),this.stopABRTimer_(),this.updateDuration_&&this.mediaSource.removeEventListener("sourceopen",this.updateDuration_),this.mediaSource.removeEventListener("durationchange",this.handleDurationChange_),this.mediaSource.removeEventListener("sourceopen",this.handleSourceOpen_),this.mediaSource.removeEventListener("sourceended",this.handleSourceEnded_),this.off()}main(){return this.mainPlaylistLoader_.main}media(){return this.mainPlaylistLoader_.media()||this.initialMedia_}areMediaTypesKnown_(){let e=!!this.mediaTypes_.AUDIO.activePlaylistLoader,t=!!this.mainSegmentLoader_.getCurrentMediaInfo_(),r=!e||!!this.audioSegmentLoader_.getCurrentMediaInfo_();return!!t&&!!r}getCodecsOrExclude_(){let e,t={main:this.mainSegmentLoader_.getCurrentMediaInfo_()||{},audio:this.audioSegmentLoader_.getCurrentMediaInfo_()||{}},r=this.mainSegmentLoader_.getPendingSegmentPlaylist()||this.media();t.video=t.main;let i=sx(this.main(),r),n={},a=!!this.mediaTypes_.AUDIO.activePlaylistLoader;if(t.main.hasVideo&&(n.video=i.video||t.main.videoCodec||"avc1.4d400d"),t.main.isMuxed&&(n.video+=`,${i.audio||t.main.audioCodec||$}`),(t.main.hasAudio&&!t.main.isMuxed||t.audio.hasAudio||a)&&(n.audio=i.audio||t.main.audioCodec||t.audio.audioCodec||$,t.audio.isFmp4=t.main.hasAudio&&!t.main.isMuxed?t.main.isFmp4:t.audio.isFmp4),!n.audio&&!n.video)return void this.excludePlaylist({playlistToExclude:r,error:{message:"Could not determine codecs for playlist."},playlistExclusionDuration:1/0});let s=(e,t)=>e?U(t,this.usingManagedMediaSource_):F(t),o={};if(["video","audio"].forEach(function(r){if(n.hasOwnProperty(r)&&!s(t[r].isFmp4,n[r])){let i=t[r].isFmp4?"browser":"muxer";o[i]=o[i]||[],o[i].push(n[r]),"audio"===r&&(e=i)}}),a&&e&&r.attributes.AUDIO){let t=r.attributes.AUDIO;
166this.main().playlists.forEach(e=>{(e.attributes&&e.attributes.AUDIO)===t&&e!==r&&(e.excludeUntil=1/0)}),this.logger_(`excluding audio group ${t} as ${e} does not support codec(s): "${n.audio}"`)}if(Object.keys(o).length){let e=Object.keys(o).reduce((e,t)=>(e&&(e+=", "),e+=`${t} does not support codec(s): "${o[t].join(",")}"`),"")+".";this.excludePlaylist({playlistToExclude:r,error:{internal:!0,message:e},playlistExclusionDuration:1/0});return}if(this.sourceUpdater_.hasCreatedSourceBuffers()&&!this.sourceUpdater_.canChangeType()){let e=[];if(["video","audio"].forEach(t=>{let r=(D(this.sourceUpdater_.codecs[t]||"")[0]||{}).type,i=(D(n[t]||"")[0]||{}).type;r&&i&&r.toLowerCase()!==i.toLowerCase()&&e.push(`"${this.sourceUpdater_.codecs[t]}" -> "${n[t]}"`)}),e.length)return void this.excludePlaylist({playlistToExclude:r,error:{message:`Codec switching not supported: ${e.join(", ")}.`,internal:!0},playlistExclusionDuration:1/0})}return n}tryToCreateSourceBuffers_(){if("open"!==this.mediaSource.readyState||this.sourceUpdater_.hasCreatedSourceBuffers()||!this.areMediaTypesKnown_())return;let e=this.getCodecsOrExclude_();if(!e)return;this.sourceUpdater_.createSourceBuffers(e);let t=[e.video,e.audio].filter(Boolean).join(",");this.excludeIncompatibleVariants_(t)}excludeUnsupportedVariants_(){let e=this.main().playlists,t=[];Object.keys(e).forEach(r=>{let i=e[r];if(-1!==t.indexOf(i.id))return;t.push(i.id);let n=sx(this.main,i),a=[];!n.audio||F(n.audio)||U(n.audio,this.usingManagedMediaSource_)||a.push(`audio codec ${n.audio}`),!n.video||F(n.video)||U(n.video,this.usingManagedMediaSource_)||a.push(`video codec ${n.video}`),n.text&&"stpp.ttml.im1t"===n.text&&a.push(`text codec ${n.text}`),a.length&&(i.excludeUntil=1/0,this.logger_(`excluding ${i.id} for unsupported: ${a.join(", ")}`))})}excludeIncompatibleVariants_(e){let t=[],r=this.main().playlists,i=sb(D(e)),n=sv(i),a=i.video&&D(i.video)[0]||null,s=i.audio&&D(i.audio)[0]||null;Object.keys(r).forEach(e=>{let i=r[e];if(-1!==t.indexOf(i.id)||i.excludeUntil===1/0)return;t.push(i.id);let o=[],l=sx(this.mainPlaylistLoader_.main,i),c=sv(l);if(l.audio||l.video){if(c!==n&&o.push(`codec count "${c}" !== "${n}"`),!this.sourceUpdater_.canChangeType()){let e=l.video&&D(l.video)[0]||null,t=l.audio&&D(l.audio)[0]||null;e&&a&&e.type.toLowerCase()!==a.type.toLowerCase()&&o.push(`video codec "${e.type}" !== "${a.type}"`),t&&s&&t.type.toLowerCase()!==s.type.toLowerCase()&&o.push(`audio codec "${t.type}" !== "${s.type}"`)}o.length&&(i.excludeUntil=1/0,this.logger_(`excluding ${i.id}: ${o.join(" && ")}`))}})}updateAdCues_(e){let t=0,r=this.seekable();r.length&&(t=r.start(0)),oY(e,this.cueTagsTrack_,t)}goalBufferLength(){let e=this.tech_.currentTime(),t=sK.GOAL_BUFFER_LENGTH,r=sK.GOAL_BUFFER_LENGTH_RATE,i=Math.max(t,sK.MAX_GOAL_BUFFER_LENGTH);return Math.min(t+e*r,i)}bufferLowWaterLine(){let e=this.tech_.currentTime(),t=sK.BUFFER_LOW_WATER_LINE,r=sK.BUFFER_LOW_WATER_LINE_RATE,i=Math.max(t,sK.MAX_BUFFER_LOW_WATER_LINE),n=Math.max(t,sK.EXPERIMENTAL_MAX_BUFFER_LOW_WATER_LINE);return Math.min(t+e*r,this.bufferBasedABR?n:i)}bufferHighWaterLine(){return sK.BUFFER_HIGH_WATER_LINE}addDateRangesToTextTrack_(e){ob(this.inbandTextTracks_,"com.apple.streaming",this.tech_),(({inbandTextTracks:e,dateRanges:t})=>{let r=e.metadataTrack_;if(!r)return;let i=h.default.WebKitDataCue||h.default.VTTCue;t.forEach(e=>{for(let t of Object.keys(e)){if(oy.has(t))continue;let n=new i(e.startTime,e.endTime,"");n.id=e.id,n.type="com.apple.quicktime.HLS",n.value={key:om[t],data:e[t]},("scte35Out"===t||"scte35In"===t)&&(n.value.data=new Uint8Array(n.value.data.match(/[\da-f]{2}/gi)).buffer),r.addCue(n)}e.processDateRange()})})({inbandTextTracks:this.inbandTextTracks_,dateRanges:e})}addMetadataToTextTrack(e,t,r){let i=this.sourceUpdater_.videoBuffer?this.sourceUpdater_.videoTimestampOffset():this.sourceUpdater_.audioTimestampOffset();ob(this.inbandTextTracks_,e,this.tech_),(({inbandTextTracks:e,metadataArray:t,timestampOffset:r,videoDuration:i})=>{if(!t)return;let n=h.default.WebKitDataCue||h.default.VTTCue,a=e.metadataTrack_;
166if(!a||(t.forEach(e=>{let t=e.cueTime+r;"number"!=typeof t||h.default.isNaN(t)||t<0||!(t<1/0)||e.frames&&e.frames.length&&e.frames.forEach(e=>{let r=new n(t,t,e.value||e.url||e.data||"");r.frame=e,r.value=e,og(r),a.addCue(r)})}),!a.cues||!a.cues.length))return;let s=a.cues,o=[];for(let e=0;e<s.length;e++)s[e]&&o.push(s[e]);let l=o.reduce((e,t)=>{let r=e[t.startTime]||[];return r.push(t),e[t.startTime]=r,e},{}),c=Object.keys(l).sort((e,t)=>Number(e)-Number(t));c.forEach((e,t)=>{let r=l[e],n=isFinite(i)?i:e,a=Number(c[t+1])||n;r.forEach(e=>{e.endTime=a})})})({inbandTextTracks:this.inbandTextTracks_,metadataArray:t,timestampOffset:i,videoDuration:r})}pathwayAttribute_(e){return e.attributes["PATHWAY-ID"]||e.attributes.serviceLocation}initContentSteeringController_(){let e=this.main();if(e.contentSteering){for(let t of e.playlists)this.contentSteeringController_.addAvailablePathway(this.pathwayAttribute_(t));if(this.contentSteeringController_.assignTagProperties(e.uri,e.contentSteering),this.contentSteeringController_.queryBeforeStart)return void this.contentSteeringController_.requestSteeringManifest(!0);this.tech_.one("canplay",()=>{this.contentSteeringController_.requestSteeringManifest()})}}resetContentSteeringController_(){this.contentSteeringController_.clearAvailablePathways(),this.contentSteeringController_.dispose(),this.initContentSteeringController_()}attachContentSteeringListeners_(){this.contentSteeringController_.on("content-steering",this.excludeThenChangePathway_.bind(this)),["contentsteeringloadstart","contentsteeringloadcomplete","contentsteeringparsed"].forEach(e=>{this.contentSteeringController_.on(e,e=>{this.trigger(y({},e))})}),"dash"===this.sourceType_&&this.mainPlaylistLoader_.on("loadedplaylist",()=>{let e=this.main(),t=this.contentSteeringController_.didDASHTagChange(e.uri,e.contentSteering),r=()=>{let t=this.contentSteeringController_.getAvailablePathways(),r=[];for(let i of e.playlists){let e=i.attributes.serviceLocation;if(e&&(r.push(e),!t.has(e)))return!0}return!r.length&&!!t.size};(t||r())&&this.resetContentSteeringController_()})}excludeThenChangePathway_(){let e=this.contentSteeringController_.getPathway();if(!e)return;this.handlePathwayClones_();let t=this.main().playlists,r=new Set,i=!1;Object.keys(t).forEach(n=>{let a=t[n],s=this.pathwayAttribute_(a),o=s&&e!==s;a.excludeUntil!==1/0||"content-steering"!==a.lastExcludeReason_||o||(delete a.excludeUntil,delete a.lastExcludeReason_,i=!0);let l=!a.excludeUntil&&a.excludeUntil!==1/0;!r.has(a.id)&&o&&l&&(r.add(a.id),a.excludeUntil=1/0,a.lastExcludeReason_="content-steering",this.logger_(`excluding ${a.id} for ${a.lastExcludeReason_}`))}),"DASH"===this.contentSteeringController_.manifestType_&&Object.keys(this.mediaTypes_).forEach(t=>{let r=this.mediaTypes_[t];if(r.activePlaylistLoader){let t=r.activePlaylistLoader.media_;t&&t.attributes.serviceLocation!==e&&(i=!0)}}),i&&this.changeSegmentPathway_()}handlePathwayClones_(){let e=this.main().playlists,t=this.contentSteeringController_.currentPathwayClones,r=this.contentSteeringController_.nextPathwayClones;if(t&&t.size||r&&r.size){for(let[e,i]of t.entries())r.get(e)||(this.mainPlaylistLoader_.updateOrDeleteClone(i),this.contentSteeringController_.excludePathway(e));for(let[i,n]of r.entries()){let r=t.get(i);if(!r){e.filter(e=>
166e.attributes["PATHWAY-ID"]===n["BASE-ID"]).forEach(e=>{this.mainPlaylistLoader_.addClonePathway(n,e)}),this.contentSteeringController_.addAvailablePathway(i);continue}this.equalPathwayClones_(r,n)||(this.mainPlaylistLoader_.updateOrDeleteClone(n,!0),this.contentSteeringController_.addAvailablePathway(i))}this.contentSteeringController_.currentPathwayClones=new Map(JSON.parse(JSON.stringify([...r])))}}equalPathwayClones_(e,t){if(e["BASE-ID"]!==t["BASE-ID"]||e.ID!==t.ID||e["URI-REPLACEMENT"].HOST!==t["URI-REPLACEMENT"].HOST)return!1;let r=e["URI-REPLACEMENT"].PARAMS,i=t["URI-REPLACEMENT"].PARAMS;for(let e in r)if(r[e]!==i[e])return!1;for(let e in i)if(r[e]!==i[e])return!1;return!0}changeSegmentPathway_(){let e=this.selectPlaylist();this.pauseLoading(),"DASH"===this.contentSteeringController_.manifestType_&&this.switchMediaForDASHContentSteering_(),this.switchMedia_(e,"content-steering")}excludeNonUsablePlaylistsByKeyId_(){if(!this.mainPlaylistLoader_||!this.mainPlaylistLoader_.main)return;let e=0,t="non-usable";
166this.mainPlaylistLoader_.main.playlists.forEach(r=>{let i=this.mainPlaylistLoader_.getKeyIdSet(r);i&&i.size&&i.forEach(i=>{let n="usable",a=this.keyStatusMap_.has(i)&&this.keyStatusMap_.get(i)===n,s=r.lastExcludeReason_===t&&r.excludeUntil===1/0;a?a&&s&&(delete r.excludeUntil,delete r.lastExcludeReason_,this.logger_(`enabling playlist ${r.id} because key ID ${i} is ${n}`)):(r.excludeUntil!==1/0&&r.lastExcludeReason_!==t&&(r.excludeUntil=1/0,r.lastExcludeReason_=t,this.logger_(`excluding playlist ${r.id} because the key ID ${i} doesn't exist in the keyStatusMap or is not ${n}`)),e++)})}),e>=this.mainPlaylistLoader_.main.playlists.length&&this.mainPlaylistLoader_.main.playlists.forEach(e=>{let r=e&&e.attributes&&e.attributes.RESOLUTION&&e.attributes.RESOLUTION.height<720,i=e.excludeUntil===1/0&&e.lastExcludeReason_===t;r&&i&&(delete e.excludeUntil,aI.log.warn(`enabling non-HD playlist ${e.id} because all playlists were excluded due to ${t} key IDs`))})}addKeyStatus_(e,t){let r=("string"==typeof e?e:Array.from(new Uint8Array(e)).map(e=>e.toString(16).padStart(2,"0")).join("")).slice(0,32).toLowerCase();this.logger_(`KeyStatus '${t}' with key ID ${r} added to the keyStatusMap`),this.keyStatusMap_.set(r,t)}updatePlaylistByKeyStatus(e,t){this.addKeyStatus_(e,t),this.waitingForFastQualityPlaylistReceived_||this.excludeNonUsableThenChangePlaylist_(),this.mainPlaylistLoader_.off("loadedplaylist",this.excludeNonUsableThenChangePlaylist_.bind(this)),this.mainPlaylistLoader_.on("loadedplaylist",this.excludeNonUsableThenChangePlaylist_.bind(this))}excludeNonUsableThenChangePlaylist_(){this.excludeNonUsablePlaylistsByKeyId_(),this.fastQualityChange_()}}class lc{constructor(e,t,r){const{playlistController_:i}=e,n=i.fastQualityChange_.bind(i);if(t.attributes){const e=t.attributes.RESOLUTION;this.width=e&&e.width,this.height=e&&e.height,this.bandwidth=t.attributes.BANDWIDTH,this.frameRate=t.attributes["FRAME-RATE"]}this.codecs=sx(i.main(),t),this.playlist=t,this.id=r,this.enabled=((e,t,r)=>i=>{let n=e.main.playlists[t],a=a9(n),s=se(n);if(void 0===i)return s;i?delete n.disabled:n.disabled=!0;let o={renditionInfo:{id:t,bandwidth:n.attributes.BANDWIDTH,resolution:n.attributes.RESOLUTION,codecs:n.attributes.CODECS},cause:"fast-quality"};return i===s||a||(i?(r(n),e.trigger({type:"renditionenabled",metadata:o})):e.trigger({type:"renditiondisabled",metadata:o})),i})(e.playlists,t.id,n)}}let lu=function(e){e.representations=()=>{let t=e.playlistController_.main(),r=sa(t)?e.playlistController_.getAudioTrackPlaylists_():t.playlists;return r?r.filter(e=>!a9(e)).map((t,r)=>new lc(e,t,t.id)):[]}},ld=["seeking","seeked","pause","playing","error"];class lp extends aI.EventTarget{constructor(e){super(),this.playlistController_=e.playlistController,this.tech_=e.tech,this.seekable=e.seekable,this.allowSeeksWithinUnsafeLiveWindow=e.allowSeeksWithinUnsafeLiveWindow,this.liveRangeSafeTimeDelta=e.liveRangeSafeTimeDelta,this.media=e.media,this.playedRanges_=[],this.consecutiveUpdates=0,this.lastRecordedTime=null,this.checkCurrentTimeTimeout_=null,this.logger_=aR("PlaybackWatcher"),this.logger_("initialize");const t=()=>this.monitorCurrentTime_(),r=()=>this.monitorCurrentTime_(),i=()=>this.techWaiting_(),n=()=>this.resetTimeUpdate_(),a=this.playlistController_,s=["main","subtitle","audio"],o={};s.forEach(e=>{o[e]={reset:()=>this.resetSegmentDownloads_(e),updateend:()=>this.checkSegmentDownloads_(e)},a[`${e}SegmentLoader_`].on("appendsdone",o[e].updateend),a[`${e}SegmentLoader_`].on("playlistupdate",o[e].reset),this.tech_.on(["seeked","seeking"],o[e].reset)});const l=e=>{["main","audio"].forEach(t=>{a[`${t}SegmentLoader_`][e]("appended",this.seekingAppendCheck_)})};this.seekingAppendCheck_=()=>{this.fixesBadSeeks_()&&(this.consecutiveUpdates=0,this.lastRecordedTime=this.tech_.currentTime(),l("off"))},this.clearSeekingAppendCheck_=()=>l("off"),this.watchForBadSeeking_=()=>{this.clearSeekingAppendCheck_(),l("on")},this.tech_.on("seeked",this.clearSeekingAppendCheck_),this.tech_.on("seeking",this.watchForBadSeeking_),this.tech_.on("waiting",i),this.tech_.on(ld,n),this.tech_.on("canplay",r),this.tech_.one("play",t),this.dispose=()=>{this.clearSeekingAppendCheck_(),this.logger_("dispose"),this.tech_.off("waiting",i),this.tech_.off(ld,n),this.tech_.off("canplay",r),this.tech_.off("play",t),this.tech_.off("seeking",this.watchForBadSeeking_),this.tech_.off("seeked",this.clearSeekingAppendCheck_),s.forEac
166h(e=>{a[`${e}SegmentLoader_`].off("appendsdone",o[e].updateend),a[`${e}SegmentLoader_`].off("playlistupdate",o[e].reset),this.tech_.off(["seeked","seeking"],o[e].reset)}),this.checkCurrentTimeTimeout_&&h.default.clearTimeout(this.checkCurrentTimeTimeout_),this.resetTimeUpdate_()}}monitorCurrentTime_(){this.checkCurrentTime_(),this.checkCurrentTimeTimeout_&&h.default.clearTimeout(this.checkCurrentTimeTimeout_),this.checkCurrentTimeTimeout_=h.default.setTimeout(this.monitorCurrentTime_.bind(this),250)}resetSegmentDownloads_(e){let t=this.playlistController_[`${e}SegmentLoader_`];this[`${e}StalledDownloads_`]>0&&this.logger_(`resetting possible stalled download count for ${e} loader`),this[`${e}StalledDownloads_`]=0,this[`${e}Buffered_`]=t.buffered_()}checkSegmentDownloads_(e){let t=this.playlistController_,r=t[`${e}SegmentLoader_`],i=r.buffered_(),n=aX(this[`${e}Buffered_`],i);if(this[`${e}Buffered_`]=i,n){t.trigger({type:"bufferedrangeschanged",metadata:{bufferedRanges:i}}),this.resetSegmentDownloads_(e);return}this[`${e}StalledDownloads_`]++,this.logger_(`found #${this[`${e}StalledDownloads_`]} ${e} appends that did not increase buffer (possible stalled download)`,{playlistId:r.playlist_&&r.playlist_.id,buffered:aG(i)}),this[`${e}StalledDownloads_`]<10||(this.logger_(`${e} loader stalled download exclusion`),this.resetSegmentDownloads_(e),this.tech_.trigger({type:"usage",name:`vhs-${e}-download-exclusion`}),"subtitle"!==e&&t.excludePlaylist({error:{message:`Excessive ${e} segment downloading detected.`},playlistExclusionDuration:1/0}))}checkCurrentTime_(){if(this.tech_.paused()||this.tech_.seeking())return;let e=this.tech_.currentTime(),t=this.tech_.buffered();if(this.lastRecordedTime===e&&(!t.length||e+aF>=t.end(t.length-1)))return this.techWaiting_();if(this.consecutiveUpdates>=5&&e===this.lastRecordedTime)this.consecutiveUpdates++,this.waiting_();else if(e===this.lastRecordedTime)this.consecutiveUpdates++;else{this.playedRanges_.push(aB([this.lastRecordedTime,e]));let t={playedRanges:this.playedRanges_};this.playlistController_.trigger({type:"playedrangeschanged",metadata:t}),this.consecutiveUpdates=0,this.lastRecordedTime=e}}resetTimeUpdate_(){this.consecutiveUpdates=0}fixesBadSeeks_(){let e;if(!this.tech_.seeking())return!1;let t=this.seekable(),r=this.tech_.currentTime();if(this.afterSeekableWindow_(t,r,this.media(),this.allowSeeksWithinUnsafeLiveWindow)&&(e=t.end(t.length-1)),this.beforeSeekableWindow_(t,r)){let r=t.start(0);e=r+(r===t.end(0)?0:aF)}if(void 0!==e)return this.logger_(`Trying to seek outside of seekable at time ${r} with seekable range ${aV(t)}. Seeking to ${e}.`),this.tech_.setCurrentTime(e),!0;let i=this.playlistController_.sourceUpdater_,n=this.tech_.buffered(),a=i.audioBuffer?i.audioBuffered():null,s=i.videoBuffer?i.videoBuffered():null,o=this.media(),l=o.partTargetDuration?o.partTargetDuration:(o.targetDuration-aU)*2,c=[a,s];for(let e=0;e<c.length;e++)if(c[e]&&aY(c[e],r)<l)return!1;let u=aq(n,r);return 0!==u.length&&(e=u.start(0)+aF,this.logger_(`Buffered region starts (${u.start(0)})  just beyond seek point (${r}). Seeking to ${e}.`),this.tech_.setCurrentTime(e),!0)}waiting_(){if(this.techWaiting_())return;let e=this.tech_.currentTime(),t=az(this.tech_.buffered(),e);if(t.length&&e+3<=t.end(0)){this.resetTimeUpdate_(),this.tech_.setCurrentTime(e),this.logger_(`Stopped at ${e} while inside a buffered region [${t.start(0)} -> ${t.end(0)}]. Attempting to resume playback by seeking to the current time.`),this.tech_.trigger({type:"usage",name:"vhs-unknown-waiting"});return}}techWaiting_(){let e=this.seekable(),t=this.tech_.currentTime();if(this.tech_.seeking())return!0;if(this.beforeSeekableWindow_(e,t)){let r=e.end(e.length-1);return this.logger_(`Fell out of live window at time ${t}. Seeking to live point (seekable end) ${r}`),this.resetTimeUpdate_(),this.tech_.setCurrentTime(r),this.tech_.trigger({type:"usage",name:"vhs-live-resync"}),!0}let r=this.tech_.vhs.playlistController_.sourceUpdater_,i=this.tech_.buffered();if(this.videoUnderflow_({audioBuffered:r.audioBuffered(),videoBuffered:r.videoBuffered(),currentTime:t}))return this.resetTimeUpdate_(),this.tech_.setCurrentTime(t),this.tech_.trigger({type:"usage",name:"vhs-video-underflow"}),!0;let n=aq(i,t);return n.length>0&&(this.logger_(`Stopped at ${t} and seeking to ${n.start(0)}`),this.resetTimeUpdate_(),this.skipTheGap_(t),!0)}afterSeekableWindow_(e,t,r,i=!1){if(!e.length)return!1;let n=e.end(e.length-1)+aF,a=!r.endList,s="number"==typeof r.partTargetDuration;return a&&(s||i)&&(n=e.end(e.length-1)+3*r.targetDuration),t>n}beforeSeekableWindow_(e,t){return!!(e.length&&e.start(0)>0&&t<e.start(0)-this.liveRangeSafeTimeDelta)}videoUnderflow_({videoBuffered:e,audioBuffered:t,currentTime:r}){let i;if(e){if(e.length&&t.length){let n=az(e,r-3),a=az(e,r),s=az(t,r);s.length&&!a.length&&n.length&&(i={start:n.end(0),end:s.end(0)})}else aq(e,r).length||(i=this.gapFromVideoUnderflow_(e,r));return!!i&&(this.logger_(`Encountered a gap in video from ${i.start} to ${i.end}. Seeking to current time ${r}`),!0)}}skipTheGap_(e){let t=this.tech_.buffered(),r=this.tech_.currentTime(),i=aq(t,r);
166if(this.resetTimeUpdate_(),0===i.length||r!==e)return;this.logger_("skipTheGap_:","currentTime:",r,"scheduled currentTime:",e,"nextRange start:",i.start(0)),this.tech_.setCurrentTime(i.start(0)+aU);let n={gapInfo:{from:r,to:i.start(0)}};this.playlistController_.trigger({type:"gapjumped",metadata:n}),this.tech_.trigger({type:"usage",name:"vhs-gap-skip"})}gapFromVideoUnderflow_(e,t){let r=aH(e);for(let e=0;e<r.length;e++){let i=r.start(e),n=r.end(e);if(t-i<4&&t-i>2)return{start:i,end:n}}return null}}let lh={errorInterval:30,getSource(e){return e(this.tech({IWillNotUseThisInPlugins:!0}).currentSource_||this.currentSource())}},lf=function(e,t){let r=0,i=0,n=aM(lh,t);e.ready(()=>{e.trigger({type:"usage",name:"vhs-error-reload-initialized"})});let a=function(){i&&e.currentTime(i)},s=function(t){null!=t&&(i=e.duration()!==1/0&&e.currentTime()||0,e.one("loadedmetadata",a),e.src(t),e.trigger({type:"usage",name:"vhs-error-reload"}),e.play())},o=function(){return Date.now()-r<1e3*n.errorInterval?void e.trigger({type:"usage",name:"vhs-error-reload-canceled"}):n.getSource&&"function"==typeof n.getSource?(r=Date.now(),n.getSource.call(e,s)):void aI.log.error("ERROR: reloadSourceOnError - The option getSource must be a function!")},l=function(){e.off("loadedmetadata",a),e.off("error",o),e.off("dispose",l)};e.on("error",o),e.on("dispose",l),e.reloadSourceOnError=function(t){l(),lf(e,t)}};var lg="3.17.3";let lm={PlaylistLoader:sI,Playlist:ss,utils:sF,STANDARD_PLAYLIST_SELECTOR:ou,INITIAL_PLAYLIST_SELECTOR:function(){let e=this.playlists.main.playlists.filter(ss.isEnabled);return oo(e,(e,t)=>ol(e,t)),e.filter(e=>!!sx(this.playlists.main,e).video)[0]||null},lastBandwidthSelector:ou,movingAverageBandwidthSelector:function(e){let t=-1,r=-1;if(e<0||e>1)throw Error("Moving average bandwidth decay must be between 0 and 1.");return function(){let i=this.useDevicePixelRatio&&h.default.devicePixelRatio||1;return isNaN(this.customPixelRatio)||(i=this.customPixelRatio),t<0&&(t=this.systemBandwidth,r=this.systemBandwidth),this.systemBandwidth>0&&this.systemBandwidth!==r&&(t=e*this.systemBandwidth+(1-e)*t,r=this.systemBandwidth),oc({main:this.playlists.main,bandwidth:t,playerWidth:parseInt(os(this.tech_.el(),"width"),10)*i,playerHeight:parseInt(os(this.tech_.el(),"height"),10)*i,playerObjectFit:this.usePlayerObjectFit?os(this.tech_.el(),"objectFit"):"",limitRenditionByPlayerDimensions:this.limitRenditionByPlayerDimensions,playlistController:this.playlistController_})}},comparePlaylistBandwidth:ol,comparePlaylistResolution:function(e,t){let r,i;return(e.attributes.RESOLUTION&&e.attributes.RESOLUTION.width&&(r=e.attributes.RESOLUTION.width),r=r||h.default.Number.MAX_VALUE,t.attributes.RESOLUTION&&t.attributes.RESOLUTION.width&&(i=t.attributes.RESOLUTION.width),r===(i=i||h.default.Number.MAX_VALUE)&&e.attributes.BANDWIDTH&&t.attributes.BANDWIDTH)?e.attributes.BANDWIDTH-t.attributes.BANDWIDTH:r-i},xhr:sj()};Object.keys(sK).forEach(e=>{Object.defineProperty(lm,e,{get:()=>(aI.log.warn(`using Vhs.${e} is UNSAFE be sure you know what you are doing`),sK[e]),set(t){(aI.log.warn(`using Vhs.${e} is UNSAFE be sure you know what you are doing`),"number"!=typeof t||t<0)?aI.log.warn(`value of Vhs.${e} must be greater than or equal to 0`):sK[e]=t}})});let ly="videojs-vhs",lb=function(e,t){let r=t.media(),i=-1;for(let t=0;t<e.length;t++)if(e[t].id===r.id){i=t;break}e.selectedIndex_=i,e.trigger({selectedIndex:i,type:"change"})},lv=function(e,t){t.representations().forEach(t=>{e.addQualityLevel(t)}),lb(e,t.playlists)};lm.canPlaySource=function(){return aI.log.warn("VHS is no longer a tech. Please remove it from your player's techOrder.")};let lx=()=>{if(!h.default.localStorage)return null;let e=h.default.localStorage.getItem(ly);if(!e)return null;try{return JSON.parse(e)}catch(e){return null}},l_=(e,t)=>{e._requestCallbackSet||(e._requestCallbackSet=new Set),e._requestCallbackSet.add(t)},lw=(e,t)=>{e._responseCallbackSet||(e._responseCallbackSet=new Set),e._responseCallbackSet.add(t)},lT=(e,t)=>{e._requestCallbackSet&&(e._requestCallbackSet.delete(t),e._requestCallbackSet.size||delete e._requestCallbackSet)},lS=(e,t)=>{e._responseCallbackSet&&(e._responseCallbackSet.delete(t),e._responseCallbackSet.size||delete e._responseCallbackSet)};lm.supportsNativeHls=function(){if(!f.default||!f.default.createElement)return!1;let e=f.default.createElement("video");return!!aI.getTech("Html5").isSupported()&&["application/vnd.apple.mpegurl","audio/mpegurl","audio/x-mpegurl","application/x-mpegurl","video/x-mpegurl","video/mpegurl","application/mpegurl"].some(function(t){return/maybe|probably/i.test(e.canPlayType(t))})}(),lm.supportsNativeDash=!!f.default&&!!f.default.createElement&&!!aI.getTech("Html5").isSupported()&&/maybe|probably/i.test(f.default.createElement("video").canPlayType("application/d
166ash+xml")),lm.supportsTypeNatively=e=>"hls"===e?lm.supportsNativeHls:"dash"===e&&lm.supportsNativeDash,lm.isSupported=function(){return aI.log.warn("VHS is no longer a tech. Please remove it from your player's techOrder.")},lm.xhr.onRequest=function(e){l_(lm.xhr,e)},lm.xhr.onResponse=function(e){lw(lm.xhr,e)},lm.xhr.offRequest=function(e){lT(lm.xhr,e)},lm.xhr.offResponse=function(e){lS(lm.xhr,e)};let lC=aI.getComponent("Component");class lE extends lC{constructor(e,t,r){if(super(t,r.vhs),"number"==typeof r.initialBandwidth&&(this.options_.bandwidth=r.initialBandwidth),this.logger_=aR("VhsHandler"),t.options_&&t.options_.playerId){const e=aI.getPlayer(t.options_.playerId);this.player_=e}if(this.tech_=t,this.source_=e,this.stats={},this.ignoreNextSeekingEvent_=!1,this.setOptions_(),this.options_.overrideNative&&t.overrideNativeAudioTracks&&t.overrideNativeVideoTracks)t.overrideNativeAudioTracks(!0),t.overrideNativeVideoTracks(!0);else if(this.options_.overrideNative&&(t.featuresNativeVideoTracks||t.featuresNativeAudioTracks))throw Error("Overriding native VHS requires emulated tracks. See https://git.io/vMpjB");this.on(f.default,["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"],e=>{let t=f.default.fullscreenElement||f.default.webkitFullscreenElement||f.default.mozFullScreenElement||f.default.msFullscreenElement;t&&t.contains(this.tech_.el())?this.playlistController_.fastQualityChange_():this.playlistController_.checkABR_()}),this.on(this.tech_,"seeking",function(){if(this.ignoreNextSeekingEvent_){this.ignoreNextSeekingEvent_=!1;return}this.setCurrentTime(this.tech_.currentTime())}),this.on(this.tech_,"error",function(){this.tech_.error()&&this.playlistController_&&this.playlistController_.pauseLoading()}),this.on(this.tech_,"play",this.play)}setOptions_(e={}){if(this.options_=aM(this.options_,e),this.options_.withCredentials=this.options_.withCredentials||!1,this.options_.limitRenditionByPlayerDimensions=!1!==this.options_.limitRenditionByPlayerDimensions,this.options_.useDevicePixelRatio=this.options_.useDevicePixelRatio||!1,this.options_.usePlayerObjectFit=this.options_.usePlayerObjectFit||!1,this.options_.useBandwidthFromLocalStorage=void 0!==this.source_.useBandwidthFromLocalStorage?this.source_.useBandwidthFromLocalStorage:this.options_.useBandwidthFromLocalStorage||!1,this.options_.useForcedSubtitles=this.options_.useForcedSubtitles||!1,this.options_.useNetworkInformationApi=void 0===this.options_.useNetworkInformationApi||this.options_.useNetworkInformationApi,this.options_.useDtsForTimestampOffset=this.options_.useDtsForTimestampOffset||!1,this.options_.customTagParsers=this.options_.customTagParsers||[],this.options_.customTagMappers=this.options_.customTagMappers||[],this.options_.cacheEncryptionKeys=this.options_.cacheEncryptionKeys||!1,this.options_.llhls=!1!==this.options_.llhls,this.options_.bufferBasedABR=this.options_.bufferBasedABR||!1,"number"!=typeof this.options_.playlistExclusionDuration&&(this.options_.playlistExclusionDuration=60),"number"!=typeof this.options_.bandwidth&&this.options_.useBandwidthFromLocalStorage){let e=lx();e&&e.bandwidth&&(this.options_.bandwidth=e.bandwidth,this.tech_.trigger({type:"usage",name:"vhs-bandwidth-from-local-storage"})),e&&e.throughput&&(this.options_.throughput=e.throughput,this.tech_.trigger({type:"usage",name:"vhs-throughput-from-local-storage"}))}"number"!=typeof this.options_.bandwidth&&(this.options_.bandwidth=sK.INITIAL_BANDWIDTH),this.options_.enableLowInitialPlaylist=this.options_.enableLowInitialPlaylist&&this.options_.bandwidth===sK.INITIAL_BANDWIDTH,["withCredentials","useDevicePixelRatio","usePlayerObjectFit","customPixelRatio","limitRenditionByPlayerDimensions","bandwidth","customTagParsers","customTagMappers","cacheEncryptionKeys","playlistSelector","initialPlaylistSelector","bufferBasedABR","liveRangeSafeTimeDelta","llhls","useForcedSubtitles","useNetworkInformationApi","useDtsForTimestampOffset","exactManifestTimings","leastPixelDiffSelector"].forEach(e=>{void 0!==this.source_[e]&&(this.options_[e]=this.source_[e])}),this.limitRenditionByPlayerDimensions=this.options_.limitRenditionByPlayerDimensions,this.useDevicePixelRatio=this.options_.useDevicePixelRatio,this.usePlayerObjectFit=this.options_.usePlayerObjectFit;let t=this.options_.customPixelRatio;"number"==typeof t&&t>=0&&(this.customPixelRatio=t)}setOptions(e={}){this.setOptions_(e)}src(e,t){var r;if(!e)return;this.setOptions_(),this.options_.src=0===(r=this.source_.src).toLowerCase().indexOf("data:application/vnd.videojs.vhs+json,")?JSON.parse(r.substring(r.indexOf(",")+1)):r,this.options_.tech=this.tech_,this.options_.externVhs=lm,this.options_.sourceType=H(t),this.options_.seekTo=e=>{this.tech_.setCurrentTime(e)},this.options_.player_=this.player_,this.playlistController_=new ll(this.options_);let i=aM({liveRangeSafeTimeDelta:aF},this.options_,{seekable:()=>this.seekable(),media:()=>this.playlistController_.media(),playlistController:this.playlistController_});this.playbackWatcher_=new lp(i),this.attachStreamingEventListeners_(),this.playlistController_.on("error",()=>{let e=aI.players[this.tech_.options_.playerId],t=this.playlistController_.error;"object"!=typeof t||t.code?"string"==typeof t&&(t={message:t,code:3}):t.code=3,e.error(t)});let n=this.options_.bufferBasedABR?lm.movingAverageBandwidthSelector(.55):lm.STANDARD_PLAYLIST_SELECTOR;this.playlistController_.selectPlaylist=this.selectPlaylist?this.selectPlaylist.bind(this):n.bind(this),this.playlistController_.selectInitialPlaylist=lm.INITIAL_PLAYLIST_SELECTOR.bind(this),this.playlists=this.playlistController_.mainPlaylistLoader_,this.mediaSource=this.playlistController_.mediaSource,Object.defineProperties(this,{selectPlaylist:{get(){return this.playlistController_.selectPlaylist},set(e){this.playlistController_.selectPlaylist=e.bind(this)}},throughput:{get(){return this.playlistController_.mainSegmentLoader_.throughput.rate},set(e){this.playlistController_.mainSegmentLoader_.throughput.rate=e,this.playlistController_.mainSegmentLoader_.throughput.count=1}},bandwidth:{get(){let e=this.playlistController_.mainSegmentLoader_.bandwidth,t=h.default.navigator.connection||h.default.navigator.mozConnection||h.default.navigator.webkitConnection;if(this.options_.useNetworkInformationApi&&t){let r=1e3*t.downlink*1e3;e=r>=1e7&&e>=1e7?Math.max(e,r):r}return e},set(e){this.playlistController_.mainSegmentLoader_.bandwidth=e,this.playlistController_.mainSegmentLoader_.throughput={rate:0,count:0}}},systemBandwidth:{get(){return Math.floor(1/(1/(this.bandwidth||1)+(this.throughput>0?1/this.throughput:0)))},set(){aI.log.error('The "systemBandwidth" property is read-only')}}}),this.options_.bandwidth&&(this.bandwidth=this.options_.bandwidth),this.options_.throughput&&(this.throughput=this.options_.throughput),Object.defineProperties(this.stats,{bandwidth:{get:()=>this.bandwidth||0,enumerable:!0},mediaRequests:{get:()=>this.playlistController_.mediaRequests_()||0,enumerable:!0},mediaRequestsAborted:{get:()=>this.playlistController_.mediaRequestsAborted_()||0,enumerable:!0},mediaRequestsTimedout:{get:()=>this.playlistController_.mediaRequestsTimedout_()||0,enumerable:!0},mediaRequestsErrored:{get:()=>this.playlistController_.mediaRequestsErrored_()||0,enumerable:!0},mediaTransferDuration:{get:()=>this.playlistController_.mediaTransferDuration_()||0,enumerable:!0},mediaBytesTransferred:{get:()=>this.playlistController_.mediaBytesTransferred_()||0,enumerable:!0},mediaSecondsLoaded:{get:()=>this.playlistController_.mediaSecondsLoaded_()||0,enumerable:!0},mediaAppends:{get:()=>this.playlistController_.mediaAppends_()||0,enumerable:!0},mainAppendsToLoadedData:{get:()=>this.playlistController_.mainAppendsToLoadedData_()||0,enumerable:!0},audioAppendsToLoadedData:{get:()=>this.playlistController_.audioAppendsToLoadedData_()||0,enumerable:!0},appendsToLoadedData:{get:()=>this.playlistController_.appendsToLoadedData_()||0,enumerable:!0},timeToLoadedData:{get:()=>this.playlistController_.timeToLoadedData_()||0,enumerable:!0},buffered:{get:()=>aG(this.tech_.buffered()),enumerable:!0},currentTime:{get:()=>this.tech_.currentTime(),enumerable:!0},currentSource:{get:()=>this.tech_.currentSource_,enumerable:!0},currentTech:{get:()=>this.tech_.name_,enumerable:!0},duration:{get:()=>this.tech_.duration(),enumerable:!0},main:{get:()=>this.playlists.main,enumerable:!0},playerDimensions:{get:()=>this.tech_.currentDimensions(),enumerable:!0},seekable:{get:()=>aG(this.tech_.seekable()),enumerable:!0},timestamp:{get:()=>Date.now(),enumerable:!0},videoPlaybackQuality:{get:()=>this.tech_.getVideoPlaybackQuality(),enumerable:!0}}),this.tech_.one("canplay",this.playlistController_.setupFirstPlay.bind(this.playlistController_)),this.tech_.on("bandwidthupdate",()=>{this.options_.useBandwidthFromLocalStorage&&(e=>{if(!h.default.localStorage)return;let t=lx();t=t?aM(t,e):e;try{h.default.localStorage.setItem(ly,JSON.stringify(t))}catch(e){return!1}})({bandwidth:this.bandwidth,throughput:Math.round(this.throughput)})}),this.playlistController_.on("selectedinitialmedia",()=>{lu(this)}),this.playlistController_.sourceUpdater_.on("createdsourcebuffers",()=>{this.setupEme_()}),this.on(this.playlistController_,"progress",function(){this.tech_.trigger("progress")}),this.on(this.playlistController_,"firstplay",function(){this.ignoreNextSeekingEvent_=!0}),this.setupQualityLevels_(),this.tech_.el()&&(this.mediaSourceUrl_=h.default.URL.createObjectURL(this.playlistController_.mediaSource),(aI.browser.IS_ANY_SAFARI||aI.browser.IS_IOS)&&this.options_.overrideNative&&"hls"===this.options_.sourceType&&"function"==typeof this.tech_.addSourceElement?(this.tech_.addSourceElement(this.mediaSourceUrl_),this.tech_.addSourceElement(this.source_.src)):this.tech_.src(this.mediaSourceUrl_))}createKeySessions_(){let e=this.playlistController_.mediaTypes_.AUDIO.activePlaylistLoader;this.logger_("waiting for EME key session creation"),(({player:e,sourceKeySystems:t,audioMedia:r,mainPlaylists:i})=>{let n,a;if(!e.eme.initializeMediaKeys)return Promise.resolve();let s=(n=r?i.concat([r]):i,a=Object.keys(t),n.reduce((e,t)=>
166{if(!t.contentProtection)return e;let r=a.reduce((e,r)=>{let i=t.contentProtection[r];return i&&i.pssh&&(e[r]={pssh:i.pssh}),e},{});return Object.keys(r).length&&e.push(r),e},[])),o=[],l=[];return s.forEach(t=>{l.push(new Promise((t,r)=>{e.tech_.one("keysessioncreated",t)})),o.push(new Promise((r,i)=>{e.eme.initializeMediaKeys({keySystems:t},e=>{e?i(e):r()})}))}),Promise.race([Promise.all(o),Promise.race(l)])})({player:this.player_,sourceKeySystems:this.source_.keySystems,audioMedia:e&&e.media(),mainPlaylists:this.playlists.main.playlists}).then(()=>{this.logger_("created EME key session"),this.playlistController_.sourceUpdater_.initializedEme()}).catch(e=>{this.logger_("error while creating EME key session",e),this.player_.error({message:"Failed to initialize media keys for EME",code:3})})}handleWaitingForKey_(){this.logger_("waitingforkey fired, attempting to create any new key sessions"),this.createKeySessions_()}setupEme_(){let e=this.playlistController_.mediaTypes_.AUDIO.activePlaylistLoader,t=(({player:e,sourceKeySystems:t,media:r,audioMedia:i})=>{let n=((e,t,r)=>{if(!e)return e;let i={};t&&t.attributes&&t.attributes.CODECS&&(i=sb(D(t.attributes.CODECS))),r&&r.attributes&&r.attributes.CODECS&&(i.audio=r.attributes.CODECS);let n=B(i.video),a=B(i.audio),s={};for(let r in e)s[r]={},a&&(s[r].audioContentType=a),n&&(s[r].videoContentType=n),t.contentProtection&&t.contentProtection[r]&&t.contentProtection[r].pssh&&(s[r].pssh=t.contentProtection[r].pssh),"string"==typeof e[r]&&(s[r].url=e[r]);return aM(e,s)})(t,r,i);
166return!!n&&(e.currentSource().keySystems=n,!n||!!e.eme||(aI.log.warn("DRM encrypted source cannot be decrypted without a DRM plugin"),!1))})({player:this.player_,sourceKeySystems:this.source_.keySystems,media:this.playlists.media(),audioMedia:e&&e.media()});(this.player_.tech_.on("keystatuschange",e=>{this.playlistController_.updatePlaylistByKeyStatus(e.keyId,e.status)}),this.handleWaitingForKey_=this.handleWaitingForKey_.bind(this),this.player_.tech_.on("waitingforkey",this.handleWaitingForKey_),t)?this.createKeySessions_():this.playlistController_.sourceUpdater_.initializedEme()}setupQualityLevels_(){let e=aI.players[this.tech_.options_.playerId];e&&e.qualityLevels&&!this.qualityLevels_&&(this.qualityLevels_=e.qualityLevels(),this.playlistController_.on("selectedinitialmedia",()=>{lv(this.qualityLevels_,this)}),this.playlists.on("mediachange",()=>{lb(this.qualityLevels_,this.playlists)}))}static version(){return{"@videojs/http-streaming":lg,"mux.js":"7.1.0","mpd-parser":"1.3.1","m3u8-parser":"7.2.0","aes-decrypter":"4.0.2"}}version(){return this.constructor.version()}canChangeType(){return oH.canChangeType()}play(){this.playlistController_.play()}setCurrentTime(e){this.playlistController_.setCurrentTime(e)}duration(){return this.playlistController_.duration()}seekable(){return this.playlistController_.seekable()}dispose(){this.playbackWatcher_&&this.playbackWatcher_.dispose(),this.playlistController_&&this.playlistController_.dispose(),this.qualityLevels_&&this.qualityLevels_.dispose(),this.tech_&&this.tech_.vhs&&delete this.tech_.vhs,this.mediaSourceUrl_&&h.default.URL.revokeObjectURL&&(h.default.URL.revokeObjectURL(this.mediaSourceUrl_),this.mediaSourceUrl_=null),this.tech_&&this.tech_.off("waitingforkey",this.handleWaitingForKey_),super.dispose()}convertToProgramTime(e,t){return(({playlist:e,time:t,callback:r})=>{if(!r)throw Error("getProgramTime: callback must be provided");if(!e||void 0===t)return r({message:"getProgramTime: playlist and time must be provided"});let i=((e,t)=>{let r;if(!t||!t.segments||0===t.segments.length)return null;let i=0;for(let n=0;n<t.segments.length&&!(e<=(i=(r=t.segments[n]).videoTimingInfo?r.videoTimingInfo.transmuxedPresentationEnd:i+r.duration));n++);let n=t.segments[t.segments.length-1];if(n.videoTimingInfo&&n.videoTimingInfo.transmuxedPresentationEnd<e)return null;if(e>i){if(e>i+.25*n.duration)return null;r=n}return{segment:r,estimatedStart:r.videoTimingInfo?r.videoTimingInfo.transmuxedPresentationStart:i-r.duration,type:r.videoTimingInfo?"accurate":"estimate"}})(t,e);if(!i)return r({message:"valid programTime was not found"});if("estimate"===i.type)return r({message:"Accurate programTime could not be determined. Please seek to e.seekTime and try again",seekTime:i.estimatedStart});let n={mediaSeconds:t},a=((e,t)=>{if(!t.dateTimeObject)return null;let r=t.videoTimingInfo.transmuxerPrependedSeconds,i=t.videoTimingInfo.transmuxedPresentationStart;return new Date(t.dateTimeObject.getTime()+1e3*(e-(i+r)))})(t,i.segment);return a&&(n.programDateTime=a.toISOString()),r(null,n)})({playlist:this.playlistController_.media(),time:e,callback:t})}seekToProgramTime(e,t,r=!0,i=2){return s$({programTime:e,playlist:this.playlistController_.media(),retryCount:i,pauseAfterSeek:r,seekTo:this.options_.seekTo,tech:this.options_.tech,callback:t})}setupXhrHooks_(){this.xhr.onRequest=e=>{l_(this.xhr,e)},this.xhr.onResponse=e=>{lw(this.xhr,e)},this.xhr.offRequest=e=>{lT(this.xhr,e)},this.xhr.offResponse=e=>{lS(this.xhr,e)},this.player_.trigger("xhr-hooks-ready")}attachStreamingEventListeners_(){["seekablerangeschanged","bufferedrangeschanged","contentsteeringloadstart","contentsteeringloadcomplete","contentsteeringparsed"].forEach(e=>{this.playlistController_.on(e,e=>{this.player_.trigger(y({},e))})}),["gapjumped","playedrangeschanged"].forEach(e=>{this.playbackWatcher_.on(e,e=>{this.player_.trigger(y({},e))})})}}let lk={name:"videojs-http-streaming",VERSION:lg,canHandleSource(e,t={}){let r=aM(aI.options,t);return(!!r.vhs.experimentalUseMMS||!!U("avc1.4d400d,mp4a.40.2",!1))&&lk.canPlayType(e.type,r)},handleSource:(e,t,r={})=>(t.vhs=new lE(e,t,aM(aI.options,r)),t.vhs.xhr=sj(),t.vhs.setupXhrHooks_(),t.vhs.src(e.src,e.type),t.vhs),canPlayType(e,t){let r=H(e);if(!r)return"";let i=lk.getOverrideNative(t);
166return!lm.supportsTypeNatively(r)||i?"maybe":""},getOverrideNative(e={}){let{vhs:t={}}=e,r=!(aI.browser.IS_ANY_SAFARI||aI.browser.IS_IOS),{overrideNative:i=r}=t;return i}};U("avc1.4d400d,mp4a.40.2",!0)&&aI.getTech("Html5").registerSourceHandler(lk,0),aI.VhsHandler=lE,aI.VhsSourceHandler=lk,aI.Vhs=lm,aI.use||aI.registerComponent("Vhs",lm),aI.options.vhs=aI.options.vhs||{},aI.getPlugin&&aI.getPlugin("reloadSourceOnError")||aI.registerPlugin("reloadSourceOnError",function(e){lf(this,e)});var lN=e.i(866968);let lI=(0,p.default)(()=>e.A(900431).then(e=>e.WistiaPlayer),{loadableGenerated:{modules:[448936]},ssr:!1}),lA=(0,p.default)(()=>e.A(441153).then(e=>e.VimeoVideoPayer),{loadableGenerated:{modules:[212504]},ssr:!1});function lj(e,t){e&&("function"==typeof e?e(t):e.current=t)}let lP=e=>{e.setAttribute("playsinline",""),e.setAttribute("webkit-playsinline","")},lO=({options:e,forwardedRef:t,playOnReady:r,onPlay:i,onPause:n})=>{let a=(0,d.useRef)(null),s=(0,d.useRef)(i),o=(0,d.useRef)(n);return s.current=i,o.current=n,(0,d.useEffect)(()=>{let i=a.current;if(!i)return;i.replaceChildren();let n=document.createElement("video-js");n.classList.add("vjs-big-play-centered"),lP(n),i.appendChild(n);let l=aI(n,{...e,playsinline:e.playsinline??!0},()=>{l.playsinline(!0);let e=l.tech(!0)?.el();e&&lP(e),lj(t,l),r&&l.play()?.catch(()=>{})}),c=()=>s.current?.(),u=()=>o.current?.();return l.on("play",c),l.on("pause",u),()=>{l.off("play",c),l.off("pause",u),l.isDisposed()||l.dispose(),lj(t,null),i.replaceChildren()}},[]),(0,u.jsx)("div",{"data-vjs-player":!0,className:"h-full w-full",children:(0,u.jsx)("div",{ref:a,className:`!h-full !w-full ${{cover:"[&_video]:!object-cover [&_video]:!object-center [&_video-js]:!h-full [&_video-js]:!w-full [&_video]:!h-full [&_video]:!w-full",contain:"[&_video]:!object-contain [&_video]:!object-center [&_video-js]:!h-full [&_video-js]:!w-full [&_video]:!h-full [&_video]:!w-full",fill:"[&_video]:!object-fill [&_video]:!object-center [&_video-js]:!h-full [&_video-js]:!w-full [&_video]:!h-full [&_video]:!w-full",none:"[&_video]:!object-none [&_video]:!object-center [&_video-js]:!h-full [&_video-js]:!w-full [&_video]:!h-full [&_video]:!w-full"}[e.objectFit]||""}`})})},lL=e=>{let{mediaId:t,autoplay:r,muted:i,bigPlayButton:n,wistiaPopover:a,aspect:s,ref:o,roundedPlayer:l,endVideoBehavior:c,objectfit:p}=e.options,{controls:h}=e.customOptions;(0,d.useEffect)(()=>{let e;if(!r||!t)return;let i=0,n=()=>{if(o&&"object"==typeof o&&"current"in o){let t=o.current;if(t&&"function"==typeof t.play)try{"function"==typeof t.setVolume&&t.setVolume(1),"function"==typeof t.unmute&&t.unmute(),"function"==typeof t.mute&&t.mute(!1),t.play().then(()=>{}).catch(()=>{i<3&&(i++,e=setTimeout(n,1e3*i))})}catch{i<3&&(e=setTimeout(n,1e3*++i))}else i<3&&(i++,e=setTimeout(n,500))}};return e=setTimeout(n,500),()=>{e&&clearTimeout(e)}},[r,t,o]);let f=(0,d.useMemo)(()=>p||"cover",[p]),g=(0,d.useRef)(!1),m=(0,d.useCallback)(()=>{if(!g.current){g.current=!0;try{let e=document.querySelectorAll("wistia-player");if(0===e.length)return;let t=[];e.forEach(e=>{let r=e.shadowRoot;if(r){let e=r.querySelector("video"),i=r.querySelector(".w-video-wrapper");i&&"transparent"!==i.style.backgroundColor&&t.push(()=>{i.style.backgroundColor="transparent"}),e&&e.style.objectFit!==f&&t.push(()=>{e.style.cssText=`object-fit: ${f}; object-position: center; width: 100%; height: 100%;`})}else e.querySelectorAll("video").forEach(e=>{e.style.objectFit!==f&&t.push(()=>{e.style.cssText=`object-fit: ${f}; object-position: center; width: 100%; height: 100%;`})})}),t.length>0&&requestAnimationFrame(()=>{t.forEach(e=>e())})}catch{}finally{g.current=!1}}},[f]),y=(0,d.useCallback)(()=>{let e;return()=>{clearTimeout(e),e=setTimeout(m,150)}},[m]),b=(0,d.useMemo)(()=>y(),[y]);return((0,d.useEffect)(()=>{let e;if(!t)return;m();let r=[setTimeout(m,1e3),setTimeout(m,3e3)],i=new MutationObserver(t=>{t.some(e=>Array.from(e.addedNodes).some(e=>e.nodeType===Node.ELEMENT_NODE&&("VIDEO"===e.tagName||e.querySelector?.("video"))))&&(clearTimeout(e),e=setTimeout(m,100))}),n=document.querySelector('[data-component="HeroCarouselItem"]')||document.body;i.observe(n,{childList:!0,subtree:!0,attributes:!1,characterData:!1}),window.addEventListener("resize",b,{passive:!0}),window.addEventListener("orientationchange",b,{passive:!0});let a=document.querySelectorAll("wistia-player");
166return a.forEach(e=>{e.addEventListener("wistia-ready",m,{passive:!0}),e.addEventListener("wistia-statechange",m,{passive:!0})}),()=>{r.forEach(clearTimeout),clearTimeout(e),i.disconnect(),window.removeEventListener("resize",b),window.removeEventListener("orientationchange",b),a.forEach(e=>{e.removeEventListener("wistia-ready",m),e.removeEventListener("wistia-statechange",m)})}},[t,m,b]),t)?(0,u.jsx)(lI,{ref:o,mediaId:t,autoplay:r,muted:i,bigPlayButton:n,wistiaPopover:a,aspect:s,roundedPlayer:l,endVideoBehavior:c,playBarControl:!!h,settingsControl:!!h,fullscreenControl:!!h,volumeControl:!!h,playPauseControl:!!h}):null},lD=(0,d.forwardRef)((e,t)=>{let{mediaId:r,url:i,className:n,autoplay:a,muted:s,bigPlayButton:o,wistiaPopover:l,aspect:c,controls:p,roundedPlayer:h,endVideoBehavior:f,objectfit:g,youtubeURL:m,youtubeId:y,vimeoUrl:b,vimeoId:v,loop:x,startTime:_,loading:w,showYoutubeThumbnail:T,onPlay:S,onPause:C}=e||{},E=m?.trim()||y?.trim(),k=(0,d.useMemo)(()=>E?(0,lN.extractYouTubeVideoId)(E):null,[E]),[N,I]=(0,d.useState)(!T),[A,j]=(0,d.useState)(()=>k?`https://img.youtube.com/vi/${k}/maxresdefault.jpg`:void 0);(0,d.useEffect)(()=>{k?(j(`https://img.youtube.com/vi/${k}/maxresdefault.jpg`),I(!T)):(j(void 0),I(!0))},[k,T]);let P=(0,d.useCallback)(()=>{A?.includes("maxresdefault")?j(A.replace("maxresdefault","hqdefault")):j(void 0)},[A]),O=(0,d.useMemo)(()=>{let e=i?.trim();return e?{controls:p,loop:!0,autoplay:!!a,muted:s,sources:[{src:e,type:"video/mp4"}],fluid:!0,height:"100%",width:"100%",tracks:[],objectFit:g??"cover",playsinline:!0}:null},[i,p,x,s,g,a]);if(r?.trim())return(0,u.jsx)(lL,{options:{mediaId:r,className:n,autoplay:a,muted:s,bigPlayButton:o,wistiaPopover:l,aspect:c,ref:t,roundedPlayer:h,endVideoBehavior:f,objectfit:g},customOptions:{controls:p}});if(E&&k){let e=(0,lN.getYoutubeProcessedUrl)(E,a,s,x,p,_);return T&&!N&&A?(0,u.jsx)("img",{className:"h-full w-full object-cover",src:A,alt:"",loading:w??"lazy",onError:P}):(0,u.jsx)("iframe",{ref:t,className:n||"absolute inset-0 h-full w-full border-0",src:e,title:"Video",allow:"autoplay; encrypted-media; picture-in-picture;",allowFullScreen:!0,loading:w,referrerPolicy:"strict-origin-when-cross-origin"})}if(i&&O){let e=O.sources[0]?.src??i;return(0,u.jsx)(lO,{forwardedRef:t,playOnReady:!!a,onPlay:S,onPause:C,options:O},e)}let L=b?.trim()||v?.trim();return L&&(0,lN.extractVimeoVideoId)(L)?(0,u.jsx)(lA,{vimeoUrl:b,vimeoId:v,autoplay:a,loop:x,startTime:_,muted:s,controls:p,loading:w}):null});lD.displayName="VideoWrapper",e.s(["default",0,lD],815451)},551067,e=>{"use strict";var t=e.i(815451),r=e.i(843476),i=e.i(271645);(0,i.forwardRef)(({threshold:e=.1,rootMargin:n="50px",placeholder:a,preload:s=!0,...o},l)=>{let[c,u]=(0,i.useState)(!1),d=(0,i.useRef)(null);(0,i.useEffect)(()=>{let t=d.current;if(!t)return;let r=new IntersectionObserver(e=>{let[t]=e;t.isIntersecting&&(u(!0),r.disconnect())},{threshold:e,rootMargin:n});return r.observe(t),()=>{r.disconnect()}},[e,n]),(0,i.useEffect)(()=>{if(!s||c)return;let e=d.current;if(!e)return;let t=new IntersectionObserver(e=>{let[r]=e;r.isIntersecting&&(u(!0),t.disconnect())},{threshold:0,rootMargin:"200px"});return t.observe(e),()=>{t.disconnect()}},[s,c]);let p=(0,r.jsx)("div",{className:"flex items-center justify-center bg-gray-100 rounded",style:{aspectRatio:o.aspect||"16/9"},children:(0,r.jsxs)("div",{className:"text-gray-500",children:[(0,r.jsx)("svg",{className:"w-16 h-16 mx-auto mb-2",fill:"currentColor",viewBox:"0 0 20 20",children:(0,r.jsx)("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zM9.555 7.168A1 1 0 008 8v4a1 1 0 001.555.832l3-2a1 1 0 000-1.664l-3-2z",clipRule:"evenodd"})}),(0,r.jsx)("p",{className:"text-sm",children:"Video loading..."})]})});return(0,r.jsx)("div",{ref:d,className:"lazy-video-wrapper",children:c?(0,r.jsx)(t.default,{ref:l,...o}):a||p})}).displayName="LazyVideoWrapper",e.s([],551067)},934712,e=>{"use strict";var t=e.i(843476),r=e.i(271645),i=e.i(211418),n=e.i(84853),a=e.i(310099),s=e.i(136905),o=e.i(207857),l=e.i(841428);e.i(551067);var c=e.i(815451),u=e.i(866968),d=e.i(133267);let p=(0,n.withStandardComponentWrapper)(e=>{let{title:i,bottomTitle:n,mediaId:p,youtubeId:f,removePaddingTop:g,removePaddingBottom:m,removePaddingLeftRight:y}
166=e?.fields||{},{RenderingIdentifier:b}=e?.params||{},{getDictionaryValue:v}=(0,a.default)(),x=p?.value?.trim()??"",_=!!x,w=f?.value?.trim()??"",T=!!(w&&(0,u.extractYouTubeVideoId)(w))&&!_,[S,C]=(0,r.useState)(null),[E,k]=(0,r.useState)(0),[N,I]=(0,r.useState)(""),A=!!g?.value,j=!!m?.value,P=!!y?.value,O=(0,r.useCallback)(()=>{let e=(0,u.extractYouTubeVideoId)(w);e&&(C({type:"youtube",youtubeId:e}),k(e=>e+1))},[w]),L=(0,r.useCallback)(()=>{x&&(C({type:"wistia",mediaId:x}),k(e=>e+1))},[x]);(0,r.useEffect)(()=>{C(null),k(0)},[w,x]),(0,r.useEffect)(()=>{if(!_||!x)return void I("");let e=`https://fast.wistia.com/embed/medias/${x}/swatch`;I(e);let t=!1;return(async()=>{try{let e=await fetch(`https://fast.wistia.com/oembed?url=https://home.wistia.com/medias/${x}&format=json`),r=await e.json();!t&&r?.thumbnail_url&&I(r.thumbnail_url)}catch{t||I(e)}})(),()=>{t=!0}},[_,x]);let D=(0,r.useCallback)(()=>{x&&I(`https://fast.wistia.com/embed/medias/${x}/swatch`)},[x]),{container:R,titleText:M,bottomTitleText:B,mediaWrapper:U,playButton:F,playIcon:$,wistiaThumbnailImage:z,videoModalRoot:q,videoModalInner:H,videoModalYoutube:W,videoModalWistia:V}=h();return(0,t.jsxs)("section",{className:R({removePaddingTop:A,removePaddingBottom:j,removePaddingLeftRight:P}),"data-component":"authorable/shared/media/videofeature",id:b,...(0,s.getTestProps)(`component-video-feature-${e?.rendering?.uid}`),children:[i?.value&&(0,t.jsx)(d.default,{className:M(),field:i,...(0,s.getTestProps)("title")}),(0,t.jsxs)("div",{className:U(),...(0,s.getTestProps)("media-wrapper"),children:[T&&(0,t.jsx)(c.default,{youtubeId:f?.value,showYoutubeThumbnail:T}),_&&(0,t.jsx)(t.Fragment,{children:(0,t.jsx)("img",{src:N||`https://fast.wistia.com/embed/medias/${x}/swatch`,alt:"",className:z(),loading:"lazy",onError:D,...(0,s.getTestProps)("wistia-thumbnail")})}),!T&&!_&&(0,t.jsx)(c.default,{youtubeId:f?.value,showYoutubeThumbnail:!1}),T&&(0,t.jsx)("button",{type:"button",className:F(),"aria-label":v("WatchVideo","Play video"),onClick:O,...(0,s.getTestProps)("play-button-overlay"),children:(0,t.jsx)(o.default,{icon:"play-control",viewBox:"0 0 44 44",size:"md",className:$()})}),_&&(0,t.jsx)("button",{type:"button",className:F(),"aria-label":v("WatchVideo","Play video"),onClick:L,...(0,s.getTestProps)("play-button-overlay"),children:(0,t.jsx)(o.default,{icon:"play-control",viewBox:"0 0 44 44",size:"md",className:$()})})]}),n?.value&&(0,t.jsx)(d.default,{className:B(),field:n,...(0,s.getTestProps)("bottomTitle")}),S&&(0,t.jsx)(l.default,{content:(0,t.jsx)("div",{className:q(),children:(0,t.jsx)("div",{className:H(),children:"youtube"===S.type?(0,t.jsx)(c.default,{youtubeId:S.youtubeId,autoplay:!0,controls:!0,className:W()},`video-feature-youtube-${S.youtubeId}-${E}`):(0,t.jsx)(c.default,{mediaId:S.mediaId,aspect:16/9,autoplay:!0,controls:!0,bigPlayButton:!0,className:V()},`video-feature-wistia-${S.mediaId}-${E}`)})}),id:`video-feature-modal-${S.type}-${"youtube"===S.type?S.youtubeId:S.mediaId}-${E}`,label:i?.value||"Video",openOnLoad:!0,size:"xLarge"},`video-feature-modal-${E}`)]})}),h=(0,i.tv)({slots:{container:["flex","w-full","flex-col","items-start","gap-spacing-spacing-16","md:gap-spacing-spacing-24","bg-component-section-bg","p-spacing-spacing-24","overflow-hidden"],titleText:["w-full","text-component-section-title","font-typography-font-family-header","font-typography-font-weight-xlarge","text-typography-font-size-xlarge","leading-typography-line-height-xlarge","md:text-typography-font-size-header-xlarge","md:leading-typography-line-height-header-xlarge"],bottomTitleText:["w-full","border-l-4","border-color-fill-brand-2","text-color-text-text-secondary","font-typography-font-family-body","text-typography-font-size-body-medium","md:text-typography-font-size-body-large","font-typography-font-weight-body-bold","leading-typography-line-height-body-medium","md:leading-typography-line-height-body-large","pl-spacing-spacing-12"],mediaWrapper:["relative","w-full","rounded-component-card-item-image-radius","overflow-hidden"],playButton:["absolute","z-20","left-1/2","top-1/2","-translate-x-1/2","-translate-y-1/2","flex","h-16","w-16","items-center","justify-center","rounded-full","border-0","shadow-lg","cursor-pointer","focus-visible:outline-none","focus-visible:ring-2","focus-visible:ring-offset-2"],playIcon:["h-[29.33px]","w-[29.33px]","md:h-11","md:w-11","m-[1.33px]","md:m-0.5"],wistiaThumbnailImage:["object-cover","w-full"],videoModalRoot:["relative","aspect-video","w-full","min-h-0","overflow-hidden","rounded-general-border-radius-label","bg-black"],videoModalInner:["absolute","
166inset-0","h-full","w-full","[&_wistia-player]:block","[&_wistia-player]:h-full","[&_wistia-player]:w-full"],videoModalYoutube:["absolute","inset-0","h-full","w-full","border-0"],videoModalWistia:["absolute","inset-0","h-full","w-full"]},variants:{removePaddingTop:{true:{container:["pt-0"]},false:{container:["pt-spacing-spacing-24"]}},removePaddingBottom:{true:{container:["pb-0"]},false:{container:["pb-spacing-spacing-24"]}},removePaddingLeftRight:{true:{container:["px-0"]},false:{container:["px-spacing-spacing-24"]}}}});e.s(["Default",0,p])},968893,e=>{"use strict";var t=e.i(271645);e.s(["useVideoWidth",0,({width:e,height:r})=>{let i=(0,t.useRef)(null),n=i.current?.clientWidth,a=e=>{let t="string"==typeof e?parseInt(e):e;return i.current?.clientWidth&&t&&t>i.current?.clientWidth?"100%":e},[s,o]=(0,t.useState)(()=>a(e)),l="100%"===s;return(0,t.useEffect)(()=>{let t=()=>{o(a(e))};return t(),window.addEventListener("resize",t),()=>window.removeEventListener("resize",t)},[e,n]),{containerRef:i,calculatedWidth:s,calculatedHeight:l?"100%":r,isFullWidth:l}}])},161025,e=>{"use strict";var t=e.i(843476),r=e.i(271645),i=e.i(211418),n=e.i(84853),a=e.i(310099),s=e.i(968893),o=e.i(783697),l=e.i(136905),c=e.i(866968),u=e.i(815451);let d=(0,i.tv)({slots:{videoWrapper:["relative","aspect-video","mx-auto","!h-auto","!w-auto"],videoIframeStyle:["mx-auto"]},variants:{isFullWidthVimeo:{true:{videoIframeStyle:["absolute","inset-0","w-full","h-full"]}}}}),p=(0,n.withStandardComponentWrapper)(e=>{let i,{height:n,width:p,mediaId:h,youtubeURL:f,youtubeId:g,youtubeAutoplay:m,youtubeHideControls:y,youtubeLoop:b,youtubeMute:v,youtubeStartTime:x,vimeoUrl:_,vimeoId:w,vimeoAutoPlay:T,vimeoHideControls:S,vimeoLoop:C,vimeoMute:E,vimeoStartTime:k}=e?.fields||{},{getDictionaryValue:N}=(0,a.default)(),I=`${p?.value}`||"auto",A=`${n?.value}`||"500",{videoWrapper:j}=d(),[P,O]=(0,r.useState)(0),L=(0,r.useRef)(null),{containerRef:D,calculatedWidth:R,calculatedHeight:M,isFullWidth:B}=(0,s.useVideoWidth)({width:I,height:A});(0,r.useEffect)(()=>{O(e=>e+1)},[h?.value,f?.value,g?.value]),(0,r.useEffect)(()=>{let e=setTimeout(()=>{D.current?.closest('[data-component="helpers/generic-wrappers/modal-wrapper"], .ReactModal__Content, [role="dialog"], .ReactModal__Overlay, [data-component*="modal"]')},2e3);return()=>clearTimeout(e)},[D]),(0,r.useEffect)(()=>{D.current?.closest('[data-component="helpers/generic-wrappers/modal-wrapper"], .ReactModal__Content, [role="dialog"], .ReactModal__Overlay, [data-component*="modal"]')&&O(e=>e+1);let e=new MutationObserver(e=>{e.forEach(e=>{if("aria-hidden"===e.attributeName){let e=D.current?.closest('[data-component="helpers/generic-wrappers/modal-wrapper"], .ReactModal__Content, [role="dialog"], .ReactModal__Overlay, [data-component*="modal"]');e&&"true"!==e.getAttribute("aria-hidden")&&O(e=>e+1)}})});return e.observe(document.body,{attributes:!0,attributeFilter:["aria-hidden"],subtree:!0}),()=>e.disconnect()},[D]);let U=(f?.value??"").trim()||(g?.value??"").trim(),F=!!(U&&(0,c.extractYouTubeVideoId)(U)),$=(h?.value??"").trim()||void 0,z=(_?.value??"").trim()||(w?.value??"").trim(),q=!!(z&&(0,c.extractVimeoVideoId)(z)),H=B?R:`${R}px`,W=B?M:`${M}px`;return i=$?(0,t.jsx)(u.default,{ref:L,mediaId:$,autoplay:!0,controls:!0,bigPlayButton:!1,roundedPlayer:0},`video-${P}`):F?(0,t.jsx)(u.default,{ref:L,autoplay:m?.value,muted:v?.value,controls:y?.value,youtubeURL:f?.value,youtubeId:g?.value,loop:b?.value,startTime:x?.value,loading:"lazy"},`video-${P}`):q?(0,t.jsx)(u.default,{ref:L,vimeoUrl:_?.value,vimeoId:w?.value,autoplay:T?.value,loop:C?.value,startTime:k?.value,muted:E?.value,controls:S?.value,loading:"lazy"},`video-${P}`):(0,t.jsx)("div",{className:"video",children:(0,t.jsx)(o.EditingHelpText,{priority:"warning",children:N("VideoUnavailable")||"No video url is present"})}),(0,t.jsx)("section",{"data-component":"authorable/shared/media/inlinevideo",ref:D,...(0,l.getTestProps)(`component-inline-video-${e?.rendering?.uid}`),children:(0,t.jsx)("div",{style:{width:H,height:W},className:j(),children:i})})});e.s(["Default",0,p])},711163,e=>{"use strict";
166var t=e.i(843476),r=e.i(211418),i=e.i(657688),n=e.i(236685),a=e.i(84853),s=e.i(506914),o=e.i(38930),l=e.i(796179),c=e.i(148263),u=e.i(828029),d=e.i(783697),p=e.i(310099),h=e.i(136905);let f=(0,a.withStandardComponentWrapper)(e=>{let{desktopImage:r,mobileImage:a,caption:f}=e?.fields||{},m=(0,c.useIsMobile)(),y=(0,u.default)(),{getDictionaryValue:b}=(0,p.default)(),{fallbackImage:v,caption:x,imageContainer:_}=g();if(y&&!r?.value?.src)return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(d.EditingHelpText,{priority:"warning",children:b("ImageUnavailable")||"Select the entire InlineImage block to edit both desktop and mobile images."}),(0,t.jsxs)("figure",{"data-component":"authorable/shared/media/inline-image",children:[(0,t.jsx)("div",{className:_(),children:(0,t.jsx)(n.Image,{editable:!0,field:r,className:v(),alt:"No image selected"})}),(0,t.jsx)("figcaption",{className:x(),children:(0,t.jsx)(s.default,{field:f})})]})]});if(!r?.value?.src)return(0,t.jsx)(t.Fragment,{});let w=a?.value?.src?a:r;if(!w?.value?.src)return(0,t.jsx)(t.Fragment,{});let T=(0,o.normalizeImageUrl)(r.value.src),S=(0,o.normalizeImageUrl)(w.value.src);if(!T||!S)return(0,t.jsx)(t.Fragment,{});let C=(0,l.isValidNextImageDomain)(T),E=(e,t)=>{let r="number"==typeof e?e:parseInt(String(e||""),10);return isNaN(r)?t:r},k={alt:"",unoptimized:!C,quality:75},{props:{srcSet:N,...I}}=(0,i.getImageProps)({...k,src:T,width:E(r.value.width,1280),height:E(r.value.height,516)}),{props:{srcSet:A}}=(0,i.getImageProps)({...k,src:S,width:E(w.value.width,600),height:E(w.value.height,400)}),j=m?w.value.alt||"":r.value.alt||"";return(0,t.jsxs)("figure",{"data-component":"authorable/shared/media/inline-image",...(0,h.getTestProps)(`component-inline-image-${e?.rendering?.uid}`),children:[(0,t.jsxs)("picture",{children:[(0,t.jsx)("source",{media:"(min-width: 768px)",srcSet:N||T,...(0,h.getTestProps)("desktop-image")}),(0,t.jsx)("source",{media:"(max-width: 767px)",srcSet:A||S,...(0,h.getTestProps)("mobile-image")}),(0,t.jsx)("img",{...I,src:T,alt:j,className:v(),...(0,h.getTestProps)("fallback-image")})]}),(0,t.jsx)("figcaption",{className:x(),children:(0,t.jsx)(s.default,{field:f,...(0,h.getTestProps)("caption")})})]})}),g=(0,r.tv)({slots:{fallbackImage:["max-w-full","h-auto","rounded-general-border-radius-image"],caption:["mt-2","text-body-small","text-color-text-text-secondary","italic"],imageContainer:["flex","flex-col","items-center"]}});e.s(["Default",0,f])},827559,e=>{"use strict";var t=e.i(843476),r=e.i(506914),i=e.i(828029),n=e.i(211418),a=e.i(783697);let s=(0,n.tv)({slots:{editingContent:["flex","flex-col","gap-2","p-4"]}});e.s(["EditingFieldValues",0,function({fields:e,hasRenderingParams:n}){let o=(0,i.default)(),{editingContent:l}=s({});return o?(0,t.jsxs)("div",{className:l(),children:[n&&(0,t.jsx)(a.EditingHelpText,{children:'See "Advanced Styling" for more options.'}),e.map(e=>(0,t.jsxs)("p",{children:[(0,t.jsxs)(a.EditingHelpText,{inline:!0,children:[e.label,":"]}),(0,t.jsx)(r.default,{field:e.field})]},e.label))]}):null}])},843371,e=>{"use strict";var t=e.i(843476),r=e.i(84853),i=e.i(211418),n=e.i(827559),a=e.i(783697),s=e.i(310099),o=e.i(828029),l=e.i(136905);let c=(0,r.withStandardComponentWrapper)(e=>{let{embedUrl:r,title:i}=e?.fields||{},{width:c,height:d,aspectRatio:p}=e?.params||{},{iframe:h,iframeWrapper:f}=u({}),{getDictionaryValue:g}=(0,s.default)(),m=(0,o.default)();if(!r?.value&&m)return(0,t.jsx)(a.EditingHelpText,{priority:"warning",children:g("EmbedURLUnavailable")||"No url available"});let y=p||!c||"100%"===c?"100%":d||"500px";return(0,t.jsxs)("section",{className:f(),"data-component":"authorable/shared/media/inlineiframe",...(0,l.getTestProps)("iframe-wrapper"),children:[(0,t.jsx)(n.EditingFieldValues,{hasRenderingParams:!0,fields:[{label:"Embed URL",field:r},{label:"Title (For Screen Readers)",field:i}]}),r?.value&&(0,t.jsx)("iframe",{className:h(),title:i?.value,src:r?.value,width:c||"100%",height:y,style:{aspectRatio:p||16/9},sandbox:"allow-same-origin allow-scripts allow-presentation",referrerPolicy:"no-referrer",...(0,l.getTestProps)("iframe")})]})}),u=(0,i.tv)({slots:{iframeWrapper:["px-2","lg:px-0","flex"],iframe:["mx-auto"]}});e.s(["Default",0,c,"default",0,c])},594171,e=>{"use strict";var t=e.i(843476),r=e.i(271645),i=e.i(211418),n=e.i(207857),a=e.i(815451),s=e.i(310099),o=e.i(136905);let l=(0,i.tv)({slots:{playButtonOverlay:["absolute","z-10","bottom-3","right-3","outline-none","opacity-0","transition-opacity","duration-200","motion-reduce:transition-none","group-hover:opacity-100","focus-visible:opacity-100","focus-visible:ring-2","focus-visible:ring-component-card-item-title","focus-visible:ring-offset-2"],playButtonIcon:["h-[29.33px]","w-[29.33px]","md:h-11","md:w-11","m-[1.33px]","md:m-0.5","cursor-pointer"]}});e.s(["default",0,e=>{let{mediaId:i,shellClassName:c,hidePlayPauseOverlay:u,autoplay:d=!1}=e,{getDictionaryValue:p}=(0,s.default)(),{playButtonOverlay:h,playButtonIcon:f}=l(),g=(0,r.useRef)(null),[m,y]=(0,r.useState)(d);(0,r.useEffect)(()=>{y(d)},[d]);let b=(0,r.useCallback)(e=>{let t=g.current;null==t||(m?(t.pause?.(),y(!1)):(t.play?.(),y(!0)),e.detail>0&&e.currentTarget.blur())},[m]);(0,r.useEffect)(()=>{let e,t,r=!1,i=()=>
166{if(r||e)return;let n=g.current;if(!n){t=setTimeout(i,50);return}let a=()=>{let e=n.paused;void 0===e||y(!("function"==typeof e?e():!!e))},s=()=>y(!0),o=()=>y(!1);n.addEventListener("play",s),n.addEventListener("pause",o),n.addEventListener("wistia-statechange",a),a(),e=()=>{n.removeEventListener("play",s),n.removeEventListener("pause",o),n.removeEventListener("wistia-statechange",a)}};return i(),()=>{r=!0,clearTimeout(t),e?.()}},[i,d]);let v=p(m?"PauseVideo":"PlayVideo",m?"Pause video":"Play video");return(0,t.jsxs)("div",{className:`${c} group`,children:[(0,t.jsx)(a.default,{ref:g,mediaId:i,controls:!1,objectfit:"cover",bigPlayButton:!1,autoplay:d,muted:d,wistiaPopover:!1,endVideoBehavior:"loop",...(0,o.getTestProps)("card-video")}),u?null:(0,t.jsx)("button",{type:"button",className:h(),onClick:b,"aria-label":v,...(0,o.getTestProps)("card-video-play-pause"),children:m?(0,t.jsx)(n.default,{icon:"pause-control",viewBox:"0 0 48 48",size:"m",className:f()}):(0,t.jsx)(n.default,{icon:"play-control",viewBox:"0 0 44 44",size:"m",className:f()})})]})}])},532786,e=>{"use strict";var t=e.i(843476),r=e.i(271645),i=e.i(211418),n=e.i(207857),a=e.i(815451),s=e.i(310099),o=e.i(136905);let l=(0,i.tv)({slots:{playButtonOverlay:["absolute","z-10","bottom-3","right-3","outline-none","opacity-0","transition-opacity","duration-200","motion-reduce:transition-none","group-hover:opacity-100","focus-visible:opacity-100","focus-visible:ring-2","focus-visible:ring-component-card-item-title","focus-visible:ring-offset-2"],playButtonIcon:["h-[29.33px]","w-[29.33px]","md:h-11","md:w-11","m-[1.33px]","md:m-0.5","cursor-pointer"]}});e.s(["default",0,e=>{let{url:i,shellClassName:c,hidePlayPauseOverlay:u,autoplay:d=!0}=e,{getDictionaryValue:p}=(0,s.default)(),{playButtonOverlay:h,playButtonIcon:f}=l(),g=(0,r.useRef)(null),[m,y]=(0,r.useState)(d);(0,r.useEffect)(()=>{y(d)},[d]),(0,r.useEffect)(()=>{let e=!1,t=0,r=()=>{if(e)return;let i=g.current;i&&"function"==typeof i.paused&&!("function"==typeof i.isDisposed&&i.isDisposed())?y(!i.paused()):++t<120&&window.setTimeout(r,50)};return r(),()=>{e=!0}},[i,d]);let b=(0,r.useCallback)(e=>{let t=g.current;null==t||(t.paused()?(t.play(),y(!0)):(t.pause(),y(!1)),e.detail>0&&e.currentTarget.blur())},[]),v=(0,r.useCallback)(()=>y(!0),[]),x=(0,r.useCallback)(()=>y(!1),[]),_=p(m?"PauseVideo":"PlayVideo",m?"Pause video":"Play video");return(0,t.jsxs)("div",{className:`${c} group [&_.vjs-big-play-button]:hidden [&_.vjs-big-play-button]:!pointer-events-none`,children:[(0,t.jsx)(a.default,{ref:g,url:i,controls:!1,objectfit:"cover",autoplay:d,muted:d,onPlay:v,onPause:x,...(0,o.getTestProps)("card-video")}),u?null:(0,t.jsx)("button",{type:"button",className:h(),onClick:b,"aria-label":_,...(0,o.getTestProps)("card-video-play-pause"),children:m?(0,t.jsx)(n.default,{icon:"pause-control",viewBox:"0 0 48 48",size:"m",className:f()}):(0,t.jsx)(n.default,{icon:"play-control",viewBox:"0 0 44 44",size:"m",className:f()})})]})}])},927696,e=>{"use strict";var t=e.i(271645),r=e.i(989970),i=e.i(883495);r.default.registerPlugin(i.ScrollTrigger),e.s(["useCardImageParallax",0,function({cardRef:e,imageRootRef:i,enabled:n,animationKey:a=""}){(0,t.useLayoutEffect)(()=>{let t,a;if(!n||window.matchMedia("(prefers-reduced-motion: reduce)").matches)return;let s=e.current;if(!s)return;let o=null,l=!1,c=0,u=n=>{l||(()=>{let n;if(l)return!1;let c=function(e){if(!e)return null;let t=e.querySelector(":scope > img")??e.querySelector("img");return t instanceof HTMLImageElement?t:null}(i.current);if(!c||!e.current)return!1;o=c,t?.revert(),t=r.default.context(()=>{r.default.set(c,{objectFit:"cover"}),n=r.default.fromTo(c,{objectPosition:"50% 28%"},{objectPosition:"50% 72%",ease:"none",scrollTrigger:{trigger:e.current,start:"top bottom",end:"bottom top",scrub:!0,invalidateOnRefresh:!0}}).scrollTrigger??void 0},s);let u=()=>{n?.refresh()};return a=()=>{u()},c.addEventListener("load",a),c.complete&&u(),!0})()||n<=0||(c=requestAnimationFrame(()=>u(n-1)))};return u(30),()=>{l=!0,cancelAnimationFrame(c),a&&o&&o.removeEventListener("load",a),t?.revert()}},[a,n])}])},1721,e=>{"use strict";var t=e.i(843476),r=e.i(271645),i=e.i(211418),n=e.i(84853),a=e.i(532786),s=e.i(594171),o=e.i(38930),l=e.i(296217),c=e.i(133267),u=e.i(389980),d=e.i(136905),p=e.i(474176),h=e.i(340189),f=e.i(422101),g=e.i(828029),m=e.i(148263),y=e.i(927696),b=e.i(706729),v=e.i(202191);let x=e=>!!(e&&e.replace(/<[^>]*>/g,"").trim()),_=e=>{let t=e?.value;return t?"string"==typeof t?t.trim():t.url?.trim()||t.href?.trim()||t.src?.trim()||"":""},w=(0,n.withStandardComponentWrapper)(e=>{let{cardImage:i,cardLink1:n,cardLink2:w,description:S,eyebrow:C,heading:E,subHeading:k,headingHtmlLevel:N,cardMediaId:I,cardEmbed:A,video:j,mobileVideo:P}=e?.fields||{},{RenderingIdentifier:O}=e?.params||{},L=e?.params?.selectTheme,D=(0,p.parseStyleParams)(e.params,["cta1","cta2"]),R=(0,g.default)(),{isAnimation:M,isAutoplay:B=!1}=e?.params||{},U=B??e.params?.IsAutoplay,F=void 0===U||""===U||"1"===U,$=(0,r.useRef)(null),z=(0,r.useRef)(null),q=(0,r.useRef)(null),{section:H,inner:W,stack:V,textBlock:G,titleStack:X,eyebrow:K,heading:Y,subheading:Q,description:J,imageSection:Z,imageFrame:ee,image:et,ctaRow:er,cta:ei}=T(),en=(0,m.useIsMobile)(),ea=(0,v.getHeadingTag)(N,R,"h2"),es=(0,f.parseLink)(n).shouldRender,eo=(0,f.parseLink)(w).shouldRender,el=R||x(C?.value),ec=R||x(E?.value),eu=R||x(k?.value),ed=R||x(S?.value),ep=ec||eu||ed,eh="string"==typeof I?.value?I.value.trim():void 0,ef=_(j),eg=_(P),em=en&&eg?eg:ef,ey=!!em,eb=!!eh,ev=eb||ey,ex=A?.value,e_=!!ex,ew=!!i?.value?.src,eT=ev||e_||ew,eS=R||es||eo,eC=R||es,eE=R||eo,ek="1"===M&&!R,eN=ek&&ew&&!ev&&!ex,eI=e?.rendering?.uid??"";return(0,y.useCardImageParallax)({cardRef:$,imageRootRef:q,enabled:eN,animationKey:eI}),(0,b.useCardItemContentReveal)({cardRef:$,contentRef:z,enabled:ek,animationKey:eI}),(0,t.jsx)(u.BrandAndThemeProvider,{theme:L,children:(0,t.jsx)("section",{ref:$,className:H(),"data-component":"authorable/shared/lists/fullvideocard",id:O,...(0,d.getTestProps)(`full-video-card-${e?.rendering?.uid}`),children:(0,t.jsx)("div",{className:W(),children:(0,t.jsxs)("div",{ref:z,className:V(),children:[el||ep?(0,t.jsxs)("header",{className:G(),children:[el?(0,t.jsx)("div",{className:"w-full","data-card-item-reveal":!0,children:(0,t.jsx)(c.default,{className:K(),field:C,...(0,d.getTestProps)("eyebrow")})}):null,ep?(0,t.jsxs)("div",{className:X(),children:[ec?(0,t.jsx)("div",{className:"w-full","data-card-item-reveal":!0,children:(0,t.jsx)(c.default,{className:Y(),field:E,...(0,d.getTestProps)("heading"),tag:ea})}):null,eu?(0,t.jsx)("div",{className:"w-full","data-card-item-reveal":!0,children:(0,t.jsx)(c.default,{className:Q(),field:k,...(0,d.getTestProps)("sub-heading")})}):null,ed?(0,t.jsx)("div",{className:"w-full","data-card-item-reveal":!0,children:(0,t.jsx)(c.default,{className:J(),field:S,...(0,d.getTestProps)("description")})}):null]}):null]}):null,eT?(0,t.jsx)("figure",{className:Z(),"data-card-item-reveal":!0,...(0,d.getTestProps)("image-section"),children:(0,t.jsx)("div",{ref:q,className:ee(),children:eb?(0,t.jsx)(s.default,{mediaId:eh,shellClassName:`${et()} overflow-hidden`,hidePlayPauseOverlay:R,autoplay:F}
166):ey?(0,t.jsx)(a.default,{url:em,shellClassName:`${et()} overflow-hidden`,hidePlayPauseOverlay:R,autoplay:F}):e_?(0,t.jsx)(c.default,{field:A,className:`${et()} overflow-hidden [&_iframe]:absolute [&_iframe]:inset-0 [&_iframe]:size-full`,...(0,d.getTestProps)("card-embed")}):(0,t.jsx)(o.default,{field:i,className:et(),fetchPriority:"high",layout:"fill",...(0,d.getTestProps)("card-image")})})}):null,eS?(0,t.jsxs)("div",{className:er(),"data-card-item-reveal":!0,...(0,d.getTestProps)("cta-row"),children:[eC?(0,t.jsx)(l.default,{ctaComponentClass:"component-card-item-button-1-color",className:ei(),ctaIcon:"arrow-right",ctaIconAlignment:"right",ctaStyle:(0,h.getCtaStyle)(D.cta1,"primary"),field:n,...(0,d.getTestProps)("card-link-1")}):null,eE?(0,t.jsx)(l.default,{ctaComponentClass:"component-card-item-button-2-color",className:ei(),ctaIcon:"arrow-right",ctaIconAlignment:"right",ctaStyle:(0,h.getCtaStyle)(D.cta2,"secondary"),field:w,...(0,d.getTestProps)("card-link-2")}):null]}):null]})})})})},!1),T=(0,i.tv)({slots:{section:["bg-component-card-item-surface","py-component-section-container-padding-y","relative","before:absolute","before:inset-0","before:left-[calc(-50vw+50%)]","before:right-[calc(-50vw+50%)]","before:bg-component-section-bg","before:-z-10","after:absolute","after:inset-0","after:left-[calc(-50vw+50%)]","after:right-[calc(-50vw+50%)]","after:bg-component-section-bg","after:-z-10"],inner:["mx-auto","w-full","max-w-7xl"],stack:["flex","flex-col","items-center","gap-spacing-spacing-24","text-center"],textBlock:["flex","w-full","max-w-full","flex-col","items-center","gap-general-spacing-eyebrow-margin-bottom","px-component-card-item-portrait-content-padding-x"],titleStack:["flex","w-full","flex-col","items-center","gap-general-spacing-title-margin-bottom"],eyebrow:["font-typography-font-family-body","text-component-card-item-eyebrow","font-typography-font-weight-body-semibold","text-typography-font-size-body-xSmall","leading-typography-line-height-body-xSmall","uppercase","w-full"],heading:["text-component-card-item-title","font-typography-font-family-header","text-typography-font-size-large","leading-typography-line-height-large","md:font-typography-font-weight-xxlarge","font-typography-font-weight-large","md:text-typography-font-size-xxlarge","md:leading-typography-line-height-xxlarge","w-full","break-words"],subheading:["text-component-card-item-subtitle","font-typography-font-family-body","text-typography-font-size-body-large","font-typography-font-weight-body-bold","leading-typography-line-height-body-large","w-full"],description:["text-component-card-item-body","font-typography-font-family-body","text-typography-font-size-body-large","font-typography-font-weight-body","leading-typography-line-height-body-large","w-full"],imageSection:["m-0","w-full","px-component-card-item-portrait-image-padding-x","pb-component-card-item-portrait-image-padding-bottom","pt-0"],imageFrame:["relative","md:aspect-[16/10] aspect-[4/5]","w-full","overflow-hidden"],image:["absolute","inset-0","size-full","object-cover","rounded-component-card-item-image-radius"],ctaRow:["flex","flex-col","items-center","justify-center","gap-spacing-spacing-8","md:flex-row","md:flex-wrap","md:justify-center","px-component-accordion-item-padding-x"],cta:["inline-flex","gap-spacing-spacing-8","items-center","justify-center","whitespace-nowrap","!w-auto"]}});e.s(["Default",0,w])},581372,e=>{"use strict";e.s(["Default",()=>v]);var t=e.i(843476),r=e.i(271645),i=e.i(211418),n=e.i(84853),a=e.i(38930),s=e.i(506914),o=e.i(207857),l=e.i(435258),c=e.i(310099),u=e.i(136905),d=e.i(841428),p=e.i(815451),h=e.i(389980),f=e.i(133267),g=e.i(455601),m=e.i(387644),y=e.i(202191),b=e.i(828029);let v=(0,n.withStandardComponentWrapper)(e=>{let{videoUrl:i,cardImage:n,description:v,eyebrow:_,heading:w,subHeading:T,descriptionMobileFontSize:S,descriptionDesktopFontSize:C,eyebrowMobileFontSize:E,eyebrowDesktopFontSize:k,headingMobileFontSize:N,headingDesktopFontSize:I,subHeadingMobileFontSize:A,subHeadingDesktopFontSize:j,headingHtmlLevel:P}=e?.fields||{},{RenderingIdentifier:O}=e?.params||{},{theme:L}=(0,r.useContext)(h.BrandAndThemeContext),{colCount:D,isHideImage:R}=(0,l.useCardListContext)(),{getDictionaryValue:M}=(0,c.default)(),[B,U]=(0,r.useState)(!1),[F,$]=(0,r.useState)(null),[z,q]=(0,r.useState)(0),[H,W]=(0,r.useState)({src:"",alt:""}),V=(0,r.useRef)(null),G=(0,r.useRef)(null),X=(0,r.useRef)(null),K=(0,r.useRef)(null),Y=e=>{let t=M("WatchVideo")||"Watch Video",r=(0,g.createCTAClickEvent)({event:"cta_click",componentName:"Video Card Item Play CTA",clickText:t,componentHeader:w?.value||_?.value||""});(0,m.sendGTMEvent)(r),$(e.currentTarget),i?.value&&(q(e=>e+1),U(!0))};(0,r.useEffect)(()=>{(async()=>
166{if(!i?.value)return;let e=await fetch(`https://fast.wistia.com/oembed?url=https://home.wistia.com/medias/${i?.value}&format=json`);if(!e.ok)return;let t=await e.json();t?.thumbnail_url&&W({src:t?.thumbnail_url,alt:w?.value||"Video"})})()},[i?.value]),(0,r.useEffect)(()=>{let e=e=>{"Escape"===e.key&&B&&(U(!1),$(null),K.current=null,q(0))};return window.addEventListener("keydown",e),()=>{window.removeEventListener("keydown",e)}},[B]),(0,r.useEffect)(()=>{B?V.current?.focus():F?.focus()},[B,F]),(0,r.useEffect)(()=>()=>{U(!1),$(null),K.current=null,q(0)},[]);let Q=i?.value,{container:J,header:Z,body:ee,contentWrapper:et,content:er,eyebrow:ei,heading:en,subheading:ea,description:es,imageWrapper:eo,modalVideoIframe:el,playButtonOverlay:ec,playButtonIcon:eu,videoLink:ed,videoPlayIcon:ep}=x({colCount:D,theme:L}),eh=(0,b.default)(),ef=(0,y.getTypographyClassName)(es,S,C),eg=(0,y.getTypographyClassName)(ei,E,k),em=(0,y.getTypographyClassName)(en,N,I),ey=(0,y.getTypographyClassName)(ea,A,j),eb=(0,y.getHeadingTag)(P,eh,"h3");return(0,t.jsxs)("div",{className:"h-full",...(0,u.getTestProps)(`component-video-card-item-${e?.rendering?.uid}`),children:[(0,t.jsxs)("article",{className:J(),"data-component":"authorable/shared/lists/carditem",id:O,...(0,u.getTestProps)(`card-item-${e?.rendering?.uid}`),children:[!R&&(0,t.jsx)("div",{className:Z(),children:(0,t.jsxs)("div",{className:"relative w-full h-full",children:[n?.value?.src?(0,t.jsx)(a.default,{field:n,className:eo(),...(0,u.getTestProps)("image")}):H?.src&&(0,t.jsx)(a.default,{field:{value:H},className:eo(),...(0,u.getTestProps)("image")}),Q&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("span",{...(0,u.getTestProps)("video-overlay")}),(0,t.jsx)("button",{className:ec(),ref:G,onClick:Y,"aria-label":`Play video: ${w?.value||"Video"}`,"aria-expanded":B,"aria-controls":`video-modal-${i?.value}-${z}`,...(0,u.getTestProps)("play-button-overlay"),children:(0,t.jsx)(o.default,{icon:"play-control",viewBox:"0 0 44 44",size:"m",className:eu()})})]})]})}),(0,t.jsx)("div",{className:ee(),children:(0,t.jsxs)("div",{className:et(),children:[(0,t.jsxs)("div",{className:er(),children:[(0,t.jsx)(f.default,{className:(ei(),eg),editable:!0,field:_,...(0,u.getTestProps)("eyebrow")}),(0,t.jsx)(f.default,{className:(en(),em),field:w,...(0,u.getTestProps)("heading"),tag:eb}),(0,t.jsx)(f.default,{className:(ea(),ey),field:T,...(0,u.getTestProps)("sub-heading")}),(0,t.jsx)(s.default,{className:(es(),ef),field:v,tag:"p",...(0,u.getTestProps)("description")})]}),Q&&(0,t.jsxs)("button",{ref:X,onClick:Y,className:ed(),type:"button","aria-label":M("WatchVideo","Watch Video"),"aria-expanded":B,"aria-controls":`video-modal-${i?.value}-${z}`,...(0,u.getTestProps)("play-cta"),children:[(0,t.jsx)("span",{children:M("WatchVideo")||"Watch Video"}),(0,t.jsx)(o.default,{icon:"video-play",size:"xs",viewBox:"0 0 18 18",className:ep()})]})]})})]}),B&&(0,t.jsx)(d.default,{content:(0,t.jsx)("div",{className:"relative w-full aspect-video",children:(0,t.jsx)(p.default,{mediaId:i?.value,className:el(),autoplay:!0,controls:!0,ref:K,aspect:16/9},`video-${i?.value}-${z}`)}),id:`video-modal-${i?.value}-${z}`,label:w?.value||"Video",openOnLoad:!0,size:"xLarge"},`modal-${z}`)]})}),x=(0,i.tv)({defaultVariants:{style:"primary",colCount:"1"},slots:{modalVideoIframe:["absolute","top-0","left-0","w-full","h-full","rounded-general-border-radius-label"],container:["flex","w-full","h-full","overflow-hidden","border","border-component-card-item-border","rounded-general-border-radius-card","bg-component-card-item-surface"],header:["relative","min-h-max","w-full","rounded-component-card-item-image-radius","text-color-fill-brand-1","transition","duration-300","ease-in-out","group","pt-component-card-item-portrait-image-padding-top","px-component-card-item-portrait-image-padding-x","pb-component-card-item-portrait-image-padding-bottom"],body:["flex","flex-col","h-full","w-full","items-center"],contentWrapper:["flex","flex-col","w-full","gap-component-video-card-portrait-content-button-margin-top","md:gap-component-video-card-landscape-content-button-margin-top","pt-component-card-item-portrait-content-padding-top","pb-component-card-item-portrait-content-padding-bottom","px-component-card-item-portrait-content-padding-x"],content:["flex","flex-col","w-full"],eyebrow:["font-typography-font-family-body","text-component-video-card-item-eyebrow","font-typography-font-weight-body-semibold","text-typography-font-size-body-xSmall","leading-typography-line-height-body-xSmall","uppercase","mb-spacing-spacing-12","md:mb-spacing-spacing-16"],heading:["text-component-video-card-item-title","text-typography-font-size-medium","font-typography-font-size-medium","font-typography-font-weight-medium","leading-typography-line-height-medium","mb-spacing-spacing-12","md:mb-spacing-spacing-16","break-words","[&>span]:bg-clip-text","[&>span]:text-transparent","[&>span]:bg-gradient-to-r","[&>span]:from-color-core-color-2-400","[&>span]:via-color-core-gradient-1-stop-2","[&>span]:to-color-core-gradient-1-stop-1","[&>span]:from-[0%]","[&>span]:via-[40%]","[&>span]:to-[100%]"],subheading:["text-component-video-card-item-subtitle","font-typography-font-family-body","text-typography-font-size-body-small","font-typography-font-weight-body-semibold","leading-typography-line-height-body-small","md:font-typography-font-family-body","md:text-typography-font-size-body-medium","md:font-typography-font-weight-body-semibold","md:leading-typography-line-height-body-medium","mb-spacing-spacing-12","md:mb-spacing-spacing-16"],description:["text-component-video-card-item-body","text-typography-font-size-body-small","font-typography-font-weight-body","leading-typography-line-height-body-small"],imageWrapper:["w-full","object-cover","rounded-component-card-item-image-radius"],playButtonOverlay:["absolute","z-10","bottom-3","right-3"],playButtonIcon:["h-[29.33px]","w-[29.33px]","md:h-11","md:w-11","m-[1.33px]","md:m-0.5","cursor-pointer"],videoLink:["flex","items-center","text-component-button-tonal-link-text","font-typography-font-family-body","text-typography-font-size-body-medium","font-typography-font-weight-button","leading-typography-line-height-body-small","p-spacing-spacing-2","gap-spacing-spacing-8","rounded-general-border-radius-none","cursor-pointer","border-b","border-b-border-width-width-025","border-transparent","focus:hover:border-transparent","transition-colors","duration-200","w-fit"],videoPlayIcon:["m-[1.67px]","h-[16.6px]","w-[16.6px]"]},variants:{theme:{ThemesDark:{videoLink:["!text-component-button-white-link-text","hover:!text-component-button-white-link-text-hover","hover:!border-component-button-white-link-border-hover","focus:!rounded-general-border-radius-button","focus:!bg-component-button-white-link-bg-focused","focus:!shadow-[0_0_0_1px_rgba(255,255,255,0.75),0_0_0_4px_var(--color-border-border-focus)]","focus:!text-component-button-white-link-text-focused","focus:hover:!text-component-button-white-link-text-focused","focus:hover:!border-transparent","disabled:!rounded-general-border-radius-button","disabled:!text-component-button-white-link-text-disabled"]},ThemesWhite:{videoLink:["!text-component-button-tonal-link-text","hover:!text-component-button-tonal-link-text-hover","hover:!border-component-button-tonal-link-border-hover","focus:!rounded-general-border-radius-button","focus:!bg-component-button-tonal-link-bg-focused","focus:!shadow-[0_0_0_1px_rgba(255,255,255,0.75),0_0_0_4px_var(--color-border-border-focus)]","focus:!text-component-button-tonal-link-text-focused","focus:hover:!text-component-button-tonal-link-text-focused","focus:hover:!border-transparent","disabled:!rounded-general-border-radius-button","disabled:!text-component-button-tonal-link-text-disabled"]}},colCount:{1:{container:["flex-col","md:flex-row","md:gap-0"],body:["flex-row","items-start","text-left","lg:pl-0","justify-center"],content:["text-left","justify-center"],contentWrapper:["text-left","!gap-component-video-card-portrait-content-button-margin-top","md:!gap-component-video-card-landscape-content-button-margin-top","sm:py-component-card-item-landscape-content-padding-y","sm:px-component-card-item-landscape-content-padding-x","lg:py-component-card-item-landscape-content-1-col-padding-y","lg:px-component-card-item-landscape-content-1-col-padding-x"],header:["sm:py-component-card-item-landscape-image-padding-y","sm:py-component-card-item-landscape-image-padding-y","sm:px-component-card-item-landscape-image-padding-x","md:!pe-0"],eyebrow:["font-typography-font-family-body","text-component-card-item-eyebrow","font-typography-font-weight-body-semibold","text-typography-font-size-body-xSmall","leading-typography-line-height-body-xSmall","md:text-typography-font-size-body-small","md:leading-typography-line-height-body-small"],description:["text-component-card-item-body","text-typography-font-size-body-small","font-typography-font-weight-body","leading-typography-line-height-body-small","md:text-typography-font-size-body-medium","md:font-typography-font-weight-body","md:leading-typography-line-height-body-medium"],imageWrapper:["aspect-[4/3]"],playButtonOverlay:["absolute","z-10","!bottom-3","!right-3"],playButtonIcon:["!h-[29.33px]","!w-[29.33px]","md:!h-11","md:!w-11","cursor-pointer"],videoLink:["flex","items-center","!text-component-button-tonal-link-text","!font-typography-font-family-body","!text-typography-font-size-body-medium","!font-typography-font-weight-button","!leading-typography-line-height-body-small","!p-spacing-spacing-2","!gap-spacing-spacing-8","!rounded-general-border-radius-none","cursor-pointer"]},2:{container:["flex-col","md:flex-row"],body:["flex-row","items-start","text-left","justify-start"],content:["text-left"],heading:["md:text-typography-font-size-small","md:font-typography-font-weight-small","md:leading-typography-line-height-small"],subheading:["md:text-typography-font-size-body-small","md:font-typography-font-weight-body-semibold","md:leading-typography-line-height-body-small"],contentWrapper:["text-left","h-full","!gap-component-video-card-portrait-content-button-margin-top","md:!gap-component-video-card-landscape-content-button-margin-top","sm:py-component-card-item-landscape-content-padding-y","sm:px-component-card-item-landscape-content-padding-x"],header:["sm:py-component-card-item-landscape-image-padding-y","sm:px-component-card-item-landscape-image-padding-x","sm:pr-0"],imageWrapper:["!aspect-square","!h-auto"],playButtonIcon:["!h-[29.33px]","!w-[29.33px]","!m-[1.33px]","cursor-pointer"]},3:{container:["flex-col"],body:["flex-col","items-start","text-left"],content:["text-left"],contentWrapper:["h-full","text-left","!gap-component-video-card-portrait-content-button-margin-top"],imageWrapper:["!aspect-video"],subheading:["md:text-typography-font-size-body-small","md:font-typography-font-weight-body-semibold","md:leading-typography-line-height-body-small"],playButtonOverlay:["absolute","z-10","!bottom-3","!right-3"],playButtonIcon:["!h-[29.33px]","!w-[29.33px]","!m-[1.33px]","cursor-pointer"]},4:{container:["flex-col"],body:["flex-col","items-center","text-left"],content:["text-left"],contentWrapper:["h-full","text-left","!gap-component-video-card-portrait-content-button-margin-top"],heading:["font-typography-font-family-header","text-typography-font-size-medium","font-typography-font-weight-medium","leading-typography-line-height-medium","md:font-typography-font-family-header","md:text-typography-font-size-small","md:font-typography-font-weight-small","md:leading-typography-line-height-small"],subheading:["md:text-typography-font-size-body-small","md:font-typography-font-weight-body-semibold","md:leading-typography-line-height-body-small"],imageWrapper:["!aspect-video"],playButtonOverlay:["absolute","z-10","!bottom-3","!right-3"],playButtonIcon:["!h-[29.33px]","!w-[29.33px]","!m-[1.33px]","cursor-pointer"]}}}})},283237,e=>{"use strict";var t=e.i(843476),r=e.i(84853),i=e.i(38930),n=e.i(296217),a=e.i(133267),s=e.i(271645),o=e.i(211418),l=e.i(340189),c=e.i(422101),u=e.i(474176),d=e.i(828029),p=e.i(927696),h=e.i(706729);function f(e){if(!e)return"none";try{return`url("${e.replace(/"/g,'\\"')}")`}catch{return"none"}}let g=(0,o.tv)({slots:{base:["relative","grid","min-h-0","w-full","gap-spacing-spacing-24","p-component-accordion-item-padding-x","rounded-border-radius-radius-5","transition-shadow transition-colors duration-200 ease-in-out","hover:bg-component-section-bg","hover:shadow-[0_20px_20px_-8px]","hover:shadow-color-black-alpha-30"],linkOverlay:["pointer-events-auto","absolute","
166inset-0","z-[1]","col-start-1","row-start-1","row-span-2","min-h-full","w-full","rounded-border-radius-radius-5","border-0","bg-transparent","p-0","shadow-none","outline-offset-2","hover:bg-transparent","hover:shadow-none","focus-visible:outline-none","focus-visible:ring-2","focus-visible:ring-color-border-border-focus","focus-visible:ring-offset-2"],topContent:["relative","z-[2]","col-start-1","row-start-1","flex","w-full","min-w-0","flex-col","gap-spacing-spacing-16","self-start"],bodyStack:["col-start-1","row-start-2","flex","w-full","min-h-0","min-w-0","flex-col","gap-spacing-spacing-24"],subgridDescription:["min-h-0","min-w-0","w-full","self-start","flex-1"],subgridCta:["w-full","self-start"],iconImage:["max-w-fit","aspect-square"],imageImage:["rounded-[16px]"],eyebrowText:["text-component-hero-eyebrow","text-typography-font-size-xsmall","font-typography-font-weight-xsmall","font-typography-font-family-body","leading-typography-line-height-xsmall","uppercase","md:tracking-[2.7px]","tracking-[2.4px]"],headingText:["text-component-section-title","text-typography-font-size-small","font-typography-font-family-header","font-typography-font-weight-small","leading-typography-line-height-small"],descriptionText:["text-component-section-subtitle","text-typography-font-size-body-medium","font-typography-font-family-body","font-typography-font-weight-body","leading-typography-line-height-body-medium"],ctaText:["max-w-fit"]},variants:{isEditing:{true:{base:["h-auto","self-start","row-span-1","grid-rows-none","max-w-columns-two-third-max-width"]},false:{base:["h-full","max-w-[800px]","grid-rows-subgrid","row-span-2"]}},gridAlignment:{Left:{base:["text-left"],topContent:["items-start"],subgridCta:["flex","justify-start"],ctaText:["self-start"]},Center:{base:["text-center"],topContent:["items-center"],subgridCta:["flex","justify-center"],ctaText:["self-center"]}},iconSize:{default:{iconImage:["h-[100px]","w-[100px]"]},large:{iconImage:["h-[250px]","w-[250px]"]}},clickable:{true:{topContent:["pointer-events-none"],bodyStack:["pointer-events-none"],subgridCta:["relative","z-[3]","pointer-events-auto"]},false:{}}},defaultVariants:{gridAlignment:"Left",iconSize:"default",clickable:!1,isEditing:!1}}),m=(0,r.withStandardComponentWrapper)(e=>{let{icon:r,image:o,eyebrow:m,heading:y,description:b,cta:v}=e?.fields||{},x="Center"===e.gridAlignment?"Center":"Left",_=e.isLargeIcon?"large":"default",w=(0,d.default)(),T=!!e.isGradient,S=!!e.isAnimation,C="image"===e.visualVariant?"image":"icon",E=!!r?.value?.src,k=!!o?.value?.src,N="image"===C?k||w:!(E||w),I=E||w,A=(0,i.normalizeImageUrl)(r?.value?.src),j=!A||A.startsWith("/")||A.startsWith("./")||!A.startsWith("http://")&&!A.startsWith("https://"),P=T&&E&&!w&&!j,O=!!(r?.value?.src||o?.value?.src)&&!(!N&&P),L=(0,s.useRef)(null),D=(0,s.useRef)(null);(0,p.useCardImageParallax)({cardRef:L,imageRootRef:D,enabled:S&&!w&&O,animationKey:e?.rendering?.uid??""}),(0,h.useCardItemContentReveal)({cardRef:L,contentRef:L,enabled:S&&!w,animationKey:e?.rendering?.uid??""});let{shouldRender:R,parsedUrl:M}=(0,c.parseLink)(v),B=!w&&R&&!!M?.href&&!!M.href.length,U=(0,u.parseStyleParams)(e.params,["cta1"]),{base:F,linkOverlay:$,topContent:z,bodyStack:q,subgridDescription:H,subgridCta:W,iconImage:V,imageImage:G,eyebrowText:X,headingText:K,descriptionText:Y,ctaText:Q}=g({gridAlignment:x,iconSize:_,clickable:B,isEditing:w}),J=P?(0,t.jsxs)("div",{className:`relative ${V()}`,children:[(0,t.jsx)(i.default,{field:r,className:"h-full w-full object-contain opacity-0"}),(0,t.jsx)("div",{className:"pointer-events-none absolute inset-0 bg-gradient-to-r from-color-core-gradient-1-stop-3 via-color-core-gradient-1-stop-2 to-color-core-gradient-1-stop-1 from-[0%] via-[80%] to-[100%] [mask-size:contain] [mask-repeat:no-repeat] [mask-position:center]",style:{WebkitMaskImage:f(A),maskImage:f(A)},"aria-hidden":!0})]}):(0,t.jsx)(i.default,{field:r,className:V()});return(0,t.jsxs)("article",{ref:L,className:`${F()}${B?" cursor-pointer":""}`,"data-component":"authorable/shared/lists/USPGridItem",children:[B?(0,t.jsx)(n.default,{field:v,ctaVariant:"custom",suppressLinkText:!0,suppressNewTabIcon:!0,className:$()}):null,(0,t.jsxs)("div",{className:z(),children:[(0,t.jsx)("div",{ref:D,className:"Center"===x?"flex w-full shrink-0 justify-center overflow-hidden":"w-full shrink-0 overflow-hidden","data-card-item-reveal":!0,children:N?(0,t.jsx)(i.default,{field:o,sizes:"(max-width: 768px) 100vw, min(50vw, 800px)",layout:"intrinsic",className:G()}):I?J:(0,t.jsx)(i.default,{field:o,layout:"responsive",className:G()})}),m?.value||w?(0,t.jsx)("div",{className:"w-full","data-card-item-reveal":!0,children:(0,t.jsx)(a.default,{field:m,className:X()})}):null,(0,t.jsx)("div",{className:"w-full","data-card-item-reveal":!0,children:(0,t.jsx)(a.default,{tag:"h3",field:y,className:K()})})]}),(0,t.jsxs)("div",{className:q(),children:[(0,t.jsx)("div",{className:H(),"data-card-item-reveal":!0,children:(0,t.jsx)(a.default,{field:b,className:Y()})}),w||R?(0,t.jsx)("div",{className:W(),"data-card-item-reveal":!0,children:(0,t.jsx)(n.default,{field:v,ctaComponentClass:"default",ctaVariant:"secondary",ctaStyle:(0,l.getCtaStyle)({...U.cta1},"secondary"),className:Q(),tabIndex:B?-1:void 0})}):null]})]})});e.s(["Default",0,m])},646991,e=>{"use strict";e.s(["Column2GridIcon",()=>h,"Column2GridImage",()=>m,"Column3GridIcon",()=>g,"Column3GridImage",()=>y,"Default",()=>f]);var t=e.i(843476),r=e.i(84853),i=e.i(133267),n=e.i(271645),a=e.i(211418),s=e.i(206303),o=e.i(389980),l=e.i(828029),c=e.i(706729),u=e.i(783697);let d=(e,r,a="icon")=>{let{DynamicPlaceholderId:d,RenderingIdentifier:h}=e?.params||{},{heading:f,subHeading:g}=e?.fields||{},{alignment:m,isLargeIcon:y,isGradient:b,isAnimation:v}=e?.params||{},x="Center"===m?"Center":"Left",_="1"===v||!0===v,w=3===r?"md:grid-cols-3":"md:grid-cols-2",{base:T,contentContainer:S,headingText:C,subHeadingText:E}=p({gridAlignment:x}),k=`uspgrid-${d}`,N=e?.params?.selectTheme,I=(0,l.default)(),A=(0,n.useRef)(null),j=(0,n.useRef)(null);return(0,c.useCardItemContentReveal)({cardRef:A,contentRef:j,enabled:_&&!I,animationKey:e?.rendering?.uid??""}),(0,t.jsx)(o.BrandAndThemeProvider,{theme:N,children:(0,t.jsxs)("section",{ref:A,id:h||e?.params?.sectionId,"data-component":"authorable/shared/lists/USPGrid",className:T(),children:[(0,t.jsxs)(u.EditingHelpText,{children:["By default, the USP Grid uses a 2-column layout with icon media. Users can select different grid layouts from the variant options."," ",(0,t.jsx)("span",{className:"text-red-600",children:"Note : Image variants do not support gradient or large icon o
166ptions."})]}),(0,t.jsxs)("div",{ref:j,className:S(),children:[(0,t.jsx)("div",{className:"w-full","data-card-item-reveal":!0,children:(0,t.jsx)(i.default,{tag:"h2",field:f,className:C()})}),(0,t.jsx)("div",{className:"w-full","data-card-item-reveal":!0,children:(0,t.jsx)(i.default,{field:g,className:E()})})]}),(0,t.jsx)(s.PlaceholderWrapper,{name:k,rendering:e?.rendering,page:e.page,gridAlignment:x,isLargeIcon:"1"===y,isGradient:"1"===b||!0===b,isAnimation:_,visualVariant:a,render:e=>(0,t.jsx)("div",{className:`grid grid-cols-1 ${w} gap-layout-base-gutter ${I?"items-start":"items-stretch"}`,children:e.map((e,r)=>(0,t.jsx)("div",{className:"contents",children:e},r))})})]})})},p=(0,a.tv)({slots:{base:["py-component-section-container-padding-y","px-component-section-container-padding-x","flex","flex-col","gap-component-section-container-gutter","relative","before:z-[-1]","before:h-full","before:absolute","before:top-0","before:left-[calc(-50vw+50%)]","before:bg-component-section-bg","before:right-[calc(-50vw+50%)]"],contentContainer:["flex","w-full","flex-col","gap-general-spacing-title-margin-bottom","max-w-columns-two-third-max-width"],headingText:["text-component-section-title","font-typography-font-family-header","md:text-typography-font-size-xlarge","text-typography-font-size-large","md:font-typography-font-weight-xlarge","font-typography-font-weight-large","md:leading-typography-line-height-xlarge","leading-typography-line-height-large"],subHeadingText:["text-component-section-body","font-typography-font-family-body","md:text-typography-font-size-body-large","text-typography-font-size-body-medium","font-typography-font-weight-body","md:leading-typography-line-height-body-large","leading-typography-line-height-body-medium"]},variants:{gridAlignment:{Left:{contentContainer:["text-left"]},Center:{contentContainer:["text-center","mx-auto"]}}},defaultVariants:{gridAlignment:"Left"}}),h=(0,r.withStandardComponentWrapper)(e=>d(e,2,"icon")),f=h,g=(0,r.withStandardComponentWrapper)(e=>d(e,3,"icon")),m=(0,r.withStandardComponentWrapper)(e=>d(e,2,"image")),y=(0,r.withStandardComponentWrapper)(e=>d(e,3,"image"))},899897,e=>{"use strict";e.s(["Default",()=>c]);var t=e.i(843476),r=e.i(271645),i=e.i(211418),n=e.i(84853),a=e.i(133267),s=e.i(153817),o=e.i(136905),l=e.i(206303);let c=(0,n.withStandardComponentWrapper)(e=>{let{content:i}=e?.fields||{},{DynamicPlaceholderId:n}=e?.params||{},{uid:c}=e?.rendering||{},d=`tab-content-${c}`,p=`tabItem-${n}`,h=(0,r.useRef)(null),{activeTab:f}=(0,s.useTab)(),g=e?.rendering?.uid===f,{base:m,contentWrapper:y,richTextWrapper:b}=u();return(0,t.jsx)("div",{"data-component":"authorable/shared/lists/Tabitem",className:m({isActive:g}),ref:h,id:d,role:"tabpanel","aria-live":"polite","aria-labelledby":`tab-content-${c}`,...(0,o.getTestProps)(`component-tab-item-${d}`),children:(0,t.jsxs)("div",{className:y(),children:[(0,t.jsx)(a.default,{field:i,className:b(),...(0,o.getTestProps)("rich-text")}),(0,t.jsx)(l.PlaceholderWrapper,{name:p,rendering:e.rendering,...(0,o.getTestProps)(`component-tab-item-${d}`),page:e.page})]})},d)}),u=(0,i.tv)({slots:{base:[],contentWrapper:["pt-margin-less","pb-margin-base"],richTextWrapper:["[&_sup]:text-[65%]","[&_sup]:top-[-0.1em]","[&_sub]:text-[65%]"]},variants:{isActive:{true:{base:["visible"]},false:{base:["hidden"]}}}})},614443,e=>{"use strict";var t=e.i(843476),r=e.i(271645),i=e.i(211418),n=e.i(389980),a=e.i(84853),s=e.i(136905),o=e.i(133267),l=e.i(202191),c=e.i(770703),u=e.i(506914);let d=(0,c.default)(()=>e.A(114925),{loadableGenerated:{modules:[921869]},ssr:!1}),p=(0,i.tv)({slots:{container:["flex","flex-col","gap-space-between-less","p-spacing-spacing-40","rounded-general-border-radius-card","xl:rounded-general-border-radius-container","border-border-width-width-025","border-component-stat-border","bg-component-stat-surface","h-full"],eyebrow:["w-full","text-component-stat-label","font-typography-font-family-body","text-typography-font-size-xsmall","font-typography-font-weight-xsmall","leading-typography-line-height-xsmall","uppercase","[&>.ck-content>p]:text-component-stat-label","[&>.ck-content>p]:font-typography-font-family-body","[&>.ck-content>p]:text-typography-font-size-xsmall","[&>.ck-content>p]:font-typography-font-weight-xsmall","[&>.ck-content>p]:leading-typography-line-height-xsmall"],numberWrapper:["w-full","text-component-stat-number","flex","flex-wrap"],number:["font-typography-font-family-header","text-typography-font-size-xlarge","font-typography-font-weight-xlarge","leading-typography-line-height-xlarge"],quantifier:["font-typography-font-family-header","text-typography-font-size-xlarge","font-typography-font-weight-xlarge","leading-typography-line-height-xlarge"],description:["w-full","text-component-stat-description","font-typography-font-family-body","text-typography-font-size-body-medium","font-typography-font-weight-body","leading-typography-line-height-body-medium","[&>.ck-content>p]:text-component-stat-description","[&>.ck-content>p]:font-typography-font-family-body","[&>.ck-content>p]:text-typography-font-size-body-medium","[&>.ck-content>p]:font-typography-font-weight-body","[&>.ck-content>p]:leading-typography-line-height-body-medium"]},variants:{theme:{ThemesBrandPrimary:{numberWrapper:["bg-clip-text","text-transparent","bg-gradient-to-r","from-color-core-color-2-400","via-color-core-gradient-1-stop-2","to-color-core-gradient-1-stop-1","from-0%","via-40%","to-100%","break-all"]},ThemesWhite:{numberWrapper:["text-component-stat-number","break-all"]}},alignment:{"default-alignment":{numberWrapper:["flex","flex-wrap","justify-start"],container:["text-left"]},"left-alignment":{numberWrapper:["flex","flex-wrap","justify-start"],container:["text-left"]},"center-alignment":{numberWrapper:["flex","justify-center"],container:["text-center"]},"title-and-text-center-alignment":{numberWrapper:["flex","flex-wrap","justify-start"],container:["text-left"]}},totalStatsCount:{2:{container:["flex","flex-col","gap-space-between-less","p-spacing-spacing-40","rounded-general-border-radius-card","border-border-width-width-025","border-component-stat-border","bg-component-stat-surface","h-full"],eyebrow:["w-full","text-component-stat-label","font-typography-font-family-body","text-typography-font-size-xsmall","font-typography-font-weight-xsmall","leading-typography-line-height-xsmall","uppercase","[&>.ck-content>p]:text-component-stat-label","[&>.ck-content>p]:font-typography-font-family-body","[&>.ck-content>p]:text-typography-font-size-xsmall","[&>.ck-content>p]:font-typography-font-weight-xsmall","[&>.ck-content>p]:leading-typography-line-height-xsmall"],numberWrapper:["w-full","text-component-stat-number"],number:["font-typography-font-family-header","text-typography-font-size-xxlarge","md:text-typography-font-size-display","font-typography-font-weight-xxlarge","md:font-typography-font-weight-display","leading-typography-line-height-xxlarge","md:leading-typography-line-height-display"],quantifier:["font-typography-font-family-header","text-typography-font-size-xxlarge","md:text-typography-font-size-display","font-typography-font-weight-xxlarge","md:font-typography-font-weight-display","leading-typography-line-height-xxlarge","md:leading-typography-line-height-display"],description:["w-full","text-component-stat-description","font-typography-font-family-body","text-typography-font-size-body-medium","md:text-typography-font-size-body-large","font-typography-font-weight-body","leading-typography-line-height-body-medium","md:leading-typography-line-height-body-large","[&>.ck-content>p]:text-component-stat-description","[&>.ck-content>p]:font-typography-font-family-body","[&>.ck-content>p]:text-typography-font-size-body-medium","[&>.ck-content>p]:font-typography-font-weight-body","[&>.ck-content>p]:leading-typography-line-height-body-medium","[&>.ck-content>p]:md:text-typography-font-size-body-large","[&>.ck-content>p]:md:leading-typography-line-height-body-large"]},3:{container:["flex","flex-col","gap-space-between-less","p-spacing-spacing-40","rounded-general-border-radius-card","border-border-width-width-025","border-component-stat-border","bg-component-stat-surface","h-full"],eyebrow:["w-full","text-component-stat-label","font-typography-font-family-body","text-typography-font-size-xsmall","font-typography-font-weight-xsmall","leading-typography-line-height-xsmall","uppercase","[&>.ck-content>p]:text-component-stat-label","[&>.ck-content>p]:font-typography-font-family-body","[&>.ck-content>p]:text-typography-font-size-xsmall","[&>.ck-content>p]:font-typography-font-weight-xsmall","[&>.ck-content>p]:leading-typography-line-height-xsmall"],numberWrapper:["w-full","text-component-stat-number","flex","flex-wrap"],number:["font-typography-font-family-header","text-typography-font-size-xxlarge","md:text-typography-font-size-display","font-typography-font-weight-xxlarge","md:font-typography-font-weight-display","leading-typography-line-height-xxlarge","md:leading-typography-line-height-display"],quantifier:["font-typography-font-family-header","text-typography-font-size-xxlarge","md:text-typography-font-size-display","font-typography-font-weight-xxlarge","md:font-typography-font-weight-display","leading-typography-line-height-xxlarge","md:leading-typography-line-height-display"],description:["w-full","text-component-stat-description","font-typography-font-family-body","text-typography-font-size-body-medium","md:text-typography-font-size-body-large","font-typography-font-weight-body","leading-typography-line-height-body-medium","md:leading-typography-line-height-body-large","[&>.ck-content>p]:text-component-stat-description","[&>.ck-content>p]:font-typography-font-family-body","[&>.ck-content>p]:text-typography-font-size-body-medium","[&>.ck-content>p]:md:text-typography-font-size-body-large","[&>.ck-content>p]:font-typography-font-weight-body","[&>.ck-content>p]:leading-typography-line-height-body-medium","[&>.ck-content>p]:md:leading-typography-line-height-body-large"]},4:{container:["flex","flex-col","gap-space-between-less","p-spacing-spacing-40","rounded-general-border-radius-card","xl:rounded-general-border-radius-container","border-border-width-width-025","border-component-stat-border","bg-component-stat-surface","h-full"],eyebrow:["w-full","text-component-stat-label","font-typography-font-family-body","text-typography-font-size-xsmall","font-typography-font-weight-xsmall","leading-typography-line-height-xsmall","uppercase","[&>.ck-content>p]:text-component-stat-label","[&>.ck-content>p]:font-typography-font-family-body","[&>.ck-content>p]:text-typography-font-size-xsmall","[&>.ck-content>p]:font-typography-font-weight-xsmall","[&>.ck-content>p]:leading-typography-line-height-xsmall"],numberWrapper:["w-full","text-component-stat-number","flex","flex-wrap"],number:["font-typography-font-family-header","text-typography-font-size-xlarge","font-typography-font-weight-xlarge","leading-typography-line-height-xlarge"],quantifier:["font-typography-font-family-header","text-typography-font-size-xlarge","font-typography-font-weight-xlarge","leading-typography-line-height-xlarge"],description:["w-full","text-component-stat-description","font-typography-font-family-body","text-typography-font-size-body-medium","font-typography-font-weight-body","leading-typography-line-height-body-medium","[&>.ck-content>p]:text-component-stat-description","[&>.ck-content>p]:font-typography-font-family-body","[&>.ck-content>p]:text-typography-font-size-body-medium","[&>.ck-content>p]:font-typography-font-weight-body","[&>.ck-content>p]:leading-typography-line-height-body-medium"]}}},defaultVariants:{totalStatsCount:2,alignment:"default-alignment"}}),h=(0,a.withStandardComponentWrapper)(e=>{let{fields:i}=e,{descriptionDesktopFontSize:a,descriptionMobileFontSize:c,eyebrowDesktopFontSize:h,eyebrowMobileFontSize:f,primaryLabelDesktopFontSize:g,primaryLabelMobileFontSize:m,secondaryLabelDesktopFontSize:y,secondaryLabelMobileFontSize:b,numberMobileFontSize:v,numberDesktopFontSize:x}=e?.fields||{},{theme:_}=(0,r.useContext)(n.BrandAndThemeContext),{uid:w}=e?.rendering||{},{container:T,numberWrapper:S,number:C,quantifier:E,description:k,eyebrow:N}=p({totalStatsCount:e?.statsItemsCount?.length,alignment:e.textAlignment,theme:_}),I=`stats-${w}`,A=i?.number?.value?i.number.value:0,j=A%1!=0,P=(0,l.getTypographyClassName)(C,v,x),O=(0,l.getTypographyClassName)(k,c,a),L=(0,l.getTypographyClassName)(N,f,h),D=(0,l.getTypographyClassName)(E,m,g),R=(0,l.getTypographyClassName)(E,b,
166y);return(0,t.jsxs)("div",{className:T(),"data-component":"authorable/shared/lists/statsitem",...(0,s.getTestProps)(`stats-item-${I}`),children:[(0,t.jsx)(o.default,{className:L,field:i?.eyebrow,...(0,s.getTestProps)("eyebrow"),tag:"p"}),(0,t.jsxs)("div",{className:S(),children:[(0,t.jsx)(u.default,{className:D,...(0,s.getTestProps)("primaryLabel"),field:i?.primaryLabel}),(0,t.jsx)(d,{end:A,duration:2.5,enableScrollSpy:!0,scrollSpyOnce:!0,decimals:2*!!j,className:P}),(0,t.jsx)(u.default,{className:R,...(0,s.getTestProps)("secondaryLabel"),field:i?.secondaryLabel})]}),(0,t.jsx)(o.default,{field:i?.description,className:O,...(0,s.getTestProps)("description"),tag:"p"})]},I)});e.s(["StatsItem",0,h,"default",0,h])},189785,e=>{"use strict";e.s(["CenterAligned",()=>m,"Default",()=>f,"LeftAligned",()=>g,"TitleAndTextCenterAligned",()=>y,"getColCount",()=>p]);var t=e.i(843476),r=e.i(211418),i=e.i(84853),n=e.i(206303),a=e.i(828029),s=e.i(783697),o=e.i(310099),l=e.i(136905),c=e.i(133267),u=e.i(202191),d=e.i(389980);let p=e=>2===e?"2":3===e?"3":"4",h=(0,r.tv)({slots:{wrapper:["flex","flex-col","gap-space-between-more","w-full","h-auto"],statsGrid:["grid","gap-layout-base-gutter"],sectionTextContent:["flex","flex-col","gap-general-spacing-title-margin-bottom"],sectionTitle:["text-component-section-title","font-typography-font-family-header","text-typography-font-size-large","font-typography-font-weight-large","leading-typography-line-height-large","[&>.ck-content>p]:text-component-section-title","[&>.ck-content>p]:font-typography-font-family-header","[&>.ck-content>p]:text-typography-font-size-large","[&>.ck-content>p]:font-typography-font-weight-large","[&>.ck-content>p]:leading-typography-line-height-large","[&>.ck-content>p>span]:bg-clip-text","[&>.ck-content>p>span]:text-transparent","[&>.ck-content>p>span]:bg-gradient-to-r","[&>.ck-content>p>span]:from-color-core-color-2-400","[&>.ck-content>p>span]:via-color-core-gradient-1-stop-2","[&>.ck-content>p>span]:to-color-core-gradient-1-stop-1","[&>.ck-content>p>span]:from-[0%]","[&>.ck-content>p>span]:via-[40%]","[&>.ck-content>p>span]:to-[100%]","[&>.ck-content>span]:bg-clip-text","[&>.ck-content>span]:text-transparent","[&>.ck-content>span]:bg-gradient-to-r","[&>.ck-content>span]:from-color-core-color-2-400","[&>.ck-content>span]:via-color-core-gradient-1-stop-2","[&>.ck-content>span]:to-color-core-gradient-1-stop-1","[&>.ck-content>span]:from-[0%]","[&>.ck-content>span]:via-[40%]","[&>.ck-content>span]:to-[100%]"],sectionDescription:["text-component-section-body","font-typography-font-family-body","text-typography-font-size-body-medium","font-typography-font-weight-body","leading-typography-line-height-body-medium","[&>.ck-content>p]:text-component-section-body","[&>.ck-content>p]:font-typography-font-family-body","[&>.ck-content>p]:text-typography-font-size-body-medium","[&>.ck-content>p]:font-typography-font-weight-body","[&>.ck-content>p]:leading-typography-line-height-body-medium"]},variants:{colCount:{2:{statsGrid:["grid-cols-1","md:grid-cols-2"]},3:{statsGrid:["grid-cols-1","[@media(min-width:672px)_and_(max-width:1008px)]:grid-cols-2","[@media(min-width:1009px)]:grid-cols-3"]},4:{statsGrid:["grid-cols-1","[@media(min-width:672px)_and_(max-width:1008px)]:grid-cols-2","[@media(min-width:1009px)]:grid-cols-4"]}},layout:{default:{wrapper:["text-left"]},left:{wrapper:["text-left"]},center:{wrapper:["text-center"]},titleAndTextCenter:{wrapper:["text-center"]}}},defaultVariants:{colCount:"2",layout:"left",hasContent:!1}}),f=(0,i.withStandardComponentWrapper)(e=>{let{DynamicPlaceholderId:r,RenderingIdentifier:i}=e?.params||{},{title:f,description:g,titleHtmlLevel:m,titleDesktopFontSize:y,titleMobileFontSize:b,descriptionDesktopFontSize:v,descriptionMobileFontSize:x}=e?.fields||{},_=`stats-${r}`,w=(0,a.default)(),{getDictionaryValue:T}=(0,o.default)(),{sectionTextContent:S,wrapper:C,sectionTitle:E,sectionDescription:k}=h({layout:"default"}),N=e?.params?.selectTheme,I=(0,u.getHeadingTag)(m,w,"h2"),A=(0,u.getTypographyClassName)(E,b,y),j=(0,u.getTypographyClassName)(k,x,v);return w?(0,t.jsx)(t.Fragment,{children:(0,t.jsxs)(d.BrandAndThemeProvider,{theme:N,children:[(0,t.jsx)(s.EditingHelpText,{priority:"warning",children:T("StatsAddMoreItemsHelpText")||"Add more StatsItems above or below to display additional stats in this row."}),(0,t.jsx)("div",{"data-component":"authorable/shared/lists/stats",id:i||e.params?.sectionId,...(0,l.getTestProps)(`component-stats-${e?.rendering?.uid}`),children:(0,t.jsxs)("div",{className:C(),children:[(0,t.jsxs)("div",{className:S(),children:[(0,t.jsx)(c.default,{field:f,className:A,tag:I}),(0,t.jsx)(c.default,{field:g,className:j,tag:"p"})]}),(0,t.jsx)(n.PlaceholderWrapper,{name:_,rendering:e.rendering,textAlignment:"default-alignment",statsItemsCount:Object.values(e?.rendering?.placeholders??{})[0],render:e=>{let{statsGrid:r}=h({colCount:p(e.length)});return(0,t.jsx)("ul",{className:r(),children:e.map((e,r)=>(0,t.jsx)("li",{children:e},r))})},...(0,l.getTestProps)("stats-ph"),page:e.page})]})})]})}):(0,t.jsx)(d.BrandAndThemeProvider,{theme:N,children:(0,t.jsx)("div",{"data-component":"authorable/shared/lists/stats",id:i||e.params?.sectionId,...(0,l.getTestProps)(`component-stats-${e?.rendering?.uid}`),children:(0,t.jsxs)("div",{className:C(),children:[(0,t.jsxs)("div",{className:S(),children:[(0,t.jsx)(c.default,{field:f,className:A,tag:I}),(0,t.jsx)(c.default,{field:g,className:j,tag:"p"})]}),(0,t.jsx)(n.PlaceholderWrapper,{name:_,rendering:e.rendering,textAlignment:"default-alignment",statsItemsCount:Object.values(e?.rendering?.placeholders??{})[0],render:e=>{let{statsGrid:r}=h({colCount:p(e.length)});return(0,t.jsx)("ul",{className:r(),children:e.map((e,r)=>(0,t.jsx)("li",{children:e},r))})},...(0,l.getTestProps)("stats-ph"),page:e.page})]})})})},!1),g=(0,i.withStandardComponentWrapper)(e=>
166{let{DynamicPlaceholderId:r,RenderingIdentifier:i}=e?.params||{},{title:f,description:g,titleHtmlLevel:m,titleDesktopFontSize:y,titleMobileFontSize:b,descriptionDesktopFontSize:v,descriptionMobileFontSize:x}=e?.fields||{},_=`stats-${r}`,w=(0,a.default)(),{getDictionaryValue:T}=(0,o.default)(),{sectionTextContent:S,wrapper:C,sectionTitle:E,sectionDescription:k}=h({layout:"left"}),N=(0,u.getHeadingTag)(m,w,"h2"),I=e?.params?.selectTheme,A=(0,u.getTypographyClassName)(E,b,y),j=(0,u.getTypographyClassName)(k,x,v);return w?(0,t.jsx)(t.Fragment,{children:(0,t.jsxs)(d.BrandAndThemeProvider,{theme:I,children:[(0,t.jsx)(s.EditingHelpText,{priority:"warning",children:T("StatsAddMoreItemsHelpText")||"Add more StatsItems above or below to display additional stats in this row."}),(0,t.jsx)("div",{"data-component":"authorable/shared/lists/stats",id:i||e.params?.sectionId,...(0,l.getTestProps)(`component-stats-${e?.rendering?.uid}`),children:(0,t.jsxs)("div",{className:C(),children:[(0,t.jsxs)("div",{className:S(),children:[(0,t.jsx)(c.default,{field:f,className:A,tag:N}),(0,t.jsx)(c.default,{field:g,className:j,tag:"p"})]}),(0,t.jsx)(n.PlaceholderWrapper,{name:_,rendering:e.rendering,textAlignment:"left-alignment",statsItemsCount:Object.values(e?.rendering?.placeholders??{})[0],render:e=>{let{statsGrid:r}=h({colCount:p(e.length)});return(0,t.jsx)("ul",{className:r(),children:e.map((e,r)=>(0,t.jsx)("li",{children:e},r))})},...(0,l.getTestProps)("stats-ph"),page:e.page})]})})]})}):(0,t.jsx)(d.BrandAndThemeProvider,{theme:I,children:(0,t.jsx)("div",{"data-component":"authorable/shared/lists/stats",id:i||e.params?.sectionId,...(0,l.getTestProps)(`component-stats-${e?.rendering?.uid}`),children:(0,t.jsxs)("div",{className:C(),children:[(0,t.jsxs)("div",{className:S(),children:[(0,t.jsx)(c.default,{field:f,className:A,tag:N}),(0,t.jsx)(c.default,{field:g,className:j,tag:"p"})]}),(0,t.jsx)(n.PlaceholderWrapper,{name:_,rendering:e.rendering,textAlignment:"left-alignment",statsItemsCount:Object.values(e?.rendering?.placeholders??{})[0],render:e=>{let{statsGrid:r}=h({colCount:p(e.length)});return(0,t.jsx)("ul",{className:r(),children:e.map((e,r)=>(0,t.jsx)("li",{children:e},r))})},...(0,l.getTestProps)("stats-ph"),page:e.page})]})})})},!1),m=(0,i.withStandardComponentWrapper)(e=>{let{DynamicPlaceholderId:r,RenderingIdentifier:i}=e?.params||{},{title:f,description:g,titleHtmlLevel:m,titleDesktopFontSize:y,titleMobileFontSize:b,descriptionDesktopFontSize:v,descriptionMobileFontSize:x}=e?.fields||{},_=`stats-${r}`,w=(0,a.default)(),{getDictionaryValue:T}=(0,o.default)(),{sectionTextContent:S,wrapper:C,sectionTitle:E,sectionDescription:k}=h({layout:"center"}),N=(0,u.getHeadingTag)(m,w,"h2"),I=e?.params?.selectTheme,A=(0,u.getTypographyClassName)(E,b,y),j=(0,u.getTypographyClassName)(k,x,v);return w?(0,t.jsx)(t.Fragment,{children:(0,t.jsxs)(d.BrandAndThemeProvider,{theme:I,children:[(0,t.jsx)(s.EditingHelpText,{priority:"warning",children:T("StatsAddMoreItemsHelpText")||"Add more StatsItems above or below to display additional stats in this row."}),(0,t.jsx)("div",{"data-component":"authorable/shared/lists/stats",id:i||e.params?.sectionId,...(0,l.getTestProps)(`component-stats-${e?.rendering?.uid}`),children:(0,t.jsxs)("div",{className:C(),children:[(0,t.jsxs)("div",{className:S(),children:[(0,t.jsx)(c.default,{field:f,className:A,tag:N,...(0,l.getTestProps)("title")}),(0,t.jsx)(c.default,{field:g,className:j,tag:"p"})]}),(0,t.jsx)(n.PlaceholderWrapper,{name:_,rendering:e.rendering,textAlignment:"center-alignment",statsItemsCount:Object.values(e?.rendering?.placeholders??{})[0],render:e=>{let{statsGrid:r}=h({colCount:p(e.length)});return(0,t.jsx)("ul",{className:r(),children:e.map((e,r)=>(0,t.jsx)("li",{children:e},r))})},...(0,l.getTestProps)("stats-ph"),page:e.page})]})})]})}):(0,t.jsx)(d.BrandAndThemeProvider,{theme:I,children:(0,t.jsx)("div",{"data-component":"authorable/shared/lists/stats",id:i||e.params?.sectionId,...(0,l.getTestProps)(`component-stats-${e?.rendering?.uid}`),children:(0,t.jsxs)("div",{className:C(),children:[(0,t.jsxs)("div",{className:S(),children:[(0,t.jsx)(c.default,{field:f,className:A,tag:N}),(0,t.jsx)(c.default,{field:g,className:j,tag:"p"})]}),(0,t.jsx)(n.PlaceholderWrapper,{name:_,rendering:e.rendering,textAlignment:"center-alignment",statsItemsCount:Object.values(e?.rendering?.placeholders??{})[0],render:e=>{let{statsGrid:r}=h({colCount:p(e.length)});return(0,t.jsx)("ul",{className:r(),children:e.map((e,r)=>(0,t.jsx)("li",{children:e},r))})},...(0,l.getTestProps)("stats-ph"),page:e.page})]})})})},!1),y=(0,i.withStandardComponentWrapper)(e=>
166{let{DynamicPlaceholderId:r,RenderingIdentifier:i}=e?.params||{},{title:f,description:g,titleHtmlLevel:m,titleDesktopFontSize:y,titleMobileFontSize:b,descriptionDesktopFontSize:v,descriptionMobileFontSize:x}=e?.fields||{},_=`stats-${r}`,w=(0,a.default)(),{getDictionaryValue:T}=(0,o.default)(),{sectionTextContent:S,wrapper:C,sectionTitle:E,sectionDescription:k}=h({layout:"titleAndTextCenter"}),N=(0,u.getHeadingTag)(m,w,"h2"),I=e?.params?.selectTheme,A=(0,u.getTypographyClassName)(E,b,y),j=(0,u.getTypographyClassName)(k,x,v);return w?(0,t.jsx)(t.Fragment,{children:(0,t.jsxs)(d.BrandAndThemeProvider,{theme:I,children:[(0,t.jsx)(s.EditingHelpText,{priority:"warning",children:T("StatsAddMoreItemsHelpText")||"Add more StatsItems above or below to display additional stats in this row."}),(0,t.jsx)("div",{"data-component":"authorable/shared/lists/stats",id:i||e.params?.sectionId,...(0,l.getTestProps)(`component-stats-${e?.rendering?.uid}`),children:(0,t.jsxs)("div",{className:C(),children:[(0,t.jsxs)("div",{className:S(),children:[(0,t.jsx)(c.default,{field:f,className:A,tag:N}),(0,t.jsx)(c.default,{field:g,className:j,tag:"p"})]}),(0,t.jsx)(n.PlaceholderWrapper,{name:_,rendering:e.rendering,textAlignment:"title-and-text-center-alignment",statsItemsCount:Object.values(e?.rendering?.placeholders??{})[0],render:e=>{let{statsGrid:r}=h({colCount:p(e.length)});return(0,t.jsx)("ul",{className:r(),children:e.map((e,r)=>(0,t.jsx)("li",{children:e},r))})},...(0,l.getTestProps)("stats-ph"),page:e.page})]})})]})}):(0,t.jsx)(d.BrandAndThemeProvider,{theme:I,children:(0,t.jsx)("div",{"data-component":"authorable/shared/lists/stats",id:i||e.params?.sectionId,...(0,l.getTestProps)(`component-stats-${e?.rendering?.uid}`),children:(0,t.jsxs)("div",{className:C(),children:[(0,t.jsxs)("div",{className:S(),children:[(0,t.jsx)(c.default,{field:f,className:A,tag:N}),(0,t.jsx)(c.default,{field:g,className:j,tag:"p"})]}),(0,t.jsx)(n.PlaceholderWrapper,{name:_,rendering:e.rendering,textAlignment:"title-and-text-center-alignment",statsItemsCount:Object.values(e?.rendering?.placeholders??{})[0],render:e=>{let{statsGrid:r}=h({colCount:p(e.length)});return(0,t.jsx)("ul",{className:r(),children:e.map((e,r)=>(0,t.jsx)("li",{children:e},r))})},...(0,l.getTestProps)("stats-ph"),page:e.page})]})})})},!1)},694777,e=>{"use strict";e.s(["Default",()=>y,"SpeakerCardContext",()=>p,"default",()=>v,"useSpeakerCardContext",()=>h]);var t=e.i(843476),r=e.i(271645),i=e.i(211418),n=e.i(84853),a=e.i(474176),s=e.i(206303),o=e.i(133267),l=e.i(136905),c=e.i(389980),u=e.i(828029),d=e.i(202191);let p=(0,r.createContext)({variant:"compact",cardSurface:"filled",colCount:"4",sectionTheme:"ThemesWhite"}),h=()=>(0,r.useContext)(p),f=e=>e?.trim().toLowerCase()??"",g=e=>"left"===f(e)?"Left":"Center",m=e=>{let{DynamicPlaceholderId:r,RenderingIdentifier:i,removeHorizontalPadding:n,removeVerticalPadding:h}=e?.params||{},{heading:m,headingHtmlLevel:y,paragraph:v,paragraphHtmlLevel:x}=e?.fields||{},_=e?.params?.selectTheme||"ThemesWhite",w="extended"===f(e?.params?.variant)?"extended":"compact",T="transparent"===f(e?.params?.cardSurface)?"transparent":"filled",S=g(e?.params?.textAlignment),C=g(e?.params?.carditemsAlignment),E=`speakercard-${r}`,k=(0,a.parseStyleParams)(e.params,["cards"]),N=k?.cards?.cardsPerRow||"4",I="filled"===T&&"ThemesDark"===_?"ThemesWhite":_,A=(0,u.default)(),j=(0,d.getHeadingTag)(y,A,"h2"),P=(0,d.getHeadingTag)(x,A,"p"),{base:O,band:L,header:D,title:R,description:M,list:B,card:U}=b({colCount:N,textAlignment:S,cardItemsAlignment:C,removeHorizontalPadding:"1"===n,removeVerticalPadding:"1"===h});return(0,t.jsx)(p.Provider,{value:{variant:w,cardSurface:T,colCount:N,sectionTheme:_},children:(0,t.jsx)("section",{className:O(),"data-component":"authorable/shared/lists/speakercard",id:i||e.params?.sectionId,...(0,l.getTestProps)(`component-speakercard-${e?.rendering?.uid}`),children:(0,t.jsx)(c.BrandAndThemeProvider,{theme:_,children:(0,t.jsxs)("div",{className:L(),children:[(m?.value||v?.value||A)&&(0,t.jsxs)("div",{className:D(),children:[(m?.value||A)&&(0,t.jsx)(o.default,{className:R(),field:m,tag:j,...(0,l.getTestProps)("heading")}),(v?.value||A)&&(0,t.jsx)(o.default,{className:M(),field:v,tag:P,...(0,l.getTestProps)("paragraph")})]}),(0,t.jsx)(c.BrandAndThemeProvider,{theme:I,children:(0,t.jsx)(s.PlaceholderWrapper,{name:E,rendering:e.rendering,page:e.page,render:e=>(0,t.jsx)("ul",{className:B(),"aria-label":"List of speakers",children:e.map((e,r)=>(0,t.jsx)("li",{className:U(),role:"listitem",...(0,l.getTestProps)(`speaker-card-${r}`),children:e},r))})})})]})})})})},y=(0,n.withStandardComponentWrapper)(m,!1),b=(0,i.tv)({defaultVariants:{colCount:"4",textAlignment:"Center",cardItemsAlignment:"Center",removeHorizontalPadding:!1,removeVerticalPadding:!1},slots:{base:["w-full"],band:["bg-component-section-bg","flex","flex-col","relative","before:absolute","before:inset-0","before:left-[calc(-50vw+50%)]","before:right-[calc(-50vw+50%)]","before:bg-component-section-bg","before:-z-10","after:absolute","after:inset-0","after:left-[calc(-50vw+50%)]","after:right-[calc(-50vw+50%)]","after:bg-component-section-bg","after:-z-10"],header:["flex","flex-col","w-full","mb-spacing-spacing-40"],title:["font-typography-font-family-header","text-typography-font-size-large","md:text-typography-font-size-xlarge","font-typography-font-weight-large","md:font-typography-font-weight-xlarge","leading-typography-line-height-large","md:leading-typography-line-height-xlarge","text-component-section-title"],description:["font-typography-font-family-body","text-typography-font-size-body-medium","md:text-typography-font-size-body-large","font-typography-font-weight-body","leading-typography-line-height-body-medium","md:leading-typography-line-height-body-large","text-component-section-body","mt-general-spacing-title-margin-bottom"],list:["flex","flex-wrap","gap-layout-base-gutter","w-full"],card:["flex","flex-col","w-full"]},variants:{colCount:{1:{},2:{card:["sm:w-[calc((100%-var(--layout-base-gutter))/2)]","sm:max-w-[320px]"]},3:{card:["sm:w-[calc((100%-var(--layout-base-gutter))/2)]","lg:w-[calc((100%-2*var(--layout-base-gutter))/3)]"]},4:{card:["sm:w-[calc((100%-var(--layout-base-gutter))/2)]","lg:w-[calc((100%-3*var(--layout-base-gutter))/4)]"]}},textAlignment:{Left:{header:["items-start","text-left","max-w-layout-container-center70-max-width"],title:["text-left"],description:["text-left"]},Center:{header:["items-center","text-center","mx-auto","max-w-layout-container-center70-max-width"],title:["text-center"],description:["text-center"]}},cardItemsAlignment:{Left:{list:["justify-start"]},Center:{list:["justify-center"]}},removeHorizontalPadding:{false:{band:["px-general-spacing-margin-x"]},true:{band:[]}},removeVerticalPadding:{false:{band:["py-spacing-spacing-80"]},true:{band:[]}}}}),v=m},302368,e=>{"use strict";e.s(["Default",()=>y,"default",()=>m]);var t=e.i(843476),r=e.i(211418),i=e.i(84853),n=e.i(38930),a=e.i(296217),s=e.i(133267),o=e.i(506914),l=e.i(841428),c=e.i(207857),u=e.i(310099),d=e.i(828029),p=e.i(136905),h=e.i(694777);let f=e=>
166{let{headshot:r,speakerName:i,jobTitle:l,logo:d,bio:h,linkedIn:f}=e?.fields||{},{getDictionaryValue:g}=(0,u.default)(),m=!!f?.value?.href,{modalContent:y,modalImageWrapper:b,modalImage:x,modalName:_,modalJobTitle:w,modalLogoWrapper:T,modalLogo:S,modalBio:C,modalFindOut:E,modalFindOutLabel:k,modalLink:N}=v();return(0,t.jsxs)("div",{className:y(),children:[r?.value?.src&&(0,t.jsx)("div",{className:b(),children:(0,t.jsx)(n.default,{field:r,className:x(),...(0,p.getTestProps)("modal-image")})}),(0,t.jsx)(o.default,{className:_(),field:i,tag:"h2",...(0,p.getTestProps)("modal-name")}),(0,t.jsx)(o.default,{className:w(),field:l,tag:"p",...(0,p.getTestProps)("modal-job-title")}),d?.value?.src&&(0,t.jsx)("div",{className:T(),children:(0,t.jsx)(n.default,{field:d,className:S(),...(0,p.getTestProps)("modal-logo")})}),(0,t.jsx)(s.default,{className:C(),field:h,...(0,p.getTestProps)("modal-bio")}),m&&(0,t.jsxs)("div",{className:E(),children:[(0,t.jsx)("span",{className:k(),children:g("SpeakerCardFindOutMore")||"Find out more:"}),(0,t.jsx)(a.default,{field:f,ctaVariant:"link",ctaComponentClass:"component-card-item-button-1-color",className:N(),suppressLinkText:!0,suppressNewTabIcon:!0,srOnlyText:g("SpeakerCardLinkedIn")||"LinkedIn profile",...(0,p.getTestProps)("modal-linkedin"),children:(0,t.jsx)(c.default,{icon:"linkedin",size:"s"})})]})]})},g=e=>{let{headshot:r,speakerName:i,jobTitle:a,bio:s}=e?.fields||{},{RenderingIdentifier:g}=e?.params||{},{variant:m,cardSurface:y,sectionTheme:v}=(0,h.useSpeakerCardContext)(),{getDictionaryValue:x}=(0,u.default)(),_=(0,d.default)(),w=e?.rendering?.uid||g||"speaker-card-item",T=!!s?.value,{container:S,imageContainer:C,image:E,content:k,text:N,name:I,jobTitleText:A,cta:j,ctaLabel:P,ctaIcon:O}=b({variant:m,cardSurface:y,theme:v}),L=x("SpeakerCardReadBio")||"Read bio";return(0,t.jsxs)("article",{className:S(),"data-component":"authorable/shared/lists/speakercarditem",id:g,...(0,p.getTestProps)(`speaker-card-item-${e?.rendering?.uid}`),children:[r?.value?.src&&(0,t.jsx)("div",{className:C(),children:(0,t.jsx)(n.default,{field:r,className:E(),...(0,p.getTestProps)("image")})}),(0,t.jsxs)("div",{className:k(),children:[(0,t.jsxs)("div",{className:N(),children:[(0,t.jsx)(o.default,{className:I(),field:i,tag:"h3",...(0,p.getTestProps)("name")}),(0,t.jsx)(o.default,{className:A(),field:a,tag:"p",...(0,p.getTestProps)("job-title")})]}),(T||_)&&(0,t.jsx)(l.default,{id:w,label:i?.value||L,size:"Large",content:(0,t.jsx)(f,{...e}),trigger:(0,t.jsxs)("span",{className:j(),...(0,p.getTestProps)("read-bio"),children:[(0,t.jsx)("span",{className:P(),children:L}),(0,t.jsx)(c.default,{icon:"arrow-right",size:"xss",className:O()})]})})]})]})},m=g,y=(0,i.withStandardComponentWrapper)(g),b=(0,r.tv)({defaultVariants:{variant:"compact",cardSurface:"filled",theme:"ThemesWhite"},slots:{container:["relative","flex","h-full","w-full","flex-col","items-center","overflow-hidden","rounded-general-border-radius-card","border","transition-shadow","duration-200","ease-in-out","hover:shadow-[0px_8px_16px_-4px]","hover:shadow-color-black-alpha-20"],imageContainer:["flex","flex-col","items-center","pt-component-card-item-portrait-image-padding-top","px-component-card-item-portrait-image-padding-x","pb-component-card-item-portrait-image-padding-bottom"],image:["!h-[100px]","!w-[100px]","object-cover","rounded-component-card-item-image-radius"],content:["flex","w-full","flex-col","items-center","justify-center","gap-component-video-card-portrait-content-button-margin-top","pt-component-card-item-portrait-content-padding-top","pb-component-card-item-portrait-content-padding-bottom","px-component-card-item-portrait-content-padding-x"],text:["flex","w-full","flex-col","items-center","justify-center","gap-general-spacing-buttons-margin-top"],name:["w-full","break-words","text-center","font-typography-font-family-header","text-typography-font-size-small","font-typography-font-weight-small","leading-typography-line-height-small","text-component-card-item-title","line-clamp-2"],jobTitleText:["w-full","break-words","text-center","font-typography-font-family-body","text-typography-font-size-body-small","font-typography-font-weight-body-semibold","leading-typography-line-height-body-small","text-component-card-item-subtitle"],cta:["inline-flex","cursor-pointer","items-center","justify-center","gap-spacing-spacing-8","p-spacing-spacing-2"],
166ctaLabel:["font-typography-font-family-body","text-typography-font-size-body-medium","font-typography-font-weight-button","leading-typography-line-height-body-small","text-component-card-item-title"],ctaIcon:["text-component-card-item-title"]},variants:{variant:{compact:{},extended:{}},cardSurface:{filled:{},transparent:{container:["bg-transparent"]}},theme:{ThemesWhite:{},ThemesLight:{},ThemesDark:{},ThemesBrandPrimary:{},ThemesBrandSecondary:{}}},compoundVariants:[{theme:"ThemesWhite",cardSurface:"filled",class:{container:["bg-color-surface-light","border-component-card-item-border"]}},{theme:"ThemesWhite",cardSurface:"transparent",class:{container:["border-component-card-item-border"]}},{theme:"ThemesLight",cardSurface:"filled",class:{container:["bg-color-surface-white","border-component-card-item-border"]}},{theme:"ThemesLight",cardSurface:"transparent",class:{container:["border-color-border-white"]}},{theme:"ThemesDark",cardSurface:"filled",class:{container:["bg-color-surface-light","border-component-card-item-border"]}},{theme:"ThemesDark",cardSurface:"transparent",class:{container:["border-color-border-white"]}},{theme:"ThemesBrandPrimary",cardSurface:"filled",class:{container:["bg-component-card-item-surface","border-component-card-item-border"]}},{theme:"ThemesBrandPrimary",cardSurface:"transparent",class:{container:["border-component-card-item-border"]}},{theme:"ThemesBrandSecondary",cardSurface:"filled",class:{container:["bg-component-card-item-surface","border-component-card-item-border"]}},{theme:"ThemesBrandSecondary",cardSurface:"transparent",class:{container:["border-component-card-item-border"]}}]}),v=(0,r.tv)({slots:{modalContent:["flex","flex-col","items-start","gap-general-spacing-title-margin-bottom"],modalImageWrapper:["relative","overflow-hidden","rounded-component-card-item-image-radius"],modalImage:["!h-[180px]","!w-[180px]","md:!h-[220px]","md:!w-[220px]","object-cover","rounded-component-card-item-image-radius"],modalName:["font-typography-font-family-body","text-typography-font-size-body-large","font-typography-font-weight-body-bold","leading-typography-line-height-body-large","text-component-modal-title"],modalJobTitle:["font-typography-font-family-body","text-typography-font-size-body-medium","font-typography-font-weight-body-semibold","leading-typography-line-height-body-medium","text-component-modal-subtitle"],modalLogoWrapper:["flex","items-center"],modalLogo:["!h-[25px]","w-auto","object-contain"],modalBio:["font-typography-font-family-body","text-typography-font-size-body-medium","font-typography-font-weight-body","leading-typography-line-height-body-medium","text-component-modal-body","[&_p]:text-typography-font-size-body-medium","[&_p]:leading-typography-line-height-body-medium","[&_ul]:text-typography-font-size-body-medium","[&_ul]:leading-typography-line-height-body-medium","[&_ol]:text-typography-font-size-body-medium","[&_ol]:leading-typography-line-height-body-medium"],modalFindOut:["flex","flex-col","gap-spacing-spacing-4","w-full"],modalFindOutLabel:["font-typography-font-family-body","text-typography-font-size-body-medium","font-typography-font-weight-body","leading-typography-line-height-body-medium","text-component-modal-title"],modalLink:["inline-flex","w-fit","items-center","text-component-card-item-title"]}})},582633,e=>{"use strict";var t=e.i(843476),r=e.i(211418),i=e.i(271645),n=e.i(84853),a=e.i(38930),s=e.i(133267),o=e.i(136905);e.i(879806);var l=e.i(871084),c=e.i(828029),u=e.i(202191);let d=(0,n.withStandardComponentWrapper)(e=>{let{quote:r,quoteeName:n,hideImage:d,image:h,quoteeTitle:f,quoteMobileFontSize:g,quoteDesktopFontSize:m,quoteeNameMobileFontSize:y,quoteeNameDesktopFontSize:b,quoteeTitleMobileFontSize:v,quoteeTitleDesktopFontSize:x,quoteHtmlLevel:_}=e?.fields||{},w=(0,c.default)(),T=e?.params?.styles?.split(" ").includes("full-width")?"full":void 0,S=(0,i.useRef)(null);(0,i.useEffect)(()=>{if("full"!==T)return;let e=S.current?.closest(".splide__slide");if(!e)return;let t=()=>{e.style.height&&"auto"!==e.style.height&&e.style.setProperty("height","auto","important")};t();let r=new MutationObserver(t);return r.observe(e,{attributes:!0,attributeFilter:["style"]}),()=>r.disconnect()},[T]);let{quoteeTitles:C,imageWrapper:E,slide:k,slideMedia:N,wrapper:I,authorContainer:A,quoteename:j,quotes:P,iconWrapper:O,iconstyle:L}=p({slideWidth:T}),D=(0,u.getHeadingTag)(_,w,"h4"),R=(0,u.getTypographyClassName)(P,g,m),M=(0,u.getTypographyClassName)(j,y,b),B=(0,u.getTypographyClassName)(C,v,x),U=!h?.value?.src,F=d?.value;return(0,t.jsx)("div",{ref:S,className:k(),"data-component":"authorable/shared/lists/quotecarouselitem",...(0,o.getTestProps)(`quotecarousel-item-${e?.rendering?.uid}`),children:(0,t.jsxs)("div",{className:N(),children:[!F&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(a.default,{className:E(),field:h,...(0,o.getTestProps)("image")}),U&&!w&&(0,t.jsx)("div",{className:O(),children:(0,t.jsx)(l.SvgIcon,{size:"em",icon:"quote-marks",viewBox:"0 0 155 121",className:L()})})]}),(0,t.jsxs)("div",{className:I(),children:[r&&(0,t.jsx)(s.default,{className:R,tag:D,field:r,...(0,o.getTestProps)("qoute")}),(0,t.jsxs)("div",{className:A(),children:[(0,t.jsx)(s.default,{className:M,field:n,tag:"div",...(0,o.getTestProps)("quoteeName")}
166),(0,t.jsx)(s.default,{className:B,field:f,tag:"div",...(0,o.getTestProps)("quoteeTitle")})]})]})]})})}),p=(0,r.tv)({slots:{imageWrapper:["flex","w-[208px]","h-[208px]","md:w-[303px]","md:h-[303px]","flex-col","justify-center","items-center","flex-shrink-0","aspect-square","rounded-full","object-cover","bg-center","bg-cover"],slide:["flex","md:flex-row","flex-col","gap-spacing-spacing-16","md:gap-spacing-spacing-24","relative","justify-start","md:justify-center","items-start","self-stretch","md:min-h-[303px]","md:pb-0","py-spacing-spacing-24","px-spacing-spacing-24","md:px-spacing-spacing-0","h-full","w-full"],slideContent:["slide-content","relative","w-full","md:w-1/2","md:box-border","md:text-left","flex","items-center","justify-center","bg-color-surface-white","md:rounded-general-border-radius-container","overflow-auto","content-center","md:py-component-carousel-content-padding-y","md:px-component-carousel-content-padding-x","max-w-typography-copy-max-Width","mx-auto"],slideMedia:["slide-media","w-full","h-full","flex","md:flex-row","flex-col","justify-start","md:justify-center","items-center","md:gap-spacing-spacing-40","gap-spacing-spacing-24","max-w-typography-copy-max-Width"],wrapper:["flex","flex-col","gap-spacing-spacing-16","md:gap-spacing-spacing-12","w-full"],quotes:["text-component-quote-quote","font-typography-font-family-header","text-typography-font-size-medium","font-typography-font-weight-medium","leading-typography-line-height-medium","[&>span]:bg-clip-text","[&>span]:text-transparent","[&>span]:bg-gradient-to-r","[&>span]:from-color-core-color-2-400","[&>span]:via-color-core-gradient-1-stop-2","[&>span]:to-color-core-gradient-1-stop-1","[&>span]:from-[0%]","[&>span]:via-[40%]","[&>span]:to-[100%]","break-words"],authorContainer:["flex","flex-col","gap-spacing-spacing-4"],quoteename:["text-component-quote-name","font-typography-font-family-body","text-typography-font-size-body-large","font-typography-font-weight-body-bold","leading-typography-line-height-body-large","break-all"],quoteeTitles:["text-component-quote-details","font-typography-font-family-body","text-typography-font-size-body-medium","font-typography-font-weight-body","leading-typography-line-height-body-medium","break-all"],iconWrapper:["flex","w-[208px]","h-[208px]","md:w-[303px]","md:h-[303px]","flex-col","justify-center","items-center","flex-shrink-0","aspect-square","gap-spacing-spacing-40","text-color-fill-brand-1","rounded-[200px]","bg-gradient-to-b","from-color-accent-color-4-500","to-color-accent-color-4-500","bg-color-accent-color-3-500"],iconstyle:["w-[103px]","h-[80px]","md:w-[154px]","md:h-[120px]","flex-shrink-0","aspect-[77/60]","fill-[var(--color-core-color-1-500,#360065)]"]},variants:{slideWidth:{full:{slideMedia:["!max-w-full","!h-auto"],slide:["md:!min-h-[auto]","!h-auto","!py-0","!px-0"],quotes:["leading-typography-line-height-small","text-typography-font-size-small","md:text-typography-font-size-medium"]}}}});e.s(["Default",0,d])},774790,978520,e=>{"use strict";function t(e,t,r){return Array.prototype.slice.call(e,t,r)}function r(e){return e.bind.apply(e,[null].concat(t(arguments,1)))}function i(e,t){return typeof t===e}var n=Array.isArray;function a(e,t){(n(e)?e:[e]).forEach(t)}r(i,"function"),r(i,"string"),r(i,"undefined");var s=Object.keys;function o(e){var t;return e.bind(null,...(t=arguments,Array.prototype.slice.call(t,1,void 0)))}function l(e,t){return typeof t===e}o(l,"function"),o(l,"string");let c=o(l,"undefined"),u=Object.keys;e.s(["Intersection",0,function(e,i,o){var l,d;let p,{emit:h}=(l=e?e.event.bus:document.createDocumentFragment(),d=function(){var e=[];function t(e,t,r){a(e,function(e){e&&a(t,function(t){t.split(" ").forEach(function(t){var i=t.split(".");r(e,i[0],i[1])})})})}return{bind:function(r,i,n,a){t(r,i,function(t,r,i){var s="addEventListener"in t,o=s?t.removeEventListener.bind(t,r,n,a):t.removeListener.bind(t,n);s?t.addEventListener(r,n,a):t.addListener(n),e.push([t,r,i,n,o])})},unbind:function(r,i,n){t(r,i,function(t,r,i){e=e.filter(function(e){return e[0]!==t||e[1]!==r||e[2]!==i||!!n&&e[3]!==n||(e[4](),!1)})})},dispatch:function(e,t,r){var i;return"function"==typeof CustomEvent?i=new CustomEvent(t,{bubbles:!0,detail:r}):(i=document.createEvent("CustomEvent")).initCustomEvent(t,!0,!1,r),e.dispatchEvent(i),i},destroy:function(){e.forEach(function(e){e[4]()}),e.length=0}}}(),e&&e.event.on("destroy",d.destroy),function(e){return t(arguments,1
166).forEach(function(t){!function(e,t){if(e){for(var r=s(e),i=0;i<r.length;i++){var n=r[i];if("__proto__"!==n&&!1===t(e[n],n))break}}}(t,function(r,i){e[i]=t[i]})}),e}(d,{bus:l,on:function(e,t){d.bind(l,(n(e)?e:[e]).join(" "),function(e){t.apply(t,n(e.detail)?e.detail:[])})},off:r(d.unbind,l),emit:function(e){d.dispatch(l,e,t(arguments,1))}})),f=o.intersection||{},g=function(e){let{Components:t}=e;return{keyboard:{enable(){t.Keyboard.disable(!1)},disable(){t.Keyboard.disable(!0)}},autoplay:{enable(){e.options.autoplay&&t.Autoplay.play()},disable(){t.Autoplay.pause()}},autoScroll:{enable(){let e=t.AutoScroll;e&&e.play()},disable(){let e=t.AutoScroll;e&&e.pause()}},video:{enable(){let e=t.Video;e&&e.play()},disable(){let e=t.Video;e&&e.pause()}}}}(e);function m(){p&&(p.disconnect(),p=null)}function y([e]){var t,r;e&&(e.isIntersecting?(t=e,b(f.inView||{}),h("intersection:in",t),f.once&&m()):(r=e,b(f.outView||{}),h("intersection:out",r)),h("intersection",e))}function b(e){!function(e,t){if(e){let r=u(e);for(let i=0;i<r.length;i++){let n=r[i];if("__proto__"!==n&&!1===t(e[n],n))break}}}(e,(e,t)=>{if(!c(e)){let r=g[t];e?r.enable():r.disable()}})}return{mount:function(){window.IntersectionObserver&&(p=new IntersectionObserver(y,{root:f.root,rootMargin:f.rootMargin,threshold:f.threshold})).observe(e.root)},destroy:m}}],774790);var d=e.i(271645),p="(prefers-reduced-motion: reduce)";function h(e){e.length=0}function f(e,t,r){return Array.prototype.slice.call(e,t,r)}function g(e){return e.bind.apply(e,[null].concat(f(arguments,1)))}var m=setTimeout,y=function(){};function b(e){return requestAnimationFrame(e)}function v(e,t){return typeof t===e}function x(e){return null!==e&&v("object",e)}var _=Array.isArray,w=g(v,"function"),T=g(v,"string"),S=g(v,"undefined");function C(e){try{return e instanceof(e.ownerDocument.defaultView||window).HTMLElement}catch(e){return!1}}function E(e){return _(e)?e:[e]}function k(e,t){E(e).forEach(t)}function N(e,t){return e.indexOf(t)>-1}function I(e,t){return e.push.apply(e,E(t)),e}function A(e,t,r){e&&k(t,function(t){t&&e.classList[r?"add":"remove"](t)})}function j(e,t){A(e,T(t)?t.split(" "):t,!0)}function P(e,t){k(t,e.appendChild.bind(e))}function O(e,t){k(e,function(e){var r=(t||e).parentNode;r&&r.insertBefore(e,t)})}function L(e,t){return C(e)&&(e.msMatchesSelector||e.matches).call(e,t)}function D(e,t){var r=e?f(e.children):[];return t?r.filter(function(e){return L(e,t)}):r}function R(e,t){return t?D(e,t)[0]:e.firstElementChild}var M=Object.keys;function B(e,t,r){return e&&(r?M(e).reverse():M(e)).forEach(function(r){"__proto__"!==r&&t(e[r],r)}),e}function U(e){return f(arguments,1).forEach(function(t){B(t,function(r,i){e[i]=t[i]})}),e}function F(e){return f(arguments,1).forEach(function(t){B(t,function(t,r){_(t)?e[r]=t.slice():x(t)?e[r]=F({},x(e[r])?e[r]:{},t):e[r]=t})}),e}function $(e,t){k(t||M(e),function(t){delete e[t]})}function z(e,t){k(e,function(e){k(t,function(t){e&&e.removeAttribute(t)})})}function q(e,t,r){x(t)?B(t,function(t,r){q(e,r,t)}):k(e,function(e){null===r||""===r?z(e,t):e.setAttribute(t,String(r))})}function H(e,t,r){var i=document.createElement(e);return t&&(T(t)?j(i,t):q(i,t)),r&&P(r,i),i}function W(e,t,r){if(S(r))return getComputedStyle(e)[t];null!==r&&(e.style[t]=""+r)}function V(e,t){W(e,"display",t)}function G(e){e.setActive&&e.setActive()||e.focus({preventScroll:!0})}function X(e,t){return e.getAttribute(t)}function K(e,t){return e&&e.classList.contains(t)}function Y(e){return e.getBoundingClientRect()}function Q(e){k(e,function(e){e&&e.parentNode&&e.parentNode.removeChild(e)})}function J(e){return R(new DOMParser().parseFromString(e,"text/html").body)}function Z(e,t){e.preventDefault(),t&&(e.stopPropagation(),e.stopImmediatePropagation())}function ee(e,t){return e&&e.querySelector(t)}function et(e,t){return t?f(e.querySelectorAll(t)):[]}function er(e,t){A(e,t,!1)}function ei(e){return e.timeStamp}function en(e){return T(e)?e:e?e+"px":""}var ea="splide",es="data-"+ea;function eo(e,t){if(!e)throw Error("["+ea+"] "+(t||""))}var el=Math.min,ec=Math.max,eu=Math.floor,ed=Math.ceil,ep=Math.abs;function eh(e,t,r,i){var n=el(t,r),a=ec(t,r);return i?n<e&&e<a:n<=e&&e<=a}function ef(e,t,r){var i=el(t,r),n=ec(t,r);return el(ec(i,e),n)}function eg(e,t){return k(t,function(t){e=e.replace("%s",""+t)}),e}function em(e){return e<10?"0"+e:""+e}var ey={};function eb(){var e=[];function t(e,t,r){k(e,function(e){e&&k(t,function(t){t.split(" ").forEach(function(t){var i=t.split(".");r(e,i[0],i[1])})})})}return{bind:function(r,i,n,a){t(r,i,function(t,r,i){var s="addEventListener"in t,o=s?t.removeEventListener.bind(t,r,n,a):t.removeListener.bind(t,n);
166s?t.addEventListener(r,n,a):t.addListener(n),e.push([t,r,i,n,o])})},unbind:function(r,i,n){t(r,i,function(t,r,i){e=e.filter(function(e){return e[0]!==t||e[1]!==r||e[2]!==i||!!n&&e[3]!==n||(e[4](),!1)})})},dispatch:function(e,t,r){var i;return"function"==typeof CustomEvent?i=new CustomEvent(t,{bubbles:!0,detail:r}):(i=document.createEvent("CustomEvent")).initCustomEvent(t,!0,!1,r),e.dispatchEvent(i),i},destroy:function(){e.forEach(function(e){e[4]()}),h(e)}}}var ev="mounted",ex="ready",e_="move",ew="moved",eT="click",eS="active",eC="inactive",eE="visible",ek="hidden",eN="refresh",eI="updated",eA="resize",ej="resized",eP="drag",eO="dragging",eL="dragged",eD="scroll",eR="scrolled",eM="destroy",eB="arrows:mounted",eU="arrows:updated",eF="pagination:mounted",e$="pagination:updated",ez="navigation:mounted",eq="autoplay:play",eH="autoplay:playing",eW="autoplay:pause",eV="lazyload:loaded";function eG(e){var t=e?e.event.bus:document.createDocumentFragment(),r=eb();return e&&e.event.on(eM,r.destroy),U(r,{bus:t,on:function(e,i){r.bind(t,E(e).join(" "),function(e){i.apply(i,_(e.detail)?e.detail:[])})},off:g(r.unbind,t),emit:function(e){r.dispatch(t,e,f(arguments,1))}})}function eX(e,t,r,i){var n,a,s=Date.now,o=0,l=!0,c=0;function u(){if(!l){if(o=e?el((s()-n)/e,1):1,r&&r(o),o>=1&&(t(),n=s(),i&&++c>=i))return d();a=b(u)}}function d(){l=!0}function p(){a&&cancelAnimationFrame(a),o=0,a=0,l=!0}return{start:function(t){t||p(),n=s()-(t?o*e:0),l=!1,a=b(u)},rewind:function(){n=s(),o=0,r&&r(o)},pause:d,cancel:p,set:function(t){e=t},isPaused:function(){return l}}}var eK="Arrow",eY=eK+"Left",eQ=eK+"Right",eJ=eK+"Up",eZ=eK+"Down",e0={width:["height"],left:["top","right"],right:["bottom","left"],x:["y"],X:["Y"],Y:["X"],ArrowLeft:[eJ,eQ],ArrowRight:[eZ,eY]},e1="role",e2="tabindex",e4="aria-",e5=e4+"controls",e3=e4+"current",e8=e4+"selected",e6=e4+"label",e7=e4+"labelledby",e9=e4+"hidden",te=e4+"orientation",tt=e4+"roledescription",tr=e4+"live",ti=e4+"busy",tn=e4+"atomic",ta=[e1,e2,"disabled",e5,e3,e6,e7,e9,te,tt],ts=ea+"__",to=ts+"track",tl=ts+"list",tc=ts+"slide",tu=tc+"--clone",td=tc+"__container",tp=ts+"arrows",th=ts+"arrow",tf=th+"--prev",tg=th+"--next",tm=ts+"pagination",ty=tm+"__page",tb=ts+"progress__bar",tv=ts+"toggle",tx=ts+"sr",t_="is-active",tw="is-prev",tT="is-next",tS="is-visible",tC="is-loading",tE="is-focus-in",tk="is-overflow",tN=[t_,tS,tw,tT,tC,tE,tk],tI="touchstart mousedown",tA="touchmove mousemove",tj="touchend touchcancel mouseup click",tP="slide",tO="loop",tL="fade",tD=es+"-interval",tR={passive:!1,capture:!0},tM={Spacebar:" ",Right:eQ,Left:eY,Up:eJ,Down:eZ};function tB(e){return tM[e=T(e)?e:e.key]||e}var tU="keydown",tF=es+"-lazy",t$=tF+"-srcset",tz="["+tF+"], ["+t$+"]",tq=[" ","Enter"],tH=Object.freeze({__proto__:null,Media:function(e,t,r){var i=e.state,n=r.breakpoints||{},a=r.reducedMotion||{},s=eb(),o=[];function l(e){e&&s.destroy()}function c(e,t){var r=matchMedia(t);s.bind(r,"change",u),o.push([e,r])}function u(){var t=i.is(7),n=r.direction,a=o.reduce(function(e,t){return F(e,t[1].matches?t[0]:{})},{});$(r),d(a),r.destroy?e.destroy("completely"===r.destroy):t?(l(!0),e.mount()):n!==r.direction&&e.refresh()}function d(t,n,a){F(r,t),n&&F(Object.getPrototypeOf(r),t),(a||!i.is(1))&&e.emit(eI,r)}return{setup:function(){var e="min"===r.mediaQuery;M(n).sort(function(t,r){return e?t-r:r-t}).forEach(function(t){c(n[t],"("+(e?"min":"max")+"-width:"+t+"px)")}),c(a,p),u()},destroy:l,reduce:function(e){matchMedia(p).matches&&(e?F(r,a):$(r,M(a)))},set:d}},Direction:function(e,t,r){return{resolve:function(e,t,i){var n="rtl"!==(i=i||r.direction)||t?"ttb"===i?0:-1:1;return e0[e]&&e0[e][n]||e.replace(/width|left|right/i,function(e,t){var r=e0[e.toLowerCase()][n]||e;return t>0?r.charAt(0).toUpperCase()+r.slice(1):r})},orient:function(e){return e*("rtl"===r.direction?1:-1)}}},Elements:function(e,t,r){var i,n,a,s=eG(e),o=s.on,l=s.bind,c=e.root,u=r.i18n,d={},p=[],f=[],g=[];function m(){n=R(i=v("."+to),"."+tl),eo(i&&n,"A track/list element is missing."),I(p,D(n,"."+tc+":not(."+tu+")")),B({arrows:tp,pagination:tm,prev:tf,next:tg,bar:tb,toggle:tv},function(e,t){d[t]=v("."+e)}),U(d,{root:c,track:i,list:n,slides:p}),function(){var e=c.id||""+ea+em(ey[ea]=(ey[ea]||0)+1),t=r.role;c.id=e,i.id=i.id||e+"-track",n.id=n.id||e+"-list",!X(c,e1)&&"SECTION"!==c.tagName&&t&&q(c,e1,t),q(c,tt,u.carousel),q(n,e1,"presentation")}(),b()}function y(e){var t=ta.concat("style");h(p),er(c,f),er(i,g),z([i,n],t),z(c,e?t:["style",tt])}function b(){er(c,f),er(i,g),f=x(ea),g=x(to),j(c,f),j(i,g),q(c,e6,r.label),q(c,e7,r.labelledby)}function v(e){var t=ee(c,e);return t&&function(e,t){if(w(e.closest))return e.closest(t);for(var r=e;r&&1===r.nodeType&&!L(r,t);)r=r.parentElement;return r}(t,"."+ea)===c?t:void 0}function x(e){return[e+"--"+r.type,e+"--"+r.direction,r.drag&&e+"--draggable",r.isNavigation&&e+"--nav",e===ea&&t_]}return U(d,{setup:m,mount:function(){o(eN,y),o(eN,m),o(eI,b),l(document,tI+" keydown",function(e){a="keydown"===e.type},{capture:!0}),l(c,"focusin",function(){A(c,tE,!!a)})},destroy:y})},Slides:function(e,t,r){var i=eG(e),n=i.on,a=i.emit,s=i.bind,o=t.Elements,l=o.slides,c=o.list,u=[];function d(){l.forEach(function(e,t){f(e,t,-1)})}function p(){y(function(e){e.destroy()}),h(u)}function f(t,r,i){var n=function(e,t,r,i){var n,a=eG(e),s=a.on,o=a.emit,l=a.bind,c=e.Components,u=e.root,d=e.options,p=d.isNavigation,h=d.updateOnMove,f=d.i18n,m=d.pagination,y=d.slideFocus,b=c.Direction.resolve,v=X(i,"style"),x=X(i,e6
166),_=r>-1,w=R(i,"."+td);function T(){var n=e.splides.map(function(e){var r=e.splide.Components.Slides.getAt(t);return r?r.slide.id:""}).join(" ");q(i,e6,eg(f.slideX,(_?r:t)+1)),q(i,e5,n),q(i,e1,y?"button":""),y&&z(i,tt)}function S(){n||C()}function C(){if(!n){var r,a=e.index;(r=E())!==K(i,t_)&&(A(i,t_,r),q(i,e3,p&&r||""),o(r?eS:eC,k)),function(){var t=function(){if(e.is(tL))return E();var t=Y(c.Elements.track),r=Y(i),n=b("left",!0),a=b("right",!0);return eu(t[n])<=ed(r[n])&&eu(r[a])<=ed(t[a])}(),r=!t&&(!E()||_);if(e.state.is([4,5])||q(i,e9,r||""),q(et(i,d.focusableNodes||""),e2,r?-1:""),y&&q(i,e2,r?-1:0),t!==K(i,tS)&&(A(i,tS,t),o(t?eE:ek,k)),!t&&document.activeElement===i){var n=c.Slides.getAt(e.index);n&&G(n.slide)}}(),A(i,tw,t===a-1),A(i,tT,t===a+1)}}function E(){var i=e.index;return i===t||d.cloneStatus&&i===r}var k={index:t,slideIndex:r,slide:i,container:w,isClone:_,mount:function(){_||(i.id=u.id+"-slide"+em(t+1),q(i,e1,m?"tabpanel":"group"),q(i,tt,f.slide),q(i,e6,x||eg(f.slideLabel,[t+1,e.length]))),l(i,"click",g(o,eT,k)),l(i,"keydown",g(o,"sk",k)),s([ew,"sh",eR],C),s(ez,T),h&&s(e_,S)},destroy:function(){n=!0,a.destroy(),er(i,tN),z(i,ta),q(i,"style",v),q(i,e6,x||"")},update:C,style:function(e,t,r){W(r&&w||i,e,t)},isWithin:function(r,i){var n=ep(r-t);return!_&&(d.rewind||e.is(tO))&&(n=el(n,e.length-n)),n<=i}};return k}(e,r,i,t);n.mount(),u.push(n),u.sort(function(e,t){return e.index-t.index})}function m(e){return e?b(function(e){return!e.isClone}):u}function y(e,t){m(t).forEach(e)}function b(e){return u.filter(w(e)?e:function(t){return T(e)?L(t.slide,e):N(E(e),t.index)})}return{mount:function(){d(),n(eN,p),n(eN,d)},destroy:p,update:function(){y(function(e){e.update()})},register:f,get:m,getIn:function(e){var i=t.Controller,n=i.toIndex(e),a=i.hasFocus()?1:r.perPage;return b(function(e){return eh(e.index,n,n+a-1)})},getAt:function(e){return b(e)[0]},add:function(e,t){k(e,function(e){if(T(e)&&(e=J(e)),C(e)){var i,n,o,u,d=l[t];d?O(e,d):P(c,e),j(e,r.classes.slide),i=e,n=g(a,eA),(u=(o=et(i,"img")).length)?o.forEach(function(e){s(e,"load error",function(){--u||n()})}):n()}}),a(eN)},remove:function(e){Q(b(e).map(function(e){return e.slide})),a(eN)},forEach:y,filter:b,style:function(e,t,r){y(function(i){i.style(e,t,r)})},getLength:function(e){return e?l.length:u.length},isEnough:function(){return u.length>r.perPage}}},Layout:function(e,t,r){var i,n,a,s=eG(e),o=s.on,l=s.bind,c=s.emit,u=t.Slides,d=t.Direction.resolve,p=t.Elements,h=p.root,f=p.track,m=p.list,y=u.getAt,b=u.style;
166function v(){i="ttb"===r.direction,W(h,"maxWidth",en(r.width)),W(f,d("paddingLeft"),w(!1)),W(f,d("paddingRight"),w(!0)),_(!0)}function _(e){var t,s=Y(h);(e||n.width!==s.width||n.height!==s.height)&&(W(f,"height",(t="",i&&(eo(t=T(),"height or heightRatio is missing."),t="calc("+t+" - "+w(!1)+" - "+w(!0)+")"),t)),b(d("marginRight"),en(r.gap)),b("width",r.autoWidth?null:en(r.fixedWidth)||(i?"":S())),b("height",en(r.fixedHeight)||(i?r.autoHeight?null:S():T()),!0),n=s,c(ej),a!==(a=j())&&(A(h,tk,a),c("overflow",a)))}function w(e){var t=r.padding,i=d(e?"right":"left");return t&&en(t[i]||(x(t)?0:t))||"0px"}function T(){return en(r.height||Y(m).width*r.heightRatio)}function S(){var e=en(r.gap);return"calc((100%"+(e&&" + "+e)+")/"+(r.perPage||1)+(e&&" - "+e)+")"}function C(){return Y(m)[d("width")]}function E(e,t){var r=y(e||0);return r?Y(r.slide)[d("width")]+(t?0:I()):0}function k(e,t){var r=y(e);return r?ep(Y(r.slide)[d("right")]-Y(m)[d("left")])+(t?0:I()):0}function N(t){return k(e.length-1)-k(0)+E(0,t)}function I(){var e=y(0);return e&&parseFloat(W(e.slide,d("marginRight")))||0}function j(){return e.is(tL)||N(!0)>C()}return{mount:function(){var e;v(),l(window,"resize load",(e=eX(0,g(c,eA),null,1),function(){e.isPaused()&&e.start()})),o([eI,eN],v),o(eA,_)},resize:_,listSize:C,slideSize:E,sliderSize:N,totalSize:k,getPadding:function(e){return parseFloat(W(f,d("padding"+(e?"Right":"Left"))))||0},isOverflow:j}},Clones:function(e,t,r){var i,n=eG(e),a=n.on,s=t.Elements,o=t.Slides,l=t.Direction.resolve,c=[];function u(){a(eN,d),a([eI,eA],f),(i=g())&&(function(t){var i=o.get().slice(),n=i.length;if(n){for(;i.length<t;)I(i,i);I(i.slice(-t),i.slice(0,t)).forEach(function(a,l){var u,d,p,h=l<t,f=(u=a.slide,d=l,j(p=u.cloneNode(!0),r.classes.clone),p.id=e.root.id+"-clone"+em(d+1),p);h?O(f,i[0].slide):P(s.list,f),I(c,f),o.register(f,l-t+(h?0:n),a.index)})}}(i),t.Layout.resize(!0))}function d(){p(),u()}function p(){Q(c),h(c),n.destroy()}function f(){var e=g();i!==e&&(i<e||!e)&&n.emit(eN)}function g(){var i=r.clones;if(e.is(tO)){if(S(i)){var n=r[l("fixedWidth")]&&t.Layout.slideSize(0);i=n&&ed(Y(s.track)[l("width")]/n)||r[l("autoWidth")]&&e.length||2*r.perPage}}else i=0;return i}return{mount:u,destroy:p}},Move:function(e,t,r){var i,n=eG(e),a=n.on,s=n.emit,o=e.state.set,l=t.Layout,c=l.slideSize,u=l.getPadding,d=l.totalSize,p=l.listSize,h=l.sliderSize,f=t.Direction,g=f.resolve,m=f.orient,y=t.Elements,b=y.list,v=y.track;function x(){t.Controller.isBusy()||(t.Scroll.cancel(),_(e.index),t.Slides.update())}function _(e){w(k(e,!0))}function w(r,i){if(!e.is(tL)){var n=i?r:function(r){if(e.is(tO)){var i=E(r),n=i>t.Controller.getEnd();(i<0||n)&&(r=T(r,n))}return r}(r);W(b,"transform","translate"+g("X")+"("+n+"px)"),r!==n&&s("sh")}}function T(e,t){var r=e-I(t),i=h();return e-m(i*(ed(ep(r)/i)||1))*(t?1:-1)}function C(){w(N(),!0),i.cancel()}function E(e){for(var r=t.Slides.get(),i=0,n=1/0,a=0;a<r.length;a++){var s=r[a].index,o=ep(k(s,!0)-e);if(o<=n)n=o,i=s;else break}return i}function k(t,i){var n,a,s,o=m(d(t-1)-(n=t,"center"===(a=r.focus)?(p()-c(n,!0))/2:a*c(n)||0));return i?(s=o,r.trimSpace&&e.is(tP)&&(s=ef(s,0,m(h(!0)-p()))),s):o}function N(){var e=g("left");return Y(b)[e]-Y(v)[e]+m(u(!1))}function I(e){return k(e?t.Controller.getEnd():0,!!r.trimSpace)}return{mount:function(){i=t.Transition,a([ev,ej,eI,eN],x)},move:function(e,t,r,n){var a,l;e!==t&&(a=e>r,l=m(T(N(),a)),a?l>=0:l<=b[g("scrollWidth")]-Y(v)[g("width")])&&(C(),w(T(N(),e>r),!0)),o(4),s(e_,t,r,e),i.start(t,function(){o(3),s(ew,t,r,e),n&&n()})},jump:_,translate:w,shift:T,cancel:C,toIndex:E,toPosition:k,getPosition:N,getLimit:I,exceededLimit:function(e,t){t=S(t)?N():t;var r=!0!==e&&m(t)<m(I(!1)),i=!1!==e&&m(t)>m(I(!0));return r||i},reposition:x}},Controller:function(e,t,r){var i,n,a,s,o=eG(e),l=o.on,c=o.emit,u=t.Move,d=u.getPosition,p=u.getLimit,h=u.toPosition,f=t.Slides,m=f.isEnough,y=f.getLength,b=r.omitEnd,v=e.is(tO),x=e.is(tP),_=g(I,!1),w=g(I,!0),C=r.start||0,E=C;function k(){n=y(!0),a=r.perMove,s=r.perPage,i=P();var e=ef(C,0,b?i:n-1);e!==C&&(C=e,u.reposition())}function N(){i!==P()&&c("ei")}function I(e,t){var r=a||(R()?1:s),n=A(C+r*(e?-1:1),C,!(a||R()));return -1===n&&x&&!(1>ep(d()-p(!e)))?e?0:i:t?n:j(n)}function A(t,o,l){if(m()||R()){var c=function(t){if(x&&"move"===r.trimSpace&&t!==C)for(var i=d();i===h(t,!0)&&eh(t,0,e.length-1,!r.rewind);)t<C?--t:++t;return t}(t);c!==t&&(o=t,t=c,l=!1),t<0||t>i?t=!a&&(eh(0,t,o,!0)||eh(i,o,t,!0))?O(L(t)):v?l?t<0?-(n%s||s):n:t:r.rewind?t<0?i:0:-1:l&&t!==o&&(t=O(L(o)+(t<o?-1:1)))}else t=-1;return t}function j(e){return v?(e+n)%n||0:e}function P(){for(var e=n-(R()||v&&a?1:s);b&&e-- >0;
166)if(h(n-1,!0)!==h(e,!0)){e++;break}return ef(e,0,n-1)}function O(e){return ef(R()?e:s*e,0,i)}function L(e){return R()?el(e,i):eu((e>=i?n-1:e)/s)}function D(e){e!==C&&(E=C,C=e)}function R(){return!S(r.focus)||r.isNavigation}function M(){return e.state.is([4,5])&&!!r.waitForTransition}return{mount:function(){k(),l([eI,eN,"ei"],k),l(ej,N)},go:function(e,t,r){if(!M()){var n=function(e){var t=C;if(T(e)){var r=e.match(/([+\-<>])(\d+)?/)||[],n=r[1],a=r[2];"+"===n||"-"===n?t=A(C+ +(""+n+(+a||1)),C):">"===n?t=a?O(+a):_(!0):"<"===n&&(t=w(!0))}else t=v?e:ef(e,0,i);return t}(e),a=j(n);a>-1&&(t||a!==C)&&(D(a),u.move(n,a,E,r))}},scroll:function(e,r,n,a){t.Scroll.scroll(e,r,n,function(){var e=j(u.toIndex(d()));D(b?el(e,i):e),a&&a()})},getNext:_,getPrev:w,getAdjacent:I,getEnd:P,setIndex:D,getIndex:function(e){return e?E:C},toIndex:O,toPage:L,toDest:function(e){var t=u.toIndex(e);return x?ef(t,0,i):t},hasFocus:R,isBusy:M}},Arrows:function(e,t,r){var i,n,a=eG(e),s=a.on,o=a.bind,l=a.emit,c=r.classes,u=r.i18n,d=t.Elements,p=t.Controller,h=d.arrows,f=d.track,m=h,y=d.prev,b=d.next,v={};function x(){var e;(e=r.arrows)&&!(y&&b)&&(m=h||H("div",c.arrows),y=S(!0),b=S(!1),i=!0,P(m,[y,b]),h||O(m,f)),y&&b&&(U(v,{prev:y,next:b}),V(m,e?"":"none"),j(m,n=tp+"--"+r.direction),e&&(s([ev,ew,eN,eR,"ei"],C),o(b,"click",g(T,">")),o(y,"click",g(T,"<")),C(),q([y,b],e5,f.id),l(eB,y,b))),s(eI,_)}function _(){w(),x()}function w(){a.destroy(),er(m,n),i?(Q(h?[y,b]:m),y=b=null):z([y,b],ta)}function T(e){p.go(e,!0)}function S(e){return J('<button class="'+c.arrow+" "+(e?c.prev:c.next)+'" type="button"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 40 40" width="40" height="40" focusable="false"><path d="'+(r.arrowPath||"m15.5 0.932-4.3 4.38 14.5 14.6-14.5 14.5 4.3 4.4 14.6-14.6 4.4-4.3-4.4-4.4-14.6-14.6z")+'" />')}function C(){if(y&&b){var t=e.index,r=p.getPrev(),i=p.getNext(),n=r>-1&&t<r?u.last:u.prev,a=i>-1&&t>i?u.first:u.next;y.disabled=r<0,b.disabled=i<0,q(y,e6,n),q(b,e6,a),l(eU,y,b,r,i)}}return{arrows:v,mount:x,destroy:w,update:C}},Autoplay:function(e,t,r){var i,n,a=eG(e),s=a.on,o=a.bind,l=a.emit,c=eX(r.interval,e.go.bind(e,">"),function(e){var t=d.bar;t&&W(t,"width",100*e+"%"),l(eH,e)}),u=c.isPaused,d=t.Elements,p=t.Elements,h=p.root,f=p.toggle,g=r.autoplay,m="pause"===g;function y(){u()&&t.Slides.isEnough()&&(c.start(!r.resetProgress),n=i=m=!1,x(),l(eq))}function b(e){void 0===e&&(e=!0),m=!!e,x(),u()||(c.pause(),l(eW))}function v(){m||(i||n?b(!1):y())}function x(){f&&(A(f,t_,!m),q(f,e6,r.i18n[m?"play":"pause"]))}function _(e){var i=t.Slides.getAt(e);c.set(i&&+X(i.slide,tD)||r.interval)}return{mount:function(){g&&(r.pauseOnHover&&o(h,"mouseenter mouseleave",function(e){i="mouseenter"===e.type,v()}),r.pauseOnFocus&&o(h,"focusin focusout",function(e){n="focusin"===e.type,v()}),f&&o(f,"click",function(){m?y():b(!0)}),s([e_,eD,eN],c.rewind),s(e_,_),f&&q(f,e5,d.track.id),m||y(),x())},destroy:c.cancel,play:y,pause:b,isPaused:u}},Cover:function(e,t,r){var i=eG(e).on;function n(e){t.Slides.forEach(function(t){var r=R(t.container||t.slide,"img");r&&r.src&&a(e,r,t)})}function a(e,t,r){r.style("background",e?'center/cover no-repeat url("'+t.src+'")':"",!0),V(t,e?"none":"")}return{mount:function(){r.cover&&(i(eV,g(a,!0)),i([ev,eI,eN],g(n,!0)))},destroy:g(n,!1)}},Scroll:function(e,t,r){var i,n,a=eG(e),s=a.on,o=a.emit,l=e.state.set,c=t.Move,u=c.getPosition,d=c.getLimit,p=c.exceededLimit,h=c.translate,f=e.is(tP),m=1;function y(e,r,a,s,d){var h=u();if(x(),a&&(!f||!p())){var y,_=t.Layout.sliderSize(),w=(((y=e)>0)-(y<0))*_*eu(ep(e)/_)||0;e=c.toPosition(t.Controller.toDest(e%_))+w}var T=1>ep(h-e);m=1,r=T?0:r||ec(ep(e-h)/1.5,800),n=s,i=eX(r,b,g(v,h,e,d),1),l(5),o(eD),i.start()}function b(){l(3),n&&n(),o(eR)}function v(e,t,i,a){var s,o,l=u(),c=(e+(t-e)*(s=a,(o=r.easingFunc)?o(s):1-Math.pow(1-s,4))-l)*m;h(l+c),f&&!i&&p()&&(m*=.6,10>ep(c)&&y(d(p(!0)),600,!1,n,!0))}function x(){i&&i.cancel()}function _(){i&&!i.isPaused()&&(x(),b())}return{mount:function(){s(e_,x),s([eI,eN],_)},destroy:x,scroll:y,cancel:_}},Drag:function(e,t,r){var i,n,a,s,o,l,c,u,d=eG(e),p=d.on,h=d.emit,f=d.bind,g=d.unbind,m=e.state,b=t.Move,v=t.Scroll,_=t.Controller,w=t.Elements.track,T=t.Media.reduce,S=t.Direction,C=S.resolve,E=S.orient,k=b.getPosition,N=b.exceededLimit,I=!1;function A(){var e=r.drag;c=!e,s="free"===e}function j(e){if(l=!1,!c){var t,i,n=F(e);t=e.target,i=r.noDrag,L(t,"."+ty+", ."+th)||i&&L(t,i)||!n&&e.button||(_.isBusy()?Z(e,!0):(u=n?w:window,o=m.is([4,5]),a=null,f(u,tA,P,tR),f(u,tj,O,tR),b.cancel(),v.cancel(),R(e)))}}function P(t){if(m.is(6)||(m.set(6),h(eP)),t.cancelable)if(o){b.translate(i+M(t)/(I&&e.is(tP)?5:1));var n,a,s,c,u,d,p=B(t)>200,f=I!==(I=N());(p||f)&&R(t),l=!0,h(eO),Z(t)}else{ep(M(n=t))>
166ep(M(n,!0))&&(a=t,u=(c=x(s=r.dragMinThreshold))&&s.mouse||0,d=(c?s.touch:+s)||10,o=ep(M(a))>(F(a)?d:u),Z(t))}}function O(i){m.is(6)&&(m.set(3),h(eL)),o&&(function(i){var n=function(t){if(e.is(tO)||!I){var r=B(t);if(r&&r<200)return M(t)/r}return 0}(i),a=function(e){return k()+((e>0)-(e<0))*el(ep(e)*(r.flickPower||600),s?1/0:t.Layout.listSize()*(r.flickMaxPages||1))}(n),o=r.rewind&&r.rewindByDrag;(T(!1),s)?_.scroll(a,0,r.snap):e.is(tL)?_.go(0>E((n>0)-(n<0))?o?"<":"-":o?">":"+"):e.is(tP)&&I&&o?_.go(N(!0)?">":"<"):_.go(_.toDest(a),!0),T(!0)}(i),Z(i)),g(u,tA,P),g(u,tj,O),o=!1}function D(e){!c&&l&&Z(e,!0)}function R(e){a=n,n=e,i=k()}function M(e,t){return U(e,t)-U(n===e&&a||n,t)}function B(e){return ei(e)-ei(n===e&&a||n)}function U(e,t){return(F(e)?e.changedTouches[0]:e)["page"+C(t?"Y":"X")]}function F(e){return"u">typeof TouchEvent&&e instanceof TouchEvent}return{mount:function(){f(w,tA,y,tR),f(w,tj,y,tR),f(w,tI,j,tR),f(w,"click",D,{capture:!0}),f(w,"dragstart",Z),p([ev,eI],A)},disable:function(e){c=e},isDragging:function(){return o}}},Keyboard:function(e,t,r){var i,n,a=eG(e),s=a.on,o=a.bind,l=a.unbind,c=e.root,u=t.Direction.resolve;function d(){var e=r.keyboard;e&&o(i="global"===e?window:c,tU,f)}function p(){l(i,tU)}function h(){var e=n;n=!0,m(function(){n=e})}function f(t){if(!n){var r=tB(t);r===u(eY)?e.go("<"):r===u(eQ)&&e.go(">")}}return{mount:function(){d(),s(eI,p),s(eI,d),s(e_,h)},destroy:p,disable:function(e){n=e}}},LazyLoad:function(e,t,r){var i=eG(e),n=i.on,a=i.off,s=i.bind,o=i.emit,l="sequential"===r.lazyLoad,c=[ew,eR],u=[];function d(){h(u),t.Slides.forEach(function(e){et(e.slide,tz).forEach(function(t){var i=X(t,tF),n=X(t,t$);if(i!==t.src||n!==t.srcset){var a=r.classes.spinner,s=t.parentElement,o=R(s,"."+a)||H("span",a,s);u.push([t,e,o]),t.src||V(t,"none")}})}),l?y():(a(c),n(c,p),p())}function p(){(u=u.filter(function(t){var i=r.perPage*((r.preloadPages||1)+1)-1;return!t[1].isWithin(e.index,i)||f(t)})).length||a(c)}function f(e){var t=e[0];j(e[1].slide,tC),s(t,"load error",g(m,e)),q(t,"src",X(t,tF)),q(t,"srcset",X(t,t$)),z(t,tF),z(t,t$)}function m(e,t){var r=e[0],i=e[1];er(i.slide,tC),"error"!==t.type&&(Q(e[2]),V(r,""),o(eV,r,i),o(eA)),l&&y()}function y(){u.length&&f(u.shift())}return{mount:function(){r.lazyLoad&&(d(),n(eN,d))},destroy:g(h,u),check:p}},Pagination:function(e,t,r){var i,n,a=eG(e),s=a.on,o=a.emit,l=a.bind,c=t.Slides,u=t.Elements,d=t.Controller,p=d.hasFocus,m=d.getIndex,y=d.go,b=t.Direction.resolve,v=u.pagination,x=[];function _(){i&&(Q(v?f(i.children):i),er(i,n),h(x),i=null),a.destroy()}function w(e){y(">"+e,!0)}function T(e,t){var r=x.length,i=tB(t),n=S(),a=-1;i===b(eQ,!1,n)?a=++e%r:i===b(eY,!1,n)?a=(--e+r)%r:"Home"===i?a=0:"End"===i&&(a=r-1);var s=x[a];s&&(G(s.button),y(">"+a),Z(t,!0))}function S(){return r.paginationDirection||r.direction}function C(e){return x[d.toPage(e)]}function E(){var e=C(m(!0)),t=C(m());if(e){var r=e.button;er(r,t_),z(r,e8),q(r,e2,-1)}if(t){var n=t.button;j(n,t_),q(n,e8,!0),q(n,e2,"")}o(e$,{list:i,items:x},e,t)}return{items:x,mount:function t(){_(),s([eI,eN,"ei"],t);var a=r.pagination;v&&V(v,a?"":"none"),a&&(s([e_,eD,eR],E),function(){var t=e.length,a=r.classes,s=r.i18n,o=r.perPage,h=p()?d.getEnd()+1:ed(t/o);j(i=v||H("ul",a.pagination,u.track.parentElement),n=tm+"--"+S()),q(i,e1,"tablist"),q(i,e6,s.select),q(i,te,"ttb"===S()?"vertical":"");for(var f=0;f<h;f++){var m=H("li",null,i),y=H("button",{class:a.page,type:"button"},m),b=c.getIn(f).map(function(e){return e.slide.id}),_=!p()&&o>1?s.pageX:s.slideX;l(y,"click",g(w,f)),r.paginationKeyboard&&l(y,"keydown",g(T,f)),q(m,e1,"presentation"),q(y,e1,"tab"),q(y,e5,b.join(" ")),q(y,e6,eg(_,f+1)),q(y,e2,-1),x.push({li:m,button:y,page:f})}}(),E(),o(eF,{list:i,items:x},C(e.index)))},destroy:_,getAt:C,update:E}},Sync:function(e,t,r){var i=r.isNavigation,n=r.slideFocus,a=[];function s(){var t,r;e.splides.forEach(function(t){t.isParent||(l(e,t.splide),l(t.splide,e))}),i&&((r=(t=eG(e)).on)(eT,u),r("sk",d),r([ev,eI],c),a.push(t),t.emit(ez,e.splides))}function o(){a.forEach(function(e){e.destroy()}),h(a)}function l(e,t){var r=eG(e);r.on(e_,function(e,r,i){t.go(t.is(tO)?i:e)}),a.push(r)}function c(){q(t.Elements.list,te,"ttb"===r.direction?"vertical":"")}function u(t){e.go(t.index)}function d(e,t){N(tq,tB(t))&&(u(e),Z(t))}return{setup:g(t.Media.set,{slideFocus:S(n)?i:n},!0),mount:s,destroy:o,remount:function(){o(),s()}}},Wheel:function(e,t,r){var i=eG(e).bind,n=0;function a(i){if(i.cancelable){var a,s=i.deltaY,o=s<0,l=ei(i),c=r.wheelMinThreshold||0,u=r.wheelSleep||0;ep(s)>c&&l-n>u&&(e.go(o?"<":">"),n=l),a=o,(!r.releaseWheel||e.state.is(4)||-1!==t.Controller.getAdjacent(a))&&Z(i)}}return{mount:function(){r.wheel&&i(t.Elements.track,"wheel",a,tR)}}},Live:function(e,t,r){var i=eG(e).on,n=t.Elements.track,a=r.live&&!r.isNavigation,s=H("span",tx),o=eX(90,g(l,!1));function l(e){q(n,ti,e),e?(P(n,s),o.start()):(Q(s),o.cancel())}function c(e){a&&q(n,tr,e?"off":"polite")}return{mount:function(){a&&(c(!t.Autoplay.isPaused()),q(n,tn,!0),s.textContent="…",i(eq,g(c,!0)),i(eW,g(c,!1)),i([ew,eR],g(l,!0)))},disable:c,destroy:function(){z(n,[tr,tn,ti]),Q(s)}}}}),tW={type:"slide",role:"region",speed:400,perPage:1,cloneStatus:!0,arrows:!0,pagination:!0,paginationKeyboard:!0,interval:5e3,pauseOnHover:!0,pauseOnFocus:!0,resetProgress:!0,easing:"cubic-bezier(0.25, 1, 0.5, 1)",drag:!0,direction:"ltr",trimSpace
166:!0,focusableNodes:"a, button, textarea, input, select, iframe",live:!0,classes:{slide:tc,clone:tu,arrows:tp,arrow:th,prev:tf,next:tg,pagination:tm,page:ty,spinner:ts+"spinner"},i18n:{prev:"Previous slide",next:"Next slide",first:"Go to first slide",last:"Go to last slide",slideX:"Go to slide %s",pageX:"Go to page %s",play:"Start autoplay",pause:"Pause autoplay",carousel:"carousel",slide:"slide",select:"Select a slide to show",slideLabel:"%s of %s"},reducedMotion:{speed:0,rewindSpeed:0,autoplay:"pause"}};function tV(e,t,r){var i=t.Slides;function n(){i.forEach(function(e){e.style("transform","translateX(-"+100*e.index+"%)")})}return{mount:function(){eG(e).on([ev,eN],n)},start:function(e,t){i.style("transition","opacity "+r.speed+"ms "+r.easing),m(t)},cancel:y}}function tG(e,t,r){var i,n=t.Move,a=t.Controller,s=t.Scroll,o=t.Elements.list,l=g(W,o,"transition");function c(){l(""),s.cancel()}return{mount:function(){eG(e).bind(o,"transitionend",function(e){e.target===o&&i&&(c(),i())})},start:function(t,o){var c=n.toPosition(t,!0),u=n.getPosition(),d=function(t){var i=r.rewindSpeed;if(e.is(tP)&&i){var n=a.getIndex(!0),s=a.getEnd();if(0===n&&t>=s||n>=s&&0===t)return i}return r.speed}(t);ep(c-u)>=1&&d>=1?r.useScroll?s.scroll(c,d,!1,o):(l("transform "+d+"ms "+r.easing),n.translate(c,!0),i=o):(n.jump(t),o())},cancel:c}}var tX=function(){function e(t,r){this.event=eG(),this.Components={},this.state=(i=1,{set:function(e){i=e},is:function(e){return N(E(e),i)}}),this.splides=[],this._o={},this._E={};var i,n=T(t)?ee(document,t):t;eo(n,n+" is invalid."),this.root=n,r=F({label:X(n,e6)||"",labelledby:X(n,e7)||""},tW,e.defaults,r||{});try{F(r,JSON.parse(X(n,es)))}catch(e){eo(!1,"Invalid JSON")}this._o=Object.create(F({},r))}var t,r=e.prototype;return r.mount=function(e,t){var r=this,i=this.state,n=this.Components;return eo(i.is([1,7]),"Already mounted!"),i.set(1),this._C=n,this._T=t||this._T||(this.is(tL)?tV:tG),this._E=e||this._E,B(U({},tH,this._E,{Transition:this._T}),function(e,t){var i=e(r,n,r._o);n[t]=i,i.setup&&i.setup()}),B(n,function(e){e.mount&&e.mount()}),this.emit(ev),j(this.root,"is-initialized"),i.set(3),this.emit(ex),this},r.sync=function(e){return this.splides.push({splide:e}),e.splides.push({splide:this,isParent:!0}),this.state.is(3)&&(this._C.Sync.remount(),e.Components.Sync.remount()),this},r.go=function(e){return this._C.Controller.go(e),this},r.on=function(e,t){return this.event.on(e,t),this},r.off=function(e){return this.event.off(e),this},r.emit=function(e){var t;return(t=this.event).emit.apply(t,[e].concat(f(arguments,1))),this},r.add=function(e,t){return this._C.Slides.add(e,t),this},r.remove=function(e){return this._C.Slides.remove(e),this},r.is=function(e){return this._o.type===e},r.refresh=function(){return this.emit(eN),this},r.destroy=function(e){void 0===e&&(e=!0);var t=this.event,r=this.state;return r.is(1)?eG(this).on(ex,this.destroy.bind(this,e)):(B(this._C,function(t){t.destroy&&t.destroy(e)},!0),t.emit(eM),t.destroy(),e&&h(this.splides),r.set(7)),this},t=[{key:"options",get:function(){return this._o},set:function(e){this._C.Media.set(e,!0,!0)}},{key:"length",get:function(){return this._C.Slides.getLength(!0)}},{key:"index",get:function(){return this._C.Controller.getIndex()}}],function(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,i.key,i)}}(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}();tX.defaults={},tX.STATES={CREATED:1,MOUNTED:2,IDLE:3,MOVING:4,SCROLLING:5,DRAGGING:6,DESTROYED:7};var tK=[[ev,"onMounted"],[ex,"onReady"],[e_,"onMove"],[ew,"onMoved"],[eT,"onClick"],[eS,"onActive"],[eC,"onInactive"],[eE,"onVisible"],[ek,"onHidden"],[eN,"onRefresh"],[eI,"onUpdated"],[eA,"onResize"],[ej,"onResized"],[eP,"onDrag"],[eO,"onDragging"],[eL,"onDragged"],[eD,"onScroll"],[eR,"onScrolled"],[eM,"onDestroy"],[eB,"onArrowsMounted"],[eU,"onArrowsUpdated"],[eF,"onPaginationMounted"],[e$,"onPaginationUpdated"],[ez,"onNavigationMounted"],[eq,"onAutoplayPlay"],[eH,"onAutoplayPlaying"],[eW,"onAutoplayPause"],[eV,"onLazyLoadLoaded"]];function tY(...e){return e.filter(Boolean).join(" ")}function tQ(e){return null!==e&&"object"==typeof e}function tJ(e,t){return!function(e,t){if(e){let r=Object.keys(e);for(let i=0;i<r.length;i++){let n=r[i];if("__proto__"!==n&&!1===t(e[n],n))break}}}(t,(t,r)=>{Array.isArray(t)?e[r]=t.slice():tQ(t)?e[r]=tJ(tQ(e[r])?e[r]:{},t):e[r]=t}),e}var tZ=({children:e,className:t,...r})=>d.default.createElement("div",{className:tY("splide__track",t),...r},d.default.createElement("ul",{className:"splide__list"},e)),t0=class extends d.default.Component{constructor(){super(...arguments),this.splideRef=d.default.createRef(),this.slides=[]}componentDidMount(){let{options:e,extensions:t,transition:r}=this.props,{current:i}=this.splideRef;i&&(this.splide=new tX(i,e),this.bind(this.splide),this.splide.mount(t,r),this.options=tJ({},e||{}),this.slides=this.getSlides())}componentWillUnmount(){this.splide&&(this.splide.destroy(),this.splide=void 0),this.options=void 0,this.slides.length=0}componentDidUpdate(){var e;if(!this.splide)return;let{options:t}=this.props;t&&!function e(t,r){if(Array.isArray(t)&&Array.isArray(r))return t.length===r.length&&!t.some((t,i)=>!e(t,r[i]));if(tQ(t)&&tQ(r)){let i=Object.keys(t),n=Object.keys(r);return i.length===n.length&&!i.some(i=>!Object.prototype.hasOwnProperty.call(r,i)||!e(t[i],r[i]))}return t===r}(this.options,t)&&(this.splide.options=t,this.options=tJ({},t));let r=this.getSlides();e=this.slides,(e.length!==r.length||e.some((e,t)=>e!==r[t]))&&(this.splide.refresh(),this.slides=r)}sync(e){var t;null==(t=this.splide)||t.sync(e)}go(e){var t;null==(t=this.splide)||t.go(e)}getSlides(){var e;if(this.splide){let t=null==(e=this.splide.Components.Elements)?void 0:e.list.children;return t&&Array.prototype.slice.call(t)||[]}return[]}
166bind(e){tK.forEach(([t,r])=>{let i=this.props[r];"function"==typeof i&&e.on(t,(...t)=>{i(e,...t)})})}omit(e,t){return t.forEach(t=>{Object.prototype.hasOwnProperty.call(e,t)&&delete e[t]}),e}render(){let{className:e,tag:t="div",hasTrack:r=!0,children:i,...n}=this.props;return d.default.createElement(t,{className:tY("splide",e),ref:this.splideRef,...this.omit(n,["options",...tK.map(e=>e[1])])},r?d.default.createElement(tZ,null,i):i)}};e.s(["Splide",0,t0,"SplideSlide",0,({children:e,className:t,...r})=>d.default.createElement("li",{className:tY("splide__slide",t),...r},e),"SplideTrack",0,tZ],978520)},227966,e=>{"use strict";e.s(["Default",()=>f]);var t=e.i(843476),r=e.i(774790),i=e.i(978520),n=e.i(271645),a=e.i(211418),s=e.i(84853);e.i(879806);var o=e.i(871084),l=e.i(310099),c=e.i(206303),u=e.i(828029),d=e.i(783697),p=e.i(136905);let h=Number("3000")||3e3,f=(0,s.withStandardComponentWrapper)(e=>{let{DynamicPlaceholderId:a,RenderingIdentifier:s,autoLoop:f,autoPlay:m}=e?.params||{},y="1"===f,b="1"===m,v=`quotecarousel-${a}
166`,x=(0,n.useRef)(null),_=(0,n.useRef)(null),[w,T]=(0,n.useState)(b),[S,C]=(0,n.useState)(0),[E,k]=(0,n.useState)(0),[N,I]=(0,n.useState)(null),{getDictionaryValue:A}=(0,l.default)(),j=(0,u.default)();(0,n.useEffect)(()=>{x.current&&(b?x.current.Components.Autoplay.play():x.current.Components.Autoplay.pause(),T(b))},[b,x,y]),(0,n.useEffect)(()=>{if(!_.current)return;let e=()=>{let e=_.current?.querySelectorAll(".splide__slide");if(!e||0===e.length)return;let t=0,r=[];e.forEach(e=>{let i=e.style.display,n=e.style.visibility,a=e.style.height;e.style.display="block",e.style.visibility="hidden",e.style.height="auto";let s=e.scrollHeight;r.push(s),s>t&&(t=s),e.style.display=i,e.style.visibility=n,e.style.height=a}),t>0&&I(t)},t=setTimeout(e,300),r=new ResizeObserver(()=>{e()});return _.current&&r.observe(_.current),()=>{clearTimeout(t),r.disconnect()}},[S]);let P={autoplay:w,gap:".02rem",arrows:!1,intersection:{inView:{autoplay:w},outView:{autoplay:!1}},interval:h,pagination:!1,perMove:1,perPage:1,rewind:y||w,speed:300,type:y?"loop":"slide",width:"100%",drag:!0,rewindByDrag:y||w,fixedHeight:N||"auto"},O=(e,t)=>{k(t)},L=e=>{C(e?.length)},{base:D,carouselContainer:R,screenReader:M,slideArrows:B,customPagination:U,actionButtonControl:F,customControlWrapper:$,customPaginationDotsWrapper:z,paginationDots:q,dotStyle:H,carouselPlayPauseStyle:W,svgIcons:V}=g();return j?(0,t.jsxs)("section",{"data-component":"authorable/shared/lists/Quotecarousel",id:s||e?.params?.sectionId,className:D(),children:[(0,t.jsx)(d.EditingHelpText,{children:"Carousel rendered as flat list for ease of editing. Use preview to see carousel in action."}),(0,t.jsx)(c.PlaceholderWrapper,{name:v,rendering:e.rendering,render:e=>(0,t.jsx)("div",{className:R(),children:e.map((e,r)=>(0,t.jsx)("div",{className:"relative",children:e},r))}),page:e.page})]}):(0,t.jsx)("section",{"data-component":"authorable/shared/lists/carousel",id:s||e?.params?.sectionId,...(0,p.getTestProps)(`component-carousel-${e?.rendering?.uid}`),className:D(),children:(0,t.jsx)(c.PlaceholderWrapper,{name:v,rendering:e.rendering,render:e=>(0,t.jsxs)("div",{className:R(),ref:_,children:[(0,t.jsx)(i.Splide,{ref:e=>{e?.splide&&(x.current=e.splide)},extensions:{Intersection:r.Intersection},hasTrack:!1,onMounted:L,onMove:O,onMoved:L,options:P,children:(0,t.jsx)(i.SplideTrack,{children:e.map((e,r)=>(0,t.jsx)(i.SplideSlide,{tabIndex:r!==E?-1:0,"aria-hidden":r!==E,...(0,p.getTestProps)(`slide-${r}`),children:e},r))})}),S>1&&(0,t.jsxs)("div",{className:U(),children:[(0,t.jsxs)("div",{className:$(),children:[(0,t.jsxs)("button",{onClick:()=>{x.current&&(w?x.current.Components.Autoplay.pause():x.current.Components.Autoplay.play(),T(e=>!e))},className:F(),"aria-label":`${w?"carousel-pause":"carousel-play"}`,...(0,p.getTestProps)("play-pause-button"),children:[(0,t.jsx)("span",{className:M(),children:A(`${w?"PlaySlideshow":"PauseSlideshow"}`)}),(0,t.jsx)(o.SvgIcon,{className:W(),icon:w?"carousel-pause":"carousel-play",viewBox:w?"0 0 20 20":"11 12 24 24",fill:"none",size:"xss"})]}),(0,t.jsx)("nav",{role:"navigation","aria-label":"Carousel Pagination",...(0,p.getTestProps)("pagination"),children:(0,t.jsx)("ul",{className:z(),children:Array.from({length:S}).map((e,r)=>(0,t.jsx)("li",{children:(0,t.jsx)("button",{onClick:()=>x.current?.go(r),className:q({isActiveSlide:r===E}),"aria-label":`Go to slide ${r+1}`,...(0,p.getTestProps)(`pagination-dot-${r}`),children:(0,t.jsx)(o.SvgIcon,{icon:r===E?"carousel-active-pagedot":"carousel-pagedot",size:r===E?"m":"xxs",viewBox:r===E?"0 0 40 12":"0 0 12 12",className:H({isActiveSlide:r===E})})})},r))})})]}),(0,t.jsxs)("div",{className:B(),children:[(0,t.jsx)("button",{onClick:()=>x.current?.go("<"),className:F({isArrowDisabled:0===E&&!y}),"aria-label":"carousel-prev",disabled:0===E&&!y,...(0,p.getTestProps)("carousel-prev"),children:(0,t.jsx)(o.SvgIcon,{icon:"carousel-arrow-left",size:"xss",viewBox:"0 0 20 20",className:V()})}),(0,t.jsx)("button",{onClick:()=>x.current?.go(">"),className:F({isArrowDisabled:E===S-1&&!y}),"aria-label":"carousel-next",disabled:E===S-1&&!y,...(0,p.getTestProps)("carousel-next"),children:(0,t.jsx)(o.SvgIcon,{icon:"carousel-arrow-right",viewBox:"0 0 20 20",size:"xss",className:V()})})]})]})]}),page:e.page})})},!1),g=(0,a.tv)({slots:{base:[""],carouselContainer:["overflow-hidden","relative","flex","flex-col","gap-spacing-spacing-24"],screenReader:["sr-only"],slideArrows:["flex","gap-spacing-spacing-8"],customPagination:["py-component-carou
166sel-utility-bar-padding-y","px-component-carousel-utility-bar-padding-x","flex","justify-between","flex-wrap","gap-spacing-spacing-16","md:gap-0"],actionButtonControl:["p-spacing-spacing-12","w-11","h-11","bg-color-surface-white","flex","flex-row","items-center","justify-center","shrink-0","relative","border-general-border-width-pagination-button","border-component-carousel-utility-bar-button-border","rounded-general-border-radius-button"],svgIcons:["shrink-0","relative","overflow-visible"],customControlWrapper:["flex","gap-spacing-spacing-16","items-center","flex-wrap"],customPaginationDotsWrapper:["flex","items-center","flex-wrap"],paginationDots:[],carouselPlayPauseStyle:["text-color-fill-brand-1","flex","flex-row","items-center","justify-center","shrink-0","relative"],dotStyle:["!h-6"]},variants:{isActiveSlide:{true:{paginationDots:["!w-[52px]","!h-6","flex","p-1.5","items-center"],dotStyle:["!w-10","text-color-core-color-2-400"]},false:{paginationDots:["w-6","h-6","flex","p-1.5","items-center"],dotStyle:["text-color-grayscale-500"]}},isArrowDisabled:{true:{actionButtonControl:["[&>svg]:opacity-50"]}}}})},832,e=>{"use strict";var t=e.i(843476),r=e.i(774790),i=e.i(978520),n=e.i(271645),a=e.i(211418),s=e.i(84853),o=e.i(783697),l=e.i(136905),c=e.i(38930),u=e.i(296217),d=e.i(828029);let p=Number("3000")||3e3,h=({slide:e,index:r})=>{let{logoImage:i,cta:n}=e,a=(0,d.default)(),{imageWrapper:s,slide:o,slideMedia:p}=g();return(0,t.jsx)("div",{className:o(),"data-component":"authorable/shared/lists/logocarouselitem",...(0,l.getTestProps)(`logocarousel-item-${r}`),children:(0,t.jsx)("div",{className:p(),children:n?.value?.href?(0,t.jsx)(u.default,{field:n,ctaComponentClass:"default",suppressNewTabIcon:!0,className:"focus:ring-2 focus:ring-color-border-border-focus focus:ring-offset-8 focus:w-[107%] focus:bg-transparent focus:overflow-visible focus:rounded-[0.2rem]",editable:a,...(0,l.getTestProps)("cta"),children:(0,t.jsx)(c.default,{className:s(),field:i,editable:a,fetchPriority:"high",...(0,l.getTestProps)("logoimage")})}):(0,t.jsx)(c.default,{className:s(),field:i,editable:a,fetchPriority:"high",...(0,l.getTestProps)("logoimage")})})})},f=(0,s.withStandardComponentWrapper)(e=>{var a;let s,c,u,f,{RenderingIdentifier:g}=e?.params||{},y=(0,d.default)(),b=(0,n.useRef)(null),[v,x]=(0,n.useState)(!0),[,_]=(0,n.useState)(0),[w,T]=(0,n.use
166State)(0),S=(0,n.useMemo)(()=>(e?.staticProps?.search?.results??[]).map((e,t)=>((e,t)=>{let r=(e=>{if(!e)return;let t=(e=>{if(!e||"string"!=typeof e)return;let t=e.trim();if(t.startsWith("http"))return t;let r=t.match(/\bsrc=["']([^"']+)["']/i);return r?.[1]})(e.value);if(t)return t;if(e.src)return e.src;let r=e.jsonValue;if(!r||"object"!=typeof r)return;if("string"==typeof r.src&&r.src)return r.src;let i=r.value;if(i&&"object"==typeof i&&"string"==typeof i.src&&i.src)return i.src})(e?.integrationLogo);if(!r)return null;let i=e?.integrationName?.value??e?.name??`integration-${t}`,n=(e=>{if(!e||"string"!=typeof e)return;let t=e.match(/\balt=["']([^"']*)["']/i);return t?.[1]||void 0})(e?.integrationLogo?.value)??i,a=e?.integrationLink?.url;return{key:`${i}-${t}`,logoImage:{value:{src:r,alt:n}},cta:a?{value:{href:a,linktype:"external",target:"_blank"}}:void 0}})(e,t)).filter(e=>null!==e),[e?.staticProps?.search?.results]);(0,n.useEffect)(()=>{b.current&&(b.current.Components.Autoplay?.play(),b.current.Components.AutoScroll?.play(),x(!0))},[!0,!0,S.length]);let C=e=>{_(e?.length)},{base:E,carouselContainer:k,slideContentWrapper:N,firstSlideOverlay:I,lastSlideOverlay:A}=m();if(y)return(0,t.jsxs)("section",{"data-component":"authorable/shared/lists/Logocarousel",id:g||e?.params?.sectionId,className:E(),children:[(0,t.jsx)(o.EditingHelpText,{children:"Featured integration logos load from GraphQL. Carousel renders as a flat list in the editor; use preview to see Splide in action."}),(0,t.jsx)("div",{className:k(),children:S.map((e,r)=>(0,t.jsx)("div",{className:"relative",children:(0,t.jsx)(h,{slide:e,index:r})},e.key))})]});if(0===S.length)return(0,t.jsx)(t.Fragment,{});let j=(s=(a=S.length)>=5,c=a>2,u=Math.min(2,a),f=s?5:a,{autoplay:!!s&&v,arrows:!1,pauseOnHover:!1,pauseOnFocus:!1,focus:"center",autoScroll:s&&v?{speed:1}:void 0,intersection:{inView:{autoplay:(!!s||!!c)&&v},outView:{autoplay:!1}},interval:p,pagination:!1,perMove:1,perPage:f,gap:"12px",fixedWidth:"227px",breakpoints:{1024:{...4===f?{focus:"center",perPage:f,autoplay:v,drag:"free",rewind:!1,rewindByDrag:!1,type:"loop",gap:"12px",fixedWidth:"227px",autoScroll:v?{speed:1}:void 0,intersection:{inView:{autoplay:v},outView:{autoplay:!1}}}:{}},768:{focus:1,perPage:u,autoplay:!!c&&v,drag:!!c&&"free",rewind:!1,rewindByDrag:!1,type:c?"loop":"slide",gap:"8px",fixedWidth:"150px",autoScroll:c&&v?{speed:1}:void 0,padding:a>=3?{right:"28px"}:void 0}},rewind:!1,speed:300,type:s?"loop":"slide",width:"100%",drag:!!s&&"free",rewindByDrag:!1,accessibility:!0,keyboard:"global",paginationKeyboard:!0,focusableNodes:"a, button, input, textarea, select",slideFocus:!0}),P=4===(S.length>=5?5:S.length);return(0,t.jsx)("section",{"data-component":"authorable/shared/lists/logocarousel",id:g||e?.params?.sectionId,...(0,l.getTestProps)(`logocomponent-carousel-${e?.rendering?.uid}`),className:E(),children:(0,t.jsx)("div",{className:k(),children:(0,t.jsxs)(i.Splide,{ref:e=>{e?.splide&&(b.current=e.splide)},extensions:{Intersection:r.Intersection},hasTrack:!1,onMounted:C,onMove:(e,t)=>{T(t)},onMoved:C,options:j,children:[S.length>4&&(0,t.jsx)("div",{className:`${I()} hidden md:block`}),P&&(0,t.jsx)("div",{className:`${I()} block xl:hidden`}),S.length>2&&(0,t.jsx)("div",{className:`${I()} md:hidden`}),(0,t.jsx)(i.SplideTrack,{children:S.map((e,r)=>(0,t.jsx)(i.SplideSlide,{tabIndex:r!==w?-1:0,"aria-hidden":r!==w,className:"!outline-none focus:!outline-none focus:!ring-0 focus:!border-transparent",...(0,l.getTestProps)(`slide-${r}`),children:(0,t.jsx)("div",{className:N(),children:(0,t.jsx)(h,{slide:e,index:r})})},e.key))}),S.length>4&&(0,t.jsx)("div",{className:`${A()} hidden md:block`}),P&&(0,t.jsx)("div",{className:`${A()} block xl:hidden `}),S.length>2&&(0,t.jsx)("div",{className:`${A()} md:hidden`})]})})})},!1),g=(0,a.tv)({slots:{imageWrapper:["flex","p-2.5","items-start","gap-2.5","flex-1","self-stretch","h-[80px]","w-full","object-contain","scale-150"],slide:["flex","p-0","flex-col","items-center","gap-16","rounded-none","w-full","max-w-full","overflow-hidden"],slideMedia:["flex","w-[150px]","md:w-[227px]","max-w-full","p-4","flex-col","justify-center","items-center","gap-2.5","h-[80px]","md:h-[100px]","m-auto","overflow-hidden","flex-shrink-0","bg-white","rounded-xl","border","border-black/10"]}}),m=(0,a.tv)({slots:{base:[""],carouselContainer:["relative","flex","flex-col","justify-center","items-center","md:max-w-[1080px]","m-auto"],slideContentWrapper:["relative","w-full","h-full","flex","items-center","justify-center"],firstSlideOverlay:["absolute","left-0","top-0","w-[40px]","md:w-[60px]","h-full","pointer-events-none","z-10","bg-gradient-to-r","from-component-client-logo-carousel-bg","to-color-white-alpha-0","from-50%","to-100%"],lastSlideOverlay:["absolute","right-[-8px]","top-0","w-[40px]","md:w-[60px]","h-full","pointer-events-none","z-10","bg-gradient-to-l","from-component-client-logo-carousel-bg","to-color-white-alpha-0","from-50%","to-100%"]}});e.s(["DynamicCarousel",0,f])},106217,637435,e=>{"use strict";e.s(["Default",()=>V,"Enhanced",()=>G,"useLogoCarouselVariant",()=>H],106217),e.i(247167);var t=e.i(843476);function r(e,t,r){return Array.prototype.slice.call(e,t,r)}
166function i(e){return e.bind.apply(e,[null].concat(r(arguments,1)))}function n(e){return requestAnimationFrame(e)}function a(e,t){return typeof t===e}var s=Array.isArray;function o(e,t){(s(e)?e:[e]).forEach(t)}i(a,"function"),i(a,"string"),i(a,"undefined");var l=Object.keys,c=Math.min,u="move",d="moved",p="drag",h="scroll",f="scrolled";function g(e,t,r,i){var a,s,o=Date.now,l=0,u=!0,d=0;function p(){if(!u){if(l=e?c((o()-a)/e,1):1,r&&r(l),l>=1&&(t(),a=o(),i&&++d>=i))return h();n(p)}}function h(){u=!0}function f(){s&&cancelAnimationFrame(s),l=0,s=0,u=!0}return{start:function(t){t||f(),a=o()-(t?l*e:0),u=!1,n(p)},rewind:function(){a=o(),l=0,r&&r(l)},pause:h,cancel:f,set:function(t){e=t},isPaused:function(){return u}}}function m(e,t,r){return Array.prototype.slice.call(e,t,r)}function y(e){return e.bind(null,...m(arguments,1))}function b(e,t){return typeof t===e}function v(e){return null!==e&&b("object",e)}let x=Array.isArray;y(b,"function"),y(b,"string");let _=y(b,"undefined");function w(e,t){(x(e)?e:[e]).forEach(t)}let T=Object.keys;function S(e,t,r){if(e){let i=T(e);i=r?i.reverse():i;for(let r=0;r<i.length;r++){let n=i[r];if("__proto__"!==n&&!1===t(e[n],n))break}}return e}function C(e){return m(arguments,1).forEach(t=>{S(t,(r,i)=>{e[i]=t[i]})}),e}let{min:E,max:k,floor:N,ceil:I,abs:A}=Math,j={speed:1,autoStart:!0,pauseOnHover:!0,pauseOnFocus:!0},P={startScroll:"Start auto scroll",pauseScroll:"Pause auto scroll"};function O(e,t,n){var a,c,m,y;let b,x,T,N,I,A,{on:O,off:L,bind:D,unbind:R}=(a=e?e.event.bus:document.createDocumentFragment(),c=function(){var e=[];function t(e,t,r){o(e,function(e){e&&o(t,function(t){t.split(" ").forEach(function(t){var i=t.split(".");r(e,i[0],i[1])})})})}return{bind:function(r,i,n,a){t(r,i,function(t,r,i){var s="addEventListener"in t,o=s?t.removeEventListener.bind(t,r,n,a):t.removeListener.bind(t,n);s?t.addEventListener(r,n,a):t.addListener(n),e.push([t,r,i,n,o])})},unbind:function(r,i,n){t(r,i,function(t,r,i){e=e.filter(function(e){return e[0]!==t||e[1]!==r||e[2]!==i||!!n&&e[3]!==n||(e[4](),!1)})})},dispatch:function(e,t,r){var i;return"function"==typeof CustomEvent?i=new CustomEvent(t,{bubbles:!0,detail:r}):(i=document.createEvent("CustomEvent")).initCustomEvent(t,!0,!1,r),e.dispatchEvent(i),i},destroy:function(){e.forEach(function(e){e[4]()}),e.length=0}}}(),e&&e.event.on("destroy",c.destroy),function(e){return r(arguments,1).forEach(function(t){!function(e,t){if(e){for(var r=l(e),i=0;i<r.length;i++){var n=r[i];if("__proto__"!==n&&!1===t(e[n],n))break}}}(t,function(r,i){e[i]=t[i]})}),e}(c,{bus:a,on:function(e,t){c.bind(a,(s(e)?e:[e]).join(" "),function(e){t.apply(t,s(e.detail)?e.detail:[])})},off:i(c.unbind,a),emit:function(e){c.dispatch(a,e,r(arguments,1))}})),{translate:M,getPosition:B,toIndex:U,getLimit:F}=t.Move,{setIndex:$,getIndex:z}=t.Controller,{orient:q}=t.Direction,{toggle:H}=t.Elements,{Live:W}=t,{root:V}=e,G=(m=t.Arrows.update,function(){y||(y=g(500,function(){m(),y=null},null,1)).start()}),X={};function K(){e.is("fade")||b||!1===n.autoScroll||(b=g(0,et),X.pauseOnHover&&D(V,"mouseenter mouseleave",e=>{T="mouseenter"===e.type,ee()}),X.pauseOnFocus&&D(V,"focusin focusout",e=>{N="focusin"===e.type,ee()}),X.useToggleButton&&D(H,"click",()=>{x?J():Z()}),O("updated",Q),O([u,p,h],()=>{I=!0,Z(!1)}),O([d,"dragged",f],()=>{I=!1,ee()}),X.autoStart&&("complete"===document.readyState?J():D(window,"load",J)))}function Y(){b&&(b.cancel(),b=null,A=void 0,L([u,p,h,d,f]),R(V,"mouseenter mouseleave focusin focusout"),R(H,"click"))}function Q(){let{autoScroll:e}=n;!1!==e?(X=C({},X,v(e)?e:{}),K()):Y(),b&&!_(A)&&M(A)}function J(){ei()&&(b.start(!0),W.disable(!0),N=T=x=!1,er())}function Z(e=!0){!x&&(x=e,er(),ei()||(b.pause(),W.disable(!1)))}function ee(){x||(T||N||I?Z(!1):J())}function et(){var r,i,a,s;let o,l,c=B(),u=(r=c+q(X.speed||1),e.is("slide")&&(i=r,o=E(a=F(!1),s=F(!0)),l=k(a,s),r=E(k(o,i),l)),r);c!==u?(M(u),function(r){let{length:i}=e,a=(U(r)+i)%i;a!==z()&&($(a),t.Slides.update(),t.Pagination.update(),"nearby"===n.lazyLoad&&t.LazyLoad.check())}(A=B())):(Z(!1),X.rewind&&e.go(X.speed>0?0:t.Controller.getEnd())),G()}function er(){if(H){var e;let t=x?"startScroll":"pauseScroll";e=!x,H&&w("is-active",t=>{t&&H.classList[e?"add":"remove"](t)}),function e(t,r,i){v(r)?S(r,(r,i)=>{e(t,i,r)}):w(t,e=>{null===i||""===i?w(e,e=>{w(r,t=>{e&&e.removeAttribute(t)})}):e.setAttribute(r,String(i))})}(H,"aria-label",n.i18n[t]||P[t])}}function ei(){return!b||b.isPaused()}return{setup:function(){let{autoScroll:e}=n;X=C({},j,v(e)?e:{})},mount:K,destroy:Y,play:J,pause:Z,isPaused:ei}}e.s(["AutoScroll",0,O],637435);var L=e.i(774790),D=e.i(978520),R=e.i(271645),M=e.i(211418),B=e.i(84853),U=e.i(206303),F=e.i(828029),$=e.i(783697),z=e.i(136905);e.i(832);let q=(0,R.createContext)("default"),H=()=>(0,R.useContext)(q),W=Number("3000")||3e3,V=(0,B.withStandardComponentWrapper)(e=>
166{let{DynamicPlaceholderId:r,RenderingIdentifier:i}=e?.params||{},n=`logocarousel-${r}`,a=(0,R.useRef)(null),[s,o]=(0,R.useState)(!0),[,l]=(0,R.useState)(0),[c,u]=(0,R.useState)(0),d=(0,F.default)();(0,R.useEffect)(()=>{a.current&&(a.current.Components.Autoplay?.play(),a.current.Components.AutoScroll?.play(),o(!0))},[!0,a,!0]);let p=(e,t)=>{u(t)},h=e=>{l(e?.length)},{base:f,carouselContainer:g,slideContentWrapper:m,firstSlideOverlay:y,lastSlideOverlay:b}=X({variant:"default"});return d?(0,t.jsx)(q.Provider,{value:"default",children:(0,t.jsxs)("section",{"data-component":"authorable/shared/lists/Logocarousel",id:i||e?.params?.sectionId,className:f(),children:[(0,t.jsx)($.EditingHelpText,{children:"Carousel rendered as flat list for ease of editing. Use preview to see carousel in action."}),(0,t.jsx)(U.PlaceholderWrapper,{name:n,rendering:e.rendering,render:e=>(0,t.jsx)("div",{className:g(),children:e.map((e,r)=>(0,t.jsx)("div",{className:"relative",children:e},r))}),page:e.page})]})}):(0,t.jsx)(q.Provider,{value:"default",children:(0,t.jsx)("section",{"data-component":"authorable/shared/lists/logocarousel",id:i||e?.params?.sectionId,...(0,z.getTestProps)(`logocomponent-carousel-${e?.rendering?.uid}`),className:f(),children:(0,t.jsx)(U.PlaceholderWrapper,{name:n,rendering:e.rendering,render:e=>{var r;let i,n,o,l,u=(i=(r=e.length)>=5,n=r>2,o=Math.min(2,r),l=i?5:r,{autoplay:!!i&&s,arrows:!1,pauseOnHover:!1,pauseOnFocus:!1,focus:"center",autoScroll:i&&s?{speed:1}:void 0,intersection:{inView:{autoplay:(!!i||!!n)&&s},outView:{autoplay:!1}},interval:W,pagination:!1,perMove:1,perPage:l,gap:"12px",fixedWidth:"227px",breakpoints:{1024:{...4===l?{focus:"center",perPage:l,autoplay:s,drag:"free",rewind:!1,rewindByDrag:!1,type:"loop",gap:"12px",fixedWidth:"227px",autoScroll:s?{speed:1}:void 0,intersection:{inView:{autoplay:s},outView:{autoplay:!1}}}:{}},768:{focus:1,perPage:o,autoplay:!!n&&s,drag:!!n&&"free",rewind:!1,rewindByDrag:!1,type:n?"loop":"slide",gap:"8px",fixedWidth:"150px",autoScroll:n&&s?{speed:1}:void 0,padding:r>=3?{right:"28px"}:void 0}},rewind:!1,speed:300,type:i?"loop":"slide",width:"100%",drag:!!i&&"free",rewindByDrag:!1,accessibility:!0,keyboard:"global",paginationKeyboard:!0,focusableNodes:"a, button, input, textarea, select",slideFocus:!0}),d=4===(e.length>=5?5:e.length);return(0,t.jsx)("div",{className:g(),children:(0,t.jsxs)(D.Splide,{ref:e=>{e?.splide&&(a.current=e.splide)},extensions:{Intersection:L.Intersection},hasTrack:!1,onMounted:h,onMove:p,onMoved:h,options:u,children:[e.length>4&&(0,t.jsx)("div",{className:`${y()} hidden md:block`}),d&&(0,t.jsx)("div",{className:`${y()} block xl:hidden`}),e.length>2&&(0,t.jsx)("div",{className:`${y()} md:hidden`}),(0,t.jsx)(D.SplideTrack,{children:e.map((e,r)=>(0,t.jsx)(D.SplideSlide,{tabIndex:r!==c?-1:0,"aria-hidden":r!==c,className:"!outline-none focus:!outline-none focus:!ring-0 focus:!border-transparent",...(0,z.getTestProps)(`slide-${r}`),children:(0,t.jsx)("div",{className:m(),children:e})},r))}),e.length>4&&(0,t.jsx)("div",{className:`${b()} hidden md:block`}),d&&(0,t.jsx)("div",{className:`${b()} block xl:hidden `}),e.length>2&&(0,t.jsx)("div",{className:`${b()} md:hidden`})]})})},page:e.page})})})},!1),G=(0,B.withStandardComponentWrapper)(e=>{let{DynamicPlaceholderId:r,RenderingIdentifier:i}=e?.params||{},n=`logocarousel-${r}`,a=(0,R.useRef)(null),[s,o]=(0,R.useState)(!0),[,l]=(0,R.useState)(0),[c,u]=(0,R.useState)(0),d=(0,F.default)();(0,R.useEffect)(()=>{a.current&&(a.current.Components.Autoplay?.play(),a.current.Components.AutoScroll?.play(),o(!0))},[!0,a,!0]);let p=(e,t)=>{u(t)},h=e=>{l(e?.length)},{base:f,carouselContainer:g,slideContentWrapper:m,firstSlideOverlay:y,lastSlideOverlay:b}=X({variant:"enhanced"});return d?(0,t.jsx)(q.Provider,{value:"enhanced",children:(0,t.jsxs)("section",{"data-component":"authorable/shared/lists/Logocarousel",id:i||e?.params?.sectionId,className:f(),children:[(0,t.jsx)($.EditingHelpText,{children:"Carousel rendered as flat list for ease of editing. Use preview to see carousel in action."}),(0,t.jsx)(U.PlaceholderWrapper,{name:n,rendering:e.rendering,render:e=>(0,t.jsx)("div",{className:g(),children:e.map((e,r)=>(0,t.jsx)("div",{className:"relative",children:e},r))}),page:e.page})]})}):(0,t.jsx)(q.Provider,{value:"enhanced",children:(0,t.jsx)("section",{"data-component":"authorable/shared/lists/logocarousel",id:i||e?.params?.sectionId,...(0,z.getTestProps)(`logocomponent-carou
166sel-${e?.rendering?.uid}`),className:f(),children:(0,t.jsx)(U.PlaceholderWrapper,{name:n,rendering:e.rendering,render:e=>{var r;let i,n,o,l,u=(i=(r=e.length)>=5,n=r>2,o=Math.min(2,r),l=i?5:r,{autoplay:!1,arrows:!1,pauseOnHover:!1,pauseOnFocus:!1,focus:"center",autoScroll:i&&s?{speed:.3,pauseOnHover:!1,pauseOnFocus:!1}:void 0,intersection:{inView:{autoplay:!1},outView:{autoplay:!1}},pagination:!1,perMove:1,perPage:l,gap:"12px",fixedWidth:"227px",breakpoints:{1024:{...4===l?{focus:"center",perPage:l,autoplay:!1,type:"loop",gap:"12px",fixedWidth:"227px",autoScroll:s?{speed:.3,pauseOnHover:!1,pauseOnFocus:!1}:void 0,intersection:{inView:{autoplay:!1},outView:{autoplay:!1}}}:{}},768:{focus:1,perPage:o,autoplay:!1,type:n?"loop":"slide",gap:"8px",fixedWidth:"150px",autoScroll:n&&s?{speed:.3,pauseOnHover:!1,pauseOnFocus:!1}:void 0,padding:r>=3?{right:"28px"}:void 0}},type:i?"loop":"slide",width:"100%",accessibility:!0,keyboard:"global",paginationKeyboard:!0,focusableNodes:"a, button, input, textarea, select",slideFocus:!0}),d=4===(e.length>=5?5:e.length);return(0,t.jsx)("div",{className:g(),children:(0,t.jsxs)(D.Splide,{ref:e=>{e?.splide&&(a.current=e.splide)},extensions:{AutoScroll:O,Intersection:L.Intersection},hasTrack:!1,onMounted:h,onMove:p,onMoved:h,options:u,children:[e.length>4&&(0,t.jsx)("div",{className:`${y()} hidden md:block`}),d&&(0,t.jsx)("div",{className:`${y()} block xl:hidden`}),e.length>2&&(0,t.jsx)("div",{className:`${y()} md:hidden`}),(0,t.jsx)(D.SplideTrack,{children:e.map((e,r)=>(0,t.jsx)(D.SplideSlide,{tabIndex:r!==c?-1:0,"aria-hidden":r!==c,className:"!outline-none focus:!outline-none focus:!ring-0 focus:!border-transparent",...(0,z.getTestProps)(`slide-${r}`),children:(0,t.jsx)("div",{className:m(),children:e})},r))}),e.length>4&&(0,t.jsx)("div",{className:`${b()} hidden md:block`}),d&&(0,t.jsx)("div",{className:`${b()} block xl:hidden `}),e.length>2&&(0,t.jsx)("div",{className:`${b()} md:hidden`})]})})},page:e.page})})})},!1),X=(0,M.tv)({slots:{base:[""],carouselContainer:["relative","flex","flex-col","justify-center","items-center","md:max-w-[1080px]","m-auto"],slideContentWrapper:["relative","w-full","h-full","flex","items-center","justify-center"],slideOverlay:["absolute","inset-0","pointer-events-none","transition-opacity","duration-300"],firstSlideOverlay:["absolute","left-0","top-0","w-[40px]","md:w-[60px]","h-full","pointer-events-none","z-10","bg-gradient-to-r","from-component-client-logo-carousel-bg","to-color-white-alpha-0","from-50%","to-100%"],lastSlideOverlay:["absolute","right-[-8px]","top-0","w-[40px]","md:w-[60px]","h-full","pointer-events-none","z-10","bg-gradient-to-l","from-component-client-logo-carousel-bg","to-color-white-alpha-0","from-50%","to-100%"]},variants:{variant:{default:{base:[""]},enhanced:{base:["logo-carousel-enhanced"]}}},defaultVariants:{variant:"default"}})},274653,e=>{"use strict";e.s(["Default",()=>c]);var t=e.i(843476),r=e.i(211418),i=e.i(84853),n=e.i(38930),a=e.i(136905),s=e.i(296217),o=e.i(828029),l=e.i(106217);let c=(0,i.withStandardComponentWrapper)(e=>{let{cta:r,logoImage:i}=e?.fields||{},c=(0,o.default)(),{imageWrapper:d,slide:p,slideMedia:h}=u({variant:(0,l.useLogoCarouselVariant)()});return(0,t.jsx)("div",{className:p(),"data-component":"authorable/shared/lists/logocarouselitem",...(0,a.getTestProps)(`logocarousel-item-${e?.rendering?.uid}`),children:(0,t.jsx)("div",{className:h(),children:r?.value?.href?(0,t.jsx)(s.default,{field:r,ctaComponentClass:"default",suppressNewTabIcon:!0,className:"focus:ring-2 focus:ring-color-border-border-focus focus:ring-offset-8 focus:w-[107%] focus:bg-transparent focus:overflow-visible focus:rounded-[0.2rem]",editable:c,...(0,a.getTestProps)("cta"),children:(0,t.jsx)(n.default,{className:d(),field:i,editable:c,fetchPriority:"high",...(0,a.getTestProps)("logoimage")})}):(0,t.jsx)(n.default,{className:d(),field:i,editable:c,fetchPriority:"high",...(0,a.getTestProps)("logoimage")})})})}),u=(0,r.tv)({slots:{imageWrapper:["flex","p-2.5","items-start","gap-2.5","flex-1","self-stretch","h-[80px]","w-full","object-contain","scale-150"],slide:["flex","p-0","flex-col","items-center","gap-16","rounded-none","w-full","max-w-full","overflow-hidden"],slideMedia:["flex","w-[150px]","md:w-[227px]","max-w-full","p-4","flex-col","justify-center","items-center","gap-2.5","h-[80px]","md:h-[100px]","m-auto","overflow-hidden","flex-shrink-0"]},variants:{variant:{default:{slideMedia:["bg-white","rounded-xl","border","border-black/10"]},enhanced:{slideMedia:["bg-transparent","rounded-none","border-0"]}}},defaultVariants:{variant:"default"}})},624248,e=>{"use strict";e.s(["Default",()=>t.Default,"DynamicCarousel",()=>r.DynamicCarousel,"Enhanced",()=>t.Enhanced,"useLogoCarouselVariant",()=>t.useLogoCarouselVariant]);
166var t=e.i(106217),r=e.i(832)},484503,e=>{"use strict";var t=e.i(843476),r=e.i(133267),i=e.i(136905),n=e.i(271645),a=e.i(211418),s=e.i(38930),o=e.i(693888);let l=(0,a.tv)({slots:{base:["w-full"],imageStyle:["mb-general-spacing-title-margin-bottom","max-w-[150px]"],richTextContainer:["overflow-hidden","transition-all","duration-300"],richTextWrapper:["[&_*:not(h1):not(h2):not(h3):not(h4):not(h5):not(h6)]:text-[#685C79]","[&_*:not(h1):not(h2):not(h3):not(h4):not(h5):not(h6)]:text-typography-font-size-body-medium","[&_*:not(h1):not(h2):not(h3):not(h4):not(h5):not(h6)]:font-typography-font-weight-body","[&_*:not(h1):not(h2):not(h3):not(h4):not(h5):not(h6)]:leading-typography-line-height-body-medium","[&_*:not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(li)]:my-general-spacing-title-margin-bottom","[&_li_*]:!my-0","[&_:is(h1,h2,h3,h4,h5,h6)]:text-typography-font-size-small","[&_:is(h1,h2,h3,h4,h5,h6)]:font-typography-font-weight-small","[&_:is(h1,h2,h3,h4,h5,h6)]:leading-typography-line-height-small"],viewToggle:["text-[color:var(--component-button-white-filled-text,#360065)]",'font-[family-name:var(--typography-font-family-body,"Euclid_Circular_A")]',"text-typography-font-size-body-medium","not-italic","font-typography-font-weight-body","leading-typography-line-height-body-medium","block","bg-transparent","border-none","p-0","cursor-pointer"]},variants:{expanded:{true:{richTextContainer:["max-h-none"]},false:{richTextContainer:["max-h-[315px]"]}}}});e.s(["Default",0,e=>{let{image:a,content:c,socialShare:u}=e?.fields||{},{RenderingIdentifier:d}=e?.params||{},[p,h]=(0,n.useState)(!1),[f,g]=(0,n.useState)(!1),[m,y]=(0,n.useState)(315),b=(0,n.useRef)(null),{base:v,imageStyle:x,richTextWrapper:_,richTextContainer:w,viewToggle:T}=l();return(0,n.useEffect)(()=>{if(!b.current)return;let e=b.current.querySelector(".ck-content")??b.current,t=e.scrollHeight>315;if(g(t),t){let t=b.current.getBoundingClientRect().top,r=document.createRange();r.selectNodeContents(e);let i=0;Array.from(r.getClientRects()).forEach(e=>{let r=e.bottom-t;r<=315&&r>i&&(i=r)}),y(i>0?Math.floor(i):315)}},[c?.value]),(0,t.jsxs)("div",{"data-component":"authorable/shared/lists/infocarditem",id:d,...(0,i.getTestProps)(`card-item-${e?.rendering?.uid}`),className:v(),children:[a?.value?.src&&(0,t.jsx)(s.default,{field:a,fetchPriority:"high",className:x(),...(0,i.getTestProps)("image")}),(0,t.jsx)("div",{ref:b,className:w({expanded:p||!f}),style:!p&&f?{maxHeight:`${m}px`}:void 0,children:(0,t.jsx)(r.default,{field:c,className:_(),...(0,i.getTestProps)("rich-text")})}),f&&(0,t.jsx)("button",{className:T(),onClick:()=>h(e=>!e),children:p?"- View less":"+ View all"}),u?.value&&(0,t.jsx)(o.Default,{params:{variant:"inline"},rendering:{componentName:"InfoCardItem"}})]})}])},181748,e=>{"use strict";e.s(["Default",()=>s]);var t=e.i(843476),r=e.i(389980),i=e.i(136905),n=e.i(211418),a=e.i(206303);let s=e=>{let{DynamicPlaceholderId:n,RenderingIdentifier:s}=e?.params||{},{page:l}=e,c=`infocard-${n}`,u=e?.params?.selectTheme,{base:d,wrapper:p,card:h,columnWrapper:f}=o();return(0,t.jsx)(r.BrandAndThemeProvider,{theme:u,children:(0,t.jsx)("div",{className:d(),"data-component":"authorable/shared/lists/infocard",id:s||e.params?.sectionId,...(0,i.getTestProps)(`component-stats-${e?.rendering?.uid}`),children:(0,t.jsx)("div",{className:f(),children:(0,t.jsx)(a.PlaceholderWrapper,{name:c,rendering:e.rendering,page:l,render:e=>(0,t.jsx)("ul",{className:p(),"aria-label":"List of info cards",children:e.map((r,n)=>(0,t.jsx)("li",{className:h({hasBorder:n!==e.length-1,removePadding:0===n}),role:"listitem",...(0,i.getTestProps)(`card-${n}`),children:r},n))})})})})})},o=(0,n.tv)({slots:{base:["bg-component-section-bg"],columnWrapper:["bg-white","p-spacing-spacing-24","md:p-spacing-spacing-40","rounded-border-radius-radius-4","shadow-[0px_8px_16px_-4px]","shadow-color-black-alpha-10"],wrapper:["w-full","flex","flex-col","lg:flex-row"],card:["w-full","flex-1","py-spacing-spacing-32","lg:py-0","pr-0","pl-0","lg:px-spacing-spacing-24"]},variants:{hasBorder:{true:{card:["border-b lg:border-b-0 lg:border-r border-[rgba(0,0,0,0.20)]"]},false:{card:["lg:!pr-0 !pb-0"]}},removePadding:{true:{card:["lg:!pl-0 !pt-0"]},false:{}}}})},971659,e=>{"use strict";var t=e.i(843476),r=e.i(271645);let i=(0,r.createContext)({openItemId:null,toggleItem:()=>{},isItemOpen:()=>!1,registerItem:()=>{},allOpen:!1,shouldHideBottomBorder:()=>!1,showGridItemCTAs:!1,ShowBothItemCTAs:!1});e.s(["IconFeatureGridContextProvider",0,function({children:e,allOpen:n=!1,showGridItemCTAs:a=!1,ShowBothItemCTAs:s=!1}){let[o,l]=(0,r.useState)(null),[c,u]=(0,r.useState)([]),d=(0,r.useCallback)(e=>{u(t=>{if(!t.includes(e)){let r=[...t,e];return 0===t.length&&l(e),r}return t})},[]),p=(0,r.useCallback)(e=>{l(t=>t===e?null:e)},[]),h=(0,r.useCallback)(e=>!!n||o===e,[o,n]),f=(0,r.useCallback)(e=>{let t=c.indexOf(e);return -1!==t&&t!==c.length-1&&h(c[t+1])},[c,h]);return(0,t.jsx)(i.Provider,{value:{openItemId:o,toggleItem:p,isItemOpen:h,registerItem:d,allOpen:n,shouldHideBottomBorder:f,showGridItemCTAs:a,ShowBothItemCTAs:s},children:e})},"useIconFeatureGridItemContext",0,function(e){let{isItemOpen:t,toggleItem:n,registerItem:a,allOpen:s,shouldHideBottomBorder:o,showGridItemCTAs:l,ShowBothItemCTAs:c}=(0,r.useContext)(i);(0,r.useEffect)(()=>{e&&a(e)},[e,a]);let u=t(e),d=o(e);return{isOpening:u,toggleAccordion:(0,r.useCallback)(()=>{s||n(e)},[n,e,s]),allOpen:s,hideBottomBorder:d,showGridItemCTAs:l,ShowBothItemCTAs:c}}])},422532,e=>{"use strict";var t=e.i(843476),r=e.i(271645),i=e.i(84853),n=e.i(136905),a=e.i(211418),s=e.i(296217),o=e.i(38930),l=e.i(133267),c=e.i(340189),u=e.i(474176),d=e.i(971659),p=e.i(828029),h=e.i(202191);let f=e=>{let{icon:i,description:a,heading:f,ctaLink:g,headingHtmlLevel:m,descriptionDesktopFontSize:b,descriptionMobileFontSize:v,headingDesktopFontSize:x,headingMobileFontSize:_}=e?.fields,{uid:w}=e?.rendering||{},T=(0,u.parseStyleParams)(e.params,["cta1","cta2"]),S=`grid-accordion-${w}`,C=`grid-accordion-content-${w}`,E=(0,p.default)(),k=(0,h.getHeadingTag)(m,E,"h3"),N=(0,o.normalizeImageUrl)(i?.value?.src),I=!N||N.startsWith("/")||N.startsWith("./")||!N.startsWith("http://")&&!N.startsWith("https://"),A=e=>{if(!e)return"none";try{return`url("${e.replace(/"/g,'\\"')}")`}catch{return"none"}},j=(0,r.useRef)(null),P=(0,r.useRef)(null),{isOpening:O,toggleAccordion:L,allOpen:D,hideBottomBorder:R,showGridItemCTAs:M,ShowBothItemCTAs:B}=(0,d.useIconFeatureGridItemContext)(w??""),{base:U,gridItemWrapper:F,buttonWrapper:$,iconWrapper:z,contentContainer:q,contentContainerInner:H,richTextWrapper:W,headingText:V,ctaWrapper:G,headingWrapper:X}=y({isOpening:O,allOpen:D,hideBottomBorder:R}),K=(0,h.getTypographyClassName)(W,v,b),Y=(0,h.getTypographyClassName)(V,_,x);return(0,t.jsx)("div",{className:U(),"data-component":"authorable/shared/lists/iconfeaturegriditem",onClick:D?void 0:L,onKeyDown:D?void 0:e=>
166{("Enter"===e.key||" "===e.key)&&(e.preventDefault(),L())},role:D?void 0:"button",tabIndex:D?-1:0,"aria-expanded":O,"aria-controls":D?void 0:C,...(0,n.getTestProps)(`icon-feature-grid-item-${S}`),children:(0,t.jsxs)("div",{className:F(),children:[(0,t.jsx)("div",{className:$(),ref:j,...(0,n.getTestProps)("toggle-button"),children:(0,t.jsxs)("div",{className:X(),children:[(0,t.jsx)("div",{className:z(),"aria-hidden":"true",children:E||I?(0,t.jsx)(o.default,{field:i,className:"object-contain w-full h-full",...(0,n.getTestProps)("icon-feature-grid-item-icon")}):(0,t.jsxs)("div",{className:"relative w-full h-full",children:[(0,t.jsx)(o.default,{field:i,className:"object-contain w-full h-full opacity-0",...(0,n.getTestProps)("icon-feature-grid-item-icon")}),(0,t.jsx)("div",{className:"absolute inset-0 pointer-events-none [mask-size:contain] [mask-repeat:no-repeat] [mask-position:center] bg-gradient-to-r from-color-core-gradient-1-stop-3 via-color-core-gradient-1-stop-2 to-color-core-gradient-1-stop-1 from-[0%] via-[80%] to-[100%]",style:{WebkitMaskImage:A(N),maskImage:A(N)}})]})}),(0,t.jsx)(l.default,{field:f,className:Y,tag:k,id:S,...(0,n.getTestProps)("icon-feature-grid-item-heading")})]})}),(0,t.jsx)("div",{id:C,"aria-labelledby":S,className:q(),role:"region",ref:P,tabIndex:O?void 0:-1,"aria-hidden":!O,children:(0,t.jsxs)("div",{className:H(),children:[(a?.value||E)&&(0,t.jsx)(l.default,{className:K,field:a,tabIndex:-1,...(0,n.getTestProps)("content")}),(M||B)&&(g?.value?.href||E)&&(0,t.jsx)("div",{className:G(),children:(0,t.jsx)(s.default,{ctaComponentClass:"component-icon-grid-item-button-color",ctaStyle:(0,c.getCtaStyle)(T.cta1,"secondary"),field:g,suppressNewTabIcon:!0,...(0,n.getTestProps)("primary-cta")})})]})})]})},S)},g=(0,i.withStandardComponentWrapper)(f),m=(0,i.withStandardComponentWrapper)(f),y=(0,a.tv)({defaultVariants:{isOpening:!1,allOpen:!1,hideBottomBorder:!1},slots:{base:["overflow-hidden","w-full"],gridItemWrapper:["flex","flex-col","items-start","w-full"],buttonWrapper:["duration-300","flex","items-center","transition-none","w-full","scroll-mt-[123px]"],iconWrapper:["aspect-[1/1]","h-10","w-10","flex","items-center","justify-center","overflow-hidden","relative","shrink-0"],headingWrapper:["flex","items-center","flex-1","gap-spacing-spacing-16"],headingText:["font-typography-font-family-header","[&>span]:bg-clip-text","[&>span]:text-transparent","[&>span]:bg-gradient-to-r","[&>span]:from-color-core-color-2-400","[&>span]:via-color-core-gradient-1-stop-2","[&>span]:to-color-core-gradient-1-stop-1","[&>span]:from-[0%]","[&>span]:via-[40%]","[&>span]:to-[100%]"],contentContainer:["duration-300","ease-in-out","grid","overflow-hidden","transition-all","w-full"],contentContainerInner:["overflow-hidden","flex","flex-col","gap-spacing-spacing-24"],richTextWrapper:["font-typography-font-family-body","[&_sup]:text-[65%]","[&_sup]:top-[-0.1em]","[&_sub]:text-[65%]"],ctaWrapper:["flex","[&>a]:w-auto","[&>a]:focus:outline-offset-[-2px]","p-1"]},variants:{isOpening:{false:{base:["py-spacing-spacing-32","px-spacing-spacing-24","rounded-t-component-accordion-item-border-radius","rounded-b-border-radius-radius-5","border-b-border-width-width-025","border-component-accordion-item-border"],buttonWrapper:[""],headingWrapper:[""],iconWrapper:[],headingText:["text-component-icon-grid-section-heading","text-typography-font-size-xsmall","md:text-typography-font-size-small","font-typography-font-weight-xsmall","md:font-typography-font-weight-small","leading-typography-line-height-xsmall","md:leading-typography-line-height-small"],contentContainer:["grid-rows-[0fr]","opacity-0","pointer-events-none","select-none","invisible"]},true:{base:["rounded-border-radius-radius-5","p-component-accordion-item-padding-x","bg-component-icon-grid-surface"],gridItemWrapper:["gap-spacing-spacing-24"],buttonWrapper:[],headingWrapper:["flex-col","md:flex-row"],iconWrapper:["!h-[100px]","!w-[100px]","md:!h-20","md:!w-20"],headingText:["text-component-icon-grid-heading","text-typography-font-size-medium","leading-typography-line-height-medium","font-typography-font-weight-medium"],contentContainer:["grid-rows-[1fr]","opacity-100","visible","!bg-component-accordion-item-surface-active"],richTextWrapper:["text-component-icon-grid-description","text-typography-font-size-body-medium","font-typography-font-weight-body","leading-typography-line-height-body-medium"]}},allOpen:{false:{base:["cursor-pointer"]},true:{base:["cursor-default"]}},hideBottomBorder:{false:{},true:{base:["!border-b-0"]}}}});e.s(["Default",0,g,"ShowGridItemCTAs",0,m])},598905,e=>{"use strict";e.s(["Default",()=>y,"ShowBothItemCTAs",()=>v,"ShowGridItemCTAs",()=>b]);var t=e.i(843476),r=e.i(211418),i=e.i(84853),n=e.i(136905),a=e.i(206303),s=e.i(133267),o=e.i(296217),l=e.i(389980),c=e.i(340189),u=e.i(474176),d=e.i(202191),p=e.i(828029),h=e.i(971659),f=e.i(783697),g=e.i(506914);let m=e=>
166{let{DynamicPlaceholderId:r,RenderingIdentifier:i}=e?.params||{},{title:m,ctaLink:y,titleHtmlLevel:b,titleDesktopFontSize:v,titleMobileFontSize:_,subText:w,subTextEnable:T,subTextDesktopFontSize:S,subTextMobileFontSize:C}=e?.fields??{},{showGridItemCTAs:E=!1,ShowBothItemCTAs:k=!1}=e,N=`icon-feature-grid-${r}`,I=e?.params?.selectTheme,A=(0,u.parseStyleParams)(e.params,["cta1","cta2"]),j=(0,p.default)(),P=(0,d.getHeadingTag)(b,j),O=`icon-feature-grid-heading-${e?.rendering?.uid||i||r}`,L=i||e?.params?.sectionId,{base:D,contentWrapper:R,headingText:M,subHeading:B,iconFeatureGridItem:U}=x(),F=(0,d.getTypographyClassName)(M,_,v),$=(0,d.getTypographyClassName)(B,C,S);return(0,t.jsxs)("section",{"data-component":"authorable/shared/lists/iconfeaturegrid",id:L,"aria-labelledby":O,...(0,n.getTestProps)(`component-iconfeaturegrid-${e?.rendering?.uid}`),children:[(0,t.jsx)(f.EditingHelpText,{children:"Icons will not render with the gradient in edit mode."}),(0,t.jsx)(l.BrandAndThemeProvider,{theme:I,children:(0,t.jsxs)("div",{className:D(),children:[(0,t.jsxs)("div",{className:R(),children:[(0,t.jsx)(s.default,{field:m,tag:P,id:O,className:F,...(0,n.getTestProps)("heading")}),T?.value&&(0,t.jsx)(g.default,{className:$,field:w,tag:"p",...(0,n.getTestProps)("sub text")}),(!E||k)&&(0,t.jsx)("div",{children:(0,t.jsx)(o.default,{ctaComponentClass:"component-icon-grid-section-button-color",ctaStyle:(0,c.getCtaStyle)(A.cta1,"primary"),field:y,suppressNewTabIcon:!0,...(0,n.getTestProps)("icongrid-ctaLink")})})]}),(0,t.jsx)("div",{className:U(),role:"group","aria-label":"Icon feature grid items",children:(0,t.jsx)(h.IconFeatureGridContextProvider,{allOpen:j,showGridItemCTAs:E,ShowBothItemCTAs:k,children:(0,t.jsx)(a.PlaceholderWrapper,{name:N,rendering:e.rendering,page:e.page})})})]})})]})},y=(0,i.withStandardComponentWrapper)(m,!1),b=(0,i.withStandardComponentWrapper)(e=>(0,t.jsx)(m,{...e,showGridItemCTAs:!0}),!1),v=(0,i.withStandardComponentWrapper)(e=>(0,t.jsx)(m,{...e,ShowBothItemCTAs:!0}),!1),x=(0,r.tv)({slots:{base:["flex","flex-col","md:flex-row","items-center","md:self-stretch","md:items-start","bg-component-section-bg","py-general-spacing-margin-y","px-general-spacing-margin-x","md:gap-space-between-macro","gap-space-between-loose","relative","before:z-[-1]","before:h-full","before:absolute","before:top-0","before:left-[calc(-50vw+50%)]","before:bg-component-hero-bg","before:right-[calc(-50vw+50%)]"],contentWrapper:["flex","flex-col","items-start","md:gap-spacing-spacing-48","gap-spacing-spacing-24","p-padding-none","max-w-[748px]","w-full"],headingText:["text-component-section-title","font-typography-font-family-header","font-typography-font-weight-xlarge","md:font-typography-font-weight-display","text-typography-font-size-xlarge","md:text-typography-font-size-display","leading-typography-line-height-xlarge","md:leading-typography-line-height-display","[&>span]:bg-clip-text","[&>span]:text-transparent","[&>span]:bg-gradient-to-r","[&>span]:from-color-core-color-2-400","[&>span]:via-color-core-gradient-1-stop-2","[&>span]:to-color-core-gradient-1-stop-1","[&>span]:from-[0%]","[&>span]:via-[40%]","[&>span]:to-[100%]"],subHeading:["font-typography-font-family-body","font-typography-font-weight-body","text-typography-font-size-body-xlarge","text-typography-line-height-body-xlarge","text-component-section-subtitle"],iconFeatureGridItem:["flex","flex-col","max-w-[691px]","w-full","items-start","gap-spacing-spacing-0"]},variants:{hasCustomFontSize:{false:{headingText:["text-typography-font-size-xlarge","md:text-typography-font-size-display","leading-typography-line-height-xlarge","md:leading-typography-line-height-display"]}}},defaultVariants:{hasCustomFontSize:!1}})},505851,e=>{"use strict";e.s(["Default",()=>f,"useCarouselContext",()=>h]);var t=e.i(843476),r=e.i(774790),i=e.i(978520),n=e.i(271645),a=e.i(211418),s=e.i(84853),o=e.i(206303),l=e.i(828029),c=e.i(783697),u=e.i(136905);let d=Number("3000")||3e3,p=(0,n.createContext)(null),h=()=>{let e=(0,n.useContext)(p);return e||{totalSlides:1,currentIndex:0,onSlideChange:()=>{},onPlayPause:()=>{},isCarouselPlaying:!0,autoLoop:!1,lazyLoadingDelay:5e3,registerVideoPlayer:()=>{},unregisterVideoPlayer:()=>{},onVideoPlayPause:()=>{},isVideoPlaying:!0}},f=(0,s.withStandardComponentWrapper)(e=>{let{DynamicPlaceholderId:a,RenderingIdentifier:s,autoLoop:h,autoPlay:f,lazyLoading:m,fullWidth:y}=e?.params||{},b="1"===h,v="1"===f,x=`herocarousel-${a}`,_=(0,n.useRef)(null),w=(0,n.useRef)([]),T=(0,n.useRef)(new Map),[S,C]=(0,n.use
166State)(v),[E,k]=(0,n.useState)(0),[N,I]=(0,n.useState)(0),[A,j]=(0,n.useState)(null),[P,O]=(0,n.useState)(!0),L=(0,l.default)();(0,n.useEffect)(()=>{_.current&&(v?_.current.Components.Autoplay.play():_.current.Components.Autoplay.pause(),C(v))},[v,_,b]);let D=(0,n.useCallback)(()=>{0!==w.current.length&&requestAnimationFrame(()=>{requestAnimationFrame(()=>{let e=0,t=[];w.current.forEach(r=>{if(r){r.style.height="auto";let i=r.scrollHeight;t.push(i),i>e&&(e=i)}}),e>0&&(w.current.forEach(t=>{t&&(t.style.height=`${e}px`)}),j(e))})})},[]);(0,n.useEffect)(()=>{if(E>0&&!L){let e=setTimeout(()=>{D()},100);return()=>clearTimeout(e)}},[E,D,L]),(0,n.useEffect)(()=>{if(L)return;let e=()=>{E>0&&D()};return window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[E,D,L]);let R={autoplay:S,gap:".02rem",arrows:!1,pauseOnFocus:!1,pauseOnHover:!1,intersection:{inView:{autoplay:S},outView:{autoplay:!1}},interval:d,pagination:!1,perMove:1,perPage:1,rewind:E>1&&(b||S),speed:300,type:b?"loop":"slide",width:"100%",drag:!0,rewindByDrag:E>1&&(b||S)},M=(0,n.useCallback)((e,t,r)=>{I(t)},[]),B=(0,n.useCallback)(e=>{k(e?.length),L||A||D()},[L,A,D]),U=(0,n.useCallback)((e,t)=>{t&&T.current.set(e,t)},[]),F=(0,n.useCallback)(e=>{T.current.delete(e)},[]),$=(0,n.useCallback)((e,t)=>{let r=void 0!==t?t:N,i=T.current.get(r);if(i&&"function"==typeof i.play&&"function"==typeof i.pause)try{e?(i.play().catch(()=>{}),O(!0)):(i.pause(),O(!1))}catch{}},[N]),z=(0,n.useCallback)(()=>{let e=T.current.get(N);if(e)try{e.paused?(e.play().catch(()=>{}),O(!0)):(e.pause(),O(!1))}catch{}},[N]);(0,n.useEffect)(()=>{L||$(S,N)},[S,N,L,$]),(0,n.useEffect)(()=>{if(L)return;let e=T.current.get(N);if(!e)return;let t=()=>O(!0),r=()=>O(!1);return e.addEventListener?.("play",t),e.addEventListener?.("pause",r),void 0!==e.paused&&O(!e.paused),()=>{e.removeEventListener?.("play",t),e.removeEventListener?.("pause",r)}},[N,L]);let q=(0,n.useMemo)(()=>({totalSlides:E,currentIndex:N,onSlideChange:e=>_.current?.go(e),onPlayPause:e=>{e?_.current?.Components.Autoplay.play():_.current?.Components.Autoplay.pause(),C(e)},isCarouselPlaying:S,autoLoop:b,lazyLoadingDelay:Number(m)||5e3,registerVideoPlayer:U,unregisterVideoPlayer:F,onVideoPlayPause:z,isVideoPlaying:P}),[E,N,S,b,m,U,F,z,P]),{base:H,carouselContainer:W,editingSlideWrapper:V}=g({fullWidth:!!y});return L?(0,t.jsxs)("section",{"data-component":"authorable/shared/lists/herocarousel",id:s,className:H(),children:[(0,t.jsx)(c.EditingHelpText,{children:"Hero Carousel rendered as flat list for ease of editing. Use preview to see carousel in action."}),(0,t.jsx)(o.PlaceholderWrapper,{name:x,rendering:e.rendering,render:e=>(0,t.jsx)("div",{className:W(),children:e.map((e,r)=>(0,t.jsx)("div",{className:V(),children:e},r))}),page:e.page})]}):(0,t.jsx)("section",{"data-component":"authorable/shared/lists/herocarousel",id:s,...(0,u.getTestProps)(`home-page-hero-${e?.rendering?.uid}`),className:H(),children:(0,t.jsx)(o.PlaceholderWrapper,{name:x,rendering:e.rendering,render:e=>(0,t.jsx)(p.Provider,{value:q,children:(0,t.jsx)("div",{className:W(),children:(0,t.jsx)(i.Splide,{ref:e=>{e?.splide&&(_.current=e.splide)},extensions:{Intersection:r.Intersection},hasTrack:!1,onMounted:B,onMove:M,onMoved:B,options:R,children:(0,t.jsx)(i.SplideTrack,{children:e.map((e,r)=>(0,t.jsx)(i.SplideSlide,{tabIndex:r!==N?-1:0,"aria-hidden":r!==N,...(0,u.getTestProps)(`slide-${r}`),children:(0,t.jsx)("div",{ref:e=>{w.current[r]=e},style:{height:!L&&A?`${A}px`:"auto",minHeight:L?"auto":"700px"},children:r===N?n.default.isValidElement(e)?n.default.cloneElement(e,{slideIndex:r}):e:null})},r))})})})}),page:e.page})})},!1),g=(0,a.tv)({slots:{base:[],carouselContainer:["overflow-hidden","relative","flex","flex-col"],editingSlideWrapper:["relative"]},variants:{fullWidth:{true:{base:["w-screen mx-[calc(50%-50vw)]"]}}}})},263759,e=>{"use strict";e.s(["postYoutubeEmbedCommand",0,function(e,t){let r=e?.contentWindow;r&&r.postMessage(JSON.stringify({event:"command",func:t,args:""}),"*")}])},333744,e=>{"use strict";e.s(["Default",()=>w]);var t=e.i(843476),r=e.i(211418),i=e.i(271645),n=e.i(84853),a=e.i(136905),s=e.i(133267),o=e.i(506914),l=e.i(296217),c=e.i(469579),u=e.i(474176),d=e.i(340189);e.i(879806);var p=e.i(871084),h=e.i(310099),f=e.i(505851),g=e.i(815451),m=e.i(828029),y=e.i(38930),b=e.i(783697),v=e.i(841428),x=e.i(202191),_=e.i(263759);let w=(0,n.withStandardComponentWrapper)(e=>{let{mediaId:r,youtubeVideoId:n,title:w,description:S,primaryCTA:C,secondaryCTA:E,image:k,titleMobileFontSize:N,titleDesktopFontSize:I,descriptionMobileFontSize:A,descriptionDesktopFontSize:j,titleHtmlLevel:P,video:O}=e.fields||{},{slideIndex:L=0}=e,{totalSlides:D,currentIndex:R,onSlideChange:M,onPlayPause:B,isCarouselPlaying:U,autoLoop:F,lazyLoadingDelay:$,registerVideoPlayer:z,unregisterVideoPlayer:q}=(0,f.useCarouselContext)(),H=(0,i.useRef)(null),W=(0,i.useRef)(null),V=(0,i.useRef)(null),[G,X]=(0,i.useState)(!0),[
166K,Y]=(0,i.useState)(!1),[Q,J]=(0,i.useState)(0),[Z,ee]=(0,i.useState)(""),[et,er]=(0,i.useState)(!1),ei=(0,m.default)(),{getDictionaryValue:en}=(0,h.default)(),ea=(0,x.getHeadingTag)(P,ei,"h2"),es=(0,i.useMemo)(()=>(0,u.parseStyleParams)(e.params,["cta1","cta2"]),[e.params]),eo=(0,i.useMemo)(()=>{let e=r?.value;return"string"==typeof e?e.trim():""},[r?.value]),el=!!eo,ec=(0,i.useMemo)(()=>{let e=n?.value;return"string"==typeof e?e.trim():""},[n?.value]),eu=!!ec,ed=(0,i.useMemo)(()=>{let e=O?.value?.url,t=O?.value?.href,r=O?.value?.src;return"string"==typeof e&&e.trim()?e.trim():"string"==typeof t&&t.trim()?t.trim():"string"==typeof r&&r.trim()?r.trim():""},[O?.value?.url,O?.value?.href,O?.value?.src]),ep=!!ed,eh=el||ep||eu,ef=(0,i.useMemo)(()=>!!k?.value?.src,[k?.value?.src]),eg=(0,i.useMemo)(()=>eh&&!ei&&!et&&(ef||Z),[eh,ei,et,ef,Z]),em=(0,i.useMemo)(()=>(0,d.getCtaStyle)(es.cta1,"primary"),[es.cta1]),ey=(0,i.useMemo)(()=>(0,d.getCtaStyle)(es.cta2,"secondary"),[es.cta2]),eb=(0,i.useMemo)(()=>!ei&&es.cta1?.ctaIcon==="play"&&eh,[ei,es.cta1?.ctaIcon,eh]),ev=(0,i.useMemo)(()=>!ei&&es.cta2?.ctaIcon==="play"&&eh,[ei,es.cta2?.ctaIcon,eh]),ex=(0,i.useMemo)(()=>eh||ei,[eh,ei]),e_=(0,i.useMemo)(()=>Array.from({length:D},(e,t)=>t),[D]);(0,i.useEffect)(()=>{if(!eh||void 0===L)return;let e=()=>{H.current&&z(L,H.current)};e();let t=setTimeout(e,100),r=setTimeout(e,500);return()=>{clearTimeout(t),clearTimeout(r),q(L)}},[L,z,q,eh]);let ew=(0,i.useCallback)(()=>{let e=H.current;if(null!=e){if(eu&&e instanceof HTMLIFrameElement){(0,_.postYoutubeEmbedCommand)(e,G?"pauseVideo":"playVideo"),X(!G);return}("function"==typeof e.paused?e.paused():!!e.paused)?(e.play?.(),X(!0)):(e.pause?.(),X(!1))}},[eu,G]),eT=(0,i.useCallback)(e=>{e.currentTarget.blur(),(eo||ep||eu)&&(J(e=>e+1),Y(!0))},[eo,ep,eu]),eS=(0,i.useCallback)(()=>{Y(!1),J(0)},[]),eC=(0,i.useCallback)(()=>{B&&B(!U)},[B,U]),eE=(0,i.useCallback)(()=>{M?.(R-1)},[M,R]),ek=(0,i.useCallback)(()=>{M?.(R+1)},[M,R]);(0,i.useEffect)(()=>{let e=e=>{"Escape"===e.key&&K&&eS()};return K?(document.body.style.overflow="hidden",window.addEventListener("keydown",e)):(document.body.style.overflow="unset",V.current=setTimeout(()=>{document.activeElement instanceof HTMLElement&&document.activeElement.blur(),V.current=null},350)),()=>{window.removeEventListener("keydown",e),V.current&&clearTimeout(V.current)}},[K,eS]),(0,i.useEffect)(()=>{(async()=>{if(ef)return ee("");if(eu)return ee(`https://img.youtube.com/vi/${ec}/hqdefault.jpg`);if(!eo)return ee("");try{let e=await fetch(`https://fast.wistia.com/oembed?url=https://home.wistia.com/medias/${eo}&format=json`),t=await e.json();t.thumbnail_url&&ee(t.thumbnail_url)}catch(e){console.error("Failed to fetch Wistia thumbnail",e),ee(`https://fast.wistia.com/embed/medias/${eo}/swatch`)}})(),er(!1)},[eo,eu,ec,ef]),(0,i.useEffect)(()=>{if(!eh||ei)return;let e=setTimeout(()=>{er(!0)},$);return()=>clearTimeout(e)},[eh,ei,$]),(0,i.useEffect)(()=>()=>{V.current&&clearTimeout(V.current),Y(!1),J(0)},[]);let{backgroundVideo:eN,youtubeCoverCrop:eI,base:eA,contentContainer:ej,contentOverlay:eP,heroContent:eO,heroTitle:eL,heroSubtitle:eD,ctaButtons:eR,pauseButtonWrapper:eM,pauseButton:eB,cta:eU,imageWrapper:eF,customPagination:e$,customControlWrapper:ez,customPaginationDotsWrapper:eq,paginationDots:eH,dotStyle:eW,actionButtonControl:eV,slideArrows:eG,svgIcons:eX,carouselPlayPauseStyle:eK,screenReader:eY}=T(),eQ=(0,x.getTypographyClassName)(eL,N,I),eJ=(0,x.getTypographyClassName)(eD,A,j);return(0,t.jsxs)("div",{className:eA(),"data-component":"authorable/shared/lists/herocarouselitem",children:[(0,t.jsxs)("div",{className:`${eN()} ${ei?"":"pointer-events-none"}`,children:[eh?(0,t.jsxs)(t.Fragment,{children:[eg&&(0,t.jsx)(t.Fragment,{children:ef?(0,t.jsx)(y.default,{field:k,className:`${eF()} z-10`,layout:"fill",priority:0===L,fetchPriority:"high",...(0,a.getTestProps)("sitecore-thumbnail")}):Z?(0,t.jsx)(y.default,{field:{value:{src:Z,alt:"Video thumbnail"}},className:`${eF()} z-10`,layout:"fill",priority:0===L,fetchPriority:"high",...(0,a.getTestProps)("wistia-thumbnail")}):null}),eu?(0,t.jsx)("div",{className:`${eI()} ${eg?"opacity-0":"opacity-100"} transition-opacity duration-500`,children:(0,t.jsx)(g.default,{ref:H,mediaId:eo,youtubeId:ec,url:ed||void 0,autoplay:!0,muted:!0,controls:!1,bigPlayButton:!1,wistiaPopover:!1,endVideoBehavior:"loop",loop:!0,roundedPlayer:0,objectfit:"cover",className:"absolute inset-0 h-full w-full border-0"})}):(0,t.jsx)(g.default,{ref:H,mediaId:eo,youtubeId:ec,url:ed||void 0,autoplay:!0,muted:!0,controls:!1,bigPlayButton:!1,wistiaPopover:!1,endVideoBehavior:"loop",loop:eu,roundedPlayer:0,objectfit:"cover",className:`absolute inset-0 w-full h-full object-cover object-center ${eg?"opacity-0":"opacity-100"} transition-opacity duration-500`})]}):(0,t.jsx)(y.default,{field:k,className:`${eF()} ${ei?"z-50":""}`,editable:!0,priority:0===L,fetchPriority:"high",...(0,a.getTestProps)("image")}),(0,t.jsx)("div",{className:`absolute inset-0 bg-gradient-to-t from-color-black-alpha-70 to-color-black-alpha-70 z-10 pointer-events-none ${ei?"-z-10":""}`})]}),(0,t.jsxs)("div",{className:ej(),children:[(0,t.jsxs)("div",{className:`${eP()} ${ei?"pointer-events-none":"pt-[80px]"}`,children:[ei&&(0,t.jsx)(t.Fragment,{children:(0,t.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,t.jsxs)("div",{className:"flex flex-row gap-2 pointer-events-auto",children:[(0,t.jsx)(b.EditingHelpText,{children:"Add a media ID to the Hero Carousel Item to enable video playback."}),(0,t.jsx)(o.default,{field:r,placeholder:"Wistia Media ID",className:"text-sm text-white",...(0,a.getTestProps)("media-id-field")})]}),(0,t.jsxs)("div",{className:"flex flex-row gap-2 pointer-events-auto",children:[(0,t.jsx)(b.EditingHelpText,{children:"YouTube video ID (optional)."}),(0,t.jsx)(o.default,{field:n,placeholder:"YouTube video ID",className:"text-sm text-white",...(0,a.getTestProps)("youtube-video-id-field")})]}),(0,t.jsxs)("div",{className:"flex flex-row gap-2 pointer-events-auto",children:[(0,t.jsxs)(b.EditingHelpText,{children:["Add a video URL to the Hero Carousel Item to enable video playback.",(0,t.jsx)("br",{}),(0,t.jsx)("div",{className:"text-xs text-red-500",children:"Note :To use a Media Library video, select it in the Content Editor."})]}),(0,t.jsx)(l.default,{field:O,className:"text-sm text-white",...(0,a.getTestProps)("video-url-field"),ctaVariant:"custom",ctaStyle:{ctaVariant:"link"}})]})]})}),(0,t.jsxs)("div",{className:`${eO()} ${ei?"pointer-events-auto":""}`,children:[(0,t.jsx)(s.default,{field:w,tag:ea,...(0,a.getTestProps)("heading"),className:eQ}),(0,t.jsx)(s.default,{field:S,className:eJ,...(0,a.getTestProps)("description")})]}),(C?.value?.href||ei)&&(0,t.jsxs)("div",{className:`${eR()} ${ei?"pointer-events-auto":""}`,children:[eb?(0,t.jsx)(c.default,{className:eU(),ctaComponentClass:"component-homepage-hero-button-color-1",ctaStyle:em,onClick:eT,text:C?.value?.text||"",...(0,a.getTestProps)("primary-cta")}):(0,t.jsx)(l.default,{ctaComponentClass:"component-homepage-hero-button-color-1",className:eU(),ctaStyle:em,field:C,suppressNewTabIcon:!0,...(0,a.getTestProps)("primary-cta")}),ev?(0,t.jsx)(c.default,{className:eU(),ctaComponentClass:"component-homepage-hero-button-color-2",ctaStyle:ey,onClick:eT,text:E?.value?.text||"",...(0,a.getTestProps)("secondary-cta")}):(0,t.jsx)(l.default,{ctaComponentClass:"component-homepage-hero-button-color-2",className:eU(),ctaStyle:ey,field:E,suppressNewTabIcon:!0,...(0,a.getTestProps)("secondary-cta")})]})]}),ex&&(0,t.jsx)("button",{type:"button",className:eM(),onClick:ew,"aria-label":en(`${G?"PauseVideo":"PlayVideo"}`),children:(0,t.jsx)("span",{className:eB(),children:en(`${G?"PauseVideo":"PlayVideo"}`)})}),D>1&&(0,t.jsxs)("div",{className:e$(),children:[(0,t.jsxs)("div",{className:ez(),children:[(0,t.jsxs)("button",{onClick:eC,className:eV(),"aria-label":`${U?"carousel-pause":"carousel-play"}`,...(0,a.getTestProps)("play-pause-button"),children:[(0,t.jsx)("span",{className:eY(),children:en(`${U?"PlaySlideshow":"PauseSlideshow"}`)}),(0,t.jsx)(p.SvgIcon,{"aria-hidden":"true",className:eK(),icon:U?"carousel-pause":"carousel-play",viewBox:U?"0 0 20 20":"11 12 24 24",fill:"none",size:"xss"})]}),(0,t.jsx)("nav",{role:"navigation","aria-label":"Carousel Pagination",...(0,a.getTestProps)("pagination"),children:(0,t.jsx)("ul",{className:eq(),children:e_.map(e=>(0,t.jsx)("li",{children:(0,t.jsx)("button",{onClick:()=>M?.(e),className:eH({isActiveSlide:e===R}),"aria-label":`Go to slide ${e+1}`,...(0,a.getTestProps)(`pagination-dot-${e}`),children:(0,t.jsx)(p.SvgIcon,{"aria-hidden":"true",icon:e===R?"carousel-active-pagedot":"carousel-pagedot",size:e===R?"m":"xxs",viewBox:e===R?"0 0 40 12":"0 0 12 12",className:eW({isActiveSlide:e===R})})})},e))})})]}),(0,t.jsxs)("div",{className:eG(),children:[(0,t.jsx)("button",{onClick:eE,className:eV({isArrowDisabled:0===R&&!F}),"aria-label":"carousel-prev",disabled:0===R&&!F,...(0,a.getTestProps)("carousel-prev"),children:(0,t.jsx)(p.SvgIcon,{"aria-hidden":"true",icon:"carousel-arrow-left",size:"xss",viewBox:"0 0 20 20",className:eX()})}),(0,t.jsx)("button",{onClick:ek,className:eV({isArrowDisabled:R===D-1&&!F}),"aria-label":"carousel-next",disabled:R===D-1&&!F,...(0,a.getTestProps)("carousel-next"),children:(0,t.jsx)(p.SvgIcon,{"aria-hidden":"true",icon:"carousel-arrow-right",size:"xss",className:eX(),viewB
166ox:"0 0 20 20"})})]})]})]}),K&&(0,t.jsx)(v.default,{content:(0,t.jsx)(g.default,{ref:W,mediaId:eo,youtubeId:ec,url:ed||void 0,autoplay:!0,muted:!1,controls:!0,bigPlayButton:!0,className:"w-full h-full mx-auto aspect-video"},`video-${eo||ec}-${Q}`),id:`video-modal-${eo||ec||L}-${Q}`,label:w?.value||"Video",openOnLoad:!0,size:"xLarge"},`modal-${Q}`)]})}),T=(0,r.tv)({slots:{base:["pt-general-spacing-margin-y","pb-margin-none","flex","flex-col","gap-spacing-spacing-0","items-stretch","justify-center","min-h-[700px]","md:min-h-[810px]","h-full","relative","overflow-hidden","bg-gradient-to-b","from-color-black-alpha-70","to-color-black-alpha-30","w-full"],backgroundVideo:["absolute","inset-0","w-full","h-full","object-cover","object-center","z-0","min-h-[700px]","md:min-h-[810px]","[&_.wistia_click_to_play_overlay]:hidden","[&_.wistia_play_button]:hidden","[&_.wistia_control_bar]:hidden","[&_.wistia_scrubber]:hidden","[&_.wistia_volume]:hidden","[&_.wistia_fullscreen]:hidden","[&_.wistia_big_play_button]:hidden","[&_.wistia_click_to_play]:hidden","[&_.wistia_embed]:pointer-events-none","[&_.wistia_embed]:cursor-default","[&_wistia-player]:!h-full"],youtubeCoverCrop:["absolute inset-0 overflow-hidden","[&>iframe]:!absolute [&>iframe]:!left-1/2 [&>iframe]:!top-1/2 [&>iframe]:!right-auto [&>iframe]:!bottom-auto [&>iframe]:!size-auto [&>iframe]:!max-w-none [&>iframe]:!-translate-x-1/2 [&>iframe]:!-translate-y-1/2 [&>iframe]:!border-0","[&>iframe]:!h-[155%] [&>iframe]:!w-[155%] max-sm:[&>iframe]:!h-[175%] max-sm:[&>iframe]:!w-[175%] md:[&>iframe]:!h-[135%] md:[&>iframe]:!w-[135%]"],imageWrapper:["w-full","h-full","object-cover","object-center","min-h-[700px]","md:min-h-[810px]","absolute","inset-0"],contentContainer:["relative","z-20","flex","flex-1","flex-col","justify-end","w-full","max-w-screen-dimensions-max-width","min-w-screen-dimensions-min-width","mx-auto","px-general-spacing-margin-x"],contentOverlay:["flex","flex-col","justify-end","flex-start","gap-margin-loose","items-start","justify-end","flex-1","max-w-columns-two-third-max-width","relative","z-20","pb-layout-base-margin-y","pointer-events-auto"],heroContent:["flex","flex-col","gap-padding-less","items-start","justify-start","self-stretch","shrink-0","relative"],heroTitle:["text-left","!text-color-text-white","font-typography-font-family-header","text-typography-font-size-xlarge","font-typography-font-weight-xlarge","leading-typography-line-height-xlarge","md:text-typography-font-size-display","md:font-typography-font-weight-display","md:leading-typography-line-height-display","bg-clip-text","relative","self-stretch","[&_span]:bg-clip-text","[&_span]:text-transparent","[&_span]:bg-gradient-to-r","[&_span]:from-color-core-color-2-400","[&_span]:via-color-core-gradient-1-stop-2","[&_span]:to-color-core-gradient-1-stop-1","[&_span]:from-[0%]","[&_span]:via-[40%]","[&_span]:to-[100%]"],heroSubtitle:["!text-color-text-white","text-left","font-typography-font-family-header","text-typography-font-size-small","font-typography-font-weight-small","leading-typography-line-height-small","relative","self-stretch","[&_sup]:text-[65%]","[&_sup]:top-[-0.1em]","[&_sub]:text-[65%]"],ctaButtons:["flex","flex-col","md:flex-row","gap-spacing-spacing-12","justify-start","shrink-0","relative"],cta:["!w-max"],buttonIcon:["shrink-0","w-5","h-5","relative","overflow-visible"],pauseButtonWrapper:["bg-color-black-alpha-5","rounded-general-border-radius-button","border-solid","border-general-border-width-button","border-color-white-alpha-5","py-spacing-spacing-16","px-spacing-spacing-24","flex","flex-row","gap-spacing-spacing-8","items-center","justify-center","shrink-0","absolute","xl:right-10","xl:top-10","right-6","top-6","cursor-pointer","z-30","pointer-events-auto"],pauseButton:["text-component-button-white-ghost-text","text-center","font-typography-font-family-body","text-typography-font-size-body-xSmall","font-typography-font-weight-body-semibold","leading-typography-line-height-body-xSmall","relative","cursor-pointer"],customPagination:["py-component-carousel-utility-bar-padding-y","flex","justify-between","flex-wrap","gap-spacing-spacing-16","md:gap-0","w-full","z-[11]","mb-margin-less"],customControlWrapper:["flex","gap-spacing-spacing-16","items-center","flex-wrap"],customPaginationDotsWrapper:["flex","items-center","flex-wrap"],paginationDots:[],dotStyle:["!h-6"],actionButtonControl:["p-spacing-spacing-12","w-11","h-11","flex","flex-row","items-center","justify-center","shrink-0","relative","border-general-border-width-pagination-button","border-component-carou
166sel-utility-bar-button-border","rounded-general-border-radius-button","bg-component-carousel-utility-bar-button-bg"],slideArrows:["flex","gap-spacing-spacing-8"],svgIcons:["shrink-0","relative","overflow-visible"],carouselPlayPauseStyle:["text-color-fill-brand-1","flex","flex-row","items-center","justify-center","shrink-0","relative"],screenReader:["sr-only"]},variants:{isActiveSlide:{true:{paginationDots:["!w-[52px]","!h-6","flex","p-1.5","items-center"],dotStyle:["!w-10","text-color-core-color-2-400"]},false:{paginationDots:["w-6","h-6","flex","p-1.5","items-center"],dotStyle:["text-color-grayscale-500"]}},isArrowDisabled:{true:{actionButtonControl:["[&>svg]:opacity-50"]}}}})},87579,e=>{"use strict";var t=e.i(843476),r=e.i(211418),i=e.i(84853),n=e.i(506914),a=e.i(133267),s=e.i(296217);e.i(879806);var o=e.i(871084),l=e.i(389980),c=e.i(136905);let u=(0,i.withStandardComponentWrapper)(e=>{let{RenderingIdentifier:r}=e?.params||{},{headline:i,description:u,ctaLink:p,selectFiles:h}=e?.fields||{},f=e?.params?.selectTheme,g=e=>e<1024?`${e} B`:e<1048576?`${(e/1024).toFixed(1)} KB`:`${(e/1048576).toFixed(1)} MB`,{container:m,list:y,item:b,fileIcon:v,fileInfo:x,fileSize:_,headlineText:w,descriptionText:T,ctaLinkText:S,ctaWrapper:C,rightSection:E,fileDisplayName:k,fileTypeIcon:N,anchor:I}=d();return(0,t.jsx)("section",{"data-component":"authorable/shared/lists/filelist",id:r,"aria-label":"Downloadable files",...(0,c.getTestProps)(`component-file-list-${e?.rendering?.uid}`),children:(0,t.jsx)(l.BrandAndThemeProvider,{theme:f,children:(0,t.jsxs)("div",{className:m(),children:[(0,t.jsxs)("div",{children:[(0,t.jsx)(n.default,{editable:!0,field:i,tag:"h2",className:w(),...(0,c.getTestProps)("headline")}),(0,t.jsx)(a.default,{field:u,className:T(),...(0,c.getTestProps)("description")}),(0,t.jsx)("div",{className:C(),children:(0,t.jsx)(s.default,{ctaVariant:"primary",ctaComponentClass:"component-file-list-button-color-1",field:p,className:S(),...(0,c.getTestProps)("cta")})})]}),h?(0,t.jsx)("ul",{className:y(),children:h.map((e,r)=>(0,t.jsx)("li",{className:b(),children:(0,t.jsxs)("a",{href:e.url,target:"_blank",rel:"noopener noreferrer",className:I(),"aria-label":`Download ${e.displayName}${e.fields.Size?.value?` (${g(Number(e.fields.Size.value))})`:""}${e.fields.Extension?.value?` - ${e.fields.Extension.value.toUpperCase()} file`:""}`,...(0,c.getTestProps)(`file-link-${r}`),children:[(0,t.jsxs)("div",{className:x(),children:[(0,t.jsx)(o.SvgIcon,{icon:"file-download",size:"xs",className:N(),"aria-hidden":"true"}),(0,t.jsx)("span",{className:k(),...(0,c.getTestProps)(`file-name-${r}`),children:e.displayName})]}),(0,t.jsxs)("div",{className:E(),children:[(0,t.jsx)("span",{className:_(),...(0,c.getTestProps)(`file-size-${r}`),children:e.fields.Size?.value&&g(Number(e.fields.Size.value))}),e.fields.Size?.value&&e.fields.Extension?.value&&" ",(0,t.jsx)("span",{className:v(),"aria-label":`File type: ${e.fields.Extension?.value?.toUpperCase()}`,...(0,c.getTestProps)(`file-extension-${r}`),children:e.fields.Extension?.value&&e.fields.Extension.value.toUpperCase()})]})]})},e.id))}):(0,t.jsx)(t.Fragment,{})]})})})},!1),d=(0,r.tv)({slots:{container:["grid","grid-cols-1","md:grid-cols-2","gap-x-space-between-more","gap-y-4","p-spacing-spacing-32","py-component-section-container-padding-y","px-component-section-container-padding-x","bg-component-file-list-bg"],list:["flex","flex-col","gap-spacing-spacing-8","md:gap-spacing-spacing-16"],anchor:["flex","items-center","justify-between","w-full","group","p-spacing-spacing-16"],item:["bg-component-file-list-card-fill","text-component-file-list-card-text","border-component-file-list-card-border","rounded-component-file-list-card-border-radius","border","transition-colors","duration-200","hover:border-color-text-text-brand","gap-spacing-spacing-16"],headlineText:["font-bold","text-component-file-list-title","text-typography-font-size-xlarge","leading-typography-line-height-xlarge","font-typography-font-family-header","leading-tight","mb-general-spacing-title-margin-bottom","not-italic"],descriptionText:["text-component-file-list-body","font-typography-font-family-body","text-typography-font-size-body-large","font-normal","not-italic","leading-typography-line-height-body-large","mb-general-spacing-copy-margin-bottom"],ctaWrapper:["flex","justify-start"],ctaLinkText:["mt-2"],fileInfo:["flex","flex-row","items-center"],fileTypeIcon:["flex-shrink-0","mr-2","text-typography-font-size-body-small","text-color-text-text-brand"],fileDisplayName:["font-bold","group-hover:text-blue-600","text-typography-font-size-body-small","text-color-text-text-brand","underline"],rightSection:["flex","items-center","gap-4","text-typography-font-size-body-small","text-color-text-text-secondary"],fileSize:["font-typography-font-family-body","text-typography-font-size-body-small","text-color-text-text-secondary"],fileIcon:["text-typography-font-size-body-small","text-color-text-text-secondary"]}});e.s(["Default",0,u])},232072,e=>{"use strict";e.s(["isFeaturedForInsightsPromotion",0,function(e){let t,r,i,n;return t=e.eventType?.jsonValue,r=(t?.fields?.Title?.value||t?.displayName||t?.name||"").toString().trim().toLowerCase(),i=(e.eventType?.jsonValue?.name||"").toString().trim().toLowerCase(),"featured"===r||"featured"===i||r.includes("featured event")||r.startsWith("featured ")||null!=(n=e.isFeatured?.jsonValue?.value)&&""!==n&&(1===n||"1"===n||"true"===String(n).toLowerCase())}])},118109,e=>{"use strict";e.s(["Default",()=>f]);var t=e.i(843476),r=e.i(271645),i=e.i(211418),n=e.i(84853),a=e.i(136905),s=e.i(389980),o=e.i(435258),l=e.i(907095),c=e.i(232072),u=e.i(150105),d=e.i(422674),p=e.i(310099);let h=e=>{if(!e)return;let t=e.trim().toLowerCase();return"featured"===t||t.includes("featured")?"featured":"upcoming"===t||t.includes("upcoming")?"upcoming":void 0},f=(0,n.withStandardComponentWrapper)(e=>{let{RenderingIdentifier:i}=e?.params||{},n=e?.params?.selectTheme,f=(e=>{let t=h(e?.params?.mode||e?.params?.Mode||e?.params?.dynamicMode);
166if(t)return t;let r=e?.rendering?.fields?.mode;if(r&&!Array.isArray(r)&&"object"==typeof r){let e=h(r.displayName||r.name);if(e)return e;let t=h(r.fields?.fieldName?.value);if(t)return t;let i=r?.value,n=h("string"==typeof i?i:void 0);if(n)return n}let i=e?.rendering?.fields?.heading?.value,n=h("string"==typeof i?i:void 0);return n||h(e?.rendering?.dataSourceName||e?.rendering?.displayName)})(e),m="string"==typeof e?.params?.limit?Number(e.params.limit):void 0,y="number"==typeof m&&!Number.isNaN(m)&&m>0?m:"featured"===f?1:"upcoming"===f?3:void 0,b="featured"===f?"1":"3",v=(0,d.useSitecoreContext)(),x=v?.sitecoreContext?.route,_=e?.rendering?.fields?.type,w=_&&!Array.isArray(_)&&"id"in _?_:null,T=Array.isArray(x?.fields?.Industry)?x.fields.Industry.map(e=>e?.id).filter(Boolean).join(","):"",S=Array.isArray(x?.fields?.Product)?x.fields.Product.map(e=>e?.id).filter(Boolean).join(","):"",C=w?.id,E=v?.sitecoreContext?.itemId??x?.itemId,k=v?.sitecoreContext?.language,N=e?.rendering?.fields?.orderBy,I=N&&!Array.isArray(N)&&"fields"in N?N:null,A=I?.fields?.fieldName?.value,[j,P]=(0,r.useState)([]),[O,L]=(0,r.useState)(!0),[D,R]=(0,r.useState)(null),{getDictionaryValue:M}=(0,p.default)(),B=M("Find_Out_More","Find out more");(0,r.useEffect)(()=>{(async()=>{if(!C||!E||!k){R("Missing required parameters: templateId, currentId, and language are required"),L(!1);return}try{L(!0),R(null);let t={templateId:C,currentId:E,language:k,...A&&{orderBy:A},...T&&{industry:T},...S&&{product:S},...f&&{mode:f},..."number"==typeof y&&{limit:y}},r=await fetch("/api/dynamic-content",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)});if(!r.ok){let e=await r.json().catch(()=>({}));throw Error(e.message||e.error||`API request failed with status ${r.status}`)}let n=(await r.json()).map((t,r)=>{let n=t.eventHeadline?.jsonValue?.value||t.eventHeadline?.value||t.assetHeadline?.jsonValue?.value||t.customerHeadline?.jsonValue?.value||t.newsHeadline?.jsonValue?.value||"",a=t.pageDescription?.value||t.pageDescription?.jsonValue?.value||t.assetDescription?.jsonValue?.value||t.newsDescription?.jsonValue?.value||"",s=t.eventThumbn
166ail?.jsonValue||t.assetThumbnail?.jsonValue||t.customerStoryThumbnail?.jsonValue||t.newsThumbnail?.jsonValue,o="featured"===f&&(0,c.isFeaturedForInsightsPromotion)(t),l=(t.url?.url||"").trim(),u=e?.rendering?.fields?.ctaText,d=("object"==typeof u&&u&&"value"in u?String(u.value||"").trim():"")||B,p=l?{value:{href:l,text:d,linktype:l.startsWith("http")?"external":"internal",anchor:"",class:"",title:d,querystring:"",id:""}}:void 0;return{rendering:{...e.rendering,uid:`${e.rendering?.uid||"dynamic"}-${r}`},params:{...e.params,RenderingIdentifier:`${i||"dynamic-card"}-${r}`},fields:{heading:n?{value:n}:void 0,description:a?{value:a}:void 0,cardImage:s,cardLink1:p,cardLink2:void 0,eyebrow:o?["Featured Event"]:void 0,subHeading:void 0}}});P(n)}catch(t){let e=t instanceof Error?t.message:"Failed to fetch dynamic content";console.error("DynamicCardList API error:",t),R(e)}finally{L(!1)}})()},[C,E,k,A,T,S,f,y,e.rendering,e.params,i,B]);let{base:U,card:F,loadingContainer:$,errorContainer:z,emptyContainer:q}=g({colCount:b});return(0,t.jsx)(o.CardListContext.Provider,{value:{colCount:b,isHideImage:void 0,cardVariant:"default",isAnimation:"0",cardListTheme:n},children:(0,t.jsx)("section",{"data-component":"authorable/shared/lists/dynamiccardlist",id:i||e.params?.sectionId,...(0,a.getTestProps)(`component-dynamiccardlist-${e?.rendering?.uid}`),children:(0,t.jsxs)(s.BrandAndThemeProvider,{theme:n,children:[O&&(0,t.jsx)("div",{className:$(),...(0,a.getTestProps)("loading"),children:(0,t.jsx)(u.OverlayLoading,{isLoading:O})}),D&&(0,t.jsx)("div",{className:z(),...(0,a.getTestProps)("error"),children:(0,t.jsxs)("p",{children:["Error: ",D]})}),!O&&!D&&0===j.length&&(0,t.jsx)("div",{className:q(),...(0,a.getTestProps)("no-cards"),children:(0,t.jsx)("p",{children:"No cards found"})}),!O&&!D&&j.length>0&&(0,t.jsx)("ul",{className:U(),"aria-label":"List of dynamic cards",children:j.map((e,r)=>(0,t.jsx)("li",{className:F(),role:"listitem",...(0,a.getTestProps)(`dynamic-card-${r}`),children:(0,t.jsx)(l.ResourceCardItem,{...e,isFromDynamicCardList:!0})},e.rendering?.uid||r))})]})})})},!1),g=(0,i.tv)({defaultVariants:{colCount:"3"},slots:{base:["gap-6","grid","grid-cols-none"],card:["flex","flex-col"],loadingContainer:["flex","items-center","justify-center","p-8"],errorContainer:["flex","items-center","justify-center","p-8","text-red-600"],emptyContainer:["flex","items-center","justify-center","p-8"]},variants:{colCount:{1:{base:["lg:grid-cols-1"]},2:{base:["lg:grid-cols-2"]},3:{base:["lg:grid-cols-3"]},4:{base:["lg:grid-cols-4","max-md:!flex","max-md:flex-col"]}}}})},901342,e=>{"use strict";var t=e.i(271645);let r=(0,t.createContext)("fullBleed");e.s(["CarouselVariantContext",0,r,"useCarouselVariant",0,()=>(0,t.useContext)(r)])},362410,e=>{"use strict";var t=e.i(843476),r=e.i(211418),i=e.i(84853),n=e.i(38930),a=e.i(296217),s=e.i(133267),o=e.i(506914),l=e.i(474176),c=e.i(340189),u=e.i(136905),d=e.i(828029),p=e.i(202191),h=e.i(901342),f=e.i(389980);let g=(0,i.withStandardComponentWrapper)(e=>{let{description:r,image:i,logo:g,primaryCTA:m,secondaryCTA:y,title:x,descriptionMobileFontSize:_,descriptionDesktopFontSize:w,titleMobileFontSize:T,titleDesktopFontSize:S,titleHtmlLevel:C}=e?.fields||{},E=(0,l.parseStyleParams)(e.params,["cta1","cta2"]),k=(0,d.default)(),N="twoColumn"===(0,h.useCarouselVariant)(),I=b(),A=v(),{content:j,cta:P,ctaButtons:O,descriptionText:L,heading:D,imageWrapper:R,slide:M,slideContent:B,slideContentOuter:U,slideMedia:F,wrapper:$}=N?A:I,z=N?A.logoStyle:null,q=(0,p.getTypographyClassName)(L,_,w),H=(0,p.getTypographyClassName)(D,T,S),W=(0,p.getHeadingTag)(C,k,"h3"),V=N?k?"mdlg:min-h-[470px] xl:min-h-[550px]":"mdlg:h-[470px] xl:h-[550px]":k?"md:min-h-[470px] xl:min-h-[550px]":"md:h-[470px] xl:h-[550px]",G=()=>m?.value?.href||k?(0,t.jsxs)("div",{className:O(),children:[(0,t.jsx)(a.default,{ctaComponentClass:"default",className:P({style:E.cta1?.ctaVariant}),ctaStyle:(0,c.getCtaStyle)(E.cta1,"primary"),field:m,...(0,u.getTestProps)("primary-cta")}),(0,t.jsx)(a.default,{ctaComponentClass:"default",className:P({style:E.cta2?.ctaVariant}),ctaStyle:(0,c.getCtaStyle)(E.cta2,"secondary"),field:y,...(0,u.getTestProps)("secondary-cta")})]}):null;return N?(0,t.jsx)(f.BrandAndThemeProvider,{theme:"ThemesLight",children:(0,t.jsx)("div",{className:`${M()} ${V}`,"data-component":"authorable/shared/lists/carouselitem",...(0,u.getTestProps)(`carousel-item-${e?.rendering?.uid}`),children:(0,t.jsxs)("div",{className:F(),children:[(0,t.jsx)("div",{className:U(),children:(0,t.jsx)("div",{className:B(),children:(0,t.jsxs)("div",{className:j(),children:[(0,t.jsxs)("div",{className:$(),children:[g?.value?.src&&z&&(0,t.jsx)(n.default,{className:z(),field:g,...(0,u.getTestProps)("logo")}),(0,t.jsx)(s.default,{className:H,field:x,tag:W,...(0,u.getTestProps)("heading")}),r&&(0,t.jsx)(o.default,{className:q,field:r,...(0,u.getTestProps)("description")})]}),(0,t.jsx)(G,{})]})})}),(0,t.jsx)(n.default,{className:R(),field:i,fetchPriority:"high",...(0,u.getTestProps)("image")})]})})}):(0,t.jsx)(f.BrandAndThemeProvider,{theme:"ThemesLight",children:(0,t.jsx)("div",{className:`${M()} ${V}`,"data-component":"authorable/shared/lists/carouselitem",...(0,u.getTestProps)(`carousel-item-${e?.rendering?.uid}`),children:(0,t.jsxs)("div",{className:F(),children:[(0,t.jsx)(n.default,{className:R(),field:i,fetchPriority:"high",...(0,u.getTestProps)("image")}),(0,t.jsx)("div",{className:U(),children:(0,t.jsx)("div",{className:B(),children:(0,t.jsxs)("div",{className:j(),children:[(0,t.jsxs)("div",{className:$(),children:[(0,t.jsx)(s.default,{className:H,field:x,tag:W,...(0,u.getTestProps)("heading")}),r&&(0,t.jsx)(o.default,{className:q,field:r,...(0,u.getTestProps)("description")})]}),(0,t.jsx)(G,{})]})})})]})})})}),m={cta:[],descriptionText:["carousel-rich-text","text-component-carou
166sel-body","font-typography-font-family-body","text-typography-font-size-body-medium","font-typography-font-weight-body","leading-typography-line-height-body-medium"],ctaButtons:["flex","flex-col","gap-spacing-spacing-12","md:flex-row","md:p-0","p-[6px]"],heading:["text-component-carousel-title","font-typography-font-family-header","text-typography-font-size-large","font-typography-font-weight-large","leading-typography-line-height-large","[&>span]:bg-clip-text","[&>span]:text-transparent","[&>span]:bg-gradient-to-r","[&>span]:from-color-core-color-2-400","[&>span]:via-color-core-gradient-1-stop-2","[&>span]:to-color-core-gradient-1-stop-1","[&>span]:from-[0%]","[&>span]:via-[40%]","[&>span]:to-[100%]"],wrapper:["flex","flex-col","md:gap-component-carousel-content-spacing-vertical","gap-spacing-spacing-8"]},y={style:{link:{cta:["text-base"]},primary:{cta:["px-4"]},secondary:{cta:["px-4"]},tertiary:{cta:["px-4"]}}},b=(0,r.tv)({slots:{...m,content:["slide-content-inner","flex","flex-col","justify-center","bg-color-surface-white","rounded-general-border-radius-card","md:gap-component-carousel-buttons-margin-top","gap-spacing-spacing-16","md:max-w-sm","lg:max-w-xl"],imageWrapper:["relative","md:absolute","inset-0","object-cover","w-full","rounded-general-border-radius-wrapper-container","aspect-video","bg-center","bg-cover","left-0","top-0","xl:h-[550px]","md:h-[470px]","h-[192px]"],slide:["flex","flex-col","gap-spacing-spacing-16","relative","bg-component-carousel-content-surface","p-spacing-spacing-16","rounded-general-border-radius-wrapper-container","md:bg-transparent","md:p-0","md:rounded-none","md:justify-end","md:py-general-spacing-margin-y","md:px-general-spacing-margin-x"],slideContent:["slide-content","w-full","h-full","overflow-auto","md:py-component-carousel-content-padding-y","md:px-component-carousel-content-padding-x"],slideContentOuter:["slide-content-outer","flex","relative","w-full","z-10","md:box-border","md:text-left","md:max-w-[548px]","md:w-max","bg-color-surface-white","md:rounded-general-border-radius-container","overflow-hidden","content-center"],slideMedia:["slide-media","flex","h-auto","flex-col","gap-spacing-spacing-16","rounded-general-border-radius-wrapper-container","md:h-full","md:flex-col","md:justify-end","md:gap-0","md:rounded-none","overflow-hidden"]},variants:y}),v=(0,r.tv)({slots:{...m,content:["slide-content-inner","flex","flex-col","justify-center","bg-color-surface-white","rounded-general-border-radius-card","mdlg:rounded-none","mdlg:gap-component-carousel-buttons-margin-top","gap-spacing-spacing-16","mdlg:max-w-sm","lg:max-w-xl"],logoStyle:["hidden","mdlg:block","mdlg:h-[56px]","w-auto","object-contain","self-start"],imageWrapper:["relative","object-contain","object-center","w-full","mdlg:w-1/2","h-auto","mdlg:aspect-auto","mdlg:h-[470px]","xl:h-[550px]","rounded-general-border-radius-wrapper-container","mdlg:rounded-l-none","overflow-hidden"],slide:["flex","flex-col","gap-spacing-spacing-16","relative","bg-component-carousel-content-surface","p-spacing-spacing-16","mdlg:p-0","rounded-general-border-radius-wrapper-container"],slideContent:["slide-content","w-full","h-full","mdlg:h-auto","overflow-auto","mdlg:py-component-carousel-content-padding-y","mdlg:px-component-carousel-content-padding-x"],slideContentOuter:["slide-content-outer","relative","w-full","mdlg:w-1/2","mdlg:h-full","z-10","mdlg:box-border","mdlg:text-left","bg-color-surface-white","mdlg:rounded-general-border-radius-container","mdlg:rounded-r-none","overflow-hidden","flex","mdlg:items-center","mdlg:justify-center"],slideMedia:["slide-media","h-auto","mdlg:h-full","flex","flex-col-reverse","mdlg:flex-row","gap-spacing-spacing-16","mdlg:gap-0","overflow-hidden","rounded-general-border-radius-wrapper-container"]},variants:y});e.s(["Default",0,g])},231166,e=>{"use strict";e.s(["Default",()=>m]);var t=e.i(843476),r=e.i(774790),i=e.i(978520),n=e.i(271645),a=e.i(211418),s=e.i(84853);e.i(879806);var o=e.i(871084),l=e.i(310099),c=e.i(206303),u=e.i(828029),d=e.i(783697),p=e.i(136905),h=e.i(901342),f=e.i(389980);let g=Number("3000")||3e3,m=(0,s.withStandardComponentWrapper)(e=>{let{DynamicPlaceholderId:a,RenderingIdentifier:s,autoLoop:m,autoPlay:b,removeTopSpacing:v,removeBottomSpacing:
166x,selectTheme:_}=e?.params||{},{carouselVariant:w}=e?.fields||{},T="1"===v,S="1"===x,C="1"===m,E="1"===b,k=`carousel-${a}`,N=(0,n.useRef)(null),I=(0,n.useRef)([]),[A,j]=(0,n.useState)(E),[P,O]=(0,n.useState)(0),[L,D]=(0,n.useState)(0),[R,M]=(0,n.useState)(null),{getDictionaryValue:B}=(0,l.default)(),U=(0,u.default)(),F=w?.fields?.Value?.value||"fullBleed";(0,n.useEffect)(()=>{N.current&&(E?N.current.Components.Autoplay.play():N.current.Components.Autoplay.pause(),j(E))},[E,N,C]);let $=(0,n.useCallback)(()=>{0!==I.current.length&&(M(null),requestAnimationFrame(()=>{requestAnimationFrame(()=>{let e=0;I.current.forEach(t=>{if(t){t.style.height="auto";let r=t.scrollHeight;r>e&&(e=r)}}),e>0&&M(e)})}))},[]);(0,n.useEffect)(()=>{P>0&&!U&&$()},[P,$,U]);let z={autoplay:A,gap:".02rem",arrows:!1,pauseOnFocus:!1,pauseOnHover:!1,intersection:{inView:{autoplay:A},outView:{autoplay:!1}},interval:g,pagination:!1,perMove:1,perPage:1,rewind:P>1&&(C||A),speed:300,type:C?"loop":"slide",width:"100%",drag:!0,rewindByDrag:P>1&&(C||A)},q=(e,t)=>{D(t)},H=e=>{O(e?.length),U||R||$()},{base:W,carouselContainer:V,screenReader:G,slideArrows:X,customPagination:K,actionButtonControl:Y,svgIcons:Q,customControlWrapper:J,customPaginationDotsWrapper:Z,paginationDots:ee,dotStyle:et,carouselPlayPauseStyle:er}=y();return U?(0,t.jsx)(h.CarouselVariantContext.Provider,{value:F,children:(0,t.jsx)(f.BrandAndThemeProvider,{theme:_,children:(0,t.jsxs)("section",{"data-component":"authorable/shared/lists/carousel",id:s||e?.params?.sectionId,className:W(),children:[(0,t.jsx)(d.EditingHelpText,{children:"Carousel rendered as flat list for ease of editing. Use preview to see carousel in action."}),(0,t.jsx)(c.PlaceholderWrapper,{name:k,rendering:e.rendering,page:e.page,render:e=>(0,t.jsx)("div",{className:V({removeTopSpace:T,removeBottomSpace:S}),children:e.map((e,r)=>(0,t.jsx)("div",{className:"relative",children:e},r))})})]})})}):(0,t.jsx)(h.CarouselVariantContext.Provider,{value:F,children:(0,t.jsx)(f.BrandAndThemeProvider,{theme:_,children:(0,t.jsx)("section",{"data-component":"authorable/shared/lists/carousel",id:s||e?.params?.sectionId,...(0,p.getTestProps)(`component-carousel-${e?.rendering?.uid}`),className:W(),children:(0,t.jsx)(c.PlaceholderWrapper,{name:k,rendering:e.rendering,page:e.page,render:e=>(0,t.jsxs)("div",{className:V({removeTopSpace:T,removeBottomSpace:S}),children:[(0,t.jsx)(i.Splide,{ref:e=>{e?.splide&&(N.current=e.splide)},extensions:{Intersection:r.Intersection},hasTrack:!1,onMounted:H,onMove:q,onMoved:H,options:z,children:(0,t.jsx)(i.SplideTrack,{children:e.map((e,r)=>(0,t.jsx)(i.SplideSlide,{tabIndex:r!==L?-1:0,"aria-hidden":r!==L,...(0,p.getTestProps)(`slide-${r}`),children:(0,t.jsx)("div",{ref:e=>{I.current[r]=e},style:{height:!U&&R?`${R}px`:"auto"},children:e})},r))})}),P>1&&(0,t.jsxs)("div",{className:K(),children:[(0,t.jsxs)("div",{className:J(),children:[(0,t.jsxs)("button",{onClick:()=>{N.current&&(A?N.current.Components.Autoplay.pause():N.current.Components.Autoplay.play(),j(e=>!e))},className:Y(),"aria-label":`${A?"carousel-pause":"carousel-play"}`,...(0,p.getTestProps)("play-pause-button"),children:[(0,t.jsx)("span",{className:G(),children:B(`${A?"PlaySlideshow":"PauseSlideshow"}`)}),(0,t.jsx)(o.SvgIcon,{className:er(),icon:A?"carousel-pause":"carousel-play",viewBox:A?"0 0 20 20":"11 12 24 24",fill:"none",size:"xss"})]}),(0,t.jsx)("nav",{role:"navigation","aria-label":"Carousel Pagination",...(0,p.getTestProps)("pagination"),children:(0,t.jsx)("ul",{className:Z(),children:Array.from({length:P}).map((e,r)=>(0,t.jsx)("li",{children:(0,t.jsx)("button",{onClick:()=>N.current?.go(r),className:ee({isActiveSlide:r===L}),"aria-label":`Go to slide ${r+1}`,...(0,p.getTestProps)(`pagination-dot-${r}`),children:(0,t.jsx)(o.SvgIcon,{icon:r===L?"carousel-active-pagedot":"carousel-pagedot",size:r===L?"m":"xxs",viewBox:r===L?"0 0 40 12":"0 0 12 12",className:et({isActiveSlide:r===L})})})},r))})})]}),(0,t.jsxs)("div",{className:X(),children:[(0,t.jsx)("button",{onClick:()=>N.current?.go("<"),className:Y({isArrowDisabled:0===L&&!C}),"aria-label":"carousel-prev",disabled:0===L&&!C,...(0,p.getTestProps)("carousel-prev"),children:(0,t.jsx)(o.SvgIcon,{icon:"carousel-arrow-left",size:"xss",viewBox:"0 0 20 20",className:Q()})}),(0,t.jsx)("button",{onClick:()=>N.current?.go(">"),className:Y({isArrowDisabled:L===P-1&&!C}),"aria-label":"carousel-next",disabled:L===P-1&&!C,...(0,p.getTestProps)("carousel-next"),children:(0,t.jsx)(o.SvgIcon,{icon:"carousel-arrow-right",size:"xss",className:Q(),viewB
166ox:"0 0 20 20"})})]})]})]})})})})})},!1),y=(0,a.tv)({slots:{base:["bg-component-section-bg"],carouselContainer:["overflow-hidden","relative","flex","flex-col","md:gap-0","gap-spacing-spacing-16"],screenReader:["sr-only"],slideArrows:["flex","gap-spacing-spacing-8"],customPagination:["py-component-carousel-utility-bar-padding-y","px-component-carousel-utility-bar-padding-x","flex","justify-between","flex-wrap","gap-spacing-spacing-16","md:gap-0"],actionButtonControl:["p-spacing-spacing-12","w-11","h-11","bg-color-surface-white","flex","flex-row","items-center","justify-center","shrink-0","relative","border-general-border-width-pagination-button","border-component-carousel-utility-bar-button-border","rounded-general-border-radius-button"],svgIcons:["shrink-0","relative","overflow-visible"],customControlWrapper:["flex","gap-spacing-spacing-16","items-center","flex-wrap"],customPaginationDotsWrapper:["flex","items-center","flex-wrap"],paginationDots:[],carouselPlayPauseStyle:["text-color-fill-brand-1","flex","flex-row","items-center","justify-center","shrink-0","relative"],dotStyle:["!h-6"]},variants:{isActiveSlide:{true:{paginationDots:["!w-[52px]","!h-6","flex","p-1.5","items-center"],dotStyle:["!w-10","text-color-core-color-2-400"]},false:{paginationDots:["w-6","h-6","flex","p-1.5","items-center"],dotStyle:["text-color-grayscale-500"]}},isArrowDisabled:{true:{actionButtonControl:["opacity-50"]}},removeTopSpace:{true:{carouselContainer:["!pt-0"]},false:{carouselContainer:[]}},removeBottomSpace:{true:{carouselContainer:["!pb-0"]},false:{carouselContainer:[]}}},defaultVariants:{removeTopSpace:!1,removeBottomSpace:!1}})},560254,e=>{"use strict";e.s(["Default",()=>w,"default",()=>_]);var t=e.i(843476),r=e.i(271645),i=e.i(211418),n=e.i(84853),a=e.i(38930),s=e.i(296217),o=e.i(474176),l=e.i(340189),c=e.i(207857),u=e.i(435258),d=e.i(136905),p=e.i(133267),h=e.i(455601),f=e.i(828029),g=e.i(202191),m=e.i(506914),y=e.i(522016),b=e.i(706729);let v={visibility:"hidden",position:"absolute",pointerEvents:"none"},x=e=>{let{logo:i,stat:n,statEyebrow:x,cardImage:_,cardLink1:w,cardLink2:S,description:C,eyebrow:E,heading:k,subHeading:N,descriptionMobileFontSize:I,descriptionDesktopFontSize:A,eyebrowMobileFontSize:j,eyebrowDesktopFontSize:P,headingMobileFontSize:O,headingDesktopFontSize:L,subHeadingMobileFontSize:D,subHeadingDesktopFontSize:R,headingHtmlLevel:M}=e?.fields||{},{RenderingIdentifier:B}=e?.params||{},U=(0,o.parseStyleParams)(e.params,["cta1","cta2"]),F=(0,f.default)(),{colCount:$,isHideImage:z,cardVariant:q,isAnimation:H,cardListTheme:W}=(0,u.useCardListContext)(),V=(0,r.useRef)(null),G=(0,r.useRef)(null),X="1"===H&&!F,K=e?.rendering?.uid??"",Y=Array.isArray(E)?E:null,[Q,J]=(0,r.useState)(Y?.length??0),[Z,ee]=(0,r.useState)(!1),et=(0,r.useRef)(null),er=(0,r.useRef)(null),ei=(0,r.useCallback)(()=>{if(!et.current||!er.current)return;let e=et.current.offsetWidth;if(0===e)return;let t=.6*e,r=parseFloat(window.getComputedStyle(er.current).columnGap)||8,i=Array.from(er.current.querySelectorAll("[data-tag]")),n=0,a=0;for(let e of i){let i=e.offsetWidth,s=0===a?i:i+r;if(n+s<=t)n+=s,a++;else break}J(Math.max(a,1))},[]);(0,r.useLayoutEffect)(()=>{Y?.length&&ei()},[Y,ei]),(0,r.useEffect)(()=>{if(!et.current||!Y?.length)return;let e=et.current,t=new ResizeObserver(ei);return t.observe(e),()=>t.disconnect()},[Y,ei]),(0,r.useEffect)(()=>{if(!Z)return;let e=e=>{et.current&&!et.current.contains(e.target)&&ee(!1)};return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},[Z]);let{containerWrapper:en,container:ea,headerWrapper:es,header:eo,body:el,contentWrapper:ec,content:eu,eyebrow:ed,heading:ep,subheading:eh,description:ef,footer:eg,cta:em,noImageContainer:ey,noImageIcon:eb,imageWrapper:ev,logoImage:ex,logoWrapper:e_,statLogoWrapper:ew,statWrapper:eT,statText:eS,statEyebrowText:eC,linkStretch:eE,eyebrowTagsWrapper:ek,eyebrowBadges:eN,eyebrowBadge:eI,eyebrowMoreWrapper:eA,eyebrowMoreButton:ej,eyebrowPopup:eP}=T({colCount:$,variant:q,theme:W}),eO=(0,g.getHeadingTag)(M,F,"h3"),eL=(0,g.getTypographyClassName)(ef,I,A),eD=(0,g.getTypographyClassName)(ed,j,P),eR=(0,g.getTypographyClassName)(ep,O,L),eM=(0,g.getTypographyClassName)(eh,D,R);(0,b.useCardItemContentReveal)({cardRef:V,contentRef:G,enabled:X,animationKey:K});let eB=Y?Y.length-Q:0,eU=Array.isArray(E)?void 0:E?.value;return(0,t.jsx)("article",{ref:V,"data-component":"authorable/shared/lists/carditem",id:B,...(0,d.getTestProps)(`card-item-${e?.rendering?.uid}`),className:en(),children:(0,t.jsxs)("div",{className:ea(),ref:"customerCard"===q?G:void 0,"data-card-item-reveal":!0,children:["customerCard"===q?(0,t.jsx)(t.Fragment,{children:(0,t.jsxs)("div",{ref:G,className:es(),children:[(0,t.jsx)(y.default,{href:w?.value?.href??"#",target:w?.value?.target,className:eE(),"aria-label":w?.value?.text||w?.value?.title||void 0}),(0,t.jsxs)("div",{className:eo(),"data-card-item-reveal":!0,children:[_?.value?.src?(0,t.jsx)(a.default,{field:_,className:ev(),fetchPriority:"high",...(0,d.getTestProps)("image")}):(0,t.jsx)("div",{className:ey(),...(0,d.getTestProps)("no-image"),children:(0,t.jsx)(c.default,{icon:"no-image",size:"lg",viewBox:"0 0 240 240",className:eb()})}),(0,t.jsxs)("div",{className:ew(),children:[i?.value?.src&&(0,t.jsx)("div",{className:e_(),children:(0,t.jsx)(a.default,{field:i,className:ex(),fetchPriority:"high",...(0,d.getTestProps)("logo image")})}),(0,t.jsxs)("div",{className:eT(),children:[x&&(0,t.jsx)(m.default,{className:eC(),field:x,tag:"p",...(0,d.getTestProps)("stat-eyebrow")}),n&&(0,t.jsx)(m.default,{className:eS(),field:n,tag:"p",...(0,d.getTestProps)("stat")})]})]})]})]})}):!z&&(0,t.jsx)("div",{className:eo(),children:_?.value?.src?(0,t.jsx)(a.default,{field:_,className:ev(),fetchPriority:"high",...(0,d.getTestProps)("image")}):(0,t.jsx)("div",{className:ey(),...(0,d.getTestProps)("no-image"),children:(0,t.jsx)(c.default,{icon:"no-image",size:"lg",viewBox:"0 0 240 240",className:eb()})})}),(0,t.jsx)("div",{className:el(),ref:"customerCard"===q?G:void 0,"data-card-item-reveal":!0,children:(0,t.jsxs)("div",{className:ec(),children:[(0,t.jsxs)("div",{className:eu(),ref:"customerCard"!==q?G:void 0,children:[Y?(0,t.jsx)("div",{ref:et,className:ek(),children:(0,t.jsxs)("div",{ref:er,className:eN(),children:[Y.map((e,r)=>{let i=r>=Q;return(0,t.jsx)("span",{"data-tag":!0,className:eI(),style:i?v:void 0,"aria-hidden":i||void 0,...!i?(0,d.getTestProps)(`eyebrow-tag-${r}`):{},children:e},r)}),eB>0&&(0,t.jsxs)("div",{className:eA(),children:[(0,t.jsxs)("button",{type:"button",className:ej(),onClick:e=>{e.stopPropagation(),ee(e=>!e)},"aria-expanded":Z,"aria-haspopup":"true","aria-label":`Show ${eB} more tag${eB>1?"s":""}`,...(0,d.getTestProps)("eyebrow-more"),children:["+",eB]}),Z&&(0,t.jsx)("div",{className:eP(),role:"region","aria-label":"Additional tags",...(0,d.getTestProps)("eyebrow-popup"),children:Y.slice(Q).map((e,r)=>(0,t.jsx)("span",{className:eI(),children:e},r))})]})]})}):(0,t.jsx)(p.default,{className:eD,field:E,...(0,d.getTestProps)("eyebrow")}),(0,t.jsx)(p.default,{className:(ep(),eR),field:k,...(0,d.getTestProps)("heading"),tag:eO}),(0,t.jsx)(p.default,{className:(eh(),eM),field:N,...(0,d.getTestProps)("sub-heading")}),(0,t.jsx)(p.default,{className:(ef(),eL),field:C,...(0,d.getTestProps)("description")})]}),(0,t.jsxs)("div",{className:eg(),"data-card-item-reveal":!0,children:[(0,t.jsx)(s.default,{ctaComponentClass:"component-card-item-button-1-color",className:em(),ctaStyle:(0,l.getCtaStyle)(U.cta1,"primary"),field:w,gtmEvent:(0,h.createCTAClickEvent)({event:"cta_click",componentName:"Card Item Primary CTA",clickText:w?.value?.text||w?.value?.title||"",componentHeader:k?.value||eU||""}),...(0,d.getTestProps)("primary-cta")}),(0,t.jsx)(s.default,{ctaComponentClass:"component-card-item-button-2-color",className:em(),ctaStyle:(0,l.getCtaStyle)(U.cta2,"secondary"),field:S,gtmEvent:(0,h.createCTAClickEvent)({event:"cta_click",componentName:"Card Item Secondary CTA",clickText:S?.value?.text||S?.value?.title||"",componentHeader:k?.value||eU||""}),...(0,d.getTestProps)("secondary-cta")})]})]})})]})})},_=x,w=(0,n.withStandardComponentWrapper)(x),T=(0,i.tv)({defaultVariants:{style:"primary",colCount:"1",theme:"ThemesWhite",variant:"default"},slots:{containerWrapper:["flex-1"],container:["relative","flex","w-full","h-full","overflow-hidden","rounded-general-border-radius-card","bg-component-card-item-surface","transition-shadow","duration-200","ease-in-out","hover:shadow-[0px_8px_16px_
166-4px]","hover:shadow-color-black-alpha-20"],headerWrapper:[],header:["relative","min-h-max","w-full","rounded-component-card-item-image-radius","text-color-fill-brand-1","transition","duration-300","ease-in-out","group","pt-component-card-item-portrait-image-padding-top","px-component-card-item-portrait-image-padding-x","pb-component-card-item-portrait-image-padding-bottom"],body:["flex","flex-col","h-full","w-full","items-center"],contentWrapper:["flex","flex-col","w-full","gap-component-video-card-portrait-content-button-margin-top","pt-component-card-item-portrait-content-padding-top","pb-component-card-item-portrait-content-padding-bottom","px-component-card-item-portrait-content-padding-x"],content:["flex","flex-col","w-full"],eyebrow:["font-typography-font-family-body","text-component-card-item-eyebrow","font-typography-font-weight-body-semibold","text-typography-font-size-body-xSmall","leading-typography-line-height-body-xSmall","uppercase","mb-spacing-spacing-12","md:mb-spacing-spacing-16"],heading:["text-component-card-item-title","text-typography-font-size-medium","font-typography-font-size-medium","font-typography-font-weight-medium","leading-typography-line-height-medium","mb-spacing-spacing-12","md:mb-spacing-spacing-16","break-words","[&>span]:bg-clip-text","[&>span]:text-transparent","[&>span]:bg-gradient-to-r","[&>span]:from-color-core-color-2-400","[&>span]:via-color-core-gradient-1-stop-2","[&>span]:to-color-core-gradient-1-stop-1","[&>span]:from-[0%]","[&>span]:via-[40%]","[&>span]:to-[100%]"],subheading:["text-component-card-item-subtitle","font-typography-font-family-body","text-typography-font-size-body-small","font-typography-font-weight-body-semibold","leading-typography-line-height-body-small","md:font-typography-font-family-body","md:text-typography-font-size-body-medium","md:font-typography-font-weight-body-semibold","md:leading-typography-line-height-body-medium","mb-spacing-spacing-12","md:mb-spacing-spacing-16"],description:["text-component-card-item-body","text-typography-font-size-body-small","font-typography-font-weight-body","leading-typography-line-height-body-small"],footer:["flex","flex-wrap","gap-2","items-center","justify-normal","w-full"],cta:["flex","gap-spacing-spacing-8","items-center","justify-center","py-spacing-spacing-12","!w-auto"],noImageContainer:["flex","items-center","justify-center","h-full","bg-color-grayscale-400","rounded-component-card-item-image-radius"],noImageIcon:["text-color-text-text-secondary","opacity-50"],imageWrapper:["w-full","object-cover","rounded-component-card-item-image-radius","text-component-card-item-title"],statLogoWrapper:["absolute inset-0 flex flex-col z-10"],logoWrapper:["flex","justifty-center","items-center","flex-1"],logoImage:["max-w-[150px] max-h-[150px] m-auto"],statWrapper:["px-spacing-spacing-24","pb-spacing-spacing-24","h-[90px]"],statEyebrowText:["font-typography-font-family-header text-typography-font-size-xxsmall font-typography-font-weight-xxsmall leading-typography-line-height-xxsmall text-color-text-white"],statText:["font-typography-font-family-header text-typography-font-size-large font-typography-font-weight-large leading-typography-line-height-large text-color-text-white"],linkStretch:["absolute inset-0 z-20"],eyebrowTagsWrapper:["relative","z-[11]","w-full","mb-spacing-spacing-12","md:mb-spacing-spacing-16"],eyebrowBadges:["flex","flex-wrap","gap-space-between-tight","items-center"],eyebrowBadge:["bg-component-tag-fill","border","border-component-tag-border","w-max","px-component-tag-padding-x","py-component-tag-padding-y","rounded-general-border-radius-tag","text-component-card-label-text","font-typography-font-family-body","text-typography-font-size-body-xSmall","font-typography-font-weight-body-semibold","leading-typography-line-height-body-xSmall","uppercase"],eyebrowMoreWrapper:["relative"],eyebrowMoreButton:["bg-component-tag-fill","border","border-component-tag-border","w-max","px-component-tag-padding-x","py-component-tag-padding-y","rounded-general-border-radius-tag","text-component-card-label-text","font-typography-font-family-body","text-typography-font-size-body-xSmall","font-typography-font-weight-body-semibold","leading-typography-line-height-body-xSmall","uppercase","cursor-pointer","transition-opacity","duration-150","hover:opacity-80","focus:outline-none","focus-visible:ring-2","focus-visible:ring-component-card-label-text"],eyebrowPopup:["absolute","top-0","left-0","z-20","flex","flex-wrap","gap-space-between-tight","bg-color-fill-white","rounded-general-border-radius-label","p-padding-micro","shadow-[0px_3px_1px_-1px_var(--colorblack-alpha10)]"]},variants:{cardVariant:{CardItemResourceCard:{contentWrapper:["md:justify-center"]}},variant:{default:{container:["border","border-component-card-item-border"]}
166,customerCard:{header:["!px-0","!py-0","after:absolute after:inset-0 after:bg-black/50","h-full","min-h-[292px]"],imageWrapper:["!rounded-b-none !h-full"],description:["line-clamp-3"]}},colCount:{1:{container:["flex-col","md:flex-row","md:gap-0"],body:["flex-row","items-start","text-left","lg:pl-0","justify-center"],content:["text-left","justify-center"],contentWrapper:["text-left","justify-center","sm:py-component-card-item-landscape-content-padding-y","sm:px-component-card-item-landscape-content-padding-x","lg:py-component-card-item-landscape-content-1-col-padding-y","lg:px-component-card-item-landscape-content-1-col-padding-x"],header:["sm:py-component-card-item-landscape-image-padding-y","sm:py-component-card-item-landscape-image-padding-y","sm:px-component-card-item-landscape-image-padding-x","md:!pe-0"],eyebrow:["font-typography-font-family-body","text-component-card-item-eyebrow","font-typography-font-weight-body-semibold","text-typography-font-size-body-xSmall","leading-typography-line-height-body-xSmall","md:text-typography-font-size-body-small","md:leading-typography-line-height-body-small"],description:["text-component-card-item-body","text-typography-font-size-body-small","font-typography-font-weight-body","leading-typography-line-height-body-small","md:text-typography-font-size-body-medium","md:font-typography-font-weight-body","md:leading-typography-line-height-body-medium"],imageWrapper:["aspect-[4/3]"],eyebrowTagsWrapper:["md:w-2/3"]},2:{container:["flex-col","md:flex-row"],body:["flex-row","items-start","text-left","justify-start"],content:["text-left"],heading:["md:text-typography-font-size-small","md:font-typography-font-weight-small","md:leading-typography-line-height-small"],subheading:["md:text-typography-font-size-body-small","md:font-typography-font-weight-body-semibold","md:leading-typography-line-height-body-small"],contentWrapper:["text-left","justify-between","h-full","sm:py-component-card-item-landscape-content-padding-y","sm:px-component-card-item-landscape-content-padding-x"],header:["sm:py-component-card-item-landscape-image-padding-y","sm:px-component-card-item-landscape-image-padding-x","sm:pr-0"],imageWrapper:["!aspect-square","!h-auto"],eyebrowTagsWrapper:["md:w-2/3"]},3:{container:["flex-col"],body:["flex-col","items-start","text-left"],content:["text-left"],contentWrapper:["h-full","text-left"],footer:["mt-auto"],imageWrapper:["!aspect-video"],subheading:["md:text-typography-font-size-body-small","md:font-typography-font-weight-body-semibold","md:leading-typography-line-height-body-small"]},4:{container:["flex-col"],body:["flex-col","items-center","text-left"],content:["text-left"],contentWrapper:["h-full","text-left"],footer:["mt-auto"],subheading:["md:text-typography-font-size-body-small","md:font-typography-font-weight-body-semibold","md:leading-typography-line-height-body-small"],imageWrapper:["!aspect-video"]}},theme:{ThemesWhite:{},ThemesLight:{container:["border-none"]},ThemesDark:{container:["border-none"]},ThemesBrandPrimary:{},ThemesBrandSecondary:{}}},compoundVariants:[{variant:"customerCard",colCount:"2",theme:"ThemesWhite",class:{container:["border","border-component-card-item-border"]}},{variant:"customerCard",colCount:"3",theme:"ThemesWhite",class:{container:["border","border-component-card-item-border"]}},{variant:"customerCard",colCount:"4",theme:"ThemesWhite",class:{container:["border","border-component-card-item-border"]}},{variant:"customerCard",colCount:"1",class:{headerWrapper:["flex-1 max-h-[292px] md:max-h-[500px]"],imageWrapper:["sm:rou
166nded-tr-none"],body:["md:w-1/2"]}},{variant:"customerCard",colCount:"2",class:{headerWrapper:["max-h-[292px] md:max-h-[480px]"],container:["md:flex-col"],imageWrapper:["sm:rounded-tr-none"]}}]})},417096,e=>{"use strict";var t=e.i(843476),r=e.i(271645),i=e.i(828029);let n=(0,r.createContext)({openPanels:[],panels:[],togglePanel:()=>{},scrollToOpenPanel:!1,panelIsOpen:()=>!1,expandAll:()=>{},collapseAll:()=>{}});function a(){return(0,r.useContext)(n)}e.s(["AccordionContextProvider",0,function({children:e,panels:a,singleOpenPanel:s,scrollToOpenPanel:o,defaultOpenPanels:l=[]}){let[c,u]=(0,r.useState)(l.map(e=>e.uid??"")),d=(0,i.default)(),p=(0,r.useCallback)((e,t)=>{u(r=>{let i=r.includes(e),n=t??!i;return n&&!i?s?[e]:[...r,e]:!n&&i?s?[]:r.filter(t=>t!=e):r})},[s]),h=(0,r.useCallback)(e=>d||c.includes(e),[d,c]),f=(0,r.useCallback)(()=>{a.map(e=>e.uid??"").filter(Boolean).reverse().forEach((e,t)=>{setTimeout(()=>{p(e,!0)},100*t)})},[a,p]),g=(0,r.useCallback)(()=>{a.map(e=>e.uid??"").filter(Boolean).reverse().forEach((e,t)=>{setTimeout(()=>{p(e,!1)},100*t)})},[a,p]);return(0,t.jsx)(n.Provider,{value:{openPanels:c.map(e=>a.find(t=>t.uid===e)).filter(e=>void 0!==e),panels:a,togglePanel:p,panelIsOpen:h,scrollToOpenPanel:!!o,expandAll:f,collapseAll:g},children:e})},"useAccordionContext",0,a,"useAccordionItemContext",0,function(e,t){let{panelIsOpen:i,togglePanel:n,scrollToOpenPanel:s}=a(),o=i(e??""),l=(0,r.useRef)(null),[c,u,d]=function(e,t=!1){let[i,n]=(0,r.useState)(t),[a,s]=(0,r.useState)(t);(0,r.useEffect)(()=>{e.current&&(i||Promise.all(e.current.getAnimations().map(e=>e.finished)).then(()=>{s(!1)}))},[i,e]);let o=(0,r.useCallback)(e=>{(!0===e||!1===e?e:e(i))&&s(!0),setTimeout(()=>n(e))},[i]);return[i,o,a]}(t??l,o),p=(0,r.useCallback)(t=>n(e,t),[n,e]);return(0,r.useEffect)(()=>{u(o)},[o,u]),{isOpening:c,toggleOpen:p,isVisible:d,scrollToOpenPanel:s}}],417096)},899187,e=>{"use strict";var t=e.i(843476),r=e.i(271645),i=e.i(211418),n=e.i(133267),a=e.i(84853);e.i(879806);var s=e.i(871084),o=e.i(417096),l=e.i(136905),c=e.i(296217),u=e.i(340189),d=e.i(474176),p=e.i(828029),h=e.i(202191),f=e.i(455601);let g=(0,a.withStandardComponentWrapper)(e=>{let{content:i,heading:a,ctaLink:g,contentMobileFontSize:y,contentDesktopFontSize:b,headingMobileFontSize:v,headingDesktopFontSize:x,headingHtmlLevel:_}=e?.fields||{},{uid:w}=e?.rendering||{},T=(0,d.parseStyleParams)(e.params,["cta1","cta2"]),S=`accordion-${w}`,C=(0,r.useRef)(null),E=(0,r.useRef)(null),k=(0,r.useRef)(!1),{isOpening:N,toggleOpen:I,isVisible:A,scrollToOpenPanel:j}=(0,o.useAccordionItemContext)(w??"",E),P=(0,r.useCallback)(()=>{k.current=!0,I()},[I]),O=N?"accordion-minus":"accordion-plus";(0,r.useEffect)(()=>{if(!j||!N||!k.current)return;let e=C.current;if(!e)return;let t=()=>{let t=(()=>{if("u"<typeof document)return 0;let e=0,t=window.innerWidth/2;for(let r=1;r<=280;r+=12)for(let i of document.elementsFromPoint(t,r)){let t=window.getComputedStyle(i).position;("fixed"===t||"sticky"===t)&&(e=Math.max(e,i.getBoundingClientRect().bottom))}return Math.max(e,0)})(),r=e.getBoundingClientRect().top+window.scrollY-t-16;window.scrollTo({top:Math.max(r,0),behavior:"smooth"})};t();let r=window.setTimeout(t,350);return()=>window.clearTimeout(r)},[N,j]),(0,r.useEffect)(()=>{k.current=!1},[N]);let L=(0,p.default)(),{base:D,buttonWrapper:R,iconWrapper:M,contentContainer:B,contentContainerInner:U,richTextWrapper:F,headingText:$,ctaWrapper:z,iconColor:q}=m({isOpening:N,isVisible:A}),H=(0,h.getTypographyClassName)(F,y,b),W=(0,h.getTypographyClassName)($,v,x),V=(0,h.getHeadingTag)(_,L,"h3");return(0,t.jsx)("div",{className:D(),"data-component":"authorable/shared/lists/accordionitem",...(0,l.getTestProps)(`accordion-item-${S}`),children:(0,t.jsxs)("div",{className:"flex flex-col gap",children:[(0,t.jsxs)("button",{"aria-expanded":N,className:R(),onClick:P,ref:C,type:"button",...(0,l.getTestProps)("toggle-button"),children:[(0,t.jsx)(n.default,{field:a,className:W,tag:V,...(0,l.getTestProps)("heading")}),(0,t.jsx)("span",{className:M(),...(0,l.getTestProps)("icon"),children:(0,t.jsx)(s.SvgIcon,{icon:O,className:q(),size:"s",viewBox:"0 0 24 24"})})]}),(0,t.jsx)("div",{"aria-labelledby":S,className:B(),role:"region",ref:E,tabIndex:N?void 0:-1,"aria-hidden":!N,children:(0,t.jsxs)("div",{className:U(),children:[(0,t.jsx)(n.default,{"aria-required":N,className:H,field:i,tabIndex:-1,...(0,l.getTestProps)("content")}),(0,t.jsx)("div",{className:z(),children:(0,t.jsx)(c.default,{ctaComponentClass:"component-accordion-button-color-1",ctaStyle:(0,u.getCtaStyle)(T.cta1,"primary"),field:g,gtmEvent:(0,f.createCTAClickEvent)({event:"cta_click",componentName:"Accordion",clickText:g?.value?.text||g?.value?.title||"",componentHeader:a?.value||""}),...(0,l.getTestProps)("primary-cta"),cdpEvent:{component:"Accordion"}})})]})})]})},S)}),m=(0,i.tv)({defaultVariants:{isOpen:!1,isVisible:!0},slots:{base:["border-b-component-accordion-item-border-width","border-component-accordion-item-border","hover:border-component-accordion-item-border-hover","overflow-hidden"],buttonWrapper:["cursor-pointer","duration-300","flex","items-center","justify-between","px-component-accordion-item-padding-x","py-component-accordion-item-padding-y","transition-none","w-full","scroll-mt-[123px]","focus:ring-2","focus:ring-offset","focus:ring-inset","focus:ring-color-border-border-focus","bg-component-accordion-item-surface"],contentContainer:["duration-300","ease-in-out","grid","overflow-hidden","transition-all","bg-component-accordion-item-surface"],contentContainerInner:["overflow-hidden"],iconWrapper:["transform","transition-transform","mx-spacing-spacing-4"],iconColor:["text-component-accordion-icon"],richTextWrapper:["text-left","font-normal","mb-0","px-spacing-spacing-24","pb-spacing-spacing-24","font-typography-font-family-body","text-typography-font-size-body-medium","text-component-accordion-text","font-normal","leading-normal","[&_sup]:text-[65%]","[&_sup]:top-[-0.1em]","[&_sub]:text-[65%]"],headingText:["text-component-accordion-text","font-typography-font-family-header","text-typography-font-size-small","font-typography-font-weight-small","leading-typography-line-height-small","text-left","[&>.ck-content>p]:font-typography-font-family-header","[&>.ck-content>p]:text-typography-font-size-small","[&>.ck-content>p]:font-typography-font-weight-small","[&>.ck-content>p]:leading-typography-line-height-small","[&>span]:bg-clip-text","[&>span]:text-transparent","[&>span]:bg-gradient-to-r","[&>span]:from-color-core-color-2-400","[&>span]:via-color-core-gradient-1-stop-2","[&>span]:to-color-core-gradient-1-stop-1","[&>span]:from-[0%]","[&>span]:via-[40%]","[&>span]:to-[100%]"],ctaWrapper:["pb-component-accordion-item-padding-y","px-component-accordion-item-padding-x","flex","[&>a]:w-auto"]},variants:{isOpening:{false:{base:["rounded-component-accordion-item-border-radius"],buttonWrapper:["rounded-component-accordion-item-border-radius"],contentContainer:["grid-rows-[0fr]","opacity-0","pointer-events-none","select-none","invisible"],iconWrapper:[]},true:{base:["rounded-component-accordion-item-border-radius","border-component-accordion-item-border-active"],buttonWrapper:["rounded-t-component-accordion-item-border-radius","!bg-component-accordion-item-surface-active"],contentContainer:["grid-rows-[1fr]","opacity-100","visible","!bg-component-accordion-item-surface-active"],iconWrapper:["rotate-180"]}},isVisible:{false:["max-sm:hidden"],true:[]}}});e.s(["Default",0,g])},555590,e=>{"use strict";var t=e.i(843476),r=e.i(271645);let i=(0,r.createContext)(null);e.s(["AccordionBulkActionProvider",0,function({children:e}){let n=(0,r.useRef)(!1);return(0,t.jsx)(i.Provider,{value:n,children:e})},"useAccordionBulkAction",0,()=>(0,r.useContext)(i)])},927534,e=>{"use strict";e.s(["Default",()=>f]);var t=e.i(843476),r=e.i(271645),i=e.i(211418),n=e.i(84853),a=e.i(417096),s=e.i(588318),o=e.i(206303),l=e.i(310099),c=e.i(136905),u=e.i(133267),d=e.i(202191),p=e.i(828029);
166let h=({scrollTargetRef:e})=>{let{openPanels:r,panels:i,togglePanel:n,collapseAll:s}=(0,a.useAccordionContext)(),{getDictionaryValue:o}=(0,l.default)(),c=i.map(e=>e.uid??"").filter(Boolean),u=c.length>0&&c.every(e=>r.some(t=>t.uid===e)),d=r.length>0,{expandCollapseBtn:p,expandCollapseBtnActive:h,expandCollapseBtnInactive:f,divider:m,controlsContainer:y}=g();return(0,t.jsxs)("div",{className:y(),children:[(0,t.jsx)("button",{type:"button",onClick:()=>{c.forEach(e=>n(e,!0)),(()=>{let t=e.current;if(!t)return;let r=t.closest('[data-component="authorable/shared/layout/section"]')??t,i=document.getElementById("header")?.getBoundingClientRect().height??0;r.style.scrollMarginTop=`${i}px`;let n=()=>r.scrollIntoView({behavior:"smooth",block:"start"});n(),window.setTimeout(n,500)})()},disabled:u,className:p()+" "+(u?f():h()),"aria-label":"Expand all accordion items",children:o("AccordionExpandAll")||"Expand All"}),(0,t.jsx)("span",{className:m()}),(0,t.jsx)("button",{type:"button",onClick:s,disabled:!d,className:p()+" "+(d?h():f()),"aria-label":"Collapse all accordion items",children:o("AccordionCollapseAll")||"Collapse All"})]})},f=(0,n.withStandardComponentWrapper)(e=>{let{DynamicPlaceholderId:i,RenderingIdentifier:n}=e?.params||{},{title:l,description:f,titleMobileFontSize:m,titleDesktopFontSize:y,titleHtmlLevel:b}=e?.fields||{},v=`accordion-${i}`,x=(0,r.useRef)(null),{base:_,container:w,textWrapper:T,titleText:S,descriptionText:C,controls:E}=g(),k=(0,d.getTypographyClassName)(S,m,y),N=(0,p.default)(),I=(0,d.getHeadingTag)(b,N,"h4"),A=(0,s.findComponent)(e.rendering,"AccordionItem"),j="1"===e.params.singleOpenPanel,P="1"===e.params.scrollToOpenPanel,O=[];return"1"===e.params.openByDefault&&(j?O.push(A[0]):O.push(...A)),(0,t.jsx)("section",{ref:x,className:_(),"data-component":"authorable/shared/lists/accordion",id:n||e.params?.sectionId,...(0,c.getTestProps)(`component-accordion-${e?.rendering?.uid}`),children:(0,t.jsxs)(a.AccordionContextProvider,{panels:A,singleOpenPanel:j,scrollToOpenPanel:P,defaultOpenPanels:O,children:[(0,t.jsxs)("div",{className:T(),children:[l?.value&&(0,t.jsx)(u.default,{className:k,field:l,tag:I,...(0,c.getTestProps)("title")}),f?.value&&(0,t.jsx)(u.default,{className:C(),field:f,tag:"p",...(0,c.getTestProps)("description")})]}),(0,t.jsxs)("div",{className:w(),children:[(0,t.jsx)("div",{className:E(),children:!j&&(0,t.jsx)(h,{scrollTargetRef:x})}),(0,t.jsx)(o.PlaceholderWrapper,{name:v,rendering:e.rendering,...(0,c.getTestProps)("accordion-ph"),page:e.page})]})]})})},!1),g=(0,i.tv)({slots:{base:["border-solid","scroll-mt-[123px]"],container:["flex","flex-col","m-auto","max-w-layout-container-center70-max-width","mt-spacing-spacing-32"],textWrapper:["md:text-center"],titleText:["font-typography-font-family-header","text-typography-font-size-small","md:text-typography-font-size-medium","font-typography-font-weight-small","md:font-typography-font-weight-medium","leading-typography-line-height-small","md:leading-typography-line-height-medium","text-component-section-title"],descriptionText:["font-typography-font-family-body","text-typography-font-family-body","font-typography-font-weight-body","leading-typography-line-height-body-medium","text-component-section-body","mt-general-spacing-title-margin-bottom"],controls:["relative","flex","justify-end","absolute","top-0","right-0","z-10","border-b","border-b-component-accordion-item-border","pt-padding-tight","pb-padding-tight"],expandCollapseBtn:["font-typography-font-family-body","text-typography-font-size-body-medium","leading-typography-line-height-body-medium","px-2","py-0","border-none","outline-none","focus:underline","transition-colors","cursor-pointer","hover:underline","focus:ring","focus:ring-offset-1","focus:ring-color-border-border-focus","rounded-component-accordion-item-border-radius"],expandCollapseBtnActive:["text-component-accordion-toggle-active","font-bold"],expandCollapseBtnInactive:["text-component-accordion-toggle","font-normal","disabled:cursor-not-allowed"],divider:["border-l","border-color-border-dark","mx-2","h-5","inline-block","align-middle"],controlsContainer:["flex","items-center","gap-0"]}})},25546,835172,781109,662960,e=>{"use strict";e.s(["ContextualNavItem",()=>y],25546);var t=e.i(843476),r=e.i(296217);e.i(879806);var i=e.i(871084);let n=e=>!!e.id&&!!e.pageTitle?.jsonValue?.value&&!!e.url?.path&&!e.navigationFilter?.targetItems?.some(e=>e.key?.value==="sidebar"),a=e=>(e.children?.results||[]).filter(n),s=e=>({value:{href:e.url?.path||"#",text:e.pageTitle?.jsonValue?.value||""}});e.s(["createLinkField",0,s,"getValidChildren",0,a,"isValidNavigationItem",0,n],835172),e.s(["Default",()=>m,"TAILWIND_VARIANTS",()=>g],662960);var o=e.i(271645),l=e.i(211418);let c=(e,t=[],r=[],i=!0)=>{let[n,s]=(0,o.useState)(new Set),[l,c]=(0,o.useState)(i),u=(0,o.useRef)(null),d=(0,o.useMemo)(()=>t.map(e=>
166e.id).filter(Boolean),[t]),p=(0,o.useMemo)(()=>r.map(e=>e.id),[r]);return(0,o.useEffect)(()=>{if(!e||u.current===e)return;let t=new Set;d.forEach(e=>{e&&t.add(e)});let i=(e,t)=>{for(let r of e)if(r.id===t&&a(r).length>0||i(a(r),t))return!0;return!1};i(r,e)&&t.add(e),s(t),u.current=e},[e,d,p,r]),{expandedItems:n,isNavExpanded:l,handleItemToggle:(0,o.useCallback)(t=>{s(r=>{let i=new Set(r);if(t===e){let e=`collapsed-${t}`;i.has(e)?i.delete(e):i.add(e)}else i.has(t)?i.delete(t):i.add(t);return i})},[e]),handleNavToggle:(0,o.useCallback)(()=>{c(e=>!e)},[])}};e.s(["useNavigationState",0,c],781109);var u=e.i(136905);let d=({items:e,currentPageId:r,expandedItems:i,onToggle:n,level:s=1,isNavExpanded:o=!0,isParentExpanded:l=!0})=>{let{list:c}=g();return(0,t.jsx)("ul",{className:1===s?c():void 0,...(0,u.getTestProps)(`component-contextual-nav-${s}`),children:e.map((e,c)=>{let p=e.id??"",h=p===r,f=i.has(p),m=h?!i.has(`collapsed-${p}`):f,b=a(e),v=b.length>0,{sublist:x,sublistChild:_,listItem:w}=g({isExpanded:m,current:h});return(0,t.jsxs)("li",{className:1===s?w():void 0,...(0,u.getTestProps)(`contextual-nav-item-${s}-${c}`),children:[(0,t.jsx)(y,{item:e,isCurrent:h,isExpanded:m,hasChildren:b.length>0,onToggle:n,level:s,showToggle:v,isNavExpanded:o,isParentExpanded:l}),b.length>0&&m&&(0,t.jsx)("div",{className:1===s?x():_(),role:"region","aria-labelledby":`contextual-nav-link-${p}`,id:`contextual-nav-sublist-${p}`,children:(0,t.jsx)(d,{items:b,currentPageId:r,expandedItems:i,onToggle:n,level:s+1,isNavExpanded:o,isParentExpanded:m})})]},p)})})},p=({props:e,initialNavExpanded:a=!0,showToggleButton:l=!0})=>{let{staticProps:p}=e,h=(0,o.useRef)(null),f=(p?.navRoot?.children?.results||[]).filter(n),m=p?.currentPage?.id||"",{expandedItems:y,isNavExpanded:b,handleItemToggle:v,handleNavToggle:x}=c(m,p?.currentPage?.ancestors||[],f,a);if(!p?.navRoot||!n(p.navRoot))return(0,t.jsx)(t.Fragment,{});let{container:_,heading:w,link:T,mainButton:S,mainLink:C,navContainer:E,mainNavItem:k,mainIcon:N}=g({isExpanded:b,current:p.navRoot.url?.path===p.currentPage.url?.path||p.navRoot.id===p.currentPage.id});return(0,t.jsx)("aside",{className:_(),"data-component":"authorable/shared/lists/contextual-nav",id:e.rendering.uid,...(0,u.getTestProps)(`contextual-nav-${a?"desktop":"mobile"}-${e?.rendering?.uid}`),children:(0,t.jsxs)("nav",{role:"navigation","aria-label":"Contextual Navigation",children:[(0,t.jsx)("div",{className:w(),children:(0,t.jsxs)("div",{className:k(),children:[(0,t.jsx)(r.default,{field:s(p.navRoot),className:C()+T(),ctaComponentClass:"default",...(0,u.getTestProps)("contextual-nav-main-nav")}),l?(0,t.jsx)("button",{className:S(),"aria-expanded":b,"aria-controls":"contextual-nav-list","aria-label":b?"Collapse navigation":"Expand navigation",onClick:x,type:"button",ref:h,...(0,u.getTestProps)("contextual-nav-toggle-btn"),children:(0,t.jsx)(i.SvgIcon,{className:N(),icon:"chevron-down",size:"xs"})}):(0,t.jsx)(i.SvgIcon,{className:N(),icon:"arrow-dash-right",size:"s"})]})}),(0,t.jsx)("div",{className:E(),id:"contextual-nav-list","aria-hidden":!b,children:f.length>0?(0,t.jsx)(d,{items:f,currentPageId:m,expandedItems:y,onToggle:v,level:1,isNavExpanded:b,isParentExpanded:!0}):(0,t.jsx)("p",{children:"No navigation items found"})})]})})},h=e=>(0,t.jsx)(p,{props:e,initialNavExpanded:!1,showToggleButton:!0}),f=e=>(0,t.jsx)(p,{props:e,initialNavExpanded:!0,showToggleButton:!1}),g=(0,l.tv)({slots:{container:["contextual-nav","relative","w-full","min-w-max"],heading:["w-full","font-semibold","rounded-general-border-radius-button","text-typography-font-size-body-medium","font-typography-font-family-body","bg-color-fill-brand-1","px-spacing-spacing-4"],navContainer:["transition-all","duration-300","ease-in-out"],mainNavItem:["relative","group","flex","items-center","transition-colors","duration-200"],navItem:["relative","rounded-general-border-radius-button"],button:["mx-2","w-8","h-8","flex","items-center","justify-center","rounded-full","hover:bg-color-fill-fill-hover","focus:outline-none","focus:ring-2"],mainButton:["ml-auto","w-8","h-8","flex","items-center","justify-center","rounded-border-radius-radius-3","focus:outline-none","focus:ring-border-width-width-05","flex-shrink-0","transition-colors","duration-200"],mainLink:["!text-color-text-white","px-spacing-spacing-12","py-spacing-spacing-12","text-color-text-dark"],icon:["w-4","h-4","transition-transform","duration-200","flex-shrink-0","text-color-icon-icon","group-hover:text-color-icon-icon-hover"],listItem:["py-spacing-spacing-8","border-b","border-color-border-border-secondary"],link:["block","font-semibold","font-typography-font-family-body","text-typography-font-size-body-medium","text-color-text-text-secondary","rounded-general-border-radius-button","hover:text-color-text-text","hover:underline","focus:bg-transparent","focus:outline-offset-0","flex-1","transition-colors","duration-200"],list:["rounded-general-border-radius-button","bg-color-surface-white","mx-spacing-spacing-8"],sublist:["transition-all","duration-200","ease-in-out"],sublistChild:["mt-spacing-spacing-1","mx-spacing-spacing-1","transition-all","duration-200","ease-in-out"],childIcon:["!w-6","!h-6","mr-2","transition-opacity","duration-200","ease-in-out","opacity-100","md:opacity-0","md:group-hover:opacity-100","flex-shrink-0","text-color-icon-icon","group-hover:text-color-icon-icon-hover"],mainIcon:["mr-spacing-spacing-12","transition-opacity","duration-200","ease-in-out","flex-shrink-0","text-color-text-white","group-hover:text-color-text-white"]},variants:{isExpanded:{true:{icon:["rotate-180","text-color-icon-icon"],navItem:["bg-color-fill-fill-selected","hover:bg-color-fill-fill-selected"],navContainer:["max-h-full","opacity-100","pointer-events-auto"],sublist:["max-h-full","opacity-100"],sublistChild:["max-h-full","opacity-100"]},false:{icon:["text-color-icon-icon"],navItem:["hover:bg-color-fill-fill-hover"],navContainer:["max-h-0","opacity-0","pointer-events-none"],sublist:["max-h-0","opacity-0"],sublistChild:["max-h-0","opacity-0"]}},current:{true:{link:["underline"]}},isChild:{true:{navItem:["relative","my-spacing-spacing-1","mx-spacing-spacing-1","group","flex","items-center","transition-colors","duration-200"],link:["py-spacing-spacing-8","px-spacing-spacing-12"]},false:{navItem:["group","flex","items-center","transition-colors","duration-200"]}},isTopLevel:{true:{link:["py-spacing-spacing-8","px-spacing-spacing-16"],childIcon:["md:opacity-100"]}},isLevel1:{true:{link:["pl-spacing-spacing-12"]}},isLevel2:{true:{link:["pl-spacing-spacing-32"]}},level2isExpanded:{true:{navItem:["!bg-color-fill-fill-secondary","hover:bg-color-fill-fill-selected"]}},isLevel3:{true:{link:["pl-spacing-spacing-48"]}},isChildNoToggle:{true:{navItem:["w-fit","!hover:bg-transparent","!bg-transparent"]},false:{navItem:["w-auto"]}}},compoundVariants:[{current:!0,isChild:!0,class:{navItem:["!border-b-0","bg-color-surface-surface-secondary"]}},{isChild:!0,isChildNoToggle:!0,class:{navItem:["w-fit","hover:bg-transparent"],link:["!hover:bg-transparent","!bg-transparent"]}},{current:!0,isLevel2:!0,isChildNoToggle:!0,class:{navItem:["!bg-color-surface-white","hover:bg-color-surface-white"]}}]}),m=e=>(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"hidden md:block",children:(0,t.jsx)(f,{...e})}),(0,t.jsx)("div",{className:"block md:hidden",children:(0,t.jsx)(h,{...e})})]}),y=({item:e,isCurrent:n,isExpanded:a,hasChildren:o,onToggle:l,level:c=1,showToggle:d=!0,isNavExpanded:p=!0,isParentExpanded:h=!0,className:f=""})=>{let m=p&&h,{navItem:y,link:b,button:v,icon:x,childIcon:_}=g({current:n,isExpanded:a,isTopLevel:1==c,isChild:c>1,isChildNoToggle:c>1&&!o,isLevel2:2==c,level2isExpanded:2==c&&a,isLevel3:3==c});return(0,t.jsxs)("div",{className:`${y()} ${f}`,...(0,u.getTestProps)("component-contextual-nav-item"),children:[(0,t.jsx)(r.default,{className:b(),field:s(e),"aria-current":n?"page":void 0,ctaComponentClass:"default",tabIndex:m?void 0:-1,...(0,u.getTestProps)("page-link")}),o&&d?(0,t.jsx)("button",{className:v(),"aria-expanded":a,"aria-controls":`contextual-nav-sublist-${e.id??""}`,"aria-label":a?"Collapse section":"Expand section",onClick:()=>l(e.id??""),type:"button",tabIndex:m?void 0:-1,children:(0,t.jsx)(i.SvgIcon,{className:x(),icon:"chevron-down",size:"xs"})}):(0,t.jsx)(i.SvgIcon,{className:_(),icon:"arrow-dash-right",size:"xs"})]})}},823370,e=>{"use strict";e.s(["Default",()=>n]);var t=e.i(843476),r=e.i(206303),i=e.i(136905);let n=e=>{let{rendering:n,page:a}=e;return(0,t.jsxs)("div",{className:"w-full flex flex-col md:flex-row gap-6",...(0,i.getTestProps)(`component-sidebar-layout-${n?.uid}`),children:[(0,t.jsx)("div",{className:"w-full md:w-1/4 flex-shrink-0","data-
166placeholder":"editorial-left",children:(0,t.jsx)(r.PlaceholderWrapper,{name:"custom-sidebar-left",rendering:n,...(0,i.getTestProps)("ph-left"),page:a})}),(0,t.jsx)("div",{className:"w-full md:w-3/4 flex-grow","data-placeholder":"editorial-right",children:(0,t.jsx)(r.PlaceholderWrapper,{name:"custom-sidebar-right",rendering:n,...(0,i.getTestProps)("ph-right"),page:a})})]})}},690632,e=>{"use strict";var t=e.i(843476);let r=(0,e.i(271645).createContext)({textAlignment:"Left"});e.s(["TextAlignmentProvider",0,({children:e,textAlignment:i})=>(0,t.jsx)(r.Provider,{value:{textAlignment:i},children:e})])},147303,e=>{"use strict";e.s(["Default",()=>v,"SectionWithImage",()=>x]);var t=e.i(843476),r=e.i(84853),i=e.i(206303),n=e.i(211418),a=e.i(389980),s=e.i(506914),o=e.i(690632),l=e.i(136905),c=e.i(296217),u=e.i(340189),d=e.i(474176),p=e.i(148263),h=e.i(202191),f=e.i(828029),g=e.i(133267),m=e.i(422674),y=e.i(466339),b=e.i(455601);let v=(0,r.withStandardComponentWrapper)(e=>{let{DynamicPlaceholderId:r,RenderingIdentifier:n}=e?.params||{},{title:p,description:v,removePaddingTop:x,removePaddingBottom:w,removePaddingLeftRight:T,removeMobilePaddingLeftRight:S,displayCenter75:C,bottomCTA:E,descriptionMobileFontSize:k,descriptionDesktopFontSize:N,titleMobileFontSize:I,titleDesktopFontSize:A,titleHtmlLevel:j,dynamicTitle:P}=e?.fields||{},O=(0,d.parseStyleParams)(e?.params,["cta1","cta2"]),L=e?.params?.selectTheme,D=e?.params?.alignment||"Left",R=!!(p?.value||v?.value||E?.value?.href),M=!!x?.value,B=!!w?.value,U=!!T?.value,F=!!S?.value,$=!!C?.value,z=`section-${r}`,{base:q,sectionTitle:H,sectionDescription:W,sectionContentWrapper:V,sectionItemWrapper:G,ctaContainer:X}=_(),K=(0,h.getTypographyClassName)(W,k,N),Y=(0,h.getTypographyClassName)(H,I,A),Q=(0,f.default)(),J=(0,h.getHeadingTag)(j,Q,"h2"),{sitecoreContext:Z}=(0,m.useSitecoreContext)(),ee=Z?.route,et=ee?.fields?.ContentType,er=Array.isArray(et)?et[0]:null,ei=P?.value===!0,en=er?.fields?.Title?.value,ea=p?.value,es={value:`${ea??""}`.replace("{Tag}",en??"").trim()},eo=ei?es:p,el=er?.fields?.Track?.value,ec=Z?.route,eu=ec?.templateId===y.SearchPageTemplates.AssetTemplate,ed=ec?.fields,ep=eu&&ed?.isAssetGated?.value===!0;return(0,t.jsx)("div",{"data-component":"authorable/shared/layout/section",id:n||e.params?.sectionId,...(0,l.getTestProps)(`component-section-${e?.rendering?.uid}`),children:(0,t.jsx)(a.BrandAndThemeProvider,{theme:L,children:(0,t.jsx)(o.TextAlignmentProvider,{textAlignment:D,children:(0,t.jsx)("div",{className:q({textAlignment:D,removePaddingTop:M,removePaddingBottom:B,removePaddingLeftRight:U,removeMobilePaddingLeftRight:F}),children:(0,t.jsxs)("div",{className:V({hasContent:R,displayCenter75:$}),children:[(0,t.jsxs)("div",{className:G(),children:[(0,t.jsx)(g.default,{className:Y,field:eo,tag:J}),(0,t.jsx)("p",{className:K,children:(0,t.jsx)(s.default,{field:v})})]}),(0,t.jsx)(i.PlaceholderWrapper,{name:z,rendering:e.rendering,page:e.page}),(0,t.jsx)("div",{className:X({textAlignment:D}),children:(0,t.jsx)(c.default,{ctaComponentClass:"component-hero-button-color-1",ctaStyle:(0,u.getCtaStyle)(O.cta1,"primary"),field:E,gtmEvent:eu&&!ep&&el?(0,b.createCTAClickEvent)({event:"asset_ungated_download",componentName:"Section CTA",clickText:E?.value?.text||E?.value?.title||"",componentHeader:p?.value||""}):void 0,suppressNewTabIcon:!0,...(0,l.getTestProps)("bottomCTA")})})]})})})})})},!1),x=(0,r.withStandardComponentWrapper)(e=>{let{DynamicPlaceholderId:r,RenderingIdentifier:n}=e?.params||{},{title:v,description:x,removePaddingTop:w,removePaddingBottom:T,removePaddingLeftRight:S,removeMobilePaddingLeftRight:C,displayCenter75:E,bottomCTA:k,bgImageDesktop:N,bgImageMobile:I,descriptionMobileFontSize:A,descriptionDesktopFontSize:j,titleMobileFontSize:P,titleDesktopFontSize:O,titleHtmlLevel:L,dynamicTitle:D}=e?.fields||{},R=(0,d.parseStyleParams)(e?.params,["cta1","cta2"]),M=e?.params?.selectTheme,B=e?.params?.alignment||"Left",U=!!(v?.value||x?.value||k?.value?.href),F=!!w?.value,$=!!T?.value,z=!!S?.value,q=!!C?.value,H=!!E?.value,W=`section-${r}`,V=(0,p.useIsMobile)()&&I?.value?.src||N?.value?.src,{base:G,sectionTitle:X,sectionDescription:K,sectionContentWrapper:Y,sectionItemWrapper:Q,ctaContainer:J}=_(),Z=(0,h.getTypographyClassName)(K,A,j),ee=(0,h.getTypographyClassName)(X,P,O),et=(0,f.default)(),er=(0,h.getHeadingTag)(L,et,"h2"),{sitecoreContext:ei}=(0,m.useSitecoreContext)(),en=ei?.route,ea=en?.templateId===y.SearchPageTemplates.AssetTemplate,es=en?.fields,eo=ea&&es?.isAssetGated?.value===!0,el=en?.fields?.ContentType,ec=Array.isArray(el)?el[0]:null,eu=ec?.fields?.Track?.value,ed=D?.value===!0,ep=ec?.fields?.Title?.value,eh=v?.value,ef={value:`${eh??""}`.replace("{Tag}",ep??"").trim()},eg=ed?ef:v,em=V?{position:"absolute",top:0,bottom:0,left:"calc(-50vw + 50%)",right:"calc(-50vw + 50%)",backgroundImage:`url('${V}')`,backgroundSize:"cover",backgroundPosition:"center",backgroundRepeat:"no-repeat",zIndex:0}:{};return(0,t.jsx)("div",{"data-component":"authorable/shared/layout/section",id:n||e.params?.sectionId,...(0,l.getTestProps)(`component-section-${e?.rendering?.uid}`),children:(0,t.jsx)(a.BrandAndThemeProvider,{theme:M,children:(0,t.jsx)(o.TextAlignmentProvider,{textAlignment:B,children:(0,t.jsxs)("div",{className:G({textAlignment:B,removePaddingTop:F,removePaddingBottom:$,removePaddingLeftRight:z,removeMobilePaddingLeftRight:q}),children:[V&&(0,t.jsx)("div",{style:em,"aria-hidden":"true"}),(0,t.jsxs)("div",{className:Y({hasContent:U,displayCenter75:H}),style:V?{zIndex:1}:void 0,children:[(0,t.jsxs)("div",{className:Q(),children:[(0,t.jsx)(g.default,{className:ee,field:eg,tag:er}),(0,t.jsx)("p",{className:Z,children:(0,t.jsx)(s.default,{field:x})})]}),(0,t.jsx)(i.PlaceholderWrapper,{name:W,rendering:e.rendering,page:e.page}),(0,t.jsx)("div",{className:J({textAlignment:B}),children:(0,t.jsx)(c.default,{ctaComponentClass:"component-hero-button-color-1",ctaStyle:(0,u.getCtaStyle)(R.cta1,"primary"),field:k,gtmEvent:ea&&!eo&&eu?(0,b.createCTAClickEvent)({event:"asset_ungated_download",componentName:"Section CTA",clickText:k?.value?.text||k?.value?.title||"",componentHeader:v?.value||""}):void 0,suppressNewTabIcon:!0,...(0,l.getTestProps)("bottomCTA")})})]})]})})})})},!1),_=(0,n.tv)({slots:{base:["flex","bg-component-section-bg","gap-component-section-container-gutter","flex-wrap","relative","before:absolute","before:inset-0","before:left-[calc(-50vw+50%)]","before:right-[calc(-50vw+50%)]","before:bg-component-section-bg","before:-z-10","after:absolute","after:inset-0","after:left-[calc(-50vw+50%)]","after:right-[calc(-50vw+50%)]","after:bg-component-section-bg","after:-z-10"],sectionTitle:["text-component-section-title","text-typography-font-size-xlarge","font-semibold","leading-typography-line-height-xlarge","break-words","overflow-wrap-anywhere","[&>span]:bg-clip-text","[&>span]:text-transparent","[&>span]:bg-gradient-to-r","[&>span]:from-color-core-color-2-400","[&>span]:via-color-core-gradient-1-stop-2","[&>span]:to-color-core-gradient-1-stop-1","[&>span]:from-[0%]","[&>span]:via-[40%]","[&>span]:to-[100%]"],sectionDescription:["text-component-section-body","font-normal","text-typography-font-size-body-large","leading-typography-line-height-body-large","break-words"],ctaContainer:["flex","px-spacing-spacing-24","justify-center","items-center","w-fit","gap-spacing-spacing-8"],sectionContentWrapper:["flex","flex-col","w-full","h-auto"],sectionItemWrapper:["gap-general-spacing-title-margin-bottom","flex","flex-col"]},variants:{textAlignment:{Left:"text-left",Center:{base:"text-center",ctaContainer:["mx-auto"]},Right:{base:"text-right",ctaContainer:["ml-auto"]}},hasContent:{true:{sectionContentWrapper:"gap-space-between-more"},false:{sectionContentWrapper:"gap-0"}},removePaddingTop:{true:{base:["pt-0"]},false:{base:["pt-general-spacing-margin-y"]}},removePaddingBottom:{true:{base:["pb-0"]},false:{base:["pb-general-spacing-margin-y"]}},removePaddingLeftRight:{true:{base:[]},false:{base:["px-general-spacing-margin-x"]}},removeMobilePaddingLeftRight:{true:{base:["max-md:px-0"]},false:{base:[]}},displayCenter75:{true:{sectionContentWrapper:["max-w-layout-container-center70-max-width","mx-auto"]},false:{sectionContentWrapper:[]}}},defaultVariants:{textAlignment:"Left",hasContent:!1,removePaddingTop:!1,removePaddingBottom:!1,removePaddingLeftRight:!1,removeMobilePaddingLeftRight:!1,displayCenter75:!1}})},446326,e=>{"use strict";e.s(["Default",()=>n]);var t=e.i(843476),r=e.i(206303),i=e.i(136905);let n=e=>{let{rendering:n,page:a}=e;return(0,t.jsx)("div",{className:"w-full flex flex-col",...(0,i.getTestProps)(`component-search-main-${n?.uid}`),children:(0,t.jsx)(r.PlaceholderWrapper,{name:"custom-search-main",rendering:n,page:a})})}},551643,e=>{"use strict";var t=e.i(843476),r=e.i(271645);let i=(0,r.createContext)({intersectionEntries:{},updateIntersectionEntry:()=>{},forceSetActiveEntry:()=>{}});function n(){return(0,r.useContext)(i)}e.s(["JumpNavContextProvider",0,function({children:e,entries:n}){let[a,s]=(0,r.useState)({}),[o,l]=(0,r.useState)(n[0]),[c,u]=(0,r.useState)(!1),d=(0,r.useRef)(null),p=(0,r.useRef)(!1),h=(0,r.useCallback)((e,t)=>{s(r=>({...r,[e]:t}))},[]),f=(0,r.useCallback)(e=>{let t=n.find(t=>t.uid===e);t&&(l(t),u(!0),d.current=e,p.current=!0)},[n]);return(0,r.useEffect)(()=>{let e;if(c||!p.current&&o)return;let t=window.innerHeight/2;
166for(let r=0;r<n.length;r++){let i=n[r];if(i?.uid&&a[i.uid]){let r=a[i.uid],n=document.getElementById("jumpnav-header-"+i.uid),s=n?n.getBoundingClientRect().height-50:0,o=r.boundingClientRect.top-s,l=r.boundingClientRect.bottom-s;if(o<=t&&l>=t){e=i;break}}}e&&(l(e),p.current=!0)},[n,a,c,o]),(0,r.useEffect)(()=>{let e,t=()=>{p.current=!0,c&&(clearTimeout(e),e=setTimeout(()=>{u(!1),d.current=null},150))};return window.addEventListener("scroll",t,{passive:!0}),()=>{window.removeEventListener("scroll",t),clearTimeout(e)}},[c]),(0,t.jsx)(i.Provider,{value:{intersectionEntries:a,updateIntersectionEntry:h,activeEntry:o,forceSetActiveEntry:f},children:e})},"useJumpNavContext",0,n,"useMainHeaderHeight",0,function(){let[e,t]=(0,r.useState)(0);return(0,r.useEffect)(()=>{let e=()=>{let e=document.getElementById("header");e&&t(e.getBoundingClientRect().height)};return e(),window.addEventListener("resize",e),window.addEventListener("scroll",e),()=>{window.removeEventListener("resize",e),window.removeEventListener("scroll",e)}},[]),e},"useWatchJumpNavActiveState",0,function(e,t,i){let{updateIntersectionEntry:a}=n();(0,r.useEffect)(()=>{if(!t||!e.current)return;let r=()=>{let r=e.current;if(!r)return;let n=document.getElementById(i),s=n?n.getBoundingClientRect().height-50:0,o=r.getBoundingClientRect(),l=o.top<=s&&o.bottom>=0;a(t,{boundingClientRect:o,intersectionRatio:+!!l,intersectionRect:l?o:new DOMRect,isIntersecting:l,rootBounds:null,target:r,time:Date.now()})};return r(),window.addEventListener("scroll",r,{passive:!0}),()=>{window.removeEventListener("scroll",r)}},[a,e,t,i])}])},437602,e=>{"use strict";e.s(["Default",()=>u]);var t=e.i(843476),r=e.i(271645),i=e.i(211418),n=e.i(84853),a=e.i(39220),s=e.i(506914),o=e.i(551643),l=e.i(206303),c=e.i(136905);let u=(0,n.withStandardComponentWrapper)(e=>{let{heading:i}=e?.fields||{},{uid:n}=e?.rendering||{},u=e.context||"desktop",p=`accordion-${n}`,h=(0,r.useRef)(null),f=(0,r.useRef)(null);(0,a.useScrollElementIntoView)(h.current,{stickyHeaderId:`jumpnav-header-${n}`,animationElement:f.current,scrollTargetId:p}),(0,o.useWatchJumpNavActiveState)(h,n,`jumpnav-header-${n}`);let{base:g,headline:m}=d();return(0,t.jsx)("div",{className:g(),"data-component":"authorable/shared/layout/jump-nav-mobile-accordion-item",ref:h,id:`accordion-${n}`,tabIndex:-1,...(0,c.getTestProps)(`component-jump-nav-section-${e?.rendering?.uid}`),children:(0,t.jsxs)("div",{ref:f,"aria-labelledby":`jumpnav-${u}-${n}`,children:[(0,t.jsx)(s.default,{className:m(),field:i,tag:"h2",id:`jumpnav-header-${n}`,...(0,c.getTestProps)("header")}),(0,t.jsx)(l.PlaceholderWrapper,{name:"custom-section-content",rendering:e.rendering,...(0,c.getTestProps)("placeholder"),page:e.page})]})},p)}),d=(0,i.tv)({slots:{base:["overflow-hidden"],headline:["items-center","justify-between","font-bold","text-typography-font-size-large","font-typography-font-family-header","text-color-text-text"]}})},482867,e=>{"use strict";e.s(["focusUnfocusableElement",0,function(e,t){if(!e)return;let r=e.tabIndex;-1===r&&(e.tabIndex=0),e.focus({preventScroll:t}),e.tabIndex=r}])},494274,e=>{"use strict";e.s(["Default",()=>m]);var t=e.i(843476),r=e.i(271645),i=e.i(211418),n=e.i(84853),a=e.i(588318),s=e.i(506914),o=e.i(39220),l=e.i(296217),c=e.i(783697),u=e.i(551643),d=e.i(482867),p=e.i(206303);e.i(879806);var h=e.i(871084),f=e.i(310099),g=e.i(136905);let m=(0,n.withStandardComponentWrapper)(e=>{let{DynamicPlaceholderId:i}=e?.params||{},[n,s]=(0,r.useState)(!1),{getDictionaryValue:o}=(0,f.default)(),l=`jump-nav-container-${i}`,d=(0,u.useMainHeaderHeight)(),{base:m,mainGrid:b,sideContent:x,jumpNav:_,mainContent:w,navHeading:T,navigationForMobile:S,navigationMobileButon:C,navigationMobileList:E,navigationMobileListWrapper:k,jumpNavAccoordionList:N,contentWrapper:I}=v(),A=(0,a.findComponent)(e.rendering,"JumpNavSection"),j={top:`${d}px`};return(0,t.jsx)("section",{className:m(),"data-component":"authorable/shared/layout/jump-nav-container",id:e.rendering.uid,...(0,g.getTestProps)(`component-jump-nav-container-${e?.rendering?.uid}`),children:(0,t.jsx)(u.JumpNavContextProvider,{entries:A,children:(0,t.jsxs)("div",{className:b(),children:[(0,t.jsx)("div",{className:x(),children:(0,t.jsxs)("aside",{className:_(),style:j,"aria-label":"Page section navigation",children:[(0,t.jsx)(c.EditingHelpText,{children:"Edit below to give a different text for the sidebar. If left blank, it will show the section header in the real site."}),(0,t.jsx)("span",{className:T(),...(0,g.getTestProps)("heading"),children:o("TableOfContent")||"Table of contents"}),y(A,"desktop")]})}),(0,t.jsxs)("div",{className:w(),...(0,g.getTestProps)("main-content"),children:[(0,t.jsxs)("div",{className:S(),id:"jumpnav-mobile",style:j,...(0,g.getTestProps)("jumpnav-mobile"),children:[(0,t.jsxs)("button",{onClick:()=>s(!n),className:C(),...(0,g.getTestProps)("mobile-btn"),children:[(0,t.jsx)("span",{children:o("TableOfContent")||"Table of contents"}),(0,t.jsx)(h.SvgIcon,{icon:n?"accordion-minus":"accordion-plus",size:"s",viewBox:"0 0 20 21",fill:"currentColor"})]}),(0,t.jsx)("div",{className:k({isOpen:n}),...(0,g.getTestProps)("jumpnav-mobile-list-wrapper"),children:(0,t.jsx)("div",{className:`${E()}`,children:(0,t.jsx)("aside",{"aria-label":"Page section navigation",className:N(),children:y(A,"mobile")})})})]}),(0,t.jsx)("div",{className:I(),children:(0,t.jsx)(p.PlaceholderWrapper,{name:l,rendering:e.rendering,renderMobileAsAccordion:!1,...(0,g.getTestProps)("jump-nav-ph"),page:e.page})})]})]})})})},!1),y=(e,r)=>{let{jumpNavListWrapper:i}=v();return(0,t.jsx)("ul",{className:i(),role:"menubar",...(0,g.getTestProps)("jumpnav-list"),children:e.map((e,i)=>(0,t.jsx)("li",{role:"menuitem",children:(0,t.jsx)(b,{item:e,context:r,...(0,g.getTestProps)(`jumpnav-item-${i}`)})},e.uid))})};function b({item:e,context:r}){let{navTitleLinkWrapper:i}=v(),{activeEntry:n,forceSetActiveEntry:a}=(0,u.useJumpNavContext)(),c=n?.uid===e.uid;return(0,t.jsx)(l.default,{ctaComponentClass:"default",className:i({isActive:c}),ctaVariant:"custom",field:{href:"#",anchor:"accordion-"+e.uid},id:`jumpnav-${r}-${e.uid}`,"aria-label":`jumpnav-${e.fields?.heading?.value}`,"aria-current":c,onClick:t=>{t.preventDefault();let r=document.getElementById("accordion-"+e.uid),i=document.getElementById("jumpnav-mobile"),n=i?.getBoundingClientRect()?.height||0;r&&e.uid&&(a(e.uid),(0,o.smoothScrollToElement)(r,"header",null,0,n),(0,d.focusUnfocusableElement)(r,!0))},children:(0,t.jsx)(s.default,{field:e.fields?.jumpNavHeading,fallbacks:[e.fields?.heading]})})}let v=(0,i.tv)({slots:{base:[],mainGrid:["grid","grid-cols-3","gap-layout-base-gutter"],sideContent:["hidden","lg:block","col-span-1","order-2"],jumpNav:["sticky","flex","flex-col","pl-margin-tight","gap-space-between-tight","border-l","border-l-color-border-border"],navTitleLinkWrapper:["font-typography-font-family-body","text-typography-font-size-body-small","font-normal","relative","group","text-color-text-text","hover:text-color-text-link-link-hover"],mainContent:["col
166-span-3","lg:col-span-2","order-1"],jumpNavListWrapper:["flex","flex-col","gap-spacing-spacing-8"],navHeading:["text-color-text-dark","font-typography-font-family-body","text-typography-font-size-body-xsmall","font-semibold"],navigationMobileListWrapper:["grid","overflow-hidden","transition-[grid-template-rows]","duration-500","ease-in-out"],navigationForMobile:["block","sticky","lg:hidden","px-spacing-spacing-12","py-spacing-spacing-16","bg-color-surface-surface-secondary","flex","flex-col","rounded-component-jump-nav-mobile-radius"],jumpNavAccoordionList:["mt-spacing-spacing-16"],navigationMobileList:["min-h-0"],navigationMobileButon:["w-full","flex","justify-between"],contentWrapper:["mt-layout-base-gutter","lg:mt-0"]},variants:{isActive:{true:{navTitleLinkWrapper:["font-semibold"]},false:{}},isOpen:{true:{navigationMobileListWrapper:["grid-rows-[1fr]"]},false:{navigationMobileListWrapper:["grid-rows-[0fr]"]}}}})},643030,e=>{"use strict";var t=e.i(843476),r=e.i(84853),i=e.i(211418),n=e.i(136905);let a=(0,r.withStandardComponentWrapper)(e=>{let{RenderingIdentifier:r,addVerticalPadding:i}=e?.params||{},{base:a,wrapper:o}=s({addVerticalPadding:"1"===i});return(0,t.jsx)("div",{"data-component":"authorable/shared/layout/divider",id:r,className:o(),...(0,n.getTestProps)(`component-divider-${e?.rendering?.uid}`),children:(0,t.jsx)("div",{className:a()})})},!1),s=(0,i.tv)({slots:{wrapper:["w-full"],base:["w-full","h-px","bg-color-border-border"]},variants:{addVerticalPadding:{true:{wrapper:["py-spacing-spacing-40"]}}}});e.s(["Default",0,a])},308173,e=>{"use strict";e.s(["Default",()=>a]);var t=e.i(843476),r=e.i(211418),i=e.i(206303),n=e.i(136905);let a=e=>{let{page:r}=e,a=`custom-container-large-${e?.params?.DynamicPlaceholderId||"container-full-width"}`,{base:o,container:l}=s();return(0,t.jsx)("div",{className:o(),...(0,n.getTestProps)(`component-container-full-width-${e?.rendering?.uid}`),children:(0,t.jsx)("div",{className:l(),children:(0,t.jsx)(i.PlaceholderWrapper,{name:a,rendering:e?.rendering,page:r})})})},s=(0,r.tv)({slots:{base:["w-full","flex","flex-col","md:flex-row"],container:["w-full","grid","grid-cols-1","gap-layout-base-margin-y","py-layout-base-margin-y","md:gap-component-section-container-padding-y","md:py-component-section-container-padding-y"]}})},631642,e=>{"use strict";e.s(["Default",()=>a]);var t=e.i(843476),r=e.i(211418),i=e.i(206303),n=e.i(136905);let a=e=>{let{page:r}=e,a=`custom-container-extra-large-${e?.params?.DynamicPlaceholderId||"container-full-bleed"}`,{container:o,content:l}=s();return(0,t.jsx)("div",{className:o(),...(0,n.getTestProps)(`component-container-full-bleed-${e?.rendering?.uid}`),children:(0,t.jsx)("div",{className:l(),children:(0,t.jsx)(i.PlaceholderWrapper,{name:a,rendering:e?.rendering,page:r})})})},s=(0,r.tv)({slots:{container:["w-full","flex","flex-col","justify-center","relative","left-[calc(-50vw+50%)]","right-[calc(-50vw+50%)]","w-screen"],content:["mx-auto"]}})},130356,e=>{"use strict";e.s(["Default",()=>a]);var t=e.i(843476),r=e.i(211418),i=e.i(206303),n=e.i(136905);let a=e=>{let{page:r}=e,a=`custom-container-medium-${e?.params?.DynamicPlaceholderId||"container-center-75"}`,{container:o,content:l}=s();return(0,t.jsx)("div",{className:o(),...(0,n.getTestProps)(`component-container-center-75-${e?.rendering?.uid}`),children:(0,t.jsx)("div",{className:l(),children:(0,t.jsx)(i.PlaceholderWrapper,{name:a,rendering:e?.rendering,page:r})})})},s=(0,r.tv)({slots:{container:["w-full","flex","flex-col","py-layout-base-margin-y","md:flex-row","md:py-component-section-container-padding-y","justify-center"],content:["w-full","grid","grid-cols-1","gap-layout-base-margin-y","md:max-w-layout-container-center70-max-width","md:gap-component-section-container-padding-y"]}})},363703,e=>{"use strict";e.s(["Default",()=>a]);var t=e.i(843476),r=e.i(211418),i=e.i(206303),n=e.i(136905);let a=e=>{let{page:r}=e,a=`custom-container-small-${e?.params?.DynamicPlaceholderId||"container-75-25"}`,o=`custom-container-medium-${e?.params?.DynamicPlaceholderId||"container-75-25"}`,l=e?.params?.styles?.split(" ").includes("top")?"top":void 0,c=e?.params?.templateStyle?.toLowerCase(),u=e?.params?.centeredLayout?.value==="true"||e?.params?.centeredLayout==="1",{container:d,baseColumn:p,leftColumn:h,rightColumn:f}=s({align:l,fullColumn:u,templateStyle:"asset page v2"===c?"assets":"event detail page"===c?"events":void 0});return(0,t.jsxs)("div",{className:d(),...(0,n.getTestProps)(`component-container-25-75-${e?.rendering?.uid}`),children:[(0,t.jsx)("div",{className:`${p()} ${h()}`,children:(0,t.jsx)(i.PlaceholderWrapper,{name:o,rendering:e?.rendering,...(0,n.getTestProps)("ph-left"),page:r})}),!u&&(0,t.jsx)("div",{className:`${p()} ${f()}`,children:(0,t.jsx)(i.PlaceholderWrapper,{name:a,rendering:e?.rendering,...(0,n.getTestProps)("ph-right"),page:r})})]})},s=(0,r.tv)({slots:{container:["w-full","flex","flex-col","md:flex-row","gap-spacing-spacing-40","md:gap-spacing-spacing-24","py-layout-base-margin-y","md:px-layout-base-margin-x"],baseColumn:["w-full","grid","grid-cols-1","gap-layout-base-margin-y","md:gap-component-section-container-padding-y"],leftColumn:["md:w-3/4"],rightColumn:["md:w-1/4","md:self-stretch"]},variants:{align:{default:"",top:{rightColumn:["!block"]}},fullColumn:{default:"",true:{container:["justify-center"],leftColumn:["w-full"]}},templateStyle:{default:"",assets:{container:["px-spacing-spacing-24"]},events:{container:["px-spacing-spacing-24","gap-spacing-spacing-64","md:gap-spacing-spacing-64"]}}}})},390773,e=>{"use strict";e.s(["Default",()=>a]);var t=e.i(843476),r=e.i(211418),i=e.i(206303),n=e.i(136905);let a=e=>{let{page:r}=e,a=`custom-container-half-left-${e?.params?.DynamicPlaceholderId||"container-50-50"}`,o=`custom-container-half-right-${e?.params?.DynamicPlaceholderId||"container-50-50"}`,l=e?.params?.swapSubContainers,c=!!e?.params?.styles?.split(" ").includes("remove-horizontal-padding"),{container:u,halfColumn:d}=s({align:(e?.params?.styles?.split(" ").includes("gatted-asset-layout")?"gatted":void 0)??"default",swapSubContainers:l?1:void 0,removeHorizontalPadding:c});return(0,t.jsxs)("div",{className:u(),...(0,n.getTestProps)(`component-container-50-50-${e?.rendering?.uid}`),children:[(0,t.jsx)("div",{className:d(),children:(0,t.jsx)(i.PlaceholderWrapper,{name:a,rendering:e?.rendering,...(0,n.getTestProps)("ph-left"),page:r})}),(0,t.jsx)("div",{className:d(),children:(0,t.jsx)(i.PlaceholderWrapper,{name:o,rendering:e?.rendering,...(0,n.getTestProps)("ph-right"),page:r})})]})},s=(0,r.tv)({slots:{container:["w-full","flex","flex-col","py-layout-base-margin-y","gap-spacing-spacing-40"],halfColumn:["w-full","grid","grid-cols-1","gap-layout-base-margin-y"]},variants:{align:{default:{container:["md:flex-row md:gap-spacing-spacing-24"],halfColumn:["md:w-1/2 md:gap-component-section-container-padding-y"]},gatted:{container:["xl:flex-row xl:gap-spacing-spacing-80"],halfColumn:["xl:w-1/2 md:gap-component-section-container-padding-y"]}},swapSubContainers:{1:{container:["md:flex-row-reverse flex-col-reverse"]}},removeHorizontalPadding:{true:{container:["!py-0"]},false:{}}},defaultVariants:{align:"default"}})},841261,e=>{"use strict";e.s(["Default",()=>a]);var t=e.i(843476),r=e.i(211418),i=e.i(206303),n=e.i(136905);let a=e=>{let{page:r}=e,a=`custom-container-small-${e?.params?.DynamicPlaceholderId||"container-25-75"}`,o=`custom-container-medium-${e?.params?.DynamicPlaceholderId||"container-25-75"}`,{container:l,baseColumn:c,leftColumn:u,rightColumn:d}=s();return(0,t.jsxs)("div",{className:l(),...(0,n.getTestProps)(`component-container-25-75-${e?.rendering?.uid}`),children:[(0,t.jsx)("div",{className:`${c()} ${u()}`,children:(0,t.jsx)(i.PlaceholderWrapper,{name:a,rendering:e?.rendering,...(0,n.getTestProps)("ph-left"),page:r})}),(0,t.jsx)("div",{className:`${c()} ${d()}`,children:(0,t.jsx)(i.PlaceholderWrapper,{name:o,rendering:e?.rendering,...(0,n.getTestProps)("ph-right"),page:r})})]})},s=(0,r.tv)({slots:{container:["w-full","flex","flex-col","md:flex-row","gap-spacing-spacing-40","md:gap-spacing-spacing-24","py-layout-base-margin-y"],baseColumn:["w-full","grid","grid-cols-1","gap-layout-base-margin-y","md:gap-component-section-container-padding-y"],leftColumn:["md:w-1/4"],rightColumn:["md:w-3/4"]}})},71309,e=>{"use strict";e.s(["Default",()=>c]);var t=e.i(843476),r=e.i(84853),i=e.i(206303),n=e.i(211418),a=e.i(422674),s=e.i(588318),o=e.i(136905);let l=(0,n.tv)({slots:{base:["w-full"],articleMainContent:["flex"," flex-col"]},variants:{isArticleContent:{true:{articleMainContent:["pt-0","gap-margin-macro"]},false:{articleMainContent:["py-general-spacing-margin-y","gap-padding-loose"]}}}}),c=(0,r.withStandardComponentWrapper)(e=>{let{rendering:r,page:n}=e,{RenderingIdentifier:c}=e?.params||{},u=(0,a.useSitecoreContext)(),d=u?.sitecoreContext?.itemId,p=d?.toUpperCase().replace(/-/g,""),{base:h,articleMainContent:f}=l(),g=(0,s.findComponent)(e.rendering,"ArticleContent"),m=g?"none":"tabpanel";return(0,t.jsxs)("div",{"data-component":"authorable/shared/layout/article-main",id:c,className:h(),...(0,o.getTestProps)(`component-article-main-${e?.rendering?.uid}`),children:[(0,t.jsx)(i.PlaceholderWrapper,{name:"custom-article-top-content-header",rendering:r,page:n}),(0,t.jsxs)("div",{className:f({isArticleContent:(g?.length??0)>0}),id:`articletab-content-${p}`,role:m,children:[(0,t.jsx)(i.PlaceholderWrapper,{name:"custom-article-top-content-main",rendering:r,page:n}),(0,t.jsx)(i.PlaceholderWrapper,{name:"custom-article-main-content",rendering:r,page:n}),(0,t.jsx)(i.PlaceholderWrapper,{name:"custom-article-bottom-content",rendering:r,page:n})]})]})},!1)},130856,e=>{"use strict";var t=e.i(843476),r=e.i(271645),i=e.i(551643);
166let n=(0,r.createContext)({activeSectionId:null,setActiveSectionId:()=>{},registerSection:()=>{},unregisterSection:()=>{},scrollNavItemIntoView:void 0,scrollNavItemIntoViewOnClick:void 0,isLastSectionScrolled:!1});e.s(["AnchorNavProvider",0,function({children:e,scrollNavItemIntoView:a,scrollNavItemIntoViewOnClick:s}){let[o,l]=(0,r.useState)(null),[c,u]=(0,r.useState)(new Map),[d,p]=(0,r.useState)(!1),h=(0,i.useMainHeaderHeight)(),f=(0,r.useRef)(null),g=(0,r.useRef)(!1),m=(0,r.useRef)(!1),y=(0,r.useCallback)((e,t)=>{u(r=>{let i=new Map(r);return i.set(e,t),i})},[]),b=(0,r.useCallback)(e=>{u(t=>{let r=new Map(t);return r.delete(e),r})},[]),v=(0,r.useCallback)(e=>{g.current=!0,l(e),setTimeout(()=>{g.current=!1},1e3)},[]);return(0,r.useEffect)(()=>{m.current||!(c.size>0)||o||(l(Array.from(c.keys())[0]),m.current=!0)},[c,o]),(0,r.useEffect)(()=>{let e=()=>{if(g.current)return;let e=document.querySelector('[data-component="authorable/shared/layout/anchor-nav-container"]'),t=e?e.clientHeight:0,r=h+t+100,i=null,n=1/0,a=Array.from(c.keys());for(let e of a){let t=document.getElementById(e);if(!t)continue;let a=t.getBoundingClientRect(),s=a.top-r;if(a.top<=r&&a.bottom>=0){let t=Math.abs(s);t<n&&(n=t,i=e)}}if(!i&&a.length>0){let e=document.getElementById(a[0]);e&&e.getBoundingClientRect().top>r&&(i=a[0])}if(i&&i!==o&&l(i),a.length>0){let e=a[a.length-1],r=document.getElementById(e);if(r){let e=r.getBoundingClientRect(),i=h+t;p(e.bottom<i)}}},t=()=>{f.current&&clearTimeout(f.current),f.current=setTimeout(()=>{e()},30)};return c.size>0&&e(),window.addEventListener("scroll",t,{passive:!0}),()=>{window.removeEventListener("scroll",t),f.current&&clearTimeout(f.current)}},[c,h,o]),(0,t.jsx)(n.Provider,{value:{activeSectionId:o,setActiveSectionId:v,registerSection:y,unregisterSection:b,scrollNavItemIntoView:a,scrollNavItemIntoViewOnClick:s,isLastSectionScrolled:d},children:e})},"useAnchorNavContext",0,function(){return(0,r.useContext)(n)}])},667656,e=>{"use strict";var t=e.i(843476),r=e.i(271645),i=e.i(211418),n=e.i(84853),a=e.i(136905),s=e.i(296217),o=e.i(551643),l=e.i(130856),c=e.i(828029),u=e.i(455601),d=e.i(387644),p=e.i(376917);let h=(0,n.withStandardComponentWrapper)(e=>{let{sectionId:i,title:n}=e?.fields||{},{uid:h}=e?.rendering||{},g=(0,o.useMainHeaderHeight)(),m=(0,c.default)(),{activeSectionId:y,setActiveSectionId:b,registerSection:v,unregisterSection:x,scrollNavItemIntoView:_,scrollNavItemIntoViewOnClick:w}=(0,l.useAnchorNavContext)(),T=y===i.value,S=(0,r.useRef)(null),C=(0,r.useRef)(null),{base:E,link:k,linkText:N}=f({isActive:!!T||void 0});(0,r.useEffect)(()=>{let e=document.getElementById(i.value);if(e)return S.current=e,v(i.value,h||""),()=>{x(i.value)}},[i.value,h,v,x]);let[I,A]=(0,r.useState)(!1);(0,r.useEffect)(()=>{T&&C.current&&_&&!I?(_(C.current),A(!0)):T||A(!1)},[T,_,I]);let j=(0,r.useCallback)(e=>{let t=document.getElementById(e);if(!t)return;b(e),history.pushState(null,"",`#${e}`);let r=document.querySelector('[data-component="authorable/shared/layout/anchor-nav-container"]'),i=g+(r?r.clientHeight:0),n=t.getBoundingClientRect().top+window.scrollY-i;window.scrollTo({top:n,behavior:"smooth"})},[g,b]),P=(0,r.useCallback)(e=>{if(e.preventDefault(),m)return;let t=(0,u.createCTAClickEvent)({event:"cta_click",componentName:"Anchor Nav Item",clickText:n?.value||"",componentHeader:"NA"});(0,d.sendGTMEvent)(t),j(i.value),w&&C.current&&setTimeout(()=>{C.current&&w(C.current)},0)},[i.value,j,m,n?.value,w]),O=(0,r.useCallback)(e=>{if(m)return;let t=document.getElementById("anchor-nav-list");if(!t)return;let r=Array.from(t.querySelectorAll('[role="tab"]')),a=r.findIndex(t=>t===e.currentTarget);if(-1===a)return;let s=a;switch(e.key){case"ArrowRight":case"ArrowDown":e.preventDefault(),s=(a+1)%r.length;break;case"ArrowLeft":case"ArrowUp":e.preventDefault(),s=0===a?r.length-1:a-1;break;case"Home":e.preventDefault(),s=0;break;case"End":e.preventDefault(),s=r.length-1;break;case"Enter":case" ":e.preventDefault();let o=(0,u.createCTAClickEvent)({event:"cta_click",componentName:"Anchor Nav Item",clickText:n?.value||"",componentHeader:"NA"});(0,d.sendGTMEvent)(o),j(i.value);return;default:return}if(s!==a&&r[s]){r[s].focus();let e=r[s].getAttribute("aria-controls");e&&j(e)}},[i.value,j,m,n?.value]),L=`anchor-nav-tab-${i.value}`;return(0,t.jsx)("li",{ref:C,className:E(),"data-component":"authorable/shared/layout/anchor-nav-item",role:"none",...(0,a.getTestProps)(`component-anchor-nav-item-${h}`),children:(0,t.jsx)(s.default,{field:{href:"#",anchor:i.value},className:k(),ctaVariant:"custom",onClick:P,onKeyDown:O,role:"tab",id:L,"aria-controls":i.value,"aria-selected":T,tabIndex:T?0:-1,style:m?{cursor:"default",pointerEvents:"none"}:void 0,children:(0,t.jsx)(p.Text,{encode:!1,field:n,tag:"span",className:N(),...(0,a.getTestProps)("anchor-nav-item-title"),editable:!0})})})}),f=(0,i.tv)({slots:{base:["list-none","flex-shrink-0","snap-start","block"],link:["group","flex","items-center","justify-center","w-full","h-full","px-spacing-spacing-24","py-spacing-spacing-16","gap-spacing-spacing-0","rounded-general-border-radius-none","whitespace-nowrap","border-solid","border-component-anchor-nav-color-border","border-t-component-tab-border-width-top","border-r-component-tab-border-width-right","border-b-border-width-width-2","border-l-component-tab-border-width-left","hover:border-component-anchor-nav-color-border-active","transition-colors","duration-200","hover:bg-color-primary-hover","focus-visible:outline-none","focus-visible:outline","focus-visible:outline-4","focus-visible:outline-color-border-border-focus","focus-visible:outline-offset-[-4px]","focus-visible:border-b-border-width-width-2","focus-visible:border-b-component-anchor-nav-color-border-active","cursor-pointer","no-underline"],linkText:["text-component-anchor-nav-color-text","group-hover:text-component-anchor-nav-color-text-hover","group-focus-visible:text-component-anchor-nav-color-text-focused","font-typography-font-family-body","text-typography-font-size-body-medium","font-typography-font-size-body-medium","group-hover:font-typography-font-weight-body-semibold","group-focus-visible:font-typography-font-weight-body-bold","leading-typography-line-height-body-medium","transition-colors","duration-200"]},variants:{isActive:{true:{link:["border-component-anchor-nav-color-border-active"],linkText:["text-component-anchor-nav-color-text-active","font-typography-font-weight-body-bold"]}}}});e.s(["Default",0,h])},696668,e=>{"use strict";var t=e.i(843476),r=e.i(211418),i=e.i(84853),n=e.i(136905),a=e.i(828029);let s=(0,i.withStandardComponentWrapper)(e=>{let{sectionId:r,title:i}=e?.fields||{},{uid:s}=e?.rendering||{},l=(0,a.default)(),{}=o(),c=`anchor-nav-tab-${r.value}`;return(0,t.jsx)("div",{id:r.value,role:"tabpanel","aria-labelledby":c,...(0,n.getTestProps)(`component-anchor-dest-nav-${s}`),children:l&&(0,t.jsx)("div",{className:"text-center",children:i?.value})})}),o=(0,r.tv)({slots:{base:[]}});e.s(["Default",0,s])},690239,e=>{"use strict";e.s(["Default",()=>y,"ScrollButton",()=>g]);var t=e.i(843476),r=e.i(211418),i=e.i(84853),n=e.i(206303),a=e.i(136905),s=e.i(373073);e.i(879806);var o=e.i(871084),l=e.i(551643),c=e.i(828029),u=e.i(130856),d=e.i(783697),p=e.i(389980),h=e.i(461649),f=e.i(422674);let g=({direction:e,onClick:r})=>{let{tabArrows:i,scrollButtonContainer:n,scrollButtonInner:a}=b();return(0,t.jsx)("button",{className:i({right:"right"===e}),onClick:r,onKeyDown:e=>
166{("Enter"===e.key||" "===e.key)&&(e.preventDefault(),r())},"aria-label":`Scroll anchor navigation ${e}`,"aria-controls":"anchor-nav-list",tabIndex:0,children:(0,t.jsx)("div",{className:n(),children:(0,t.jsx)("div",{className:a(),children:(0,t.jsx)(o.SvgIcon,{icon:"right"===e?"arrow-dash-right-anchor":`arrow-dash-${e}`,size:"xss",viewBox:"0 0 20 20",fill:"currentColor"})})})})},m=e=>{let{DynamicPlaceholderId:r}=e?.params||{},i=`anchor-nav-container-${r}`,s=(0,c.default)(),{isLastSectionScrolled:o}=(0,u.useAnchorNavContext)(),{containerRef:h,isScrollable:f,isLeftArrowVisible:m,isRightArrowVisible:y,handleScroll:v}=e,x=(0,l.useMainHeaderHeight)(),{brand:_,theme:w}=(0,p.useBrandAndTheme)(),T={top:`${x}px`},{base:S,container:C,navList:E}=b();return(0,t.jsxs)("section",{className:`${_} ${w} brand-root ${S()} ${s?"bg-component-anchor-nav-color-bg":!s&&!o?"sticky top-0 z-30":""}`,style:T,"data-component":"authorable/shared/layout/anchor-nav-container",id:e.rendering.uid,...(0,a.getTestProps)(`component-anchor-nav-container-${e?.rendering?.uid}`),children:[(0,t.jsx)(d.EditingHelpText,{children:"Anchor navigation rendered as flat list for ease of editing. Add Anchor Nav Items below. Each item should link to an Anchor Nav Destination. This navigation will be sticky on published pages."}),(0,t.jsxs)("div",{className:C(),children:[f&&m&&(0,t.jsx)(g,{direction:"left",onClick:()=>v("left")}),(0,t.jsx)("ul",{className:E(),ref:h,role:"tablist",id:"anchor-nav-list","aria-label":"Anchor navigation",children:(0,t.jsx)(n.PlaceholderWrapper,{name:i,rendering:e.rendering,...(0,a.getTestProps)("anchor-nav-ph"),page:e.page})}),f&&y&&(0,t.jsx)(g,{direction:"right",onClick:()=>v("right")})]})]})},y=(0,i.withStandardComponentWrapper)(e=>{let{containerRef:r,isScrollable:i,isLeftArrowVisible:n,isRightArrowVisible:a,handleScroll:o,scrollTabIntoView:l,scrollTabIntoViewOnClick:c}
166=(0,s.useScrollableTabs)({leftArrowWidth:48,rightArrowWidth:48}),{sitecoreContext:d}=(0,f.useSitecoreContext)(),g=d?.site?.name,y=g?(0,h.getBrandForSiteName)(g):void 0,b=e?.params?.selectTheme??p.ALL_THEMES[2],v=e?.params?.selectBrand??y??p.ALL_BRANDS[0];return(0,t.jsx)(p.BrandAndThemeContext.Provider,{value:{brand:v,theme:b},children:(0,t.jsx)(u.AnchorNavProvider,{scrollNavItemIntoView:l,scrollNavItemIntoViewOnClick:c,children:(0,t.jsx)(m,{...e,containerRef:r,isScrollable:i,isLeftArrowVisible:n,isRightArrowVisible:a,handleScroll:o})})})},!1),b=(0,r.tv)({slots:{base:["relative","w-full","flex","flex-col","justify-end","items-center","md:py-component-anchor-nav-layout-container-padding-x","md:px-general-spacing-margin-x","px-0","py-0","gap-padding-none","before:z-[-1]","before:h-full","before:absolute","before:top-0","before:left-[calc(-50vw+50%)]","before:bg-component-anchor-nav-color-bg","before:border-t-border-width-width-025","before:border-t-solid","before:border-t-color-white-alpha-10","before:right-[calc(-50vw+50%)]"],container:["w-full","flex","items-center","relative","justify-center"],navList:["overflow-x-auto","overflow-y-visible","[scrollbar-width:none]","[-ms-overflow-style:none]","[&::-webkit-scrollbar]:hidden","rounded-component-tab-border-radius","flex","flex-nowrap","md:pt-spacing-spacing-4","pt-padding-micro","pb-0","pr-0","md:pl-spacing-spacing-4","pl-padding-micro","scroll-smooth"],tabArrows:["absolute","w-[48px]","h-full","bg-component-anchor-nav-color-bg"],scrollButtonContainer:["shrink-0","w-12","h-full","relative","flex","items-center","justify-center","overflow-hidden"],scrollButtonInner:["text-component-anchor-nav-color-icon","p-spacing-spacing-12","flex","flex-row","gap-spacing-spacing-8","items-center","justify-center","absolute","right-0"]},variants:{right:{true:{tabArrows:["right-[-1px]"]},false:{tabArrows:["left-[-1px]"]}}}})},328860,e=>{"use strict";var t=e.i(271645);e.s(["useDebounce",0,function(e,r=500){let[i,n]=(0,t.useState)(e);return(0,t.useEffect)(()=>{let t=setTimeout(()=>n(e),r);return()=>clearTimeout(t)},[e,r]),i}])},266513,e=>{"use strict";var t=e.i(843476),r=e.i(271645);e.s(["default",0,function(){return(0,r.useEffect)(()=>{if(document.getElementById("sr-jsplugins"))return;let e=document.createElement("script");e.id="sr-jsplugins",e.src="https://subscriptions.smartrecruiters.com/widget/v1/sr-job-alerts.js?dcr_ci=IFS1",e.async=!0,document.body.appendChild(e)},[]),(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{id:"sr-plugins","data-configuration-id":"d92a9fe0-d5b2-41f4-8729-7a5b8de484a8","data-bg":"8427e2","data-radius":"0","data-lang":"","data-test-server-domain":"https://subscriptions.smartrecruiters.com","data-company-identifier":"IFS1"}),(0,t.jsx)("div",{id:"sr-alert-button","data-type":"WITH_ICON"})]})}])},595718,e=>{"use strict";var t=e.i(843476),r=e.i(271645),i=e.i(211418),n=e.i(328860),a=e.i(150105),s=e.i(84853),o=e.i(266513);let l=(0,s.withStandardComponentWrapper)(e=>{let i=(0,r.useRef)(!1),s=(0,r.useRef)(""),[l,u]=(0,r.useState)([]),[d,p]=(0,r.useState)(""),[h,f]=(0,r.useState)(""),[g,m]=(0,r.useState)(""),[y,b]=(0,r.useState)([]),[v,x]=(0,r.useState)(""),[_,w]=(0,r.useState)(!1),[T,S]=(0,r.useState)([]),[C,E]=(0,r.useState)([]),[k,N]=(0,r.useState)(!1),I=(0,n.useDebounce)(d,500),{EmptySearchMessage:A,FilterCountry:j,FilterDepartment:P,FilterLocation:O,SearchPlaceholder:L}=e?.fields||{};async function D(e){w(!0);let t=new URLSearchParams({q:void 0!==e?e:I,location:h,country:g,department:v}),r=await fetch(`/api/smartrecruiters?${t}`),i=await r.json();u(i.jobs||[]),b(i.countries||[]),S(i.departments||[]),E(i.locations||[]),w(!1),N(!0)}(0,r.useEffect)(()=>{let e=JSON.stringify({q:i.current?"":I,country:g,location:h,department:v});if(s.current!==e){if(s.current=e,i.current){i.current=!1,D("");return}D()}},[I,g,h,v]);let{filters:R,field:M,resetButton:B,message:U,grid:F,card:$,link:z,jobTitle:q,meta:H,jobAlert:W}=c();return(0,t.jsxs)("div",{children:[(0,t.jsx)("div",{className:W(),children:(0,t.jsx)(o.default,{})}),(0,t.jsxs)("div",{className:R(),children:[(0,t.jsx)("input",{type:"text",placeholder:L.value,className:M(),value:d,onChange:e=>p(e.target.value)}),(0,t.jsxs)("select",{value:g,onChange:e=>{m(e.target.value),f(""),x("")},className:M(),children:[(0,t.jsx)("option",{value:"",children:j.value}),y.map(e=>(0,t.jsx)("option",{value:e,children:e},e))]}),(0,t.jsxs)("select",{value:h,onChange:e=>{f(e.target.value),x("")},className:M(),children:[(0,t.jsx)("option",{value:"",children:O.value}),C.map(e=>(0,t.jsx)("option",{value:e,children:e},e))]}
166),(0,t.jsxs)("select",{value:v,onChange:e=>x(e.target.value),className:M(),children:[(0,t.jsx)("option",{value:"",children:P.value}),T.map(e=>(0,t.jsx)("option",{value:e,children:e},e))]}),(0,t.jsx)("button",{onClick:()=>{i.current=!0,m(""),f(""),x(""),p("")},className:B(),children:"Reset"})]}),k&&!_&&0==l.length&&(0,t.jsx)("p",{className:U(),children:A.value}),_?(0,t.jsx)(a.OverlayLoading,{isLoading:_,size:"sm",className:"mt-4"}):(0,t.jsx)("ul",{className:F(),children:l.map(e=>(0,t.jsx)("li",{className:$(),children:(0,t.jsxs)("a",{href:`https://jobs.smartrecruiters.com/${e.company?.identifier}/${e.id}`,target:"_blank",rel:"noopener noreferrer",className:z(),children:[(0,t.jsx)("span",{className:q(),children:e.name}),(0,t.jsx)("span",{className:H(),children:e.typeOfEmployment?.label}),(0,t.jsx)("span",{className:H(),children:e.location?.fullLocation}),(0,t.jsx)("span",{className:H(),children:e.department?.label})]})},e.id))})]})}),c=(0,i.tv)({slots:{filters:["flex","flex-col","lg:flex-row","gap-4","mb-6"],grid:["grid","grid-cols-1","md:grid-cols-3","gap-3"],field:["flex-1","p-2","border","rounded","font-typography-font-family-body","text-typography-font-size-body-medium"],resetButton:["px-4","py-1","text-white","font-typography-font-family-body","text-typography-font-size-body-medium","bg-component-button-tonal-filled-bg","rounded-general-border-radius-button"],message:["font-typography-font-family-body","font-typography-font-size-body-medium"],card:["p-4","transition","bg-component-stat-surface","before:rounded-border-radius-radius-2"],jobTitle:["pb-2","text-general-theme-brand-secondary-on-surface-surface","font-typography-font-weight-medium"],link:["flex","flex-col","font-typography-font-family-body"],meta:["text-sm","text-gray-600"],jobAlert:["mb-8"]}});e.s(["Default",0,l])},667486,e=>{"use strict";var t=e.i(843476),r=e.i(211418),i=e.i(84853),n=e.i(133267),a=e.i(310099),s=e.i(136905);let o=(0,i.withStandardComponentWrapper)(e=>{let{text:i,addPaddingTop:o,addPaddingBottom:c,addPaddingLeftRight:u}=e?.fields||{},{RenderingIdentifier:d,styles:p,fullWidth:h}=e?.params||{},f=e?.params?.styles?.split(" ").includes("body-medium")?"medium":void 0,{getDictionaryValue:g}=(0,a.default)(),m=!!o?.value,y=!!c?.value,b=!!u?.value,{base:v,contentContainer:x}=(0,r.tv)({extend:l,slots:{base:[p?.trimEnd()]}})({body:f,fullWidth:!!h}),_=i;i&&""!==i.value||(_={...i,value:g("RTEText")});let w=(0,t.jsx)(n.default,{field:_,...(0,s.getTestProps)("rich-text")});return(0,t.jsx)("div",{className:v({addPaddingTop:m,addPaddingBottom:y,addPaddingLeftRight:b}),"data-component":"authorable/shared/content/rte",id:d,...(0,s.getTestProps)(`component-rte-${e?.rendering?.uid}`),children:(0,t.jsx)("div",{className:x(),children:w})})}),l=(0,r.tv)({slots:{base:[],contentContainer:[],placeholder:["is-empty-hint"]},variants:{fullWidth:{true:{base:["w-screen mx-[calc(50%-50vw)]"]}},addPaddingTop:{true:{base:["pt-general-spacing-margin-y"]}},addPaddingBottom:{true:{base:["pb-general-spacing-margin-y"]}},addPaddingLeftRight:{true:{base:["px-general-spacing-margin-x"]}},body:{medium:{contentContainer:["rte-body-medium"]}}},defaultVariants:{addPaddingTop:!1,addPaddingBottom:!1,addPaddingLeftRight:!1}});e.s(["Default",0,o])},999470,e=>{"use strict";var t=e.i(843476),r=e.i(211418),i=e.i(84853),n=e.i(506914),a=e.i(38930),s=e.i(389980),o=e.i(133267),l=e.i(136905);let c=(0,i.withStandardComponentWrapper)(e=>{let{title:r,name:i,description:c,image:d}=e?.fields||{},p=e?.params?.selectTheme,{base:h,quoteWrapper:f,quoteTitle:g,quoteTypographyWrapper:m,quoteContentWrapper:y,imageStyle:b,nameStyle:v,descriptionStyle:x}=u({});return(0,t.jsx)("section",{className:h(),"data-component":"authorable/shared/content/Quote",...(0,l.getTestProps)(`component-quote-${e?.rendering?.uid}`),children:(0,t.jsx)(s.BrandAndThemeProvider,{theme:p,children:(0,t.jsx)("div",{className:f(),children:(0,t.jsxs)("div",{className:m(),children:[(0,t.jsx)(n.default,{className:g(),field:r,tag:"h2",...(0,l.getTestProps)("quote")}),(0,t.jsxs)("div",{className:y(),children:[d&&(0,t.jsx)(a.default,{className:b(),field:d,...(0,l.getTestProps)("image")}),(0,t.jsx)(n.default,{className:v(),field:i,tag:"h3",...(0,l.getTestProps)("name")}
166),(0,t.jsx)(o.default,{className:x(),field:c,...(0,l.getTestProps)("description")})]})]})})})})}),u=(0,r.tv)({slots:{base:["relative","w-full","max-w-columns-full-maxWidth"],quoteWrapper:["py-general-spacing-margin-y","px-general-spacing-margin-x","bg-component-quote-bg","w-full","rounded-general-border-radius-wrapper-container","overflow-hidden"],quoteTypographyWrapper:["flex","flex-col","items-center","gap-general-spacing-copy-margin-bottom","text-center","text-component-quote-quote","max-w-typography-copy-maxWidth"],quoteTitle:["text-component-quote-quote","font-typography-font-family-header","text-typography-font-size-large","font-bold","leading-[48px]"],quoteContentWrapper:["text-center","flex","flex-col","gap-spacing-spacing-12"],imageStyle:["w-[64px]","h-[64px]","mx-auto","rounded-[200px]"],nameStyle:["text-component-quote-name","font-typography-font-family-body","text-typography-font-size-body-large","font-bold"],descriptionStyle:["text-component-quote-details","font-typography-font-family-body","text-typography-font-size-body-medium"]}});e.s(["Default",0,c])},304344,e=>{"use strict";var t=e.i(843476),r=e.i(211418),i=e.i(207670),n=e.i(389980),a=e.i(84853),s=e.i(506914),o=e.i(296217),l=e.i(133267),c=e.i(474176),u=e.i(340189),d=e.i(422674),p=e.i(136905);let h=(0,a.withStandardComponentWrapper)(e=>{let r=(0,c.parseStyleParams)(e.params,["cta1"]),a=e?.params?.selectTheme,h=e?.params?.alignment||"Left",{description:g,title:m,ctaLink:y}=e?.fields||{},{sitecoreContext:b}=(0,d.useSitecoreContext)(),v=b?.route,{pageTitle:x,pageDescription:_}=v?.fields??{},{base:w,cta:T,backgroundWrapper:S,contentWrapper:C,titleWrappers:E,headlineText:k,descriptionText:N,actionButtonWrapper:I}=f({alignment:h});return(0,t.jsx)("section",{className:(0,i.default)(w(),r),"data-component":"authorable/shared/content/pageTitle",...(0,p.getTestProps)(`component-page-title-${e?.rendering?.uid}`),children:(0,t.jsxs)(n.BrandAndThemeProvider,{theme:a,children:[(0,t.jsx)("div",{className:(0,i.default)(S()),...(0,p.getTestProps)("background")}),(0,t.jsxs)("div",{className:C(),children:[(0,t.jsxs)("div",{className:E(),children:[(0,t.jsx)(s.default,{className:(0,i.default)(k()),field:m,fallbacks:[x],tag:"h1",...(0,p.getTestProps)("headline")}),(0,t.jsx)(l.default,{className:(0,i.default)(N()),field:g,fallbacks:[_],...(0,p.getTestProps)("description")})]}),(0,t.jsx)("div",{className:I(),children:(0,t.jsx)(o.default,{ctaComponentClass:"component-section-button-color-1",className:T({style:r.cta1?.ctaVariant}),ctaStyle:(0,u.getCtaStyle)(r.cta1,"primary"),field:y,...(0,p.getTestProps)("cta")})})]})]})})}),f=(0,r.tv)({defaultVariants:{style:"primary"},slots:{cta:[],base:["container","max-w-none","relative","w-full","py-layout-base-margin-y","min-h-height-minHeight-header-minHeight"],backgroundWrapper:["absolute","inset-0","z-0","left-[calc(-50vw+50%)]","right-[calc(-50vw+50%)]","bg-component-section-bg"],contentWrapper:["relative","flex","flex-col","gap-general-spacing-copy-margin-bottom","lg:max-w-typography-copy-max-Width"],titleWrappers:["flex","flex-col","gap-general-spacing-title-margin-bottom","text-component-section-title"],headlineText:["text-typography-font-size-header-xlarge","font-typography-font-family-header","font-bold","leading-normal","text-component-section-title"],descriptionText:["font-typography-font-family-body","font-normal","leading-normal","text-component-section-body","text-typography-font-size-body-large"],actionButtonWrapper:["flex","flex-col","md:flex-row"]},variants:{alignment:{Left:{contentWrapper:["justify-start","text-left"],actionButtonWrapper:["justify-start"],iconWrapper:["justify-start"]},Center:{contentWrapper:["justify-center","text-center","m-auto"],actionButtonWrapper:["justify-center"],iconWrapper:["justify-center"],descriptionText:["text-center"]},Right:{contentWrapper:["justify-end","text-right","float-right"],actionButtonWrapper:["justify-end"],iconWrapper:["justify-end"],descriptionText:["text-right"]}},style:{link:{cta:["flex","items-center","gap-2","text-base","text-component-accordion-toggle-active"]},primary:{cta:["px-8"]},secondary:{cta:["px-8"]},tertiary:{cta:["px-8"]}}}});e.s(["Default",0,h])},360196,e=>{"use strict";e.s(["Default",()=>p]);var t=e.i(843476),r=e.i(211418),i=e.i(841428),n=e.i(84853),a=e.i(506914),s=e.i(133267),o=e.i(310099),l=e.i(828029),c=e.i(206303),u=e.i(136905),d=e.i(202191);let p=(0,n.withStandardComponentWrapper)(e=>{let{label:r,modalId:n,openOnLoad:p,title:f,headingDesktopFontSize:g,headingMobileFontSize:m,headingHtmlLevel:y}=e?.fields||{},{DynamicPlaceholderId:b}=e?.params||{},{getDictionaryValue:v}=(0,o.default)(),x=(0,l.default)(),_=`custom-modal-${b}`,{base:w,urlHash:T,titleBarText:S}=h(),C=(0,d.getHeadingTag)(y,x,"h3"),E=(0,d.getTypographyClassName)(S,m,g);if(x)return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:w(),"data-component":"authorable/shared/content/modal",children:[(0,t.jsx)(s.default,{editable:!0,field:f,tag:C,className:E}),(0,t.jsx)("div",{children:(0,t.jsx)(c.PlaceholderWrapper,{name:_,rendering:e.rendering,page:e.page})})]}),(0,t.jsxs)("div",{children:[(0,t.jsxs)("p",{className:T(),children:[(0,t.jsx)("em",{className:"ee-help-text-highlight",children:v("ModalURLHash")}),"  #modal-",(0,t.jsx)(a.default,{editable:!0,field:n,tag:"span"})]}),(0,t.jsx)("p",{className:"ee-help-text-block",children:v("ModalURLHint")})]})]});let k=f?.value?(0,t.jsx)(s.default,{field:f,tag:C,className:E}):void 0;return(0,t.jsx)(i.default,{content:(0,t.jsx)(c.PlaceholderWrapper,{name:_,rendering:e.rendering,page:e.page}),"data-component":"authorable/shared/content/modal",id:n?.value,label:r?.value,openOnLoad:p?.value,size:"xLarge",title:k,...(0,u.getTestProps)(`component-modal-${e?.rendering?.uid}`)})}),h=(0,r.tv)({slots:{base:["border","flex","flex-col","gap-5","p-5","rounded"],urlHash:["my-2"],titleBarText:["grow","text-modal-title","font-typography-font-family-body","text-typography-font-size-body-large","font-bold","leading-[27px]","[&_span]:bg-clip-text","[&_span]:text-transparent","[&_span]:bg-gradient-to-r","[&_span]:from-color-core-color-2-400","[&_span]:via-color-core-gradient-1-stop-2","[&_span]:to-color-core-gradient-1-stop-1","[&_span]:from-[0%]","[&_span]:via-[40%]","[&_span]:to-[100%]"]}})},423064,e=>{"use strict";var t=e.i(843476),r=e.i(836159),i=e.i(310099),n=e.i(882596);e.s(["default",0,({route:e,headLinks:a,parentItem:s,updatedDate:o})=>{let l,{page:c}
166=(0,n.useSitecore)(),u=c?.layout?.sitecore?.context?.siteSettings,d=window.location.href,p=e?.templateName==="Article Detail Page",h=e.fields??{},f={pageTitle:h.pageTitle,MetaDescription:h.MetaDescription,MetaKeywords:h.MetaKeywords,OpenGraphTitle:h.OpenGraphTitle,OpenGraphDescription:h.OpenGraphDescription,OpenGraphImageUrl:h.OpenGraphImageUrl,OpenGraphSiteName:h.OpenGraphSiteName,OpenGraphAdmins:h.OpenGraphAdmins,OpenGraphType:h.OpenGraphType,OpenGraphAppId:h.OpenGraphAppId,TwitterTitle:h.TwitterTitle,TwitterSite:h.TwitterSite,TwitterDescription:h.TwitterDescription,TwitterImage:h.TwitterImage,TwitterCardType:h.TwitterCardType,canonicalUrl:h.canonicalUrl,robotsMetaTag:h.robotsMetaTag,schemaJsonLd:h.schemaText,selectedSchemaLength:h.selectSchema?.length??0};if(p){let t=e.fields??{};l={authorName:t.authorName,publishedDate:t.publishedDate,heading:t.heading,subHeading:t.subHeading,sxaTags:t.SxaTags,image:t.image}}let{getDictionaryValue:g}=(0,i.default)(),m=g("Articles")||"Articles",y=g("Pages")||"Pages",b=u?.favicon?.value?.src||"/favicon.ico",v=f.canonicalUrl?.value||d,x=f.robotsMetaTag,_=e?.templateName==="Article Detail Page"?m:y,w=e?.itemId?e.itemId.replace(/-/g,""):"",T=u?.socialShareListFallbackImage?.value?.src,S=u?.defaultOgImage?.value?.src||T,C=u?.defaultTwitterImage?.value?.src||T,E=e.fields,k=c?.layout?.sitecore?.context,N=k?.updatedDate!=null?String(k.updatedDate):"";return(0,t.jsxs)(r.default,{children:[(0,t.jsx)("title",{children:f.pageTitle?.value?.toString()||"Page"}),f.MetaDescription?.value&&(0,t.jsx)("meta",{content:f.MetaDescription.value,name:"description"}),f.MetaKeywords?.value&&(0,t.jsx)("meta",{content:f.MetaKeywords.value,name:"keywords"}),(0,t.jsx)("link",{href:b,rel:"icon"}),a.map(e=>(0,t.jsx)("link",{rel:e.rel,href:e.href},e.href)),"Asset Detail Page"==e.templateName&&E?.assetPublishDate?.value&&(0,t.jsx)("meta",{property:"article:published_time",content:E.assetPublishDate.value}),"News Detail Page"==e.templateName&&E?.newspublishDate?.value&&(0,t.jsx)("meta",{property:"article:published_time",content:E.newspublishDate.value}),("Asset Detail Page"==e.templateName||"News Detail Page"==e.templateName)&&(0,t.jsx)("meta",{property:"article:modified_time",content:o??N}),(0,t.jsx)("meta",{name:"viewport",content:"width=device-width, initial-scale=1.0"}),(0,t.jsx)("link",{rel:"preconnect",href:"https://fast.wistia.com"}),(0,t.jsx)("link",{rel:"preconnect",href:"https://www.googletagmanager.com"}),(0,t.jsx)("link",{rel:"preconnect",href:"https://www.google-analytics.com"}),(0,t.jsx)("link",{rel:"dns-prefetch",href:"https://embed-ssl.wistia.com"}),(0,t.jsx)("link",{rel:"dns-prefetch",href:"https://d35vb5cccm4xzp.cloudfront.net"}),void 0!=x&&x?.fields?.title?.value?(0,t.jsx)("meta",{name:"robots",content:x?.fields?.title?.value}):(0,t.jsx)("meta",{name:"robots",content:"index, follow"}),v&&(0,t.jsx)("link",{rel:"canonical",href:v}),d&&(0,t.jsx)("meta",{property:"og:url",content:d}),w&&(0,t.jsx)("meta",{property:"og:itemid",content:w}),(f.OpenGraphTitle?.value||f.pageTitle?.value)&&(0,t.jsx)("meta",{property:"og:title",content:f.OpenGraphTitle?.value||f.pageTitle?.value}),f.OpenGraphDescription?.value&&(0,t.jsx)("meta",{property:"og:description",content:f.OpenGraphDescription.value}
166),(f?.OpenGraphImageUrl?.value?.src||S)&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("meta",{property:"og:image",content:f?.OpenGraphImageUrl?.value?.src||S}),(0,t.jsx)("meta",{property:"og:image:width",content:"1600"}),(0,t.jsx)("meta",{property:"og:image:height",content:"900"})]}),f.OpenGraphType?.value?(0,t.jsx)("meta",{property:"og:type",content:f.OpenGraphType.value}):(0,t.jsx)("meta",{property:"og:type",content:_}),f.OpenGraphSiteName?.value&&(0,t.jsx)("meta",{property:"og:site_name",content:f.OpenGraphSiteName.value}),f.OpenGraphAdmins?.value&&(0,t.jsx)("meta",{property:"og:admins",content:f.OpenGraphAdmins.value}),f.OpenGraphAppId?.value&&(0,t.jsx)("meta",{property:"og:app_id",content:f.OpenGraphAppId.value}),(f?.TwitterImage?.value?.src||C)&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("meta",{name:"twitter:image",content:f?.TwitterImage?.value?.src||C}),(0,t.jsx)("meta",{property:"twitter:image:width",content:"1600"}),(0,t.jsx)("meta",{property:"twitter:image:height",content:"900"})]}),(f?.TwitterTitle?.value||f?.OpenGraphTitle?.value||f?.pageTitle?.value)&&(0,t.jsx)("meta",{name:"twitter:card",content:f?.TwitterTitle?.value||f?.OpenGraphTitle?.value||f?.pageTitle?.value}),f.TwitterSite?.value&&(0,t.jsx)("meta",{name:"twitter:site",content:f.TwitterSite.value}),f.TwitterDescription?.value&&(0,t.jsx)("meta",{name:"twitter:description",content:f.TwitterDescription.value}),(f?.TwitterImage?.value?.src||f?.OpenGraphImageUrl?.value?.src||C)&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("meta",{name:"twitter:image",content:f?.TwitterImage?.value?.src||f?.OpenGraphImageUrl?.value?.src||C}),(0,t.jsx)("meta",{property:"twitter:image:width",content:"1600"}),(0,t.jsx)("meta",{property:"twitter:image:height",content:"900"})]}),f.TwitterCardType?.fields?.Value?.value&&(0,t.jsx)("meta",{name:"twitter:card",content:f.TwitterCardType.fields.Value.value}),p&&(0,t.jsxs)(t.Fragment,{children:[l?.heading?.value&&(0,t.jsx)("meta",{name:"article:title",content:l.heading.value}),l?.subHeading?.value&&(0,t.jsx)("meta",{name:"article:subheading",content:l.subHeading.value}),l?.authorName?.value&&(0,t.jsx)("meta",{name:"article:authorname",content:l.authorName.value}),l?.publishedDate?.value&&(0,t.jsx)("meta",{name:"article:publisheddate",content:l.publishedDate.value}),l?.image?.value?.src&&(0,t.jsx)("meta",{name:"article:image",content:l?.image.value.src}),Array.isArray(l?.sxaTags)&&l?.sxaTags?.length>0&&(0,t.jsx)("meta",{name:"article:keywords",content:l?.sxaTags?.map(e=>e?.fields?.Title?.value).filter(Boolean).join(", ")}),s?.categoryName?.value&&(0,t.jsx)(t.Fragment,{children:(0,t.jsx)("meta",{name:"article:categoryname",content:s.categoryName.value})})]}),f.selectedSchemaLength>0&&f.schemaJsonLd?.value&&(0,t.jsx)("div",{dangerouslySetInnerHTML:{__html:f.schemaJsonLd?.value}})]})}])},438630,e=>{"use strict";var t=e.i(770703);let r=(0,t.default)(()=>e.A(875244),{loadableGenerated:{modules:[792515]},ssr:!1}),i=(0,t.default)(()=>e.A(875244).then(e=>
166e.StackHubSpotForm),{loadableGenerated:{modules:[792515]},ssr:!1});e.s(["Default",0,r,"StackHubSpotForm",0,i,"default",0,r])},993942,e=>{"use strict";var t=e.i(843476),r=e.i(271645),i=e.i(211418),n=e.i(84853),a=e.i(38930),s=e.i(296217),o=e.i(506914),l=e.i(474176),c=e.i(340189),u=e.i(422674),d=e.i(389980),p=e.i(136905),h=e.i(133267),f=e.i(455601),g=e.i(828029),m=e.i(202191),y=e.i(841428),b=e.i(815451),v=e.i(866968),x=e.i(466339);function _(e,t){if(!e?.value)return null;let r=t.length,i=e=>e.length>=r&&e.slice(0,r).toLowerCase()===t.toLowerCase(),n=(e.value.href??"").trim(),a="string"==typeof e.value.url?e.value.url.trim():"";return i(n)?n:i(a)?a:null}function w(e){let t=function(e){if(!e?.value)return null;let t=e.value.url?.trim();if(t?.startsWith("#"))return t;let r=(e.value.href??"").trim();if(r.startsWith("#"))return r;let i=(e.value.anchor??"").trim();return!r&&i?`#${i.replace(/^#+/,"")}`:null}(e),r=_(e,"yt#"),i=_(e,"wst#"),n=function(e){let t=_(e,"yt#");if(!t)return null;let r=t.slice(3).trim();return r?(0,v.extractYouTubeVideoId)(r):null}(e),a=function(e){let t=_(e,"wst#");if(!t)return null;let r=t.slice(4).trim();if(!r)return null;let i=r.trim();if(!i)return null;try{let e=new URL(i).pathname.split("/").filter(Boolean),t=e.indexOf("medias");if(-1!==t&&e[t+1])return e[t+1].split(/[?#]/)[0]||null}catch{}return/^[a-zA-Z0-9_-]+$/.test(i)?i:null}(e),s=(r||i)&&e?.value?{...e,value:{...e.value,href:"#"}}:e;return{inPageHashHref:t,ytHashRaw:r,wstHashRaw:i,youtubeId:n,wistiaMediaId:a,linkForRender:s,interceptClick:!!(t||r||i)}}function T(e,t,r){if(t.youtubeId){e.preventDefault(),r({type:"youtube",youtubeId:t.youtubeId});return}if(t.wistiaMediaId){e.preventDefault(),r({type:"wistia",mediaId:t.wistiaMediaId});return}t.ytHashRaw||t.wstHashRaw?e.preventDefault():function(e,t){let r,i,n;if(!e?.startsWith("#"))return;let a=decodeURIComponent(e.slice(1).trim());if(!a)return t.preventDefault();let s=function(e){for(let t of e.startsWith("#")?[e]:[e,`#${e}`])try{let e=document.querySelector(`[id="${t.replace(/\\/g,"\\\\").replace(/"/g,'\\"')}"]`);if(e)return e}catch{}return null}(a);s&&(t.preventDefault(),i=(r=document.querySelector("header"))?Math.round(r.getBoundingClientRect().height):0,n=s.getBoundingClientRect().top+window.scrollY-i,window.scrollTo({top:Math.max(0,n),behavior:"smooth"}),window.history.pushState(null,"",e))}(t.inPageHashHref,e)}function S({modal:e,modalKey:r}){let{ctaVideoModalRoot:i,ctaVideoModalInner:n,ctaVideoModalYoutube:a,ctaVideoModalWistia:s}=N({layout:"right"});return(0,t.jsx)("div",{className:i(),children:(0,t.jsx)("div",{className:n(),children:"youtube"===e.type?(0,t.jsx)(b.default,{youtubeId:e.youtubeId,autoplay:!0,controls:!0,className:a()},`hero-cta-youtube-${e.youtubeId}-${r}`):(0,t.jsx)(b.default,{mediaId:e.mediaId,aspect:16/9,autoplay:!0,controls:!0,bigPlayButton:!0,className:s()},`hero-cta-wistia-${e.mediaId}-${r}`)})})}let C=({heading:e,description:i,cta1Link:n,cta2Link:a,heroTitle:d,heroDescription:b,eyebrow:v,layout:_,params:C,descriptionMobileFontSize:E,descriptionDesktopFontSize:k,headingMobileFontSize:I,headingDesktopFontSize:A,eyebrowMobileFontSize:j,eyebrowDesktopFontSize:P,headingHtmlLevel:O,isGatedAssetPage:L,dynamicCTA1Text:D})=>{let R=(0,l.parseStyleParams)(C,["cta1","cta2"]),M=(0,g.default)(),B=(0,m.getHeadingTag)(O,M,"h1"),{contentContainer:U,headingText:F,descriptionText:$,ctaContainer:z,cta:q,eyebrowText:H}=N({layout:_}),W=(0,m.getTypographyClassName)($,E,k),V=(0,m.getTypographyClassName)(F,I,A),G=(0,m.getTypographyClassName)(H,j,P),X=(0,r.useMemo)(()=>w(n),[n]),K=(0,r.useMemo)(()=>w(a),[a]),[Y,Q]=(0,r.useState)(null),[J,Z]=(0,r.useState)(0),ee=(0,r.useCallback)(e=>{Q(e),Z(e=>e+1)},[]),et=(0,r.useCallback)(e=>T(e,X,ee),[X,ee]),er=(0,r.useCallback)(e=>T(e,K,ee),[K,ee]),ei=D?.value===!0,{sitecoreContext:en}=(0,u.useSitecoreContext)(),ea=en?.route,es=ea?.templateId===x.SearchPageTemplates.AssetTemplate,eo=ea?.fields,el=es&&eo?.isAssetGated?.value===!0,ec=ea?.fields?.ContentType,eu=Array.isArray(ec)?ec[0]:null,ed=eu?.fields?.Title?.value,ep=eu?.fields?.Track?.value,eh=n?.value?.text,ef=`${eh??""} ${ed??""}`.trim();return(0,t.jsxs)("div",{className:U(),children:[(0,t.jsx)(o.default,{className:G,field:v,tag:"div",...(0,p.getTestProps)("eyebrow")}),(0,t.jsx)(h.default,{className:V,field:e,fallbacks:[d],tag:B,...(0,p.getTestProps)("heading")}),(0,t.jsx)(o.default,{className:W,field:i,fallbacks:[b],tag:"p",...(0,p.getTestProps)("description")}),(0,t.jsxs)("div",{className:z(),children:[(0,t.jsx)(s.default,{ctaComponentClass:"component-hero-button-color-1",className:q({style:R.cta1?.ctaVariant}),ctaStyle:(0,c.getCtaStyle)(R.cta1,"primary"),field:{...X.linkForRender,value:{...X.linkForRender?.value,text:ei?ef:eh}},suppressNewTabIcon:!0,onClick:X.interceptClick?et:void 0,gtmEvent:(0,f.createCTAClickEvent)({event:`${es&&!el&&ep?"asset_ungated_download":"cta_click"}`,componentName:"Hero Primary CTA",clickText:n?.value?.text||n?.value?.title||"",componentHeader:e?.value||v?.value||""}),cdpEvent:L?{component:"Hero",component_header:e?.value||v?.value||"",ctaType:"Primary CTA"}:void 0,...(0,p.getTestProps)("link-cta1")}),(0,t.jsx)(s.default,{ctaComponentClass:"component-hero-button-color-2",className:q({style:R.cta2?.ctaVariant}),ctaStyle:(0,c.getCtaStyle)(R.cta2,"secondary"),field:K.linkForRender,suppressNewTabIcon:!0,onClick:K.interceptClick?er:void 0,gtmEvent:(0,f.createCTAClickEvent)({event:"cta_click",componentName:"Hero Secondary CTA",clickText:a?.value?.text||a?.value?.title||"",componentHeader:e?.value||v?.value||""}),cdpEvent:L?{component:"Hero",component_header:e?.value||v?.value||"",ctaType:"Secondary CTA"}:void 0,...(0,p.getTestProps)("link-cta2")})]}),Y&&(0,t.jsx)(y.default,{content:(0,t.jsx)(S,{modal:Y,modalKey:J}),id:`hero-cta-video-modal-${Y.type}-${"youtube"===Y.type?Y.youtubeId:Y.mediaId}-${J}`,label:e?.value||"Video",openOnLoad:!0,size:"xLarge"},`hero-cta-video-modal-${J}`)]})},E=(0,n.withStandardComponentWrapper)(e=>{let{cta1Link:r,cta2Link:i,description:n,heading:s,image:o,eyebrow:l,descriptionMobileFontSize:c,descriptionDesktopFontSize:h,headingMobileFontSize:f,headingDesktopFontSize:g,eyebrowMobileFontSize:m,eyebrowDesktopFontSize:y,headingHtmlLevel:b,dynamicCTA1Text:v}=e?.fields||{},{sitecoreContext:_}=(0,u.useSitecoreContext)(),w=_?.route,{heroTitle:T,heroDescription:S,heroImage:E}=w?.fields??{},k=w?.templateId===x.SearchPageTemplates.AssetTemplate,I=w?.fields,A=k&&I?.isAssetGated?.value===!0,j=e?.params?.selectTheme??d.ALL_THEMES[2],{base:P,contentColumn:O,imageColumnBase:L,imageColumnRight:D,imageStyle:R}=N({layout:"right",heroLayout:e?.params?.layout||"Full"});
166return(0,t.jsx)(d.BrandAndThemeProvider,{theme:j,children:(0,t.jsxs)("section",{className:P(),"data-component":"authorable/shared/content/hero",...(0,p.getTestProps)(`component-hero-${e?.rendering?.uid}`),id:e.params?.sectionId,children:[(0,t.jsx)("div",{className:O(),children:(0,t.jsx)(C,{heading:s,description:n,cta1Link:r,cta2Link:i,heroTitle:T,heroDescription:S,eyebrow:l,layout:"right",params:e.params,descriptionMobileFontSize:c,descriptionDesktopFontSize:h,headingMobileFontSize:f,headingDesktopFontSize:g,eyebrowMobileFontSize:m,eyebrowDesktopFontSize:y,headingHtmlLevel:b,isGatedAssetPage:A,dynamicCTA1Text:v})}),(0,t.jsx)("div",{className:`${L()} ${D()}`,children:(0,t.jsx)(a.default,{className:R(),field:o,fallbacks:[E],priority:!0,fetchPriority:"high",sizes:"(max-width: 768px) 100vw, 50vw",...(0,p.getTestProps)("hero-image")})})]})})}),k=(0,n.withStandardComponentWrapper)(e=>{let{cta1Link:r,cta2Link:i,description:n,heading:s,image:o,eyebrow:l,descriptionMobileFontSize:c,descriptionDesktopFontSize:h,headingMobileFontSize:f,headingDesktopFontSize:g,eyebrowMobileFontSize:m,eyebrowDesktopFontSize:y,headingHtmlLevel:b,dynamicCTA1Text:v}=e?.fields||{},{sitecoreContext:_}=(0,u.useSitecoreContext)(),w=_?.route,{heroTitle:T,heroDescription:S,heroImage:E}=w?.fields??{},k=w?.templateId===x.SearchPageTemplates.AssetTemplate,I=w?.fields,A=k&&I?.isAssetGated?.value===!0,j=e?.params?.selectTheme??d.ALL_THEMES[2],{base:P,contentColumn:O,imageColumnBase:L,imageColumnLeft:D,imageStyle:R}=N({layout:"left",heroLayout:e?.params?.layout||"Full"});return(0,t.jsx)(d.BrandAndThemeProvider,{theme:j,children:(0,t.jsxs)("section",{className:P(),"data-component":"authorable/shared/content/hero-image-left",...(0,p.getTestProps)(`component-hero-image-left-${e?.rendering?.uid}`),children:[(0,t.jsx)("div",{className:`${L()} ${D()}`,children:(0,t.jsx)(a.default,{className:R(),field:o,fallbacks:[E],priority:!0,fetchPriority:"high",sizes:"(max-width: 768px) 100vw, 50vw",...(0,p.getTestProps)("hero-image")})}),(0,t.jsx)("div",{className:O(),children:(0,t.jsx)(C,{heading:s,description:n,cta1Link:r,cta2Link:i,heroTitle:T,heroDescription:S,eyebrow:l,layout:"left",params:e.params,descriptionMobileFontSize:c,descriptionDesktopFontSize:h,headingMobileFontSize:f,headingDesktopFontSize:g,eyebrowMobileFontSize:m,eyebrowDesktopFontSize:y,headingHtmlLevel:b,isGatedAssetPage:A,dynamicCTA1Text:v})})]})})}),N=(0,i.tv)({defaultVariants:{layout:"right"},slots:{base:["flex","gap-component-hero-space-between","items-center","bg-component-hero-bg"],cta:[],contentColumn:["flex","w-full","xl:w-1/2"],imageColumnBase:["w-full","xl:w-1/2","rounded-component-hero-image-border-radius","aspect-[5/4]","border","border-component-hero-image-border","border-component-hero-image-border-width","overflow-hidden","h-auto","self-center"],imageColumnRight:[],imageColumnLeft:[],contentContainer:["px-component-hero-content-padding--x","py-component-promo-content-padding-y","w-full"],subcontentContainer:[],ctaContainer:["flex","flex-wrap","mt-component-hero-buttons-margin-top","gap-spacing-spacing-12","md:justify-normal","!text-typography-font-size-body-medium"],descriptionText:["text-component-hero-body","font-typography-font-family-body","font-typography-font-weight-body","text-typography-font-size-body-large","font-normal","leading-typography-line-height-body-large"],headingText:["md:font-typography-font-weight-xxlarge","font-typography-font-weight-xlarge","text-component-hero-title","font-typography-font-family-header","md:text-typography-font-size-xxlarge","text-typography-font-size-xlarge","md:leading-typography-line-height-xxlarge","leading-typography-line-height-xlarge","mb-component-hero-content-spacing-vertical","[&>span]:bg-clip-text","[&>span]:text-transparent","[&>span]:bg-gradient-to-r","[&>span]:from-color-core-color-2-400","[&>span]:via-color-core-gradient-1-stop-2","[&>span]:to-color-core-gradient-1-stop-1","[&>span]:from-[0%]","[&>span]:via-[40%]","[&>span]:to-[100%]"],eyebrowText:["text-component-hero-eyebrow","font-typography-font-family-body","text-typography-font-size-xsmall","font-typography-font-weight-xsmall","leading-typography-line-height-xsmall","md:tracking-[2.7px]","tracking-[2.4px]","mb-general-spacing-eyebrow-margin-bottom","uppercase","line-clamp-1"],imageStyle:["w-full","h-full","object-cover","rounded-component-article-card-image-radius","overflow-hidden"],ctaVideoModalRoot:["relative","aspect-video","w-full","min-h-0","overflow-hidden","rounded-general-border-radius-label","bg-black"],ctaVideoModalInner:["absolute","
166inset-0","h-full","w-full","[&_wistia-player]:block","[&_wistia-player]:h-full","[&_wistia-player]:w-full"],ctaVideoModalYoutube:["absolute","inset-0","h-full","w-full","border-0"],ctaVideoModalWistia:["absolute","inset-0","h-full","w-full"]},variants:{style:{link:{cta:["flex","items-center","my-auto","gap-2","text-base","text-component-accordion-toggle-active"]},primary:{cta:["px-8"]},secondary:{cta:["px-8"]},tertiary:{cta:["px-8"]}},layout:{right:{base:["flex-col","xl:flex-row","flex-col-reverse"]},left:{base:["flex-col","xl:flex-row"]}},heroLayout:{Full:{base:["py-component-hero-padding-y","px-component-hero-padding-x"]},Wide:{base:["relative","before:z-[-1]","before:h-full","before:absolute","before:top-0","before:left-[calc(-50vw+50%)]","before:bg-component-hero-bg","before:right-[calc(-50vw+50%)]","py-component-hero-padding-y","xl:px-0"]}}}});e.s(["Default",0,E,"ImageLeft",0,k])},427657,e=>{"use strict";var t=e.i(843476),r=e.i(211418),i=e.i(84853),n=e.i(38930),a=e.i(296217),s=e.i(133267),o=e.i(474176),l=e.i(340189),c=e.i(389980),u=e.i(136905),d=e.i(455601),p=e.i(828029),h=e.i(202191);let f=()=>({borderRadius:"var(--border-radius-full)"}),g=({heading:e,description:r,cta1Link:i,cta2Link:n,eyebrow:c,subHeading:f,layout:g,params:m,descriptionMobileFontSize:y,descriptionDesktopFontSize:b,eyebrowMobileFontSize:v,eyebrowDesktopFontSize:x,headingMobileFontSize:_,headingDesktopFontSize:T,subHeadingMobileFontSize:S,subHeadingDesktopFontSize:C,headingHtmlLevel:E})=>{let k=(0,o.parseStyleParams)(m,["cta1","cta2"]),{contentContainer:N,textContent:I,headingText:A,descriptionText:j,ctaContainer:P,cta:O,eyebrowText:L,subHeadingText:D}=w({layout:g}),R=(0,p.default)(),M=(0,h.getHeadingTag)(E,R,"h2"),B=(0,h.getTypographyClassName)(j,y,b),U=(0,h.getTypographyClassName)(L,v,x),F=(0,h.getTypographyClassName)(A,_,T),$=(0,h.getTypographyClassName)(D,S,C);return(0,t.jsxs)("div",{className:N(),children:[(0,t.jsxs)("div",{className:I(),children:[(0,t.jsx)(s.default,{className:U,field:c,...(0,u.getTestProps)("eyebrow")}),(0,t.jsx)(s.default,{className:F,field:e,tag:M,...(0,u.getTestProps)("heading")}),(0,t.jsx)(s.default,{className:$,field:f,...(0,u.getTestProps)("sub-heading")}),(0,t.jsx)(s.default,{className:B,field:r,...(0,u.getTestProps)("description")})]}),(0,t.jsxs)("div",{className:P(),children:[(0,t.jsx)(a.default,{ctaComponentClass:"component-feature-button-color-1",className:O({style:k.cta1?.ctaVariant}),ctaStyle:(0,l.getCtaStyle)(k.cta1,"primary"),field:i,gtmEvent:(0,d.createCTAClickEvent)({event:"cta_click",componentName:"Feature Side by Side Primary CTA",clickText:i?.value?.text||i?.value?.title||"",componentHeader:e?.value||c?.value||""}),suppressNewTabIcon:!0,...(0,u.getTestProps)("link-cta1")}),(0,t.jsx)(a.default,{ctaComponentClass:"component-feature-button-color-2",className:O({style:k.cta2?.ctaVariant}),ctaStyle:(0,l.getCtaStyle)(k.cta2,"secondary"),field:n,gtmEvent:(0,d.createCTAClickEvent)({event:"cta_click",componentName:"Feature Side by Side Secondary CTA",clickText:n?.value?.text||n?.value?.title||"",componentHeader:e?.value||c?.value||""}),suppressNewTabIcon:!0,...(0,u.getTestProps)("link-cta2")})]})]})},m=e=>{let{cta1Link:r,cta2Link:i,description:a,heading:s,image:o,eyebrow:l,subHeading:d,keepImageUncropped:p,descriptionMobileFontSize:h,descriptionDesktopFontSize:f,eyebrowMobileFontSize:m,eyebrowDesktopFontSize:y,headingMobileFontSize:b,headingDesktopFontSize:v,subHeadingMobileFontSize:x,subHeadingDesktopFontSize:_,headingHtmlLevel:T}=e?.fields||{},S=e?.params?.selectTheme,{base:C,imageColumnBase:E,imageStyle:k,outerBase:N}=w({layout:"splitBannerImageRight",keepImageUncropped:p?.value});return(0,t.jsx)(c.BrandAndThemeProvider,{theme:S,children:(0,t.jsx)("section",{id:e.params?.sectionId,className:N(),"data-component":"authorable/shared/content/feature-sidebyside",...(0,u.getTestProps)(`component-feature-side-by-side-${e?.rendering?.uid}`),children:(0,t.jsxs)("div",{className:C(),children:[(0,t.jsx)(g,{heading:s,description:a,cta1Link:r,cta2Link:i,eyebrow:l,subHeading:d,layout:"splitBannerImageRight",params:e.params,descriptionMobileFontSize:h,descriptionDesktopFontSize:f,eyebrowMobileFontSize:m,eyebrowDesktopFontSize:y,headingMobileFontSize:b,headingDesktopFontSize:v,subHeadingMobileFontSize:x,subHeadingDesktopFontSize:_,headingHtmlLevel:T}),(0,t.jsx)("div",{className:E(),children:(0,t.jsx)(n.default,{className:k(),field:o,fetchPriority:"high",...(0,u.getTestProps)("image")})})]})})})},y=(0,i.withStandardComponentWrapper)(m,!1),b=(0,i.withStandardComponentWrapper)(m,!1),v=(0,i.withStandardComponentWrapper)(e=>{let{cta1Link:r,cta2Link:i,description:a,heading:s,image:o,eyebrow:l,subHeading:d,keepImageUncropped:p,descriptionMobileFontSize:h,descriptionDesktopFontSize:f,eyebrowMobileFontSize:m,eyebrowDesktopFontSize:y,headingMobileFontSize:b,headingDesktopFontSize:v,subHeadingMobileFontSize:x,subHeadingDesktopFontSize:_,headingHtmlLevel:T}=e?.fields||{},S=e?.params?.selectTheme,{base:C,imageColumnBase:E,imageStyle:k,outerBase:N}=w({layout:"splitBannerImageLeft",keepImageUncropped:p?.value});return(0,t.jsx)(c.BrandAndThemeProvider,{theme:S,children:(0,t.jsx)("section",{id:e.params?.sectionId,className:N(),"data-component":"authorable/shared/content/feature-sidebyside",...(0,u.getTestProps)(`component-feature-side-by-side-${e?.rendering?.uid}`),children:(0,t.jsxs)("div",{className:C(),children:[(0,t.jsx)(g,{heading:s,description:a,cta1Link:r,cta2Link:i,eyebrow:l,subHeading:d,layout:"splitBannerImageLeft",params:e.params,descriptionMobileFontSize:h,descriptionDesktopFontSize:f,eyebrowMobileFontSize:m,eyebrowDesktopFontSize:y,headingMobileFontSize:b,headingDesktopFontSize:v,subHeadingMobileFontSize:x,subHeadingDesktopFontSize:_,headingHtmlLevel:T}),(0,t.jsx)("div",{className:E(),children:(0,t.jsx)(n.default,{className:k(),field:o,fetchPriority:"high",...(0,u.getTestProps)("image")})})]})})})},!1),x=(0,i.withStandardComponentWrapper)(e=>{let{cta1Link:r,cta2Link:i,description:a,heading:s,image:o,eyebrow:l,subHeading:d,showImageInMobile:p,descriptionMobileFontSize:h,descriptionDesktopFontSize:m,eyebrowMobileFontSize:y,eyebrowDesktopFontSize:b,headingMobileFontSize:v,headingDesktopFontSize:x,subHeadingMobileFontSize:_,subHeadingDesktopFontSize:T,headingHtmlLevel:S}=e?.fields||{},C=f(),E=e?.params?.selectTheme,{base:k,imageColumnBase:N,imageStyle:I}=w({layout:"alternatingTextImageRight",showImageInMobile:p?.value});return(0,t.jsx)(c.BrandAndThemeProvider,{theme:E,children:(0,t.jsxs)("section",{className:k(),id:e.params?.sectionId,"data-component":"authorable/shared/content/feature-sidebyside",...(0,u.getTestProps)(`component-feature-side-by-side-${e?.rendering?.uid}`),children:[(0,t.jsx)(g,{heading:s,description:a,cta1Link:r,cta2Link:i,eyebrow:l,subHeading:d,layout:"alternatingTextImageRight",params:e.params,descriptionMobileFontSize:h,descriptionDesktopFontSize:m,eyebrowMobileFontSize:y,eyebrowDesktopFontSize:b,headingMobileFontSize:v,headingDesktopFontSize:x,subHeadingMobileFontSize:_,subHeadingDesktopFontSize:T,headingHtmlLevel:S}),(0,t.jsxs)("div",{className:N(),style:C,children:[(0,t.jsx)(n.default,{className:I(),field:o,fetchPriority:"high",...(0,u.getTestProps)("image")}),(0,t.jsx)("div",{style:{position:"absolute",inset:0,borderRadius:"var(--border-radius-full)",pointerEvents:"none",zIndex:20,background:"linear-gradient(to right, var(--color-core-gradient-1-stop-3) 0%, var(--color-core-gradient-1-stop-2) 80%, var(--color-core-gradient-1-stop-1) 100%)",mask:`radial-gradient(
167      circle, 
168      transparent calc(70% - var(--general-border-width-feature-image-mobile)), 
169      black calc(70% - var(--general-border-width-feature-image-mobile)), 
170      black 70.7%, 
171      transparent 70%
172    )`},className:"mdlg:![mask:radial-gradient(circle,transparent_calc(70%-var(--general-border-width-feature-image-desktop)),black_calc(70%-var(--general-border-width-feature-image-desktop)),black_70.7%,transparent_70%)]"})]})]})})},!1),_=(0,i.withStandardComponentWrapper)(e=>{let{cta1Link:r,cta2Link:i,description:a,heading:s,image:o,eyebrow:l,subHeading:d,showImageInMobile:p,descriptionMobileFontSize:h,descriptionDesktopFontSize:m,eyebrowMobileFontSize:y,eyebrowDesktopFontSize:b,headingMobileFontSize:v,headingDesktopFontSize:x,subHeadingMobileFontSize:_,subHeadingDesktopFontSize:T,headingHtmlLevel:S}=e?.fields||{},C=f(),E=e?.params?.selectTheme,{base:k,imageColumnBase:N,imageStyle:I}=w({layout:"alternatingTextImageLeft",showImageInMobile:p?.value});return(0,t.jsx)(c.BrandAndThemeProvider,{theme:E,children:(0,t.jsxs)("section",{className:k(),id:e.params?.sectionId,"data-component":"authorable/shared/content/feature-sidebyside",...(0,u.getTestProps)(`component-feature-side-by-side-${e?.rendering?.uid}`),children:[(0,t.jsx)(g,{heading:s,description:a,cta1Link:r,cta2Link:i,eyebrow:l,subHeading:d,layout:"alternatingTextImageLeft",params:e.params,descriptionMobileFontSize:h,descriptionDesktopFontSize:m,eyebrowMobileFontSize:y,eyebrowDesktopFontSize:b,headingMobileFontSize:v,headingDesktopFontSize:x,subHeadingMobileFontSize:_,subHeadingDesktopFontSize:T,headingHtmlLevel:S}),(0,t.jsxs)("div",{className:N(),style:C,children:[(0,t.jsx)(n.default,{className:I(),field:o,fetchPriority:"high",...(0,u.getTestProps)("image")}),(0,t.jsx)("div",{style:{position:"absolute",inset:0,borderRadius:"var(--border-radius-full)",pointerEvents:"none",zIndex:20,background:"linear-gradient(to right, var(--color-core-gradient-1-stop-3) 0%, var(--color-core-gradient-1-stop-2) 80%, var(--color-core-gradient-1-stop-1) 100%)",mask:`radial-gradient(
173      circle, 
174      transparent calc(70% - var(--general-border-width-feature-image-mobile)), 
175      black calc(70% - var(--general-border-width-feature-image-mobile)), 
176      black 70.7%, 
177      transparent 70%
178    )`},className:"mdlg:![mask:radial-gradient(circle,transparent_calc(70%-var(--general-border-width-feature-image-desktop)),black_calc(70%-var(--general-border-width-feature-image-desktop)),black_70.7%,transparent_70%)]"})]})]})})},!1),w=(0,r.tv)({defaultVariants:{layout:"splitBannerImageRight",showImageInMobile:!0,keepImageUncropped:!1},slots:{outerBase:["relative","before:z-[-1]","before:h-full","before:absolute","before:top-0","before:left-[calc(-50vw+50%)]","before:bg-component-promo-bg","before:right-[calc(-50vw+50%)]"],base:["base","flex","items-center","bg-component-promo-bg","rounded-general-border-radius-none","mdlg:py-component-promo-container-promo-container-padding-y","mdlg:px-component-promo-container-promo-container-padding-x","max-w-columns-full-max-width","relative","before:z-[-1]","before:h-full","before:absolute","before:top-0","before:left-[calc(-50vw+50%)]","before:bg-component-promo-bg","before:right-[calc(-50vw+50%)]"],cta:[],contentColumn:["flex","bg-component-promo-surface","min-w-columns-two-third-min-width","py-component-promo-content-padding-y","px-component-promo-content-padding-x","rounded-component-promo-content-radius","mdlg:rounded-general-border-radius-card"],imageColumnBase:["mdlg:w-1/3","w-full","overflow-hidden","relative","aspect-[1/1]","mdlg:self-ce
178nter","mdlg:h-auto","min-w-columns-one-third-min-width","py-component-promo-image-padding-y","px-component-promo-image-padding-x","rounded-border-radius-radius-0","mdlg:rounded-general-border-radius-none"],contentContainer:["flex","flex-col","w-full","mdlg:w-2/3","mdlg:min-w-columns-two-third-min-width","py-component-promo-content-padding-y","px-component-promo-content-padding-x","gap-general-spacing-copy-margin-bottom","rounded-component-promo-content-radius","mdlg:rounded-general-border-radius-card","bg-component-promo-surface"],textContent:[],ctaContainer:["flex","flex-wrap","gap-space-between-less","py-general-spacing-buttons-margin-top","md:justify-normal"],eyebrowText:["text-component-promo-eyebrow","font-typography-font-family-body","text-typography-font-size-xsmall","font-typography-font-weight-xsmall","leading-typography-line-height-xsmall","uppercase","tracking-[2.4px]","md:tracking-[2.7px]","line-clamp-1","mb-general-spacing-eyebrow-margin-bottom","overflow-hidden"],headingText:["text-component-promo-title","font-typography-font-family-header","text-typography-font-size-xlarge","md:text-typography-font-size-xxlarge","font-typography-font-weight-xlarge","md:font-typography-font-weight-xxlarge","leading-typography-line-height-xlarge","md:leading-typography-line-height-xxlarge","pb-general-spacing-title-margin-bottom","[&>span]:bg-clip-text","[&>span]:text-transparent","[&>span]:bg-gradient-to-r","[&>span]:from-color-core-color-2-400","[&>span]:via-color-core-gradient-1-stop-2","[&>span]:to-color-core-gradient-1-stop-1","[&>span]:from-[0%]","[&>span]:via-[40%]","[&>span]:to-[100%]"],subHeadingText:["text-component-promo-subtitle","font-typography-font-family-header","text-typography-font-size-medium","font-typography-font-weight-medium","leading-typography-line-height-medium","mb-general-spacing-subtitle-margin-bottom"],descriptionText:["text-component-promo-body","font-typography-font-family-body","text-typography-font-size-body-large","font-typography-font-weight-body","leading-typography-line-height-body-large","[&_sup]:text-[65%]","[&_sup]:top-[-0.1em]","[&_sub]:text-[65%]"],imageStyle:["w-full","h-full","object-contain","object-center","overflow-hidden","aspect-[1/1]","rounded-component-promo-image-radius"]},variants:{style:{link:{cta:["text-base"]},primary:{cta:["px-8"]},secondary:{cta:["px-8"]},tertiary:{cta:["px-8"]}},layout:{splitBannerImageRight:{outerBase:["px-component-section-container-padding-x","py-component-section-container-padding-y","bg-component-promo-bg"],base:["flex","flex-col-reverse","mdlg:flex-row","rounded-general-border-radius-none","mdlg:!py-component-promo-container-promo-container-padding-y","mdlg:!px-component-promo-container-promo-container-padding-x","max-w-columns-full-max-width"],imageColumnBase:["max-sm:!w-auto"]},splitBannerImageLeft:{outerBase:["px-component-section-container-padding-x","py-component-section-container-padding-y","bg-component-promo-bg"],base:["flex","flex-col-reverse","mdlg:flex-row-reverse","rounded-general-border-radius-none","mdlg:!py-component-promo-container-promo-container-padding-y","mdlg:!px-component-promo-container-promo-container-padding-x","max-w-columns-full-max-width"],imageColumnBase:["max-sm:!w-auto"]},alternatingTextImageRight:{base:["flex","flex-col-reverse","mdlg:flex-row","max-w-columns-full-max-width","min-h-height-min-height-header-min-height","!py-component-section-container-padding-y","!px-component-section-container-padding-x"],imageColumnBase:["max-sm:!w-auto","max-sm:!min-w-columns-one-third-min-width","border-transparent"],headingText:["text-component-promo-title","font-typography-font-family-header","text-typography-font-size-large","md:text-typography-font-size-xxlarge","font-typography-font-weight-large","md:font-typography-font-weight-xxlarge","leading-typography-line-height-large","md:leading-typography-line-height-xxlarge","pb-general-spacing-title-margin-bottom"],imageStyle:["rounded-border-radius-full"]},alternatingTextImageLeft:{base:["flex","flex-col-reverse","mdlg:flex-row-reverse","min-w-columns-full-min-width","max-w-columns-full-max-width","min-h-height-min-height-header-min-height","!py-component-section-container-padding-y","!px-component-section-container-padding-x"],imageColumnBase:["max-sm:!w-auto","max-sm:!min-w-columns-one-third-min-width","border-transparent"],imageStyle:["rounded-border-radius-full"],headingText:["text-component-promo-title","font-typography-font-family-header","text-typography-font-size-large","md:text-typography-font-size-xxlarge","font-typography-font-weight-large","md:font-typography-font-weight-xxlarge","leading-typography-line-height-large","md:leading-typography-line-height-xxlarge","pb-general-spacing-title-margin-bottom"]}},showImageInMobile:{true:{imageColumnBase:["block"]}},keepImageUncropped:{true:{},false:{}},theme:{}},compoundVariants:[{layout:["alternatingTextImageRight","alternatingTextImageLeft"],showImageInMobile:!1,class:{imageColumnBase:["hidden","mdlg:block"]}},{layout:["splitBannerImageRight","splitBannerImageLeft"],keepImageUncropped:!0,class:{imageStyle:["!object-contain","!w-full","!h-full"],imageColumnBase:["!overflow-hidden"]}}]});e.s(["AlternatingTextImageLeft",0,_,"AlternatingTextImageRight",0,x,"Default",0,y,"SplitBannerImageLeft",0,v,"SplitBannerImageRight",0,b])},468913,e=>{"use strict";var t=e.i(843476),r=e.i(211418),i=e.i(207670),n=e.i(389980),a=e.i(84853),s=e.i(506914),o=e.i(38930),l=e.i(296217),c=e.i(133267),u=e.i(136905);let d=(0,a.withStandardComponentWrapper)(e=>{let r=e?.params?.RenderingIdentifier,a=e?.params?.Styles??"",d=e?.params?.selectTheme,h=e?.params?.alignment||"Left",{eyebrow:f,subHeadline:g,background:m,icon:y,headline:b,description:v,cta1Link:x,cta2Link:_}=e?.fields||{},{base:w,wrapper:T,imageWrapper:S,bgImage:C,backgroundImageOverlay:E,contentWrapper:k,eyebrowWrapper:N,eyebrowText:I,iconWrapper:A,titleWrappers:j,subHeadlineText:P,headlineText:O,descriptionText:L,actionButtonWrapper:D}=p({alignment:h});return(0,t.jsx)("section",{className:(0,i.default)(w(),a),"data-component":"authorable/shared/content/feature",id:r||void 0,...(0,u.getTestProps)(`component-feature-${e?.rendering?.uid}`),children:(0,t.jsx)(n.BrandAndThemeProvider,{theme:d,children:(0,t.jsxs)("div",{className:T(),children:[(0,t.jsxs)("div",{className:(0,i.default)(S()),children:[m?.value?.src&&(0,t.jsx)(o.default,{className:(0,i.default)(C(),m?.value?.src?"opacity-15":"opacity-0"),field:m,layout:"fill",...(0,u.getTestProps)("image")}),(0,t.jsx)("div",{className:(0,i.default)(E())})]}),(0,t.jsxs)("div",{className:k(),children:[(0,t.jsx)("div",{className:N(),children:(0,t.jsx)(s.default,{className:(0,i.default)(I()),field:f,tag:"span",...(0,u.getTestProps)("eyebrow")})}),y?.value?.src&&(0,t.jsx)("div",{className:(0,i.default)(A()),children:(0,t.jsx)(o.default,{field:y,...(0,u.getTestProps)("icon")})}),(0,t.jsxs)("div",{className:j(),children:[(0,t.jsx)(s.default,{className:(0,i.default)(O()),field:b,tag:"h2",...(0,u.getTestProps)("headline")}),(0,t.jsx)(s.default,{className:(0,i.default)(P()),field:g,tag:"h3",...(0,u.getTestProps)("sub-headline")})]}),(0,t.jsx)(c.default,{className:(0,i.default)(L()),field:v,...(0,u.getTestProps)("description")}),(0,t.jsxs)("div",{className:D(),children:[(0,t.jsx)(l.default,{ctaVariant:"primary",field:x,ctaComponentClass:"component-feature-button-color-1",...(0,u.getTestProps)("cta-1")}),(0,t.jsx)(l.default,{ctaVariant:"secondary",field:_,ctaComponentClass:"component-feature-button-color-2",...(0,u.getTestProps)("cta-2")})]})]})]})})})}),p=(0,r.tv)({slots:{base:["relative","w-full"],wrapper:["py-component-feature-container-copy-container-padding-y","px-component-feature-container-copy-container-padding-x","relative","min-h-height-minHeight-header-minHeight","rounded-general-border-radius-wrapper-container","overflow-hidden"],imageWrapper:["absolute","
178inset-0","z-0"],bgImage:["z-0","object-cover","h-full","w-full"],backgroundImageOverlay:["absolute","inset-0","-z-10","bg-component-feature-bg"],contentWrapper:["relative","flex","flex-col","lg:max-w-typography-copy-max-Width"],eyebrowWrapper:["pb-general-spacing-eyebrow-margin-bottom","text-component-hero-eyebrow"],eyebrowText:["font-typography-font-family-header","text-typography-font-size-xsmall","font-bold","leading-normal","tracking-[0.16875rem] uppercase","text-component-hero-eyebrow"],iconWrapper:["iconWrapper","pb-margin-less","flex"],titleWrappers:["headingWrapper","flex","flex-col","gap-general-spacing-title-margin-bottom","pb-general-spacing-subtitle-margin-bottom","text-component-feature-subtitle"],subHeadlineText:["text-typography-font-size-medium","font-typography-font-family-header","font-bold","leading-normal"],headlineText:["font-typography-font-family-header","text-typography-font-size-xlarge","text-component-feature-title","font-bold","leading-none"],descriptionText:["font-typography-font-family-body","font-normal","leading-normal","text-component-feature-body","text-typography-font-size-medium"],actionButtonWrapper:["flex","flex-col","md:flex-row","gap-space-between-less","mt-general-spacing-copy-margin-bottom","pt-general-spacing-buttons-margin-top"]},variants:{alignment:{Left:{contentWrapper:["justify-start","text-left"],actionButtonWrapper:["justify-start"],iconWrapper:["justify-start"]},Center:{contentWrapper:["justify-center","text-center","m-auto"],actionButtonWrapper:["justify-center"],iconWrapper:["justify-center"],descriptionText:["text-center"]},Right:{contentWrapper:["justify-end","text-right","float-right"],actionButtonWrapper:["justify-end"],iconWrapper:["justify-end"],descriptionText:["text-right"]}}}});e.s(["Default",0,d])},650112,e=>{"use strict";var t=e.i(843476),r=e.i(211418),i=e.i(84853),n=e.i(296217),a=e.i(506914),s=e.i(207857),o=e.i(389980),l=e.i(136905),c=e.i(828029),u=e.i(474176),d=e.i(340189),p=e.i(455601),h=e.i(310099),f=e.i(696568),g=e.i(551643);let m=e=>!!e?.value?.toString()?.trim(),y=(0,i.withStandardComponentWrapper)(e=>{let{attendees:r,backLink:i,backLinkText:y,ctaLink:v,date:x,finishTime:_,footNote:w,startTime:T,title:S,venue:C}=e?.fields||{},E=e?.params?.selectTheme,k=(0,c.default)(),N=(0,u.parseStyleParams)(e?.params,["cta1"]),{getDictionaryValue:I}=(0,h.default)(),A=(0,g.useMainHeaderHeight)(),{base:j,card:P,title:O,divider:L,cta:D,rows:R,row:M,rowIcon:B,rowContent:U,rowLabel:F,rowValue:$,footnote:z,backLink:q,backLinkIcon:H,backLinkText:W}=b({sticky:!k}),V=k?void 0:{top:`${A}px`},G=[{key:"date",dictionaryKey:"EventInfoCardDate",fallbackLabel:"Date:",field:x,icon:"calendar",iconViewBox:"0 0 20 22",testId:"date"},{key:"startTime",dictionaryKey:"EventInfoCardStartTime",fallbackLabel:"Start time:",field:T,icon:"clock-fast-forward",iconViewBox:"0 0 21.7 20",testId:"start-time",formatAsEventDateTime:!0},{key:"finishTime",dictionaryKey:"EventInfoCardFinishTime",fallbackLabel:"Finish time:",field:_,icon:"clock-rewind",iconViewBox:"0 0 21.7 20",testId:"finish-time",formatAsEventDateTime:!0},{key:"venue",dictionaryKey:"EventInfoCardVenue",fallbackLabel:"Venue:",field:C,icon:"map",iconViewBox:"0 0 22 22",testId:"venue"},{key:"attendees",dictionaryKey:"EventInfoCardAttendees",fallbackLabel:"Attendees:",field:r,icon:"users",iconViewBox:"0 0 21.8723 20.0006",testId:"attendees"}].filter(e=>k||m(e.field)),X=k||m(S),K=k||m(w),Y=k||m(y)||!!i?.value?.href;return(0,t.jsx)(o.BrandAndThemeProvider,{theme:E,children:(0,t.jsxs)("section",{className:j(),style:V,"data-component":"authorable/shared/content/EventInfoCard",id:e.params?.RenderingIdentifier||e.params?.sectionId,...(0,l.getTestProps)(`component-event-info-card-${e?.rendering?.uid}`),children:[(0,t.jsxs)("div",{className:P(),children:[X&&(0,t.jsx)(a.default,{className:O(),field:S,tag:"h2",...(0,l.getTestProps)("event-info-card-title")}),(X||G.length>0)&&(0,t.jsx)("div",{className:L(),"aria-hidden":"true"}),G.length>0&&(0,t.jsx)("ul",{className:R(),children:G.map(e=>(0,t.jsxs)("li",{className:M(),...(0,l.getTestProps)(`event-info-card-row-${e.testId}`),children:[(0,t.jsx)("span",{className:B(),children:(0,t.jsx)(s.default,{icon:e.icon,size:"s",viewBox:e.iconViewBox,className:"text-color-icon-icon"})}),(0,t.jsxs)("div",{className:U(),children:[(0,t.jsx)("span",{className:F(),children:I(e.dictionaryKey)||e.fallbackLabel}),(0,t.jsx)(a.default,{className:$(),field:e.formatAsEventDateTime&&!k?(e=>{if(!e)return e;let t=e.value?.toString()??"";return{...e,value:(0,f.formatEventDateTime)(t)||t}})(e.field):e.field,editable:!(e.formatAsEventDateTime&&!k),tag:"span",...(0,l.getTestProps)(`event-info-card-${e.testId}`)})]})]},e.key))}),(0,t.jsx)(n.default,{className:D(),ctaComponentClass:"component-card-item-button-1-color",ctaStyle:(0,d.getCtaStyle)(N.cta1,"primary"),field:v,gtmEvent:(0,p.createCTAClickEvent)({event:"cta_click",componentName:"Event Info Card CTA",clickText:v?.value?.text||v?.value?.title||"",componentHeader:S?.value||""}),...(0,l.getTestProps)("event-info-card-cta")}),K&&(0,t.jsx)(a.default,{className:z(),field:w,tag:"p",...(0,l.getTestProps)("event-info-card-footnote")})]}),Y&&(0,t.jsxs)(n.default,{ctaVariant:"custom",className:q(),field:i,suppressLinkText:!0,suppressNewTabIcon:!0,...(0,l.getTestProps)("event-info-card-back-link"),children:[(0,t.jsx)(s.default,{icon:"arrow-dash-left",size:"s",className:H()}),(0,t.jsx)(a.default,{className:W(),field:y,tag:"span"})]})]})})}),b=(0,r.tv)({slots:{base:["relative","w-full","max-w-layout-container-center70-max-width"],card:["flex","flex-col","gap-spacing-spacing-16","w-full","p-spacing-spacing-24","bg-component-card-item-surface","border-2","border-component-accordion-item-border","rounded-general-border-radius-card"],title:["m-0","font-typography-font-family-header","text-typography-font-size-small","leading-typography-line-height-small","font-typography-font-weight-small","text-component-card-item-title"],divider:["w-full","h-px","bg-component-accordion-item-border","shrink-0"],cta:["w-full","md:!w-full"],rows:["flex","flex-col","gap-spacing-spacing-16","m-0","p-0","list-none"],row:["flex","items-start","gap-spacing-spacing-16"],rowIcon:["shrink-0","flex","items-center","justify-center","w-6","h-6","mt-2.5"],rowContent:["flex","flex-col","min-w-0","flex-1"],rowLabel:["font-typography-font-family-body","text-typography-font-size-body-small","leading-typography-line-height-body-small","font-typography-font-weight-body-semibold","text-component-card-item-body"],rowValue:["font-typography-font-family-body","text-typography-font-size-body-small","leading-typography-line-height-body-small","font-typography-font-weight-body-semibold","text-component-card-item-subtitle"],footnote:["m-0","font-typography-font-family-body","text-typography-font-size-body-xSmall","leading-typography-line-height-body-xSmall","text-component-card-item-body"],backLink:["inline-flex","items-center","gap-spacing-spacing-16","mt-spacing-spacing-24","underline","text-component-button-primary-filled-text","text-typography-font-size-body-xSmall","leading-typography-line-height-body-xSmall","font-typography-font-weight-body-semibold","hover:opacity-80"],backLinkIcon:["text-component-button-primary-filled-text","shrink-0"],backLinkText:["font-typography-font-family-body","text-typography-font-size-body-small","leading-typography-line-height-body-small","font-typography-font-weight-small","text-component-button-primary-filled-text"]},variants:{sticky:{true:{base:["md:sticky","md:self-start","md:z-10"]}}}});e.s(["Default",0,y])},60079,e=>{"use strict";var t=e.i(422674);e.s(["default",0,()=>{let e=(0,t.useSitecoreContext)();return!e?.sitecoreContext?.pageState||e?.sitecoreContext.pageState==="normal"}])},839896,e=>{"use strict";var t=e.i(843476),r=e.i(3303),i=e.i(828029),n=e.i(422101),a=e.i(827559),s=e.i(783697),o=e.i(60079),l=e.i(136905);let c=e=>{let{fullWidth:c}=e?.params||{},u=(0,i.default)(),d=(0,o.default)();if(!e.fields)return(0,t.jsx)(t.Fragment,{});let p={};e.fields.additionalTagAttributes?.value&&(p=Object.fromEntries(new URLSearchParams(e.fields.additionalTagAttributes.value)));let h=/<script\b(?![^>]*\/>)[^>]*>(?:(?!<\/script>)[\s\S])*<\/script\s*>/.test(e.fields.htmlCode?.value??""),f=!!e.fields.scriptSourceUrl?.value,g=!!e.fields.scriptId?.value;return u?(0,t.jsxs)("div",{"data-component":"authorable/shared/content/codeembed",className:c?"w-screen mx-[calc(50%-50vw)]":"",children:[h&&(0,t.jsx)(s.EditingHelpText,{priority:"warning",children:"The HTML Code below contains an inline script which must be removed or it will cause an error when rendering the page. Move the script to the Script field below to allow it to execute properly."}),f&&!g&&(0,t.jsx)(s.EditingHelpText,{priority:"warning",children:"A Script ID is required when a Script Source URL is provided. Please enter a unique ID for the script."}),(0,t.jsx)(a.EditingFieldValues,{hasRenderingParams:!0,fields:[{label:"HTML Code",field:e.fields.htmlCode},{label:"Script Source URL",field:e.fields.scriptSourceUrl},{label:"Script Source URL ID",field:e.fields.scriptId},{label:"Script",field:e.fields.script}]})]}):e.fields.enabled?.value?(0,t.jsxs)("div",{"data-component":"authorable/shared/content/codeEmbed",...(0,l.getTestProps)(`component-code-embed-${e?.rendering?.uid}`),className:c?"w-screen mx-[calc(50%-50vw)]":"",children:[e.fields.htmlCode?.value&&(0,t.jsx)("div",{className:"[&_iframe]:w-full [&_iframe]:max-w-full",dangerouslySetInnerHTML:{__html:e.fields.htmlCode.value},...(0,l.getTestProps)("html-code")}),e.fields.scriptSourceUrl?.value&&(0,t.jsx)(r.default,{id:e.fields.scriptId?.value,src:e.fields.scriptSourceUrl.value,...p}),e.fields.script?.value&&(0,t.jsx)(r.default,{id:e.id,src:(0,n.getScriptUrl)(d,e)})]}):(0,t.jsx)(t.Fragment,{})};e.s(["CodeEmbed",0,c,"default",0,c])},938730,e=>{"use strict";var t=e.i(843476),r=e.i(211418),i=e.i(506914),n=e.i(202191),a=e.i(136905),s=e.i(828029),o=e.i(296217),l=e.i(455601),c=e.i(340189),u=e.i(474176),d=e.i(84853),p=e.i(422674);let h=(0,d.withStandardComponentWrapper)(({fields:e,params:r,rendering:d})=>{let{heading:h,headingHtmlLevel:g,headingDesktopFontSize:m,headingMobileFontSize:y,description:b,de
178scriptionDesktopFontSize:v,descriptionMobileFontSize:x,dynamicCTATitle:_,cta1Link:w,cta2Link:T}=e||{},{RenderingIdentifier:S,sectionId:C}=r||{},E=(0,u.parseStyleParams)(r,["cta1","cta2"]),{base:k,headingText:N,descriptionText:I,ctaContainer:A,cta1:j,cta2:P}=f(),O=(0,s.default)(),{sitecoreContext:L}=(0,p.useSitecoreContext)(),D=(0,n.getHeadingTag)(g,O,"h2"),R=(0,n.getTypographyClassName)(N,y,m),M=(0,n.getTypographyClassName)(I,x,v),B=_?.value===!0,U=L?.route,F=U?.fields?.ContentType,$=Array.isArray(F)?F[0]:null,z=$?.fields?.Title?.value,q={value:`${h?.value??""} ${z??""}`.trim()},H=B?q:h;return(0,t.jsxs)("div",{"data-component":"authorable/shared/content/calltoaction",className:k(),id:S||C,...(0,a.getTestProps)(`call-to-action-${d?.uid}`),children:[(0,t.jsx)(i.default,{className:R,field:H,tag:D,...(0,a.getTestProps)("heading")}),(0,t.jsx)(i.default,{className:M,field:b,tag:"p",...(0,a.getTestProps)("descrption")}),(0,t.jsxs)("div",{className:A(),children:[w&&(0,t.jsx)(o.default,{ctaComponentClass:"component-feature-button-color-1",className:j({style:E.cta1?.ctaVariant}),ctaStyle:(0,c.getCtaStyle)(E.cta1,"primary"),field:w,gtmEvent:(0,l.createCTAClickEvent)({event:"cta_click",componentName:"Call to Action Primary CTA",clickText:w?.value?.text||w?.value?.title||"",componentHeader:h?.value||h?.value||""}),suppressNewTabIcon:!0,...(0,a.getTestProps)("link-cta1")}),T&&(0,t.jsx)(o.default,{ctaComponentClass:"component-feature-button-color-2",className:P({style:E.cta2?.ctaVariant}),ctaStyle:(0,c.getCtaStyle)(E.cta2,"secondary"),field:T,gtmEvent:(0,l.createCTAClickEvent)({event:"cta_click",componentName:"Call to Action Secondary CTA",clickText:T?.value?.text||T?.value?.title||"",componentHeader:h?.value||h?.value||""}),suppressNewTabIcon:!0,...(0,a.getTestProps)("link-cta2")})]})]})}),f=(0,r.tv)({slots:{base:["pb-spacing-spacing-24"],headingText:["text-component-section-title","font-typography-font-family-header","text-typography-font-size-large","font-typography-font-weight-large","leading-typography-line-height-large","pb-general-spacing-title-margin-bottom"],descriptionText:["text-component-section-body","font-typography-font-family-body","text-typography-font-size-body-medium","font-typography-font-weight-body","leading-typography-line-height-body-medium","pb-general-spacing-title-margin-bottom"],ctaContainer:["flex","flex-wrap","gap-spacing-spacing-12"],cta1:[],cta2:[]}});e.s(["Default",0,h])},117595,e=>{"use strict";function t(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var i in r)e[i]=r[i]}return e}var r=function e(r,i){function n(e,n,a){if("u">typeof document){"number"==typeof(a=t({},i,a)).expires&&(a.expires=new Date(Date.now()+864e5*a.expires)),a.expires&&(a.expires=a.expires.toUTCString()),e=encodeURIComponent(e).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var s="";for(var o in a)a[o]&&(s+="; "+o,!0!==a[o]&&(s+="="+a[o].split(";")[0]));return document.cookie=e+"="+r.write(n,e)+s}}return Object.create({set:n,get:function(e){if("u">typeof document&&(!arguments.length||e)){for(var t=document.cookie?document.cookie.split("; "):[],i={},n=0;n<t.length;n++){var a=t[n].split("="),s=a.slice(1).join("=");try{var o=decodeURIComponent(a[0]);if(i[o]=r.read(s,o),e===o)break}catch(e){}}return e?i[e]:i}},remove:function(e,r){n(e,"",t({},r,{expires:-1}))},withAttributes:function(r){return e(this.converter,t({},this.attributes,r))},withConverter:function(r){return e(t({},this.converter,r),this.attributes)}},{attributes:{value:Object.freeze(i)},converter:{value:Object.freeze(r)}})}({read:function(e){return'"'===e[0]&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}},{path:"/"});e.s(["default",0,r])},823394,e=>{"use strict";var t=e.i(843476),r=e.i(271645),i=e.i(211418),n=e.i(117595),a=e.i(422674);e.i(879806);var s=e.i(871084),o=e.i(296217),l=e.i(136905),c=e.i(133267);let u="alert-dismissed-",d=e=>e&&"0001-01-01T00:00:00Z"!==e?new Date(e):null,p=(0,i.tv)({slots:{container:["alerts-container","w-full","transition-all","duration-500"],alertStyle:["flex","md:items-center","justify-between","md:pr-4","border-b","border-component-alert-border","transition-all","duration-200","transition-opacity","duration-300","ease-in","py-spacing-spacing-16","px-layout-base-margin-x","md:px-0","md:py-0"],content:["flex-col","flex","items-start","gap-space-between-less","md:py-spacing-spacing-16","md:px-layout-base-margin-x","md:flex-row","md:flex-grow","md:justify-center"],text:["md:self-center","font-typography-font-family-body","text-typography-font-size-body-medium","font-typography-font-weight-body-semibold","leading-typography-line-height-body-medium"],ctaWrapper:["group","flex","items-center","gap-spacing-spacing-8","md:self-end","p-spacing-spacing-2","relative","after:absolute","after:inset-x-0","after:bottom-0","after:h-0.5","after:origin-left","after:scale-x-0","hover:after:scale-x-100","focus:hover:after:scale-x-0","after:bg-component-button-tonal-link-text","focus:outline-none","focus:ring-4","focus:ring-offset-1","focus:ring-color-border-border-focus","focus:rounded-general-border-radius-button","focus:no-underline"],cta:["text-typography-font-family-body","text-typography-font-size-body-medium","font-typography-font-weight-button","leading-5"],dismissButtonWrapper:["p-spacing-spacing-4","hover:bg-component-button-white-filled-bg-hover","rounded-general-border-radius-button","!h-6","!w-6","flex","justify-center","items-center","md:items-center"],dismissButton:["text-sm","transition-opacity","duration-200","md:self-start","md:self-center","md:pt-0","flex","flex-row","items-center","justify-center","shrink-0","relative","h-5","w-5"],arrowIcon:["h-auto","w-xs"]},variants:{type:{priority:{alertStyle:["bg-component-alert-bg-priority","text-component-button-white-link-text"],cta:["text-component-button-white-link-text","hover:text-component-button-white-link-text-hover","focus:text-component-button-white-link-text-hover"],ctaWrapper:["after:bg-component-button-white-link-text"]},warning:{alertStyle:["bg-component-alert-bg-warning","text-component-button-white-filled-text"],cta:["text-component-button-tonal-link-text","hover:text-component-button-tonal-link-text-hover","focus:text-component-button-tonal-link-text-hover"],ctaWrapper:["after:bg-component-button-tonal-link-text"]},neutral:{alertStyle:["bg-component-alert-bg-neutral","text-color-text-brand-1"],cta:["text-component-button-tonal-link-text","hover:text-component-button-tonal-link-text-hover","focus:text-component-button-tonal-link-text-hover"],ctaWrapper:["after:bg-component-button-tonal-link-text"]},neutral2:{alertStyle:["bg-component-alert-bg-neutral-light","text-color-text-brand-1"],cta:["text-component-button-tonal-link-text","hover:text-component-button-tonal-link-text-hover","focus:text-component-button-tonal-link-text-hover"],ctaWrapper:["after:bg-component-button-tonal-link-text"]}}}});e.s(["Default",0,e=>{let{matchedAlerts:i,state:h,dismissAlert:f,handleDismissed:g}=(e=>{let{sitecoreContext:t}=(0,a.useSitecoreContext)(),i=t?.siteSettings,s=(0,r.useMemo)(()=>i?.siteAlerts??[],[i?.siteAlerts]),[o,l]=(0,r.useState)({dismissing:null,hydrated:!1,dismissedAlerts:new Set});return(0,r.useEffect)(()=>{let e=new Set;
178s.forEach(t=>{t?.id&&n.default.get(u+t.id)&&e.add(t.id)}),(0,r.startTransition)(()=>{l(t=>({...t,dismissedAlerts:e,hydrated:!0}))})},[s]),{matchedAlerts:(0,r.useMemo)(()=>s.filter(t=>{let r=t?.alertType?.jsonValue?.id,i=e?.toLowerCase(),n=!i||r?.toLowerCase()===i,a=(e=>{let{startDate:t,endDate:r}=e||{},i=new Date,n=d(t?.jsonValue?.value),a=d(r?.jsonValue?.value);return!n&&!a||(!n||!(i<n))&&(!a||!(i>a))})(t),s=t.id&&o.dismissedAlerts.has(t.id);return n&&a&&!s}),[s,e,o.dismissedAlerts]),state:o,dismissAlert:e=>{l(t=>({...t,dismissing:e}))},handleDismissed:e=>{n.default.set(u+e,"1"),(0,r.startTransition)(()=>{l(t=>{let r=new Set(t.dismissedAlerts);return r.add(e),{...t,dismissedAlerts:r,dismissing:null}})})}}})(e?.params?.["Alert Type"]?.replace(/[{}]/g,""));if(!h.hydrated||!i.length)return null;let{container:m,alertStyle:y,content:b,text:v,cta:x,dismissButtonWrapper:_,dismissButton:w,ctaWrapper:T,arrowIcon:S}=p();return(0,t.jsx)("div",{className:m(),children:i.map(e=>{let r=e.alertType?.jsonValue?.fields?.title?.value?.toLowerCase()||"neutral",i=e.alertCTA?.jsonValue?.value?.target==="_blank",n=h.dismissing===e.id;return(0,t.jsxs)("div",{className:`${y({type:r})} ${n?"opacity-0":"opacity-100"}`,role:"priority"===r?"alert":"region",...(0,l.getTestProps)(`component-alert-${e.id}`),onTransitionEnd:()=>{n&&e.id&&g(e.id)},children:[(0,t.jsxs)("div",{className:b(),children:[(0,t.jsx)(s.SvgIcon,{size:"s",icon:"priority"===r?"alert-priority":"alert-neutral"}),(0,t.jsx)("div",{className:v(),children:(0,t.jsx)(c.default,{field:e.alertText,...(0,l.getTestProps)("text")})}),e.alertCTA?.jsonValue?.value?.href&&(0,t.jsxs)(o.default,{className:`${T({type:r})}`,field:e.alertCTA.jsonValue,ctaComponentClass:"color-grayscale-white",...(0,l.getTestProps)("alert-cta"),children:[(0,t.jsx)("span",{className:`${x({type:r})}`,children:e.alertCTA.jsonValue.value.text}),!i&&(0,t.jsx)(s.SvgIcon,{className:S(),fill:"currentColor",icon:"arrow-dash-right",size:"xss",viewBox:"0 0 21 21"})]})]}),(0,t.jsx)("div",{className:_(),children:(0,t.jsx)("button",{onClick:()=>e.id&&f(e.id),className:w(),"aria-label":"Dismiss alert",...(0,l.getTestProps)("alert-dismiss"),children:(0,t.jsx)(s.SvgIcon,{size:"xxs",icon:"close"})})})]},e.id)})})}])},614981,e=>{"use strict";e.s(["componentMap",()=>tC,"default",()=>tE],614981);var t=e.i(562531),t=t,r=e.i(574949),r=r,i=e.i(754386),n=e.i(126909),a=e.i(554831),s=e.i(895526),o=e.i(838316),l=e.i(213041),c=e.i(571115),u=e.i(126489),d=e.i(252297),p=e.i(178999),h=e.i(388589),f=e.i(859765),g=e.i(310),m=e.i(750135),y=e.i(167229),b=e.i(63167),v=e.i(128572),x=e.i(538467),_=e.i(722904),w=e.i(582107),T=e.i(293482),S=e.i(565809),C=e.i(846763),E=e.i(180137),k=e.i(826551),N=e.i(682689),I=e.i(991470),A=e.i(333817),j=e.i(208937),P=e.i(12590),O=e.i(724508),L=e.i(859637),D=e.i(50349),R=e.i(197203),M=e.i(575917),B=e.i(95761),U=e.i(841258),F=e.i(520275),$=e.i(757070),z=e.i(520593),q=e.i(887528),H=e.i(603874),W=e.i(365303),V=e.i(720148),G=e.i(503441),X=e.i(197395),K=e.i(657190),Y=e.i(901260),Q=e.i(842375),J=e.i(227832),Z=e.i(202289),ee=e.i(640127),et=e.i(432808),er=e.i(609443),ei=e.i(465133),en=e.i(552601),ea=e.i(749301),es=e.i(290882),eo=e.i(830088),el=e.i(403577),ec=e.i(98769),eu=e.i(901836),ed=e.i(227488),ep=e.i(496057),eh=e.i(838496),ef=e.i(274532),eg=e.i(495045),em=e.i(934712),ey=e.i(693888),eb=e.i(161025),ev=e.i(711163),ex=e.i(843371),e_=e.i(594171),ew=e.i(532786),eT=e.i(1721),eS=e.i(581372),eC=e.i(283237),eE=e.i(646991),ek=e.i(899897),eN=e.i(787836),eI=e.i(614443),eA=e.i(189785),ej=e.i(302368),eP=e.i(694777),eO=e.i(907095),eL=e.i(582633),eD=e.i(227966),eR=e.i(274653);e.i(106217);var eM=e.i(624248),eB=e.i(484503),eU=e.i(181748),eF=e.i(422532),e$=e.i(598905),ez=e.i(333744),eq=e.i(505851),eH=e.i(87579),eW=e.i(832),eV=e.i(118109),eG=e.i(142996),eX=e.i(362410),eK=e.i(231166),eY=e.i(435258),eQ=e.i(560254),eJ=e.i(899187),eZ=e.i(555590),e0=e.i(927534),e1=e.i(25546),e2=e.i(662960),e4=e.i(823370),e5=e.i(147303),e3=e.i(446326),e8=e.i(437602),e6=e.i(494274),e7=e.i(643030),e9=e.i(308173),te=e.i(631642),tt=e.i(130356),tr=e.i(363703),ti=e.i(390773),tn=e.i(841261),ta=e.i(71309),ts=e.i(667656),to=e.i(696668),tl=e.i(690239),tc=e.i(595718),tu=e.i(266513),td=e.i(667486),tp=e.i(999470),th=e.i(304344),tf=e.i(360196),tg=e.i(423064),tm=e.i(612971),ty=e.i(438630),tb=e.i(993942),tv=e.i(427657),tx=e.i(468913),t_=e.i(650112),tw=e.i(839896),tT=e.i(938730),tS=e.i(823394);let tC=new Map([["BYOCWrapper",t.BYOCWrapper],["FEaaSWrapper",r.FEaaSWrapper],["Form",i.Form],["VimeoPlayer",{...n}],["SitecoreStyles",{...a}],["SearchPageView",{...s}],["SearchMetaData",{...o}],["Search",{...l}],["RichText",{...c}],["Promo",{...u}],["PartialDesignDynamicPlaceholder",{...d}],["PageContent",{...p}],["Navigation",{...h}],["LinkList",{...f}],["Image",{...g}],["EditorFastRefresh",{...m}],["ContentBlock",{...y}],["Container",{...b}],["ColumnSplitter",{...v}],["CdpPageView",{...x}],["BrightEdge",{..._}],["GTM",{...w}],["AiSearchOverlay",{...T}],["AgenticSearchToggle",{...S}],["AgenticSearchPoc",{...C}],["AgenticOverlay",{...E}],["Sidebar",{...k}],["ReadMoreModal",{...N}],["MessageList",{...I}],["LandingView",{...A}],["ChatInput",{...j}],["SkipNav",{...P}],["Sort",{...O}
178],["SearchWrapper",{...L}],["SearchFilter",{...D}],["SearchBar",{...R}],["ResultList",{...M}],["QuerySummary",{...B}],["Pagination",{...U}],["Facets",{...F}],["DigitalWorkerSearchCard",{...$}],["MainLayout",{...z}],["SearchOverlay",{...q}],["LanguageSelector",{...H}],["HeaderMobile",{...W}],["HeaderDesktop",{...V}],["HeaderContext",{...G}],["Header",{...X}],["SearchButton",{...K}],["NavItem",{...Y}],["MegaMenu",{...Q}],["Logo",{...J}],["LanguageSelectorButton",{...Z}],["LanguageDropdown",{...ee}],["MobileSlidingMenu",{...et}],["MobileSearchButton",{...er}],["MobileNavItems",{...ei}],["MobileMenuToggle",{...en}],["MobileMenuFooter",{...ea}],["MobileMegaMenu",{...es}],["MobileLanguageSelector",{...eo}],["Footer",{...el}],["Breadcrumb",{...ec}],["BackToTop",{...eu}],["RelatedArticles",{...ed}],["ArticleContent",{...ep}],["ArticleCategoryTabs",{...eh}],["SearchWithHeadlineDesc",{...ef}],["CustomForm",{...eg}],["Video",{...em}],["Share",{...ey}],["InlineVideo",{...eb}],["InlineImage",{...ev}],["InlineIFrame",{...ex}],["FullWidthVideoCardWistiaOverlay",{...e_}],["FullWidthVideoCardVideoJsOverlay",{...ew}],["FullWidthVideoCard",{...eT}],["VideoCardItem",{...eS}],["USPGridItem",{...eC}],["USPGrid",{...eE}],["TabItem",{...ek}],["Tab",{...eN}],["StatsItem",{...eI}],["Stats",{...eA}],["SpeakerCardItem",{...ej}],["SpeakerCard",{...eP}],["ResourceCardItem",{...eO}],["QuoteCarouselItem",{...eL}],["QuoteCarousel",{...eD}],["LogoCarouselItem",{...eR}],["LogoCarousel",{...eM}],["InfoCardItem",{...eB}],["InfoCard",{...eU}],["IconFeatureGridItem",{...eF}],["IconFeatureGrid",{...e$}],["HeroCarouselItem",{...ez}],["HeroCarousel",{...eq}],["FileList",{...eH}],["DynamicCarousel",{...eW}],["DynamicCardList",{...eV}],["CustomerDirectoryCard",{...eG}],["CarouselItem",{...eX}],["Carousel",{...eK}],["CardList",{...eY}],["CardItem",{...eQ}],["AccordionItem",{...eJ}],["AccordionBulkActionContext",{...eZ}],["Accordion",{...e0}],["ContextualNavItem",{...e1}],["ContextualNav",{...e2}],["SidebarLayout",{...e4}],["Section",{...e5}],["SearchMain",{...e3}
178],["JumpNavSection",{...e8}],["JumpNavContainer",{...e6}],["Divider",{...e7}],["ContainerFullWidth",{...e9}],["ContainerFullBleed",{...te}],["ContainerCenter-75",{...tt}],["Container-75-25",{...tr}],["Container-50-50",{...ti}],["Container-25-75",{...tn}],["ArticleMain",{...ta}],["AnchorNavItem",{...ts}],["AnchorNavDestination",{...to}],["AnchorNavContainer",{...tl}],["SmartRecruitersWidget",{...tc}],["SmartRecruitersJobAlert",{...tu}],["RTE",{...td}],["Quote",{...tp}],["PageTitle",{...th}],["Modal",{...tf}],["Metadata",{...tg}],["HubspotFormClient",{...tm}],["HubspotForm",{...ty}],["Hero",{...tb}],["FeatureSidebySide",{...tv}],["Feature",{...tx}],["EventInfoCard",{...t_}],["CodeEmbed",{...tw}],["CallToAction",{...tT}],["Alert",{...tS}]]),tE=tC}]);

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.