PageSourceSearch

https://www.urbanhit.fr/_next/static/chunks/pages/_app-60f7928a1d5962bf.js

js urbanhit.fr collected 2026-10-01 12:35:39 UTC 2,088,878 bytes, 90 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[888],{4465:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var r,i=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|inert|itemProp|itemScope|itemType|itemID|itemRef|on|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,a=(r={},function(e){return void 0===r[e]&&(r[e]=i.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&91>e.charCodeAt(2)),r[e]})},3569:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var r={year:0,month:1,day:2,hour:3,minute:4,second:5},i={};function a(e,t,n){if(r=/^(Z)$/.exec(e))return 0;if(r=/^([+-])(\d{2})$/.exec(e))return s(a=parseInt(r[2],10))?(i=36e5*a,"+"===r[1]?-i:i):NaN;if(r=/^([+-])(\d{2}):?(\d{2})$/.exec(e)){a=parseInt(r[2],10);var r,i,a,l=parseInt(r[3],10);return s(a,l)?(i=36e5*a+6e4*l,"+"===r[1]?-i:i):NaN}if(r=/(UTC|(?:[a-zA-Z]+\/[a-zA-Z_-]+(?:\/[a-zA-Z_]+)?))$/.exec(e)){t=new Date(t||Date.now());var u,c=o(n?t:new Date(Date.UTC((u=t).getFullYear(),u.getMonth(),u.getDate(),u.getHours(),u.getMinutes(),u.getSeconds(),u.getMilliseconds())),e);return-(n?c:function(e,t,n){var r=e.getTime()-t,i=o(new Date(r),n);if(t===i)return t;var a=o(new Date(r-=i-t),n);return i===a?i:Math.max(i,a)}(t,c,e))}return 0}function o(e,t){var n,a,o,[s,l,u,c,d,h]=(o=function(e){if(!i[e]){var t=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:"America/Ne
1w_York",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}).format(new Date("2014-06-25T04:00:00.123Z"));i[e]="06/25/2014, 00:00:00"===t||"‎06‎/‎25‎/‎2014‎ ‎00‎:‎00‎:‎00"===t?new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:e,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}):new Intl.DateTimeFormat("en-US",{hourCycle:"h23",timeZone:e,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"})}return i[e]}(t)).formatToParts?function(e,t){for(var n=e.formatToParts(t),i=[],a=0;a<n.length;a++){var o=r[n[a].type];o>=0&&(i[o]=parseInt(n[a].value,10))}return i}(o,e):(n=o.format(e).replace(/\u200E/g,""),[(a=/(\d+)\/(\d+)\/(\d+),? (\d+):(\d+):(\d+)/.exec(n))[3],a[1],a[2],a[4],a[5],a[6]]),f=Date.UTC(s,l-1,u,c%24,d,h),p=e.getTime(),m=p%1e3;return f-(p-=m>=0?m:1e3+m)}function s(e,t){return null==t||!(t<0)&&!(t>59)}},8444:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var r=n(3946),i=n(4262),a=n(3569),o={dateTimeDelimeter:/[T ]/,plainTime:/:/,timeZoneDelimeter:/[Z ]/i,YY:/^(\d{2})$/,YYY:[/^([+-]\d{2})$/,/^([+-]\d{3})$/,/^([+-]\d{4})$/],YYYY:/^(\d{4})/,YYYYY:[/^([+-]\d{4})/,/^([+-]\d{5})/,/^([+-]\d{6})/],MM:/^-(\d{2})$/,DDD:/^-?(\d{3})$/,MMDD:/^-?(\d{2})-?(\d{2})$/,Www:/^-?W(\d{2})$/,WwwD:/^-?W(\d{2})-?(\d{1})$/,HH:/^(\d{2}([.,]\d*)?)$/,HHMM:/^(\d{2}):?(\d{2}([.,]\d*)?)$/,HHMMSS:/^(\d{2}):?(\d{2}):?(\d{2}([.,]\d*)?)$/,timezone:/([Z+-].*| UTC|(?:[a-zA-Z]+\/[a-zA-Z_]+(?:\/[a-zA-Z_]+)?))$/};function s(e,t){if(arguments.length<1)throw TypeError("1 argument required, but only "+arguments.length+" present");if(null===e)return new Date(NaN);var n=t||{},s=null==n.additionalDigits?2:(0,r.Z)(n.additionalDigits);if(2!==s&&1!==s&&0!==s)throw RangeError("additionalDigits must be 0, 1 or 2");if(e instanceof Date||"object"==typeof e&&"[object Date]"===Object.prototype.toString.call(e))return new Date(e.getTime());if("number"==typeof e||"[object Number]"===Object.prototype.toString.call(e))return new Date(e);if(!("string"==typeof e||"[object String]"===Object.prototype.toString.call(e)))return new Date(NaN);var u=function(e){var t,n={},r=e.split(o.dateTimeDelimeter);if(o.plainTime.test(r[0])?(n.date=null,t=r[0]):(n.date=r[0],t=r[1],n.timezone=r[2],o.timeZoneDelimeter.test(n.date)&&(n.date=e.split(o.timeZoneDelimeter)[0],t=e.substr(n.date.length,e.length))),t){var i=o.timezone.exec(t);i?(n.time=t.replace(i[1],""),n.timezone=i[1]):n.time=t}return n}(e),c=function(e,t){var n,r=o.YYY[t],i=o.YYYYY[t];if(n=o.YYYY.exec(e)||i.exec(e)){var a=n[1];return{year:parseInt(a,10),restDateString:e.slice(a.length)}}if(n=o.YY.exec(e)||r.exec(e)){var s=n[1];return{year:100*parseInt(s,10),restDateString:e.slice(s.length)}}return{year:null}}(u.date,s),m=c.year,g=function(e,t){if(null===t)return null;if(0===e.length)return(r=new Date(0)).setUTCFullYear(t),r;if(n=o.MM.exec(e))return(r=new Date(0),h(t,i=parseInt(n[1],10)-1))?(r.setUTCFullYear(t,i),r):new Date(NaN);if(n=o.DDD.exec(e)){r=new Date(0);var n,r,i,a,s=parseInt(n[1],10);return!function(e,t){if(t<1)return!1;var n=d(e);return(!n||!(t>366))&&(!!n||!(t>365))}(t,s)?new Date(NaN):(r.setUTCFullYear(t,0,s),r)}if(n=o.MMDD.exec(e)){r=new Date(0),i=parseInt(n[1],10)-1;var u=parseInt(n[2],10);return h(t,i,u)?(r.setUTCFullYear(t,i,u),r):new Date(NaN)}if(n=o.Www.exec(e))return f(t,a=parseInt(n[1],10)-1)?l(t,a):new Date(NaN);if(n=o.WwwD.exec(e)){a=parseInt(n[1],10)-1;var c=parseInt(n[2],10)-1;return f(t,a,c)?l(t,a,c):new Date(NaN)}return null}(c.restDateString,m);if(isNaN(g)||!g)return new Date(NaN);var v,y=g.getTime(),b=0;if(u.time&&isNaN(b=function(e){if(t=o.HH.exec(e))return p(n=parseFloat(t[1].replace(",",".")))?n%24*36e5:NaN;if(t=o.HHMM.exec(e))return p(n=parseInt(t[1],10),r=parseFloat(t[2].replace(",",".")))?n%24*36e5+6e4*r:NaN;if(t=o.HHMMSS.exec(e)){n=parseInt(t[1],10),r=parseInt(t[2],10);var t,n,r,i=parseFloat(t[3].replace(",","."));return p(n,r,i)?n%24*36e5+6e4*r+1e3*i:NaN}return null}(u.time)))return new Date(NaN);if(u.timezone||n.timeZone){if(isNaN(v=(0,a.Z)(u.timezone||n.timeZone,new Date(y+b))))return new Date(NaN)}else v=(0,i.Z)(new Date(y+b)),v=(0,i.Z)(new Date(y+b+v));return new Date(y+b+v)}function l(e,t,n){t=t||0,n=n||0;var r=new Date(0);r.setUTCFullYear(e,0,4);var i=7*t+n+1-(r.getUTCDay()||7);return r.setUTCDate(r.getUTCDate()+i),r}var u=[31,28,31,30,31,30,31,31,30,31,30,31],c=[31,29,31,30,31,30,31,31,30,31,30,31];function d(e){return e%400==0||e%4==0&&e%100!=0}function h(e,t,n){if(t<0||t>11)return!1;if(null!=n){if(n<1)return!1;var r=d(e);if(r&&n>c[t]||!r&&n>u[t])return!1}return!0}function f(e,t,n){return!(t<0)&&!(t>
152)&&(null==n||!(n<0)&&!(n>6))}function p(e,t,n){return(null==e||!(e<0)&&!(e>=25))&&(null==t||!(t<0)&&!(t>=60))&&(null==n||!(n<0)&&!(n>=60))}},7951:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var r=n(3569),i=n(8444);function a(e,t,n){var a=(0,i.Z)(e,n),o=(0,r.Z)(t,a,!0)||0,s=new Date(a.getTime()-o);return new Date(s.getUTCFullYear(),s.getUTCMonth(),s.getUTCDate(),s.getUTCHours(),s.getUTCMinutes(),s.getUTCSeconds(),s.getUTCMilliseconds())}},4262:function(e,t,n){"use strict";function r(e){return e.getTime()%6e4}function i(e){var t=new Date(e.getTime()),n=Math.ceil(t.getTimezoneOffset());t.setSeconds(0,0);var i=n>0?(6e4+r(t))%6e4:r(t);return 6e4*n+i}n.d(t,{Z:function(){return i}})},3882:function(e,t,n){"use strict";function r(e,t){if(t.length<e)throw TypeError(e+" argument"+(e>1?"s":"")+" required, but only "+t.length+" present")}n.d(t,{Z:function(){return r}})},3946:function(e,t,n){"use strict";function r(e){if(null===e||!0===e||!1===e)return NaN;var t=Number(e);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)}n.d(t,{Z:function(){return r}})},1820:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(3946),i=n(9013),a=n(3882);function o(e,t){return(0,a.Z)(2,arguments),new Date((0,i.Z)(e).getTime()+(0,r.Z)(t))}},9144:function(e,t,n){"use strict";n.d(t,{Z:function(){return F}});var r,i=n(9013),a=n(3882),o={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}};function s(e){return function(t){var n=t||{},r=n.width?String(n.width):e.defaultWidth;return e.formats[r]||e.formats[e.defaultWidth]}}var l={date:s({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:s({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:s({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},u={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function c(e){return function(t,n){var r,i=n||{};if("formatting"===(i.context?String(i.context):"standalone")&&e.formattingValues){var a=e.defaultFormattingWidth||e.defaultWidth,o=i.width?String(i.width):a;r=e.formattingValues[o]||e.formattingValues[a]}else{var s=e.defaultWidth,l=i.width?String(i.width):e.defaultWidth;r=e.values[l]||e.values[s]}return r[e.argumentCallback?e.argumentCallback(t):t]}}function d(e){return function(t,n){var r,i=String(t),a=n||{},o=a.width,s=o&&e.matchPatterns[o]||e.matchPatterns[e.defaultMatchWidth],l=i.match(s);if(!l)return null;var u=l[0],c=o&&e.parsePatterns[o]||e.parsePatterns[e.defaultParseWidth];return r="[object Array]"===Object.prototype.toString.call(c)?function(e,t){for(var n=0;n<e.length;n++)if(t(e[n]))return n}(c,function(e){return e.test(u)}):function(e,t){for(var n in e)if(e.hasOwnProperty(n)&&t(e[n]))return n}(c,function(e){return e.test(u)}),r=e.valueCallback?e.valueCallback(r):r,{value:r=a.valueCallback?a.valueCallback(r):r,rest:i.slice(u.length)}}}var h={code:"en-US",formatDistance:function(e,t,n){var r;return(n=n||{},r="string"==typeof o[e]?o[e]:1===t?o[e].one:o[e].other.replace("{{count}}",t),n.addSuffix)?n.comparison>0?"in "+r:r+" ago":r},formatLong:l,formatRelative:function(e,t,n,r){return u[e]},localize:{ordinalNumber:function(e,t){var n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},era:c({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:c({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:function(e){return Number(e)-1}}),month:c({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:c({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Frid
1ay","Saturday"]},defaultWidth:"wide"}),dayPeriod:c({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:(r={matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}},function(e,t){var n=String(e),i=t||{},a=n.match(r.matchPattern);if(!a)return null;var o=a[0],s=n.match(r.parsePattern);if(!s)return null;var l=r.valueCallback?r.valueCallback(s[0]):s[0];return{value:l=i.valueCallback?i.valueCallback(l):l,rest:n.slice(o.length)}}),era:d({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:d({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:d({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:d({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:d({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})},options:{weekStartsOn:0,firstWeekContainsDate:1}},f=n(3946),p=n(1820);function m(e,t){for(var n=Math.abs(e).toString();n.length<t;)n="0"+n;return(e<0?"-":"")+n}var g={y:function(e,t){var n=e.getUTCFullYear(),r=n>0?n:1-n;return m("yy"===t?r%100:r,t.length)},M:function(e,t){var n=e.getUTCMonth();return"M"===t?String(n+1):m(n+1,2)},d:function(e,t){return m(e.getUTCDate(),t.length)},a:function(e,t){var n=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];default:return"am"===n?"a.m.":"p.m."}},h:function(e,t){return m(e.getUTCHours()%12||12,t.length)},H:function(e,t){return m(e.getUTCHours(),t.length)},m:function(e,t){return m(e.getUTCMinutes(),t.length)},s:function(e,t){return m(e.getUTCSeconds(),t.length)},S:function(e,t){var n=t.length;return m(Math.floor(e.getUTCMilliseconds()*Math.pow(10,n-3)),t.length)}};function v(e){(0,a.Z)(1,arguments);var t=(0,i.Z)(e),n=t.getUTCDay();return t.setUTCDate(t.getUTCDate()-((n<1?7:0)+n-1)),t.setUTCHours(0,0,0,0),t}function y(e){(0,a.Z)(1,arguments);var t=(0,i.Z)(e),n=t.getUTCFullYear(),r=new Date(0);r.setUTCFullYear(n+1,0,4),r.setUTCHours(0,0,0,0);var o=v(r),s=new Date(0);s.setUTCFullYear(n,0,4),s.setUTCHours(0,0,0,0);var l=v(s);return t.getTime()>=o.getTime()?n+1:t.getTime()>=l.getTime()?n:n-1}function b(e,t){(0,a.Z)(1,arguments);var n=t||{},r=n.locale,o=r&&r.options&&r.options.weekStartsOn,s=null==o?0:(0,f.Z)(o),l=null==n.weekStartsOn?s:(0,f.Z)(n.weekStartsOn);if(!(l>=0&&l<=6))throw RangeError("weekStartsOn must be between 0 and 6 inclusively");var u=(0,i.Z)(e),c=u.getUTCDay();return u.setUTCDate(u.getUTCDate()-((c<l?7:0)+c-l)),u.setUTCHours(0,0,0,0),u}function A(e,t){(0,a.Z)(1,arguments);var n=(0,i.Z)(e,t),r=n.getUTCFullYear(),o=t||{},s=o.locale,l=s&&s.options&&s.options.firstWeekContainsDate,u=null==l?1:(0,f.Z)(l),c=null==o.firstWeekContainsDate?u:(0,f.Z)(o.firstWeekContainsDate);if(!(c>=1&&c<=7))throw RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var d=new Date(0);d.setUTCFullYear(r+1,0,c),d.setUTCHours(0,0,0,0);var h=b(d,t),p=new Date(0);p.setUTCFullYear(r,0,c),p.setUTCHours(0,0,0,0);var m=b(p,t);return n.getTime()>=h.getTime()?r+1:n.getTime()>=m.getTime()?r:r-1}var E={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"};function w(e,t){var n=e>0?"-":"+",r=Math.abs(e),i=Math.floor(r/60),a=r%60;return 0===a?n+String(i):n+String(i)+(t||"")+m(a,2)}function x(e,t){return e%60==0?(e>0?"-":"+")+m(Math.abs(e)/60,2):T(e,t)}function T(e,t){var n=Math.abs(e);return(e>0?"-":"+")+m(Math.floor(n/60),2)+(t||"")+m(n%60,2)}var S={G:function(e,t,n){var r=e.getUTCFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if("yo"===t){var r=e.getUTCFullYear();return n.ordinalNumber(r>0?r:1-r,{unit:"year"})}return g.y(e,t)},Y:function(e,t,n,r){var i=A(e,r),a=i>0?i:1-i;return"YY"===t?m(a%100,2):"Yo"===t?n.ordinalNumber(a,{unit:"year"}):m(a,t.length)},R:function(e,t){return m(y(e),t.length)},u:function(e,t){return m(e.getUTCFullYear(),t.length)},Q:function(e,t,n){var r=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return m(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){var r=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return m(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){var r=e.getUTCMonth();switch(t){case"M":case"MM":return g.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){var r=e.getUTCMonth();switch(t){case"L":return String(r+1);case"LL":return m(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){var o=function(e,t){(0,a.Z)(1,arguments);var n=(0,i.Z)(e);return Math.round((b(n,t).getTime()-(function(e,t){(0,a.Z)(1,arguments);var n=t||{},r=n.locale,i=r&&r.options&&r.options.firstWeekContainsDate,o=null==i?1:(0,f.Z)(i),s=null==n.firstWeekContainsDate?o:(0,f.Z)(n.firstWeekContainsDate),l=A(e,t),u=new Date(0);return u.setUTCFullYear(l,0,s),u.setUTCHours(0,0,0,0),b(u,t)})(n,t).getTime())/6048e5)+1}(e,r);return"wo"===t?n.ordinalNumber(o,{unit:"week"}):m(o,t.length)},I:function(e,t,n){var r=function(e){(0,a.Z)(1,arguments);var t=(0,i.Z)(e);return Math.round((v(t).getTime()-(function(e){(0,a.Z)(1,arguments);var t=y(e),n=new Date(0);return n.setUTCFullYear(t,0,4),n.setUTCHours(0,0,0,0),v(n)})(t).getTime())/6048e5)+1}(e);return"Io"===t?n.ordinalNumber(r,{unit:"week"}):m(r,t.length)},d:function(e,t,n){return"do"===t?n.ordinalNumber(e.getUTCDate(),{unit:"date"}):g.d(e,t)},D:function(e,t,n){var r=function(e){(0,a.Z)(1,arguments);var t=(0,i.Z)(e),n=t.getTime();return t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0),Math.floor((n-t.getTime())/864e5)+1}(e);return"Do"===t?n.ordinalNumber(r,{unit:"dayOfYear"}):m(r,t.length)},E:function(e,t,n){var r=e.getUTCDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){var i=e.getUTCDay(),a=(i-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(a);case"ee":return m(a,2);case"eo":return n.ordinalNumber(a,{unit:"day"});case"eee":return n.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(i,{width:"short",context:"formatting"});default:return n.day(i,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){var i=e.getUTCDay(),a=(i-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(a);case"cc":return m(a,t.length);case"co":return n.ordinalNumber(a,{unit:"day"});case"ccc":return n.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(i,{width:"narrow",context:"standalone"});case"cccccc":return n.day(i,{width:"short",context:"standalone"});default:return n.day(i,{width:"wide",context:"standalone"})}},i:function(e,t,n){var r=e.getUTCDay(),i=0===r?7:r;switch(t){case"i":return String(i);case"ii":return m(i,t.length);case"io":return n.ordinalNumber(i,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){var r=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},b:function(e,t,n){var r,i=e.getUTCHours();switch(r=12===i?E.noon:0===i?E.midnight:i/12>
1=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},B:function(e,t,n){var r,i=e.getUTCHours();switch(r=i>=17?E.evening:i>=12?E.afternoon:i>=4?E.morning:E.night,t){case"B":case"BB":case"BBB":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},h:function(e,t,n){if("ho"===t){var r=e.getUTCHours()%12;return 0===r&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return g.h(e,t)},H:function(e,t,n){return"Ho"===t?n.ordinalNumber(e.getUTCHours(),{unit:"hour"}):g.H(e,t)},K:function(e,t,n){var r=e.getUTCHours()%12;return"Ko"===t?n.ordinalNumber(r,{unit:"hour"}):m(r,t.length)},k:function(e,t,n){var r=e.getUTCHours();return(0===r&&(r=24),"ko"===t)?n.ordinalNumber(r,{unit:"hour"}):m(r,t.length)},m:function(e,t,n){return"mo"===t?n.ordinalNumber(e.getUTCMinutes(),{unit:"minute"}):g.m(e,t)},s:function(e,t,n){return"so"===t?n.ordinalNumber(e.getUTCSeconds(),{unit:"second"}):g.s(e,t)},S:function(e,t){return g.S(e,t)},X:function(e,t,n,r){var i=(r._originalDate||e).getTimezoneOffset();if(0===i)return"Z";switch(t){case"X":return x(i);case"XXXX":case"XX":return T(i);default:return T(i,":")}},x:function(e,t,n,r){var i=(r._originalDate||e).getTimezoneOffset();switch(t){case"x":return x(i);case"xxxx":case"xx":return T(i);default:return T(i,":")}},O:function(e,t,n,r){var i=(r._originalDate||e).getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+w(i,":");default:return"GMT"+T(i,":")}},z:function(e,t,n,r){var i=(r._originalDate||e).getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+w(i,":");default:return"GMT"+T(i,":")}},t:function(e,t,n,r){return m(Math.floor((r._originalDate||e).getTime()/1e3),t.length)},T:function(e,t,n,r){return m((r._originalDate||e).getTime(),t.length)}};function _(e,t){switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});default:return t.date({width:"full"})}}function C(e,t){switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});default:return t.time({width:"full"})}}var k={p:C,P:function(e,t){var n,r=e.match(/(P+)(p+)?/),i=r[1],a=r[2];if(!a)return _(e,t);switch(i){case"P":n=t.dateTime({width:"short"});break;case"PP":n=t.dateTime({width:"medium"});break;case"PPP":n=t.dateTime({width:"long"});break;default:n=t.dateTime({width:"full"})}return n.replace("{{date}}",_(i,t)).replace("{{time}}",C(a,t))}},I=n(4262),L=["D","DD"],P=["YY","YYYY"];function O(e,t,n){if("YYYY"===e)throw RangeError("Use `yyyy` instead of `YYYY` (in `".concat(t,"`) for formatting years to the input `").
1concat(n,"`; see: https://git.io/fxCyr"));if("YY"===e)throw RangeError("Use `yy` instead of `YY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://git.io/fxCyr"));if("D"===e)throw RangeError("Use `d` instead of `D` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://git.io/fxCyr"));if("DD"===e)throw RangeError("Use `dd` instead of `DD` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://git.io/fxCyr"))}var R=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,D=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,N=/^'([^]*?)'?$/,M=/''/g,j=/[a-zA-Z]/;function F(e,t,n){(0,a.Z)(2,arguments);var r=String(t),o=n||{},s=o.locale||h,l=s.options&&s.options.firstWeekContainsDate,u=null==l?1:(0,f.Z)(l),c=null==o.firstWeekContainsDate?u:(0,f.Z)(o.firstWeekContainsDate);if(!(c>=1&&c<=7))throw RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var d=s.options&&s.options.weekStartsOn,m=null==d?0:(0,f.Z)(d),g=null==o.weekStartsOn?m:(0,f.Z)(o.weekStartsOn);if(!(g>=0&&g<=6))throw RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!s.localize)throw RangeError("locale must contain localize property");if(!s.formatLong)throw RangeError("locale must contain formatLong property");var v=(0,i.Z)(e);if(!function(e){return(0,a.Z)(1,arguments),!isNaN((0,i.Z)(e))}(v))throw RangeError("Invalid time value");var y=(0,I.Z)(v),b=function(e,t){(0,a.Z)(2,arguments);var n=(0,f.Z)(t);return(0,p.Z)(e,-n)}(v,y),A={firstWeekContainsDate:c,weekStartsOn:g,locale:s,_originalDate:v};return r.match(D).map(function(e){var t=e[0];return"p"===t||"P"===t?(0,k[t])(e,s.formatLong,A):e}).join("").match(R).map(function(n){if("''"===n)return"'";var r=n[0];if("'"===r)return n.match(N)[1].replace(M,"'");var i=S[r];if(i)return o.useAdditionalWeekYearTokens||-1===P.indexOf(n)||O(n,t,e),o.useAdditionalDayOfYearTokens||-1===L.indexOf(n)||O(n,t,e),i(b,n,s.localize,A);if(r.match(j))throw RangeError("Format string contains an unescaped latin alphabet character `"+r+"`");return n}).join("")}},9119:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var r=n(9013),i=n(3882);function a(e){(0,i.Z)(1,arguments);var t=(0,r.Z)(e);return t.setHours(0,0,0,0),t}},9013:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(3882);function i(e){(0,r.Z)(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||"object"==typeof e&&"[object Date]"===t?new Date(e.getTime()):"number"==typeof e||"[object Number]"===t?new Date(e):(("string"==typeof e||"[object String]"===t)&&"undefined"!=typeof console&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://git.io/fjule"),console.warn(Error().stack)),new Date(NaN))}},9996:function(e){"use strict";var t=function(e){var t;return!!e&&"object"==typeof e&&"[object RegExp]"!==(t=Object.prototype.toString.call(e))&&"[object Date]"!==t&&e.$$typeof!==n},n="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function r(e,t){return!1!==t.clone&&t.isMergeableObject(e)?s(Array.isArray(e)?[]:{},e,t):e}function i(e,t,n){return e.concat(t).map(function(e){return r(e,n)})}function a(e){return Object.keys(e).concat(Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[])}function o(e,t){try{return t in e}catch(e){return!1}}function s(e,n,l){(l=l||{}).arrayMerge=l.arrayMerge||i,l.isMergeableObject=l.isMergeableObject||t,l.cloneUnlessOtherwiseSpecified=r;var u,c,d=Array.isArray(n);return d!==Array.isArray(e)?r(n,l):d?l.arrayMerge(e,n,l):(c={},(u=l).isMergeableObject(e)&&a(e).forEach(function(t){c[t]=r(e[t],u)}),a(n).forEach(function(t){(!o(e,t)||Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))&&(o(e,t)&&u.isMergeableObject(n[t])?c[t]=(function(e,t){if(!t.customMerge)return s;var n=t.customMerge(e);return"function"==typeof n?n:s})(t,u)(e[t],n[t],u):c[t]=r(n[t],u))}),c)}s.all=function(e,t){if(!Array.isArray(e))throw Error("first argument should be an array");return e.reduce(function(e,n){return s(e,n,t)},{})},e.exports=s},1802:function(e,t,n){"use strict";n.d(t,{K3:function(){return o},oR:function(){return a}});var r=n(7294),i=n(6644);
1function a(e){i.is.store(e)||l("expect useStore argument to be a store");let t=(0,r.useRef)(e),n=(0,r.useState)(e.getState())[1];return s(()=>(t.current===e&&n(e.getState()),t.current=e,e.updates.watch(n)),[e]),e.getState()}function o({store:e,keys:t,fn:n}){i.is.store(e)||l("useStoreMap expects a store"),Array.isArray(t)||l("useStoreMap expects an array as keys"),"function"!=typeof n&&l("useStoreMap expects a function");let o=(0,r.useMemo)(()=>(0,i.MT)(n(e.getState(),t)).on(e,(e,r)=>n(r,t)),t),u=a(o);return s(()=>()=>{o.off(e),(0,i.PO)(o,{deep:1})},t),u}let s="undefined"!=typeof window?r.useLayoutEffect:r.useEffect,l=e=>{throw Error(e)}},6644:function(e,t,n){"use strict";n.d(t,{MT:function(){return function e(t,n){function r(e,t){c.off(e),S(c).set(e,em(ek(e,c,"on",1,t)))}let a=V(t),o=V(t),l=eS("updates"),u=ey();a.after=[{type:"copy",to:o}],u&&u.plain.push(a);let c={subscribers:new Map,updates:l,defaultState:t,stateRef:a,getState(){let e=es();return z(e&&e.reg[a.id]?e.reg[a.id]:a)},setState(e){el({target:c,params:e,defer:1})},reset(...e){for(let t of e)c.on(t,()=>c.defaultState);return c},on(e,t){if(Array.isArray(e))for(let n of e)r(n,t);else r(e,t);return c},off(e){let t=S(c).get(e);return t&&(t(),S(c).delete(e)),c},map(t,n){let r,i,o;m(t)&&(r=t,i=t.name,n=t.firstState,t=t.fn);let s=c.getState(),l=ey();l?o=null:void 0!==s&&(o=t(s,n));let u=e(o,{name:k(c,i),config:r,strict:0}),d=ek(c,u,"map",0,t);return E(u).before=[{type:"map",fn:t,from:a}],l&&(l.plain.includes(a)||d.seq.includes(l.loader)||d.seq.unshift(l.loader)),u},watch(e,t){if(!t||!s(e)){let t=eA(c,e),n=ey();return n?n.watch.push({of:a,fn:e}):e(c.getState()),t}return g(t)||p("second argument should be a function"),e.watch(e=>t(c.getState(),e))}};return c.graphite=i({scope:{state:a},node:[M.defined(),U({store:a}),M.changed({store:o}),U({store:o})],child:l,meta:eT("store",c,n)}),ew&&void 0===t&&p("current state can't be undefined, use null instead"),u&&(y(c).meta.nativeTemplate=u),G(c,[l]),eg(c)}},PO:function(){return ep},is:function(){return f},yM:function(){return a}});var r=n(8123);function i({node:e=[],from:t,source:n,parent:r=t||n,to:i,target:a,child:o=i||a,scope:s={},meta:l={},family:u={type:"regular"}}={}){let c=K(r),d=K(u.links),h=K(u.owners),f=[],p={};for(let t=0;t<e.length;t++){let n=e[t];n&&(f.push(n),$(n,p))}let m={seq:f,next:K(o),meta:l,scope:s,family:{type:u.type||"crosslink",links:d,owners:h},reg:p};for(let e=0;e<d.length;e++)b(d[e]).push(m);for(let e=0;e<h.length;e++)A(h[e]).push(m);for(let e=0;e<c.length;e++)c[e].next.push(m);return m}function a(e,t){let n=(e,...t)=>n.create(e,t,t);n.graphite=i({meta:eT("event",n,t,e)}),n.create=e=>(el(n,e),e),n.watch=O(eA,n),n.map=e=>{let t,r;m(e)&&(t=e,r=e.name,e=e.fn);let i=a(k(n,r),t);return e_(n,i,"map",e),i},n.filter=e=>g(e)?(console.error(".filter(fn) is deprecated, use .filterMap instead"),o(n,e)):eC(n,"filter",e.fn,[F({fn:H})]),n.filterMap=O(o,n),n.prepend=e=>{let t=a("* → "+n.shortName,{parent:_(n)}),r=ey();return r&&y(t).seq.push(r.upward),e_(t,n,"prepend",e),ex(n,t),t};let r=ey();return r&&(y(n).meta.nativeTemplate=r),eg(n)}function o(e,t){return eC(e,"filterMap",t,[j({fn:H}),M.defined()])}let s=e=>(g(e)||m(e))&&"kind"in e,l=e=>t=>s(t)&&t.kind===e,u=l("store"),c=l("event"),d=l("effect"),h=l("domain");var f={__proto__:null,unit:s,store:u,event:c,effect:d,domain:h};let p=e=>{throw Error(e)},m=e=>"object"==typeof e&&null!==e,g=e=>"function"==typeof e,v=e=>{m(e)||g(e)||p("expect value to be an object")},y=e=>e.graphite||e,b=e=>e.family.owners,A=e=>e.family.links,E=e=>e.stateRef,w=e=>e.config,x=e=>e.ɔ,T=e=>e.value,S=e=>e.subscribers,_=e=>e.parent,C=(e,t)=>""+e.shortName+t,k=(e,t)=>null==t?C(e," → *"):t,I=()=>{let e=0;return()=>(++e).toString(36)},L=I(),P=I(),O=(e,t)=>e.bind(null,t),R=(e,t,n)=>e.bind(null,t,n),D=(e,t,n)=>({id:P(),type:e,data:n,hasRef:t}),N=({from:e="store",store:t,target:n,to:r=n?"store":"stack"})=>D("mov","store"===e,{from:e,store:t,to:r,target:n}),M={defined:()=>D("check",0,{type:"defined"}),changed:({store:e})=>D("check",1,{type:"changed",store:e})},j=R(D,"compute",0),F=R(D,"filter",0),B=R(D,"run",0),U=({store:e})=>N({from:"stack",target:e}),V=e=>({id:P(),current:e}),z=({current:e})=>e,q=(e,{fn:t},{a:n})=>t(e,n),Q=(e,{fn:t},{a:n})=>t(n,e),H=(e,{fn:t})=>t(e),G=(e,t)=>{let n=y(e);for(let e=0;e<t.length;e++){let r=y(t[e]);"domain"!==n.family.type&&(r.family.type="crosslink"),b(r).push(n),A(n).push(r)}},K=(e=[])=>{let t=[];if(Array.isArray(e))for(let n=0;n<e.length;n++)Array.isArray(e[n])?t.push(...e[n]):t.push(e[n]);else t.push(e);return t.map(y)},$=({hasRef:e,type:t,data:n},r)=>{let i;e&&(r[(i=n.store).id]=i),"mov"===t&&"store"===n.to&&(r[(i=n.target).id]=i)},W=null,Z=(e,t)=>{if(!e)return t;if(!t)return e;let n,r=e.v.type===t.v.type;return(r&&e.v.id>t.v.id||!r&&"sampler"===e.v.type)&&(n=e,e=t,t=n),n=Z(e.r,t),e.r=e.l,e.l=n,e},Y=[],X=0;for(;X<5;)Y.push({first:null,last:null,size:0}),X+=1;let J=()=>{for(let e=0;e<5;e++){let t=Y[e];
1if(t.size>0){if(2===e||3===e){t.size-=1;let e=W.v;return W=Z(W.l,W.r),e}1===t.size&&(t.last=null);let n=t.first;return t.first=n.r,t.size-=1,n.v}}},ee=(e,t,n,r,i,a)=>et(0,{a:null,b:null,node:n,parent:r,value:i,page:t,forkPage:a},e),et=(e,t,n,r=0)=>{let i=en(n),a=Y[i],o={v:{idx:e,stack:t,type:n,id:r},l:0,r:0};2===i||3===i?W=Z(W,o):(0===a.size?a.first=o:a.last.r=o,a.last=o),a.size+=1},en=e=>{switch(e){case"child":return 0;case"pure":return 1;case"barrier":return 2;case"sampler":return 3;case"effect":return 4;default:return -1}},er=new Set,ei,ea=0,eo=null,es=()=>eo,el=(e,t,n)=>{let r=eo,i=null,a=ei;if(e.target&&(t=e.params,n=e.defer,r="page"in e?e.page:r,e.stack&&(i=e.stack),a=e.forkPage||a,e=e.target),Array.isArray(e))for(let n=0;n<e.length;n++)ee("pure",r,y(e[n]),i,t[n],a);else ee("pure",r,y(e),i,t,a);n&&ea||(()=>{let e,t,n,r,i,a,o={alreadyStarted:ea,currentPage:eo,forkPage:ei};ea=1;e:for(;r=J();){let{idx:o,stack:s,type:l}=r;n=s.node,eo=i=s.page,ei=s.forkPage,a=(i||n).reg;let u={fail:0,scope:n.scope};e=t=0;for(let r=o;r<n.seq.length&&!e;r++){let c=n.seq[r],d=c.data;switch(c.type){case"barrier":{let e=d.barrierID;i&&(e=`${i.fullID}_${e}`);let t=d.priority;if(r!==o||l!==t){er.has(e)||(er.add(e),et(r,s,t,e));continue e}er.delete(e);break}case"mov":{let e;switch(d.from){case"stack":e=T(s);break;case"a":e=s.a;break;case"b":e=s.b;break;case"value":e=d.store;break;case"store":a[d.store.id]||(s.page=i=null,a=n.reg),e=z(a[d.store.id])}switch(d.to){case"stack":s.value=e;break;case"a":s.a=e;break;case"b":s.b=e;break;case"store":a[d.target.id].current=e}break}case"check":switch(d.type){case"defined":t=void 0===T(s);break;case"changed":t=T(s)===z(a[d.store.id])}break;case"filter":t=!eu(u,d,s);break;case"run":if(r!==o||"effect"!==l){et(r,s,"effect");continue e}case"compute":s.value=eu(u,d,s)}e=u.fail||t}if(!e)for(let e=0;e<n.next.length;e++)ee("child",i,n.next[e],s,T(s),s.forkPage)}ea=o.alreadyStarted,eo=o.currentPage,ei=o.forkPage})()},eu=(e,{fn:t},n)=>{try{return t(T(n),e.scope,n)}catch(t){console.error(t),e.fail=1}},ec=(e,t)=>{let n=e.indexOf(t);-1!==n&&e.splice(n,1)},ed=(e,t)=>{ec(e.next,t),ec(b(e),t),ec(A(e),t)},eh=(e,t,n)=>{let r;e.next.length=0,e.seq.length=0,e.scope=null;let i=A(e);for(;r=i.pop();)ed(r,e),(t||n&&!e.meta.sample||"crosslink"===r.family.type)&&eh(r,t,n);for(i=b(e);r=i.pop();)ed(r,e),n&&"crosslink"===r.family.type&&eh(r,t,n)},ef=e=>e.clear(),ep=(e,{deep:t}={})=>{let n=0;if(e.ownerSet&&e.ownerSet.delete(e),u(e))ef(S(e));else if(h(e)){n=1;let t=e.history;ef(t.events),ef(t.effects),ef(t.stores),ef(t.domains)}eh(y(e),!!t,n)},em=e=>{let t=R(ep,e,void 0);return t.unsubscribe=t,t},eg=e=>(ev&&G(T(ev),[e]),e),ev=null,ey=()=>ev&&ev.template,eb=(e,t,{node:n,scope:r,meta:a})=>eg(i({node:n,parent:e,child:t,scope:r,meta:a,family:{owners:[e,t],links:t}})),eA=(e,t)=>(g(t)||p(".watch argument should be a function"),em(eg(i({scope:{fn:t},node:[B({fn:H})],parent:e,meta:{op:"watch"},family:{owners:e}})))),eE=(e,t)=>(m(e)&&(eE(w(e),t),null!=e.name&&(m(e.name)?eE(e.name,t):t.name=e.name),e.loc&&(t.loc=e.loc),(e.sid||null===e.sid)&&(t.sid=e.sid),e.handler&&(t.handler=e.handler),_(e)&&(t.parent=_(e)),"strict"in e&&(t.strict=e.strict),e.named&&(t.named=e.named),eE(x(e),t)),t),ew,ex=(e,t,n="event")=>{_(e)&&_(e).hooks[n](t)},eT=(e,t,n,i)=>{let a,o,s;let l=eE({name:i,config:n},{}),u=L(),{parent:c=null,sid:d=null,strict:h=1,named:f=null}=l,p=f||l.name||("domain"===e?"":u),m=(c?(s=c.compositeName,0===p.length?(a=s.path,o=s.fullName):(a=s.path.concat([p]),o=0===s.fullName.length?p:s.fullName+"/"+p)):(a=0===p.length?[]:[p],o=p),{shortName:p,fullName:o,path:a});return t.kind=e,t.id=u,t.sid=d,t.shortName=p,t.parent=c,t.compositeName=m,t.defaultConfig=l,t.thru=e=>e(t),t.getType=()=>m.fullName,"domain"!==e&&(t.subscribe=e=>(v(e),t.watch(g(e)?e:t=>{e.next&&e.next(t)})),t[r.Z]=()=>t),ew=h,{unit:e,name:p,sid:d,named:f}},eS=e=>a({named:e}),e_=(e,t,n,r)=>eb(e,t,{scope:{fn:r},node:[j({fn:H})],meta:{op:n}}),eC=(e,t,n,r)=>{let i;m(n)&&(i=n,n=n.fn);let o=a(C(e," →? *"),i);return eb(e,o,{scope:{fn:n},node:r,meta:{op:t}}),o},ek=(e,t,n,r,i)=>{let a=E(t),o=[N({store:a,to:"a"}),j({fn:r?Q:q}),M.defined(),M.changed({store:a}),U({store:a})],s=ey();if(s&&(o.unshift(s.loader),o.push(s.upward),u(e))){let t=E(e);s.plain.includes(t)||(s.closure.includes(t)||s.closure.push(t),a.before||(a.before=[]),a.before.push({type:"closure",of:t}))}return eb(e,t,{scope:{fn:i},node:o,meta:{op:n}})};
1i({node:[B({fn({fn:e,value:t}){e(t)}})],meta:{op:"fx",fx:"sidechain"}}),F({fn:(e,{state:t})=>void 0!==e&&e!==z(t)}),j({fn:e=>e})},5822:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.GraphQLError=s,t.printError=l;var r,i=(r=n(5690))&&r.__esModule?r:{default:r},a=n(9016),o=n(8038);function s(e,t,n,r,o,l,u){var c,d=Array.isArray(t)?0!==t.length?t:void 0:t?[t]:void 0,h=n;if(!h&&d){var f=d[0];h=f&&f.loc&&f.loc.source}var p=r;!p&&d&&(p=d.reduce(function(e,t){return t.loc&&e.push(t.loc.start),e},[])),p&&0===p.length&&(p=void 0),r&&n?c=r.map(function(e){return(0,a.getLocation)(n,e)}):d&&(c=d.reduce(function(e,t){return t.loc&&e.push((0,a.getLocation)(t.loc.source,t.loc.start)),e},[]));var m=u;if(null==m&&null!=l){var g=l.extensions;(0,i.default)(g)&&(m=g)}Object.defineProperties(this,{message:{value:e,enumerable:!0,writable:!0},locations:{value:c||void 0,enumerable:!!c},path:{value:o||void 0,enumerable:!!o},nodes:{value:d||void 0},source:{value:h||void 0},positions:{value:p||void 0},originalError:{value:l},extensions:{value:m||void 0,enumerable:!!m}}),l&&l.stack?Object.defineProperty(this,"stack",{value:l.stack,writable:!0,configurable:!0}):Error.captureStackTrace?Error.captureStackTrace(this,s):Object.defineProperty(this,"stack",{value:Error().stack,writable:!0,configurable:!0})}function l(e){var t=e.message;if(e.nodes)for(var n=0,r=e.nodes;n<r.length;n++){var i=r[n];i.loc&&(t+="\n\n"+(0,o.printLocation)(i.loc))}else if(e.source&&e.locations)for(var a=0,s=e.locations;a<s.length;a++){var l=s[a];t+="\n\n"+(0,o.printSourceLocation)(e.source,l)}return t}s.prototype=Object.create(Error.prototype,{constructor:{value:s},name:{value:"GraphQLError"},toString:{value:function(){return l(this)}}})},338:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.syntaxError=function(e,t,n){return new r.GraphQLError("Syntax Error: ".concat(n),void 0,e,[t])};var r=n(5822)},9503:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.prototype.toString;e.prototype.toJSON=t,e.prototype.inspect=t,i.default&&(e.prototype[i.default]=t)};var r,i=(r=n(8554))&&r.__esModule?r:{default:r}},3320:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){"function"==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e.prototype,Symbol.toStringTag,{get:function(){return this.constructor.name}})}},7242:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if(!e)throw Error(t)}},3317:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return e}},8002:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return function e(t,n){switch(a(t)){case"string":return JSON.stringify(t);case"function":return t.name?"[function ".concat(t.name,"]"):"[function]";case"object":if(null===t)return"null";return function(t,n){if(-1!==n.indexOf(t))return"[Circular]";var r,a,o=[].concat(n,[t]),s="function"==typeof(r=t[String(i.default)])?r:"function"==typeof t.inspect?t.inspect:void 0;if(void 0!==s){var l=s.call(t);if(l!==t)return"string"==typeof l?l:e(l,o)}else if(Array.isArray(t))return function(t,n){if(0===t.length)return"[]";if(n.length>2)return"[Array]";for(var r=Math.min(10,t.length),i=t.length-r,a=[],o=0;o<r;++o)a.push(e(t[o],n));return 1===i?a.push("... 1 more item"):i>1&&a.push("... ".concat(i," more items")),"["+a.join(", ")+"]"}(t,o);return 0===(a=Object.keys(t)).length?"{}":o.length>2?"["+function(e){var t=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]$/,"");if("Object"===t&&"function"==typeof e.constructor){var n=e.constructor.name;if("string"==typeof n&&""!==n)return n}return t}(t)+"]":"{ "+a.map(function(n){var r=e(t[n],o);return n+": "+r}).join(", ")+" }"}(t,n);default:return String(t)}}(e,[])};var r,i=(r=n(8554))&&r.__esModule?r:{default:r};function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}},5752:function(e,t){"use strict";
1Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default=function(e,t){return e instanceof t}},7706:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if(!e)throw Error(t||"Unexpected invariant triggered")}},9573:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return void 0===e||e!=e}},8290:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return null==e||e!=e}},5690:function(e,t){"use strict";function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return"object"==n(e)&&null!==e}},2863:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return e.reduce(function(e,n){return e[t(n)]=n,e},Object.create(null))}},7154:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){return e.reduce(function(e,r){return e[t(r)]=n(r),e},Object.create(null))}},6124:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){for(var n=Object.create(null),r=0,a=(0,i.default)(e);r<a.length;r++){var o=a[r],s=o[0],l=o[1];n[s]=t(l,s)}return n};var r,i=(r=n(5172))&&r.__esModule?r:{default:r}},8554:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):void 0;t.default=n},7690:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){if(null===Object.getPrototypeOf(e))return e;for(var t=Object.create(null),n=0,r=(0,i.default)(e);n<r.length;n++){var a=r[n],o=a[0],s=a[1];t[o]=s}return t};var r,i=(r=n(5172))&&r.__esModule?r:{default:r}},849:function(e,t){"use strict";function n(e){for(var t=null,n=1;n<e.length;n++){var i=e[n],a=r(i);if(a!==i.length&&(null===t||a<t)&&0===(t=a))break}return null===t?0:t}function r(e){for(var t=0;t<e.length&&(" "===e[t]||"	"===e[t]);)t++;return t}function i(e){return r(e)===e.length}Object.defineProperty(t,"__esModule",{value:!0}),t.dedentBlockStringValue=function(e){var t=e.split(/\r\n|[\n\r]/g),r=n(t);if(0!==r)for(var a=1;a<t.length;a++)t[a]=t[a].slice(r);for(;t.length>0&&i(t[0]);)t.shift();for(;t.length>0&&i(t[t.length-1]);)t.pop();return t.join("\n")},t.getBlockStringIndentation=n,t.printBlockString=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=-1===e.indexOf("\n"),i=" "===e[0]||"	"===e[0],a='"'===e[e.length-1],o=!r||a||n,s="";return o&&!(r&&i)&&(s+="\n"+t),s+=t?e.replace(/\n/g,"\n"+t):e,o&&(s+="\n"),'"""'+s.replace(/"""/g,'\\"""')+'"""'}},8333:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DirectiveLocation=void 0;var n=Object.freeze({QUERY:"QUERY",MUTATION:"MUTATION",SUBSCRIPTION:"SUBSCRIPTION",FIELD:"FIELD",FRAGMENT_DEFINITION:"FRAGMENT_DEFINITION",FRAGMENT_SPREAD:"FRAGMENT_SPREAD",INLINE_FRAGMENT:"INLINE_FRAGMENT",VARIABLE_DEFINITION:"VARIABLE_DEFINITION",SCHEMA:"SCHEMA",SCALAR:"SCALAR",OBJECT:"OBJECT",FIELD_DEFINITION:"FIELD_DEFINITION",ARGUMENT_DEFINITION:"ARGUMENT_DEFINITION",INTERFACE:"INTERFACE",UNION:"UNION",ENUM:"ENUM",ENUM_VALUE:"ENUM_VALUE",INPUT_OBJECT:"INPUT_OBJECT",INPUT_FIELD_DEFINITION:"INPUT_FIELD_DEFINITION"});t.DirectiveLocation=n},2178:function(e,t,n){"use strict";Object.defineProperty(t,"Qc",{enumerable:!0,get:function(){return r.parse}}),Object.defineProperty(t,"S0",{enumerable:!0,get:function(){return i.print}}),Object.defineProperty(t,"Vn",{enumerable:!0,get:function(){return a.visit}}),Object.defineProperty(t,"$_",{enumerable:!0,get:function(){return a.BREAK}}),n(2412),n(9016),n(8038),n(2828),n(3175),n(4274);var r=n(8370),i=n(3033),a=n(285);n(1352),n(8333)},2828:function(e,t){"use strict";
1Object.defineProperty(t,"__esModule",{value:!0}),t.Kind=void 0;var n=Object.freeze({NAME:"Name",DOCUMENT:"Document",OPERATION_DEFINITION:"OperationDefinition",VARIABLE_DEFINITION:"VariableDefinition",SELECTION_SET:"SelectionSet",FIELD:"Field",ARGUMENT:"Argument",FRAGMENT_SPREAD:"FragmentSpread",INLINE_FRAGMENT:"InlineFragment",FRAGMENT_DEFINITION:"FragmentDefinition",VARIABLE:"Variable",INT:"IntValue",FLOAT:"FloatValue",STRING:"StringValue",BOOLEAN:"BooleanValue",NULL:"NullValue",ENUM:"EnumValue",LIST:"ListValue",OBJECT:"ObjectValue",OBJECT_FIELD:"ObjectField",DIRECTIVE:"Directive",NAMED_TYPE:"NamedType",LIST_TYPE:"ListType",NON_NULL_TYPE:"NonNullType",SCHEMA_DEFINITION:"SchemaDefinition",OPERATION_TYPE_DEFINITION:"OperationTypeDefinition",SCALAR_TYPE_DEFINITION:"ScalarTypeDefinition",OBJECT_TYPE_DEFINITION:"ObjectTypeDefinition",FIELD_DEFINITION:"FieldDefinition",INPUT_VALUE_DEFINITION:"InputValueDefinition",INTERFACE_TYPE_DEFINITION:"InterfaceTypeDefinition",UNION_TYPE_DEFINITION:"UnionTypeDefinition",ENUM_TYPE_DEFINITION:"EnumTypeDefinition",ENUM_VALUE_DEFINITION:"EnumValueDefinition",INPUT_OBJECT_TYPE_DEFINITION:"InputObjectTypeDefinition",DIRECTIVE_DEFINITION:"DirectiveDefinition",SCHEMA_EXTENSION:"SchemaExtension",SCALAR_TYPE_EXTENSION:"ScalarTypeExtension",OBJECT_TYPE_EXTENSION:"ObjectTypeExtension",INTERFACE_TYPE_EXTENSION:"InterfaceTypeExtension",UNION_TYPE_EXTENSION:"UnionTypeExtension",ENUM_TYPE_EXTENSION:"EnumTypeExtension",INPUT_OBJECT_TYPE_EXTENSION:"InputObjectTypeExtension"});t.Kind=n},4274:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createLexer=function(e,t){var n=new c(s.TokenKind.SOF,0,0,0,0,null);return{source:e,options:t,lastToken:n,token:n,line:1,lineStart:0,advance:l,lookahead:u}},t.isPunctuatorToken=function(e){var t=e.kind;return t===s.TokenKind.BANG||t===s.TokenKind.DOLLAR||t===s.TokenKind.AMP||t===s.TokenKind.PAREN_L||t===s.TokenKind.PAREN_R||t===s.TokenKind.SPREAD||t===s.TokenKind.COLON||t===s.TokenKind.EQUALS||t===s.TokenKind.AT||t===s.TokenKind.BRACKET_L||t===s.TokenKind.BRACKET_R||t===s.TokenKind.BRACE_L||t===s.TokenKind.PIPE||t===s.TokenKind.BRACE_R};var r,i=(r=n(9503))&&r.__esModule?r:{default:r},a=n(338),o=n(849),s=n(3175);function l(){return this.lastToken=this.token,this.token=this.lookahead()}function u(){var e=this.token;if(e.kind!==s.TokenKind.EOF)do e=e.next||(e.next=function(e,t){var n=e.source,r=n.body,i=r.length,l=function(e,t,n){for(var r=e.length,i=t;i<r;){var a=e.charCodeAt(i);if(9===a||32===a||44===a||65279===a)++i;else if(10===a)++i,++n.line,n.lineStart=i;else if(13===a)10===e.charCodeAt(i+1)?i+=2:++i,++n.line,n.lineStart=i;else break}return i}(r,t.end,e),u=e.line,p=1+l-e.lineStart;if(l>=i)return new c(s.TokenKind.EOF,i,i,u,p,t);var m=r.charCodeAt(l);switch(m){case 33:return new c(s.TokenKind.BANG,l,l+1,u,p,t);case 35:return function(e,t,n,r,i){var a,o=e.body,l=t;do a=o.charCodeAt(++l);while(!isNaN(a)&&(a>31||9===a));return new c(s.TokenKind.COMMENT,t,l,n,r,i,o.slice(t+1,l))}(n,l,u,p,t);case 36:return new c(s.TokenKind.DOLLAR,l,l+1,u,p,t);case 38:return new c(s.TokenKind.AMP,l,l+1,u,p,t);case 40:return new c(s.TokenKind.PAREN_L,l,l+1,u,p,t);case 41:return new c(s.TokenKind.PAREN_R,l,l+1,u,p,t);case 46:if(46===r.charCodeAt(l+1)&&46===r.charCodeAt(l+2))return new c(s.TokenKind.SPREAD,l,l+3,u,p,t);break;case 58:return new c(s.TokenKind.COLON,l,l+1,u,p,t);case 61:return new c(s.TokenKind.EQUALS,l,l+1,u,p,t);case 64:return new c(s.TokenKind.AT,l,l+1,u,p,t);case 91:return new c(s.TokenKind.BRACKET_L,l,l+1,u,p,t);case 93:return new c(s.TokenKind.BRACKET_R,l,l+1,u,p,t);case 123:return new c(s.TokenKind.BRACE_L,l,l+1,u,p,t);case 124:return new c(s.TokenKind.PIPE,l,l+1,u,p,t);case 125:return new c(s.TokenKind.BRACE_R,l,l+1,u,p,t);
1case 65:case 66:case 67:case 68:case 69:case 70:case 71:case 72:case 73:case 74:case 75:case 76:case 77:case 78:case 79:case 80:case 81:case 82:case 83:case 84:case 85:case 86:case 87:case 88:case 89:case 90:case 95:case 97:case 98:case 99:case 100:case 101:case 102:case 103:case 104:case 105:case 106:case 107:case 108:case 109:case 110:case 111:case 112:case 113:case 114:case 115:case 116:case 117:case 118:case 119:case 120:case 121:case 122:return function(e,t,n,r,i){for(var a=e.body,o=a.length,l=t+1,u=0;l!==o&&!isNaN(u=a.charCodeAt(l))&&(95===u||u>=48&&u<=57||u>=65&&u<=90||u>=97&&u<=122);)++l;return new c(s.TokenKind.NAME,t,l,n,r,i,a.slice(t,l))}(n,l,u,p,t);case 45:case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return function(e,t,n,r,i,o){var l=e.body,u=n,f=t,p=!1;if(45===u&&(u=l.charCodeAt(++f)),48===u){if((u=l.charCodeAt(++f))>=48&&u<=57)throw(0,a.syntaxError)(e,f,"Invalid number, unexpected digit after 0: ".concat(d(u),"."))}else f=h(e,f,u),u=l.charCodeAt(f);if(46===u&&(p=!0,u=l.charCodeAt(++f),f=h(e,f,u),u=l.charCodeAt(f)),(69===u||101===u)&&(p=!0,(43===(u=l.charCodeAt(++f))||45===u)&&(u=l.charCodeAt(++f)),f=h(e,f,u),u=l.charCodeAt(f)),46===u||69===u||101===u)throw(0,a.syntaxError)(e,f,"Invalid number, expected digit but got: ".concat(d(u),"."));return new c(p?s.TokenKind.FLOAT:s.TokenKind.INT,t,f,r,i,o,l.slice(t,f))}(n,l,m,u,p,t);case 34:if(34===r.charCodeAt(l+1)&&34===r.charCodeAt(l+2))return function(e,t,n,r,i,l){for(var u=e.body,h=t+3,f=h,p=0,m="";h<u.length&&!isNaN(p=u.charCodeAt(h));){if(34===p&&34===u.charCodeAt(h+1)&&34===u.charCodeAt(h+2))return m+=u.slice(f,h),new c(s.TokenKind.BLOCK_STRING,t,h+3,n,r,i,(0,o.dedentBlockStringValue)(m));if(p<32&&9!==p&&10!==p&&13!==p)throw(0,a.syntaxError)(e,h,"Invalid character within String: ".concat(d(p),"."));10===p?(++h,++l.line,l.lineStart=h):13===p?(10===u.charCodeAt(h+1)?h+=2:++h,++l.line,l.lineStart=h):92===p&&34===u.charCodeAt(h+1)&&34===u.charCodeAt(h+2)&&34===u.charCodeAt(h+3)?(m+=u.slice(f,h)+'"""',h+=4,f=h):++h}throw(0,a.syntaxError)(e,h,"Unterminated string.")}(n,l,u,p,t,e);return function(e,t,n,r,i){for(var o=e.body,l=t+1,u=l,h=0,p="";l<o.length&&!isNaN(h=o.charCodeAt(l))&&10!==h&&13!==h;){if(34===h)return p+=o.slice(u,l),new c(s.TokenKind.STRING,t,l+1,n,r,i,p);if(h<32&&9!==h)throw(0,a.syntaxError)(e,l,"Invalid character within String: ".concat(d(h),"."));if(++l,92===h){switch(p+=o.slice(u,l-1),h=o.charCodeAt(l)){case 34:p+='"';break;case 47:p+="/";break;case 92:p+="\\";break;case 98:p+="\b";break;case 102:p+="\f";break;case 110:p+="\n";break;case 114:p+="\r";break;case 116:p+="	";break;case 117:var m,g,v,y,b=(m=o.charCodeAt(l+1),g=o.charCodeAt(l+2),v=o.charCodeAt(l+3),y=o.charCodeAt(l+4),f(m)<<12|f(g)<<8|f(v)<<4|f(y));if(b<0){var A=o.slice(l+1,l+5);throw(0,a.syntaxError)(e,l,"Invalid character escape sequence: \\u".concat(A,"."))}p+=String.fromCharCode(b),l+=4;break;default:throw(0,a.syntaxError)(e,l,"Invalid character escape sequence: \\".concat(String.fromCharCode(h),"."))}u=++l}}throw(0,a.syntaxError)(e,l,"Unterminated string.")}(n,l,u,p,t)}throw(0,a.syntaxError)(n,l,m<32&&9!==m&&10!==m&&13!==m?"Cannot contain the invalid character ".concat(d(m),"."):39===m?"Unexpected single quote character ('), did you mean to use a double quote (\")?":"Cannot parse the unexpected character ".concat(d(m),"."))}(this,e));while(e.kind===s.TokenKind.COMMENT);return e}function c(e,t,n,r,i,a,o){this.kind=e,this.start=t,this.end=n,this.line=r,this.column=i,this.value=o,this.prev=a,this.next=null}function d(e){return isNaN(e)?s.TokenKind.EOF:e<127?JSON.stringify(String.fromCharCode(e)):'"\\u'.concat(("00"+e.toString(16).toUpperCase()).slice(-4),'"')}function h(e,t,n){var r=e.body,i=t,o=n;if(o>=48&&o<=57){do o=r.charCodeAt(++i);while(o>=48&&o<=57);return i}throw(0,a.syntaxError)(e,i,"Invalid number, expected digit but got: ".concat(d(o),"."))}function f(e){return e>=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}(0,i.default)(c,function(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}})},9016:function(e,t){"use strict";
vendor: 16,967 bytes, line 1
1Object.defineProperty(t,"__esModule",{value:!0}),t.getLocation=function(e,t){for(var n,r=/\r\n|[\n\r]/g,i=1,a=t+1;(n=r.exec(e.body))&&n.index<t;)i+=1,a=t+1-(n.index+n[0].length);return{line:i,column:a}}},8370:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parse=function(e,t){return new f(e,t).parseDocument()},t.parseValue=function(e,t){var n=new f(e,t);n.expectToken(d.TokenKind.SOF);var r=n.parseValueLiteral(!1);return n.expectToken(d.TokenKind.EOF),r},t.parseType=function(e,t){var n=new f(e,t);n.expectToken(d.TokenKind.SOF);var r=n.parseTypeReference();return n.expectToken(d.TokenKind.EOF),r};var r=h(n(8002)),i=h(n(7242)),a=h(n(9503)),o=n(338),s=n(2828),l=n(2412),u=n(4274),c=n(8333),d=n(3175);function h(e){return e&&e.__esModule?e:{default:e}}var f=function(){function e(e,t){var n="string"==typeof e?new l.Source(e):e;n instanceof l.Source||(0,i.default)(0,"Must provide Source. Received: ".concat((0,r.default)(n))),this._lexer=(0,u.createLexer)(n),this._options=t||{}}var t=e.prototype;return t.parseName=function(){var e=this.expectToken(d.TokenKind.NAME);return{kind:s.Kind.NAME,value:e.value,loc:this.loc(e)}},t.parseDocument=function(){var e=this._lexer.token;return{kind:s.Kind.DOCUMENT,definitions:this.many(d.TokenKind.SOF,this.parseDefinition,d.TokenKind.EOF),loc:this.loc(e)}},t.parseDefinition=function(){if(this.peek(d.TokenKind.NAME))switch(this._lexer.token.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition();case"schema":case"scalar":case"type":case"interface":case"union":case"enum":case"input":case"directive":return this.parseTypeSystemDefinition();case"extend":return this.parseTypeSystemExtension()}else if(this.peek(d.TokenKind.BRACE_L))return this.parseOperationDefinition();else if(this.peekDescription())return this.parseTypeSystemDefinition();throw this.unexpected()},t.parseOperationDefinition=function(){var e,t=this._lexer.token;if(this.peek(d.TokenKind.BRACE_L))return{kind:s.Kind.OPERATION_DEFINITION,operation:"query",name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet(),loc:this.loc(t)};var n=this.parseOperationType();return this.peek(d.TokenKind.NAME)&&(e=this.parseName()),{kind:s.Kind.OPERATION_DEFINITION,operation:n,name:e,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(t)}},t.parseOperationType=function(){var e=this.expectToken(d.TokenKind.NAME);switch(e.value){case"query":return"query";case"mutation":return"mutation";case"subscription":return"subscription"}throw this.unexpected(e)},t.parseVariableDefinitions=function(){return this.optionalMany(d.TokenKind.PAREN_L,this.parseVariableDefinition,d.TokenKind.PAREN_R)},t.parseVariableDefinition=function(){var e=this._lexer.token;return{kind:s.Kind.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(d.TokenKind.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(d.TokenKind.EQUALS)?this.parseValueLiteral(!0):void 0,directives:this.parseDirectives(!0),loc:this.loc(e)}},t.parseVariable=function(){var e=this._lexer.token;return this.expectToken(d.TokenKind.DOLLAR),{kind:s.Kind.VARIABLE,name:this.parseName(),loc:this.loc(e)}},t.parseSelectionSet=function(){var e=this._lexer.token;return{kind:s.Kind.SELECTION_SET,selections:this.many(d.TokenKind.BRACE_L,this.parseSelection,d.TokenKind.BRACE_R),loc:this.loc(e)}},t.parseSelection=function(){return this.peek(d.TokenKind.SPREAD)?this.parseFragment():this.parseField()},t.parseField=function(){var e,t,n=this._lexer.token,r=this.parseName();return this.expectOptionalToken(d.TokenKind.COLON)?(e=r,t=this.parseName()):t=r,{kind:s.Kind.FIELD,alias:e,name:t,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(d.TokenKind.BRACE_L)?this.parseSelectionSet():void 0,loc:this.loc(n)}},t.parseArguments=function(e){var t=e?this.parseConstArgument:this.parseArgument;return this.optionalMany(d.TokenKind.PAREN_L,t,d.TokenKind.PAREN_R)},t.parseArgument=function(){var e=this._lexer.token,t=this.parseName();return this.expectToken(d.TokenKind.COLON),{kind:s.Kind.ARGUMENT,name:t,value:this.parseValueLiteral(!1),loc:this.loc(e)}},t.parseConstArgument=function(){var e=this._lexer.token;return{kind:s.Kind.ARGUMENT,name:this.parseName(),value:(this.expectToken(d.TokenKind.COLON),this.parseValueLiteral(!0)),loc:this.loc(e)}},t.parseFragment=function(){var e=this._lexer.token;this.expectToken(d.TokenKind.SPREAD);var t=this.expectOptionalKeyword("on");return!t&&this.peek(d.TokenKind.NAME)?{kind:s.Kind.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1),loc:this.loc(e)}:{kind:s.Kind.INLINE_FRAGMENT,typeCondition:t?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(e)}},t.parseFragmentDefinition=function(){var e=this._lexer.token;return(this.expectKeyword("fragment"),this._options.experimentalFragmentVariables)?{kind:s.Kind.FRAGMENT_DEFINITION,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(e)}:{kind:s.Kind.FRAGMENT_DEFINITION,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(e)}},t.parseFragmentName=function(){if("on"===this._lexer.token.value)throw this.unexpected();return this.parseName()},t.parseValueLiteral=function(e){var t=this._lexer.token;switch(t.kind){case d.TokenKind.BRACKET_L:return this.parseList(e);case d.TokenKind.BRACE_L:return this.parseObject(e);case d.TokenKind.INT:return this._lexer.advance(),{kind:s.Kind.INT,value:t.value,loc:this.loc(t)};case d.TokenKind.FLOAT:return this._lexer.advance(),{kind:s.Kind.FLOAT,value:t.value,loc:this.loc(t)};case d.TokenKind.STRING:case d.TokenKind.BLOCK_STRING:return this.parseStringLiteral();case d.TokenKind.NAME:if("true"===t.value||"false"===t.value)return this._lexer.advance(),{kind:s.Kind.BOOLEAN,value:"true"===t.value,loc:this.loc(t)};if("null"===t.value)return this._lexer.advance(),{kind:s.Kind.NULL,loc:this.loc(t)};return this._lexer.advance(),{kind:s.Kind.ENUM,value:t.value,loc:this.loc(t)};case d.TokenKind.DOLLAR:if(!e)return this.parseVariable()}throw this.unexpected()},t.parseStringLiteral=function(){var e=this._lexer.token;return this._lexer.advance(),{kind:s.Kind.STRING,value:e.value,block:e.kind===d.TokenKind.BLOCK_STRING,loc:this.loc(e)}},t.parseList=function(e){var t=this,n=this._lexer.token;return{kind:s.Kind.LIST,values:this.any(d.TokenKind.BRACKET_L,function(){return t.parseValueLiteral(e)},d.TokenKind.BRACKET_R),loc:this.loc(n)}},t.parseObject=function(e){var t=this,n=this._lexer.token;return{kind:s.Kind.OBJECT,fields:this.any(d.TokenKind.BRACE_L,function(){return t.parseObjectField(e)},d.TokenKind.BRACE_R),loc:this.loc(n)}},t.parseObjectField=function(e){var t=this._lexer.token,n=this.parseName();return this.expectToken(d.TokenKind.COLON),{kind:s.Kind.OBJECT_FIELD,name:n,value:this.parseValueLiteral(e),loc:this.loc(t)}},t.parseDirectives=function(e){for(var t=[];this.peek(d.TokenKind.AT);)t.push(this.parseDirective(e));return t},t.parseDirective=function(e){var t=this._lexer.token;return this.expectToken(d.TokenKind.AT),{kind:s.Kind.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(e),loc:this.loc(t)}},t.parseTypeReference=function(){var e,t=this._lexer.token;return(this.expectOptionalToken(d.TokenKind.BRACKET_L)?(e=this.parseTypeReference(),this.expectToken(d.TokenKind.BRACKET_R),e={kind:s.Kind.LIST_TYPE,type:e,loc:this.loc(t)}):e=this.parseNamedType(),this.expectOptionalToken(d.TokenKind.BANG))?{kind:s.Kind.NON_NULL_TYPE,type:e,loc:this.loc(t)}:e},t.parseNamedType=function(){var e=this._lexer.token;return{kind:s.Kind.NAMED_TYPE,name:this.parseName(),loc:this.loc(e)}},t.parseTypeSystemDefinition=function(){var e=this.peekDescription()?this._lexer.lookahead():this._lexer.token;if(e.kind===d.TokenKind.NAME)switch(e.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()}throw this.unexpected(e)},t.peekDescription=function(){return this.peek(d.TokenKind.STRING)||this.peek(d.TokenKind.BLOCK_STRING)},t.parseDescription=function(){if(this.peekDescription())return this.parseStringLiteral()},t.parseSchemaDefinition=function(){var e=this._lexer.token;this.expectKeyword("schema");var t=this.parseDirectives(!0),n=this.many(d.TokenKind.BRACE_L,this.parseOperationTypeDefinition,d.TokenKind.BRACE_R);return{kind:s.Kind.SCHEMA_DEFINITION,directives:t,operationTypes:n,loc:this.loc(e)}},t.parseOperationTypeDefinition=function(){var e=this._lexer.token,t=this.parseOperationType();this.expectToken(d.TokenKind.COLON);var n=this.parseNamedType();return{kind:s.Kind.OPERATION_TYPE_DEFINITION,operation:t,type:n,loc:this.loc(e)}},t.parseScalarTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("scalar");var n=this.parseName(),r=this.parseDirectives(!0);return{kind:s.Kind.SCALAR_TYPE_DEFINITION,description:t,name:n,directives:r,loc:this.loc(e)}},t.parseObjectTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("type");var n=this.parseName(),r=this.parseImplementsInterfaces(),i=this.parseDirectives(!0),a=this.parseFieldsDefinition();return{kind:s.Kind.OBJECT_TYPE_DEFINITION,description:t,name:n,interfaces:r,directives:i,fields:a,loc:this.loc(e)}},t.parseImplementsInterfaces=function(){var e=[];if(this.expectOptionalKeyword("implements")){this.expectOptionalToken(d.TokenKind.AMP);do e.push(this.parseNamedType());while(this.expectOptionalToken(d.TokenKind.AMP)||this._options.allowLegacySDLImplementsInterfaces&&this.peek(d.TokenKind.NAME))}return e},t.parseFieldsDefinition=function(){return this._options.allowLegacySDLEmptyFields&&this.peek(d.TokenKind.BRACE_L)&&this._lexer.lookahead().kind===d.TokenKind.BRACE_R?(this._lexer.advance(),this._lexer.advance(),[]):this.optionalMany(d.TokenKind.BRACE_L,this.parseFieldDefinition,d.TokenKind.BRACE_R)},t.parseFieldDefinition=function(){var e=this._lexer.token,t=this.parseDescription(),n=this.parseName(),r=this.parseArgumentDefs();this.expectToken(d.TokenKind.COLON);var i=this.parseTypeReference(),a=this.parseDirectives(!0);return{kind:s.Kind.FIELD_DEFINITION,description:t,name:n,arguments:r,type:i,directives:a,loc:this.loc(e)}},t.parseArgumentDefs=function(){return this.optionalMany(d.TokenKind.PAREN_L,this.parseInputValueDef,d.TokenKind.PAREN_R)},t.parseInputValueDef=function(){var e,t=this._lexer.token,n=this.parseDescription(),r=this.parseName();this.expectToken(d.TokenKind.COLON);var i=this.parseTypeReference();this.expectOptionalToken(d.TokenKind.EQUALS)&&(e=this.parseValueLiteral(!0));var a=this.parseDirectives(!0);return{kind:s.Kind.INPUT_VALUE_DEFINITION,description:n,name:r,type:i,defaultValue:e,directives:a,loc:this.loc(t)}},t.parseInterfaceTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("interface");var n=this.parseName(),r=this.parseDirectives(!0),i=this.parseFieldsDefinition();return{kind:s.Kind.INTERFACE_TYPE_DEFINITION,description:t,name:n,directives:r,fields:i,loc:this.loc(e)}},t.parseUnionTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("union");var n=this.parseName(),r=this.parseDirectives(!0),i=this.parseUnionMemberTypes();return{kind:s.Kind.UNION_TYPE_DEFINITION,description:t,name:n,directives:r,types:i,loc:this.loc(e)}},t.parseUnionMemberTypes=function(){var e=[];if(this.expectOptionalToken(d.TokenKind.EQUALS)){this.expectOptionalToken(d.TokenKind.PIPE);do e.push(this.parseNamedType());while(this.expectOptionalToken(d.TokenKind.PIPE))}return e},t.parseEnumTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("enum");var n=this.parseName(),r=this.parseDirectives(!0),i=this.parseEnumValuesDefinition();return{kind:s.Kind.ENUM_TYPE_DEFINITION,description:t,name:n,directives:r,values:i,loc:this.loc(e)}},t.parseEnumValuesDefinition=function(){return this.optionalMany(d.TokenKind.BRACE_L,this.parseEnumValueDefinition,d.TokenKind.BRACE_R)},t.parseEnumValueDefinition=function(){var e=this._lexer.token,t=this.parseDescription(),n=this.parseName(),r=this.parseDirectives(!0);return{kind:s.Kind.ENUM_VALUE_DEFINITION,description:t,name:n,directives:r,loc:this.loc(e)}},t.parseInputObjectTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("input");var n=this.parseName(),r=this.parseDirectives(!0),i=this.parseInputFieldsDefinition();return{kind:s.Kind.INPUT_OBJECT_TYPE_DEFINITION,description:t,name:n,directives:r,fields:i,loc:this.loc(e)}},t.parseInputFieldsDefinition=function(){return this.optionalMany(d.TokenKind.BRACE_L,this.parseInputValueDef,d.TokenKind.BRACE_R)},t.parseTypeSystemExtension=function(){var e=this._lexer.lookahead();if(e.kind===d.TokenKind.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)},t.parseSchemaExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");var t=this.parseDirectives(!0),n=this.optionalMany(d.TokenKind.BRACE_L,this.parseOperationTypeDefinition,d.TokenKind.BRACE_R);if(0===t.length&&0===n.length)throw this.unexpected();return{kind:s.Kind.SCHEMA_EXTENSION,directives:t,operationTypes:n,loc:this.loc(e)}},t.parseScalarTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");var t=this.parseName(),n=this.parseDirectives(!0);if(0===n.length)throw this.unexpected();return{kind:s.Kind.SCALAR_TYPE_EXTENSION,name:t,directives:n,loc:this.loc(e)}},t.parseObjectTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");var t=this.parseName(),n=this.parseImplementsInterfaces(),r=this.parseDirectives(!0),i=this.parseFieldsDefinition();if(0===n.length&&0===r.length&&0===i.length)throw this.unexpected();return{kind:s.Kind.OBJECT_TYPE_EXTENSION,name:t,interfaces:n,directives:r,fields:i,loc:this.loc(e)}},t.parseInterfaceTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");var t=this.parseName(),n=this.parseDirectives(!0),r=this.parseFieldsDefinition();if(0===n.length&&0===r.length)throw this.unexpected();return{kind:s.Kind.INTERFACE_TYPE_EXTENSION,name:t,directives:n,fields:r,loc:this.loc(e)}},t.parseUnionTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");var t=this.parseName(),n=this.parseDirectives(!0),r=this.parseUnionMemberTypes();if(0===n.length&&0===r.length)throw this.unexpected();return{kind:s.Kind.UNION_TYPE_EXTENSION,name:t,directives:n,types:r,loc:this.loc(e)}},t.parseEnumTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");var t=this.parseName(),n=this.parseDirectives(!0),r=this.parseEnumValuesDefinition();if(0===n.length&&0===r.length)throw this.unexpected();return{kind:s.Kind.ENUM_TYPE_EXTENSION,name:t,directives:n,values:r,loc:this.loc(e)}},t.parseInputObjectTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");var t=this.parseName(),n=this.parseDirectives(!0),r=this.parseInputFieldsDefinition();if(0===n.length&&0===r.length)throw this.unexpected();return{kind:s.Kind.INPUT_OBJECT_TYPE_EXTENSION,name:t,directives:n,fields:r,loc:this.loc(e)}},t.parseDirectiveDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("directive"),this.expectToken(d.TokenKind.AT);var n=this.parseName(),r=this.parseArgumentDefs(),i=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");var a=this.parseDirectiveLocations();return{kind:s.Kind.DIRECTIVE_DEFINITION,description:t,name:n,arguments:r,repeatable:i,locations:a,loc:this.loc(e)}},t.parseDirectiveLocations=function(){this.expectOptionalToken(d.TokenKind.PIPE);var e=[];do e.push(this.parseDirectiveLocation());
1while(this.expectOptionalToken(d.TokenKind.PIPE));return e},t.parseDirectiveLocation=function(){var e=this._lexer.token,t=this.parseName();if(void 0!==c.DirectiveLocation[t.value])return t;throw this.unexpected(e)},t.loc=function(e){if(!this._options.noLocation)return new p(e,this._lexer.lastToken,this._lexer.source)},t.peek=function(e){return this._lexer.token.kind===e},t.expectToken=function(e){var t=this._lexer.token;if(t.kind===e)return this._lexer.advance(),t;throw(0,o.syntaxError)(this._lexer.source,t.start,"Expected ".concat(e,", found ").concat(m(t)))},t.expectOptionalToken=function(e){var t=this._lexer.token;if(t.kind===e)return this._lexer.advance(),t},t.expectKeyword=function(e){var t=this._lexer.token;if(t.kind===d.TokenKind.NAME&&t.value===e)this._lexer.advance();else throw(0,o.syntaxError)(this._lexer.source,t.start,'Expected "'.concat(e,'", found ').concat(m(t)))},t.expectOptionalKeyword=function(e){var t=this._lexer.token;return t.kind===d.TokenKind.NAME&&t.value===e&&(this._lexer.advance(),!0)},t.unexpected=function(e){var t=e||this._lexer.token;return(0,o.syntaxError)(this._lexer.source,t.start,"Unexpected ".concat(m(t)))},t.any=function(e,t,n){this.expectToken(e);for(var r=[];!this.expectOptionalToken(n);)r.push(t.call(this));return r},t.optionalMany=function(e,t,n){if(this.expectOptionalToken(e)){var r=[];do r.push(t.call(this));while(!this.expectOptionalToken(n));return r}return[]},t.many=function(e,t,n){this.expectToken(e);var r=[];do r.push(t.call(this));while(!this.expectOptionalToken(n));return r},e}();function p(e,t,n){this.start=e.start,this.end=t.end,this.startToken=e,this.endToken=t,this.source=n}function m(e){var t=e.value;return t?"".concat(e.kind,' "').concat(t,'"'):e.kind}(0,a.default)(p,function(){return{start:this.start,end:this.end}})},1352:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isDefinitionNode=function(e){return i(e)||a(e)||s(e)},t.isExecutableDefinitionNode=i,t.isSelectionNode=function(e){return e.kind===r.Kind.FIELD||e.kind===r.Kind.FRAGMENT_SPREAD||e.kind===r.Kind.INLINE_FRAGMENT},t.isValueNode=function(e){return e.kind===r.Kind.VARIABLE||e.kind===r.Kind.INT||e.kind===r.Kind.FLOAT||e.kind===r.Kind.STRING||e.kind===r.Kind.BOOLEAN||e.kind===r.Kind.NULL||e.kind===r.Kind.ENUM||e.kind===r.Kind.LIST||e.kind===r.Kind.OBJECT},t.isTypeNode=function(e){return e.kind===r.Kind.NAMED_TYPE||e.kind===r.Kind.LIST_TYPE||e.kind===r.Kind.NON_NULL_TYPE},t.isTypeSystemDefinitionNode=a,t.isTypeDefinitionNode=o,t.isTypeSystemExtensionNode=s,t.isTypeExtensionNode=l;var r=n(2828);function i(e){return e.kind===r.Kind.OPERATION_DEFINITION||e.kind===r.Kind.FRAGMENT_DEFINITION}function a(e){return e.kind===r.Kind.SCHEMA_DEFINITION||o(e)||e.kind===r.Kind.DIRECTIVE_DEFINITION}function o(e){return e.kind===r.Kind.SCALAR_TYPE_DEFINITION||e.kind===r.Kind.OBJECT_TYPE_DEFINITION||e.kind===r.Kind.INTERFACE_TYPE_DEFINITION||e.kind===r.Kind.UNION_TYPE_DEFINITION||e.kind===r.Kind.ENUM_TYPE_DEFINITION||e.kind===r.Kind.INPUT_OBJECT_TYPE_DEFINITION}function s(e){return e.kind===r.Kind.SCHEMA_EXTENSION||l(e)}function l(e){return e.kind===r.Kind.SCALAR_TYPE_EXTENSION||e.kind===r.Kind.OBJECT_TYPE_EXTENSION||e.kind===r.Kind.INTERFACE_TYPE_EXTENSION||e.kind===r.Kind.UNION_TYPE_EXTENSION||e.kind===r.Kind.ENUM_TYPE_EXTENSION||e.kind===r.Kind.INPUT_OBJECT_TYPE_EXTENSION}},8038:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.printLocation=function(e){return i(e.source,(0,r.getLocation)(e.source,e.start))},t.printSourceLocation=i;var r=n(9016);function i(e,t){var n=e.locationOffset.column-1,r=o(n)+e.body,i=t.line-1,s=e.locationOffset.line-1,l=t.line+s,u=1===t.line?n:0,c=t.column+u,d="".concat(e.name,":").concat(l,":").concat(c,"\n"),h=r.split(/\r\n|[\n\r]/g),f=h[i];if(f.length>120){for(var p=Math.floor(c/80),m=c%80,g=[],v=0;v<f.length;v+=80)g.push(f.slice(v,v+80));return d+a([["".concat(l),g[0]]].concat(g.slice(1,p+1).map(function(e){return["",e]}),[[" ",o(m-1)+"^"],["",g[p+1]]]))}return d+a([["".concat(l-1),h[i-1]],["".concat(l),f],["",o(c-1)+"^"],["".concat(l+1),h[i+1]]])}function a(e){var t=e.filter(function(e){return e[0],void 0!==e[1]}),n=Math.max.apply(Math,t.map(function(e){return e[0].length}));return t.map(function(e){var t=e[0],r=e[1];return o(n-t.length)+t+(r?" | "+r:" |")}).join("\n")}function o(e){return Array(e+1).join(" ")}},3033:function(e,t,n){"use strict";
1Object.defineProperty(t,"__esModule",{value:!0}),t.print=function(e){return(0,r.visit)(e,{leave:a})};var r=n(285),i=n(849),a={Name:function(e){return e.value},Variable:function(e){return"$"+e.name},Document:function(e){return s(e.definitions,"\n\n")+"\n"},OperationDefinition:function(e){var t=e.operation,n=e.name,r=u("(",s(e.variableDefinitions,", "),")"),i=s(e.directives," "),a=e.selectionSet;return n||i||r||"query"!==t?s([t,s([n,r]),i,a]," "):a},VariableDefinition:function(e){var t=e.variable,n=e.type,r=e.defaultValue,i=e.directives;return t+": "+n+u(" = ",r)+u(" ",s(i," "))},SelectionSet:function(e){return l(e.selections)},Field:function(e){var t=e.alias,n=e.name,r=e.arguments,i=e.directives,a=e.selectionSet;return s([u("",t,": ")+n+u("(",s(r,", "),")"),s(i," "),a]," ")},Argument:function(e){return e.name+": "+e.value},FragmentSpread:function(e){return"..."+e.name+u(" ",s(e.directives," "))},InlineFragment:function(e){var t=e.typeCondition,n=e.directives,r=e.selectionSet;return s(["...",u("on ",t),s(n," "),r]," ")},FragmentDefinition:function(e){var t=e.name,n=e.typeCondition,r=e.variableDefinitions,i=e.directives,a=e.selectionSet;return"fragment ".concat(t).concat(u("(",s(r,", "),")")," ")+"on ".concat(n," ").concat(u("",s(i," ")," "))+a},IntValue:function(e){return e.value},FloatValue:function(e){return e.value},StringValue:function(e,t){var n=e.value;return e.block?(0,i.printBlockString)(n,"description"===t?"":"  "):JSON.stringify(n)},BooleanValue:function(e){return e.value?"true":"false"},NullValue:function(){return"null"},EnumValue:function(e){return e.value},ListValue:function(e){return"["+s(e.values,", ")+"]"},ObjectValue:function(e){return"{"+s(e.fields,", ")+"}"},ObjectField:function(e){return e.name+": "+e.value},Directive:function(e){return"@"+e.name+u("(",s(e.arguments,", "),")")},NamedType:function(e){return e.name},ListType:function(e){return"["+e.type+"]"},NonNullType:function(e){return e.type+"!"},SchemaDefinition:function(e){var t=e.directives,n=e.operationTypes;return s(["schema",s(t," "),l(n)]," ")},OperationTypeDefinition:function(e){return e.operation+": "+e.type},ScalarTypeDefinition:o(function(e){return s(["scalar",e.name,s(e.directives," ")]," ")}),ObjectTypeDefinition:o(function(e){var t=e.name,n=e.interfaces,r=e.directives,i=e.fields;return s(["type",t,u("implements ",s(n," & ")),s(r," "),l(i)]," ")}),FieldDefinition:o(function(e){var t=e.name,n=e.arguments,r=e.type,i=e.directives;return t+(h(n)?u("(\n",c(s(n,"\n")),"\n)"):u("(",s(n,", "),")"))+": "+r+u(" ",s(i," "))}),InputValueDefinition:o(function(e){var t=e.name,n=e.type,r=e.defaultValue,i=e.directives;return s([t+": "+n,u("= ",r),s(i," ")]," ")}),InterfaceTypeDefinition:o(function(e){var t=e.name,n=e.directives,r=e.fields;return s(["interface",t,s(n," "),l(r)]," ")}),UnionTypeDefinition:o(function(e){var t=e.name,n=e.directives,r=e.types;return s(["union",t,s(n," "),r&&0!==r.length?"= "+s(r," | "):""]," ")}),EnumTypeDefinition:o(function(e){var t=e.name,n=e.directives,r=e.values;return s(["enum",t,s(n," "),l(r)]," ")}),EnumValueDefinition:o(function(e){return s([e.name,s(e.directives," ")]," ")}),InputObjectTypeDefinition:o(function(e){var t=e.name,n=e.directives,r=e.fields;return s(["input",t,s(n," "),l(r)]," ")}),DirectiveDefinition:o(function(e){var t=e.name,n=e.arguments,r=e.repeatable,i=e.locations;return"directive @"+t+(h(n)?u("(\n",c(s(n,"\n")),"\n)"):u("(",s(n,", "),")"))+(r?" repeatable":"")+" on "+s(i," | ")}),SchemaExtension:function(e){var t=e.directives,n=e.operationTypes;return s(["extend schema",s(t," "),l(n)]," ")},ScalarTypeExtension:function(e){return s(["extend scalar",e.name,s(e.directives," ")]," ")},ObjectTypeExtension:function(e){var t=e.name,n=e.interfaces,r=e.directives,i=e.fields;return s(["extend type",t,u("implements ",s(n," & ")),s(r," "),l(i)]," ")},InterfaceTypeExtension:function(e){var t=e.name,n=e.directives,r=e.fields;return s(["extend interface",t,s(n," "),l(r)]," ")},UnionTypeExtension:function(e){var t=e.name,n=e.directives,r=e.types;return s(["extend union",t,s(n," "),r&&0!==r.length?"= "+s(r," | "):""]," ")},EnumTypeExtension:function(e){var t=e.name,n=e.directives,r=e.values;return s(["extend enum",t,s(n," "),l(r)]," ")},InputObjectTypeExtension:function(e){var t=e.name,n=e.directives,r=e.fields;return s(["extend input",t,s(n," "),l(r)]," ")}};function o(e){return function(t){return s([t.description,e(t)],"\n")}}function s(e,t){return e?e.filter(function(e){return e}).join(t||""):""}function l(e){return e&&0!==e.length?"{\n"+c(s(e,"\n"))+"\n}":""}function u(e,t,n){return t?e+t+(n||""):""}function c(e){return e&&"  "+e.replace(/\n/g,"\n  ")}function d(e){return -1!==e.indexOf("\n")}function h(e){return e&&e.some(d)}},2412:function(e,t,n){"use strict";
vendor: 5,136 bytes, line 1
1Object.defineProperty(t,"__esModule",{value:!0}),t.Source=void 0;var r=a(n(7242)),i=a(n(3320));function a(e){return e&&e.__esModule?e:{default:e}}var o=function(e,t,n){this.body=e,this.name=t||"GraphQL request",this.locationOffset=n||{line:1,column:1},this.locationOffset.line>0||(0,r.default)(0,"line in locationOffset is 1-indexed and must be positive"),this.locationOffset.column>0||(0,r.default)(0,"column in locationOffset is 1-indexed and must be positive")};t.Source=o,(0,i.default)(o)},3175:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TokenKind=void 0;var n=Object.freeze({SOF:"<SOF>",EOF:"<EOF>",BANG:"!",DOLLAR:"$",AMP:"&",PAREN_L:"(",PAREN_R:")",SPREAD:"...",COLON:":",EQUALS:"=",AT:"@",BRACKET_L:"[",BRACKET_R:"]",BRACE_L:"{",PIPE:"|",BRACE_R:"}",NAME:"Name",INT:"Int",FLOAT:"Float",STRING:"String",BLOCK_STRING:"BlockString",COMMENT:"Comment"});t.TokenKind=n},285:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.visit=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:a,r=void 0,u=Array.isArray(e),c=[e],d=-1,h=[],f=void 0,p=void 0,m=void 0,g=[],v=[],y=e;do{var b=++d===c.length,A=b&&0!==h.length;if(b){if(p=0===v.length?void 0:g[g.length-1],f=m,m=v.pop(),A){if(u)f=f.slice();else{for(var E={},w=0,x=Object.keys(f);w<x.length;w++){var T=x[w];E[T]=f[T]}f=E}for(var S=0,_=0;_<h.length;_++){var C=h[_][0],k=h[_][1];u&&(C-=S),u&&null===k?(f.splice(C,1),S++):f[C]=k}}d=r.index,c=r.keys,h=r.edits,u=r.inArray,r=r.prev}else{if(p=m?u?d:c[d]:void 0,null==(f=m?m[p]:y))continue;m&&g.push(p)}var I=void 0;if(!Array.isArray(f)){if(!s(f))throw Error("Invalid AST Node: "+(0,i.default)(f));var L=l(t,f.kind,b);if(L){if((I=L.call(t,f,p,m,g,v))===o)break;if(!1===I){if(!b){g.pop();continue}}else if(void 0!==I&&(h.push([p,I]),!b)){if(s(I))f=I;else{g.pop();continue}}}}void 0===I&&A&&h.push([p,f]),b?g.pop():(r={inArray:u,index:d,keys:c,edits:h,prev:r},c=(u=Array.isArray(f))?f:n[f.kind]||[],d=-1,h=[],m&&v.push(m),m=f)}while(void 0!==r);return 0!==h.length&&(y=h[h.length-1][1]),y},t.visitInParallel=function(e){var t=Array(e.length);return{enter:function(n){for(var r=0;r<e.length;r++)if(!t[r]){var i=l(e[r],n.kind,!1);if(i){var a=i.apply(e[r],arguments);if(!1===a)t[r]=n;else if(a===o)t[r]=o;else if(void 0!==a)return a}}},leave:function(n){for(var r=0;r<e.length;r++)if(t[r])t[r]===n&&(t[r]=null);else{var i=l(e[r],n.kind,!0);if(i){var a=i.apply(e[r],arguments);if(a===o)t[r]=o;else if(void 0!==a&&!1!==a)return a}}}}},t.visitWithTypeInfo=function(e,t){return{enter:function(n){e.enter(n);var r=l(t,n.kind,!1);if(r){var i=r.apply(t,arguments);return void 0!==i&&(e.leave(n),s(i)&&e.enter(i)),i}},leave:function(n){var r,i=l(t,n.kind,!0);return i&&(r=i.apply(t,arguments)),e.leave(n),r}}},t.getVisitFn=l,t.BREAK=t.QueryDocumentKeys=void 0;var r,i=(r=n(8002))&&r.__esModule?r:{default:r},a={Name:[],Document:["definitions"],OperationDefinition:["name","variableDefinitions","directives","selectionSet"],VariableDefinition:["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:["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:["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","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","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"]};t.QueryDocumentKeys=a;var o=Object.freeze({});function s(e){return!!(e&&"string"==typeof e.kind)}function l(e,t,n){var r=e[t];if(r){if(!n&&"function"==typeof r)return r;var i=n?r.leave:r.enter;if("function"==typeof i)return i}else{var a=n?e.leave:e.enter;if(a){if("function"==typeof a)return a;var o=a[t];if("function"==typeof o)return o}}}t.BREAK=o},7803:function(e,t){"use strict";
1Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=Array.prototype.find?function(e,t){return Array.prototype.find.call(e,t)}:function(e,t){for(var n=0;n<e.length;n++){var r=e[n];if(t(r))return r}};t.default=n},5531:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=Array.prototype.flatMap,r=n?function(e,t){return n.call(e,t)}:function(e,t){for(var n=[],r=0;r<e.length;r++){var i=t(e[r]);Array.isArray(i)?n=n.concat(i):n.push(i)}return n};t.default=r},1948:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=Number.isFinite||function(e){return"number"==typeof e&&isFinite(e)};t.default=n},687:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=Number.isInteger||function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e};t.default=n},5172:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=Object.entries||function(e){return Object.keys(e).map(function(t){return[t,e[t]]})};t.default=n},1060:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})};t.default=n},5003:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isType=A,t.assertType=E,t.isScalarType=w,t.assertScalarType=function(e){if(!w(e))throw Error("Expected ".concat((0,i.default)(e)," to be a GraphQL Scalar type."));return e},t.isObjectType=x,t.assertObjectType=function(e){if(!x(e))throw Error("Expected ".concat((0,i.default)(e)," to be a GraphQL Object type."));return e},t.isInterfaceType=T,t.assertInterfaceType=function(e){if(!T(e))throw Error("Expected ".concat((0,i.default)(e)," to be a GraphQL Interface type."));return e},t.isUnionType=S,t.assertUnionType=function(e){if(!S(e))throw Error("Expected ".concat((0,i.default)(e)," to be a GraphQL Union type."));return e},t.isEnumType=_,t.assertEnumType=function(e){if(!_(e))throw Error("Expected ".concat((0,i.default)(e)," to be a GraphQL Enum type."));return e},t.isInputObjectType=C,t.assertInputObjectType=function(e){if(!C(e))throw Error("Expected ".concat((0,i.default)(e)," to be a GraphQL Input Object type."));return e},t.isListType=k,t.assertListType=function(e){if(!k(e))throw Error("Expected ".concat((0,i.default)(e)," to be a GraphQL List type."));return e},t.isNonNullType=I,t.assertNonNullType=function(e){if(!I(e))throw Error("Expected ".concat((0,i.default)(e)," to be a GraphQL Non-Null type."));return e},t.isInputType=L,t.assertInputType=function(e){if(!L(e))throw Error("Expected ".concat((0,i.default)(e)," to be a GraphQL input type."));return e},t.isOutputType=P,t.assertOutputType=function(e){if(!P(e))throw Error("Expected ".concat((0,i.default)(e)," to be a GraphQL output type."));return e},t.isLeafType=O,t.assertLeafType=function(e){if(!O(e))throw Error("Expected ".concat((0,i.default)(e)," to be a GraphQL leaf type."));return e},t.isCompositeType=R,t.assertCompositeType=function(e){if(!R(e))throw Error("Expected ".concat((0,i.default)(e)," to be a GraphQL composite type."));return e},t.isAbstractType=D,t.assertAbstractType=function(e){if(!D(e))throw Error("Expected ".concat((0,i.default)(e)," to be a GraphQL abstract type."));return e},t.GraphQLList=N,t.GraphQLNonNull=M,t.isWrappingType=j,t.assertWrappingType=function(e){if(!j(e))throw Error("Expected ".concat((0,i.default)(e)," to be a GraphQL wrapping type."));return e},t.isNullableType=F,t.assertNullableType=B,t.getNullableType=function(e){if(e)return I(e)?e.ofType:e},t.isNamedType=U,t.assertNamedType=function(e){if(!U(e))throw Error("Expected ".concat((0,i.default)(e)," to be a GraphQL named type."));return e},t.getNamedType=function(e){if(e){for(var t=e;j(t);)t=t.ofType;return t}},t.argsToArgsConfig=W,t.isRequiredArgument=function(e){return I(e.type)&&void 0===e.defaultValue},t.isRequiredInputField=function(e){return I(e.type)&&void 0===e.defaultValue},t.GraphQLInputObjectType=t.GraphQLEnumType=t.GraphQLUnionType=t.GraphQLInterfaceType=t.GraphQLObjectType=t.GraphQLScalarType=void 0;var r=v(n(5172)),i=v(n(8002)),a=v(n(2863)),o=v(n(6124)),s=v(n(7690)),l=v(n(7242)),u=v(n(7154)),c=v(n(5752)),d=v(n(5690)),h=v(n(3317)),f=v(n(9503)),p=v(n(3320)),m=n(2828),g=n(7784);
1function v(e){return e&&e.__esModule?e:{default:e}}function y(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function b(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?y(n,!0).forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):y(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function A(e){return w(e)||x(e)||T(e)||S(e)||_(e)||C(e)||k(e)||I(e)}function E(e){if(!A(e))throw Error("Expected ".concat((0,i.default)(e)," to be a GraphQL type."));return e}function w(e){return(0,c.default)(e,q)}function x(e){return(0,c.default)(e,Q)}function T(e){return(0,c.default)(e,Z)}function S(e){return(0,c.default)(e,Y)}function _(e){return(0,c.default)(e,J)}function C(e){return(0,c.default)(e,ee)}function k(e){return(0,c.default)(e,N)}function I(e){return(0,c.default)(e,M)}function L(e){return w(e)||_(e)||C(e)||j(e)&&L(e.ofType)}function P(e){return w(e)||x(e)||T(e)||S(e)||_(e)||j(e)&&P(e.ofType)}function O(e){return w(e)||_(e)}function R(e){return x(e)||T(e)||S(e)}function D(e){return T(e)||S(e)}function N(e){if(!(this instanceof N))return new N(e);this.ofType=E(e)}function M(e){if(!(this instanceof M))return new M(e);this.ofType=B(e)}function j(e){return k(e)||I(e)}function F(e){return A(e)&&!I(e)}function B(e){if(!F(e))throw Error("Expected ".concat((0,i.default)(e)," to be a GraphQL nullable type."));return e}function U(e){return w(e)||x(e)||T(e)||S(e)||_(e)||C(e)}function V(e){return"function"==typeof e?e():e}function z(e){return e&&e.length>0?e:void 0}N.prototype.toString=function(){return"["+String(this.ofType)+"]"},(0,p.default)(N),(0,f.default)(N),M.prototype.toString=function(){return String(this.ofType)+"!"},(0,p.default)(M),(0,f.default)(M);var q=function(){function e(e){var t=e.parseValue||h.default;this.name=e.name,this.description=e.description,this.serialize=e.serialize||h.default,this.parseValue=t,this.parseLiteral=e.parseLiteral||function(e){return t((0,g.valueFromASTUntyped)(e))},this.extensions=e.extensions&&(0,s.default)(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=z(e.extensionASTNodes),"string"==typeof e.name||(0,l.default)(0,"Must provide name."),null==e.serialize||"function"==typeof e.serialize||(0,l.default)(0,"".concat(this.name,' must provide "serialize" function. If this custom Scalar is also used as an input type, ensure "parseValue" and "parseLiteral" functions are also provided.')),e.parseLiteral&&("function"==typeof e.parseValue&&"function"==typeof e.parseLiteral||(0,l.default)(0,"".concat(this.name,' must provide both "parseValue" and "parseLiteral" functions.')))}var t=e.prototype;return t.toConfig=function(){return{name:this.name,description:this.description,serialize:this.serialize,parseValue:this.parseValue,parseLiteral:this.parseLiteral,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes||[]}},t.toString=function(){return this.name},e}();t.GraphQLScalarType=q,(0,p.default)(q),(0,f.default)(q);var Q=function(){function e(e){this.name=e.name,this.description=e.description,this.isTypeOf=e.isTypeOf,this.extensions=e.extensions&&(0,s.default)(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=z(e.extensionASTNodes),this._fields=G.bind(void 0,e),this._interfaces=H.bind(void 0,e),"string"==typeof e.name||(0,l.default)(0,"Must provide name."),null==e.isTypeOf||"function"==typeof e.isTypeOf||(0,l.default)(0,"".concat(this.name,' must provide "isTypeOf" as a function, ')+"but got: ".concat((0,i.default)(e.isTypeOf),"."))}var t=e.prototype;return t.getFields=function(){return"function"==typeof this._fields&&(this._fields=this._fields()),this._fields},t.getInterfaces=function(){return"function"==typeof this._interfaces&&(this._interfaces=this._interfaces()),this._interfaces},t.toConfig=function(){return{name:this.name,description:this.description,interfaces:this.getInterfaces(),fields:$(this.getFields()),isTypeOf:this.isTypeOf,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes||[]}},t.toString=function(){return this.name},e}();function H(e){var t=V(e.interfaces)||[];return Array.isArray(t)||(0,l.default)(0,"".concat(e.name," interfaces must be an Array or a function which returns an Array.")),t}function G(e){var t=V(e.fields)||{};return K(t)||(0,l.default)(0,"".concat(e.name," fields must be an object with field names as keys or a function which returns such an object.")),(0,o.default)(t,function(t,n){K(t)||(0,l.default)(0,"".concat(e.name,".").concat(n," field config must be an object")),"isDeprecated"in t&&(0,l.default)(0,"".concat(e.name,".").concat(n,' should provide "deprecationReason" instead of "isDeprecated".')),null==t.resolve||"function"==typeof t.resolve||(0,l.default)(0,"".concat(e.name,".").concat(n," field resolver must be a function if ")+"provided, but got: ".concat((0,i.default)(t.resolve),"."));var a=t.args||{};K(a)||(0,l.default)(0,"".concat(e.name,".").concat(n," args must be an object with argument names as keys."));var o=(0,r.default)(a).map(function(e){var t=e[0],n=e[1];return{name:t,description:void 0===n.description?null:n.description,type:n.type,defaultValue:n.defaultValue,extensions:n.extensions&&(0,s.default)(n.extensions),astNode:n.astNode}});return b({},t,{name:n,description:t.description,type:t.type,args:o,resolve:t.resolve,subscribe:t.subscribe,isDeprecated:!!t.deprecationReason,deprecationReason:t.deprecationReason,extensions:t.extensions&&(0,s.default)(t.extensions),astNode:t.astNode})})}function K(e){return(0,d.default)(e)&&!Array.isArray(e)}function $(e){return(0,o.default)(e,function(e){return{description:e.description,type:e.type,args:W(e.args),resolve:e.resolve,subscribe:e.subscribe,deprecationReason:e.deprecationReason,extensions:e.extensions,astNode:e.astNode}})}function W(e){return(0,u.default)(e,function(e){return e.name},function(e){return{description:e.description,type:e.type,defaultValue:e.defaultValue,extensions:e.extensions,astNode:e.astNode}})}t.GraphQLObjectType=Q,(0,p.default)(Q),(0,f.default)(Q);var Z=function(){function e(e){this.name=e.name,this.description=e.description,this.resolveType=e.resolveType,this.extensions=e.extensions&&(0,s.default)(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=z(e.extensionASTNodes),this._fields=G.bind(void 0,e),"string"==typeof e.name||(0,l.default)(0,"Must provide name."),null==e.resolveType||"function"==typeof e.resolveType||(0,l.default)(0,"".concat(this.name,' must provide "resolveType" as a function, ')+"but got: ".concat((0,i.default)(e.resolveType),"."))}var t=e.prototype;return t.getFields=function(){return"function"==typeof this._fields&&(this._fields=this._fields()),this._fields},t.toConfig=function(){return{name:this.name,description:this.description,fields:$(this.getFields()),resolveType:this.resolveType,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes||[]}},t.toString=function(){return this.name},e}();t.GraphQLInterfaceType=Z,(0,p.default)(Z),(0,f.default)(Z);var Y=function(){function e(e){this.name=e.name,this.description=e.description,this.resolveType=e.resolveType,this.extensions=e.extensions&&(0,s.default)(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=z(e.extensionASTNodes),this._types=X.bind(void 0,e),"string"==typeof e.name||(0,l.default)(0,"Must provide name."),null==e.resolveType||"function"==typeof e.resolveType||(0,l.default)(0,"".concat(this.name,' must provide "resolveType" as a function, ')+"but got: ".concat((0,i.default)(e.resolveType),"."))}var t=e.prototype;return t.getTypes=function(){return"function"==typeof this._types&&(this._types=this._types()),this._types},t.toConfig=function(){return{name:this.name,description:this.description,types:this.getTypes(),resolveType:this.resolveType,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes||[]}},t.toString=function(){return this.name},e}();function X(e){var t=V(e.types)||[];return Array.isArray(t)||(0,l.default)(0,"Must provide Array of types or a function which returns such an array for Union ".concat(e.name,".")),t}t.GraphQLUnionType=Y,(0,p.default)(Y),(0,f.default)(Y);var J=function(){function e(e){var t,n;this.name=e.name,this.description=e.description,this.extensions=e.extensions&&(0,s.default)(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=z(e.extensionASTNodes),this._values=(t=this.name,K(n=e.values)||(0,l.default)(0,"".concat(t," values must be an object with value names as keys.")),(0,r.default)(n).map(function(e){var n=e[0],r=e[1];return K(r)||(0,l.default)(0,"".concat(t,".").concat(n,' must refer to an object with a "value" key ')+"representing an internal value but got: ".concat((0,i.default)(r),".")),"isDeprecated"in r&&(0,l.default)(0,"".concat(t,".").concat(n,' should provide "deprecationReason" instead of "isDeprecated".')),{name:n,description:r.description,value:"value"in r?r.value:n,isDeprecated:!!r.deprecationReason,deprecationReason:r.deprecationReason,extensions:r.extensions&&(0,s.default)(r.extensions),astNode:r.astNode}})),this._valueLookup=new Map(this._values.map(function(e){return[e.value,e]})),this._nameLookup=(0,a.default)(this._values,function(e){return e.name}),"string"==typeof e.name||(0,l.default)(0,"Must provide name.")}var t=e.prototype;return t.getValues=function(){return this._values},t.getValue=function(e){return this._nameLookup[e]},t.serialize=function(e){var t=this._valueLookup.get(e);if(t)return t.name},t.parseValue=function(e){if("string"==typeof e){var t=this.getValue(e);if(t)return t.value}},t.parseLiteral=function(e,t){if(e.kind===m.Kind.ENUM){var n=this.getValue(e.value);if(n)return n.value}},t.toConfig=function(){var e=(0,u.default)(this.getValues(),function(e){return e.name},function(e){return{description:e.description,value:e.value,deprecationReason:e.deprecationReason,extensions:e.extensions,astNode:e.astNode}});return{name:this.name,description:this.description,values:e,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes||[]}},t.toString=function(){return this.name},e}();t.GraphQLEnumType=J,(0,p.default)(J),(0,f.default)(J);var ee=function(){function e(e){this.name=e.name,this.description=e.description,this.extensions=e.extensions&&(0,s.default)(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=z(e.extensionASTNodes),this._fields=et.bind(void 0,e),"string"==typeof e.name||(0,l.default)(0,"Must provide name.")}var t=e.prototype;return t.getFields=function(){return"function"==typeof this._fields&&(this._fields=this._fields()),this._fields},t.toConfig=function(){var e=(0,o.default)(this.getFields(),function(e){return{description:e.description,type:e.type,defaultValue:e.defaultValue,extensions:e.extensions,astNode:e.astNode}});return{name:this.name,description:this.description,fields:e,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes||[]}},t.toString=function(){return this.name},e}();function et(e){var t=V(e.fields)||{};return K(t)||(0,l.default)(0,"".concat(e.name," fields must be an object with field names as keys or a function which returns such an object.")),(0,o.default)(t,function(t,n){return"resolve"in t&&(0,l.default)(0,"".concat(e.name,".").concat(n," field has a resolve property, but Input Types cannot define resolvers.")),b({},t,{name:n,description:t.description,type:t.type,defaultValue:t.defaultValue,extensions:t.extensions&&(0,s.default)(t.extensions),astNode:t.astNode})})}t.GraphQLInputObjectType=ee,(0,p.default)(ee),(0,f.default)(ee)},7197:function(e,t,n){"use strict";
1Object.defineProperty(t,"__esModule",{value:!0}),t.isDirective=m,t.assertDirective=function(e){if(!m(e))throw Error("Expected ".concat((0,i.default)(e)," to be a GraphQL directive."));return e},t.isSpecifiedDirective=function(e){return m(e)&&E.some(function(t){return t.name===e.name})},t.specifiedDirectives=t.GraphQLDeprecatedDirective=t.DEFAULT_DEPRECATION_REASON=t.GraphQLSkipDirective=t.GraphQLIncludeDirective=t.GraphQLDirective=void 0;var r=p(n(5172)),i=p(n(8002)),a=p(n(7690)),o=p(n(7242)),s=p(n(5752)),l=p(n(9503)),u=p(n(5690)),c=p(n(3320)),d=n(8333),h=n(2229),f=n(5003);function p(e){return e&&e.__esModule?e:{default:e}}function m(e){return(0,s.default)(e,g)}var g=function(){function e(e){this.name=e.name,this.description=e.description,this.locations=e.locations,this.isRepeatable=null!=e.isRepeatable&&e.isRepeatable,this.extensions=e.extensions&&(0,a.default)(e.extensions),this.astNode=e.astNode,e.name||(0,o.default)(0,"Directive must be named."),Array.isArray(e.locations)||(0,o.default)(0,"@".concat(e.name," locations must be an Array."));var t=e.args||{};(0,u.default)(t)&&!Array.isArray(t)||(0,o.default)(0,"@".concat(e.name," args must be an object with argument names as keys.")),this.args=(0,r.default)(t).map(function(e){var t=e[0],n=e[1];return{name:t,description:void 0===n.description?null:n.description,type:n.type,defaultValue:n.defaultValue,extensions:n.extensions&&(0,a.default)(n.extensions),astNode:n.astNode}})}var t=e.prototype;return t.toString=function(){return"@"+this.name},t.toConfig=function(){return{name:this.name,description:this.description,locations:this.locations,args:(0,f.argsToArgsConfig)(this.args),isRepeatable:this.isRepeatable,extensions:this.extensions,astNode:this.astNode}},e}();t.GraphQLDirective=g,(0,c.default)(g),(0,l.default)(g);var v=new g({name:"include",description:"Directs the executor to include this field or fragment only when the `if` argument is true.",locations:[d.DirectiveLocation.FIELD,d.DirectiveLocation.FRAGMENT_SPREAD,d.DirectiveLocation.INLINE_FRAGMENT],args:{if:{type:(0,f.GraphQLNonNull)(h.GraphQLBoolean),description:"Included when true."}}});t.GraphQLIncludeDirective=v;var y=new g({name:"skip",description:"Directs the executor to skip this field or fragment when the `if` argument is true.",locations:[d.DirectiveLocation.FIELD,d.DirectiveLocation.FRAGMENT_SPREAD,d.DirectiveLocation.INLINE_FRAGMENT],args:{if:{type:(0,f.GraphQLNonNull)(h.GraphQLBoolean),description:"Skipped when true."}}});t.GraphQLSkipDirective=y;var b="No longer supported";t.DEFAULT_DEPRECATION_REASON=b;var A=new g({name:"deprecated",description:"Marks an element of a GraphQL schema as no longer supported.",locations:[d.DirectiveLocation.FIELD_DEFINITION,d.DirectiveLocation.ENUM_VALUE],args:{reason:{type:h.GraphQLString,description:"Explains why this element was deprecated, usually also including a suggestion for how to access supported similar data. Formatted using the Markdown syntax (as specified by [CommonMark](https://commonmark.org/).",defaultValue:b}}});t.GraphQLDeprecatedDirective=A;var E=Object.freeze([v,y,A]);t.specifiedDirectives=E},3226:function(e,t,n){"use strict";Object.defineProperty(t,"P9",{enumerable:!0,get:function(){return r.isType}}),n(6829);var r=n(5003);n(7197),n(2229),n(8155),n(1671)},8155:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isIntrospectionType=function(e){return(0,c.isNamedType)(e)&&T.some(function(t){var n=t.name;return e.name===n})},t.introspectionTypes=t.TypeNameMetaFieldDef=t.TypeMetaFieldDef=t.SchemaMetaFieldDef=t.__TypeKind=t.TypeKind=t.__EnumValue=t.__InputValue=t.__Field=t.__Type=t.__DirectiveLocation=t.__Directive=t.__Schema=void 0;var r=d(n(1060)),i=d(n(8002)),a=d(n(7706)),o=n(3033),s=n(8333),l=n(8115),u=n(2229),c=n(5003);function d(e){return e&&e.__esModule?e:{default:e}}var h=new c.GraphQLObjectType({name:"__Schema",description:"A GraphQL Schema defines the capabilities of a GraphQL server. It exposes all available types and directives on the server, as well as the entry points for query, mutation, and subscription operations.",fields:function(){return{types:{description:"A list of all types supported by this 
1server.",type:(0,c.GraphQLNonNull)((0,c.GraphQLList)((0,c.GraphQLNonNull)(m))),resolve:function(e){return(0,r.default)(e.getTypeMap())}},queryType:{description:"The type that query operations will be rooted at.",type:(0,c.GraphQLNonNull)(m),resolve:function(e){return e.getQueryType()}},mutationType:{description:"If this server supports mutation, the type that mutation operations will be rooted at.",type:m,resolve:function(e){return e.getMutationType()}},subscriptionType:{description:"If this server support subscription, the type that subscription operations will be rooted at.",type:m,resolve:function(e){return e.getSubscriptionType()}},directives:{description:"A list of all directives supported by this server.",type:(0,c.GraphQLNonNull)((0,c.GraphQLList)((0,c.GraphQLNonNull)(f))),resolve:function(e){return e.getDirectives()}}}}});t.__Schema=h;var f=new c.GraphQLObjectType({name:"__Directive",description:"A Directive provides a way to describe alternate runtime execution and type validation behavior in a GraphQL document.\n\nIn some cases, you need to provide options to alter GraphQL's execution behavior in ways field arguments will not suffice, such as conditionally including or skipping a field. Directives provide this by describing additional information to the executor.",fields:function(){return{name:{type:(0,c.GraphQLNonNull)(u.GraphQLString),resolve:function(e){return e.name}},description:{type:u.GraphQLString,resolve:function(e){return e.description}},locations:{type:(0,c.GraphQLNonNull)((0,c.GraphQLList)((0,c.GraphQLNonNull)(p))),resolve:function(e){return e.locations}},args:{type:(0,c.GraphQLNonNull)((0,c.GraphQLList)((0,c.GraphQLNonNull)(v))),resolve:function(e){return e.args}}}}});t.__Directive=f;var p=new c.GraphQLEnumType({name:"__DirectiveLocation",description:"A Directive can be adjacent to many parts of the GraphQL language, a __DirectiveLocation describes one such possible adjacencies.",values:{QUERY:{value:s.DirectiveLocation.QUERY,description:"Location adjacent to a query operation."},MUTATION:{value:s.DirectiveLocation.MUTATION,description:"Location adjacent to a mutation operation."},SUBSCRIPTION:{value:s.DirectiveLocation.SUBSCRIPTION,description:"Location adjacent to a subscription operation."},FIELD:{value:s.DirectiveLocation.FIELD,description:"Location adjacent to a field."},FRAGMENT_DEFINITION:{value:s.DirectiveLocation.FRAGMENT_DEFINITION,description:"Location adjacent to a fragment definition."},FRAGMENT_SPREAD:{value:s.DirectiveLocation.FRAGMENT_SPREAD,description:"Location adjacent to a fragment spread."},INLINE_FRAGMENT:{value:s.DirectiveLocation.INLINE_FRAGMENT,description:"Location adjacent to an inline fragment."},VARIABLE_DEFINITION:{value:s.DirectiveLocation.VARIABLE_DEFINITION,description:"Location adjacent to a variable definition."},SCHEMA:{value:s.DirectiveLocation.SCHEMA,description:"Location adjacent to a schema definition."},SCALAR:{value:s.DirectiveLocation.SCALAR,description:"Location adjacent to a scalar definition."},OBJECT:{value:s.DirectiveLocation.OBJECT,description:"Location adjacent to an object type definition."},FIELD_DEFINITION:{value:s.DirectiveLocation.FIELD_DEFINITION,description:"Location adjacent to a field definition."},ARGUMENT_DEFINITION:{value:s.DirectiveLocation.ARGUMENT_DEFINITION,description:"Location adjacent to an argument definition."},INTERFACE:{value:s.DirectiveLocation.INTERFACE,description:"Location adjacent to an interface definition."},UNION:{value:s.DirectiveLocation.UNION,description:"Location adjacent to a union definition."},ENUM:{value:s.DirectiveLocation.ENUM,description:"Location adjacent to an enum definition."},ENUM_VALUE:{value:s.DirectiveLocation.ENUM_VALUE,description:"Location adjacent to an enum value definition."},INPUT_OBJECT:{value:s.DirectiveLocation.INPUT_OBJECT,description:"Location adjacent to an input object type definition."},INPUT_FIELD_DEFINITION:{value:s.DirectiveLocation.INPUT_FIELD_DEFINITION,description:"Location adjacent to an input object field definition."}}});t.__DirectiveLocation=p;var m=new c.GraphQLObjectType({name:"__Type",description:"The fundamental unit of any GraphQL Schema is the type. There are many kinds of types in GraphQL as represented by the `__TypeKind` enum.\n\nDepending on the kind of a type, certain fields describe information about that type. Scalar types provide no information beyond a name and description, while Enum types provide their values. Object and Interface types provide the fields they describe. Abstract types, Union and Interface, provide the Object types possible at runtime. List and NonNull types compose other types.",fields:function(){return{kind:{type:(0,c.GraphQLNonNull)(A),resolve:function(e){if((0,c.isScalarType)(e))return b.SCALAR;
1if((0,c.isObjectType)(e))return b.OBJECT;if((0,c.isInterfaceType)(e))return b.INTERFACE;if((0,c.isUnionType)(e))return b.UNION;if((0,c.isEnumType)(e))return b.ENUM;if((0,c.isInputObjectType)(e))return b.INPUT_OBJECT;if((0,c.isListType)(e))return b.LIST;else if((0,c.isNonNullType)(e))return b.NON_NULL;(0,a.default)(!1,'Unexpected type: "'.concat((0,i.default)(e),'".'))}},name:{type:u.GraphQLString,resolve:function(e){return void 0!==e.name?e.name:void 0}},description:{type:u.GraphQLString,resolve:function(e){return void 0!==e.description?e.description:void 0}},fields:{type:(0,c.GraphQLList)((0,c.GraphQLNonNull)(g)),args:{includeDeprecated:{type:u.GraphQLBoolean,defaultValue:!1}},resolve:function(e,t){var n=t.includeDeprecated;if((0,c.isObjectType)(e)||(0,c.isInterfaceType)(e)){var i=(0,r.default)(e.getFields());return n||(i=i.filter(function(e){return!e.deprecationReason})),i}return null}},interfaces:{type:(0,c.GraphQLList)((0,c.GraphQLNonNull)(m)),resolve:function(e){if((0,c.isObjectType)(e))return e.getInterfaces()}},possibleTypes:{type:(0,c.GraphQLList)((0,c.GraphQLNonNull)(m)),resolve:function(e,t,n,r){var i=r.schema;if((0,c.isAbstractType)(e))return i.getPossibleTypes(e)}},enumValues:{type:(0,c.GraphQLList)((0,c.GraphQLNonNull)(y)),args:{includeDeprecated:{type:u.GraphQLBoolean,defaultValue:!1}},resolve:function(e,t){var n=t.includeDeprecated;if((0,c.isEnumType)(e)){var r=e.getValues();return n||(r=r.filter(function(e){return!e.deprecationReason})),r}}},inputFields:{type:(0,c.GraphQLList)((0,c.GraphQLNonNull)(v)),resolve:function(e){if((0,c.isInputObjectType)(e))return(0,r.default)(e.getFields())}},ofType:{type:m,resolve:function(e){return void 0!==e.ofType?e.ofType:void 0}}}}});t.__Type=m;var g=new c.GraphQLObjectType({name:"__Field",description:"Object and Interface types are described by a list of Fields, each of which has a name, potentially a list of arguments, and a return type.",fields:function(){return{name:{type:(0,c.GraphQLNonNull)(u.GraphQLString),resolve:function(e){return e.name}},description:{type:u.GraphQLString,resolve:function(e){return e.description}},args:{type:(0,c.GraphQLNonNull)((0,c.GraphQLList)((0,c.GraphQLNonNull)(v))),resolve:function(e){return e.args}},type:{type:(0,c.GraphQLNonNull)(m),resolve:function(e){return e.type}},isDeprecated:{type:(0,c.GraphQLNonNull)(u.GraphQLBoolean),resolve:function(e){return e.isDeprecated}},deprecationReason:{type:u.GraphQLString,resolve:function(e){return e.deprecationReason}}}}});t.__Field=g;var v=new c.GraphQLObjectType({name:"__InputValue",description:"Arguments provided to Fields or Directives and the input fields of an InputObject are represented as Input Values which describe their type and optionally a default value.",fields:function(){return{name:{type:(0,c.GraphQLNonNull)(u.GraphQLString),resolve:function(e){return e.name}},description:{type:u.GraphQLString,resolve:function(e){return e.description}},type:{type:(0,c.GraphQLNonNull)(m),resolve:function(e){return e.type}},defaultValue:{type:u.GraphQLString,description:"A GraphQL-formatted string representing the default value for this input value.",resolve:function(e){var t=(0,l.astFromValue)(e.defaultValue,e.type);return t?(0,o.print)(t):null}}}}});t.__InputValue=v;var y=new c.GraphQLObjectType({name:"__EnumValue",description:"One possible value for a given Enum. Enum values are unique values, not a placeholder for a string or numeric value. However an Enum value is returned in a JSON response as a string.",fields:function(){return{name:{type:(0,c.GraphQLNonNull)(u.GraphQLString),resolve:function(e){return e.name}},description:{type:u.GraphQLString,resolve:function(e){return e.description}},isDeprecated:{type:(0,c.GraphQLNonNull)(u.GraphQLBoolean),resolve:function(e){return e.isDeprecated}},deprecationReason:{type:u.GraphQLString,resolve:function(e){return e.deprecationReason}}}}});t.__EnumValue=y;var b=Object.freeze({SCALAR:"SCALAR",OBJECT:"OBJECT",INTERFACE:"INTERFACE",UNION:"UNION",ENUM:"ENUM",INPUT_OBJECT:"INPUT_OBJECT",LIST:"LIST",NON_NULL:"NON_NULL"});t.TypeKind=b;var A=new c.GraphQLEnumType({name:"__TypeKind",description:"An enum describing what kind of type a given `__Type` is.",values:{SCALAR:{value:b.SCALAR,description:"Indicates this type is a scalar."},OBJECT:{value:b.OBJECT,description:"Indicates this type is an object. `fields` and `interfaces` are valid fields."},INTERFACE:{value:b.INTERFACE,description:"Indicates this type is an interface. `fields` and `possibleTypes` are valid fields."},UNION:{value:b.UNION,description:"Indicates this type is a union. `possibleTypes` is a valid field."},ENUM:{value:b.ENUM,description:"Indicates this type is an enum. `enumValues` is a valid field."},INPUT_OBJECT:{value:b.INPUT_OBJECT,description:"Indicates this type is an input object. `inputFields` is a valid field."},LIST:{value:b.LIST,description:"Indicates this type is a list. `ofType` is a valid field."},NON_NULL:{value:b.NON_NULL,description:"Indicates this type is a 
1non-null. `ofType` is a valid field."}}});t.__TypeKind=A;var E={name:"__schema",type:(0,c.GraphQLNonNull)(h),description:"Access the current type schema of this server.",args:[],resolve:function(e,t,n,r){return r.schema},deprecationReason:void 0,extensions:void 0,astNode:void 0};t.SchemaMetaFieldDef=E;var w={name:"__type",type:m,description:"Request the type information of a single type.",args:[{name:"name",description:void 0,type:(0,c.GraphQLNonNull)(u.GraphQLString),defaultValue:void 0,extensions:void 0,astNode:void 0}],resolve:function(e,t,n,r){var i=t.name;return r.schema.getType(i)},deprecationReason:void 0,extensions:void 0,astNode:void 0};t.TypeMetaFieldDef=w;var x={name:"__typename",type:(0,c.GraphQLNonNull)(u.GraphQLString),description:"The name of the current Object type at runtime.",args:[],resolve:function(e,t,n,r){return r.parentType.name},deprecationReason:void 0,extensions:void 0,astNode:void 0};t.TypeNameMetaFieldDef=x;var T=Object.freeze([h,f,p,m,g,v,y,A]);t.introspectionTypes=T},2229:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isSpecifiedScalarType=function(e){return(0,l.isScalarType)(e)&&g.some(function(t){var n=t.name;return e.name===n})},t.specifiedScalarTypes=t.GraphQLID=t.GraphQLBoolean=t.GraphQLString=t.GraphQLFloat=t.GraphQLInt=void 0;var r=u(n(1948)),i=u(n(687)),a=u(n(8002)),o=u(n(5690)),s=n(2828),l=n(5003);function u(e){return e&&e.__esModule?e:{default:e}}var c=new l.GraphQLScalarType({name:"Int",description:"The `Int` scalar type represents non-fractional signed whole numeric values. Int can represent values between -(2^31) and 2^31 - 1.",serialize:function(e){if("boolean"==typeof e)return e?1:0;var t=e;if("string"==typeof e&&""!==e&&(t=Number(e)),!(0,i.default)(t))throw TypeError("Int cannot represent non-integer value: ".concat((0,a.default)(e)));if(t>2147483647||t<-2147483648)throw TypeError("Int cannot represent non 32-bit signed integer value: ".concat((0,a.default)(e)));return t},parseValue:function(e){if(!(0,i.default)(e))throw TypeError("Int cannot represent non-integer value: ".concat((0,a.default)(e)));if(e>2147483647||e<-2147483648)throw TypeError("Int cannot represent non 32-bit signed integer value: ".concat((0,a.default)(e)));return e},parseLiteral:function(e){if(e.kind===s.Kind.INT){var t=parseInt(e.value,10);if(t<=2147483647&&t>=-2147483648)return t}}});t.GraphQLInt=c;var d=new l.GraphQLScalarType({name:"Float",description:"The `Float` scalar type represents signed double-precision fractional values as specified by [IEEE 754](https://en.wikipedia.org/wiki/IEEE_floating_point).",serialize:function(e){if("boolean"==typeof e)return e?1:0;var t=e;if("string"==typeof e&&""!==e&&(t=Number(e)),!(0,r.default)(t))throw TypeError("Float cannot represent non numeric value: ".concat((0,a.default)(e)));return t},parseValue:function(e){if(!(0,r.default)(e))throw TypeError("Float cannot represent non numeric value: ".concat((0,a.default)(e)));return e},parseLiteral:function(e){return e.kind===s.Kind.FLOAT||e.kind===s.Kind.INT?parseFloat(e.value):void 0}});function h(e){if((0,o.default)(e)){if("function"==typeof e.valueOf){var t=e.valueOf();if(!(0,o.default)(t))return t}if("function"==typeof e.toJSON)return e.toJSON()}return e}t.GraphQLFloat=d;var f=new l.GraphQLScalarType({name:"String",description:"The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.",serialize:function(e){var t=h(e);if("string"==typeof t)return t;if("boolean"==typeof t)return t?"true":"false";if((0,r.default)(t))return t.toString();throw TypeError("String cannot represent value: ".concat((0,a.default)(e)))},parseValue:function(e){if("string"!=typeof e)throw TypeError("String cannot represent a non string value: ".concat((0,a.default)(e)));return e},parseLiteral:function(e){return e.kind===s.Kind.STRING?e.value:void 0}});t.GraphQLString=f;var p=new l.GraphQLScalarType({name:"Boolean",description:"The `Boolean` scalar type represents `true` or `false`.",serialize:function(e){if("boolean"==typeof e)return e;if((0,r.default)(e))return 0!==e;throw TypeError("Boolean cannot represent a non boolean value: ".concat((0,a.default)(e)))},parseValue:function(e){if("boolean"!=typeof e)throw TypeError("Boolean cannot represent a non boolean value: ".concat((0,a.default)(e)));return e},parseLiteral:function(e){return e.kind===s.Kind.BOOLEAN?e.value:void 0}});t.GraphQLBoolean=p;var m=new l.GraphQLScalarType({name:"ID",description:'The `ID` scalar type represents a unique identifier, often used to refetch an object or as key for a cache. The ID type appears in a JSON response as a String; however, it is not intended to be human-readable. When expected as an input type, any string (such as `"4"`) or integer (such as `4`) input value will be accepted as an ID.',serialize:function(e){var t=h(e);if("string"==typeof t)return t;if((0,i.default)(t))return String(t);throw TypeError("ID cannot represent value: ".concat((0,a.default)(e)))},parseValue:function(e){if("string"==typeof e)return e;if((0,i.default)(e))return e.toString();throw TypeError("ID cannot represent value: ".concat((0,a.default)(e)))},parseLiteral:function(e){return e.kind===s.Kind.STRING||e.kind===s.Kind.INT?e.value:void 0}});t.GraphQLID=m;var g=Object.freeze([f,c,d,p,m]);t.specifiedScalarTypes=g},6829:function(e,t,n){"use strict";
1Object.defineProperty(t,"__esModule",{value:!0}),t.isSchema=m,t.assertSchema=function(e){if(!m(e))throw Error("Expected ".concat((0,a.default)(e)," to be a GraphQL schema."));return e},t.GraphQLSchema=void 0;var r=p(n(7803)),i=p(n(1060)),a=p(n(8002)),o=p(n(7690)),s=p(n(7242)),l=p(n(5752)),u=p(n(5690)),c=p(n(3320)),d=n(8155),h=n(7197),f=n(5003);function p(e){return e&&e.__esModule?e:{default:e}}function m(e){return(0,l.default)(e,g)}var g=function(){function e(e){e&&e.assumeValid?this.__validationErrors=[]:(this.__validationErrors=void 0,(0,u.default)(e)||(0,s.default)(0,"Must provide configuration object."),!e.types||Array.isArray(e.types)||(0,s.default)(0,'"types" must be Array if provided but got: '.concat((0,a.default)(e.types),".")),!e.directives||Array.isArray(e.directives)||(0,s.default)(0,'"directives" must be Array if provided but got: '+"".concat((0,a.default)(e.directives),".")),!e.allowedLegacyNames||Array.isArray(e.allowedLegacyNames)||(0,s.default)(0,'"allowedLegacyNames" must be Array if provided but got: '+"".concat((0,a.default)(e.allowedLegacyNames),"."))),this.extensions=e.extensions&&(0,o.default)(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=e.extensionASTNodes,this.__allowedLegacyNames=e.allowedLegacyNames||[],this._queryType=e.query,this._mutationType=e.mutation,this._subscriptionType=e.subscription,this._directives=e.directives||h.specifiedDirectives;var t=[this._queryType,this._mutationType,this._subscriptionType,d.__Schema].concat(e.types),n=Object.create(null);n=t.reduce(v,n),n=this._directives.reduce(y,n),this._typeMap=n,this._possibleTypeMap=Object.create(null),this._implementations=Object.create(null);for(var r=0,l=(0,i.default)(this._typeMap);r<l.length;r++){var c=l[r];if((0,f.isObjectType)(c))for(var p=0,m=c.getInterfaces();p<m.length;p++){var g=m[p];if((0,f.isInterfaceType)(g)){var b=this._implementations[g.name];b?b.push(c):this._implementations[g.name]=[c]}}}}var t=e.prototype;return t.getQueryType=function(){return this._queryType},t.getMutationType=function(){return this._mutationType},t.getSubscriptionType=function(){return this._subscriptionType},t.getTypeMap=function(){return this._typeMap},t.getType=function(e){return this.getTypeMap()[e]},t.getPossibleTypes=function(e){return(0,f.isUnionType)(e)?e.getTypes():this._implementations[e.name]||[]},t.isPossibleType=function(e,t){if(null==this._possibleTypeMap[e.name]){for(var n=Object.create(null),r=0,i=this.getPossibleTypes(e);r<i.length;r++)n[i[r].name]=!0;this._possibleTypeMap[e.name]=n}return!!this._possibleTypeMap[e.name][t.name]},t.getDirectives=function(){return this._directives},t.getDirective=function(e){return(0,r.default)(this.getDirectives(),function(t){return t.name===e})},t.toConfig=function(){return{query:this.getQueryType(),mutation:this.getMutationType(),subscription:this.getSubscriptionType(),types:(0,i.default)(this.getTypeMap()),directives:this.getDirectives().slice(),extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes||[],assumeValid:void 0!==this.__validationErrors,allowedLegacyNames:this.__allowedLegacyNames}},e}();function v(e,t){if(!t)return e;var n=(0,f.getNamedType)(t),r=e[n.name];if(r){if(r!==n)throw Error('Schema must contain uniquely named types but contains multiple types named "'.concat(n.name,'".'));return e}e[n.name]=n;var a=e;if((0,f.isUnionType)(n)&&(a=n.getTypes().reduce(v,a)),(0,f.isObjectType)(n)&&(a=n.getInterfaces().reduce(v,a)),(0,f.isObjectType)(n)||(0,f.isInterfaceType)(n))for(var o=0,s=(0,i.default)(n.getFields());o<s.length;o++){var l=s[o];a=l.args.map(function(e){return e.type}).reduce(v,a),a=v(a,l.type)}if((0,f.isInputObjectType)(n))for(var u=0,c=(0,i.default)(n.getFields());u<c.length;u++)a=v(a,c[u].type);return a}function y(e,t){return(0,h.isDirective)(t)?t.args.reduce(function(e,t){return v(e,t.type)},e):e}t.GraphQLSchema=g,(0,c.default)(g)},1671:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateSchema=g,t.assertValidSchema=function(e){var t=g(e);if(0!==t.length)throw Error(t.map(function(e){return e.message}).join("\n\n"))};var r=m(n(7803)),i=m(n(5531)),a=m(n(1060)),o=m(n(5172)),s=m(n(8002)),l=n(5822),u=n(6526),c=n(298),d=n(7197),h=n(8155),f=n(6829),p=n(5003);
1function m(e){return e&&e.__esModule?e:{default:e}}function g(e){if((0,f.assertSchema)(e),e.__validationErrors)return e.__validationErrors;var t,n,i,l,u=new v(e);(n=(t=u.schema).getQueryType())?(0,p.isObjectType)(n)||u.reportError("Query root type must be Object type, it cannot be ".concat((0,s.default)(n),"."),y(t,n,"query")):u.reportError("Query root type must be provided.",t.astNode),(i=t.getMutationType())&&!(0,p.isObjectType)(i)&&u.reportError("Mutation root type must be Object type if provided, it cannot be "+"".concat((0,s.default)(i),"."),y(t,i,"mutation")),(l=t.getSubscriptionType())&&!(0,p.isObjectType)(l)&&u.reportError("Subscription root type must be Object type if provided, it cannot be "+"".concat((0,s.default)(l),"."),y(t,l,"subscription")),function(e){for(var t=0,n=e.schema.getDirectives();t<n.length;t++){var r=n[t];if(!(0,d.isDirective)(r)){e.reportError("Expected directive but got: ".concat((0,s.default)(r),"."),r&&r.astNode);continue}b(e,r);for(var i=Object.create(null),a=0,o=r.args;a<o.length;a++)if("continue"===function(t,n){var a=n[t],o=a.name;if(b(e,a),i[o])return e.reportError("Argument @".concat(r.name,"(").concat(o,":) can only be defined once."),r.astNode&&r.args.filter(function(e){return e.name===o}).map(function(e){return e.astNode})),"continue";i[o]=!0,(0,p.isInputType)(a.type)||e.reportError("The type of @".concat(r.name,"(").concat(o,":) must be Input Type ")+"but got: ".concat((0,s.default)(a.type),"."),a.astNode)}(a,o))continue}}(u),function(e){for(var t,n,i,l=(t=Object.create(null),n=[],i=Object.create(null),function r(o){if(!t[o.name]){t[o.name]=!0,i[o.name]=n.length;for(var s=(0,a.default)(o.getFields()),l=0;l<s.length;l++){var u=s[l];if((0,p.isNonNullType)(u.type)&&(0,p.isInputObjectType)(u.type.ofType)){var c=u.type.ofType,d=i[c.name];if(n.push(u),void 0===d)r(c);else{var h=n.slice(d),f=h.map(function(e){return e.name}).join(".");e.reportError('Cannot reference Input Object "'.concat(c.name,'" within itself through a series of non-null fields: "').concat(f,'".'),h.map(function(e){return e.astNode}))}n.pop()}}i[o.name]=void 0}}),u=e.schema.getTypeMap(),d=0,f=(0,a.default)(u);d<f.length;d++){var m=f[d];if(!(0,p.isNamedType)(m)){e.reportError("Expected GraphQL named type but got: ".concat((0,s.default)(m),"."),m&&m.astNode);continue}(0,h.isIntrospectionType)(m)||b(e,m),(0,p.isObjectType)(m)?(A(e,m),function(e,t){for(var n=Object.create(null),i=0,a=t.getInterfaces();i<a.length;i++){var l=a[i];if(!(0,p.isInterfaceType)(l)){e.reportError("Type ".concat((0,s.default)(t)," must only implement Interface types, ")+"it cannot implement ".concat((0,s.default)(l),"."),x(t,l));continue}if(n[l.name]){e.reportError("Type ".concat(t.name," can only implement ").concat(l.name," once."),x(t,l));continue}n[l.name]=!0,function(e,t,n){for(var i=t.getFields(),a=n.getFields(),l=0,u=(0,o.default)(a);l<u.length;l++){var d=u[l],h=d[0],f=d[1],m=i[h];if(!m){e.reportError("Interface field ".concat(n.name,".").concat(h," expected but ").concat(t.name," does not provide it."),[f.astNode].concat(E(t)));continue}(0,c.isTypeSubTypeOf)(e.schema,m.type,f.type)||e.reportError("Interface field ".concat(n.name,".").concat(h," expects type ")+"".concat((0,s.default)(f.type)," but ").concat(t.name,".").concat(h," ")+"is type ".concat((0,s.default)(m.type),"."),[f.astNode&&f.astNode.type,m.astNode&&m.astNode.type]);for(var g=0,v=f.args;g<v.length;g++)if("continue"===function(i,a){var o=a[i],l=o.name,u=(0,r.default)(m.args,function(e){return e.name===l});if(!u)return e.reportError("Interface field argument ".concat(n.name,".").concat(h,"(").concat(l,":) expected but ").concat(t.name,".").concat(h," does not provide it."),[o.astNode,m.astNode]),"continue";(0,c.isEqualType)(o.type,u.type)||e.reportError("Interface field argument ".concat(n.name,".").concat(h,"(").concat(l,":) ")+"expects type ".concat((0,s.default)(o.type)," but ")+"".concat(t.name,".").concat(h,"(").concat(l,":) is type ")+"".concat((0,s.default)(u.type),"."),[o.astNode&&o.astNode.type,u.astNode&&u.astNode.type])}(g,v))continue;for(var y=0,b=m.args;y<b.length;y++)!function(i,a){var o=a[i],s=o.name;!(0,r.default)(f.args,function(e){return e.name===s})&&(0,p.isRequiredArgument)(o)&&e.reportError("Object field ".concat(t.name,".").concat(h," includes required argument ").concat(s," that is missing from the Interface field ").concat(n.name,".").concat(h,"."),[o.astNode,f.astNode])}(y,b)}}(e,t,l)}}(e,m)):(0,p.isInterfaceType)(m)?A(e,m):(0,p.isUnionType)(m)?function(e,t){var n=t.getTypes();0===n.length&&e.reportError("Union type ".concat(t.name," must define one or more member types."),E(t));for(var r=Object.create(null),i=0;i<n.length;i++){var a=n[i];if(r[a.name]){e.reportError("Union type ".concat(t.name," can only include type ").concat(a.name," once."),T(t,a.name));continue}r[a.name]=!0,(0,p.isObjectType)(a)||e.reportError("Union type ".concat(t.name," can only include Object types, ")+"it cannot include ".concat((0,s.default)(a),"."),T(t,String(a)))}}(e,m):(0,p.isEnumType)(m)?function(e,t){var n=t.getValues();0===n.length&&e.reportError("Enum type ".concat(t.name," must define one or more values."),E(t));for(var r=0;r<n.length;r++){var i=n[r],a=i.name;b(e,i),("true"===a||"false"===a||"null"===a)&&e.reportError("Enum type ".concat(t.name," cannot include value: ").concat(a,"."),i.astNode)}}(e,m):(0,p.isInputObjectType)(m)&&(function(e,t){var n=(0,a.default)(t.getFields());0===n.length&&e.reportError("Input Object type ".concat(t.name," must define one or more fields."),E(t));for(var r=0;r<n.length;r++){var i=n[r];b(e,i),(0,p.isInputType)(i.type)||e.reportError("The type of ".concat(t.name,".").concat(i.name," must be Input Type ")+"but got: ".concat((0,s.default)(i.type),"."),i.astNode&&i.astNode.type)}}(e,m),l(m))}}(u);var m=u.getErrors();return e.__validationErrors=m,m}var v=function(){function e(e){this._errors=[],this.schema=e}var t=e.prototype;return t.reportError=function(e,t){var n=Array.isArray(t)?t.filter(Boolean):t;this.addError(new l.GraphQLError(e,n))},t.addError=function(e){this._errors.push(e)},t.getErrors=function(){return this._errors},e}();function y(e,t,n){for(var r=w(e,function(e){return e.operationTypes}),i=0;i<r.length;i++){var a=r[i];if(a.operation===n)return a.type}return t.astNode}function b(e,t){if(-1===e.schema.__allowedLegacyNames.indexOf(t.name)){var n=(0,u.isValidNameError)(t.name,t.astNode||void 0);n&&e.addError(n)}}function A(e,t){var n=(0,a.default)(t.getFields());0===n.length&&e.reportError("Type ".concat(t.name," must define one or more fields."),E(t));for(var r=0;r<n.length;r++){var i=n[r];b(e,i),(0,p.isOutputType)(i.type)||e.reportError("The type of ".concat(t.name,".").concat(i.name," must be Output Type ")+"but got: ".concat((0,s.default)(i.type),"."),i.astNode&&i.astNode.type);for(var o=Object.create(null),l=0,u=i.args;l<u.length;l++)!function(n,r){var a=r[n],l=a.name;b(e,a),o[l]&&e.reportError("Field argument ".concat(t.name,".").concat(i.name,"(").concat(l,":) can only be defined once."),i.args.filter(function(e){return e.name===l}).map(function(e){return e.astNode})),o[l]=!0,(0,p.isInputType)(a.type)||e.reportError("The type of ".concat(t.name,".").concat(i.name,"(").concat(l,":) must be Input ")+"Type but got: ".concat((0,s.default)(a.type),"."),a.astNode&&a.astNode.type)}(l,u)}}function E(e){var t=e.astNode,n=e.extensionASTNodes;return t?n?[t].concat(n):[t]:n||[]}function w(e,t){return(0,i.default)(E(e),function(e){return t(e)||[]})}function x(e,t){return w(e,function(e){return e.interfaces}).filter(function(e){return e.name.value===t.name})}function T(e,t){return w(e,function(e){return e.types}).filter(function(e){return e.name.value===t})}},6526:function(e,t,n){"use strict";
1Object.defineProperty(t,"__esModule",{value:!0}),t.assertValidName=function(e){var t=s(e);if(t)throw t;return e},t.isValidNameError=s;var r,i=(r=n(7242))&&r.__esModule?r:{default:r},a=n(5822),o=/^[_a-zA-Z][_a-zA-Z0-9]*$/;function s(e,t){return("string"==typeof e||(0,i.default)(0,"Expected string"),e.length>1&&"_"===e[0]&&"_"===e[1])?new a.GraphQLError('Name "'.concat(e,'" must not begin with "__", which is reserved by GraphQL introspection.'),t):o.test(e)?void 0:new a.GraphQLError('Names must match /^[_a-zA-Z][_a-zA-Z0-9]*$/ but "'.concat(e,'" does not.'),t)}},8115:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.astFromValue=function e(t,n){if((0,h.isNonNullType)(n)){var f=e(t,n.ofType);return f&&f.kind===c.Kind.NULL?null:f}if(null===t)return{kind:c.Kind.NULL};if((0,l.default)(t))return null;if((0,h.isListType)(n)){var m=n.ofType;if((0,r.isCollection)(t)){var g=[];return(0,r.forEach)(t,function(t){var n=e(t,m);n&&g.push(n)}),{kind:c.Kind.LIST,values:g}}return e(t,m)}if((0,h.isInputObjectType)(n)){if(!(0,u.default)(t))return null;for(var v=[],y=0,b=(0,i.default)(n.getFields());y<b.length;y++){var A=b[y],E=e(t[A.name],A.type);E&&v.push({kind:c.Kind.OBJECT_FIELD,name:{kind:c.Kind.NAME,value:A.name},value:E})}return{kind:c.Kind.OBJECT,fields:v}}if((0,h.isLeafType)(n)){var w=n.serialize(t);if((0,s.default)(w))return null;if("boolean"==typeof w)return{kind:c.Kind.BOOLEAN,value:w};if("number"==typeof w){var x=String(w);return p.test(x)?{kind:c.Kind.INT,value:x}:{kind:c.Kind.FLOAT,value:x}}if("string"==typeof w)return(0,h.isEnumType)(n)?{kind:c.Kind.ENUM,value:w}:n===d.GraphQLID&&p.test(w)?{kind:c.Kind.INT,value:w}:{kind:c.Kind.STRING,value:w};throw TypeError("Cannot convert value to AST: ".concat((0,a.default)(w)))}(0,o.default)(!1,"Unexpected input type: "+(0,a.default)(n))};var r=n(439),i=f(n(1060)),a=f(n(8002)),o=f(n(7706)),s=f(n(8290)),l=f(n(9573)),u=f(n(5690)),c=n(2828),d=n(2229),h=n(5003);function f(e){return e&&e.__esModule?e:{default:e}}var p=/^-?(?:0|[1-9][0-9]*)$/},298:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isEqualType=function e(t,n){return t===n||!!((0,r.isNonNullType)(t)&&(0,r.isNonNullType)(n)||(0,r.isListType)(t)&&(0,r.isListType)(n))&&e(t.ofType,n.ofType)},t.isTypeSubTypeOf=function e(t,n,i){return n===i||((0,r.isNonNullType)(i)?!!(0,r.isNonNullType)(n)&&e(t,n.ofType,i.ofType):(0,r.isNonNullType)(n)?e(t,n.ofType,i):(0,r.isListType)(i)?!!(0,r.isListType)(n)&&e(t,n.ofType,i.ofType):!(0,r.isListType)(n)&&!!((0,r.isAbstractType)(i)&&(0,r.isObjectType)(n)&&t.isPossibleType(i,n)))},t.doTypesOverlap=function(e,t,n){return t===n||((0,r.isAbstractType)(t)?(0,r.isAbstractType)(n)?e.getPossibleTypes(t).some(function(t){return e.isPossibleType(n,t)}):e.isPossibleType(t,n):!!(0,r.isAbstractType)(n)&&e.isPossibleType(n,t))};var r=n(5003)},7784:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.valueFromASTUntyped=function e(t,n){switch(t.kind){case s.Kind.NULL:return null;case s.Kind.INT:return parseInt(t.value,10);case s.Kind.FLOAT:return parseFloat(t.value);case s.Kind.STRING:case s.Kind.ENUM:case s.Kind.BOOLEAN:return t.value;case s.Kind.LIST:return t.values.map(function(t){return e(t,n)});case s.Kind.OBJECT:return(0,a.default)(t.fields,function(e){return e.name.value},function(t){return e(t.value,n)});case s.Kind.VARIABLE:var l=t.name.value;return n&&!(0,o.default)(n[l])?n[l]:void 0}(0,i.default)(!1,"Unexpected value node: "+(0,r.default)(t))};var r=l(n(8002)),i=l(n(7706)),a=l(n(7154)),o=l(n(9573)),s=n(2828);function l(e){return e&&e.__esModule?e:{default:e}}},1766:function(e,t,n){var r,i,a,o,s,l,u,c,d,h,f,p,m,g,v;(i=function(){this.init()}).prototype={init:function(){var e=this||a;return e._counter=1e3,e._html5AudioPool=[],e.html5PoolSize=10,e._codecs={},e._howls=[],e._muted=!1,e._volume=1,e._canPlayEvent="canplaythrough",e._navigator="undefined"!=typeof window&&window.navigator?window.navigator:null,e.masterGain=null,e.noAudio=!1,e.usingWebAudio=!0,e.autoSuspend=!0,e.ctx=null,e.autoUnlock=!0,e._setup(),e},volume:function(e){var t=this||a;if(e=parseFloat(e),t.ctx||f(),void 0!==e&&e>=0&&e<=1){if(t._volume=e,t._muted)return t;t.usingWebAudio&&t.masterGain.gain.setValueAtTime(e,a.ctx.currentTime);for(var n=0;n<t._howls.length;n++)if(!t._howls[n]._webAudio)for(var r=t._howls[n]._getSoundIds(),i=0;i<r.length;i++){var o=t._howls[n]._soundById(r[i]);o&&o._node&&(o._node.volume=o._volume*e)}return t}return t._volume},mute:function(e){var t=this||a;t.ctx||f(),t._muted=e,t.usingWebAudio&&t.masterGain.gain.setValueAtTime(e?0:t._volume,a.ctx.currentTime);for(var n=0;n<t._howls.length;n++)if(!t._howls[n]._webAudio)for(var r=t._howls[n]._getSoundIds(),i=0;i<r.length;i++){var o=t._howls[n]._soundById(r[i]);o&&o._node&&(o._node.muted=!!e||o._muted)}return t},stop:function(){for(var e=this||a,t=0;t<e._howls.length;t++)e._howls[t].stop();return e},unload:function(){for(var e=this||a,t=e._howls.length-1;t>=0;t--)e._howls[t].unload();return e.usingWebAudio&&e.ctx&&void 0!==e.ctx.close&&(e.ctx.close(),e.ctx=null,f()),e},codecs:function(e){return(this||a)._codecs[e.replace(/^x-/,"")]},_setup:function(){var e=this||a;if(e.state=e.ctx&&e.ctx.state||"suspended",e._autoSuspend(),!e.usingWebAudio){if("undefined"!=typeof Audio)try{var t=new Audio;void 0===t.oncanplaythrough&&(e._canPlayEvent="canplay")}catch(t){e.noAudio=!0}else e.noAudio=!0}try{var t=new Audio;t.muted&&(e.noAudio=!0)}catch(e){}return e.noAudio||e._setupCodecs(),e},_setupCodecs:function(){var e=this||a,t=null;try{t="undefined"!=typeof Audio?new Audio:null}catch(t){return e}if(!t||"function"!=typeof t.canPlayType)return e;var n=t.canPlayType("audio/mpeg;").replace(/^no$/,""),r=e._navigator?e._navigator.userAgent:"",i=r.match(/OPR\/(\d+)/g),o=i&&33>parseInt(i[0].split("/")[1],10),s=-1!==r.indexOf("Safari")&&-1===r.indexOf("Chrome"),l=r.match(/Version\/(.*?) /),u=s&&l&&15>parseInt(l[1],10);return e._codecs={mp3:!!(!o&&(n||t.canPlayType("audio/mp3;").replace(/^no$/,""))),mpeg:!!n,opus:!!t.canPlayType('audio/ogg; codecs="opus"').replace(/^no$/,""),ogg:!!t.canPlayType('audio/ogg; codecs="vorbis"').replace(/^no$/,""),oga:!!t.canPlayType('audio/ogg; codecs="vorbis"').replace(/^no$/,""),wav:!!(t.canPlayType('audio/wav; codecs="1"')||t.canPlayType("audio/wav")).replace(/^no$/,""),aac:!!t.canPlayType("audio/aac;").replace(/^no$/,""),caf:!!t.canPlayType("audio/x-caf;").replace(/^no$/,""),m4a:!!(t.canPlayType("audio/x-m4a;")||t.canPlayType("audio/m4a;")||t.canPlayType("audio/aac;")).replace(/^no$/,""),m4b:!!(t.canPlayType("audio/x-m4b;")||t.canPlayType("audio/m4b;")||t.canPlayType("audio/aac;")).replace(/^no$/,""),mp4:!!(t.canPlayType("audio/x-mp4;")||t.canPlayType("audio/mp4;")||t.canPlayType("audio/aac;")).replace(/^no$/,""),weba:!!(!u&&t.canPlayType('audio/webm; codecs="vorbis"').replace(/^no$/,"")),webm:!!(!u&&t.canPlayType('audio/webm; codecs="vorbis"').replace(/^no$/,"")),dolby:!!t.canPlayType('audio/mp4; codecs="ec-3"').replace(/^no$/,""),flac:!!(t.canPlayType("audio/x-flac;")||t.canPlayType("audio/flac;")).replace(/^no$/,"")},e},_unlockAudio:function(){var e=this||a;if(!e._audioUnlocked&&e.ctx){e._audioUnlocked=!1,e.autoUnlock=!1,e._mobileUnloaded||44100===e.ctx.sampleRate||(e._mobileUnloaded=!0,e.unload()),e._scratchBuffer=e.ctx.createBuffer(1,1,22050);var t=function(n){for(;e._html5AudioPool.length<e.html5PoolSize;)try{var r=new Audio;r._unlocked=!0,e._releaseHtml5Audio(r)}catch(t){e.noAudio=!0;break}for(var i=0;i<e._howls.length;i++)if(!e._howls[i]._webAudio)for(var a=e._howls[i]._getSoundIds(),o=0;o<a.length;o++){var s=e._howls[i]._soundById(a[o]);s&&s._node&&!s._node._unlocked&&(s._node._unlocked=!0,s._node.load())}e._autoResume();var l=e.ctx.createBufferSource();l.buffer=e._scratchBuffer,l.connect(e.ctx.destination),void 0===l.start?l.noteOn(0):l.start(0),"function"==typeof e.ctx.resume&&e.ctx.resume(),l.onended=function(){l.disconnect(0),e._audioUnlocked=!0,document.removeEventListener("touchstart",t,!0),document.removeEventListener("touchend",t,!0),document.removeEventListener("click",t,!0),document.removeEventListener("keydown",t,!0);for(var n=0;n<e._howls.length;n++)e._howls[n]._emit("unlock")}};return document.addEventListener("touchstart",t,!0),document.addEventListener("touchend",t,!0),document.addEventListener("click",t,!0),document.addEventListener("keydown",t,!0),e}},_obtainHtml5Audio:function(){var e=this||a;if(e._html5AudioPool.length)return e._html5AudioPool.pop();var t=new Audio().play();return t&&"undefined"!=typeof Promise&&(t instanceof Promise||"function"==typeof t.then)&&t.catch(function(){console.warn("HTML5 Audio pool exhausted, returning potentially locked audio object.")}),new Audio},_releaseHtml5Audio:function(e){var t=this||a;
1return e._unlocked&&t._html5AudioPool.push(e),t},_autoSuspend:function(){var e=this;if(e.autoSuspend&&e.ctx&&void 0!==e.ctx.suspend&&a.usingWebAudio){for(var t=0;t<e._howls.length;t++)if(e._howls[t]._webAudio){for(var n=0;n<e._howls[t]._sounds.length;n++)if(!e._howls[t]._sounds[n]._paused)return e}return e._suspendTimer&&clearTimeout(e._suspendTimer),e._suspendTimer=setTimeout(function(){if(e.autoSuspend){e._suspendTimer=null,e.state="suspending";var t=function(){e.state="suspended",e._resumeAfterSuspend&&(delete e._resumeAfterSuspend,e._autoResume())};e.ctx.suspend().then(t,t)}},3e4),e}},_autoResume:function(){var e=this;if(e.ctx&&void 0!==e.ctx.resume&&a.usingWebAudio)return"running"===e.state&&"interrupted"!==e.ctx.state&&e._suspendTimer?(clearTimeout(e._suspendTimer),e._suspendTimer=null):"suspended"===e.state||"running"===e.state&&"interrupted"===e.ctx.state?(e.ctx.resume().then(function(){e.state="running";for(var t=0;t<e._howls.length;t++)e._howls[t]._emit("resume")}),e._suspendTimer&&(clearTimeout(e._suspendTimer),e._suspendTimer=null)):"suspending"===e.state&&(e._resumeAfterSuspend=!0),e}},a=new i,(o=function(e){if(!e.src||0===e.src.length){console.error("An array of source files must be passed with any new Howl.");return}this.init(e)}).prototype={init:function(e){var t=this;return a.ctx||f(),t._autoplay=e.autoplay||!1,t._format="string"!=typeof e.format?e.format:[e.format],t._html5=e.html5||!1,t._muted=e.mute||!1,t._loop=e.loop||!1,t._pool=e.pool||5,t._preload="boolean"!=typeof e.preload&&"metadata"!==e.preload||e.preload,t._rate=e.rate||1,t._sprite=e.sprite||{},t._src="string"!=typeof e.src?e.src:[e.src],t._volume=void 0!==e.volume?e.volume:1,t._xhr={method:e.xhr&&e.xhr.method?e.xhr.method:"GET",headers:e.xhr&&e.xhr.headers?e.xhr.headers:null,withCredentials:!!e.xhr&&!!e.xhr.withCredentials&&e.xhr.withCredentials},t._duration=0,t._state="unloaded",t._sounds=[],t._endTimers={},t._queue=[],t._playLock=!1,t._onend=e.onend?[{fn:e.onend}]:[],t._onfade=e.onfade?[{fn:e.onfade}]:[],t._onload=e.onload?[{fn:e.onload}]:[],t._onloaderror=e.onloaderror?[{fn:e.onloaderror}]:[],t._onplayerror=e.onplayerror?[{fn:e.onplayerror}]:[],t._onpause=e.onpause?[{fn:e.onpause}]:[],t._onplay=e.onplay?[{fn:e.onplay}]:[],t._onstop=e.onstop?[{fn:e.onstop}]:[],t._onmute=e.onmute?[{fn:e.onmute}]:[],t._onvolume=e.onvolume?[{fn:e.onvolume}]:[],t._onrate=e.onrate?[{fn:e.onrate}]:[],t._onseek=e.onseek?[{fn:e.onseek}]:[],t._onunlock=e.onunlock?[{fn:e.onunlock}]:[],t._onresume=[],t._webAudio=a.usingWebAudio&&!t._html5,void 0!==a.ctx&&a.ctx&&a.autoUnlock&&a._unlockAudio(),a._howls.push(t),t._autoplay&&t._queue.push({event:"play",action:function(){t.play()}}),t._preload&&"none"!==t._preload&&t.load(),t},load:function(){var e,t,n=null;if(a.noAudio){this._emit("loaderror",null,"No audio support.");return}"string"==typeof this._src&&(this._src=[this._src]);for(var r=0;r<this._src.length;r++){if(this._format&&this._format[r])e=this._format[r];else{if("string"!=typeof(t=this._src[r])){this._emit("loaderror",null,"Non-string found in selected audio sources - ignoring.");continue}(e=/^data:audio\/([^;,]+);/i.exec(t))||(e=/\.([^.]+)$/.exec(t.split("?",1)[0])),e&&(e=e[1].toLowerCase())}if(e||console.warn('No file extension was found. Consider using the "format" property or specify an extension.'),e&&a.codecs(e)){n=this._src[r];break}}if(!n){this._emit("loaderror",null,"No codec support for selected audio sources.");return}return this._src=n,this._state="loading","https:"===window.location.protocol&&"http:"===n.slice(0,5)&&(this._html5=!0,this._webAudio=!1),new s(this),this._webAudio&&u(this),this},play:function(e,t){var n=this,r=null;if("number"==typeof e)r=e,e=null;else if("string"==typeof e&&"loaded"===n._state&&!n._sprite[e])return null;else if(void 0===e&&(e="__default",!n._playLock)){for(var i=0,o=0;o<n._sounds.length;o++)n._sounds[o]._paused&&!n._sounds[o]._ended&&(i++,r=n._sounds[o]._id);1===i?e=null:r=null}var s=r?n._soundById(r):n._inactiveSound();if(!s)return null;if(r&&!e&&(e=s._sprite||"__default"),"loaded"!==n._state){s._sprite=e,s._ended=!1;var l=s._id;return n._queue.push({event:"play",action:function(){n.play(l)}}),l}if(r&&!s._paused)return t||n._loadQueue("play"),s._id;n._webAudio&&a._autoResume();var u=Math.max(0,s._seek>0?s._seek:n._sprite[e][0]/1e3),c=Math.max(0,(n._sprite[e][0]+n._sprite[e][1])/1e3-u),d=1e3*c/Math.abs(s._rate),h=n._sprite[e][0]/1e3,f=(n._sprite[e][0]+n._sprite[e][1])/1e3;s._sprite=e,s._ended=!1;var p=function(){s._paused=!1,s._seek=u,s._start=h,s._stop=f,s._loop=!!(s._loop||n._sprite[e][2])};if(u>=f){n._ended(s);return}var m=s._node;if(n._webAudio){var g=function(){n._playLock=!1,p(),n._refreshBuffer(s);var e=s._muted||n._muted?0:s._volume;m.gain.setValueAtTime(e,a.ctx.currentTime),s._playStart=a.ctx.currentTime,void 0===m.bufferSource.start?s._loop?m.bufferSource.noteGrainOn(0,u,86400):m.bufferSource.noteGrainOn(0,u,c):s._loop?m.bufferSource.start(0,u,86400):m.bufferSource.start(0,u,c),d!==1/0&&(n._endTimers[s._id]=setTimeout(n._ended.bind(n,s),d)),t||setTimeout(function(){n._emit("play",s._id),n._loadQueue()},0)};"running"===a.state&&"interrupted"!==a.ctx.state?g():(n._playLock=!0,n.once("resume",g),n._clearTimer(s._id))}else{var v=function(){m.currentTime=u,m.muted=s._muted||n._muted||a._muted||m.muted,m.volume=s._volume*a.volume(),m.playbackRate=s._rate;try{var r=m.play();if(r&&"undefined"!=typeof Promise&&(r instanceof Promise||"function"==typeof r.then)?(n._playLock=!0,p(),r.then(function(){n._playLock=!1,m._unlocked=!0,t?n._loadQueue():n._emit("play",s._id)}).catch(function(){n._playLock=!1,n._emit("playerror",s._id,"Playback was unable to start. This is most commonly an issue on mobile devices and Chrome where playback was not within a user interaction."),s._ended=!0,s._paused=!0})):t||(n._playLock=!1,p(),n._emit("play",s._id)),m.playbackRate=s._rate,m.paused){n._emit("playerror",s._id,"Playback was unable to start. This is most commonly an issue on mobile devices and Chrome where playback was not within a user interaction.");return}"__default"!==e||s._loop?n._endTimers[s._id]=setTimeout(n._ended.bind(n,s),d):(n._endTimers[s._id]=function(){n._ended(s),m.removeEventListener("ended",n._endTimers[s._id],!1)},m.addEventListener("ended",n._endTimers[s._id],!1))}catch(e){n._emit("playerror",s._id,e)}};"data:audio/wav;base64,UklGRigAAABXQVZFZm10IBIAAAABAAEARKwAAIhYAQACABAAAABkYXRhAgAAAAEA"===m.src&&(m.src=n._src,m.load());var y=window&&window.ejecta||!m.readyState&&a._navigator.isCocoonJS;if(m.readyState>=3||y)v();else{n._playLock=!0,n._state="loading";var b=function(){n._state="loaded",v(),m.removeEventListener(a._canPlayEvent,b,!1)};m.addEventListener(a._canPlayEvent,b,!1),n._clearTimer(s._id)}}return s._id},pause:function(e){var t=this;if("loaded"!==t._state||t._playLock)return t._queue.push({event:"pause",action:function(){t.pause(e)}}),t;for(var n=t._getSoundIds(e),r=0;r<n.length;r++){t._clearTimer(n[r]);var i=t._soundById(n[r]);if(i&&!i._paused&&(i._seek=t.seek(n[r]),i._rateSeek=0,i._paused=!0,t._stopFade(n[r]),i._node)){if(t._webAudio){if(!i._node.bufferSource)continue;void 0===i._node.bufferSource.stop?i._node.bufferSource.noteOff(0):i._node.bufferSource.stop(0),t._cleanBuffer(i._node)}else isNaN(i._node.duration)&&i._node.duration!==1/0||i._node.pause()}arguments[1]||t._emit("pause",i?i._id:null)}return t},stop:function(e,t){var n=this;if("loaded"!==n._state||n._playLock)return n._queue.push({event:"stop",action:function(){n.stop(e)}}),n;for(var r=n._getSoundIds(e),i=0;i<r.length;i++){n._clearTimer(r[i]);var a=n._soundById(r[i]);a&&(a._seek=a._start||0,a._rateSeek=0,a._paused=!0,a._ended=!0,n._stopFade(r[i]),a._node&&(n._webAudio?a._node.bufferSource&&(void 0===a._node.bufferSource.stop?a._node.bufferSource.noteOff(0):a._node.bufferSource.stop(0),n._cleanBuffer(a._node)):isNaN(a._node.duration)&&a._node.duration!==1/0||(a._node.currentTime=a._start||0,a._node.pause(),a._node.duration===1/0&&n._clearSound(a._node))),t||n._emit("stop",a._id))}return n},mute:function(e,t){var n=this;if("loaded"!==n._state||n._playLock)return n._queue.push({event:"mute",action:function(){n.mute(e,t)}}),n;if(void 0===t){if("boolean"!=typeof e)return n._muted;n._muted=e}for(var r=n._getSoundIds(t),i=0;i<r.length;i++){var o=n._soundById(r[i]);o&&(o._muted=e,o._interval&&n._stopFade(o._id),n._webAudio&&o._node?o._node.gain.setValueAtTime(e?0:o._volume,a.ctx.currentTime):o._node&&(o._node.muted=!!a._muted||e),n._emit("mute",o._id))}return n},volume:function(){var e,t,n,r=this,i=arguments;if(0===i.length)return r._volume;if(1===i.length||2===i.length&&void 0===i[1]?r._getSoundIds().indexOf(i[0])>=0?t=parseInt(i[0],10):e=parseFloat(i[0]):i.length>=2&&(e=parseFloat(i[0]),t=parseInt(i[1],10)),void 0===e||!(e>=0)||!(e<=1))return(n=t?r._soundById(t):r._sounds[0])?n._volume:0;if("loaded"!==r._state||r._playLock)return r._queue.push({event:"volume",action:function(){r.volume.apply(r,i)}}),r;void 0===t&&(r._volume=e),t=r._getSoundIds(t);for(var o=0;o<t.length;o++)(n=r._soundById(t[o]))&&(n._volume=e,i[2]||r._stopFade(t[o]),r._webAudio&&n._node&&!n._muted?n._node.gain.setValueAtTime(e,a.ctx.currentTime):n._node&&!n._muted&&(n._node.volume=e*a.volume()),r._emit
1("volume",n._id));return r},fade:function(e,t,n,r){var i=this;if("loaded"!==i._state||i._playLock)return i._queue.push({event:"fade",action:function(){i.fade(e,t,n,r)}}),i;e=Math.min(Math.max(0,parseFloat(e)),1),t=Math.min(Math.max(0,parseFloat(t)),1),n=parseFloat(n),i.volume(e,r);for(var o=i._getSoundIds(r),s=0;s<o.length;s++){var l=i._soundById(o[s]);if(l){if(r||i._stopFade(o[s]),i._webAudio&&!l._muted){var u=a.ctx.currentTime,c=u+n/1e3;l._volume=e,l._node.gain.setValueAtTime(e,u),l._node.gain.linearRampToValueAtTime(t,c)}i._startFadeInterval(l,e,t,n,o[s],void 0===r)}}return i},_startFadeInterval:function(e,t,n,r,i,a){var o=this,s=t,l=n-t,u=Math.abs(l/.01),c=Math.max(4,u>0?r/u:r),d=Date.now();e._fadeTo=n,e._interval=setInterval(function(){var i=(Date.now()-d)/r;d=Date.now(),s+=l*i,s=Math.round(100*s)/100,s=l<0?Math.max(n,s):Math.min(n,s),o._webAudio?e._volume=s:o.volume(s,e._id,!0),a&&(o._volume=s),(n<t&&s<=n||n>t&&s>=n)&&(clearInterval(e._interval),e._interval=null,e._fadeTo=null,o.volume(n,e._id),o._emit("fade",e._id))},c)},_stopFade:function(e){var t=this._soundById(e);return t&&t._interval&&(this._webAudio&&t._node.gain.cancelScheduledValues(a.ctx.currentTime),clearInterval(t._interval),t._interval=null,this.volume(t._fadeTo,e),t._fadeTo=null,this._emit("fade",e)),this},loop:function(){var e,t,n,r=arguments;if(0===r.length)return this._loop;if(1===r.length){if("boolean"!=typeof r[0])return!!(n=this._soundById(parseInt(r[0],10)))&&n._loop;e=r[0],this._loop=e}else 2===r.length&&(e=r[0],t=parseInt(r[1],10));for(var i=this._getSoundIds(t),a=0;a<i.length;a++)(n=this._soundById(i[a]))&&(n._loop=e,this._webAudio&&n._node&&n._node.bufferSource&&(n._node.bufferSource.loop=e,e&&(n._node.bufferSource.loopStart=n._start||0,n._node.bufferSource.loopEnd=n._stop,this.playing(i[a])&&(this.pause(i[a],!0),this.play(i[a],!0)))));return this},rate:function(){var e,t,n,r=this,i=arguments;if(0===i.length?t=r._sounds[0]._id:1===i.length?r._getSoundIds().indexOf(i[0])>=0?t=parseInt(i[0],10):e=parseFloat(i[0]):2===i.length&&(e=parseFloat(i[0]),t=parseInt(i[1],10)),"number"!=typeof e)return(n=r._soundById(t))?n._rate:r._rate;if("loaded"!==r._state||r._playLock)return r._queue.push({event:"rate",action:function(){r.rate.apply(r,i)}}),r;void 0===t&&(r._rate=e),t=r._getSoundIds(t);for(var o=0;o<t.length;o++)if(n=r._soundById(t[o])){r.playing(t[o])&&(n._rateSeek=r.seek(t[o]),n._playStart=r._webAudio?a.ctx.currentTime:n._playStart),n._rate=e,r._webAudio&&n._node&&n._node.bufferSource?n._node.bufferSource.playbackRate.setValueAtTime(e,a.ctx.currentTime):n._node&&(n._node.playbackRate=e);var s=r.seek(t[o]),l=1e3*((r._sprite[n._sprite][0]+r._sprite[n._sprite][1])/1e3-s)/Math.abs(n._rate);(r._endTimers[t[o]]||!n._paused)&&(r._clearTimer(t[o]),r._endTimers[t[o]]=setTimeout(r._ended.bind(r,n),l)),r._emit("rate",n._id)}return r},seek:function(){var e,t,n=this,r=arguments;if(0===r.length?n._sounds.length&&(t=n._sounds[0]._id):1===r.length?n._getSoundIds().indexOf(r[0])>=0?t=parseInt(r[0],10):n._sounds.length&&(t=n._sounds[0]._id,e=parseFloat(r[0])):2===r.length&&(e=parseFloat(r[0]),t=parseInt(r[1],10)),void 0===t)return 0;if("number"==typeof e&&("loaded"!==n._state||n._playLock))return n._queue.push({event:"seek",action:function(){n.seek.apply(n,r)}}),n;var i=n._soundById(t);if(i){if("number"==typeof e&&e>=0){var o=n.playing(t);o&&n.pause(t,!0),i._seek=e,i._ended=!1,n._clearTimer(t),n._webAudio||!i._node||isNaN(i._node.duration)||(i._node.currentTime=e);var s=function(){o&&n.play(t,!0),n._emit("seek",t)};if(o&&!n._webAudio){var l=function(){n._playLock?setTimeout(l,0):s()};setTimeout(l,0)}else s()}else{if(!n._webAudio)return i._node.currentTime;var u=n.playing(t)?a.ctx.currentTime-i._playStart:0,c=i._rateSeek?i._rateSeek-i._seek:0;return i._seek+(c+u*Math.abs(i._rate))}}return n},playing:function(e){if("number"==typeof e){var t=this._soundById(e);return!!t&&!t._paused}for(var n=0;n<this._sounds.length;n++)if(!this._sounds[n]._paused)return!0;return!1},duration:function(e){var t=this._duration,n=this._soundById(e);return n&&(t=this._sprite[n._sprite][1]/1e3),t},state:function(){return this._state},unload:function(){for(var e=this,t=e._sounds,n=0;n<t.length;n++)t[n]._paused||e.stop(t[n]._id),e._webAudio||(e._clearSound(t[n]._node),t[n]._node.removeEventListener("error",t[n]._errorFn,!1),t[n]._node.removeEventListener(a._canPlayEvent,t[n]._loadFn,!1),t[n]._node.removeEventListener("ended",t[n]._endFn,!1),a._releaseHtml5Audio(t[n]._node)),delete t[n]._node,e._clearTimer(t[n]._id);var r=a._howls.indexOf(e);r>=0&&a._howls.splice(r,1);var i=!0;for(n=0;n<a._howls.length;
1n++)if(a._howls[n]._src===e._src||e._src.indexOf(a._howls[n]._src)>=0){i=!1;break}return l&&i&&delete l[e._src],a.noAudio=!1,e._state="unloaded",e._sounds=[],e=null,null},on:function(e,t,n,r){var i=this["_on"+e];return"function"==typeof t&&i.push(r?{id:n,fn:t,once:r}:{id:n,fn:t}),this},off:function(e,t,n){var r=this["_on"+e],i=0;if("number"==typeof t&&(n=t,t=null),t||n)for(i=0;i<r.length;i++){var a=n===r[i].id;if(t===r[i].fn&&a||!t&&a){r.splice(i,1);break}}else if(e)this["_on"+e]=[];else{var o=Object.keys(this);for(i=0;i<o.length;i++)0===o[i].indexOf("_on")&&Array.isArray(this[o[i]])&&(this[o[i]]=[])}return this},once:function(e,t,n){return this.on(e,t,n,1),this},_emit:function(e,t,n){for(var r=this["_on"+e],i=r.length-1;i>=0;i--)(!r[i].id||r[i].id===t||"load"===e)&&(setTimeout((function(e){e.call(this,t,n)}).bind(this,r[i].fn),0),r[i].once&&this.off(e,r[i].fn,r[i].id));return this._loadQueue(e),this},_loadQueue:function(e){if(this._queue.length>0){var t=this._queue[0];t.event===e&&(this._queue.shift(),this._loadQueue()),e||t.action()}return this},_ended:function(e){var t=e._sprite;if(!this._webAudio&&e._node&&!e._node.paused&&!e._node.ended&&e._node.currentTime<e._stop)return setTimeout(this._ended.bind(this,e),100),this;var n=!!(e._loop||this._sprite[t][2]);if(this._emit("end",e._id),!this._webAudio&&n&&this.stop(e._id,!0).play(e._id),this._webAudio&&n){this._emit("play",e._id),e._seek=e._start||0,e._rateSeek=0,e._playStart=a.ctx.currentTime;var r=(e._stop-e._start)*1e3/Math.abs(e._rate);this._endTimers[e._id]=setTimeout(this._ended.bind(this,e),r)}return this._webAudio&&!n&&(e._paused=!0,e._ended=!0,e._seek=e._start||0,e._rateSeek=0,this._clearTimer(e._id),this._cleanBuffer(e._node),a._autoSuspend()),this._webAudio||n||this.stop(e._id,!0),this},_clearTimer:function(e){if(this._endTimers[e]){if("function"!=typeof this._endTimers[e])clearTimeout(this._endTimers[e]);else{var t=this._soundById(e);t&&t._node&&t._node.removeEventListener("ended",this._endTimers[e],!1)}delete this._endTimers[e]}return this},_soundById:function(e){for(var t=0;t<this._sounds.length;t++)if(e===this._sounds[t]._id)return this._sounds[t];return null},_inactiveSound:function(){this._drain();for(var e=0;e<this._sounds.length;e++)if(this._sounds[e]._ended)return this._sounds[e].reset();return new s(this)},_drain:function(){var e=this._pool,t=0,n=0;if(!(this._sounds.length<e)){for(n=0;n<this._sounds.length;n++)this._sounds[n]._ended&&t++;for(n=this._sounds.length-1;n>=0;n--){if(t<=e)return;this._sounds[n]._ended&&(this._webAudio&&this._sounds[n]._node&&this._sounds[n]._node.disconnect(0),this._sounds.splice(n,1),t--)}}},_getSoundIds:function(e){if(void 0!==e)return[e];for(var t=[],n=0;n<this._sounds.length;n++)t.push(this._sounds[n]._id);return t},_refreshBuffer:function(e){return e._node.bufferSource=a.ctx.createBufferSource(),e._node.bufferSource.buffer=l[this._src],e._panner?e._node.bufferSource.connect(e._panner):e._node.bufferSource.connect(e._node),e._node.bufferSource.loop=e._loop,e._loop&&(e._node.bufferSource.loopStart=e._start||0,e._node.bufferSource.loopEnd=e._stop||0),e._node.bufferSource.playbackRate.setValueAtTime(e._rate,a.ctx.currentTime),this},_cleanBuffer:function(e){var t=a._navigator&&a._navigator.vendor.indexOf("Apple")>=0;if(!e.bufferSource)return this;if(a._scratchBuffer&&e.bufferSource&&(e.bufferSource.onended=null,e.bufferSource.disconnect(0),t))try{e.bufferSource.buffer=a._scratchBuffer}catch(e){}return e.bufferSource=null,this},_clearSound:function(e){/MSIE |Trident\//.test(a._navigator&&a._navigator.userAgent)||(e.src="data:audio/wav;base64,UklGRigAAABXQVZFZm10IBIAAAABAAEARKwAAIhYAQACABAAAABkYXRhAgAAAAEA")}},(s=function(e){this._parent=e,this.init()}).prototype={init:function(){var e=this._parent;return this._muted=e._muted,this._loop=e._loop,this._volume=e._volume,this._rate=e._rate,this._seek=0,this._paused=!0,this._ended=!0,this._sprite="__default",this._id=++a._counter,e._sounds.push(this),this.create(),this},create:function(){var e=this._parent,t=a._muted||this._muted||this._parent._muted?0:this._volume;return e._webAudio?(this._node=void 0===a.ctx.createGain?a.ctx.createGainNode():a.ctx.createGain(),this._node.gain.setValueAtTime(t,a.ctx.currentTime),this._node.paused=!0,this._node.connect(a.masterGain)):a.noAudio||(this._node=a._obtainHtml5Audio(),this._errorFn=this._errorListener.bind(this),this._node.addEventListener("error",this._errorFn,!1),this._loadFn=this._loadListener.bind(this),this._node.addEventListener(a._canPlayEvent,this._loadFn,!1),this._endFn=this._endListener.bind(this),this._node.addEventListener("ended",this._endFn,!1),this._node.src=e._src,this._node.preload=!0===e._preload?"auto":e._preload,this._node.volume=t*a.volume(),this._node.load()),this},reset:function(){var e=this._parent;return this._muted=e._muted,this._loop=e._loop,this._volume=e._volume,this._rate=e._rate,this._seek=0,this._rateSeek=0,this._paused=!0,this._ended=!0,this._sprite="__default",this._id=++a._counter,this},_errorListener:function(){this._parent._emit("loaderror",this._id,this._node.error?this._node.error.code:0),this._node.removeEventListener("error",this._errorFn,!1)},_loadListener:function(){var e=this._parent;e._duration=Math.ceil(10*this._node.duration)/10,0===Object.keys(e._sprite).length&&(e._sprite={__default:[0,1e3*e._duration]}),"loaded"!==e._state&&(e._state="loaded",e._emit("load"),e._loadQueue()),this._node.removeEventListener(a._canPlayEvent,this._loadFn,!1)},_endListener:function(){var e=this._parent;e._duration===1/0&&(e._duration=Math.ceil(10*this._node.duration)/10,e._sprite.__default[1]===1/0&&(e._sprite.__default[1]=1e3*e._duration),e._ended(this)),this._node.removeEventListener("ended",this._endFn,!1)}},l={},u=function(e){var t=e._src;if(l[t]){e._duration=l[t].duration,h(e);return}if(/^data:[^;]+;
1base64,/.test(t)){for(var n=atob(t.split(",")[1]),r=new Uint8Array(n.length),i=0;i<n.length;++i)r[i]=n.charCodeAt(i);d(r.buffer,e)}else{var a=new XMLHttpRequest;a.open(e._xhr.method,t,!0),a.withCredentials=e._xhr.withCredentials,a.responseType="arraybuffer",e._xhr.headers&&Object.keys(e._xhr.headers).forEach(function(t){a.setRequestHeader(t,e._xhr.headers[t])}),a.onload=function(){var t=(a.status+"")[0];if("0"!==t&&"2"!==t&&"3"!==t){e._emit("loaderror",null,"Failed loading audio file with status: "+a.status+".");return}d(a.response,e)},a.onerror=function(){e._webAudio&&(e._html5=!0,e._webAudio=!1,e._sounds=[],delete l[t],e.load())},c(a)}},c=function(e){try{e.send()}catch(t){e.onerror()}},d=function(e,t){var n=function(){t._emit("loaderror",null,"Decoding audio data failed.")},r=function(e){e&&t._sounds.length>0?(l[t._src]=e,h(t,e)):n()};"undefined"!=typeof Promise&&1===a.ctx.decodeAudioData.length?a.ctx.decodeAudioData(e).then(r).catch(n):a.ctx.decodeAudioData(e,r,n)},h=function(e,t){t&&!e._duration&&(e._duration=t.duration),0===Object.keys(e._sprite).length&&(e._sprite={__default:[0,1e3*e._duration]}),"loaded"!==e._state&&(e._state="loaded",e._emit("load"),e._loadQueue())},f=function(){if(a.usingWebAudio){try{"undefined"!=typeof AudioContext?a.ctx=new AudioContext:"undefined"!=typeof webkitAudioContext?a.ctx=new webkitAudioContext:a.usingWebAudio=!1}catch(e){a.usingWebAudio=!1}a.ctx||(a.usingWebAudio=!1);var e=/iP(hone|od|ad)/.test(a._navigator&&a._navigator.platform),t=a._navigator&&a._navigator.appVersion.match(/OS (\d+)_(\d+)_?(\d+)?/),n=t?parseInt(t[1],10):null;if(e&&n&&n<9){var r=/safari/.test(a._navigator&&a._navigator.userAgent.toLowerCase());a._navigator&&!r&&(a.usingWebAudio=!1)}a.usingWebAudio&&(a.masterGain=void 0===a.ctx.createGain?a.ctx.createGainNode():a.ctx.createGain(),a.masterGain.gain.setValueAtTime(a._muted?0:a._volume,a.ctx.currentTime),a.masterGain.connect(a.ctx.destination)),a._setup()}},void 0!==(r=(function(){return{Howler:a,Howl:o}}).apply(t,[]))&&(e.exports=r),t.Howler=a,t.Howl=o,void 0!==n.g?(n.g.HowlerGlobal=i,n.g.Howler=a,n.g.Howl=o,n.g.Sound=s):"undefined"!=typeof window&&(window.HowlerGlobal=i,window.Howler=a,window.Howl=o,window.Sound=s),HowlerGlobal.prototype._pos=[0,0,0],HowlerGlobal.prototype._orientation=[0,0,-1,0,1,0],HowlerGlobal.prototype.stereo=function(e){if(!this.ctx||!this.ctx.listener)return this;for(var t=this._howls.length-1;t>=0;t--)this._howls[t].stereo(e);return this},HowlerGlobal.prototype.pos=function(e,t,n){return this.ctx&&this.ctx.listener?(t="number"!=typeof t?this._pos[1]:t,n="number"!=typeof n?this._pos[2]:n,"number"!=typeof e)?this._pos:(this._pos=[e,t,n],void 0!==this.ctx.listener.positionX?(this.ctx.listener.positionX.setTargetAtTime(this._pos[0],Howler.ctx.currentTime,.1),this.ctx.listener.positionY.setTargetAtTime(this._pos[1],Howler.ctx.currentTime,.1),this.ctx.listener.positionZ.setTargetAtTime(this._pos[2],Howler.ctx.currentTime,.1)):this.ctx.listener.setPosition(this._pos[0],this._pos[1],this._pos[2]),this):this},HowlerGlobal.prototype.orientation=function(e,t,n,r,i,a){if(!this.ctx||!this.ctx.listener)return this;var o=this._orientation;return(t="number"!=typeof t?o[1]:t,n="number"!=typeof n?o[2]:n,r="number"!=typeof r?o[3]:r,i="number"!=typeof i?o[4]:i,a="number"!=typeof a?o[5]:a,"number"!=typeof e)?o:(this._orientation=[e,t,n,r,i,a],void 0!==this.ctx.listener.forwardX?(this.ctx.listener.forwardX.setTargetAtTime(e,Howler.ctx.currentTime,.1),this.ctx.listener.forwardY.setTargetAtTime(t,Howler.ctx.currentTime,.1),this.ctx.listener.forwardZ.setTargetAtTime(n,Howler.ctx.currentTime,.1),this.ctx.listener.upX.setTargetAtTime(r,Howler.ctx.currentTime,.1),this.ctx.listener.upY.setTargetAtTime(i,Howler.ctx.currentTime,.1),this.ctx.listener.upZ.setTargetAtTime(a,Howler.ctx.currentTime,.1)):this.ctx.listener.setOrientation(e,t,n,r,i,a),this)},Howl.prototype.init=(p=Howl.prototype.init,function(e){return this._orientation=e.orientation||[1,0,0],this._stereo=e.stereo||null,this._pos=e.pos||null,this._pannerAttr={coneInnerAngle:void 0!==e.coneInnerAngle?e.coneInnerAngle:360,coneOuterAngle:void 0!==e.coneOuterAngle?e.coneOuterAngle:360,coneOuterGain:void 0!==e.coneOuterGain?e.coneOuterGain:0,distanceModel:void 0!==e.distanceModel?e.distanceModel:"inverse",maxDistance:void 0!==e.maxDistance?e.maxDistance:1e4,panningModel:void 0!==e.panningModel?e.panningModel:"HRTF",refDistance:void 0!==e.refDistance?e.refDistance:1,rolloffFactor:void 0!==e.rolloffFactor?e.rolloffFactor:1},this._onstereo=e.onstereo?[{fn:e.onstereo}]:[],this._onpos=e.onpos?[{fn:e.onpos}]:[],this._onorientation=e.onorientation?[{fn:e.onorientation}]:[],p.call(this,e)}),Howl.prototype.stereo=function(e,t){var n=this;if(!n._webAudio)return n;if("loaded"!==n._state)return n._queue.push({event:"stereo",action:function(){n.stereo(e,t)}}),n;var r=void 0===Howler.ctx.createStereoPanner?"spatial":"stereo";if(void 0===t){if("number"!=typeof e)return n._stereo;n._stereo=e,n._pos=[e,0,0]}for(var i=n._getSoundIds(t),a=0;a<i.length;a++){var o=n._soundById(i[a]);if(o){if("number"!=typeof e)return o._stereo;o._stereo=e,o._pos=[e,0,0],o._node&&(o._pannerAttr.panningModel="equalpower",o._panner&&o._panner.pan||v(o,r),"spatial"===r?void 0!==o._panner.positionX?(o._panner.positionX.setValueAtTime(e,Howler.ctx.currentTime),o._panner.positionY.setValueAtTime(0,Howler.ctx.currentTime),o._panner.positionZ.setValueAtTime(0,Howler.ctx.currentTime)):o._panner.setPosition(e,0,0):o._panner.pan.setValueAtTime(e,Howler.ctx.currentTime)),n._emit("stereo",o._id)}}return n},Howl.prototype.pos=function(e,t,n,r){var i=this;if(!i._webAudio)return i;if("loaded"!==i._state)return i._queue.push({event:"pos",action:function(){i.pos(e,t,n,r)}}),i;if(t="number"!=typeof t?0:t,n="number"!=typeof n?-.5:n,void 0===r){if("number"!=typeof e)return i._pos;i._pos=[e,t,n]}for(var a=i._getSoundIds(r),o=0;o<a.length;o++){var s=i._soundById(a[o]);if(s){if("number"!=typeof e)return s._pos;s._pos=[e,t,n],s._node&&((!s._panner||s._panner.pan)&&v(s,"spatial"),void 0!==s._panner.positionX?(s._panner.positionX.setValueAtTime(e,Howler.ctx.currentTime),s._panner.positionY.setValueAtTime(t,Howler.ctx.currentTime),s._panner.positionZ.setValueAtTime(n,Howler.ctx.currentTime)):s._panner.setPosition(e,t,n)),i._emit("pos",s._id)}}return i},Howl.prototype.orientation=function(e,t,n,r){var i=this;if(!i._webAudio)return i;if("loaded"!==i._state)return i._queue.push({event:"orientation",action:function(){i.orientation(e,t,n,r)}}),i;if(t="number"!=typeof t?i._orientation[1]:t,n="number"!=typeof n?i._orientation[2]:n,void 0===r){if("number"!=typeof e)return i._orientation;i._orientation=[e,t,n]}for(var a=i._getSoundIds(r),o=0;o<a.length;o++){var s=i._soundById(a[o]);if(s){if("number"!=typeof e)return s._orientation;s._orientation=[e,t,n],s._node&&(s._panner||(s._pos||(s._pos=i._pos||[0,0,-.5]),v(s,"spatial")),void 0!==s._panner.orientationX?(s._panner.orientationX.setValueAtTime(e,Howler.ctx.currentTime),s._panner.orientationY.setValueAtTime(t,Howler.ctx.currentTime),s._panner.orientationZ.setValueAtTime(n,Howler.ctx.currentTime)):s._panner.setOrientation(e,t,n)),i._emit("orientation",s._id)}}return i},Howl.prototype.pannerAttr=function(){var e,t,n,r=arguments;if(!this._webAudio)return this;if(0===r.length)return this._pannerAttr;if(1===r.length){if("object"!=typeof r[0])return(n=this._soundById(parseInt(r[0],10)))?n._pannerAttr:this._pannerAttr;e=r[0],void 0===t&&(e.pannerAttr||(e.pannerAttr={coneInnerAngle:e.coneInnerAngle,coneOuterAngle:e.coneOuterAngle,coneOuterGain:e.coneOuterGain,distanceModel:e.distanceModel,maxDistance:e.maxDistance,refDistance:e.refDistance,rolloffFactor:e.rolloffFactor,panningModel:e.panningModel}),this._pannerAttr={coneInnerAngle:void 0!==e.pannerAttr.coneInnerAngle?e.pannerAttr.coneInnerAngle:this._coneInnerAngle,coneOuterAngle:void 0!==e.pannerAttr.coneOuterAngle?e.pannerAttr.coneOuterAngle:this._coneOuterAngle,coneOuterGain:void 0!==e.pannerAttr.coneOuterGain?e.pannerAttr.coneOuterGain:this._coneOuterGain,distanceModel:void 0!==e.pannerAttr.distanceModel?e.pannerAttr.distanceModel:this._distanceModel,maxDistance:void 0!==e.pannerAttr.maxDistance?e.pannerAttr.maxDistance:this._maxDistance,refDistance:void 0!==e.pannerAttr.refDistance?e.pannerAttr.refDistance:this._refDistance,rolloffFactor:void 0!==e.pannerAttr.rolloffFactor?e.pannerAttr.rolloffFactor:this._rolloffFactor,panningModel:void 0!==e.pannerAttr.panningModel?e.pannerAttr.panningModel:this._panningModel})}else 2===r.length&&(e=r[0],t=parseInt(r[1],10));for(var i=this._getSoundIds(t),a=0;a<i.length;a++)if(n=this._soundById(i[a])){var o=n._pannerAttr;o={coneInnerAngle:void 0!==e.coneInnerAngle?e.coneInnerAngle:o.coneInnerAngle,coneOuterAngle:void 0!==e.coneOuterAngle?e.coneOuterAngle:o.coneOuterAngle,coneOuterGain:void 0!==e.coneOuterGain?e.coneOuterGain:o.coneOuterGain,distanceModel:void 0!==e.distanceModel?e.distanceModel:o.distanceModel,maxDistance:void 0!==e.maxDistance?e.maxDistance:o.maxDistance,refDistance:void 0!==e.refDistance?e.refDistance:o.refDistance,rolloffFactor:void 0!==e.rolloffFactor?e.rolloffFactor:o.rolloffFactor,panningModel:void 0!==e.panningModel?e.panningModel:o.panningModel};var s=n._panner;s||(n._pos||(n._pos=this._pos||[0,0,-.5]),v(n,"spatial"),s=n._panner),s.coneInnerAngle=o.coneInnerAngle,s.coneOuterAngle=o.coneOuterAngle,s.coneOuterGain=o.coneOuterGain,s.distanceModel=o.distanceModel,s.maxDistance=o.maxDistance,s.refDistance=o.refDistance,s.rolloffFactor=o.rolloffFactor,s.panningModel=o.panningModel}return this},Sound.prototype.init=(m=Sound.prototype.init,function(){var e=this._parent;this._orientation=e._orientation,this._stereo=e._stereo,this._pos=e._pos,this._pannerAttr=e._pannerAttr,m.call(this),this._stereo?e.stereo(this._stereo):this._pos&&e.pos(this._pos[0],this._pos[1],this._pos[2],this._id)}),Sound.prototype.reset=(g=Sound.prototype.reset,function(){var e=this._parent;return this._orientation=e._orientation,this._stereo=e._stereo,this._pos=e._pos,this._pannerAttr=e._pannerAttr,this._stereo?e.stereo(this._stereo):this._pos?e.pos(this._pos[0],this._pos[1],this._pos[2],this._id):this._panner&&(this._panner.disconnect(0),this._panner=void 0,e._refreshBuffer(this)),g.call(this)}),v=function(e,t){"spatial"===(t=t||"spatial")?(e._panner=Howler.ctx.createPanner(),e._panner.coneInnerAngle=e._pannerAttr.coneInnerAngle,e._panner.coneOuterAngle=e._pannerAttr.coneOuterAngle,e._panner.coneOuterGain=e._pannerAttr.coneOuterGain,e._panner.distanceModel=e._pannerAttr.distanceModel,e._panner.maxDistance=e._pannerAttr.maxDistance,e._panner.refDistance=e._pannerAttr.refDistance,e._panner.rolloffFactor=e._pannerAttr.rolloffFactor,e._panner.panningModel=e._pannerAttr.panningModel,void 0!==e._panner.positionX?(e._panner.positionX.setValueAtTime(e._pos[0],Howler.ctx.currentTime),e._panner.positionY.setValueAtTime(e._pos[1],Howler.ctx.currentTime),e._panner.positionZ.setValueAtTime(e._pos[2],Howler.ctx.currentTime)):e._panner.setPosition(e._pos[0],e._pos[1],e._pos[2]),void 0!==e._panner.orientationX?(e._panner.orientationX.setValueAtTime(e._orientation[0],Howler.ctx.currentTime),e._panner.orientationY.setValueAtTime(e._orientation[1],Howler.ctx.currentTime),e._panner.orientationZ.setValueAtTime(e._orientation[2],Howler.ctx.currentTime)):e._panner.setOrientation(e._orientation[0],e._orientation[1],e._orientation[2])):(e._panner=Howler.ctx.createStereoPanner(),e._panner.pan.setValueAtTime(e._stereo,Howler.ctx.currentTime)),e._panner.connect(e._node),e._paused||e._parent.pause(e._id,!0).play(e._id,!0)}},4301:function(e,t,n){n(6477),e.exports=self.fetch.bind(self)},9090:function(e){function t(e,t){e.onload=function(){this.onerror=this.onload=null,t(null,e)},e.onerror=function(){this.onerror=this.onload=null,t(Error("Failed to load "+this.src),e)}}
1e.exports=function(e,n,r){var i=document.head||document.getElementsByTagName("head")[0],a=document.createElement("script");"function"==typeof n&&(r=n,n={}),n=n||{},r=r||function(){},a.type=n.type||"text/javascript",a.charset=n.charset||"utf8",a.async=!("async"in n)||!!n.async,a.src=e,n.attrs&&function(e,t){for(var n in t)e.setAttribute(n,t[n])}(a,n.attrs),n.text&&(a.text=""+n.text),("onload"in a?t:function(e,t){e.onreadystatechange=function(){("complete"==this.readyState||"loaded"==this.readyState)&&(this.onreadystatechange=null,t(null,e))}})(a,r),a.onload||t(a,r),i.appendChild(a)}},2705:function(e,t,n){var r=n(5639).Symbol;e.exports=r},9932:function(e){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}},4286:function(e){e.exports=function(e){return e.split("")}},4239:function(e,t,n){var r=n(2705),i=n(9607),a=n(2333),o=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":o&&o in Object(e)?i(e):a(e)}},4259:function(e){e.exports=function(e,t,n){var r=-1,i=e.length;t<0&&(t=-t>i?0:i+t),(n=n>i?i:n)<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var a=Array(i);++r<i;)a[r]=e[r+t];return a}},531:function(e,t,n){var r=n(2705),i=n(9932),a=n(1469),o=n(3448),s=1/0,l=r?r.prototype:void 0,u=l?l.toString:void 0;e.exports=function e(t){if("string"==typeof t)return t;if(a(t))return i(t,e)+"";if(o(t))return u?u.call(t):"";var n=t+"";return"0"==n&&1/t==-s?"-0":n}},7561:function(e,t,n){var r=n(7990),i=/^\s+/;e.exports=function(e){return e?e.slice(0,r(e)+1).replace(i,""):e}},180:function(e,t,n){var r=n(4259);e.exports=function(e,t,n){var i=e.length;return n=void 0===n?i:n,!t&&n>=i?e:r(e,t,n)}},8805:function(e,t,n){var r=n(180),i=n(2689),a=n(3140),o=n(9833);e.exports=function(e){return function(t){var n=i(t=o(t))?a(t):void 0,s=n?n[0]:t.charAt(0),l=n?r(n,1).join(""):t.slice(1);return s[e]()+l}}},1957:function(e,t,n){var r="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g;e.exports=r},9607:function(e,t,n){var r=n(2705),i=Object.prototype,a=i.hasOwnProperty,o=i.toString,s=r?r.toStringTag:void 0;e.exports=function(e){var t=a.call(e,s),n=e[s];try{e[s]=void 0;var r=!0}catch(e){}var i=o.call(e);return r&&(t?e[s]=n:delete e[s]),i}},2689:function(e){var t=RegExp("[\\u200d\ud800-\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");e.exports=function(e){return t.test(e)}},2333:function(e){var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},5639:function(e,t,n){var r=n(1957),i="object"==typeof self&&self&&self.Object===Object&&self,a=r||i||Function("return this")();e.exports=a},3140:function(e,t,n){var r=n(4286),i=n(2689),a=n(5889);e.exports=function(e){return i(e)?a(e):r(e)}},7990:function(e){var t=/\s/;e.exports=function(e){for(var n=e.length;n--&&t.test(e.charAt(n)););return n}},5889:function(e){var t="\ud800-\udfff",n="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",r="\ud83c[\udffb-\udfff]",i="[^"+t+"]",a="(?:\ud83c[\udde6-\uddff]){2}",o="[\ud800-\udbff][\udc00-\udfff]",s="(?:"+n+"|"+r+")?",l="[\\ufe0e\\ufe0f]?",u="(?:\\u200d(?:"+[i,a,o].join("|")+")"+l+s+")*",c=RegExp(r+"(?="+r+")|(?:"+[i+n+"?",n,a,o,"["+t+"]"].join("|")+")"+(l+s+u),"g");e.exports=function(e){return e.match(c)||[]}},8403:function(e,t,n){var r=n(9833),i=n(1700);e.exports=function(e){return i(r(e).toLowerCase())}},3279:function(e,t,n){var r=n(3218),i=n(7771),a=n(4841),o=Math.max,s=Math.min;e.exports=function(e,t,n){var l,u,c,d,h,f,p=0,m=!1,g=!1,v=!0;if("function"!=typeof e)throw TypeError("Expected a function");function y(t){var n=l,r=u;return l=u=void 0,p=t,d=e.apply(r,n)}function b(e){var n=e-f,r=e-p;return void 0===f||n>=t||n<0||g&&r>=c}function A(){var e,n,r,a=i();if(b(a))return E(a);h=setTimeout(A,(e=a-f,n=a-p,r=t-e,g?s(r,c-n):r))}function E(e){return(h=void 0,v&&l)?y(e):(l=u=void 0,d)}function w(){var e,n=i(),r=b(n);if(l=arguments,u=this,f=n,r){if(void 0===h)return p=e=f,h=setTimeout(A,t),m?y(e):d;if(g)return clearTimeout(h),h=setTimeout(A,t),y(f)}return void 0===h&&(h=setTimeout(A,t)),d}return t=a(t)||0,r(n)&&(m=!!n.leading,c=(g="maxWait"in n)?o(a(n.maxWait)||0,t):c,v="trailing"in n?!!n.trailing:v),w.cancel=function(){void 0!==h&&clearTimeout(h),p=0,l=f=u=h=void 0},w.flush=function(){return void 0===h?d:E(i())},w}},1469:function(e){var t=Array.isArray;e.exports=t},3218:function(e){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},7005:function(e){e.exports=function(e){return null!=e&&"object"==typeof e}},3448:function(e,t,n){var r=n(4239),i=n(7005);e.exports=function(e){return"symbol"==typeof e||i(e)&&"[object Symbol]"==r(e)}},6486:function(e,t,n){var r;e=n.nmd(e),(function(){var i,a="Expected a function",o="__lodash_hash_undefined__",s="__lodash_placeholder__",l=1/0,u=0/0,c=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]],d="[object Arguments]",h="[object Array]",f="[object Boolean]",p="[object Date]",m="[object Error]",g="[object Function]",v="[object GeneratorFunction]",y="[object Map]",b="[object Number]",A="[object Object]",E="[object Promise]",w="[object RegExp]",x="[object Set]",T="[object String]",S="[object Symbol]",_="[object WeakMap]",C="[object ArrayBuffer]",k="[object DataView]",I="[object Float32Array]",L="[object Float64Array
1]",P="[object Int8Array]",O="[object Int16Array]",R="[object Int32Array]",D="[object Uint8Array]",N="[object Uint8ClampedArray]",M="[object Uint16Array]",j="[object Uint32Array]",F=/\b__p \+= '';/g,B=/\b(__p \+=) '' \+/g,U=/(__e\(.*?\)|\b__t\)) \+\n'';/g,V=/&(?:amp|lt|gt|quot|#39);/g,z=/[&<>"']/g,q=RegExp(V.source),Q=RegExp(z.source),H=/<%-([\s\S]+?)%>/g,G=/<%([\s\S]+?)%>/g,K=/<%=([\s\S]+?)%>/g,$=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,W=/^\w*$/,Z=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Y=/[\\^$.*+?()[\]{}|]/g,X=RegExp(Y.source),J=/^\s+/,ee=/\s/,et=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,en=/\{\n\/\* \[wrapped with (.+)\] \*/,er=/,? & /,ei=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,ea=/[()=,{}\[\]\/\s]/,eo=/\\(\\)?/g,es=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,el=/\w*$/,eu=/^[-+]0x[0-9a-f]+$/i,ec=/^0b[01]+$/i,ed=/^\[object .+?Constructor\]$/,eh=/^0o[0-7]+$/i,ef=/^(?:0|[1-9]\d*)$/,ep=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,em=/($^)/,eg=/['\n\r\u2028\u2029\\]/g,ev="\ud800-\udfff",ey="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",eb="\\u2700-\\u27bf",eA="a-z\\xdf-\\xf6\\xf8-\\xff",eE="A-Z\\xc0-\\xd6\\xd8-\\xde",ew="\\ufe0e\\ufe0f",ex="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",eT="['’]",eS="["+ex+"]",e_="["+ey+"]",eC="["+eA+"]",ek="[^"+ev+ex+"\\d+"+eb+eA+eE+"]",eI="\ud83c[\udffb-\udfff]",eL="[^"+ev+"]",eP="(?:\ud83c[\udde6-\uddff]){2}",eO="[\ud800-\udbff][\udc00-\udfff]",eR="["+eE+"]",eD="\\u200d",eN="(?:"+eC+"|"+ek+")",eM="(?:"+eT+"(?:d|ll|m|re|s|t|ve))?",ej="(?:"+eT+"(?:D|LL|M|RE|S|T|VE))?",eF="(?:"+e_+"|"+eI+")?",eB="["+ew+"]?",eU="(?:"+eD+"(?:"+[eL,eP,eO].join("|")+")"+eB+eF+")*",eV=eB+eF+eU,ez="(?:"+["["+eb+"]",eP,eO].join("|")+")"+eV,eq="(?:"+[eL+e_+"?",e_,eP,eO,"["+ev+"]"].join("|")+")",eQ=RegExp(eT,"g"),eH=RegExp(e_,"g"),eG=RegExp(eI+"(?="+eI+")|"+eq+eV,"g"),eK=RegExp([eR+"?"+eC+"+"+eM+"(?="+[eS,eR,"$"].join("|")+")","(?:"+eR+"|"+ek+")+"+ej+"(?="+[eS,eR+eN,"$"].join("|")+")",eR+"?"+eN+"+"+eM,eR+"+"+ej,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])","\\d+",ez].join("|"),"g"),e$=RegExp("["+eD+ev+ey+ew+"]"),eW=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,eZ=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],eY=-1,eX={};eX[I]=eX[L]=eX[P]=eX[O]=eX[R]=eX[D]=eX[N]=eX[M]=eX[j]=!0,eX[d]=eX[h]=eX[C]=eX[f]=eX[k]=eX[p]=eX[m]=eX[g]=eX[y]=eX[b]=eX[A]=eX[w]=eX[x]=eX[T]=eX[_]=!1;var eJ={};eJ[d]=eJ[h]=eJ[C]=eJ[k]=eJ[f]=eJ[p]=eJ[I]=eJ[L]=eJ[P]=eJ[O]=eJ[R]=eJ[y]=eJ[b]=eJ[A]=eJ[w]=eJ[x]=eJ[T]=eJ[S]=eJ[D]=eJ[N]=eJ[M]=eJ[j]=!0,eJ[m]=eJ[g]=eJ[_]=!1;var e0={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},e1=parseFloat,e2=parseInt,e3="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,e4="object"==typeof self&&self&&self.Object===Object&&self,e5=e3||e4||Function("return this")(),e8=t&&!t.nodeType&&t,e6=e8&&e&&!e.nodeType&&e,e9=e6&&e6.exports===e8,e7=e9&&e3.process,te=function(){try{var e=e6&&e6.require&&e6.require("util").types;if(e)return e;return e7&&e7.binding&&e7.binding("util")}catch(e){}}(),tt=te&&te.isArrayBuffer,tn=te&&te.isDate,tr=te&&te.isMap,ti=te&&te.isRegExp,ta=te&&te.isSet,to=te&&te.isTypedArray;function ts(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function tl(e,t,n,r){for(var i=-1,a=null==e?0:e.length;++i<a;){var o=e[i];t(r,o,n(o),e)}return r}function tu(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}function tc(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;
vendor: 4,455 bytes, line 1
1)if(!t(e[n],n,e))return!1;return!0}function td(e,t){for(var n=-1,r=null==e?0:e.length,i=0,a=[];++n<r;){var o=e[n];t(o,n,e)&&(a[i++]=o)}return a}function th(e,t){return!!(null==e?0:e.length)&&tw(e,t,0)>-1}function tf(e,t,n){for(var r=-1,i=null==e?0:e.length;++r<i;)if(n(t,e[r]))return!0;return!1}function tp(e,t){for(var n=-1,r=null==e?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}function tm(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}function tg(e,t,n,r){var i=-1,a=null==e?0:e.length;for(r&&a&&(n=e[++i]);++i<a;)n=t(n,e[i],i,e);return n}function tv(e,t,n,r){var i=null==e?0:e.length;for(r&&i&&(n=e[--i]);i--;)n=t(n,e[i],i,e);return n}function ty(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}var tb=t_("length");function tA(e,t,n){var r;return n(e,function(e,n,i){if(t(e,n,i))return r=n,!1}),r}function tE(e,t,n,r){for(var i=e.length,a=n+(r?1:-1);r?a--:++a<i;)if(t(e[a],a,e))return a;return -1}function tw(e,t,n){return t==t?function(e,t,n){for(var r=n-1,i=e.length;++r<i;)if(e[r]===t)return r;return -1}(e,t,n):tE(e,tT,n)}function tx(e,t,n,r){for(var i=n-1,a=e.length;++i<a;)if(r(e[i],t))return i;return -1}function tT(e){return e!=e}function tS(e,t){var n=null==e?0:e.length;return n?tI(e,t)/n:u}function t_(e){return function(t){return null==t?i:t[e]}}function tC(e){return function(t){return null==e?i:e[t]}}function tk(e,t,n,r,i){return i(e,function(e,i,a){n=r?(r=!1,e):t(n,e,i,a)}),n}function tI(e,t){for(var n,r=-1,a=e.length;++r<a;){var o=t(e[r]);i!==o&&(n=i===n?o:n+o)}return n}function tL(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}function tP(e){return e?e.slice(0,tK(e)+1).replace(J,""):e}function tO(e){return function(t){return e(t)}}function tR(e,t){return tp(t,function(t){return e[t]})}function tD(e,t){return e.has(t)}function tN(e,t){for(var n=-1,r=e.length;++n<r&&tw(t,e[n],0)>-1;);return n}function tM(e,t){for(var n=e.length;n--&&tw(t,e[n],0)>-1;);return n}var tj=tC({À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"}),tF=tC({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"});function tB(e){return"\\"+e0[e]}function tU(e){return e$.test(e)}function tV(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}function tz(e,t){return function(n){return e(t(n))}}function tq(e,t){for(var n=-1,r=e.length,i=0,a=[];++n<r;){var o=e[n];(o===t||o===s)&&(e[n]=s,a[i++]=n)}return a}function tQ(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}function tH(e){return tU(e)?function(e){for(var t=eG.lastIndex=0;eG.test(e);)++t;return t}(e):tb(e)}function tG(e){return tU(e)?e.match(eG)||[]:e.split("")}function tK(e){for(var t=e.length;t--&&ee.test(e.charAt(t)););return t}var t$=tC({"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"}),tW=function e(t){var n,r,ee,ev,ey=(t=null==t?e5:tW.defaults(e5.Object(),t,tW.pick(e5,eZ))).Array,eb=t.Date,eA=t.Error,eE=t.Function,ew=t.Math,ex=t.Object,eT=t.RegExp,eS=t.String,e_=t.TypeError,eC=ey.prototype,ek=eE.prototype,eI=ex.prototype,eL=t["__core-js_shared__"],eP=ek.toString,eO=eI.hasOwnProperty,eR=0,eD=(n=/[^.]+$/.exec(eL&&eL.keys&&eL.keys.IE_PROTO||""))?"Symbol(sr
1c)_1."+n:"",eN=eI.toString,eM=eP.call(ex),ej=e5._,eF=eT("^"+eP.call(eO).replace(Y,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),eB=e9?t.Buffer:i,eU=t.Symbol,eV=t.Uint8Array,ez=eB?eB.allocUnsafe:i,eq=tz(ex.getPrototypeOf,ex),eG=ex.create,e$=eI.propertyIsEnumerable,e0=eC.splice,e3=eU?eU.isConcatSpreadable:i,e4=eU?eU.iterator:i,e8=eU?eU.toStringTag:i,e6=function(){try{var e=ip(ex,"defineProperty");return e({},"",{}),e}catch(e){}}(),e7=t.clearTimeout!==e5.clearTimeout&&t.clearTimeout,te=eb&&eb.now!==e5.Date.now&&eb.now,tb=t.setTimeout!==e5.setTimeout&&t.setTimeout,tC=ew.ceil,tZ=ew.floor,tY=ex.getOwnPropertySymbols,tX=eB?eB.isBuffer:i,tJ=t.isFinite,t0=eC.join,t1=tz(ex.keys,ex),t2=ew.max,t3=ew.min,t4=eb.now,t5=t.parseInt,t8=ew.random,t6=eC.reverse,t9=ip(t,"DataView"),t7=ip(t,"Map"),ne=ip(t,"Promise"),nt=ip(t,"Set"),nn=ip(t,"WeakMap"),nr=ip(ex,"create"),ni=nn&&new nn,na={},no=iB(t9),ns=iB(t7),nl=iB(ne),nu=iB(nt),nc=iB(nn),nd=eU?eU.prototype:i,nh=nd?nd.valueOf:i,nf=nd?nd.toString:i;function np(e){if(aG(e)&&!aN(e)&&!(e instanceof ny)){if(e instanceof nv)return e;if(eO.call(e,"__wrapped__"))return iU(e)}return new nv(e)}var nm=function(){function e(){}return function(t){if(!aH(t))return{};if(eG)return eG(t);e.prototype=t;var n=new e;return e.prototype=i,n}}();function ng(){}function nv(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=i}function ny(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=4294967295,this.__views__=[]}function nb(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function nA(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function nE(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function nw(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new nE;++t<n;)this.add(e[t])}function nx(e){var t=this.__data__=new nA(e);this.size=t.size}function nT(e,t){var n=aN(e),r=!n&&aD(e),i=!n&&!r&&aB(e),a=!n&&!r&&!i&&a0(e),o=n||r||i||a,s=o?tL(e.length,eS):[],l=s.length;for(var u in e)(t||eO.call(e,u))&&!(o&&("length"==u||i&&("offset"==u||"parent"==u)||a&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||iE(u,l)))&&s.push(u);return s}function nS(e){var t=e.length;return t?e[ru(0,t-1)]:i}function n_(e,t,n){(i===n||aP(e[t],n))&&(i!==n||t in e)||nP(e,t,n)}function nC(e,t,n){var r=e[t];eO.call(e,t)&&aP(r,n)&&(i!==n||t in e)||nP(e,t,n)}function nk(e,t){for(var n=e.length;n--;)if(aP(e[n][0],t))return n;return -1}function nI(e,t,n,r){return nF(e,function(e,i,a){t(r,e,n(e),a)}),r}function nL(e,t){return e&&rV(t,oh(t),e)}function nP(e,t,n){"__proto__"==t&&e6?e6(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function nO(e,t){for(var n=-1,r=t.length,a=ey(r),o=null==e;++n<r;)a[n]=o?i:os(e,t[n]);return a}function nR(e,t,n){return e==e&&(i!==n&&(e=e<=n?e:n),i!==t&&(e=e>=t?e:t)),e}function nD(e,t,n,r,a,o){var s,l=1&t,u=2&t,c=4&t;if(n&&(s=a?n(e,r,a,o):n(e)),i!==s)return s;if(!aH(e))return e;var h=aN(e);if(h){if(m=e.length,E=new e.constructor(m),m&&"string"==typeof e[0]&&eO.call(e,"index")&&(E.index=e.index,E.input=e.input),s=E,!l)return rU(e,s)}else{var m,E,_,F,B,U=iv(e),V=U==g||U==v;if(aB(e))return rD(e,l);if(U==A||U==d||V&&!a){if(s=u||V?{}:ib(e),!l)return u?(_=(B=s)&&rV(e,of(e),B),rV(e,ig(e),_)):(F=nL(s,e),rV(e,im(e),F))}else{if(!eJ[U])return a?e:{};s=function(e,t,n){var r,i,a=e.constructor;switch(t){case C:return rN(e);case f:case p:return new a(+e);case k:return r=n?rN(e.buffer):e.buffer,new e.constructor(r,e.byteOffset,e.byteLength);case I:case L:case P:case O:case R:case D:case N:case M:case j:return rM(e,n);case y:return new a;case b:case T:return new a(e);case w:return(i=new e.constructor(e.source,el.exec(e))).lastIndex=e.lastIndex,i;case x:return new a;case S:return nh?ex(nh.call(e)):{}}}(e,U,l)}}o||(o=new nx);var z=o.get(e);if(z)return z;o.set(e,s),aY(e)?e.forEach(function(r){s.add(nD(r,t,n,r,e,o))}):aK(e)&&e.forEach(function(r,i){s.set(i,nD(r,t,n,i,e,o))});var q=c?u?io:ia:u?of:oh,Q=h?i:q(e);return tu(Q||e,function(r,i){Q&&(r=e[i=r]),nC(s,i,nD(r,t,n,i,e,o))}),s}function nN(e,t,n){var r=n.length;if(null==e)return!r;for(e=ex(e);r--;){var a=n[r],o=t[a],s=e[a];if(i===s&&!(a in e)||!o(s))return!1}return!0}function nM(e,t,n){if("function"!=typeof e)throw new e_(a);return iO(function(){e.apply(i,n)},t)}function nj(e,t,n,r){var i=-1,a=th,o=!0,s=e.length,l=[],u=t.length;if(!s)return l;n&&(t=tp(t,tO(n))),r?(a=tf,o=!1):t.length>=200&&(a=tD,o=!1,t=new nw(t));t:for(;++i<s;){var c=e[i],d=null==n?c:n(c);if(c=r||0!==c?c:0,o&&d==d){for(var h=u;h--;)if(t[h]===d)continue t;l.push(c)}else a(t,d,r)||l.push(c)}return l}np.templateSettings={escape:H,evaluate:G,interpolate:K,variable:"",imports:{_:np}},np.prototype=ng.prototype,np.prototype.constructor=np,nv.prototype=nm(ng.prototype),nv.prototype.constructor=nv,ny.prototype=nm(ng.prototype),ny.prototype.constructor=ny,nb.prototype.clear=function(){this.__data__=nr?nr(null):{},this.size=0},nb.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},nb.prototype.get=function(e){var t=this.__data__;if(nr){var n=t[e];return n===o?i:n}return eO.call(t,e)?t[e]:i},nb.prototype.has=function(e){var t=this.__data__;return nr?i!==t[e]:eO.call(t,e)},nb.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=nr&&i===t?o:t,this},nA.prototype.clear=function(){this.__data__=[],this.size=0},nA.prototype.delete=function(e){var t=this.__data__,n=nk(t,e);return!(n<0)&&(n==t.length-1?t.pop():e0.call(t,n,1),--this.size,!0)},nA.prototype.get=function(e){var t=this.__data__,n=nk(t,e);return n<0?i:t[n][1]},nA.prototype.has=function(e){return nk(this.__data__,e)>-1},nA.prototype.set=function(e,t){var n=this.__data__,r=nk(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},nE.prototype.clear=function(){this.size=0,this.__data__={hash:new nb,map:new(t7||nA),string:new nb}},nE.prototype.delete=function(e){var t=id(this,e).delete(e);return this.size-=t?1:0,t},nE.prototype.get=function(e){return id(this,e).get(e)},nE.prototype.has=function(e){return id(this,e).has(e)},nE.prototype.set=function(e,t){var n=id(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},nw.prototype.add=nw.prototype.push=function(e){return this.__data__.set(e,o),this},nw.prototype.has=function(e){return this.__data__.has(e)},nx.prototype.clear=function(){this.__data__=new nA,this.size=0},nx.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},nx.prototype.get=function(e){return this.__data__.get(e)},nx.prototype.has=function(e){return this.__data__.has(e)},nx.prototype.set=function(e,t){var n=this.__data__;if(n instanceof nA){var r=n.__data__;if(!t7||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new nE(r)}return n.set(e,t),this.size=n.size,this};var nF=rQ(nG),nB=rQ(nK,!0);function nU(e,t){var n=!0;return nF(e,function(e,r,i){return n=!!t(e,r,i)}),n}function nV(e,t,n){for(var r=-1,a=e.length;++r<a;){var o=e[r],s=t(o);if(null!=s&&(i===l?s==s&&!aJ(s):n(s,l)))var l=s,u=o}return u}function nz(e,t){var n=[];return nF(e,function(e,r,i){t(e,r,i)&&n.push(e)}),n}function nq(e,t,n,r,i){var a=-1,o=e.length;for(n||(n=iA),i||(i=[]);++a<o;){var s=e[a];t>0&&n(s)?t>1?nq(s,t-1,n,r,i):tm(i,s):r||(i[i.length]=s)}return i}var nQ=rH(),nH=rH(!0);function nG(e,t){return e&&nQ(e,t,oh)}function nK(e,t){return e&&nH(e,t,oh)}function n$(e,t){return td(t,function(t){return az(e[t])})}function nW(e,t){t=rP(t,e);for(var n=0,r=t.length;null!=e&&n<r;)e=e[iF(t[n++])];return n&&n==r?e:i}
1function nZ(e,t,n){var r=t(e);return aN(e)?r:tm(r,n(e))}function nY(e){return null==e?i===e?"[object Undefined]":"[object Null]":e8&&e8 in ex(e)?function(e){var t=eO.call(e,e8),n=e[e8];try{e[e8]=i;var r=!0}catch(e){}var a=eN.call(e);return r&&(t?e[e8]=n:delete e[e8]),a}(e):eN.call(e)}function nX(e,t){return e>t}function nJ(e,t){return null!=e&&eO.call(e,t)}function n0(e,t){return null!=e&&t in ex(e)}function n1(e,t,n){for(var r=n?tf:th,a=e[0].length,o=e.length,s=o,l=ey(o),u=1/0,c=[];s--;){var d=e[s];s&&t&&(d=tp(d,tO(t))),u=t3(d.length,u),l[s]=!n&&(t||a>=120&&d.length>=120)?new nw(s&&d):i}d=e[0];var h=-1,f=l[0];t:for(;++h<a&&c.length<u;){var p=d[h],m=t?t(p):p;if(p=n||0!==p?p:0,!(f?tD(f,m):r(c,m,n))){for(s=o;--s;){var g=l[s];if(!(g?tD(g,m):r(e[s],m,n)))continue t}f&&f.push(m),c.push(p)}}return c}function n2(e,t,n){t=rP(t,e);var r=null==(e=iI(e,t))?e:e[iF(iY(t))];return null==r?i:ts(r,e,n)}function n3(e){return aG(e)&&nY(e)==d}function n4(e,t,n,r,a){return e===t||(null!=e&&null!=t&&(aG(e)||aG(t))?function(e,t,n,r,a,o){var s=aN(e),l=aN(t),u=s?h:iv(e),c=l?h:iv(t);u=u==d?A:u,c=c==d?A:c;var g=u==A,v=c==A,E=u==c;if(E&&aB(e)){if(!aB(t))return!1;s=!0,g=!1}if(E&&!g)return o||(o=new nx),s||a0(e)?ir(e,t,n,r,a,o):function(e,t,n,r,i,a,o){switch(n){case k:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)break;e=e.buffer,t=t.buffer;case C:if(e.byteLength!=t.byteLength||!a(new eV(e),new eV(t)))break;return!0;case f:case p:case b:return aP(+e,+t);case m:return e.name==t.name&&e.message==t.message;case w:case T:return e==t+"";case y:var s=tV;case x:var l=1&r;if(s||(s=tQ),e.size!=t.size&&!l)break;var u=o.get(e);if(u)return u==t;r|=2,o.set(e,t);var c=ir(s(e),s(t),r,i,a,o);return o.delete(e),c;case S:if(nh)return nh.call(e)==nh.call(t)}return!1}(e,t,u,n,r,a,o);if(!(1&n)){var _=g&&eO.call(e,"__wrapped__"),I=v&&eO.call(t,"__wrapped__");
vendor: 5,167 bytes, line 1
1if(_||I){var L=_?e.value():e,P=I?t.value():t;return o||(o=new nx),a(L,P,n,r,o)}}return!!E&&(o||(o=new nx),function(e,t,n,r,a,o){var s=1&n,l=ia(e),u=l.length;if(u!=ia(t).length&&!s)return!1;for(var c=u;c--;){var d=l[c];if(!(s?d in t:eO.call(t,d)))return!1}var h=o.get(e),f=o.get(t);if(h&&f)return h==t&&f==e;var p=!0;o.set(e,t),o.set(t,e);for(var m=s;++c<u;){var g=e[d=l[c]],v=t[d];if(r)var y=s?r(v,g,d,t,e,o):r(g,v,d,e,t,o);if(!(i===y?g===v||a(g,v,n,r,o):y)){p=!1;break}m||(m="constructor"==d)}if(p&&!m){var b=e.constructor,A=t.constructor;b!=A&&"constructor"in e&&"constructor"in t&&!("function"==typeof b&&b instanceof b&&"function"==typeof A&&A instanceof A)&&(p=!1)}return o.delete(e),o.delete(t),p}(e,t,n,r,a,o))}(e,t,n,r,n4,a):e!=e&&t!=t)}function n5(e,t,n,r){var a=n.length,o=a,s=!r;if(null==e)return!o;for(e=ex(e);a--;){var l=n[a];if(s&&l[2]?l[1]!==e[l[0]]:!(l[0]in e))return!1}for(;++a<o;){var u=(l=n[a])[0],c=e[u],d=l[1];if(s&&l[2]){if(i===c&&!(u in e))return!1}else{var h=new nx;if(r)var f=r(c,d,u,e,t,h);if(!(i===f?n4(d,c,3,r,h):f))return!1}}return!0}function n8(e){return!(!aH(e)||eD&&eD in e)&&(az(e)?eF:ed).test(iB(e))}function n6(e){return"function"==typeof e?e:null==e?oF:"object"==typeof e?aN(e)?rn(e[0],e[1]):rt(e):oK(e)}function n9(e){if(!i_(e))return t1(e);var t=[];for(var n in ex(e))eO.call(e,n)&&"constructor"!=n&&t.push(n);return t}function n7(e,t){return e<t}function re(e,t){var n=-1,r=aj(e)?ey(e.length):[];return nF(e,function(e,i,a){r[++n]=t(e,i,a)}),r}function rt(e){var t=ih(e);return 1==t.length&&t[0][2]?iC(t[0][0],t[0][1]):function(n){return n===e||n5(n,e,t)}}function rn(e,t){var n;return ix(e)&&(n=t)==n&&!aH(n)?iC(iF(e),t):function(n){var r=os(n,e);return i===r&&r===t?ol(n,e):n4(t,r,3)}}function rr(e,t,n,r,a){e!==t&&nQ(t,function(o,s){if(a||(a=new nx),aH(o))(function(e,t,n,r,a,o,s){var l=iL(e,n),u=iL(t,n),c=s.get(u);if(c){n_(e,n,c);return}var d=o?o(l,u,n+"",e,t,s):i,h=i===d;if(h){var f=aN(u),p=!f&&aB(u),m=!f&&!p&&a0(u);d=u,f||p||m?aN(l)?d=l:aF(l)?d=rU(l):p?(h=!1,d=rD(u,!0)):m?(h=!1,d=rM(u,!0)):d=[]:aW(u)||aD(u)?(d=l,aD(l)?d=a9(l):(!aH(l)||az(l))&&(d=ib(u))):h=!1}h&&(s.set(u,d),a(d,u,r,o,s),s.delete(u)),n_(e,n,d)})(e,t,s,n,rr,r,a);else{var l=r?r(iL(e,s),o,s+"",e,t,a):i;i===l&&(l=o),n_(e,s,l)}},of)}function ri(e,t){var n=e.length;if(n)return iE(t+=t<0?n:0,n)?e[t]:i}function ra(e,t,n){t=t.length?tp(t,function(e){return aN(e)?function(t){return nW(t,1===e.length?e[0]:e)}:e}):[oF];var r=-1;return t=tp(t,tO(ic())),function(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}(re(e,function(e,n,i){return{criteria:tp(t,function(t){return t(e)}),index:++r,value:e}}),function(e,t){return function(e,t,n){for(var r=-1,i=e.criteria,a=t.criteria,o=i.length,s=n.length;++r<o;){var l=rj(i[r],a[r]);if(l){if(r>=s)return l;return l*("desc"==n[r]?-1:1)}}return e.index-t.index}(e,t,n)})}function ro(e,t,n){for(var r=-1,i=t.length,a={};++r<i;){var o=t[r],s=nW(e,o);n(s,o)&&rh(a,rP(o,e),s)}return a}function rs(e,t,n,r){var i=r?tx:tw,a=-1,o=t.length,s=e;for(e===t&&(t=rU(t)),n&&(s=tp(e,tO(n)));++a<o;)for(var l=0,u=t[a],c=n?n(u):u;(l=i(s,c,l,r))>-1;)s!==e&&e0.call(s,l,1),e0.call(e,l,1);return e}function rl(e,t){for(var n=e?t.length:0,r=n-1;n--;){var i=t[n];if(n==r||i!==a){var a=i;iE(i)?e0.call(e,i,1):rx(e,i)}}return e}function ru(e,t){return e+tZ(t8()*(t-e+1))}function rc(e,t){var n="";if(!e||t<1||t>9007199254740991)return n;do t%2&&(n+=e),(t=tZ(t/2))&&(e+=e);while(t);return n}function rd(e,t){return iR(ik(e,t,oF),e+"")}function rh(e,t,n,r){if(!aH(e))return e;t=rP(t,e);for(var a=-1,o=t.length,s=o-1,l=e;null!=l&&++a<o;){var u=iF(t[a]),c=n;if("__proto__"===u||"constructor"===u||"prototype"===u)break;if(a!=s){var d=l[u];c=r?r(d,u,l):i,i===c&&(c=aH(d)?d:iE(t[a+1])?[]:{})}nC(l,u,c),l=l[u]}return e}var rf=ni?function(e,t){return ni.set(e,t),e}:oF,rp=e6?function(e,t){return e6(e,"toString",{configurable:!0,enumerable:!1,value:oN(t),writable:!0})}:oF;function rm(e,t,n){var r=-1,i=e.length;t<0&&(t=-t>i?0:i+t),(n=n>i?i:n)<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var a=ey(i);++r<i;)a[r]=e[r+t];return a}function rg(e,t){var n;return nF(e,function(e,r,i){return!(n=t(e,r,i))}),!!n}function rv(e,t,n){var r=0,i=null==e?r:e.length;if("number"==typeof t&&t==t&&i<=2147483647){for(;r<i;){var a=r+i>>>1,o=e[a];null!==o&&!aJ(o)&&(n?o<=t:o<t)?r=a+1:i=a}return i}return ry(e,t,oF,n)}function ry(e,t,n,r){var a=0,o=null==e?0:e.length;if(0===o)return 0;for(var s=(t=n(t))!=t,l=null===t,u=aJ(t),c=i===t;a<o;){var d=tZ((a+o)/2),h=n(e[d]),f=i!==h,p=null===h,m=h==h,g=aJ(h);if(s)var v=r||m;else v=c?m&&(r||f):l?m&&f&&(r||!p):u?m&&f&&!p&&(r||!g):!p&&!g&&(r?h<=t:h<t);v?a=d+1:o=d}return t3(o,4294967294)}function rb(e,t){for(var n=-1,r=e.length,i=0,a=[];++n<r;){var o=e[n],s=t?t(o):o;if(!n||!aP(s,l)){var l=s;a[i++]=0===o?0:o}}return a}function rA(e){return"number"==typeof e?e:aJ(e)?u:+e}function rE(e){if("string"==typeof e)return e;if(aN(e))return tp(e,rE)+"";if(aJ(e))return nf?nf.call(e):"";var t=e+"";return"0"==t&&1/e==-l?"-0":t}function rw(e,t,n){var r=-1,i=th,a=e.length,o=!0,s=[],l=s;if(n)o=!1,i=tf;else if(a>=200){var u=t?null:r8(e);if(u)return tQ(u);o=!1,i=tD,l=new nw}else l=t?[]:s;t:for(;++r<a;){var c=e[r],d=t?t(c):c;
vendor: 6,357 bytes, line 1
1if(c=n||0!==c?c:0,o&&d==d){for(var h=l.length;h--;)if(l[h]===d)continue t;t&&l.push(d),s.push(c)}else i(l,d,n)||(l!==s&&l.push(d),s.push(c))}return s}function rx(e,t){return t=rP(t,e),null==(e=iI(e,t))||delete e[iF(iY(t))]}function rT(e,t,n,r){return rh(e,t,n(nW(e,t)),r)}function rS(e,t,n,r){for(var i=e.length,a=r?i:-1;(r?a--:++a<i)&&t(e[a],a,e););return n?rm(e,r?0:a,r?a+1:i):rm(e,r?a+1:0,r?i:a)}function r_(e,t){var n=e;return n instanceof ny&&(n=n.value()),tg(t,function(e,t){return t.func.apply(t.thisArg,tm([e],t.args))},n)}function rC(e,t,n){var r=e.length;if(r<2)return r?rw(e[0]):[];for(var i=-1,a=ey(r);++i<r;)for(var o=e[i],s=-1;++s<r;)s!=i&&(a[i]=nj(a[i]||o,e[s],t,n));return rw(nq(a,1),t,n)}function rk(e,t,n){for(var r=-1,a=e.length,o=t.length,s={};++r<a;){var l=r<o?t[r]:i;n(s,e[r],l)}return s}function rI(e){return aF(e)?e:[]}function rL(e){return"function"==typeof e?e:oF}function rP(e,t){return aN(e)?e:ix(e,t)?[e]:ij(a7(e))}function rO(e,t,n){var r=e.length;return n=i===n?r:n,!t&&n>=r?e:rm(e,t,n)}var rR=e7||function(e){return e5.clearTimeout(e)};function rD(e,t){if(t)return e.slice();var n=e.length,r=ez?ez(n):new e.constructor(n);return e.copy(r),r}function rN(e){var t=new e.constructor(e.byteLength);return new eV(t).set(new eV(e)),t}function rM(e,t){var n=t?rN(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function rj(e,t){if(e!==t){var n=i!==e,r=null===e,a=e==e,o=aJ(e),s=i!==t,l=null===t,u=t==t,c=aJ(t);if(!l&&!c&&!o&&e>t||o&&s&&u&&!l&&!c||r&&s&&u||!n&&u||!a)return 1;if(!r&&!o&&!c&&e<t||c&&n&&a&&!r&&!o||l&&n&&a||!s&&a||!u)return -1}return 0}function rF(e,t,n,r){for(var i=-1,a=e.length,o=n.length,s=-1,l=t.length,u=t2(a-o,0),c=ey(l+u),d=!r;++s<l;)c[s]=t[s];for(;++i<o;)(d||i<a)&&(c[n[i]]=e[i]);for(;u--;)c[s++]=e[i++];return c}function rB(e,t,n,r){for(var i=-1,a=e.length,o=-1,s=n.length,l=-1,u=t.length,c=t2(a-s,0),d=ey(c+u),h=!r;++i<c;)d[i]=e[i];for(var f=i;++l<u;)d[f+l]=t[l];for(;++o<s;)(h||i<a)&&(d[f+n[o]]=e[i++]);return d}function rU(e,t){var n=-1,r=e.length;for(t||(t=ey(r));++n<r;)t[n]=e[n];return t}function rV(e,t,n,r){var a=!n;n||(n={});for(var o=-1,s=t.length;++o<s;){var l=t[o],u=r?r(n[l],e[l],l,n,e):i;i===u&&(u=e[l]),a?nP(n,l,u):nC(n,l,u)}return n}function rz(e,t){return function(n,r){var i=aN(n)?tl:nI,a=t?t():{};return i(n,e,ic(r,2),a)}}function rq(e){return rd(function(t,n){var r=-1,a=n.length,o=a>1?n[a-1]:i,s=a>2?n[2]:i;for(o=e.length>3&&"function"==typeof o?(a--,o):i,s&&iw(n[0],n[1],s)&&(o=a<3?i:o,a=1),t=ex(t);++r<a;){var l=n[r];l&&e(t,l,r,o)}return t})}function rQ(e,t){return function(n,r){if(null==n)return n;if(!aj(n))return e(n,r);for(var i=n.length,a=t?i:-1,o=ex(n);(t?a--:++a<i)&&!1!==r(o[a],a,o););return n}}function rH(e){return function(t,n,r){for(var i=-1,a=ex(t),o=r(t),s=o.length;s--;){var l=o[e?s:++i];if(!1===n(a[l],l,a))break}return t}}function rG(e){return function(t){var n=tU(t=a7(t))?tG(t):i,r=n?n[0]:t.charAt(0),a=n?rO(n,1).join(""):t.slice(1);return r[e]()+a}}function rK(e){return function(t){return tg(oO(oT(t).replace(eQ,"")),e,"")}}function r$(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n=nm(e.prototype),r=e.apply(n,t);return aH(r)?r:n}}function rW(e){return function(t,n,r){var a=ex(t);if(!aj(t)){var o=ic(n,3);t=oh(t),n=function(e){return o(a[e],e,a)}}var s=e(t,n,r);return s>-1?a[o?t[s]:s]:i}}function rZ(e){return ii(function(t){var n=t.length,r=n,o=nv.prototype.thru;for(e&&t.reverse();r--;){var s=t[r];if("function"!=typeof s)throw new e_(a);if(o&&!l&&"wrapper"==il(s))var l=new nv([],!0)}for(r=l?r:n;++r<n;){var u=il(s=t[r]),c="wrapper"==u?is(s):i;l=c&&iT(c[0])&&424==c[1]&&!c[4].length&&1==c[9]?l[il(c[0])].apply(l,c[3]):1==s.length&&iT(s)?l[u]():l.thru(s)}return function(){var e=arguments,r=e[0];if(l&&1==e.length&&aN(r))return l.plant(r).value();for(var i=0,a=n?t[i].apply(this,e):r;++i<n;)a=t[i].call(this,a);return a}})}function rY(e,t,n,r,a,o,s,l,u,c){var d=128&t,h=1&t,f=2&t,p=24&t,m=512&t,g=f?i:r$(e);return function v(){for(var y=arguments.length,b=ey(y),A=y;A--;)b[A]=arguments[A];if(p)var E=iu(v),w=function(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&++r;return r}(b,E);if(r&&(b=rF(b,r,a,p)),o&&(b=rB(b,o,s,p)),y-=w,p&&y<c){var x=tq(b,E);return r4(e,t,rY,v.placeholder,n,b,x,l,u,c-y)}var T=h?n:this,S=f?T[e]:e;return y=b.length,l?b=function(e,t){for(var n=e.length,r=t3(t.length,n),a=rU(e);r--;){var o=t[r];e[r]=iE(o,n)?a[o]:i}return e}(b,l):m&&y>1&&b.reverse(),d&&u<y&&(b.length=u),this&&this!==e5&&this instanceof v&&(S=g||r$(S)),S.apply(T,b)}}function rX(e,t){return function(n,r){var i,a;return i=t(r),a={},nG(n,function(t,n,r){e(a,i(t),n,r)}),a}}function rJ(e,t){return function(n,r){var a;if(i===n&&i===r)return t;if(i!==n&&(a=n),i!==r){if(i===a)return r;"string"==typeof n||"string"==typeof r?(n=rE(n),r=rE(r)):(n=rA(n),r=rA(r)),a=e(n,r)}return a}}function r0(e){return ii(function(t){return t=tp(t,tO(ic())),rd(function(n){var r=this;return e(t,function(e){return ts(e,r,n)})})})}function r1(e,t){var n=(t=i===t?" ":rE(t)).length;if(n<2)return n?rc(t,e):t;var r=rc(t,tC(e/tH(t)));return tU(t)?rO(tG(r),0,e).join(""):r.slice(0,e)}function r2(e){return function(t,n,r){return r&&"number"!=typeof r&&iw(t,n,r)&&(n=r=i),t=a4(t),i===n?(n=t,t=0):n=a4(n),r=i===r?t<n?1:-1:a4(r),function(e,t,n,r){for(var i=-1,a=t2(tC((t-e)/(n||1)),0),o=ey(a);a--;)o[r?a:++i]=e,e+=n;return o}(t,n,r,e)}}function r3(e){return function(t,n){return"string"==typeof t&&"string"==typeof n||(t=a6(t),n=a6(n)),e(t,n)}}function r4(e,t,n,r,a,o,s,l,u,c){var d=8&t,h=d?s:i,f=d?i:s,p=d?o:i,m=d?i:o;t|=d?32:64,4&(t&=~(d?64:32))||(t&=-4);var g=[e,t,a,p,h,m,f,l,u,c],v=n.apply(i,g);return iT(e)&&iP(v,g),v.placeholder=r,iD(v,e,t)}function r5(e){var t=ew[e];return function(e,n){if(e=a6(e),(n=null==n?0:t3(a5(n),292))&&tJ(e)){var r=(a7(e)+"e").split("e");return+((r=(a7(t(r[0]+"e"+(+r[1]+n)))+"e").split("e"))[0]+"e"+(+r[1]-n))}return t(e)}}var r8=nt&&1/tQ(new nt([,-0]))[1]==l?function(e){return new nt(e)}:oq;function r6(e){return function(t){var n,r,i=iv(t);return i==y?tV(t):i==x?(n=-1,r=Array(t.size),t.forEach(function(e){r[++n]=[e,e]}
1),r):tp(e(t),function(e){return[e,t[e]]})}}function r9(e,t,n,r,o,l,u,c){var d=2&t;if(!d&&"function"!=typeof e)throw new e_(a);var h=r?r.length:0;if(h||(t&=-97,r=o=i),u=i===u?u:t2(a5(u),0),c=i===c?c:a5(c),h-=o?o.length:0,64&t){var f=r,p=o;r=o=i}var m=d?i:is(e),g=[e,t,n,r,o,f,p,l,u,c];if(m&&function(e,t){var n=e[1],r=t[1],i=n|r,a=i<131,o=128==r&&8==n||128==r&&256==n&&e[7].length<=t[8]||384==r&&t[7].length<=t[8]&&8==n;if(a||o){1&r&&(e[2]=t[2],i|=1&n?0:4);var l=t[3];if(l){var u=e[3];e[3]=u?rF(u,l,t[4]):l,e[4]=u?tq(e[3],s):t[4]}(l=t[5])&&(u=e[5],e[5]=u?rB(u,l,t[6]):l,e[6]=u?tq(e[5],s):t[6]),(l=t[7])&&(e[7]=l),128&r&&(e[8]=null==e[8]?t[8]:t3(e[8],t[8])),null==e[9]&&(e[9]=t[9]),e[0]=t[0],e[1]=i}}(g,m),e=g[0],t=g[1],n=g[2],r=g[3],o=g[4],(c=g[9]=i===g[9]?d?0:e.length:t2(g[9]-h,0))||!(24&t)||(t&=-25),t&&1!=t)8==t||16==t?(v=e,y=t,b=c,A=r$(v),O=function e(){for(var t=arguments.length,n=ey(t),r=t,a=iu(e);r--;)n[r]=arguments[r];var o=t<3&&n[0]!==a&&n[t-1]!==a?[]:tq(n,a);return(t-=o.length)<b?r4(v,y,rY,e.placeholder,i,n,o,i,i,b-t):ts(this&&this!==e5&&this instanceof e?A:v,this,n)}):32!=t&&33!=t||o.length?O=rY.apply(i,g):(E=e,w=t,x=n,T=r,S=1&w,_=r$(E),O=function e(){for(var t=-1,n=arguments.length,r=-1,i=T.length,a=ey(i+n),o=this&&this!==e5&&this instanceof e?_:E;++r<i;)a[r]=T[r];for(;n--;)a[r++]=arguments[++t];return ts(o,S?x:this,a)});else var v,y,b,A,E,w,x,T,S,_,C,k,I,L,P,O=(C=e,k=t,I=n,L=1&k,P=r$(C),function e(){return(this&&this!==e5&&this instanceof e?P:C).apply(L?I:this,arguments)});return iD((m?rf:iP)(O,g),e,t)}function r7(e,t,n,r){return i===e||aP(e,eI[n])&&!eO.call(r,n)?t:e}function ie(e,t,n,r,a,o){return aH(e)&&aH(t)&&(o.set(t,e),rr(e,t,i,ie,o),o.delete(t)),e}function it(e){return aW(e)?i:e}function ir(e,t,n,r,a,o){var s=1&n,l=e.length,u=t.length;if(l!=u&&!(s&&u>l))return!1;var c=o.get(e),d=o.get(t);if(c&&d)return c==t&&d==e;var h=-1,f=!0,p=2&n?new nw:i;for(o.set(e,t),o.set(t,e);++h<l;){var m=e[h],g=t[h];if(r)var v=s?r(g,m,h,t,e,o):r(m,g,h,e,t,o);if(i!==v){if(v)continue;f=!1;break}if(p){if(!ty(t,function(e,t){if(!tD(p,t)&&(m===e||a(m,e,n,r,o)))return p.push(t)})){f=!1;break}}else if(!(m===g||a(m,g,n,r,o))){f=!1;break}}return o.delete(e),o.delete(t),f}function ii(e){return iR(ik(e,i,iG),e+"")}function ia(e){return nZ(e,oh,im)}function io(e){return nZ(e,of,ig)}var is=ni?function(e){return ni.get(e)}:oq;function il(e){for(var t=e.name+"",n=na[t],r=eO.call(na,t)?n.length:0;r--;){var i=n[r],a=i.func;if(null==a||a==e)return i.name}return t}function iu(e){return(eO.call(np,"placeholder")?np:e).placeholder}function ic(){var e=np.iteratee||oB;return e=e===oB?n6:e,arguments.length?e(arguments[0],arguments[1]):e}function id(e,t){var n,r=e.__data__;return("string"==(n=typeof t)||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==t:null===t)?r["string"==typeof t?"string":"hash"]:r.map}function ih(e){for(var t=oh(e),n=t.length;n--;){var r=t[n],i=e[r];t[n]=[r,i,i==i&&!aH(i)]}return t}function ip(e,t){var n=null==e?i:e[t];return n8(n)?n:i}var im=tY?function(e){return null==e?[]:td(tY(e=ex(e)),function(t){return e$.call(e,t)})}:oZ,ig=tY?function(e){for(var t=[];e;)tm(t,im(e)),e=eq(e);return t}:oZ,iv=nY;function iy(e,t,n){t=rP(t,e);for(var r=-1,i=t.length,a=!1;++r<i;){var o=iF(t[r]);if(!(a=null!=e&&n(e,o)))break;e=e[o]}return a||++r!=i?a:!!(i=null==e?0:e.length)&&aQ(i)&&iE(o,i)&&(aN(e)||aD(e))}function ib(e){return"function"!=typeof e.constructor||i_(e)?{}:nm(eq(e))}function iA(e){return aN(e)||aD(e)||!!(e3&&e&&e[e3])}function iE(e,t){var n=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==n||"symbol"!=n&&ef.test(e))&&e>-1&&e%1==0&&e<t}function iw(e,t,n){if(!aH(n))return!1;var r=typeof t;return("number"==r?!!(aj(n)&&iE(t,n.length)):"string"==r&&t in n)&&aP(n[t],e)}function ix(e,t){if(aN(e))return!1;var n=typeof e;return!!("number"==n||"symbol"==n||"boolean"==n||null==e||aJ(e))||W.test(e)||!$.test(e)||null!=t&&e in ex(t)}function iT(e){var t=il(e),n=np[t];if("function"!=typeof n||!(t in ny.prototype))return!1;if(e===n)return!0;var r=is(n);return!!r&&e===r[0]}(t9&&iv(new t9(new ArrayBuffer(1)))!=k||t7&&iv(new t7)!=y||ne&&iv(ne.resolve())!=E||nt&&iv(new nt)!=x||nn&&iv(new nn)!=_)&&(iv=function(e){var t=nY(e),n=t==A?e.constructor:i,r=n?iB(n):"";if(r)switch(r){case no:return k;case ns:return y;case nl:return E;case nu:return x;case nc:return _}return t});var iS=eL?az:oY;function i_(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||eI)}function iC(e,t){return function(n){return null!=n&&n[e]===t&&(i!==t||e in ex(n))}}function ik(e,t,n){return t=t2(i===t?e.length-1:t,0),function(){for(var r=arguments,i=-1,a=t2(r.length-t,0),o=ey(a);++i<a;)o[i]=r[t+i];i=-1;for(var s=ey(t+1);++i<t;)s[i]=r[i];return s[t]=n(o),ts(e,this,s)}}function iI(e,t){return t.length<2?e:nW(e,rm(t,0,-1))}function iL(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}var iP=iN(rf),iO=tb||function(e,t){return e5.setTimeout(e,t)},iR=iN(rp);function iD(e,t,n){var r,i,a=t+"";return iR(e,function(e,t){var n=t.length;if(!n)return e;var r=n-1;return t[r]=(n>1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(et,"{\n/* [wrapped with "+t+"] */\n")}(a,(r=(i=a.match(en))?i[1].split(er):[],tu(c,function(e){var t="_."+e[0];n&e[1]&&!th(r,t)&&r.push(t)}),r.sort())))}function iN(e){var t=0,n=0;return function(){var r=t4(),a=16-(r-n);if(n=r,a>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(i,arguments)}}function iM(e,t){var n=-1,r=e.length,a=r-1;for(t=i===t?r:t;++n<t;){var o=ru(n,a),s=e[o];e[o]=e[n],e[n]=s}return e.length=t,e}var ij=(ee=(r=aS(function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(Z,function(e,n,r,i){t.push(r?i.replace(eo,"$1"):n||e)}),t},function(e){return 500===ee.size&&ee.clear(),e})).cache,r);function iF(e){if("string"==typeof e||aJ(e))return e;var t=e+"";return"0"==t&&1/e==-l?"-0":t}function iB(e){if(null!=e){try{return eP.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function iU(e){if(e instanceof ny)return e.clone();var t=new nv(e.__wrapped__,e.__chain__);return t.__actions__=rU(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}var iV=rd(function(e,t){return aF(e)?nj(e,nq(t,1,aF,!0)):[]}),iz=rd(function(e,t){var n=iY(t);return aF(n)&&(n=i),aF(e)?nj(e,nq(t,1,aF,!0),ic(n,2)):[]}),iq=rd(function(e,t){var n=iY(t);return aF(n)&&(n=i),aF(e)?nj(e,nq(t,1,aF,!0),i,n):[]});
vendor: 5,417 bytes, line 1
1function iQ(e,t,n){var r=null==e?0:e.length;if(!r)return -1;var i=null==n?0:a5(n);return i<0&&(i=t2(r+i,0)),tE(e,ic(t,3),i)}function iH(e,t,n){var r=null==e?0:e.length;if(!r)return -1;var a=r-1;return i!==n&&(a=a5(n),a=n<0?t2(r+a,0):t3(a,r-1)),tE(e,ic(t,3),a,!0)}function iG(e){return(null==e?0:e.length)?nq(e,1):[]}function iK(e){return e&&e.length?e[0]:i}var i$=rd(function(e){var t=tp(e,rI);return t.length&&t[0]===e[0]?n1(t):[]}),iW=rd(function(e){var t=iY(e),n=tp(e,rI);return t===iY(n)?t=i:n.pop(),n.length&&n[0]===e[0]?n1(n,ic(t,2)):[]}),iZ=rd(function(e){var t=iY(e),n=tp(e,rI);return(t="function"==typeof t?t:i)&&n.pop(),n.length&&n[0]===e[0]?n1(n,i,t):[]});function iY(e){var t=null==e?0:e.length;return t?e[t-1]:i}var iX=rd(iJ);function iJ(e,t){return e&&e.length&&t&&t.length?rs(e,t):e}var i0=ii(function(e,t){var n=null==e?0:e.length,r=nO(e,t);return rl(e,tp(t,function(e){return iE(e,n)?+e:e}).sort(rj)),r});function i1(e){return null==e?e:t6.call(e)}var i2=rd(function(e){return rw(nq(e,1,aF,!0))}),i3=rd(function(e){var t=iY(e);return aF(t)&&(t=i),rw(nq(e,1,aF,!0),ic(t,2))}),i4=rd(function(e){var t=iY(e);return t="function"==typeof t?t:i,rw(nq(e,1,aF,!0),i,t)});function i5(e){if(!(e&&e.length))return[];var t=0;return e=td(e,function(e){if(aF(e))return t=t2(e.length,t),!0}),tL(t,function(t){return tp(e,t_(t))})}function i8(e,t){if(!(e&&e.length))return[];var n=i5(e);return null==t?n:tp(n,function(e){return ts(t,i,e)})}var i6=rd(function(e,t){return aF(e)?nj(e,t):[]}),i9=rd(function(e){return rC(td(e,aF))}),i7=rd(function(e){var t=iY(e);return aF(t)&&(t=i),rC(td(e,aF),ic(t,2))}),ae=rd(function(e){var t=iY(e);return t="function"==typeof t?t:i,rC(td(e,aF),i,t)}),at=rd(i5),an=rd(function(e){var t=e.length,n=t>1?e[t-1]:i;return n="function"==typeof n?(e.pop(),n):i,i8(e,n)});function ar(e){var t=np(e);return t.__chain__=!0,t}function ai(e,t){return t(e)}var aa=ii(function(e){var t=e.length,n=t?e[0]:0,r=this.__wrapped__,a=function(t){return nO(t,e)};return!(t>1)&&!this.__actions__.length&&r instanceof ny&&iE(n)?((r=r.slice(n,+n+(t?1:0))).__actions__.push({func:ai,args:[a],thisArg:i}),new nv(r,this.__chain__).thru(function(e){return t&&!e.length&&e.push(i),e})):this.thru(a)}),ao=rz(function(e,t,n){eO.call(e,n)?++e[n]:nP(e,n,1)}),as=rW(iQ),al=rW(iH);function au(e,t){return(aN(e)?tu:nF)(e,ic(t,3))}function ac(e,t){return(aN(e)?function(e,t){for(var n=null==e?0:e.length;n--&&!1!==t(e[n],n,e););return e}:nB)(e,ic(t,3))}var ad=rz(function(e,t,n){eO.call(e,n)?e[n].push(t):nP(e,n,[t])}),ah=rd(function(e,t,n){var r=-1,i="function"==typeof t,a=aj(e)?ey(e.length):[];return nF(e,function(e){a[++r]=i?ts(t,e,n):n2(e,t,n)}),a}),af=rz(function(e,t,n){nP(e,n,t)});function ap(e,t){return(aN(e)?tp:re)(e,ic(t,3))}var am=rz(function(e,t,n){e[n?0:1].push(t)},function(){return[[],[]]}),ag=rd(function(e,t){if(null==e)return[];var n=t.length;return n>1&&iw(e,t[0],t[1])?t=[]:n>2&&iw(t[0],t[1],t[2])&&(t=[t[0]]),ra(e,nq(t,1),[])}),av=te||function(){return e5.Date.now()};function ay(e,t,n){return t=n?i:t,t=e&&null==t?e.length:t,r9(e,128,i,i,i,i,t)}function ab(e,t){var n;if("function"!=typeof t)throw new e_(a);return e=a5(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=i),n}}var aA=rd(function(e,t,n){var r=1;if(n.length){var i=tq(n,iu(aA));r|=32}return r9(e,r,t,n,i)}),aE=rd(function(e,t,n){var r=3;if(n.length){var i=tq(n,iu(aE));r|=32}return r9(t,r,e,n,i)});function aw(e,t,n){var r,o,s,l,u,c,d=0,h=!1,f=!1,p=!0;if("function"!=typeof e)throw new e_(a);function m(t){var n=r,a=o;return r=o=i,d=t,l=e.apply(a,n)}function g(e){var n=e-c,r=e-d;return i===c||n>=t||n<0||f&&r>=s}function v(){var e,n,r,i=av();if(g(i))return y(i);u=iO(v,(e=i-c,n=i-d,r=t-e,f?t3(r,s-n):r))}function y(e){return(u=i,p&&r)?m(e):(r=o=i,l)}function b(){var e,n=av(),a=g(n);if(r=arguments,o=this,c=n,a){if(i===u)return d=e=c,u=iO(v,t),h?m(e):l;if(f)return rR(u),u=iO(v,t),m(c)}return i===u&&(u=iO(v,t)),l}return t=a6(t)||0,aH(n)&&(h=!!n.leading,s=(f="maxWait"in n)?t2(a6(n.maxWait)||0,t):s,p="trailing"in n?!!n.trailing:p),b.cancel=function(){i!==u&&rR(u),d=0,r=c=o=u=i},b.flush=function(){return i===u?l:y(av())},b}var ax=rd(function(e,t){return nM(e,1,t)}),aT=rd(function(e,t,n){return nM(e,a6(t)||0,n)});function aS(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new e_(a);var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],a=n.cache;if(a.has(i))return a.get(i);var o=e.apply(this,r);return n.cache=a.set(i,o)||a,o};return n.cache=new(aS.Cache||nE),n}function a_(e){if("function"!=typeof e)throw new e_(a);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}aS.Cache=nE;var aC=rd(function(e,t){var n=(t=1==t.length&&aN(t[0])?tp(t[0],tO(ic())):tp(nq(t,1),tO(ic()))).length;return rd(function(r){for(var i=-1,a=t3(r.length,n);++i<a;)r[i]=t[i].call(this,r[i]);return ts(e,this,r)})}),ak=rd(function(e,t){var n=tq(t,iu(ak));return r9(e,32,i,t,n)}),aI=rd(function(e,t){var n=tq(t,iu(aI));return r9(e,64,i,t,n)}),aL=ii(function(e,t){return r9(e,256,i,i,i,t)});function aP(e,t){return e===t||e!=e&&t!=t}var aO=r3(nX),aR=r3(function(e,t){return e>=t}),aD=n3(function(){return arguments}())?n3:function(e){return aG(e)&&eO.call(e,"callee")&&!e$.call(e,"callee")},aN=ey.isArray,aM=tt?tO(tt):function(e){return aG(e)&&nY(e)==C};
1function aj(e){return null!=e&&aQ(e.length)&&!az(e)}function aF(e){return aG(e)&&aj(e)}var aB=tX||oY,aU=tn?tO(tn):function(e){return aG(e)&&nY(e)==p};function aV(e){if(!aG(e))return!1;var t=nY(e);return t==m||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!aW(e)}function az(e){if(!aH(e))return!1;var t=nY(e);return t==g||t==v||"[object AsyncFunction]"==t||"[object Proxy]"==t}function aq(e){return"number"==typeof e&&e==a5(e)}function aQ(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}function aH(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function aG(e){return null!=e&&"object"==typeof e}var aK=tr?tO(tr):function(e){return aG(e)&&iv(e)==y};function a$(e){return"number"==typeof e||aG(e)&&nY(e)==b}function aW(e){if(!aG(e)||nY(e)!=A)return!1;var t=eq(e);if(null===t)return!0;var n=eO.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&eP.call(n)==eM}var aZ=ti?tO(ti):function(e){return aG(e)&&nY(e)==w},aY=ta?tO(ta):function(e){return aG(e)&&iv(e)==x};function aX(e){return"string"==typeof e||!aN(e)&&aG(e)&&nY(e)==T}function aJ(e){return"symbol"==typeof e||aG(e)&&nY(e)==S}var a0=to?tO(to):function(e){return aG(e)&&aQ(e.length)&&!!eX[nY(e)]},a1=r3(n7),a2=r3(function(e,t){return e<=t});function a3(e){if(!e)return[];if(aj(e))return aX(e)?tG(e):rU(e);if(e4&&e[e4])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[e4]());var t=iv(e);return(t==y?tV:t==x?tQ:oE)(e)}function a4(e){return e?(e=a6(e))===l||e===-l?(e<0?-1:1)*17976931348623157e292:e==e?e:0:0===e?e:0}function a5(e){var t=a4(e),n=t%1;return t==t?n?t-n:t:0}function a8(e){return e?nR(a5(e),0,4294967295):0}function a6(e){if("number"==typeof e)return e;if(aJ(e))return u;if(aH(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=aH(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=tP(e);var n=ec.test(e);return n||eh.test(e)?e2(e.slice(2),n?2:8):eu.test(e)?u:+e}function a9(e){return rV(e,of(e))}function a7(e){return null==e?"":rE(e)}var oe=rq(function(e,t){if(i_(t)||aj(t)){rV(t,oh(t),e);return}for(var n in t)eO.call(t,n)&&nC(e,n,t[n])}),ot=rq(function(e,t){rV(t,of(t),e)}),on=rq(function(e,t,n,r){rV(t,of(t),e,r)}),or=rq(function(e,t,n,r){rV(t,oh(t),e,r)}),oi=ii(nO),oa=rd(function(e,t){e=ex(e);var n=-1,r=t.length,a=r>2?t[2]:i;for(a&&iw(t[0],t[1],a)&&(r=1);++n<r;)for(var o=t[n],s=of(o),l=-1,u=s.length;++l<u;){var c=s[l],d=e[c];(i===d||aP(d,eI[c])&&!eO.call(e,c))&&(e[c]=o[c])}return e}),oo=rd(function(e){return e.push(i,ie),ts(om,i,e)});function os(e,t,n){var r=null==e?i:nW(e,t);return i===r?n:r}function ol(e,t){return null!=e&&iy(e,t,n0)}var ou=rX(function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=eN.call(t)),e[t]=n},oN(oF)),oc=rX(function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=eN.call(t)),eO.call(e,t)?e[t].push(n):e[t]=[n]},ic),od=rd(n2);function oh(e){return aj(e)?nT(e):n9(e)}function of(e){return aj(e)?nT(e,!0):function(e){if(!aH(e))return function(e){var t=[];if(null!=e)for(var n in ex(e))t.push(n);return t}(e);var t=i_(e),n=[];for(var r in e)"constructor"==r&&(t||!eO.call(e,r))||n.push(r);return n}(e)}var op=rq(function(e,t,n){rr(e,t,n)}),om=rq(function(e,t,n,r){rr(e,t,n,r)}),og=ii(function(e,t){var n={};if(null==e)return n;var r=!1;t=tp(t,function(t){return t=rP(t,e),r||(r=t.length>1),t}),rV(e,io(e),n),r&&(n=nD(n,7,it));for(var i=t.length;i--;)rx(n,t[i]);return n}),ov=ii(function(e,t){return null==e?{}:ro(e,t,function(t,n){return ol(e,n)})});function oy(e,t){if(null==e)return{};var n=tp(io(e),function(e){return[e]});return t=ic(t),ro(e,n,function(e,n){return t(e,n[0])})}var ob=r6(oh),oA=r6(of);function oE(e){return null==e?[]:tR(e,oh(e))}var ow=rK(function(e,t,n){return t=t.toLowerCase(),e+(n?ox(t):t)});function ox(e){return oP(a7(e).toLowerCase())}function oT(e){return(e=a7(e))&&e.replace(ep,tj).replace(eH,"")}var oS=rK(function(e,t,n){return e+(n?"-":"")+t.toLowerCase()}),o_=rK(function(e,t,n){return e+(n?" ":"")+t.toLowerCase()}),oC=rG("toLowerCase"),ok=rK(function(e,t,n){return e+(n?"_":"")+t.toLowerCase()}),oI=rK(function(e,t,n){return e+(n?" ":"")+oP(t)}),oL=rK(function(e,t,n){return e+(n?" ":"")+t.toUpperCase()}),oP=rG("toUpperCase");function oO(e,t,n){if(e=a7(e),t=n?i:t,i===t){var r;return(r=e,eW.test(r))?e.match(eK)||[]:e.match(ei)||[]}return e.match(t)||[]}var oR=rd(function(e,t){try{return ts(e,i,t)}catch(e){return aV(e)?e:new eA(e)}}),oD=ii(function(e,t){return tu(t,function(t){nP(e,t=iF(t),aA(e[t],e))}),e});function oN(e){return function(){return e}}var oM=rZ(),oj=rZ(!0);function oF(e){return e}function oB(e){return n6("function"==typeof e?e:nD(e,1))}var oU=rd(function(e,t){return function(n){return n2(n,e,t)}}),oV=rd(function(e,t){return function(n){return n2(e,n,t)}});function oz(e,t,n){var r=oh(t),i=n$(t,r);
vendor: 8,284 bytes, line 1
1null!=n||aH(t)&&(i.length||!r.length)||(n=t,t=e,e=this,i=n$(t,oh(t)));var a=!(aH(n)&&"chain"in n)||!!n.chain,o=az(e);return tu(i,function(n){var r=t[n];e[n]=r,o&&(e.prototype[n]=function(){var t=this.__chain__;if(a||t){var n=e(this.__wrapped__);return(n.__actions__=rU(this.__actions__)).push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,tm([this.value()],arguments))})}),e}function oq(){}var oQ=r0(tp),oH=r0(tc),oG=r0(ty);function oK(e){return ix(e)?t_(iF(e)):function(t){return nW(t,e)}}var o$=r2(),oW=r2(!0);function oZ(){return[]}function oY(){return!1}var oX=rJ(function(e,t){return e+t},0),oJ=r5("ceil"),o0=rJ(function(e,t){return e/t},1),o1=r5("floor"),o2=rJ(function(e,t){return e*t},1),o3=r5("round"),o4=rJ(function(e,t){return e-t},0);return np.after=function(e,t){if("function"!=typeof t)throw new e_(a);return e=a5(e),function(){if(--e<1)return t.apply(this,arguments)}},np.ary=ay,np.assign=oe,np.assignIn=ot,np.assignInWith=on,np.assignWith=or,np.at=oi,np.before=ab,np.bind=aA,np.bindAll=oD,np.bindKey=aE,np.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return aN(e)?e:[e]},np.chain=ar,np.chunk=function(e,t,n){t=(n?iw(e,t,n):i===t)?1:t2(a5(t),0);var r=null==e?0:e.length;if(!r||t<1)return[];for(var a=0,o=0,s=ey(tC(r/t));a<r;)s[o++]=rm(e,a,a+=t);return s},np.compact=function(e){for(var t=-1,n=null==e?0:e.length,r=0,i=[];++t<n;){var a=e[t];a&&(i[r++]=a)}return i},np.concat=function(){var e=arguments.length;if(!e)return[];for(var t=ey(e-1),n=arguments[0],r=e;r--;)t[r-1]=arguments[r];return tm(aN(n)?rU(n):[n],nq(t,1))},np.cond=function(e){var t=null==e?0:e.length,n=ic();return e=t?tp(e,function(e){if("function"!=typeof e[1])throw new e_(a);return[n(e[0]),e[1]]}):[],rd(function(n){for(var r=-1;++r<t;){var i=e[r];if(ts(i[0],this,n))return ts(i[1],this,n)}})},np.conforms=function(e){var t,n;return n=oh(t=nD(e,1)),function(e){return nN(e,t,n)}},np.constant=oN,np.countBy=ao,np.create=function(e,t){var n=nm(e);return null==t?n:nL(n,t)},np.curry=function e(t,n,r){n=r?i:n;var a=r9(t,8,i,i,i,i,i,n);return a.placeholder=e.placeholder,a},np.curryRight=function e(t,n,r){n=r?i:n;var a=r9(t,16,i,i,i,i,i,n);return a.placeholder=e.placeholder,a},np.debounce=aw,np.defaults=oa,np.defaultsDeep=oo,np.defer=ax,np.delay=aT,np.difference=iV,np.differenceBy=iz,np.differenceWith=iq,np.drop=function(e,t,n){var r=null==e?0:e.length;return r?rm(e,(t=n||i===t?1:a5(t))<0?0:t,r):[]},np.dropRight=function(e,t,n){var r=null==e?0:e.length;return r?rm(e,0,(t=r-(t=n||i===t?1:a5(t)))<0?0:t):[]},np.dropRightWhile=function(e,t){return e&&e.length?rS(e,ic(t,3),!0,!0):[]},np.dropWhile=function(e,t){return e&&e.length?rS(e,ic(t,3),!0):[]},np.fill=function(e,t,n,r){var a=null==e?0:e.length;return a?(n&&"number"!=typeof n&&iw(e,t,n)&&(n=0,r=a),function(e,t,n,r){var a=e.length;for((n=a5(n))<0&&(n=-n>a?0:a+n),(r=i===r||r>a?a:a5(r))<0&&(r+=a),r=n>r?0:a8(r);n<r;)e[n++]=t;return e}(e,t,n,r)):[]},np.filter=function(e,t){return(aN(e)?td:nz)(e,ic(t,3))},np.flatMap=function(e,t){return nq(ap(e,t),1)},np.flatMapDeep=function(e,t){return nq(ap(e,t),l)},np.flatMapDepth=function(e,t,n){return n=i===n?1:a5(n),nq(ap(e,t),n)},np.flatten=iG,np.flattenDeep=function(e){return(null==e?0:e.length)?nq(e,l):[]},np.flattenDepth=function(e,t){return(null==e?0:e.length)?nq(e,t=i===t?1:a5(t)):[]},np.flip=function(e){return r9(e,512)},np.flow=oM,np.flowRight=oj,np.fromPairs=function(e){for(var t=-1,n=null==e?0:e.length,r={};++t<n;){var i=e[t];r[i[0]]=i[1]}return r},np.functions=function(e){return null==e?[]:n$(e,oh(e))},np.functionsIn=function(e){return null==e?[]:n$(e,of(e))},np.groupBy=ad,np.initial=function(e){return(null==e?0:e.length)?rm(e,0,-1):[]},np.intersection=i$,np.intersectionBy=iW,np.intersectionWith=iZ,np.invert=ou,np.invertBy=oc,np.invokeMap=ah,np.iteratee=oB,np.keyBy=af,np.keys=oh,np.keysIn=of,np.map=ap,np.mapKeys=function(e,t){var n={};return t=ic(t,3),nG(e,function(e,r,i){nP(n,t(e,r,i),e)}),n},np.mapValues=function(e,t){var n={};return t=ic(t,3),nG(e,function(e,r,i){nP(n,r,t(e,r,i))}),n},np.matches=function(e){return rt(nD(e,1))},np.matchesProperty=function(e,t){return rn(e,nD(t,1))},np.memoize=aS,np.merge=op,np.mergeWith=om,np.method=oU,np.methodOf=oV,np.mixin=oz,np.negate=a_,np.nthArg=function(e){return e=a5(e),rd(function(t){return ri(t,e)})},np.omit=og,np.omitBy=function(e,t){return oy(e,a_(ic(t)))},np.once=function(e){return ab(2,e)},np.orderBy=function(e,t,n,r){return null==e?[]:(aN(t)||(t=null==t?[]:[t]),aN(n=r?i:n)||(n=null==n?[]:[n]),ra(e,t,n))},np.over=oQ,np.overArgs=aC,np.overEvery=oH,np.overSome=oG,np.partial=ak,np.partialRight=aI,np.partition=am,np.pick=ov,np.pickBy=oy,np.property=oK,np.propertyOf=function(e){return function(t){return null==e?i:nW(e,t)}},np.pull=iX,np.pullAll=iJ,np.pullAllBy=function(e,t,n){return e&&e.length&&t&&t.length?rs(e,t,ic(n,2)):e},np.pullAllWith=function(e,t,n){return e&&e.length&&t&&t.length?rs(e,t,i,n):e},np.pullAt=i0,np.range=o$,np.rangeRight=oW,np.rearg=aL,np.reject=function(e,t){return(aN(e)?td:nz)(e,a_(ic(t,3)))},np.remove=function(e,t){var n=[];if(!(e&&e.length))return n;var r=-1,i=[],a=e.length;for(t=ic(t,3);++r<a;){var o=e[r];t(o,r,e)&&(n.push(o),i.push(r))}return rl(e,i),n},np.rest=function(e,t){if("function"!=typeof e)throw new e_(a);return rd(e,t=i===t?t:a5(t))},np.reverse=i1,np.sampleSize=function(e,t,n){return t=(n?iw(e,t,n):i===t)?1:a5(t),(aN(e)?function(e,t){return iM(rU(e),nR(t,0,e.length))}:function(e,t){var n=oE(e);return iM(n,nR(t,0,n.length))})(e,t)},np.set=function(e,t,n){return null==e?e:rh(e,t,n)},np.setWith=function(e,t,n,r){return r="function"==typeof r?r:i,null==e?e:rh(e,t,n,r)},np.shuffle=function(e){return(aN(e)?function(e){return iM(rU(e))}:function(e){return iM(oE(e))})(e)},np.slice=function(e,t,n){var r=null==e?0:e.length;return r?(n&&"number"!=typeof n&&iw(e,t,n)?(t=0,n=r):(t=null==t?0:a5(t),n=i===n?r:a5(n)),rm(e,t,n)):[]},np.sortBy=ag,np.sortedUniq=function(e){return e&&e.length?rb(e):[]},np.sortedUniqBy=function(e,t){return e&&e.length?rb(e,ic(t,2)):[]},np.split=function(e,t,n){return(n&&"number"!=typeof n&&iw(e,t,n)&&(t=n=i),n=i===n?4294967295:n>>>0)?(e=a7(e))&&("string"==typeof t||null!=t&&!aZ(t))&&!(t=rE(t))&&tU(e)?rO(tG(e),0,n):e.split(t,n):[]},np.spread=function(e,t){if("function"!=typeof e)throw new e_(a);return t=null==t?0:t2(a5(t),0),rd(function(n){var r=n[t],i=rO(n,0,t);return r&&tm(i,r),ts(e,this,i)})},np.tail=function(e){var t=null==e?0:e.length;return t?rm(e,1,t):[]},np.take=function(e,t,n){return e&&e.length?rm(e,0,(t=n||i===t?1:a5(t))<0?0:t):[]},np.takeRight=function(e,t,n){var r=null==e?0:e.length;return r?rm(e,(t=r-(t=n||i===t?1:a5(t)))<0?0:t,r):[]},np.takeRightWhile=function(e,t){return e&&e.length?rS(e,ic(t,3),!1,!0):[]},np.takeWhile=function(e,t){return e&&e.length?rS(e,ic(t,3)):[]},np.tap=function(e,t){return t(e),e},np.throttle=function(e,t,n){var r=!0,i=!0;if("function"!=typeof e)throw new e_(a);return aH(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),aw(e,t,{leading:r,maxWait:t,trailing:i})},np.thru=ai,np.toArray=a3,np.toPairs=ob,np.toPairsIn=oA,np.toPath=function(e){return aN(e)?tp(e,iF):aJ(e)?[e]:rU(ij(a7(e)))},np.toPlainObject=a9,np.transform=function(e,t,n){var r=aN(e),i=r||aB(e)||a0(e);if(t=ic(t,4),null==n){var a=e&&e.constructor;n=i?r?new a:[]:aH(e)&&az(a)?nm(eq(e)):{}}return(i?tu:nG)(e,function(e,r,i){return t(n,e,r,i)}),n},np.unary=function(e){return ay(e,1)},np.union=i2,np.unionBy=i3,np.unionWith=i4,np.uniq=function(e){return e&&e.length?rw(e):[]},np.uniqBy=function(e,t){return e&&e.length?rw(e,ic(t,2)):[]},np.uniqWith=function(e,t){return t="function"==typeof t?t:i,e&&e.length?rw(e,i,t):[]},np.unset=function(e,t){return null==e||rx(e,t)},np.unzip=i5,np.unzipWith=i8,np.update=function(e,t,n){return null==e?e:rT(e,t,rL(n))},np.updateWith=function(e,t,n,r){return r="function"==typeof r?r:i,null==e?e:rT(e,t,rL(n),r)},np.values=oE,np.valuesIn=function(e){return null==e?[]:tR(e,of(e))},np.without=i6,np.words=oO,np.wrap=function(e,t){return ak(rL(t),e)},np.xor=i9,np.xorBy=i7,np.xorWith=ae,np.zip=at,np.zipObject=function(e,t){return rk(e||[],t||[],nC)},np.zipObjectDeep=function(e,t){return rk(e||[],t||[],rh)},np.zipWith=an,np.entries=ob,np.entriesIn=oA,np.extend=ot,np.extendWith=on,oz(np,np),np.add=oX,np.attempt=oR,np.camel
vendor: 3,179 bytes, line 1
1Case=ow,np.capitalize=ox,np.ceil=oJ,np.clamp=function(e,t,n){return i===n&&(n=t,t=i),i!==n&&(n=(n=a6(n))==n?n:0),i!==t&&(t=(t=a6(t))==t?t:0),nR(a6(e),t,n)},np.clone=function(e){return nD(e,4)},np.cloneDeep=function(e){return nD(e,5)},np.cloneDeepWith=function(e,t){return nD(e,5,t="function"==typeof t?t:i)},np.cloneWith=function(e,t){return nD(e,4,t="function"==typeof t?t:i)},np.conformsTo=function(e,t){return null==t||nN(e,t,oh(t))},np.deburr=oT,np.defaultTo=function(e,t){return null==e||e!=e?t:e},np.divide=o0,np.endsWith=function(e,t,n){e=a7(e),t=rE(t);var r=e.length,a=n=i===n?r:nR(a5(n),0,r);return(n-=t.length)>=0&&e.slice(n,a)==t},np.eq=aP,np.escape=function(e){return(e=a7(e))&&Q.test(e)?e.replace(z,tF):e},np.escapeRegExp=function(e){return(e=a7(e))&&X.test(e)?e.replace(Y,"\\$&"):e},np.every=function(e,t,n){var r=aN(e)?tc:nU;return n&&iw(e,t,n)&&(t=i),r(e,ic(t,3))},np.find=as,np.findIndex=iQ,np.findKey=function(e,t){return tA(e,ic(t,3),nG)},np.findLast=al,np.findLastIndex=iH,np.findLastKey=function(e,t){return tA(e,ic(t,3),nK)},np.floor=o1,np.forEach=au,np.forEachRight=ac,np.forIn=function(e,t){return null==e?e:nQ(e,ic(t,3),of)},np.forInRight=function(e,t){return null==e?e:nH(e,ic(t,3),of)},np.forOwn=function(e,t){return e&&nG(e,ic(t,3))},np.forOwnRight=function(e,t){return e&&nK(e,ic(t,3))},np.get=os,np.gt=aO,np.gte=aR,np.has=function(e,t){return null!=e&&iy(e,t,nJ)},np.hasIn=ol,np.head=iK,np.identity=oF,np.includes=function(e,t,n,r){e=aj(e)?e:oE(e),n=n&&!r?a5(n):0;var i=e.length;return n<0&&(n=t2(i+n,0)),aX(e)?n<=i&&e.indexOf(t,n)>-1:!!i&&tw(e,t,n)>-1},np.indexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return -1;var i=null==n?0:a5(n);return i<0&&(i=t2(r+i,0)),tw(e,t,i)},np.inRange=function(e,t,n){var r,a,o;return t=a4(t),i===n?(n=t,t=0):n=a4(n),(r=e=a6(e))>=t3(a=t,o=n)&&r<t2(a,o)},np.invoke=od,np.isArguments=aD,np.isArray=aN,np.isArrayBuffer=aM,np.isArrayLike=aj,np.isArrayLikeObject=aF,np.isBoolean=function(e){return!0===e||!1===e||aG(e)&&nY(e)==f},np.isBuffer=aB,np.isDate=aU,np.isElement=function(e){return aG(e)&&1===e.nodeType&&!aW(e)},np.isEmpty=function(e){if(null==e)return!0;if(aj(e)&&(aN(e)||"string"==typeof e||"function"==typeof e.splice||aB(e)||a0(e)||aD(e)))return!e.length;var t=iv(e);if(t==y||t==x)return!e.size;if(i_(e))return!n9(e).length;for(var n in e)if(eO.call(e,n))return!1;return!0},np.isEqual=function(e,t){return n4(e,t)},np.isEqualWith=function(e,t,n){var r=(n="function"==typeof n?n:i)?n(e,t):i;return i===r?n4(e,t,i,n):!!r},np.isError=aV,np.isFinite=function(e){return"number"==typeof e&&tJ(e)},np.isFunction=az,np.isInteger=aq,np.isLength=aQ,np.isMap=aK,np.isMatch=function(e,t){return e===t||n5(e,t,ih(t))},np.isMatchWith=function(e,t,n){return n="function"==typeof n?n:i,n5(e,t,ih(t),n)},np.isNaN=function(e){return a$(e)&&e!=+e},np.isNative=function(e){if(iS(e))throw new eA("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return n8(e)},np.isNil=function(e){return null==e},np.isNull=function(e){return null===e},np.isNumber=a$,np.isObject=aH,np.isObjectLike=aG,np.isPlainObject=aW,np.isRegExp=aZ,np.isSafeInteger=function(e){return aq(e)&&e>=-9007199254740991&&e<=9007199254740991}
vendor: 4,481 bytes, line 1
1,np.isSet=aY,np.isString=aX,np.isSymbol=aJ,np.isTypedArray=a0,np.isUndefined=function(e){return i===e},np.isWeakMap=function(e){return aG(e)&&iv(e)==_},np.isWeakSet=function(e){return aG(e)&&"[object WeakSet]"==nY(e)},np.join=function(e,t){return null==e?"":t0.call(e,t)},np.kebabCase=oS,np.last=iY,np.lastIndexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return -1;var a=r;return i!==n&&(a=(a=a5(n))<0?t2(r+a,0):t3(a,r-1)),t==t?function(e,t,n){for(var r=n+1;r--&&e[r]!==t;);return r}(e,t,a):tE(e,tT,a,!0)},np.lowerCase=o_,np.lowerFirst=oC,np.lt=a1,np.lte=a2,np.max=function(e){return e&&e.length?nV(e,oF,nX):i},np.maxBy=function(e,t){return e&&e.length?nV(e,ic(t,2),nX):i},np.mean=function(e){return tS(e,oF)},np.meanBy=function(e,t){return tS(e,ic(t,2))},np.min=function(e){return e&&e.length?nV(e,oF,n7):i},np.minBy=function(e,t){return e&&e.length?nV(e,ic(t,2),n7):i},np.stubArray=oZ,np.stubFalse=oY,np.stubObject=function(){return{}},np.stubString=function(){return""},np.stubTrue=function(){return!0},np.multiply=o2,np.nth=function(e,t){return e&&e.length?ri(e,a5(t)):i},np.noConflict=function(){return e5._===this&&(e5._=ej),this},np.noop=oq,np.now=av,np.pad=function(e,t,n){e=a7(e);var r=(t=a5(t))?tH(e):0;if(!t||r>=t)return e;var i=(t-r)/2;return r1(tZ(i),n)+e+r1(tC(i),n)},np.padEnd=function(e,t,n){e=a7(e);var r=(t=a5(t))?tH(e):0;return t&&r<t?e+r1(t-r,n):e},np.padStart=function(e,t,n){e=a7(e);var r=(t=a5(t))?tH(e):0;return t&&r<t?r1(t-r,n)+e:e},np.parseInt=function(e,t,n){return n||null==t?t=0:t&&(t=+t),t5(a7(e).replace(J,""),t||0)},np.random=function(e,t,n){if(n&&"boolean"!=typeof n&&iw(e,t,n)&&(t=n=i),i===n&&("boolean"==typeof t?(n=t,t=i):"boolean"==typeof e&&(n=e,e=i)),i===e&&i===t?(e=0,t=1):(e=a4(e),i===t?(t=e,e=0):t=a4(t)),e>t){var r=e;e=t,t=r}if(n||e%1||t%1){var a=t8();return t3(e+a*(t-e+e1("1e-"+((a+"").length-1))),t)}return ru(e,t)},np.reduce=function(e,t,n){var r=aN(e)?tg:tk,i=arguments.length<3;return r(e,ic(t,4),n,i,nF)},np.reduceRight=function(e,t,n){var r=aN(e)?tv:tk,i=arguments.length<3;return r(e,ic(t,4),n,i,nB)},np.repeat=function(e,t,n){return t=(n?iw(e,t,n):i===t)?1:a5(t),rc(a7(e),t)},np.replace=function(){var e=arguments,t=a7(e[0]);return e.length<3?t:t.replace(e[1],e[2])},np.result=function(e,t,n){t=rP(t,e);var r=-1,a=t.length;for(a||(a=1,e=i);++r<a;){var o=null==e?i:e[iF(t[r])];i===o&&(r=a,o=n),e=az(o)?o.call(e):o}return e},np.round=o3,np.runInContext=e,np.sample=function(e){return(aN(e)?nS:function(e){return nS(oE(e))})(e)},np.size=function(e){if(null==e)return 0;if(aj(e))return aX(e)?tH(e):e.length;var t=iv(e);return t==y||t==x?e.size:n9(e).length},np.snakeCase=ok,np.some=function(e,t,n){var r=aN(e)?ty:rg;return n&&iw(e,t,n)&&(t=i),r(e,ic(t,3))},np.sortedIndex=function(e,t){return rv(e,t)},np.sortedIndexBy=function(e,t,n){return ry(e,t,ic(n,2))},np.sortedIndexOf=function(e,t){var n=null==e?0:e.length;if(n){var r=rv(e,t);if(r<n&&aP(e[r],t))return r}return -1},np.sortedLastIndex=function(e,t){return rv(e,t,!0)},np.sortedLastIndexBy=function(e,t,n){return ry(e,t,ic(n,2),!0)},np.sortedLastIndexOf=function(e,t){if(null==e?0:e.length){var n=rv(e,t,!0)-1;if(aP(e[n],t))return n}return -1},np.startCase=oI,np.startsWith=function(e,t,n){return e=a7(e),n=null==n?0:nR(a5(n),0,e.length),t=rE(t),e.slice(n,n+t.length)==t},np.subtract=o4,np.sum=function(e){return e&&e.length?tI(e,oF):0},np.sumBy=function(e,t){return e&&e.length?tI(e,ic(t,2)):0},np.template=function(e,t,n){var r=np.templateSettings;n&&iw(e,t,n)&&(t=i),e=a7(e),t=on({},t,r,r7);var a,o,s=on({},t.imports,r.imports,r7),l=oh(s),u=tR(s,l),c=0,d=t.interpolate||em,h="__p += '",f=eT((t.escape||em).source+"|"+d.source+"|"+(d===K?es:em).source+"|"+(t.evaluate||em).source+"|$","g"),p="//# sourceURL="+(eO.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++eY+"]")+"\n";e.replace(f,function(t,n,r,i,s,l){return r||(r=i),h+=e.slice(c,l).replace(eg,tB),n&&(a=!0,h+="' +\n__e("+n+") +\n'"),s&&(o=!0,h+="';\n"+s+";\n__p += '"),r&&(h+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),c=l+t.length,t}),h+="';\n";var m=eO.call(t,"variable")&&t.variable;if(m){if(ea.test(m))throw new eA("Invalid `variable` option passed into `_.template`")}else h="with (obj) {\n"+h+"\n}\n";h=(o?h.replace(F,""):h).replace(B,"$1").replace(U,"$1;"),h="function("+(m||"obj")+") {\n"+(m?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(a?", __e = _.escape":"")+(o?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";
1\n")+h+"return __p\n}";var g=oR(function(){return eE(l,p+"return "+h).apply(i,u)});if(g.source=h,aV(g))throw g;return g},np.times=function(e,t){if((e=a5(e))<1||e>9007199254740991)return[];var n=4294967295,r=t3(e,4294967295);t=ic(t),e-=4294967295;for(var i=tL(r,t);++n<e;)t(n);return i},np.toFinite=a4,np.toInteger=a5,np.toLength=a8,np.toLower=function(e){return a7(e).toLowerCase()},np.toNumber=a6,np.toSafeInteger=function(e){return e?nR(a5(e),-9007199254740991,9007199254740991):0===e?e:0},np.toString=a7,np.toUpper=function(e){return a7(e).toUpperCase()},np.trim=function(e,t,n){if((e=a7(e))&&(n||i===t))return tP(e);if(!e||!(t=rE(t)))return e;var r=tG(e),a=tG(t),o=tN(r,a),s=tM(r,a)+1;return rO(r,o,s).join("")},np.trimEnd=function(e,t,n){if((e=a7(e))&&(n||i===t))return e.slice(0,tK(e)+1);if(!e||!(t=rE(t)))return e;var r=tG(e),a=tM(r,tG(t))+1;return rO(r,0,a).join("")},np.trimStart=function(e,t,n){if((e=a7(e))&&(n||i===t))return e.replace(J,"");if(!e||!(t=rE(t)))return e;var r=tG(e),a=tN(r,tG(t));return rO(r,a).join("")},np.truncate=function(e,t){var n=30,r="...";if(aH(t)){var a="separator"in t?t.separator:a;n="length"in t?a5(t.length):n,r="omission"in t?rE(t.omission):r}var o=(e=a7(e)).length;if(tU(e)){var s=tG(e);o=s.length}if(n>=o)return e;var l=n-tH(r);if(l<1)return r;var u=s?rO(s,0,l).join(""):e.slice(0,l);if(i===a)return u+r;if(s&&(l+=u.length-l),aZ(a)){if(e.slice(l).search(a)){var c,d=u;for(a.global||(a=eT(a.source,a7(el.exec(a))+"g")),a.lastIndex=0;c=a.exec(d);)var h=c.index;u=u.slice(0,i===h?l:h)}}else if(e.indexOf(rE(a),l)!=l){var f=u.lastIndexOf(a);f>-1&&(u=u.slice(0,f))}return u+r},np.unescape=function(e){return(e=a7(e))&&q.test(e)?e.replace(V,t$):e},np.uniqueId=function(e){var t=++eR;return a7(e)+t},np.upperCase=oL,np.upperFirst=oP,np.each=au,np.eachRight=ac,np.first=iK,oz(np,(ev={},nG(np,function(e,t){eO.call(np.prototype,t)||(ev[t]=e)}),ev),{chain:!1}),np.VERSION="4.17.21",tu(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){np[e].placeholder=np}),tu(["drop","take"],function(e,t){ny.prototype[e]=function(n){n=i===n?1:t2(a5(n),0);var r=this.__filtered__&&!t?new ny(this):this.clone();return r.__filtered__?r.__takeCount__=t3(n,r.__takeCount__):r.__views__.push({size:t3(n,4294967295),type:e+(r.__dir__<0?"Right":"")}),r},ny.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}}),tu(["filter","map","takeWhile"],function(e,t){var n=t+1,r=1==n||3==n;ny.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:ic(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}}),tu(["head","last"],function(e,t){var n="take"+(t?"Right":"");ny.prototype[e]=function(){return this[n](1).value()[0]}}),tu(["initial","tail"],function(e,t){var n="drop"+(t?"":"Right");ny.prototype[e]=function(){return this.__filtered__?new ny(this):this[n](1)}}),ny.prototype.compact=function(){return this.filter(oF)},ny.prototype.find=function(e){return this.filter(e).head()},ny.prototype.findLast=function(e){return this.reverse().find(e)},ny.prototype.invokeMap=rd(function(e,t){return"function"==typeof e?new ny(this):this.map(function(n){return n2(n,e,t)})}),ny.prototype.reject=function(e){return this.filter(a_(ic(e)))},ny.prototype.slice=function(e,t){e=a5(e);var n=this;return n.__filtered__&&(e>0||t<0)?new ny(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),i!==t&&(n=(t=a5(t))<0?n.dropRight(-t):n.take(t-e)),n)},ny.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},ny.prototype.toArray=function(){return this.take(4294967295)},nG(ny.prototype,function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),r=/^(?:head|last)$/.test(t),a=np[r?"take"+("last"==t?"Right":""):t],o=r||/^find/.test(t);a&&(np.prototype[t]=function(){var t=this.__wrapped__,s=r?[1]:arguments,l=t instanceof ny,u=s[0],c=l||aN(t),d=function(e){var t=a.apply(np,tm([e],s));return r&&h?t[0]:t};c&&n&&"function"==typeof u&&1!=u.length&&(l=c=!1);var h=this.__chain__,f=!!this.__actions__.length,p=o&&!h,m=l&&!f;if(!o&&c){t=m?t:new ny(this);var g=e.apply(t,s);return g.__actions__.push({func:ai,args:[d],thisArg:i}),new nv(g,h)}return p&&m?e.apply(this,s):(g=this.thru(d),p?r?g.value()[0]:g.value():g)})}),tu(["pop","push","shift","sort","splice","unshift"],function(e){var t=eC[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);np.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var i=this.value();return t.apply(aN(i)?i:[],e)}return this[n](function(n){return t.apply(aN(n)?n:[],e)})}}),nG(ny.prototype,function(e,t){var n=np[t];if(n){var r=n.name+"";eO.call(na,r)||(na[r]=[]),na[r].push({name:t,func:n})}}),na[rY(i,2).name]=[{name:"wrapper",func:i}],ny.prototype.clone=function(){var e=new ny(this.__wrapped__);return e.__actions__=rU(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=rU(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=rU(this.__views__),e},ny.prototype.reverse=function(){if(this.__filtered__){var e=new ny(this);e.__dir__=-1,e.__filtered__=!0}else e=this.clone(),e.__dir__*=-1;return e},ny.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=aN(e),r=t
1<0,i=n?e.length:0,a=function(e,t,n){for(var r=-1,i=n.length;++r<i;){var a=n[r],o=a.size;switch(a.type){case"drop":e+=o;break;case"dropRight":t-=o;break;case"take":t=t3(t,e+o);break;case"takeRight":e=t2(e,t-o)}}return{start:e,end:t}}(0,i,this.__views__),o=a.start,s=a.end,l=s-o,u=r?s:o-1,c=this.__iteratees__,d=c.length,h=0,f=t3(l,this.__takeCount__);if(!n||!r&&i==l&&f==l)return r_(e,this.__actions__);var p=[];t:for(;l--&&h<f;){for(var m=-1,g=e[u+=t];++m<d;){var v=c[m],y=v.iteratee,b=v.type,A=y(g);if(2==b)g=A;else if(!A){if(1==b)continue t;break t}}p[h++]=g}return p},np.prototype.at=aa,np.prototype.chain=function(){return ar(this)},np.prototype.commit=function(){return new nv(this.value(),this.__chain__)},np.prototype.next=function(){i===this.__values__&&(this.__values__=a3(this.value()));var e=this.__index__>=this.__values__.length,t=e?i:this.__values__[this.__index__++];return{done:e,value:t}},np.prototype.plant=function(e){for(var t,n=this;n instanceof ng;){var r=iU(n);r.__index__=0,r.__values__=i,t?a.__wrapped__=r:t=r;var a=r;n=n.__wrapped__}return a.__wrapped__=e,t},np.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof ny){var t=e;return this.__actions__.length&&(t=new ny(this)),(t=t.reverse()).__actions__.push({func:ai,args:[i1],thisArg:i}),new nv(t,this.__chain__)}return this.thru(i1)},np.prototype.toJSON=np.prototype.valueOf=np.prototype.value=function(){return r_(this.__wrapped__,this.__actions__)},np.prototype.first=np.prototype.head,e4&&(np.prototype[e4]=function(){return this}),np}();e5._=tW,i!==(r=(function(){return tW}).call(t,n,t,e))&&(e.exports=r)}).call(this)},7771:function(e,t,n){var r=n(5639);e.exports=function(){return r.Date.now()}},3493:function(e,t,n){var r=n(3279),i=n(3218);e.exports=function(e,t,n){var a=!0,o=!0;if("function"!=typeof e)throw TypeError("Expected a function");return i(n)&&(a="leading"in n?!!n.leading:a,o="trailing"in n?!!n.trailing:o),r(e,t,{leading:a,maxWait:t,trailing:o})}},4841:function(e,t,n){var r=n(7561),i=n(3218),a=n(3448),o=0/0,s=/^[-+]0x[0-9a-f]+$/i,l=/^0b[01]+$/i,u=/^0o[0-7]+$/i,c=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(a(e))return o;if(i(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=i(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=r(e);var n=l.test(e);return n||u.test(e)?c(e.slice(2),n?2:8):s.test(e)?o:+e}},9833:function(e,t,n){var r=n(531);e.exports=function(e){return null==e?"":r(e)}},1700:function(e,t,n){var r=n(8805)("toUpperCase");e.exports=r},845:function(e,t,n){"use strict";n.r(t);var r=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function i(e,t){if(e.length!==t.length)return!1;for(var n,i,a=0;a<e.length;a++)if(!((n=e[a])===(i=t[a])||r(n)&&r(i)))return!1;return!0}t.default=function(e,t){void 0===t&&(t=i);var n,r,a=[],o=!1;return function(){for(var i=[],s=0;s<arguments.length;s++)i[s]=arguments[s];return o&&n===this&&t(i,a)||(r=e.apply(this,i),o=!0,n=this,a=i),r}}},4343:function(e,t,n){e.exports=n(5944)},6477:function(e,t){"use strict";t.Headers=self.Headers,t.Request=self.Request,t.Response=self.Response,t.fetch=self.fetch},6086:function(e){"use strict";var t=Object.assign.bind(Object);e.exports=t,e.exports.default=e.exports},6840:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/_app",function(){return n(8610)}])},5944:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"useRouter",{enumerable:!0,get:function(){return a}});let r=n(7294),i=n(1973);function a(){return(0,r.useContext)(i.RouterContext)}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},3412:function(e,t){"use strict";var n,r;Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{PrefetchKind:function(){return n},ACTION_REFRESH:function(){return i},ACTION_NAVIGATE:function(){return a},ACTION_RESTORE:function(){return o},ACTION_SERVER_PATCH:function(){return s},ACTION_PREFETCH:function(){return l},ACTION_FAST_REFRESH:function(){return u},ACTION_SERVER_ACTION:function(){return c},isThenable:function(){return d}});let i="refresh",a="navigate",o="restore",s="server-patch",l="prefetch",u="fast-refresh",c="server-action";function d(e){return e&&("object"==typeof e||"function"==typeof e)&&"function"==typeof e.then}(r=n||(n={})).AUTO="auto",r.FULL="full",r.TEMPORARY="temporary",("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esMo
1dule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},6504:function(e,t,n){"use strict";function r(e,t,n,r){return!1}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getDomainLocale",{enumerable:!0,get:function(){return r}}),n(282),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},3480:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return A}});let r=n(8754),i=n(5893),a=r._(n(7294)),o=n(7950),s=n(7387),l=n(6982),u=n(6921),c=n(7727),d=n(1973),h=n(6216),f=n(1722),p=n(6504),m=n(634),g=n(3412),v=new Set;function y(e,t,n,r,i,a){if(a||(0,s.isLocalURL)(t)){if(!r.bypassPrefetchedCheck){let i=t+"%"+n+"%"+(void 0!==r.locale?r.locale:"locale"in e?e.locale:void 0);if(v.has(i))return;v.add(i)}Promise.resolve(a?e.prefetch(t,i):e.prefetch(t,n,r)).catch(e=>{})}}function b(e){return"string"==typeof e?e:(0,l.formatUrl)(e)}let A=a.default.forwardRef(function(e,t){let n,r;let{href:l,as:v,children:A,prefetch:E=null,passHref:w,replace:x,shallow:T,scroll:S,locale:_,onClick:C,onMouseEnter:k,onTouchStart:I,legacyBehavior:L=!1,...P}=e;n=A,L&&("string"==typeof n||"number"==typeof n)&&(n=(0,i.jsx)("a",{children:n}));let O=a.default.useContext(d.RouterContext),R=a.default.useContext(h.AppRouterContext),D=null!=O?O:R,N=!O,M=!1!==E,j=null===E?g.PrefetchKind.AUTO:g.PrefetchKind.FULL,{href:F,as:B}=a.default.useMemo(()=>{if(!O){let e=b(l);return{href:e,as:v?b(v):e}}let[e,t]=(0,o.resolveHref)(O,l,!0);return{href:e,as:v?(0,o.resolveHref)(O,v):t||e}},[O,l,v]),U=a.default.useRef(F),V=a.default.useRef(B);L&&(r=a.default.Children.only(n));let z=L?r&&"object"==typeof r&&r.ref:t,[q,Q,H]=(0,f.useIntersection)({rootMargin:"200px"}),G=a.default.useCallback(e=>{(V.current!==B||U.current!==F)&&(H(),V.current=B,U.current=F),q(e),z&&("function"==typeof z?z(e):"object"==typeof z&&(z.current=e))},[B,z,F,H,q]);a.default.useEffect(()=>{D&&Q&&M&&y(D,F,B,{locale:_},{kind:j},N)},[B,F,Q,_,M,null==O?void 0:O.locale,D,N,j]);let K={ref:G,onClick(e){L||"function"!=typeof C||C(e),L&&r.props&&"function"==typeof r.props.onClick&&r.props.onClick(e),D&&!e.defaultPrevented&&function(e,t,n,r,i,o,l,u,c){let{nodeName:d}=e.currentTarget;if("A"===d.toUpperCase()&&(function(e){let t=e.currentTarget.getAttribute("target");return t&&"_self"!==t||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey||e.nativeEvent&&2===e.nativeEvent.which}(e)||!c&&!(0,s.isLocalURL)(n)))return;e.preventDefault();let h=()=>{let e=null==l||l;"beforePopState"in t?t[i?"replace":"push"](n,r,{shallow:o,locale:u,scroll:e}):t[i?"replace":"push"](r||n,{scroll:e})};c?a.default.startTransition(h):h()}(e,D,F,B,x,T,S,_,N)},onMouseEnter(e){L||"function"!=typeof k||k(e),L&&r.props&&"function"==typeof r.props.onMouseEnter&&r.props.onMouseEnter(e),D&&(M||!N)&&y(D,F,B,{locale:_,priority:!0,bypassPrefetchedCheck:!0},{kind:j},N)},onTouchStart(e){L||"function"!=typeof I||I(e),L&&r.props&&"function"==typeof r.props.onTouchStart&&r.props.onTouchStart(e),D&&(M||!N)&&y(D,F,B,{locale:_,priority:!0,bypassPrefetchedCheck:!0},{kind:j},N)}};if((0,u.isAbsoluteUrl)(B))K.href=B;else if(!L||w||"a"===r.type&&!("href"in r.props)){let e=void 0!==_?_:null==O?void 0:O.locale,t=(null==O?void 0:O.isLocaleDomain)&&(0,p.getDomainLocale)(B,e,null==O?void 0:O.locales,null==O?void 0:O.domainLocales);K.href=t||(0,m.addBasePath)((0,c.addLocale)(B,e,null==O?void 0:O.defaultLocale))}return L?a.default.cloneElement(r,K):(0,i.jsx)("a",{...P,...K,children:n})});("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},1722:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"useIntersection",{enumerable:!0,get:function(){return l}});let r=n(7294),i=n(9126),a="function"==typeof IntersectionObserver,o=new Map,s=[];function l(e){let{rootRef:t,rootMargin:n,disabled:l}=e,u=l||!a,[c,d]=(0,r.useState)(!1),h=(0,r.useRef)(null),f=(0,r.useCallback)(e=>{h.current=e},[]);return(0,r.useEffect)(()=>
1{if(a){if(u||c)return;let e=h.current;if(e&&e.tagName)return function(e,t,n){let{id:r,observer:i,elements:a}=function(e){let t;let n={root:e.root||null,margin:e.rootMargin||""},r=s.find(e=>e.root===n.root&&e.margin===n.margin);if(r&&(t=o.get(r)))return t;let i=new Map;return t={id:n,observer:new IntersectionObserver(e=>{e.forEach(e=>{let t=i.get(e.target),n=e.isIntersecting||e.intersectionRatio>0;t&&n&&t(n)})},e),elements:i},s.push(n),o.set(n,t),t}(n);return a.set(e,t),i.observe(e),function(){if(a.delete(e),i.unobserve(e),0===a.size){i.disconnect(),o.delete(r);let e=s.findIndex(e=>e.root===r.root&&e.margin===r.margin);e>-1&&s.splice(e,1)}}}(e,e=>e&&d(e),{root:null==t?void 0:t.current,rootMargin:n})}else if(!c){let e=(0,i.requestIdleCallback)(()=>d(!0));return()=>(0,i.cancelIdleCallback)(e)}},[u,n,t,c,h.current]),[f,c,(0,r.useCallback)(()=>{d(!1)},[])]}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},3841:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{noSSR:function(){return o},default:function(){return s}});let r=n(8754);n(5893),n(7294);let i=r._(n(8354));function a(e){return{default:(null==e?void 0:e.default)||e}}function o(e,t){return delete t.webpack,delete t.modules,e(t)}function s(e,t){let n=i.default,r={loading:e=>{let{error:t,isLoading:n,pastDelay:r}=e;return null}};e instanceof Promise?r.loader=()=>e:"function"==typeof e?r.loader=e:"object"==typeof e&&(r={...r,...e});let s=(r={...r,...t}).loader;return(r.loadableGenerated&&(r={...r,...r.loadableGenerated},delete r.loadableGenerated),"boolean"!=typeof r.ssr||r.ssr)?n({...r,loader:()=>null!=s?s().then(a):Promise.resolve(a(()=>null))}):(delete r.webpack,delete r.modules,o(n,r))}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},7309:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"LoadableContext",{enumerable:!0,get:function(){return r}});let r=n(8754)._(n(7294)).default.createContext(null)},8354:function(e,t,n){"use strict";/**
2@copyright (c) 2017-present James Kyle <[email protected]>
3 MIT License
4 Permission is hereby granted, free of charge, to any person obtaining
5a copy of this software and associated documentation files (the
6"Software"), to deal in the Software without restriction, including
7without limitation the rights to use, copy, modify, merge, publish,
8distribute, sublicense, and/or sell copies of the Software, and to
9permit persons to whom the Software is furnished to do so, subject to
10the following conditions:
11 The above copyright notice and this permission notice shall be
12included in all copies or substantial portions of the Software.
13 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
14EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
15MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
16NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
17LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
18OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
19WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE
20*/Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return h}});let r=n(8754)._(n(7294)),i=n(7309),a=[],o=[],s=!1;function l(e){let t=e(),n={loading:!0,loaded:null,error:null};return n.promise=t.then(e=>(n.loading=!1,n.loaded=e,e)).catch(e=>{throw n.loading=!1,n.error=e,e}),n}class u{promise(){return this._res.promise}retry(){this._clearTimeouts(),this._res=this._loadFn(this._opts.loader),this._state={pastDelay:!1,timedOut:!1};let{_res:e,_opts:t}=this;e.loading&&("number"==typeof t.delay&&(0===t.delay?this._state.pastDelay=!0:this._delay=setTimeout(()=>{this._update({pastDelay:!0})},t.delay)),"number"==typeof t.timeout&&(this._timeout=setTimeout(()=>{this._update({timedOut:!0})},t.timeout))),this._res.promise.then(()=>{this._update({}),this._clearTimeouts()}).catch(e=>{this._update({}),this._clearTimeouts()}),this._update({})}_update(e){this._state={...this._state,error:this._res.error,loaded:this._res.loaded,loading:this._res.loading,...e}
20,this._callbacks.forEach(e=>e())}_clearTimeouts(){clearTimeout(this._delay),clearTimeout(this._timeout)}getCurrentValue(){return this._state}subscribe(e){return this._callbacks.add(e),()=>{this._callbacks.delete(e)}}constructor(e,t){this._loadFn=e,this._opts=t,this._callbacks=new Set,this._delay=null,this._timeout=null,this.retry()}}function c(e){return function(e,t){let n=Object.assign({loader:null,loading:null,delay:200,timeout:null,webpack:null,modules:null},t),a=null;function l(){if(!a){let t=new u(e,n);a={getCurrentValue:t.getCurrentValue.bind(t),subscribe:t.subscribe.bind(t),retry:t.retry.bind(t),promise:t.promise.bind(t)}}return a.promise()}if(!s){let e=n.webpack?n.webpack():n.modules;e&&o.push(t=>{for(let n of e)if(t.includes(n))return l()})}function c(e,t){!function(){l();let e=r.default.useContext(i.LoadableContext);e&&Array.isArray(n.modules)&&n.modules.forEach(t=>{e(t)})}();let o=r.default.useSyncExternalStore(a.subscribe,a.getCurrentValue,a.getCurrentValue);return r.default.useImperativeHandle(t,()=>({retry:a.retry}),[]),r.default.useMemo(()=>{var t;return o.loading||o.error?r.default.createElement(n.loading,{isLoading:o.loading,pastDelay:o.pastDelay,timedOut:o.timedOut,error:o.error,retry:a.retry}):o.loaded?r.default.createElement((t=o.loaded)&&t.default?t.default:t,e):null},[e,o])}return c.preload=()=>l(),c.displayName="LoadableComponent",r.default.forwardRef(c)}(l,e)}function d(e,t){let n=[];for(;e.length;){let r=e.pop();n.push(r(t))}return Promise.all(n).then(()=>{if(e.length)return d(e,t)})}c.preloadAll=()=>new Promise((e,t)=>{d(a).then(e,t)}),c.preloadReady=e=>(void 0===e&&(e=[]),new Promise(t=>{let n=()=>(s=!0,t());d(o,e).then(n,n)})),window.__NEXT_PRELOADREADY=c.preloadReady;let h=c},8610:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return d}});var r=n(5893),i=n(7294),a=n(9370),o=n(3325),s=n(9008),l=n.n(s),u=n(8646),c=e=>{var t,n,s,l,c,d,h,f,p,m,g,v,y,b,A,E,w,x,T,S,_,C,k,I,L,P,O;let R;let{pageProps:D}=e,[N,M]=i.useState(void 0),j=i.useContext(u.lv),F=null===(n=D.page)||void 0===n?void 0:null===(t=n.pageContent)||void 0===t?void 0:t.model,B=null==D?void 0:null===(s=D.page)||void 0===s?void 0:s.id;if(i.useEffect(()=>{B&&"team"===F.contentType?o.ZP.user.findUserByPageId(j,B).then(e=>M(e)):M(void 0)},[B]),F){let e=o.ZP.Radio(j),t=(null==e?void 0:null===(l=e.pages)||void 0===l?void 0:l.siteMap)&&(null==e?void 0:null===(c=e.pages)||void 0===c?void 0:c.siteMap)===(null==D?void 0:null===(d=D.page)||void 0===d?void 0:d.id),n=o.ZP.MenuMain(j),r=(0,a.v)(n,!0);if("CONTENT"===F.type){let n=null===(m=D.fetchedContent)||void 0===m?void 0:null===(p=m.imagePrincipale)||void 0===p?void 0:null===(f=p.medias)||void 0===f?void 0:null===(h=f[0])||void 0===h?void 0:h.url;if(R={"@context":"http://schema.org","@type":"NewsArticle",mainEntityOfPage:{"@type":"WebPage","@id":"https://google.com/article"},headline:null==D?void 0:D.title,datePublished:null==D?void 0:null===(g=D.page)||void 0===g?void 0:g.publishedDate,publisher:{"@type":"Organization",name:null==e?void 0:e.name,logo:{"@type":"ImageObject",url:null==e?void 0:e.radioLogo}},author:{"@type":"Organization",name:null==e?void 0:e.name},image:[n]},null==D?void 0:null===(v=D.fetchedContent)||void 0===v?void 0:v.dateEtAuteur){let t=null==D?void 0:null===(y=D.fetchedContent)||void 0===y?void 0:y.dateEtAuteur,n=[null===(b=t.socialNetworks)||void 0===b?void 0:b.facebook,null===(A=t.socialNetworks)||void 0===A?void 0:A.instagram,null===(E=t.socialNetworks)||void 0===E?void 0:E.x,null===(w=t.socialNetworks)||void 0===w?void 0:w.web,null===(x=t.socialNetworks)||void 0===x?void 0:x.linkedin].filter(e=>null!=e).concat((null===(T=t.socialNetworks)||void 0===T?void 0:T.other)||void 0);R.author={"@type":"Person",name:"".concat(t.firstName," ").concat(t.lastName),jobTitle:t.job,image:t.avatar,description:t.description,url:null===(S=t.authorPage)||void 0===S?void 0:S.slug,sameAs:n,worksFor:{"@type":"RadioStation",name:null==e?void 0:e.name,url:null==e?void 0:e.primaryHost}}}if(N){let t=[null===(_=N.socialNetworks)||void 0===_?void 0:_.facebook,null===(C=N.socialNetworks)||void 0===C?void 0:C.instagram,null===(k=N.socialNetworks)||void 0===k?void 0:k.x,null===(I=N.socialNetworks)||void 0===I?void 0:I.web,null===(L=N.socialNetworks)||void 0===L?void 0:L.linkedin].filter(e=>null!=e).concat((null===(P=N.socialNetworks)||void 0===P?void 0:P.other)||[]);R={"@context":"http://schema.org","@type":"Person",name:"".concat(N.firstName," ").concat(N.lastName),jobTitle:N.job,image:N.avatar,description:N.description,url:null===(O=N.authorPage)||void 0===O?void 0:O.slug,sameAs:t,worksFor:{"@type":"RadioStation",name:null==e?void 0:e.name}}}t&&(R.itemListElement=[r.map((e,t)=>({"@type":"ListItem",position:t+1,name:e.label,item:e.linkHref}))])}}return R?(0,r.jsx)("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify(R)}}):(0,r.jsx)(r.Fragment,{})};function d(e){var t,s,d,h,f;let{Component:p,pageProps:m}=e,g=m.host;if(!g)return(0,r.jsx)(r.Fragment,{});let v=o.ZP.Radio(g),y=o.ZP.MenuMain(g),b=o.ZP.MenuFooter(g),A=null!=m&&null!==(t=m.pageContext)&&void 0!==t&&!!t.slug&&o.ZP.playerExterne(g)===(null==m?void 0:null===(s=m.pageContext)||void 0===s?void 0:s.slug),E=m.page,w=null===(d=m.pageContext)||void 0===d?void 0:d.withoutHeaderFooter,x=null===(h=m.pageContext)||void 0===h?void 0:h.doNotIndexGoogle;return i.useEffect(()=>{let e=n(8168).default.getInstance(),t=o.ZP.taggingData(g);(null==t?void 0:t.bodyCmp)&&(e.addContainer("d08d4b5b-d1eb-4853-b45e-2c6bcb9d2486",t.bodyCmp,"body"),e.setTcVars({env_language:"fr",user_logged:"no"}))},[]),(0,r.jsxs)(u.lv.Provider,{value:g,children:[(0,r.jsxs)(l(),{children:[(null==v?void 0:v.titreSite)&&(0,r.jsx)("title",{children:v.titreSite}),(0,r.jsx)("meta",{name:"viewport",content:"width=device-width,initial-scale=1.0"}),(null==v?void 0:v.metaDescription)&&(0,r.jsx)("meta",{name:"description",content:v.metaDescription}),(null==v?void 0:v.keywords)&&(0,r.jsx)("meta",{name:"keywords",content:v.keywords}),(null==v?void 0:v.favicon)&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("link",{rel:"shortcut icon",type:"image/x-icon",href:"/favicon.ico"}),(0,r.jsx)("link",{rel:"icon",type:"image/x-icon",href:"/favicon.ico"})]}),(null==v?void 0:v.robotsUrl)?void 0===x||!0===x?(0,r.jsx)("meta",{name:"robots",content:"noindex, follow"}):(0,r.jsx)("meta",{name:"robots",content:"max-snippet:-1, max-image-preview:large, max-video-preview:-1"}):(0,r.jsx)("meta",{name:"robots",content:"none"}),(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("script",{type:"text/javascript",src:(null==v?void 0:null===(f=v.customScripts)||void 0===f?void 0:f.headerCmp)||"",charSet:"utf-8"}),(0,r.jsx)("script",{type:"text/javascript",dangerouslySetInnerHTML:{__html:" \n\n                    // Environment\n                     var tc_vars = new Array();\n                     var tc_array_events = new Array();\n                     tc_vars[\"radio_id\"] = '';\n                    \n                     window.tc_vars =\n                      {\n                        env_template: 'homepage',\n                        env_work: 'PROD',\n                        env_country: 'FR',\n                        env_language: 'FR',\n                        env_device: 'd',\n                        env_currency: 'EUR',\n                        // Website tree structure\n                        page_name : \"App load\",\n                        site_Id : 5608,\n                        id_container : 'a5cc0b7b-4f9d-4e99-8884-ef2753293aba',\n                        user_logged: 'no',\n                        user_id: '',\n                        user_t
20ype: '',\n                        user_email: '',\n                        radio_id:'',\n                        id_reservation: '',\n                        type_reservation: '',\n                        ville_reservation: '',\n                        date_reservation: '',\n                        etablissement: '',\n                        nom_espace: '',\n                        quantite_siege: '',\n                        creneau_reservation: '',\n                        service_supplementaire: '',\n                        unitprice_tf: '',\n                        unitprice_ati: '',\n                        totalprice_tf: '',\n                        totalprice_ati: ''\n                      };\n                  \n                      "}})]})]}),(0,r.jsxs)(a.Z,{headerMenu:y,footerMenu:b,removeHeaderFooter:null!=w&&w,isPlayerExternePage:A,page:E,children:[(0,r.jsx)(c,{pageProps:m}),(0,r.jsx)(p,{...m})]})]})}},3325:function(e,t,n){"use strict";function r(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}n.d(t,{ZP:function(){return rZ}});var i,a,o,s,l,u,c,d,h,f=function(e,t){return(f=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)};function p(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}f(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var m=function(){return(m=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function g(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)0>t.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function v(e,t,n,r){return new(n||(n=Promise))(function(i,a){function o(e){try{l(r.next(e))}catch(e){a(e)}}function s(e){try{l(r.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof n?t:new n(function(e){e(t)})).then(o,s)}l((r=r.apply(e,t||[])).next())})}function y(e,t){var n,r,i,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]},o=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return o.next=s(0),o.throw=s(1),o.return=s(2),"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(s){return function(l){return function(s){if(n)throw TypeError("Generator is already executing.");for(;o&&(o=0,s[0]&&(a=0)),a;)try{if(n=1,r&&(i=2&s[0]?r.return:s[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,s[1])).done)return i;switch(r=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,r=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===s[0]||2===s[0])){a=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]<i[3])){a.label=s[1];break}if(6===s[0]&&a.label<i[1]){a.label=i[1],i=s;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(s);break}i[2]&&a.ops.pop(),a.trys.pop();continue}s=t.call(e,a)}catch(e){s=[6,e],r=0}finally{n=i=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,l])}}}function b(e,t,n){if(n||2==arguments.length)for(var r,i=0,a=t.length;i<a;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))}"function"==typeof SuppressedError&&SuppressedError;var A="Invariant Violation",E=Object.setPrototypeOf,w=void 0===E?function(e,t){return e.__proto__=t,e}:E,x=function(e){function t(n){void 0===n&&(n=A);var r=e.call(this,"number"==typeof n?A+": "+n+" (see https://github.com/apollographql/invariant-packages)":n)||this;return r.framesToPop=1,r.name=A,w(r,t.prototype),r}return p(t,e),t}(Error);function T(e,t){if(!e)throw new x(t)}
20var S=["debug","log","warn","error","silent"],_=S.indexOf("log");function C(e){return function(){if(S.indexOf(e)>=_)return(console[e]||console.log).apply(console,arguments)}}function k(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function I(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function L(e,t,n){return t&&I(e.prototype,t),n&&I(e,n),e}(i=T||(T={})).debug=C("debug"),i.log=C("log"),i.warn=C("warn"),i.error=C("error");var P=function(){return"function"==typeof Symbol},O=function(e){return P()&&!!Symbol[e]},R=function(e){return O(e)?Symbol[e]:"@@"+e};P()&&!O("observable")&&(Symbol.observable=Symbol("observable"));var D=R("iterator"),N=R("observable"),M=R("species");function j(e,t){var n=e[t];if(null!=n){if("function"!=typeof n)throw TypeError(n+" is not a function");return n}}function F(e){var t=e.constructor;return void 0!==t&&null===(t=t[M])&&(t=void 0),void 0!==t?t:K}function B(e){B.log?B.log(e):setTimeout(function(){throw e})}function U(e){Promise.resolve().then(function(){try{e()}catch(e){B(e)}})}function V(e){var t=e._cleanup;if(void 0!==t){if(e._cleanup=void 0,!t)return;try{if("function"==typeof t)t();else{var n=j(t,"unsubscribe");n&&n.call(t)}}catch(e){B(e)}}}function z(e){e._observer=void 0,e._queue=void 0,e._state="closed"}function q(e,t,n){e._state="running";var r=e._observer;try{var i=j(r,t);switch(t){case"next":i&&i.call(r,n);break;case"error":if(z(e),i)i.call(r,n);else throw n;break;case"complete":z(e),i&&i.call(r)}}catch(e){B(e)}"closed"===e._state?V(e):"running"===e._state&&(e._state="ready")}function Q(e,t,n){if("closed"!==e._state){if("buffering"===e._state){e._queue.push({type:t,value:n});return}if("ready"!==e._state){e._state="buffering",e._queue=[{type:t,value:n}],U(function(){return function(e){var t=e._queue;if(t){e._queue=void 0,e._state="ready";for(var n=0;n<t.length&&(q(e,t[n].type,t[n].value),"closed"!==e._state);++n);}}(e)});return}q(e,t,n)}}var H=function(){function e(e,t){this._cleanup=void 0,this._observer=e,this._queue=void 0,this._state="initializing";var n=new G(this);try{this._cleanup=t.call(void 0,n)}catch(e){n.error(e)}"initializing"===this._state&&(this._state="ready")}return e.prototype.unsubscribe=function(){"closed"!==this._state&&(z(this),V(this))},L(e,[{key:"closed",get:function(){return"closed"===this._state}}]),e}(),G=function(){function e(e){this._subscription=e}var t=e.prototype;return t.next=function(e){Q(this._subscription,"next",e)},t.error=function(e){Q(this._subscription,"error",e)},t.complete=function(){Q(this._subscription,"complete")},L(e,[{key:"closed",get:function(){return"closed"===this._subscription._state}}]),e}(),K=function(){function e(t){if(!(this instanceof e))throw TypeError("Observable cannot be called as a function");if("function"!=typeof t)throw TypeError("Observable initializer must be a function");this._subscriber=t}var t=e.prototype;return t.subscribe=function(e){return("object"!=typeof e||null===e)&&(e={next:e,error:arguments[1],complete:arguments[2]}),new H(e,this._subscriber)},t.forEach=function(e){var t=this;return new Promise(function(n,r){if("function"!=typeof e){r(TypeError(e+" is not a function"));return}function i(){a.unsubscribe(),n()}var a=t.subscribe({next:function(t){try{e(t,i)}catch(e){r(e),a.unsubscribe()}},error:r,complete:n})})},t.map=function(e){var t=this;if("function"!=typeof e)throw TypeError(e+" is not a function");return new(F(this))(function(n){return t.subscribe({next:function(t){try{t=e(t)}catch(e){return n.error(e)}n.next(t)},error:function(e){n.error(e)},complete:function(){n.complete()}})})},t.filter=function(e){var t=this;if("function"!=typeof e)throw TypeError(e+" is not a function");return new(F(this))(function(n){return t.subscribe({next:function(t){try{if(!e(t))return}catch(e){return n.error(e)}n.next(t)},error:function(e){n.error(e)},complete:function(){n.complete()}})})},t.reduce=function(e){var t=this;if("function"!=typeof e)throw TypeError(e+" is not a function");var n=F(this),r=arguments.length>1,i=!1,a=arguments[1],o=a;return new n(function(n){return t.subscribe({next:function(t){var a=!i;if(i=!0,!a||r)try{o=e(o,t)}catch(e){return n.error(e)}else o=t},error:function(e){n.error(e)},complete:function(){if(!i&&!r)return n.error(TypeError("Cannot reduce an empty sequence"));n.next(o),n.complete()}})})},t.concat=function(){for(var e=this,t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];var i=F(this);return new i(function(t){var r,a=0;return function e(o){r=o.subscribe({next:function(e){t.next(e)},error:function(e){t.error(e)},complete:function(){a===n.length?(r=void 0,t.complete()):e(i.from(n[a++]))}})}(e),function(){r&&(r.unsubscribe(),r=void 0)}})},t.flatMap=function(e){var t=this;if("function"!=typeof e)throw TypeError(e+" is not a function");var n=F(this);return new n(function(r){var i=[],a=t.subscribe({next:function(t){if(e)try{t=e(t)}catch(e){return r.error(e)}var a=n.from(t).subscribe({next:function(e){r.next(e)},error:function(e){r.error(e)},complete:function(){var e=i.indexOf(a);e>=0&&i.splice(e,1),o()}});i.push(a)},error:function(e){r.error(e)},complete:function(){o()}});function o(){a.closed&&0===i.length&&r.complete()}
20return function(){i.forEach(function(e){return e.unsubscribe()}),a.unsubscribe()}})},t[N]=function(){return this},e.from=function(t){var n="function"==typeof this?this:e;if(null==t)throw TypeError(t+" is not an object");var r=j(t,N);if(r){var i=r.call(t);if(Object(i)!==i)throw TypeError(i+" is not an object");return i instanceof K&&i.constructor===n?i:new n(function(e){return i.subscribe(e)})}if(O("iterator")&&(r=j(t,D)))return new n(function(e){U(function(){if(!e.closed){for(var n,i=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return k(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return k(e,t)}}(e))){n&&(e=n);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.")}(r.call(t));!(n=i()).done;){var a=n.value;if(e.next(a),e.closed)return}e.complete()}})});if(Array.isArray(t))return new n(function(e){U(function(){if(!e.closed){for(var n=0;n<t.length;++n)if(e.next(t[n]),e.closed)return;e.complete()}})});throw TypeError(t+" is not observable")},e.of=function(){for(var t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];return new("function"==typeof this?this:e)(function(e){U(function(){if(!e.closed){for(var t=0;t<n.length;++t)if(e.next(n[t]),e.closed)return;e.complete()}})})},L(e,null,[{key:M,get:function(){return this}}]),e}();function $(e){return null!==e&&"object"==typeof e}function W(e,t){var n=t,r=[];return e.definitions.forEach(function(e){if("OperationDefinition"===e.kind)throw __DEV__?new x("Found a "+e.operation+" operation"+(e.name?" named '"+e.name.value+"'":"")+". No operations are allowed when using a fragment as a query. Only fragments are allowed."):new x(47);"FragmentDefinition"===e.kind&&r.push(e)}),void 0===n&&(__DEV__?T(1===r.length,"Found "+r.length+" fragments. `fragmentName` must be provided when there is not exactly 1 fragment."):T(1===r.length,48),n=r[0].name.value),m(m({},e),{definitions:b([{kind:"OperationDefinition",operation:"query",selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:n}}]}}],e.definitions)})}function Z(e){void 0===e&&(e=[]);var t={};return e.forEach(function(e){t[e.name.value]=e}),t}function Y(e,t){switch(e.kind){case"InlineFragment":return e;case"FragmentSpread":var n=t&&t[e.name.value];return __DEV__?T(n,"No fragment named "+e.name.value+"."):T(n,49),n;default:return null}}function X(e){return{__ref:String(e)}}function J(e){return!!(e&&"object"==typeof e&&"string"==typeof e.__ref)}function ee(e,t,n,r){if("IntValue"===n.kind||"FloatValue"===n.kind)e[t.value]=Number(n.value);else if("BooleanValue"===n.kind||"StringValue"===n.kind)e[t.value]=n.value;else if("ObjectValue"===n.kind){var i={};n.fields.map(function(e){return ee(i,e.name,e.value,r)}),e[t.value]=i}else if("Variable"===n.kind){var a=(r||{})[n.name.value];e[t.value]=a}else if("ListValue"===n.kind)e[t.value]=n.values.map(function(e){var n={};return ee(n,t,e,r),n[t.value]});else if("EnumValue"===n.kind)e[t.value]=n.value;else if("NullValue"===n.kind)e[t.value]=null;else throw __DEV__?new x('The inline argument "'+t.value+'" of kind "'+n.kind+'"is not supported. Use variables instead of inline arguments to overcome this limitation.'):new x(58)}P()&&Object.defineProperty(K,Symbol("extensions"),{value:{symbol:N,hostReportError:B},configurable:!0});var et=["connection","include","skip","client","rest","export"],en=Object.assign(function(e,t,n){if(t&&n&&n.connection&&n.connection.key){if(!n.connection.filter||!(n.connection.filter.length>0))return n.connection.key;var r=n.connection.filter?n.connection.filter:[];r.sort();var i={};return r.forEach(function(e){i[e]=t[e]}),n.connection.key+"("+er(i)+")"}var a=e;if(t){var o=er(t);a+="("+o+")"}
20return n&&Object.keys(n).forEach(function(e){-1===et.indexOf(e)&&(n[e]&&Object.keys(n[e]).length?a+="@"+e+"("+er(n[e])+")":a+="@"+e)}),a},{setStringify:function(e){var t=er;return er=e,t}}),er=function(e){return JSON.stringify(e,ei)};function ei(e,t){return $(t)&&!Array.isArray(t)&&(t=Object.keys(t).sort().reduce(function(e,n){return e[n]=t[n],e},{})),t}function ea(e,t){if(e.arguments&&e.arguments.length){var n={};return e.arguments.forEach(function(e){return ee(n,e.name,e.value,t)}),n}return null}function eo(e){return e.alias?e.alias.value:e.name.value}function es(e,t,n){if("string"==typeof e.__typename)return e.__typename;for(var r=0,i=t.selections;r<i.length;r++){var a=i[r];if(el(a)){if("__typename"===a.name.value)return e[eo(a)]}else{var o=es(e,Y(a,n).selectionSet,n);if("string"==typeof o)return o}}}function el(e){return"Field"===e.kind}function eu(e){return"InlineFragment"===e.kind}function ec(e){__DEV__?T(e&&"Document"===e.kind,'Expecting a parsed GraphQL document. Perhaps you need to wrap the query string in a "gql" tag? http://docs.apollostack.com/apollo-client/core.html#gql'):T(e&&"Document"===e.kind,50);var t=e.definitions.filter(function(e){return"FragmentDefinition"!==e.kind}).map(function(e){if("OperationDefinition"!==e.kind)throw __DEV__?new x('Schema type definitions not allowed in queries. Found: "'+e.kind+'"'):new x(51);return e});return __DEV__?T(t.length<=1,"Ambiguous GraphQL document: contains "+t.length+" operations"):T(t.length<=1,52),e}function ed(e){return ec(e),e.definitions.filter(function(e){return"OperationDefinition"===e.kind})[0]}function eh(e){return e.definitions.filter(function(e){return"OperationDefinition"===e.kind&&e.name}).map(function(e){return e.name.value})[0]||null}function ef(e){return e.definitions.filter(function(e){return"FragmentDefinition"===e.kind})}function ep(e){ec(e);for(var t,n=0,r=e.definitions;n<r.length;n++){var i=r[n];if("OperationDefinition"===i.kind){var a=i.operation;if("query"===a||"mutation"===a||"subscription"===a)return i}"FragmentDefinition"!==i.kind||t||(t=i)}if(t)return t;throw __DEV__?new x("Expected a parsed GraphQL query with a query, mutation, subscription, or a fragment."):new x(57)}function em(e){var t=Object.create(null),n=e&&e.variableDefinitions;return n&&n.length&&n.forEach(function(e){e.defaultValue&&ee(t,e.variable.name,e.defaultValue)}),t}function eg(e,t){return t?t(e):K.of()}function ev(e){return"function"==typeof e?new eA(e):e}function ey(e){return e.request.length<=1}var eb=function(e){function t(t,n){var r=e.call(this,t)||this;return r.link=n,r}return p(t,e),t}(Error),eA=function(){function e(e){e&&(this.request=e)}return e.empty=function(){return new e(function(){return K.of()})},e.from=function(t){return 0===t.length?e.empty():t.map(ev).reduce(function(e,t){return e.concat(t)})},e.split=function(t,n,r){var i=ev(n),a=ev(r||new e(eg));return new e(ey(i)&&ey(a)?function(e){return t(e)?i.request(e)||K.of():a.request(e)||K.of()}:function(e,n){return t(e)?i.request(e,n)||K.of():a.request(e,n)||K.of()})},e.execute=function(e,t){var n,r,i,a;return e.request((i=t.context,(r={variables:(n=function(e){for(var t=["query","operationName","variables","extensions","context"],n=0,r=Object.keys(e);n<r.length;n++){var i=r[n];if(0>t.indexOf(i))throw __DEV__?new x("illegal argument: "+i):new x(29)}return e}(t)).variables||{},extensions:n.extensions||{},operationName:n.operationName,query:n.query}).operationName||(r.operationName="string"!=typeof r.query?eh(r.query)||void 0:""),a=m({},i),Object.defineProperty(r,"setContext",{enumerable:!1,value:function(e){a="function"==typeof e?m(m({},a),e(a)):m(m({},a),e)}}),Object.defineProperty(r,"getContext",{enumerable:!1,value:function(){return m({},a)}}),r))||K.of()},e.concat=function(t,n){var r=ev(t);if(ey(r))return __DEV__&&T.warn(new eb("You are calling concat on a terminating link, which will have no effect",r)),r;var i=ev(n);return new e(ey(i)?function(e){return r.request(e,function(e){return i.request(e)||K.of()})||K.of()}:function(e,t){return r.request(e,function(e){return i.request(e,t)||K.of()})||K.of()})},e.prototype.split=function(t,n,r){return this.concat(e.split(t,n,r||new e(eg)))},e.prototype.concat=function(t){return e.concat(this,t)},e.prototype.request=function(e,t){throw __DEV__?new x("request is not implemented"):new x(23)},e.prototype.onError=function(e,t){if(t&&t.error)return t.error(e),!1;throw e},e.prototype.setOnError=function(e){return this.onError=e,this},e}(),eE=eA.execute;function ew(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=Object.create(null);return e.forEach(function(e){e&&Object.keys(e).forEach(function(t){var r=e[t];void 0!==r&&(n[t]=r)})}),n}var ex=n(2178),eT=function(e,t){var n;try{n=JSON.stringify(e)}catch(e){var r=__DEV__?new x("Network request failed. "+t+" is not serializable: "+e.message):new x(26);throw r.parseError=e,r}return n},eS=function(e,t,n){var r=Error(n);throw r.name="ServerError",r.response=e,r.statusCode=e.status,r.result=t,r},e_=Object.prototype.hasOwnProperty,eC=function(e){if(!e&&"undefined"==typeof fetch)throw __DEV__?new x("\n\"fetch\" has not been found globally and no fetcher has been configured. To fix this, install a fetch package (like https://www.npmjs.com/package/cross-fetch), instantiate the fetcher, and pass it into your HttpLink constructor. For example:\n\nimport fetch from 'cross-fetch';\nimport { ApolloClient, HttpLink } from '@apollo/client';\nconst client = new ApolloClient({\n  link: new HttpLink({ uri: '/graphql', fetch })\n});\n    "):new x(25)},ek={http:{includeQuery:!0,includeExtensions:!1},headers:{accept:"*/*","content-type":"application/json"},options:{method:"POST"}},eI=function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var i=m(m({},t.options),{headers:t.headers,credentials:t.credentials}),a=t.http||{};
20n.forEach(function(e){i=m(m(m({},i),e.options),{headers:m(m({},i.headers),function(e){if(e){var t=Object.create(null);return Object.keys(Object(e)).forEach(function(n){t[n.toLowerCase()]=e[n]}),t}return e}(e.headers))}),e.credentials&&(i.credentials=e.credentials),a=m(m({},a),e.http)});var o=e.operationName,s=e.extensions,l=e.variables,u=e.query,c={operationName:o,variables:l};return a.includeExtensions&&(c.extensions=s),a.includeQuery&&(c.query=(0,ex.S0)(u)),{options:i,body:c}},eL=function(){if("undefined"==typeof AbortController)return{controller:!1,signal:!1};var e=new AbortController,t=e.signal;return{controller:e,signal:t}};function eP(e){return new K(function(t){t.error(e)})}function eO(e){try{return e()}catch(e){}}var eR=eO(function(){return fetch}),eD=function(e){void 0===e&&(e={});var t=e.uri,n=void 0===t?"/graphql":t,r=e.fetch,i=e.includeExtensions,a=e.useGETForQueries,o=e.includeUnusedVariables,s=void 0!==o&&o,l=g(e,["uri","fetch","includeExtensions","useGETForQueries","includeUnusedVariables"]);__DEV__&&eC(r||eR);var u={http:{includeExtensions:i},options:l.fetchOptions,credentials:l.credentials,headers:l.headers};return new eA(function(e){var t,i,o,l=(t=e,i=n,t.getContext().uri||("function"==typeof i?i(t):i||"/graphql")),c=e.getContext(),d={};if(c.clientAwareness){var h=c.clientAwareness,f=h.name,p=h.version;f&&(d["apollographql-client-name"]=f),p&&(d["apollographql-client-version"]=p)}var g=m(m({},d),c.headers),v=eI(e,ek,u,{http:c.http,options:c.fetchOptions,credentials:c.credentials,headers:g}),y=v.options,b=v.body;if(b.variables&&!s){var A=new Set(Object.keys(b.variables));(0,ex.Vn)(e.query,{Variable:function(e,t,n){n&&"VariableDefinition"!==n.kind&&A.delete(e.name.value)}}),A.size&&(b.variables=m({},b.variables),A.forEach(function(e){delete b.variables[e]}))}if(!y.signal){var E=eL(),w=E.controller,x=E.signal;(o=w)&&(y.signal=x)}if(a&&!e.query.definitions.some(function(e){return"OperationDefinition"===e.kind&&"mutation"===e.operation})&&(y.method="GET"),"GET"===y.method){var T=function(e,t){var n=[],r=function(e,t){n.push(e+"="+encodeURIComponent(t))};if("query"in t&&r("query",t.query),t.operationName&&r("operationName",t.operationName),t.variables){var i=void 0;try{i=eT(t.variables,"Variables map")}catch(e){return{parseError:e}}r("variables",i)}if(t.extensions){var a=void 0;try{a=eT(t.extensions,"Extensions map")}catch(e){return{parseError:e}}r("extensions",a)}var o="",s=e,l=e.indexOf("#");-1!==l&&(o=e.substr(l),s=e.substr(0,l));var u=-1===s.indexOf("?")?"?":"&";return{newURI:s+u+n.join("&")+o}}(l,b),S=T.newURI,_=T.parseError;if(_)return eP(_);l=S}else try{y.body=eT(b,"Payload")}catch(e){return eP(e)}return new K(function(t){return(r||eO(function(){return fetch})||eR)(l,y).then(function(t){return e.setContext({response:t}),t}).then(function(t){return t.text().then(function(e){try{return JSON.parse(e)}catch(n){throw n.name="ServerParseError",n.response=t,n.statusCode=t.status,n.bodyText=e,n}}).then(function(n){return t.status>=300&&eS(t,n,"Response not successful: Received status code "+t.status),Array.isArray(n)||e_.call(n,"data")||e_.call(n,"errors")||eS(t,n,"Server response was missing for query '"+(Array.isArray(e)?e.map(function(e){return e.operationName}):e.operationName)+"'."),n})}).then(function(e){return t.next(e),t.complete(),e}).catch(function(e){"AbortError"!==e.name&&(e.result&&e.result.errors&&e.result.data&&t.next(e.result),t.error(e))}),function(){o&&o.abort()}})})},eN=function(e){function t(t){void 0===t&&(t={});var n=e.call(this,eD(t).request)||this;return n.options=t,n}return p(t,e),t}(eA);let{toString:eM,hasOwnProperty:ej}=Object.prototype,eF=Function.prototype.toString,eB=new Map;function eU(e,t){try{return function e(t,n){if(t===n)return!0;let r=eM.call(t);if(r!==eM.call(n))return!1;switch(r){case"[object Array]":if(t.length!==n.length)break;case"[object Object]":{if(eQ(t,n))return!0;let r=eV(t),i=eV(n),a=r.length;if(a!==i.length)return!1;for(let e=0;e<a;++e)if(!ej.call(n,r[e]))return!1;for(let i=0;i<a;++i){let a=r[i];if(!e(t[a],n[a]))return!1}return!0}case"[object Error]":return t.name===n.name&&t.message===n.message;case"[object Number]":if(t!=t)return n!=n;case"[object Boolean]":case"[object Date]":return+t==+n;case"[object RegExp]":case"[object String]":return t==`${n}`;case"[object Map]":case"[object Set]":{if(t.size!==n.size)return!1;if(eQ(t,n))return!0;let i=t.entries(),a="[object Map]"===r;for(;;){let t=i.next();if(t.done)break;let[r,o]=t.value;if(!n.has(r)||a&&!e(o,n.get(r)))return!1}return!0}case"[object Uint16Array]":case"[object Uint8Array]":case"[object Uint32Array]":case"[object Int32Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object ArrayBuffer]":t=new Uint8Array(t),n=new Uint8Array(n);case"[object DataView]":{let e=t.byteLength;if(e===n.byteLength)for(;e--&&t[e]===n[e];);return -1===e}case"[object AsyncFunction]":case"[object GeneratorFunction]":case"[object AsyncGeneratorFunction]":case"[object Function]":{let e=eF.call(t);if(e!==eF.call(n))return!1;return!function(e,t){let n=e.length-t.length;return n>=0&&e.indexOf(t,n)===n}(e,eq)}}return!1}(e,t)}finally{eB.clear()}}function eV(e){return Object.keys(e).filter(ez,e)}function ez(e){return void 0!==this[e]}let eq="{ [native code] }";function eQ(e,t){let n=eB.get(e);if(n){if(n.has(t))return!0}else eB.set(e,n=new Set);return n.add(t),!1}var eH=function(){return Object.create(null)},eG=Array.prototype,eK=eG.forEach,e$=eG.slice,eW=function(){function e(e,t){void 0===e&&(e=!0),void 0===t&&(t=eH),this.weakness=e,this.makeData=t}return e.prototype.lookup=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return this.lookupArray(e)},e.prototype.lookupArray=function(e){var t=this;return eK.call(e,function(e){return t=t.getChildTrie(e)}),t.data||(t.data=this.makeData(e$.call(e)))},e.prototype.getChildTrie=function(t){var n=this.weakness&&function(e){switch(typeof e){case"object":if(null===e)break;case"function":return!0}return!1}(t)?this.weak||(this.weak=new WeakMap):this.strong||(this.strong=new Map),r=n.get(t);return r||n.set(t,r=new e(this.weakness,this.makeData)),r},e}(),eZ="function"==typeof WeakMap&&!("object"==typeof navigator&&"ReactNative"===navigator.product),eY="function"==typeof WeakSet,eX=function(){function e(){this.known=new(eY?WeakSet:Set),this.pool=new eW(eZ),this.passes=new WeakMap,this.keysByJSON=new Map,this.empty=this.admit({})}return e.prototype.isKnown=function(e){return $(e)&&this.known.has(e)},e.prototype.pass=function(e){if($(e)){var t=$(e)?Array.isArray(e)?e.slice(0):m({__proto__:Object.getPrototypeOf(e)},e):e;return this.passes.set(t,e),t}return e},e.prototype.admit=function(e){var t=this;if($(e)){var n=this.passes.get(e);if(n)return n;switch(Object.getPrototypeOf(e)){case Array.prototype:if(this.known.has(e))break;var r=e.map(this.admit,this),i=this.pool.lookupArray(r);return!i.array&&(this.known.add(i.array=r),__DEV__&&Object.freeze(r)),i.array;case null:case Object.prototype:if(this.known.has(e))break;var a=Object.getPrototypeOf(e),o=[a],s=this.sortedKeys(e);o.push(s.json);var l=o.length;s.sorted.forEach(function(n){o.push(t.admit(e[n]))});var i=this.pool.lookupArray(o);if(!i.object){var u=i.object=Object.create(a);this.known.add(u),s.sorted.forEach(function(e,t){u[e]=o[l+t]}),__DEV__&&Object.freeze(u)}return i.object}}return e},e.prototype.sortedKeys=function(e){var t=Object.keys(e),n=this.pool.lookupArray(t);if(!n.keys){t.sort();var r=JSON.stringify(t);(n.keys=this.keysByJSON.get(r))||this.keysByJSON.set(r,n.keys={sorted:t,json:r})}return n.keys},e}(),eJ=Object.assign(function(e){if($(e)){void 0===u&&e0();var t=u.admit(e),n=c.get(t);return void 0===n&&c.set(t,n=JSON.stringify(t)),n}return JSON.stringify(e)},{reset:e0});function e0(){u=new eX,c=new(eZ?WeakMap:Map)}function e1(e,t,n){return new K(function(r){var i=r.next,a=r.error,o=r.complete,s=0,l=!1,u={then:function(e){return new Promise(function(t){return t(e())})}};function c(e,t){return e?function(t){++s;var n=function(){return e(t)};u=u.then(n,n).then(function(e){--s,i&&i.call(r,e),l&&d.complete()},function(e){throw--s,e}).catch(function(e){a&&a.call(r,e)})}:function(e){return t&&t.call(r,e)}}var d={next:c(t,i),error:c(n,a),complete:function(){l=!0,!s&&o&&o.call(r)}},h=e.subscribe(d);return function(){return h.unsubscribe()}})}function e2(e){return e.errors&&e.errors.length>0||!1}function e3(e,t,n){var r=0;return e.forEach(function(n,i){t.call(this,n,i,e)&&(e[r++]=n)},n),e.length=r,e}var e4={kind:"Field",name:{kind:"Name",value:"__typename"}};function e5(e){var t;return!function e(t,n){return t.selectionSet.selections.every(function(t){return"FragmentSpread"===t.kind&&e(n[t.name.value],n)})}(ed(e)||(__DEV__?T("Document"===e.kind,'Expecting a parsed GraphQL document. Perhaps you need to wrap the query string in a "gql" tag? http://docs.apollostack.com/apollo-client/core.html#gql'):T("Document"===e.kind,54),__DEV__?T(e.definitions.length<=1,"Fragment must have exactly one definition."):T(e.definitions.length<=1,55),t=e.definitions[0],__DEV__?T("FragmentDefinition"===t.kind,"Must be a fragment definition."):T("FragmentDefinition"===t.kind,56),t),Z(ef(e)))?e:null}function e8(e){return function(t){return e.some(function(e){return e.name&&e.name===t.name.value||e.test&&e.test(t)})}}function e6(e,t){var n,r,i,a=Object.create(null),o=[],s=Object.create(null),l=[],u=e5((0,ex.Vn)(t,{Variable:{enter:function(e,t,n){"VariableDefinition"!==n.kind&&(a[e.name.value]=!0)}},Field:{enter:function(t){if(e&&t.directives&&e.some(function(e){return e.remove})&&t.directives&&t.directives.some(e8(e)))return t.arguments&&t.arguments.forEac
20h(function(e){"Variable"===e.value.kind&&o.push({name:e.value.name.value})}),t.selectionSet&&(function e(t){var n=[];return t.selections.forEach(function(t){(el(t)||eu(t))&&t.selectionSet?e(t.selectionSet).forEach(function(e){return n.push(e)}):"FragmentSpread"===t.kind&&n.push(t)}),n})(t.selectionSet).forEach(function(e){l.push({name:e.name.value})}),null}},FragmentSpread:{enter:function(e){s[e.name.value]=!0}},Directive:{enter:function(t){if(e8(e)(t))return null}}}));return u&&e3(o,function(e){return!!e.name&&!a[e.name]}).length&&(n=o,r=u,i=function(e){return n.some(function(t){return e.value&&"Variable"===e.value.kind&&e.value.name&&(t.name===e.value.name.value||t.test&&t.test(e))})},u=e5((0,ex.Vn)(r,{OperationDefinition:{enter:function(e){return m(m({},e),{variableDefinitions:e.variableDefinitions?e.variableDefinitions.filter(function(e){return!n.some(function(t){return t.name===e.variable.name.value})}):[]})}},Field:{enter:function(e){if(n.some(function(e){return e.remove})){var t=0;if(e.arguments&&e.arguments.forEach(function(e){i(e)&&(t+=1)}),1===t)return null}}},Argument:{enter:function(e){if(i(e))return null}}}))),u&&e3(l,function(e){return!!e.name&&!s[e.name]}).length&&(u=function(e,t){function n(t){if(e.some(function(e){return e.name===t.name.value}))return null}return e5((0,ex.Vn)(t,{FragmentSpread:{enter:n},FragmentDefinition:{enter:n}}))}(l,u)),u}var e9=Object.assign(function(e){return(0,ex.Vn)(ec(e),{SelectionSet:{enter:function(e,t,n){if(!n||"OperationDefinition"!==n.kind){var r=e.selections;if(!(!r||r.some(function(e){return el(e)&&("__typename"===e.name.value||0===e.name.value.lastIndexOf("__",0))}))&&!(el(n)&&n.directives&&n.directives.some(function(e){return"export"===e.name.value})))return m(m({},e),{selections:b(b([],r),[e4])})}}}})},{added:function(e){return e===e4}}),e7={test:function(e){var t="connection"===e.name.value;return t&&(!e.arguments||!e.arguments.some(function(e){return"key"===e.name.value}))&&__DEV__&&T.warn("Removing an @connection directive even though it does not have a key. You may want to use the key parameter to specify a store key."),t}};function te(e,t){var n,r=e.directives;return!r||!r.length||(n=[],r&&r.length&&r.forEach(function(e){var t;if(!("skip"!==(t=e.name.value)&&"include"!==t)){var r=e.arguments,i=e.name.value;__DEV__?T(r&&1===r.length,"Incorrect number of arguments for the @"+i+" directive."):T(r&&1===r.length,44);var a=r[0];__DEV__?T(a.name&&"if"===a.name.value,"Invalid argument for the @"+i+" directive."):T(a.name&&"if"===a.name.value,45);var o=a.value;__DEV__?T(o&&("Variable"===o.kind||"BooleanValue"===o.kind),"Argument for the @"+i+" directive must be a variable or a boolean value."):T(o&&("Variable"===o.kind||"BooleanValue"===o.kind),46),n.push({directive:e,ifArgument:a})}}),n).every(function(e){var n=e.directive,r=e.ifArgument,i=!1;return"Variable"===r.value.kind?(i=t&&t[r.value.name.value],__DEV__?T(void 0!==i,"Invalid variable referenced in @"+n.name.value+" directive."):T(void 0!==i,43)):i=r.value.value,"skip"===n.name.value?!i:i})}function tt(e,t){var n;return(n=[],(0,ex.Vn)(t,{Directive:function(e){n.push(e.name.value)}}),n).some(function(t){return e.indexOf(t)>-1})}var tn=new Map;function tr(e){var t=tn.get(e)||1;return tn.set(e,t+1),e+":"+t+":"+Math.random().toString(36).slice(2)}function ti(e,t,n){var r=[];e.forEach(function(e){return e[t]&&r.push(e)}),r.forEach(function(e){return e[t](n)})}function ta(e){function t(t){Object.defineProperty(e,t,{value:K})}return"function"==typeof Symbol&&Symbol.species&&t(Symbol.species),t("@@species"),e}function to(e){return e&&"function"==typeof e.then}var ts=function(e){function t(t){var n=e.call(this,function(e){return n.addObserver(e),function(){return n.removeObserver(e)}})||this;return n.observers=new Set,n.addCount=0,n.promise=new Promise(function(e,t){n.resolve=e,n.reject=t}),n.handlers={next:function(e){null!==n.sub&&(n.latest=["next",e],ti(n.observers,"next",e))},error:function(e){var t=n.sub;null!==t&&(t&&Promise.resolve().then(function(){return t.unsubscribe()}),n.sub=null,n.latest=["error",e],n.reject(e),ti(n.observers,"error",e))},complete:function(){if(null!==n.sub){var e=n.sources.shift();e?to(e)?e.then(function(e){return n.sub=e.subscribe(n.handlers)}):n.sub=e.subscribe(n.handlers):(n.sub=null,n.latest&&"next"===n.latest[0]?n.resolve(n.latest[1]):n.resolve(),ti(n.observers,"complete"))}}},n.cancel=function(e){n.reject(e),n.sources=[],n.handlers.complete()},n.promise.catch(function(e){}),"function"==typeof t&&(t=[new K(t)]),to(t)?t.then(function(e){return n.start(e)},n.handlers.error):n.start(t),n}return p(t,e),t.prototype.start=function(e){void 0===this.sub&&(this.sources=Array.from(e),this.handlers.complete())},t.prototype.deliverLastMessage=function(e){if(this.latest){var t=this.latest[0],n=e[t];n&&n.call(e,this.latest[1]),null===this.sub&&"next"===t&&e.complete&&e.complete()}},t.prototype.addObserver=function(e){!this.observers.has(e)&&(this.deliverLastMessage(e),this.observers.add(e),++this.addCount)},t.prototype.removeObserver=function(e,t){this.observers.delete(e)&&--this.addCount<1&&!t&&this.handlers.error(Error("Observable cancelled prematurely"))},t.prototype.cleanup=function(e){var t=this,n=!1,r=function(){n||(n=!0,t.observers.delete(i),e())},i={next:r,error:r,complete:r},a=this.addCount;this.addObserver(i),this.addCount=a},t}(K);function tl(e){return Array.isArray(e)&&e.length>0}ta(ts);var tu=eO(function(){return globalThis})||eO(function(){return window}
20)||eO(function(){return self})||eO(function(){return n.g})||eO(function(){return Function("return this")()}),tc="__DEV__",td=function(){try{return!!__DEV__}catch(e){return Object.defineProperty(tu,tc,{value:"production"!==eO(function(){return"production"}),enumerable:!1,configurable:!0,writable:!0}),tu[tc]}}(),th=n(4155);function tf(e){try{return e()}catch(e){}}var tp=tf(function(){return globalThis})||tf(function(){return window})||tf(function(){return self})||tf(function(){return n.g})||tf(function(){return tf.constructor("return this")()}),tm=!1;!tp||tf(function(){return"production"})||tf(function(){return th})||(Object.defineProperty(tp,"process",{value:{env:{NODE_ENV:"production"}},configurable:!0,enumerable:!1,writable:!0}),tm=!0),(0,n(3226).P9)(null),tm&&(delete tp.process,tm=!1),__DEV__?T("boolean"==typeof td,td):T("boolean"==typeof td,22);var tg=function(e){var t="";return(tl(e.graphQLErrors)||tl(e.clientErrors))&&(e.graphQLErrors||[]).concat(e.clientErrors||[]).forEach(function(e){var n=e?e.message:"Error message not found.";t+=n+"\n"}),e.networkError&&(t+=e.networkError.message+"\n"),t=t.replace(/\n$/,"")},tv=function(e){function t(n){var r=n.graphQLErrors,i=n.clientErrors,a=n.networkError,o=n.errorMessage,s=n.extraInfo,l=e.call(this,o)||this;return l.graphQLErrors=r||[],l.clientErrors=i||[],l.networkError=a||null,l.message=o||tg(l),l.extraInfo=s,l.__proto__=t.prototype,l}return p(t,e),t}(Error);function ty(e){return!!e&&e<7}(a=d||(d={}))[a.loading=1]="loading",a[a.setVariables=2]="setVariables",a[a.fetchMore=3]="fetchMore",a[a.refetch=4]="refetch",a[a.poll=6]="poll",a[a.ready=7]="ready",a[a.error=8]="error";var tb=Object.prototype.toString;function tA(e,t){switch(tb.call(e)){case"[object Array]":if((t=t||new Map).has(e))return t.get(e);var n=e.slice(0);return t.set(e,n),n.forEach(function(e,r){n[r]=tA(e,t)}),n;case"[object Object]":if((t=t||new Map).has(e))return t.get(e);var r=Object.create(Object.getPrototypeOf(e));return t.set(e,r),Object.keys(e).forEach(function(n){r[n]=tA(e[n],t)}),r;default:return e}}var tE=!1,tw=function(e){function t(t){var n=t.queryManager,r=t.queryInfo,i=t.options,a=e.call(this,function(e){try{var t=e._subscription._observer;t&&!t.error&&(t.error=tx)}catch(e){}var n=!a.observers.size;a.observers.add(e);var r=a.last;return r&&r.error?e.error&&e.error(r.error):r&&r.result&&e.next&&e.next(r.result),n&&a.reobserve().catch(function(){}),function(){a.observers.delete(e)&&!a.observers.size&&a.tearDownQuery()}})||this;a.observers=new Set,a.subscriptions=new Set,a.isTornDown=!1,a.options=i,a.queryId=r.queryId||n.generateQueryId();var o=ed(i.query);return a.queryName=o&&o.name&&o.name.value,a.initialFetchPolicy=i.fetchPolicy||"cache-first",a.queryManager=n,a.queryInfo=r,a}return p(t,e),Object.defineProperty(t.prototype,"variables",{get:function(){return this.options.variables},enumerable:!1,configurable:!0}),t.prototype.result=function(){var e=this;return new Promise(function(t,n){var r={next:function(n){t(n),e.observers.delete(r),e.observers.size||e.queryManager.removeQuery(e.queryId),setTimeout(function(){i.unsubscribe()},0)},error:n},i=e.subscribe(r)})},t.prototype.getCurrentResult=function(e){void 0===e&&(e=!0);var t=this.getLastResult(!0),n=this.queryInfo.networkStatus||t&&t.networkStatus||d.ready,r=m(m({},t),{loading:ty(n),networkStatus:n});if(!this.queryManager.transform(this.options.query).hasForcedResolvers){var i=this.queryInfo.getDiff();(i.complete||this.options.returnPartialData)&&(r.data=i.result),eU(r.data,{})&&(r.data=void 0);var a=this.options.fetchPolicy,o=void 0===a?"cache-first":a;i.complete?(r.networkStatus===d.loading&&("cache-first"===o||"cac
20he-only"===o)&&(r.networkStatus=d.ready,r.loading=!1),delete r.partial):"no-cache"!==o&&(r.partial=!0),!__DEV__||i.complete||this.options.partialRefetch||r.loading||r.data||r.error||tT(i.missing)}return e&&this.updateLastResult(r),r},t.prototype.isDifferentFromLastResult=function(e){return!this.last||!eU(this.last.result,e)},t.prototype.getLast=function(e,t){var n=this.last;if(n&&n[e]&&(!t||eU(n.variables,this.variables)))return n[e]},t.prototype.getLastResult=function(e){return this.getLast("result",e)},t.prototype.getLastError=function(e){return this.getLast("error",e)},t.prototype.resetLastResults=function(){delete this.last,this.isTornDown=!1},t.prototype.resetQueryStoreErrors=function(){this.queryManager.resetErrors(this.queryId)},t.prototype.refetch=function(e){var t={pollInterval:0},n=this.options.fetchPolicy;return"no-cache"===n?t.fetchPolicy="no-cache":"cache-and-network"!==n&&(t.fetchPolicy="network-only"),e&&!eU(this.options.variables,e)&&(t.variables=this.options.variables=m(m({},this.options.variables),e)),this.queryInfo.resetLastWrite(),this.reobserve(t,d.refetch)},t.prototype.fetchMore=function(e){var t=this,n=m(m({},e.query?e:m(m(m({},this.options),e),{variables:m(m({},this.options.variables),e.variables)})),{fetchPolicy:"no-cache"}),r=this.queryManager.generateQueryId();return n.notifyOnNetworkStatusChange&&(this.queryInfo.networkStatus=d.fetchMore,this.observe()),this.queryManager.fetchQuery(r,n,d.fetchMore).then(function(r){var i=r.data,a=e.updateQuery;return a?(__DEV__&&!tE&&(__DEV__&&T.warn("The updateQuery callback for fetchMore is deprecated, and will be removed\nin the next major version of Apollo Client.\n\nPlease convert updateQuery functions to field policies with appropriate\nread and merge functions, or use/adapt a helper function (such as\nconcatPagination, offsetLimitPagination, or relayStylePagination) from\n@apollo/client/utilities.\n\nThe field policy system handles pagination more effectively than a\nhand-written updateQuery function, and you only need to define the policy\nonce, rather than every time you call fetchMore."),tE=!0),t.updateQuery(function(e){return a(e,{fetchMoreResult:i,variables:n.variables})})):t.queryManager.cache.writeQuery({query:n.query,variables:n.variables,data:i}),r}).finally(function(){t.queryManager.stopQuery(r),t.reobserve()})},t.prototype.subscribeToMore=function(e){var t=this,n=this.queryManager.startGraphQLSubscription({query:e.document,variables:e.variables,context:e.context}).subscribe({next:function(n){var r=e.updateQuery;r&&t.updateQuery(function(e,t){return r(e,{subscriptionData:n,variables:t.variables})})},error:function(t){if(e.onError){e.onError(t);return}__DEV__&&T.error("Unhandled GraphQL subscription error",t)}});return this.subscriptions.add(n),function(){t.subscriptions.delete(n)&&n.unsubscribe()}},t.prototype.setOptions=function(e){return this.reobserve(e)},t.prototype.setVariables=function(e){return eU(this.variables,e)?this.observers.size?this.result():Promise.resolve():(this.options.variables=e,this.observers.size)?this.reobserve({fetchPolicy:this.initialFetchPolicy,variables:e},d.setVariables):Promise.resolve()},t.prototype.updateQuery=function(e){var t=this.queryManager,n=e(t.cache.diff({query:this.options.query,variables:this.variables,returnPartialData:!0,optimistic:!1}).result,{variables:this.variables});n&&(t.cache.writeQuery({query:this.options.query,data:n,variables:this.variables}),t.broadcastQueries())},t.prototype.startPolling=function(e){this.options.pollInterval=e,this.updatePolling()},t.prototype.stopPolling=function(){this.options.pollInterval=0,this.updatePolling()},t.prototype.fetch=function(e,t){return this.queryManager.setObservableQuery(this),this.queryManager.fetchQueryObservable(this.queryId,e,t)},t.prototype.updatePolling=function(){var e=this;if(!this.queryManager.ssrMode){var t=this.pollingInfo,n=this.options.pollInterval;if(!n){t&&(clearTimeout(t.timeout),delete this.pollingInfo);return}if(!t||t.interval!==n){__DEV__?T(n,"Attempted to start a polling query without a polling interval."):T(n,13),(t||(this.pollingInfo={})).interval=n;var r=function(){e.pollingInfo&&(ty(e.queryInfo.networkStatus)?i():e.reobserve({fetchPolicy:"network-only"},d.poll).then(i,i))},i=function(){var t=e.pollingInfo;t&&(clearTimeout(t.timeout),t.timeout=setTimeout(r,t.interval))};i()}}},t.prototype.updateLastResult=function(e,t){return void 0===t&&(t=this.variables),this.last=m(m({},this.last),{result:this.queryManager.assumeImmutableResults?e:tA(e),variables:t}),tl(e.errors)||delete this.last.error,this.last},t.prototype.reobserve=function(e,t){var n=this;this.isTornDown=!1;var r=t===d.refetch||t===d.fetchMore||t===d.poll,i=this.options.variables,a=r?ew(this.options,e):Object.assign(this.options,ew(e));r||(this.updatePolling(),!e||!e.variables||e.fetchPolicy||eU(e.variables,i)||(a.fetchPolicy=this.initialFetchPolicy,void 0!==t||(t=d.setVariables)));var o=a.variables&&m({},a.variables),s=this.fetch(a,t),l={next:function(e){n.reportResult(e,o)},error:function(e){n.reportError(e,o)}};return r||(this.concast&&this.observer&&this.concast.removeObserver(this.observer,!0),this.concast=s,this.observer=l),s.addObserver(l),s.promise},t.prototype.observe=function(){this.reportResult(this.getCurrentResult(!1),this.variables)},t.prototype.reportResult=function(e,t){(this.getLastError()||this.isDifferentFromLastResult(e))&&(this.updateLastResult(e,t),ti(this.observers,"next",e))},t.prototype.reportError=function(e,t){var n=m(m({},this.getLastResult()),{error:e,errors:e.graphQLErrors,networkStatus:d.error,loading:!1});this.updateLastResult(n,t),ti(this.observers,"error",this.last.error=e)},t.prototype.hasObservers=function(){return this.observers.size>0},t.prototype.tearDownQuery=function(){this.isTornDown||(this.concast&&this.observer&&(this.concast.removeObserver(this.observer),delete this.concast,delete this.observer),this.stopPolling(),this.subscriptions.forEach(function(e){return e.unsubscribe()}),this.subscriptions.clear(),this.queryManager.stopQuery(this.queryId),this.observers.clear(),this.isTornDown=!0)},t}(K);function tx(e){__DEV__&&T.error("Unhandled error",e.message,e.stack)}function tT(e){__DEV__&&tl(e)&&__DEV__&&T.debug("Missing cache result fields: "+e.map(function(e){return e.path.join(".")}).join(", "),e)}ta(tw);var tS=Object.prototype.hasOwnProperty;function t_(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return tC(e)}function tC(e){var t=e[0]||{},n=e.length;if(n>1)for(var r=new tI,i=1;i<n;++i)t=r.merge(t,e[i]);return t}
20var tk=function(e,t,n){return this.merge(e[n],t[n])},tI=function(){function e(e){void 0===e&&(e=tk),this.reconciler=e,this.isObject=$,this.pastCopies=new Set}return e.prototype.merge=function(e,t){for(var n=this,r=[],i=2;i<arguments.length;i++)r[i-2]=arguments[i];return $(t)&&$(e)?(Object.keys(t).forEach(function(i){if(tS.call(e,i)){var a=e[i];if(t[i]!==a){var o=n.reconciler.apply(n,b([e,t,i],r));o!==a&&((e=n.shallowCopyForMerge(e))[i]=o)}}else(e=n.shallowCopyForMerge(e))[i]=t[i]}),e):t},e.prototype.shallowCopyForMerge=function(e){return $(e)&&!this.pastCopies.has(e)&&(e=Array.isArray(e)?e.slice(0):m({__proto__:Object.getPrototypeOf(e)},e),this.pastCopies.add(e)),e},e}();let tL=null,tP={},tO=1;function tR(e){try{return e()}catch(e){}}let tD="@wry/context:Slot",tN=tR(()=>globalThis)||tR(()=>global)||Object.create(null),tM=tN[tD]||Array[tD]||function(e){try{Object.defineProperty(tN,tD,{value:e,enumerable:!1,writable:!1,configurable:!0})}finally{return e}}(class{constructor(){this.id=["slot",tO++,Date.now(),Math.random().toString(36).slice(2)].join(":")}hasValue(){for(let e=tL;e;e=e.parent)if(this.id in e.slots){let t=e.slots[this.id];if(t===tP)break;return e!==tL&&(tL.slots[this.id]=t),!0}return tL&&(tL.slots[this.id]=tP),!1}getValue(){if(this.hasValue())return tL.slots[this.id]}withValue(e,t,n,r){let i={__proto__:null,[this.id]:e},a=tL;tL={parent:a,slots:i};try{return t.apply(r,n)}finally{tL=a}}static bind(e){let t=tL;return function(){let n=tL;try{return tL=t,e.apply(this,arguments)}finally{tL=n}}}static noContext(e,t,n){if(!tL)return e.apply(n,t);{let r=tL;try{return tL=null,e.apply(n,t)}finally{tL=r}}}}),{bind:tj,noContext:tF}=tM;function tB(){}var tU=function(){function e(e,t){void 0===e&&(e=1/0),void 0===t&&(t=tB),this.max=e,this.dispose=t,this.map=new Map,this.newest=null,this.oldest=null}return e.prototype.has=function(e){return this.map.has(e)},e.prototype.get=function(e){var t=this.getNode(e);return t&&t.value},e.prototype.getNode=function(e){var t=this.map.get(e);if(t&&t!==this.newest){var n=t.older,r=t.newer;r&&(r.older=n),n&&(n.newer=r),t.older=this.newest,t.older.newer=t,t.newer=null,this.newest=t,t===this.oldest&&(this.oldest=r)}return t},e.prototype.set=function(e,t){var n=this.getNode(e);return n?n.value=t:(n={key:e,value:t,newer:null,older:this.newest},this.newest&&(this.newest.newer=n),this.newest=n,this.oldest=this.oldest||n,this.map.set(e,n),n.value)},e.prototype.clean=function(){for(;this.oldest&&this.map.size>this.max;)this.delete(this.oldest.key)},e.prototype.delete=function(e){var t=this.map.get(e);return!!t&&(t===this.newest&&(this.newest=t.older),t===this.oldest&&(this.oldest=t.newer),t.newer&&(t.newer.older=t.older),t.older&&(t.older.newer=t.newer),this.map.delete(e),this.dispose(t.value,e),!0)},e}(),tV=new tM,tz=Object.prototype.hasOwnProperty,tq=void 0===(h=Array.from)?function(e){var t=[];return e.forEach(function(e){return t.push(e)}),t}:h;function tQ(e){var t=e.unsubscribe;"function"==typeof t&&(e.unsubscribe=void 0,t())}var tH=[];function tG(e,t){if(!e)throw Error(t||"assertion failure")}function tK(e){switch(e.length){case 0:throw Error("unknown value");case 1:return e[0];case 2:throw e[1]}}var t$=function(){function e(t){this.fn=t,this.parents=new Set,this.childValues=new Map,this.dirtyChildren=null,this.dirty=!0,this.recomputing=!1,this.value=[],this.deps=null,++e.count}return e.prototype.peek=function(){if(1===this.value.length&&!tY(this))return tW(this),this.value[0]},e.prototype.recompute=function(e){var t;return tG(!this.recomputing,"already recomputing"),tW(this),tY(this)&&(t2(this),tV.withValue(this,tZ,[this,e]),function(e,t){if("function"==typeof e.subscribe)try{tQ(e),e.unsubscribe=e.subscribe.apply(null,t)}catch(t){return e.setDirty(),!1}return!0}(this,e)&&(this.dirty=!1,tY(this)||(t=this,tX(t,t0)))),tK(this.value)},e.prototype.setDirty=function(){this.dirty||(this.dirty=!0,this.value.length=0,tX(this,tJ),tQ(this))},e.prototype.dispose=function(){var e=this;this.setDirty(),t2(this),tX(this,function(t,n){t.setDirty(),t3(t,e)})},e.prototype.forget=function(){this.dispose()}
20,e.prototype.dependOn=function(e){e.add(this),this.deps||(this.deps=tH.pop()||new Set),this.deps.add(e)},e.prototype.forgetDeps=function(){var e=this;this.deps&&(tq(this.deps).forEach(function(t){return t.delete(e)}),this.deps.clear(),tH.push(this.deps),this.deps=null)},e.count=0,e}();function tW(e){var t=tV.getValue();if(t)return e.parents.add(t),t.childValues.has(e)||t.childValues.set(e,[]),tY(e)?tJ(t,e):t0(t,e),t}function tZ(e,t){e.recomputing=!0,e.value.length=0;try{e.value[0]=e.fn.apply(null,t)}catch(t){e.value[1]=t}e.recomputing=!1}function tY(e){return e.dirty||!!(e.dirtyChildren&&e.dirtyChildren.size)}function tX(e,t){var n=e.parents.size;if(n)for(var r=tq(e.parents),i=0;i<n;++i)t(r[i],e)}function tJ(e,t){tG(e.childValues.has(t)),tG(tY(t));var n=!tY(e);if(e.dirtyChildren){if(e.dirtyChildren.has(t))return}else e.dirtyChildren=tH.pop()||new Set;e.dirtyChildren.add(t),n&&tX(e,tJ)}function t0(e,t){tG(e.childValues.has(t)),tG(!tY(t));var n,r,i=e.childValues.get(t);0===i.length?e.childValues.set(t,t.value.slice(0)):(n=t.value,(r=i.length)>0&&r===n.length&&i[r-1]===n[r-1]||e.setDirty()),t1(e,t),tY(e)||tX(e,t0)}function t1(e,t){var n=e.dirtyChildren;n&&(n.delete(t),0===n.size&&(tH.length<100&&tH.push(n),e.dirtyChildren=null))}function t2(e){e.childValues.size>0&&e.childValues.forEach(function(t,n){t3(e,n)}),e.forgetDeps(),tG(null===e.dirtyChildren)}function t3(e,t){t.parents.delete(e),e.childValues.delete(t),t1(e,t)}var t4={setDirty:!0,dispose:!0,forget:!0};function t5(e){var t=new Map,n=e&&e.subscribe;function r(e){var r=tV.getValue();if(r){var i=t.get(e);i||t.set(e,i=new Set),r.dependOn(i),"function"==typeof n&&(tQ(i),i.unsubscribe=n(e))}}return r.dirty=function(e,n){var r=t.get(e);if(r){var i=n&&tz.call(t4,n)?n:"setDirty";tq(r).forEach(function(e){return e[i]()}),t.delete(e),tQ(r)}},r}function t8(){var e=new eW("function"==typeof WeakMap);return function(){return e.lookupArray(arguments)}}t8();var t6=new Set;function t9(e,t){void 0===t&&(t=Object.create(null));var n=new tU(t.max||65536,function(e){return e.dispose()}),r=t.keyArgs,i=t.makeCacheKey||t8(),a=function(){var a=i.apply(null,r?r.apply(null,arguments):arguments);if(void 0===a)return e.apply(null,arguments);var o=n.get(a);o||(n.set(a,o=new t$(e)),o.subscribe=t.subscribe,o.forget=function(){return n.delete(a)});var s=o.recompute(Array.prototype.slice.call(arguments));return n.set(a,o),t6.add(n),tV.hasValue()||(t6.forEach(function(e){return e.clean()}),t6.clear()),s};function o(e){var t=n.get(e);t&&t.setDirty()}function s(e){var t=n.get(e);if(t)return t.peek()}function l(e){return n.delete(e)}return Object.defineProperty(a,"size",{get:function(){return n.map.size},configurable:!1,enumerable:!1}),a.dirtyKey=o,a.dirty=function(){o(i.apply(null,arguments))},a.peekKey=s,a.peek=function(){return s(i.apply(null,arguments))},a.forgetKey=l,a.forget=function(){return l(i.apply(null,arguments))},a.makeCacheKey=i,a.getKey=r?function(){return i.apply(null,r.apply(null,arguments))}:i,Object.freeze(a)}var t7=null,ne={},nt=1,nn="@wry/context:Slot",nr=Array,ni=nr[nn]||function(){var e=function(){function e(){this.id=["slot",nt++,Date.now(),Math.random().toString(36).slice(2)].join(":")}return e.prototype.hasValue=function(){for(var e=t7;e;e=e.parent)if(this.id in e.slots){var t=e.slots[this.id];if(t===ne)break;return e!==t7&&(t7.slots[this.id]=t),!0}return t7&&(t7.slots[this.id]=ne),!1},e.prototype.getValue=function(){if(this.hasValue())return t7.slots[this.id]},e.prototype.withValue=function(e,t,n,r){var i,a=((i={__proto__:null})[this.id]=e,i),o=t7;t7={parent:o,slots:a};try{return t.apply(r,n)}finally{t7=o}},e.bind=function(e){var t=t7;return function(){var n=t7;try{return t7=t,e.apply(this,arguments)}finally{t7=n}}},e.noContext=function(e,t,n){if(!t7)return e.apply(n,t);var r=t7;try{return t7=null,e.apply(n,t)}finally{t7=r}},e}();try{Object.defineProperty(nr,nn,{value:nr[nn]=e,enumerable:!1,writable:!1,configurable:!1})}finally{return e}}();ni.bind,ni.noContext;var na=new ni,no=new WeakMap;function ns(e){var t=no.get(e);return t||no.set(e,t={vars:new Set,dep:t5()}),t}
20function nl(e){var t=new Set,n=new Set,r=function(a){if(arguments.length>0){if(e!==a){e=a,t.forEach(function(e){ns(e).dep.dirty(r),e.broadcastWatches&&e.broadcastWatches()});var o=Array.from(n);n.clear(),o.forEach(function(t){return t(e)})}}else{var s=na.getValue();s&&(i(s),ns(s).dep(r))}return e};r.onNextChange=function(e){return n.add(e),function(){n.delete(e)}};var i=r.attachCache=function(e){return t.add(e),ns(e).vars.add(r),r};return r.forgetCache=function(e){return t.delete(e)},r}var nu=function(){function e(e){var t=e.cache,n=e.client,r=e.resolvers,i=e.fragmentMatcher;this.cache=t,n&&(this.client=n),r&&this.addResolvers(r),i&&this.setFragmentMatcher(i)}return e.prototype.addResolvers=function(e){var t=this;this.resolvers=this.resolvers||{},Array.isArray(e)?e.forEach(function(e){t.resolvers=t_(t.resolvers,e)}):this.resolvers=t_(this.resolvers,e)},e.prototype.setResolvers=function(e){this.resolvers={},this.addResolvers(e)},e.prototype.getResolvers=function(){return this.resolvers||{}},e.prototype.runResolvers=function(e){var t=e.document,n=e.remoteResult,r=e.context,i=e.variables,a=e.onlyRunForcedResolvers,o=void 0!==a&&a;return v(this,void 0,void 0,function(){return y(this,function(e){return t?[2,this.resolveDocument(t,n.data,r,i,this.fragmentMatcher,o).then(function(e){return m(m({},n),{data:e.result})})]:[2,n]})})},e.prototype.setFragmentMatcher=function(e){this.fragmentMatcher=e},e.prototype.getFragmentMatcher=function(){return this.fragmentMatcher},e.prototype.clientQuery=function(e){return tt(["client"],e)&&this.resolvers?e:null},e.prototype.serverQuery=function(e){var t;return ec(e),(t=e6([{test:function(e){return"client"===e.name.value},remove:!0}],e))&&(t=(0,ex.Vn)(t,{FragmentDefinition:{enter:function(e){if(e.selectionSet&&e.selectionSet.selections.every(function(e){return el(e)&&"__typename"===e.name.value}))return null}}})),t},e.prototype.prepareContext=function(e){var t=this.cache;return m(m({},e),{cache:t,getCacheKey:function(e){return t.identify(e)}})},e.prototype.addExportedVariables=function(e,t,n){return void 0===t&&(t={}),void 0===n&&(n={}),v(this,void 0,void 0,function(){return y(this,function(r){return e?[2,this.resolveDocument(e,this.buildRootValueFromCache(e,t)||{},this.prepareContext(n),t).then(function(e){return m(m({},t),e.exportedVariables)})]:[2,m({},t)]})})},e.prototype.shouldForceResolvers=function(e){var t=!1;return(0,ex.Vn)(e,{Directive:{enter:function(e){if("client"===e.name.value&&e.arguments&&(t=e.arguments.some(function(e){return"always"===e.name.value&&"BooleanValue"===e.value.kind&&!0===e.value.value})))return ex.$_}}}),t},e.prototype.buildRootValueFromCache=function(e,t){return this.cache.diff({query:"query"===ep(e).operation?e:(0,ex.Vn)(e,{OperationDefinition:{enter:function(e){return m(m({},e),{operation:"query"})}}}),variables:t,returnPartialData:!0,optimistic:!1}).result},e.prototype.resolveDocument=function(e,t,n,r,i,a){return void 0===n&&(n={}),void 0===r&&(r={}),void 0===i&&(i=function(){return!0}),void 0===a&&(a=!1),v(this,void 0,void 0,function(){var o,s,l,u,c,d,h,f;return y(this,function(p){return o=ep(e),s=Z(ef(e)),u=(l=o.operation)?l.charAt(0).toUpperCase()+l.slice(1):"Query",c=this,d=c.cache,h=c.client,f={fragmentMap:s,context:m(m({},n),{cache:d,client:h}),variables:r,fragmentMatcher:i,defaultOperationType:u,exportedVariables:{},onlyRunForcedResolvers:a},[2,this.resolveSelectionSet(o.selectionSet,t,f).then(function(e){return{result:e,exportedVariables:f.exportedVariables}})]})})},e.prototype.resolveSelectionSet=function(e,t,n){return v(this,void 0,void 0,function(){var r,i,a,o,s,l=this;return y(this,function(u){return r=n.fragmentMap,i=n.context,a=n.variables,o=[t],s=function(e){return v(l,void 0,void 0,function(){var s,l;return y(this,function(u){return te(e,a)?el(e)?[2,this.resolveField(e,t,n).then(function(t){var n;void 0!==t&&o.push(((n={})[eo(e)]=t,n))})]:(eu(e)?s=e:(s=r[e.name.value],__DEV__?T(s,"No fragment named "+e.name.value):T(s,12)),s&&s.typeCondition&&(l=s.typeCondition.name.value,n.fragmentMatcher(t,l,i)))?[2,this.resolveSelectionSet(s.selectionSet,t,n).then(function(e){o.push(e)})]:[2]:[2]})})},[2,Promise.all(e.selections.map(s)).then(function(){return tC(o)})]})})},e.prototype.resolveField=function(e,t,n){return v(this,void 0,void 0,function(){var r,i,a,o,s,l,u,c,d,h=this;return y(this,function(f){return r=n.variables,o=(i=e.name.value)!==(a=eo(e)),l=Promise.resolve(s=t[a]||t[i]),(!n.onlyRunForcedResolvers||this.shouldForceResolvers(e))&&(u=t.__typename||n.defaultOperationType,(c=this.resolvers&&this.resolvers[u])&&(d=c[o?i:a])&&(l=Promise.resolve(na.withValue(this.cache,d,[t,ea(e,r),n.context,{field:e,fragmentMap:n.fragmentMap}])))),[2,l.then(function(t){return(void 0===t&&(t=s),e.directives&&e.directives.forEac
20h(function(e){"export"===e.name.value&&e.arguments&&e.arguments.forEach(function(e){"as"===e.name.value&&"StringValue"===e.value.kind&&(n.exportedVariables[e.value.value]=t)})}),e.selectionSet&&null!=t)?Array.isArray(t)?h.resolveSubSelectedArray(e,t,n):e.selectionSet?h.resolveSelectionSet(e.selectionSet,t,n):void 0:t})]})})},e.prototype.resolveSubSelectedArray=function(e,t,n){var r=this;return Promise.all(t.map(function(t){return null===t?null:Array.isArray(t)?r.resolveSubSelectedArray(e,t,n):e.selectionSet?r.resolveSelectionSet(e.selectionSet,t,n):void 0}))},e}(),nc=new(eZ?WeakMap:Map);function nd(e,t){var n=e[t];"function"==typeof n&&(e[t]=function(){return nc.set(e,(nc.get(e)+1)%1e15),n.apply(this,arguments)})}function nh(e){e.notifyTimeout&&(clearTimeout(e.notifyTimeout),e.notifyTimeout=void 0)}var nf=function(){function e(e,t){void 0===t&&(t=e.generateQueryId()),this.queryId=t,this.listeners=new Set,this.document=null,this.lastRequestId=1,this.subscriptions=new Set,this.stopped=!1,this.dirty=!1,this.observableQuery=null;var n=this.cache=e.cache;nc.has(n)||(nc.set(n,0),nd(n,"evict"),nd(n,"modify"),nd(n,"reset"))}return e.prototype.init=function(e){var t=e.networkStatus||d.loading;return this.variables&&this.networkStatus!==d.loading&&!eU(this.variables,e.variables)&&(t=d.setVariables),eU(e.variables,this.variables)||(this.lastDiff=void 0),Object.assign(this,{document:e.document,variables:e.variables,networkError:null,graphQLErrors:this.graphQLErrors||[],networkStatus:t}),e.observableQuery&&this.setObservableQuery(e.observableQuery),e.lastRequestId&&(this.lastRequestId=e.lastRequestId),this},e.prototype.reset=function(){nh(this),this.lastDiff=void 0,this.dirty=!1},e.prototype.getDiff=function(e){void 0===e&&(e=this.variables);var t=this.getDiffOptions(e);if(this.lastDiff&&eU(t,this.lastDiff.options))return this.lastDiff.diff;this.updateWatch(this.variables=e);var n=this.observableQuery;if(n&&"no-cache"===n.options.fetchPolicy)return{complete:!1};var r=this.cache.diff(t);return this.updateLastDiff(r,t),r},e.prototype.updateLastDiff=function(e,t){this.lastDiff=e?{diff:e,options:t||this.getDiffOptions()}:void 0},e.prototype.getDiffOptions=function(e){void 0===e&&(e=this.variables);var t=this.observableQuery;return{query:this.document,variables:e,returnPartialData:!0,optimistic:!0,canonizeResults:!t||!1!==t.options.canonizeResults}},e.prototype.setDiff=function(e){var t=this,n=this.lastDiff&&this.lastDiff.diff;this.updateLastDiff(e),this.dirty||eU(n&&n.result,e&&e.result)||(this.dirty=!0,this.notifyTimeout||(this.notifyTimeout=setTimeout(function(){return t.notify()},0)))},e.prototype.setObservableQuery=function(e){var t=this;e!==this.observableQuery&&(this.oqListener&&this.listeners.delete(this.oqListener),this.observableQuery=e,e?(e.queryInfo=this,this.listeners.add(this.oqListener=function(){t.getDiff().fromOptimisticTransaction?e.observe():e.reobserve()})):delete this.oqListener)},e.prototype.notify=function(){var e=this;nh(this),this.shouldNotify()&&this.listeners.forEach(function(t){return t(e)}),this.dirty=!1},e.prototype.shouldNotify=function(){if(!this.dirty||!this.listeners.size)return!1;if(ty(this.networkStatus)&&this.observableQuery){var e=this.observableQuery.options.fetchPolicy;if("cache-only"!==e&&"cache-and-network"!==e)return!1}return!0},e.prototype.stop=function(){if(!this.stopped){this.stopped=!0,this.reset(),this.cancel(),this.cancel=e.prototype.cancel,this.subscriptions.forEach(function(e){return e.unsubscribe()});var t=this.observableQuery;t&&t.stopPolling()}},e.prototype.cancel=function(){},e.prototype.updateWatch=function(e){var t=this;void 0===e&&(e=this.variables);var n=this.observableQuery;if(!n||"no-cache"!==n.options.fetchPolicy){var r=m(m({},this.getDiffOptions(e)),{watcher:this,callback:function(e){return t.setDiff(e)}});this.lastWatch&&eU(r,this.lastWatch)||(this.cancel(),this.cancel=this.cache.watch(this.lastWatch=r))}},e.prototype.resetLastWrite=function(){this.lastWrite=void 0},e.prototype.shouldWrite=function(e,t){var n=this.lastWrite;return!(n&&n.dmCount===nc.get(this.cache)&&eU(t,n.variables)&&eU(e.data,n.result.data))},e.prototype.markResult=function(e,t,n){var r=this;this.graphQLErrors=tl(e.errors)?e.errors:[],this.reset(),"no-cache"===t.fetchPolicy?this.updateLastDiff({result:e.data,complete:!0},this.getDiffOptions(t.variables)):0!==n&&(np(e,t.errorPolicy)?this.cache.performTransaction(function(i){if(r.shouldWrite(e,t.variables))i.writeQuery({query:r.document,data:e.data,variables:t.variables,overwrite:1===n}),r.lastWrite={result:e,variables:t.variables,dmCount:nc.get(r.cache)};else if(r.lastDiff&&r.lastDiff.diff.complete){e.data=r.lastDiff.diff.result;return}var a=r.getDiffOptions(t.variables),o=i.diff(a);r.stopped||r.updateWatch(t.variables),r.updateLastDiff(o,a),o.complete&&(e.data=o.result)}):this.lastWrite=void 0)},e.prototype.markReady=function(){return this.networkError=null,this.networkStatus=d.ready},e.prototype.markError=function(e){return this.networkStatus=d.error,this.lastWrite=void 0,this.reset(),e.graphQLErrors&&(this.graphQLErrors=e.graphQLErrors),e.networkError&&(this.networkError=e.networkError),e},e}();function np(e,t){void 0===t&&(t="none");var n="ignore"===t||"all"===t,r=!e2(e);return!r&&n&&e.data&&(r=!0),r}var nm=Object.prototype.hasOwnProperty,ng=function(){function e(e){var t=e.cache,n=e.link,r=e.queryDeduplication,i=e.onBroadcast,a=e.ssrMode,o=e.clientAwareness,s=e.localState,l=e.assumeImmutableResults;this.clientAwareness={},this.queries=new Map,this.fetchCancelFns=new Map,this.transformCache=new(eZ?WeakMap:Map),this.queryIdCounter=1,this.requestIdCounter=1,this.mutationIdCounter=1,this.inFlightLinkObservables=new Map,this.cache=t,this.link=n,this.queryDeduplication=void 0!==r&&r,this.clientAwareness=void 0===o?{}:o,this.localState=s||new nu({cache:t}),this.ssrMode=void 0!==a&&a,this.assumeImmutableResults=!!l,(this.onBroadcast=i)&&(this.mutationStore=Object.create(null))}return e.prototype.stop=function(){var e=this;
20this.queries.forEach(function(t,n){e.stopQueryNoBroadcast(n)}),this.cancelPendingFetches(__DEV__?new x("QueryManager stopped while query was in flight"):new x(14))},e.prototype.cancelPendingFetches=function(e){this.fetchCancelFns.forEach(function(t){return t(e)}),this.fetchCancelFns.clear()},e.prototype.mutate=function(e){var t=e.mutation,n=e.variables,r=e.optimisticResponse,i=e.updateQueries,a=e.refetchQueries,o=void 0===a?[]:a,s=e.awaitRefetchQueries,l=void 0!==s&&s,u=e.update,c=e.onQueryUpdated,d=e.errorPolicy,h=void 0===d?"none":d,f=e.fetchPolicy,p=void 0===f?"network-only":f,g=e.keepRootFields,b=e.context;return v(this,void 0,void 0,function(){var e,a,s;return y(this,function(d){switch(d.label){case 0:if(__DEV__?T(t,"mutation option is required. You must specify your GraphQL document in the mutation option."):T(t,15),__DEV__?T("network-only"===p||"no-cache"===p,"Mutations support only 'network-only' or 'no-cache' fetchPolicy strings. The default `network-only` behavior automatically writes mutation results to the cache. Passing `no-cache` skips the cache write."):T("network-only"===p||"no-cache"===p,16),e=this.generateMutationId(),t=this.transform(t).document,n=this.getVariables(t,n),!this.transform(t).hasClientExports)return[3,2];return[4,this.localState.addExportedVariables(t,n,b)];case 1:n=d.sent(),d.label=2;case 2:return a=this.mutationStore&&(this.mutationStore[e]={mutation:t,variables:n,loading:!0,error:null}),r&&this.markMutationOptimistic(r,{mutationId:e,document:t,variables:n,fetchPolicy:p,errorPolicy:h,context:b,updateQueries:i,update:u,keepRootFields:g}),this.broadcastQueries(),s=this,[2,new Promise(function(d,f){return e1(s.getObservableFromLink(t,m(m({},b),{optimisticResponse:r}),n,!1),function(d){if(e2(d)&&"none"===h)throw new tv({graphQLErrors:d.errors});a&&(a.loading=!1,a.error=null);var f=m({},d);return"function"==typeof o&&(o=o(f)),"ignore"===h&&e2(f)&&delete f.errors,s.markMutationResult({mutationId:e,result:f,document:t,variables:n,fetchPolicy:p,errorPolicy:h,context:b,update:u,updateQueries:i,awaitRefetchQueries:l,refetchQueries:o,removeOptimistic:r?e:void 0,onQueryUpdated:c,keepRootFields:g})}).subscribe({next:function(e){s.broadcastQueries(),d(e)},error:function(t){a&&(a.loading=!1,a.error=t),r&&s.cache.removeOptimistic(e),s.broadcastQueries(),f(t instanceof tv?t:new tv({networkError:t}))}})})]}})})},e.prototype.markMutationResult=function(e,t){var n=this;void 0===t&&(t=this.cache);var r=e.result,i=[],a="no-cache"===e.fetchPolicy;if(!a&&np(r,e.errorPolicy)){i.push({result:r.data,dataId:"ROOT_MUTATION",query:e.document,variables:e.variables});var o=e.updateQueries;o&&this.queries.forEach(function(e,a){var s=e.observableQuery,l=s&&s.queryName;if(l&&nm.call(o,l)){var u=o[l],c=n.queries.get(a),d=c.document,h=c.variables,f=t.diff({query:d,variables:h,returnPartialData:!0,optimistic:!1}),p=f.result;if(f.complete&&p){var m=u(p,{mutationResult:r,queryName:d&&eh(d)||void 0,queryVariables:h});m&&i.push({result:m,dataId:"ROOT_QUERY",query:d,variables:h})}}})}if(i.length>0||e.refetchQueries||e.update||e.onQueryUpdated||e.removeOptimistic){var s=[];if(this.refetchQueries({updateCache:function(t){a||i.forEach(function(e){return t.write(e)});var o=e.update;if(o){if(!a){var s=t.diff({id:"ROOT_MUTATION",query:n.transform(e.document).asQuery,variables:e.variables,optimistic:!1,returnPartialData:!0});s.complete&&(r=m(m({},r),{data:s.result}))}o(t,r,{context:e.context,variables:e.variables})}a||e.keepRootFields||t.modify({id:"ROOT_MUTATION",fields:function(e,t){var n=t.fieldName,r=t.DELETE;return"__typename"===n?e:r}})},include:e.refetchQueries,optimistic:!1,removeOptimistic:e.removeOptimistic,onQueryUpdated:e.onQueryUpdated||null}).forEach(function(e){return s.push(e)}),e.awaitRefetchQueries||e.onQueryUpdated)return Promise.all(s).then(function(){return r})}return Promise.resolve(r)},e.prototype.markMutationOptimistic=function(e,t){var n=this,r="function"==typeof e?e(t.variables):e;return this.cache.recordOptimisticTransaction(function(e){try{n.markMutationResult(m(m({},t),{result:{data:r}}),e)}catch(e){__DEV__&&T.error(e)}},t.mutationId)},e.prototype.fetchQuery=function(e,t,n){return this.fetchQueryObservable(e,t,n).promise},e.prototype.getQueryStore=function(){var e=Object.create(null);
20return this.queries.forEach(function(t,n){e[n]={variables:t.variables,networkStatus:t.networkStatus,networkError:t.networkError,graphQLErrors:t.graphQLErrors}}),e},e.prototype.resetErrors=function(e){var t=this.queries.get(e);t&&(t.networkError=void 0,t.graphQLErrors=[])},e.prototype.transform=function(e){var t=this.transformCache;if(!t.has(e)){var n=this.cache.transformDocument(e),r=e6([e7],ec(this.cache.transformForLink(n))),i=this.localState.clientQuery(n),a=r&&this.localState.serverQuery(r),o={document:n,hasClientExports:n&&tt(["client"],n)&&tt(["export"],n),hasForcedResolvers:this.localState.shouldForceResolvers(n),clientQuery:i,serverQuery:a,defaultVars:em(ed(n)),asQuery:m(m({},n),{definitions:n.definitions.map(function(e){return"OperationDefinition"===e.kind&&"query"!==e.operation?m(m({},e),{operation:"query"}):e})})},s=function(e){e&&!t.has(e)&&t.set(e,o)};s(e),s(n),s(i),s(a)}return t.get(e)},e.prototype.getVariables=function(e,t){return m(m({},this.transform(e).defaultVars),t)},e.prototype.watchQuery=function(e){void 0===(e=m(m({},e),{variables:this.getVariables(e.query,e.variables)})).notifyOnNetworkStatusChange&&(e.notifyOnNetworkStatusChange=!1);var t=new nf(this),n=new tw({queryManager:this,queryInfo:t,options:e});return this.queries.set(n.queryId,t),t.init({document:e.query,observableQuery:n,variables:e.variables}),n},e.prototype.query=function(e,t){var n=this;return void 0===t&&(t=this.generateQueryId()),__DEV__?T(e.query,"query option is required. You must specify your GraphQL document in the query option."):T(e.query,17),__DEV__?T("Document"===e.query.kind,'You must wrap the query string in a "gql" tag.'):T("Document"===e.query.kind,18),__DEV__?T(!e.returnPartialData,"returnPartialData option only supported on watchQuery."):T(!e.returnPartialData,19),__DEV__?T(!e.pollInterval,"pollInterval option only supported on watchQuery."):T(!e.pollInterval,20),this.fetchQuery(t,e).finally(function(){return n.stopQuery(t)})},e.prototype.generateQueryId=function(){return String(this.queryIdCounter++)},e.prototype.generateRequestId=function(){return this.requestIdCounter++},e.prototype.generateMutationId=function(){return String(this.mutationIdCounter++)},e.prototype.stopQueryInStore=function(e){this.stopQueryInStoreNoBroadcast(e),this.broadcastQueries()},e.prototype.stopQueryInStoreNoBroadcast=function(e){var t=this.queries.get(e);t&&t.stop()},e.prototype.clearStore=function(){return this.cancelPendingFetches(__DEV__?new x("Store reset while query was in flight (not completed in link chain)"):new x(21)),this.queries.forEach(function(e){e.observableQuery?e.networkStatus=d.loading:e.stop()}),this.mutationStore&&(this.mutationStore=Object.create(null)),this.cache.reset()},e.prototype.resetStore=function(){var e=this;return this.clearStore().then(function(){return e.reFetchObservableQueries()})},e.prototype.getObservableQueries=function(e){var t=this;void 0===e&&(e="active");var n=new Map,r=new Map,i=new Set;return Array.isArray(e)&&e.forEach(function(e){"string"==typeof e?r.set(e,!1):$(e)&&"Document"===e.kind&&Array.isArray(e.definitions)?r.set(t.transform(e).document,!1):$(e)&&e.query&&i.add(e)}),this.queries.forEach(function(t,i){var a=t.observableQuery,o=t.document;if(a){if("all"===e){n.set(i,a);return}var s=a.queryName;if("standby"===a.options.fetchPolicy||!a.hasObservers())return;("active"===e||s&&r.has(s)||o&&r.has(o))&&(n.set(i,a),s&&r.set(s,!0),o&&r.set(o,!0))}}),i.size&&i.forEach(function(e){var r=tr("legacyOneTimeQuery"),i=t.getQuery(r).init({document:e.query,variables:e.variables}),a=new tw({queryManager:t,queryInfo:i,options:m(m({},e),{fetchPolicy:"network-only"})});T(a.queryId===r),i.setObservableQuery(a),n.set(r,a)}),__DEV__&&r.size&&r.forEach(function(e,t){!e&&__DEV__&&T.warn("Unknown query "+("string"==typeof t?"named ":"")+JSON.stringify(t,null,2)+" requested in refetchQueries options.include array")}),n},e.prototype.reFetchObservableQueries=function(e){var t=this;void 0===e&&(e=!1);var n=[];return this.getObservableQueries(e?"all":"active").forEach(function(r,i){var a=r.options.fetchPolicy;
20r.resetLastResults(),(e||"standby"!==a&&"cache-only"!==a)&&n.push(r.refetch()),t.getQuery(i).setDiff(null)}),this.broadcastQueries(),Promise.all(n)},e.prototype.setObservableQuery=function(e){this.getQuery(e.queryId).setObservableQuery(e)},e.prototype.startGraphQLSubscription=function(e){var t=this,n=e.query,r=e.fetchPolicy,i=e.errorPolicy,a=e.variables,o=e.context,s=void 0===o?{}:o;n=this.transform(n).document,a=this.getVariables(n,a);var l=function(e){return t.getObservableFromLink(n,s,e).map(function(a){if("no-cache"!==r&&(np(a,i)&&t.cache.write({query:n,result:a.data,dataId:"ROOT_SUBSCRIPTION",variables:e}),t.broadcastQueries()),e2(a))throw new tv({graphQLErrors:a.errors});return a})};if(this.transform(n).hasClientExports){var u=this.localState.addExportedVariables(n,a,s).then(l);return new K(function(e){var t=null;return u.then(function(n){return t=n.subscribe(e)},e.error),function(){return t&&t.unsubscribe()}})}return l(a)},e.prototype.stopQuery=function(e){this.stopQueryNoBroadcast(e),this.broadcastQueries()},e.prototype.stopQueryNoBroadcast=function(e){this.stopQueryInStoreNoBroadcast(e),this.removeQuery(e)},e.prototype.removeQuery=function(e){this.fetchCancelFns.delete(e),this.getQuery(e).stop(),this.queries.delete(e)},e.prototype.broadcastQueries=function(){this.onBroadcast&&this.onBroadcast(),this.queries.forEach(function(e){return e.notify()})},e.prototype.getLocalState=function(){return this.localState},e.prototype.getObservableFromLink=function(e,t,n,r){var i,a,o=this;void 0===r&&(r=null!==(i=null==t?void 0:t.queryDeduplication)&&void 0!==i?i:this.queryDeduplication);var s=this.transform(e).serverQuery;if(s){var l=this.inFlightLinkObservables,u=this.link,c={query:s,variables:n,operationName:eh(s)||void 0,context:this.prepareContext(m(m({},t),{forceFetch:!r}))};if(t=c.context,r){var d=l.get(s)||new Map;l.set(s,d);var h=eJ(n);if(!(a=d.get(h))){var f=new ts([eE(u,c)]);d.set(h,a=f),f.cleanup(function(){d.delete(h)&&d.size<1&&l.delete(s)})}}else a=new ts([eE(u,c)])}else a=new ts([K.of({data:{}})]),t=this.prepareContext(t);var p=this.transform(e).clientQuery;return p&&(a=e1(a,function(e){return o.localState.runResolvers({document:p,remoteResult:e,context:t,variables:n})})),a},e.prototype.getResultsFromLink=function(e,t,n){var r=e.lastRequestId=this.generateRequestId();return e1(this.getObservableFromLink(e.document,n.context,n.variables),function(i){var a=tl(i.errors);if(r>=e.lastRequestId){if(a&&"none"===n.errorPolicy)throw e.markError(new tv({graphQLErrors:i.errors}));e.markResult(i,n,t),e.markReady()}var o={data:i.data,loading:!1,networkStatus:e.networkStatus||d.ready};return a&&"ignore"!==n.errorPolicy&&(o.errors=i.errors),o},function(t){var n=t.hasOwnProperty("graphQLErrors")?t:new tv({networkError:t});throw r>=e.lastRequestId&&e.markError(n),n})},e.prototype.fetchQueryObservable=function(e,t,n){var r=this;void 0===n&&(n=d.loading);var i=this.transform(t.query).document,a=this.getVariables(i,t.variables),o=this.getQuery(e),s=t.fetchPolicy,l=t.errorPolicy,u=t.returnPartialData,c=t.notifyOnNetworkStatusChange,h=t.context,f=Object.assign({},t,{query:i,variables:a,fetchPolicy:void 0===s?"cache-first":s,errorPolicy:void 0===l?"none":l,returnPartialData:void 0!==u&&u,notifyOnNetworkStatusChange:void 0!==c&&c,context:void 0===h?{}:h}),p=function(e){return f.variables=e,r.fetchQueryByPolicy(o,f,n)};this.fetchCancelFns.set(e,function(e){Promise.resolve().then(function(){return m.cancel(e)})});var m=new ts(this.transform(f.query).hasClientExports?this.localState.addExportedVariables(f.query,f.variables,f.context).then(p):p(f.variables));return m.cleanup(function(){var n,i;r.fetchCancelFns.delete(e),n=t.fetchPolicy,(i=t.nextFetchPolicy)&&(t.fetchPolicy="function"==typeof i?i.call(t,void 0===n?"cache-first":n):i)}),m},e.prototype.refetchQueries=function(e){var t=this,n=e.updateCache,r=e.include,i=e.optimistic,a=void 0!==i&&i,o=e.removeOptimistic,s=void 0===o?a?tr("refetchQueries"):void 0:o,l=e.onQueryUpdated,u=new Map;r&&this.getObservableQueries(r).forEach(function(e,n){u.set(n,{oq:e,lastDiff:t.getQuery(n).getDiff()})});var c=new Map;return n&&this.cache.batch({update:n,optimistic:a&&s||!1,removeOptimistic:s,onWatchUpdated:function(e,t,n){var r=e.watcher instanceof nf&&e.watcher.observableQuery;if(r){if(l){u.delete(r.queryId);var i=l(r,t,n);return!0===i&&(i=r.refetch()),!1!==i&&c.set(r,i),!1}null!==l&&u.set(r.queryId,{oq:r,lastDiff:n,diff:t})}}}),u.size&&u.forEach(function(e,n){var r,i=e.oq,a=e.lastDiff,o=e.diff;if(l){if(!o){var s=i.queryInfo;s.reset(),o=s.getDiff()}r=l(i,o,a)}l&&!0!==r||(r=i.refetch()),!1!==r&&c.set(i,r),n.indexOf("legacyOneTimeQuery")>=0&&t.stopQueryNoBroadcast(n)}),s&&this.cache.removeOptimistic(s),c},e.prototype.fetchQueryByPolicy=function(e,t,n){var r=this,i=t.query,a=t.variables,o=t.fetchPolicy,s=t.refetchWritePolicy,l=t.errorPolicy,u=t.returnPartialData,c=t.context,h=t.notifyOnNetworkStatusChange,f
20=e.networkStatus;e.init({document:i,variables:a,networkStatus:n});var p=function(){return e.getDiff(a)},g=function(t,n){void 0===n&&(n=e.networkStatus||d.loading);var o=t.result;!__DEV__||u||eU(o,{})||tT(t.missing);var s=function(e){return K.of(m({data:e,loading:ty(n),networkStatus:n},t.complete?null:{partial:!0}))};return o&&r.transform(i).hasForcedResolvers?r.localState.runResolvers({document:i,remoteResult:{data:o},context:c,variables:a,onlyRunForcedResolvers:!0}).then(function(e){return s(e.data||void 0)}):s(o)},v="no-cache"===o?0:n===d.refetch&&"merge"!==s?1:2,y=function(){return r.getResultsFromLink(e,v,{variables:a,context:c,fetchPolicy:o,errorPolicy:l})},b=h&&"number"==typeof f&&f!==n&&ty(n);switch(o){default:case"cache-first":var A=p();if(A.complete)return[g(A,e.markReady())];if(u||b)return[g(A),y()];return[y()];case"cache-and-network":var A=p();if(A.complete||u||b)return[g(A),y()];return[y()];case"cache-only":return[g(p(),e.markReady())];case"network-only":if(b)return[g(p()),y()];return[y()];case"no-cache":if(b)return[g(e.getDiff()),y()];return[y()];case"standby":return[]}},e.prototype.getQuery=function(e){return e&&!this.queries.has(e)&&this.queries.set(e,new nf(this,e)),this.queries.get(e)},e.prototype.prepareContext=function(e){void 0===e&&(e={});var t=this.localState.prepareContext(e);return m(m({},t),{clientAwareness:this.clientAwareness})},e}(),nv=!1;function ny(e,t){return ew(e,t,t.variables&&{variables:m(m({},e.variables),t.variables)})}var nb=function(){function e(e){var t=this;this.defaultOptions={},this.resetStoreCallbacks=[],this.clearStoreCallbacks=[];var n=e.uri,r=e.credentials,i=e.headers,a=e.cache,o=e.ssrMode,s=void 0!==o&&o,l=e.ssrForceFetchDelay,u=void 0===l?0:l,c=e.connectToDevTools,d=void 0===c?"object"==typeof window&&!window.__APOLLO_CLIENT__&&__DEV__:c,h=e.queryDeduplication,f=void 0===h||h,p=e.defaultOptions,m=e.assumeImmutableResults,g=e.resolvers,v=e.typeDefs,y=e.fragmentMatcher,b=e.name,A=e.version,E=e.link;if(E||(E=n?new eN({uri:n,credentials:r,headers:i}):eA.empty()),!a)throw __DEV__?new x("To initialize Apollo Client, you must specify a 'cache' property in the options object. \nFor more information, please visit: https://go.apollo.dev/c/docs"):new x(10);if(this.link=E,this.cache=a,this.disableNetworkFetches=s||u>0,this.queryDeduplication=f,this.defaultOptions=p||{},this.typeDefs=v,u&&setTimeout(function(){return t.disableNetworkFetches=!1},u),this.watchQuery=this.watchQuery.bind(this),this.query=this.query.bind(this),this.mutate=this.mutate.bind(this),this.resetStore=this.resetStore.bind(this),this.reFetchObservableQueries=this.reFetchObservableQueries.bind(this),d&&"object"==typeof window&&(window.__APOLLO_CLIENT__=this),!nv&&__DEV__&&(nv=!0,"undefined"!=typeof window&&window.document&&window.top===window.self&&!window.__APOLLO_DEVTOOLS_GLOBAL_HOOK__)){var w=window.navigator,S=w&&w.userAgent,_=void 0;"string"==typeof S&&(S.indexOf("Chrome/")>-1?_="https://chrome.google.com/webstore/detail/apollo-client-developer-t/jdkknkkbebbapilgoeccciglkfbmbnfm":S.indexOf("Firefox/")>-1&&(_="https://addons.mozilla.org/en-US/firefox/addon/apollo-developer-tools/")),_&&__DEV__&&T.log("Download the Apollo DevTools for a better development experience: "+_)}this.version="3.4.8",this.localState=new nu({cache:a,client:this,resolvers:g,fragmentMatcher:y}),this.queryManager=new ng({cache:this.cache,link:this.link,queryDeduplication:f,ssrMode:s,clientAwareness:{name:b,version:A},localState:this.localState,assumeImmutableResults:void 0!==m&&m,onBroadcast:d?function(){t.devToolsHookCb&&t.devToolsHookCb({action:{},state:{queries:t.queryManager.getQueryStore(),mutations:t.queryManager.mutationStore||{}},dataWithOptimisticResults:t.cache.extract(!0)})}:void 0})}return e.prototype.stop=function(){this.queryManager.stop()},e.prototype.watchQuery=function(e){return this.defaultOptions.watchQuery&&(e=ny(this.defaultOptions.watchQuery,e)),this.disableNetworkFetches&&("network-only"===e.fetchPolicy||"cache-and-network"===e.fetchPolicy)&&(e=m(m({},e),{fetchPolicy:"cache-first"})),this.queryManager.watchQuery(e)},e.prototype.query=function(e){return this.defaultOptions.query&&(e=ny(this.defaultOptions.query,e)),__DEV__?T("cache-and-network"!==e.fetchPolicy,"The cache-and-network fetchPolicy does not work with client.query, because client.query can only return a single result. Please use client.watchQuery to receive multiple results from the cache and the network, or consider using a different fetchPolicy, such as cache-first or network-only."):T("cache-and-network"!==e.fetchPolicy,11),this.disableNetworkFetches&&"network-only"===e.fetchPolicy&&(e=m(m({},e),{fetchPolicy:"cache-first"})),this.queryManager.query(e)},e.prototype.mutate=function(e){return this.defaultOptions.mutate&&(e=ny(this.defaultOptions.mutate,e)),this.queryManager.mutate(e)},e.prototype.subscribe=function(e){return this.queryManager.startGraphQLSubscription(e)},e.prototype.readQuery=function(e,t){return void 0===t&&(t=!1),this.cache.readQuery(e,t)},e.prototype.readFragment=function(e,t){return void 0===t&&(t=!1),this.cache.readFragment(e,t)},e.prototype.writeQuery=function(e){this.cache.writeQuery(e),this.queryManager.broadcastQueries()},e.prototype.writeFragment=function(e){this.cache.writeFragment(e),this.queryManager.broadcastQueries()},e.prototype.__actionHookForDevTools=function(e){this.devToolsHookCb=e},e.prototype.__requestRaw=function(e){return eE(this.link,e)},e.prototype.resetStore=function(){var e=this;return Promise.resolve().then(function(){return e.queryManager.clearStore()}).then(function(){return Promise.all(e.resetStoreCallbacks.map(function(e){return e()}))}).then(function(){return e.reFetchObservableQueries()})},e.prototype.clearStore=function(){var e=this;return Promise.resolve().then(function(){return e.queryManager.clearStore()}).then(function(){return Promise.all(e.clearStoreCallbacks.map(function(e){return e()}))})},e.prototype.onResetStore=function(e){var t=this;return this.resetStoreCallbacks.push(e),function(){t.resetStoreCallbacks=t.resetStoreCallbacks.filter(function(t){return t!==e})}},e.prototype.onClearStore=function(e){var t=this;return this.clearStoreCallbacks.push(e),function(){t.clearStoreCallbacks=t.clearStoreCallbacks.filter(function(t){return t!==e})}},e.prototype.reFetchObservableQueries=function(e){return this.queryManager.reFetchObservableQueries(e)},e.prototype.refetchQueries=function(e){var t=this.queryManager.refetchQueries(e),n=[],r=[];t.forEach(function(e,t){n.push(t),r.push(e)});var i=Promise.all(r);return i.queries=n,i.results=r,i.catch(function(e){__DEV__&&T.debug("In client.refetchQueries, Promise.all promise rejected with error "+e)}),i},e.prototype.getObservableQueries=function(e){return void 0===e&&(e="active"),this.queryManager.getObservableQueries(e)},e.prototype.extract=function(e){return this.cache.extract(e)},e.prototype.restore=function(e){return this.cache.restore(e)},e.prototype.addResolvers=function(e){this.localState.addResolvers(e)},e.prototype.setResolvers=function(e){this.localState.setResolvers(e)},e.prototype.getResolvers=function(){return this.localState.getResolvers()},e.prototype.setLocalStateFragmentMatcher=function(e){this.localState.setFragmentMatcher(e)},e.prototype.setLink=function(e){this.link=this.queryManager.link=e},e}(),nA=function(){function e(){this.getFragmentDoc=t9(W)}
20return e.prototype.batch=function(e){var t="string"==typeof e.optimistic?e.optimistic:!1===e.optimistic?null:void 0;this.performTransaction(e.update,t)},e.prototype.recordOptimisticTransaction=function(e,t){this.performTransaction(e,t)},e.prototype.transformDocument=function(e){return e},e.prototype.identify=function(e){},e.prototype.gc=function(){return[]},e.prototype.modify=function(e){return!1},e.prototype.transformForLink=function(e){return e},e.prototype.readQuery=function(e,t){return void 0===t&&(t=!!e.optimistic),this.read(m(m({},e),{rootId:e.id||"ROOT_QUERY",optimistic:t}))},e.prototype.readFragment=function(e,t){return void 0===t&&(t=!!e.optimistic),this.read(m(m({},e),{query:this.getFragmentDoc(e.fragment,e.fragmentName),rootId:e.id,optimistic:t}))},e.prototype.writeQuery=function(e){var t=e.id,n=e.data,r=g(e,["id","data"]);return this.write(Object.assign(r,{dataId:t||"ROOT_QUERY",result:n}))},e.prototype.writeFragment=function(e){var t=e.id,n=e.data,r=e.fragment,i=e.fragmentName,a=g(e,["id","data","fragment","fragmentName"]);return this.write(Object.assign(a,{query:this.getFragmentDoc(r,i),dataId:t,result:n}))},e}(),nE=function(e){function t(n,r,i,a){var o=e.call(this,n)||this;return o.message=n,o.path=r,o.query=i,o.variables=a,o.__proto__=t.prototype,o}return p(t,e),t}(Error);function nw(e){if(__DEV__){var t;(t=new Set([e])).forEach(function(e){$(e)&&(Object.isFrozen(e)||Object.freeze(e),Object.getOwnPropertyNames(e).forEach(function(n){$(e[n])&&t.add(e[n])}))})}return e}var nx=Object.prototype.hasOwnProperty,nT=/^[_a-z][_0-9a-z]*/i;function nS(e){var t=e.match(nT);return t?t[0]:e}function n_(e){return $(e)&&!J(e)&&!Array.isArray(e)}var nC=Object.create(null),nk=function(){return nC},nI=Object.create(null),nL=function(){function e(e,t){var n=this;this.policies=e,this.group=t,this.data=Object.create(null),this.rootIds=Object.create(null),this.refs=Object.create(null),this.getFieldValue=function(e,t){return nw(J(e)?n.get(e.__ref,t):e&&e[t])},this.canRead=function(e){return J(e)?n.has(e.__ref):"object"==typeof e},this.toReference=function(e,t){if("string"==typeof e)return X(e);if(J(e))return e;var r=n.policies.identify(e)[0];if(r){var i=X(r);return t&&n.merge(r,e),i}}}return e.prototype.toObject=function(){return m({},this.data)},e.prototype.has=function(e){return void 0!==this.lookup(e,!0)},e.prototype.get=function(e,t){if(this.group.depend(e,t),nx.call(this.data,e)){var n=this.data[e];if(n&&nx.call(n,t))return n[t]}return"__typename"===t&&nx.call(this.policies.rootTypenamesById,e)?this.policies.rootTypenamesById[e]:this instanceof nR?this.parent.get(e,t):void 0},e.prototype.lookup=function(e,t){return(t&&this.group.depend(e,"__exists"),nx.call(this.data,e))?this.data[e]:this instanceof nR?this.parent.lookup(e,t):this.policies.rootTypenamesById[e]?Object.create(null):void 0},e.prototype.merge=function(e,t){var n,r=this;J(e)&&(e=e.__ref),J(t)&&(t=t.__ref);var i="string"==typeof e?this.lookup(n=e):e,a="string"==typeof t?this.lookup(n=t):t;if(a){__DEV__?T("string"==typeof n,"store.merge expects a string ID"):T("string"==typeof n,2);var o=new tI(nN).merge(i,a);if(this.data[n]=o,o!==i&&(delete this.refs[n],this.group.caching)){var s=Object.create(null);i||(s.__exists=1),Object.keys(a).forEach(function(e){if(!i||i[e]!==o[e]){s[e]=1;var t=nS(e);t===e||r.policies.hasKeyArgs(o.__typename,t)||(s[t]=1),void 0!==o[e]||r instanceof nR||delete o[e]}}),s.__typename&&!(i&&i.__typename)&&this.policies.rootTypenamesById[n]===o.__typename&&delete s.__typename,Object.keys(s).forEach(function(e){return r.group.dirty(n,e)})}}},e.prototype.modify=function(e,t){var n=this,r=this.lookup(e);if(r){var i=Object.create(null),a=!1,o=!0,s={DELETE:nC,INVALIDATE:nI,isReference:J,toReference:this.toReference,canRead:this.canRead,readField:function(t,r){return n.policies.readField("string"==typeof t?{fieldName:t,from:r||X(e)}:t,{store:n})}};if(Object.keys(r).forEach(function(l){var u=nS(l),c=r[l];if(void 0!==c){var d="function"==typeof t?t:t[l]||t[u];if(d){var h=d===nk?nC:d(nw(c),m(m({},s),{fieldName:u,storeFieldName:l,storage:n.getStorage(e,l)}));h===nI?n.group.dirty(e,l):(h===nC&&(h=void 0),h!==c&&(i[l]=h,a=!0,c=h))}void 0!==c&&(o=!1)}}
20),a)return this.merge(e,i),o&&(this instanceof nR?this.data[e]=void 0:delete this.data[e],this.group.dirty(e,"__exists")),!0}return!1},e.prototype.delete=function(e,t,n){var r,i=this.lookup(e);if(i){var a=this.getFieldValue(i,"__typename"),o=t&&n?this.policies.getStoreFieldName({typename:a,fieldName:t,args:n}):t;return this.modify(e,o?((r={})[o]=nk,r):nk)}return!1},e.prototype.evict=function(e){var t=!1;return e.id&&(nx.call(this.data,e.id)&&(t=this.delete(e.id,e.fieldName,e.args)),this instanceof nR&&(t=this.parent.evict(e)||t),(e.fieldName||t)&&this.group.dirty(e.id,e.fieldName||"__exists")),t},e.prototype.clear=function(){this.replace(null)},e.prototype.extract=function(){var e=this,t=this.toObject(),n=[];return this.getRootIdSet().forEach(function(t){nx.call(e.policies.rootTypenamesById,t)||n.push(t)}),n.length&&(t.__META={extraRootIds:n.sort()}),t},e.prototype.replace=function(e){var t=this;if(Object.keys(this.data).forEach(function(n){e&&nx.call(e,n)||t.delete(n)}),e){var n=e.__META,r=g(e,["__META"]);Object.keys(r).forEach(function(e){t.merge(e,r[e])}),n&&n.extraRootIds.forEach(this.retain,this)}},e.prototype.retain=function(e){return this.rootIds[e]=(this.rootIds[e]||0)+1},e.prototype.release=function(e){if(this.rootIds[e]>0){var t=--this.rootIds[e];return t||delete this.rootIds[e],t}return 0},e.prototype.getRootIdSet=function(e){return void 0===e&&(e=new Set),Object.keys(this.rootIds).forEach(e.add,e),this instanceof nR?this.parent.getRootIdSet(e):Object.keys(this.policies.rootTypenamesById).forEach(e.add,e),e},e.prototype.gc=function(){var e=this,t=this.getRootIdSet(),n=this.toObject();t.forEach(function(r){nx.call(n,r)&&(Object.keys(e.findChildRefIds(r)).forEach(t.add,t),delete n[r])});var r=Object.keys(n);if(r.length){for(var i=this;i instanceof nR;)i=i.parent;r.forEach(function(e){return i.delete(e)})}return r},e.prototype.findChildRefIds=function(e){if(!nx.call(this.refs,e)){var t=this.refs[e]=Object.create(null),n=this.data[e];if(!n)return t;var r=new Set([n]);r.forEach(function(e){J(e)&&(t[e.__ref]=!0),$(e)&&Object.keys(e).forEach(function(t){var n=e[t];$(n)&&r.add(n)})})}return this.refs[e]},e.prototype.makeCacheKey=function(){return this.group.keyMaker.lookupArray(arguments)},e}(),nP=function(){function e(e,t){void 0===t&&(t=null),this.caching=e,this.parent=t,this.d=null,this.resetCaching()}return e.prototype.resetCaching=function(){this.d=this.caching?t5():null,this.keyMaker=new eW(eZ)}
20,e.prototype.depend=function(e,t){if(this.d){this.d(t+"#"+e);var n=nS(t);n!==t&&this.d(n+"#"+e),this.parent&&this.parent.depend(e,t)}},e.prototype.dirty=function(e,t){this.d&&this.d.dirty(t+"#"+e,"__exists"===t?"forget":"setDirty")},e}();function nO(e,t){nM(e)&&e.group.depend(t,"__exists")}s=function(e){function t(t){var n=t.policies,r=t.resultCaching,i=t.seed,a=e.call(this,n,new nP(void 0===r||r))||this;return a.stump=new nD(a),a.storageTrie=new eW(eZ),i&&a.replace(i),a}return p(t,e),t.prototype.addLayer=function(e,t){return this.stump.addLayer(e,t)},t.prototype.removeLayer=function(){return this},t.prototype.getStorage=function(){return this.storageTrie.lookupArray(arguments)},t}(o=nL||(nL={})),o.Root=s;var nR=function(e){function t(t,n,r,i){var a=e.call(this,n.policies,i)||this;return a.id=t,a.parent=n,a.replay=r,a.group=i,r(a),a}return p(t,e),t.prototype.addLayer=function(e,n){return new t(e,this,n,this.group)},t.prototype.removeLayer=function(e){var t=this,n=this.parent.removeLayer(e);return e===this.id?(this.group.caching&&Object.keys(this.data).forEach(function(e){var r=t.data[e],i=n.lookup(e);i?r?r!==i&&Object.keys(r).forEach(function(n){eU(r[n],i[n])||t.group.dirty(e,n)}
20):(t.group.dirty(e,"__exists"),Object.keys(i).forEach(function(n){t.group.dirty(e,n)})):t.delete(e)}),n):n===this.parent?this:n.addLayer(this.id,this.replay)},t.prototype.toObject=function(){return m(m({},this.parent.toObject()),this.data)},t.prototype.findChildRefIds=function(t){var n=this.parent.findChildRefIds(t);return nx.call(this.data,t)?m(m({},n),e.prototype.findChildRefIds.call(this,t)):n},t.prototype.getStorage=function(){for(var e=this.parent;e.parent;)e=e.parent;return e.getStorage.apply(e,arguments)},t}(nL),nD=function(e){function t(t){return e.call(this,"EntityStore.Stump",t,function(){},new nP(t.group.caching,t.group))||this}return p(t,e),t.prototype.removeLayer=function(){return this},t.prototype.merge=function(){return this.parent.merge.apply(this.parent,arguments)},t}(nR);function nN(e,t,n){var r=e[n],i=t[n];return eU(r,i)?r:i}function nM(e){return!!(e instanceof nL&&e.group.caching)}function nj(e,t){return new nE(e.message,t.path.slice(),t.query,t.variables)}function nF(e){return[e.selectionSet,e.objectOrReference,e.context,e.context.canonizeResults]}var nB=function(){function e(e){var t=this;this.knownResults=new(eZ?WeakMap:Map),this.config=m(m({},e),{addTypename:!1!==e.addTypename}),this.canon=e.canon||new eX,this.executeSelectionSet=t9(function(e){var n,r=e.context.canonizeResults,i=nF(e);i[3]=!r;var a=(n=t.executeSelectionSet).peek.apply(n,i);return a?r?m(m({},a),{result:t.canon.admit(a.result)}):a:(nO(e.context.store,e.enclosingRef.__ref),t.execSelectionSetImpl(e))},{max:this.config.resultCacheMaxSize,keyArgs:nF,makeCacheKey:function(e,t,n,r){if(nM(n.store))return n.store.makeCacheKey(e,J(t)?t.__ref:t,n.varString,r)}}),this.executeSubSelectedArray=t9(function(e){return nO(e.context.store,e.enclosingRef.__ref),t.execSubSelectedArrayImpl(e)},{max:this.config.resultCacheMaxSize,makeCacheKey:function(e){var t=e.field,n=e.array,r=e.context;if(nM(r.store))return r.store.makeCacheKey(t,n,r.varString)}})}return e.prototype.resetCanon=function(){this.canon=new eX},e.prototype.diffQueryAgainstStore=function(e){var t,n=e.store,r=e.query,i=e.rootId,a=e.variables,o=e.returnPartialData,s=e.canonizeResults,l=this.config.cache.policies;a=m(m({},em((t=ed(r),__DEV__?T(t&&"query"===t.operation,"Must contain a query definition."):T(t&&"query"===t.operation,53),t))),a);var u=X(void 0===i?"ROOT_QUERY":i),c=this.executeSelectionSet({selectionSet:ep(r).selectionSet,objectOrReference:u,enclosingRef:u,context:{store:n,query:r,policies:l,variables:a,varString:eJ(a),canonizeResults:void 0===s||s,fragmentMap:Z(ef(r)),path:[]}}),d=c.missing&&c.missing.length>0;if(d&&!(void 0===o||o))throw c.missing[0];return{result:c.result,missing:c.missing,complete:!d}},e.prototype.isFresh=function(e,t,n,r){if(nM(r.store)&&this.knownResults.get(e)===n){var i=this.executeSelectionSet.peek(n,t,r,this.canon.isKnown(e));if(i&&e===i.result)return!0}return!1},e.prototype.execSelectionSetImpl=function(e){var t=this,n=e.selectionSet,r=e.objectOrReference,i=e.enclosingRef,a=e.context;if(J(r)&&!a.policies.rootTypenamesById[r.__ref]&&!a.store.has(r.__ref))return{result:this.canon.empty,missing:[nj(__DEV__?new x("Dangling reference to missing "+r.__ref+" object"):new x(6),a)]};var o=a.variables,s=a.policies,l=a.store,u=[],c={result:null},d=l.getFieldValue(r,"__typename");function h(){return c.missing||(c.missing=[])}function f(e){var t;return e.missing&&(t=h()).push.apply(t,e.missing),e.result}this.config.addTypename&&"string"==typeof d&&!s.rootIdsByTypename[d]&&u.push({__typename:d});var p=new Set(n.selections);p.forEach(function(e){var n;if(te(e,o)){if(el(e)){var l=s.readField({fieldName:e.name.value,field:e,variables:a.variables,from:r},a),c=eo(e);a.path.push(c),void 0===l?e9.added(e)||h().push(nj(__DEV__?new x("Can't find field '"+e.name.value+"' on "+(J(r)?r.__ref+" object":"object "+JSON.stringify(r,null,2))):new x(7),a)):Array.isArray(l)?l=f(t.executeSubSelectedArray({field:e,array:l,enclosingRef:i,context:a})):e.selectionSet?null!=l&&(l=f(t.executeSelectionSet({selectionSet:e.selectionSet,objectOrReference:l,enclosingRef:J(l)?l:i,context:a}))):a.canonizeResults&&(l=t.canon.pass(l)),void 0!==l&&u.push(((n={}
20)[c]=l,n)),T(a.path.pop()===c)}else{var m=Y(e,a.fragmentMap);m&&s.fragmentMatches(m,d)&&m.selectionSet.selections.forEach(p.add,p)}}});var m=tC(u);return c.result=a.canonizeResults?this.canon.admit(m):nw(m),this.knownResults.set(c.result,n),c},e.prototype.execSubSelectedArrayImpl=function(e){var t,n=this,r=e.field,i=e.array,a=e.enclosingRef,o=e.context;function s(e,n){return e.missing&&(t=t||[]).push.apply(t,e.missing),T(o.path.pop()===n),e.result}return r.selectionSet&&(i=i.filter(o.store.canRead)),i=i.map(function(e,t){return null===e?null:(o.path.push(t),Array.isArray(e))?s(n.executeSubSelectedArray({field:r,array:e,enclosingRef:a,context:o}),t):r.selectionSet?s(n.executeSelectionSet({selectionSet:r.selectionSet,objectOrReference:e,enclosingRef:J(e)?e:a,context:o}),t):(__DEV__&&function(e,t,n){if(!t.selectionSet){var r=new Set([n]);r.forEach(function(n){$(n)&&(__DEV__?T(!J(n),"Missing selection set for object of type "+(J(n)?e.get(n.__ref,"__typename"):n&&n.__typename)+" returned for query field "+t.name.value):T(!J(n),8),Object.values(n).forEach(r.add,r))})}}(o.store,r,e),T(o.path.pop()===t),e)}),{result:o.canonizeResults?this.canon.admit(i):i,missing:t}},e}(),nU=function(){function e(e,t){this.cache=e,this.reader=t}return e.prototype.writeToStore=function(e,t){var n=this,r=t.query,i=t.result,a=t.dataId,o=t.variables,s=t.overwrite,l=ed(r),u=new tI;o=m(m({},em(l)),o);var c={store:e,written:Object.create(null),merge:function(e,t){return u.merge(e,t)},variables:o,varString:eJ(o),fragmentMap:Z(ef(r)),overwrite:!!s,incomingById:new Map,clientOnly:!1},d=this.processSelectionSet({result:i||Object.create(null),dataId:a,selectionSet:l.selectionSet,mergeTree:{map:new Map},context:c});if(!J(d))throw __DEV__?new x("Could not identify object "+JSON.stringify(i)):new x(9);return c.incomingById.forEach(function(t,r){var i=t.fields,a=t.mergeTree,o=t.selections,s=X(r);if(a&&a.map.size){var l=n.applyMerges(a,s,i,c);if(J(l))return;i=l}if(__DEV__&&!c.overwrite){var u=new Set;o.forEach(function(e){el(e)&&e.selectionSet&&u.add(e.name.value)});var d=function(e){var t=a&&a.map.get(e);return!!(t&&t.info&&t.info.merge)};
20Object.keys(i).forEach(function(e){u.has(nS(e))&&!d(e)&&function(e,t,n,r){var i=function(e){var t=r.getFieldValue(e,n);return"object"==typeof t&&t},a=i(e);if(a){var o=i(t);if(!(!o||J(a)||eU(a,o)||Object.keys(a).every(function(e){return void 0!==r.getFieldValue(o,e)}))){var s=r.getFieldValue(e,"__typename")||r.getFieldValue(t,"__typename"),l=nS(n),u=s+"."+l;if(!nH.has(u)){nH.add(u);var c=[];Array.isArray(a)||Array.isArray(o)||[a,o].forEach(function(e){var t=r.getFieldValue(e,"__typename");"string"!=typeof t||c.includes(t)||c.push(t)}),__DEV__&&T.warn("Cache data may be lost when replacing the "+l+" field of a "+s+" object.\n\nTo address this problem (which is not a bug in Apollo Client), "+(c.length?"either ensure all objects of type "+c.join(" and ")+" have an ID or a custom merge function, or ":"")+"define a custom merge function for the "+u+" field, so InMemoryCache can safely merge these objects:\n\n  existing: "+JSON.stringify(a).slice(0,1e3)+"\n  incoming: "+JSON.stringify(o).slice(0,1e3)+"\n\nFor more information about these options, please refer to the documentation:\n\n  * Ensuring entity objects have IDs: https://go.apollo.dev/c/generating-unique-identifiers\n  * Defining custom merge functions: https://go.apollo.dev/c/merging-non-normalized-objects\n")}}}}(s,i,e,c.store)})}e.merge(r,i)}),e.retain(d.__ref),d},e.prototype.processSelectionSet=function(e){var t=this,n=e.dataId,r=e.result,i=e.selectionSet,a=e.context,o=e.mergeTree,s=this.cache.policies,l=s.identify(r,i,a.fragmentMap),u=l[0],c=l[1];if("string"==typeof(n=n||u)){var d=a.written[n]||(a.written[n]=[]),h=X(n);if(d.indexOf(i)>=0||(d.push(i),this.reader&&this.reader.isFresh(r,h,i,a)))return h}var f=Object.create(null);c&&(f=a.merge(f,c));var p=n&&s.rootTypenamesById[n]||es(r,i,a.fragmentMap)||n&&a.store.get(n,"__typename");"string"==typeof p&&(f.__typename=p);var g=new Set(i.selections);if(g.forEach(function(e){var n;if(te(e,a.variables)){if(el(e)){var i=r[eo(e)],l=a.clientOnly;if(a.clientOnly=l||!!(e.directives&&e.directives.some(function(e){return"client"===e.name.value})),void 0!==i){var u=s.getStoreFieldName({typename:p,fieldName:e.name.value,field:e,variables:a.variables}),c=nz(o,u),d=t.processFieldValue(i,e,a,c),h=void 0;if(e.selectionSet&&!(h=a.store.getFieldValue(d,"__typename"))&&J(d)){var m=a.incomingById.get(d.__ref);h=m&&m.fields.__typename}var v=s.getMergeFunction(p,e.name.value,h);v?c.info={field:e,typename:p,merge:v}:nQ(o,u),f=a.merge(f,((n={})[u]=d,n))}else!a.clientOnly&&!e9.added(e)&&__DEV__&&T.error(("Missing field '"+eo(e)+"' while writing result "+JSON.stringify(r,null,2)).substring(0,1e3));a.clientOnly=l}else{var y=Y(e,a.fragmentMap);y&&s.fragmentMatches(y,p,r,a.variables)&&y.selectionSet.selections.forEach(g.add,g)}}}),"string"==typeof n){var v=a.incomingById.get(n);return v?(v.fields=a.merge(v.fields,f),v.mergeTree=function e(t,n){if(t===n||!n||nq(n))return t;if(!t||nq(t))return n;var r=t.info&&n.info?m(m({},t.info),n.info):t.info||n.info,i=t.map.size&&n.map.size,a={info:r,map:i?new Map:t.map.size?t.map:n.map};if(i){var o=new Set(n.map.keys());t.map.forEach(function(t,r){a.map.set(r,e(t,n.map.get(r))),o.delete(r)}),o.forEach(function(r){a.map.set(r,e(n.map.get(r),t.map.get(r)))})}return a}(v.mergeTree,o),v.selections.forEach(g.add,g),v.selections=g):a.incomingById.set(n,{fields:f,mergeTree:nq(o)?void 0:o,selections:g}),X(n)}return f},e.prototype.processFieldValue=function(e,t,n,r){var i=this;return t.selectionSet&&null!==e?Array.isArray(e)?e.map(function(e,a){var o=i.processFieldValue(e,t,n,nz(r,a));return nQ(r,a),o}):this.processSelectionSet({result:e,selectionSet:t.selectionSet,context:n,mergeTree:r}):__DEV__?tA(e):e},e.prototype.applyMerges=function(e,t,n,r,i){var a=this;if(e.map.size&&!J(n)){var o,s,l=!Array.isArray(n)&&(J(t)||n_(t))?t:void 0,u=n;l&&!i&&(i=[J(l)?l.__ref:l]);var c=function(e,t){return Array.isArray(e)?"number"==typeof t?e[t]:void 0:r.store.getFieldValue(e,String(t))};e.map.forEach(function(e,t){var n=c(l,t),o=c(u,t);if(void 0!==o){i&&i.push(t);var d=a.applyMerges(e,n,o,r,i);d!==o&&(s=s||new Map).set(t,d),i&&T(i.pop()===t)}}),s&&(n=Array.isArray(u)?u.slice(0):m({}
20,u),s.forEach(function(e,t){n[t]=e}))}return e.info?this.cache.policies.runMergeFunction(t,n,e.info,r,i&&(o=r.store).getStorage.apply(o,i)):n},e}(),nV=[];function nz(e,t){var n=e.map;return n.has(t)||n.set(t,nV.pop()||{map:new Map}),n.get(t)}function nq(e){return!e||!(e.info||e.map.size)}function nQ(e,t){var n=e.map,r=n.get(t);r&&nq(r)&&(nV.push(r),n.delete(t))}var nH=new Set;function nG(e){var t=tr("stringifyForDisplay");return JSON.stringify(e,function(e,n){return void 0===n?t:n}).split(JSON.stringify(t)).join("<undefined>")}function nK(e){return void 0!==e.args?e.args:e.field?ea(e.field,e.variables):null}en.setStringify(eJ);var n$=function(e,t){var n=e.__typename,r=e.id,i=e._id;if("string"==typeof n&&(t&&(t.keyObject=void 0!==r?{id:r}:void 0!==i?{_id:i}:void 0),void 0===r&&(r=i),void 0!==r))return n+":"+("number"==typeof r||"string"==typeof r?r:JSON.stringify(r))},nW=function(){},nZ=function(e,t){return t.fieldName},nY=function(e,t,n){return(0,n.mergeObjects)(e,t)},nX=function(e,t){return t},nJ=function(){function e(e){this.config=e,this.typePolicies=Object.create(null),this.toBeAdded=Object.create(null),this.supertypeMap=new Map,this.fuzzySubtypes=new Map,this.rootIdsByTypename=Object.create(null),this.rootTypenamesById=Object.create(null),this.usingPossibleTypes=!1,this.config=m({dataIdFromObject:n$},e),this.cache=this.config.cache,this.setRootTypename("Query"),this.setRootTypename("Mutation"),this.setRootTypename("Subscription"),e.possibleTypes&&this.addPossibleTypes(e.possibleTypes),e.typePolicies&&this.addTypePolicies(e.typePolicies)}return e.prototype.identify=function(e,t,n){var r,i=t&&n?es(e,t,n):e.__typename;if(i===this.rootTypenamesById.ROOT_QUERY)return["ROOT_QUERY"];for(var a={typename:i,selectionSet:t,fragmentMap:n},o=i&&this.getTypePolicy(i),s=o&&o.keyFn||this.config.dataIdFromObject;s;){var l=s(e,a);if(Array.isArray(l))s=n3(l);else{r=l;break}}return r=r?String(r):void 0,a.keyObject?[r,a.keyObject]:[r]},e.prototype.addTypePolicies=function(e){var t=this;Object.keys(e).forEach(function(n){var r=e[n],i=r.queryType,a=r.mutationType,o=r.subscriptionType,s=g(r,["queryType","mutationType","subscriptionType"]);i&&t.setRootTypename("Query",n),a&&t.setRootTypename("Mutation",n),o&&t.setRootTypename("Subscription",n),nx.call(t.toBeAdded,n)?t.toBeAdded[n].push(s):t.toBeAdded[n]=[s]})},e.prototype.updateTypePolicy=function(e,t){var n=this,r=this.getTypePolicy(e),i=t.keyFields,a=t.fields;function o(e,t){e.merge="function"==typeof t?t:!0===t?nY:!1===t?nX:e.merge}o(r,t.merge),r.keyFn=!1===i?nW:Array.isArray(i)?n3(i):"function"==typeof i?i:r.keyFn,a&&Object.keys(a).forEach(function(t){var r=n.getFieldPolicy(e,t,!0),i=a[t];if("function"==typeof i)r.read=i;else{var s=i.keyArgs,l=i.read,u=i.merge;r.keyFn=!1===s?nZ:Array.isArray(s)?n2(s):"function"==typeof s?s:r.keyFn,"function"==typeof l&&(r.read=l),o(r,u)}r.read&&r.merge&&(r.keyFn=r.keyFn||nZ)})},e.prototype.setRootTypename=function(e,t){void 0===t&&(t=e);var n="ROOT_"+e.toUpperCase(),r=this.rootTypenamesById[n];t!==r&&(__DEV__?T(!r||r===e,"Cannot change root "+e+" __typename more than once"):T(!r||r===e,3),r&&delete this.rootIdsByTypename[r],this.rootIdsByTypename[t]=n,this.rootTypenamesById[n]=t)},e.prototype.addPossibleTypes=function(e){var t=this;this.usingPossibleTypes=!0,Object.keys(e).forEach(function(n){t.getSupertypeSet(n,!0),e[n].forEach(function(e){t.getSupertypeSet(e,!0).add(n);var r=e.match(nT);r&&r[0]===e||t.fuzzySubtypes.set(e,new RegExp(e))})})},e.prototype.getTypePolicy=function(e){var t=this;if(!nx.call(this.typePolicies,e)){var n=this.typePolicies[e]=Object.create(null);n.fields=Object.create(null);var r=this.supertypeMap.get(e);r&&r.size&&r.forEach(function(e){var r=t.getTypePolicy(e),i=r.fields;Object.assign(n,g(r,["fields"])),Object.assign(n.fields,i)})}var i=this.toBeAdded[e];return i&&i.length&&i.splice(0).forEach(function(n){t.updateTypePolicy(e,n)}),this.typePolicies[e]},e.prototype.getFieldPolicy=function(e,t,n){if(e){var r=this.getTypePolicy(e).fields;return r[t]||n&&(r[t]=Object.create(null))}},e.prototype.getSupertypeSet=function(e,t){var n=this.supertypeMap.get(e);return!n&&t&&this.supertypeMap.set(e,n=new Set),n},e.prototype.fragmentMatches=function(e,t,n,r){var i=this;if(!e.typeCondition)return!0;
20if(!t)return!1;var a=e.typeCondition.name.value;if(t===a)return!0;if(this.usingPossibleTypes&&this.supertypeMap.has(a))for(var o=this.getSupertypeSet(t,!0),s=[o],l=function(e){var t=i.getSupertypeSet(e,!1);t&&t.size&&0>s.indexOf(t)&&s.push(t)},u=!!(n&&this.fuzzySubtypes.size),c=!1,d=0;d<s.length;++d){var h=s[d];if(h.has(a))return o.has(a)||(c&&__DEV__&&T.warn("Inferring subtype "+t+" of supertype "+a),o.add(a)),!0;h.forEach(l),u&&d===s.length-1&&function e(t,n,r){return!!$(n)&&(Array.isArray(n)?n.every(function(n){return e(t,n,r)}):t.selections.every(function(t){if(el(t)&&te(t,r)){var i=eo(t);return nx.call(n,i)&&(!t.selectionSet||e(t.selectionSet,n[i],r))}return!0}))}(e.selectionSet,n,r)&&(u=!1,c=!0,this.fuzzySubtypes.forEach(function(e,n){var r=t.match(e);r&&r[0]===t&&l(n)}))}return!1},e.prototype.hasKeyArgs=function(e,t){var n=this.getFieldPolicy(e,t,!1);return!!(n&&n.keyFn)},e.prototype.getStoreFieldName=function(e){var t,n,r,i,a,o=e.typename,s=e.fieldName,l=this.getFieldPolicy(o,s,!1),u=l&&l.keyFn;if(u&&o)for(var c={typename:o,fieldName:s,field:e.field||null,variables:e.variables},d=nK(e);u;){var h=u(d,c);if(Array.isArray(h))u=n2(h);else{a=h||s;break}}return void 0===a&&(a=e.field?(t=e.field,n=e.variables,r=null,t.directives&&(r={},t.directives.forEach(function(e){r[e.name.value]={},e.arguments&&e.arguments.forEach(function(t){var i=t.name,a=t.value;return ee(r[e.name.value],i,a,n)})})),i=null,t.arguments&&t.arguments.length&&(i={},t.arguments.forEach(function(e){var t=e.name,r=e.value;return ee(i,t,r,n)})),en(t.name.value,i,r)):en(s,nK(e))),!1===a?s:s===nS(a)?a:s+":"+a},e.prototype.readField=function(e,t){var n=e.from;if(n&&(e.field||e.fieldName)){if(void 0===e.typename){var r=t.store.getFieldValue(n,"__typename");r&&(e.typename=r)}var i=this.getStoreFieldName(e),a=nS(i),o=t.store.getFieldValue(n,i),s=this.getFieldPolicy(e.typename,a,!1),l=s&&s.read;if(l){var u=n0(this,n,e,t,t.store.getStorage(J(n)?n.__ref:n,i));return na.withValue(this.cache,l,[o,u])}return o}},e.prototype.getMergeFunction=function(e,t,n){var r=this.getFieldPolicy(e,t,!1),i=r&&r.merge;return!i&&n&&(i=(r=this.getTypePolicy(n))&&r.merge),i},e.prototype.runMergeFunction=function(e,t,n,r,i){var a=n.field,o=n.typename,s=n.merge;return s===nY?n1(r.store)(e,t):s===nX?t:(r.overwrite&&(e=void 0),s(e,t,n0(this,void 0,{typename:o,fieldName:a.name.value,field:a,variables:r.variables},r,i||Object.create(null))))},e}();function n0(e,t,n,r,i){var a=e.getStoreFieldName(n),o=nS(a),s=n.variables||r.variables,l=r.store,u=l.toReference,c=l.canRead;return{args:nK(n),field:n.field||null,fieldName:o,storeFieldName:a,variables:s,isReference:J,toReference:u,storage:i,cache:e.cache,canRead:c,readField:function(n,i){var a;if("string"==typeof n)a={fieldName:n,from:arguments.length>1?i:t};else if($(n))a=m({},n),nx.call(n,"from")||(a.from=t);else{__DEV__&&T.warn("Unexpected readField arguments: "+nG(Array.from(arguments)));return}return __DEV__&&void 0===a.from&&__DEV__&&T.warn("Undefined 'from' passed to readField with arguments "+nG(Array.from(arguments))),void 0===a.variables&&(a.variables=s),e.readField(a,r)},mergeObjects:n1(r.store)}}function n1(e){return function(t,n){if(Array.isArray(t)||Array.isArray(n))throw __DEV__?new x("Cannot automatically merge arrays"):new x(4);if($(t)&&$(n)){var r=e.getFieldValue(t,"__typename"),i=e.getFieldValue(n,"__typename");if(r&&i&&r!==i)return n;if(J(t)&&n_(n))return e.merge(t.__ref,n),t;if(n_(t)&&J(n))return e.merge(t,n.__ref),n;if(n_(t)&&n_(n))return m(m({},t),n)}return n}}function n2(e){return function(t,n){return t?n.fieldName+":"+JSON.stringify(n4(t,e,!1)):n.fieldName}}function n3(e){var t=new eW(eZ);return function(n,r){if(r.selectionSet&&r.fragmentMap){var i,a=t.lookupArray([r.selectionSet,r.fragmentMap]);i=a.aliasMap||(a.aliasMap=function e(t,n){var r=Object.create(null),i=new Set([t]);return i.forEach(function(t){t.selections.forEach(function(t){if(el(t)){if(t.alias){var a=t.alias.value,o=t.name.value;o!==a&&((r.aliases||(r.aliases=Object.create(null)))[o]=a)}t.selectionSet&&((r.subsets||(r.subsets=Object.create(null)))[t.name.value]=e(t.selectionSet,n))}else{var s=Y(t,n);s&&i.add(s.selectionSet)}})}),r}(r.selectionSet,r.fragmentMap))}var o=r.keyObject=n4(n,e,!0,i);return r.typename+":"+JSON.stringify(o)}}function n4(e,t,n,r){var i,a,o=Object.create(null);return t.forEach(function(t){if(Array.isArray(t)){if("string"==typeof a&&"string"==typeof i){var s=r&&r.subsets,l=s&&s[a];o[a]=n4(e[i],t,n,l)}}else{var u=r&&r.aliases,c=u&&u[t]||t;
20nx.call(e,c)?o[a=t]=e[i=c]:(__DEV__?T(!n,"Missing field '"+c+"' while computing key fields"):T(!n,5),i=a=void 0)}}),o}var n5={dataIdFromObject:n$,addTypename:!0,resultCaching:!0,typePolicies:{}},n8=function(e){function t(t){void 0===t&&(t={});var n=e.call(this)||this;return n.watches=new Set,n.typenameDocumentCache=new Map,n.makeVar=nl,n.txCount=0,n.config=m(m({},n5),t),n.addTypename=!!n.config.addTypename,n.policies=new nJ({cache:n,dataIdFromObject:n.config.dataIdFromObject,possibleTypes:n.config.possibleTypes,typePolicies:n.config.typePolicies}),n.init(),n}return p(t,e),t.prototype.init=function(){var e=this.data=new nL.Root({policies:this.policies,resultCaching:this.config.resultCaching});this.optimisticData=e.stump,this.resetResultCache()},t.prototype.resetResultCache=function(e){var t=this,n=this.storeReader;this.storeWriter=new nU(this,this.storeReader=new nB({cache:this,addTypename:this.addTypename,resultCacheMaxSize:this.config.resultCacheMaxSize,canon:e?void 0:n&&n.canon})),this.maybeBroadcastWatch=t9(function(e,n){return t.broadcastWatch(e,n)},{max:this.config.resultCacheMaxSize,makeCacheKey:function(e){var n=e.optimistic?t.optimisticData:t.data;if(nM(n)){var r=e.optimistic,i=e.rootId,a=e.variables;return n.makeCacheKey(e.query,e.callback,eJ({optimistic:r,rootId:i,variables:a}))}}}),new Set([this.data.group,this.optimisticData.group]).forEach(function(e){return e.resetCaching()})},t.prototype.restore=function(e){return this.init(),e&&this.data.replace(e),this},t.prototype.extract=function(e){return void 0===e&&(e=!1),(e?this.optimisticData:this.data).extract()},t.prototype.read=function(e){var t=e.returnPartialData;try{return this.storeReader.diffQueryAgainstStore(m(m({},e),{store:e.optimistic?this.optimisticData:this.data,config:this.config,returnPartialData:void 0!==t&&t})).result||null}catch(e){if(e instanceof nE)return null;throw e}},t.prototype.write=function(e){try{return++this.txCount,this.storeWriter.writeToStore(this.data,e)}finally{--this.txCount||!1===e.broadcast||this.broadcastWatches()}},t.prototype.modify=function(e){if(nx.call(e,"id")&&!e.id)return!1;var t=e.optimistic?this.optimisticData:this.data;try{return++this.txCount,t.modify(e.id||"ROOT_QUERY",e.fields)}finally{--this.txCount||!1===e.broadcast||this.broadcastWatches()}},t.prototype.diff=function(e){return this.storeReader.diffQueryAgainstStore(m(m({},e),{store:e.optimistic?this.optimisticData:this.data,rootId:e.id||"ROOT_QUERY",config:this.config}))},t.prototype.watch=function(e){var t=this;return this.watches.size||function(e){ns(e).vars.forEach(function(t){return t.attachCache(e)})}(this),this.watches.add(e),e.immediate&&this.maybeBroadcastWatch(e),function(){t.watches.delete(e)&&!t.watches.size&&function(e){ns(e).vars.forEach(function(t){return t.forgetCache(e)})}(t),t.maybeBroadcastWatch.forget(e)}},t.prototype.gc=function(e){eJ.reset();var t=this.optimisticData.gc();return e&&!this.txCount&&(e.resetResultCache?this.resetResultCache(e.resetResultIdentities):e.resetResultIdentities&&this.storeReader.resetCanon()),t},t.prototype.retain=function(e,t){return(t?this.optimisticData:this.data).retain(e)},t.prototype.release=function(e,t){return(t?this.optimisticData:this.data).release(e)},t.prototype.identify=function(e){return J(e)?e.__ref:this.policies.identify(e)[0]},t.prototype.evict=function(e){if(!e.id){if(nx.call(e,"id"))return!1;e=m(m({},e),{id:"ROOT_QUERY"})}try{return++this.txCount,this.optimisticData.evict(e)}finally{--this.txCount||!1===e.broadcast||this.broadcastWatches()}},t.prototype.reset=function(){return this.init(),this.broadcastWatches(),eJ.reset(),Promise.resolve()},t.prototype.removeOptimistic=function(e){var t=this.optimisticData.removeLayer(e);t!==this.optimisticData&&(this.optimisticData=t,this.broadcastWatches())},t.prototype.batch=function(e){var t=this,n=e.update,r=e.optimistic,i=void 0===r||r,a=e.removeOptimistic,o=e.onWatchUpdated,s=function(e){var r=t.data,i=t.optimisticData;++t.txCount,e&&(t.data=t.optimisticData=e);try{n(t)}finally{--t.txCount,t.data=r,t.optimisticData=i}},l=new Set;o&&!this.txCount&&this.broadcastWatches(m(m({},e),{onWatchUpdated:function(e){return l.add(e),!1}})),"string"==typeof i?this.optimisticData=this.optimisticData.addLayer(i,s):!1===i?s(this.data):s(),"string"==typeof a&&(this.optimisticData=this.optimisticData.removeLayer(a)),o&&l.size?(this.broadcastWatches(m(m({},e),{onWatchUpdated:function(e,t){var n=o.call(this,e,t);return!1!==n&&l.delete(e),n}})),l.size&&l.forEach(function(e){return t.maybeBroadcastWatch.dirty(e)})):this.broadcastWatches(e)},t.prototype.performTransaction=function(e,t){return this.batch({update:e,optimistic:t||null!==t})},t.prototype.transformDocument=function(e){if(this.addTypename){var t=this.t
20ypenameDocumentCache.get(e);return t||(t=e9(e),this.typenameDocumentCache.set(e,t),this.typenameDocumentCache.set(t,t)),t}return e},t.prototype.broadcastWatches=function(e){var t=this;this.txCount||this.watches.forEach(function(n){return t.maybeBroadcastWatch(n,e)})},t.prototype.broadcastWatch=function(e,t){var n=e.lastDiff,r=this.diff({query:e.query,variables:e.variables,optimistic:e.optimistic});(!t||(e.optimistic&&"string"==typeof t.optimistic&&(r.fromOptimisticTransaction=!0),!t.onWatchUpdated||!1!==t.onWatchUpdated.call(this,e,r,n)))&&(n&&eU(n.result,r.result)||e.callback(e.lastDiff=r,n))},t}(nA),n6=eA.from,n9=n(5980),n7=n(9989),re=new Map,rt=new Map,rn=!0,rr=!1;function ri(e){return e.replace(/[\s,]+/g," ").trim()}function ra(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];"string"==typeof e&&(e=[e]);var r=e[0];return t.forEach(function(t,n){t&&"Document"===t.kind?r+=t.loc.source.body:r+=t,r+=e[n+1]}),function(e){var t=ri(e);if(!re.has(t)){var n,r,i,a,o,s=(0,ex.Qc)(e,{experimentalFragmentVariables:rr,allowLegacyFragmentVariables:rr});if(!s||"Document"!==s.kind)throw Error("Not a valid GraphQL document.");re.set(t,(n=new Set,r=[],s.definitions.forEach(function(e){if("FragmentDefinition"===e.kind){var t,i=e.name.value,a=ri((t=e.loc).source.body.substring(t.start,t.end)),o=rt.get(i);o&&!o.has(a)?rn&&console.warn("Warning: fragment with name "+i+" already exists.\ngraphql-tag enforces all fragment names across your application to be unique; read more about\nthis in the docs: http://dev.apollodata.com/core/fragments.html#unique-names"):o||rt.set(i,o=new Set),o.add(a),n.has(a)||(n.add(a),r.push(e))}else r.push(e)}),i=m(m({},s),{definitions:r}),(a=new Set(i.definitions)).forEach(function(e){e.loc&&delete e.loc,Object.keys(e).forEach(function(t){var n=e[t];n&&"object"==typeof n&&a.add(n)})}),(o=i.loc)&&(delete o.startToken,delete o.endToken),i))}return re.get(t)}(r)}var ro={gql:ra,resetCaches:function(){re.clear(),rt.clear()},disableFragmentWarnings:function(){rn=!1},enableExperimentalFragmentVariables:function(){rr=!0},disableExperimentalFragmentVariables:function(){rr=!1}};function rs(e){return new eA(function(t,n){return new K(function(r){var i,a,o;try{i=n(t).subscribe({next:function(i){if(i.errors&&(o=e({graphQLErrors:i.errors,response:i,operation:t,forward:n}))){a=o.subscribe({next:r.next.bind(r),error:r.error.bind(r),complete:r.complete.bind(r)});return}r.next(i)},error:function(i){if(o=e({operation:t,networkError:i,graphQLErrors:i&&i.result&&i.result.errors,forward:n})){a=o.subscribe({next:r.next.bind(r),error:r.error.bind(r),complete:r.complete.bind(r)});return}r.error(i)},complete:function(){o||r.complete.bind(r)()}})}catch(i){e({networkError:i,operation:t,forward:n}),r.error(i)}return function(){i&&i.unsubscribe(),a&&i.unsubscribe()}})})}function rl(){let e=r(["\n  fragment PageContent on Page {\n    slug\n    pageContent {\n      updatedAt\n      blocsData\n      model {\n        id\n        pagebuilder\n        type\n        contentType\n        attributes {\n          locationZone\n        }\n      }\n      data {\n        locationZoneIds\n      }\n    }\n    seo {\n      description\n      keywords\n      title\n    }\n    canonical\n    withoutHeaderFooter\n    doNotIndex\n    doNotIndexGoogle\n    doNotAmp\n  }\n"]);return rl=function(){return e},e}function ru(){let e=r(["\n          query DefaultZoneType {\n            DefaultZoneType {\n              id\n            }\n          }\n        "]);return ru=function(){return e},e}function rc(){let e=r(["\n          query GetSecureStreamToken($streamId: String!, $timestamp: String!) {\n            GetSecureStreamToken(streamId: $streamId, timestamp: $timestamp) {\n              media\n              dateSecured\n            }\n          }\n        "]);return rc=function(){return e},e}function rd(){let e=r(["\n          query Category($id: String!) {\n            Category(id: $id) {\n              slug\n              currentPageId\n              titre\n              parentId\n            }\n          }\n        "]);return rd=function(){return e},e}function rh(){let e=r(["\n          query FooterRadiosInfo {\n            FooterRadiosInfo {\n              primaryHost\n              radioLogo\n            }\n          }\n        "]);return rh=function(){return e},e}function rf(){let e=r(["\n            query getContent($props: ContentQuery!) {\n              getContent(props: $props) {\n                items {\n                  ","\n                  ","\n                }\n                seeMoreSlug\n                pagination {\n                  total\n                  from\n                }\n              }\n            }\n          "]);return rf=function(){return e},e}function rp(){let e=r(["\n          query Page($slug: String!) {\n            Page(slug: $slug) {\n              id\n              name\n              categoryId\n              publishedDate\n              previewUrl\n              createdBy\n              category {\n                id\n                titre\n                slug\n              }\n              pageData {\n                tags\n                locationZoneIds\n              }\n              ...PageContent\n            }\n          }\n          ","\n        "]);return rp=function(){return e},e}function rm(){let e=r(["\n          query PageFor($pageName: String!, $zone: String) {\n            PageFor(pageName: $pageName, zone: $zone) {\n              id\n              name\n              createdBy\n              category {\n                id\n                titre\n                slug\n              }\n              pageData {\n                tags\n                locationZoneIds\n                event {\n                  city\n                  department\n                }\n              }\n              ...PageContent\n            }\n          }\n          ","\n        "]);return rm=function(){return e},e}function rg(){let e=r(["\n          query PageForPreview($pageId: String!, $version: String!) {\n            PageForPreview(pageId: $pageId, version: $version) {\n              name\n              publishedDate\n              pageData {\n                event {\n                  city\n                  startDate\n                  endDate\n                  description\n                }\n              }\n              previewUrl\n              ...PageContent\n            }\n          }\n          ","\n        "]);return rg=function(){return e},e}function rv(){let e=r(["\n            query","\n          "]);return rv=function(){return e},e}function ry(){let e=r(["\n          query getPageCategories($id: String!) {\n            getPageCategories(id: $
20id) {\n              categories {\n                slug\n                currentPageId\n                titre\n                parentId\n              }\n            }\n          }\n        "]);return ry=function(){return e},e}function rb(){let e=r(["\n          mutation PageVisit($slug: String!) {\n            PageVisit(slug: $slug) {\n              slug\n            }\n          }\n        "]);return rb=function(){return e},e}function rA(){let e=r(["\n          query PageEditLink($slug: String!) {\n            PageEditLink(slug: $slug) {\n              editLink\n              profileForPage\n            }\n          }\n        "]);return rA=function(){return e},e}function rE(){let e=r(["\n          query Programmation($props: ProgrammationQuery!) {\n            Programmation(props: $props) {\n              programmation {\n                label\n                subItems {\n                  slug\n                  title\n                  chapo\n                  imagePrincipale {\n                    medias {\n                      format\n                      url\n                    }\n                    specificAttributes {\n                      alternativeText\n                    }\n                  }\n                  startHours\n                  startMinutes\n                  endHours\n                  endMinutes\n                  animatorsNames\n                }\n              }\n            }\n          }\n        "]);return rE=function(){return e},e}function rw(){let e=r(["\n          query ArchiveYears {\n            ArchiveYears {\n              radio\n              years\n            }\n          }\n        "]);return rw=function(){return e},e}function rx(){let e=r(["\n          query ArchiveDayPages($year: Float!, $month: String!, $day: String!) {\n            ArchiveDayPages(year: $year, month: $month, day: $day) {\n              radio\n              year\n              month\n              day\n              pages {\n                id\n                slug\n                name\n              }\n            }\n          }\n        "]);return rx=function(){return e},e}function rT(){let e=r(["\n          mutation SendGeolocationData($location: String!, $streamId: String!) {\n            SendGeolocationData(location: $location, streamId: $streamId) {\n              slug\n            }\n          }\n        "]);return rT=function(){return e},e}function rS(){let e=r(["\n          query withParams($q: String!, $from: Int, $size: Int) {\n            search(q: $q, from: $from, size: $size) {\n              items {\n                slug\n                title\n                chapo\n                updatedAt\n                imagePrincipale {\n                  medias {\n                    format\n                    url\n                  }\n                  specificAttributes {\n                    alternativeText\n                  }\n                }\n                videoPrincipale {\n                  previewUrl\n                }\n              }\n              pagination {\n                total\n                from\n              }\n            }\n          }\n        "]);return rS=function(){return e},e}function r_(){let e=r(["\n          query Episode($props: EpisodeQuery!) {\n            Episode(props: $props) {\n              id\n              duration\n              enclosureUrl\n              title\n              author\n              page {\n                slug\n              }\n            }\n          }\n        "]);return r_=function(){return e},e}function rC(){let e=r(["\n          query Podcast($slug: String!) {\n            Podcast(slug: $slug) {\n              title\n              description\n              copyright\n              imageUrl\n              subtitle\n              category\n              subcategory\n              keywords\n              ownerName\n              ownerEmail\n              episodes {\n                enclosureUrl\n                title\n                description\n                author\n                imageUrl\n                subtitle\n                keywords\n                publicationDate\n                published\n                guid\n              }\n            }\n          }\n        "]);return rC=function(){return e},e}function rk(){let e=r(["\n          query PodcastById($id: String!) {\n            PodcastById(id: $
20id) {\n              title\n              description\n              copyright\n              imageUrl\n              subtitle\n              category\n              subcategory\n              keywords\n              ownerName\n              ownerEmail\n              episodes {\n                enclosureUrl\n                title\n                description\n                author\n                imageUrl\n                subtitle\n                keywords\n                publicationDate\n                published\n                guid\n              }\n              showTranscription\n            }\n          }\n        "]);return rk=function(){return e},e}function rI(){let e=r(["\n            query allPodcasts {\n              allPodcasts {\n                ","\n                categorySlug\n                ","\n                ","\n              }\n            }\n          "]);return rI=function(){return e},e}function rL(){let e=r(["\n            query Episodes($props: EpisodesQuery!) {\n              Episodes(props: $props) {\n                episodes {\n                 id\n                 duration\n                 enclosureUrl\n                  ","\n                  enclosureUrl\n                  transcription\n                  page {\n                    slug\n                  }\n                  guid\n                }\n              }\n            }\n          "]);return rL=function(){return e},e}function rP(){let e=r(["\n          mutation addVoteCound($surveyId: String!, $optionId: String!) {\n            addVoteCount(surveyId: $surveyId, optionId: $optionId) {\n              id\n              description\n              isPersonalized\n              mediaId\n              startDate\n              endDate\n              voteOutput\n              votesSum\n              mediaFormat\n              formatImage\n              descriptionOutput\n              widthPercentage\n              creditLegendeOutput\n              alignSelf\n              linkTargetBlank\n              votesOptions {\n                id\n                vote\n              }\n              options {\n                id\n                label\n                placeholder\n                mediaId\n                mediaType\n                media {\n                  medias {\n                    format\n                    url\n                  }\n                  specificAttributes {\n                    alternativeText\n                  }\n                }\n                voteCount\n                votePercentage\n              }\n              image {\n                medias {\n                  format\n                  url\n                }\n                specificAttributes {\n                  alternativeText\n                }\n              }\n              audio {\n                medias {\n                  format\n                  url\n                }\n                specificAttributes {\n                  alternativeText\n                }\n              }\n            }\n          }\n        "]);return rP=function(){return e},e}function rO(){let e=r(["\n          query getMedia($mediaId: String!) {\n            getMedia(mediaId: $mediaId) {\n              id\n              medias {\n                format\n                url\n              }\n            }\n          }\n        "]);return rO=function(){return e},e}function rR(){let e=r(["\n          query Zone($id: String!) {\n            Zone(id: $id) {\n              id\n              label\n              group\n              stream {\n                id\n                hd\n                bd\n                hls\n                idMds\n                label\n                imageUrl\n                parentId\n                displayOnWebsite\n                streamFormat\n                hasStartOver\n                geofootprint\n                type\n                altCover\n              }\n            }\n          }\n        "]);return rR=function(){return e},e}function rD(){let e=r(["\n          mutation withParams(\n            $formId: String!\n            $responses: [ResponseTypeInput!]!\n            $token: String\n            $removeEventZoneMandatory: Boolean\n          ) {\n            createFormResponse(\n              formId: $formId\n              responses: $responses\n              token: $token\n              removeEventZoneMandatory: $removeEventZoneMandatory\n            ) {\n              fieldId\n              error\n            }\n          }\n        "]);return rD=function(){return e},e}function rN(){let e=r(["\n          query withParams(\n            $formId: String!\n            $filename: String!\n            $mimeType: String!\n          ) {\n            createFormResponseFileUploadUrl(\n              formId: $formId\n              filename: $filename\n              mimeType: $mimeType\n            ) {\n              signedUrl\n              url\n            }\n          }\n        "]);return rN=function(){return e},e}function rM(){let e=r(["\n          mutation withParams(\n            $formId: String!\n            $responses: [ResponseTypeInput!]!\n            $neoWinnerData: NeoWinnerDataInput!\n          ) {\n            sendNeogroupGameRegistration(\n              formId: $formId\n              responses: $responses\n              neoWinnerData: $neoWinnerData\n            ) {\n              result\n            }\n          }\n        "]);return rM=function(){return e},e}function rj(){let e=r(["\n          mutation withParams(\n            $formId: String!\n            $responses: [ResponseTypeInput!]!\n            $sStationName: String\n          ) {\n            sendDirectReaction(\n              formId: $formId\n              responses: $responses\n              sStationName: $sStationName\n            ) {\n              result\n            }\n          }\n        "]);return rj=function(){return e},e}function rF(){let e=r(["\n          mutation withParams($backgroundId: String!) {\n            Backgroun
20dClick(id: $backgroundId) {\n              id\n            }\n          }\n        "]);return rF=function(){return e},e}function rB(){let e=r(["\n          query withParams($pageId: String!) {\n            FindUserByPageId(pageId: $pageId) {\n              id\n              firstName\n              lastName\n              radioId\n              description\n              avatar\n              job\n              socialNetworks {\n                facebook\n                linkedin\n                x\n                instagram\n                web\n                other\n              }\n              authorPage {\n                slug\n              }\n            }\n          }\n        "]);return rB=function(){return e},e}function rU(){let e=r(["\n          query GetVast(\n            $streamId: String\n            $consent: String\n            $pageUrl: String\n            $lng: String\n            $lat: String\n            $long: String\n            $caid: String\n          ) {\n            GetVast(\n              streamId: $streamId\n              consent: $consent\n              pageUrl: $pageUrl\n              lng: $lng\n              lat: $lat\n              long: $long\n              caid: $caid\n            ) {\n              ads {\n                id\n                title\n                description\n                advertiser\n                duration\n                mediaFiles {\n                  url\n                  type\n                  bitrate\n                  width\n                  height\n                  delivery\n                  codec\n                }\n                trackingEvents {\n                  event\n                  url\n                  offset\n                }\n                clickThroughUrl\n                clickTrackingUrls\n                skipOffset\n                sequence\n                impressionUrl\n              }\n              rawXml\n              adCount\n            }\n          }\n        "]);return rU=function(){return e},e}(l=ra||(ra={})).gql=ro.gql,l.resetCaches=ro.resetCaches,l.disableFragmentWarnings=ro.disableFragmentWarnings,l.enableExperimentalFragmentVariables=ro.enableExperimentalFragmentVariables,l.disableExperimentalFragmentVariables=ro.disableExperimentalFragmentVariables,ra.default=ra,function(e){function t(t){var n=e.call(this)||this;return n.link=rs(t),n}p(t,e),t.prototype.request=function(e,t){return this.link.request(e,t)}}(eA),n(4301);let rV=(0,n7.m)("api"),rz=rs(e=>{let{graphQLErrors:t,networkError:n}=e;n&&rV.error("[GraphQL Error]: ".concat(n.message)),(null==t?void 0:t.length)&&t.forEach(e=>{let{message:t,extensions:n}=e;rV.error("[GraphQL Error]: ".concat(null==n?void 0:n.code," ").concat(t))})}),rq=new Map,rQ=(e,t)=>{let n=t||n9.Z.api.endpoint,r="".concat(e,"-").concat(n),i=rq.get(r);return i||(i=new nb({cache:new n8,link:n6([rz,new eN({uri:n,fetch})]),defaultOptions:{query:{errorPolicy:"all"}}}),rq.set(r,i)),i},rH=(e,t)=>n=>{var r;return rQ(e,t).query({...n,fetchPolicy:"network-only",context:{...n.context||{},headers:{...(null===(r=n.context)||void 0===r?void 0:r.headers)||{},"x-host":e}}})},rG=e=>t=>{var n;return rQ(e,n9.Z.api.endpoint.replace(/\/graphql$/,"/rwgraphql")).mutate({...t,context:{...t.context||{},headers:{...(null===(n=t.context)||void 0===n?void 0:n.headers)||{},...window.location.host.indexOf(":")>-1?{"x-host":e}:{}}}})},rK=e=>t=>{if(t.errors&&rV.error("API Error: ",t.errors),!(null==t?void 0:t.data))throw Error("Graphql Error: no data");return e?t.data[e]:t.data},r$=e=>t=>{if(t.errors)throw rV.error("Erreur: ",t.errors),t.errors;if(!(null==t?void 0:t.data))throw Error("Graphql Error: No data");return t.data[e]},rW=ra(rl());var rZ={Radio:e=>{var t;return null===(t=n.g.apidata)||void 0===t?void 0:t.radio},MenuFooter:e=>{var t;return null===(t=n.g.apidata)||void 0===t?void 0:t.menuFooter},MenuMain:e=>{var t;return null===(t=n.g.apidata)||void 0===t?void 0:t.menuMain},Zones:e=>{var t;return null===(t=n.g.apidata)||void 0===t?void 0:t.zones},Webradios:e=>{var t;return null===(t=n.g.apidata)||void 0===t?void 0:t.webradios},Radiostreams:e=>{var t;return null===(t=n.g.apidata)||void 0===t?void 0:t.radiostreams},podcastsLink:e=>{var t;return null===(t=n.g.apidata)||void 0===t?void 0:t.podcastsLink},playerExterne:e=>{var t;return null===(t=n.g.apidata)||void 0===t?void 0:t.playerExterne},lateralMenu:e=>{var t;return null===(t=n.g.apidata)||void 0===t?void 0:t.lateralMenu},mode:e=>{var t;return(null===(t=n.g.apidata)||void 0===t?void 0:t.mode)||"light"},images:e=>{var t;return(null===(t=n.g.apidata)||void 0===t?void 0:t.images)||{}},taggingData:e=>{var t;return null===(t=n.g.apidata)||void 0===t?void 0:t.taggingData},eventTypes:e=>{var t;return null===(t=n.g.apidata)||void 0===t?void 0:t.eventTypes},stream:{defaultZoneStream:e=>rH(e)({query:ra(ru())}).then(rK("DefaultZoneType")),getSecureStreamToken:(e,t,n)=>rH(e)({query:ra(rc()),variables:{streamId:t,timestamp:n},fetchPolicy:"network-only"}).then(rK("GetSecureStreamToken")).then(e=>e.media)},category:{getCategory:(e,t)=>rH(e)({query:ra(rd()),variables:{id:t}}).then(rK("Category"))},titles:{getTitles:(e,t,n,r)=>fetch("/api/TitleDiffusions?size=".concat(t,"&radioStreamId=").concat(n,"&date=").concat(r.getTime())).then(e=>e.json())},radios:{footerRadiosInfos:e=>rH(e)({query:ra(rh())}).then(rK("FooterRadiosInfo"))},content:{getContent:(e,t,n,r)=>rH(e)({query:ra(rf(),r?r.join("\n"):"\n                  categories {\n                    id\n                    name\n                    subCategories\n                  }\n                  author {\n                    firstName\n                    lastName\n                  }\n                  slug\n                  id\n                  sponsored\n                  title\n                  chapo\n                  imagePrincipale {\n                    medias {\n                      format\n                      url\n                    }\n                    specificAttributes {\n                      alternativeText\n                    }\n                  }\n                  eventStartDate\n                  eventEndDate\n                  eventType\n                  videoPrincipale {\n                    url\n                    previewUrl\n                  }",n?"updatedAt":""),variables:{props:t}}).then(rK("getContent"))},page:{getPage:(e,t)=>
20rH(e)({query:ra(rp(),rW),variables:{slug:t}}).then(rK("Page")),getPageFor:(e,t,n)=>rH(e)({query:ra(rm(),rW),variables:{pageName:t,zone:n}}).then(rK("PageFor")),getPagePreview:(e,t,n)=>rH(e)({query:ra(rg(),rW),variables:{pageId:t,version:n}}).then(rK("PageForPreview")),getPageData:(e,t,n)=>{let r=t.reduce((e,t)=>(t.types&&Object.entries(t.types).forEach(t=>{e.push("$".concat(t[0],": ").concat(t[1]))}),e),[]),i="".concat(r.length>0?" withParams(".concat(r.join(", "),")"):""," {\n        ").concat(t.map(e=>e.query).join("\n"),"\n      }");return rH(e)({query:ra(rv(),i),variables:t.reduce((e,t)=>({...e,...t.variables}),{}),context:n&&{headers:{zoneId:n}}}).then(rK())},getPageCategories:(e,t)=>rH(e)({query:ra(ry()),variables:{id:t}}).then(rK("getPageCategories")).then(e=>{if(!e)throw Error("Unable to load categories for page ".concat(t));return e}),viewPage:(e,t)=>rG(e)({mutation:ra(rb()),variables:{slug:t}}).then(()=>{}),getPageEditLink:(e,t)=>rH(e)({query:ra(rA()),variables:{slug:t}}).then(rK("PageEditLink")),getProgrammation:(e,t)=>rH(e)({query:ra(rE()),variables:{props:t}}).then(rK("Programmation")),getArchiveYears:e=>rH(e)({query:ra(rw())}).then(rK("ArchiveYears")),getArchiveDayPages:(e,t,n,r)=>rH(e)({query:ra(rx()),variables:{year:t,month:n,day:r}}).then(rK("ArchiveDayPages")),sendGeolocationLink:(e,t,n)=>rG(e)({mutation:ra(rT()),variables:{location:t,streamId:n}}).then(()=>{})},search:{search:(e,t,n,r)=>rH(e)({query:ra(rS()),variables:{q:t,from:n,size:r}}).then(rK("search"))},episode:{getEpisode:(e,t)=>rH(e)({query:ra(r_()),variables:{props:{id:t}}}).then(rK("Episode"))},podcast:{getPodcast:(e,t)=>rH(e)({query:ra(rC()),variables:{slug:t}}).then(rK("Podcast")),getPodcastById:(e,t)=>rH(e)({query:ra(rk()),variables:{id:t}}).then(rK("PodcastById")),getAllPodcasts:(e,t)=>rH(e)({query:ra(rI(),t.indexOf("title")>-1?"title":"",t.indexOf("description")>-1?"description":"",t.indexOf("imageOrVideo")>-1?"imageUrl":"")}).then(rK("allPodcasts")),getEpisodes:(e,t,n,r,i)=>rH(e)({query:ra(rL(),n),variables:{props:{podcastId:t,offset:r,isForPlaylist:i}},fetchPolicy:"network-only"}).then(rK("Episodes"))},surveys:{addVoteCount:(e,t,n)=>rG(e)({mutation:ra(rP()),variables:{surveyId:t,optionId:n}}).then(r$("addVoteCount"))},media:{getMedia:(e,t)=>rH(e)({query:ra(rO()),variables:{mediaId:t}}).then(rK("getMedia"))},zones:{getZoneById:(e,t)=>rH(e)({query:ra(rR()),variables:{id:t}}).then(rK("Zone"))},formResponse:{createFormResponse:async(e,t,n,r,i)=>rG(e)({mutation:ra(rD()),variables:{formId:t,responses:n,token:r,removeEventZoneMandatory:i}}
20).then(r$("createFormResponse")),createFormResponseFileUploadUrl:async(e,t,n,r)=>rH(e)({query:ra(rN()),variables:{formId:t,filename:n,mimeType:r}}).then(rK("createFormResponseFileUploadUrl")),sendNeogroupGameregistration:async(e,t,n,r)=>rG(e)({mutation:ra(rM()),variables:{formId:t,responses:n,neoWinnerData:r}}).then(r$("sendFormNeogroup")),sendDirectReaction:async(e,t,n,r)=>rG(e)({mutation:ra(rj()),variables:{formId:t,responses:n,sStationName:r}}).then(r$("sendFormNeogroup"))},murduson:{fetchLienAchat:async e=>fetch("https://www.lesindesradios.fr/serviceimb/achat.do?plateforme=web&coverId=".concat(e)).then(e=>{if(e.ok)return e.json();throw Error("Can't fetch buy link")}).then(e=>{let t=e.liensAchat.find(e=>"ITUNES"===e.partenaire);if(t||(t=e.liensAchat.find(e=>"AMAZON"===e.partenaire))||(t=e.liensAchat[0]),!t)throw Error("No buy link on response : "+JSON.stringify(e));return t.url})},background:{backgroundClick:async(e,t)=>rG(e)({mutation:ra(rF()),variables:{backgroundId:t}}).then(r$("BackgroundClick"))},user:{findUserByPageId:async(e,t)=>rH(e)({query:ra(rB()),variables:{pageId:t}}).then(rK("FindUserByPageId"))},vast:{getVast:(e,t)=>rH(e,n9.Z.api.endpoint.replace(/\/graphql$/,"/rwgraphql"))({query:ra(rU()),variables:t,fetchPolicy:"network-only"}).then(rK("GetVast"))}}},4657:function(e,t,n){"use strict";var r,i,a,o,s,l,u,c,d,h;n.d(t,{Ag:function(){return s},W$:function(){return a}}),(l=r||(r={})).Aries="aries",l.Taurus="taurus",l.Gemini="gemini",l.Cancer="cancer",l.Leo="leo",l.Virgo="virgo",l.Libra="libra",l.Scorpio="scorpio",l.Sagittarius="sagittarius",l.Capricorn="capricorn",l.Aquarius="aquarius",l.Pisces="pisces",(u=i||(i={})).Left="left",u.Center="center",(c=a||(a={})).Home="HOME",c.Category="CATEGORY",c.Content="CONTENT",(d=o||(o={})).Header="header",d.Footer="footer",(h=s||(s={})).Hd="Hd",h.Bd="Bd",h.Hls="Hls"},6864:function(e,t,n){"use strict";n.d(t,{N:function(){return d},h:function(){return l}});var r,i,a,o=n(3325),s=n(6644);let l=(0,s.MT)({isOpen:!1,hasDetails:!!(null===(a=o.ZP.Radio(window.location.host))||void 0===a?void 0:null===(i=a.structure)||void 0===i?void 0:null===(r=i.player)||void 0===r?void 0:r.hasDetails)}),u=(0,s.yM)("setIsOpen"),c=(0,s.yM)("setHasDetails");l.on(u,(e,t)=>({...e,isOpen:t})),l.on(c,(e,t)=>({...e,hasDetails:t}));let d={setIsOpen:u,setHasDetails:c}},8280:function(e,t,n){"use strict";let r,i;n.d(t,{Nw:function(){return p},h:function(){return m}});var a,o,s=n(6644),l=n(3325),u=n(7539),c=n(1163),d=n.n(c);let h=(0,u.D)("zone"),f=h?{zone:{zoneId:h}}:{zone:{zoneId:(null===(a=l.ZP.Radio(window.location.host))||void 0===a?void 0:a.defaultLocationZoneId)||(null===(o=l.ZP.Zones(window.location.host))||void 0===o?void 0:o[0].id)}};try{window.opener&&(r=window.opener.preferencesActions,i=window.opener.preferencesStore)}catch(e){}let p=r||{setZone:(0,s.yM)("setZone")},m=i||(0,s.MT)(f);i||(window.preferencesStore=m,window.preferencesActions=p,m.on(p.setZone,(e,t)=>{let n={...e,zone:{zoneId:t}};return(0,u.d)("zone",t),t!==e.zone.zoneId&&d().replace(d().asPath,void 0,{scroll:!1}),n}))},9581:function(e,t,n){"use strict";var r=n(5893);n(7294),t.Z=e=>{let{label:t,color:n}=e;return(0,r.jsx)("span",{className:"badge badge-pill".concat(n?" badge--"+n:""),children:(0,r.jsx)("span",{className:"text",children:t})})}},6395:function(e,t,n){"use strict";var r=n(5893);n(7294);var i=n(2382),a=n(5995);let o=e=>{let{customIcon:t,withoutIcon:n,iconPosition:a,label:o,iconStyle:s}=e;return"loader"===t?(0,r.jsx)("div",{className:"loader",style:{width:"2.8rem",height:"2.8rem"}}):(0,r.jsxs)(r.Fragment,{children:[!n&&"afterLabel"!==a&&(0,r.jsx)(i.Z,{style:s,name:t||"chevron-right"}),!!o&&(0,r.jsx)("span",{className:"text",style:{paddingRight:n||"afterLabel"===a?"0":"8px",flex:1,textAlign:"center"},children:o}),!n&&"afterLabel"===a&&(0,r.jsx)(i.Z,{style:s,name:t||"chevron-right"})]})};t.Z=e=>{let{label:t,status:n,onClick:i,linkHref:s,inCard:l,withoutIcon:u,customIcon:c,color:d,size:h,type:f,fullWidth:p,iconPosition:m,isLink:g,externalHref:v,mobileHidden:y,hasPulse:b,linkTarget:A,download:E,iconStyle:w,isInThumbnail:x,onMouseEnter:T,onMouseLeave:S,style:_,classname:C,ariaLabel:k}=e,I="btn \n  ".concat(g?" btn---link":"").concat(p?" btn-block":"").concat(x?" btn--in-thumbnail":"").concat("light"===d?" btn--light":"primary"===d?" btn--primary":"dark"===d?" btn--dark":"alpha"===d?" btn--alpha":"player"==d?" btn--player":"","\n  ").concat("large"===h?" btn-lg":"small"===h?" btn-sm":"extra-small"===h?" btn-xs":"").concat("active"===n?"":" disabled").concat(y?" hidden-mobile":"").concat(b?" has-pulse":""," ").concat(C||"");return v?(0,r.jsx)("a",{href:v,className:I,style:_,target:A,download:E,onMouseEnter:T,onMouseLeave:S,onClick:i,"aria-label":k,title:k,children:(0,r.jsx)(o,{withoutIcon:u,iconPosition:m,label:t,customIcon:c,iconStyle:w})}):s?(0,r.jsx)(a.Z,{href:s,children:l?(0,r.jsx)("a",{className:"card",onMouseOver:T,onMouseLeave:S,style:_,"aria-label":k,title:k,children:(0,r.jsx)("div",{className:"card-body",children:(0,r.jsx)("span",{className:I,children:(0,r.jsx)(o,{withoutIcon:u,iconPosition:m,label:t,customIcon:c,iconStyle:w})})})}):(0,r.jsx)("a",{className:I,onMouseOver:T,onMouseLeave:S,style:_,"aria-label":k,title:k,children:(0,r.jsx)(o,{withoutIcon:u,iconPosition:m,label:t,customIcon:c,iconStyle:w})})}):(0,r.jsx)("button",{type:f||"button",className:I,disabled:"disabled"===n,onClick:i,onMouseOver:T,onMouseLeave:S,style:_,"aria-label":k,title:k,children:(0,r.jsx)(o,{withoutIcon:u,iconStyle:w,iconPosition:m,label:t,customIcon:c})})}},99:function(e,t,n){"use strict";n.d(t,{dk:function(){return S},sK:function(){return C},KT:function(){return T},ZP:function(){return k}});var r=n(5893),i=n(7294),a=n(4002),o=n(1713),s=n(9581),l=n(6623),u=n(3876),c=n(7649),d=n(5186),h=n(2997),f=n(706),p=n(1930),m=n(3325),g=n(9671),v=n(5995),y=n(6395),b=e=>{let{length:t,onBulletClick:n,activeBullet:i,className:a,numbering:o}=e;return(0,r.jsx)("ul",{className:"".concat(o?"pagination-numerotation":"bullets"," list-inline ").concat(a||""),children:Array.from(Array(t),(e,t)=>(0,r.jsx)("li",{className:"list-inline-item",children:(0,r.jsx)("button",{type:"button",className:o?"btn btn-sm btn-".concat(i===t?"dark":"light"):"btn btn-dark".concat(i===t?" active":""),onClick:()=>n(t),children:t+1})},"bullet".concat(t)))})},A=n(2382),E=n(4496),w=e=>{let{activeIndex:t,length:n,onChange:i,linkHref:a,linkLabel:o,numbering:s,noBullets:l,loop:u,isCustom:c}=e,d=()=>(0,r.jsx)(b,{className:s?void 0:"justify-content-".concat(o&&a?"start":"end"),activeBullet:t,length:n,onBulletClick:e=>i(e),numbering:s});return(0,r.jsxs)("nav",{className:"pagination",children:[(0,r.jsx)(y.Z,{customIcon:"arrow-left",status:u||0!==t?"active":"disabled",onClick:()=>i(0===t?n-1:t-1),ariaLabel:"\xc9l\xe9ment pr\xe9c\xe9dent"}),s&&!l&&d(),(0,r.jsx)(y.Z,{customIcon:"arrow-right",status:u||t!==n-1?"active":"disabled",onClick:()=>i(t===n-1?0:t+1),ariaLabel:"\xc9l\xe9ment suivant"}),!s&&!l&&d(),c?(0,r.jsx)(E.Z,{linkHref:a,linkLabel:o}):!!o&&!!a&&(0,r.jsx)(v.Z,{href:a,children:(0,r.jsxs)("a",{className:"more",children:[(0,r.jsx)("span",{children:o}),(0,r.jsx)(A.Z,{name:"chevron-right"})]})})]})},x=n(8646);u.default.use([c.Z,d.Z,h.Z]);let T=e=>{let{subTitle:t,title:n}=e;return(0,r.jsxs)(r.Fragment,{children:[t&&(0,r.jsx)("p",{className:"subtitle",children:t}),n&&(0,r.jsx)("h2",{className:"title h1",children:n})]})},S=e=>{let{badgeLabel:t,lead:n}=e;return(0,r.jsxs)(r.Fragment,{children:[t&&(0,r.jsx)(s.Z,{label:t,color:"primary"}),n&&(0,r.jsx)(l.Z,{content:n})]})},_=e=>{let{children:t,titlePosition:n}=e;return"onTop"===n?(0,r.jsx)("div",{className:"card",children:(0,r.jsx)("div",{className:"card-body",children:t})}):(0,r.jsx)(r.Fragment,{children:t})},C=e=>{let{title:t,subtitle:n,lead:i,badgeLabel:a,titlePosition:o,descriptionPosition:s}=e;return(0,r.jsx)("div",{className:"row row-alt-2",children:(0,r.jsx)("div",{className:"col-2 col-md-1",children:(0,r.jsx)(_,{children:(0,r.jsxs)("div",{className:"resume",children:["inside"===o&&(0,r.jsx)(T,{title:t,subTitle:n}),"inside"===s&&(0,r.jsx)(S,{lead:i,badgeLabel:a})]})})})})};var k=e=>{let{items:t,reverseColor:n,mediaRatio:s,blocId:l,overrideRules:u,titleUnderlineBloc:c,zoomBloc:d,borderBottomBloc:h,aside:v,blurSides:y}=e,b=(0,g.S)(),A=i.useContext(x.lv),E=m.ZP.Radio(A);if(b.rossel){let{descriptionPosition:i,titlePosition:f}=e;if(0===t.length)return(0,r.jsx)("div",{style:{height:"333px"}});let m=e=>{var t,n,o,l,m,g,b,A,w;return(0,r.jsx)(a.o,{children:(0,r.jsx)(p.Z,{newPage:e.newPage,title:e.title,subtitle:e.subTitle,lead:e.lead,titlePosition:f,de
20scriptionPosition:i,imageUrl:e.imageSrc,imageSize:"big",imageAlt:e.imageAlt,quality:75,overlay:"inside"===f&&(e.title||e.subTitle)||"inside"===i&&(e.badgeLabel||e.lead)?(0,r.jsx)(C,{title:e.title,subtitle:e.subTitle,lead:e.lead,badgeLabel:e.badgeLabel,titlePosition:f,descriptionPosition:i}):void 0,mediaRatio:s,linkHref:e.linkHref,isCarousel:!0,badge:e.badgeLabel,titleUnderline:u?c:(null===(o=E.theme)||void 0===o?void 0:null===(n=o.rossel)||void 0===n?void 0:null===(t=n.thumbnail)||void 0===t?void 0:t.titleUnderline)||void 0,zoom:u?d:(null===(g=E.theme)||void 0===g?void 0:null===(m=g.rossel)||void 0===m?void 0:null===(l=m.thumbnail)||void 0===l?void 0:l.zoom)||void 0,borderBottom:u?h:(null===(w=E.theme)||void 0===w?void 0:null===(A=w.rossel)||void 0===A?void 0:null===(b=A.thumbnail)||void 0===b?void 0:b.borderBottom)||void 0,aside:v,blurSides:y})},e.title)};return 1===t.length?(0,r.jsx)("div",{id:l,className:"block Carousel Carousel-max-height-md ".concat(n?" bg--dark":""),children:(0,r.jsx)(o.t,{slidesPerView:1,centeredSlides:!0,children:m(t[0])})}):(0,r.jsx)("div",{id:l,className:"block Carousel Carousel-max-height-md ".concat(n?" bg--dark":""),children:(0,r.jsxs)("div",{style:{position:"relative"},children:[(0,r.jsx)(o.t,{autoplay:{delay:5e3,disableOnInteraction:!1},centeredSlides:!0,slidesPerView:1.5,spaceBetween:20,loop:!0,pagination:{el:".swiper-pagination",clickable:!0,dynamicBullets:!0},navigation:{nextEl:".swiper-button-next",prevEl:".swiper-button-prev"},breakpoints:{768:{slidesPerView:1.5},320:{slidesPerView:1.1}},children:t.map(m)}),(0,r.jsx)("div",{className:"swiper-pagination"}),(0,r.jsx)("div",{className:"swiper-button-prev"}),(0,r.jsx)("div",{className:"swiper-button-next"})]})})}{let u=e.descriptionPosition,c=e.titlePosition;if((0,f.kC)().isMobile&&("inside"===c&&(c="onTop"),"inside"===u&&(u="onTop")),0===t.length)return null;let[d,h]=i.useState(0),m=i.useRef(),g={on:{slideChange:e=>h(e.realIndex)},autoplay:{delay:5e3,disableOnInteraction:!1},slidesPerView:"auto",spaceBetween:20,loopedSlides:t.length};return(0,r.jsxs)("div",{className:"block Carousel Carousel-partial-1 Carousel-max-height-lg ".concat(n?" bg--dark":""),id:l,children:[(0,r.jsx)(o.t,{...g,onSwiper:e=>{e.snapGrid=e.slidesGrid,m.current=e},children:t.map(e=>(0,r.jsx)(a.o,{children:(0,r.jsx)(p.Z,{newPage:e.newPage,title:e.title,subtitle:e.subTitle,lead:e.lead,titlePosition:c,descriptionPosition:u,imageUrl:e.imageSrc,imageSize:"big",imageAlt:e.imageAlt,overlay:"inside"===c&&(e.title||e.subTitle)||"inside"===u&&(e.badgeLabel||e.lead)?(0,r.jsx)(C,{title:e.title,subtitle:e.subTitle,lead:e.lead,badgeLabel:e.badgeLabel,titlePosition:c,descriptionPosition:u}):void 0,mediaRatio:s,linkHref:e.linkHref,isCarousel:!0,badge:e.badgeLabel,aside:v,blurSides:y})},e.title))}),(0,r.jsx)(w,{activeIndex:d,length:t.length,onChange:e=>{var t;null===(t=m.current)||void 0===t||t.slideTo(e),h(e)},loop:!0})]})}}},4496:function(e,t,n){"use strict";var r=n(5893),i=n(7294),a=n(5995),o=n(6395),s=n(8646),l=n(3325),u=n(9671),c=n(8462);t.Z=e=>{var t,n,d,h,f,p;let{linkLabel:m,linkHref:g}=e,v=i.useContext(s.lv),y=l.ZP.Radio(v),b=(0,u.S)(),[A,E]=i.useState(!1),w=b.group81,x=null===(d=y.theme)||void 0===d?void 0:null===(n=d.readMore)||void 0===n?void 0:null===(t=n.afterTextIcon)||void 0===t?void 0:t.mediaUrl,T=null===(p=y.theme)||void 0===p?void 0:null===(f=p.readMore)||void 0===f?void 0:null===(h=f.afterTextIconHover)||void 0===h?void 0:h.mediaUrl;return g&&m?(0,r.jsx)("div",{className:"bottomHeading customButton ",children:(0,r.jsxs)("div",{onMouseEnter:()=>E(!0),onMouseLeave:()=>E(!1),className:"customButtonContainer",children:[(0,r.jsx)(a.Z,{href:g,children:w?(0,r.jsx)("a",{children:(0,r.jsx)("span",{children:m})}):(0,r.jsx)(o.Z,{label:m,status:"active",isCustom:!0})}),w&&x&&(0,r.jsxs)("div",{className:"readMoreAfterIcon",children:[(!A||!T)&&(0,r.jsx)("img",{className:"default",src:(0,c.tB)(x,"small",void 0,void 0,!1,void 0,100),alt:""},"default"),A&&T&&(0,r.jsx)("img",{className:"default",src:(0,c.tB)(T,"small",void 0,void 0,!1,void 0,100),alt:""},"hover")]})]})}):(0,r.jsx)(r.Fragment,{})}},4619:function(e,t,n){"use strict";var r=n(5893),i=n(7294),a=n(5995),o=n(9581),s=n(2382),l=n(3325),u=n(9671),c=n(8646);t.Z=e=>{var t;let n=(0,u.S)(),d=n.rossel,h=d||n.group81,{title:f,isSubtitle:p,linkLabel:m,linkHref:g,badgeLabel:v,badgeColor:y,customClassName:b}=e,A=i.useContext(c.lv),E=null===(t=l.ZP.Radio(A).theme)||void 0===t?void 0:t.useMainColorForTitles;return f||v||m&&m?(0,r.jsxs)("div",{className:"heading ".concat("\n".concat(d?" HasSpacerDotted ":"","\n  ")),children:[!!f&&(0,r.jsx)(p?"h3":"h2",{className:"title ".concat(p?"h3":"h2"," ").concat(E?" text-primary":""," ").concat(b||""),children:f}),!!v&&(0,r.jsx)(o.Z,{label:v,color:y||"dark"}),!h&&!!g&&!!m&&(0,r.jsx)(a.Z,{href:g,children:(0,r.jsxs)("a",{children:[(0,r.jsx)("span",{children:m}),(0,r.jsx)(s.Z,{name:"chevron-right"})]})})]}):(0,r.jsx)(r.Fragment,{})}},2382:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var r=n(5893);n(7294);let i={android:{path:[(0,r.jsx)("path",{d:"M13.7,7.3c0.2,0,0.3,0.1,0.3,0.3V13c0,0.8-0.5,1.5-1.3,1.6h0V17c0,0.6-0.4,1-1,1c-0.5,0-1-0.4-1-1v-2.3H9.3V17 c0,0.6-0.4,1-1,1c-0.5,0-1-0.4-1-1v-2.4C6.6,14.5,6,13.8,6,13V7.7c0-0.2,0.1-0.3,0.3-0.3H13.7L13.7,7.3z M4.3,7.3c0.5,0,1,0.4,1,1 V13c0,0.6-0.4,1-1,1c-0.5,0-1-0.4-1-1V8.3C3.3,7.8,3.8,7.3,4.3,7.3z M15.7,7.3c0.5,0,1,0.4,1,1V13c0,0.6-0.4,1-1,1c-0.5,0-1-0.4-1-1 V8.3C14.7,7.8,15.1,7.3,15.7,7.3L15.7,7.3z M13.2,2.1c0.1,0.1,0.1,0.3,0,0.5l0,0l-0.8,0.8c1,0.7,1.6,1.8,1.6,3 c0,0.2-0.1,0.3-0.3,0.3H6.3C6.2,6.7,6,6.5,6,6.3l0,0c0-1.2,0.6-2.3,1.5-2.9l0,0L6.8,2.6c-0.1-0.1-0.1-0.3,0-0.5C6.9,2,7.1,2,7.2,2.1 l0,0L8.2,3
20c1.1-0.5,2.4-0.5,3.6,0l0,0l0.9-0.9l0,0C12.9,2,13.1,2,13.2,2.1C13.2,2.1,13.2,2.1,13.2,2.1z M8.3,4.7C8.2,4.7,8,4.8,8,5 l0,0c0,0.2,0.1,0.3,0.3,0.3c0,0,0,0,0,0c0.2,0,0.3-0.1,0.3-0.3c0,0,0,0,0,0C8.7,4.8,8.5,4.7,8.3,4.7L8.3,4.7z M11.7,4.7 c-0.2,0-0.3,0.1-0.3,0.3l0,0c0,0.2,0.1,0.3,0.3,0.3c0,0,0,0,0,0C11.9,5.3,12,5.2,12,5c0,0,0,0,0,0C12,4.8,11.8,4.7,11.7,4.7 L11.7,4.7z"},"android")]},apple:{path:[(0,r.jsx)("path",{d:"M15.6,13.3c-0.2,0.5-0.5,0.9-0.8,1.4c-0.3,0.4-0.6,0.8-1,1.2c-0.3,0.3-0.8,0.5-1.2,0.5 c-0.4,0-0.8-0.1-1.2-0.3c-0.4-0.2-0.8-0.3-1.2-0.3c-0.4,0-0.9,0.1-1.3,0.3c-0.3,0.2-0.7,0.3-1.1,0.3c-0.5,0-0.9-0.2-1.3-0.6 c-0.4-0.4-0.7-0.8-1-1.2c-0.5-0.7-0.8-1.4-1.1-2.1c-0.3-0.8-0.4-1.7-0.4-2.5c0-0.8,0.2-1.7,0.6-2.4C5,7,5.5,6.6,6,6.3 C6.5,6,7.1,5.8,7.7,5.8c0.5,0,0.9,0.1,1.3,0.3c0.3,0.1,0.7,0.3,1.1,0.3c0.4-0.1,0.8-0.2,1.2-0.4c0.5-0.2,1-0.3,1.6-0.3 c1.1,0,2,0.5,2.7,1.4c-1,0.5-1.6,1.6-1.6,2.7c0,0.8,0.3,1.7,1,2.2c0.3,0.3,0.6,0.5,1,0.6C15.8,12.9,15.7,13.1,15.6,13.3L15.6,13.3z M12.9,2.7c0,0.7-0.3,1.4-0.8,2c-0.5,0.7-1.3,1.1-2.2,1.1c0-0.1,0-0.2,0-0.3c0-0.7,0.3-1.4,0.8-2c0.3-0.3,0.6-0.6,1-0.7 c0.4-0.2,0.7-0.3,1.1-0.3C12.9,2.5,12.9,2.6,12.9,2.7L12.9,2.7z"},"apple")]},"arrow-left":{path:[(0,r.jsx)("path",{d:"M8.2,14.2L4,10l1.4-1.4l2.8-2.8c0.4-0.4,1-0.4,1.4,0c0.4,0.4,0.4,1,0,1.4L7.8,9H15c0.6,0,1,0.4,1,1s-0.4,1-1,1H7.8l1.8,1.8 c0.4,0.4,0.4,1,0,1.4c-0.2,0.2-0.4,0.3-0.7,0.3C8.7,14.5,8.4,14.4,8.2,14.2z"},"arrow-left")]},"arrow-right":{path:[(0,r.jsx)("path",{d:"M11.8,5.8L16,10l-1.4,1.4l-2.8,2.8c-0.4,0.4-1,0.4-1.4,0c-0.4-0.4-0.4-1,0-1.4l1.8-1.8H5c-0.6,0-1-0.4-1-1s0.4-1,1-1h7.2 l-1.8-1.8c-0.4-0.4-0.4-1,0-1.4c0.2-0.2,0.4-0.3,0.7-0.3C11.3,5.5,11.6,5.6,11.8,5.8z"},"arrow-right")]},basket:{path:[(0,r.jsx)("path",{d:"M15,8.5h-2.5V6c0-1.4-1.1-2.5-2.5-2.5C8.6,3.5,7.5,4.6,7.5,6v2.5H5l-1,8h12L15,8.5z M10,4.5c0.8,0,1.5,0.7,1.5,1.5v2.5h-3V6 C8.5,5.2,9.2,4.5,10,4.5z"},"basket")]},"chevron-down":{path:[(0,r.jsx)("path",{d:"M13.5,9.7L10,13.2L6.5,9.7c-0.4-0.4-0.4-1,0-1.4s1-0.4,1.4,0l2.1,2.1l2.1-2.1c0.4-0.4,1-0.4,1.4,0          C13.9,8.7,13.9,9.3,13.5,9.7z"},"chevron-down")]},"chevron-left":{path:[(0,r.jsx)("path",{d:"M11.7,6.5c0.4,0.4,0.4,1,0,1.4L9.6,10l2.1,2.1c0.4,0.4,0.4,1,0,1.4s-1,0.4-1.4,0L6.8,10l3.5-3.5          C10.7,6.1,11.3,6.1,11.7,6.5z"},"chevron-left")]},"chevron-right":{path:[(0,r.jsx)("path",{d:"M9.7,6.5l3.5,3.5l-3.5,3.5c-0.4,0.4-1,0.4-1.4,0s-0.4-1,0-1.4l2.1-2.1L8.3,7.9 c-0.4-0.4-0.4-1,0-1.4C8.7,6.1,9.3,6.1,9.7,6.5z"},"chevron-right")]},"chevron-up":{path:[(0,r.jsx)("path",{d:"M13.5,11.7c-0.4,0.4-1,0.4-1.4,0L10,9.6l-2.1,2.1c-0.4,0.4-1,0.4-1.4,0s-0.4-1,0-1.4L10,6.8          l3.5,3.5C13.9,10.7,13.9,11.3,13.5,11.7z"},"chevron-up")]},close:{path:[(0,r.jsx)("polygon",{className:"st0",points:"16,5.1 14.9,4 10,8.9 5.1,4 4,5.1 8.9,10 4,14.9 5.1,16 10,11.1 14.9,16 16,14.9 11.1,10 "},"close")]},deezer:{path:[(0,r.jsx)("path",{d:"M10,2c-4.4,0-8,3.6-8,8s3.6,8,8,8s8-3.6,8-8S14.4,2,10,2z M6.2,13.3H4v-0.7h2.2C6.2,12.7,6.2,13.3,6.2,13.3z M6.2,12.5H4 v-0.7h2.2C6.2,11.8,6.2,12.5,6.2,12.5z M6.2,11.6H4V11h2.2C6.2,11,6.2,11.6,6.2,11.6z M6.2,10.8H4v-0.7h2.2 C6.2,10.1,6.2,10.8,6.2,10.8z M6.2,9.9H4V9.2h2.2C6.2,9.2,6.2,9.9,6.2,9.9z M8.6,13.3H6.5v-0.7h2.2V13.3z M8.6,12.5H6.5v-0.7h2.2 V12.5z M8.6,11.6H6.5V11h2.2V11.6z M11.1,13.3H8.9v-0.7h2.2L11.1,13.3L11.1,13.3z M11.1,12.5H8.9v-0.7h2.2L11.1,12.5L11.1,12.5z M11.1,11.6H8.9V11h2.2L11.1,11.6L11.1,11.6z M11.1,10.8H8.9v-0.7h2.2L11.1,10.8L11.1,10.8z M11.1,9.9H8.9V9.2h2.2L11.1,9.9 L11.1,9.9z M11.1,9H8.9V8.4h2.2L11.1,9L11.1,9z M11.1,8.2H8.9V7.5h2.2L11.1,8.2L11.1,8.2z M13.5,13.3h-2.2v-0.7h2.2L13.5,13.3 L13.5,13.3z M13.5,12.5h-2.2v-0.7h2.2L13.5,12.5L13.5,12.5z M13.5,11.6h-2.2V11h2.2L13.5,11.6L13.5,11.6z M13.5,10.8h-2.2v-0.7h2.2 L13.5,10.8L13.5,10.8z M13.5,9.9h-2.2V9.2h2.2L13.5,9.9L13.5,9.9z M16,13.3h-2.2v-0.7H16L16,13.3L16,13.3z M16,12.5h-2.2v-0.7H16 L16,12.5L16,12.5z M16,11.6h-2.2V11H16L16,11.6L16,11.6z M16,10.8h-2.2v-0.7H16L16,10.8L16,10.8z M16,9.9h-2.2V9.2H16L16,9.9L16,9.9 z M16,9h-2.2V8.4H16L16,9L16,9z M16,8.2h-2.2V7.5H16L16,8.2L16,8.2z M13.8,7.3V6.7H16v0.7H13.8z"},"deezer")]},download:{path:[(0,r.jsx)("path",{d:"M 17 9 h -4 V 3 H 7 v 6 H 3 l 7 7 l 7 -7 z M 3 18 v 2 h 14 v -2 z"},"download")]},facebook:{path:[(0,r.jsx)("path",{d:"M11.1,17v-6.4h2.1l0.3-2.5h-2.5V6.5c0-0.7,0.2-1.2,1.2-1.2h1.3V3.1C13,3,12.4,3,11.7,3c-1.7-0.1-3.1,1.1-3.2,2.8 c0,0.2,0,0.3,0,0.5v1.8H6.4v2.5h2.1V17H11.1z"},"facebook")]},instagram:{path:[(0,r.jsx)("path",{d:"M10.9,3c1.1,0,1.4,0,2,0c0.6,0,1.2,0.1,1.7,0.3c0.5,0.2,0.9,0.5,1.2,0.8c0.4,0.3,0.6,0.8,0.8,1.2C16.8,6,16.9,6.5,17,7.1 c0,0.7,0,0.9,0,2.4v1c0,1.5,0,1.7,0,2.4c0,0.6-0.1,1.2-0.3,1.7c-0.2,0.5-0.5,0.9-0.8,1.2c-0.3,0.4-0.8,0.6-1.2,0.8 c-0.5,0.2-1.1,0.3-1.7,0.3c-0.7,0-0.9,0-2.4,0h-1c-1.5,0-1.7,0-2.4,0c-0.6,0-1.2-0.1-1.7-0.3c-0.5-0.2-0.9-0.5-1.2-0.8 c-0.4-0.3-0.6-0.8-0.8-1.2C3.2,14,3.1,13.5,3,12.9c0-0.6,0-0.9,0-2V9.1c0-1.1,0-1.4,0-2c0-0.6,0.1-1.2,0.3-1.7 c0.2-0.5,0.5-0.9,0.8-1.2c0.3-0.4,0.8-0.6,1.2-0.8C6,3.2,6.5,3.1,7.1,3c0.6,0,0.9,0,2,0L10.9,3z M10.9,4.3H9.1c-1.1,0-1.4,0-2,0 c-0.4,0-0.9,0.1-1.3,0.2C5.6,4.7,5.3,4.8,5.1,5.1C4.8,5.3,4.7,5.6,4.5,5.9C4.4,6.3,4.3,6.7,4.3,7.2c0,0.6,0,0.9,0,2v1.7 c0,1.1,0,1.4,0,2c0,0.4,0.1,0.9,0.2,1.3c0.1,0.3,0.3,0.6,0.5,0.8c0.2,0.2,0.5,0.4,0.8,0.5c0.4,0.2,0.9,0.2,1.3,0.2c0.7,0,1,0,2.8,0 h0.2c1.6,0,1.9,0,2.6,0c0.4,0,0.9-0.1,1.3-0.2c0.3-0.1,0.6-0.3,0.8-0.5c0.2-0.2,0.4-0.5,0.5-0.8c0.2-0.4,0.2-0.9,0.2-1.3 c0-0.7,0-1,0-2.8V9.7c0-1.6,0-1.9,0-2.6c0-0.4-0.1-0.9-0.2-1.3c-0.1-0.3-0.3-0.6-0.5-0.8c-0.2-0.2-0.5-0.4-0.8-0.5 c-0.4-0.2-0.9-0.2-1.3-0.2C12.2,4.3,12,4.3,10.9,4.3L10.9,4.3z M10,6.4c2,0,3.6,1.6,3.6,3.6c0,2-1.6,3.6-3.6,3.6 c-2,0-3.6-1.6-3.6-3.6C6.4,8,8,6.4,10,6.4z M10,7.7c-1.3,0-2.3,1-2.3,2.3c0,0,0,0,0,0c0,
201.3,1,2.3,2.3,2.3c0,0,0,0,0,0 c1.3,0,2.3-1,2.3-2.3c0,0,0,0,0,0C12.3,8.7,11.3,7.7,10,7.7C10,7.7,10,7.7,10,7.7z M13.7,5.4c0.5,0,0.8,0.4,0.8,0.8l0,0 c0,0.5-0.4,0.8-0.8,0.8l0,0c-0.5,0-0.8-0.4-0.8-0.8l0,0C12.9,5.8,13.3,5.4,13.7,5.4C13.7,5.4,13.7,5.4,13.7,5.4L13.7,5.4z"},"instagram")]},like:{path:[(0,r.jsx)("path",{d:"M10,7.4C9.7,5.7,8.1,4.6,6.5,4.9C4.9,5.2,3.8,6.8,4,8.4C4.1,9,4.4,9.5,4.8,10l0,0l5.2,5.2l5-5 c1.2-1.1,1.3-3,0.2-4.3c-1.1-1.2-3-1.3-4.3-0.2C10.4,6.1,10.1,6.7,10,7.4L10,7.4z"},"like")]},linkedin:{path:[(0,r.jsx)("path",{d:"M6.1,16.4H3V7.2h3.1V16.4z M4.6,6L4.6,6c-1,0-1.7-0.7-1.7-1.6c0-0.9,0.7-1.6,1.7-1.6c1,0,1.7,0.7,1.7,1.6 C6.3,5.3,5.6,6,4.6,6z M17.1,16.4h-3.1v-4.9c0-1.2-0.4-2.1-1.6-2.1c-0.8,0-1.4,0.6-1.6,1.1c-0.1,0.2-0.1,0.5-0.1,0.7v5.1H7.8 c0,0,0-8.4,0-9.2h3.1v1.3C11.3,7.9,12,7,13.6,7c2,0,3.5,1.3,3.5,4.1L17.1,16.4L17.1,16.4z M10.9,8.6L10.9,8.6 C10.9,8.5,10.8,8.5,10.9,8.6L10.9,8.6z"},"linkedin")]},menu:{path:[(0,r.jsx)("path",{d:"M0,16v-2h20v2H0z M0,11V9h20v2H0z M0,6V4h20v2H0z"},"menu")]},meteo:{path:[(0,r.jsx)("path",{d:"M8.6,14.2C6.2,13.3,5,10.7,5.9,8.4c0.8-2.3,3.4-3.5,5.7-2.7c0,0,0,0,0,0c2.3,0.9,3.5,3.4,2.7,5.8 C13.5,13.8,10.9,15,8.6,14.2C8.6,14.2,8.6,14.2,8.6,14.2z M13.4,0.6c0.4,0.2,0.7,0.6,0.5,1.1l-0.7,2c-0.2,0.4-0.6,0.7-1.1,0.5 c0,0,0,0,0,0c-0.4-0.2-0.7-0.6-0.5-1.1l0.7-2C12.5,0.7,13,0.4,13.4,0.6C13.4,0.6,13.4,0.6,13.4,0.6z M18.3,4.4 c0.3,0.4,0.2,0.9-0.2,1.2l-1.7,1.2c-0.4,0.3-0.9,0.2-1.2-0.2c0,0,0,0,0,0c-0.3-0.4-0.2-0.9,0.2-1.2l1.7-1.2C17.5,3.9,18,4,18.3,4.4 C18.3,4.4,18.3,4.4,18.3,4.4z M20,10.4c0,0.5-0.4,0.8-0.9,0.8L17,11.1c-0.5,0-0.8-0.4-0.8-0.9c0-0.5,0.4-0.8,0.9-0.8l2.1,0.1 C19.6,9.5,20,9.9,20,10.4L20,10.4z M17.9,16.2c-0.3,0.4-0.8,0.4-1.2,0.1c0,0,0,0,0,0l-1.6-1.3c-0.4-0.3-0.4-0.8-0.1-1.2 c0.3-0.4,0.8-0.4,1.2-0.1c0,0,0,0,0,0l1.6,1.3C18.1,15.3,18.1,15.8,17.9,16.2L17.9,16.2z M12.7,19.7c-0.4,0.1-0.9-0.1-1-0.6 c0,0,0,0,0,0l-0.6-2c-0.1-0.4,0.1-0.9,0.6-1c0.4-0.1,0.9,0.1,1,0.6c0,0,0,0,0,0l0.6,2C13.4,19.1,13.2,19.5,12.7,19.7L12.7,19.7z M6.6,19.4c-0.4-0.2-0.7-0.6-0.5-1.1l0.7-2c0.2-0.4,0.6-0.7,1.1-0.5c0,0,0,0,0,0c0.4,0.2,0.7,0.6,0.5,1.1l-0.7,2 C7.5,19.4,7,19.6,6.6,19.4C6.6,19.4,6.6,19.4,6.6,19.4L6.6,19.4z M1.7,15.6c-0.3-0.4-0.2-0.9,0.2-1.2l1.7-1.2 C4,13,4.5,13.1,4.8,13.5c0,0,0,0,0,0c0.3,0.4,0.2,0.9-0.2,1.2l-1.7,1.2C2.5,16.1,1.9,16,1.7,15.6C1.7,15.6,1.7,15.6,1.7,15.6z M0,9.7c0-0.5,0.4-0.8,0.9-0.8l2.1,0.1c0.5,0,0.8,0.4,0.8,0.9c0,0.5-0.4,0.8-0.9,0.8l-2.1-0.1C0.3,10.5,0,10.1,0,9.7z M2.1,3.9 c0.3-0.4,0.8-0.4,1.2-0.1c0,0,0,0,0,0L4.9,5c0.4,0.3,0.4,0.8,0.1,1.2C4.8,6.5,4.2,6.6,3.9,6.3c0,0,0,0,0,0L2.2,5 C1.9,4.7,1.8,4.2,2.1,3.9z M7.2,0.4c0.4-0.1,0.9,0.1,1,0.6c0,0,0,0,0,0l0.6,2C9,3.4,8.7,3.9,8.3,4c-0.4,0.1-0.9-0.1-1-0.6 c0,0,0,0,0,0l-0.6-2C6.5,1,6.8,0.5,7.2,0.4z"},"meteo")]},mute:{path:[(0,r.jsx)("path",{d:"M7.5,8l4-4v12l-4-4h-2c-0.6,0-1-0.4-1-1V9c0-0.6,0.4-1,1-1H7.5z"},"key")]},pause:{path:[(0,r.jsx)("path",{d:"M5.5,4h3v12h-3V4z M11.5,4v12h3V4H11.5z"},"pause")]},play:{path:[(0,r.jsx)("path",{d:"M18,10L2,18V2L18,10z"},"play")]},podcast:{path:[(0,r.jsx)("path",{d:"M11,15.9C11,15.9,11,16,11,15.9l0,2.1h1c0.6,0,1,0.4,1,1s-0.4,1-1,1H8c-0.6,0-1-0.4-1-1s0.4-1,1-1h1v-2 c0,0,0-0.1,0-0.1C5.6,15.4,3,12.5,3,9c0-0.6,0.4-1,1-1s1,0.4,1,1c0,2.8,2.2,5,5,5s5-2.2,5-5c0-0.6,0.4-1,1-1s1,0.4,1,1 C17,12.5,14.4,15.4,11,15.9z M10,12c1.7,0,3-1.3,3-3V3c0-1.7-1.3-3-3-3S7,1.3,7,3v6C7,10.7,8.3,12,10,12z"},"podcast")]},podcast2:{path:[(0,r.jsxs)("g",{children:[(0,r.jsx)("path",{d:"M105.7,91.5c0-7.8-6.4-14.2-14.2-14.2s-14.2,6.4-14.2,14.2c0,7,5.1,12.8,11.7,14v24c0,1.4,1.1,2.5,2.5,2.5s2.5-1.1,2.5-2.5 v-24C100.6,104.3,105.7,98.5,105.7,91.5z M91.5,100.7c-5.1,0-9.2-4.1-9.2-9.2s4.1-9.2,9.2-9.2s9.2,4.1,9.2,9.2 S96.6,100.7,91.5,100.7z"}),(0,r.jsx)("path",{d:"M117.5,45c-0.2-0.1-0.3-0.2-0.5-0.2c-7.6-4.2-16.3-6.6-25.5-6.6c-9.3,0-18.1,2.5-25.7,6.7c-0.1,0-0.1,0-0.2,0.1 c-4.9,2.8-9.3,6.3-13,10.4c-0.1,0.1-0.1,0.1-0.2,0.2c-0.5,0.6-1,1.2-1.5,1.8c-0.1,0.1-0.2,0.3-0.3,0.4c-0.3,0.4-0.6,0.8-1,1.2 c-0.2,0.3-0.5,0.6-0.7,0.9c-0.1,0.2-0.2,0.3-0.4,0.5C43.2,67.9,39.8,77,39,86.7c0,0.3-0.1,0.7-0.1,1c0,0.3,0,0.7-0.1,1 c0,0.7,0,1.3-0.1,2c0,0.1,0,0.1,0,0.2c0,0,0,0,0,0c0,0,0,0.1,0,0.1c0,18.9,10.3,36.5,26.8,46c0.4,0.2,0.8,0.3,1.2,0.3 c0.9,0,1.7-0.5,2.2-1.3c0.7-1.2,0.3-2.7-0.9-3.4c-15-8.6-24.2-24.5-24.2-41.6c0-1,0-2.1,0.1-3.1c0-0.1,0-0.2,0-0.3 c0.7-9.5,4.1-18.4,9.8-25.7c0.1-0.1,0.2-0.2,0.3-0.4c0.5-0.6,1-1.2,1.5-1.8c0.2-0.2,0.3-0.4,0.5-0.6c0.6-0.7,1.2-1.3,1.8-1.9 c0.3-0.3,0.5-0.5,0.8-0.8c0.4-0.4,0.8-0.7,1.2-1.1c0.4-0.3,0.7-0.6,1.1-0.9c0.3-0.3,0.7-0.6,1-0.8c0.4-0.3,0.9-0.7,1.3-1 c0.6-0.4,1.2-0.8,1.8-1.2c0.4-0.2,0.7-0.5,1.1-0.7c0.4-0.3,0.9-0.6,1.3-0.8c7.1-4.2,15.3-6.6,24.1-6.6c26.3,0,47.7,21.4,47.7,47.7 c0,0.2,0,0.4,0.1,0.6c-0.2,16.9-9.4,32.7-24.2,41.1c-1.2,0.7-1.6,2.2-0.9,3.4c0.5,0.8,1.3,1.3,2.2,1.3c0.4,0,0.8-0.1,1.2-0.3 c16.5-9.4,26.8-27.1,26.8-46C144.3,72,134,54.4,117.5,45z"}
20),(0,r.jsx)("path",{d:"M125.4,92c0.1-0.2,0.1-0.5,0.1-0.7c0-10.1-4.4-19.2-11.4-25.4c-0.2-0.2-0.4-0.4-0.7-0.6c-0.1-0.1-0.3-0.2-0.4-0.3 c-1.4-1.2-2.9-2.2-4.5-3.1c-0.1-0.1-0.2-0.1-0.3-0.1c-4.9-2.8-10.6-4.4-16.6-4.4c-6,0-11.6,1.6-16.5,4.3c-0.2,0.1-0.5,0.1-0.7,0.3 C63.8,68,57.5,79.1,57.5,91.3c0,12.1,6.5,23.3,16.9,29.5c0.4,0.2,0.8,0.3,1.3,0.3c0.9,0,1.7-0.4,2.2-1.2c0.7-1.2,0.3-2.7-0.9-3.4 c-8.7-5.1-14.2-14.5-14.4-24.5c0-0.2,0.1-0.4,0.1-0.6c0-16,13-29,29-29c6.9,0,13.3,2.4,18.2,6.5c0.2,0.1,0.3,0.3,0.5,0.4 c0.1,0.1,0.2,0.2,0.4,0.3c1.4,1.2,2.7,2.6,3.8,4.1c3.9,5.1,5.9,11.2,5.9,17.6c0,10.3-5.5,19.9-14.5,25.1c-1.2,0.7-1.6,2.2-0.9,3.4 c0.5,0.8,1.3,1.2,2.2,1.2c0.4,0,0.9-0.1,1.3-0.3C118.7,114.8,125.1,103.8,125.4,92z"})]})]},search:{path:[(0,r.jsx)("path",{d:"M17.8,16.4l-2.1-2.1c0,0,0,0-0.1,0c2.1-2.7,1.9-6.7-0.6-9.1c-2.7-2.7-7.2-2.7-9.9,0c-2.7,2.7-2.7,7.2,0,9.9 C6.4,16.3,8.1,17,10,17c1.5,0,3-0.5,4.2-1.4c0,0,0,0,0,0.1l2.1,2.1c0.4,0.4,1,0.4,1.4,0C18.2,17.4,18.2,16.8,17.8,16.4z M5.8,14.2 c-2.3-2.3-2.3-6.1,0-8.5c2.3-2.3,6.1-2.3,8.5,0c2.3,2.3,2.3,6.1,0,8.5C13.1,15.4,11.6,16,10,16C8.4,16,6.9,15.4,5.8,14.2z"},"search")]},share:{path:[(0,r.jsx)("path",{d:"M13.5,12c-0.6,0-1.1,0.2-1.4,0.6l-3.6-2.1c0-0.2,0.1-0.3,0.1-0.5s0-0.4-0.1-0.5l3.6-2.1C12.4,7.8,12.9,8,13.5,8 c1.1,0,2-0.9,2-2s-0.9-2-2-2s-2,0.9-2,2c0,0.2,0,0.4,0.1,0.5L7.9,8.6C7.6,8.2,7.1,8,6.5,8c-1.1,0-2,0.9-2,2s0.9,2,2,2 c0.6,0,1.1-0.2,1.4-0.6l3.6,2.1c0,0.2-0.1,0.3-0.1,0.5c0,1.1,0.9,2,2,2s2-0.9,2-2S14.6,12,13.5,12z"},"share")]},spotify:{path:[(0,r.jsx)("path",{d:"M10,18c4.4,0,8-3.6,8-8s-3.6-8-8-8s-8,3.6-8,8S5.6,18,10,18z M13.2,13.8L13.2,13.8c-0.5,0-2.2-1.9-7-0.9 c-0.1,0-0.3,0.1-0.4,0.1c-0.6,0-0.7-0.9-0.1-1.1c2.6-0.6,5.3-0.5,7.6,0.8C14,13.1,13.7,13.8,13.2,13.8L13.2,13.8z M14.1,11.7 c-0.1,0-0.1,0-0.4-0.1c-2-1.2-5-1.7-7.7-0.9c-0.2,0-0.2,0.1-0.4,0.1c-0.7,0-0.9-1.1-0.1-1.3c3.1-0.9,6.5-0.4,8.9,1 c0.3,0.2,0.4,0.4,0.4,0.6C14.7,11.4,14.5,11.7,14.1,11.7z M5,6.7c3-0.9,7.6-0.6,10.4,1.1c0.7,0.4,0.4,1.5-0.3,1.5l0,0 c-0.2,0-0.3,0-0.4-0.1c-2.3-1.4-6.4-1.7-9.1-1c-0.1,0-0.3,0.1-0.4,0.1c-0.4,0-0.8-0.3-0.8-0.8C4.5,7,4.7,6.7,5,6.7L5,6.7z"},"spotify")]},stop:{path:[(0,r.jsx)("path",{d:"M15.5,15.5v-11h-11v11H15.5z"},"stop")]},twitter:{path:[(0,r.jsx)("path",{d:"M14.3134 2.5H16.6135L11.5884 8.85385L17.5 17.5H12.8713L9.24593 12.2562L5.09769 17.5H2.7962L8.17098 10.7038L2.5 2.5H7.24621L10.5232 7.29308L14.3134 2.5ZM13.5061 15.9769H14.7806L6.55368 3.94308H5.186L13.5061 15.9769Z"},"twitter")]},volume:{path:[(0,r.jsx)("path",{d:"M7.5,8l4-4v12l-4-4h-2c-0.6,0-1-0.4-1-1V9c0-0.6,0.4-1,1-1H7.5z M13.5,8v4c1.1,0,2-0.9,2-2S14.6,8,13.5,8z"},"volume")]},webcam:{path:[(0,r.jsx)("path",{d:"M16.3,14.9c0.8,1.2,1.2,2.5,1.2,4c0,0.5-0.4,1-1,1h-13c-0.5,0-1-0.4-1-1c0-1.5,0.4-2.9,1.2-4 c1.6,1.6,3.8,2.5,6.3,2.5S14.7,16.5,16.3,14.9z M18.3,8.3c0,4.6-3.7,8.3-8.3,8.3s-8.3-3.7-8.3-8.3S5.4,0,10,0S18.3,3.7,18.3,8.3z M14.2,8.3c0-2.3-1.9-4.2-4.2-4.2S5.9,6,5.9,8.3s1.9,4.2,4.2,4.2S14.2,10.6,14.2,8.3z M10,6.7c-0.9,0-1.7,0.7-1.7,1.7S9.1,10,10,10 c0.9,0,1.7-0.7,1.7-1.7S10.9,6.7,10,6.7z"},"webcam")]},youtube:{path:[(0,r.jsx)("path",{d:"M17.5,6.2c-0.2-0.7-0.7-1.2-1.4-1.4C14.9,4.5,10,4.5,10,4.5s-4.9,0-6.1,0.3C3.2,5,2.7,5.6,2.5,6.2C2.2,7.5,2.2,10,2.2,10 s0,2.5,0.3,3.8c0.2,0.7,0.7,1.2,1.4,1.4c1.2,0.3,6.1,0.3,6.1,0.3s4.9,0,6.1-0.3c0.7-0.2,1.2-0.7,1.4-1.4c0.3-1.2,0.3-3.8,0.3-3.8 S17.8,7.5,17.5,6.2z M8.4,12.3V7.7l4.1,2.3L8.4,12.3z"},"key")]},aries:{path:[(0,r.jsx)("path",{d:"M13.6,2.5c-1.6,0-2.9,0.9-3.6,2.3C9.4,3.4,8,2.5,6.4,2.5c-2.2,0-3.9,1.8-3.9,3.9c0,1,0.4,2,1.1,2.7c0,0.1,0.2,0.1,0.3,0.1c0.1,0,0.2,0,0.3-0.1c0.2-0.2,0.2-0.4,0-0.5C3.5,8,3.2,7.2,3.2,6.4c0-1.8,1.4-3.2,3.2-3.2s3.2,1.4,3.2,3.2v10.7c0,0.2,0.2,0.4,0.4,0.4s0.4-0.2,0.4-0.4c0-1.8,0-3.2,0-4.1c0-1.5,0-3.7,0-6.6c0-1.8,1.4-3.2,3.2-3.2c1.8,0,3.2,1.4,3.2,3.2c0,0.8-0.3,1.6-0.8,2.2c-0.2,0.2-0.2,0.4,0,0.5c0.2,0.2,0.4,0.2,0.5,0c0.7-0.7,1.1-1.7,1.1-2.7C17.5,4.2,15.8,2.5,13.6,2.5z"},"aries")]},taurus:{path:[(0,r.jsx)("path",{d:"M14.3,12.4c0,2.4-1.9,4.3-4.3,4.3s-4.3-1.9-4.3-4.3c0-2.4,1.9-4.3,4.3-4.3S14.3,10.1,14.3,12.4z M16.8,2.5c-1.9,0-2.9,1.4-3.7,2.6c-0.8,1.2-1.6,2.3-3.1,2.3S7.7,6.3,6.9,5.1C6.1,3.9,5.1,2.5,3.2,2.5C3,2.5,2.9,2.7,2.9,2.9c0,0.2,0.2,0.4,0.4,0.4c1.5,0,2.3,1.1,3.1,2.3c0.6,0.8,1.1,1.7,2,2.1C6.4,8.4,5,10.3,5,12.4c0,2.8,2.3,5,5,5s5-2.3,5-5c0-2.2-1.4-4.1-3.3-4.7c0.9-0.5,1.5-1.4,2-2.1c0.8-1.2,1.6-2.3,3.1-2.3c0.2,0,0.4-0.2,0.4-0.4C17.1,2.7,17,2.5,16.8,2.5z"},"taurus")]},pisces:{path:[(0,r.jsx)("path",{d:"M16,9.6h-3.8c0.1-2.6,0.8-4.9,2.1-6.5c0.2-0.2,0.1-0.4,0-0.5c-0.2-0.2-0.4-0.1-0.5,0c-1.4,1.8-2.3,4.3-2.3,7h-3c-0.1-2.7-0.9-5.3-2.3-7C6,2.5,5.8,2.5,5.6,2.6C5.5,2.8,5.5,3,5.6,3.1c1.3,1.6,2.1,3.9,2.1,6.5H4c-0.2,0-0.4,0.2-0.4,0.4c0,0.2,0.2,0.4,0.4,0.4h3.8c-0.1,2.6-0.8,4.9-2.1,6.5c-0.2,0.2-0.1,0.4,0,0.5c0.1,0.1,0.2,0.1,0.2,0.1c0.1,0,0.2,0,0.3-0.2c1.4-1.7,2.3-4.3,2.3-7h3c0.1,2.7,0.9,5.3,2.3,7c0.1,0.1,0.2,0.2,0.3,0.2c0.1,0,0.2,0,0.2-0.1c0.2-0.2,0.2-0.4,0-0.5c-1.3-1.6-2.1-4-2.1-6.5H16c0.2,0,0.4-0.2,0.4-0.4C16.4,9.8,16.2,9.6,16,9.6z"},"pisces")]},aquarius:{path:[(0,r.jsx)("path",{d:"M12.4,5.1c0.2,0,0.4,0.2,0.4,0.4c0,1.1,0.9,2,2,2c1.1,0,2-0.9,2-2c0-0.2,0.2-0.4,0.4-0.4c0.2,0,0.4,0.2,0.4,0.4c0,1.5-1.2,2.7-2.7,2.7c-1.1,0-1.9-0.6-2.4-1.4C11.9,7.7,11,8.2,10,8.2S8.1,7.7,7.6,6.9C7.1,7.7,6.3,8.2,5.3,8.2C3.7,8.2,2.5,7,2.5,5.5c0-0.2,0.2-0.4,0.4-0.4c0.2,0,0.4,0.2,0.4,0.4c0,1.1,0.9,2,2,2c1.1,0,2-0.9,2-2c0-0.2,0.2-0.4,0.4-0.4C7.9,5.1,8,5.2,8,5.5c0,1.1,0.9,2,2,2s2-0.9,2-2C12,5.2,12.1,5.1,12.4,5.1L12.4,5.1z M12.4,11.8c0.2,0,0.4,0.2,0.4,0.4c0,1.1,0.9,2,2,2c1.1,0,2-0.9,2-2c0-0.2,0.2-0.4,0.4-0.4c0.2,0,0.4,0.2,0.4,0.4c0,1.5-1.2,2.7-2.7,2.7c-1.1,0-1.9-0.6-2.4-1.4c-0.5,0.8-1.4,1.4-2.4,1.4s-1.9-0.6-2.4-1.4c-0.5,0.8-1.4,1.4-2.4,1.4c-1.5,0-2.8-1.2-2.8-2.7c0-0.2,0.2-0.4,0.4-0.4c0.2,0,0.4,0.2,0.4,0.4c0,1.1,0.9,2,2,2c1.1,0,2-0.9,2-2c0-0.2,0.2-0.4,0.4-0.4c0.2,0,0.4,0.2,0.4,0.4c0,1.1,0.9,2,2,2c1.1,0,2-0.9,2-2C12,11.9,12.1,11.8,12.4,11.8L12.4,11.8z"},"aquarius")]},capricorn:{path:[(0,r.jsx)("path",{d:"M14.1,16.7c-1.3,0-2.3-1.1-2.3-2.3v-0.8l0.5-0.6c0.5-0.6,1.1-1,1.9-1c1.3,0,2.3,1,2.3,2.3C16.4,15.6,15.3,16.7,14.1,16.7z M14.1,11.3c-0.9,0-1.8,0.4-2.3,1.1V5.6c0-1.7-1.4-3.1-3.1-3.1c-1.2,0-2.2,0.6-2.7,1.6c-0.5-1-1.5-1.6-2.7-1.6C3,2.5,2.9,2.6,2.9,2.9c0,0.2,0.2,0.4,0.4,0.4c1.3,0,2.3,1.1,2.3,2.3v9.2c0,0.2,0.2,0.4,0.4,0.4c0.2,0,0.4-0.2,0.4-0.4V5.6c0-1.3,1-2.3,2.3-2.3s2.3,1,2.3,2.3v7.8l-2.6,3.5c-0.1,0.2-0.1,0.4,0.1,0.5c0.1,0,0.2,0.1,0.2,0.1c0.1,0,0.2,0,0.3-0.2l2-2.7c0.1,1.6,1.5,2.8,3.1,2.8c1.7,0,3.1-1.4,3.1-3.1S15.8,11.3,14.1,11.3z"},"capricorn")]},cancer:{path:[(0,r.jsx)("path",{d:"M7,4.3c-1.3,0-2.4,1.1-2.4,2.4C4.6,8,5.7,9.1,7,9.1S9.4,8,9.4,6.7C9.4,5.4,8.3,4.3,7,4.3z M10.2,2.5c2.3,0,4.4,0.8,5.9,2.2c0.2,0.2,0.2,0.4,0,0.5c-0.2,0.2-0.4,0.2-0.5,0c-1.3-1.2-3.2-2-5.3-2c-1,0-1.8,0.2-2.5,0.4c1.4,0.3,2.5,1.5,2.5,3.1c0,1.7-1.4,3.2-3.2,3.2c-1.7,0-3.2-1.4-3.2-3.2c0-0.6,0.1-1.1,0.4-1.5C4.5,4.7,6.1,2.5,10.2,2.5z M13,10.9c-1.3,0-2.4,1.1-2.4,2.4c0,1.3,1.1,2.4,2.4,2.4s2.4-1.1,2.4-2.4C15.4,12,14.3,10.9,13,10.9z M12.9,10.2c1.7,0,3.2,1.4,3.2,3.2c0,0.6-0.1,1.1-0.4,1.5c-0.2,0.5-1.8,2.7-5.9,2.7c-2.3,0-4.4-0.8-5.8-2.2c-0.2-0.2-0.2-0.4,0-0.5c0.2-0.2,0.4-0.2,0.5,0c1.3,1.2,3.2,2,5.3,2c1,0,1.8-0.2,2.5-0.4c-1.4-0.3-2.5-1.5-2.5-3.1C9.8,11.6,11.2,10.2,12.9,10.2z"},"cancer")]},leo:{path:[(0,r.jsx)("path",{d:"M6.1,13.9c-1.1,0-1.9-0.8-1.9-1.9c0-1.1,0.8-1.9,1.9-1.9c1.1,0,1.9,0.8,1.9,1.9C7.9,13.1,7.1,13.9,6.1,13.9zM16.2,14.5c-0.2,0-0.4,0.2-0.4,0.4c0,1.1-0.8,1.9-1.9,1.9c-1.1,0-1.9-0.8-1.9-1.9c0-1.3,0.8-2.3,1.7-3.3c1-1.2,2-2.4,2-4.2c0-2.7-2.2-4.9-4.9-4.9S6.1,4.7,6.1,7.4c0,0.7,0.2,1.5,0.5,2.1c-0.2,0-0.3,0-0.5,0c-1.5,0-2.6,1.2-2.6,2.6s1.2,2.6,2.6,2.6c1.5,0,2.6-1.2,2.6-2.6c0-0.7-0.3-1.3-0.8-1.9C7.2,9.4,6.8,8.4,6.8,7.4c0-2.3,1.8-4.1,4.1-4.1c2.3,0,4.1,1.8,4.1,4.1c0,1.5-0.9,2.6-1.8,3.7c-0.9,1.1-1.9,2.3-1.9,3.8c0,1.5,1.2,2.6,2.6,2.6c1.5,0,2.6-1.2,2.6-2.6C16.6,14.7,16.4,14.5,16.2,14.5z"},"leo")]},libra:{path:[(0,r.jsx)("path",{d:"M17.1,13.6h-4.4c-0.2,0-0.3-0.1-0.4-0.3c0-0.2,0-0.3,0.2-0.4c1.5-0.9,2.4-2.5,2.4-4.2c0-2.7-2.2-4.9-4.9-4.9C7.3,3.8,5.1,6,5.1,8.7c0,1.7,0.9,3.3,2.4,4.2c0.1,0.1,0.2,0.3,0.2,0.4c0,0.2-0.2,0.3-0.4,0.3H2.9c-0.2,0-0.4-0.2-0.4-0.4s0.2-0.4,0.4-0.4h3.3c-1.1-1-1.8-2.5-1.8-4.1c0-3.1,2.5-5.6,5.6-5.6s5.6,2.5,5.6,5.6c0,1.6-0.7,3.1-1.8,4.1h3.3c0.2,0,0.4,0.2,0.4,0.4S17.4,13.6,17.1,13.6z M2.9,15.9L2.9,15.9c-0.2,0-0.4,0.2-0.4,0.4c0,0.2,0.2,0.4,0.4,0.4h14.3l0,0c0.2,0,0.3-0.2,0.3-0.4c0-0.2-0.2-0.4-0.4-0.4H2.9z"},"libra")]},virgo:{path:[(0,r.jsx)("path",{d:"M13.1,7.5c0-0.8,0.6-1.4,1.4-1.4c0.8,0,1.4,0.6,1.4,1.4c0,0.3-0.2,0.7-0.3,0.9c-0.2,0.3-2.5,3.4-2.5,3.4V7.5z M16.3,14.9c-0.2,0-0.4,0.2-0.4,0.4c0,0.8-0.6,1.4-1.4,1.4c-0.8,0-1.4-0.6-1.4-1.4v-2.2l3.1-4.2c0.3-0.4,0.5-0.9,0.5-1.4c0-1.2-0.9-2.2-2.2-2.2c-0.6,0-1.1,0.2-1.4,0.5V4.6c0,0,0,0,0,0c0-1.2-1-2-2.2-2c-0.8,0-1.4,0.4-1.8,0.9C8.7,3,8,2.6,7.3,2.6C6.5,2.6,5.8,3,5.5,3.5C5.1,3,4.5,2.6,3.7,2.6C3.5,2.6,3.3,2.7,3.3,3c0,0.2,0.2,0.4,0.4,0.4c0.8,0,1.4,0.6,1.4,1.4v8.3c0,0.2,0.2,0.4,0.4,0.4c0.2,0,0.4-0.2,0.4-0.4V4.8v0c0-0.8,0.6-1.4,1.4-1.4c0.8,0,1.4,0.6,1.4,1.4v8.3c0,0.2,0.2,0.4,0.4,0.4c0.2,0,0.4-0.2,0.4-0.4V4.7c0-0.8,0.6-1.4,1.4-1.4c0.8,0,1.4,0.6,1.4,1.4v8.1l-2.8,3.8c-0.1,0.2-0.1,0.4,0.1,0.5c0.1,0,0.2,0.1,0.2,0.1c0.1,0,0.2,0,0.3-0.2l2.2-3v1.2c0,1.2,0.9,2.2,2.2,2.2c1.2,0,2.2-1,2.2-2.2C16.7,15,16.5,14.9,16.3,14.9z"},"virgo")]},gemini:{path:[(0,r.jsx)("path",{d:"M7.7,14.5V5.5C8.4,5.7,9.2,5.8,10,5.8c0.8,0,1.5-0.1,2.3-0.3v9c-0.7-0.2-1.5-0.3-2.3-0.3C9.2,14.2,8.4,14.2,7.7,14.5zM13,14.8V5.2c1.1-0.5,2-1.2,2.8-2.1c0.1-0.2,0.1-0.4,0-0.5c-0.2-0.1-0.4-0.1-0.5,0C13.9,4.2,12,5.1,10,5.1C8,5.1,6,4.2,4.8,2.6c-0.1-0.2-0.4-0.2-0.5,0C4.1,2.7,4,3,4.2,3.1C5,4,5.9,4.8,7,5.2v9.5c-1.1,0.5-2,1.2-2.8,2.1c-0.1,0.2-0.1,0.4,0,0.5c0.2,0.1,0.4,0.1,0.5,0C6,15.8,8,14.9,10,14.9c2,0,3.9,0.9,5.2,2.5c0.1,0.1,0.2,0.2,0.3,0.2c0.1,0,0.2,0,0.2-0.1c0.2-0.1,0.2-0.4,0-0.5C15,16,14.1,15.2,13,14.8z"},"gemini")]},scorpio:{path:[(0,r.jsx)("path",{d:"M16.6,15.4l-1.1-1.5c-0.1-0.2-0.4-0.2-0.5-0.1c-0.2,0.1-0.2,0.4-0.1,0.5l0.7,0.9h-1.1c-0.8,0-1.4-0.6-1.4-1.4V4.7c0-1.2-0.9-2.1-2.2-2.1c-0.8,0-1.4,0.4-1.8,0.9C8.7,2.9,8,2.6,7.3,2.6c-0.8,0-1.4,0.3-1.8,0.9c-0.4-0.6-1.1-1-1.8-1c-0.2,0-0.4,0.2-0.4,0.4s0.2,0.4,0.4,0.4c0.8,0,1.4,0.6,1.4,1.4V13c0,0.2,0.2,0.4,0.4,0.4c0.2,0,0.4-0.2,0.4-0.4V4.7c0-0.8,0.6-1.4,1.4-1.4s1.4,0.6,1.4,1.4V13c0,0.2,0.2,0.4,0.4,0.4c0.2,0,0.4-0.2,0.4-0.4V4.7c0-0.8,0.6-1.4,1.4-1.4c0.8,0,1.4,0.6,1.4,1.4v9.1c0,1.2,0.9,2.2,2.2,2.2h1.1l-0.7,0.9c-0.1,0.2-0.1,0.4,0.1,0.5c0.1,0,0.2,0.1,0.2,0.1c0.1,0,0.2,0,0.3-0.2l1.1-1.5C16.7,15.7,16.7,15.6,16.6,15.4z"},"scorpio")]},sagittarius:{path:[(0,r.jsx)("path",{d:"M17.1,2.5h-5.7c-0.2,0-0.4,0.2-0.4,0.4s0.2,0.4,0.4,0.4h4.8l-9.1,9.1L4.5,9.7C4.4,9.6,4.2,9.6,4,9.7c-0.2,0.2-0.2,0.4,0,0.5l2.6,2.6l-4,4c-0.2,0.2-0.2,0.4,0,0.5c0.1,0.1,0.2,0.1,0.3,0.1c0.1,0,0.2,0,0.3-0.
201l4-4L9.7,16c0.1,0.1,0.2,0.1,0.3,0.1s0.2,0,0.3-0.1c0.2-0.2,0.2-0.4,0-0.5l-2.6-2.6l9.1-9.1v4.8c0,0.2,0.2,0.4,0.4,0.4c0.2,0,0.4-0.2,0.4-0.4V2.9C17.5,2.6,17.4,2.5,17.1,2.5z"},"sagittarius")]},thumbsUp:{path:[(0,r.jsx)("path",{d:"M8.864.046C7.908-.193 7.02.53 6.956 1.466c-.072 1.051-.23 2.016-.428 2.59-.125.36-.479 1.013-1.04 1.639-.557.623-1.282 1.178-2.131 1.41C2.685 7.288 2 7.87 2 8.72v4.001c0 .845.682 1.464 1.448 1.545 1.07.114 1.564.415 2.068.723l.048.03c.272.165.578.348.97.484.397.136.861.217 1.466.217h3.5c.937 0 1.599-.477 1.934-1.064a1.86 1.86 0 0 0 .254-.912c0-.152-.023-.312-.077-.464.201-.263.38-.578.488-.901.11-.33.172-.762.004-1.149.069-.13.12-.269.159-.403.077-.27.113-.568.113-.857 0-.288-.036-.585-.113-.856a2.144 2.144 0 0 0-.138-.362 1.9 1.9 0 0 0 .234-1.734c-.206-.592-.682-1.1-1.2-1.272-.847-.282-1.803-.276-2.516-.211a9.84 9.84 0 0 0-.443.05 9.365 9.365 0 0 0-.062-4.509A1.38 1.38 0 0 0 9.125.111L8.864.046zM11.5 14.721H8c-.51 0-.863-.069-1.14-.164-.281-.097-.506-.228-.776-.393l-.04-.024c-.555-.339-1.198-.731-2.49-.868-.333-.036-.554-.29-.554-.55V8.72c0-.254.226-.543.62-.65 1.095-.3 1.977-.996 2.614-1.708.635-.71 1.064-1.475 1.238-1.978.243-.7.407-1.768.482-2.85.025-.362.36-.594.667-.518l.262.066c.16.04.258.143.288.255a8.34 8.34 0 0 1-.145 4.725.5.5 0 0 0 .595.644l.003-.001.014-.003.058-.014a8.908 8.908 0 0 1 1.036-.157c.663-.06 1.457-.054 2.11.164.175.058.45.3.57.65.107.308.087.67-.266 1.022l-.353.353.353.354c.043.043.105.141.154.315.048.167.075.37.075.581 0 .212-.027.414-.075.582-.05.174-.111.272-.154.315l-.353.353.353.354c.047.047.109.177.005.488a2.224 2.224 0 0 1-.505.805l-.353.353.353.354c.006.005.041.05.041.17a.866.866 0 0 1-.121.416c-.165.288-.503.56-1.066.56z"},"thumsbUp")]},thumbsDown:{path:[(0,r.jsx)("path",{d:"M8.864 15.674c-.956.24-1.843-.484-1.908-1.42-.072-1.05-.23-2.015-.428-2.59-.125-.36-.479-1.012-1.04-1.638-.557-.624-1.282-1.179-2.131-1.41C2.685 8.432 2 7.85 2 7V3c0-.845.682-1.464 1.448-1.546 1.07-.113 1.564-.415 2.068-.723l.048-.029c.272-.166.578-.349.97-.484C6.931.08 7.395 0 8 0h3.5c.937 0 1.599.478 1.934 1.064.164.287.254.607.254.913 0 .152-.023.312-.077.464.201.262.38.577.488.9.11.33.172.762.004 1.15.069.13.12.268.159.403.077.27.113.567.113.856 0 .289-.036.586-.113.856-.035.12-.08.244-.138.363.394.571.418 1.2.234 1.733-.206.592-.682 1.1-1.2 1.272-.847.283-1.803.276-2.516.211a9.877 9.877 0 0 1-.443-.05 9.364 9.364 0 0 1-.062 4.51c-.138.508-.55.848-1.012.964l-.261.065zM11.5 1H8c-.51 0-.863.068-1.14.163-.281.097-.506.229-.776.393l-.04.025c-.555.338-1.198.73-2.49.868-.333.035-.554.29-.554.55V7c0 .255.226.543.62.65 1.095.3 1.977.997 2.614 1.709.635.71 1.064 1.475 1.238 1.977.243.7.407 1.768.482 2.85.025.362.36.595.667.518l.262-.065c.16-.04.258-.144.288-.255a8.34 8.34 0 0 0-.145-4.726.5.5 0 0 1 .595-.643h.003l.014.004.058.013a8.912 8.912 0 0 0 1.036.157c.663.06 1.457.054 2.11-.163.175-.059.45-.301.57-.651.107-.308.087-.67-.266-1.021L12.793 7l.353-.354c.043-.042.105-.14.154-.315.048-.167.075-.37.075-.581 0-.211-.027-.414-.075-.581-.05-.174-.111-.273-.154-.315l-.353-.354.353-.354c.047-.047.109-.176.005-.488a2.224 2.224 0 0 0-.505-.804l-.353-.354.353-.354c.006-.005.041-.05.041-.17a.866.866 0 0 0-.121-.415C12.4 1.272 12.063 1 11.5 1z"},"thumbsDown")]},startOver:{path:[(0,r.jsx)("path",{d:"M10.373 20.151c4.835 0 8.854 -4.009 8.854 -8.854 0 -4.266 -3.12 -7.894 -7.173 -8.684V1.369c0 -0.614 -0.426 -0.782 -0.898 -0.445l-2.782 1.938c-0.391 0.276 -0.4 0.694 0 0.987l2.756 1.946c0.489 0.346 0.906 0.186 0.906 -0.445V4.106a7.342 7.342 0 0 1 5.698 7.192 7.351 7.351 0 0 1 -7.369 7.378A7.342 7.342 0 0 1 2.986 11.298a7.342 7.342 0 0 1 3.058 -5.965c0.355 -0.267 0.471 -0.675 0.24 -1.04 -0.204 -0.355 -0.684 -0.454 -1.067 -0.151a8.889 8.889 0 0 0 -3.707 7.164c0 4.845 4.009 8.854 8.854 8.854Zm2.853 -5.2c1.44 0 2.382 -1.36 2.382 -3.449 0 -2.098 -0.933 -3.485 -2.382 -3.485 -1.449 0 -2.391 1.369 -2.391 3.485 0 2.089 0.942 3.449 2.391 3.449Zm-5.6 0c1.36 0 2.338 -0.827 2.338 -2a1.6 1.6 0 0 0 -1.306 -1.618c0.605 -0.169 1.085 -0.818 1.085 -1.546 0 -1.04 -0.854 -1.769 -2.071 -1.769 -1.049 0 -1.929 0.596 -2.115 1.431a1.724 1.724 0 0 0 -0.026 0.284c0 0.311 0.204 0.524 0.498 0.524 0.24 0 0.4 -0.134 0.506 -0.409 0.169 -0.542 0.533 -0.836 1.12 -0.836 0.605 0 1.022 0.364 1.022 0.898 0 0.56 -0.426 0.96 -1.031 0.96h-0.373c-0.293 0 -0.489 0.204 -0.489 0.506 0 0.284 0.204 0.506 0.489 0.506h0.409c0.738 0 1.2 0.409 1.2 1.014 0 0.596 -0.524 1.04 -1.244 1.04a1.226 1.226 0 0 1 -1.236 -0.845c-0.116 -0.284 -0.258 -0.409 -0.506 -0.409 -0.284 0 -0.498 0.222 -0.498 0.524 0 0.098 0.009 0.186 0.035 0.284 0.186 0.818 1.12 1.431 2.187 1.431Zm5.6 -1.049c-0.773 0 -1.262 -0.9
2006 -1.262 -2.391 0 -1.511 0.48 -2.426 1.262 -2.426 0.773 0 1.244 0.906 1.244 2.426 0 1.484 -0.48 2.391 -1.244 2.391"},"startOver")]},filter:{path:[(0,r.jsx)("path",{d:"M16.25 3.75v0.15L10.95 9.8 10.625 10.15v5.325L9.375 14.85V10.15L9.05 9.8 3.75 3.9V3.75zM17.5 2.5H2.5v1.875l5.625 6.25v5L11.875 17.5V10.625L17.5 4.375z"},"filter")]},article:{path:[(0,r.jsx)("path",{d:"M14.59 2.59c-.38-.38-.89-.59-1.42-.59H6c-1.1 0-2 .9-2 2v16c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8.83c0-.53-.21-1.04-.59-1.41l-4.82-4.83zM15 18H9c-.55 0-1-.45-1-1s.45-1 1-1h6c.55 0 1 .45 1 1s-.45 1-1 1zm0-4H9c-.55 0-1-.45-1-1s.45-1 1-1h6c.55 0 1 .45 1 1s-.45 1-1 1zm-2-6V3.5L18.5 9H14c-.55 0-1-.45-1-1z"},"article")]},facebook_2:{path:[(0,r.jsxs)("g",{children:[(0,r.jsx)("path",{d:"M24.33,16.51h2.39v-5.2h-3.6c-5.1,0-7.52,3.03-7.52,7.36v4.1h-4v4.94h4v12.58h5.99v-12.58h4l1.13-4.94h-5.13v-3.38c0-1.38.76-2.87,2.74-2.87Z"}),(0,r.jsx)("path",{d:"M.78,12.08c.37-1.95.72-3.9,1.78-5.64C4.99,2.49,8.78.98,13.14.87c5.95-.15,11.91-.14,17.87,0,4.04.1,7.64,1.43,10.1,4.93,1.58,2.26,2.17,4.84,2.21,7.51.09,5.72.13,11.45,0,17.17-.11,4.61-1.71,8.54-6.02,10.88-1.99,1.08-4.18,1.55-6.41,1.58-5.88.07-11.76.13-17.64,0-4.41-.1-8.24-1.59-10.69-5.58-1.06-1.73-1.41-3.69-1.78-5.64V12.08ZM22.11,4.9c-2.92,0-5.84-.06-8.76.01-4.56.11-7.36,2.24-8.19,6.17-.18.83-.31,1.69-.31,2.54-.03,5.53-.1,11.06.01,16.59.11,5.5,2.89,8.44,8.2,8.64,5.99.22,11.99.2,17.98,0,4.42-.15,7.05-2.27,7.89-6.09.15-.68.29-1.38.3-2.08.03-6.3.38-12.61-.19-18.9-.34-3.73-2.83-6.16-6.55-6.67-3.45-.47-6.92-.14-10.38-.21Z"})]},"facebook_2")]},instagram_2:{path:[(0,r.jsxs)("g",{children:[(0,r.jsx)("path",{d:"M.78,12.08c.37-1.95.72-3.9,1.78-5.64C4.99,2.49,8.78.98,13.14.87c5.95-.15,11.91-.14,17.87,0,4.04.1,7.64,1.43,10.1,4.93,1.58,2.26,2.17,4.84,2.21,7.51.09,5.72.13,11.45,0,17.17-.11,4.61-1.71,8.54-6.02,10.88-1.99,1.08-4.18,1.55-6.41,1.58-5.88.07-11.76.13-17.64,0-4.41-.1-8.24-1.59-10.69-5.58-1.06-1.73-1.41-3.69-1.78-5.64V12.08ZM22.11,4.9c-2.92,0-5.84-.06-8.76.01-4.56.11-7.36,2.24-8.19,6.17-.18.83-.31,1.69-.31,2.54-.03,5.53-.1,11.06.01,16.59.11,5.5,2.89,8.44,8.2,8.64,5.99.22,11.99.2,17.98,0,4.42-.15,7.05-2.27,7.89-6.09.15-.68.29-1.38.3-2.08.03-6.3.38-12.61-.19-18.9-.34-3.73-2.83-6.16-6.55-6.67-3.45-.47-6.92-.14-10.38-.21Z"}),(0,r.jsx)("path",{d:"M33.09,21.97c-.02,5.94-4.95,10.82-11,10.89-6.07.07-11.11-4.94-11.09-11.03.02-5.99,5.13-11.01,11.11-10.89,6.14.12,10.99,5,10.97,11.03ZM29,21.91c0-3.78-3.11-6.88-6.93-6.9-3.8-.02-6.96,3.09-6.97,6.86,0,3.78,3.11,6.88,6.93,6.9,3.8.02,6.96-3.09,6.97-6.86Z"}),(0,r.jsx)("path",{d:"M33.39,8.05c1.46-.02,2.7,1.19,2.7,2.64,0,1.38-1.2,2.57-2.61,2.61-1.46.04-2.73-1.15-2.75-2.59-.03-1.45,1.17-2.64,2.67-2.66Z"})]},"instagram_2")]},twitter_2:{path:[(0,r.jsxs)("g",{children:[(0,r.jsx)("path",{d:"M1.59,12.41c.37-1.95.72-3.9,1.78-5.64C5.8,2.82,9.58,1.3,13.95,1.2c5.95-.15,11.91-.14,17.87,0,4.04.1,7.64,1.43,10.1,4.93,1.58,2.26,2.17,4.84,2.21,7.51.09,5.72.13,11.45,0,17.17-.11,4.61-1.71,8.54-6.02,10.88-1.99,1.08-4.18,1.55-6.41,1.58-5.88.07-11.76.13-17.64,0-4.41-.1-8.24-1.59-10.69-5.58-1.06-1.73-1.41-3.69-1.78-5.64V12.41ZM22.92,5.23c-2.92,0-5.84-.06-8.76.01-4.56.11-7.36,2.24-8.19,6.17-.18.83-.31,1.69-.31,2.54-.03,5.53-.1,11.06.01,16.58.11,5.5,2.89,8.44,8.2,8.64,5.99.22,11.99.2,17.98,0,4.42-.15,7.05-2.27,7.89-6.09.15-.68.29-1.38.3-2.08.03-6.3.38-12.61-.19-18.9-.34-3.73-2.83-6.16-6.55-6.67-3.45-.47-6.92-.14-10.38-.21Z"}),(0,r.jsxs)("g",{children:[(0,r.jsx)("path",{d:"M33.77,32.84l-8.19-11.9-.93-1.35-5.86-8.51-.49-.71h-7.2l1.76,2.55,7.79,11.32.93,1.34,6.26,9.09.49.7h7.2l-1.76-2.55ZM29.18,33.76l-6.5-9.45-.93-1.34-7.55-10.96h3.25l6.1,8.87.93,1.34,7.95,11.54h-3.25Z"}),(0,r.jsx)("polygon",{points:"21.75 22.97 22.68 24.31 21.58 25.59 13.16 35.39 11.08 35.39 20.65 24.24 21.75 22.97"}),(0,r.jsx)("polygon",{points:"34.66 10.37 25.58 20.94 24.48 22.21 23.55 20.87 24.65 19.59 30.8 12.43 32.58 10.37 34.66 10.37"})]})]},"twitter_2")]},transcription:{path:[(0,r.jsxs)("g",{transform:"scale(0.6) translate(5, 5)",children:[(0,r.jsx)("path",{d:"M11 9.275c0 5.141-3.892 10.519-10 11.725l-.984-2.126c2.215-.835 4.163-3.742 4.38-5.746-2.491-.392-4.396-2.547-4.396-5.149 0-3.182 2.584-4.979 5.199-4.979 3.015 0 5.801 2.305 5.801 6.275zm13 0c0 5.141-3.892 10.519-10 11.725l-.984-2.126c2.215-.835 4.163-3.742 4.38-5.746-2.491-.392-4.396-2.547-4.396-5.149 0-3.182 2.584-4.979 5.199-4.979 3.015 0 5.801 2.305 5.801 6.275z"})," "]},"transcription")]}},a=e=>{switch(e){case"podcast2":return"39 38 105 105";case"thumbsUp":case"thumbsDown":return"0 0 16 16";case"article":return"0 0 24 24";case"instagram_2":case"facebook_2":return"0 0 43.92 44.09";case"twitter_2":return"0 0 45.14 44.48";default:return"0 0 20 20"}},o=e=>(0,r.jsx)("svg",{version:"1.1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",className:e.n
20ame,x:"0px",y:"0px",viewBox:a(e.name),xmlSpace:"preserve",children:e.children});var s=e=>{let{name:t,frame:n,className:a,style:s,onClick:l}=e;return i[t]?(0,r.jsxs)("i",{className:"icon"+(a?" "+a:"")+(n?" "+n:""),style:s,onClick:l,children:["rounded"===n?(0,r.jsx)(o,{name:"round",children:(0,r.jsx)("circle",{cx:"10",cy:"10",r:"10"})}):null,(0,r.jsx)(o,{name:t,children:i[t].path})]}):null}},3433:function(e,t,n){"use strict";var r=n(5893),i=n(8462),a=n(7294);t.Z=e=>{let{className:t="",url:n,imageSize:o,forceFormat:s,colors:l,doNotForceFitIn:u,ratio:c,quality:d,aside:h=!1,onError:f,...p}=e,[m,g]=(0,a.useState)(!1);return(0,r.jsx)("img",{onError:f||(()=>{"big"===o&&g(!0)}),className:t,style:{alignSelf:"auto"},src:(0,i.tB)(n,o,s,l,u,c,d,m,h),...p})}},5520:function(e,t,n){"use strict";n.d(t,{F6:function(){return a},HF:function(){return i},xF:function(){return r}});let r="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAABDgAAAQ4CAIAAABjcvvYAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyVpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDYuMC1jMDA1IDc5LjE2NDU5MCwgMjAyMC8xMi8wOS0xMTo1Nzo0NCAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIDIyLjEgKE1hY2ludG9zaCkiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6QkQ5NTg2N0Q1NEUxMTFFQjg2NzJCMUM4NEM0MEFGRTIiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6QkQ5NTg2N0U1NEUxMTFFQjg2NzJCMUM4NEM0MEFGRTIiPiA8eG1wTU06RGVyaXZlZEZyb20gc3RSZWY6aW5zdGFuY2VJRD0ieG1wLmlpZDpCRDk1ODY3QjU0RTExMUVCODY3MkIxQzg0QzQwQUZFMiIgc3RSZWY6ZG9jdW1lbnRJRD0ieG1wLmRpZDpCRDk1ODY3QzU0RTExMUVCODY3MkIxQzg0QzQwQUZFMiIvPiA8L3JkZjpEZXNjcmlwdGlvbj4gPC9yZGY6UkRGPiA8L3g6eG1wbWV0YT4gPD94cGFja2V0IGVuZD0iciI/PrGb9YUAAEm0SURBVHja7N3pWiLZmjbgYlYQcR5yqO7zP5A+jv52VqbziKCAwPc20ZVduwYNlSEC7vuHV+4qK7e+EbFiPayp8F//9V+/AAAAZElRCQAAAEEFAABAUAEAAAQVAAAAQQUAABBUAAAABBUAAEBQAQAAEFQAAAAEFQAAQFABAAAQVAAAAEEFAABAUAEAAAQVAAAAQQUAABBUAAAABBUAAABBBQAAEFQAAAAEFQAAQFABAAAQVAAAAEEFAABAUAEAABBUAAAAQQUAAEBQAQAABBUAAABBBQAAEFQAAAAEFQAAQFABAAAQVAAAAAQVAABAUAEAABBUAAAAQQUAAEBQAQAABBUAAABBBQAAQFABAAAEFQAAAEEFAAAQVAAAAAQVAABAUAEAABBUAAAAQQUAAEBQAQAAEFQAAABBBQAAQFABAAAEFQAAAEEFAAAQVAAAAAQVAAAAQQUAABBUAAAABBUAAEBQAQAAEFQAAABBBQAAQFABAAAEFQAAAEEFAABAUAEAAAQVAAAAQQUAABBUAAAABBUAAEBQAQAAEFQAAAAEFQAAQFABAAAQVAAAAEEFAABAUAEAAAQVAAAAQQUAABBUAAAABBUAAABBBQAAEFQAAAAEFQAAQFABAAAQVAAAAEEFAABAUAEAABBUAAAAQQUAAEBQAQAABBUAAABBBQAAEFQAAAAEFQAAQFABAAAQVAAAAAQVAABAUAEAABBUAAAAQQUAAEBQAQAABBUAAABBBQAAQFABAAAEFQAAAEEFAAAQVAAAAAQVAABAUAEAABBUAAAAQQUAAEBQAQAAEFQAAABBBQAAQFABAAAEFQAAAEEFAAAQVAAAAAQVAAAAQQUAABBUAAAABBUAAEBQAQAAEFQAAABBBQAAQFABAAAEFQAAAEEFAABAUAEAAAQVAAAAQQUAABBUAAAABBUAAEBQAQAAEFQAAABBBQAAQFABAAAQVAAAAEEFAABAUAEAAAQVAAAAQQUAABBUAAAABBUAAABBBQAAEFQAAAAEFQAAQFABAAAQVAAAAEEFAABAUAEAAAQVAAAAQQUAAEBQAQAABBUAAABBBQAAEFQAAAAEFQAAQFABAAAQVAAAAAQVAABAUAEAABBUAAAAQQUAAEBQAQAABBUAAABBBQAAEFQAAAAEFQAAAEEFAAAQVAAAAAQVAABAUAEAABBUAAAAQQUAAEBQAQAAEFQAAABBBQAAQFABAAAEFQAAAEEFAAAQVAAAAAQVAABAUAEAABBUAAAABBUAAEBQAQAAEFQAAABBBQAAQFABAAAEFQAAAEEFAABAUAEAAAQVAAAAQQUAABBUAAAABBUAAEBQAQAAEFQAAABBBQAAQFABAAAQVAAAAEEFAABAUAEAAAQVAAAAQQUAABBUAAAABBUAAABBBQAAEFQAAAAEFQAAQFABAAAQVAAAAEEFAABAUAEAAAQVAAAAQQUAAEBQAQAABBUAAABBBQAAEFQAAAAEFQAAQFABAAAQVAAAAAQVAABAUAEAABBUAAAAQQUAAEBQAQAABBUAAABBBQAAEFQAAAAEFQAAAEEFAAAQVAAAAAQVAABAUAEAABBUAAAAQQUAAEBQAQAAEFQAAABBBQAAQFABAAAEFQAAAEEFAAAQVAAAAAQVAABAUAEAABBUAAAABBUAAEBQAQAAEFQAAABBBQAAQFABAAAEFQAAAEEFAAAQVJQAAAAQVAAAAAQVAABAUAEAABBUAAAAQQUAAEBQAQAABBUAAABBBQAAQFABAAAEFQAAAEEFAAAQVAAAAAQVAABAUAEAABBUAAAAQQUAAEBQAQAAEFQAAABBBQAAQFABAAAEFQAAAEEFAAAQVAAAAAQVAAAAQQUAABBUAAAABBUAAEBQAQAAEFQAAABBBQAAQFABAAAEFQAAAEEFAABAUAEAAAQVAAAAQQUAABBUAAAABBUAAEBQAQAAEFQAAAAEFQAAQFABAAAQVAAAAEEFAABAUAEAAAQVAAAAQQUAABBUAAAABBUAAABB
20BQAAyI+yEgDwR+PxeDSR/OGPX+PfJl/Hv/vjf5X8oVAo/PyHhd/Fn4vFYvI1/uefviZ/UHkABBWAVY8iw+FwMBg8/8HwD+b/I5X+oPwXYgyAoALAsmWSfr8/+HcRS/44GJIFLwSkSCmRVSr/rlqtSi8AggoAeYolfxSxJGuZ5B2/VJKv/pRekrjyR6ILgKACQCaMRqPeH0QyyXsseWsk+2N0iaxS+4NkVQwAggoA8xC986ffrU4ySRNdkrT2x9yy9rv4sxIBCCoATL8L/jgR4WQhi93zm1vu7u5+mSzWj7iyPlGr1UwSAxBUAPhQOOl2uxFOkk2BebdId52JXyZbJEdoqdfrQguAoAJAKoPBoDsREcXIyYxE6kuK/MtkpCXiSn2iUqkoDoCgAsD/Go/HT09PnU4nus4/l1gwH5EGHybiz7VaLeJKo9FYW1szzAIgqACsqORz/egix1eDJ1mQrGm5ubkplUqRWDY2NuKrrcMABBWAVcknEU6S9RI27MqmyI3tiUKh0JiI0CKxAAgqAMuZTyKZRN+32+3KJ3kRVyqZGHZ+fl6v15vNZoQWiQVAUAFYhp5uJJPIJ5FS7NyV6+uYDIJFSomsEoklcot1LACCCkD+9Hq9+/v7iCjWnyyTSJvJrLBSqRRxZXNzs1arKQuAoAKQdcnyhogo9u9a+gt9OxFBJeJKhJaILsoCIKgAZM7j42N0Wy2RXzWRSC8uLi4vLxuNxtbW1vr6upoACCoAi5cModzd3fX7fdVYWT+X3Ver1VarZYAFQFABWJher3d7ext9U6vk+Sny6sXFxdXV1cbGxtbWlhUsAIIKwJwkG3lFRImvqsHfiux6P1Gv1yOu2CIMQFABmHnvMyLKYDBQDdLoTlQqlYgrm5ubzmABEFQApmk4HN7d3UVEsdcw7xDJ9uLi4vr6OuJKq9WyfAVAUAH4qOfn55ubm/v7ewtR+Hjcvbq6ittpc3Nze3u7XPYKBhBUAN5uMBgkEcV2w0xRJN7b29u7u7skrlQqFTUBEFQARBQyIW6tyCpxj4krAIIKwOuen5+vr69FFOYfV3Z2dkwGAxBUAP5sOBze3Nzc3t6KKCwqrmxtbW1vb1tqDyCoAPyPZM1ApBTL5VlsXImbMBJLZJVILDYyBhBUgJXuGrbb7aurq+fnZ9UgI7E5bsiIK7u7u81m0zGRgKACsHK63e7l5WWv11MKsiaS89nZ2e3t7d7eXr1eVxBAUAFYCf1+PyJKp9NRCrIsUvT3798bjUbElWq1qiCAoAKwtEaj0fX1tRXz5Egk6m63u7W1tbOzY+EKIKgALKH7+3vLUcijZJ19u93e3d3d3NxUEEBQAVgSvV7v4uLi8fFRKcivZOFK5O39/f1araYggKACkGPmerFkIm9/+/bNTDBAUAHIsU6nc3FxMRgMlIJlkswEe3h42N/fbzQaCgIIKgC5MRwOI6K0222lYFlFAv/x40ez2Yy44jB7QFAByIHIJ5FSIqsoBatwt3e73cgqkVhUAxBUADLq+fk5IsrDw4NSsDoik5+eniYzwcplr3VAUAHIGAMprLIIKo+Pj4ZWAEEFIEOsSIFffh9a6XQ6Vq0AggrA4kW37Pz83DGOkIjE/vj4eHBwYEMwIO9swQ7k1Xg8vri4+PHjh5QCfxRPRDwX8XQ4PgjINSMqQC71+/3T09Ner6cU8Ldub28fHx+Pjo6q1apqAHlkRAXIn7u7u2/fvkkp8LJ4RuJJiedFKYA8MqIC5MloNDo7O7MBMaR/ZM7Pz7vd7uHhYbHo00lAUAGYgV6vd3JyMhgMlALeJLJ9PD7Hx8e1Wk01gLzw4QqQD/f399++fZNS4H3i2YknKJ4jpQDywogKkHWj0eji4kIHCz5oPB6fnZ0l50KaBgYIKgAfMhgMTk5OrJuHaYnMn0wDq1QqqgFkmQ9UgOzqdrt294KpS3YDi+dLKQBBBeDNbm9vf/z4MRwOlQKmLp6seL7iKVMKILNM/QIyZzwen5+fW5QCs37QLi4uer3ewcFBoVBQEEBQAXjJcDg8OTl5fHxUCpiD+/v7wWBwfHxcKpVUA8gUU7+ADOn3+9++fZNSYJ7iiYvnLp4+pQAEFYC/kSydd1IKzF9yyorl9YCgAvBn9/f3P378GI1GSgELEU9fPIPWhgHZYY0KsHjX19dXV1fqAIuVnAj5/Py8s7OjGoCgAqx6x+ji4uLu7k4pICOurq4iq+zv79sKDBBUgBU1Go1OT087nY5SQKbc3d1FVjk6OioWTREHFkYDBCwspfz48UNKgWyKZ9OyMUBQAVbOcDj87bffbEMMWRZPaDyn8bQqBSCoACvh+fn527dvvV5PKSDj4jmNpzWeWaUABBVgySXHNTgsBTyzAIIKkBX9fv+3337z6SzkSzyz8eQ6uh4QVIDl1Ov1pBTIdVYxYxMQVIAlTCnfv3+3KhfyK57feIplFUBQAaQUQFYBBBUAKQWQVQBBBVgF/X5fSoGlzCrW1gOCCpBXg8FASoElzir2LAYEFSB/kj2C7PEFnnEAQQXIiuFwqAcDK5JVjJoCggqQD6PRyJwQWBHJDM946pUCEFSArKeUHz9+2BEIVkc87/HUyyqAoAJk13g8Pj09fXx8VApYKfHUx7MfLYBSAIIKkEUXFxedTkcdYAXFsx8tgDoAggqQOdfX13d3d+oAKytagGgH1AEQVIAMub+/v7q6UgdYcdEORGugDoCgAmRCt9s9Pz9XByBEaxBtgjoAggqwYP1+/+TkxCJaIBGtQbQJ0TIoBSCoAAszHA5tSwr8SbJNuYMgAUEFWIzkc1MHOwJ/FS2DsVZAUAEW4/z83JEpwD+J9sHqNUBQAebt9vbW3j7Ay6KViLZCHQBBBZiTbrd7eXmpDsCroq2wCRggqADzMBgMTk9PTT0H0oi2IloMi9kAQQWYrdFodHJyYjMfIL1oMaLdsD0gIKgAM3RxcdHr9dQBeJNoN6L1UAdAUAFm4n5CHQANCCCoAFnR6/XsNAp8RLQhhmQBQQWYpmRpigX0wEckp8RarAIIKsDUnJ2d2bQH+LhoSaI9UQdAUAGm4O7u7uHhQR2AqYj2JFoVdQAEFeBD+v2+sx2B6YpWJdoWdQAEFeCdkpPaTCgHpitaFefGAoIK8H6Xl5e26AFmIdoWo7WAoAK8R7fbvb29VQdgRqKF6XQ66gAIKsAbDIdDO/MAs3Z+fh6tjToAggqQ1sXFxfPzszoAMxXtTLQ26gAIKkAq7Ql1ADQ4gKACZIUPOIE5M4QLCCpAqh6DKePAPEWb4/MRQFABXtJutx1CD8xftDwmgAGCCvD3fKgJLJDhXEBQAfQSgMzxWQkgqAB/o9PpmHcBLFa0Qo6ABAQV4P+MRiMfZAJZEG1RtEjqAAgqwP+4vr4eDAbqACxctEXRIqkDIKgAv/R6vdvbW3UAMiJapGiX1AEQVGDVXVxcjMdjdQAyIlokk1EBQQVWXbvdfnx8VAcgU6Jdur+/VwcQVIAVNRqNLi8v1QHIoKurK6vqYcWVlQBW1vX19fPzszqQXqFQKJVKxWKxNBF/SP7hT+M/SMLwcCL5g0mGpBetU7RRe3t7SgGCCrBa+v2+NfT8k0gglT8ol8vJ1ySZvFvEleeJwe/iz3Er+uCcvxVt1ObmZrVaVQoQVIAVcnl56eNt/u9lUC7Xfhf9woglhUJhFvmnOvGnfx6JpdfrRWLpTdgsm0S0UdFSffr0SSlAUAFWRbfbdfwzkUnW1tbWJyKoLPAnScZtfv7P4XD4+Pj49PQUXyO3SNSrLFqqaK/q9bpSgKACLL/kQ0p1WNFGv1yOPl+j0YhwUiqVsvlDxg+2MfHLZLZYJJYkWvf7fVdwBUV79fXr11kM8QGCCpAt7XbbYWqrZm1trTFRq9Xy9ZMXi8X6xN7e3mAwSBJLfDXMsjqivYpWa3NzUylAUAGW2Wg0urq6UocVEbGk2WxubGz8cWJVfsVv0ZqI2/hhQmJZEdFqxW38wb0cAEEFyLTb21tbEi9/y14ub25uRkRZ1u2SosO6OTEcDjudzv39vXNLl1u0WtF27ezsKAUIKsByil7dzc2NOiyxRqPRarXq9fqKTOgvlUpJYun3+/cTcZO7DZZStF1xb2d2YRUgqAAffdM7sGJZ++vRh4v++nJM8XqHarW6t7e3u7v78PBwd3dngGX5RNsVLZjzH0FQAZZQMndCHZZMJJOtra2IKKbvh0Kh0Jx4enqKTm2n07GCZZlECxZ3+2K30gYEFWD6rq+vddqWSa1W297e3tjYsG3rX62trR0fHw8Gg+ja3t/fG0hcDtGCRTt2cHCgFCCoAMsjemzRXVOH5VCtVnd3d5NjRnhBpVLZ39/f2dm5ubmJxCKoL4FoxyKfr+wURxBUgCUUHTW9tOXoeUe3u9lsLnwUJW6n4UTy5+TuGo1GyQy0wsQvk8UzYbE/bfwAe3t7W1tb8RTc3d15EHItLl9cR4MqIKgAS8JwyhKI3nZElFarNc9Of+SQuHmen58HE88T8Q9HE+n/nuJE/ArlicpE8oe5beIU/3f7+/sRV66vrz0OuWZQBQQVYHmY9JJrkUw2Nzd3d3fn0Kfv9/u9ieQP0zpyJwk28bfF3/nX/FCr1arVam1i1ge/RO/28PAw4srFxYWdwXLKoAoIKsCSiN7h3d2dOuTU+vr6/v5+9OBn9PdHfojwEF32p4n5H0KSjNJ0Op3kf0YYW5uIXzx+6xltZRZ/85cvX9rt9uXlpfNP8+j+/n5nZ8f2XyCoAPlmOCWnkpUVm5ubs/jL+/1+t9uNeBARJVO3R3LSfJJbCoVCxJVGo1Gv12
20cx0tJsNuMvv5nwjORLMqgSGV4pQFAB8iq6fYZT8mhjY+Pg4GC6c72ib/f09PTw8BAxYDAY5KIz2p34ZTJlK0JFlGVtbW2Kq3SKxWKyf9r5+XkUx42XI8mgioPqQVAB8ipSihMk8iU6XhFRprv1cHTB2+12RJT8TnNKTkQJ5XI5itNsNiOxTOsvT2aCxcNydXXlecmLuFJxySKrKAUIKkAuX+SOos+X6Q6kRCyJfBKduVyMn6T/pZLEUqlUWq1WJJapLFQoFApbW1uNRuPs7Mwi+7xIDqqf0UImQFABZig6qfNfG827O8r7+/vR857K39bpdO7v7+PrEi+9iPR1eXl5dXUV6WJzczO+fvzvjPDz+fPn6P7GX2vVSvZF+xb3eWQVpQBBBciT6GYZTsmLarV6dHT08a294qJHvy2ue7/fX537/GEiahgd1kgsH1zBEv/59vb2+vr62dnZ6pQxv+Jun/PhQoCgAnxUt9vVzcqF6Fvv7+9/cPpKsmtCdNpWdgwt7vbz8/Orq6uIK9Fz/eD0ubW1ta9fv15cXDgaMuMGg0G0dVMZTwMEFWBODKdk31Sme0UySdZsWAWeVCOyys3NzdbER+JKRMfDw8P19fXIP6aBZbytE1RAUAFyo9frJZu6klnRhz4+Po5+8Lv/hkgm0SMXUf62MtfX18lK6+3t7Y+MVm1ublar1dPT02XakGDJRFsXLd7sDkUFFsheGbCEnJ2ScdGp+vr167tTyng8jkv83//939Edl1JejitRpajVR4ZEkmlg9XpdSTPLADIIKkA+DIfDdrutDpnVaDS+fPlSqVTe9593u91v376dn5/b0i3l4xC1iop9ZIyxVCp9+vTJ7lKZZYdDWFamfsESvrN9yp5ZrVZrf3//fZsUDQaDi4uLTqejjG/V6/W+f/8eETGK/76ImCwoiv/28vLSkpWsiSsS7Z4kCYIKkHXmfWXW7u7u+w7STuZ6OTf9gyLjPT4+xlV494a20RUul8tnZ2cuRAbbPUEFBBUg06IfZlfiDIpu8cHBwebm5jv+216vd35+/vT0pIwfFwHj4uKi3W7H5Xjf8uuNjY3IKj9+/DDXKFOi3YvW7yO7UwAZZI0KLBXDKdlMKYeHh+9IKePx+Pr6+tu3b1LKdEU9o6pR2/dN4lpbW/vy5UvEFZXMFEvqQVABsms4HD48PKhDBlNKs9l86384GAy+f/9+dXVlRcQsRFWjtlHh9+07XK1WP7IjArPQ6XQMc4GgAmRUu93Wqc1aSjk+Pn5HSolL+a9//evx8VENZyoqHHV+3y55kVIiq0RiUcbshE8bHoKgAmTU/f29ImQtpbz1zOzobJ2dnZ2enlquPR9R56h21PwdIb9cLkdWcdSgNhAQVICX9CbUITsODw/fmlIGg8G3b990thbSwY3Kv2MaWKlU+vz5s3EVzSAgqAAv9bQUITv29/ffOuMrOclRN2uBfdz3nQuZZBXrVbSEgKAC/A2TszNlZ2fnrUc63N7e2vF24aL+cRXesXlUuVyOrGIfsCywVA8EFSBbut2uPm5GRETZ3d19U8i8mNC7ykjmf9/lqFQqkVVKpZIaLjxtvmNYDBBUgFkxnJIRjUZjb28v/fePRqOTkxPnP2RNXJG4Lm/dz6BarX769KlY9GLVHgKCCvB7Z7fT6ajDwkU/9ejoqFAopPz+4XD4/ft31y6b4rrE1XnrQOXa2trh4WH6e4AZXTub5oGgAngr879KpdKbPk1/fn6OfrAj57Msrk5co7hSb/qvNjY23jSqxtT57AYEFSArzHNYuOTIlPT7PkXf97fffrPBV/bFNYor9dassjWhelpFQFCBlTYajawcXbj9/f319fWU35wclvKOIztYiPddr729vXq9rnqLEq2icWYQVIAF63Q6dotarGaz2Wq1Un5zMpby1k/oWax3XLVCoXB0dORwlUWJVvHh4UEdQFABFsnLeLGq1erBwYGUIqv8ValUetPmCkyXZSogqACLZN7XghvQYjF6oikX0CeHCZrxlV9x7d56KOfa2lr6HMvUg4rZXyCoAAtjHvZi7e3t1Wq1lJEy+rhWz+ddXMG4jm966DYnlG7+xuOxz3FAUAEWxtyGBWo0GimXpkSH6fT01E7EyyGuY1zNNy0M29/fr1arSjd/ZsaCoAIsRnSVBJVFKZVK6af0XF5eulJL9gFBXNM3vGiLRadALkS327XXCAgqwAI8PT299dhspiVSSrlcTvOdtxMqtmTeelnX1tZ2d3fVbc6ihTSSCYIKsACmXy9Ks9nc2NhIeY3e9NE7ORJX9k3P4NbWVvrDdpgWg5kgqABewKuiVCrt7++n+c7BYPDWxQzkSLL0KP02boVC4fDwMOUecUyLD3RAUAHm7fn52RZSC7G3txdZJU0v9uTkxNy85RbXN65y+ixaqVRMAJuzaCftCQ6CCjBXPiZciPX19ZRbzZ6fn0uSK9IPjmud/vtbrdba2pq6aS0BQQW8epmaQqGQcqevdrt9f3+vYisirnVc8TfdRXYA01oCggosJweZLcT29naa0zAGg8GbPmJnCcQVTz+/qFarxb2kaHPz+PhoqRgIKsCc9Pt9ix/mrFwup+lcRn/o7OzsTSeXswTiisd1T98bjnsp5fbWfFy0luZhgqACzInhlPnb2dlJs1/Tzc3N4+Ojcq2guO5x9dO+eovFvb09RdNmAoIKeOnyIdVqNc0a+l6vd319rVwrK65++k/um82mY1XmGSMVAQQVYObG47Gzludsb2/v1dXPcV3Oz89NhV/xZ/NN90DKA3n4uGgzPZsgqAAz1+v1LIGYp/X19Uaj8eq33d3dCZDEPRB3QspvrtVqKXe75oOizbRMBQQVYObMYZizNCf0DQaDq6srtSLEnZB+B7CdnR1bFWs5AUEFloSP7edpfeLVb7u4uDDMRSLuhMvLy5TfXKlUWq2WogkqwN+yPSJ43fKP0gyndLvdTqezgsUplUrRz46vxYmfIwPj8Xg0MRwOB4PBCm6l/fDwEHdFvV5P883b29t3d3dWUMyaj3hAUAFmywkq85RmOCX6l+k/Ps+1yCFrE9VqtVarRURJs1/zL5MRhogrcev2er3oLK7IIqu4K75+/ZpmWle5XN7a2kq/tTHvEy1n3IRpzmwFBBXgPXwoOE87Ozuvfs/9/f1yL9KNjl1jIiLK+1ZTRJ6pTTSbzV9+37YuGYZa4tLFrxb3RsppXcmgitmDc2g/BRUQVABBZRk66K9O3Yme5bKuoa9UKs2JqXfsIu0kQ1W7u7uDweDh4aHdbi9lYol7IwqYZtypVCptbm7e3t567mbdftpmDQQVYFbssDk3W1tbr37Pzc3N8s3EazQarVYrQtocdqOKOLQ9kezqG4llmZZqxL0R2SPNuFxyv1mpMoegogggqAAz4SiAuSmVSsk8pVe7oUvzK0csiV85MsNC5sYkq192d3ejsx5VXZpJUBFlI/XF7ZQms0VEfHh48PTNTr/fj1sr5doqIAs8rpCnt6wPXOcjOpev9maWqT+9sbHx66+/Hh4eLnYGf7lcjqzyn//5n5GXlqM3GXdI+jQbv7VHb6ai/fRZDwgqwEx4xc5HoVB4dQ300gyn1Gq1L1++HB8fZ2eRcalU2tvb+4//+I9XB7VyIe6TlPMD19bW0hzag1YUBBXAK3ZF1ev1cvmVabFLsEdT5LHIA1+/fs1m5zguwdHRUYSovG/TFPdJ3C0pv9nhj1pRQFABr1j+0av7Ao3H47wPp6ytrf3666/b29tzWDH/ERGicvFzvizulpSTNjc2NtIsaEErCoIKkCFmV89HdBMbjcbL33N/f5/rzb6i35+jkYpk5Ofz58+vDnNlVtwtcc+k/GXtnztTVvqBoAJ4v+ZVs9l89cP7/A6nFIvF4+Pj6PfnboAiGVp59WSbzEp/zwgqMxWtaLSl6gCCCjDloKIIc/BqN7HT6eT0WpTL5S9fvmxsbOT00pRKpU+fPuV0a6y4Z+LOSfOd1WrVknptKSCogJcrf+4j1mq1l78n5RyerInf6+vXr6/+dhmXTAM7ODjI45KV9HeOQRVtKSCogJcr/+bV0Ybn5+eUn4tnytra2pcvX/K7xuNPWq3W8fFx7rJK3DkplzY1Go1cbx6gLQUEFfByZd5Bpd1u526lUKSUz58/L9lp3NGV//TpU75+qbhzUg6qlEql/K7GyT67koCgAky5izMYDNRhpiqVyqszo9IfiJER8RstX0pJRFc+d+Mq6Wd/5XcpUfY9Pz/bmAQEFWBqIqV4s87aq13Dx8fHfMXFiF65G3ZY7qzS7/efnp5S3o1mf82Ijb9AUAGm3L9RhIUHlYeHhzw17sVipJSlWZfyTxqNxv7+fo5+4JR3UVw+s79mxwA1CCqA12pulEqll+d9jcfjfAWVo6OjvBzp+EGtVitHexa32+30GcyDqUUFQQXwWl116+vrL8+0eXp6en5+zsuvs7Ozs1Ld3N3d3byMP8Rd9Pj4mOY7jahoUQFBBbxWeb1TmKPhlAhdEVRW6vJFyDw6OsrLPLeU91KlUlmRMTEtKiCogNcq7w8qeTk+pVgsHh4eruA67FKpFFklF794+nvJ7C8tKggqQKaNx+McTTrKo2q1WqlUXviGfr+fl57N/v7+y7/LEltfX8/FYpW4l1Juj2H214zYoRgEFWA6hsOhd+pMra2tvfwNeRlOiZ765ubmKl/KnZ2dXEyX6na7Ke9MmxTPgk9/QFABpsMLdeFBJWW3crGiR3twcLDilzIvRUh5RxWLxVcPIUW7CoIKsDCmU8/a+vr6C/92NBql3KZpsVqtlrXXv+RkWCmCSsph0pdvTgQVEFQAL9TlbQSLxZcXdfR6vexPvYvfYtV2+nrB7u5uFCTLP2HcUSmPqH91uA/tKggqgBfqcnp1GUAuhlO2trZKpZKrmSiXy1GQjP+QKYOKERXtKggqQHYNh0NFmGlQmUqHcpHteLGY/X75/JNbxgdVUgbgyJ8ru42boAIIKuCFutJeXdeR/aDSarUMp/y1f5/x8Jb+vrKefhZ8AASCCuCFmnUv9wL7/X7G618oFAyn/K0oS5b39o37KuVpKoKKdhUEFcALdeVER/bVlfQZ/xUajUa5XHYp/6pUKmV8+6+Ud5fN3LSrIKgAWTQej71QZye6gC9/6J79oLLiJzzmujhGVBYbVBykC4IK8CGj0UgRZhpUptKVXJRyuVyv113Hf7K2tpblXn7KGFypVDK+MYDWFRBUYBX5zG+mXt1PKeMjKhsbG1lehpEFzWYzsz9b+hhs9pegAoIK4FUqqPyf4XCY8S3XIqi4iPkt0WAwSPmAW4Y0Cz4GAkEFEFSy6+X+X/Qjs/zDl0olx5anyaJZrlLKe8xRKlpXEFSAzPGZ36x7sS/824wPp9TrdfO+UhZKUEHrCoIKMGU+85upXI+oWEafUqPREFTQuoKgAkyZz/xmmlJeHpHIeFAx7yulWq2W2V2zUo7aWaOidQVBBfAqXSGlUmkqnchF/fB2gkop4mhmQ13KMCyozIIRFRBUAEFFUJk+hwC+SWaDSsrjXIvFovVIgKACCCqCyts6kQthOGU5ypX+Hnv1duWtjKiAoAIIKllt/l5bt5DlfowRleUoV/qg4nB6QFABBJVV8fJH1KOJzP7wFi28SWZ3zYp7LOUzbkRF6wqCCuBVKqj8bw9Sz3tpFAqFzEa7lIMqgorWFQQVwKt0hTqvH+8+LooRlaWpWMpIbOqX1hUEFQ
20BBJfMNtz2g3i6zIxK6ywCCCsCSdB/NAlrBoommgKACsDLN34tzabIcVMwCWqaipZz6JagAggoAkDmCytSZdAeCCuBVmksOg9PR9/MDCCqA3kn2GkfTq2R+Pz+AoAIACCrz5GMgEFQAMurlyV1Z7sRk/IyXPF7uRb6Gjd0BCCoA6WU5qFg/s4LpzkUHBBWAVZHfnt9owhVcjsttAhKAoAK5pBMzOy9P+s/4+YDPz8+u4HJULOXUL9FU6wqCCuBVuipe7vllPKgMBgNX8E2hNLNBJeWdJqhoXUFQAbxKV8XLixai8lle5SyovEmklGzumhX3WMpn3A4KWlcQVACvUkHl/zqRmf3h+/2+K7gE5Uo/cCeoAIIKIKgIKm/uRM5fr9dzBZegXOnvMVO/pt8BsjE0CCqAoJLToFIul7Pc83YC4OoElbjWggogqACCiqCSg6ASPdenpycXMaXM1qpSqaT5Npu8zaQDZEQFBBVAUMlsUHn5U+qUnchFeXx8dBHTGAwGme3opwzDgorWFQQVIHuPqM/8ZtyFzW9Q6Xa7rmDeC5XyHrPJm9YVBBUgc3zmt8CgkuWpX79MpjPZCWpFgooRFa0rCCpA9h5Rn/nN0sv9v4yPqIzH406n4yK+bDQaGVFB6wqCCuBVmjMv9/9KpVLGB1UeHh5cxJdFSsnsflmRUlI+4EZUZsGICggqgFdpdr16DmCtVst4L9zsr/xmuWq1OpVEzTs7QD4GAkEF8CrNb1BJ35VciPF4fH9/7zr+k0hxWQ4qKWPwaDQSVLSuIKgAmVMoFLJ8PnrePT8/vzwikfERlXB3d+fkx3/SbrezXJyUMfjVOM07RLtqvBoEFWAKL1RFmJ2XzyzPflAZDAaW1L+Q4rL846W8u16+RdGugqACeKGuYlCpVqvZr//t7a3r+FeR37I8FhH3lREV7SogqEC+ZXzjqbx7tRe4traW8V/hccKl/JObm5ss/3jp7ytBRVABQQXwQl1FT09PeQ8q4fLy0qXMV3hbX19P823j8fjVW5R38AEQCCqAF2rW9fv9lw+pSNmhXHjccqbKH11dXWX8J0wZgOP+zOw5MNpVQFABL1Qv1Jn38l/4t7VaLRe7A11eXtr+KxGZLePDKcViMWVQMZyiXQVBBciuSqWiCDP1cqc2+pS5GFQZDAYZX5UxH5HWsj8RLu6olOlXUBFUQFABvFBX16t9wUajkYtf5Pr62sLrKEL2j0es1+vTujl5Hx8AgaACTIGDyWat1+u9vAwgfbdyscbj8fn5+SpPAIuclothpZR31HA4lDxnwUG6IKgAU3unGlSZdf++2+2+8A3VajUvn78+Pj6u7ASwuI5nZ2fZz2lxL6U8QeXl25J3ixbVpz8gqABT69kowky9erh7XmZ//TKZ+7Sa84Xy8ounv5cEFS0qCCqA1+qqe7VHuLGxkZffZTwen5ycvLzn8lJewQgqufhRm82moKJFBQQVWBIpJ4rwbtGt7/V6L3zD2tpajibgxa9zenq6OotVBoNB/L65+FHjLkq5MXHckKuWNgUVQFCB/LFGZQ5env1VKBRyNKjyy2SxytnZ2SpcuNFodHJyMhwOc/HTGk4RVABBBZaKEZU5ePVk9/RdzIxot9vZP1Hkg8bj8enp6cujYZmSPu6+um4KQQUEFSATr1V71MxadHZfPn9jbW0td/2bm4klvmrn5+c56tBXq9WU876en59fPoeUd4u21Ec/IKgA03yz+ghwDtrt9svf0Gq1cvdLXV5eLmtWiZRyf3+fox94c3Mz5XcaTpkdn/uAoAJMmY8A5yDN7K88dnEiq1xdXS3TlUqOtry7u8vRzxx3Tvqg8uqtiLYUBBXAy3WF9Hq9lw8CL5fLOTpQ5Y+ur6+X5tD6ZF1KvlLKL5PjU1Kehj4cDs370pYCggp4ufJvXp1KlP5D8ayJnv2PHz/ysjvWC53479+/53HAIf28wfjtVmdraW0pIKiAlyuptNvtl/uIjUYjv9ei2+1++/YtR3tk/Un85PHz53G0Ie6Zer0+rbSMthQEFSBbL1cLQOfg+fn51XXMW1tb+f0FB4PBb7/9lrt5U0n3PX7yl3dmy6zt7e30Yezp6cmTOCO2/AJBBZjJ+7VWq6nDHLzaid/c3Ey52CCbRqPR+fn5jx8/8nLw+XA4PD09PTs7i588jwUvl8vpD+ExnDJTPvEBQQWYCUFlPrrd7ssf20dHJ9eDKolOp/Ovf/0r+93i5Od8defoLGu1Wik7x+PxONe/qVYUEFTAK5bZenVQJbqexWLu28/hcHh2dvbbb79lc65RxMWTk5Mcjfz8/Vu2WEy/jD5SWd53O9CKAoIKeMUyQ/f39y/PMiqVSkswqJJ4fHz89u3b6elpdpZ/RGf98vLy//2//7cEx4nEfZJ+ouDt7a2nTysK/FRWAsiLZHa1fUvn01GOrPJyFIl/G93KnK6a+Kt2ux2poNlsbm9vL3C1cVT+dmI5ClssFtMH2l6v5/iUmbLSDwQVYIadnnjL2hFoPqKv/PLSglKpFH36ZTrxPTLw/USj0YjfvV6vz3PZcXTT7+7u4v99maJ43CGGU7IjEvgSzNgEQQXIKEFlbgaDQTLC8ML3JIMqy7eooDOR7FUVZvohdFSvPbF8N/ab5gc+Pz9bRj9ra2trigCCCjDDF20eT8DIqZubm5eDSrFY3N3dPT8/X8pfP7rONxOVSqUxEbfftD6Q7vV63W434lDkk2WdzRj3RvpyxXNtVqegAggq4EVL2s70w8PDxsbGC9+zubkZXcz8nvWexmAwSNaNJFP84yaMr9WJlB3x6IJH7Ikq9fv9p4ml39sqShT3RspvTlbmeOK0n4CgAjkWXcNSqWQD07m5urpqNBovLNWIf7W3t/f9+/dVqEbkjSRm/PwncTeWy+XS75KCJCMD8XU48TyxasMFcVekX+GzTLsyZFbcn86kB0EFmK319fUl2LM1L/r9/qsrVer1+sbGxmpelCSKuE/+JO6HuCtSfnNEFPM558BwCuSR7S/A65aXXF1dvToasLe3Zzch/ve1WizG/ZD++yOlCHtzsL6+rgggqABet0tlMBi8uh1TpVLZ3d1VK36ZrKGP+yHlN49Go5ubG0XTcgKCCiyDWq3mw/s5u7y8fHUJQavVMthF3ANxJ6T//kgphlPm0deZHEKlDiCoALNVKBR0iOcsupLX19evXpeDg4N5npBIBp/NN90DyQbQ6jafAOnZBEEFmIf063SZltvb236///L31Gq1nZ0dtVpZcfXf9LH95eWls1O0mYCgAl66fEh0KKNb+eq3bW9vmwq/muK6x9VP//1PT0+Oop/n1VEEEFSAeUhOU1GHOetMvPw9hULh8PDQIqKVe5UWi3Hd3zS5KE3uZSqitbRABQQVYE6iP2RQZSHOz89fXVVfqVQODg7UaqXEFU+/01e4v79/fHxUt/lYX1+3QAUEFWB+BJWFeH5+vrq6evXbms3m5uamcq2IuNYvHwn6J8Ph0HCK1hIQVMCrlym7vb1N81n4wcGBzdlWQVzltw6gRUqxJbHWEhBUYGmVy2Wzrhfl/Pz81c2aCoXC0dGRpUTLLa5vXOU3TSuKlHt/f690cxPt5Jtm5QGCCjAFjUZDERai3++nmQAW3aO39mLJkSSLvqkTHPk2Uq7SzZPhFBBUAC/g1XJzc9PtdtNco729PeVaSnFl3/oMXl5evnoaD9PlAx0QVIAFWFtbM7Nogc7OztKsNNiaUK4l847LGsn29vZW6eYpWkhLxUBQARagUCj4sHCBnp+fU07j2dvb29jYULGlEVfzrQNlo9Eokq3SzVm9Xjf3EgQVYDEElcV6eHi4u7tLEykPDw99srsc4jq+9WzHcHFxEclW9eYfKRUBBBVgMer1ukPQFys6oE9PT683tcXip0+fbNSWd3EF4zq+9aG7n1C9OXMwLggqwEIf4GLRm3ixxuPx6elpmsUqpVLp8+fPdkrNr7h2cQXfujCs1+tFmlW9+Ws0Gj7HAUEFWCRzGxZuMBhEVnn1ZJUkq3z58kVWyWlKiWv31pQyGo3i3oivCriQoKIIIKgAC34ZWy26cN1uN83JKr9MTuo0rpLHlBJXLa7dW//D8/Nz+xEvRLSKPsQBQQVY9DNs9l
20c23NzctNvtlL1e4yr5Sinvu17pbwmmzvo9EFSATGg2m4qQBWdnZ4+Pj2m+s1wuf/361dr67ItrFFfqHWMpnU4n5SAbWkVAUIGlZc1oRozH45OTk5RTfZK19fYszrK4Ou9YPf/LZAF9ymVLzKRnUyxaoAKCCuCtzL8ZDoc/fvxIeWJGklXMpM+muC7vSylxD0RetYB+gXx2A4IKkCHmOWTHYDBI30+N7tTR0dHW1pa6ZUpckbgu7+jsxnWPpBr3gBpqDwFBBfgf9Xr9HR/9MiNPT0/RW02ZVQqFwv6E3duy4COXIzlUJ80BoMxOtIT2FwFBBchW78qHiJny+Ph4cnKSfpXC1tbWp0+fpM2F93HjKrxvgCuu9dnZWafTUcbFipZQ5gdBBciWzc1NRciUbrf7pqxSr9e/fv1qef2iROWj/u/+MP7y8tJmxFpCQFAB/kZtQh0ypdPpnJ2dpc8qyZEdeloL6d1+5HCbSCm3t7fKqBkEBBXgHztbipA17Xb7TeMqhULh8PDwfSu5ec9bcLKfQdT83fOFIqXc3NyopDYQEFSAf2RydjZ1Op30a+t/Xspff/11fX1d9WYqKhx1/sj6LiklOyzVA0EFyK5SqeRQjmzqdrvfv39/U1apVCqfP3/e3d0VPmfUqY3aRoXfPd0rXFxcSCnZ0Wg0bEcBggqQXa1WSxGy6enp6bfffkt5FuTPzvTOzo4V9lOXrJuP2r47BCZ7fFmXkinOIwJBBci09fX1arWqDtnU6/W+ffsWX9/0X9VqtS9fvuzv71u1MoV3XrEYlYx6fmTJ9Wg0Ojk5ub+/V8/siHbPVEkQVICsM6iSZc/Pz7/99lu3233Tf1UoFLa2tn799VdT+z4iqhc1jEp+ZDbdcDj8/v2781K0e4CgArxZs9n00XuWjUajHz9+3N3dvfU/rFQqx8fHnz9/tgHrW0XFom5RvY+sSAmDwSByprPns8YyelhWZSWAJVMqleKd/Y5+MHMzHo/Pz8/7/f7e3t5bP91PzoW8v7+/uroaDoeK+erjsLu7u7m5+fE9CR4fH09OTtQ8g6LFs4weBBUgH1qtlqCSfbe3t09PT8fHx+Xy25ri6HPHJY7OWfwNNzc3b9pMbHUUi8Xt7e2tra2pDDBGqS8vL9Ofh8M8WUYPggqQG7VarV6vv3UhBPMXQeXbt29HR0fvWAcc/e+dnZ1ILLcT4sofK7M1MZVP2SOcXFxcSP6ZFW2dyZAgqAB5Er00QSUXnp+fv3//vru7+75F3snUpvhv7ybetP3xEr7SyuXWxLQmAg0Gg9PTU4tSMt7WKQIIKkCe1Ov1arXa7/eVIvvG4/Hl5WUEy8PDw7dOA/sZV3Z2dra3t9vt9s3NzQpe97jb49dvNptTPB/z4eHh/PzcopQsq1Qq0dapAwgqQJ4kG9pGN0sp8iKCyr/+9a+Dg4N370EcF31zIv6qu7u7Tqez9Gsq4lduNBqtVmu6vVXTvfLig5tNA4IKsBjNZtPGUPkSF+vk5CSSxgePd6xPxN92P7GUAyzVajVJZVPf7qnX652dnb31XE7mLy593ADqAIIKkD/JkuLIKkqRLxEtut3uwcFBo9H4YDdue+Lp6enh4aHdbi/BCpZyuRwJfGNjY21tbep/+Xg8vr6+vrm5sbtXLkxrSzdAUAEWoNVq2b42jyJR/PjxI3rk+/v7Hx8xWJvY29uLxBJxpdPpDAaDfBWkUqlEbIuCzCKfJAyk5EtEFKfRg6AC5Fj0cZOsohR5FKGi2+1GwJjWGvEksUT46ff73d9ldvQgeqLr6+vJNLZqtTq7/6NI8jcTBlJyZBaz/gBBBZirra2t29tbPbCcGg6HZ2dnd3d3kS6mOJhQnYh7I26Mp4nHx8f4uvAVTdH1jF8z8kmSqeawTvrh4eHy8jJ3Q0wrLm6M7e1tdQBBBcj5Q14ub25u2r8o15JzIZvN5t7e3vv2L36hw7c+kXT7+v1+r9f7+XUO3fdKpRKRqVar/fw6t6rGL3hxceG4oTyKNm26DwIgqACLEX3Q+/t7gyp5lywvmeKZ63+VjLT8/J+j0Wjwu+fn5/g6/N2bFj4Vi8XS7yKZRBez8ruFLIaOn//6+jrSu4cijwyngKACLI/oDhpUWQ4RD5IednTUWq3WrHv58ffXJv76r6KLn8SVpK//p9yS/GDRoUwiSnZOukiWo9ze3tphIr+iNYs2TR1AUAGWhEGVZRIJ4fLyMnrbcVmj07aQQYnIHvmaexPJJB6BiHlOFso1wykgqADLxqDK8nl+fr64uLi5uWlN2AHphVwXESVy3RIcI4PhFBBUgCW0s7NjUGUp48rV1VXElejAbW1t6cP9qTiRTyKfm+i1HAqFQrRj6gCCCrB0T3u5HB1ZZ6ospeiIJz3yRqPRarXq9fqKF+Tp6Smq0W63JfNlEi2Yzb5AUAGW0/b2tk+Xl1h0yh8mkpl+K7iFa9zbEU7iJnfA/PIpFotWp4CgAiytUqkUb/qrqyulWG6DwSCu8vX1daPRaDab9Xp9IQvu55nQHh8fI6FFSpHDl1W0XRZigaACLLOtra27uzurilfBzwGWSCk/E0t2dgqeiqenpwgn8Tu6pZe8szKZuaoOIKgAyyz6rLu7u2dnZ0qxOpIJUaFUKkVWidASX/P74XQyftKZGAwGru8qiFZruUcFAUEF+B/NZvP29tYk/hU0HA6TxFIoFGq1WpJY4g+5GGaJTNL9nfldKyVu0Wi11AEEFWD5Ra90b2/v+/fvSrGyxuPx08TV1VWxWFybWF9fj6/Z+dw6fsh+vx8/5OOEyV0rK9qrJZuyCAgqwD9K5v90Oh2lYDQaJcMUSYitTtRqteTrPPcNi2TS6/UinPR+Z+SEZNxPHUBQAVbI3t5e9E2dMsFfo0Jot9vJPymVSpXfRWhJ/hD/8CMDL/H/MpwY/O75+Tn5gxuSP0qGf9UBBBVgtVSrVec/8qokUTw9Pf21B1n6XXEi+YfJFJ34mkSOZEgk/hx/SP6q5A8KSxrRRkVLpQ4gqAArZ2dnp91um/rPO0T2eJ5QCmbVQSmXo41SB1hlNvuDFX7+i0XTKoBssiUxoAmAldZsNtfX19UByJRolzY3N9UBBBVgpe3v79v6E8iOaJGiXVIHQFCBVVer1ba2ttQByIhokaJdUgdAUAH+Z1V9pVJRB2Dhoi2yhh4QVIDfG4Ji0UQLIAuiLbKGHhBUgP/TaDSazaY6AAsUrVC0ReoACCrAv9nf3y+VSuoALES0P4Z2AUEF0EsAssVnJYCgAvyjZrO5sbGhDsCcRctj9ikgqAAv8aEmMO++iP08AEEFeFW5XNZjAObp4OAgWh51AAQV4BXNCXUANDiAoAJky/7+vg84gVkzhAsIKsDblEqlw8NDdQBm6uDgwKI4QFAB3qZer29tbakDMCOtVsvxjoCgArzH3t5erVZTB2Dqom0x6QsQVIB3KhQKR0dHxaKGAphq56NYjLYlWhilAAQV4J2q1ere3p46AFMUrUq0LeoACCrAh7RaLcfVA9MS7Um0KuoACCrAFBweHlYqFXUAPihaEjsKAoIKML2Wolg8Pj42oRz4iGhDoiWx7A0QVIBpqtVqBwcH6gC8W7QhNhIEBBVg+jYn1AHQgACCCpAt+/v7PhAF3sqpKYCgAsy4yZgsVimVSkoBpBQthqUpgKACzFylUnFSG5BScm6sbQMBQQWYh3q97hRIII1oK6LFUAdAUAHmZGtry7pY4GXRSkRboQ6AoALM1cHBwfr6ujoAfyvaB3uaA4IKsADJ2W2mngN/FS2DU2IBQQVYmFKp9OnTJ5v5AP/WtygWo2WwPSAgqACLVK1WfW4K/JSMtUbLoBSAoAIsWL1eNxMdSERrYJsvQFABsmJzc3N3d1cdYMVFO2A/QEBQAbJlZ2en1WqpA6ysaAGiHVAHQFABMmd/f7/RaKgDrKB49qMFUAdAUAGyqFAoHB0dOVwFVk089fHs21QDEFSADLcpk21Ja7WaUsCKiOfdNuWAoALkI6t8/vzZQZCwCuJJj+ddSgEEFSAfSqXSly9fyuWyUsASi2c8nnQHOwKCCpC/HoysAp5xAEEFyJZkTohPW2H5xHNthicgqAA5Vq1WZRVYypQST7dSAIIKkGO1Wk1WgSVLKXb2AwQVQFYBpBRAUAGQVQApBRBUgJXKKvYIgpxK9viSUgBBBVhO1WpVVoGcphSr5wFBBVhmlUrl69evdjUFzyyAoAJkS7lcjn6POSSQffGcxtNqFBQQVIBVUSqVvnz5sr6+rhSQWfGExnNqDwxAUAFWrPUpFj99+tRoNJQCMiiezXhC4zlVCkBQAVYxqxwfH7daLaWATImnMp5NKQVYLLNOgUUqFAoHBwflcvnq6ko1IAt2d3d3dnbUARBUAH6JXlFklfPz8/F4rBqwKMkHB5ubm0oBCCoA/yv6RpFVTk5ORqORasD8JVMx6/W6UgBZaZeUAMiI6CE5rgEWIjksRUoBBBWAv1etVqO3ZNtimKd44uK5c/A8IKgAvKRUKn3+/NkseZiPeNbiiXNYCpBB1qgAmVMoFA4PD2u12uXlpeX1MLsHbW9vb2trSykAQQXgDaL/VK1WT09Ph8OhasB0lUqlo6Mji1KALDP1C8iuZHl9rVZTCpiieKYsnQcEFYAPqVQqX758sWQFpiWepnimbK8HZJ+pX0DWFYvFw8PD9fV1J0LCRzjPERBUAKYvele1Wu3k5GQwGKgGvFWlUjk+PjaREsgRU7+A3Ig+1q+//rqxsaEU8Cbx1MSzI6UA+WJEBciTYrF4fHx8d3d3eXk5Go0UBF59ZPb29lqtllIAggrAzEWva319/fT0tNfrqQb8k1qtdnR05Mh5IKdM/QJyKfpeX79+dVYd/JN4OuIZkVKA/DKiAuRVoVDY399vNBpnZ2fPz88KAv/7ai+XDw8PHZMC5J0RFSDfojf266+/NptNpYAQz0I8EVIKsASMqAC5VyqVjo6OGo3GxcXFcDhUEFb2Qdjf3xfaAUEFIFuif7a+vh5Z5eHhQTVYNRsbG5FSymWvdUBQAchgi1YuHx8ft9ttQyusDgMpgKACkA/RY6vX65FVIrGoBkt/t0dKiayiFICgApADyaqV6MNFXBkMBgrC8qlUKsmud0oBCCoAORN9uPX19evr69vb2/F4rCAsh0KhsLW1tbOzUyzauhMQVADyKXpye3t7m5ub5+fnj4+PCkLeRfY+ODhwjCMgqAAsg+jVffnypd1uX15eOhqSvL6wy+VI3RbNA4IKwLKJHl6j0TATjNwx1wsQVACW3M+ZYJeXl51OR0HIvkjXcdOa6wUIKgDLL/p8nz596na7EVd6vZ6CkE21Wi0iSr1eVwpAUAFYIdH/+/r1a7vdvrq6snCFbL2by+Xd3d1ms1koFFQDEFQAVk70Ajc3Nzc2Nm5vb29ubkajkZqwWMVicXt7e2try3IUAEEF0DUs7uzstFqtyCrW2bPA+zBuwkgpjpk
20HEFQA/k/0Dvf29ra2tq6vr+/v78UV5iYZ2Yu0XC57KQMIKgB/2yaWywcHB9vb2zc3N+IK84kocb9VKhXVABBUAF4RvcYkrtze3t7d3YkrzCKitFqtra0tEQVAUAF4c1zZ39//GVcstWcqkrUoEVFM9AIQVAA+0EqWy3t7exFXIqtEYhkOh2rC+5RKpcgnkVIslwcQVACm1sXc2dmJXma73Y640u/31YT0qtVq3DzNZtOmwwCCCsD0JZN2Njc3u91uxJX4qia8rF6vR0SJr45uBBBUAGYrepyNiX6/H3Gl3W5bvsJfM22z2YyIUq1WVQNAUAGYq+iDHhwc7O7uRla5u7szH4zkrmi1WpFSLEQBEFQAFilZIR0eHx8jrjw8PNjOeAUVCoWNjY2IKOvr66oBIKgAZMj6xHA4bLfb9/f3vV5PTVZBrVbb3Nw0hAIgqABk2s8BlggqEVcitNjReFkvdISTiCgRVFQDQFAByI3ov+7v7+/t7XW73YgrnU7HmvslUCwWG41GRBQbeQEIKgA59nOLsEgpkVUisURusYglj9cxkknkk7iUzkIBEFT+Pzt33Jo2EAZwmOVijEMG4vf/lt2MGpO95MVgZTLWbdXW5/njSAKCvUKbH5ccwOeR+9WGLJaXl5coFmssj/9biz5Zr9f6BECoADxRsUSrfJ94j+WhlFJyHSwqRZ8ACBWApyuW9WQcx67rMlrsFXZHy+Uy46RtW++fAAgVgGcX98S5tfF2u+37/seZZZZ3UEr5elbX/icCCBUAfvlHua6/TeJ4v99nsXRd522Wf6iqqrZtM06aprF4AiBUAPgDy8lmsxnHMaJlt9tFscRopeUNSimr1Sr6JMaYVXECIFQA+FtxV91O8vRwOHST/cRmx7cmLUsvp65pGnMCIFQA+I+aST4eNgxDdMv+wtN2y1wmKabIhl0AQgWA+8jXLebFlqiUw2vH4/FTpktkyWKxaF7zQBeAUAHgQW/fcz1hvhKVEq0SxdL3fXZLiOMPVC/xQ9V1vbgQTRKjLAEQKgB84HTJ1YbLi1Epp9MpciWjJeTp6ez9v2c5iybJMeMkTzUJgFAB4CnqJUtgfmbsKmOGYchxPhhvuPrgVVF8uaGqqhznAykCgFAB4DcZU0oxDwDclx1RAAAAoQIAACBUAAAAoQIAACBUAAAAoQIAACBUAAAAoQIAACBUAAAAhAoAACBUAAAAhAoAACBUAAAAhAoAACBUAAAAhAoAACBUAAAAhAoAAIBQAQAAhAoAAIBQAQAAhAoAAIBQAQAAhAoAAIBQAQAAECoAAIBQAQAAECoAAIBQAQAAECoAAIBQAQAAECoAAIBQAQAAECoAAABCBQAAECoAAABCBQAAECoAAABCBQAAECoAAABCBQAAQKgAAABCBQAAQKgAAABCBQAAQKgAAABCBQAAQKgAAABCBQAAQKgAAAAIFQAAQKgAAAAIFQAAQKgAAAAIFQAAQKgAAAAIFQAAAKECAAAIFQAAAKECAAAIFQAAAKECAAAIFQAAAKECAAAIFQAAAKECAAAgVAAAAKECAAAgVAAAAKECAAAgVAAAAKECAAAgVAAAAIQKAAAgVAAAAIQKAAAgVAAAAIQKAAAgVAAAAIQKAAAgVAAAAIQKAACAUAEAAIQKAACAUAEAAIQKAACAUAEAAIQKAACAUAEAABAqAACAUAEAABAqAACAUAEAABAqAACAUAEAABAqAACAUAEAABAqAAAAQgUAABAqAAAAQgUAABAqAAAAQgUAABAqAAAAQgUAAECoAAAAQgUAAECoAAAAQgUAAECoAAAAQgUAAECoAAAAQgUAAECoAAAACBUAAECoAAAACBUAAECoAAAACBUAAECoAAAACBUAAAChAgAACBUAAAChAgAACBUAAAChAgAACBUAAAChAgAACBUAAAChAgAAIFQAAAChAgAAIFQAAAChAgAAIFQAAAChAgAAIFQAAAChYgoAAAChAgAAIFQAAAChAgAAIFQAAAChAgAAIFQAAAChAgAAIFQAAACECgAAIFQAAACECgAAIFQAAACECgAAIFQAAACECgAAIFQAAACECgAAgFABAACECgAAgFABAACECgAAgFABAACECgAAgFABAAAQKgAAgFABAAAQKgAAgFABAAAQKgAAgFABAAAQKgAAgFABAAAQKgAAAEIFAAAQKgAAAEIFAAAQKgAAAEIFAAAQKgAAAEIFAABAqAAAAEIFAABAqAAAAEIFAABAqAAAAEIFAABAqAAAAEIFAABAqAAAAAgVAABAqAAAAAgVAABAqAAAAAgVAABAqAAAAAgVAAAAoQIAAAgVAAAAoQIAAAgVAAAAoQIAAAgVAAAAoQIAAAgVAAAAoQIAACBUAAAAoQIAACBUAAAAoQIAACBUAAAAoQIAACBUAAAAhAoAACBUAAAAhAoAACBUAAAAhAoAACBUAAAAhAoAACBUAAAAhAoAAIBQAQAAhAoAAIBQAQAAhAoAAIBQAQAAhAoAAIBQAQAAECoAAIBQAQAAECoAAIBQAQAAECoAAIBQAQAAECoAAIBQAQAAECoAAABCBQAAECoAAABCBQAAECoAAABCBQAAECoAAABCBQAAQKgAAABCBQAAQKgAAABCBQAAQKgAAABCBQAAQKgAAABCBQAAQKgAAAAIFQAAQKgAAAAIFQAAQKgAAAAIFQAAQKgAAAAIFQAAAKECAAAIFQAAAKECAAAIFQAAAKECAAAIFQAAAKECAAAIFQAAAKECAAAgVAAAAKECAAAgVAAAAKECAAAgVAAAAKECAAAgVAAAAKECAAAgVAAAAIQKAAAgVAAAAIQKAAAgVAAAAIQKAAAgVAAAAIQKAACAUAEAAIQKAACAUAEAAIQKAACAUAEAAIQKAACAUAEAAIQKAACAUAEAABAqAACAUAEAABAqAACAUAEAABAqAACAUAEAABAqAAAAQgUAABAqAAAAQgUAABAqAAAAQgUAABAqAAAAQgUAABAqAAAAQgUAAECoAAAAQgUAAODtfgowAHYE+0dtrzWfAAAAAElFTkSuQmCC",i="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAABDgAAAQ4CAIAAABjcvvYAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyVpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDYuMC1jMDA1IDc5LjE2NDU5MCwgMjAyMC8xMi8wOS0xMTo1Nzo0NCAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIDIyLjEgKE1hY2ludG9zaCkiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6QkQ5NTg2Nzk1NEUxMTFFQjg2NzJCMUM4NEM0MEFGRTIiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6QkQ5NTg2N0E1NEUxMTFFQjg2NzJCMUM4NEM0MEFGRTIiPiA8eG1wTU06RGVyaXZlZEZyb20gc3RSZWY6aW5zdGFuY2VJRD0ieG1wLmlpZDpCRDk1ODY3NzU0RTExMUVCODY3MkIxQzg0QzQwQUZFMiIgc3RSZWY6ZG9jdW1lbnRJRD0ieG1wLmRpZDpCRDk1ODY3ODU0RTExMUVCODY3MkIxQzg0QzQwQUZFMiIvPiA8L3JkZjpEZXNjcmlwdGlvbj4gPC9yZGY6UkRGPiA8L3g6eG1wbWV0YT4gPD94cGFja2V0IGVuZD0iciI/PkUY570AADQKSURBVHja7N33ehNZmsBhlCzJtpzkRHfD3P+NzH1MdwPOQTlrv1XteJheoDE41Cm97x88sM9sI59TVZyfKpX++c9/vgEAAMiTsiEAAACECgAAgFABAACECgAAgFABAACECgAAgFABAACECgAAgFABAAAQKgAAgFABAAAQKgAAgFABAAAQKgAAgFABAAAQKgAAgFABAAAQKgAAAEIFAAAQKgAAAEIFAAAQKgAAAEIFAAAQKgAAAEIFAABAqAAAAEIFAABAqAAAAEIFAABAqAAAAEIFAABAqAAAAEIFAABAqAAAAAgVAABAqAAAAAgVAABAqAAAAAgVAABAqAAAAAgVAAAAoQIAAAgVAAAAoQIAAAgVAAAAoQIAAAgVAAAAoQIAAAgVAAAAoQIAACBUAAAAoQIAACBUAAAAoQIAACBUAAAAoQIAACBUAAAAhAoAACBUAAAAhAoAACBUAAAAhAoAACBUAAAAhAoAACBUAAAAhAoAAIBQAQAAhAoAAIBQAQAAhAoAAIBQAQAAhAoAAIBQAQAAECoAAIBQAQAAECoAAIBQAQAAECoAAIBQAQAAECoAAIBQAQAAECoAAABCBQAAECoAAABCBQAAECoAAABCBQAAECoAAABCBQAAQKgAAABCBQAAQKgAAABCBQAAQKgAAABCBQAAQKgAAABCBQAAQKgAAAAIFQAAQKgAAAAIFQAAQKgAAAAIFQAAQKgAAAAIFQAAAKECAAAIFQAAAKECAAAIFQAAAKECAAAIFQAAAKECAAAIFQAAAKECAAAgVAAAAKECAAAgVAAAAKECAAAgVAAAAKECAAAgVAAAAIQKAAAgVAAAAIQKAAAgVAAAAIQKAAAgVAAAAIQKAAAgVAAAAIQKAACAUAEAAIQKAACAUAEAAIQKAACAUAEAAIQKAACAUAEAAIQKAACAUAEAABAqAACAUAEAABAqAACAUAEAABAqAACAUAEAABAqAAAAQgUAABAqAAAAQgUAABAqAAAAQgUAABAqAAAAQgUAABAqAAAAQgUAAECoAAAAQgUAAECoAAAAQgUAAECoAAAAQgUAAECoAAAACBUAAECoAAAACBUAAECoAAAACBUAAECoAAAACBUAAECoAAAACBUAAAChAgAACBUAAAChAgAACBUAAAChAgAACBUAAAChAgAAIFQAAAChAgAAIFQAAAChAgAAIFQAAAChAgAAIFQAAAChAgAAIFQAAACECgAAIFQAAACECgAAIFQAAACECgAAIFQAAACECgAAgFABAACECgAAgFABAACECgAAgFABAACECgAAgFABAACECgAAgFABAAAQKgAAgFABAAAQKgAAgFABAAAQKgAAgFABAAAQKgAAAEIFAAAQKgAAAEIFAAAQKgAAAEIFAAAQKgAAAEIFAAAQKgAAAEIFAABAqAAAAEIFAABAqAAAAEIFAABAqAAAAEIFAABAqAAAAAgVAABAqAAAAAgVAABAqAAAAAgVAABAqAAAAAgVAABAqAAAAAgVAAAAoQIAAAgVAAAAoQIAAAgVAAAAoQIAAAgVAAAAoQIAACBUAAAAoQIAACBUAAAAoQIAACBUAAAAoQIAACBUAAAAoQIAACBUAAAAhAoAACBUAAAAhAoAACBUAAAAhAoAACBUAAAAhAoAACBUDAEAACBUAAAAhAoAACBUAAAAhAoAACBUAAAAhAoAACBUAAAAhAoAAIBQAQAAcq5qCAB4EvP5fDqdzmaz7Nf5Zx
20aLRfwPsl8flMvl7NfKZ6rVaq1Wy36NPxpVAKECAI8zmUxGo9F4PJ6sRJw86v/9oV6+9v8YubKxUq/XG41G/MaYAwgVAPiCyJLBYDAcDiNR5vP5s/5ds5X467I/ViqVyJVms7m5uRnpYi4AhAoAa22xWPRXohmeO06+If7q7GNk0RK5srWSXUIGgFABYF36pLcSfbJcLnP12SJauiulUimKZXtFsQAIFQCKbDgcdjqdSJS/3P6eQ1FQ2WmWy8vLaJWdnZ1ms2kGAYQKAMURWRJ9cn9/P5lMEv3wYWNjY3d3N4rFCRYAoQJA2qbT6f1K/k+h/K2orMvLy+vr692VWq1mfgGECgDpJcrt7W2n08nbXSg/KYorfq67u7udnZ39/X25AiBUAEjDbDa7ubkpXqJ8Ln60+/v7+BkjVw4ODqpV/+oBCBUAcrx8v10pwIVe358r3W53f6VUKtkGAIQKAPnS6/Wurq6m0+m6/eBRZdfX151O5/DwcHt725YAIFQAyIXZbHZ5eRmhss6DEIX26dOnCJWjoyNXggEIFQBe2f39/dXV1Zpc6/W3srdYHh4e7u7uGg0AoQLAK5jNZhcXF/1+31B8LpotG5bj42OnVgByyMuwAIqs1+v9/vvvKuVrYmRifNb8cjgAoQLAy1kul1dXV58+fZrP50bjG2J8YpRirAr8mGaAFDnZDVBAs9ns7OxsOBwaiu90e3s7Go1OT09dBgaQE86oABTNeDz+448/VMpjxYjFuMXoGQoAoQLAE+v3+3/++edsNjMUPyDGLUbPLT0AQgWAp3R/f//p0yfPIP4ZMXoxhjGShgLgdbkSF6Agbm9vr66ujMPPWy6XFxcXUSz7+/tGA+C1OKMCUATX19cq5WnFeMaoGgcAoQLAjy+pb25ujMOTi1GVfwBCBYAfXEzf3t4ah2cSYysCAYQKAI9eRrs86bnFCEtBAKECwPfqdDouTHoZMc4x2sYBQKgA8DeGw+HFxYVxeDEx2t6hCSBUAPiWyWTy6dOn5XJpKF5MjHaMeYy8oQAQKgB8wWKx+Pjx43w+NxQvLMY8Rt77NAGECgBfcH5+Pp1OjcOriJGP8TcOAEIFgP9ye3vb6/WMwyuK8fcQMAChAsB/DIdDDyPOg5gFN9YDCBUA/tdisTg/P3cDfR7ELMRcuFkFQKgA8Oby8tKtKfkRcxEzYhwAhArAWuv1el44mDcxI+4XAhAqAOtrsVj48j6fYl5cAAYgVADW1PX19Ww2Mw45FPPi8QYAQgVgHY1Go/v7e+OQWzE7MUfGAUCoAKyXq6srT/rKs5idmCPjACBUANZIt9v1vo78izmKmTIOAEIFYC0sl0v3P6QiZsqJLwChArAW7u/vvTglFTFTbiUCECoAxbdYLG5vb41DQmK+PKoYQKgAFFyn0/FI4rTEfHkpJ4BQASiy5XLpdEqKYtbcqQIgVAAKq9vtOp2Sopg1j/8CECoAhXV3d2cQzB2AUAEgR4bD4Xg8Ng6Jirnz6hsAoQJQQL6SN4MACBWAfJnP5/1+3zgkLWYw5tE4AAgVgOLodrseG5W6mEG31AMIFYBC8SIO8wiAUAHIl8lk4jb6Yoh5jNk0DgBCBaAIer2eQTCbAAgVAEtbzCaAUAHg66bTqeu+iiRmM+bUOAAIFYC0eSqxOQVAqADkzmAwMAjmFAChApAjy+VyOBwah4KJOfVWHAChApCw0Wi0WCyMQ8HEnMbMGgcAoQKQcKgYBDMLgFABsJzFzAIIFQC+yQ0qZhYAoQKQL9PpdD6fG4dCipn1NhUAoQKQpMlkYhDMLwBCBSBfvJDe/AIgVAByxzfu5hcAoQJgIYv5BRAqAPwdN1ubXwCECkC+zOdz76QvtphfT3UDECoAiZnNZgbBLAMgVAAsYTHLAEIFAEtYs2yWAYQKQFrcoGKWARAqALnjNmuzDIBQAcgd37WbZQCECoAlLGYZQKgA8HeWy6VBMMsACBUAAECoAPBNLgoyywAIFYDccVGQWQZAqAAAAEIFAABAqAAAAEIFAABAqAAAAEIFAABAqAAAAAgVAABAqAAAAAgVAABAqAAAAAgVAABAqAAAAAgVAABAqAAAAAgVAAAAoQIAAAgVAAAAoQIAAAgVAAAAoQIAAAgVAAAAoQIAACBUAAAAoQIAACBUAAAAoQIAACBUAAAAoQIAACBUAAAAoQIAACBUAAAAhAoAACBUAAAAhAoAACBUAAAAhAoAACBUAAAAhAoAAIBQAQAAhAoAAIBQAQAAhAoAAIBQAQAAhAoAAIBQAQAAhAoAAIBQAQAAECoAAIBQAQAAECoAAIBQAQAAECoAAIBQAQAAECoAAIBQAQAAECoAAABCBQAAECoAAABCBQAAECoAAABCBQAAECoAAABCBQAAQKgAAABCBQAAQKgAAABCBQAAQKgAAABCBQAAQKgAAABCBQAAQKgAAAAIFQAAQKgAAAAIFQAAQKgAAAAIFQAAQKgAAAAIFQAAAKECAAAIFQAAAKECAAAIFQAAAKECAAAIFQAAAKECAAAIFQAAAKECAAAgVAAAAKECAAAgVAAAAKECAAAgVAAAAKECAAAgVAAAAIQKAAAgVAAAAIQKAAAgVAAAAIQKAAAgVAAAAIQKAAAgVAAAAIQKAACAUAEAAIQKAACAUAEAAIQKAACAUAEAAIQKAACAUAEAABAqAACAUAEAABAqAACAUAEAABAqAACAUAEAABAqAACAUAEAABAqAAAAQgUAABAqAAAAQgUAABAqAAAAQgUAABAqAAAAQgUAAECoAAAAQgUAAECoAAAAQgUAAECoAAAAQgUAAOBFVA0B8LqWy+VsNlssFvGb+GOpVCqXy5VKJX41OJCW2JHn8/lfdudqtRq/MTiAUAHyLrJkOByORqPxeDydTuOPX/yfRavUarV6vd5Y2djYMHSQN5PJZLSS7c5RKV9ebVSrD7tzs9mMPxo6QKgAOeqTbrfb6/ViTfM9//v5SvyP7+/v448RKtvb261WS7FAHvok253jN9+5+2ffUGR/jFzJdmfFAggV4DWNx+Pb29tY02RXg/zwwuhmZWtra39/v9lsGlh4eREbsTv3+/2f+Y9kJ2Gur68jV2J3rtfrBhYQKsCLms1msRbpdDpP+N/sr0SuHB0d1Wo1gwwvYzqdXl5e/mSifG65XHZXdnZ22u22syuAUAFeSKw/Li4uFovFc/zHY7U0GAxicbO/v2+o4bnd3t5eX1//zEnRb+h0Or1e7/j4uNVqGWpAqADPKFYzkShPeyLli3/L1dXVcDg8PT31iDB4JovF4uzs7AlPpHzjbxkMBpErHhEGZPzTDjz9guPjx4/PXSkPYv30559/fu3RYcDPiD0r9q/nrpQHcdyIo8cznYYFhAqw7pXy4cOHwWDwkn/peDzWKvBMlRL710v+pXH0iGOIVgGECvCUlsvlp0+fvvPpw09rOp36IhaeUHZqNPasl/+r4xhydnb2TPfDAEIFWEdXV1cvfC7lc+PxOBY3ZgGeROxNL3wu5XP9fj+OJ2YBhArA0yws7u7ufAYogNiPXuy+lDx/BkCoAMlbLBYXFxd5+CRXV1evcrEKFEbsQTk5m/F8zzcHhAqwLm5vb3NyL/tyuby+vjYj8MOe730pjxVHlTi2mBEQKgAFWUx0u91XuaEfCiD2ndiD8vN58vMlCCBUgPTc39/n7fk8voWFYuw7cWyJI4x5AaEC8GiLxSKHy4h+v+9OFXis2GtyeP96HGHcqQJCBeDRBoPBfD7P26daLpe9Xs/swKPEXpPDt5fEEeYVn3sOCBUg4ZVNPj9Yrq6zhyTkdq/xvQMIFYDHWS6XuX3RwXg8dg8ufL/YX17xDY/fFscZL6oHoQLwCJPJJM/Xjg+HQ3MEBdhf4jgTRxtzBEIF4Hvl/CnAHlIMdmdAqADrKLcXimR8BQuF2V9yfrQBhAqQLzl/BLAnFIPdGRAqgJVN7sxmMzfgwveIPSXnD58QKiBUAB4hh29Q+cvay3vi4HvEnpLzqs/50QYQKkDuSiD/yy/TBAXYU5wdBaECUKilg8UN2JcBoQJgcQP2FAChApD+8qtcdhxeg39rcz/LQgUQKgCWX/+lVCqZpsLL/ywLFUCoAAAACBXgOeX/e+L8P8vIpV9r8W9t7mc5/3uKc48gVAAKtXTI/wUtlUrFhlR4+Z9lF0kCQgUo1hHE2QBjiFk2hoBQAfIm/99x5v9t1s6orIP8z3L+9xRnVECoABRq6ZD/K++FilCxpwgVQKgAT30Eyf3FGPn/nrhardqQCi//s5z/PcWlXyBUAISKJSxCxdEGECqAUHlO+b+gJZawrmkptpjf/IeKB3kDQgUQKi8q/98Th1qtZlsqsCTm1xkVQKgAheJZRk9iY2PDtlRgScyv5+MBQgUQKi9qNptZyGJ+C7CnCBUQKgCFWjosFov8f1UsVITK64p9xIO8AaECCJWXlv+viuv1um2pwPI/v0mceBQqIFQAhMpLq9VqbhQu7L+y5XL+b6YXKoBQAYomiXeATKfTnH/CUqnUaDRsToUUM5v/x0/nfx95441DIFQAHiWJ7ziTWIQJlQKHin1kfY42gFAB8iKJN9klcVmLUBEq9pFv8F5UECoAj5b/rzknk0n+h7HZbFqHFbLkY2bz/znzv4+47guECsCj5f9G4el0ulwu834sLpedVCmemNP8PyYh9o78X/olVECoABRwARHrsCROqmxubtqcCiaJOY29I/8lL1RAqAA8Wv7PqITxeGxRizlNd+9I4jgDCBXAAuLRkjij0mg0fG1cJDGbSVzOl8TeIVRAqAAIldfUarVsUYWRymwKFUCoAIUNlfw/riqJi1vC9va2LaowUpnN/O8dcYQRKiBUAH5kDZHEq1SSeJtKvV539VcxxDzGbOb/cyaxa3iJCggVgB+0sbGR/w85HA6TqL6dnR1bVAHEPCaxtk5iv0jiCAMIFSCPkrgqYzQapbLAtUUVI1SS+JxJ7Beu+wK
20hAvCDkrjEJZVQiTVZEu8y5xtiBlNZWyexXyRxhAGECpBHSVyYMR6PF4tFEuO5u7tro0paKjMYe0QSz5lw6RcIFYAfX0bk/3L85XKZ0LO/3FKfrpi7hJ73lf930sexRaiAUAH40eNIuZzEhS5J3Decrcz29vZsV4mKuUvlEVVJ7BFxbIkjjO0KhArAD0riIvLBYJDKeO7s7FicJRrtCT0OIYk9wg0qIFQAir+YGI1G8/k8ifGsVCruVElRzFrMXRIfNfYFd9IDQgUQKrmwXC5Tufor7O/vO6mS2D+o5XLMWiqfNvaF/N+gIlRAqAD8rEajkcTnTOjqLydVkpPQ6ZSE9oVUji2AUAHyeigpl5N4Mk9CofLGSZXUdoGETqeksi/EUcUuAEIF4Gcl8cXndDqdTCapDGmlUjk4OLBpJSFmKqHTKbEXxL7gqAIIFUCo5Eiv10toVPf29lJ5x/k6izlK64nSqewFQgWECoBQyalSqXR4eGjryrmYo1TenSJUAKECrJ2NjY0kLn0Zj8cJXf31ZvWi+q2tLRtYbsXspPIq+kxs/7EX5P9zxvHEO+lBqAA8gVKp5KTKMzk6OnJLcU7/ES2XY3bS+swJnU5J6zwVIFSA/Go2mxZqz6FWq7XbbRtYDsW8JHcTUSrbfyrHE0CoABYWT2Y8HifxyKPP7e7uWrflcINP7l03qVz3JVQAoQI8pXq9nsoTWjudTlpjWyqVTk5OXACWo38+y+WYkeSuTep2u0l8zjiSeCc94N884CkX06l8CRqhslwu0xreWq12fHxsM8uJmIvkLvqKbT6VRI8jiRtUAKECPKXNzc0kPudsNkvrLfWZVqu1s7NjM3t1MQsxF8l97NjmY8t3JAGECiBUci25q78yR0dHLol5XTH+yT3pK7ltXqgAQgV4YrWVJD5qv9+fz+fpHbXL5bdv36ZyL1DxxMjH+Kd4s1Bs7bHNO4wAQgVYX6m8nTCh6/X//zLu9PTUFfwvL8Y8Rj7RNXRC92V5wykgVIB1X2SkeEt9ZnNzM9Grj5IWY57oJUlpZblQAYQK8CyazWYqF8ZMJpNULob5/3Z3d/f3921vLyZGO7m3pjyI7Ty29jTWJeWyN6gAQgV4FqVSKaFvne/u7tId6sPDwxSfPZWiGOcY7XQ/f0LbeRw9XNYICBXguWxvb6fyUYfD4Wg0SneoT05OEhrtdLfnGOd0P39s4bGdO3oAQgXgfy8xT+g70aRPqmS3d7um/1k35tQfXZDQFh7jbGMGhArwnEeWcjmhq796vV4qb8H72tru7du3lnfPVCkxtklXSmzbsYWn8mnjuJHio58BoQKkJKHrN5bL5e3tbdKjnbWK+1WeVoxn6pUSYttO6NF2rvsChArwEguOhFZ49/f3SZ9UyVrl5OQk3cdS5U2MZIxn6pUSW3Vs2wltw0IFECrA8x9cyuWELkYqwEmVbJ13fHzcbrdtfj8pxjBGsgDPnkrrdEocMVz3BQgV4CWk9eVoAU6qZA4ODry3/mdiL0YvxrAAP0tap1PeuO4LECrAi0nr+9Hlcnlzc1OMkW+1Wr/99lu1WrURPkqMWIxbYW71ie05odMpaZ2DBYQKkPjxpVxO6yvSTqcznU6LMfiNRuP9+/cJPXvt1cVYxYjFuBXjx4ktObbnhD5wHCtc9wUIFeDl7OzsJPRpi3RSJVQqlV9++eXg4MBlYN8W4xOjFGMVI1aYHyqt0ynJHSsAoQIkr9ls1mq1hD5wp9NJ+kX1/38J3m63f/3117Rm4SXFyMT4xCgVKediG07rdErMQhwrbI2AUAFeVHJflF5dXRUvF9+/f+8b6y9unDEyxVsiJ7cN2zgBoQK8zhIkre+qh8Nht9st2rG+XD45OXFq5UF2IiXGpHj3RcTWG9twQh84jg9CBRAqwCuoVqvJ3dJ9fX2d1vX93ykm4h//+Mea37WS3ZES41DIJw3Edhtbb3KbpSfUAUIFeB3JfV06nU4L8P7Hry3T2+12LNPX850V8VPHz16wO1I+F9ttck+uczoF+BrfYQDPbmtrq1qtpvU6xVjwtVqtol4oFT/X27dvh8Ph1dVVkR4e8A2NRuPw8LDYd2ynGNhxZPD6FOBrnFEBnl2pVNrd3U3rMy8Wi8vLy2LPS6za371798svvxTm5SFfS5T4GeMnLfxzpWKLje02rc8cRwaPzwa+xhkV4IWWI8m92KHf7/d6vcJfIrW1Ej/s3d3dYDAo0o+2ubm5t7e3Jl/Yx7Yak5jWZ07xKwxAqABFU6lUWq1WWu92eLP6irrZbBbpPYDfzpXxeBy50u12k36WQCx/Y2OLRKnX62uyf83n8xRPAMY0rcPOBQgVIO9i4ZhcqMxms6urq5OTkzWZo1jZxw97eHgYrRKTFd2S3Off2dlZw+VvbKVp3QP2cExwYASECpCLReTm5mZyFxfFen17e3ut7veNVf7eymg0imLp9Xo5XwRXq9WYo+iTYt9s8zX9fj+5rwDerC7MW59TXoBQAfIu1r4p3gVxcXHx/v37NbxGpbFydHQUxZLdAjGZTPLz8TY2NiIgI1HWs08y8/k8ts9EjwYOiYBQAfIilpWxuMzVYvd7zGazWAu+fft2bScuK5bDw8PpdDpYiXR5ldMs1Wo1PsnmSlEfHv3Yik7xoq8sMk0fIFSAHNnf3z8/P0/uY/d6vfv7e08oijbYXXmzemvHaGU8Hkd8zufz5/gbK5VKLGrr9XoWS+Lkc7FNxpaZ6HHA9AFCBciXVqt1fX2d4nfAV1dXzWYzFs0m8SFaQkxo9seY08iVqJf4TfZrWCwW3xkwESTlcrm6Ev/Z7NcY7fiNof6iGO3YJpNceVSrD5sNgFAB8qJUKu3v76f4KNVYc5+dnb1798776b62+vxiVCyXy8XKciUbyWiSbGMI5RWj+igxkrE1Jvd6x0wcAUw3IFSAPNrZ2bm9vU3xpMp4PI7EOj4+NomPStPKiqF4QrEdJvfw6IegjSOAGQS+R9kQAC993CmX071C/f7+PsVHwVIksQXGdpjoh499PzufBiBUgDza2dlJ996DdL/MpgCy03qJfninUwChAuT+0JPySZXFYvHp06dnesgVfENsdbHtJXpryhunUwChAiQh6ZMq0+n07OwsuzUcXkZ2A31se4l+fqdTAKECJHL0KZcPDg7S/fyDwSDdK3BIUWxvsdWl+/ljf3c6BRAqQBp2dnaSfi3J/f393d2deeQFxJaW7g30b1avonc6BRAqQDJKpVK73U76R7i6ukr01eAkJLaxRN/t+CD2dO9OAYQKkJLt7e1Go5Hu518ul+fn58Ph0FTyTGLrim0s6RuiYh+PPd1UAkIFSMzR0VHSnz97CNhkMjGVPLnYrpJ+zFcx9nFAqABrqtFotFqtpH+E+Xz+4cOH2WxmNnlCsUXFdpX6g7Bj7076rCkgVIC1VoDr14uxpkT9Pq0C3IcGCBVgrdVqtXTf//hgMploFZ6wUgpwPWHs17F3m1BAqAAWNK9sPB7H+jL1Owp4XbH9xFYU21LqP0gxvoAAhAqw9gejcvnw8LAAP0jWKs6r8GOycykFqJQQe7Q3PAJCBSiC7e3tzc3NAvwgo9FIq/DDlRLbTwF+ltiXPZIYECpAcRwfHxfjrXDZeRXPAeP7Zc9jKMa5lNiLY182p4BQAYqjVqsdHBwU42eJFeeff/45nU5NK38rtpPYWopRKSH2YvfQA0IFKJr9/f2NjQ2rT9ZHwZo29l/30ANCBSigUql0cnJSmB9nNpvFGnQwGJhZvii2jdhCinSVYOy/xbiAExAqAH/VaDT29vYK8+MsFouPHz92u10zy1/EVhHbRpGeZx17rvfQA0IFKLJ2u12ka9yXy+XZ2dnNzY2Z5cH19XVsFbFtFOYnin3We+gBoQIU/dhULhfvqUHZwtTrIIltoJDhGvusF6cAQgUovs3NzSJdAJbpdrsFuyGBx8puWyrepYCxtxbjPUiAUAH4e+12uzBPAHswHo9///334XBoftdQzHvMfvEeBBf7qYu+AKECrNMRqlwu5BOEsheQ397emuK1EjMe8x6zX7CfK3tSn4u+AKECrJdGo1GYV0B+brlcXl1dffz4sXjLVr6YpjHXMeNFunX+QeyhnvQFCBVgHe3v7zebzUL+aP1+32VghZdd7hVzXcifLvZNr3cEhAqwprILSyqVSiF/utls9uHDh+vr60J+177mYk5jZmN+i/r4hNgrvd4RECrAWqvVasV7WvHny9mbm5s///xzMpmY68KI2Yw5jZktcILGXlmk9x0BQgXgR2xvbxfvacWfG41Gf/zxx93dnVMrBSjPmMeYzZjTAv+YsT/GXmm6gedTNQRAKg4PD0crRf0BF4vF5eVlr9c7Pj4u3nOZ18RkMrm4uCj8fUeNRiP2R9MNPCtnVIBklEql09PTot6s8iC797rYlwwVUnYJ3zo8HSH2wdgT3ZoCCBWA/6jVaicnJ+uw5L2+vvZAsOTyck0eihD7oFtTAKEC8FdbW1tr8g7s7G7ss7Oz6XRq3nMrZifmaH2ehRB7X+yD5h14Ae5RAdJzcHAwGo2K+mKKv+h2u71eb3/Fy79zZbFY3K6sz0V6kSiFfAErkE/+zQOSdHp6uj63m2c3P/zrX//qdDpuXMnJ
20jMRcxIys1a1EscfFfmf2AaEC8M2DV7n8yy+/FP7G+s/NZrPz8/M//vhjTU4l5VaMf8xCzEVRX+P4RbGvxR7nnB7wklz6BaSqVqudnp5+/PhxrU4yjMfj+JEbjcbBwYFbBV4+UW5ubor9dpQvyh645wZ6QKgAfK/Nzc2jo6OLi4t1+8FjrZzlSrvdjkGwJTy3wWBwfX29homSib3MZgYIFYDH2d3dnU6nt7e3a/izx7r5w4cPzWZzb29va2vLey2e3HK57Pf7d3d36/yc6P39/djLbAyAUAF4tHa7Ha3S6/XW88cfrtRqtciVnZ0ddxE8icVi0el0IlHW/NnQ29vba/I0cECoADy9Uql0cnIyn8/X+WvvWE9fXl7e3NxEq0SxVKsO7z9oNptFn0SlxBa15kPRbDZjz3KmDhAqAD+uXC6/fft2fV669zWxtr69vY119ubmZhSL68G+X3aVV/TJYDDwDOg3q4cRxz7lBB0gVAB+Vvb41GiVtXpo7DfW3CHGZGdlfd458wMibjsrTqH8Z3FQra7b478BoQLwjGq1WqyuPnz4YMWZyU6whGazub3ikrAHEbS9lXW+YvAbze9hxIBQAXhK9Xo9a5XFYmE0HmQ33F9eXioWffJt2atUYz8yFIBQAXhijUbj7du36/YiyB8olq2trc3NzTVZko7H48Fg0O/39ck3lEql2HdiDzIUgFABeBax/o711qdPn7TKt4vlzepuhM1/K9g9CfP5fPBv7lz6zkrxYkdAqAA8r62tLa3yPWIFn91K/mZ14Vyz2WysJHqLwnQ6Ha1Eho3HY/P7qEqJvcZQAEIF4CVa5eTk5Pz8XKt8p/HK//3zUK02/m1jYyO3J1vm8/lkMhn9mzMnP1YpsaeoFECoALycVqsVv2qVH/Bw0/lDt0Su1Ov17Nf446ukS2RJfLCoqYiT7Fdl8iSVku0pAEIF4EVbpVwuuwbs57slDAaDh/9LjGqtVotiefg10iX+j5WVH37RZEzTfGWxWMSv0+k0/t6HXz3M7ckrxRVfgFABeDXuV3kO0QyfXyr2F1mxxK+llTert3NkK+OwXHmzOkOSxUnIykSKqBQAoQKsV6v88ssv0SrWwS+WMYY6z6IhPeMLyPuRyhAAayLWZL/++muszwwFKiX2BZUCCBWAvGg0Gr/99lvB3hYCjxLbf+wF3uoICBWAfKnX6+/evUv0JSHwk2LLj+0/9gJDAQgVgJyu1XyjzLqJbV6lA0IFINcqlcqvv/7qeUesj9jaY5t33SMg
20VAByf/hbPfVod3fXUFB4sZ3H1u5JEkBaPJ4YWF+lUun4+LhWq11fX3vFCkXdyNvt9v7+vqEAhApAYmINt7GxcXZ25r0fFEy5XD49PXWJI5DqQcwQAMRK7rfffnOTMUUS23Ns1SoFECoAacseW9xsNg0FBRBbsscQA0IFoCCyR4Ht7e0ZCpIW27AHfAEF4B4VgP8olUpHR0eNRuPi4sItKySnXC4fHx+3Wi1DAQgVgAKKdV52e/1kMjEapCI22tPTU5d7AYXh0i+AL8huWfHNNAnVtZtSgIJxRgXgy7JHuzabzcvLS29ZIbey6xW9uhQQKgDrJdZ/jUbj/Px8PB4bDfKmXq+fnJw4kQIUkku/AP5+Lfju3TtPAyNvYpt0uRdQYM6oAPy97Oqazc3Ni4uL2WxmQHjlf7yr1ePjYy9zBIrNGRWA7xXrwvfv329vbxsKXlFsgbEdqhSg8JxRAXiESqXy9u3bbrd7eXk5n88NCC+8+R0dHXkYHSBUAPiyWClmTwPr9XpGg5exvb0dlVKt+ocbECoAfOPoWa2+ffs2QiVyxV0rPPfGFonimkNAqADwvWLt2Gw2r6+v7+/vjQbPYXd3t91uVyoVQwEIFQAeIVaQx8fHrVbr4uJiMpkYEJ7KxsZGbFpRwoYCECoA/KBYTb5///7u7u7m5maxWBgQfka5XD44ONjb2yuVSkYDECoA/JRYU+7v77daraurq263a0D4MbEJHR4eumkewHEQ4EmPqtXq6enp7u7u5eXleDw2IHy/er1+dHTkWi8AoQLwXGKt+e7du263e3197ZlgfE/fttvtVqvlWi8AoQLwvGLFubOzs729fXd3d3t768YVvqhcLu/v7+/t7cVvjAaAUAF4uWXowcHB7u7uzc3N/f39crk0JjykbGwYsXl49DCAUAF4HbESPTo62tvbi1zpdrtyRaK0Wq1IlFqtZjQAhArAK4tV6cnJSSxPI1c6nY4BWU87OzsSBUCoAOQ0V/b3929vb51dWR/ZWZSY942NDaMBIFQAcipWq9nZlciVTqcjV4qdKDs7O5EozqIACBWANMTK9fj4OHLlfmU+nxuTIqlUKrsr3t4IIFQAEjwQr96hsb+/3+l07u7uptOpMSlAgu7t7e3s7HjoMIBQAUhbrGhjabu7u9vv9+/v7weDgTFJ0ebmZkzi1taWVzcCCBWA4ojV7fbKZDKJXOl0Ot4UmUpn7uzsRKK4Vx5AqAAUWax3j46O2u12r9eLYhmNRsYknxqNRvRJtKWrvACECsC6yL6nD+PxuLsym80MSy7++axWWyv1et1oAAgVgDVVX2m324PBIHKl1+t5ovGryK7Niz7Z3Nx0FwqAUAHg/1bJWyuLxaK3Et2iWF5m5KNMstuHXOIFIFQA+LKHS8Lm83m/31csz90nEYeVSsWAAAgVAL5LrJ6zYlksFv2VKBYvjvz5UY0+yU5eOX8CIFQA+HGxns7u7V4ul6PRKCuW8XhsZL5fvV7P+qTRaLj/BECoAPCUYoXdXInfz2azwcpwOPS4sC//K1itxlhtrsTvDQiAUAHgJVbh2YVh8fvJZDL8tzWPlixOMt7PCCBUAHhNGyu7u7tvVmdaIldGK+PxuPB34ZdKpXq93liJOHHmBECoAJDLQ/+/X1YYv49KmUwmWbHEb+LXxWKR+g9YLpejTCLMsj6J37jnBECoAJCS7GzD569Xn06nk/+W83SJLNn4b7VazcwCCBUACqW2srW1lf3x/Py80+nk+QNvb2+fnJyYOICC8Xh4AABAqAAAAAgVAABAqAAAAAgVAABAqAAAAAgVAABAqAAAAAgVAAAAoQIAAAgVAAAAoQIAAAgVAAAAoQIAAAgVAAAAoQIAAAgVAAAAoQIAACBUAAAAoQIAACBUAAAAoQIAACBUAAAAoQIAACBUAAAAhAoAACBUAAAAhAoAACBUAAAAhAoAACBUAAAAhAoAACBUAAAAhAoAAIBQAQAAhAoAAIBQAQAAhAoAAIBQAQAAhAoAAIBQAQAAECoAAIBQAQAAECoAAIBQAQAAECoAAIBQAQAAECoAAIBQAQAAECoAAABCBQAAECoAAABCBQAAECoAAABCBQAAWCNVQwCQuuVyOZ/PF4tF/CZ+fdr/+Gw2y/mPH59wOBw+7X+zXC6XSqX4tVKpxG9sYwBCBYC/FzUSS/PRynQ6jZV6JMrajsZg5Zn+41Ep1Wq1Vqs1VprNZtSLLRBAqADwX33S7/e73W6sy9e5TF5SjPN0JWuh6JbNzc1Wq7W1taVYAIQKwLqbz+d3d3f39/fxG6Pxut3SX6lUKru7u3t7e/EbwwIgVADWcWUciXJzc/PkN5/wk+kYkxJTc3BwELniPhYAoQKwRiaTydnZ2Xg8NhT5FPV4dXXV7XZPT083NjYMCMATcn0tQE51Op3ff/9dpeRfzFHMVMyXoQB4Qs6oAOTR9fX1zc2NcUjFcrk8Pz+fTqftdttoADwJZ1QAcufq6kqlpChmLebOOAAIFYACul0xDqYPQKgAkBeDwcBX8qmLGXy+F1ACCBUAXtp8Pj87OzMOBRDz6I03AEIFoCAuLy+tbgvTnDGbxgFAqAAkbzgcdrtd41AYMZsxp8YBQKgApM2tKeYUAKECkC/D4XA0GhmHgok5dVIFQKgAJOzu7s4gmFkAhApAjiwWi36/bxwKKWY25tc4AAgVgPT0er3lcmkcCilmNubXOAAIFYD0OJ1ifgEQKgC54zZ68wuAUAHIl+l0OpvNjEOBxfzGLBsHAKECkJLxeGwQzDIAQgUgX5xOMcsACBWA3HFRkFkGQKgA5M58PjcIZhkAoQKQL96gYpYBECoAueO15WYZAKECAAAIFQD+9ihcdhw2ywAIFQBLWMwygFAB4NsqlYpBMMsACBWAfKnVagbBLAMgVAAsYTHLAEIFgG+q1+sGwSwDIFQA8qVSqfi6vdhift2jAiBUANLTbDYNgvkFQKgA5Mv29rZBML8ACBWAfNnc3PSejcL+K1sux/waBwChApCeUqnUarWMQyHFzMb8GgcAoQKQpL29PYNgZgEQKgD5srGx4U6G4ok5jZk1DgBCBSBh7XbbNUJFErMZc2ocAIQKQNo2NjZcJlQkMZtOpwAIFYAiaLfbXmFeDDGPTqcACBWAgiiVSqenpx5VnPy/rOVyzKML+QCECkBxbGxsWOMWoDZd9AUgVACKZmtr6+TkRKskWikxdzGDhgLg51UNAUDeZG8JPD8/XywWRiMV5XI5KsVjpgGECkCRxXq3Wq2enZ1Np1OjkX+1Wu309LTRaBgKgKfi0i+AnIpV7/v371utlqHIuZijmCmVAvC0nFEByK/s+VG7u7uXl5fj8diA5E29Xj86Omo2m4YCQKgArJ1YB797967f79/d3Q2HQwOSk0nZ29vb2try2AMAoQKwvmI1vL0ymUx6K06wvIp6vZ5NhAcQAwgVAP4j1scHK/P5fLQS6TKbzabT6XK59JSwJ1Qul6MPa7VatVqNYW+sVCoVIwMgVAD4qlgxb60YCgAKyVO/AAAAoQIAACBUAAAAoQIAACBUAAAAoQIAACBUAAAAoQIAACBUAAAAhAoAACBUAAAAhAoAACBUAAAAhAoAACBUAAAAhAoAACBUAAAAhAoAAIBQAQAAhAoAAIBQAQAAhAoAAIBQAQAAhAoAAIBQAQAAECoAAIBQAQAAECoAAIBQAQAAECoAAIBQAQAAECoAAIBQAQAAECoAAABCBQAAECoAAABCBQAAECoAAABCBQAAECoAAABCBQAAQKgAAABCBQAAQKgAAABCBQAAQKgAAABCBQAAQKgAAABCBQAAQKgAAAAIFQAAQKgAAAAIFQAAQKgAAAAIFQAAQKgAAAAIFQAAAKECAAAIFQAAAKECAAAIFQAAAKECAAAIFQAAAKECAAAIFQAAAKECAAAgVAAAAKECAAAgVAAAAKECAAAgVAAAAKECAAAgVAAAAIQKAAAgVAAAAIQKAAAgVAAAAIQKAAAgVAAAAIQKAAAgVAAAAIQKAACAUAEAAIQKAACAUAEAAIQKAACAUAEAAIQKAACAUAEAABAqAACAUAEAABAqAACAUAEAABAqAACAUAEAABAqAACAUAEAABAqAAAAQgUAABAqAAAAQgUAABAqAAAAQgUAABAqAAAAQgUAAECoAAAAQgUAAECoAAAAQgUAAECoAAAAQgUAAECoAAAAQgUAAECoAAAACBUAAECoAAAACBUAAECoAAAACBUAAECoAAAACBUAAAChAgAACBUAAAChAgAACBUAAAChAgAACBUAAAChAgAACBUAAAChAgAAIFQAAAChAgAAIFQAAAChAgAAIFQAAAChAgAAIFQAAAChYggAAAChAgAAIFQAAAChAgAAIFQAAAChAgAAIFQAAAChAgAAIFQAAACECgAAIFQAAACECgAAIFQAAACECgAAIFQAAACECgAAIFQAAACECgAAgFABAACECgAAwP+wX8cCAAAAAIP8raexoywSFQAAQFQAAABEBQAAEBUAAABRAQAAEBUAAEBUAAAARAUAABAVAAAAUQEAAEQFAABAVAAAAFEBAAAQFQAAAFEBAABEBQAAQFQAAABRAQAAEBUAAEBUAAAARAUAAEBUAAAAUQEAABAVAABAVAAAAEQFAAAQFQAAAFEBAABEBQAAQFQAAABEBQAAEBUAAABRAQAARAUAAEBUAAAAUQEAABAVAAAAUQEAAEQFAABAVAAAAFEBAAAQFQAAQFQAAABEBQAAEBUAAABRAQAAEBUAAEBUAAAARAUAABAVAAAAUQEAAEQFAABAVAAAAEQFAAAQFQAAAFEBAABEBQAAQFQAAABRAQAAEBUAAEBUAAAARAUAAEBUAAAAUQEAABAVAABAVAAAAEQFAAAQFQAAAFEBAAAQFQAAQFQAAABEBQAAEBUAAABRAQAARAUAAEBUAAAAUQEAABAVAAAAUQEAAEQFAABAVAAAAFEBAAAQFQAAQFQAAABEBQAAQFQAAABRAQAAEBUAAEBUAAAARAUAABAVAAAAUQEAAEQFAABAVAAAAEQFAAAQFQAAAFEBAABEBQAAQFQAAABRAQAAEBUAAABRAQAARAUAAEBUAAAAUQEAABAVAABAVAAAAEQFAAAQFQAAAFEBAAAQFQAA4C4BBgBoSQczVbfLpQAAAABJRU5ErkJggg==",a="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAQSURBVHgBAQUA+v8AAAAAAAAFAAFkeJU4AAAAAElFTkSuQmCC"},6623:function(e,t,n){"use strict";var r=n(5893);n(7294),t.Z=e=>{let{content:t,noWrap:n}=e;return(0,r.jsx)("p",{className:"lead",style:n?{display:"block",whiteSpace:"nowrap",width:"100%",overflow:"hidden",textOverflow:"ellipsis"}:{},children:t})}},5995:function(e,t,n){"use strict";var r=n(5893);n(7294);var i=n(1664),a=n.n(i),o=n(5980),s=n(1163);let l=e=>"/recherche"===e||e.startsWith("/recherche?")?"/recherche":"/horoscope"===e||e.startsWith("/horoscope?")?"/horoscope":"/[[...proxy+]]";t.Z=e=>{let{href:t,as:n,query:i}=e,u=!n&&t.startsWith("http"),c=n||u?t:l(t),d=u?void 0:n||t;if(!i||o.Z.SSR)return(0,r.jsx)(a(),{legacyBehavior:!0,href:c,as:d,prefetch:!1,children:e.children});{let t={...(0,s.useRouter)().query,...i},n={pathname:c.toString(),query:t};return(0,r.jsx)(a(),{legacyBehavior:!0,href:n,as:d,prefetch:!1,children:e.children})}}},1112:function(e,t,n){"use strict";var r=n(5893),i=n(7294),a=n(706),o=n(5995),s=n(8462),l=n(3325),u=n(3433),c=n(8646);t.Z=e=>{let{imageUrl:t,imageUrlOnError:n,imageAlt:d,imageSize:h="medium",linkHref:f,linkAs:p,linkTargetBlank:m=!1,overlay:g,bottomRightCornerOverlay:v,topLeftCornerOverlay:y,rounded:b,credit:A,description:E,legend:w,doNotForce:x,width:T,height:S,badge:_,fullScreenImageUrl:C,actions:k,block:I=!1,title:L,mediaRatio:P,blocId:O,borderBottom:R,keepPNG:D=!1,qual
20ity:N,alignSelf:M="center",widthPercentage:j,forceFormat:F,noImage:B,aside:U=!1,blurSides:V,forceSrl:z=!1}=e,q=A||w||E,Q=L||d,H=(0,i.useContext)(c.lv),G=d||L||l.ZP.Radio(H).name,K=(0,a.kC)(),$=i.useMemo(()=>({...x?{textAlign:"center"}:{},...K.isMdOrMore?{alignItems:M,justifyContent:M}:void 0}),[M,K,x]),W=i.useMemo(()=>({...x||K.isMdOrMore&&j?{width:K.isMdOrMore&&j?"".concat(j,"%"):"unset"}:{},...x?{maxWidth:"100%"}:{}}),[K,x,j]),[Z,Y]=P?P.split("-"):[],X=(e,i)=>(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("figure",{id:O,className:"media".concat(b?" rounded":"").concat(e&&!q?" block paragraph":"").concat(P?" ratio--".concat(P):"").concat(B?" no-image":""),style:$,children:[!!y&&(0,r.jsx)("div",{className:"overlay justify-content-start align-items-start",children:y}),V&&(0,r.jsx)(u.Z,{url:t,imageSize:h,forceFormat:void 0,doNotForceFitIn:i,ratio:P,quality:N,onError:n?e=>{let t=e.target,r=t.src;r&&r.endsWith(n)||(t.src=n)}:void 0,alt:G,style:{...W,...V?{filter:"blur(10px)"}:{}},aside:U}),(0,r.jsx)(u.Z,{url:t,imageSize:h,forceFormat:F||(D?"png":void 0),doNotForceFitIn:i,ratio:P,quality:N,onError:n?e=>{let t=e.target,r=t.src;r&&r.endsWith(n)||(t.src=n)}:void 0,alt:G,style:{...W,...V?{minWidth:"0%",minHeight:"0%",width:"100%",height:"100%",objectFit:"contain"}:{}},width:C?"100vw":T||(V?void 0:Z),height:S||(V?void 0:Y),aside:U}),_&&(0,r.jsx)("span",{className:"badge badge-pill badge--light number",children:(0,r.jsx)("span",{className:"text",children:_})}),!!g&&(0,r.jsx)("div",{className:"overlay".concat(R?" border-bottom":""),children:g}),!!v&&(0,r.jsx)("div",{className:"overlay justify-content-end align-items-end",children:v}),!!y&&(0,r.jsx)("div",{className:"overlay justify-content-start align-items-start",children:y}),!!k&&(0,r.jsx)("div",{children:k})]}),q&&(0,r.jsxs)("div",{style:{marginTop:0},children:[w&&(0,r.jsx)("div",{className:"media-legend",children:w}),A&&(0,r.jsxs)("div",{className:"media-credit",children:["Cr\xe9dit : ",A]}),E&&(0,r.jsx)("div",{className:"media-description",children:E})]})]});return(0,r.jsx)(r.Fragment,{children:f?m?(0,r.jsx)("a",{className:I?"block":"",href:f,target:"_blank",rel:"noopener noreferrer",title:Q,children:X()}):(0,r.jsx)(o.Z,{href:f,as:p,children:(0,r.jsx)("a",{className:I?"block":"",title:Q,children:X()})}):C?(0,r.jsx)("a",{"data-attribute":"SRL",href:(0,s.tB)(C,"big",void 0,void 0,!1,P,N,void 0,U),title:Q,children:X(void 0,!1)}):X(I,z)})}},1371:function(e,t,n){"use strict";var r=n(5893),i=n(5980),a=n(482),o=n(7294),s=n(8646),l=n(3325),u=n(2382),c=n(5995),d=n(706),h=n(1257),f=n(6130),p=n(1802);t.Z=e=>{let{items:t,activeSlug:n,position:m,customPlayerDetails:g,onClick:v}=e,y=!g&&(!!i.Z.SSR||window.matchMedia("(hover: hover)").matches),[b,A]=o.useState(),E=o.useContext(s.lv),w=async e=>{let t=n?await l.ZP.page.getPage(E,n):void 0;a.ZP.actions.backToLive((0,h.OE)(E,{position:m,page:t})),e.stopPropagation()},{isMobile:x}=(0,d.kC)(),{audioType:T}=(0,p.K3)({store:a.ZP.store,keys:[],fn:e=>{let{type:t}=e;return{audioType:t}}});return 0===t.length?(0,r.jsx)(r.Fragment,{}):(0,r.jsx)("ul",{className:"nav",children:t.map((e,t)=>{var i,a,o;let s=!!(null===(i=e.subItems)||void 0===i?void 0:i.length);if("radios"===e.id&&0===((null===(a=e.subItems)||void 0===a?void 0:a.length)||0))return(0,r.jsx)(r.Fragment,{});if("zones"===e.id&&("podcast"===T||"webradio"===T)&&x)return(0,r.jsx)("li",{className:"nav-item",children:(0,r.jsx)("button",{className:"nav-link back-to-live has-pulse",onClick:e=>{w(e)},children:"Retour au live"})});let l="Gestion des cookies"===e.label||"javascript:tC.privacy.showPrivacyCenter()"===e.linkHref,d=e.linkHref===n||s&&(null===(o=e.subItems)||void 0===o?void 0:o.find(e=>e.linkHref===n));return(0,r.jsxs)("li",{className:"nav-item ".concat(s?"dropdown".concat(b===e.label?" show":""," ").concat(g?"playerDetails":""):""),onMouseEnter:y?()=>A(e.label):void 0,onMouseLeave:y?()=>A(void 0):void 0,children:[(0,r.jsx)(c.Z,{href:e.linkHref,children:s?(0,r.jsxs)("a",{href:e.linkHref,className:"dropdown-toggle nav-link".concat(d?"HeaderLeft"===m?" activeSide":" active":""),onClick:"#"!==e.linkHref?void 0:t=>{t.preventDefault(),l&&(0,f.Me)(),v&&v(),A(b?void 0:e.label)},children:["zones"===e.id?"Live : ":void 0," ",e.label]}):e.linkAction?(0,r.jsxs)("a",{className:"nav-link".concat(d?"HeaderLeft"===m?" activeSide":" active":""),onClick:t=>{l&&(0,f.Me)(),v&&v(),t.stopPropagation(),e.linkAction()},children:["zones"===e.id?"Live : ":void 0," ",e.label,e.icon&&(0,r.jsx)(u.Z,{name:e.icon})]}):(0,r.jsx)(c.Z,{href:e.linkHref,children:(0,r.jsxs)("a",{className:"nav-link".concat(d?"HeaderLeft"===m?" activeSide":" active":""),children:["zones"===e.id?"Live : ":void 0," ",e.label,e.icon&&(0,r.jsx)(u.Z,{name:e.icon})]},e.label)},t)}
20),s&&(0,r.jsx)("div",{className:"dropdown-menu ".concat(g?"playerDetails":"").concat(b===e.label?" show":""," "),children:e.subItems.map((e,t)=>e.linkAction?(0,r.jsx)("button",{type:"button",className:"dropdown-item".concat(e.linkHref===n?" active":""),onClick:t=>{l&&(0,f.Me)(),v&&v(),t.stopPropagation(),e.linkAction()},children:e.label},t):(0,r.jsx)(c.Z,{href:e.linkHref,as:e.linkAs,children:(0,r.jsx)("a",{className:"dropdown-item".concat(e.linkHref===n?" active":""),children:e.label},e.label)},t))})]},t)})})}},6611:function(e,t,n){"use strict";var r=n(5893),i=n(7294),a=n(4496),o=n(4619),s=n(1930),l=n(9671),u=n(8646),c=n(3325),d=n(8091),h=n(8462),f=n(3883),p=n(706),m=n(7839);t.Z=e=>{let{blocId:t,columns:n,contents:g,title:v,isSubtitle:y,orientation:b,linkLabel:A,linkHref:E,guttersClassName:w,useEventDates:x,mediaRatio:T,displaySearch:S,departments:_,onSearch:C,loading:k,isCustom:I,overrideRules:L,titleUnderlineBloc:P,zoomBloc:O,fullWidthBloc:R,borderBottomBloc:D,leadAnimationBloc:N,thumbnailsForceFormat:M,preventForceThumbnailRatio:j,aside:F,autoplayVideo:B,playEpisode:U,blurSides:V,noHeading:z,hideBadges:q,sliderMobile:Q}=e,H=1===n,G=i.useContext(u.lv),K=c.ZP.Radio(G),$=(0,p.kC)(),W=(0,l.S)(),Z=null==W?void 0:W.group81,Y=S?g.sort((e,t)=>{if((e.eventStartDate||e.date)&&(t.eventStartDate||t.date)){let n=e.eventStartDate||e.date,r=t.eventStartDate||t.date;return n.toISOString().localeCompare(r.toISOString())}return -1}):g,X=e=>{var t,n,i,a,o,l,u,c,d,h,f,p,m,g,v;return(0,r.jsx)(s.Z,{imageUrl:e.imageUrl,imageAlt:e.imageAlt,linkHref:e.linkHref,title:e.title,date:e.date,eventStartDate:e.eventStartDate,eventEndDate:e.eventEndDate,orientation:b,contentType:e.modelContentType,lead:e.lead,preventForceRatio:j,author:e.author,useEventDates:x,gameEndDate:e.gameEndDate,mediaRatio:T,imageSize:H?"big":"medium",categories:e.categories,hideBadges:q,titleUnderline:L?P:(null===(i=K.theme)||void 0===i?void 0:null===(n=i.rossel)||void 0===n?void 0:null===(t=n.thumbnail)||void 0===t?void 0:t.titleUnderline)||void 0,zoom:L?O:(null===(l=K.theme)||void 0===l?void 0:null===(o=l.rossel)||void 0===o?void 0:null===(a=o.thumbnail)||void 0===a?void 0:a.zoom)||void 0,leadAnimation:L?N:(null===(d=K.theme)||void 0===d?void 0:null===(c=d.rossel)||void 0===c?void 0:null===(u=c.thumbnail)||void 0===u?void 0:u.leadAnimation)||void 0,overlayThumbnail:L?R:(null===(p=K.theme)||void 0===p?void 0:null===(f=p.rossel)||void 0===f?void 0:null===(h=f.thumbnail)||void 0===h?void 0:h.fullWidth)||void 0,borderBottom:L?D:(null===(v=K.theme)||void 0===v?void 0:null===(g=v.rossel)||void 0===g?void 0:null===(m=g.thumbnail)||void 0===m?void 0:m.borderBottom)||void 0,forceFormat:M,aside:F,autoplayVideo:B,isEpisode:U?e.episodePodcast:void 0,isVideo:U&&e.videoInPage||void 0,blurSides:V},e.title)};return(0,r.jsxs)("div",{className:"block News",id:t,children:[!z&&(0,r.jsx)(o.Z,{title:v||"  ",isSubtitle:y,linkLabel:A,linkHref:E}),S&&(0,r.jsx)(d.Z,{searchType:"events",onSearch:C,loading:k,departments:_}),(0,r.jsx)("div",{className:"row row-alt-".concat(n," grid ").concat(w||""),children:!$.isMdOrMore&&Z&&Q?(0,r.jsx)(m.Z,{mode:"image",items:Y.map(e=>({...e,imageSrc:e.imageUrl})),slidesPerViewConfig:{default:1},keepForcedThumbnailAspect:!0,mediaRatio:(0,h.YR)("landscape"),blocId:t,zoomBloc:!0,fullWidthBloc:!0}):Y.map(e=>(0,r.jsx)("div",{className:"col-".concat(n," col-md-1 ").concat((0,f.F)(e.sponsored)),children:X(e)},e.title))}),I&&(v||A)&&(0,r.jsx)(a.Z,{linkHref:E,linkLabel:A})]})}},3948:function(e,t,n){"use strict";n.d(t,{Z:function(){return S}});var r=n(5893),i=n(4657),a=n(7294),o=n(3325),s=n(8646),l=n(1975),u=n(8081),c=n(6130),d=n(8462),h=e=>{let{background:{native:t,adManager:n,id:i}}=e;if(t&&n)return(0,r.jsx)(r.Fragment,{});let h=(0,a.useContext)(s.lv),f=(0,a.useCallback)(()=>{(null==t?void 0:t.redirectLink)&&(o.ZP.background.backgroundClick(h,i),window.open(t.redirectLink,"_blank"))},[i,null==t?void 0:t.redirectLink]),p="pub-gpt-desktop",m=n?(0,u.B)({height:n.web.height,nodeId:p,sendAdImpressionEvent:c.sn,idSuffix:i,title:(null==t?void 0:t.images.web.url)||"",path:n.web.path,width:n.web.width}):void 0;return(0,r.jsxs)(r.Fragment,{children:[n&&(0,r.jsxs)("div",{style:{display:"flex",justifyContent:"center",width:"100%",height:"fit-content",maxHeight:"250px"},onClick:()=>{(0,c.Wy)({id_ad:i,nom_ad:n.web.path||"",type_ad:"background mobile"})},children:[(0,r.jsx)(l.Z,{id:"desktop",code:m}),(0,r.jsx)("div",{id:p})]}),t&&(0,r.jsx)("div",{style:{height:"250px"},children:(0,r.jsx)("div",{style:{position:"absolute",marginLeft:"auto",marginRight:"auto",left:0,right:0,height:"fit-content",overflow:"hidden"},children:(0,r.jsx)("div",{style:{display:"flex",justifyContent:"center"},onClick:()=>{(0,c.Wy)({id_ad:i,nom_ad:null==t?void 0:t.images.web.url,type_ad:"background"})},children:(0,r.jsx)("img",{src:(0,d.tB)(t.images.web.url),onClick:f,style:{cursor:t.redirectLink?"pointer":void 0}})})})})]})},f=e=>{var t;let{background:{native:n,adManager:i,id:h}}=e;if(n&&i)return(0,r.jsx)(r.Fragment,{});let f=(0,a.useContext)(s.lv),p=(0,a.useCallback)(()=>{(null==n?void 0:n.redirectLink)&&(o.ZP.background.backgroundClick(f,h),window.open(n.redirectLink,"_blank"))},[h,null==n?void 0:n.redirectLink]),m=!!(i&&(null===(t=i.mobile)||void 0===t?void 0:t.path)&&i.mobile.height&&i.mobile.width),g=m?(0,u.B)({he
20ight:i.mobile.height,nodeId:"pub-gpt-mobile",sendAdImpressionEvent:c.sn,idSuffix:h,title:(null==n?void 0:n.images.web.url)||"",path:i.mobile.path,width:i.mobile.width}):void 0;return(0,r.jsxs)(r.Fragment,{children:[m&&(0,r.jsx)("div",{style:{height:"500px",textAlign:"center"},children:(0,r.jsxs)("div",{onClick:()=>{var e;(0,c.Wy)({id_ad:h,nom_ad:(null===(e=i.mobile)||void 0===e?void 0:e.path)||"",type_ad:"background mobile"})},style:{position:"fixed",width:"500px",marginLeft:"-250px",left:"50%",height:"500px",top:"50%",marginTop:"-250px"},children:[(0,r.jsx)(l.Z,{id:"mobile",code:g}),(0,r.jsx)("div",{id:"pub-gpt-mobile"})]})}),n&&(0,r.jsx)("div",{style:{height:"500px",textAlign:"center"},children:(0,r.jsx)("div",{onClick:()=>{(0,c.Wy)({id_ad:h,nom_ad:null==n?void 0:n.images.web.url,type_ad:"background mobile"})},style:{position:"fixed",width:"500px",marginLeft:"-250px",left:"50%",height:"500px",top:"50%",marginTop:"-250px"},children:(0,r.jsx)("img",{src:(0,d.tB)(n.images.mobile.url),style:{cursor:n.redirectLink?"pointer":void 0,width:"fit-content",height:"fit-content"},onClick:p})})})]})},p=n(4423),m=n(706),g=n(9671);let v=(0,n(9989).m)("error.bloc");class y extends a.Component{static getDerivedStateFromError(){return{hasError:!0}}componentDidCatch(e,t){v.error(e,t)}render(){return this.state.hasError?(0,r.jsx)("span",{}):this.props.children}constructor(e){super(e),this.state={hasError:!1},this.state={hasError:!1}}}var b=n(6577);let A=(e,t,n,i)=>{if(!e||0===e.length)return null;let a=[],o=[],s=!1;return(e.forEach(e=>{let r=t(e,n,i);"SeparatorGroup81"===e.name&&(s=!0),s?o.push(r):a.push(r)}),0===o.length)?a:(0,r.jsxs)(r.Fragment,{children:[a,(0,r.jsxs)("div",{className:"separator filler",children:[o[0],(0,r.jsx)("div",{className:"afterSeparator",children:o.slice(1)})]})]})},E=e=>{var t,n,i,a,o,s,l,u,c,d;let{section:h,removeImagePrincipale:f,isRenderInsideMenuLateral:p,hasGroup81Feature:m,renderBloc:g}=e,v="7/3"===h.layout,y=!1,b=!1,E=!1,w=(null===(t=h.blocsByColumn[1])||void 0===t?void 0:t.find(e=>"playerBouton"===e.name))||(null===(n=h.blocsByColumn[0])||void 0===n?void 0:n.find(e=>"playerBouton"===e.name)),x=(null===(i=h.blocsByColumn[0])||void 0===i?void 0:i.find(e=>"widgetJoin"===e.name))||(null===(a=h.blocsByColumn[1])||void 0===a?void 0:a.find(e=>"widgetJoin"===e.name)),T=(null===(o=h.blocsByColumn[0])||void 0===o?void 0:o.find(e=>"SeparatorGroup81"===e.name))||(null===(s=h.blocsByColumn[1])||void 0===s?void 0:s.find(e=>"SeparatorGroup81"===e.name));if("1"===h.layout||"10"===h.layout){if(!h.blocsByColumn[0])return null;let e=[],t=[],n=!1;return h.blocsByColumn[0].forEach(i=>{let a=[];a.push(g(i,f,!1)),!x&&T&&!b&&w&&"playerBouton"===i.name&&(b=!0,a.push((0,r.jsx)("div",{className:"mobile",style:{width:"100%",height:"500px"},children:(0,r.jsx)("div",{className:"mobileBanner",children:g(w,m,!v)},"mobile-banner")},"mobile-space"))),T&&"SeparatorGroup81"===i.name&&(n=!0,E=!0),n?t.push(...a):e.push(...a)}),(0,r.jsxs)(r.Fragment,{children:[e,t.length>0&&(0,r.jsxs)("div",{className:"oneBlock separator filler",children:[t[0],(0,r.jsx)("div",{className:"afterSeparator",children:t.slice(1)})]})]})}return p?(0,r.jsxs)("div",{className:"row",children:[(0,r.jsx)("div",{className:"col col-10 Aside",children:null===(c=h.blocsByColumn[0])||void 0===c?void 0:c.map(e=>g(e,!1,!0))}),(0,r.jsx)("div",{className:"col col-10 Aside",children:null===(d=h.blocsByColumn[1])||void 0===d?void 0:d.map(e=>g(e,!1,!0))})]},"sections"):(0,r.jsxs)("div",{className:"row",children:[(0,r.jsx)("div",{className:"col col-10 col-md-".concat(v?"7":"3 Aside"),style:x&&!E?{zIndex:2e3}:void 0,children:null===(l=h.blocsByColumn[0])||void 0===l?void 0:l.flatMap(e=>{var t;let n=[];return n.push(g(e,m,!v)),!y&&"widgetJoin"===e.name&&(null===(t=e.data)||void 0===t?void 0:t.oneStoryOnModel)&&w&&(y=!0,n.push((0,r.jsx)("div",{className:"mobileBanner",children:g(w,m,!v)},"mobile-banner"))),n})}),(0,r.jsx)("div",{className:"col col-10 col-md-".concat(v?"3 Aside":"7"),style:x&&!E?{zIndex:1900}:void 0,children:x&&!E?A(h.blocsByColumn[1],g,m,v):null===(u=h.blocsByColumn[1])||void 0===u?void 0:u.map(e=>g(e,m,v))})]},"sections")},w=e=>{var t,n;let{section:r}=e,i=(null===(t=r.blocsByColumn[0])||void 0===t?void 0:t.find(e=>"widgetJoin"===e.name))||(null===(n=r.blocsByColumn[1])||void 0===n?void 0:n.find(e=>"widgetJoin"===e.name));return(null==i?void 0:i.data)&&(null==i?void 0:i.data.defaultWidgetId)&&(null==i?void 0:i.data.domain)&&(null==i?void 0:i.data.oneStoryOnModel)},x=e=>{var t,n;let{section:r}=e,i=(null===(t=r.blocsByColumn[0])||void 0===t?void 0:t.find(e=>"widgetJoin"===e.name))||(null===(n=r.blocsByColumn[1])||void 0===n?void 0:n.find(e=>"widgetJoin"===e.name));return(null==i?void 0:i.data)&&(null==i?void 0:i.data.oneStoryOnModel)},T=(e,t)=>
20"inverse"===t?"dark"===o.ZP.mode(e)?"light":"dark":"default"!==t?t:void 0;var S=e=>{var t,n,c,v,A,S,_,C,k,I;let{model:L,blocsData:P,noSectionWrapper:O,fetchedData:R,category:D,pageTitle:N,page:M,pageContext:j,modelType:F,isRenderInsideMenuLateral:B,disableBackground:U}=e,V={original:"original",square:"1by1",landscape:"4by3",portrait:"4by7",large:"16by9"},z=(0,g.S)(),q=z.rossel,Q=z.group81,H=z.joinAvailable,G=(0,m.kC)(),K=(0,m.Tj)(),$=a.useContext(s.lv),{background:W}=o.ZP.Radio($),Z=!U&&!!W&&("all"===W.displayOn||"home"===W.displayOn&&"HOME"===M.pageContent.model.type),Y=Z&&!!W.adManager,X=null==P?void 0:null===(t=P.imagePrincipale)||void 0===t?void 0:t.formatImage,J=(q||Q)&&(X?null==R?void 0:null===(v=R.imagePrincipale)||void 0===v?void 0:null===(c=v.medias)||void 0===c?void 0:null===(n=c.find(e=>e.format===V[X]))||void 0===n?void 0:n.url:(null==R?void 0:null===(_=R.imagePrincipale)||void 0===_?void 0:null===(S=_.medias)||void 0===S?void 0:null===(A=S.find(e=>"4by3"===e.format))||void 0===A?void 0:A.url)||(null==R?void 0:null===(I=R.imagePrincipale)||void 0===I?void 0:null===(k=I.medias)||void 0===k?void 0:null===(C=k.find(e=>"original"===e.format))||void 0===C?void 0:C.url)),ee=(null==P?void 0:P.category)?P.category.categoryIds:[],et=(e,t,n)=>{var i;let a;a=t&&"imagePrincipale"===e.id?(0,b.x)("imagePrincipaleOg"):(0,b.x)(e.name);let o={preloadContent:{}};"corps"===e.name&&(null===(i=P[e.id])||void 0===i?void 0:i.model)&&P[e.id].model.sections.reduce((e,t)=>(t.blocsByColumn.forEach(e=>e.forEach(e=>{R[e.id]&&(o.preloadContent[e.id]=R[e.id])})),e),{});let s=Object.entries(R).reduce((t,n)=>{let[r,i]=n;return r.startsWith(e.id)&&r!==e.id&&(t[r]=i),t},{});return(0,r.jsx)(y,{children:(0,r.jsx)(a.Component,{...e.data,...P[e.id],other:s,...R[e.id],...o,category:D,pageTitle:N,page:M,pageCategories:ee,format:e.format,blocId:e.id,aside:n,...j})},e.id)},en=(e,t)=>{var n,i,a,o,s;if(H)return E({section:e,removeImagePrincipale:t,isRenderInsideMenuLateral:B,hasGroup81Feature:Q,renderBloc:et});let l="7/3"===e.layout;return"1"===e.layout||"10"===e.layout?null===(n=e.blocsByColumn[0])||void 0===n?void 0:n.map(e=>et(e,t,!1)):B?(0,r.jsxs)("div",{className:"row",children:[(0,r.jsx)("div",{className:"col col-10 Aside",children:null===(i=e.blocsByColumn[0])||void 0===i?void 0:i.map(e=>et(e,!1,!0))}),(0,r.jsx)("div",{className:"col col-10 Aside",children:null===(a=e.blocsByColumn[1])||void 0===a?void 0:a.map(e=>et(e,!1,!0))})]},"sections"):(0,r.jsxs)("div",{className:"row",children:[(0,r.jsx)("div",{className:"col col-10 col-md-".concat(l?"7":"3 Aside"),children:null===(o=e.blocsByColumn[0])||void 0===o?void 0:o.map(e=>et(e,Q,!l))}),(0,r.jsx)("div",{className:"col col-10 col-md-".concat(l?"3 Aside":"7"),children:null===(s=e.blocsByColumn[1])||void 0===s?void 0:s.map(e=>et(e,Q,l))})]},"sections")};return(0,r.jsxs)(r.Fragment,{children:[Y&&(0,r.jsx)(l.Z,{id:"background",code:u.k}),Z&&(!K.isMobile||Q&&F===i.W$.Content)&&(0,r.jsx)(h,{background:W}),null==L?void 0:L.sections.map((e,t)=>{let n="1"===e.layout||"10"===e.layout?0:e.blocsByColumn.findIndex(e=>e.find(e=>"imagePrincipale"===e.id));if(O)return en(e,!1);{let i=0==t&&J&&("1"===e.layout||"10"===e.layout||Q)?e.blocsByColumn[n].find(e=>"imagePrincipale"===e.id):void 0,a=i?{medias:{awsUrl:(0,d.tB)(J,G.isMobile?"medium":"big")||""}}:e.backgroundSectionM;return(0,r.jsxs)(r.Fragment,{children:[Z&&K.isMobile&&1===t&&(0,r.jsx)(f,{background:W}),(0,r.jsx)(p.Z,{customKey:"section".concat((null==j?void 0:j.customKeyPrefix)?j.customKeyPrefix:"").concat(t),color:T($,e.color),fullWidth:e.fullWidth,sticky:e.sticky,backgroundMedia:a,hasSeparator:e.hasSeparator,hasBackgroundFromModel:!i&&!!e.backgroundSectionM,modelType:F,overrideSectionBackground:0===t&&Z&&(!K.isMobile||Q),group81Options:{hasJoinWidget:x({section:e}),hasJoinWidgetId:w({section:e})},children:en(e,!!i)},t)]})}})]})}},7942:function(e,t,n){"use strict";n.d(t,{E1:function(){return f},MS:function(){return g},g_:function(){return p},xY:function(){return m}});var r=n(5893),i=n(8646),a=n(3325),o=n(6611),s=n(515),l=n(9671),u=n(8462),c=n(3883),d=n(9665),h=n(7294);let f=(e,t,n)=>{var r,i,o,s;let l=null===(r=t.categories)||void 0===r?void 0:r.map(e=>
20e.name),c=t.imagePrincipale&&t.imagePrincipale.medias&&n&&(null===(i=(0,u.nv)(t.imagePrincipale.medias,n))||void 0===i?void 0:i.url);if(c||(c=null===(s=t.videoPrincipale)||void 0===s?void 0:s.previewUrl),!c&&(t.imagePrincipale||t.videoPrincipale))try{c=a.ZP.Radio(e).radioLogo}catch(e){}return{id:t.id,date:t.updatedAt?new Date(t.updatedAt):void 0,title:(0,d.ew)(t.title||""),imageUrl:c,imageAlt:t.imagePrincipale&&t.imagePrincipale.specificAttributes?t.imagePrincipale.specificAttributes.alternativeText||"":t.title||"",lead:(0,d.CL)(t.chapo||""),linkHref:t.slug,sponsored:t.sponsored,author:(null===(o=t.author)||void 0===o?void 0:o.firstName)?t.author.firstName+(t.author.lastName?" ".concat(t.author.lastName):""):void 0,eventStartDate:t.eventStartDate?new Date(t.eventStartDate):void 0,eventEndDate:t.eventEndDate?new Date(t.eventEndDate):void 0,gameEndDate:t.gameEndDate?new Date(t.gameEndDate):void 0,categories:l,location:t.city||t.department?"".concat(t.city||"").concat(t.city&&t.department?" | ":"").concat(t.department||""):void 0,jobSector:t.jobSector||void 0,episodePodcast:t.episodePodcast||!1,videoInPage:t.videoInPage||!!t.videoPrincipale||!1,eventType:t.eventType||void 0,modelContentType:t.modelContentType}},p=(e,t,n,r)=>t.map((t,i)=>f(e,t,r&&(null==r?void 0:r[i])||n)),m=["slug","id","sponsored","episodePodcast","videoInPage"],g={title:"title",imageOrVideo:"imagePrincipale {\n    medias {\n      format\n      url\n    }\n    specificAttributes {\n      alternativeText\n    }\n  }\n  \n  videoPrincipale {\n    url\n    previewUrl\n  }\n\n  ",date:"updatedAt",eventDates:"\n  eventStartDate\n  eventEndDate\n  ",chapo:"chapo",category:"categories {\n    name\n  }",subcategory:"categories {\n    subCategories\n  }",author:"author {\n    firstName\n    lastName\n  }",jobSector:"jobSector",department:"department",city:"city",eventType:"eventType",views:""};t.ZP={Component:e=>{let{items:t,title:n,titleOnModel:a,thumbnailsStyle:d,thumbnailsPerRow:f,linkLabel:m,imageOrVideoFormat:g,selectedItems:v,liftType:y,linkType:b,seeMoreSlug:A,externalLink:E,seeMoreLink:w,format:x,blocId:T,overrideRules:S,titleUnderlineBloc:_,zoomBloc:C,fullWidthBloc:k,borderBottomBloc:I,leadAnimationBloc:L,aside:P,autoplayVideo:O,playEpisode:R,blurSides:D}=e,N="manual"===y&&v&&t?v.reduce((e,n)=>{let r=t.find(e=>e.id===n.selectedItem);return r&&e.push(r),e},[]):t,M=(0,h.useContext)(i.lv),j=N&&0!==N.length?p(M,N,D?"original":g):[],F=(0,l.S)(),B=F.rossel||F.group81;return j.length>0?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(o.Z,{blocId:T,title:n||a,contents:j,columns:f||4,orientation:"horizontal"===d?"row":"reverseHorizontal"===d?"row-reverse":"column",linkLabel:w?m||"Voir plus":void 0,linkHref:"free"===b?E:A||void 0,guttersClassName:(0,c.G)(x),mediaRatio:g?(0,u.YR)(g):void 0,isCustom:B,overrideRules:S,titleUnderlineBloc:_,zoomBloc:C,fullWidthBloc:k,borderBottomBloc:I,leadAnimationBloc:L,aside:P,autoplayVideo:O,playEpisode:R,blurSides:D,sliderMobile:F.group81&&!P}),(0,r.jsx)(s.Z,{})]}):(0,r.jsx)(r.Fragment,{})},getContentQuery:(e,t)=>{let{thumbnailsPerRow:n,rowsPerPage:r,displayedElements:i,categoryIds:a,selectedItems:o,usePageCategory:s,pageCategories:l,linkType:u,pageLink:c,liftType:d,locationZones:h,locationZonesIds:f,offset:p,tags:v,slug:y}=t;if(a=s?l:a,"manual"===d&&(!o||0===o.length)||("automaticCategory"===d||"automaticContent"===d)&&(!a||0===a.length)||"automaticTags"===d&&!(null==v?void 0:v.length))return;let b="".concat(e,"_props"),A="manual"===d&&o?o.reduce((e,t)=>(t.selectedItem&&e.push(t.selectedItem),e),[]):[],E={[b]:{size:n*r,categoryIds:"manual"===d||"automaticTags"===d?[]:s?l:a,seeMoreId:"reference"===u?c:void 0,zonesIds:h?f:void 0,imageFilter:i.indexOf("imageOrVideo")>-1?"imageOrVideo":"whatever",from:(p||1)-1,tags:"automaticTags"===d?v:void 0,excludeSlug:y}};(null==A?void 0:A.length)&&(E[b].ids=A);let w=[...m,...i.map(e=>g[e]),"gameEndDate"];return{query:"\n        ".concat(e,": getContent(props:$").concat(b,"){\n          items{\n            ").concat(w.join("\n"),"\n          }\n          seeMoreSlug\n        }\n      "),variables:E,types:{[b]:"ContentQuery!"}}},name:"remonteeArticles"}},8091:function(e,t,n){"use strict";n.d(t,{Z:function(){return f}});var r=n(5893),i=n(2283),a=n(7294),o=n(6395),s=n(9144),l=n(9671),u=n(7951),c=n(3325);let d=[{id:"1",name:"Agroalimentaire"},{id:"2",name:"Assurance"},{id:"3",name:"Art / Artisanat d'art"},{id:"4",name:"Automobile"},{id:"5",name:"Autre"},{id:"6",name:"Banque"},{id:"7",name:"BTP"},{id:"8",name:"Chimie"},{id:"9",name:"Commerce"},{id:"10",name:"Communication"},{id:"11",name:"Distribution"},{id:"12",name:"Direction d'entreprise"},{id:"13",name:"\xc9dition"},{id:"14",name:"\xc9lectronique"},{id:"15",name:"\xc9tudes / conseils"},{id:"16",name:"Habillement"},{id:"17",name:"H\xf4tellerie - Restauration / Tourisme / Animation"},{id:"18",name:"Industrie pharmaceutique"},{id:"19",name:"Informatique / T\xe9l\xe9communication"},{id:"20",name:"Imprimerie"},{id:"21",name:"Installation / Maintenance"}
20,{id:"22",name:"Job Dating"},{id:"23",name:"Logistique"},{id:"24",name:"Machines et \xe9quipements"},{id:"25",name:"M\xe9canique"},{id:"26",name:"M\xe9tallurgie"},{id:"27",name:"Multim\xe9dia"},{id:"28",name:"Petite enfance"},{id:"29",name:"Service \xe0 la personne"},{id:"30",name:"Social"},{id:"31",name:"Spectacle"},{id:"32",name:"Sport"},{id:"33",name:"T\xe9l\xe9coms"},{id:"34",name:"Transports / logistique"}].reduce((e,t)=>({...e,[t.id]:t.name}),{});var h=n(8646),f=e=>{let{onSearch:t,loading:n,departments:f,jobSectors:p,searchType:m}=e,g=(0,a.useContext)(h.lv),v=c.ZP.Radio(g),{handleSubmit:y,register:b}=(0,i.cI)(),[A,E]=a.useState(()=>s.Z((0,u.Z)(Date.now(),v.timeZone),"yyyy-MM-dd")),w=(0,l.S)().rossel,x=[{name:"Date",value:"date"},{name:"D\xe9partement",value:"department"}],T="events"===m?x.concat([{name:"Zone de localisation",value:"locationZone"},{name:"Type d'\xe9v\xe8nement",value:"eventType"}]):"jobs"===m?x.concat([{name:"Secteur d'activit\xe9",value:"jobSector"}]):void 0,[S,_]=(0,a.useState)("events"===m?null==T?void 0:T.slice(0,2):T),[C,k]=(0,a.useState)(!1),I=e=>{let t=e.value,n=null==S?void 0:S.map(e=>e.value);if(n&&S){if(n.includes(t)){let e=n.indexOf(t);S.splice(e,1),_([...S])}else S.push(e),S&&_([...S])}else _([e])},L=(e=>{let t=a.useRef(null);return a.useEffect(()=>{let n=n=>{t.current&&!t.current.contains(n.target)&&e()};return document.addEventListener("click",n),()=>{document.removeEventListener("click",n)}},[t]),t})(()=>k(!1)),P=null==S?void 0:S.map(e=>e.value);return(0,r.jsx)("form",{children:(0,r.jsxs)("div",{className:"form-row",children:[(null==T?void 0:T.length)&&(0,r.jsx)("div",{className:"form-footer",children:(0,r.jsxs)("div",{ref:L,className:"dropdown".concat(C?" show":""),children:[(0,r.jsx)(o.Z,{customIcon:"filter",status:"active",type:"button",onClick:()=>k(e=>!e)}),C&&(0,r.jsx)("div",{className:"dropdown-menu ".concat(C?" show":""),children:(0,r.jsx)("div",{children:T.map(e=>(0,r.jsx)("button",{type:"button",onClick:()=>I(e),className:"dropdown-item ".concat((null==S?void 0:S.map(e=>e.value).includes(e.value))?" searchbarActive":""),children:e.name},e.value))})})]})}),(null==P?void 0:P.includes("date"))&&(0,r.jsxs)("div",{className:"form-group TitlesSearchDate",children:[(0,r.jsx)("label",{children:"Date"}),(0,r.jsx)("input",{ref:b(),name:"date",id:"date",className:"form-control",type:"date",value:A,onChange:e=>{E(e.target.value)},placeholder:"jj/mm/aaaa",pattern:"^([0-2][0-9]|(3)[0-1])(\\/)(((0)[0-9])|((1)[0-2]))(\\/)\\d{4}$",disabled:n})]}),(null==P?void 0:P.includes("jobSector"))&&(0,r.jsxs)("div",{className:"form-group TitlesSearchRadio",children:[(0,r.jsx)("label",{children:"Secteur d'activit\xe9"}),(0,r.jsxs)("select",{ref:b(),id:"jobSector",name:"jobSector",className:"form-control",disabled:n,children:[(0,r.jsx)("option",{value:"none",label:"Tous"},"none"),p&&p.map(e=>{let t=d[e];return(0,r.jsx)("option",{value:t,children:t},e)})]})]}),(null==P?void 0:P.includes("department"))&&(0,r.jsxs)("div",{className:"form-group TitlesSearchRadio",children:[(0,r.jsx)("label",{children:"D\xe9partement"}),(0,r.jsxs)("select",{ref:b(),id:"department",name:"department",className:"form-control",disabled:n,children:[(0,r.jsx)("option",{value:"none",label:"Tous"},"none"),null==f?void 0:f.map(e=>(0,r.jsx)("option",{value:e,children:e},e))]})]}),(null==P?void 0:P.includes("locationZone"))&&(0,r.jsxs)("div",{className:"form-group TitlesSearchRadio",children:[(0,r.jsx)("label",{children:"Zone de localisation "}),(0,r.jsxs)("select",{ref:b(),id:"locationZone",name:"locationZone",className:"form-control",disabled:n,children:[(0,r.jsx)("option",{value:"none",label:"Tous"},"none"),c.ZP.Zones(g).map(e=>(0,r.jsx)("option",{value:e.id,children:e.label},e.id))]})]}),(null==P?void 0:P.includes("eventType"))&&(0,r.jsxs)("div",{className:"form-group TitlesSearchRadio",children:[(0,r.jsx)("label",{children:"Type d'\xe9v\xe8nements "}),(0,r.jsxs)("select",{ref:b(),id:"eventType",name:"eventType",className:"form-control",disabled:n,children:[(0,r.jsx)("option",{value:"none",label:"Tous"},"none"),c.ZP.eventTypes(g).map(e=>(0,r.jsx)("option",{value:e.name,children:e.name},e.id))]})]}),(0,r.jsx)("div",{className:"form-footer ".concat(w&&" customButton"),children:(0,r.jsx)(o.Z,{status:n?"loading":"active",color:"primary",label:"Rechercher",type:"button",fullWidth:!0,withoutIcon:!0,onClick:()=>t&&y(t)()})})]})})}},6577:function(e,t,n){"use strict";let r;n.d(t,{x:function(){return rv}});var i,a,o,s=n(5893),l=n(7294),u=n(1930),c=n(4619),d=n(4496),h=n(3325),f=n(8646),p=n(9671),m=e=>{let{columns:t,contents:n,title:r,orientation:i,linkHref:a,linkLabel:o,guttersClassName:m,mediaRatio:g,blocId:v,overrideRules:y,titleUnderlineBloc:b,zoomBloc:A,fullWidthBloc:E,borderBottomBloc:w,leadAnimationBloc:x,imageForceFormat:T,blurSides:S}=e,_=l.useContext(f.lv),C=h.ZP.Radio(_),k=(0,p.S)(),I=k.group81||k.rossel,L=e=>{var t,n,r,a,o,l,c,d,h,f,p,m,v,_,k;return(0,s.jsx)(u.Z,{imageUrl:e.imageUrl,imageAlt:e.imageAlt,linkHref:e.linkHref,title:e.title,lead:e.lead,orientation:i,mediaRatio:g,titleUnderline:y?b:(null===(r=C.theme)||void 0===r?void 0:null===(n=r.rossel)||void 0===n?void 0:null===(t=n.thumbnail)||void 0===t?void 0:t.t
20itleUnderline)||void 0,zoom:y?A:(null===(l=C.theme)||void 0===l?void 0:null===(o=l.rossel)||void 0===o?void 0:null===(a=o.thumbnail)||void 0===a?void 0:a.zoom)||void 0,leadAnimation:y?x:(null===(h=C.theme)||void 0===h?void 0:null===(d=h.rossel)||void 0===d?void 0:null===(c=d.thumbnail)||void 0===c?void 0:c.leadAnimation)||void 0,overlayThumbnail:y?E:(null===(m=C.theme)||void 0===m?void 0:null===(p=m.rossel)||void 0===p?void 0:null===(f=p.thumbnail)||void 0===f?void 0:f.fullWidth)||void 0,borderBottom:y?w:(null===(k=C.theme)||void 0===k?void 0:null===(_=k.rossel)||void 0===_?void 0:null===(v=_.thumbnail)||void 0===v?void 0:v.borderBottom)||void 0,forceFormat:T,blurSides:S})};return(0,s.jsxs)("div",{className:"block Team",id:v,children:[(!!r||!!o&&!!a)&&(0,s.jsx)(c.Z,{title:r,linkHref:a,linkLabel:o}),(0,s.jsx)("div",{className:"row row-alt-".concat(t," grid ").concat(m||""),children:n.map(e=>(0,s.jsx)("div",{className:"col-".concat(t," col-md-1"),children:L(e)},e.title))}),I&&(r||o)&&(0,s.jsx)(d.Z,{linkHref:a,linkLabel:o})]})},g=n(8462),v=n(9665),y=n(3883);let b=(e,t)=>e.map(e=>{var n;let r=e.imagePrincipale&&e.imagePrincipale.medias&&t&&(null===(n=(0,g.nv)(e.imagePrincipale.medias,t))||void 0===n?void 0:n.url);return{title:(0,v.ew)(e.title||""),imageUrl:r,imageAlt:e.imagePrincipale&&e.imagePrincipale.specificAttributes&&e.imagePrincipale.specificAttributes.alternativeText||"",lead:(0,v.CL)(e.chapo||""),linkHref:e.slug}});var A=n(6644);let E=(0,A.MT)({mediaId:void 0}),w=(0,A.yM)("setMedia");E.on(w,(e,t)=>({...e,mediaId:t}));var x={store:E,actions:{setMedia:e=>{w(e)}}},T=n(482),S=n(5980),_=n(1802),C=n(6130),k=n(6395);let I=e=>e?{visibility:"visible",marginTop:"10px",padding:"20px 30px",borderRadius:"4px",backgroundColor:"rgba(255, 255, 255, 0.5)",color:"#000000",lineHeight:"1.6",maxHeight:"300px",overflowY:"auto",scrollbarWidth:"thin",scrollbarColor:"#b5b5b5 transparent",boxShadow:"0 4px 15px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.08)"}:{visibility:"hidden",height:"0px"};var L=e=>{let{title:t,audioUrl:n,audioAlt:r,description:i,credit:a,legend:o,transcription:u,mediaId:c,blocId:d,page:h,noStyle:f,maxWidth:p}=e;if(!c)return(0,s.jsx)(s.Fragment,{});let m=l.createRef(),[v,y]=l.useState(!1),b=(0,_.oR)(x.store),A=(0,_.oR)(T.ZP.store),[E,w]=(0,l.useState)(),[L,P]=(0,l.useState)("playing"===A.status),[O,R]=l.useState(!1);return(0,l.useEffect)(()=>{"playing"===A.status&&(x.actions.setMedia(void 0),y(!1))},[A.status]),(0,l.useEffect)(()=>{if((b.mediaId!==c||v)&&b.mediaId||P("playing"===A.status),b.mediaId===c&&v&&T.ZP.actions.stop(),b.mediaId!==c){w(b.mediaId);let e=m.current;e&&(y(!1),e.pause())}},[b.mediaId,v,A.status]),(0,l.useEffect)(()=>{if(!S.Z.SSR){let e=m.current;if(e){let n=()=>{x.actions.setMedia(c),y(!0),C.cR({type_player:"Audio",position_player:"Body",page_id:h&&h.id,page_name:h&&h.name,file_name:t,page:h})};return e.addEventListener("play",n),()=>e.removeEventListener("play",n)}}},[m.current,c]),(0,l.useEffect)(()=>{if(!S.Z.SSR){let e=m.current;if(e){let t=()=>{(null==A?void 0:A.type)!=="podcast"&&L&&(!E||c===E)&&(T.ZP.actions.play(),x.actions.setMedia(void 0))};return e.addEventListener("ended",t),()=>e.removeEventListener("ended",t)}}},[m.current,c,b.mediaId,L]),(0,s.jsxs)("div",{className:"block",id:d,children:[(0,s.jsxs)("figure",{children:[t&&(0,s.jsx)("figcaption",{children:t}),(0,s.jsxs)("div",{style:{display:"flex",flexDirection:"column",alignItems:"flex-start",gap:"8px",maxWidth:p||"100%"},children:[(0,s.jsx)("audio",{ref:m,controls:!0,src:(0,g.H4)(n),style:{width:"".concat(!f&&"100%"),maxWidth:p},preload:"metadata",id:c,children:(0,s.jsx)("span",{children:r||""})}),u&&(0,s.jsx)("div",{style:{marginTop:2},children:(0,s.jsx)(k.Z,{ariaLabel:"Afficher la transcription \xe9crite",status:"active",customIcon:O?"chevron-down":"chevron-right",size:"small",label:"Afficher la transcription \xe9crite",onClick:()=>R(!O)},"transcription-".concat(c))})]})]}),u&&(0,s.jsx)("div",{className:"media-transcription",style:I(O),dangerouslySetInnerHTML:{__html:u}}),o&&(0,s.jsx)("div",{className:"media-legend",children:o}),a&&(0,s.jsxs)("div",{className:"media-credit",children:["Cr\xe9dit : ",a]}),i&&(0,s.jsx)("div",{className:"media-description",children:i})]})},P={Component:e=>{var t;let{medias:n,title:r,specificAttributes:i,credit:a,description:o,legend:l,afficherCreditLegende:u,afficherDescription:c,mediaId:d,blocId:h,page:f}=e;return(null==n?void 0:null===(t=n[0])||void 0===t?void 0:t.url)?(0,s.jsx)(L,{title:r,audioUrl:n[0].url,audioAlt:(null==i?void 0:i.alternativeText)||"",description:c?o:void 0,credit:u?a:void 0,legend:u?l:void 0,transcription:null==i?void 0:i.transcription,mediaId:d,blocId:h,page:f}):(0,s.jsx)("i",{})},getContentQuery:(e,t)=>{let{mediaId:n}=t;if(!n)return;let r="".concat(e,"_mediaId");return{query:"\n          ".concat(e,": getMedia(mediaId:$").concat(r,"){\n            title\n            description\n            credit\n            legend\n            specificAttributes {\n              alternativeText\n              audioType\n              speaker\n              transcription\n              showTranscription\n            }\n            medias{\n              url\n            }\n          }\n        "),variables:{[r]:n},types:{[r]:"String!"}}},name:"audio"},O=n(706),R=n(6611),D=e=>{let{blocks:t,blockId:n}=e,[r,i]=(0,l.useState)(t[0]);return(0,s.jsxs)("div",{className:"switchContent",children:[(0,s.jsx)("div",{className:"switchButtons",children:t.map(e=>(0,s.jsx)("div",{className:"switchButton ".concat(r.id===e.id?"active":""),children:(0,s.jsx)("button",{onClick:()=>i(e),children:e.title})},"button_".concat(e.id)))}),(0,s.jsx)(R.Z,{noHeading:!0,blocId:n,contents:r.blocActu,columns:r.columns||3},r.id)]})},N=e=>{let{blocs:t,linkLabel:n,blocId:r,linkHref:i}=e,a=(0,O.kC)(),o=(e,t)=>(0,s.jsx)(u.Z,{imageUrl:e.imageUrl,imageAlt:e.imageAlt,contentType:e.modelContentType,linkHref:e.linkHref,title:e.title,date:e.date,eventStartDate:e.eventStartDate,eventEndDate:e.eventEndDate,lead:e.lead,mediaRatio:(0,g.YR)(t||"landscape"),author:e.author,useEventDates:!1,gameEndDate:e.gameEndDate,preventForceRatio:!0,keepForcedAspectOnMobile:!0,zoom:!0},e.title);return(0,s.jsxs)("div",{className:"block",children:[(0,s.jsx)("div",{className:"switchableBlocs",children:a.isMdOrMore?t.map(e=>(0,s.jsxs)("div",{className:"switchableBloc",children:[(0,s.jsx)(c.Z,{isSubtitle:!0,title:e.title||"  "}),(0,s.jsx)("div",{className:"switchItem",children:e.blocActu.map((e,t)=>(0,s.jsx)("div",{className:"blocItem",children:o(e,0===t?"portrait":"landscape")},e.id))})]},e.id)):(0,s.jsx)(D,{blocks:t,blockId:"mobileBlock_".concat(r)})}),n&&(0,s.jsx)(d.Z,{linkHref:i,linkLabel:n})]})},M=e=>{let{title:t,blocId:n,inlineBlocs:r,mainBlocs:i,linkHref:a,linkLabel:o}=e,l=(0,O.kC)();return(0,s.jsxs)("div",{className:"block Actu",id:n,children:[(0,s.jsx)(c.Z,{title:t||"  ",linkLabel:o,linkHref:a}),(0,s.jsxs)("div",{className:"block",children:[(0,s.jsx)(N,{blocId:n,linkLabel:o,linkHref:a,blocs:i}),(0,s.jsx)("div",{className:"inlineBlocks",children:r.map(e=>(0,s.jsx)(R.Z,{preventForceThumbnailRatio:l.isMdOrMore,isSubtitle:!0,linkLabel:e.linkLabel,linkHref:e.linkHref,hideBadges:!0,isCu
20stom:!0,mediaRatio:"16-9",title:e.title,blocId:e.id,contents:e.blocActu,columns:e.columns||4},e.id))})]})]})},j=n(7942);let F={inline1:{linkLabel:"inlineCategory1_linkLabel",externalLink:"inlineCategory1_externalLink",linkType:"inlineCategory1_linkType",title:"titleInlineCategory1",columns:"itemsNumberInlineCategory1"},inline2:{linkLabel:"inlineCategory2_linkLabel",linkType:"inlineCategory2_linkType",externalLink:"inlineCategory2_externalLink",title:"titleInlineCategory2",columns:"itemsNumberInlineCategory2"},switch1:{title:"titleCategory1"},switch2:{title:"titleCategory2"}},B=["slug","id","title","modelContentType","imagePrincipale {\n    medias {\n      format\n      url\n    }\n    specificAttributes {\n      alternativeText\n    }\n  }\n  videoPrincipale {\n    url\n    previewUrl\n  }\n  ","updatedAt","\n  eventStartDate\n  eventEndDate\n  ","categories {\n    name\n    id\n  }"],U={...P,name:"audioPrincipal"};var V=n(99),z=e=>{var t;let{category:n}=e;return(0,s.jsx)("a",{href:null===(t=n.page)||void 0===t?void 0:t.slug,className:"badge badge--primary badge-category",children:n.titre})};let q={whiteSpace:"pre-line"};var Q=n(4657),H=n(1761),G=n(9612),K=e=>{var t,n;let{separators:r,homepage:i}=e,a=(0,p.S)().group81,{ref:o,width:u}=(0,G.N)(),{ref:c,height:d}=(0,G.N)(),h=(0,O.kC)(),[f]=(0,H.i)(),[m,v]=(0,l.useState)();if((0,l.useEffect)(()=>{(null==o?void 0:o.current)&&h.isMdOrMore&&(f>1440?v((f-1440)/2+40):v(40))},[o.current,f,u]),!a)return(0,s.jsx)(s.Fragment,{});let y=i?{position:"relative",zIndex:h.isMdOrMore?0:1}:{position:"absolute",left:"0rem",bottom:"calc(100% - 1px)",width:"calc(100vw)",zIndex:1},b=i?{position:"absolute",right:h.isMdOrMore?"-".concat(m||40,"px"):void 0,top:h.isMdOrMore?0:void 0,bottom:h.isMdOrMore?void 0:"-1px",width:"calc(100vw)",zIndex:0}:{},A=i?null==r?void 0:r.homepageSeparator:null==r?void 0:r.contentPageSeparator,E=!h.isMdOrMore&&i?null==r?void 0:null===(t=r.homepageSeparator)||void 0===t?void 0:t.mobileImage:void 0,w=h.isMdOrMore?null==A?void 0:A.desktopImage:i?null==A?void 0:A.mobileBackwardImage:null==A?void 0:A.mobileImage;return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{ref:o,className:"wave separator ".concat(i?"high":""),style:y,children:(0,s.jsx)("div",{className:"svgContainer",style:b,children:w&&((null===(n=w.mediaUrl)||void 0===n?void 0:n.endsWith(".svg"))?(0,s.jsx)("svg",{width:i?"100%":"100vw",height:d,children:(0,s.jsx)("image",{ref:c,preserveAspectRatio:"xMidYMid slice",style:{width:i?"100%":"calc(100vw)",height:"auto",objectFit:"cover"},className:"default",href:(0,g.tB)(w.mediaUrl,"background-section",void 0,void 0,!1,void 0,100)},"default")}):(0,s.jsx)("img",{style:{width:"calc(100vw)",height:"auto",objectFit:"cover"},className:"default",src:(0,g.tB)(w.mediaUrl,"background-section",void 0,void 0,!1,void 0,100),alt:""},"default"))})}),E&&i&&!h.isMdOrMore&&(0,s.jsx)("div",{className:"bottomWave",style:{bottom:-1,zIndex:1},children:(0,s.jsx)("img",{style:{width:"calc(100vw)",height:"auto",objectFit:"cover"},className:"default",src:(0,g.tB)(E.mediaUrl,"background-section",void 0,void 0,!1,void 0,100),alt:""},"default")})]})},$=n(1975),W=n(3948),Z=n(564),Y=n(1664),X=n.n(Y),J=e=>{var t,n,r,i,a;let{blocId:o,authorFirstName:u,authorLastName:c,firstName:d,lastName:p,showAuthor:m,dateChoice:v,dateDisplay:y,authorId:b,avatar:A,showDate:E,description:w,job:x,authorPage:T,page:S}=e,_=(0,l.useContext)(f.lv),C=h.ZP.Radio(_),k=h.ZP.Radio(_).theme,I=m?null!=d?d:u:void 0,L=m?null!=p?p:c:void 0,P=(e=>{if(E&&y&&e){if("publicationDate"===e&&(null==S?void 0:S.publishedDate))return[null==S?void 0:S.publishedDate];if("modificationDate"===e&&(null==S?void 0:S.pageContent.updatedAt))return[null==S?void 0:S.pageContent.updatedAt];if("publicationAndModificationDates"===e&&((null==S?void 0:S.publishedDate)||(null==S?void 0:S.pageContent.updatedAt)))return[null==S?void 0:S.publishedDate,null==S?void 0:S.pageContent.updatedAt]}return[]})(v).filter(e=>!!e).map(e=>"string"==typeof e?new Date(e):e),O=P.length&&v&&["publicationDate","publicationAndModificationDates"].includes(v),R=P.length&&v&&(!O||(null===(t=P[1])||void 0===t?void 0:t.getTime())>P[0].getTime())&&["modificationDate","publicationAndModificationDates"].includes(v),D=O&&y?"Publi\xe9 : ".concat((0,Z.UW)(_,P[0],y,C.timeZone)).concat(R?" - Modifi\xe9 : "+(0,Z.UW)(_,P[1],y,C.timeZone):""," ").concat(I&&!R?E?" par ":"Par ":""):R&&y?"".concat(O?" - ":"","Modifi\xe9 : ").concat((0,Z.UW)(_,P[0],y,C.timeZone)," ").concat(I?E?" par ":"Par ":""):"",N=I?"".concat(I," ").concat(L?"firstNameAndLastNameFirstLetter"===b?" ".concat(L[0],"."):" ".concat(L):""," "):"",M="".concat(D).concat(N);return(0,s.jsx)("div",{className:"block date",style:{display:"flex",flexDirection:"column",color:null==k?void 0:null===(i=k.header)||void 0===i?void 0:null===(r=i.menu)||void 0===r?void 0:null===(n=r.menuColor)||void 0===n?void 0:n.mainColor},id:o,children:b&&m?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("span",{style:{fontWeight:"bold"},children:D}),(0,s.jsxs)("div",{style:{background:null==k?void 0:null===(a=k.header)||void 0===a?void 0:a.color,display:"flex",flex:1,borderColor:"black",borderStyle:"solid",borderWidth:.5,borderRadius:5,padding:"10px"},children:[A&&(0,s.jsx)("div",{style:{padding:"0 20px 0 0"},children:(0,s.jsx)("img",{style:{height:80,maxWidth:"unset",width:void 0,borderRadius:8},src:(0,g.tB)(A)})}),(0,s.jsxs)("div",{children:[(0,s.jsxs)("div",{children:[(null==T?void 0:T.slug)?(0,s.jsx)(X(),{href:T.slug,children:(0,s.jsx)("span",{style:{fontWeight:"bold"},children:N})}):(0,s.jsx)("span",{style:{fontWeight:"bold"},children:N}),x&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("span",{children:" - "}),(0,s.jsx)("span",{style:{fontStyle:"italic"},children:x})]})]}),(0,s.jsx)("p",{children:w})]})]})]}):M?(0,s.jsx)("p",{className:"block date",id:o,children:M}):(0,s.jsx)(s.Fragment,{})})},ee=n(3946),et=n(1820),en=n(3882);function er(e,t){(0,en.Z)(2,arguments);var n=(0,ee.Z)(t);return(0,et.Z)(e,6e4*n)}var ei=n(9013);function ea(e,t){(0,en.Z)(2,arguments);var n=(0,ei.Z)(e),r=(0,ei.Z)(t);return n.getTime()<r.getTime()}var eo=n(7951);let es={monday:{label:"lundis",index:0},tuesday:{label:"mardis",index:1},wednesday:{label:"mercredis",index:2},thursday:{label:"jeudis",index:3},friday:{label:"vendredis",index:4},saturday:{label:"samedis",index:5},sunday:{label:"dimanches",index:6}},el=e=>{let t=e.reduce((e,t)=>
20{let n=t.time.split(":").map(e=>parseInt(e,10)),r=er(new Date(2020,8,28,n[0],n[1]),t.duration),i="de ".concat((0,Z.to)(new Date(2020,8,28,n[0],n[1]))," \xe0 ").concat((0,Z.to)(r)),a=e.findIndex(e=>e.time===i);return a>-1?e[a].days.push(es[t.day]):e.push({time:i,days:[es[t.day]]}),e},[]);return"Tous les ".concat(t.sort((e,t)=>e.days[0].index-t.days[0].index).map((e,n)=>{let r=e.days.sort((e,t)=>e.index-t.index).map(e=>e.label),i=t.length>1?n===t.length-1?" et les ":n>0?" les ":"":"",a=r.slice(0,1===r.length?1:r.length-1).join(", "),o=r.length>1?" et ".concat(r[r.length-1]):"";return"".concat(i).concat(a).concat(o," ").concat(e.time)}),".")},eu=e=>{let t=e.reduce((e,t)=>{let n=new Date(t.date),r=er(n,t.duration),i="de ".concat((0,Z.to)(n)," \xe0 ").concat((0,Z.to)(r)),a=e.findIndex(e=>e.time===i);return a>-1?e[a].dates.push(n):e.push({time:i,dates:[n]}),e},[]),n=t.sort((e,t)=>ea(e.dates[0],t.dates[0])?-1:1);return"".concat(1===n[0].dates.length?"Le ":"Les ").concat(n.map((e,n)=>{let r=e.dates.sort((e,t)=>ea(e,t)?-1:1).map(e=>{let t=(0,eo.Z)(e,"Europe/Paris"),n=e.getDate(),r=t.getMonth();return"".concat(n).concat(1===n?"er":""," ").concat(Z.e7[r]," ").concat(t.getFullYear())}),i=1===e.dates.length?"le":"les",a=t.length>1?n===t.length-1?" et ".concat(i," "):n>0?" ".concat(i," "):"":"",o=r.slice(0,1===r.length?1:r.length-1).join(", "),s=r.length>1?" et ".concat(r[r.length-1]):"";return"".concat(a).concat(o).concat(s," ").concat(e.time)}),".")};var ec=n(9008),ed=n.n(ec),eh=n(6486),ef=n.n(eh),ep=n(1408),em=n(6623),eg=n(798),ev=n(7291),ey=e=>{let{direction:t,button:n,label:r,overlayName:i}=e,[a,o]=l.useState(!1),u=(0,_.oR)(eg.Z.store),c=l.useRef(null);return l.useEffect(()=>{u.name===i?o(u.isOpen):o(!1)},[u.isOpen,u.name]),(0,s.jsxs)("div",{ref:c,children:[(0,s.jsx)("div",{children:(0,s.jsx)(ev.Z,{show:a,target:c.current,placement:"bottom"===t?"bottom":"top",children:e=>{let{props:n}=e;return(0,s.jsx)("div",{...n,style:{...n.style,zIndex:1500,marginTop:"1rem"},children:(0,s.jsx)("div",{className:"tooltip ".concat("bottom"===t?"tooltip-bottom":""," "),children:r})})}})}),n]})};let eb=e=>{let{progressBar:t,buttonIcon:n,onPlay:r,buttons:i,playLabel:a,badges:o,hasProgressBar:u,transcription:c}=e,[d,h]=l.useState(!1);return(0,s.jsxs)(s.Fragment,{children:[u&&(0,s.jsx)("div",{className:"AudioPlayer playing d-flex flex-column w-100",children:t?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{className:"d-flex align-items-center w-100",children:[(0,s.jsx)("div",{className:"AudioControl",children:(0,s.jsx)(k.Z,{status:"active",iconPosition:"afterLabel",customIcon:n,onClick:r})}),(0,s.jsx)("div",{className:"AudioProgress d-flex align-items-center flex-grow-1",style:{marginLeft:"10px"},children:(0,s.jsx)("div",{className:"flex-grow-1",children:(0,s.jsx)(ep.Z,{progress:T.ZP.store.getState().progressSeconds,currentUrl:null==t?void 0:t.url,maxLength:(null==t?void 0:t.duration)?t.duration:"0:00",currentEpisode:(null==t?void 0:t.url)||"",onCurrentChange:e=>{T.ZP.actions.seek(e)}})})})]}),c&&(0,s.jsx)("div",{style:{marginTop:"10px",alignSelf:"flex-start"},children:(0,s.jsx)(k.Z,{customIcon:d?"chevron-down":"chevron-right",status:"active",size:"small",label:"Afficher la transcription \xe9crite",onClick:()=>{h(!d)},ariaLabel:"Afficher la transcription \xe9crite"},"transcription")}),c&&(0,s.jsx)("div",{className:"media-transcription w-100",style:d?{visibility:"visible",marginTop:"15px",padding:"20px 30px",borderRadius:"4px",backgroundColor:"rgba(255, 255, 255, 0.5)",color:"#000000",lineHeight:"1.6",maxHeight:"200px",overflowY:"auto",scrollbarWidth:"thin",boxShadow:"0 4px 15px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.08)"}:{visibility:"hidden",height:"0px"},dangerouslySetInnerHTML:{__html:c}})]}):(0,s.jsx)(k.Z,{status:"active",label:a,onClick:r,customIcon:n})}),(0,s.jsxs)(s.Fragment,{children:[!u&&(0,s.jsx)("div",{className:"AudioBadges",children:(0,s.jsx)("ul",{className:"list-inline",children:null==o?void 0:o.map(e=>(0,s.jsx)("li",{className:"list-inline-item",children:(0,s.jsx)("span",{className:"badge badge-sm badge--dark",children:(0,s.jsx)("span",{className:"text",children:e})})}))})}),(0,s.jsx)("div",{className:"AudioActions",children:(0,s.jsx)("ul",{className:"list-inline",children:null==i?void 0:i.map(e=>{let t=(0,s.jsx)(k.Z,{status:"active",color:"primary",size:"small",customIcon:e.icon,withoutIcon:!e.icon,externalHref:e.externalHref,download:e.download,iconPosition:"afterLabel",onClick:e.onClick,linkTarget:e.target},e.label||e.icon);return(0,s.jsx)("li",{className:"list-inline-item",children:(0,s.jsx)(ey,{button:t,label:e.label,direction:"bottom",overlayName:e.label})})})})})]})]})},eA=e=>{let{date:t,hideDuration:n,duration:r,timeZone:i,title:a}=e,o=l.useContext(f.lv);return(0,s.jsxs)(s.Fragment,{children:[t&&(0,s.jsx)("p",{className:"date",children:(0,Z.UW)(o,t,"onlyDate",i)+(!n&&r?" - ".concat(r):"")}),a&&(0,s.jsx)("h3",{className:"h3",children:a})]})},eE=e=>{let{layout:t,progressBar:n,progressBarPosition:r,buttonIcon:i,onPlay:a,buttons:o,playLabel:l,badges:u,artist:c,lead:d,description:h,descriptionPosition:f,date:p,hideDuration:m,duration:g,timeZone:v,title:y,margin:b,transcription:A}=e;return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{style:{marginTop:b?"15px":"0px"},className:"resume",children:(0,s.jsx)(eb,{progressBar:n,hasProgressBar:"below"!==r||"vertical"===t,buttonIcon:i,onPlay:a,buttons:o,playLabel:l,badges:u,transcription:A})}),("aside"===f&&"vertical"!==t||"vertical"===t)&&(0,s.jsx)("div",{children:(0,s.jsx)(eA,{date:p,hideDuration:m,duration:g,timeZone:v,title:y})}),c&&(0,s.jsx)("p",{className:"author",children:c}),d&&(0,s.jsx)(em.Z,{content:d}),h&&("aside"===f&&"vertical"!==t||"vertical"===t)&&(0,s.jsx)("div",{className:"htmlContent",dangerouslySetInnerHTML:{__html:h}})]})};var ew=e=>{let{progressBar:t,buttons:n,badges:r,imageUrl:i,date:a,lead:o,artist:c,onPlay:d,buttonIcon:p,playLabel:m,hideDuration:v,duration:y,titleUnderline:b,zoom:A,leadAnimation:E,overlayThumbnail:w,borderBottom:x,description:T,descriptionPosition:S,layout:_,imageFormat:C,progressBarPosition:k,title:I,transcription:L}=e,P=l.useContext(f.lv),O=h.ZP.Radio(P);return(0,s.jsxs)("div",{className:"row row-alt-7 gutters-md grid",children:[(0,s.jsx)("div",{className:"reverseHorizontal"===_?"col
20-7 col-md-4":"col-7 col-md-3",children:(0,s.jsxs)(s.Fragment,{children:["reverseHorizontal"===_&&(0,s.jsx)(eE,{layout:_,progressBar:t,buttonIcon:p,onPlay:d,buttons:n,playLabel:m,badges:r,date:a,hideDuration:v,duration:y,timeZone:O.timeZone,title:I,lead:o,artist:c,progressBarPosition:k,description:T,descriptionPosition:S,transcription:L}),"reverseHorizontal"!==_&&i&&(0,s.jsx)(u.Z,{imageUrl:i,titleUnderline:b,zoom:A,leadAnimation:E,overlayThumbnail:w,borderBottom:x,mediaRatio:C?(0,g.YR)(C):void 0})]})}),(0,s.jsxs)("div",{className:"vertical"!==_?"reverseHorizontal"===_?"col-7 col-md-3":"col-7 col-md-4":"col-7 ",children:["vertical"===_&&(0,s.jsx)(eE,{layout:_,progressBar:t,buttonIcon:p,onPlay:d,buttons:n,playLabel:m,badges:r,date:a,lead:o,artist:c,hideDuration:v,duration:y,timeZone:O.timeZone,title:I,progressBarPosition:k,description:T,descriptionPosition:S,transcription:L}),"reverseHorizontal"===_&&i&&(0,s.jsx)(u.Z,{imageUrl:i,titleUnderline:b,zoom:A,leadAnimation:E,overlayThumbnail:w,borderBottom:x,mediaRatio:C?(0,g.YR)(C):void 0}),"horizontal"===_&&(0,s.jsx)("div",{className:"col-10 col-md-7",children:(0,s.jsx)(eE,{layout:_,progressBar:t,buttonIcon:p,onPlay:d,buttons:n,playLabel:m,badges:r,date:a,hideDuration:v,duration:y,timeZone:O.timeZone,title:I,lead:o,artist:c,progressBarPosition:k,description:T,descriptionPosition:S,margin:!0,transcription:L})})]})]})},ex=e=>{var t,n,r,i;let{previousEpisode:a,nextEpisode:o}=e,{isMobile:u}=(0,O.kC)(),[c,d]=l.useState();return l.useEffect(()=>{d(u?{display:"flex",justifyContent:"space-between"}:{marginLeft:"auto",marginRight:0,float:"right",display:"flex"})},[u]),(0,s.jsxs)("div",{className:"footer",style:c,children:[(0,s.jsx)("div",{style:{marginRight:"10px"},children:(0,s.jsx)(k.Z,{status:(null==a?void 0:null===(t=a.page)||void 0===t?void 0:t.slug)?"active":"disabled",color:"primary",customIcon:"arrow-left",externalHref:null==a?void 0:null===(n=a.page)||void 0===n?void 0:n.slug,iconPosition:"afterLabel",size:"small",ariaLabel:"\xc9pisode pr\xe9c\xe9dent"})}),(0,s.jsx)("div",{children:(0,s.jsx)(k.Z,{status:(null==o?void 0:null===(r=o.page)||void 0===r?void 0:r.slug)?"active":"disabled",color:"primary",size:"small",customIcon:"arrow-right",externalHref:null==o?void 0:null===(i=o.page)||void 0===i?void 0:i.slug,iconPosition:"afterLabel",ariaLabel:"\xc9pisode suivant"})})]})};let eT=e=>JSON.parse(JSON.stringify(e,(e,t)=>{if("__typename"!==e)return t}));var eS=n(2941);let e_={color:"white",padding:"16px",fontSize:"16px",border:"none",cursor:"pointer"},eC=e=>{let{children:t,onClick:n}=e;return(0,s.jsx)("button",{onClick:n,style:e_,className:"btn btn-light dropdown-toggle",type:"button",children:t})},ek=e=>{let{children:t,isOpen:n}=e,r={color:"black",padding:"12px 16px",textDecoration:"none",display:"block",cursor:"pointer"};return(0,s.jsx)("div",{style:{display:n?"block":"none",position:"absolute",backgroundColor:"#f9f9f9",minWidth:"160px",boxShadow:"0px 8px 16px 0px rgba(0,0,0,0.2)",bottom:"auto",top:"100%",zIndex:1e3},className:"customDropdown",children:t.map(e=>(0,s.jsx)("a",{style:r,href:e.props.href,children:e}))})},eI=e=>{if(e)return new Date(e).toISOString().replace(/[-:]/g,"").split(".")[0]+"Z"};var eL=e=>{var t,n,r,i,a,o,u,c,d,p,m,g,v,y,b,A;let{description:E,page:w,startDate:x,endDate:T}=e,S=(0,l.useContext)(f.lv),_=h.ZP.Radio(S),C=(0,eS.ZP)(eC,ek),k=(null===(t=w.pageContent)||void 0===t?void 0:t.blocsData)&&JSON.parse(null===(n=w.pageContent)||void 0===n?void 0:n.blocsData),I=(null===(r=k.evenementadresse)||void 0===r?void 0:r.street)+"  "+((null===(i=k.evenementadresse)||void 0===i?void 0:i.city)||(null===(o=w.pageData)||void 0===o?void 0:null===(a=o.event)||void 0===a?void 0:a.city)||"")+"  "+((null===(u=k.evenementadresse)||void 0===u?void 0:u.postcode)||(null===(d=w.pageData)||void 0===d?void 0:null===(c=d.event)||void 0===c?void 0:c.department)||""),L=x||(null==w?void 0:null===(m=w.pageData)||void 0===m?void 0:null===(p=m.event)||void 0===p?void 0:p.startDate)||new Date().toISOString(),P=eI(L),O=T||(null==w?void 0:null===(v=w.pageData)||void 0===v?void 0:null===(g=v.event)||void 0===g?void 0:g.endDate)||new Date().toISOString(),R=eI(O),D=Math.abs(new Date(L)-new Date(O)),N={description:E||(null===(b=w.pageData)||void 0===b?void 0:null===(y=b.event)||void 0===y?void 0:y.description)||"Nouvel \xe9v\xe8nement : https://"+_.primaryHost+w.slug,endDatetime:R,location:I,startDatetime:P,duration:D,title:null!==(A=w.name)&&void 0!==A?A:"Nouvel \xe9v\xe8nement "};return(0,s.jsx)("div",{style:{fontFamily:"sans-serif",position:"relative",display:"inline-block"},className:"customDropdown",children:(0,s.jsx)(C,{buttonText:"Ajouter \xe0 votre calendrier",event:N,items:[eS.FU.GOOGLE,eS.FU.ICAL,eS.FU.YAHOO,eS.FU.OUTLOOK]})})};let eP=e=>{let t=(0,l.useContext)(f.lv),n=h.ZP.Radio(t);return e.startDate||e.endDate?(0,s.jsxs)("div",{className:"block",style:{display:"flex",flexDirection:"row",alignItems:"center"},children:[(0,s.jsx)("div",{className:"badge  badge--primary",style:{flex:1,marginTop:"0",display:"flex",flexDirection:"column",justifyContent:"center",alignSelf:"stretch"},children:"Date"}),(0,s.jsxs)("div",{style:{flex:3},children:[e.startDate&&(0,s.jsxs)("p",{children:[e.endDate?"du ":"",(0,s.jsx)("strong",{children:(0,Z.UW)(t,new Date(e.startDate),"dateAndTime",n.timeZone,!0)})]}),e.endDate&&(0,s.jsxs)("p",{children:[e.startDate?"au ":"",(0,s.jsx)("strong",{children:(0,Z.UW)(t,new Date(e.endDate),"dateAndTime",n.timeZone,!0)})]})]})]}):(0,s.jsx)(s.Fragment,{})},eO=l.forwardRef((e,t)=>
20{let{id:n,disabled:r,className:i}=e,[a,o]=(0,l.useState)(""),[u,c]=(0,l.useState)(""),d=(0,l.useMemo)(()=>a&&u?a+"T"+u:a||void 0,[a,u]);return(0,s.jsx)(s.Fragment,{children:(0,s.jsxs)("div",{style:{display:"flex",flexDirection:"row"},children:[(0,s.jsx)("input",{className:i,type:"hidden",value:d,ref:t,id:n,name:n}),(0,s.jsx)("input",{className:i,type:"date",disabled:r,onChange:e=>o(e.target.value),"aria-label":"Date",id:"".concat(n,"-date")}),(0,s.jsx)("input",{type:"time",className:i,disabled:r,onChange:e=>c(e.target.value),"aria-label":"Heure",id:"".concat(n,"-time")})]})})}),eR=["Oui","Non"],eD=["image/gif","image/heic","image/png","image/jpeg","image/png","image/svg","image/webp","image/jpg"],eN=["audio/mp3","audio/ogg","audio/wav","audio/m4a","audio/mpeg"],eM=["application/pdf"],ej=e=>{if(e)return e.type.startsWith("audio")?e.size>1048576*e$.audio:e.size>1048576*e$.imageOrPdf},eF=(e,t,n)=>{var r,i;let a=(null==t?void 0:null===(r=t.target)||void 0===r?void 0:r.files)&&(null==t?void 0:null===(i=t.target)||void 0===i?void 0:i.files[0]),o=["jobOfferImage","eventImage"].includes(e)?eD:eD.concat(eN).concat(eM);a&&(0===a.type.length||!o.includes(a.type.toLocaleLowerCase()))&&n?n("Ce type de fichier n'est pas accept\xe9."):n&&n("")},eB=e=>{let{label:t,id:n,isMandatory:r}=e;return(0,s.jsx)("label",{htmlFor:n,children:r?(0,s.jsxs)("div",{style:{display:"flex"},children:[(0,s.jsx)($.Z,{className:"block paragraph",id:"label"+n,code:t},n),(0,s.jsx)("div",{children:"\xa0 *"})]}):(0,s.jsx)($.Z,{className:"block paragraph",id:"label"+n,code:t},n)})},eU=e=>{switch(e){case"telephone":case"eventOrganizerTelephone":case"jobOfferRecruiterTelephone":return"tel";case"jobOfferRecruiterEmail":return"email";case"jobOfferCity":return"city";case"jobOfferRemuneration":case"jobOfferTitle":case"jobOfferIntroduction":return"input";case"jobOfferImage":return"file";default:return e}};var eV=e=>{let{label:t,status:n,legend:r,error:i,setError:a,onChange:o,value:u,required:c,id:d,type:p,placeholder:m,rows:g,options:v,formRef:y,maxLength:b}=e,[A,E]=(0,l.useState)(),w=()=>(!!i||!!r||!!A)&&(0,s.jsx)("small",{className:i||A?"invalid-feedback":"form-text text-muted",children:i||A||r}),x=e=>{e.target.validity.typeMismatch&&a?a("Format invalide."):a&&a("")},T=e=>(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("input",{ref:y,type:"checkbox",className:"custom-control-input",id:e,name:"[".concat(d,"]"),value:e}),(0,s.jsx)("label",{className:"custom-control-label",htmlFor:e,children:e})]});return(e=>{switch(p){case"boolean":case"radioButton":case"eventPricing":case"bSubscribeNewsletter":case"bA
20cceptRules":case"bPartnerOffers":case"address":case"city":case"country":case"date":case"department":case"email":case"input":case"list":case"number":case"password":case"postalCode":case"telephone":case"text":case"file":case"recipient":case"eventCity":case"eventDepartment":case"eventDescription":case"eventEndDate":case"eventImage":case"eventName":case"eventOrganizerEmail":case"eventOrganizerName":case"eventOrganizerTelephone":case"eventOrganizerUrl":case"eventPostalCode":case"eventPrice":case"eventStartDate":case"eventStreet":case"eventZone":case"jobOfferTitle":case"jobOfferIntroduction":case"jobOfferRecruiterEmail":case"jobOfferRecruiterTelephone":case"jobOfferCity":case"jobOfferRemuneration":case"jobOfferDescription":case"jobOfferSector":case"jobOfferDepartment":case"jobOfferImage":case"sName":case"sFirstName":case"sTelephone":case"dBirthDate":case"sAddress":case"sZipCode":case"sCity":case"sRegion":case"sDistrict":case"iSex":case"sEmailAddress":case"sMessageText":case"sFirstName":case"iMessageType":case"mAttachedFile":case"sURLOfMedia":case"sFromAddress":case"sLastName":case"showNames":case"showDatesChoices":case"eventType":return(0,s.jsxs)("div",{className:"form-group".concat(i?" is-invalid":""),children:[!!t&&(0,s.jsx)(eB,{label:t,id:d,isMandatory:c}),e,w()]});case"simpleCheckbox":return(0,s.jsx)("div",{className:"form-group".concat(i?" is-invalid":""),children:(0,s.jsxs)("div",{className:"custom-control custom-checkbox",children:[e,w()]})});case"multipleCheckbox":return v?(0,s.jsxs)("div",{className:"form-group".concat(i?" is-invalid":""),children:[!!t&&(0,s.jsx)(eB,{label:t,id:d,isMandatory:c}),v.map(e=>(0,s.jsx)("div",{className:"custom-control custom-".concat(p).concat(i?" is-invalid":""),children:T(e)},"checkboxOption_".concat(e))),w()]}):(0,s.jsx)(s.Fragment,{});case"iTypeContestOrBag":case"sShowName":case"dtScheduleSlot":case"iIDShows":case"iScheduleID":return(0,s.jsx)(s.Fragment,{});default:return(0,s.jsx)("div",{children:"Type de champ inconnu"})}})((()=>{let e=(0,l.useContext)(f.lv);switch(p){case"simpleCheckbox":return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("input",{ref:y,type:"checkbox",className:"custom-control-input",id:d,name:d,disabled:"disabled"===n,onChange:e=>{o&&o(!u),eF(p,e)},required:c,checked:u}),(0,s.jsx)("label",{className:"custom-control-label",htmlFor:d,children:t&&(0,s.jsx)(eB,{label:t,id:d,isMandatory:c})})]});case"boolean":case"radioButton":case"eventPricing":case"iSex":case"bSubscribeNewsletter":case"bA
20cceptRules":case"bPartnerOffers":let A=["boolean","bSubscribeNewsletter","bAcceptRules","bPartnerOffers"].find(e=>e===p)?eR:v;return(0,s.jsx)(s.Fragment,{children:!!A&&A.map(e=>{let t="".concat(d).concat(e);return(0,s.jsxs)("div",{className:"custom-control custom-radio".concat(i?" is-invalid":""),children:[(0,s.jsx)("input",{ref:y,type:"radio",className:"custom-control-input",id:t,required:c,disabled:"disabled"===n,name:d,value:e,onChange:t=>{o&&o(e),eF(p,t,a)}}),(0,s.jsx)("label",{className:"custom-control-label",htmlFor:t,children:e})]},e)})});case"list":case"recipient":case"eventDepartment":case"eventZone":case"department":case"jobOfferDepartment":case"jobOfferSector":case"showNames":case"showDatesChoices":return(0,s.jsxs)("select",{ref:y,id:d,name:d,className:"form-control".concat(i?" is-invalid":""),disabled:"disabled"===n,onChange:e=>{o&&o(e.target.value),eF(p,e,a)},defaultValue:u,children:[!!m&&(0,s.jsx)("option",{value:"",disabled:!0,selected:m===u,children:m}),!!v&&v.map(e=>(0,s.jsx)("option",{value:e,selected:e===u,children:e},e))]});case"text":case"eventDescription":case"jobOfferDescription":case"sMessageText":case"iMessageType":return(0,s.jsx)("textarea",{ref:y,name:d,id:d,rows:g||3,className:"form-control".concat(i?" is-invalid":""),disabled:"disabled"===n,placeholder:m,maxLength:b,onChange:e=>{o&&o(e.target.value),eF(p,e,a)},value:u});case"address":case"city":case"country":case"date":case"email":case"input":case"number":case"password":case"postalCode":case"telephone":case"eventCity":case"eventName":case"eventOrganizerEmail":case"eventOrganizerName":case"eventOrganizerTelephone":case"eventOrganizerUrl":case"eventPostalCode":case"eventPrice":case"eventStreet":case"jobOfferTitle":case"jobOfferCity":case"jobOfferRemuneration":case"jobOfferIntroduction":case"jobOfferRecruiterEmail":case"jobOfferRecruiterTelephone":case"sCity":case"iTypeContestOrBag":case"sName":case"sFirstName":case"sTelephone":case"sAddress":case"sZipCode":case"sRegion":case"sDistrict":case"sEmailAddress":case"sMessageText":case"sFirstName":case"sURLOfMedia":case"sFromAddress":case"sLastName":return(0,s.jsx)("input",{ref:y,name:d,id:d,className:"form-control".concat(i?" is-invalid":""),disabled:"disabled"===n,type:eU(p),placeholder:m,onCh
20ange:e=>{o&&o(e.target.value),eF(p,e,a)},onBlur:x,value:u,maxLength:b,pattern:"postalCode"===p||"eventPostalCode"===p?"[0-9]{5}":void 0});case"eventEndDate":case"eventStartDate":case"dtScheduleSlot":return(0,s.jsx)(eO,{ref:y,id:d,className:"form-control".concat(i?" is-invalid":""),disabled:"disabled"===n});case"dBirthDate":return(0,s.jsx)("input",{ref:y,id:d,name:d,type:"date",className:"form-control".concat(i?" is-invalid":""),disabled:"disabled"===n});case"file":case"eventImage":case"jobOfferImage":case"mAttachedFile":return(0,s.jsx)("input",{ref:y,name:d,id:d,className:"form-control".concat(i?" is-invalid":""),disabled:"disabled"===n,type:"file",accept:["jobOfferImage","eventImage"].includes(p)?"image/*":"image/*, audio/mpeg, application/pdf",onChange:e=>{var t,n;o&&o(e.target.value),eF(p,e,a),ej(null===(n=e.target)||void 0===n?void 0:null===(t=n.files)||void 0===t?void 0:t[0])?(a&&(c?a("Le fichier s\xe9lectionn\xe9 est trop gros. "+r):E("Le fichier s\xe9lectionn\xe9 est trop gros. "+r)),e.target.value=""):E(void 0)}});case"eventType":{let t=h.ZP.eventTypes(e);return(0,s.jsxs)("select",{ref:y,id:d,name:d,className:"form-control".concat(i?" is-invalid":""),disabled:"disabled"===n,onChange:e=>{o&&o(e.target.value),eF(p,e,a)},defaultValue:u,children:[!!m&&(0,s.jsx)("option",{value:"",disabled:!0,selected:m===u,children:m}),!!t&&t.map(e=>(0,s.jsx)("option",{value:e.name,selected:e===u,children:e.name},e.id))]})}default:return(0,s.jsx)("div",{children:"Type de champ inconnu"})}})())},ez=n(2283),eq=n(9989),eQ=n(8280);n(4301);let eH=(0,eq.m)("Form"),eG=["file"],eK=["eventImage","jobOfferImage","mAttachedFile"],e$={audio:5,imageOrPdf:2},eW=["jobOfferRecruiterEmail","jobOfferRecruiterTelephone"],eZ="L'upload de fichier est limit\xe9 \xe0 ".concat(e$.imageOrPdf,"Mo pour les images et PDF et ").concat(e$.audio,"Mo pour les audios."),eY="L'upload de fichier est limit\xe9 \xe0 ".concat(e$.imageOrPdf,"Mo pour les images.");var eX=e=>{let{fields:t,formId:n,submitLabel:r,status:i,onSubmit:a,onSuccess:o,loading:u,setLoading:c}=e,{register:d,handleSubmit:m,errors:g,setError:v}=(0,ez.cI)({shouldFocusError:!0}),[y,b]=(0,l.useState)(!1),[A,E]=(0,l.useState)(),[w,x]=(0,l.useState)(),[T,S]=(0,l.useState)(),C=(0,_.oR)(eQ.h).zone.zoneId,I=(0,l.useContext)(f.lv),L=!!Object.values(g).reduce((e,t)=>{let{message:n}=t;return n&&e.push(n),e},[]).length;(0,l.useEffect)(()=>{null==A?b(!1):b(!0)},[A]);let P=(0,p.S)().rossel,O=async e=>{for(let r of(y&&eH.error("Unable to submit form response !"),Object.entries(e).filter(e=>{var n;let[r]=e;return eG.concat(eK).includes((null===(n=t.find(e=>e.id===r))||void 0===n?void 0:n.type)||"")}).map(e=>{let[t,n]=e;return{fieldId:t,value:n}})))if(r.value.length){let{signedUrl:t,url:i}=await h.ZP.formResponse.createFormResponseFileUploadUrl(I,n,r.value[0].name,r.value[0].type);try{await fetch(t,{method:"PUT",headers:{"Content-Type":r.value[0].type},body:r.value[0]}).then(e=>{if(!e.ok)throw Error("Error uploading : "+e.status+" / "+e.statusText)}),e[r.fieldId]=i}catch(e){eH.error("Unable to upload file !",e)}}else delete e[r.fieldId];let r=Object.entries(e).map(e=>{let[t,n]=e;return{fieldId:t,value:n.toString()}});y?null==c||c(!0):await a(r,void 0).then(e=>(null==e?void 0:e.length)?e.forEach(e=>{v(e.fieldId,{message:e.error})}):o()).finally(()=>{null==c||c(!1)})};return(0,l.useEffect)(()=>{let e=t.find(e=>"eventZone"===e.type);if(e){var n;let t=h.ZP.Zones(I),r=t.find(e=>e.id===C);r&&x(r.label);let i=[];null===(n=e.values)||void 0===n||n.forEach(e=>{let n=t.find(t=>t.id===e);n&&i.push(n.label)}),S(i)}},[t,C]),(0,s.jsxs)("form",{style:{marginTop:25},children:[t.map(e=>{var t,n;return e.type?(0,s.jsx)(eV,{formRef:d({required:!!e.mandatory&&"Ce champ est requis"}),label:"".concat(e.label||""),type:e.type||"input",id:e.id,status:"active",placeholder:e.placeholder||"",error:null===(t=g[e.id])||void 0===t?void 0:t.message,setError:t=>v(e.id,{message:t}),value:"eventZone"===e.type&&w?w:void 0,options:"eventZone"===e.type&&T?T:e.values||(null===(n=e.labelledValues)||void 0===n?void 0:n.map(e=>{let{name:t}=e;return t}))||void 0,maxLength:e.maxLength||void 0,required:e.mandatory,legend:eG.includes(e.type)?eZ:eK.includes(e.type)?eY:eW.includes(e.type)?"Ne sera pas mis en ligne.":e.maxLength?"Taille maximum : ".concat(e.maxLength," caract\xe8res"):void 0},e.id):(0,s.jsx)(s.Fragment,{})}),(0,s.jsxs)("div",{style:{overflow:"hidden",height:0,width:0},children:[(0,s.jsx)("label",{htmlFor:"zersdert",style:{position:"absolute",left:"-9999px"},children:"Ne pas remplir ce champ"}
20),(0,s.jsx)("input",{type:"text",name:"zersdert",id:"zersdert",onChange:e=>{var t;eF("file",e,()=>v("zersdert",{message:"HONEYPOT"})),E(null==e?void 0:null===(t=e.target)||void 0===t?void 0:t.value),b(!0)},"aria-label":"Ne pas remplir ce champ",tabIndex:-1,autoComplete:"new-password"})]}),(0,s.jsx)("div",{className:"block form-footer ".concat(u&&" loader"," ").concat(P&&" customButton"),children:!u&&(0,s.jsx)(k.Z,{status:L?"disabled":i,color:"primary",label:r,type:"button",withoutIcon:!0,onClick:()=>m(O)()})})]})},eJ=n(9144),e0={Component:e=>{let{fields:t,form:n,startTime:r,endTime:i,type:a,blocId:o,page:u,hasRegistration:c,neoWinnerData:d}=e,[p,m]=(0,l.useState)(!1),[g,v]=(0,l.useState)(!1),[y,b]=(0,l.useState)(!1),A="success-span-".concat(o),E=(0,l.useContext)(f.lv),w=c&&d&&(null==d?void 0:d.type)!=="direct",x=!c&&(null==d?void 0:d.type)==="direct",T=(0,l.useMemo)(()=>{var e;if(!t||!t.length)return;let n=[...t];if(w&&d&&(null===(e=d.choices)||void 0===e?void 0:e.length)&&"monodate"!==d.type&&"withoutDate"!==d.type&&!n.find(e=>"sShowChoice"===e.id)){let e=d.choices.split(","),t=new Date,r="multipleDate"===d.type?e.filter(e=>new Date(e)>=t).map(e=>new Intl.DateTimeFormat("fr-FR",{dateStyle:"long",timeStyle:"short"}).format(new Date(e))).sort():e;n.unshift({id:"sShowChoice",type:"multipleDate"===d.type?"showDatesChoices":"showNames",label:"multipleDate"===d.type?"Choix de date du jeu":"Choix",values:r,mandatory:!0,labelledValues:void 0,maxLength:void 0,placeholder:void 0})}let r=n.find(e=>"eventZone"===e.type);if(!u.pageContent.model.attributes.locationZone&&r&&n){let e=n.indexOf(r);e&&n.splice(e,1),b(!0)}return n},[t]);if(p)return(0,s.jsx)("span",{id:A,style:{marginTop:30,marginBottom:30},children:"jobDeposit"===a?"Votre offre est soumise avec succ\xe8s !":"R\xe9ponse envoy\xe9e avec succ\xe8s !"});let S=(()=>{if("game"===a){let e=Date.now();if(r&&e<r){let e=(0,eJ.Z)(new Date(r),"dd/MM/yyyy '\xe0' HH:mm");return{display:!1,text:"Le jeu commence le ".concat(e)}}if(i){if(!(e<i))return{display:!1,text:"Le jeu est termin\xe9"};{let e=(0,eJ.Z)(new Date(i),"dd/MM/yyyy '\xe0' HH:mm");return{display:!0,text:"Le jeu se termine le ".concat(e)}}}}})();return T&&T.length?(0,s.jsxs)("div",{style:{marginBottom:50,marginTop:25},id:o,children:[S&&!p?(0,s.jsx)("p",{className:"block lead",children:S.text}):void 0,(null==S?void 0:S.display)===!1?void 0:(0,s.jsx)(eX,{fields:T,formId:n,submitLabel:"game"===a?"Participer au jeu":"jobDeposit"===a?"Soumettre l'offre d'emploi":"jobApplication"===a?"Envoyer la candidature":"Soumettre le formulaire",status:g?"disabled":"active",onSubmit:async(e,t)=>{if(v(!0),w&&d){let r=eT(d);return r&&h.ZP.formResponse.sendNeogroupGameregistration(E,n,e,d=r),await h.ZP.formResponse.createFormResponse(E,n,e,t)}if(!x)return await h.ZP.formResponse.createFormResponse(E,n,e,t,y);await h.ZP.formResponse.sendDirectReaction(E,n,e,"")},onSuccess:()=>{var e,t;m(!0),null===(t=document)||void 0===t||null===(e=t.getElementById(A))||void 0===e||e.scrollIntoView({block:"center"})},loading:g,setLoading:v})]}):(0,s.jsx)(s.Fragment,{})},getContentQuery:(e,t)=>{let{form:n}=t;if(!n)return;let r="".concat(e,"_formId");return{query:"\n        ".concat(e,": FormFields(formId:$").concat(r,"){\n          fields{\n            id\n            type\n            label\n            mandatory\n            placeholder\n            values\n            labelledValues{\n              name\n              id\n            }\n            maxLength\n          }\n          startTime\n          endTime\n          type\n          hasRegistration\n          neoWinnerData {\n            type\n            sStationName\n            sShowName\n            dtScheduleSlot\n            iIDShows\n            dtScheduleSlot\n            iScheduleID\n            choices\n          }\n        }\n      "),variables:{[r]:n},types:{[r]:"String!"}}},name:"formulaire"},e1=e=>{let{title:t,groupedFrequencies:n,guttersClassName:r,blocId:i}=e,a=e=>(0,s.jsxs)(s.Fragment,{children:[e.departmentLabel&&(0,s.jsx)("h3",{className:"title h3",children:e.departmentLabel}),(0,s.jsx)("ul",{className:"list-unstyled",children:e.frequencies.map(e=>(0,s.jsxs)("li",{className:"list-item",children:[e.label||e.city," :"," ",(0,s.jsx)("span",{className:"text-primary",children:"FM"===e.type?e.frequency:"DAB+"})]}))})]});return(0,s.jsxs)("div",{className:"block Frequencies",id:i,children:[t&&(0,s.jsx)(c.Z,{title:t}),(0,s.jsx)("div",{className:"row row-alt-1 grid ".concat(r||""),children:n.map((e,t)=>(0,s.jsx)("div",{className:"col-1 col-md-1",children:a(e)},"".concat(e.departmentLabel,"-").concat(t)))})]})},e2=n(4930),e3=e=>{let{title:t,items:n,mediaRatio:r,blocId:i}=e;return(0,s.jsxs)("div",{className:"block Instagram",id:i,children:[!!t&&(0,s.jsx)(c.Z,{title:t}),(0,s.jsx)(e2.Iv,{options:{settings:{autoplaySpeed:5e3,transitionSpeed:900}},customCaptions:n.map((e,t)=>({id:t,caption:e.legend||""})),children:(0,s.jsx)("div",{className:"row row-alt-4 grid",children:n.map(e=>(0,s.jsx)("div",{className:"col-4 col-md-1",children:(0,s.jsx)(u.Z,{imageUrl:e.imageUrl,imageAlt:e.imageAlt,lead:e.lead,fullScreenImageUrl:e.imageOriginalUrl,instagramInfos:e.infos,nav:e.nav,mediaRatio:r,imageSize:"medium"})},"".concat(e.imageUrl)))})})]})};let e4=e=>e.reduce((e,t)=>
20{var n,r;let i=t.medias&&(null===(n=(0,g.nv)(t.medias,"square"))||void 0===n?void 0:n.url),a=t.medias&&(null===(r=(0,g.nv)(t.medias,"original"))||void 0===r?void 0:r.url);return i&&a&&e.push({imageUrl:i,imageOriginalUrl:a,imageAlt:t.specificAttributes&&t.specificAttributes.alternativeText||"",legend:t.legend||""}),e},[]);var e5=n(515),e8=n(2214),e6=e=>{let{items:t,activeLabel:n,onClick:r}=e;return(0,s.jsx)("ul",{className:"nav nav-pills nav-justified nav-pills-dark",children:t.map((e,t)=>(0,s.jsx)("li",{className:"nav-item",children:(0,s.jsx)("a",{href:"#",className:"nav-link".concat(n===e.label?" active":""),onClick:e=>(e.stopPropagation(),r(t),!1),children:e.label})},e.label))})},e9=e=>{var t,n,r,i,a,o;let{title:u,items:d,mediaRatio:p,blocId:m,blurSides:g}=e,v=l.useContext(f.lv),y=h.ZP.Radio(v),[b,A]=l.useState(0),[E,w]=l.useState([]),x=d[b],T=e=>{var t,n,r,i,a,o,l,u,c,d,h,f,m,g,v;let{i:b,isOpen:A,index:x,overlayThumbnail:T,blurSides:S}=e;return(0,s.jsx)(s.Fragment,{children:(0,s.jsxs)("div",{className:T?"col-2 col-md-1":void 0,children:[T||(0,s.jsx)(e5.Z,{},"separator-".concat(b.title)),b.time?(0,s.jsx)("div",{className:"time h3",children:b.time}):(0,s.jsx)(s.Fragment,{}),(0,s.jsx)(e8.Z,{mediaRatio:p,imageUrl:b.imageUrl,imageAlt:b.imageAlt,imageSize:"intermediate",onClick:b.onClick,linkHref:b.linkHref,title:b.title,lead:b.lead,orientation:"row",buttonSize:"small",animatorsNames:b.animatorsNames,rightButtonIcon:A?"chevron-up":"chevron-down",rightButtonLabel:b.chronicles&&"Voir les chroniques",rightButtonOnClick:()=>w(A?E.filter(e=>e!==x):[...E,x]),programmation:!0,titleUnderline:(null===(r=y.theme)||void 0===r?void 0:null===(n=r.rossel)||void 0===n?void 0:null===(t=n.thumbnail)||void 0===t?void 0:t.titleUnderline)||void 0,zoom:(null===(o=y.theme)||void 0===o?void 0:null===(a=o.rossel)||void 0===a?void 0:null===(i=a.thumbnail)||void 0===i?void 0:i.zoom)||void 0,leadAnimation:(null===(c=y.theme)||void 0===c?void 0:null===(u=c.rossel)||void 0===u?void 0:null===(l=u.thumbnail)||void 0===l?void 0:l.leadAnimation)||void 0,overlayThumbnail:(null===(f=y.theme)||void 0===f?void 0:null===(h=f.rossel)||void 0===h?void 0:null===(d=h.thumbnail)||void 0===d?void 0:d.fullWidth)||void 0,borderBottom:(null===(v=y.theme)||void 0===v?void 0:null===(g=v.rossel)||void 0===g?void 0:null===(m=g.thumbnail)||void 0===m?void 0:m.borderBottom)||void 0,blurSides:S},b.title)]})})};return(0,s.jsxs)("div",{className:"block Programs",id:m,children:[!!u&&(0,s.jsx)(c.Z,{title:u}),d.length>1&&(0,s.jsx)(e6,{items:d,activeLabel:x.label,onClick:e=>{A(e),w([])}}),!!x.title&&(0,s.jsx)(c.Z,{title:x.title,badgeLabel:x.badge}),(0,s.jsx)("div",{className:(null===(r=y.theme)||void 0===r?void 0:null===(n=r.rossel)||void 0===n?void 0:null===(t=n.thumbnail)||void 0===t?void 0:t.fullWidth)?"row row-alt-2":void 0,children:x.subItems.length>0?x.subItems.map((e,t)=>{var n,r,i;let a=E.indexOf(t)>-1;return(0,s.jsxs)(l.Fragment,{children:[(0,s.jsx)(T,{i:e,isOpen:a,index:t,overlayThumbnail:(null===(i=y.theme)||void 0===i?void 0:null===(r=i.rossel)||void 0===r?void 0:null===(n=r.thumbnail)||void 0===n?void 0:n.fullWidth)||void 0,blurSides:g},t),!!e.chronicles&&E.length>0&&(0,s.jsx)("div",{className:"collapse".concat(a?" show":""),children:(0,s.jsx)("div",{className:"ProgramsChronicals row",children:(0,s.jsx)("div",{className:"col-9 col-md-8 offset-1 offset-md-2",children:e.chronicles.map((e,t)=>(0,s.jsx)("div",{children:(0,s.jsx)(T,{i:e,isOpen:!1,index:t})},e.title))})})})]},t)}):(0,s.jsx)("div",{className:(null===(o=y.theme)||void 0===o?void 0:null===(a=o.rossel)||void 0===a?void 0:null===(i=a.thumbnail)||void 0===i?void 0:i.fullWidth)?"col-2":void 0,children:"Aucun programme disponible"})})]})};let e7=(e,t)=>{var n,r;return{time:"".concat(e.startHours,"h").concat(e.startMinutes," - ").concat(e.endHours,"h").concat(e.endMinutes),title:(0,v.ew)(e.title||""),lead:(0,v.CL)(e.chapo||""),imageUrl:e.imagePrincipale&&e.imagePrincipale.medias&&(null===(n=(0,g.nv)(e.imagePrincipale.medias,t?"original":"large"))||void 0===n?void 0:n.url),imageAlt:e.imagePrincipale&&(null===(r=e.imagePrincipale.specificAttributes)||void 0===r?void 0:r.alternativeText)||"",linkHref:e.slug,chronicles:e.chronicles&&e.chronicles.length>0?e.chronicles.map(e=>e7(e,t)):void 0,animatorsNames:e.animatorsNames?e.animatorsNames:void 0}},te=(e,t)=>
20e.map(e=>({label:e.label,subItems:e.subItems.map(e=>e7(e,t))}));var tt=e=>{let{firstThumbnail:t,leftContents:n,rightContents:r,title:i,blocId:a,overrideRules:o,titleUnderlineBloc:d,zoomBloc:p,fullWidthBloc:m,borderBottomBloc:v,leadAnimationBloc:b}=e,A=l.useContext(f.lv),E=h.ZP.Radio(A),w=t&&(null==r?void 0:r.length)?2:1,x=(e,t)=>{var n,r,i,a,l,c,h,f,g,y,A,w,x,T,S;return(0,s.jsx)(u.Z,{imageUrl:e.imageUrl,imageAlt:e.imageAlt,linkHref:e.linkHref,title:e.title,date:e.date,lead:e.lead,mediaRatio:t,categories:e.categories,titleUnderline:o?d:(null===(i=E.theme)||void 0===i?void 0:null===(r=i.rossel)||void 0===r?void 0:null===(n=r.thumbnail)||void 0===n?void 0:n.titleUnderline)||void 0,zoom:o?p:(null===(c=E.theme)||void 0===c?void 0:null===(l=c.rossel)||void 0===l?void 0:null===(a=l.thumbnail)||void 0===a?void 0:a.zoom)||void 0,leadAnimation:o?b:(null===(g=E.theme)||void 0===g?void 0:null===(f=g.rossel)||void 0===f?void 0:null===(h=f.thumbnail)||void 0===h?void 0:h.leadAnimation)||void 0,overlayThumbnail:o?m:(null===(w=E.theme)||void 0===w?void 0:null===(A=w.rossel)||void 0===A?void 0:null===(y=A.thumbnail)||void 0===y?void 0:y.fullWidth)||void 0,borderBottom:o?v:(null===(S=E.theme)||void 0===S?void 0:null===(T=S.rossel)||void 0===T?void 0:null===(x=T.thumbnail)||void 0===x?void 0:x.borderBottom)||void 0},e.title)};return(0,s.jsxs)("div",{className:"block UpContent",id:a,children:[i&&(0,s.jsx)(c.Z,{title:i}),t&&(0,s.jsxs)("div",{className:"row row-alt-7",children:[(0,s.jsx)("div",{className:"col-7".concat(2===w?" col-lg-4":" col-lg-7"),children:(0,s.jsxs)("div",{className:"row row-alt-1 grid",children:[(0,s.jsx)("div",{className:"".concat((0,y.F)(t.sponsored)," col-1"),children:x(t,(0,g.YR)("portrait"))},t.title),n&&n.map(e=>(0,s.jsx)("div",{className:"".concat((0,y.F)(e.sponsored)," col-1"),children:x(e,(0,g.YR)("large"))},e.title))]})}),r&&(0,s.jsx)("div",{className:"col-7 col-lg-3",children:(0,s.jsx)("div",{className:"row row-alt-1 grid",children:r.map(e=>(0,s.jsx)("div",{className:"".concat((0,y.F)(e.sponsored)," col-1"),children:x(e,(0,g.YR)("large"))},e.title))})})]})]})},tn=n(1112),tr=n(8091),ti=n(8367),ta=n(5995),to=e=>{var t,n,r,i,a,o,d,p,m,g,v,b,A,E,w,x;let{title:T,items:S,promoteFirstOne:_,itemOrientation:C,repeatPromoted:k,promotedStyle:I,itemDisplayed:L,thumbnailsPerRow:P,mediaRatio:R,blocId:D,displaySearchFor:N,onSearch:M,loading:j,departments:F,jobSectors:B,emptyMessage:U,overrideRules:V,titleUnderlineBloc:z,zoomBloc:q,fullWidthBloc:Q,borderBottomBloc:H,leadAnimationBloc:G,thumbnailsForceFormat:K,useParallaxBloc:$,blurSides:W}=e,Y=l.useContext(f.lv),X=h.ZP.Radio(Y),J=(0,O.kC)(),[ee]=l.useState(0),et=(e,t,n)=>{var r,i,a,o,l,c,d,h,f,p,m,g,v,y,b;return(0,s.jsx)(u.Z,{imageUrl:e.imageUrl,imageAlt:e.imageAlt,linkHref:e.linkHref,lead:e.lead,date:e.date,title:e.title,orientation:t,author:e.author,mediaRatio:R,imageSize:n,eventStartDate:e.eventStartDate,eventEndDate:e.eventEndDate,useEventDates:!!e.eventStartDate,categories:e.categories,titleUnderline:V?z:(null===(a=X.theme)||void 0===a?void 0:null===(i=a.rossel)||void 0===i?void 0:null===(r=i.thumbnail)||void 0===r?void 0:r.titleUnderline)||void 0,zoom:V?q:(null===(c=X.theme)||void 0===c?void 0:null===(l=c.rossel)||void 0===l?void 0:null===(o=l.thumbnail)||void 0===o?void 0:o.zoom)||void 0,leadAnimation:V?G:(null===(f=X.theme)||void 0===f?void 0:null===(h=f.rossel)||void 0===h?void 0:null===(d=h.thumbnail)||void 0===d?void 0:d.leadAnimation)||void 0,overlayThumbnail:V?Q:(null===(g=X.theme)||void 0===g?void 0:null===(m=g.rossel)||void 0===m?void 0:null===(p=m.thumbnail)||void 0===p?void 0:p.fullWidth)||void 0,borderBottom:V?H:(null===(b=X.theme)||void 0===b?void 0:null===(y=b.rossel)||void 0===y?void 0:null===(v=y.thumbnail)||void 0===v?void 0:v.borderBottom)||void 0,location:e.location,jobSector:e.jobSector,forceFormat:K,eventType:e.eventType,blurSides:W})},en=_?1:0,er=S.slice(ee*L+en,(ee+en+1)*L),ei=l.useMemo(()=>{if(F)return[...F].sort((e,t)=>e.localeCompare(t))},[F]),ea=l.useMemo(()=>{if(B)return[...B].sort((e,t)=>+e-+t)},[B]);return(0,s.jsxs)("div",{className:"block CategoryContentsList",id:D,children:[!!T&&(0,s.jsx)(c.Z,{title:T}),N&&(0,s.jsx)(tr.Z,{searchType:N,onSearch:M,loading:j,departments:ei,jobSectors:ea}),_&&(k||0===ee)&&($?(0,s.jsx)("div",{className:"row row-alt-1 grid",style:{position:"relative"},children:S[0]&&(0,s.jsxs)("div",{className:"col-1 ".concat((0,y.F)(S[0].sponsored)),style:{transform:"translate(0, 5%)",overflow:"ellipsis"},children:[(0,s.jsx)(s.Fragment,{children:(t=S[0],(0,s.jsx)(ta.Z,{href:t.linkHref,children:(0,s.jsxs)("div",{children:[(0,s.jsx)(ti.pT,{left:!0,children:(0,s.jsx)("div",{style:{display:"flex",position:"relative",width:"column"===I?"50%":"100%",cursor:"pointer"},children:(0,s.jsx)(u.Z,{imageUrl:t.imageUrl,imageAlt:t.imageAlt,orientation:I,mediaRatio:R,imageSize:"big",categories:t.categories,titleUnderline:V?z:(null===(i=X.theme)||void 0===i?void 0:null===(r=i.rossel)||void 0===r?void 0:null===(n=r.thumbnail)||void 0===n?void 0:n.titleUnderline)||void 0,zoom:V?q:(null===(d=X.theme)||void 0===d?void 0:null===(o=d.rossel)||void 0===o?void 0:null===(a=o.thumbnail)||void 0===a?void 0:a.zoom)||void 0,leadAnimation:V?G:(null===(g=X.theme)||void 0===g?void 0:null===(m=g.rossel)||void 0===m?void 0:null===(p=m.thumbnail)||void 0===p?void 0:p.leadAnimation)||void 0,overlayThumbnail:V?Q:(null===(A=X.theme)||void 0===A?void 0:null===(b=A.rossel)||void 0===b?void 0:null===(v=b.thumbnail)||void 0===v?void 0:v.fullWidth)||void 0,borderBottom:V?H:(null===(x=X.theme)||void 0===x?void 0:null===(w=x.rossel)||void 0===w?void 0:null===(E=w.thumbnail)||void 0===E?void 0:E.borderBottom)||void 0,forceFormat:K,blurSides:W})})}),(0,s.jsx)(ti.pT,{right:!0,children:(0,s.jsxs)("div",{className:"resumeAnimated",style:{backgroundSize:"50%",padding:"1rem",zIndex:1,background:"white",position:"relative",left:0,marginLeft:"40%",top:J.isMobile?"-20%":"-50%",transform:"translate(5%, -50%)",width:"50%",cursor:"pointer"},children:[S[0].gameEndDate&&S[0].date?(0,s.jsx)("p",{className:"date",children:S[0].gameEndDate?"Fin : ".concat((0,Z.UW)(Y,S[0].gameEndDate,"onlyDate",X.timeZone)):S[0].date?(0,Z.UW)(Y,S[0].date,"onlyDate",X.timeZone):""}):void 0,S[0].author&&(0,s.jsx)("p",{className:"artist",children:S[0].author}),S[0].title&&(0,s.jsx)("h3",{className:"h3",style:{maxWidth:"65ch",overflow:"hidden",textOverflow:"ellipsis"},children:S[0].title}),S[0].jobSector&&(0,s.jsx)("p",{className:"artist",children:S[0].jobSector}),S[0].eventType&&(0,s.jsx)("p",{className:"artist",children:S[0].eventType}),S[0].lead&&(0,s.jsx)("div",{style:{maxWidth:"320ch",overflow:"hidden",textOverflow:"ellipsis"},children:(0,s.jsx)(em.Z,{content:S[0].lead,noWrap:!1})})]})})]})}))}),(0,s.jsx)(e5.Z,{})]})}):(0,s.jsx)("div",{className:"row row-alt-1 grid",children:S[0]&&(0,s.jsxs)("div",{className:"col-1 ".concat((0,y.F)(S[0].sponsored)),children:[et(S[0],I,"big"),(0,s.jsx)(e5.Z,{})]})})),(0,s.jsx)("div",{className:"row row-alt-".concat(P," grid"),children:er.map(e=>(0,s.jsx)("div",{className:"col-".concat(P," col-md-1 ").concat((0,y.F)(e.sponsored)),children:et(e,C)}
20,e.title))}),(!er||er.length<=0||j)&&U&&(0,s.jsx)("div",{className:"row empty-message",children:U})]})},ts=e=>{let{page:t,pageCount:n,onChange:r,pageLink:i,displaySearch:a}=e,o=(0,O.kC)().isMobile?5:10;if(n<=1)return(0,s.jsx)(s.Fragment,{});let l=n<=o?0:Math.max(0,t-3),u=n<=o?n-1:Math.min(n-1,t+3);if(n>=o)for(;u-l<o-1;)l>0?l--:u<n-1&&u++;let c=(0,p.S)().rossel;return(0,s.jsxs)("nav",{className:"pagination",children:[(0,s.jsx)(k.Z,{customIcon:"arrow-left",status:0===t?"disabled":"active",linkHref:null==i?void 0:i(t-1),onClick:r&&(()=>r(0===t?length-1:t-1)),isCustom:c}),(0,s.jsx)("ul",{className:"pagination-numerotation list-inline",children:Array.from({length:u-l+1},(e,t)=>t+l).map(e=>i?(0,s.jsx)("li",{className:"list-inline-item",children:(0,s.jsx)(ta.Z,{href:i(e),children:(0,s.jsx)("a",{className:"btn btn-sm".concat(e===t?" active":""),children:e+1})})},e):(0,s.jsx)("li",{className:"list-inline-item",children:(0,s.jsx)("button",{type:"button",className:"btn btn-sm".concat(e===t?" active":""),onClick:r&&(()=>r(e)),children:e+1})},e))}),(0,s.jsx)(k.Z,{customIcon:"arrow-right",status:t>=n-1?"disabled":"active",linkHref:null==i?void 0:i(t+1),onClick:r&&(()=>r(a?t+1:t===length?0:t+1)),isCustom:c})]})},tl=e=>{let t=(0,l.useRef)();return(0,l.useEffect)(()=>{t.current=e},[e]),t.current};let tu=e=>{let t=e.findIndex(e=>"date"===e);-1!==t&&(e[t]="eventDates");let n=e.findIndex(e=>"location"===e);return -1!==n&&e.splice(n,1,"city","department"),["slug",...e.map(e=>j.MS[e])]};var tc=n(5520);let td=tc.HF;S.Z.SSR||(window.play=async(e,t,n)=>{e&&T.ZP.actions.setMedia({id:e,type:"podcast",mediaUrl:e,play:!0,imageUrl:n||td,artist:"",title:t||"Podcast",hasStartOver:!1})});var th=n(8081);let tf=e=>e?"Voir le site de l'annonceur":void 0;var tp=e=>{let{columns:t,contents:n,title:r,orientation:i,buttonMode:a,linkHref:o,linkLabel:m,guttersClassName:g,blocId:v,overrideRules:b,titleUnderlineBloc:A,zoomBloc:E,fullWidthBloc:w,borderBottomBloc:x,leadAnimationBloc:T,playEpisode:S}=e,_=l.useContext(f.lv),C=h.ZP.Radio(_),k=(0,p.S)(),I=k.rossel||k.group81,L=(e,t)=>{var n,r,i,o,l,c,d,h,f,p,m,g,v,y,_;let k=[];return e.lastPodcastHref&&k.push({href:e.lastPodcastHref,label:"Dernier podcast",icon:"play"}),e.allPodcastHref&&k.push({href:e.allPodcastHref,label:"Tous les podcasts"}),(0,s.jsx)(u.Z,{imageUrl:e.imageUrl,imageAlt:e.imageAlt,linkHref:e.linkHref,title:e.title,lead:e.lead,orientation:t,buttons:k,buttonsType:a,titleUnderline:b?A:(null===(i=C.theme)||void 0===i?void 0:null===(r=i.rossel)||void 0===r?void 0:null===(n=r.thumbnail)||void 0===n?void 0:n.titleUnderline)||void 0,zoom:b?E:(null===(c=C.theme)||void 0===c?void 0:null===(l=c.rossel)||void 0===l?void 0:null===(o=l.thumbnail)||void 0===o?void 0:o.zoom)||void 0,leadAnimation:b?T:(null===(f=C.theme)||void 0===f?void 0:null===(h=f.rossel)||void 0===h?void 0:null===(d=h.thumbnail)||void 0===d?void 0:d.leadAnimation)||void 0,overlayThumbnail:b?w:(null===(g=C.theme)||void 0===g?void 0:null===(m=g.rossel)||void 0===m?void 0:null===(p=m.thumbnail)||void 0===p?void 0:p.fullWidth)||void 0,borderBottom:b?x:(null===(_=C.theme)||void 0===_?void 0:null===(y=_.rossel)||void 0===y?void 0:null===(v=y.thumbnail)||void 0===v?void 0:v.borderBottom)||void 0,isEpisode:S},e.title)};return(0,s.jsxs)("div",{className:"block Podcasts",id:v,children:[!!r&&(0,s.jsx)(c.Z,{title:r,linkLabel:m,linkHref:o}),(0,s.jsx)("div",{className:"row row-alt-".concat(t," grid ").concat(g||""),children:n.map(e=>(0,s.jsx)("div",{className:"col-".concat(t," col-md-1 ").concat((0,y.F)(e.sponsored)),children:L(e,i)},e.title))}),I&&(r||m)&&(0,s.jsx)(d.Z,{linkHref:o,linkLabel:m})]})};let tm=(e,t)=>e.map(e=>{var n;let r=e.imagePrincipale&&e.imagePrincipale.medias&&t&&(null===(n=(0,g.nv)(e.imagePrincipale.medias,t))||void 0===n?void 0:n.url);return{date:e.updatedAt?new Date(e.updatedAt):void 0,title:(0,v.ew)(e.title||""),imageUrl:r,imageAlt:e.imagePrincipale&&e.imagePrincipale.specificAttributes&&e.imagePrincipale.specificAttributes.alternativeText||"",lead:(0,v.CL)(e.chapo||""),linkHref:e.slug,lastPodcastHref:void 0,allPodcastHref:void 0,sponsored:e.sponsored}});var tg=n(469),tv=e=>{let{socialNetworks:t,pageTitle:n,blocId:r,page:i}=e;return(null==t?void 0:t.length)>0?(0,s.jsx)("div",{style:{display:"flex",flexFlow:"row-reverse"},id:r,children:t.map(e=>(0,s.jsx)(k.Z,{status:"active",customIcon:e,size:"small",ariaLabel:"Partage de la page '".concat(n,"' sur ").concat(e,"."),onClick:()=>(0,tg.zX)(e,window.location.href,i,n)},e))}):(0,s.jsx)(s.Fragment,{})},ty=n(7839);let tb=(e,t,n,r,i)=>e.map(e=>{var a;let o=e.imagePrincipale&&e.imagePrincipale.medias&&(null===(a=(0,g.nv)(e.imagePrincipale.medias,n||"original"))||void 0===a?void 0:a.url),s="video"===t&&e.videoPrincipale&&e.videoPrincipale.previewUrl||o;return{date:r.includes("date")&&e.updatedAt?new Date(e.updatedAt):void 0,title:r.includes("title")?(0,v.ew)(e.title||""):void 0,imageSrc:s,imageAlt:e.imagePrincipale&&e.imagePrincipale.specificAttributes?e.imagePrincipale.specificAttributes.alternativeText||e.title||"":e.title||"",lead:r.includes("chapo")?(0,v.CL)(e.chapo||""):void 0,linkHref:e.slug,author:r.includes("author")&&e.author?"".concat(e.author.firstName?e.author.firstName:""," ").concat(e.author.lastName?e.author.lastName:""):void 0,isEpisode:!!i&&(e.episodePodcast||!1)}});var tA=n(4686),tE=n(9119),tw=n(8444);let tx=(0,eq.m)("titresMusicaux"),tT=e=>[...e].sort((e,t)=>
20e.timestamp<t.timestamp?1:-1),tS=(0,A.yM)("setYouTubeIframeAPIReady"),t_=(0,A.MT)(!1).on(tS,()=>!0),tC=!1,tk=e=>{let[t,n]=(0,l.useState)({}),r=(0,_.oR)(t_);return(0,l.useEffect)(()=>{if(!tC){let e=document.createElement("script");e.src="https://www.youtube.com/iframe_api";let t=document.getElementsByTagName("script")[0];t.parentNode.insertBefore(e,t),tC=!0,window.onYouTubeIframeAPIReady=()=>{tS()}}},[]),(0,l.useEffect)(()=>{if(r){let t=e=>{switch(e.data){case YT.PlayerState.UNSTARTED:n(e=>({...e,status:"UNSTARTED"}));break;case YT.PlayerState.ENDED:n(e=>({...e,status:"ENDED"}));break;case YT.PlayerState.PAUSED:n(e=>({...e,status:"PAUSED"}));break;case YT.PlayerState.PLAYING:n(e=>({...e,status:"PLAYING"}));break;case YT.PlayerState.BUFFERING:n(e=>({...e,status:"BUFFERING"}));break;case YT.PlayerState.CUED:n(e=>({...e,status:"CUED"}));break;default:n(e=>({...e,status:void 0}))}};n(n=>({...n,player:new YT.Player(e,{events:{onStateChange:t}})}))}},[r]),t};var tI=e=>{var t,n,r;let{heightRatio:i,id:a,margin:o="5rem 0",children:u}=e,c=(0,l.useRef)(null),d=null===(t=c.current)||void 0===t?void 0:t.getBoundingClientRect(),[h,f]=(0,l.useState)(null!==(r=null===(n=c.current)||void 0===n?void 0:n.offsetWidth)&&void 0!==r?r:0),[p,m]=(0,l.useState)(h*i),g=()=>{let e=c.current;if(e){let t=e.offsetWidth,n=t*i;(h!==t||p!==n)&&(f(t),m(n))}},v=ef().debounce(g,300);return(0,l.useEffect)(()=>{if(!S.Z.SSR)return window.addEventListener("resize",v),()=>{window.removeEventListener("resize",v)}},[]),(0,l.useEffect)(()=>{g()},[d]),(0,s.jsx)("div",{ref:c,style:{display:"flex",justifyContent:"center",margin:o,width:"100%"},id:a,children:u({width:h,height:p})})},tL=n(2004),tP=n.n(tL),tO=n(5820);let tR=e=>{let[t,n]=(0,l.useState)();return(0,l.useEffect)(()=>{(0,tO.h)().hasConsent(e).then(e=>{n(e?"consented":"denied")})},[e]),{category:e,consented:t,updateConsented:t=>{(0,tO.h)().setConsent(e,t)}}},tD=e=>{let{category:t,children:n,maxDeniedWidth:r="100%"}=e,{consented:i,updateConsented:a}=tR(t);return i?"denied"===i?(0,s.jsxs)("div",{style:tN.container(r),className:"block DeniedCmp",children:[(0,s.jsx)("span",{style:tN.span,children:"Cet \xe9l\xe9ment est masqu\xe9 compte-tenu du refus du d\xe9p\xf4t de cookies que vous avez exprim\xe9.\nSi vous souhaitez l'afficher, merci de nous donner votre accord en cliquant sur le bouton ci-dessous."}),(0,s.jsx)("div",{style:tN.buttonContainer,children:(0,s.jsx)("button",{onClick:()=>a("consented"),children:"Afficher l'\xe9l\xe9ment"})})]}):(0,s.jsx)(s.Fragment,{children:n}):(0,s.jsx)(s.Fragment,{})},tN={container:e=>({width:"100%",maxWidth:e,display:"flex",flexDirection:"column",backgroundColor:"rgb(42, 48, 59)",color:"#FFFFFF",textAlign:"center",padding:20,margin:"20px 0px"}),span:{marginBottom:20},buttonContainer:{margin:"auto"}};var tM=n(2382);/*! @vimeo/player v2.30.3 | (c) 2026 Vimeo | MIT License | https://github.com/vimeo/player.js */let tj=void 0!==n.g&&"[object global]"===({}).toString.call(n.g),tF="undefined"!=typeof Bun,tB="undefined"!=typeof Deno,tU="function"==typeof WebSocketPair&&void 0!==caches?.default,tV=tj||tF||tB||tU;function tz(e,t){return 0===e.indexOf(t.toLowerCase())?e:`${t.toLowerCase()}${e.substr(0,1).toUpperCase()}${e.substr(1)}`}function tq(e){return/^(https?:)?\/\/((((player|www)\.)?vimeo\.com)|((player\.)?[a-zA-Z0-9-]+\.(videoji\.(hk|cn)|vimeo\.work)))(?=$|\/)/.test(e)}function tQ(e){return/^https:\/\/player\.((vimeo\.com)|([a-zA-Z0-9-]+\.(videoji\.(hk|cn)|vimeo\.work)))\/video\/\d+/.test(e)}function tH(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.id,n=e.url,r=t||n;if(!r)throw Error("An id or url must be passed, either in an options object or as a data-vimeo-id or data-vimeo-url attribute.");if(!isNaN(parseFloat(r))&&isFinite(r)&&Math.floor(r)==r)return`https://vimeo.com/${r}`;if(tq(r))return r.replace("http:","https:");if(t)throw TypeError(`“${t}” is not a valid video id.`);throw TypeError(`“${r}” is not a vimeo.com url.`)}let tG=function(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"addEventListener",i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"removeEventListener",a="str
vendor: 4,204 bytes, lines 20-25
20ing"==typeof t?[t]:t;return a.forEach(t=>{e[r](t,n)}),{cancel:()=>a.forEach(t=>e[i](t,n))}};function tK(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:document;if(!e||!t||"function"!=typeof t.querySelectorAll)return null;let n=t.querySelectorAll("iframe");for(let t=0;t<n.length;t++)if(n[t]&&n[t].contentWindow===e)return n[t];return null}let t$=void 0!==Array.prototype.indexOf,tW="undefined"!=typeof window&&void 0!==window.postMessage;if(!tV&&(!t$||!tW))throw Error("Sorry, the Vimeo Player API is not available in this browser.");var tZ="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==n.g?n.g:"undefined"!=typeof self?self:{};!/*!
21 * weakmap-polyfill v2.0.4 - ECMAScript6 WeakMap polyfill
22 * https://github.com/polygonplanet/weakmap-polyfill
23 * Copyright (c) 2015-2021 polygonplanet <[email protected]>
24 * @license MIT
25 */function(e){if(!e.WeakMap){var t=Object.prototype.hasOwnProperty,n=Object.defineProperty&&function(){try{return 1===Object.defineProperty({},"x",{value:1}).x}catch(e){}}(),r=function(e,t,r){n?Object.defineProperty(e,t,{configurable:!0,writable:!0,value:r}):e[t]=r};e.WeakMap=function(){function e(){if(void 0===this)throw TypeError("Constructor WeakMap requires 'new'");if(r(this,"_id","_WeakMap_"+a()+"."+a()),arguments.length>0)throw TypeError("WeakMap iterable is not supported")}function n(e,n){if(!i(e)||!t.call(e,"_id"))throw TypeError(n+" method called on incompatible receiver "+typeof e)}function a(){return Math.random().toString().substring(2)}return r(e.prototype,"delete",function(e){if(n(this,"delete"),!i(e))return!1;var t=e[this._id];return!!t&&t[0]===e&&(delete e[this._id],!0)}),r(e.prototype,"get",function(e){if(n(this,"get"),i(e)){var t=e[this._id];if(t&&t[0]===e)return t[1]}}),r(e.prototype,"has",function(e){if(n(this,"has"),!i(e))return!1;var t=e[this._id];return!!t&&t[0]===e}),r(e.prototype,"set",function(e,t){if(n(this,"set"),!i(e))throw TypeError("Invalid value used as weak map key");var a=e[this._id];return a&&a[0]===e?a[1]=t:r(e,this._id,[e,t]),this}),r(e,"_polyfill",!0),e}()}function i(e){return Object(e)===e}}("undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:tZ);var tY=(i=o={exports:{}},o.exports,tZ[a="Promise"]=tZ[a]||function(){var e,t,n,r=Object.prototype.toString,i="undefined"!=typeof setImmediate?function(e){return setImmediate(e)}:setTimeout;try{Object.defineProperty({},"x",{}),e=function(e,t,n,r){return Object.defineProperty(e,t,{value:n,writable:!0,configurable:!1!==r})}}catch(t){e=function(e,t,n){return e[t]=n,e}}function a(e,r){n.add(e,r),t||(t=i(n.drain))}function o(e){var t,n=typeof e;return null!=e&&("object"==n||"function"==n)&&(t=e.then),"function"==typeof t&&t}function s(){for(var e=0;e<this.chain.length;e++)(function(e,t,n){var r,i;try{!1===t?n.reject(e.msg):(r=!0===t?e.msg:t.call(void 0,e.msg))===n.promise?n.reject(TypeError("Promise-chain cycle")):(i=o(r))?i.call(r,n.resolve,n.reject):n.resolve(r)}catch(e){n.reject(e)}})(this,1===this.state?this.chain[e].success:this.chain[e].failure,this.chain[e]);this.chain.length=0}function l(e){var t,n=this;if(!n.triggered){n.triggered=!0,n.def&&(n=n.def);try{(t=o(e))?a(function(){var r=new d(n);try{t.call(e,function(){l.apply(r,arguments)},function(){u.apply(r,arguments)})}catch(e){u.call(r,e)}}):(n.msg=e,n.state=1,n.chain.length>0&&a(s,n))}catch(e){u.call(new d(n),e)}}}function u(e){var t=this;!t.triggered&&(t.triggered=!0,t.def&&(t=t.def),t.msg=e,t.state=2,t.chain.length>0&&a(s,t))}function c(e,t,n,r){for(var i=0;i<t.length;i++)!function(i){e.resolve(t[i]).then(function(e){n(i,e)},r)}(i)}function d(e){this.def=e,this.triggered=!1}function h(e){this.promise=e,this.state=0,this.triggered=!1,this.chain=[],this.msg=void 0}function f(e){if("function"!=typeof e)throw TypeError("Not a function");if(0!==this.__NPO__)throw TypeError("Not a promise");this.__NPO__=1;var t=new h(this);this.then=function(e,n){var r={success:"function"!=typeof e||e,failure:"function"==typeof n&&n};return r.promise=new this.constructor(function(e,t){if("function"!=typeof e||"function"!=typeof t)throw TypeError("Not a function");r.resolve=e,r.reject=t}
25),t.chain.push(r),0!==t.state&&a(s,t),r.promise},this.catch=function(e){return this.then(void 0,e)};try{e.call(void 0,function(e){l.call(t,e)},function(e){u.call(t,e)})}catch(e){u.call(t,e)}}n=function(){var e,n,r;function i(e,t){this.fn=e,this.self=t,this.next=void 0}return{add:function(t,a){r=new i(t,a),n?n.next=r:e=r,n=r,r=void 0},drain:function(){var r=e;for(e=n=t=void 0;r;)r.fn.call(r.self),r=r.next}}}();var p=e({},"constructor",f,!1);return f.prototype=p,e(p,"__NPO__",0,!1),e(f,"resolve",function(e){return e&&"object"==typeof e&&1===e.__NPO__?e:new this(function(t,n){if("function"!=typeof t||"function"!=typeof n)throw TypeError("Not a function");t(e)})}),e(f,"reject",function(e){return new this(function(t,n){if("function"!=typeof t||"function"!=typeof n)throw TypeError("Not a function");n(e)})}),e(f,"all",function(e){var t=this;return"[object Array]"!=r.call(e)?t.reject(TypeError("Not an array")):0===e.length?t.resolve([]):new t(function(n,r){if("function"!=typeof n||"function"!=typeof r)throw TypeError("Not a function");var i=e.length,a=Array(i),o=0;c(t,e,function(e,t){a[e]=t,++o===i&&n(a)},r)})}),e(f,"race",function(e){var t=this;return"[object Array]"!=r.call(e)?t.reject(TypeError("Not an array")):new t(function(n,r){if("function"!=typeof n||"function"!=typeof r)throw TypeError("Not a function");c(t,e,function(e,t){n(t)},r)})}),f}(),i.exports&&(i.exports=tZ[a]),o.exports);let tX=new WeakMap;function tJ(e,t,n){let r=tX.get(e.element)||{};t in r||(r[t]=[]),r[t].push(n),tX.set(e.element,r)}function t0(e,t){return(tX.get(e.element)||{})[t]||[]}function t1(e,t,n){let r=tX.get(e.element)||{};if(!r[t])return!0;if(!n)return r[t]=[],tX.set(e.element,r),!0;let i=r[t].indexOf(n);return -1!==i&&r[t].splice(i,1),tX.set(e.element,r),r[t]&&0===r[t].length}function t2(e){if("string"==typeof e)try{e=JSON.parse(e)}catch(e){return console.warn(e),{}}return e}function t3(e,t,n){if(!e.element.contentWindow||!e.element.contentWindow.postMessage)return;let r={method:t};void 0!==n&&(r.value=n);let i=parseFloat(navigator.userAgent.toLowerCase().replace(/^.*msie (\d+).*$/,"$1"));i>=8&&i<10&&(r=JSON.stringify(r)),e.element.contentWindow.postMessage(r,e.origin)}let t4=["airplay","audio_tracks","audiotrack","autopause","autoplay","background","byline","cc","chapter_id","chapters","chromecast","color","colors","controls","dnt","end_time","fullscreen","height","id","initial_quality","interactive_params","keyboard","loop","maxheight","max_quality","maxwidth","min_quality","muted","play_button_position","playsinline","portrait","preload","progress_bar","quality","quality_selector","responsive","skipping_forward","speed","start_time","texttrack","thumbnail_id","title","transcript","transparent","unmute_button","url","vimeo_logo","volume","watch_full_video","width"];function t5(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return t4.reduce((t,n)=>{let r=e.getAttribute(`data-vimeo-${n}`);return(r||""===r)&&(t[n]=""===r?1:r),t},t)}function t8(e,t){let{html:n}=e;if(!t)throw TypeError("An element must be provided");if(null!==t.getAttribute("data-vimeo-initialized"))return t.querySelector("iframe");let r=document.createElement("div");return r.innerHTML=n,t.appendChild(r.firstChild),t.setAttribute("data-vimeo-initialized","true"),t.querySelector("iframe")}function t6(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;return new Promise((r,i)=>{if(!tq(e))throw TypeError(`“${e}” is not a vimeo.com url.`);let a=function(e){let t=(e||"").match(/^(?:https?:)?(?:\/\/)?([^/?]+)/),n=(t&&t[1]||"").replace("player.","");for(let e of[".videoji.hk",".vimeo.work",".videoji.cn"])if(n.endsWith(e))return n;return"vimeo.com"}(e),o=`https://${a}/api/oembed.json?url=${encodeURIComponent(e)}`;for(let e in t)t.hasOwnProperty(e)&&(o+=`&${e}=${encodeURIComponent(t[e])}`);let s="XDomainRequest"in window?new XDomainRequest:new XMLHttpRequest;s.open("GET",o,!0),s.onload=function(){if(404===s.status){i(Error(`“${e}” was not found.`));return}if(403===s.status){i(Error(`“${e}” is not embeddable.`));return}try{let t=JSON.parse(s.responseText);if(403===t.domain_status_code){t8(t,n),i(Error(`“${e}” is not embeddable.`));return}r(t)}catch(e){i(e)}},s.onerror=function(){let e=s.status?` (${s.status})`:"";i(Error(`There was an error fetching the embed code from Vimeo${e}.`))},s.send()})}let t9={role:"viewer",autoPlayMuted:!0,allowedDrift:.3,maxAllowedDrift:1,minCheckInterval:.1,maxRateAdjustment:.2,maxTimeToCatchUp:1};
25class t7 extends EventTarget{logger;constructor(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3?arguments[3]:void 0;super(),this.logger=r,this.init(t,e,{...t9,...n})}disconnect(){this.dispatchEvent(new Event("disconnect"))}async init(e,t,n){if(await this.waitForTOReadyState(e,"open"),"viewer"===n.role){await this.updatePlayer(e,t,n);let r=tG(e,"change",()=>this.updatePlayer(e,t,n)),i=this.maintainPlaybackPosition(e,t,n);this.addEventListener("disconnect",()=>{i.cancel(),r.cancel()})}else{await this.updateTimingObject(e,t);let n=tG(t,["seeked","play","pause","ratechange"],()=>this.updateTimingObject(e,t),"on","off");this.addEventListener("disconnect",()=>n.cancel())}}async updateTimingObject(e,t){let[n,r,i]=await Promise.all([t.getCurrentTime(),t.getPaused(),t.getPlaybackRate()]);e.update({position:n,velocity:r?0:i})}async updatePlayer(e,t,n){let{position:r,velocity:i}=e.query();"number"==typeof r&&t.setCurrentTime(r),"number"==typeof i&&(0===i?await t.getPaused()===!1&&t.pause():i>0&&(await t.getPaused()===!0&&(await t.play().catch(async e=>{"NotAllowedError"===e.name&&n.autoPlayMuted&&(await t.setMuted(!0),await t.play().catch(e=>console.error("Couldn't play the video from TimingSrcConnector. Error:",e)))}),this.updatePlayer(e,t,n)),await t.getPlaybackRate()!==i&&t.setPlaybackRate(i)))}maintainPlaybackPosition(e,t,n){let{allowedDrift:r,maxAllowedDrift:i,minCheckInterval:a,maxRateAdjustment:o,maxTimeToCatchUp:s}=n,l=async()=>{if(0===e.query().velocity||await t.getPaused()===!0)return;let n=e.query().position-await t.getCurrentTime(),a=Math.abs(n);if(this.log(`Drift: ${n}`),a>i)await this.adjustSpeed(t,0),t.setCurrentTime(e.query().position),this.log("Resync by currentTime");else if(a>r){let e=a/s;await this.adjustSpeed(t,(e<o?(o-e)/2:o)*Math.sign(n)),this.log("Resync by playbackRate")}},u=setInterval(()=>l(),1e3*Math.min(s,Math.max(a,i)));return{cancel:()=>clearInterval(u)}}log(e){this.logger?.(`TimingSrcConnector: ${e}`)}speedAdjustment=0;adjustSpeed=async(e,t)=>{if(this.speedAdjustment===t)return;let n=await e.getPlaybackRate()-this.speedAdjustment+t;this.log(`New playbackRate:  ${n}`),await e.setPlaybackRate(n),this.speedAdjustment=t};waitForTOReadyState(e,t){return new Promise(n=>{let r=()=>{e.readyState===t?n():e.addEventListener("readystatechange",r,{once:!0})};r()})}}let ne=new WeakMap,nt=new WeakMap,nn={};class nr{constructor(e){var t;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(window.jQuery&&e instanceof jQuery&&(e.length>1&&window.console&&console.warn&&console.warn("A jQuery object with multiple elements was passed, using the first element."),e=e[0]),"undefined"!=typeof document&&"string"==typeof e&&(e=document.getElementById(e)),!((t=e)&&1===t.nodeType&&"nodeName"in t&&t.ownerDocument&&t.ownerDocument.defaultView))throw TypeError("You must pass either a valid element or a valid id.");if("IFRAME"!==e.nodeName){let t=e.querySelector("iframe");t&&(e=t)}if("IFRAME"===e.nodeName&&!tq(e.getAttribute("src")||""))throw Error("The player element passed isn’t a Vimeo embed.");if(ne.has(e))return ne.get(e);this._window=e.ownerDocument.defaultView,this.element=e,this.origin="*";let r=new tY((t,r)=>{if(this._onMessage=e=>{if(!tq(e.origin)||this.element.contentWindow!==e.source)return;"*"===this.origin&&(this.origin=e.origin);let n=t2(e.data);if(n&&"error"===n.event&&n.data&&"ready"===n.data.method){let e=Error(n.data.message);e.name=n.data.name,r(e);return}let i=n&&"ready"===n.event,a=n&&"ping"===n.method;if(i||a){this.element.setAttribute("data-ready","true"),t();return}!function(e,t){let n;t=t2(t);let r=[];if(t.event)"error"===t.event&&t0(e,t.data.method).forEach(n=>{let r=Error(t.data.message);r.name=t.data.name,n.reject(r),t1(e,t.data.method,n)}),r=t0(e,`event:${t.event}`),n=t.data;else if(t.method){let i=function(e,t){let n=t0(e,t);if(n.length<1)return!1;let r=n.shift();return t1(e,t,r),r}(e,t.method);i&&(r.push(i),n=t.value)}r.forEach(t=>{try{if("function"==typeof t){t.call(e,n);return}t.resolve(n)}catch(e){}})}(this,n)},this._window.addEventListener("message",this._onMessage),"IFRAME"!==this.element.nodeName){let t=t5(e,n);t6(tH(t),t,e).then(t=>{let n=t8(t,e);return this.element=n,this._originalElement=e,!function(e,t){let n=tX.get(e);tX.set(t,n),tX.delete(e)}(e,n),ne.set(this.element,this),t}).catch(r)}});if(nt.set(this,r),ne.set(this.element,this),"IFRAME"===this.element.nodeName&&t3(this,"ping"),nn.isEnabled){let e=()=>nn.exit();this.fullscreenchangeHandler=()=>{nn.isFullscreen?tJ(this,"event:exitFullscreen",e):t1(this,"event:exitFullscreen",e),this.ready().then(()=>{t3(this,"fullscreenchange",nn.isFullscreen)})},nn.on("fullscreenchange",this.fullscreenchangeHandler)}return this}static isVimeoUrl(e){return tq(e)}callMethod(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];
25if(null==e)throw TypeError("You must pass a method name.");return new tY((t,r)=>this.ready().then(()=>{tJ(this,e,{resolve:t,reject:r}),0===n.length?n={}:1===n.length&&(n=n[0]),t3(this,e,n)}).catch(r))}get(e){return new tY((t,n)=>(e=tz(e,"get"),this.ready().then(()=>{tJ(this,e,{resolve:t,reject:n}),t3(this,e)}).catch(n)))}set(e,t){return new tY((n,r)=>{if(e=tz(e,"set"),null==t)throw TypeError("There must be a value to set.");return this.ready().then(()=>{tJ(this,e,{resolve:n,reject:r}),t3(this,e,t)}).catch(r)})}on(e,t){if(!e)throw TypeError("You must pass an event name.");if(!t)throw TypeError("You must pass a callback function.");if("function"!=typeof t)throw TypeError("The callback must be a function.");0===t0(this,`event:${e}`).length&&this.callMethod("addEventListener",e).catch(()=>{}),tJ(this,`event:${e}`,t)}off(e,t){if(!e)throw TypeError("You must pass an event name.");if(t&&"function"!=typeof t)throw TypeError("The callback must be a function.");t1(this,`event:${e}`,t)&&this.callMethod("removeEventListener",e).catch(e=>{})}loadVideo(e){return this.callMethod("loadVideo",e)}ready(){let e=nt.get(this)||new tY((e,t)=>{t(Error("Unknown player. Probably unloaded."))});return tY.resolve(e)}addCuePoint(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.callMethod("addCuePoint",{time:e,data:t})}removeCuePoint(e){return this.callMethod("removeCuePoint",e)}enableTextTrack(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=!(arguments.length>2)||void 0===arguments[2]||arguments[2];if(!e)throw TypeError("You must pass a language.");return this.callMethod("enableTextTrack",{language:e,kind:t,showing:n})}disableTextTrack(){return this.callMethod("disableTextTrack")}selectAudioTrack(e,t){if(!e)throw TypeError("You must pass a language.");return this.callMethod("selectAudioTrack",{language:e,kind:t})}selectDefaultAudioTrack(){return this.callMethod("selectDefaultAudioTrack")}pause(){return this.callMethod("pause")}play(){return this.callMethod("play")}requestFullscreen(){return nn.isEnabled?nn.request(this.element):this.callMethod("requestFullscreen")}exitFullscreen(){return nn.isEnabled?nn.exit():this.callMethod("exitFullscreen")}getFullscreen(){return nn.isEnabled?tY.resolve(nn.isFullscreen):this.get("fullscreen")}requestPictureInPicture(){return this.callMethod("requestPictureInPicture")}exitPictureInPicture(){return this.callMethod("exitPictureInPicture")}getPictureInPicture(){return this.get("pictureInPicture")}remotePlaybackPrompt(){return this.callMethod("remotePlaybackPrompt")}unload(){return this.callMethod("unload")}destroy(){return new tY(e=>{if(nt.delete(this),ne.delete(this.element),this._originalElement&&(ne.delete(this._originalElement),this._originalElement.removeAttribute("data-vimeo-initialized")),this.element&&"IFRAME"===this.element.nodeName&&this.element.parentNode&&(this.element.parentNode.parentNode&&this._originalElement&&this._originalElement!==this.element.parentNode?this.element.parentNode.parentNode.removeChild(this.element.parentNode):this.element.parentNode.removeChild(this.element)),this.element&&"DIV"===this.element.nodeName&&this.element.parentNode){this.element.removeAttribute("data-vimeo-initialized");let e=this.element.querySelector("iframe");e&&e.parentNode&&(e.parentNode.parentNode&&this._originalElement&&this._originalElement!==e.parentNode?e.parentNode.parentNode.removeChild(e.parentNode):e.parentNode.removeChild(e))}this._window.removeEventListener("message",this._onMessage),nn.isEnabled&&nn.off("fullscreenchange",this.fullscreenchangeHandler),e()})}getAutopause(){return this.get("autopause")}setAutopause(e){return this.set("autopause",e)}getBuffered(){return this.get("buffered")}getCameraProps(){return this.get("cameraProps")}setCameraProps(e){return this.set("cameraProps",e)}getChapters(){return this.get("chapters")}getCurrentChapter(){return this.get("currentChapter")}getColor(){return this.get("color")}getColors(){return tY.all([this.get("colorOne"),this.get("colorTwo"),this.get("colorThree"),this.get("colorFour")])}setColor(e){return this.set("color",e)}setColors(e){if(!Array.isArray(e))return new tY((e,t)=>t(TypeError("Argument must be an array.")));let t=new tY(e=>e(null)),n=[e[0]?this.set("colorOne",e[0]):t,e[1]?this.set("colorTwo",e[1]):t,e[2]?this.set("colorThree",e[2]):t,e[3]?this.set("colorFour",e[3]):t];return tY.all(n)}getCuePoints(){return this.get("cuePoints")}getCurrentTime(){return this.get("currentTime")}setCurrentTime(e){return this.set("currentTime",e)}
25getDuration(){return this.get("duration")}getEnded(){return this.get("ended")}getLoop(){return this.get("loop")}setLoop(e){return this.set("loop",e)}setMuted(e){return this.set("muted",e)}getMuted(){return this.get("muted")}getPaused(){return this.get("paused")}getPlaybackRate(){return this.get("playbackRate")}setPlaybackRate(e){return this.set("playbackRate",e)}getPlayed(){return this.get("played")}getQualities(){return this.get("qualities")}getQuality(){return this.get("quality")}setQuality(e){return this.set("quality",e)}getRemotePlaybackAvailability(){return this.get("remotePlaybackAvailability")}getRemotePlaybackState(){return this.get("remotePlaybackState")}getSeekable(){return this.get("seekable")}getSeeking(){return this.get("seeking")}getTextTracks(){return this.get("textTracks")}getAudioTracks(){return this.get("audioTracks")}getEnabledAudioTrack(){return this.get("enabledAudioTrack")}getDefaultAudioTrack(){return this.get("defaultAudioTrack")}getVideoEmbedCode(){return this.get("videoEmbedCode")}getVideoId(){return this.get("videoId")}getVideoTitle(){return this.get("videoTitle")}getVideoWidth(){return this.get("videoWidth")}getVideoHeight(){return this.get("videoHeight")}getVideoUrl(){return this.get("videoUrl")}getVolume(){return this.get("volume")}setVolume(e){return this.set("volume",e)}async setTimingSrc(e,t){if(!e)throw TypeError("A Timing Object must be provided.");await this.ready();let n=new t7(this,e,t);return t3(this,"notifyTimingObjectConnect"),n.addEventListener("disconnect",()=>t3(this,"notifyTimingObjectDisconnect")),n}}tV||(nn=function(){let e=function(){let e;let t=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror"],["webkitRequestFullScreen","webkitCancelFullScreen","webkitCurrentFullScreenElement","webkitCancelFullScreen","webkitfullscreenchange","webkitfullscreenerror"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError"]],n=0,r=t.length,i={};for(;n<r;n++)if((e=t[n])&&e[1]in document){for(n=0;n<e.length;n++)i[t[0][n]]=e[n];return i}return!1}(),t={fullscreenchange:e.fullscreenchange,fullscreenerror:e.fullscreenerror},n={request:t=>new Promise((r,i)=>{let a=function(){n.off("fullscreenchange",a),r()};n.on("fullscreenchange",a);let o=(t=t||document.documentElement)[e.requestFullscreen]();o instanceof Promise&&o.then(a).catch(i)}),exit:()=>new Promise((t,r)=>{if(!n.isFullscreen){t();return}let i=function(){n.off("fullscreenchange",i),t()};n.on("fullscreenchange",i);let a=document[e.exitFullscreen]();a instanceof Promise&&a.then(i).catch(r)}),on(e,n){let r=t[e];r&&document.addEventListener(r,n)},off(e,n){let r=t[e];r&&document.removeEventListener(r,n)}};return Object.defineProperties(n,{isFullscreen:{get:()=>!!document[e.fullscreenElement]},element:{enumerable:!0,get:()=>document[e.fullscreenElement]},isEnabled:{enumerable:!0,get:()=>!!document[e.fullscreenEnabled]}}),n}(),function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document,t=[].slice.call(e.querySelectorAll("[data-vimeo-id], [data-vimeo-url]")),n=e=>{"console"in window&&console.error&&console.error(`There was an error creating an embed: ${e}`)};t.forEach(e=>{try{if(null!==e.getAttribute("data-vimeo-defer"))return;let t=t5(e),r=tH(t);t6(r,t,e).then(t=>t8(t,e)).catch(n)}catch(e){n(e)}})}(),function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document;window.VimeoPlayerResizeEmbeds_||(window.VimeoPlayerResizeEmbeds_=!0,window.addEventListener("message",t=>{if(!tq(t.origin)||!t.data||"spacechange"!==t.data.event)return;let n=t.source?tK(t.source,e):null;n&&(n.parentElement.style.paddingBottom=`${t.data.data[0].bottom}px`)}))}(),function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document;window.VimeoSeoMetadataAppended||(window.VimeoSeoMetadataAppended=!0,window.addEventListener("message",t=>{if(!tq(t.origin))return;let n=t2(t.data);if(!n||"ready"!==n.event)return;let r=t.source?tK(t.source,e):null;r&&tQ(r.src)&&new nr(r).callMethod("appendVideoMetadata",window.location.href)}))}(),function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document;if(window.VimeoCheckedUrlTimeParam)return;
25window.VimeoCheckedUrlTimeParam=!0;let t=e=>{"console"in window&&console.error&&console.error(`There was an error getting video Id: ${e}`)};window.addEventListener("message",n=>{if(!tq(n.origin))return;let r=t2(n.data);if(!r||"ready"!==r.event)return;let i=n.source?tK(n.source,e):null;if(i&&tQ(i.src)){let e=new nr(i);e.getVideoId().then(t=>{let n=RegExp(`[?&]vimeo_t_${t}=([^&#]*)`).exec(window.location.href);if(n&&n[1]){let t=decodeURI(n[1]);e.setCurrentTime(t)}}).catch(t)}})}(),window.VimeoDRMEmbedsUpdated||(window.VimeoDRMEmbedsUpdated=!0,window.addEventListener("message",e=>{if(!tq(e.origin))return;let t=t2(e.data);if(!t||"drminitfailed"!==t.event)return;let n=e.source?tK(e.source):null;if(!n)return;let r=n.getAttribute("allow")||"";if(!r.includes("encrypted-media")){n.setAttribute("allow",`${r}; encrypted-media`);let e=new URL(n.getAttribute("src"));e.searchParams.set("forcereload","drm"),n.setAttribute("src",e.toString());return}})));let ni=e=>{let t=e.toLowerCase();return t.includes("youtube.com")||t.includes("youtu.be")?"youtube":t.includes("vimeo.com")?"vimeo":t.includes("dailymotion.com")||t.includes("dai.ly")?"dailymotion":"unknown"},na=e=>{let{url:t,width:n,height:r,previewUrl:i,autoplay:a}=e,[o,u]=(0,l.useState)(null!=a&&a);return o?(0,s.jsx)("iframe",{src:(e=>{let t=e.match(/(?:video\/|dai\.ly\/|player\.html\?video=)([a-zA-Z0-9]+)/);if(!t)return e;let n=new URLSearchParams({video:t[1],api:"postMessage","endscreen-enable":"0"});return"https://geo.dailymotion.com/player.html?".concat(n.toString())})(t),width:n,height:r,allow:"autoplay; fullscreen",allowFullScreen:!0,style:{border:"none"}}):(0,s.jsxs)("div",{onClick:()=>u(!0),style:{width:n,height:r,cursor:"pointer",position:"relative",background:"#000",overflow:"hidden"},children:[i&&(0,s.jsx)("img",{src:i,alt:"Video preview",style:{width:"100%",height:"100%",objectFit:"cover",opacity:.8}}),(0,s.jsx)("div",{style:{position:"absolute",inset:0,display:"flex",alignItems:"center",justifyContent:"center"},children:(0,s.jsx)(tM.Z,{name:"play",style:{color:"white",transform:"scale(2)",transformOrigin:"center"}})})]})},no=e=>{let{url:t,width:n,height:r,autoplay:i,onPlay:a,onEnd:o}=e,u=(0,l.useRef)(null),c=(0,l.useRef)(null);return(0,l.useEffect)(()=>{if(u.current)return c.current=new nr(u.current),c.current.on("play",()=>null==a?void 0:a()),c.current.on("ended",()=>null==o?void 0:o()),()=>{var e,t;null===(t=c.current)||void 0===t||null===(e=t.destroy)||void 0===e||e.call(t)}},[t]),(0,s.jsx)("iframe",{ref:u,src:(e=>{let t=e.includes("?")?"&":"?";return i?"".concat(e).concat(t,"autoplay=1"):e})(t),width:n,height:r,allow:"autoplay; fullscreen;",allowFullScreen:!0,style:{border:"none"}})},ns=e=>{let{embedUrl:t,blocId:n,autoplay:r,previewUrl:i}=e,[a,o]=(0,l.useState)(!1);if(!t)return(0,s.jsx)("span",{});let[u]=(0,l.useState)(n.endsWith("videoPrincipale")?"-"+Date.now():void 0),c=ni(t),d="youtube"===c,h="vimeo"===c,f="dailymotion"===c,p=(0,_.K3)({store:T.ZP.store,keys:[],fn:e=>{let{status:t}=e;return t}}),m=tk("ytplayer-".concat(n)+u),g=(()=>{if(d){let e=t.includes("?")?"&":"?";return"".concat(t).concat(e,"enablejsapi=1")}return t})();(0,l.useEffect)(()=>{d&&(("PLAYING"===m.status||r)&&(["loading","playing"].includes(p)?(T.ZP.actions.stop(),o(!0)):o(!1)),"ENDED"===m.status&&a&&T.ZP.actions.play())},[m.status,r,d]),(0,l.useEffect)(()=>{d&&"playing"===p&&"PLAYING"===m.status&&m.player&&m.player.pauseVideo()},[p,d]);let v=()=>{["loading","playing"].includes(p)&&(T.ZP.actions.stop(),o(!0))},y=()=>{a&&(T.ZP.actions.play(),o(!1))};return(0,s.jsx)(tI,{id:n,heightRatio:9/16,children:e=>f?(0,s.jsx)(na,{url:g,width:e.width,height:e.height,previewUrl:i,autoplay:r}):h?(0,s.jsx)(no,{url:g,width:e.width,height:e.height,autoplay:r,onPlay:v,onEnd:y}):(0,s.jsx)(tP(),{url:g,playing:null!=r&&r,width:e.width,height:e.height,controls:!0})})};var nl=e=>e.embedUrl?(0,s.jsx)(tD,{category:"video",maxDeniedWidth:"500",children:(0,s.jsx)(ns,{...e})}):(0,s.jsx)("span",{}),nu=n(4343),nc=n(4423);let nd={q:"",loading:!1,itemsByPage:20},nh=(0,A.MT)(nd),nf=(0,A.yM)("setResultsEvent"),np=(0,A.yM)("searchEvent"),nm=(0,A.yM)("loadM
25ore"),ng=0;nh.on(np,(e,t)=>{let{q:n}=t;if(S.Z.SSR)return e;if(r&&(clearTimeout(r),r=void 0),!n)return nd;{let e=++ng;r=setTimeout(()=>{h.ZP.search.search((0,f.XF)(),n).then(t=>{e===ng&&nf(t)}).catch(()=>{})},300)}return{...e,q:n,loading:!0}}),nh.on(nm,e=>{var t;let n=null===(t=e.results)||void 0===t?void 0:t.items;return n?(h.ZP.search.search((0,f.XF)(),e.q,n.length).then(e=>{var t;e.items&&(null===(t=nh.getState().results)||void 0===t?void 0:t.items)===n&&nf({...e,items:[...n,...e.items]})}).catch(()=>{}),{...e,loading:!0}):e}),nh.on(nf,(e,t)=>(r=setTimeout(()=>{(0,C.hQ)("internal_search_result_click",{ise_keyword:e.q,ise_page:"1"})},3e3),{...e,results:t,loading:!1}));let nv={searchEvent:np,loadMoreEvents:nm};var ny={aries:{label:"B\xe9lier",keyword:"belier"},taurus:{label:"Taureau",keyword:"taureau"},gemini:{label:"G\xe9meaux",keyword:"gemeaux"},cancer:{label:"Cancer",keyword:"cancer"},leo:{label:"Lion",keyword:"lion"},virgo:{label:"Vierge",keyword:"vierge"},libra:{label:"Balance",keyword:"balance"},scorpio:{label:"Scorpion",keyword:"scorpion"},sagittarius:{label:"Sagittaire",keyword:"sagittaire"},capricorn:{label:"Capricorne",keyword:"capricorne"},aquarius:{label:"Verseau",keyword:"verseau"},pisces:{label:"Poissons",keyword:"poissons"}};let nb=e=>{let{title:t,description:n}=e;return(0,s.jsxs)("div",{style:{marginTop:50},children:[t&&(0,s.jsx)(c.Z,{title:t}),n&&(0,s.jsx)("span",{dangerouslySetInnerHTML:{__html:n}})]})};var nA=e=>{let{dailyHoroscopes:t,weeklyHoroscopes:n,sign:r,description:i,blocId:a}=e,o=(null==t?void 0:t.length)?t.find(e=>e.sign===r):void 0,l=(null==n?void 0:n.length)?n.find(e=>e.sign===r):void 0,u=Object.keys(ny);return(0,s.jsxs)("div",{className:"block",id:a,children:[o&&(0,s.jsx)(nb,{title:o.title,description:o.description}),l&&(0,s.jsx)(nb,{title:l.title,description:l.description}),(0,s.jsx)("span",{children:i||"Cliquez sur votre signe pour voir ce que la journ\xe9e vous r\xe9serve !"}),(0,s.jsx)("div",{style:{display:"flex",flexWrap:"wrap",marginTop:30},children:u.map(e=>(0,s.jsx)("div",{style:{margin:10},children:(0,s.jsx)(k.Z,{status:e===r?"disabled":"active",label:ny[e].label,linkHref:"/horoscope?signe=".concat(ny[e].keyword),color:e===r?"light":"primary"})},e))})]})};let nE={0:"Dimanche",1:"Lundi",2:"Mardi",3:"Mercredi",4:"Jeudi",5:"Vendredi",6:"Samedi"},nw=(e,t,n)=>{var r;let i=(0,eo.Z)(new Date,n).getHours().toString()+((r=new Date().getMinutes().toString()).length<2?"0":"")+r;return parseInt(i)>parseInt(e)&&parseInt(i)<parseInt(t)},nx=(e,t,n,r)=>e.map(e=>{var i,a;let o=e.imagePrincipale&&e.imagePrincipale.medias&&(null===(i=(0,g.nv)(e.imagePrincipale.medias,t||"large"))||void 0===i?void 0:i.url);return{title:n.includes("title")?(0,v.ew)(e.title||""):void 0,time:n.includes("hours")?"".concat(e.startHours,"h").concat(e.startMinutes," - ").concat(e.endHours,"h").concat(e.endMinutes):void 0,imageSrc:o,imageAlt:e.imagePrincipale&&e.imagePrincipale.specificAttributes&&e.imagePrincipale.specificAttributes.alternativeText||"",lead:n.includes("animators")&&(null===(a=e.animatorsNames)||void 0===a?void 0:a.length)?"Avec ".concat(e.animatorsNames.join(", ")):void 0,secondLead:n.includes("chapo")?(0,v.CL)(e.chapo||""):void 0,linkHref:e.slug,playing:nw(e.startHours+e.startMinutes,e.endHours+e.endMinutes,r)}}),nT=e=>e.split(/[?#]/)[0],nS=S.Z.SSR,n_=S.Z.SSR,nC=S.Z.SSR,nk=()=>{{n_=!0;let e=document.createElement("script");e.setAttribute("src","https://www.instagram.com/embed.js"),e.async=!0,document.body.appendChild(e)}},nI=()=>{{nS=!0;let e=document.createElement("script");e.setAttribute("src","https://connect.facebook.net/fr_FR/sdk.js#xfbml=1&version=v14.0"),e.async=!0,e.defer=!0,e.setAttribute("crossOrigin","anonymous"),document.body.appendChild(e)}},nL=()=>{{nC=!0;let e=document.createElement("script");e.setAttribute("src","https://platform.twitter.com/widgets.js"),e.async=!0,e.setAttribute("charSet","utf-8"),document.body.appendChild(e)}},nP=e=>{let{url:t,liftType:n,width:r}=e,i={post:{showText:!0},page:{hideCover:!1,showFacepile:!1,tabs:"timeline",smallHeader:!0}};return((0,l.useEffect)(()=>{nS||nI()},[]),(0,l.useEffect)(()=>{window.FB&&requestAnimationFrame(()=>{var e;null===(e=window.FB)||void 0===e||e.XFBML.parse()})},[t]),"post"===n)?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{id:"fb-root"}),(0,s.jsx)("div",{className:t.includes("/watch")?"fb-video":"fb-post",style:{width:r},"data-href":t,"data-width":r,"data-show-text":i[n].showText,"data-adapt-container-width":!0})]}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{id:"fb-root"}),(0,s.jsx)("div",{className:"fb-like-box","data-href":t,"data-width":r,"data-height":750,"data-tabs":i[n].tabs,"data-small-header":i[n].smallHeader,"data-adapt-container-width":!0,"data-hide-cover":i[n].hideCover,"data-show-facepile":i[n].showFacepile,"data-colorscheme":"light","data-stream":"true","data-show-border":"false"})]})},nO=e=>{let{url:t,liftType:n,width:r,height:i}=e,a=(t=nT(t))+(t.endsWith("/")?"":"/")+"embed/captioned";if((0,l.useEffect)(()=>{n_||nk()},[]),(0,l.useEffect)(()=>{window.instgrm&&window.instgrm.Embeds.process()},[t,n_]),"post"!==n)return(0,s.jsx)(s.Fragment,{});{let e={container:{position:"relative",width:r>550?550:r,height:i>630?630:i<400?400:i},iframe:{position:"absolute",top:0,left:0,width:"100%",height:"100%",border:"none",overflow:"hidden",maxWidth:550}};return(0,s.jsx)("div",{style:e.container,children:(0,s.jsx)("iframe",{style:e.iframe,src:a,scrolling:void 0,frameBorder:0,allowFullScreen:!0,allow:"autoplay; clipboard-write; encrypted-media; picture-in-picture; web-share",allowTransparency:!0})})}},nR=e=>{let{url:t,liftType:n,width:r}=e,i=(t.endsWith("/")?t.slice(0,-1):t)+"?ref_src=twsrc%5Etfw";i=i.includes("x.com")?i.replace("x.com","twitter.com"):i;let a=(0,l.useContext)(f.lv),o={width:r,theme:"dark"===h.ZP.mode(a)?"dark":"light",lang:"fr"};return((0,l.useEffect)(()=>
25{if(nC){var e;null===(e=window.twttr)||void 0===e||e.widgets.load()}else nL()},[]),"post"===n)?(0,s.jsx)("blockquote",{className:"twitter-tweet",lang:o.lang,children:(0,s.jsx)("a",{href:i,"data-width":o.width})}):(0,s.jsx)("a",{className:"twitter-timeline",href:i,"data-width":o.width,"data-height":600,"data-theme":o.theme})},nD=e=>{let{url:t,liftType:n}=e,r={href:"post"===n?t.substring(t.lastIndexOf("/")+1):t.replace("https://www.tiktok.com/","https://www.tiktok.com/embed/")+"?refer=creator_embed"};return"post"===n?(0,s.jsxs)("div",{className:"tiktokPost",style:{maxWidth:"100%",width:"310px",boxSizing:"border-box",overflow:"hidden",height:"751px",borderRadius:"5px"},children:[(0,s.jsx)("blockquote",{className:"tiktok-embed",cite:t,"data-embed-from":"oembed"}),(0,s.jsx)("script",{async:!0,src:"https://www.tiktok.com/embed.js"}),(0,s.jsx)("iframe",{width:"310",height:"751",src:"https://www.tiktok.com/embed/v2/".concat(r.href,"?height=500"),frameBorder:"0",allowFullScreen:!0,allow:"encrypted-media;"})]}):(0,s.jsxs)("div",{className:"tiktokProfil",style:{maxWidth:"100%",width:"570px",height:"452px",borderRadius:"8px",boxSizing:"border-box",overflow:"hidden"},children:[(0,s.jsx)("script",{async:!0,src:"https://www.tiktok.com/embed.js"}),(0,s.jsx)("iframe",{width:"570",height:"452",src:r.href,frameBorder:"0",allowFullScreen:!0,allow:"encrypted-media;"})]})};var nN=n(8185),nM=n(3681);let nj=e=>{let{position:t}=e;return(0,s.jsx)("span",{className:"badge badge--light order",children:(0,s.jsx)("span",{className:"text",children:"#".concat(t)})})},nF=tc.xF;var nB=e=>{let{title:t,titles:n,rounded:r,blocId:i,page:a}=e,[o,d]=l.useState(),h=(0,_.oR)(T.h).idMds,p=(0,l.useContext)(f.lv);return l.useEffect(()=>{d((0,nM.qx)(p,h))},[h]),(0,s.jsxs)("div",{className:"block Playlists",id:i,children:[(0,s.jsx)(c.Z,{title:t}),(0,s.jsx)("div",{className:"row row-alt-1 gutters-md grid",children:n.map((e,t)=>(0,s.jsx)("div",{className:"col-1",children:(0,s.jsx)(u.Z,{imageAlt:e.title,artist:e.artist,album:e.title.toLocaleLowerCase(),imageUrl:e.coverUrl||(0,g.tB)(o,"medium",void 0,{background:"c6c6c6"})||nF,imageUrlOnError:(0,g.tB)(o,"medium",void 0,{background:"c6c6c6"})||nF,orientation:"row",topLeftCornerOverlay:(0,s.jsx)(nj,{position:t+1}),rounded:r,actions:(0,s.jsx)(nN.Z,{title:e,page:a})})},t))})]})},nU=n(8578),nV=n(2489),nz=e=>{let{days:t,hours:n,minutes:r,seconds:i,showSubtitle:a,subtitle:o,name:l,isEventPage:u,eventSlug:c,takeEventName:d,titleBorderColor:h}=e,f=(0,p.S)().rossel;return(0,s.jsx)("div",{className:"event",children:(0,s.jsxs)("div",{className:"event-container",children:[a&&o&&(0,s.jsx)("div",{className:"event-subtitle",children:o}),d&&(0,s.jsx)("h1",{className:"event-title",style:{borderTop:"6px solid ".concat(h),borderBottom:"6px solid ".concat(h)},children:l}),(0,s.jsxs)("div",{className:"event-countdown",children:[t>=1&&(0,s.jsxs)("div",{className:"event-countdown-item",children:[(0,s.jsx)("span",{className:"event-countdown-value",children:t}),(0,s.jsx)("span",{className:"event-countdown-legend",children:t<=1?"Jour":"Jours"})]}),n>=1&&(0,s.jsxs)("div",{className:"event-countdown-item",children:[(0,s.jsx)("span",{className:"event-countdown-value",children:n}),(0,s.jsx)("span",{className:"event-countdown-legend",children:n<=1?"Heure":"Heures"})]}),(0,s.jsxs)("div",{className:"event-countdown-item",children:[(0,s.jsx)("span",{className:"event-countdown-value",children:r}),(0,s.jsx)("span",{className:"event-countdown-legend",children:r<=1?"Minute":"Minutes"})]}),(0,s.jsxs)("div",{className:"event-countdown-item",children:[(0,s.jsx)("span",{className:"event-countdown-value",children:i}),(0,s.jsx)("span",{className:"event-countdown-legend",children:i<=1?"Seconde":"Secondes"})]})]}),!u&&(0,s.jsx)("div",{className:"event-action ".concat(f?" customButton "
25:""),children:(0,s.jsx)("a",{href:c,title:"",className:"btn btn-block btn--primary",children:(0,s.jsx)("span",{className:"text",children:"Voir plus"})})})]})})},nq=n(4002),nQ=n(1713),nH=n(365),nG=n(1257),nK=e=>{var t;let{stream:n,idMds:r,hasStopButton:i,hasMinified:a,page:o,slider:u}=e,[c,d]=(0,l.useState)(),h=(0,_.oR)(T.ZP.store),p=(0,l.useContext)(f.lv),m=()=>{C.cR({type_player:(0,nG.Vd)(p,n.id)?"Webradio":"Radio",position_player:"Body",radio_id:n.id,radio_name:n.label,page_id:o.id,page_name:o.name,page_url:o.canonical||window.location.href,page:o})},v=r!==h.idMds||"stopped"===h.status||"idle"===h.status||i&&"playing"===h.status;(0,l.useEffect)(()=>nH.Z.subscribe(r,e=>{let{artist:t,title:n,imageUrl:r}=e;d({artist:t,title:n,imageUrl:r})}),[]);let y=e=>{e.preventDefault(),T.ZP.actions.setMedia({id:n.id,type:"RADIO"===n.type?"radio":"webradio",play:!0,idMds:n.idMds,imageUrl:n.imageUrl,altCover:n.altCover,hasStartOver:n.hasStartOver,soundcastEnabled:n.soundcastEnabled,...(0,nG.hL)(n)}),m()},b=(null==c?void 0:c.imageUrl)||n.altCover||n.imageUrl;return(0,s.jsx)("div",{className:"col-10 col-md-2 titresMultifluxSliderItem",children:(0,s.jsxs)("div",{className:"webradio".concat(u?" slider":"").concat(a?" minified":""),style:{display:"table-cell"},children:[a?(0,s.jsx)(tn.Z,{imageUrl:(0,g.tB)(b),imageUrlOnError:n.imageUrl||tc.xF,topLeftCornerOverlay:(0,s.jsx)("img",{className:"broadcast-webradio-logo",src:(0,g.tB)(n.imageUrl,"small"),alt:"Logo ".concat(n.label)})}):(0,s.jsxs)("div",{className:"webradio-images-container",children:[(0,s.jsx)("img",{className:"webradio-logo",src:(0,g.tB)(n.imageUrl,"small"),alt:"Logo ".concat(n.label)}),(0,s.jsx)("figure",{className:"webradio-song",children:(0,s.jsx)("img",{className:"webradio-cover",src:(0,g.tB)(b),alt:"Pochette ".concat((null==c?void 0:c.title)||n.label),onError:e=>{let t=e.target,r=t.src;r&&r.endsWith(n.imageUrl)||(t.src=n.imageUrl||tc.xF)}})})]}),(0,s.jsxs)("figcaption",{className:"webradio-detail",style:{width:"unset !important"},children:[(0,s.jsx)("div",{className:"webradio-artist",style:{wordBreak:"keep-all",WebkitBoxOrient:"vertical",display:"-webkit-box",WebkitLineClamp:2,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"normal",maxWidth:"10rem"},children:(null==c?void 0:c.artist)||"La musique revient"}),(0,s.jsx)("div",{className:"webradio-title",style:{wordBreak:"keep-all",WebkitBoxOrient:"vertical",display:"-webkit-box",overflow:"hidden",WebkitLineClamp:1,textOverflow:"ellipsis",whiteSpace:"normal",maxWidth:"10rem"},children:null==c?void 0:null===(t=c.title)||void 0===t?void 0:t.toUpperCase()})]}),(0,s.jsx)("div",{className:"webradio-overlay ".concat(r===h.idMds&&"playing"===h.status?"webradio":""),onClick:v?i&&r===h.idMds?e=>{e.preventDefault(),"playing"===h.status?T.ZP.actions.stop():"stopped"===h.status&&(T.ZP.actions.play(),C.cR({type_player:(0,nG.Vd)(p,n.id)?"Webradio":"Radio",position_player:"Body",radio_id:n.id,radio_name:n.label,page_id:o.id,page_name:o.name,page_url:o.canonical||window.location.href,page:o}))}:e=>y(e):void 0,children:(0,s.jsx)("span",{className:"btn btn-sm btn--light",children:(0,s.jsx)("i",{className:"icon",children:r===h.idMds&&"playing"===h.status?i?(0,s.jsx)(tM.Z,{name:"stop"}):(0,s.jsx)("span",{className:"equalizer",children:(0,s.jsx)("span",{})}):(0,s.jsx)("svg",{version:"1.1",xmlns:"http://www.w3.org/2000/svg",x:"0px",y:"0px",viewBox:"0 0 20 20",children:(0,s.jsx)("path",{d:"M18,10L2,18V2L18,10z"})})})})})]})})},n$=e=>{let{i:t,hasMinified:n,columnsMobile:r}=e;return(0,s.jsx)("div",{className:"swiper-slide titreMultiflux",style:{flexShrink:n?0:1},children:(0,s.jsx)(nK,{stream:t.stream,idMds:t.idMds,hasStopButton:t.hasStopButton,hasMinified:n,page:t.page,slider:!0,columnsMobile:r},t.stream.id)},t.title)},nW=e=>{let{items:t,linkHref:n,linkLabel:r,title:i,autoplay:a,blocId:o,showArrows:u,hasMinified:c,linesMobile:h,columnsMobile:f=1}=e,m=t.map(e=>{let{stream:t}=e;return t.label}),g=t.filter((e,t)=>{let{stream:n}=e;return!m.includes(n.label,t+1)});if(0===g.length)return null;1===g.length&&(a=!1);let v=l.useMemo(()=>{let e=t.findIndex(e=>e.playing);return e>-1?e:0},[g]),y=1===g.length,b=(0,p.S)(),A=b.group81,E=b.rossel||A,w=e=>{let t=A?.4:0;switch(e){case"xs":return f+t;case"sm":return 2+t;case"md":case"xl":return A?5:4;case"lg":return c?A?4:6:"auto"}},x=e=>"xs"===e?h:1,T={initialSlide:v,breakpoints:Object.entries({xs:0,...O.eZ}).reduce((e,t)=>
25{let[n,r]=t;return{...e,[r]:{slidesPerView:w(n),slidesPerColumn:x(n),spaceBetween:5}}},{}),autoplay:a&&{delay:5e3,disableOnInteraction:!0},...u?{navigation:{nextEl:".swiper-button-next.swiper-button-rounded",prevEl:".swiper-button-prev.swiper-button-rounded"}}:{},slidesPerColumnFill:"row",noSwiping:y};return(0,s.jsxs)("div",{className:"block Gallery",id:o,children:[(0,s.jsxs)("div",{style:{position:"relative"},children:[(0,s.jsx)(nQ.t,{...T,children:g.map(e=>(0,s.jsx)(nq.o,{style:{width:"auto !important",flexShrink:c?0:1,marginRight:c?"unset":"O !important",display:"flex"},children:(0,s.jsx)(n$,{i:e,hasMinified:!!c,columnsMobile:f})}))}),(0,s.jsx)("div",{className:"swiper-button-prev swiper-button-rounded",hidden:!u}),(0,s.jsx)("div",{className:"swiper-button-next swiper-button-rounded",hidden:!u})]}),E&&(!!i||!!r&&!!n)&&(0,s.jsx)(d.Z,{linkHref:n,linkLabel:r})]})},nZ=n(1371),nY=n(3920),nX=n.n(nY);let nJ=(e,t,n,r)=>{C.cR({type_player:"Podcast",position_player:"Body",page_id:t.id,page_name:t.name,page_url:t.canonical||window.location.href,podcast_id:n,podcast_name:r,episode_id:e.id,episode_name:e.title,page:t})},n0=e=>{var t,n;let{idx:r,ep:i,displayedElements:a,playlistEpisodes:o,hasRosselFeature:c,blocId:d,page:h,podcast:f}=e,[p,m]=(0,l.useState)(!1);return(0,s.jsx)("div",{className:"col-1",children:(0,s.jsx)(u.Z,{imageAlt:i.title,imageUrl:i.imageUrl,progressBar:a.includes("localProgressBar")?{url:i.enclosureUrl,duration:null===(t=i.duration)||void 0===t?void 0:t.split(" ")[0],unity:null===(n=i.duration)||void 0===n?void 0:n.split(" ")[1]}:void 0,playButton:{isFromPlaylist:!0,episode:i,playlistEpisodes:o,onClick:()=>{nJ(i,h,f.id,f.title)}},hasAudioPlayer:!0,imageUrlOnError:tc.F6,orientation:"row",title:i.title,lead:i.description?nX()(i.description).result:void 0,dynamicResumeDesc:!0,episodeActions:(0,s.jsx)(n2,{episode:i,podcast:f,hasRosselFeature:c,page:h,podcastId:f.id,blocId:d,transcription:{onToggleTranscription:()=>m(!p),isTranscriptionVisible:p}}),date:i.publicationDate,duration:a.includes("duration")&&i.duration||void 0,noImage:!i.imageUrl&&a.includes("playerButton"),leadWrap:!0,transcription:i.transcription?{showTranscription:p,transcriptionText:i.transcription}:void 0})},r)},n1=new Map([["title","title"],["imageOrVideo","imageUrl"],["date","publicationDate"],["description","description"],["duration","duration"]]),n2=e=>{var t;let{episode:n,podcast:r,hasRosselFeature:i,page:a,podcastId:o,blocId:u,transcription:c}=e,d=(0,l.useContext)(f.lv),h=(0,O.kC)(),p=(null===(t=n.page)||void 0===t?void 0:t.slug)?(0,s.jsx)(k.Z,{status:"active",customIcon:"arrow-right",size:"extra-small",ariaLabel:"Voir la page de l'\xe9pisode",onMouseEnter:()=>{h.isMobile||eg.Z.actions.setIsOpen({name:"episode"+u+n.id,isOpen:!0})},onMouseLeave:()=>{eg.Z.actions.setIsOpen({name:"",isOpen:!1})},iconPosition:"afterLabel",linkHref:n.page.slug}):void 0,m=!r.hideDownload&&n.enclosureUrl?(0,s.jsx)(k.Z,{status:"active",customIcon:"download",iconStyle:{padding:"2px"},size:"extra-small",ariaLabel:"T\xe9l\xe9charger l'\xe9pisode",externalHref:n.enclosureUrl,download:n.title||"episode_"+Date.now(),linkTarget:"_blank",onMouseEnter:()=>{h.isMobile||eg.Z.actions.setIsOpen({name:"download"+u+n.id,isOpen:!0})},onMouseLeave:()=>{eg.Z.actions.setIsOpen({name:"",isOpen:!1})},onClick:()=>{C.CK({type_telechargement:"Podcast",page_id:a.id,page_name:a.name,page_url:a.canonical||window.location.href,podcast_id:o,podcast_name:null==r?void 0:r.title,episode_id:n.id,episode_name:n.title,page:a})}}):void 0,g=n.transcription?(0,s.jsx)(k.Z,{status:"active",iconStyle:{padding:"2px"},customIcon:c.isTranscriptionVisible?"chevron-down":"chevron-right",size:"extra-small",label:"Afficher la transcription \xe9crite",ariaLabel:"Afficher la transcription \xe9crite",onClick:c.onToggleTranscription},"transcription-".concat(n.id)):void 0;return(0,s.jsx)("div",{className:"AudioActions ".concat(i?" customButton":""),...h.isMobile?{style:{opacity:"1"}}:{},children:(0,s.jsxs)("ul",{className:"list-inline",children:[g&&(0,s.jsx)("li",{className:"list-inline-item",style:{margin:"1px"},children:(0,s.jsx)(ey,{button:g,label:c.isTranscriptionVisible?"Masquer la transcription":"Afficher la transcription \xe9crite",direction:"bottom",overlayName:"transcription"+u+n.id})}),(0,s.jsx)("li",{className:"list-inline-item",style:{margin:"1px"},children:(0,s.jsx)(ey,{button:m,label:"T\xe9l\xe9charger",direction:"bottom",overlayName:"download"+u+n.id})}),(0,s.jsx)("li",{className:"list-inline-item",style:{margin:"1px"},children:(0,s.jsx)(nN.x,{title:n.title,shareFunction:(e,t,n,r,i,a,o)=>(0,tg.EE)(d,e,t,n,r,i,a,o),page:a,type:"Podcast",podcast:r,episode:n,blocId:u})}),(0,s.jsx)("li",{className:"list-inline-item",style:{margin:"1px"},children:(0,s.jsx)(ey,{direction:"bottom",button:p,label:"Voir la page de l'\xe9pisode",overlayName:"episode"+u+n.id})})]})})},n3=e=>{let{links:t,podcast:n,page:r,podcastId:i}=e,a=(e,t)=>{C.is({platform_out:e,page_id:r.id,page_name:r.name,page_url:r.canonical||window.location.href,podcast_id:i,podcast_name:t.title,page:r})};return(0,s.jsx)("div",{className:"actions",children:(0,s.jsxs)("div",{className:"actions-group",children:[(null==t?void 0:t.applePodcast)&&(0,s.jsx)(k.Z,{status:"active",customIcon:"apple",size:"small",ariaLabel:"S'abonner sur Apple Podcasts",externalHref:t.applePodcast,linkTarget:"_blank",onClick:()=>a("Apple Podcasts",n)}),(null==t?void 0:t.spotify)&&(0,s.jsx)(k.Z,{status:"active",customIcon:"spotify",size:"small",ariaLabel:"S'abonner sur Spotify",externalHref:t.spotify,linkTarget:"_blank",onClick:()=>a("Spotify",n)}),(null==t?void 0:t.deezer)&&(0,s.jsx)(k.Z,{status:"active",customIcon:"deezer",size:"small",ariaLabel:"S'abonner sur Deezer",externalHref:t.deezer,linkTarget:"_blank",onClick:()=>a("Deezer",n)})]})})},n4={...e0,name:"rubriqueEmploi"},n5=e=>{let t=e.findIndex(e=>"location"===e);return -1!==t&&e.splice(t,1,"city","department"),["slug",...e.map(e=>j.MS[e])]},n8={...e0,name:"formulaire_candidature_emploi"},n6=e=>{var t,n,r,i;let{title:a,zones:o,page:u,format:c}=e,[d,p]=(0,l.useState)(void 0),m=(0,l.useContext)(f.lv),g=o||h.ZP.Zones(m),v=(0,_.oR)(eQ.h).zone;(0,l.useEffect)(()=>{v.zoneId!==d&&p(v.zoneId)},[v.zoneId]);let y=async e=>{var t;let n=null===(t=e.currentTarget)||void 0===t?void 0:t.value,r=n&&await h.ZP.zones.getZoneById(m,n);r&&(eQ.Nw.setZone(r.id),C.qy({id_zone:r.id,nom_zone:r.label,moment:"en_cours"}),(0,nU.Be)(m,"Bloc",u,r.stream.id,r.stream.label),T.ZP.actions.setMedia({id:r.stream.id,type:"radio"===r.stream.type.toLowerCase()?"radio":"webradio",mediaUrl:r.stream.hd||r.stream.bd||r.stream.hls,play:!0,idMds:r.stream.idMds,imageUrl:r.stream.imageUrl,altCover:r.stream.altCover,isHls:"Hls"===r.stream.streamFormat,hasStartOver:"Hls"===r.stream.streamFormat&&r.stream.hasStartOver,soundcastEnabled:r.stream.soundcastEnabled}))},b=h.ZP.Radio(m).theme,A=g?g.map(e=>
25({id:e.id,label:e.label,stream:e})):[];return!g||g.length<2?(0,s.jsx)(s.Fragment,{}):d?(0,s.jsxs)("div",{style:{display:"flex",width:"100%",alignItems:"stretch",flexDirection:"3"!=c?"row":"column"},className:"block LocationZoneList",children:[(0,s.jsx)("div",{id:"location-zone-list-label",className:"LocationZoneListTitle badge badge--primary",style:{flex:1,margin:"1px",display:"flex",flexDirection:"column",alignItems:"stretch",justifyContent:"center",color:"".concat(null==b?void 0:null===(r=b.header)||void 0===r?void 0:null===(n=r.menu)||void 0===n?void 0:null===(t=n.menuColor)||void 0===t?void 0:t.activeColor),backgroundColor:"".concat(null==b?void 0:null===(i=b.header)||void 0===i?void 0:i.color," ")},children:(a||"Changer de zone").toUpperCase()}),(0,s.jsx)("div",{style:{flex:3},className:"LocationZoneList dropdown",children:(0,s.jsx)("select",{onChange:y,className:"form-control ",autoComplete:"off","aria-labelledby":"location-zone-list-label",children:A.map(e=>(0,s.jsx)("option",{id:e.id,value:e.id,selected:e.id.toString()===d.toString(),disabled:e.id.toString()===d.toString(),className:"LocationZoneList option",children:e.label}))})})]}):(0,s.jsx)(s.Fragment,{children:(0,s.jsx)("div",{className:"loader"},"loader")})};var n9=n(7539),n7=e=>{let{option:t,votes:n,format:r,isSimple:i}=e,[a,o]=(0,l.useState)(0),[u,c]=(0,l.useState)(!1),[d,p]=(0,l.useState)("undefined"),m=(0,l.useContext)(f.lv),g=h.ZP.Radio(m).theme;return(0,l.useEffect)(()=>{t.votePercentage&&(o(t.votePercentage),p((null==g?void 0:g.mainColor)||"#e17055"))},[t,n]),(0,l.useEffect)(()=>{n&&t.voteCount===Math.max(...n.map(e=>e.vote))&&c(!0)},[t.voteCount,n]),(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{className:"SurveyPercentageVote",style:{minWidth:"50px",paddingRight:"10px",flex:"3"===r?"1 1 0":"initial",alignSelf:"center",color:"black"},children:[t.votePercentage,"%"]}),(0,s.jsxs)("div",{style:{display:"flex",flexDirection:"side"===r?"column":"row",width:"100%"},children:[(0,s.jsx)("div",{style:{paddingLeft:"10px",flex:"3"===r?"1 1 0":"initial"},children:i?"":t.label}),(0,s.jsx)("div",{style:{display:"block",width:"100%",flex:"3"===r?"2 1 0":"initial"},children:(0,s.jsx)("div",{className:"SurveyPercentageResultBar",style:{color:"white",borderRadius:"15px",width:"".concat(0===a?a+"%":"100%"),margin:"10px",height:"fit-content",flex:5},children:(0,s.jsx)("div",{className:"SurveyPercentageResultBar ".concat(u?"Winning":"Losing"),style:{backgroundColor:"".concat(u?d:"lightGrey"),color:"white",padding:"5px",fontSize:"20px",maxHeight:"40px",borderRadius:"15px",width:"".concat(0!==a&&a+"%"),textAlign:"".concat(0===a?"start":"right")}})})})]})]})},re=e=>{let{voted:t,option:n,onClick:r,votes:i}=e,[a,o]=l.useState("column"),[u,c]=l.useState(""),[d,h]=l.useState("black");return l.useEffect(()=>{t?(o("row"),c(""),h("black")):"Oui"===n.label?(c("1.5px solid lightgrey"),h("green")):"Non"===n.label&&h("red")},[t,n]),(0,s.jsxs)("div",{className:"simpleOptionSelection",style:{width:"100%",textAlign:"center",placeItems:"center",display:"flex",alignItems:"center",flexDirection:a,borderRight:u},children:[(0,s.jsx)("button",{style:{display:"flex",alignItems:"center",textAlign:"center",height:"70px",width:"70px",flexDirection:"".concat(a),placeItems:"center",cursor:"pointer",color:d,background:"none",border:"none",outline:"inherit",fontSize:"18px",padding:"20px"},disabled:t,onClick:r,children:n.label}),t&&(0,s.jsx)(n7,{option:n,votes:i,isSimple:!0})]})},rt=e=>{var t,n,r,i,a;let{option:o,format:c,register:d,checkedValue:p,onClick:m,mediaFormat:v,blocId:y,voted:b,voteOutputFront:A,votes:E,optionsHasImage:w}=e,x=(0,l.useContext)(f.lv),T=h.ZP.Radio(x).theme,_=v?(0,g.YR)(v):void 0,C=S.Z.SSR?"desktop":navigator.userAgent.toLowerCase().includes("mobi")?"mobile":"desktop",[k,I]=(0,l.useState)(""),[P,O]=(0,l.useState)("row"),[R,D]=(0,l.useState)("5px"),[N,M]=(0,l.useState)({color:"black",fontWeigth:"normal"}),[j,F]=(0,l.useState)(!1);return(0,l.useEffect)(()=>{p!=o.id||"Image"!==o.mediaType||b?(I(""),D("5px"),M({color:"black",fontWeigth:"normal"})):(I("5px solid ".concat(null==T?void 0:T.mainColor)),M({color:(null==T?void 0:T.mainColor)||"black",fontWeigth:"bolder"}),D("0px")),(b||A)&&F(!0)},[p,b,A]),(0,l.useEffect)(()=>{"3"!==c&&"mobile"!==C||b?w?j?O("row"):O("column-reverse"):"Audio"===o.mediaType&&(b?O("row"):O("column")):w?O("row-reverse"):"Audio"===o.mediaType?O("column"):O("row")},[b,c,w,j]),(0,s.jsxs)("div",{className:"PersonalizedOption Container",style:{width:"100%",display:"flex",flex:"1 1 0",flexDirection:"".concat(P),padding:"5px 20px 5px 20px !important"},children:[(0,s.jsxs)("div",{style:{display:"flex",paddingTop:"10px",flex:1},children:[!j&&(0,s.jsx)("input",{className:"optionRadioButton ".concat(p===o.id?"checked":""),type:"radio",ref:d(),name:o.label,id:o.id,value:o.id,style:{borderRadius:"50%",backgroundColor:"".concat(p===o.id&&(null==T?void 0:T.mainColor)||"white"),height:"30px",width:"30px",border:"2px s
25olid black",display:"".concat("Image"===o.mediaType&&"none"),padding:"10px",cursor:"pointer"},checked:p===o.id,onClick:e=>m(e.currentTarget.value)}),!j&&(0,s.jsx)("div",{className:"PersonalizedOption Label",style:{color:N.color,fontWeight:N.fontWeigth,flex:2,height:"20px",paddingLeft:"20px"},children:o.label})]}),j?(0,s.jsx)(n7,{option:o,votes:E,format:"3"===c?c:"side"}):b||A?(0,s.jsx)(s.Fragment,{}):(0,s.jsx)(s.Fragment,{children:o.mediaId&&("Audio"!==o.mediaType?(0,s.jsx)("div",{className:"PersonalizedOption Image",style:{width:"100%",height:"auto",border:k,flex:1,padding:R},children:(null===(t=o.media)||void 0===t?void 0:t.medias[0].url)&&(0,s.jsx)("div",{onClick:m,style:{margin:"0 0 -10px 0",cursor:"pointer"},children:(0,s.jsx)(u.Z,{imageUrl:null===(n=o.media)||void 0===n?void 0:n.medias[0].url,imageSize:"big",mediaRatio:_})})}):(0,s.jsx)("div",{style:{paddingTop:"15px",cursor:"pointer",paddingRight:"20px"},className:"PersonalizedOption Audio",children:(0,s.jsx)(L,{maxWidth:"3"===c?"95%":"",title:o.placeholder,audioUrl:null===(r=o.media)||void 0===r?void 0:r.medias[0].url,audioAlt:(null===(a=o.media)||void 0===a?void 0:null===(i=a.specificAttributes)||void 0===i?void 0:i.alternativeText)||"",mediaId:o.mediaId,blocId:y})}))})]},o.id)},rn=n(9370);let rr=(e,t)=>{var n,r;return(0,s.jsxs)("li",{style:{cursor:"default"},children:[t?(0,s.jsx)("h2",{style:{textDecoration:"underline",cursor:"pointer !important"},children:(0,s.jsx)("a",{className:"siteMapElement",href:e.linkHref,children:e.label})}):(0,s.jsx)("h3",{style:{textDecoration:"underline",cursor:"pointer !important"},children:(0,s.jsx)("a",{className:"siteMapElementTitle",href:e.linkHref,children:e.label})}),!!(null===(n=e.subItems)||void 0===n?void 0:n.length)&&(null===(r=e.subItems)||void 0===r?void 0:r.length)>0&&(0,s.jsx)("ul",{children:e.subItems.map(e=>rr(e,!1))})]})};var ri=()=>{let e=l.useContext(f.lv),t=h.ZP.MenuMain(e),n=(0,rn.v)(t,!0);return(0,s.jsx)(s.Fragment,{children:(0,s.jsx)("ul",{className:"card",children:n.map(e=>rr(e,!0))})})},ra=n(5152);let ro=n.n(ra)()(()=>n.e(886).then(n.bind(n,1888)),{loadableGenerated:{webpack:()=>[1888]},ssr:!1});var rs=e=>{let{title:t,joinDomain:n,blocId:r,linkHref:i,multipleStory:a,widgetId:o,linkLabel:l}=e,u=(0,p.S)(),h=null==u?void 0:u.group81;return(0,s.jsxs)("div",{className:"block joinWidget",id:r,children:[(t||l&&i)&&(0,s.jsx)(c.Z,{title:t||"  ",linkLabel:l,linkHref:i}),(0,s.jsx)("div",{children:(0,s.jsx)(ro,{joinDomain:n,widgetId:o,multipleStory:a})}),h&&(t||l)&&(0,s.jsx)(d.Z,{linkHref:i,linkLabel:l})]})},rl=e=>{let{blocs:t,blocId:n}=e,r=(0,O.kC)(),i=(e,t)=>(0,s.jsx)(u.Z,{imageUrl:e.imageUrl,imageAlt:e.imageAlt,contentType:e.modelContentType,linkHref:e.linkHref,title:e.title,date:e.date,eventStartDate:e.eventStartDate,eventEndDate:e.eventEndDate,lead:e.lead,mediaRatio:(0,g.YR)(t||"landscape"),author:e.author,useEventDates:!1,categories:e.categories,gameEndDate:e.gameEndDate,preventForceRatio:!0,keepForcedAspectOnMobile:!0,zoom:!0,forceSrl:!0},e.title),a=e=>({...e,imageSrc:e.imageUrl||""});return(0,s.jsx)("div",{className:"block aLaUne ",id:n,children:r.isLgOrMore?(0,s.jsxs)("div",{className:" aLaUneContainer ",children:[(0,s.jsx)("div",{className:"blockItem bloc2",children:t.bloc2&&i(t.bloc2)}),(0,s.jsx)("div",{className:"blockItem bloc4",children:t.bloc4&&i(t.bloc4,"portrait")}),(0,s.jsx)("div",{className:"blockItem bloc8_1",children:t.bloc8_1&&i(t.bloc8_1)}),(0,s.jsx)("div",{className:"blockItem bloc8_2",children:t.bloc8_2&&i(t.bloc8_2)})]}):(0,s.jsx)(ty.Z,{mode:"image",items:Object.values(t).map(e=>a(e)),slidesPerViewConfig:{default:1},keepForcedThumbnailAspect:!0,mediaRatio:(0,g.YR)("landscape"),blocId:n,zoomBloc:!0,fullWidthBloc:!0,preventForceRatio:!0})})};let ru=["slug","id","title","modelContentType","imagePrincipale {\n    medias {\n      format\n      url\n    }\n    specificAttributes {\n      alternativeText\n    }\n  }\n  videoPrincipale {\n    url\n    previewUrl\n  }\n  ","updatedAt","\n  eventStartDate\n  eventEndDate\n  ","categories {\n    name\n    id\n  }"],rc={bloc2:"article_2",bloc4:"article_4",bloc8_1:"article_8_1",bloc8_2:"article_8_2"},rd={bloc2:"category_2Model",bloc4:"category_4Model",bloc8_1:"category_8_1Model",bloc8_2:"category_8_2Model"},rh={bloc2:"category_2",bloc4:"category_4",bloc8_1:"category_8_1",bloc8_2:"category_8_2"};var rf=n(1163),rp=()=>{let e=(0,rf.useRouter)(),t=(0,l.useContext)(f.lv),[n,r]=(0,l.useState)([]),[i,a]=(0,l.useState)([]),[o,u]=(0,l.useState)(null),[c,d]=(0,l.useState)(null),[p,m]=(0,l.useState)(null),[g,v]=(0,l.useState)(!0),[y,b]=(0,l.useState)(null);if((0,l.useEffect)(()=>{var t;if(v(!0),!e.isReady)return;let n=null!==(t=e.query.year)&&void 0!==t?t:new URLSearchParams(window.location.search).get("year");n?u(parseInt(n,10)):u(new Date().getFullYear()),v(!1)},[e.isReady,e.query.year]),(0,l.useEffect)(()=>{let e=async()=>{try{v(!0),b(null);let e=await h.ZP.page.getArchiveYears(t);r(e.years)}catch(e){b(e.message||"Une erreur est survenue")}finally{v(!1)}};t&&e()},[t]),(0,l.useEffect)(()=>{let e=async()=>
25{if(o&&c&&p)try{v(!0),b(null);let e=await h.ZP.page.getArchiveDayPages(t,o,c,p);a(e.pages)}catch(e){b(e.message||"Une erreur est survenue")}finally{v(!1)}};t&&o&&c&&p&&e()},[t,o,c,p]),0===n.length)return(0,s.jsx)("div",{children:"Aucune donn\xe9e disponible"});let A=o?(0,Z.NB)(o):[];return(0,s.jsxs)("div",{className:"archive-container",children:[o&&(0,s.jsxs)("h1",{className:"archive-title",children:["Archives - ",o]}),n.length>0&&(0,s.jsx)("ul",{className:"archive-years",children:n.map(t=>(0,s.jsx)("li",{className:"archive-year-item",children:(0,s.jsx)("button",{className:"archive-year-button ".concat(o===t?"active":""),onClick:()=>{e.push({pathname:e.pathname,query:{...e.query,year:t.toString()}}),u(t),d(null),m(null)},children:t})},t))}),g&&(0,s.jsx)("div",{children:"Chargement..."}),y&&(0,s.jsxs)("div",{children:["Erreur: ",y]}),!g&&!y&&o&&!p&&(0,s.jsx)("div",{className:"archive-months",children:A.map(e=>(0,s.jsxs)("div",{className:"archive-month-block",children:[(0,s.jsxs)("h2",{className:"archive-month-title",children:[(0,Z.ZY)(e.month)," ",o]}),(0,s.jsx)("ul",{className:"archive-days",children:e.days.map(t=>(0,s.jsxs)("li",{className:"archive-day-item",onClick:()=>{d(e.month),m(t.day)},children:[(0,Z.UZ)(o,e.month,t.day)," ",t.day," ",(0,Z.ZY)(e.month)," ",o]},t.day))})]},e.month))}),!g&&!y&&p&&i&&(0,s.jsxs)("div",{className:"archive-pages",children:[(0,s.jsxs)("h2",{className:"archive-pages-title",children:["Pages du ",p," ",(0,Z.ZY)(c)," ",o]}),i.length>0?(0,s.jsx)("ul",{className:"archive-pages-list",children:i.map(e=>(0,s.jsx)("li",{className:"archive-page-item",children:(0,s.jsx)("a",{href:e.slug,target:"_blank",rel:"noreferrer",className:"archive-page-link",children:e.name})},e.id))}):(0,s.jsx)("p",{children:"Aucune page pour ce jour."})]})]})};let rm={Component:()=>(0,s.jsx)(s.Fragment,{}),name:"unknown"},rg=[{Component:e=>{let{blocId:t,other:n,...r}=e,{title:i,titleModel:a,externalLink:o,linkLabel:u,linkType:c,seeMoreSlug:d}=r,h=(0,l.useContext)(f.lv),m=(0,p.S)().group81,g=(e,i)=>{var a,o,s;let l=n["".concat(t,"_").concat(e)],u=null===(s=l.items)||void 0===s?void 0:null===(o=s[0])||void 0===o?void 0:null===(a=o.categories)||void 0===a?void 0:a[0].name,{linkLabel:c,linkType:d,externalLink:f,title:p,columns:m}=F[e],g=d&&r[d],v=c&&r[c],y=f&&r[f],b=m&&+r[m]||void 0;return{id:e,title:p&&"".concat(r[p])||u||void 0,linkHref:"free"===g?"".concat(y):l.seeMoreSlug||void 0,linkLabel:v?"".concat(v):void 0,columns:b,blocActu:(0,j.g_)(h,l.items,"large",i?void 0:{0:"portrait"})}};return m?(0,s.jsx)(M,{title:i||a,blocId:t,linkLabel:u,linkHref:"free"===c?o:d||void 0,mainBlocs:[g("switch1"),g("switch2")],inlineBlocs:[g("inline1",!0),g("inline2",!0)]}):(0,s.jsx)(s.Fragment,{})},getContentQuery:(e,t)=>{let{slug:n}=t,r={inline1:{category:t.inlineCategory1,itemPerBlock:t.itemsNumberInlineCategory1,linkLabel:t.inlineCategory1_linkLabel,linkType:t.inlineCategory1_linkType,pageLink:t.inlineCategory1_pageLink},inline2:{category:t.inlineCategory2,itemPerBlock:t.itemsNumberInlineCategory2,linkLabel:t.inlineCategory2_linkLabel,linkType:t.inlineCategory2_linkType,pageLink:t.inlineCategory2_pageLink},switch1:{itemPerBlock:3,category:t.switchCategory1},switch2:{itemPerBlock:3,category:t.switchCategory2}},i="".concat(e,"_props"),a=e=>({size:e.itemPerBlock||0,categoryIds:e.category?[e.category]:void 0,seeMoreId:"reference"===e.linkType?e.pageLink:void 0,excludeSlug:n}),o=t=>"\n            ".concat(e).concat(t?"_".concat(t):"",": getContent(props:$").concat(i).concat(t?"_".concat(t):"","){\n                  items {\n                    ").concat(B.join("\n"),"\n                    }\n                    seeMoreSlug\n                }\n        "),s={[i]:a({linkLabel:t.linkLabel,linkType:t.linkType,pageLink:t.pageLink}),...Object.entries(r).reduce((e,t)=>{let[n,r]=t;return{...e,["".concat(i,"_").concat(n)]:a(r)}},{})},l={[i]:"ContentQuery!",...Object.keys(r).reduce((e,t)=>({...e,["".concat(i,"_").concat(t)]:"ContentQuery!"}),{})};return{query:"\n    ".concat(o(),"\n     ").concat(Object.keys(r).map(e=>o(e)).join(),"\n  "),variables:s,types:l}},name:"actu"},{Component:e=>{let{title:t,items:n,format:r,blocId:i}=e,a=n&&0!==n.length?b(n,"square"):[];return a.length>0?(0,s.jsx)(m,{title:t,contents:a,columns:4,orientation:"column",guttersClassName:(0,y.G)(r),mediaRatio:(0,g.YR)("square"),blocId:i}):(0,s.jsx)(s.Fragment,{})},getContentQuery:(e,t)=>{let{animatorIds:n}=t;if(!n||0===n.length)return;let r="".concat(e,"_props");return{query:"\n        ".concat(e,": getContent(props:$").concat(r,"){\n          items{\n            ").concat("slug\ntitle\nchapo\nimagePrincipale {\n        medias {\n          format\n          url\n        }\n        specificAttributes {\n          alternativeText\n        }\n      }","\n          }\n        }\n      "),variables:{[r]:{size:n.length,ids:n}},types:{[r]:"ContentQuery!"}}},name:"animateursassocies"},{Component:e=>{let{liftType:t,blocId:n,other:r,...i}=e,a=(0,l.useContext)(f.lv),o=(0,p.S)().group81,u=(0,O.kC)(),c=(e,o)=>{var s,l;let c=null==r?void 0:r["".concat(n,"_").concat(o)].items[0],d="manual"!==t?rd[e]:void 0,h=d&&i[d],f=null===(s="automaticCategory"===t?null==c?void 0:null===(l=c.categories)||void 0===l?void 0:l.filter(e=>e.id===i[o]||e.id===h):c.categories)||void 0===s?void 0:s.slice(0,1);return c?(0,j.E1)(a,{...c,categories:f},"bloc4"===e&&u.isMdOrMore?"portrait":"landscape"):void 0},d=Object.entries("automaticCategory"===t?rh:rc).reduce((e,t)=>
25{let[n,r]=t,i=c(n,r);return i&&(e[n]=i),e},{});return o?(0,s.jsx)(rl,{blocId:n,blocs:d}):(0,s.jsx)(s.Fragment,{})},getContentQuery:(e,t)=>{let{liftType:n,slug:r}=t,i="".concat(e,"_props"),a=Object.entries("manual"===n?rc:rh),o=a.reduce((e,a)=>{let[o,s]=a,l="manual"!==n?rd[o]:void 0,u=t[s]||"manual"!==n&&l&&t[l];return e["".concat(i,"_").concat(s)]={size:1,categoryIds:"manual"!==n&&u?[u]:[],ids:"manual"===n&&u?[u]:[],excludeSlug:r},e},{}),s=a.map(t=>{let[,n]=t;return"\n            ".concat(e,"_").concat(n,": getContent(props:$").concat(i,"_").concat(n,"){\n                  items {\n                    ").concat(ru.join("\n"),"\n                    }\n                }\n        ")}).join(),l=a.reduce((e,t)=>{let[,n]=t;return e["".concat(i,"_").concat(n)]="ContentQuery!",e},{});return{query:"\n               ".concat(s,"\n              "),variables:o,types:l}},name:"articlesALaUne"},P,U,{Component:e=>{let{items:t,darkMode:n,titlePosition:r,descriptionPosition:i,selectedItems:a,images:o,liftType:l,categoryIds:u,contentsNumber:c,formatImage:d,blocId:h,overrideRules:f,titleUnderlineBloc:p,zoomBloc:m,borderBottomBloc:y,blurSides:b}=e,A=[];if(!l)return(0,s.jsx)(s.Fragment,{});if("category"===l){if(!(null==u?void 0:u.length)||!c)return(0,s.jsx)(s.Fragment,{});A=t.flatMap(e=>{var t,n,r,i;let a=(null===(t=e.imagePrincipale)||void 0===t?void 0:t.medias)&&(null===(n=(0,g.nv)(e.imagePrincipale.medias,b?"original":d||"large"))||void 0===n?void 0:n.url)||(null==e?void 0:null===(r=e.videoPrincipale)||void 0===r?void 0:r.previewUrl),o=(null===(i=e.imagePrincipale)||void 0===i?void 0:i.specificAttributes)&&e.imagePrincipale.specificAttributes.alternativeText||"";return a?{imageSrc:a,imageAlt:o,linkHref:e.slug,title:(0,v.ew)(e.title||""),badgeLabel:"",lead:(0,v.CL)(e.chapo||""),subTitle:""}:[]})}if("manual"===l){if(!a||0===a.length)return(0,s.jsx)(s.Fragment,{});A=a.reduce((e,n)=>{var r,i;if("reference"===n.type){let i=null==t?void 0:t.find(e=>e.id===n.pageLink);if(i){let{imagePrincipale:t}=i,n=t&&t.medias&&(null===(r=(0,g.nv)(t.medias,b?"original":d||"large"))||void 0===r?void 0:r.url);n&&e.push({imageSrc:n,imageAlt:t&&t.specificAttributes&&t.specificAttributes.alternativeText||"",linkHref:i.slug,title:i.title||"",badgeLabel:"",lead:i.chapo||"",subTitle:""})}}else if(n.imageFieldName&&o){let t=null==o?void 0:o.find(e=>e.id===n.imageFieldName);if(null==t?void 0:t.medias){let r=null===(i=(0,g.nv)(t.medias,b?"original":d||"large"))||void 0===i?void 0:i.url;r&&e.push({imageSrc:r,imageAlt:"",linkHref:n.externalLink||"",title:n.externalTitleFieldName,badgeLabel:"",lead:n.externalChapoFieldName,subTitle:"",newPage:n.newPage})}}return e},[])}return A.length>0?(0,s.jsx)(s.Fragment,{children:(0,s.jsx)(V.ZP,{items:A,titlePosition:r||"onTop",descriptionPosition:i||"onTop",reverseColor:n,mediaRatio:(0,g.YR)(d||"large"),blocId:h,overrideRules:f,titleUnderlineBloc:p,zoomBloc:m,borderBottomBloc:y,blurSides:b})}):(0,s.jsx)(s.Fragment,{})},getContentQuery:(e,t)=>{let n,{selectedItems:r,pageLink:i,linkType:a,liftType:o,categoryIds:s,contentsNumber:l}=t;if("manual"===o){if(!r||0===r.length)return;n=r.filter(e=>"free"===e.type&&!!e.imageFieldName).map(e=>e.imageFieldName)}else if("category"!==o)return;else if(!(null==s?void 0:s.length)||!l)return;let u="".concat(e,"_props"),c="manual"===o?r.filter(e=>"reference"===e.type&&e.pageLink):void 0;return{query:"\n        ".concat(e,": getContent(props:$").concat(u,"){\n          items{\n            ").concat("id\nslug\ntitle\nchapo\nimagePrincipale {\n      medias {\n        format\n        url\n      }\n      specificAttributes {\n        alternativeText\n      }\n    }\nvideoPrincipale {\n      url\n      previewUrl\n      }","\n          }\n          seeMoreSlug\n          images {\n            id\n            medias {\n              format\n              url\n            }\n            specificAttributes {\n              alternativeText\n            }\n          }\n        }\n      "),variables:{[u]:{size:"manual"===o?c&&c.length:l,ids:c&&c.map(e=>e.pageLink),categoryIds:"category"===o?s:void 0,seeMoreId:"reference"===a?i:void 0,imageFilter:"whatever",imageIds:n}},types:{[u]:"ContentQuery!"}}},name:"carrousel"},{Component:e=>{let{categories:t,blocId:n}=e;return(null==t?void 0:t.length)?(0,s.jsx)("p",{className:"badges",id:n,children:t.map((e,t)=>(0,s.jsx)(z,{category:e},t))}):(0,s.jsx)(s.Fragment,{})},getContentQuery:(e,t)=>{let{categoryIds:n,display:r}=t;if(!(null==n?void 0:n.length)||!r)return;let i="".concat(e,"_props");return{query:"\n          ".concat(e,": CategoriesByIds(ids:$").
25concat(i,"){\n            categories {\n              titre\n              page {\n                slug\n              }\n            }\n          }\n        "),variables:{[i]:n},types:{[i]:"[String!]!"}}},name:"category"},{Component:e=>{let{content:t,blocId:n}=e;return t?(0,s.jsx)("h2",{className:"block lead",id:n,style:q,children:t}):(0,s.jsx)(s.Fragment,{})},name:"chapo"},{Component:e=>e.sourceCode?(0,s.jsx)($.Z,{id:e.blocId,code:e.sourceCode},e.blocId):(0,s.jsx)(s.Fragment,{}),name:"codeSource"},{Component:e=>{let{model:t,blocsData:n={},preloadContent:r,page:i,pageContext:a}=e;return t?(0,s.jsx)(W.Z,{model:t,blocsData:n,noSectionWrapper:!0,fetchedData:r,isCorpsBloc:!0,page:i,pageContext:a,disableBackground:!0}):(0,s.jsx)(s.Fragment,{})},name:"corps"},{Component:e=>{let{hrInModel:t,hr:n}=e;return(0,s.jsx)("hr",{className:"hr".concat(t||n?"":" hrInvisible")})},name:"separateurManuel"},{Component:e=>{var t,n,r,i,a,o,u,c;let d,{useDefault:p,medias:m,aside:v}=e,y=(0,l.useContext)(f.lv),b=h.ZP.Radio(y),A=!!(null==b?void 0:null===(i=b.theme)||void 0===i?void 0:null===(r=i.rossel)||void 0===r?void 0:null===(n=r.separator)||void 0===n?void 0:null===(t=n.backgroundMedia)||void 0===t?void 0:t.mediaId),E=null==b?void 0:null===(c=b.theme)||void 0===c?void 0:null===(u=c.rossel)||void 0===u?void 0:null===(o=u.separator)||void 0===o?void 0:null===(a=o.backgroundMedia)||void 0===a?void 0:a.mediaUrl,w=!!m;return m&&m.length>0&&(d=(0,g.nv)(m,"original")),!1===p?w?(0,s.jsx)("figure",{className:"separatorImageWrapper inBlock",children:(0,s.jsx)("img",{src:(0,g.tB)(null==d?void 0:d.url,"big",void 0,void 0,void 0,void 0,void 0,void 0,v),style:{height:"fit-content",width:"100%"},alt:"s\xe9parateur"})}):(0,s.jsx)(s.Fragment,{}):A&&E?(0,s.jsx)("figure",{className:"separatorImageWrapper inBlock",children:(0,s.jsx)("img",{src:(0,g.tB)(E,"big",void 0,void 0,void 0,void 0,void 0,void 0,v),style:{height:"fit-content",width:"100%"},alt:"s\xe9parateur"})}):(0,s.jsx)("hr",{className:"hr",style:{borderTop:"solid 0.3rem"}})},getContentQuery:(e,t)=>{let{mediaInputSource:n}=t;if(!n)return;let r="".concat(e,"mediaInputSource");return{query:"\n          ".concat(e,": getMedia(mediaId:$").concat(r,"){\n            description\n            credit\n            legend\n            medias{\n              url\n              format\n            }\n            specificAttributes {\n              alternativeText\n            }\n          }\n        "),variables:{[r]:n},types:{[r]:"String!"}}},name:"separateurImage"},{Component:e=>{var t;let{modelType:n}=e,r=(0,l.useContext)(f.lv),i=h.ZP.Radio(r);return(0,s.jsx)(K,{separators:null===(t=i.theme)||void 0===t?void 0:t.separators,homepage:n===Q.W$.Home})},name:"SeparatorGroup81"},{Component:e=>(0,s.jsx)(J,{...e}),getContentQuery:(e,t)=>{let{authorId:n}=t,r="".concat(e,"_authorId");if(n)return{query:"\n        ".concat(e,": Author(authorId:$").concat(r,"){\n          id\n          firstName\n          lastName\n          description\n          job\n          avatar\n          socialNetworks {\n            facebook\n            x\n            instagram\n            linkedin\n            web\n            other\n          }\n          authorPage {\n            slug\n          }\n        }\n      "),variables:{[r]:n},types:{[r]:"String!"}}},name:"dateEtAuteur"},{Component:e=>{let{type:t,punctualBroadcastDays:n,regularBroadcastDays:r,blocId:i}=e;return("regularBroadcast"!==t||r&&r.length)&&("punctualBroadcast"!==t||n&&n.length)?(0,s.jsx)("div",{className:"block",id:i,children:"regularBroadcast"===t&&r?el(r):"punctualBroadcast"===t&&n?eu(n):""}):(0,s.jsx)(s.Fragment,{})},name:"emissionProgrammation"},{Component:e=>{var t,n,r,i,a,o,u,c,d,p,m,v,y,b,A;let{episode:E,author:w,description:x,enclosureUrl:S,imageUrl:I,keywords:L,subtitle:P,title:O,publicationDate:R,hideDownload:D=!1,hideDuration:N,duration:M,transcription:j,displayedElements:F=["title","imageUrl","description","author","subtitle","publicationDate","keywords","localProgressBar"],layout:B="horizontal",imageFormat:U="square",descriptionPosition:V="below",buttonsPosition:z="below",subscriptionLinks:q,overrideRules:Q,titleUnderlineBloc:H,zoomBloc:G,fullWidthBloc:K,borderBottomBloc:$,leadAnimationBloc:W,episodeId:Z,podcastId:Y,page:X,progressBarPosition:J="below"}=e;if(E||!Y)return(0,s.jsx)(s.Fragment,{});let ee=(0,l.useContext)(f.lv),et=h.ZP.Radio(ee),[en,er]=(0,l.useState)(void 0),[ei,ea]=(0,l.useState)(void 0),[eo,es]=(0,l.useState)(void 0),el=F.includes("localProgressBar")?J:"aside",eu=async()=>{Y&&C.cR({type_player:"Podcast",position_player:"Body",page_id:X.id,page_name:X.name,page_url:X.canonical||window.location.href,podcast_id:Y,podcast_name:null==eo?void 0:eo.title,episode_id:Z,episode_name:O,page:X})},ec=async()=>{T.ZP.actions.play(),await eu()},eh=async()=>{T.ZP.actions.setMedia({id:S,type:"podcast",mediaUrl:S,play:!0,imageUrl:I||et.radioLogo,artist:O,title:"",isFromPlaylist:!1,hasStartOver:!1}),await eu()};
25q&&(q=eT(q),["applePodcast","deezer","spotify"].forEach(e=>{q&&!q[e]&&delete q[e]}));let ep=(0,g.tB)(I,void 0,"jpeg"),em=!ef().isEmpty(q),{mediaId:eg,playerStatus:ev}=(0,_.K3)({store:T.ZP.store,keys:[],fn:e=>{let{id:t,status:n}=e;return{mediaId:t,playerStatus:n}}}),eE=eg===S,eS=eE&&"playing"===ev,e_=eS?"pause":"play";(0,l.useEffect)(()=>{(async()=>{Y&&es(await h.ZP.podcast.getPodcastById(ee,Y))})()},[Y,ee]),(0,l.useEffect)(()=>{Y&&h.ZP.podcast.getEpisodes(ee,Y,"enclosureUrl").then(e=>{if(e){let t=e.episodes.map(e=>e.id).indexOf(Z);ea(e.episodes[t+1]),er(e.episodes[t-1])}})},[Y,Z]);let eC=eE&&"loading"===ev?void 0:()=>{eS?(T.ZP.actions.stop(),eu()):eE?ec():eh()},ek={label:"play",url:S,duration:M,unity:null==M?void 0:M.split(" ")[1],position:"top",playButton:{label:"Lecture"+(!N&&M?" (".concat(M,")"):"")+("below"===z||"vertical"===B?"\xa0\xa0":""),onClick:eC,icon:e_}},eI=(0,l.useMemo)(()=>[...S?[...D?[]:[{label:"T\xe9l\xe9charger",externalHref:S,download:O,icon:"download",onClick:async()=>{if(Y){let e=await h.ZP.podcast.getPodcastById(ee,Y);C.CK({type_telechargement:"Podcast",page_id:X.id,page_name:X.name,page_url:S,podcast_id:Y,podcast_name:null==e?void 0:e.title,episode_id:Z,episode_name:O,page:X})}},target:"_blank"}]]:[],...em?Object.entries(q).map(e=>{let[t,n]=e;return{label:t,icon:"applePodcast"===t?"apple":"spotify"===t?"spotify":"deezer",onClick:async()=>{let e=await h.ZP.podcast.getPodcastById(ee,Y);C.is({platform_out:"applePodcast"===t?"Apple Podcasts":"spotify"===t?"Spotify":"deezer"===t?"Deezer":void 0,page_id:X.id,page_name:X.name,page_url:S,podcast_id:Y,podcast_name:null==e?void 0:e.title,episode_id:Z,episode_name:O,page:X})},externalHref:n,target:"_blank"}}):[]],[S,z,D,O,em,q,B,eC,e_]).filter(e=>void 0!==e);return Z?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(ed(),{children:[(0,s.jsx)("meta",{property:"twitter:image:alt",content:O}),(0,s.jsx)("meta",{property:"og:image:alt",content:O}),(0,s.jsx)("meta",{property:"twitter:image",content:ep}),(0,s.jsx)("meta",{property:"og:image",content:ep})]}),(0,s.jsx)("div",{className:"block Audio",children:(0,s.jsxs)("div",{className:"AudioArticle",children:[(0,s.jsx)(ew,{buttons:"below"!==z||"vertical"===B?eI:void 0,badges:L?L.split(","):void 0,imageUrl:I,date:R?new Date(R):void 0,lead:P,artist:w,onPlay:eC,buttonIcon:e_,playLabel:"Lecture"+(!N&&M?" (".concat(M,")"):"")+("below"===z||"vertical"===B?"\xa0\xa0":""),hideDuration:N,duration:M,titleUnderline:Q?H:(null===(r=et.theme)||void 0===r?void 0:null===(n=r.rossel)||void 0===n?void 0:null===(t=n.thumbnail)||void 0===t?void 0:t.titleUnderline)||void 0,zoom:Q?G:(null===(o=et.theme)||void 0===o?void 0:null===(a=o.rossel)||void 0===a?void 0:null===(i=a.thumbnail)||void 0===i?void 0:i.zoom)||void 0,leadAnimation:Q?W:(null===(d=et.theme)||void 0===d?void 0:null===(c=d.rossel)||void 0===c?void 0:null===(u=c.thumbnail)||void 0===u?void 0:u.leadAnimation)||void 0,overlayThumbnail:Q?K:(null===(v=et.theme)||void 0===v?void 0:null===(m=v.rossel)||void 0===m?void 0:null===(p=m.thumbnail)||void 0===p?void 0:p.fullWidth)||void 0,borderBottom:Q?$:(null===(A=et.theme)||void 0===A?void 0:null===(b=A.rossel)||void 0===b?void 0:null===(y=b.thumbnail)||void 0===y?void 0:y.borderBottom)||void 0,description:x,descriptionPosition:V,layout:B,imageFormat:U,progressBar:F.includes("localProgressBar")&&ek&&("below"!==J||"vertical"===B)?ek:void 0,title:F.includes("title")?O:void 0,progressBarPosition:el,transcription:j}),"below"===el&&"vertical"!==B&&(0,s.jsx)(eb,{progressBar:F.includes("localProgressBar")?ek:void 0,buttonIcon:e_,onPlay:eC,playLabel:"Lecture"+(!N&&M?" (".concat(M,")"):"")+("below"===z?"\xa0\xa0":""),badges:L?L.split(","):void 0,hasProgressBar:!0,transcription:j}),"below"===V&&"vertical"!==B&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(eA,{date:R?new Date(R):void 0,hideDuration:N,duration:M,timeZone:et.timeZone,title:O}),x&&(0,s.jsx)("div",{className:"block",dangerouslySetInnerHTML:{__html:x}})]}),"below"===z&&"vertical"!==B&&(S||em)&&(0,s.jsx)("ul",{className:"list-inline",children:null==eI?void 0:eI.map(e=>{let t=(0,s.jsx)(k.Z,{status:"active",color:"primary",size:"small",customIcon:e.icon,withoutIcon:!e.icon,externalHref:e.externalHref,download:e.download,iconPosition:"afterLabel",onClick:e.onClick,linkTarget:e.target},e.label||e.icon);return(0,s.jsx)("li",{className:"list-inline-item",children:(0,s.jsx)(ey,{button:t,label:e.label,direction:"bottom",overlayName:e.label})})})}),(0,s.jsx)(ex,{previousEpisode:en,nextEpisode:ei})]})})]}):(0,s.jsx)(s.Fragment,{})},getContentQuery:(e,t)=>{let{episodeId:n,displayedElements:r,imageFormat:i}=t;if(!n)return;
25let a="".concat(e,"_episodeId"),o=["enclosureUrl","title","imageUrl","duration"],s=["title","imageUrl","podcastId","transcription",...(null==r?void 0:r.filter(e=>!o.includes(e)&&"localProgressBar"!=e))||["description","author","subtitle","publicationDate","keywords"]];return{query:"\n          ".concat(e,": Episode(props:$").concat(a,"){\n              enclosureUrl\n              duration\n\n              ").concat(s.join("\n"),"\n              subscriptionLinks {\n                applePodcast\n                deezer\n                spotify\n              }\n            } \n        "),variables:{[a]:{id:n,imageFormat:i}},types:{[a]:"EpisodeQuery!"}}},name:"episodePodcast"},{Component:e=>{let{title:t,titleOnModel:n,thumbnailsStyle:r,thumbnailsPerRow:i,thumbnailsPerRowInBody:a,items:o,seeMoreLink:l,linkLabel:u,linkType:c,externalLink:d,seeMoreSlug:h,format:f,imageFormat:p,blocId:v,overrideRules:A,titleUnderlineBloc:E,zoomBloc:w,fullWidthBloc:x,borderBottomBloc:T,leadAnimationBloc:S,blurSides:_}=e,C=o&&0!==o.length?b(o,"square"):[];return C.length>0?(0,s.jsx)(m,{title:t||n,blocId:v,contents:C,columns:a||i||4,orientation:"horizontal"===r?"row":"reverseHorizontal"===r?"row-reverse":"column",linkLabel:l?u||"Voir plus":void 0,linkHref:"free"===c?d:h||void 0,guttersClassName:(0,y.G)(f),mediaRatio:_?(0,g.YR)("original"):p?(0,g.YR)(p):"1-1",overrideRules:A,titleUnderlineBloc:E,zoomBloc:w,fullWidthBloc:x,borderBottomBloc:T,leadAnimationBloc:S,blurSides:_}):(0,s.jsx)(s.Fragment,{})},getContentQuery:(e,t)=>{let{thumbnailsPerRow:n,thumbnailsPerRowInBody:r,rowsPerPage:i,rowsPerPageInBody:a,categoryIds:o,linkType:s,pageLink:l,offset:u}=t;if(!o||0===o.length)return;let c="".concat(e,"_props");return{query:"\n        ".concat(e,": getContent(props:$").concat(c,"){\n          items{\n            ").concat("slug\ntitle\nchapo\nimagePrincipale {\n        medias {\n          format\n          url\n        }\n        specificAttributes {\n          alternativeText\n        }\n      }","\n          }\n          seeMoreSlug\n        }\n      "),variables:{[c]:{size:(r||n)*(a||i),categoryIds:o,seeMoreId:"reference"===s?l:void 0,from:(u||1)-1}},types:{[c]:"ContentQuery!"}}},name:"equipe"},{Component:e=>{let{city:t,postcode:n,street:r,blocId:i}=e;return t||n||r?(0,s.jsxs)("div",{className:"block",id:i,style:{display:"flex",flexDirection:"row",alignItems:"center"},children:[(0,s.jsx)("div",{className:"badge  badge--primary",style:{flex:1,marginTop:"0",justifyContent:"center",alignSelf:"stretch"},children:"Lieu"}),(0,s.jsxs)("div",{style:{flex:3},children:[r&&(0,s.jsx)("strong",{children:r})||"",r&&(n||t)?(0,s.jsx)("br",{}):"",n||"",n&&t?" ":"",t||""]})]}):(0,s.jsx)(s.Fragment,{})},name:"evenementadresse"},{Component:e=>{let{eventDates:t,blocId:n,page:r}=e;return t&&t.length>0?(0,s.jsxs)("div",{className:"block",id:n,children:[(0,s.jsx)(eL,{blocId:n,page:r,startDate:t.map(e=>e.startDate)[0],endDate:t.map(e=>e.endDate)[0]}),t.map(eP)]}):(0,s.jsx)(s.Fragment,{})},name:"evenementDate"},{Component:e=>{let{email:t,link:n,name:r,phone:i,blocId:a}=e;return t||n||r||i?(0,s.jsxs)("div",{id:a,className:"block",style:{display:"flex",flexDirection:"row",alignItems:"center"},children:[(0,s.jsx)("div",{className:"badge  badge--primary",style:{flex:1,marginTop:"0",justifyContent:"center",alignSelf:"stretch"},children:"Organisateur"}),(0,s.jsxs)("div",{style:{flex:3},children:[!!r&&(0,s.jsx)("p",{children:(0,s.jsx)("strong",{children:r})}),!!i&&(0,s.jsx)("p",{children:i||""}),!!t&&(0,s.jsx)("p",{children:(0,s.jsx)("a",{href:"mailto:".concat(t),children:t})}),!!n&&(0,s.jsx)("p",{children:(0,s.jsx)("a",{href:n,children:n})})]})]}):(0,s.jsx)(s.Fragment,{})},name:"evenementOrganisateur"},{Component:e=>{let{type:t,price:n,blocId:r}=e;return(0,s.jsxs)("div",{id:r,className:"block",style:{display:"flex",flexDirection:"row",alignItems:"center"},children:[(0,s.jsx)("div",{className:"badge  badge--primary",style:{flex:1,marginTop:"0",display:"flex",flexDirection:"column",justifyContent:"center",alignSelf:"stretch"},children:"Tarif"}),(0,s.jsxs)("div",{style:{flex:3},children:[(0,s.jsx)("p",{children:"free"===t?"Gratuit":"Payant"}),"paid"===t&&n&&(0,s.jsx)("p",{children:n})]})]})},name:"evenementtarif"},{Component:e=>e.function?(0,s.jsx)("div",{className:"block",id:e.blocId,children:e.function}):(0,s.jsx)(s.Fragment,{}),name:"fonction"},e0,{Component:e=>{let{title:t,frequencies:n,blocId:r}=e;if(!(null==n?void 0:n.length))return(0,s.jsx)("div",{});let i=[];
25return n.forEach(e=>{let t=e.group,n=i.find(e=>e.departmentLabel===t);n||(n={departmentLabel:t,frequencies:[]},i.push(n)),n.frequencies.push(e)}),(0,s.jsx)(e1,{title:t,groupedFrequencies:i,blocId:r})},getContentQuery:(e,t)=>{let{frequenciesType:n}=t,r="".concat(e,"_frequencies");return{query:"\n          ".concat(e,": Frequencies(type:$").concat(r,"){\n            frequencies {\n              departmentLabel,\n              city,\n              frequency,\n              label,\n              group,\n              type\n            }\n          }\n        "),variables:{[r]:n},types:{[r]:"String!"}}},name:"frequences"},{Component:e=>{let{title:t,medias:n,blocId:r}=e;if(!n||0===n.length)return(0,s.jsx)(s.Fragment,{});let i=e4(n);return i.length>0?(0,s.jsx)(e3,{title:t,items:i,mediaRatio:(0,g.YR)("square"),blocId:r}):(0,s.jsx)(s.Fragment,{})},getContentQuery:(e,t)=>{let{folder:n}=t;if(!n)return;let r="".concat(e,"_folderId");return{query:"\n          ".concat(e,": getAllImageMediaFromFolder(folderId:$").concat(r,"){\n            medias {\n              description\n              credit\n              legend\n              medias{\n                format\n                url\n              }\n              specificAttributes {\n                alternativeText\n              }\n            }\n          }\n        "),variables:{[r]:n},types:{[r]:"String!"}}},name:"galerieInstagram"},{Component:e=>{let{title:t,medias:n,blocId:r}=e;if(!n||0===n.length)return(0,s.jsx)(s.Fragment,{});let i=e4(n);return i.length>0?(0,s.jsx)(e3,{title:t,items:i,blocId:r,mediaRatio:"1-1"}):(0,s.jsx)(s.Fragment,{})},getContentQuery:(e,t)=>{let{folder:n}=t;if(!n)return;let r="".concat(e,"_folderId");return{query:"\n          ".concat(e,": getAllImageMediaFromFolder(folderId:$").concat(r,"){\n            medias {\n              description\n              credit\n              legend\n              medias{\n                format\n                url\n              }\n              specificAttributes {\n                alternativeText\n              }\n            }\n          }\n        "),variables:{[r]:n},types:{[r]:"String!"}}},name:"galeriePhotos"},{Component:e=>{let{programmation:t,titleOnModel:n,title:r,blocId:i,blurSides:a}=e;return t?(0,s.jsx)(e9,{title:r||n,items:te(t,a),mediaRatio:(0,g.YR)("large"),blocId:i,blurSides:a}):(0,s.jsx)(s.Fragment,{})},getContentQuery:(e,t)=>{let{showCategoryId:n,categoryId:r}=t;if(!n&&!r)return;let i="".concat(e,"_props"),a="slug\n    title\n    chapo\n    imagePrincipale {\n      medias {\n        format\n        url\n      }\n      specificAttributes {\n        alternativeText\n      }\n    }\n    startHours\n    startMinutes\n    endHours\n    endMinutes\n    animatorsNames\n    ";return{query:"\n        ".concat(e,": Programmation(props:$").concat(i,"){\n          programmation {\n            label\n            subItems {\n              ").concat(a,"\n              chronicles {\n                ").concat(a,"\n              }\n            }\n          }          \n        }\n      "),variables:{[i]:{categoryId:n||r}},types:{[i]:"ProgrammationQuery!"}}},name:"grilleDesProgrammes"},{Component:e=>{let{title:t,firstColumn:n,secondColumn:r,items:i,blocId:a,overrideRules:o,titleUnderlineBloc:u,zoomBloc:c,fullWidthBloc:d,borderBottomBloc:h,leadAnimationBloc:p}=e,m=(0,l.useContext)(f.lv),g=n&&n.map(e=>{let{pageId:t}=e;return i.find(e=>e.id===t)}).filter(Boolean),v=r&&r.map(e=>{let{pageId:t}=e;return i.find(e=>e.id===t)}).filter(Boolean);v=(null==(g=(null==g?void 0:g.length)?g:v)?void 0:g.length)?v:void 0;let y=null==g?void 0:g.shift(),b=y&&(0,j.g_)(m,[y],"portrait"),A=g&&(0,j.g_)(m,g,"large"),E=v&&(0,j.g_)(m,v,"large");return(0,s.jsx)(tt,{title:t,firstThumbnail:null==b?void 0:b[0],leftContents:A,rightContents:E,columns:2,blocId:a,overrideRules:o,titleUnderlineBloc:u,zoomBloc:c,fullWidthBloc:d,borderBottomBloc:h,leadAnimationBloc:p})},getContentQuery:(e,t)=>{let{firstColumn:n,secondColumn:r}=t;if(!(null==n?void 0:n.length)&&!(null==r?void 0:r.length))return;let i="".concat(e,"_props"),a=[...n||[],...r||[]],o=a.length,s=a.map(e=>
25e.pageId),l=[...j.xY,"title","chapo","imagePrincipale {\n          medias {\n            format\n            url\n          }\n          specificAttributes {\n            alternativeText\n          }\n        }","updatedAt"];return{query:"\n          ".concat(e,": getContent(props:$").concat(i,"){\n            items{\n              ").concat(l.join("\n"),"\n            }\n          }\n        "),variables:{[i]:{size:o,ids:s}},types:{[i]:"ContentQuery!"}}},name:"grosplan"},{Component:e=>{let{description:t,dailyHoroscopes:n,weeklyHoroscopes:r,descriptionOnModel:i,blocId:a}=e,o=(0,nu.useRouter)(),[u,c]=(0,l.useState)();return(0,l.useEffect)(()=>{if(!S.Z.SSR){var e,t;let n=null===(t=document)||void 0===t?void 0:null===(e=t.location)||void 0===e?void 0:e.search,r=n&&n.substring(7),[i]=[...Object.entries(ny)].filter(e=>e[1].keyword===r).map(e=>{let[t]=e;return t});i&&c(i)}},[null==o?void 0:o.query]),(0,s.jsx)(nA,{dailyHoroscopes:n,weeklyHoroscopes:r,sign:u,description:i||t,blocId:a})},getContentQuery:e=>({query:"\n            ".concat(e,": Horoscopes {\n                dailyHoroscopes {\n                    sign\n                    title\n                    description\n                }\n                weeklyHoroscopes {\n                  sign\n                  title\n                  description\n              }\n            }\n          ")}),name:"horoscope"},{Component:e=>{let{medias:t,specificAttributes:n,afficherCreditLegende:r,afficherDescription:i,credit:a,description:o,legend:l,formatImage:u,externalUrl:c,linkTargetBlank:d,widthPercentage:h,alignSelf:f,title:p,blocId:m,aside:v}=e;if(!t||0===t.length)return(0,s.jsx)("i",{});let y=(0,g.nv)(t,u||"original");return y?(0,s.jsx)("div",{className:"block paragraph",style:{display:"flex",flexDirection:"column"},children:(0,s.jsx)(tn.Z,{blocId:m,linkHref:c,linkTargetBlank:d,imageUrl:y.url,imageAlt:n&&n.alternativeText||"",imageSize:"big",description:i?o:void 0,credit:r?a:void 0,legend:r?l:void 0,doNotForce:!!u&&"original"!==u,block:!0,title:p,widthPercentage:h,alignSelf:f,aside:v})}):(0,s.jsx)(s.Fragment,{})},getContentQuery:(e,t)=>{let{mediaId:n}=t;if(!n)return;let r="".concat(e,"_mediaId");return{query:"\n          ".concat(e,": getMedia(mediaId:$").concat(r,"){\n            description\n            credit\n            legend\n            medias{\n              url\n              format\n            }\n            specificAttributes {\n              alternativeText\n            }\n          }\n        "),variables:{[r]:n},types:{[r]:"String!"}}},name:"image"},{Component:e=>{var t,n,r;let{medias:i,specificAttributes:a,credit:o,description:u,legend:c,afficherCreditLegende:d,afficherDescription:p,formatImage:m,externalUrl:v,linkTargetBlank:y,widthPercentage:b,alignSelf:A,title:E,blocId:w,aside:x,page:T}=e,S=T.pageContent.blocsData&&JSON.parse(T.pageContent.blocsData),_=i&&i.length>0&&(0,g.nv)(i,m||"original"),C=_&&(null==_?void 0:_.url)?(0,g.tB)(_.url,void 0,"jpeg"):void 0,k=(0,l.useContext)(f.lv);return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(ed(),{children:[(0,s.jsx)("meta",{property:"twitter:image:alt",content:null!=E?E:""}),(0,s.jsx)("meta",{property:"og:image:alt",content:null!=E?E:""}),_&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("meta",{property:"twitter:image",content:C}),(0,s.jsx)("meta",{property:"og:image",content:C})]}),_&&_.width&&(0,s.jsx)("meta",{name:"og:image:width",content:_.width.toString()}),_&&_.height&&(0,s.jsx)("meta",{name:"og:image:width",content:_.height.toString()}),!_&&!(null==S?void 0:S.episodePodcast)&&(null===(t=h.ZP.Radio(k))||void 0===t?void 0:t.radioLogo)&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("meta",{property:"twitter:image",content:(0,g.tB)(null===(n=h.ZP.Radio(k))||void 0===n?void 0:n.radioLogo)}),(0,s.jsx)("meta",{property:"og:image",content:(0,g.tB)(null===(r=h.ZP.Radio(k))||void 0===r?void 0:r.radioLogo,void 0,"jpeg")})]})]}),_&&(0,s.jsx)(s.Fragment,{children:(0,s.jsx)("div",{className:"block paragraph",style:{display:"flex",flexDirection:"column"},children:(0,s.jsx)(tn.Z,{blocId:w,linkHref:v,linkTargetBlank:y,imageUrl:_.url,imageSize:"big",imageAlt:a&&a.alternativeText||"",description:p?u:void 0,credit:d?o:void 0,legend:d?c:void 0,doNotForce:"original"!==m,block:!0,title:E,widthPercentage:b,alignSelf:A,aside:x})})})]})},getContentQuery:(e,t)=>{let{mediaId:n}=t;if(!n)return;let r="".concat(e,"_mediaId");return{query:"\n          ".concat(e,": getMedia(mediaId:$").concat(r,"){\n            description\n            credit\n            legend\n            medias{\n              format\n              url\n              width\n              height\n            }\n            specificAttributes {\n              alternativeText\n            }\n          }\n        "),variables:{[r]:n},types:{[r]:"String!"}}},name:"imagePrincipale"},{Component:e=>{let{thumbnailsStyle:t,promoteFirstOne:n,repeatFirstOnePromotion:r,firstThumbn
25ailsStyle:i,useParallaxBloc:a,items:o,imageFormat:u,rowsPerPage:c,thumbnailsPerRow:d,category:p,title:m,pageNumber:v,pagination:y,slug:b,blocId:A,overrideRules:E,titleUnderlineBloc:w,zoomBloc:x,fullWidthBloc:T,borderBottomBloc:S,leadAnimationBloc:_,categoryId:C,displayedElements:k,blurSides:I}=e,[L,P]=(0,l.useState)(o),[O,R]=(0,l.useState)(!1),D=(0,l.useContext)(f.lv),N=tl(b),M=d*c,F=Math.max(1,null!=v?v:1)-1,B=F*M+(n&&F>0?1:0),U=M+(n&&0===F?1:0);return((0,l.useEffect)(()=>{let e=["slug",...k.map(e=>j.MS[e])];N&&N!==b&&(R(!0),h.ZP.content.getContent(D,{categoryIds:[C],size:U,from:B,imageFilter:k.indexOf("imageOrVideo")>-1?"imageOrVideo":"whatever"},!1,e).then(e=>{P(e.items),R(!1)}).catch(()=>{P([])}).finally(()=>R(!1)))},[b]),!o||o.length<=0||O||!L||L.length<=0)?(0,s.jsx)(s.Fragment,{}):o&&o.length||L&&L.length>0?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(to,{blocId:A,title:m||(null==p?void 0:p.titre),promoteFirstOne:(null!=v?v:1)===1&&n,repeatPromoted:r,promotedStyle:"horizontal"===i?"row":"column",items:(0,j.g_)(D,b!==N?L:o,I?"original":u||"landscape"),itemOrientation:"horizontal"===t?"row":"reverseHorizontal"===t?"row-reverse":"column",itemDisplayed:c*d,thumbnailsPerRow:d,mediaRatio:(0,g.YR)(u||"landscape"),overrideRules:E,titleUnderlineBloc:w,zoomBloc:x,fullWidthBloc:T,borderBottomBloc:S,leadAnimationBloc:_,useParallaxBloc:a,blurSides:I}),(0,s.jsx)(ts,{page:F,pageCount:Math.ceil(y.total/M),pageLink:e=>"".concat(b,"/").concat(e+1)})]}):(0,s.jsx)(s.Fragment,{})},getContentQuery:(e,t)=>{let{thumbnailsPerRow:n,rowsPerPage:r,displayedElements:i,promoteFirstOne:a,categoryId:o,pageNumber:s}=t;if(!o)return;let l="".concat(e,"_props"),u=n*r,c=Math.max(1,null!=s?s:1)-1,d={[l]:{size:u+(a&&0===c?1:0),categoryIds:[o],from:c*u+(a&&c>0?1:0),imageFilter:i.indexOf("imageOrVideo")>-1?"imageOrVideo":"whatever"}},h=["slug","sponsored",...i.map(e=>j.MS[e])];return{query:"\n        ".concat(e,": getContent(props:$").concat(l,"){\n          items{\n            ").concat(h.join("\n"),"\n          }\n          pagination {\n            total\n            from\n          }\n        }\n      "),variables:d,types:{[l]:"ContentQuery!"}}},name:"listeArticles"},{Component:e=>{let{thumbnailsStyle:t,thumbnailsPerRow:n=2,rowsPerPage:r=2,items:i,promoteFirstOne:a,repeatFirstOnePromotion:o,imageFormat:u,firstThumbnailsStyle:c,title:d,blocId:p,pageNumber:m,pagination:v,slug:y,categoryId:b,displaySearch:A,departments:E,jobSectors:w,overrideRules:x,titleUnderlineBloc:T,zoomBloc:S,fullWidthBloc:_,borderBottomBloc:C,leadAnimationBloc:k,displayedElements:I=[],blurSides:L}=e,P=n*r,O=Math.max(1,null!=m?m:1)-1,[R,D]=l.useState(),[N,M]=l.useState("idle"),[F,B]=l.useState({}),[U,V]=l.useState(0),[z,q]=l.useState(0),Q=(0,l.useContext)(f.lv);(0,l.useEffect)(()=>{A&&b&&(M("loading"),q(P+(a&&0===U?2:0)+U*P),h.ZP.content.getContent(Q,{department:"none"===F.department?void 0:F.department,size:P+(a&&0===U?1:0),from:U*P+(a&&U>0?1:0),categoryIds:[b],imageFilter:"whatever",jobSector:"none"===F.jobSector?void 0:F.jobSector},!1,n5(I)).then(e=>{D(e),M("ready")}).catch(()=>M("error"))),z<=v.total&&z>=v.total-P&&H()},[A,F,U,O]);let H=()=>{window.focus(),window.scrollTo({top:0,behavior:"smooth"})},G=e=>{V(e),H()};return b?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(to,{blocId:p,title:d,promoteFirstOne:A?0===U&&a:(null!=m?m:1)===1&&a,repeatPromoted:o,promotedStyle:"horizontal"===c?"row":"column",items:A?"ready"===N&&(null==R?void 0:R.items)?(0,j.g_)(Q,R.items,L?"original":u||"landscape"):[]:i&&i.length>0?(0,j.g_)(Q,i,L?"original":u||"landscape"):[],itemOrientation:"horizontal"===t?"row":"reverseHorizontal"===t?"row-reverse":"column",itemDisplayed:r*n,thumbnailsPerRow:n,mediaRatio:(0,g.YR)(u||"landscape"),displaySearchFor:A?"jobs":void 0,departments:E,jobSectors:w,onSearch:e=>{V((m||1)-1),B(e)},loading:"loading"===N,emptyMessage:"Aucune offre d'emploi".concat(A?" avec ces crit\xe8res":"","."),overrideRules:x,titleUnderlineBloc:T,zoomBloc:S,fullWidthBloc:_,borderBottomBloc:C,leadAnimationBloc:k,blurSides:L}),(0,s.jsx)(ts,{page:A?U:O,pageCount:A?(null==R?void 0:R.pagination)?Math.ceil(R.pagination.total/P):1:Math.ceil(v.total/P),onChange:e=>A?G(e):H(),pageLink:A?void 0:e=>"".concat(y,"/").concat(e+1),displaySearch:A})]}):(0,s.jsx)(s.Fragment,{})},getContentQuery:(e,t)=>{let{thumbnailsPerRow:n,rowsPerPage:r,displayedElements:i=[],promoteFirstOne:a,categoryId:o,pageNumber:s}=t;if(!o)return;let l="".concat(e,"_props"),u=n*r,c=Math.max(1,null!=s?s:1)-1,d=n5(i);return{query:"\n        ".concat(e,": getContent(props:$").concat(l,"){\n          items {\n            ").concat(d.join("\n"),"\n          }\n          pagination {\n            total\n            from\n          }\n        }\n      "),variables:{[l]:{size:u+(a&&0===c?1:0),categoryIds:[o],from:c*u+(a&&c>0?1:0),imageFilter:"whatever"}},types:{[l]:"ContentQuery!"}}},name:"listeEmplois"},{Component:e=>{let{thumbnailsStyle:t,thumbnailsPerRow:n,rowsPerPage:r=6,items:i,category:a,title:o,blocId:u,pageNumber:c,pagination:d,slug:h,overrideRules:p,titleUnderlineBloc:m,zoomBloc:v,fullWidthBloc:y,borderBottomBloc:b,leadAnimationBloc:A,blurSides:E}=e,w=n*r,x=(0,l.useContext)(f.lv);return i&&i.length>0?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(to,{blocId:u,title:o||(null==a?void 0:a.titre),items:(0,j.g_)(x,i,E?"original":"square"),itemOrientation:"horizontal"===t?"row":"reverseHorizontal"===t?"row-reverse":"column",itemDisplayed:6*n,thumbnailsPerRow:n,mediaRatio:(0,g.YR)("square"),overrideRules:p,titleUnderlineBloc:m,zoomBloc:v,fullWidthBloc:y,borderBottomBloc:b,leadAnimationBloc:A,blurSides:E}),(0,s.jsx)(ts,{page:Math.max(1,null!=c?c:1)-1,pageCount:Math.ceil(d.total/w),pageLink:e=>"".concat(h,"/").concat(e+1)})]}):(0,s.jsx)(s.Fragment,{})},getContentQuery:(e,t)=>{let{thumbnailsPerRow:n,categoryId:r,rowsPerPage:i=6,pageNumber:a}=t;if(!r)return;let o="".concat(e,"_props"),s=n*i,l=Math.max(1,null!=a?a:1)-1;return{query:"\n        ".concat(e,": getContent(props:$").concat(o,"){\n          items{\n            ").concat("slug\ntitle\nchapo\nimagePrincipale {\n      medias {\n        format\n        url\n      }\n      specificAttributes {\n        alternativeText\n      }\n    }","\n          }\n          pagination {\n            total\n            from\n          }\n        }\n      "),variables:{[o]:{size:s,categoryIds:[r],from:l*s}},types:{[o]:"ContentQuery!"}}},name:"listeEquipe"},{Component:e=>{let{thumbnailsStyle:t,thumbnailsPerRow:n=2,rowsPerPage:r=2,items:i,category:a,promoteFirstOne:o,repeatFirstOnePromotion:u,imageFormat:c,firstThumbn
25ailsStyle:d,title:p,blocId:m,pageNumber:v,pagination:y,slug:b,categoryId:A,displaySearch:E,departments:w,overrideRules:x,titleUnderlineBloc:T,zoomBloc:S,fullWidthBloc:_,borderBottomBloc:C,leadAnimationBloc:k,displayedElements:I,blurSides:L}=e,P=n*r,[O,R]=l.useState(),[D,N]=l.useState("starting"),[M,F]=l.useState(()=>eJ.Z(Date.now(),"yyyy-MM-dd")),[B,U]=l.useState(),[V,z]=l.useState(),[q,Q]=l.useState(),[H,G]=l.useState(0),K=(0,l.useContext)(f.lv);if((0,l.useEffect)(()=>{E&&A&&(N("loading"),h.ZP.content.getContent(K,{department:"none"===B?void 0:B,zonesIds:"none"===V?void 0:V,date:M,eventType:"none"===q?void 0:q,size:P+(o&&0===H?1:0),from:H*P+(o&&H>0?1:0),categoryIds:[A],imageFilter:"whatever",sort:"agenda_with_searchbar"},!0,tu(I)).then(e=>{R(e),N("loaded")}).catch(()=>N("error"))),H<=y.total&&H>=y.total-P&&$()},[E,M,B,H,V,q]),!A)return(0,s.jsx)(s.Fragment,{});let $=()=>{window.focus(),window.scrollTo({top:0,behavior:"smooth"})};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(to,{blocId:m,title:p||(null==a?void 0:a.titre),promoteFirstOne:E?0===H&&o:(null!=v?v:1)===1&&o,repeatPromoted:u,promotedStyle:"horizontal"===d?"row":"column",items:E?(null==O?void 0:O.items)?(0,j.g_)(K,O.items,L?"original":c||"landscape"):[]:i&&i.length>0?(0,j.g_)(K,i,L?"original":c||"landscape"):[],itemOrientation:"horizontal"===t?"row":"reverseHorizontal"===t?"row-reverse":"column",itemDisplayed:r*n,thumbnailsPerRow:n,mediaRatio:(0,g.YR)(c||"landscape"),displaySearchFor:E?"events":void 0,departments:w,onSearch:e=>{G((v||1)-1),U(e.department),z(e.locationZone),F(e.date||eJ.Z(Date.now(),"yyyy-MM-dd")),Q(e.eventType)},loading:"loading"===D,overrideRules:x,titleUnderlineBloc:T,zoomBloc:S,fullWidthBloc:_,borderBottomBloc:C,leadAnimationBloc:k,blurSides:L}),(0,s.jsx)(ts,{page:E?H:Math.max(1,null!=v?v:1)-1,pageCount:E?(null==O?void 0:O.pagination)?Math.ceil(O.pagination.total/P):1:Math.ceil(y.total/P),onChange:E?e=>{G(e),window.scrollTo({top:0,behavior:"smooth"})}:void 0,pageLink:E?void 0:e=>"".concat(b,"/").concat(e+1),displaySearch:E})]})},getContentQuery:(e,t)=>{let{thumbnailsPerRow:n,rowsPerPage:r,displayedElements:i,promoteFirstOne:a,categoryId:o,pageNumber:s}=t;if(!o)return;let l="".concat(e,"_props"),u=n*r,c=Math.max(1,null!=s?s:1)-1,d=tu(i);return{query:"\n        ".concat(e,": getContent(props:$").concat(l,"){\n          items{\n            ").concat(d.join("\n"),"\n          }\n          pagination {\n            total\n            from\n          }\n        }\n      "),variables:{[l]:{size:u+(a&&0===c?1:0),categoryIds:[o],from:c*u+(a&&c>0?1:0),imageFilter:"whatever"}},types:{[l]:"ContentQuery!"}}},name:"listeEvenements"},{Component:e=>{let{thumbnailsStyle:t,thumbnailsPerRow:n,rowsPerPage:r,items:i,category:a,title:o,blocId:u,pageNumber:c,pagination:d,slug:p,overrideRules:m,titleUnderlineBloc:v,zoomBloc:y,fullWidthBloc:b,borderBottomBloc:A,leadAnimationBloc:E,categoryId:w}=e,x=n*r,[T,S]=(0,l.useState)(i),_=Math.max(1,null!=c?c:1)-1,C=tl(p),k=_*x,[I,L]=(0,l.useState)(!1),P=(0,l.useContext)(f.lv);return((0,l.useEffect)(()=>{C&&C!==p&&(L(!0),h.ZP.content.getContent(P,{categoryIds:[w],size:x,from:k,imageFilter:"whatever"},!1,["slug","title","chapo","imagePrincipale {\n        medias {\n          format\n          url\n        }\n        specificAttributes {\n          alternativeText\n        }\n      }"]).then(e=>{S(e.items),L(!1)}).catch(()=>{S([])}).finally(()=>L(!1)))},[p]),!i||i.length<=0||I||!T||T.length<=0)?(0,s.jsx)(s.Fragment,{}):i&&i.length>0||T&&T.length>0?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(to,{blocId:u,title:o||(null==a?void 0:a.titre),items:(0,j.g_)(P,p!==C?T:i,"square"),itemOrientation:"horizontal"===t?"row":"reverseHorizontal"===t?"row-reverse":"column",itemDisplayed:r*n,thumbnailsPerRow:n,mediaRatio:(0,g.YR)("square"),overrideRules:m,titleUnderlineBloc:v,zoomBloc:y,fullWidthBloc:b,borderBottomBloc:A,leadAnimationBloc:E}),(0,s.jsx)(ts,{page:_,pageCount:Math.ceil(d.total/x),pageLink:e=>"".concat(p,"/").concat(e+1)})]}):(0,s.jsx)(s.Fragment,{})},getContentQuery:(e,t)=>{let{thumbnailsPerRow:n,categoryId:r,rowsPerPage:i,pageNumber:a}=t;if(!r)return;let o="".concat(e,"_props"),s=n*i,l=Math.max(1,null!=a?a:1)-1;return{query:"\n        ".concat(e,": getContent(props:$").concat(o,"){\n          items{\n            ").concat("slug\ntitle\nchapo\nimagePrincipale {\n      medias {\n        format\n        url\n      }\n      specificAttributes {\n        alternativeText\n      }\n    }","\n          }\n          pagination {\n            total\n            from\n          }\n        }\n      "),variables:{[o]:{size:s,categoryIds:[r],from:l*s,imageFilter:"whatever"}},types:{[o]:"ContentQuery!"}}},name:"listePodcasts"},{Component:e=>{let{episodes:t,podcast:n,podcastId:r,blocId:i,displayedElements:a,page:o,displayDescription:c,displayThumbnail:d}=e;if(!n||!r)return(0,s.jsx)(s.Fragment,{});let m=(0,p.S)().rossel,[g,v]=(0,l.useState)(10),[y,b]=(0,l.useState)(t),[A,E]=(0,l.useState)(t),[w,x]=(0,l.useState)(!1),[T,S]=(0,l.useState)((null==t?void 0:t.length)!==10),_=tl(r),C=(0,l.useContext)(f.lv);(0,l.useEffect)(()=>{_&&_!==r&&(b(t),E(t))},[_,r]),(0,l.useEffect)(()=>{L(!0)},[]);let I=a.map(e=>
25n1.get(e)).filter(Boolean).join("\n"),L=function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];x(!0),h.ZP.podcast.getEpisodes(C,r,I,e?0:g,e).then(t=>{e?E(t.episodes):t.episodes.length<10?(S(!0),t.episodes.length&&b(e=>e.concat(t.episodes))):(b(e=>e.concat(t.episodes)),v(e=>e+10))}).finally(()=>x(!1))};return(0,s.jsx)("div",{className:"block Audio",id:i,children:(0,s.jsxs)("div",{className:"row row-alt-1 gutters-none grid",children:[(0,s.jsx)("div",{className:"col-1",children:(0,s.jsx)(u.Z,{imageUrl:d?n.imageUrl:void 0,lead:c&&n.description?nX()(n.description).result:void 0,title:n.title,orientation:"grid-row",mediaActions:n.subscriptionLinks?(0,s.jsx)(n3,{links:n.subscriptionLinks,podcast:n,page:o,podcastId:r}):void 0})}),y.map((e,t)=>(0,s.jsx)(n0,{ep:e,idx:t,playlistEpisodes:A,displayedElements:a,hasRosselFeature:m,blocId:i,page:o,podcast:n})),!T&&(0,s.jsx)("div",{style:{justifyContent:"center",display:"flex",margin:"2rem 0"},children:(0,s.jsx)(k.Z,{onClick:()=>L(!1),customIcon:"chevron-down",status:w?"loading":"active",ariaLabel:"Charger plus d'\xe9pisodes"})})]})})},getContentQuery:(e,t)=>{let{podcastId:n,displayedElements:r}=t;if(!n)return;let i="".concat(e,"_props"),a=r.map(e=>n1.get(e)).filter(Boolean).join("\n");return{query:"\n        ".concat(e,": Episodes(props:$").concat(i,"){\n              episodes {\n                ").concat(a,"\n                id\n                duration\n                enclosureUrl\n                transcription\n                page {\n                  slug\n                }\n              }\n              podcast {\n                id\n                title\n                description\n                imageUrl\n                subscriptionLinks {\n                  applePodcast\n                  spotify\n                  deezer\n                }\n              }        \n            }\n      "),variables:{[i]:{podcastId:n}},types:{[i]:"EpisodesQuery!"}}},name:"listeEpisodes"},{Component:e=>{let{content:t,contentOnModel:n,blocId:r}=e,i=t||n||void 0;return i&&(i=i.replace(/ql-size-large/g,"h3").replace(/ql-size-huge/g,"h2").replace(/class="ql-align-(justify|left|right|center)"/g,'style="text-align:$1"').replace(/(src|href|data-src)=["']?(https?:\/\/[^\s"']+\.(jpg|jpeg|png|webp))["']?/gi,(e,t,n)=>{let r=(0,g.tB)(n);return r?"".concat(t,'="').concat(r,'"'):e}).replace(/(src|href)=["']?(https?:\/\/[^\s"']+\.(mp3|wav|ogg|m4a))["']?/gi,(e,t,n)=>{let r=(0,g.H4)(n);return r?"".concat(t,'="').concat(r,'"'):e})),i?(0,s.jsx)($.Z,{id:r,className:"block paragraph",code:i}):(0,s.jsx)(s.Fragment,{})},name:"paragraphe"},{Component:e=>{let{title:t,url:n,code:r,formatImage:i,medias:a,specificAttributes:o,withSeparator:u,blocId:h,adType:f,taboolaPublisherId:m,taboolaPageType:v,taboolaMode:y,taboolaPlacement:b,taboolaTargetType:A,gptPath:E,gptWidth:w,gptHeight:x,adsenseClient:T,adsenseFormat:S,adsenseSlot:_}=e,k=a&&(0,g.nv)(a,i||"original"),I=h.substring(h.indexOf("_")+1,h.length),L=(0,p.S)().rossel;if(l.useEffect(()=>{let e=setTimeout(()=>{("taboola"===f&&m||(!f||"other"===f)&&(k||r||L&&(t||tf()))||"adsense"===f&&_)&&(0,C.sn)({id_ad:I,nom_ad:t,type_ad:f})},3e3);return()=>clearTimeout(e)},[]),!f||"other"===f)return(0,s.jsxs)("div",{className:"block",id:h,onClick:e=>{e.stopPropagation(),(0,C.Wy)({id_ad:h,nom_ad:t,type_ad:f})},children:[t&&(0,s.jsx)(c.Z,{title:t,linkLabel:tf(n),linkHref:n||void 0}),k&&(0,s.jsx)(tn.Z,{linkHref:n,linkTargetBlank:!0,imageUrl:k.url,imageAlt:o&&o.alternativeText||"",imageSize:"big",doNotForce:!!i&&"original"!==i,aside:!1,mediaRatio:i?(0,g.YR)(i):void 0}),r&&(0,s.jsx)($.Z,{id:h,code:r},h),L&&(t||tf())&&(0,s.jsx)(d.Z,{linkHref:n||void 0,linkLabel:tf(n)}),u&&(0,s.jsx)(e5.Z,{})]});if("taboola"===f){let e='<div id="pub-taboola-'.concat(I,"\"></div>\n      <script>\n      if (!window.taboolascriptloaded) {\n        window.taboolascriptloaded=new Promise(function(a) {\n          const node = document.createElement('script');\n          node.onload=a;\n          node.async = true;\n          node.setAttribute('src', 'https://cdn.taboola.com/libtrc/").concat(m,"/loader.js');\n          node.setAttribute('charSet', 'utf-8');\n          document.body.appendChild(node);\n        })\n      }
25\n      window.taboolascriptloaded.then(function() {\n        window._taboola = window._taboola || [];\n        window._taboola.push({").concat(v,":'auto'});\n        window._taboola.push({\n          mode: '").concat(y,"',\n          container: 'pub-taboola-").concat(I,"',\n          placement: '").concat(b,"',\n          target_type: '").concat(A,"',\n          flush: true\n        });\n        window._taboola.push({flush: true});\n      });\n      </script>\n      ");return(0,s.jsx)("div",{className:"block",id:h,onClick:e=>{e.stopPropagation(),(0,C.Wy)({id_ad:h,nom_ad:t,type_ad:f})},children:(0,s.jsx)($.Z,{id:h,code:e},h)})}if("gpt"===f){let e="pub-gpt-".concat(I),n='<div id="'.concat(e,'" style="width: ').concat(w,"px; height: ").concat(x,'px"/>\n      ').concat(th.k,"\n      ").concat((0,th.B)({height:x,nodeId:e,sendAdImpressionEvent:C.sn,idSuffix:I,title:t||"",path:(null==E?void 0:E.startsWith("/"))?E:"/"+E,width:w}),"\n      ");return(0,s.jsx)("div",{className:"block",id:h,onClick:e=>{e.stopPropagation(),(0,C.Wy)({id_ad:h,nom_ad:t,type_ad:f})},children:(0,s.jsx)($.Z,{id:h,code:n},h)})}if("adsense"===f){let e='<div id="pub-adsense-'.concat(I,'" style="width:100%;"></div>\n      <script>\n      (function() {\n        const adContainer = document.getElementById("pub-adsense-').concat(I,"\");\n\n        var ele = document.createElement('ins');\n        ele.style.display = 'block';\n        ele.style.width = '100%';\n        //ele.style.minHeight = '100px'; // required height for Google to place an ad \n        ele.className = 'adsbygoogle';\n        ele.setAttribute('data-ad-client', '").concat(T,"');\n        ele.setAttribute('data-ad-slot', '").concat(_,"');\n        ele.setAttribute('data-ad-format', '").concat(S,"');\n        ele.setAttribute('data-full-width-responsive', 'true'); \n        adContainer.appendChild(ele);\n      \n        if (!window.adsensescriptloaded) {\n          window.adsensescriptloaded = new Promise(function(resolve) {\n            const node = document.createElement('script');\n            node.onload = resolve;\n            node.async = true;\n            node.setAttribute('src', 'https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js');\n            node.setAttribute('charSet', 'utf-8');\n            document.body.appendChild(node);\n          });\n        }\n      \n        window.adsensescriptloaded.then(function() {\n          const tryPush = () => {\n            const ins = adContainer.querySelector('ins.adsbygoogle');\n            if (ins && ins.offsetWidth > 0) {\n              (adsbygoogle = window.adsbygoogle || []).push({});\n            } else {\n              setTimeout(tryPush, 300);\n            }\n          };\n          tryPush();\n        });\n      })();\n      </script>\n      ");return(0,s.jsx)("div",{className:"block",id:h,onClick:e=>{e.stopPropagation(),(0,C.Wy)({id_ad:h,nom_ad:t,type_ad:f})},children:(0,s.jsx)($.Z,{id:h,code:e},h)})}return(0,s.jsx)(s.Fragment,{})},getContentQuery:(e,t)=>{let{mediaId:n}=t;if(!n)return;let r="".concat(e,"_mediaId");return{query:"\n          ".concat(e,": getMedia(mediaId:$").concat(r,"){\n            medias{\n              url\n              format\n            }\n            specificAttributes {\n              alternativeText\n            }\n          }\n        "),variables:{[r]:n},types:{[r]:"String!"}}},name:"publicite"},j.ZP,{Component:e=>{let{thumbnailsStyle:t,thumbnailsPerRow:n,title:r,titleOnModel:i,items:a,imageOrVideoFormat:o,seeMoreLink:u,linkLabel:c,externalLink:d,linkType:m,seeMoreSlug:v,format:b,blocId:A,displaySearch:E,departments:w,categoryIds:x,rowsPerPage:T,pageLink:S,overrideRules:_,titleUnderlineBloc:C,zoomBloc:k,fullWidthBloc:I,borderBottomBloc:L,leadAnimationBloc:P,aside:O,blurSides:D}=e,[N,M]=l.useState(),[F,B]=l.useState(),[U,V]=l.useState("starting"),z=(0,l.useContext)(f.lv);(0,l.useEffect)(()=>{E&&(null==x?void 0:x.length)&&q(eJ.Z(Date.now(),"yyyy-MM-dd"))},[E]);let q=(e,t,r)=>{h.ZP.content.getContent(z,{department:t,date:e,zonesIds:r&&"none"!==r?[r]:[],size:n*T,categoryIds:x,seeMoreId:"reference"===m?S:void 0,imageFilter:"whatever",sort:"agenda_with_searchbar"}).then(e=>{M(e.items),B(e.seeMoreSlug),V("loaded")}).catch(()=>{V("error")})},Q=a&&0!==a.length&&(null==x?void 0:x.length)&&o?(0,j.g_)(z,a,D?"original":o):[],H=(0,p.S)().rossel;return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(R.Z,{blocId:A,title:r||i,contents:E?N?(0,j.g_)(z,N,D?"original":o):[]:Q.length>0?Q:[],columns:n||4,orientation:"horizontal"===t?"row":"reverseHorizontal"===t?"row-reverse":"column",linkLabel:u?c||"Voir plus":void 0,linkHref:("free"===m?d:E?F:v)||void 0,guttersClassName:(0,y.G)(b),useEventDates:!0,mediaRatio:o?(0,g.YR)(o):void 0,loading:"loading"===U,displaySearch:E,departments:w,onSearch:e=>{V("loading"),q(e.date,e.department&&"none"!==e.department?e.department:void 0,e.locationZone)},isCustom:H,overrideRules:_,titleUnderlineBloc:C,zoomBloc:k,fullWidthBloc:I,borderBottomBloc:L,leadAnimationBloc:P,aside:O,blurSides:D}),(0,s.jsx)(e5.Z,{})]})},getContentQuery:(e,t)=>{let{thumbnailsPerRow:n,rowsPerPage:r,categoryIds:i,linkType:a,pageLink:o}=t;if(!i||0===i.length)return;
25let s="".concat(e,"_props"),l=[...j.xY,"title","chapo","imagePrincipale {\n        medias {\n          format\n          url\n        }\n        specificAttributes {\n          alternativeText\n        }\n      }","eventStartDate","eventEndDate"];return{query:"\n        ".concat(e,": getContent(props:$").concat(s,"){\n          items{\n            ").concat(l.join("\n"),"\n          }\n          seeMoreSlug\n        }\n      "),variables:{[s]:{size:n*r,categoryIds:i,seeMoreId:"reference"===a?o:void 0,imageFilter:"whatever"}},types:{[s]:"ContentQuery!"}}},name:"remonteeEvenements"},{Component:e=>{let{thumbnailsStyle:t,thumbnailsPerRow:n,title:r,titleOnModel:i,blocId:a}=e,o=Object.keys(ny),l=r||i;return(0,s.jsx)(s.Fragment,{children:(0,s.jsxs)("div",{className:"block Horoscope",id:a,children:[l&&(0,s.jsx)(c.Z,{title:(0,v.ew)(l)}),(0,s.jsx)("div",{className:"row row-alt-".concat(n||2," grid ").concat(3===n?"gutters-sm":"gutters-md"),children:o.map(e=>(0,s.jsx)("div",{className:"col-1",children:(0,s.jsx)(ta.Z,{href:"/horoscope?signe=".concat(ny[e].keyword),children:(0,s.jsxs)("a",{className:"thumbnail ".concat("horizontal"===t?"d-flex":""),children:[(0,s.jsx)("figure",{className:"media",style:{display:"block"},children:(0,s.jsx)("span",{className:"img bg--primary",children:(0,s.jsx)(tM.Z,{name:e})})}),(0,s.jsx)("div",{className:"resume",children:(0,s.jsx)("h3",{className:"sign",children:ny[e].label})})]})})},e))})]})})},name:"remonteeHoroscopes"},{Component:e=>{let{items:t,thumbnailsPerRow:n,thumbnailsStyle:r,title:i,seeMoreLink:a,linkLabel:o,linkType:l,externalLink:u,seeMoreSlug:c,format:d,blocId:h,overrideRules:f,titleUnderlineBloc:p,zoomBloc:m,fullWidthBloc:v,borderBottomBloc:b,leadAnimationBloc:A,playEpisode:E}=e,w=t&&0!==t.length?tm(t,"landscape"):[];return w.length?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(tp,{blocId:h,columns:n||2,title:i,contents:w,orientation:"horizontal"===r?"row":"reverseHorizontal"===r?"row-reverse":"column",buttonMode:"button",linkLabel:a?o||"Voir plus":void 0,linkHref:"free"===l?u:c||void 0,guttersClassName:(0,y.G)(d),mediaRatio:(0,g.YR)("landscape"),overrideRules:f,titleUnderlineBloc:p,zoomBloc:m,fullWidthBloc:v,borderBottomBloc:b,leadAnimationBloc:A,playEpisode:E}),(0,s.jsx)(e5.Z,{})]}):(0,s.jsx)(s.Fragment,{})},getContentQuery:(e,t)=>{let{thumbnailsPerRow:n,rowsPerPage:r,categoryIds:i,linkType:a,pageLink:o}=t;if(!i||0===i.length)return;let s="".concat(e,"_props");return{query:"\n        ".concat(e,": getContent(props:$").concat(s,"){\n          items{\n            ").concat("slug\ntitle\nchapo\nimagePrincipale {\n        medias {\n          format\n          url\n        }\n        specificAttributes {\n          alternativeText\n        }\n      }","\n          }\n          seeMoreSlug\n        }\n      "),variables:{[s]:{size:n*r,categoryIds:i,seeMoreId:"reference"===a?o:void 0,imageFilter:"whatever"}},types:{[s]:"ContentQuery!"}}},name:"remonteePodcasts"},{Component:e=>{let{title:t,socialNetwork:n,url:r,liftType:i,blocId:a}=e;if(!n||!r||!i)return(0,s.jsx)(s.Fragment,{});let o=(e,t)=>{switch(n){case"facebook":return(0,s.jsx)(nP,{url:r,liftType:e,...t});case"instagram":return(0,s.jsx)(nO,{url:r,liftType:e,...t});case"twitter":return(0,s.jsx)(nR,{url:r,liftType:e,...t});case"tiktok":return(0,s.jsx)(nD,{url:r,liftType:e,...t})}};return(0,s.jsx)(tD,{category:"socialNetwork",children:(0,s.jsxs)("div",{style:{display:"flex",flexDirection:"column"},id:a,children:[t&&(0,s.jsx)(c.Z,{title:t}),i&&(0,s.jsx)(tI,{heightRatio:"instagram"===n?2:1.5,margin:"0 0 5rem 0",children:e=>o(i,e)})]})})},name:"remonteeReseaux"},{Component:e=>{let{socialNetworks:t,socialNetworksFromModel:n,pageTitle:r,blocId:i,page:a}=e,o=t&&t.length>0?t:n&&n.length>0?n:void 0;return o?(0,s.jsx)(tv,{socialNetworks:o,pageTitle:r,blocId:i,page:a}):(0,s.jsx)(s.Fragment,{})},name:"reseauxsociaux"},{Component:e=>{let{title:t,sliderType:n,seeMoreLink:r,linkLabel:i,externalLink:a,items:o,linkType:u,seeMoreSlug:c,formatImage:d,autoplay:m,slidesPerView:v=1,slidesPerViewMd:y,slidesPerViewSm:b,slidesPerViewXs:A,displayedElements:E,blocId:w,showArrows:x,categoryIds:T,maxSize:S=6,pageLink:C,slug:k,aside:I=!1,playEpisode:L,autoplayVideo:P,blurSides:O}=e,[R,D]=(0,l.useState)(),[N,M]=(0,l.useState)(!1),F=tl(k),B=(0,p.S)().group81,U=(0,_.oR)(eQ.h).zone.zoneId,[V,z]=(0,l.useState)(U),q=tl(T),Q=["slug","id","episodePodcast",...E.map(e=>j.MS[e])],H=(0,l.useContext)(f.lv);return((0,l.useEffect)(()=>{(F&&F!==k||JSON.stringify(T)!==JSON.stringify(q)||U!==V)&&(M(!0),z(U),h.ZP.content.getContent(H,{categoryIds:T,size:S,seeMoreId:"reference"===u?C:void 0,imageFilter:"video"===n?"video":"image"},!1,Q).then(e=>{D(e.items),M(!1)}).catch(()=>{D([])}).finally(()=>M(!1)))},[k,U,T]),(!R||0!==R.length)&&(R||o)&&(R||!o||(null==o?void 0:o.length)!==0))?N?(0,s.jsx)("div",{className:"slider-responsive-height",style:{display:"flex",alignItems:"center",justifyContent:"center"},children:(0,s.jsx)("div",{className:"loader",style:{width:"80px",height:"80px"}})}):R&&R.length||!R&&o&&(null==o?void 0:o.length)>0?(0,s.jsx)("div",{className:"slider-responsive-height",children:(0,s.jsx)(ty.Z,{title:t,hideResume:B&&!E.find(e=>["title","date","chapo","category","subcategory","author"].includes(e)),mode:n,items:tb((F&&F!==k||JSON.stringify(T)!==JSON.stringify(q)||U!==V?R:o)||[],n,d&&!O?d:"original",E,L),linkLabel:r?i||"Voir plus":void 0,linkHref:"free"===u?a:c||void 0,autoplay:m,mediaRatio:(0,g.YR)(d||"original"),blocId:w,slidesPerViewConfig:{default:v,md:y,sm:b,xs:A},showArrows:x,aside:I,autoplayVideo:P,blurSides:O,preventForceRatio:!0})}):(0,s.jsx)("div",{className:"slider-responsive-height",style:{display:"flex",alignItems:"center",justifyContent:"center"},children:(0,s.jsx)("div",{className:"loader",style:{width:"80px",height:"80px"}})}):(0,s.jsx)(s.Fragment,{})},getContentQuery:(e,t)=>{let{displayedElements:n,categoryIds:r,linkType:i,pageLink:a,sliderType:o,maxSize:s}=t;if(!r||0===r.length)return;let l="".concat(e,"_props"),u=["slug","id","episodePodcast",...n.map(e=>j.MS[e])];return{query:"\n        ".concat(e,": getContent(props:$").concat(l,"){\n          items{\n            ").concat(u.join("\n"),"\n          }\n          seeMoreSlug\n        }\n      "),variables:{[l]:{size:s||6,categoryIds:r,seeMoreId:"reference"===i?a:void 0,imageFilter:"video"===o?"video":"image"}},types:{[l]:"ContentQuery!"}}},name:"slider"},{Component:e=>{var t;let{title:n,programmation:r,formatImage:i,slidesPerView:a=1,slidesPerViewMd:o,slidesPerViewSm:u,slidesPerViewXs:c,displayedElements:d,seeMoreLink:p,linkLabel:m,externalLink:v,linkType:y,seeMoreSlug:b,autoplay:A,blocId:E,showArrows:w,aside:x,blurSides:T}=e,S=(0,l.useContext)(f.lv),{timeZone:_}=h.ZP.Radio(S);if(!(null==r?void 0:r.length))return(0,s.jsx)(s.Fragment,{});let C=new Date().getDay(),k=r.find(e=>e.label===nE[C]);return(null==k?void 0:null===(t=k.subItems)||void 0===t?void 0:t.length)?(0,s.jsx)(s.Fragment,{children:(0,s.jsx)(ty.Z,{blocId:E,title:n,mode:"image",items:nx(k.subItems,i&&!T?i:"original",d,_),linkLabel:p?m||"Voir plus":void 0,linkHref:"free"===y?v:b||void 0,autoplay:A,mediaRatio:(0,g.YR)(i||"large"),slidesPerViewConfig:{default:a,md:o,sm:u,xs:c},showArrows:w,aside:x,blurSides:T})}):(0,s.jsx)(s.Fragment,{})},getContentQuery:(e,t)=>{let{showCategoryId:n,pageLink:r,linkType:i}=t;if(!n)return;let a="".concat(e,"_props");return{query:"\n        ".concat(e,": Programmation(props:$").concat(a,"){\n          programmation {\n            label\n            subItems {\n              ").concat("slug\n    title\n    chapo\n    imagePrincipale {\n      medias {\n        format\n        url\n      }\n      specificAttributes {\n        alternativeText\n      }\n    }\n    startHours\n    startMinutes\n    endHours\n    endMinutes\n    animatorsNames\n    ","\n            }\n          }     \n          seeMoreSlug     \n        }\n      "),variables:{[a]:{categoryId:n,seeMoreId:"reference"===i?r:void 0}},types:{[a]:"ProgrammationQuery!"}}},name:"sliderEmissions"},{Component:e=>{var t;let{content:n,blocId:r,titleColorText:i,hasBorder:a,borderColor:o}=e,u=(0,l.useContext)(f.lv),c=null===(t=h.ZP.Radio(u).theme)||void 0===t?void 0:t.useMainColorForTitles,d=(0,p.S)(),m=d.rossel,g=d.joinAvailable,v={...i?{c
25olor:"".concat(i," !important")}:void 0,...a?{borderTopWidth:"6px",borderBottomWidth:"6px",borderLeftWidth:"0px",borderRightWidth:"0px",borderStyle:"solid",borderColor:o}:void 0,display:"inline-block",padding:"10px 30px"};return n?m?(0,s.jsx)("div",{style:{textAlign:"center",marginBottom:"4rem"},children:(0,s.jsx)("h1",{id:r,className:"h1 block title ".concat(!i&&c?" text-primary":""),style:v,children:n})}):g?(0,s.jsx)("h1",{id:r,className:"h1 block title join".concat(c?" text-primary":""),children:n}):(0,s.jsx)("h1",{id:r,className:"h1 block title".concat(c?" text-primary":""),children:n}):(0,s.jsx)(s.Fragment,{})},name:"titre"},{Component:e=>{let{content:t,titleType:n="dotted",titleColorText:r,hasBorder:i,borderColor:a,subtitle:o}=e,l=(0,p.S)().rossel,u=!!t||!!o,d={...r?{color:"".concat(r," !important")}:void 0,...i?{borderTopWidth:"6px",borderBottomWidth:"6px",borderLeftWidth:"0px",borderRightWidth:"0px",borderStyle:"solid",borderColor:a}:void 0};return l&&u?"dotted"===n&&t?(0,s.jsx)("div",{className:"block",children:(0,s.jsx)(c.Z,{title:t})}):"simple"===n&&t?(0,s.jsx)("div",{className:"event titleInternal",children:(0,s.jsx)("div",{className:"event-container",style:{backgroundColor:"transparent"},children:(0,s.jsx)("div",{className:"event-subtitle",children:t})})}):(0,s.jsx)("div",{className:"event titleInternal",children:(0,s.jsxs)("div",{className:"event-container",style:{backgroundColor:"transparent"},children:[o&&(0,s.jsx)("div",{className:"event-subtitle",children:o}),t&&(0,s.jsx)("h2",{className:"event-title",style:d,children:t})]})}):(0,s.jsx)(s.Fragment,{})},name:"titreInterieur"},{Component:e=>{let{thumbnailsStyle:t,thumbnailsPerRow:n,rowsPerPage:r,imagesStyle:i,title:a,titleOnModel:o,liftsType:u,seeMoreLink:c,linkLabel:d,linkType:p,externalLink:m,seeMoreSlug:g,format:v,displaySearch:b,blocId:A,page:E}=e,[w,x]=l.useState([]),[C,k]=l.useState("starting"),[I,L]=l.useState(),[P,O]=l.useState(!0),R=l.useContext(f.lv),D=n*r||4,N=(0,_.K3)({store:T.h,keys:[],fn:e=>e.idMds||null}),M=e=>{fetch("https://www.lesindesradios.fr/servicesimb/topArtistes?version=6&rid=".concat(e)).then(e=>{if(e&&200===e.status)return e.json()}).then(e=>{if(e&&"ok"===e.status){let t=e.data,n=null==t?void 0:t.filter((e,t)=>t<D).map(e=>({id:e.nomArtiste,mdsId:"",title:{id:e.nomArtiste,artist:e.nomArtiste,title:"",coverUrl:"https://www.lesindesradios.fr/servicesimb/images?version=6&iid=".concat(e.iidPhoto,"&width=200"),coverId:""},timestamp:""}));n&&(x(n),k("loaded"))}else k("error")})},j=(e,t)=>{let n=t||N;if(n){let t=(null==e?void 0:e.getTime())||Date.now();return h.ZP.titles.getTitles(R,D,n,new Date(t-t%6e4)).then(e=>{x(tT(e.map(e=>({...e,title:{...e.title,coverUrl:e.title.coverUrl||"https://www.lesindesradios.fr/servicesimb/images?version=6&iid=".concat(e.title.coverId,"&width=200")}})))),k("loaded")}).catch(e=>{tx.error(e),k("loaded")})}return Promise.resolve()},F=h.ZP.Radio(R),B=()=>O(!0),U=()=>O(!1);l.useEffect(()=>(window.addEventListener("focus",B),window.addEventListener("blur",U),()=>{window.removeEventListener("focus",B),window.removeEventListener("blur",U)}),[]),l.useEffect(()=>{if(N&&P&&(!b||"starting"===C)){let e;L(N);let t=()=>{"broadcastTracks"===u?j().then(()=>{b||(e=setTimeout(t,36e4))}).catch(()=>{k("loaded"),b||(e=setTimeout(t,36e4))}):M(N)};return S.Z.SSR||t(),()=>{e&&clearTimeout(e)}}},[D,N,b,P]);let V=["starting","loading"].includes(C),z=b?{loading:V,radioStream:I,onSearch:e=>{if(L(e.radio),e.date&&e.time){var t,n,r;let i=e.time.split(":");k("loading"),j((t=function(e,t){(0,en.Z)(2,arguments);var n=(0,ei.Z)(e),r=(0,ee.Z)(t);return n.setHours(r),n}(function(e,t){(0,en.Z)(2,arguments);var n=(0,ei.Z)(e),r=(0,ee.Z)(t);return n.setMinutes(r),n}((0,tE.Z)(new Date(e.date)),parseInt(i[1])),parseInt(i[0])),n=F.timeZone,t instanceof Date&&(t=(0,eJ.Z)(t,"yyyy-MM-dd'T'HH:mm:ss.SSS")),(r=function(e,t){if(null==e)throw TypeError("assign requires that input parameter not be null or undefined");for(var n in t=t||{})t.hasOwnProperty(n)&&(e[n]=t[n]);return e}({},void 0)).timeZone=n,(0,tw.Z)(t,r)),e.radio)}}}:{loading:V};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(tA.Z,{blocId:A,title:a||o||"",contents:w,columns:n||1,orientation:"horizontal"===t?"row":"reverseHorizontal"===t?"row-reverse":"column",rounded:"roundedEdges"===i,linkLabel:c?d||"Voir plus":void 0,linkHref:"free"===p?m:g||void 0,guttersClassName:(0,y.G)(v),useBadge:"topTracks"===u,displaySearch:b,idMds:N,...z,page:E}),(0,s.jsx)(e5.Z,{})]})},getContentQuery:(e,t)=>{let{linkType:n,pageLink:r}=t,i="".concat(e,"_props");return{query:"\n        ".concat(e,": getContent(props:$").concat(i,"){\n          seeMoreSlug\n        }\n      "),variables:{[i]:{size:0,seeMoreId:"reference"===n?r:void 0}},types:{[i]:"ContentQuery!"}}},name:"remonteeTitresMusicaux"},{Component:e=>{let t,{embedUrl:n,blocId:r,previewUrl:i,url:a}=e;if(!S.Z.SSR){let e=(0,nu.useRouter)();t=null!=e&&!!e.query.autoplayVideo}return n?(0,s.jsx)(nl,{embedUrl:n,blocId:r,autoplay:t,previewUrl:i}):a?(0,s.jsx)(s.Fragment,{children:(0,s.jsxs)("video",{controls:!0,preload:"metadata",autoPlay:t,poster:i,style:{width:"100%",height:"100%"},children:[(0,s.jsx)("source",{src:(0,g.H4)(a),type:"video/mp4"}),"La vid\xe9o n'est pas support\xe9e"]})}):(0,s.jsx)(s.Fragment,{})},name:"video"},{Component:e=>{let t,{embedUrl:n,blocId:r,previewUrl:i,url:a}=e;if(!S.Z.SSR){let e=(0,nu.useRouter)();t=null!=e&&!!e.query.autoplayVideo}if(!n)return a?(0,s.jsx)(s.Fragment,{children:(0,s.jsxs)("video",{controls:!0,preload:"metadata",autoPlay:t,poster:i,style:{width:"100%",height:"100%"},children:[(0,s.jsx)("source",{src:(0,g.H4)(a),type:"video/mp4"}),"La vid\xe9o n'est pas support\xe9e"]})}):(0,s.jsx)(s.Fragment,{});let o=i?(0,g.tB)(i,void 0,"jpeg"):void 0;return(0,s.jsxs)(s.Fragment,{children:[o&&(0,s.jsxs)(ed(),{children:[(0,s.jsx)("meta",{property:"twitter:image:alt",content:i}),(0,s.jsx)("meta",{property:"og:image:alt",content:i}),(0,s.jsx)("meta",{property:"twitter:image",content:o}),(0,s.jsx)("meta",{property:"og:image",content:o})]}),(0,s.jsx)(nl,{embedUrl:n+"?enablejsapi=1",blocId:r,autoplay:t})]})},name:"videoPrincipale"},{Component:()=>{let e=(0,_.oR)(nh).q;return(0,s.jsx)(nc.Z,{customKey:"ResearchForm",color:"primary",children:(0,s.jsx)("div",{className:"input-group mb-3",children:(0,s.jsx)("input",{className:"form-control form-control-lg",type:"text",placeholder:"Rechercher...",onChange:e=>nv.searchEvent({q:e.target.value}),value:e})})})},name:"champDeRecherche"},{Component:()=>{let{results:e,q:t,loading:n}=(0,_.oR)(nh),r=(0,p.S)().group81;return(0,s.jsxs)(nc.Z,{customKey:"ResearchResults",children:[(0,s.jsxs)("div",{className:"block",children:[(0,s.jsx)(c.Z,{title:e?0===e.pagination.total?"Aucun r\xe9sultat pour ".concat(t):"".concat(e.pagination.total," r\xe9sultat").concat(e.pagination.total>1?"s":""," pour ").concat(t):"Saisissez un texte \xe0 rechercher"}),e&&e.items.map(e=>(0,s.jsx)(u.Z,{imageUrl:e.imagePrincipale&&e.imagePrincipale.medias?e.imagePrincipale.medias[0].url:e.videoPrincipale?e.videoPrincipale.previewUrl:"",imageAlt:e.imagePrincipale&&e.imagePrincipale.specificAttributes&&e.imagePrincipale.specificAttributes.alternativeText||"",linkHref:e.slug,date:e.updatedAt?new Date(e.updatedAt):void 0,title:e.title,lead:e.chapo||"",orientation:"row3/7",preventForcedOverlay:r},e.slug)),n&&(0,s.jsx)("div",{className:"loader",style:{marginTop:"20px",marginLeft:"auto",marginRight:"auto"}})]}),e&&e.items.length<e.pagination.total&&(0,s.jsx)("div",{style:{display:"flex",marginTop:"20px",justifyContent:"center"},children:(0,s.jsx)(k.Z,{customIcon:"chevron-down",status:"active",onClick:()=>{nv.loadMoreEvents()}})},"chevron")]})},name:"resultatsDeRecherche"},{Component:e=>{var t;let{playlistId:n,label:r,rounded:i,playlist:a,blocId:o,page:l}=e;return n&&a&&(null===(t=a.titles)||void 0===t?void 0:t.length)?(0,s.jsx)(nB,{title:r||a.label,titles:a.titles,rounded:i,blocId:o,page:l}):(0,s.jsx)(s.Fragment,{})},getContentQuery:(e,t)=>{let{playlistId:n}=t;if(!n)return;let r="".concat(e,"_props");return{query:"\n        ".concat(e,": Playlist(props:$").concat(r,"){\n          playlist {\n            label\n            titles {\n              id\n              title\n              artist\n              coverId\n              coverUrl\n              spotifyId\n              deezerId\n              }\n            }\n          }\n      "),variables:{[r]:{playlistId:n}},types:{[r]:"PlaylistQuery!"}}},name:"playlist"},{Component:e=>{let{blocId:t,dropdownDirection:n="down",dedicatedStream:r,hasBroadcast:i,page:a}=e,o=(0,O.kC)().isMobile,[u,c]=(0,l.useState)(!o&&(i||!1));return(0,l.useEffect)(()=>{c(!!i&&!o&&i)},[o]),(0,s.jsx)(nU.ZP,{blocId:t,size:"large",dropdownDirection:n,dedicatedStreamId:r,page:a,position:"Body",hasBroadcast:u})},name:"player"},{Component:e=>{let{blocId:t,dedicatedStream:n,hasBroadcast:r,page:i}=e;return(0,s.jsx)(nU.ZP,{blocId:t,size:"large",dropdownDirection:"down",playerSectionBloc:!0,dedicatedStreamId:n,page:i,position:"Body",hasBroadcast:r})},name:"playerSectionBloc"},{Component:e=>{let{title:t,slider:n,autoPlay:r,displayedElements:i,slidesPerView:a,blocId:o,thumbnailsStyle:d,thumbnailsPerRow:m,overrideRules:y,titleUnderlineBloc:b,zoomBloc:A,fullWidthBloc:E,borderBottomBloc:w,leadAnimationBloc:x,playE
25pisode:T}=e,[S,_]=l.useState([]),C=(0,l.useContext)(f.lv),k=h.ZP.Radio(C),I=(0,p.S)(),L=(0,O.kC)(),P=I.group81;l.useEffect(()=>{h.ZP.podcast.getAllPodcasts(C,i).then(e=>{_(e)})},[]);let R=[],D=[];S.forEach(e=>{R.push({title:e.title,linkHref:e.categorySlug,lead:e.description?(0,v.CL)(e.description):void 0,imageSrc:e.imageUrl}),D.push({title:e.title,linkHref:e.categorySlug,sponsored:!1,imageUrl:e.imageUrl,lead:e.description?(0,v.CL)(e.description):void 0})});let N=P?L.isMdOrMore?"4-3":"1-1":void 0,M=P&&!L.isMdOrMore,j=P&&{xs:2,sm:2,md:2,default:a||1};return(0,s.jsx)(s.Fragment,{children:n||M?(0,s.jsx)(s.Fragment,{children:(0,s.jsx)(ty.Z,{title:t,mode:"image",items:R,autoplay:r,slidesPerViewConfig:j||{default:a||1},hideResume:P,mediaRatio:N||(0,g.YR)("square"),blocId:o,overrideRules:y,titleUnderlineBloc:b,zoomBloc:A,fullWidthBloc:E,borderBottomBloc:w,leadAnimationBloc:x,playeEpisode:T})}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(c.Z,{title:t||"Remont\xe9e de podcast"}),(0,s.jsx)("div",{className:"row row-alt-".concat(m," grid"),children:D.map(e=>{var t,n,r,i,a,o,l,c,h,f,p,g,v,S,_;return(0,s.jsx)("div",{className:"col-".concat(m," col-md-1"),children:(0,s.jsx)(u.Z,{imageUrl:e.imageUrl,imageAlt:e.imageAlt,linkHref:e.linkHref,title:e.title,noResume:P,mediaRatio:N,categories:e.categories,orientation:"horizontal"===d?"row":"reverseHorizontal"===d?"row-reverse":"column",lead:e.lead,titleUnderline:y?b:(null===(r=k.theme)||void 0===r?void 0:null===(n=r.rossel)||void 0===n?void 0:null===(t=n.thumbnail)||void 0===t?void 0:t.titleUnderline)||void 0,zoom:y?A:(null===(o=k.theme)||void 0===o?void 0:null===(a=o.rossel)||void 0===a?void 0:null===(i=a.thumbnail)||void 0===i?void 0:i.zoom)||void 0,leadAnimation:y?x:(null===(h=k.theme)||void 0===h?void 0:null===(c=h.rossel)||void 0===c?void 0:null===(l=c.thumbnail)||void 0===l?void 0:l.leadAnimation)||void 0,overlayThumbnail:y?E:(null===(g=k.theme)||void 0===g?void 0:null===(p=g.rossel)||void 0===p?void 0:null===(f=p.thumbnail)||void 0===f?void 0:f.fullWidth)||void 0,borderBottom:y?w:(null===(_=k.theme)||void 0===_?void 0:null===(S=_.rossel)||void 0===S?void 0:null===(v=S.thumbnail)||void 0===v?void 0:v.borderBottom)||void 0,isEpisode:T},e.title)},e.title)})})]})})},name:"remonteeEntitesPodcasts"},{Component:e=>{let{title:t,formatImage:n,items:r,thumbnailsStyle:i,slug:a,overrideRules:o,titleUnderlineBloc:d,zoomBloc:p,fullWidthBloc:m,borderBottomBloc:g,leadAnimationBloc:v,numberOfItems:y,blurSides:b}=e,A=(0,l.useContext)(f.lv),E=h.ZP.Radio(A),w=(e=>{let t=[];return r.forEach(n=>{e.includes(n.slug)||n.slug===a||t.push(n)}),t})(JSON.parse(nV.Z.getItem("pagesVisited")||"[]")),x=[];for(let e=0;e<y;e++){let t=(0,j.g_)(A,w,b?"original":n)[e];t&&x.push(t)}return!x||x.length<1?(0,s.jsx)(s.Fragment,{}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(c.Z,{title:t||(1===y?"Dernier article":"Derniers Articles")}),(0,s.jsx)("div",{className:"row row-alt-".concat(1===y?"1":"2"," grid"),children:x.map(e=>{var t,n,r,a,l,c,h,f,A,w,x,T,S,_,C;return(0,s.jsx)("div",{className:"col-".concat(1===y?"1":"2"," col-md-1 "),children:(0,s.jsx)(u.Z,{imageUrl:e.imageUrl,imageAlt:e.imageAlt,linkHref:e.linkHref,title:e.title,date:e.date,lead:e.lead,author:e.author,categories:e.categories,orientation:"horizontal"===i?"row":"column",oneThumbnail:!0,titleUnderline:o?d:(null===(r=E.theme)||void 0===r?void 0:null===(n=r.rossel)||void 0===n?void 0:null===(t=n.thumbnail)||void 0===t?void 0:t.titleUnderline)||void 0,zoom:o?p:(null===(c=E.theme)||void 0===c?void 0:null===(l=c.rossel)||void 0===l?void 0:null===(a=l.thumbnail)||void 0===a?void 0:a.zoom)||void 0,leadAnimation:o?v:(null===(A=E.theme)||void 0===A?void 0:null===(f=A.rossel)||void 0===f?void 0:null===(h=f.thumbnail)||void 0===h?void 0:h.leadAnimation)||void 0,overlayThumbnail:o?m:(null===(T=E.theme)||void 0===T?void 0:null===(x=T.rossel)||void 0===x?void 0:null===(w=x.thumbnail)||void 0===w?void 0:w.fullWidth)||void 0,borderBottom:o?g:(null===(C=E.theme)||void 0===C?void 0:null===(_=C.rossel)||void 0===_?void 0:null===(S=_.thumbnail)||void 0===S?void 0:S.borderBottom)||void 0,blurSides:b})},e.title)})})]})},getContentQuery:(e,t)=>{let{displayedElements:n,pageCategories:r,modelContentType:i}=t,a="".concat(e,"_props"),o=["slug",...n.map(e=>j.MS[e])];return{query:"\n      ".concat(e,": getContent(props:$").concat(a,"){\n       items {\n         ").concat(o.join("\n"),"\n       }\n      }\n    "),variables:{[a]:{size:20,imageFilter:"imageOrVideo",categoryIds:r,modelContentType:i,modelType:"CONTENT"}},types:{[a]:"ContentQuery!"}}},name:"dernierArticle"},{Component:e=>{let{title:t,slider:n,autoPlay:r,imageFormat:i,items:a,seeMoreLink:o,linkLabel:d,externalLink:p,linkType:m,seeMoreSlug:v,slidesPerView:y,blocId:b,selectedItems:A,images:E,thumbnailsPerRow:w,thumbnailsStyle:x,overrideRules:T,titleUnderlineBloc:S,zoomBloc:_,fullWidthBloc:C,borderBottomBloc:k,leadAnimationBloc:I,aside:L,playEpisode:P,autoplayVideo:O,blurSides:R}=e,D=(0,l.useContext)(f.lv),N=h.ZP.Radio(D);if(!A||0===A.length)return(0,s.jsx)(s.Fragment,{});let M=A.reduce((e,t)=>
25{var n,r,o;if("reference"===t.type){let o=null==a?void 0:a.find(e=>e.id===t.pageLink);if(o){let{imagePrincipale:t}=o,a=t&&t.medias&&(null===(n=(0,g.nv)(t.medias,R?"original":i||"square"))||void 0===n?void 0:n.url);e.push({title:o.title||void 0,lead:o.chapo||void 0,linkHref:o.slug,imageSrc:a,imageAlt:(null==t?void 0:t.specificAttributes)&&(null==t?void 0:null===(r=t.specificAttributes)||void 0===r?void 0:r.alternativeText)||"",isEpisode:!!P&&(o.episodePodcast||!1)})}}else if(t.imageFieldName&&E){let n=null==E?void 0:E.find(e=>e.id===t.imageFieldName),r=(null==n?void 0:n.medias)&&(null===(o=(0,g.nv)(n.medias,R?"original":i||"square"))||void 0===o?void 0:o.url);e.push({imageSrc:r,imageAlt:"",linkHref:t.externalLink||"",title:t.externalTitleFieldName,lead:t.externalChapoFieldName,newPage:t.newPage})}return e},[]);return(0,s.jsx)(s.Fragment,{children:n?(0,s.jsx)(s.Fragment,{children:(0,s.jsx)(ty.Z,{title:t,mode:"image",items:M,linkLabel:o?d||"Voir plus":void 0,linkHref:"free"===m?p:v||void 0,autoplay:r,slidesPerViewConfig:{default:y||1},mediaRatio:(0,g.YR)(i||"square"),blocId:b,overrideRules:T,titleUnderlineBloc:S,zoomBloc:_,fullWidthBloc:C,borderBottomBloc:k,leadAnimationBloc:I,aside:L,autoplayVideo:O,blurSides:R})}):(0,s.jsxs)("div",{className:"block",children:[(0,s.jsx)(c.Z,{title:t||"Remont\xe9e de vignettes libres"}),(0,s.jsx)("div",{className:"row row-alt-".concat(w," grid"),children:M.map((e,t)=>{var n,r,a,o,l,c,d,h,f,p,m,v,y,b,A;return(0,s.jsx)("div",{className:"col-".concat(w," col-md-1"),children:(0,s.jsx)(u.Z,{imageUrl:e.imageSrc,imageAlt:e.imageAlt,linkHref:e.linkHref,title:e.title,date:e.date,orientation:"horizontal"===x?"row":"reverseHorizontal"===x?"row-reverse":"column",lead:e.lead,author:e.author,mediaRatio:(0,g.YR)(i||"square"),newPage:e.newPage,titleUnderline:T?S:(null===(a=N.theme)||void 0===a?void 0:null===(r=a.rossel)||void 0===r?void 0:null===(n=r.thumbnail)||void 0===n?void 0:n.titleUnderline)||void 0,zoom:T?_:(null===(c=N.theme)||void 0===c?void 0:null===(l=c.rossel)||void 0===l?void 0:null===(o=l.thumbnail)||void 0===o?void 0:o.zoom)||void 0,leadAnimation:T?I:(null===(f=N.theme)||void 0===f?void 0:null===(h=f.rossel)||void 0===h?void 0:null===(d=h.thumbnail)||void 0===d?void 0:d.leadAnimation)||void 0,overlayThumbnail:T?C:(null===(v=N.theme)||void 0===v?void 0:null===(m=v.rossel)||void 0===m?void 0:null===(p=m.thumbnail)||void 0===p?void 0:p.fullWidth)||void 0,borderBottom:T?k:(null===(A=N.theme)||void 0===A?void 0:null===(b=A.rossel)||void 0===b?void 0:null===(y=b.thumbnail)||void 0===y?void 0:y.borderBottom)||void 0,isEpisode:e.isEpisode,blurSides:R},e.title)},e.title||t)})})]})})},getContentQuery:(e,t)=>{let{displayedElements:n=[],selectedItems:r}=t,i="".concat(e,"_props"),a=["id","slug","episodePodcast",...n.map(e=>j.MS[e])];if(!r||0===r.length)return;let o=r.filter(e=>"free"===e.type&&!!e.imageFieldName).map(e=>e.imageFieldName),s=r.filter(e=>"reference"===e.type&&e.pageLink),l={[i]:{size:s&&s.length,imageFilter:n.indexOf("imageOrVideo")>-1?"imageOrVideo":"whatever",ids:s&&s.map(e=>e.pageLink),imageIds:o}};return{query:"\n    ".concat(e,": getContent(props:$").concat(i,"){\n      items{\n        ").concat(a.join("\n"),"\n      }\n      seeMoreSlug\n      images {\n        id\n        medias {\n          format\n          url\n        }\n        specificAttributes {\n          alternativeText\n        }\n      }\n    }\n  "),variables:l,types:{[i]:"ContentQuery!"}}},name:"remonteeVignettesLibres"},{Component:e=>{let{eventSlug:t,pageContent:n,showSubtitle:r,subtitle:i,slug:a,name:o,takeEventName:u,titleBorderColor:c}=e;if(n){var d,h,f,p,m,g;let e=JSON.parse(n.blocsData),v=null==e?void 0:null===(p=e.corps)||void 0===p?void 0:null===(f=p.blocsData)||void 0===f?void 0:null===(h=f.evenementDate)||void 0===h?void 0:null===(d=h.eventDates)||void 0===d?void 0:d[0];v||(v=null==e?void 0:null===(g=e.evenementDate)||void 0===g?void 0:null===(m=g.eventDates)||void 0===m?void 0:m[0]);let y=!1;if(y=a?a===t:window.location.pathname===t,v&&v.startDate){let[e]=l.useState(()=>new Date(v.startDate).getTime()),[n]=l.useState(()=>new Date().getTime());if((e-n)/1e3>0){let[a,d]=l.useState(()=>(e-n)/1e3);return l.useEffect(()=>{a>0&&setTimeout(()=>d(a-1),1e3)},[a]),(0,s.jsx)(nz,{days:Math.floor(a/86400),hours:Math.floor(a%86400/3600),minutes:Math.floor(a%3600/60),seconds:Math.floor(a%60),showSubtitle:r,subtitle:i,name:o,isEventPage:y,eventSlug:t,takeEventName:u,titleBorderColor:c})}}}return(0,s.jsx)(s.Fragment,{})},getContentQuery:(e,t)=>{let{event:n}=t;if(n)return{query:"\n        ".concat(e,': PageById(id:"').concat(n,'"){\n          eventSlug: slug\n          name\n          pageContent {\n            blocsData\n          }\n        }\n      ')}},name:"countdownEvent"},{Component:e=>
25{let{title:t,selectedStreams:n,hasStopButton:r,hasMinified:i,slider:a,autoPlay:o,page:u,blocId:d,showArrows:p,linesMobileDisplay:m,columnsMobileDisplay:v}=e,[y,b]=l.useState([]),A=(0,l.useContext)(f.lv);l.useEffect(()=>{b(h.ZP.Radiostreams(A).concat(h.ZP.Webradios(A)).filter(e=>!0===e.displayOnWebsite))},[]);let E=[],w=(null==n?void 0:n.length)?y.filter(e=>n.includes(e.id)):y;return(a&&w.forEach(e=>{E.push({imageSrc:e.imageUrl,idMds:e.idMds,stream:e,page:u,hasStopButton:r})}),a||w.length)?(0,s.jsxs)("div",{className:"block Broadcasts HasWebradio",children:[(0,s.jsx)(c.Z,{title:t||"Les titres"}),(0,s.jsx)("div",{className:"".concat(v&&2===v&&i?a?"row gutters-none minifiedSeveralColumnsRowSlider":"row gutters-none minifiedSeveralColumnsRow":"row gutters-none"),children:a?(0,s.jsx)(s.Fragment,{children:(0,s.jsx)(nW,{title:t,mode:"image",items:E,autoplay:o,mediaRatio:(0,g.YR)("square"),blocId:d,hasMinified:i,showArrows:p,linesMobile:m,columnsMobile:v})}):(0,s.jsx)(s.Fragment,{children:w&&w.map(e=>(0,s.jsx)(nK,{stream:e,idMds:e.idMds,hasStopButton:r,hasMinified:i,page:u,slider:!1,columnsMobile:v},e.id))})})]}):(0,s.jsx)(s.Fragment,{})},name:"remonteeTitresMultiflux"},{Component:e=>{var t,n;let{blocId:r,title:i,subtitle:a,titleOnModel:o,subtitleOnModel:u,dedicatedStream:c,page:d}=e,m=l.useContext(f.lv),[g,v]=(0,l.useState)(),y=(0,p.S)().group81,b=(0,_.oR)(eQ.h).zone;return(0,l.useEffect)(()=>{if(y){var e;let t=h.ZP.Zones(m);v([{id:"radios",label:(null===(e=t.find(e=>e.id===b.zoneId))||void 0===e?void 0:e.label)||t[0].label,linkHref:"#",subItems:t.map(e=>({id:e.id,label:e.label,linkHref:"#",linkAction:()=>{T.ZP.actions.setMedia({id:e.stream.id,type:"RADIO"===e.stream.type?"radio":"webradio",play:!0,idMds:e.stream.idMds,imageUrl:e.stream.imageUrl,altCover:e.stream.altCover,hasStartOver:"Hls"===e.stream.streamFormat&&e.stream.hasStartOver,soundcastEnabled:e.stream.soundcastEnabled,...(0,nG.hL)(e.stream)}),eQ.Nw.setZone(e.id),(0,nU.Be)("Webradio","bloc",void 0,e.id,e.label)}}))}])}},[y,r,d]),(0,s.jsxs)("div",{className:"PlayerBouton ".concat(y?"group1981":""),children:[y&&g&&(null===(n=g[0])||void 0===n?void 0:null===(t=n.subItems)||void 0===t?void 0:t.length)>=2&&(0,s.jsx)("div",{className:"zones group1981",children:(0,s.jsx)(nZ.Z,{items:g})}),(0,s.jsx)(nU.ZP,{blocId:r,size:"small",dropdownDirection:"down",playerBouton:!0,dedicatedStreamId:c,page:d,position:"Body",custom1981:y}),(i||o)&&(0,s.jsx)("div",{className:"title h1 border-title",children:i||o}),(a||u)&&(0,s.jsx)("div",{className:"subtitle",children:a||u})]})},name:"playerBouton"},{Component:e=>{var t,n,r;let{medias:i,formatImage:a,title:o,credit:u,afficherCreditLegende:c}=e,d=i&&i.length>0&&(0,g.nv)(i,a||"original"),p=d&&(null==d?void 0:d.url)?(0,g.tB)(d.url,void 0,"jpeg"):void 0,m=c&&u,v=(0,l.useContext)(f.lv);return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(ed(),{children:[(0,s.jsx)("meta",{property:"twitter:image:alt",content:null!=o?o:""}),(0,s.jsx)("meta",{property:"og:image:alt",content:null!=o?o:""}),d&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("meta",{property:"twitter:image",content:p}),(0,s.jsx)("meta",{property:"og:image",content:p})]}),d&&d.width&&(0,s.jsx)("meta",{name:"og:image:width",content:d.width.toString()}),d&&d.height&&(0,s.jsx)("meta",{name:"og:image:width",content:d.height.toString()}),!d&&(null===(t=h.ZP.Radio(v))||void 0===t?void 0:t.radioLogo)&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("meta",{property:"twitter:image",content:(0,g.tB)(null===(n=h.ZP.Radio(v))||void 0===n?void 0:n.radioLogo)}),(0,s.jsx)("meta",{property:"og:image",content:(0,g.tB)(null===(r=h.ZP.Radio(v))||void 0===r?void 0:r.radioLogo,void 0,"jpeg")})]})]}),m&&d&&(0,s.jsx)(s.Fragment,{children:(0,s.jsx)("div",{className:"block paragraph",style:{display:"flex",flexDirection:"column"},children:(0,s.jsx)("div",{style:{marginTop:0},children:(0,s.jsxs)("div",{className:"media-credit",children:["Cr\xe9dit image: ",u]})})})})]})},getContentQuery:(e,t)=>{let{mediaId:n}=t;if(!n)return;let r="".concat(e,"_mediaId");return{query:"\n          ".concat(e,": getMedia(mediaId:$").concat(r,"){\n            description\n            credit\n            legend\n            medias{\n              format\n              url\n              width\n              height\n            }\n            specificAttributes {\n              alternativeText\n            }\n          }\n        "),variables:{[r]:n},types:{[r]:"String!"}}},name:"imagePrincipaleOg"},n4,n8,{Component:e=>{let{title:t,zones:n,page:r,format:i}=e;return(0,s.jsx)(n6,{title:t,zones:n,page:r,format:i})},getContentQuery:(e,t)=>{let{locationZoneIds:n}=t,r="".concat(e,"_props");if(n&&(!n||!(n.length<1)))return{query:"\n        ".concat(e,": ZonesByIds(ids:$").
25concat(r,"){\n          zones\n           { \n            id\n            label\n            group\n            stream {\n              id\n              hd\n              bd\n              hls\n              idMds\n              label\n              imageUrl\n              parentId\n              displayOnWebsite\n              streamFormat\n              hasStartOver\n\n            } \n           }\n        }\n      "),variables:{[r]:n},types:{[r]:"[String!]!"}}},name:"geolocationChoice"},{Component:e=>{var t,n;let{description:r,options:i,isPersonalized:a,image:o,audio:u,blocId:c,survey:d,page:p,votesSum:m,format:v,voteOutput:y,mediaFormat:b,startDate:A,endDate:E,mediaId:w,votesOptions:x,descriptionOutput:T,creditLegendeOutput:_,alignSelf:C,widthPercentage:I,formatImage:P,linkTargetBlank:O}=e,{register:R}=(0,ez.cI)(),[D,N]=(0,l.useState)(a?null==i?void 0:null===(t=i[0])||void 0===t?void 0:t.id:void 0),[M,j]=(0,l.useState)(void 0),[F,B]=(0,l.useState)(!1),[U,V]=(0,l.useState)(!!(0,n9.D)("Sondage"+d)),[z,q]=(0,l.useState)(U),[Q,H]=(0,l.useState)(!0),[G,K]=(0,l.useState)("row"),[W,Z]=(0,l.useState)(""),[Y,X]=(0,l.useState)("160px"),[J,ee]=(0,l.useState)("initial"),[et,en]=(0,l.useState)("row"),[er,ei]=(0,l.useState)(!1),[ea,eo]=(0,l.useState)(new Date().toISOString()),[es,el]=(0,l.useState)("Les votes sont clos"),[eu,ec]=(0,l.useState)(x),[ed,eh]=(0,l.useState)(m),[ef,ep]=(0,l.useState)(i),em=S.Z.SSR?void 0:localStorage.getItem("backUser"),eg=(0,l.useContext)(f.lv),ev=S.Z.SSR?"desktop":[/Android/i,/iPhone/i,/iPad/i,/iPod/i].some(e=>navigator.userAgent.match(e))?"mobile":"desktop",ey=o&&o.medias.length>0&&(0,g.nv)(o.medias,P||"original"),eb=ey&&(null==ey?void 0:ey.url)?(0,g.tB)(ey.url):void 0;(0,l.useEffect)(()=>{a&&(null==i?void 0:i.find(e=>"Image"===e.mediaType))&&ei(!0)},[d]),(0,l.useEffect)(()=>{if(A&&new Date(A)>new Date)el("Le sondage n'a pas encore commenc\xe9. "),H(!1);else if(E&&new Date(E)>new Date){let e=new Date(ea).getTime(),t=parseInt((parseInt((Math.abs(new Date(E).getTime()-e)/1e3).toString())/60).toString()),n=parseInt((t/60).toString()),r=parseInt((n/24).toString());el("".concat(r?r>1?r+" jours ":r+" jour ":"").concat(n?n%24>1?n%24+" heures ":n%24+" heure ":"").concat(t?t%60>1?t%60+" minutes":t%60+" minute":"")+" restantes")}else E&&new Date(E)<new Date?el("Les votes sont clots"):el("")},[ea]),(0,l.useEffect)(()=>{let e=setInterval(()=>{eo(new Date().toISOString())},6e4);return()=>clearInterval(e)},[]),(0,l.useEffect)(()=>{if(em){var e;let t=JSON.parse(em);new Date(t.expiryDate||Date.now())>new Date&&(null===(e=t.profile)||void 0===e?void 0:e.length)&&t.profile.includes("SURVEYS")&&B(!0)}},[em,p]),(0,l.useEffect)(()=>{U||z?(K("column"),en("column"),X("100%"),Z("")):U||z||(Z("rgba(0, 0, 0, 0.24) 0px 3px 8px"),ee("center")),("3"===v||"mobile"===ev)&&en("column")},[U,z]);let eA=e=>{U||(D&&a?h.ZP.surveys.addVoteCount(eg,d,D).then(e=>{(null==e?void 0:e.votesOptions)&&ec(e.votesOptions),(null==e?void 0:e.options)&&ep(e.options),eh(m+1)}):!a&&e&&h.ZP.surveys.addVoteCount(eg,d,e).then(e=>{(null==e?void 0:e.votesOptions)&&ec(e.votesOptions),(null==e?void 0:e.options)&&ep(e.options),eh(m+1)}),(0,n9.d)("Sondage"+d,"voted"),V(!0),q(!0))};return ef?(0,s.jsxs)("div",{className:"Survey",style:{backgroundColor:"white",padding:"10px",margin:"10px",boxShadow:" rgba(0, 0, 0, 0.24) 0px 3px 8px",display:"inline-flex",flexDirection:"column"},children:[(0,s.jsxs)("div",{children:[o&&eb&&(0,s.jsx)("div",{className:"block paragraph",style:{display:"flex",flexDirection:"column"},children:(0,s.jsx)(tn.Z,{blocId:c,imageUrl:eb,imageAlt:o.specificAttributes&&o.specificAttributes.alternativeText||"",imageSize:"big",description:T?o.description||"":void 0,credit:_?o.credit||"":void 0,legend:_?o.legend||"":void 0,doNotForce:!!P&&"original"!==P,block:!0,widthPercentage:I,alignSelf:C,aside:"3"===v,linkTargetBlank:O})}),r&&(0,s.jsx)("div",{style:{fontWeight:"bolder",textAlign:"center"},children:(0,s.jsx)($.Z,{className:"block paragraph",id:"description",code:r})}),u&&(0,s.jsx)(L,{title:u.title,audioUrl:u.medias[0].url,audioAlt:(null===(n=u.specificAttributes)||void 0===n?void 0:n.alternativeText)||"",mediaId:w,blocId:c}),a?(0,s.jsx)("div",{style:{marginTop:25,display:er?"flex":"initial",flexFlow:et},className:"PersonalizedSurvey",children:ef&&(null==ef?void 0:ef.map(e=>(0,s.jsx)(rt,{option:e,format:v,register:R,checkedValue:D,onClick:()=>N(e.id),blocId:c,mediaFormat:b,voted:U,voteOutputFront:z,votes:eu,optionsHasImage:er})))}):(0,s.jsx)("div",{style:{display:"flex",flexDirection:"column",alignItems:J,margin:"30px"},className:"SimpleSurveyContainer",children:(0,s.jsx)("div",{className:"SimpleSurvey",style:{display:"flex",flexDirection:"".concat(G),justifyContent:"center",alignItems:"center",textAlign:"center",width:"".concat(Y),height:"auto",boxShadow:"".concat(W),borderRadius:"12px"},children:i&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(re,{voted:U||z,checkedSimpleValue:M,option:ef[0],onClick:()=>{j("optionYes"),eA("optionYes")},iconName:"thumbsUp",optionName:"optionYes",votes:eu}),(0,s.jsx)(re,{voted:U||z,checkedSimpleValue:M,option:ef[1],onClick:()=>{j("optionNo"),eA("optionNo")},iconName:"thumbsDown",optionName:"optionNo",votes:eu})]})})})]}),(0,s.jsxs)("div",{style:{display:"flex",flexDirection:"".concat("3"!==v?"row-reverse":"column"),justifyContent:"space-between",alignItems:"center",textAlign:"center"},children:[a&&!U&&(0,s.jsx)("div",{className:"surveyButton",style:{padding:"20px",paddingTop:"mobile"===ev?"20px":"",display:"".concat(z?"none":"initial")},children:(0,s.jsx)(k.Z,{status:U?"disabled":"active",label:"Voter",size:"large",onClick:()=>eA(),withoutIcon:!0})}),Q&&(!U||F)&&(0,s.jsx)("div",{className:"surveyOutputButton",color:"primary",style:{display:"".concat(z?"none":"flex"),justifyContent:"start",flex:"1",o
25pacity:"0.6",textDecoration:"underline",cursor:"pointer"},onClick:e=>{e.stopPropagation(),q(!0)},children:"Afficher les resultats"}),y&&(0,s.jsx)("div",{className:"SurveyTotalVotes",style:{padding:"20px",flex:"1"},children:ed+" votes"}),U&&(0,s.jsx)("div",{className:"SurveyTime",children:es})]})]}):(0,s.jsx)(s.Fragment,{})},getContentQuery:(e,t)=>{let{survey:n}=t;if(!n)return;let r="".concat(e,"_surveyId");return{query:"\n          ".concat(e,": Survey(surveyId:$").concat(r,"){\n            id\n            description\n            isPersonalized\n            mediaId\n            startDate\n            endDate\n            voteOutput\n            votesSum\n            mediaFormat\n            formatImage\n            descriptionOutput\n            widthPercentage\n            creditLegendeOutput\n            alignSelf\n            linkTargetBlank\n            votesOptions {\n              id\n              vote\n            }\n            options {\n              id\n              label\n              placeholder\n              mediaId\n              mediaType\n              media {\n                medias {\n                    format\n                    url\n                }\n                specificAttributes {\n                    alternativeText\n                  }\n                }\n              voteCount\n              votePercentage\n            }\n            image\n            {\n                medias {\n                    format\n                    url\n                }\n                specificAttributes {\n                 alternativeText\n                 }\n                }\n                audio\n            {\n                medias {\n                    format\n                    url\n                }\n                specificAttributes {\n                 alternativeText\n                 }\n                }\n          }\n        "),variables:{[r]:n},types:{[r]:"String!"}}},name:"sondage"},{Component:e=>{let{blocId:t,form:n,fields:r}=e,[i,a]=(0,l.useState)(!1),[o,u]=(0,l.useState)(!1),[c,d]=(0,l.useState)(!1),p=(0,l.useContext)(f.lv),m="success-s
25pan-".concat(t);return i?(0,s.jsx)("span",{id:m,style:{marginTop:30,marginBottom:30},children:"R\xe9action envoy\xe9e avec succ\xe8s !"}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(k.Z,{status:i?"disabled":"active",label:"R\xe9agir en direct",onClick:()=>d(!0),color:"primary",type:"button",withoutIcon:!0}),c&&r&&n&&(0,s.jsx)(eX,{fields:r,formId:n,submitLabel:"Envoyer ma r\xe9action",status:o?"disabled":"active",onSubmit:async e=>{u(!0),await h.ZP.formResponse.sendDirectReaction(p,n,e,"")},onSuccess:()=>{var e,t;a(!0),null===(t=document)||void 0===t||null===(e=t.getElementById(m))||void 0===e||e.scrollIntoView({block:"center"})},loading:o,setLoading:u})]})},name:"ReactionEnDirect",getContentQuery:(e,t)=>{let{form:n}=t;if(!n)return;let r="".concat(e,"_formId");return{query:"\n        ".concat(e,": FormFields(formId:$").concat(r,"){\n          fields{\n            id\n            type\n            label\n            mandatory\n            placeholder\n            values\n            labelledValues{\n              name\n            }\n            maxLength\n          }\n          startTime\n          endTime\n          type\n          hasRegistration\n          neoWinnerData {\n            type\n            sStationName\n            sShowName\n            dtScheduleSlot\n            iIDShows\n            dtScheduleSlot\n            iScheduleID\n            choices\n          }\n        }\n      "),variables:{[r]:n},types:{[r]:"String!"}}}},{Component:e=>{let{title:t,titleOnModel:n,items:r,blocId:i,thumbnailsStyle:a,overrideRules:o,thumbnailsPerRow:u,imageOrVideoFormat:c,rowsPerPage:d,blurSides:h}=e,p=(0,l.useContext)(f.lv);return r&&r.length?(0,s.jsx)(s.Fragment,{children:(0,s.jsx)(to,{blocId:i,title:t||n,items:(0,j.g_)(p,r,h?"original":c||"landscape"),itemOrientation:"horizontal"===a?"row":"reverseHorizontal"===a?"row-reverse":"column",itemDisplayed:d*u,thumbnailsPerRow:u,mediaRatio:(0,g.YR)(c||"landscape"),overrideRules:o,titleUnderlineBloc:!1,zoomBloc:!1,fullWidthBloc:!1,borderBottomBloc:!1,leadAnimationBloc:!1,useParallaxBloc:!1,blurSides:h})}):(0,s.jsx)(s.Fragment,{})},name:"articlesConsultes",getContentQuery:(e,t)=>{let{categoryIds:n,duration:r,durationOnModel:i,promoteFirstOne:a,thumbnailsPerRow:o,rowsPerPage:s,usePageCategory:l,pageCategories:u,displayedElements:c}=t;n=l?u:n;let d="".concat(e,"_props"),h={[d]:{size:o*s+(a?1:0),categoryIds:n,imageFilter:c.indexOf("imageOrVideo")>-1?"imageOrVideo":"whatever",mostPopular:!0,duration:r||i}},f=["slug",...c.map(e=>j.MS[e])];return{query:"\n        ".concat(e,": getContent(props:$").concat(d,"){\n          items{\n            ").concat(f.join("\n"),"\n          }\n        }\n      "),variables:h,types:{[d]:"ContentQuery!"}}}},{Component:()=>(0,s.jsx)(ri,{}),name:"siteMap"},{Component:e=>{let{title:t,blocId:n,externalLink:r,oneStoryOnModel:i,seeMoreLink:a,seeMoreSlug:o,linkLabel:l,linkType:u,titleOnModel:c,domain:d,defaultWidgetId:h,programedWidget:f}=e;if(!(0,p.S)().joinAvailable)return(0,s.jsx)(s.Fragment,{});let m=new Date,g=null==f?void 0:f.find(e=>ea(m,new Date(e.endDate))&&function(e,t){(0,en.Z)(2,arguments);var n=(0,ei.Z)(e),r=(0,ei.Z)(t);return n.getTime()>r.getTime()}(m,new Date(e.startDate))),v=(null==g?void 0:g.widgetId)||h;return(0,s.jsx)(s.Fragment,{children:(0,s.jsx)(rs,{blocId:n,joinDomain:d,widgetId:v,multipleStory:!i,title:t||c,linkLabel:a?l||"Voir plus":void 0,linkHref:"free"===u?r:o||void 0})})},getContentQuery:(e,t)=>{let{linkType:n,pageLink:r}=t,i="".concat(e,"_props");return{query:"\n            ".concat(e,": getContent(props:$").concat(i,"){\n              seeMoreSlug\n            }\n          "),variables:{[i]:{size:0,seeMoreId:"reference"===n?r:void 0}},types:{[i]:"ContentQuery!"}}},name:"widgetJoin"},{Component:()=>(0,s.jsx)(rp,{}),name:"archive"}],rv=e=>rg.find(t=>t.name===e)||rm},8578:function(e,t,n){"use strict";n.d(t,{ZP:function(){return ee},Be:function(){return q}});var r=n(5893),i=n(7294),a=n(6395),o=n(1112),s=n(482),l=n(564),u=n(8280),c=n(1802),d=n(3325),h=n(7291),f=n(469),p=n(8462),m=n(5520),g=n(9671),v=n(6130),y=n(6864),b=n(4343),A=n(1257),E=n(5995),w=n(365),x=n(8646),T=n(1371),S=n(4686),_=n(7942),C=n(1930);let k=(e,t,n)=>{if(e){var r;n||null===(r=document.getElementsByClassName("PlayerDetailsBloc.Titles").item(0))||void 0===r||r.setAttribute("tabindex","-3"),null==t||t.setAttribute("tabindex","-2"),e.setAttribute("tabindex","-1"),e.scrollIntoView({behavior:"smooth",block:n?"start":"center",inline:n?void 0:"nearest"}),setTimeout(()=>{try{e.focus({preventScroll:!n})}catch(e){}},300)}},I=new Date().getHours(),L=e=>{var t;let{host:n,program:i,currentProgram:a,main:s,timeline:l,position:u}=e,c=d.ZP.Radio(n),h=i.imagePrincipale&&i.imagePrincipale.medias&&(null===(t=(0,p.nv)(i.imagePrincipale.medias,"square"))||void 0===t?void 0:t.url)||c.radioLogo,f=Number(i.startHours)<=I&&Number(i.endHours)>I&&i.slug===(null==a?void 0:a.slug);return(0,r.jsx)("div",{className:"PlayerBroadcast".concat(f?" current":"").concat(s?" main":"").concat(l?" timeline":"").concat(a&&!s?" sub":""),id:f&&!s?"currentFocusProgram"+u:"",children:(0,r.jsx)(E.Z,{href:i.slug,children:(0,r.jsxs)("a",{href:i.slug,children:[(0,r.jsx)("figure",{className:"media rounded",children:(0,r.jsx)("div",{className:"PlayerCover",children:h&&(0,r.jsx)(o.Z,{imageUrl:(0,p.tB)(h,"small"),imageUrlOnError:S._,rounded:!0,mediaRatio:"1-1"})})}),(0,r.jsxs)("div",{className:"resume",children:[(0,r.jsxs)("p",{className:"date",children:[i.startHours,"h - ",i.endHours,"h"]}),(0,r.jsx)("h3",{className:"h3",style:{display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:"2",overflow:"hidden",textOverflow:"ellipsis",maxHeight:"3em",lineHeight:"1.5em"},children:i.title})]})]})})})},P=e=>
25{let t=new Date(e),n=new Date().toLocaleString("en-US",{timeZone:"Europe/Paris",timeZoneName:"short"}).includes("GMT+2"),r=new Date(t);r.setHours(r.getHours()-(n?1:2));let i=r.getHours().toString().padStart(2,"0"),a=r.getMinutes().toString().padStart(2,"0");return"".concat(i,"h").concat(a)},O=e=>[...e].sort((e,t)=>e.updatedAt&&t.updatedAt&&e.updatedAt<t.updatedAt?1:-1),R=e=>{var t;let{programs:n,currentProgram:i,host:a,position:o}=e;return(0,r.jsx)(r.Fragment,{children:n?null==n?void 0:null===(t=n.subItems)||void 0===t?void 0:t.map(e=>(0,r.jsx)(L,{host:a,program:e,currentProgram:i,position:o})):(0,r.jsx)(r.Fragment,{})})},D=e=>{let{titre:t,content:n,isMain:i,activeSection:a,position:o}=e;return(0,r.jsx)("div",{className:"PlayerDetailsSection".concat(i?t===a?" main content":" main":""," ").concat(t===a?" active":" disabled"),children:(0,r.jsx)("div",{className:"PlayerDetailsSectionContent ".concat("Programmation du jour"===t?" prog":"En cours de diffusion"!==t?" radio":""),id:"Programmation du jour"===t?"progFocus"+o:"En cours de diffusion"===t?"titleFocus"+o:"",children:n})})},N=e=>{let{titre:t,isMain:n,activeSection:i,setActiveSection:a}=e;return(0,r.jsx)("div",{className:"PlayerDetailsSection title".concat(n?" main":""," ").concat(t===i?"active":""),children:(0,r.jsx)("div",{className:"PlayerDetailsSectionTitle ".concat(t===i?"active":""," ").concat("Programmation du jour"===t?" prog":""),onClick:e=>{e.preventDefault(),e.stopPropagation(),a()},children:t})})};var M=e=>{var t,n,l,h;let{isOpen:f,programs:m,currentProgram:g,position:v}=e,y=i.useContext(x.lv),b=d.ZP.Radio(y),[w,M]=i.useState(b.name),j=(0,c.oR)(s.ZP.store).metas,F=j.imageUrl||b.radioLogo,[B,U]=i.useState(),[V,z]=i.useState([]),[Q,H]=i.useState([]),[G,K]=i.useState([]),[$,W]=i.useState(!1),Z=(0,c.oR)(u.h).zone,{mediaId:Y,playerStatus:X,idMds:J}=(0,c.K3)({store:s.ZP.store,keys:[],fn:e=>{let{id:t,status:n,idMds:r}=e;return{mediaId:t,playerStatus:n,idMds:r}}});i.useEffect(()=>{if(y&&f){W(!0);let e=new Date;ee(e,J),e.setHours(e.getHours()-2);let t=["slug","episodePodcast","updatedAt","chapo",...["title","imageOrVideo"].map(e=>_.MS[e])];d.ZP.content.getContent(y,{size:20,imageFilter:"whatever",dateLimit:e},!1,t).then(e=>{U(e.items.map(e=>{let t=e.updatedAt?new Date(e.updatedAt):void 0;return null==t||t.setHours((null==t?void 0:t.getHours())+1),{...e,updatedAt:null==t?void 0:t.toISOString(),isContent:!0}}))}).catch(()=>{U([])})}},[J,f]),i.useEffect(()=>{if("Plrogrammation du jour"!==w&&f){let e=document.getElementById("currentFocusProgram"+v),t=document.getElementById("progFocus"+v),n=setTimeout(()=>{e&&k(e,t)},300);return()=>clearTimeout(n)}},[w,f,v]),i.useEffect(()=>{if(B&&V){let e=(null==m?void 0:m.subItems)?m.subItems.filter(e=>Number(e.startHours)<=I&&Number(e.endHours)-2>=I-3).map(e=>{var t;let n=new Date,r=Number(e.endHours)+1,i=new Date(n.getFullYear(),n.getMonth(),n.getDate(),r,Number(e.startMinutes),0);return{id:e.slug+e.startHours,slug:e.slug,title:e.title,artist:null===(t=e.animatorsNames)||void 0===t?void 0:t.join(","),chapo:e.chapo,updatedAt:i.toISOString(),imagePrincipale:e.imagePrincipale,isProgram:!0}}):[];H(O(e?[...B,...V].concat(e):[...B,...V])),W(!1)}},[B,V,m]),i.useEffect(()=>{if(Q){let e=[],t=[];Q.forEach(n=>{n.isProgram||t.push(n),n.isProgram&&(e.push(t),(t=[]).push(n))}),t.length>0&&e.push(t),e&&K(e)}},[Q]);let ee=async(e,t)=>{let n=t||J;if(n){let t=(null==e?void 0:e.getTime())||Date.now();try{let e=(await d.ZP.titles.getTitles(y,30,n,new Date(t-t%6e4))).filter(e=>new Date(e.timestamp)>=new Date(t-108e5));z(e.map(e=>{let t=new Date(e.timestamp);return t.setHours(t.getHours()+1),{id:e.id,updatedAt:t.toISOString(),title:e.title.title,artist:e.title.artist,slug:"",sponsored:!1,imageSrc:e.title.coverUrl||"https://www.lesindesradios.fr/servicesimb/images?version=6&iid=".concat(e.title.coverId,"&width=200"),isContent:!1}}))}catch(e){}}return Promise.resolve()},et=[{id:"radios",label:"Webradios",linkHref:"#",subItems:d.ZP.Webradios(y).map(e=>({id:e.id,label:e.label,linkHref:"#",linkAction:()=>{s.ZP.actions.setMedia({id:e.id,type:"RADIO"===e.type?"radio":"webradio",play:!0,idMds:e.idMds,imageUrl:e.imageUrl,altCover:e.altCover,hasStartOver:"Hls"===e.streamFormat&&e.hasStartOver,soundcastEnabled:e.soundcastEnabled,...(0,A.hL)(e)}),q("Webradio","bloc",void 0,e.id,e.label)}}
25))}],en=d.ZP.Zones(y),er=[{id:"radios",label:(null===(t=en.find(e=>e.id===Z.zoneId))||void 0===t?void 0:t.label)||en[0].label,linkHref:"#",subItems:en.map(e=>({id:e.id,label:e.label,linkHref:"#",linkAction:()=>{s.ZP.actions.setMedia({id:e.id,type:"RADIO"===e.stream.type?"radio":"webradio",play:!0,idMds:e.stream.idMds,imageUrl:e.stream.imageUrl,altCover:e.stream.altCover,hasStartOver:"Hls"===e.stream.streamFormat&&e.stream.hasStartOver,soundcastEnabled:e.stream.soundcastEnabled,...(0,A.hL)(e.stream)}),u.Nw.setZone(e.id),q("Webradio","bloc",void 0,e.id,e.label)}}))}],ei=(e,t)=>e.length>t?e.slice(0,t)+"...":e;return $?(0,r.jsx)(r.Fragment,{}):(0,r.jsx)("div",{className:"PlayerDetails".concat(f?" active":""),id:"playerDetails",style:f?{}:{opacity:"0",maxHeight:"0",overflow:"hidden",visibility:"hidden"},children:(0,r.jsxs)("div",{className:"PlayerDetailsContainer",children:[(0,r.jsxs)("div",{className:"PlayerDetailsBloc TitleSection title",children:[(0,r.jsx)(N,{titre:"En cours de diffusion",activeSection:w,setActiveSection:()=>M("En cours de diffusion")}),(0,r.jsx)(N,{titre:b.name,activeSection:w,setActiveSection:()=>M(b.name),isMain:!0}),(0,r.jsx)(N,{titre:"Programmation du jour",activeSection:w,setActiveSection:()=>M("Programmation du jour")})]}),(0,r.jsxs)("div",{className:"PlayerDetailsBloc Titles",children:[(0,r.jsx)(D,{titre:"En cours de diffusion",activeSection:w,position:v,content:(0,r.jsxs)("div",{className:"Titles",id:"DetailsTitles"+v,children:[(0,r.jsx)("div",{className:"PlayerDetailsTitle",id:"PlayerDetailsTitle"+v,children:(0,r.jsx)(C.Z,{album:null==j?void 0:null===(n=j.title)||void 0===n?void 0:n.toLocaleLowerCase(),artist:j.artist,imageUrl:(0,p.tB)(F,"medium"),imageAlt:j.title,rounded:!0,imageUrlOnError:S._,mediaRatio:"1-1"})},"content"),(null===(h=er[0])||void 0===h?void 0:null===(l=h.subItems)||void 0===l?void 0:l.length)>=2&&(0,r.jsx)("div",{className:"PlayerDetailsWebRadios zones",id:"PlayerDetailsZones"+v,children:(0,r.jsx)(T.Z,{items:er,position:"Header",customPlayerDetails:!0,onClick:()=>{let e=document.getElementById("PlayerDetailsZones"+v),t=document.getElementById("PlayerDetailsTitle"+v),n=null==e?void 0:e.querySelectorAll(".show"),r=setTimeout(()=>{n.length?null==t||t.scrollIntoView({behavior:"smooth",block:"start"}):null==e||e.scrollIntoView({behavior:"smooth",block:"start",inline:"start"})},300);return()=>clearTimeout(r)}})}),(0,r.jsx)("div",{className:"PlayerDetailsWebRadios webradios",id:"PlayerDetailsWebRadios"+v,children:(0,r.jsx)(T.Z,{items:et,position:"Header",customPlayerDetails:!0,onClick:()=>{let e=document.getElementById("PlayerDetailsWebRadios"+v),t=document.getElementById("PlayerDetailsTitle"+v),n=null==e?void 0:e.querySelectorAll(".show"),r=setTimeout(()=>{null==e||e.setAttribute("tabindex","-1"),n.length?null==t||t.scrollIntoView({behavior:"smooth",block:"start"}):null==e||e.scrollIntoView({behavior:"smooth",block:"start",inline:"start"})},300);return()=>clearTimeout(r)}})})]})}),(0,r.jsx)(D,{titre:b.name,activeSection:w,content:(0,r.jsxs)(r.Fragment,{children:[g&&(0,r.jsx)(L,{host:y,program:g,currentProgram:g,main:!0}),(0,r.jsx)("div",{className:"timeline",children:!$&&Q?G.map(e=>(0,r.jsx)("div",{className:"timeline-section",children:e.map(e=>{var t;let n=e.imagePrincipale?e.imagePrincipale.medias&&(null===(t=(0,p.nv)(e.imagePrincipale.medias,"square"))||void 0===t?void 0:t.url):e.imageSrc,i=null==m?void 0:m.subItems.find(t=>t.slug+t.startHours===e.id&&e.slug!==(null==g?void 0:g.slug));return(0,r.jsx)("div",{className:"timeline-event",children:e.isProgram?i?(0,r.jsx)(r.Fragment,{children:(0,r.jsx)(L,{host:y,program:i,currentProgram:g,timeline:!0})}):(0,r.jsx)(r.Fragment,{}):(0,r.jsxs)(r.Fragment,{children:[e.updatedAt&&(0,r.jsx)("div",{className:"timeline-time",children:(0,r.jsx)("span",{children:P(e.updatedAt)})}),(0,r.jsx)(E.Z,{href:e.slug,children:(0,r.jsxs)("div",{className:e.episodePodcast||e.isContent?"box-right timeline-podcast":"PlayerContainer box-right timeline-title",children:[e.episodePodcast?(0,r.jsx)("div",{className:"timeline-button",children:(0,r.jsx)(a.Z,{status:"loading",customIcon:"podcast"})}):e.isContent?(0,r.jsx)("div",{className:"timeline-button",children:(0,r.jsx)(a.Z,{status:"loading",customIcon:"article"})}):n&&(0,r.jsx)("div",{className:e.isContent?"timeline-cover":"PlayerCover",children:(0,r.jsx)(o.Z,{imageUrl:(0,p.tB)(n,"small"),imageUrlOnError:S._,rounded:!0,mediaRatio:"1-1"})}),(0,r.jsxs)("div",{className:e.isContent||e.episodePodcast?"timeline-info":"timeline-content-title",children:[(0,r.jsx)("p",{className:"title",children:e.title?ei(e.title,100):""}),e.artist&&(0,r.jsx)("p",{className:"artist",children:e.artist}),e.chapo&&(0,r.jsx)("p",{className:"lead",children:e.chapo?ei(e.chapo,150):""})]}),e.episodePodcast?(0,r.jsx)("div",{className:"timeline-button",children:(0,r.jsx)(a.Z,{status:"loading",customIcon:"play",onClick:t=>{let n;t.preventDefault(),t.stopPropagation();let r="",i=!1,a=!1;e.episodePodcast&&e.slug&&d.ZP.page.getPage(y,e.slug).then(e=>{var t,o;n=e;
25let l=(null==e?void 0:null===(t=e.pageContent)||void 0===t?void 0:t.blocsData)?JSON.parse(null==e?void 0:null===(o=e.pageContent)||void 0===o?void 0:o.blocsData):void 0;if(null==l?void 0:l.episodePodcast)r=l.episodePodcast.episodeId;else if(l.corps&&l.corps.blocsData){let e=l.corps.blocsData;e&&e.episodePodcast&&(r=e.episodePodcast.episodeId)}r.length&&r&&n&&d.ZP.episode.getEpisode(y,r).then(async e=>{e&&(a=(i=Y===(null==e?void 0:e.enclosureUrl))&&"playing"===X,i?a?s.ZP.actions.stop():s.ZP.actions.play():s.ZP.actions.setMedia({id:e.enclosureUrl,type:"podcast",mediaUrl:e.enclosureUrl,play:!0,imageUrl:e.imageUrl||b.radioLogo,artist:e.author,title:e.title,isFromPlaylist:!1,hasStartOver:!1}))})})}})}):e.isContent&&n&&(0,r.jsx)("div",{className:e.isContent?"timeline-cover":"PlayerCover",children:(0,r.jsx)(o.Z,{imageUrl:(0,p.tB)(n,"small"),imageUrlOnError:S._,rounded:!0,mediaRatio:"1-1"})})]})})]})})})})):(0,r.jsx)(r.Fragment,{})})]}),isMain:!0}),(0,r.jsx)(D,{titre:"Programmation du jour",activeSection:w,content:(0,r.jsx)(R,{host:y,programs:m,currentProgram:g,position:v}),position:v})]})]})})},j=n(706),F=n(9612),B=n(8403),U=n.n(B);let V=m.xF,z={0:"Dimanche",1:"Lundi",2:"Mardi",3:"Mercredi",4:"Jeudi",5:"Vendredi",6:"Samedi"},q=(e,t,n,r,i,a)=>{var o,l;let u=r||s.h.getState().id||(null===(l=s.h.getState().metas.extra)||void 0===l?void 0:null===(o=l.prev)||void 0===o?void 0:o.id);if(u){let r=[...d.ZP.Radiostreams(e),...d.ZP.Webradios(e)].find(e=>{let{id:t}=e;return t===u});r&&v.cR({type_player:(0,A.Vd)(e,u)?"Webradio":"Radio",position_player:t,radio_id:u,radio_name:r.label||i,page_id:null==n?void 0:n.id,page_name:null==n?void 0:n.name,page_url:(null==n?void 0:n.canonical)||window.location.href,page:n,date_click_play:a?new Date().toISOString():void 0,date_click_pause:a?void 0:new Date().toISOString()})}},Q=e=>{let{type:t,podcastLink:n,onPlayClick:o,onStopClick:l,status:u,page:c}=e,d=(0,g.S)().rossel,h=(0,i.useContext)(x.lv);return(0,r.jsxs)("div",{id:"simplebuttons",className:"HeaderMediaButtons",style:{display:"flex"},children:[("podcast"===t||"webradio"===t)&&(0,r.jsx)(a.Z,{mobileHidden:!0,withoutIcon:!0,color:"player",status:"active",size:"small",label:"Retour au live",onClick:e=>{s.ZP.actions.backToLive((0,A.OE)(h,{page:c,position:"Header"})),e.preventDefault()}},"backToLive"),n&&(0,r.jsx)(a.Z,{mobileHidden:!0,status:"active",customIcon:d?"podcast2":"podcast",linkHref:n},"podcast"),(0,r.jsx)(a.Z,{color:"player",customIcon:"loading"===u?"loader":"playing"===u?"podcast"===t?"pause":"stop":"play",status:"active",onClick:"idle"===u||"loading"===u?void 0:"playing"===u?l:o},"player")]})},H=e=>{let{onStopClick:t,onPlayClick:n,onStartOverClick:i,status:o,type:s,hasStartOver:l}=e;return(0,r.jsxs)("div",{className:"PlayerControl",style:{display:"flex",justifyContent:"space-between"},children:[l&&(0,r.jsx)("div",{style:{marginRight:"1rem"},children:(0,r.jsx)(a.Z,{status:"active",iconStyle:{height:"3rem",width:"3rem"},customIcon:"startOver",onClick:"idle"===o||"loading"===o?void 0:"playing"===o?()=>i(30):t,color:"alpha",ariaLabel:"Rembobiner de 30 secondes"})}),(0,r.jsx)("div",{style:{height:"90%",width:"90%"},children:(0,r.jsx)(a.Z,{status:"active",customIcon:"loading"===o?"loader":"playing"===o?"podcast"===s?"pause":"stop":"play",onClick:"idle"===o||"loading"===o?void 0:"playing"===o?t:n,color:"alpha",ariaLabel:"loading"===o?"Chargement":"playing"===o?"podcast"===s?"Pause":"Arr\xeater":"Lecture"})})]})},G=e=>{let{menu:t,visibleMenu:n,setVisibleMenu:o,type:l,dropdownDirection:c,page:d,position:h}=e,f=(0,i.useContext)(x.lv);return(0,r.jsxs)("div",{className:"PlayerSources",children:[!(2>((null==t?void 0:t.zones.all.length)||0))&&(0,r.jsx)("ul",{className:"nav",style:{paddingLeft:"podcast"===l||"webradio"===l?"revert":0},children:(0,r.jsxs)("li",{className:"nav-item drop".concat(c||"down"),children:[(0,r.jsx)("button",{type:"button","data-toggle":"dropdown",className:"dropdown-toggle nav-link".concat("radios"===n?" show":""),onClick:e=>{e.preventDefault(),o(e=>"radios"===e?void 0:"radios")},style:{background:"none",border:"none",cursor:"pointer"},children:(0,r.jsx)("span",{className:"text",children:null==t?void 0:t.zones.current.label})}),"radios"===n?(0,r.jsx)("div",{"aria-hidden":"true",role:"menu",className:"dropdown-menu show",children:null==t?void 0:t.zones.all.map(e=>(0,r.jsx)("button",{type:"button",className:"dropdown-item",onClick:async t=>{t.preventDefault(),s.ZP.actions.setMedia({id:e.id,type:"RADIO"===e.type?"radio":"webradio",play:!0,idMds:e.idMds,imageUrl:e.imageUrl,hasStartOver:e.hasStartOver,altCover:e.altCover,soundcastEnabled:e.soundcastEnabled,...(0,A.hL)(e)}),u.Nw.setZone(e.zoneId),v.qy({id_zone:e.zoneId,nom_zone:e.label,moment:"en_cours"}),o(void 0),q(f,h,d,e.id,e.label,!0)},style:{width:"100%",textAlign:"left"},children:e.label},e.zoneId))}):void 0]})}),("podcast"===l||"webradio"===l)&&(0,r.jsx)("div",{className:"buttons",children:(0,r.jsx)(a.Z,{label:"Retour au live",size:"small",color:"light",withoutIcon:!0,status:"active",hasPulse:!0,onClick:e=>{s.ZP.actions.backToLive((0,A.OE)(f,{page:d,position:h}
25)),e.preventDefault()}})})]})},K=e=>{let{muted:t,onMutedChange:n,volume:i,onVolumeChange:o}=e;return(0,r.jsxs)("div",{className:"PlayerVolume",children:[(0,r.jsx)(a.Z,{status:"active",color:"alpha",size:"small",customIcon:t?"mute":"volume",onClick:()=>n(!t),ariaLabel:t?"Activer le son":"Couper le son"}),(0,r.jsx)("div",{className:"PlayerVolumeRange",children:(0,r.jsx)("input",{type:"range",min:"0",max:"100",step:"1",value:i,id:"volumeRange","aria-label":"Contr\xf4le du volume",onChange:e=>o(parseInt(e.target.value,10))})})]})},$=e=>{let{icon:t,disabled:n,onClick:o,children:s,loading:l}=e,u=i.useRef(null),[c,d]=i.useState(!1);return(0,r.jsxs)("li",{ref:u,className:"list-inline-item",children:[(0,r.jsx)(a.Z,{status:n?"disabled":"active",customIcon:l?"loader":t,size:"small",onClick:o||(()=>d(!c)),color:"alpha",ariaLabel:"share"===t?"Partager":t}),!l&&s&&(0,r.jsx)(h.Z,{show:c,container:u,target:u,placement:"top",children:e=>{let{props:t}=e;return(0,r.jsx)("div",{...t,children:s})}})]})},W=e=>{let{type:t,metas:n,page:o}=e,s=(0,i.useContext)(x.lv),l=(0,g.S)().group81?f.oY:f.yp;return(0,r.jsx)("div",{className:"PlayerActions",children:(0,r.jsx)("ul",{className:"list-inline",children:(0,r.jsx)($,{disabled:("radio"===t||"webradio"===t)&&(!n.artist||!n.title),icon:"share",children:(0,r.jsx)("div",{className:"tooltip",children:l.map(e=>(0,r.jsx)(a.Z,{status:"active",customIcon:e,size:"small",ariaLabel:"Partager sur ".concat(e),onClick:()=>{(0,f.EE)(s,e,n.title,o,n.artist,"radio"===t||"webradio"===t?"Titre":"Podcast")}},e))})})})})},Z=e=>{let{progress:t,onCurrentChange:n}=e,a=i.useRef(null),o=i.useRef(null),s=i.useRef(null);if(t){var u;let{duration:e,position:i}=t,c=0,d=(null===(u=a.current)||void 0===u?void 0:u.clientWidth)||0,h=d*i/e;if(o.current&&s.current){let e=o.current.clientWidth+20;c=Math.trunc(Math.min(d-(s.current.clientWidth+20),Math.max(e,h)))}return(0,r.jsxs)("div",{className:"PlayerProgressRange",children:[(0,r.jsx)("input",{ref:a,className:"range",type:"range",min:"0",max:e,step:"0.1",value:i,onChange:e=>n(parseInt(e.target.value,10))}),(0,r.jsx)("div",{className:"progress",style:{width:h,transition:"width 0.5s linear"}}),(0,r.jsxs)("span",{className:"value",style:{left:c,transition:c>0?"left 0.5s linear":void 0},children:[(0,r.jsx)("span",{ref:o,className:"current",style:{visibility:c>0?void 0:"hidden"},children:null==i?void 0:i.playedSeconds}),(0,r.jsx)("span",{ref:s,className:"max",style:{visibility:c>0?void 0:"hidden"},children:(0,l.jL)(Math.trunc(e))})]})]})}return null},Y=e=>{var t;let{currentProgram:n}=e,i=n.imagePrincipale&&n.imagePrincipale.medias&&(null===(t=(0,p.nv)(n.imagePrincipale.medias,"square"))||void 0===t?void 0:t.url);return n&&(0,r.jsx)("div",{className:"PlayerBroadcast",children:(0,r.jsx)(E.Z,{href:n.slug,children:(0,r.jsxs)("a",{href:n.slug,children:[(0,r.jsx)("figure",{className:"media rounded",children:i&&(0,r.jsx)("img",{src:i,alt:""})}),(0,r.jsxs)("div",{className:"resume",children:[(0,r.jsxs)("p",{className:"date",children:[(0,r.jsx)("span",{children:"En ce moment :"})," ",n.startHours,"h -"," ",n.endHours,"h"]}),(0,r.jsx)("h3",{className:"h3",children:n.title})]})]})})})},X=e=>{var t,n,l,h;let{size:f,type:m,metas:v,muted:E,volume:w,status:T,hasStartOver:S,onMutedChange:_,onVolumeChange:C,onStopClick:k,onPlayClick:I,onPositionChange:L,onStartOverClick:P,menu:O,progress:R,blocId:D,dropdownDirection:N="up",simpleButtons:B,podcastLink:$,playerSectionBloc:X,playerBouton:J,page:ee,position:et,hasBroadcast:en,custom1981:er}=e,[ei,ea]=i.useState(!1),eo=(0,j.kC)(),{isOpen:es,hasDetails:el}=(0,c.oR)(y.h),eu=(0,b.useRouter)(),ec=(0,g.S)().group81,ed=(0,i.useRef)(null),[eh,ef]=(0,i.useState)(es&&("Footer"===et&&!eo.isMobile||"Header"===et&&!eo.isLgOrMore)),[ep,em]=i.useState(),[eg,ev]=(0,i.useState)(S),[ey,eb]=(0,i.useState)(),[eA,eE]=(0,i.useState)(),ew=(0,c.oR)(s.ZP.store),ex=(0,c.oR)(u.h).zone.zoneId,eT=(0,i.useContext)(x.lv),{ref:eS,width:e_}=(0,F.N)();i.useEffect(()=>{ea(!0)},[]),(0,i.useEffect)(()=>{let e=()=>{y.N.setIsOpen(!1);let e=document.getElementById("PlayerDetailsOverlay"),t=document.getElementById("Header");null==e||e.classList.add("hidden"),null==e||e.classList.remove("show"),document.body.classList.remove("no-scroll"),ec||null==t||t.classList.remove("IsCompact")},t=e=>{let t=e.target;
25if(ed.current&&!ed.current.contains(e.target)&&!t.closest(".ButtonPlayerDetail")&&!t.closest(".PlayerDetails.active")){y.N.setIsOpen(!1);let e=document.getElementById("PlayerDetailsOverlay"),t=document.getElementById("Header");null==e||e.classList.add("hidden"),null==e||e.classList.remove("show"),ec||null==t||t.classList.remove("IsCompact"),document.body.classList.remove("no-scroll")}};return document.addEventListener("mousedown",t),null==eu||eu.events.on("routeChangeComplete",e),()=>{null==eu||eu.events.off("routeChangeComplete",e),document.removeEventListener("mousedown",t)}},[es,null==eu?void 0:eu.events]),i.useEffect(()=>{X?ev(S):ev(ew.hasStartOver)},[ew.id]),i.useEffect(()=>{!X&&ei&&el&&ef(es)},[eo,es,et,el]),i.useEffect(()=>{en||el?d.ZP.page.getProgrammation(eT,{categoryId:void 0,zoneId:ex}).then(e=>{let t=e.programmation,n=new Date().getDay(),r=new Date().getHours(),i=null==t?void 0:t.find(e=>e.label===z[n]);eE(i);let a=null==i?void 0:i.subItems.find(e=>Number(e.startHours)<=r&&Number(e.endHours)>r);a?eb(a):eb(void 0)}):eb(void 0)},[ex,en,el]);let eC=v.imageUrl||(null==O?void 0:null===(n=O.streams)||void 0===n?void 0:null===(t=n.current)||void 0===t?void 0:t.altCover)||(null==O?void 0:null===(h=O.streams)||void 0===h?void 0:null===(l=h.current)||void 0===l?void 0:l.imageUrl);return ei?J?(0,r.jsx)("div",{className:"Player",id:D,children:(0,r.jsx)("div",{className:"PlayerContainer",children:(0,r.jsx)("div",{className:"PlayerControl",children:(0,r.jsx)(a.Z,{color:"player",customIcon:"loading"===T?"loader":"playing"===T?"podcast"===m?"pause":"stop":"play",status:"active",onClick:"idle"===T||"loading"===T?void 0:"playing"===T?k:I,ariaLabel:"loading"===T?"Chargement":"playing"===T?"podcast"===m?"Pause":"Arr\xeater":"Lecture"},"player")})})}):X?(0,r.jsx)("div",{className:"".concat(ec?"playerGroup81":""),children:(0,r.jsxs)("div",{className:"block PlayerBlock ".concat(en?"hasPlayerBroadcast":""," bg--player"),children:[(0,r.jsx)("div",{className:"PlayerBackground",children:(0,r.jsx)("div",{className:"PlayerBackgroundContainer",children:(0,r.jsx)("div",{style:{backgroundImage:"url('".concat((0,p.tB)(eC)||V,"') ")}})})}),R&&(0,r.jsx)(Z,{progress:R,onCurrentChange:L}),(0,r.jsx)("div",{className:"Player",id:D,children:(0,r.jsxs)("div",{className:"PlayerContainer ".concat(er?" group1981":" "),children:[el&&"Footer"===et&&(0,r.jsx)(r.Fragment,{children:(0,r.jsx)("div",{className:"ButtonPlayerDetail",id:D,children:(0,r.jsx)("div",{className:"ButtonPlayerDetailContainer".concat(es?" active":""),children:(0,r.jsx)(a.Z,{style:{pointerEvents:"auto",position:"static",zIndex:4e3,padding:"10rem"},classname:"PlayerDetailButton",color:"player",status:"active",customIcon:"chevron-up",ariaLabel:"Afficher les d\xe9tails du lecteur",onClick:()=>{let e=document.getElementById("PlayerDetailsOverlay"),t=document.getElementById("Header");if(es)null==e||e.classList.add("hidden"),null==e||e.classList.remove("show"),document.body.classList.remove("no-scroll"),null==t||t.classList.remove("IsCompact");else if(null==e?void 0:e.classList.contains("hidden")){null==e||e.classList.remove("hidden"),null==e||e.classList.add("show"),document.body.classList.add("no-scroll");let t=document.getElementById("Header");null==t||t.classList.add("IsCompact")}y.N.setIsOpen(!es)}},"player_details")})})}),(0,r.jsx)("div",{className:"PlayerCover",children:(0,r.jsx)(o.Z,{imageUrl:(0,p.tB)(eC,"small"),imageUrlOnError:V,rounded:!0})}),(0,r.jsx)(W,{type:m,metas:v,page:ee}),(0,r.jsx)(K,{muted:E,onMutedChange:_,volume:w,onVolumeChange:C}),(0,r.jsxs)("div",{className:"PlayerResume",children:[v.title&&(0,r.jsx)("p",{className:"title",children:v.title.toLocaleLowerCase()}),v.artist&&(0,r.jsx)("p",{className:"artist",children:v.artist})]}),O&&O.streams.current&&O.streams.all.length>0&&(0,r.jsxs)("div",{className:"PlayerRadio dropdown".concat("stream"===ep?" show":""),children:[(0,r.jsx)("button",{type:"button","data-toggle":"dropdown",className:"dropdown-toggle logo ".concat("stream"===ep?" show":""),onClick:e=>{e.preventDefault(),em(e=>"stream"===e?void 0:"stream")},"data-radio":O.streams.current.label,style:{background:"none",border:"none",padding:0,cursor:"pointer"},"aria-label":"S\xe9lectionner ".concat(O.streams.current.label),children:(0,r.jsx)("img",{src:(0,p.tB)(O.streams.current.imageUrl,"small"),alt:O.streams.current.label})}),"stream"===ep?(0,r.jsx)("div",{"aria-hidden":"true",role:"menu",className:"dropdown-menu show",children:O.streams.all.map(e=>(0,r.jsx)("button",{type:"button",className:"dropdown-item logo",onClick:t=>{t.preventDefault(),em(void 0),s.ZP.actions.setMedia({id:e.id,type:"RADIO"===e.type?"radio":"webradio",play:!0,idMds:e.idMds,imageUrl:e.imageUrl,hasStartOver:e.hasStartOver,altCover:e.altCover,soundcastEnabled:e.soundcastEnabled,...(0,A.hL)(e)}
25),q(eT,et,ee,e.id,e.label,!0)},style:{width:"100%",padding:"0.5rem",background:"none",border:"none",cursor:"pointer"},"aria-label":"S\xe9lectionner ".concat(e.label),children:(0,r.jsx)("img",{src:(0,p.tB)(e.imageUrl,"small"),alt:e.label})},e.idMds))}):void 0]}),(0,r.jsx)(G,{menu:O,visibleMenu:ep,setVisibleMenu:em,type:m,page:ee,position:et}),(0,r.jsx)(H,{onPlayClick:I,onStopClick:k,onStartOverClick:P,status:T,type:m,hasStartOver:eg}),"small"!==f&&ey&&en&&(0,r.jsx)(Y,{currentProgram:ey})]})})]})}):(0,r.jsxs)(r.Fragment,{children:[B&&(0,r.jsx)(Q,{status:T,podcastLink:$,onPlayClick:I,onStopClick:k,type:m,page:ee}),ec?(0,r.jsx)("div",{className:"playerGroup81",children:(0,r.jsxs)("div",{className:"block  ".concat(en?"hasPlayerBroadcast":""," bg--player Player").concat("small"===f?" PlayerSmall ".concat(er?" group1981":" "):""),id:D,children:[(0,r.jsx)("div",{ref:ed,children:(0,r.jsx)(M,{isOpen:el&&eh,programs:eA,currentProgram:ey,position:et})}),(0,r.jsxs)("div",{className:"PlayerContainer".concat(er?" group1981":" "),children:[el&&(0,r.jsx)(r.Fragment,{children:(0,r.jsx)("div",{className:"ButtonPlayerDetail",id:D,children:(0,r.jsx)("div",{className:"ButtonPlayerDetailContainer".concat(es?" active":""),children:(0,r.jsx)(a.Z,{style:{pointerEvents:"auto",position:"static",zIndex:4e3},classname:"PlayerDetailButton",color:"player",status:"active",customIcon:"chevron-up",ariaLabel:"Afficher les d\xe9tails du lecteur",onClick:()=>{let e=document.getElementById("PlayerDetailsOverlay"),t=document.getElementById("Header");es?(null==e||e.classList.add("hidden"),null==e||e.classList.remove("show"),document.body.classList.remove("no-scroll"),null==t||t.classList.remove("IsCompact")):(null==e?void 0:e.classList.contains("hidden"))&&(null==e||e.classList.remove("hidden"),null==e||e.classList.add("show"),document.body.classList.add("no-scroll"),null==t||t.classList.add("IsCompact")),y.N.setIsOpen(!es)}},"player_details")})})}),R&&(0,r.jsx)(Z,{progress:R,onCurrentChange:L}),"small"!==f&&ey&&en&&(0,r.jsx)(Y,{currentProgram:ey}),!er&&(0,r.jsx)("div",{className:"PlayerCover",children:(0,r.jsx)(o.Z,{imageUrl:(0,p.tB)(eC,"small"),imageUrlOnError:V,rounded:!0,mediaRatio:"1-1"})}),"small"!==f&&(0,r.jsx)(W,{type:m,metas:v,page:ee}),"small"!==f&&(0,r.jsx)(K,{muted:E,onMutedChange:_,volume:w,onVolumeChange:C}),ec?(0,r.jsx)("div",{className:"PlayerResume marquee ",children:(0,r.jsxs)("div",{ref:eS,className:"marquee__content ".concat(e_&&e_>210?"active":""),style:{minWidth:"fit-content",display:"flex"},children:[v.title&&(0,r.jsx)("p",{className:"title",children:v.title.toLocaleLowerCase()}),er&&(0,r.jsx)("p",{className:"titleArtistSeparator",children:" - "}),v.artist&&(0,r.jsx)("p",{className:"artist ",children:ec?U()(v.artist):v.artist})]})}):(0,r.jsxs)("div",{className:"PlayerResume",children:[v.title&&(0,r.jsx)("p",{className:"title",children:v.title.toLocaleLowerCase()}),v.artist&&(0,r.jsx)("p",{className:"artist",children:v.artist})]}),er&&(0,r.jsx)(K,{muted:E,onMutedChange:_,volume:w,onVolumeChange:C}),"small"!==f&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(G,{menu:O,visibleMenu:ep,setVisibleMenu:em,type:m,dropdownDirection:N,page:ee,position:et}),O&&O.streams.current&&O.streams.all.length>0&&(0,r.jsxs)("div",{className:"PlayerRadio drop".concat(N).concat("stream"===ep?" show":"").concat(O.streams.dedicated?" dedicated":""),children:[(0,r.jsx)("button",{type:"button","data-toggle":"dropdown",className:"dropdown-toggle logo ".concat("stream"===ep?" show":""),onClick:e=>{e.preventDefault(),O.streams.dedicated||("stream"!==ep?em("stream"):em(void 0))},"data-radio":O.streams.current.label,style:{background:"none",border:"none",padding:0,cursor:"pointer"},"aria-label":"S\xe9lectionner ".concat(O.streams.current.label),children:(0,r.jsx)("img",{src:(0,p.tB)(O.streams.current.imageUrl,"small"),alt:O.streams.current.label})}),"stream"===ep?(0,r.jsx)("div",{"aria-hidden":"true",role:"menu",className:"dropdown-menu show",children:O.streams.all.map(e=>(0,r.jsx)("button",{type:"button",className:"dropdown-item logo",onClick:t=>{t.preventDefault(),em(void 0),s.ZP.actions.setMedia({id:e.id,type:"RADIO"===e.type?"radio":"webradio",play:!0,idMds:e.idMds,imageUrl:e.imageUrl,hasStartOver:e.hasStartOver,altCover:e.altCover,soundcastEnabled:e.soundcastEnabled,...(0,A.hL)(e)}
25),q(eT,et,ee,e.id,e.label,!0)},style:{width:"100%",padding:"0.5rem",background:"none",border:"none",cursor:"pointer"},"aria-label":"S\xe9lectionner ".concat(e.label),children:(0,r.jsx)("img",{src:(0,p.tB)(e.imageUrl,"small"),alt:e.label})},e.idMds))}):void 0]})]}),(0,r.jsx)(H,{onPlayClick:I,onStopClick:k,onStartOverClick:P,status:T,type:m,hasStartOver:eg})]})]})}):(0,r.jsx)(r.Fragment,{children:(0,r.jsxs)("div",{className:"block  ".concat(en?"hasPlayerBroadcast":""," bg--player Player").concat("small"===f?" PlayerSmall ".concat(er?" group1981":" "):""),id:D,children:[(0,r.jsx)("div",{ref:ed,children:(0,r.jsx)(M,{isOpen:el&&eh,programs:eA,currentProgram:ey,position:et})}),(0,r.jsxs)("div",{className:"PlayerContainer".concat(er?" group1981":" "),children:[el&&(0,r.jsx)(r.Fragment,{children:(0,r.jsx)("div",{className:"ButtonPlayerDetail",id:D,children:(0,r.jsx)("div",{className:"ButtonPlayerDetailContainer".concat(es?" active":""),children:(0,r.jsx)(a.Z,{style:{pointerEvents:"auto",position:"static",zIndex:4e3},classname:"PlayerDetailButton",color:"player",status:"active",customIcon:"chevron-up",ariaLabel:"Afficher les d\xe9tails du lecteur",onClick:()=>{let e=document.getElementById("PlayerDetailsOverlay"),t=document.getElementById("Header");es?(null==e||e.classList.add("hidden"),null==e||e.classList.remove("show"),document.body.classList.remove("no-scroll"),null==t||t.classList.remove("IsCompact")):(null==e?void 0:e.classList.contains("hidden"))&&(null==e||e.classList.remove("hidden"),null==e||e.classList.add("show"),document.body.classList.add("no-scroll"),null==t||t.classList.add("IsCompact")),y.N.setIsOpen(!es)}},"player_details")})})}),R&&(0,r.jsx)(Z,{progress:R,onCurrentChange:L}),"small"!==f&&ey&&en&&(0,r.jsx)(Y,{currentProgram:ey}),!er&&(0,r.jsx)("div",{className:"PlayerCover",children:(0,r.jsx)(o.Z,{imageUrl:(0,p.tB)(eC,"small"),imageUrlOnError:V,rounded:!0,mediaRatio:"1-1"})}),"small"!==f&&(0,r.jsx)(W,{type:m,metas:v,page:ee}),"small"!==f&&(0,r.jsx)(K,{muted:E,onMutedChange:_,volume:w,onVolumeChange:C}),ec?(0,r.jsx)("div",{className:"PlayerResume marquee ",children:(0,r.jsxs)("div",{ref:eS,className:"marquee__content ".concat(e_&&e_>210?"active":""),style:{minWidth:"fit-content",display:"flex"},children:[v.title&&(0,r.jsx)("p",{className:"title",children:v.title.toLocaleLowerCase()}),er&&(0,r.jsx)("p",{className:"titleArtistSeparator",children:" - "}),v.artist&&(0,r.jsx)("p",{className:"artist ",children:ec?U()(v.artist):v.artist})]})}):(0,r.jsxs)("div",{className:"PlayerResume",children:[v.title&&(0,r.jsx)("p",{className:"title",children:v.title.toLocaleLowerCase()}),v.artist&&(0,r.jsx)("p",{className:"artist",children:v.artist})]}),er&&(0,r.jsx)(K,{muted:E,onMutedChange:_,volume:w,onVolumeChange:C}),"small"!==f&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(G,{menu:O,visibleMenu:ep,setVisibleMenu:em,type:m,dropdownDirection:N,page:ee,position:et}),O&&O.streams.current&&O.streams.all.length>0&&(0,r.jsxs)("div",{className:"PlayerRadio drop".concat(N).concat("stream"===ep?" show":"").concat(O.streams.dedicated?" dedicated":""),children:[(0,r.jsx)("a",{"data-toggle":"dropdown",href:"#",className:"dropdown-toggle logo ".concat("stream"===ep?" show":""),onClick:e=>{e.preventDefault(),O.streams.dedicated||("stream"!==ep?em("stream"):em(void 0))},"data-radio":O.streams.current.label,children:(0,r.jsx)("img",{src:(0,p.tB)(O.streams.current.imageUrl,"small"),alt:O.streams.current.label})}),"stream"===ep?(0,r.jsx)("div",{"aria-hidden":"true",role:"menu",className:"dropdown-menu show",children:O.streams.all.map(e=>(0,r.jsx)("a",{className:"dropdown-item logo",href:"#",onClick:t=>{t.preventDefault(),em(void 0),s.ZP.actions.setMedia({id:e.id,type:"RADIO"===e.type?"radio":"webradio",play:!0,idMds:e.idMds,imageUrl:e.imageUrl,hasStartOver:e.hasStartOver,altCover:e.altCover,soundcastEnabled:e.soundcastEnabled,...(0,A.hL)(e)}),q(eT,et,ee,e.id,e.label,!0)},children:(0,r.jsx)("img",{src:(0,p.tB)(e.imageUrl,"small"),alt:e.label})},e.idMds))}):void 0]})]}),(0,r.jsx)(H,{onPlayClick:I,onStopClick:k,onStartOverClick:P,status:T,type:m,hasStartOver:eg})]})]})})]}):"small"===f?!0===B?(0,r.jsxs)("div",{id:"simplebuttons",className:"HeaderMediaButtons",children:[$&&(0,r.jsx)(a.Z,{mobileHidden:!0,status:"active",customIcon:"loader"},"podcast"),(0,r.jsx)(a.Z,{color:"player",status:"active",customIcon:"loader"},"player")]}):!0===J?(0,r.jsx)("div",{className:"Player ".concat(er?"group1981":""),id:D,children:(0,r.jsx)("div",{className:"PlayerContainer",children:(0,r.jsx)("div",{className:"PlayerControl",children:(0,r.jsx)(a.Z,{color:"player",status:"active",customIcon:"loader"},"player")})})}):(0,r.jsx)("div",{className:"block bg--player Player PlayerSmall"}):X?(0,r.jsx)("div",{className:ec?"playerGroup81":void 0,children:(0,r.jsx)("div",{className:"block PlayerBlock bg--player",children:(0,r.jsx)("div",{className:"Player",id:D,children:(0,r.jsx)("div",{className:"PlayerContainer ".concat(er?" group1981":" "),children:(0,r.jsx)("div",{className:"PlayerCover",children:(0,r.jsx)("div",{style:{width:"240px",height:"240px",backgroundColor:"rgba(255,255,255,0.1)",borderRadius:"100%"}})})})})})}):null},J={onMutedChange:s.ZP.actions.setMuted,onVolumeChange:s.ZP.actions.setVolume,onPlayClick:(e,t,n,r)=>{let i=s.ZP.store.getState();n&&i.mediaUrl!==(null==n?void 0:n.mediaUrl)?s.ZP.actions.setMedia({...n,play:!0}):s.ZP.actions.play(),q(e,r,t,null==n?void 0:n.id,void 0,!0)},onStopClick:()=>{s.ZP.actions.stop()},onPositionChange:s.ZP.actions.seek};var ee=e=>{var t;let{size:n,blocId:a,dropdownDirection:o="up",simpleButtons:l,podcastLink:h,playerSectionBloc:f,playerBouton:
25p,dedicatedStreamId:m,page:g,position:v,hasBroadcast:y,custom1981:b}=e,E=(0,i.useContext)(x.lv),T=(0,c.oR)(s.ZP.store),S=(0,c.oR)(u.h).zone.zoneId,_=d.ZP.Zones(E),C=d.ZP.Webradios(E),k=T.id,I=T.type,L=(null===(t=_.find(e=>e.stream.id===k))||void 0===t?void 0:t.stream)||C.find(e=>e.id===k),[P,O]=(0,i.useState)((null==L?void 0:L.hasStartOver)||!1),[R,D]=(0,i.useState)(m?[...d.ZP.Radiostreams(E),...d.ZP.Webradios(E)].find(e=>{let{id:t}=e;return t===m}):void 0),[N,M]=(0,i.useState)(!R||R&&R.idMds===T.idMds?T.status:"stopped"),[j,F]=(0,i.useState)();(0,i.useEffect)(()=>{if(R)return w.Z.subscribe(R.idMds,e=>{let{artist:t,title:n,imageUrl:r}=e;F({artist:t,title:n,imageUrl:r})})},[R]),(0,i.useEffect)(()=>{D(m?[...d.ZP.Radiostreams(E),...d.ZP.Webradios(E)].find(e=>{let{id:t}=e;return t===m}):void 0)},[m]),(0,i.useEffect)(()=>{R&&R.idMds===T.idMds?M(T.status):R?M("stopped"):M(T.status)},[T.idMds,T.status,R]);let B=i.useMemo(()=>{var e;if(!k||"radio"!==I.toLowerCase()&&"webradio"!==I.toLowerCase())return;if(R)return{streams:{current:R,all:[R],dedicated:!0},zones:{all:[],current:void 0}};let t=_.find(e=>e.id===S)||_[0],n=(null===(e=_.find(e=>e.stream.id===k))||void 0===e?void 0:e.stream)||C.find(e=>e.id===k);return{zones:{current:{...t.stream,label:t.label,zoneId:t.id},all:_.map(e=>({...e.stream,zoneId:e.id,label:e.label}))},streams:{current:n,all:[...d.ZP.Webradios(E),t.stream]}}},[S,k,R]);i.useEffect(()=>{var e;let t=null===(e=_.find(e=>e.id===S)||_[0])||void 0===e?void 0:e.stream,n=!1;try{n=!!window.opener.player}catch(e){}if(t&&!n){let e=s.ZP.store.getState();e.id!==t.id&&"podcast"!==e.type&&(s.ZP.actions.setMedia({id:t.id,type:I.toLowerCase(),play:!1,idMds:t.idMds,imageUrl:t.imageUrl,altCover:t.altCover,hasStartOver:t.hasStartOver,soundcastEnabled:t.soundcastEnabled,...(0,A.hL)(t)}),O(t.hasStartOver))}},[_,S]);let{onPlayClick:U,...V}=J;return(0,r.jsx)(X,{blocId:a,size:n,status:N,metas:j||T.metas,volume:T.volume,muted:T.muted,type:T.type,onPlayClick:()=>{O(R?R.hasStartOver:(null==L?void 0:L.hasStartOver)||!1),U(E,g,R?{id:R.id,type:R.type.toLowerCase(),play:!0,idMds:R.idMds,imageUrl:R.imageUrl,altCover:R.altCover,hasStartOver:R.hasStartOver,soundcastEnabled:R.soundcastEnabled,...(0,A.hL)(R)}:void 0,v)},...V,menu:B,progress:T.progressSeconds,dropdownDirection:o,simpleButtons:l,podcastLink:h,playerSectionBloc:f,playerBouton:p,page:g,position:v,onStartOverClick:e=>{s.ZP.actions.seekBack(e)},hasStartOver:P,hasBroadcast:y,custom1981:b})}},1408:function(e,t,n){"use strict";var r=n(5893),i=n(7294);let a=(e,t,n)=>{let r="";return e>0&&(r+=""+e+":"+(t<10?"0":"")),r+=""+t+":"+(n<10?"0":"")+n};t.Z=e=>{let{progress:t,currentUrl:n,maxLength:o,currentEpisode:s,onCurrentChange:l}=e,u=i.useRef(null),c=n===s&&(null==t?void 0:t.duration)||0,d=n===s&&(null==t?void 0:t.position)?null==t?void 0:t.position:0,h=c?100*Math.round(d)/c:0,f=a(~~(d/3600),~~(d%3600/60),~~d%60),p=a(~~(c/3600),~~(c%3600/60),~~c%60);return(0,r.jsx)("div",{className:"progress-bar",children:(0,r.jsxs)("div",{className:"progress-bar-container",children:[(0,r.jsxs)("div",{className:"progress-bar-range",children:[(0,r.jsx)("input",{ref:u,className:"range",type:"range",min:"0",max:c,step:"0.1",value:d,onChange:e=>l(parseInt(e.target.value,10))}),(0,r.jsx)("div",{className:"load",style:{width:"".concat(h<90?h+10:h,"%"),transition:"width 0.5s linear"}}),(0,r.jsx)("div",{className:"progress",style:{width:"".concat(h,"%"),transition:"width 0.5s linear"}})]}),(0,r.jsx)("div",{className:"progress-bar-current",children:f}),(0,r.jsx)("div",{className:"progress-bar-max",children:"0:00"!==p?p:o})]})})}},4423:function(e,t,n){"use strict";n.d(t,{Z:function(){return L}});var r=n(5893),i=n(9671),a=n(8646),o=n(3325),s=n(706),l=n(8462),u=n(7294),c=function(){if("undefined"!=typeof Map)return Map;function e(e,t){var n=-1;return e.some(function(e,r){return e[0]===t&&(n=r,!0)}),n}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(t){var n=e(this.__entries__,t),r=this.__entries__[n];return r&&r[1]},t.prototype.set=function(t,n){var r=e(this.__entries__,t);~r?this.__entries__[r][1]=n:this.__entries__.push([t,n])},t.prototype.delete=function(t){var n=this.__entries__,r=e(n,t);~r&&n.splice(r,1)},t.prototype.has=function(t){return!!~e(this.__entries__,t)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(e,t){void 0===t&&(t=null);for(var n=0,r=this.__entries__;n<r.length;n++){var i=r[n];e.call(t,i[1],i[0])}},t}()}(),d="undefined"!=typeof window&&"undefined"!=typeof document&&window.document===document,h=void 0!==n.g&&n.g.Math===Math?n.g:"undefined"!=typeof self&&self.Math===Math?self:"undefined"!=typeof window&&window.Math===Math?window:Function("return this")(),f="function"==typeof requestAnimationFrame?requestAnimationFrame.bind(h):function(e){return setTimeout(function(){return e(Date.now())},1e3/60)},p=["top","right","bottom","left","width","height","size","weight"],m="undefined"!=typeof MutationObserver,g=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=function(e,t){var n=!1,r=!1,i=0;function a(){n&&(n=!1,e()),r&&s()}function o(){f(a)}function s(){var e=Date.now();if(n){if(e-i<2)return;r=!0}else n=!0,r=!1,setTimeout(o,20);i=e}return s}(this.refresh.bind(this),0)}return e.prototype.addObserver=function(e){~this.observers_.indexOf(e)||this.observers_.push(e),this.connected_||this.connect_()},e.prototype.removeObserver=function(e){var t=this.observers_,n=t.indexOf(e);~n&&t.splice(n,1),!t.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},e.prototype.updateObservers_=function(){var e=this.observers_.filter(function(e){return e.gatherActive(),e.hasActive()});return e.forEach(function(e){return e.broadcastActive()}),e.length>0},e.prototype.connect_=function(){d&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),m?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){d&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(e){var t=e.propertyName,n=void 0===t?"":t;p.some(function(e){return!!~n.indexOf(e)})&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=ne
25w e),this.instance_},e.instance_=null,e}(),v=function(e,t){for(var n=0,r=Object.keys(t);n<r.length;n++){var i=r[n];Object.defineProperty(e,i,{value:t[i],enumerable:!1,writable:!1,configurable:!0})}return e},y=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||h},b=x(0,0,0,0);function A(e){return parseFloat(e)||0}function E(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce(function(t,n){return t+A(e["border-"+n+"-width"])},0)}var w="undefined"!=typeof SVGGraphicsElement?function(e){return e instanceof y(e).SVGGraphicsElement}:function(e){return e instanceof y(e).SVGElement&&"function"==typeof e.getBBox};function x(e,t,n,r){return{x:e,y:t,width:n,height:r}}var T=function(){function e(e){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=x(0,0,0,0),this.target=e}return e.prototype.isActive=function(){var e=function(e){if(!d)return b;if(w(e)){var t;return x(0,0,(t=e.getBBox()).width,t.height)}return function(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return b;var r=y(e).getComputedStyle(e),i=function(e){for(var t={},n=0,r=["top","right","bottom","left"];n<r.length;n++){var i=r[n],a=e["padding-"+i];t[i]=A(a)}return t}(r),a=i.left+i.right,o=i.top+i.bottom,s=A(r.width),l=A(r.height);if("border-box"===r.boxSizing&&(Math.round(s+a)!==t&&(s-=E(r,"left","right")+a),Math.round(l+o)!==n&&(l-=E(r,"top","bottom")+o)),e!==y(e).document.documentElement){var u=Math.round(s+a)-t,c=Math.round(l+o)-n;1!==Math.abs(u)&&(s-=u),1!==Math.abs(c)&&(l-=c)}return x(i.left,i.top,s,l)}(e)}(this.target);return this.contentRect_=e,e.width!==this.broadcastWidth||e.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var e=this.contentRect_;return this.broadcastWidth=e.width,this.broadcastHeight=e.height,e},e}(),S=function(e,t){var n,r,i,a,o,s=(n=t.x,r=t.y,i=t.width,a=t.height,v(o=Object.create(("undefined"!=typeof DOMRectReadOnly?DOMRectReadOnly:Object).prototype),{x:n,y:r,width:i,height:a,top:r,right:n+i,bottom:a+r,left:n}),o);v(this,{target:e,contentRect:s})},_=function(){function e(e,t,n){if(this.activeObservations_=[],this.observations_=new c,"function"!=typeof e)throw TypeError("The callback provided as parameter 1 is not a function.");this.callback_=e,this.controller_=t,this.callbackCtx_=n}return e.prototype.observe=function(e){if(!arguments.length)throw TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof y(e).Element))throw TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)||(t.set(e,new T(e)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(e){if(!arguments.length)throw TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof y(e).Element))throw TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)&&(t.delete(e),t.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var e=this;this.clearActive(),this.observations_.forEach(function(t){t.isActive()&&e.activeObservations_.push(t)})},e.prototype.broadcastActive=function(){if(this.hasActive()){var e=this.callbackCtx_,t=this.activeObservations_.map(function(e){return new S(e.target,e.broadcastRect())});this.callback_.call(e,t,e),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),C="undefined"!=typeof WeakMap?new WeakMap:new c,k=function e(t){if(!(this instanceof e))throw TypeError("Cannot call a class as a function.");if(!arguments.length)throw TypeError("1 argument required, but only 0 present.");var n=new _(t,g.getInstance(),this);C.set(this,n)};["observe","unobserve","disconnect"].forEach(function(e){k.prototype[e]=function(){var t;return(t=C.get(this))[e].apply(t,arguments)}});var I=void 0!==h.ResizeObserver?h.ResizeObserver:k,L=e=>{var t,n,c,d,h,f,p,m;let g;let{backgroundMedia:v,children:y,color:b,customKey:A,elementToRenderBeforeFirstDiv:E,fullWidth:w,sticky:x,hasSeparator:T,hasBackgroun
25dFromModel:S=!1,overrideSectionBackground:_,modelType:C,group81Options:k}=e,[L,P]=u.useState();u.useEffect(()=>{let e=new I(function(e){e.forEach(function(e){P(e.target.clientHeight)})}),t=document.getElementsByClassName("Header")[0];return t&&e.observe(t),()=>{e.disconnect}},[]);let O=(0,s.kC)(),R=u.useMemo(()=>v&&v.medias.awsUrl?(0,l.tB)(v.medias.awsUrl,"background-section"):void 0,[v]),D=(0,i.S)(),N=D.group81,M=D.joinAvailable,j=u.useContext(a.lv),F=o.ZP.Radio(j).theme,B=o.ZP.mode(j),U=!!v,V=!!(null==F?void 0:null===(n=F.rossel)||void 0===n?void 0:null===(t=n.header)||void 0===t?void 0:t.coverHeaderWithFirstSectionBackgroundImage),z=!!(null==F?void 0:null===(h=F.rossel)||void 0===h?void 0:null===(d=h.separator)||void 0===d?void 0:null===(c=d.backgroundMedia)||void 0===c?void 0:c.mediaId),q=null==F?void 0:null===(m=F.rossel)||void 0===m?void 0:null===(p=m.separator)||void 0===p?void 0:null===(f=p.backgroundMedia)||void 0===f?void 0:f.mediaUrl;T&&(g=(0,r.jsx)("hr",{className:"hr",style:{borderTop:"solid 0.3rem"}}),z&&(g=(0,r.jsx)("div",{className:"separatorImageWrapper",children:(0,r.jsx)("img",{style:{display:"block",width:"100%",height:"100%",filter:"brightness(0.75)"},src:(0,l.tB)(q||void 0,"big"),alt:""})})));let Q={...x?{top:L}:void 0,...T&&z?{paddingBottom:0}:void 0};return(0,r.jsx)(r.Fragment,{children:(0,r.jsxs)("section",{className:"section".concat(_?" bg--section-".concat(B):"dark"===b?" bg--dark":"primary"===b?" bg--primary":"light"===b?" bg--light":"noforce"===b?"":" bg--section-".concat(B)).concat(x?" IsSticky":"").concat(U?" bg--img ":"").concat(U&&S?" bg--model":"").concat(U&&O.isMobile&&!O.isSmOrMore?" bg--dark":"").concat(U&&V?" bg--imgCover":""," ").concat(C),style:Q,id:A,children:[E&&E,U&&(0,r.jsxs)("div",{className:"bg-container",children:[(O.isMobile||!N)&&!M&&(0,r.jsx)("img",{src:R,alt:"bck ".concat(A)}),N&&(0,r.jsx)("style",{dangerouslySetInnerHTML:{__html:O.isMobile&&(!N||M&&k&&k.hasJoinWidget&&k.hasJoinWidgetId)?"":"#".concat(A," .bg-container::after {background-image: url('").concat(R,"')}")}})]}),(0,r.jsxs)("div",{className:w?"container-fluid":"container",children:[y,T&&!U&&g]})]},A)})}},515:function(e,t,n){"use strict";var r=n(5893);n(7294);var i=n(9671);t.Z=()=>{let e=(0,i.S)(),t=e.rossel,n=e.group81;return t||n?(0,r.jsx)(r.Fragment,{}):(0,r.jsx)("hr",{className:"hr"})}},7839:function(e,t,n){"use strict";var r=n(5893),i=n(7294),a=n(4002),o=n(1713),s=n(4619),l=n(4496),u=n(1930),c=n(2214),d=n(706),h=n(9671),f=n(3325),p=n(8646);t.Z=e=>{let{items:t,linkHref:n,linkLabel:m,title:g,mode:v,autoplay:y,mediaRatio:b,blocId:A,overrideRules:E,titleUnderlineBloc:w,zoomBloc:x,fullWidthBloc:T,borderBottomBloc:S,leadAnimationBloc:_,slidesPerViewConfig:C,showArrows:k,aside:I,autoplayVideo:L,hideResume:P,blurSides:O,preventForceRatio:R,keepForcedThumbnailAspect:D}=e;if(0===t.length)return(0,r.jsx)("div",{style:{width:"100%",aspectRatio:"28/26",maxHeight:"360px",display:"flex",alignItems:"center",justifyContent:"center"},children:(0,r.jsx)("div",{className:"loader",style:{width:"80px",height:"80px"}})});let N=i.useContext(p.lv),M=f.ZP.Radio(N),j=(0,h.S)().group81;1===t.length&&(y=!1),Object.keys(C).forEach(e=>{let n=C[e];void 0!==n&&n>t.length&&(C[e]=t.length)});let F=i.useMemo(()=>{let e=t.findIndex(e=>e.playing);return e>-1?e:0},[t]),B=1===t.length,U=e=>{let t=e=>j?e+.4:e;switch(e){case"xs":return t(C.xs||1);case"sm":return t(C.sm||(C.default>2?2:C.default));case"md":return t(C.md||(C.default>3?3:C.default));case"xl":case"lg":return t(C.default)}},V={autoplay:!!y&&{delay:5e3,disableOnInteraction:!1},breakpoints:Object.entries({xs:0,...d.eZ}).reduce((e,t)=>{let[n,r]=t;return{...e,[r]:{slidesPerView:U(n),spaceBetween:"xs"===n?20:40}}},{}),loop:!0,loopedSlides:t.length,noSwiping:B,...k?{navigation:{nextEl:".swiper-button-next.swiper-button-rounded",prevEl:".swiper-button-prev.swiper-button-rounded"}}:{}},z=(0,r.jsx)("span",{className:"badge badge--light",children:(0,r.jsx)("i",{className:"icon",children:(0,r.jsx)("span",{className:"equalizer",children:(0,r.jsx)("span",{})})})}),q=(0,h.S)().rossel||j;return(0,r.jsxs)("div",{className:"block Gallery",id:A,children:[(!!g||!!m&&!!n)&&(0,r.jsx)(s.Z,{title:g||" ",linkHref:q?void 0:n,linkLabel:q?void 0:m}),(0,r.jsxs)("div",{style:{position:"relative"},children:[(0,r.jsx)(o.t,{...V,initialSlide:F,children:t.map(e=>{var t,n,i,o,s,l,d,h,f,p,m,g,y,A,k,N,F,B,U,V,q,Q,H,G,K,$,W,Z,Y,X;let J=C.default<3?"big":"medium";return(0,r.jsx)(a.o,{style:1===C.default?void 0:{width:0},children:"image"===v?(0,r.jsx)(u.Z,{keepForcedAspectOnMobile:D,imageUrl:e.imageSrc,imageAlt:e.imageAlt,linkHref:e.linkHref,title:e.title,date:e.date,noResume:P,t
25ime:e.time,lead:e.lead,categories:j?e.categories:void 0,secondLead:e.secondLead,author:e.author,bottomRightCornerOverlay:e.playing?z:void 0,mediaRatio:b,imageSize:J,titleUnderline:E?w:(null===(i=M.theme)||void 0===i?void 0:null===(n=i.rossel)||void 0===n?void 0:null===(t=n.thumbnail)||void 0===t?void 0:t.titleUnderline)||void 0,zoom:E?x:(null===(l=M.theme)||void 0===l?void 0:null===(s=l.rossel)||void 0===s?void 0:null===(o=s.thumbnail)||void 0===o?void 0:o.zoom)||void 0,leadAnimation:E?_:(null===(f=M.theme)||void 0===f?void 0:null===(h=f.rossel)||void 0===h?void 0:null===(d=h.thumbnail)||void 0===d?void 0:d.leadAnimation)||void 0,overlayThumbnail:E?T:(null===(g=M.theme)||void 0===g?void 0:null===(m=g.rossel)||void 0===m?void 0:null===(p=m.thumbnail)||void 0===p?void 0:p.fullWidth)||void 0,borderBottom:E?S:(null===(k=M.theme)||void 0===k?void 0:null===(A=k.rossel)||void 0===A?void 0:null===(y=A.thumbnail)||void 0===y?void 0:y.borderBottom)||void 0,newPage:e.newPage,aside:I,isEpisode:e.isEpisode,blurSides:O,preventForceRatio:R}):(0,r.jsx)(c.Z,{imageUrl:e.imageSrc,imageAlt:e.imageAlt,linkHref:e.linkHref,icon:"play",title:e.title,date:e.date,lead:e.lead,author:e.author,mediaRatio:b,imageSize:C.default<3?"big":"medium",titleUnderline:(null===(B=M.theme)||void 0===B?void 0:null===(F=B.rossel)||void 0===F?void 0:null===(N=F.thumbnail)||void 0===N?void 0:N.titleUnderline)||void 0,zoom:(null===(q=M.theme)||void 0===q?void 0:null===(V=q.rossel)||void 0===V?void 0:null===(U=V.thumbnail)||void 0===U?void 0:U.zoom)||void 0,leadAnimation:(null===(G=M.theme)||void 0===G?void 0:null===(H=G.rossel)||void 0===H?void 0:null===(Q=H.thumbnail)||void 0===Q?void 0:Q.leadAnimation)||void 0,overlayThumbnail:(null===(W=M.theme)||void 0===W?void 0:null===($=W.rossel)||void 0===$?void 0:null===(K=$.thumbnail)||void 0===K?void 0:K.fullWidth)||void 0,borderBottom:(null===(X=M.theme)||void 0===X?void 0:null===(Y=X.rossel)||void 0===Y?void 0:null===(Z=Y.thumbnail)||void 0===Z?void 0:Z.borderBottom)||void 0,autoPlayVideo:L,blurSides:O})},e.title)})}),k&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{className:"swiper-button-prev swiper-button-rounded"}),(0,r.jsx)("div",{className:"swiper-button-next swiper-button-rounded"})]})]}),q&&(!!g||!!m&&!!n)&&(0,r.jsx)(l.Z,{linkHref:n,linkLabel:m})]})}},1975:function(e,t,n){"use strict";var r=n(5893),i=n(7294);t.Z=e=>{let{code:t,id:n,className:a}=e,o=i.useRef(null);return i.useEffect(()=>{if(window["bloc".concat(n)])return()=>{window["bloc".concat(n)]=!1};let e=o.current;if(e){let n=document.createRange().createContextualFragment(t);for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(n)}},[t,n]),(0,r.jsx)("div",{ref:o,className:a,id:n,dangerouslySetInnerHTML:{__html:t}})}},1930:function(e,t,n){"use strict";n.d(t,{Z:function(){return A}});var r=n(5893),i=n(7294),a=n(5995),o=n(1112),s=n(706),l=n(9671),u=n(8646),c=n(3325),d=n(99),h=n(564),f=n(482),p=n(1802),m=n(6395),g=n(6623),v=n(1408),y=n(6130),b=e=>{var t;let{title:n,imageUrl:a,date:o,lead:s,secondLead:d,orientation:b,album:A,artist:E,author:w,time:x,buttons:T,buttonsType:S,instagramInfos:_,nav:C,linkAction:k,noResume:I,actions:L,gameEndDate:P,htmlContent:O,jobSector:R,eventType:D,duration:N,isEpisode:M,isVideo:j,progressBar:F,playButton:B,episodeActions:U,dynamicResumeDesc:V,leadWrap:z,setIsPlayingEpisode:q,isPlayingEpisode:Q,contentType:H,badges:G,episodeId:K,eventDates:$,page:W,transcription:Z}=e,[Y,X]=i.useState(),J=i.useContext(u.lv),ee=c.ZP.Radio(J),et=(0,l.S)().group81,{mediaId:en,playerStatus:er}=(0,p.K3)({store:f.ZP.store,keys:[],fn:e=>{let{id:t,status:n}=e;return{mediaId:t,playerStatus:n}}});if(I)return(0,r.jsx)(r.Fragment,{});let ei=en!==(null==B?void 0:null===(t=B.episode)||void 0===t?void 0:t.id)?"stopped":er,ea=(e=>{if(null==B?void 0:B.customIcon)return ea;switch(e){case"playing":return"stop";case"loading":return"loader";default:return"play"}})(ei);q("playing"===ei);let eo=o&&(0,h.UW)(J,o,"onlyDate",ee.timeZone,!0),es=et&&eo&&("article"===H?"Publi\xe9 le ".concat(eo):"event"===H?"Rendez-vous le ".concat(eo):eo);return(0,r.jsxs)(r.Fragment,{children:[!a&&(0,r.jsx)("div",{className:"AudioControl",children:B&&(0,r.jsx)(m.Z,{status:"active",customIcon:ea,iconPosition:"afterLabel",onClick:()=>{B.isFromPlaylist?"playing"===ei?f.ZP.actions.stop():(B.episode&&B.playlistEpisodes&&f.ZP.actions.playPlaylist(B.episode,B.playlistEpisodes),B.onClick&&B.onClick()):B.onClick&&B.onClick()}})}),(0,r.jsxs)("div",{className:"resume",style:V?{width:"10%",flexGrow:1}:{},children:[G&&!et&&(0,r.jsx)("p",{className:"badges",children:G.map((e,t)=>(0,r.jsx)("span",{className:"badge badge--primary",children:(0,r.jsx)("span",{className:"text",children:e})},t))}),D&&(0,r.jsx)("p",{className:"artist",style:{color:"unset"}
25,children:D}),"column"!==b&&T&&T.length>0&&(0,r.jsx)("p",{className:"action-group",children:T.map((e,t)=>{let n="link"===S;return(0,r.jsxs)("div",{className:"list-inline-item",children:[(0,r.jsx)(m.Z,{status:"active",size:"small",customIcon:e.icon,withoutIcon:!e.icon||n,label:e.label,linkHref:e.href,externalHref:e.externalHref,download:e.download,iconPosition:"afterLabel",isLink:"link"===S,onClick:e.onClick||k,linkTarget:e.target}),n&&t!==T.length-1&&(0,r.jsx)("span",{className:"separator",children:"•"})]})})}),es&&(0,r.jsx)("p",{className:"date",children:es}),!es&&($||P||o||N)&&(0,r.jsxs)("p",{className:"date",children:[$||(P?"Fin : ".concat((0,h.UW)(J,P,"onlyDate",ee.timeZone)):o?(0,h.UW)(J,o,"onlyDate",ee.timeZone):""),!!N&&(0,r.jsx)("b",{children:(o?"".concat("\xa0".repeat(4),"-").concat("\xa0".repeat(4)):"")+N})]}),x&&(0,r.jsx)("p",{className:"date",children:x}),E&&(0,r.jsx)("p",{className:"artist",children:E}),n&&(0,r.jsx)("h3",{className:"h3",children:n}),R&&(0,r.jsx)("p",{className:"artist",children:R}),w&&(0,r.jsx)("p",{className:"artist",children:w}),A&&(0,r.jsx)("h3",{className:"album",children:A}),_&&(0,r.jsxs)("p",{className:"infos",children:[(0,r.jsx)("span",{className:"likes",children:"".concat(_.likes," j'aime")}),(0,r.jsx)("span",{className:"separator",children:"•"}),(0,r.jsx)("span",{className:"time",children:_.time})]}),s&&(0,r.jsx)(g.Z,{content:s,noWrap:z}),d&&(0,r.jsx)(g.Z,{content:d,noWrap:z}),(0,r.jsxs)("div",{className:"AudioPlayer".concat(Q?" playing":""),children:[a&&(0,r.jsx)("div",{className:"AudioControl",children:B&&(0,r.jsx)(m.Z,{status:"active",customIcon:ea,iconPosition:"afterLabel",onClick:()=>{B.isFromPlaylist?"playing"===ei?f.ZP.actions.stop():(B.episode&&B.playlistEpisodes&&f.ZP.actions.playPlaylist(B.episode,B.playlistEpisodes),B.onClick&&B.onClick()):B.onClick&&B.onClick()}})}),(0,r.jsx)("div",{className:"AudioProgress",children:F&&(0,r.jsx)(v.Z,{currentUrl:f.ZP.store.getState().mediaUrl,progress:f.ZP.store.getState().progressSeconds,maxLength:F.duration?F.duration:"0",currentEpisode:F.url,onCurrentChange:e=>f.ZP.actions.seek(e)})}),U]}),Z&&Z.showTranscription&&(0,r.jsx)("div",{className:"media-transcription",style:{visibility:"visible",marginTop:"10px",padding:"20px 30px",borderRadius:"4px",backgroundColor:"rgba(255, 255, 255, 0.5)",color:"#000000",lineHeight:"1.6",maxHeight:"180px",overflowY:"auto",scrollbarWidth:"thin",scrollbarColor:"#b5b5b5 transparent",boxShadow:"0 4px 15px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.08)"},dangerouslySetInnerHTML:{__html:Z.transcriptionText}}),O&&(0,r.jsx)("div",{className:"htmlContent",dangerouslySetInnerHTML:{__html:O}}),"column"===b&&T&&T.length>0&&(0,r.jsx)("div",{className:"AudioActions",children:(0,r.jsx)("ul",{className:"list-inline",children:T.map((e,t)=>{let n="link"===S;return(0,r.jsxs)("li",{className:"list-inline-item",style:{margin:"1px"},children:[(0,r.jsx)(m.Z,{status:"active",size:"extra-small",customIcon:e.icon,withoutIcon:!e.icon||n,label:e.label,linkHref:e.href,externalHref:e.externalHref,download:e.download,iconPosition:"afterLabel",isLink:"link"===S,onClick:e.onClick||k,linkTarget:e.target}),n&&t!==T.length-1&&(0,r.jsx)("span",{className:"separator",children:"•"})]})})})}),C&&C.length>0&&(0,r.jsx)("ul",{className:"nav",children:C.map(e=>(0,r.jsx)("li",{className:"nav-item",children:(0,r.jsx)(m.Z,{size:"small",color:"dark",customIcon:e.icon,linkHref:e.linkHref,status:"active",onClick:k})}))}),L]},K||""),(M||j)&&(0,r.jsx)(()=>{let{mediaId:e,playerStatus:t}=(0,p.K3)({store:f.ZP.store,keys:[],fn:e=>{let{id:t,status:n}=e;return{mediaId:t,playerStatus:n}}}),i=e===(null==Y?void 0:Y.enclosureUrl),a=i&&"playing"===t;return(0,r.jsx)("p",{style:{padding:"0.5rem",bottom:0,right:0},children:(0,r.jsx)(m.Z,{status:"active",color:"primary",label:"",isInThumbnail:!0,customIcon:a?"pause":i&&"loading"===t?"loader":"play",iconPosition:"afterLabel",onClick:e=>{M&&(e.preventDefault(),e.stopPropagation(),K&&W&&c.ZP.episode.getEpisode(J,K).then(async e=>{if(e){X(e);let o=e.podcastId?await c.ZP.podcast.getPodcastById(J,e.podcastId):void 0;if(i){if(a)f.ZP.actions.stop();else{var t,r;f.ZP.actions.play(),y.cR({type_player:"Podcast",position_player:"Body",page_id:null===(t=e.page)||void 0===t?void 0:t.id,page_name:null===(r=e.page)||void 0===r?void 0:r.name,page_url:window.location.href,podcast_id:null==o?void 0:o.title,podcast_name:null==o?void 0:o.title,episode_id:K,episode_name:n,page:W})}}else f.ZP.actions.setMedia({id:e.enclosureUrl,type:"podcast",mediaUrl:e.enclosureUrl,play:!0,imageUrl:e.imageUrl||ee.radioLogo,artist:e.author,title:e.title,isFromPlaylist:!1,hasStartOver:!1})}}))}},"Lecture")})},{})]})},A=e=>{let{title:t,subtitle:n,imageUrl:f,imageUrlOnError:p,imageSize:m,date:g,lead:v,secondLead:y,orientation:A,linkHref:E,imageAlt:w,album:x,artist:T,author:S,time:_,buttons:C,buttonsType:k,instagramInfos:I,nav:L,rounded:P,linkAction:O,badge:R,hideBadges:D,overlay:N,noResume:M,topLeftCornerOverlay:j,bottomRightCornerOverlay:F,fullScreenImageUrl:B,mediaActions:U,actions:V,useEventDates:z,eventStartDate:q,eventEndDate:Q,gameEndDate:H,mediaRatio:G,titleUnderline:K,zoom:$,leadAnimation:W,overlayThumbnail:Z,borderBottom:Y,oneThumbnail:X,categories:J,newPage:ee,titlePosition:et,descriptionPosition:en,isCarousel:er,quality:ei,forceFormat:ea,htmlContent:eo,noImage:es,location:el,jobSector:eu,eventType:ec,duration:ed,aside:eh,onClick:ef,isEpisode:ep,autoplayVideo:em,isVideo:eg,progressBar:ev,playButton:ey,episodeActions:eb,hasAudioPlayer:eA,dynamicResumeDesc:eE,leadWrap:ew,blurSides:ex,preventForceRatio:eT,preventForceOrientation:eS,keepForcedAspectOnMobile:e_,contentType:eC,preventForcedOverlay:ek,forceSrl:eI,transcription:eL}=e,eP=(0,s.kC)(),eO=(0,l.S)().group81,eR=eO?!ek&&(!!eP.isMdOrMore||!!e_)&&!eh:Z,eD=eO&&!eS&&
25(!eP.isMdOrMore||e_||eh)?"row":A,eN=i.useContext(u.lv),eM=t||w,ej=z&&q?(0,h.ld)(eN,q,Q):void 0,eF=!D&&(J||el&&[el]),[eB,eU]=i.useState(),[eV,ez]=i.useState(),[eq,eQ]=i.useState(!1),eH=eT||!eO?void 0:eP.isMdOrMore?G:"1-1";i.useEffect(()=>{ep&&E&&c.ZP.page.getPage(eN,E).then(e=>{var t,n;ez(e);let r=(null==e?void 0:null===(t=e.pageContent)||void 0===t?void 0:t.blocsData)?JSON.parse(null==e?void 0:null===(n=e.pageContent)||void 0===n?void 0:n.blocsData):void 0;if(null==r?void 0:r.episodePodcast)eU(r.episodePodcast.episodeId);else if(r.corps&&r.corps.blocsData){let e=r.corps.blocsData;e&&e.episodePodcast&&eU(e.episodePodcast.episodeId)}})},[E,ep]);let eG=()=>M?(0,r.jsx)(i.Fragment,{}):(0,r.jsx)(b,{title:t,contentType:eC,imageUrl:f,date:eO&&q?q:g,lead:v,secondLead:y,orientation:eD||A,album:x,artist:T,author:S,time:_,buttons:C,buttonsType:k,instagramInfos:I,nav:L,linkAction:O,noResume:M,actions:V,gameEndDate:H,htmlContent:eo,jobSector:eu,eventType:ec,duration:ed,isEpisode:ep,isVideo:eg,progressBar:ev,playButton:ey,episodeActions:eb,dynamicResumeDesc:eE,leadWrap:ew,badges:eF,eventDates:ej,page:eV,setIsPlayingEpisode:eQ,isPlayingEpisode:eq,episodeId:eB,transcription:eL}),eK=()=>(0,r.jsx)(r.Fragment,{children:eR&&f?(0,r.jsxs)(r.Fragment,{children:[f&&(0,r.jsx)(o.Z,{imageUrl:f,imageUrlOnError:p,imageAlt:w||t,imageSize:m,rounded:P,badge:R,fullScreenImageUrl:B,overlay:N,topLeftCornerOverlay:j,bottomRightCornerOverlay:F,actions:U,title:t||w,mediaRatio:eH||G,quality:ei,forceFormat:ea,noImage:es,aside:eh,blurSides:ex,forceSrl:eI}),eF&&eO&&(0,r.jsx)("div",{className:" blocCategory",children:eF.join(" / ")}),(0,r.jsx)("div",{className:"overlay".concat(Y?" border-bottom":""),children:(0,r.jsx)(eG,{})})]}):er?(0,r.jsxs)("div",{children:[("onTop"===et||"onTop"===en)&&(0,r.jsxs)("div",{className:"resume text-center",children:["onTop"===et&&(0,r.jsx)(d.KT,{title:t,subTitle:n}),"onTop"===en&&(0,r.jsx)(d.dk,{lead:v,badgeLabel:R})]}),f&&(0,r.jsx)(o.Z,{title:t,imageUrl:f,imageSize:"big",imageAlt:w,forceFormat:ea,overlay:"inside"===et&&(t||n)||"inside"===en&&(R||v)?(0,r.jsx)(d.sK,{title:t,subtitle:n,lead:v,badgeLabel:R,titlePosition:et,descriptionPosition:en}):void 0,mediaRatio:eH||G,borderBottom:Y,quality:ei,noImage:es,aside:eh,blurSides:ex,forceSrl:eI})]}):(0,r.jsx)(r.Fragment,{children:"row3/7"===A?(0,r.jsxs)("div",{className:"row",children:[f&&(0,r.jsx)("div",{className:"col-10 col-md-3",children:(0,r.jsx)(o.Z,{imageUrl:f,imageUrlOnError:p,imageAlt:w||t,imageSize:m,rounded:P,badge:R,fullScreenImageUrl:B,overlay:N,topLeftCornerOverlay:j,bottomRightCornerOverlay:F,actions:U,title:t||w,mediaRatio:eH||G,quality:ei,forceFormat:ea,noImage:es,aside:eh,blurSides:ex,forceSrl:eI})}),(0,r.jsx)("div",{className:"col-10 col-md-7",children:(0,r.jsx)(eG,{})})]}):"grid-row"===A?(0,r.jsxs)("div",{className:"row row-alt-2  ".concat(eA?"gutters-sm align-items-star":""),children:[f&&(0,r.jsx)("div",{className:"col-2 col-md-1",children:(0,r.jsx)(o.Z,{imageUrl:f,imageUrlOnError:p,imageAlt:w||t,imageSize:m,rounded:P,badge:R,fullScreenImageUrl:B,overlay:N,topLeftCornerOverlay:j,bottomRightCornerOverlay:F,actions:U,title:t||w,mediaRatio:eH||G,quality:ei,forceFormat:ea,noImage:es,aside:eh,blurSides:ex,forceSrl:eI})}),(0,r.jsx)("div",{className:"col-2 col-md-1",children:(0,r.jsx)(eG,{})})]}):"row-reverse"===A?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(eG,{}),f&&(0,r.jsx)(o.Z,{imageUrl:f,imageUrlOnError:p,imageAlt:w||t,imageSize:m,rounded:P,badge:R,fullScreenImageUrl:B,overlay:N,topLeftCornerOverlay:j,bottomRightCornerOverlay:F,actions:U,title:t||w,mediaRatio:eH||G,quality:ei,forceFormat:ea,noImage:es,aside:eh,blurSides:ex,forceSrl:eI})]}):(0,r.jsxs)(r.Fragment,{children:[f&&(0,r.jsx)(o.Z,{imageUrl:f,imageUrlOnError:p,imageAlt:w||t,imageSize:m,rounded:P,badge:R,fullScreenImageUrl:B,overlay:N,topLeftCornerOverlay:j,bottomRightCornerOverlay:F,actions:U,title:t||w,mediaRatio:eH||G,quality:ei,forceFormat:ea,noImage:es,aside:eh,blurSides:ex,forceSrl:eI}),(0,r.jsx)(eG,{})]})})});return O?(0,r.jsx)(r.Fragment,{children:(0,r.jsx)("a",{className:"thumbnail".concat(eR||"row"!==A&&("row-reverse"!==A||eA)?"":M?"":" d-flex").concat(eA?" has-audio-player":""," ").concat(ev&&eq?"is-playing":"").concat(K?" animated-title":"").concat($?" animated-img":"").concat(W?" animated-paragraph":"").concat(X?" one-thumbnail":""),href:"#",onClick:e=>{e.preventDefault(),O()},title:eM,children:(0,r.jsx)(eK,{})})}):E?(0,r.jsx)(r.Fragment,{children:(0,r.jsx)(a.Z,{href:E,query:em?{autoplayVideo:"true"}:void 0,children:(0,r.jsx)("a",{className:"thumbnail".concat(eR||"row"!==eD&&"row-reverse"!==eD?"":M?"":" d-flex").concat(eA?" has-audio-player":""," ").concat(ev&&eq?"is-playing":"").concat(K?" animated-title":"").concat($?" animated-img":"").concat(W?" animated-paragraph":"").concat(X?" one-thumbnail":""),title:eM,onClick:ef,target:ee?"_blank":void 0,children:(0,r.jsx)(eK,{})})})}):(0,r.jsx)(r.Fragment,{children:(0,r.jsx)("div",{className:"thumbnail".concat(eR||"row"!==eD&&"row-reverse"!==eD?"":M?"":" d-flex").concat(eL?" align-items-start":"").concat(eA?" has-audio-player":""," ").concat(ev&&eq?" is-playing":"").concat(K?" animated-title":"").concat($?" animated-img":"").concat(W?" animated-paragraph":"").concat(X?" one-thumbnail":""),children:(0,r.jsx)(eK,{})})})}},2214:function(e,t,n){"use strict";n.d(t,{Z:function(){return p}});var r=n(5893),i=n(7294),a=n(5995),o=n(3433),s=e=>{let{imageUrl:t,imageAlt:n,linkHref:i,onClick:s,title:l,mediaRatio:u,imageSize:c,autoPlayVideo:d,blurSides:h}=e,[f,p]=u?u.split("-"):[],m=()=>(0,r.jsxs)("figure",{className:"media".concat(u?" ratio--".concat(u):""),children:[h&&(0,r.jsx)(o.Z,{url:t,imageSize:c,ratio:u,style:{...h?{filter:"blur(10px)"}:{}}}),(0,r.jsx)(o.Z,{url:t,imageSize:c||"medium",ratio:u,alt:n||l,style:{...h?{minWidth:"0%",minHeight:"0%",width:"100%",height:"100%",objectFit:"contain"}:{}},width:h?void 0:f,height:h?void 0:p})]});return i?(0,r.jsx)(a.Z,{href:i,query:d?{autoplayVideo:"true"}:void 0,children:(0,r.jsx)("a",{onClick:s,title:l||n,children:(0,r.jsx)(m,{})})}):(0,r.jsx)("div",{onClick:s,children:(0,r.jsx)(m,{})})},l=n(6395),u=n(6623),c=n(564),d=n(9671),h=n(3325),f=n(8646),p=e=>{let{title:t,imageUrl:n,lead:o,orientation:p,linkHref:m,imageAlt:g,icon:v,onClick:y,buttonSize:b,animatorsNames:A,rightButtonIcon:E,rightButtonLabel:w,rightButtonOnClick:x,date:T,author:S,programmation:_,mediaRatio:C,imageSize:k,titleUnderline:I,zoom:L,leadAnimation:P,borderBottom:O,overlayThumbnail:R,autoPlayVideo:D,blurSides:N}=e,M=i.useContext(f.lv),j=h.ZP.Radio(M),F=(0,d.S)().rossel,B=()=>(0,r.jsxs)(r.Fragment,{children:[T&&(0,r.jsx)("p",{className:"date",children:(0,c.UW)(M,T,"onlyDate",j.timeZone)}),t&&(0,r.jsx)("h3",{className:"h3",children:t}),S&&(0,r.jsx)("p",{className:"artist",children:S}),o&&(0,r.jsx)(u.Z,{content:o}),(null==A?void 0:A.length)&&(0,r.jsxs)("div",{className:"terms",children:[F?(0,r.jsx)("div",{className:"terms-label",children:"Avec"}):(0,r.jsx)("strong",{className:"terms-label",children:"Animateurs associ\xe9s"}),(0,r.jsx)("ul",{className:"terms-list list-inline",children:A.map(e=>(0,r.jsx)("li",{className:"list-inline-item",children:e},e))})]})]}),U=e=>{let{href:t,autoplayVideo:n}=e;return(0,r.jsxs)("div",{className:"resume",style:{display:"flex",flexDirection:"row",justifyItems:"space-around",left:"auto",bottom:0,right:0,flex:1},children:[t?(0,r.jsx)(a.Z,{href:t,query:n?{autoplayVideo:"true"}:void 0,children:(0,r.jsxs)("a",{href:t,children:[(0,r.jsx)("div",{style:{flex:1,justifyContent:"space-between",alignItems:"flex-end"},children:(0,r.jsx)(B,{})}),(0,r.jsx)(l.Z,{status:"active",color:"primary",label:"",isInThumbnail:!0,customIcon:v,iconPosition:"afterLabel"},"Lecture")]})}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{style:{flex:1,justifyContent:"space-between",alignItems:"flex-end"},children:(0,r.jsx)(B,{})}),(0,r.jsx)("p",{style:{padding:"0.5rem",bottom:0,right:0},children:(0,r.jsx)(l.Z,{status:"active",color:"primary",label:"",isInThumbnail:!0,customIcon:v,iconPosition:"afterLabel"},"Lecture")})]}),!!w&&(0,r.jsx)("p",{className:"text-right",children:(0,r.jsx)(l.Z,{onClick:x,label:w,customIcon:E,iconPosition:"afterLabel",status:"active",isLink:!0,color:"light",isInThumbnail:!0})})]})},V=e=>{let{href:i}=e;return(0,r.jsx)(r.Fragment,{children:R&&n?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(s,{imageUrl:n,imageAlt:g,icon:v,onClick:y,buttonSize:b,linkHref:i,title:t,mediaRatio:C,imageSize:k,blurSides:N}),(0,r.jsx)("div",{className:"overlay".concat(O?" border-bottom":""),children:(0,r.jsx)(U,{href:i,autoplayVideo:D})})]}):"row"===p||"row-reverse"===p?(0,r.jsxs)("div",{className:"row row-alt-2".concat("row-reverse"===p?" flex-row-reverse":"").concat(_?" align-items-stretch":""),children:[n&&(0,r.jsx)("div",{className:"col-2 col-md-1",children:(0,r.jsx)(s,{imageUrl:n,imageAlt:g,icon:v,onClick:y,buttonSize:b,linkHref:i,title:t,mediaRatio:C,imageSize:k,blurSides:N})}),(0,r.jsx)("div",{className:"col-2 col-md-1",children:(0,r.jsx)(U,{href:i,autoplayVideo:D})})]}):(0,r.jsxs)(r.Fragment,{children:[n&&(0,r.jsx)(s,{imageUrl:n,imageAlt:g,icon:v,onClick:y,buttonSize:b,linkHref:i,title:t,mediaRatio:C,imageSize:k,blurSides:N}),(0,r.jsx)(U,{href:i,autoplayVideo:D})]})})};return w?(0,r.jsx)("div",{className:"thumbnail".concat(I?" animated-title":"").concat(L?" animated-img":"").concat(P?" animated-paragraph":""),children:(0,r.jsx)(V,{href:m})}):(0,r.jsx)(a.Z,{href:m,query:D?{autoplayVideo:"true"}:void 0,children:(0,r.jsx)("a",{className:"thumbnail ".concat(I?" animated-title":"").concat(L?" animated-img":"").concat(P?" animated-paragraph":""),title:t||g,children:(0,r.jsx)(V,{})})})}},8185:function(e,t,n){"use strict";n.d(t,{x:function(){return f}});var r=n(5893),i=n(7294),a=n(6395),o=n(7291),s=n(469),l=n(3681),u=n(798),c=n(1802),d=n(8646),h=n(9671);let f=e=>{let{title:t,artist:n,shareFunction:l,page:d,type:f,podcast:p,episode:m,blocId:g}=e,v=i.useRef(null),[y,b]=i.useState(!1),A=(0,c.oR)(u.Z.store),E=(0,h.S)().group81?s.oY:s.yp;return i.useEffect(()=>{A.name===t||A.name===t+g?b(A.isOpen):b(!1)},[A.isOpen]),(0,r.jsxs)("div",{ref:v,className:"list-inline-item",children:[(0,r.jsx)(a.Z,{size:"extra-small",status:"active",customIcon:"share",ariaLabel:"Partager",onClick:()=>{u.Z.actions.setIsOpen({name:g?t+g:t,isOpen:!A.isOpen})}}),(0,r.jsx)(o.Z,{show:y,target:v.current,placement:"top",children:e=>{let{props:i}=e;return(0,r.jsx)("div",{...i,style:{...i.style,zIndex:1500},children:(0,r.jsx)("div",{className:"tooltip",style:{display:"flex",flexDirection:"column"},children:E.map(e=>(0,r.jsx)(a.Z,{status:"active",customIcon:e,size:"small",ariaLabel:"Partager sur ".concat(e),onClick:r=>l(e,t,d,n,f,p,m,r.target)},e))})})}})]})};t.Z=e=>{let{title:t,page:n}=e,o=u.Z.store.getState().name===t.title&&u.Z.store.getState().isOpen,c=i.useContext(d.lv);return(0,r.jsxs)("div",{className:"actions",style:o?{opacity:1}:void 0,children:[(0,r.jsx)("div",{className:"actions-group",children:(0,r.jsx)(f,{title:t.title,artist:t.artist,shareFunction:(e,t,n,r,i,a,o)=>(0,s.EE)(c,e,t,n,r,i,a,o),page:n,type:"Titre"})}),(t.spotifyId||t.deezerId)&&(0,r.jsxs)("div",{className:"actions-group",children:[t.deezerId&&(0,r.jsx)(a.Z,{size:"small",status:"active",customIcon:"deezer",ariaLabel:"\xc9couter sur Deezer",onClick:()=>t.deezerId&&(0,l.jo)(t.deezerId)}),t.spotifyId&&(0,r.jsx)(a.Z,{size:"small",status:"active",customIcon:"spotify",ariaLabel:"\xc9couter sur Spotify",onClick:()=>t.spotifyId&&(0,l.MP)(t.spotifyId)})]})]})}},4686:function(e,t,n){"use strict";n.d(t,{_:function(){return T}});var r=n(5893),i=n(7294),a=n(6395),o=n(4496),s=n(4619),l=n(1930),u=n(8185),c=n(2283),d=n(564),h=n(3325),f=n(706),p=n(9671),m=n(8646),g=n(5520),v=n(8462),y=n(3681),b=n(9144),A=n(7951),E=n(845),w=n(1713),x=n(4002);let T=g.xF,S=(0,E.default)((e,t)=>{let n=e.reduce((e,t)=>
25(e.find(e=>e.idMds===t.idMds)||e.push({idMds:t.idMds,label:t.label}),e),[]);return n||(n=[]),t&&t.length>0&&t.forEach(e=>n.push({idMds:e.idMds,label:e.label})),n});t.Z=e=>{let{blocId:t,columns:n,contents:g,linkHref:E,linkLabel:_,title:C,orientation:k,rounded:I,guttersClassName:L,useBadge:P,loading:O,onSearch:R,radioStream:D,displaySearch:N,idMds:M,page:j}=e,F=i.useContext(m.lv),B=h.ZP.Radio(F),{register:U,handleSubmit:V}=(0,c.cI)(),z=h.ZP.Webradios(F),q=S(h.ZP.Radiostreams(F).filter(e=>!e.parentId),z),[Q,H]=i.useState(),G=(0,p.S)(),K=null==G?void 0:G.group81,$=null==G?void 0:G.rossel,W=K||$;i.useEffect(()=>{H((0,y.qx)(F,D||M||void 0))},[D,M]);let Z=b.Z((0,A.Z)(Date.now(),B.timeZone),"yyyy-MM-dd"),Y=b.Z((0,A.Z)(Date.now(),B.timeZone),"HH:mm"),X=Object.entries({xs:0,...f.eZ}).reduce((e,t)=>{let[,n]=t;return{...e,[n]:{slidesPerView:2.5,slidesPerColumn:1,spaceBetween:24}}},{}),J=e=>{let{content:t,idx:n}=e;return(0,r.jsx)(l.Z,{preventForceRatio:K,preventForceOrientation:K,album:t.title.title.toLocaleLowerCase(),artist:K?t.title.artist.toLocaleLowerCase():t.title.artist,imageUrl:t.title.coverUrl,imageAlt:t.title.title,orientation:k,rounded:I,badge:P?(n+1).toString():void 0,imageUrlOnError:(0,v.tB)(Q,"medium",void 0,{background:"c6c6c6"})||T,topLeftCornerOverlay:t.timestamp&&(0,r.jsx)("span",{className:"badge badge--light time",children:(0,r.jsx)("span",{className:"text",children:(0,d.to)((0,A.Z)(new Date(t.timestamp),B.timeZone))})}),mediaActions:P?(0,r.jsx)(r.Fragment,{}):(0,r.jsx)(u.Z,{title:t.title,page:j}),mediaRatio:"1-1"})};return(0,r.jsxs)("div",{className:"block ".concat(N?"TitlesSearch":"TopTitles"),id:t,children:[(C||_)&&(0,r.jsx)(s.Z,{linkHref:E,linkLabel:_,title:C}),N&&(0,r.jsx)("form",{children:(0,r.jsxs)("div",{className:"form-row",children:[(0,r.jsxs)("div",{className:"form-group TitlesSearchDate",children:[(0,r.jsx)("label",{children:"Date"}),(0,r.jsx)("input",{ref:U({required:"Ce champ est requis"}),name:"date",id:"date",className:"form-control",disabled:O,type:"date",placeholder:"jj/mm/aaaa",defaultValue:Z,pattern:"^([0-2][0-9]|(3)[0-1])(\\/)(((0)[0-9])|((1)[0-2]))(\\/)\\d{4}$"})]}),(0,r.jsxs)("div",{className:"form-group TitlesSearchHour",children:[(0,r.jsx)("label",{children:"Heure"}),(0,r.jsx)("input",{type:"time",placeholder:"--:--",pattern:"^([0-1]?[0-9]|2[0-3]):[0-5][0-9]$",className:"form-control",ref:U({required:"Ce champ est requis"}),name:"time",id:"time",defaultValue:Y,disabled:O})]}),q.length>1&&(0,r.jsxs)("div",{className:"form-group TitlesSearchRadio",children:[(0,r.jsx)("label",{children:"Radio"}),(0,r.jsx)("select",{ref:U({required:"Ce champ est requis"}),id:"radio",name:"radio",className:"form-control",disabled:O,children:q.map((e,t)=>(0,r.jsx)("option",{value:e.idMds,selected:M===e.idMds,children:e.label},t+"-"+e.idMds))})]}),(0,r.jsx)("div",{className:"form-footer ".concat(W&&" customButton"),children:(0,r.jsx)(a.Z,{status:O?"loading":"active",color:"primary",label:"Rechercher",type:"button",withoutIcon:!0,onClick:()=>R&&V(R)()})})]})}),O?(0,r.jsx)("div",{className:"toptitle-loader-height",style:{display:"flex",alignItems:"center",justifyContent:"center"},children:(0,r.jsx)("div",{className:"loader",style:{width:"80px",height:"80px"}})},"loader-container"):0===g.length?(0,r.jsx)("div",{children:"Aucun titre"},"none"):(0,r.jsx)("div",{className:"row row-alt-".concat(n," grid ").concat(L||""),children:K?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(w.t,{initialSlide:0,breakpoints:X,slidesPerColumnFill:"row",noSwiping:!0,className:"d-md-none d-block",children:g.map((e,t)=>(0,r.jsx)(x.o,{children:(0,r.jsx)(J,{content:e,idx:t})}))}),g.map((e,t)=>(0,r.jsx)("div",{className:"col-".concat(n<4?1:2," col-md-1 d-none d-md-block"),children:(0,r.jsx)(J,{content:e,idx:t})},e.timestamp))]}):g.map((e,t)=>(0,r.jsx)("div",{className:"col-".concat(n<4?1:2," col-md-1"),children:(0,r.jsx)(J,{content:e,idx:t})},e.timestamp))},"content"),W&&(C||_)&&(0,r.jsx)(o.Z,{linkHref:E,linkLabel:_})]})}},9370:function(e,t,n){"use strict";let r;n.d(t,{Z:function(){return J},v:function(){return Y}});var i=n(5893),a=n(7294),o=n(6395),s=n(2382),l=n(5995),u=n(3325),c=n(3206),d=n(5633),h=n(706),f=n(8646);let p=(0,n(9989).m)("menulateral");var m=e=>{var t,n,r,o;let{isLateralMenuOpen:l,closeMenuLateral:m,children:g,width:v}=e,y=a.useContext(f.lv),b=u.ZP.Radio(y),A=u.ZP.lateralMenu(y),[E,w]=a.useState(void 0),x=!!(null==b?void 0:null===(t=b.pages)||void 0===t?void 0:t.lateralMenu),T=!!(null==b?void 0:null===(o=b.structure)||void 0===o?void 0:null===(r=o.rossel)||void 0===r?void 0:null===(n=r.lateralMenu)||void 0===n?void 0:n.active)&&x,S={slug:A||""};return(a.useEffect(()=>{(0,c.h8)("lateralMenu",S,y,void 0).then(e=>{if("error"in e){p.error("No lateral menu");return}let{pageContext:t}=e;w({...e,pageContext:{...t||{},customKeyPrefix:"lateral"}})}).catch(e=>{console.error("MENU LATERAL => ERROR",e)})},[]),a.useEffect(()=>{if(window&&l){let e=e=>{let t=document.getElementById("menu-lateral"),n=e.target;do{if(n==t)return;n=n.parentNode}while(n);m()};return window.addEventListener("click",e),()=>{window&&window.removeEventListener("click",e)}}},[m]),E&&T)?(0,i.jsxs)("div",{className:"sidenav".concat(l?" opened":""),style:{paddingBottom:"7rem"},id:"menu-lateral",children:[(0,i.jsx)("button",{className:"btn btn-sm",onClick:m,children:(0,i.jsx)(s.Z,{name:"close"})}),(0,i.jsx)("div",{className:"sidenav-content",children:(0,i.jsx)(d.Z,{...E,isRenderInsideMenuLateral:!0})}),v<=h.eZ.md&&g]}):(0,i.jsx)(i.Fragment,{})},g=n(1371),v=n(8578),y=n(4343),b=n(1761),A=n(6644);let E=(0,A.MT)({isOpen:!1}),w=(0,A.yM)("setIsOpen");E.on(w,(e,t)=>({isOpen:t}));let x={setIsOpen:w};var T=n(6864),S=n(9671),_=n(8462),C=n(1802),k=()=>{var e;
25let t=a.useContext(f.lv),n=u.ZP.Radio(t),[r,o]=a.useState();return a.useEffect(()=>{u.ZP.radios.footerRadiosInfos(t).then(e=>o(e))},[t]),(0,i.jsx)(i.Fragment,{children:r&&(0,i.jsx)(i.Fragment,{children:(0,i.jsx)("div",{className:"GroupRadios",style:{display:"flex",flexDirection:"column",backgroundColor:(null===(e=n.theme)||void 0===e?void 0:e.mainColor)||"grey",justifyContent:"center"},children:r.map(e=>(0,i.jsx)("a",{className:"radio",href:"https://".concat(e.primaryHost),target:"_self",style:{margin:"10px 10px 15px"},children:(0,i.jsx)("figure",{className:"radio-content",children:(0,i.jsx)("img",{className:"radio-logo",src:e.radioLogo,alt:"Logo radio",style:{borderRadius:"50%",maxHeight:"5rem",maxWidth:"5rem"}})})}))})})})},I=n(4423),L=n(8667),P=n.n(L),O=n(469);let R=(e,t)=>(null==e?void 0:e.urls)?Object.keys(e.urls).filter(e=>"__typename"!==e&&(!t||O.Kr.includes(e))).reduce((t,n)=>{let r=n;return"facebook_2"===n&&(r="facebook"),"instagram_2"===n&&(r="instagram"),"twitter_2"===n&&(r="twitter"),e.urls[r]&&t.push({network:n,url:e.urls[r]}),t},[]):[],D=e=>{switch(e){case"appstore":return"apple";case"playstore":return"android";default:return e}};var N=n(564);let M=(e,t,n,r)=>(0,i.jsx)("li",{className:"nav-item",style:{marginRight:"3px"},children:(0,i.jsx)(o.Z,{status:"active",customIcon:D(t?e.network+"_2":e.network),color:n||"light",size:r||"small",iconStyle:t?{height:"38px",width:"38px"}:{},externalHref:e.url,linkTarget:"_blank",ariaLabel:"Suivez-nous sur ".concat({facebook:"Facebook",facebook_2:"Facebook",instagram:"Instagram",instagram_2:"Instagram",twitter:"Twitter",twitter_2:"Twitter",youtube:"YouTube",tiktok:"TikTok",linkedin:"LinkedIn",snapchat:"Snapchat"}[e.network]||e.network)})},e.network);var j=e=>{var t,n,r,o,s,c,d,h,p,m,b,A,E,w,x,T,C,k,L,O,D,j,F,B,U,V,z,q,Q;let{menuItems:H,footerItems:G=[],playerPosition:K,page:$}=e,W=a.useContext(f.lv),Z=u.ZP.Radio(W),Y=!!(null==Z?void 0:null===(r=Z.structure)||void 0===r?void 0:null===(n=r.player)||void 0===n?void 0:null===(t=n.bottom)||void 0===t?void 0:t.active)&&!!(null==Z?void 0:null===(c=Z.structure)||void 0===c?void 0:null===(s=c.player)||void 0===s?void 0:null===(o=s.bottom)||void 0===o?void 0:o.sticky),X=(0,y.useRouter)(),J=null==X?void 0:X.asPath,ee=!!(null==Z?void 0:null===(p=Z.structure)||void 0===p?void 0:null===(h=p.player)||void 0===h?void 0:null===(d=h.bottom)||void 0===d?void 0:d.active),et=!!(null==Z?void 0:null===(E=Z.theme)||void 0===E?void 0:null===(A=E.rossel)||void 0===A?void 0:null===(b=A.footer)||void 0===b?void 0:null===(m=b.backgroundMedia)||void 0===m?void 0:m.mediaId),en=Y&&!!(null==Z?void 0:null===(T=Z.structure)||void 0===T?void 0:null===(x=T.player)||void 0===x?void 0:null===(w=x.bottom)||void 0===w?void 0:w.hasBroadcast),er=(0,S.S)().rossel,[ei,ea]=a.useState(),[eo,es]=a.useState([]),el=!!(null===(C=Z.pages)||void 0===C?void 0:C.archive);a.useEffect(()=>{async function e(){es([...await (0,N.k4)(W)])}el&&e()},[W]),a.useEffect(()=>{eu&&u.ZP.radios.footerRadiosInfos(W).then(e=>ea(e.filter(e=>e.primaryHost!==Z.primaryHost)))},[Z]);let eu=!!(null==Z?void 0:null===(L=Z.structure)||void 0===L?void 0:null===(k=L.radioGroup)||void 0===k?void 0:k.display),ec=null==Z?void 0:null===(D=Z.structure)||void 0===D?void 0:null===(O=D.radioGroup)||void 0===O?void 0:O.title,ed={slidesPerView:ei?ei.length>5?5:ei.length:5,spaceBetween:20,loop:!0,navigation:{nextEl:".swiper-button-next",prevEl:".swiper-button-prev"}},eh=R(Z);return(0,i.jsx)("footer",{className:"Footer ".concat(et&&er?" bg--img ":""," bg--footer ").concat(Y?" HasPlayerFixed ":""),children:(0,i.jsxs)(I.Z,{customKey:"footer",elementToRenderBeforeFirstDiv:et&&er?(0,i.jsx)("div",{className:"bg-container",children:(0,i.jsx)("img",{src:(0,_.tB)((null==Z?void 0:null===(U=Z.theme)||void 0===U?void 0:null===(B=U.rossel)||void 0===B?void 0:null===(F=B.footer)||void 0===F?void 0:null===(j=F.backgroundMedia)||void 0===j?void 0:j.mediaUrl)?null==Z?void 0:null===(Q=Z.theme)||void 0===Q?void 0:null===(q=Q.rossel)||void 0===q?void 0:null===(z=q.footer)||void 0===z?void 0:null===(V=z.backgroundMedia)||void 0===V?void 0:V.mediaUrl:void 0,"big"),alt:"footerBackgroun
25dImage"})}):void 0,color:"noforce",children:[(0,i.jsx)(l.Z,{href:"/",children:(0,i.jsx)("a",{className:"FooterLogo",children:(0,i.jsx)("span",{className:"logo",children:(0,i.jsx)("img",{src:(0,_.tB)((null==Z?void 0:Z.radioFooterLogo)||(null==Z?void 0:Z.radioLogo),"big",void 0,void 0,!0,void 0,100),alt:"logo"})})})}),eu&&ei&&(0,i.jsxs)(i.Fragment,{children:[ec&&(0,i.jsx)("h3",{className:"title h3",children:ec}),(0,i.jsx)("div",{className:"FooterRadios",children:(0,i.jsx)(P(),{...ed,children:ei.map(e=>(0,i.jsx)("a",{className:"radio",href:"https://".concat(e.primaryHost),target:"_blank",children:(0,i.jsx)("figure",{className:"radio-content",children:(0,i.jsx)("img",{className:"radio-logo",src:e.radioLogo,alt:"Logo radio"})})}))})})]}),(0,i.jsx)("nav",{className:"FooterNav",children:(0,i.jsx)(g.Z,{items:H,activeSlug:J,position:"Footer"})}),eh.length>0&&(0,i.jsx)("nav",{className:"FooterSocial",children:(0,i.jsx)("ul",{className:"nav",children:eh.map(e=>M(e,!1))})}),ee&&"block"===K&&(0,i.jsx)("div",{className:"FooterPlayer",children:(0,i.jsx)(v.ZP,{size:"large",dropdownDirection:"up",page:$,position:"Footer",hasBroadcast:en})}),(0,i.jsxs)("nav",{className:"FooterLegal",children:[(0,i.jsx)(g.Z,{items:G,activeSlug:J,position:"Footer"}),el&&eo.length>0&&(0,i.jsxs)("div",{className:"archive",children:[(0,i.jsx)("div",{className:"text",children:"Archives"}),(0,i.jsx)(g.Z,{items:eo,activeSlug:J,position:"Footer"})]})]})]})})},F=()=>{let e=a.useContext(f.lv),t=u.ZP.Radio(e),n=(0,y.useRouter)(),r=null==n?void 0:n.asPath,s=u.ZP.MenuFooter(e),l=u.ZP.MenuMain(e),c=a.useMemo(()=>Y(l,!1),[l]),d=a.useMemo(()=>Y(s,!1),[s]),h=R(t).filter(e=>{if("appstore"!==e.network&&"playstore"!==e.network)return e}),p=c.filter(e=>"Contact"===e.label&&e.linkHref);return(0,i.jsxs)("div",{className:"nav group1981",children:[(0,i.jsx)("div",{className:"Header1981Infos",children:p?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(g.Z,{items:c.filter(e=>"Contact"!=e.label),activeSlug:r}),(0,i.jsx)(o.Z,{status:"active",color:"primary",size:"small",externalHref:p[0].linkHref,label:p[0].label,withoutIcon:!0,style:{padding:"0.8rem 1.5rem"}})]}):(0,i.jsx)(g.Z,{items:c,activeSlug:r})}),(0,i.jsx)("hr",{className:"hrCustom"}),(0,i.jsx)("div",{className:"Footer1981Infos",children:(0,i.jsx)(g.Z,{items:d,activeSlug:r})}),(0,i.jsx)("hr",{className:"hrCustom"}),(0,i.jsxs)("p",{className:"FooterCredits1981",children:["Design"," ",(0,i.jsx)("a",{href:"https://www.ovarma.com/",title:"",children:"Olivier Varma"})]}),h.length>0&&(0,i.jsx)("nav",{className:"SocialGroup1981",children:h.map(e=>M(e,!0))})]})};let B=0;var U=e=>{var t,n,r,c,d,p,A,w,I,L,P,O,R,D,N,M,j,U,V,z,q,Q,H,G,K,$,W,Z,Y,X,J,ee,et,en,er,ei,ea,eo,es,el,eu,ec,ed,eh,ef,ep,em,eg,ev,ey,eb,eA,eE,ew,ex,eT,eS,e_,eC,ek,eI,eL,eP,eO,eR,eD,eN,eM;let{menuItems:ej,playerMenuItems:eF=[],collapseHeader:eB,isPlayerExternePage:eU,headerShouldRemoveBGImg:eV,page:ez}=e,[eq,eQ]=a.useState(""),[eH,eG]=a.useState("up"),eK=(0,h.kC)(),e$=(0,S.S)(),eW=e$.rossel,eZ=e$.group81,[eY,eX]=a.useState(0),[eJ,e0]=a.useState(!eK.isMdOrMore&&eZ),[e1,e2]=a.useState(!0),e3=(0,C.oR)(E).isOpen,e4=()=>{eQ(eq.length?"":" MenuOpen"),th&&x.setIsOpen(!e3)},e5=()=>{let e=B;B=Date.now(),Date.now()-e>1e3&&x.setIsOpen(!e3)},e8=(0,y.useRouter)(),e6=null==e8?void 0:e8.asPath,e9=a.useContext(f.lv),e7=u.ZP.Radio(e9);a.useEffect(()=>{eZ&&(e0(!eK.isMdOrMore),window.scrollTo({top:0}))},[eK,eZ]);let te=!!(null==e7?void 0:null===(r=e7.structure)||void 0===r?void 0:null===(n=r.player)||void 0===n?void 0:null===(t=n.bottom)||void 0===t?void 0:t.active)&&!!(null==e7?void 0:null===(p=e7.structure)||void 0===p?void 0:null===(d=p.player)||void 0===d?void 0:null===(c=d.bottom)||void 0===c?void 0:c.sticky),tt=te&&"down"===eH&&!!(null==e7?void 0:null===(I=e7.structure)||void 0===I?void 0:null===(w=I.player)||void 0===w?void 0:null===(A=w.bottom)||void 0===A?void 0:A.hideOnScroll),tn=!!(null==e7?void 0:null===(O=e7.structure)||void 0===O?void 0:null===(P=O.player)||void 0===P?void 0:null===(L=P.top)||void 0===L?void 0:L.active),tr=!!(null==e7?void 0:null===(D=e7.structure)||void 0===D?void 0:null===(R=D.header)||void 0===R?void 0:R.sticky),ti=!!(null==e7?void 0:null===(j=e7.structure)||void 0===j?void 0:null===(M=j.header)||void 0===M?void 0:null===(N=M.minimized)||void 0===N?void 0:N.active)||eJ,ta=tr&&!!(null==e7?void 0:null===(z=e7.structure)||void 0===z?void 0:null===(V=z.header)||void 0===V?void 0:null===(U=V.minimized)||void 0===U?void 0:U.onScroll),to=!!(null===(Q=e7.structure)||void 0===Q?void 0:null===(q=Q.player)||void 0===q?void 0:q.hasDetail
25s),ts=(null==e7?void 0:null===(G=e7.structure)||void 0===G?void 0:null===(H=G.header)||void 0===H?void 0:H.logo)?(null==e7?void 0:null===($=e7.structure)||void 0===$?void 0:null===(K=$.header)||void 0===K?void 0:K.logo)==="center":(null==e7?void 0:e7.logoPosition)==="center",tl=!!(null==e7?void 0:null===(Y=e7.theme)||void 0===Y?void 0:null===(Z=Y.header)||void 0===Z?void 0:null===(W=Z.splitLine)||void 0===W?void 0:W.active),tu=!!(null==e7?void 0:null===(ee=e7.theme)||void 0===ee?void 0:null===(J=ee.header)||void 0===J?void 0:null===(X=J.splitLine)||void 0===X?void 0:X.fullWidth),tc=tn&&!!(null==e7?void 0:null===(er=e7.structure)||void 0===er?void 0:null===(en=er.player)||void 0===en?void 0:null===(et=en.top)||void 0===et?void 0:et.simpleButtons),td=!ts&&(null==e7?void 0:null===(ea=e7.structure)||void 0===ea?void 0:null===(ei=ea.header)||void 0===ei?void 0:ei.menuSide)==="right",th=!!(null==e7?void 0:null===(es=e7.structure)||void 0===es?void 0:null===(eo=es.header)||void 0===eo?void 0:eo.menuSide)&&(null==e7?void 0:null===(eu=e7.structure)||void 0===eu?void 0:null===(el=eu.header)||void 0===el?void 0:el.menuSide)==="burger"||eJ||!eK.isLgOrMore,tf=!!th&&(null==e7?void 0:null===(ed=e7.structure)||void 0===ed?void 0:null===(ec=ed.header)||void 0===ec?void 0:ec.menuHasRadios),tp=null==e7?void 0:null===(ef=e7.structure)||void 0===ef?void 0:null===(eh=ef.radioGroup)||void 0===eh?void 0:eh.displayMobile,tm=!!(null==e7?void 0:null===(ev=e7.theme)||void 0===ev?void 0:null===(eg=ev.rossel)||void 0===eg?void 0:null===(em=eg.header)||void 0===em?void 0:null===(ep=em.backgroundMedia)||void 0===ep?void 0:ep.mediaId),tg=!(null==e7?void 0:null===(eA=e7.theme)||void 0===eA?void 0:null===(eb=eA.rossel)||void 0===eb?void 0:null===(ey=eb.header)||void 0===ey?void 0:ey.keepOnScroll)&&(ti&&ta&&eB||ti&&!ta),tv=!!(null==e7?void 0:null===(ex=e7.theme)||void 0===ex?void 0:null===(ew=ex.rossel)||void 0===ew?void 0:null===(eE=ew.header)||void 0===eE?void 0:eE.coverHeaderWithFirstSectionBackgroundImage)&&eV,ty=!!(null==e7?void 0:null===(e_=e7.structure)||void 0===e_?void 0:null===(eS=e_.rossel)||void 0===eS?void 0:null===(eT=eS.lateralMenu)||void 0===eT?void 0:eT.active),tb=!!(null==e7?void 0:null===(eC=e7.pages)||void 0===eC?void 0:eC.lateralMenu),tA=ty&&tb,tE=()=>{x.setIsOpen(!1),eq.length&&eQ("")},tw=()=>{let e=window.pageYOffset;e<=0||e<=eY?eG("up"):eG("down"),eY<=60?e2(!0):e2(!1),eX(e)};a.useEffect(()=>(window.addEventListener("scroll",tw,{passive:!0}),window.addEventListener("scrollend",tw,{passive:!0}),()=>{window.removeEventListener("scroll",tw),window.removeEventListener("scrollend",tw)}),[eY]),a.useEffect(()=>{eZ&&tE()},[e6,eZ]),a.useEffect(()=>{eZ&&(eK.isLgOrMore?e0(!e1):e0(!0))},[e1,eK,eZ]),a.useEffect(()=>{e0(!1)},[null==e8?void 0:e8.asPath]),a.useEffect(()=>{T.N.setHasDetails(to)},[to]),a.useEffect(()=>{if(window&&eq){let e=Date.now(),t=()=>{Date.now()-e>1e3&&e4()};return window.addEventListener("click",t),()=>{window.removeEventListener("click",t)}}},[eq]);let[tx]=(0,b.i)(),tT=null===(ek=eF.find(e=>"Podcasts"===e.label))||void 0===ek?void 0:ek.linkHref,tS=a.useMemo(()=>{if(tc)return eF.filter(e=>"Podcasts"!==e.label);if(eK.isMobile||tn)return eF;let e=eF.find(e=>"Podcasts"===e.label);return e?[e]:void 0},[eF,te,eK]);if(eU)return(0,i.jsx)("header",{className:"Header bg--header HasExternalPlayerHeader IsCompact".concat(tl&&tu?" HasSeparator--full":tl?" HasSeparator":""),children:(0,i.jsx)("div",{className:"container",children:(0,i.jsx)("div",{className:"HeaderContainer",children:(0,i.jsx)("div",{className:"HeaderLogo",style:{cursor:"pointer"},children:(0,i.jsx)(l.Z,{href:"/",children:(0,i.jsx)("a",{children:(0,i.jsx)("span",{className:"logo",children:(null==e7?void 0:e7.radioLogo)&&(0,i.jsx)("img",{src:(0,_.tB)(e7.radioLogo,"small"),alt:"logo"})})})})})})})});let t_=!eK.isLgOrMore||!!th,tC=tp&&tx<h.eZ.md||tf&&tx>h.eZ.md,tk="\n    ".concat(tA?"HasSidenav":"","\n    ").concat(te?"HasPlayerFixed":"","\n    ").concat(tc?"HasMediaButtons":"","\n    ").concat(tl?tu?"HasSeparator--full":"HasSeparator":"","\n    ").concat(tr?"IsFixed":"","\n    ").concat(ti&&!ta&&eJ?"scrollGroup1981":"","\n    ").concat(ti&&ta&&eB||ti&&!ta?"IsCompact":"","\n    ").concat(tv?"multi-bg--header":"","\n    ").concat(eW&&tm?"bg--img":"","\n    ").concat(t_?"HasNavExpendable":"","\n    ").concat(ts?"HasCenteredLogo":"","\n    ").concat(eq,"\n    ").concat(tn&&!tc?"HasPlayer":"","\n    ").concat(tt?"HasHeaderAsideHidden":"","\n  ");return(0,i.jsxs)("header",{className:"Header  bg--header ".concat(tk),id:"Header",children:[(eW&&tm&&!tg&&!tv||eW&&tm&&!tg&&tv&&ti&&ta&&eB)&&(0,i.jsx)("div",{className:"bg-container",children:(0,i.jsx)("img",{src:(0,_.tB)((null==e7?void 0:null===(eO=e7.theme)||void 0===eO?void 0:null===(eP=eO.rossel)||void 0===eP?void 0:null===(eL=eP.header)||void 0===eL?void 0:null===(eI=eL.backgroundMedia)||void 0===eI?void 0:eI.mediaUrl)?null==e7?void 0:null===(eM=e7.theme)||void 0===eM?void 0:null===(eN=eM.rossel)||void 0===eN?void 0:null===(eD=eN.header)||void 0===eD?void 0:null===(eR=eD.backgroundMedia)||void 0===eR?void 0:eR.mediaUrl:void 0,"big"),alt:"headerBackgroun
25dImage"})}),(0,i.jsx)("div",{className:"container",children:(0,i.jsxs)("div",{className:"HeaderContainer ".concat(eZ?" CustomHeader ".concat(e3&&(eJ||!eK.isLgOrMore&&eZ)?"Open menuShifted":""):""),children:[eZ?(0,i.jsxs)("div",{className:"HeaderLeftElements",children:[(0,i.jsx)(l.Z,{href:"/",onClick:e=>{e.stopPropagation(),e2(!0),tE()},children:(0,i.jsx)("a",{className:"HeaderLogo",children:(0,i.jsx)("span",{className:"logo",style:{cursor:"pointer"},children:(null==e7?void 0:e7.radioLogo)&&(0,i.jsx)("img",{src:(0,_.tB)(e7.radioLogo,"small",void 0,void 0,!1,void 0,100),alt:"logo"})})})}),(0,i.jsx)("div",{className:"HeaderToggler",children:(0,i.jsx)("button",{type:"button",className:"btn",onClick:tA?()=>{e5()}:e4,children:eq?(0,i.jsx)(s.Z,{name:"close"}):(0,i.jsx)(s.Z,{name:"menu"})})})]}):(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(l.Z,{href:"/",onClick:e=>{e.stopPropagation()},children:(0,i.jsx)("a",{className:"HeaderLogo",children:(0,i.jsx)("span",{className:"logo",style:{cursor:"pointer"},children:(null==e7?void 0:e7.radioLogo)&&(0,i.jsx)("img",{src:(0,_.tB)(e7.radioLogo,"small",void 0,void 0,!1,void 0,100),alt:"logo"})})})}),(0,i.jsx)("div",{className:"HeaderToggler",children:(0,i.jsx)("button",{type:"button",className:"btn",onClick:tA?()=>{e5()}:e4,children:eq?(0,i.jsx)(s.Z,{name:"close"}):(0,i.jsx)(s.Z,{name:"menu"})})})]}),(!tA||tA&&tx>h.eZ.lg)&&(0,i.jsx)("div",{className:"HeaderNavContainer",id:"HeaderNavContainer",children:(0,i.jsx)("div",{className:"".concat(tC?"HasRadioGroup ":""),style:{display:"flex",flex:"1 1 1px",flexDirection:"column"},children:(0,i.jsx)("nav",{className:"HeaderNav".concat(td?" MenuRight":""),children:(0,i.jsx)("div",{className:"MenuTop",children:(0,i.jsx)("div",{className:"".concat(eK.isMobile||!eK.isLgOrMore&&eZ?"isMobile ".concat((eJ||!eK.isLgOrMore&&eZ)&&e3?"feature1981":""):"isNotMobile "),children:(0,i.jsxs)("div",{className:"".concat(eK.isMobile?"collapseHeader ".concat(eJ||!eK.isLgOrMore&&eZ?"feature1981":""):ti&&ta?th||tx<h.eZ.lg?th?eB?"".concat((eJ||!eK.isLgOrMore&&eZ)&&e3?"collapseHeader feature1981":"collapseHeader"):"fullHeader":"collapseHeader ".concat((eJ||!eK.isLgOrMore&&eZ)&&e3?"feature1981":""):" ":ti&&!ta?th||tx<h.eZ.lg?"".concat((eJ||!eK.isLgOrMore&&eZ)&&e3?"collapseHeader feature1981":"collapseHeader"):"":th?eK.isLgOrMore?"fullHeader":"collapseHeader ".concat((eJ||!eK.isLgOrMore&&eZ)&&e3?"feature1981":""):""),children:[tC&&(0,i.jsx)(k,{}),eJ||!eK.isLgOrMore&&eZ?(0,i.jsx)(F,{}):(0,i.jsx)(g.Z,{items:ej,activeSlug:e6,position:"Header"})]})})})})})}),(eJ||!eK.isMdOrMore&&eZ)&&(0,i.jsx)("div",{className:"titleSite1981",children:e7.titreSite}),!eJ&&(0,i.jsx)("div",{className:"HeaderSearch",children:(0,i.jsx)(o.Z,{linkHref:"/recherche",customIcon:"search",status:"active",ariaLabel:"Rechercher"})}),(0,i.jsxs)("div",{className:"HeaderAside".concat(eZ?" group1981":""),children:[tS&&(0,i.jsx)("nav",{className:"HeaderSources".concat(to?" HasDetails":""),children:(0,i.jsx)(g.Z,{items:tS,activeSlug:e6,position:"Header"})}),(0,i.jsx)(v.ZP,{size:"small",dropdownDirection:"down",simpleButtons:!!tc||void 0,podcastLink:tc?tT:void 0,page:ez,position:"Header",custom1981:eZ})]})]})}),tA&&(0,i.jsx)(m,{isLateralMenuOpen:e3,closeMenuLateral:()=>{e5()},width:tx,children:(0,i.jsx)("div",{className:"container",children:(0,i.jsx)("div",{className:"HeaderContainer",children:(0,i.jsx)("div",{className:"HeaderNavContainer",id:"HeaderNavContainer",children:(0,i.jsxs)("div",{className:"".concat(th?"HasMenuLeft":""),children:[(0,i.jsx)(o.Z,{size:"small",status:"active",customIcon:"close"}),(0,i.jsx)("nav",{className:"HeaderNav".concat(td?" MenuRight":""),children:(0,i.jsx)(g.Z,{items:ej,activeSlug:e6,position:"Header"})})]})})})})})]})},V=n(5980),z=n(8280),q=n(482),Q=n(1163),H=n(4930),G=n(6130),K=n(1257),$=n(5336),W=e=>{var t,n,r;let{footerItems:o=[]}=e,s=a.useContext(f.lv),c=u.ZP.Radio(s),d=null===(n=c.theme)||void 0===n?void 0:null===(t=n.separators)||void 0===t?void 0:t.footerSeparator,p=R(c,!0),m=(0,h.kC)(),v=m.isMdOrMore?null==d?void 0:d.desktopImage:null==d?void 0:d.mobileImage,y=(0,Q.useRouter)(),b=null==y?void 0:y.asPath,[A,E]=a.useState([]),w=!!(null===(r=c.pages)||void 0===r?void 0:r.archive);return a.useEffect(()=>{async function e(){E([...await (0,N.k4)(s)])}w&&e()},[s]),(0,i.jsx)("footer",{className:"Footer",children:(0,i.jsxs)("div",{className:"footer",children:[(0,i.jsx)("div",{className:"footer-bg-container",children:(0,i.jsx)("div",{className:"footer-bg",children:v&&(0,i.jsx)("img",{style:{display:"block",width:"101%",marginLeft:"-0.5%"},className:"default",src:(0,_.tB)(v.mediaUrl,"background-section",void 0,void 0,!1,void 0,100),alt:""},"default")})}),(0,i.jsxs)("div",{className:"container",children:[(0,i.jsxs)("div",{className:"footerContent",children:[(0,i.jsxs)("p",{className:"FooterCredits",children:["Design ",(0,i.jsx)("a",{href:"https://www.ovarma.com/",children:"Olivier Varma"})]}),m.isMdOrMore&&(0,i.jsxs)("nav",{className:"FooterLegal",children:[(0,i.jsx)(g.Z,{items:o,activeSlug:b,position:"Footer"}),w&&A.length>0&&(0,i.jsxs)("div",{className:"archive",children:[(0,i.jsx)("div",{className:"text",children:"Archives"}),(0,i.jsx)(g.Z,{items:A,activeSlug:b,position:"Footer"})]})]})]}),p.length>0&&(0,i.jsx)("nav",{className:"FooterSocial",children:(0,i.jsx)("ul",{className:"nav",children:p.map(e=>M(e,!0,"alpha","extra-small"))})}),(0,i.jsx)(l.Z,{href:"/",children:(0,i.jsx)("a",{className:"FooterLogo",children:(0,i.jsx)("span",{className:"logo",children:(0,i.jsx)("img",{src:(0,_.tB)((null==c?void 0:c.radioFooterLogo)||(null==c?void 0:c.radioLogo),"big",void 0,void 0,!0,void 0,100),alt:"logo"})})})})]}),!m.isMdOrMore&&(0,i.jsxs)("nav",{className:"FooterLegal",children:[(0,i.jsx)(g.Z,{items:o,activeSlug:b,position:"Footer"}),w&&A.length>0&&(0,i.jsxs)("div",{className:"archive",children:[(0,i.jsx)("div",{className:"text",children:"Archives"}),(0,i.jsx)(g.Z,{items:A,activeSlug:b,position:"Footer"})]})]})]})})};Q.Router.events.on("routeChangeComplete",e=>{if(!V.Z.SSR&&e!==r){var t,n;r=e,null===(n=document.getElementsByClassName("Global"))||void 0===n||null===(t=n[0])||void 0===t||t.scrollTo(0,0)}x.setIsOpen(!1)});let Z=(e,t)=>({id:e.id,label:e.label,linkHref:e.target,subItems:[],icon:t}),Y=(e,t)=>
25{let n=[];return e&&e.items&&e.items.length>0&&(e.items.filter(e=>!e.parentId).forEach(e=>{t&&(!t||e.target&&e.target.startsWith("javascript"))||n.push(Z(e))}),e.items.filter(e=>!!e.parentId).forEach(e=>{let t=n.find(t=>e.parentId===t.id);if(t){var r;null===(r=t.subItems)||void 0===r||r.push(Z(e))}})),n},X=(e,t,n,r,i)=>{let a=[],o=(e,t,n,r,i)=>{G.cR({type_player:e,position_player:t,radio_id:n,radio_name:r,page_id:null==i?void 0:i.id,page_name:null==i?void 0:i.name,page_url:(null==i?void 0:i.canonical)||window.location.href,page:i})};if(!e)return a;let s=e.find(e=>e.id===n.zoneId)||e[0];return a.push({id:"zones",label:"".concat(s.label),linkHref:"#",linkAction:1===e.length?()=>{q.ZP.actions.setMedia({id:s.stream.id,type:"RADIO"===s.stream.type?"radio":"webradio",play:!0,idMds:s.stream.idMds,imageUrl:s.stream.imageUrl,altCover:s.stream.altCover,hasStartOver:s.stream.hasStartOver,soundcastEnabled:s.stream.soundcastEnabled,...(0,K.hL)(s.stream)}),z.Nw.setZone(e[0].id),G.qy({id_zone:s.id,nom_zone:s.label,moment:"en_cours"}),o("Radio","Header",s.stream.id,s.stream.label,r)}:void 0,subItems:e.length<2?[]:e.map(e=>({id:e.id,label:e.label,linkHref:"#",linkAction:()=>{q.ZP.actions.setMedia({id:e.stream.id,type:"RADIO"===e.stream.type?"radio":"webradio",play:!0,idMds:e.stream.idMds,imageUrl:e.stream.imageUrl,altCover:e.stream.altCover,hasStartOver:e.stream.hasStartOver,soundcastEnabled:e.stream.soundcastEnabled,...(0,K.hL)(e.stream)}),z.Nw.setZone(e.id),G.qy({id_zone:s.id,nom_zone:s.label,moment:"en_cours"}),o("Radio","Header",e.stream.id,e.stream.label,r)}}))}),a.push({id:"radios",label:"Webradios",linkHref:"#",subItems:t.map(e=>({id:e.id,label:e.label,linkHref:"#",linkAction:()=>{q.ZP.actions.setMedia({id:e.id,type:"RADIO"===e.type?"radio":"webradio",play:!0,idMds:e.idMds,imageUrl:e.imageUrl,altCover:e.altCover,hasStartOver:"Hls"===e.streamFormat&&e.hasStartOver,soundcastEnabled:e.soundcastEnabled,...(0,K.hL)(e)}),o("Webradio","Header",e.id,e.label,r)}}))}),i&&a.push({id:"link",label:"Podcasts",linkHref:i,subItems:[],icon:"podcast"}),a};var J=e=>{let{children:t,headerMenu:r,footerMenu:o,removeHeaderFooter:s,isPlayerExternePage:l,page:c}=e,d=a.useMemo(()=>Y(r,!1),[r]),p=a.useMemo(()=>Y(o,!1),[o]),m=(0,a.useContext)(f.lv),g=u.ZP.Radio(m),v=u.ZP.taggingData(m),y=(0,S.S)(),b=y.rossel,A=y.group81,E=(0,C.oR)(z.h),w=u.ZP.Zones(m),x=u.ZP.Webradios(m),T=E.zone,_=u.ZP.podcastsLink(m),k=a.useMemo(()=>X(w,x,T,c,_),[w,T,_]);(0,a.useEffect)(()=>{if(!V.Z.SSR&&(null==v?void 0:v.radioIdCmp)&&(null==v?void 0:v.headerCmp)){let e=n(8168).default.getInstance();e.removeContainer(1),e.setTcVars({env_work:window.location.href.includes("dev")?"DEV":window.location.href.includes("preprod")?"PREPROD":"PROD",env_language:"fr",user_logged:"false",radio_id:null==g?void 0:g.id})}},[]);let I=a.useRef(null),[L,P]=a.useState(!1),O=()=>{if((b||A)&&t){var e,n,r,i,a,o,s,l,u,c,d;let h=null===(a=t[0].props)||void 0===a?void 0:null===(i=a.pageProps)||void 0===i?void 0:null===(r=i.page)||void 0===r?void 0:null===(n=r.pageContent)||void 0===n?void 0:null===(e=n.model)||void 0===e?void 0:e.pagebuilder;if(h){let e=JSON.parse(h),n=null==e?void 0:null===(o=e.sections)||void 0===o?void 0:o[0];if(n&&(null==n?void 0:n.backgroundSectionM))return!0;let r=n&&((null==n?void 0:n.layout)==="1"||(null==n?void 0:n.layout)==="10")&&n.blocsByColumn&&n.blocsByColumn[0]&&n.blocsByColumn[0].find(e=>"imagePrincipale"===e.id);if(r){let e=null===(c=t[0].props)||void 0===c?void 0:null===(u=c.pageProps)||void 0===u?void 0:null===(l=u.page)||void 0===l?void 0:null===(s=l.pageContent)||void 0===s?void 0:s.blocsData;if(e){let t=JSON.parse(e);return!!(null==t?void 0:null===(d=t.imagePrincipale)||void 0===d?void 0:d.mediaId)}}return!!r}}return!1},[R,D]=a.useState(O()),N=(0,h.kC)();a.useEffect(()=>{D(O())},[t]);let M=(0,a.useMemo)(()=>A?20:R?110+(N.isMobile?10:0):-60,[R,N.isMobile,A]);return a.useEffect(()=>{let e=()=>-I.current.getBoundingClientRect().top.toFixed(0),t=document.body,n=()=>{if(I.current){let n=e()>M;P(n),!b||N.isMobile||n||0!==t.scrollTop||(t.scrollTop=2)}};return window.addEventListener("scroll",n),()=>{window.removeEventListener("scroll",n)}},[]),(0,i.jsxs)("div",{className:"Global media-max-height-lg",children:[!s&&(0,i.jsx)(U,{menuItems:d,playerMenuItems:k,collapseHeader:L,isPlayerExternePage:l,headerShouldRemoveBGImg:R,page:c}),w&&(0,i.jsx)($.ZP,{host:m}),(0,i.jsx)(H.ZP,{children:(0,i.jsx)("main",{className:"Main".concat(s?" pageWithoutHeader":"").concat(l?" isPlayerExternePage":""),ref:I,children:t})}),!s&&!l&&(0,i.jsx)(A?W:j,{menuItems:d,footerItems:p,playerPosition:"block",page:c}),(0,i.jsx)("svg",{className:"ClipPath",children:(0,i.jsx)("clipPath",{id:"chevron",clipPathUnits:"objectBoundingBox",children:(0,i.jsx)("path",{d:"M0.976,0.114 L0.928,0.038 C0.911,0.013,0.892,0,0.87,0 C0.847,0,0.828,0.013,0.812,0.038 L0.5,0.533 L0.188,0.038 C0.172,0.013,0.153,0,0.13,0 C0.108,0,0.089,0.013,0.072,0.038 L0.024,0.114 C0.008,0.14,0,0.171,0,0.207 C0,0.243,0.008,0.274,0.024,0.298 L0.442,0.961 C0.458,0.987,0.477,1,0.5,1 C0.523,1,0.542,0.987,0.558,0.961 
25L0.976,0.298 C0.992,0.273,1,0.243,1,0.207 C1,0.171,0.992,0.141,0.976,0.114"})})})]})}},5633:function(e,t,n){"use strict";var r=n(5893),i=n(7294),a=n(3948),o=n(7860),s=n(6395),l=n(5980),u=n(3325),c=n(5336),d=n(8646);let h={display:"flex",width:"fit-content",position:"fixed",right:"2vw",zIndex:1400,top:"190px",opacity:.9},f=e=>{let{children:t}=e;return(0,r.jsx)(r.Fragment,{children:t})};t.Z=e=>{let{page:t,fetchedContent:n,pageContext:p,isRenderInsideMenuLateral:m,isForPreview:g,blocsDataForPreview:v,titleForPreview:y}=e,{title:b,blocsData:A,model:E,modelType:w}=(0,o.$F)(t),[x,T]=i.useState(void 0),[S,_]=i.useState(!1),C=i.useContext(d.lv),k=l.Z.SSR?void 0:localStorage.getItem("backUser");return i.useEffect(()=>{(null==p?void 0:p.slug)&&(0,o.Fz)(C,p.slug).then(()=>{})},[p]),i.useEffect(()=>{if(k){var e;let n=JSON.parse(k);new Date(n.expiryDate||Date.now())>new Date&&(null===(e=n.profile)||void 0===e?void 0:e.length)&&(null==t?void 0:t.slug)&&(u.ZP.page.getPageEditLink(C,t.slug).then(e=>{n.profile.includes(e.profileForPage)&&T(e.editLink)}),_(!0))}},[k,t]),(0,r.jsx)(r.Fragment,{children:(0,r.jsx)(f,{children:(0,r.jsxs)(r.Fragment,{children:[x&&(0,r.jsx)("div",{className:"editContainer",style:h,children:(0,r.jsx)(s.Z,{status:"active",color:"primary",size:"small",externalHref:x,label:"\xc9diter la page sur BOCIR",linkTarget:"_blank"})}),S&&(0,r.jsx)("div",{className:"editContainer",style:{...h,marginTop:"60px"},children:(0,r.jsx)(s.Z,{status:"active",color:"primary",size:"small",onClick:()=>{(k?JSON.parse(k):void 0)&&(0,c.UP)(C)},label:"Envoyer ma g\xe9olocalisation pr\xe9cise",linkTarget:"_blank"})}),(0,r.jsx)("div",{id:"PlayerDetailsOverlay",className:"PlayerDetailsOverlay hidden"}),(0,r.jsx)(a.Z,{model:g&&(null==t?void 0:t.pageContent.model.pagebuilder)?JSON.parse(t.pageContent.model.pagebuilder):E,modelType:w,blocsData:g&&v||A,fetchedData:n,categoryId:null==t?void 0:t.categoryId,category:null==t?void 0:t.category,pageTitle:g?y:b,page:t,pageContext:p,isRenderInsideMenuLateral:m,disableBackground:g})]})})})}},8081:function(e,t,n){"use strict";n.d(t,{B:function(){return i},k:function(){return r}});let r="\n<script>\n  if(!window.gptscriptloaded){\n    window.gptscriptloaded=new Promise(function(a) {\n      let node = document.getElementById('pub');\n      if(!node)\xa0{\n        node = document.createElement('script');\n        node.async = true;\n        node.setAttribute('src', 'https://securepubads.g.doubleclick.net/tag/js/gpt.js');\n        node.setAttribute('charSet', 'utf-8');\n        node.setAttribute('id','pub');\n        document.body.appendChild(node);\n      }\n    })\n    window.gptscriptloaded.then(function() {\n      window.googletag = window.googletag || {cmd: []};\n      window.googletag.cmd.push(function() { window.googletag.pubads().refresh() });\n    })\n  }\n</script>\n",i=e=>{let{height:t,nodeId:n,idSuffix:r,title:i,path:a,width:o}=e;return"\n<script>\n  window.googletag = window.googletag || {};  \n  window.googletag.cmd = window.googletag.cmd || [];     \n   \n  window.googletag.cmd.push(() => { \n\n    const slots = window.gptSlots ||\xa0{}\n    \n    const previousSlot = slots['".concat(a,"']\n\n    if(previousSlot){\n      window.googletag.destroySlots([previousSlot]);\n    }\n\n    const slot = window.googletag\n    .defineSlot('").concat(a,"',[").concat(o,",").concat(t,"], '").concat(n,"');\n\n    slot.addService(window.googletag.pubads());\n\n    slots['").concat(a,"'] = slot\n\n    window.gptSlots = slots\n\n    window.googletag.pubads().enableSingleRequest();\n    window.googletag.pubads().disableInitialLoad();\n    window.googletag.enableServices();\n    window.googletag.display('").concat(n,"');\n    window.googletag.pubads().refresh();\n    window.isEmptyDiv = window.googletag.pubads().collapseEmptyDivs();\n    if(!window.isEmptyDiv  &&  window.tC &&  window.tC.event){\n         sendAdImpressionEvent({ id_ad: ").concat(r,", nom_ad: ").concat(i||"empty",", type_ad: 'gpt' })\n        }\n    \n\n  });\n</script>\n")}},706:function(e,t,n){"use strict";n.d(t,{Tj:function(){return c},eZ:function(){return s},kC:function(){return d}});var r=n(7294),i=n(845),a=n(6486),o=n.n(a);let s={sm:576,md:768,lg:992,xl:1440},l=(0,i.default)(e=>void 0===e?{isMobile:!1,isSmOrMore:!0,isMdOrMore:!0,isLgOrMore:!0,isXlOrMore:!0}:{isMobile:e<s.md,isSmOrMore:e>s.sm,isMdOrMore:e>s.md,isLgOrMore:e>s.lg,isXlOrMore:e>s.xl}),u=()=>l(window.innerWidth),c=()=>l(window.screen.width),d=()=>{let[e,t]=r.useState(u()),[n]=r.useState(e);return r.useEffect(()=>{let e=n,r=()=>{let n=u();o().isEqual(n,e)||(e=n,t(n))};r();let i=o().debounce(r,300);return window.addEventListener("resize",i),()=>{window.removeEventListener("resize",i)}},[n]),e}},5820:function(e,t,n){"use strict";let r;n.d(t,{h:function(){return d}});let i=new Map([["video","afficherd-HabyHZfd"],["socialNetwork","afficherd-97wNCkm4"],["geolocation","geolocation_data"],["analytics","contenus"]
25]),a=()=>(r||(r=new Promise(e=>{let t=t=>{if("function"!=typeof window.__tcfapi)return e(t);window.__tcfapi("addEventListener",2,(n,r)=>{if(r&&("tcloaded"===n.eventStatus||"useractioncomplete"===n.eventStatus)){var i,a;null===(i=(a=window).__tcfapi)||void 0===i||i.call(a,"removeEventListener",2,()=>{},n.listenerId),e(t)}})};if(window.Didomi&&Object.keys(window.Didomi).length>0)return t(window.Didomi);window.didomiOnReady=window.didomiOnReady||[];let n=setTimeout(()=>{console.error("Didomi did not call callback !")},2e3);window.didomiOnReady.push(e=>{clearTimeout(n),t(e)})})),r),o=new Map([["geolocation","tcf2_sf_1"],["analytics","2"],["socialNetwork","4"],["video","4"]]);function s(){window.caReady||(window.caReady=[]),window.cact||(window.cact=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return window.caReady.push(t)}),window.cact("consent.onUpdate",()=>{document.location.reload()})}let l={getKind:()=>"none",isDetected:()=>!0,hasConsent:async()=>!1,setConsent:async()=>{}},u=[{getKind:()=>"Didomi",isDetected:()=>!!window.didomiConfig,async hasConsent(e){try{let t=await a();if(!t)return!0;let n=i.get(e);if(!n)return!0;let r=t.getCurrentUserStatus(),o=null==r?void 0:r.purposes,s=String(n).trim();return Object.values(o||{}).some(e=>e.id.startsWith(s)&&e.enabled)}catch(e){return console.error("hasConsent error",e),!1}},setConsent:async(e,t)=>{try{let n=await a();if(!n)return;let r=n.getCurrentUserStatus();if(!r||!r.purposes)return;let o=i.get(e);if(!o){console.error("No mapping purpose for "+e);return}let s=Object.values(r.purposes).filter(e=>e.id.startsWith(o)).map(e=>e.id);if(s.length){let e=n.openTransaction();s.forEach(n=>"denied"===t?e.disablePurpose(n):e.enablePurpose(n)),e.commit(),window.location.reload()}}catch(e){console.error("setConsent error",e)}}},{getKind:()=>"trustCommander",isDetected:()=>!window.didomiConfig,hasConsent:e=>new Promise(t=>{s(),window.cact("consent.get",n=>{try{var r,i,a,s;let l=null==n?void 0:null===(r=n.consent)||void 0===r?void 0:r.status;if("all-on"===l)return t(!0);if("unset"===l)return t(!1);let u=o.get(e);if(null!=u){let e=null===(s=n.consent)||void 0===s?void 0:null===(a=s.categories)||void 0===a?void 0:null===(i=a[u])||void 0===i?void 0:i.status;if("off"===e)return t(!1);if("on"===e)return t(!0)}return t(!1)}catch(e){return console.error("hasConsent error",e),t(!1)}})}),async setConsent(e,t){s();let n=o.get(e);null!=n&&window.cact("consent.update",{categories:{[n]:{status:"denied"===t?"off":"on"}}})}}],c=null,d=()=>(c||console.log("cmp: "+(c=u.find(e=>e.isDetected())||l).getKind()),c)},5980:function(e,t,n){"use strict";var r,i=n(4155);let a={SSR:!1,api:{endpoint:(null===(r=n.g.apidata)||void 0===r?void 0:r.ENDPOINT)||i.env.NEXT_PUBLIC_ENDPOINT||"/graphql"}};t.Z=a},7539:function(e,t,n){"use strict";n.d(t,{D:function(){return i},d:function(){return a}});var r=n(5980);let i=e=>{if(!r.Z.SSR&&document.cookie){let t=document.cookie.split(";").find(t=>t.trim().startsWith(e));return t?t.split("=")[1].trim():void 0}},a=(e,t)=>{if(!r.Z.SSR){let n="".concat(e,"=").concat(encodeURIComponent(t),";max-age=").concat(15552e3,";path=/");document.cookie=n}}},564:function(e,t,n){"use strict";n.d(t,{ld:function(){return m},UW:function(){return f},NB:function(){return b},UZ:function(){return y},k4:function(){return E},ZY:function(){return v},e7:function(){return d},jL:function(){return p},to:function(){return h}});var r=n(9119),i=n(3882);function a(e,t){(0,i.Z)(2,arguments);var n=(0,r.Z)(e),a=(0,r.Z)(t);return n.getTime()===a.getTime()}var o=n(7951),s=n(3325),l=n(9989),u=n(8403),c=n.n(u);let d=["janvier","f\xe9vrier","mars","avril","mai","juin","juillet","ao\xfbt","septembre","octobre","novembre","d\xe9cembre"],h=e=>{let t=e.getMinutes();return"".concat(e.getHours(),"h").concat(t<10?"0".concat(t):t)},f=(e,t,n,r,i)=>{let l=s.ZP.Radio(e),u=(0,o.Z)(new Date,l.timeZone),c=(0,o.Z)(t,r||"Europe/Paris"),f=c.getDate(),p=c.getMonth(),m="".concat(f).concat(1===f?"er":""," ").concat(d[p]," ").concat(c.getFullYear()),g=h(c);return"onlyDay"===n?"".concat(f).concat(1===f?"er":""):"onlyMonth"===n?"".concat(d[p]):a(u,c)&&!i?g:"onlyDate"===n?m:"onlyTime"===n?g:"".concat(m," \xe0 ").concat(g)},p=e=>{let t=Math.floor(e/3600),n=Math.floor((e-3600*t)/60),r=e-3600*t-60*n,i="".concat(n<10?"0".concat(n):n,":").concat(r<10?"0".concat(r):r);return t>0?"".concat(t,":").concat(i):i}
25,m=(e,t,n)=>{let r=s.ZP.Radio(e),i=(0,o.Z)(new Date,r.timeZone);return n&&t.getTime()!==n.getTime()?a(i,t)&&a(t,n)?"Aujourd'hui de ".concat(f(e,t,"onlyTime")," \xe0 ").concat(f(e,n,"onlyTime")):a(i,t)?"D'aujourd'hui ".concat(f(e,t,"onlyTime")," au ").concat(f(e,n,"dateAndTime")):a(i,n)?"Du ".concat(f(e,t,"dateAndTime")," \xe0 aujourd'hui ").concat(f(e,n,"onlyTime")):a(t,n)?"Le ".concat(f(e,t,"onlyDate")," de ").concat(f(e,t,"onlyTime")," \xe0 ").concat(f(e,n,"onlyTime")):"Du ".concat(f(e,t,"dateAndTime")," au ").concat(f(e,n,"dateAndTime")):a(i,t)?"D\xe9bute aujourd'hui \xe0 ".concat(f(e,t,"onlyTime")):"D\xe9bute le ".concat(f(e,t,"dateAndTime"))},g=["Dim.","Lun.","Mar.","Mer.","Jeu.","Ven.","Sam."],v=e=>{let t=parseInt(e,10)-1;return c()(d[t])||""},y=(e,t,n)=>g[new Date(e,parseInt(t,10)-1,parseInt(n,10)).getDay()],b=e=>{let t=new Date,n=t.getFullYear(),r=t.getMonth()+1,i=[],a=12;if(e===n)a=r;else if(e>n)return[];for(let t=1;t<=a;t++){let n=A(e,t);if(n.length>0){let e=t.toString().padStart(2,"0");i.push({month:e,days:n})}}return i},A=(e,t)=>{let n=new Date;n.setHours(0,0,0,0);let r=new Date(e,t,0).getDate(),i=[];for(let a=1;a<=r&&!(new Date(e,t-1,a)>=n);a++){let e=a.toString().padStart(2,"0");i.push({day:e})}return i};async function E(e){try{return(await s.ZP.page.getArchiveYears(e)).years.slice(0,5).map(e=>({id:"archives-".concat(e),label:"".concat(e),linkHref:"/archives?year=".concat(e),subItems:[],icon:void 0}))}catch(e){return l.Z.error("Erreur lors de la r\xe9cup\xe9ration des ann\xe9es d'archives",e),[]}}},9671:function(e,t,n){"use strict";n.d(t,{S:function(){return c}});var r=n(3325),i=n(7294),a=n(8646);let o={dev:{rossel:["sw4vYCSpCS"],group81:["1I6DWFZVju"],joinAvailable:["1I6DWFZVju"]},preprod:{rossel:["sw4vYCSpCS","ukNIsfIUwI","uZa7BKOGVD","IzeAotEa5i","1X8CZny6ji","Vliqt9vB5H","JOUQPIUWfG"],group81:["1I6DWFZVju","rGMvpGL6xM","zonU3n4cTN","g2IIINhVON","WaKVhZb7Fm","4zBp8fj7Rq","rbV3eQESnw","K5cSwIzAaq"],joinAvailable:["1I6DWFZVju","rGMvpGL6xM","zonU3n4cTN","g2IIINhVON","WaKVhZb7Fm","4zBp8fj7Rq","rbV3eQESnw","K5cSwIzAaq"]},prod:{rossel:["sw4vYCSpCS","ukNIsfIUwI","uZa7BKOGVD","IzeAotEa5i","1X8CZny6ji","Vliqt9vB5H","JOUQPIUWfG"],group81:["1I6DWFZVju","rGMvpGL6xM","zonU3n4cTN","g2IIINhVON","WaKVhZb7Fm","4zBp8fj7Rq","rbV3eQESnw","K5cSwIzAaq"],joinAvailable:["1I6DWFZVju","rGMvpGL6xM","zonU3n4cTN","g2IIINhVON","WaKVhZb7Fm","4zBp8fj7Rq","rbV3eQESnw","K5cSwIzAaq"]}},s={rossel:!1,joinAvailable:!1,group81:!1},l={...s,rossel:!0},u={...s,group81:!0},c=e=>{let t=(0,i.useContext)(a.lv),n=null!=e?e:t,o=r.ZP.Radio(n),l=null==o?void 0:o.id;return l?f(l,n):s},d=e=>e.includes("dev.bocir.fr")?"dev":e.includes("preprod.bocir.fr")?"preprod":"prod",h=new Map,f=(e,t)=>{let n=h.get(e);if(!n){let r=d(t),i=o[r].rossel,a=o[r].group81,c=o[r].joinAvailable;n=i.includes(e)?l:a.includes(e)?u:s,c.includes(e)&&(n={...n,joinAvailable:!0}),h.set(e,n)}return n}},798:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(6644);let i=(0,r.MT)({name:"",isOpen:!1}),a=(0,r.yM)("setIsOpen");i.on(a,(e,t)=>{let{name:n,isOpen:r}=t;return{...e,name:n,isOpen:r}});let o={store:i,actions:{setIsOpen:e=>{let{name:t,isOpen:n}=e;return a({name:t,isOpen:n})}}}},1761:function(e,t,n){"use strict";n.d(t,{i:function(){return i}});var r=n(7294);function i(){let e=r.useLayoutEffect,[t,n]=r.useState([0,0]);return e(()=>{function e(){n([window.innerWidth,window.innerHeight])}return window.addEventListener("resize",e),e(),()=>window.removeEventListener("resize",e)},[]),t}},8646:function(e,t,n){"use strict";n.d(t,{XF:function(){return a},lv:function(){return s},v:function(){return o}});var r=n(7294),i=n(4155);let a=e=>{let t=i.env.RADIO_HOST||("string"==typeof e?e:null==e?void 0:e.headers.host);return t||(t=window.location.host),t.split(":")[0]},o=()=>window.location.host.split(":")[0],s=r.createContext("")},2489:function(e,t,n){"use strict";let r=n.g.localStorage;t.Z={setItem:(e,t)=>{null==r||r.setItem(e,t)},getItem:e=>null==r?void 0:r.getItem(e)}},5336:function(e,t,n){"use strict";let r,i,a;n.d(t,{UP:function(){return v},cD:function(){return g}});var o=n(5893),s=n(3325),l=n(7294),u=n(8280),c=n(1802),d=n(6130),h=n(9989),f=n(7539),p=n(5820);let m=(0,h.m)("locationUtils"),g=()=>({latitude:i,longitude:a}),v=async e=>{let t=await fetch("/api/Geolocation").then(e=>e.json()),n=" Latitute : "+t.body.latitude+" Longitude "+t.body.longitude+" \
25n  Ville  : "+t.body.city;await s.ZP.page.sendGeolocationLink(e,n,r||"not found ")},y=(e,t,n)=>{let r=[];n.split(", ").forEach(e=>{let t=e.split(" ");r.push([parseFloat(t[0]),parseFloat(t[1])])});let i=!1;for(let n=0,a=r.length-1;n<r.length;a=n++){let o=r[n][0],s=r[n][1],l=r[a][0],u=r[a][1];s>t!=u>t&&e<(l-o)*(t-s)/(u-s)+o&&(i=!i)}return i},b=e=>{u.Nw.setZone(e.id),(0,d.qy)({id_zone:e.id,nom_zone:e.label,moment:"Arriv\xe9e"})},A=async(e,t,n)=>{let i=await E(e,t,n);i&&(r=i);let a=await s.ZP.zones.getZoneById(e,i);return b(a),a.id},E=async(e,t,n)=>{var r;let o=await s.ZP.Zones(e),l=null===(r=await s.ZP.stream.defaultZoneStream(e))||void 0===r?void 0:r.id;if(t&&(!n||(l?n===l:n===o[0].id))){let{latitude:e,longitude:t}=(await fetch("/api/Geolocation").then(e=>e.json())).body;if(i=e,a=t,e&&t){let n;for(let r of o)if(r.stream.geofootprint&&y(e,t,r.stream.geofootprint))return l=n=r.id,r.id;if(m.info("No zone found for user location"),n)return n}else m.error("Geolocation data is missing latitude or longitude")}else n&&(l=n);return l};t.ZP=e=>{let{host:t}=e,n=(0,c.oR)(u.h).zone;return(0,l.useEffect)(()=>{(0,p.h)().hasConsent("geolocation").then(e=>{A(t,e,(0,f.D)("zone")?n.zoneId:void 0)})},[]),(0,o.jsx)(o.Fragment,{})}},9989:function(e,t,n){"use strict";n.d(t,{m:function(){return a}});var r=n(4155);let i={};{let e=()=>{},t=(e,t)=>"error"===t?function(n){for(var r=arguments.length,i=Array(r>1?r-1:0),a=1;a<r;a++)i[a-1]=arguments[a];return console.error("[".concat(e,"] [").concat(t,"]: ").concat(n||""),...i)}:function(n){for(var r=arguments.length,i=Array(r>1?r-1:0),a=1;a<r;a++)i[a-1]=arguments[a];return console.error("[".concat(e,"] [").concat(t,"]: ").concat(n||""),...i)};i=n=>{let i=r.env["LOGGER_"+n];return i||(i=r.env.LOGGER_default)||(i="info"),{debug:"debug"===i?t(n,"debug"):e,info:"debug"===i||"info"===i?t(n,"info"):e,error:t(n,"error")}}}let a=i,o=a("default");t.Z=o},8462:function(e,t,n){"use strict";n.d(t,{H4:function(){return b},YR:function(){return u},nv:function(){return l},tB:function(){return y}});var r,i,a=n(5980);let o=null!==(i=null===(r=n(3325).ZP.Radio(""))||void 0===r?void 0:r.id)&&void 0!==i?i:"unknown",s={square:["1by1","original"],landscape:["4by3","1by1","original"],portrait:["4by7","1by1","original"],large:["16by9","4by3","1by1","original"],original:["original","16by9","4by3","1by1"]},l=(e,t)=>{if(e.length){for(let n of s[t]){let t=e.find(e=>e.format===n);if(t)return t}return e[0]}},u=e=>{switch(e){case"square":return"1-1";case"landscape":return"4-3";case"portrait":return"4-7";case"large":return"16-9";default:return}},c="desktop"==(a.Z.SSR?"desktop":[/Android/i,/iPhone/i,/iPad/i,/iPod/i].some(e=>navigator.userAgent.match(e))?"mobile":"desktop")?"1100":"576",d="/t:app(web)/t:r(".concat(o,")"),h=["bocir-dev-bucket","bocir-medias-dev"],f=["bocir-uat-bucket","bocir-medias-preprod"],p=["bocir-prod-bucket","bocir-medias-prod"],m=["ausha.co","saooti.com","podcastics.com","ovh.net"],g=()=>{let e="production";{let t=window.location.hostname;t.includes("dev")?e="dev":(t.includes("preprod")||t.includes("uat"))&&(e="preprod")}return"dev"===e||"development"===e?"https://medias.dev.bocir.fr":"preprod"===e?"https://medias.preprod.bocir.fr":"https://medias.lesindesradios.fr"},v=(e,t)=>e?p.find(t=>e.includes(t))?"https://medias.lesindesradios.fr":f.find(t=>e.includes(t))?"https://medias.preprod.bocir.fr":h.find(t=>e.includes(t))?"https://medias.dev.bocir.fr":!t&&m.some(t=>e.includes(t))?g():void 0:void 0,y=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"webp",r=arguments.length>3?arguments[3]:void 0,i=arguments.length>4?arguments[4]:void 0,a=arguments.length>5?arguments[5]:void 0,o=arguments.length>6?arguments[6]:void 0,s=arguments.length>7?arguments[7]:void 0,l=arguments.length>8?arguments[8]:void 0;if(!e||e.endsWith(".ico")||e.endsWith(".gif")||e.indexOf("(")>-1||e.indexOf(")")>-1)return e;let u=v(e);if(!u)return e;let h=m.some(t=>e.includes(t)),[f,p]=a?a.split("-").map(e=>parseInt(e)):[],g="small"===t?"300":l?"400":"medium"===t?"500":"intermediate"===t?"700":"big"===t?c:"2000",y="background-section"===t?"2500":s&&"big"===t?"1600":f&&p?Math.round(parseInt(g)*(p/f))+"":"2000",b=i?"":t?"/fit-in/".concat(g,"x").concat(y):"",A=(null==r?void 0:r.background)?"/filters:background_color(".concat(r.background,")"):"",E="".concat(d).concat(b).concat(A).
25concat("/filters:format(".concat(n,")")).concat(o&&o>1?"/filters:quality(".concat(o,")"):"");if(h){let t=encodeURIComponent(e);return"".concat(u,"/proxy").concat(E,"/").concat(t)}return"".concat(u).concat(E,"/").concat(e.replace(/^https:\/\/([^\/]+)\//,""))},b=e=>{if(!e)return e;let t=v(e,!0);return t?"".concat(t).concat(d,"/").concat(e.replace(/^https:\/\/([^\/]+)\//,"")):e}},3206:function(e,t,n){"use strict";n.d(t,{R4:function(){return E},h8:function(){return x}});var r=n(5893),i=n(3325),a=n(7860),o=n(9989),s=n(2918),l=n.n(s),u=n(9008),c=n.n(u),d=n(5633),h=n(5980),f=n(7294),p=n(6130),m=e=>{let{page:t,slug:n}=e;return(0,f.useEffect)(()=>{(0,p.M)(t)},[n]),(0,r.jsx)(r.Fragment,{})},g=n(8646);let v=(0,o.m)("proxy"),y=(e,t,n,r,i)=>e.replace(/%%titre%%/g,n||r||"").replace(/%%site%%/g,t).replace(/%%chapo%%/g,i||""),b=(e,t,n,r,a)=>{let o=i.ZP.Radio(e);return{description:(null==t?void 0:t.description)&&y(t.description,o.name,n,r,a),keywords:null==t?void 0:t.keywords,title:(null==t?void 0:t.title)&&y(t.title,o.name,n,r,a)}},A=e=>{var t,n,i;let{page:a,metas:o}=e;if("CONTENT"!==a.pageContent.model.type)return(0,r.jsx)(r.Fragment,{});let s=a.canonical,l=a.pageContent.blocsData&&JSON.parse(a.pageContent.blocsData),u=(null==l?void 0:null===(t=l.chapo)||void 0===t?void 0:t.content)||o.description,c=o.title||(null==l?void 0:null===(n=l.titre)||void 0===n?void 0:n.content),d=null==l?void 0:null===(i=l.videoPrincipale)||void 0===i?void 0:i.url;return(0,r.jsxs)(r.Fragment,{children:[c&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("meta",{property:"twitter:title",content:c}),(0,r.jsx)("meta",{property:"og:title",content:c})]}),d&&(0,r.jsx)(r.Fragment,{children:(0,r.jsx)("meta",{property:"og:video",content:d})}),s&&(0,r.jsx)("meta",{property:"og:url",content:s}),u&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("meta",{property:"og:description",content:u}),(0,r.jsx)("meta",{property:"twitter:description",content:u})]}),(0,r.jsx)("meta",{property:"twitter:card",content:"summary"}),(0,r.jsx)("meta",{property:"og:type",content:"article"})]})},E=e=>{var t,n,i,a,o;if(e.error)return(0,r.jsx)(l(),{statusCode:e.errorCode});let s=null===(t=e.page)||void 0===t?void 0:t.seo,u=null===(i=e.page)||void 0===i?void 0:null===(n=i.category)||void 0===n?void 0:n.titre,h=null===(a=e.page)||void 0===a?void 0:a.canonical,p=(0,f.useContext)(g.lv),v=s?b(p,s,e.title,u,e.chapo):void 0;return e.pageContext?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(c(),{children:[(null==v?void 0:v.description)&&(0,r.jsx)("meta",{name:"description",content:v.description}),(null==v?void 0:v.keywords)&&(0,r.jsx)("meta",{name:"keywords",content:v.keywords}),(null==v?void 0:v.title)&&(0,r.jsx)("title",{children:v.title}),h&&(0,r.jsx)("link",{href:h,rel:"canonical"}),v&&(0,r.jsx)(A,{page:e.page,metas:v})]}),(0,r.jsx)(d.Z,{...e}),(null===(o=e.pageContext)||void 0===o?void 0:o.slug)&&(0,r.jsx)(m,{page:e.page,slug:e.pageContext.slug})]}):(0,r.jsx)(r.Fragment,{})},w=async(e,t,n,r)=>{if(!e){if(!(e=await i.ZP.page.getPageFor((0,g.XF)(n),"notFound")))return{error:!0,errorCode:404};r&&(r.statusCode=404)}let o=h.Z.SSR?null==n?void 0:n.headers.cookie:document.cookie,s=o&&o.search("zone="),l=s||0===s?null==o?void 0:o.substr(s+5,10):void 0,u=(0,g.XF)(n);try{var c,d,f,p,m;let{blocsData:n,model:r,title:i,chapo:o}=(0,a.$F)(e);t={...t,slug:null!==(p=t.slug)&&void 0!==p?p:e.slug,categoryId:null!==(m=e.categoryId)&&void 0!==m?m:null,pageCategories:e.categoryId?[e.categoryId]:(null==n?void 0:null===(c=n.category)||void 0===c?void 0:c.categoryIds)||null,host:u,zoneId:"HOME"===e.pageContent.model.type||e.pageContent.model.attributes.locationZone?l:null,withoutHeaderFooter:e.withoutHeaderFooter,doNotIndexGoogle:"HOME"!==e.pageContent.model.type&&e.doNotIndexGoogle,tags:(null===(d=e.pageData)||void 0===d?void 0:d.tags)||null,locationZonesIds:(null===(f=e.pageData)||void 0===f?void 0:f.locationZoneIds)||null,modelType:e.pageContent.model.type,modelContentType:e.pageContent.model.contentType};let s=await (0,a.y_)(u,r,n,t);return{page:e,title:i,host:u,fetchedContent:s,pageContext:t,chapo:o}}catch(e){return v.error("Unable to extract page ".concat(t.slug,": ").concat(e.message),e),{error:!0,errorCode:500}}},x=async(e,t,n,r,a)=>{let o=(0,g.XF)(n),s=await i.ZP.page.getPageFor(o,e,a);if(!s){if("notFound"!==e&&(s=await i.ZP.page.getPageFor(o,"notFound")),!s)throw Error("");r&&(r.statusCode=404)}return w(s,t,n,r)}},7860:function(e,t,n){"use strict";n.d(t,{$F:function(){return l},Fz:function(){return d},gK:function(){return s},y_:function(){return c}});var r=n(3325),i=n(6577),a=n(5980),o=n(2489);let s=e=>{var t;return(null==e?void 0:e.pageContent.model.type)==="CATEGORY"&&(null==e?void 0:null===(t=e.category)||void 0===t?void 0:t.t
25itre)||(null==e?void 0:e.name)},l=e=>{var t,n;if(!e||!e.pageContent||!e.pageContent.model.pagebuilder)return{error:!0};let r=e.pageContent.blocsData?JSON.parse(e.pageContent.blocsData):{};return{error:!1,blocsData:r,model:JSON.parse(e.pageContent.model.pagebuilder),modelType:e.pageContent.model.type,title:(null==r?void 0:null===(t=r.titre)||void 0===t?void 0:t.content)||null,chapo:(null==r?void 0:null===(n=r.chapo)||void 0===n?void 0:n.content)||null,pageData:e.pageData||null,previewUrl:e.previewUrl||null}},u=(e,t,n)=>{if(!e||!t)return[];let r=[];return e.sections.forEach(e=>{e.blocsByColumn.forEach(e=>{e.forEach(e=>{let a=(0,i.x)(e.name);if("corps"===e.name&&t[e.id]&&u(t[e.id].model,t[e.id].blocsData,n).forEach(e=>r.push(e)),a.getContentQuery){let i=a.getContentQuery(e.id,{...e.data,...t[e.id],...n});i&&r.push(i)}})})}),r},c=async(e,t,n,i)=>{if(!t||!n)return Promise.reject("Error while fetching content: no model or no blocsData provided");let a=u(t,n,i);return a.length>0?await r.ZP.page.getPageData(e,a,null==i?void 0:i.zoneId):Promise.resolve({})},d=async(e,t)=>{if(!a.Z.SSR)try{let n=JSON.parse(o.Z.getItem("pagesVisited"))||[];(null==n?void 0:n.includes(t))||(await r.ZP.page.viewPage(e,t),n.push(t),n.length>100&&n.shift(),o.Z.setItem("pagesVisited",JSON.stringify(n)))}catch(e){}return Promise.resolve()}},365:function(e,t){"use strict";let n;let r={},i={},a=(e,t)=>{let n=r[e];(null==n?void 0:n.length)?r[e].push(t):r[e]=[t]},o=(e,t)=>{let n=r[e];(null==n?void 0:n.length)&&(r[e]=n.filter(e=>e!==t))},s=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(""===e){n&&(n.close(),n=void 0);return}let a=new EventSource("/ws/metas?id=".concat(e));a.onmessage=e=>{if(e.data){let t=JSON.parse(e.data),n={...t,imageUrl:(null==t?void 0:t.coverUrl)||(null==t?void 0:t.coverId)&&"https://www.lesindesradios.fr/servicesimb/images?version=6&iid=".concat(t.coverId,"&width=200")};r[n.mdsId].forEach(e=>e(n)),i[n.mdsId]=n}},a.onerror=()=>{a.close(),a===n&&(n=void 0,setTimeout(()=>s(e,t+1),1e3*Math.pow(2,Math.min(4,t))*(1+.1*Math.random())))},n&&(n.close(),n=void 0),n=a},l="",u=()=>{let e=Object.keys(r).filter(e=>r[e].length).join(",");n&&e===l||(l=e,setTimeout(()=>{e===l&&s(e)},500))};t.Z={subscribe:(e,t)=>{a(e,t);let n=i[e];return n&&t(n),u(),()=>{o(e,t),u()}}}},482:function(e,t,n){"use strict";let r,i,a,o,s,l,u,c,d,h;n.d(t,{ZP:function(){return so},h:function(){return oF}});var f,p,m,g,v,y,b,A,E,w,x,T,S,_,C,k,I,L,P,O,R,D,N,M,j,F,B,U,V,z,q,Q,H,G,K=n(3325),$=n(706),W=n(6644),Z=n(1766),Y=n(9989),X=n(8462);let J=(0,Y.m)("HowlerAudio"),ee=[],et=!1,en=!1,er=()=>{i&&(clearInterval(i),i=void 0),r&&r.off()},ei=()=>{let e=r;e&&(en||e.off(),["play","pause","end","stop","volume","mute","playerror"].forEach(t=>{e.on(t,()=>{let n;if("volume"===t)n={type:"volume",volume:e.volume()};else if("mute"===t)n={type:"muted",muted:e.mute()};else if("stop"===t||"play"===t||"pause"===t||"end"===t){if(n={type:"status",status:t},i&&(clearInterval(i),i=void 0,"end"===t)){let t=e.duration();t!==1/0&&ee.forEach(e=>e({type:"progress",position:Math.round(t),duration:Math.round(t)})),en?(n={type:"status",status:"play"},ee.forEach(e=>e({type:"status",status:"play"}))):so.actions.backToLive()}et||"play"!==t||(i=setInterval(()=>{let t=e.duration();t!==1/0&&ee.forEach(n=>n({type:"progress",position:e.seek(),duration:t}))},500))}else"playerror"===t&&(J.error("Unable to play audio, stopping player"),null==r||r.stop());n&&ee.forEach(e=>e(n))})}))},ea=(e,t)=>{var n;so.actions.setPersistVolume(e),so.actions.setPersistMute(t),null===(n=localStorage)||void 0===n||n.setItem("player",JSON.stringify({volume:e,mute:t}))},eo=Number.isFinite||function(e){return"number"==typeof e&&isFinite(e)},es=Number.isSafeInteger||function(e){return"number"==typeof e&&Math.abs(e)<=el},el=Number.MAX_SAFE_INTEGER||9007199254740991,eu=((b={}).NETWORK_ERROR="networkError",b.MEDIA_ERROR="mediaError",b.KEY_SYSTEM_ERROR="keySystemError",b.MUX_ERROR="muxError",b.OTHER_ERROR="otherError",b),ec=((A={}).KEY_SYSTEM_NO_KEYS="keySystemNoKeys",A.KEY_SYSTEM_NO_ACCESS="keySystemNoAccess",A.KEY_SYSTEM_NO_SESSION="keySystemNoSession",A.KEY_SYSTEM_NO_CONFIGURED_LICENSE="keySystemNoConfiguredLicense",A.KEY_SYSTEM_LICENSE_REQUEST_FAILED="keySystemLicenseRequestFailed",A.KEY_SYSTEM_SERVER_CERTIFICATE_REQUEST_FAILED="keySystemServerCertificateRequestFailed",A.KEY_SYSTEM_SERVER_CERTIFICATE_UPDATE_FAILED="keySystemServerCertificateUpdateFailed",A.KEY_SYSTEM_SESSION_UPDATE_FAILED="keySystemSessionUpdateFailed",A.KEY_SYSTEM_STATUS_OUTPUT_RESTRICTED="keySystemStatusOutputRestricted",A.KEY_SYSTEM_STATUS_INTERNAL_ERROR="keySystemStatusInternalError",A.KEY_SYSTEM_DESTROY_MEDIA_KEYS_ERROR="keySystemDestroyMediaKeysError",A.KEY_SYSTEM_DESTROY_CLOSE_SESSION_ERROR="keySystemDestroyCloseSessionError",A.KEY_SYSTEM_DESTROY_REMOVE_SESSION_ERROR="keySystemDestroyRemoveSessionError",A.MANIFEST_LOAD_ERROR="manifestLoadError",A.MANIFEST_LOAD_TIMEOUT="manifestLoadTimeOut",A.MANIFEST_PARSING_ERROR="manifestParsingError",A.MANIFEST_INCOMPATIBLE_CODECS_ERROR="manifestIncompatibleCodecsError",A.LEVEL_EMPTY_ERROR="levelEmptyError",A.LEVEL_LOAD_ERROR="levelLoadError",A.LEVEL_LOAD_TIMEOUT="levelLoadTimeOut",A.LEVEL_PARSING_ERROR="levelParsingError",A.LEVEL_SWITCH_ERROR="levelSwitchError",A.AUDIO_TRACK_LOAD_ERROR="audioTrackLoadError",A.AUDIO_TRACK_LOAD_TIMEOUT="audioTrackLoadTimeOut",A.SUBTITLE_LOAD_ERROR="subtitleTrackLoadError",A.SUBTITLE_TRACK_LOAD_TIMEOUT="subtitleTrackLoadTimeOut",A.FRAG_LOAD_ERROR="fragLoadError",A.FRAG_LOAD_TIMEOUT="fragLoadTimeOut",A.FRAG_DECRYPT_ERROR="fragDecryptError",A.FRAG_PARSING_ERROR="fragParsingError",A.FRAG_GAP="fragGap",A.REMUX_ALLOC_ER
25ROR="remuxAllocError",A.KEY_LOAD_ERROR="keyLoadError",A.KEY_LOAD_TIMEOUT="keyLoadTimeOut",A.BUFFER_ADD_CODEC_ERROR="bufferAddCodecError",A.BUFFER_INCOMPATIBLE_CODECS_ERROR="bufferIncompatibleCodecsError",A.BUFFER_APPEND_ERROR="bufferAppendError",A.BUFFER_APPENDING_ERROR="bufferAppendingError",A.BUFFER_STALLED_ERROR="bufferStalledError",A.BUFFER_FULL_ERROR="bufferFullError",A.BUFFER_SEEK_OVER_HOLE="bufferSeekOverHole",A.BUFFER_NUDGE_ON_STALL="bufferNudgeOnStall",A.ASSET_LIST_LOAD_ERROR="assetListLoadError",A.ASSET_LIST_LOAD_TIMEOUT="assetListLoadTimeout",A.ASSET_LIST_PARSING_ERROR="assetListParsingError",A.INTERSTITIAL_ASSET_ITEM_ERROR="interstitialAssetItemError",A.INTERNAL_EXCEPTION="internalException",A.INTERNAL_ABORTED="aborted",A.ATTACH_MEDIA_ERROR="attachMediaError",A.UNKNOWN="unknown",A),ed=((E={}).MEDIA_ATTACHING="hlsMediaAttaching",E.MEDIA_ATTACHED="hlsMediaAttached",E.MEDIA_DETACHING="hlsMediaDetaching",E.MEDIA_DETACHED="hlsMediaDetached",E.MEDIA_ENDED="hlsMediaEnded",E.STALL_RESOLVED="hlsStallResolved",E.BUFFER_RESET="hlsBufferReset",E.BUFFER_CODECS="hlsBufferCodecs",E.BUFFER_CREATED="hlsBufferCreated",E.BUFFER_APPENDING="hlsBufferAppending",E.BUFFER_APPENDED="hlsBufferAppended",E.BUFFER_EOS="hlsBufferEos",E.BUFFERED_TO_END="hlsBufferedToEnd",E.BUFFER_FLUSHING="hlsBufferFlushing",E.BUFFER_FLUSHED="hlsBufferFlushed",E.MANIFEST_LOADING="hlsManifestLoading",E.MANIFEST_LOADED="hlsManifestLoaded",E.MANIFEST_PARSED="hlsManifestParsed",E.LEVEL_SWITCHING="hlsLevelSwitching",E.LEVEL_SWITCHED="hlsLevelSwitched",E.LEVEL_LOADING="hlsLevelLoading",E.LEVEL_LOADED="hlsLevelLoaded",E.LEVEL_UPDATED="hlsLevelUpdated",E.LEVEL_PTS_UPDATED="hlsLevelPtsUpdated",E.LEVELS_UPDATED="hlsLevelsUpdated",E.AUDIO_TRACKS_UPDATED="hlsAudioTracksUpdated",E.AUDIO_TRACK_SWITCHING="hlsAudioTrackSwitching",E.AUDIO_TRACK_SWITCHED="hlsAudioTrackSwitched",E.AUDIO_TRACK_LOADING="hlsAudioTrackLoading",E.AUDIO_TRACK_LOADED="hlsAudioTrackLoaded",E.AUDIO_TRACK_UPDATED="hlsAudioTrackUpdated",E.SUBTITLE_TRACKS_UPDATED="hlsSubtitleTracksUpdated",E.SUBTITLE_TRACKS_CLEARED="hlsSubtitleTracksCleared",E.SUBTITLE_TRACK_SWITCH="hlsSubtitleTrackSwitch",E.SUBTITLE_TRACK_LOADING="hlsSubtitleTrackLoading",E.SUBTITLE_TRACK_LOADED="hlsSubtitleTrackLoaded",E.SUBTITLE_TRACK_UPDATED="hlsSubtitleTrackUpdated",E.SUBTITLE_FRAG_PROCESSED="hlsSubtitleFragProcessed",E.CUES_PARSED="hlsCuesParsed",E.NON_NATIVE_TEXT_TRACKS_FOUND="hlsNonNativeTextTracksFound",E.INIT_PTS_FOUND="hlsInitPtsFound",E.FRAG_LOADING="hlsFragLoading",E.FRAG_LOAD_EMERGENCY_ABORTED="hlsFragLoadEmergencyAborted",E.FRAG_LOADED="hlsFragLoaded",E.FRAG_DECRYPTED="hlsFragDecrypted",E.FRAG_PARSING_INIT_SEGMENT="hlsFragParsingInitSegment",E.FRAG_PARSING_USERDATA="hlsFragParsingUserdata",E.FRAG_PARSING_METADATA="hlsFragParsingMetadata",E.FRAG_PARSED="hlsFragParsed",E.FRAG_BUFFERED="hlsFragBuffered",E.FRAG_CHANGED="hlsFragChanged",E.FPS_DROP="hlsFpsDrop",E.FPS_DROP_LEVEL_CAPPING="hlsFpsDropLevelCapping",E.MAX_AUTO_LEVEL_UPDATED="hlsMaxAutoLevelUpdated",E.ERROR="hlsError",E.DESTROYING="hlsDestroying",E.KEY_LOADING="hlsKeyLoading",E.KEY_LOADED="hlsKeyLoaded",E.LIVE_BACK_BUFFER_REACHED="hlsLiveBackBufferReached",E.BACK_BUFFER_REACHED="hlsBackBufferReached",E.STEERING_MANIFEST_LOADED="hlsSteeringManifestLoaded",E.ASSET_LIST_LOADING="hlsAssetListLoading",E.ASSET_LIST_LOADED="hlsAssetListLoaded",E.INTERSTITIALS_UPDATED="hlsInterstitialsUpdated",E.INTERSTITIALS_BUFFERED_TO_BOUNDARY="hlsInterstitialsBufferedToBoundary",E.INTERSTITIAL_ASSET_PLAYER_CREATED="hlsInterstitialAssetPlayerCreated",E.INTERSTITIAL_STARTED="hlsInterstitialStarted",E.INTERSTITIAL_ASSET_STARTED="hlsInterstitialAssetStarted",E.INTERSTITIAL_ASSET_ENDED="hlsInterstitialAssetEnded",E.INTERSTITIAL_ASSET_ERROR="hlsInterstitialAssetError",E.INTERSTITIAL_ENDED="hlsInterstitialEnded",E.INTERSTITIALS_PRIMARY_RESUMED="hlsInterstitialsPrimaryResumed",E.PLAYOUT_LIMIT_REACHED="hlsPlayoutLimitReached",E.EVENT_CUE_ENTER="hlsEventCueEnter",E);var eh={MANIFEST:"manifest",LEVEL:"level",AUDIO_TRACK:"audioTrack",SUBTITLE_TRACK:"subtitleTrack"},ef={MAIN:"main",AUDIO:"audio",SUBTITLE:"subtitle"};class ep{constructor(e,t=0,n=0){this.halfLife=void 0,this.alpha_=void 0,this.estimate_=void 0,this.totalWeight_=void 0,this.halfLife=e,this.alpha_=e?Math.exp(Math.log(.5)/e):0,this.estimate_=t,this.totalWeight_=n}sample(e,t){let n=Math.pow(this.alpha_,e);this.estimate_=t*(1-n)+n*this.estimate_,this.totalWeight_+=e}
25getTotalWeight(){return this.totalWeight_}getEstimate(){if(this.alpha_){let e=1-Math.pow(this.alpha_,this.totalWeight_);if(e)return this.estimate_/e}return this.estimate_}}class em{constructor(e,t,n,r=100){this.defaultEstimate_=void 0,this.minWeight_=void 0,this.minDelayMs_=void 0,this.slow_=void 0,this.fast_=void 0,this.defaultTTFB_=void 0,this.ttfb_=void 0,this.defaultEstimate_=n,this.minWeight_=.001,this.minDelayMs_=50,this.slow_=new ep(e),this.fast_=new ep(t),this.defaultTTFB_=r,this.ttfb_=new ep(e)}update(e,t){let{slow_:n,fast_:r,ttfb_:i}=this;n.halfLife!==e&&(this.slow_=new ep(e,n.getEstimate(),n.getTotalWeight())),r.halfLife!==t&&(this.fast_=new ep(t,r.getEstimate(),r.getTotalWeight())),i.halfLife!==e&&(this.ttfb_=new ep(e,i.getEstimate(),i.getTotalWeight()))}sample(e,t){let n=(e=Math.max(e,this.minDelayMs_))/1e3,r=8*t/n;this.fast_.sample(n,r),this.slow_.sample(n,r)}sampleTTFB(e){this.ttfb_.sample(Math.sqrt(2)*Math.exp(-Math.pow(e/1e3,2)/2),Math.max(e,5))}canEstimate(){return this.fast_.getTotalWeight()>=this.minWeight_}getEstimate(){return this.canEstimate()?Math.min(this.fast_.getEstimate(),this.slow_.getEstimate()):this.defaultEstimate_}getEstimateTTFB(){return this.ttfb_.getTotalWeight()>=this.minWeight_?this.ttfb_.getEstimate():this.defaultTTFB_}get defaultEstimate(){return this.defaultEstimate_}destroy(){}}function eg(){return(eg=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(null,arguments)}function ev(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function ey(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ev(Object(n),!0).forEach(function(t){var r,i;r=t,i=n[t],(r=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=typeof r)return r;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(r))in e?Object.defineProperty(e,r,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[r]=i}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ev(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}class eb{constructor(e,t){this.trace=void 0,this.debug=void 0,this.log=void 0,this.warn=void 0,this.info=void 0,this.error=void 0;let n=`[${e}]:`;this.trace=eA,this.debug=t.debug.bind(null,n),this.log=t.log.bind(null,n),this.warn=t.warn.bind(null,n),this.info=t.info.bind(null,n),this.error=t.error.bind(null,n)}}let eA=function(){},eE={trace:eA,debug:eA,log:eA,warn:eA,info:eA,error:eA};function ew(){return eg({},eE)}function ex(e,t,n){return t[e]?t[e].bind(t):function(e,t){let n=self.console[e];return n?n.bind(self.console,`${t?"["+t+"] ":""}[${e}] >`):eA}(e,n)}let eT=ew();function eS(e=!0){if("undefined"!=typeof self)return(e||!self.MediaSource)&&self.ManagedMediaSource||self.MediaSource||self.WebKitMediaSource}function e_(e,t){let n=Object.keys(e),r=Object.keys(t),i=n.length,a=r.length;return!i||!a||i===a&&!n.some(e=>-1===r.indexOf(e))}function eC(e,t=!1){let n,r;if("undefined"!=typeof TextDecoder){let n=new TextDecoder("utf-8").decode(e);if(t){let e=n.indexOf("\x00");return -1!==e?n.substring(0,e):n}return n.replace(/\0/g,"")}let i=e.length,a="",o=0;for(;o<i&&(0!==(n=e[o++])||!t);)if(0!==n&&3!==n)switch(n>>4){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:a+=String.fromCharCode(n);break;case 12:case 13:a+=String.fromCharCode((31&n)<<6|63&e[o++]);break;case 14:a+=String.fromCharCode((15&n)<<12|(63&e[o++])<<6|(63&e[o++])<<0)}return a}let ek={hexDump:function(e){let t="";for(let n=0;n<e.length;n++){let r=e[n].toString(16);r.length<2&&(r="0"+r),t+=r}return t}};var eI={exports:{}},eL=(_||(_=1,f=/^(?=((?:[a-zA-Z0-9+\-.]+:)?))\1(?=((?:\/\/[^\/?#]*)?))\2(?=((?:(?:[^?#\/]*\/)*[^;?#\/]*)?))\3((?:;[^?#]*)?)(\?[^#]*)?(#[^]*)?$/,p=/^(?=([^\/?#]*))\1([^]*)$/,m=/(?:\/|^)\.(?=\/)/g,g=/(?
25:\/|^)\.\.\/(?!\.\.\/)[^\/]*(?=\/)/g,v={buildAbsoluteURL:function(e,t,n){if(n=n||{},e=e.trim(),!(t=t.trim())){if(!n.alwaysNormalize)return e;var r=v.parseURL(e);if(!r)throw Error("Error trying to parse base URL.");return r.path=v.normalizePath(r.path),v.buildURLFromParts(r)}var i=v.parseURL(t);if(!i)throw Error("Error trying to parse relative URL.");if(i.scheme)return n.alwaysNormalize?(i.path=v.normalizePath(i.path),v.buildURLFromParts(i)):t;var a=v.parseURL(e);if(!a)throw Error("Error trying to parse base URL.");if(!a.netLoc&&a.path&&"/"!==a.path[0]){var o=p.exec(a.path);a.netLoc=o[1],a.path=o[2]}a.netLoc&&!a.path&&(a.path="/");var s={scheme:a.scheme,netLoc:i.netLoc,path:null,params:i.params,query:i.query,fragment:i.fragment};if(!i.netLoc&&(s.netLoc=a.netLoc,"/"!==i.path[0])){if(i.path){var l=a.path,u=l.substring(0,l.lastIndexOf("/")+1)+i.path;s.path=v.normalizePath(u)}else s.path=a.path,i.params||(s.params=a.params,i.query||(s.query=a.query))}return null===s.path&&(s.path=n.alwaysNormalize?v.normalizePath(i.path):i.path),v.buildURLFromParts(s)},parseURL:function(e){var t=f.exec(e);return t?{scheme:t[1]||"",netLoc:t[2]||"",path:t[3]||"",params:t[4]||"",query:t[5]||"",fragment:t[6]||""}:null},normalizePath:function(e){for(e=e.split("").reverse().join("").replace(m,"");e.length!==(e=e.replace(g,"")).length;);return e.split("").reverse().join("")},buildURLFromParts:function(e){return e.scheme+e.netLoc+e.path+e.params+e.query+e.fragment}},eI.exports=v),eI.exports);class eP{constructor(){this.aborted=!1,this.loaded=0,this.retry=0,this.total=0,this.chunkCount=0,this.bwEstimate=0,this.loading={start:0,first:0,end:0},this.parsing={start:0,end:0},this.buffering={start:0,first:0,end:0}}}var eO={AUDIO:"audio",VIDEO:"video",AUDIOVIDEO:"audiovideo"};class eR{constructor(e){this._byteRange=null,this._url=null,this._stats=null,this._streams=null,this.base=void 0,this.relurl=void 0,"string"==typeof e&&(e={url:e}),this.base=e,function(e,t){let n=function e(t,n){let r=Object.getPrototypeOf(t);if(r)return Object.getOwnPropertyDescriptor(r,n)||e(r,n)}(e,t);n&&(n.enumerable=!0,Object.defineProperty(e,t,n))}(this,"stats")}setByteRange(e,t){let n;let r=e.split("@",2);n=1===r.length?(null==t?void 0:t.byteRangeEndOffset)||0:parseInt(r[1]),this._byteRange=[n,parseInt(r[0])+n]}get baseurl(){return this.base.url}get byteRange(){return null===this._byteRange?[]:this._byteRange}get byteRangeStartOffset(){return this.byteRange[0]}get byteRangeEndOffset(){return this.byteRange[1]}get elementaryStreams(){return null===this._streams&&(this._streams={[eO.AUDIO]:null,[eO.VIDEO]:null,[eO.AUDIOVIDEO]:null}),this._streams}set elementaryStreams(e){this._streams=e}get hasStats(){return null!==this._stats}get hasStreams(){return null!==this._streams}get stats(){return null===this._stats&&(this._stats=new eP),this._stats}set stats(e){this._stats=e}get url(){return!this._url&&this.baseurl&&this.relurl&&(this._url=eL.buildAbsoluteURL(this.baseurl,this.relurl,{alwaysNormalize:!0})),this._url||""}set url(e){this._url=e}clearElementaryStreamInfo(){let{elementaryStreams:e}=this;e[eO.AUDIO]=null,e[eO.VIDEO]=null,e[eO.AUDIOVIDEO]=null}}function eD(e){return"initSegment"!==e.sn}class eN extends eR{constructor(e,t){super(t),this._decryptdata=null,this._programDateTime=null,this._ref=null,this._bitrate=void 0,this.rawProgramDateTime=null,this.tagList=[],this.duration=0,this.sn=0,this.levelkeys=void 0,this.type=void 0,this.loader=null,this.keyLoader=null,this.level=-1,this.cc=0,this.startPTS=void 0,this.endPTS=void 0,this.startDTS=void 0,this.endDTS=void 0,this.start=0,this.playlistOffset=0,this.deltaPTS=void 0,this.maxStartPTS=void 0,this.minEndPTS=void 0,this.data=void 0,this.bitrateTest=!1,this.title=null,this.initSegment=null,this.endList=void 0,this.gap=void 0,this.urlId=0,this.type=e}get byteLength(){if(this.hasStats){let e=this.stats.total;if(e)return e}if(this.byteRange){let e=this.byteRange[0],t=this.byteRange[1];if(eo(e)&&eo(t))return t-e}return null}get bitrate(){return this.byteLength?8*this.byteLength/this.duration:this._bitrate?this._bitrate:null}set bitrate(e){this._bitrate=e}get decryptdata(){let{levelkeys:e}=this;if(!e&&!this._decryptdata)return null;if(!this._decryptdata&&this.levelkeys&&!this.levelkeys.NONE){let e=this.levelkeys.identity;if(e)this._decryptdata=e.getDecryptData(this.sn);else{let e=Object.keys(this.levelkeys);if(1===e.length)return this._decryptdata=this.levelkeys[e[0]].getDecryptData(this.sn)}}return this._decryptdata}get end(){return this.start+this.duration}get endProgramDateTime(){if(null===this.programDateTime)return null;let e=eo(this.duration)?this.duration:0;return this.programDateTime+1e3*e}get encrypted(){var e;if(null!=(e=this._decryptdata)&&e.encrypted)return!0;
25if(this.levelkeys){let e=Object.keys(this.levelkeys),t=e.length;if(t>1||1===t&&this.levelkeys[e[0]].encrypted)return!0}return!1}get programDateTime(){return null===this._programDateTime&&this.rawProgramDateTime&&(this.programDateTime=Date.parse(this.rawProgramDateTime)),this._programDateTime}set programDateTime(e){if(!eo(e)){this._programDateTime=this.rawProgramDateTime=null;return}this._programDateTime=e}get ref(){return eD(this)?(this._ref||(this._ref={base:this.base,start:this.start,duration:this.duration,sn:this.sn,programDateTime:this.programDateTime}),this._ref):null}addStart(e){this.setStart(this.start+e)}setStart(e){this.start=e,this._ref&&(this._ref.start=e)}setDuration(e){this.duration=e,this._ref&&(this._ref.duration=e)}setKeyFormat(e){if(this.levelkeys){let t=this.levelkeys[e];t&&!this._decryptdata&&(this._decryptdata=t.getDecryptData(this.sn))}}abortRequests(){var e,t;null==(e=this.loader)||e.abort(),null==(t=this.keyLoader)||t.abort()}setElementaryStreamInfo(e,t,n,r,i,a=!1){let{elementaryStreams:o}=this,s=o[e];if(!s){o[e]={startPTS:t,endPTS:n,startDTS:r,endDTS:i,partial:a};return}s.startPTS=Math.min(s.startPTS,t),s.endPTS=Math.max(s.endPTS,n),s.startDTS=Math.min(s.startDTS,r),s.endDTS=Math.max(s.endDTS,i)}}class eM extends eR{constructor(e,t,n,r,i){super(n),this.fragOffset=0,this.duration=0,this.gap=!1,this.independent=!1,this.relurl=void 0,this.fragment=void 0,this.index=void 0,this.duration=e.decimalFloatingPoint("DURATION"),this.gap=e.bool("GAP"),this.independent=e.bool("INDEPENDENT"),this.relurl=e.enumeratedString("URI"),this.fragment=t,this.index=r;let a=e.enumeratedString("BYTERANGE");a&&this.setByteRange(a,i),i&&(this.fragOffset=i.fragOffset+i.duration)}get start(){return this.fragment.start+this.fragOffset}get end(){return this.start+this.duration}get loaded(){let{elementaryStreams:e}=this;return!!(e.audio||e.video||e.audiovideo)}}let ej=[].push,eF={video:1,audio:2,id3:3,text:4};function eB(e){return String.fromCharCode.apply(null,e)}function eU(e,t){let n=e[t]<<8|e[t+1];return n<0?65536+n:n}function eV(e,t){let n=eq(e,t);return n<0?4294967296+n:n}function ez(e,t){let n=eV(e,t);return n*=4294967296,n+=eV(e,t+4)}function eq(e,t){return e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3]}function eQ(e,t,n){e[t]=n>>24,e[t+1]=n>>16&255,e[t+2]=n>>8&255,e[t+3]=255&n}function eH(e,t){let n=[];if(!t.length)return n;let r=e.byteLength;for(let i=0;i<r;){let a=eV(e,i),o=eB(e.subarray(i+4,i+8)),s=a>1?i+a:r;if(o===t[0]){if(1===t.length)n.push(e.subarray(i+8,s));else{let r=eH(e.subarray(i+8,s),t.slice(1));r.length&&ej.apply(n,r)}}i=s}return n}function eG(e){let t=[],n=eH(e,["moov","trak"]);for(let e=0;e<n.length;e++){let r=n[e],i=eH(r,["tkhd"])[0];if(i){let e=i[0],n=eV(i,0===e?12:20),a=eH(r,["mdia","mdhd"])[0];if(a){e=a[0];let i=eV(a,0===e?12:20),o=eH(r,["mdia","hdlr"])[0];if(o){let e=eB(o.subarray(8,12)),a={soun:eO.AUDIO,vide:eO.VIDEO}[e],s=function(e){let t;let n=e.subarray(8),r=n.subarray(86),i=eB(n.subarray(4,8)),a=i,o="enca"===i||"encv"===i;if(o){let e=eH(n,[i])[0].subarray("enca"===i?28:78);eH(e,["sinf"]).forEach(e=>{let t=eH(e,["schm"])[0];if(t){let n=eB(t.subarray(4,8));if("cbcs"===n||"cenc"===n){let t=eH(e,["frma"])[0];t&&(a=eB(t))}}})}let s=a;switch(a){case"avc1":case"avc2":case"avc3":case"avc4":{let e=eH(r,["avcC"])[0];e&&e.length>3&&(a+="."+eW(e[1])+eW(e[2])+eW(e[3]),t=eK("avc1"===s?"dva1":"dvav",r));break}case"mp4a":{let e=eH(n,[i])[0],t=eH(e.subarray(28),["esds"])[0];if(t&&t.length>7){let e=4;if(3!==t[e++])break;e=e$(t,e)+2;let n=t[e++];if(128&n&&(e+=2),64&n&&(e+=t[e++]),4!==t[e++])break;e=e$(t,e);let r=t[e++];if(64===r)a+="."+eW(r);else break;if(e+=12,5!==t[e++])break;e=e$(t,e);let i=t[e++],o=(248&i)>>3;31===o&&(o+=1+((7&i)<<3)+((224&t[e])>>5)),a+="."+o}break}case"hvc1":case"hev1":{let e=eH(r,["hvcC"])[0];if(e&&e.length>12){let t=e[1],n=["","A","B","C"][t>>6],r=eV(e,2),i=e[12],o=e.subarray(6,12);a+="."+n+(31&t)+"."+r.toString(16).toUpperCase()+"."+((32&t)>>5?"H":"L")+i;let s="";for(let e=o.length;e--;){let t=o[e];(t||s)&&(s="."+t.toString(16).toUpperCase()+s)}a+=s}t=eK("hev1"==s?"dvhe":"dvh1",r);break}case"dvh1":case"dvhe":case"dvav":case"dva1":case"dav1":a=eK(a,r)||a;break;case"vp09":{let e=eH(r,["vpcC"])[0];if(e&&e.length>6){let t=e[4],n=e[5],r=e[6]>>4&15;a+="."+eZ(t)+"."+eZ(n)+"."+eZ(r)}break}case"av01":{let e=eH(r,["av1C"])[0];if(e&&e.length>2){let n=e[1]>>>5,i=31&e[1],o=e[2]>>>7?"H":"M",s=(64&e[2])>>6,l=(32&e[2])>>5,u=(16&e[2])>>4,c=(8&e[2])>>3,d=(4&e[2])>>2,h=3&e[2];a+="."+n+"."+eZ(i)+o+"."+eZ(2===n&&s?l?12:10:s?10:8)+"."+u+"."+c+d+h+"."+eZ(1)+"."+eZ(1)+"."+eZ(1)+".0",t=eK("dav1",r)}}}return{codec:a,encrypted:o,supplemental:t}}(eH(r,["mdia","minf","stbl","stsd"])[0]);a?(t[n]={timescale:i,type:a,stsd:s},t[a]=ey({timescale:i,id:n},s)):t[n]={timescale:i,type:e,stsd:s}}}}}
25return eH(e,["moov","mvex","trex"]).forEach(e=>{let n=t[eV(e,4)];n&&(n.default={duration:eV(e,12),flags:eV(e,20)})}),t}function eK(e,t){let n=eH(t,["dvvC"]),r=n.length?n[0]:eH(t,["dvcC"])[0];if(r){let t=r[2]>>1&127,n=r[2]<<5&32|r[3]>>3&31;return e+"."+eZ(t)+"."+eZ(n)}}function e$(e,t){let n=t+5;for(;128&e[t++]&&t<n;);return t}function eW(e){return("0"+e.toString(16).toUpperCase()).slice(-2)}function eZ(e){return(e<10?"0":"")+e}function eY(e){let t=eH(e,["schm"])[0];if(t){let n=eB(t.subarray(4,8));if("cbcs"===n||"cenc"===n)return eH(e,["schi","tenc"])[0]}return null}function eX(e,t){let n=new Uint8Array(e.length+t.length);return n.set(e),n.set(t,e.length),n}function eJ(e,t){let n=[],r=t.samples,i=t.timescale,a=t.id,o=!1;return eH(r,["moof"]).map(s=>{let l=s.byteOffset-8;eH(s,["traf"]).map(s=>{let u=eH(s,["tfdt"]).map(e=>{let t=e[0],n=eV(e,4);return 1===t&&(n*=4294967296,n+=eV(e,8)),n/i})[0];return void 0!==u&&(e=u),eH(s,["tfhd"]).map(u=>{let c=eV(u,4),d=16777215&eV(u,0),h=0,f=0,p=8;c===a&&((1&d)!=0&&(p+=8),(2&d)!=0&&(p+=4),(8&d)!=0&&(h=eV(u,p),p+=4),(16&d)!=0&&(f=eV(u,p),p+=4),(32&d)!=0&&(p+=4),"video"===t.type&&(o=e0(t.codec)),eH(s,["trun"]).map(a=>{let s=a[0],u=16777215&eV(a,0),c=0,d=(256&u)!=0,p=0,m=(512&u)!=0,g=0,v=(1024&u)!=0,y=(2048&u)!=0,b=0,A=eV(a,4),E=8;(1&u)!=0&&(c=eV(a,E),E+=4),(4&u)!=0&&(E+=4);let w=c+l;for(let l=0;l<A;l++){if(d?(p=eV(a,E),E+=4):p=h,m?(g=eV(a,E),E+=4):g=f,v&&(E+=4),y&&(b=0===s?eV(a,E):eq(a,E),E+=4),t.type===eO.VIDEO){let t=0;for(;t<g;){let a=eV(r,w);w+=4,function(e,t){if(!e)return 6==(31&t);{let e=t>>1&63;return 39===e||40===e}}(o,r[w])&&e1(r.subarray(w,w+a),o?2:1,e+b/i,n),w+=a,t+=a+4}}e+=p/i}}))})})}),n}function e0(e){if(!e)return!1;let t=e.substring(0,4);return"hvc1"===t||"hev1"===t||"dvh1"===t||"dvhe"===t}function e1(e,t,n,r){let i;let a=e2(e);i=0+t;let o=0,s=0,l=0;for(;i<a.length;){o=0;do{if(i>=a.length)break;o+=l=a[i++]}while(255===l);s=0;do{if(i>=a.length)break;s+=l=a[i++]}while(255===l);let e=a.length-i,t=i;if(s<e)i+=s;else if(s>e){eT.error(`Malformed SEI payload. ${s} is too small, only ${e} bytes left to parse.`);break}if(4===o){if(181===a[t++]){let e=eU(a,t);if(t+=2,49===e){let e=eV(a,t);if(t+=4,1195456820===e){let e=a[t++];if(3===e){let i=a[t++],s=31&i,l=64&i,u=l?2+3*s:0,c=new Uint8Array(u);if(l){c[0]=i;for(let e=1;e<u;e++)c[e]=a[t++]}r.push({type:e,payloadType:o,pts:n,bytes:c})}}}}}else if(5===o&&s>16){let e=[];for(let n=0;n<16;n++){let r=a[t++].toString(16);e.push(1==r.length?"0"+r:r),(3===n||5===n||7===n||9===n)&&e.push("-")}let i=s-16,l=new Uint8Array(i);for(let e=0;e<i;e++)l[e]=a[t++];r.push({payloadType:o,pts:n,uuid:e.join(""),userData:eC(l),userDataBytes:l})}}}function e2(e){let t=e.byteLength,n=[],r=1;for(;r<t-2;)0===e[r]&&0===e[r+1]&&3===e[r+2]?(n.push(r+2),r+=2):r++;if(0===n.length)return e;let i=t-n.length,a=new Uint8Array(i),o=0;for(r=0;r<i;o++,r++)o===n[0]&&(o++,n.shift()),a[r]=e[o];return a}let e3=()=>/\(Windows.+Firefox\//i.test(navigator.userAgent),e4={audio:{a3ds:1,"ac-3":.95,"ac-4":1,alac:.9,alaw:1,dra1:1,"dts+":1,"dts-":1,dtsc:1,dtse:1,dtsh:1,"ec-3":.9,enca:1,fLaC:.9,flac:.9,FLAC:.9,g719:1,g726:1,m4ae:1,mha1:1,mha2:1,mhm1:1,mhm2:1,mlpa:1,mp4a:1,"raw ":1,Opus:1,opus:1,samr:1,sawb:1,sawp:1,sevc:1,sqcp:1,ssmv:1,twos:1,ulaw:1},video:{avc1:1,avc2:1,avc3:1,avc4:1,avcp:1,av01:.8,dav1:.8,drac:1,dva1:1,dvav:1,dvh1:.7,dvhe:.7,encv:1,hev1:.75,hvc1:.75,mjp2:1,mp4v:1,mvc1:1,mvc2:1,mvc3:1,mvc4:1,resv:1,rv60:1,s263:1,svc1:1,svc2:1,"vc-1":1,vp08:1,vp09:.9},text:{stpp:1,wvtt:1}};function e5(e,t){let n=e4[t];return!!n&&!!n[e.slice(0,4)]}function e8(e,t,n=!0){return!e.split(",").some(e=>!e6(e,t,n))}function e6(e,t,n=!0){var r;let i=eS(n);return null!=(r=null==i?void 0:i.isTypeSupported(e9(e,t)))&&r}function e9(e,t){return`${t}/mp4;codecs=${e}`}function e7(e){if(e){let t=e.substring(0,4);return e4.video[t]}return 2}function te(e){let t=e3();return e.split(",").reduce((e,n)=>{let r=t&&e0(n)?9:e4.video[n];return r?(2*r+e)/(e?3:2):(e4.audio[n]+e)/(e?2:1)},0)}let tt={},tn=/flac|opus|mp4a\.40\.34/i;function tr(e,t=!0){return e.replace(tn,e=>(function(e,t=!0){if(tt[e])return tt[e];let n={flac:["flac","fLaC","FLAC"],opus:["opus","Opus"],"mp4a.40.34":["mp3"]}[e];for(let i=0;i<n.length;i++){var r;if(e6(n[i],"audio",t))return tt[e]=n[i],n[i];
25if("mp3"===n[i]&&null!=(r=eS(t))&&r.isTypeSupported("audio/mpeg"))return""}return e})(e.toLowerCase(),t))}function ti(e,t){if(e&&(e.length>4||-1!==["ac-3","ec-3","alac","fLaC","Opus"].indexOf(e)))return e;if(t){let n=t.split(",");if(n.length>1){if(e){for(let t=n.length;t--;)if(n[t].substring(0,4)===e.substring(0,4))return n[t]}return n[0]}}return t||e}function ta(e){let t=eS(e)||{isTypeSupported:()=>!1};return{mpeg:t.isTypeSupported("audio/mpeg"),mp3:t.isTypeSupported('audio/mp4; codecs="mp3"'),ac3:t.isTypeSupported('audio/mp4; codecs="ac-3"')}}function to(e){return e.replace(/^.+codecs=["']?([^"']+).*$/,"$1")}let ts={supported:!0,configurations:[],decodingInfoResults:[{supported:!0,powerEfficient:!0,smooth:!0}]};function tl(e,t){return{supported:!1,configurations:t,decodingInfoResults:[{supported:!1,smooth:!1,powerEfficient:!1}],error:e}}let tu={};function tc(e,t,n){let r=e.videoCodec,i=e.audioCodec;if(!r&&!i||!n)return Promise.resolve(ts);let a=[];if(r){let t={width:e.width,height:e.height,bitrate:Math.ceil(Math.max(.9*e.bitrate,e.averageBitrate)),framerate:e.frameRate||30},n=e.videoRange;"SDR"!==n&&(t.transferFunction=n.toLowerCase());let i=r.split(","),o=navigator.userAgent;if(i.some(e=>e0(e))&&e3())return Promise.resolve(tl(Error(`Overriding Windows Firefox HEVC MediaCapabilities result based on user-agent sting: (${o})`),a));a.push.apply(a,i.map(e=>({type:"media-source",video:ey(ey({},t),{},{contentType:e9(function(e){if(e.startsWith("av01.")){let t=e.split("."),n=["0","111","01","01","01","0"];for(let e=t.length;e>4&&e<10;e++)t[e]=n[e-4];return t.join(".")}return e}(e),"video")})})))}return i&&e.audioGroups&&e.audioGroups.forEach(e=>{var n;e&&(null==(n=t.groups[e])||n.tracks.forEach(t=>{if(t.groupId===e){let e=parseFloat(t.channels||"");eo(e)&&e>2&&a.push.apply(a,i.split(",").map(t=>({type:"media-source",audio:{contentType:e9(t,"audio"),channels:""+e}})))}}))}),Promise.all(a.map(e=>{let t=function(e){let{audio:t,video:n}=e,r=n||t;if(r){let e=to(r.contentType);if(n)return`r${n.height}x${n.width}f${Math.ceil(n.framerate)}${n.transferFunction||"sd"}_${e}_${Math.ceil(n.bitrate/1e5)}`;if(t)return`c${t.channels}${t.spatialRendering?"s":"n"}_${e}`}return""}(e);return tu[t]||(tu[t]=n.decodingInfo(e))})).then(e=>({supported:!e.some(e=>!e.supported),configurations:a,decodingInfoResults:e})).catch(e=>({supported:!1,configurations:a,decodingInfoResults:[],error:e}))}let td=["NONE","TYPE-0","TYPE-1",null],th=["SDR","PQ","HLG"];var tf={No:"",Yes:"YES",v2:"v2"};function tp(e){let{canSkipUntil:t,canSkipDateRanges:n,age:r}=e;return t&&r<t/2?n?tf.v2:tf.Yes:tf.No}class tm{constructor(e,t,n){this.msn=void 0,this.part=void 0,this.skip=void 0,this.msn=e,this.part=t,this.skip=n}addDirectives(e){let t=new self.URL(e);return void 0!==this.msn&&t.searchParams.set("_HLS_msn",this.msn.toString()),void 0!==this.part&&t.searchParams.set("_HLS_part",this.part.toString()),this.skip&&t.searchParams.set("_HLS_skip",this.skip),t.href}}class tg{constructor(e){if(this._attrs=void 0,this.audioCodec=void 0,this.bitrate=void 0,this.codecSet=void 0,this.url=void 0,this.frameRate=void 0,this.height=void 0,this.id=void 0,this.name=void 0,this.supplemental=void 0,this.videoCodec=void 0,this.width=void 0,this.details=void 0,this.fragmentError=0,this.loadError=0,this.loaded=void 0,this.realBitrate=0,this.supportedPromise=void 0,this.supportedResult=void 0,this._avgBitrate=0,this._audioGroups=void 0,this._subtitleGroups=void 0,this._urlId=0,this.url=[e.url],this._attrs=[e.attrs],this.bitrate=e.bitrate,e.details&&(this.details=e.details),this.id=e.id||0,this.name=e.name,this.width=e.width||0,this.height=e.height||0,this.frameRate=e.attrs.optionalFloat("FRAME-RATE",0),this._avgBitrate=e.attrs.decimalInteger("AVERAGE-BANDWIDTH"),this.audioCodec=e.audioCodec,this.videoCodec=e.videoCodec,this.codecSet=[e.videoCodec,e.audioCodec].filter(e=>!!e).map(e=>e.substring(0,4)).join(","),"supplemental"in e){var t;this.supplemental=e.supplemental;let n=null==(t=e.supplemental)?void 0:t.videoCodec;n&&n!==e.videoCodec&&(this.codecSet+=`,${n.substring(0,4)}`)}this.addGroupId("audio",e.attrs.AUDIO),this.addGroupId("text",e.attrs.SUBTITLES)}get maxBitrate(){return Math.max(this.realBitrate,this.bitrate)}get averageBitrate(){return this._avgBitrate||this.realBitrate||this.bitrate}get attrs(){return this._attrs[0]}get codecs(){return this.attrs.CODECS||""}get pathwayId(){return this.attrs["PATHWAY-ID"]||"."}get videoRange(){return this.attrs["VIDEO-RANGE"]||"SDR"}get score(){return this.attrs.optionalFloat("SCORE",0)}get uri(){return this.url[0]||""}hasAudioGroup(e){return tv(this._audioGroups,e)}hasSubtitleGroup(e){return tv(this._subtitleGroups,e)}get audioGroups(){return this._audioGroups}get subtitleGroups(){return this._subtitleGroups}addGroupId(e,t){if(t){if("audio"===e){let e=this._audioGroups;e||(e=this._audioGroups=[]),-1===e.indexOf(t)&&e.push(t)}else if("text"===e){let e=this._subtitleGroups;e||(e=this._subtitleGroups=[]),-1===e.indexOf(t)&&e.push(t)}}}get urlId(){return 0}set urlId(e){}get audioGroupIds(){return this.audioGroups?[this.audioGroupId]:void 0}get textGroupIds(){return this.subtitleGroups?[this.textGroupId]:void 0}get audioGroupId(){var e;return null==(e=this.audioGroups)?void 0:e[0]}get textGroupId(){var e;return null==(e=this.subtitleGroups)?void 0:e[0]}addFallback(){}}function tv(e,t){return!!t&&!!e&&-1!==e.indexOf(t)}let ty=e=>{let t=new WeakSet;return(n,r)=>{if(e&&(r=e(n,r)),"object"==typeof r&&null!==r){if(t.has(r))return;t.add(r)}return r}},tb=(e,t)=>JSON.stringify(e,ty(t));function tA(e,t){eT.log(`[abr] start candidates with "${e}" ignored because ${t}`)}function tE(e){return e.reduce((e,t)=>
25{let n=e.groups[t.groupId];n||(n=e.groups[t.groupId]={tracks:[],channels:{2:0},hasDefault:!1,hasAutoSelect:!1}),n.tracks.push(t);let r=t.channels||"2";return n.channels[r]=(n.channels[r]||0)+1,n.hasDefault=n.hasDefault||t.default,n.hasAutoSelect=n.hasAutoSelect||t.autoselect,n.hasDefault&&(e.hasDefaultAudio=!0),n.hasAutoSelect&&(e.hasAutoSelectAudio=!0),e},{hasDefaultAudio:!1,hasAutoSelectAudio:!1,groups:{}})}function tw(e){if(!e)return e;let{lang:t,assocLang:n,characteristics:r,channels:i,audioCodec:a}=e;return{lang:t,assocLang:n,characteristics:r,channels:i,audioCodec:a}}function tx(e,t,n){if("attrs"in e){let n=t.indexOf(e);if(-1!==n)return n}for(let r=0;r<t.length;r++)if(tT(e,t[r],n))return r;return -1}function tT(e,t,n){let{groupId:r,name:i,lang:a,assocLang:o,default:s}=e,l=e.forced;return(void 0===r||t.groupId===r)&&(void 0===i||t.name===i)&&(void 0===a||function(e,t="--"){return e.length===t.length?e===t:e.startsWith(t)||t.startsWith(e)}(a,t.lang))&&(void 0===a||t.assocLang===o)&&(void 0===s||t.default===s)&&(void 0===l||t.forced===l)&&(!("characteristics"in e)||function(e,t=""){let n=e.split(","),r=t.split(",");return n.length===r.length&&!n.some(e=>-1===r.indexOf(e))}(e.characteristics||"",t.characteristics))&&(void 0===n||n(e,t))}function tS(e,t){let{audioCodec:n,channels:r}=e;return(void 0===n||(t.audioCodec||"").substring(0,4)===n.substring(0,4))&&(void 0===r||r===(t.channels||"2"))}function t_(e,t,n){for(let r=t;r>-1;r--)if(n(e[r]))return r;for(let r=t+1;r<e.length;r++)if(n(e[r]))return r;return -1}function tC(e,t){var n;return!!e&&e!==(null==(n=t.loadLevelObj)?void 0:n.uri)}class tk extends eb{constructor(e){super("abr",e.logger),this.hls=void 0,this.lastLevelLoadSec=0,this.lastLoadedFragLevel=-1,this.firstSelection=-1,this._nextAutoLevel=-1,this.nextAutoLevelKey="",this.audioTracksByGroup=null,this.co
25decTiers=null,this.timer=-1,this.fragCurrent=null,this.partCurrent=null,this.bitrateTestDelay=0,this.rebufferNotice=-1,this.bwEstimator=void 0,this._abandonRulesCheck=e=>{var t;let n;let{fragCurrent:r,partCurrent:i,hls:a}=this,{autoLevelEnabled:o,media:s}=a;if(!r||!s)return;let l=performance.now(),u=i?i.stats:r.stats,c=i?i.duration:r.duration,d=l-u.loading.start,h=a.minAutoLevel,f=r.level,p=this._nextAutoLevel;if(u.aborted||u.loaded&&u.loaded===u.total||f<=h){this.clearTimer(),this._nextAutoLevel=-1;return}if(!o)return;let m=p>-1&&p!==f,g=!!e||m;if(!g&&(s.paused||!s.playbackRate||!s.readyState))return;let v=a.mainForwardBufferInfo;if(!g&&null===v)return;let y=this.bwEstimator.getEstimateTTFB(),b=Math.abs(s.playbackRate);if(d<=Math.max(y,c/(2*b)*1e3))return;let A=v?v.len/b:0,E=u.loading.first?u.loading.first-u.loading.start:-1,w=u.loaded&&E>-1,x=this.getBwEstimate(),T=a.levels,S=T[f],_=Math.max(u.loaded,Math.round(c*(r.bitrate||S.averageBitrate)/8)),C=w?d-E:d;C<1&&w&&(C=Math.min(d,8*u.loaded/x));let k=w?1e3*u.loaded/C:0,I=y/1e3,L=k?(_-u.loaded)/k:8*_/x+I;if(L<=A)return;let P=k?8*k:x,O=(null==(t=(null==e?void 0:e.details)||this.hls.latestLevelDetails)?void 0:t.live)===!0,R=this.hls.config.abrBandWidthUpFactor,D=Number.POSITIVE_INFINITY;for(n=f-1;n>h;n--){let e=T[n].maxBitrate,t=!T[n].details||O;if((D=this.getTimeToLoadFrag(I,P,c*e,t))<Math.min(A,c+I))break}if(D>=L||D>10*c)return;w?this.bwEstimator.sample(d-Math.min(y,E),u.loaded):this.bwEstimator.sampleTTFB(d);let N=T[n].maxBitrate;this.getBwEstimate()*R>N&&this.resetEstimator(N);let M=this.findBestLevel(N,h,n,0,A,1,1);M>-1&&(n=M),this.warn(`Fragment ${r.sn}${i?" part "+i.index:""} of level ${f} is loading too slowly;
26      Fragment duration: ${r.duration.toFixed(3)}
27      Time to underbuffer: ${A.toFixed(3)} s
28      Estimated load time for current fragment: ${L.toFixed(3)} s
29      Estimated load time for down switch fragment: ${D.toFixed(3)} s
30      TTFB estimate: ${0|E} ms
31      Current BW estimate: ${eo(x)?0|x:"Unknown"} bps
32      New BW estimate: ${0|this.getBwEstimate()} bps
33      Switching to level ${n} @ ${0|N} bps`),a.nextLoadLevel=a.nextAutoLevel=n,this.clearTimer();let j=()=>{if(this.clearTimer(),this.fragCurrent===r&&this.hls.loadLevel===n&&n>0){let e=this.getStarvationDelay();if(this.warn(`Aborting inflight request ${n>0?"and switching down":""}
34      Fragment duration: ${r.duration.toFixed(3)} s
35      Time to underbuffer: ${e.toFixed(3)} s`),r.abortRequests(),this.fragCurrent=this.partCurrent=null,n>h){let t=this.findBestLevel(this.hls.levels[h].bitrate,h,n,0,e,1,1);-1===t&&(t=h),this.hls.nextLoadLevel=this.hls.nextAutoLevel=t,this.resetEstimator(this.hls.levels[t].bitrate)}}};m||L>2*D?j():this.timer=self.setInterval(j,1e3*D),a.trigger(ed.FRAG_LOAD_EMERGENCY_ABORTED,{frag:r,part:i,stats:u})},this.hls=e,this.bwEstimator=this.initEstimator(),this.registerListeners()}resetEstimator(e){e&&(this.log(`setting initial bwe to ${e}`),this.hls.config.abrEwmaDefaultEstimate=e),this.firstSelection=-1,this.bwEstimator=this.initEstimator()}initEstimator(){let e=this.hls.config;return new em(e.abrEwmaSlowVoD,e.abrEwmaFastVoD,e.abrEwmaDefaultEstimate)}registerListeners(){let{hls:e}=this;e.on(ed.MANIFEST_LOADING,this.onManifestLoading,this),e.on(ed.FRAG_LOADING,this.onFragLoading,this),e.on(ed.FRAG_LOADED,this.onFragLoaded,this),e.on(ed.FRAG_BUFFERED,this.onFragBuffered,this),e.on(ed.LEVEL_SWITCHING,this.onLevelSwitching,this),e.on(ed.LEVEL_LOADED,this.onLevelLoaded,this),e.on(ed.LEVELS_UPDATED,this.onLevelsUpdated,this),e.on(ed.MAX_AUTO_LEVEL_UPDATED,this.onMaxAutoLevelUpdated,this),e.on(ed.ERROR,this.onError,this)}unregisterListeners(){let{hls:e}=this;e&&(e.off(ed.MANIFEST_LOADING,this.onManifestLoading,this),e.off(ed.FRAG_LOADING,this.onFragLoading,this),e.off(ed.FRAG_LOADED,this.onFragLoaded,this),e.off(ed.FRAG_BUFFERED,this.onFragBuffered,this),e.off(ed.LEVEL_SWITCHING,this.onLevelSwitching,this),e.off(ed.LEVEL_LOADED,this.onLevelLoaded,this),e.off(ed.LEVELS_UPDATED,this.onLevelsUpdated,this),e.off(ed.MAX_AUTO_LEVEL_UPDATED,this.onMaxAutoLevelUpdated,this),e.off(ed.ERROR,this.onError,this))}destroy(){this.unregisterListeners(),this.clearTimer(),this.hls=this._abandonRulesCheck=null,this.fragCurrent=this.partCurrent=null}onManifestLoading(e,t){this.lastLoadedFragLevel=-1,this.firstSelection=-1,this.lastLevelLoadSec=0,this.fragCurrent=this.partCurrent=null,this.onLevelsUpdated(),this.clearTimer()}onLevelsUpdated(){this.lastLoadedFragLevel>-1&&this.fragCurrent&&(this.lastLoadedFragLevel=this.fragCurrent.level),this._nextAutoLevel=-1,this.onMaxAutoLevelUpdated(),this.codecTiers=null,this.audioTracksByGroup=null}onMaxAutoLevelUpdated(){this.firstSelection=-1,this.nextAutoLevelKey=""}onFragLoading(e,t){let n=t.frag;
35if(!this.ignoreFragment(n)){if(!n.bitrateTest){var r;this.fragCurrent=n,this.partCurrent=null!=(r=t.part)?r:null}this.clearTimer(),this.timer=self.setInterval(this._abandonRulesCheck,100)}}onLevelSwitching(e,t){this.clearTimer()}onError(e,t){if(!t.fatal)switch(t.details){case ec.BUFFER_ADD_CODEC_ERROR:case ec.BUFFER_APPEND_ERROR:this.lastLoadedFragLevel=-1,this.firstSelection=-1;break;case ec.FRAG_LOAD_TIMEOUT:{let e=t.frag,{fragCurrent:n,partCurrent:r}=this;if(e&&n&&e.sn===n.sn&&e.level===n.level){let t=performance.now(),n=r?r.stats:e.stats,i=t-n.loading.start,a=n.loading.first?n.loading.first-n.loading.start:-1;if(n.loaded&&a>-1){let e=this.bwEstimator.getEstimateTTFB();this.bwEstimator.sample(i-Math.min(e,a),n.loaded)}else this.bwEstimator.sampleTTFB(i)}}}}getTimeToLoadFrag(e,t,n,r){let i=r?e+this.lastLevelLoadSec:0;return e+n/t+i}onLevelLoaded(e,t){let n=this.hls.config,{loading:r}=t.stats,i=r.end-r.first;eo(i)&&(this.lastLevelLoadSec=i/1e3),t.details.live?this.bwEstimator.update(n.abrEwmaSlowLive,n.abrEwmaFastLive):this.bwEstimator.update(n.abrEwmaSlowVoD,n.abrEwmaFastVoD),this.timer>-1&&this._abandonRulesCheck(t.levelInfo)}onFragLoaded(e,{frag:t,part:n}){let r=n?n.stats:t.stats;if(t.type===ef.MAIN&&this.bwEstimator.sampleTTFB(r.loading.first-r.loading.start),!this.ignoreFragment(t)){if(this.clearTimer(),t.level===this._nextAutoLevel&&(this._nextAutoLevel=-1),this.firstSelection=-1,this.hls.config.abrMaxWithRealBitrate){let e=n?n.duration:t.duration,i=this.hls.levels[t.level],a=(i.loaded?i.loaded.bytes:0)+r.loaded,o=(i.loaded?i.loaded.duration:0)+e;i.loaded={bytes:a,duration:o},i.realBitrate=Math.round(8*a/o)}if(t.bitrateTest){let e={stats:r,frag:t,part:n,id:t.type};this.onFragBuffered(ed.FRAG_BUFFERED,e),t.bitrateTest=!1}else this.lastLoadedFragLevel=t.level}}onFragBuffered(e,t){let{frag:n,part:r}=t,i=null!=r&&r.stats.loaded?r.stats:n.stats;if(i.aborted||this.ignoreFragment(n))return;let a=i.parsing.end-i.loading.start-Math.min(i.loading.first-i.loading.start,this.bwEstimator.getEstimateTTFB());this.bwEstimator.sample(a,i.loaded),i.bwEstimate=this.getBwEstimate(),n.bitrateTest?this.bitrateTestDelay=a/1e3:this.bitrateTestDelay=0}ignoreFragment(e){return e.type!==ef.MAIN||"initSegment"===e.sn}clearTimer(){this.timer>-1&&(self.clearInterval(this.timer),this.timer=-1)}get firstAutoLevel(){let{maxAutoLevel:e,minAutoLevel:t}=this.hls,n=this.getBwEstimate(),r=this.hls.config.maxStarvationDelay,i=this.findBestLevel(n,t,e,0,r,1,1);if(i>-1)return i;let a=this.hls.firstLevel,o=Math.min(Math.max(a,t),e);return this.warn(`Could not find best starting auto level. Defaulting to first in playlist ${a} clamped to ${o}`),o}get forcedAutoLevel(){return this.nextAutoLevelKey?-1:this._nextAutoLevel}get nextAutoLevel(){let e=this.forcedAutoLevel,t=this.bwEstimator.canEstimate(),n=this.lastLoadedFragLevel>-1;if(-1!==e&&(!t||!n||this.nextAutoLevelKey===this.getAutoLevelKey()))return e;let r=t&&n?this.getNextABRAutoLevel():this.firstAutoLevel;if(-1!==e){let t=this.hls.levels;if(t.length>Math.max(e,r)&&t[e].loadError<=t[r].loadError)return e}return this._nextAutoLevel=r,this.nextAutoLevelKey=this.getAutoLevelKey(),r}getAutoLevelKey(){return`${this.getBwEstimate()}
35_${this.getStarvationDelay().toFixed(2)}`}getNextABRAutoLevel(){let{fragCurrent:e,partCurrent:t,hls:n}=this;if(n.levels.length<=1)return n.loadLevel;let{maxAutoLevel:r,config:i,minAutoLevel:a}=n,o=t?t.duration:e?e.duration:0,s=this.getBwEstimate(),l=this.getStarvationDelay(),u=i.abrBandWidthFactor,c=i.abrBandWidthUpFactor;if(l){let e=this.findBestLevel(s,a,r,l,0,u,c);if(e>=0)return this.rebufferNotice=-1,e}let d=o?Math.min(o,i.maxStarvationDelay):i.maxStarvationDelay;if(!l){let e=this.bitrateTestDelay;e&&(d=(o?Math.min(o,i.maxLoadingDelay):i.maxLoadingDelay)-e,this.info(`bitrate test took ${Math.round(1e3*e)}ms, set first fragment max fetchDuration to ${Math.round(1e3*d)} ms`),u=c=1)}let h=this.findBestLevel(s,a,r,l,d,u,c);if(this.rebufferNotice!==h&&(this.rebufferNotice=h,this.info(`${l?"rebuffering expected":"buffer is empty"}, optimal quality level ${h}`)),h>-1)return h;let f=n.levels[a],p=n.loadLevelObj;return p&&(null==f?void 0:f.bitrate)<p.bitrate?a:n.loadLevel}getStarvationDelay(){let e=this.hls,t=e.media;if(!t)return 1/0;let n=t&&0!==t.playbackRate?Math.abs(t.playbackRate):1,r=e.mainForwardBufferInfo;return(r?r.len:0)/n}getBwEstimate(){return this.bwEstimator.canEstimate()?this.bwEstimator.getEstimate():this.hls.config.abrEwmaDefaultEstimate}findBestLevel(e,t,n,r,i,a,o){var s,l;let u;let c=r+i,d=this.lastLoadedFragLevel,h=-1===d?this.hls.firstLevel:d,{fragCurrent:f,partCurrent:p}=this,{levels:m,allAudioTracks:g,loadLevel:v,config:y}=this.hls;if(1===m.length)return 0;let b=m[h],A=!!(null!=(s=this.hls.latestLevelDetails)&&s.live),E=-1===v||-1===d,w="SDR",x=(null==b?void 0:b.frameRate)||0,{audioPreference:T,videoPreference:S}=y,_=this.audioTracksByGroup||(this.audioTracksByGroup=tE(g)),C=-1;if(E){if(-1!==this.firstSelection)return this.firstSelection;let r=function(e,t,n,r,i){let a=Object.keys(e),o=null==r?void 0:r.channels,s=null==r?void 0:r.audioCodec,l=null==i?void 0:i.videoCodec,u=o&&2===parseInt(o),c=!1,d=!1,h=1/0,f=1/0,p=1/0,m=1/0,g=0,v=[],{preferHDR:y,allowedVideoRanges:b}=function(e,t){let n=!1,r=[];if(e&&(n="SDR"!==e,r=[e]),t){let e="SDR"!==(r=t.allowedVideoRanges||th.slice(0)).join("")&&!t.videoCodec;(n=void 0!==t.preferHDR?t.preferHDR:e&&function(){if("function"==typeof matchMedia){let e=matchMedia("(dynamic-range: high)"),t=matchMedia("bad query");if(e.media!==t.media)return!0===e.matches}return!1}())||(r=["SDR"])}return{preferHDR:n,allowedVideoRanges:r}}(t,i);for(let t=a.length;t--;){let n=e[a[t]];c||(c=n.channels[2]>0),h=Math.min(h,n.minHeight),f=Math.min(f,n.minFramerate),p=Math.min(p,n.minBitrate),b.filter(e=>n.videoRanges[e]>0).length>0&&(d=!0)}h=eo(h)?h:0,f=eo(f)?f:0;let A=Math.max(1080,h),E=Math.max(30,f);n=Math.max(p=eo(p)?p:n,n),d||(t=void 0);let w=a.length>1;return{codecSet:a.reduce((t,r)=>{let i=e[r];if(r===t)return t;if(v=d?b.filter(e=>i.videoRanges[e]>0):[],w){if(i.minBitrate>n)return tA(r,`min bitrate of ${i.minBitrate} > current estimate of ${n}`),t;if(!i.hasDefaultAudio)return tA(r,"no renditions with default or auto-select sound found"),t;if(s&&r.indexOf(s.substring(0,4))%5!=0)return tA(r,`audio codec preference "${s}" not found`),t;if(o&&!u){if(!i.channels[o])return tA(r,`no renditions with ${o} channel sound found (channels options: ${Object.keys(i.channels)})`),t}else if((!s||u)&&c&&0===i.channels["2"])return tA(r,"no renditions with stereo sound found"),t;if(i.minHeight>A)return tA(r,`min resolution of ${i.minHeight} > maximum of ${A}`),t;if(i.minFramerate>E)return tA(r,`min framerate of ${i.minFramerate} > maximum of ${E}`),t;if(!v.some(e=>i.videoRanges[e]>0))return tA(r,`no variants with VIDEO-RANGE of ${tb(v)} found`),t;if(l&&r.indexOf(l.substring(0,4))%5!=0)return tA(r,`video codec preference "${l}" not found`),t;if(i.maxScore<g)return tA(r,`max score of ${i.maxScore} < selected max of ${g}`),t}return t&&(te(r)>=te(t)||i.fragmentError>e[t].fragmentError)?t:(m=i.minIndex,g=i.maxScore,r)},void 0),videoRanges:v,preferHDR:y,minFramerate:f,minBitrate:p,minIndex:m}}(this.codecTiers||(this.codecTiers=m.slice(t,n+1).reduce((e,t,n)=>{if(!t.codecSet)return e;let r=t.audioGroups,i=e[t.codecSet];i||(e[t.codecSet]=i={minBitrate:1/0,minHeight:1/0,minFramerate:1/0,minIndex:n,maxScore:0,videoRanges:{SDR:0},channels:{2:0},hasDefaultAudio:!r,fragmentError:0}
35),i.minBitrate=Math.min(i.minBitrate,t.bitrate);let a=Math.min(t.height,t.width);return i.minHeight=Math.min(i.minHeight,a),i.minFramerate=Math.min(i.minFramerate,t.frameRate),i.minIndex=Math.min(i.minIndex,n),i.maxScore=Math.max(i.maxScore,t.score),i.fragmentError+=t.fragmentError,i.videoRanges[t.videoRange]=(i.videoRanges[t.videoRange]||0)+1,r&&r.forEach(e=>{if(!e)return;let t=_.groups[e];t&&(i.hasDefaultAudio=i.hasDefaultAudio||_.hasDefaultAudio?t.hasDefault:t.hasAutoSelect||!_.hasDefaultAudio&&!_.hasAutoSelectAudio,Object.keys(t.channels).forEach(e=>{i.channels[e]=(i.channels[e]||0)+t.channels[e]}))}),e},{})),w,e,T,S),{codecSet:i,videoRanges:a,minFramerate:o,minBitrate:s,minIndex:l,preferHDR:c}=r;C=l,u=i,w=c?a[a.length-1]:a[0],x=o,e=Math.max(e,s),this.log(`picked start tier ${tb(r)}`)}else u=null==b?void 0:b.codecSet,w=null==b?void 0:b.videoRange;let k=p?p.duration:f?f.duration:0,I=this.bwEstimator.getEstimateTTFB()/1e3,L=[];for(let s=n;s>=t;s--){let t;let f=m[s],g=s>h;if(!f)continue;if(y.useMediaCapabilities&&!f.supportedResult&&!f.supportedPromise){let t=navigator.mediaCapabilities;"function"==typeof(null==t?void 0:t.decodingInfo)&&(function(e,t,n,r,i,a){let o=e.audioCodec?e.audioGroups:null,s=null==a?void 0:a.audioCodec,l=null==a?void 0:a.channels,u=l?parseInt(l):s?1/0:2,c=null;if(null!=o&&o.length)try{c=1===o.length&&o[0]?t.groups[o[0]].channels:o.reduce((e,n)=>{if(n){let r=t.groups[n];if(!r)throw Error(`Audio track group ${n} not found`);Object.keys(r.channels).forEach(t=>{e[t]=(e[t]||0)+r.channels[t]})}return e},{2:0})}catch(e){return!0}return void 0!==e.videoCodec&&(e.width>1920&&e.height>1088||e.height>1920&&e.width>1088||e.frameRate>Math.max(r,30)||"SDR"!==e.videoRange&&e.videoRange!==n||e.bitrate>Math.max(i,8e6))||!!c&&eo(u)&&Object.keys(c).some(e=>parseInt(e)>u)}(f,_,w,x,e,T)||e0(f.videoCodec))?(f.supportedPromise=tc(f,_,t),f.supportedPromise.then(e=>{if(!this.hls)return;f.supportedResult=e;let t=this.hls.levels,n=t.indexOf(f);e.error?this.warn(`MediaCapabilities decodingInfo error: "${e.error}" for level ${n} ${tb(e)}`):!e.supported&&(this.warn(`Unsupported MediaCapabilities decodingInfo result for level ${n} ${tb(e)}`),n>-1&&t.length>1&&(this.log(`Removing unsupported level ${n}`),this.hls.removeLevel(n),-1===this.hls.loadLevel&&(this.hls.nextLoadLevel=0)))})):f.supportedResult=ts}if((u&&f.codecSet!==u||w&&f.videoRange!==w||g&&x>f.frameRate||!g&&x>0&&x<f.frameRate||f.supportedResult&&!(null!=(l=f.supportedResult.decodingInfoResults)&&l[0].smooth))&&(!E||s!==C)){L.push(s);continue}let b=f.details,S=(p?null==b?void 0:b.partTarget:null==b?void 0:b.averagetargetduration)||k;t=g?o*e:a*e;let P=k&&r>=2*k&&0===i?f.averageBitrate:f.maxBitrate,O=this.getTimeToLoadFrag(I,t,P*S,void 0===b);if(t>=P&&(s===d||0===f.loadError&&0===f.fragmentError)&&(O<=I||!eo(O)||A&&!this.bitrateTestDelay||O<c)){let e=this.forcedAutoLevel;return s!==v&&(-1===e||e!==v)&&(L.length&&this.trace(`Skipped level(s) ${L.join(",")} of ${n} max with CODECS and VIDEO-RANGE:"${m[L[0]].codecs}" ${m[L[0]].videoRange}; not compatible with "${u}" ${w}`),this.info(`switch candidate:${h}->${s} adjustedbw(${Math.round(t)})-bitrate=${Math.round(t-P)} ttfb:${I.toFixed(1)} avgDuration:${S.toFixed(1)} maxFetchDuration:${c.toFixed(1)} fetchDuration:${O.toFixed(1)} firstSelection:${E} codecSet:${f.codecSet} videoRange:${f.videoRange} hls.loadLevel:${v}`)),E&&(this.firstSelection=s),s}}return -1}set nextAutoLevel(e){let t=this.deriveNextAutoLevel(e);this._nextAutoLevel!==t&&(this.nextAutoLevelKey="",this._nextAutoLevel=t)}deriveNextAutoLevel(e){let{maxAutoLevel:t,minAutoLevel:n}=this.hls;return Math.min(Math.max(e,n),t)}}let tI={search:function(e,t){let n=0,r=e.length-1,i=null,a=null;for(;n<=r;){let o=t(a=e[i=(n+r)/2|0]);if(o>0)n=i+1;else{if(!(o<0))return a;r=i-1}}return null}};function tL(e,t,n=0,r=0,i=.005){let a=null;if(e){a=t[1+e.sn-t[0].sn]||null;let r=e.endDTS-n;r>0&&r<15e-7&&(n+=15e-7),a&&e.level!==a.level&&a.end<=e.end&&(a=t[2+e.sn-t[0].sn]||null)}else 0===n&&0===t[0].start&&(a=t[0]);if(a&&((!e||e.level===a.level)&&0===tP(n,r,a)||function(e,t,n){if(t&&0===t.start&&t.level<e.level&&(t.endPTS||0)>0){let r=t.tagList.reduce((e,t)=>
35("INF"===t[0]&&(e+=parseFloat(t[1])),e),n);return e.start<=r}return!1}(a,e,Math.min(i,r))))return a;let o=tI.search(t,tP.bind(null,n,r));return o&&(o!==e||!a)?o:a}function tP(e=0,t=0,n){if(n.start<=e&&n.start+n.duration>e)return 0;let r=Math.min(t,n.duration+(n.deltaPTS?n.deltaPTS:0));return n.start+n.duration-r<=e?1:n.start-r>e&&n.start?-1:0}function tO(e,t){return tI.search(e,e=>e.cc<t?1:e.cc>t?-1:0)}function tR(e){switch(e.details){case ec.FRAG_LOAD_TIMEOUT:case ec.KEY_LOAD_TIMEOUT:case ec.LEVEL_LOAD_TIMEOUT:case ec.MANIFEST_LOAD_TIMEOUT:return!0}return!1}function tD(e,t){let n=tR(t);return e.default[`${n?"timeout":"error"}Retry`]}function tN(e,t){return Math.min(("linear"===e.backoff?1:Math.pow(2,t))*e.retryDelayMs,e.maxRetryDelayMs)}function tM(e){return ey(ey({},e),{errorRetry:null,timeoutRetry:null})}function tj(e,t,n,r){if(!e)return!1;let i=null==r?void 0:r.code,a=t<e.maxNumRetry&&(0===i&&!1===navigator.onLine||!!i&&(i<400||i>499)||!!n);return e.shouldRetry?e.shouldRetry(e,t,n,r,a):a}var tF={DoNothing:0,SendAlternateToPenaltyBox:2,RemoveAlternatePermanently:3,RetryRequest:5},tB={None:0,MoveAllAlternatesMatchingHost:1,MoveAllAlternatesMatchingHDCP:2};class tU extends eb{constructor(e){super("error-controller",e.logger),this.hls=void 0,this.playlistError=0,this.penalizedRenditions={},this.hls=e,this.registerListeners()}registerListeners(){let e=this.hls;e.on(ed.ERROR,this.onError,this),e.on(ed.MANIFEST_LOADING,this.onManifestLoading,this),e.on(ed.LEVEL_UPDATED,this.onLevelUpdated,this)}unregisterListeners(){let e=this.hls;e&&(e.off(ed.ERROR,this.onError,this),e.off(ed.ERROR,this.onErrorOut,this),e.off(ed.MANIFEST_LOADING,this.onManifestLoading,this),e.off(ed.LEVEL_UPDATED,this.onLevelUpdated,this))}destroy(){this.unregisterListeners(),this.hls=null,this.penalizedRenditions={}}startLoad(e){}stopLoad(){this.playlistError=0}getVariantLevelIndex(e){return(null==e?void 0:e.type)===ef.MAIN?e.level:this.hls.loadLevel}onManifestLoading(){this.playlistError=0,this.penalizedRenditions={}}onLevelUpdated(){this.playlistError=0}onError(e,t){var n,r,i,a;if(t.fatal)return;let o=this.hls,s=t.context;switch(t.details){case ec.FRAG_LOAD_ERROR:case ec.FRAG_LOAD_TIMEOUT:case ec.KEY_LOAD_ERROR:case ec.KEY_LOAD_TIMEOUT:t.errorAction=this.getFragRetryOrSwitchAction(t);return;case ec.FRAG_PARSING_ERROR:if(null!=(n=t.frag)&&n.gap){t.errorAction=tV();return}case ec.FRAG_GAP:case ec.FRAG_DECRYPT_ERROR:t.errorAction=this.getFragRetryOrSwitchAction(t),t.errorAction.action=tF.SendAlternateToPenaltyBox;return;case ec.LEVEL_EMPTY_ERROR:case ec.LEVEL_PARSING_ERROR:{let e=t.parent===ef.MAIN?t.level:o.loadLevel;t.details===ec.LEVEL_EMPTY_ERROR&&null!=(r=t.context)&&null!=(i=r.levelDetails)&&i.live?t.errorAction=this.getPlaylistRetryOrSwitchAction(t,e):(t.levelRetry=!1,t.errorAction=this.getLevelSwitchAction(t,e))}return;case ec.LEVEL_LOAD_ERROR:case ec.LEVEL_LOAD_TIMEOUT:"number"==typeof(null==s?void 0:s.level)&&(t.errorAction=this.getPlaylistRetryOrSwitchAction(t,s.level));return;case ec.AUDIO_TRACK_LOAD_ERROR:case ec.AUDIO_TRACK_LOAD_TIMEOUT:case ec.SUBTITLE_LOAD_ERROR:case ec.SUBTITLE_TRACK_LOAD_TIMEOUT:if(s){let e=o.loadLevelObj;e&&(s.type===eh.AUDIO_TRACK&&e.hasAudioGroup(s.groupId)||s.type===eh.SUBTITLE_TRACK&&e.hasSubtitleGroup(s.groupId))&&(t.errorAction=this.getPlaylistRetryOrSwitchAction(t,o.loadLevel),t.errorAction.action=tF.SendAlternateToPenaltyBox,t.errorAction.flags=tB.MoveAllAlternatesMatchingHost)}return;case ec.KEY_SYSTEM_STATUS_OUTPUT_RESTRICTED:{let e=o.loadLevelObj,n=null==e?void 0:e.attrs["HDCP-LEVEL"];n?t.errorAction={action:tF.SendAlternateToPenaltyBox,flags:tB.MoveAllAlternatesMatchingHDCP,hdcpLevel:n}:this.keySystemError(t)}return;case ec.BUFFER_ADD_CODEC_ERROR:case ec.REMUX_ALLOC_ERROR:case ec.BUFFER_APPEND_ERROR:t.errorAction||(t.errorAction=this.getLevelSwitchAction(t,null!=(a=t.level)?a:o.loadLevel));return;case ec.INTERNAL_EXCEPTION:case ec.BUFFER_APPENDING_ERROR:case ec.BUFFER_FULL_ERROR:case ec.LEVEL_SWITCH_ERROR:case ec.BUFFER_STALLED_ERROR:case ec.BUFFER_SEEK_OVER_HOLE:case ec.BUFFER_NUDGE_ON_STALL:t.errorAction=tV();return}t.type===eu.KEY_SYSTEM_ERROR&&this.keySystemError(t)}keySystemError(e){let t=this.getVariantLevelIndex(e.frag);e.levelRetry=!1,e.errorAction=this.getLevelSwitchAction(e,t)}getPlaylistRetryOrSwitchAction(e,t){let n=tD(this.hls.config.playlistLoadPolicy,e),r=this.playlistError++;if(tj(n,r,tR(e),e.response))return{action:tF.RetryRequest,flags:tB.None,retryConfig:n,retryCount:r};let i=this.getLevelSwitchAction(e,t);return n&&(i.retryConfig=n,i.retryCount=r),i}getFragRetryOrSwitchAction(e){let t=this.hls,n=this.getVariantLevelIndex(e.frag),r=t.levels[n],{fragLoadPolicy:i,keyLoadPolicy:a}=t.config,o=tD(e.details.startsWith("key")?a:i,e),s=t.levels.reduce((e,t)=>
35e+t.fragmentError,0);if(r&&(e.details!==ec.FRAG_GAP&&r.fragmentError++,tj(o,s,tR(e),e.response)))return{action:tF.RetryRequest,flags:tB.None,retryConfig:o,retryCount:s};let l=this.getLevelSwitchAction(e,n);return o&&(l.retryConfig=o,l.retryCount=s),l}getLevelSwitchAction(e,t){let n=this.hls;null==t&&(t=n.loadLevel);let r=this.hls.levels[t];if(r){var i,a,o,s;let t=e.details;r.loadError++,t===ec.BUFFER_APPEND_ERROR&&r.fragmentError++;let l=-1,{levels:u,loadLevel:c,minAutoLevel:d,maxAutoLevel:h}=n;n.autoLevelEnabled||(n.loadLevel=-1);let f=null==(i=e.frag)?void 0:i.type,p=(f===ef.AUDIO&&t===ec.FRAG_PARSING_ERROR||"audio"===e.sourceBufferName&&(t===ec.BUFFER_ADD_CODEC_ERROR||t===ec.BUFFER_APPEND_ERROR))&&u.some(({audioCodec:e})=>r.audioCodec!==e),m="video"===e.sourceBufferName&&(t===ec.BUFFER_ADD_CODEC_ERROR||t===ec.BUFFER_APPEND_ERROR)&&u.some(({codecSet:e,audioCodec:t})=>r.codecSet!==e&&r.audioCodec===t),{type:g,groupId:v}=null!=(a=e.context)?a:{};for(let n=u.length;n--;){let i=(n+c)%u.length;if(i!==c&&i>=d&&i<=h&&0===u[i].loadError){let n=u[i];if(t===ec.FRAG_GAP&&f===ef.MAIN&&e.frag){let t=u[i].details;if(t){let n=tL(e.frag,t.fragments,e.frag.start);if(null!=n&&n.gap)continue}}else if(g===eh.AUDIO_TRACK&&n.hasAudioGroup(v)||g===eh.SUBTITLE_TRACK&&n.hasSubtitleGroup(v))continue;else if(f===ef.AUDIO&&null!=(o=r.audioGroups)&&o.some(e=>n.hasAudioGroup(e))||f===ef.SUBTITLE&&null!=(s=r.subtitleGroups)&&s.some(e=>n.hasSubtitleGroup(e))||p&&r.audioCodec===n.audioCodec||!p&&r.audioCodec!==n.audioCodec||m&&r.codecSet===n.codecSet)continue;l=i;break}}if(l>-1&&n.loadLevel!==l)return e.levelRetry=!0,this.playlistError=0,{action:tF.SendAlternateToPenaltyBox,flags:tB.None,nextAutoLevel:l}}return{action:tF.SendAlternateToPenaltyBox,flags:tB.MoveAllAlternatesMatchingHost}}onErrorOut(e,t){var n;switch(null==(n=t.errorAction)?void 0:n.action){case tF.DoNothing:break;case tF.SendAlternateToPenaltyBox:this.sendAlternateToPenaltyBox(t),t.errorAction.resolved||t.details===ec.FRAG_GAP?/MediaSource readyState: ended/.test(t.error.message)&&(this.warn(`MediaSource ended after "${t.sourceBufferName}" sourceBuffer append error. Attempting to recover from media error.`),this.hls.recoverMediaError()):t.fatal=!0;case tF.RetryRequest:}if(t.fatal){this.hls.stopLoad();return}}sendAlternateToPenaltyBox(e){let t=this.hls,n=e.errorAction;if(!n)return;let{flags:r,hdcpLevel:i,nextAutoLevel:a}=n;switch(r){case tB.None:this.switchLevel(e,a);break;case tB.MoveAllAlternatesMatchingHDCP:i&&(t.maxHdcpLevel=td[td.indexOf(i)-1],n.resolved=!0),this.warn(`Restricting playback to HDCP-LEVEL of "${t.maxHdcpLevel}" or lower`)}n.resolved||this.switchLevel(e,a)}switchLevel(e,t){if(void 0!==t&&e.errorAction&&(this.warn(`switching to level ${t} after ${e.details}`),this.hls.nextAutoLevel=t,e.errorAction.resolved=!0,this.hls.nextLoadLevel=this.hls.nextAutoLevel,e.details===ec.BUFFER_ADD_CODEC_ERROR&&e.mimeType&&"audiovideo"!==e.sourceBufferName)){let t=to(e.mimeType),n=this.hls.levels;for(let r=n.length;r--;)n[r][`${e.sourceBufferName}Codec`]===t&&this.hls.removeLevel(r)}}}function tV(e){let t={action:tF.DoNothing,flags:tB.None};return e&&(t.resolved=!0),t}var tz={NOT_LOADED:"NOT_LOADED",APPENDING:"APPENDING",PARTIAL:"PARTIAL",OK:"OK"};class tq{constructor(e){this.activePartLists=Object.create(null),this.endListFragments=Object.create(null),this.fragments=Object.create(null),this.timeRanges=Object.create(null),this.bufferPadding=.2,this.hls=void 0,this.hasGaps=!1,this.hls=e,this._registerListeners()}_registerListeners(){let{hls:e}=this;e.on(ed.MANIFEST_LOADING,this.onManifestLoading,this),e.on(ed.BUFFER_APPENDED,this.onBufferAppended,this),e.on(ed.FRAG_BUFFERED,this.onFragBuffered,this),e.on(ed.FRAG_LOADED,this.onFragLoaded,this)}_unregisterListeners(){let{hls:e}=this;e.off(ed.MANIFEST_LOADING,this.onManifestLoading,this),e.off(ed.BUFFER_APPENDED,this.onBufferAppended,this),e.off(ed.FRAG_BUFFERED,this.onFragBuffered,this),e.off(ed.FRAG_LOADED,this.onFragLoaded,this)}destroy(){this._unregisterListeners(),this.fragments=this.activePartLists=this.endListFragments=this.timeRanges=null}getAppendedFrag(e,t){let n=this.activePartLists[t];if(n)for(let t=n.length;t--;){let r=n[t];if(!r)break;let i=r.end;if(r.start<=e&&null!==i&&e<=i)return r}return this.getBufferedFrag(e,t)}getBufferedFrag(e,t){return this.getFragAtPos(e,t,!0)}getFragAtPos(e,t,n){let{fragments:r}=this,i=Object.keys(r);for(let a=i.length;a--;){let o=r[i[a]];
35if((null==o?void 0:o.body.type)===t&&(!n||o.buffered)){let t=o.body;if(t.start<=e&&e<=t.end)return t}}return null}detectEvictedFragments(e,t,n,r,i){this.timeRanges&&(this.timeRanges[e]=t);let a=(null==r?void 0:r.fragment.sn)||-1;Object.keys(this.fragments).forEach(r=>{let o=this.fragments[r];if(!o||a>=o.body.sn)return;if(!o.buffered&&(!o.loaded||i)){o.body.type===n&&this.removeFragment(o.body);return}let s=o.range[e];if(s){if(0===s.time.length){this.removeFragment(o.body);return}s.time.some(e=>{let n=!this.isTimeBuffered(e.startPTS,e.endPTS,t);return n&&this.removeFragment(o.body),n})}})}detectPartialFragments(e){let t=this.timeRanges;if(!t||"initSegment"===e.frag.sn)return;let n=e.frag,r=tH(n),i=this.fragments[r];if(!i||i.buffered&&n.gap)return;let a=!n.relurl;Object.keys(t).forEach(r=>{let o=n.elementaryStreams[r];if(!o)return;let s=t[r],l=a||!0===o.partial;i.range[r]=this.getBufferedTimes(n,e.part,l,s)}),i.loaded=null,Object.keys(i.range).length?(i.buffered=!0,(i.body.endList=n.endList||i.body.endList)&&(this.endListFragments[i.body.type]=i),tQ(i)||this.removeParts(n.sn-1,n.type)):this.removeFragment(i.body)}removeParts(e,t){let n=this.activePartLists[t];n&&(this.activePartLists[t]=tG(n,t=>t.fragment.sn>=e))}fragBuffered(e,t){let n=tH(e),r=this.fragments[n];!r&&t&&(r=this.fragments[n]={body:e,appendedPTS:null,loaded:null,buffered:!1,range:Object.create(null)},e.gap&&(this.hasGaps=!0)),r&&(r.loaded=null,r.buffered=!0)}getBufferedTimes(e,t,n,r){let i={time:[],partial:n},a=e.start,o=e.end,s=e.minEndPTS||o,l=e.maxStartPTS||a;for(let e=0;e<r.length;e++){let t=r.start(e)-this.bufferPadding,n=r.end(e)+this.bufferPadding;if(l>=t&&s<=n){i.time.push({startPTS:Math.max(a,r.start(e)),endPTS:Math.min(o,r.end(e))});break}if(a<n&&o>t){let t=Math.max(a,r.start(e)),n=Math.min(o,r.end(e));n>t&&(i.partial=!0,i.time.push({startPTS:t,endPTS:n}))}else if(o<=t)break}return i}getPartialFragment(e){let t,n,r,i=null,a=0,{bufferPadding:o,fragments:s}=this;return Object.keys(s).forEach(l=>{let u=s[l];u&&tQ(u)&&(n=u.body.start-o,r=u.body.end+o,e>=n&&e<=r&&a<=(t=Math.min(e-n,r-e))&&(i=u.body,a=t))}),i}isEndListAppended(e){let t=this.endListFragments[e];return void 0!==t&&(t.buffered||tQ(t))}getState(e){let t=tH(e),n=this.fragments[t];return n?n.buffered?tQ(n)?tz.PARTIAL:tz.OK:tz.APPENDING:tz.NOT_LOADED}isTimeBuffered(e,t,n){let r,i;for(let a=0;a<n.length;a++){if(r=n.start(a)-this.bufferPadding,i=n.end(a)+this.bufferPadding,e>=r&&t<=i)return!0;if(t<=r)break}return!1}onManifestLoading(){this.removeAllFragments()}onFragLoaded(e,t){if("initSegment"===t.frag.sn||t.frag.bitrateTest)return;let n=t.frag,r=t.part?null:t,i=tH(n);this.fragments[i]={body:n,appendedPTS:null,loaded:r,buffered:!1,range:Object.create(null)}}onBufferAppended(e,t){let{frag:n,part:r,timeRanges:i,type:a}=t;if("initSegment"===n.sn)return;let o=n.type;if(r){let e=this.activePartLists[o];e||(this.activePartLists[o]=e=[]),e.push(r)}this.timeRanges=i;let s=i[a];this.detectEvictedFragments(a,s,o,r)}onFragBuffered(e,t){this.detectPartialFragments(t)}hasFragment(e){let t=tH(e);return!!this.fragments[t]}hasFragments(e){let{fragments:t}=this,n=Object.keys(t);if(!e)return n.length>0;for(let r=n.length;r--;){let i=t[n[r]];if((null==i?void 0:i.body.type)===e)return!0}return!1}hasParts(e){var t;return!!(null!=(t=this.activePartLists[e])&&t.length)}removeFragmentsInRange(e,t,n,r,i){(!r||this.hasGaps)&&Object.keys(this.fragments).forEach(a=>{let o=this.fragments[a];if(!o)return;let s=o.body;s.type===n&&(!r||s.gap)&&s.start<t&&s.end>e&&(o.buffered||i)&&this.removeFragment(s)})}removeFragment(e){let t=tH(e);e.clearElementaryStreamInfo();let n=this.activePartLists[e.type];if(n){let t=e.sn;this.activePartLists[e.type]=tG(n,e=>e.fragment.sn!==t)}delete this.fragments[t],e.endList&&delete this.endListFragments[e.type]}removeAllFragments(){var e,t;this.fragments=Object.create(null),this.endListFragments=Object.create(null),this.activePartLists=Object.create(null),this.hasGaps=!1;let n=null==(e=this.hls)?void 0:null==(t=e.latestLevelDetails)?void 0:t.partList;n&&n.forEach(e=>e.clearElementaryStreamInfo())}}function tQ(e){var t,n,r;return e.buffered&&(e.body.gap||(null==(t=e.range.video)?void 0:t.partial)||(null==(n=e.range.audio)?void 0:n.partial)||(null==(r=e.range.audiovideo)?void 0:r.partial))}function tH(e){return`${e.type}_${e.level}_${e.sn}`}function tG(e,t){return e.filter(e=>{let n=t(e);return n||e.clearElementaryStreamInfo(),n})}var tK={cbc:0,ctr:1};class t${constructor(e,t,n){this.subtle=void 0,this.aesIV=void 0,this.aesMode=void 0,this.subtle=e,this.aesIV=t,this.aesMode=n}decrypt(e,t){switch(this.aesMode){case tK.cbc:return this.subtle.decrypt({
35name:"AES-CBC",iv:this.aesIV},t,e);case tK.ctr:return this.subtle.decrypt({name:"AES-CTR",counter:this.aesIV,length:64},t,e);default:throw Error(`[AESCrypto] invalid aes mode ${this.aesMode}`)}}}class tW{constructor(){this.rcon=[0,1,2,4,8,16,32,64,128,27,54],this.subMix=[new Uint32Array(256),new Uint32Array(256),new Uint32Array(256),new Uint32Array(256)],this.invSubMix=[new Uint32Array(256),new Uint32Array(256),new Uint32Array(256),new Uint32Array(256)],this.sBox=new Uint32Array(256),this.invSBox=new Uint32Array(256),this.key=new Uint32Array(0),this.ksRows=0,this.keySize=0,this.keySchedule=void 0,this.invKeySchedule=void 0,this.initTable()}uint8ArrayToUint32Array_(e){let t=new DataView(e),n=new Uint32Array(4);for(let e=0;e<4;e++)n[e]=t.getUint32(4*e);return n}initTable(){let e=this.sBox,t=this.invSBox,n=this.subMix,r=n[0],i=n[1],a=n[2],o=n[3],s=this.invSubMix,l=s[0],u=s[1],c=s[2],d=s[3],h=new Uint32Array(256),f=0,p=0,m=0;for(m=0;m<256;m++)m<128?h[m]=m<<1:h[m]=m<<1^283;for(m=0;m<256;m++){let n=p^p<<1^p<<2^p<<3^p<<4;n=n>>>8^255&n^99,e[f]=n,t[n]=f;let s=h[f],m=h[s],g=h[m],v=257*h[n]^16843008*n;r[f]=v<<24|v>>>8,i[f]=v<<16|v>>>16,a[f]=v<<8|v>>>24,o[f]=v,v=16843009*g^65537*m^257*s^16843008*f,l[n]=v<<24|v>>>8,u[n]=v<<16|v>>>16,c[n]=v<<8|v>>>24,d[n]=v,f?(f=s^h[h[h[g^s]]],p^=h[h[p]]):f=p=1}}expandKey(e){let t,n,r,i;let a=this.uint8ArrayToUint32Array_(e),o=!0,s=0;for(;s<a.length&&o;)o=a[s]===this.key[s],s++;if(o)return;this.key=a;let l=this.keySize=a.length;if(4!==l&&6!==l&&8!==l)throw Error("Invalid aes key size="+l);let u=this.ksRows=(l+6+1)*4,c=this.keySchedule=new Uint32Array(u),d=this.invKeySchedule=new Uint32Array(u),h=this.sBox,f=this.rcon,p=this.invSubMix,m=p[0],g=p[1],v=p[2],y=p[3];for(t=0;t<u;t++){if(t<l){r=c[t]=a[t];continue}i=r,t%l==0?i=(h[(i=i<<8|i>>>24)>>>24]<<24|h[i>>>16&255]<<16|h[i>>>8&255]<<8|h[255&i])^f[t/l|0]<<24:l>6&&t%l==4&&(i=h[i>>>24]<<24|h[i>>>16&255]<<16|h[i>>>8&255]<<8|h[255&i]),c[t]=r=(c[t-l]^i)>>>0}for(n=0;n<u;n++)t=u-n,i=3&n?c[t]:c[t-4],n<4||t<=4?d[n]=i:d[n]=m[h[i>>>24]]^g[h[i>>>16&255]]^v[h[i>>>8&255]]^y[h[255&i]],d[n]=d[n]>>>0}networkToHostOrderSwap(e){return e<<24|(65280&e)<<8|(16711680&e)>>8|e>>>24}decrypt(e,t,n){let r,i,a,o,s,l,u,c,d,h,f,p,m,g;let v=this.keySize+6,y=this.invKeySchedule,b=this.invSBox,A=this.invSubMix,E=A[0],w=A[1],x=A[2],T=A[3],S=this.uint8ArrayToUint32Array_(n),_=S[0],C=S[1],k=S[2],I=S[3],L=new Int32Array(e),P=new Int32Array(L.length),O=this.networkToHostOrderSwap;for(;t<L.length;){for(g=1,d=O(L[t]),h=O(L[t+1]),f=O(L[t+2]),p=O(L[t+3]),s=d^y[0],l=p^y[1],u=f^y[2],c=h^y[3],m=4;g<v;g++)r=E[s>>>24]^w[l>>16&255]^x[u>>8&255]^T[255&c]^y[m],i=E[l>>>24]^w[u>>16&255]^x[c>>8&255]^T[255&s]^y[m+1],a=E[u>>>24]^w[c>>16&255]^x[s>>8&255]^T[255&l]^y[m+2],o=E[c>>>24]^w[s>>16&255]^x[l>>8&255]^T[255&u]^y[m+3],s=r,l=i,u=a,c=o,m+=4;r=b[s>>>24]<<24^b[l>>16&255]<<16^b[u>>8&255]<<8^b[255&c]^y[m],i=b[l>>>24]<<24^b[u>>16&255]<<16^b[c>>8&255]<<8^b[255&s]^y[m+1],a=b[u>>>24]<<24^b[c>>16&255]<<16^b[s>>8&255]<<8^b[255&l]^y[m+2],o=b[c>>>24]<<24^b[s>>16&255]<<16^b[l>>8&255]<<8^b[255&u]^y[m+3],P[t]=O(r^_),P[t+1]=O(o^C),P[t+2]=O(a^k),P[t+3]=O(i^I),_=d,C=h,k=f,I=p,t+=4}return P.buffer}}class tZ{constructor(e,t,n){this.subtle=void 0,this.key=void 0,this.aesMode=void 0,this.subtle=e,this.key=t,this.aesMode=n}expandKey(){let e=function(e){switch(e){case tK.cbc:return"AES-CBC";case tK.ctr:return"AES-CTR";default:throw Error(`[FastAESKey] invalid aes mode ${e}`)}}(this.aesMode);return this.subtle.importKey("raw",this.key,{name:e},!1,["encrypt","decrypt"])}}class tY{constructor(e,{removePKCS7Padding:t=!0}={}){if(this.logEnabled=!0,this.removePKCS7Padding=void 0,this.subtle=null,this.softwareDecrypter=null,this.key=null,this.fastAesKey=null,this.remainderData=null,this.currentIV=null,this.currentResult=null,this.useSoftware=void 0,this.enableSoftwareAES=void 0,this.enableSoftwareAES=e.enableSoftwareAES,this.removePKCS7Padding=t,t)try{let e=self.crypto;e&&(this.subtle=e.subtle||e.webkitSubtle)}catch(e){}this.useSoftware=!this.subtle}destroy(){this.subtle=null,this.softwareDecrypter=null,this.key=null,this.fastAesKey=null,this.remainderData=null,this.currentIV=null,this.currentResult=null}isSync(){return this.useSoftware}flush(){let{currentResult:e,remainderData:t}=this;if(!e||t)return this.reset(),null;let n=new Uint8Array(e);return(this.reset(),this.removePKCS7Padding)?function(e){let t=e.byteLength,n=t&&new DataView(e.buffer).getUint8(t-1);return n?e.slice(0,t-n):e}(n):n}reset(){this.currentResult=null,this.currentIV=null,this.remainderData=null,this.softwareDecrypter&&(this.softwareDecrypter=null)}decrypt(e,t,n,r){return this.useSoftware?new Promise((i,a)=>{let o=ArrayBuffer.isView(e)?e:new Uint8Array(e);this.softwareDecrypt(o,t,n,r);let s=this.flush();s?i(s.buffer):a(Error("[softwareDecrypt] Failed to decrypt data"))}
35):this.webCryptoDecrypt(new Uint8Array(e),t,n,r)}softwareDecrypt(e,t,n,r){let{currentIV:i,currentResult:a,remainderData:o}=this;if(r!==tK.cbc||16!==t.byteLength)return eT.warn("SoftwareDecrypt: can only handle AES-128-CBC"),null;this.logOnce("JS AES decrypt"),o&&(e=eX(o,e),this.remainderData=null);let s=this.getValidChunk(e);if(!s.length)return null;i&&(n=i);let l=this.softwareDecrypter;return(l||(l=this.softwareDecrypter=new tW),l.expandKey(t),this.currentResult=l.decrypt(s.buffer,0,n),this.currentIV=s.slice(-16).buffer,a)?a:null}webCryptoDecrypt(e,t,n,r){if(this.key!==t||!this.fastAesKey){if(!this.subtle)return Promise.resolve(this.onWebCryptoError(e,t,n,r));this.key=t,this.fastAesKey=new tZ(this.subtle,t,r)}return this.fastAesKey.expandKey().then(t=>this.subtle?(this.logOnce("WebCrypto AES decrypt"),new t$(this.subtle,new Uint8Array(n),r).decrypt(e.buffer,t)):Promise.reject(Error("web crypto not initialized"))).catch(i=>(eT.warn(`[decrypter]: WebCrypto Error, disable WebCrypto API, ${i.name}: ${i.message}`),this.onWebCryptoError(e,t,n,r)))}onWebCryptoError(e,t,n,r){let i=this.enableSoftwareAES;if(i){this.useSoftware=!0,this.logEnabled=!0,this.softwareDecrypt(e,t,n,r);let i=this.flush();if(i)return i.buffer}throw Error("WebCrypto"+(i?" and softwareDecrypt":"")+": failed to decrypt data")}getValidChunk(e){let t=e,n=e.length-e.length%16;return n!==e.length&&(t=e.slice(0,n),this.remainderData=e.slice(n)),t}logOnce(e){this.logEnabled&&(eT.log(`[decrypter]: ${e}`),this.logEnabled=!1)}}class tX{constructor(e){this.config=void 0,this.loader=null,this.partLoadTimeout=-1,this.config=e}destroy(){this.loader&&(this.loader.destroy(),this.loader=null)}abort(){this.loader&&this.loader.abort()}load(e,t){let n=e.url;if(!n)return Promise.reject(new t1({type:eu.NETWORK_ERROR,details:ec.FRAG_LOAD_ERROR,fatal:!1,frag:e,error:Error(`Fragment does not have a ${n?"part list":"url"}`),networkDetails:null}));this.abort();let r=this.config,i=r.fLoader,a=r.loader;return new Promise((o,s)=>{if(this.loader&&this.loader.destroy(),e.gap){if(e.tagList.some(e=>"GAP"===e[0])){s(t0(e));return}e.gap=!1}let l=this.loader=i?new i(r):new a(r),u=tJ(e);e.loader=l;let c=tM(r.fragLoadPolicy.default),d={loadPolicy:c,timeout:c.maxLoadTimeMs,maxRetry:0,retryDelay:0,maxRetryDelay:0,highWaterMark:"initSegment"===e.sn?1/0:131072};e.stats=l.stats;let h={onSuccess:(t,n,r,i)=>{this.resetLoader(e,l);let a=t.data;r.resetIV&&e.decryptdata&&(e.decryptdata.iv=new Uint8Array(a.slice(0,16)),a=a.slice(16)),o({frag:e,part:null,payload:a,networkDetails:i})},onError:(t,r,i,a)=>{this.resetLoader(e,l),s(new t1({type:eu.NETWORK_ERROR,details:ec.FRAG_LOAD_ERROR,fatal:!1,frag:e,response:ey({url:n,data:void 0},t),error:Error(`HTTP Error ${t.code} ${t.text}`),networkDetails:i,stats:a}))},onAbort:(t,n,r)=>{this.resetLoader(e,l),s(new t1({type:eu.NETWORK_ERROR,details:ec.INTERNAL_ABORTED,fatal:!1,frag:e,error:Error("Aborted"),networkDetails:r,stats:t}))},onTimeout:(t,n,r)=>{this.resetLoader(e,l),s(new t1({type:eu.NETWORK_ERROR,details:ec.FRAG_LOAD_TIMEOUT,fatal:!1,frag:e,error:Error(`Timeout after ${d.timeout}ms`),networkDetails:r,stats:t}))}};t&&(h.onProgress=(n,r,i,a)=>t({frag:e,part:null,payload:i,networkDetails:a})),l.load(u,d,h)})}loadPart(e,t,n){this.abort();let r=this.config,i=r.fLoader,a=r.loader;return new Promise((o,s)=>{if(this.loader&&this.loader.destroy(),e.gap||t.gap){s(t0(e,t));return}let l=this.loader=i?new i(r):new a(r),u=tJ(e,t);e.loader=l;let c=tM(r.fragLoadPolicy.default),d={loadPolicy:c,timeout:c.maxLoadTimeMs,maxRetry:0,retryDelay:0,maxRetryDelay:0,highWaterMark:131072};t.stats=l.stats,l.load(u,d,{onSuccess:(r,i,a,s)=>{this.resetLoader(e,l),this.updateStatsFromPart(e,t);let u={frag:e,part:t,payload:r.data,networkDetails:s};n(u),o(u)},onError:(n,r,i,a)=>{this.resetLoader(e,l),s(new t1({type:eu.NETWORK_ERROR,details:ec.FRAG_LOAD_ERROR,fatal:!1,frag:e,part:t,response:ey({url:u.url,data:void 0},n),error:Error(`HTTP Error ${n.code} ${n.text}`),networkDetails:i,stats:a}))},onAbort:(n,r,i)=>{e.stats.aborted=t.stats.aborted,this.resetLoader(e,l),s(new t1({type:eu.NETWORK_ERROR,details:ec.INTERNAL_ABORTED,fatal:!1,frag:e,part:t,error:Error("Aborted"),networkDetails:i,stats:n}))},onTimeout:(n,r,i)=>
35{this.resetLoader(e,l),s(new t1({type:eu.NETWORK_ERROR,details:ec.FRAG_LOAD_TIMEOUT,fatal:!1,frag:e,part:t,error:Error(`Timeout after ${d.timeout}ms`),networkDetails:i,stats:n}))}})})}updateStatsFromPart(e,t){let n=e.stats,r=t.stats,i=r.total;if(n.loaded+=r.loaded,i){let r=Math.round(e.duration/t.duration),a=Math.min(Math.round(n.loaded/i),r),o=(r-a)*Math.round(n.loaded/a);n.total=n.loaded+o}else n.total=Math.max(n.loaded,n.total);let a=n.loading,o=r.loading;a.start?a.first+=o.first-o.start:(a.start=o.start,a.first=o.first),a.end=o.end}resetLoader(e,t){e.loader=null,this.loader===t&&(self.clearTimeout(this.partLoadTimeout),this.loader=null),t.destroy()}}function tJ(e,t=null){let n=t||e,r={frag:e,part:t,responseType:"arraybuffer",url:n.url,headers:{},rangeStart:0,rangeEnd:0},i=n.byteRangeStartOffset,a=n.byteRangeEndOffset;if(eo(i)&&eo(a)){var o,s;let t=i,n=a;if("initSegment"===e.sn&&("AES-128"===(s=null==(o=e.decryptdata)?void 0:o.method)||"AES-256"===s)){let e=a-i;e%16&&(n=a+(16-e%16)),0!==i&&(r.resetIV=!0,t=i-16)}r.rangeStart=t,r.rangeEnd=n}return r}function t0(e,t){let n=Error(`GAP ${e.gap?"tag":"attribute"} found`),r={type:eu.MEDIA_ERROR,details:ec.FRAG_GAP,fatal:!1,frag:e,error:n,networkDetails:null};return t&&(r.part=t),(t||e).stats.aborted=!0,new t1(r)}class t1 extends Error{constructor(e){super(e.error.message),this.data=void 0,this.data=e}}class t2 extends eb{constructor(e,t){super(e,t),this._boundTick=void 0,this._tickTimer=null,this._tickInterval=null,this._tickCallCount=0,this._boundTick=this.tick.bind(this)}destroy(){this.onHandlerDestroying(),this.onHandlerDestroyed()}onHandlerDestroying(){this.clearNextTick(),this.clearInterval()}onHandlerDestroyed(){}hasInterval(){return!!this._tickInterval}hasNextTick(){return!!this._tickTimer}setInterval(e){return!this._tickInterval&&(this._tickCallCount=0,this._tickInterval=self.setInterval(this._boundTick,e),!0)}clearInterval(){return!!this._tickInterval&&(self.clearInterval(this._tickInterval),this._tickInterval=null,!0)}clearNextTick(){return!!this._tickTimer&&(self.clearTimeout(this._tickTimer),this._tickTimer=null,!0)}tick(){this._tickCallCount++,1===this._tickCallCount&&(this.doTick(),this._tickCallCount>1&&this.tickImmediate(),this._tickCallCount=0)}tickImmediate(){this.clearNextTick(),this._tickTimer=self.setTimeout(this._boundTick,0)}doTick(){}}class t3{constructor(e,t,n,r=0,i=-1,a=!1){this.level=void 0,this.sn=void 0,this.part=void 0,this.id=void 0,this.size=void 0,this.partial=void 0,this.transmuxing=t4(),this.buffering={audio:t4(),video:t4(),audiovideo:t4()},this.level=e,this.sn=t,this.id=n,this.size=r,this.part=i,this.partial=a}}function t4(){return{start:0,executeStart:0,executeEnd:0,end:0}}let t5={length:0,start:()=>0,end:()=>0};class t8{static isBuffered(e,t){if(e){let n=t8.getBuffered(e);for(let e=n.length;e--;)if(t>=n.start(e)&&t<=n.end(e))return!0}return!1}static bufferedRanges(e){if(e){let t=t8.getBuffered(e);return t8.timeRangesToArray(t)}return[]}static timeRangesToArray(e){let t=[];for(let n=0;n<e.length;n++)t.push({start:e.start(n),end:e.end(n)});return t}static bufferInfo(e,t,n){if(e){let r=t8.bufferedRanges(e);if(r.length)return t8.bufferedInfo(r,t,n)}return{len:0,start:t,end:t,bufferedIndex:-1}}static bufferedInfo(e,t,n){let r;t=Math.max(0,t),e.length>1&&e.sort((e,t)=>e.start-t.start||t.end-e.end);let i=-1,a=[];if(n)for(let r=0;r<e.length;r++){t>=e[r].start&&t<=e[r].end&&(i=r);let o=a.length;if(o){let t=a[o-1].end;e[r].start-t<n?e[r].end>t&&(a[o-1].end=e[r].end):a.push(e[r])}else a.push(e[r])}else a=e;let o=0,s=t,l=t;for(let e=0;e<a.length;e++){let u=a[e].start,c=a[e].end;if(-1===i&&t>=u&&t<=c&&(i=e),t+n>=u&&t<c)s=u,o=(l=c)-t;else if(t+n<u){r=u;break}}return{len:o,start:s||0,end:l||0,nextStart:r,buffered:e,bufferedIndex:i}}static getBuffered(e){try{return e.buffered||t5}catch(e){return eT.log("failed to get media.buffered",e),t5}}}let t6=/\{\$([a-zA-Z0-9-_]+)\}/g;function t9(e,t){if(null!==e.variableList||e.hasVariableRefs){let n=e.variableList;return t.replace(t6,t=>{let r=t.substring(2,t.length-1),i=null==n?void 0:n[r];return void 0===i?(e.playlistParsingError||(e.playlistParsingError=Error(`Missing preceding EXT-X-DEFINE tag for Variable Reference: "${r}"`)),t):i})}return t}function t7(e,t,n){let r,i,a=e.variableList;if(a||(e.variableList=a={}),"QUERYPARAM"in t){r=t.QUERYPARAM;try{let e=new self.URL(n).searchParams;if(e.has(r))i=e.get(r);else throw Error(`"${r}" does not match any query parameter in URI: "${n}"`)}catch(t){e.playlistParsingError||(e.playlistParsingError=Error(`EXT-X-DEFINE QUERYPARAM: ${t.message}`))}}else r=t.NAME,i=t.VALUE;r in a?e.playlistParsingError||(e.playlistParsingError=Error(`EXT-X-DEFINE duplicate Variable Name declarations: "${r}"`)):a[r]=i||""}let ne=/^(\d+)x(\d+)$/,nt=/(.+?)=(".*?"|.*?)(?:,|$)/g;class nn{constructor(e,t){"string"==typeof e&&(e=nn.parseAttrList(e,t)),eg(this,e)}get clientAttrs(){return Object.keys(this).filter(e=>"X-"===e.substring(0,2))}decimalInteger(e){let t=parseInt(this[e],10);return t>Number.MAX_SAFE_INTEGER?1/0:t}hexadecimalInteger(e){if(this[e]){let t=(this[e]||"0x").slice(2);t=(1&t.length?"0":"")+t;let n=new Uint8Array(t.length/2);for(let e=0;e<t.length/2;e++)n[e]=parseInt(t.slice(2*e,2*e+2),16);return n}return null}hexadecimalIntegerAsNumber(e){let t=parseInt(this[e],16);return t>Number.MAX_SAFE_INTEGER?1/0:t}decimalFloatingPoint(e){return parseFloat(this[e])}optionalFloat(e,t){let n=this[e];return n?parseFloat(n):t}enumeratedString(e){return this[e]}enumeratedStringList(e,t){let n=this[e];return(n?n.split(/[ ,]+/):[]).reduce((e,t)=>
35(e[t.toLowerCase()]=!0,e),t)}bool(e){return"YES"===this[e]}decimalResolution(e){let t=ne.exec(this[e]);if(null!==t)return{width:parseInt(t[1],10),height:parseInt(t[2],10)}}static parseAttrList(e,t){let n;let r={};for(nt.lastIndex=0;null!==(n=nt.exec(e));){let i=n[1].trim(),a=n[2],o=0===a.indexOf('"')&&a.lastIndexOf('"')===a.length-1,s=!1;if(o)a=a.slice(1,-1);else switch(i){case"IV":case"SCTE35-CMD":case"SCTE35-IN":case"SCTE35-OUT":s=!0}if(t&&(o||s))a=t9(t,a);else if(!s&&!o)switch(i){case"CLOSED-CAPTIONS":if("NONE"===a)break;case"ALLOWED-CPC":case"CLASS":case"ASSOC-LANGUAGE":case"AUDIO":case"BYTERANGE":case"CHANNELS":case"CHARACTERISTICS":case"CODECS":case"DATA-ID":case"END-DATE":case"GROUP-ID":case"ID":case"IMPORT":case"INSTREAM-ID":case"KEYFORMAT":case"KEYFORMATVERSIONS":case"LANGUAGE":case"NAME":case"PATHWAY-ID":case"QUERYPARAM":case"RECENTLY-REMOVED-DATERANGES":case"SERVER-URI":case"STABLE-RENDITION-ID":case"STABLE-VARIANT-ID":case"START-DATE":case"SUBTITLES":case"SUPPLEMENTAL-CODECS":case"URI":case"VALUE":case"VIDEO":case"X-ASSET-LIST":case"X-ASSET-URI":eT.warn(`${e}: attribute ${i} is missing quotes`)}r[i]=a}return r}}class nr{constructor(e,t,n=0){var r;if(this.attr=void 0,this.tagAnchor=void 0,this.tagOrder=void 0,this._startDate=void 0,this._endDate=void 0,this._dateAtEnd=void 0,this._cue=void 0,this._badValueForSameId=void 0,this.tagAnchor=(null==t?void 0:t.tagAnchor)||null,this.tagOrder=null!=(r=null==t?void 0:t.tagOrder)?r:n,t){let n=t.attr;for(let t in n)if(Object.prototype.hasOwnProperty.call(e,t)&&e[t]!==n[t]){eT.warn(`DATERANGE tag attribute: "${t}" does not match for tags with ID: "${e.ID}"`),this._badValueForSameId=t;break}e=eg(new nn({}),n,e)}if(this.attr=e,t?(this._startDate=t._startDate,this._cue=t._cue,this._endDate=t._endDate,this._dateAtEnd=t._dateAtEnd):this._startDate=new Date(e["START-DATE"]),"END-DATE"in this.attr){let e=(null==t?void 0:t.endDate)||new Date(this.attr["END-DATE"]);eo(e.getTime())&&(this._endDate=e)}}get id(){return this.attr.ID}get class(){return this.attr.CLASS}get cue(){let e=this._cue;return void 0===e?this._cue=this.attr.enumeratedStringList(this.attr.CUE?"CUE":"X-CUE",{pre:!1,post:!1,once:!1}):e}get startTime(){let{tagAnchor:e}=this;return null===e||null===e.programDateTime?(eT.warn(`Expected tagAnchor Fragment with PDT set for DateRange "${this.id}": ${e}`),NaN):e.start+(this.startDate.getTime()-e.programDateTime)/1e3}get startDate(){return this._startDate}get endDate(){let e=this._endDate||this._dateAtEnd;if(e)return e;let t=this.duration;return null!==t?this._dateAtEnd=new Date(this._startDate.getTime()+1e3*t):null}get duration(){if("DURATION"in this.attr){let e=this.attr.decimalFloatingPoint("DURATION");if(eo(e))return e}else if(this._endDate)return(this._endDate.getTime()-this._startDate.getTime())/1e3;return null}get plannedDuration(){return"PLANNED-DURATION"in this.attr?this.attr.decimalFloatingPoint("PLANNED-DURATION"):null}get endOnNext(){return this.attr.bool("END-ON-NEXT")}get isInterstitial(){return"com.apple.hls.interstitial"===this.class}get isValid(){return!!this.id&&!this._badValueForSameId&&eo(this.startDate.getTime())&&(null===this.duration||this.duration>=0)&&(!this.endOnNext||!!this.class)&&(!this.attr.CUE||!this.cue.pre&&!this.cue.post||this.cue.pre!==this.cue.post)&&(!this.isInterstitial||"X-ASSET-URI"in this.attr||"X-ASSET-LIST"in this.attr)}}class ni{constructor(e){this.PTSKnown=!1,this.alignedSliding=!1,this.averagetargetduration=void 0,this.endCC=0,this.endSN=0,this.fragments=void 0,this.fragmentHint=void 0,this.partList=null,this.dateRanges=void 0,this.dateRangeTagCount=0,this.live=!0,this.requestScheduled=-1,this.ageHeader=0,this.advancedDateTime=void 0,this.updated=!0,this.advanced=!0,this.misses=0,this.startCC=0,this.startSN=0,this.startTimeOffset=null,this.targetduration=0,this.totalduration=0,this.type=null,this.url=void 0,this.m3u8="",this.version=null,this.canBlockReload=!1,this.canSkipUntil=0,this.canSkipDateRanges=!1,this.skippedSegments=0,this.recentlyRemovedDateranges=void 0,this.partHoldBack=0,this.holdBack=0,this.partTarget=0,this.preloadHint=void 0,this.renditionReports=void 0,this.tuneInGoal=0,this.deltaUpdateFailed=void 0,this.drift
35StartTime=0,this.driftEndTime=0,this.driftStart=0,this.driftEnd=0,this.encryptedFragments=void 0,this.playlistParsingError=null,this.variableList=null,this.hasVariableRefs=!1,this.appliedTimelineOffset=void 0,this.fragments=[],this.encryptedFragments=[],this.dateRanges={},this.url=e}reloaded(e){if(!e){this.advanced=!0,this.updated=!0;return}let t=this.lastPartSn-e.lastPartSn,n=this.lastPartIndex-e.lastPartIndex;this.updated=this.endSN!==e.endSN||!!n||!!t||!this.live,this.advanced=this.endSN>e.endSN||t>0||0===t&&n>0,this.updated||this.advanced?this.misses=Math.floor(.6*e.misses):this.misses=e.misses+1}get hasProgramDateTime(){return!!this.fragments.length&&eo(this.fragments[this.fragments.length-1].programDateTime)}get levelTargetDuration(){return this.averagetargetduration||this.targetduration||10}get drift(){let e=this.driftEndTime-this.driftStartTime;return e>0?1e3*(this.driftEnd-this.driftStart)/e:1}get edge(){return this.partEnd||this.fragmentEnd}get partEnd(){var e;return null!=(e=this.partList)&&e.length?this.partList[this.partList.length-1].end:this.fragmentEnd}get fragmentEnd(){var e;return null!=(e=this.fragments)&&e.length?this.fragments[this.fragments.length-1].end:0}get fragmentStart(){var e;return null!=(e=this.fragments)&&e.length?this.fragments[0].start:0}get age(){return this.advancedDateTime?Math.max(Date.now()-this.advancedDateTime,0)/1e3:0}get lastPartIndex(){var e;return null!=(e=this.partList)&&e.length?this.partList[this.partList.length-1].index:-1}get maxPartIndex(){let e=this.partList;if(e){let t=this.lastPartIndex;if(-1!==t){for(let n=e.length;n--;)if(e[n].index>t)return e[n].index;return t}}return 0}get lastPartSn(){var e;return null!=(e=this.partList)&&e.length?this.partList[this.partList.length-1].fragment.sn:this.endSN}get expired(){if(this.live&&this.age&&this.misses<3){let e=this.partEnd-this.fragmentStart;return this.age>Math.max(e,this.totalduration)+this.levelTargetDuration}return!1}}function na(e){return"AES-128"===e||"AES-256"===e||"AES-256-CTR"===e}function no(e){switch(e){case"AES-128":case"AES-256":return tK.cbc;case"AES-256-CTR":return tK.ctr;default:throw Error(`invalid full segment method ${e}`)}}function ns(e){return Uint8Array.from(atob(e),e=>e.charCodeAt(0))}function nl(e){return Uint8Array.from(unescape(encodeURIComponent(e)),e=>e.charCodeAt(0))}let nu="undefined"!=typeof self?self:void 0;var nc={CLEARKEY:"org.w3.clearkey",FAIRPLAY:"com.apple.fps",PLAYREADY:"com.microsoft.playready",WIDEVINE:"com.widevine.alpha"},nd={CLEARKEY:"org.w3.clearkey",FAIRPLAY:"com.apple.streamingkeydelivery",PLAYREADY:"com.microsoft.playready",WIDEVINE:"urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed"};function nh(e){switch(e){case nd.FAIRPLAY:return nc.FAIRPLAY;case nd.PLAYREADY:return nc.PLAYREADY;case nd.WIDEVINE:return nc.WIDEVINE;case nd.CLEARKEY:return nc.CLEARKEY}}var nf={CENC:"1077efecc0b24d02ace33c1e52e2fb4b",CLEARKEY:"e2719d58a985b3c9781ab030af78d30e",PLAYREADY:"9a04f07998404286ab92e65be0885f95",WIDEVINE:"edef8ba979d64acea3c827dcd51d21ed"};function np(e){return e===nf.WIDEVINE?nc.WIDEVINE:e===nf.PLAYREADY?nc.PLAYREADY:e===nf.CENC||e===nf.CLEARKEY?nc.CLEARKEY:void 0}function nm(e){switch(e){case nc.FAIRPLAY:return nd.FAIRPLAY;case nc.PLAYREADY:return nd.PLAYREADY;case nc.WIDEVINE:return nd.WIDEVINE;case nc.CLEARKEY:return nd.CLEARKEY}}function ng(e){let{drmSystems:t,widevineLicenseUrl:n}=e,r=t?[nc.FAIRPLAY,nc.WIDEVINE,nc.PLAYREADY,nc.CLEARKEY].filter(e=>!!t[e]):[];return!r[nc.WIDEVINE]&&n&&r.push(nc.WIDEVINE),r}let nv=null!=nu&&null!=(w=nu.navigator)&&w.requestMediaKeySystemAccess?self.navigator.requestMediaKeySystemAccess.bind(self.navigator):null;function ny(e){let t=new Uint16Array(e.buffer,e.byteOffset,e.byteLength/2),n=String.fromCharCode.apply(null,Array.from(t)),r=n.substring(n.indexOf("<"),n.length),i=new DOMParser().parseFromString(r,"text/xml").getElementsByTagName("KID")[0];if(i){let e=i.childNodes[0]?i.childNodes[0].nodeValue:i.getAttribute("VALUE");if(e){let t=ns(e).subarray(0,16);return!function(e){let t=function(e,t,n){let r=e[t];e[t]=e[n],e[n]=r};t(e,0,3),t(e,1,2),t(e,4,5),t(e,6,7)}(t),t}}return null}let nb={};class nA{static clearKeyUriToKeyIdMap(){nb={}}constructor(e,t,n,r=[1],i=null){this.uri=void 0,this.method=void 0,this.keyFormat=void 0,this.keyFormatVersions=void 0,this.encrypted=void 0,this.isCommonEncryption=void 0,this.iv=null,this.key=null,this.keyId=null,this.pss
35h=null,this.method=e,this.uri=t,this.keyFormat=n,this.keyFormatVersions=r,this.iv=i,this.encrypted=!!e&&"NONE"!==e,this.isCommonEncryption=this.encrypted&&!na(e)}isSupported(){if(this.method){if(na(this.method)||"NONE"===this.method)return!0;if("identity"===this.keyFormat)return"SAMPLE-AES"===this.method;switch(this.keyFormat){case nd.FAIRPLAY:case nd.WIDEVINE:case nd.PLAYREADY:case nd.CLEARKEY:return -1!==["ISO-23001-7","SAMPLE-AES","SAMPLE-AES-CENC","SAMPLE-AES-CTR"].indexOf(this.method)}}return!1}getDecryptData(e){if(!this.encrypted||!this.uri)return null;if(na(this.method)&&this.uri&&!this.iv){"number"!=typeof e&&(eT.warn(`missing IV for initialization segment with method="${this.method}" - compliance issue`),e=0);let t=function(e){let t=new Uint8Array(16);for(let n=12;n<16;n++)t[n]=e>>8*(15-n)&255;return t}(e);return new nA(this.method,this.uri,"identity",this.keyFormatVersions,t)}let t=function(e){let t=e.split(":"),n=null;if("data"===t[0]&&2===t.length){let e=t[1].split(";"),r=e[e.length-1].split(",");if(2===r.length){let t="base64"===r[0],i=r[1];t?(e.splice(-1,1),n=ns(i)):n=function(e){let t=nl(e).subarray(0,16),n=new Uint8Array(16);return n.set(t,16-t.length),n}(i)}}return n}(this.uri);if(t)switch(this.keyFormat){case nd.WIDEVINE:this.pssh=t,t.length>=22&&(this.keyId=t.subarray(t.length-22,t.length-6));break;case nd.PLAYREADY:{let e=new Uint8Array([154,4,240,121,152,64,66,134,171,146,230,91,224,136,95,149]);this.pssh=function(e,t,n){let r,i;if(16!==e.byteLength)throw RangeError("Invalid system id");r=new Uint8Array,i=new Uint8Array;let a=new Uint8Array(4);return n&&n.byteLength>0&&new DataView(a.buffer).setUint32(0,n.byteLength,!1),function(e,...t){let n=t.length,r=8,i=n;for(;i--;)r+=t[i].byteLength;let a=new Uint8Array(r);for(a[0]=r>>24&255,a[1]=r>>16&255,a[2]=r>>8&255,a[3]=255&r,a.set(e,4),i=0,r=8;i<n;i++)a.set(t[i],r),r+=t[i].byteLength;return a}([112,115,115,104],new Uint8Array([0,0,0,0]),e,i,r,a,n||new Uint8Array)}(e,0,t),this.keyId=ny(t);break}default:{let e=t.subarray(0,16);if(16!==e.length){let t=new Uint8Array(16);t.set(e,16-e.length),e=t}this.keyId=e}}if(!this.keyId||16!==this.keyId.byteLength){let e=nb[this.uri];if(!e){let t=Object.keys(nb).length%Number.MAX_SAFE_INTEGER;e=new Uint8Array(16),new DataView(e.buffer,12,4).setUint32(0,t),nb[this.uri]=e}this.keyId=e}return this}}let nE=/#EXT-X-STREAM-INF:([^\r\n]*)(?:[\r\n](?:#[^\r\n]*)?)*([^\r\n]+)|#EXT-X-(SESSION-DATA|SESSION-KEY|DEFINE|CONTENT-STEERING|START):([^\r\n]*)[\r\n]+/g,nw=/#EXT-X-MEDIA:(.*)/g,nx=/^#EXT(?:INF|-X-TARGETDURATION):/m,nT=RegExp([/#EXTINF:\s*(\d*(?:\.\d+)?)(?:,(.*)\s+)?/.source,/(?!#) *(\S[^\r\n]*)/.source,/#.*/.source].join("|"),"g"),nS=new RegExp([/#EXT-X-(PROGRAM-DATE-TIME|BYTERANGE|DATERANGE|DEFINE|KEY|MAP|PART|PART-INF|PLAYLIST-TYPE|PRELOAD-HINT|RENDITION-REPORT|SERVER-CONTROL|SKIP|START):(.+)/.source,/#EXT-X-(BITRATE|DISCONTINUITY-SEQUENCE|MEDIA-SEQUENCE|TARGETDURATION|VERSION): *(\d+)/.source,/#EXT-X-(DISCONTINUITY|ENDLIST|GAP|INDEPENDENT-SEGMENTS)/.source,/(#)([^:]*):(.*)/.source,/(#)(.*)(?:.*)\r?\n?/.source].join("|"));class n_{static findGroup(e,t){for(let n=0;n<e.length;n++){let r=e[n];if(r.id===t)return r}}static resolve(e,t){return eL.buildAbsoluteURL(t,e,{alwaysNormalize:!0})}static isMediaPlaylist(e){return nx.test(e)}static parseMasterPlaylist(e,t){var n;let r;let i={contentSteering:null,levels:[],playlistParsingError:null,sessionData:null,sessionKeys:null,startTimeOffset:null,variableList:null,hasVariableRefs:t6.test(e)},a=[];for(nE.lastIndex=0;null!=(r=nE.exec(e));)if(r[1]){let e=new nn(r[1],i),o=t9(i,r[2]),s={attrs:e,bitrate:e.decimalInteger("BANDWIDTH")||e.decimalInteger("AVERAGE-BANDWIDTH"),name:e.NAME,url:n_.resolve(o,t)},l=e.decimalResolution("RESOLUTION");l&&(s.width=l.width,s.height=l.height),nL(e.CODECS,s);let u=e["SUPPLEMENTAL-CODECS"];u&&(s.supplemental={},nL(u,s.supplemental)),null!=(n=s.unknownCodecs)&&n.length||a.push(s),i.levels.push(s)}else if(r[3]){let e=r[3],n=r[4];switch(e){case"SESSION-DATA":{let e=new nn(n,i),t=e["DATA-ID"];t&&(null===i.sessionData&&(i.sessionData={}),i.sessionData[t]=e);break}case"SESSION-KEY":{let e=nk(n,t,i);e.encrypted&&e.isSupported()?(null===i.sessionKeys&&(i.sessionKeys=[]),i.sessionKeys.push(e)):eT.warn(`[Keys] Ignoring invalid EXT-X-SESSION-KEY tag: "${n}"`);break}case"DEFINE":{let e=new nn(n,i);t7(i,e,t)}break;case"CONTENT-STEERING":{let e=new nn(n,i);i.contentSteering={uri:n_.resolve(e["SERVER-URI"],t),pathwayId:e["PATHWAY-ID"]||"."};break}case"START":i.startTimeOffset=nI(n)}}let o=a.length>0&&a.length<i.levels.length;return i.levels=o?a:i.levels,0===i.levels.length&&(i.playlistParsingError=Error("no levels found in manifest")),i}
35static parseMasterPlaylistMedia(e,t,n){let r;let i={},a=n.levels,o={AUDIO:a.map(e=>({id:e.attrs.AUDIO,audioCodec:e.audioCodec})),SUBTITLES:a.map(e=>({id:e.attrs.SUBTITLES,textCodec:e.textCodec})),"CLOSED-CAPTIONS":[]},s=0;for(nw.lastIndex=0;null!==(r=nw.exec(e));){let e=new nn(r[1],n),a=e.TYPE;if(a){let n=o[a],r=i[a]||[];i[a]=r;let l=e.LANGUAGE,u=e["ASSOC-LANGUAGE"],c=e.CHANNELS,d=e.CHARACTERISTICS,h=e["INSTREAM-ID"],f={attrs:e,bitrate:0,id:s++,groupId:e["GROUP-ID"]||"",name:e.NAME||l||"",type:a,default:e.bool("DEFAULT"),autoselect:e.bool("AUTOSELECT"),forced:e.bool("FORCED"),lang:l,url:e.URI?n_.resolve(e.URI,t):""};if(u&&(f.assocLang=u),c&&(f.channels=c),d&&(f.characteristics=d),h&&(f.instreamId=h),null!=n&&n.length){let e=n_.findGroup(n,f.groupId)||n[0];nP(f,e,"audioCodec"),nP(f,e,"textCodec")}r.push(f)}}return i}static parseLevelPlaylist(e,t,n,r,i,a){var o;let s,l,u,c;let d={url:t},h=new ni(t),f=h.fragments,p=[],m=null,g=0,v=0,y=0,b=0,A=0,E=null,w=new eN(r,d),x=-1,T=!1,S=null;if(nT.lastIndex=0,h.m3u8=e,h.hasVariableRefs=t6.test(e),(null==(o=nT.exec(e))?void 0:o[0])!=="#EXTM3U")return h.playlistParsingError=Error("Missing format identifier #EXTM3U"),h;for(;null!==(s=nT.exec(e));){T&&(T=!1,(w=new eN(r,d)).playlistOffset=y,w.start=y,w.sn=g,w.cc=b,A&&(w.bitrate=A),w.level=n,m&&(w.initSegment=m,m.rawProgramDateTime&&(w.rawProgramDateTime=m.rawProgramDateTime,m.rawProgramDateTime=null),S&&(w.setByteRange(S),S=null)));let e=s[1];if(e){w.duration=parseFloat(e);let t=(" "+s[2]).slice(1);w.title=t||null,w.tagList.push(t?["INF",e,t]:["INF",e])}else if(s[3]){if(eo(w.duration)){w.playlistOffset=y,w.start=y,u&&nD(w,u,h),w.sn=g,w.level=n,w.cc=b,f.push(w);let e=(" "+s[3]).slice(1);w.relurl=t9(h,e),nO(w,E,p),E=w,y+=w.duration,g++,v=0,T=!0}}else{if(!(s=s[0].match(nS))){eT.warn("No matches on slow regex match for level playlist!");continue}for(l=1;l<s.length&&void 0===s[l];l++);let e=(" "+s[l]).slice(1),i=(" "+s[l+1]).slice(1),o=s[l+2]?(" "+s[l+2]).slice(1):null;switch(e){case"BYTERANGE":E?w.setByteRange(i,E):w.setByteRange(i);break;case"PROGRAM-DATE-TIME":w.rawProgramDateTime=i,w.tagList.push(["PROGRAM-DATE-TIME",i]),-1===x&&(x=f.length);break;case"PLAYLIST-TYPE":h.type&&nN(h,e,s),h.type=i.toUpperCase();break;case"MEDIA-SEQUENCE":0!==h.startSN?nN(h,e,s):f.length>0&&nM(h,e,s),g=h.startSN=parseInt(i);break;case"SKIP":{h.skippedSegments&&nN(h,e,s);let t=new nn(i,h),n=t.decimalInteger("SKIPPED-SEGMENTS");if(eo(n)){h.skippedSegments+=n;for(let e=n;e--;)f.push(null);g+=n}let r=t.enumeratedString("RECENTLY-REMOVED-DATERANGES");r&&(h.recentlyRemovedDateranges=(h.recentlyRemovedDateranges||[]).concat(r.split("	")));break}case"TARGETDURATION":0!==h.targetduration&&nN(h,e,s),h.targetduration=Math.max(parseInt(i),1);break;case"VERSION":null!==h.version&&nN(h,e,s),h.version=parseInt(i);break;case"INDEPENDENT-SEGMENTS":break;case"ENDLIST":h.live||nN(h,e,s),h.live=!1;break;case"#":(i||o)&&w.tagList.push(o?[i,o]:[i]);break;case"DISCONTINUITY":b++,w.tagList.push(["DIS"]);break;case"GAP":w.gap=!0,w.tagList.push([e]);break;case"BITRATE":w.tagList.push([e,i]),eo(A=1e3*parseInt(i))?w.bitrate=A:A=0;break;case"DATERANGE":{let e=new nn(i,h),t=new nr(e,h.dateRanges[e.ID],h.dateRangeTagCount);h.dateRangeTagCount++,t.isValid||h.skippedSegments?h.dateRanges[t.id]=t:eT.warn(`Ignoring invalid DATERANGE tag: "${i}"`),w.tagList.push(["EXT-X-DATERANGE",i]);break}case"DEFINE":{let e=new nn(i,h);"IMPORT"in e?function(e,t,n){let r=t.IMPORT;if(n&&r in n){let t=e.variableList;t||(e.variableList=t={}),t[r]=n[r]}else e.playlistParsingError||(e.playlistParsingError=Error(`EXT-X-DEFINE IMPORT attribute not found in Multivariant Playlist: "${r}"`))}(h,e,a):t7(h,e,t)}break;case"DISCONTINUITY-SEQUENCE":0!==h.startCC?nN(h,e,s):f.length>0&&nM(h,e,s),h.startCC=b=parseInt(i);break;case"KEY":{let e=nk(i,t,h);if(e.isSupported()){if("NONE"===e.method){u=void 0;break}u||(u={}),u[e.keyFormat]&&(u=eg({},u)),u[e.keyFormat]=e}else eT.warn(`[Keys] Ignoring invalid EXT-X-KEY tag: "${i}"`);break}case"START":h.startTimeOffset=nI(i);break;case"MAP":{let e=new nn(i,h);if(w.duration){let t=new eN(r,d);nR(t,e,n,u),m=t,w.initSegment=m,m.rawProgramDateTime&&!w.rawProgramDateTime&&(w.rawProgramDateTime=m.rawProgramDateTime)}else{let t=w.byteRangeEndOffset;if(t){let e=w.byteRangeStartOffset;S=`${t-e}@${e}`}else S=null;nR(w,e,n,u),m=w,T=!0}m.cc=b;break}case"SERVER-CONTROL":c&&nN(h,e,s),c=new nn(i),h.canBlockReload=c.bool("CAN-BLOCK-RELOAD"),h.canSkipUntil=c.optionalFloat("CAN-SKIP-UNTIL",0),h.canSkipDateRanges=h.canSkipUntil>0&&c.bool("CAN-SKIP-DATERANGES"),h.partHoldBack=c.optionalFloat("PART-HOLD-BACK",0),h.holdBack=c.optionalFloat("HOLD-BACK",0);break;case"PART-INF":{h.partTarget&&nN(h,e,s);let t=new nn(i);h.partTarget=t.decimalFloatingPoint("PART-TARGET");break}case"PART":{let e=h.partList;e||(e=h.partList=[]);let t=v>0?e[e.length-1]:void 0,n=v++,r=new eM(new nn(i,h),w,d,n,t);e.push(r),w.duration+=r.duration;break}case"PRELOAD-HINT":{let e=new nn(i,h);h.preloadHint=e;break}case"RENDITION-REPORT":{let e=new nn(i,h);h.renditionReports=h.renditionReports||[],h.renditionReports.push(e);break}default:eT.warn(`line parsed but not handled: ${s}`)}}}E&&!E.relurl?(f.pop(),y-=E.duration,h.partList&&(h.fragmentHint=E)):h.partList&&(nO(w,E,p),w.cc=b,h.fragmentHint=w,u&&nD(w,u,h)),h.targetduration||(h.playlistParsingError=Error("#EXT-X-TARGETDURATION is required"));let _=f.length,C=f[0],k=f[_-1];if((y+=h.skippedSegments*h.targetduration)>0&&_&&k){h.averagetargetduration=y/_;let e=k.sn;h.endSN="initSegment"!==e?e:0,h.live||(k.endList=!0),C&&void 0===h.startCC&&(h.startCC=C.cc),x>0&&(function(e,t){let n=e[t];for(let r=t;r--;){let t=e[r];if(!t)return;t.programDateTime=n.programDateTime-1e3*t.duration,n=t}}(f,x),C&&p.unshift(C))}else h.endSN=0,h.startCC=0;return h.fragmentHint&&(y+=h.fragmentHint.duration),h.totalduration=y,p.length&&h.dateRangeTagCount&&C&&nC(p,h),h.endCC=b,h}}function nC(e,t){let n=e.length,r=e[n-1],i=t.live?1/0:t.totalduration,a=Object.keys(t.dateRanges);for(let o=a.length;o--;){let s=t.dateRanges[a[o]],l=s.startDate.getTime();s.tagAnchor=r.ref;for(let r=n;r--;){let n=function(e,t,n,r,i){let a=n[r];if(a){let s=a.programDateTime;if(t>=s||0===r){var o;if(t<=s+1e3*(((null==(o=n[r+1])?void 0:o.start)||i)-a.start)){let i=n[r].sn-e.startSN,a=e.fragments;if(a.length>n.length){let o=(n[r+1]||a[a.length-1]).sn-e.startSN;for(let e=o;e>i;e--){let n=a[e].programDateTime;if(t>=n&&t<n+1e3*a[e].duration)return e}}return i}}}return -1}(t,l,e,r,i);if(-1!==n){s.tagAnchor=t.fragments[n].ref;break}}}}function nk(e,t,n){var r,i;let a=new nn(e,n),o=null!=(r=a.METHOD)?r:"",s=a.URI,l=a.hexadecimalInteger("IV"),u=a.KEYFORMATVERSIONS,c=null!=(i=a.KEYFORMAT)?i:"identity";return s&&a.IV&&!l&&eT.error(`Invalid IV: ${a.IV}`),new nA(o,s?n_.resolve(s,t):"",c,(u||"1").split("/").map(Number).filter(Number.isFinite),l)}function nI(e){let t=new nn(e).decimalFloatingPoint("TIME-OFFSET");return eo(t)?t:null}function nL(e,t){let n=(e||"").split(/[ ,]+/).filter(e=>e);
35["video","audio","text"].forEach(e=>{let r=n.filter(t=>e5(t,e));r.length&&(t[`${e}Codec`]=r.map(e=>e.split("/")[0]).join(","),n=n.filter(e=>-1===r.indexOf(e)))}),t.unknownCodecs=n}function nP(e,t,n){let r=t[n];r&&(e[n]=r)}function nO(e,t,n){e.rawProgramDateTime?n.push(e):null!=t&&t.programDateTime&&(e.programDateTime=t.endProgramDateTime)}function nR(e,t,n,r){e.relurl=t.URI,t.BYTERANGE&&e.setByteRange(t.BYTERANGE),e.level=n,e.sn="initSegment",r&&(e.levelkeys=r),e.initSegment=null}function nD(e,t,n){e.levelkeys=t;let{encryptedFragments:r}=n;(!r.length||r[r.length-1].levelkeys!==t)&&Object.keys(t).some(e=>t[e].isCommonEncryption)&&r.push(e)}function nN(e,t,n){e.playlistParsingError=Error(`#EXT-X-${t} must not appear more than once (${n[0]})`)}function nM(e,t,n){e.playlistParsingError=Error(`#EXT-X-${t} must appear before the first Media Segment (${n[0]})`)}function nj(e,t){let n=t.startPTS;if(eo(n)){let r,i=0;t.sn>e.sn?(i=n-e.start,r=e):(i=e.start-n,r=t),r.duration!==i&&r.setDuration(i)}else t.sn>e.sn?e.cc===t.cc&&e.minEndPTS?t.setStart(e.start+(e.minEndPTS-e.start)):t.setStart(e.start+e.duration):t.setStart(Math.max(e.start-t.duration,0))}function nF(e,t,n,r,i,a){let o;r-n<=0&&(eT.warn("Fragment should have a positive duration",t),r=n+t.duration,a=i+t.duration);let s=n,l=r,u=t.startPTS,c=t.endPTS;if(eo(u)){let e=Math.abs(u-n);eo(t.deltaPTS)?t.deltaPTS=Math.max(e,t.deltaPTS):t.deltaPTS=e,s=Math.max(n,u),n=Math.min(n,u),i=Math.min(i,t.startDTS),l=Math.min(r,c),r=Math.max(r,c),a=Math.max(a,t.endDTS)}let d=n-t.start;0!==t.start&&t.setStart(n),t.setDuration(r-t.start),t.startPTS=n,t.maxStartPTS=s,t.startDTS=i,t.endPTS=r,t.minEndPTS=l,t.endDTS=a;let h=t.sn;if(!e||h<e.startSN||h>e.endSN)return 0;let f=h-e.startSN,p=e.fragments;for(p[f]=t,o=f;o>0;o--)nj(p[o],p[o-1]);for(o=f;o<p.length-1;o++)nj(p[o],p[o+1]);return e.fragmentHint&&nj(p[p.length-1],e.fragmentHint),e.PTSKnown=e.alignedSliding=!0,d}function nB(e,t,n,r,i){return Error(`${e} ${i.url}
36Playlist starting @${t.startSN}
37${t.m3u8}
38
39Playlist starting @${n.startSN}
40${n.m3u8}`)}function nU(e,t,n=!0){let r=t.startSN+t.skippedSegments-e.startSN,i=e.fragments,a=r>=0,o=0;if(a&&r<i.length)o=i[r].start;else if(a&&t.startSN===e.endSN+1)o=e.fragmentEnd;else if(a&&n)o=e.fragmentStart+r*t.levelTargetDuration;else{if(t.skippedSegments||0!==t.fragmentStart)return;o=e.fragmentStart}nV(t,o)}function nV(e,t){if(t){let n=e.fragments;for(let r=e.skippedSegments;r<n.length;r++)n[r].addStart(t);e.fragmentHint&&e.fragmentHint.addStart(t)}}function nz(e,t=1/0){let n=1e3*e.targetduration;if(e.updated){let r=e.fragments;if(r.length&&4*n>t){let e=1e3*r[r.length-1].duration;e<n&&(n=e)}}else n/=2;return Math.round(n)}function nq(e,t,n){if(!e)return null;let r=e.fragments[t-e.startSN];return r||(r=e.fragmentHint)&&r.sn===t?r:t<e.startSN&&n&&n.sn===t?n:null}function nQ(e,t,n){return e?nH(e.partList,t,n):null}function nH(e,t,n){if(e)for(let r=e.length;r--;){let i=e[r];if(i.index===n&&i.fragment.sn===t)return i}return null}function nG(e){e.forEach((e,t)=>{var n;null==(n=e.details)||n.fragments.forEach(e=>{e.level=t,e.initSegment&&(e.initSegment.level=t)})})}function nK(e,t){for(let r=0,i=e.length;r<i;r++){var n;if((null==(n=e[r])?void 0:n.cc)===t)return e[r]}return null}function n$(e,t){if(e){let n=e.start+t;e.start=e.startPTS=n,e.endPTS=n+e.duration}}function nW(e,t){let n=t.fragments;for(let t=0,r=n.length;t<r;t++)n$(n[t],e);t.fragmentHint&&n$(t.fragmentHint,e),t.alignedSliding=!0}function nZ(e,t){if(!t||!(e.startCC<t.endCC)||!(e.endCC>t.startCC))return;let n=Math.min(t.endCC,e.endCC),r=nK(t.fragments,n),i=nK(e.fragments,n);r&&i&&(eT.log(`Aligning playlist at start of dicontinuity sequence ${n}`),nW(r.start-i.start,e))}function nY(e,t){let n,r;if(!e.hasProgramDateTime||!t.hasProgramDateTime)return;let i=e.fragments,a=t.fragments;if(!i.length||!a.length)return;let o=Math.min(t.endCC,e.endCC);t.startCC<o&&e.startCC<o&&(n=nK(a,o),r=nK(i,o)),n&&r||(r=nK(i,(n=a[Math.floor(a.length/2)]).cc)||i[Math.floor(i.length/2)]);let s=n.programDateTime,l=r.programDateTime;s&&l&&nW((l-s)/1e3-(r.start-n.start),e)}let nX={toString:function(e){let t="",n=e.length;for(let r=0;r<n;r++)t+=`[${e.start(r).toFixed(3)}-${e.end(r).toFixed(3)}]`;return t}},nJ={STOPPED:"STOPPED",IDLE:"IDLE",KEY_LOADING:"KEY_LOADING",FRAG_LOADING:"FRAG_LOADING",FRAG_LOADING_WAITING_RETRY:"FRAG_LOADING_WAITING_RETRY",WAITING_TRACK:"WAITING_TRACK",PARSING:"PARSING",PARSED:"PARSED",ENDED:"ENDED",ERROR:"ERROR",WAITING_INIT_PTS:"WAITING_INIT_PTS",WAITING_LEVEL:"WAITING_LEVEL"};class n0 extends t2{constructor(e,t,n,r,i){super(r,e.logger),this.hls=void 0,this.fragPrevious=null,this.fragCurrent=null,this.fragmentTracker=void 0,this.transmuxer=null,this._state=nJ.STOPPED,this.playlistType=void 0,this.media=null,this.mediaBuffer=null,this.config=void 0,this.bitrateTest=!1,this.lastCurrentTime=0,this.nextLoadPosition=0,this.startPosition=0,this.startTimeOffset=null,this.retryDate=0,this.levels=null,this.fragmentLoader=void 0,this.keyLoader=void 0,this.levelLastLoaded=null,this.startFragRequested=!1,this.decrypter=void 0,this.initPTS=[],this.buffering=!0,this.loadingParts=!1,this.loopSn=void 0,this.onMediaSeeking=()=>{let{config:e,fragCurrent:t,media:n,mediaBuffer:r,state:i}=this,a=n?n.currentTime:0,o=t8.bufferInfo(r||n,a,e.maxBufferHole);if(this.log(`media seeking to ${eo(a)?a.toFixed(3):a}, state: ${i}`),this.state===nJ.ENDED)this.resetLoadingState();else if(t){let n=e.maxFragLookUpTolerance,r=t.start-n,i=t.start+t.duration+n;if(!o.len||i<o.start||r>o.end){let e=a>i;(a<r||e)&&(e&&t.loader&&(this.log("seeking outside of buffer while fragment load in progress, cancel fragment load"),t.abortRequests(),this.resetLoadingState()),this.fragPrevious=null)}}if(n&&(this.fragmentTracker.removeFragmentsInRange(a,1/0,this.playlistType,!0),a>this.lastCurrentTime&&(this.lastCurrentTime=a),!this.loadingParts)){let e=Math.max(o.end,a),t=this.shouldLoadParts(this.getLevelDetails(),e);t&&(this.log(`LL-Part loading ON after seeking to ${a.toFixed(2)} with buffer @${e.toFixed(2)}`),this.loadingParts=t)}this.hls.hasEnoughToStart||o.len||(this.log(`setting startPosition to ${a} because of seek before start`),this.nextLoadPosition=this.startPosition=a),this.tickImmediate()},this.onMediaEnded=()=>{this.log("setting startPosition to 0 because media ended"),this.startPosition=this.lastCurrentTime=0},this.playlistType=i,this.hls=e,this.fragmentLoader=new tX(e.config),this.keyLoader=n,this.fragmentTracker=t,this.config=e.config,this.decrypter=new tY(e.config)}registerListeners(){let{hls:e}=this;
40e.on(ed.MEDIA_ATTACHED,this.onMediaAttached,this),e.on(ed.MEDIA_DETACHING,this.onMediaDetaching,this),e.on(ed.MANIFEST_LOADING,this.onManifestLoading,this),e.on(ed.MANIFEST_LOADED,this.onManifestLoaded,this),e.on(ed.ERROR,this.onError,this)}unregisterListeners(){let{hls:e}=this;e.off(ed.MEDIA_ATTACHED,this.onMediaAttached,this),e.off(ed.MEDIA_DETACHING,this.onMediaDetaching,this),e.off(ed.MANIFEST_LOADING,this.onManifestLoading,this),e.off(ed.MANIFEST_LOADED,this.onManifestLoaded,this),e.off(ed.ERROR,this.onError,this)}doTick(){this.onTickEnd()}onTickEnd(){}startLoad(e){}stopLoad(){if(this.state===nJ.STOPPED)return;this.fragmentLoader.abort(),this.keyLoader.abort(this.playlistType);let e=this.fragCurrent;null!=e&&e.loader&&(e.abortRequests(),this.fragmentTracker.removeFragment(e)),this.resetTransmuxer(),this.fragCurrent=null,this.fragPrevious=null,this.clearInterval(),this.clearNextTick(),this.state=nJ.STOPPED}get startPositionValue(){let{nextLoadPosition:e,startPosition:t}=this;return -1===t&&e?e:t}get bufferingEnabled(){return this.buffering}pauseBuffering(){this.buffering=!1}resumeBuffering(){this.buffering=!0}get inFlightFrag(){return{frag:this.fragCurrent,state:this.state}}_streamEnded(e,t){if(t.live||!this.media)return!1;let n=e.end||0,r=this.config.timelineOffset||0;if(n<=r)return!1;let i=e.nextStart;if(i&&i>r&&i<t.edge||this.media.currentTime<e.start)return!1;let a=t.partList;if(null!=a&&a.length){let e=a[a.length-1];return t8.isBuffered(this.media,e.start+e.duration/2)}let o=t.fragments[t.fragments.length-1].type;return this.fragmentTracker.isEndListAppended(o)}getLevelDetails(){if(this.levels&&null!==this.levelLastLoaded){var e;return null==(e=this.levelLastLoaded)?void 0:e.details}}get timelineOffset(){let e=this.config.timelineOffset;if(e){var t;return(null==(t=this.getLevelDetails())?void 0:t.appliedTimelineOffset)||e}return 0}onMediaAttached(e,t){let n=this.media=this.mediaBuffer=t.media;n.removeEventListener("seeking",this.onMediaSeeking),n.removeEventListener("ended",this.onMediaEnded),n.addEventListener("seeking",this.onMediaSeeking),n.addEventListener("ended",this.onMediaEnded);let r=this.config;this.levels&&r.autoStartLoad&&this.state===nJ.STOPPED&&this.startLoad(r.startPosition)}onMediaDetaching(e,t){let n=!!t.transferMedia,r=this.media;if(null!==r){if(r.ended&&(this.log("MSE detaching and video ended, reset startPosition"),this.startPosition=this.lastCurrentTime=0),r.removeEventListener("seeking",this.onMediaSeeking),r.removeEventListener("ended",this.onMediaEnded),this.keyLoader&&!n&&this.keyLoader.detach(),this.media=this.mediaBuffer=null,this.loopSn=void 0,n){this.resetLoadingState(),this.resetTransmuxer();return}this.loadingParts=!1,this.fragmentTracker.removeAllFragments(),this.stopLoad()}}onManifestLoading(){this.initPTS=[],this.levels=this.levelLastLoaded=this.fragCurrent=null,this.lastCurrentTime=this.startPosition=0,this.startFragRequested=!1}onError(e,t){}onManifestLoaded(e,t){this.startTimeOffset=t.startTimeOffset}onHandlerDestroying(){this.stopLoad(),this.transmuxer&&(this.transmuxer.destroy(),this.transmuxer=null),super.onHandlerDestroying(),this.hls=this.onMediaSeeking=this.onMediaEnded=null}onHandlerDestroyed(){this.state=nJ.STOPPED,this.fragmentLoader&&this.fragmentLoader.destroy(),this.keyLoader&&this.keyLoader.destroy(),this.decrypter&&this.decrypter.destroy(),this.hls=this.log=this.warn=this.decrypter=this.keyLoader=this.fragmentLoader=this.fragmentTracker=null,super.onHandlerDestroyed()}loadFragment(e,t,n){this.startFragRequested=!0,this._loadFragForPlayback(e,t,n)}_loadFragForPlayback(e,t,n){this._doFragLoad(e,t,n,e=>{let t=e.frag;if(this.fragContextChanged(t)){this.warn(`${t.type} sn: ${t.sn}${e.part?" part: "+e.part.index:""} of ${this.fragInfo(t,!1,e.part)}) was dropped during download.`),this.fragmentTracker.removeFragment(t);return}t.stats.chunkCount++,this._handleFragmentLoadProgress(e)}).then(e=>{if(!e)return;let t=this.state,n=e.frag;if(this.fragContextChanged(n)){t!==nJ.FRAG_LOADING&&(this.fragCurrent||t!==nJ.PARSING)||(this.fragmentTracker.removeFragment(n),this.state=nJ.IDLE);return}"payload"in e&&(this.log(`Loaded ${n.type} sn: ${n.sn} of ${this.playlistLabel()} ${n.level}`),this.hls.trigger(ed.FRAG_LOADED,e)),this._handleFragmentLoadComplete(e)}).catch(t=>{this.state!==nJ.STOPPED&&this.state!==nJ.ERROR&&(this.warn(`Frag error: ${(null==t?void 0:t.message)||t}`),this.resetFragmentLoading(e))})}clearTrackerIfNeeded(e){var t;let{fragmentTracker:n}=this;if(n.getState(e)===tz.APPENDING){let t=e.type,r=this.getFwdBufferInfo(this.mediaBuffer,t),i=Math.max(e.duration,r?r.len:this.config.maxBufferLength),a=this.backtrackFragment;(1==(a?e.sn-a.sn:0)||this.reduceMaxBufferLength(i,e.duration))&&n.removeFragment(e)}else(null==(t=this.mediaBuffer)?void 0:t.buffered.length)===0?n.removeAllFragments():n.hasParts(e.type)&&(n.detectPartialFragments({frag:e,part:null,stats:e.stats,id:e.type}),n.getState(e)===tz.PARTIAL&&n.removeFragment(e))}checkLiveUpdate(e){if(e.updated&&!e.live){let t=e.fragments[e.fragments.length-1];this.fragmentTracker.detectPartialFragments({frag:t,part:null,stats:t.stats,id:t.type})}e.fragments[0]||(e.deltaUpdateFailed=!0)}waitForLive(e){let t=e.details;return(null==t?void 0:t.live)&&"EVENT"!==t.type&&(this.levelLastLoaded!==e||t.expired)}flushMainBuffer(e,t,n=null){e-t&&this.hls.trigger(ed.BUFFER_FLUSHING,{startOffset:e,endOffset:t,type:n})}_loadInitSegment(e,t){this._doFragLoad(e,t).then(e=>{let t=null==e?void 0:e.frag;if(!t||this.fragContextChanged(t)||!this.levels)throw Error("init load aborted");return e}).then(e=>{let{hls:t}=this,{frag:n,payload:r}=e,i=n.decryptdata;if(r&&r.byteLength>0&&null!=i&&i.key&&i.iv&&na(i.method)){let a=self.performance.now();
40return this.decrypter.decrypt(new Uint8Array(r),i.key.buffer,i.iv.buffer,no(i.method)).catch(e=>{throw t.trigger(ed.ERROR,{type:eu.MEDIA_ERROR,details:ec.FRAG_DECRYPT_ERROR,fatal:!1,error:e,reason:e.message,frag:n}),e}).then(r=>{let i=self.performance.now();return t.trigger(ed.FRAG_DECRYPTED,{frag:n,payload:r,stats:{tstart:a,tdecrypt:i}}),e.payload=r,this.completeInitSegmentLoad(e)})}return this.completeInitSegmentLoad(e)}).catch(t=>{this.state!==nJ.STOPPED&&this.state!==nJ.ERROR&&(this.warn(t),this.resetFragmentLoading(e))})}completeInitSegmentLoad(e){let{levels:t}=this;if(!t)throw Error("init load aborted, missing levels");let n=e.frag.stats;this.state!==nJ.STOPPED&&(this.state=nJ.IDLE),e.frag.data=new Uint8Array(e.payload),n.parsing.start=n.buffering.start=self.performance.now(),n.parsing.end=n.buffering.end=self.performance.now(),this.tick()}fragContextChanged(e){let{fragCurrent:t}=this;return!e||!t||e.sn!==t.sn||e.level!==t.level}fragBufferedComplete(e,t){let n=this.mediaBuffer?this.mediaBuffer:this.media;if(this.log(`Buffered ${e.type} sn: ${e.sn}${t?" part: "+t.index:""} of ${this.fragInfo(e,!1,t)} > buffer:${n?nX.toString(t8.getBuffered(n)):"(detached)"})`),eD(e)){var r;if(e.type!==ef.SUBTITLE){let t=e.elementaryStreams;if(!Object.keys(t).some(e=>!!t[e])){this.state=nJ.IDLE;return}}let t=null==(r=this.levels)?void 0:r[e.level];null!=t&&t.fragmentError&&(this.log(`Resetting level fragment error count of ${t.fragmentError} on frag buffered`),t.fragmentError=0)}this.state=nJ.IDLE}_handleFragmentLoadComplete(e){let{transmuxer:t}=this;if(!t)return;let{frag:n,part:r,partsLoaded:i}=e,a=!i||0===i.length||i.some(e=>!e),o=new t3(n.level,n.sn,n.stats.chunkCount+1,0,r?r.index:-1,!a);t.flush(o)}_handleFragmentLoadProgress(e){}_doFragLoad(e,t,n=null,r){var i;let a;this.fragCurrent=e;let o=null==t?void 0:t.details;if(!this.levels||!o)throw Error(`frag load aborted, missing level${o?"":" detail"}s`);let s=null;e.encrypted&&!(null!=(i=e.decryptdata)&&i.key)?(this.log(`Loading key for ${e.sn} of [${o.startSN}-${o.endSN}], ${this.playlistLabel()} ${e.level}`),this.state=nJ.KEY_LOADING,this.fragCurrent=e,s=this.keyLoader.load(e).then(e=>{if(!this.fragContextChanged(e.frag))return this.hls.trigger(ed.KEY_LOADED,e),this.state===nJ.KEY_LOADING&&(this.state=nJ.IDLE),e}),this.hls.trigger(ed.KEY_LOADING,{frag:e}),null===this.fragCurrent&&(s=Promise.reject(Error("frag load aborted, context changed in KEY_LOADING")))):!e.encrypted&&o.encryptedFragments.length&&this.keyLoader.loadClear(e,o.encryptedFragments);let l=this.fragPrevious;if(eD(e)&&(!l||e.sn!==l.sn)){let n=this.shouldLoadParts(t.details,e.end);n!==this.loadingParts&&(this.log(`LL-Part loading ${n?"ON":"OFF"} loading sn ${null==l?void 0:l.sn}->${e.sn}`),this.loadingParts=n)}if(n=Math.max(e.start,n||0),this.loadingParts&&eD(e)){let i=o.partList;if(i&&r){n>e.end&&o.fragmentHint&&(e=o.fragmentHint);let a=this.getNextPart(i,e,n);if(a>-1){let l;let u=i[a];return(e=this.fragCurrent=u.fragment,this.log(`Loading ${e.type} sn: ${e.sn} part: ${u.index} (${a}/${i.length-1}) of ${this.fragInfo(e,!1,u)}) cc: ${e.cc} [${o.startSN}-${o.endSN}], target: ${parseFloat(n.toFixed(3))}`),this.nextLoadPosition=u.start+u.duration,this.state=nJ.FRAG_LOADING,l=s?s.then(n=>!n||this.fragContextChanged(n.frag)?null:this.doFragPartsLoad(e,u,t,r)).catch(e=>this.handleFragLoadError(e)):this.doFragPartsLoad(e,u,t,r).catch(e=>this.handleFragLoadError(e)),this.hls.trigger(ed.FRAG_LOADING,{frag:e,part:u,targetBufferTime:n}),null===this.fragCurrent)?Promise.reject(Error("frag load aborted, context changed in FRAG_LOADING parts")):l}if(!e.url||this.loadedEndOfParts(i,n))return Promise.resolve(null)}}if(eD(e)&&this.loadingParts)this.log(`LL-Part loading OFF after next part miss @${n.toFixed(2)}`),this.loadingParts=!1;else if(!e.url)return Promise.resolve(null);this.log(`Loading ${e.type} sn: ${e.sn} of ${this.fragInfo(e,!1)}) cc: ${e.cc} ${o?"["+o.startSN+"-"+o.endSN+"]":""}, target: ${parseFloat(n.toFixed(3))}`),eo(e.sn)&&!this.bitrateTest&&(this.nextLoadPosition=e.start+e.duration),this.state=nJ.FRAG_LOADING;let u=this.config.progressive;return(a=u&&s?s.then(t=>!t||this.fragContextChanged(null==t?void 0:t.frag)?null:this.fragmentLoader.load(e,r)).catch(e=>this.handleFragLoadError(e)):Promise.all([this.fragmentLoader.load(e,u?r:void 0),s]).then(([e])=>(!u&&e&&r&&r(e),e)).catch(e=>this.handleFragLoadError(e)),this.hls.trigger(ed.FRAG_LOADING,{frag:e,targetBufferTime:n}),null===this.fragCurrent)?Promise.reject(Error("frag load aborted, context changed in FRAG_LOADING")):a}doFragPartsLoad(e,t,n,r){return new Promise((i,a)=>{var o;let s=[],l=null==(o=n.details)?void 0:o.partList,u=t=>{this.fragmentLoader.loadPart(e,t,r).then(r=>{s[t.index]=r;let a=r.part;this.hls.trigger(ed.FRAG_LOADED,r);let o=nQ(n.details,e.sn,t.index+1)||nH(l,e.sn,t.index+1);if(!o)return i({frag:e,part:a,partsLoaded:s});u(o)}).catch(a)};u(t)})}handleFragLoadError(e){if("data"in e){let t=e.data;e.data&&t.details===ec.INTERNAL_ABORTED?this.handleFragLoadAborted(t.frag,t.part):this.hls.trigger(ed.ERROR,t)}else this.hls.trigger(ed.ERROR,{type:eu.OTHER_ERROR,details:ec.INTERNAL_EXCEPTION,err:e,error:e,fatal:!0});return null}_handleTransmuxerFlush(e){let t=this.getCurrentContext(e);if(!t||this.state!==nJ.PARSING){this.fragCurrent||this.state===nJ.STOPPED||this.state===nJ.ERROR||(this.state=nJ.IDLE);return}let{frag:n,part:r,level:i}=t,a=self.performance.now();n.stats.parsing.end=a,r&&(r.stats.parsing.end=a);let o=this.getLevelDetails(),s=o&&n.sn>o.endSN||this.shouldLoadParts(o,n.end);s!==this.loadingParts&&(this.log(`LL-Part loading ${s?"ON":"OFF"} after parsing segment ending @${n.end.toFixed(2)}`),this.loadingParts=s),this.updateLevelTiming(n,r,i,e.partial)}shouldLoadParts(e,t){if(this.config.lowLatencyMode){if(!e)return this.loadingParts;if(null!=e&&e.partList){var n,r;let i=e.partList[0];if(t>=i.end+((null==(n=e.fragmentHint)?void 0:n.duration)||0)&&(this.hls.hasEnoughToStart?(null==(r=this.media)?void 0:r.currentTime)||this.lastCurrentTime:this.getLoadPosition())>i.start-i.fragment.duration)return!0}}return!1}getCurrentContext(e){let{levels:t,fragCurrent:n}=this,{level:r,sn:i,part:a}=e;if(!(null!=t&&t[r]))return this.warn(`Levels object was unset while buffering fragment ${i} of ${this.playlistLabel()} ${r}. The current chunk will not be buffered.`),null;let o=t[r],s=o.details,l=a>-1?nQ(s,i,a):null,u=l?l.fragment:nq(s,i,n);return u?(n&&n!==u&&(u.stats=n.stats),{frag:u,part:l,level:o}):null}bufferFragmentData(e,t,n,r,i){var a;if(!e||this.state!==nJ.PARSING)return;let{data1:o,data2:s}=e,l=o;if(o&&s&&(l=eX(o,s)),!(null!=(a=l)&&a.length))return;let u={type:e.type,frag:t,part:n,chunkMeta:r,parent:t.type,data:l};if(this.hls.trigger(ed.BUFFER_APPENDING,u),e.dropped&&e.independent&&!n){if(i)return;this.flushBufferGap(t)}}flushBufferGap(e){let t=this.media;if(!t)return;if(!t8.isBuffered(t,t.currentTime)){this.flushMainBuffer(0,e.start);return}let n=t.currentTime,r=t8.bufferInfo(t,n,0),i=e.duration,a=Math.min(2*this.config.maxFragLookUpTolerance,.25*i),o=Math.max(Math.min(e.start-a,r.end-a),n+a);e.start-o>a&&this.flushMainBuffer(o,e.start)}getFwdBufferInfo(e,t){var n;let r=this.getLoadPosition();if(!eo(r))return null;let i=this.lastCurrentTime>r||null!=(n=this.media)&&n.paused?0:this.config.maxBufferHole;return this.getFwdBufferInfoAtPos(e,r,t,i)}getFwdBufferInfoAtPos(e,t,n,r){let i=t8.bufferInfo(e,t,r);if(0===i.len&&void 0!==i.nextStart){let a=this.fragmentTracker.getBufferedFrag(t,n);if(a&&(i.nextStart<=a.end||a.gap)){let n=Math.max(Math.min(i.nextStart,a.end)-t,r);return t8.bufferInfo(e,t,n)}}return i}
40getMaxBufferLength(e){let{config:t}=this;return Math.min(e?Math.max(8*t.maxBufferSize/e,t.maxBufferLength):t.maxBufferLength,t.maxMaxBufferLength)}reduceMaxBufferLength(e,t){let n=this.config,r=Math.max(Math.min(e-t,n.maxBufferLength),t),i=Math.max(e-3*t,n.maxMaxBufferLength/2,r);return i>=r&&(n.maxMaxBufferLength=i,this.warn(`Reduce max buffer length to ${i}s`),!0)}getAppendedFrag(e,t=ef.MAIN){var n;let r=null==(n=this.fragmentTracker)?void 0:n.getAppendedFrag(e,t);return r&&"fragment"in r?r.fragment:r}getNextFragment(e,t){let n=t.fragments,r=n.length;if(!r)return null;let{config:i}=this,a=n[0].start,o=i.lowLatencyMode&&!!t.partList,s=null;if(t.live){let u=i.initialLiveManifestSize;if(r<u)return this.warn(`Not enough fragments to start playback (have: ${r}, need: ${u})`),null;if(!t.PTSKnown&&!this.startFragRequested&&-1===this.startPosition||e<a){var l;o&&!this.loadingParts&&(this.log("LL-Part loading ON for initial live fragment"),this.loadingParts=!0),s=this.getInitialLiveFragment(t,n);let r=this.hls.startPosition,i=this.hls.liveSyncPosition,u=s?(-1!==r&&r>=a?r:i)||s.start:e;this.log(`Setting startPosition to ${u} to match start frag at live edge. mainStart: ${r} liveSyncPosition: ${i} frag.start: ${null==(l=s)?void 0:l.start}`),this.startPosition=this.nextLoadPosition=u}}else e<=a&&(s=n[0]);if(!s){let n=this.loadingParts?t.partEnd:t.fragmentEnd;s=this.getFragmentAtPosition(e,n,t)}let u=this.filterReplacedPrimary(s,t);if(!u&&s){let e=s.sn-t.startSN;u=this.filterReplacedPrimary(n[e+1]||null,t)}return this.mapToInitFragWhenRequired(u)}isLoopLoading(e,t){let n=this.fragmentTracker.getState(e);return(n===tz.OK||n===tz.PARTIAL&&!!e.gap)&&this.nextLoadPosition>t}getNextFragmentLoopLoading(e,t,n,r,i){let a=null;if(e.gap&&(a=this.getNextFragment(this.nextLoadPosition,t))&&!a.gap&&n.nextStart){let e=this.getFwdBufferInfoAtPos(this.mediaBuffer?this.mediaBuffer:this.media,n.nextStart,r,0);if(null!==e&&n.len+e.len>=i){let e=a.sn;return this.loopSn!==e&&(this.log(`buffer full after gaps in "${r}" playlist starting at sn: ${e}`),this.loopSn=e),null}}return this.loopSn=void 0,a}get primaryPrefetch(){if(n1(this.hls.config)){var e,t;if(null==(e=this.hls.interstitialsManager)?void 0:null==(t=e.playingItem)?void 0:t.event)return!0}return!1}filterReplacedPrimary(e,t){if(!e)return e;if(n1(this.hls.config)&&e.type!==ef.SUBTITLE){let n=this.hls.interstitialsManager,r=null==n?void 0:n.bufferingItem;if(r){let n=r.event;if(n){if(n.appendInPlace||Math.abs(e.start-r.start)>1||0===r.start)return null}else if(e.end<=r.start&&(null==t?void 0:t.live)===!1||e.start>r.end&&r.nextEvent&&(r.nextEvent.appendInPlace||e.start-r.end>1))return null}let i=null==n?void 0:n.playerQueue;if(i)for(let t=i.length;t--;){let n=i[t].interstitial;if(n.appendInPlace&&e.start>=n.startTime&&e.end<=n.resumeTime)return null}}return e}mapToInitFragWhenRequired(e){return null==e||!e.initSegment||null!=e&&e.initSegment.data||this.bitrateTest?e:e.initSegment}getNextPart(e,t,n){let r=-1,i=!1,a=!0;for(let o=0,s=e.length;o<s;o++){let s=e[o];if(a=a&&!s.independent,r>-1&&n<s.start)break;let l=s.loaded;l?r=-1:(i||s.independent||a)&&s.fragment===t&&(r=o),i=l}return r}loadedEndOfParts(e,t){let n=e[e.length-1];return n&&t>n.start&&n.loaded}getInitialLiveFragment(e,t){let n=this.fragPrevious,r=null;if(n){if(e.hasProgramDateTime&&(this.log(`Live playlist, switching playlist, load frag with same PDT: ${n.programDateTime}`),r=function(e,t,n){if(null===t||!Array.isArray(e)||!e.length||!eo(t)||t<(e[0].programDateTime||0)||t>=(e[e.length-1].endProgramDateTime||0))return null;n=n||0;for(let r=0;r<e.length;++r){let i=e[r];if(function(e,t,n){let r=1e3*Math.min(t,n.duration+(n.deltaPTS?n.deltaPTS:0));return(n.endProgramDateTime||0)-r>e}(t,n,i))return i}return null}(t,n.endProgramDateTime,this.config.maxFragLookUpTolerance)),!r){let i=n.sn+1;if(i>=e.startSN&&i<=e.endSN){let a=t[i-e.startSN];n.cc===a.cc&&(r=a,this.log(`Live playlist, switching playlist, load frag with next SN: ${r.sn}`))}!r&&(r=tO(t,n.cc))&&this.log(`Live playlist, switching playlist, load frag with same CC: ${r.sn}`)}}else{let t=this.hls.liveSyncPosition;null!==t&&(r=this.getFragmentAtPosition(t,this.bitrateTest?e.fragmentEnd:e.edge,e))}return r}getFragmentAtPosition(e,t,n){let r;let{config:i}=this,{fragPrevious:a}=this,{fragments:o,endSN:s}=n,{fragmentHint:l}=n,{maxFragLookUpTolerance:u}=i,c=n.partList,d=!!(this.loadingParts&&null!=c&&c.length&&l);if(d&&l&&!this.bitrateTest&&c[c.length-1].fragment.sn===l.sn&&(o=o.c
40oncat(l),s=l.sn),e<t){var h;let n=e<this.lastCurrentTime||e>t-u||null!=(h=this.media)&&h.paused||!this.startFragRequested?0:u;r=tL(a,o,e,n)}else r=o[o.length-1];if(r){let e=r.sn-n.startSN,t=this.fragmentTracker.getState(r);if((t===tz.OK||t===tz.PARTIAL&&r.gap)&&(a=r),a&&r.sn===a.sn&&(!d||c[0].fragment.sn>r.sn||!n.live&&!d)&&a&&r.level===a.level){let t=o[e+1];r=r.sn<s&&this.fragmentTracker.getState(t)!==tz.OK?t:null}}return r}alignPlaylists(e,t,n){let r=e.fragments.length;if(!r)return this.warn("No fragments in live playlist"),0;let i=e.fragmentStart,a=e.alignedSliding&&eo(i);if(!t||!a&&!i){n&&(nZ(e,n),!e.alignedSliding&&n&&nY(e,n),e.alignedSliding||!n||e.skippedSegments||nU(n,e,!1));let i=e.fragmentStart;return this.log(`Live playlist sliding: ${i.toFixed(2)} start-sn: ${t?t.startSN:"na"}->${e.startSN} fragments: ${r}`),i}return i}waitForCdnTuneIn(e){return e.live&&e.canBlockReload&&e.partTarget&&e.tuneInGoal>Math.max(e.partHoldBack,3*e.partTarget)}setStartPosition(e,t){let n=this.startPosition;n<t&&(n=-1);let r=this.timelineOffset;if(-1===n){let i=null!==this.startTimeOffset,a=i?this.startTimeOffset:e.startTimeOffset;null!==a&&eo(a)?(n=t+a,a<0&&(n+=e.edge),n=Math.min(Math.max(t,n),t+e.totalduration),this.log(`Setting startPosition to ${n} for start time offset ${a} found in ${i?"multivariant":"media"} playlist`),this.startPosition=n):e.live?(n=this.hls.liveSyncPosition||t,this.log(`Setting startPosition to -1 to start at live edge ${n}`),this.startPosition=-1):(this.log("setting startPosition to 0 by default"),this.startPosition=n=0),this.lastCurrentTime=n+r}this.nextLoadPosition=n+r}getLoadPosition(){var e;let{media:t}=this,n=0;return null!=(e=this.hls)&&e.hasEnoughToStart&&t?n=t.currentTime:this.nextLoadPosition>=0&&(n=this.nextLoadPosition),n}handleFragLoadAborted(e,t){this.transmuxer&&e.type===this.playlistType&&eD(e)&&e.stats.aborted&&(this.warn(`Fragment ${e.sn}${t?" part "+t.index:""} of ${this.playlistLabel()} ${e.level} was aborted`),this.resetFragmentLoading(e))}resetFragmentLoading(e){this.fragCurrent&&(this.fragContextChanged(e)||this.state===nJ.FRAG_LOADING_WAITING_RETRY)||(this.state=nJ.IDLE)}onFragmentOrKeyLoadError(e,t){if(t.chunkMeta&&!t.frag){let e=this.getCurrentContext(t.chunkMeta);e&&(t.frag=e.frag)}let n=t.frag;if(!n||n.type!==e||!this.levels)return;if(this.fragContextChanged(n)){var r;this.warn(`Frag load error must match current frag to retry ${n.url} > ${null==(r=this.fragCurrent)?void 0:r.url}`);return}let i=t.details===ec.FRAG_GAP;i&&this.fragmentTracker.fragBuffered(n,!0);let a=t.errorAction,{action:o,flags:s,retryCount:l=0,retryConfig:u}=a||{},c=!!a&&!!u,d=c&&o===tF.RetryRequest,h=c&&!a.resolved&&s===tB.MoveAllAlternatesMatchingHost;if(!d&&h&&eD(n)&&!n.endList)this.resetFragmentErrors(e),this.treatAsGap(n),a.resolved=!0;else if((d||h)&&l<u.maxNumRetry){this.resetStartWhenNotLoaded(this.levelLastLoaded);let r=tN(u,l);this.warn(`Fragment ${n.sn} of ${e} ${n.level} errored with ${t.details}, retrying loading ${l+1}/${u.maxNumRetry} in ${r}ms`),a.resolved=!0,this.retryDate=self.performance.now()+r,this.state=nJ.FRAG_LOADING_WAITING_RETRY}else if(u&&a){if(this.resetFragmentErrors(e),l<u.maxNumRetry)i||o===tF.RemoveAlternatePermanently||(a.resolved=!0);else{this.warn(`${t.details} reached or exceeded max retry (${l})`);return}}else o===tF.SendAlternateToPenaltyBox?this.state=nJ.WAITING_LEVEL:this.state=nJ.ERROR;this.tickImmediate()}reduceLengthAndFlushBuffer(e){if(this.state===nJ.PARSING||this.state===nJ.PARSED){let t=e.frag,n=e.parent,r=this.getFwdBufferInfo(this.mediaBuffer,n),i=r&&r.len>.5;i&&this.reduceMaxBufferLength(r.len,(null==t?void 0:t.duration)||10);let a=!i;return a&&this.warn(`Buffer full error while media.currentTime is not buffered, flush ${n} buffer`),t&&(this.fragmentTracker.removeFragment(t),this.nextLoadPosition=t.start),this.resetLoadingState(),a}return!1}resetFragmentErrors(e){e===ef.AUDIO&&(this.fragCurrent=null),this.hls.hasEnoughToStart||(this.startFragRequested=!1),this.state!==nJ.STOPPED&&(this.state=nJ.IDLE)}afterBufferFlushed(e,t,n){if(!e)return;let r=t8.getBuffered(e);this.fragmentTracker.detectEvictedFragments(t,r,n),this.state===nJ.ENDED&&this.resetLoadingState()}
40resetLoadingState(){this.log("Reset loading state"),this.fragCurrent=null,this.fragPrevious=null,this.state!==nJ.STOPPED&&(this.state=nJ.IDLE)}resetStartWhenNotLoaded(e){if(!this.hls.hasEnoughToStart){this.startFragRequested=!1;let t=e?e.details:null;null!=t&&t.live?(this.log("resetting startPosition for live start"),this.startPosition=-1,this.setStartPosition(t,t.fragmentStart),this.resetLoadingState()):this.nextLoadPosition=this.startPosition}}resetWhenMissingContext(e){this.warn(`The loading context changed while buffering fragment ${e.sn} of ${this.playlistLabel()} ${e.level}. This chunk will not be buffered.`),this.removeUnbufferedFrags(),this.resetStartWhenNotLoaded(this.levelLastLoaded),this.resetLoadingState()}removeUnbufferedFrags(e=0){this.fragmentTracker.removeFragmentsInRange(e,1/0,this.playlistType,!1,!0)}updateLevelTiming(e,t,n,r){let i=n.details;if(!i){this.warn("level.details undefined");return}if(!Object.keys(e.elementaryStreams).reduce((t,a)=>{let o=e.elementaryStreams[a];if(o){let s=o.endPTS-o.startPTS;if(s<=0)return this.warn(`Could not parse fragment ${e.sn} ${a} duration reliably (${s})`),t||!1;let l=r?0:nF(i,e,o.startPTS,o.endPTS,o.startDTS,o.endDTS);return this.hls.trigger(ed.LEVEL_PTS_UPDATED,{details:i,level:n,drift:l,type:a,frag:e,start:o.startPTS,end:o.endPTS}),!0}return t},!1)){var a;if(0===n.fragmentError&&this.treatAsGap(e,n),(null==(a=this.transmuxer)?void 0:a.error)===null){let t=Error(`Found no media in fragment ${e.sn} of ${this.playlistLabel()} ${e.level} resetting transmuxer to fallback to playlist timing`);if(this.warn(t.message),this.hls.trigger(ed.ERROR,{type:eu.MEDIA_ERROR,details:ec.FRAG_PARSING_ERROR,fatal:!1,error:t,frag:e,reason:`Found no media in msn ${e.sn} of ${this.playlistLabel()} "${n.url}"`}),!this.hls)return;this.resetTransmuxer()}}this.state=nJ.PARSED,this.log(`Parsed ${e.type} sn: ${e.sn}${t?" part: "+t.index:""} of ${this.fragInfo(e,!1,t)})`),this.hls.trigger(ed.FRAG_PARSED,{frag:e,part:t})}playlistLabel(){return this.playlistType===ef.MAIN?"level":"track"}fragInfo(e,t=!0,n){var r,i;return`${this.playlistLabel()} ${e.level} (${n?"part":"frag"}:[${(null!=(r=t&&!n?e.startPTS:(n||e).start)?r:NaN).toFixed(3)}-${(null!=(i=t&&!n?e.endPTS:(n||e).end)?i:NaN).toFixed(3)}]${n&&"main"===e.type?"INDEPENDENT="+(n.independent?"YES":"NO"):""}`}treatAsGap(e,t){t&&t.fragmentError++,e.gap=!0,this.fragmentTracker.removeFragment(e),this.fragmentTracker.fragBuffered(e,!0)}resetTransmuxer(){var e;null==(e=this.transmuxer)||e.reset()}recoverWorkerError(e){"demuxerWorker"===e.event&&(this.fragmentTracker.removeAllFragments(),this.transmuxer&&(this.transmuxer.destroy(),this.transmuxer=null),this.resetStartWhenNotLoaded(this.levelLastLoaded),this.resetLoadingState())}set state(e){let t=this._state;t!==e&&(this._state=e,this.log(`${t}->${e}`))}get state(){return this._state}}function n1(e){return!!e.interstitialsController&&!1!==e.enableInterstitialPlayback}class n2{constructor(){this.chunks=[],this.dataLength=0}push(e){this.chunks.push(e),this.dataLength+=e.length}flush(){let e;let{chunks:t,dataLength:n}=this;return t.length?(e=1===t.length?t[0]:function(e,t){let n=new Uint8Array(t),r=0;for(let t=0;t<e.length;t++){let i=e[t];n.set(i,r),r+=i.length}return n}(t,n),this.reset(),e):new Uint8Array(0)}reset(){this.chunks.length=0,this.dataLength=0}}var n3={exports:{}},n4=(C||(C=1,function(e){var t=Object.prototype.hasOwnProperty,n="~";function r(){}function i(e,t,n){this.fn=e,this.context=t,this.once=n||!1}function a(e,t,r,a,o){if("function"!=typeof r)throw TypeError("The listener must be a function");var s=new i(r,a||e,o),l=n?n+t:t;return e._events[l]?e._events[l].fn?e._events[l]=[e._events[l],s]:e._events[l].push(s):(e._events[l]=s,e._eventsCount++),e}function o(e,t){0==--e._eventsCount?e._events=new r:delete e._events[t]}function s(){this._events=new r,this._eventsCount=0}Object.create&&(r.prototype=Object.create(null),new r().__proto__||(n=!1)),s.prototype.eventNames=function(){var e,r,i=[];if(0===this._eventsCount)return i;for(r in e=this._events)t.call(e,r)&&i.push(n?r.slice(1):r);return Object.getOwnPropertySymbols?i.concat(Object.getOwnPropertySymbols(e)):i},s.prototype.listeners=function(e){var t=n?n+e:e,r=this._events[t];if(!r)return[];if(r.fn)return[r.fn];for(var i=0,a=r.length,o=Array(a);i<a;i++)o[i]=r[i].fn;return o},s.prototype.listenerCount=function(e){var t=n?n+e:e,r=this._events[t];return r?r.fn?1:r.length:0},s.prototype.emit=function(e,t,r,i,a,o){var s=n?n+e:e;if(!this._events[s])return!1;var l,u,c=this._events[s],d=arguments.length;
40if(c.fn){switch(c.once&&this.removeListener(e,c.fn,void 0,!0),d){case 1:return c.fn.call(c.context),!0;case 2:return c.fn.call(c.context,t),!0;case 3:return c.fn.call(c.context,t,r),!0;case 4:return c.fn.call(c.context,t,r,i),!0;case 5:return c.fn.call(c.context,t,r,i,a),!0;case 6:return c.fn.call(c.context,t,r,i,a,o),!0}for(u=1,l=Array(d-1);u<d;u++)l[u-1]=arguments[u];c.fn.apply(c.context,l)}else{var h,f=c.length;for(u=0;u<f;u++)switch(c[u].once&&this.removeListener(e,c[u].fn,void 0,!0),d){case 1:c[u].fn.call(c[u].context);break;case 2:c[u].fn.call(c[u].context,t);break;case 3:c[u].fn.call(c[u].context,t,r);break;case 4:c[u].fn.call(c[u].context,t,r,i);break;default:if(!l)for(h=1,l=Array(d-1);h<d;h++)l[h-1]=arguments[h];c[u].fn.apply(c[u].context,l)}}return!0},s.prototype.on=function(e,t,n){return a(this,e,t,n,!1)},s.prototype.once=function(e,t,n){return a(this,e,t,n,!0)},s.prototype.removeListener=function(e,t,r,i){var a=n?n+e:e;if(!this._events[a])return this;if(!t)return o(this,a),this;var s=this._events[a];if(s.fn)s.fn!==t||i&&!s.once||r&&s.context!==r||o(this,a);else{for(var l=0,u=[],c=s.length;l<c;l++)(s[l].fn!==t||i&&!s[l].once||r&&s[l].context!==r)&&u.push(s[l]);u.length?this._events[a]=1===u.length?u[0]:u:o(this,a)}return this},s.prototype.removeAllListeners=function(e){var t;return e?(t=n?n+e:e,this._events[t]&&o(this,t)):(this._events=new r,this._eventsCount=0),this},s.prototype.off=s.prototype.removeListener,s.prototype.addListener=s.prototype.on,s.prefixed=n,s.EventEmitter=s,e.exports=s}(n3)),(x=n3.exports)&&x.__esModule&&Object.prototype.hasOwnProperty.call(x,"default"))?x.default:x;let n5="1.6.2",n8={};function n6(e,t){return t+10<=e.length&&51===e[t]&&68===e[t+1]&&73===e[t+2]&&e[t+3]<255&&e[t+4]<255&&e[t+6]<128&&e[t+7]<128&&e[t+8]<128&&e[t+9]<128}function n9(e,t){return t+10<=e.length&&73===e[t]&&68===e[t+1]&&51===e[t+2]&&e[t+3]<255&&e[t+4]<255&&e[t+6]<128&&e[t+7]<128&&e[t+8]<128&&e[t+9]<128}function n7(e,t){return(127&e[t])<<21|(127&e[t+1])<<14|(127&e[t+2])<<7|127&e[t+3]}function re(e,t){let n=t,r=0;for(;n9(e,t);)r+=10+n7(e,t+6),n6(e,t+10)&&(r+=10),t+=r;if(r>0)return e.subarray(n,n+r)}function rt(e,t){return 255===e[t]&&(246&e[t+1])==240}function rn(e,t){return 1&e[t+1]?7:9}function rr(e,t){return(3&e[t+3])<<11|e[t+4]<<3|(224&e[t+5])>>>5}function ri(e,t){return t+1<e.length&&rt(e,t)}function ra(e,t,n,r,i){if(!e.samplerate){let a=function(e,t,n,r){let i=t[n+2],a=i>>2&15;if(a>12){let t=Error(`invalid ADTS sampling index:${a}`);e.emit(ed.ERROR,ed.ERROR,{type:eu.MEDIA_ERROR,details:ec.FRAG_PARSING_ERROR,fatal:!0,error:t,reason:t.message});return}let o=(i>>6&3)+1,s=t[n+3]>>6&3|(1&i)<<2,l="mp4a.40."+o,u=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350][a],c=a;(5===o||29===o)&&(c-=3);let d=[o<<3|(14&c)>>1,(1&c)<<7|s<<3];return eT.log(`manifest codec:${r}, parsed codec:${l}, channels:${s}, rate:${u} (ADTS object type:${o} sampling index:${a})`),{config:d,samplerate:u,channelCount:s,codec:l,parsedCodec:l,manifestCodec:r}}(t,n,r,i);a&&eg(e,a)}}function ro(e,t,n,r,i){let a;let o=r+9216e4/e.samplerate*i,s=function(e,t){let n=rn(e,t);if(t+n<=e.length){let r=rr(e,t)-n;if(r>0)return{headerLength:n,frameLength:r}}}(t,n);if(s){let{frameLength:r,headerLength:i}=s,l=i+r,u=Math.max(0,n+l-t.length);u?(a=new Uint8Array(l-i)).set(t.subarray(n+i,t.length),0):a=t.subarray(n+i,n+l);let c={unit:a,pts:o};return u||e.samples.push(c),{sample:c,length:l,missing:u}}let l=t.length-n;return(a=new Uint8Array(l)).set(t.subarray(n,t.length),0),{sample:{unit:a,pts:o},length:l,missing:-1}}function rs(e,t=0,n=1/0){return function(e,t,n,r){let i=e instanceof ArrayBuffer?e:e.buffer,a=1;"BYTES_PER_ELEMENT"in r&&(a=r.BYTES_PER_ELEMENT);let o=e&&e.buffer instanceof ArrayBuffer&&void 0!==e.byteLength&&void 0!==e.byteOffset?e.byteOffset:0,s=(o+e.byteLength)/a,l=Math.floor(Math.max(0,Math.min((o+t)/a,s))),u=Math.floor(Math.min(l+Math.max(n,0),s));return new r(i,l,u-l)}(e,t,n,Uint8Array)}function rl(e){let t=0,n=[];for(;n9(e,t);){let r=n7(e,t+6);e[t+5]>>6&1&&(t+=10);let i=(t+=10)+r;for(;t+10<i;){let r=function(e){let t=String.fromCharCode(e[0],e[1],e[2],e[3]),n=n7(e,4);return{type:t,size:n,data:e.subarray(10,10+n)}}(e.subarray(t)),i="PRIV"===r.type?function(e){if(e.size<2)return;let t=eC(e.data,!0),n=new Uint8Array(e.data.subarray(t.length+1));return{key:e.type,info:t,data:n.buffer}}(r):"W"===r.type[0]?function(e){if("WXXX"===e.type){if(e.size<2)return;let t=1,n=eC(e.data.subarray(t),!0);t+=n.length+1;let r=eC(e.data.subarray(t));return{key:e.type,info:n,data:r}}let t=eC(e.data);return{key:e.type,info:"",data:t}}(r):"APIC"===r.type?function(e){let t;let n={key:e.type,description:"",data:"",mimeType:null,pictureType:null};if(e.size<2)return;if(3!==e.data[0]){console.log("Ignore frame with unrecognized character encoding");return}let r=e.data.subarray(1).indexOf(0);if(-1===r)return;let i=eC(rs(e.data,1,r)),a=e.data[2+r],o=e.data.subarray(3+r).indexOf(0);if(-1===o)return;let s=eC(rs(e.data,3+r,o));if("-->"===i)t=eC(rs(e.data,4+r+o));else{var l;t=(l=e.data.subarray(4+r+o))instanceof ArrayBuffer?l:0==l.byteOffset&&l.byteLength==l.buffer.byteLength?l.buffer:new Uint8Array(l).buffer}return n.mimeType=i,n.pictureType=a,n.description=s,n.data=t,n}(r):function(e){if(e.size<2)return;if("TXXX"===e.type){let t=1,n=eC(e.data.subarray(t),!0);t+=n.length+1;let r=eC(e.data.subarray(t));return{key:e.type,info:n,data:r}}let t=eC(e.data.subarray(1));return{key:e.type,info:"",data:t}}(r);i&&n.push(i),t+=r.size+10}n6(e,t)&&(t+=10)}return n}function ru(e){return e&&"PRIV"===e.key&&"com.apple.streaming.transportStreamTimestamp"===e.info}function rc(e){let t=rl(e);for(let e=0;e<t.length;e++){let n=t[e];if(ru(n))return function(e){if(8===e.data.byteLength){let t=new Uint8Array(e.data),n=1&t[3],r=(t[4]<<23)+(t[5]<<15)+(t[6]<<7)+t[7];return r/=45,n&&(r+=47721858.84),Math.round(r)}}(n)}}let rd=((T={}).audioId3="org.id3",T.dateRange="com.apple.quicktime.HLS",T.emsg="https://aomedia.org/emsg/ID3",T.misbklv="urn:misb:KLV:bin:1910.1",T);function rh(e="",t=9e4){return{type:e,id:-1,pid:-1,inputTimeScale:t,sequenceNumber:-1,samples:[],dropped:0}}class rf{constructor(){this._audioTrack=void 0,this._id3Track=void 0,this.frameIndex=0,this.cachedData=null,this.basePTS=null,this.initPTS=null,this.lastPTS=null}resetInitSegment(e,t,n,r){this._id3Track={type:"id3",id:3,pid:-1,inputTimeScale:9e4,sequenceNumber:0,samples:[],dropped:0}}resetTimeStamp(e){this.initPTS=e,this.resetContiguity()}resetContiguity(){this.basePTS=null,this.lastPTS=null,this.frameIndex=0}canParse(e,t){return!1}appendFrame(e,t,n){}demux(e,t){let n;this.cachedData&&(e=eX(this.cachedData,e),this.cachedData=null);let r=re(e,0),i=r?r.length:0,a=this._audioTrack,o=this._id3Track,s=r?rc(r):void 0,l=e.length;for((null===this.basePTS||0===this.frameIndex&&eo(s))&&(this.basePTS=rp(s,t,this.initPTS),this.lastPTS=this.basePTS),null===this.lastPTS&&(this.lastPTS=this.basePTS),r&&r.length>0&&o.samples.push({pts:this.lastPTS,dts:this.lastPTS,data:r,type:rd.audioId3,duration:Number.POSITIVE_INFINITY});i<l;){if(this.canParse(e,i)){let t=this.appendFrame(a,e,i);t?(this.frameIndex++,this.lastPTS=t.sample.pts,i+=t.length,n=i):i=l}else{var u,c;n9(u=e,c=i)&&n7(u,c+6)+10<=u.length-c?(r=re(e,i),o.samples.push({pts:this.lastPTS,dts:this.lastPTS,data:r,type:rd.audioId3,duration:Number.POSITIVE_INFINITY}),i+=r.length,n=i):i++}if(i===l&&n!==l){let t=e.slice(n);this.cachedData?this.cachedData=eX(this.cachedData,t):this.cachedData=t}}return{audioTrack:a,videoTrack:rh(),id3Track:o,textTrack:rh()}}
40demuxSampleAes(e,t,n){return Promise.reject(Error(`[${this}] This demuxer does not support Sample-AES decryption`))}flush(e){let t=this.cachedData;return t&&(this.cachedData=null,this.demux(t,0)),{audioTrack:this._audioTrack,videoTrack:rh(),id3Track:this._id3Track,textTrack:rh()}}destroy(){this.cachedData=null,this._audioTrack=this._id3Track=void 0}}let rp=(e,t,n)=>eo(e)?90*e:9e4*t+(n?9e4*n.baseTime/n.timescale:0),rm=null,rg=[32,64,96,128,160,192,224,256,288,320,352,384,416,448,32,48,56,64,80,96,112,128,160,192,224,256,320,384,32,40,48,56,64,80,96,112,128,160,192,224,256,320,32,48,56,64,80,96,112,128,144,160,176,192,224,256,8,16,24,32,40,48,56,64,80,96,112,128,144,160],rv=[44100,48e3,32e3,22050,24e3,16e3,11025,12e3,8e3],ry=[[0,72,144,12],[0,0,0,0],[0,72,144,12],[0,144,144,12]],rb=[0,1,1,4];function rA(e,t,n,r,i){if(n+24>t.length)return;let a=rE(t,n);if(a&&n+a.frameLength<=t.length){let o=r+9e4*a.samplesPerFrame/a.sampleRate*i,s={unit:t.subarray(n,n+a.frameLength),pts:o,dts:o};return e.config=[],e.channelCount=a.channelCount,e.samplerate=a.sampleRate,e.samples.push(s),{sample:s,length:a.frameLength,missing:0}}}function rE(e,t){let n=e[t+1]>>3&3,r=e[t+1]>>1&3,i=e[t+2]>>4&15,a=e[t+2]>>2&3;if(1!==n&&0!==i&&15!==i&&3!==a){let o=e[t+2]>>1&1,s=e[t+3]>>6,l=1e3*rg[14*(3===n?3-r:3===r?3:4)+i-1],u=rv[3*(3===n?0:2===n?1:2)+a],c=ry[n][r],d=rb[r],h=Math.floor(c*l/u+o)*d;if(null===rm){let e=(navigator.userAgent||"").match(/Chrome\/(\d+)/i);rm=e?parseInt(e[1]):0}return rm&&rm<=87&&2===r&&l>=224e3&&0===s&&(e[t+3]=128|e[t+3]),{sampleRate:u,channelCount:3===s?1:2,frameLength:h,samplesPerFrame:8*c*d}}}function rw(e,t){return 255===e[t]&&(224&e[t+1])==224&&(6&e[t+1])!=0}function rx(e,t){return t+1<e.length&&rw(e,t)}function rT(e,t){if(t+1<e.length&&rw(e,t)){let n=rE(e,t),r=4;null!=n&&n.frameLength&&(r=n.frameLength);let i=t+r;return i===e.length||rx(e,i)}return!1}class rS extends rf{constructor(e,t){super(),this.observer=void 0,this.config=void 0,this.observer=e,this.config=t}resetInitSegment(e,t,n,r){super.resetInitSegment(e,t,n,r),this._audioTrack={container:"audio/adts",type:"audio",id:2,pid:-1,sequenceNumber:0,segmentCodec:"aac",samples:[],manifestCodec:t,duration:r,inputTimeScale:9e4,dropped:0}}static probe(e,t){if(!e)return!1;let n=re(e,0),r=(null==n?void 0:n.length)||0;if(rT(e,r))return!1;for(let n=e.length;r<n;r++)if(function(e,t){if(ri(e,t)){let n=rn(e,t);if(t+n>=e.length)return!1;let r=rr(e,t);if(r<=n)return!1;let i=t+r;return i===e.length||ri(e,i)}return!1}(e,r))return t.log("ADTS sync word found !"),!0;return!1}canParse(e,t){return t+5<e.length&&rt(e,t)&&rr(e,t)<=e.length-t}appendFrame(e,t,n){ra(e,this.observer,t,n,e.manifestCodec);let r=ro(e,t,n,this.basePTS,this.frameIndex);if(r&&0===r.missing)return r}}let r_=(e,t)=>{let n=0,r=5;t+=5;let i=new Uint32Array(1),a=new Uint32Array(1),o=new Uint8Array(1);for(;r>0;){o[0]=e[t];let s=Math.min(r,8),l=8-s;a[0]=4278190080>>>24+l<<l,i[0]=(o[0]&a[0])>>l,n=n?n<<s|i[0]:i[0],t+=1,r-=s}return n};class rC extends rf{constructor(e){super(),this.observer=void 0,this.observer=e}resetInitSegment(e,t,n,r){super.resetInitSegment(e,t,n,r),this._audioTrack={container:"audio/ac-3",type:"audio",id:2,pid:-1,sequenceNumber:0,segmentCodec:"ac3",samples:[],manifestCodec:t,duration:r,inputTimeScale:9e4,dropped:0}}canParse(e,t){return t+64<e.length}appendFrame(e,t,n){let r=rk(e,t,n,this.basePTS,this.frameIndex);if(-1!==r)return{sample:e.samples[e.samples.length-1],length:r,missing:0}}static probe(e){if(!e)return!1;let t=re(e,0);if(!t)return!1;let n=t.length;return!!(11===e[n]&&119===e[n+1]&&void 0!==rc(t)&&16>r_(e,n))}}function rk(e,t,n,r,i){if(n+8>t.length||11!==t[n]||119!==t[n+1])return -1;let a=t[n+4]>>6;if(a>=3)return -1;let o=[48e3,44100,32e3][a],s=63&t[n+4],l=2*[64,69,96,64,70,96,80,87,120,80,88,120,96,104,144,96,105,144,112,121,168,112,122,168,128,139,192,128,140,192,160,174,240,160,175,240,192,208,288,192,209,288,224,243,336,224,244,336,256,278,384,256,279,384,320,348,480,320,349,480,384,417,576,384,418,576,448,487,672,448,488,672,512,557,768,512,558,768,640,696,960,640,697,960,768,835,1152,768,836,1152,896,975,1344,896,976,1344,1024,1114,1536,1024,1115,1536,1152,1253,1728,1152,1254,1728,1280,1393,1920,1280,1394,1920][3*s+a];if(n+l>t.length)return -1;let u=t[n+6]>>5,c=0;2===u?c+=2:(1&u&&1!==u&&(c+=2),4&u&&(c+=2));let d=(t[n+6]<<8|t[n+7])>>12-c&1,h=[2,1,2,3,3,4,4,5][u]+d,f=t[n+5]>>3,p=7&t[n+5],m=new Uint8Array([a<<6|f<<1|p>>2,(3&p)<<6|u<<3|d<<2|s>>4,s<<4&224]),g=t.subarray(n,n+l);return e.config=m,e.channelCount=h,e.samplerate=o,e.samples.push({unit:g,pts:r+1536/o*9e4*i}),l}class rI extends rf{resetInitSegment(e,t,n,r){super.resetInitSegment(e,t,n,r),this._audioTrack={container:"audio/mpeg",type:"audio",id:2,pid:-1,sequenceNumber:0,segmentCodec:"mp3",samples:[],manifestCodec:t,duration:r,inputTimeScale:9e4,dropped:0}}static probe(e){if(!e)return!1;let t=re(e,0),n=(null==t?void 0:t.length)||0;if(t&&11===e[n]&&119===e[n+1]&&void 0!==rc(t)&&16>=r_(e,n))return!1;for(let t=e.length;n<t;n++)if(rT(e,n))return eT.log("MPEG Audio sync word found !"),!0;return!1}canParse(e,t){return rw(e,t)&&4<=e.length-t}appendFrame(e,t,n){if(null!==this.basePTS)return rA(e,t,n,this.basePTS,this.frameIndex)}}let rL=/\/emsg[-/]ID3/i;class rP{constructor(e,t){this.remainderData=null,this.timeOffset=0,this.config=void 0,this.videoTrack=void 0,this.audioTrack=void 0,this.id3Track=void 0,this.txtTrack=void 0,this.config=t}resetTimeStamp(){}resetInitSegment(e,t,n,r){let i=this.videoTrack=rh("video",1),a=this.audioTrack=rh("audio",1),o=this.txtTrack=rh("text",1);if(this.id3Track=rh("id3",1),this.timeOffset=0,!(null!=e&&e.byteLength))return;let s=eG(e);if(s.video){let{id:e,timescale:t,codec:n,supplemental:r}=s.video;i.id=e,i.timescale=o.timescale=t,i.codec=n,i.supplemental=r}if(s.audio){let{id:e,timescale:t,codec:n}=s.audio;a.id=e,a.timescale=t,a.codec=n}o.id=4,i.sampleDuration=0,i.duration=a.duration=r}resetContiguity(){this.remainderData=null}static probe(e){return function(e){let t=e.byteLength;for(let n=0;n<t;){let r=eV(e,n);if(r>8&&109===e[n+4]&&111===e[n+5]&&111===e[n+6]&&102===e[n+7])return!0;n=r>1?n+r:t}return!1}(e)}demux(e,t){this.timeOffset=t;let n=e,r=this.videoTrack,i=this.txtTrack;if(this.config.progressive){this.remainderData&&(n=eX(this.remainderData,e));let t=function(e){let t={valid:null,remainder:null},n=eH(e,["moof"]);if(n.length<2)return t.remainder=e,t;let r=n[n.length-1];return t.valid=e.slice(0,r.byteOffset-8),t.remainder=e.slice(r.byteOffset-8),t}(n);this.remainderData=t.remainder,r.samples=t.valid||new Uint8Array}else r.samples=n;let a=this.extractID3Track(r,t);return i.samples=eJ(t,r),{videoTrack:r,audioTrack:this.audioTrack,id3Track:a,textTrack:this.txtTrack}}flush(){let e=this.timeOffset,t=this.videoTrack,n=this.txtTrack;t.samples=this.remainderData||new Uint8Array,this.remainderData=null;let r=this.extractID3Track(t,this.timeOffset);return n.samples=eJ(e,t),{videoTrack:t,audioTrack:rh(),id3Track:r,textTrack:rh()}}extractID3Track(e,t){let n=this.id3Track;if(e.samples.length){let r=eH(e.samples,["emsg"]);
40r&&r.forEach(e=>{let r=function(e){let t=e[0],n="",r="",i=0,a=0,o=0,s=0,l=0,u=0;if(0===t){for(;"\x00"!==eB(e.subarray(u,u+1));)n+=eB(e.subarray(u,u+1)),u+=1;for(n+=eB(e.subarray(u,u+1)),u+=1;"\x00"!==eB(e.subarray(u,u+1));)r+=eB(e.subarray(u,u+1)),u+=1;r+=eB(e.subarray(u,u+1)),u+=1,i=eV(e,12),a=eV(e,16),s=eV(e,20),l=eV(e,24),u=28}else if(1===t){u+=4,i=eV(e,u);let t=eV(e,u+=4),a=eV(e,u+=4);for(u+=4,es(o=4294967296*t+a)||(o=Number.MAX_SAFE_INTEGER,eT.warn("Presentation time exceeds safe integer limit and wrapped to max safe integer in parsing emsg box")),s=eV(e,u),u+=4,l=eV(e,u),u+=4;"\x00"!==eB(e.subarray(u,u+1));)n+=eB(e.subarray(u,u+1)),u+=1;for(n+=eB(e.subarray(u,u+1)),u+=1;"\x00"!==eB(e.subarray(u,u+1));)r+=eB(e.subarray(u,u+1)),u+=1;r+=eB(e.subarray(u,u+1)),u+=1}return{schemeIdUri:n,value:r,timeScale:i,presentationTime:o,presentationTimeDelta:a,eventDuration:s,id:l,payload:e.subarray(u,e.byteLength)}}(e);if(rL.test(r.schemeIdUri)){let e=rO(r,t),i=4294967295===r.eventDuration?Number.POSITIVE_INFINITY:r.eventDuration/r.timeScale;i<=.001&&(i=Number.POSITIVE_INFINITY);let a=r.payload;n.samples.push({data:a,len:a.byteLength,dts:e,pts:e,type:rd.emsg,duration:i})}else if(this.config.enableEmsgKLVMetadata&&r.schemeIdUri.startsWith("urn:misb:KLV:bin:1910.1")){let e=rO(r,t);n.samples.push({data:r.payload,len:r.payload.byteLength,dts:e,pts:e,type:rd.misbklv,duration:Number.POSITIVE_INFINITY})}})}return n}demuxSampleAes(e,t,n){return Promise.reject(Error("The MP4 demuxer does not support SAMPLE-AES decryption"))}destroy(){this.config=null,this.remainderData=null,this.videoTrack=this.audioTrack=this.id3Track=this.txtTrack=void 0}}function rO(e,t){return eo(e.presentationTime)?e.presentationTime/e.timeScale:t+e.presentationTimeDelta/e.timeScale}class rR{constructor(e,t,n){this.keyData=void 0,this.decrypter=void 0,this.keyData=n,this.decrypter=new tY(t,{removePKCS7Padding:!1})}decryptBuffer(e){return this.decrypter.decrypt(e,this.keyData.key.buffer,this.keyData.iv.buffer,tK.cbc)}decryptAacSample(e,t,n){let r=e[t].unit;if(r.length<=16)return;let i=r.subarray(16,r.length-r.length%16),a=i.buffer.slice(i.byteOffset,i.byteOffset+i.length);this.decryptBuffer(a).then(i=>{let a=new Uint8Array(i);r.set(a,16),this.decrypter.isSync()||this.decryptAacSamples(e,t+1,n)})}decryptAacSamples(e,t,n){for(;;t++){if(t>=e.length){n();return}if(!(e[t].unit.length<32)&&(this.decryptAacSample(e,t,n),!this.decrypter.isSync()))return}}getAvcEncryptedData(e){let t=16*Math.floor((e.length-48)/160)+16,n=new Int8Array(t),r=0;for(let t=32;t<e.length-16;t+=160,r+=16)n.set(e.subarray(t,t+16),r);return n}getAvcDecryptedUnit(e,t){let n=new Uint8Array(t),r=0;for(let t=32;t<e.length-16;t+=160,r+=16)e.set(n.subarray(r,r+16),t);return e}decryptAvcSample(e,t,n,r,i){let a=e2(i.data),o=this.getAvcEncryptedData(a);this.decryptBuffer(o.buffer).then(o=>{i.data=this.getAvcDecryptedUnit(a,o),this.decrypter.isSync()||this.decryptAvcSamples(e,t,n+1,r)})}decryptAvcSamples(e,t,n,r){if(e instanceof Uint8Array)throw Error("Cannot decrypt samples of type Uint8Array");for(;;t++,n=0){if(t>=e.length){r();return}let i=e[t].units;for(;!(n>=i.length);n++){let a=i[n];if(!(a.data.length<=48)&&(1===a.type||5===a.type)&&(this.decryptAvcSample(e,t,n,r,a),!this.decrypter.isSync()))return}}}}class rD{constructor(){this.VideoSample=null}createVideoSample(e,t,n){return{key:e,frame:!1,pts:t,dts:n,units:[],length:0}}getLastNalUnit(e){var t;let n;let r=this.VideoSample;if(r&&0!==r.units.length||(r=e[e.length-1]),null!=(t=r)&&t.units){let e=r.units;n=e[e.length-1]}return n}pushAccessUnit(e,t){if(e.units.length&&e.frame){if(void 0===e.pts){let n=t.samples,r=n.length;if(r){let t=n[r-1];e.pts=t.pts,e.dts=t.dts}else{t.dropped++;return}}t.samples.push(e)}}parseNALu(e,t,n){let r,i,a;let o=t.byteLength,s=e.naluState||0,l=s,u=[],c=0,d=-1,h=0;for(-1===s&&(d=0,h=this.getNALuType(t,0),s=0,c=1);c<o;){if(r=t[c++],!s){s=r?0:1;continue}if(1===s){s=r?0:2;continue}if(r){if(1===r){if(i=c-s-1,d>=0){let e={data:t.subarray(d,i),type:h};u.push(e)}else{let n=this.getLastNalUnit(e.samples);n&&(l&&c<=4-l&&n.state&&(n.data=n.data.subarray(0,n.data.byteLength-l)),i>0&&(n.data=eX(n.data,t.subarray(0,i)),n.state=0))}c<o?(a=this.getNALuType(t,c),d=c,h=a,s=0):s=-1}else s=0}else s=3}if(d>=0&&s>=0){let e={data:t.subarray(d,o),type:h,state:s};u.push(e)}if(0===u.length){let n=this.getLastNalUnit(e.samples);n&&(n.data=eX(n.data,t))}return e.naluState=s,u}}class rN{constructor(e){this.data=void 0,this.bytesAvailable=void 0,this.word=void 0,this.bitsAvailable=void 0,this.data=e,this.bytesAvailable=e.byteLength,this.word=0,this.bitsAvailable=0}loadWord(){let e=this.data,t=this.bytesAvailable,n=e.byteLength-t,r=new Uint8Array(4),i=Math.min(4,t);if(0===i)throw Error("no bytes available");r.set(e.subarray(n,n+i)),this.word=new DataView(r.buffer).getUint32(0),this.bitsAvailable=8*i,this.bytesAvailable-=i}skipBits(e){let t;e=Math.min(e,8*this.bytesAvailable+this.bitsAvailable),this.bitsAvailable>e||(e-=this.bitsAvailable,t=e>>3,e-=t<<3,this.bytesAvailable-=t,this.loadWord()),this.word<<=e,this.bitsAvailable-=e}readBits(e){let t=Math.min(this.bitsAvailable,e),n=this.word>>>32-t;if(e>32&&eT.error("Cannot read more than 32 bits at a time"),this.bitsAvailable-=t,this.bitsAvailable>0)this.word<<=t;else if(this.bytesAvailable>0)this.loadWord();else throw Error("no bits available");return(t=e-t)>0&&this.bitsAvailable?n<<t|this.readBits(t):n}skipLZ(){let e;for(e=0;e<this.bitsAvailable;++e)if((this.word&2147483648>>>e)!=0)return this.word<<=e,this.bitsAvailable-=e,e;return this.loadWord(),e+this.skipLZ()}skipUEG(){this.skipBits(1+this.skipLZ())}skipEG(){this.skipBits(1+this.skipLZ())}readUEG(){let e=this.skipLZ();return this.readBits(e+1)-1}readEG(){let e=this.readUEG();return 1&e?1+e>>>1:-1*(e>>>1)}readBoolean(){return 1===this.readBits(1)}readUByte(){return this.readBits(8)}readUShort(){return this.readBits(16)}readUInt(){return this.readBits(32)}}class rM extends rD{parsePES(e,t,n,r){let i;let a=this.parseNALu(e,n.data,r),o=this.VideoSample,s=!1;n.data=null,o&&a.length&&!e.audFound&&(this.pushAccessUnit(o,e),o=this.VideoSample=this.createVideoSample(!1,n.pts,n.dts)),a.forEach(r=>{var a,l,u,c,d;switch(r.type){case 1:{let t=!1;i=!0;let a=r.data;if(s&&a.length>4){let e=this.readSliceType(a);(2===e||4===e||7===e||9===e)&&(t=!0)}t&&null!=(u=o)&&u.frame&&!o.key&&(this.pushAccessUnit(o,e),o=this.VideoSample=null),o||(o=this.VideoSample=this.createVideoSample(!0,n.pts,n.dts)),o.frame=!0,o.key=t;break}case 5:i=!0,null!=(a=o)&&a.frame&&!o.key&&(this.pushAccessUnit(o,e),o=this.VideoSample=null),o||(o=this.VideoSample=this.createVideoSample(!0,n.pts,n.dts)),o.key=!0,o.frame=!0;break;case 6:i=!0,e1(r.data,1,n.pts,t.samples);break;case 7:{i=!0,s=!0;let t=r.data,n=this.readSPS(t);if(!e.sps||e.width!==n.width||e.height!==n.height||(null==(c=e.pixelRatio)?void 0:c[0])!==n.pixelRatio[0]||(null==(d=e.pixelRatio)?void 0:d[1])!==n.pixelRatio[1]){e.width=n.width,e.height=n.height,e.pixelRatio=n.pixelRatio,e.sps=[t];let r=t.subarray(1,4),i="avc1.";for(let e=0;e<3;e++){let t=r[e].toString(16);t.length<2&&(t="0"+t),i+=t}e.codec=i}break}case 8:i=!0,e.pps=[r.data];break;case 9:i=!0,e.audFound=!0,null!=(l=o)&&l.frame&&(this.pushAccessUnit(o,e),o=null),o||(o=this.VideoSample=this.createVideoSample(!1,n.pts,n.dts));break;case 12:i=!0;break;default:i=!1}o&&i&&o.units.push(r)}),r&&o&&(this.pushAccessUnit(o,e),this.VideoSample=null)}
40getNALuType(e,t){return 31&e[t]}readSliceType(e){let t=new rN(e);return t.readUByte(),t.readUEG(),t.readUEG()}skipScalingList(e,t){let n=8,r=8;for(let i=0;i<e;i++)0!==r&&(r=(n+t.readEG()+256)%256),n=0===r?n:r}readSPS(e){let t,n,r;let i=new rN(e),a=0,o=0,s=0,l=0,u=i.readUByte.bind(i),c=i.readBits.bind(i),d=i.readUEG.bind(i),h=i.readBoolean.bind(i),f=i.skipBits.bind(i),p=i.skipEG.bind(i),m=i.skipUEG.bind(i),g=this.skipScalingList.bind(this);u();let v=u();if(c(5),f(3),u(),m(),100===v||110===v||122===v||244===v||44===v||83===v||86===v||118===v||128===v){let e=d();if(3===e&&f(1),m(),m(),f(1),h())for(r=0,n=3!==e?8:12;r<n;r++)h()&&g(r<6?16:64,i)}m();let y=d();if(0===y)d();else if(1===y)for(f(1),p(),p(),t=d(),r=0;r<t;r++)p();m(),f(1);let b=d(),A=d(),E=c(1);0===E&&f(1),f(1),h()&&(a=d(),o=d(),s=d(),l=d());let w=[1,1];if(h()&&h())switch(u()){case 1:w=[1,1];break;case 2:w=[12,11];break;case 3:w=[10,11];break;case 4:w=[16,11];break;case 5:w=[40,33];break;case 6:w=[24,11];break;case 7:w=[20,11];break;case 8:w=[32,11];break;case 9:w=[80,33];break;case 10:w=[18,11];break;case 11:w=[15,11];break;case 12:w=[64,33];break;case 13:w=[160,99];break;case 14:w=[4,3];break;case 15:w=[3,2];break;case 16:w=[2,1];break;case 255:w=[u()<<8|u(),u()<<8|u()]}return{width:Math.ceil((b+1)*16-2*a-2*o),height:(2-E)*(A+1)*16-(E?2:4)*(s+l),pixelRatio:w}}}class rj extends rD{constructor(...e){super(...e),this.initVPS=null}parsePES(e,t,n,r){let i;let a=this.parseNALu(e,n.data,r),o=this.VideoSample,s=!1;n.data=null,o&&a.length&&!e.audFound&&(this.pushAccessUnit(o,e),o=this.VideoSample=this.createVideoSample(!1,n.pts,n.dts)),a.forEach(r=>{var a,l,u;switch(r.type){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 9:o||(o=this.VideoSample=this.createVideoSample(!1,n.pts,n.dts)),o.frame=!0,i=!0;break;case 16:case 17:case 18:case 21:i=!0,s&&null!=(u=o)&&u.frame&&!o.key&&(this.pushAccessUnit(o,e),o=this.VideoSample=null),o||(o=this.VideoSample=this.createVideoSample(!0,n.pts,n.dts)),o.key=!0,o.frame=!0;break;case 19:case 20:i=!0,null!=(a=o)&&a.frame&&!o.key&&(this.pushAccessUnit(o,e),o=this.VideoSample=null),o||(o=this.VideoSample=this.createVideoSample(!0,n.pts,n.dts)),o.key=!0,o.frame=!0;break;case 39:i=!0,e1(r.data,2,n.pts,t.samples);break;case 32:i=!0,e.vps||("object"!=typeof e.params&&(e.params={}),e.params=eg(e.params,this.readVPS(r.data)),this.initVPS=r.data),e.vps=[r.data];break;case 33:if(i=!0,s=!0,void 0===e.vps||e.vps[0]===this.initVPS||void 0===e.sps||this.matchSPS(e.sps[0],r.data)||(this.initVPS=e.vps[0],e.sps=e.pps=void 0),!e.sps){let t=this.readSPS(r.data);for(let n in e.width=t.width,e.height=t.height,e.pixelRatio=t.pixelRatio,e.codec=t.codecString,e.sps=[],"object"!=typeof e.params&&(e.params={}),t.params)e.params[n]=t.params[n]}this.pushParameterSet(e.sps,r.data,e.vps),o||(o=this.VideoSample=this.createVideoSample(!0,n.pts,n.dts)),o.key=!0;break;case 34:if(i=!0,"object"==typeof e.params){if(!e.pps){e.pps=[];let t=this.readPPS(r.data);for(let n in t)e.params[n]=t[n]}this.pushParameterSet(e.pps,r.data,e.vps)}break;case 35:i=!0,e.audFound=!0,null!=(l=o)&&l.frame&&(this.pushAccessUnit(o,e),o=null),o||(o=this.VideoSample=this.createVideoSample(!1,n.pts,n.dts));break;default:i=!1}o&&i&&o.units.push(r)}),r&&o&&(this.pushAccessUnit(o,e),this.VideoSample=null)}pushParameterSet(e,t,n){(!n||n[0]!==this.initVPS)&&(n||e.length)||e.push(t)}getNALuType(e,t){return(126&e[t])>>>1}ebsp2rbsp(e){let t=new Uint8Array(e.byteLength),n=0;for(let r=0;r<e.byteLength;r++)(!(r>=2)||3!==e[r]||0!==e[r-1]||0!==e[r-2])&&(t[n]=e[r],n++);return new Uint8Array(t.buffer,0,n)}pushAccessUnit(e,t){super.pushAccessUnit(e,t),this.initVPS&&(this.initVPS=null)}readVPS(e){let t=new rN(e);return t.readUByte(),t.readUByte(),t.readBits(4),t.skipBits(2),t.readBits(6),{numTemporalLayers:t.readBits(3)+1,temporalIdNested:t.readBoolean()}}readSPS(e){let t=new rN(this.ebsp2rbsp(e));t.readUByte(),t.readUByte(),t.readBits(4);let n=t.readBits(3);t.readBoolean();let r=t.readBits(2),i=t.readBoolean(),a=t.readBits(5),o=t.readUByte(),s=t.readUByte(),l=t.readUByte(),u=t.readUByte(),c=t.readUByte(),d=t.readUByte(),h=t.readUByte(),f=t.readUByte(),p=t.readUByte(),m=t.readUByte(),g=t.readUByte(),v=[],y=[];for(let e=0;e<n;e++)v.push(t.readBoolean()),y.push(t.readBoolean());if(n>0)for(let e=n;e<8;e++)t.readBits(2);for(let e=0;e<n;e++)v[e]&&(t.readUByte(),t.readUByte(),t.readUByte(),t.readUByte(),t.readUByte(),t.readUByte(),t.readUByte(),t.readUByte(),t.readUByte(),t.readUByte(),t.readUByte()),y[e]&&t.readUByte();t.readUEG();let b=t.readUEG();3==b&&t.skipBits(1);let A=t.readUEG(),E=t.readUEG(),w=t.readBoolean(),x=0,T=0,S=0,_=0;
40w&&(x+=t.readUEG(),T+=t.readUEG(),S+=t.readUEG(),_+=t.readUEG());let C=t.readUEG(),k=t.readUEG(),I=t.readUEG(),L=t.readBoolean();for(let e=L?0:n;e<=n;e++)t.skipUEG(),t.skipUEG(),t.skipUEG();if(t.skipUEG(),t.skipUEG(),t.skipUEG(),t.skipUEG(),t.skipUEG(),t.skipUEG(),t.readBoolean()&&t.readBoolean())for(let e=0;e<4;e++)for(let n=0;n<(3===e?2:6);n++)if(t.readBoolean()){let n=Math.min(64,1<<4+(e<<1));e>1&&t.readEG();for(let e=0;e<n;e++)t.readEG()}else t.readUEG();t.readBoolean(),t.readBoolean(),t.readBoolean()&&(t.readUByte(),t.skipUEG(),t.skipUEG(),t.readBoolean());let P=t.readUEG(),O=0;for(let e=0;e<P;e++){let n=!1;if(0!==e&&(n=t.readBoolean()),n){e===P&&t.readUEG(),t.readBoolean(),t.readUEG();let n=0;for(let e=0;e<=O;e++){let e=t.readBoolean(),r=!1;e||(r=t.readBoolean()),(e||r)&&n++}O=n}else{let e=t.readUEG(),n=t.readUEG();O=e+n;for(let n=0;n<e;n++)t.readUEG(),t.readBoolean();for(let e=0;e<n;e++)t.readUEG(),t.readBoolean()}}if(t.readBoolean()){let e=t.readUEG();for(let n=0;n<e;n++){for(let e=0;e<I+4;e++)t.readBits(1);t.readBits(1)}}let R=0,D=1,N=1,M=!0,j=1,F=0;t.readBoolean(),t.readBoolean();let B=!1;if(t.readBoolean()){if(t.readBoolean()){let e=t.readUByte();e>0&&e<16?(D=[1,12,10,16,40,24,20,32,80,18,15,64,160,4,3,2][e-1],N=[1,11,11,11,33,11,11,11,33,11,11,33,99,3,2,1][e-1]):255===e&&(D=t.readBits(16),N=t.readBits(16))}if(t.readBoolean()&&t.readBoolean(),t.readBoolean()&&(t.readBits(3),t.readBoolean(),t.readBoolean()&&(t.readUByte(),t.readUByte(),t.readUByte())),t.readBoolean()&&(t.readUEG(),t.readUEG()),t.readBoolean(),t.readBoolean(),t.readBoolean(),(B=t.readBoolean())&&(x+=t.readUEG(),T+=t.readUEG(),S+=t.readUEG(),_+=t.readUEG()),t.readBoolean()&&(j=t.readBits(32),F=t.readBits(32),t.readBoolean()&&t.readUEG(),t.readBoolean())){let e=t.readBoolean(),r=t.readBoolean(),i=!1;(e||r)&&((i=t.readBoolean())&&(t.readUByte(),t.readBits(5),t.readBoolean(),t.readBits(5)),t.readBits(4),t.readBits(4),i&&t.readBits(4),t.readBits(5),t.readBits(5),t.readBits(5));for(let a=0;a<=n;a++){let n=(M=t.readBoolean())||t.readBoolean(),a=!1;n?t.readEG():a=t.readBoolean();let o=a?1:t.readUEG()+1;if(e)for(let e=0;e<o;e++)t.readUEG(),t.readUEG(),i&&(t.readUEG(),t.readUEG()),t.skipBits(1);if(r)for(let e=0;e<o;e++)t.readUEG(),t.readUEG(),i&&(t.readUEG(),t.readUEG()),t.skipBits(1)}}t.readBoolean()&&(t.readBoolean(),t.readBoolean(),t.readBoolean(),R=t.readUEG())}let U=A,V=E;if(w||B){let e=1,t=1;1===b?e=t=2:2==b&&(e=2),U=A-e*T-e*x,V=E-t*_-t*S}let z=r?["A","B","C"][r]:"",q=o<<24|s<<16|l<<8|u,Q=0;for(let e=0;e<32;e++)Q=(Q|(q>>e&1)<<31-e)>>>0;let H=Q.toString(16);return 1===a&&"2"===H&&(H="6"),{codecString:`hvc1.${z}${a}.${H}.${i?"H":"L"}${g}.B0`,params:{general_tier_flag:i,general_profile_idc:a,general_profile_space:r,general_profile_compatibility_flags:[o,s,l,u],general_constraint_indicator_flags:[c,d,h,f,p,m],general_level_idc:g,bit_depth:C+8,bit_depth_luma_minus8:C,bit_depth_chroma_minus8:k,min_spatial_segmentation_idc:R,chroma_format_idc:b,frame_rate:{fixed:M,fps:F/j}},width:U,height:V,pixelRatio:[D,N]}}readPPS(e){let t=new rN(this.ebsp2rbsp(e));t.readUByte(),t.readUByte(),t.skipUEG(),t.skipUEG(),t.skipBits(2),t.skipBits(3),t.skipBits(2),t.skipUEG(),t.skipUEG(),t.skipEG(),t.skipBits(2),t.readBoolean()&&t.skipUEG(),t.skipEG(),t.skipEG(),t.skipBits(4);let n=t.readBoolean(),r=t.readBoolean(),i=1;return r&&n?i=0:r?i=3:n&&(i=2),{parallelismType:i}}matchSPS(e,t){return String.fromCharCode.apply(null,e).substr(3)===String.fromCharCode.apply(null,t).substr(3)}}class rF{constructor(e,t,n,r){this.logger=void 0,this.observer=void 0,this.config=void 0,this.typeSupported=void 0,this.sampleAes=null,this.pmtParsed=!1,this.audioCodec=void 0,this.videoCodec=void 0,this._pmtId=-1,this._videoTrack=void 0,this._audioTrack=void 0,this._id3Track=void 0,this._txtTrack=void 0,this.aacOverFlow=null,this.remainderData=null,this.videoParser=void 0,this.observer=e,this.config=t,this.typeSupported=n,this.logger=r,this.videoParser=null}static probe(e,t){let n=rF.syncOffset(e);return n>0&&t.warn(`MPEG2-TS detected but first sync word found @ offset ${n}`),-1!==n}static syncOffset(e){let t=e.length,n=Math.min(940,t-188)+1,r=0;for(;r<n;){let i=!1,a=-1,o=0;for(let s=r;s<t;s+=188)if(71===e[s]&&(t-s==188||71===e[s+188])){if(o++,-1===a&&0!==(a=s)&&(n=Math.min(a+18612,e.length-188)+1),i||(i=0===rB(e,s)),i&&o>1&&(0===a&&o>2||s+188>n))return a}else if(o)return -1;else break;r++}return -1}static createTrack(e,t){return{container:"video"===e||"audio"===e?"video/mp2t":void 0,type:e,id:eF[e],pid:-1,inputTimeScale:9e4,sequenceNumber:0,samples:[],dropped:0,duration:"audio"===e?t:void 0}}resetInitSegment(e,t,n,r){this.pmtParsed=!1,this._pmtId=-1,this._videoTrack=rF.createTrack("video"),this._videoTrack.duration=r,this._audioTrack=rF.createTrack("audio",r),this._id3Track=rF.createTrack("id3"),this._txtTrack=rF.createTrack("text"),this._audioTrack.segmentCodec="aac",this.aacOverFlow=null,this.remainderData=null,this.audioCodec=t,this.videoCodec=n}resetTimeStamp(){}resetContiguity(){let{_audioTrack:e,_videoTrack:t,_id3Track:n}=this;e&&(e.pesData=null),t&&(t.pesData=null),n&&(n.pesData=null),this.aacOverFlow=null,this.remainderData=null}demux(e,t,n=!1,r=!1){let i;
40n||(this.sampleAes=null);let a=this._videoTrack,o=this._audioTrack,s=this._id3Track,l=this._txtTrack,u=a.pid,c=a.pesData,d=o.pid,h=s.pid,f=o.pesData,p=s.pesData,m=null,g=this.pmtParsed,v=this._pmtId,y=e.length;if(this.remainderData&&(y=(e=eX(this.remainderData,e)).length,this.remainderData=null),y<188&&!r)return this.remainderData=e,{audioTrack:o,videoTrack:a,id3Track:s,textTrack:l};let b=Math.max(0,rF.syncOffset(e));(y-=(y-b)%188)<e.byteLength&&!r&&(this.remainderData=new Uint8Array(e.buffer,y,e.buffer.byteLength-y));let A=0;for(let t=b;t<y;t+=188)if(71===e[t]){let r;let y=!!(64&e[t+1]),A=rB(e,t);if((48&e[t+3])>>4>1){if((r=t+5+e[t+4])===t+188)continue}else r=t+4;switch(A){case u:if(y){if(c&&(i=rz(c,this.logger))){if(null===this.videoParser)switch(a.segmentCodec){case"avc":this.videoParser=new rM;break;case"hevc":this.videoParser=new rj}null!==this.videoParser&&this.videoParser.parsePES(a,l,i,!1)}c={data:[],size:0}}c&&(c.data.push(e.subarray(r,t+188)),c.size+=t+188-r);break;case d:if(y){if(f&&(i=rz(f,this.logger)))switch(o.segmentCodec){case"aac":this.parseAACPES(o,i);break;case"mp3":this.parseMPEGPES(o,i);break;case"ac3":this.parseAC3PES(o,i)}f={data:[],size:0}}f&&(f.data.push(e.subarray(r,t+188)),f.size+=t+188-r);break;case h:y&&(p&&(i=rz(p,this.logger))&&this.parseID3PES(s,i),p={data:[],size:0}),p&&(p.data.push(e.subarray(r,t+188)),p.size+=t+188-r);break;case 0:var E,w;y&&(r+=e[r]+1),v=this._pmtId=(31&(E=e)[(w=r)+10])<<8|E[w+11];break;case v:{y&&(r+=e[r]+1);let i=function(e,t,n,r,i,a){let o={audioPid:-1,videoPid:-1,id3Pid:-1,segmentVideoCodec:"avc",segmentAudioCodec:"aac"},s=(15&e[t+1])<<8|e[t+2],l=t+3+s-4,u=(15&e[t+10])<<8|e[t+11];for(t+=12+u;t<l;){let s=rB(e,t),l=(15&e[t+3])<<8|e[t+4];switch(e[t]){case 207:if(!r){rV("ADTS AAC",a);break}case 15:-1===o.audioPid&&(o.audioPid=s);break;case 21:-1===o.id3Pid&&(o.id3Pid=s);break;case 219:if(!r){rV("H.264",a);break}case 27:-1===o.videoPid&&(o.videoPid=s);break;case 3:case 4:n.mpeg||n.mp3?-1===o.audioPid&&(o.audioPid=s,o.segmentAudioCodec="mp3"):a.log("MPEG audio found, not supported in this browser");break;case 193:if(!r){rV("AC-3",a);break}case 129:n.ac3?-1===o.audioPid&&(o.audioPid=s,o.segmentAudioCodec="ac3"):a.log("AC-3 audio found, not supported in this browser");break;case 6:if(-1===o.audioPid&&l>0){let r=t+5,i=l;for(;i>2;){106===e[r]&&(!0!==n.ac3?a.log("AC-3 audio found, not supported in this browser for now"):(o.audioPid=s,o.segmentAudioCodec="ac3"));let t=e[r+1]+2;r+=t,i-=t}}break;case 194:case 135:return rU(i,Error("Unsupported EC-3 in M2TS found"),void 0,a),o;case 36:-1===o.videoPid&&(o.videoPid=s,o.segmentVideoCodec="hevc",a.log("HEVC in M2TS found"))}t+=l+5}return o}(e,r,this.typeSupported,n,this.observer,this.logger);(u=i.videoPid)>0&&(a.pid=u,a.segmentCodec=i.segmentVideoCodec),(d=i.audioPid)>0&&(o.pid=d,o.segmentCodec=i.segmentAudioCodec),(h=i.id3Pid)>0&&(s.pid=h),null===m||g||(this.logger.warn(`MPEG-TS PMT found at ${t} after unknown PID '${m}'. Backtracking to sync byte @${b} to parse all TS packets.`),m=null,t=b-188),g=this.pmtParsed=!0;break}case 17:case 8191:break;default:m=A}}else A++;A>0&&rU(this.observer,Error(`Found ${A} TS packet/s that do not start with 0x47`),void 0,this.logger),a.pesData=c,o.pesData=f,s.pesData=p;let x={audioTrack:o,videoTrack:a,id3Track:s,textTrack:l};return r&&this.extractRemainingSamples(x),x}flush(){let e;let{remainderData:t}=this;return(this.remainderData=null,e=t?this.demux(t,-1,!1,!0):{videoTrack:this._videoTrack,audioTrack:this._audioTrack,id3Track:this._id3Track,textTrack:this._txtTrack},this.extractRemainingSamples(e),this.sampleAes)?this.decrypt(e,this.sampleAes):e}extractRemainingSamples(e){let t;let{audioTrack:n,videoTrack:r,id3Track:i,textTrack:a}=e,o=r.pesData,s=n.pesData,l=i.pesData;if(o&&(t=rz(o,this.logger))){if(null===this.videoParser)switch(r.segmentCodec){case"avc":this.videoParser=new rM;break;case"hevc":this.videoParser=new rj}null!==this.videoParser&&(this.videoParser.parsePES(r,a,t,!0),r.pesData=null)}else r.pesData=o;if(s&&(t=rz(s,this.logger))){switch(n.segmentCodec){case"aac":this.parseAACPES(n,t);break;case"mp3":this.parseMPEGPES(n,t);break;case"ac3":this.parseAC3PES(n,t)}n.pesData=null}else null!=s&&s.size&&this.logger.log("last AAC PES packet truncated,might overlap between fragments"),n.pesData=s;l&&(t=rz(l,this.logger))?(this.parseID3PES(i,t),i.pesData=null):i.pesData=l}
40demuxSampleAes(e,t,n){let r=this.demux(e,n,!0,!this.config.progressive),i=this.sampleAes=new rR(this.observer,this.config,t);return this.decrypt(r,i)}decrypt(e,t){return new Promise(n=>{let{audioTrack:r,videoTrack:i}=e;r.samples&&"aac"===r.segmentCodec?t.decryptAacSamples(r.samples,0,()=>{i.samples?t.decryptAvcSamples(i.samples,0,0,()=>{n(e)}):n(e)}):i.samples&&t.decryptAvcSamples(i.samples,0,0,()=>{n(e)})})}destroy(){this.observer&&this.observer.removeAllListeners(),this.config=this.logger=this.observer=null,this.aacOverFlow=this.videoParser=this.remainderData=this.sampleAes=null,this._videoTrack=this._audioTrack=this._id3Track=this._txtTrack=void 0}parseAACPES(e,t){let n,r,i,a,o=0,s=this.aacOverFlow,l=t.data;if(s){this.aacOverFlow=null;let t=s.missing,n=s.sample.unit.byteLength;-1===t?l=eX(s.sample.unit,l):(s.sample.unit.set(l.subarray(0,t),n-t),e.samples.push(s.sample),o=s.missing)}for(n=o,r=l.length;n<r-1&&!ri(l,n);n++);if(n!==o){let e;let t=n<r-1;if(e=t?`AAC PES did not start with ADTS header,offset:${n}`:"No ADTS header found in AAC PES",rU(this.observer,Error(e),t,this.logger),!t)return}if(ra(e,this.observer,l,n,this.audioCodec),void 0!==t.pts)i=t.pts;else if(s){let t=9216e4/e.samplerate;i=s.sample.pts+t}else{this.logger.warn("[tsdemuxer]: AAC PES unknown PTS");return}let u=0;for(;n<r;){if(a=ro(e,l,n,i,u),n+=a.length,a.missing){this.aacOverFlow=a;break}for(u++;n<r-1&&!ri(l,n);n++);}}parseMPEGPES(e,t){let n=t.data,r=n.length,i=0,a=0,o=t.pts;if(void 0===o){this.logger.warn("[tsdemuxer]: MPEG PES unknown PTS");return}for(;a<r;)if(rx(n,a)){let t=rA(e,n,a,o,i);if(t)a+=t.length,i++;else break}else a++}parseAC3PES(e,t){{let n;let r=t.data,i=t.pts;if(void 0===i){this.logger.warn("[tsdemuxer]: AC3 PES unknown PTS");return}let a=r.length,o=0,s=0;for(;s<a&&(n=rk(e,r,s,i,o++))>0;)s+=n}}parseID3PES(e,t){if(void 0===t.pts){this.logger.warn("[tsdemuxer]: ID3 PES unknown PTS");return}let n=eg({},t,{type:this._videoTrack?rd.emsg:rd.audioId3,duration:Number.POSITIVE_INFINITY});e.samples.push(n)}}function rB(e,t){return((31&e[t+1])<<8)+e[t+2]}function rU(e,t,n,r){r.warn(`parsing error: ${t.message}`),e.emit(ed.ERROR,ed.ERROR,{type:eu.MEDIA_ERROR,details:ec.FRAG_PARSING_ERROR,fatal:!1,levelRetry:n,error:t,reason:t.message})}function rV(e,t){t.log(`${e} with AES-128-CBC encryption found in unencrypted stream`)}function rz(e,t){let n,r,i,a,o,s=0,l=e.data;if(!e||0===e.size)return null;for(;l[0].length<19&&l.length>1;)l[0]=eX(l[0],l[1]),l.splice(1,1);if(1===((n=l[0])[0]<<16)+(n[1]<<8)+n[2]){if((r=(n[4]<<8)+n[5])&&r>e.size-6)return null;let u=n[7];192&u&&(a=(14&n[9])*536870912+(255&n[10])*4194304+(254&n[11])*16384+(255&n[12])*128+(254&n[13])/2,64&u?a-(o=(14&n[14])*536870912+(255&n[15])*4194304+(254&n[16])*16384+(255&n[17])*128+(254&n[18])/2)>54e5&&(t.warn(`${Math.round((a-o)/9e4)}s delta between PTS and DTS, align them`),a=o):o=a);let c=(i=n[8])+9;if(e.size<=c)return null;e.size-=c;let d=new Uint8Array(e.size);for(let e=0,t=l.length;e<t;e++){let t=(n=l[e]).byteLength;if(c){if(c>t){c-=t;continue}n=n.subarray(c),t-=c,c=0}d.set(n,s),s+=t}return r&&(r-=i+3),{data:d,pts:a,dts:o,len:r}}return null}class rq{static getSilentFrame(e,t){if("mp4a.40.2"===e){if(1===t)return new Uint8Array([0,200,0,128,35,128]);if(2===t)return new Uint8Array([33,0,73,144,2,25,0,35,128]);if(3===t)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,142]);if(4===t)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,128,44,128,8,2,56]);else if(5===t)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,130,48,4,153,0,33,144,2,56]);else if(6===t)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,130,48,4,153,0,33,144,2,0,178,0,32,8,224])}else{if(1===t)return new Uint8Array([1,64,34,128,163,78,230,128,186,8,0,0,0,28,6,241,193,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94]);if(2===t||3===t)return new Uint8Array([1,64,34,128,163,94,230,128,186,8,0,0,0,0,149,0,6,241,161,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94])}}}class rQ{static init(){let e;for(e in rQ.types={avc1:[],avcC:[],hvc1:[],hvcC:[],btrt:[],dinf:[],dref:[],esds:[],ftyp:[],hdlr:[],mdat:[],mdhd:[],mdia:[],mfhd:[],minf:[],moof:[],moov:[],mp4a:[],".mp3":[],dac3:[],"ac-3":[],mvex:[],mvhd:[],pasp:[],sdtp:[],stbl:[],stco:[],stsc:[],stsd:[],stsz:[],stts:[],tfdt:[],tfhd:[],traf:[],trak:[],trun:[],trex:[],tkhd:[],vmhd:[],smhd:[]},rQ.types)rQ.types.hasOwnProperty(e)&&(rQ.types[e]=[e.charCodeAt(0),e.charCodeAt(1),e.charCodeAt(2),e.charCodeAt(3)]);let t=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]),n=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]);rQ.HDLR_TYPES={video:t,audio:n};let r=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,12,117,114,108,32,0,0,0,1]),i=new Uint8Array([0,0,0,0,0,0,0,0]);rQ.STTS=rQ.STSC=rQ.STCO=i,rQ.STSZ=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0]),rQ.VMHD=new Uint8Array([0,0,0,1,0,0,0,0,0,0,0,0]),rQ.SMHD=new Uint8Array([0,0,0,0,0,0,0,0]),rQ.STSD=new Uint8Array([0,0,0,0,0,0,0,1]);let a=new Uint8Array([105,115,111,109]),o=new Uint8Array([97,118,99,49]),s=new Uint8Array([0,0,0,1]);rQ.FTYP=rQ.box(rQ.types.ftyp,a,s,a,o),rQ.DINF=rQ.box(rQ.types.dinf,rQ.box(rQ.types.dref,r))}static box(e,...t){let n=8,r=t.length,i=r;for(;r--;)n+=t[r].byteLength;let a=new Uint8Array(n);for(a[0]=n>>24&255,a[1]=n>>16&255,a[2]=n>>8&255,a[3]=255&n,a.set(e,4),r=0,n=8;r<i;r++)a.set(t[r],n),n+=t[r].byteLength;return a}static hdlr(e){return rQ.box(rQ.types.hdlr,rQ.HDLR_TYPES[e])}static mdat(e){return rQ.box(rQ.types.mdat,e)}static mdhd(e,t){let n=Math.floor((t*=e)/4294967296),r=Math.floor(t%4294967296);return rQ.box(rQ.types.mdhd,new Uint8Array([1,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3,e>>24&255,e>>16&255,e>>8&255,255&e,n>>24,n>>16&255,n>>8&255,255&n,r>>24,r>>16&255,r>>8&255,255&r,85,196,0,0]))}static mdia(e){return rQ.box(rQ.types.mdia,rQ.mdhd(e.timescale||0,e.duration||0),rQ.hdlr(e.type),rQ.minf(e))}static mfhd(e){return rQ.box(rQ.types.mfhd,new Uint8Array([0,0,0,0,e>>24,e>>16&255,e>>8&255,255&e]))}static minf(e){return"audio"===e.type?rQ.box(rQ.types.minf,rQ.box(rQ.types.smhd,rQ.SMHD),rQ.DINF,rQ.stbl(e)):rQ.box(rQ.types.minf,rQ.box(rQ.types.vmhd,rQ.VMHD),rQ.DINF,rQ.stbl(e))}static moof(e,t,n){return rQ.box(rQ.types.moof,rQ.mfhd(e),rQ.traf(n,t))}static moov(e){let t=e.length,n=[];for(;t--;)n[t]=rQ.trak(e[t]);return rQ.box.apply(null,[rQ.types.moov,rQ.mvhd(e[0].timescale||0,e[0].duration||0)].concat(n).concat(rQ.mvex(e)))}static mvex(e){let t=e.length,n=[];for(;t--;)n[t]=rQ.trex(e[t]);return rQ.box.apply(null,[rQ.types.mvex,...n])}static mvhd(e,t){let n=Math.floor((t*=e)/4294967296),r=Math.floor(t%4294967296),i=new Uint8Array([1,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3,e>>24&255,e>>16&255,e>>8&255,255&e,n>>24,n>>16&255,n>>8&255,255&n,r>>24,r>>16&255,r>>8&255,255&r,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 rQ.box(rQ.types.mvhd,i)}static sdtp(e){let t,n;let r=e.samples||[],i=new Uint8Array(4+r.length);for(t=0;t<r.length;t++)n=r[t].flags,i[t+4]=n.dependsOn<<4|n.isDependedOn<<2|n.hasRedundancy;return rQ.box(rQ.types.sdtp,i)}static stbl(e){return rQ.box(rQ.types.stbl,rQ.stsd(e),rQ.box(rQ.types.stts,rQ.STTS),rQ.box(rQ.types.stsc,rQ.STSC),rQ.box(rQ.types.stsz,rQ.STSZ),rQ.box(rQ.types.stco,rQ.STCO))}static avc1(e){let t,n,r,i=[],a=[];for(t=0;t<e.sps.length;t++)r=(n=e.sps[t]).byteLength,i.push(r>>>8&255),i.push(255&r),i=i.concat(Array.prototype.slice.call(n));for(t=0;t<e.pps.length;t++)r=(n=e.pps[t]).byteLength,a.push(r>>>8&255),a.push(255&r),a=a.concat(Array.prototype.slice.call(n));let o=rQ.box(rQ.types.avcC,new Uint8Array([1,i[3],i[4],i[5],255,224|e.sps.length].concat(i).c
40oncat([e.pps.length]).concat(a))),s=e.width,l=e.height,u=e.pixelRatio[0],c=e.pixelRatio[1];return rQ.box(rQ.types.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,s>>8&255,255&s,l>>8&255,255&l,0,72,0,0,0,72,0,0,0,0,0,0,0,1,18,100,97,105,108,121,109,111,116,105,111,110,47,104,108,115,46,106,115,0,0,0,0,0,0,0,0,0,0,0,0,0,0,24,17,17]),o,rQ.box(rQ.types.btrt,new Uint8Array([0,28,156,128,0,45,198,192,0,45,198,192])),rQ.box(rQ.types.pasp,new Uint8Array([u>>24,u>>16&255,u>>8&255,255&u,c>>24,c>>16&255,c>>8&255,255&c])))}static esds(e){let t=e.config;return new Uint8Array([0,0,0,0,3,25,0,1,0,4,17,64,21,0,0,0,0,0,0,0,0,0,0,0,5,2,...t,6,1,2])}static audioStsd(e){let t=e.samplerate||0;return new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,e.channelCount||0,0,16,0,0,0,0,t>>8&255,255&t,0,0])}static mp4a(e){return rQ.box(rQ.types.mp4a,rQ.audioStsd(e),rQ.box(rQ.types.esds,rQ.esds(e)))}static mp3(e){return rQ.box(rQ.types[".mp3"],rQ.audioStsd(e))}static ac3(e){return rQ.box(rQ.types["ac-3"],rQ.audioStsd(e),rQ.box(rQ.types.dac3,e.config))}static stsd(e){let{segmentCodec:t}=e;if("audio"===e.type){if("aac"===t)return rQ.box(rQ.types.stsd,rQ.STSD,rQ.mp4a(e));if("ac3"===t&&e.config)return rQ.box(rQ.types.stsd,rQ.STSD,rQ.ac3(e));if("mp3"===t&&"mp3"===e.codec)return rQ.box(rQ.types.stsd,rQ.STSD,rQ.mp3(e))}else if(e.pps&&e.sps){if("avc"===t)return rQ.box(rQ.types.stsd,rQ.STSD,rQ.avc1(e));if("hevc"===t&&e.vps)return rQ.box(rQ.types.stsd,rQ.STSD,rQ.hvc1(e))}else throw Error("video track missing pps or sps");throw Error(`unsupported ${e.type} segment codec (${t}/${e.codec})`)}static tkhd(e){let t=e.id,n=(e.duration||0)*(e.timescale||0),r=e.width||0,i=e.height||0,a=Math.floor(n/4294967296),o=Math.floor(n%4294967296);return rQ.box(rQ.types.tkhd,new Uint8Array([1,0,0,7,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3,t>>24&255,t>>16&255,t>>8&255,255&t,0,0,0,0,a>>24,a>>16&255,a>>8&255,255&a,o>>24,o>>16&255,o>>8&255,255&o,0,0,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,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,r>>8&255,255&r,0,0,i>>8&255,255&i,0,0]))}static traf(e,t){let n=rQ.sdtp(e),r=e.id,i=Math.floor(t/4294967296),a=Math.floor(t%4294967296);return rQ.box(rQ.types.traf,rQ.box(rQ.types.tfhd,new Uint8Array([0,0,0,0,r>>24,r>>16&255,r>>8&255,255&r])),rQ.box(rQ.types.tfdt,new Uint8Array([1,0,0,0,i>>24,i>>16&255,i>>8&255,255&i,a>>24,a>>16&255,a>>8&255,255&a])),rQ.trun(e,n.length+16+20+8+16+8+8),n)}static trak(e){return e.duration=e.duration||4294967295,rQ.box(rQ.types.trak,rQ.tkhd(e),rQ.mdia(e))}static trex(e){let t=e.id;return rQ.box(rQ.types.trex,new Uint8Array([0,0,0,0,t>>24,t>>16&255,t>>8&255,255&t,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,1]))}static trun(e,t){let n,r,i,a,o,s;let l=e.samples||[],u=l.length,c=12+16*u,d=new Uint8Array(c);for(t+=8+c,d.set(["video"===e.type?1:0,0,15,1,u>>>24&255,u>>>16&255,u>>>8&255,255&u,t>>>24&255,t>>>16&255,t>>>8&255,255&t],0),n=0;n<u;n++)i=(r=l[n]).duration,a=r.size,o=r.flags,s=r.cts,d.set([i>>>24&255,i>>>16&255,i>>>8&255,255&i,a>>>24&255,a>>>16&255,a>>>8&255,255&a,o.isLeading<<2|o.dependsOn,o.isDependedOn<<6|o.hasRedundancy<<4|o.paddingValue<<1|o.isNonSync,61440&o.degradPrio,15&o.degradPrio,s>>>24&255,s>>>16&255,s>>>8&255,255&s],12+16*n);return rQ.box(rQ.types.trun,d)}static initSegment(e){rQ.types||rQ.init();let t=rQ.moov(e);return eX(rQ.FTYP,t)}static hvc1(e){let t=e.params,n=[e.vps,e.sps,e.pps],r=new Uint8Array([1,t.general_profile_space<<6|(t.general_tier_flag?32:0)|t.general_profile_idc,t.general_profile_compatibility_flags[0],t.general_profile_compatibility_flags[1],t.general_profile_compatibility_flags[2],t.general_profile_compatibility_flags[3],t.general_constraint_indicator_flags[0],t.general_constraint_indicator_flags[1],t.general_constraint_indicator_flags[2],t.general_constraint_indicator_flags[3],t.general_constraint_indicator_flags[4],t.general_constraint_indicator_flags[5],t.general_level_idc,240|t.min_spatial_segmentation_idc>>8,255&t.min_spatial_segmentation_idc,252|t.parallelismType,252|t.chroma_format_idc,248|t.bit_depth_luma_minus8,248|t.bit_depth_chroma_minus8,0,parseInt(t.frame_rate.fps),3|t.temporal_id_nested<<2|t.num_temporal_layers<<3|(t.frame_rate.fixed?64:0),n.length]),i=r.length;for(let e=0;e<n.length;e+=1){i+=3;for(let t=0;t<n[e].length;t+=1)i+=2+n[e][t].length}let a=new Uint8Array(i);a.set(r,0),i=r.length;let o=n.length-1;for(let e=0;e<n.length;e+=1){a.set(new Uint8Array([32+e|(e===o?128:0),0,n[e].length]),i),i+=3;for(let t=0;t<n[e].length;t+=1)a.set(new Uint8Array([n[e][t].length>>8,255&n[e][t].length]),i),i+=2,a.set(n[e][t],i),i+=n[e][t].length}let s=rQ.box(rQ.types.hvcC,a),l=e.width,u=e.height,c=e.pixelRatio[0],d=e.pixelRatio[1];return rQ.box(rQ.types.hvc1,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,l>>8&255,255&l,u>>8&255,255&u,0,72,0,0,0,72,0,0,0,0,0,0,0,1,18,100,97,105,108,121,109,111,116,105,111,110,47,104,108,115,46,106,115,0,0,0,0,0,0,0,0,0,0,0,0,0,0,24,17,17]),s,rQ.box(rQ.types.btrt,new Uint8Array([0,28,156,128,0,45,198,192,0,45,198,192])),rQ.box(rQ.types.pasp,new Uint8Array([c>>24,c>>16&255,c>>8&255,255&c,d>>24,d>>16&255,d>>8&255,255&d])))}}function rH(e,t,n=1,r=!1){let i=e*t*n;return r?Math.round(i):i}function rG(e,t=!1){return rH(e,1e3,11111111111111112e-21,t)}rQ.types=void 0,rQ.HDLR_TYPES=void 0,rQ.STTS=void 0,rQ.STSC=void 0,rQ.STCO=void 0,rQ.STSZ=void 0,rQ.VMHD=void 0,rQ.SMHD=void 0,rQ.STSD=void 0,rQ.FTYP=void 0,rQ.DINF=void 0;let rK=null,r$=null;function rW(e,t,n,r){return{duration:t,size:n,cts:r,flags:{isLeading:0,isDependedOn:0,hasRedundancy:0,degradPrio:0,dependsOn:e?2:1,isNonSync:e?0:1}}}class rZ{constructor(e,t,n,r){if(this.logger=void 0,this.observer=void 0,this.config=void 0,this.typeSupp
40orted=void 0,this.ISGenerated=!1,this._initPTS=null,this._initDTS=null,this.nextAvcDts=null,this.nextAudioPts=null,this.videoSampleDuration=null,this.isAudioContiguous=!1,this.isVideoContiguous=!1,this.videoTrackConfig=void 0,this.observer=e,this.config=t,this.typeSupported=n,this.logger=r,this.ISGenerated=!1,null===rK){let e=(navigator.userAgent||"").match(/Chrome\/(\d+)/i);rK=e?parseInt(e[1]):0}if(null===r$){let e=navigator.userAgent.match(/Safari\/(\d+)/i);r$=e?parseInt(e[1]):0}}destroy(){this.config=this.videoTrackConfig=this._initPTS=this._initDTS=null}resetTimeStamp(e){this.logger.log("[mp4-remuxer]: initPTS & initDTS reset"),this._initPTS=this._initDTS=e}resetNextTimestamp(){this.logger.log("[mp4-remuxer]: reset next timestamp"),this.isVideoContiguous=!1,this.isAudioContiguous=!1}resetInitSegment(){this.logger.log("[mp4-remuxer]: ISGenerated flag reset"),this.ISGenerated=!1,this.videoTrackConfig=void 0}getVideoStartPts(e){let t=!1,n=e[0].pts,r=e.reduce((e,r)=>{let i=r.pts,a=i-e;return(a<-4294967296&&(t=!0,a=(i=rY(i,n))-e),a>0)?e:i},n);return t&&this.logger.debug("PTS rollover detected"),r}remux(e,t,n,r,i,a,o,s){let l,u,c,d,h,f;let p=i,m=i,g=e.pid>-1,v=t.pid>-1,y=t.samples.length,b=e.samples.length>0,A=o&&y>0||y>1;if((!g||b)&&(!v||A)||this.ISGenerated||o){let n;if(this.ISGenerated){var E,w,x,T;let e=this.videoTrackConfig;(e&&(t.width!==e.width||t.height!==e.height||(null==(E=t.pixelRatio)?void 0:E[0])!==(null==(w=e.pixelRatio)?void 0:w[0])||(null==(x=t.pixelRatio)?void 0:x[1])!==(null==(T=e.pixelRatio)?void 0:T[1]))||!e&&A||null===this.nextAudioPts&&b)&&this.resetInitSegment()}this.ISGenerated||(c=this.generateIS(e,t,i,a));let r=this.isVideoContiguous,o=-1;if(A&&(o=function(e){for(let t=0;t<e.length;t++)if(e[t].key)return t;return -1}(t.samples),!r&&this.config.forceKeyFrameOnDiscontinuity)){if(f=!0,o>0){this.logger.warn(`[mp4-remuxer]: Dropped ${o} out of ${y} video samples due to a missing keyframe`);let e=this.getVideoStartPts(t.samples);t.samples=t.samples.slice(o),t.dropped+=o,m+=(t.samples[0].pts-e)/t.inputTimeScale,n=m}else -1===o&&(this.logger.warn(`[mp4-remuxer]: No keyframe found out of ${y} video samples`),f=!1)}if(this.ISGenerated){if(b&&A){let n=this.getVideoStartPts(t.samples),r=(rY(e.samples[0].pts,n)-n)/t.inputTimeScale;p+=Math.max(0,r),m+=Math.max(0,-r)}if(b){if(e.samplerate||(this.logger.warn("[mp4-remuxer]: regenerate InitSegment as audio detected"),c=this.generateIS(e,t,i,a)),u=this.remuxAudio(e,p,this.isAudioContiguous,a,v||A||s===ef.AUDIO?m:void 0),A){let n=u?u.endPTS-u.startPTS:0;t.inputTimeScale||(this.logger.warn("[mp4-remuxer]: regenerate InitSegment as video detected"),c=this.generateIS(e,t,i,a)),l=this.remuxVideo(t,m,r,n)}}else A&&(l=this.remuxVideo(t,m,r,0));l&&(l.firstKeyFrame=o,l.independent=-1!==o,l.firstKeyFramePTS=n)}}return this.ISGenerated&&this._initPTS&&this._initDTS&&(n.samples.length&&(h=rX(n,i,this._initPTS,this._initDTS)),r.samples.length&&(d=rJ(r,i,this._initPTS))),{audio:u,video:l,initSegment:c,independent:f,text:d,id3:h}}generateIS(e,t,n,r){let i,a,o;let s=e.samples,l=t.samples,u=this.typeSupported,c={},d=this._initPTS,h=!d||r,f="audio/mp4";if(h&&(i=a=1/0),e.config&&s.length){switch(e.timescale=e.samplerate,e.segmentCodec){case"mp3":u.mpeg?(f="audio/mpeg",e.codec=""):u.mp3&&(e.codec="mp3");break;case"ac3":e.codec="ac-3"}c.audio={id:"audio",container:f,codec:e.codec,initSegment:"mp3"===e.segmentCodec&&u.mpeg?new Uint8Array(0):rQ.initSegment([e]),metadata:{channelCount:e.channelCount}},h&&(o=e.inputTimeScale,d&&o===d.timescale?h=!1:i=a=s[0].pts-Math.round(o*n))}if(t.sps&&t.pps&&l.length){if(t.timescale=t.inputTimeScale,c.video={id:"main",container:"video/mp4",codec:t.codec,initSegment:rQ.initSegment([t]),metadata:{width:t.width,height:t.height}},h){if(o=t.inputTimeScale,d&&o===d.timescale)h=!1;else{let e=this.getVideoStartPts(l),t=Math.round(o*n);a=Math.min(a,rY(l[0].dts,e)-t),i=Math.min(i,e-t)}}this.videoTrackConfig={width:t.width,height:t.height,pixelRatio:t.pixelRatio}}if(Object.keys(c).length)return this.ISGenerated=!0,h?(this._initPTS={baseTime:i,timescale:o},this._initDTS={baseTime:a,timescale:o}):i=o=void 0,{tracks:c,initPTS:i,timescale:o}}remuxVideo(e,t,n,r){let i,a,o;let s=e.inputTimeScale,l=e.samples,u=[],c=l.length,d=this._initPTS,h=this.nextAvcDts,f=8,p=this.videoSampleDuration,m=Number.POSITIVE_INFINITY,g=Number.NEGATIVE_INFINITY,v=!1;if(!n||null===h){let e=t*s,r=l[0].pts-rY(l[0].dts,l[0].pts);rK&&null!==h&&15e3>Math.abs(e-r-h)?n=!0:h=e-r}let y=d.baseTime*s/d.timescale;for(let e=0;e<c;e++){let t=l[e];t.pts=rY(t.pts-y,h),t.dts=rY(t.dts-y,h),t.dts<l[e>0?e-1:e].dts&&(v=!0)}v&&l.sort(function(e,t){let n=e.dts-t.dts,r=e.pts-t.pts;return n||r}),i=l[0].dts;let b=(a=l[l.length-1].dts)-i,A=b?Math.round(b/(c-1)):p||e.inputTimeScale/30;if(n){let n=i-h,r=n>A,a=n<-1;if((r||a)&&(r?this.logger.warn(`${(e.segmentCodec||"").toUpperCase()}: ${rG(n,!0)} ms (${n}dts) hole between fragments detected at ${t.toFixed(3)}`):this.logger.warn(`${(e.segmentCodec||"").toUpperCase()}: ${rG(-n,!0)} ms (${n}dts) overlapping between fragments detected at ${t.toFixed(3)}`),!a||h>=l[0].pts||rK)){i=h;let e=l[0].pts-n;if(r)l[0].dts=i,l[0].pts=e;else{let t=!0;for(let r=0;r<l.length&&(!(l[r].dts>e)||!t);r++){let e=l[r].pts;if(l[r].dts-=n,l[r].pts-=n,r<l.length-1){let n=l[r+1].pts;t=n<=l[r].pts==n<=e}}}this.logger.log(`Video: Initial PTS/DTS adjusted: ${rG(e,!0)}/${rG(i,!0)}, delta: ${rG(n,!0)} ms`)}}let E=0,w=0,x=i=Math.max(0,i);for(let e=0;e<c;e++){let t=l[e],n=t.units,r=n.length,i=0;for(let e=0;e<r;e++)i+=n[e].data.length;w+=i,E+=r,t.length=i,t.dts<x?(t.dts=x,x+=A/4|0||1):x=t.dts,m=Math.min(t.pts,m),g=Math.max(t.pts,g)}a=l[c-1].dts;let T=w+4*E+8;try{o=new Uint8Array(T)}catch(e){this.observer.emit(ed.ERROR,ed.ERROR,{type:eu.MUX_ERROR,details:ec.REMUX_ALLOC_ER
40ROR,fatal:!1,error:e,bytes:T,reason:`fail allocating video mdat ${T}`});return}let S=new DataView(o.buffer);S.setUint32(0,T),o.set(rQ.types.mdat,4);let _=!1,C=Number.POSITIVE_INFINITY,k=Number.POSITIVE_INFINITY,I=Number.NEGATIVE_INFINITY,L=Number.NEGATIVE_INFINITY;for(let e=0;e<c;e++){let t;let n=l[e],i=n.units,a=0;for(let e=0,t=i.length;e<t;e++){let t=i[e],n=t.data,r=t.data.byteLength;S.setUint32(f,r),f+=4,o.set(n,f),f+=r,a+=4+r}if(e<c-1)p=l[e+1].dts-n.dts,t=l[e+1].pts-n.pts;else{let i=this.config,a=e>0?n.dts-l[e-1].dts:A;if(t=e>0?n.pts-l[e-1].pts:A,i.stretchShortVideoTrack&&null!==this.nextAudioPts){let e=Math.floor(i.maxBufferHole*s),t=(r?m+r*s:this.nextAudioPts)-n.pts;t>e?((p=t-a)<0?p=a:_=!0,this.logger.log(`[mp4-remuxer]: It is approximately ${t/90} ms to the next segment; using duration ${p/90} ms for the last video frame.`)):p=a}else p=a}let d=Math.round(n.pts-n.dts);C=Math.min(C,p),I=Math.max(I,p),k=Math.min(k,t),L=Math.max(L,t),u.push(rW(n.key,p,a,d))}if(u.length){if(rK){if(rK<70){let e=u[0].flags;e.dependsOn=2,e.isNonSync=0}}else if(r$&&L-k<I-C&&A/I<.025&&0===u[0].cts){this.logger.warn("Found irregular gaps in sample duration. Using PTS instead of DTS to determine MP4 sample duration.");let e=i;for(let t=0,n=u.length;t<n;t++){let r=e+u[t].duration,i=e+u[t].cts;if(t<n-1){let e=r+u[t+1].cts;u[t].duration=e-i}else u[t].duration=t?u[t-1].duration:A;u[t].cts=0,e=r}}}p=_||!p?A:p,this.nextAvcDts=h=a+p,this.videoSampleDuration=p,this.isVideoContiguous=!0;let P={data1:rQ.moof(e.sequenceNumber++,i,eg(e,{samples:u})),data2:o,startPTS:m/s,endPTS:(g+p)/s,startDTS:i/s,endDTS:h/s,type:"video",hasAudio:!1,hasVideo:!0,nb:u.length,dropped:e.dropped};return e.samples=[],e.dropped=0,P}getSamplesPerFrame(e){switch(e.segmentCodec){case"mp3":return 1152;case"ac3":return 1536;default:return 1024}}remuxAudio(e,t,n,r,i){let a;let o=e.inputTimeScale,s=e.samplerate?e.samplerate:o,l=o/s,u=this.getSamplesPerFrame(e),c=u*l,d=this._initPTS,h="mp3"===e.segmentCodec&&this.typeSupported.mpeg,f=[],p=void 0!==i,m=e.samples,g=h?0:8,v=this.nextAudioPts||-1,y=t*o,b=d.baseTime*o/d.timescale;if(this.isAudioContiguous=n=n||m.length&&v>0&&(r&&9e3>Math.abs(y-v)||Math.abs(rY(m[0].pts-b,y)-v)<20*c),m.forEach(function(e){e.pts=rY(e.pts-b,y)}
40),!n||v<0){if(!(m=m.filter(e=>e.pts>=0)).length)return;v=0===i?0:r&&!p?Math.max(0,y):m[0].pts}if("aac"===e.segmentCodec){let t=this.config.maxAudioFramesDrift;for(let n=0,r=v;n<m.length;n++){let i=m[n],a=i.pts,s=a-r,l=Math.abs(1e3*s/o);if(s<=-t*c&&p)0===n&&(this.logger.warn(`Audio frame @ ${(a/o).toFixed(3)}s overlaps nextAudioPts by ${Math.round(1e3*s/o)} ms.`),this.nextAudioPts=v=r=a);else if(s>=t*c&&l<1e4&&p){let t=Math.round(s/c);(r=a-t*c)<0&&(t--,r+=c),0===n&&(this.nextAudioPts=v=r),this.logger.warn(`[mp4-remuxer]: Injecting ${t} audio frame @ ${(r/o).toFixed(3)}s due to ${Math.round(1e3*s/o)} ms gap.`);for(let a=0;a<t;a++){let t=Math.max(r,0),a=rq.getSilentFrame(e.parsedCodec||e.manifestCodec||e.codec,e.channelCount);a||(this.logger.log("[mp4-remuxer]: Unable to get silent frame for given audio codec; duplicating last frame instead."),a=i.unit.subarray()),m.splice(n,0,{unit:a,pts:t}),r+=c,n++}}i.pts=r,r+=c}}let A=null,E=null,w=0,x=m.length;for(;x--;)w+=m[x].unit.byteLength;for(let t=0,r=m.length;t<r;t++){let r=m[t],i=r.unit,o=r.pts;if(null!==E)f[t-1].duration=Math.round((o-E)/l);else{if(n&&"aac"===e.segmentCodec&&(o=v),A=o,!(w>0))return;w+=g;try{a=new Uint8Array(w)}catch(e){this.observer.emit(ed.ERROR,ed.ERROR,{type:eu.MUX_ERROR,details:ec.REMUX_ALLOC_ERROR,fatal:!1,error:e,bytes:w,reason:`fail allocating audio mdat ${w}`});return}h||(new DataView(a.buffer).setUint32(0,w),a.set(rQ.types.mdat,4))}a.set(i,g);let s=i.byteLength;g+=s,f.push(rW(!0,u,s,0)),E=o}let T=f.length;if(!T)return;let S=f[f.length-1];this.nextAudioPts=v=E+l*S.duration;let _=h?new Uint8Array(0):rQ.moof(e.sequenceNumber++,A/l,eg({},e,{samples:f}));e.samples=[];let C=A/o,k=v/o,I={data1:_,data2:a,startPTS:C,endPTS:k,startDTS:C,endDTS:k,type:"audio",hasAudio:!0,hasVideo:!1,nb:T};return this.isAudioContiguous=!0,I}}function rY(e,t){let n;if(null===t)return e;for(n=t<e?-8589934592:8589934592;Math.abs(e-t)>4294967296;)e+=n;return e}function rX(e,t,n,r){let i=e.samples.length;if(!i)return;let a=e.inputTimeScale;for(let o=0;o<i;o++){let i=e.samples[o];i.pts=rY(i.pts-n.baseTime*a/n.timescale,t*a)/a,i.dts=rY(i.dts-r.baseTime*a/r.timescale,t*a)/a}let o=e.samples;return e.samples=[],{samples:o}}function rJ(e,t,n){let r=e.samples.length;if(!r)return;let i=e.inputTimeScale;for(let a=0;a<r;a++){let r=e.samples[a];r.pts=rY(r.pts-n.baseTime*i/n.timescale,t*i)/i}e.samples.sort((e,t)=>e.pts-t.pts);let a=e.samples;return e.samples=[],{samples:a}}class r0{constructor(e,t,n,r){this.logger=void 0,this.emitInitSegment=!1,this.audioCodec=void 0,this.videoCodec=void 0,this.initData=void 0,this.initPTS=null,this.initTracks=void 0,this.lastEndTime=null,this.logger=r}destroy(){}resetTimeStamp(e){this.initPTS=e,this.lastEndTime=null}resetNextTimestamp(){this.lastEndTime=null}resetInitSegment(e,t,n,r){this.audioCodec=t,this.videoCodec=n,this.generateInitSegment(function(e,t){if(!e||!t)return e;let n=t.keyId;return n&&t.isCommonEncryption&&eH(e,["moov","trak"]).forEach(e=>{let t=eH(e,["mdia","minf","stbl","stsd"])[0].subarray(8),r=eH(t,["enca"]),i=r.length>0;i||(r=eH(t,["encv"])),r.forEach(e=>{eH(i?e.subarray(28):e.subarray(78),["sinf"]).forEach(e=>{let t=eY(e);if(t){let e=t.subarray(8,24);e.some(e=>0!==e)||(eT.log(`[eme] Patching keyId in 'enc${i?"a":"v"}>sinf>>tenc' box: ${ek.hexDump(e)} -> ${ek.hexDump(n)}`),t.set(n,8))}})})}),e}(e,r)),this.emitInitSegment=!0}generateInitSegment(e){let{audioCodec:t,videoCodec:n}=this;if(!(null!=e&&e.byteLength)){this.initTracks=void 0,this.initData=void 0;return}let r=this.initData=eG(e);r.audio&&(t=r1(r.audio,eO.AUDIO)),r.video&&(n=r1(r.video,eO.VIDEO));let i={};r.audio&&r.video?i.audiovideo={container:"video/mp4",codec:t+","+n,supplemental:r.video.supplemental,initSegment:e,id:"main"}:r.audio?i.audio={container:"audio/mp4",codec:t,initSegment:e,id:"audio"}:r.video?i.video={container:"video/mp4",codec:n,supplemental:r.video.supplemental,initSegment:e,id:"main"}:this.logger.warn("[passthrough-remuxer.ts]: initSegment does not contain moov or trak boxes."),this.initTracks=i}remux(e,t,n,r,i,a){var o,s,l;let{initPTS:u,lastEndTime:c}=this,d={audio:void 0,video:void 0,text:r,id3:n,initSegment:void 0};eo(c)||(c=this.lastEndTime=i||0);let h=t.samples;if(!(null!=h&&h.length))return d;let f={initPTS:void 0,timescale:1},p=this.initData;if(null!=(o=p)&&o.length||(this.generateInitSegment(h),p=this.initData),!(null!=(s=p)&&s.length))return this.logger.warn("[passthrough-remuxer.ts]: Failed to generate initSegment."),d;this.emitInitSegment&&(f.tracks=this.initTracks,this.emitInitSegment=!1);let m=function(e,t){let n=0,r=0,i=0,a=eH(e,["moof","traf"]);for(let e=0;e<a.length;e++){let o=a[e],s=eH(o,["tfhd"])[0],l=t[eV(s,4)];if(!l)continue;let u=l.default,c=eV(s,0)|(null==u?void 0:u.flags),d=null==u?void 0:u.duration;8&c&&(d=2&c?eV(s,12):eV(s,8));let h=l.timescale||9e4,f=eH(o,["trun"]);for(let e=0;e<f.length;e++)(n=function(e){let t=eV(e,0),n=8;1&t&&(n+=4),4&t&&(n+=4);let r=0,i=eV(e,4);for(let a=0;a<i;
40a++)256&t&&(r+=eV(e,n),n+=4),512&t&&(n+=4),1024&t&&(n+=4),2048&t&&(n+=4);return r}(f[e]))||!d||(n=d*eV(f[e],4)),l.type===eO.VIDEO?r+=n/h:l.type===eO.AUDIO&&(i+=n/h)}if(0===r&&0===i){let t=1/0,n=0,r=0,i=eH(e,["sidx"]);for(let e=0;e<i.length;e++){let a=function(e){let t=[],n=e[0],r=8,i=eV(e,8);r+=4;let a=0,o=0;0===n?(a=eV(e,r),o=eV(e,r+4),r+=8):(a=ez(e,r),o=ez(e,r+8),r+=16),r+=2;let s=e.length+o,l=eU(e,r);r+=2;for(let n=0;n<l;n++){let n=r,a=eV(e,n);n+=4;let o=2147483647&a;if(1==(2147483648&a)>>>31)return eT.warn("SIDX has hierarchical references (not supported)"),null;let l=eV(e,n);n+=4,t.push({referenceSize:o,subsegmentDuration:l,info:{duration:l/i,start:s,end:s+o-1}}),s+=o,n+=4,r=n}return{earliestPresentationTime:a,timescale:i,version:n,referencesCount:l,references:t}}(i[e]);null!=a&&a.references&&(t=Math.min(t,a.earliestPresentationTime/a.timescale),r=(n=Math.max(n,a.references.reduce((e,t)=>e+t.info.duration||0,0)+a.earliestPresentationTime/a.timescale))-t)}if(r&&eo(r))return r}return r||i}(h,p),g=(l=p,eH(h,["moof","traf"]).reduce((e,t)=>{let n=eH(t,["tfdt"])[0],r=n[0],i=eH(t,["tfhd"]).reduce((e,t)=>{let i=l[eV(t,4)];if(i){let t=eV(n,4);if(1===r){if(4294967295===t)return eT.warn("[mp4-demuxer]: Ignoring assumed invalid signed 64-bit track fragment decode time"),e;t*=4294967296,t+=eV(n,8)}let a=t/(i.timescale||9e4);if(eo(a)&&(null===e||a<e))return a}return e},null);return null!==i&&eo(i)&&(null===e||i<e)?i:e},null)),v=null===g?i:g;(a||!u)&&(function(e,t,n,r){if(null===e)return!0;let i=Math.max(r,1);return Math.abs(t-e.baseTime/e.timescale-n)>i}(u,v,i,m)||f.timescale!==u.timescale)&&(f.initPTS=v-i,u&&1===u.timescale&&this.logger.warn(`Adjusting initPTS @${i} from ${u.baseTime/u.timescale} to ${f.initPTS}`),this.initPTS=u={baseTime:f.initPTS,timescale:1});let y=e?v-u.baseTime/u.timescale:c,b=y+m;!function(e,t,n){eH(t,["moof","traf"]).forEach(t=>{eH(t,["tfhd"]).forEach(r=>{let i=e[eV(r,4)];if(!i)return;let a=i.timescale||9e4;eH(t,["tfdt"]).forEach(e=>{let t=e[0],r=n*a;if(r){let n=eV(e,4);if(0===t)n-=r,eQ(e,4,n=Math.max(n,0));else{n*=4294967296,n+=eV(e,8),n-=r;let t=Math.floor((n=Math.max(n,0))/4294967296),i=Math.floor(n%4294967296);eQ(e,4,t),eQ(e,8,i)}}})})})}(p,h,u.baseTime/u.timescale),m>0?this.lastEndTime=b:(this.logger.warn("Duration parsed from mp4 should be greater than zero"),this.resetNextTimestamp());let A=!!p.audio,E=!!p.video,w="";A&&(w+="audio"),E&&(w+="video");let x={data1:h,startPTS:y,startDTS:y,endPTS:b,endDTS:b,type:w,hasAudio:A,hasVideo:E,nb:1,dropped:0};return d.audio="audio"===x.type?x:void 0,d.video="audio"!==x.type?x:void 0,d.initSegment=f,d.id3=rX(n,i,u,u),r.samples.length&&(d.text=rJ(r,i,u)),d}}function r1(e,t){let n=null==e?void 0:e.codec;return n&&n.length>4?n:t===eO.AUDIO?"ec-3"===n||"ac-3"===n||"alac"===n?n:"fLaC"===n||"Opus"===n?tr(n,!1):(eT.warn(`Unhandled audio codec "${n}" in mp4 MAP`),n||"mp4a"):(eT.warn(`Unhandled video codec "${n}" in mp4 MAP`),n||"avc1")}try{a=self.performance.now.bind(self.performance)}catch(e){a=Date.now}let r2=[{demux:rP,remux:r0},{demux:rF,remux:rZ},{demux:rS,remux:rZ},{demux:rI,remux:rZ}];r2.splice(2,0,{demux:rC,remux:rZ});class r3{constructor(e,t,n,r,i,a){this.asyncResult=!1,this.logger=void 0,this.observer=void 0,this.typeSupported=void 0,this.config=void 0,this.id=void 0,this.demuxer=void 0,this.remuxer=void 0,this.decrypter=void 0,this.probe=void 0,this.decryptionPromise=null,this.transmuxConfig=void 0,this.currentTransmuxState=void 0,this.observer=e,this.typeSupported=t,this.config=n,this.id=i,this.logger=a}configure(e){this.transmuxConfig=e,this.decrypter&&this.decrypter.reset()}push(e,t,n,r){let i;let o=n.transmuxing;o.executeStart=a();let s=new Uint8Array(e),{currentTransmuxState:l,transmuxConfig:u}=this;r&&(this.currentTransmuxState=r);let{contiguous:c,discontinuity:d,trackSwitch:h,accurateTimeOffset:f,timeOffset:p,initSegmentChange:m}=r||l,{audioCodec:g,videoCodec:v,defaultInitPts:y,duration:b,initSegmentData:A}=u,E=(i=null,s.byteLength>0&&(null==t?void 0:t.key)!=null&&null!==t.iv&&null!=t.method&&(i=t),i);if(E&&na(E.method)){let e=this.getDecrypter(),t=no(E.method);if(!e.isSync())return this.asyncResult=!0,this.decryptionPromise=e.webCryptoDecrypt(s,E.key.buffer,E.iv.buffer,t).then(e=>{let t=this.push(e,null,n);return this.decryptionPromise=null,t}),this.decryptionPromise;{let r=e.softwareDecrypt(s,E.key.buffer,E.iv.buffer,t);if(n.part>-1){let t=e.flush();r=t?t.buffer:t}if(!r)return o.executeEnd=a(),r4(n);s=new Uint8Array(r)}}let w=this.needsProbing(d,h);if(w){let e=this.configureTransmuxer(s);if(e)return this.logger.warn(`[transmuxer] ${e.message}`),this.observer.emit(ed.ERROR,ed.ERROR,{type:eu.MEDIA_ERROR,details:ec.FRAG_PARSING_ERROR,fatal:!1,error:e,reason:e.message}),o.executeEnd=a(),r4(n)}(d||h||m||w)&&this.resetInitSegment(A,g,v,b,t),(d||m||w)&&this.resetInitialTimestamp(y),c||this.resetContiguity();let x=this.transmux(s,E,p,f,n);this.asyncResult=r5(x);let T=this.currentTransmuxState;return T.contiguous=!0,T.discontinuity=!1,T.trackSwitch=!1,o.executeEnd=a(),x}flush(e){let t=e.transmuxing;t.executeStart=a();let{decrypter:n,currentTransmuxState:r,decryptionPromise:i}=this;if(i)return this.asyncResult=!0,i.then(()=>this.flush(e));let o=[],{timeOffset:s}=r;if(n){let t=n.flush();t&&o.push(this.push(t.buffer,null,e))}let{demuxer:l,remuxer:u}=this;if(!l||!u){t.executeEnd=a();let n=[r4(e)];return this.asyncResult?Promise.resolve(n):n}let c=l.flush(s);return r5(c)?(this.asyncResult=!0,c.then(t=>(this.flushRemux(o,t,e),o))):(this.flushRemux(o,c,e),this.asyncResult)?Promise.resolve(o):o}flushRemux(e,t,n){let{audioTrack:r,videoTrack:i,id3Track:o,textTrack:s}
40=t,{accurateTimeOffset:l,timeOffset:u}=this.currentTransmuxState;this.logger.log(`[transmuxer.ts]: Flushed ${this.id} sn: ${n.sn}${n.part>-1?" part: "+n.part:""} of ${this.id===ef.MAIN?"level":"track"} ${n.level}`);let c=this.remuxer.remux(r,i,o,s,u,l,!0,this.id);e.push({remuxResult:c,chunkMeta:n}),n.transmuxing.executeEnd=a()}resetInitialTimestamp(e){let{demuxer:t,remuxer:n}=this;t&&n&&(t.resetTimeStamp(e),n.resetTimeStamp(e))}resetContiguity(){let{demuxer:e,remuxer:t}=this;e&&t&&(e.resetContiguity(),t.resetNextTimestamp())}resetInitSegment(e,t,n,r,i){let{demuxer:a,remuxer:o}=this;a&&o&&(a.resetInitSegment(e,t,n,r),o.resetInitSegment(e,t,n,i))}destroy(){this.demuxer&&(this.demuxer.destroy(),this.demuxer=void 0),this.remuxer&&(this.remuxer.destroy(),this.remuxer=void 0)}transmux(e,t,n,r,i){return t&&"SAMPLE-AES"===t.method?this.transmuxSampleAes(e,t,n,r,i):this.transmuxUnencrypted(e,n,r,i)}transmuxUnencrypted(e,t,n,r){let{audioTrack:i,videoTrack:a,id3Track:o,textTrack:s}=this.demuxer.demux(e,t,!1,!this.config.progressive);return{remuxResult:this.remuxer.remux(i,a,o,s,t,n,!1,this.id),chunkMeta:r}}transmuxSampleAes(e,t,n,r,i){return this.demuxer.demuxSampleAes(e,t,n).then(e=>({remuxResult:this.remuxer.remux(e.audioTrack,e.videoTrack,e.id3Track,e.textTrack,n,r,!1,this.id),chunkMeta:i}))}configureTransmuxer(e){let t;
40let{config:n,observer:r,typeSupported:i}=this;for(let n=0,r=r2.length;n<r;n++){var a;if(null!=(a=r2[n].demux)&&a.probe(e,this.logger)){t=r2[n];break}}if(!t)return Error("Failed to find demuxer by probing fragment data");let o=this.demuxer,s=this.remuxer,l=t.remux,u=t.demux;s&&s instanceof l||(this.remuxer=new l(r,n,i,this.logger)),o&&o instanceof u||(this.demuxer=new u(r,n,i,this.logger),this.probe=u.probe)}needsProbing(e,t){return!this.demuxer||!this.remuxer||e||t}getDecrypter(){let e=this.decrypter;return e||(e=this.decrypter=new tY(this.config)),e}}let r4=e=>({remuxResult:{},chunkMeta:e});function r5(e){return"then"in e&&e.then instanceof Function}class r8{constructor(e,t,n,r,i){this.audioCodec=void 0,this.videoCodec=void 0,this.initSegmentData=void 0,this.duration=void 0,this.defaultInitPts=void 0,this.audioCodec=e,this.videoCodec=t,this.initSegmentData=n,this.duration=r,this.defaultInitPts=i||null}}class r6{constructor(e,t,n,r,i,a){this.discontinuity=void 0,this.contiguous=void 0,this.accurateTimeOffset=void 0,this.trackSwitch=void 0,this.timeOffset=void 0,this.initSegmentChange=void 0,this.discontinuity=e,this.contiguous=t,this.accurateTimeOffset=n,this.trackSwitch=r,this.timeOffset=i,this.initSegmentChange=a}}let r9=0;class r7{constructor(e,t,n,r){this.error=null,this.hls=void 0,this.id=void 0,this.instanceNo=r9++,this.observer=void 0,this.frag=null,this.part=null,this.useWorker=void 0,this.workerContext=null,this.transmuxer=null,this.onTransmuxComplete=void 0,this.onFlush=void 0,this.onWorkerMessage=e=>{let t=e.data,n=this.hls;if(n&&null!=t&&t.event&&t.instanceNo===this.instanceNo)switch(t.event){case"init":{var r;let e=null==(r=this.workerContext)?void 0:r.objectURL;e&&self.URL.revokeObjectURL(e);break}case"transmuxComplete":this.handleTransmuxComplete(t.data);break;case"flush":this.onFlush(t.data);break;case"workerLog":n.logger[t.data.logType]&&n.logger[t.data.logType](t.data.message);break;default:t.data=t.data||{},t.data.frag=this.frag,t.data.part=this.part,t.data.id=this.id,n.trigger(t.event,t.data)}},this.onWorkerError=e=>{if(!this.hls)return;let t=Error(`${e.message}  (${e.filename}:${e.lineno})`);this.hls.config.enableWorker=!1,this.hls.logger.warn(`Error in "${this.id}" Web Worker, fallback to inline`),this.hls.trigger(ed.ERROR,{type:eu.OTHER_ERROR,details:ec.INTERNAL_EXCEPTION,fatal:!1,event:"demuxerWorker",error:t})};let i=e.config;this.hls=e,this.id=t,this.useWorker=!!i.enableWorker,this.onTransmuxComplete=n,this.onFlush=r;let a=(e,t)=>{(t=t||{}).frag=this.frag||void 0,e===ed.ERROR&&(t.parent=this.id,t.part=this.part,this.error=t.error),this.hls.trigger(e,t)};this.observer=new n4,this.observer.on(ed.FRAG_DECRYPTED,a),this.observer.on(ed.ERROR,a);let o=ta(i.preferManagedMediaSource);if(this.useWorker&&"undefined"!=typeof Worker){let n=this.hls.logger;if(i.workerPath||"function"==typeof __HLS_WORKER_BUNDLE__){try{i.workerPath?(n.log(`loading Web Worker ${i.workerPath} for "${t}"`),this.workerContext=function(e){let t=n8[e];if(t)return t.clientCount++,t;let n=new self.URL(e,self.location.href).href,r={worker:new self.Worker(n),scriptURL:n,clientCount:1};return n8[e]=r,r}(i.workerPath)):(n.log(`injecting Web Worker for "${t}"`),this.workerContext=function(){let e=n8[n5];if(e)return e.clientCount++,e;let t=new self.Blob([`var exports={};var module={exports:exports};function define(f){f()};define.amd=true;(${__HLS_WORKER_BUNDLE__.toString()})(true);`],{type:"text/javascript"}),n=self.URL.createObjectURL(t),r={worker:new self.Worker(n),objectURL:n,clientCount:1};return n8[n5]=r,r}());let{worker:e}=this.workerContext;e.addEventListener("message",this.onWorkerMessage),e.addEventListener("error",this.onWorkerError),e.postMessage({instanceNo:this.instanceNo,cmd:"init",typeSupported:o,id:t,config:tb(i)})}catch(r){n.warn(`Error setting up "${t}" Web Worker, fallback to inline`,r),this.terminateWorker(),this.error=null,this.transmuxer=new r3(this.observer,o,i,"",t,e.logger)}return}}this.transmuxer=new r3(this.observer,o,i,"",t,e.logger)}reset(){if(this.frag=null,this.part=null,this.workerContext){let e=this.instanceNo;this.instanceNo=r9++;let t=this.hls.config,n=ta(t.preferManagedMediaSource);this.workerContext.worker.postMessage({instanceNo:this.instanceNo,cmd:"reset",resetNo:e,typeSupp
40orted:n,id:this.id,config:tb(t)})}}terminateWorker(){if(this.workerContext){let{worker:e}=this.workerContext;this.workerContext=null,e.removeEventListener("message",this.onWorkerMessage),e.removeEventListener("error",this.onWorkerError),function(e){let t=n8[e||n5];if(t&&1==t.clientCount--){let{worker:n,objectURL:r}=t;delete n8[e||n5],r&&self.URL.revokeObjectURL(r),n.terminate()}}(this.hls.config.workerPath)}}destroy(){if(this.workerContext)this.terminateWorker(),this.onWorkerMessage=this.onWorkerError=null;else{let e=this.transmuxer;e&&(e.destroy(),this.transmuxer=null)}let e=this.observer;e&&e.removeAllListeners(),this.frag=null,this.part=null,this.observer=null,this.hls=null}push(e,t,n,r,i,a,o,s,l,u){var c,d;l.transmuxing.start=self.performance.now();let{instanceNo:h,transmuxer:f}=this,p=a?a.start:i.start,m=i.decryptdata,g=this.frag,v=!(g&&i.cc===g.cc),y=!(g&&l.level===g.level),b=g?l.sn-g.sn:-1,A=this.part?l.part-this.part.index:-1,E=0===b&&l.id>1&&l.id===(null==g?void 0:g.stats.chunkCount),w=!y&&(1===b||0===b&&(1===A||E&&A<=0)),x=self.performance.now();(y||b||0===i.stats.parsing.start)&&(i.stats.parsing.start=x),a&&(A||!w)&&(a.stats.parsing.start=x);let T=!(g&&(null==(c=i.initSegment)?void 0:c.url)===(null==(d=g.initSegment)?void 0:d.url)),S=new r6(v,w,s,y,p,T);if(!w||v||T){this.hls.logger.log(`[transmuxer-interface]: Starting new transmux session for ${i.type} sn: ${l.sn}${l.part>-1?" part: "+l.part:""} ${this.id===ef.MAIN?"level":"track"}: ${l.level} id: ${l.id}
41        discontinuity: ${v}
42        trackSwitch: ${y}
43        contiguous: ${w}
44        accurateTimeOffset: ${s}
45        timeOffset: ${p}
46        initSegmentChange: ${T}`);let e=new r8(n,r,t,o,u);this.configureTransmuxer(e)}if(this.frag=i,this.part=a,this.workerContext)this.workerContext.worker.postMessage({instanceNo:h,cmd:"demux",data:e,decryptdata:m,chunkMeta:l,state:S},e instanceof ArrayBuffer?[e]:[]);else if(f){let t=f.push(e,m,l,S);r5(t)?t.then(e=>{this.handleTransmuxComplete(e)}).catch(e=>{this.transmuxerError(e,l,"transmuxer-interface push error")}):this.handleTransmuxComplete(t)}}flush(e){e.transmuxing.start=self.performance.now();let{instanceNo:t,transmuxer:n}=this;if(this.workerContext)this.workerContext.worker.postMessage({instanceNo:t,cmd:"flush",chunkMeta:e});else if(n){let t=n.flush(e);r5(t)?t.then(t=>{this.handleFlushResult(t,e)}).catch(t=>{this.transmuxerError(t,e,"transmuxer-interface flush error")}):this.handleFlushResult(t,e)}}transmuxerError(e,t,n){this.hls&&(this.error=e,this.hls.trigger(ed.ERROR,{type:eu.MEDIA_ERROR,details:ec.FRAG_PARSING_ERROR,chunkMeta:t,frag:this.frag||void 0,part:this.part||void 0,fatal:!1,error:e,err:e,reason:n}))}handleFlushResult(e,t){e.forEach(e=>{this.handleTransmuxComplete(e)}),this.onFlush(t)}configureTransmuxer(e){let{instanceNo:t,transmuxer:n}=this;this.workerContext?this.workerContext.worker.postMessage({instanceNo:t,cmd:"configure",config:e}):n&&n.configure(e)}handleTransmuxComplete(e){e.chunkMeta.transmuxing.end=self.performance.now(),this.onTransmuxComplete(e)}}class ie extends n0{constructor(e,t,n){super(e,t,n,"audio-stream-controller",ef.AUDIO),this.mainAnchor=null,this.mainFragLoading=null,this.audioOnly=!1,this.bufferedTrack=null,this.switchingTrack=null,this.trackId=-1,this.waitingData=null,this.mainDetails=null,this.flushing=!1,this.bufferFlushed=!1,this.cachedTrackLoadedData=null,this.registerListeners()}onHandlerDestroying(){this.unregisterListeners(),super.onHandlerDestroying(),this.resetItem()}resetItem(){this.mainDetails=this.mainAnchor=this.mainFragLoading=this.bufferedTrack=this.switchingTrack=this.waitingData=this.cachedTrackLoadedData=null}registerListeners(){super.registerListeners();let{hls:e}=this;e.on(ed.LEVEL_LOADED,this.onLevelLoaded,this),e.on(ed.AUDIO_TRACKS_UPDATED,this.onAudioTracksUpdated,this),e.on(ed.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),e.on(ed.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),e.on(ed.BUFFER_RESET,this.onBufferReset,this),e.on(ed.BUFFER_CREATED,this.onBufferCreated,this),e.on(ed.BUFFER_FLUSHING,this.onBufferFlushing,this),e.on(ed.BUFFER_FLUSHED,this.onBufferFlushed,this),e.on(ed.INIT_PTS_FOUND,this.onInitPtsFound,this),e.on(ed.FRAG_LOADING,this.onFragLoading,this),e.on(ed.FRAG_BUFFERED,this.onFragBuffered,this)}unregisterListeners(){let{hls:e}=this;e&&(super.unregisterListeners(),e.off(ed.LEVEL_LOADED,this.onLevelLoaded,this),e.off(ed.AUDIO_TRACKS_UPDATED,this.onAudioTracksUpdated,this),e.off(ed.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),e.off(ed.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),e.off(ed.BUFFER_RESET,this.onBufferReset,this),e.off(ed.BUFFER_CREATED,this.onBufferCreated,this),e.off(ed.BUFFER_FLUSHING,this.onBufferFlushing,this),e.off(ed.BUFFER_FLUSHED,this.onBufferFlushed,this),e.off(ed.INIT_PTS_FOUND,this.onInitPtsFound,this),e.off(ed.FRAG_LOADING,this.onFragLoading,this),e.off(ed.FRAG_BUFFERED,this.onFragBuffered,this))}onInitPtsFound(e,{frag:t,id:n,initPTS:r,timescale:i}){if(n===ef.MAIN){let e=t.cc,n=this.fragCurrent;if(this.initPTS[e]={baseTime:r,timescale:i},this.log(`InitPTS for cc: ${e}
46 found from main: ${r}/${i}`),this.mainAnchor=t,this.state===nJ.WAITING_INIT_PTS){let n=this.waitingData;(n||this.loadingParts)&&(!n||n.frag.cc===e)||(this.nextLoadPosition=this.findSyncFrag(t).start),this.tick()}else!this.hls.hasEnoughToStart&&n&&n.cc!==e?(this.startFragRequested=!1,this.nextLoadPosition=this.findSyncFrag(t).start,n.abortRequests(),this.resetLoadingState()):this.state===nJ.IDLE&&this.tick()}}findSyncFrag(e){let t=this.getLevelDetails(),n=e.cc;return function(e,t,n){if(e&&e.startCC<=t&&e.endCC>=t){let r=n.start,i=n.end,a=e.fragments;if(!n.relurl){let{fragmentHint:t}=e;t&&(a=a.concat(t))}return tI.search(a,e=>e.cc<t||e.end<=r?1:e.cc>t||e.start>=i?-1:0)}return null}(t,n,e)||t&&tO(t.fragments,n)||e}startLoad(e,t){if(!this.levels){this.startPosition=e,this.state=nJ.STOPPED;return}let n=this.lastCurrentTime;this.stopLoad(),this.setInterval(100),n>0&&-1===e?(this.log(`Override startPosition with lastCurrentTime @${n.toFixed(3)}`),e=n,this.state=nJ.IDLE):this.state=nJ.WAITING_TRACK,this.nextLoadPosition=this.lastCurrentTime=e+this.timelineOffset,this.startPosition=t?-1:e,this.tick()}doTick(){switch(this.state){case nJ.IDLE:this.doTickIdle();break;case nJ.WAITING_TRACK:{let{levels:e,trackId:t}=this,n=null==e?void 0:e[t],r=null==n?void 0:n.details;if(r&&!this.waitForLive(n)){if(this.waitForCdnTuneIn(r))break;this.state=nJ.WAITING_INIT_PTS}break}case nJ.FRAG_LOADING_WAITING_RETRY:{var e;let t=performance.now(),n=this.retryDate;if(!n||t>=n||null!=(e=this.media)&&e.seeking){let{levels:e,trackId:t}=this;this.log("RetryDate reached, switch back to IDLE state"),this.resetStartWhenNotLoaded((null==e?void 0:e[t])||null),this.state=nJ.IDLE}break}case nJ.WAITING_INIT_PTS:{let e=this.waitingData;if(e){let{frag:t,part:n,cache:r,complete:i}=e,a=this.mainAnchor;if(void 0!==this.initPTS[t.cc]){this.waitingData=null,this.state=nJ.FRAG_LOADING;let e={frag:t,part:n,payload:r.flush().buffer,networkDetails:null};this._handleFragmentLoadProgress(e),i&&super._handleFragmentLoadComplete(e)}else a&&a.cc!==e.frag.cc&&(this.log(`Waiting fragment cc (${t.cc}) cancelled because video is at cc ${a.cc}`),this.nextLoadPosition=this.findSyncFrag(a).start,this.clearWaitingFragment())}else this.state=nJ.IDLE}}this.onTickEnd()}clearWaitingFragment(){let e=this.waitingData;e&&(this.hls.hasEnoughToStart||(this.startFragRequested=!1),this.fragmentTracker.removeFragment(e.frag),this.waitingData=null,this.state!==nJ.STOPPED&&(this.state=nJ.IDLE))}resetLoadingState(){this.clearWaitingFragment(),super.resetLoadingState()}onTickEnd(){let{media:e}=this;null!=e&&e.readyState&&(this.lastCurrentTime=e.currentTime)}doTickIdle(){var e;let{hls:t,levels:n,media:r,trackId:i}=this,a=t.config;if(!this.buffering||!r&&!this.primaryPrefetch&&(this.startFragRequested||!a.startFragPrefetch)||!(null!=n&&n[i]))return;let o=n[i],s=o.details;if(!s||this.waitForLive(o)||this.waitForCdnTuneIn(s)){this.state=nJ.WAITING_TRACK,this.startFragRequested=!1;return}let l=this.mediaBuffer?this.mediaBuffer:this.media;this.bufferFlushed&&l&&(this.bufferFlushed=!1,this.afterBufferFlushed(l,eO.AUDIO,ef.AUDIO));let u=this.getFwdBufferInfo(l,ef.AUDIO);if(null===u)return;if(!this.switchingTrack&&this._streamEnded(u,s)){t.trigger(ed.BUFFER_EOS,{type:"audio"}),this.state=nJ.ENDED;return}let c=u.len,d=t.maxBufferLength,h=s.fragments,f=h[0].start,p=this.getLoadPosition(),m=this.flushing?p:u.end;if(this.switchingTrack&&r&&s.PTSKnown&&p<f&&(u.end>f||u.nextStart)&&(this.log("Alt audio track ahead of main track, seek to start of alt audio track"),r.currentTime=f+.05),c>=d&&!this.switchingTrack&&m<h[h.length-1].start)return;let g=this.getNextFragment(m,s);if(g&&this.isLoopLoading(g,m)&&(g=this.getNextFragmentLoopLoading(g,s,u,ef.MAIN,d)),!g){this.bufferFlushed=!0;return}let v=(null==(e=this.mainFragLoading)?void 0:e.frag)||null;if(!this.audioOnly&&this.startFragRequested&&v&&eD(g)&&!g.endList&&(!s.live||!this.loadingParts&&m<this.hls.liveSyncPosition)&&(this.fragmentTracker.getState(v)===tz.OK&&(this.mainFragLoading=v=null),v&&eD(v))){if(g.start>v.end){let e=this.fragmentTracker.getFragAtPos(m,ef.MAIN);e&&e.end>v.end&&(v=e,this.mainFragLoading={frag:e,targetBufferTime:null})}if(g.start>v.end)return}this.loadFragment(g,o,m)}onMediaDetaching(e,t){this.bufferFlushed=this.flushing=!1,super.onMediaDetaching(e,t)}onAudioTracksUpdated(e,{audioTracks:t}){this.resetTransmuxer(),this.levels=t.map(e=>new tg(e))}onAudioTrackSwitching(e,t){let n=!!t.url;this.trackId=t.id;let{fragCurrent:r}=this;r&&(r.abortRequests(),this.removeUnbufferedFrags(r.start)),this.resetLoadingState(),n?(this.switchingTrack=t,this.flushAudioIfNeeded(t),this.state!==nJ.STOPPED&&(this.setInterval(100),this.state=nJ.IDLE,this.tick())):(this.resetTransmuxer(),this.switchingTrack=null,this.bufferedTrack=t,this.clearInterval())}onManifestLoading(){super.onManifestLoading(),this.bufferFlushed=this.flushing=this.audioOnly=!1,this.resetItem(),this.trackId=-1}onLevelLoaded(e,t){this.mainDetails=t.details;let n=this.cachedTrackLoadedData;n&&(this.cachedTrackLoadedData=null,this.onAudioTrackLoaded(ed.AUDIO_TRACK_LOADED,n))}onAudioTrackLoaded(e,t){var n,r;let{levels:i}=this,{details:a,id:o,groupId:s,track:l}=t;if(!i){this.warn(`Audio tracks reset while loading track ${o} "${l.name}" of "${s}"`);return}let u=this.mainDetails;if(!u||a.endCC>u.endCC||u.expired){this.cachedTrackLoadedData=t,this.state!==nJ.STOPPED&&(this.state=nJ.WAITING_TRACK);return}this.cachedTrackLoadedData=null,this.log(`Audio track ${o} "${l.name}" of "${s}" loaded [${a.startSN},${a.endSN}]${a.lastPartSn?`[part-${a.lastPartSn}-${a.lastPartIndex}]`:""},duration:${a.totalduration}`);let c=i[o],d=0;if(a.live||null!=(n=c.details)&&n.live){if(this.checkLiveUpdate(a),a.deltaUpdateFailed)return;c.details&&(d=this.alignPlaylists(a,c.details,null==(r=this.levelLastLoaded)?void 0:r.details)),a.alignedSliding||(nZ(a,u),a.alignedSliding||nY(a,u),d=a.fragmentStart)}c.details=a,this.levelLastLoaded=c,this.startFragRequested||this.setStartPosition(u,d),this.hls.trigger(ed.AUDIO_TRACK_UPDATED,{details:a,id:o,groupId:t.groupId}),this.state!==nJ.WAITING_TRACK||this.waitForCdnTuneIn(a)||(this.state=nJ.IDLE),this.tick()}_handleFragmentLoadProgress(e){var t;let n=e.frag,{part:r,payload:i}=e,{config:a,trackId:o,levels:s}=this;if(!s){this.warn(`Audio tracks were reset while fragment load was in progress. Fragment ${n.sn} of level ${n.level} will not be buffered`);return}let l=s[o];if(!l){this.warn("Audio track is undefined on fragment load progress");return}let u=l.details;if(!u){this.warn("Audio track details undefined on fragment load progress"),this.removeUnbufferedFrags(n.start);return}let c=a.defaultAudioCodec||l.audioCodec||"mp4a.40.2",d=this.transmuxer;
46d||(d=this.transmuxer=new r7(this.hls,ef.AUDIO,this._handleTransmuxComplete.bind(this),this._handleTransmuxerFlush.bind(this)));let h=this.initPTS[n.cc],f=null==(t=n.initSegment)?void 0:t.data;if(void 0!==h){let e=r?r.index:-1,t=new t3(n.level,n.sn,n.stats.chunkCount,i.byteLength,e,-1!==e);d.push(i,f,c,"",n,r,u.totalduration,!1,t,h)}else{this.log(`Unknown video PTS for cc ${n.cc}, waiting for video PTS before demuxing audio frag ${n.sn} of [${u.startSN} ,${u.endSN}],track ${o}`);let{cache:e}=this.waitingData=this.waitingData||{frag:n,part:r,cache:new n2,complete:!1};e.push(new Uint8Array(i)),this.state!==nJ.STOPPED&&(this.state=nJ.WAITING_INIT_PTS)}}_handleFragmentLoadComplete(e){if(this.waitingData){this.waitingData.complete=!0;return}super._handleFragmentLoadComplete(e)}onBufferReset(){this.mediaBuffer=null}onBufferCreated(e,t){this.bufferFlushed=this.flushing=!1;let n=t.tracks.audio;n&&(this.mediaBuffer=n.buffer||null)}onFragLoading(e,t){!this.audioOnly&&t.frag.type===ef.MAIN&&eD(t.frag)&&(this.mainFragLoading=t,this.state===nJ.IDLE&&this.tick())}onFragBuffered(e,t){let{frag:n,part:r}=t;if(n.type!==ef.AUDIO){this.audioOnly||n.type!==ef.MAIN||n.elementaryStreams.video||n.elementaryStreams.audiovideo||(this.audioOnly=!0,this.mainFragLoading=null);return}if(this.fragContextChanged(n)){this.warn(`Fragment ${n.sn}${r?" p: "+r.index:""} of level ${n.level} finished buffering, but was aborted. state: ${this.state}, audioSwitch: ${this.switchingTrack?this.switchingTrack.name:"false"}`);return}if(eD(n)){this.fragPrevious=n;let e=this.switchingTrack;e&&(this.bufferedTrack=e,this.switchingTrack=null,this.hls.trigger(ed.AUDIO_TRACK_SWITCHED,ey({},e)))}this.fragBufferedComplete(n,r),this.media&&this.tick()}onError(e,t){var n;if(t.fatal){this.state=nJ.ERROR;return}switch(t.details){case ec.FRAG_GAP:case ec.FRAG_PARSING_ERROR:case ec.FRAG_DECRYPT_ERROR:case ec.FRAG_LOAD_ERROR:case ec.FRAG_LOAD_TIMEOUT:case ec.KEY_LOAD_ERROR:case ec.KEY_LOAD_TIMEOUT:this.onFragmentOrKeyLoadError(ef.AUDIO,t);break;case ec.AUDIO_TRACK_LOAD_ERROR:case ec.AUDIO_TRACK_LOAD_TIMEOUT:case ec.LEVEL_PARSING_ERROR:t.levelRetry||this.state!==nJ.WAITING_TRACK||(null==(n=t.context)?void 0:n.type)!==eh.AUDIO_TRACK||(this.state=nJ.IDLE);break;case ec.BUFFER_ADD_CODEC_ERROR:case ec.BUFFER_APPEND_ERROR:if("audio"!==t.parent)return;this.resetLoadingState();break;case ec.BUFFER_FULL_ERROR:if("audio"!==t.parent)return;this.reduceLengthAndFlushBuffer(t)&&(this.bufferedTrack=null,super.flushMainBuffer(0,Number.POSITIVE_INFINITY,"audio"));break;case ec.INTERNAL_EXCEPTION:this.recoverWorkerError(t)}}onBufferFlushing(e,{type:t}){t!==eO.VIDEO&&(this.flushing=!0)}onBufferFlushed(e,{type:t}){if(t!==eO.VIDEO){this.flushing=!1,this.bufferFlushed=!0,this.state===nJ.ENDED&&(this.state=nJ.IDLE);let e=this.mediaBuffer||this.media;e&&(this.afterBufferFlushed(e,t,ef.AUDIO),this.tick())}}_handleTransmuxComplete(e){var t;let n="audio",{hls:r}=this,{remuxResult:i,chunkMeta:a}=e,o=this.getCurrentContext(a);if(!o){this.resetWhenMissingContext(a);return}let{frag:s,part:l,level:u}=o,{details:c}=u,{audio:d,text:h,id3:f,initSegment:p}=i;if(this.fragContextChanged(s)||!c){this.fragmentTracker.removeFragment(s);return}if(this.state=nJ.PARSING,this.switchingTrack&&d&&this.completeAudioSwitch(this.switchingTrack),null!=p&&p.tracks){let e=s.initSegment||s;this._bufferInitSegment(u,p.tracks,e,a),r.trigger(ed.FRAG_PARSING_INIT_SEGMENT,{frag:e,id:n,tracks:p.tracks})}if(d){let{startPTS:e,endPTS:t,startDTS:n,endDTS:r}=d;l&&(l.elementaryStreams[eO.AUDIO]={startPTS:e,endPTS:t,startDTS:n,endDTS:r}),s.setElementaryStreamInfo(eO.AUDIO,e,t,n,r),this.bufferFragmentData(d,s,l,a)}if(null!=f&&null!=(t=f.samples)&&t.length){let e=eg({id:n,frag:s,details:c},f);r.trigger(ed.FRAG_PARSING_METADATA,e)}if(h){let e=eg({id:n,frag:s,details:c},h);r.trigger(ed.FRAG_PARSING_USERDATA,e)}}_bufferInitSegment(e,t,n,r){if(this.state!==nJ.PARSING||(t.video&&delete t.video,t.audiovideo&&delete t.audiovideo,!t.audio))return;let i=t.audio;i.id=ef.AUDIO;let a=e.audioCodec;this.log(`Init audio buffer, container:${i.container}, codecs[level/parsed]=[${a}/${i.codec}]`),a&&1===a.split(",").length&&(i.levelCodec=a),this.hls.trigger(ed.BUFFER_CODECS,t);let o=i.initSegment;if(null!=o&&o.byteLength){let e={type:"audio",frag:n,part:null,chunkMeta:r,parent:n.type,data:o};this.hls.trigger(ed.BUFFER_APPENDING,e)}this.tickImmediate()}loadFragment(e,t,n){let r=this.fragmentTracker.getState(e);if(this.switchingTrack||r===tz.NOT_LOADED||r===tz.PARTIAL){var i;if(eD(e)){if(null!=(i=t.details)&&i.live&&!this.initPTS[e.cc]){this.log(`Waiting for video PTS in continuity counter ${e.cc} of live stream before loading audio fragment ${e.sn} of level ${this.trackId}`),this.state=nJ.WAITING_INIT_PTS;let n=this.mainDetails;n&&n.fragmentStart!==t.details.fragmentStart&&nY(t.details,n)}else super.loadFragment(e,t,n)}else this._loadInitSegment(e,t)}else this.clearTrackerIfNeeded(e)}flushAudioIfNeeded(e){if(this.media&&this.bufferedTrack){let{name:t,lang:n,assocLang:r,characteristics:i,audioCodec:a,channels:o}=this.bufferedTrack;tT({name:t,lang:n,assocLang:r,characteristics:i,audioCodec:a,channels:o},e,tS)||(tC(e.url,this.hls)?(this.log("Switching audio track : flushing all audio"),super.flushMainBuffer(0,Number.POSITIVE_INFINITY,"audio"),this.bufferedTrack=null):this.bufferedTrack=e)}}completeAudioSwitch(e){let{hls:t}=this;this.flushAudioIfNeeded(e),this.bufferedTrack=e,this.switchingTrack=null,t.trigger(ed.AUDIO_TRACK_SWITCHED,ey({},e))}}class it extends eb{constructor(e,t){super(t,e.logger),this.hls=void 0,this.canLoad=!1,this.timer=-1,this.hls=e}destroy(){this.clearTimer(),this.hls=this.log=this.warn=null}clearTimer(){-1!==this.timer&&(self.clearTimeout(this.timer),this.timer=-1)}
46startLoad(){this.canLoad=!0,this.loadPlaylist()}stopLoad(){this.canLoad=!1,this.clearTimer()}switchParams(e,t,n){let r=null==t?void 0:t.renditionReports;if(r){let i=-1;for(let n=0;n<r.length;n++){let a;let o=r[n];try{a=new self.URL(o.URI,t.url).href}catch(e){this.warn(`Could not construct new URL for Rendition Report: ${e}`),a=o.URI||""}if(a===e){i=n;break}a===e.substring(0,a.length)&&(i=n)}if(-1!==i){let e=r[i],a=parseInt(e["LAST-MSN"])||(null==t?void 0:t.lastPartSn),o=parseInt(e["LAST-PART"])||(null==t?void 0:t.lastPartIndex);if(this.hls.config.lowLatencyMode){let e=Math.min(t.age-t.partTarget,t.targetduration);o>=0&&e>t.partTarget&&(o+=1)}return new tm(a,o>=0?o:void 0,n&&tp(n))}}}loadPlaylist(e){this.clearTimer()}loadingPlaylist(e,t){this.clearTimer()}shouldLoadPlaylist(e){return this.canLoad&&!!e&&!!e.url&&(!e.details||e.details.live)}getUrlWithDirectives(e,t){if(t)try{return t.addDirectives(e)}catch(e){this.warn(`Could not construct new URL with HLS Delivery Directives: ${e}`)}return e}playlistLoaded(e,t,n){let{details:r,stats:i}=t,a=self.performance.now(),o=i.loading.first?Math.max(0,a-i.loading.first):0;r.advancedDateTime=Date.now()-o;let s=this.hls.config.timelineOffset;if(s!==r.appliedTimelineOffset){let e=Math.max(s||0,0);r.appliedTimelineOffset=e,r.fragments.forEach(t=>{t.start=t.playlistOffset+e})}if(r.live||null!=n&&n.live){let s,u,c;let d="levelInfo"in t?t.levelInfo:t.track;if(r.reloaded(n),n&&r.fragments.length>0){!function(e,t){let n;if(e===t)return;let r=null,i=e.fragments;for(let e=i.length-1;e>=0;e--){let t=i[e].initSegment;if(t){r=t;break}}e.fragmentHint&&delete e.fragmentHint.endPTS,function(e,t,n){let r=t.skippedSegments,i=Math.max(e.startSN,t.startSN)-t.startSN,a=(e.fragmentHint?1:0)+(r?t.endSN:Math.min(e.endSN,t.endSN))-t.startSN,o=t.startSN-e.startSN,s=t.fragmentHint?t.fragments.concat(t.fragmentHint):t.fragments,l=e.fragmentHint?e.fragments.concat(e.fragmentHint):e.fragments;for(let u=i;u<=a;u++){let i=l[o+u],a=s[u];if(r&&!a&&i&&(a=t.fragments[u]=i),i&&a){if(n(i,a,u,s),i.url&&i.url!==a.url){t.playlistParsingError=nB(`media sequence mismatch ${a.sn}:`,e,t,i,a);return}if(i.cc!==a.cc){t.playlistParsingError=nB(`discontinuity sequence mismatch (${i.cc}!=${a.cc})`,e,t,i,a);return}}}}(e,t,(i,a,o,s)=>{if(!t.startCC&&a.cc!==i.cc){var l,u;let n=i.cc-a.cc;for(let e=o;e<s.length;e++)s[e].cc+=n;t.startCC=null!=(l=null==(u=nq(e,t.startSN-1))?void 0:u.cc)?l:s[0].cc,t.endCC=s[s.length-1].cc}eo(i.startPTS)&&eo(i.endPTS)&&(a.setStart(a.startPTS=i.startPTS),a.startDTS=i.startDTS,a.maxStartPTS=i.maxStartPTS,a.endPTS=i.endPTS,a.endDTS=i.endDTS,a.minEndPTS=i.minEndPTS,a.setDuration(i.endPTS-i.startPTS),a.duration&&(n=a),t.PTSKnown=t.alignedSliding=!0),i.hasStreams&&(a.elementaryStreams=i.elementaryStreams),a.loader=i.loader,i.hasStats&&(a.stats=i.stats),i.initSegment&&(a.initSegment=i.initSegment,r=i.initSegment)});let a=t.fragments,o=t.fragmentHint?a.concat(t.fragmentHint):a;if(r&&o.forEach(e=>{var t;e&&(!e.initSegment||e.initSegment.relurl===(null==(t=r)?void 0:t.relurl))&&(e.initSegment=r)}),t.skippedSegments){if(t.deltaUpdateFailed=a.some(e=>!e),t.deltaUpdateFailed){eT.warn("[level-helper] Previous playlist missing segments ski
46pped in delta playlist");for(let e=t.skippedSegments;e--;)a.shift();t.startSN=a[0].sn}else{t.endCC=a[a.length-1].cc,t.canSkipDateRanges&&(t.dateRanges=function(e,t){let{dateRanges:n,recentlyRemovedDateranges:r}=t,i=eg({},e);r&&r.forEach(e=>{delete i[e]});let a=Object.keys(i).length;return a&&Object.keys(n).forEach(e=>{let t=i[e],r=new nr(n[e].attr,t);r.isValid?(i[e]=r,t||(r.tagOrder+=a)):eT.warn(`Ignoring invalid Playlist Delta Update DATERANGE tag: "${tb(n[e].attr)}"`)}),i}(e.dateRanges,t));let n=e.fragments.filter(e=>e.rawProgramDateTime);if(e.hasProgramDateTime&&!t.hasProgramDateTime)for(let e=1;e<o.length;e++)null===o[e].programDateTime&&nO(o[e],o[e-1],n);nC(n,t)}}(function(e,t,n){if(e&&t){let r=0;for(let i=0,a=e.length;i<=a;i++){let a=e[i],o=t[i+r];a&&o&&a.index===o.index&&a.fragment.sn===o.fragment.sn?n(a,o):r--}}})(e.partList,t.partList,(e,t)=>{t.elementaryStreams=e.elementaryStreams,t.stats=e.stats}),n?nF(t,n,n.startPTS,n.endPTS,n.startDTS,n.endDTS):nU(e,t),a.length&&(t.totalduration=t.edge-a[0].start),t.driftStartTime=e.driftStartTime,t.driftStart=e.driftStart;let s=t.advancedDateTime;if(t.advanced&&s){let e=t.edge;t.driftStart||(t.driftStartTime=s,t.driftStart=e),t.driftEndTime=s,t.driftEnd=e}else t.driftEndTime=e.driftEndTime,t.driftEnd=e.driftEnd,t.advancedDateTime=e.advancedDateTime;-1===t.requestScheduled&&(t.requestScheduled=e.requestScheduled)}(n,r);let e=r.playlistParsingError;if(e){this.warn(e);let n=this.hls;if(!n.config.ignorePlaylistParsingErrors){var l;let{networkDetails:a}=t;n.trigger(ed.ERROR,{type:eu.NETWORK_ERROR,details:ec.LEVEL_PARSING_ERROR,fatal:!1,url:r.url,error:e,reason:e.message,level:t.level||void 0,parent:null==(l=r.fragments[0])?void 0:l.type,networkDetails:a,stats:i});return}r.playlistParsingError=null}}-1===r.requestScheduled&&(r.requestScheduled=i.loading.start);let h=this.hls.mainForwardBufferInfo,f=h?h.end-h.len:0,p=(r.edge-f)*1e3,m=nz(r,p);if(r.requestScheduled+m<a?r.requestScheduled=a:r.requestScheduled+=m,this.log(`live playlist ${e} ${r.advanced?"REFRESHED "+r.lastPartSn+"-"+r.lastPartIndex:r.updated?"UPDATED":"MISSED"}`),!this.canLoad||!r.live)return;if(r.canBlockReload&&r.endSN&&r.advanced){let e=this.hls.config.lowLatencyMode,i=r.lastPartSn,o=r.endSN,l=r.lastPartIndex,h=i===o;-1!==l?h?(u=o+1,c=e?0:l):(u=i,c=e?l+1:r.maxPartIndex):u=o+1;let f=r.age,p=f+r.ageHeader,m=Math.min(p-r.partTarget,1.5*r.targetduration);if(m>0){if(p>3*r.targetduration)this.log(`Playlist last advanced ${f.toFixed(2)}s ago. Omitting segment and part directives.`),u=void 0,c=void 0;else if(null!=n&&n.tuneInGoal&&p-r.partTarget>n.tuneInGoal)this.warn(`CDN Tune-in goal increased from: ${n.tuneInGoal} to: ${m} with playlist age: ${r.age}`),m=0;else{let e=Math.floor(m/r.targetduration);u+=e,void 0!==c&&(c+=Math.round(m%r.targetduration/r.partTarget)),this.log(`CDN Tune-in age: ${r.ageHeader}s last advanced ${f.toFixed(2)}s goal: ${m} skip sn ${e} to part ${c}`)}r.tuneInGoal=m}if(s=this.getDeliveryDirectives(r,t.deliveryDirectives,u,c),e||!h){r.requestScheduled=a,this.loadingPlaylist(d,s);return}}else(r.canBlockReload||r.canSkipUntil)&&(s=this.getDeliveryDirectives(r,t.deliveryDirectives,u,c));s&&void 0!==u&&r.canBlockReload&&(r.requestScheduled=i.loading.first+Math.max(m-2*o,m/2)),this.scheduleLoading(d,s,r)}else this.clearTimer()}scheduleLoading(e,t,n){let r=n||e.details;if(!r){this.loadingPlaylist(e,t);return}let i=self.performance.now(),a=r.requestScheduled;if(i>=a){this.loadingPlaylist(e,t);return}let o=a-i;this.log(`reload live playlist ${e.name||e.bitrate+"bps"} in ${Math.round(o)} ms`),this.clearTimer(),this.timer=self.setTimeout(()=>this.loadingPlaylist(e,t),o)}getDeliveryDirectives(e,t,n,r){let i=tp(e);return null!=t&&t.skip&&e.deltaUpdateFailed&&(n=t.msn,r=t.part,i=tf.No),new tm(n,r,i)}checkRetry(e){let t=e.details,n=tR(e),r=e.errorAction,{action:i,retryCount:a=0,retryConfig:o}=r||{},s=!!r&&!!o&&(i===tF.RetryRequest||!r.resolved&&i===tF.SendAlternateToPenaltyBox);if(s){var l;if(a>=o.maxNumRetry)return!1;if(n&&null!=(l=e.context)&&l.deliveryDirectives)this.warn(`Retrying playlist loading ${a+1}/${o.maxNumRetry} after "${t}" without delivery-directives`),this.loadPlaylist();else{let e=tN(o,a);this.clearTimer(),this.timer=self.setTimeout(()=>this.loadPlaylist(),e),this.warn(`Retrying playlist loading ${a+1}/${o.maxNumRetry} after "${t}" in ${e}ms`)}e.levelRetry=!0,r.resolved=!0}return s}}function ir(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(!ii(e[n].attrs,t[n].attrs))return!1;return!0}function ii(e,t,n){let r=e["STABLE-RENDITION-ID"];return r&&!n?r===t["STABLE-RENDITION-ID"]:!(n||["LANGUAGE","NAME","CHARACTERISTICS","AUTOSELECT","DEFAULT","FORCED","ASSOC-LANGUAGE"]).some(n=>e[n]!==t[n])}function ia(e,t){return t.label.toLowerCase()===e.name.toLowerCase()&&(!t.language||t.language.toLowerCase()===(e.lang||"").toLowerCase())}class io extends it{constructor(e){super(e,"audio-track-controller"),this.tracks=[],this.groupIds=null,this.tracksInGroup=[],this.trackId=-1,this.currentTrack=null,this.selectDefaultTrack=!0,this.registerListeners()}registerListeners(){let{hls:e}=this;e.on(ed.MANIFEST_LOADING,this.onManifestLoading,this),e.on(ed.MANIFEST_PARSED,this.onManifestParsed,this),e.on(ed.LEVEL_LOADING,this.onLevelLoading,this),e.on(ed.LEVEL_SWITCHING,this.onLevelSwitching,this),e.on(ed.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),e.on(ed.ERROR,this.onError,this)}unregisterListeners(){let{hls:e}=this;e.off(ed.MANIFEST_LOADING,this.onManifestLoading,this),e.off(ed.MANIFEST_PARSED,this.onManifestParsed,this),e.off(ed.LEVEL_LOADING,this.onLevelLoading,this),e.off(ed.LEVEL_SWITCHING,this.onLevelSwitching,this),e.off(ed.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),e.off(ed.ERROR,this.onError,this)}destroy(){this.unregisterListeners(),this.tracks.length=0,this.tracksInGroup.length=0,this.currentTrack=null,super.destroy()}onManifestLoading(){this.tracks=[],this.tracksInGroup=[],this.groupIds=null,this.currentTrack=null,this.trackId=-1,this.selectDefaultTrack=!0}onManifestParsed(e,t){this.tracks=t.audioTracks||[]}onAudioTrackLoaded(e,t){let{id:n,groupId:r,details:i}=t,a=this.tracksInGroup[n];if(!a||a.groupId!==r){this.warn(`Audio track with id:${n} and group:${r} not found in active group ${null==a?void 0:a.groupId}`);return}let o=a.details;a.details=t.details,this.log(`Audio track ${n} "${a.name}" lang:${a.lang} group:${r} loaded [${i.startSN}-${i.endSN}]`),n===this.trackId&&this.playlistLoaded(n,t,o)}onLevelLoading(e,t){this.switchLevel(t.level)}onLevelSwitching(e,t){this.switchLevel(t.level)}switchLevel(e){let t=this.hls.levels[e];if(!t)return;let n=t.audioGroups||null,r=this.groupIds,i=this.currentTrack;if(!n||(null==r?void 0:r.length)!==(null==n?void 0:n.length)||null!=n&&n.some(e=>(null==r?void 0:r.indexOf(e))===-1)){this.groupIds=n,this.trackId=-1,this.currentTrack=null;let e=this.tracks.filter(e=>!n||-1!==n.indexOf(e.groupId));if(e.length)this.selectDefaultTrack&&!e.some(e=>e.default)&&(this.selectDefaultTrack=!1),e.forEach((e,t)=>
46{e.id=t});else if(!i&&!this.tracksInGroup.length)return;this.tracksInGroup=e;let t=this.hls.config.audioPreference;if(!i&&t){let n=tx(t,e,tS);if(n>-1)i=e[n];else{let e=tx(t,this.tracks);i=this.tracks[e]}}let r=this.findTrackId(i);-1===r&&i&&(r=this.findTrackId(null)),this.log(`Updating audio tracks, ${e.length} track(s) found in group(s): ${null==n?void 0:n.join(",")}`),this.hls.trigger(ed.AUDIO_TRACKS_UPDATED,{audioTracks:e});let o=this.trackId;if(-1!==r&&-1===o)this.setAudioTrack(r);else if(e.length&&-1===o){var a;let t=Error(`No audio track selected for current audio group-ID(s): ${null==(a=this.groupIds)?void 0:a.join(",")} track count: ${e.length}`);this.warn(t.message),this.hls.trigger(ed.ERROR,{type:eu.MEDIA_ERROR,details:ec.AUDIO_TRACK_LOAD_ERROR,fatal:!0,error:t})}}}onError(e,t){!t.fatal&&t.context&&(t.context.type!==eh.AUDIO_TRACK||t.context.id!==this.trackId||this.groupIds&&-1===this.groupIds.indexOf(t.context.groupId)||this.checkRetry(t))}get allAudioTracks(){return this.tracks}get audioTracks(){return this.tracksInGroup}get audioTrack(){return this.trackId}set audioTrack(e){this.selectDefaultTrack=!1,this.setAudioTrack(e)}setAudioOption(e){let t=this.hls;if(t.config.audioPreference=e,e){let n=this.allAudioTracks;
46if(this.selectDefaultTrack=!1,n.length){let r=this.currentTrack;if(r&&tT(e,r,tS))return r;let i=tx(e,this.tracksInGroup,tS);if(i>-1){let e=this.tracksInGroup[i];return this.setAudioTrack(i),e}if(r){let r=t.loadLevel;-1===r&&(r=t.firstAutoLevel);let i=function(e,t,n,r,i){let a=t[r],o=t.reduce((e,t,n)=>{let r=t.uri;return(e[r]||(e[r]=[])).push(n),e},{})[a.uri];o.length>1&&(r=Math.max.apply(Math,o));let s=a.videoRange,l=a.frameRate,u=a.codecSet.substring(0,4),c=t_(t,r,t=>{if(t.videoRange!==s||t.frameRate!==l||t.codecSet.substring(0,4)!==u)return!1;let r=t.audioGroups;return tx(e,n.filter(e=>!r||-1!==r.indexOf(e.groupId)),i)>-1});return c>-1?c:t_(t,r,t=>{let r=t.audioGroups;return tx(e,n.filter(e=>!r||-1!==r.indexOf(e.groupId)),i)>-1})}(e,t.levels,n,r,tS);if(-1===i)return null;t.nextLoadLevel=i}if(e.channels||e.audioCodec){let t=tx(e,n);if(t>-1)return n[t]}}}return null}setAudioTrack(e){let t=this.tracksInGroup;if(e<0||e>=t.length){this.warn(`Invalid audio track id: ${e}`);return}this.selectDefaultTrack=!1;let n=this.currentTrack,r=t[e],i=r.details&&!r.details.live;if(e===this.trackId&&r===n&&i||(this.log(`Switching to audio-track ${e} "${r.name}" lang:${r.lang} group:${r.groupId} channels:${r.channels}`),this.trackId=e,this.currentTrack=r,this.hls.trigger(ed.AUDIO_TRACK_SWITCHING,ey({},r)),i))return;let a=this.switchParams(r.url,null==n?void 0:n.details,r.details);this.loadPlaylist(a)}findTrackId(e){let t=this.tracksInGroup;for(let n=0;n<t.length;n++){let r=t[n];if((!this.selectDefaultTrack||r.default)&&(!e||tT(e,r,tS)))return n}if(e){let{name:n,lang:r,assocLang:i,characteristics:a,audioCodec:o,channels:s}=e;for(let e=0;e<t.length;e++)if(tT({name:n,lang:r,assocLang:i,characteristics:a,audioCodec:o,channels:s},t[e],tS))return e;for(let n=0;n<t.length;n++){let r=t[n];if(ii(e.attrs,r.attrs,["LANGUAGE","ASSOC-LANGUAGE","CHARACTERISTICS"]))return n}for(let n=0;n<t.length;n++){let r=t[n];if(ii(e.attrs,r.attrs,["LANGUAGE"]))return n}}return -1}loadPlaylist(e){super.loadPlaylist();let t=this.currentTrack;this.shouldLoadPlaylist(t)&&tC(t.url,this.hls)&&this.scheduleLoading(t,e)}loadingPlaylist(e,t){super.loadingPlaylist(e,t);let n=e.id,r=e.groupId,i=this.getUrlWithDirectives(e.url,t),a=e.details,o=null==a?void 0:a.age;this.log(`Loading audio-track ${n} "${e.name}" lang:${e.lang} group:${r}${(null==t?void 0:t.msn)!==void 0?" at sn "+t.msn+" part "+t.part:""}${o&&a.live?" age "+o.toFixed(1)+(a.type?" "+a.type:""):""} ${i}`),this.hls.trigger(ed.AUDIO_TRACK_LOADING,{url:i,id:n,groupId:r,deliveryDirectives:t||null,track:e})}}class is{constructor(e){this.tracks=void 0,this.queues={video:[],audio:[],audiovideo:[]},this.tracks=e}destroy(){this.tracks=this.queues=null}append(e,t,n){if(null===this.queues||null===this.tracks)return;let r=this.queues[t];r.push(e),1!==r.length||n||this.executeNext(t)}appendBlocker(e){return new Promise(t=>{this.append({label:"async-blocker",execute:t,onStart:()=>{},onComplete:()=>{},onError:()=>{}},e)})}prependBlocker(e){return new Promise(t=>{this.queues&&this.queues[e].unshift({label:"async-blocker-prepend",execute:t,onStart:()=>{},onComplete:()=>{},onError:()=>{}})})}removeBlockers(){null!==this.queues&&[this.queues.video,this.queues.audio,this.queues.audiovideo].forEach(e=>{var t;let n=null==(t=e[0])?void 0:t.label;("async-blocker"===n||"async-blocker-prepend"===n)&&(e[0].execute(),e.splice(0,1))})}unblockAudio(e){null!==this.queues&&this.queues.audio[0]===e&&this.shiftAndExecuteNext("audio")}executeNext(e){if(null===this.queues||null===this.tracks)return;let t=this.queues[e];if(t.length){let r=t[0];try{r.execute()}catch(i){var n;if(r.onError(i),null===this.queues||null===this.tracks)return;let t=null==(n=this.tracks[e])?void 0:n.buffer;null!=t&&t.updating||this.shiftAndExecuteNext(e)}}}shiftAndExecuteNext(e){null!==this.queues&&(this.queues[e].shift(),this.executeNext(e))}current(e){var t;return(null==(t=this.queues)?void 0:t[e][0])||null}toString(){let{queues:e,tracks:t}=this;return null===e||null===t?"<destroyed>":`
47${this.list("video")}
48${this.list("audio")}
49${this.list("audiovideo")}}`}list(e){var t,n;return null!=(t=this.queues)&&t[e]||null!=(n=this.tracks)&&n[e]?`${e}: (${this.listSbInfo(e)}) ${this.listOps(e)}`:""}listSbInfo(e){var t;let n=null==(t=this.tracks)?void 0:t[e],r=null==n?void 0:n.buffer;return r?`SourceBuffer${r.updating?" updating":""}${n.ended?" ended":""}${n.ending?" ending":""}`:"none"}listOps(e){var t;return(null==(t=this.queues)?void 0:t[e].map(e=>e.label).join(", "))||""}}let il=/(avc[1234]|hvc1|hev1|dvh[1e]|vp09|av01)(?:\.[^.,]+)+/,iu="HlsJsTrackRemovedError";
49class ic extends Error{constructor(e){super(e),this.name=iu}}class id extends eb{constructor(e,t){var n;super("buffer-controller",e.logger),this.hls=void 0,this.fragmentTracker=void 0,this.details=null,this._objectUrl=null,this.operationQueue=null,this.bufferCodecEventsTotal=0,this.media=null,this.mediaSource=null,this.lastMpegAudioChunk=null,this.blockedAudioAppend=null,this.lastVideoAppendEnd=0,this.appendSource=void 0,this.transferData=void 0,this.overrides=void 0,this.appendErrors={audio:0,video:0,audiovideo:0},this.tracks={},this.sourceBuffers=[[null,null],[null,null]],this._onEndStreaming=e=>{var t;this.hls&&(null==(t=this.mediaSource)?void 0:t.readyState)==="open"&&this.hls.pauseBuffering()},this._onStartStreaming=e=>{this.hls&&this.hls.resumeBuffering()},this._onMediaSourceOpen=e=>{let{media:t,mediaSource:n}=this;e&&this.log("Media source opened"),t&&n&&(n.removeEventListener("sourceopen",this._onMediaSourceOpen),t.removeEventListener("emptied",this._onMediaEmptied),this.updateDuration(),this.hls.trigger(ed.MEDIA_ATTACHED,{media:t,mediaSource:n}),null!==this.mediaSource&&this.checkPendingTracks())},this._onMediaSourceClose=()=>{this.log("Media source closed")},this._onMediaSourceEnded=()=>{this.log("Media source ended")},this._onMediaEmptied=()=>{let{mediaSrc:e,_objectUrl:t}=this;e!==t&&this.error(`Media element src was set while attaching MediaSource (${t} > ${e})`)},this.hls=e,this.fragmentTracker=t,this.appendSource=(n=eS(e.config.preferManagedMediaSource),"undefined"!=typeof self&&n===self.ManagedMediaSource),this.initTracks(),this.registerListeners()}hasSourceTypes(){return Object.keys(this.tracks).length>0}destroy(){this.unregisterListeners(),this.details=null,this.lastMpegAudioChunk=this.blockedAudioAppend=null,this.transferData=this.overrides=void 0,this.operationQueue&&(this.operationQueue.destroy(),this.operationQueue=null),this.hls=this.fragmentTracker=null,this._onMediaSourceOpen=this._onMediaSourceClose=null,this._onMediaSourceEnded=null,this._onStartStreaming=this._onEndStreaming=null}registerListeners(){let{hls:e}=this;e.on(ed.MEDIA_ATTACHING,this.onMediaAttaching,this),e.on(ed.MEDIA_DETACHING,this.onMediaDetaching,this),e.on(ed.MANIFEST_LOADING,this.onManifestLoading,this),e.on(ed.MANIFEST_PARSED,this.onManifestParsed,this),e.on(ed.BUFFER_RESET,this.onBufferReset,this),e.on(ed.BUFFER_APPENDING,this.onBufferAppending,this),e.on(ed.BUFFER_CODECS,this.onBufferCodecs,this),e.on(ed.BUFFER_EOS,this.onBufferEos,this),e.on(ed.BUFFER_FLUSHING,this.onBufferFlushing,this),e.on(ed.LEVEL_UPDATED,this.onLevelUpdated,this),e.on(ed.FRAG_PARSED,this.onFragParsed,this),e.on(ed.FRAG_CHANGED,this.onFragChanged,this),e.on(ed.ERROR,this.onError,this)}unregisterListeners(){let{hls:e}=this;e.off(ed.MEDIA_ATTACHING,this.onMediaAttaching,this),e.off(ed.MEDIA_DETACHING,this.onMediaDetaching,this),e.off(ed.MANIFEST_LOADING,this.onManifestLoading,this),e.off(ed.MANIFEST_PARSED,this.onManifestParsed,this),e.off(ed.BUFFER_RESET,this.onBufferReset,this),e.off(ed.BUFFER_APPENDING,this.onBufferAppending,this),e.off(ed.BUFFER_CODECS,this.onBufferCodecs,this),e.off(ed.BUFFER_EOS,this.onBufferEos,this),e.off(ed.BUFFER_FLUSHING,this.onBufferFlushing,this),e.off(ed.LEVEL_UPDATED,this.onLevelUpdated,this),e.off(ed.FRAG_PARSED,this.onFragParsed,this),e.off(ed.FRAG_CHANGED,this.onFragChanged,this),e.off(ed.ERROR,this.onError,this)}transferMedia(){let{media:e,mediaSource:t}=this;if(!e)return null;let n={};if(this.operationQueue){let e=this.isUpdating();e||this.operationQueue.removeBlockers();let t=this.isQueued();(e||t)&&this.warn(`Transfering MediaSource with${t?" operations in queue":""}${e?" updating SourceBuffer(s)":""} ${this.operationQueue}`),this.operationQueue.destroy()}let r=this.transferData;return!this.sourceBufferCount&&r&&r.mediaSource===t?eg(n,r.tracks):this.sourceBuffers.forEach(e=>{let[t]=e;t&&(n[t]=eg({},this.tracks[t]),this.removeBuffer(t)),e[0]=e[1]=null}),{media:e,mediaSource:t,tracks:n}}initTracks(){this.sourceBuffers=[[null,null],[null,null]],this.tracks={},this.resetQueue(),this.resetAppendErrors(),this.lastMpegAudioChunk=this.blockedAudioAppend=null,this.lastVideoAppendEnd=0}onManifestLoading(){this.bufferCodecEventsTotal=0,this.details=null}onManifestParsed(e,t){var n;let r=2;(!t.audio||t.video)&&t.altAudio||(r=1),this.bufferCodecEventsTotal=r,this.log(`${r}
49 bufferCodec event(s) expected.`),null!=(n=this.transferData)&&n.mediaSource&&this.sourceBufferCount&&r&&this.bufferCreated()}onMediaAttaching(e,t){let n=this.media=t.media,r=eS(this.appendSource);if(this.transferData=this.overrides=void 0,n&&r){let e=!!t.mediaSource;(e||t.overrides)&&(this.transferData=t,this.overrides=t.overrides);let i=this.mediaSource=t.mediaSource||new r;if(this.assignMediaSource(i),e)this._objectUrl=n.src,this.attachTransferred();else{let e=this._objectUrl=self.URL.createObjectURL(i);if(this.appendSource)try{n.removeAttribute("src");let t=self.ManagedMediaSource;n.disableRemotePlayback=n.disableRemotePlayback||t&&i instanceof t,ih(n),function(e,t){let n=self.document.createElement("source");n.type="video/mp4",n.src=t,e.appendChild(n)}(n,e),n.load()}catch(t){n.src=e}else n.src=e}n.addEventListener("emptied",this._onMediaEmptied)}}assignMediaSource(e){var t,n;this.log(`${(null==(t=this.transferData)?void 0:t.mediaSource)===e?"transferred":"created"} media source: ${null==(n=e.constructor)?void 0:n.name}`),e.addEventListener("sourceopen",this._onMediaSourceOpen),e.addEventListener("sourceended",this._onMediaSourceEnded),e.addEventListener("sourceclose",this._onMediaSourceClose),this.appendSource&&(e.addEventListener("startstreaming",this._onStartStreaming),e.addEventListener("endstreaming",this._onEndStreaming))}attachTransferred(){let e=this.media,t=this.transferData;if(!t||!e)return;let n=this.tracks,r=t.tracks,i=r?Object.keys(r):null,a=i?i.length:0,o=()=>{this.media&&this.mediaSourceOpenOrEnded&&this._onMediaSourceOpen()};if(r&&i&&a){if(!this.tracksReady){this.hls.config.startFragPrefetch=!0,this.log("attachTransferred: waiting for SourceBuffer track info");return}if(this.log(`attachTransferred: (bufferCodecEventsTotal ${this.bufferCodecEventsTotal})
50required tracks: ${tb(n,(e,t)=>"initSegment"===e?void 0:t)};
51transfer tracks: ${tb(r,(e,t)=>"initSegment"===e?void 0:t)}}`),!e_(r,n)){t.mediaSource=null,t.tracks=void 0;let i=e.currentTime,a=this.details,o=Math.max(i,(null==a?void 0:a.fragments[0].start)||0);if(o-i>1){this.log(`attachTransferred: waiting for playback to reach new tracks start time ${i} -> ${o}`);return}this.warn(`attachTransferred: resetting MediaSource for incompatible tracks ("${Object.keys(r)}"->"${Object.keys(n)}") start time: ${o} currentTime: ${i}`),this.onMediaDetaching(ed.MEDIA_DETACHING,{}),this.onMediaAttaching(ed.MEDIA_ATTACHING,t),e.currentTime=o;return}this.transferData=void 0,i.forEach(e=>{let t=r[e];if(t){let n=t.buffer;if(n){let r=this.fragmentTracker,i=t.id;if(r.hasFragments(i)||r.hasParts(i)){let t=t8.getBuffered(n);r.detectEvictedFragments(e,t,i,null,!0)}let a=ip(e),o=[e,n];this.sourceBuffers[a]=o,n.updating&&this.operationQueue&&this.operationQueue.prependBlocker(e),this.trackSourceBuffer(e,t)}}}),o(),this.bufferCreated()}else this.log("attachTransferred: MediaSource w/o SourceBuffers"),o()}get mediaSourceOpenOrEnded(){var e;let t=null==(e=this.mediaSource)?void 0:e.readyState;return"open"===t||"ended"===t}onMediaDetaching(e,t){let n=!!t.transferMedia;this.transferData=this.overrides=void 0;let{media:r,mediaSource:i,_objectUrl:a}=this;if(i){if(this.log(`media source ${n?"transferring":"detaching"}`),n)this.sourceBuffers.forEach(([e])=>{e&&this.removeBuffer(e)}),this.resetQueue();else{if(this.mediaSourceOpenOrEnded){let e="open"===i.readyState;try{let t=i.sourceBuffers;for(let n=t.length;n--;)e&&t[n].abort(),i.removeSourceBuffer(t[n]);e&&i.endOfStream()}catch(e){this.warn(`onMediaDetaching: ${e.message} while calling endOfStream`)}}this.sourceBufferCount&&this.onBufferReset()}i.removeEventListener("sourceopen",this._onMediaSourceOpen),i.removeEventListener("sourceended",this._onMediaSourceEnded),i.removeEventListener("sourceclose",this._onMediaSourceClose),this.appendSource&&(i.removeEventListener("startstreaming",this._onStartStreaming),i.removeEventListener("endstreaming",this._onEndStreaming)),this.mediaSource=null,this._objectUrl=null}r&&(r.removeEventListener("emptied",this._onMediaEmptied),n||(a&&self.URL.revokeObjectURL(a),this.mediaSrc===a?(r.removeAttribute("src"),this.appendSource&&ih(r),r.load()):this.warn("media|source.src was changed by a third party - skip cleanup")),this.media=null),this.hls.trigger(ed.MEDIA_DETACHED,t)}
51onBufferReset(){this.sourceBuffers.forEach(([e])=>{e&&this.resetBuffer(e)}),this.initTracks()}resetBuffer(e){var t,n;let r=null==(t=this.tracks[e])?void 0:t.buffer;if(this.removeBuffer(e),r)try{null!=(n=this.mediaSource)&&n.sourceBuffers.length&&this.mediaSource.removeSourceBuffer(r)}catch(t){this.warn(`onBufferReset ${e}`,t)}delete this.tracks[e]}removeBuffer(e){this.removeBufferListeners(e),this.sourceBuffers[ip(e)]=[null,null];let t=this.tracks[e];t&&(t.buffer=void 0)}resetQueue(){this.operationQueue&&this.operationQueue.destroy(),this.operationQueue=new is(this.tracks)}onBufferCodecs(e,t){let n=this.tracks,r=Object.keys(t);this.log(`BUFFER_CODECS: "${r}" (current SB count ${this.sourceBufferCount})`);let i="audiovideo"in t&&(n.audio||n.video)||n.audiovideo&&("audio"in t||"video"in t),a=!i&&this.sourceBufferCount&&this.media&&r.some(e=>!n[e]);if(i||a){this.warn(`Unsupported transition between "${Object.keys(n)}" and "${r}" SourceBuffers`);return}r.forEach(e=>{var r,i,a;let{id:o,codec:s,levelCodec:l,container:u,metadata:c,supplemental:d}=t[e],h=n[e],f=null==(r=this.transferData)?void 0:null==(i=r.tracks)?void 0:i[e],p=null!=f&&f.buffer?f:h,m=(null==p?void 0:p.pendingCodec)||(null==p?void 0:p.codec),g=null==p?void 0:p.levelCodec;h||(h=n[e]={buffer:void 0,listeners:[],codec:s,supplemental:d,container:u,levelCodec:l,metadata:c,id:o});let v=ti(m,g),y=null==v?void 0:v.replace(il,"$1"),b=ti(s,l),A=null==(a=b)?void 0:a.replace(il,"$1");b&&v&&y!==A&&("audio"===e.slice(0,5)&&(b=tr(b,this.appendSource)),this.log(`switching codec ${m} to ${b}`),b!==(h.pendingCodec||h.codec)&&(h.pendingCodec=b),h.container=u,this.appendChangeType(e,u,b))}),(this.tracksReady||this.sourceBufferCount)&&(t.tracks=this.sourceBufferTracks),!this.sourceBufferCount&&this.mediaSourceOpenOrEnded&&this.checkPendingTracks()}get sourceBufferTracks(){return Object.keys(this.tracks).reduce((e,t)=>{let n=this.tracks[t];return e[t]={id:n.id,container:n.container,codec:n.codec,levelCodec:n.levelCodec},e},{})}appendChangeType(e,t,n){let r=`${t};codecs=${n}`,i={label:`change-type=${r}`,execute:()=>{let i=this.tracks[e];if(i){let a=i.buffer;null!=a&&a.changeType&&(this.log(`changing ${e} sourceBuffer type to ${r}`),a.changeType(r),i.codec=n,i.container=t)}this.shiftAndExecuteNext(e)},onStart:()=>{},onComplete:()=>{},onError:t=>{this.warn(`Failed to change ${e} SourceBuffer type`,t)}};this.append(i,e,this.isPending(this.tracks[e]))}blockAudio(e){var t;let n=e.start,r=n+.05*e.duration;if((null==(t=this.fragmentTracker.getAppendedFrag(n,ef.MAIN))?void 0:t.gap)===!0)return;let i={label:"block-audio",execute:()=>{var e;let t=this.tracks.video;(this.lastVideoAppendEnd>r||null!=t&&t.buffer&&t8.isBuffered(t.buffer,r)||(null==(e=this.fragmentTracker.getAppendedFrag(r,ef.MAIN))?void 0:e.gap)===!0)&&(this.blockedAudioAppend=null,this.shiftAndExecuteNext("audio"))},onStart:()=>{},onComplete:()=>{},onError:e=>{this.warn("Error executing block-audio operation",e)}};this.blockedAudioAppend={op:i,frag:e},this.append(i,"audio",!0)}unblockAudio(){let{blockedAudioAppend:e,operationQueue:t}=this;e&&t&&(this.blockedAudioAppend=null,t.unblockAudio(e.op))}onBufferAppending(e,t){let{tracks:n}=this,{data:r,type:i,parent:a,frag:o,part:s,chunkMeta:l}=t,u=l.buffering[i],c=o.sn,d=self.performance.now();u.start=d;let h=o.stats.buffering,f=s?s.stats.buffering:null;0===h.start&&(h.start=d),f&&0===f.start&&(f.start=d);let p=n.audio,m=!1;"audio"===i&&(null==p?void 0:p.container)==="audio/mpeg"&&(m=!this.lastMpegAudioChunk||1===l.id||this.lastMpegAudioChunk.sn!==l.sn,this.lastMpegAudioChunk=l);let g=this.tracks.video,v=null==g?void 0:g.buffer;if(v&&"initSegment"!==c){let e=s||o,t=this.blockedAudioAppend;if("audio"!==i||"main"===a||this.blockedAudioAppend){if("video"===i){let n=e.end;if(t){let e=t.frag.start;(n>e||n<this.lastVideoAppendEnd||t8.isBuffered(v,e))&&this.unblockAudio()}this.lastVideoAppendEnd=n}}else{let t=e.start+.05*e.duration,n=v.buffered,r=this.currentOp("video");(n.length||r)&&(r||t8.isBuffered(v,t)||!(this.lastVideoAppendEnd<t))||this.blockAudio(e)}}let y=(s||o).start,b={label:`append-${i}`,execute:()=>{if(u.executeStart=self.performance.now(),m){let e=this.tracks[i];if(e){let t=e.buffer;if(t){let e=y-t.timestampOffset;Math.abs(e)>
51=.1&&(this.log(`Updating audio SourceBuffer timestampOffset to ${y} (delta: ${e}) sn: ${c})`),t.timestampOffset=y)}}}this.appendExecutor(r,i)},onStart:()=>{},onComplete:()=>{let e=self.performance.now();u.executeEnd=u.end=e,0===h.first&&(h.first=e),f&&0===f.first&&(f.first=e);let t={};this.sourceBuffers.forEach(([e,n])=>{e&&(t[e]=t8.getBuffered(n))}),this.appendErrors[i]=0,"audio"===i||"video"===i?this.appendErrors.audiovideo=0:(this.appendErrors.audio=0,this.appendErrors.video=0),this.hls.trigger(ed.BUFFER_APPENDED,{type:i,frag:o,part:s,chunkMeta:l,parent:o.type,timeRanges:t})},onError:e=>{var t;let n={type:eu.MEDIA_ERROR,parent:o.type,details:ec.BUFFER_APPEND_ERROR,sourceBufferName:i,frag:o,part:s,chunkMeta:l,error:e,err:e,fatal:!1},r=null==(t=this.media)?void 0:t.error;if(e.code===DOMException.QUOTA_EXCEEDED_ERR)n.details=ec.BUFFER_FULL_ERROR;else if(e.code===DOMException.INVALID_STATE_ERR&&this.mediaSourceOpenOrEnded&&!r)n.errorAction=tV(!0);else if(e.name===iu&&0===this.sourceBufferCount)n.errorAction=tV(!0);else{let e=++this.appendErrors[i];this.warn(`Failed ${e}/${this.hls.config.appendErrorMaxRetry} times to append segment in "${i}" sourceBuffer (${r||"no media error"}
51)`),(e>=this.hls.config.appendErrorMaxRetry||r)&&(n.fatal=!0)}this.hls.trigger(ed.ERROR,n)}};this.append(b,i,this.isPending(this.tracks[i]))}getFlushOp(e,t,n){return this.log(`queuing "${e}" remove ${t}-${n}`),{label:"remove",execute:()=>{this.removeExecutor(e,t,n)},onStart:()=>{},onComplete:()=>{this.hls.trigger(ed.BUFFER_FLUSHED,{type:e})},onError:r=>{this.warn(`Failed to remove ${t}-${n} from "${e}" SourceBuffer`,r)}}}onBufferFlushing(e,t){let{type:n,startOffset:r,endOffset:i}=t;n?this.append(this.getFlushOp(n,r,i),n):this.sourceBuffers.forEach(([e])=>{e&&this.append(this.getFlushOp(e,r,i),e)})}onFragParsed(e,t){let{frag:n,part:r}=t,i=[],a=r?r.elementaryStreams:n.elementaryStreams;a[eO.AUDIOVIDEO]?i.push("audiovideo"):(a[eO.AUDIO]&&i.push("audio"),a[eO.VIDEO]&&i.push("video")),0===i.length&&this.warn(`Fragments must have at least one ElementaryStreamType set. type: ${n.type} level: ${n.level} sn: ${n.sn}`),this.blockBuffers(()=>{let e=self.performance.now();n.stats.buffering.end=e,r&&(r.stats.buffering.end=e);let t=r?r.stats:n.stats;this.hls.trigger(ed.FRAG_BUFFERED,{frag:n,part:r,stats:t,id:n.type})},i).catch(e=>{this.warn(`Fragment buffered callback ${e}`),this.stepOperationQueue(this.sourceBufferTypes)})}onFragChanged(e,t){this.trimBuffers()}get bufferedToEnd(){return this.sourceBufferCount>0&&!this.sourceBuffers.some(([e])=>{var t,n;return e&&(!(null!=(t=this.tracks[e])&&t.ended)||(null==(n=this.tracks[e])?void 0:n.ending))})}onBufferEos(e,t){var n;this.sourceBuffers.forEach(([e])=>{if(e){let n=this.tracks[e];t.type&&t.type!==e||(n.ending=!0,n.ended||(n.ended=!0,this.log(`${e} buffer reached EOS`)))}});let r=(null==(n=this.overrides)?void 0:n.endOfStream)!==!1;this.sourceBufferCount>0&&!this.sourceBuffers.some(([e])=>{var t;return e&&!(null!=(t=this.tracks[e])&&t.ended)})&&(r?(this.log("Queueing EOS"),this.blockUntilOpen(()=>{this.tracksEnded();let{mediaSource:e}=this;if(!e||"open"!==e.readyState){e&&this.log(`Could not call mediaSource.endOfStream(). mediaSource.readyState: ${e.readyState}`);return}this.log("Calling mediaSource.endOfStream()"),e.endOfStream(),this.hls.trigger(ed.BUFFERED_TO_END,void 0)})):(this.tracksEnded(),this.hls.trigger(ed.BUFFERED_TO_END,void 0)))}tracksEnded(){this.sourceBuffers.forEach(([e])=>{if(null!==e){let t=this.tracks[e];t&&(t.ending=!1)}})}onLevelUpdated(e,{details:t}){t.fragments.length&&(this.details=t,this.updateDuration())}updateDuration(){let e=this.getDurationAndRange();e&&this.blockUntilOpen(()=>this.updateMediaSource(e))}onError(e,t){if(t.details===ec.BUFFER_APPEND_ERROR&&t.frag){var n;let e=null==(n=t.errorAction)?void 0:n.nextAutoLevel;eo(e)&&e!==t.frag.level&&this.resetAppendErrors()}}resetAppendErrors(){this.appendErrors={audio:0,video:0,audiovideo:0}}trimBuffers(){let{hls:e,details:t,media:n}=this;if(!n||null===t||!this.sourceBufferCount)return;let r=e.config,i=n.currentTime,a=t.levelTargetDuration,o=t.live&&null!==r.liveBackBufferLength?r.liveBackBufferLength:r.backBufferLength;if(eo(o)&&o>=0){let e=Math.max(o,a);this.flushBackBuffer(i,a,Math.floor(i/a)*a-e)}if(eo(r.frontBufferFlushThreshold)&&r.frontBufferFlushThreshold>0){let e=Math.max(Math.max(r.maxBufferLength,r.frontBufferFlushThreshold),a);this.flushFrontBuffer(i,a,Math.floor(i/a)*a+e)}}flushBackBuffer(e,t,n){this.sourceBuffers.forEach(([e,t])=>{if(t){let i=t8.getBuffered(t);if(i.length>0&&n>i.start(0)){var r;this.hls.trigger(ed.BACK_BUFFER_REACHED,{bufferEnd:n});let t=this.tracks[e];if(null!=(r=this.details)&&r.live)this.hls.trigger(ed.LIVE_BACK_BUFFER_REACHED,{bufferEnd:n});else if(null!=t&&t.ended){this.log(`Cannot flush ${e} back buffer while SourceBuffer is in ended state`);return}this.hls.trigger(ed.BUFFER_FLUSHING,{startOffset:0,endOffset:n,type:e})}}})}flushFrontBuffer(e,t,n){this.sourceBuffers.forEach(([t,r])=>{if(r){let i=t8.getBuffered(r),a=i.length;if(a<2)return;let o=i.start(a-1),s=i.end(a-1);n>o||e>=o&&e<=s||this.hls.trigger(ed.BUFFER_FLUSHING,{startOffset:o,endOffset:1/0,type:t})}})}getDurationAndRange(){var e;let{details:t,mediaSource:n}=this;if(!t||!this.media||(null==n?void 0:n.readyState)!=="open")return null;let r=t.edge;
51if(t.live&&this.hls.config.liveDurationInfinity){if(t.fragments.length&&t.live&&n.setLiveSeekableRange){let e=Math.max(0,t.fragmentStart),n=Math.max(e,r);return{duration:1/0,start:e,end:n}}return{duration:1/0}}let i=null==(e=this.overrides)?void 0:e.duration;if(i)return eo(i)?{duration:i}:null;let a=this.media.duration;return r>(eo(n.duration)?n.duration:0)&&r>a||!eo(a)?{duration:r}:null}updateMediaSource({duration:e,start:t,end:n}){let r=this.mediaSource;this.media&&r&&"open"===r.readyState&&(r.duration!==e&&(eo(e)&&this.log(`Updating MediaSource duration to ${e.toFixed(3)}`),r.duration=e),void 0!==t&&void 0!==n&&(this.log(`MediaSource duration is set to ${r.duration}. Setting seekable range to ${t}-${n}.`),r.setLiveSeekableRange(t,n)))}get tracksReady(){let e=this.pendingTrackCount;return e>0&&(e>=this.bufferCodecEventsTotal||this.isPending(this.tracks.audiovideo))}checkPendingTracks(){let{bufferCodecEventsTotal:e,pendingTrackCount:t,tracks:n}=this;if(this.log(`checkPendingTracks (pending: ${t} codec events expected: ${e}) ${tb(n)}`),this.tracksReady){var r;let e=null==(r=this.transferData)?void 0:r.tracks;e&&Object.keys(e).length?this.attachTransferred():this.createSourceBuffers()}}bufferCreated(){if(this.sourceBufferCount){let e={};this.sourceBuffers.forEach(([t,n])=>{if(t){let r=this.tracks[t];e[t]={buffer:n,container:r.container,codec:r.codec,supplemental:r.supplemental,levelCodec:r.levelCodec,id:r.id,metadata:r.metadata}}}),this.hls.trigger(ed.BUFFER_CREATED,{tracks:e}),this.log(`SourceBuffers created. Running queue: ${this.operationQueue}`),this.sourceBuffers.forEach(([e])=>{this.executeNext(e)})}else{let e=Error("could not create source buffer for media codec(s)");this.hls.trigger(ed.ERROR,{type:eu.MEDIA_ERROR,details:ec.BUFFER_INCOMPATIBLE_CODECS_ERROR,fatal:!0,error:e,reason:e.message})}}createSourceBuffers(){let{tracks:e,sourceBuffers:t,mediaSource:n}=this;if(!n)throw Error("createSourceBuffers called when mediaSource was null");for(let i in e){let a=e[i];if(this.isPending(a)){let e=this.getTrackCodec(a,i),o=`${a.container};codecs=${e}`;a.codec=e,this.log(`creating sourceBuffer(${o})${this.currentOp(i)?" Queued":""} ${tb(a)}`);try{let e=n.addSourceBuffer(o),r=ip(i),s=[i,e];t[r]=s,a.buffer=e}catch(e){var r;this.error(`error while trying to add sourceBuffer: ${e.message}`),this.shiftAndExecuteNext(i),null==(r=this.operationQueue)||r.removeBlockers(),delete this.tracks[i],this.hls.trigger(ed.ERROR,{type:eu.MEDIA_ERROR,details:ec.BUFFER_ADD_CODEC_ERROR,fatal:!1,error:e,sourceBufferName:i,mimeType:o,parent:a.id});return}this.trackSourceBuffer(i,a)}}this.bufferCreated()}getTrackCodec(e,t){let n=e.supplemental,r=e.codec;n&&("video"===t||"audiovideo"===t)&&e8(n,"video")&&(r=function(e,t){let n=[];if(e){let t=e.split(",");for(let e=0;e<t.length;e++)e5(t[e],"video")||n.push(t[e])}return t&&n.push(t),n.join(",")}(r,n));let i=ti(r,e.levelCodec);return i?"audio"===t.slice(0,5)?tr(i,this.appendSource):i:""}trackSourceBuffer(e,t){let n=t.buffer;if(!n)return;let r=this.getTrackCodec(t,e);this.tracks[e]={buffer:n,codec:r,container:t.container,levelCodec:t.levelCodec,supplemental:t.supplemental,metadata:t.metadata,id:t.id,listeners:[]},this.removeBufferListeners(e),this.addBufferListener(e,"updatestart",this.onSBUpdateStart),this.addBufferListener(e,"updateend",this.onSBUpdateEnd),this.addBufferListener(e,"error",this.onSBUpdateError),this.appendSource&&this.addBufferListener(e,"bufferedchange",(e,t)=>{let n=t.removedRanges;null!=n&&n.length&&this.hls.trigger(ed.BUFFER_FLUSHED,{type:e})})}get mediaSrc(){var e,t;let n=(null==(e=this.media)?void 0:null==(t=e.querySelector)?void 0:t.call(e,"source"))||this.media;return null==n?void 0:n.src}onSBUpdateStart(e){let t=this.currentOp(e);t&&t.onStart()}onSBUpdateEnd(e){var t;if((null==(t=this.mediaSource)?void 0:t.readyState)==="closed"){this.resetBuffer(e);return}let n=this.currentOp(e);n&&(n.onComplete(),this.shiftAndExecuteNext(e))}onSBUpdateError(e,t){var n;let r=Error(`${e} SourceBuffer error. MediaSource readyState: ${null==(n=this.mediaSource)?void 0:n.readyState}`);this.error(`${r}`,t),this.hls.trigger(ed.ERROR,{type:eu.MEDIA_ERROR,details:ec.BUFFER_APPENDING_ERROR,sourceBufferName:e,error:r,fatal:!1});let i=this.currentOp(e);i&&i.onError(r)}removeExecutor(e,t,n){let{media:r,mediaSource:i}=this,a=this.tracks[e],o=null==a?void 0:a.buffer;if(!r||!i||!o){this.warn(`Attempting to remove from the ${e} SourceBuffer, but it does not exist`),this.shiftAndExecuteNext(e);return}let s=eo(r.duration)?r.duration:1/0,l=eo(i.duration)?i.duration:1/0,u=Math.max(0,t),c=Math.min(n,s,l);c>u&&(!a.ending||a.ended)?(a.ended=!1,this.log(`Removing [${u},${c}] from the ${e} SourceBuffer`),o.remove(u,c)):this.shiftAndExecuteNext(e)}appendExecutor(e,t){let n=this.tracks[t],r=null==n?void 0:n.buffer;if(!r)throw new ic(`Attempting to append to the ${t} SourceBuffer, but it does not exist`);n.ending=!1,n.ended=!1,r.appendBuffer(e)}blockUntilOpen(e){if(this.isUpdating()||this.isQueued())this.blockBuffers(e).catch(e=>{this.warn(`SourceBuffer blocked callback ${e}
51`),this.stepOperationQueue(this.sourceBufferTypes)});else try{e()}catch(e){this.warn(`Callback run without blocking ${this.operationQueue} ${e}`)}}isUpdating(){return this.sourceBuffers.some(([e,t])=>e&&t.updating)}isQueued(){return this.sourceBuffers.some(([e])=>e&&!!this.currentOp(e))}isPending(e){return!!e&&!e.buffer}blockBuffers(e,t=this.sourceBufferTypes){if(!t.length)return this.log("Blocking operation requested, but no SourceBuffers exist"),Promise.resolve().then(e);let{operationQueue:n}=this,r=t.map(e=>this.appendBlocker(e));return t.length>1&&this.blockedAudioAppend&&this.unblockAudio(),Promise.all(r).then(t=>{n===this.operationQueue&&(e(),this.stepOperationQueue(this.sourceBufferTypes))})}stepOperationQueue(e){e.forEach(e=>{var t;let n=null==(t=this.tracks[e])?void 0:t.buffer;n&&!n.updating&&this.shiftAndExecuteNext(e)})}append(e,t,n){this.operationQueue&&this.operationQueue.append(e,t,n)}appendBlocker(e){if(this.operationQueue)return this.operationQueue.appendBlocker(e)}currentOp(e){return this.operationQueue?this.operationQueue.current(e):null}executeNext(e){e&&this.operationQueue&&this.operationQueue.executeNext(e)}shiftAndExecuteNext(e){this.operationQueue&&this.operationQueue.shiftAndExecuteNext(e)}get pendingTrackCount(){return Object.keys(this.tracks).reduce((e,t)=>e+(this.isPending(this.tracks[t])?1:0),0)}get sourceBufferCount(){return this.sourceBuffers.reduce((e,[t])=>e+(t?1:0),0)}get sourceBufferTypes(){return this.sourceBuffers.map(([e])=>e).filter(e=>!!e)}addBufferListener(e,t,n){let r=this.tracks[e];if(!r)return;let i=r.buffer;if(!i)return;let a=n.bind(this,e);r.listeners.push({event:t,listener:a}),i.addEventListener(t,a)}removeBufferListeners(e){let t=this.tracks[e];if(!t)return;let n=t.buffer;n&&(t.listeners.forEach(e=>{n.removeEventListener(e.event,e.listener)}),t.listeners.length=0)}}function ih(e){let t=e.querySelectorAll("source");[].slice.call(t).forEach(t=>{e.removeChild(t)})}function ip(e){return"audio"===e?1:0}class im{constructor(e){this.hls=void 0,this.autoLevelCapping=void 0,this.firstLevel=void 0,this.media=void 0,this.restrictedLevels=void 0,this.timer=void 0,this.clientRect=void 0,this.streamController=void 0,this.hls=e,this.autoLevelCapping=Number.POSITIVE_INFINITY,this.firstLevel=-1,this.media=null,this.restrictedLevels=[],this.timer=void 0,this.clientRect=null,this.registerListeners()}setStreamController(e){this.streamController=e}destroy(){this.hls&&this.unregisterListener(),this.timer&&this.stopCapping(),this.media=null,this.clientRect=null,this.hls=this.streamController=null}registerListeners(){let{hls:e}=this;e.on(ed.FPS_DROP_LEVEL_CAPPING,this.onFpsDropLevelCapping,this),e.on(ed.MEDIA_ATTACHING,this.onMediaAttaching,this),e.on(ed.MANIFEST_PARSED,this.onManifestParsed,this),e.on(ed.LEVELS_UPDATED,this.onLevelsUpdated,this),e.on(ed.BUFFER_CODECS,this.onBufferCodecs,this),e.on(ed.MEDIA_DETACHING,this.onMediaDetaching,this)}unregisterListener(){let{hls:e}=this;e.off(ed.FPS_DROP_LEVEL_CAPPING,this.onFpsDropLevelCapping,this),e.off(ed.MEDIA_ATTACHING,this.onMediaAttaching,this),e.off(ed.MANIFEST_PARSED,this.onManifestParsed,this),e.off(ed.LEVELS_UPDATED,this.onLevelsUpdated,this),e.off(ed.BUFFER_CODECS,this.onBufferCodecs,this),e.off(ed.MEDIA_DETACHING,this.onMediaDetaching,this)}onFpsDropLevelCapping(e,t){let n=this.hls.levels[t.droppedLevel];this.isLevelAllowed(n)&&this.restrictedLevels.push({bitrate:n.bitrate,height:n.height,width:n.width})}onMediaAttaching(e,t){this.media=t.media instanceof HTMLVideoElement?t.media:null,this.clientRect=null,this.timer&&this.hls.levels.length&&this.detectPlayerSize()}onManifestParsed(e,t){let n=this.hls;this.restrictedLevels=[],this.firstLevel=t.firstLevel,n.config.capLevelToPlayerSize&&t.video&&this.startCapping()}onLevelsUpdated(e,t){this.timer&&eo(this.autoLevelCapping)&&this.detectPlayerSize()}onBufferCodecs(e,t){this.hls.config.capLevelToPlayerSize&&t.video&&this.startCapping()}onMediaDetaching(){this.stopCapping(),this.media=null}detectPlayerSize(){if(this.media){if(this.mediaHeight<=0||this.mediaWidth<=0){this.clientRect=null;return}let e=this.hls.levels;if(e.length){let t=this.hls,n=this.getMaxLevel(e.length-1);n!==this.autoLevelCapping&&t.logger.log(`Setting autoLevelCapping to ${n}: ${e[n].height}p@${e[n].bitrate} for media ${this.mediaWidth}x${this.mediaHeight}`),t.autoLevelCapping=n,t.autoLevelEnabled&&t.autoLevelCapping>this.autoLevelCapping&&this.streamController&&this.streamController.nextLevelSwitch(),this.autoLevelCapping=t.autoLevelCapping}}}getMaxLevel(e){let t=this.hls.levels;if(!t.length)return -1;
51let n=t.filter((t,n)=>this.isLevelAllowed(t)&&n<=e);return this.clientRect=null,im.getMaxLevelByMediaSize(n,this.mediaWidth,this.mediaHeight)}startCapping(){this.timer||(this.autoLevelCapping=Number.POSITIVE_INFINITY,self.clearInterval(this.timer),this.timer=self.setInterval(this.detectPlayerSize.bind(this),1e3),this.detectPlayerSize())}stopCapping(){this.restrictedLevels=[],this.firstLevel=-1,this.autoLevelCapping=Number.POSITIVE_INFINITY,this.timer&&(self.clearInterval(this.timer),this.timer=void 0)}getDimensions(){if(this.clientRect)return this.clientRect;let e=this.media,t={width:0,height:0};if(e){let n=e.getBoundingClientRect();t.width=n.width,t.height=n.height,t.width||t.height||(t.width=n.right-n.left||e.width||0,t.height=n.bottom-n.top||e.height||0)}return this.clientRect=t,t}get mediaWidth(){return this.getDimensions().width*this.contentScaleFactor}get mediaHeight(){return this.getDimensions().height*this.contentScaleFactor}get contentScaleFactor(){let e=1;if(!this.hls.config.ignoreDevicePixelRatio)try{e=self.devicePixelRatio}catch(e){}return Math.min(e,this.hls.config.maxDevicePixelRatio)}isLevelAllowed(e){return!this.restrictedLevels.some(t=>e.bitrate===t.bitrate&&e.width===t.width&&e.height===t.height)}static getMaxLevelByMediaSize(e,t,n){if(!(null!=e&&e.length))return -1;let r=(e,t)=>!t||e.width!==t.width||e.height!==t.height,i=e.length-1,a=Math.max(t,n);for(let t=0;t<e.length;t+=1){let n=e[t];if((n.width>=a||n.height>=a)&&r(n,e[t+1])){i=t;break}}return i}}let ig={MANIFEST:"m",AUDIO:"a",VIDEO:"v",MUXED:"av",INIT:"i",TIMED_TEXT:"tt"},iv={OBJECT:"CMCD-Object",REQUEST:"CMCD-Request",SESSION:"CMCD-Session",STATUS:"CMCD-Status"},iy={[iv.OBJECT]:["br","d","ot","tb"],[iv.REQUEST]:["bl","dl","mtp","nor","nrr","su"],[iv.SESSION]:["cid","pr","sf","sid","st","v"],[iv.STATUS]:["bs","rtp"]};class ib{constructor(e,t){Array.isArray(e)&&(e=e.map(e=>e instanceof ib?e:new ib(e))),this.value=e,this.params=t}}function iA(e,t,n){return Error(`failed to serialize "${Array.isArray(e)?JSON.stringify(e):e instanceof Map?"Map{}":e instanceof Set?"Set{}":"object"==typeof e?JSON.stringify(e):String(e)}" as ${t}`,{cause:n})}class iE{constructor(e){this.description=e}}let iw="Bare Item";function ix(e){if(e<-999999999999999||999999999999999<e)throw iA(e,"Integer");return e.toString()}let iT=/[\x00-\x1f\x7f]+/;function iS(e){let t=e.description||e.toString().slice(7,-1);if(!1===/^([a-zA-Z*])([!#$%&'*+\-.^_`|~\w:/]*)$/.test(t))throw iA(t,"Token");return t}function i_(e){switch(typeof e){case"number":if(!eo(e))throw iA(e,iw);if(Number.isInteger(e))return ix(e);return function(e){let t=function e(t,n){if(t<0)return-e(-t,n);let r=Math.pow(10,n);if(!(Math.abs(t*r%1-.5)<Number.EPSILON))return Math.round(t*r)/r;{let e=Math.floor(t*r);return(e%2==0?e:e+1)/r}}(e,3);if(Math.floor(Math.abs(t)).toString().length>12)throw iA(e,"Decimal");let n=t.toString();return n.includes(".")?n:`${n}.0`}(e);case"string":return function(e){if(iT.test(e))throw iA(e,"String");return`"${e.replace(/\\/g,"\\\\").replace(/"/g,'\\"')}"`}(e);case"symbol":return iS(e);case"boolean":return function(e){if("boolean"!=typeof e)throw iA(e,"Boolean");return e?"?1":"?0"}(e);case"object":if(e instanceof Date)return`@${ix(e.getTime()/1e3)}`;if(e instanceof Uint8Array)return function(e){if(!1===ArrayBuffer.isView(e))throw iA(e,"Byte Sequence");return`:${btoa(String.fromCharCode(...e))}:`}(e);if(e instanceof iE)return iS(e);default:throw iA(e,iw)}}function iC(e){if(!1===/^[a-z*][a-z0-9\-_.*]*$/.test(e))throw iA(e,"Key");return e}function ik(e){return null==e?"":Object.entries(e).map(([e,t])=>!0===t?`;${iC(e)}`:`;${iC(e)}=${i_(t)}`).join("")}function iI(e){return e instanceof ib?`${i_(e.value)}${ik(e.params)}`:i_(e)}let iL=e=>Math.round(e),iP=e=>100*iL(e/100),iO={br:iL,d:iL,bl:iP,dl:iP,mtp:iP,nor:(e,t)=>((null==t?void 0:t.baseUrl)&&(e=function(e,t){let n=new URL(e),r=new URL(t);if(n.origin!==r.origin)return e;let i=n.pathname.split("/").slice(1),a=r.pathname.split("/").slice(1,-1);for(;i[0]===a[0];)i.shift(),a.shift();for(;a.length;)a.shift(),i.unshift("..");return i.join("/")}(e,t.baseUrl)),encodeURIComponent(e)),rtp:iP,tb:iL};function iR(e,t={}){return e?function(e,t={whitespace:!0}){if("object"!=typeof e)throw iA(e,"Dict");let n=e instanceof Map?e.entries():Object.entries(e),r=(null==t?void 0:t.whitespace)?" ":"";return Array.from(n).map(([e,t])=>{t instanceof ib==!1&&(t=new ib(t));let n=iC(e);if(!0===t.value)n+=ik(t.params);else if(n+="=",Array.isArray(t.value)){var r;n+=(r=t,`(${r.value.map(iI).join(" ")})${ik(r.params)}`)}else n+=iI(t);return n}).join(`,${r}`)}(function(e,t){let n={};if(null==e||"object"!=typeof e)return n;let r=Object.keys(e).sort(),i=eg({},iO,null==t?void 0:t.formatters),a=null==t?void 0:t.filter;return r.forEach(r=>{var o;if(null==a?void 0:a(r))return;let s=e[r],l=i[r];l&&(s=l(s,t)),("v"!==r||1!==s)&&("pr"!=r||1!==s)&&("number"==typeof(o=s)?eo(o):null!=o&&""!==o&&!1!==o)&&(("ot"===r||"sf"===r||"st"===r)&&"string"==typeof s&&(s=new iE(s)),n[r]=s)}),n}(e,t),eg({whitespace:!1},t)):""}let iD=/CMCD=[^&#]+/;class iN{constructor(e){this.hls=void 0,this.config=void 0,this.media=void 0,this.sid=void 0,this.cid=void 0,this.useHeaders=!1,this.includeKeys=void 0,this.initialized=!1,this.starved=!1,this.buffering=!0,this.audioBuffer=void 0,this.videoBuffer=void 0,this.onWaiting=()=>{this.initialized&&(this.starved=!0),this.buffering=!0},this.onPlaying=()=>{this.initialized||(this.initialized=!0),this.buffering=!1},this.applyPlaylistData=e=>{try{this.apply(e,{ot:ig.MANIFEST,su:!this.initialized})}catch(e){this.hls.logger.warn("Could not generate manifest CMCD data.",e)}},this.applyFragmentData=e=>{try{let{frag:t,part:n}=e,r=this.hls.levels[t.level],i=this.getObjectType(t),a={d:1e3*(n||t).duration,ot:i};(i===ig.VIDEO||i===ig.AUDIO||i==ig.MUXED)&&(a.br=r.bitrate/1e3,a.tb=this.getTopBandwidth(i)/1e3,a.bl=this.getBufferLength(i));let o=n?this.getNextPart(n):this.getNextFrag(t);null!=o&&o.url&&o.url!==t.url&&(a.nor=o.url),this.apply(e,a)}catch(e){this.hls.logger.warn("Could not generate segment CMCD data.",e)}},this.hls=e;let t=this.config=e.config,{cmcd:n}=t;null!=n&&(t.pLoader=this.createPlaylistLoader(),t.fLoader=this.createFragmentLoader(),this.sid=n.sessionId||e.sessionId,this.cid=n.contentId,this.useHeaders=!0===n.useHeaders,this.includeKeys=n.includeKeys,this.registerListeners())}registerListeners(){let e=this.hls;
51e.on(ed.MEDIA_ATTACHED,this.onMediaAttached,this),e.on(ed.MEDIA_DETACHED,this.onMediaDetached,this),e.on(ed.BUFFER_CREATED,this.onBufferCreated,this)}unregisterListeners(){let e=this.hls;e.off(ed.MEDIA_ATTACHED,this.onMediaAttached,this),e.off(ed.MEDIA_DETACHED,this.onMediaDetached,this),e.off(ed.BUFFER_CREATED,this.onBufferCreated,this)}destroy(){this.unregisterListeners(),this.onMediaDetached(),this.hls=this.config=this.audioBuffer=this.videoBuffer=null,this.onWaiting=this.onPlaying=this.media=null}onMediaAttached(e,t){this.media=t.media,this.media.addEventListener("waiting",this.onWaiting),this.media.addEventListener("playing",this.onPlaying)}onMediaDetached(){this.media&&(this.media.removeEventListener("waiting",this.onWaiting),this.media.removeEventListener("playing",this.onPlaying),this.media=null)}onBufferCreated(e,t){var n,r;this.audioBuffer=null==(n=t.tracks.audio)?void 0:n.buffer,this.videoBuffer=null==(r=t.tracks.video)?void 0:r.buffer}createData(){var e;return{v:1,sf:"h",sid:this.sid,cid:this.cid,pr:null==(e=this.media)?void 0:e.playbackRate,mtp:this.hls.bandwidthEstimate/1e3}}apply(e,t={}){eg(t,this.createData());let n=t.ot===ig.INIT||t.ot===ig.VIDEO||t.ot===ig.MUXED;this.starved&&n&&(t.bs=!0,t.su=!0,this.starved=!1),null==t.su&&(t.su=this.buffering);let{includeKeys:r}=this;r&&(t=Object.keys(t).reduce((e,n)=>(r.includes(n)&&(e[n]=t[n]),e),{}));let i={baseUrl:e.url};if(this.useHeaders){var a;e.headers||(e.headers={}),a=e.headers,eg(a,function(e,t={}){let n={};if(!e)return n;let r=Object.entries(e),i=Object.entries(iy).concat(Object.entries((null==t?void 0:t.customHeaderMap)||{}));return Object.entries(r.reduce((e,t)=>{var n,r;let[a,o]=t,s=(null===(n=i.find(e=>e[1].includes(a)))||void 0===n?void 0:n[0])||iv.REQUEST;return null!==(r=e[s])&&void 0!==r||(e[s]={}),e[s][a]=o,e},{})).reduce((e,[n,r])=>(e[n]=iR(r,t),e),n)}(t,i))}else e.url=function(e,t,n){let r=function(e,t={}){if(!e)return"";let n=iR(e,t);return`CMCD=${encodeURIComponent(n)}`}(t,n);if(!r)return e;if(iD.test(e))return e.replace(iD,r);let i=e.includes("?")?"&":"?";return`${e}${i}${r}`}(e.url,t,i)}getNextFrag(e){var t;let n=null==(t=this.hls.levels[e.level])?void 0:t.details;if(n){let t=e.sn-n.startSN;return n.fragments[t+1]}}getNextPart(e){var t,n;let{index:r,fragment:i}=e,a=null==(t=this.hls.levels[i.level])?void 0:null==(n=t.details)?void 0:n.partList;if(a){let{sn:e}=i;for(let t=a.length-1;t>=0;t--){let n=a[t];if(n.index===r&&n.fragment.sn===e)return a[t+1]}}}getObjectType(e){let{type:t}=e;return"subtitle"===t?ig.TIMED_TEXT:"initSegment"===e.sn?ig.INIT:"audio"===t?ig.AUDIO:"main"===t?this.hls.audioTracks.length?ig.VIDEO:ig.MUXED:void 0}getTopBandwidth(e){let t,n=0,r=this.hls;if(e===ig.AUDIO)t=r.audioTracks;else{let e=r.maxAutoLevel,n=e>-1?e+1:r.levels.length;t=r.levels.slice(0,n)}for(let e of t)e.bitrate>n&&(n=e.bitrate);return n>0?n:NaN}getBufferLength(e){let t=this.media,n=e===ig.AUDIO?this.audioBuffer:this.videoBuffer;return n&&t?1e3*t8.bufferInfo(n,t.currentTime,this.config.maxBufferHole).len:NaN}createPlaylistLoader(){let{pLoader:e}=this.config,t=this.applyPlaylistData,n=e||this.config.loader;return class{constructor(e){this.loader=void 0,this.loader=new n(e)}get stats(){return this.loader.stats}get context(){return this.loader.context}destroy(){this.loader.destroy()}abort(){this.loader.abort()}load(e,n,r){t(e),this.loader.load(e,n,r)}}}createFragmentLoader(){let{fLoader:e}=this.config,t=this.applyFragmentData,n=e||this.config.loader;return class{constructor(e){this.loader=void 0,this.loader=new n(e)}get stats(){return this.loader.stats}get context(){return this.loader.context}destroy(){this.loader.destroy()}abort(){this.loader.abort()}load(e,n,r){t(e),this.loader.load(e,n,r)}}}}class iM extends eb{constructor(e){super("content-steering",e.logger),this.hls=void 0,this.loader=null,this.uri=null,this.pathwayId=".",this._pathwayPriority=null,this.timeToLoad=300,this.reloadTimer=-1,this.updated=0,this.started=!1,this.enabled=!0,this.levels=null,this.audioTracks=null,this.subtitleTracks=null,this.penalizedPathways={},this.hls=e,this.registerListeners()}registerListeners(){let e=this.hls;e.on(ed.MANIFEST_LOADING,this.onManifestLoading,this),e.on(ed.MANIFEST_LOADED,this.onManifestLoaded,this),e.on(ed.MANIFEST_PARSED,this.onManifestParsed,this),e.on(ed.ERROR,this.onError,this)}unregisterListeners(){let e=this.hls;e&&(e.off(ed.MANIFEST_LOADING,this.onManifestLoading,this),e.off(ed.MANIFEST_LOADED,this.onManifestLoaded,this),e.off(ed.MANIFEST_PARSED,this.onManifestParsed,this),e.off(ed.ERROR,this.onError,this))}pathways(){return(this.levels||[]).reduce((e,t)=>
51(-1===e.indexOf(t.pathwayId)&&e.push(t.pathwayId),e),[])}get pathwayPriority(){return this._pathwayPriority}set pathwayPriority(e){this.updatePathwayPriority(e)}startLoad(){if(this.started=!0,this.clearTimeout(),this.enabled&&this.uri){if(this.updated){let e=1e3*this.timeToLoad-(performance.now()-this.updated);if(e>0){this.scheduleRefresh(this.uri,e);return}}this.loadSteeringManifest(this.uri)}}stopLoad(){this.started=!1,this.loader&&(this.loader.destroy(),this.loader=null),this.clearTimeout()}clearTimeout(){-1!==this.reloadTimer&&(self.clearTimeout(this.reloadTimer),this.reloadTimer=-1)}destroy(){this.unregisterListeners(),this.stopLoad(),this.hls=null,this.levels=this.audioTracks=this.subtitleTracks=null}removeLevel(e){let t=this.levels;t&&(this.levels=t.filter(t=>t!==e))}onManifestLoading(){this.stopLoad(),this.enabled=!0,this.timeToLoad=300,this.updated=0,this.uri=null,this.pathwayId=".",this.levels=this.audioTracks=this.subtitleTracks=null}onManifestLoaded(e,t){let{contentSteering:n}=t;null!==n&&(this.pathwayId=n.pathwayId,this.uri=n.uri,this.started&&this.startLoad())}onManifestParsed(e,t){this.audioTracks=t.audioTracks,this.subtitleTracks=t.subtitleTracks}onError(e,t){let{errorAction:n}=t;if((null==n?void 0:n.action)===tF.SendAlternateToPenaltyBox&&n.flags===tB.MoveAllAlternatesMatchingHost){let e=this.levels,r=this._pathwayPriority,i=this.pathwayId;if(t.context){let{groupId:n,pathwayId:r,type:a}=t.context;n&&e?i=this.getPathwayForGroupId(n,a,i):r&&(i=r)}i in this.penalizedPathways||(this.penalizedPathways[i]=performance.now()),!r&&e&&(r=this.pathways()),r&&r.length>1&&(this.updatePathwayPriority(r),n.resolved=this.pathwayId!==i),n.resolved||this.warn(`Could not resolve ${t.details} ("${t.error.message}") with content-steering for Pathway: ${i} levels: ${e?e.length:e} priorities: ${tb(r)} penalized: ${tb(this.penalizedPathways)}`)}}filterParsedLevels(e){this.levels=e;let t=this.getLevelsForPathway(this.pathwayId);if(0===t.length){let n=e[0].pathwayId;this.log(`No levels found in Pathway ${this.pathwayId}. Setting initial Pathway to "${n}"`),t=this.getLevelsForPathway(n),this.pathwayId=n}return t.length!==e.length&&this.log(`Found ${t.length}/${e.length} levels in Pathway "${this.pathwayId}"`),t}getLevelsForPathway(e){return null===this.levels?[]:this.levels.filter(t=>e===t.pathwayId)}updatePathwayPriority(e){let t;this._pathwayPriority=e;let n=this.penalizedPathways,r=performance.now();Object.keys(n).forEach(e=>{r-n[e]>3e5&&delete n[e]});for(let r=0;r<e.length;r++){let i=e[r];if(i in n)continue;if(i===this.pathwayId)return;let a=this.hls.nextLoadLevel,o=this.hls.levels[a];if((t=this.getLevelsForPathway(i)).length>0){this.log(`Setting Pathway to "${i}"`),this.pathwayId=i,nG(t),this.hls.trigger(ed.LEVELS_UPDATED,{levels:t});let e=this.hls.levels[a];o&&e&&this.levels&&(e.attrs["STABLE-VARIANT-ID"]!==o.attrs["STABLE-VARIANT-ID"]&&e.bitrate!==o.bitrate&&this.log(`Unstable Pathways change from bitrate ${o.bitrate} to ${e.bitrate}`),this.hls.nextLoadLevel=a);break}}}getPathwayForGroupId(e,t,n){let r=this.getLevelsForPathway(n).concat(this.levels||[]);for(let n=0;n<r.length;n++)if(t===eh.AUDIO_TRACK&&r[n].hasAudioGroup(e)||t===eh.SUBTITLE_TRACK&&r[n].hasSubtitleGroup(e))return r[n].pathwayId;return n}clonePathways(e){let t=this.levels;if(!t)return;let n={},r={};e.forEach(e=>{let{ID:i,"BASE-ID":a,"URI-REPLACEMENT":o}=e;if(t.some(e=>e.pathwayId===i))return;let s=this.getLevelsForPathway(a).map(e=>{let t=new nn(e.attrs);t["PATHWAY-ID"]=i;let a=t.AUDIO&&`${t.AUDIO}_clone_${i}`,s=t.SUBTITLES&&`${t.SUBTITLES}_clone_${i}`;a&&(n[t.AUDIO]=a,t.AUDIO=a),s&&(r[t.SUBTITLES]=s,t.SUBTITLES=s);let l=iF(e.uri,t["STABLE-VARIANT-ID"],"PER-VARIANT-URIS",o),u=new tg({attrs:t,audioCodec:e.audioCodec,bitrate:e.bitrate,height:e.height,name:e.name,url:l,videoCodec:e.videoCodec,width:e.width});if(e.audioGroups)for(let t=1;t<e.audioGroups.length;t++)u.addGroupId("audio",`${e.audioGroups[t]}_clone_${i}`);if(e.subtitleGroups)for(let t=1;t<e.subtitleGroups.length;t++)u.addGroupId("text",`${e.subtitleGroups[t]}_clone_${i}`);return u});t.push(...s),ij(this.audioTracks,n,o,i),ij(this.subtitleTracks,r,o,i)})}loadSteeringManifest(e){let t;let n=this.hls.config,r=n.loader;this.loader&&this.loader.destroy(),this.loader=new r(n);try{t=new self.URL(e)}catch(t){this.enabled=!1,this.log(`Failed to parse Steering Manifest URI: ${e}`);return}if("data:"!==t.protocol){let e=0|(this.hls.bandwidthEstimate||n.abrEwmaDefaultEstimate);t.searchParams.set("_HLS_pathway",this.pathwayId),t.searchParams.set("_HLS_throughput",""+e)}let i={responseType:"json",url:t.href},a=n.steeringManifestLoadPolicy.default,o=a.errorRetry||a.timeoutRetry||{},s={loadPolicy:a,timeout:a.maxLoadTimeMs,maxRetry:o.maxNumRetry||0,retryDelay:o.retryDelayMs||0,maxRetryDelay:o.maxRetryDelayMs||0};this.log(`Requesting steering manifest: ${t}`),this.loader.load(i,s,{onSuccess:(e,n,r,i)=>{this.log(`Loaded steering manifest: "${t}"`);let a=e.data;if((null==a?void 0:a.VERSION)!==1){this.log(`Steering VERSION ${a.VERSION} not supported!`);return}this.updated=performance.now(),this.timeToLoad=a.TTL;let{"RELOAD-URI":o,"PATHWAY-CLONES":s,"PATHWAY-PRIORITY":l}=a;if(o)try{this.uri=new self.URL(o,t).href}catch(e){this.enabled=!1,this.log(`Failed to parse Steering Manifest RELOAD-URI: ${o}`);return}this.scheduleRefresh(this.uri||r.url),s&&this.clonePathways(s);let u={steeringManifest:a,url:t.toString()};this.hls.trigger(ed.STEERING_MANIFEST_LOADED,u),l&&this.updatePathwayPriority(l)},onError:(e,t,n,r)=>{if(this.log(`Error loading steering manifest: ${e.code} ${e.text} (${t.url})`),this.stopLoad(),410===e.code){this.enabled=!1,this.log(`Steering manifest ${t.url} no longer available`);return}let i=1e3*this.timeToLoad;if(429===e.code){let e=this.loader;if("function"==typeof(null==e?void 0:e.getResponseHeader)){let t=e.getResponseHeader("Retry-After");t&&(i=1e3*parseFloat(t))}this.log(`Steering manifest ${t.url} rate limited`);return}this.scheduleRefresh(this.uri||t.url,i)},onTimeout:(e,t,n)=>{this.log(`Timeout loading steering manifest (${t.url})`),this.scheduleRefresh(this.uri||t.url)}})}scheduleRefresh(e,t=1e3*this.timeToLoad){this.clearTimeout(),this.reloadTimer=self.setTimeout(()=>{var t;let n=null==(t=this.hls)?void 0:t.media;if(n&&!n.ended){this.loadSteeringManifest(e);return}this.scheduleRefresh(e,1e3*this.timeToLoad)},t)}}function ij(e,t,n,r){e&&Object.keys(t).forEach(i=>
51{let a=e.filter(e=>e.groupId===i).map(e=>{let a=eg({},e);return a.details=void 0,a.attrs=new nn(a.attrs),a.url=a.attrs.URI=iF(e.url,e.attrs["STABLE-RENDITION-ID"],"PER-RENDITION-URIS",n),a.groupId=a.attrs["GROUP-ID"]=t[i],a.attrs["PATHWAY-ID"]=r,a});e.push(...a)})}function iF(e,t,n,r){let i;let{HOST:a,PARAMS:o,[n]:s}=r;t&&(i=null==s?void 0:s[t])&&(e=i);let l=new self.URL(e);return a&&!i&&(l.host=a),o&&Object.keys(o).sort().forEach(e=>{e&&l.searchParams.set(e,o[e])}),l.href}class iB extends eb{constructor(e){super("eme",e.logger),this.hls=void 0,this.config=void 0,this.media=null,this.keyFormatPromise=null,this.keySystemAccessPromises={},this._requestLicenseFailureCount=0,this.mediaKeySessions=[],this.keyIdToKeySessionPromise={},this.setMediaKeysQueue=iB.CDMCleanupPromise?[iB.CDMCleanupPromise]:[],this.onMediaEncrypted=e=>{let{initDataType:t,initData:n}=e,r=`"${e.type}" event: init data type: "${t}"`;if(this.debug(r),null!==n){if(!this.keyFormatPromise){let e=Object.keys(this.keySystemAccessPromises);e.length||(e=ng(this.config));let t=e.map(nm).filter(e=>!!e);this.keyFormatPromise=this.getKeyFormatPromise(t)}this.keyFormatPromise.then(i=>{let a,o;let s=nh(i);if("sinf"===t){if(s!==nc.FAIRPLAY){this.warn(`Ignoring unexpected "${e.type}" event with init data type: "${t}" for selected key-system ${s}`);return}let i=eB(new Uint8Array(n));try{let e=ns(JSON.parse(i).sinf),t=eY(e);if(!t)throw Error("'schm' box missing or not cbcs/cenc with schi > tenc");a=new Uint8Array(t.subarray(8,24)),o=nc.FAIRPLAY}catch(e){this.warn(`${r} Failed to parse sinf: ${e}`);return}}else{if(s!==nc.WIDEVINE&&s!==nc.PLAYREADY){this.warn(`Ignoring unexpected "${e.type}" event with init data type: "${t}" for selected key-system ${s}`);return}let i=function(e){let t=[];if(e instanceof ArrayBuffer){let n=e.byteLength,r=0;for(;r+32<n;){let n=function(e){let t=e.getUint32(0),n=e.byteOffset,r=e.byteLength;if(r<t)return{offset:n,size:r};if(1886614376!==e.getUint32(4))return{offset:n,size:t};let i=e.getUint32(8)>>>24;if(0!==i&&1!==i)return{offset:n,size:t};let a=e.buffer,o=ek.hexDump(new Uint8Array(a,n+12,16)),s=e.getUint32(28),l=null,u=null;if(0===i){if(t-32<s||s<22)return{offset:n,size:t};u=new Uint8Array(a,n+32,s)}else if(1===i){if(!s||r<n+32+16*s+16)return{offset:n,size:t};l=[];for(let e=0;e<s;e++)l.push(new Uint8Array(a,n+32+16*e,16))}return{version:i,systemId:o,kids:l,data:u,offset:n,size:t}}(new DataView(e,r));t.push(n),r+=n.size}}return t}(n),l=i.filter(e=>!!e.systemId&&np(e.systemId)===s);l.length>1&&this.warn(`${r} Using first of ${l.length} pssh found for selected key-system ${s}`);let u=l[0];if(!u){0===i.length||i.some(e=>!e.systemId)?this.warn(`${r} contains incomplete or invalid pssh data`):this.log(`ignoring ${r} for ${i.map(e=>np(e.systemId)).join(",")} pssh data in favor of playlist keys`);return}if(o=np(u.systemId),0===u.version&&u.data){if(o===nc.WIDEVINE){let e=u.data.length-22;a=new Uint8Array(u.data.subarray(e,e+16))}else o===nc.PLAYREADY&&(a=ny(u.data))}}if(!o||!a)return;let l=ek.hexDump(a),{keyIdToKeySessionPromise:u,mediaKeySessions:c}=this,d=u[l];for(let e=0;e<c.length;e++){let r=c[e],i=r.decryptdata;if(!i.keyId)continue;let o=ek.hexDump(i.keyId);if(l===o||-1!==i.uri.replace(/-/g,"").indexOf(l)){if(d=u[o],i.pssh)break;delete u[o],i.pssh=new Uint8Array(n),i.keyId=a,(d=u[l]=d.then(()=>this.generateRequestWithPreferredKeySession(r,t,n,"encrypted-event-key-match"))).catch(e=>this.handleError(e));break}}if(!d){if(o!==s){this.log(`Ignoring "${e.type}" event with ${o} init data for selected key-system ${s}`);return}(d=u[l]=this.getKeySystemSelectionPromise([o]).then(({keySystem:e,mediaKeys:r})=>{var i;this.throwIfDestroyed();let o=new nA("ISO-23001-7",l,null!=(i=nm(e))?i:"");return o.pssh=new Uint8Array(n),o.keyId=a,this.attemptSetMediaKeys(e,r).then(()=>{this.throwIfDestroyed();let i=this.createMediaKeySessionContext({decryptdata:o,keySystem:e,mediaKeys:r});return this.generateRequestWithPreferredKeySession(i,t,n,"encrypted-event-no-match")})})).catch(e=>this.handleError(e))}})}},this.onWaitingForKey=e=>{this.log(`"${e.type}" event`)},this.hls=e,this.config=e.config,this.registerListeners()}destroy(){let e=this.media;this.unregisterListeners(),this.onMediaDetached(),this._clear(e);let t=this.config;t.requestMediaKeySystemAccessFunc=null,t.licenseXhrSetup=t.licenseResponseCallback=void 0,t.drmSystems=t.drmSystemOptions={},this.hls=this.config=this.keyIdToKeySessionPromise=null,this.onMediaEncrypted=this.onWaitingForKey=null}
51registerListeners(){this.hls.on(ed.MEDIA_ATTACHED,this.onMediaAttached,this),this.hls.on(ed.MEDIA_DETACHED,this.onMediaDetached,this),this.hls.on(ed.MANIFEST_LOADING,this.onManifestLoading,this),this.hls.on(ed.MANIFEST_LOADED,this.onManifestLoaded,this)}unregisterListeners(){this.hls.off(ed.MEDIA_ATTACHED,this.onMediaAttached,this),this.hls.off(ed.MEDIA_DETACHED,this.onMediaDetached,this),this.hls.off(ed.MANIFEST_LOADING,this.onManifestLoading,this),this.hls.off(ed.MANIFEST_LOADED,this.onManifestLoaded,this)}getLicenseServerUrl(e){let{drmSystems:t,widevineLicenseUrl:n}=this.config,r=t[e];return r?r.licenseUrl:e===nc.WIDEVINE&&n?n:void 0}getLicenseServerUrlOrThrow(e){let t=this.getLicenseServerUrl(e);if(void 0===t)throw Error(`no license server URL configured for key-system "${e}"`);return t}getServerCertificateUrl(e){let{drmSystems:t}=this.config,n=t[e];if(n)return n.serverCertificateUrl;this.log(`No Server Certificate in config.drmSystems["${e}"]`)}attemptKeySystemAccess(e){let t=this.hls.levels,n=(e,t,n)=>!!e&&n.indexOf(e)===t,r=t.map(e=>e.audioCodec).filter(n),i=t.map(e=>e.videoCodec).filter(n);return r.length+i.length===0&&i.push("avc1.42e01e"),new Promise((t,n)=>{let a=e=>{let o=e.shift();this.getMediaKeysPromise(o,r,i).then(e=>t({keySystem:o,mediaKeys:e})).catch(t=>{e.length?a(e):t instanceof iU?n(t):n(new iU({type:eu.KEY_SYSTEM_ERROR,details:ec.KEY_SYSTEM_NO_ACCESS,error:t,fatal:!0},t.message))})};a(e)})}requestMediaKeySystemAccess(e,t){let{requestMediaKeySystemAccessFunc:n}=this.config;if("function"!=typeof n){let e=`Configured requestMediaKeySystemAccess is not a function ${n}`;return null===nv&&"http:"===self.location.protocol&&(e=`navigator.requestMediaKeySystemAccess is not available over insecure protocol ${location.protocol}`),Promise.reject(Error(e))}return n(e,t)}getMediaKeysPromise(e,t,n){let r=function(e,t,n,r){let i;switch(e){case nc.FAIRPLAY:i=["cenc","sinf"];break;case nc.WIDEVINE:case nc.PLAYREADY:i=["cenc"];break;case nc.CLEARKEY:i=["cenc","keyids"];break;default:throw Error(`Unknown key-system: ${e}`)}return[{initDataTypes:i,persistentState:r.persistentState||"optional",distinctiveIdentifier:r.distinctiveIdentifier||"optional",sessionTypes:r.sessionTypes||[r.sessionType||"temporary"],audioCapabilities:t.map(e=>({contentType:`audio/mp4; codecs=${e}`,robustness:r.audioRobustness||"",encryptionScheme:r.audioEncryptionScheme||null})),videoCapabilities:n.map(e=>({contentType:`video/mp4; codecs=${e}`,robustness:r.videoRobustness||"",encryptionScheme:r.videoEncryptionScheme||null}))}]}(e,t,n,this.config.drmSystemOptions),i=this.keySystemAccessPromises[e],a=null==i?void 0:i.keySystemAccess;if(!a){this.log(`Requesting encrypted media "${e}" key-system access with config: ${tb(r)}`),a=this.requestMediaKeySystemAccess(e,r);let t=this.keySystemAccessPromises[e]={keySystemAccess:a};return a.catch(t=>{this.log(`Failed to obtain access to key-system "${e}": ${t}`)}),a.then(n=>{this.log(`Access for key-system "${n.keySystem}" obtained`);let r=this.fetchServerCertificate(e);return this.log(`Create media-keys for "${e}"`),t.mediaKeys=n.createMediaKeys().then(t=>(this.log(`Media-keys created for "${e}"`),r.then(n=>n?this.setMediaKeysServerCertificate(t,e,n):t))),t.mediaKeys.catch(t=>{this.error(`Failed to create media-keys for "${e}"}: ${t}`)}),t.mediaKeys})}return a.then(()=>i.mediaKeys)}createMediaKeySessionContext({decryptdata:e,keySystem:t,mediaKeys:n}){this.log(`Creating key-system session "${t}" keyId: ${ek.hexDump(e.keyId||[])}`);let r=n.createSession(),i={decryptdata:e,keySystem:t,mediaKeys:n,mediaKeysSession:r,keyStatus:"status-pending"};return this.mediaKeySessions.push(i),i}renewKeySession(e){let t=e.decryptdata;if(t.pssh){let n=this.createMediaKeySessionContext(e),r=this.getKeyIdString(t);this.keyIdToKeySessionPromise[r]=this.generateRequestWithPreferredKeySession(n,"cenc",t.pssh.buffer,"expired")}else this.warn("Could not renew expired session. Missing pssh initData.");this.removeSession(e)}getKeyIdString(e){if(!e)throw Error("Could not read keyId of undefined decryptdata");if(null===e.keyId)throw Error("keyId is null");return ek.hexDump(e.keyId)}updateKeySession(e,t){var n;let r=e.mediaKeysSession;return this.log(`Updating key-session "${r.sessionId}" for keyID ${ek.hexDump((null==(n=e.decryptdata)?void 0:n.keyId)||[])}
52      } (data length: ${t?t.byteLength:t})`),r.update(t)}selectKeySystemFormat(e){let t=Object.keys(e.levelkeys||{});return this.keyFormatPromise||(this.log(`Selecting key-system from fragment (sn: ${e.sn} ${e.type}: ${e.level}) key formats ${t.join(", ")}`),this.keyFormatPromise=this.getKeyFormatPromise(t)),this.keyFormatPromise}getKeyFormatPromise(e){return new Promise((t,n)=>
52{let r=ng(this.config),i=e.map(nh).filter(e=>!!e&&-1!==r.indexOf(e));return this.getKeySystemSelectionPromise(i).then(({keySystem:e})=>{let r=nm(e);r?t(r):n(Error(`Unable to find format for key-system "${e}"`))}).catch(n)})}loadKey(e){let t=e.keyInfo.decryptdata,n=this.getKeyIdString(t),r=`(keyId: ${n} format: "${t.keyFormat}" method: ${t.method} uri: ${t.uri})`;this.log(`Starting session for key ${r}`);let i=this.keyIdToKeySessionPromise[n];return i||(i=this.getKeySystemForKeyPromise(t).then(({keySystem:n,mediaKeys:i})=>(this.throwIfDestroyed(),this.log(`Handle encrypted media sn: ${e.frag.sn} ${e.frag.type}: ${e.frag.level} using key ${r}`),this.attemptSetMediaKeys(n,i).then(()=>(this.throwIfDestroyed(),this.createMediaKeySessionContext({keySystem:n,mediaKeys:i,decryptdata:t}))))),(this.keyIdToKeySessionPromise[n]=i.then(e=>{let n=t.pssh?t.pssh.buffer:null;return this.generateRequestWithPreferredKeySession(e,"cenc",n,"playlist-key")})).catch(e=>this.handleError(e))),i}throwIfDestroyed(e="Invalid state"){if(!this.hls)throw Error("invalid state")}handleError(e){this.hls&&(this.error(e.message),e instanceof iU?this.hls.trigger(ed.ERROR,e.data):this.hls.trigger(ed.ERROR,{type:eu.KEY_SYSTEM_ERROR,details:ec.KEY_SYSTEM_NO_KEYS,error:e,fatal:!0}))}getKeySystemForKeyPromise(e){let t=this.getKeyIdString(e),n=this.keyIdToKeySessionPromise[t];if(!n){let t=nh(e.keyFormat),n=t?[t]:ng(this.config);return this.attemptKeySystemAccess(n)}return n}getKeySystemSelectionPromise(e){if(e.length||(e=ng(this.config)),0===e.length)throw new iU({type:eu.KEY_SYSTEM_ERROR,details:ec.KEY_SYSTEM_NO_CONFIGURED_LICENSE,fatal:!0},`Missing key-system license configuration options ${tb({drmSystems:this.config.drmSystems})}`);return this.attemptKeySystemAccess(e)}attemptSetMediaKeys(e,t){let n=this.setMediaKeysQueue.slice();this.log(`Setting media-keys for "${e}"`);let r=Promise.all(n).then(()=>{if(!this.media)throw Error("Attempted to set mediaKeys without media element attached");return this.media.setMediaKeys(t)});return this.setMediaKeysQueue.push(r),r.then(()=>{this.log(`Media-keys set for "${e}"`),n.push(r),this.setMediaKeysQueue=this.setMediaKeysQueue.filter(e=>-1===n.indexOf(e))})}generateRequestWithPreferredKeySession(e,t,n,r){var i,a,o;let s=null==(i=this.config.drmSystems)?void 0:null==(a=i[e.keySystem])?void 0:a.generateRequest;if(s)try{let r=s.call(this.hls,t,n,e);if(!r)throw Error("Invalid response from configured generateRequest filter");t=r.initDataType,n=r.initData?r.initData:null,e.decryptdata.pssh=n?new Uint8Array(n):null}catch(e){if(this.warn(e.message),null!=(o=this.hls)&&o.config.debug)throw e}if(null===n)return this.log(`Skipping key-session request for "${r}" (no initData)`),Promise.resolve(e);let l=this.getKeyIdString(e.decryptdata);this.log(`Generating key-session request for "${r}": ${l} (init data type: ${t} length: ${n?n.byteLength:null})`);let u=new n4,c=e._onmessage=t=>{let n=e.mediaKeysSession;if(!n){u.emit("error",Error("invalid state"));return}let{messageType:r,message:i}=t;this.log(`"${r}" message event for session "${n.sessionId}" message size: ${i.byteLength}`),"license-request"===r||"license-renewal"===r?this.renewLicense(e,i).catch(e=>{u.eventNames().length?u.emit("error",e):this.handleError(e)}):"license-release"===r?e.keySystem===nc.FAIRPLAY&&(this.updateKeySession(e,nl("acknowledged")),this.removeSession(e)):this.warn(`unhandled media key message type "${r}"`)},d=e._onkeystatuseschange=t=>{if(!e.mediaKeysSession){u.emit("error",Error("invalid state"));return}this.onKeyStatusChange(e);let n=e.keyStatus;u.emit("keyStatus",n),"expired"===n&&(this.warn(`${e.keySystem} expired for key ${l}`),this.renewKeySession(e))};e.mediaKeysSession.addEventListener("message",c),e.mediaKeysSession.addEventListener("keystatuseschange",d);let h=new Promise((e,t)=>{u.on("error",t),u.on("keyStatus",n=>{n.startsWith("usable")?e():"output-restricted"===n?t(new iU({type:eu.KEY_SYSTEM_ERROR,details:ec.KEY_SYSTEM_STATUS_OUTPUT_RESTRICTED,fatal:!1},"HDCP level output restricted")):"internal-error"===n?t(new iU({type:eu.KEY_SYSTEM_ERROR,details:ec.KEY_SYSTEM_STATUS_INTERNAL_ERROR,fatal:!0},`key status changed to "${n}"`)):"expired"===n?t(Error("key expired while generating request")):this.warn(`unhandled key status change "${n}"`)})});return e.mediaKeysSession.generateRequest(t,n).then(()=>{var t;this.log(`Request generated for key-session "${null==(t=e.mediaKeysSession)?void 0:t.sessionId}" keyId: ${l}`)}).catch(e=>{throw new iU({type:eu.KEY_SYSTEM_ERROR,details:ec.KEY_SYSTEM_NO_SESSION,error:e,fatal:!1},`Error generating key-session request: ${e}`)}).then(()=>h).catch(t=>{throw u.removeAllListeners(),this.removeSession(e),t}).then(()=>(u.removeAllListeners(),e))}
52onKeyStatusChange(e){e.mediaKeysSession.keyStatuses.forEach((t,n)=>{if("string"==typeof n&&"object"==typeof t){let e=n;n=t,t=e}this.log(`key status change "${t}" for keyStatuses keyId: ${ek.hexDump("buffer"in n?new Uint8Array(n.buffer,n.byteOffset,n.byteLength):new Uint8Array(n))} session keyId: ${ek.hexDump(new Uint8Array(e.decryptdata.keyId||[]))} uri: ${e.decryptdata.uri}`),e.keyStatus=t})}fetchServerCertificate(e){let t=this.config,n=new t.loader(t),r=this.getServerCertificateUrl(e);return r?(this.log(`Fetching server certificate for "${e}"`),new Promise((i,a)=>{let o={responseType:"arraybuffer",url:r},s=t.certLoadPolicy.default,l={loadPolicy:s,timeout:s.maxLoadTimeMs,maxRetry:0,retryDelay:0,maxRetryDelay:0};n.load(o,l,{onSuccess:(e,t,n,r)=>{i(e.data)},onError:(t,n,i,s)=>{a(new iU({type:eu.KEY_SYSTEM_ERROR,details:ec.KEY_SYSTEM_SERVER_CERTIFICATE_REQUEST_FAILED,fatal:!0,networkDetails:i,response:ey({url:o.url,data:void 0},t)},`"${e}" certificate request failed (${r}). Status: ${t.code} (${t.text})`))},onTimeout:(t,n,i)=>{a(new iU({type:eu.KEY_SYSTEM_ERROR,details:ec.KEY_SYSTEM_SERVER_CERTIFICATE_REQUEST_FAILED,fatal:!0,networkDetails:i,response:{url:o.url,data:void 0}},`"${e}" certificate request timed out (${r})`))},onAbort:(e,t,n)=>{a(Error("aborted"))}})})):Promise.resolve()}setMediaKeysServerCertificate(e,t,n){return new Promise((r,i)=>{e.setServerCertificate(n).then(i=>{this.log(`setServerCertificate ${i?"success":"not supported by CDM"} (${null==n?void 0:n.byteLength}) on "${t}"`),r(e)}).catch(e=>{i(new iU({type:eu.KEY_SYSTEM_ERROR,details:ec.KEY_SYSTEM_SERVER_CERTIFICATE_UPDATE_FAILED,error:e,fatal:!0},e.message))})})}renewLicense(e,t){return this.requestLicense(e,new Uint8Array(t)).then(t=>this.updateKeySession(e,new Uint8Array(t)).catch(e=>{throw new iU({type:eu.KEY_SYSTEM_ERROR,details:ec.KEY_SYSTEM_SESSION_UPDATE_FAILED,error:e,fatal:!0},e.message)}))}unpackPlayReadyKeyMessage(e,t){let n=String.fromCharCode.apply(null,new Uint16Array(t.buffer));if(!n.includes("PlayReadyKeyMessage"))return e.setRequestHeader("Content-Type","text/xml; charset=utf-8"),t;let r=new DOMParser().parseFromString(n,"application/xml"),i=r.querySelectorAll("HttpHeader");if(i.length>0){let t;for(let n=0,r=i.length;n<r;n++){var a,o;let r=null==(a=(t=i[n]).querySelector("name"))?void 0:a.textContent,s=null==(o=t.querySelector("value"))?void 0:o.textContent;r&&s&&e.setRequestHeader(r,s)}}let s=r.querySelector("Challenge"),l=null==s?void 0:s.textContent;if(!l)throw Error("Cannot find <Challenge> in key message");return nl(atob(l))}setupLicenseXHR(e,t,n,r){let i=this.config.licenseXhrSetup;return i?Promise.resolve().then(()=>{if(!n.decryptdata)throw Error("Key removed");return i.call(this.hls,e,t,n,r)}).catch(a=>{if(!n.decryptdata)throw a;return e.open("POST",t,!0),i.call(this.hls,e,t,n,r)}).then(n=>(e.readyState||e.open("POST",t,!0),{xhr:e,licenseChallenge:n||r})):(e.open("POST",t,!0),Promise.resolve({xhr:e,licenseChallenge:r}))}requestLicense(e,t){let n=this.config.keyLoadPolicy.default;return new Promise((r,i)=>{let a=this.getLicenseServerUrlOrThrow(e.keySystem);this.log(`Sending license request to URL: ${a}`);let o=new XMLHttpRequest;o.responseType="arraybuffer",o.onreadystatechange=()=>{if(!this.hls||!e.mediaKeysSession)return i(Error("invalid state"));if(4===o.readyState){if(200===o.status){this._requestLicenseFailureCount=0;
52let t=o.response;this.log(`License received ${t instanceof ArrayBuffer?t.byteLength:t}`);let n=this.config.licenseResponseCallback;if(n)try{t=n.call(this.hls,o,a,e)}catch(e){this.error(e)}r(t)}else{let s=n.errorRetry,l=s?s.maxNumRetry:0;if(this._requestLicenseFailureCount++,this._requestLicenseFailureCount>l||o.status>=400&&o.status<500)i(new iU({type:eu.KEY_SYSTEM_ERROR,details:ec.KEY_SYSTEM_LICENSE_REQUEST_FAILED,fatal:!0,networkDetails:o,response:{url:a,data:void 0,code:o.status,text:o.statusText}},`License Request XHR failed (${a}). Status: ${o.status} (${o.statusText})`));else{let n=l-this._requestLicenseFailureCount+1;this.warn(`Retrying license request, ${n} attempts left`),this.requestLicense(e,t).then(r,i)}}}},e.licenseXhr&&e.licenseXhr.readyState!==XMLHttpRequest.DONE&&e.licenseXhr.abort(),e.licenseXhr=o,this.setupLicenseXHR(o,a,e,t).then(({xhr:t,licenseChallenge:n})=>{e.keySystem==nc.PLAYREADY&&(n=this.unpackPlayReadyKeyMessage(t,n)),t.send(n)})})}onMediaAttached(e,t){if(!this.config.emeEnabled)return;let n=t.media;this.media=n,n.removeEventListener("encrypted",this.onMediaEncrypted),n.removeEventListener("waitingforkey",this.onWaitingForKey),n.addEventListener("encrypted",this.onMediaEncrypted),n.addEventListener("waitingforkey",this.onWaitingForKey)}onMediaDetached(){let e=this.media;e&&(e.removeEventListener("encrypted",this.onMediaEncrypted),e.removeEventListener("waitingforkey",this.onWaitingForKey),this.media=null)}_clear(e){var t;let n=this.mediaKeySessions;this._requestLicenseFailureCount=0,this.setMediaKeysQueue=[],this.mediaKeySessions=[],this.keyIdToKeySessionPromise={},nA.clearKeyUriToKeyIdMap();let r=n.length;iB.CDMCleanupPromise=Promise.all(n.map(e=>this.removeSession(e)).concat(null==e?void 0:null==(t=e.setMediaKeys(null))?void 0:t.catch(e=>{var t;this.log(`Could not clear media keys: ${e}`),null==(t=this.hls)||t.trigger(ed.ERROR,{type:eu.OTHER_ERROR,details:ec.KEY_SYSTEM_DESTROY_MEDIA_KEYS_ERROR,fatal:!1,error:Error(`Could not clear media keys: ${e}`)})}))).then(()=>{r&&(this.log("finished closing key sessions and clearing media keys"),n.length=0)}).catch(e=>{var t;this.log(`Could not close sessions and clear media keys: ${e}`),null==(t=this.hls)||t.trigger(ed.ERROR,{type:eu.OTHER_ERROR,details:ec.KEY_SYSTEM_DESTROY_CLOSE_SESSION_ERROR,fatal:!1,error:Error(`Could not close sessions and clear media keys: ${e}`)})})}onManifestLoading(){this.keyFormatPromise=null}onManifestLoaded(e,{sessionKeys:t}){if(t&&this.config.emeEnabled&&!this.keyFormatPromise){let e=t.reduce((e,t)=>(-1===e.indexOf(t.keyFormat)&&e.push(t.keyFormat),e),[]);this.log(`Selecting key-system from session-keys ${e.join(", ")}`),this.keyFormatPromise=this.getKeyFormatPromise(e)}}removeSession(e){let{mediaKeysSession:t,licenseXhr:n}=e;if(t){var r;this.log(`Remove licenses and keys and close session ${t.sessionId}`),e._onmessage&&(t.removeEventListener("message",e._onmessage),e._onmessage=void 0),e._onkeystatuseschange&&(t.removeEventListener("keystatuseschange",e._onkeystatuseschange),e._onkeystatuseschange=void 0),n&&n.readyState!==XMLHttpRequest.DONE&&n.abort(),e.mediaKeysSession=e.decryptdata=e.licenseXhr=void 0;let i=this.mediaKeySessions.indexOf(e);i>-1&&this.mediaKeySessions.splice(i,1);let{drmSystemOptions:a}=this.config;return("persistent-license"===a.sessionType||null!=(r=a.sessionTypes)&&r.some(e=>"persistent-license"===e)?new Promise((e,n)=>{self.setTimeout(()=>n(Error("MediaKeySession.remove() timeout")),8e3),t.remove().then(e)}):Promise.resolve()).catch(e=>{var t;this.log(`Could not remove session: ${e}`),null==(t=this.hls)||t.trigger(ed.ERROR,{type:eu.OTHER_ERROR,details:ec.KEY_SYSTEM_DESTROY_REMOVE_SESSION_ERROR,fatal:!1,error:Error(`Could not remove session: ${e}`)})}).then(()=>t.close()).catch(e=>{var t;this.log(`Could not close session: ${e}`),null==(t=this.hls)||t.trigger(ed.ERROR,{type:eu.OTHER_ERROR,details:ec.KEY_SYSTEM_DESTROY_CLOSE_SESSION_ERROR,fatal:!1,error:Error(`Could not close session: ${e}`)})})}}}iB.CDMCleanupPromise=void 0;class iU extends Error{constructor(e,t){super(t),this.data=void 0,e.error||(e.error=Error(t)),this.data=e,e.err=e.error}}class iV{constructor(e){this.hls=void 0,this.isVideoPlaybackQualityAvailable=!1,this.timer=void 0,this.media=null,this.lastTime=void 0,this.lastDroppedFrames=0,this.lastDecodedFrames=0,this.streamController=void 0,this.hls=e,this.registerListeners()}setStreamController(e){this.streamController=e}
52registerListeners(){this.hls.on(ed.MEDIA_ATTACHING,this.onMediaAttaching,this),this.hls.on(ed.MEDIA_DETACHING,this.onMediaDetaching,this)}unregisterListeners(){this.hls.off(ed.MEDIA_ATTACHING,this.onMediaAttaching,this),this.hls.off(ed.MEDIA_DETACHING,this.onMediaDetaching,this)}destroy(){this.timer&&clearInterval(this.timer),this.unregisterListeners(),this.isVideoPlaybackQualityAvailable=!1,this.media=null}onMediaAttaching(e,t){let n=this.hls.config;if(n.capLevelOnFPSDrop){let e=t.media instanceof self.HTMLVideoElement?t.media:null;this.media=e,e&&"function"==typeof e.getVideoPlaybackQuality&&(this.isVideoPlaybackQualityAvailable=!0),self.clearInterval(this.timer),this.timer=self.setInterval(this.checkFPSInterval.bind(this),n.fpsDroppedMonitoringPeriod)}}onMediaDetaching(){this.media=null}checkFPS(e,t,n){let r=performance.now();if(t){if(this.lastTime){let e=r-this.lastTime,i=n-this.lastDroppedFrames,a=t-this.lastDecodedFrames,o=1e3*i/e,s=this.hls;if(s.trigger(ed.FPS_DROP,{currentDropped:i,currentDecoded:a,totalDroppedFrames:n}),o>0&&i>s.config.fpsDroppedMonitoringThreshold*a){let e=s.currentLevel;s.logger.warn("drop FPS ratio greater than max allowed value for currentLevel: "+e),e>0&&(-1===s.autoLevelCapping||s.autoLevelCapping>=e)&&(e-=1,s.trigger(ed.FPS_DROP_LEVEL_CAPPING,{level:e,droppedLevel:s.currentLevel}),s.autoLevelCapping=e,this.streamController.nextLevelSwitch())}}this.lastTime=r,this.lastDroppedFrames=n,this.lastDecodedFrames=t}}checkFPSInterval(){let e=this.media;if(e){if(this.isVideoPlaybackQualityAvailable){let t=e.getVideoPlaybackQuality();this.checkFPS(e,t.totalVideoFrames,t.droppedVideoFrames)}else this.checkFPS(e,e.webkitDecodedFrameCount,e.webkitDroppedFrameCount)}}}function iz(e,t){let n;try{n=new Event("addtrack")}catch(e){(n=document.createEvent("Event")).initEvent("addtrack",!1,!1)}n.track=e,t.dispatchEvent(n)}function iq(e,t){let n=e.mode;if("disabled"===n&&(e.mode="hidden"),e.cues&&!e.cues.getCueById(t.id))try{if(e.addCue(t),!e.cues.getCueById(t.id))throw Error(`addCue is failed for: ${t}`)}catch(n){eT.debug(`[texttrack-utils]: ${n}`);try{let n=new self.TextTrackCue(t.startTime,t.endTime,t.text);n.id=t.id,e.addCue(n)}catch(e){eT.debug(`[texttrack-utils]: Legacy TextTrackCue fallback failed: ${e}`)}}"disabled"===n&&(e.mode=n)}function iQ(e,t){let n=e.mode;if("disabled"===n&&(e.mode="hidden"),e.cues)for(let n=e.cues.length;n--;)t&&e.cues[n].removeEventListener("enter",t),e.removeCue(e.cues[n]);"disabled"===n&&(e.mode=n)}function iH(e,t,n,r){let i=e.mode;if("disabled"===i&&(e.mode="hidden"),e.cues&&e.cues.length>0){let i=function(e,t,n){let r=[],i=function(e,t){let n;if(t<=e[0].startTime)return 0;let r=e.length-1;if(t>e[r].endTime)return -1;let i=0,a=r;for(;i<=a;)if(t<e[n=Math.floor((a+i)/2)].startTime)a=n-1;else{if(!(t>e[n].startTime)||!(i<r))return n;i=n+1}return e[i].startTime-t<t-e[a].startTime?i:a}(e,t);if(i>-1)for(let a=i,o=e.length;a<o;a++){let i=e[a];if(i.startTime>=t&&i.endTime<=n)r.push(i);else if(i.startTime>n)break}return r}(e.cues,t,n);for(let t=0;t<i.length;t++)(!r||r(i[t]))&&e.removeCue(i[t])}"disabled"===i&&(e.mode=i)}function iG(e){let t=[];for(let n=0;n<e.length;n++){let r=e[n];("subtitles"===r.kind||"captions"===r.kind)&&r.label&&t.push(e[n])}return t}class iK extends it{constructor(e){super(e,"subtitle-track-controller"),this.media=null,this.tracks=[],this.groupIds=null,this.tracksInGroup=[],this.trackId=-1,this.currentTrack=null,this.selectDefaultTrack=!0,this.queuedDefaultTrack=-1,this.useTextTrackPolling=!1,this.subtitlePollingInterval=-1,this._subtitleDisplay=!0,this.asyncPollTrackChange=()=>this.pollTrackChange(0),this.onTextTracksChanged=()=>{if(this.useTextTrackPolling||self.clearInterval(this.subtitlePollingInterval),!this.media||!this.hls.config.renderTextTracksNatively)return;let e=null,t=iG(this.media.textTracks);for(let n=0;n<t.length;n++)if("hidden"===t[n].mode)e=t[n];else if("showing"===t[n].mode){e=t[n];break}let n=this.findTrackForTextTrack(e);this.subtitleTrack!==n&&this.setSubtitleTrack(n)},this.registerListeners()}destroy(){this.unregisterListeners(),this.tracks.length=0,this.tracksInGroup.length=0,this.currentTrack=null,this.onTextTracksChanged=this.asyncPollTrackChange=null,super.destroy()}get subtitleDisplay(){return this._subtitleDisplay}set subtitleDisplay(e){this._subtitleDisplay=e,this.trackId>-1&&this.toggleTrackModes()}registerListeners(){let{hls:e}=this;
vendor: 1,702 bytes, line 52
52e.on(ed.MEDIA_ATTACHED,this.onMediaAttached,this),e.on(ed.MEDIA_DETACHING,this.onMediaDetaching,this),e.on(ed.MANIFEST_LOADING,this.onManifestLoading,this),e.on(ed.MANIFEST_PARSED,this.onManifestParsed,this),e.on(ed.LEVEL_LOADING,this.onLevelLoading,this),e.on(ed.LEVEL_SWITCHING,this.onLevelSwitching,this),e.on(ed.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),e.on(ed.ERROR,this.onError,this)}unregisterListeners(){let{hls:e}=this;e.off(ed.MEDIA_ATTACHED,this.onMediaAttached,this),e.off(ed.MEDIA_DETACHING,this.onMediaDetaching,this),e.off(ed.MANIFEST_LOADING,this.onManifestLoading,this),e.off(ed.MANIFEST_PARSED,this.onManifestParsed,this),e.off(ed.LEVEL_LOADING,this.onLevelLoading,this),e.off(ed.LEVEL_SWITCHING,this.onLevelSwitching,this),e.off(ed.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),e.off(ed.ERROR,this.onError,this)}onMediaAttached(e,t){this.media=t.media,this.media&&(this.queuedDefaultTrack>-1&&(this.subtitleTrack=this.queuedDefaultTrack,this.queuedDefaultTrack=-1),this.useTextTrackPolling=!(this.media.textTracks&&"onchange"in this.media.textTracks),this.useTextTrackPolling?this.pollTrackChange(500):this.media.textTracks.addEventListener("change",this.asyncPollTrackChange))}pollTrackChange(e){self.clearInterval(this.subtitlePollingInterval),this.subtitlePollingInterval=self.setInterval(this.onTextTracksChanged,e)}onMediaDetaching(e,t){let n=this.media;if(!n)return;let r=!!t.transferMedia;self.clearInterval(this.subtitlePollingInterval),this.useTextTrackPolling||n.textTracks.removeEventListener("change",this.asyncPollTrackChange),this.trackId>-1&&(this.queuedDefaultTrack=this.trackId),this.subtitleTrack=-1,this.media=null,r||iG(n.textTracks).forEac
52h(e=>{iQ(e)})}onManifestLoading(){this.tracks=[],this.groupIds=null,this.tracksInGroup=[],this.trackId=-1,this.currentTrack=null,this.selectDefaultTrack=!0}onManifestParsed(e,t){this.tracks=t.subtitleTracks}onSubtitleTrackLoaded(e,t){let{id:n,groupId:r,details:i}=t,a=this.tracksInGroup[n];if(!a||a.groupId!==r){this.warn(`Subtitle track with id:${n} and group:${r} not found in active group ${null==a?void 0:a.groupId}`);return}let o=a.details;a.details=t.details,this.log(`Subtitle track ${n} "${a.name}" lang:${a.lang} group:${r} loaded [${i.startSN}-${i.endSN}]`),n===this.trackId&&this.playlistLoaded(n,t,o)}onLevelLoading(e,t){this.switchLevel(t.level)}onLevelSwitching(e,t){this.switchLevel(t.level)}switchLevel(e){let t=this.hls.levels[e];if(!t)return;let n=t.subtitleGroups||null,r=this.groupIds,i=this.currentTrack;if(!n||(null==r?void 0:r.length)!==(null==n?void 0:n.length)||null!=n&&n.some(e=>(null==r?void 0:r.indexOf(e))===-1)){this.groupIds=n,this.trackId=-1,this.currentTrack=null;let e=this.tracks.filter(e=>!n||-1!==n.indexOf(e.groupId));if(e.length)this.selectDefaultTrack&&!e.some(e=>e.default)&&(this.selectDefaultTrack=!1),e.forEach((e,t)=>{e.id=t});else if(!i&&!this.tracksInGroup.length)return;this.tracksInGroup=e;let t=this.hls.config.subtitlePreference;if(!i&&t){this.selectDefaultTrack=!1;let n=tx(t,e);if(n>-1)i=e[n];else{let e=tx(t,this.tracks);i=this.tracks[e]}}let r=this.findTrackId(i);-1===r&&i&&(r=this.findTrackId(null)),this.log(`Updating subtitle tracks, ${e.length} track(s) found in "${null==n?void 0:n.join(",")}" group-id`),this.hls.trigger(ed.SUBTITLE_TRACKS_UPDATED,{subtitleTracks:e}),-1!==r&&-1===this.trackId&&this.setSubtitleTrack(r)}}findTrackId(e){let t=this.tracksInGroup,n=this.selectDefaultTrack;for(let r=0;r<t.length;r++){let i=t[r];if((!n||i.default)&&(n||e)&&(!e||tT(i,e)))return r}if(e){for(let n=0;n<t.length;n++){let r=t[n];if(ii(e.attrs,r.attrs,["LANGUAGE","ASSOC-LANGUAGE","CHARACTERISTICS"]))return n}for(let n=0;n<t.length;n++){let r=t[n];if(ii(e.attrs,r.attrs,["LANGUAGE"]))return n}}return -1}findTrackForTextTrack(e){if(e){let t=this.tracksInGroup;for(let n=0;n<t.length;n++)if(ia(t[n],e))return n}return -1}onError(e,t){!t.fatal&&t.context&&(t.context.type!==eh.SUBTITLE_TRACK||t.context.id!==this.trackId||this.groupIds&&-1===this.groupIds.indexOf(t.context.groupId)||this.checkRetry(t))}get allSubtitleTracks(){return this.tracks}get subtitleTracks(){return this.tracksInGroup}get subtitleTrack(){return this.trackId}set subtitleTrack(e){this.selectDefaultTrack=!1,this.setSubtitleTrack(e)}setSubtitleOption(e){if(this.hls.config.subtitlePreference=e,e){if(-1===e.id)return this.setSubtitleTrack(-1),null;let t=this.allSubtitleTracks;if(this.selectDefaultTrack=!1,t.length){let n=this.currentTrack;if(n&&tT(e,n))return n;let r=tx(e,this.tracksInGroup);if(r>-1){let e=this.tracksInGroup[r];return this.setSubtitleTrack(r),e}if(n);else{let n=tx(e,t);if(n>-1)return t[n]}}}return null}loadPlaylist(e){super.loadPlaylist(),this.shouldLoadPlaylist(this.currentTrack)&&this.scheduleLoading(this.currentTrack,e)}loadingPlaylist(e,t){super.loadingPlaylist(e,t);let n=e.id,r=e.groupId,i=this.getUrlWithDirectives(e.url,t),a=e.details,o=null==a?void 0:a.age;this.log(`Loading subtitle ${n} "${e.name}" lang:${e.lang} group:${r}${(null==t?void 0:t.msn)!==void 0?" at sn "+t.msn+" part "+t.part:""}${o&&a.live?" age "+o.toFixed(1)+(a.type?" "+a.type:""):""} ${i}`),this.hls.trigger(ed.SUBTITLE_TRACK_LOADING,{url:i,id:n,groupId:r,deliveryDirectives:t||null,track:e})}toggleTrackModes(){let e;let{media:t}=this;if(!t)return;let n=iG(t.textTracks),r=this.currentTrack;if(!r||(e=n.filter(e=>ia(r,e))[0])||this.warn(`Unable to find subtitle TextTrack with name "${r.name}" and language "${r.lang}"`),[].slice.call(n).forEach(t=>{"disabled"!==t.mode&&t!==e&&(t.mode="disabled")}),e){let t=this.subtitleDisplay?"showing":"hidden";e.mode!==t&&(e.mode=t)}}setSubtitleTrack(e){let t=this.tracksInGroup;if(!this.media){this.queuedDefaultTrack=e;return}if(e<-1||e>=t.length||!eo(e)){this.warn(`Invalid subtitle track id: ${e}`);return}this.selectDefaultTrack=!1;let n=this.currentTrack,r=t[e]||null;if(this.trackId=e,this.currentTrack=r,this.toggleTrackModes(),!r){this.hls.trigger(ed.SUBTITLE_TRACK_SWITCH,{id:e});return}let i=!!r.details&&!r.details.live;if(e===this.trackId&&r===n&&i)return;this.log(`Switching to subtitle-track ${e}`+(r?` "${r.name}" lang:${r.lang} group:${r.groupId}`:""));let{id:a,groupId:o="",name:s,type:l,url:u}=r;this.hls.trigger(ed.SUBTITLE_TRACK_SWITCH,{id:a,groupId:o,name:s,type:l,url:u});let c=this.switchParams(r.url,null==n?void 0:n.details,r.details);this.loadPlaylist(c)}}function i$(e){let t=5381,n=e.length;for(;n;)t=33*t^e.charCodeAt(--n);return(t>>>0).toString()}let iW=((S={})[S.Point=0]="Point",S[S.Range=1]="Range",S);class iZ{constructor(e,t){this.base=void 0,this._duration=null,this._timelineStart=null,this.appendInPlaceDisabled=void 0,this.appendInPlaceStarted=void 0,this.dateRange=void 0,this.hasPlayed=!1,this.cumulativeDuration=0,this.resumeOffset=NaN,this.playoutLimit=NaN,this.restrictions={skip:!1,jump:!1},this.snapOptions={out:!1,in:!1},this.assetList=[],this.assetListLoader=void 0,this.assetListResponse=null,this.resumeAnchor=void 0,this.error=void 0,this.resetOnResume=void 0,this.base=t,this.dateRange=e,this.setDateRange(e)}setDateRange(e){this.dateRange=e,this.resumeOffset=e.attr.optionalFloat("X-RESUME-OFFSET",this.resumeOffset),this.playoutLimit=e.attr.optionalFloat("X-PLAYOUT-LIMIT",this.playoutLimit),this.restrictions=e.attr.enumeratedStringList("X-RESTRICT",this.restrictions),this.snapOptions=e.attr.enumeratedStringList("X-SNAP",this.snapOptions)}reset(){var e;this.appendInPlaceStarted=!1,null==(e=this.assetListLoader)||e.destroy(),this.assetListLoader=void 0,this.supplementsPrimary||(this.assetListResponse=null,this.assetList=[],this._duration=null)}isAssetPastPlayoutLimit(e){if(e>=this.assetList.length)return!0;let t=this.playoutLimit;return!(e<=0||isNaN(t))&&this.assetList[e].startOffset>t}findAssetIndex(e){return this.assetList.indexOf(e)}get identifier(){return this.dateRange.id}get startDate(){return this.dateRange.startDate}get startTime(){let e=this.dateRange.startTime;if(this.snapOptions.out){let t=this.dateRange.tagAnchor;if(t)return iY(e,t)}return e}get startOffset(){return this.cue.pre?0:this.startTime}get startIsAligned(){if(0===this.startTime||this.snapOptions.out)return!0;let e=this.dateRange.tagAnchor;if(e){let t=this.dateRange.startTime,n=iY(t,e);return t-n<.1}return!1}get resumptionOffset(){let e=this.resumeOffset,t=eo(e)?e:this.duration;return this.cumulativeDuration+t}get resumeTime(){let e=this.startOffset+this.resumptionOffset;if(this.snapOptions.in){let t=this.resumeAnchor;if(t)return iY(e,t)}return e}get appendInPlace(){return!!this.appendInPlaceStarted||!this.appendInPlaceDisabled&&!!(!this.cue.once&&!this.cue.pre&&this.startIsAligned&&(isNaN(this.playoutLimit)&&isNaN(this.resumeOffset)||this.resumeOffset&&this.duration&&.025>Math.abs(this.resumeOffset-this.duration)))}set appendInPlace(e){if(this.appendInPlaceStarted){this.resetOnResume=!e;return}this.appendInPlaceDisabled=!e}get timelineStart(){return null!==this._timelineStart?this._timelineStart:this.startTime}set timelineStart(e){this._timelineStart=e}get duration(){let e;let t=this.playoutLimit;return e=null!==this._duration?this._duration:this.dateRange.duration?this.dateRange.duration:this.dateRange.plannedDuration||0,!isNaN(t)&&t<e&&(e=t),e}set duration(e){this._duration=e}get cue(){return this.dateRange.cue}get timelineOccupancy(){return"RANGE"===this.dateRange.attr["X-TIMELINE-OCCUPIES"]?iW.Range:iW.Point}get supplementsPrimary(){return"PRIMARY"===this.dateRange.attr["X-TIMELINE-STYLE"]}get contentMayVary(){return"NO"!==this.dateRange.attr["X-CONTENT-MAY-VARY"]}get assetUrl(){return this.dateRange.attr["X-ASSET-URI"]}get assetListUrl(){return this.dateRange.attr["X-ASSET-LIST"]}get baseUrl(){return this.base.url}get assetListLoaded(){return this.assetList.length>0||null!==this.assetListResponse}toString(){return`["${this.identifier}" ${this.cue.pre?"<pre>":this.cue.post?"<post>":""}${this.timelineStart.toFixed(2)}-${this.resumeTime.toFixed(2)}]`}}function iY(e,t){return e-t.start<t.duration/2&&!(.025>Math.abs(e-(t.start+t.duration)))?t.start:t.start+t.duration}function iX(e,t,n){let r=new self.URL(e,n);return"data:"!==r.protocol&&r.searchParams.set("_HLS_primary_id",t),r}function iJ(e){let t=e.timelineStart,n=e.duration||0;return`["${e.identifier}" ${t.toFixed(2)}-${(t+n).toFixed(2)}]`}class i0{constructor(e,t,n,r){this.hls=void 0,this.interstitial=void 0,this.assetItem=void 0,this.tracks=null,this.hasDetail
52s=!1,this.mediaAttached=null,this._currentTime=void 0,this._bufferedEosTime=void 0,this.checkPlayout=()=>{let e=this.interstitial.playoutLimit,t=this.currentTime;this.startOffset+t>=e&&this.hls.trigger(ed.PLAYOUT_LIMIT_REACHED,{})};let i=this.hls=new e(t);this.interstitial=n,this.assetItem=r;let a=r.uri;try{a=iX(a,i.sessionId).href}catch(e){}i.loadSource(a);let o=()=>{this.hasDetails=!0};i.once(ed.LEVEL_LOADED,o),i.once(ed.AUDIO_TRACK_LOADED,o),i.once(ed.SUBTITLE_TRACK_LOADED,o),i.on(ed.MEDIA_ATTACHING,(e,{media:t})=>{this.removeMediaListeners(),this.mediaAttached=t,this.interstitial.playoutLimit&&t.addEventListener("timeupdate",this.checkPlayout)})}bufferedInPlaceToEnd(e){var t;if(!this.interstitial.appendInPlace)return!1;if(null!=(t=this.hls)&&t.bufferedToEnd)return!0;if(!e||!this._bufferedEosTime)return!1;let n=this.timelineOffset,r=t8.bufferInfo(e,n,0);return this.getAssetTime(r.end)>=this._bufferedEosTime-.02}get destroyed(){var e;return!(null!=(e=this.hls)&&e.userConfig)}get assetId(){return this.assetItem.identifier}get interstitialId(){return this.assetItem.parentIdentifier}get media(){var e;return(null==(e=this.hls)?void 0:e.media)||null}get bufferedEnd(){let e=this.media||this.mediaAttached;if(!e)return this._bufferedEosTime?this._bufferedEosTime:this.currentTime;let t=t8.bufferInfo(e,e.currentTime,.001);return this.getAssetTime(t.end)}get currentTime(){let e=this.media||this.mediaAttached;return e?this.getAssetTime(e.currentTime):this._currentTime||0}get duration(){return this.assetItem.duration||0}get remaining(){let e=this.duration;return e?Math.max(0,e-this.currentTime):0}get startOffset(){return this.assetItem.startOffset}get timelineOffset(){var e;return(null==(e=this.hls)?void 0:e.config.timelineOffset)||0}set timelineOffset(e){let t=this.timelineOffset;if(e!==t&&Math.abs(e-t)>1/9e4){if(this.hasDetails)throw Error("Cannot set timelineOffset after playlists are loaded");this.hls.config.timelineOffset=e}}getAssetTime(e){return Math.min(Math.max(0,e-this.timelineOffset),this.duration)}removeMediaListeners(){let e=this.mediaAttached;e&&(this._currentTime=e.currentTime,this.bufferSnapShot(),e.removeEventListener("timeupdate",this.checkPlayout))}bufferSnapShot(){if(this.mediaAttached){var e;null!=(e=this.hls)&&e.bufferedToEnd&&(this._bufferedEosTime=this.bufferedEnd)}}destroy(){this.removeMediaListeners(),this.hls.destroy(),this.hls=this.interstitial=null,this.tracks=this.mediaAttached=this.checkPlayout=null}attachMedia(e){this.hls.attachMedia(e)}detachMedia(){this.removeMediaListeners(),this.mediaAttached=null,this.hls.detachMedia()}resumeBuffering(){this.hls.resumeBuffering()}pauseBuffering(){this.hls.pauseBuffering()}transferMedia(){return this.bufferSnapShot(),this.hls.transferMedia()}on(e,t,n){this.hls.on(e,t)}once(e,t,n){this.hls.once(e,t)}off(e,t,n){this.hls.off(e,t)}toString(){var e,t;return`HlsAssetPlayer: ${iJ(this.assetItem)} ${null==(e=this.hls)?void 0:e.sessionId} ${null!=(t=this.interstitial)&&t.appendInPlace?"append-in-place":""}`}}class i1 extends eb{constructor(e,t){super("interstitials-sched",t),this.onScheduleUpdate=void 0,this.eventMap={},this.events=null,this.items=null,this.durations={primary:0,playout:0,integrated:0},this.onScheduleUpdate=e}destroy(){this.reset(),this.onScheduleUpdate=null}reset(){this.eventMap={},this.setDurations(0,0,0),this.events&&this.events.forEach(e=>e.reset()),this.events=this.items=null}resetErrorsInRange(e,t){return this.events?this.events.reduce((n,r)=>e<=r.startOffset&&t>r.startOffset?(delete r.error,n+1):n,0):0}get duration(){let e=this.items;return e?e[e.length-1].end:0}get length(){return this.items?this.items.length:0}getEvent(e){return e&&this.eventMap[e]||null}hasEvent(e){return e in this.eventMap}findItemIndex(e,t){if(e.event)return this.findEventIndex(e.event.identifier);let n=-1;e.nextEvent?n=this.findEventIndex(e.nextEvent.identifier)-1:e.previousEvent&&(n=this.findEventIndex(e.previousEvent.identifier)+1);let r=this.items;if(r)for(r[n]||(void 0===t&&(t=e.start),n=this.findItemIndexAtTime(t));n>=0&&null!=(i=r[n])&&i.event;){var i;n--}return n}findItemIndexAtTime(e,t){let n=this.items;if(n)for(let r=0;r<n.length;r++){let i=n[r];if(t&&"primary"!==t&&(i=i[t]),e===i.start||e>i.start&&e<i.end)return r}return -1}findJumpRestrictedIndex(e,t){let n=this.items;if(n)for(let r=e;r<=t&&n[r];r++){let e=n[r].event;if(null!=e&&e.restrictions.jump&&!e.appendInPlace)return r}return -1}findEventIndex(e){let t=this.items;if(t)for(let r=t.length;r--;){var n;if((null==(n=t[r].event)?void 0:n.identifier)===e)return r}return -1}findAssetIndex(e,t){let n=e.assetList,r=n.length;if(r>1)for(let e=0;e<r;e++){let r=n[e];if(!r.error){let n=r.timelineStart;if(t===n||t>n&&t<n+(r.duration||0))return e}}return 0}get assetIdAtEnd(){var e,t;let n=null==(e=this.items)?void 0:null==(t=e[this.length-1])?void 0:t.event;if(n){let e=n.assetList,t=e[e.length-1];if(t)return t.identifier}return null}parseInterstitialDateRanges(e,t){let n=e.main.details,{dateRanges:r}=n,i=this.events,a=this.parseDateRanges(r,{url:n.url},t),o=Object.keys(r),s=i?i.filter(e=>!o.includes(e.identifier)):[];a.length&&a.sort((e,t)=>
52{let n=e.cue.pre,r=e.cue.post,i=t.cue.pre,a=t.cue.post;if(n&&!i)return -1;if(i&&!n||r&&!a)return 1;if(a&&!r)return -1;if(!n&&!i&&!r&&!a){let n=e.startTime,r=t.startTime;if(n!==r)return n-r}return e.dateRange.tagOrder-t.dateRange.tagOrder}),this.events=a,s.forEach(e=>{this.removeEvent(e)}),this.updateSchedule(e,s)}updateSchedule(e,t=[]){let n=this.events||[];if(n.length||t.length||this.length<2){let r=this.items,i=this.parseSchedule(n,e);(t.length||(null==r?void 0:r.length)!==i.length||i.some((e,t)=>Math.abs(e.playout.start-r[t].playout.start)>.005||Math.abs(e.playout.end-r[t].playout.end)>.005))&&(this.items=i,this.onScheduleUpdate(t,r))}}parseDateRanges(e,t,n){let r=[],i=Object.keys(e);for(let a=0;a<i.length;a++){let o=i[a],s=e[o];if(s.isInterstitial){let e=this.eventMap[o];e?e.setDateRange(s):(e=new iZ(s,t),this.eventMap[o]=e,!1===n&&(e.appendInPlace=n)),r.push(e)}}return r}parseSchedule(e,t){let n=[],r=t.main.details,i=r.live?1/0:r.edge,a=0;if((e=e.filter(e=>!e.error&&!(e.cue.once&&e.hasPlayed))).length){this.resolveOffsets(e,t);let r=0,s=0;if(e.forEach((t,o)=>{let l=t.cue.pre,u=t.cue.post,c=e[o-1]||null,d=t.appendInPlace,h=u?i:t.startOffset,f=t.duration,p=t.timelineOccupancy===iW.Range?f:0,m=t.resumptionOffset,g=(null==c?void 0:c.startTime)===h,v=h+t.cumulativeDuration,y=d?v+f:h+m;if(l||!u&&h<=0){let e=s;s+=p,t.timelineStart=v;let r=a;a+=f,n.push({event:t,start:v,end:y,playout:{start:r,end:a},integrated:{start:e,end:s}})}else{if(!(h<=i))return;if(!g){let i=h-r;if(i>.033){let l=r,u=s;s+=i;let c=a;a+=i;let d={previousEvent:e[o-1]||null,nextEvent:t,start:l,end:l+i,playout:{start:c,end:a},integrated:{start:u,end:s}};n.push(d)}else i>0&&c&&(c.cumulativeDuration+=i,n[n.length-1].end=h)}u&&(y=v),t.timelineStart=v;let l=s;s+=p;let d=a;a+=f,n.push({event:t,start:v,end:y,playout:{start:d,end:a},integrated:{start:l,end:s}})}let b=t.resumeTime;r=u||b>i?i:b}),r<i){var o;let e=r,t=s,l=i-r;s+=l;let u=a;a+=l,n.push({previousEvent:(null==(o=n[n.length-1])?void 0:o.event)||null,nextEvent:null,start:r,end:e+l,playout:{start:u,end:a},integrated:{start:t,end:s}})}this.setDurations(i,a,s)}else n.push({previousEvent:null,nextEvent:null,start:0,end:i,playout:{start:0,end:i},integrated:{start:0,end:i}}),this.setDurations(i,i,i);return n}setDurations(e,t,n){this.durations={primary:e,playout:t,integrated:n}}resolveOffsets(e,t){let n=t.main.details,r=n.live?1/0:n.edge,i=0,a=-1;e.forEach((o,s)=>{let l=o.cue.pre,u=o.cue.post,c=l?0:u?r:o.startTime;this.updateAssetDurations(o),a===c?o.cumulativeDuration=i:(i=0,a=c),!u&&o.snapOptions.in&&(o.resumeAnchor=tL(null,n.fragments,o.startOffset+o.resumptionOffset,0,0)||void 0),!o.appendInPlace||o.appendInPlaceStarted||this.primaryCanResumeInPlaceAt(o,t)||(o.appendInPlace=!1),!o.appendInPlace&&s+1<e.length&&e[s+1].startTime-e[s].resumeTime<.033&&(e[s+1].appendInPlace=!1,e[s+1].appendInPlace&&this.warn(`Could not change append strategy for abutting event ${o}`));let d=eo(o.resumeOffset)?o.resumeOffset:o.duration;i+=d})}primaryCanResumeInPlaceAt(e,t){let n=e.resumeTime,r=e.startTime+e.resumptionOffset;return Math.abs(n-r)>.025?(this.log(`"${e.identifier}" resumption ${n} not aligned with estimated timeline end ${r}`),!1):t?!Object.keys(t).some(r=>{let i=t[r].details,a=i.edge;if(n>=a)return this.log(`"${e.identifier}" resumption ${n} past ${r} playlist end ${a}`),!1;let o=tL(null,i.fragments,n);if(!o)return this.log(`"${e.identifier}" resumption ${n} does not align with any fragments in ${r} playlist (${i.fragStart}-${i.fragmentEnd})`),!0;let s="audio"===r?.175:0;return!(Math.abs(o.start-n)<.025+s||Math.abs(o.end-n)<.025+s)&&(this.log(`"${e.identifier}" resumption ${n} not aligned with ${r} fragment bounds (${o.start}-${o.end} sn: ${o.sn} cc: ${o.cc})`),!0)}):(this.log(`"${e.identifier}" resumption ${n} can not be aligned with media (none selected)`),!1)}updateAssetDurations(e){if(!e.assetListLoaded)return;let t=e.timelineStart,n=0,r=!1,i=!1;e.assetList.forEach((e,a)=>{let o=t+n;e.startOffset=n,e.timelineStart=o,r||(r=null===e.duration),i||(i=!!e.error);let s=e.error?0:e.duration||0;n+=s}),r&&!i?e.duration=Math.max(n,e.duration):e.duration=n}removeEvent(e){e.reset(),delete this.eventMap[e.identifier]}}
52function i2(e){return`[${e.event?'"'+e.event.identifier+'"':"primary"}: ${e.start.toFixed(2)}-${e.end.toFixed(2)}]`}class i3{constructor(e){this.hls=void 0,this.hls=e}destroy(){this.hls=null}loadAssetList(e,t){let n;let r=e.assetListUrl;try{n=iX(r,this.hls.sessionId,e.baseUrl)}catch(n){let t=this.assignAssetListError(e,ec.ASSET_LIST_LOAD_ERROR,n,r);this.hls.trigger(ed.ERROR,t);return}t&&"data:"!==n.protocol&&n.searchParams.set("_HLS_start_offset",""+t);let i=this.hls.config,a=new i.loader(i),o={responseType:"json",url:n.href},s=i.interstitialAssetListLoadPolicy.default,l={loadPolicy:s,timeout:s.maxLoadTimeMs,maxRetry:0,retryDelay:0,maxRetryDelay:0};return a.load(o,l,{onSuccess:(t,n,r,i)=>{let a=t.data;if(!Array.isArray(null==a?void 0:a.ASSETS)){let t=this.assignAssetListError(e,ec.ASSET_LIST_PARSING_ERROR,Error("Invalid interstitial asset list"),r.url,n,i);this.hls.trigger(ed.ERROR,t);return}e.assetListResponse=a,this.hls.trigger(ed.ASSET_LIST_LOADED,{event:e,assetListResponse:a,networkDetails:i})},onError:(t,n,r,i)=>{let a=this.assignAssetListError(e,ec.ASSET_LIST_LOAD_ERROR,Error(`Error loading X-ASSET-LIST: HTTP status ${t.code} ${t.text} (${n.url})`),n.url,i,r);this.hls.trigger(ed.ERROR,a)},onTimeout:(t,n,r)=>{let i=this.assignAssetListError(e,ec.ASSET_LIST_LOAD_TIMEOUT,Error(`Timeout loading X-ASSET-LIST (${n.url})`),n.url,t,r);this.hls.trigger(ed.ERROR,i)}}),this.hls.trigger(ed.ASSET_LIST_LOADING,{event:e}),a}assignAssetListError(e,t,n,r,i,a){return e.error=n,{type:eu.NETWORK_ERROR,details:t,fatal:!1,interstitial:e,url:r,error:n,networkDetails:a,stats:i}}}function i4(e,t,n){i5(e,t,n),e.addEventListener(t,n)}function i5(e,t,n){e.removeEventListener(t,n)}function i8(e){null==e||e.play().catch(()=>{})}class i6 extends eb{constructor(e,t){super("interstitials",e.logger),this.HlsPlayerClass=void 0,this.hls=void 0,this.assetListLoader=void 0,this.mediaSelection=null,this.altSelection=null,this.media=null,this.detachedData=null,this.requiredTracks=null,this.manager=null,this.playerQueue=[],this.bufferedPos=-1,this.timelinePos=-1,this.schedule=void 0,this.playingItem=null,this.bufferingItem=null,this.waitingItem=null,this.endedItem=null,this.playingAsset=null,this.endedAsset=null,this.bufferingAsset=null,this.shouldPlay=!1,this.onPlay=()=>{this.shouldPlay=!0},this.onPause=()=>{this.shouldPlay=!1},this.onSeeking=()=>{let e=this.currentTime;if(void 0===e||this.playbackDisabled)return;let t=e-this.timelinePos;if(Math.abs(t)<1/7056e5)return;let n=t<=-.01;this.timelinePos=e,this.bufferedPos=e;let r=this.playingItem;if(!r){this.checkBuffer();return}if(n&&this.schedule.resetErrorsInRange(e,e-t)&&this.updateSchedule(),this.checkBuffer(),n&&e<r.start||e>=r.end){var i;let e=this.schedule.findItemIndexAtTime(this.timelinePos);if(!this.isInterstitial(r)&&null!=(i=this.media)&&i.paused&&(this.shouldPlay=!1),!n){let t=this.findItemIndex(r);if(e>t){let n=this.schedule.findJumpRestrictedIndex(t+1,e);if(n>t){this.setSchedulePosition(n);return}}}this.setSchedulePosition(e);return}let a=this.playingAsset;if(!a){if(this.playingLastItem&&this.isInterstitial(r)){let t=r.event.assetList[0];t&&(this.endedItem=this.playingItem,this.playingItem=null,this.setScheduleToAssetAtTime(e,t))}return}let o=a.timelineStart,s=a.duration||0;(n&&e<o||e>=o+s)&&this.setScheduleToAssetAtTime(e,a)},this.onTimeupdate=()=>{let e=this.currentTime;if(void 0===e||this.playbackDisabled||!(e>this.timelinePos))return;this.timelinePos=e,e>this.bufferedPos&&this.checkBuffer();let t=this.playingItem;if(!t||this.playingLastItem)return;if(e>=t.end){this.timelinePos=t.end;let e=this.findItemIndex(t);this.setSchedulePosition(e+1)}let n=this.playingAsset;n&&e>=n.timelineStart+(n.duration||0)&&this.setScheduleToAssetAtTime(e,n)},this.onScheduleUpdate=(e,t)=>{let n=this.schedule,r=this.playingItem,i=n.events||[],a=n.items||[],o=n.durations,s=e.map(e=>e.identifier),l=!!(i.length||s.length);if(l&&this.log(`INTERSTITIALS_UPDATED (${i.length}): ${i}
53Schedule: ${a.map(e=>i2(e))}`),s.length&&this.log(`Removed events ${s}`),this.playerQueue.forEach(e=>{if(e.interstitial.appendInPlace){let t=e.assetItem.timelineStart,n=e.timelineOffset-t;if(n)try{e.timelineOffset=t}catch(r){Math.abs(n)>.025&&this.warn(`${r} ("${e.assetId}" ${e.timelineOffset}->${t})`)}}}),r){let e=this.updateItem(r,this.timelinePos);this.itemsMatch(r,e)&&(this.playingItem=e,this.waitingItem=this.endedItem=null)}else this.waitingItem=this.updateItem(this.waitingItem),this.endedItem=this.updateItem(this.endedItem);let u=this.bufferingItem;if(u){let e=this.updateItem(u,this.bufferedPos);this.itemsMatch(u,e)?this.bufferingItem=e:u.event&&(this.bufferingItem=this.playingItem,this.clearInterstitial(u.event,null))}
53if(e.forEach(e=>{e.assetList.forEach(e=>{this.clearAssetPlayer(e.identifier,null)})}),l||t){if(this.hls.trigger(ed.INTERSTITIALS_UPDATED,{events:i.slice(0),schedule:a.slice(0),durations:o,removedIds:s}),this.isInterstitial(r)&&s.includes(r.event.identifier)){this.warn(`Interstitial "${r.event.identifier}" removed while playing`),this.primaryFallback(r.event);return}this.checkBuffer()}},this.hls=e,this.HlsPlayerClass=t,this.assetListLoader=new i3(e),this.schedule=new i1(this.onScheduleUpdate,e.logger),this.registerListeners()}registerListeners(){let e=this.hls;e.on(ed.MEDIA_ATTACHING,this.onMediaAttaching,this),e.on(ed.MEDIA_ATTACHED,this.onMediaAttached,this),e.on(ed.MEDIA_DETACHING,this.onMediaDetaching,this),e.on(ed.MANIFEST_LOADING,this.onManifestLoading,this),e.on(ed.LEVEL_UPDATED,this.onLevelUpdated,this),e.on(ed.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),e.on(ed.AUDIO_TRACK_UPDATED,this.onAudioTrackUpdated,this),e.on(ed.SUBTITLE_TRACK_SWITCH,this.onSubtitleTrackSwitch,this),e.on(ed.SUBTITLE_TRACK_UPDATED,this.onSubtitleTrackUpdated,this),e.on(ed.EVENT_CUE_ENTER,this.onInterstitialCueEnter,this),e.on(ed.ASSET_LIST_LOADED,this.onAssetListLoaded,this),e.on(ed.BUFFER_APPENDED,this.onBufferAppended,this),e.on(ed.BUFFER_FLUSHED,this.onBufferFlushed,this),e.on(ed.BUFFERED_TO_END,this.onBufferedToEnd,this),e.on(ed.MEDIA_ENDED,this.onMediaEnded,this),e.on(ed.ERROR,this.onError,this),e.on(ed.DESTROYING,this.onDestroying,this)}unregisterListeners(){let e=this.hls;e&&(e.off(ed.MEDIA_ATTACHING,this.onMediaAttaching,this),e.off(ed.MEDIA_ATTACHED,this.onMediaAttached,this),e.off(ed.MEDIA_DETACHING,this.onMediaDetaching,this),e.off(ed.MANIFEST_LOADING,this.onManifestLoading,this),e.off(ed.LEVEL_UPDATED,this.onLevelUpdated,this),e.off(ed.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),e.off(ed.AUDIO_TRACK_UPDATED,this.onAudioTrackUpdated,this),e.off(ed.SUBTITLE_TRACK_SWITCH,this.onSubtitleTrackSwitch,this),e.off(ed.SUBTITLE_TRACK_UPDATED,this.onSubtitleTrackUpdated,this),e.off(ed.EVENT_CUE_ENTER,this.onInterstitialCueEnter,this),e.off(ed.ASSET_LIST_LOADED,this.onAssetListLoaded,this),e.off(ed.BUFFER_CODECS,this.onBufferCodecs,this),e.off(ed.BUFFER_APPENDED,this.onBufferAppended,this),e.off(ed.BUFFER_FLUSHED,this.onBufferFlushed,this),e.off(ed.BUFFERED_TO_END,this.onBufferedToEnd,this),e.off(ed.MEDIA_ENDED,this.onMediaEnded,this),e.off(ed.ERROR,this.onError,this),e.off(ed.DESTROYING,this.onDestroying,this))}startLoad(){this.resumeBuffering()}stopLoad(){this.pauseBuffering()}resumeBuffering(){var e;null==(e=this.getBufferingPlayer())||e.resumeBuffering()}pauseBuffering(){var e;null==(e=this.getBufferingPlayer())||e.pauseBuffering()}destroy(){this.unregisterListeners(),this.stopLoad(),this.assetListLoader&&this.assetListLoader.destroy(),this.emptyPlayerQueue(),this.clearScheduleState(),this.schedule&&this.schedule.destroy(),this.media=this.detachedData=this.mediaSelection=this.requiredTracks=this.altSelection=this.manager=null,this.hls=this.HlsPlayerClass=this.schedule=this.log=null,this.assetListLoader=null,this.onPlay=this.onPause=this.onSeeking=this.onTimeupdate=null,this.onScheduleUpdate=null}onDestroying(){let e=this.primaryMedia||this.media;e&&this.removeMediaListeners(e)}removeMediaListeners(e){i5(e,"play",this.onPlay),i5(e,"pause",this.onPause),i5(e,"seeking",this.onSeeking),i5(e,"timeupdate",this.onTimeupdate)}onMediaAttaching(e,t){let n=this.media=t.media;i4(n,"seeking",this.onSeeking),i4(n,"timeupdate",this.onTimeupdate),i4(n,"play",this.onPlay),i4(n,"pause",this.onPause)}onMediaAttached(e,t){let n=this.effectivePlayingItem,r=this.detachedData;if(this.detachedData=null,null===n)this.checkStart();else if(!r){this.clearScheduleState();let e=this.findItemIndex(n);this.setSchedulePosition(e)}}clearScheduleState(){this.playingItem=this.bufferingItem=this.waitingItem=this.endedItem=this.playingAsset=this.endedAsset=this.bufferingAsset=null}onMediaDetaching(e,t){let n=!!t.transferMedia,r=this.media;if(this.media=null,!n&&(r&&this.removeMediaListeners(r),this.detachedData)){let e=this.getBufferingPlayer();e&&(this.playingAsset=this.endedAsset=this.bufferingAsset=this.bufferingItem=this.waitingItem=this.detachedData=null,e.detachMedia()),this.shouldPlay=!1}
53}get interstitialsManager(){if(!this.manager){if(!this.hls)return null;let l=this,u=()=>l.bufferingItem||l.waitingItem,c=e=>e?l.getAssetPlayer(e.identifier):e,d=(e,t,n,r,i)=>{if(e){let a=e[t].start,o=e.event;if(o){if("playout"===t||o.timelineOccupancy!==iW.Point){let e=c(n);(null==e?void 0:e.interstitial)===o&&(a+=e.assetItem.startOffset+e[i])}}else a+=("bufferedPos"===r?f():l[r])-e.start;return a}return 0},h=(e,t)=>{if(0!==e&&"primary"!==t&&l.schedule.length){var n;let r=l.schedule.findItemIndexAtTime(e),i=null==(n=l.schedule.items)?void 0:n[r];if(i)return e+(i[t].start-i.start)}return e},f=()=>{let e=l.bufferedPos;return e===Number.MAX_VALUE?p("primary"):Math.max(e,0)},p=e=>{var t;return null!=(t=l.primaryDetails)&&t.live?l.primaryDetails.edge:l.schedule.durations[e]},m=(e,t)=>{var n,r,i;let a=l.effectivePlayingItem;if(null!=a&&null!=(n=a.event)&&n.restrictions.skip)return;l.log(`seek to ${e} "${t}"`);let o=l.effectivePlayingItem,s=l.schedule.findItemIndexAtTime(e,t),u=null==(r=l.schedule.items)?void 0:r[s],h=l.getBufferingPlayer(),f=null==h?void 0:h.interstitial,p=null==f?void 0:f.appendInPlace,m=o&&l.itemsMatch(o,u);if(o&&(p||m)){let n=c(l.playingAsset),r=(null==n?void 0:n.media)||l.primaryMedia;if(r){let i="primary"===t?r.currentTime:d(o,t,l.playingAsset,"timelinePos","currentTime"),a=e-i,s=(p?i:r.currentTime)+a;if(s>=0&&(!n||p||s<=n.duration)){r.currentTime=s;return}}}if(u){let n=e;if("primary"!==t){let r=e-u[t].start;n=u.start+r}let r=!l.isInterstitial(u);if((!l.isInterstitial(o)||o.event.appendInPlace)&&(r||u.event.appendInPlace)){let e=l.media||(p?null==h?void 0:h.media:null);e&&(e.currentTime=n)}else if(o){let a=l.findItemIndex(o);if(s>a){let e=l.schedule.findJumpRestrictedIndex(a+1,s);if(e>a){l.setSchedulePosition(e);return}}let c=0;if(r)l.timelinePos=n,l.checkBuffer();else{let n=null==u?void 0:null==(i=u.event)?void 0:i.assetList;if(n){let r=e-(u[t]||u).start;for(let e=n.length;e--;){let t=n[e];if(t.duration&&r>=t.startOffset&&r<t.startOffset+t.duration){c=e;break}}}}l.setSchedulePosition(s,c)}}},g=()=>{let e=l.effectivePlayingItem;if(l.isInterstitial(e))return e;let t=u();return l.isInterstitial(t)?t:null},v={get currentTime(){let e=g(),t=l.effectivePlayingItem;if(t&&t===e)return d(t,"playout",l.effectivePlayingAsset,"timelinePos","currentTime")-t.playout.start;return 0},set currentTime(time){let e=g(),t=l.effectivePlayingItem;t&&t===e&&m(time+t.playout.start,"playout")},get duration(){let e=g();if(e)return e.playout.end-e.playout.start;return 0},get assetPlayers(){var e;let t=null==(e=g())?void 0:e.event.assetList;if(t)return t.map(e=>l.getAssetPlayer(e.identifier));return[]},get playingIndex(){var t;let e=null==(t=g())?void 0:t.event;if(e&&l.effectivePlayingAsset)return e.findAssetIndex(l.effectivePlayingAsset);return -1},get scheduleItem(){return g()}};this.manager={get events(){var n,r;return(null==(n=l.schedule)?void 0:null==(r=n.events)?void 0:r.slice(0))||[]},get schedule(){var i,a;return(null==(i=l.schedule)?void 0:null==(a=i.items)?void 0:a.slice(0))||[]},get interstitialPlayer(){if(g())return v;return null},get playerQueue(){return l.playerQueue.slice(0)},get bufferingAsset(){return l.bufferingAsset},get bufferingItem(){return u()},get bufferingIndex(){let e=u();return l.findItemIndex(e)},get playingAsset(){return l.effectivePlayingAsset},get playingItem(){return l.effectivePlayingItem},get playingIndex(){let e=l.effectivePlayingItem;return l.findItemIndex(e)},primary:{get bufferedEnd(){return f()},get currentTime(){let e=l.timelinePos;return e>0?e:0},set currentTime(time){m(time,"primary")},get duration(){return p("primary")},get seekableStart(){var o;return(null==(o=l.primaryDetails)?void 0:o.fragmentStart)||0}},integrated:{get bufferedEnd(){return d(u(),"integrated",l.bufferingAsset,"bufferedPos","bufferedEnd")},get currentTime(){return d(l.effectivePlayingItem,"integrated",l.effectivePlayingAsset,"timelinePos","currentTime")},set currentTime(time){m(time,"integrated")},get duration(){return p("integrated")},get seekableStart(){var s;return h((null==(s=l.primaryDetails)?void 0:s.fragmentStart)||0,"integrated")}},skip:()=>{let e=l.effectivePlayingItem,t=null==e?void 0:e.event;if(t&&!t.restrictions.skip){let n=l.findItemIndex(e);t.appendInPlace?m(e.playout.start+e.event.duration+.001,"playout"):l.advanceAfterAssetEnded(t,n,1/0)}}}}return this.manager}get effectivePlayingItem(){return this.waitingItem||this.playingItem||this.endedItem}get effectivePlayingAsset(){return this.playingAsset||this.endedAsset}get playingLastItem(){var e;let t=this.playingItem,n=null==(e=this.schedule)?void 0:e.items;return!!this.playbackStarted&&!!t&&!!n&&this.findItemIndex(t)===n.length-1}get playbackStarted(){return null!==this.effectivePlayingItem}get currentTime(){var e,t,n;if(null===this.mediaSelection)return;let r=this.waitingItem||this.playingItem;if(this.isInterstitial(r)&&!r.event.appendInPlace)return;let i=this.media;!i&&null!=(e=this.bufferingItem)&&null!=(t=e.event)&&t.appendInPlace&&(i=this.primaryMedia);let a=null==(n=i)?void 0:n.currentTime;if(void 0!==a&&eo(a))return a}get primaryMedia(){var e;return this.media||(null==(e=this.detachedData)?void 0:e.media)||null}isInterstitial(e){return!!(null!=e&&e.event)}retreiveMediaSource(e,t){let n=this.getAssetPlayer(e);n&&this.transferMediaFromPlayer(n,t)}transferMediaFromPlayer(e,t){let n=e.interstitial.appendInPlace,r=e.media;if(n&&r===this.primaryMedia){if(this.bufferingAsset=null,(!t||this.isInterstitial(t)&&!t.event.appendInPlace)&&t&&r){this.detachedData={media:r};return}let n=e.transferMedia();this.log(`transfer MediaSource from ${e} ${tb(n)}`),this.detachedData=n}else t&&r&&(this.shouldPlay||(this.shouldPlay=!r.paused))}transferMediaTo(e,t){var n,r;let i;if(e.media===t)return;let a=null,o=this.hls,s=e!==o,l=s&&e.interstitial.appendInPlace,u=null==(n=this.detachedData)?void 0:n.mediaSource;if(o.media)l&&(a=o.transferMedia(),this.detachedData=a),i="Primary";
53else if(u){let e=this.getBufferingPlayer();e?(a=e.transferMedia(),i=`${e}`):i="detached MediaSource"}else i="detached media";if(!a){if(u)a=this.detachedData,this.log(`using detachedData: MediaSource ${tb(a)}`);else if(!this.detachedData||o.media===t){let e=this.playerQueue;e.length>1&&e.forEach(e=>{if(s&&e.interstitial.appendInPlace!==l){let t=e.interstitial;this.clearInterstitial(e.interstitial,null),t.appendInPlace=!1,t.appendInPlace&&this.warn(`Could not change append strategy for queued assets ${t}`)}}),this.hls.detachMedia(),this.detachedData={media:t}}}let c=a&&"mediaSource"in a&&(null==(r=a.mediaSource)?void 0:r.readyState)!=="closed",d=c&&a?a:t;if(this.log(`${c?"transfering MediaSource":"attaching media"} to ${s?e:"Primary"} from ${i}`),d===a){let t=s&&e.assetId===this.schedule.assetIdAtEnd;d.overrides={duration:this.schedule.duration,endOfStream:!s||t,cueRemoval:!s}}e.attachMedia(d)}onInterstitialCueEnter(){this.onTimeupdate()}checkStart(){let e=this.schedule,t=e.events;if(!t||this.playbackDisabled||!this.media)return;-1===this.bufferedPos&&(this.bufferedPos=0);let n=this.timelinePos,r=this.effectivePlayingItem;if(-1===n){let n=this.hls.startPosition;if(this.timelinePos=n,t.length&&t[0].cue.pre){let n=e.findEventIndex(t[0].identifier);this.setSchedulePosition(n)}else if(n>=0||!this.primaryLive){let t=this.timelinePos=n>0?n:0,r=e.findItemIndexAtTime(t);this.setSchedulePosition(r)}}else if(r&&!this.playingItem){let t=e.findItemIndex(r);this.setSchedulePosition(t)}}advanceAfterAssetEnded(e,t,n){let r=n+1;if(e.isAssetPastPlayoutLimit(r)||e.assetList[r].error){let n=this.schedule.items;if(n){let r=t+1;if(r>=n.length){this.setSchedulePosition(-1);return}let i=e.resumeTime;this.timelinePos<i&&(this.timelinePos=i,this.checkBuffer()),this.setSchedulePosition(r)}}else this.setSchedulePosition(t,r)}setScheduleToAssetAtTime(e,t){let n=this.schedule,r=t.parentIdentifier,i=n.getEvent(r);if(i){let t=n.findEventIndex(r),a=n.findAssetIndex(i,e);this.setSchedulePosition(t,a)}}setSchedulePosition(e,t){let n=this.schedule.items;if(!n||this.playbackDisabled)return;this.log(`setSchedulePosition ${e}, ${t}`);let r=e>=0?n[e]:null,i=this.playingItem,a=this.playingLastItem;if(this.isInterstitial(i)){var o,s;let l=i.event,u=this.playingAsset,c=null==u?void 0:u.identifier,d=c?this.getAssetPlayer(c):null;if(d&&c&&(!this.eventItemsMatch(i,r)||void 0!==t&&c!==(null==(o=l.assetList)?void 0:o[t].identifier))){let t=l.findAssetIndex(u);this.log(`INTERSTITIAL_ASSET_ENDED ${t+1}/${l.assetList.length} ${iJ(u)}`),this.endedAsset=u,this.playingAsset=null,this.hls.trigger(ed.INTERSTITIAL_ASSET_ENDED,{asset:u,assetListIndex:t,event:l,sc
53hedule:n.slice(0),scheduleIndex:e,player:d}),this.retreiveMediaSource(c,r),d.media&&!(null!=(s=this.detachedData)&&s.mediaSource)&&d.detachMedia()}if(!this.eventItemsMatch(i,r)&&(this.endedItem=i,this.playingItem=null,this.log(`INTERSTITIAL_ENDED ${l} ${i2(i)}`),l.hasPlayed=!0,this.hls.trigger(ed.INTERSTITIAL_ENDED,{event:l,schedule:n.slice(0),scheduleIndex:e}),l.cue.once)){this.updateSchedule();let e=this.schedule.items;if(r&&e){let n=this.schedule.findItemIndex(r);this.advanceSchedule(n,e,t,i,a)}return}}this.advanceSchedule(e,n,t,i,a)}advanceSchedule(e,t,n,r,i){let a=e>=0?t[e]:null,o=this.primaryMedia,s=this.playerQueue;if(s.length&&s.forEach(t=>{let n=t.interstitial,r=this.schedule.findEventIndex(n.identifier);(r<e||r>e+1)&&this.clearInterstitial(n,a)}),this.isInterstitial(a)){this.timelinePos=Math.min(Math.max(this.timelinePos,a.start),a.end);let i=a.event;void 0===n&&(n=this.schedule.findAssetIndex(i,this.timelinePos));let s=this.waitingItem;this.assetsBuffered(a,o)||this.setBufferingItem(a);let l=this.preloadAssets(i,n);if(this.eventItemsMatch(a,s||r)||(this.waitingItem=a,this.log(`INTERSTITIAL_STARTED ${i2(a)} ${i.appendInPlace?"append in place":""}`),this.hls.trigger(ed.INTERSTITIAL_STARTED,{event:i,schedule:t.slice(0),scheduleIndex:e})),!i.assetListLoaded){this.log(`Waiting for ASSET-LIST to complete loading ${i}`);return}if(i.assetListLoader&&(i.assetListLoader.destroy(),i.assetListLoader=void 0),!o){this.log(`Waiting for attachMedia to start Interstitial ${i}`);return}this.waitingItem=this.endedItem=null,this.playingItem=a;let u=i.assetList[n];if(!u){let r=t[e+1],a=this.media;r&&a&&!this.isInterstitial(r)&&a.currentTime<r.start&&(a.currentTime=this.timelinePos=r.start),this.advanceAfterAssetEnded(i,e,n||0);return}if(l||(l=this.getAssetPlayer(u.identifier)),null===l||l.destroyed){let e=i.assetList.length;this.warn(`asset ${n+1}/${e} player destroyed ${i}`),l=this.createAssetPlayer(i,u,n)}if(!this.eventItemsMatch(a,this.bufferingItem)&&i.appendInPlace&&this.isAssetBuffered(u))return;this.startAssetPlayer(l,n,t,e,o),this.shouldPlay&&i8(l.media)}else null!==a?(this.resumePrimary(a,e,r),this.shouldPlay&&i8(this.hls.media)):i&&this.isInterstitial(r)&&(this.endedItem=null,this.playingItem=r,r.event.appendInPlace||this.attachPrimary(this.schedule.durations.primary,null))}get playbackDisabled(){return!1===this.hls.config.enableInterstitialPlayback}get primaryDetails(){var e,t;return null==(e=this.mediaSelection)?void 0:null==(t=e.main)?void 0:t.details}get primaryLive(){var e;return!!(null!=(e=this.primaryDetails)&&e.live)}resumePrimary(e,t,n){var r;if(this.playingItem=e,this.playingAsset=this.endedAsset=null,this.waitingItem=this.endedItem=null,this.bufferedToItem(e),this.log(`resuming ${i2(e)}`),!(null!=(r=this.detachedData)&&r.mediaSource)){let n=this.timelinePos;(n<e.start||n>=e.end)&&(n=this.getPrimaryResumption(e,t),this.timelinePos=n),this.attachPrimary(n,e)}if(!n)return;let i=this.schedule.items;i&&(this.log(`resumed ${i2(e)}`),this.hls.trigger(ed.INTERSTITIALS_PRIMARY_RESUMED,{schedule:i.slice(0),scheduleIndex:t}),this.checkBuffer())}getPrimaryResumption(e,t){let n=e.start;if(this.primaryLive){let e=this.primaryDetails;if(0===t)return this.hls.startPosition;if(e&&(n<e.fragmentStart||n>e.edge))return this.hls.liveSyncPosition||-1}return n}isAssetBuffered(e){let t=this.getAssetPlayer(e.identifier);return null!=t&&t.hls?t.hls.bufferedToEnd:t8.bufferInfo(this.primaryMedia,this.timelinePos,0).end+1>=e.timelineStart+(e.duration||0)}attachPrimary(e,t,n){t?this.setBufferingItem(t):this.bufferingItem=this.playingItem,this.bufferingAsset=null;let r=this.primaryMedia;if(!r)return;let i=this.hls;i.media?this.checkBuffer():(this.transferMediaTo(i,r),n&&this.startLoadingPrimaryAt(e,n)),n||(this.timelinePos=e,this.startLoadingPrimaryAt(e,n))}startLoadingPrimaryAt(e,t){var n;let r=this.hls;!r.loadingEnabled||!r.media||Math.abs(((null==(n=r.mainForwardBufferInfo)?void 0:n.start)||r.media.currentTime)-e)>.5?r.startLoad(e,t):r.bufferingEnabled||r.resumeBuffering()}onManifestLoading(){this.stopLoad(),this.schedule.reset(),this.emptyPlayerQueue(),this.clearScheduleState(),this.shouldPlay=!1,this.bufferedPos=this.timelinePos=-1,this.mediaSelection=this.altSelection=this.manager=this.requiredTracks=null,this.hls.off(ed.BUFFER_CODECS,this.onBufferCodecs,this),this.hls.on(ed.BUFFER_CODECS,this.onBufferCodecs,this)}onLevelUpdated(e,t){if(-1===t.level)return;let n=this.hls.levels[t.level],r=ey(ey({},this.mediaSelection||this.altSelection),{},{main:n});this.mediaSelection=r,this.schedule.parseInterstitialDateRanges(r,this.hls.config.interstitialAppendInPlace),!this.effectivePlayingItem&&this.schedule.items&&this.checkStart()}onAudioTrackUpdated(e,t){let n=this.hls.audioTracks[t.id],r=this.mediaSelection;if(!r){this.altSelection=ey(ey({},this.altSelection),{},{audio:n});return}let i=ey(ey({},r),{},{audio:n});this.mediaSelection=i}onSubtitleTrackUpdated(e,t){let n=this.hls.subtitleTracks[t.id],r=this.mediaSelection;if(!r){this.altSelection=ey(ey({},this.altSelection),{},{subtitles:n});return}let i=ey(ey({},r),{},{subtitles:n});this.mediaSelection=i}onAudioTrackSwitching(e,t){let n=tw(t);
53this.playerQueue.forEach(e=>e.hls.setAudioOption(t)||e.hls.setAudioOption(n))}onSubtitleTrackSwitch(e,t){let n=tw(t);this.playerQueue.forEach(e=>e.hls.setSubtitleOption(t)||-1!==t.id&&e.hls.setSubtitleOption(n))}onBufferCodecs(e,t){let n=t.tracks;n&&(this.requiredTracks=n)}onBufferAppended(e,t){this.checkBuffer()}onBufferFlushed(e,t){let n=this.playingItem;if(n&&!this.itemsMatch(n,this.bufferingItem)&&!this.isInterstitial(n)){let e=this.timelinePos;this.bufferedPos=e,this.checkBuffer()}}onBufferedToEnd(e){let t=this.schedule.events;if(this.bufferedPos<Number.MAX_VALUE&&t){for(let e=0;e<t.length;e++){let r=t[e];if(r.cue.post){var n;let e=this.schedule.findEventIndex(r.identifier),t=null==(n=this.schedule.items)?void 0:n[e];this.isInterstitial(t)&&this.eventItemsMatch(t,this.bufferingItem)&&this.bufferedToItem(t,0);break}}this.bufferedPos=Number.MAX_VALUE}}onMediaEnded(e){let t=this.playingItem;if(!this.playingLastItem&&t){let e=this.findItemIndex(t);this.setSchedulePosition(e+1)}else this.shouldPlay=!1}updateItem(e,t){let n=this.schedule.items;return e&&n&&n[this.findItemIndex(e,t)]||null}itemsMatch(e,t){return!!t&&(e===t||e.event&&t.event&&this.eventItemsMatch(e,t)||!e.event&&!t.event&&this.findItemIndex(e)===this.findItemIndex(t))}eventItemsMatch(e,t){var n;return!!t&&(e===t||e.event.identifier===(null==(n=t.event)?void 0:n.identifier))}findItemIndex(e,t){return e?this.schedule.findItemIndex(e,t):-1}updateSchedule(){let e=this.mediaSelection;e&&this.schedule.updateSchedule(e,[])}checkBuffer(e){let t=this.schedule.items;if(!t)return;let n=t8.bufferInfo(this.primaryMedia,this.timelinePos,0);e&&(this.bufferedPos=this.timelinePos),e||(e=n.len<1),this.updateBufferedPos(n.end,t,e)}updateBufferedPos(e,t,n){let r=this.schedule,i=this.bufferingItem;if(this.bufferedPos>e)return;if(1===t.length&&this.itemsMatch(t[0],i)){this.bufferedPos=e;return}let a=this.playingItem,o=this.findItemIndex(a),s=r.findItemIndexAtTime(e);if(this.bufferedPos<e){var l,u;let n=this.findItemIndex(i),r=Math.min(n+1,t.length-1),a=t[r];if((-1===s&&i&&e>=i.end||null!=(l=a.event)&&l.appendInPlace&&e+.01>=a.start)&&(s=r),r-o>1&&(null==i?void 0:null==(u=i.event)?void 0:u.appendInPlace)===!1)return;if(this.bufferedPos=e,s>n&&s>o)this.bufferedToItem(a);else{let t=this.primaryDetails;this.primaryLive&&t&&e>t.edge-t.targetduration&&a.start<t.edge+this.hls.config.interstitialLiveLookAhead&&this.isInterstitial(a)&&this.preloadAssets(a.event,0)}}else n&&a&&!this.itemsMatch(a,i)&&(s===o?this.bufferedToItem(a):s===o+1&&this.bufferedToItem(t[s]))}assetsBuffered(e,t){return 0!==e.event.assetList.length&&!e.event.assetList.some(e=>{let n=this.getAssetPlayer(e.identifier);return!(null!=n&&n.bufferedInPlaceToEnd(t))})}setBufferingItem(e){let t=this.bufferingItem,n=this.schedule;if(this.itemsMatch(e,t))this.bufferingItem!==e&&(this.bufferingItem=e);else{let{items:r,events:i}=n;if(!r||!i)return t;let a=this.isInterstitial(e),o=this.getBufferingPlayer();if(this.bufferingItem=e,this.bufferedPos=Math.max(e.start,Math.min(e.end,this.timelinePos)),!this.playbackDisabled){let n=o?o.remaining:t?t.end-this.timelinePos:0;this.log(`buffered to boundary ${i2(e)}`+(t?` (${n.toFixed(2)} remaining)`:"")),a?e.event.assetList.forEach(e=>{let t=this.getAssetPlayer(e.identifier);t&&t.resumeBuffering()}):(this.hls.resumeBuffering(),this.playerQueue.forEach(e=>e.pauseBuffering()))}this.hls.trigger(ed.INTERSTITIALS_BUFFERED_TO_BOUNDARY,{events:i.slice(0),schedule:r.slice(0),bufferingIndex:this.findItemIndex(e),playingIndex:this.findItemIndex(this.playingItem)})}return t}bufferedToItem(e,t=0){let n=this.setBufferingItem(e);if(!this.playbackDisabled){if(this.isInterstitial(e))this.bufferedToEvent(e,t);else if(null!==n){this.bufferingAsset=null;let t=this.detachedData;t&&t.mediaSource?this.attachPrimary(e.start,e,!0):this.preloadPrimary(e)}}}preloadPrimary(e){let t=this.findItemIndex(e),n=this.getPrimaryResumption(e,t);this.startLoadingPrimaryAt(n)}bufferedToEvent(e,t){let n=e.event,r=0===n.assetList.length&&!n.assetListLoader,i=n.cue.once;if(r||!i){let e=this.preloadAssets(n,t);if(null!=e&&e.interstitial.appendInPlace){let r=n.assetList[t],i=this.primaryMedia;r&&i&&this.bufferAssetPlayer(e,i)}}}preloadAssets(e,t){let n=e.assetUrl,r=e.assetList.length,i=0===r&&!e.assetListLoader,a=e.cue.once;if(i){let i;let a=e.timelineStart;if(e.appendInPlace){var o;let t=this.playingItem;this.isInterstitial(t)||(null==t?void 0:null==(o=t.nextEvent)?void 0:o.identifier)!==e.identifier||this.flushFrontBuffer(a+.25)}let s=0;if(!this.playingItem&&this.primaryLive&&-1===(s=this.hls.startPosition)&&(s=this.hls.liveSyncPosition||0),s&&!(e.cue.pre||e.cue.post)){let e=s-a;e>0&&(i=Math.round(1e3*e)/1e3)}if(this.log(`Load interstitial asset ${t+1}/${n?1:r} ${e}${i?` live-start: ${s} start-offset: ${i}`:""}`),n)return this.createAsset(e,0,0,a,e.duration,n);let l=this.assetListLoader.loadAssetList(e,i);l&&(e.assetListLoader=l)}else if(!a&&r){for(let n=t;n<r;n++){let t=e.assetList[n],r=this.getAssetPlayerQueueIndex(t.identifier);(-1===r||this.playerQueue[r].destroyed)&&!t.error&&this.createAssetPlayer(e,t,n)}return this.getAssetPlayer(e.assetList[t].identifier)}return null}flushFrontBuffer(e){let t=this.requiredTracks;t&&(this.log(`Removing front buffer starting at ${e}`),Object.keys(t).forEach(t=>{this.hls.trigger(ed.BUFFER_FLUSHING,{startOffset:e,endOffset:1/0,type:t})}))}getAssetPlayerQueueIndex(e){let t=this.playerQueue;for(let n=0;n<t.length;n++)if(e===t[n].assetId)return n;return -1}getAssetPlayer(e){let t=this.getAssetPlayerQueueIndex(e);return this.playerQueue[t]||null}
53getBufferingPlayer(){let{playerQueue:e,primaryMedia:t}=this;if(t){for(let n=0;n<e.length;n++)if(e[n].media===t)return e[n]}return null}createAsset(e,t,n,r,i,a){let o={parentIdentifier:e.identifier,identifier:`${e.identifier}-${t+1}-${i$(a)}`,duration:i,startOffset:n,timelineStart:r,uri:a};return this.createAssetPlayer(e,o,t)}createAssetPlayer(e,t,n){this.log(`create HLSAssetPlayer for ${iJ(t)}`);let r=this.hls,i=r.userConfig,a=i.videoPreference,o=r.loadLevelObj||r.levels[r.currentLevel];(a||o)&&(a=eg({},a),o.videoCodec&&(a.videoCodec=o.videoCodec),o.videoRange&&(a.allowedVideoRanges=[o.videoRange]));let s=r.audioTracks[r.audioTrack],l=r.subtitleTracks[r.subtitleTrack],u=0;if(this.primaryLive||e.appendInPlace){let e=this.timelinePos-t.timelineStart;if(e>1){let n=t.duration;n&&e<n&&(u=e)}}let c=t.identifier,d=ey(ey({},i),{},{autoStartLoad:!0,startFragPrefetch:!0,primarySessionId:r.sessionId,assetPlayerId:c,abrEwmaDefaultEstimate:r.bandwidthEstimate,interstitialsController:void 0,startPosition:u,liveDurationInfinity:!1,testBandwidth:!1,videoPreference:a,audioPreference:s||i.audioPreference,subtitlePreference:l||i.subtitlePreference});e.appendInPlace&&(e.appendInPlaceStarted=!0,t.timelineStart&&(d.timelineOffset=t.timelineStart));let h=d.cmcd;null!=h&&h.sessionId&&h.contentId&&(d.cmcd=eg({},h,{contentId:i$(t.uri)})),this.getAssetPlayer(c)&&this.warn(`Duplicate date range identifier ${e} and asset ${c}`);let f=new i0(this.HlsPlayerClass,d,e,t);this.playerQueue.push(f),e.assetList[n]=t;let p=r=>{if(r.live){let t=Error(`Interstitials MUST be VOD assets ${e}`),r={fatal:!0,type:eu.OTHER_ERROR,details:ec.INTERSTITIAL_ASSET_ITEM_ERROR,error:t};this.handleAssetItemError(r,e,this.schedule.findEventIndex(e.identifier),n,t.message);return}let i=r.edge-r.fragmentStart,a=t.duration;(null===a||i>a)&&(this.log(`Interstitial asset "${c}" duration change ${a} > ${i}`),t.duration=i,this.updateSchedule())};f.on(ed.LEVEL_UPDATED,(e,{details:t})=>p(t)),f.on(ed.LEVEL_PTS_UPDATED,(e,{details:t})=>p(t));let m=(e,t)=>{let n=this.getAssetPlayer(c);if(n&&t.tracks){n.off(ed.BUFFER_CODECS,m),n.tracks=t.tracks;let e=this.primaryMedia;this.bufferingAsset===n.assetItem&&e&&!n.media&&this.bufferAssetPlayer(n,e)}};f.on(ed.BUFFER_CODECS,m);let g=()=>{var n,r;let i=this.getAssetPlayer(c);if(this.log(`buffered to end of asset ${i}`),!i)return;let a=this.schedule.findEventIndex(e.identifier),o=e.findAssetIndex(t),s=o+1,l=null==(n=this.schedule.items)?void 0:n[a];if(this.isInterstitial(l)){if(-1===o||e.isAssetPastPlayoutLimit(s)||e.assetList[s].error){let e=null==(r=this.schedule.items)?void 0:r[a+1];e&&this.bufferedToItem(e)}else this.bufferedToItem(l,s)}};f.on(ed.BUFFERED_TO_END,g);let v=t=>()=>{if(!this.getAssetPlayer(c))return;this.shouldPlay=!0;let n=this.schedule.findEventIndex(e.identifier);this.advanceAfterAssetEnded(e,n,t)};return f.once(ed.MEDIA_ENDED,v(n)),f.once(ed.PLAYOUT_LIMIT_REACHED,v(1/0)),f.on(ed.ERROR,(t,r)=>{let i=this.getAssetPlayer(c);if(r.details===ec.BUFFER_STALLED_ERROR){if(null!=i&&i.media){let t=i.currentTime,n=i.duration-t;t&&e.appendInPlace&&n/i.media.playbackRate<.5?(this.log(`Advancing buffer past end of asset ${c} ${e} at ${i.media.currentTime}`),g()):(this.warn(`Stalled at ${t} of ${t+n} in asset ${c} ${e}`),this.onTimeupdate(),this.checkBuffer(!0))}return}this.handleAssetItemError(r,e,this.schedule.findEventIndex(e.identifier),n,`Asset player error ${r.error} ${e}`)}),f.on(ed.DESTROYING,()=>{if(!this.getAssetPlayer(c))return;let t=Error(`Asset player destroyed unexpectedly ${c}`),r={fatal:!0,type:eu.OTHER_ERROR,details:ec.INTERSTITIAL_ASSET_ITEM_ERROR,error:t};this.handleAssetItemError(r,e,this.schedule.findEventIndex(e.identifier),n,t.message)}),this.hls.trigger(ed.INTERSTITIAL_ASSET_PLAYER_CREATED,{asset:t,assetListIndex:n,event:e,player:f}),f}clearInterstitial(e,t){e.assetList.forEach(e=>{this.clearAssetPlayer(e.identifier,t)}),e.reset()}clearAssetPlayer(e,t){let n=this.getAssetPlayerQueueIndex(e);if(-1!==n){this.log(`clearAssetPlayer "${e}" toSegment: ${t?i2(t):t}`);let r=this.playerQueue[n];this.transferMediaFromPlayer(r,t),this.playerQueue.splice(n,1),r.destroy()}}emptyPlayerQueue(){let e;for(;e=this.playerQueue.pop();)e.destroy();this.playerQueue=[]}
53startAssetPlayer(e,t,n,r,i){let{interstitial:a,assetItem:o,assetId:s}=e,l=a.assetList.length,u=this.playingAsset;this.endedAsset=null,this.playingAsset=o,u&&u.identifier===s||(u&&(this.clearAssetPlayer(u.identifier,n[r]),delete u.error),this.log(`INTERSTITIAL_ASSET_STARTED ${t+1}/${l} ${e}`),this.hls.trigger(ed.INTERSTITIAL_ASSET_STARTED,{asset:o,assetListIndex:t,event:a,schedule:n.slice(0),scheduleIndex:r,player:e})),this.bufferAssetPlayer(e,i)}bufferAssetPlayer(e,t){var n,r;let{interstitial:i,assetItem:a,assetId:o}=e,s=this.schedule.findEventIndex(i.identifier),l=null==(n=this.schedule.items)?void 0:n[s];if(!l)return;this.setBufferingItem(l),this.bufferingAsset=a;let u=this.getBufferingPlayer();if(u===e)return;let c=i.appendInPlace;if(c&&(null==u?void 0:u.interstitial.appendInPlace)===!1)return;let d=(null==u?void 0:u.tracks)||(null==(r=this.detachedData)?void 0:r.tracks)||this.requiredTracks;if(c&&a!==this.playingAsset){if(!e.tracks)return;if(d&&!e_(d,e.tracks)){let t=Error(`Asset "${o}" SourceBuffer tracks ('${Object.keys(e.tracks)}') are not compatible with primary content tracks ('${Object.keys(d)}')`),n={fatal:!0,type:eu.OTHER_ERROR,details:ec.INTERSTITIAL_ASSET_ITEM_ERROR,error:t},r=i.findAssetIndex(a);this.handleAssetItemError(n,i,s,r,t.message);return}}this.transferMediaTo(e,t)}handleAssetItemError(e,t,n,r,i){if(e.details===ec.BUFFER_STALLED_ERROR)return;let a=t.assetList[r]||null,o=null;if(a){let e=this.getAssetPlayerQueueIndex(a.identifier);o=this.playerQueue[e]||null}let s=this.schedule.items,l=eg({},e,{fatal:!1,errorAction:tV(!0),asset:a,assetListIndex:r,event:t,schedule:s,scheduleIndex:n,player:o});if(this.warn(`Asset item error: ${e.error}`),this.hls.trigger(ed.INTERSTITIAL_ASSET_ERROR,l),!e.fatal)return;let u=Error(i);a&&(this.playingAsset!==a&&this.clearAssetPlayer(a.identifier,null),a.error=u),t.assetList.some(e=>!e.error)?t.appendInPlace&&(t.error=u):t.error=u,this.primaryFallback(t)}primaryFallback(e){let t=e.timelineStart,n=this.effectivePlayingItem;if(this.updateSchedule(),n){this.log(`Fallback to primary from event "${e.identifier}" start: ${t} pos: ${this.timelinePos} playing: ${n?i2(n):"<none>"} error: ${e.error}`),e.appendInPlace&&(this.attachPrimary(t,null),this.flushFrontBuffer(t));let r=this.timelinePos;-1===r&&(r=this.hls.startPosition);let i=this.updateItem(n,r);if(this.itemsMatch(n,i))this.clearInterstitial(e,null);else{let e=this.schedule.findItemIndexAtTime(r);this.setSchedulePosition(e)}}else this.checkStart()}onAssetListLoaded(e,t){var n,r;let i=t.event,a=i.identifier,o=t.assetListResponse.ASSETS;if(!this.schedule.hasEvent(a))return;let s=i.timelineStart,l=i.duration,u=0;o.forEach((e,t)=>{let n=parseFloat(e.DURATION);this.createAsset(i,t,u,s+u,n,e.URI),u+=n}),i.duration=u,this.log(`Loaded asset-list with duration: ${u} (was: ${l}) ${i}`);let c=this.waitingItem,d=(null==c?void 0:c.event.identifier)===a;this.updateSchedule();let h=null==(n=this.bufferingItem)?void 0:n.event;if(d){let e=this.schedule.findEventIndex(a),t=null==(r=this.schedule.items)?void 0:r[e];if(t){if(!this.playingItem&&this.timelinePos>t.end&&this.schedule.findItemIndexAtTime(this.timelinePos)!==e){i.error=Error(`Interstitial no longer within playback range ${this.timelinePos} ${i}`),this.primaryFallback(i);return}this.setBufferingItem(t)}this.setSchedulePosition(e)}else if((null==h?void 0:h.identifier)===a&&h.appendInPlace){let e=i.assetList[0],t=this.getAssetPlayer(e.identifier),n=this.primaryMedia;e&&t&&n&&this.bufferAssetPlayer(t,n)}}onError(e,t){switch(t.details){case ec.ASSET_LIST_PARSING_ERROR:case ec.ASSET_LIST_LOAD_ERROR:case ec.ASSET_LIST_LOAD_TIMEOUT:{let e=t.interstitial;e&&this.primaryFallback(e);break}case ec.BUFFER_STALLED_ERROR:this.onTimeupdate(),this.checkBuffer(!0)}}}class i9 extends n0{constructor(e,t,n){super(e,t,n,"subtitle-stream-controller",ef.SUBTITLE),this.currentTrackId=-1,this.tracksBuffered=[],this.mainDetails=null,this.registerListeners()}onHandlerDestroying(){this.unregisterListeners(),super.onHandlerDestroying(),this.mainDetails=null}registerListeners(){super.registerListeners();let{hls:e}=this;e.on(ed.LEVEL_LOADED,this.onLevelLoaded,this),e.on(ed.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUp
53dated,this),e.on(ed.SUBTITLE_TRACK_SWITCH,this.onSubtitleTrackSwitch,this),e.on(ed.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),e.on(ed.SUBTITLE_FRAG_PROCESSED,this.onSubtitleFragProcessed,this),e.on(ed.BUFFER_FLUSHING,this.onBufferFlushing,this)}unregisterListeners(){super.unregisterListeners();let{hls:e}=this;e.off(ed.LEVEL_LOADED,this.onLevelLoaded,this),e.off(ed.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),e.off(ed.SUBTITLE_TRACK_SWITCH,this.onSubtitleTrackSwitch,this),e.off(ed.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),e.off(ed.SUBTITLE_FRAG_PROCESSED,this.onSubtitleFragProcessed,this),e.off(ed.BUFFER_FLUSHING,this.onBufferFlushing,this)}startLoad(e,t){this.stopLoad(),this.state=nJ.IDLE,this.setInterval(500),this.nextLoadPosition=this.lastCurrentTime=e+this.timelineOffset,this.startPosition=t?-1:e,this.tick()}onManifestLoading(){super.onManifestLoading(),this.mainDetails=null}onMediaDetaching(e,t){this.tracksBuffered=[],super.onMediaDetaching(e,t)}onLevelLoaded(e,t){this.mainDetails=t.details}onSubtitleFragProcessed(e,t){let n;let{frag:r,success:i}=t;if(eD(r)&&(this.fragPrevious=r),this.state=nJ.IDLE,!i)return;let a=this.tracksBuffered[this.currentTrackId];if(!a)return;let o=r.start;for(let e=0;e<a.length;e++)if(o>=a[e].start&&o<=a[e].end){n=a[e];break}let s=r.start+r.duration;n?n.end=s:(n={start:o,end:s},a.push(n)),this.fragmentTracker.fragBuffered(r),this.fragBufferedComplete(r,null),this.media&&this.tick()}onBufferFlushing(e,t){let{startOffset:n,endOffset:r}=t;if(0===n&&r!==Number.POSITIVE_INFINITY){let e=r-1;if(e<=0)return;t.endOffsetSubtitles=Math.max(0,e),this.tracksBuffered.forEach(t=>{for(let n=0;n<t.length;){if(t[n].end<=e){t.shift();continue}if(t[n].start<e)t[n].start=e;else break;n++}}),this.fragmentTracker.removeFragmentsInRange(n,e,ef.SUBTITLE)}}onError(e,t){let n=t.frag;(null==n?void 0:n.type)===ef.SUBTITLE&&(t.details===ec.FRAG_GAP&&this.fragmentTracker.fragBuffered(n,!0),this.fragCurrent&&this.fragCurrent.abortRequests(),this.state!==nJ.STOPPED&&(this.state=nJ.IDLE))}onSubtitleTracksUpdated(e,{subtitleTracks:t}){if(this.levels&&ir(this.levels,t)){this.levels=t.map(e=>new tg(e));return}this.tracksBuffered=[],this.levels=t.map(e=>{let t=new tg(e);return this.tracksBuffered[t.id]=[],t}),this.fragmentTracker.removeFragmentsInRange(0,Number.POSITIVE_INFINITY,ef.SUBTITLE),this.fragPrevious=null,this.mediaBuffer=null}onSubtitleTrackSwitch(e,t){var n;if(this.currentTrackId=t.id,!(null!=(n=this.levels)&&n.length)||-1===this.currentTrackId){this.clearInterval();return}let r=this.levels[this.currentTrackId];null!=r&&r.details?this.mediaBuffer=this.mediaBufferTimeRanges:this.mediaBuffer=null,r&&this.state!==nJ.STOPPED&&this.setInterval(500)}onSubtitleTrackLoaded(e,t){var n,r;let{currentTrackId:i,levels:a}=this,{details:o,id:s}=t;if(!a){this.warn(`Subtitle tracks were reset while loading level ${s}`);return}let l=a[s];if(!(s>=a.length)&&l){this.log(`Subtitle track ${s} loaded [${o.startSN},${o.endSN}]${o.lastPartSn?`[part-${o.lastPartSn}-${o.lastPartIndex}]`:""},duration:${o.totalduration}`),this.mediaBuffer=this.mediaBufferTimeRanges;if(o.live||null!=(n=l.details)&&n.live){let e=this.mainDetails;if(o.deltaUpdateFailed||!e)return;let t=e.fragments[0];l.details?0===this.alignPlaylists(o,l.details,null==(r=this.levelLastLoaded)?void 0:r.details)&&t&&nV(o,t.start):o.hasProgramDateTime&&e.hasProgramDateTime?(nY(o,e),o.fragmentStart):t&&nV(o,t.start)}l.details=o,this.levelLastLoaded=l,s===i&&(this.hls.trigger(ed.SUBTITLE_TRACK_UPDATED,{details:o,id:s,groupId:t.groupId}),this.tick(),o.live&&!this.fragCurrent&&this.media&&this.state===nJ.IDLE&&!tL(null,o.fragments,this.media.currentTime,0)&&(this.warn("Subtitle playlist not aligned with playback"),l.details=void 0))}}_handleFragmentLoadComplete(e){let{frag:t,payload:n}=e,r=t.decryptdata,i=this.hls;if(!this.fragContextChanged(t)&&n&&n.byteLength>0&&null!=r&&r.key&&r.iv&&na(r.method)){let e=performance.now();this.decrypter.decrypt(new Uint8Array(n),r.key.buffer,r.iv.buffer,no(r.method)).catch(e=>{throw i.trigger(ed.ERROR,{type:eu.MEDIA_ERROR,details:ec.FRAG_DECRYPT_ERROR,fatal:!1,error:e,reason:e.message,frag:t}),e}).then(n=>{let r=performance.now();i.trigger(ed.FRAG_DECRYPTED,{frag:t,payload:n,stats:{tstart:e,tdecrypt:r}})}).catch(e=>{this.warn(`${e.name}: ${e.message}`),this.state=nJ.IDLE})}}doTick(){if(!this.media){this.state=nJ.IDLE;return}if(this.state===nJ.IDLE){let{currentTrackId:e,levels:t}=this,n=null==t?void 0:t[e];if(!n||!t.length||!n.details||this.waitForLive(n))return;let{config:r}=this,i=this.getLoadPosition(),{end:a,len:o}=t8.bufferedInfo(this.tracksBuffered[this.currentTrackId]||[],i,r.maxBufferHole),s=n.details;if(o>this.hls.maxBufferLength+s.levelTargetDuration)return;let l=s.fragments,u=l.length,c=s.edge,d=null,h=this.fragPrevious;if(a<c){let e=r.maxFragLookUpTolerance;(d=tL(h,l,Math.max(l[0].start,a),a>c-e?0:e))||!h||!(h.start<l[0].start)||(d=l[0])}else d=l[u-1];if(!(d=this.filterReplacedPrimary(d,n.details)))return;let f=l[d.sn-s.startSN-1];if(f&&f.cc===d.cc&&this.fragmentTracker.getState(f)===tz.NOT_LOADED&&(d=f),this.fragmentTracker.getState(d)===tz.NOT_LOADED){let e=this.mapToInitFragWhenRequired(d);e&&this.loadFragment(e,n,a)}}}loadFragment(e,t,n){eD(e)?super.loadFragment(e,t,n):this._loadInitSegment(e,t)}get mediaBufferTimeRanges(){return new i7(this.tracksBuffered[this.currentTrackId]||[])}}class i7{constructor(e){this.buffered=void 0;let t=(t,n,r)=>{if((n>>>=0)>r-1)throw new DOMException(`Failed to execute '${t}' on 'TimeRanges': The index provided (${n}) is greater than the maximum bound (${r})`);return e[n][t]};this.buffered={get length(){return e.length},end:n=>t("end",n,e.length),start:n=>t("start",n,e.length)}}}let ae={42:225,92:233,94:237,95:243,96:250,123:231,124:247,125:209,126:241,127:9608,128:174,129:176,130:189,131:191,132:8482,133:162,134:163,135:9834,136:224,137:32,138:232,139:226,140:234,141:238,142:244,143:251,144:193,145:201,146:211,147:218,148:220,149:252,150:8216,151:161,152:42,153:8217,154:9473,155:169,156:8480,157:8226,158:8220,159:8221,160:192,161:194,162:199,163:200,164:202,165:203,166:235,167:206,168:207,169:239,170:212,171:217,172:249,173:219,174:171,175:187,176:195,177:227,178:205,179:204,180:236,181:210,182:242,183:213,184:245,
53185:123,186:125,187:92,188:94,189:95,190:124,191:8764,192:196,193:228,194:214,195:246,196:223,197:165,198:164,199:9475,200:197,201:229,202:216,203:248,204:9487,205:9491,206:9495,207:9499},at=e=>String.fromCharCode(ae[e]||e),an={17:1,18:3,21:5,22:7,23:9,16:11,19:12,20:14},ar={17:2,18:4,21:6,22:8,23:10,19:13,20:15},ai={25:1,26:3,29:5,30:7,31:9,24:11,27:12,28:14},aa={25:2,26:4,29:6,30:8,31:10,27:13,28:15},ao=["white","green","blue","cyan","red","yellow","magenta","black","transparent"];class as{constructor(){this.time=null,this.verboseLevel=0}log(e,t){if(this.verboseLevel>=e){let n="function"==typeof t?t():t;eT.log(`${this.time} [${e}] ${n}`)}}}let al=function(e){let t=[];for(let n=0;n<e.length;n++)t.push(e[n].toString(16));return t};class au{constructor(){this.foreground="white",this.underline=!1,this.italics=!1,this.background="black",this.flash=!1}reset(){this.foreground="white",this.underline=!1,this.italics=!1,this.background="black",this.flash=!1}setStyles(e){let t=["foreground","underline","italics","background","flash"];for(let n=0;n<t.length;n++){let r=t[n];e.hasOwnProperty(r)&&(this[r]=e[r])}}isDefault(){return"white"===this.foreground&&!this.underline&&!this.italics&&"black"===this.background&&!this.flash}equals(e){return this.foreground===e.foreground&&this.underline===e.underline&&this.italics===e.italics&&this.background===e.background&&this.flash===e.flash}copy(e){this.foreground=e.foreground,this.underline=e.underline,this.italics=e.italics,this.background=e.background,this.flash=e.flash}toString(){return"color="+this.foreground+", underline="+this.underline+", italics="+this.italics+", background="+this.background+", flash="+this.flash}}class ac{constructor(){this.uchar=" ",this.penState=new au}reset(){this.uchar=" ",this.penState.reset()}setChar(e,t){this.uchar=e,this.penState.copy(t)}setPenState(e){this.penState.copy(e)}equals(e){return this.uchar===e.uchar&&this.penState.equals(e.penState)}copy(e){this.uchar=e.uchar,this.penState.copy(e.penState)}isEmpty(){return" "===this.uchar&&this.penState.isDefault()}}class ad{constructor(e){this.chars=[],this.pos=0,this.currPenState=new au,this.cueStartTime=null,this.logger=void 0;for(let e=0;e<100;e++)this.chars.push(new ac);this.logger=e}equals(e){for(let t=0;t<100;t++)if(!this.chars[t].equals(e.chars[t]))return!1;return!0}copy(e){for(let t=0;t<100;t++)this.chars[t].copy(e.chars[t])}isEmpty(){let e=!0;for(let t=0;t<100;t++)if(!this.chars[t].isEmpty()){e=!1;break}return e}setCursor(e){this.pos!==e&&(this.pos=e),this.pos<0?(this.logger.log(3,"Negative cursor position "+this.pos),this.pos=0):this.pos>100&&(this.logger.log(3,"Too large cursor position "+this.pos),this.pos=100)}moveCursor(e){let t=this.pos+e;if(e>1)for(let e=this.pos+1;e<t+1;e++)this.chars[e].setPenState(this.currPenState);this.setCursor(t)}backSpace(){this.moveCursor(-1),this.chars[this.pos].setChar(" ",this.currPenState)}insertChar(e){e>=144&&this.backSpace();let t=at(e);if(this.pos>=100){this.logger.log(0,()=>"Cannot insert "+e.toString(16)+" ("+t+") at position "+this.pos+". Skipping it!");return}this.chars[this.pos].setChar(t,this.currPenState),this.moveCursor(1)}clearFromPos(e){let t;for(t=e;t<100;t++)this.chars[t].reset()}clear(){this.clearFromPos(0),this.pos=0,this.currPenState.reset()}clearToEndOfRow(){this.clearFromPos(this.pos)}getTextString(){let e=[],t=!0;for(let n=0;n<100;n++){let r=this.chars[n].uchar;" "!==r&&(t=!1),e.push(r)}return t?"":e.join("")}setPenStyles(e){this.currPenState.setStyles(e),this.chars[this.pos].setPenState(this.currPenState)}}class ah{constructor(e){this.rows=[],this.currRow=14,this.nrRollUpRows=null,this.lastOutputScreen=null,this.logger=void 0;for(let t=0;t<15;t++)this.rows.push(new ad(e));this.logger=e}reset(){for(let e=0;e<15;e++)this.rows[e].clear();this.currRow=14}equals(e){let t=!0;for(let n=0;n<15;n++)if(!this.rows[n].equals(e.rows[n])){t=!1;break}return t}copy(e){for(let t=0;t<15;t++)this.rows[t].copy(e.rows[t])}isEmpty(){let e=!0;for(let t=0;t<15;t++)if(!this.rows[t].isEmpty()){e=!1;break}return e}backSpace(){this.rows[this.currRow].backSpace()}clearToEndOfRow(){this.rows[this.currRow].clearToEndOfRow()}insertChar(e){this.rows[this.currRow].insertChar(e)}setPen(e){this.rows[this.currRow].setPenStyles(e)}moveCursor(e){this.rows[this.currRow].moveCursor(e)}setCursor(e){this.logger.log(2,"setCursor: "+e),this.rows[this.currRow].setCursor(e)}setPAC(e){this.logger.log(2,()=>"pacData = "+tb(e));let t=e.row-1;if(this.nrRollUpRows&&t<this.nrRollUpRows-1&&(t=this.nrRollUpRows-1),this.nrRollUpRows&&this.currRow!==t){for(let e=0;e<15;e++)this.rows[e].clear();let e=this.currRow+1-this.nrRollUpRows,n=this.lastOutputScreen;if(n){let r=n.rows[e].cueStartTime,i=this.logger.time;if(null!==r&&null!==i&&r<i)for(let r=0;r<this.nrRollUpRows;r++)this.rows[t-this.nrRollUpRows+r+1].copy(n.rows[e+r])}}this.currRow=t;let n=this.rows[this.currRow];if(null!==e.indent){let t=Math.max(e.indent-1,0);n.setCursor(e.indent),e.color=n.chars[t].penState.foreground}let r={foreground:e.color,underline:e.underline,italics:e.italics,background:"black",flash:!1};this.setPen(r)}setBkgData(e){this.logger.log(2,()=>"bkgData = "+tb(e)),this.backSpace(),this.setPen(e),this.insertChar(32)}setRollUpRows(e){this.nrRollUpRows=e}rollUp(){if(null===this.nrRollUpRows){this.logger.log(3,"roll_up but nrRollUpRows not set yet");return}this.logger.log(1,()=>this.getDisplayText());let e=this.currRow+1-this.nrRollUpRows,t=this.rows.splice(e,1)[0];t.clear(),this.rows.splice(this.currRow,0,t),this.logger.log(2,"Rolling up")}getDisplayText(e){e=e||!1;let t=[],n="",r=-1;for(let n=0;n<15;n++){let i=this.rows[n].getTextString();i&&(r=n+1,e?t.push("Row "+r+": '"+i+"'"):t.push(i.trim()))}return t.length>0&&(n=e?"["+t.join(" | ")+"]":t.join("\n")),n}getTextAndFormat(){return this.rows}}class af{constructor(e,t,n){this.chNr=void 0,this.outputFilter=void 0,this.mode=void 0,this.verbose=void 0,this.displayedMemory=void 0,this.nonDisplayedMemory=void 0,this.lastOutputScreen=void 0,this.currRollUpRow=void 0,this.writeScreen=void 0,this.cueStartTime=void 0,this.logger=void 0,this.chNr=e,this.outputFilter=t,this.mode=null,this.verbose=0,this.displayedMemory=new ah(n),this.nonDisplayedMemory=new ah(n),this.lastOutputScreen=new ah(n),this.currRollUpRow=this.displayedMemory.rows[14],this.writeScreen=this.displayedMemory,this.mode=null,this.cueStartTime=null,this.logger=n}reset(){this.mode=null,this.displayedMemory.reset(),this.nonDisplayedMemory.reset(),this.lastOutputScreen.reset(),this.outputFilter.reset(),this.currRollUpRow=this.displayedMemory.rows[14],this.writeScreen=this.displayedMemory,this.mode=null,this.cueStartTime=null}getHandler(){return this.outputFilter}setHandler(e){this.outputFilter=e}setPAC(e){this.writeScreen.setPAC(e)}setBkgData(e){this.writeScreen.setBkgData(e)}setMode(e){e!==this.mode&&(this.mode=e,this.logger.log(2,()=>"MODE="+e),"MODE_POP-ON"===this.mode?this.writeScreen=this.nonDisplayedMemory:(this.writeScreen=this.displayedMemory,this.writeScreen.reset()),"MODE_ROLL-UP"!==this.mode&&(this.displayedMemory.nrRollUpRows=null,this.nonDisplayedMemory.nrRollUpRows=null),this.mode=e)}insertChars(e){for(let t=0;t<e.length;t++)this.writeScreen.insertChar(e[t]);let t=this.writeScreen===this.displayedMemory?"DISP":"NON_DISP";this.logger.log(2,()=>t+": "+this.writeScreen.getDisplayText(!0)),("MODE_PAINT-ON"===this.mode||"MODE_ROLL-UP"===this.mode)&&(this.logger.log(1,()=>"DISPLAYED: "+this.displayedMemory.getDisplayText(!0)),this.outputDataUpdate())}ccRCL(){this.logger.log(2,"RCL - Resume Caption Loading"),this.setMode("MODE_POP-ON")}ccBS(){this.logger.log(2,"BS - BackSpace"),"MODE_TEXT"!==this.mode&&(this.writeScreen.backSpace(),this.writeScreen===this.displayedMemory&&this.outputDataUpdate())}ccAOF(){}ccAON(){}ccDER(){this.logger.log(2,"DER- Delete to End of Row"),this.writeScreen.clearToEndOfRow(),this.outputDataUpdate()}ccRU(e){this.logger.log(2,"RU("+e+") - Roll Up"),this.writeScreen=this.displayedMemory,this.setMode("MODE_ROLL-UP"),this.writeScreen.setRollUpRows(e)}ccFON(){this.logger.log(2,"FON - Flash On"),this.writeScreen.setPen({flash:!0})}
53ccRDC(){this.logger.log(2,"RDC - Resume Direct Captioning"),this.setMode("MODE_PAINT-ON")}ccTR(){this.logger.log(2,"TR"),this.setMode("MODE_TEXT")}ccRTD(){this.logger.log(2,"RTD"),this.setMode("MODE_TEXT")}ccEDM(){this.logger.log(2,"EDM - Erase Displayed Memory"),this.displayedMemory.reset(),this.outputDataUpdate(!0)}ccCR(){this.logger.log(2,"CR - Carriage Return"),this.writeScreen.rollUp(),this.outputDataUpdate(!0)}ccENM(){this.logger.log(2,"ENM - Erase Non-displayed Memory"),this.nonDisplayedMemory.reset()}ccEOC(){if(this.logger.log(2,"EOC - End Of Caption"),"MODE_POP-ON"===this.mode){let e=this.displayedMemory;this.displayedMemory=this.nonDisplayedMemory,this.nonDisplayedMemory=e,this.writeScreen=this.nonDisplayedMemory,this.logger.log(1,()=>"DISP: "+this.displayedMemory.getDisplayText())}this.outputDataUpdate(!0)}ccTO(e){this.logger.log(2,"TO("+e+") - Tab Offset"),this.writeScreen.moveCursor(e)}ccMIDROW(e){let t={flash:!1};if(t.underline=e%2==1,t.italics=e>=46,t.italics)t.foreground="white";else{let n=Math.floor(e/2)-16;t.foreground=["white","green","blue","cyan","red","yellow","magenta"][n]}this.logger.log(2,"MIDROW: "+tb(t)),this.writeScreen.setPen(t)}outputDataUpdate(e=!1){let t=this.logger.time;null!==t&&this.outputFilter&&(null!==this.cueStartTime||this.displayedMemory.isEmpty()?this.displayedMemory.equals(this.lastOutputScreen)||(this.outputFilter.newCue(this.cueStartTime,t,this.lastOutputScreen),e&&this.outputFilter.dispatchCue&&this.outputFilter.dispatchCue(),this.cueStartTime=this.displayedMemory.isEmpty()?null:t):this.cueStartTime=t,this.lastOutputScreen.copy(this.displayedMemory))}cueSplitAtTime(e){this.outputFilter&&!this.displayedMemory.isEmpty()&&(this.outputFilter.newCue&&this.outputFilter.newCue(this.cueStartTime,e,this.displayedMemory),this.cueStartTime=e)}}class ap{constructor(e,t,n){this.channels=void 0,this.currentChannel=0,this.cmdHistory={a:null,b:null},this.logger=void 0;let r=this.logger=new as;this.channels=[null,new af(e,t,r),new af(e+1,n,r)]}getHandler(e){return this.channels[e].getHandler()}setHandler(e,t){this.channels[e].setHandler(t)}addData(e,t){this.logger.time=e;for(let e=0;e<t.length;e+=2){var n;let r=127&t[e],i=127&t[e+1],a=!1,o=null;if(0===r&&0===i)continue;this.logger.log(3,()=>"["+al([t[e],t[e+1]])+"] -> ("+al([r,i])+")");let s=this.cmdHistory;if(r>=16&&r<=31){if(s.a===r&&s.b===i){s.a=null,s.b=null,this.logger.log(3,()=>"Repeated command ("+al([r,i])+") is dropped");continue}(n=this.cmdHistory).a=r,n.b=i,(a=this.parseCmd(r,i))||(a=this.parseMidrow(r,i)),a||(a=this.parsePAC(r,i)),a||(a=this.parseBackgroundAttributes(r,i))}else s.a=null,s.b=null;if(!a&&(o=this.parseChars(r,i))){let e=this.currentChannel;e&&e>0?this.channels[e].insertChars(o):this.logger.log(2,"No channel found yet. TEXT-MODE?")}a||o||this.logger.log(2,()=>"Couldn't parse cleaned data "+al([r,i])+" orig: "+al([t[e],t[e+1]]))}}parseCmd(e,t){if(!((20===e||28===e||21===e||29===e)&&t>=32&&t<=47||(23===e||31===e)&&t>=33&&t<=35))return!1;let n=20===e||21===e||23===e?1:2,r=this.channels[n];return 20===e||21===e||28===e||29===e?32===t?r.ccRCL():33===t?r.ccBS():34===t?r.ccAOF():35===t?r.ccAON():36===t?r.ccDER():37===t?r.ccRU(2):38===t?r.ccRU(3):39===t?r.ccRU(4):40===t?r.ccFON():41===t?r.ccRDC():42===t?r.ccTR():43===t?r.ccRTD():44===t?r.ccEDM():45===t?r.ccCR():46===t?r.ccENM():47===t&&r.ccEOC():r.ccTO(t-32),this.currentChannel=n,!0}parseMidrow(e,t){let n=0;if((17===e||25===e)&&t>=32&&t<=47){if((n=17===e?1:2)!==this.currentChannel)return this.logger.log(0,"Mismatch channel in midrow parsing"),!1;let r=this.channels[n];return!!r&&(r.ccMIDROW(t),this.logger.log(3,()=>"MIDROW ("+al([e,t])+")"),!0)}return!1}parsePAC(e,t){let n;let r=(e>=17&&e<=23||e>=25&&e<=31)&&t>=64&&t<=127,i=(16===e||24===e)&&t>=64&&t<=95;if(!(r||i))return!1;let a=e<=23?1:2;n=t>=64&&t<=95?1===a?an[e]:ai[e]:1===a?ar[e]:aa[e];let o=this.channels[a];return!!o&&(o.setPAC(this.interpretPAC(n,t)),this.currentChannel=a,!0)}interpretPAC(e,t){let n;let r={color:null,italics:!1,indent:null,underline:!1,row:e};return n=t>95?t-96:t-64,r.underline=(1&n)==1,n<=13?r.color=["white","green","blue","cyan","red","yellow","magenta","white"][Math.floor(n/2)]:n<=15?(r.italics=!0,r.color="white"):r.indent=4*Math.floor((n-16)/2),r}parseChars(e,t){let n;let r=null,i=null;if(e>=25?(n=2,i=e-8):(n=1,i=e),i>=17&&i<=19){let e;e=17===i?t+80:18===i?t+112:t+144,this.logger.log(2,()=>"Special char '"+at(e)+"' in channel "+n),r=[e]}else e>=32&&e<=127&&(r=0===t?[e]:[e,t]);return r&&this.logger.log(3,()=>"Char codes =  "+al(r).join(",")),r}
53parseBackgroundAttributes(e,t){let n;if(!((16===e||24===e)&&t>=32&&t<=47||(23===e||31===e)&&t>=45&&t<=47))return!1;let r={};return 16===e||24===e?(n=Math.floor((t-32)/2),r.background=ao[n],t%2==1&&(r.background=r.background+"_semi")):45===t?r.background="transparent":(r.foreground="black",47===t&&(r.underline=!0)),this.channels[e<=23?1:2].setBkgData(r),!0}reset(){var e;for(let e=0;e<Object.keys(this.channels).length;e++){let t=this.channels[e];t&&t.reset()}(e=this.cmdHistory).a=null,e.b=null}cueSplitAtTime(e){for(let t=0;t<this.channels.length;t++){let n=this.channels[t];n&&n.cueSplitAtTime(e)}}}var am=function(){if(null!=nu&&nu.VTTCue)return self.VTTCue;let e=["","lr","rl"],t=["start","middle","end","left","right"];function n(e,t){if("string"!=typeof t||!Array.isArray(e))return!1;let n=t.toLowerCase();return!!~e.indexOf(n)&&n}function r(e,...t){let n=1;for(;n<arguments.length;n++){let t=arguments[n];for(let n in t)e[n]=t[n]}return e}function i(i,a,o){let s={enumerable:!0};this.hasBeenReset=!1;let l="",u=!1,c=i,d=a,h=o,f=null,p="",m=!0,g="auto",v="start",y=50,b="middle",A=50,E="middle";Object.defineProperty(this,"id",r({},s,{get:function(){return l},set:function(e){l=""+e}})),Object.defineProperty(this,"pauseOnExit",r({},s,{get:function(){return u},set:function(e){u=!!e}})),Object.defineProperty(this,"startTime",r({},s,{get:function(){return c},set:function(e){if("number"!=typeof e)throw TypeError("Start time must be set to a number.");c=e,this.hasBeenReset=!0}})),Object.defineProperty(this,"endTime",r({},s,{get:function(){return d},set:function(e){if("number"!=typeof e)throw TypeError("End time must be set to a number.");d=e,this.hasBeenReset=!0}})),Object.defineProperty(this,"text",r({},s,{get:function(){return h},set:function(e){h=""+e,this.hasBeenReset=!0}})),Object.defineProperty(this,"region",r({},s,{get:function(){return f},set:function(e){f=e,this.hasBeenReset=!0}})),Object.defineProperty(this,"vertical",r({},s,{get:function(){return p},set:function(t){let r=n(e,t);if(!1===r)throw SyntaxError("An invalid or illegal string was specified.");p=r,this.hasBeenReset=!0}})),Object.defineProperty(this,"snapToLines",r({},s,{get:function(){return m},set:function(e){m=!!e,this.hasBeenReset=!0}})),Object.defineProperty(this,"line",r({},s,{get:function(){return g},set:function(e){if("number"!=typeof e&&"auto"!==e)throw SyntaxError("An invalid number or illegal string was specified.");g=e,this.hasBeenReset=!0}})),Object.defineProperty(this,"lineAlign",r({},s,{get:function(){return v},set:function(e){let r=n(t,e);if(!r)throw SyntaxError("An invalid or illegal string was specified.");v=r,this.hasBeenReset=!0}})),Object.defineProperty(this,"position",r({},s,{get:function(){return y},set:function(e){if(e<0||e>100)throw Error("Position must be between 0 and 100.");y=e,this.hasBeenReset=!0}})),Object.defineProperty(this,"positionAlign",r({},s,{get:function(){return b},set:function(e){let r=n(t,e);if(!r)throw SyntaxError("An invalid or illegal string was specified.");b=r,this.hasBeenReset=!0}})),Object.defineProperty(this,"size",r({},s,{get:function(){return A},set:function(e){if(e<0||e>100)throw Error("Size must be between 0 and 100.");A=e,this.hasBeenReset=!0}})),Object.defineProperty(this,"align",r({},s,{get:function(){return E},set:function(e){let r=n(t,e);if(!r)throw SyntaxError("An invalid or illegal string was specified.");E=r,this.hasBeenReset=!0}})),this.displayState=void 0}return i.prototype.getCueAsHTML=function(){return self.WebVTT.convertCueToDOMTree(self,this.text)},i}();class ag{decode(e,t){if(!e)return"";if("string"!=typeof e)throw Error("Error - expected string data.");return decodeURIComponent(encodeURIComponent(e))}}function av(e){function t(e,t,n,r){return(0|e)*3600+(0|t)*60+(0|n)+parseFloat(r||0)}let n=e.match(/^(?:(\d+):)?(\d{2}):(\d{2})(\.\d+)?/);return n?parseFloat(n[2])>59?t(n[2],n[3],0,n[4]):t(n[1],n[2],n[3],n[4]):null}class ay{constructor(){this.values=Object.create(null)}set(e,t){this.get(e)||""===t||(this.values[e]=t)}get(e,t,n){return n?this.has(e)?this.values[e]:t[n]:this.has(e)?this.values[e]:t}has(e){return e in this.values}alt(e,t,n){for(let r=0;r<n.length;++r)if(t===n[r]){this.set(e,t);break}}integer(e,t){/^-?\d+$/.test(t)&&this.set(e,parseInt(t,10))}percent(e,t){if(/^([\d]{1,3})(\.[\d]*)?%$/.test(t)){let n=parseFloat(t);if(n>=0&&n<=100)return this.set(e,n),!0}return!1}}function ab(e,t,n,r){let i=r?e.split(r):[e];for(let e in i){if("string"!=typeof i[e])continue;let r=i[e].split(n);2===r.length&&t(r[0],r[1])}}let aA=new am(0,0,""),aE="middle"===aA.align?"middle":"center";function aw(e){return e.replace(/<br(?: \/)?>/gi,"\n")}class ax{constructor(){this.state="INITIAL",this.buffer="",this.decoder=new ag,this.regionList=[],this.cue=null,this.oncue=void 0,this.onparsingerror=void 0,this.onflush=void 0}parse(e){let t=this;function n(){let e=t.buffer,n=0;for(e=aw(e);n<e.length&&"\r"!==e[n]&&"\n"!==e[n];)++n;let r=e.slice(0,n);return"\r"===e[n]&&++n,"\n"===e[n]&&++n,t.buffer=e.slice(n),r}e&&(t.buffer+=t.decoder.decode(e,{stream:!0}));try{let e="";if("INITIAL"===t.state){if(!/\r\n|\n/.test(t.buffer))return this;let r=(e=n()).match(/^()?WEBVTT([ \t].*)?$/);if(!(null!=r&&r[0]))throw Error("Malformed WebVTT signature.");t.state="HEADER"}let i=!1;for(;t.buffer&&/\r\n|\n/.test(t.buffer);)switch(i?i=!1:e=n(),t.state){case"HEADER":if(/:/.test(e)){var r;r=e,ab(r,function(e,t){},/:/)}else e||(t.state="ID");continue;case"NOTE":e||(t.state="ID");continue;case"ID":if(/^NOTE($|[ \t])/.test(e)){t.state="NOTE";break}if(!e)continue;if(t.cue=new am(0,0,""),t.state="CUE",-1===e.indexOf("-->")){t.cue.id=e;continue}case"CUE":if(!t.cue){t.state="BADCUE";continue}try{!function(e,t,n){let r=e;function i(){let t=av(e);if(null===t)throw Error("Malformed timestamp: "+r);return e=e.replace(/^[^\sa-zA-Z-]+/,""),t}function a(){e=e.replace(/^\s+/,"")}if(a(),t.startTime=i(),a(),"-->"!==e.slice(0,3))throw Error("Malformed time stamp (time stamps must be separated by '-->'): "+r);e=e.slice(3),a(),t.endTime=i(),a(),function(e,t){let r=new ay;ab(e,function(e,t){let i;switch(e){case"region":for(let i=n.length-1;i>=0;i--)if(n[i].id===t){r.set(e,n[i].region);break}break;case"vertical":r.alt(e,t,["rl","lr"]);break;case"line":i=t.split(","),r.integer(e,i[0]),r.percent(e,i[0])&&r.set("snapToLines",!1),r.alt(e,i[0],["auto"]),2===i.length&&r.alt("lineAlign",i[1],["start",aE,"end"]);break;case"position":i=t.split(","),r.percent(e,i[0]),2===i.length&&r.alt("positionAlign",i[1],["start",aE,"end","line-left","line-right","auto"]);break;case"size":r.percent(e,t);break;case"align":r.alt(e,t,["start",aE,"end","left","right"])}},/:/,/\s/),t.region=r.get("region",null),t.vertical=r.get("vertical","");let i=r.get("line","auto");"auto"===i&&-1===aA.line&&(i=-1),t.line=i,t.lineAlign=r.get("lineAlign","start"),t.snapToLines=r.get("snapToLines",!0),t.size=r.get("size",100),t.align=r.get("align",aE);let a=r.get("position","auto");"auto"===a&&50===aA.position&&(a="start"===t.align||"left"===t.align?0:"end"===t.align||"right"===t.align?100:50),t.position=a}(e,t)}(e,t.cue,t.regionList)}catch(e){t.cue=null,t.state="BADCUE";continue}t.state="CUETEXT";continue;case"CUETEXT":{let n=-1!==e.indexOf("-->");if(!e||n&&(i=!0)){t.oncue&&t.cue&&t.oncue(t.cue),t.cue=null,t.state="ID";continue}if(null===t.cue)continue;t.cue.text&&(t.cue.text+="\n"),t.cue.text+=e}continue;case"BADCUE":e||(t.state="ID")}}catch(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(){try{if((this.cue||"HEADER"===this.state)&&(this.buffer+="\n\n",this.parse()),"INITIAL"===this.state||"BADWEBVTT"===this.state)throw Error("Malformed WebVTT signature.")}catch(e){this.onparsingerror&&this.onparsingerror(e)}return this.onflush&&this.onflush(),this}}let aT=/\r\n|\n\r|\n|\r/g,aS=function(e,t,n=0){return e.slice(n,n+t.length)===t},a_=function(e){let t=parseInt(e.slice(-3)),n=parseInt(e.slice(-6,-4)),r=parseInt(e.slice(-9,-7)),i=e.length>9?parseInt(e.substring(0,e.indexOf(":"))):0;
53if(!eo(t)||!eo(n)||!eo(r)||!eo(i))throw Error(`Malformed X-TIMESTAMP-MAP: Local:${e}`);return t+(1e3*n+6e4*r+36e5*i)};function aC(e,t,n){return i$(e.toString())+i$(t.toString())+i$(n)}let ak=function(e,t,n){let r=e[t],i=e[r.prevCC];if(!i||!i.new&&r.new){e.ccOffset=e.presentationOffset=r.start,r.new=!1;return}for(;null!=(a=i)&&a.new;){var a;e.ccOffset+=r.start-i.start,r.new=!1,i=e[(r=i).prevCC]}e.presentationOffset=n},aI="stpp.ttml.im1t",aL=/^(\d{2,}):(\d{2}):(\d{2}):(\d{2})\.?(\d+)?$/,aP=/^(\d*(?:\.\d*)?)(h|m|s|ms|f|t)$/,aO={left:"start",center:"center",right:"end",start:"start",end:"end"};function aR(e,t,n,r){let i=eH(new Uint8Array(e),["mdat"]);if(0===i.length){r(Error("Could not parse IMSC1 mdat"));return}let a=i.map(e=>eC(e)),o=function(e,t,n=1,r=!1){return rH(e,1,1/n,r)}(t.baseTime,0,t.timescale);try{a.forEach(e=>n(function(e,t){let n=new DOMParser().parseFromString(e,"text/xml").getElementsByTagName("tt")[0];if(!n)throw Error("Invalid ttml");let r={frameRate:30,subFrameRate:1,frameRateMultiplier:0,tickRate:0},i=Object.keys(r).reduce((e,t)=>(e[t]=n.getAttribute(`ttp:${t}`)||r[t],e),{}),a="preserve"!==n.getAttribute("xml:space"),o=aN(aD(n,"styling","style")),s=aN(aD(n,"layout","region")),l=aD(n,"body","[begin]");return[].map.call(l,e=>{let n=function e(t,n){return[].slice.call(t.childNodes).reduce((t,r,i)=>{var a;return"br"===r.nodeName&&i?t+"\n":null!=(a=r.childNodes)&&a.length?e(r,n):n?t+r.textContent.trim().replace(/\s+/g," "):t+r.textContent},"")}(e,a);if(!n||!e.hasAttribute("begin"))return null;let r=aF(e.getAttribute("begin"),i),l=aF(e.getAttribute("dur"),i),u=aF(e.getAttribute("end"),i);if(null===r)throw aj(e);if(null===u){if(null===l)throw aj(e);u=r+l}let c=new am(r-t,u-t,n);c.id=aC(c.startTime,c.endTime,c.text);let d=s[e.getAttribute("region")],h=function(e,t,n){let r="http://www.w3.org/ns/ttml#styling",i=null,a=null!=e&&e.hasAttribute("style")?e.getAttribute("style"):null;return a&&n.hasOwnProperty(a)&&(i=n[a]),["displayAlign","textAlign","color","backgroundColor","fontSize","fontFamily"].reduce((n,a)=>{let o=aM(t,r,a)||aM(e,r,a)||aM(i,r,a);return o&&(n[a]=o),n},{})}(d,o[e.getAttribute("style")],o),{textAlign:f}=h;if(f){let e=aO[f];e&&(c.lineAlign=e),c.align=f}return eg(c,h),c}).filter(e=>null!==e)}(e,o)))}catch(e){r(e)}}function aD(e,t,n){let r=e.getElementsByTagName(t)[0];return r?[].slice.call(r.querySelectorAll(n)):[]}function aN(e){return e.reduce((e,t)=>{let n=t.getAttribute("xml:id");return n&&(e[n]=t),e},{})}function aM(e,t,n){return e&&e.hasAttributeNS(t,n)?e.getAttributeNS(t,n):null}function aj(e){return Error(`Could not parse ttml timestamp ${e}`)}function aF(e,t){if(!e)return null;let n=av(e);return null===n&&(aL.test(e)?n=function(e,t){let n=aL.exec(e),r=(0|n[4])+(0|n[5])/t.subFrameRate;return(0|n[1])*3600+(0|n[2])*60+(0|n[3])+r/t.frameRate}(e,t):aP.test(e)&&(n=function(e,t){let n=aP.exec(e),r=Number(n[1]);switch(n[2]){case"h":return 3600*r;case"m":return 60*r;case"ms":return 1e3*r;case"f":return r/t.frameRate;case"t":return r/t.tickRate}return r}(e,t))),n}class aB{constructor(e,t){this.timelineController=void 0,this.cueRanges=[],this.trackName=void 0,this.startTime=null,this.endTime=null,this.screen=null,this.timelineController=e,this.trackName=t}dispatchCue(){null!==this.startTime&&(this.timelineController.addCues(this.trackName,this.startTime,this.endTime,this.screen,this.cueRanges),this.startTime=null)}newCue(e,t,n){(null===this.startTime||this.startTime>e)&&(this.startTime=e),this.endTime=t,this.screen=n,this.timelineController.createCaptionsTrack(this.trackName)}reset(){this.cueRanges=[],this.startTime=null}}class aU{constructor(e){this.hls=void 0,this.media=null,this.config=void 0,this.enabled=!0,this.Cues=void 0,this.textTracks=[],this.tracks=[],this.initPTS=[],this.unparsedVttFrags=[],this.captionsTracks={},this.nonNativeCaptionsTracks={},this.cea608Parser1=void 0,this.cea608Parser2=void 0,this.lastCc=-1,this.lastSn=-1,this.lastPartIndex=-1,this.prevCC=-1,this.vttCCs=aq(),this.captionsProperties=void 0,this.hls=e,this.config=e.config,this.Cues=e.config.cueHandler,this.captionsProperties={textTrack1:{label:this.config.captionsTextTrack1Label,languageCode:this.config.captionsTextTrack1LanguageCode},textTrack2:{label:this.config.captionsTextTrack2Label,languageCode:this.config.captionsTextTrack2LanguageCode},textTrack3:{label:this.config.captionsTextTrack3Label,languageCode:this.config.captionsTextTrack3LanguageCode},textTrack4:{label:this.config.captionsTextTrack4Label,languageCode:this.config.captionsTextTrack4LanguageCode}}
53,e.on(ed.MEDIA_ATTACHING,this.onMediaAttaching,this),e.on(ed.MEDIA_DETACHING,this.onMediaDetaching,this),e.on(ed.MANIFEST_LOADING,this.onManifestLoading,this),e.on(ed.MANIFEST_LOADED,this.onManifestLoaded,this),e.on(ed.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),e.on(ed.FRAG_LOADING,this.onFragLoading,this),e.on(ed.FRAG_LOADED,this.onFragLoaded,this),e.on(ed.FRAG_PARSING_USERDATA,this.onFragParsingUserdata,this),e.on(ed.FRAG_DECRYPTED,this.onFragDecrypted,this),e.on(ed.INIT_PTS_FOUND,this.onInitPtsFound,this),e.on(ed.SUBTITLE_TRACKS_CLEARED,this.onSubtitleTracksCleared,this),e.on(ed.BUFFER_FLUSHING,this.onBufferFlushing,this)}destroy(){let{hls:e}=this;e.off(ed.MEDIA_ATTACHING,this.onMediaAttaching,this),e.off(ed.MEDIA_DETACHING,this.onMediaDetaching,this),e.off(ed.MANIFEST_LOADING,this.onManifestLoading,this),e.off(ed.MANIFEST_LOADED,this.onManifestLoaded,this),e.off(ed.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),e.off(ed.FRAG_LOADING,this.onFragLoading,this),e.off(ed.FRAG_LOADED,this.onFragLoaded,this),e.off(ed.FRAG_PARSING_USERDATA,this.onFragParsingUserdata,this),e.off(ed.FRAG_DECRYPTED,this.onFragDecrypted,this),e.off(ed.INIT_PTS_FOUND,this.onInitPtsFound,this),e.off(ed.SUBTITLE_TRACKS_CLEARED,this.onSubtitleTracksCleared,this),e.off(ed.BUFFER_FLUSHING,this.onBufferFlushing,this),this.hls=this.config=this.media=null,this.cea608Parser1=this.cea608Parser2=void 0}initCea608Parsers(){let e=new aB(this,"textTrack1"),t=new aB(this,"textTrack2"),n=new aB(this,"textTrack3"),r=new aB(this,"textTrack4");this.cea608Parser1=new ap(1,e,t),this.cea608Parser2=new ap(3,n,r)}addCues(e,t,n,r,i){let a=!1;for(let e=i.length;e--;){var o;let r=i[e],s=(o=r[0],Math.min(r[1],n)-Math.max(o,t));if(s>=0&&(r[0]=Math.min(r[0],t),r[1]=Math.max(r[1],n),a=!0,s/(n-t)>.5))return}if(a||i.push([t,n]),this.config.renderTextTracksNatively){let i=this.captionsTracks[e];this.Cues.newCue(i,t,n,r)}else{let i=this.Cues.newCue(null,t,n,r);this.hls.trigger(ed.CUES_PARSED,{type:"captions",cues:i,track:e})}}onInitPtsFound(e,{frag:t,id:n,initPTS:r,timescale:i}){let{unparsedVttFrags:a}=this;n===ef.MAIN&&(this.initPTS[t.cc]={baseTime:r,timescale:i}),a.length&&(this.unparsedVttFrags=[],a.forEach(e=>{this.onFragLoaded(ed.FRAG_LOADED,e)}))}getExistingTrack(e,t){let{media:n}=this;if(n)for(let r=0;r<n.textTracks.length;r++){let i=n.textTracks[r];if(az(i,{name:e,lang:t,characteristics:"transcribes-spoken-dialog,describes-music-and-sound"}))return i}return null}createCaptionsTrack(e){this.config.renderTextTracksNatively?this.createNativeTrack(e):this.createNonNativeTrack(e)}createNativeTrack(e){if(this.captionsTracks[e])return;let{captionsProperties:t,captionsTracks:n,media:r}=this,{label:i,languageCode:a}=t[e],o=this.getExistingTrack(i,a);if(o)n[e]=o,iQ(n[e]),iz(n[e],r);else{let t=this.createTextTrack("captions",i,a);t&&(t[e]=!0,n[e]=t)}}createNonNativeTrack(e){if(this.nonNativeCaptionsTracks[e])return;let t=this.captionsProperties[e];if(!t)return;let n={_id:e,label:t.label,kind:"captions",default:!!t.media&&!!t.media.default,closedCaptions:t.media};this.nonNativeCaptionsTracks[e]=n,this.hls.trigger(ed.NON_NATIVE_TEXT_TRACKS_FOUND,{tracks:[n]})}createTextTrack(e,t,n){let r=this.media;if(r)return r.addTextTrack(e,t,n)}onMediaAttaching(e,t){this.media=t.media,t.mediaSource||this._cleanTracks()}onMediaDetaching(e,t){let n=!!t.transferMedia;if(this.media=null,n)return;let{captionsTracks:r}=this;Object.keys(r).forEach(e=>{iQ(r[e]),delete r[e]}),this.nonNativeCaptionsTracks={}}onManifestLoading(){this.lastCc=-1,this.lastSn=-1,this.lastPartIndex=-1,this.prevCC=-1,this.vttCCs=aq(),this._cleanTracks(),this.tracks=[],this.captionsTracks={},this.nonNativeCaptionsTracks={},this.textTracks=[],this.unparsedVttFrags=[],this.initPTS=[],this.cea608Parser1&&this.cea608Parser2&&(this.cea608Parser1.reset(),this.cea608Parser2.reset())}_cleanTracks(){let{media:e}=this;if(!e)return;let t=e.textTracks;if(t)for(let e=0;e<t.length;e++)iQ(t[e])}onSubtitleTracksUpdated(e,t){let n=t.subtitleTracks||[],r=n.some(e=>e.textCodec===aI);if(this.config.enableWebVTT||r&&this.config.enableIMSC1){if(ir(this.tracks,n)){this.tracks=n;return}if(this.textTracks=[],this.tracks=n,this.config.renderTextTracksNatively){let e=this.media,t=e?iG(e.textTracks):null;if(this.tracks.forEach((e,n)=>{let r;if(t){let n=null;for(let r=0;r<t.length;r++)if(t[r]&&az(t[r],e)){n=t[r],t[r]=null;break}n&&(r=n)}if(r)iQ(r);else{let t=aV(e);(r=this.createTextTrack(t,e.name,e.lang))&&(r.mode="disabled")}r&&this.textTracks.push(r)}),null!=t&&t.length){let e=t.filter(e=>null!==e).map(e=>e.label);e.length&&this.hls.logger.warn(`Media element contains unused subtitle tracks: ${e.join(", ")}. Replace media element for each source to clear TextTracks and captions menu.`)}
53}else if(this.tracks.length){let e=this.tracks.map(e=>({label:e.name,kind:e.type.toLowerCase(),default:e.default,subtitleTrack:e}));this.hls.trigger(ed.NON_NATIVE_TEXT_TRACKS_FOUND,{tracks:e})}}}onManifestLoaded(e,t){this.config.enableCEA708Captions&&t.captions&&t.captions.forEach(e=>{let t=/(?:CC|SERVICE)([1-4])/.exec(e.instreamId);if(!t)return;let n=`textTrack${t[1]}`,r=this.captionsProperties[n];r&&(r.label=e.name,e.lang&&(r.languageCode=e.lang),r.media=e)})}closedCaptionsForLevel(e){let t=this.hls.levels[e.level];return null==t?void 0:t.attrs["CLOSED-CAPTIONS"]}onFragLoading(e,t){if(this.enabled&&t.frag.type===ef.MAIN){var n,r;let{cea608Parser1:e,cea608Parser2:i,lastSn:a}=this,{cc:o,sn:s}=t.frag,l=null!=(n=null==(r=t.part)?void 0:r.index)?n:-1;e&&i&&(s!==a+1||s===a&&l!==this.lastPartIndex+1||o!==this.lastCc)&&(e.reset(),i.reset()),this.lastCc=o,this.lastSn=s,this.lastPartIndex=l}}onFragLoaded(e,t){let{frag:n,payload:r}=t;if(n.type===ef.SUBTITLE){if(r.byteLength){let e=n.decryptdata,i="stats"in t;if(null==e||!e.encrypted||i){let e=this.tracks[n.level],i=this.vttCCs;i[n.cc]||(i[n.cc]={start:n.start,prevCC:this.prevCC,new:!0},this.prevCC=n.cc),e&&e.textCodec===aI?this._parseIMSC1(n,r):this._parseVTTs(t)}}else this.hls.trigger(ed.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:n,error:Error("Empty subtitle payload")})}}_parseIMSC1(e,t){let n=this.hls;aR(t,this.initPTS[e.cc],t=>{this._appendCues(t,e.level),n.trigger(ed.SUBTITLE_FRAG_PROCESSED,{success:!0,frag:e})},t=>{n.logger.log(`Failed to parse IMSC1: ${t}`),n.trigger(ed.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:e,error:t})})}_parseVTTs(e){var t;let{frag:n,payload:r}=e,{initPTS:i,unparsedVttFrags:a}=this,o=i.length-1;if(!i[n.cc]&&-1===o){a.push(e);return}let s=this.hls;!function(e,t,n,r,i,a,o){let s;let l=new ax,u=eC(new Uint8Array(e)).trim().replace(aT,"\n").split("\n"),c=[],d=t?function(e,t=1){return rH(e,9e4,1/t)}(t.baseTime,t.timescale):0,h="00:00.000",f=0,p=0,m=!0;l.oncue=function(e){let a=n[r],o=n.ccOffset,l=(f-d)/9e4;if(null!=a&&a.new&&(void 0!==p?o=n.ccOffset=a.start:ak(n,r,l)),l){if(!t){s=Error("Missing initPTS for VTT MPEGTS");return}o=l-n.presentationOffset}let u=e.endTime-e.startTime,h=rY((e.startTime+o-p)*9e4,9e4*i)/9e4;e.startTime=Math.max(h,0),e.endTime=Math.max(h+u,0);let m=e.text.trim();e.text=decodeURIComponent(encodeURIComponent(m)),e.id||(e.id=aC(e.startTime,e.endTime,m)),e.endTime>0&&c.push(e)},l.onparsingerror=function(e){s=e},l.onflush=function(){if(s){o(s);return}a(c)},u.forEach(e=>{if(m){if(aS(e,"X-TIMESTAMP-MAP=")){m=!1,e.slice(16).split(",").forEach(e=>{aS(e,"LOCAL:")?h=e.slice(6):aS(e,"MPEGTS:")&&(f=parseInt(e.slice(7)))});try{p=a_(h)/1e3}catch(e){s=e}return}""===e&&(m=!1)}l.parse(e+"\n")}),l.flush()}(null!=(t=n.initSegment)&&t.data?eX(n.initSegment.data,new Uint8Array(r)).buffer:r,this.initPTS[n.cc],this.vttCCs,n.cc,n.start,e=>{this._appendCues(e,n.level),s.trigger(ed.SUBTITLE_FRAG_PROCESSED,{success:!0,frag:n})},t=>{let i="Missing initPTS for VTT MPEGTS"===t.message;i?a.push(e):this._fallbackToIMSC1(n,r),s.logger.log(`Failed to parse VTT cue: ${t}`),i&&o>n.cc||s.trigger(ed.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:n,error:t})})}_fallbackToIMSC1(e,t){let n=this.tracks[e.level];n.textCodec||aR(t,this.initPTS[e.cc],()=>{n.textCodec=aI,this._parseIMSC1(e,t)},()=>{n.textCodec="wvtt"})}_appendCues(e,t){let n=this.hls;if(this.config.renderTextTracksNatively){let n=this.textTracks[t];if(!n||"disabled"===n.mode)return;e.forEach(e=>iq(n,e))}else{let r=this.tracks[t];if(!r)return;let i=r.default?"default":"subtitles"+t;n.trigger(ed.CUES_PARSED,{type:"subtitles",cues:e,track:i})}}onFragDecrypted(e,t){let{frag:n}=t;n.type===ef.SUBTITLE&&this.onFragLoaded(ed.FRAG_LOADED,t)}onSubtitleTracksCleared(){this.tracks=[],this.captionsTracks={}}onFragParsingUserdata(e,t){if(!this.enabled||!this.config.enableCEA708Captions)return;let{frag:n,samples:r}=t;if(n.type!==ef.MAIN||"NONE"!==this.closedCaptionsForLevel(n))for(let e=0;e<r.length;e++){let t=r[e].bytes;if(t){this.cea608Parser1||this.initCea608Parsers();let n=this.extractCea608Data(t);this.cea608Parser1.addData(r[e].pts,n[0]),this.cea608Parser2.addData(r[e].pts,n[1])}}}onBufferFlushing(e,{startOffset:t,endOffset:n,endOffsetSubtitles:r,type:i}){let{media:a}=this;
53if(a&&!(a.currentTime<n)){if(!i||"video"===i){let{captionsTracks:e}=this;Object.keys(e).forEach(r=>iH(e[r],t,n))}if(this.config.renderTextTracksNatively&&0===t&&void 0!==r){let{textTracks:e}=this;Object.keys(e).forEach(n=>iH(e[n],t,r))}}}extractCea608Data(e){let t=[[],[]],n=31&e[0],r=2;for(let i=0;i<n;i++){let n=e[r++],i=127&e[r++],a=127&e[r++];if((0!==i||0!==a)&&(4&n)!=0){let e=3&n;(0===e||1===e)&&(t[e].push(i),t[e].push(a))}}return t}}function aV(e){return e.characteristics&&/transcribes-spoken-dialog/gi.test(e.characteristics)&&/describes-music-and-sound/gi.test(e.characteristics)?"captions":"subtitles"}function az(e,t){return!!e&&e.kind===aV(t)&&ia(t,e)}function aq(){return{ccOffset:0,presentationOffset:0,0:{start:0,prevCC:-1,new:!0}}}let aQ=/\s/,aH=/(\d+)-(\d+)\/(\d+)/;class aG{constructor(e){this.fetchSetup=void 0,this.requestTimeout=void 0,this.request=null,this.response=null,this.controller=void 0,this.context=null,this.config=null,this.callbacks=null,this.stats=void 0,this.loader=null,this.fetchSetup=e.fetchSetup||aK,this.controller=new self.AbortController,this.stats=new eP}destroy(){this.loader=this.callbacks=this.context=this.config=this.request=null,this.abortInternal(),this.response=null,this.fetchSetup=this.controller=this.stats=null}abortInternal(){this.controller&&!this.stats.loading.end&&(this.stats.aborted=!0,this.controller.abort())}abort(){var e;this.abortInternal(),null!=(e=this.callbacks)&&e.onAbort&&this.callbacks.onAbort(this.stats,this.context,this.response)}load(e,t,n){let r=this.stats;if(r.loading.start)throw Error("Loader can only be used once.");r.loading.start=self.performance.now();let i=function(e,t){let n={method:"GET",mode:"cors",credentials:"same-origin",signal:t,headers:new self.Headers(eg({},e.headers))};return e.rangeEnd&&n.headers.set("Range","bytes="+e.rangeStart+"-"+String(e.rangeEnd-1)),n}(e,this.controller.signal),a="arraybuffer"===e.responseType,o=a?"byteLength":"length",{maxTimeToFirstByteMs:s,maxLoadTimeMs:l}=t.loadPolicy;this.context=e,this.config=t,this.callbacks=n,this.request=this.fetchSetup(e,i),self.clearTimeout(this.requestTimeout),t.timeout=s&&eo(s)?s:l,this.requestTimeout=self.setTimeout(()=>{this.callbacks&&(this.abortInternal(),this.callbacks.onTimeout(r,e,this.response))},t.timeout),(r5(this.request)?this.request.then(self.fetch):self.fetch(this.request)).then(n=>{var i;this.response=this.loader=n;let o=Math.max(self.performance.now(),r.loading.start);if(self.clearTimeout(this.requestTimeout),t.timeout=l,this.requestTimeout=self.setTimeout(()=>{this.callbacks&&(this.abortInternal(),this.callbacks.onTimeout(r,e,this.response))},l-(o-r.loading.start)),!n.ok){let{status:e,statusText:t}=n;throw new a$(t||"fetch, bad network response",e,n)}r.loading.first=o,r.total=function(e){let t=e.get("Content-Range");if(t){let e=function(e){let t=aH.exec(e);if(t)return parseInt(t[2])-parseInt(t[1])+1}(t);if(eo(e))return e}let n=e.get("Content-Length");if(n)return parseInt(n)}(n.headers)||r.total;let s=null==(i=this.callbacks)?void 0:i.onProgress;return s&&eo(t.highWaterMark)?this.loadProgressively(n,r,e,t.highWaterMark,s):a?n.arrayBuffer():"json"===e.responseType?n.json():n.text()}).then(n=>{var i,a;let s=this.response;if(!s)throw Error("loader destroyed");self.clearTimeout(this.requestTimeout),r.loading.end=Math.max(self.performance.now(),r.loading.first);let l=n[o];l&&(r.loaded=r.total=l);let u={url:s.url,data:n,code:s.status},c=null==(i=this.callbacks)?void 0:i.onProgress;c&&!eo(t.highWaterMark)&&c(r,e,n,s),null==(a=this.callbacks)||a.onSuccess(u,r,e,s)}).catch(t=>{var n;if(self.clearTimeout(this.requestTimeout),r.aborted)return;let i=t&&t.code||0,a=t?t.message:null;null==(n=this.callbacks)||n.onError({code:i,text:a},e,t?t.details:null,r)})}getCacheAge(){let e=null;if(this.response){let t=this.response.headers.get("age");e=t?parseFloat(t):null}return e}getResponseHeader(e){return this.response?this.response.headers.get(e):null}loadProgressively(e,t,n,r=0,i){let a=new n2,o=e.body.getReader(),s=()=>o.read().then(o=>{if(o.done)return a.dataLength&&i(t,n,a.flush().buffer,e),Promise.resolve(new ArrayBuffer(0));let l=o.value,u=l.length;return t.loaded+=u,u<r||a.dataLength?(a.push(l),a.dataLength>=r&&i(t,n,a.flush().buffer,e)):i(t,n,l.buffer,e),s()}).catch(()=>Promise.reject());return s()}}
53function aK(e,t){return new self.Request(e.url,t)}class a$ extends Error{constructor(e,t,n){super(e),this.code=void 0,this.details=void 0,this.code=t,this.details=n}}let aW=/^age:\s*[\d.]+\s*$/im;class aZ{constructor(e){this.xhrSetup=void 0,this.requestTimeout=void 0,this.retryTimeout=void 0,this.retryDelay=void 0,this.config=null,this.callbacks=null,this.context=null,this.loader=null,this.stats=void 0,this.xhrSetup=e&&e.xhrSetup||null,this.stats=new eP,this.retryDelay=0}destroy(){this.callbacks=null,this.abortInternal(),this.loader=null,this.config=null,this.context=null,this.xhrSetup=null}abortInternal(){let e=this.loader;self.clearTimeout(this.requestTimeout),self.clearTimeout(this.retryTimeout),e&&(e.onreadystatechange=null,e.onprogress=null,4!==e.readyState&&(this.stats.aborted=!0,e.abort()))}abort(){var e;this.abortInternal(),null!=(e=this.callbacks)&&e.onAbort&&this.callbacks.onAbort(this.stats,this.context,this.loader)}load(e,t,n){if(this.stats.loading.start)throw Error("Loader can only be used once.");this.stats.loading.start=self.performance.now(),this.context=e,this.config=t,this.callbacks=n,this.loadInternal()}loadInternal(){let{config:e,context:t}=this;if(!e||!t)return;let n=this.loader=new self.XMLHttpRequest,r=this.stats;r.loading.first=0,r.loaded=0,r.aborted=!1;let i=this.xhrSetup;i?Promise.resolve().then(()=>{if(this.loader===n&&!this.stats.aborted)return i(n,t.url)}).catch(e=>{if(this.loader===n&&!this.stats.aborted)return n.open("GET",t.url,!0),i(n,t.url)}).then(()=>{this.loader!==n||this.stats.aborted||this.openAndSendXhr(n,t,e)}).catch(e=>{var i;null==(i=this.callbacks)||i.onError({code:n.status,text:e.message},t,n,r)}):this.openAndSendXhr(n,t,e)}openAndSendXhr(e,t,n){e.readyState||e.open("GET",t.url,!0);let r=t.headers,{maxTimeToFirstByteMs:i,maxLoadTimeMs:a}=n.loadPolicy;if(r)for(let t in r)e.setRequestHeader(t,r[t]);t.rangeEnd&&e.setRequestHeader("Range","bytes="+t.rangeStart+"-"+(t.rangeEnd-1)),e.onreadystatechange=this.readystatechange.bind(this),e.onprogress=this.loadprogress.bind(this),e.responseType=t.responseType,self.clearTimeout(this.requestTimeout),n.timeout=i&&eo(i)?i:a,this.requestTimeout=self.setTimeout(this.loadtimeout.bind(this),n.timeout),e.send()}readystatechange(){let{context:e,loader:t,stats:n}=this;if(!e||!t)return;let r=t.readyState,i=this.config;if(!n.aborted&&r>=2&&(0===n.loading.first&&(n.loading.first=Math.max(self.performance.now(),n.loading.start),i.timeout!==i.loadPolicy.maxLoadTimeMs&&(self.clearTimeout(this.requestTimeout),i.timeout=i.loadPolicy.maxLoadTimeMs,this.requestTimeout=self.setTimeout(this.loadtimeout.bind(this),i.loadPolicy.maxLoadTimeMs-(n.loading.first-n.loading.start)))),4===r)){var a,o,s;self.clearTimeout(this.requestTimeout),t.onreadystatechange=null,t.onprogress=null;let r=t.status,l="text"===t.responseType?t.responseText:null;if(r>=200&&r<300){let i=null!=l?l:t.response;if(null!=i){n.loading.end=Math.max(self.performance.now(),n.loading.first);let s="arraybuffer"===t.responseType?i.byteLength:i.length;n.loaded=n.total=s,n.bwEstimate=8e3*n.total/(n.loading.end-n.loading.first);let l=null==(a=this.callbacks)?void 0:a.onProgress;l&&l(n,e,i,t);let u={url:t.responseURL,data:i,code:r};null==(o=this.callbacks)||o.onSuccess(u,n,e,t);return}}let u=i.loadPolicy.errorRetry;tj(u,n.retry,!1,{url:e.url,data:void 0,code:r})?this.retry(u):(eT.error(`${r} while loading ${e.url}`),null==(s=this.callbacks)||s.onError({code:r,text:t.statusText},e,t,n))}}loadtimeout(){if(!this.config)return;let e=this.config.loadPolicy.timeoutRetry;if(tj(e,this.stats.retry,!0))this.retry(e);else{var t;eT.warn(`timeout while loading ${null==(t=this.context)?void 0:t.url}`);let e=this.callbacks;e&&(this.abortInternal(),e.onTimeout(this.stats,this.context,this.loader))}}retry(e){let{context:t,stats:n}=this;this.retryDelay=tN(e,n.retry),n.retry++,eT.warn(`${status?"HTTP Status "+status:"Timeout"} while loading ${null==t?void 0:t.url}, retrying ${n.retry}/${e.maxNumRetry} in ${this.retryDelay}ms`),this.abortInternal(),this.loader=null,self.clearTimeout(this.retryTimeout),this.retryTimeout=self.setTimeout(this.loadInternal.bind(this),this.retryDelay)}loadprogress(e){let t=this.stats;t.loaded=e.loaded,e.lengthComputable&&(t.total=e.total)}getCacheAge(){let e=null;if(this.loader&&aW.test(this.loader.getAllResponseHeaders())){let t=this.loader.getResponseHeader("age");e=t?parseFloat(t):null}return e}getResponseHeader(e){return this.loader&&RegExp(`^${e}:\\s*[\\d.]+\\s*$`,"im").test(this.loader.getAllResponseHeaders())?this.loader.getResponseHeader(e):null}}let aY=ey(ey({autoStartLoad:!0,startPosition:-1,defaultAudioCodec:void 0,debug:!1,capLevelOnFPSDrop:!1,capLevelToPlayerSize:!1,ignoreDevicePixelRatio:!1,maxDevicePixelRatio:Number.POSITIVE_INFINITY,preferManagedMediaSource:!0,initialLiveManifestSize:1,maxBufferLength:30,backBufferLength:1/0,frontBufferFlushThreshold:1/0,maxBufferSize:6e7,maxFragLookUpTolerance:.25,maxBufferHole:.1,detectStallWithCurrentTimeMs:1250,highBufferWatchdogPeriod:2,nudgeOffset:.1,nudgeMaxRetry:3,nudgeOnVideoHole:!0,liveSyncDurationCount:3,liveSyncOnStallIncrease:1,liveMaxLatencyDurationCount:1/0,liveSyncDuration:void 0,liveMaxLatencyDuration:void 0,maxLiveSyncPlaybackRate:1,liveDurationInfinity:!1,liveBackBufferLength:null,maxMaxBufferLength:600,enableWorker:!0,workerPath:null,enableSoftw
53areAES:!0,startLevel:void 0,startFragPrefetch:!1,fpsDroppedMonitoringPeriod:5e3,fpsDroppedMonitoringThreshold:.2,appendErrorMaxRetry:3,ignorePlaylistParsingErrors:!1,loader:aZ,fLoader:void 0,pLoader:void 0,xhrSetup:void 0,licenseXhrSetup:void 0,licenseResponseCallback:void 0,abrController:tk,bufferController:id,capLevelController:im,errorController:tU,fpsController:iV,stretchShortVideoTrack:!1,maxAudioFramesDrift:1,forceKeyFrameOnDiscontinuity:!0,abrEwmaFastLive:3,abrEwmaSlowLive:9,abrEwmaFastVoD:3,abrEwmaSlowVoD:9,abrEwmaDefaultEstimate:5e5,abrEwmaDefaultEstimateMax:5e6,abrBandWidthFactor:.95,abrBandWidthUpFactor:.7,abrMaxWithRealBitrate:!1,maxStarvationDelay:4,maxLoadingDelay:4,minAutoBitrate:0,emeEnabled:!1,widevineLicenseUrl:void 0,drmSystems:{},drmSystemOptions:{},requestMediaKeySystemAccessFunc:nv,testBandwidth:!0,progressive:!1,lowLatencyMode:!0,cmcd:void 0,enableDateRangeMetadataCues:!0,enableEmsgMetadataCues:!0,enableEmsgKLVMetadata:!1,enableID3MetadataCues:!0,enableInterstitialPlayback:!0,interstitialAppendInPlace:!0,interstitialLiveLookAhead:10,useMediaCapabilities:!0,certLoadPolicy:{default:{maxTimeToFirstByteMs:8e3,maxLoadTimeMs:2e4,timeoutRetry:null,errorRetry:null}},keyLoadPolicy:{default:{maxTimeToFirstByteMs:8e3,maxLoadTimeMs:2e4,timeoutRetry:{maxNumRetry:1,retryDelayMs:1e3,maxRetryDelayMs:2e4,backoff:"linear"},errorRetry:{maxNumRetry:8,retryDelayMs:1e3,maxRetryDelayMs:2e4,backoff:"linear"}}},manifestLoadPolicy:{default:{maxTimeToFirstByteMs:1/0,maxLoadTimeMs:2e4,timeoutRetry:{maxNumRetry:2,retryDelayMs:0,maxRetryDelayMs:0},errorRetry:{maxNumRetry:1,retryDelayMs:1e3,maxRetryDelayMs:8e3}}},playlistLoadPolicy:{default:{maxTimeToFirstByteMs:1e4,maxLoadTimeMs:2e4,timeoutRetry:{maxNumRetry:2,retryDelayMs:0,maxRetryDelayMs:0},errorRetry:{maxNumRetry:2,retryDelayMs:1e3,maxRetryDelayMs:8e3}}},fragLoadPolicy:{default:{maxTimeToFirstByteMs:1e4,maxLoadTimeMs:12e4,timeoutRetry:{maxNumRetry:4,retryDelayMs:0,maxRetryDelayMs:0},errorRetry:{maxNumRetry:6,retryDelayMs:1e3,maxRetryDelayMs:8e3}}},steeringManifestLoadPolicy:{default:{maxTimeToFirstByteMs:1e4,maxLoadTimeMs:2e4,timeoutRetry:{maxNumRetry:2,retryDelayMs:0,maxRetryDelayMs:0},errorRetry:{maxNumRetry:1,retryDelayMs:1e3,maxRetryDelayMs:8e3}}},interstitialAssetListLoadPolicy:{default:{maxTimeToFirstByteMs:1e4,maxLoadTimeMs:3e4,timeoutRetry:{maxNumRetry:0,retryDelayMs:0,maxRetryDelayMs:0},errorRetry:{maxNumRetry:0,retryDelayMs:1e3,maxRetryDelayMs:8e3}}},manifestLoadingTimeOut:1e4,manifestLoadingMaxRetry:1,manifestLoadingRetryDelay:1e3,manifestLoadingMaxRetryTimeout:64e3,levelLoadingTimeOut:1e4,levelLoadingMaxRetry:4,levelLoadingRetryDelay:1e3,levelLoadingMaxRetryTimeout:64e3,fragLoadingTimeOut:2e4,fragLoadingMaxRetry:6,fragLoadingRetryDelay:1e3,fragLoadingMaxRetryTimeout:64e3},{cueHandler:{newCue(e,t,n,r){let i,a,o,s,l;let u=[],c=self.VTTCue||self.TextTrackCue;for(let h=0;h<r.rows.length;h++)if(i=r.rows[h],o=!0,s=0,l="",!i.isEmpty()){var d;for(let e=0;e<i.chars.length;e++)aQ.test(i.chars[e].uchar)&&o?s++:(l+=i.chars[e].uchar,o=!1);i.cueStartTime=t,t===n&&(n+=1e-4),s>=16?s--:s++;let r=aw(l.trim()),f=aC(t,n,r);null!=e&&null!=(d=e.cues)&&d.getCueById(f)||((a=new c(t,n,r)).id=f,a.line=h+1,a.align="left",a.position=10+Math.min(80,10*Math.floor(8*s/32)),u.push(a))}return e&&u.length&&(u.sort((e,t)=>"auto"===e.line||"auto"===t.line?0:e.line>8&&t.line>8?t.line-e.line:e.line-t.line),u.forEach(t=>iq(e,t))),u}},enableWebVTT:!0,enableIMSC1:!0,enableCEA708Captions:!0,captionsTextTrack1Label:"English",captionsTextTrack1LanguageCode:"en",captionsTextTrack2Label:"Spanish",captionsTextTrack2LanguageCode:"es",captionsTextTrack3Label:"Unknown CC",captionsTextTrack3LanguageCode:"",captionsTextTrack4Label:"Unknown CC",captionsTextTrack4LanguageCode:"",renderTextTracksNatively:!0}),{},{subtitleStreamController:i9,subtitleTrackController:iK,timelineController:aU,audioStreamController:ie,audioTrackController:io,emeController:iB,cmcdController:iN,contentSteeringController:iM,interstitialsController:i6});class aX extends t2{constructor(e,t){super("gap-controller",e.logger),this.hls=null,this.fragmentTracker=null,this.media=null,this.mediaSource=void 0,this.nudgeRetry=0,this.stallReported=!1,this.stalled=null,this.moved=!1,this.seeking=!1,this.buffered={},this.lastCurrentTime=0,this.ended=0,this.waiting=0,this.onMediaPlaying=()=>{this.ended=0,this.waiting=0},this.onMediaWaiting=()=>{var e;null!=(e=this.media)&&e.seeking||(this.waiting=self.performance.now(),this.tick())},this.onMediaEnded=()=>
53{if(this.hls){var e;this.ended=(null==(e=this.media)?void 0:e.currentTime)||1,this.hls.trigger(ed.MEDIA_ENDED,{stalled:!1})}},this.hls=e,this.fragmentTracker=t,this.registerListeners()}registerListeners(){let{hls:e}=this;e&&(e.on(ed.MEDIA_ATTACHED,this.onMediaAttached,this),e.on(ed.MEDIA_DETACHING,this.onMediaDetaching,this),e.on(ed.BUFFER_APPENDED,this.onBufferAppended,this))}unregisterListeners(){let{hls:e}=this;e&&(e.off(ed.MEDIA_ATTACHED,this.onMediaAttached,this),e.off(ed.MEDIA_DETACHING,this.onMediaDetaching,this),e.off(ed.BUFFER_APPENDED,this.onBufferAppended,this))}destroy(){super.destroy(),this.unregisterListeners(),this.media=this.hls=this.fragmentTracker=null,this.mediaSource=void 0}onMediaAttached(e,t){this.setInterval(100),this.mediaSource=t.mediaSource;let n=this.media=t.media;i4(n,"playing",this.onMediaPlaying),i4(n,"waiting",this.onMediaWaiting),i4(n,"ended",this.onMediaEnded)}onMediaDetaching(e,t){this.clearInterval();let{media:n}=this;n&&(i5(n,"playing",this.onMediaPlaying),i5(n,"waiting",this.onMediaWaiting),i5(n,"ended",this.onMediaEnded),this.media=null),this.mediaSource=void 0}onBufferAppended(e,t){this.buffered=t.timeRanges}get hasBuffered(){return Object.keys(this.buffered).length>0}tick(){var e;if(!(null!=(e=this.media)&&e.readyState)||!this.hasBuffered)return;let t=this.media.currentTime;this.poll(t,this.lastCurrentTime),this.lastCurrentTime=t}poll(e,t){var n,r,i;let a=null==(n=this.hls)?void 0:n.config;if(!a)return;let{media:o,stalled:s}=this;if(!o)return;let{seeking:l}=o,u=this.seeking&&!l,c=!this.seeking&&l,d=o.paused&&!l||o.ended||0===o.playbackRate;if(this.seeking=l,e!==t){t&&(this.ended=0),this.moved=!0,!l&&(this.nudgeRetry=0,a.nudgeOnVideoHole&&!d&&e>t&&this.nudgeOnVideoHole(e,t)),0===this.waiting&&this.stallResolved(e);return}if(c||u){u&&this.stallResolved(e);return}if(d){this.nudgeRetry=0,this.stallResolved(e),!this.ended&&o.ended&&this.hls&&(this.ended=e||1,this.hls.trigger(ed.MEDIA_ENDED,{stalled:!1}));return}if(!t8.getBuffered(o).length){this.nudgeRetry=0;return}let h=t8.bufferInfo(o,e,0),f=h.nextStart||0,p=this.fragmentTracker;if(l&&p&&this.hls){let t=aJ(this.hls.inFlightFragments,e),n=h.len>2,r=!f||t||f-e>2&&!p.getPartialFragment(e);if(n||r)return;this.moved=!1}let m=null==(r=this.hls)?void 0:r.latestLevelDetails;if(!this.moved&&null!==this.stalled&&p){if(!(h.len>0)&&!f)return;
53let t=Math.max(f,h.start||0)-e,n=null!=m&&m.live?2*m.targetduration:2,r=p.getPartialFragment(e);if(t>0&&(t<=n||r)){o.paused||this._trySkipBufferHole(r);return}}let g=a.detectStallWithCurrentTimeMs,v=self.performance.now(),y=this.waiting;if(null===s){y>0&&v-y<g?this.stalled=y:this.stalled=v;return}let b=v-s;if(!l&&(b>=g||y)&&this.hls){if((null==(i=this.mediaSource)?void 0:i.readyState)==="ended"&&!(null!=m&&m.live)&&1>Math.abs(e-((null==m?void 0:m.edge)||0))){if(this.ended)return;this.ended=e||1,this.hls.trigger(ed.MEDIA_ENDED,{stalled:!0});return}if(this._reportStall(h),!this.media||!this.hls)return}let A=t8.bufferInfo(o,e,a.maxBufferHole);this._tryFixBufferStall(A,b)}stallResolved(e){let t=this.stalled;if(t&&this.hls&&(this.stalled=null,this.stallReported)){let n=self.performance.now()-t;this.log(`playback not stuck anymore @${e}, after ${Math.round(n)}ms`),this.stallReported=!1,this.waiting=0,this.hls.trigger(ed.STALL_RESOLVED,{})}}nudgeOnVideoHole(e,t){var n;let r=this.buffered.video;if(this.hls&&this.media&&this.fragmentTracker&&null!=(n=this.buffered.audio)&&n.length&&r&&r.length>1&&e>r.end(0)){let n=t8.bufferedInfo(t8.timeRangesToArray(this.buffered.audio),e,0);if(n.len>1&&t>=n.start){let n=t8.timeRangesToArray(r),i=t8.bufferedInfo(n,t,0).bufferedIndex;if(i>-1&&i<n.length-1){let t=t8.bufferedInfo(n,e,0).bufferedIndex,r=n[i].end,a=n[i+1].start;if((-1===t||t>i)&&a-r<1&&e-r<2){let n=Error(`nudging playhead to flush pipeline after video hole. currentTime: ${e} hole: ${r} -> ${a} buffered index: ${t}`);this.warn(n.message),this.media.currentTime+=1e-6;let i=this.fragmentTracker.getPartialFragment(e)||void 0,o=t8.bufferInfo(this.media,e,0);this.hls.trigger(ed.ERROR,{type:eu.MEDIA_ERROR,details:ec.BUFFER_SEEK_OVER_HOLE,fatal:!1,error:n,reason:n.message,frag:i,buffer:o.len,bufferInfo:o})}}}}}_tryFixBufferStall(e,t){var n,r;let{fragmentTracker:i,media:a}=this,o=null==(n=this.hls)?void 0:n.config;if(!a||!i||!o)return;let s=a.currentTime,l=null==(r=this.hls)?void 0:r.latestLevelDetails,u=i.getPartialFragment(s);if((u||null!=l&&l.live&&s<l.fragmentStart)&&(this._trySkipBufferHole(u)||!this.media))return;let c=e.buffered;(c&&c.length>1&&e.len>o.maxBufferHole||e.nextStart&&e.nextStart-s<o.maxBufferHole)&&(t>1e3*o.highBufferWatchdogPeriod||this.waiting)&&(this.warn("Trying to nudge playhead over buffer-hole"),this._tryNudgeBuffer(e))}_reportStall(e){let{hls:t,media:n,stallReported:r,stalled:i}=this;if(!r&&null!==i&&n&&t){this.stallReported=!0;let r=Error(`Playback stalling at @${n.currentTime} due to low buffer (${tb(e)})`);this.warn(r.message),t.trigger(ed.ERROR,{type:eu.MEDIA_ERROR,details:ec.BUFFER_STALLED_ERROR,fatal:!1,error:r,buffer:e.len,bufferInfo:e,stalled:{start:i}})}}_trySkipBufferHole(e){var t,n;let{fragmentTracker:r,media:i}=this,a=null==(t=this.hls)?void 0:t.config;if(!i||!r||!a)return 0;let o=i.currentTime,s=t8.bufferInfo(i,o,0),l=o<s.start?s.start:s.nextStart;if(l&&this.hls){let t=s.len<=a.maxBufferHole,u=s.len>0&&s.len<1&&i.readyState<3,c=l-o;if(c>0&&(t||u)){if(c>a.maxBufferHole){let t=!1;if(0===o){let e=r.getAppendedFrag(0,ef.MAIN);e&&l<e.end&&(t=!0)}if(!t){let t=e||r.getAppendedFrag(o,ef.MAIN);if(t){if(!(null!=(n=this.hls.loadLevelObj)&&n.details)||aJ(this.hls.inFlightFragments,l))return 0;let e=!1,i=t.end;for(;i<l;){let t=r.getPartialFragment(i);if(t)i+=t.duration;else{e=!0;break}}if(e)return 0}}}let t=Math.max(l+.05,o+.1);if(this.warn(`skipping hole, adjusting currentTime from ${o} to ${t}`),this.moved=!0,i.currentTime=t,!(null!=e&&e.gap)){let n=Error(`fragment loaded with buffer holes, seeking from ${o} to ${t}`);this.hls.trigger(ed.ERROR,{type:eu.MEDIA_ERROR,details:ec.BUFFER_SEEK_OVER_HOLE,fatal:!1,error:n,reason:n.message,frag:e||void 0,buffer:s.len,bufferInfo:s})}return t}}return 0}_tryNudgeBuffer(e){let{hls:t,media:n,nudgeRetry:r}=this,i=null==t?void 0:t.config;if(!n||!i)return 0;let a=n.currentTime;if(this.nudgeRetry++,r<i.nudgeMaxRetry){let o=a+(r+1)*i.nudgeOffset,s=Error(`Nudging 'currentTime' from ${a} to ${o}`);this.warn(s.message),n.currentTime=o,t.trigger(ed.ERROR,{type:eu.MEDIA_ERROR,details:ec.BUFFER_NUDGE_ON_STALL,error:s,fatal:!1,buffer:e.len,bufferInfo:e})}else{let n=Error(`Playhead still not moving while enough data buffered @${a} after ${i.nudgeMaxRetry} nudges`);this.error(n.message),t.trigger(ed.ERROR,{type:eu.MEDIA_ERROR,details:ec.BUFFER_STALLED_ERROR,error:n,fatal:!0,buffer:e.len,bufferInfo:e})}}}function aJ(e,t){let n=a0(e.main);if(n&&n.start<=t)return n;let r=a0(e.audio);return r&&r.start<=t?r:null}function a0(e){if(!e)return null;switch(e.state){case nJ.IDLE:case nJ.STOPPED:case nJ.ENDED:case nJ.ERROR:return null}return e.frag}function a1(){if("undefined"!=typeof self)return self.VTTCue||self.TextTrackCue}function a2(e,t,n,r,i){let a=new e(t,n,"");
53try{a.value=r,i&&(a.type=i)}catch(o){a=new e(t,n,tb(i?ey({type:i},r):r))}return a}let a3=(()=>{let e=a1();try{e&&new e(0,Number.POSITIVE_INFINITY,"")}catch(e){return Number.MAX_VALUE}return Number.POSITIVE_INFINITY})();class a4{constructor(e){this.hls=void 0,this.id3Track=null,this.media=null,this.dateRangeCuesAppended={},this.removeCues=!0,this.onEventCueEnter=()=>{this.hls&&this.hls.trigger(ed.EVENT_CUE_ENTER,{})},this.hls=e,this._registerListeners()}destroy(){this._unregisterListeners(),this.id3Track=null,this.media=null,this.dateRangeCuesAppended={},this.hls=this.onEventCueEnter=null}_registerListeners(){let{hls:e}=this;e.on(ed.MEDIA_ATTACHING,this.onMediaAttaching,this),e.on(ed.MEDIA_ATTACHED,this.onMediaAttached,this),e.on(ed.MEDIA_DETACHING,this.onMediaDetaching,this),e.on(ed.MANIFEST_LOADING,this.onManifestLoading,this),e.on(ed.FRAG_PARSING_METADATA,this.onFragParsingMetadata,this),e.on(ed.BUFFER_FLUSHING,this.onBufferFlushing,this),e.on(ed.LEVEL_UPDATED,this.onLevelUpdated,this),e.on(ed.LEVEL_PTS_UPDATED,this.onLevelPtsUpdated,this)}_unregisterListeners(){let{hls:e}=this;e.off(ed.MEDIA_ATTACHING,this.onMediaAttaching,this),e.off(ed.MEDIA_ATTACHED,this.onMediaAttached,this),e.off(ed.MEDIA_DETACHING,this.onMediaDetaching,this),e.off(ed.MANIFEST_LOADING,this.onManifestLoading,this),e.off(ed.FRAG_PARSING_METADATA,this.onFragParsingMetadata,this),e.off(ed.BUFFER_FLUSHING,this.onBufferFlushing,this),e.off(ed.LEVEL_UPDATED,this.onLevelUpdated,this),e.off(ed.LEVEL_PTS_UPDATED,this.onLevelPtsUpdated,this)}onMediaAttaching(e,t){var n;this.media=t.media,(null==(n=t.overrides)?void 0:n.cueRemoval)===!1&&(this.removeCues=!1)}onMediaAttached(){let e=this.hls.latestLevelDetails;e&&this.updateDateRangeCues(e)}onMediaDetaching(e,t){this.media=null,t.transferMedia||(this.id3Track&&(this.removeCues&&iQ(this.id3Track,this.onEventCueEnter),this.id3Track=null),this.dateRangeCuesAppended={})}onManifestLoading(){this.dateRangeCuesAppended={}}createTrack(e){let t=this.getID3Track(e.textTracks);return t.mode="hidden",t}getID3Track(e){if(this.media){for(let t=0;t<e.length;t++){let n=e[t];if("metadata"===n.kind&&"id3"===n.label)return iz(n,this.media),n}return this.media.addTextTrack("metadata","id3")}}onFragParsingMetadata(e,t){if(!this.media)return;let{hls:{config:{enableEmsgMetadataCues:n,enableID3MetadataCues:r}}}=this;if(!n&&!r)return;let{samples:i}=t;this.id3Track||(this.id3Track=this.createTrack(this.media));let a=a1();if(a)for(let e=0;e<i.length;e++){let t=i[e].type;if(t===rd.emsg&&!n||!r)continue;let o=rl(i[e].data);if(o){let n=i[e].pts,r=n+i[e].duration;r>a3&&(r=a3),r-n<=0&&(r=n+.25);for(let e=0;e<o.length;e++){let i=o[e];if(!ru(i)){this.updateId3CueEnds(n,t);let e=a2(a,n,r,i,t);e&&this.id3Track.addCue(e)}}}}}updateId3CueEnds(e,t){var n;let r=null==(n=this.id3Track)?void 0:n.cues;if(r)for(let n=r.length;n--;){let i=r[n];i.type===t&&i.startTime<e&&i.endTime===a3&&(i.endTime=e)}}onBufferFlushing(e,{startOffset:t,endOffset:n,type:r}){let{id3Track:i,hls:a}=this;if(!a)return;let{config:{enableEmsgMetadataCues:o,enableID3MetadataCues:s}}=a;i&&(o||s)&&iH(i,t,n,"audio"===r?e=>e.type===rd.audioId3&&s:"video"===r?e=>e.type===rd.emsg&&o:e=>e.type===rd.audioId3&&s||e.type===rd.emsg&&o)}onLevelUpdated(e,{details:t}){this.updateDateRangeCues(t,!0)}onLevelPtsUpdated(e,t){Math.abs(t.drift)>.01&&this.updateDateRangeCues(t.details)}updateDateRangeCues(e,t){var n,r;if(!this.media||!e.hasProgramDateTime||!this.hls.config.enableDateRangeMetadataCues)return;let{id3Track:i}=this,{dateRanges:a}=e,o=Object.keys(a),s=this.dateRangeCuesAppended;if(i&&t){if(null!=(n=i.cues)&&n.length){let e=Object.keys(s).filter(e=>!o.includes(e));for(let t=e.length;t--;){let n=e[t],r=s[n].cues;delete s[n],Object.keys(r).forEach(e=>{try{let t=r[e];t.removeEventListener("enter",this.onEventCueEnter),i.removeCue(t)}catch(e){}})}}else s=this.dateRangeCuesAppended={}}let l=e.fragments[e.fragments.length-1];if(0===o.length||!eo(null==l?void 0:l.programDateTime))return;this.id3Track||(this.id3Track=this.createTrack(this.media));let u=a1();for(let e=0;e<o.length;e++){let t=o[e],n=a[t],i=n.startTime,l=s[t],c=(null==l?void 0:l.cues)||{}
53,d=(null==l?void 0:l.durationKnown)||!1,h=a3,{duration:f,endDate:p}=n;if(p&&null!==f)h=i+f,d=!0;else if(n.endOnNext&&!d){let e=o.reduce((e,t)=>{if(t!==n.id){let r=a[t];if(r.class===n.class&&r.startDate>n.startDate&&(!e||n.startDate<e.startDate))return r}return e},null);e&&(h=e.startTime,d=!0)}let m=Object.keys(n.attr);for(let e=0;e<m.length;e++){let a=m[e];if(!("ID"!==a&&"CLASS"!==a&&"CUE"!==a&&"START-DATE"!==a&&"DURATION"!==a&&"END-DATE"!==a&&"END-ON-NEXT"!==a))continue;let o=c[a];if(o)d&&!l.durationKnown?o.endTime=h:Math.abs(o.startTime-i)>.01&&(o.startTime=i,o.endTime=h);else if(u){let e=n.attr[a];("SCTE35-OUT"===a||"SCTE35-IN"===a||"SCTE35-CMD"===a)&&(r=e,e=Uint8Array.from(r.replace(/^0x/,"").replace(/([\da-fA-F]{2}) ?/g,"0x$1 ").replace(/ +$/,"").split(" ")).buffer);let o=a2(u,i,h,{key:a,data:e},rd.dateRange);o&&(o.id=t,this.id3Track.addCue(o),c[a]=o,this.hls.config.interstitialsController&&("X-ASSET-LIST"===a||"X-ASSET-URL"===a)&&o.addEventListener("enter",this.onEventCueEnter))}}s[t]={cues:c,dateRange:n,durationKnown:d}}}}class a5{constructor(e){this.hls=void 0,this.config=void 0,this.media=null,this.currentTime=0,this.stallCount=0,this._latency=null,this._targetLatencyUpdated=!1,this.onTimeupdate=()=>{let{media:e}=this,t=this.levelDetails;if(!e||!t)return;this.currentTime=e.currentTime;let n=this.computeLatency();if(null===n)return;this._latency=n;let{lowLatencyMode:r,maxLiveSyncPlaybackRate:i}=this.config;if(!r||1===i||!t.live)return;let a=this.targetLatency;if(null===a)return;let o=n-a;if(o<Math.min(this.maxLatency,a+t.targetduration)&&o>.05&&this.forwardBufferLength>1){let t=Math.round(2/(1+Math.exp(-.75*o-this.edgeStalled))*20)/20;this.changeMediaPlaybackRate(e,Math.min(Math.min(2,Math.max(1,i)),Math.max(1,t)))}else 1!==e.playbackRate&&0!==e.playbackRate&&this.changeMediaPlaybackRate(e,1)},this.hls=e,this.config=e.config,this.registerListeners()}get levelDetails(){var e;return(null==(e=this.hls)?void 0:e.latestLevelDetails)||null}get latency(){return this._latency||0}get maxLatency(){let{config:e}=this;if(void 0!==e.liveMaxLatencyDuration)return e.liveMaxLatencyDuration;let t=this.levelDetails;return t?e.liveMaxLatencyDurationCount*t.targetduration:0}get targetLatency(){let e=this.levelDetails;if(null===e||null===this.hls)return null;let{holdBack:t,partHoldBack:n,targetduration:r}=e,{liveSyncDuration:i,liveSyncDurationCount:a,lowLatencyMode:o}=this.config,s=this.hls.userConfig,l=o&&n||t;return(this._targetLatencyUpdated||s.liveSyncDuration||s.liveSyncDurationCount||0===l)&&(l=void 0!==i?i:a*r),l+Math.min(this.stallCount*this.config.liveSyncOnStallIncrease,r)}set targetLatency(e){this.stallCount=0,this.config.liveSyncDuration=e,this._targetLatencyUpdated=!0}get liveSyncPosition(){let e=this.estimateLiveEdge(),t=this.targetLatency;if(null===e||null===t)return null;let n=this.levelDetails;if(null===n)return null;let r=n.edge,i=e-t-this.edgeStalled;return Math.min(Math.max(r-n.totalduration,i),r-(this.config.lowLatencyMode&&n.partTarget||n.targetduration))}get drift(){let e=this.levelDetails;return null===e?1:e.drift}get edgeStalled(){let e=this.levelDetails;if(null===e)return 0;let t=3*(this.config.lowLatencyMode&&e.partTarget||e.targetduration);return Math.max(e.age-t,0)}get forwardBufferLength(){let{media:e}=this,t=this.levelDetails;if(!e||!t)return 0;let n=e.buffered.length;return(n?e.buffered.end(n-1):t.edge)-this.currentTime}destroy(){this.unregisterListeners(),this.onMediaDetaching(),this.hls=null}registerListeners(){let{hls:e}=this;e&&(e.on(ed.MEDIA_ATTACHED,this.onMediaAttached,this),e.on(ed.MEDIA_DETACHING,this.onMediaDetaching,this),e.on(ed.MANIFEST_LOADING,this.onManifestLoading,this),e.on(ed.LEVEL_UPDATED,this.onLevelUpdated,this),e.on(ed.ERROR,this.onError,this))}unregisterListeners(){let{hls:e}=this;e&&(e.off(ed.MEDIA_ATTACHED,this.onMediaAttached,this),e.off(ed.MEDIA_DETACHING,this.onMediaDetaching,this),e.off(ed.MANIFEST_LOADING,this.onManifestLoading,this),e.off(ed.LEVEL_UPDATED,this.onLevelUpdated,this),e.off(ed.ERROR,this.onError,this))}onMediaAttached(e,t){this.media=t.media,this.media.addEventListener("timeupdate",this.onTimeupdate)}onMediaDetaching(){this.media&&(this.media.removeEventListener("timeupdate",this.onTimeupdate),this.media=null)}onManifestLoading(){this._latency=null,this.stallCount=0}onLevelUpdated(e,{details:t}){t.advanced&&this.onTimeupdate(),!t.live&&this.media&&this.media.removeEventListener("timeupdate",this.onTimeupdate)}onError(e,t){var n;t.details===ec.BUFFER_STALLED_ERROR&&(this.stallCount++,this.hls&&null!=(n=this.levelDetails)&&n.live&&this.hls.logger.warn("[latency-controller]: Stall detected, adjusting target latency"))}changeMediaPlaybackRate(e,t){var n,r;e.playbackRate!==t&&(null==(n=this.hls)||n.logger.debug(`[latency-controller]: latency=${this.latency.toFixed(3)}, targetLatency=${null==(r=this.targetLatency)?void 0:r.toFixed(3)}, forwardBufferLength=${this.forwardBufferLength.toFixed(3)}: adjusting playback rate from ${e.playbackRate} to ${t}`),e.playbackRate=t)}estimateLiveEdge(){let e=this.levelDetails;return null===e?null:e.edge+e.age}computeLatency(){let e=this.estimateLiveEdge();return null===e?null:e-this.currentTime}}class a8 extends it{constructor(e,t){super(e,"level-controller"),this._levels=[],this._firstLevel=-1,this._maxAutoLevel=-1,this._startLevel=void 0,this.currentLevel=null,this.currentLevelIndex=-1,this.manualLevelIndex=-1,this.steering=void 0,this.onParsedComplete=void 0,this.steering=t,this._registerListeners()}_registerListeners(){let{hls:e}=this;e.on(ed.MANIFEST_LOADING,this.onManifestLoading,this),e.on(ed.MANIFEST_LOADED,this.onManifestLoaded,this),e.on(ed.LEVEL_LOADED,this.onLevelLoaded,this),e.on(ed.LEVELS_UPDATED,this.onLevelsUpdated,this),e.on(ed.FRAG_BUFFERED,this.onFragBuffered,this),e.on(ed.ERROR,this.onError,this)}_unregisterListeners(){let{hls:e}=this;e.off(ed.MANIFEST_LOADING,this.onManifestLoading,this),e.off(ed.MANIFEST_LOADED,this.onManifestLoaded,this),e.off(ed.LEVEL_LOADED,this.onLevelLoaded,this),e.off(ed.LEVELS_UPDATED,this.onLevelsUpdated,this),e.off(ed.FRAG_BUFFERED,this.onFragBuffered,this),e.off(ed.ERROR,this.onError,this)}destroy(){this._unregisterListeners(),this.steering=null,this.resetLevels(),super.destroy()}
53stopLoad(){this._levels.forEach(e=>{e.loadError=0,e.fragmentError=0}),super.stopLoad()}resetLevels(){this._startLevel=void 0,this.manualLevelIndex=-1,this.currentLevelIndex=-1,this.currentLevel=null,this._levels=[],this._maxAutoLevel=-1}onManifestLoading(e,t){this.resetLevels()}onManifestLoaded(e,t){let n=this.hls.config.preferManagedMediaSource,r=[],i={},a={},o=!1,s=!1,l=!1;t.levels.forEach(e=>{var t;let u=e.attrs,{audioCodec:c,videoCodec:d}=e;c&&(e.audioCodec=c=tr(c,n)||void 0),(null==(t=d)?void 0:t.indexOf("avc1"))===0&&(d=e.videoCodec=function(e){let t=e.split(",");for(let e=0;e<t.length;e++){let n=t[e].split(".");if(n.length>2){let r=n.shift()+".";r+=parseInt(n.shift()).toString(16)+("000"+parseInt(n.shift()).toString(16)).slice(-4),t[e]=r}}return t.join(",")}(d));let{width:h,height:f,unknownCodecs:p}=e,m=p?p.length:0;if(p)for(let t=m;t--;){let n=p[t];this.isAudioSupported(n)?(e.audioCodec=c=c?`${c},${n}`:n,m--,e4.audio[c.substring(0,4)]=2):this.isVideoSupported(n)&&(e.videoCodec=d=d?`${d},${n}`:n,m--,e4.video[d.substring(0,4)]=2)}if(o||(o=!!(h&&f)),s||(s=!!d),l||(l=!!c),m||c&&!this.isAudioSupported(c)||d&&!this.isVideoSupported(d)){this.log(`Some or all CODECS not supported "${u.CODECS}"`);return}let{CODECS:g,"FRAME-RATE":v,"HDCP-LEVEL":y,"PATHWAY-ID":b,RESOLUTION:A,"VIDEO-RANGE":E}=u,w=`${b||"."}-`,x=`${w}${e.bitrate}-${A}-${v}-${g}-${E}-${y}`;if(i[x]){if(i[x].uri===e.url||e.attrs["PATHWAY-ID"])i[x].addGroupId("audio",u.AUDIO),i[x].addGroupId("text",u.SUBTITLES);else{let t=a[x]+=1;e.attrs["PATHWAY-ID"]=Array(t+1).join(".");let n=this.createLevel(e);i[x]=n,r.push(n)}}else{let t=this.createLevel(e);i[x]=t,a[x]=1,r.push(t)}}),this.filterAndSortMediaOptions(r,t,o,s,l)}createLevel(e){let t=new tg(e),n=e.supplemental;if(null!=n&&n.videoCodec&&!this.isVideoSupported(n.videoCodec)){let e=Error(`SUPPLEMENTAL-CODECS not supported "${n.videoCodec}"`);this.log(e.message),t.supportedResult=tl(e,[])}return t}isAudioSupported(e){return e8(e,"audio",this.hls.config.preferManagedMediaSource)}isVideoSupported(e){return e8(e,"video",this.hls.config.preferManagedMediaSource)}filterAndSortMediaOptions(e,t,n,r,i){let a=[],o=[],s=e;if((n||r)&&i&&(s=s.filter(({videoCodec:e,videoRange:t,width:n,height:r})=>{var i;return(!!e||!!(n&&r))&&!!(i=t)&&th.indexOf(i)>-1})),0===s.length){Promise.resolve().then(()=>{if(this.hls){let e="no level with compatible codecs found in manifest",n=e;t.levels.length&&(n=`one or more CODECS in variant not supported: ${tb(t.levels.map(e=>e.attrs.CODECS).filter((e,t,n)=>n.indexOf(e)===t))}`,this.warn(n),e+=` (${n})`);let r=Error(e);this.hls.trigger(ed.ERROR,{type:eu.MEDIA_ERROR,details:ec.MANIFEST_INCOMPATIBLE_CODECS_ERROR,fatal:!0,url:t.url,error:r,reason:n})}});return}t.audioTracks&&a6(a=t.audioTracks.filter(e=>!e.audioCodec||this.isAudioSupported(e.audioCodec))),t.subtitles&&a6(o=t.subtitles);let l=s.slice(0);s.sort((e,t)=>{if(e.attrs["HDCP-LEVEL"]!==t.attrs["HDCP-LEVEL"])return(e.attrs["HDCP-LEVEL"]||"")>(t.attrs["HDCP-LEVEL"]||"")?1:-1;if(n&&e.height!==t.height)return e.height-t.height;if(e.frameRate!==t.frameRate)return e.frameRate-t.frameRate;if(e.videoRange!==t.videoRange)return th.indexOf(e.videoRange)-th.indexOf(t.videoRange);if(e.videoCodec!==t.videoCodec){let n=e7(e.videoCodec),r=e7(t.videoCodec);if(n!==r)return r-n}if(e.uri===t.uri&&e.codecSet!==t.codecSet){let n=te(e.codecSet),r=te(t.codecSet);if(n!==r)return r-n}return e.averageBitrate!==t.averageBitrate?e.averageBitrate-t.averageBitrate:0});let u=l[0];if(this.steering&&(s=this.steering.filterParsedLevels(s)).length!==l.length){for(let e=0;e<l.length;e++)if(l[e].pathwayId===s[0].pathwayId){u=l[e];break}}this._levels=s;for(let e=0;e<s.length;e++)if(s[e]===u){var c;this._firstLevel=e;let t=u.bitrate,n=this.hls.bandwidthEstimate;if(this.log(`manifest loaded, ${s.length} level(s) found, first bitrate: ${t}`),(null==(c=this.hls.userConfig)?void 0:c.abrEwmaDefaultEstimate)===void 0){let e=Math.min(t,this.hls.config.abrEwmaDefaultEstimateMax);e>n&&n===this.hls.abrEwmaDefaultEstimate&&(this.hls.bandwidthEstimate=e)}break}let d=i&&!r,h=this.hls.config,f=!!(h.audioStreamController&&h.audioTrackController),p={levels:s,audioTracks:a,subtitleTracks:o,sessionData:t.sessionData,sessionKeys:t.sessionKeys,firstLevel:this._firstLevel,stats:t.stats,audio:i,video:r,altAudio:f&&!d&&a.some(e=>!!e.url)};this.hls.trigger(ed.MANIFEST_PARSED,p)}get levels(){return 0===this._levels.length?null:this._levels}get loadLevelObj(){return this.currentLevel}get level(){return this.currentLevelIndex}set level(e){let t=this._levels;if(0===t.length)return;if(e<0||e>=t.length){let n=Error("invalid level idx"),r=e<0;
53if(this.hls.trigger(ed.ERROR,{type:eu.OTHER_ERROR,details:ec.LEVEL_SWITCH_ERROR,level:e,fatal:r,error:n,reason:n.message}),r)return;e=Math.min(e,t.length-1)}let n=this.currentLevelIndex,r=this.currentLevel,i=r?r.attrs["PATHWAY-ID"]:void 0,a=t[e],o=a.attrs["PATHWAY-ID"];if(this.currentLevelIndex=e,this.currentLevel=a,n===e&&r&&i===o)return;this.log(`Switching to level ${e} (${a.height?a.height+"p ":""}${a.videoRange?a.videoRange+" ":""}${a.codecSet?a.codecSet+" ":""}@${a.bitrate})${o?" with Pathway "+o:""} from level ${n}${i?" with Pathway "+i:""}`);let s={level:e,attrs:a.attrs,details:a.details,bitrate:a.bitrate,averageBitrate:a.averageBitrate,maxBitrate:a.maxBitrate,realBitrate:a.realBitrate,width:a.width,height:a.height,codecSet:a.codecSet,audioCodec:a.audioCodec,videoCodec:a.videoCodec,audioGroups:a.audioGroups,subtitleGroups:a.subtitleGroups,loaded:a.loaded,loadError:a.loadError,fragmentError:a.fragmentError,name:a.name,id:a.id,uri:a.uri,url:a.url,urlId:0,audioGroupIds:a.audioGroupIds,textGroupIds:a.textGroupIds};this.hls.trigger(ed.LEVEL_SWITCHING,s);let l=a.details;if(!l||l.live){let e=this.switchParams(a.uri,null==r?void 0:r.details,l);this.loadPlaylist(e)}}get manualLevel(){return this.manualLevelIndex}set manualLevel(e){this.manualLevelIndex=e,void 0===this._startLevel&&(this._startLevel=e),-1!==e&&(this.level=e)}get firstLevel(){return this._firstLevel}set firstLevel(e){this._firstLevel=e}get startLevel(){if(void 0===this._startLevel){let e=this.hls.config.startLevel;return void 0!==e?e:this.hls.firstAutoLevel}return this._startLevel}set startLevel(e){this._startLevel=e}get pathways(){return this.steering?this.steering.pathways():[]}get pathwayPriority(){return this.steering?this.steering.pathwayPriority:null}set pathwayPriority(e){if(this.steering){let t=this.steering.pathways(),n=e.filter(e=>-1!==t.indexOf(e));if(e.length<1){this.warn(`pathwayPriority ${e} should contain at least one pathway from list: ${t}`);return}this.steering.pathwayPriority=n}}onError(e,t){!t.fatal&&t.context&&t.context.type===eh.LEVEL&&t.context.level===this.level&&this.checkRetry(t)}onFragBuffered(e,{frag:t}){if(void 0!==t&&t.type===ef.MAIN){let e=t.elementaryStreams;if(!Object.keys(e).some(t=>!!e[t]))return;let n=this._levels[t.level];null!=n&&n.loadError&&(this.log(`Resetting level error count of ${n.loadError} on frag buffered`),n.loadError=0)}}onLevelLoaded(e,t){var n,r;let{level:i,details:a}=t,o=t.levelInfo;if(!o){this.warn(`Invalid level index ${i}`),null!=(r=t.deliveryDirectives)&&r.skip&&(a.deltaUpdateFailed=!0);return}if(o===this.currentLevel||t.withoutMultiVariant){0===o.fragmentError&&(o.loadError=0);let e=o.details;e===t.details&&e.advanced&&(e=void 0),this.playlistLoaded(i,t,e)}else null!=(n=t.deliveryDirectives)&&n.skip&&(a.deltaUpdateFailed=!0)}loadPlaylist(e){super.loadPlaylist(),this.shouldLoadPlaylist(this.currentLevel)&&this.scheduleLoading(this.currentLevel,e)}loadingPlaylist(e,t){super.loadingPlaylist(e,t);let n=this.getUrlWithDirectives(e.uri,t),r=this.currentLevelIndex,i=e.attrs["PATHWAY-ID"],a=e.details,o=null==a?void 0:a.age;this.log(`Loading level index ${r}${(null==t?void 0:t.msn)!==void 0?" at sn "+t.msn+" part "+t.part:""}${i?" Pathway "+i:""}${o&&a.live?" age "+o.toFixed(1)+(a.type?" "+a.type:""):""} ${n}`),this.hls.trigger(ed.LEVEL_LOADING,{url:n,level:r,levelInfo:e,pathwayId:e.attrs["PATHWAY-ID"],id:0,deliveryDirectives:t||null})}get nextLoadLevel(){return -1!==this.manualLevelIndex?this.manualLevelIndex:this.hls.nextAutoLevel}set nextLoadLevel(e){this.level=e,-1===this.manualLevelIndex&&(this.hls.nextAutoLevel=e)}removeLevel(e){var t;if(1===this._levels.length)return;let n=this._levels.filter((t,n)=>n!==e||(this.steering&&this.steering.removeLevel(t),t===this.currentLevel&&(this.currentLevel=null,this.currentLevelIndex=-1,t.details&&t.details.fragments.forEach(e=>e.level=-1)),!1));nG(n),this._levels=n,this.currentLevelIndex>-1&&null!=(t=this.currentLevel)&&t.details&&(this.currentLevelIndex=this.currentLevel.details.fragments[0].level),this.manualLevelIndex>-1&&(this.manualLevelIndex=this.currentLevelIndex);let r=n.length-1;this._firstLevel=Math.min(this._firstLevel,r),this._startLevel&&(this._startLevel=Math.min(this._startLevel,r)),this.hls.trigger(ed.LEVELS_UPDATED,{levels:n})}onLevelsUpdated(e,{levels:t}){this._levels=t}checkMaxAutoUpdated(){let{autoLevelCapping:e,maxAutoLevel:t,maxHdcpLevel:n}=this.hls;this._maxAutoLevel!==t&&(this._maxAutoLevel=t,this.hls.trigger(ed.MAX_AUTO_LEVEL_UPDATED,{autoLevelCapping:e,levels:this.levels,maxAutoLevel:t,minAutoLevel:this.hls.minAutoLevel,maxHdcpLevel:n}))}}function a6(e){let t={};
53e.forEach(e=>{let n=e.groupId||"";e.id=t[n]=t[n]||0,t[n]++})}function a9(){return self.SourceBuffer||self.WebKitSourceBuffer}function a7(){if(!eS())return!1;let e=a9();return!e||e.prototype&&"function"==typeof e.prototype.appendBuffer&&"function"==typeof e.prototype.remove}class oe extends n0{constructor(e,t,n){super(e,t,n,"stream-controller",ef.MAIN),this.audioCodecSwap=!1,this.level=-1,this._forceStartLoad=!1,this._hasEnoughToStart=!1,this.altAudio=0,this.audioOnly=!1,this.fragPlaying=null,this.fragLastKbps=0,this.couldBacktrack=!1,this.backtrackFragment=null,this.audioCodecSwitch=!1,this.videoBuffer=null,this.onMediaPlaying=()=>{this.tick()},this.onMediaSeeked=()=>{let e=this.media,t=e?e.currentTime:null;if(null===t||!eo(t)||(this.log(`Media seeked to ${t.toFixed(3)}`),!this.getBufferedFrag(t)))return;let n=this.getFwdBufferInfoAtPos(e,t,ef.MAIN,0);if(null===n||0===n.len){this.warn(`Main forward buffer length at ${t} on "seeked" event ${n?n.len:"empty"})`);return}this.tick()},this.registerListeners()}registerListeners(){super.registerListeners();let{hls:e}=this;e.on(ed.MANIFEST_PARSED,this.onManifestParsed,this),e.on(ed.LEVEL_LOADING,this.onLevelLoading,this),e.on(ed.LEVEL_LOADED,this.onLevelLoaded,this),e.on(ed.FRAG_LOAD_EMERGENCY_ABORTED,this.onFragLoadEmergencyAborted,this),e.on(ed.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),e.on(ed.AUDIO_TRACK_SWITCHED,this.onAudioTrackSwitched,this),e.on(ed.BUFFER_CREATED,this.onBufferCreated,this),e.on(ed.BUFFER_FLUSHED,this.onBufferFlushed,this),e.on(ed.LEVELS_UPDATED,this.onLevelsUpdated,this),e.on(ed.FRAG_BUFFERED,this.onFragBuffered,this)}unregisterListeners(){super.unregisterListeners();let{hls:e}=this;e.off(ed.MANIFEST_PARSED,this.onManifestParsed,this),e.off(ed.LEVEL_LOADED,this.onLevelLoaded,this),e.off(ed.FRAG_LOAD_EMERGENCY_ABORTED,this.onFragLoadEmergencyAborted,this),e.off(ed.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),e.off(ed.AUDIO_TRACK_SWITCHED,this.onAudioTrackSwitched,this),e.off(ed.BUFFER_CREATED,this.onBufferCreated,this),e.off(ed.BUFFER_FLUSHED,this.onBufferFlushed,this),e.off(ed.LEVELS_UPDATED,this.onLevelsUpdated,this),e.off(ed.FRAG_BUFFERED,this.onFragBuffered,this)}onHandlerDestroying(){this.onMediaPlaying=this.onMediaSeeked=null,this.unregisterListeners(),super.onHandlerDestroying()}startLoad(e,t){if(this.levels){let{lastCurrentTime:n,hls:r}=this;if(this.stopLoad(),this.setInterval(100),this.level=-1,!this.startFragRequested){let e=r.startLevel;-1===e&&(r.config.testBandwidth&&this.levels.length>1?(e=0,this.bitrateTest=!0):e=r.firstAutoLevel),r.nextLoadLevel=e,this.level=r.loadLevel,this._hasEnoughToStart=!!t}n>0&&-1===e&&!t&&(this.log(`Override startPosition with lastCurrentTime @${n.toFixed(3)}`),e=n),this.state=nJ.IDLE,this.nextLoadPosition=this.lastCurrentTime=e+this.timelineOffset,this.startPosition=t?-1:e,this.tick()}else this._forceStartLoad=!0,this.state=nJ.STOPPED}stopLoad(){this._forceStartLoad=!1,super.stopLoad()}doTick(){switch(this.state){case nJ.WAITING_LEVEL:{let{levels:e,level:t}=this,n=null==e?void 0:e[t],r=null==n?void 0:n.details;if(!r||r.live&&(this.levelLastLoaded!==n||this.waitForLive(n)))this.hls.nextLoadLevel!==this.level&&(this.state=nJ.IDLE);else{if(this.waitForCdnTuneIn(r))break;this.state=nJ.IDLE}break}case nJ.FRAG_LOADING_WAITING_RETRY:{var e;let t=self.performance.now(),n=this.retryDate;if(!n||t>=n||null!=(e=this.media)&&e.seeking){let{levels:e,level:t}=this,n=null==e?void 0:e[t];this.resetStartWhenNotLoaded(n||null),this.state=nJ.IDLE}}}this.state===nJ.IDLE&&this.doTickIdle(),this.onTickEnd()}onTickEnd(){var e;super.onTickEnd(),null!=(e=this.media)&&e.readyState&&!1===this.media.seeking&&(this.lastCurrentTime=this.media.currentTime),this.checkFragmentChanged()}doTickIdle(){let{hls:e,levelLastLoaded:t,levels:n,media:r}=this;if(null===t||!r&&!this.primaryPrefetch&&(this.startFragRequested||!e.config.startFragPrefetch)||this.altAudio&&this.audioOnly)return;let i=this.buffering?e.nextLoadLevel:e.loadLevel;if(!(null!=n&&n[i]))return;let a=n[i],o=this.getMainFwdBufferInfo();if(null===o)return;let s=this.getLevelDetails();if(s&&this._streamEnded(o,s)){let e={};2===this.altAudio&&(e.type="video"),this.hls.trigger(ed.BUFFER_EOS,e),this.state=nJ.ENDED;return}if(!this.buffering)return;e.loadLevel!==i&&-1===e.manualLevel&&this.log(`Adapting to level ${i} from level ${this.level}`),this.level=e.nextLoadLevel=i;let l=a.details;if(!l||this.state===nJ.WAITING_LEVEL||this.waitForLive(a)){this.level=i,this.state=nJ.WAITING_LEVEL,this.startFragRequested=!1;return}let u=o.len,c=this.getMaxBufferLength(a.maxBitrate);
53if(u>=c)return;this.backtrackFragment&&this.backtrackFragment.start>o.end&&(this.backtrackFragment=null);let d=this.backtrackFragment?this.backtrackFragment.start:o.end,h=this.getNextFragment(d,l);if(this.couldBacktrack&&!this.fragPrevious&&h&&eD(h)&&this.fragmentTracker.getState(h)!==tz.OK){var f;let e=(null!=(f=this.backtrackFragment)?f:h).sn-l.startSN,t=l.fragments[e-1];t&&h.cc===t.cc&&(h=t,this.fragmentTracker.removeFragment(t))}else this.backtrackFragment&&o.len&&(this.backtrackFragment=null);if(h&&this.isLoopLoading(h,d)){if(!h.gap){let e=this.audioOnly&&!this.altAudio?eO.AUDIO:eO.VIDEO,t=(e===eO.VIDEO?this.videoBuffer:this.mediaBuffer)||this.media;t&&this.afterBufferFlushed(t,e,ef.MAIN)}h=this.getNextFragmentLoopLoading(h,l,o,ef.MAIN,c)}h&&(!h.initSegment||h.initSegment.data||this.bitrateTest||(h=h.initSegment),this.loadFragment(h,a,d))}loadFragment(e,t,n){let r=this.fragmentTracker.getState(e);r===tz.NOT_LOADED||r===tz.PARTIAL?eD(e)?this.bitrateTest?(this.log(`Fragment ${e.sn} of level ${e.level} is being downloaded to test bitrate and will not be buffered`),this._loadBitrateTestFrag(e,t)):super.loadFragment(e,t,n):this._loadInitSegment(e,t):this.clearTrackerIfNeeded(e)}getBufferedFrag(e){return this.fragmentTracker.getBufferedFrag(e,ef.MAIN)}followingBufferedFrag(e){return e?this.getBufferedFrag(e.end+.5):null}immediateLevelSwitch(){this.abortCurrentFrag(),this.flushMainBuffer(0,Number.POSITIVE_INFINITY)}nextLevelSwitch(){let{levels:e,media:t}=this;if(null!=t&&t.readyState){let n;let r=this.getAppendedFrag(t.currentTime);r&&r.start>1&&this.flushMainBuffer(0,r.start-1);let i=this.getLevelDetails();if(null!=i&&i.live){let e=this.getMainFwdBufferInfo();if(!e||e.len<2*i.targetduration)return}if(!t.paused&&e){let t=e[this.hls.nextLoadLevel],r=this.fragLastKbps;n=r&&this.fragCurrent?this.fragCurrent.duration*t.maxBitrate/(1e3*r)+1:0}else n=0;let a=this.getBufferedFrag(t.currentTime+n);if(a){let e=this.followingBufferedFrag(a);if(e){this.abortCurrentFrag();let t=e.maxStartPTS?e.maxStartPTS:e.start,n=e.duration,r=Math.max(a.end,t+Math.min(Math.max(n-this.config.maxFragLookUpTolerance,n*(this.couldBacktrack?.5:.125)),n*(this.couldBacktrack?.75:.25)));this.flushMainBuffer(r,Number.POSITIVE_INFINITY)}}}}abortCurrentFrag(){let e=this.fragCurrent;switch(this.fragCurrent=null,this.backtrackFragment=null,e&&(e.abortRequests(),this.fragmentTracker.removeFragment(e)),this.state){case nJ.KEY_LOADING:case nJ.FRAG_LOADING:case nJ.FRAG_LOADING_WAITING_RETRY:case nJ.PARSING:case nJ.PARSED:this.state=nJ.IDLE}this.nextLoadPosition=this.getLoadPosition()}flushMainBuffer(e,t){super.flushMainBuffer(e,t,2===this.altAudio?"video":null)}onMediaAttached(e,t){super.onMediaAttached(e,t);let n=t.media;i4(n,"playing",this.onMediaPlaying),i4(n,"seeked",this.onMediaSeeked)}onMediaDetaching(e,t){let{media:n}=this;n&&(i5(n,"playing",this.onMediaPlaying),i5(n,"seeked",this.onMediaSeeked)),this.videoBuffer=null,this.fragPlaying=null,super.onMediaDetaching(e,t),t.transferMedia||(this._hasEnoughToStart=!1)}onManifestLoading(){super.onManifestLoading(),this.log("Trigger BUFFER_RESET"),this.hls.trigger(ed.BUFFER_RESET,void 0),this.couldBacktrack=!1,this.fragLastKbps=0,this.fragPlaying=this.backtrackFragment=null,this.altAudio=0,this.audioOnly=!1}onManifestParsed(e,t){let n=!1,r=!1;t.levels.forEach(e=>{let t=e.audioCodec;t&&(n=n||-1!==t.indexOf("mp4a.40.2"),r=r||-1!==t.indexOf("mp4a.40.5"))}),this.audioCodecSwitch=n&&r&&!function(){var e;let t=a9();return"function"==typeof(null==t?void 0:null==(e=t.prototype)?void 0:e.changeType)}(),this.audioCodecSwitch&&this.log("Both AAC/HE-AAC audio found in levels; declaring level codec as HE-AAC"),this.levels=t.levels,this.startFragRequested=!1}onLevelLoading(e,t){let{levels:n}=this;if(!n||this.state!==nJ.IDLE)return;let r=t.levelInfo;(!r.details||r.details.live&&(this.levelLastLoaded!==r||r.details.expired)||this.waitForCdnTuneIn(r.details))&&(this.state=nJ.WAITING_LEVEL)}onLevelLoaded(e,t){var n,r;let{levels:i,startFragRequested:a}=this,o=t.level,s=t.details,l=s.totalduration;if(!i){this.warn(`Levels were reset while loading level ${o}`);return}this.log(`Level ${o} loaded [${s.startSN},${s.endSN}]${s.lastPartSn?`[part-${s.lastPartSn}-${s.lastPartIndex}]`:""}, cc [${s.startCC}, ${s.endCC}] duration:${l}`);let u=t.levelInfo,c=this.fragCurrent;c&&(this.state===nJ.FRAG_LOADING||this.state===nJ.FRAG_LOADING_WAITING_RETRY)&&c.level!==t.level&&c.loader&&this.abortCurrentFrag();let d=0;if(s.live||null!=(n=u.details)&&n.live){if(this.checkLiveUpdate(s),s.deltaUpdateFailed)return;d=this.alignPlaylists(s,u.details,null==(r=this.levelLastLoaded)?void 0:r.details)}if(u.details=s,this.levelLastLoaded=u,a||this.setStartPosition(s,d),this.hls.trigger(ed.LEVEL_UPDATED,{details:s,level:o}),this.state===nJ.WAITING_LEVEL){if(this.waitForCdnTuneIn(s))return;this.state=nJ.IDLE}a&&s.live&&this.synchronizeToLiveEdge(s),this.tick()}
53synchronizeToLiveEdge(e){let{config:t,media:n}=this;if(!n)return;let r=this.hls.liveSyncPosition,i=this.getLoadPosition(),a=e.fragmentStart,o=e.edge,s=i>=a-t.maxFragLookUpTolerance&&i<=o;if(null!==r&&n.duration>r&&(i<r||!s)){let a=void 0!==t.liveMaxLatencyDuration?t.liveMaxLatencyDuration:t.liveMaxLatencyDurationCount*e.targetduration;(!s&&n.readyState<4||i<o-a)&&(this._hasEnoughToStart||(this.nextLoadPosition=r),n.readyState&&(this.warn(`Playback: ${i.toFixed(3)} is located too far from the end of live sliding playlist: ${o}, reset currentTime to : ${r.toFixed(3)}`),n.currentTime=r))}}_handleFragmentLoadProgress(e){var t;let n=e.frag,{part:r,payload:i}=e,{levels:a}=this;if(!a){this.warn(`Levels were reset while fragment load was in progress. Fragment ${n.sn} of level ${n.level} will not be buffered`);return}let o=a[n.level];if(!o){this.warn(`Level ${n.level} not found on progress`);return}let s=o.details;if(!s){this.warn(`Dropping fragment ${n.sn} of level ${n.level} after level details were reset`),this.fragmentTracker.removeFragment(n);return}let l=o.videoCodec,u=s.PTSKnown||!s.live,c=null==(t=n.initSegment)?void 0:t.data,d=this._getAudioCodec(o),h=this.transmuxer=this.transmuxer||new r7(this.hls,ef.MAIN,this._handleTransmuxComplete.bind(this),this._handleTransmuxerFlush.bind(this)),f=r?r.index:-1,p=new t3(n.level,n.sn,n.stats.chunkCount,i.byteLength,f,-1!==f),m=this.initPTS[n.cc];h.push(i,c,d,l,n,r,s.totalduration,u,p,m)}onAudioTrackSwitching(e,t){let n=this.hls,r=2===this.altAudio;if(tC(t.url,n))this.altAudio=1;else{if(this.mediaBuffer!==this.media){this.log("Switching on main audio, use media.buffered to schedule main fragment loading"),this.mediaBuffer=this.media;let e=this.fragCurrent;e&&(this.log("Switching to main audio track, cancel main fragment load"),e.abortRequests(),this.fragmentTracker.removeFragment(e)),this.resetTransmuxer(),this.resetLoadingState()}else this.audioOnly&&this.resetTransmuxer();if(r){this.fragmentTracker.removeAllFragments(),n.once(ed.BUFFER_FLUSHED,()=>{var e;null==(e=this.hls)||e.trigger(ed.AUDIO_TRACK_SWITCHED,t)}),n.trigger(ed.BUFFER_FLUSHING,{startOffset:0,endOffset:Number.POSITIVE_INFINITY,type:null});return}n.trigger(ed.AUDIO_TRACK_SWITCHED,t)}}onAudioTrackSwitched(e,t){let n=tC(t.url,this.hls);if(n){let e=this.videoBuffer;e&&this.mediaBuffer!==e&&(this.log("Switching on alternate audio, use video.buffered to schedule main fragment loading"),this.mediaBuffer=e)}this.altAudio=n?2:0,this.tick()}onBufferCreated(e,t){let n,r;let i=t.tracks,a=!1;for(let e in i){let t=i[e];if("main"===t.id){if(r=e,n=t,"video"===e){let t=i[e];t&&(this.videoBuffer=t.buffer)}}else a=!0}a&&n?(this.log(`Alternate track found, use ${r}.buffered to schedule main fragment loading`),this.mediaBuffer=n.buffer):this.mediaBuffer=this.media}onFragBuffered(e,t){let{frag:n,part:r}=t,i=n.type===ef.MAIN;if(i){if(this.fragContextChanged(n)){this.warn(`Fragment ${n.sn}${r?" p: "+r.index:""} of level ${n.level} finished buffering, but was aborted. state: ${this.state}`),this.state===nJ.PARSED&&(this.state=nJ.IDLE);return}let e=r?r.stats:n.stats;this.fragLastKbps=Math.round(8*e.total/(e.buffering.end-e.loading.first)),eD(n)&&(this.fragPrevious=n),this.fragBufferedComplete(n,r)}let a=this.media;a&&(!this._hasEnoughToStart&&t8.getBuffered(a).length&&(this._hasEnoughToStart=!0,this.seekToStartPos()),i&&this.tick())}get hasEnoughToStart(){return this._hasEnoughToStart}onError(e,t){var n;if(t.fatal){this.state=nJ.ERROR;return}switch(t.details){case ec.FRAG_GAP:case ec.FRAG_PARSING_ERROR:case ec.FRAG_DECRYPT_ERROR:case ec.FRAG_LOAD_ERROR:case ec.FRAG_LOAD_TIMEOUT:case ec.KEY_LOAD_ERROR:case ec.KEY_LOAD_TIMEOUT:this.onFragmentOrKeyLoadError(ef.MAIN,t);break;case ec.LEVEL_LOAD_ERROR:case ec.LEVEL_LOAD_TIMEOUT:case ec.LEVEL_PARSING_ERROR:t.levelRetry||this.state!==nJ.WAITING_LEVEL||(null==(n=t.context)?void 0:n.type)!==eh.LEVEL||(this.state=nJ.IDLE);break;case ec.BUFFER_ADD_CODEC_ERROR:case ec.BUFFER_APPEND_ERROR:if("main"!==t.parent)return;this.resetLoadingState();break;case ec.BUFFER_FULL_ERROR:if("main"!==t.parent)return;this.reduceLengthAndFlushBuffer(t)&&this.flushMainBuffer(0,Number.POSITIVE_INFINITY);break;case ec.INTERNAL_EXCEPTION:this.recoverWorkerError(t)}}onFragLoadEmergencyAborted(){this.state=nJ.IDLE,this._hasEnoughToStart||(this.startFragRequested=!1,this.nextLoadPosition=this.lastCurrentTime),this.tickImmediate()}onBufferFlushed(e,{type:t}){if(t!==eO.AUDIO||!this.altAudio){let e=(t===eO.VIDEO?this.videoBuffer:this.mediaBuffer)||this.media;e&&(this.afterBufferFlushed(e,t,ef.MAIN),this.tick())}}onLevelsUpdated(e,t){this.level>-1&&this.fragCurrent&&(this.level=this.fragCurrent.level,-1===this.level&&this.resetWhenMissingContext(this.fragCurrent)),this.levels=t.levels}swapAudioCodec(){this.audioCodecSwap=!this.audioCodecSwap}seekToStartPos(){let{media:e}=this;if(!e)return;let t=e.currentTime,n=this.startPosition;if(n>=0&&t<n){if(e.seeking){this.log(`could not seek to ${n}, already seeking at ${t}`);return}let r=this.timelineOffset;r&&n&&(n+=r);let i=this.getLevelDetails(),a=t8.getBuffered(e),o=a.length?a.start(0):0,s=o-n,l=Math.max(this.config.maxBufferHole,this.config.maxFragLookUpTolerance);s>0&&(s<l||this.loadingParts&&s<2*((null==i?void 0:i.partTarget)||0))&&(this.log(`adjusting start position by ${s} to match buffer start`),n+=s,this.startPosition=n),t<n&&(this.log(`seek to target start position ${n} from current time ${t} buffer start ${o}`),e.currentTime=n)}}_getAudioCodec(e){let t=this.config.defaultAudioCodec||e.audioCodec;return this.audioCodecSwap&&t&&(this.log("Swapping audio codec"),t=-1!==t.indexOf("mp4a.40.5")?"mp4a.40.2":"mp4a.40.5"),t}_loadBitrateTestFrag(e,t){e.bitrateTest=!0,this._doFragLoad(e,t).then(e=>{let{hls:n}=this,r=null==e?void 0:e.frag;if(!r||this.fragContextChanged(r))return;t.fragmentError=0,this.state=nJ.IDLE,this.startFragRequested=!1,this.bitrateTest=!1;let i=r.stats;i.parsing.start=i.parsing.end=i.buffering.start=i.buffering.end=self.performance.now(),n.trigger(ed.FRAG_LOADED,e),r.bitrateTest=!1})}_handleTransmuxComplete(e){var t;let n=this.playlistType,{hls:r}=this,{remuxResult:i,chunkMeta:a}=e,o=this.getCurrentContext(a);if(!o){this.resetWhenMissingContext(a);return}let{frag:s,part:l,level:u}=o,{video:c,text:d,id3:h,initSegment:f}=i,{details:p}=u,m=this.altAudio?void 0:i.audio;if(this.fragContextChanged(s)){this.fragmentTracker.removeFragment(s);return}if(this.state=nJ.PARSING,f){if(null!=f&&f.tracks){let e=s.initSegment||s;this._bufferInitSegment(u,f.tracks,e,a),r.trigger(ed.FRAG_PARSING_INIT_SEGMENT,{frag:e,id:n,tracks:f.tracks})}let e=f.initPTS,t=f.timescale;eo(e)&&(this.initPTS[s.cc]={baseTime:e,timescale:t},r.trigger(ed.INIT_PTS_FOUND,{frag:s,id:n,initPTS:e,timescale:t}))}if(c&&p){m&&"audiovideo"===c.type&&this.logMuxedErr(s);let e=p.fragments[s.sn-1-p.startSN],t=s.sn===p.startSN,n=!e||s.cc>e.cc;if(!1!==i.independent){let{startPTS:e,endPTS:r,startDTS:i,endDTS:o}=c;if(l)l.elementaryStreams[c.type]={startPTS:e,endPTS:r,startDTS:i,endDTS:o};else if(c.firstKeyFrame&&c.independent&&1===a.id&&!n&&(this.couldBacktrack=!0),c.dropped&&c.independent){let i=this.getMainFwdBufferInfo(),a=(i?i.end:this.getLoadPosition())+this.config.maxBufferHole,l=c.firstKeyFramePTS?c.firstKeyFramePTS:e;if(t||!(a<l-this.config.maxBufferHole)||n)n&&(s.gap=!0);else{this.backtrack(s);return}s.setElementaryStreamInfo(c.type,s.start,r,s.start,o,!0)}
53else t&&e-(p.appliedTimelineOffset||0)>2&&(s.gap=!0);s.setElementaryStreamInfo(c.type,e,r,i,o),this.backtrackFragment&&(this.backtrackFragment=s),this.bufferFragmentData(c,s,l,a,t||n)}else if(t||n)s.gap=!0;else{this.backtrack(s);return}}if(m){let{startPTS:e,endPTS:t,startDTS:n,endDTS:r}=m;l&&(l.elementaryStreams[eO.AUDIO]={startPTS:e,endPTS:t,startDTS:n,endDTS:r}),s.setElementaryStreamInfo(eO.AUDIO,e,t,n,r),this.bufferFragmentData(m,s,l,a)}if(p&&null!=h&&null!=(t=h.samples)&&t.length){let e={id:n,frag:s,details:p,samples:h.samples};r.trigger(ed.FRAG_PARSING_METADATA,e)}if(p&&d){let e={id:n,frag:s,details:p,samples:d.samples};r.trigger(ed.FRAG_PARSING_USERDATA,e)}}logMuxedErr(e){this.warn(`${eD(e)?"Media":"Init"} segment with muxed audiovideo where only video expected: ${e.url}`)}_bufferInitSegment(e,t,n,r){if(this.state!==nJ.PARSING)return;this.audioOnly=!!t.audio&&!t.video,this.altAudio&&!this.audioOnly&&(delete t.audio,t.audiovideo&&this.logMuxedErr(n));let{audio:i,video:a,audiovideo:o}=t;if(i){let n=ti(i.codec,e.audioCodec);"mp4a"===n&&(n="mp4a.40.5");let r=navigator.userAgent.toLowerCase();if(this.audioCodecSwitch){n&&(n=-1!==n.indexOf("mp4a.40.5")?"mp4a.40.2":"mp4a.40.5");let e=i.metadata;e&&"channelCount"in e&&1!==(e.channelCount||1)&&-1===r.indexOf("firefox")&&(n="mp4a.40.5")}n&&-1!==n.indexOf("mp4a.40.5")&&-1!==r.indexOf("android")&&"audio/mpeg"!==i.container&&(n="mp4a.40.2",this.log(`Android: force audio codec to ${n}`)),e.audioCodec&&e.audioCodec!==n&&this.log(`Swapping manifest audio codec "${e.audioCodec}" for "${n}"`),i.levelCodec=n,i.id=ef.MAIN,this.log(`Init audio buffer, container:${i.container}, codecs[selected/level/parsed]=[${n||""}/${e.audioCodec||""}/${i.codec}]`),delete t.audiovideo}if(a){a.levelCodec=e.videoCodec,a.id=ef.MAIN;let n=a.codec;if((null==n?void 0:n.length)===4)switch(n){case"hvc1":case"hev1":a.codec="hvc1.1.6.L120.90";break;case"av01":a.codec="av01.0.04M.08";break;case"avc1":a.codec="avc1.42e01e"}this.log(`Init video buffer, container:${a.container}, codecs[level/parsed]=[${e.videoCodec||""}/${n}]${a.codec!==n?" parsed-corrected="+a.codec:""}${a.supplemental?" supplemental="+a.supplemental:""}`),delete t.audiovideo}o&&(this.log(`Init audiovideo buffer, container:${o.container}, codecs[level/parsed]=[${e.codecs}/${o.codec}]`),delete t.video,delete t.audio);let s=Object.keys(t);if(s.length){if(this.hls.trigger(ed.BUFFER_CODECS,t),!this.hls)return;s.forEach(e=>{let i=t[e].initSegment;null!=i&&i.byteLength&&this.hls.trigger(ed.BUFFER_APPENDING,{type:e,data:i,frag:n,part:null,chunkMeta:r,parent:n.type})})}this.tickImmediate()}getMainFwdBufferInfo(){let e=this.mediaBuffer&&2===this.altAudio?this.mediaBuffer:this.media;return this.getFwdBufferInfo(e,ef.MAIN)}get maxBufferLength(){let{levels:e,level:t}=this,n=null==e?void 0:e[t];return n?this.getMaxBufferLength(n.maxBitrate):this.config.maxBufferLength}backtrack(e){this.couldBacktrack=!0,this.backtrackFragment=e,this.resetTransmuxer(),this.flushBufferGap(e),this.fragmentTracker.removeFragment(e),this.fragPrevious=null,this.nextLoadPosition=e.start,this.state=nJ.IDLE}checkFragmentChanged(){let e=this.media,t=null;if(e&&e.readyState>1&&!1===e.seeking){let n=e.currentTime;if(t8.isBuffered(e,n)?t=this.getAppendedFrag(n):t8.isBuffered(e,n+.1)&&(t=this.getAppendedFrag(n+.1)),t){this.backtrackFragment=null;let e=this.fragPlaying,n=t.level;e&&t.sn===e.sn&&e.level===n||(this.fragPlaying=t,this.hls.trigger(ed.FRAG_CHANGED,{frag:t}),e&&e.level===n||this.hls.trigger(ed.LEVEL_SWITCHED,{level:n}))}}}get nextLevel(){let e=this.nextBufferedFrag;return e?e.level:-1}get currentFrag(){var e;if(this.fragPlaying)return this.fragPlaying;let t=(null==(e=this.media)?void 0:e.currentTime)||this.lastCurrentTime;return eo(t)?this.getAppendedFrag(t):null}get currentProgramDateTime(){var e;let t=(null==(e=this.media)?void 0:e.currentTime)||this.lastCurrentTime;if(eo(t)){let e=this.getLevelDetails(),n=this.currentFrag||(e?tL(null,e.fragments,t):null);if(n){let e=n.programDateTime;if(null!==e)return new Date(e+(t-n.start)*1e3)}}return null}get currentLevel(){let e=this.currentFrag;return e?e.level:-1}get nextBufferedFrag(){let e=this.currentFrag;return e?this.followingBufferedFrag(e):null}get forceStartLoad(){return this._forceStartLoad}}
53class ot{constructor(e){this.config=void 0,this.keyUriToKeyInfo={},this.emeController=null,this.config=e}abort(e){for(let n in this.keyUriToKeyInfo){let r=this.keyUriToKeyInfo[n].loader;if(r){var t;if(e&&e!==(null==(t=r.context)?void 0:t.frag.type))return;r.abort()}}}detach(){for(let e in this.keyUriToKeyInfo){let t=this.keyUriToKeyInfo[e];(t.mediaKeySessionContext||t.decryptdata.isCommonEncryption)&&delete this.keyUriToKeyInfo[e]}}destroy(){for(let e in this.detach(),this.keyUriToKeyInfo){let t=this.keyUriToKeyInfo[e].loader;t&&t.destroy()}this.keyUriToKeyInfo={}}createKeyLoadError(e,t=ec.KEY_LOAD_ERROR,n,r,i){return new t1({type:eu.NETWORK_ERROR,details:t,fatal:!1,frag:e,response:i,error:n,networkDetails:r})}loadClear(e,t){if(this.emeController&&this.config.emeEnabled){let{sn:n,cc:r}=e;for(let e=0;e<t.length;e++){let i=t[e];if(r<=i.cc&&("initSegment"===n||"initSegment"===i.sn||n<i.sn)){this.emeController.selectKeySystemFormat(i).then(e=>{i.setKeyFormat(e)});break}}}}load(e){return!e.decryptdata&&e.encrypted&&this.emeController&&this.config.emeEnabled?this.emeController.selectKeySystemFormat(e).then(t=>this.loadInternal(e,t)):this.loadInternal(e)}loadInternal(e,t){var n,r,i;t&&e.setKeyFormat(t);let a=e.decryptdata;if(!a){let n=Error(t?`Expected frag.decryptdata to be defined after setting format ${t}`:"Missing decryption data on fragment in onKeyLoading");return Promise.reject(this.createKeyLoadError(e,ec.KEY_LOAD_ERROR,n))}let o=a.uri;if(!o)return Promise.reject(this.createKeyLoadError(e,ec.KEY_LOAD_ERROR,Error(`Invalid key URI: "${o}"`)));let s=this.keyUriToKeyInfo[o];if(null!=(n=s)&&n.decryptdata.key)return a.key=s.decryptdata.key,Promise.resolve({frag:e,keyInfo:s});if(null!=(r=s)&&r.keyLoadPromise)switch(null==(i=s.mediaKeySessionContext)?void 0:i.keyStatus){case void 0:case"status-pending":case"usable":case"usable-in-future":return s.keyLoadPromise.then(t=>(a.key=t.keyInfo.decryptdata.key,{frag:e,keyInfo:s}))}switch(s=this.keyUriToKeyInfo[o]={decryptdata:a,keyLoadPromise:null,loader:null,mediaKeySessionContext:null},a.method){case"ISO-23001-7":case"SAMPLE-AES":case"SAMPLE-AES-CENC":case"SAMPLE-AES-CTR":if("identity"===a.keyFormat)return this.loadKeyHTTP(s,e);return this.loadKeyEME(s,e);case"AES-128":case"AES-256":case"AES-256-CTR":return this.loadKeyHTTP(s,e);default:return Promise.reject(this.createKeyLoadError(e,ec.KEY_LOAD_ERROR,Error(`Key supplied with unsupported METHOD: "${a.method}"`)))}}loadKeyEME(e,t){let n={frag:t,keyInfo:e};if(this.emeController&&this.config.emeEnabled){let t=this.emeController.loadKey(n);if(t)return(e.keyLoadPromise=t.then(t=>(e.mediaKeySessionContext=t,n))).catch(t=>{throw e.keyLoadPromise=null,t})}return Promise.resolve(n)}loadKeyHTTP(e,t){let n=this.config,r=new n.loader(n);return t.keyLoader=e.loader=r,e.keyLoadPromise=new Promise((i,a)=>{let o={keyInfo:e,frag:t,responseType:"arraybuffer",url:e.decryptdata.uri},s=n.keyLoadPolicy.default,l={loadPolicy:s,timeout:s.maxLoadTimeMs,maxRetry:0,retryDelay:0,maxRetryDelay:0};r.load(o,l,{onSuccess:(e,t,n,r)=>{let{frag:o,keyInfo:s,url:l}=n;if(!o.decryptdata||s!==this.keyUriToKeyInfo[l])return a(this.createKeyLoadError(o,ec.KEY_LOAD_ERROR,Error("after key load, decryptdata unset or changed"),r));s.decryptdata.key=o.decryptdata.key=new Uint8Array(e.data),o.keyLoader=null,s.loader=null,i({frag:o,keyInfo:s})},onError:(e,n,r,i)=>{this.resetLoader(n),a(this.createKeyLoadError(t,ec.KEY_LOAD_ERROR,Error(`HTTP Error ${e.code} loading key ${e.text}`),r,ey({url:o.url,data:void 0},e)))},onTimeout:(e,n,r)=>{this.resetLoader(n),a(this.createKeyLoadError(t,ec.KEY_LOAD_TIMEOUT,Error("key loading timed out"),r))},onAbort:(e,n,r)=>{this.resetLoader(n),a(this.createKeyLoadError(t,ec.INTERNAL_ABORTED,Error("key loading aborted"),r))}})})}resetLoader(e){let{frag:t,keyInfo:n,url:r}=e,i=n.loader;t.keyLoader===i&&(t.keyLoader=null,n.loader=null),delete this.keyUriToKeyInfo[r],i&&i.destroy()}}function on(e){let{type:t}=e;switch(t){case eh.AUDIO_TRACK:return ef.AUDIO;case eh.SUBTITLE_TRACK:return ef.SUBTITLE;default:return ef.MAIN}}function or(e,t){let n=e.url;return(void 0===n||0===n.indexOf("data:"))&&(n=t.url),n}class oi{constructor(e){this.hls=void 0,this.loaders=Object.create(null),this.variableList=null,this.onManifestLoaded=this.checkAutostartLoad,this.hls=e,this.registerListeners()}
vendor: 5,613 bytes, line 53
53startLoad(e){}stopLoad(){this.destroyInternalLoaders()}registerListeners(){let{hls:e}=this;e.on(ed.MANIFEST_LOADING,this.onManifestLoading,this),e.on(ed.LEVEL_LOADING,this.onLevelLoading,this),e.on(ed.AUDIO_TRACK_LOADING,this.onAudioTrackLoading,this),e.on(ed.SUBTITLE_TRACK_LOADING,this.onSubtitleTrackLoading,this),e.on(ed.LEVELS_UPDATED,this.onLevelsUpdated,this)}unregisterListeners(){let{hls:e}=this;e.off(ed.MANIFEST_LOADING,this.onManifestLoading,this),e.off(ed.LEVEL_LOADING,this.onLevelLoading,this),e.off(ed.AUDIO_TRACK_LOADING,this.onAudioTrackLoading,this),e.off(ed.SUBTITLE_TRACK_LOADING,this.onSubtitleTrackLoading,this),e.off(ed.LEVELS_UPDATED,this.onLevelsUpdated,this)}createInternalLoader(e){let t=this.hls.config,n=t.pLoader,r=t.loader,i=new(n||r)(t);return this.loaders[e.type]=i,i}getInternalLoader(e){return this.loaders[e.type]}resetInternalLoader(e){this.loaders[e]&&delete this.loaders[e]}destroyInternalLoaders(){for(let e in this.loaders){let t=this.loaders[e];t&&t.destroy(),this.resetInternalLoader(e)}}destroy(){this.variableList=null,this.unregisterListeners(),this.destroyInternalLoaders()}onManifestLoading(e,t){let{url:n}=t;this.variableList=null,this.load({id:null,level:0,responseType:"text",type:eh.MANIFEST,url:n,deliveryDirectives:null,levelOrTrack:null})}onLevelLoading(e,t){let{id:n,level:r,pathwayId:i,url:a,deliveryDirectives:o,levelInfo:s}=t;this.load({id:n,level:r,pathwayId:i,responseType:"text",type:eh.LEVEL,url:a,deliveryDirectives:o,levelOrTrack:s})}onAudioTrackLoading(e,t){let{id:n,groupId:r,url:i,deliveryDirectives:a,track:o}=t;this.load({id:n,groupId:r,level:null,responseType:"text",type:eh.AUDIO_TRACK,url:i,deliveryDirectives:a,levelOrTrack:o})}onSubtitleTrackLoading(e,t){let{id:n,groupId:r,url:i,deliveryDirectives:a,track:o}=t;this.load({id:n,groupId:r,level:null,responseType:"text",type:eh.SUBTITLE_TRACK,url:i,deliveryDirectives:a,levelOrTrack:o})}onLevelsUpdated(e,t){let n=this.loaders[eh.LEVEL];if(n){let e=n.context;e&&!t.levels.some(t=>t===e.levelOrTrack)&&(n.abort(),delete this.loaders[eh.LEVEL])}}load(e){var t;let n;let r=this.hls.config,i=this.getInternalLoader(e);if(i){let t=this.hls.logger,n=i.context;if(n&&n.levelOrTrack===e.levelOrTrack&&(n.url===e.url||n.deliveryDirectives&&!e.deliveryDirectives)){n.url===e.url?t.log(`[playlist-loader]: ignore ${e.url} ongoing request`):t.log(`[playlist-loader]: ignore ${e.url} in favor of ${n.url}`);return}t.log(`[playlist-loader]: aborting previous loader for type: ${e.type}`),i.abort()}if(n=e.type===eh.MANIFEST?r.manifestLoadPolicy.default:eg({},r.playlistLoadPolicy.default,{timeoutRetry:null,errorRetry:null}),i=this.createInternalLoader(e),eo(null==(t=e.deliveryDirectives)?void 0:t.part)){let t;if(e.type===eh.LEVEL&&null!==e.level?t=this.hls.levels[e.level].details:e.type===eh.AUDIO_TRACK&&null!==e.id?t=this.hls.audioTracks[e.id].details:e.type===eh.SUBTITLE_TRACK&&null!==e.id&&(t=this.hls.subtitleTracks[e.id].details),t){let e=t.partTarget,r=t.targetduration;if(e&&r){let t=1e3*Math.max(3*e,.8*r);n=eg({},n,{maxTimeToFirstByteMs:Math.min(t,n.maxTimeToFirstByteMs),maxLoadTimeMs:Math.min(t,n.maxTimeToFirstByteMs)})}}}let a=n.errorRetry||n.timeoutRetry||{},o={loadPolicy:n,timeout:n.maxLoadTimeMs,maxRetry:a.maxNumRetry||0,retryDelay:a.retryDelayMs||0,maxRetryDelay:a.maxRetryDelayMs||0};i.load(e,o,{onSuccess:(e,t,n,r)=>{let i=this.getInternalLoader(n);this.resetInternalLoader(n.type);let a=e.data;if(0!==a.indexOf("#EXTM3U")){this.handleManifestParsingError(e,n,Error("no EXTM3U delimiter"),r||null,t);return}t.parsing.start=performance.now(),n_.isMediaPlaylist(a)||n.type!==eh.MANIFEST?this.handleTrackOrLevelPlaylist(e,t,n,r||null,i):this.handleMasterPlaylist(e,t,n,r)},onError:(e,t,n,r)=>{this.handleNetworkError(t,n,!1,e,r)},onTimeout:(e,t,n)=>{this.handleNetworkError(t,n,!0,void 0,e)}})}checkAutostartLoad(){if(!this.hls)return;let{config:{autoStartLoad:e,startPosition:t},forceStartLoad:n}=this.hls;(e||n)&&(this.hls.logger.log(`${e?"auto":"force"} startLoad with configured startPosition ${t}`),this.hls.startLoad(t))}handleMasterPlaylist(e,t,n,r){let i=this.hls,a=e.data,o=or(e,n),s=n_.parseMasterPlaylist(a,o);if(s.playlistParsingError){this.handleManifestParsingError(e,n,s.playlistParsingError,r,t);return}let{contentSteering:l,levels:u,sessionData:c,sessionKeys:d,startTimeOffset:h,variableList:f}=s;this.variableList=f;let{AUDIO:p=[],SUBTITLES:m,"CLOSED-CAPTIONS":g}=n_.parseMasterPlaylistMedia(a,o,s);p.length&&!p.some(e=>!e.url)&&u[0].audioCodec&&!u[0].attrs.AUDIO&&(this.hls.logger.log("[playlist-loader]: audio codec signaled in quality level, but no embedded audio track signaled, create one"),p.unshift({type:"main",name:"main",groupId:"main",default:!1,autoselect:!1,forced:!1,id:-1,attrs:new nn({}),bitrate:0,url:""})),i.trigger(ed.MANIFEST_LOADED,{levels:u,audioTracks:p,subtitles:m,captions:g,contentSteering:l,url:o,stats:t,networkDetails:r,sessionData:c,sessionKeys:d,startTimeOffset:h,variableList:f})}handleTrackOrLevelPlaylist(e,t,n,r,i){let a=this.hls,{id:o,level:s,type:l}=n,u=or(e,n),c=eo(s)?s:eo(o)?o:0,d=on(n),h=n_.parseLevelPlaylist(e.data,u,c,d,0,this.variableList);if(l===eh.MANIFEST){let e={attrs:new nn({}),bitrate:0,details:h,name:"",url:u};h.requestScheduled=t.loading.start+nz(h,0),a.trigger(ed.MANIFEST_LOADED,{levels:[e],audioTracks:[],url:u,stats:t,networkDetails:r,sessionData:null,sessionKeys:null,contentSteering:null,startTimeOffset:null,variableList:null})}t.parsing.end=performance.now(),n.levelDetails=h,this.handlePlaylistLoaded(h,e,t,n,r,i)}handleManifestParsingError(e,t,n,r,i){this.hls.trigger(ed.ERROR,{type:eu.NETWORK_E
53RROR,details:ec.MANIFEST_PARSING_ERROR,fatal:t.type===eh.MANIFEST,url:e.url,err:n,error:n,reason:n.message,response:e,context:t,networkDetails:r,stats:i})}handleNetworkError(e,t,n=!1,r,i){let a=`A network ${n?"timeout":"error"+(r?" (status "+r.code+")":"")} occurred while loading ${e.type}`;e.type===eh.LEVEL?a+=`: ${e.level} id: ${e.id}`:(e.type===eh.AUDIO_TRACK||e.type===eh.SUBTITLE_TRACK)&&(a+=` id: ${e.id} group-id: "${e.groupId}"`);let o=Error(a);this.hls.logger.warn(`[playlist-loader]: ${a}`);let s=ec.UNKNOWN,l=!1,u=this.getInternalLoader(e);switch(e.type){case eh.MANIFEST:s=n?ec.MANIFEST_LOAD_TIMEOUT:ec.MANIFEST_LOAD_ERROR,l=!0;break;case eh.LEVEL:s=n?ec.LEVEL_LOAD_TIMEOUT:ec.LEVEL_LOAD_ERROR,l=!1;break;case eh.AUDIO_TRACK:s=n?ec.AUDIO_TRACK_LOAD_TIMEOUT:ec.AUDIO_TRACK_LOAD_ERROR,l=!1;break;case eh.SUBTITLE_TRACK:s=n?ec.SUBTITLE_TRACK_LOAD_TIMEOUT:ec.SUBTITLE_LOAD_ERROR,l=!1}u&&this.resetInternalLoader(e.type);let c={type:eu.NETWORK_ERROR,details:s,fatal:l,url:e.url,loader:u,context:e,error:o,networkDetails:t,stats:i};if(r){let n=(null==t?void 0:t.url)||e.url;c.response=ey({url:n,data:void 0},r)}this.hls.trigger(ed.ERROR,c)}handlePlaylistLoaded(e,t,n,r,i,a){let o=this.hls,{type:s,level:l,id:u,groupId:c,deliveryDirectives:d}=r,h=or(t,r),f=on(r),p="number"==typeof r.level&&f===ef.MAIN?l:void 0;if(!e.fragments.length){let a=e.playlistParsingError=Error("No Segments found in Playlist");o.trigger(ed.ERROR,{type:eu.NETWORK_ERROR,details:ec.LEVEL_EMPTY_ERROR,fatal:!1,url:h,error:a,reason:a.message,response:t,context:r,level:p,parent:f,networkDetails:i,stats:n});return}e.targetduration||(e.playlistParsingError=Error("Missing Target Duration"));let m=e.playlistParsingError;if(m){if(this.hls.logger.warn(m),!o.config.ignorePlaylistParsingErrors){o.trigger(ed.ERROR,{type:eu.NETWORK_ERROR,details:ec.LEVEL_PARSING_ERROR,fatal:!1,url:h,error:m,reason:m.message,response:t,context:r,level:p,parent:f,networkDetails:i,stats:n});return}e.playlistParsingError=null}switch(e.live&&a&&(a.getCacheAge&&(e.ageHeader=a.getCacheAge()||0),(!a.getCacheAge||isNaN(e.ageHeader))&&(e.ageHeader=0)),s){case eh.MANIFEST:case eh.LEVEL:o.trigger(ed.LEVEL_LOADED,{details:e,levelInfo:r.levelOrTrack||o.levels[0],level:p||0,id:u||0,stats:n,networkDetails:i,deliveryDirectives:d,withoutMultiVariant:s===eh.MANIFEST});break;case eh.AUDIO_TRACK:o.trigger(ed.AUDIO_TRACK_LOADED,{details:e,track:r.levelOrTrack,id:u||0,groupId:c||"",stats:n,networkDetails:i,deliveryDirectives:d});break;case eh.SUBTITLE_TRACK:o.trigger(ed.SUBTITLE_TRACK_LOADED,{details:e,track:r.levelOrTrack,id:u||0,groupId:c||"",stats:n,networkDetails:i,deliveryDirectives:d})}}}class oa{static get version(){return n5}static isMSESupported(){return a7()}static isSupported(){return function(){if(!a7())return!1;let e=eS();return"function"==typeof(null==e?void 0:e.isTypeSupported)&&(["avc1.42E01E,mp4a.40.2","av01.0.01M.08","vp09.00.50.08"].some(t=>e.isTypeSupported(e9(t,"video")))||["mp4a.40.2","fLaC"].some(t=>e.isTypeSupported(e9(t,"audio"))))}()}static getMediaSource(){return eS()}static get Events(){return ed}static get MetadataSchema(){return rd}static get ErrorTypes(){return eu}static get ErrorDetails(){return ec}static get DefaultConfig(){return oa.defaultConfig?oa.defaultConfig:aY}static set DefaultConfig(e){oa.defaultConfig=e}constructor(e={}){this.config=void 0,this.userConfig=void 0,this.logger=void 0,this.coreComponents=void 0,this.networkControllers=void 0,this._emitter=new n4,this._autoLevelCapping=-1,this._maxHdcpLevel=null,this.abrController=void 0,this.bufferController=void 0,this.capLevelController=void 0,this.latencyController=void 0,this.levelController=void 0,this.streamController=void 0,this.audioStreamController=void 0,this.subtititleStreamController=void 0,this.audioTrackController=void 0,this.subtitleTrackController=void 0,this.interstitialsController=void 0,this.gapController=void 0,this.emeController=void 0,this.cmcdController=void 0,this._media=null,this._url=null,this._sessionId=void 0,this.triggeringException=void 0,this.started=!1;let t=this.logger=function(e,t,n){let r=ew();if("object"==typeof console&&!0===e||"object"==typeof e){let i=["debug","log","info","warn","error"];
53i.forEach(t=>{r[t]=ex(t,e,n)});try{r.log(`Debug logs enabled for "${t}" in hls.js version 1.6.2`)}catch(e){return ew()}i.forEach(t=>{eT[t]=ex(t,e)})}else eg(eT,r);return r}(e.debug||!1,"Hls instance",e.assetPlayerId),n=this.config=function(e,t,n){if((t.liveSyncDurationCount||t.liveMaxLatencyDurationCount)&&(t.liveSyncDuration||t.liveMaxLatencyDuration))throw Error("Illegal hls.js config: don't mix up liveSyncDurationCount/liveMaxLatencyDurationCount and liveSyncDuration/liveMaxLatencyDuration");if(void 0!==t.liveMaxLatencyDurationCount&&(void 0===t.liveSyncDurationCount||t.liveMaxLatencyDurationCount<=t.liveSyncDurationCount))throw Error('Illegal hls.js config: "liveMaxLatencyDurationCount" must be greater than "liveSyncDurationCount"');if(void 0!==t.liveMaxLatencyDuration&&(void 0===t.liveSyncDuration||t.liveMaxLatencyDuration<=t.liveSyncDuration))throw Error('Illegal hls.js config: "liveMaxLatencyDuration" must be greater than "liveSyncDuration"');let r=function e(t){return t&&"object"==typeof t?Array.isArray(t)?t.map(e):Object.keys(t).reduce((n,r)=>(n[r]=e(t[r]),n),{}):t}(e),i=["TimeOut","MaxRetry","RetryDelay","MaxRetryTimeout"];return["manifest","level","frag"].forEach(e=>{let a=`${"level"===e?"playlist":e}LoadPolicy`,o=void 0===t[a],s=[];i.forEach(n=>{let i=`${e}Loading${n}`,l=t[i];if(void 0!==l&&o){s.push(i);let e=r[a].default;switch(t[a]={default:e},n){case"TimeOut":e.maxLoadTimeMs=l,e.maxTimeToFirstByteMs=l;break;case"MaxRetry":e.errorRetry.maxNumRetry=l,e.timeoutRetry.maxNumRetry=l;break;case"RetryDelay":e.errorRetry.retryDelayMs=l,e.timeoutRetry.retryDelayMs=l;break;case"MaxRetryTimeout":e.errorRetry.maxRetryDelayMs=l,e.timeoutRetry.maxRetryDelayMs=l}}}),s.length&&n.warn(`hls.js config: "${s.join('", "')}" setting(s) are deprecated, use "${a}": ${tb(t[a])}`)}),ey(ey({},r),t)}(oa.DefaultConfig,e,t);this.userConfig=e,n.progressive&&function(e,t){let n=e.loader;n!==aG&&n!==aZ?(t.log("[config]: Custom loader detected, cannot enable progressive streaming"),e.progressive=!1):function(){if(self.fetch&&self.AbortController&&self.ReadableStream&&self.Request)try{return new self.ReadableStream({}),!0}catch(e){}return!1}()&&(e.loader=aG,e.progressive=!0,e.enableSoftwareAES=!0,t.log("[config]: Progressive streaming enabled, using FetchLoader"))}(n,t);let{abrController:r,bufferController:i,capLevelController:a,errorController:o,fpsController:s}=n,l=new o(this),u=this.abrController=new r(this),c=new tq(this),d=n.interstitialsController,h=d?this.interstitialsController=new d(this,oa):null,f=this.bufferController=new i(this,c),p=this.capLevelController=new a(this),m=new s(this),g=new oi(this),v=n.contentSteeringController,y=v?new v(this):null,b=this.levelController=new a8(this,y),A=new a4(this),E=new ot(this.config),w=this.streamController=new oe(this,c,E),x=this.gapController=new aX(this,c);p.setStreamController(w),m.setStreamController(w);let T=[g,b,w];h&&T.splice(1,0,h),y&&T.splice(1,0,y),this.networkControllers=T;let S=[u,f,x,p,m,A,c];this.audioTrackController=this.createController(n.audioTrackController,T);let _=n.audioStreamController;_&&T.push(this.audioStreamController=new _(this,c,E)),this.subtitleTrackController=this.createController(n.subtitleTrackController,T);let C=n.subtitleStreamController;C&&T.push(this.subtititleStreamController=new C(this,c,E)),this.createController(n.timelineController,S),E.emeController=this.emeController=this.createController(n.emeController,S),this.cmcdController=this.createController(n.cmcdController,S),this.latencyController=this.createController(a5,S),this.coreComponents=S,T.push(l);let k=l.onErrorOut;"function"==typeof k&&this.on(ed.ERROR,k,l),this.on(ed.MANIFEST_LOADED,g.onManifestLoaded,g)}createController(e,t){if(e){let n=new e(this);return t&&t.push(n),n}return null}on(e,t,n=this){this._emitter.on(e,t,n)}once(e,t,n=this){this._emitter.once(e,t,n)}removeAllListeners(e){this._emitter.removeAllListeners(e)}off(e,t,n=this,r){this._emitter.off(e,t,n,r)}listeners(e){return this._emitter.listeners(e)}emit(e,t,n){return this._emitter.emit(e,t,n)}
53trigger(e,t){if(this.config.debug)return this.emit(e,e,t);try{return this.emit(e,e,t)}catch(t){if(this.logger.error("An internal error happened while handling event "+e+'. Error message: "'+t.message+'". Here is a stacktrace:',t),!this.triggeringException){this.triggeringException=!0;let n=e===ed.ERROR;this.trigger(ed.ERROR,{type:eu.OTHER_ERROR,details:ec.INTERNAL_EXCEPTION,fatal:n,event:e,error:t}),this.triggeringException=!1}}return!1}listenerCount(e){return this._emitter.listenerCount(e)}destroy(){this.logger.log("destroy"),this.trigger(ed.DESTROYING,void 0),this.detachMedia(),this.removeAllListeners(),this._autoLevelCapping=-1,this._url=null,this.networkControllers.forEach(e=>e.destroy()),this.networkControllers.length=0,this.coreComponents.forEach(e=>e.destroy()),this.coreComponents.length=0;let e=this.config;e.xhrSetup=e.fetchSetup=void 0,this.userConfig=null}attachMedia(e){if(!e||"media"in e&&!e.media){let t=Error(`attachMedia failed: invalid argument (${e})`);this.trigger(ed.ERROR,{type:eu.OTHER_ERROR,details:ec.ATTACH_MEDIA_ERROR,fatal:!0,error:t});return}this.logger.log("attachMedia"),this._media&&(this.logger.warn("media must be detached before attaching"),this.detachMedia());let t="media"in e,n=t?e.media:e,r=t?e:{media:n};this._media=n,this.trigger(ed.MEDIA_ATTACHING,r)}detachMedia(){this.logger.log("detachMedia"),this.trigger(ed.MEDIA_DETACHING,{}),this._media=null}transferMedia(){this._media=null;let e=this.bufferController.transferMedia();return this.trigger(ed.MEDIA_DETACHING,{transferMedia:e}),e}loadSource(e){this.stopLoad();let t=this.media,n=this._url,r=this._url=eL.buildAbsoluteURL(self.location.href,e,{alwaysNormalize:!0});this._autoLevelCapping=-1,this._maxHdcpLevel=null,this.logger.log(`loadSource:${r}`),t&&n&&(n!==r||this.bufferController.hasSourceTypes())&&(this.detachMedia(),this.attachMedia(t)),this.trigger(ed.MANIFEST_LOADING,{url:e})}get url(){return this._url}get hasEnoughToStart(){return this.streamController.hasEnoughToStart}get startPosition(){return this.streamController.startPositionValue}startLoad(e=-1,t){this.logger.log(`startLoad(${e+(t?", <skip seek to start>":"")})`),this.started=!0,this.resumeBuffering();for(let n=0;n<this.networkControllers.length&&(this.networkControllers[n].startLoad(e,t),this.started&&this.networkControllers);n++);}stopLoad(){this.logger.log("stopLoad"),this.started=!1;for(let e=0;e<this.networkControllers.length&&(this.networkControllers[e].stopLoad(),!this.started&&this.networkControllers);e++);}get loadingEnabled(){return this.started}get bufferingEnabled(){return this.streamController.bufferingEnabled}resumeBuffering(){this.bufferingEnabled||(this.logger.log("resume buffering"),this.networkControllers.forEach(e=>{e.resumeBuffering&&e.resumeBuffering()}))}pauseBuffering(){this.bufferingEnabled&&(this.logger.log("pause buffering"),this.networkControllers.forEach(e=>{e.pauseBuffering&&e.pauseBuffering()}))}get inFlightFragments(){let e={[ef.MAIN]:this.streamController.inFlightFrag};return this.audioStreamController&&(e[ef.AUDIO]=this.audioStreamController.inFlightFrag),this.subtititleStreamController&&(e[ef.SUBTITLE]=this.subtititleStreamController.inFlightFrag),e}swapAudioCodec(){this.logger.log("swapAudioCodec"),this.streamController.swapAudioCodec()}recoverMediaError(){this.logger.log("recoverMediaError");let e=this._media,t=null==e?void 0:e.currentTime;this.detachMedia(),e&&(this.attachMedia(e),t&&this.startLoad(t))}removeLevel(e){this.levelController.removeLevel(e)}get sessionId(){let e=this._sessionId;return e||(e=this._sessionId=function(){try{return crypto.randomUUID()}catch(e){try{let e=URL.createObjectURL(new Blob),t=e.toString();return URL.revokeObjectURL(e),t.slice(t.lastIndexOf("/")+1)}catch(t){let e=new Date().getTime();return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,t=>{let n=(e+16*Math.random())%16|0;return e=Math.floor(e/16),("x"==t?n:3&n|8).toString(16)})}}}()),e}get levels(){return this.levelController.levels||[]}get latestLevelDetails(){return this.streamController.getLevelDetails()||null}get loadLevelObj(){return this.levelController.loadLevelObj}get currentLevel(){return this.streamController.currentLevel}set currentLevel(e){this.logger.log(`set currentLevel:${e}`),this.levelController.manualLevel=e,this.streamController.immediateLevelSwitch()}get nextLevel(){return this.streamController.nextLevel}set nextLevel(e){this.logger.log(`set nextLevel:${e}`),this.levelController.manualLevel=e,this.streamController.nextLevelSwitch()}get loadLevel(){return this.levelController.level}set loadLevel(e){this.logger.log(`set loadLevel:${e}`),this.levelController.manualLevel=e}get nextLoadLevel(){return this.levelController.nextLoadLevel}set nextLoadLevel(e){this.levelController.nextLoadLevel=e}get firstLevel(){return Math.max(this.levelController.firstLevel,this.minAutoLevel)}set firstLevel(e){this.logger.log(`set firstLevel:${e}`),this.levelController.firstLevel=e}get startLevel(){let e=this.levelController.startLevel;return -1===e&&this.abrController.forcedAutoLevel>-1?this.abrController.forcedAutoLevel:e}set startLevel(e){this.logger.log(`set startLevel:${e}`),-1!==e&&(e=Math.max(e,this.minAutoLevel)),this.levelController.startLevel=e}get capLevelToPlayerSize(){return this.config.capLevelToPlayerSize}set capLevelToPlayerSize(e){let t=!!e;t!==this.config.capLevelToPlayerSize&&(t?this.capLevelController.startCapping():(this.capLevelController.stopCapping(),this.autoLevelCapping=-1,this.streamController.nextLevelSwitch()),this.config.capLevelToPlayerSize=t)}get autoLevelCapping(){return this._autoLevelCapping}get bandwidthEstimate(){let{bwEstimator:e}=this.abrController;return e?e.getEstimate():NaN}set bandwidthEstimate(e){this.abrController.resetEstimator(e)}get abrEwmaDefaultEstimate(){let{bwEstimator:e}=this.abrController;return e?e.defaultEstimate:NaN}get ttfbEstimate(){let{bwEstimator:e}=this.abrController;return e?e.getEstimateTTFB():NaN}set autoLevelCapping(e){this._autoLevelCapping!==e&&(this.logger.log(`set autoLevelCapping:${e}`),this._autoLevelCapping=e,this.levelController.checkMaxAutoUpdated())}get maxHdcpLevel(){return this._maxHdcpLevel}set maxHdcpLevel(e){td.indexOf(e)>-1&&this._maxHdcpLevel!==e&&(this._maxHdcpLevel=e,this.levelController.checkMaxAutoUpdated())}get autoLevelEnabled(){return -1===this.levelController.manualLevel}get manualLevel(){return this.levelController.manualLevel}get minAutoLevel(){let{levels:e,config:{minAutoBitrate:t}}=this;if(!e)return 0;let n=e.length;for(let r=0;r<n;r++)if(e[r].maxBitrate>=t)return r;return 0}get maxAutoLevel(){let e;let{levels:t,autoLevelCapping:n,maxHdcpLevel:r}=this;if(e=-1===n&&null!=t&&t.length?t.length-1:n,r)for(let n=e;n--;){let e=t[n].attrs["HDCP-LEVEL"];if(e&&e<=r)return n}return e}get firstAutoLevel(){return this.abrController.firstAutoLevel}get nextAutoLevel(){return this.abrController.nextAutoLevel}set nextAutoLevel(e){this.abrController.nextAutoLevel=e}get playingDate(){return this.streamController.currentProgramDateTime}get mainForwardBufferInfo(){return this.streamController.getMainFwdBufferInfo()}get maxBufferLength(){return this.streamController.maxBufferLength}setAudioOption(e){var t;return(null==(t=this.audioTrackController)?void 0:t.setAudioOption(e))||null}
53setSubtitleOption(e){var t;return(null==(t=this.subtitleTrackController)?void 0:t.setSubtitleOption(e))||null}get allAudioTracks(){let e=this.audioTrackController;return e?e.allAudioTracks:[]}get audioTracks(){let e=this.audioTrackController;return e?e.audioTracks:[]}get audioTrack(){let e=this.audioTrackController;return e?e.audioTrack:-1}set audioTrack(e){let t=this.audioTrackController;t&&(t.audioTrack=e)}get allSubtitleTracks(){let e=this.subtitleTrackController;return e?e.allSubtitleTracks:[]}get subtitleTracks(){let e=this.subtitleTrackController;return e?e.subtitleTracks:[]}get subtitleTrack(){let e=this.subtitleTrackController;return e?e.subtitleTrack:-1}get media(){return this._media}set subtitleTrack(e){let t=this.subtitleTrackController;t&&(t.subtitleTrack=e)}get subtitleDisplay(){let e=this.subtitleTrackController;return!!e&&e.subtitleDisplay}set subtitleDisplay(e){let t=this.subtitleTrackController;t&&(t.subtitleDisplay=e)}get lowLatencyMode(){return this.config.lowLatencyMode}set lowLatencyMode(e){this.config.lowLatencyMode=e}get liveSyncPosition(){return this.latencyController.liveSyncPosition}get latency(){return this.latencyController.latency}get maxLatency(){return this.latencyController.maxLatency}get targetLatency(){return this.latencyController.targetLatency}set targetLatency(e){this.latencyController.targetLatency=e}get drift(){return this.latencyController.drift}get forceStartLoad(){return this.streamController.forceStartLoad}get pathways(){return this.levelController.pathways}get pathwayPriority(){return this.levelController.pathwayPriority}set pathwayPriority(e){this.levelController.pathwayPriority=e}get bufferedToEnd(){var e;return!!(null!=(e=this.bufferController)&&e.bufferedToEnd)}get interstitialsManager(){var e;return(null==(e=this.interstitialsController)?void 0:e.interstitialsManager)||null}getMediaDecodingInfo(e,t=this.allAudioTracks){return tc(e,tE(t),navigator.mediaCapabilities)}}oa.defaultConfig=void 0;let oo=(0,Y.m)("HlsAudio"),os=document.createElement("audio"),ol=[],ou=!1,oc=!1,od=()=>{for(let e of(s&&(clearInterval(s),s=void 0),Object.values(oa.Events)))null==o||o.off(e)},oh=()=>{s&&(clearInterval(s),s=void 0);let e=os.volume,t=os.muted,n=()=>{for(let e of(ou||(s=setInterval(()=>{let e=os.duration;if(!Number.isNaN(e)&&e!==Number.POSITIVE_INFINITY)for(let t of ol)t({type:"progress",position:os.currentTime,duration:e})},500)),ol))e({type:"status",status:"play"})},r=()=>{for(let e of(s&&(clearInterval(s),s=void 0),ol))e({type:"status",status:"pause"})},i=()=>{s&&(clearInterval(s),s=void 0);let e=os.duration;if(!Number.isNaN(e)&&e!==Number.POSITIVE_INFINITY)for(let t of ol)t({type:"progress",position:Math.round(e),duration:Math.round(e)});if(oc)for(let e of ol)e({type:"status",status:"play"});else{var t,n;null==so||null===(t=(n=so.actions).backToLive)||void 0===t||t.call(n)}for(let e of ol)e({type:"status",status:"end"})},a=()=>{let n=os.volume,r=os.muted;if(n!==e)for(let t of(e=n,ol))t({type:"volume",volume:n});if(r!==t)for(let e of(t=r,ol))e({type:"muted",muted:r})},o=()=>{oo.error("Playback error occurred"),of()};os.removeEventListener("play",n),os.removeEventListener("pause",r),os.removeEventListener("ended",i),os.removeEventListener("volumechange",a),os.removeEventListener("error",o),os.addEventListener("play",n),os.addEventListener("pause",r),os.addEventListener("ended",i),os.addEventListener("volumechange",a),os.addEventListener("error",o)},of=()=>{o&&(o.detachMedia(),o.destroy())},op=e=>{let t=so.store.getState();of(),(o=new oa).loadSource(e),os.volume=t.persistVolume,os.muted=t.persistMute,o.attachMedia(os),oh()},om=(e,t)=>{var n;so.actions.setPersistVolume(e),so.actions.setPersistMute(t),null===(n=localStorage)||void 0===n||n.setItem("player",JSON.stringify({volume:e,mute:t}))};var og=n(365),ov=n(5336),oy=n(2489),ob=n(6130),oA=n(8646);let oE=async()=>new Promise(e=>{let t=setTimeout(()=>{e("")},500);window.__tcfapi?window.__tcfapi("getTCData",2,(n,r)=>{clearTimeout(t),r&&(null==n?void 0:n.tcString)?e(n.tcString):e("")}):(clearTimeout(t),e(""))}),ow=async()=>new Promise(e=>{let t=setTimeout(()=>{e(!1)},500);window.__tcfapi?window.__tcfapi("getTCData",2,(n,r)=>{var i;if(clearTimeout(t),!r||!(null==n?void 0:null===(i=n.purpose)||void 0===i?void 0:i.consents)){e(!1);return}
53e(!0===n.purpose.consents[1]&&!0===n.purpose.consents[2])}):(clearTimeout(t),e(!1))}),ox=(0,Y.m)("player"),oT={big:{width:1905,height:351},medium:{width:1044,height:282},small:{width:538,height:491}},oS={howler:{play:()=>{en=!1,r&&r.play()},playPlaylist:(e,t)=>{en=!0,et=!1;let n=so.store.getState(),i=t.map(e=>e.id),a=e.id.toString(),o=i.indexOf(a);!function t(i,a){let o=a.map(e=>(0,X.H4)(e.enclosureUrl)),s=a[i].enclosureUrl.lastIndexOf("/"),l=a[i].enclosureUrl.lastIndexOf(".");er(),r&&r.unload(),(r=new Z.Howl({src:o[i],autoplay:!0,volume:n.persistVolume,html5:!0,format:l<s?["mpeg"]:void 0,onload:()=>{0===i&&so.actions.setMedia({id:e.id,type:"podcast",mediaUrl:e.enclosureUrl,play:!0,imageUrl:e.imageUrl||"",artist:e.author,title:e.title,isFromPlaylist:!0,hasStartOver:!1})},onplayerror:(e,t)=>{J.error("Unable to play JSP : ".concat(t))},onloaderror:(e,t)=>{J.error("Unable to load mediaUrl : ".concat(t))},onend:function(){a&&i+1===a.length?(et=!0,en=!1,so.actions.backToLive(),"playing"===n.status&&so.actions.play()):(er(),et=!1,so.actions.setMedia({id:a[i+1].id,type:"podcast",imageUrl:a[i+1].imageUrl||"",mediaUrl:a[i+1].enclosureUrl,title:a[i+1].title,artist:a[i+1].author,play:!0,isFromPlaylist:!0,hasStartOver:!1}),t(i+1,a))}})).play(),ei()}(0,t.slice(o))},stop:()=>{let e=so.store.getState().isPlayingAd;r&&(et&&!e?r.unload():r.pause())},seek:e=>r&&r.seek(e),seekBack:e=>{null==r||r.seek(Math.max(0,r.seek()-e))},setFluxAndPlay:(e,t,n)=>{let i=so.store.getState(),a=t;{var o,s,l,u;let e=t?null===(s=document.cookie)||void 0===s?void 0:null===(o=s.split(" ").find(e=>e.startsWith("CAID=")))||void 0===o?void 0:o.split("=")[1].split(";")[0]:void 0,n=localStorage.getItem("TC_PRIVACY_TCF"),r=n?null===(u=JSON.parse(n))||void 0===u?void 0:null===(l=u.value)||void 0===l?void 0:l.tcString:void 0;if(t&&(e||r)){let n=t.startsWith("/")?"".concat(document.location.protocol,"//").concat(document.location.host).concat(t):t,i=new URL(n);e&&i.searchParams.append("CAID",e),r&&i.searchParams.append("consent",r),a=i.toString()}}et=e,(en=void 0!==n&&n)||(er(),r&&r.unload(),r=new Z.Howl({src:a,html5:!0,volume:i.persistVolume,autoplay:!0,format:["mp3","aac","mpeg"],onplayerror:(e,t)=>{J.error("Unable to play ".concat(a," : ").concat(t))},onloaderror:(e,t)=>{J.error("Unable to load ".concat(a," : ").concat(t))}}),ei())},setMuted:e=>{let{persistVolume:t}=so.store.getState();ea(t,e),r&&r.mute(e)},setVolume:e=>{let{persistMute:t}=so.store.getState();ea(e,t),r&&r.volume(e)},subscribe:e=>{(ee=ee.filter(t=>t===e)).push(e)},unsubscribe:e=>ee=ee.filter(t=>t===e),getVolume:()=>{let e=.5;try{e=so.store.getState().persistVolume}catch(e){}return r&&r.volume()||e},getMuted:()=>{let e=!1;try{e=so.store.getState().persistMute}catch(e){}return r&&r.mute()||e},removeEvents:er},hls:{play:()=>{oc=!1,os.play()},playPlaylist:(e,t)=>
53{oc=!0,ou=!1;let n=so.store.getState(),r=t.map(e=>e.id),i=e.id.toString(),a=r.indexOf(i),o=t.slice(a),s=(t,r)=>{let i=r[t],a=(0,X.H4)(i.enclosureUrl);od(),os.pause(),os.currentTime=0,op(a),os.onloadeddata=()=>{0===t&&e&&so.actions.setMedia({id:e.id,type:"podcast",mediaUrl:e.enclosureUrl,play:!0,imageUrl:e.imageUrl||"",artist:e.author,title:e.title,isFromPlaylist:!0,hasStartOver:!1})},os.onended=()=>{t+1<r.length?(so.actions.setMedia({id:r[t+1].id,type:"podcast",imageUrl:r[t+1].imageUrl||"",mediaUrl:r[t+1].enclosureUrl,title:r[t+1].title,artist:r[t+1].author,play:!0,isFromPlaylist:!0,hasStartOver:!1}),s(t+1,r)):(ou=!0,oc=!1,so.actions.backToLive(),"playing"===n.status&&so.actions.play())},os.play()};s(0,o)},stop:()=>{o&&(ou?of():os.pause())},seek:e=>{os.currentTime=e},seekBack:e=>{os.currentTime=Math.max(0,os.currentTime-e)},setFluxAndPlay:(e,t,n)=>{ou=e,(oc=!!n)||(od(),os.pause(),os.currentTime=0,op(t),os.play())},setMuted:e=>{let{persistVolume:t}=so.store.getState();om(t,e),os.muted=e},setVolume:e=>{let{persistMute:t}=so.store.getState();om(e,t),os.volume=e},subscribe:e=>{(ol=ol.filter(t=>t===e)).push(e)},unsubscribe:e=>{ol=ol.filter(t=>t===e)},getVolume:()=>{let e=.5;return e=so.store.getState().persistVolume,os.volume||e},getMuted:()=>{let e=!1;return e=so.store.getState().persistMute,os.muted||e},removeEvents:od}},o_=e=>e.subscribe(e=>{switch(e.type){case"muted":oq(e.muted);break;case"volume":oz(100*e.volume);break;case"status":oQ("play"===e.status?"playing":"stopped");break;case"progress":oK(e)}}),oC=(0,oA.v)(),ok=oC?K.ZP.Radio(oC):void 0,oI=oC&&K.ZP.playerExterne(oC),oL=!!(null==ok?void 0:null===(k=ok.pages)||void 0===k?void 0:k.playerExterne),oP=null==ok?void 0:null===(P=ok.structure)||void 0===P?void 0:null===(L=P.player)||void 0===L?void 0:null===(I=L.externalParameters)||void 0===I?void 0:I.type,oO=!!(null==ok?void 0:null===(D=ok.structure)||void 0===D?void 0:null===(R=D.player)||void 0===R?void 0:null===(O=R.externalParameters)||void 0===O?void 0:O.active)&&oL&&"string"==typeof oP&&"string"==typeof oI,oR=null==ok?void 0:null===(F=ok.structure)||void 0===F?void 0:null===(j=F.player)||void 0===j?void 0:null===(M=j.externalParameters)||void 0===M?void 0:null===(N=M.size)||void 0===N?void 0:N.height,oD=null==ok?void 0:null===(z=ok.structure)||void 0===z?void 0:null===(V=z.player)||void 0===V?void 0:null===(U=V.externalParameters)||void 0===U?void 0:null===(B=U.size)||void 0===B?void 0:B.width,oN=null==ok?void 0:null===(G=ok.structure)||void 0===G?void 0:null===(H=G.player)||void 0===H?void 0:null===(Q=H.externalParameters)||void 0===Q?void 0:null===(q=Q.size)||void 0===q?void 0:q.type,oM=window.opener;try{d=oM&&oM.player}catch(e){}let oj=oy.Z.getItem("player");oj&&(l=JSON.parse(oj));let oF=(()=>d.store,d?d.store:(0,W.MT)({id:"default",status:"idle",volume:(l?l.volume:50)*100,muted:!!l&&l.mute,type:"radio",metas:{title:"",artist:""},persistVolume:null!==(y=null==l?void 0:l.volume)&&void 0!==y?y:.5,persistMute:!!l&&l.mute,isHls:!1,hasStartOver:!1,isPlaylist:!1,soundcastEnabled:!1})),oB=(0,W.MT)(null),oU=(0,W.yM)("setAdProgress"),oV=(0,W.yM)("resetAdProgress");oB.on(oU,(e,t)=>t).on(oV,()=>null);let oz=(0,W.yM)("setVolume"),oq=(0,W.yM)("setMuted"),oQ=(0,W.yM)("setStatus"),oH=(0,W.yM)("setMedia"),oG=(0,W.yM)("updateMetas"),oK=(0,W.yM)("updateProgress"),o$=(0,W.yM)("setPersistVolume"),oW=(0,W.yM)("setPersistMute"),oZ=(0,W.yM)("setIsHls"),oY=(0,W.yM)("setHasStartOver"),oX=(0,W.yM)("setIsPlaylist"),oJ=(0,W.yM)("setIsPlayingAd"),o0=(0,W.yM)("setSoundcastEnabled");oF.on(oz,(e,t)=>({...e,volume:t})).on(oq,(e,t)=>({...e,muted:t})).on(oQ,(e,t)=>({...e,status:t})).on(oH,(e,t)=>{let{id:n,mediaUrl:r,type:i,idMds:a,imageUrl:o,hasStartOver:s,isPlaylist:l}=t;return{...e,id:n,imageUrl:o,mediaUrl:(0,X.H4)(r),type:i,idMds:a,progressSeconds:void 0,hasStartOver:s,isPlaylist:l}}).on(oG,(e,t)=>({...e,metas:t})).on(oK,(e,t)=>({...e,progressSeconds:t})).on(o$,(e,t)=>({...e,persistVolume:t})).on(oW,(e,t)=>({...e,persistMute:t})).on(oZ,(e,t)=>({...e,isHls:t})).on(oY,(e,t)=>({...e,hasStartOver:t})).on(oX,(e,t)=>({...e,isPlaylist:t})).on(oJ,(e,t)=>({...e,isPlayingAd:t})).on(o0,(e,t)=>({...e,soundcastEnabled:t})),oF.subscribe(e=>{("radio"===e.type||"webradio"===e.type)&&e.idMds?c!==e.idMds&&(c=e.idMds,ob.FR(),u&&(u(),u=void 0),u=og.Z.subscribe(e.idMds,t=>{let{artist:n,title:r,imageUrl:i,...a}=t,o=oF.getState().type,s=oF.getState();
53if("radio"===o)oG({artist:n||"La musique revient",title:r,imageUrl:i||e.imageUrl,extra:{...a,prev:{...s}}});else if("webradio"===o){var l,u,c,d;oG({artist:n||"La musique revient",title:r,imageUrl:i||e.imageUrl,extra:{prev:(null===(u=s.metas.extra)||void 0===u?void 0:null===(l=u.prev)||void 0===l?void 0:l.type)==="radio"?{...null===(c=s.metas.extra)||void 0===c?void 0:c.prev,status:s.status}:null===(d=s.metas.extra)||void 0===d?void 0:d.prev}})}})):c=void 0});let o1=!d,o2=null,o3=[],o4=0,o5=function(e){let t=!(arguments.length>1)||void 0===arguments[1]||arguments[1];return"podcast"!==e&&t},o8=!1,o6=()=>{o8||(o_(st()),o8=!0)},o9=()=>{if(!o2)return;let e={...o2};o2=null;let{id:t,type:n,mediaUrl:r,imageUrl:i,hasStartOver:a,play:o}=e,s=oF.getState(),l=st();if(o6(),"radio"===n||"webradio"===n){let{idMds:u}=e;!1!==o&&(s.id!==t&&oQ("loading"),oH({id:t,type:n,mediaUrl:r,idMds:u,imageUrl:i,hasStartOver:a,isPlaylist:!1}),o1=!0,l.setFluxAndPlay(!0,r,!1))}else if("podcast"===n){let{artist:o,title:u}=e;oQ("loading"),oH({id:t,type:n,mediaUrl:r,imageUrl:i,hasStartOver:a,isPlaylist:!1}),oG({title:u,artist:o,imageUrl:i,extra:{prev:s}}),o1=!0,l.setFluxAndPlay(!1,r,!1)}},o7=async e=>{let{id:t,type:n,imageUrl:r}=e;if("podcast"===n)return!1;let{latitude:i,longitude:a}=(0,ov.cD)();o2={...e};try{var o,s,l;let e=await ow()?await oE():void 0,u=window.location.host.split(":")[0],c=window.location.href,d=(null===(o=navigator.language)||void 0===o?void 0:o.split("-")[0])||"fr",h=(null===(l=document.cookie)||void 0===l?void 0:null===(s=l.split(" ").find(e=>e.startsWith("CAID=")))||void 0===s?void 0:s.split("=")[1].split(";")[0])||void 0,f=await K.ZP.vast.getVast(u,{streamId:t,consent:e||void 0,pageUrl:c,lat:i,long:a,lng:d,timestamp:String(Math.floor(Date.now()/1e3)),caid:h}),p=K.ZP.Radio(u).alias;if(!f.ads||0===f.ads.length)return!1;return o3=f.ads,o4=0,se(r,n,p)}catch(e){return ox.error("Error playing ad:",e),o2=null,oV(),!1}},se=(e,t,n)=>{if(o4>=o3.length)return o2&&o9(),!0;let r=o3[o4],i=r.mediaFiles.find(e=>e.type.startsWith("audio/")||e.url.match(/\.(mp3|aac|ogg|wav)$/i));if(!i)return o4++,se(e,t,n);let a=i.url,o="ad-".concat(r.id);oJ(!0);let s=async e=>{try{let t="lesindesradios/".concat(n,"/site/web");await fetch("".concat(e,"&ua=").concat(encodeURIComponent(t)),{method:"GET",keepalive:!0})}catch(e){ox.error("Failed to send tracking ping:",e)}},l=new Set,u=e=>{if(l.has(e))return;l.add(e);let t=(r.trackingEvents||[]).find(t=>t.event===e);t&&s(t.url)};r.impressionUrl&&s(r.impressionUrl),oH({id:o,mediaUrl:a,type:t,imageUrl:e,hasStartOver:!1,isPlaylist:!1}),oQ("loading");let c=st();o_(c),o1=!0,c.setFluxAndPlay(!0,a,!1);let d=r.duration||30,h=Date.now(),f=setInterval(()=>{let e=(Date.now()-h)/1e3;e>=d?(f&&clearInterval(f),f=void 0,oU({position:d,duration:d,adId:o})):oU({position:e,duration:d,adId:o})},250);u("start");let p=0,m=oB.subscribe(e=>{if(!e||e.adId!==o)return;let t=e.position,n=t/e.duration;t>p&&(p=t,n>=.25&&n<.5?u("firstQuartile"):n>=.5&&n<.75?u("midpoint"):n>=.75&&n<1&&u("thirdQuartile"))}),g=oF.subscribe(i=>{if("stopped"===i.status&&i.id==="ad-".concat(r.id)){g(),m(),f&&clearInterval(f);let r=oB.getState();r&&r.adId===o&&r.position>=r.duration-1&&u("complete"),++o4>=o3.length?o2&&o9():se(e,t,n)}i.id!=="ad-".concat(r.id)&&i.id!==(null==o2?void 0:o2.id)&&"stopped"!==i.status&&(g(),m(),f&&clearInterval(f),o3=[],o4=0)});return!0},st=()=>oS[oF.getState().isHls?"hls":"howler"],sn=e=>{e&&ob.cR(e)},sr={store:oF,actions:{setVolume:e=>{oz(e),st().setVolume(e/100)},setMuted:e=>{oq(e),st().setMuted(e)},setMedia:async e=>{let{id:t,type:n,play:r,mediaUrl:i,imageUrl:a,hasStartOver:o,soundcastEnabled:s}=e,l=oF.getState();if(o0(!!s),r&&"podcast"!==n&&s&&await o7(e))return;let u=st();if(o6(),"radio"===e.type||"webradio"===e.type){let{idMds:c}=e;if(r)l.id!==t&&oQ("loading"),oH({id:t,type:n,mediaUrl:i,idMds:c,imageUrl:a,hasStartOver:o,isPlaylist:!1}),o1=!0,u.setFluxAndPlay("radio"===n||"webradio"===n,i,!1);else{if("playing"===l.status)return;oQ("stopped"),oH({id:t,type:n,mediaUrl:i,idMds:c,imageUrl:a,hasStartOver:o,isPlaylist:!1}),o0(!!s),o1=!1}}else if("podcast"===e.type){let{artist:s,title:u,isFromPlaylist:d}=e;if(oV(),r){var c;o0(!1),oQ("loading"),oH({id:t,type:n,mediaUrl:i,imageUrl:a,hasStartOver:o,isPlaylist:d}),oG({title:u,artist:s,imageUrl:a,extra:{prev:"podcast"===l.type||d?null===(c=l.metas.extra)||void 0===c?void 0:c.prev:l}}),o1=!0,d||st().setFluxAndPlay("radio"===n||"webradio"===n,i,d),ob.Q$()}else o0(!1),oQ("stopped"),oH({id:t,type:n,mediaUrl:i,imageUrl:a,hasStartOver:o,isPlaylist:d}),oG({artist:s,title:u,imageUrl:a,extra:{prev:l}}),o1=!1,ob.FR()}},play:async()=>{let e=oF.getState();if(o5(e.type,e.soundcastEnabled)){let t={id:e.id,type:e.type,play:!0,mediaUrl:e.mediaUrl,imageUrl:e.imageUrl,hasStartOver:e.hasStartOver,isHls:e.isHls,idMds:e.idMds,soundcastEnabled:e.soundcastEnabled};if(await o7(t))return}oQ("loading"),o1?(st().play(),oQ("playing")):e.mediaUrl&&(st().setFluxAndPlay("radio"===e.type||"webradio"===e.type,e.mediaUrl,!1),o1=!0),ob.Q$()},playPlaylist:(e,t)=>
53{oX(!0);let n=oF.getState();if(e){var r;oQ("loading"),oH({id:e.id,type:"podcast",mediaUrl:e.enclosureUrl,idMds:void 0,imageUrl:e.imageUrl||"",hasStartOver:!1,isPlaylist:!0}),oG({artist:e.author,title:e.title,imageUrl:e.imageUrl||"",extra:{prev:"radio"===n.type?n:null===(r=n.metas.extra)||void 0===r?void 0:r.prev}}),st().playPlaylist(e,t),o1=!0}},seek:e=>{var t;let n=null===(t=oF.getState().progressSeconds)||void 0===t?void 0:t.duration;n&&oK({position:e,duration:n}),st().seek(e)},stop:()=>{"podcast"!==oF.getState().type&&(o1=!1),oQ("stopped"),st().stop(),ob.FR()},backToLive:()=>{var e,t,n;let r=null===(e=oF.getState().metas.extra)||void 0===e?void 0:e.prev,i=null==r?void 0:null===(n=r.metas.extra)||void 0===n?void 0:null===(t=n.prev)||void 0===t?void 0:t.isHls;r&&sr.actions.setMedia({id:r.id,type:r.type,imageUrl:r.imageUrl,mediaUrl:r.mediaUrl,altCover:r.altCover,idMds:r.idMds,play:!0,isHls:r.isHls,isFromPlaylist:!1,hasStartOver:!!i&&r.hasStartOver,soundcastEnabled:r.soundcastEnabled})},setPersistVolume:e=>{o$(e)},setPersistMute:e=>{oW(e)},setIsHls:e=>{oZ(e)},seekBack:e=>{st().seekBack(e)}}};window.player=sr;let si=()=>{if(oO){if(!h||(null==h?void 0:h.closed)){if("popup"===oP){let e=oD,t=oR;if("perso"!==oN){let n=oT[oN];e=n.width,t=n.height}h=window.open("".concat(oI),"player","height=".concat(t,",width=").concat(e,",menubar=no,toolbar=no,location=no,status=no,resizable=no,scrollbars=no"))}else{if("newPage"!==oP)return Promise.resolve();h=window.open("".concat(oI),"player")}return new Promise((e,t)=>{let n=0,r=()=>{if(null==h?void 0:h.player){e();return}++n<10?setTimeout(r,500):t()};r()})}h.focus()}return Promise.resolve()},sa=async function(e){let t=!(arguments.length>1)||void 0===arguments[1]||arguments[1],n=window.innerWidth<$.eZ.md;if(!oO||d||!t||n){e(sr);return}await si();try{e(h.player)}catch(e){ox.error(e)}};d&&(window.onbeforeunload=()=>{sr.actions.stop()});var so={store:oF,actions:{setVolume:e=>{sa(t=>t.actions.setVolume(e))},setMuted:e=>{sa(t=>t.actions.setMuted(e))},setMedia:e=>{sa(t=>t.actions.setMedia(e),e.play)},play:()=>{sa(e=>e.actions.play())},playPlaylist:(e,t)=>
53{sa(n=>n.actions.playPlaylist(e,t))},seek:e=>{sa(t=>t.actions.seek(e))},stop:()=>{sa(e=>{e.actions.stop(),e.store.getState().soundcastEnabled&&oV()})},backToLive:e=>{sa(e=>e.actions.backToLive()),sn(e)},setPersistVolume:e=>{sa(t=>t.actions.setPersistVolume(e))},setPersistMute:e=>{sa(t=>t.actions.setPersistMute(e))},setIsHls:e=>{sa(t=>t.actions.setIsHls(e))},seekBack:e=>{sa(t=>t.actions.seekBack(e))}}}},469:function(e,t,n){"use strict";n.d(t,{EE:function(){return u},Kr:function(){return a},oY:function(){return s},yp:function(){return o},zX:function(){return l}});var r=n(3325),i=n(6130);let a=["facebook","twitter","linkedin","instagram"],o=a.filter(e=>"instagram"!==e),s=["facebook_2","twitter_2","instagram_2","linkedin"].filter(e=>"instagram_2"!==e),l=(e,t,n,r,a,o,s,l)=>{let u=encodeURIComponent(t),c="Titre"===a,d="Podcast"===a;window.open("facebook"===e||"facebook_2"===e?"https://www.facebook.com/sharer/sharer.php?u=".concat(u):"twitter"===e||"twitter_2"===e?"https://twitter.com/intent/tweet?text=".concat(encodeURIComponent(r||""),"&url=").concat(u):"https://www.linkedin.com/shareArticle?mini=true&url=".concat(u),"menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height=600,width=600"),i.uL({type_partage:a||"Page",platform_out:e,artiste_titre:c?o:void 0,page_id:null==n?void 0:n.id,page_name:null==n?void 0:n.name,page_url:t,podcast_id:d?null==s?void 0:s.id:void 0,podcast_name:d?s?null==s?void 0:s.title:o:void 0,episode_id:d?null==l?void 0:l.id:c?o:void 0,episode_name:d?null==l?void 0:l.title:void 0,page:n})},u=(e,t,n,i,a,o,s,u)=>{var c,d;let h=(null==u?void 0:null===(c=u.page)||void 0===c?void 0:c.slug)?"".concat(window.location.protocol,"//").concat(window.location.host).concat(null==u?void 0:null===(d=u.page)||void 0===d?void 0:d.slug):"".concat(window.location.href),f=r.ZP.Radio(e);l(t,h,i,"J'\xe9coute ".concat(a?a+" - ":"").concat(n," en ce moment sur ").concat(f.name),o,(a?a+" - ":"")+n,s,u)}},1257:function(e,t,n){"use strict";n.d(t,{OE:function(){return l},Vd:function(){return o},hL:function(){return s}});var r=n(3325),i=n(4657),a=n(482);let o=(e,t)=>!!r.ZP.Webradios(e).find(e=>e.id===t),s=e=>{let{streamFormat:t,hd:n,bd:r,hls:o}=e,s={[i.Ag.Hd]:n,[i.Ag.Bd]:r,[i.Ag.Hls]:o}[t],l=!!(t===i.Ag.Hls&&s);return a.ZP.actions.setIsHls(l),{mediaUrl:s||n,isHls:l}},l=(e,t)=>
53{var n,i,s,l;let u=r.ZP.Radio(e),c=null===(n=a.h.getState().metas.extra)||void 0===n?void 0:n.prev;if(c){let n=[...r.ZP.Radiostreams(e),...r.ZP.Webradios(e)].find(e=>e.id===c.id);return{type_player:o(e,c.id)?"Webradio":"Radio",position_player:null==t?void 0:t.position,radio_id:c.id,radio_name:(null==n?void 0:n.label)||u.name,page_id:null==t?void 0:null===(i=t.page)||void 0===i?void 0:i.id,page_name:null==t?void 0:null===(s=t.page)||void 0===s?void 0:s.name,page_url:(null==t?void 0:null===(l=t.page)||void 0===l?void 0:l.canonical)||window.location.href,page:null==t?void 0:t.page}}}},6130:function(e,t,n){"use strict";n.d(t,{CK:function(){return N},FR:function(){return R},M:function(){return P},Me:function(){return B},Q$:function(){return O},Wy:function(){return z},cR:function(){return D},hQ:function(){return U},is:function(){return M},qy:function(){return F},sn:function(){return V},uL:function(){return j}});var r=n(3325),i=n(7860),a=n(9989),o=n(8646),s=n(7539);let l=!1,u="",c="",d="",h="",f="",p="",m="",g="",v="",y="",b="",A="",E="",w="",x=" ",T=(0,a.m)("tagging"),S=()=>n(8168).default.getInstance(),_=new Map([["podcast","Podcast"],["article","Article"],["jeux","Jeux"],["event","Event"],["game","Game"],["show","Show"],["team","Team"],["gallery","Gallery"],["video","Video"],["simplePage","SimplePage"],["job","Job"],["home","Home"]]),C=e=>{let t=r.ZP.taggingData(e);return(null==t?void 0:t.radioIdCmp)&&(null==t?void 0:t.headerCmp)&&(null==t?void 0:t.bodyCmp)?t.radioIdCmp:void 0},k=async()=>{if(!l){var e;l=null!==(e=S())&&void 0!==e&&!!e.tcContainers}},I=e=>(e.endsWith("/1")&&(e=e.slice(0,-2)),e),L=(e,t)=>{var n,i;let a,o,s;let l=r.ZP.MenuMain(e);if("/recherche"===t&&(a="Recherche"),"/horoscope"===t&&(a="Horoscope"),null===(n=l.items)||void 0===n||n.forEach(e=>{I(e.target)!==I(t)||(s=e,e.parentId||(a=e.label))}),null==s?void 0:s.parentId){let e=null===(i=l.items)||void 0===i?void 0:i.find(e=>e.id===(null==s?void 0:s.parentId));a=null==e?void 0:e.label,o=s.label}return{page_chapter1:a,page_chapter2:o,menuItem:s}},P=e=>{{let t=(0,o.XF)();C(t)&&k().then(async()=>{var n,i,a,o;let u;let c=L(t,window.location.pathname),d=e.id?await r.ZP.page.getPageCategories(t,e.id):void 0,h=null==d?void 0:d.categories.map(e=>e.titre),f=r.ZP.Zones(t),p=(0,s.D)("zone"),m=p?null==f?void 0:f.find(e=>{let{id:t}=e;return t===p}):void 0;!c.menuItem&&d&&d.categories&&d.categories.forEach(async n=>{if(!(c=L(t,n.slug)).menuItem&&n.parentId){let e=await r.ZP.category.getCategory(t,n.parentId);c=L(t,e.slug)}u=_.get(e.pageContent.model.contentType)}),u=_.get(e.pageContent.model.contentType),c.menuItem||(u=_.get(e.pageContent.model.contentType));let g="CATEGORY"!==e.pageContent.model.type?window.location.href:(null==e?void 0:null===(n=e.category)||void 0===n?void 0:n.titre)?null==e?void 0:null===(i=e.category)||void 0===i?void 0:i.titre:e.name,v={site_id:C(t),page:window.location.href,page_url:window.location.href,page_chapter1:c.page_chapter1,page_chapter2:c.page_chapter2,page_type:u,page_id:e.id,Xt_page:g,page_name:e.name,page_categories:h,author:e.createdBy,location_zone:null===(o=e.pageContent)||void 0===o?void 0:null===(a=o.data)||void 0===a?void 0:a.locationZoneIds,publicationDate:e.publishedDate,zone_id:null==m?void 0:m.id,zone_name:null==m?void 0:m.label};S().setTcVars(v);try{l&&S().triggerEvent("page_view",void 0,v)}catch(e){}})}},O=()=>{{let e=(0,o.XF)();C(e)&&k().then(async()=>{let t={site_id:C(e),date_click_play:new Date().toISOString()};S().setTcVars(t)})}},R=()=>{{let e=(0,o.XF)();C(e)&&k().then(async()=>{let t=new Date,n={site_id:C(e),date_click_pause:new Date().toISOString(),av_session_id:c,av_content_id:u,av_player_type:d,av_player_position:h,radio_id:f,radio_name:p,page_id:m,page_name:g,page_url:v,podcast_id:y,podcast_name:b,av_episode_id:A,av_episode_name:E,file_name:w,date_click_play:t.toISOString(),duration:x?Math.abs(t.getTime()-new Date(x).getTime())/1e3:0};S().setTcVars(n);try{c&&l&&S().triggerEvent("video_end",void 0,n)}catch(e){}})}},D=e=>{{let t=(0,o.XF)();C(t)&&k().then(async()=>{let n;d=e.type_player,h=e.position_player,f=e.radio_id,p=e.radio_name,m=e.page_id,g=(0,i.gK)(e.page),v=e.page_url,y=e.podcast_id,b=e.podcast_name,A=e.episode_id,E=e.episode_name,w=e.file_name,x=new Date().toISOString();let r=(n=new Date().getTime(),"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){let t=(n+16*Math.random())%16|0;return n=Math.floor(n/16),("x"==e?t:3&t|8).toString(16)}));c=r,u=e.episode_id||"no Id";let a={av_content_id:e.episode_id||"no Id",av_player_type:e.type_player,av_player_position:e.position_player,radio_id:e.radio_id,radio_name:e.radio_name,page_id:e.page_id,page_name:(0,i.gK)(e.page),page_url:e.page_url,podcast_id:e.podcast_id,podcast_name:e.podcast_name,av_episode_id:e.episode_id,av_episode_name:e.episode_name,file_name:e.file_name,date_click_play:x||new Date,av_session_id:r,site_id:C(t)};S().setTcVars(a);try{l&&S().triggerEvent("video_start",void 0,a)}catch(e){}})}},N=e=>{{let t=(0,o.XF)();C(t)&&k().then(async()=>{let n={click:"download",click_class:"download",type_download:e.type_telechargement,page_id:e.page_id,page_name:(0,i.gK)(e.page),page_url:e.page_url,podcast_id:e.podcast_id,podcast_name:e.podcast_name,av_episode_id:e.episode_id,av_episode_name:e.episode_name,file_name:e.file_name,site_id:C(t)};S().setTcVars(n);try{l&&S().captureEvent("click_download",void 0,n)}catch(e){}})}},M=e=>{{let t=(0,o.XF)();C(t)&&k().then(async()=>{let n={click:"subscribe",click_class:"subscribe",platform_out:e.platform_out,page_id:e.page_id,page_name:(0,i.gK)(e.page),page_url:e.page_url,podcast_id:e.podcast_id,podcast_name:e.podcast_name,av_episode_id:e.episode_id,av_episode_name:e.episode_name,site_id:C(t)};try{l&&S().triggerEvent("send_subscribe",void 0,n)}catch(e){}})}},j=e=>{{let t=(0,o.XF)();C(t)&&k().then(async()=>{let n=new Map([["facebook","Facebook"],["twitter","Twitter"],["linkedin","Linkedin"]]),r={type_share:e.type_partage,platform_out:n.get(e.platform_out),artist_title:e.artiste_titre,page_id:e.page_id,page_name:(0,i.gK)(e.page),page_url:e.page_url,podcast_id:e.podcast_id,podcast_name:e.podcast_name,av_episode_id:e.episode_id||"no id",av_episode_name:e.episode_name,av_content_id:e.episode_id||"no id",site_id:C(t)};S().setTcVars(r);try{l&&S().triggerEvent("video_share",void 0,r)}catch(e){}})}},F=e=>{{let t=(0,o.XF)();C(t)&&k().then(async()=>{let n={site_id:C(t),id_zone:e.id_zone.toString(),nom_zone:e.nom_zone.toString(),moment:e.moment.toString()};S().setTcVars(n);try{l&&S().triggerEvent("click_zone_localisation",void 0,n)}catch(e){}})}},B=()=>{{let e=(0,o.XF)();C(e)&&k().then(async()=>{l&&S().triggerEvent("click_gestion_cookies",void 0,{site_id:C(e)})})}},U=(e,t)=>{{let n=(0,o.XF)();C(n)&&k().then(async()=>{let r={site_id:C(n),event:e,ise_keyword:t.ise_keyword,ise_page:t.ise_page,ise_click_rank:t.ise_click_rank,persistent:!0};S().setTcVars(r),l&&S().triggerEvent(e,void 0,r)})}},V=e=>{{let t=(0,o.XF)();C(t)&&k().then(async()=>{let n={site_id:C(t),id_ad:e.id_ad,nom_ad:e.nom_ad||"no name",type_ad:e.type_ad};S().setTcVars(n);try{var r;l&&(null===(r=S())||void 0===r||r.triggerEvent("impression_ad",void 0,n))}catch(e){T.error("Error sending ad impression event ",e)}})}},z=e=>{{let t=(0,o.XF)();C(t)&&k().then(async()=>{let n={id_ad:e.id_ad,nom_ad:e.nom_ad,type_ad:e.type_ad,site_id:C(t)};S().setTcVars(n);try{l&&S().triggerEvent("click_ad",void 0,n)}catch(e){}})}}},3883:function(e,t,n){"use strict";n.d(t,{F:function(){return r},G:function(){return i}});let r=e=>{var t;return e?(null===(t=n.g.apidata)||void 0===t?void 0:t.mode)==="light"?"bg--dark":"bg--light":""},i=e=>"3"===e?"gutters-md":void 0},3681:function(e,t,n){"use strict";n.d(t,{MP:function(){return a},jo:function(){return i},qx:function(){return o}});var r=n(3325);(0,n(9989).m)("titleUtils");let i=e=>window.open("https://www.deezer.com/fr/track/".concat(e),"_blank"),a=e=>window.open("https://open.spotify.com/track/".concat(e),"_blank"),o=(e,t)=>{if(!t)return;let n=r.ZP.Zones(e),i=r.ZP.Webradios(e).find(e=>e.idMds===t);if(i)return i.altCover||i.imageUrl;let a=n.find(e=>!e.stream.parentId&&e.stream.idMds===t)||n.find(e=>e.stream.idMds===t);if(a)return a.stream.altCover||a.stream.imageUrl}}
53,9665:function(e,t,n){"use strict";n.d(t,{CL:function(){return a},ew:function(){return i}});let r=(e,t)=>{if(e.length<=t)return e;let n=e.substr(0,t-2);return n.substr(0,n.lastIndexOf(" "))+"..."},i=e=>r(e,70),a=e=>r(e,160)},5152:function(e,t,n){e.exports=n(3841)},2918:function(e,t,n){e.exports=n(8539)},9008:function(e,t,n){e.exports=n(6665)},1664:function(e,t,n){e.exports=n(3480)},1163:function(e,t,n){e.exports=n(3035)},4155:function(e){var t,n,r,i=e.exports={};function a(){throw Error("setTimeout has not been defined")}function o(){throw Error("clearTimeout has not been defined")}function s(e){if(t===setTimeout)return setTimeout(e,0);if((t===a||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(n){try{return t.call(null,e,0)}catch(n){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:a}catch(e){t=a}try{n="function"==typeof clearTimeout?clearTimeout:o}catch(e){n=o}}();var l=[],u=!1,c=-1;function d(){u&&r&&(u=!1,r.length?l=r.concat(l):c=-1,l.length&&h())}function h(){if(!u){var e=s(d);u=!0;for(var t=l.length;t;){for(r=l,l=[];++c<t;)r&&r[c].run();c=-1,t=l.length}r=null,u=!1,function(e){if(n===clearTimeout)return clearTimeout(e);if((n===o||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(e);try{n(e)}catch(t){try{return n.call(null,e)}catch(t){return n.call(this,e)}}}(e)}}function f(e,t){this.fun=e,this.array=t}function p(){}i.nextTick=function(e){var t=Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];l.push(new f(e,t)),1!==l.length||u||s(h)},f.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=p,i.addListener=p,i.once=p,i.off=p,i.removeListener=p,i.removeAllListeners=p,i.emit=p,i.prependListener=p,i.prependOnceListener=p,i.listeners=function(e){return[]},i.binding=function(e){throw Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(e){throw Error("process.chdir is not supported")},i.umask=function(){return 0}},2703:function(e,t,n){"use strict";var r=n(414);function i(){}function a(){}a.resetWarningCache=i,e.exports=function(){function e(e,t,n,i,a,o){if(o!==r){var s=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 s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:a,resetWarningCache:i}
53;return n.PropTypes=n,n}},5697:function(e,t,n){e.exports=n(2703)()},414:function(e){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},4526:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SHARE_SITES=void 0,t.SHARE_SITES={GOOGLE:"Google",ICAL:"iCal",OUTLOOK:"Outlook",YAHOO:"Yahoo"}},2941:function(e,t,n){"use strict";t.ZP=function(e,t){var n,r;return r=n=function(n){var r,a;function o(){(function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")})(this,o);for(var e,t,n,r=arguments.length,i=Array(r),a=0;a<r;a++)i[a]=arguments[a];return d(n,(t=n=d(this,(e=h(o)).call.apply(e,[this].concat(i))),m(p(p(n)),"state",{dropdownOpen:!1}),m(p(p(n)),"handleCalendarButtonClick",function(e){var t=n.props.filename;e.preventDefault();var r=e.currentTarget.getAttribute("href");if(r.startsWith("BEGIN")){var i=new Blob([r],{type:"text/calendar;charset=utf-8"});if((0,s.isInternetExplorer)())window.navigator.msSaveOrOpenBlob(i,"".concat(t,".ics"));else{var a=document.createElement("a");a.href=window.URL.createObjectURL(i),a.setAttribute("download","".concat(t,".ics")),document.body.appendChild(a),a.click(),document.body.removeChild(a)}}else window.open(r,"_blank")}),m(p(p(n)),"handleDropdownToggle",function(e){e.preventDefault(),n.setState(function(e){return{dropdownOpen:!e.dropdownOpen}})}),t))}return function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&f(e,t)}(o,n),r=[{key:"render",value:function(){var n=this,r=this.props,a=r.buttonProps,o=r.buttonText,l=r.className,c=r.dropdownProps,d=r.event,h=r.items,f=r.linkProps;return i.default.createElement("div",{className:l},i.default.createElement(e,u({},a,{onClick:this.handleDropdownToggle}),o),this.state.dropdownOpen&&i.default.createElement(t,u({},c,{isOpen:this.state.dropdownOpen,onRequestClose:this.handleDropdownToggle}),h.map(function(e){return i.default.createElement("a",u({},f,{key:e,onClick:n.handleCalendarButtonClick,href:(0,s.buildShareUrl)(d,e)}),e)})))}}],c(o.prototype,r),a&&c(o,a),o}(i.Component),m(n,"propTypes",{buttonProps:a.default.shape(),buttonText:a.default.node,className:a.default.string,dropdownProps:a.default.shape(),event:a.default.shape({description:a.default.string,duration:a.default.oneOfType([a.default.number,a.default.string]).isRequired,endDatetime:a.default.string.isRequired,location:a.default.string,startDatetime:a.default.string.isRequired,title:a.default.string}).isRequired,filename:a.default.string,items:a.default.arrayOf(a.default.oneOf(Object.keys(o.SHARE_SITES).map(function(e){return o.SHARE_SITES[e]}))),linkProps:a.default.shape()}),m(n,"defaultProps",{buttonProps:{},buttonText:"Add to Calendar",className:null,dropdownProps:{},filename:"download",items:Object.keys(o.SHARE_SITES).map(function(e){return o.SHARE_SITES[e]}),linkProps:{}}),r},Object.defineProperty(t,"FU",{enumerable:!0,get:function(){return o.SHARE_SITES}});var r,i=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e){for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,n):{};r.get||r.set?Object.defineProperty(t,n,r):t[n]=e[n]}}return t.default=e,t}(n(7294)),a=(r=n(5697))&&r.__esModule?r:{default:r},o=n(4526),s=n(2814);function l(e){return(l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function u(){return(u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function c(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function d(e,t){return t&&("object"===l(t)||"function"==typeof t)?t:p(e)}
53function h(e){return(h=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function f(e,t){return(f=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function p(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function m(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},2814:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.buildShareUrl=t.escapeICSDescription=t.isInternetExplorer=t.isMobile=t.formatDuration=t.formatDate=void 0;var r=n(4526),i=function(e){return e&&e.replace("+00:00","Z")};t.formatDate=i;var a=function(e){if("string"==typeof e)return e;var t=e.toString().split(".");return t.length<2&&t.push("00"),t.map(function(e){return 2===e.length?e:"0".concat(e)}).join("")};t.formatDuration=a;var o=function(){return/Mobile|iP(hone|od|ad)|Android|BlackBerry|IEMobile/.test(window.navigator.userAgent||window.navigator.vendor||window.opera)};t.isMobile=o,t.isInternetExplorer=function(){return/MSIE/.test(window.navigator.userAgent)||/Trident/.test(window.navigator.userAgent)};var s=function(e){return e.replace(/(\r?\n|<br ?\/?>)/g,"\\n")};t.escapeICSDescription=s;var l=function(e){var t=e.description,n=e.endDatetime,r=e.location,i=e.startDatetime,a=e.timezone,o=e.title;return"https://calendar.google.com/calendar/render?action=TEMPLATE&dates=".concat(i,"/").concat(n).concat(a&&"&ctz=".concat(a),"&location=").concat(r,"&text=").concat(o,"&details=").concat(t)},u=function(e){var t=e.description,n=e.duration,r=e.location,i=e.startDatetime,a=e.title;return"https://calendar.yahoo.com/?v=60&view=d&type=20&title=".concat(a,"&st=").concat(i,"&dur=").concat(n,"&desc=").concat(t,"&in_loc=").concat(r)},c=function(e){var t=e.description,n=(e.ctz,e.endDatetime),r=e.location,i=e.startDatetime,a=e.timezone,l=void 0===a?"":a,u=e.title,c=["BEGIN:VCALENDAR","VERSION:2.0","BEGIN:VEVENT","URL:".concat(document.URL),"METHOD:PUBLISH",""===l?"DTSTART:".concat(i):"DTSTART;TZID=".concat(l,":").concat(i),""===l?"DTEND:".concat(n):"DTEND;TZID=".concat(l,":").concat(n),"SUMMARY:".concat(void 0===u?"":u),"DESCRIPTION:".concat(s(void 0===t?"":t)),"LOCATION:".concat(void 0===r?"":r),"END:VEVENT","END:VCALENDAR"].join("\n");return o()?encodeURI("data:text/calendar;charset=utf8,".concat(c)):c};t.buildShareUrl=function(e,t){var n=e.description,o=void 0===n?"":n,s=e.duration,d=e.endDatetime,h=e.location,f=void 0===h?"":h,p=e.startDatetime,m=e.timezone,g=e.title,v=void 0===g?"":g,y=t!==r.SHARE_SITES.ICAL&&t!==r.SHARE_SITES.OUTLOOK,b={description:y?encodeURIComponent(o):o,duration:a(s),endDatetime:i(d),location:y?encodeURIComponent(f):f,startDatetime:i(p),timezone:void 0===m?"":m,title:y?encodeURIComponent(v):v};switch(t){case r.SHARE_SITES.GOOGLE:return l(b);case r.SHARE_SITES.YAHOO:return u(b);default:return c(b)}}},9590:function(e){var t="undefined"!=typeof Element,n="function"==typeof Map,r="function"==typeof Set,i="function"==typeof ArrayBuffer&&!!ArrayBuffer.isView;e.exports=function(e,a){try{return function e(a,o){if(a===o)return!0;if(a&&o&&"object"==typeof a&&"object"==typeof o){var s,l,u,c;if(a.constructor!==o.constructor)return!1;if(Array.isArray(a)){if((s=a.length)!=o.length)return!1;for(l=s;0!=l--;)if(!e(a[l],o[l]))return!1;return!0}if(n&&a instanceof Map&&o instanceof Map){if(a.size!==o.size)return!1;for(c=a.entries();!(l=c.next()).done;)if(!o.has(l.value[0]))return!1;for(c=a.entries();!(l=c.next()).done;)if(!e(l.value[1],o.get(l.value[0])))return!1;return!0}if(r&&a instanceof Set&&o instanceof Set){if(a.size!==o.size)return!1;for(c=a.entries();!(l=c.next()).done;)if(!o.has(l.value[0]))return!1;return!0}if(i&&ArrayBuffer.isView(a)&&ArrayBuffer.isView(o)){if((s=a.length)!=o.length)return!1;for(l=s;0!=l--;)if(a[l]!==o[l])return!1;return!0}if(a.constructor===RegExp)return a.source===o.source&&a.flags===o.flags;if(a.valueOf!==Object.prototype.valueOf&&"function"==typeof a.valueOf&&"function"==typeof o.valueOf)return a.valueOf()===o.valueOf();if(a.toString!==Object.prototype.toString&&"function"==typeof a.toString&&"function"==typeof o.toString)return a.toString()===o.toString();if((s=(u=Object.keys(a)).length)!==Object.keys(o).length)return!1;for(l=s;0!=l--;)if(!Object.prototype.hasOwnProperty.call(o,u[l]))return!1;if(t&&a instanceof Element)return!1;for(l=s;0!=l--;)if(("_owner"!==u[l]&&"__v"!==u[l]&&"__o"!==u[l]||!a.$$typeof)&&!e(a[u[l]],o[u[l]]))return!1;return!0}return a!=a&&o!=o}(e,a)}catch(e){if((e.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw e}}},2283:function(e,t,n){"use strict";n.d(t,{cI:function(){return ec}});var r=n(7294),i=e=>e instanceof HTMLElement;let a={BLUR:"blur",CHANGE:"change",INPUT:"input"},o={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},s="select",l="undefined",u={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"};var c=e=>null==e,d=e=>Array.isArray(e);let h=e=>"object"==typeof e;var f=e=>!c(e)&&!d(e)&&h(e)&&!(e instanceof Date),p=e=>!d(e)&&(/^\w*$/.test(e)||!/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/.test(e)),m=e=>{let t=[];return e.replace(/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,(e,n,r,i)=>{t.push(r?i.replace(/\\(\\)?/g,"$1"):n||e)}),t};function g(e,t,n){let r=-1,i=p(t)?[t]:m(t),a=i.length,o=a-1;for(;++r<a;){let t=i[r],a=n;if(r!==o){let n=e[t];a=f(n)||d(n)?n:isNaN(+i[r+1])?{}:[]}e[t]=a,e=e[t]}return e}var v=e=>Object.entries(e).reduce((e,[t,n])=>p(t)?Object.assign(Object.assign({},e),{[t]:n}):(g(e,t,n),e),{}),y=e=>void 0===e,b=e=>
53e.filter(Boolean),A=(e,t,n)=>{let r=b(t.split(/[,[\].]+?/)).reduce((e,t)=>c(e)?e:e[t],e);return y(r)||r===e?y(e[t])?n:e[t]:r},E=(e,t)=>{for(let n in e)if(A(t,n)){let t=e[n];if(t){if(t.ref.focus){t.ref.focus();break}if(t.options){t.options[0].ref.focus();break}}}},w=(e,t)=>{i(e)&&e.removeEventListener&&(e.removeEventListener(a.INPUT,t),e.removeEventListener(a.CHANGE,t),e.removeEventListener(a.BLUR,t))};let x={isValid:!1,value:""};var T=e=>d(e)?e.reduce((e,t)=>t&&t.ref.checked?{isValid:!0,value:t.ref.value}:e,x):x,S=e=>[...e].filter(({selected:e})=>e).map(({value:e})=>e),_=e=>"radio"===e.type,C=e=>"file"===e.type,k=e=>"checkbox"===e.type,I=e=>e.type===`${s}-multiple`;let L={value:!1,isValid:!1},P={value:!0,isValid:!0};var O=e=>{if(d(e)){if(e.length>1){let t=e.filter(e=>e&&e.ref.checked).map(({ref:{value:e}})=>e);return{value:t,isValid:!!t.length}}let{checked:t,value:n,attributes:r}=e[0].ref;return t?r&&!y(r.value)?y(n)||""===n?P:{value:n,isValid:!0}:P:L}return L};function R(e,t,n){let r=e.current[t];if(r){let{ref:{value:e,disabled:t},ref:n}=r;return t?void 0:C(n)?n.files:_(n)?T(r.options).value:I(n)?S(n.options):k(n)?O(r.options).value:e}if(n)return A(n.current,t)}function D(e){return!e||e instanceof HTMLElement&&e.nodeType!==Node.DOCUMENT_NODE&&D(e.parentNode)}var N=e=>f(e)&&!Object.keys(e).length,M=e=>"boolean"==typeof e;function j(e,t){let n;let r=p(t)?[t]:m(t),i=1==r.length?e:function(e,t){let n=t.slice(0,-1).length,r=0;for(;r<n;)e=y(e)?r++:e[t[r++]];return e}(e,r),a=r[r.length-1];i&&delete i[a];for(let t=0;t<r.slice(0,-1).length;t++){let i,a=-1,o=r.slice(0,-(t+1)),s=o.length-1;for(t>0&&(n=e);++a<o.length;){let t=o[a];i=i?i[t]:e[t],s===a&&(f(i)&&N(i)||d(i)&&!i.filter(e=>f(e)&&!N(e)||M(e)).length)&&(n?delete n[t]:delete e[t]),n=i}}return e}let F=(e,t)=>e&&e.ref===t;var B=e=>"string"==typeof e,U=(e,t,n)=>{let r={};for(let t in e.current)(y(n)||(B(n)?t.startsWith(n):d(n)&&n.find(e=>t.startsWith(e))))&&(r[t]=R(e,t));return function e(t,n){if(!f(t)||!f(n))return n;for(let r in n){let i=t[r],a=n[r];try{f(i)&&f(a)?t[r]=e(i,a):t[r]=a}catch(e){}}return t}(Object.assign({},(t||{}).current||{}),v(r))},V=(e,{type:t,types:n={},message:r})=>f(e)&&e.type===t&&e.message===r&&Object.keys(e.types||{}).length===Object.keys(n).length&&Object.entries(e.types||{}).every(([e,t])=>n[e]===t),z=e=>e instanceof RegExp;let q=e=>f(e)&&!z(e);var Q=e=>q(e)?e:{value:e,message:""},H=e=>"function"==typeof e,G=e=>B(e)||f(e)&&(0,r.isValidElement)(e);function K(e,t,n="validate"){if(G(e)||M(e)&&!e)return{type:n,message:G(e)?e:"",ref:t}}var $=(e,t,n,r,i)=>{if(t){let t=n[e];return Object.assign(Object.assign({},t),{types:Object.assign(Object.assign({},t&&t.types?t.types:{}),{[r]:i||!0})})}return{}},W=async(e,t,{ref:n,ref:{type:r,value:i},options:a,required:o,maxLength:s,minLength:l,min:d,max:h,pattern:p,validate:m},g)=>{let v=e.current,y=n.name,b={},A=_(n),E=k(n),w=A||E,x=""===i,S=$.bind(null,y,t,b),C=(e,t,r,i=u.maxLength,a=u.minLength)=>{let o=e?t:r;b[y]=Object.assign({type:e?i:a,message:o,ref:n},e?S(i,o):S(a,o))};if(o&&(!A&&!E&&(x||c(i))||M(i)&&!i||E&&!O(a).isValid||A&&!T(a).isValid)){let{value:e,message:r}=G(o)?{value:!!o,message:o}:Q(o);if(e&&(b[y]=Object.assign({type:u.required,message:r,ref:w?(v[y].options||[])[0].ref:n},S(u.required,r)),!t))return b}if(!c(d)||!c(h)){let e,a;let{value:o,message:s}=Q(h),{value:l,message:f}=Q(d);if("number"!==r&&(r||isNaN(i))){let t=n.valueAsDate||new Date(i);B(o)&&(e=t>new Date(o)),B(l)&&(a=t<new Date(l))}else{let t=n.valueAsNumber||parseFloat(i);c(o)||(e=t>o),c(l)||(a=t<l)}if((e||a)&&(C(!!e,s,f,u.max,u.min),!t))return b}if(B(i)&&!x&&(s||l)){let{value:e,message:n}=Q(s),{value:r,message:a}=Q(l),o=i.toString().length,u=!c(e)&&o>e,d=!c(r)&&o<r;if((u||d)&&(C(!!u,n,a),!t))return b}if(p&&!x){let{value:e,message:r}=Q(p);if(z(e)&&!e.test(i)&&(b[y]=Object.assign({type:u.pattern,message:r,ref:n},S(u.pattern,r)),!t))return b}if(m){let r=R(e,y,g),i=w&&a?a[0].ref:n;if(H(m)){let e=K(await m(r),i);e&&(b[y]=Object.assign(Object.assign({},e),S(u.validate,e.message)))}else if(f(m)){let e={};for(let[n,a]of Object.entries(m)){if(!N(e)&&!t)break;let o=K(await a(r),i,n);o&&(e=Object.assign(Object.assign({},o),S(n,o.message)),t&&(b[y]=e))}N(e)||(b[y]=Object.assign({ref:i},e))}}return b},Z=e=>c(e)||!h(e);let Y=(e,t)=>
53{let n=(t,n,r)=>{let i=r?`${e}.${n}`:`${e}[${n}]`;return Z(t)?i:Y(i,t)};return Object.entries(t).map(([e,r])=>n(r,e,f(t))).flat(1/0)};var X=(e,t,n,r,i)=>{let a;return n.add(t),N(e)?a=void 0:(f(a=A(e,t))||d(a))&&Y(t,a).forEach(e=>n.add(e)),y(a)?i?r:A(r,t):a},J=({isOnBlur:e,isOnChange:t,isOnTouch:n,isTouched:r,isReValidateOnBlur:i,isReValidateOnChange:a,isBlurEvent:o,isSubmitted:s,isOnAll:l})=>!l&&(!s&&n?!(r||o):(s?i:e)?!o:(s?!a:!t)||o),ee=e=>e.substring(0,e.indexOf("["));function et(e=[],t=[]){let n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let r of n){let n=e[r],i=t[r];if((f(n)||d(n))&&(f(i)||d(i))?!et(n,i):n!==i)return!1}return!0}let en=(e,t)=>RegExp(`^${t}[\\d+]`.replace(/\[/g,"\\[").replace(/\]/g,"\\]")).test(e);var er=(e,t)=>[...e].some(e=>en(t,e)),ei=e=>e.type===`${s}-one`,ea=e=>({isOnSubmit:!e||e===o.onSubmit,isOnBlur:e===o.onBlur,isOnChange:e===o.onChange,isOnAll:e===o.all,isOnTouch:e===o.onTouched}),eo=e=>_(e)||k(e);let es=typeof window===l,el=typeof document!==l&&!es&&!y(window.HTMLElement),eu=el?"Proxy"in window:typeof Proxy!==l;function ec({mode:e=o.onSubmit,reValidateMode:t=o.onChange,resolver:n,context:s,defaultValues:l={},shouldFocusError:u=!0,shouldUnregister:h=!0,criteriaMode:p}={}){let m=(0,r.useRef)({}),x=(0,r.useRef)({}),T=(0,r.useRef)(new Set),S=(0,r.useRef)({}),L=(0,r.useRef)({}),P=(0,r.useRef)({}),O=(0,r.useRef)({}),M=(0,r.useRef)(l),z=(0,r.useRef)({}),q=(0,r.useRef)(!1),Q=(0,r.useRef)(!1),G=(0,r.useRef)(),K=(0,r.useRef)({}),$=(0,r.useRef)({}),en=(0,r.useRef)(s),ec=(0,r.useRef)(n),ed=(0,r.useRef)(new Set),eh=(0,r.useRef)(ea(e)),{current:{isOnSubmit:ef,isOnTouch:ep}}=eh,em=p===o.all,[eg,ev]=(0,r.useState)({isDirty:!1,dirtyFields:{},isSubmitted:!1,submitCount:0,touched:{},isSubmitting:!1,isValid:!ef,errors:{}}),ey=(0,r.useRef)({isDirty:!eu,dirtyFields:!eu,isSubmitted:ef,submitCount:!eu,touched:!eu||ep,isSubmitting:!eu,isValid:!eu,errors:!eu}),eb=(0,r.useRef)(eg),eA=(0,r.useRef)(),{current:{isOnBlur:eE,isOnChange:ew}}=(0,r.useRef)(ea(t));en.current=s,ec.current=n,eb.current=eg;let ex=(0,r.useCallback)((e={})=>!q.current&&ev(Object.assign(Object.assign({},eb.current),e)),[]),eT=(0,r.useCallback)((e,t,n=!1,r={},i)=>{let a=n||function({errors:e,name:t,error:n,validFields:r,fieldsWithValidation:i}){let a=N(n),o=N(e),s=A(n,t),l=A(e,t);return!(a&&A(r,t))&&(!!(o!==a||!o&&!l||a&&A(i,t)&&!A(r,t))||s&&!V(l,s))}({errors:eb.current.errors,error:t,name:e,validFields:O.current,fieldsWithValidation:P.current}),o=A(eb.current.errors,e);N(t)?((A(P.current,e)||ec.current)&&(g(O.current,e,!0),a=a||o),j(eb.current.errors,e)):(j(O.current,e),a=a||!o||!V(o,t[e]),g(eb.current.errors,e,t[e])),(!a||c(n))&&N(r)||ex(Object.assign(Object.assign(Object.assign({},r),{errors:eb.current.errors}),ec.current?{isValid:!!i}:{}))},[]),eS=(0,r.useCallback)(({ref:e,options:t},n)=>{let r=el&&i(e)&&c(n)?"":n;_(e)&&t?t.forEach(({ref:e})=>e.checked=e.value===r):C(e)&&!B(r)?e.files=r:I(e)?[...e.options].forEach(e=>e.selected=r.includes(e.value)):k(e)&&t?t.length>1?t.forEach(({ref:e})=>e.checked=d(r)?!!r.find(t=>t===e.value):r===e.value):t[0].ref.checked=!!r:e.value=r},[]),e_=(0,r.useCallback)((e,t=!0)=>{if(!m.current[e]||!ey.current.isDirty&&!ey.current.dirtyFields)return{};let n=z.current[e]!==R(m,e,K),r=A(eb.current.dirtyFields,e),i=er(ed.current,e),a=eb.current.isDirty;n?g(eb.current.dirtyFields,e,!0):j(eb.current.dirtyFields,e);let o={isDirty:i&&!et(A(eD(),ee(e)),A(M.current,ee(e)))||!N(eb.current.dirtyFields),dirtyFields:eb.current.dirtyFields},s=ey.current.isDirty&&a!==o.isDirty||ey.current.dirtyFields&&r!==A(eb.current.dirtyFields,e);return s&&t&&(eb.current=Object.assign(Object.assign({},eb.current),o),ex(Object.assign({},o))),s?o:{}},[]),eC=(0,r.useCallback)(async(e,t)=>{if(m.current[e]){let n=await W(m,em,m.current[e],K);return eT(e,n,t),N(n)}return!1},[eT,em]),ek=(0,r.useCallback)(async e=>{let{errors:t}=await ec.current(eD(),en.current,em),n=eb.current.isValid;if(d(e)){let n=e.map(e=>{let n=A(t,e);return n?g(eb.current.errors,e,n):j(eb.current.errors,e),!n}).every(Boolean);return ex({isValid:N(t),errors:eb.current.errors}),n}{let r=A(t,e);return eT(e,r?{[e]:r}:{},n!==N(t),{},N(t)),!r}},[eT,em]),eI=(0,r.useCallback)(async e=>{let t=e||Object.keys(m.current);if(ec.current)return ek(t);if(d(t)){let e=await Promise.all(t.map(async e=>await eC(e,null)));return ex(),e.every(Boolean)}return await eC(t)},[ek,eC]),eL=(0,r.useCallback)((e,t,{shouldDirty:n,shouldValidate:r})=>{Y(e,t).forEach(i=>
53{let a={},o=m.current[i];o&&(g(a,e,t),eS(o,A(a,i)),n&&e_(i),r&&eI(i))})},[eI,eS,e_]),eP=(0,r.useCallback)((e,t,n)=>{m.current[e]?(eS(m.current[e],t),n.shouldDirty&&e_(e)):Z(t)||eL(e,t,n),h||g(K.current,e,t)},[e_,eS,eL]),eO=e=>Q.current||T.current.has(e)||T.current.has((e.match(/\w+/)||[])[0]),eR=(e,t=!0)=>{if(!N(S.current))for(let n in S.current)(!e||S.current[n].has(e)||S.current[n].has(ee(e))||!S.current[n].size)&&(L.current[n](),t=!1);return t};function eD(e){if(B(e))return R(m,e,K);if(d(e)){let t={};for(let n of e)g(t,n,R(m,n,K));return t}return U(m,K)}G.current=G.current?G.current:async({type:e,target:t})=>{let n,r;let i=t.name,o=m.current[i];if(o){let t=e===a.BLUR,s=J(Object.assign({isBlurEvent:t,isReValidateOnChange:ew,isReValidateOnBlur:eE,isTouched:!!A(eb.current.touched,i),isSubmitted:eb.current.isSubmitted},eh.current)),l=e_(i,!1),u=!N(l)||eO(i);if(t&&!A(eb.current.touched,i)&&ey.current.touched&&(g(eb.current.touched,i,!0),l=Object.assign(Object.assign({},l),{touched:eb.current.touched})),s)return eR(i),(!N(l)||u&&N(l))&&ex(l);if(ec.current){let{errors:e}=await ec.current(eD(),en.current,em),t=eb.current.isValid;n=A(e,i)?{[i]:A(e,i)}:{},t!==(r=N(e))&&(u=!0)}else n=await W(m,em,o,K);eR(i),eT(i,n,u,l,r)}};let eN=(0,r.useCallback)(async(e={})=>{let{errors:t}=await ec.current(Object.assign(Object.assign(Object.assign({},M.current),eD()),e),en.current,em),n=eb.current.isValid,r=N(t);n!==r&&ex({isValid:r})},[em]),eM=(0,r.useCallback)((e,t)=>(function(e,t,n,r,i,a){let{ref:o,ref:{name:s,type:l}}=n,u=e.current[s];if(!i){let t=R(e,s,r);y(t)||g(r.current,s,t)}if(!l){delete e.current[s];return}if((_(o)||k(o))&&u){let{options:n}=u;d(n)&&n.length?(b(n).forEach((e,r)=>{let{ref:i}=e;(i&&D(i)&&F(e,i)||a)&&(w(i,t),j(n,`[${r}]`))}),n&&!b(n).length&&delete e.current[s]):delete e.current[s]}else(D(o)&&F(u,o)||a)&&(w(o,t),delete e.current[s])})(m,G.current,e,K,h,t),[h]),ej=(0,r.useCallback)((e,t)=>{e&&(eM(e,t),h&&(j(O.current,e.ref.name),j(P.current,e.ref.name),j(z.current,e.ref.name),j(eb.current.errors,e.ref.name),j(eb.current.dirtyFields,e.ref.name),j(eb.current.touched,e.ref.name),ex({errors:eb.current.errors,isDirty:!N(eb.current.dirtyFields),dirtyFields:eb.current.dirtyFields,touched:eb.current.touched}),ec.current&&eN()))},[eN,eM]),eF=(0,r.useCallback)((e,t,n)=>{let r=n?S.current[n]:T.current,i=y(t)?M.current:t,a=U(m,K,e);return B(e)?X(a,e,r,y(t)?A(i,e):t,!0):d(e)?e.reduce((e,t)=>Object.assign(Object.assign({},e),{[t]:X(a,t,r,i)}),{}):(y(n)&&(Q.current=!0),v(!N(a)&&a||i))},[]);function eB(e,t={}){let r,o;let{name:s,type:l,value:u}=e,c=Object.assign({ref:e},t),h=m.current,p=eo(e),v=t=>el&&(!i(e)||t===e),E=h[s],w=!0;if(E&&(p?d(E.options)&&b(E.options).find(e=>u===e.ref.value&&v(e.ref)):v(E.ref))){h[s]=Object.assign(Object.assign({},E),t);return}E=l?p?Object.assign({options:[...b(E&&E.options||[]),{ref:e}],ref:{type:l,name:s}},t):Object.assign({},c):c,h[s]=E;let x=y(A(K.current,s));if(N(M.current)&&x||(w=y(o=A(x?M.current:K.current,s)),r=er(ed.current,s),w||r||eS(E,o)),n&&!r&&ey.current.isValid?eN():N(t)||(g(P.current,s,!0),!ef&&ey.current.isValid&&W(m,em,E,K).then(e=>{let t=eb.current.isValid;N(e)?g(O.current,s,!0):j(O.current,s),t!==N(e)&&ex()})),!z.current[s]&&!(r&&w)){let e=R(m,s,K);z.current[s]=w?f(e)?Object.assign({},e):e:o}l&&function({ref:e},t,n){i(e)&&n&&(e.addEventListener(t?a.CHANGE:a.INPUT,n),e.addEventListener(a.BLUR,n))}(p&&E.options?E.options[E.options.length-1]:E,p||ei(e),G.current)}let eU=(0,r.useCallback)((e,t)=>async n=>{n&&n.preventDefault&&(n.preventDefault(),n.persist());let r={},i=U(m,K);ey.current.isSubmitting&&ex({isSubmitting:!0});try{if(ec.current){let{errors:e,values:t}=await ec.current(i,en.current,em);eb.current.errors=e,r=e,i=t}else for(let e of Object.values(m.current))if(e){let{ref:{name:t}}=e,n=await W(m,em,e,K);n[t]?(g(r,t,n[t]),j(O.current,t)):A(P.current,t)&&(j(eb.current.errors,t),g(O.current,t,!0))}N(r)&&Object.keys(eb.current.errors).every(e=>Object.keys(m.current).includes(e))?(ex({errors:{}}),await e(i,n)):(eb.current.errors=Object.assign(Object.assign({},eb.current.errors),r),t&&await t(r,n),u&&E(m.current,r))}finally{ex({isSubmitted:!0,isSubmitting:!1,errors:eb.current.errors,submitCount:eb.current.submitCount+1})}},[u,em]),eV=({errors:e,isDirty:t,isSubmitted:n,touched:r,isValid:i,submitCount:a,dirtyFields:o})=>
53{i||(O.current=new Set,P.current=new Set),z.current={},x.current={},T.current=new Set,Q.current=!1,ex({isDirty:!!t&&eb.current.isDirty,isSubmitted:!!n&&eb.current.isSubmitted,submitCount:a?eb.current.submitCount:0,isValid:!i||eb.current.isValid,dirtyFields:o?eb.current.dirtyFields:{},touched:r?eb.current.touched:{},errors:e?eb.current.errors:{}})};eA.current=eA.current||!el?eA.current:function(e,t){let n=new MutationObserver(()=>{for(let n of Object.values(e.current))if(n&&n.options)for(let e of n.options)e&&e.ref&&D(e.ref)&&t(n);else n&&D(n.ref)&&t(n)});return n.observe(window.document,{childList:!0,subtree:!0}),n}(m,ej),(0,r.useEffect)(()=>(q.current=!1,()=>{q.current=!0,eA.current&&eA.current.disconnect(),m.current&&Object.values(m.current).forEach(e=>ej(e,!0))}),[ej]),!n&&ey.current.isValid&&(eg.isValid=et(O.current,P.current)&&N(eb.current.errors));let ez={trigger:eI,setValue:(0,r.useCallback)(function(e,t,n={}){eP(e,t,n),eO(e)&&ex(),eR(e),n.shouldValidate&&eI(e)},[eP,eI]),getValues:(0,r.useCallback)(eD,[]),register:(0,r.useCallback)(function(e,t){if(!es){if(B(e))eB({name:e},t);else{if(!f(e)||!("name"in e))return t=>t&&eB(t,e);eB(e,t)}}},[M.current]),unregister:(0,r.useCallback)(function(e){(d(e)?e:[e]).forEach(e=>ej(m.current[e],!0))},[])};return Object.assign({watch:function(e,t){return eF(e,t)},control:Object.assign({removeFieldEventListener:eM,renderWatchedInputs:eR,watchInternal:eF,mode:eh.current,reValidateMode:{isReValidateOnBlur:eE,isReValidateOnChange:ew},fieldsRef:m,isWatchAllRef:Q,watchFieldsRef:T,resetFieldArrayFunctionRef:$,watchFieldsHookRef:S,watchFieldsHookRenderRef:L,fieldArrayDefaultValues:x,validFieldsRef:O,fieldsWithValidationRef:P,fieldArrayNamesRef:ed,readFormStateRef:ey,formStateRef:eb,defaultValuesRef:M,unmountFieldsStateRef:K,updateFormState:ex,validateResolver:n?eN:void 0},ez),formState:eu?new Proxy(eg,{get:(e,t)=>{if(t in e)return ey.current[t]=!0,e[t]}}):eg,handleSubmit:eU,reset:(0,r.useCallback)((e,t={})=>{if(el){for(let e of Object.values(m.current))if(e){let{ref:t,options:n}=e,r=eo(t)&&d(n)?n[0].ref:t;if(i(r))try{r.closest("form").reset();break}catch(e){}}}m.current={},M.current=e||Object.assign({},M.current),e&&eR(""),K.current=h?{}:e||{},Object.values($.current).forEach(e=>H(e)&&e()),eV(t)},[]),clearErrors:(0,r.useCallback)(function(e,t={exact:!0}){e&&(d(e)?e:[e]).forEach(e=>(m.current[e]||!t.exact)&&j(eb.current.errors,e)),ex({errors:e?eb.current.errors:{}})},[]),setError:(0,r.useCallback)(function(e,t={}){g(eb.current.errors,e,Object.assign(Object.assign({},t),{ref:(m.current[e]||{}).ref})),ex({isValid:!1,errors:eb.current.errors})},[]),errors:eg.errors},ez)}(0,r.createContext)(null).displayName="RHFContext"},4403:function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},i=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),a=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.hasOwnProperty.call(e,n)&&i(t,e,n);return a(t,e),t},s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var l=o(n(7294)),u=s(n(3876)),c=s(n(6086)),d=n(3631),h=n(1167),f=l.forwardRef(function(e,t){var n=e.activeSlideKey,i=e.ContainerEl,a=e.children,o=e.containerClass,s=e.navigation,f=e.noSwiping,p=e.pagination,m=e.parallax,g=e.parallaxEl,v=e.WrapperEl,y=e.wrapperClass,b=e.rebuildOnUpdate,A=e.renderScrollbar,E=e.renderPagination,w=e.renderPrevButton,x=e.renderNextButton,T=e.renderParallax,S=e.rtl,_=e.scrollbar,C=e.shouldSwiperUpdate,k=e.slideClass,I=e.loop,L=l.useRef(null),P=l.useRef(null),O=h.useForkRef(P,t),R=l.useCallback(function(){if(!n)return null;var e=0,t=I?1:0;
53return l.Children.forEach(a,function(r){l.isValidElement(r)&&(r.key===n&&(e=t),t+=1)}),e},[n,a,I]),D=l.useCallback(function(){null!==L.current&&(L.current.destroy(!0,!0),d.setRef(L,null))},[]),N=l.useCallback(function(){P.current&&null===L.current&&d.setRef(L,new u.default(P.current,c.default({},e)))},[e]);return(l.useEffect(function(){return function(){return D()}},[D]),l.useEffect(function(){if(N(),null!==L.current){b?(D(),N()):C&&L.current.update();var e=L.current.slides.length;e<=L.current.activeIndex&&L.current.slideTo(Math.max(e-1,0));var t=R();null!==t&&L.current.slideTo(t)}},[D,R,b,C,N]),a&&i&&v&&d.validateChildren(a))?l.default.createElement(i,{className:o,dir:S&&"rtl",ref:O},m&&g&&T&&T(e),l.default.createElement(v,{className:y},l.Children.map(a,function(e){if(!d.isReactElement(e))return null;var t=[k,e.props.className];return f&&t.push("swiper-no-swiping"),l.cloneElement(e,r(r({},e.props),{className:t.join(" ").trim()}))})),p&&p.el&&E&&E(e),_&&_.el&&A&&A(e),s&&s.nextEl&&x&&x(e),s&&s.prevEl&&w&&w(e)):null});f.defaultProps={containerClass:"swiper-container",wrapperClass:"swiper-wrapper",slideClass:"swiper-slide",ContainerEl:"div",WrapperEl:"div",renderScrollbar:function(e){var t=e.scrollbar;return t?l.default.createElement("div",{className:d.classNames(t.el)}):null},renderPagination:function(e){var t=e.pagination;return t?l.default.createElement("div",{className:d.classNames(t.el)}):null},renderPrevButton:function(e){var t=e.navigation;return t?l.default.createElement("div",{className:d.classNames(t.prevEl)}):null},renderNextButton:function(e){var t=e.navigation;return t?l.default.createElement("div",{className:d.classNames(t.nextEl)}):null},renderParallax:function(e){var t=e.parallaxEl;return t?l.default.createElement("div",{className:d.classNames(t.el),"data-swiper-parallax":t.value}):null}},f.displayName="ReactIdSwiper",t.default=f},1167:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useForkRef=void 0;var r=n(7294),i=n(3631);t.useForkRef=function(e,t){return r.useMemo(function(){return null==e&&null==t?null:function(n){i.setRef(e,n),i.setRef(t,n)}},[e,t])}},8667:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var i=r(n(4403));t.default=i.default},3631:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.setRef=t.isModuleAvailable=t.isReactElement=t.validateChildren=t.classNames=void 0;var r=n(7294);t.classNames=function(e){return"string"==typeof e?e.split(".").join(" ").trim():e instanceof HTMLElement?e.className:""},t.validateChildren=function(e){var t=!0;return Array.isArray(e)?r.Children.forEach(e,function(e){r.isValidElement(e)||(t=!1)}):t=r.isValidElement(e),t},t.isReactElement=function(e){return r.isValidElement(e)&&("string"==typeof e.type||"function"==typeof e.type||"object"==typeof e.type)},t.isModuleAvailable=function(e,t){for(var n=!1,r=0;r<e.length;r++)if(e[r].name===t){n=!0;break}return n},t.setRef=function(e,t){"function"==typeof e?e(t):e&&(e.current=t)}},7291:function(e,t,n){"use strict";function r(){return(r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(null,arguments)}function i(e,t){if(null==e)return{};var n={};for(var r in e)if(({}).hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}n.d(t,{Z:function(){return ez}});var a,o,s,l,u,c=n(5697),d=n.n(c),h=n(7294),f=n(3935);function p(){return(0,h.useState)(null)}var m=function(e){return e&&"function"!=typeof e?function(t){e.current=t}:e},g="bottom",v="right",y="left",b="auto",A=["top",g,v,y],E="start",w="viewport",x="popper",T=A.reduce(function(e,t){return e.concat([t+"-"+E,t+"-end"])},[]),S=[].concat(A,[b]).reduce(function(e,t){return e.concat([t,t+"-"+E,t+"-end"])},[]),_=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"],C=function(e){var t,n,r=(t=(0,h.useRef)(!0),n=(0,h.useRef)(function(){return t.current}),(0,h.useEffect)(function(){return function(){t.current=!1}},[]),n.current);return[e[0],(0,h.useCallback)(function(t){if(r())return e[1](t)},[r,e[1]])]};function k(e){return e.split("-")[0]}function I(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function L(e){var t=I(e).Element;return e instanceof t||e instanceof Element}function P(e){var t=I(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function O(e){if("undefined"==typeof ShadowRoot)return!1;var t=I(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}var R=Math.max,D=Math.min,N=Math.round;function M(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function j(){return!/^((?!chrome|android).)*safari/i.test(M())}function F(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var r=e.getBoundingClientRect(),i=1,a=1;t&&P(e)&&(i=e.offsetWidth>0&&N(r.width)/e.offsetWidth||1,a=e.offsetHeight>0&&N(r.height)/e.offsetHeight||1);
vendor: 12,726 bytes, line 53
53var o=(L(e)?I(e):window).visualViewport,s=!j()&&n,l=(r.left+(s&&o?o.offsetLeft:0))/i,u=(r.top+(s&&o?o.offsetTop:0))/a,c=r.width/i,d=r.height/a;return{width:c,height:d,top:u,right:l+c,bottom:u+d,left:l,x:l,y:u}}function B(e){var t=F(e),n=e.offsetWidth,r=e.offsetHeight;return 1>=Math.abs(t.width-n)&&(n=t.width),1>=Math.abs(t.height-r)&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function U(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&O(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function V(e){return e?(e.nodeName||"").toLowerCase():null}function z(e){return I(e).getComputedStyle(e)}function q(e){return((L(e)?e.ownerDocument:e.document)||window.document).documentElement}function Q(e){return"html"===V(e)?e:e.assignedSlot||e.parentNode||(O(e)?e.host:null)||q(e)}function H(e){return P(e)&&"fixed"!==z(e).position?e.offsetParent:null}function G(e){for(var t=I(e),n=H(e);n&&["table","td","th"].indexOf(V(n))>=0&&"static"===z(n).position;)n=H(n);return n&&("html"===V(n)||"body"===V(n)&&"static"===z(n).position)?t:n||function(e){var t=/firefox/i.test(M());if(/Trident/i.test(M())&&P(e)&&"fixed"===z(e).position)return null;var n=Q(e);for(O(n)&&(n=n.host);P(n)&&0>["html","body"].indexOf(V(n));){var r=z(n);if("none"!==r.transform||"none"!==r.perspective||"paint"===r.contain||-1!==["transform","perspective"].indexOf(r.willChange)||t&&"filter"===r.willChange||t&&r.filter&&"none"!==r.filter)return n;n=n.parentNode}return null}(e)||t}function K(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function $(e,t,n){return R(e,D(t,n))}function W(){return{top:0,right:0,bottom:0,left:0}}function Z(e){return Object.assign({},W(),e)}function Y(e,t){return t.reduce(function(t,n){return t[n]=e,t},{})}function X(e){return e.split("-")[1]}var J={top:"auto",right:"auto",bottom:"auto",left:"auto"};function ee(e){var t,n,r,i,a,o,s,l=e.popper,u=e.popperRect,c=e.placement,d=e.variation,h=e.offsets,f=e.position,p=e.gpuAcceleration,m=e.adaptive,b=e.roundOffsets,A=e.isFixed,E=h.x,w=void 0===E?0:E,x=h.y,T=void 0===x?0:x,S="function"==typeof b?b({x:w,y:T}):{x:w,y:T};w=S.x,T=S.y;var _=h.hasOwnProperty("x"),C=h.hasOwnProperty("y"),k=y,L="top",P=window;if(m){var O=G(l),R="clientHeight",D="clientWidth";O===I(l)&&"static"!==z(O=q(l)).position&&"absolute"===f&&(R="scrollHeight",D="scrollWidth"),("top"===c||(c===y||c===v)&&"end"===d)&&(L=g,T-=(A&&O===P&&P.visualViewport?P.visualViewport.height:O[R])-u.height,T*=p?1:-1),(c===y||("top"===c||c===g)&&"end"===d)&&(k=v,w-=(A&&O===P&&P.visualViewport?P.visualViewport.width:O[D])-u.width,w*=p?1:-1)}var M=Object.assign({position:f},m&&J),j=!0===b?(t={x:w,y:T},n=I(l),r=t.x,i=t.y,{x:N(r*(a=n.devicePixelRatio||1))/a||0,y:N(i*a)/a||0}):{x:w,y:T};return(w=j.x,T=j.y,p)?Object.assign({},M,((s={})[L]=C?"0":"",s[k]=_?"0":"",s.transform=1>=(P.devicePixelRatio||1)?"translate("+w+"px, "+T+"px)":"translate3d("+w+"px, "+T+"px, 0)",s)):Object.assign({},M,((o={})[L]=C?T+"px":"",o[k]=_?w+"px":"",o.transform="",o))}var et={passive:!0},en={left:"right",right:"left",bottom:"top",top:"bottom"};function er(e){return e.replace(/left|right|bottom|top/g,function(e){return en[e]})}var ei={start:"end",end:"start"};function ea(e){return e.replace(/start|end/g,function(e){return ei[e]})}function eo(e){var t=I(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function es(e){return F(q(e)).left+eo(e).scrollLeft}function el(e){var t=z(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function eu(e,t){void 0===t&&(t=[]);var n,r=function e(t){return["html","body","#document"].indexOf(V(t))>=0?t.ownerDocument.body:P(t)&&el(t)?t:e(Q(t))}(e),i=r===(null==(n=e.ownerDocument)?void 0:n.body),a=I(r),o=i?[a].concat(a.visualViewport||[],el(r)?r:[]):r,s=t.concat(o);return i?s:s.concat(eu(Q(o)))}function ec(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function ed(e,t,n){var r,i,a,o,s,l,u,c,d,h;return t===w?ec(function(e,t){var n=I(e),r=q(e),i=n.visualViewport,a=r.clientWidth,o=r.clientHeight,s=0,l=0;if(i){a=i.width,o=i.height;var u=j();(u||!u&&"fixed"===t)&&(s=i.offsetLeft,l=i.offsetTop)}return{width:a,height:o,x:s+es(e),y:l}}(e,n)):L(t)?((r=F(t,!1,"fixed"===n)).top=r.top+t.clientTop,r.left=r.left+t.clientLeft,r.bottom=r.top+t.clientHeight,r.right=r.left+t.clientWidth,r.width=t.clientWidth,r.height=t.clientHeight,r.x=r.left,r.y=r.top,r):ec((i=q(e),o=q(i),s=eo(i),l=null==(a=i.ownerDocument)?void 0:a.body,u=R(o.scrollWidth,o.clientWidth,l?l.scrollWidth:0,l?l.clientWidth:0),c=R(o.scrollHeight,o.clientHeight,l?l.scrollHeight:0,l?l.clientHeight:0),d=-s.scrollLeft+es(i),h=-s.scrollTop,"rtl"===z(l||o).direction&&(d+=R(o.clientWidth,l?l.clientWidth:0)-u),{width:u,height:c,x:d,y:h}))}function eh(e){var t,n=e.reference,r=e.element,i=e.placement,a=i?k(i):null,o=i?X(i):null,s=n.x+n.width/2-r.width/2,l=n.y+n.height/2-r.height/2;switch(a){case"top":t={x:s,y:n.y-r.height};break;case g:t={x:s,y:n.y+n.height};break;case v:t={x:n.x+n.width,y:l};break;case y:t={x:n.x-r.width,y:l};break;default:t={x:n.x,y:n.y}}var u=a?K(a):null;if(null!=u){var c="y"===u?"height":"width";switch(o){case E:t[u]=t[u]-(n[c]/2-r[c]/2);break;case"end":t[u]=t[u]+(n[c]/2-r[c]/2)}}return t}function ef(e,t){void 0===t&&(t={});var n,r,i,a,o,s,l,u=t,c=u.placement,d=void 0===c?e.placement:c,h=u.strategy,f=void 0===h?e.strategy:h,p=u.boundary,m=u.rootBoundary,y=u.elementContext,b=void 0===y?x:y,E=u.altBoundary,T=u.padding,S=void 0===T?0:T,_=Z("number"!=typeof S?S:Y(S,A)),C=e.rects.popper,k=e.elements[void 0!==E&&E?b===x?"reference":x:b],I=(n=L(k)?k:k.contextElement||q(e.elements.popper),s=(o=[].concat("clippingParents"===(r=void 0===p?"clippingParents":p)?(i=eu(Q(n)),L(a=["absolute","fixed"].indexOf(z(n).position)>=0&&P(n)?G(n):n)?i.filter(function(e){return L(e)&&U(e,a)&&"body"!==V(e)}):[]):[].concat(r),[void 0===m?w:m]))[0],(l=o.reduce(function(e,t){var r=ed(n,t,f);return e.top=R(r.top,e.top),e.right=D(r.right,e.right),e.bottom=D(r.bottom,e.bottom),e.left=R(r.left,e.left),e},ed(n,s,f))).width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l),O=F(e.elements.reference),N=eh({reference:O,element:C,strategy:"absolute",placement:d}),M=ec(Object.assign({},C,N)),j=b===x?M:O,B={top:I.top-j.top+_.top,bottom:j.bottom-I.bottom+_.bottom,left:I.left-j.left+_.left,right:j.right-I.right+_.right},H=e.modifiersData.offset;if(b===x&&H){var K=H[d];Object.keys(B).forEach(function(e){var t=[v,g].indexOf(e)>=0?1:-1,n=["top",g].indexOf(e)>=0?"y":"x";B[e]+=K[n]*t})}return B}function ep(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function em(e){return["top",v,g,y].some(function(t){return e[t]>=0})}var eg={placement:"bottom",modifiers:[],strategy:"absolute"};function ev(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(e){return!(e&&"function"==typeof e.getBoundingClientRect)})}var ey=(s=void 0===(o=(a={defaultModifiers:[{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,r=t.rects.reference,i=t.rects.popper,a=t.modifiersData.preventOverflow,o=ef(t,{elementContext:"reference"}),s=ef(t,{altBoundary:!0}),l=ep(o,r),u=ep(s,i,a),c=em(l),d=em(u);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:u,isReferenceHidden:c,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":d})}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=eh({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,r=n.gpuAcceleration,i=n.adaptive,a=n.roundOffsets,o=void 0===a||a,s={placement:k(t.placement),variation:X(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:void 0===r||r,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,ee(Object.assign({},s,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:void 0===i||i,roundOffsets:o})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,ee(Object.assign({},s,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:o})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,r=e.options,i=r.scroll,a=void 0===i||i,o=r.resize,s=void 0===o||o,l=I(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&u.forEach(function(e){e.addEventListener("scroll",n.update,et)}),s&&l.addEventListener("resize",n.update,et),function(){a&&u.forEach(function(e){e.removeEventListener("scroll",n.update,et)}),s&&l.removeEventListener("resize",n.update,et)}},data:{}},{name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,r=e.name,i=n.offset,a=void 0===i?[0,0]:i,o=S.reduce(function(e,n){var r,i,o,s,l,u;return e[n]=(r=t.rects,o=[y,"top"].indexOf(i=k(n))>=0?-1:1,l=(s="function"==typeof a?a(Object.assign({},r,{placement:n})):a)[0],u=s[1],l=l||0,u=(u||0)*o,[y,v].indexOf(i)>=0?{x:u,y:l}:{x:l,y:u}),e},{}),s=o[t.placement],l=s.x,u=s.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=u),t.modifiersData[r]=o}},{name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var i=n.mainAxis,a=void 0===i||i,o=n.altAxis,s=void 0===o||o,l=n.fallbackPlacements,u=n.padding,c=n.boundary,d=n.rootBoundary,h=n.altBoundary,f=n.flipVariations,p=void 0===f||f,m=n.allowedAutoPlacements,w=t.options.placement,x=k(w)===w,_=l||(x||!p?[er(w)]:function(e){if(k(e)===b)return[];var t=er(e);return[ea(e),t,ea(t)]}(w)),C=[w].concat(_).reduce(function(e,n){var r,i,a,o,s,l,h,f,g,v,y,E;return e.concat(k(n)===b?(i=(r={placement:n,boundary:c,rootBoundary:d,padding:u,flipVariations:p,allowedAutoPlacements:m}).placement,a=r.boundary,o=r.rootBoundary,s=r.padding,l=r.flipVariations,f=void 0===(h=r.allowedAutoPlacements)?S:h,0===(y=(v=(g=X(i))?l?T:T.filter(function(e){return X(e)===g}):A).filter(function(e){return f.indexOf(e)>=0})).length&&(y=v),Object.keys(E=y.reduce(function(e,n){return e[n]=ef(t,{placement:n,boundary:a,rootBoundary:o,padding:s})[k(n)],e},{})).sort(function(e,t){return E[e]-E[t]})):n)},[]),I=t.rects.reference,L=t.rects.popper,P=new Map,O=!0,R=C[0],D=0;D<C.length;D++){var N=C[D],M=k(N),j=X(N)===E,F=["top",g].indexOf(M)>=0,B=F?"width":"height",U=ef(t,{placement:N,boundary:c,rootBoundary:d,altBoundary:h,padding:u}),V=F?j?v:y:j?g:"top";I[B]>L[B]&&(V=er(V));var z=er(V),q=[];if(a&&q.push(U[M]<=0),s&&q.push(U[V]<=0,U[z]<=0),q.every(function(e){return e})){R=N,O=!1;break}P.set(N,q)}if(O)for(var Q=p?3:1,H=function(e){var t=C.find(function(t){var n=P.get(t);if(n)return n.slice(0,e).every(function(e){return e})});if(t)return R=t,"break"},G=Q;G>0&&"break"!==H(G);G--);t.placement!==R&&(t.modifiersData[r]._skip=!0,t.placement=R,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}},{name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name,i=n.mainAxis,a=n.altAxis,o=n.boundary,s=n.rootBoundary,l=n.altBoundary,u=n.padding,c=n.tether,d=void 0===c||c,h=n.tetherOffset,f=void 0===h?0:h,p=ef(t,{boundary:o,rootBoundary:s,padding:u,altBoundary:l}),m=k(t.placement),b=X(t.placement),A=!b,w=K(m),x="x"===w?"y":"x",T=t.modifiersData.popperOffsets,S=t.rects.reference,_=t.rects.popper,C="function"==typeof f?f(Object.assign({},t.rects,{placement:t.placement})):f,I="number"==typeof C?{mainAxis:C,altAxis:C}:Object.assign({mainAxis:0,altAxis:0},C),L=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,P={x:0,y:0};if(T){if(void 0===i||i){var O,N="y"===w?"top":y,M="y"===w?g:v,j="y"===w?"height":"width",F=T[w],U=F+p[N],V=F-p[M],z=d?-_[j]/2:0,q=b===E?S[j]:_[j],Q=b===E?-_[j]:-S[j],H=t.elements.arrow,Z=d&&H?B(H):{width:0,height:0},Y=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:W(),J=Y[N],ee=Y[M],et=$(0,S[j],Z[j]),en=A?S[j]/2-z-et-J-I.mainAxis:q-et-J-I.mainAxis,er=A?-S[j]/2+z+et+ee+I.mainAxis:Q+et+ee+I.mainAxis,ei=t.elements.arrow&&G(t.elements.arrow),ea=ei?"y"===w?ei.clientTop||0:ei.clientLeft||0:0,eo=null!=(O=null==L?void 0:L[w])?O:0,es=$(d?D(U,F+en-eo-ea):U,F,d?R(V,F+er-eo):V);T[w]=es,P[w]=es-F}
53if(void 0!==a&&a){var el,eu,ec="x"===w?"top":y,ed="x"===w?g:v,eh=T[x],ep="y"===x?"height":"width",em=eh+p[ec],eg=eh-p[ed],ev=-1!==["top",y].indexOf(m),ey=null!=(eu=null==L?void 0:L[x])?eu:0,eb=ev?em:eh-S[ep]-_[ep]-ey+I.altAxis,eA=ev?eh+S[ep]+_[ep]-ey-I.altAxis:eg,eE=d&&ev?(el=$(eb,eh,eA))>eA?eA:el:$(d?eb:em,eh,d?eA:eg);T[x]=eE,P[x]=eE-eh}t.modifiersData[r]=P}},requiresIfExists:["offset"]},{name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n,r=e.state,i=e.name,a=e.options,o=r.elements.arrow,s=r.modifiersData.popperOffsets,l=k(r.placement),u=K(l),c=[y,v].indexOf(l)>=0?"height":"width";if(o&&s){var d=Z("number"!=typeof(t="function"==typeof(t=a.padding)?t(Object.assign({},r.rects,{placement:r.placement})):t)?t:Y(t,A)),h=B(o),f="y"===u?"top":y,p="y"===u?g:v,m=r.rects.reference[c]+r.rects.reference[u]-s[u]-r.rects.popper[c],b=s[u]-r.rects.reference[u],E=G(o),w=E?"y"===u?E.clientHeight||0:E.clientWidth||0:0,x=d[f],T=w-h[c]-d[p],S=w/2-h[c]/2+(m/2-b/2),_=$(x,S,T);r.modifiersData[i]=((n={})[u]=_,n.centerOffset=_-S,n)}},effect:function(e){var t=e.state,n=e.options.element,r=void 0===n?"[data-popper-arrow]":n;null!=r&&("string"!=typeof r||(r=t.elements.popper.querySelector(r)))&&U(t.elements.popper,r)&&(t.elements.arrow=r)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]}]}).defaultModifiers)?[]:o,u=void 0===(l=a.defaultOptions)?eg:l,function(e,t,n){void 0===n&&(n=u);var r,i={placement:"bottom",orderedModifiers:[],options:Object.assign({},eg,u),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},a=[],o=!1,l={state:i,setOptions:function(n){var r,o,d,h,f,p="function"==typeof n?n(i.options):n;c(),i.options=Object.assign({},u,i.options,p),i.scrollParents={reference:L(e)?eu(e):e.contextElement?eu(e.contextElement):[],popper:eu(t)};var m=(o=Object.keys(r=[].concat(s,i.options.modifiers).reduce(function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e},{})).map(function(e){return r[e]}),d=new Map,h=new Set,f=[],o.forEach(function(e){d.set(e.name,e)}),o.forEach(function(e){h.has(e.name)||function e(t){h.add(t.name),[].concat(t.requires||[],t.requiresIfExists||[]).forEach(function(t){if(!h.has(t)){var n=d.get(t);n&&e(n)}}),f.push(t)}(e)}),_.reduce(function(e,t){return e.concat(f.filter(function(e){return e.phase===t}))},[]));return i.orderedModifiers=m.filter(function(e){return e.enabled}),i.orderedModifiers.forEach(function(e){var t=e.name,n=e.options,r=e.effect;if("function"==typeof r){var o=r({state:i,name:t,instance:l,options:void 0===n?{}:n});a.push(o||function(){})}}),l.update()},forceUpdate:function(){if(!o){var e,t,n,r,a,s,u,c,d,h,f,p,m=i.elements,g=m.reference,v=m.popper;if(ev(g,v)){i.rects={reference:(t=G(v),n="fixed"===i.options.strategy,r=P(t),c=P(t)&&(s=N((a=t.getBoundingClientRect()).width)/t.offsetWidth||1,u=N(a.height)/t.offsetHeight||1,1!==s||1!==u),d=q(t),h=F(g,c,n),f={scrollLeft:0,scrollTop:0},p={x:0,y:0},(r||!r&&!n)&&(("body"!==V(t)||el(d))&&(f=(e=t)!==I(e)&&P(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:eo(e)),P(t)?(p=F(t,!0),p.x+=t.clientLeft,p.y+=t.clientTop):d&&(p.x=es(d))),{x:h.left+f.scrollLeft-p.x,y:h.top+f.scrollTop-p.y,width:h.width,height:h.height}),popper:B(v)},i.reset=!1,i.placement=i.options.placement,i.orderedModifiers.forEach(function(e){return i.modifiersData[e.name]=Object.assign({},e.data)});for(var y=0;y<i.orderedModifiers.length;y++){if(!0===i.reset){i.reset=!1,y=-1;continue}var b=i.orderedModifiers[y],A=b.fn,E=b.options,w=void 0===E?{}:E,x=b.name;"function"==typeof A&&(i=A({state:i,options:w,name:x,instance:l})||i)}}}},update:function(){return r||(r=new Promise(function(e){Promise.resolve().then(function(){r=void 0,e(new Promise(function(e){l.forceUpdate(),e(i)}))})})),r},destroy:function(){c(),o=!0}};if(!ev(e,t))return l;function c(){a.forEach(function(e){return e()}),a=[]}return l.setOptions(n).then(function(e){!o&&n.onFirstUpdate&&n.onFirstUpdate(e)}),l}),eb=function(e){return{position:e,top:"0",left:"0",opacity:"0",pointerEvents:"none"}},eA={name:"applyStyles",enabled:!1},eE={name:"ariaDescribedBy",enabled:!0,phase:"afterWrite",effect:function(e){var t=e.state;return function(){var e=t.elements,n=e.reference,r=e.popper;if("removeAttribute"in n){var i=(n.getAttribute("aria-describedby")||"").split(",").filter(function(e){return e.trim()!==r.id});i.length?n.setAttribute("aria-describedby",i.join(",")):n.removeAttribute("aria-describedby")}}},fn:function(e){var t,n=e.state.elements,r=n.popper,i=n.reference,a=null==(t=r.getAttribute("role"))?void 0:t.toLowerCase();if(r.id&&"tooltip"===a&&"setAttribute"in i){var o=i.getAttribute("aria-describedby");if(o&&-1!==o.split(",").indexOf(r.id))return;i.setAttribute("aria-describedby",o?o+","+r.id:r.id)}}},ew=[],ex=function(e,t,n){var a=void 0===n?{}:n,o=a.enabled,s=void 0===o||o,l=a.placement,u=void 0===l?"bottom":l,c=a.strategy,d=void 0===c?"absolute":c,f=a.modifiers,p=void 0===f?ew:f,m=i(a,["enabled","placement","strategy","modifiers"]),g=(0,h.useRef)(),v=(0,h.useCallback)(function(){var e;
53null==(e=g.current)||e.update()},[]),y=(0,h.useCallback)(function(){var e;null==(e=g.current)||e.forceUpdate()},[]),b=C((0,h.useState)({placement:u,update:v,forceUpdate:y,attributes:{},styles:{popper:eb(d),arrow:{}}})),A=b[0],E=b[1],w=(0,h.useMemo)(function(){return{name:"updateStateModifier",enabled:!0,phase:"write",requires:["computeStyles"],fn:function(e){var t=e.state,n={},r={};Object.keys(t.elements).forEach(function(e){n[e]=t.styles[e],r[e]=t.attributes[e]}),E({state:t,styles:n,attributes:r,update:v,forceUpdate:y,placement:t.placement})}}},[v,y,E]);return(0,h.useEffect)(function(){g.current&&s&&g.current.setOptions({placement:u,strategy:d,modifiers:[].concat(p,[w,eA])})},[d,u,w,s]),(0,h.useEffect)(function(){if(s&&null!=e&&null!=t)return g.current=ey(e,t,r({},m,{placement:u,strategy:d,modifiers:[].concat(p,[eE,w])})),function(){null!=g.current&&(g.current.destroy(),g.current=void 0,E(function(e){return r({},e,{attributes:{},styles:{popper:eb(d)}})}))}},[s,e,t]),A},eT=!!("undefined"!=typeof window&&window.document&&window.document.createElement),eS=!1,e_=!1;try{var eC={get passive(){return eS=!0},get once(){return e_=eS=!0}};eT&&(window.addEventListener("test",eC,eC),window.removeEventListener("test",eC,!0))}catch(e){}var ek=function(e,t,n,r){if(r&&"boolean"!=typeof r&&!e_){var i=r.once,a=r.capture,o=n;!e_&&i&&(o=n.__once||function e(r){this.removeEventListener(t,e,a),n.call(this,r)},n.__once=o),e.addEventListener(t,o,eS?r:a)}e.addEventListener(t,n,r)},eI=function(e,t,n,r){var i=r&&"boolean"!=typeof r?r.capture:r;e.removeEventListener(t,n,i),n.__once&&e.removeEventListener(t,n.__once,i)},eL=function(e,t,n,r){return ek(e,t,n,r),function(){eI(e,t,n,r)}},eP=function(e){var t=(0,h.useRef)(e);return(0,h.useEffect)(function(){t.current=e},[e]),t};function eO(e){var t=eP(e);return(0,h.useCallback)(function(){return t.current&&t.current.apply(t,arguments)},[t])}var eR=n(2473),eD=n.n(eR);function eN(e){return e&&e.ownerDocument||document}var eM=function(){},ej=function(e){return e&&("current"in e?e.current:e)},eF=function(e,t,n){var r=void 0===n?{}:n,i=r.disabled,a=r.clickTrigger,o=void 0===a?"click":a,s=(0,h.useRef)(!1),l=t||eM,u=(0,h.useCallback)(function(t){var n,r=ej(e);eD()(!!r,"RootClose captured a close event but does not have a ref to compare it to. useRootClose(), should be passed a ref that resolves to a DOM node"),s.current=!r||!!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)||0!==t.button||(n=t.target,r.contains?!!r.contains(n):!!r.compareDocumentPosition&&(r===n||!!(16&r.compareDocumentPosition(n))))},[e]),c=eO(function(e){s.current||l(e)}),d=eO(function(e){27===e.keyCode&&l(e)});(0,h.useEffect)(function(){if(!i&&null!=e){var t,n=window.event,r=eN((t=ej(e))&&"setState"in t?f.findDOMNode(t):null!=t?t:null),a=eL(r,o,u,!0),s=eL(r,o,function(e){if(e===n){n=void 0;return}c(e)}),l=eL(r,"keyup",function(e){if(e===n){n=void 0;return}d(e)}),h=[];return"ontouchstart"in r.documentElement&&(h=[].slice.call(r.body.children).map(function(e){return eL(e,"mousemove",eM)})),function(){a(),s(),l(),h.forEach(function(e){return e()})}}},[e,i,o,u,c,d])},eB=function(e){var t;return"undefined"==typeof document?null:null==e?eN().body:("function"==typeof e&&(e=e()),e&&"current"in e&&(e=e.current),(null==(t=e)?void 0:t.nodeType)&&e||null)};function eU(e,t){var n=(0,h.useState)(function(){return eB(e)}),r=n[0],i=n[1];if(!r){var a=eB(e);a&&i(a)}return(0,h.useEffect)(function(){t&&r&&t(r)},[t,r]),(0,h.useEffect)(function(){var t=eB(e);t!==r&&i(t)},[e,r]),r}var eV=h.forwardRef(function(e,t){var n,a,o,s,l,u,c,d,g,v,y,b,A,E,w,x,T,S,_=e.flip,C=e.offset,k=e.placement,I=e.containerPadding,L=e.popperConfig,P=e.transition,O=p(),R=O[0],D=O[1],N=p(),M=N[0],j=N[1],F=(0,h.useMemo)(function(){var e,n;return e=m(D),n=m(t),function(t){e&&e(t),n&&n(t)}},[D,t]),B=eU(e.container),U=eU(e.target),V=(0,h.useState)(!e.show),z=V[0],q=V[1],Q=ex(U,R,(u=(n={placement:k,enableEvents:!!e.show,containerPadding:(void 0===I?5:I)||5,flip:_,offset:C,arrowElement:M,popperConfig:void 0===L?{}:L}).enabled,c=n.enableEvents,d=n.placement,g=n.flip,v=n.offset,y=n.containerPadding,b=n.arrowElement,w=(E=void 0===(A=n.popperConfig)?{}:A).modifiers,x={}
53,T=Array.isArray(w)?(null==w||w.forEach(function(e){x[e.name]=e}),x):w||x,r({},E,{placement:d,enabled:u,modifiers:(void 0===(S=r({},T,{eventListeners:{enabled:c},preventOverflow:r({},T.preventOverflow,{options:y?r({padding:y},null==(a=T.preventOverflow)?void 0:a.options):null==(o=T.preventOverflow)?void 0:o.options}),offset:{options:r({offset:v},null==(s=T.offset)?void 0:s.options)},arrow:r({},T.arrow,{enabled:!!b,options:r({},null==(l=T.arrow)?void 0:l.options,{element:b})}),flip:r({enabled:!!g},T.flip)}))&&(S={}),Array.isArray(S))?S:Object.keys(S).map(function(e){return S[e].name=e,S[e]})}))),H=Q.styles,G=Q.attributes,K=i(Q,["styles","attributes"]);e.show?z&&q(!1):e.transition||z||q(!0);var $=e.show||P&&!z;if(eF(R,e.onHide,{disabled:!e.rootClose||e.rootCloseDisabled,clickTrigger:e.rootCloseEvent}),!$)return null;var W=e.children(r({},K,{show:!!e.show,props:r({},G.popper,{style:H.popper,ref:F}),arrowProps:r({},G.arrow,{style:H.arrow,ref:j})}));if(P){var Z=e.onExit,Y=e.onExiting,X=e.onEnter,J=e.onEntering,ee=e.onEntered;W=h.createElement(P,{in:e.show,appear:!0,onExit:Z,onExiting:Y,onExited:function(){q(!0),e.onExited&&e.onExited.apply(e,arguments)},onEnter:X,onEntering:J,onEntered:ee},W)}return B?f.createPortal(W,B):null});eV.displayName="Overlay",eV.propTypes={show:d().bool,placement:d().oneOf(S),target:d().any,container:d().any,flip:d().bool,children:d().func.isRequired,containerPadding:d().number,popperConfig:d().object,rootClose:d().bool,rootCloseEvent:d().oneOf(["click","mousedown"]),rootCloseDisabled:d().bool,onHide:function(e){for(var t,n=arguments.length,r=Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return e.rootClose?(t=d().func).isRequired.apply(t,[e].concat(r)):d().func.apply(d(),[e].concat(r))},transition:d().elementType,onEnter:d().func,onEntering:d().func,onEntered:d().func,onExit:d().func,onExiting:d().func,onExited:d().func};var ez=eV},722:function(e,t,n){var r=Object.create,i=Object.defineProperty,a=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,s=Object.getPrototypeOf,l=Object.prototype.hasOwnProperty,u=(e,t,n)=>t in e?i(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,c=(e,t,n,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let s of o(t))l.call(e,s)||s===n||i(e,s,{get:()=>t[s],enumerable:!(r=a(t,s))||r.enumerable});return e},d=(e,t,n)=>(n=null!=e?r(s(e)):{},c(!t&&e&&e.__esModule?n:i(n,"default",{value:e,enumerable:!0}),e)),h=(e,t,n)=>(u(e,"symbol"!=typeof t?t+"":t,n),n),f={};((e,t)=>{for(var n in t)i(e,n,{get:t[n],enumerable:!0})})(f,{default:()=>y}),e.exports=c(i({},"__esModule",{value:!0}),f);var p=d(n(7294)),m=d(n(9590)),g=n(5741),v=n(8045);class y extends p.Component{constructor(){super(...arguments),h(this,"mounted",!1),h(this,"isReady",!1),h(this,"isPlaying",!1),h(this,"isLoading",!0),h(this,"loadOnReady",null),h(this,"startOnPlay",!0),h(this,"seekOnPlay",null),h(this,"onDurationCalled",!1),h(this,"handlePlayerMount",e=>{if(this.player){this.progress();return}this.player=e,this.player.load(this.props.url),this.progress()}),h(this,"getInternalPlayer",e=>this.player?this.player[e]:null),h(this,"progress",()=>{if(this.props.url&&this.player&&this.isReady){let e=this.getCurrentTime()||0,t=this.getSecondsLoaded(),n=this.getDuration();if(n){let r={playedSeconds:e,played:e/n};null!==t&&(r.loadedSeconds=t,r.loaded=t/n),(r.playedSeconds!==this.prevPlayed||r.loadedSeconds!==this.prevLoaded)&&this.props.onProgress(r),this.prevPlayed=r.playedSeconds,this.prevLoaded=r.loadedSeconds}}this.progressTimeout=setTimeout(this.progress,this.props.progressFrequency||this.props.progressInterval)}),h(this,"handleReady",()=>{if(!this.mounted)return;this.isReady=!0,this.isLoading=!1;let{onReady:e,playing:t,volume:n,muted:r}=this.props;e(),r||null===n||this.player.setVolume(n),this.loadOnReady?(this.player.load(this.loadOnReady,!0),this.loadOnReady=null):t&&this.player.play(),this.handleDurationCheck()}),h(this,"handlePlay",()=>{this.isPlaying=!0,this.isLoading=!1;let{onStart:e,onPlay:t,playbackRate:n}=this.props;this.startOnPlay&&(this.player.setPlaybackRate&&1!==n&&this.player.setPlaybackRate(n),e(),this.startOnPlay=!1),t(),this.seekOnPlay&&(this.seekTo(this.seekOnPlay),this.seekOnPlay=null),this.handleDurationCheck()}),h(this,"handlePause",e=>{this.isPlaying=!1,this.isLoading||this.props.onPause(e)}),h(this,"handleEnded",()=>{let{activePlayer:e,loop:t,onEnded:n}=this.props;e.loopOnEnded&&t&&this.seekTo(0),t||(this.isPlaying=!1,n())}),h(this,"handleError",(...e)=>{this.isLoading=!1,this.props.onError(...e)}),h(this,"handleDurationCheck",()=>{clearTimeout(this.durationCheckTimeout);let e=this.getDuration();e?this.onDurationCalled||(this.props.onDuration(e),this.onDurationCalled=!0):this.durationCheckTimeout=setTimeout(this.handleDurationCheck,100)}),h(this,"handleLoaded",()=>{this.isLoading=!1})}componentDidMount(){this.mounted=!0}componentWillUnmount(){clearTimeout(this.progressTimeout),clearTimeout(this.durationCheckTimeout),this.isReady&&this.props.stopOnUnmount&&(this.player.stop(),this.player.disablePIP&&this.player.disablePIP(
53)),this.mounted=!1}componentDidUpdate(e){if(!this.player)return;let{url:t,playing:n,volume:r,muted:i,playbackRate:a,pip:o,loop:s,activePlayer:l,disableDeferredLoading:u}=this.props;if(!(0,m.default)(e.url,t)){if(this.isLoading&&!l.forceLoad&&!u&&!(0,v.isMediaStream)(t)){console.warn(`ReactPlayer: the attempt to load ${t} is being deferred until the player has loaded`),this.loadOnReady=t;return}this.isLoading=!0,this.startOnPlay=!0,this.onDurationCalled=!1,this.player.load(t,this.isReady)}e.playing||!n||this.isPlaying||this.player.play(),e.playing&&!n&&this.isPlaying&&this.player.pause(),!e.pip&&o&&this.player.enablePIP&&this.player.enablePIP(),e.pip&&!o&&this.player.disablePIP&&this.player.disablePIP(),e.volume!==r&&null!==r&&this.player.setVolume(r),e.muted!==i&&(i?this.player.mute():(this.player.unmute(),null!==r&&setTimeout(()=>this.player.setVolume(r)))),e.playbackRate!==a&&this.player.setPlaybackRate&&this.player.setPlaybackRate(a),e.loop!==s&&this.player.setLoop&&this.player.setLoop(s)}getDuration(){return this.isReady?this.player.getDuration():null}getCurrentTime(){return this.isReady?this.player.getCurrentTime():null}getSecondsLoaded(){return this.isReady?this.player.getSecondsLoaded():null}seekTo(e,t,n){if(!this.isReady){0!==e&&(this.seekOnPlay=e,setTimeout(()=>{this.seekOnPlay=null},5e3));return}if(t?"fraction"===t:e>0&&e<1){let t=this.player.getDuration();if(!t){console.warn("ReactPlayer: could not seek using fraction –\xa0duration not yet available");return}this.player.seekTo(t*e,n);return}this.player.seekTo(e,n)}render(){let e=this.props.activePlayer;return e?p.default.createElement(e,{...this.props,onMount:this.handlePlayerMount,onReady:this.handleReady,onPlay:this.handlePlay,onPause:this.handlePause,onEnded:this.handleEnded,onLoaded:this.handleLoaded,onError:this.handleError}):null}}
53h(y,"displayName","Player"),h(y,"propTypes",g.propTypes),h(y,"defaultProps",g.defaultProps)},390:function(e,t,n){var r=Object.create,i=Object.defineProperty,a=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,s=Object.getPrototypeOf,l=Object.prototype.hasOwnProperty,u=(e,t,n)=>t in e?i(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,c=(e,t,n,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let s of o(t))l.call(e,s)||s===n||i(e,s,{get:()=>t[s],enumerable:!(r=a(t,s))||r.enumerable});return e},d=(e,t,n)=>(n=null!=e?r(s(e)):{},c(!t&&e&&e.__esModule?n:i(n,"default",{value:e,enumerable:!0}),e)),h=(e,t,n)=>(u(e,"symbol"!=typeof t?t+"":t,n),n),f={};((e,t)=>{for(var n in t)i(e,n,{get:t[n],enumerable:!0})})(f,{createReactPlayer:()=>C}),e.exports=c(i({},"__esModule",{value:!0}),f);var p=d(n(7294)),m=d(n(9996)),g=d(n(845)),v=d(n(9590)),y=n(5741),b=n(8045),A=d(n(722));let E=(0,b.lazy)(()=>n.e(664).then(n.t.bind(n,3855,23))),w="undefined"!=typeof window&&window.document&&"undefined"!=typeof document,x=void 0!==n.g&&n.g.window&&n.g.window.document,T=Object.keys(y.propTypes),S=w||x?p.Suspense:()=>null,_=[],C=(e,t)=>{var n;return n=class extends p.Component{constructor(){super(...arguments),h(this,"state",{showPreview:!!this.props.light}),h(this,"references",{wrapper:e=>{this.wrapper=e},player:e=>{this.player=e}}),h(this,"handleClickPreview",e=>{this.setState({showPreview:!1}),this.props.onClickPreview(e)}),h(this,"showPreview",()=>{this.setState({showPreview:!0})}),h(this,"getDuration",()=>this.player?this.player.getDuration():null),h(this,"getCurrentTime",()=>this.player?this.player.getCurrentTime():null),h(this,"getSecondsLoaded",()=>this.player?this.player.getSecondsLoaded():null),h(this,"getInternalPlayer",(e="player")=>this.player?this.player.getInternalPlayer(e):null),h(this,"seekTo",(e,t,n)=>{if(!this.player)return null;this.player.seekTo(e,t,n)}),h(this,"handleReady",()=>{this.props.onReady(this)}),h(this,"getActivePlayer",(0,g.default)(n=>{for(let t of[..._,...e])if(t.canPlay(n))return t;return t||null})),h(this,"getConfig",(0,g.default)((e,t)=>{let{config:n}=this.props;return m.default.all([y.defaultProps.config,y.defaultProps.config[t]||{},n,n[t]||{}])})),h(this,"getAttributes",(0,g.default)(e=>(0,b.omit)(this.props,T))),h(this,"renderActivePlayer",e=>{if(!e)return null;let t=this.getActivePlayer(e);if(!t)return null;let n=this.getConfig(e,t.key);return p.default.createElement(A.default,{...this.props,key:t.key,ref:this.references.player,config:n,activePlayer:t.lazyPlayer||t,onReady:this.handleReady})})}shouldComponentUpdate(e,t){return!(0,v.default)(this.props,e)||!(0,v.default)(this.state,t)}componentDidUpdate(e){let{light:t}=this.props;!e.light&&t&&this.setState({showPreview:!0}),e.light&&!t&&this.setState({showPreview:!1})}renderPreview(e){if(!e)return null;let{light:t,playIcon:n,previewTabIndex:r,oEmbedUrl:i,previewAriaLabel:a}=this.props;return p.default.createElement(E,{url:e,light:t,playIcon:n,previewTabIndex:r,previewAriaLabel:a,oEmbedUrl:i,onClick:this.handleClickPreview})}render(){let{url:e,style:t,width:n,height:r,fallback:i,wrapper:a}=this.props,{showPreview:o}=this.state,s=this.getAttributes(e),l="string"==typeof a?this.references.wrapper:void 0;return p.default.createElement(a,{ref:l,style:{...t,width:n,height:r},...s},p.default.createElement(S,{fallback:i},o?this.renderPreview(e):this.renderActivePlayer(e)))}},h(n,"displayName","ReactPlayer"),h(n,"propTypes",y.propTypes),h(n,"defaultProps",y.defaultProps),h(n,"addCustomPlayer",e=>{_.push(e)}),h(n,"removeCustomPlayers",()=>{_.length=0}),h(n,"canPlay",t=>{for(let n of[..._,...e])if(n.canPlay(t))return!0;return!1}),h(n,"canEnablePIP",t=>{for(let n of[..._,...e])if(n.canEnablePIP&&n.canEnablePIP(t))return!0;return!1}),n}},2004:function(e,t,n){var r,i,a=Object.create,o=Object.defineProperty,s=Object.getOwnPropertyDescriptor,l=Object.getOwnPropertyNames,u=Object.getPrototypeOf,c=Object.prototype.hasOwnProperty,d=(e,t,n,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let i of l(t))c.call(e,i)||i===n||o(e,i,{get:()=>t[i],enumerable:!(r=s(t,i))||r.enumerable});return e},h={};((e,t)=>
53{for(var n in t)o(e,n,{get:t[n],enumerable:!0})})(h,{default:()=>g}),e.exports=d(o({},"__esModule",{value:!0}),h);var f=(i=null!=(r=n(6497))?a(u(r)):{},d(r&&r.__esModule?i:o(i,"default",{value:r,enumerable:!0}),r)),p=n(390);let m=f.default[f.default.length-1];var g=(0,p.createReactPlayer)(f.default,m)},1776:function(e,t,n){var r=Object.defineProperty,i=Object.getOwnPropertyDescriptor,a=Object.getOwnPropertyNames,o=Object.prototype.hasOwnProperty,s={};((e,t)=>{for(var n in t)r(e,n,{get:t[n],enumerable:!0})})(s,{AUDIO_EXTENSIONS:()=>x,DASH_EXTENSIONS:()=>_,FLV_EXTENSIONS:()=>C,HLS_EXTENSIONS:()=>S,MATCH_URL_DAILYMOTION:()=>b,MATCH_URL_FACEBOOK:()=>f,MATCH_URL_FACEBOOK_WATCH:()=>p,MATCH_URL_KALTURA:()=>w,MATCH_URL_MIXCLOUD:()=>A,MATCH_URL_MUX:()=>h,MATCH_URL_SOUNDCLOUD:()=>c,MATCH_URL_STREAMABLE:()=>m,MATCH_URL_TWITCH_CHANNEL:()=>y,MATCH_URL_TWITCH_VIDEO:()=>v,MATCH_URL_VIDYARD:()=>E,MATCH_URL_VIMEO:()=>d,MATCH_URL_WISTIA:()=>g,MATCH_URL_YOUTUBE:()=>u,VIDEO_EXTENSIONS:()=>T,canPlay:()=>I}),e.exports=((e,t,n,s)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let n of a(t))o.call(e,n)||void 0===n||r(e,n,{get:()=>t[n],enumerable:!(s=i(t,n))||s.enumerable});return e})(r({},"__esModule",{value:!0}),s);var l=n(8045);let u=/(?:youtu\.be\/|youtube(?:-nocookie|education)?\.com\/(?:embed\/|v\/|watch\/|watch\?v=|watch\?.+&v=|shorts\/|live\/))((\w|-){11})|youtube\.com\/playlist\?list=|youtube\.com\/user\//,c=/(?:soundcloud\.com|snd\.sc)\/[^.]+$/,d=/vimeo\.com\/(?!progressive_redirect).+/,h=/stream\.mux\.com\/(?!\w+\.m3u8)(\w+)/,f=/^https?:\/\/(www\.)?facebook\.com.*\/(video(s)?|watch|story)(\.php?|\/).+$/,p=/^https?:\/\/fb\.watch\/.+$/,m=/streamable\.com\/([a-z0-9]+)$/,g=/(?:wistia\.(?:com|net)|wi\.st)\/(?:medias|embed)\/(?:iframe\/)?([^?]+)/,v=/(?:www\.|go\.)?twitch\.tv\/videos\/(\d+)($|\?)/,y=/(?:www\.|go\.)?twitch\.tv\/([a-zA-Z0-9_]+)($|\?)/,b=/^(?:(?:https?):)?(?:\/\/)?(?:www\.)?(?:(?:dailymotion\.com(?:\/embed)?\/video)|dai\.ly)\/([a-zA-Z0-9]+)(?:_[\w_-]+)?(?:[\w.#_-]+)?/,A=/mixcloud\.com\/([^/]+\/[^/]+)/,E=/vidyard.com\/(?:watch\/)?([a-zA-Z0-9-_]+)/,w=/^https?:\/\/[a-zA-Z]+\.kaltura.(com|org)\/p\/([0-9]+)\/sp\/([0-9]+)00\/embedIframeJs\/uiconf_id\/([0-9]+)\/partner_id\/([0-9]+)(.*)entry_id.([a-zA-Z0-9-_].*)$/,x=/\.(m4a|m4b|mp4a|mpga|mp2|mp2a|mp3|m2a|m3a|wav|weba|aac|oga|spx)($|\?)/i,T=/\.(mp4|og[gv]|webm|mov|m4v)(#t=[,\d+]+)?($|\?)/i,S=/\.(m3u8)($|\?)/i,_=/\.(mpd)($|\?)/i,C=/\.(flv)($|\?)/i,k=e=>{if(e instanceof Array){for(let t of e)if("string"==typeof t&&k(t)||k(t.src))return!0;return!1}return!!((0,l.isMediaStream)(e)||(0,l.isBlobUrl)(e))||x.test(e)||T.test(e)||S.test(e)||_.test(e)||C.test(e)},I={youtube:e=>e instanceof Array?e.every(e=>u.test(e)):u.test(e),soundcloud:e=>c.test(e)&&!x.test(e),vimeo:e=>d.test(e)&&!T.test(e)&&!S.test(e),mux:e=>h.test(e),facebook:e=>f.test(e)||p.test(e),streamable:e=>m.test(e),wistia:e=>g.test(e),twitch:e=>v.test(e)||y.test(e),dailymotion:e=>b.test(e),mixcloud:e=>A.test(e),vidyard:e=>E.test(e),kaltura:e=>w.test(e),file:k}},6497:function(e,t,n){var r=Object.defineProperty,i=Object.getOwnPropertyDescriptor,a=Object.getOwnPropertyNames,o=Object.prototype.hasOwnProperty,s={};((e,t)=>{for(var n in t)r(e,n,{get:t[n],enumerable:!0})})(s,{default:()=>c}),e.exports=((e,t,n,s)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let n of a(t))o.call(e,n)||void 0===n||r(e,n,{get:()=>t[n],enumerable:!(s=i(t,n))||s.enumerable});return e})(r({},"__esModule",{value:!0}),s);var l=n(8045),u=n(1776),c=[{key:"youtube",name:"YouTube",canPlay:u.canPlay.youtube,lazyPlayer:(0,l.lazy)(()=>n.e(439).then(n.t.bind(n,356,23)))},{key:"soundcloud",name:"SoundCloud",canPlay:u.canPlay.soundcloud,lazyPlayer:(0,l.lazy)(()=>n.e(125).then(n.t.bind(n,2648,23)))},{key:"vimeo",name:"Vimeo",canPlay:u.canPlay.vimeo,lazyPlayer:(0,l.lazy)(()=>n.e(743).then(n.t.bind(n,868,23)))},{key:"mux",name:"Mux",canPlay:u.canPlay.mux,lazyPlayer:(0,l.lazy)(()=>n.e(258).then(n.t.bind(n,8376,23)))},{key:"facebook",name:"Facebook",canPlay:u.canPlay.facebook,lazyPlayer:(0,l.lazy)(()=>n.e(121).then(n.t.bind(n,1972,23)))},{key:"streamable",name:"Streamable",canPlay:u.canPlay.streamable,lazyPlayer:(0,l.lazy)(()=>n.e(546).then(n.t.bind(n,993,23)))},{key:"wistia",name:"Wistia",canPlay:u.canPlay.wistia,lazyPlayer:(0,l.lazy)(()=>n.e(55).then(n.t.bind(n,1402,23)))},{key:"twitch",name:"Twitch",canPlay:u.canPlay.twitch,lazyPlayer:(0,l.lazy)(()=>n.e(216).then(n.t.bind(n,9482,23)))},{key:"dailymotion",name:"DailyMotion",canPlay:u.canPlay.dailymotion,lazyPlayer:(0,l.lazy)(()=>n.e(596).then(n.t.bind(n,6807,23)))},{key:"mixcloud",name:"Mixcloud",canPlay:u.canPlay.mixcloud,lazyPlayer:(0,l.lazy)(()=>n.e(667).then(n.t.bind(n,143,23)))}
53,{key:"vidyard",name:"Vidyard",canPlay:u.canPlay.vidyard,lazyPlayer:(0,l.lazy)(()=>n.e(965).then(n.t.bind(n,6596,23)))},{key:"kaltura",name:"Kaltura",canPlay:u.canPlay.kaltura,lazyPlayer:(0,l.lazy)(()=>n.e(261).then(n.t.bind(n,3911,23)))},{key:"file",name:"FilePlayer",canPlay:u.canPlay.file,canEnablePIP:e=>u.canPlay.file(e)&&(document.pictureInPictureEnabled||(0,l.supportsWebKitPresentationMode)())&&!u.AUDIO_EXTENSIONS.test(e),lazyPlayer:(0,l.lazy)(()=>n.e(11).then(n.t.bind(n,4926,23)))}]},5741:function(e,t,n){var r,i,a=Object.create,o=Object.defineProperty,s=Object.getOwnPropertyDescriptor,l=Object.getOwnPropertyNames,u=Object.getPrototypeOf,c=Object.prototype.hasOwnProperty,d=(e,t,n,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let i of l(t))c.call(e,i)||i===n||o(e,i,{get:()=>t[i],enumerable:!(r=s(t,i))||r.enumerable});return e},h={};((e,t)=>{for(var n in t)o(e,n,{get:t[n],enumerable:!0})})(h,{defaultProps:()=>T,propTypes:()=>w}),e.exports=d(o({},"__esModule",{value:!0}),h);let{string:f,bool:p,number:m,array:g,oneOfType:v,shape:y,object:b,func:A,node:E}=(i=null!=(r=n(5697))?a(u(r)):{},d(r&&r.__esModule?i:o(i,"default",{value:r,enumerable:!0}),r)).default,w={url:v([f,g,b]),playing:p,loop:p,controls:p,volume:m,muted:p,playbackRate:m,width:v([f,m]),height:v([f,m]),style:b,progressInterval:m,playsinline:p,pip:p,stopOnUnmount:p,light:v([p,f,b]),playIcon:E,previewTabIndex:m,previewAriaLabel:f,fallback:E,oEmbedUrl:f,wrapper:v([f,A,y({render:A.isRequired})]),config:y({soundcloud:y({options:b}),youtube:y({playerVars:b,embedOptions:b,onUnstarted:A}),facebook:y({appId:f,version:f,playerId:f,attributes:b}),dailymotion:y({params:b}),vimeo:y({playerOptions:b,title:f}),mux:y({attributes:b,version:f}),file:y({attributes:b,tracks:g,forceVideo:p,forceAudio:p,forceHLS:p,forceSafariHLS:p,forceDisableHls:p,forceDASH:p,forceFLV:p,hl
53sOptions:b,hlsVersion:f,dashVersion:f,flvVersion:f}),wistia:y({options:b,playerId:f,customControls:g}),mixcloud:y({options:b}),twitch:y({options:b,playerId:f}),vidyard:y({options:b})}),onReady:A,onStart:A,onPlay:A,onPause:A,onBuffer:A,onBufferEnd:A,onEnded:A,onError:A,onDuration:A,onSeek:A,onPlaybackRateChange:A,onPlaybackQualityChange:A,onProgress:A,onClickPreview:A,onEnablePIP:A,onDisablePIP:A},x=()=>{},T={playing:!1,loop:!1,controls:!1,volume:null,muted:!1,playbackRate:1,width:"640px",height:"360px",style:{},progressInterval:1e3,playsinline:!1,pip:!1,stopOnUnmount:!0,light:!1,fallback:null,wrapper:"div",previewTabIndex:0,previewAriaLabel:"",oEmbedUrl:"https://noembed.com/embed?url={url}",config:{soundcloud:{options:{visual:!0,buying:!1,liking:!1,download:!1,sharing:!1,show_comments:!1,show_playcount:!1}},youtube:{playerVars:{playsinline:1,showinfo:0,rel:0,iv_load_policy:3,modestbranding:1},embedOptions:{},onUnstarted:x},facebook:{appId:"1309697205772819",version:"v3.3",playerId:null,attributes:{}},dailymotion:{params:{api:1,"endscreen-enable":!1}},vimeo:{playerOptions:{autopause:!1,byline:!1,portrait:!1,title:!1},title:null},mux:{attributes:{},version:"2"},file:{attributes:{},tracks:[],forceVideo:!1,forceAudio:!1,forceHLS:!1,forceDASH:!1,forceFLV:!1,hlsOptions:{},hlsVersion:"1.1.4",dashVersion:"3.1.3",flvVersion:"1.5.0",forceDisableHls:!1},wistia:{options:{},playerId:null,customControls:null},mixcloud:{options:{hide_cover:1}},twitch:{options:{},playerId:null},vidyard:{options:{}}},onReady:x,onStart:x,onPlay:x,onPause:x,onBuffer:x,onBufferEnd:x,onEnded:x,onError:x,onDuration:x,onSeek:x,onPlaybackRateChange:x,onPlaybackQualityChange:x,onProgress:x,onClickPreview:x,onEnablePIP:x,onDisablePIP:x}},8045:function(e,t,n){var r=Object.create,i=Object.defineProperty,a=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,s=Object.getPrototypeOf,l=Object.prototype.hasOwnProperty,u=(e,t,n,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let s of o(t))l.call(e,s)||s===n||i(e,s,{get:()=>t[s],enumerable:!(r=a(t,s))||r.enumerable});return e},c=(e,t,n)=>(n=null!=e?r(s(e)):{},u(!t&&e&&e.__esModule?n:i(n,"default",{value:e,enumerable:!0}),e)),d={};((e,t)=>{for(var n in t)i(e,n,{get:t[n],enumerable:!0})})(d,{callPlayer:()=>L,getConfig:()=>k,getSDK:()=>C,isBlobUrl:()=>O,isMediaStream:()=>P,lazy:()=>m,omit:()=>I,parseEndTime:()=>w,parseStartTime:()=>E,queryString:()=>T,randomString:()=>x,supportsWebKitPresentationMode:()=>R}),e.exports=u(i({},"__esModule",{value:!0}),d);var h=c(n(7294)),f=c(n(9090)),p=c(n(9996));let m=e=>h.default.lazy(async()=>{let t=await e();return"function"==typeof t.default?t:t.default}),g=/[?&#](?:start|t)=([0-9hms]+)/,v=/[?&#]end=([0-9hms]+)/,y=/(\d+)(h|m|s)/g,b=/^\d+$/;function A(e,t){if(e instanceof Array)return;let n=e.match(t);if(n){let e=n[1];if(e.match(y))return function(e){let t=0,n=y.exec(e);for(;null!==n;){let[,r,i]=n;"h"===i&&(t+=3600*parseInt(r,10)),"m"===i&&(t+=60*parseInt(r,10)),"s"===i&&(t+=parseInt(r,10)),n=y.exec(e)}return t}(e);if(b.test(e))return parseInt(e)}}function E(e){return A(e,g)}function w(e){return A(e,v)}function x(){return Math.random().toString(36).substr(2,5)}function T(e){return Object.keys(e).map(t=>`${t}=${e[t]}`).join("&")}function S(e){return window[e]?window[e]:window.exports&&window.exports[e]?window.exports[e]:window.module&&window.module.exports&&window.module.exports[e]?window.module.exports[e]:null}let _={},C=function(e,t,n=null,r=()=>!0,i=f.default){let a=S(t);return a&&r(a)?Promise.resolve(a):new Promise((r,a)=>{if(_[e]){_[e].push({resolve:r,reject:a});return}_[e]=[{resolve:r,reject:a}];let o=t=>{_[e].forEach(e=>e.resolve(t))};if(n){let e=window[n];window[n]=function(){e&&e(),o(S(t))}}i(e,r=>{r?(_[e].forEach(e=>e.reject(r)),_[e]=null):n||o(S(t))})})};function k(e,t){return(0,p.default)(t.config,e.config)}function I(e,...t){let n=[].concat(...t),r={};for(let t of Object.keys(e))-1===n.indexOf(t)&&(r[t]=e[t]);return r}function L(e,...t){if(!this.player||!this.player[e]){let t=`ReactPlayer: ${this.constructor.displayName} player could not call %c${e}%c \u2013 `;return this.player?this.player[e]||(t+="The method was not available"):t+="The player was not available",console.warn(t,"font-weight: bold",""),null}return this.player[e](...t)}function P(e){return"undefined"!=typeof window&&void 0!==window.MediaStream&&e instanceof window.MediaStream}function O(e){return/^blob:/.test(e)}function R(e=document.createElement("video")){let t=!1===/iPhone|iPod/.test(navigator.userAgent);return e.webkitSupportsPresentationMode&&"function"==typeof e.webkitSetPresentationMode&&t}},9612:function(e,t,n){"use strict";n.d(t,{N:function(){return h}});var r=n(7294),i=n(3279),a=n.n(i),o=n(3493),s=n.n(o);let l=(e,t,n,r)=>{switch(t){case"debounce":return a()(e,n,r);case"throttle":return s()(e,n,r);default:return e}},u=e=>{let t=r.useRef(e);return r.useEffect(()=>{t.current=e}),r.useMemo(()=>(...e)=>{var n;return null===(n=t.current)||void 0===n?void 0:n.call(t,...e)},[])},c=e=>{let[t,n]=r.useState((null==e?void 0:e.current)||null);return e&&setTimeout(()=>{e.current!==t&&n(e.current)},0),{refProxy:r.useMemo(()=>new Proxy(e=>
53{e!==t&&n(e)},{get:(e,n)=>"current"===n?t:e[n],set:(e,t,r)=>("current"===t?n(r):e[t]=r,!0)}),[t]),refElement:t,setRefElement:n}},d=(e,t)=>"border-box"===t?{width:e.borderBoxSize[0].inlineSize,height:e.borderBoxSize[0].blockSize}:"content-box"===t?{width:e.contentBoxSize[0].inlineSize,height:e.contentBoxSize[0].blockSize}:{width:e.contentRect.width,height:e.contentRect.height};function h({skipOnMount:e=!1,refreshMode:t,refreshRate:n=1e3,refreshOptions:i,handleWidth:a=!0,handleHeight:o=!0,targetRef:s,observerOptions:h,onResize:f}={}){let p=(0,r.useRef)(e),m=u(f),[g,v]=(0,r.useState)({width:void 0,height:void 0}),{refProxy:y,refElement:b}=c(s),{box:A}=h||{},E=(0,r.useCallback)(e=>{if(!a&&!o)return;if(p.current){p.current=!1;return}let t=(e,t)=>a&&e.width!==t.width||o&&e.height!==t.height;e.forEach(e=>{let n=d(e,A);v(r=>t(r,n)?(null==m||m({width:n.width,height:n.height,entry:e}),n):r)})},[a,o,p,A]),w=(0,r.useCallback)(l(E,t,n,i),[E,t,n,i]);return(0,r.useEffect)(()=>{let e;return b?(e=new window.ResizeObserver(w)).observe(b,h):(g.width||g.height)&&(null==m||m({width:null,height:null,entry:null}),v({width:void 0,height:void 0})),()=>{var t,n;null===(t=null==e?void 0:e.disconnect)||void 0===t||t.call(e),null===(n=w.cancel)||void 0===n||n.call(w)}},[w,b]),Object.assign({ref:y},g)}},4803:function(e,t,n){"use strict";function r(e,t){var n=t.left,r=t.right,i=t.up,a=t.down,o=t.top,s=t.bottom,u=t.mirror,d=t.opposite,h=(n?1:0)|(r?2:0)|(o||a?4:0)|(s||i?8:0)|(u?16:0)|(d?32:0)|(e?64:0);if(c.hasOwnProperty(h))return c[h];if(!u!=!(e&&d)){var f=[r,n,s,o,a,i];n=f[0],r=f[1],o=f[2],s=f[3],i=f[4],a=f[5]}var p=n||r,m=o||s||i||a,g=void 0,v=void 0,y=void 0,b=void 0,A=void 0,E=void 0,w=void 0,x=void 0,T=void 0,S=void 0,_=void 0,C=void 0,k=void 0,I=void 0;return e?(b=p?(r?"-":"")+"20px":0,A=m?(i||s?"":"-")+"10px":"0",E=(a||o?"":"-")+"20px",k=p?(n?"-":"")+"2000px":"0",I=m?(a||o?"-":"")+"2000px":"0"):(v=p?(n?"-":"")+"3000px":"0",y=m?(a||o?"-":"")+"3000px":"0",w=p?(r?"-":"")+"25px":"0",x=m?(i||s?"-":"")+"25px":"0",T=p?(n?"-":"")+"10px":"0",S=m?(a||o?"-":"")+"10px":"0",_=p?(r?"-":"")+"5px":"0",C=m?(i||s?"-":"")+"5px":"0"),g=p||m?e?"\n        20% {\n          transform: translate3d("+b+", "+A+", 0);\n          }\n        "+(m?"40%, 45% {\n            opacity: 1;\n            transform: translate3d(0, "+E+", 0);\n          }":"")+"\n          to {\n            opacity: 0;\n            transform: translate3d("+k+", "+I+", 0);\n        }\n      ":"from, 60%, 75%, 90%, to {\n        animation-timing-function: cubic-bezier(0.215, 0.610, 0.355, 1.000);\n      }\n      from {\n        opacity: 0;\n        transform: translate3d("+v+", "+y+", 0);\n      }\n      60% {\n        opacity: 1;\n        transform: translate3d("+w+", "+x+", 0);\n      }\n      75% {\n        transform: translate3d("+T+", "+S+", 0);\n      }\n      90% {\n        transform: translate3d("+_+", "+C+", 0);\n      }\n      to {\n        transform: none;\n      }":e?"20% {\n          transform: scale3d(.9, .9, .9);\n        }\n        50%, 55% {\n          opacity: 1;\n          transform: scale3d(1.1, 1.1, 1.1);\n        }\n        to {\n          opacity: 0;\n          transform: scale3d(.3, .3, .3);\n      }":"from, 20%, 40%, 60%, 80%, to {\n        animation-timing-function: cubic-bezier(0.215, 0.610, 0.355, 1.000);\n      }\n      0% {\n        opacity: 0;\n        transform: scale3d(.3, .3, .3);\n      }\n      20% {\n        transform: scale3d(1.1, 1.1, 1.1);\n      }\n      40% {\n        transform: scale3d(.9, .9, .9);\n      }\n      60% {\n        opacity: 1;\n        transform: scale3d(1.03, 1.03, 1.03);\n      }\n      80% {\n        transform: scale3d(.97, .97, .97);\n      }\n      to {\n        opacity: 1;\n        transform: scale3d(1, 1, 1);\n      }",c[h]=(0,l.animation)(g),c[h]}function i(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:l.defaults,t=e.children,n=(e.out,e.forever),i=e.timeout,a=e.duration,o=void 0===a?l.defaults.duration:a,u=e.delay,c=void 0===u?l.defaults.delay:u,d=e.count,h=void 0===d?l.defaults.count:d,f=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["children","out","forever","timeout","duration","delay","count"]),p={make:r,duration:void 0===i?o:i,delay:c,forever:n,count:h,style:{animationFillMode:"both"},reverse:f.left};return(0,s.default)(f,p,p,t)}
53Object.defineProperty(t,"__esModule",{value:!0});var a,o=n(5697),s=(a=n(2580))&&a.__esModule?a:{default:a},l=n(1017),u={out:o.bool,left:o.bool,right:o.bool,top:o.bool,bottom:o.bool,mirror:o.bool,opposite:o.bool,duration:o.number,timeout:o.number,delay:o.number,count:o.number,forever:o.bool},c={};i.propTypes=u,t.default=i,e.exports=t.default},9470:function(e,t,n){"use strict";function r(e,t){var n=t.distance,r=t.left,i=t.right,a=t.up,o=t.down,l=t.top,u=t.bottom,d=t.big,h=t.mirror,f=t.opposite,p=(n?n.toString():0)+((r?1:0)|(i?2:0)|(l||o?4:0)|(u||a?8:0)|(h?16:0)|(f?32:0)|(e?64:0)|(d?128:0));if(c.hasOwnProperty(p))return c[p];var m=r||i||a||o||l||u,g=void 0,v=void 0;if(m){if(!h!=!(e&&f)){var y=[i,r,u,l,o,a];r=y[0],i=y[1],l=y[2],u=y[3],a=y[4],o=y[5]}var b=n||(d?"2000px":"100%");g=r?"-"+b:i?b:"0",v=o||l?"-"+b:a||u?b:"0"}return c[p]=(0,s.animation)((e?"to":"from")+" {opacity: 0;"+(m?" transform: translate3d("+g+", "+v+", 0);":"")+"}\n     "+(e?"from":"to")+" {opacity: 1;transform: none;} "),c[p]}function i(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:s.defaults,t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.children,i=(e.out,e.forever),a=e.timeout,o=e.duration,u=void 0===o?s.defaults.duration:o,c=e.delay,d=void 0===c?s.defaults.delay:c,h=e.count,f=void 0===h?s.defaults.count:h,p=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["children","out","forever","timeout","duration","delay","count"]),m={make:r,duration:void 0===a?u:a,delay:d,forever:i,count:f,style:{animationFillMode:"both"},reverse:p.left};return t?(0,l.default)(p,m,m,n):m}Object.defineProperty(t,"__esModule",{value:!0});var a,o=n(5697),s=n(1017),l=(a=n(2580))&&a.__esModule?a:{default:a},u={out:o.bool,left:o.bool,right:o.bool,top:o.bool,bottom:o.bool,big:o.bool,mirror:o.bool,opposite:o.bool,duration:o.number,timeout:o.number,distance:o.string,delay:o.number,count:o.number,forever:o.bool},c={};i.propTypes=u,t.default=i,e.exports=t.default},5415:function(e,t,n){"use strict";function r(e,t){var n=t.left,r=t.right,i=t.top,a=t.bottom,o=t.x,s=t.y,u=t.mirror,d=t.opposite,h=(n?1:0)|(r||s?2:0)|(i||o?4:0)|(a?8:0)|(u?16:0)|(d?32:0)|(e?64:0);if(c.hasOwnProperty(h))return c[h];if(!u!=!(e&&d)){var f=[r,n,a,i,s,o];n=f[0],r=f[1],i=f[2],a=f[3],o=f[4],s=f[5]}var p=void 0;if(o||s||n||r||i||a){var m=o||i||a?(a?"-":"")+"1":"0",g=s||r||n?(n?"-":"")+"1":"0";p=e?"from {\n          transform: perspective(400px);\n        }\n        30% {\n          transform: perspective(400px) rotate3d("+m+", "+g+", 0, -15deg);\n          opacity: 1;\n        }\n        to {\n          transform: perspective(400px) rotate3d("+m+", "+g+", 0, 90deg);\n          opacity: 0;\n        }":"from {\n          transform: perspective(400px) rotate3d("+m+", "+g+", 0, 90deg);\n          animation-timing-function: ease-in;\n          opacity: 0;\n        }\n        40% {\n          transform: perspective(400px) rotate3d("+m+", "+g+", 0, -20deg);\n          animation-timing-function: ease-in;\n        }\n        60% {\n          transform: perspective(400px) rotate3d("+m+", "+g+", 0, 10deg);\n          opacity: 1;\n        }\n        80% {\n          transform: perspective(400px) rotate3d("+m+", "+g+", 0, -5deg);\n        }\n        to {\n          transform: perspective(400px);\n        }"}else p="from {\n          transform: perspective(400px) rotate3d(0, 1, 0, -360deg);\n          animation-timing-function: ease-out;\n          opacity: "+(e?"1":"0")+";\n        }\n        40% {\n          transform: perspective(400px) translate3d(0, 0, 150px) rotate3d(0, 1, 0, -190deg);\n          animation-timing-function: ease-out;\n        }\n        50% {\n          transform: perspective(400px) translate3d(0, 0, 150px) rotate3d(0, 1, 0, -170deg);\n          animation-timing-function: ease-in;\n        }\n        to {\n          transform: perspective(400px);\n          animation-timing-function: ease-in;\n          opacity: "+(e?"0":"1")+";\n        }";return c[h]=(0,l.animation)(p),c[h]}function i(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:l.defaults,t=e.children,n=(e.out,e.forever),i=e.timeout,a=e.duration,o=void 0===a?l.defaults.duration:a,u=e.delay,c=void 0===u?l.defaults.delay:u,d=e.count,h=void 0===d?l.defaults.count:d,f=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["children","out","forever","timeout","duration","delay","count"]),p={make:r,duration:void 0===i?o:i,delay:c,forever:n,count:h,style:{animationFillMode:"both",backfaceVisibility:"visible"}};return(0,s.default)(f,p,p,t)}
53Object.defineProperty(t,"__esModule",{value:!0});var a,o=n(5697),s=(a=n(2580))&&a.__esModule?a:{default:a},l=n(1017),u={out:o.bool,left:o.bool,right:o.bool,top:o.bool,bottom:o.bool,mirror:o.bool,opposite:o.bool,duration:o.number,timeout:o.number,delay:o.number,count:o.number,forever:o.bool},c={};i.propTypes=u,t.default=i,e.exports=t.default},6393:function(e,t,n){"use strict";function r(e,t){var n=t.left,r=t.right,i=t.mirror,a=t.opposite,o=(n?1:0)|(r?2:0)|(i?16:0)|(a?32:0)|(e?64:0);if(c.hasOwnProperty(o))return c[o];if(!i!=!(e&&a)){var s=[r,n];n=s[0],r=s[1]}var u=n?"-100%":r?"100%":"0";return c[o]=(0,l.animation)(e?"from {\n        opacity: 1;\n      }\n      to {\n        transform: translate3d("+u+", 0, 0) skewX(30deg);\n        opacity: 0;\n      }\n    ":"from {\n        transform: translate3d("+u+", 0, 0) skewX(-30deg);\n        opacity: 0;\n      }\n      60% {\n        transform: skewX(20deg);\n        opacity: 1;\n      }\n      80% {\n        transform: skewX(-5deg);\n        opacity: 1;\n      }\n      to {\n        transform: none;\n        opacity: 1;\n      }"),c[o]}function i(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:l.defaults,t=e.children,n=(e.out,e.forever),i=e.timeout,a=e.duration,s=void 0===a?l.defaults.duration:a,u=e.delay,c=void 0===u?l.defaults.delay:u,d=e.count,h=void 0===d?l.defaults.count:d,f=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["children","out","forever","timeout","duration","delay","count"]),p={make:r,duration:void 0===i?s:i,delay:c,forever:n,count:h,style:{animationFillMode:"both"}};return f.left,f.right,f.mirror,f.opposite,(0,o.default)(f,p,p,t)}Object.defineProperty(t,"__esModule",{value:!0});var a,o=(a=n(2580))&&a.__esModule?a:{default:a},s=n(5697),l=n(1017),u={out:s.bool,left:s.bool,right:s.bool,mirror:s.bool,opposite:s.bool,duration:s.number,timeout:s.number,delay:s.number,count:s.number,forever:s.bool},c={};i.propTypes=u,t.default=i,e.exports=t.default},8365:function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e){function t(e){return e?p?{duration:u,delay:c,count:d,forever:h,className:p,style:{}}:g:f?{duration:void 0===r?i:r,delay:a,count:o,forever:s,className:f,style:{}}:m}var n=e.children,r=e.timeout,i=e.duration,a=e.delay,o=e.count,s=e.forever,u=e.durationOut,c=e.delayOut,d=e.countOut,h=e.foreverOut,f=e.effect,p=e.effectOut,m=e.inEffect,g=e.outEffect,v=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["children","timeout","duration","delay","count","forever","durationOut","delayOut","countOut","foreverOut","effect","effectOut","inEffect","outEffect"]);return(0,l.default)(v,t(!1),t(!0),n)}Object.defineProperty(t,"__esModule",{value:!0});var a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o=n(5697),s=n(1017),l=r(n(2580)),u=r(n(9470)),c={in:o.object,out:(0,o.oneOfType)([o.object,(0,o.oneOf)([!1])]),effect:o.string,effectOut:o.string,duration:o.number,timeout:o.number,delay:o.number,count:o.number,forever:o.bool,durationOut:o.number,delayOut:o.number,countOut:o.number,foreverOut:o.bool},d=a({},s.defaults,{durationOut:s.defaults.duration,delayOut:s.defaults.delay,countOut:s.defaults.count,foreverOut:s.defaults.forever,inEffect:(0,u.default)(s.defaults),outEffect:(0,u.default)(a({out:!0},s.defaults))});i.propTypes=c,i.defaultProps=d,t.default=i,e.exports=t.default},5792:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,i="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(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,i=!1,a=void 0;try{for(var o,s=e[Symbol.iterator]();!(r=(o=s.next()).done)&&(n.push(o.value),!t||n.length!==t);r=!0);}catch(e){i=!0,a=e}finally{try{!r&&s.return&&s.return()}finally{if(i)throw a}}return n}(e,t);
53throw TypeError("Invalid attempt to destructure non-iterable instance")},o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},s=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),l=(r=n(7294))&&r.__esModule?r:{default:r},u=n(5697),c=n(1017),d=(0,u.shape)({make:u.func,duration:u.number.isRequired,delay:u.number.isRequired,forever:u.bool,count:u.number.isRequired,style:u.object.isRequired,reverse:u.bool}),h={collapse:u.bool,collapseEl:u.element,cascade:u.bool,wait:u.number,force:u.bool,disabled:u.bool,appear:u.bool,enter:u.bool,exit:u.bool,fraction:u.number,refProp:u.string,innerRef:u.func,onReveal:u.func,unmountOnExit:u.bool,mountOnEnter:u.bool,inEffect:d.isRequired,outEffect:(0,u.oneOfType)([d,(0,u.oneOf)([!1])]).isRequired,ssrReveal:u.bool,collapseOnly:u.bool,ssrFadeout:u.bool},f={transitionGroup:u.object},p=function(e){function t(e,n){!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,t);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,n));return r.isOn=void 0===e.when||!!e.when,r.state={collapse:e.collapse?t.getInitialCollapseStyle(e):void 0,style:{opacity:(!r.isOn||e.ssrReveal)&&e.outEffect?0:void 0}},r.savedChild=!1,r.isShown=!1,c.observerMode?r.handleObserve=r.handleObserve.bind(r):(r.revealHandler=r.makeHandler(r.reveal),r.resizeHandler=r.makeHandler(r.resize)),r.saveRef=r.saveRef.bind(r),r}return function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),s(t,[{key:"saveRef",value:function(e){this.childRef&&this.childRef(e),this.props.innerRef&&this.props.innerRef(e),this.el!==e&&(this.el=e&&"offsetHeight"in e?e:void 0,this.observe(this.props,!0))}},{key:"invisible",value:function(){this&&this.el&&(this.savedChild=!1,this.isShown||(this.setState({hasExited:!0,collapse:this.props.collapse?o({},this.state.collapse,{visibility:"hidden"}):null,style:{opacity:0}}),!c.observerMode&&this.props.collapse&&window.document.dispatchEvent(c.collapseend)))}},{key:"animationEnd",value:function(e,t,n){var r=this,i=n.forever,a=n.count,o=n.delay,s=n.duration;i||(this.animationEndTimeout=window.setTimeout(function(){r&&r.el&&(r.animationEndTimeout=void 0,e.call(r))},o+(s+(t?s:0)*a)))}},{key:"getDimensionValue",value:function(){return this.el.offsetHeight+parseInt(window.getComputedStyle(this.el,null).getPropertyValue("margin-top"),10)+parseInt(window.getComputedStyle(this.el,null).getPropertyValue("margin-bottom"),10)}},{key:"collapse",value:function(e,t,n){var r=n.duration+(t.cascade?n.duration:0),i=this.isOn?this.getDimensionValue():0,a=void 0,o=void 0;if(t.collapseOnly)a=n.duration/3,o=n.delay;else{var s=r>>2,l=s>>1;a=s,o=n.delay+(this.isOn?0:r-s-l),e.style.animationDuration=r-s+(this.isOn?l:-l)+"ms",e.style.animationDelay=n.delay+(this.isOn?s-l:0)+"ms"}return e.collapse={height:i,transition:"height "+a+"ms ease "+o+"ms",overflow:t.collapseOnly?"hidden":void 0},e}},{key:"animate",value:function(e){if(this&&this.el&&(this.unlisten(),this.isShown!==this.isOn)){this.isShown=this.isOn;var t=!this.isOn&&e.outEffect,n=e[t?"outEffect":"inEffect"],r="style"in n&&n.style.animationName||void 0,i=void 0;e.collapseOnly?i={hasAppeared:!0,hasExited:!1,style:{opacity:1}}:((e.outEffect||this.isOn)&&n.make&&(r=n.make),i={hasAppeared:!0,hasExited:!1,collapse:void 0,style:o({},n.style,{animationDuration:n.duration+"ms",animationDelay:n.delay+"ms",animationIterationCount:n.forever?"infinite":n.count,opacity:1,animationName:r}),className:n.className}),this.setState(e.collapse?this.collapse(i,e,n):i),t?(this.savedChild=l.default.cloneElement(this.getChild()),this.animationEnd(this.invisible,e.cascade,n)):this.savedChild=!1,this.onReveal(e)}}},{key:"onReveal",value:function(e){e.onReveal&&this.isOn&&(this.onRevealTimeout&&(this.onRevealTimeout=window.clearTimeout(this.onRevealTimeout)),e.wait?this.onRevealTimeout=window.setTimeout(e.onReveal,e.wait):e.onReveal())}},{key:"componentWillUnmount",value:function(){this.unlisten(),c.ssr&&(0,c.disableSsr)()}},{key:"handleObserve",value:function(e,t){a(e,1)[0].intersectionRatio>0&&(t.disconnect(),this.observer=null,this.reveal(this.props,!0))}},{key:"observe",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(this.el&&c.observerMode){if(this.observer){if(!t)return;this.observer.disconnect()}else if(t)return;this.observer=new IntersectionObserver(this.handleObserve,{threshold:e.fraction}),this.observer.observe(this.el)}}},{key:"reveal",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];c.globalHide||(0,c.hideAll)(),this&&this.el&&(e||(e=this.props),c.ssr&&(0,c.disableSsr)(),this.isOn&&this.isShown&&void 0!==e.spy?(this.isShown=!1,this.setState({style:{}}),window.setTimeout(function(){return t.reveal(e)},200)):n||this.inViewport(e)||e.force?this.animate(e):c.observerMode?this.observe(e):this.listen())}},{key:"componentDidMount",value:function(){var e=this;if(this.el&&!this.props.disabled){this.props.collapseOnly||("make"in this.props.inEffect&&this.props.inEffect.make(!1,this.props),void 0!==this.props.when&&this.props.outEffect&&"make"in this.props.outEffect&&this.props.outEffect.make(!0,this.props));var n=this.context.transitionGroup,r=n&&!n.isMounting?!("enter"in this.props&&!1===this.props.enter):this.props.appear;return this.isOn&&((void 0!==this.props.when||void 0!==this.props.spy)&&
53!r||c.ssr&&!c.fadeOutEnabled&&!this.props.ssrFadeout&&this.props.outEffect&&!this.props.ssrReveal&&t.getTop(this.el)<window.pageYOffset+window.innerHeight)?(this.isShown=!0,this.setState({hasAppeared:!0,collapse:this.props.collapse?{height:this.getDimensionValue()}:this.state.collapse,style:{opacity:1}}),void this.onReveal(this.props)):c.ssr&&(c.fadeOutEnabled||this.props.ssrFadeout)&&this.props.outEffect&&t.getTop(this.el)<window.pageYOffset+window.innerHeight?(this.setState({style:{opacity:0,transition:"opacity 1000ms 1000ms"}}),void window.setTimeout(function(){return e.reveal(e.props,!0)},2e3)):void(this.isOn&&(this.props.force?this.animate(this.props):this.reveal(this.props)))}}},{key:"cascade",value:function(e){var t=this,n=void 0;n="string"==typeof e?e.split("").map(function(e,t){return l.default.createElement("span",{key:t,style:{display:"inline-block",whiteSpace:"pre"}},e)}):l.default.Children.toArray(e);var r=this.props[this.isOn||!this.props.outEffect?"inEffect":"outEffect"],a=r.duration,s=r.reverse,u=n.length,d=2*a;this.props.collapse&&(a=(d=parseInt(this.state.style.animationDuration,10))/2);var h=s?u:0;return n.map(function(e){return"object"===(void 0===e?"undefined":i(e))&&e?l.default.cloneElement(e,{style:o({},e.props.style,t.state.style,{animationDuration:Math.round((0,c.cascade)(s?h--:h++,0,u,a,d))+"ms"})}):e})}},{key:"componentWillReceiveProps",value:function(e){if(void 0!==e.when&&(this.isOn=!!e.when),e.fraction!==this.props.fraction&&this.observe(e,!0),!this.isOn&&e.onExited&&"exit"in e&&!1===e.exit)return void e.onExited();e.disabled||(e.collapse&&!this.props.collapse&&(this.setState({style:{},collapse:t.getInitialCollapseStyle(e)}),this.isShown=!1),e.when===this.props.when&&e.spy===this.props.spy||this.reveal(e),this.onRevealTimeout&&!this.isOn&&(this.onRevealTimeout=window.clearTimeout(this.onRevealTimeout)))}},{key:"getChild",value:function(){if(this.savedChild&&!this.props.disabled)return this.savedChild;if("object"===i(this.props.children)){var e=l.default.Children.only(this.props.children);return"type"in e&&"string"==typeof e.type||"ref"!==this.props.refProp?e:l.default.createElement("div",null,e)}return l.default.createElement("div",null,this.props.children)}},{key:"render",value:function(){var e,t,n,r=void 0;r=this.state.hasAppeared?!this.props.unmountOnExit||!this.state.hasExited||this.isOn:!this.props.mountOnEnter||this.isOn;var i=this.getChild();"function"==typeof i.ref&&(this.childRef=i.ref);var a=!1,s=i.props,u=s.style,d=s.className,h=s.children,f=this.props.disabled?d:(this.props.outEffect?c.namespace:"")+(this.state.className?" "+this.state.className:"")+(d?" "+d:"")||void 0,p=void 0;"function"==typeof this.state.style.animationName&&(this.state.style.animationName=this.state.style.animationName(!this.isOn,this.props)),this.props.cascade&&!this.props.disabled&&h&&this.state.style.animationName?(a=this.cascade(h),p=o({},u,{opacity:1})):p=this.props.disabled?u:o({},u,this.state.style);var m=o({},this.props.props,(e={className:f,style:p},t=this.props.refProp,n=this.saveRef,t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e)),g=l.default.cloneElement(i,m,r?a||h:void 0);return void 0!==this.props.collapse?this.props.collapseEl?l.default.cloneElement(this.props.collapseEl,{style:o({},this.props.collapseEl.style,this.props.disabled?void 0:this.state.collapse),children:g}):l.default.createElement("div",{style:this.props.disabled?void 0:this.state.collapse,children:g}):g}},{key:"makeHandler",value:function(e){var t=this,n=function(){e.call(t,t.props),t.ticking=!1};return function(){t.ticking||((0,c.raf)(n),t.ticking=!0)}}},{key:"inViewport",value:function(e){if(!this.el||window.document.hidden)return!1;var n=this.el.offsetHeight,r=window.pageYOffset-t.getTop(this.el),i=Math.min(n,window.innerHeight)*(c.globalHide?e.fraction:0);return r>i-window.innerHeight&&r<n-i}},{key:"resize",value:function(e){this&&this.el&&this.isOn&&this.inViewport(e)&&(this.unlisten(),this.isShown=this.isOn,this.setState({hasExited:!this.isOn,hasAppeared:!0,collapse:void 0,style:{opacity:this.isOn||!e.outEffect?1:0}}),this.onReveal(e))}},{key:"listen",value:function(){c.observerMode||this.isListener||(this.isListener=!0,window.addEventListener("scroll",this.revealHandler,{passive:!0}),window.addEventListener("orientationchange",this.revealHandler,{passive:!0}),window.document.addEventListener("visibilitychange",this.revealHandler,{passive:!0}),window.document.addEventListener("collapseend",this.revealHandler,{passive:!0}),window.addEventListener("resize",this.resizeHandler,{passive:!0}))}},{key:"unlisten",value:function(){!c.observerMode&&this.isListener&&(window.removeEventListener("scroll",this.revealHandler,{passive:!0}),window.removeEventListener("orientationchange",this.revealHandler,{passive:!0}),window.document.removeEventListener("visibilitychange",this.revealHandler,{passive:!0}),window.document.removeEventListener("collapseend",this.revealHandler,{passive:!0}),window.removeEventListener("resize",this.resizeHandler,{passive:!0}),this.isListener=!1),this.onRevealTimeout&&(this.onRevealTimeout=window.clearTimeout(this.onRevealTimeout)),this.animationEndTimeout&&(this.animationEndTimeout=window.clearTimeout(this.animationEndTimeout))}}],[{key:"getInitialCollapseStyle",value:function(e){return{height:0,visibility:e.when?void 0:"hidden"}}},{key:"getTop",value:function(e){for(;void 0===e.offsetTop;)e=e.parentNode;for(var t=e.offsetTop;e.offsetParent;t+=e.offsetTop)e=e.offsetParent;return t}}]),t}(l.default.Component);p.propTypes=h,p.defaultProps={fraction:.2,refProp:"ref"},p.contextTypes=f,p.displayName="RevealBase",t.default=p,e.exports=t.default},5396:function(e,t,n){"use strict";
53function r(e,t){var n=t.left,r=t.right,i=t.up,a=t.down,o=t.top,s=t.bottom,u=t.big,d=t.mirror,h=t.opposite,f=(n?1:0)|(r?2:0)|(o||a?4:0)|(s||i?8:0)|(d?16:0)|(h?32:0)|(e?64:0)|(u?128:0);if(c.hasOwnProperty(f))return c[f];if(!d!=!(e&&h)){var p=[r,n,s,o,a,i];n=p[0],r=p[1],o=p[2],s=p[3],i=p[4],a=p[5]}var m=u?"2000px":"100%",g=n?"-"+m:r?m:"0",v=a||o?"-"+m:i||s?m:"0";return c[f]=(0,l.animation)("\n    "+(e?"to":"from")+" {opacity: 0;transform: translate3d("+g+", "+v+", 0) rotate3d(0, 0, 1, -120deg);}\n	  "+(e?"from":"to")+" {opacity: 1;transform: none}\n  "),c[f]}function i(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:l.defaults,t=e.children,n=(e.out,e.forever),i=e.timeout,a=e.duration,s=void 0===a?l.defaults.duration:a,u=e.delay,c=void 0===u?l.defaults.delay:u,d=e.count,h=void 0===d?l.defaults.count:d,f=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["children","out","forever","timeout","duration","delay","count"]),p={make:r,duration:void 0===i?s:i,delay:c,forever:n,count:h,style:{animationFillMode:"both"}};return(0,o.default)(f,p,p,t)}Object.defineProperty(t,"__esModule",{value:!0});var a,o=(a=n(2580))&&a.__esModule?a:{default:a},s=n(5697),l=n(1017),u={out:s.bool,left:s.bool,right:s.bool,top:s.bool,bottom:s.bool,big:s.bool,mirror:s.bool,opposite:s.bool,duration:s.number,timeout:s.number,delay:s.number,count:s.number,forever:s.bool},c={};i.propTypes=u,t.default=i,e.exports=t.default},3007:function(e,t,n){"use strict";function r(e,t){var n=t.left,r=t.right,i=t.up,a=t.down,o=t.top,s=t.bottom,u=t.mirror,d=t.opposite,h=(n?1:0)|(r?2:0)|(o||a?4:0)|(s||i?8:0)|(u?16:0)|(d?32:0)|(e?64:0);if(c.hasOwnProperty(h))return c[h];if(!u!=!(e&&d)){var f=[r,n,s,o,a,i];n=f[0],r=f[1],o=f[2],s=f[3],i=f[4],a=f[5]}var p="-200deg",m="center";return(a||o)&&n&&(p="-45deg"),((a||o)&&r||(i||s)&&n)&&(p="45deg"),(i||s)&&r&&(p="-90deg"),(n||r)&&(m=(n?"left":"right")+" bottom"),c[h]=(0,l.animation)("\n    "+(e?"to":"from")+" { opacity: 0; transform-origin: "+m+"; transform: rotate3d(0, 0, 1, "+p+");}\n    "+(e?"from":"to")+" { opacity: 1; transform-origin: "+m+"; transform: none;}\n  "),c[h]}function i(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:l.defaults,t=e.children,n=(e.out,e.forever),i=e.timeout,a=e.duration,o=void 0===a?l.defaults.duration:a,u=e.delay,c=void 0===u?l.defaults.delay:u,d=e.count,h=void 0===d?l.defaults.count:d,f=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["children","out","forever","timeout","duration","delay","count"]),p={make:r,duration:void 0===i?o:i,delay:c,forever:n,count:h,style:{animationFillMode:"both"}};return(0,s.default)(f,p,p,t)}Object.defineProperty(t,"__esModule",{value:!0});var a,o=n(5697),s=(a=n(2580))&&a.__esModule?a:{default:a},l=n(1017),u={out:o.bool,left:o.bool,right:o.bool,top:o.bool,bottom:o.bool,mirror:o.bool,opposite:o.bool,duration:o.number,timeout:o.number,delay:o.number,count:o.number,forever:o.bool},c={};i.propTypes=u,t.default=i,e.exports=t.default},3327:function(e,t,n){"use strict";function r(e,t){var n=t.left,r=t.right,i=t.up,a=t.down,o=t.top,s=t.bottom,u=t.big,d=t.mirror,h=t.opposite,f=(n?1:0)|(r?2:0)|(o||a?4:0)|(s||i?8:0)|(d?16:0)|(h?32:0)|(e?64:0)|(u?128:0);if(c.hasOwnProperty(f))return c[f];var p=n||r||i||a||o||s,m=void 0,g=void 0;if(p){if(!d!=!(e&&h)){var v=[r,n,s,o,a,i];n=v[0],r=v[1],o=v[2],s=v[3],i=v[4],a=v[5]}var y=u?"2000px":"100%";m=n?"-"+y:r?y:"0",g=a||o?"-"+y:i||s?y:"0"}return c[f]=(0,l.animation)((e?"to":"from")+" {"+(p?" transform: translate3d("+m+", "+g+", 0);":"")+"}\n     "+(e?"from":"to")+" {transform: none;} "),c[f]}function i(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:l.defaults,t=e.children,n=(e.out,e.forever),i=e.timeout,a=e.duration,o=void 0===a?l.defaults.duration:a,u=e.delay,c=void 0===u?l.defaults.delay:u,d=e.count,h=void 0===d?l.defaults.count:d,f=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["children","out","forever","timeout","duration","delay","count"]),p={make:r,duration:void 0===i?o:i,delay:c,forever:n,count:h,style:{animationFillMode:"both"},reverse:f.left};return(0,s.default)(f,p,p,t)}
53Object.defineProperty(t,"__esModule",{value:!0});var a,o=n(5697),s=(a=n(2580))&&a.__esModule?a:{default:a},l=n(1017),u={out:o.bool,left:o.bool,right:o.bool,top:o.bool,bottom:o.bool,big:o.bool,mirror:o.bool,opposite:o.bool,duration:o.number,timeout:o.number,delay:o.number,count:o.number,forever:o.bool},c={};i.propTypes=u,t.default=i,e.exports=t.default},4546:function(e,t,n){"use strict";function r(e,t){var n=t.left,r=t.right,i=t.up,a=t.down,o=t.top,s=t.bottom,u=t.mirror,d=t.opposite,h=(n?1:0)|(r?2:0)|(o||a?4:0)|(s||i?8:0)|(u?16:0)|(d?32:0)|(e?64:0);if(c.hasOwnProperty(h))return c[h];if(!u!=!(e&&d)){var f=[r,n,s,o,a,i];n=f[0],r=f[1],o=f[2],s=f[3],i=f[4],a=f[5]}var p=n||r,m=o||s||i||a,g=void 0;return g=p||m?e?"40% {\n          opacity: 1;\n          transform: scale3d(.475, .475, .475) translate3d("+(p?(n?"":"-")+"42px":"0")+", "+(m?(a||o?"-":"")+"60px":"0")+", 0);\n        }\n        to {\n          opacity: 0;\n          transform: scale(.1) translate3d("+(p?(r?"":"-")+"2000px":"0")+", "+(m?(i||s?"":"-")+"2000px":"0")+", 0);\n          transform-origin: "+(m?"center bottom":(n?"left":"right")+" center")+";\n        }":"from {\n          opacity: 0;\n          transform: scale3d(.1, .1, .1) translate3d("+(p?(n?"-":"")+"1000px":"0")+", "+(m?(a||o?"-":"")+"1000px":"0")+", 0);\n          animation-timing-function: cubic-bezier(0.550, 0.055, 0.675, 0.190);\n        }\n        60% {\n          opacity: 1;\n          transform: scale3d(.475, .475, .475) translate3d("+(p?(r?"-":"")+"10px":"0")+", "+(m?(i||s?"-":"")+"60px":"0")+", 0);\n          animation-timing-function: cubic-bezier(0.175, 0.885, 0.320, 1);\n        }":(e?"to":"from")+" {opacity: 0; transform: scale3d(.1, .1, .1);} "+(e?"from":"to")+" { opacity: 1; transform: none;}",c[h]=(0,l.animation)(g),c[h]}function i(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:l.defaults,t=e.children,n=(e.out,e.forever),i=e.timeout,a=e.duration,o=void 0===a?l.defaults.duration:a,u=e.delay,c=void 0===u?l.defaults.delay:u,d=e.count,h=void 0===d?l.defaults.count:d,f=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["children","out","forever","timeout","duration","delay","count"]),p={make:r,duration:void 0===i?o:i,delay:c,forever:n,count:h,style:{animationFillMode:"both"},reverse:f.left};return(0,s.default)(f,p,p,t)}Object.defineProperty(t,"__esModule",{value:!0});var a,o=n(5697),s=(a=n(2580))&&a.__esModule?a:{default:a},l=n(1017),u={out:o.bool,left:o.bool,right:o.bool,top:o.bool,bottom:o.bool,mirror:o.bool,opposite:o.bool,duration:o.number,timeout:o.number,delay:o.number,count:o.number,forever:o.bool},c={};i.propTypes=u,t.default=i,e.exports=t.default},1017:function(e,t){"use strict";function n(e){try{return f.insertRule(e,f.cssRules.length)}catch(e){console.warn("react-reveal - animation failed")}}function r(){u||(t.globalHide=u=!0,window.removeEventListener("scroll",r,!0),n("."+i+" { opacity: 0; }"),window.removeEventListener("orientationchange",r,!0),window.document.removeEventListener("visibilitychange",r))}Object.defineProperty(t,"__esModule",{value:!0}),t.insertRule=n,t.cascade=function(e,t,n,r,i){var a=Math.log(r);return Math.exp(a+(Math.log(i)-a)/(n-t)*(e-t))},t.animation=function(e){if(!f)return"";var t="@keyframes "+(p+d)+"{"+e+"}",n=h[e];return n?""+p+n:(f.insertRule(t,f.cssRules.length),h[e]=d,""+p+d++)},t.hideAll=r,t.default=function(e){var n=e.ssrFadeout;t.fadeOutEnabled=n};var i=t.namespace="react-reveal",a=(t.defaults={duration:1e3,delay:0,count:1},t.ssr=!0),o=t.observerMode=!1,s=t.raf=function(e){return window.setTimeout(e,66)},l=t.disableSsr=function(){return t.ssr=a=!1},u=(t.fadeOutEnabled=!1,t.ssrFadeout=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return t.fadeOutEnabled=e},t.globalHide=!1),c=(t.ie10=!1,t.collapseend=void 0),d=1,h={},f=!1,p=i+"-"+Math.floor(1e15*Math.random())+"-";if("undefined"!=typeof window&&"nodejs"!==window.name&&window.document&&"undefined"!=typeof navigator){t.observerMode=o="IntersectionObserver"in window&&"IntersectionObserverEntry"in window&&"intersectionRatio"in window.IntersectionObserverEntry.prototype&&/\{\s*\[native code\]\s*\}/.test(""+IntersectionObserver),t.raf=s=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||s,t.ssr=a=window.document.querySelectorAll("div[data-reactroot]").length>0,-1!==navigator.appVersion.indexOf("MSIE 10")&&(t.ie10=!0),a&&"performance"in window&&"timing"in window.performance&&"domContentLoadedEventEnd"in window.performance.timing&&window.performance.timing.domLoading&&Date.now()-window.performance.timing.domLoading<300&&(t.ssr=a=!1),a&&window.setTimeout(l,1500),o||(t.collapseend=c=document.createEvent("Event"),c.initEvent("collapseend",!0,!0));var m=document.createElement("style");document.head.appendChild(m),m.sheet&&m.sheet.cssRules&&m.sheet.insertRule&&(f=m.sheet,window.addEventListener("scroll",r,!0),window.addEventListener("orientationchange",r,!0),window.document.addEventListener("visibilitychange",r))}},8367:function(e,t,n){"use strict";n(8365);var r=n(9470);Object.defineProperty(t,"pT",{enumerable:!0,get:function(){return(r&&r.__esModule?r:{default:r}).default}}),n(4803),n(5396),n(3327),n(5415),n(3007),n(6393),n(4546)},2580:function(e,t,n){"use strict";
53function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};t.default=function(e,t,n,r){return"in"in e&&(e.when=e.in),2>a.default.Children.count(r)?a.default.createElement(o.default,i({},e,{inEffect:t,outEffect:n,children:r})):(r=a.default.Children.map(r,function(r){return a.default.createElement(o.default,i({},e,{inEffect:t,outEffect:n,children:r}))}),"Fragment"in a.default?a.default.createElement(a.default.Fragment,null,r):a.default.createElement("span",null,r))};var a=r(n(7294)),o=r(n(5792));e.exports=t.default},8168:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return i}});let r="react";class i{constructor(){this.setDebug(!1),this.tcContainers=[],this.captureEvent=this.triggerEvent}static getInstance(){return i.instance||(i.instance=new i),i.instance}checkNested(e,...t){return null!=t.reduce((e,t)=>e&&e[t],e)}waitForGlobals(...e){return new Promise(t=>{let n=()=>{e.every(e=>{let t=e.split(".");return this.checkNested(window,...t)})?t():setTimeout(n,500)};n()})}addContainer(e,t,n){if(!e)throw Error(`[${r}-tag-commander]You should define the container id.`);if("string"!=typeof e)throw Error(`[${r}-tag-commander]The container id should be a string.`);if(!t||"string"!=typeof t)throw Error(`[${r}-tag-commander]Invalid container URL.`);return new Promise(r=>{let i=document.createElement("script");i.onload=()=>r(),i.setAttribute("type","text/javascript"),i.setAttribute("src",t),i.setAttribute("id",e);let a=n;n&&"string"==typeof n&&null!=document.getElementsByTagName(n.toLowerCase())[0]||(this.logger.warn("The script will be placed in the head by default."),a="head"),this.tcContainers.push({id:e,uri:t,node:a}),document.getElementsByTagName(a.toLowerCase())[0].appendChild(i)})}removeContainer(e){let t=document.getElementById(e),n=this.tcContainers.slice(0);for(let r=0;r<n.length;r++)if(n[r].id===e){let e=n[r].node.toLowerCase(),i=document.getElementsByTagName(e)[0];i&&t&&t.parentNode===i&&i.removeChild(t),this.tcContainers.splice(r,1)}}setDebug(e){e?this.logger=console:this.logger={log:function(){},warn:function(){},error:function(){}}}async setTcVar(e,t){await this.waitForGlobals("tc_vars"),this.logger.log("setTcVar",e,t),window.tc_vars[e]=t}setTcVars(e){this.logger.log("setTcVars",e);let t=Object.keys(e),n=[];for(let r=0,i=t.length;r<i;r++)n.push(this.setTcVar(t[r],e[t[r]]));return Promise.all(n)}getTcVar(e){return this.logger.log("getTcVar",e),!!window.tc_vars&&null!=window.tc_vars[e]&&window.tc_vars[e]}removeTcVar(e){this.logger.log("removeTcVar",e),window.tc_vars&&null!=window.tc_vars[e]&&delete window.tc_vars[e]}async reloadAllContainers(e={}){await this.waitForGlobals("tC.container"),this.logger.log("Reload all containers ",e),window.tC.container.reload(e)}async reloadContainer(e,t,n={}){this.logger.log("Reload container ids: "+e+" idc: "+t,"object"==typeof n?"with options: "+n:""),await this.waitForGlobals("tC.container_"+e+"_"+t),window.tC["container_"+e+"_"+t].reload(n)}async triggerEvent(e,t,n,r=!1){await this.waitForGlobals("tC.event."+e),this.logger.log("triggerEvent",e,t,n),window.tC.event[e](t,n)}async trackPageLoad(e={}){e.tcVars&&await this.setTcVars(e.tcVars),await this.reloadAllContainers(),e.event&&await this.triggerEvent(e.event.label,e.event.context||this,e.variables||{})}}},4930:function(e,t,n){"use strict";n.d(t,{Iv:function(){return ef},ZP:function(){return uV}});var r=n(7294),i=n(4155),a=n.n(i),o=n(3935),s="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==n.g?n.g:"undefined"!=typeof self?self:{},l={exports:{}},u={exports:{}},c={},d="function"==typeof Symbol&&Symbol.for,h=d?Symbol.for("react.element"):60103,f=d?Symbol.for("react.portal"):60106,p=d?Symbol.for("react.fragment"):60107,m=d?Symbol.for("react.strict_mode"):60108,g=d?Symbol.for("react.profiler"):60114,v=d?Symbol.for("react.provider"):60109,y=d?Symbol.for("react.context"):60110,b=d?Symbol.for("react.async_mode"):60111,A=d?Symbol.for("react.concurrent_mode"):60111,E=d?Symbol.for("react.forward_ref"):60112,w=d?Symbol.for("react.suspense"):60113,x=d?Symbol.for("react.suspense_list"):60120,T=d?Symbol.for("react.memo"):60115,S=d?Symbol.for("react.lazy"):60116,_=d?Symbol.for("react.block"):60121,C=d?Symbol.for("react.fundamental"):60117,k=d?Symbol.for("react.responder"):60118,I=d?Symbol.for("react.scope"):60119;function L(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case h:switch(e=e.type){case b:case A:case p:case g:case m:case w:return e;default:switch(e=e&&e.$$typeof){case y:case E:case S:case T:case v:return e;default:return t}}case f:return t}}}function P(e){return L(e)===A}c.AsyncMode=b,c.ConcurrentMode=A,c.ContextConsumer=y,c.ContextProvider=v,c.Element=h,c.ForwardRef=E,c.Fragment=p,c.Lazy=S,c.Memo=T,c.Portal=f,c.Profiler=g,c.StrictMode=m,c.Suspense=w,c.isAsyncMode=function(e){return P(e)||L(e)===b},c.isConcurrentMode=P,c.isContextConsumer=function(e){return L(e)===y},c.isContextProvider=function(e){return L(e)===v},c.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===h},c.isForwardRef=function(e){return L(e)===E},c.isFragment=function(e){return L(e)===p},c.isLazy=function(e){return L(e)===S},c.isMemo=function(e){return L(e)===T},c.isPortal=function(e){return L(e)===f},c.isProfiler=function(e){return L(e)===g},c.isStrictMode=function(e){return L(e)===m},c.isSuspense=function(e){return L(e)===w},c.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===p||e===A||e===g||e===m||e===w||e===x||"object"==typeof e&&null!==e&&(e.$$typeof===S||e.$$typeof===T||e.$$typeof===v||e.$$typeof===y||e.$$typeof===E||e.$$typeof===C||e.$$typeof===k||e.$$typeof===I||e.$$typeof===_)},c.typeOf=L;var O={};"production"!==a().env.NODE_ENV&&function(){var e="function"==typeof Symbol&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,a=e?Symbol.for("react.profiler"):60114,o=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,u=e?Symbol.for("react.concurrent_mode"):60111,c=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,h=e?Symbol.for("react.suspense_list"):60120,f=e?Symbol.for("react.memo"):60115,p=e?Symbol.for("react.lazy"):60116,m=e?Symbol.for("react.block"):60121,g=e?Symbol.for("react.fundamental"):60117,v=e?Symbol.for("react.responder"):60118,y=e?Symbol.for("react.scope"):60119;function b(e){if("object"==typeof e&&null!==e){var h=e.$$typeof;switch(h){case t:var m=e.type;switch(m){case l:case u:case r:case a:case i:case d:return m;default:var g=m&&m.$$typeof;switch(g){case s:case c:case p:case f:case o:return g;default:return h}}case n:return h}}}var A=!1;function E(e){return b(e)===u}O.AsyncMode=l,O.ConcurrentMode=u,O.ContextConsumer=s,O.ContextProvider=o,O.Element=t,O.ForwardRef=c,O.Fragment=r,O.Lazy=p,O.Memo=f,O.Portal=n,O.Profiler=a,O.StrictMode=i,O.Suspense=
53d,O.isAsyncMode=function(e){return A||(A=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),E(e)||b(e)===l},O.isConcurrentMode=E,O.isContextConsumer=function(e){return b(e)===s},O.isContextProvider=function(e){return b(e)===o},O.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},O.isForwardRef=function(e){return b(e)===c},O.isFragment=function(e){return b(e)===r},O.isLazy=function(e){return b(e)===p},O.isMemo=function(e){return b(e)===f},O.isPortal=function(e){return b(e)===n},O.isProfiler=function(e){return b(e)===a},O.isStrictMode=function(e){return b(e)===i},O.isSuspense=function(e){return b(e)===d},O.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===r||e===u||e===a||e===i||e===d||e===h||"object"==typeof e&&null!==e&&(e.$$typeof===p||e.$$typeof===f||e.$$typeof===o||e.$$typeof===s||e.$$typeof===c||e.$$typeof===g||e.$$typeof===v||e.$$typeof===y||e.$$typeof===m)},O.typeOf=b}(),"production"===a().env.NODE_ENV?u.exports=c:u.exports=O/*
54object-assign
55(c) Sindre Sorhus
56@license MIT
57*/;var R=Object.getOwnPropertySymbols,D=Object.prototype.hasOwnProperty,N=Object.prototype.propertyIsEnumerable,M=!function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map(function(e){return t[e]}).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach(function(e){r[e]=e}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?function(e,t){for(var n,r,i=function(e){if(null==e)throw TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),a=1;a<arguments.length;a++){for(var o in n=Object(arguments[a]))D.call(n,o)&&(i[o]=n[o]);if(R){r=R(n);for(var s=0;s<r.length;s++)N.call(n,r[s])&&(i[r[s]]=n[r[s]])}}return i}:Object.assign,j="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",F=function(){};if("production"!==a().env.NODE_ENV){var B=j,U={},V=Function.call.bind(Object.prototype.hasOwnProperty);F=function(e){var t="Warning: "+e;"undefined"!=typeof console&&console.error(t);try{throw Error(t)}catch(e){}}}function z(e,t,n,r,i){if("production"!==a().env.NODE_ENV){for(var o in e)if(V(e,o)){var s;try{if("function"!=typeof e[o]){var l=Error((r||"React class")+": "+n+" type `"+o+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[o]+"`.");throw l.name="Invariant Violation",l}s=e[o](t,o,r,n,null,B)}catch(e){s=e}if(!s||s instanceof Error||F((r||"React class")+": type specification of "+n+" `"+o+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof s+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),s instanceof Error&&!(s.message in U)){U[s.message]=!0;var u=i?i():"";F("Failed "+n+" type: "+s.message+(null!=u?u:""))}}}}z.resetWarningCache=function(){"production"!==a().env.NODE_ENV&&(U={})};var q=u.exports,Q=Function.call.bind(Object.prototype.hasOwnProperty),H=function(){};function G(){return null}function K(){}function $(){}if("production"!==a().env.NODE_ENV&&(H=function(e){var t="Warning: "+e;"undefined"!=typeof console&&console.error(t);try{throw Error(t)}catch(e){}}),$.resetWarningCache=K,"production"!==a().env.NODE_ENV){var W=u.exports;l.exports=function(e,t){var n="function"==typeof Symbol&&Symbol.iterator,r="<<anonymous>>",i={array:l("array"),bool:l("boolean"),func:l("function"),number:l("number"),object:l("object"),string:l("string"),symbol:l("symbol"),any:s(G),arrayOf:function(e){return s(function(t,n,r,i,a){if("function"!=typeof e)return new o("Property `"+a+"` of component `"+r+"` has invalid PropType notation inside arrayOf.");var s=t[n];if(!Array.isArray(s))return new o("Invalid "+i+" `"+a+"` of type `"+u(s)+"` supplied to `"+r+"`, expected an array.");for(var l=0;l<s.length;l++){var c=e(s,l,r,i,a+"["+l+"]",j);if(c instanceof Error)return c}return null})},element:s(function(t,n,r,i,a){var s=t[n];return e(s)?null:new o("Invalid "+i+" `"+a+"` of type `"+u(s)+"` supplied to `"+r+"`, expected a single ReactElement.")}),elementType:s(function(e,t,n,r,i){var a=e[t];return q.isValidElementType(a)?null:new o("Invalid "+r+" `"+i+"` of type `"+u(a)+"` supplied to `"+n+"`, expected a single ReactElement type.")}),instanceOf:function(e){return s(function(t,n,i,a,s){if(!(t[n]instanceof e)){var l,u=e.name||r;return new o("Invalid "+a+" `"+s+"` of type `"+((l=t[n]).constructor&&l.constructor.name?l.constructor.name:r)+"` supplied to `"+i+"`, expected instance of `"+u+"`.")}return null})},node:s(function(t,r,i,a,s){return!function t(r){switch(typeof r){case"number":case"string":case"undefined":return!0;case"boolean":return!r;case"object":if(Array.isArray(r))return r.every(t);if(null===r||e(r))return!0;var i=function(e){var t=e&&(n&&e[n]||e["@@iterator"]);if("function"==typeof t)return t}(r);if(!i)return!1;var a,o=i.call(r);if(i!==r.entries){for(;!(a=o.next()).done;)if(!t(a.value))return!1}else for(;!(a=o.next()).done;){var s=a.value;if(s&&!t(s[1]))return!1}return!0;default:return!1}}(t[r])?new o("Invalid "+a+" `"+s+"` supplied to `"+i+"`, expected a ReactNode."):null}),objectOf:function(e){return s(function(t,n,r,i,a){if("function"!=typeof e)return new o("Property `"+a+"` of component `"+r+"` has invali
57d PropType notation inside objectOf.");var s=t[n],l=u(s);if("object"!==l)return new o("Invalid "+i+" `"+a+"` of type `"+l+"` supplied to `"+r+"`, expected an object.");for(var c in s)if(Q(s,c)){var d=e(s,c,r,i,a+"."+c,j);if(d instanceof Error)return d}return null})},oneOf:function(e){return Array.isArray(e)?s(function(t,n,r,i,a){for(var s,l=t[n],u=0;u<e.length;u++)if(l===(s=e[u])?0!==l||1/l==1/s:l!=l&&s!=s)return null;var d=JSON.stringify(e,function(e,t){return"symbol"===c(t)?String(t):t});return new o("Invalid "+i+" `"+a+"` of value `"+String(l)+"` supplied to `"+r+"`, expected one of "+d+".")}):("production"!==a().env.NODE_ENV&&H(arguments.length>1?"Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).":"Invalid argument supplied to oneOf, expected an array."),G)},oneOfType:function(e){if(!Array.isArray(e))return"production"!==a().env.NODE_ENV&&H("Invalid argument supplied to oneOfType, expected an instance of array."),G;for(var t=0;t<e.length;t++){var n=e[t];if("function"!=typeof n)return H("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+function(e){var t=c(e);switch(t){case"array":case"object":return"an "+t;case"boolean":case"date":case"regexp":return"a "+t;default:return t}}(n)+" at index "+t+"."),G}return s(function(t,n,r,i,a){for(var s=0;s<e.length;s++)if(null==(0,e[s])(t,n,r,i,a,j))return null;return new o("Invalid "+i+" `"+a+"` supplied to `"+r+"`.")})},shape:function(e){return s(function(t,n,r,i,a){var s=t[n],l=u(s);if("object"!==l)return new o("Invalid "+i+" `"+a+"` of type `"+l+"` supplied to `"+r+"`, expected `object`.");for(var c in e){var d=e[c];if(d){var h=d(s,c,r,i,a+"."+c,j);if(h)return h}}return null})},exact:function(e){return s(function(t,n,r,i,a){var s=t[n],l=u(s);if("object"!==l)return new o("Invalid "+i+" `"+a+"` of type `"+l+"` supplied to `"+r+"`, expected `object`.");var c=M({},t[n],e);for(var d in c){var h=e[d];if(!h)return new o("Invalid "+i+" `"+a+"` key `"+d+"` supplied to `"+r+"`.\nBad object: "+JSON.stringify(t[n],null,"  ")+"\nValid keys: "+JSON.stringify(Object.keys(e),null,"  "));var f=h(s,d,r,i,a+"."+d,j);if(f)return f}return null})}};function o(e){this.message=e,this.stack=""}function s(e){if("production"!==a().env.NODE_ENV)var n={},i=0;function s(s,l,u,c,d,h,f){if(c=c||r,h=h||u,f!==j){if(t){var p=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 p.name="Invariant Violation",p}if("production"!==a().env.NODE_ENV&&"undefined"!=typeof console){var m=c+":"+u;!n[m]&&i<3&&(H("You are manually calling a React.PropTypes validation function for the `"+h+"` prop on `"+c+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),n[m]=!0,i++)}}return null==l[u]?s?new o(null===l[u]?"The "+d+" `"+h+"` is marked as required in `"+c+"`, but its value is `null`.":"The "+d+" `"+h+"` is marked as required in `"+c+"`, but its value is `undefined`."):null:e(l,u,c,d,h)}var l=s.bind(null,!1);return l.isRequired=s.bind(null,!0),l}function l(e){return s(function(t,n,r,i,a,s){var l=t[n];return u(l)!==e?new o("Invalid "+i+" `"+a+"` of type `"+c(l)+"` supplied to `"+r+"`, expected `"+e+"`."):null})}function u(e){var t=typeof e;return Array.isArray(e)?"array":e instanceof RegExp?"object":"symbol"===t||e&&("Symbol"===e["@@toStringTag"]||"function"==typeof Symbol&&e instanceof Symbol)?"symbol":t}function c(e){if(null==e)return""+e;var t=u(e);if("object"===t){if(e instanceof Date)return"date";if(e instanceof RegExp)return"regexp"}return t}return o.prototype=Error.prototype,i.checkPropTypes=z,i.resetWarningCache=z.resetWarningCache,i.PropTypes=i,i}(W.isElement,!0)}else l.exports=function(){function e(e,t,n,r,i,a){if("SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"!==a){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;
57var n={array: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:$,resetWarningCache:K};return n.PropTypes=n,n}();var Z=l.exports;function Y(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function X(e,t){if(e){if("string"==typeof e)return Y(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Y(e,t):void 0}}function J(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,a=[],o=!0,s=!1;try{for(n=n.call(e);!(o=(r=n.next()).done)&&(a.push(r.value),!t||a.length!==t);o=!0);}catch(e){s=!0,i=e}finally{try{o||null==n.return||n.return()}finally{if(s)throw i}}return a}}(e,t)||X(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ee(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function et(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function en(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?et(Object(n),!0).forEach(function(t){ee(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):et(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var er={elements:[],isOpened:!1,isLoaded:!1,options:{buttons:{backgroundColor:"rgba(30,30,36,0.8)",iconColor:"rgba(255, 255, 255, 0.8)",iconPadding:"10px",showAutoplayButton:!0,showCloseButton:!0,showDownloadButton:!0,showFullscreenButton:!0,showNextButton:!0,showPrevButton:!0,size:"40px"},settings:{autoplaySpeed:3e3,boxShadow:"none",disableKeyboardControls:!1,disablePanzoom:!1,disableWheelControls:!1,downloadedFileName:"SRL-image",hideControlsAfter:!1,lightboxTransitionSpeed:.3,lightboxTransitionTimingFunction:"linear",overlayColor:"rgba(30, 30, 30, 0.9)",slideAnimationType:"fade",slideSpringValues:[300,50],slideTransitionSpeed:.6,slideTransitionTimingFunction:"linear",usingPreact:!1},caption:{captionAlignment:"start",captionColor:"#FFFFFF",captionFontFamily:"inherit",captionFontSize:"inherit",captionFontStyle:"inherit",captionFontWeight:"inherit",captionContainerPadding:"20px 0 30px 0",captionTextTransform:"inherit",showCaption:!0},thumbnails:{showThumbnails:!0,thumbnailsAlignment:"center",thumbnailsContainerPadding:"0",thumbnailsContainerBackgroundColor:"transparent",thumbnailsGap:"0 1px",thumbnailsIconColor:"#ffffff",thumbnailsPosition:"bottom",thumbnailsOpacity:.4,thumbnailsSize:["100px","80px"]},progressBar:{backgroundColor:"#f2f2f2",fillColor:"#000000",height:"3px",showProgressBar:!0}},selectedElement:{caption:"",height:0,id:0,source:"",thumbnail:"",width:0},callbacks:{onCountSlides:function(){},onSlideChange:function(){},onLightboxClosed:function(){},onLightboxOpened:function(){}}},ei=r.createContext(er),ea=function(e){var t=J((0,r.useReducer)(function(e,t){switch(t.type){case"READY_LIGHTBOX":return en(en(en({},e),t.mergedSettings),{},{elements:t.elements,isLoaded:!0});case"RESET_LIGHTBOX":return en({},er);case"HANDLE_ELEMENT":return en(en({},e),{},{isOpened:!0,selectedElement:en({},t.element)});case"OPEN_AT_INDEX":return en(en({},e),{},{isOpened:!0,selectedElement:en({},e.elements[t.index])});case"CLOSE_LIGHTBOX":return en(en({},e),{},{isOpened:!1});default:return e}},er),2),n=t[0],i=t[1];return r.createElement(ei.Provider,{value:en(en({},n),{},{dispatch:i})},e.children)};function eo(e){return function(e){if(Array.isArray(e))return Y(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||X(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}
57function es(e,t,n){e.addEventListener("click",function(){if(n)return n(t)})}function el(e){console.error(e),console.warn("An error as occurred with Simple React Lightbox. Make sure you wrapped your App with the <SimpleReactLightbox> component and then use the <SRLWrapper> component.")}ea.propTypes={children:Z.oneOfType([Z.arrayOf(Z.node),Z.node]).isRequired};var eu,ec={exports:{}};/**
58 * @license
59 * Lodash <https://lodash.com/>
60 * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
61 * Released under MIT license <https://lodash.com/license>
62 * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
63 * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
64 */function ed(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function eh(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ed(Object(n),!0).forEach(function(t){ee(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ed(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}eu=ec.exports,(function(){var e,t="Expected a function",n="__lodash_hash_undefined__",r="__lodash_placeholder__",i=1/0,a=NaN,o=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]],l="[object Arguments]",u="[object Array]",c="[object Boolean]",d="[object Date]",h="[object Error]",f="[object Function]",p="[object GeneratorFunction]",m="[object Map]",g="[object Number]",v="[object Object]",y="[object Promise]",b="[object RegExp]",A="[object Set]",E="[object String]",w="[object Symbol]",x="[object WeakMap]",T="[object ArrayBuffer]",S="[object DataView]",_="[object Float32Array]",C="[object Float64Array]",k="[object Int8Array]",I="[object Int16Array]",L="[object Int32Array]",P="[object Uint8Array]",O="[object Uint8ClampedArray]",R="[object Uint16Array]",D="[object Uint32Array]",N=/\b__p \+= '';/g,M=/\b(__p \+=) '' \+/g,j=/(__e\(.*?\)|\b__t\)) \+\n'';/g,F=/&(?:amp|lt|gt|quot|#39);/g,B=/[&<>"']/g,U=RegExp(F.source),V=RegExp(B.source),z=/<%-([\s\S]+?)%>/g,q=/<%([\s\S]+?)%>/g,Q=/<%=([\s\S]+?)%>/g,H=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,G=/^\w*$/,K=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,$=/[\\^$.*+?()[\]{}|]/g,W=RegExp($.source),Z=/^\s+/,Y=/\s/,X=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,J=/\{\n\/\* \[wrapped with (.+)\] \*/,ee=/,? & /,et=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,en=/[()=,{}\[\]\/\s]/,er=/\\(\\)?/g,ei=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,ea=/\w*$/,eo=/^[-+]0x[0-9a-f]+$/i,es=/^0b[01]+$/i,el=/^\[object .+?Constructor\]$/,ed=/^0o[0-7]+$/i,eh=/^(?:0|[1-9]\d*)$/,ef=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u01
vendor: 4,941 bytes, line 64
647f]/g,ep=/($^)/,em=/['\n\r\u2028\u2029\\]/g,eg="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",ev="a-z\\xdf-\\xf6\\xf8-\\xff",ey="A-Z\\xc0-\\xd6\\xd8-\\xde",eb="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",eA="["+eb+"]",eE="["+eg+"]",ew="["+ev+"]",ex="[^\ud800-\udfff"+eb+"\\d+\\u2700-\\u27bf"+ev+ey+"]",eT="\ud83c[\udffb-\udfff]",eS="[^\ud800-\udfff]",e_="(?:\ud83c[\udde6-\uddff]){2}",eC="[\ud800-\udbff][\udc00-\udfff]",ek="["+ey+"]",eI="(?:"+ew+"|"+ex+")",eL="(?:['’](?:d|ll|m|re|s|t|ve))?",eP="(?:['’](?:D|LL|M|RE|S|T|VE))?",eO="(?:"+eE+"|"+eT+")?",eR="[\\ufe0e\\ufe0f]?",eD=eR+eO+"(?:\\u200d(?:"+[eS,e_,eC].join("|")+")"+eR+eO+")*",eN="(?:"+["[\\u2700-\\u27bf]",e_,eC].join("|")+")"+eD,eM="(?:"+[eS+eE+"?",eE,e_,eC,"[\ud800-\udfff]"].join("|")+")",ej=RegExp("['’]","g"),eF=RegExp(eE,"g"),eB=RegExp(eT+"(?="+eT+")|"+eM+eD,"g"),eU=RegExp([ek+"?"+ew+"+"+eL+"(?="+[eA,ek,"$"].join("|")+")","(?:"+ek+"|"+ex+")+"+eP+"(?="+[eA,ek+eI,"$"].join("|")+")",ek+"?"+eI+"+"+eL,ek+"+"+eP,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])","\\d+",eN].join("|"),"g"),eV=RegExp("[\\u200d\ud800-\udfff"+eg+"\\ufe0e\\ufe0f]"),ez=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,eq=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],eQ=-1,eH={};eH[_]=eH[C]=eH[k]=eH[I]=eH[L]=eH[P]=eH[O]=eH[R]=eH[D]=!0,eH[l]=eH[u]=eH[T]=eH[c]=eH[S]=eH[d]=eH[h]=eH[f]=eH[m]=eH[g]=eH[v]=eH[b]=eH[A]=eH[E]=eH[x]=!1;var eG={};eG[l]=eG[u]=eG[T]=eG[S]=eG[c]=eG[d]=eG[_]=eG[C]=eG[k]=eG[I]=eG[L]=eG[m]=eG[g]=eG[v]=eG[b]=eG[A]=eG[E]=eG[w]=eG[P]=eG[O]=eG[R]=eG[D]=!0,eG[h]=eG[f]=eG[x]=!1;var eK={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},e$=parseFloat,eW=parseInt,eZ="object"==typeof s&&s&&s.Object===Object&&s,eY="object"==typeof self&&self&&self.Object===Object&&self,eX=eZ||eY||Function("return this")(),eJ=eu&&!eu.nodeType&&eu,e0=eJ&&ec&&!ec.nodeType&&ec,e1=e0&&e0.exports===eJ,e2=e1&&eZ.process,e3=function(){try{return e0&&e0.require&&e0.require("util").types||e2&&e2.binding&&e2.binding("util")}catch(e){}}(),e4=e3&&e3.isArrayBuffer,e5=e3&&e3.isDate,e8=e3&&e3.isMap,e6=e3&&e3.isRegExp,e9=e3&&e3.isSet,e7=e3&&e3.isTypedArray;function te(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function tt(e,t,n,r){for(var i=-1,a=null==e?0:e.length;++i<a;){var o=e[i];t(r,o,n(o),e)}return r}function tn(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}function tr(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(!t(e[n],n,e))return!1;return!0}function ti(e,t){for(var n=-1,r=null==e?0:e.length,i=0,a=[];++n<r;){var o=e[n];t(o,n,e)&&(a[i++]=o)}return a}function ta(e,t){return!(null==e||!e.length)&&tm(e,t,0)>-1}function to(e,t,n){for(var r=-1,i=null==e?0:e.length;++r<i;)if(n(t,e[r]))return!0;return!1}function ts(e,t){for(var n=-1,r=null==e?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}function tl(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}function tu(e,t,n,r){var i=-1,a=null==e?0:e.length;for(r&&a&&(n=e[++i]);++i<a;)n=t(n,e[i],i,e);return n}function tc(e,t,n,r){var i=null==e?0:e.length;for(r&&i&&(n=e[--i]);i--;)n=t(n,e[i],i,e);return n}function td(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}var th=tb("length");function tf(e,t,n){var r;return n(e,function(e,n,i){if(t(e,n,i))return r=n,!1}),r}function tp(e,t,n,r){for(var i=e.length,a=n+(r?1:-1);r?a--:++a<i;)if(t(e[a],a,e))return a;return -1}function tm(e,t,n){return t==t?function(e,t,n){for(var r=n-1,i=e.length;++r<i;)if(e[r]===t)return r;return -1}(e,t,n):tp(e,tv,n)}function tg(e,t,n,r){for(var i=n-1,a=e.length;++i<a;)if(r(e[i],t))return i;return -1}function tv(e){return e!=e}function ty(e,t){var n=null==e?0:e.length;return n?tw(e,t)/n:a}function tb(t){return function(n){return null==n?e:n[t]}}function tA(t){return function(n){return null==t?e:t[n]}}function tE(e,t,n,r,i){return i(e,function(e,i,a){n=r?(r=!1,e):t(n,e,i,a)}),n}function tw(t,n){for(var r,i=-1,a=t.length;++i<a;){var o=n(t[i]);o!==e&&(r=r===e?o:r+o)}return r}function tx(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}function tT(e){return e?e.slice(0,tU(e)+1).replace(Z,""):e}function tS(e){return function(t){return e(t)}}function t_(e,t){return ts(t,function(t){return e[t]})}function tC(e,t){return e.has(t)}function tk(e,t){for(var n=-1,r=e.length;
vendor: 1,797 bytes, line 64
64++n<r&&tm(t,e[n],0)>-1;);return n}function tI(e,t){for(var n=e.length;n--&&tm(t,e[n],0)>-1;);return n}var tL=tA({À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"}),tP=tA({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"});function tO(e){return"\\"+eK[e]}function tR(e){return eV.test(e)}function tD(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}function tN(e,t){return function(n){return e(t(n))}}function tM(e,t){for(var n=-1,i=e.length,a=0,o=[];++n<i;){var s=e[n];
vendor: 8,605 bytes, line 64
64s!==t&&s!==r||(e[n]=r,o[a++]=n)}return o}function tj(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}function tF(e){return tR(e)?function(e){for(var t=eB.lastIndex=0;eB.test(e);)++t;return t}(e):th(e)}function tB(e){return tR(e)?e.match(eB)||[]:e.split("")}function tU(e){for(var t=e.length;t--&&Y.test(e.charAt(t)););return t}var tV=tA({"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"}),tz=function s(Y){var eu,ec=(Y=null==Y?eX:tz.defaults(eX.Object(),Y,tz.pick(eX,eq))).Array,eg=Y.Date,ev=Y.Error,ey=Y.Function,eb=Y.Math,eA=Y.Object,eE=Y.RegExp,ew=Y.String,ex=Y.TypeError,eT=ec.prototype,eS=ey.prototype,e_=eA.prototype,eC=Y["__core-js_shared__"],ek=eS.toString,eI=e_.hasOwnProperty,eL=0,eP=(eu=/[^.]+$/.exec(eC&&eC.keys&&eC.keys.IE_PROTO||""))?"Symbol(src)_1."+eu:"",eO=e_.toString,eR=ek.call(eA),eD=eX._,eN=eE("^"+ek.call(eI).replace($,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),eM=e1?Y.Buffer:e,eB=Y.Symbol,eV=Y.Uint8Array,eK=eM?eM.allocUnsafe:e,eZ=tN(eA.getPrototypeOf,eA),eY=eA.create,eJ=e_.propertyIsEnumerable,e0=eT.splice,e2=eB?eB.isConcatSpreadable:e,e3=eB?eB.iterator:e,th=eB?eB.toStringTag:e,tA=function(){try{var e=il(eA,"defineProperty");return e({},"",{}),e}catch(e){}}(),tq=Y.clearTimeout!==eX.clearTimeout&&Y.clearTimeout,tQ=eg&&eg.now!==eX.Date.now&&eg.now,tH=Y.setTimeout!==eX.setTimeout&&Y.setTimeout,tG=eb.ceil,tK=eb.floor,t$=eA.getOwnPropertySymbols,tW=eM?eM.isBuffer:e,tZ=Y.isFinite,tY=eT.join,tX=tN(eA.keys,eA),tJ=eb.max,t0=eb.min,t1=eg.now,t2=Y.parseInt,t3=eb.random,t4=eT.reverse,t5=il(Y,"DataView"),t8=il(Y,"Map"),t6=il(Y,"Promise"),t9=il(Y,"Set"),t7=il(Y,"WeakMap"),ne=il(eA,"create"),nt=t7&&new t7,nn={},nr=iD(t5),ni=iD(t8),na=iD(t6),no=iD(t9),ns=iD(t7),nl=eB?eB.prototype:e,nu=nl?nl.valueOf:e,nc=nl?nl.toString:e;function nd(e){if(aV(e)&&!aL(e)&&!(e instanceof nm)){if(e instanceof np)return e;if(eI.call(e,"__wrapped__"))return iN(e)}return new np(e)}var nh=function(){function t(){}return function(n){if(!aU(n))return{};if(eY)return eY(n);t.prototype=n;var r=new t;return t.prototype=e,r}}();function nf(){}function np(t,n){this.__wrapped__=t,this.__actions__=[],this.__chain__=!!n,this.__index__=0,this.__values__=e}function nm(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=4294967295,this.__views__=[]}function ng(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function nv(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function ny(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function nb(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new ny;++t<n;)this.add(e[t])}function nA(e){var t=this.__data__=new nv(e);this.size=t.size}function nE(e,t){var n=aL(e),r=!n&&aI(e),i=!n&&!r&&aD(e),a=!n&&!r&&!i&&aW(e),o=n||r||i||a,s=o?tx(e.length,ew):[],l=s.length;for(var u in e)!t&&!eI.call(e,u)||o&&("length"==u||i&&("offset"==u||"parent"==u)||a&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||ig(u,l))||s.push(u);return s}function nw(t){var n=t.length;return n?t[ro(0,n-1)]:e}function nx(t,n,r){(r===e||a_(t[n],r))&&(r!==e||n in t)||nk(t,n,r)}function nT(t,n,r){var i=t[n];eI.call(t,n)&&a_(i,r)&&(r!==e||n in t)||nk(t,n,r)}function nS(e,t){for(var n=e.length;n--;)if(a_(e[n][0],t))return n;return -1}function n_(e,t,n,r){return nN(e,function(e,i,a){t(r,e,n(e),a)}),r}function nC(e,t){return e&&rF(t,os(t),e)}function nk(e,t,n){"__proto__"==t&&tA?tA(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function nI(t,n){for(var r=-1,i=n.length,a=ec(i),o=null==t;++r<i;)a[r]=o?e:on(t,n[r]);return a}function nL(t,n,r){return t==t&&(r!==e&&(t=t<=r?t:r),n!==e&&(t=t>=n?t:n)),t}function nP(t,n,r,i,a,o){var s,u=1&n,h=2&n,y=4&n;if(r&&(s=a?r(t,i,a,o):r(t)),s!==e)return s;if(!aU(t))return t;var x=aL(t);if(x){if(N=t.length,M=new t.constructor(N),N&&"string"==typeof t[0]&&eI.call(t,"index")&&(M.index=t.index,M.input=t.input),s=M,!u)return rj(t,s)}else{var N,M,j,F,B,U=id(t),V=U==f||U==p;if(aD(t))return rP(t,u);if(U==v||U==l||V&&!a){if(s=h||V?{}:ip(t),!u)return h?(F=(j=s)&&rF(t,ol(t),j),rF(t,ic(t),F)):(B=nC(s,t),rF(t,iu(t),B))}else{if(!eG[U])return a?t:{};s=function(e,t,n){var r,i,a=e.constructor;switch(t){case T:return rO(e);case c:case d:return new a(+e);case S:return r=n?rO(e.buffer):e.buffer,new e.constructor(r,e.byteOffset,e.byteLength);case _:case C:case k:case I:case L:case P:case O:case R:case D:return rR(e,n);case m:return new a;case g:case E:return new a(e);case b:return(i=new e.constructor(e.source,ea.exec(e))).lastIndex=e.lastIndex,i;case A:return new a;case w:return nu?eA(nu.call(e)):{}}}(t,U,u)}}o||(o=new nA);var z=o.get(t);if(z)return z;o.set(t,s),aG(t)?t.forEach(function(e){s.add(nP(e,n,r,e,t,o))}):az(t)&&t.forEach(function(e,i){s.set(i,nP(e,n,r,i,t,o))});var q=x?e:(y?h?function(e){return nK(e,ol,ic)}:function(e){return nK(e,os,iu)}:h?ol:os)(t);return tn(q||t,function(e,i){q&&(e=t[i=e]),nT(s,i,nP(e,n,r,i,t,o))}),s}function nO(t,n,r){var i=r.length;if(null==t)return!i;for(t=eA(t);i--;){var a=r[i],o=n[a],s=t[a];if(s===e&&!(a in t)||!o(s))return!1}return!0}function nR(n,r,i){if("function"!=typeof n)throw new ex(t);return iC(function(){n.apply(e,i)},r)}function nD(e,t,n,r){var i=-1,a=ta,o=!0,s=e.length,l=[],u=t.length;if(!s)return l;n&&(t=ts(t,tS(n))),r?(a=to,o=!1):t.length>=200&&(a=tC,o=!1,t=new nb(t));n:for(;++i<s;){var c=e[i],d=null==n?c:n(c);if(c=r||0!==c?c:0,o&&d==d){for(var h=u;h--;)if(t[h]===d)continue n;l.push(c)}else a(t,d,r)||l.push(c)}return l}nd.templateSettings={escape:z,evaluate:q,interpolate:Q,variable:"",imports:{_:nd}},nd.prototype=nf.prototype,nd.prototype.constructor=nd,np.prototype=nh(nf.prototype),np.prototype.constructor=np,nm.prototype=nh(nf.prototype),nm.prototype.constructor=nm,ng.prototype.clear=function(){this.__data__=ne?ne(null):{},this.size=0},ng.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},ng.prototype.get=function(t){var r=this.__data__;if(ne){var i=r[t];return i===n?e:i}return eI.call(r,t)?r[t]:e},ng.prototype.has=function(t){var n=this.__data__;return ne?n[t]!==e:eI.call(n,t)},ng.prototype.set=function(t,r){var i=this.__data__;return this.size+=this.has(t)?0:1,i[t]=ne&&r===e?n:r,this},nv.prototype.clear=function(){this.__data__=[],this.size=0},nv.prototype.delete=function(e){var t=this.__data__,n=nS(t,e);return!(n<0||(n==t.length-1?t.pop():e0.call(t,n,1),--this.size,0))},nv.prototype.get=function(t){var n=this.__data__,r=nS(n,t);return r<0?e:n[r][1]},nv.prototype.has=function(e){return nS(this.__data__,e)>-1},nv.prototype.set=function(e,t){var n=this.__data__,r=nS(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},ny.prototype.clear=function(){this.size=0,this.__data__={hash:new ng,map:new(t8||nv),string:new ng}},ny.prototype.delete=function(e){var t=io(this,e).delete(e);return this.size-=t?1:0,t},ny.prototype.get=function(e){return io(this,e).get(e)},ny.prototype.has=function(e){return io(this,e).has(e)},ny.prototype.set=function(e,t){var n=io(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},nb.prototype.add=nb.prototype.push=function(e){return this.__data__.set(e,n),this},nb.prototype.has=function(e){return this.__data__.has(e)},nA.prototype.clear=function(){this.__data__=new nv,this.size=0},nA.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},nA.prototype.get=function(e){return this.__data__.get(e)},nA.prototype.has=function(e){return this.__data__.has(e)},nA.prototype.set=function(e,t){var n=this.__data__;if(n instanceof nv){var r=n.__data__;if(!t8||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new ny(r)}return n.set(e,t),this.size=n.size,this};var nN=rV(nq),nM=rV(nQ,!0);function nj(e,t){var n=!0;return nN(e,function(e,r,i){return n=!!t(e,r,i)}),n}function nF(t,n,r){for(var i=-1,a=t.length;++i<a;){var o=t[i],s=n(o);if(null!=s&&(l===e?s==s&&!a$(s):r(s,l)))var l=s,u=o}return u}function nB(e,t){var n=[];return nN(e,function(e,r,i){t(e,r,i)&&n.push(e)}),n}function nU(e,t,n,r,i){var a=-1,o=e.length;for(n||(n=im),i||(i=[]);++a<o;){var s=e[a];t>0&&n(s)?t>1?nU(s,t-1,n,r,i):tl(i,s):r||(i[i.length]=s)}return i}var nV=rz(),nz=rz(!0);function nq(e,t){return e&&nV(e,t,os)}function nQ(e,t){return e&&nz(e,t,os)}function nH(e,t){return ti(t,function(t){return aj(e[t])})}function nG(t,n){for(var r=0,i=(n=rk(n,t)).length;null!=t&&r<i;)t=t[iR(n[r++])];return r&&r==i?t:e}function nK(e,t,n){var r=t(e);return aL(e)?r:tl(r,n(e))}
vendor: 1,781 bytes, line 64
64function n$(t){return null==t?t===e?"[object Undefined]":"[object Null]":th&&th in eA(t)?function(t){var n=eI.call(t,th),r=t[th];try{t[th]=e;var i=!0}catch(e){}var a=eO.call(t);return i&&(n?t[th]=r:delete t[th]),a}(t):eO.call(t)}function nW(e,t){return e>t}function nZ(e,t){return null!=e&&eI.call(e,t)}function nY(e,t){return null!=e&&t in eA(e)}function nX(t,n,r){for(var i=r?to:ta,a=t[0].length,o=t.length,s=o,l=ec(o),u=1/0,c=[];s--;){var d=t[s];s&&n&&(d=ts(d,tS(n))),u=t0(d.length,u),l[s]=!r&&(n||a>=120&&d.length>=120)?new nb(s&&d):e}d=t[0];var h=-1,f=l[0];n:for(;++h<a&&c.length<u;){var p=d[h],m=n?n(p):p;if(p=r||0!==p?p:0,!(f?tC(f,m):i(c,m,r))){for(s=o;--s;){var g=l[s];if(!(g?tC(g,m):i(t[s],m,r)))continue n}f&&f.push(m),c.push(p)}}return c}function nJ(t,n,r){var i=null==(t=iT(t,n=rk(n,t)))?t:t[iR(iG(n))];return null==i?e:te(i,t,r)}function n0(e){return aV(e)&&n$(e)==l}function n1(t,n,r,i,a){return t===n||(null!=t&&null!=n&&(aV(t)||aV(n))?function(t,n,r,i,a,o){var s=aL(t),f=aL(n),p=s?u:id(t),y=f?u:id(n),x=(p=p==l?v:p)==v,_=(y=y==l?v:y)==v,C=p==y;if(C&&aD(t)){if(!aD(n))return!1;s=!0,x=!1}if(C&&!x)return o||(o=new nA),s||aW(t)?r7(t,n,r,i,a,o):function(e,t,n,r,i,a,o){switch(n){case S:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)break;e=e.buffer,t=t.buffer;case T:return!(e.byteLength!=t.byteLength||!a(new eV(e),new eV(t)));case c:case d:case g:return a_(+e,+t);case h:return e.name==t.name&&e.message==t.message;case b:case E:return e==t+"";case m:var s=tD;case A:var l=1&r;if(s||(s=tj),e.size!=t.size&&!l)break;var u=o.get(e);if(u)return u==t;r|=2,o.set(e,t);var f=r7(s(e),s(t),r,i,a,o);return o.delete(e),f;case w:if(nu)return nu.call(e)==nu.call(t)}return!1}(t,n,p,r,i,a,o);if(!(1&r)){var k=x&&eI.call(t,"__wrapped__"),I=_&&eI.call(n,"__wrapped__");
vendor: 5,167 bytes, line 64
64if(k||I){var L=k?t.value():t,P=I?n.value():n;return o||(o=new nA),a(L,P,r,i,o)}}return!!C&&(o||(o=new nA),function(t,n,r,i,a,o){var s=1&r,l=nK(t,os,iu),u=l.length;if(u!=nK(n,os,iu).length&&!s)return!1;for(var c=u;c--;){var d=l[c];if(!(s?d in n:eI.call(n,d)))return!1}var h=o.get(t),f=o.get(n);if(h&&f)return h==n&&f==t;var p=!0;o.set(t,n),o.set(n,t);for(var m=s;++c<u;){var g=t[d=l[c]],v=n[d];if(i)var y=s?i(v,g,d,n,t,o):i(g,v,d,t,n,o);if(!(y===e?g===v||a(g,v,r,i,o):y)){p=!1;break}m||(m="constructor"==d)}if(p&&!m){var b=t.constructor,A=n.constructor;b==A||!("constructor"in t)||!("constructor"in n)||"function"==typeof b&&b instanceof b&&"function"==typeof A&&A instanceof A||(p=!1)}return o.delete(t),o.delete(n),p}(t,n,r,i,a,o))}(t,n,r,i,n1,a):t!=t&&n!=n)}function n2(t,n,r,i){var a=r.length,o=a,s=!i;if(null==t)return!o;for(t=eA(t);a--;){var l=r[a];if(s&&l[2]?l[1]!==t[l[0]]:!(l[0]in t))return!1}for(;++a<o;){var u=(l=r[a])[0],c=t[u],d=l[1];if(s&&l[2]){if(c===e&&!(u in t))return!1}else{var h=new nA;if(i)var f=i(c,d,u,t,n,h);if(!(f===e?n1(d,c,3,i,h):f))return!1}}return!0}function n3(e){return!(!aU(e)||eP&&eP in e)&&(aj(e)?eN:el).test(iD(e))}function n4(e){return"function"==typeof e?e:null==e?oR:"object"==typeof e?aL(e)?n7(e[0],e[1]):n9(e):oz(e)}function n5(e){if(!iE(e))return tX(e);var t=[];for(var n in eA(e))eI.call(e,n)&&"constructor"!=n&&t.push(n);return t}function n8(e,t){return e<t}function n6(e,t){var n=-1,r=aO(e)?ec(e.length):[];return nN(e,function(e,i,a){r[++n]=t(e,i,a)}),r}function n9(e){var t=is(e);return 1==t.length&&t[0][2]?iw(t[0][0],t[0][1]):function(n){return n===e||n2(n,e,t)}}function n7(t,n){var r;return iy(t)&&(r=n)==r&&!aU(r)?iw(iR(t),n):function(r){var i=on(r,t);return i===e&&i===n?or(r,t):n1(n,i,3)}}function re(t,n,r,i,a){t!==n&&nV(n,function(o,s){if(a||(a=new nA),aU(o))!function(t,n,r,i,a,o,s){var l=iS(t,r),u=iS(n,r),c=s.get(u);if(c)nx(t,r,c);else{var d=o?o(l,u,r+"",t,n,s):e,h=d===e;if(h){var f=aL(u),p=!f&&aD(u),m=!f&&!p&&aW(u);d=u,f||p||m?aL(l)?d=l:aR(l)?d=rj(l):p?(h=!1,d=rP(u,!0)):m?(h=!1,d=rR(u,!0)):d=[]:aQ(u)||aI(u)?(d=l,aI(l)?d=a3(l):aU(l)&&!aj(l)||(d=ip(u))):h=!1}h&&(s.set(u,d),a(d,u,i,o,s),s.delete(u)),nx(t,r,d)}}(t,n,s,r,re,i,a);else{var l=i?i(iS(t,s),o,s+"",t,n,a):e;l===e&&(l=o),nx(t,s,l)}},ol)}function rt(t,n){var r=t.length;if(r)return ig(n+=n<0?r:0,r)?t[n]:e}function rn(e,t,n){t=t.length?ts(t,function(e){return aL(e)?function(t){return nG(t,1===e.length?e[0]:e)}:e}):[oR];var r=-1;return t=ts(t,tS(ia())),function(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}(n6(e,function(e,n,i){return{criteria:ts(t,function(t){return t(e)}),index:++r,value:e}}),function(e,t){return function(e,t,n){for(var r=-1,i=e.criteria,a=t.criteria,o=i.length,s=n.length;++r<o;){var l=rD(i[r],a[r]);if(l)return r>=s?l:l*("desc"==n[r]?-1:1)}return e.index-t.index}(e,t,n)})}function rr(e,t,n){for(var r=-1,i=t.length,a={};++r<i;){var o=t[r],s=nG(e,o);n(s,o)&&ru(a,rk(o,e),s)}return a}function ri(e,t,n,r){var i=r?tg:tm,a=-1,o=t.length,s=e;for(e===t&&(t=rj(t)),n&&(s=ts(e,tS(n)));++a<o;)for(var l=0,u=t[a],c=n?n(u):u;(l=i(s,c,l,r))>-1;)s!==e&&e0.call(s,l,1),e0.call(e,l,1);return e}function ra(e,t){for(var n=e?t.length:0,r=n-1;n--;){var i=t[n];if(n==r||i!==a){var a=i;ig(i)?e0.call(e,i,1):rA(e,i)}}return e}function ro(e,t){return e+tK(t3()*(t-e+1))}function rs(e,t){var n="";if(!e||t<1||t>9007199254740991)return n;do t%2&&(n+=e),(t=tK(t/2))&&(e+=e);while(t);return n}function rl(e,t){return ik(ix(e,t,oR),e+"")}function ru(t,n,r,i){if(!aU(t))return t;for(var a=-1,o=(n=rk(n,t)).length,s=o-1,l=t;null!=l&&++a<o;){var u=iR(n[a]),c=r;if("__proto__"===u||"constructor"===u||"prototype"===u)break;if(a!=s){var d=l[u];(c=i?i(d,u,l):e)===e&&(c=aU(d)?d:ig(n[a+1])?[]:{})}nT(l,u,c),l=l[u]}return t}var rc=nt?function(e,t){return nt.set(e,t),e}:oR,rd=tA?function(e,t){return tA(e,"toString",{configurable:!0,enumerable:!1,value:oL(t),writable:!0})}:oR;function rh(e,t,n){var r=-1,i=e.length;t<0&&(t=-t>i?0:i+t),(n=n>i?i:n)<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var a=ec(i);++r<i;)a[r]=e[r+t];return a}function rf(e,t){var n;return nN(e,function(e,r,i){return!(n=t(e,r,i))}),!!n}function rp(e,t,n){var r=0,i=null==e?r:e.length;if("number"==typeof t&&t==t&&i<=2147483647){for(;r<i;){var a=r+i>>>1,o=e[a];null!==o&&!a$(o)&&(n?o<=t:o<t)?r=a+1:i=a}return i}return rm(e,t,oR,n)}function rm(t,n,r,i){var a=0,o=null==t?0:t.length;if(0===o)return 0;for(var s=(n=r(n))!=n,l=null===n,u=a$(n),c=n===e;a<o;){var d=tK((a+o)/2),h=r(t[d]),f=h!==e,p=null===h,m=h==h,g=a$(h);if(s)var v=i||m;else v=c?m&&(i||f):l?m&&f&&(i||!p):u?m&&f&&!p&&(i||!g):!p&&!g&&(i?h<=n:h<n);v?a=d+1:o=d}return t0(o,4294967294)}function rg(e,t){for(var n=-1,r=e.length,i=0,a=[];++n<r;){var o=e[n],s=t?t(o):o;if(!n||!a_(s,l)){var l=s;a[i++]=0===o?0:o}}return a}function rv(e){return"number"==typeof e?e:a$(e)?a:+e}function ry(e){if("string"==typeof e)return e;if(aL(e))return ts(e,ry)+"";if(a$(e))return nc?nc.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function rb(e,t,n){var r=-1,i=ta,a=e.length,o=!0,s=[],l=s;if(n)o=!1,i=to;else if(a>=200){var u=t?null:r3(e);if(u)return tj(u);o=!1,i=tC,l=new nb}else l=t?[]:s;n:for(;++r<a;){var c=e[r],d=t?t(c):c;
vendor: 6,337 bytes, line 64
64if(c=n||0!==c?c:0,o&&d==d){for(var h=l.length;h--;)if(l[h]===d)continue n;t&&l.push(d),s.push(c)}else i(l,d,n)||(l!==s&&l.push(d),s.push(c))}return s}function rA(e,t){return null==(e=iT(e,t=rk(t,e)))||delete e[iR(iG(t))]}function rE(e,t,n,r){return ru(e,t,n(nG(e,t)),r)}function rw(e,t,n,r){for(var i=e.length,a=r?i:-1;(r?a--:++a<i)&&t(e[a],a,e););return n?rh(e,r?0:a,r?a+1:i):rh(e,r?a+1:0,r?i:a)}function rx(e,t){var n=e;return n instanceof nm&&(n=n.value()),tu(t,function(e,t){return t.func.apply(t.thisArg,tl([e],t.args))},n)}function rT(e,t,n){var r=e.length;if(r<2)return r?rb(e[0]):[];for(var i=-1,a=ec(r);++i<r;)for(var o=e[i],s=-1;++s<r;)s!=i&&(a[i]=nD(a[i]||o,e[s],t,n));return rb(nU(a,1),t,n)}function rS(t,n,r){for(var i=-1,a=t.length,o=n.length,s={};++i<a;){var l=i<o?n[i]:e;r(s,t[i],l)}return s}function r_(e){return aR(e)?e:[]}function rC(e){return"function"==typeof e?e:oR}function rk(e,t){return aL(e)?e:iy(e,t)?[e]:iO(a4(e))}function rI(t,n,r){var i=t.length;return r=r===e?i:r,!n&&r>=i?t:rh(t,n,r)}var rL=tq||function(e){return eX.clearTimeout(e)};function rP(e,t){if(t)return e.slice();var n=e.length,r=eK?eK(n):new e.constructor(n);return e.copy(r),r}function rO(e){var t=new e.constructor(e.byteLength);return new eV(t).set(new eV(e)),t}function rR(e,t){var n=t?rO(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function rD(t,n){if(t!==n){var r=t!==e,i=null===t,a=t==t,o=a$(t),s=n!==e,l=null===n,u=n==n,c=a$(n);if(!l&&!c&&!o&&t>n||o&&s&&u&&!l&&!c||i&&s&&u||!r&&u||!a)return 1;if(!i&&!o&&!c&&t<n||c&&r&&a&&!i&&!o||l&&r&&a||!s&&a||!u)return -1}return 0}function rN(e,t,n,r){for(var i=-1,a=e.length,o=n.length,s=-1,l=t.length,u=tJ(a-o,0),c=ec(l+u),d=!r;++s<l;)c[s]=t[s];for(;++i<o;)(d||i<a)&&(c[n[i]]=e[i]);for(;u--;)c[s++]=e[i++];return c}function rM(e,t,n,r){for(var i=-1,a=e.length,o=-1,s=n.length,l=-1,u=t.length,c=tJ(a-s,0),d=ec(c+u),h=!r;++i<c;)d[i]=e[i];for(var f=i;++l<u;)d[f+l]=t[l];for(;++o<s;)(h||i<a)&&(d[f+n[o]]=e[i++]);return d}function rj(e,t){var n=-1,r=e.length;for(t||(t=ec(r));++n<r;)t[n]=e[n];return t}function rF(t,n,r,i){var a=!r;r||(r={});for(var o=-1,s=n.length;++o<s;){var l=n[o],u=i?i(r[l],t[l],l,r,t):e;u===e&&(u=t[l]),a?nk(r,l,u):nT(r,l,u)}return r}function rB(e,t){return function(n,r){var i=aL(n)?tt:n_,a=t?t():{};return i(n,e,ia(r,2),a)}}function rU(t){return rl(function(n,r){var i=-1,a=r.length,o=a>1?r[a-1]:e,s=a>2?r[2]:e;for(o=t.length>3&&"function"==typeof o?(a--,o):e,s&&iv(r[0],r[1],s)&&(o=a<3?e:o,a=1),n=eA(n);++i<a;){var l=r[i];l&&t(n,l,i,o)}return n})}function rV(e,t){return function(n,r){if(null==n)return n;if(!aO(n))return e(n,r);for(var i=n.length,a=t?i:-1,o=eA(n);(t?a--:++a<i)&&!1!==r(o[a],a,o););return n}}function rz(e){return function(t,n,r){for(var i=-1,a=eA(t),o=r(t),s=o.length;s--;){var l=o[e?s:++i];if(!1===n(a[l],l,a))break}return t}}function rq(t){return function(n){var r=tR(n=a4(n))?tB(n):e,i=r?r[0]:n.charAt(0),a=r?rI(r,1).join(""):n.slice(1);return i[t]()+a}}function rQ(e){return function(t){return tu(oC(ob(t).replace(ej,"")),e,"")}}function rH(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n=nh(e.prototype),r=e.apply(n,t);return aU(r)?r:n}}function rG(t){return function(n,r,i){var a=eA(n);if(!aO(n)){var o=ia(r,3);n=os(n),r=function(e){return o(a[e],e,a)}}var s=t(n,r,i);return s>-1?a[o?n[s]:s]:e}}function rK(n){return ie(function(r){var i=r.length,a=i,o=np.prototype.thru;for(n&&r.reverse();a--;){var s=r[a];if("function"!=typeof s)throw new ex(t);if(o&&!l&&"wrapper"==ir(s))var l=new np([],!0)}for(a=l?a:i;++a<i;){var u=ir(s=r[a]),c="wrapper"==u?it(s):e;l=c&&ib(c[0])&&424==c[1]&&!c[4].length&&1==c[9]?l[ir(c[0])].apply(l,c[3]):1==s.length&&ib(s)?l[u]():l.thru(s)}return function(){var e=arguments,t=e[0];if(l&&1==e.length&&aL(t))return l.plant(t).value();for(var n=0,a=i?r[n].apply(this,e):t;++n<i;)a=r[n].call(this,a);return a}})}function r$(t,n,r,i,a,o,s,l,u,c){var d=128&n,h=1&n,f=2&n,p=24&n,m=512&n,g=f?e:rH(t);return function v(){for(var y=arguments.length,b=ec(y),A=y;A--;)b[A]=arguments[A];if(p)var E=ii(v),w=function(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&++r;return r}(b,E);if(i&&(b=rN(b,i,a,p)),o&&(b=rM(b,o,s,p)),y-=w,p&&y<c){var x=tM(b,E);return r1(t,n,r$,v.placeholder,r,b,x,l,u,c-y)}var T=h?r:this,S=f?T[t]:t;return y=b.length,l?b=function(t,n){for(var r=t.length,i=t0(n.length,r),a=rj(t);i--;){var o=n[i];t[i]=ig(o,r)?a[o]:e}return t}(b,l):m&&y>1&&b.reverse(),d&&u<y&&(b.length=u),this&&this!==eX&&this instanceof v&&(S=g||rH(S)),S.apply(T,b)}}function rW(e,t){return function(n,r){var i,a;return i=t(r),a={},nq(n,function(t,n,r){e(a,i(t),n,r)}),a}}function rZ(t,n){return function(r,i){var a;if(r===e&&i===e)return n;if(r!==e&&(a=r),i!==e){if(a===e)return i;"string"==typeof r||"string"==typeof i?(r=ry(r),i=ry(i)):(r=rv(r),i=rv(i)),a=t(r,i)}return a}}function rY(e){return ie(function(t){return t=ts(t,tS(ia())),rl(function(n){var r=this;return e(t,function(e){return te(e,r,n)})})})}function rX(t,n){var r=(n=n===e?" ":ry(n)).length;if(r<2)return r?rs(n,t):n;var i=rs(n,tG(t/tF(n)));return tR(n)?rI(tB(i),0,t).join(""):i.slice(0,t)}function rJ(t){return function(n,r,i){return i&&"number"!=typeof i&&iv(n,r,i)&&(r=i=e),n=aJ(n),r===e?(r=n,n=0):r=aJ(r),function(e,t,n,r){for(var i=-1,a=tJ(tG((t-e)/(n||1)),0),o=ec(a);a--;)o[r?a:++i]=e,e+=n;return o}(n,r,i=i===e?n<r?1:-1:aJ(i),t)}}function r0(e){return function(t,n){return"string"==typeof t&&"string"==typeof n||(t=a2(t),n=a2(n)),e(t,n)}}function r1(t,n,r,i,a,o,s,l,u,c){var d=8&n;n|=d?32:64,4&(n&=~(d?64:32))||(n&=-4);var h=[t,n,a,d?o:e,d?s:e,d?e:o,d?e:s,l,u,c],f=r.apply(e,h);return ib(t)&&i_(f,h),f.placeholder=i,iI(f,t,n)}function r2(e){var t=eb[e];return function(e,n){if(e=a2(e),(n=null==n?0:t0(a0(n),292))&&tZ(e)){var r=(a4(e)+"e").split("e");return+((r=(a4(t(r[0]+"e"+(+r[1]+n)))+"e").split("e"))[0]+"e"+(+r[1]-n))}return t(e)}}var r3=t9&&1/tj(new t9([,-0]))[1]==i?function(e){return new t9(e)}:oF;function r4(e){return function(t){var n,r,i=id(t);return i==m?tD(t):i==A?(n=-1,r=Array(t.size),t.forEach(function(e){r[++n]=[e,e]}
vendor: 17,516 bytes, line 64
64),r):ts(e(t),function(e){return[e,t[e]]})}}function r5(n,i,a,o,s,l,u,c){var d=2&i;if(!d&&"function"!=typeof n)throw new ex(t);var h=o?o.length:0;if(h||(i&=-97,o=s=e),u=u===e?u:tJ(a0(u),0),c=c===e?c:a0(c),h-=s?s.length:0,64&i){var f=o,p=s;o=s=e}var m=d?e:it(n),g=[n,i,a,o,s,f,p,l,u,c];if(m&&function(e,t){var n=e[1],i=t[1],a=n|i,o=a<131,s=128==i&&8==n||128==i&&256==n&&e[7].length<=t[8]||384==i&&t[7].length<=t[8]&&8==n;if(o||s){1&i&&(e[2]=t[2],a|=1&n?0:4);var l=t[3];if(l){var u=e[3];e[3]=u?rN(u,l,t[4]):l,e[4]=u?tM(e[3],r):t[4]}(l=t[5])&&(u=e[5],e[5]=u?rM(u,l,t[6]):l,e[6]=u?tM(e[5],r):t[6]),(l=t[7])&&(e[7]=l),128&i&&(e[8]=null==e[8]?t[8]:t0(e[8],t[8])),null==e[9]&&(e[9]=t[9]),e[0]=t[0],e[1]=a}}(g,m),n=g[0],i=g[1],a=g[2],o=g[3],s=g[4],(c=g[9]=g[9]===e?d?0:n.length:tJ(g[9]-h,0))||!(24&i)||(i&=-25),i&&1!=i)O=8==i||16==i?(v=n,y=i,b=c,A=rH(v),function t(){for(var n=arguments.length,r=ec(n),i=n,a=ii(t);i--;)r[i]=arguments[i];var o=n<3&&r[0]!==a&&r[n-1]!==a?[]:tM(r,a);return(n-=o.length)<b?r1(v,y,r$,t.placeholder,e,r,o,e,e,b-n):te(this&&this!==eX&&this instanceof t?A:v,this,r)}):32!=i&&33!=i||s.length?r$.apply(e,g):(E=n,w=i,x=a,T=o,S=1&w,_=rH(E),function e(){for(var t=-1,n=arguments.length,r=-1,i=T.length,a=ec(i+n),o=this&&this!==eX&&this instanceof e?_:E;++r<i;)a[r]=T[r];for(;n--;)a[r++]=arguments[++t];return te(o,S?x:this,a)});else var v,y,b,A,E,w,x,T,S,_,C,k,I,L,P,O=(C=n,k=i,I=a,L=1&k,P=rH(C),function e(){return(this&&this!==eX&&this instanceof e?P:C).apply(L?I:this,arguments)});return iI((m?rc:i_)(O,g),n,i)}function r8(t,n,r,i){return t===e||a_(t,e_[r])&&!eI.call(i,r)?n:t}function r6(t,n,r,i,a,o){return aU(t)&&aU(n)&&(o.set(n,t),re(t,n,e,r6,o),o.delete(n)),t}function r9(t){return aQ(t)?e:t}function r7(t,n,r,i,a,o){var s=1&r,l=t.length,u=n.length;if(l!=u&&!(s&&u>l))return!1;var c=o.get(t),d=o.get(n);if(c&&d)return c==n&&d==t;var h=-1,f=!0,p=2&r?new nb:e;for(o.set(t,n),o.set(n,t);++h<l;){var m=t[h],g=n[h];if(i)var v=s?i(g,m,h,n,t,o):i(m,g,h,t,n,o);if(v!==e){if(v)continue;f=!1;break}if(p){if(!td(n,function(e,t){if(!tC(p,t)&&(m===e||a(m,e,r,i,o)))return p.push(t)})){f=!1;break}}else if(m!==g&&!a(m,g,r,i,o)){f=!1;break}}return o.delete(t),o.delete(n),f}function ie(t){return ik(ix(t,e,iV),t+"")}var it=nt?function(e){return nt.get(e)}:oF;function ir(e){for(var t=e.name+"",n=nn[t],r=eI.call(nn,t)?n.length:0;r--;){var i=n[r],a=i.func;if(null==a||a==e)return i.name}return t}function ii(e){return(eI.call(nd,"placeholder")?nd:e).placeholder}function ia(){var e=nd.iteratee||oD;return e=e===oD?n4:e,arguments.length?e(arguments[0],arguments[1]):e}function io(e,t){var n,r=e.__data__;return("string"==(n=typeof t)||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==t:null===t)?r["string"==typeof t?"string":"hash"]:r.map}function is(e){for(var t=os(e),n=t.length;n--;){var r=t[n],i=e[r];t[n]=[r,i,i==i&&!aU(i)]}return t}function il(t,n){var r=null==t?e:t[n];return n3(r)?r:e}var iu=t$?function(e){return null==e?[]:ti(t$(e=eA(e)),function(t){return eJ.call(e,t)})}:oH,ic=t$?function(e){for(var t=[];e;)tl(t,iu(e)),e=eZ(e);return t}:oH,id=n$;function ih(e,t,n){for(var r=-1,i=(t=rk(t,e)).length,a=!1;++r<i;){var o=iR(t[r]);if(!(a=null!=e&&n(e,o)))break;e=e[o]}return a||++r!=i?a:!!(i=null==e?0:e.length)&&aB(i)&&ig(o,i)&&(aL(e)||aI(e))}function ip(e){return"function"!=typeof e.constructor||iE(e)?{}:nh(eZ(e))}function im(e){return aL(e)||aI(e)||!!(e2&&e&&e[e2])}function ig(e,t){var n=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==n||"symbol"!=n&&eh.test(e))&&e>-1&&e%1==0&&e<t}function iv(e,t,n){if(!aU(n))return!1;var r=typeof t;return!!("number"==r?aO(n)&&ig(t,n.length):"string"==r&&t in n)&&a_(n[t],e)}function iy(e,t){if(aL(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!a$(e))||G.test(e)||!H.test(e)||null!=t&&e in eA(t)}function ib(e){var t=ir(e),n=nd[t];if("function"!=typeof n||!(t in nm.prototype))return!1;if(e===n)return!0;var r=it(n);return!!r&&e===r[0]}(t5&&id(new t5(new ArrayBuffer(1)))!=S||t8&&id(new t8)!=m||t6&&id(t6.resolve())!=y||t9&&id(new t9)!=A||t7&&id(new t7)!=x)&&(id=function(t){var n=n$(t),r=n==v?t.constructor:e,i=r?iD(r):"";if(i)switch(i){case nr:return S;case ni:return m;case na:return y;case no:return A;case ns:return x}return n});var iA=eC?aj:oG;function iE(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||e_)}function iw(t,n){return function(r){return null!=r&&r[t]===n&&(n!==e||t in eA(r))}}function ix(t,n,r){return n=tJ(n===e?t.length-1:n,0),function(){for(var e=arguments,i=-1,a=tJ(e.length-n,0),o=ec(a);++i<a;)o[i]=e[n+i];i=-1;for(var s=ec(n+1);++i<n;)s[i]=e[i];return s[n]=r(o),te(t,this,s)}}function iT(e,t){return t.length<2?e:nG(e,rh(t,0,-1))}function iS(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}var i_=iL(rc),iC=tH||function(e,t){return eX.setTimeout(e,t)},ik=iL(rd);function iI(e,t,n){var r,i,a=t+"";return ik(e,function(e,t){var n=t.length;if(!n)return e;var r=n-1;return t[r]=(n>1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(X,"{\n/* [wrapped with "+t+"] */\n")}(a,(i=(r=a.match(J))?r[1].split(ee):[],tn(o,function(e){var t="_."+e[0];n&e[1]&&!ta(i,t)&&i.push(t)}),i.sort())))}function iL(t){var n=0,r=0;return function(){var i=t1(),a=16-(i-r);if(r=i,a>0){if(++n>=800)return arguments[0]}else n=0;return t.apply(e,arguments)}}function iP(t,n){var r=-1,i=t.length,a=i-1;for(n=n===e?i:n;++r<n;){var o=ro(r,a),s=t[o];t[o]=t[r],t[r]=s}return t.length=n,t}var iO=(o$=(oK=aA(function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(K,function(e,n,r,i){t.push(r?i.replace(er,"$1"):n||e)}),t},function(e){return 500===o$.size&&o$.clear(),e})).cache,oK);function iR(e){if("string"==typeof e||a$(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function iD(e){if(null!=e){try{return ek.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function iN(e){if(e instanceof nm)return e.clone();var t=new np(e.__wrapped__,e.__chain__);return t.__actions__=rj(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}var iM=rl(function(e,t){return aR(e)?nD(e,nU(t,1,aR,!0)):[]}),ij=rl(function(t,n){var r=iG(n);return aR(r)&&(r=e),aR(t)?nD(t,nU(n,1,aR,!0),ia(r,2)):[]}),iF=rl(function(t,n){var r=iG(n);return aR(r)&&(r=e),aR(t)?nD(t,nU(n,1,aR,!0),e,r):[]});function iB(e,t,n){var r=null==e?0:e.length;if(!r)return -1;var i=null==n?0:a0(n);return i<0&&(i=tJ(r+i,0)),tp(e,ia(t,3),i)}function iU(t,n,r){var i=null==t?0:t.length;if(!i)return -1;var a=i-1;return r!==e&&(a=a0(r),a=r<0?tJ(i+a,0):t0(a,i-1)),tp(t,ia(n,3),a,!0)}function iV(e){return null!=e&&e.length?nU(e,1):[]}function iz(t){return t&&t.length?t[0]:e}var iq=rl(function(e){var t=ts(e,r_);return t.length&&t[0]===e[0]?nX(t):[]}),iQ=rl(function(t){var n=iG(t),r=ts(t,r_);return n===iG(r)?n=e:r.pop(),r.length&&r[0]===t[0]?nX(r,ia(n,2)):[]}),iH=rl(function(t){var n=iG(t),r=ts(t,r_);return(n="function"==typeof n?n:e)&&r.pop(),r.length&&r[0]===t[0]?nX(r,e,n):[]});function iG(t){var n=null==t?0:t.length;return n?t[n-1]:e}var iK=rl(i$);function i$(e,t){return e&&e.length&&t&&t.length?ri(e,t):e}var iW=ie(function(e,t){var n=null==e?0:e.length,r=nI(e,t);return ra(e,ts(t,function(e){return ig(e,n)?+e:e}).sort(rD)),r});function iZ(e){return null==e?e:t4.call(e)}var iY=rl(function(e){return rb(nU(e,1,aR,!0))}),iX=rl(function(t){var n=iG(t);return aR(n)&&(n=e),rb(nU(t,1,aR,!0),ia(n,2))}),iJ=rl(function(t){var n=iG(t);return n="function"==typeof n?n:e,rb(nU(t,1,aR,!0),e,n)});function i0(e){if(!e||!e.length)return[];var t=0;return e=ti(e,function(e){if(aR(e))return t=tJ(e.length,t),!0}),tx(t,function(t){return ts(e,tb(t))})}function i1(t,n){if(!t||!t.length)return[];var r=i0(t);return null==n?r:ts(r,function(t){return te(n,e,t)})}var i2=rl(function(e,t){return aR(e)?nD(e,t):[]}),i3=rl(function(e){return rT(ti(e,aR))}),i4=rl(function(t){var n=iG(t);return aR(n)&&(n=e),rT(ti(t,aR),ia(n,2))}),i5=rl(function(t){var n=iG(t);return n="function"==typeof n?n:e,rT(ti(t,aR),e,n)}),i8=rl(i0),i6=rl(function(t){var n=t.length,r=n>1?t[n-1]:e;return r="function"==typeof r?(t.pop(),r):e,i1(t,r)});function i9(e){var t=nd(e);return t.__chain__=!0,t}function i7(e,t){return t(e)}var ae=ie(function(t){var n=t.length,r=n?t[0]:0,i=this.__wrapped__,a=function(e){return nI(e,t)};return!(n>1||this.__actions__.length)&&i instanceof nm&&ig(r)?((i=i.slice(r,+r+(n?1:0))).__actions__.push({func:i7,args:[a],thisArg:e}),new np(i,this.__chain__).thru(function(t){return n&&!t.length&&t.push(e),t})):this.thru(a)}),at=rB(function(e,t,n){eI.call(e,n)?++e[n]:nk(e,n,1)}),an=rG(iB),ar=rG(iU);function ai(e,t){return(aL(e)?tn:nN)(e,ia(t,3))}function aa(e,t){return(aL(e)?function(e,t){for(var n=null==e?0:e.length;n--&&!1!==t(e[n],n,e););return e}:nM)(e,ia(t,3))}var ao=rB(function(e,t,n){eI.call(e,n)?e[n].push(t):nk(e,n,[t])}),as=rl(function(e,t,n){var r=-1,i="function"==typeof t,a=aO(e)?ec(e.length):[];return nN(e,function(e){a[++r]=i?te(t,e,n):nJ(e,t,n)}),a}),al=rB(function(e,t,n){nk(e,n,t)});function au(e,t){return(aL(e)?ts:n6)(e,ia(t,3))}var ac=rB(function(e,t,n){e[n?0:1].push(t)},function(){return[[],[]]}),ad=rl(function(e,t){if(null==e)return[];var n=t.length;return n>1&&iv(e,t[0],t[1])?t=[]:n>2&&iv(t[0],t[1],t[2])&&(t=[t[0]]),rn(e,nU(t,1),[])}),ah=tQ||function(){return eX.Date.now()};function af(t,n,r){return n=r?e:n,n=t&&null==n?t.length:n,r5(t,128,e,e,e,e,n)}function ap(n,r){var i;if("function"!=typeof r)throw new ex(t);return n=a0(n),function(){return--n>0&&(i=r.apply(this,arguments)),n<=1&&(r=e),i}}var am=rl(function(e,t,n){var r=1;if(n.length){var i=tM(n,ii(am));r|=32}return r5(e,r,t,n,i)}),ag=rl(function(e,t,n){var r=3;if(n.length){var i=tM(n,ii(ag));r|=32}return r5(t,r,e,n,i)});function av(n,r,i){var a,o,s,l,u,c,d=0,h=!1,f=!1,p=!0;if("function"!=typeof n)throw new ex(t);function m(t){var r=a,i=o;return a=o=e,d=t,l=n.apply(i,r)}function g(t){var n=t-c;return c===e||n>=r||n<0||f&&t-d>=s}function v(){var e,t=ah();if(g(t))return y(t);u=iC(v,(e=r-(t-c),f?t0(e,s-(t-d)):e))}function y(t){return u=e,p&&a?m(t):(a=o=e,l)}function b(){var t,n=ah(),i=g(n);if(a=arguments,o=this,c=n,i){if(u===e)return d=t=c,u=iC(v,r),h?m(t):l;if(f)return rL(u),u=iC(v,r),m(c)}return u===e&&(u=iC(v,r)),l}return r=a2(r)||0,aU(i)&&(h=!!i.leading,s=(f="maxWait"in i)?tJ(a2(i.maxWait)||0,r):s,p="trailing"in i?!!i.trailing:p),b.cancel=function(){u!==e&&rL(u),d=0,a=c=o=u=e},b.flush=function(){return u===e?l:y(ah())},b}var ay=rl(function(e,t){return nR(e,1,t)}),ab=rl(function(e,t,n){return nR(e,a2(t)||0,n)});function aA(e,n){if("function"!=typeof e||null!=n&&"function"!=typeof n)throw new ex(t);var r=function(){var t=arguments,i=n?n.apply(this,t):t[0],a=r.cache;if(a.has(i))return a.get(i);var o=e.apply(this,t);return r.cache=a.set(i,o)||a,o};return r.cache=new(aA.Cache||ny),r}function aE(e){if("function"!=typeof e)throw new ex(t);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}aA.Cache=ny;var aw=rl(function(e,t){var n=(t=1==t.length&&aL(t[0])?ts(t[0],tS(ia())):ts(nU(t,1),tS(ia()))).length;return rl(function(r){for(var i=-1,a=t0(r.length,n);++i<a;)r[i]=t[i].call(this,r[i]);return te(e,this,r)})}),ax=rl(function(t,n){var r=tM(n,ii(ax));return r5(t,32,e,n,r)}),aT=rl(function(t,n){var r=tM(n,ii(aT));return r5(t,64,e,n,r)}),aS=ie(function(t,n){return r5(t,256,e,e,e,n)});function a_(e,t){return e===t||e!=e&&t!=t}var aC=r0(nW),ak=r0(function(e,t){return e>=t}),aI=n0(function(){return arguments}())?n0:function(e){return aV(e)&&eI.call(e,"callee")&&!eJ.call(e,"callee")},aL=ec.isArray,aP=e4?tS(e4):function(e){return aV(e)&&n$(e)==T};function aO(e){return null!=e&&aB(e.length)&&!aj(e)}function aR(e){return aV(e)&&aO(e)}var aD=tW||oG,aN=e5?tS(e5):function(e){return aV(e)&&n$(e)==d};function aM(e){if(!aV(e))return!1;var t=n$(e);return t==h||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!aQ(e)}function aj(e){if(!aU(e))return!1;var t=n$(e);return t==f||t==p||"[object AsyncFunction]"==t||"[object Proxy]"==t}function aF(e){return"number"==typeof e&&e==a0(e)}function aB(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}function aU(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function aV(e){return null!=e&&"object"==typeof e}var az=e8?tS(e8):function(e){return aV(e)&&id(e)==m};function aq(e){return"number"==typeof e||aV(e)&&n$(e)==g}function aQ(e){if(!aV(e)||n$(e)!=v)return!1;var t=eZ(e);if(null===t)return!0;var n=eI.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&ek.call(n)==eR}var aH=e6?tS(e6):function(e){return aV(e)&&n$(e)==b},aG=e9?tS(e9):function(e){return aV(e)&&id(e)==A};function aK(e){return"string"==typeof e||!aL(e)&&aV(e)&&n$(e)==E}function a$(e){return"symbol"==typeof e||aV(e)&&n$(e)==w}var aW=e7?tS(e7):function(e){return aV(e)&&aB(e.length)&&!!eH[n$(e)]},aZ=r0(n8),aY=r0(function(e,t){return e<=t});function aX(e){if(!e)return[];if(aO(e))return aK(e)?tB(e):rj(e);if(e3&&e[e3])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[e3]());var t=id(e);return(t==m?tD:t==A?tj:og)(e)}function aJ(e){return e?(e=a2(e))===i||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}function a0(e){var t=aJ(e),n=t%1;return t==t?n?t-n:t:0}function a1(e){return e?nL(a0(e),0,4294967295):0}function a2(e){if("number"==typeof e)return e;if(a$(e))return a;if(aU(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=aU(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=tT(e);var n=es.test(e);return n||ed.test(e)?eW(e.slice(2),n?2:8):eo.test(e)?a:+e}function a3(e){return rF(e,ol(e))}function a4(e){return null==e?"":ry(e)}var a5=rU(function(e,t){if(iE(t)||aO(t))rF(t,os(t),e);else for(var n in t)eI.call(t,n)&&nT(e,n,t[n])}),a8=rU(function(e,t){rF(t,ol(t),e)}),a6=rU(function(e,t,n,r){rF(t,ol(t),e,r)}),a9=rU(function(e,t,n,r){rF(t,os(t),e,r)}),a7=ie(nI),oe=rl(function(t,n){t=eA(t);var r=-1,i=n.length,a=i>2?n[2]:e;for(a&&iv(n[0],n[1],a)&&(i=1);++r<i;)for(var o=n[r],s=ol(o),l=-1,u=s.length;++l<u;){var c=s[l],d=t[c];(d===e||a_(d,e_[c])&&!eI.call(t,c))&&(t[c]=o[c])}return t}),ot=rl(function(t){return t.push(e,r6),te(oc,e,t)});function on(t,n,r){var i=null==t?e:nG(t,n);return i===e?r:i}function or(e,t){return null!=e&&ih(e,t,nY)}var oi=rW(function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=eO.call(t)),e[t]=n},oL(oR)),oa=rW(function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=eO.call(t)),eI.call(e,t)?e[t].push(n):e[t]=[n]},ia),oo=rl(nJ);function os(e){return aO(e)?nE(e):n5(e)}function ol(e){return aO(e)?nE(e,!0):function(e){if(!aU(e))return function(e){var t=[];if(null!=e)for(var n in eA(e))t.push(n);return t}(e);var t=iE(e),n=[];for(var r in e)("constructor"!=r||!t&&eI.call(e,r))&&n.push(r);return n}(e)}var ou=rU(function(e,t,n){re(e,t,n)}),oc=rU(function(e,t,n,r){re(e,t,n,r)}),od=ie(function(e,t){var n={};if(null==e)return n;var r=!1;t=ts(t,function(t){return t=rk(t,e),r||(r=t.length>1),t}),rF(e,nK(e,ol,ic),n),r&&(n=nP(n,7,r9));for(var i=t.length;i--;)rA(n,t[i]);return n}),oh=ie(function(e,t){return null==e?{}:rr(e,t,function(t,n){return or(e,n)})});function of(e,t){if(null==e)return{};var n=ts(nK(e,ol,ic),function(e){return[e]});return t=ia(t),rr(e,n,function(e,n){return t(e,n[0])})}var op=r4(os),om=r4(ol);function og(e){return null==e?[]:t_(e,os(e))}var ov=rQ(function(e,t,n){return t=t.toLowerCase(),e+(n?oy(t):t)});function oy(e){return o_(a4(e).toLowerCase())}function ob(e){return(e=a4(e))&&e.replace(ef,tL).replace(eF,"")}var oA=rQ(function(e,t,n){return e+(n?"-":"")+t.toLowerCase()}),oE=rQ(function(e,t,n){return e+(n?" ":"")+t.toLowerCase()}),ow=rq("toLowerCase"),ox=rQ(function(e,t,n){return e+(n?"_":"")+t.toLowerCase()}),oT=rQ(function(e,t,n){return e+(n?" ":"")+o_(t)}),oS=rQ(function(e,t,n){return e+(n?" ":"")+t.toUpperCase()}),o_=rq("toUpperCase");function oC(t,n,r){var i;return t=a4(t),(n=r?e:n)===e?(i=t,ez.test(i))?t.match(eU)||[]:t.match(et)||[]:t.match(n)||[]}var ok=rl(function(t,n){try{return te(t,e,n)}catch(e){return aM(e)?e:new ev(e)}}),oI=ie(function(e,t){return tn(t,function(t){nk(e,t=iR(t),am(e[t],e))}),e});function oL(e){return function(){return e}}var oP=rK(),oO=rK(!0);function oR(e){return e}function oD(e){return n4("function"==typeof e?e:nP(e,1))}var oN=rl(function(e,t){return function(n){return nJ(n,e,t)}}),oM=rl(function(e,t){return function(n){return nJ(e,n,t)}});function oj(e,t,n){var r=os(t),i=nH(t,r);null!=n||aU(t)&&(i.length||!r.length)||(n=t,t=e,e=this,i=nH(t,os(t)));var a=!(aU(n)&&"chain"in n&&!n.chain),o=aj(e);return tn(i,function(n){var r=t[n];e[n]=r,o&&(e.prototype[n]=function(){var t=this.__chain__;if(a||t){var n=e(this.__wrapped__);return(n.__actions__=rj(this.__actions__)).push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,tl([this.value()],arguments))})}),e}function oF(){}var oB=rY(ts),oU=rY(tr),oV=rY(td);function oz(e){return iy(e)?tb(iR(e)):function(t){return nG(t,e)}}var oq=rJ(),oQ=rJ(!0);function oH(){return[]}function oG(){return!1}var oK,o$,oW,oZ=rZ(function(e,t){return e+t},0),oY=r2("ceil"),oX=rZ(function(e,t){return e/t},1),oJ=r2("floor"),o0=rZ(function(e,t){return e*t},1),o1=r2("round"),o2=rZ(function(e,t){return e-t},0);return nd.after=function(e,n){if("function"!=typeof n)throw new ex(t);return e=a0(e),function(){if(--e<1)return n.apply(this,arguments)}},nd.ary=af,nd.assign=a5,nd.assignIn=a8,nd.assignInWith=a6,nd.assignWith=a9,nd.at=a7,nd.before=ap,nd.bind=am,nd.bindAll=oI,nd.bindKey=ag,n
vendor: 7,115 bytes, line 64
64d.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return aL(e)?e:[e]},nd.chain=i9,nd.chunk=function(t,n,r){n=(r?iv(t,n,r):n===e)?1:tJ(a0(n),0);var i=null==t?0:t.length;if(!i||n<1)return[];for(var a=0,o=0,s=ec(tG(i/n));a<i;)s[o++]=rh(t,a,a+=n);return s},nd.compact=function(e){for(var t=-1,n=null==e?0:e.length,r=0,i=[];++t<n;){var a=e[t];a&&(i[r++]=a)}return i},nd.concat=function(){var e=arguments.length;if(!e)return[];for(var t=ec(e-1),n=arguments[0],r=e;r--;)t[r-1]=arguments[r];return tl(aL(n)?rj(n):[n],nU(t,1))},nd.cond=function(e){var n=null==e?0:e.length,r=ia();return e=n?ts(e,function(e){if("function"!=typeof e[1])throw new ex(t);return[r(e[0]),e[1]]}):[],rl(function(t){for(var r=-1;++r<n;){var i=e[r];if(te(i[0],this,t))return te(i[1],this,t)}})},nd.conforms=function(e){var t,n;return n=os(t=nP(e,1)),function(e){return nO(e,t,n)}},nd.constant=oL,nd.countBy=at,nd.create=function(e,t){var n=nh(e);return null==t?n:nC(n,t)},nd.curry=function t(n,r,i){var a=r5(n,8,e,e,e,e,e,r=i?e:r);return a.placeholder=t.placeholder,a},nd.curryRight=function t(n,r,i){var a=r5(n,16,e,e,e,e,e,r=i?e:r);return a.placeholder=t.placeholder,a},nd.debounce=av,nd.defaults=oe,nd.defaultsDeep=ot,nd.defer=ay,nd.delay=ab,nd.difference=iM,nd.differenceBy=ij,nd.differenceWith=iF,nd.drop=function(t,n,r){var i=null==t?0:t.length;return i?rh(t,(n=r||n===e?1:a0(n))<0?0:n,i):[]},nd.dropRight=function(t,n,r){var i=null==t?0:t.length;return i?rh(t,0,(n=i-(n=r||n===e?1:a0(n)))<0?0:n):[]},nd.dropRightWhile=function(e,t){return e&&e.length?rw(e,ia(t,3),!0,!0):[]},nd.dropWhile=function(e,t){return e&&e.length?rw(e,ia(t,3),!0):[]},nd.fill=function(t,n,r,i){var a=null==t?0:t.length;return a?(r&&"number"!=typeof r&&iv(t,n,r)&&(r=0,i=a),function(t,n,r,i){var a=t.length;for((r=a0(r))<0&&(r=-r>a?0:a+r),(i=i===e||i>a?a:a0(i))<0&&(i+=a),i=r>i?0:a1(i);r<i;)t[r++]=n;return t}(t,n,r,i)):[]},nd.filter=function(e,t){return(aL(e)?ti:nB)(e,ia(t,3))},nd.flatMap=function(e,t){return nU(au(e,t),1)},nd.flatMapDeep=function(e,t){return nU(au(e,t),i)},nd.flatMapDepth=function(t,n,r){return r=r===e?1:a0(r),nU(au(t,n),r)},nd.flatten=iV,nd.flattenDeep=function(e){return null!=e&&e.length?nU(e,i):[]},nd.flattenDepth=function(t,n){return null!=t&&t.length?nU(t,n=n===e?1:a0(n)):[]},nd.flip=function(e){return r5(e,512)},nd.flow=oP,nd.flowRight=oO,nd.fromPairs=function(e){for(var t=-1,n=null==e?0:e.length,r={};++t<n;){var i=e[t];r[i[0]]=i[1]}return r},nd.functions=function(e){return null==e?[]:nH(e,os(e))},nd.functionsIn=function(e){return null==e?[]:nH(e,ol(e))},nd.groupBy=ao,nd.initial=function(e){return null!=e&&e.length?rh(e,0,-1):[]},nd.intersection=iq,nd.intersectionBy=iQ,nd.intersectionWith=iH,nd.invert=oi,nd.invertBy=oa,nd.invokeMap=as,nd.iteratee=oD,nd.keyBy=al,nd.keys=os,nd.keysIn=ol,nd.map=au,nd.mapKeys=function(e,t){var n={};return t=ia(t,3),nq(e,function(e,r,i){nk(n,t(e,r,i),e)}),n},nd.mapValues=function(e,t){var n={};return t=ia(t,3),nq(e,function(e,r,i){nk(n,r,t(e,r,i))}),n},nd.matches=function(e){return n9(nP(e,1))},nd.matchesProperty=function(e,t){return n7(e,nP(t,1))},nd.memoize=aA,nd.merge=ou,nd.mergeWith=oc,nd.method=oN,nd.methodOf=oM,nd.mixin=oj,nd.negate=aE,nd.nthArg=function(e){return e=a0(e),rl(function(t){return rt(t,e)})},nd.omit=od,nd.omitBy=function(e,t){return of(e,aE(ia(t)))},nd.once=function(e){return ap(2,e)},nd.orderBy=function(t,n,r,i){return null==t?[]:(aL(n)||(n=null==n?[]:[n]),aL(r=i?e:r)||(r=null==r?[]:[r]),rn(t,n,r))},nd.over=oB,nd.overArgs=aw,nd.overEvery=oU,nd.overSome=oV,nd.partial=ax,nd.partialRight=aT,nd.partition=ac,nd.pick=oh,nd.pickBy=of,nd.property=oz,nd.propertyOf=function(t){return function(n){return null==t?e:nG(t,n)}},nd.pull=iK,nd.pullAll=i$,nd.pullAllBy=function(e,t,n){return e&&e.length&&t&&t.length?ri(e,t,ia(n,2)):e},nd.pullAllWith=function(t,n,r){return t&&t.length&&n&&n.length?ri(t,n,e,r):t},nd.pullAt=iW,nd.range=oq,nd.rangeRight=oQ,nd.rearg=aS,nd.reject=function(e,t){return(aL(e)?ti:nB)(e,aE(ia(t,3)))},nd.remove=function(e,t){var n=[];if(!e||!e.length)return n;var r=-1,i=[],a=e.length;for(t=ia(t,3);++r<a;){var o=e[r];t(o,r,e)&&(n.push(o),i.push(r))}return ra(e,i),n},nd.rest=function(n,r){if("function"!=typeof n)throw new ex(t);return rl(n,r=r===e?r:a0(r))},nd.reverse=iZ,nd.sampleSize=function(t,n,r){return n=(r?iv(t,n,r):n===e)?1:a0(n),(aL(t)?function(e,t){return iP(rj(e),nL(t,0,e.length))}:function(e,t){var n=og(e);return iP(n,nL(t,0,n.length))})(t,n)},nd.set=function(e,t,n){return null==e?e:ru(e,t,n)},nd.setWith=function(t,n,r,i){return i="function"==typeof i?i:e,null==t?t:ru(t,n,r,i)},nd.shuffle=function(e){return(aL(e)?function(e){return iP(rj(e))}:function(e){return iP(og(e))})(e)},nd.slice=function(t,n,r){var i=null==t?0:t.length;return i?(r&&"number"!=typeof r&&iv(t,n,r)?(n=0,r=i):(n=null==n?0:a0(n),r=r===e?i:a0(r)),rh(t,n,r)):[]},nd.sortBy=ad,nd.sortedUniq=function(e){return e&&e.length?rg(e):[]},nd.sortedUniqBy=function(e,t){return e&&e.length?rg(e,ia(t,2)):[]},nd.split=function(t,n,r){return r&&"number"!=typeof r&&iv(t,n,r)&&(n=r=e),(r=r===e?4294967295:r>>>0)?(t=a4(t))&&("string"==typeof n||null!=n&&!aH(n))&&!(n=ry(n))&&tR(t)?rI(tB(t),0,r):t.split(n,r):[]},nd.spread=function(e,n){if("function"!=typeof e)throw new ex(t);return n=null==n?0:tJ(a0(n),0),rl(function(t){var r=t[n],i=rI(t,0,n);return r&&tl(i,r),te(e,this,i)})},nd.tail=function(e){var t=null==e?0:e.length;return t?rh(e,1,t):[]},nd.take=function(t,n,r){return t&&t.length?rh(t,0,(n=r||n===e?1:a0(n))<0?0:n):[]},nd.takeRight=function(t,n,r){var i=null==t?0:t.length;return i?rh(t,(n=i-(n=r||n===e?1:a0(n)))<0?0:n,i):[]},nd.takeRightWhile=function(e,t){return e&&e.length?rw(e,ia(t,3),!1,!0):[]},nd.takeWhile=function(e,t){return e&&e.length?rw(e,ia(t,3)):[]},nd.tap=function(e,t){return t(e),e},nd.throttle=function(e,n,r){var i=!0,a=!0;if("function"!=typeof e)throw new ex(t);return aU(r)&&(i="leading"in r?!!r.leading:i,a="trailing"in r?!!r.trailing:a),av(e,n,{leading:i,maxWait:n,trailing:a})},nd.thru=i7,nd.toArray=aX,nd.toPairs=op,nd.toPairsIn=om,nd.toPath=function(e){return aL(e)?ts(e,iR):a$(e)?[e]:rj(iO(a4(e)))},nd.toPlainObject=a3,nd.transform=function(e,t,n){var r=aL(e),i=r||aD(e)||aW(e);if(t=ia(t,4),null==n){var a=e&&e.constructor;n=i?r?new a:[]:aU(e)&&aj(a)?nh(eZ(e)):{}}return(i?tn:nq)(e,function(e,r,i){return t(n,e,r,i)}),n},nd.unary=function(e){return af(e,1)},nd.union=iY,nd.unionBy=iX,nd.unionWith=iJ,nd.uniq=function(e){return e&&e.length?rb(e):[]},nd.uniqBy=function(e,t){return e&&e.length?rb(e,ia(t,2)):[]},nd.uniqWith=function(t,n){return n="function"==typeof n?n:e,t&&t.length?rb(t,e,n):[]},nd.unset=function(e,t){return null==e||rA(e,t)},nd.unzip=i0,nd.unzipWith=i1,nd.update=function(e,t,n){return null==e?e:rE(e,t,rC(n))},nd.updateWith=function(t,n,r,i){return i="function"==typeof i?i:e,null==t?t:rE(t,n,rC(r),i)},nd.values=og,nd.valuesIn=function(e){return null==e?[]:t_(e,ol(e))},nd.without=i2,nd.words=oC,nd.wrap=function(e,t){return ax(rC(t),e)},nd.xor=i3,nd.xorBy=i4,nd.xorWith=i5,nd.zip=i8,nd.zipObject=function(e,t){return rS(e||[],t||[],nT)},nd.zipObjectDeep=function(e,t){return rS(e||[],t||[],ru)}
vendor: 6,578 bytes, line 64
64,nd.zipWith=i6,nd.entries=op,nd.entriesIn=om,nd.extend=a8,nd.extendWith=a6,oj(nd,nd),nd.add=oZ,nd.attempt=ok,nd.camelCase=ov,nd.capitalize=oy,nd.ceil=oY,nd.clamp=function(t,n,r){return r===e&&(r=n,n=e),r!==e&&(r=(r=a2(r))==r?r:0),n!==e&&(n=(n=a2(n))==n?n:0),nL(a2(t),n,r)},nd.clone=function(e){return nP(e,4)},nd.cloneDeep=function(e){return nP(e,5)},nd.cloneDeepWith=function(t,n){return nP(t,5,n="function"==typeof n?n:e)},nd.cloneWith=function(t,n){return nP(t,4,n="function"==typeof n?n:e)},nd.conformsTo=function(e,t){return null==t||nO(e,t,os(t))},nd.deburr=ob,nd.defaultTo=function(e,t){return null==e||e!=e?t:e},nd.divide=oX,nd.endsWith=function(t,n,r){t=a4(t),n=ry(n);var i=t.length,a=r=r===e?i:nL(a0(r),0,i);return(r-=n.length)>=0&&t.slice(r,a)==n},nd.eq=a_,nd.escape=function(e){return(e=a4(e))&&V.test(e)?e.replace(B,tP):e},nd.escapeRegExp=function(e){return(e=a4(e))&&W.test(e)?e.replace($,"\\$&"):e},nd.every=function(t,n,r){var i=aL(t)?tr:nj;return r&&iv(t,n,r)&&(n=e),i(t,ia(n,3))},nd.find=an,nd.findIndex=iB,nd.findKey=function(e,t){return tf(e,ia(t,3),nq)},nd.findLast=ar,nd.findLastIndex=iU,nd.findLastKey=function(e,t){return tf(e,ia(t,3),nQ)},nd.floor=oJ,nd.forEach=ai,nd.forEachRight=aa,nd.forIn=function(e,t){return null==e?e:nV(e,ia(t,3),ol)},nd.forInRight=function(e,t){return null==e?e:nz(e,ia(t,3),ol)},nd.forOwn=function(e,t){return e&&nq(e,ia(t,3))},nd.forOwnRight=function(e,t){return e&&nQ(e,ia(t,3))},nd.get=on,nd.gt=aC,nd.gte=ak,nd.has=function(e,t){return null!=e&&ih(e,t,nZ)},nd.hasIn=or,nd.head=iz,nd.identity=oR,nd.includes=function(e,t,n,r){e=aO(e)?e:og(e),n=n&&!r?a0(n):0;var i=e.length;return n<0&&(n=tJ(i+n,0)),aK(e)?n<=i&&e.indexOf(t,n)>-1:!!i&&tm(e,t,n)>-1},nd.indexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return -1;var i=null==n?0:a0(n);return i<0&&(i=tJ(r+i,0)),tm(e,t,i)},nd.inRange=function(t,n,r){var i,a,o;return n=aJ(n),r===e?(r=n,n=0):r=aJ(r),(i=t=a2(t))>=t0(a=n,o=r)&&i<tJ(a,o)},nd.invoke=oo,nd.isArguments=aI,nd.isArray=aL,nd.isArrayBuffer=aP,nd.isArrayLike=aO,nd.isArrayLikeObject=aR,nd.isBoolean=function(e){return!0===e||!1===e||aV(e)&&n$(e)==c},nd.isBuffer=aD,nd.isDate=aN,nd.isElement=function(e){return aV(e)&&1===e.nodeType&&!aQ(e)},nd.isEmpty=function(e){if(null==e)return!0;if(aO(e)&&(aL(e)||"string"==typeof e||"function"==typeof e.splice||aD(e)||aW(e)||aI(e)))return!e.length;var t=id(e);if(t==m||t==A)return!e.size;if(iE(e))return!n5(e).length;for(var n in e)if(eI.call(e,n))return!1;return!0},nd.isEqual=function(e,t){return n1(e,t)},nd.isEqualWith=function(t,n,r){var i=(r="function"==typeof r?r:e)?r(t,n):e;return i===e?n1(t,n,e,r):!!i},nd.isError=aM,nd.isFinite=function(e){return"number"==typeof e&&tZ(e)},nd.isFunction=aj,nd.isInteger=aF,nd.isLength=aB,nd.isMap=az,nd.isMatch=function(e,t){return e===t||n2(e,t,is(t))},nd.isMatchWith=function(t,n,r){return r="function"==typeof r?r:e,n2(t,n,is(n),r)},nd.isNaN=function(e){return aq(e)&&e!=+e},nd.isNative=function(e){if(iA(e))throw new ev("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return n3(e)},nd.isNil=function(e){return null==e},nd.isNull=function(e){return null===e},nd.isNumber=aq,nd.isObject=aU,nd.isObjectLike=aV,nd.isPlainObject=aQ,nd.isRegExp=aH,nd.isSafeInteger=function(e){return aF(e)&&e>=-9007199254740991&&e<=9007199254740991},nd.isSet=aG,nd.isString=aK,nd.isSymbol=a$,nd.isTypedArray=aW,nd.isUndefined=function(t){return t===e},nd.isWeakMap=function(e){return aV(e)&&id(e)==x},nd.isWeakSet=function(e){return aV(e)&&"[object WeakSet]"==n$(e)},nd.join=function(e,t){return null==e?"":tY.call(e,t)},nd.kebabCase=oA,nd.last=iG,nd.lastIndexOf=function(t,n,r){var i=null==t?0:t.length;if(!i)return -1;var a=i;return r!==e&&(a=(a=a0(r))<0?tJ(i+a,0):t0(a,i-1)),n==n?function(e,t,n){for(var r=n+1;r--&&e[r]!==t;);return r}(t,n,a):tp(t,tv,a,!0)},nd.lowerCase=oE,nd.lowerFirst=ow,nd.lt=aZ,nd.lte=aY,nd.max=function(t){return t&&t.length?nF(t,oR,nW):e},nd.maxBy=function(t,n){return t&&t.length?nF(t,ia(n,2),nW):e},nd.mean=function(e){return ty(e,oR)},nd.meanBy=function(e,t){return ty(e,ia(t,2))},nd.min=function(t){return t&&t.length?nF(t,oR,n8):e},nd.minBy=function(t,n){return t&&t.length?nF(t,ia(n,2),n8):e},nd.stubArray=oH,nd.stubFalse=oG,nd.stubObject=function(){return{}},nd.stubString=function(){return""},nd.stubTrue=function(){return!0},nd.multiply=o0,nd.nth=function(t,n){return t&&t.length?rt(t,a0(n)):e},nd.noConflict=function(){return eX._===this&&(eX._=eD),this},nd.noop=oF,nd.now=ah,nd.pad=function(e,t,n){e=a4(e);var r=(t=a0(t))?tF(e):0;if(!t||r>=t)return e;var i=(t-r)/2;return rX(tK(i),n)+e+rX(tG(i),n)},nd.padEnd=function(e,t,n){e=a4(e);var r=(t=a0(t))?tF(e):0;return t&&r<t?e+rX(t-r,n):e},nd.padStart=function(e,t,n){e=a4(e);var r=(t=a0(t))?tF(e):0;return t&&r<t?rX(t-r,n)+e:e},nd.parseInt=function(e,t,n){return n||null==t?t=0:t&&(t=+t),t2(a4(e).replace(Z,""),t||0)},nd.random=function(t,n,r){if(r&&"boolean"!=typeof r&&iv(t,n,r)&&(n=r=e),r===e&&("boolean"==typeof n?(r=n,n=e):"boolean"==typeof t&&(r=t,t=e)),t===e&&n===e?(t=0,n=1):(t=aJ(t),n===e?(n=t,t=0):n=aJ(n)),t>n){var i=t;t=n,n=i}if(r||t%1||n%1){var a=t3();return t0(t+a*(n-t+e$("1e-"+((a+"").length-1))),n)}return ro(t,n)},nd.reduce=function(e,t,n){var r=aL(e)?tu:tE,i=arguments.length<3;return r(e,ia(t,4),n,i,nN)},nd.reduceRight=function(e,t,n){var r=aL(e)?tc:tE,i=arguments.length<3;return r(e,ia(t,4),n,i,nM)},nd.repeat=function(t,n,r){return n=(r?iv(t,n,r):n===e)?1:a0(n),rs(a4(t),n)},nd.replace=function(){var e=arguments,t=a4(e[0]);return e.length<3?t:t.replace(e[1],e[2])},nd.result=function(t,n,r){var i=-1,a=(n=rk(n,t)).length;for(a||(a=1,t=e);++i<a;){var o=null==t?e:t[iR(n[i])];o===e&&(i=a,o=r),t=aj(o)?o.call(t):o}return t},nd.round=o1,nd.runInContext=s,nd.sample=function(e){return(aL(e)?nw:function(e){return nw(og(e))})(e)},nd.size=function(e){if(null==e)return 0;if(aO(e))return aK(e)?tF(e):e.length;var t=id(e);return t==m||t==A?e.size:n5(e).length},nd.snakeCase=ox,nd.some=function(t,n,r){var i=aL(t)?td:rf;return r&&iv(t,n,r)&&(n=e),i(t,ia(n,3))},nd.sortedIndex=function(e,t){return rp(e,t)},nd.sortedIndexBy=function(e,t,n){return rm(e,t,ia(n,2))},nd.sortedIndexOf=function(e,t){var n=null==e?0:e.length;if(n){var r=rp(e,t);if(r<n&&a_(e[r],t))return r}return -1},nd.sortedLastIndex=function(e,t){return rp(e,t,!0)},nd.sortedLastIndexBy=function(e,t,n){return rm(e,t,ia(n,2),!0)},nd.sortedLastIndexOf=function(e,t){if(null!=e&&e.length){var n=rp(e,t,!0)-1;if(a_(e[n],t))return n}return -1},nd.startCase=oT,nd.startsWith=function(e,t,n){return e=a4(e),n=null==n?0:nL(a0(n),0,e.length),t=ry(t),e.slice(n,n+t.length)==t}
vendor: 4,727 bytes, line 64
64,nd.subtract=o2,nd.sum=function(e){return e&&e.length?tw(e,oR):0},nd.sumBy=function(e,t){return e&&e.length?tw(e,ia(t,2)):0},nd.template=function(t,n,r){var i=nd.templateSettings;r&&iv(t,n,r)&&(n=e),t=a4(t),n=a6({},n,i,r8);var a,o,s=a6({},n.imports,i.imports,r8),l=os(s),u=t_(s,l),c=0,d=n.interpolate||ep,h="__p += '",f=eE((n.escape||ep).source+"|"+d.source+"|"+(d===Q?ei:ep).source+"|"+(n.evaluate||ep).source+"|$","g"),p="//# sourceURL="+(eI.call(n,"sourceURL")?(n.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++eQ+"]")+"\n";t.replace(f,function(e,n,r,i,s,l){return r||(r=i),h+=t.slice(c,l).replace(em,tO),n&&(a=!0,h+="' +\n__e("+n+") +\n'"),s&&(o=!0,h+="';\n"+s+";\n__p += '"),r&&(h+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),c=l+e.length,e}),h+="';\n";var m=eI.call(n,"variable")&&n.variable;if(m){if(en.test(m))throw new ev("Invalid `variable` option passed into `_.template`")}else h="with (obj) {\n"+h+"\n}\n";h=(o?h.replace(N,""):h).replace(M,"$1").replace(j,"$1;"),h="function("+(m||"obj")+") {\n"+(m?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(a?", __e = _.escape":"")+(o?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+h+"return __p\n}";var g=ok(function(){return ey(l,p+"return "+h).apply(e,u)});if(g.source=h,aM(g))throw g;return g},nd.times=function(e,t){if((e=a0(e))<1||e>9007199254740991)return[];var n=4294967295,r=t0(e,4294967295);t=ia(t),e-=4294967295;for(var i=tx(r,t);++n<e;)t(n);return i},nd.toFinite=aJ,nd.toInteger=a0,nd.toLength=a1,nd.toLower=function(e){return a4(e).toLowerCase()},nd.toNumber=a2,nd.toSafeInteger=function(e){return e?nL(a0(e),-9007199254740991,9007199254740991):0===e?e:0},nd.toString=a4,nd.toUpper=function(e){return a4(e).toUpperCase()},nd.trim=function(t,n,r){if((t=a4(t))&&(r||n===e))return tT(t);if(!t||!(n=ry(n)))return t;var i=tB(t),a=tB(n);return rI(i,tk(i,a),tI(i,a)+1).join("")},nd.trimEnd=function(t,n,r){if((t=a4(t))&&(r||n===e))return t.slice(0,tU(t)+1);if(!t||!(n=ry(n)))return t;var i=tB(t);return rI(i,0,tI(i,tB(n))+1).join("")},nd.trimStart=function(t,n,r){if((t=a4(t))&&(r||n===e))return t.replace(Z,"");if(!t||!(n=ry(n)))return t;var i=tB(t);return rI(i,tk(i,tB(n))).join("")},nd.truncate=function(t,n){var r=30,i="...";if(aU(n)){var a="separator"in n?n.separator:a;r="length"in n?a0(n.length):r,i="omission"in n?ry(n.omission):i}var o=(t=a4(t)).length;if(tR(t)){var s=tB(t);o=s.length}if(r>=o)return t;var l=r-tF(i);if(l<1)return i;var u=s?rI(s,0,l).join(""):t.slice(0,l);if(a===e)return u+i;if(s&&(l+=u.length-l),aH(a)){if(t.slice(l).search(a)){var c,d=u;for(a.global||(a=eE(a.source,a4(ea.exec(a))+"g")),a.lastIndex=0;c=a.exec(d);)var h=c.index;u=u.slice(0,h===e?l:h)}}else if(t.indexOf(ry(a),l)!=l){var f=u.lastIndexOf(a);f>-1&&(u=u.slice(0,f))}return u+i},nd.unescape=function(e){return(e=a4(e))&&U.test(e)?e.replace(F,tV):e},nd.uniqueId=function(e){var t=++eL;return a4(e)+t},nd.upperCase=oS,nd.upperFirst=o_,nd.each=ai,nd.eachRight=aa,nd.first=iz,oj(nd,(oW={},nq(nd,function(e,t){eI.call(nd.prototype,t)||(oW[t]=e)}),oW),{chain:!1}),nd.VERSION="4.17.21",tn(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){nd[e].placeholder=nd}),tn(["drop","take"],function(t,n){nm.prototype[t]=function(r){r=r===e?1:tJ(a0(r),0);var i=this.__filtered__&&!n?new nm(this):this.clone();return i.__filtered__?i.__takeCount__=t0(r,i.__takeCount__):i.__views__.push({size:t0(r,4294967295),type:t+(i.__dir__<0?"Right":"")}),i},nm.prototype[t+"Right"]=function(e){return this.reverse()[t](e).reverse()}}),tn(["filter","map","takeWhile"],function(e,t){var n=t+1,r=1==n||3==n;nm.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:ia(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}}),tn(["head","last"],function(e,t){var n="take"+(t?"Right":"");nm.prototype[e]=function(){return this[n](1).value()[0]}}),tn(["initial","tail"],function(e,t){var n="drop"+(t?"":"Right");nm.prototype[e]=function(){return this.__filtered__?new nm(this):this[n](1)}}),nm.prototype.compact=function(){return this.filter(oR)},nm.prototype.find=function(e){return this.filter(e).head()},nm.prototype.findLast=function(e){return this.reverse().find(e)},nm.prototype.invokeMap=rl(function(e,t){return"function"==typeof e?new nm(this):this.map(function(n){return nJ(n,e,t)})}),nm.prototype.reject=function(e){return this.filter(aE(ia(e)))},nm.prototype.slice=function(t,n){t=a0(t);var r=this;return r.__filtered__&&(t>0||n<0)?new nm(r):(t<0?r=r.takeRight(-t):t&&(r=r.drop(t)),n!==e&&(r=(n=a0(n))<0?r.dropRight(-n):r.take(n-t)),r)},nm.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},nm.prototype.toArray=function(){return this.take(4294967295)}
64,nq(nm.prototype,function(t,n){var r=/^(?:filter|find|map|reject)|While$/.test(n),i=/^(?:head|last)$/.test(n),a=nd[i?"take"+("last"==n?"Right":""):n],o=i||/^find/.test(n);a&&(nd.prototype[n]=function(){var n=this.__wrapped__,s=i?[1]:arguments,l=n instanceof nm,u=s[0],c=l||aL(n),d=function(e){var t=a.apply(nd,tl([e],s));return i&&h?t[0]:t};c&&r&&"function"==typeof u&&1!=u.length&&(l=c=!1);var h=this.__chain__,f=!!this.__actions__.length,p=o&&!h,m=l&&!f;if(!o&&c){n=m?n:new nm(this);var g=t.apply(n,s);return g.__actions__.push({func:i7,args:[d],thisArg:e}),new np(g,h)}return p&&m?t.apply(this,s):(g=this.thru(d),p?i?g.value()[0]:g.value():g)})}),tn(["pop","push","shift","sort","splice","unshift"],function(e){var t=eT[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);nd.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var i=this.value();return t.apply(aL(i)?i:[],e)}return this[n](function(n){return t.apply(aL(n)?n:[],e)})}}),nq(nm.prototype,function(e,t){var n=nd[t];if(n){var r=n.name+"";eI.call(nn,r)||(nn[r]=[]),nn[r].push({name:t,func:n})}}),nn[r$(e,2).name]=[{name:"wrapper",func:e}],nm.prototype.clone=function(){var e=new nm(this.__wrapped__);return e.__actions__=rj(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=rj(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=rj(this.__views__),e},nm.prototype.reverse=function(){if(this.__filtered__){var e=new nm(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},nm.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=aL(e),r=t<0,i=n?e.length:0,a=function(e,t,n){for(var r=-1,i=n.length;++r<i;){var a=n[r],o=a.size;switch(a.type){case"drop":e+=o;break;case"dropRight":t-=o;break;case"take":t=t0(t,e+o);break;case"takeRight":e=tJ(e,t-o)}}return{start:e,end:t}}(0,i,this.__views__),o=a.start,s=a.end,l=s-o,u=r?s:o-1,c=this.__iteratees__,d=c.length,h=0,f=t0(l,this.__takeCount__);if(!n||!r&&i==l&&f==l)return rx(e,this.__actions__);var p=[];n:for(;l--&&h<f;){for(var m=-1,g=e[u+=t];++m<d;){var v=c[m],y=v.iteratee,b=v.type,A=y(g);if(2==b)g=A;else if(!A){if(1==b)continue n;break n}}p[h++]=g}return p},nd.prototype.at=ae,nd.prototype.chain=function(){return i9(this)},nd.prototype.commit=function(){return new np(this.value(),this.__chain__)},nd.prototype.next=function(){this.__values__===e&&(this.__values__=aX(this.value()));var t=this.__index__>=this.__values__.length;return{done:t,value:t?e:this.__values__[this.__index__++]}},nd.prototype.plant=function(t){for(var n,r=this;r instanceof nf;){var i=iN(r);i.__index__=0,i.__values__=e,n?a.__wrapped__=i:n=i;var a=i;r=r.__wrapped__}return a.__wrapped__=t,n},nd.prototype.reverse=function(){var t=this.__wrapped__;if(t instanceof nm){var n=t;return this.__actions__.length&&(n=new nm(this)),(n=n.reverse()).__actions__.push({func:i7,args:[iZ],thisArg:e}),new np(n,this.__chain__)}return this.thru(iZ)},nd.prototype.toJSON=nd.prototype.valueOf=nd.prototype.value=function(){return rx(this.__wrapped__,this.__actions__)},nd.prototype.first=nd.prototype.head,e3&&(nd.prototype[e3]=function(){return this}),nd}();e0?((e0.exports=tz)._=tz,eJ._=tz):eX._=tz}).call(s);var ef=function(e){var t=e.options,n=e.callbacks,i=e.elements,a=e.children,o=e.defaultOptions,s=e.defaultCallbacks,l=(0,r.useContext)(ei),u=(0,r.useRef)(null),c=(0,r.useRef)(),d=(0,r.useRef)(!0);return(0,r.useEffect)(function(){try{l.dispatch({type:"RESET_LIGHTBOX"})}catch(e){el(e.message="SRL - ERROR WHEN RESETTING THE LIGHTBOX STATUS")}return function(){d.current=!1}},[]),(0,r.useEffect)(function(){function e(e){if(e){var t=e.querySelectorAll("img");t.length>0?l.isLoaded||(Promise.all([].map.call(t,function(e){return Object.assign(new Promise(function(t,n){function r(){"lazy"===e.loading||0!==e.naturalWidth?t(e):n(void 0),e.removeEventListener("load",r),e.removeEventListener("error",r)}"lazy"===e.loading||0!==e.naturalWidth?t(e):e.complete?n(void 0):(e.addEventListener("load",r),e.addEventListener("error",r))}),{image:e}).catch(function(e){return e})})).then(function(e){return Promise.resolve(e.filter(function(e){return e}))}).then(function(e){var t,n;return d.current?(n=[],void(e.forEach(function(e){var t,r,i,a,o;n=e.getAttribute("srl_gallery_image")||"IMG"===e.nodeName&&("A"===(null===(t=e.offsetParent)||void 0===t?void 0:t.nodeName)||"A"===(null===(r=e.parentNode)||void 0===r?void 0:r.no
64deName))||"IMG"===e.nodeName&&"PICTURE"===e.parentNode.nodeName&&"A"===(null===(i=e.offsetParent)||void 0===i?void 0:i.nodeName)||"A"===(null===(a=e.parentNode)||void 0===a?void 0:a.nodeName)||"IMG"===e.nodeName&&"PICTURE"===e.parentNode.nodeName&&e.parentNode.parentNode.className.includes("gatsby-image-wrapper")&&"A"===e.parentNode.parentNode.parentNode.nodeName?[].concat(eo(n),[{type:"GALLERY IMAGE",element:e}]):"IMG"===e.nodeName&&"A"!==(null===(o=e.parentNode)||void 0===o?void 0:o.nodeName)?[].concat(eo(n),[{type:"IMAGE",element:e}]):eo(n)}),t=0,a(n.map(function(e){var n,i,a,o,s,l,u=e.element,c=e.type;u.setAttribute("srl_elementid",t);var d=null===(n=u.src)||void 0===n?void 0:n.includes("base64"),h=null===(i=u.src)||void 0===i?void 0:i.includes("svg+xml"),f=null===(a=u.offsetParent)||void 0===a?void 0:a.className.includes("gatsby-image-wrapper"),p="picture"!==(null===(o=u.parentNode)||void 0===o?void 0:o.localName),m="presentation"===u.getAttribute("role"),g=(null===(s=u.src)||void 0===s?void 0:s.includes("data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"))||(null===(l=u.src)||void 0===l?void 0:l.includes("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAwIiBoZWlnaHQ9IjUwMCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB2ZXJzaW9uPSIxLjEiLz4="));if(!(f&&(d||h)&&p||m||g))switch(t++,c){case"IMAGE":var v={id:u.getAttribute("srl_elementid"),source:u.src||u.currentSrc,caption:u.alt,thumbnail:u.src||u.currentSrc,width:u.naturalWidth,height:u.naturalHeight,type:"image"};return es(u,v,r),v;case"GALLERY IMAGE":var y={id:u.getAttribute("srl_elementid"),source:u.parentElement.href||u.offsetParent.parentElement.href||u.offsetParent.href||u.parentElement.parentElement.parentElement.href||u.src||u.currentSrc||null,caption:u.alt||u.textContent,thumbnail:u.parentElement.href||u.offsetParent.parentElement.href||u.offsetParent.href||u.parentElement.parentElement.parentElement.href||u.src||u.currentSrc,width:null,height:null,type:"gallery_image"};return es(u,y,r),y;default:return}}).filter(function(e){return void 0!==e})))):null}),Array.from(t).map(function(e){return e.addEventListener("click",function(e){e.preventDefault()})})):i&&a(i.map(function(e,t){return e.src?{id:t+"",source:e.src||null,caption:e.caption||null,thumbnail:e.thumbnail||e.src||null,type:"image"}:void 0}).filter(function(e){return e&&!e.src}))}}var r=function(e){if(!ec.exports.isEqual(e,l.selectedElement))try{l.dispatch({type:"HANDLE_ELEMENT",element:e})}catch(e){el(e.message="SRL - ERROR WHEN HANDLING THE ELEMENT")}};function a(e){return function(e,t,n){var r={},i={};r=ec.exports.isEmpty(e)?eh(eh({},o),{},{buttons:eh({},o.buttons),settings:eh({},o.settings),caption:eh({},o.caption),thumbnails:eh({},o.thumbnails),progressBar:eh({},o.progressBar)}):eh(eh(eh({},o),e),{},{buttons:eh(eh({},o.buttons),e.buttons),settings:eh(eh({},o.settings),e.settings),caption:eh(eh({},o.caption),e.caption),thumbnails:eh(eh({},o.thumbnails),e.thumbnails),progressBar:eh(eh({},o.progressBar),e.progressBar)}),i=ec.exports.isEmpty(t)?eh({},s):eh(eh({},s),t);var a={options:eh({},r),callbacks:eh({},i)};if(!ec.exports.isEqual(a.options,l.options)||!ec.exports.isEqual(a.callbacks,l.callbacks)||!ec.exports.isEqual(n,l.elements))try{l.dispatch({type:"READY_LIGHTBOX",mergedSettings:a,elements:n})}catch(e){el(e.message="SRL - ERROR GRABBING SETTINGS AND ELEMENTS")}}(t,n,e)}c.current=new MutationObserver(function(){e(u.current)}),c.current.observe(u.current,{childList:!0,subtree:!0,attributeFilter:["href","src"]}),e(u.current)},[l,s,o,t,n,i]),r.createElement("div",{ref:u},a)};function ep(){return(ep=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function em(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function eg(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}ef.propTypes={defaultOptions:Z.shape({settings:Z.shape({autoplaySpeed:Z.number,boxShadow:Z.string,disableKeyboardControls:Z.bool,disablePanzoom:Z.bool,disableWheelControls:Z.bool,downloadedFileName:Z.string,hideControlsAfter:Z.oneOfType([Z.number,Z.bool]),lightboxTransitionSpeed:Z.number,lightboxTransitionTimingFunction:Z.oneOfType([Z.string,Z.array]),overlayColor:Z.string,
64slideAnimationType:Z.string,slideSpringValues:Z.array,slideTransitionSpeed:Z.number,slideTransitionTimingFunction:Z.oneOfType([Z.string,Z.array]),usingPreact:Z.bool}),buttons:Z.shape({backgroundColor:Z.string,iconColor:Z.string,iconPadding:Z.string,showAutoplayButton:Z.bool,showCloseButton:Z.bool,showDownloadButton:Z.bool,showFullscreenButton:Z.bool,showNextButton:Z.bool,showPrevButton:Z.bool,showThumbnailsButton:Z.bool,size:Z.string}),caption:Z.shape({captionColor:Z.string,captionAlignment:Z.string,captionFontFamily:Z.string,captionFontSize:Z.string,captionFontStyle:Z.string,captionFontWeight:Z.oneOfType([Z.number,Z.string]),captionContainerPadding:Z.string,captionTextTransform:Z.string,showCaption:Z.bool}),thumbnails:Z.shape({showThumbnails:Z.bool,thumbnailsAlignment:Z.string,thumbnailsContainerPadding:Z.string,thumbnailsContainerBackgroundColor:Z.string,thumbnailsGap:Z.string,thumbnailsIconColor:Z.string,thumbnailsOpacity:Z.number,thumbnailsPosition:Z.string,thumbnailsSize:Z.array}),progressBar:Z.shape({backgroundColor:Z.string,fillColor:Z.string,height:Z.string,showProgressBar:Z.bool})}),defaultCallbacks:Z.shape({onCountSlides:Z.func,onLightboxClosed:Z.func,onLightboxOpened:Z.func,onSlideChange:Z.func}),children:Z.oneOfType([Z.arrayOf(Z.node),Z.node]),options:Z.object,callbacks:Z.object,elements:Z.array},ef.defaultProps={defaultOptions:{settings:{autoplaySpeed:3e3,boxShadow:"none",disableKeyboardControls:!1,disablePanzoom:!1,disableWheelControls:!1,downloadedFileName:"SRL-image",hideControlsAfter:!1,lightboxTransitionSpeed:.3,lightboxTransitionTimingFunction:"linear",overlayColor:"rgba(30, 30, 30, 0.9)",slideAnimationType:"fade",slideSpringValues:[300,50],slideTransitionSpeed:.6,slideTransitionTimingFunction:"linear",usingPreact:!1},buttons:{backgroundColor:"rgba(30,30,36,0.8)",iconColor:"rgba(255, 255, 255, 0.8)",iconPadding:"10px",showAutoplayButton:!0,showCloseButton:!0,showDownloadButton:!0,showFullscreenButton:!0,showNextButton:!0,showPrevButton:!0,showThumbnailsButton:!0,size:"40px"},caption:{captionAlignment:"start",captionColor:"#FFFFFF",captionContainerPadding:"20px 0 30px 0",captionFontFamily:"inherit",captionFontSize:"inherit",captionFontStyle:"inherit",captionFontWeight:"inherit",captionTextTransform:"inherit",showCaption:!0},thumbnails:{showThumbnails:!0,thumbnailsAlignment:"center",thumbnailsContainerBackgroundColor:"transparent",thumbnailsContainerPadding:"0",thumbnailsGap:"0 1px",thumbnailsIconColor:"#ffffff",thumbnailsOpacity:.4,thumbnailsPosition:"bottom",thumbnailsSize:["100px","80px"]},progressBar:{backgroundColor:"#f2f2f2",fillColor:"#000000",height:"3px",showProgressBar:!0}},defaultCallbacks:{onCountSlides:function(){},onSlideChange:function(){},onLightboxClosed:function(){},onLightboxOpened:function(){}}};var ev=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRen
64dering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,ey=eg(function(e){return ev.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&91>e.charCodeAt(2)}),eb=void 0!==n.g?n.g:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},eA=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy?"production"===a().env.NODE_ENV:e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(((t=document.createElement("style")).setAttribute("data-emotion",this.key),void 0!==this.nonce&&t.setAttribute("nonce",this.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t));var t,n=this.tags[this.tags.length-1];if("production"!==a().env.NODE_ENV){var r=64===e.charCodeAt(0)&&105===e.charCodeAt(1);r&&this._alreadyInsertedOrderInsensitiveRule&&console.error("You're attempting to insert the following rule:\n"+e+"\n\n`@import` rules must be before all other types of rules in a stylesheet but other rules have already been inserted. Please ensure that `@import` rules are before all other rules."),this._alreadyInsertedOrderInsensitiveRule=this._alreadyInsertedOrderInsensitiveRule||!r}if(this.isSpeedy){var i=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(n);try{i.insertRule(e,i.cssRules.length)}catch(t){"production"===a().env.NODE_ENV||/:(-moz-placeholder|-moz-focus-inner|-moz-focusring|-ms-input-placeholder|-moz-read-write|-moz-read-only|-ms-clear){/.test(e)||console.error('There was a problem inserting the following rule: "'+e+'"',t)}}else n.appendChild(document.createTextNode(e));this.ctr++}
64,t.flush=function(){this.tags.forEach(function(e){return e.parentNode.removeChild(e)}),this.tags=[],this.ctr=0,"production"!==a().env.NODE_ENV&&(this._alreadyInsertedOrderInsensitiveRule=!1)},e}(),eE="-ms-",ew="-moz-",ex="-webkit-",eT=Math.abs,eS=String.fromCharCode;function e_(e,t,n){return e.replace(t,n)}function eC(e,t){return 0|e.charCodeAt(t)}function ek(e,t,n){return e.slice(t,n)}function eI(e){return e.length}function eL(e,t){return t.push(e),e}var eP=1,eO=1,eR=0,eD=0,eN=0,eM="";function ej(e,t,n,r,i,a,o){return{value:e,root:t,parent:n,type:r,props:i,children:a,line:eP,column:eO,length:o,return:""}}function eF(e,t,n){return ej(e,t.root,t.parent,n,t.props,t.children,0)}function eB(){return eN=eD<eR?eC(eM,eD++):0,eO++,10===eN&&(eO=1,eP++),eN}function eU(){return eC(eM,eD)}function eV(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function ez(e){return eP=eO=1,eR=eI(eM=e),eD=0,[]}function eq(e){var t,n;return(t=eD-1,n=function e(t){for(;eB();)switch(eN){case t:return eD;case 34:case 39:return e(34===t||39===t?t:eN);case 40:41===t&&e(t);break;case 92:eB()}return eD}(91===e?e+2:40===e?e+1:e),ek(eM,t,n)).trim()}function eQ(e){for(;!eV(eU());)eB();return ek(eM,e,eD)}function eH(e){var t;return t=function e(t,n,r,i,a,o,s,l,u){for(var c,d=0,h=0,f=s,p=0,m=0,g=0,v=1,y=1,b=1,A=0,E="",w=a,x=o,T=i,S=E;y;)switch(g=A,A=eB()){case 34:case 39:case 91:case 40:S+=eq(A);break;case 9:case 10:case 13:case 32:S+=function(e){for(;(eN=eU())&&eN<33;)eB();return eV(e)>2||eV(eN)>3?"":" "}(g);break;case 92:S+=function(e,t){for(var n;--t&&eB()&&!(eN<48||eN>102||eN>57&&eN<65||eN>70&&eN<97););return n=eD+(t<6&&32==eU()&&32==eB()),ek(eM,e,n)}(eD-1,7);continue;case 47:switch(eU()){case 42:case 47:eL(ej(c=function(e,t){for(;eB()&&e+eN!==57&&(e+eN!==84||47!==eU()););return"/*"+ek(eM,t,eD-1)+"*"+eS(47===e?e:eB())}(eB(),eD),n,r,"comm",eS(eN),ek(c,2,-2),0),u);break;default:S+="/"}break;case 123*v:l[d++]=eI(S)*b;case 125*v:case 59:case 0:switch(A){case 0:case 125:y=0;case 59+h:m>0&&eI(S)-f&&eL(m>32?eK(S+";",i,r,f-1):eK(e_(S," ","")+";",i,r,f-2),u);break;case 59:S+=";";default:if(eL(T=eG(S,n,r,d,h,a,l,E,w=[],x=[],f),o),123===A){if(0===h)e(S,n,T,T,w,o,f,l,x);else switch(p){case 100:case 109:case 115:e(t,T,T,i&&eL(eG(t,T,T,0,0,a,l,E,a,w=[],f),x),a,x,f,l,i?w:x);break;default:e(S,T,T,T,[""],x,f,l,x)}}}d=h=m=0,v=b=1,E=S="",f=s;break;case 58:f=1+eI(S),m=g;default:if(v<1){if(123==A)--v;else if(125==A&&0==v++&&125==(eN=eD>0?eC(eM,--eD):0,eO--,10===eN&&(eO=1,eP--),eN))continue}switch(S+=eS(A),A*v){case 38:b=h>0?1:(S+="\f",-1);break;case 44:l[d++]=(eI(S)-1)*b,b=1;break;case 64:45===eU()&&(S+=eq(eB())),p=eU(),h=eI(E=S+=eQ(eD)),A++;break;case 45:45===g&&2==eI(S)&&(v=0)}}return o}("",null,null,null,[""],e=ez(e),0,[0],e),eM="",t}function eG(e,t,n,r,i,a,o,s,l,u,c){for(var d=i-1,h=0===i?a:[""],f=h.length,p=0,m=0,g=0;p<r;++p)for(var v=0,y=ek(e,d+1,d=eT(m=o[p])),b=e;v<f;++v)(b=(m>0?h[v]+" "+y:e_(y,/&\f/g,h[v])).trim())&&(l[g++]=b);return ej(e,t,n,0===i?"rule":s,l,u,c)}function eK(e,t,n,r){return ej(e,t,n,"decl",ek(e,0,r),ek(e,r+1,-1),r)}function e$(e,t){for(var n="",r=e.length,i=0;i<r;i++)n+=t(e[i],i,e,t)||"";return n}function eW(e,t,n,r){switch(e.type){case"@import":case"decl":return e.return=e.return||e.value;case"comm":return"";case"rule":e.value=e.props.join(",")}return eI(n=e$(e.children,r))?e.return=e.value+"{"+n+"}":""}function eZ(e){var t=e.length;return function(n,r,i,a){for(var o="",s=0;s<t;s++)o+=e[s](n,r,i,a)||"";return o}}var eY,eX=function(e,t){var n;return n=function(e,t){var n=-1,r=44;do switch(eV(r)){case 0:38===r&&12===eU()&&(t[n]=1),e[n]+=eQ(eD-1);break;case 2:e[n]+=eq(r);break;case 4:if(44===r){e[++n]=58===eU()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=eS(r)}while(r=eB());return e}(ez(e),t),eM="",n},eJ=new WeakMap,e0=function(e){if("rule"===e.type&&e.parent&&e.length){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||eJ.get(n))&&!r){eJ.set(e,!0);for(var i=[],a=eX(t,i),o=n.props,s=0,l=0;s<a.length;s++)for(var u=0;u<o.length;u++,l++)e.props[l]=i[s]?a[s].replace(/&\f/g,o[u]):o[u]+" "+a[s]}}},e1=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}},e2=function(e){return 105===e.type.charCodeAt(1)&&64===e.type.charCodeAt(0)},e3=function(e){e.type="",e.value="",e.return="",e.children="",e.props=""},e4=function(e,t,n){e2(e)&&(e.parent?(console.error("`@import` rules can't be nested inside other rules. Please move it to the top level and put it before regular rules. Keep in mind that they can only be used within global styles."),e3(e)):function(e,t){for(var n=e-1;n>=0;n--)if(!e2(t[n]))return!0;return!1}
64(t,n)&&(console.error("`@import` rules can't be after other rules. Please put your `@import` rules before your other rules."),e3(e)))},e5="undefined"!=typeof document,e8=e5?void 0:(eY=new WeakMap,function(e){if(eY.has(e))return eY.get(e);var t=eg(function(){var e={};return function(t){return e[t]}});return eY.set(e,t),t}),e6=[function(e,t,n,r){if(!e.return)switch(e.type){case"decl":e.return=function e(t,n){switch((((n<<2^eC(t,0))<<2^eC(t,1))<<2^eC(t,2))<<2^eC(t,3)){case 5103:return ex+"print-"+t+t;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return ex+t+t;case 5349:case 4246:case 4810:case 6968:case 2756:return ex+t+ew+t+eE+t+t;case 6828:case 4268:return ex+t+eE+t+t;case 6165:return ex+t+eE+"flex-"+t+t;case 5187:return ex+t+e_(t,/(\w+).+(:[^]+)/,"-webkit-box-$1$2-ms-flex-$1$2")+t;case 5443:return ex+t+eE+"flex-item-"+e_(t,/flex-|-self/,"")+t;case 4675:return ex+t+eE+"flex-line-pack"+e_(t,/align-content|flex-|-self/,"")+t;case 5548:return ex+t+eE+e_(t,"shrink","negative")+t;case 5292:return ex+t+eE+e_(t,"basis","preferred-size")+t;case 6060:return ex+"box-"+e_(t,"-grow","")+ex+t+eE+e_(t,"grow","positive")+t;case 4554:return ex+e_(t,/([^-])(transform)/g,"$1-webkit-$2")+t;case 6187:return e_(e_(e_(t,/(zoom-|grab)/,ex+"$1"),/(image-set)/,ex+"$1"),t,"")+t;case 5495:case 3959:return e_(t,/(image-set\([^]*)/,ex+"$1$`$1");case 4968:return e_(e_(t,/(.+:)(flex-)?(.*)/,"-webkit-box-pack:$3-ms-flex-pack:$3"),/s.+-b[^;]+/,"justify")+ex+t+t;case 4095:case 3583:case 4068:case 2532:return e_(t,/(.+)-inline(.+)/,ex+"$1$2")+t;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(eI(t)-1-n>6)switch(eC(t,n+1)){case 109:if(45!==eC(t,n+4))break;case 102:return e_(t,/(.+:)(.+)-([^]+)/,"$1-webkit-$2-$3$1"+ew+(108==eC(t,n+3)?"$3":"$2-$3"))+t;case 115:return~t.indexOf("stretch")?e(e_(t,"stretch","fill-available"),n)+t:t}break;case 4949:if(115!==eC(t,n+1))break;case 6444:switch(eC(t,eI(t)-3-(~t.indexOf("!important")&&10))){case 107:return e_(t,":",":"+ex)+t;case 101:return e_(t,/(.+:)([^;!]+)(;|!.+)?/,"$1"+ex+(45===eC(t,14)?"inline-":"")+"box$3$1"+ex+"$2$3$1"+eE+"$2box$3")+t}break;case 5936:switch(eC(t,n+11)){case 114:return ex+t+eE+e_(t,/[svh]\w+-[tblr]{2}/,"tb")+t;
64case 108:return ex+t+eE+e_(t,/[svh]\w+-[tblr]{2}/,"tb-rl")+t;case 45:return ex+t+eE+e_(t,/[svh]\w+-[tblr]{2}/,"lr")+t}return ex+t+eE+t+t}return t}(e.value,e.length);break;case"@keyframes":return e$([eF(e_(e.value,"@","@"+ex),e,"")],r);case"rule":if(e.length)return e.props.map(function(t){var n;switch((n=/(::plac\w+|:read-\w+)/.exec(n=t))?n[0]:n){case":read-only":case":read-write":return e$([eF(e_(t,/:(read-\w+)/,":-moz-$1"),e,"")],r);case"::placeholder":return e$([eF(e_(t,/:(plac\w+)/,":-webkit-input-$1"),e,""),eF(e_(t,/:(plac\w+)/,":-moz-$1"),e,""),eF(e_(t,/:(plac\w+)/,eE+"input-$1"),e,"")],r)}return""}).join("")}}],e9=function(e){var t=e.key;if("production"!==a().env.NODE_ENV&&!t)throw Error("You have to configure `key` for your cache. Please make sure it's unique (and not equal to 'css') as it's used for linking styles to your cache.\nIf multiple caches share the same key they might \"fight\" for each other's style elements.");if(e5&&"css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))})}var r=e.stylisPlugins||e6;if("production"!==a().env.NODE_ENV&&/[^a-z-]/.test(t))throw Error('Emotion key must only contain lower case alphabetical characters and - but "'+t+'" was passed');var i,o,s={},l=[];e5&&(i=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n<t.length;n++)s[t[n]]=!0;l.push(e)}));var u,c=[e0,e1];if("production"!==a().env.NODE_ENV&&c.push((d={get compat(){return y.compat}},function(e,t,n){if("rule"===e.type){var r,i=e.value.match(/(:first|:nth|:nth-last)-child/g);if(i&&!0!==d.compat){var a,o=t>0?n[t-1]:null;if(o&&(a=(r=o.children).length?r[r.length-1]:null)&&"comm"===a.type&&a.children.indexOf("emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason")>-1)return;i.forEach(function(e){console.error('The pseudo class "'+e+'" is potentially unsafe when doing server-side rendering. Try changing it to "'+e.split("-child")[0]+'-of-type".')})}}}),e4),e5){var d,h,f=[eW,"production"!==a().env.NODE_ENV?function(e){e.root||(e.return?h.insert(e.return):e.value&&"comm"!==e.type&&h.insert(e.value+"{}"))}:(u=function(e){h.insert(e)},function(e){e.root||(e=e.return)&&u(e)})],p=eZ(c.concat(r,f));o=function(e,t,n,r){h=n,"production"!==a().env.NODE_ENV&&void 0!==t.map&&(h={insert:function(e){n.insert(e+t.map)}}),e$(eH(e?e+"{"+t.styles+"}":t.styles),p),r&&(y.inserted[t.name]=!0)}}else{var m=eZ(c.concat(r,[eW])),g=e8(r)(t),v=function(e,t){var n=t.name;return void 0===g[n]&&(g[n]=e$(eH(e?e+"{"+t.styles+"}":t.styles),m)),g[n]};o=function(e,t,n,r){var i=t.name,o=v(e,t);return void 0===y.compat?(r&&(y.inserted[i]=!0),"development"===a().env.NODE_ENV&&void 0!==t.map?o+t.map:o):r?void(y.inserted[i]=o):o}}var y={key:t,sheet:new eA({key:t,container:i,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend}),nonce:e.nonce,inserted:s,registered:{},insert:o};return y.sheet.hydrate(l),y},e7=u.exports,te={};te[e7.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},te[e7.Memo]={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0};var tt="undefined"!=typeof document;function tn(e,t,n){var r="";return n.split(" ").forEach(function(n){void 0!==e[n]?t.push(e[n]+";"):r+=n+" "}),r}var tr=function(e,t,n){var r=e.key+"-"+t.name;if((!1===n||!1===tt&&void 0!==e.compat)&&void 0===e.registered[r]&&(e.registered[r]=t.styles),void 0===e.inserted[t.name]){var i="",a=t;do{var o=e.insert(t===a?"."+r:"",a,e.sheet,!0);tt||void 0===o||(i+=o),a=a.next}while(void 0!==a);if(!tt&&0!==i.length)return i}},ti={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGr
64idRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},ta="You have illegal escape sequence in your template literal, most likely inside content's property value.\nBecause you write your CSS inside a JavaScript string you actually have to do double escaping, so for example \"content: '\\00d7';\" should become \"content: '\\\\00d7';\".\nYou can read more about this here:\nhttps://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences",to=/[A-Z]|^ms/g,ts=/_EMO_([^_]+?)_([^]*?)_EMO_/g,tl=function(e){return 45===e.charCodeAt(1)},tu=function(e){return null!=e&&"boolean"!=typeof e},tc=eg(function(e){return tl(e)?e:e.replace(to,"-$&").toLowerCase()}),td=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(ts,function(e,t,n){return tA={name:t,styles:n,next:tA},t})}return 1===ti[e]||tl(e)||"number"!=typeof t||0===t?t:t+"px"};if("production"!==a().env.NODE_ENV){var th=/(attr|counters?|url|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/,tf=["normal","none","initial","inherit","unset"],tp=td,tm=/^-ms-/,tg=/-(.)/g,tv={};td=function(e,t){if("content"===e&&("string"!=typeof t||-1===tf.indexOf(t)&&!th.test(t)&&(t.charAt(0)!==t.charAt(t.length-1)||'"'!==t.charAt(0)&&"'"!==t.charAt(0))))throw Error("You seem to be using a value for 'content' without quotes, try replacing it with `content: '\""+t+"\"'`");var n=tp(e,t);return""===n||tl(e)||-1===e.indexOf("-")||void 0!==tv[e]||(tv[e]=!0,console.error("Using kebab-case for css properties in objects is not supported. Did you mean "+e.replace(tm,"ms-").replace(tg,function(e,t){return t.toUpperCase()})+"?")),n}}function ty(e,t,n){if(null==n)return"";if(void 0!==n.__emotion_styles){if("production"!==a().env.NODE_ENV&&"NO_COMPONENT_SELECTOR"===n.toString())throw Error("Component selectors can only be used in conjunction with @emotion/babel-plugin.");return n}switch(typeof n){case"boolean":return"";case"object":if(1===n.anim)return tA={name:n.name,styles:n.styles,next:tA},n.name;if(void 0!==n.styles){var r=n.next;if(void 0!==r)for(;void 0!==r;)tA={name:r.name,styles:r.styles,next:tA},r=r.next;var i=n.styles+";";return"production"!==a().env.NODE_ENV&&void 0!==n.map&&(i+=n.map),i}return function(e,t,n){var r="";if(Array.isArray(n))for(var i=0;i<n.length;i++)r+=ty(e,t,n[i])+";";else for(var o in n){var s=n[o];if("object"!=typeof s)null!=t&&void 0!==t[s]?r+=o+"{"+t[s]+"}":tu(s)&&(r+=tc(o)+":"+td(o,s)+";");else{if("NO_COMPONENT_SELECTOR"===o&&"production"!==a().env.NODE_ENV)throw Error("Component selectors can only be used in conjunction with @emotion/babel-plugin.");if(Array.isArray(s)&&"string"==typeof s[0]&&(null==t||void 0===t[s[0]]))for(var l=0;l<s.length;l++)tu(s[l])&&(r+=tc(o)+":"+td(o,s[l])+";");else{var u=ty(e,t,s);switch(o){case"animation":case"animationName":r+=tc(o)+":"+u+";";break;default:"production"!==a().env.NODE_ENV&&"undefined"===o&&console.error("You have passed in falsy value as style object's key (can happen when in example you pass unexported component as computed key)."),r+=o+"{"+u+"}"}}}}return r}(e,t,n);case"function":if(void 0!==e){var o=tA,s=n(e);return tA=o,ty(e,t,s)}"production"!==a().env.NODE_ENV&&console.error("Functions that are interpolated in css calls will be stringified.\nIf you want to have a css call based on props, create a function that returns a css call like this\nlet dynamicStyle = (props) => css`color: ${props.color}`\nIt can be called directly with props or interpolated in a styled call like this\nlet SomeComponent = styled('div')`${dynamicStyle}`");break;case"string":if("production"!==a().env.NODE_ENV){var l=[],u=n.replace(ts,function(e,t,n){var r="animation"+l.length;return l.push("const "+r+" = keyframes`"+n.replace(/^@keyframes animation-\w+/,"")+"`"),"${"+r+"}"});l.length&&console.error("`keyframes` output got interpolated into plain string, please wrap it with `css`.\n\nInstead of doing this:\n\n"+[].concat(l,["`"+u+"`"]).join("\n")+"\n\nYou should wrap it with `css` like this:\n\ncss`"+u+"`")}}if(null==t)return n;var c=t[n];return void 0!==c?c:n}var tb,tA,tE=/label:\s*([^\s;\n{]+)\s*(;|$)/g;"production"!==a().env.NODE_ENV&&(tb=/\/\*#\ssourceMappingURL=data:application\/json;\S+\s+\*\//g);var tw=function(e,t,n){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var r=!0,i="";tA=void 0;var o,s=e[0];null==s||void 0===s.raw?(r=!1,i+=ty(n,t,s)):("production"!==a().env.NODE_ENV&&void 0===s[0]&&console.error(ta),i+=s[0]);for(var l=1;l<e.length;l++)i+=ty(n,t,e[l]),r&&("production"!==a().env.NODE_ENV&&void 0===s[l]&&console.error(ta),i+=s[l]);"production"!==a().env.NODE_ENV&&(i=i.replace(tb,function(e){return o=e,""})),tE.lastIndex=0;for(var u,c="";null!==(u=tE.exec(i));)c+="-"+u[1];var d=function(e){for(var t,n=0,r=0,i=e.length;i>=4;++r,i-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(i){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}(i)+c;return"production"!==a().env.NODE_ENV?{name:d,styles:i,map:o,next:tA,toString:function(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}}:{name:d,styles:i,next:tA}},tx="undefined"!=typeof document,tT=Object.prototype.hasOwnProperty,tS=(0,r.createContext)("undefined"!=typeof HTMLElement?e9({key:"css"}):null);"production"!==a().env.NODE_ENV&&(tS.displayName="EmotionCacheContext"),tS.Provider;var t_=function(e){return(0,r.forwardRef)(function(t,n){return e(t,(0,r.useContext)(tS),n)})};tx||(t_=function(e){return function(t){var n=(0,r.useContext)(tS);return null===n?(n=e9({key:"css"}),(0,r.createElement)(tS.Provider,{value:n},e(t,n))):e(t,n)}});var tC=(0,r.createContext)({});"production"!==a().env.NODE_ENV&&(tC.displayName="EmotionThemeContext");var tk=t_(function(e,t,n){var i=e.css;"string"==typeof i&&void 0!==t.registered[i]&&(i=t.registered[i]);var o=e.__EMOTION_TYPE_PLEASE_DO_NOT_USE__,s=[i],l="";"string"==typeof e.className?l=tn(t.registered,s,e.className):null!=e.className&&(l=e.className+" ");var u=tw(s,void 0,(0,r.useContext)(tC));if("production"!==a().env.NODE_ENV&&-1===u.name.indexOf("-")){var c=e.__EMOTION_LABEL_PLEASE_DO_NOT_USE__;c&&(u=tw([u,"label:"+c+";"]))}var d=tr(t,u,"string"==typeof o);l+=t.key+"-"+u.name;var h={};for(var f in e)tT.call(e,f)&&"css"!==f&&"__EMOTION_TYPE_PLEASE_DO_NOT_USE__"!==f&&("production"===a().env.NODE_ENV||"__EMOTION_LABEL_PLEASE_DO_NOT_USE__"!==f)&&(h[f]=e[f]);h.ref=n,h.className=l;var p=(0,r.createElement)(o,h);
64if(!tx&&void 0!==d){for(var m,g=u.name,v=u.next;void 0!==v;)g+=" "+v.name,v=v.next;return(0,r.createElement)(r.Fragment,null,(0,r.createElement)("style",((m={})["data-emotion"]=t.key+" "+g,m.dangerouslySetInnerHTML={__html:d},m.nonce=t.sheet.nonce,m)),p)}return p});"production"!==a().env.NODE_ENV&&(tk.displayName="EmotionCssPropInternal");var tI=!1,tL=t_(function(e,t){"production"!==a().env.NODE_ENV&&!tI&&(e.className||e.css)&&(console.error("It looks like you're using the css prop on Global, did you mean to use the styles prop instead?"),tI=!0);var n=tw([e.styles],void 0,(0,r.useContext)(tC));if(!tx){for(var i,o=n.name,s=n.styles,l=n.next;void 0!==l;)o+=" "+l.name,s+=l.styles,l=l.next;var u=!0===t.compat,c=t.insert("",{name:o,styles:s},t.sheet,u);return u?null:(0,r.createElement)("style",((i={})["data-emotion"]=t.key+"-global "+o,i.dangerouslySetInnerHTML={__html:c},i.nonce=t.sheet.nonce,i))}var d=(0,r.useRef)();return(0,r.useLayoutEffect)(function(){var e=t.key+"-global",r=new eA({key:e,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),i=!1,a=document.querySelector('style[data-emotion="'+e+" "+n.name+'"]');return t.sheet.tags.length&&(r.before=t.sheet.tags[0]),null!==a&&(i=!0,a.setAttribute("data-emotion",e),r.hydrate([a])),d.current=[r,i],function(){r.flush()}},[t]),(0,r.useLayoutEffect)(function(){var e=d.current,r=e[0];if(e[1])e[1]=!1;else{if(void 0!==n.next&&tr(t,n.next,!0),r.tags.length){var i=r.tags[r.tags.length-1].nextElementSibling;r.before=i,r.flush()}t.insert("",n,r,!1)}},[t,n.name]),null});function tP(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return tw(t)}"production"!==a().env.NODE_ENV&&(tL.displayName="EmotionGlobal");var tO=function e(t){for(var n=t.length,r=0,i="";r<n;r++){var o=t[r];if(null!=o){var s=void 0;switch(typeof o){case"boolean":break;case"object":if(Array.isArray(o))s=e(o);else for(var l in"production"!==a().env.NODE_ENV&&void 0!==o.styles&&void 0!==o.name&&console.error("You have passed styles created with `css` from `@emotion/react` package to the `cx`.\n`cx` is meant to compose class names (strings) so you should convert those styles to a class name by passing them to the `css` received from <ClassNames/> component."),s="",o)o[l]&&l&&(s&&(s+=" "),s+=l);break;default:s=o}s&&(i&&(i+=" "),i+=s)}}return i},tR=t_(function(e,t){var n,i="",o="",s=!1,l=function(){if(s&&"production"!==a().env.NODE_ENV)throw Error("css can only be used during render");for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];var l=tw(n,t.registered);if(tx)tr(t,l,!1);else{var u=tr(t,l,!1);void 0!==u&&(i+=u)}return tx||(o+=" "+l.name),t.key+"-"+l.name},u={css:l,cx:function(){if(s&&"production"!==a().env.NODE_ENV)throw Error("cx can only be used during render");for(var e,n,r,i=arguments.length,o=Array(i),u=0;u<i;u++)o[u]=arguments[u];return r=tn(t.registered,n=[],e=tO(o)),n.length<2?e:r+l(n)},theme:(0,r.useContext)(tC)},c=e.children(u);return s=!0,tx||0===i.length?c:(0,r.createElement)(r.Fragment,null,(0,r.createElement)("style",((n={})["data-emotion"]=t.key+" "+o.substring(1),n.dangerouslySetInnerHTML={__html:i},n.nonce=t.sheet.nonce,n)),c)});if("production"!==a().env.NODE_ENV&&(tR.displayName="EmotionClassNames"),"production"!==a().env.NODE_ENV){var tD="undefined"!=typeof document,tN="undefined"!=typeof jest;if(tD&&!tN){var tM=tD?window:eb,tj="__EMOTION_REACT_"+"11.4.1".split(".")[0]+"__";tM[tj]&&console.warn("You are loading @emotion/react when it is already loaded. Running multiple instances may cause problems. This can happen if multiple versions are used, or if multiple builds of the same version are used."),tM[tj]=!0}}var tF=function(e){return"theme"!==e},tB=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?ey:tF},tU=function(e,t,n){var r;if(t){var i=t.shouldForwardProp;r=e.__emotion_forwardProp&&i?function(t){return e.__emotion_forwardProp(t)&&i(t)}:i}return"function"!=typeof r&&n&&(r=e.__emotion_forwardProp),r},tV="You have illegal escape sequence in your template literal, most likely inside content's property value.\nBecause you write your CSS inside a JavaScript string you actually have to do double escaping, so for example \"content: '\\00d7';\" should become \"content: '\\\\00d7';\".\nYou can read more about this here:\nhttps://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences",tz="undefined"!=typeof document,tq=(function e(t,n){if("production"!==a().env.NODE_ENV&&void 0===t)throw Error("You are trying to create a styled element with an undefined component.\nYou may have forgotten to import it.");var i,o,s=t.__emotion_real===t,l=s&&t.__emotion_base||t;void 0!==n&&(i=n.label,o=n.target);var u=tU(t,n,s),c=u||tB(l),d=!c("as");return function(){var h=arguments,f=s&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==i&&f.push("label:"+i+";"),null==h[0]||void 0===h[0].raw)f.push.apply(f,h);else{"production"!==a().env.NODE_ENV&&void 0===h[0][0]&&console.error(tV),f.pu
64sh(h[0][0]);for(var p=h.length,m=1;m<p;m++)"production"!==a().env.NODE_ENV&&void 0===h[0][m]&&console.error(tV),f.push(h[m],h[0][m])}var g=t_(function(e,t,n){var i=d&&e.as||l,a="",s=[],h=e;if(null==e.theme){for(var p in h={},e)h[p]=e[p];h.theme=(0,r.useContext)(tC)}"string"==typeof e.className?a=tn(t.registered,s,e.className):null!=e.className&&(a=e.className+" ");var m=tw(f.concat(s),t.registered,h),g=tr(t,m,"string"==typeof i);a+=t.key+"-"+m.name,void 0!==o&&(a+=" "+o);var v=d&&void 0===u?tB(i):c,y={};for(var b in e)d&&"as"===b||v(b)&&(y[b]=e[b]);y.className=a,y.ref=n;var A=(0,r.createElement)(i,y);if(!tz&&void 0!==g){for(var E,w=m.name,x=m.next;void 0!==x;)w+=" "+x.name,x=x.next;return(0,r.createElement)(r.Fragment,null,(0,r.createElement)("style",((E={})["data-emotion"]=t.key+" "+w,E.dangerouslySetInnerHTML={__html:g},E.nonce=t.sheet.nonce,E)),A)}return A});return g.displayName=void 0!==i?i:"Styled("+("string"==typeof l?l:l.displayName||l.name||"Component")+")",g.defaultProps=t.defaultProps,g.__emotion_real=g,g.__emotion_base=l,g.__emotion_styles=f,g.__emotion_forwardProp=u,Object.defineProperty(g,"toString",{value:function(){return void 0===o&&"production"!==a().env.NODE_ENV?"NO_COMPONENT_SELECTOR":"."+o}}),g.withComponent=function(t,r){return e(t,ep({},n,r,{shouldForwardProp:tU(g,r,!0)})).apply(void 0,f)},g}}).bind();["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"].forEach(function(e){tq[e]=tq(e)});/*! *****************************************************************************
65Copyright (c) Microsoft Corporation.
66
67Permission to use, copy, modify, and/or distribute this software for any
68purpose with or without fee is hereby granted.
69
70THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
71REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
72AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
73INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
74LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
75OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
76PERFORMANCE OF THIS SOFTWARE.
77***************************************************************************** */var tQ=function(e,t){return(tQ=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)};function tH(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}tQ(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var tG=function(){return(tG=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function tK(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)0>t.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}function t$(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,a=n.call(e),o=[];try{for(;(void 0===t||t-- >0)&&!(r=a.next()).done;)o.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(i)throw i.error}}return o}function tW(e,t,n){if(n||2==arguments.length)for(var r,i=0,a=t.length;i<a;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))}var tZ=function(e){return{isEnabled:function(t){return e.some(function(e){return!!t[e]})}}}
77,tY={measureLayout:tZ(["layout","layoutId","drag","_layoutResetTransform"]),animation:tZ(["animate","exit","variants","whileHover","whileTap","whileFocus","whileDrag"]),exit:tZ(["exit"]),drag:tZ(["drag","dragControls"]),focus:tZ(["whileFocus"]),hover:tZ(["whileHover","onHoverStart","onHoverEnd"]),tap:tZ(["whileTap","onTap","onTapStart","onTapCancel"]),pan:tZ(["onPan","onPanStart","onPanSessionStart","onPanEnd"]),layoutAnimation:tZ(["layout","layoutId"])},tX=function(){},tJ=function(){};"production"!==a().env.NODE_ENV&&(tX=function(e,t){e||"undefined"==typeof console||console.warn(t)},tJ=function(e,t){if(!e)throw Error(t)});var t0=(0,r.createContext)({strict:!1}),t1=Object.keys(tY),t2=t1.length,t3=(0,r.createContext)({transformPagePoint:function(e){return e},isStatic:!1}),t4=(0,r.createContext)({}),t5=(0,r.createContext)(null);function t8(e){var t=(0,r.useRef)(null);return null===t.current&&(t.current=e()),t.current}function t6(){var e=(0,r.useContext)(t5);if(null===e)return[!0,null];var t=e.isPresent,n=e.onExitComplete,i=e.register,a=ne();return(0,r.useEffect)(function(){return i(a)},[]),!t&&n?[!1,function(){return null==n?void 0:n(a)}]:[!0]}var t9=0,t7=function(){return t9++},ne=function(){return t8(t7)},nt=(0,r.createContext)(null),nn="undefined"!=typeof window,nr=nn?r.useLayoutEffect:r.useEffect;function ni(e){return"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}function na(e){return Array.isArray(e)}function no(e){return"string"==typeof e||na(e)}function ns(e,t,n,r,i){var a;return void 0===r&&(r={}),void 0===i&&(i={}),"string"==typeof t&&(t=null===(a=e.variants)||void 0===a?void 0:a[t]),"function"==typeof t?t(null!=n?n:e.custom,r,i):t}function nl(e,t,n){var r,i,a=e.getProps();return ns(a,t,null!=n?n:a.custom,(r={},e.forEachValue(function(e,t){return r[t]=e.get()}),r),(i={},e.forEachValue(function(e,t){return i[t]=e.getVelocity()}),i))}function nu(e){var t;return"function"==typeof(null===(t=e.animate)||void 0===t?void 0:t.start)||no(e.initial)||no(e.animate)||no(e.whileHover)||no(e.whileDrag)||no(e.whileTap)||no(e.whileFocus)||no(e.exit)}function nc(e){return!!(nu(e)||e.variants)}function nd(e){return Array.isArray(e)?e.join(" "):e}var nh=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","svg","switch","symbol","text","tspan","use","view"];function nf(e){return"string"==typeof e&&!e.includes("-")&&!!(nh.indexOf(e)>-1||/[A-Z]/.test(e))}var np={},nm=["","X","Y","Z"],ng=["transformPerspective","x","y","z"];function nv(e,t){return ng.indexOf(e)-ng.indexOf(t)}["translate","scale","rotate","skew"].forEach(function(e){return nm.forEach(function(t){return ng.push(e+t)})});var ny=new Set(ng);function nb(e){return ny.has(e)}var nA=new Set(["originX","originY","originZ"]);function nE(e,t){var n=t.layout,r=t.layoutId;return nb(e)||nA.has(e)||(n||void 0!==r)&&(!!np[e]||"opacity"===e)}var nw=function(e){return null!==e&&"object"==typeof e&&e.getVelocity},nx={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"};function nT(e){return e.startsWith("--")}var nS=function(e,t){return function(n){return Math.max(Math.min(n,t),e)}},n_=function(e){return e%1?Number(e.toFixed(5)):e},nC=/(-)?([\d]*\.?[\d])+/g,nk=/(#[0-9a-f]{6}|#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2,3}\s*\/*\s*[\d\.]+%?\))/gi,nI=/^(#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2,3}\s*\/*\s*[\d\.]+%?\))$/i;function nL(e){return"string"==typeof e}var nP={test:function(e){return"number"==typeof e},parse:parseFloat,transform:function(e){return e}},nO=tG(tG({},nP),{transform:nS(0,1)}),nR=tG(tG({},nP),{default:1}),nD=function(e){return{test:function(t){return nL(t)&&t.endsWith(e)&&1===t.split(" ").length},parse:parseFloat,transform:function(t){return""+t+e}}},nN=nD("deg"),nM=nD("%"),nj=nD("px"),nF=nD("vh"),nB=nD("vw"),nU=tG(tG({},nM),{parse:function(e){return nM.parse(e)/100},transform:function(e){return nM.transform(100*e)}}),nV=function(e,t){return function(n){return!!(nL(n)&&nI.test(n)&&n.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(n,t))}},nz=function(e,t,n){return function(r){if(!nL(r))return r;var i,a=r.match(nC),o=a[0],s=a[1],l=a[2],u=a[3];return(i={})[e]=parseFloat(o),i[t]=parseFloat(s),i[n]=parseFloat(l),i.alpha=void 0!==u?parseFloat(u):1,i}},nq={test:nV("hsl","hue"),parse:nz("hue","saturation","lightness"),transform:function(e){var t=e.hue,n=e.saturation,r=e.lightness,i=e.alpha;return"hsla("+Math.round(t)+", "+nM.transform(n_(n))+", "+nM.transform(n_(r))+", "+n_(nO.transform(void 0===i?1:i))+")"}},nQ=nS(0,255),nH=tG(tG({},nP),{transform:function(e){return Math.round(nQ(e))}}),nG={test:nV("rgb","red"),parse:nz("red","green","blue"),transform:function(e){var t=e.red,n=e.green,r=e.blue,i=e.alpha;return"rgba("+nH.transform(t)+", "+nH.transform(n)+", "+nH.transform(r)+", "+n_(nO.transform(void 0===i?1:i))+")"}},nK={test:nV("#"),parse:function(e){var t="",n="",r="",i="";return e.length>5?(t=e.substr(1,2),n=e.substr(3,2),r=e.substr(5,2),i=e.substr(7,2)):(t=e.substr(1,1),n=e.substr(2,1),r=e.substr(3,1),i=e.substr(4,1),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alph
77a:i?parseInt(i,16)/255:1}},transform:nG.transform},n$={test:function(e){return nG.test(e)||nK.test(e)||nq.test(e)},parse:function(e){return nG.test(e)?nG.parse(e):nq.test(e)?nq.parse(e):nK.parse(e)},transform:function(e){return nL(e)?e:e.hasOwnProperty("red")?nG.transform(e):nq.transform(e)}};function nW(e){var t=[],n=0,r=e.match(nk);r&&(n=r.length,e=e.replace(nk,"${c}"),t.push.apply(t,r.map(n$.parse)));var i=e.match(nC);return i&&(e=e.replace(nC,"${n}"),t.push.apply(t,i.map(nP.parse))),{values:t,numColors:n,tokenised:e}}function nZ(e){return nW(e).values}function nY(e){var t=nW(e),n=t.values,r=t.numColors,i=t.tokenised,a=n.length;return function(e){for(var t=i,n=0;n<a;n++)t=t.replace(n<r?"${c}":"${n}",n<r?n$.transform(e[n]):n_(e[n]));return t}}var nX=function(e){return"number"==typeof e?0:e},nJ={test:function(e){var t,n,r,i;return isNaN(e)&&nL(e)&&(null!==(n=null===(t=e.match(nC))||void 0===t?void 0:t.length)&&void 0!==n?n:0)+(null!==(i=null===(r=e.match(nk))||void 0===r?void 0:r.length)&&void 0!==i?i:0)>0},parse:nZ,createTransformer:nY,getAnimatableNone:function(e){var t=nZ(e);return nY(e)(t.map(nX))}},n0=new Set(["brightness","contrast","saturate","opacity"]);function n1(e){var t=e.slice(0,-1).split("("),n=t[0],r=t[1];if("drop-shadow"===n)return e;var i=(r.match(nC)||[])[0];if(!i)return e;var a=r.replace(i,""),o=n0.has(n)?1:0;return i!==r&&(o*=100),n+"("+o+a+")"}var n2=/([a-z-]*)\(.*?\)/g,n3=tG(tG({},nJ),{getAnimatableNone:function(e){var t=e.match(n2);return t?t.map(n1).join(" "):e}}),n4=tG(tG({},nP),{transform:Math.round}),n5={borderWidth:nj,borderTopWidth:nj,borderRightWidth:nj,borderBottomWidth:nj,borderLeftWidth:nj,borderRadius:nj,radius:nj,borderTopLeftRadius:nj,borderTopRightRadius:nj,borderBottomRightRadius:nj,borderBottomLeftRadius:nj,width:nj,maxWidth:nj,height:nj,maxHeight:nj,size:nj,top:nj,right:nj,bottom:nj,left:nj,padding:nj,paddingTop:nj,paddingRight:nj,paddingBottom:nj,paddingLeft:nj,margin:nj,marginTop:nj,marginRight:nj,marginBottom:nj,marginLeft:nj,rotate:nN,rotateX:nN,rotateY:nN,rotateZ:nN,scale:nR,scaleX:nR,scaleY:nR,scaleZ:nR,skew:nN,skewX:nN,skewY:nN,distance:nj,translateX:nj,translateY:nj,translateZ:nj,x:nj,y:nj,z:nj,perspective:nj,transformPerspective:nj,op
77acity:nO,originX:nU,originY:nU,originZ:nj,zIndex:n4,fillOpacity:nO,strokeOpacity:nO,numOctaves:n4};function n8(e,t,n,r,i,a,o,s){var l,u,c,d,h=e.style,f=e.vars,p=e.transform,m=e.transformKeys,g=e.transformOrigin;m.length=0;var v=!1,y=!1,b=!0;for(var A in t){var E=t[A];if(nT(A))f[A]=E;else{var w=n5[A],x=w&&"number"==typeof E?w.transform(E):E;if(nb(A)){if(v=!0,p[A]=x,m.push(A),!b)continue;E!==(null!==(d=w.default)&&void 0!==d?d:0)&&(b=!1)}else if(nA.has(A))g[A]=x,y=!0;else if((null==n?void 0:n.isHydrated)&&(null==r?void 0:r.isHydrated)&&np[A]){var T=np[A].process(E,r,n),S=np[A].applyTo;if(S)for(var _=S.length,C=0;C<_;C++)h[S[C]]=T;else h[A]=T}else h[A]=x}}r&&n&&o&&s?(h.transform=o(r.deltaFinal,r.treeScale,v?p:void 0),a&&(h.transform=a(p,h.transform)),h.transformOrigin=s(r)):(v&&(h.transform=function(e,t,n,r){var i=e.transform,a=e.transformKeys,o=t.enableHardwareAcceleration,s=t.allowTransformNone,l="";a.sort(nv);for(var u=!1,c=a.length,d=0;d<c;d++){var h=a[d];l+=(nx[h]||h)+"("+i[h]+") ","z"===h&&(u=!0)}return!u&&(void 0===o||o)?l+="translateZ(0)":l=l.trim(),r?l=r(i,n?"":l):(void 0===s||s)&&n&&(l="none"),l}(e,i,b,a)),y&&(h.transformOrigin=(void 0===(l=g.originX)?"50%":l)+" "+(void 0===(u=g.originY)?"50%":u)+" "+(void 0===(c=g.originZ)?0:c)))}function n6(e,t,n){for(var r in t)nw(t[r])||nE(r,n)||(e[r]=t[r])}var n9=new Set(["initial","animate","exit","style","variants","transition","transformTemplate","transformValues","custom","inherit","layout","layoutId","_layoutResetTransform","onLayoutAnimationComplete","onViewportBoxUpdate","onLayoutMeasure","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","drag","dragControls","dragListener","dragConstraints","dragDirectionLock","_dragX","_dragY","dragElastic","dragMomentum","dragPropagation","dragTransition","whileDrag","onPan","onPanStart","onPanEnd","onPanSessionStart","onTap","onTapStart","onTapCancel","onHoverStart","onHoverEnd","whileFocus","whileTap","whileHover"]);function n7(e){return n9.has(e)}var re=function(e){return!n7(e)};try{var rt=n(4465).Z;re=function(e){return e.startsWith("on")?!n7(e):rt(e)}}catch(e){}function rn(e,t,n){return"string"==typeof e?e:nj.transform(t+n*e)}var rr=function(e,t){return nj.transform(e*t)},ri={offset:"stroke-dashoffset",array:"stroke-dasharray"},ra={offset:"strokeDashoffset",array:"strokeDasharray"};function ro(e,t,n,r,i,a,o,s){var l,u,c,d,h,f,p=t.attrX,m=t.attrY,g=t.originX,v=t.originY,y=t.pathLength,b=t.pathSpacing,A=t.pathOffset;n8(e,tK(t,["attrX","attrY","originX","originY","pathLength","pathSpacing","pathOffset"]),n,r,i,a,o,s),e.attrs=e.style,e.style={};var E=e.attrs,w=e.style,x=e.dimensions,T=e.totalPathLength;E.transform&&(x&&(w.transform=E.transform),delete E.transform),x&&(void 0!==g||void 0!==v||w.transform)&&(w.transformOrigin=rn(void 0!==g?g:.5,x.x,x.width)+" "+rn(void 0!==v?v:.5,x.y,x.height)),void 0!==p&&(E.x=p),void 0!==m&&(E.y=m),void 0!==T&&void 0!==y&&(c=!1,void 0===(l=void 0===b?1:b)&&(l=1),void 0===(u=void 0===A?0:A)&&(u=0),void 0===c&&(c=!0),E[(d=c?ri:ra).offset]=rr(-u,T),h=rr(y,T),f=rr(l,T),E[d.array]=h+" "+f)}var rs=function(){return tG(tG({},{style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}}),{attrs:{}})},rl=/([a-z])([A-Z])/g,ru=function(e){return e.replace(rl,"$1-$2").toLowerCase()};function rc(e,t){var n=t.style,r=t.vars;for(var i in Object.assign(e.style,n),r)e.style.setProperty(i,r[i])}var rd=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform"]);function rh(e,t){for(var n in rc(e,t),t.attrs)e.setAttribute(rd.has(n)?n:ru(n),t.attrs[n])}function rf(e){var t=e.style,n={};for(var r in t)(nw(t[r])||nE(r,e))&&(n[r]=t[r]);return n}function rp(e){var t=rf(e);for(var n in e)nw(e[n])&&(t["x"===n||"y"===n?"attr"+n.toUpperCase():n]=e[n]);return t}function rm(e){return"object"==typeof e&&"function"==typeof e.start}var rg=function(e){return Array.isArray(e)};function rv(e,t,n,r){var i=e.scrapeMotionValuesFromProps,a=e.createRenderState,o=e.onMount,s={latestValues:function(e,t,n,r){var i={},a=!1===(null==n?void 0:n.initial),o=r(e);for(var s in o)i[s]=function(e){var t=nw(e)?e.get():e;return t&&"object"==typeof t&&t.mix&&t.toValue?t.toValue():t}(o[s]);var l=e.initial,u=e.animate,c=nu(e),d=nc(e);t&&d&&!c&&!1!==e.inherit&&(null!=l||(l=t.initial),null!=u||(u=t.animate));var h=a||!1===l?u:l;return h&&"boolean"!=typeof h&&!rm(h)&&(Array.isArray(h)?h:[h]).forEac
77h(function(t){var n=ns(e,t);if(n){var r=n.transitionEnd;n.transition;var a=tK(n,["transitionEnd","transition"]);for(var o in a)i[o]=a[o];for(var o in r)i[o]=r[o]}}),i}(t,n,r,i),renderState:a()};return o&&(s.mount=function(e){return o(t,e,s)}),s}var ry,rb=function(e){return function(t,n){var i=(0,r.useContext)(t4),a=(0,r.useContext)(t5);return n?rv(e,t,i,a):t8(function(){return rv(e,t,i,a)})}},rA={useVisualState:rb({scrapeMotionValuesFromProps:rp,createRenderState:rs,onMount:function(e,t,n){var r=n.renderState,i=n.latestValues;try{r.dimensions="function"==typeof t.getBBox?t.getBBox():t.getBoundingClientRect()}catch(e){r.dimensions={x:0,y:0,width:0,height:0}}"path"===t.tagName&&(r.totalPathLength=t.getTotalLength()),ro(r,i,void 0,void 0,{enableHardwareAcceleration:!1},e.transformTemplate),rh(t,r)}})},rE={useVisualState:rb({scrapeMotionValuesFromProps:rf,createRenderState:function(){return{style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}}}})};function rw(e,t,n,r){return e.addEventListener(t,n,r),function(){return e.removeEventListener(t,n,r)}}function rx(e,t,n,i){(0,r.useEffect)(function(){var r=e.current;if(n&&r)return rw(r,t,n,i)},[e,t,n,i])}function rT(e){return"undefined"!=typeof PointerEvent&&e instanceof PointerEvent?!("mouse"!==e.pointerType):e instanceof MouseEvent}(oe=ry||(ry={})).Animate="animate",oe.Hover="whileHover",oe.Tap="whileTap",oe.Drag="whileDrag",oe.Focus="whileFocus",oe.Exit="exit";var rS={pageX:0,pageY:0};function r_(e,t){var n,r,i;return void 0===t&&(t="page"),{point:e.touches?(void 0===(n=t)&&(n="page"),{x:(r=e.touches[0]||e.changedTouches[0]||rS)[n+"X"],y:r[n+"Y"]}):(void 0===(i=t)&&(i="page"),{x:e[i+"X"],y:e[i+"Y"]})}}var rC=function(e,t){void 0===t&&(t=!1);var n=function(t){return e(t,r_(t))};return t?function(e){var t=e instanceof MouseEvent;(!t||t&&0===e.button)&&n(e)}:n},rk={pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointercancel:"mousecancel",pointerover:"mouseover",pointerout:"mouseout",pointerenter:"mouseenter",pointerleave:"mouseleave"},rI={pointerdown:"touchstart",pointermove:"touchmove",pointerup:"touchend",pointercancel:"touchcancel"};function rL(e){return nn&&null===window.onpointerdown?e:nn&&null===window.ontouchstart?rI[e]:nn&&null===window.onmousedown?rk[e]:e}function rP(e,t,n,r){return rw(e,rL(t),rC(n,"pointerdown"===t),r)}function rO(e,t,n,r){return rx(e,rL(t),n&&rC(n,"pointerdown"===t),r)}function rR(e){var t=null;return function(){return null===t&&(t=e,function(){t=null})}}var rD=rR("dragHorizontal"),rN=rR("dragVertical");function rM(e){var t=!1;if("y"===e)t=rN();else if("x"===e)t=rD();else{var n=rD(),r=rN();n&&r?t=function(){n(),r()}:(n&&n(),r&&r())}return t}function rj(){var e=rM(!0);return!e||(e(),!1)}function rF(e,t,n){return function(r,i){var a;rT(r)&&!rj()&&(null==n||n(r,i),null===(a=e.animationState)||void 0===a||a.setActive(ry.Hover,t))}}var rB=function(e,t){return!!t&&(e===t||rB(e,t.parentElement))};function rU(e){return(0,r.useEffect)(function(){return function(){return e()}},[])}var rV=function(e,t,n){return Math.min(Math.max(n,e),t)};function rz(e,t){return e*Math.sqrt(1-t*t)}var rq=["duration","bounce"],rQ=["stiffness","damping","mass"];function rH(e,t){return t.some(function(t){return void 0!==e[t]})}function rG(e){var t=e.from,n=void 0===t?0:t,r=e.to,i=void 0===r?1:r,a=e.restSpeed,o=void 0===a?2:a,s=e.restDelta,l=tK(e,["from","to","restSpeed","restDelta"]),u={done:!1,value:n},c=function(e){var t=tG({velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1},e);if(!rH(e,rQ)&&rH(e,rq)){var n=function(e){var t,n,r=e.duration,i=void 0===r?800:r,a=e.bounce,o=e.velocity,s=void 0===o?0:o,l=e.mass,u=void 0===l?1:l;tX(i<=1e4,"Spring duration must be 10 seconds or less");var c=1-(void 0===a?.25:a);c=rV(.05,1,c),i=rV(.01,10,i/1e3),c<1?(t=function(e){var t=e*c,n=t*i;return .001-(t-s)/rz(e,c)*Math.exp(-n)},n=function(e){var n=e*c*i,r=Math.pow(c,2)*Math.pow(e,2)*i,a=Math.exp(-n),o=rz(Math.pow(e,2),c);return(.001-t(e)>0?-1:1)*((n*s+s-r)*a)/o}):(t=function(e){return Math.exp(-e*i)*((e-s)*i+1)-.001},n=function(e){return i*i*(s-e)*Math.exp(-e*i)});var d=function(e,t,n){for(var r=n,i=1;i<12;i++)r-=e(r)/t(r);return r}(t,n,5/i);if(i*=1e3,isNaN(d))return{stiffness:100,damping:10,duration:i};var h=Math.pow(d,2)*u;return{stiffness:h,damping:2*c*Math.sqrt(u*h),duration:i}}(e);(t=tG(tG(tG({},t),n),{velocity:0,mass:1})).isResolvedFromDuration=!0}return t}(l),d=c.stiffness,h=c.damping,f=c.mass,p=c.velocity,m=c.duration,g=c.isResolvedFromDuration,v=rK,y=rK;function b(){var e=p?-p/1e3:0,t=i-n,r=h/(2*Math.sqrt(d*f)),a=Math.sqrt(d/f)/1e3;if(null!=s||(s=1>=Math.abs(i-n)?.01:.4),r<1){var o=rz(a,r);v=function(n){return i-Math.exp(-r*a*n)*((e+r*a*t)/o*Math.sin(o*n)+t*Math.cos(o*n))},y=function(n){var i=Math.exp(-r*a*n);return r*a*i*(Math.sin(o*n)*(e+r*a*t)/o+t*Math.cos(o*n))-i*(Math.cos(o*n)*(e+r*a*t)-o*t*Math.sin(o*n))}}
77else if(1===r)v=function(n){return i-Math.exp(-a*n)*(t+(e+a*t)*n)};else{var l=a*Math.sqrt(r*r-1);v=function(n){var o=Math.exp(-r*a*n),s=Math.min(l*n,300);return i-o*((e+r*a*t)*Math.sinh(s)+l*t*Math.cosh(s))/l}}}return b(),{next:function(e){var t=v(e);if(g)u.done=e>=m;else{var n=1e3*y(e),r=Math.abs(i-t)<=s;u.done=Math.abs(n)<=o&&r}return u.value=u.done?i:t,u},flipTarget:function(){var e;p=-p,n=(e=[i,n])[0],i=e[1],b()}}}rG.needsInterpolation=function(e,t){return"string"==typeof e||"string"==typeof t};var rK=function(e){return 0},r$=function(e,t,n){var r=t-e;return 0===r?1:(n-e)/r},rW=function(e,t,n){return-n*e+n*t+e},rZ=function(e,t,n){var r=e*e;return Math.sqrt(Math.max(0,n*(t*t-r)+r))},rY=[nK,nG,nq],rX=function(e){return rY.find(function(t){return t.test(e)})},rJ=function(e){return"'"+e+"' is not an animatable color. Use the equivalent color code instead."},r0=function(e,t){var n=rX(e),r=rX(t);tJ(!!n,rJ(e)),tJ(!!r,rJ(t)),tJ(n.transform===r.transform,"Both colors must be hex/RGBA, OR both must be HSLA.");var i=n.parse(e),a=r.parse(t),o=tG({},i),s=n===nq?rW:rZ;return function(e){for(var t in o)"alpha"!==t&&(o[t]=s(i[t],a[t],e));return o.alpha=rW(i.alpha,a.alpha,e),n.transform(o)}},r1=function(e){return"number"==typeof e},r2=function(e,t){return function(n){return t(e(n))}},r3=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.reduce(r2)};function r4(e,t){return r1(e)?function(n){return rW(e,t,n)}:n$.test(e)?r0(e,t):r9(e,t)}var r5=function(e,t){var n=tW([],e),r=n.length,i=e.map(function(e,n){return r4(e,t[n])});return function(e){for(var t=0;t<r;t++)n[t]=i[t](e);return n}},r8=function(e,t){var n=tG(tG({},e),t),r={};for(var i in n)void 0!==e[i]&&void 0!==t[i]&&(r[i]=r4(e[i],t[i]));return function(e){for(var t in r)n[t]=r[t](e);return n}};function r6(e){for(var t=nJ.parse(e),n=t.length,r=0,i=0,a=0,o=0;o<n;o++)r||"number"==typeof t[o]?r++:void 0!==t[o].hue?a++:i++;return{parsed:t,numNumbers:r,numRGB:i,numHSL:a}}var r9=function(e,t){var n=nJ.createTransformer(t),r=r6(e),i=r6(t);return tJ(r.numHSL===i.numHSL&&r.numRGB===i.numRGB&&r.numNumbers>=i.numNumbers,"Complex values '"+e+"' and '"+t+"' too different to mix. Ensure all colors are of the same type."),r3(r5(r.parsed,i.parsed),n)},r7=function(e,t){return function(n){return rW(e,t,n)}};function ie(e,t,n){var r,i,a,o,s,l,u,c=void 0===n?{}:n,d=c.clamp,h=c.ease,f=c.mixer,p=e.length;tJ(p===t.length,"Both input and output ranges must be the same length"),tJ(!h||!Array.isArray(h)||h.length===p-1,"Array of easing functions must be of length `input.length - 1`, as it applies to the transitions **between** the defined values."),e[0]>e[p-1]&&(e=[].concat(e),t=[].concat(t),e.reverse(),t.reverse());var m=function(e,t,n){for(var r,i=[],a=n||("number"==typeof(r=e[0])?r7:"string"==typeof r?n$.test(r)?r0:r9:Array.isArray(r)?r5:"object"==typeof r?r8:void 0),o=e.length-1,s=0;s<o;s++){var l=a(e[s],e[s+1]);t&&(l=r3(Array.isArray(t)?t[s]:t,l)),i.push(l)}return i}(t,h,f),g=2===p?(i=(r=e)[0],a=r[1],o=m[0],function(e){return o(r$(i,a,e))}):(u=(l=(s=e).length)-1,function(e){var t=0,n=!1;if(e<=s[0]?n=!0:e>=s[u]&&(t=u-1,n=!0),!n){for(var r=1;r<l&&!(s[r]>e||r===u);r++);t=r-1}var i=r$(s[t],s[t+1],e);return m[t](i)});return void 0===d||d?function(t){return g(rV(e[0],e[p-1],t))}:g}var it=function(e){return function(t){return 1-e(1-t)}},ir=function(e){return function(t){return t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2}},ii=function(e){return function(t){return t*t*((e+1)*t-e)}},ia=function(e){return e},io=function(e){return Math.pow(e,2)},is=it(io),il=ir(io),iu=function(e){return 1-Math.sin(Math.acos(e))},ic=it(iu),id=ir(ic),ih=ii(1.525),ip=it(ih),im=ir(ih),ig=(ot=ii(1.525),function(e){return(e*=2)<1?.5*ot(e):.5*(2-Math.pow(2,-10*(e-1)))}),iv=function(e){if(1===e||0===e)return e;var t=e*e;return e<.36363636363636365?7.5625*t:e<.7272727272727273?9.075*t-9.9*e+3.4:e<.9?12.066481994459833*t-19.63545706371191*e+8.898060941828255:10.8*e*e-20.52*e+10.72},iy=it(iv);function ib(e){var t,n=e.from,r=void 0===n?0:n,i=e.to,a=void 0===i?1:i,o=e.ease,s=e.offset,l=e.duration,u=void 0===l?300:l,c={done:!1,value:r},d=Array.isArray(a)?a:[r,a],h=(s&&s.length===d.length?s:(t=d.length,d.map(function(e,n){return 0!==n?n
77/(t-1):0}))).map(function(e){return e*u});function f(){return ie(h,d,{ease:Array.isArray(o)?o:d.map(function(){return o||il}).splice(0,d.length-1)})}var p=f();return{next:function(e){return c.value=p(e),c.done=e>=u,c},flipTarget:function(){d.reverse(),p=f()}}}var iA={keyframes:ib,spring:rG,decay:function(e){var t=e.velocity,n=e.from,r=void 0===n?0:n,i=e.power,a=e.timeConstant,o=void 0===a?350:a,s=e.restDelta,l=void 0===s?.5:s,u=e.modifyTarget,c={done:!1,value:r},d=(void 0===i?.8:i)*(void 0===t?0:t),h=r+d,f=void 0===u?h:u(h);return f!==h&&(d=f-r),{next:function(e){var t=-d*Math.exp(-e/o);return c.done=!(t>l||t<-l),c.value=c.done?f:f+t,c},flipTarget:function(){}}}},iE="undefined"!=typeof performance?function(){return performance.now()}:function(){return Date.now()},iw="undefined"!=typeof window?function(e){return window.requestAnimationFrame(e)}:function(e){return setTimeout(function(){return e(iE())},16.666666666666668)},ix=!0,iT=!1,iS=!1,i_={delta:0,timestamp:0},iC=["read","update","preRender","render","postRender"],ik=iC.reduce(function(e,t){var n,r,i,a,o,s;return e[t]=(n=[],r=[],i=0,a=!1,o=new WeakSet,s={schedule:function(e,t,s){void 0===t&&(t=!1),void 0===s&&(s=!1);var l=s&&a,u=l?n:r;return t&&o.add(e),-1===u.indexOf(e)&&(u.push(e),l&&a&&(i=n.length)),e},cancel:function(e){var t=r.indexOf(e);-1!==t&&r.splice(t,1),o.delete(e)},process:function(e){var t;if(a=!0,n=(t=[r,n])[0],(r=t[1]).length=0,i=n.length)for(var l=0;l<i;l++){var u=n[l];u(e),o.has(u)&&(s.schedule(u),iT=!0)}a=!1}}),e},{}),iI=iC.reduce(function(e,t){var n=ik[t];return e[t]=function(e,t,r){return void 0===t&&(t=!1),void 0===r&&(r=!1),iT||iD(),n.schedule(e,t,r)},e},{}),iL=iC.reduce(function(e,t){return e[t]=ik[t].cancel,e},{}),iP=iC.reduce(function(e,t){return e[t]=function(){return ik[t].process(i_)},e},{}),iO=function(e){return ik[e].process(i_)},iR=function(e){iT=!1,i_.delta=ix?16.666666666666668:Math.max(Math.min(e-i_.timestamp,40),1),i_.timestamp=e,iS=!0,iC.forEach(iO),iS=!1,iT&&(ix=!1,iw(iR))},iD=function(){iT=!0,ix=!0,iS||iw(iR)},iN=function(){return i_};function iM(e,t,n){return void 0===n&&(n=0),e-t-n}var ij=function(e){var t=function(t){return e(t.delta)};return{start:function(){return iI.update(t,!0)},stop:function(){return iL.update(t)}}};function iF(e){var t,n,r,i,a=e.from,o=e.autoplay,s=e.driver,l=e.elapsed,u=void 0===l?0:l,c=e.repeat,d=void 0===c?0:c,h=e.repeatType,f=void 0===h?"loop":h,p=e.repeatDelay,m=void 0===p?0:p,g=e.onPlay,v=e.onStop,y=e.onComplete,b=e.onRepeat,A=e.onUpdate,E=tK(e,["from","autoplay","driver","elapsed","repeat","repeatType","repeatDelay","onPlay","onStop","onComplete","onRepeat","onUpdate"]),w=E.to,x=0,T=E.duration,S=!1,_=!0,C=function(e){if(Array.isArray(e.to))return ib;if(iA[e.type])return iA[e.type];var t=new Set(Object.keys(e));return t.has("ease")||t.has("duration")&&!t.has("dampingRatio")?ib:t.has("dampingRatio")||t.has("stiffness")||t.has("mass")||t.has("damping")||t.has("restSpeed")||t.has("restDelta")?rG:ib}(E);(null===(t=C.needsInterpolation)||void 0===t?void 0:t.call(C,a,w))&&(i=ie([0,100],[a,w],{clamp:!1}),a=0,w=100);var k=C(tG(tG({},E),{from:a,to:w}));return(void 0===o||o)&&(null==g||g(),(n=(void 0===s?ij:s)(function(e){if(_||(e=-e),u+=e,!S){var t,a,o,s,l,c,h=k.next(Math.max(0,u));r=h.value,i&&(r=i(r)),S=_?h.done:u<=0}null==A||A(r),S&&(0===x&&(null!=T||(T=u)),x<d?(t=u,a=T,(_?t>=a+m:t<=-m)&&(x++,"reverse"===f?(o=u,s=T,l=m,c=_=x%2==0,void 0===l&&(l=0),void 0===c&&(c=!0),u=c?iM(s+-o,s,l):s-(o-s)+l):(u=iM(u,T,m),"mirror"===f&&k.flipTarget()),S=!1,b&&b())):(n.stop(),y&&y()))})).start()),{stop:function(){null==v||v(),n.stop()}}}var iB=function(e){return e.hasOwnProperty("x")&&e.hasOwnProperty("y")},iU=function(e){return iB(e)&&e.hasOwnProperty("z")},iV=function(e,t){return Math.abs(e-t)};function iz(e,t){return r1(e)&&r1(t)?iV(e,t):iB(e)&&iB(t)?Math.sqrt(Math.pow(iV(e.x,t.x),2)+Math.pow(iV(e.y,t.y),2)+Math.pow(iU(e)&&iU(t)?iV(e.z,t.z):0,2)):void 0}var iq=function(e,t){return 1-3*t+3*e},iQ=function(e,t){return 3*t-6*e},iH=function(e){return 3*e},iG=function(e,t,n){return((iq(t,n)*e+iQ(t,n))*e+iH(t))*e},iK=function(e,t,n){return 3*iq(t,n)*e*e+2*iQ(t,n)*e+iH(t)},i$=function(e){return function(t){return e(t),null}}
77,iW={tap:i$(function(e){var t=e.onTap,n=e.onTapStart,i=e.onTapCancel,a=e.whileTap,o=e.visualElement,s=(0,r.useRef)(!1),l=(0,r.useRef)(null);function u(){var e;null===(e=l.current)||void 0===e||e.call(l),l.current=null}function c(){var e;return u(),s.current=!1,null===(e=o.animationState)||void 0===e||e.setActive(ry.Tap,!1),!rj()}function d(e,n){c()&&(rB(o.getInstance(),e.target)?null==t||t(e,n):null==i||i(e,n))}function h(e,t){c()&&(null==i||i(e,t))}rO(o,"pointerdown",t||n||i||a?function(e,t){var r;u(),s.current||(s.current=!0,l.current=r3(rP(window,"pointerup",d),rP(window,"pointercancel",h)),null==n||n(e,t),null===(r=o.animationState)||void 0===r||r.setActive(ry.Tap,!0))}:void 0),rU(u)}),focus:i$(function(e){var t=e.whileFocus,n=e.visualElement;rx(n,"focus",t?function(){var e;null===(e=n.animationState)||void 0===e||e.setActive(ry.Focus,!0)}:void 0),rx(n,"blur",t?function(){var e;null===(e=n.animationState)||void 0===e||e.setActive(ry.Focus,!1)}:void 0)}),hover:i$(function(e){var t=e.onHoverStart,n=e.onHoverEnd,r=e.whileHover,i=e.visualElement;rO(i,"pointerenter",t||r?rF(i,!0,t):void 0),rO(i,"pointerleave",n||r?rF(i,!1,n):void 0)})};function iZ(e,t){if(!Array.isArray(t))return!1;var n=t.length;if(n!==e.length)return!1;for(var r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}var iY=function(e){return 1e3*e},iX={linear:ia,easeIn:io,easeInOut:il,easeOut:is,circIn:iu,circInOut:id,circOut:ic,backIn:ih,backInOut:im,backOut:ip,anticipate:ig,bounceIn:iy,bounceInOut:function(e){return e<.5?.5*(1-iv(1-2*e)):.5*iv(2*e-1)+.5},bounceOut:iv},iJ=function(e){if(Array.isArray(e)){tJ(4===e.length,"Cubic bezier arrays must contain four numerical values.");var t=t$(e,4);return function(e,t,n,r){if(e===t&&n===r)return ia;for(var i=new Float32Array(11),a=0;a<11;++a)i[a]=iG(.1*a,e,n);return function(a){return 0===a||1===a?a:iG(function(t){for(var r=0,a=1;10!==a&&i[a]<=t;++a)r+=.1;var o=r+(t-i[--a])/(i[a+1]-i[a])*.1,s=iK(o,e,n);return s>=.001?function(e,t,n,r){for(var i=0;i<8;++i){var a=iK(t,n,r);if(0===a)break;t-=(iG(t,n,r)-e)/a}return t}(t,o,e,n):0===s?o:function(e,t,n,r,i){var a,o,s=0;do(a=iG(o=t+(n-t)/2,r,i)-e)>0?n=o:t=o;while(Math.abs(a)>1e-7&&++s<10);return o}(t,r,r+.1,e,n)}(a),t,r)}}(t[0],t[1],t[2],t[3])}return"string"==typeof e?(tJ(void 0!==iX[e],"Invalid easing type '"+e+"'"),iX[e]):e},i0=function(e,t){return"zIndex"!==e&&(!("number"!=typeof t&&!Array.isArray(t))||!("string"!=typeof t||!nJ.test(t)||t.startsWith("url(")))},i1=function(){return{type:"spring",stiffness:500,damping:25,restDelta:.5,restSpeed:10}},i2=function(e){return{type:"spring",stiffness:550,damping:0===e?2*Math.sqrt(550):30,restDelta:.01,restSpeed:10}},i3=function(){return{type:"keyframes",ease:"linear",duration:.3}},i4=function(e){return{type:"keyframes",duration:.8,values:e}},i5={x:i1,y:i1,z:i1,rotate:i1,rotateX:i1,rotateY:i1,rotateZ:i1,scaleX:i2,scaleY:i2,scale:i2,opacity:i3,backgroundColor:i3,color:i3,default:i2},i8=tG(tG({},n5),{color:n$,backgroundColor:n$,outlineColor:n$,fill:n$,stroke:n$,borderColor:n$,borderTopColor:n$,borderRightColor:n$,borderBottomColor:n$,borderLeftColor:n$,filter:n3,WebkitFilter:n3}),i6=function(e){return i8[e]};function i9(e,t){var n,r=i6(e);return r!==n3&&(r=nJ),null===(n=r.getAnimatableNone)||void 0===n?void 0:n.call(r,t)}var i7=!1;function ae(e){return 0===e||"string"==typeof e&&0===parseFloat(e)&&-1===e.indexOf(" ")}function at(e){return"number"==typeof e?0:i9("",e)}function an(e,t){return e[t]||e.default||e}function ar(e,t,n,r){return void 0===r&&(r={}),t.start(function(i){var a,o,s,l,u,c,d,h,f,p=(a=n,l=null!==(o=(s=an(r,e)).from)&&void 0!==o?o:t.get(),u=i0(e,a),"none"===l&&u&&"string"==typeof a?l=i9(e,a):ae(l)&&"string"==typeof a?l=at(a):!Array.isArray(a)&&ae(a)&&"string"==typeof l&&(a=at(l)),c=i0(e,l),tX(c===u,"You are trying to animate "+e+' from "'+l+'" to "'+a+'". '+l+" is not an animatable value - to enable this animation set "+l+" to a value animatable to "+a+" via the `style` property."),c&&u&&!1!==s.type?function(){var n,r,o,u,c,d,h,f,p,m,g,v,y,b={from:l,to:a,velocity:t.getVelocity(),onComplete:i,onUpdate:function(e){return t.set(e)}};return"inertia"===s.type||"decay"===s.type?function(e){var t,n=e.from,r=void 0===n?0:n,i=e.velocity,a=void 0===i?0:i,o=e.min,s=e.max,l=e.power,u=void 0===l?.8:l,c=e.timeConstant,d=e.bounceStiffness,h=void 0===d?500:d,f=e.bounceDamping,p=void 0===f?10:f,m=e.restDelta,g=void 0===m?1:m,v=e.modifyTarget,y=e.driver,b=e.onUpdate,A=e.onComplete;function E(e){return void 0!==o&&e<o||void 0!==s&&e>s}function w(e){return void 0===o?s:void 0===s||Math.abs(o-e)<Math.abs(s-e)?o:s}function x(e){null==t||t.stop(),t=iF(tG(tG({},e),{driver:y,onUpdate:function(t){var n;null==b||b(t),null===(n=e.onUpdate)||void 0===n||n.call(e,t)},onComplete:A}))}function T(e){x(tG({type:"spring",stiffness:h,damping:p,restDelta:g},e))}if(E(r))T({from:r,velocity:a,to:w(r)});else{var S=u*a+r;void 0!==v&&(S=v(S));var _,C,k=w(S),I=k===o?-1:1;x({type:"decay",from:r,velocity:a,timeConstant:void 0===c?750:c,power:u,restDelta:g,modifyTarget:v,onUpdate:E(S)?function(e){var t,n;_=C,C=e,t=e-_,a=(n=iN().delta)?1e3/n*t:0,(1===I&&e>k||-1===I&&e<k)&&T({from:e,to:k,velocity:a})}:void 0})}return{stop:function(){return null==t?void 0:t.stop()}}}(tG(tG({},b),s)):iF(tG(tG({},(n=s,Array.isArray(b.to)&&(null!==(r=n.duration)&&void 0!==r||(n.duration=.8)),Array.isArray(b.to)&&null===b.to[0]&&(b.to=tW([],t$(b.to)),b.to[0]=b.from),(c=n).when,c.delay,c.delayChildren,c.staggerChildren,c.staggerDirection,c.repeat,c.repeatType,c.repeatDelay,c.from,Object.keys(tK(c,["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from"])).length||(n=tG(tG({},n),(u=rg(o=b.to)?i4:i5[e]||i5.default,tG({to:o},u(o))))),tG(tG({},b),(h=(d=n).ease,f=d.times,p=d.yoyo,m=d.flip,g=d.loop,v=tK(d,["ease","times","yoyo","flip","loop"]),y=tG({},v),f&&(y.offset=f),v.duration&&(y.duration=iY(v.duration)),v.repeatDelay&&(y.repeatDelay=iY(v.repeatDelay)),h&&(y.ease=Array.isArray(h)&&"number"!=typeof h[0]?h.map(iJ):iJ(h)),"tween"===v.type&&(y.type="keyframes"),(p||g||m)&&(tX(!i7,"yoyo, loop and flip have been removed from the API. Replace with repeat and repeatType options."),i7=!0,p?y.repeatType="reverse":g?y.repeatType="loop":m&&(y.repeatType="mirror"),y.repeat=g||p||m||v.repeat),"spring"!==v.type&&(y.type="keyframes"),y)))),{onUpdate:function(e){var t;b.onUpdate(e),null===(t=s.onUpdate)||void 0===t||t.call(s,e)},onComplete:function(){var e;b.onComplete(),null===(e=s.onComplete)||void 0===e||e.call(s)}}))}:function(){var e;return t.set(a),i(),null===(e=null==s?void 0:s.onComplete)||void 0===e||e.call(s),{stop:function(){}}}),m=null!==(d=(an(r,e)||{}).delay)&&void 0!==d?d:0,g=function(){return f=p()};
77return m?h=setTimeout(g,iY(m)):g(),function(){clearTimeout(h),null==f||f.stop()}})}function ai(e,t){-1===e.indexOf(t)&&e.push(t)}function aa(e,t){var n=e.indexOf(t);n>-1&&e.splice(n,1)}var ao=function(){function e(){this.subscriptions=[]}return e.prototype.add=function(e){var t=this;return ai(this.subscriptions,e),function(){return aa(t.subscriptions,e)}},e.prototype.notify=function(e,t,n){var r=this.subscriptions.length;if(r){if(1===r)this.subscriptions[0](e,t,n);else for(var i=0;i<r;i++){var a=this.subscriptions[i];a&&a(e,t,n)}}},e.prototype.getSize=function(){return this.subscriptions.length},e.prototype.clear=function(){this.subscriptions.length=0},e}(),as=function(){function e(e){var t=this;this.timeDelta=0,this.lastUpdated=0,this.updateSubscribers=new ao,this.velocityUpdateSubscribers=new ao,this.renderSubscribers=new ao,this.canTrackVelocity=!1,this.updateAndNotify=function(e,n){void 0===n&&(n=!0),t.prev=t.current,t.current=e;var r=iN(),i=r.delta,a=r.timestamp;t.lastUpdated!==a&&(t.timeDelta=i,t.lastUpdated=a,iI.postRender(t.scheduleVelocityCheck)),t.prev!==t.current&&t.updateSubscribers.notify(t.current),t.velocityUpdateSubscribers.getSize()&&t.velocityUpdateSubscribers.notify(t.getVelocity()),n&&t.renderSubscribers.notify(t.current)},this.scheduleVelocityCheck=function(){return iI.postRender(t.velocityCheck)},this.velocityCheck=function(e){e.timestamp!==t.lastUpdated&&(t.prev=t.current,t.velocityUpdateSubscribers.notify(t.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=e,this.canTrackVelocity=!isNaN(parseFloat(this.current))}return e.prototype.onChange=function(e){return this.updateSubscribers.add(e)},e.prototype.clearListeners=function(){this.updateSubscribers.clear()},e.prototype.onRenderRequest=function(e){return e(this.get()),this.renderSubscribers.add(e)},e.prototype.attach=function(e){this.passiveEffect=e},e.prototype.set=function(e,t){void 0===t&&(t=!0),t&&this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e,t)},e.prototype.get=function(){return this.current},e.prototype.getPrevious=function(){return this.prev},e.prototype.getVelocity=function(){var e,t;return this.canTrackVelocity?(e=parseFloat(this.current)-parseFloat(this.prev),(t=this.timeDelta)?1e3/t*e:0):0},e.prototype.start=function(e){var t=this;return this.stop(),new Promise(function(n){t.hasAnimated=!0,t.stopAnimation=e(n)}).then(function(){return t.clearAnimation()})},e.prototype.stop=function(){this.stopAnimation&&this.stopAnimation(),this.clearAnimation()},e.prototype.isAnimating=function(){return!!this.stopAnimation},e.prototype.clearAnimation=function(){this.stopAnimation=null},e.prototype.destroy=function(){this.updateSubscribers.clear(),this.renderSubscribers.clear(),this.stop()},e}();function al(e){return new as(e)}var au=function(e){return function(t){return t.test(e)}},ac=[nP,nj,nM,nN,nB,nF,{test:function(e){return"auto"===e},parse:function(e){return e}}],ad=function(e){return ac.find(au(e))},ah=tW(tW([],t$(ac)),[n$,nJ]);function af(e,t,n){void 0===n&&(n={});var r,i=nl(e,t,n.custom),a=(i||{}).transition,o=void 0===a?e.getDefaultTransition()||{}:a;n.transitionOverride&&(o=n.transitionOverride);var s=i?function(){return ap(e,i,n)}:function(){return Promise.resolve()},l=(null===(r=e.variantChildren)||void 0===r?void 0:r.size)?function(r){void 0===r&&(r=0);var i,a,s,l,u,c,d,h=o.delayChildren,f=o.staggerChildren,p=o.staggerDirection;return i=(void 0===h?0:h)+r,a=f,s=p,l=n,void 0===i&&(i=0),void 0===a&&(a=0),void 0===s&&(s=1),u=[],c=(e.variantChildren.size-1)*a,d=1===s?function(e){return void 0===e&&(e=0),e*a}:function(e){return void 0===e&&(e=0),c-e*a},Array.from(e.variantChildren).sort(am).forEach(function(e,n){u.push(af(e,t,tG(tG({},l),{delay:i+d(n)})).then(function(){return e.notifyAnimationComplete(t)}))}),Promise.all(u)}:function(){return Promise.resolve()},u=o.when;if(u){var c=t$("beforeChildren"===u?[s,l]:[l,s],2),d=c[0],h=c[1];return d().then(h)}return Promise.all([s(),l(n.delay)])}function ap(e,t,n){var r,i=void 0===n?{}:n,a=i.delay,o=void 0===a?0:a,s=i.transitionOverride,l=i.type,u=e.makeTargetAnimatable(t),c=u.transition,d=void 0===c?e.getDefaultTransition():c,h=u.transitionEnd,f=tK(u,["transition","transitionEnd"]);s&&(d=s);var p=[],m=l&&(null===(r=e.animationState)||void 0===r?void 0:r.getState()[l]);for(var g in f){var v=e.getValue(g),y=f[g];if(!(!v||void 0===y||m&&function(e,t){var n=e.protectedKeys,r=e.needsAnimating,i=n.hasOwnProperty(t)&&!0!==r[t];return r[t]=!1,i}(m,g))){var b=ar(g,v,y,tG({delay:o},d));p.push(b)}}return Promise.all(p).then(function(){h&&function(e,t){var n,r,i=nl(e,t),a=i?e.makeTargetAnimatable(i,!1):{},o=a.transitionEnd,s=void 0===o?{}:o;a.transition;var l=tK(a,["transitionEnd","transition"]);for(var u in l=tG(tG({},l),s))r=rg(n=l[u])?n[n.length-1]||0:n,e.hasValue(u)?e.getValue(u).set(r):e.addValue(u,al(r))}(e,h)})}function am(e,t){return e.sortNodePosition(t)}var ag=[ry.Animate,ry.Hover,ry.Tap,ry.Drag,ry.Focus,ry.Exit],av=tW([],t$(ag)).reverse(),ay=ag.length;function ab(e){return void 0===e&&(e=!1),{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}var aA={animation:i$(function(e){var t=e.visualElement,n=e.animate;t.animationState||(t.animationState=function(e){var t,n=function(t){return Promise.all(t.map(function(t){return function(e,t,n){var r;if(void 0===n&&(n={}),e.notifyAnimationStart(),Array.isArray(t))r=Promise.all(t.map(function(t){return af(e,t,n)}));else if("string"==typeof t)r=af(e,t,n);else{var i="function"==typeof t?nl(e,t,n.custom):t;r=ap(e,i,n)}return r.then(function(){return e.notifyAnimationComplete(t)})}(e,t.animation,t.options)}))},r=((t={})[ry.Animate]=ab(!0),t[ry.Hover]=ab(),t[ry.Tap]=ab(),t[ry.Drag]=ab(),t[ry.Focus]=ab(),t[ry.Exit]=ab(),t),i={},a=!0,o=function(t,n){var r=nl(e,n);if(r){r.transition;var i=r.transitionEnd,a=tK(r,["transition","transitionEnd"]);t=tG(tG(tG({},t),a),i)}return t};
77function s(t,s){for(var l,u=e.getProps(),c=e.getVariantContext(!0)||{},d=[],h=new Set,f={},p=1/0,m=0;m<ay;m++)!function(n){var i,m=av[n],g=r[m],v=null!==(l=u[m])&&void 0!==l?l:c[m],y=no(v),b=m===s?g.isActive:null;!1===b&&(p=n);var A=v===c[m]&&v!==u[m]&&y;if(A&&a&&e.manuallyAnimateOnMount&&(A=!1),g.protectedKeys=tG({},f),!(!g.isActive&&null===b||!v&&!g.prevProp||rm(v))&&"boolean"!=typeof v){var E=(i=g.prevProp,("string"==typeof v?v!==i:!!na(v)&&!iZ(v,i))||m===s&&g.isActive&&!A&&y||n>p&&y),w=Array.isArray(v)?v:[v],x=w.reduce(o,{});!1===b&&(x={});var T=g.prevResolvedValues,S=void 0===T?{}:T,_=tG(tG({},S),x),C=function(e){E=!0,h.delete(e),g.needsAnimating[e]=!0};for(var k in _){var I=x[k],L=S[k];f.hasOwnProperty(k)||(I!==L?rg(I)&&rg(L)?iZ(I,L)?g.protectedKeys[k]=!0:C(k):void 0!==I?C(k):h.add(k):void 0!==I&&h.has(k)?C(k):g.protectedKeys[k]=!0)}g.prevProp=v,g.prevResolvedValues=x,g.isActive&&(f=tG(tG({},f),x)),a&&e.blockInitialAnimation&&(E=!1),E&&!A&&d.push.apply(d,tW([],t$(w.map(function(e){return{animation:e,options:tG({type:m},t)}}))))}}(m);if(i=tG({},f),h.size){var g={};h.forEach(function(t){var n=e.getBaseTarget(t);void 0!==n&&(g[t]=n)}),d.push({animation:g})}var v=!!d.length;return a&&!1===u.initial&&!e.manuallyAnimateOnMount&&(v=!1),a=!1,v?n(d):Promise.resolve()}return{isAnimated:function(e){return void 0!==i[e]},animateChanges:s,setActive:function(t,n,i){var a;return r[t].isActive===n?Promise.resolve():(null===(a=e.variantChildren)||void 0===a||a.forEach(function(e){var r;return null===(r=e.animationState)||void 0===r?void 0:r.setActive(t,n)}),r[t].isActive=n,s(i,t))},setAnimateFunction:function(t){n=t(e)},getState:function(){return r}}}(t)),rm(n)&&(0,r.useEffect)(function(){return n.subscribe(t)},[n])}),exit:i$(function(e){var t=e.custom,n=e.visualElement,i=t$(t6(),2),a=i[0],o=i[1],s=(0,r.useContext)(t5);(0,r.useEffect)(function(){var e,r,i=null===(e=n.animationState)||void 0===e?void 0:e.setActive(ry.Exit,!a,{custom:null!==(r=null==s?void 0:s.custom)&&void 0!==r?r:t});a||null==i||i.then(o)},[a])})},aE=function(){function e(e,t,n){var r=this,i=(void 0===n?{}:n).transformPagePoint;if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.updatePoint=function(){if(r.lastMoveEvent&&r.lastMoveEventInfo){var e=aT(r.lastMoveEventInfo,r.history),t=null!==r.startEvent,n=iz(e.offset,{x:0,y:0})>=3;if(t||n){var i=e.point,a=iN().timestamp;r.history.push(tG(tG({},i),{timestamp:a}));var o=r.handlers,s=o.onStart,l=o.onMove;t||(s&&s(r.lastMoveEvent,e),r.startEvent=r.lastMoveEvent),l&&l(r.lastMoveEvent,e)}}},this.handlePointerMove=function(e,t){r.lastMoveEvent=e,r.lastMoveEventInfo=aw(t,r.transformPagePoint),rT(e)&&0===e.buttons?r.handlePointerUp(e,t):iI.update(r.updatePoint,!0)},this.handlePointerUp=function(e,t){r.end();var n=r.handlers,i=n.onEnd,a=n.onSessionEnd,o=aT(aw(t,r.transformPagePoint),r.history);r.startEvent&&i&&i(e,o),a&&a(e,o)},!(e.touches&&e.touches.length>1)){this.handlers=t,this.transformPagePoint=i;var a=aw(r_(e),this.transformPagePoint),o=a.point,s=iN().timestamp;this.history=[tG(tG({},o),{timestamp:s})];var l=t.onSessionStart;l&&l(e,aT(a,this.history)),this.removeListeners=r3(rP(window,"pointermove",this.handlePointerMove),rP(window,"pointerup",this.handlePointerUp),rP(window,"pointercancel",this.handlePointerUp))}}return e.prototype.updateHandlers=function(e){this.handlers=e},e.prototype.end=function(){this.removeListeners&&this.removeListeners(),iL.update(this.updatePoint)},e}();function aw(e,t){return t?{point:t(e.point)}:e}function ax(e,t){return{x:e.x-t.x,y:e.y-t.y}}function aT(e,t){var n=e.point;return{point:n,delta:ax(n,aS(t)),offset:ax(n,t[0]),velocity:function(e,t){if(e.length<2)return{x:0,y:0};for(var n=e.length-1,r=null,i=aS(e);n>=0&&(r=e[n],!(i.timestamp-r.timestamp>iY(.1)));)n--;if(!r)return{x:0,y:0};var a=(i.timestamp-r.timestamp)/1e3;if(0===a)return{x:0,y:0};var o={x:(i.x-r.x)/a,y:(i.y-r.y)/a};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}(t,0)}}function aS(e){return e[e.length-1]}function a_(e){return e}function aC(e){var t=e.top;return{x:{min:e.left,max:e.right},y:{min:t,max:e.bottom}}}var ak={translate:0,scale:1,origin:0,originPoint:0};function aI(){return{x:tG({},ak),y:tG({},ak)}}function aL(e){return[e("x"),e("y")]}function aP(e,t,n){var r=t.min,i=t.max;return void 0!==r&&e<r?e=n?rW(r,e,n.min):Math.max(e,r):void 0!==i&&e>i&&(e=n?rW(i,e,n.max):Math.min(e,i)),e}function aO(e,t,n){return{min:void 0!==t?e.min+t:void 0,max:void 0!==n?e.max+n-(e.max-e.min):void 0}}function aR(e,t){var n,r=t.min-e.min,i=t.max-e.max;return t.max-t.min<e.max-e.min&&(r=(n=t$([i,r],2))[0],i=n[1]),{min:e.min+r,max:e.min+i}}
77function aD(e,t,n){return{min:aN(e,t),max:aN(e,n)}}function aN(e,t){var n;return"number"==typeof e?e:null!==(n=e[t])&&void 0!==n?n:0}function aM(e,t){var n,r,i,a,o,s,l,u;return aC((n=e.getBoundingClientRect(),r=t,i=n.top,a=n.left,o=n.bottom,s=n.right,void 0===r&&(r=a_),l=r({x:a,y:i}),u=r({x:s,y:o}),{top:l.y,left:l.x,bottom:u.y,right:u.x}))}function aj(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=.01),iz(e,t)<n}function aF(e){return e.max-e.min}function aB(e,t,n,r){void 0===r&&(r=.5),e.origin=r,e.originPoint=rW(t.min,t.max,e.origin),e.scale=aF(n)/aF(t),aj(e.scale,1,1e-4)&&(e.scale=1),e.translate=rW(n.min,n.max,e.origin)-e.originPoint,aj(e.translate)&&(e.translate=0)}function aU(e,t,n,r){aB(e.x,t.x,n.x,aV(r.originX)),aB(e.y,t.y,n.y,aV(r.originY))}function aV(e){return"number"==typeof e?e:.5}function az(e,t,n){e.min=n.min+t.min,e.max=e.min+aF(t)}var aq=function(e,t){return e.depth-t.depth};function aQ(e){return e.projection.isEnabled||e.shouldResetTransform()}function aH(e,t){void 0===t&&(t=[]);var n=e.parent;return n&&aH(n,t),aQ(e)&&t.push(e),t}function aG(e){if(!e.shouldResetTransform()){var t,n=e.getLayoutState();e.notifyBeforeLayoutMeasure(n.layout),n.isHydrated=!0,n.layout=e.measureViewportBox(),n.layoutCorrected=(t=n.layout,{x:tG({},t.x),y:tG({},t.y)}),e.notifyLayoutMeasure(n.layout,e.prevViewportBox||n.layout),iI.update(function(){return e.rebaseProjectionTarget()})}}function aK(e,t){return{min:t.min-e.min,max:t.max-e.min}}function a$(e,t){return{x:aK(e.x,t.x),y:aK(e.y,t.y)}}function aW(e){var t=e.getProps(),n=t.drag,r=t._dragX;return n&&!r}function aZ(e,t){e.min=t.min,e.max=t.max}function aY(e,t,n,r,i){return void 0!==i&&(e=r+i*(e-r)),r+n*(e-r)+t}function aX(e,t,n,r,i){void 0===t&&(t=0),void 0===n&&(n=1),e.min=aY(e.min,t,n,r,i),e.max=aY(e.max,t,n,r,i)}function aJ(e,t,n,r){var i=t$(r,3),a=i[0],o=i[1],s=i[2];e.min=t.min,e.max=t.max;var l=void 0!==n[s]?n[s]:.5,u=rW(t.min,t.max,l);aX(e,n[a],n[o],u,n.scale)}var a0=["x","scaleX","originX"],a1=["y","scaleY","originY"];function a2(e,t,n){aJ(e.x,t.x,n,a0),aJ(e.y,t.y,n,a1)}function a3(e,t,n,r,i){return e=r+1/n*((e-=t)-r),void 0!==i&&(e=r+1/i*(e-r)),e}function a4(e,t,n){var r,i,a,o,s,l=t$(n,3),u=l[0],c=l[1],d=l[2];r=t[u],i=t[c],a=t[d],o=t.scale,void 0===r&&(r=0),void 0===i&&(i=1),void 0===a&&(a=.5),s=rW(e.min,e.max,a)-r,e.min=a3(e.min,r,i,s,o),e.max=a3(e.max,r,i,s,o)}function a5(e,t){a4(e.x,t,a0),a4(e.y,t,a1)}var a8=new Set;function a6(e,t,n){e[n]||(e[n]=[]),e[n].push(t)}function a9(e){return a8.add(e),function(){return a8.delete(e)}}function a7(){if(a8.size){var e=0,t=[[]],n=[],r=function(n){return a6(t,n,e)},i=function(t){a6(n,t,e),e++};a8.forEach(function(t){t(r,i),e=0}),a8.clear();for(var a=n.length,o=0;o<=a;o++)t[o]&&t[o].forEach(or),n[o]&&n[o].forEach(or)}}var oe,ot,on,or=function(e){return e()},oi=new WeakMap,oa=function(){function e(e){var t=e.visualElement;this.isDragging=!1,this.currentDirection=null,this.constraints=!1,this.elastic={x:{min:0,max:1},y:{min:0,max:1}},this.props={},this.hasMutatedConstraints=!1,this.cursorProgress={x:.5,y:.5},this.originPoint={},this.openGlobalLock=null,this.panSession=null,this.visualElement=t,this.visualElement.enableLayoutProjection(),oi.set(t,this)}return e.prototype.start=function(e,t){var n=this,r=void 0===t?{}:t,i=r.snapToCursor,a=void 0!==i&&i,o=r.cursorProgress,s=this.props.transformPagePoint;this.panSession=new aE(e,{onSessionStart:function(e){n.stopMotion();var t,r=r_(e,"client").point;null===(t=n.cancelLayout)||void 0===t||t.call(n),n.cancelLayout=a9(function(e,t){var i,s,l,u=aH(n.visualElement),c=(i=n.visualElement,s=[],l=function(e){aQ(e)&&s.push(e),e.children.forEach(l)},i.children.forEach(l),s.sort(aq)),d=tW(tW([],t$(u)),t$(c)),h=!1;n.isLayoutDrag()&&n.visualElement.lockProjectionTarget(),t(function(){d.forEach(function(e){return e.resetTransform()})}),e(function(){aG(n.visualElement),c.forEach(aG)}),t(function(){d.forEach(function(e){return e.restoreTransform()}),a&&(h=n.snapToCursor(r))}),e(function(){n.getAxisMotionValue("x")&&!n.isExternalDrag()||n.visualElement.rebaseProjectionTarget(!0,n.visualElement.measureViewportBox(!1)),n.visualElement.scheduleUpdateLayoutProjection();var e=n.visualElement.projection;aL(function(t){if(!h){var i=e.target[t],a=i.min,s=i.max;n.cursorProgress[t]=o?o[t]:r$(a,s,r[t])}var l=n.getAxisMotionValue(t);l&&(n.originPoint[t]=l.get())})}
77),t(function(){iP.update(),iP.preRender(),iP.render(),iP.postRender()}),e(function(){return n.resolveDragConstraints()})})},onStart:function(e,t){var r,i,a,o=n.props,s=o.drag,l=o.dragPropagation;(!s||l||(n.openGlobalLock&&n.openGlobalLock(),n.openGlobalLock=rM(s),n.openGlobalLock))&&(a7(),n.isDragging=!0,n.currentDirection=null,null===(i=(r=n.props).onDragStart)||void 0===i||i.call(r,e,t),null===(a=n.visualElement.animationState)||void 0===a||a.setActive(ry.Drag,!0))},onMove:function(e,t){var r,i,a,o,s=n.props,l=s.dragPropagation,u=s.dragDirectionLock;if(l||n.openGlobalLock){var c,d,h=t.offset;if(u&&null===n.currentDirection)return n.currentDirection=(void 0===c&&(c=10),d=null,Math.abs(h.y)>c?d="y":Math.abs(h.x)>c&&(d="x"),d),void(null!==n.currentDirection&&(null===(i=(r=n.props).onDirectionLock)||void 0===i||i.call(r,n.currentDirection)));n.updateAxis("x",t.point,h),n.updateAxis("y",t.point,h),null===(o=(a=n.props).onDrag)||void 0===o||o.call(a,e,t),on=e}},onSessionEnd:function(e,t){return n.stop(e,t)}},{transformPagePoint:s})},e.prototype.resolveDragConstraints=function(){var e,t,n,r,i,a=this,o=this.props,s=o.dragConstraints,l=o.dragElastic,u=this.visualElement.getLayoutState().layoutCorrected;this.constraints=!!s&&(ni(s)?this.resolveRefConstraints(u,s):(e=s.top,t=s.left,n=s.bottom,r=s.right,{x:aO(u.x,t,r),y:aO(u.y,e,n)})),this.elastic=(!1===(i=l)?i=0:!0===i&&(i=.35),{x:aD(i,"left","right"),y:aD(i,"top","bottom")}),this.constraints&&!this.hasMutatedConstraints&&aL(function(e){var t,n,r;a.getAxisMotionValue(e)&&(a.constraints[e]=(t=u[e],n=a.constraints[e],r={},void 0!==n.min&&(r.min=n.min-t.min),void 0!==n.max&&(r.max=n.max-t.min),r))})},e.prototype.resolveRefConstraints=function(e,t){var n=this.props,r=n.onMeasureDragConstraints,i=n.transformPagePoint,a=t.current;tJ(null!==a,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop."),this.constraintsBox=aM(a,i);var o=(s=this.constraintsBox,{x:aR(e.x,s.x),y:aR(e.y,s.y)});if(r){var s,l,u,c,d=r((u=(l=o).x,{top:(c=l.y).min,bottom:c.max,left:u.min,right:u.max}));this.hasMutatedConstraints=!!d,d&&(o=aC(d))}return o},e.prototype.cancelDrag=function(){var e,t;this.visualElement.unlockProjectionTarget(),null===(e=this.cancelLayout)||void 0===e||e.call(this),this.isDragging=!1,this.panSession&&this.panSession.end(),this.panSession=null,!this.props.dragPropagation&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),null===(t=this.visualElement.animationState)||void 0===t||t.setActive(ry.Drag,!1)},e.prototype.stop=function(e,t){null===(n=this.panSession)||void 0===n||n.end(),this.panSession=null;var n,r,i,a=this.isDragging;if(this.cancelDrag(),a){var o=t.velocity;this.animateDragEnd(o),null===(i=(r=this.props).onDragEnd)||void 0===i||i.call(r,e,t)}},e.prototype.snapToCursor=function(e){var t=this;return aL(function(n){if(oo(n,t.props.drag,t.currentDirection)){var r=t.getAxisMotionValue(n);if(!r)return t.cursorProgress[n]=.5,!0;var i=t.visualElement.getLayoutState().layout,a=i[n].max-i[n].min,o=i[n].min+a/2,s=e[n]-o;t.originPoint[n]=e[n],r.set(s)}}).includes(!0)},e.prototype.updateAxis=function(e,t,n){if(oo(e,this.props.drag,this.currentDirection))return this.getAxisMotionValue(e)?this.updateAxisMotionValue(e,n):this.updateVisualElementAxis(e,t)},e.prototype.updateAxisMotionValue=function(e,t){var n=this.getAxisMotionValue(e);if(t&&n){var r=this.originPoint[e]+t[e],i=this.constraints?aP(r,this.constraints[e],this.elastic[e]):r;n.set(i)}},e.prototype.updateVisualElementAxis=function(e,t){var n,r,i,a,o,s=this.visualElement.getLayoutState().layout[e],l=s.max-s.min,u=this.cursorProgress[e],c=(n=t[e],r=null===(o=this.constraints)||void 0===o?void 0:o[e],i=this.elastic[e],a=n-l*u,r?aP(a,r,i):a);this.visualElement.setProjectionTargetAxis(e,c,c+l)},e.prototype.setProps=function(e){var t=e.drag,n=e.dragDirectionLock,r=e.dragPropagation,i=e.dragConstraints,a=e.dragElastic,o=e.dragMomentum,s=tK(e,["drag","dragDirectionLock","dragPropagation","dragConstraints","dragElastic","dragMomentum"]);this.props=tG({drag:void 0!==t&&t,dragDirectionLock:void 0!==n&&n,dragPropagation:void 0!==r&&r,dragConstraints:void 0!==i&&i,dragElastic:void 0===a?.35:a,dragMomentum:void 0===o||o},s)},e.prototype.getAxisMotionValue=function(e){var t=this.props,n=t.layout,r=t.layoutId,i="_drag"+e.toUpperCase();return this.props[i]?this.props[i]:n||void 0!==r?void 0:this.visualElement.getValue(e,0)},e.prototype.isLayoutDrag=function(){return!this.getAxisMotionValue("x")},e.prototype.isExternalDrag=function(){var e=this.props,t=e._dragX,n=e._dragY;return t||n},e.prototype.animateDragEnd=function(e){var t,n,r,i,a=this,o=this.props,s=o.drag,l=o.dragMomentum,u=o.dragElastic,c=o.dragTransition,d=(t=this.visualElement,void 0===(n=this.isLayoutDrag()&&!this.isExternalDrag())&&
77(n=!0),!!(i=t.getProjectionParent())&&(n?a5(r=a$(i.projection.target,t.projection.target),i.getLatestValues()):r=a$(i.getLayoutState().layout,t.getLayoutState().layout),aL(function(e){return t.setProjectionTargetAxis(e,r[e].min,r[e].max,!0)}),!0)),h=this.constraints||{};if(d&&Object.keys(h).length&&this.isLayoutDrag()){var f=this.visualElement.getProjectionParent();if(f){var p=a$(f.projection.targetFinal,h);aL(function(e){var t=p[e],n=t.min,r=t.max;h[e]={min:isNaN(n)?void 0:n,max:isNaN(r)?void 0:r}})}}return Promise.all(aL(function(t){var n;if(oo(t,s,a.currentDirection)){var r=null!==(n=null==h?void 0:h[t])&&void 0!==n?n:{},i=tG(tG({type:"inertia",velocity:l?e[t]:0,bounceStiffness:u?200:1e6,bounceDamping:u?40:1e7,timeConstant:750,restDelta:1,restSpeed:10},c),r);return a.getAxisMotionValue(t)?a.startAxisValueAnimation(t,i):a.visualElement.startLayoutAnimation(t,i,d)}})).then(function(){var e,t;null===(t=(e=a.props).onDragTransitionEnd)||void 0===t||t.call(e)})},e.prototype.stopMotion=function(){var e=this;aL(function(t){var n=e.getAxisMotionValue(t);n?n.stop():e.visualElement.stopLayoutAnimation()})},e.prototype.startAxisValueAnimation=function(e,t){var n=this.getAxisMotionValue(e);if(n){var r=n.get();return n.set(r),n.set(r),ar(e,n,0,t)}},e.prototype.scalePoint=function(){var e=this,t=this.props,n=t.drag;if(ni(t.dragConstraints)&&this.constraintsBox){this.stopMotion();var r={x:0,y:0};aL(function(t){var n,i,a,o,s;r[t]=(n=e.visualElement.projection.target[t],i=e.constraintsBox[t],a=.5,o=aF(n),(s=aF(i))>o?a=r$(i.min,i.max-o,n.min):o>s&&(a=r$(n.min,n.max-s,i.min)),rV(0,1,a))}),this.updateConstraints(function(){aL(function(t){if(oo(t,n,null)){var i,a,o,s,l,u=(i=e.visualElement.projection.target[t],a=e.constraintsBox[t],o=r[t],s=i.max-i.min,{min:l=rW(a.min,a.max-s,o),max:l+s}),c=u.min,d=u.max;e.visualElement.setProjectionTargetAxis(t,c,d)}})}),setTimeout(a7,1)}},e.prototype.updateConstraints=function(e){var t=this;this.cancelLayout=a9(function(n,r){var i=aH(t.visualElement);r(function(){return i.forEach(function(e){return e.resetTransform()})}),n(function(){return aG(t.visualElement)}),r(function(){return i.forEach(function(e){return e.restoreTransform()})}),n(function(){t.resolveDragConstraints()}),e&&r(e)})},e.prototype.mount=function(e){var t=this,n=rP(e.getInstance(),"pointerdown",function(e){var n=t.props,r=n.drag,i=n.dragListener;r&&(void 0===i||i)&&t.start(e)}),r=rw(window,"resize",function(){t.scalePoint()}),i=e.onLayoutUpdate(function(){t.isDragging&&t.resolveDragConstraints()}),a=e.prevDragCursor;return a&&this.start(on,{cursorProgress:a}),function(){null==n||n(),null==r||r(),null==i||i(),t.cancelDrag()}},e}();function oo(e,t,n){return!(!0!==t&&t!==e||null!==n&&n!==e)}var os,ol,ou={pan:i$(function(e){var t=e.onPan,n=e.onPanStart,i=e.onPanEnd,a=e.onPanSessionStart,o=e.visualElement,s=(0,r.useRef)(null),l=(0,r.useContext)(t3).transformPagePoint,u={onSessionStart:a,onStart:n,onMove:t,onEnd:function(e,t){s.current=null,i&&i(e,t)}};(0,r.useEffect)(function(){null!==s.current&&s.current.updateHandlers(u)}),rO(o,"pointerdown",(t||n||i||a)&&function(e){s.current=new aE(e,u,{transformPagePoint:l})}),rU(function(){return s.current&&s.current.end()})}),drag:i$(function(e){var t=e.dragControls,n=e.visualElement,i=(0,r.useContext)(t3).transformPagePoint,a=t8(function(){return new oa({visualElement:n})});a.setProps(tG(tG({},e),{transformPagePoint:i})),(0,r.useEffect)(function(){return t&&t.subscribe(a)},[a]),(0,r.useEffect)(function(){return a.mount(n)},[])})};function oc(e){return"string"==typeof e&&e.startsWith("var(--")}(oF=os||(os={}))[oF.Entering=0]="Entering",oF[oF.Present=1]="Present",oF[oF.Exiting=2]="Exiting",(oB=ol||(ol={}))[oB.Hide=0]="Hide",oB[oB.Show=1]="Show";var od=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function oh(e,t,n){void 0===n&&(n=1),tJ(n<=4,'Max CSS variable fallback depth detected in property "'+e+'". This may indicate a circular fallback dependency.');var r=t$(function(e){var t=od.exec(e);if(!t)return[,];var n=t$(t,3);return[n[1],n[2]]}(e),2),i=r[0],a=r[1];if(i){var o=window.getComputedStyle(t).getPropertyValue(i);return o?o.trim():oc(a)?oh(a,t,n+1):a}}function of(e,t){return e/(t.max-t.min)*100}var op={process:function(e,t,n){var r=n.target;if("string"==typeof e){if(!nj.test(e))return e;e=parseFloat(e)}return of(e,r.x)+"% "+of(e,r.y)+"%"}},om={borderRadius:tG(tG({},op),{applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]}),borderTopLeftRadius:op,borderTopRightRadius:op,borderBottomLeftRadius:op,borderBottomRightRadius:op,boxShadow:{process:function(e,t){var n=t.delta,r=t.treeScale,i=e,a=e.includes("var("),o=[];a&&(e=e.replace(od,function(e){return o.push(e),"_$css"}));var s=nJ.parse(e);if(s.length>5)return i;var l=nJ.createTransformer(e),u="number"!=typeof s[0]?1:0,c=n.x.scale*r.x,d=n.y.scale*r.y;s[0+u]/=c,s[1+u]/=d;var h=rW(c,d,.5);"number"==typeof s[2+u]&&(s[2+u]/=h),"number"==typeof s[3+u]&&(s[3+u]/=h);var f=l(s);if(a){var p=0;f=f.replace("_$css",function(){var e=o[p];return p++,e})}return f}}},og=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.frameTarget={x:{min:0,max:1},y:{min:0,max:1}},t.currentAnimationTarget={x:{min:0,max:1},y:{min:0,max:1}},t.isAnimating={x:!1,y:!1},t.stopAxisAnimation={x:void 0,y:void 0},t.isAnimatingTree=!1,t.animate=function(e,n,r){void 0===r&&(r={});var i=r.originBox,a=r.targetBox,o=r.visibilityAction,s=r.shouldStackAnimate,l=r.onComplete,u=r.prevParent,c=tK(r,["originBox","targetBox","visibilityAction","shouldStackAnimate","onComplete","prevParent"]),d=t.props,h=d.visualElement,f=d.layout;if(!1===s)return t.isAnimatingTree=!1,t.safeToRemove();if(!t.isAnimatingTree||!0===s){s&&(t.isAnimatingTree=!0),n=i||n,e=a||e;var p,m,g=!1,v=h.getProjectionParent();if(v){var y,b=v.prevViewportBox,A=v.getLayoutState().layout;u&&(a&&(A=u.getLayoutState().layout),i&&u.getLayoutId()===(y=v.getLayoutId())&&(void 0!==y||u===v)&&u.prevViewportBox&&(b=u.prevViewportBox)),b&&(u||!u&&!(i||a))&&(g=!0,n=a$(b,n),e=a$(A,e))}var E=(p=n,m=e,!(oy(p)||oy(m)||ob(p.x,m.x)&&ob(p.y,m.y))),w=aL(function(r){var i,a;if("position"===f){var s=e[r].max-e[r].min;n[r].max=n[r].min+s}if(!h.projection.isTargetLocked)return void 0===o?E?t.animateAxis(r,e[r],n[r],tG(tG({},c),{isRelative:g})):(null===(a=(i=t.stopAxisAnimation)[r])||void 0===a||a.call(i),h.setProjectionTargetAxis(r,e[r].min,e[r].max,g)):void h.setVisibility(o===ol.Show)});return h.syncRender(),Promise.all(w).then(function(){t.isAnimatingTree=!1,l&&l(),h.notifyLayoutAnimationComplete()})}},t}return tH(t,e),t.prototype.componentDidMount=function(){var e=this,t=this.props.visualElement;t.animateMotionValue=ar,t.enableLayoutProjection(),this.unsubLayoutReady=t.onLayoutUpdate(this.animate),t.layoutSafeToRemove=function(){return e.safeToRemove()},function(e){for(var t in e)np[t]=e[t]}(om)},t.prototype.componentWillUnmount=function(){var e=this;this.unsubLayoutReady(),aL(function(t){var n,r;return null===(r=(n=e.stopAxisAnimation)[t])||void 0===r?void 0:r.call(n)})},t.prototype.animateAxis=function(e,t,n,r){var i,a,o=this,s=void 0===r?{}:r,l=s.transition,u=s.isRelative;if(!this.isAnimating[e]||!ob(t,this.currentAnimationTarget[e])){null===(a=(i=this.stopAxisAnimation)[e])||void 0===a||a.call(i),this.isAnimating[e]=!0;var c=this.props.visualElement,d=this.frameTarget[e],h=c.getProjectionAnimationProgress()[e];h.clearListeners(),h.set(0),h.set(0);var f=function(){var r=h.get()/1e3;d.min=rW(n.min,t.min,r),d.max=rW(n.max,t.max,r),c.setProjectionTargetAxis(e,d.min,d.max,u)};f();var p=h.onChange(f);this.stopAxisAnimation[e]=function(){o.isAnimating[e]=!1,h.stop(),p()},this.currentAnimationTarget[e]=t;var m=l||c.getDefaultTransition()||oA;return ar("x"===e?"layoutX":"layoutY",h,1e3,m&&an(m,"layout")).then(this.stopAxisAnimation[e])}},t.prototype.safeToRemove=function(){var e,t;null===(t=(e=this.props).safeToRemove)||void 0===t||t.call(e)},t.prototype.render=function(){return null},t}(r.Component),ov={min:0,max:0};function oy(e){return ob(e.x,ov)&&ob(e.y,ov)}function ob(e,t){return e.min===t.min&&e.max===t.max}var oA={duration:.45,ease:[.4,0,.1,1]},oE={layoutReady:function(e){return e.notifyLayoutReady()}};function ow(){var e=new Set;return{add:function(t){return e.add(t)},flush:function(t){var n=void 0===t?oE:t,r=n.layoutReady,i=n.parent;a9(function(t,n){var a=Array.from(e).sort(aq),o=i?aH(i):[];
77n(function(){tW(tW([],t$(o)),t$(a)).forEach(function(e){return e.resetTransform()})}),t(function(){a.forEach(aG)}),n(function(){o.forEach(function(e){return e.restoreTransform()}),a.forEach(r)}),t(function(){a.forEach(function(e){e.isPresent&&(e.presence=os.Present)})}),n(function(){iP.preRender(),iP.render()}),t(function(){iI.postRender(function(){return a.forEach(ox)}),e.clear()})}),a7()}}}function ox(e){e.prevViewportBox=e.projection.target}var oT=(0,r.createContext)(ow()),oS=(0,r.createContext)(ow());function o_(e){return!!e.forceUpdate}var oC=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return tH(t,e),t.prototype.componentDidMount=function(){var e=this.props,t=e.syncLayout,n=e.framerSyncLayout,r=e.visualElement;o_(t)&&t.register(r),o_(n)&&n.register(r),r.onUnmount(function(){o_(t)&&t.remove(r),o_(n)&&n.remove(r)})},t.prototype.getSnapshotBeforeUpdate=function(){var e=this.props,t=e.syncLayout,n=e.visualElement;return o_(t)?t.syncUpdate():(n.shouldResetTransform()||(n.prevViewportBox=n.measureViewportBox(!1),n.rebaseProjectionTarget(!1,n.prevViewportBox)),t.add(n)),null},t.prototype.componentDidUpdate=function(){var e=this.props.syncLayout;o_(e)||e.flush()},t.prototype.render=function(){return null},t}(r.Component);function ok(){return{isHydrated:!1,layout:{x:{min:0,max:1},y:{min:0,max:1}},layoutCorrected:{x:{min:0,max:1},y:{min:0,max:1}},treeScale:{x:1,y:1},delta:aI(),deltaFinal:aI(),deltaTransform:""}}var oI=ok();function oL(e,t,n){var r=e.x,i=e.y,a="translate3d("+r.translate/t.x+"px, "+i.translate/t.y+"px, 0) ";if(n){var o=n.rotate,s=n.rotateX,l=n.rotateY;o&&(a+="rotate("+o+") "),s&&(a+="rotateX("+s+") "),l&&(a+="rotateY("+l+") ")}return a+="scale("+r.scale+", "+i.scale+")",n||a!==oO?a:""}function oP(e){var t=e.deltaFinal;return 100*t.x.origin+"% "+100*t.y.origin+"% 0"}var oO=oL(oI.delta,oI.treeScale,{x:1,y:1}),oR=["LayoutMeasure","BeforeLayoutMeasure","LayoutUpdate","ViewportBoxUpdate","Update","Render","AnimationComplete","LayoutAnimationComplete","AnimationStart","SetAxisTarget","Unmount"],oD=function(){function e(){this.children=[],this.isDirty=!1}return e.prototype.add=function(e){ai(this.children,e),this.isDirty=!0},e.prototype.remove=function(e){aa(this.children,e),this.isDirty=!0},e.prototype.forEach=function(e){this.isDirty&&this.children.sort(aq),this.isDirty=!1,this.children.forEach(e)},e}(),oN=function(e){var t=e.treeType,n=void 0===t?"":t,r=e.build,i=e.getBaseTarget,a=e.makeTargetAnimatable,o=e.measureViewportBox,s=e.render,l=e.readValueFromInstance,u=e.resetTransform,c=e.restoreTransform,d=e.removeValueFromRenderState,h=e.sortNodePosition,f=e.scrapeMotionValuesFromProps;return function(e,t){var p=e.parent,m=e.props,g=e.presenceId,v=e.blockInitialAnimation,y=e.visualState;void 0===t&&(t={});var b,A,E,w,x,T,S,_,C,k=y.latestValues,I=y.renderState,L=(b=oR.map(function(){return new ao}),A={},E={clearAllListeners:function(){return b.forEach(function(e){return e.clear()})},updatePropListeners:function(e){return oR.forEach(function(t){null===(n=A[t])||void 0===n||n.call(A);var n,r="on"+t,i=e[r];i&&(A[t]=E[r](i))})}},b.forEach(function(e,t){E["on"+oR[t]]=function(t){return e.add(t)},E["notify"+oR[t]]=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return e.notify.apply(e,tW([],t$(t)))}}),E),P={isEnabled:!1,isHydrated:!1,isTargetLocked:!1,target:{x:{min:0,max:1},y:{min:0,max:1}},targetFinal:{x:{min:0,max:1},y:{min:0,max:1}}},O=P,R=k,D=ok(),N=!1,M=new Map,j=new Map,F={},B=tG({},k);function U(){w&&(W.isProjectionReady()&&(a2(O.targetFinal,O.target,R),aU(D.deltaFinal,D.layoutCorrected,O.targetFinal,k)),V(),s(w,I))}function V(){var e=k;if(S&&S.isActive()){var n=S.getCrossfadeState(W);n&&(e=n)}r(W,I,e,O,D,t,m)}function z(){L.notifyUpdate(k)}function q(){W.layoutTree.forEach(oj)}var Q=f(m);for(var H in Q){var G=Q[H];void 0!==k[H]&&nw(G)&&G.set(k[H],!1)}var K=nu(m),$=nc(m),W=tG(tG({treeType:n,current:null,depth:p?p.depth+1:0,parent:p,children:new Set,path:p?tW(tW([],t$(p.path)),[p]):[],layoutTree:p?p.layoutTree:new oD,presenceId:g,projection:P,variantChildren:$?new Set:void 0,isVisible:void 0,manuallyAnimateOnMount:!!(null==p?void 0:p.isMounted()),blockInitialAnimation:v,isMounted:function(){return!!w},mount:function(e){w=W.current=e,W.pointTo(W),$&&p&&!K&&(C=null==p?void 0:p.addVariantChild(W)),null==p||p.
77children.add(W)},unmount:function(){iL.update(z),iL.render(U),iL.preRender(W.updateLayoutProjection),j.forEach(function(e){return e()}),W.stopLayoutAnimation(),W.layoutTree.remove(W),null==C||C(),null==p||p.children.delete(W),null==T||T(),L.clearAllListeners()},addVariantChild:function(e){var t,n=W.getClosestVariantNode();if(n)return null===(t=n.variantChildren)||void 0===t||t.add(e),function(){return n.variantChildren.delete(e)}},sortNodePosition:function(e){return h&&n===e.treeType?h(W.getInstance(),e.getInstance()):0},getClosestVariantNode:function(){return $?W:null==p?void 0:p.getClosestVariantNode()},scheduleUpdateLayoutProjection:p?p.scheduleUpdateLayoutProjection:function(){return iI.preRender(W.updateTreeLayoutProjection,!1,!0)},getLayoutId:function(){return m.layoutId},getInstance:function(){return w},getStaticValue:function(e){return k[e]},setStaticValue:function(e,t){return k[e]=t},getLatestValues:function(){return k},setVisibility:function(e){W.isVisible!==e&&(W.isVisible=e,W.scheduleRender())},makeTargetAnimatable:function(e,t){return void 0===t&&(t=!0),a(W,e,m,t)},addValue:function(e,t){var n,r;W.hasValue(e)&&W.removeValue(e),M.set(e,t),k[e]=t.get(),n=t.onChange(function(t){k[e]=t,m.onUpdate&&iI.update(z,!1,!0)}),r=t.onRenderRequest(W.scheduleRender),j.set(e,function(){n(),r()})},removeValue:function(e){var t;M.delete(e),null===(t=j.get(e))||void 0===t||t(),j.delete(e),delete k[e],d(e,I)},hasValue:function(e){return M.has(e)},getValue:function(e,t){var n=M.get(e);return void 0===n&&void 0!==t&&(n=al(t),W.addValue(e,n)),n},forEachValue:function(e){return M.forEach(e)},readValue:function(e){var n;return null!==(n=k[e])&&void 0!==n?n:l(w,e,t)},setBaseTarget:function(e,t){B[e]=t},getBaseTarget:function(e){if(i){var t=i(m,e);if(void 0!==t&&!nw(t))return t}return B[e]}},L),{build:function(){return V(),I},scheduleRender:function(){iI.render(U,!1,!0)},syncRender:U,setProps:function(e){m=e,L.updatePropListeners(e),F=function(e,t,n){var r;for(var i in t){var a=t[i],o=n[i];if(nw(a))e.addValue(i,a);else if(nw(o))e.addValue(i,al(a));else if(o!==a){if(e.hasValue(i)){var s=e.getValue(i);s.hasAnimated||s.set(a)}else e.addValue(i,al(null!==(r=e.getStaticValue(i))&&void 0!==r?r:a))}}for(var i in n)void 0===t[i]&&e.removeValue(i);return t}(W,f(m),F)},getProps:function(){return m},getVariant:function(e){var t;return null===(t=m.variants)||void 0===t?void 0:t[e]},getDefaultTransition:function(){return m.transition},getVariantContext:function(e){if(void 0===e&&(e=!1),e)return null==p?void 0:p.getVariantContext();if(!K){var t=(null==p?void 0:p.getVariantContext())||{};return void 0!==m.initial&&(t.initial=m.initial),t}for(var n={},r=0;r<oz;r++){var i=oV[r],a=m[i];(no(a)||!1===a)&&(n[i]=a)}return n},enableLayoutProjection:function(){P.isEnabled=!0,W.layoutTree.add(W)},lockProjectionTarget:function(){P.isTargetLocked=!0},unlockProjectionTarget:function(){W.stopLayoutAnimation(),P.isTargetLocked=!1},getLayoutState:function(){return D},setCrossfader:function(e){S=e},isProjectionReady:function(){return P.isEnabled&&P.isHydrated&&D.isHydrated},startLayoutAnimation:function(e,t,n){void 0===n&&(n=!1);var r=W.getProjectionAnimationProgress()[e],i=n?P.relativeTarget[e]:P.target[e],a=i.min,o=i.max-a;return r.clearListeners(),r.set(a),r.set(a),r.onChange(function(t){W.setProjectionTargetAxis(e,t,t+o,n)}),W.animateMotionValue(e,r,0,t)},stopLayoutAnimation:function(){aL(function(e){return W.getProjectionAnimationProgress()[e].stop()})},measureViewportBox:function(e){void 0===e&&(e=!0);var n=o(w,t);return e||a5(n,k),n},getProjectionAnimationProgress:function(){return _||(_={x:al(0),y:al(0)}),_},setProjectionTargetAxis:function(e,t,n,r){var i;void 0===r&&(r=!1),r?(P.relativeTarget||(P.relativeTarget={x:{min:0,max:1},y:{min:0,max:1}}),i=P.relativeTarget[e]):(P.relativeTarget=void 0,i=P.target[e]),P.isHydrated=!0,i.min=t,i.max=n,N=!0,L.notifySetAxisTarget()},rebaseProjectionTarget:function(e,t){void 0===t&&(t=D.layout);var n=W.getProjectionAnimationProgress(),r=n.x,i=n.y,a=!(P.relativeTarget||P.isTargetLocked||r.isAnimating()||i.isAnimating());(e||a)&&aL(function(e){var n=t[e],r=n.min,i=n.max;W.setProjectionTargetAxis(e,r,i)})},notifyLayoutReady:function(e){!function(e){var t=e.getProjectionParent();if(t){var n=a$(t.getLayoutState().layout,e.getLayoutState().layout);aL(function(t){e.setProjectionTargetAxis(t,n[t].min,n[t].max,!0)})}else e.rebaseProjectionTarget()}(W),W.notifyLayoutUpdate(D.layout,W.prevViewportBox||D.layout,e)},resetTransform:function(){return u(W,w,m)},restoreTransform:function(){return c(w,I)},updateLayoutProjection:function(){if(W.isProjectionReady()){var e,t,n,r,i,a,o,s=D.delta,l=D.treeScale,u=l.x,c=l.y,d=D.deltaTransform;e=O,t=W.path,n=D.delta,r=D.layout,i=D.layoutCorrected,a=D.treeScale,o=e.target,aZ(i.x,r.x),aZ(i.y,r.y),function(e,t,n){var r,i,a=n.length;if(a){t.x=t.y=1;for(var o=0;o<a;
77o++)i=(r=n[o]).getLayoutState().delta,t.x*=i.x.scale,t.y*=i.y.scale,function(e,t){var n=t.x,r=t.y;aX(e.x,n.translate,n.scale,n.originPoint),aX(e.y,r.translate,r.scale,r.originPoint)}(e,i),aW(r)&&a2(e,e,r.getLatestValues())}}(i,a,t),aU(n,i,o,k),N&&W.notifyViewportBoxUpdate(O.target,s),N=!1;var h=oL(s,l);h===d&&u===l.x&&c===l.y||W.scheduleRender(),D.deltaTransform=h}},updateTreeLayoutProjection:function(){W.layoutTree.forEach(oM),iI.preRender(q,!1,!0)},getProjectionParent:function(){if(void 0===x){for(var e=!1,t=W.path.length-1;t>=0;t--){var n=W.path[t];if(n.projection.isEnabled){e=n;break}}x=e}return x},resolveRelativeTargetBox:function(){var e,t=W.getProjectionParent();if(P.relativeTarget&&t&&(e=t.projection,az(P.target.x,P.relativeTarget.x,e.target.x),az(P.target.y,P.relativeTarget.y,e.target.y),aW(t))){var n=P.target;a2(n,n,t.getLatestValues())}},shouldResetTransform:function(){return!!m._layoutResetTransform},pointTo:function(e){O=e.projection,R=e.getLatestValues(),null==T||T(),T=r3(e.onSetAxisTarget(W.scheduleUpdateLayoutProjection),e.onLayoutAnimationComplete(function(){var e;W.isPresent?W.presence=os.Present:null===(e=W.layoutSafeToRemove)||void 0===e||e.call(W)}))},isPresent:!0,presence:os.Entering});return W}};function oM(e){e.resolveRelativeTargetBox()}function oj(e){e.updateLayoutProjection()}var oF,oB,oU,oV=tW(["initial"],t$(ag)),oz=oV.length,oq=new Set(["width","height","top","left","right","bottom","x","y"]),oQ=function(e){return oq.has(e)},oH=function(e,t){e.set(t,!1),e.set(t)},oG=function(e){return e===nP||e===nj};(st=oU||(oU={})).width="width",st.height="height",st.left="left",st.right="right",st.top="top",st.bottom="bottom";var oK=function(e,t){return parseFloat(e.split(", ")[t])},o$=function(e,t){return function(n,r){var i=r.transform;if("none"===i||!i)return 0;var a=i.match(/^matrix3d\((.+)\)$/);if(a)return oK(a[1],t);var o=i.match(/^matrix\((.+)\)$/);return o?oK(o[1],e):0}},oW=new Set(["x","y","z"]),oZ=ng.filter(function(e){return!oW.has(e)}),oY={width:function(e){var t=e.x;return t.max-t.min},height:function(e){var t=e.y;return t.max-t.min},top:function(e,t){return parseFloat(t.top)},left:function(e,t){return parseFloat(t.left)},bottom:function(e,t){var n=e.y;return parseFloat(t.top)+(n.max-n.min)},right:function(e,t){var n=e.x;return parseFloat(t.left)+(n.max-n.min)},x:o$(4,13),y:o$(5,14)},oX=function(e,t,n,r){void 0===n&&(n={}),void 0===r&&(r={}),t=tG({},t),r=tG({},r);var i=Object.keys(t).filter(oQ),a=[],o=!1,s=[];if(i.forEach(function(i){var l=e.getValue(i);if(e.hasValue(i)){var u,c=n[i],d=t[i],h=ad(c);if(rg(d))for(var f=d.length,p=null===d[0]?1:0;p<f;p++)u?tJ(ad(d[p])===u,"All keyframes must be of the same type"):(u=ad(d[p]),tJ(u===h||oG(h)&&oG(u),"Keyframes must be of the same dimension as the current value"));else u=ad(d);if(h!==u){if(oG(h)&&oG(u)){var m,g=l.get();"string"==typeof g&&l.set(parseFloat(g)),"string"==typeof d?t[i]=parseFloat(d):Array.isArray(d)&&u===nj&&(t[i]=d.map(parseFloat))}else(null==h?void 0:h.transform)&&(null==u?void 0:u.transform)&&(0===c||0===d)?0===c?l.set(u.transform(c)):t[i]=h.transform(d):(o||(m=[],oZ.forEach(function(t){var n=e.getValue(t);void 0!==n&&(m.push([t,n.get()]),n.set(t.startsWith("scale")?1:0))}),m.length&&e.syncRender(),a=m,o=!0),s.push(i),r[i]=void 0!==r[i]?r[i]:t[i],oH(l,d))}}}),s.length){var l,u,c,d,h,f,p,m=(l=t,u=e.measureViewportBox(),c=e.getInstance(),h=(d=getComputedStyle(c)).display,f={top:d.top,left:d.left,bottom:d.bottom,right:d.right,transform:d.transform},"none"===h&&e.setStaticValue("display",l.display||"block"),e.syncRender(),p=e.measureViewportBox(),s.forEac
77h(function(t){oH(e.getValue(t),oY[t](u,f)),l[t]=oY[t](p,d)}),l);return a.length&&a.forEach(function(t){var n=t$(t,2),r=n[0],i=n[1];e.getValue(r).set(i)}),e.syncRender(),{target:m,transitionEnd:r}}return{target:t,transitionEnd:r}},oJ=function(e,t,n,r){var i,a,o=function(e,t,n){var r,i=tK(t,[]),a=e.getInstance();if(!(a instanceof HTMLElement))return{target:i,transitionEnd:n};for(var o in n&&(n=tG({},n)),e.forEachValue(function(e){var t=e.get();if(oc(t)){var n=oh(t,a);n&&e.set(n)}}),i){var s=i[o];if(oc(s)){var l=oh(s,a);l&&(i[o]=l,n&&(null!==(r=n[o])&&void 0!==r||(n[o]=s)))}}return{target:i,transitionEnd:n}}(e,t,r);return i=t=o.target,a=r=o.transitionEnd,Object.keys(i).some(oQ)?oX(e,i,n,a):{target:i,transitionEnd:a}},o0={treeType:"dom",readValueFromInstance:function(e,t){if(nb(t)){var n=i6(t);return n&&n.default||0}var r=window.getComputedStyle(e);return(nT(t)?r.getPropertyValue(t):r[t])||0},sortNodePosition:function(e,t){return 2&e.compareDocumentPosition(t)?1:-1},getBaseTarget:function(e,t){var n;return null===(n=e.style)||void 0===n?void 0:n[t]},measureViewportBox:function(e,t){return aM(e,t.transformPagePoint)},resetTransform:function(e,t,n){var r=n.transformTemplate;t.style.transform=r?r({},""):"none",e.scheduleRender()},restoreTransform:function(e,t){e.style.transform=t.style.transform},removeValueFromRenderState:function(e,t){var n=t.vars,r=t.style;delete n[e],delete r[e]},makeTargetAnimatable:function(e,t,n,r){var i=n.transformValues;void 0===r&&(r=!0);var a=t.transition,o=t.transitionEnd,s=tK(t,["transition","transitionEnd"]),l=function(e,t,n){var r,i,a={};for(var o in e)a[o]=null!==(r=function(e,t){if(t)return(t[e]||t.default||t).from}(o,t))&&void 0!==r?r:null===(i=n.getValue(o))||void 0===i?void 0:i.get();return a}(s,a||{},e);if(i&&(o&&(o=i(o)),s&&(s=i(s)),l&&(l=i(l))),r){!function(e,t,n){var r,i,a,o=Object.keys(t).filter(function(t){return!e.hasValue(t)}),s=o.length;if(s)for(var l=0;l<s;l++){var u,c,d=o[l],h=t[d],f=null;Array.isArray(h)&&(f=h[0]),null===f&&(f=null!==(i=null!==(r=n[d])&&void 0!==r?r:e.readValue(d))&&void 0!==i?i:t[d]),null!=f&&("string"==typeof f&&(u=f,/^\-?\d*\.?\d+$/.test(u))?f=parseFloat(f):(c=f,!ah.find(au(c))&&nJ.test(h)&&(f=i9(d,h))),e.addValue(d,al(f)),null!==(a=n[d])&&void 0!==a||(n[d]=f),e.setBaseTarget(d,f))}}(e,s,l);var u=oJ(e,s,l,o);o=u.transitionEnd,s=u.target}return tG({transition:a,transitionEnd:o},s)},scrapeMotionValuesFromProps:rf,build:function(e,t,n,r,i,a,o){void 0!==e.isVisible&&(t.style.visibility=e.isVisible?"visible":"hidden");var s=r.isEnabled&&i.isHydrated;n8(t,n,r,i,a,o.transformTemplate,s?oL:void 0,s?oP:void 0)},render:rc},o1=oN(o0),o2=oN(tG(tG({},o0),{getBaseTarget:function(e,t){return e[t]},readValueFromInstance:function(e,t){var n;return nb(t)?(null===(n=i6(t))||void 0===n?void 0:n.default)||0:(t=rd.has(t)?t:ru(t),e.getAttribute(t))},scrapeMotionValuesFromProps:rp,build:function(e,t,n,r,i,a,o){var s=r.isEnabled&&i.isHydrated;ro(t,n,r,i,a,o.transformTemplate,s?oL:void 0,s?oP:void 0)},render:rh})),o3=function(e,t){return nf(e)?o2(t,{enableHardwareAcceleration:!1}):o1(t,{enableHardwareAcceleration:!0})},o4=tG(tG(tG(tG({},aA),iW),ou),{measureLayout:function(e){var t=(0,r.useContext)(oT),n=(0,r.useContext)(oS);return r.createElement(oC,tG({},e,{syncLayout:t,framerSyncLayout:n}))},layoutAnimation:function(e){var t=t$(t6(),2)[1];return r.createElement(og,tG({},e,{safeToRemove:t}))}}),o5=function(e){function t(t,n){var i,o,s,l,u,c;return void 0===n&&(n={}),o=(i=e(t,n)).preloadedFeatures,s=i.createVisualElement,l=i.useRender,u=i.useVisualState,c=i.Component,o&&function(e){for(var t in e){var n=e[t];null!==n&&(tY[t].Component=n)}}(o),(0,r.forwardRef)(function(e,t){var n,i,d,h,f,p,m,g,v,y,b,A,E,w,x=(0,r.useContext)(t3).isStatic,T=null,S=(A=(b=function(e,t){if(nu(e)){var n=e.initial,r=e.animate;return{initial:!1===n||no(n)?n:void 0,animate:no(r)?r:void 0}}return!1!==e.inherit?t:{}}(e,(0,r.useContext)(t4))).initial,E=b.animate,(0,r.useMemo)(function(){return{initial:A,animate:E}},x?[nd(A),nd(E)]:[])),_=u(e,x);return!x&&nn&&(S.visualElement=(n=s,h=(0,r.useContext)(t3),f=(0,r.useContext)(t0),p=(0,r.useContext)(t4).visualElement,m=(0,r.useContext)(t5),i=e.layoutId,g=(d=(0,r.useContext)(nt))&&void 0!==i?d+"-"+i:i,v=(0,r.useRef)(void 0),n||(n=f.renderer),!v.current&&n&&(v.current=n(c,{visualState:_,parent:p,props:tG(tG({},e),{layoutId:g}),presenceId:null==m?void 0:m.id,blockInitialAnimation:!1===(null==m?void 0:m.initial)})),y=v.current,nr(function(){y&&(y.setProps(tG(tG(tG({},h),e),{layoutId:g})),y.isPresent=null===m||m.isPresent,y.isPresenceRoot=!p||p.presenceId!==(null==m?void 0:m.id),y.syncRender())}),(0,r.useEffect)(function(){var e;y&&(null===(e=y.animationState)||void 0===e||e.animateChanges())}),nr(function(){return function(){return null==y?void 0:y.notifyUnmount()}},[]),y),T=function(e,t,n){var i=[],o=(0,r.useContext)(t0);if(!t)return null;"production"!==a().env.NODE_ENV&&n&&o.strict&&tJ(!1,"You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.");for(var s=0;s<t2;s++){var l=t1[s],u=tY[l],c=u.isEnabled,d=u.Component;c(e)&&d&&i.push(r.createElement(d,tG({key:l},e,{visualElement:t})))}return i}(e,S.visualElement,o)),r.createElement(r.Fragment,null,r.createElement(t4.Provider,{value:S},l(c,e,(w=S.visualElement,(0,r.useCallback)(function(e){var n;
77e&&(null===(n=_.mount)||void 0===n||n.call(_,e)),w&&(e?w.mount(e):w.unmount()),t&&("function"==typeof t?t(e):ni(t)&&(t.current=e))},[w])),_,x)),T)})}var n=new Map;return new Proxy(t,{get:function(e,r){return n.has(r)||n.set(r,t(r)),n.get(r)}})}(function(e,t){var n,i,a;return n=t.forwardMotionProps,i=nf(e)?rA:rE,tG(tG({},i),{preloadedFeatures:o4,useRender:(void 0===(a=void 0!==n&&n)&&(a=!1),function(e,t,n,i,o){var s=i.latestValues,l=(nf(e)?function(e,t){var n=(0,r.useMemo)(function(){var n=rs();return ro(n,t,void 0,void 0,{enableHardwareAcceleration:!1},e.transformTemplate),tG(tG({},n.attrs),{style:tG({},n.style)})},[t]);if(e.style){var i={};n6(i,e.style,e),n.style=tG(tG({},i),n.style)}return n}:function(e,t,n){var i,a,o={},s=(n6(i={},e.style||{},e),Object.assign(i,(a=e.transformTemplate,(0,r.useMemo)(function(){var e={style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}};n8(e,t,void 0,void 0,{enableHardwareAcceleration:!n},a);var r=e.style;return tG(tG({},e.vars),r)},[t]))),e.transformValues&&(i=e.transformValues(i)),i);return e.drag&&(o.draggable=!1,s.userSelect=s.WebkitUserSelect=s.WebkitTouchCallout="none",s.touchAction=!0===e.drag?"none":"pan-"+("x"===e.drag?"y":"x")),o.style=s,o})(t,s,o),u=function(e,t,n){var r={};for(var i in e)(re(i)||!0===n&&n7(i)||!t&&!n7(i))&&(r[i]=e[i]);return r}(t,"string"==typeof e,a),c=tG(tG(tG({},u),l),{ref:n});return(0,r.createElement)(e,c)}),createVisualElement:o3,Component:e})}),o8=0;function o6(){var e=o8;return o8++,e}var o9=function(e){var t=e.children,n=e.initial,i=e.isPresent,a=e.onExitComplete,o=e.custom,s=e.presenceAffectsLayout,l=t8(o7),u=t8(o6),c=(0,r.useMemo)(function(){return{id:u,initial:n,isPresent:i,custom:o,onExitComplete:function(e){l.set(e,!0);var t=!0;l.forEach(function(e){e||(t=!1)}),t&&(null==a||a())},register:function(e){return l.set(e,!1),function(){return l.delete(e)}}}},s?void 0:[i]);return(0,r.useMemo)(function(){l.forEach(function(e,t){return l.set(t,!1)})},[i]),r.useEffect(function(){i||l.size||null==a||a()},[i]),r.createElement(t5.Provider,{value:c},t)};function o7(){return new Map}function se(e){return e.key||""}var st,sn,sr,si,sa,so,ss,sl,su,sc,sd,sh=function(e){var t,n,i,o,s,l=e.children,u=e.custom,c=e.initial,d=void 0===c||c,h=e.onExitComplete,f=e.exitBeforeEnter,p=e.presenceAffectsLayout,m=void 0===p||p,g=(t=(0,r.useRef)(!1),i=(n=t$((0,r.useState)(0),2))[0],o=n[1],rU(function(){return t.current=!0}),(0,r.useCallback)(function(){t.current||o(i+1)},[i])),v=(0,r.useContext)(oT);o_(v)&&(g=v.forceUpdate);var y=(0,r.useRef)(!0),b=(s=[],r.Children.forEach(l,function(e){(0,r.isValidElement)(e)&&s.push(e)}),s),A=(0,r.useRef)(b),E=(0,r.useRef)(new Map).current,w=(0,r.useRef)(new Set).current;if(function(e,t){var n="production"!==a().env.NODE_ENV?new Set:null;e.forEach(function(e){var r=se(e);"production"!==a().env.NODE_ENV&&n&&(n.has(r)&&console.warn('Children of AnimatePresence require unique keys. "'+r+'" is a duplicate.'),n.add(r)),t.set(r,e)})}(b,E),y.current)return y.current=!1,r.createElement(r.Fragment,null,b.map(function(e){return r.createElement(o9,{key:se(e),isPresent:!0,initial:!!d&&void 0,presenceAffectsLayout:m},e)}));for(var x=tW([],t$(b)),T=A.current.map(se),S=b.map(se),_=T.length,C=0;C<_;C++){var k=T[C];-1===S.indexOf(k)?w.add(k):w.delete(k)}return f&&w.size&&(x=[]),w.forEach(function(e){if(-1===S.indexOf(e)){var t=E.get(e);if(t){var n=T.indexOf(e);x.splice(n,0,r.createElement(o9,{key:se(t),isPresent:!1,onExitComplete:function(){E.delete(e),w.delete(e);var t=A.current.findIndex(function(t){return t.key===e});A.current.splice(t,1),w.size||(A.current=b,g(),h&&h())},custom:u,presenceAffectsLayout:m},t))}}}),x=x.map(function(e){var t=e.key;return w.has(t)?e:r.createElement(o9,{key:se(e),isPresent:!0,presenceAffectsLayout:m},e)}),A.current=x,"production"!==a().env.NODE_ENV&&f&&x.length>1&&console.warn("You're attempting to animate multiple children within AnimatePresence, but its exitBeforeEnter prop is set to true. This will lead to odd visual behaviour."),r.createElement(r.Fragment,null,w.size?x:x.map(function(e){return(0,r.cloneElement)(e)}))},sf=tq(o5.div)(sn||(sn=em(["\n  background-color: ",";\n  position: fixed;\n  width: 100%;\n  height: 100vh;\n  height: calc(var(--vh, 1vh) * 100);\n  top: 0;\n  left: 0;\n  z-index: 9999;\n"])),function(e){return e.overlayColor}),sp={visible:{opacity:1},hidden:{opacity:0}
77},sm=function(e){var t=e.isOpened,n=e.children,i=e.className,a=(0,r.useContext)(ei).options,s=r.createElement(sf,{id:"SRLLightbox",initial:"hidden",animate:"visible",exit:"hidden",variants:sp,overlayColor:a.settings.overlayColor,transition:{duration:a.settings.lightboxTransitionSpeed,ease:a.settings.lightboxTransitionTimingFunction},className:i},n);return t&&"undefined"!=typeof window?o.createPortal(s,document.body):null};function sg(e){return(sg="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}sm.propTypes={selector:Z.string,isOpened:Z.bool,children:Z.oneOfType([Z.arrayOf(Z.node),Z.node]).isRequired};var sv=function(e){return tP(sr||(sr=em(["\n  flex-direction: column;\n  -ms-grid-column: 2;\n  grid-column-start: 2;\n  -ms-grid-row: 1;\n  grid-row-start: 1;\n  -ms-grid-row-span: 2;\n  grid-row-end: 3;\n  height: 100%;\n  width: auto;\n\n  /* SAFARI HACK */\n  @media not all and (min-resolution: 0.001dpcm) {\n    @media {\n      height: 100vh;\n    }\n  }\n\n  /* IE 11 HACK **/\n  @media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {\n    height: 100vh;\n  }\n"])))},sy=function(e){return tP(si||(si=em(["\n  flex-direction: column;\n  -ms-grid-column: 1;\n  grid-column-start: 1;\n  -ms-grid-row: 1;\n  grid-row-start: 1;\n  -ms-grid-row-span: 2;\n  grid-row-end: 3;\n  height: 100%;\n  width: auto;\n\n  /* SAFARI HACK */\n  @media not all and (min-resolution: 0.001dpcm) {\n    @media {\n      height: 100vh;\n    }\n  }\n\n  /* IE 11 HACK **/\n  @media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {\n    height: 100vh;\n  }\n"])))},sb=tq.div(sa||(sa=em(["\n  display: flex;\n  color: white;\n  height: auto;\n  width: 100vw;\n  justify-content: center;\n  overflow-x: hidden;\n  overflow-y: hidden;\n  -webkit-overflow-scrolling: touch;\n  opacity: 1;\n  transition: 0.3s ease;\n  will-change: transform, opacity;\n  position: relative;\n  z-index: 9997;\n  cursor: pointer;\n  padding: ",";\n  background-color: ",";\n\n  /* Thumbnails alignment */\n  ",";\n\n  ",";\n\n  ",";\n\n  ",";\n\n  /* Thumbnails aligned to the right */\n  ",";\n\n  /* Thumbnails aligned to the left */\n  ",";\n\n  /* if the body has a class of SRLIdle */\n  .SRLIdle & {\n    opacity: 0;\n  }\n\n  /* if the thumbnails are draggable */\n  &.SRLDraggable {\n    cursor: grabbing;\n  }\n\n  @media (max-width: 768px) {\n    justify-content: start;\n    overflow: scroll !important;\n    flex-direction: row;\n    width: 100vw !important;\n    height: auto;\n    grid-column: auto;\n    grid-row: auto;\n  }\n"])),function(e){return e.thumbnailsContainerPadding?e.thumbnailsContainerPadding:"0"},function(e){return e.thumbnailsContainerBackgroundColor?e.thumbnailsContainerBackgroundColor:"transparent"},function(e){return"start"===e.thumbnailsAlignment&&tP(so||(so=em(["\n      justify-content: flex-start;\n    "])))},function(e){return"end"===e.thumbnailsAlignment&&tP(ss||(ss=em(["\n      justify-content: flex-end;\n    "])))},function(e){return"space-between"===e.thumbnailsAlignment&&tP(sl||(sl=em(["\n      justify-content: space-between;\n    "])))},function(e){return"space-evenly"===e.thumbnailsAlignment&&tP(su||(su=em(["\n      justify-content: space-evenly;\n    "])))},function(e){return"right"===e.thumbnailsPosition&&sv},function(e){return"left"===e.thumbnailsPosition&&sy}),sA=tq.a(sc||(sc=em(["\n  width: ",";\n  height: ",";\n  background-repeat: no-repeat;\n  background-size: cover;\n  margin: ",";\n  opacity: ",";\n  transition: 0.3s ease;\n  will-change: opacity;\n  display: block;\n  cursor: draggable;\n  flex: 0 0 auto;\n  position: relative;\n  display: flex;\n  align-items: center;\n  justify-content: center;\n\n  &.SRLThumbnailSelected {\n    opacity: 1;\n  }\n\n  @media (max-width: 768px) {\n    height: 60px;\n    width: 80px;\n  }\n"])),function(e){return e.thumbnailsSize?e.thumbnailsSize[0]:"80px"},function(e){return e.thumbnailsSize?e.thumbnailsSize[1]:"80px"},function(e){return e.thumbnailsGap?e.thumbnailsGap:"1px"},function(e){return e.thumbnailsOpacity?e.thumbnailsOpacity:"0.4"}),sE=tq.svg(sd||(sd=em(["\n  width: ",";\n  height: ",";\n  opacity: ",";\n"])),function(e){return e.thumbnailsSize?e.thumbnailsSize[0]/2:"40px"},function(e){return e.thumbnailsSize?e.thumbnailsSize[1]/2:"40px"},function(e){return e.thumbnailsOpacity?e.thumbnailsOpacity:"0.4"});function sw(e){var t=e.thumbnailsIconColor;return r.createElement(sE,{"aria-hidden":"true","data-prefix":"fas","data-icon":"play-circle",className:"SRLThumbIcon",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},r.createElement("path",{fill:t,className:"SRLThumbIcon",d:"M256 8C119 8 8 119 8 256s111 248 248 248 248-111 248-248S393 8 256 8zm115.7 272l-176 101c-15.8 8.8-35.7-2.5-35.7-21V152c0-18.4 19.8-29.8 35.7-21l176 107c16.4 9.2 16.4 32.9 0 42z"}))}sw.propTypes={thumbnailsIconColor:Z.string};var sx,sT,sS,s_=function(e){var t=e.elements,n=e.currentId,i=e.handleCurrentElement,a=e.thumbnails,o=e.SRLThumbnailsRef,s=a.thumbnailsOpacity,l=a.thumbnailsSize,u=a.thumbnailsPosition,c=a.thumbnailsAlignment,d=a.thumbnailsContainerBackgroun
77dColor,h=a.thumbnailsContainerPadding,f=a.thumbnailsGap,p=a.thumbnailsIconColor,m=(0,r.useRef)(0),g=(0,r.useRef)(0),v=(0,r.useRef)(0),y=(0,r.useRef)(0),b=(0,r.useRef)(0),A=(0,r.useRef)();return(0,r.useEffect)(function(){var e=o.current,t=document.querySelector(".SRLThumb".concat(n));if(t){var r=t.getBoundingClientRect();e.scrollWidth>e.offsetWidth||e.scrollHeight>e.offsetHeight?e.style.justifyContent="start":e.style.justifyContent=c||"center",e.scrollWidth>e.offsetWidth?"scrollBehavior"in document.documentElement.style?e.scrollBy({top:0,left:r.left,behavior:"smooth"}):e.scrollLeft=80*parseInt(n):e.scrollHeight>e.offsetHeight&&("scrollBehavior"in document.documentElement.style?e.scrollBy({top:r.top,left:0,behavior:"smooth"}):e.scrollTop=r.top)}function a(t,n){e.scrollWidth>e.offsetWidth?(m.current=!0,g.current=t-e.offsetLeft,y.current=e.scrollLeft,e.classList.add("SRLDraggable")):e.scrollHeight>e.offsetHeight&&(m.current=!0,v.current=n-e.offsetTop,b.current=e.scrollTop,e.classList.add("SRLDraggable"))}function s(){m.current=!1,e.classList.remove("SRLDraggable")}function l(t,n){if(m.current){if(e.scrollHeight>e.offsetHeight){var r=n-e.offsetTop-v.current;e.scrollTop=b.current-r}else{var i=t-e.offsetLeft-g.current;e.scrollLeft=y.current-i}}}return A.current=function(t,r,a){(e.scrollWidth>e.offsetWidth||e.scrollHeight>e.offsetHeight)&&Math.trunc(t)!==Math.trunc(g.current)&&Math.trunc(r)!==Math.trunc(v.current)||i(a,n)},e.addEventListener("mousedown",function(e){return a(e.pageX,e.pageY)}),e.addEventListener("mouseleave",function(){return s()}),e.addEventListener("mouseup",function(){return s()}),e.addEventListener("mousemove",function(e){return l(e.pageX,e.pageY)}),function(){e.removeEventListener("mousedown",function(e){return a(e.pageX)}),e.removeEventListener("mouseleave",function(){return s()}),e.removeEventListener("mouseup",function(){return s()}),e.removeEventListener("mousemove",function(e){return l(e)})}},[n,i,o,c]),r.createElement(sb,{ref:o,thumbnailsPosition:u,thumbnailsSize:l,thumbnailsAlignment:c,thumbnailsContainerBackgroundColor:d,thumbnailsContainerPadding:h,className:"SRLThumbnailsContainer"},t.map(function(e){return r.createElement(sA,{onClick:function(t){return A.current(t.pageX,t.pageY,e.id)},thumbnailsOpacity:s,thumbnailsSize:l,thumbnailsGap:f,key:e.id,id:e.id,className:"SRLThumb SRLThumb".concat(e.id," ").concat(n===e.id?"SRLThumbnailSelected":""),style:{backgroundImage:"url('".concat(e.thumbnail,"')")}},("video"===e.type||"embed_video"===e.type)&&r.createElement(sw,{thumbnailsIconColor:p}))}))};s_.propTypes={elements:Z.array,handleCurrentElement:Z.func,currentId:Z.string,SRLThumbnailsRef:Z.object,thumbnails:Z.shape({thumbnailsAlignment:Z.string,thumbnailsContainerBackgroundColor:Z.string,thumbnailsContainerPadding:Z.string,thumbnailsGap:Z.string,thumbnailsIconColor:Z.string,thumbnailsOpacity:Z.number,thumbnailsPosition:Z.string,thumbnailsSize:Z.array})};var sC=tq.div(sx||(sx=em(["\n  color: white;\n  font-family: inherit;\n  outline: none;\n  border: 0;\n  position: relative;\n  z-index: 9996;\n  @media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {\n    width: 100vw;\n  }\n  width: 100%;\n  min-height: 50px;\n  box-sizing: border-box;\n  display: flex;\n  justify-content: center;\n  align-content: ",";\n  padding: ",";\n\n  ",";\n\n  /* Thumbnails aligned to the left */\n  ",";\n\n  @media (max-width: 768px) {\n    grid-column: auto;\n  }\n\n  /* Paragraph inside the caption container */\n  p {\n    margin: 0;\n    text-align: center;\n    font-weight: ",";\n    font-size: ",";\n    font-family: ",";\n    color: ",";\n    font-style: ",";\n    text-transform: ",";\n\n    @media (max-width: 768px) {\n      font-size: 14px;\n      padding: 0 15px;\n    }\n  }\n"])),function(e){return e.captionAlignment},function(e){return e.captionStyle.captionContainerPadding?e.captionStyle.captionContainerPadding:"20px 0 30px 0"},function(e){return"right"===e.thumbnailsPosition&&tP(sT||(sT=em(["\n      grid-column: 1/2;\n      -ms-grid-column: 1;\n      -ms-grid-column-span: 1;\n      align-items: start;\n    "])))},function(e){return"left"===e.thumbnailsPosition&&tP(sS||(sS=em(["\n      grid-column: 2/2;\n      -ms-grid-column: 2;\n      align-items: start;\n    "])))},function(e){return e.captionStyle.captionFontWeight?e.captionStyle.captionFontWeight:"inherit"},function(e){return e.captionStyle.captionFontSize?e.captionStyle.captionFontSize:"inherit"},function(e){return e.captionStyle.captionColor?e.captionStyle.captionFontFamily:"inherit"},function(e){return e.captionStyle.captionColor?e.captionStyle.captionColor:"white"},function(e){return e.captionStyle.captionFontStyle?e.captionStyle.captionFontStyle:"inherit"},function(e){return e.captionStyle.captionTextTransform?e.captionStyle.captionTextTransform:"inherit"}),sk=function(e){var t=e.captionOptions,n=e.caption,i=e.thumbnailsPosition,a=e.SRLCaptionRef;return r.createElement(sC,{captionStyle:t,thumbnailsPosition:i,className:"SRLCaptionContainer",ref:a},r.createElement("p",{className:"SRLCaptionText"},n))};function sI(){return(sI=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}sk.propTypes={captionOptions:Z.shape({showCaption:Z.bool,captionColor:Z.string,captionFontFamily:Z.string,captionFontSize:Z.string,captionFontStyle:Z.string,captionFontWeight:Z.oneOfType([Z.number,Z.string]),captionTextTransform:Z.string}),SRLCaptionRef:Z.object,thumbnailsPosition:Z.string,caption:Z.string};var sL={delta:10,preventDefaultTouchmoveEvent:!1,rotationAngle:0,trackMouse:!1,trackTouch:!0},sP={first:!0,initial:[0,0],start:0,swiping:!1,xy:[0,0]};function sO(e,t){if(0===t)return e;var n=Math.PI/180*t;return[e[0]*Math.cos(n)+e[1]*Math.sin(n),e[1]*Math.cos(n)-e[0]*Math.sin(n)]}function sR(e,t,n){var i=this,a=(0,r.useRef)(null),o=(0,r.useRef)(0),s=(0,r.useRef)(null),l=(0,r.useRef)([]),u=(0,r.useRef)(),c=(0,r.useRef)(),d=(0,r.useRef)(e),h=(0,r.useRef)(!0);d.current=e;var f=!t&&0!==t&&"undefined"!=typeof window;if("function"!=typeof e)throw TypeError("Expected a function");t=+t||0;var p=!!(n=n||{}).leading,m=!("trailing"in n)||!!n.trailing,g="maxWait"in n,v=g?Math.max(+n.maxWait||0,t):null;return(0,r.useEffect)(function(){return h.current=!0,function(){h.current=!1}},[]),(0,r.useMemo)(function(){var e=function(e){var t=l.current,n=u.current;return l.current=u.current=null,o.current=e,c.current=d.current.apply(n,t)},n=function(e,t){f&&cancelAnimationFrame(s.current),s.current=f?requestAnimationFrame(e):setTimeout(e,t)},r=function(e){if(!h.current)return!1;var n=e-a.current,r=e-o.current;return!a.current||n>=t||n<0||g&&r>=v},y=function(t){return s.current=null,m&&l.current?e(t):(l.current=u.current=null,c.current)},b=function(){var e=Date.now();if(r(e))return y(e);if(h.current){var i=e-a.current,s=e-o.current,l=t-i;n(b,g?Math.min(l,v-s):l)}},A=function(){for(var d=[],f=0;f<arguments.length;f++)d[f]=arguments[f];var m=Date.now(),v=r(m);if(l.current=d,u.current=i,a.current=m,v){if(!s.current&&h.current)return o.current=a.current,n(b,t),p?e(a.current):c.current;if(g)return n(b,t),e(a.current)}return s.current||n(b,t),c.current};return A.cancel=function(){s.current&&(f?cancelAnimationFrame(s.current):clearTimeout(s.current)),o.current=0,l.current=a.current=u.current=s.current=null},A.isPending=function(){return!!s.current},A.flush=function(){return s.current?y(Date.now()):c.current},A},[p,g,t,v,m,f])}var sD={exports:{}};!function(){function e(e,t,n,r){var i="removeEventListener",a=function(){e[i](t,n)};return e.addEventListener?(e.addEventListener(t,n,r),a):e.attachEvent?(t="on"+t,e.attachEvent(t,n),i="detachEvent",a):e.on?(e.on(t,n),i="off",a):void 0}e.define=function(e,t){return function(n,r,i,a){return n[e](r,i,a),function(){n[t](r,i)}}},sD.exports=e}();var sN,sM,sj,sF,sB,sU,sV,sz=sD.exports;function sq(e,t,n){var i=(0,r.useRef)();(0,r.useEffect)(function(){i.current=e},[e,n]),(0,r.useEffect)(function(){if(null!==t){var e=setInterval(function(){i.current()},t);return function(){return clearInterval(e)}}},[t,n])}function sQ(e){var t=J((0,r.useState)({x:0,y:0,width:0,height:0,top:0,left:0,bottom:0,right:0,scrollHeight:0,scrollWidth:0}),2),n=t[0],i=t[1],a="object"===("undefined"==typeof window?"undefined":sg(window));return(0,r.useEffect)(function(){if(e.current||a)return e.current&&i(t()),window.addEventListener("resize",n),function(){return window.removeEventListener("resize",n)};function t(){var t=e.current.getBoundingClientRect(),n=t.x,r=t.y,i=t.width,a=t.height,o=t.top,s=t.left,l=t.bottom,u=t.right;return{width:i,height:a,scrollWidth:e.current.scrollWidth,scrollHeight:e.current.scrollHeight,x:n,y:r,to
77p:o,left:s,bottom:l,right:u}}function n(){e.current&&i(t())}},[e,a]),[n]}var sH=function(e){return tP(sN||(sN=em(["\n  grid-column: 1/2;\n  -ms-grid-column: 1;\n  -ms-grid-column-span: 1;\n  width: 100%;\n  height: calc(100vh - ","px);\n"])),e.captionDivSizes.height)},sG=function(e){return tP(sM||(sM=em(["\n  grid-column: 2/2;\n  -ms-grid-column: 2;\n  width: 100%;\n  height: calc(100vh - ","px);\n"])),e.captionDivSizes.height)},sK=tq.div(sj||(sj=em(["\n  position: relative;\n  display: flex;\n  justify-content: center;\n  align-items: center;\n  outline: none;\n  width: 100vw;\n  height: ",";\n\n  /* Thumbnails aligned to the right.\n  We need to exclude the height of the div containing the thumbnails this time */\n  ",";\n\n  /* Thumbnails aligned to the left.\n    We need to exclude the height of the div containing the thumbnails this time */\n  ",";\n  /* Thumbnails hidden */\n  ",";\n\n  @media only screen and (min-device-width: 768px) and (max-device-width: 1024px) and (-webkit-min-device-pixel-ratio: 2) {\n    grid-column: auto;\n    width: 100vw;\n    height: ",";\n  }\n\n  @media only screen and (min-device-width: 1024px) and (max-device-width: 1366px) {\n    grid-column: auto;\n    width: 100vw;\n    height: ",";\n  }\n\n  @media (max-width: 768px) {\n    grid-column: auto;\n    width: 100vw;\n    height: ",";\n  }\n"])),function(e){return e?"calc(100vh - ".concat(e.captionDivSizes.height+e.thumbnailsDivSizes.height,"px)"):"100%"},function(e){return"right"===e.thumbnailsPosition&&sH},function(e){return"left"===e.thumbnailsPosition&&sG},function(e){return e.hideThumbnails&&"bottom"===e.thumbnailsPosition&&tP(sF||(sF=em(["\n      height: calc(100vh - ","px);\n    "])),e.thumbnailsDivSizes.height)},function(e){return e?"calc((var(--vh, 1vh) * 100) - ".concat(e.captionDivSizes.height+e.thumbnailsDivSizes.height,"px)"):"100%"},function(e){return e?"calc((var(--vh, 1vh) * 100) - ".concat(e.captionDivSizes.height+e.thumbnailsDivSizes.height,"px)"):"100%"},function(e){return e?"calc((var(--vh, 1vh) * 100) - ".concat(e.captionDivSizes.height+e.thumbnailsDivSizes.height,"px)"):"100%"}),s$=tq(o5.div)(sB||(sB=em(["\n  width: 100%;\n  height: 90%;\n  position: absolute;\n  /* IE 11 HACK **/\n  @media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {\n    top: 5%;\n    left: 0;\n  }\n  display: flex;\n  justify-content: center;\n  align-items: center;\n  outline: none;\n  border: 0;\n  -webkit-user-select: none;\n  -moz-user-select: none;\n  -ms-user-select: none;\n  user-select: none;\n\n  @keyframes spin {\n    0% {\n      transform: rotate(0deg);\n    }\n    100% {\n      transform: rotate(360deg);\n    }\n  }\n\n  .SRLLoadingIndicator {\n    animation: spin 1.2s linear infinite;\n    position: absolute;\n    top: 50%;\n    left: 50%;\n  }\n\n  /* react-zoom-pan-pinch library styles overrides*/\n  .react-transform-component {\n    width: fit-content;\n    width: auto;\n    height: fit-content;\n    height: auto;\n    z-index: 9997;\n    overflow: inherit;\n    cursor: grab;\n  }\n  .react-transform-element {\n    width: fit-content;\n    width: auto;\n    height: fit-content;\n    height: auto;\n    top: 0;\n    left: 0;\n    position: relative;\n\n    z-index: 9997;\n    display: block;\n    max-width: 100%;\n    max-height: 100%;\n    width: auto;\n    height: auto;\n  }\n"]))),sW=tq(o5.img)(sU||(sU=em(["\n  background: transparent;\n  border: 0;\n  position: relative;\n  display: block;\n  max-width: 100%;\n  max-height: 100%;\n  width: auto;\n  height: auto;\n  outline: none;\n  -webkit-user-select: none;\n  -moz-user-select: none;\n  -ms-user-select: none;\n  user-select: none;\n  transition: all 200ms ease;\n  opacity: 1;\n  margin: auto;\n  z-index: 9997;\n  box-shadow: ",";\n  cursor: ",";\n"])),function(e){return e.boxShadow},function(e){return e.disablePanzoom?"auto":"zoom-in"}),sZ=tq(o5.img)(sV||(sV=em(["\n  top: 0;\n  left: 0;\n  position: relative;\n  z-index: 9997;\n  display: block;\n  max-width: 100%;\n  max-height: 100%;\n  width: auto;\n  height: auto;\n"])));function sY(){return r.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"50px",height:"50px",viewBox:"0 0 100 100",preserveAspectRatio:"xMidYMid",className:"SRLLoadingIndicator"},r.createElement("circle",{cx:"50",cy:"50",fill:"none",stroke:"#ffffff",strokeWidth:"10",r:"35",strokeDasharray:"164.93361431346415 56.97787143782138"}))}/*! *****************************************************************************
78Copyright (c) Microsoft Corporation.
79
80Permission to use, copy, modify, and/or distribute this software for any
81purpose with or without fee is hereby granted.
82
83THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
84REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
85AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
86INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
87LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
88OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
89PERFORMANCE OF THIS SOFTWARE.
90***************************************************************************** */var sX=function(e,t){return(sX=Object.
90setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},sJ=function(){return(sJ=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function s0(e,t,n){if(n||2==arguments.length)for(var r,i=0,a=t.length;i<a;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||t)}var s1=function(e,t){return Number(e.toFixed(t))},s2=function(e,t,n){n&&"function"==typeof n&&n(e,t)},s3={easeOut:function(e){return-Math.cos(e*Math.PI)/2+.5},linear:function(e){return e},easeInQuad:function(e){return e*e},easeOutQuad:function(e){return e*(2-e)},easeInOutQuad:function(e){return e<.5?2*e*e:(4-2*e)*e-1},easeInCubic:function(e){return e*e*e},easeOutCubic:function(e){return--e*e*e+1},easeInOutCubic:function(e){return e<.5?4*e*e*e:(e-1)*(2*e-2)*(2*e-2)+1},easeInQuart:function(e){return e*e*e*e},easeOutQuart:function(e){return 1- --e*e*e*e},easeInOutQuart:function(e){return e<.5?8*e*e*e*e:1-8*--e*e*e*e},easeInQuint:function(e){return e*e*e*e*e},easeOutQuint:function(e){return 1+--e*e*e*e*e},easeInOutQuint:function(e){return e<.5?16*e*e*e*e*e:1+16*--e*e*e*e*e}},s4=function(e){"number"==typeof e&&cancelAnimationFrame(e)},s5=function(e){e.mounted&&(s4(e.animation),e.animate=!1,e.animation=null,e.velocity=null)};function s8(e,t,n,r){if(e.mounted){var i=(new Date).getTime();s5(e),e.animation=function(){if(!e.mounted)return s4(e.animation);var a=(new Date).getTime()-i,o=(0,s3[t])(a/n);a>=n?(r(1),e.animation=null):e.animation&&(r(o),requestAnimationFrame(e.animation))},requestAnimationFrame(e.animation)}}function s6(e,t,n,r){var i,a,o,s=(i=t.scale,a=t.positionX,o=t.positionY,!(isNaN(i)||isNaN(a)||isNaN(o)));if(e.mounted&&s){var l=e.setTransformState,u=e.transformState,c=u.scale,d=u.positionX,h=u.positionY,f=t.scale-c,p=t.positionX-d,m=t.positionY-h;0===n?l(t.scale,t.positionX,t.positionY):s8(e,r,n,function(e){l(c+f*e,d+p*e,h+m*e)})}}var s9=function(e,t){var n,r,i,a,o,s,l,u,c,d,h,f=e.wrapperComponent,p=e.contentComponent,m=e.setup.centerZoomedOut;if(!f||!p)throw Error("Components are not mounted");var g=(n=f.offsetWidth,{wrapperWidth:n,wrapperHeight:r=f.offsetHeight,newContentWidth:i=p.offsetWidth*t,newDiffWidth:n-i,newContentHeight:a=p.offsetHeight*t,newDiffHeight:r-a}),v=g.wrapperWidth,y=g.wrapperHeight;return o=g.newContentWidth,s=g.newDiffWidth,l=g.newContentHeight,u=g.newDiffHeight,c=!!m,d=v>o?s*(c?1:.5):0,h=y>l?u*(c?1:.5):0,{minPositionX:v-o-d,maxPositionX:d,minPositionY:y-l-h,maxPositionY:h}},s7=function(e,t){var n=s9(e,t);return e.bounds=n,n};function le(e,t,n,r,i,a,o){var s=n.minPositionX,l=n.minPositionY,u=n.maxPositionX,c=n.maxPositionY,d=0,h=0;return o&&(d=i,h=a),{x:lt(e,s-d,u+d,r),y:lt(t,l-h,c+h,r)}}var lt=function(e,t,n,r){return s1(r?e<t?t:e>n?n:e:e,2)};function ln(e,t,n,r,i,a){var o=e.transformState,s=o.scale,l=o.positionX,u=o.positionY,c=r-s;return"number"!=typeof t||"number"!=typeof n?(console.error("Mouse X and Y position were not provided!"),{x:l,y:u}):le(l-t*c,u-n*c,i,a,0,0,null)}function lr(e,t,n,r,i){var a=t-(i?r:0);return!isNaN(n)&&e>=n?n:!isNaN(t)&&e<=a?a:e}var li=function(e,t){var n=e.setup.panning.excluded,r=e.isInitialized,i=e.wrapperComponent,a=t.target,o=null==i?void 0:i.contains(a);return!!(r&&a&&o)&&!lx(a,n)},la=function(e){var t=e.isInitialized,n=e.isPanning,r=e.setup.panning.disabled;return!(!t||!n||r)},lo=function(e,t){var n=e.setup,r=e.transformState.scale,i=n.minScale;return t>0&&r>=i?t:0};function ls(e,t,n,r,i,a,o,s,l,u){if(i){var c;if(t>o&&n>o)return(c=o+(e-o)*u)>l?l:c<o?o:c;if(t<a&&n<a)return(c=a+(e-a)*u)<s?s:c>a?a:c}return r?t:lt(e,a,o,i)}function ll(e,t){var n,r,i,a,o,s=e.transformState.scale;s5(e),s7(e,s),t.touches?function(e,t){var n=t.touches,r=e.transformState,i=r.positionX,a=r.positionY;if(e.isPanning=!0,1===n.length){var o=n[0].clientX,s=n[0].clientY;e.startCoords={x:o-i,y:s-a}}}(e,t):(r=(n=e.transformState).positionX,i=n.positionY,e.isPanning=!0,a=t.clientX,o=t.clientY,e.startCoords={x:a-r,y:o-i})}function lu(e,t,n){var r=e.startCoords,i=e.setup.alignmentAnimation,a=i.sizeX,o=i.sizeY;if(r){var s=function(e,t,n){var r=e.startCoords,i=e.transformState,a=e.setup.panning,o=a.lockAxisX,s=a.lockAxisY,l=i.positionX,u=i.positionY;if(!r)return{x:l,y:u};var c=t-r.x,d=n-r.y;return{x:o?l:c,y:s?u:d}}
90(e,t,n),l=s.x,u=s.y,c=lo(e,a),d=lo(e,o);(function(e,t){if(l=e.mounted,c=(u=e.setup).disabled,d=u.velocityAnimation,h=e.transformState.scale,!(d.disabled&&!(h>1)&&c&&!l)){var n=e.lastMousePosition,r=e.velocityTime,i=e.setup,a=e.wrapperComponent,o=i.velocityAnimation.equalToMove,s=Date.now();if(n&&r&&a){var l,u,c,d,h,f=o?Math.min(1,a.offsetWidth/window.innerWidth):1,p=t.x-n.x,m=t.y-n.y;e.velocity={velocityX:p/f,velocityY:m/f,total:Math.sqrt(p*p+m*m)/(s-r)}}e.lastMousePosition=t,e.velocityTime=s}})(e,{x:l,y:u}),function(e,t,n,r,i){var a=e.setup.limitToBounds,o=e.wrapperComponent,s=e.bounds,l=e.transformState,u=l.scale,c=l.positionX,d=l.positionY;if(o&&t!==c&&n!==d&&s){var h=le(t,n,s,a,r,i,o),f=h.x,p=h.y;e.setTransformState(u,f,p)}}(e,l,u,c,d)}}function lc(e){var t=e.transformState.scale,n=e.setup,r=n.minScale,i=n.alignmentAnimation,a=i.disabled,o=i.sizeX,s=i.sizeY,l=i.animationTime,u=i.animationType;if(!(a||t<r||!o&&!s)){var c=function(e){var t=e.transformState,n=t.positionX,r=t.positionY,i=t.scale,a=e.setup,o=a.disabled,s=a.limitToBounds,l=a.centerZoomedOut,u=e.wrapperComponent;if(!o&&u&&e.bounds){var c=e.bounds,d=c.maxPositionX,h=c.minPositionX,f=c.maxPositionY,p=c.minPositionY,m=ln(e,n>d?u.offsetWidth:e.setup.minPositionX||0,r>f?u.offsetHeight:e.setup.minPositionY||0,i,e.bounds,s||l),g=m.x,v=m.y;return{scale:i,positionX:n>d||n<h?g:n,positionY:r>f||r<p?v:r}}}(e);c&&s6(e,c,l,u)}}function ld(e,t,n){var r=e.transformState.scale,i=e.wrapperComponent,a=e.setup,o=a.minScale,s=a.limitToBounds,l=a.zoomAnimation,u=l.disabled,c=l.animationTime,d=l.animationType,h=u||r>=o;if((r>=1||s)&&lc(e),!h&&i&&e.mounted){var f=lh(e,o,t||i.offsetWidth/2,n||i.offsetHeight/2);f&&s6(e,f,c,d)}}function lh(e,t,n,r){var i=e.setup,a=i.minScale,o=i.maxScale,s=i.limitToBounds,l=lr(s1(t,2),a,o,0,!1),u=ln(e,n,r,l,s7(e,l),s);return{scale:l,positionX:u.x,positionY:u.y}}var lf={previousScale:1,scale:1,positionX:0,positionY:0},lp=sJ(sJ({},lf),{setComponents:function(){},contextInstance:null}),lm={disabled:!1,minPositionX:null,maxPositionX:null,minPositionY:null,maxPositionY:null,minScale:1,maxScale:8,limitToBounds:!0,centerZoomedOut:!1,centerOnInit:!1,wheel:{step:.2,disabled:!1,wheelDisabled:!1,touchPadDisabled:!1,activationKeys:[],excluded:[]},panning:{disabled:!1,velocityDisabled:!1,lockAxisX:!1,lockAxisY:!1,activationKeys:[],excluded:[]},pinch:{step:5,disabled:!1,excluded:[]},doubleClick:{disabled:!1,step:.7,mode:"zoomIn",animationType:"easeOut",animationTime:200,excluded:[]},zoomAnimation:{disabled:!1,size:.4,animationTime:200,animationType:"easeOut"},alignmentAnimation:{disabled:!1,sizeX:100,sizeY:100,animationTime:200,velocityAlignmentTime:400,animationType:"easeOut"},velocityAnimation:{disabled:!1,sensitivity:1,animationTime:400,animationType:"easeOut",equalToMove:!0}},lg=function(e){var t,n,r,i;return{previousScale:null!==(t=e.initialScale)&&void 0!==t?t:lf.scale,scale:null!==(n=e.initialScale)&&void 0!==n?n:lf.scale,positionX:null!==(r=e.initialPositionX)&&void 0!==r?r:lf.positionX,positionY:null!==(i=e.initialPositionY)&&void 0!==i?i:lf.positionY}},lv=function(e){var t=sJ({},lm);return Object.keys(e).forEach(function(n){var r=void 0!==e[n];if(void 0!==lm[n]&&r){var i=Object.prototype.toString.call(lm[n]);t[n]="[object Object]"===i?sJ(sJ({},lm[n]),e[n]):"[object Array]"===i?s0(s0([],lm[n]),e[n]):e[n]}}),t},ly=function(e,t,n){var r=e.transformState.scale,i=e.wrapperComponent,a=e.setup,o=a.maxScale,s=a.minScale,l=a.zoomAnimation.size;if(!i)throw Error("Wrapper is not mounted");return lr(s1(r*Math.exp(t*n),3),s,o,l,!1)};function lb(e,t,n,r,i){var a=e.wrapperComponent,o=e.transformState,s=o.scale,l=o.positionX,u=o.positionY;if(!a)return console.error("No WrapperComponent found");var c=(a.offsetWidth/2-l)/s,d=(a.offsetHeight/2-u)/s,h=lh(e,ly(e,t,n),c,d);if(!h)return console.error("Error during zoom event. New transformation state was not calculated.");s6(e,h,r,i)}function lA(e,t,n){var r=e.setup,i=e.wrapperComponent,a=r.limitToBounds,o=lg(e.props),s=e.transformState,l=s.scale,u=s.positionX,c=s.positionY;if(i){var d=s9(e,o.scale),h=le(o.positionX,o.positionY,d,a,0,0,i),f={scale:o.scale,positionX:h.x,positionY:h.y};l===o.scale&&u===o.positionX&&c===o.positionY||s6(e,f,t,n)}}var lE=function(e){return{instance:e,state:e.transformState,zoomIn:function(t,n,r){void 0===t&&(t=.5),void 0===n&&(n=300),void 0===r&&(r="easeOut"),lb(e,1,t,n,r)},zoomOut:function(t,n,r){void 0===t&&(t=.5),void 0===n&&(n=300),void 0===r&&(r="easeOut"),lb(e,-1,t,n,r)},setTransform:function(t,n,r,i,a){void 0===i&&(i=300),void 0===a&&(a="easeOut");var o=e.transformState,s=o.positionX,l=o.positionY,u=o.scale,c=e.wrapperComponent,d=e.contentComponent;!e.setup.disabled&&c&&d&&s6(e,{positionX:isNaN(t)?s:t,positionY:isNaN(n)?l:n,scale:isNaN(r)?u:r},i,a)},resetTransform:function(t,n){void 0===t&&(t=200),void 0===n&&(n="easeOut"),lA(e,t,n)},centerView:function(t,n,r){void 0===n&&(n=200),void 0===r&&(r="easeOut");var i=e.transformState,a=e.wrapperComponent,o=e.contentComponent;a&&o&&s6(e,lS(t||i.scale,a,o),n,r)},zoomToElement:function(t,n,r,i){void 0===r&&(r=600),void 0===i&&(i="easeOut"),s5(e);var a=e.wrapperComponent,o="string"==typeof t?document.getElementById(t):t;if(a&&(o?void 0!==(null==o?void 0:o.offsetWidth)&&void 0!==(null==o?void 0:o.offsetHeight)||(console.error("Zoom node is not val
90id - it must contain offsetWidth and offsetHeight"),!1):(console.error("Zoom node not found"),!1))&&o&&a.contains(o)){var s=function(e,t,n){var r=e.wrapperComponent,i=e.setup,a=i.limitToBounds,o=i.minScale,s=i.maxScale;if(!r)return lf;var l=r.getBoundingClientRect(),u=function(e){for(var t=e,n=0,r=0;t;)n+=t.offsetLeft,r+=t.offsetTop,t=t.offsetParent;return{x:n,y:r}}(t),c=u.x,d=u.y,h=t.offsetWidth,f=t.offsetHeight,p=r.offsetWidth/h,m=r.offsetHeight/f,g=lr(n||Math.min(p,m),o,s,0,!1),v=(l.width-h*g)/2,y=(l.height-f*g)/2,b=le((l.left-c)*g+v,(l.top-d)*g+y,s9(e,g),a,0,0,r);return{positionX:b.x,positionY:b.y,scale:g}}(e,o,n);s6(e,s,r,i)}}}};function lw(){try{return{get passive(){return!1}}}catch(e){return!1}}var lx=function(e,t){var n=e.tagName.toUpperCase();return!!t.find(function(e){return e.toUpperCase()===n})||!!t.find(function(t){return e.classList.contains(t)})},lT=function(e){e&&clearTimeout(e)},lS=function(e,t,n){var r=n.offsetWidth*e,i=n.offsetHeight*e;return{scale:e,positionX:(t.offsetWidth-r)/2,positionY:(t.offsetHeight-i)/2}},l_=function(e,t){var n=e.setup.wheel,r=n.disabled,i=n.wheelDisabled,a=n.touchPadDisabled,o=n.excluded,s=e.isInitialized,l=e.isPanning,u=t.target;return!(!s||l||r||!u)&&!(i&&!t.ctrlKey)&&(!a||!t.ctrlKey)&&!lx(u,o)};function lC(e,t,n){var r=t.getBoundingClientRect(),i=0,a=0;if("clientX"in e)i=(e.clientX-r.left)/n,a=(e.clientY-r.top)/n;else{var o=e.touches[0];i=(o.clientX-r.left)/n,a=(o.clientY-r.top)/n}return(isNaN(i)||isNaN(a))&&console.error("No mouse or touch offset found"),{x:i,y:a}}var lk=function(e,t){var n=e.setup.pinch,r=n.disabled,i=n.excluded,a=e.isInitialized,o=t.target;return!(!a||r||!o)&&!lx(o,i)},lI=function(e){var t=e.setup.pinch.disabled,n=e.isInitialized,r=e.pinchStartDistance;return!(!n||t||!r)},lL=function(e){return Math.sqrt(Math.pow(e.touches[0].pageX-e.touches[1].pageX,2)+Math.pow(e.touches[0].pageY-e.touches[1].pageY,2))},lP=function(e,t){var n=e.props,r=n.onWheelStart,i=n.onZoomStart;e.wheelStopEventTimer||(s5(e),s2(lE(e),t,r),s2(lE(e),t,i))},lO=function(e,t){var n,r=e.props,i=r.onWheel,a=r.onZoom,o=e.contentComponent,s=e.setup,l=e.transformState.scale,u=s.limitToBounds,c=s.centerZoomedOut,d=s.zoomAnimation,h=s.wheel,f=d.size,p=d.disabled,m=h.step;if(!o)throw Error("Component not mounted");t.preventDefault(),t.stopPropagation();var g=function(e,t,n,r,i){var a=e.transformState.scale,o=e.wrapperComponent,s=e.setup,l=s.maxScale,u=s.minScale,c=s.zoomAnimation,d=c.size,h=c.disabled;if(!o)throw Error("Wrapper is not mounted");return lr(s1(a+t*(a-a*n)*n,3),u,l,d,!r&&!h)}(e,(n=t?t.deltaY<0?1:-1:0,n),m,!t.ctrlKey);if(l!==g){var v=s7(e,g),y=lC(t,o,l),b=ln(e,y.x,y.y,g,v,u&&(p||0===f||c)),A=b.x,E=b.y;e.previousWheelEvent=t,e.setTransformState(g,A,E),s2(lE(e),t,i),s2(lE(e),t,a)}},lR=function(e,t){var n,r,i,a,o,s=e.props,l=s.onWheelStop,u=s.onZoomStop;lT(e.wheelAnimationTimer),e.wheelAnimationTimer=setTimeout(function(){e.mounted&&(ld(e,t.x,t.y),e.wheelAnimationTimer=null)},100),n=e.previousWheelEvent,r=e.transformState.scale,a=(i=e.setup).maxScale,o=i.minScale,n&&(r<a||r>o||Math.sign(n.deltaY)!==Math.sign(t.deltaY)||n.deltaY>0&&n.deltaY<t.deltaY||n.deltaY<0&&n.deltaY>t.deltaY||Math.sign(n.deltaY)!==Math.sign(t.deltaY))&&(lT(e.wheelStopEventTimer),e.wheelStopEventTimer=setTimeout(function(){e.mounted&&(e.wheelStopEventTimer=null,s2(lE(e),t,l),s2(lE(e),t,u))},160))},lD=function(e,t){var n=lL(t);e.pinchStartDistance=n,e.lastDistance=n,e.pinchStartScale=e.transformState.scale,e.isPanning=!1,s5(e)},lN=function(e,t){var n=e.contentComponent,r=e.pinchStartDistance,i=e.transformState.scale,a=e.setup,o=a.limitToBounds,s=a.centerZoomedOut,l=a.zoomAnimation,u=l.disabled,c=l.size;if(null!==r&&n){var d,h,f,p,m=(d=n.getBoundingClientRect(),f=s1((h=t.touches)[0].clientX-d.left,5),p=s1(h[0].clientY-d.top,5),{x:(f+s1(h[1].clientX-d.left,5))/2/i,y:(p+s1(h[1].clientY-d.top,5))/2/i});if(isFinite(m.x)&&isFinite(m.y)){var g=lL(t),v=function(e,t){var n=e.pinchStartScale,r=e.pinchStartDistance,i=e.setup,a=i.maxScale,o=i.minScale,s=i.zoomAnimation,l=s.size,u=s.disabled;if(!n||null===r||!t)throw Error("Pinch touches distance was not provided");return t<0?e.transformState.scale:lr(s1(t/r*n,2),o,a,l,!u)}(e,g);if(v!==i){var y=s7(e,v),b=ln(e,m.x,m.y,v,y,o&&(u||0===c||s)),A=b.x,E=b.y;e.pinchMidpoint=m,e.lastDistance=g,e.setTransformState(v,A,E)}}}},lM=function(e){var t=e.pinchMidpoint;e.velocity=null,e.lastDistance=null,e.pinchMidpoint=null,e.pinchStartScale=null,e.pinchStartDistance=null,ld(e,null==t?void 0:t.x,null==t?void 0:t.y)},lj=function(e,t){var n=e.isInitialized,r=e.setup,i=e.wrapperComponent,a=r.doubleClick,o=a.disabled,s=a.excluded,l=t.target,u=null==i?void 0:i.contains(l),c=n&&l&&u&&!o;return!!c&&!lx(l,s)&&!!c},lF=r.createContext(lp),lB=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.mounted=!0,t.transformState=lg(t.props),t.setup=lv(t.props),t.wrapperComponent=null,t.contentComponent=null,t.isInitialized=!1,t.bounds=null,t.previousWheelEvent=null,t.wheelStopEventTimer=null,t.wheelAnimationTimer=null,t.isPanning=!1,t.startCoords=null,t.lastTouch=null,t.distance=null,t.lastDistance=null,t.pinchStartDistance=null,t.pinchStartScale=null,t.pinchMidpoint=null,t.velocity=null,t.velocityTime=null,t.lastMousePosition=null,t.animate=!1,t.animation=null,t.maxBounds=null,t.pressedKeys={},t.handleInitializeWrapperEvents=function(e){var n=lw();e.addEventListener("wheel",t.onWheelZoom,n),e.addEventListener("dblclick",t.onDoubleClick,n),e.addEventListener("touchstart",t.onTouchPanningStart,n),e.addEventListener("touchmove",t.onTouchPanning,n),e.addEventListener("touchend",t.onTouchPanningStop,n)},t.handleInitialize=function(){var e=t.setup.centerOnInit;t.applyTransformation(),t.forceUpdate(),e&&(setTimeout(function(){t.mounted&&t.setCenter()},50),setTimeout(function(){t.mounted&&t.setCenter()},100),setTimeout(function(){t.mounted&&t.setCenter()},200))},t.onWheelZoom=function(e){t.setup.disabled||l_(t,e)&&t.isPressingKeys(t.setup.wheel.activationKeys)&&(lP(t,e),lO(t,e),lR(t,e))},t.onPanningStart=function(e){var n=t.setup.disabled,r=t.props.onPanningStart;n||li(t,e)&&t.isPressingKeys(t.setup.panning.activationKeys)&&(e.preventDefault(),e.stopPropagation(),s5(t),ll(t,e),s2
90(lE(t),e,r))},t.onPanning=function(e){var n=t.setup.disabled,r=t.props.onPanning;n||la(t)&&t.isPressingKeys(t.setup.panning.activationKeys)&&(e.preventDefault(),e.stopPropagation(),lu(t,e.clientX,e.clientY),s2(lE(t),e,r))},t.onPanningStop=function(e){var n=t.props.onPanningStop;t.isPanning&&(function(e){if(e.isPanning){var t=e.setup.panning.velocityDisabled,n=e.velocity,r=e.wrapperComponent,i=e.contentComponent;e.isPanning=!1,e.animate=!1,e.animation=null;var a=null==r?void 0:r.getBoundingClientRect(),o=null==i?void 0:i.getBoundingClientRect(),s=(null==a?void 0:a.width)||0,l=(null==a?void 0:a.height)||0,u=(null==o?void 0:o.width)||0,c=(null==o?void 0:o.height)||0;!t&&n&&(null==n?void 0:n.total)>.1&&(s<u||l<c)?function(e){var t=e.velocity,n=e.bounds,r=e.setup,i=e.wrapperComponent;if(a=e.mounted,o=e.velocity,s=e.bounds,u=(l=e.setup).disabled,c=l.velocityAnimation,d=e.transformState.scale,!(c.disabled&&!(d>1)&&u&&!a||!o||!s)&&t&&n&&i){var a,o,s,l,u,c,d,h,f,p,m,g=t.velocityX,v=t.velocityY,y=t.total,b=n.maxPositionX,A=n.minPositionX,E=n.maxPositionY,w=n.minPositionY,x=r.limitToBounds,T=r.alignmentAnimation,S=r.zoomAnimation,_=r.panning,C=_.lockAxisY,k=_.lockAxisX,I=S.animationType,L=T.sizeX,P=T.sizeY,O=T.velocityAlignmentTime,R=(f=(h=e.setup.velocityAnimation).equalToMove,p=h.animationTime,m=h.sensitivity,f?p*y*m:p),D=lo(e,L),N=lo(e,P),M=D*i.offsetWidth/100,j=N*i.offsetHeight/100,F=b
90+M,B=A-M,U=E+j,V=w-j,z=e.transformState,q=(new Date).getTime();s8(e,I,Math.max(R,O),function(t){var n=e.transformState,r=n.scale,i=n.positionX,a=n.positionY,o=((new Date).getTime()-q)/O,s=1-(0,s3[T.animationType])(Math.min(1,o)),l=1-t,u=i+g*l,c=a+v*l,d=ls(u,z.positionX,i,k,x,A,b,B,F,s),h=ls(c,z.positionY,a,C,x,w,E,V,U,s);i===u&&a===c||e.setTransformState(r,d,h)})}}(e):lc(e)}}(t),s2(lE(t),e,n))},t.onPinchStart=function(e){var n=t.setup.disabled,r=t.props,i=r.onPinchingStart,a=r.onZoomStart;n||lk(t,e)&&(lD(t,e),s5(t),s2(lE(t),e,i),s2(lE(t),e,a))},t.onPinch=function(e){var n=t.setup.disabled,r=t.props,i=r.onPinching,a=r.onZoom;n||lI(t)&&(e.preventDefault(),e.stopPropagation(),lN(t,e),s2(lE(t),e,i),s2(lE(t),e,a))},t.onPinchStop=function(e){var n=t.props,r=n.onPinchingStop,i=n.onZoomStop;t.pinchStartScale&&(lM(t),s2(lE(t),e,r),s2(lE(t),e,i))},t.onTouchPanningStart=function(e){var n=t.setup.disabled,r=t.props.onPanningStart;if(!n&&li(t,e)){if(t.lastTouch&&+new Date-t.lastTouch<200&&1===e.touches.length)t.onDoubleClick(e);else{t.lastTouch=+new Date,s5(t);var i=e.touches,a=1===i.length,o=2===i.length;a&&(s5(t),ll(t,e),s2(lE(t),e,r)),o&&t.onPinchStart(e)}}},t.onTouchPanning=function(e){var n=t.setup.disabled,r=t.props.onPanning;if(t.isPanning&&1===e.touches.length){if(n||!la(t))return;e.preventDefault(),e.stopPropagation();var i=e.touches[0];lu(t,i.clientX,i.clientY),s2(lE(t),e,r)}else e.touches.length>1&&t.onPinch(e)},t.onTouchPanningStop=function(e){t.onPanningStop(e),t.onPinchStop(e)},t.onDoubleClick=function(e){t.setup.disabled||lj(t,e)&&function(e,t){var n=e.setup.doubleClick,r=n.disabled,i=n.mode,a=n.step,o=n.animationTime,s=n.animationType;if(!r){if("reset"===i)return lA(e,o,s);var l=e.transformState.scale,u=e.contentComponent;if(!u)return console.error("No ContentComponent found");var c=ly(e,"zoomOut"===i?-1:1,a),d=lC(t,u,l),h=lh(e,c,d.x,d.y);if(!h)return console.error("Error during zoom event. New transformation state was not calculated.");s6(e,h,o,s)}}(t,e)},t.clearPanning=function(e){t.isPanning&&t.onPanningStop(e)},t.setKeyPressed=function(e){t.pressedKeys[e.key]=!0},t.setKeyUnPressed=function(e){t.pressedKeys[e.key]=!1},t.isPressingKeys=function(e){return!e.length||!!e.find(function(e){return t.pressedKeys[e]})},t.setComponents=function(e,n){t.wrapperComponent=e,t.contentComponent=n,s7(t,t.transformState.scale),t.handleInitializeWrapperEvents(e),t.handleInitialize(),t.handleRef(),t.isInitialized=!0,s2(lE(t),void 0,t.props.onInit)},t.setTransformState=function(e,n,r){isNaN(e)||isNaN(n)||isNaN(r)?console.error("Detected NaN set state values"):(e!==t.transformState.scale&&(t.transformState.previousScale=t.transformState.scale,t.transformState.scale=e),t.transformState.positionX=n,t.transformState.positionY=r,t.applyTransformation())},t.setCenter=function(){if(t.wrapperComponent&&t.contentComponent){var e=lS(t.transformState.scale,t.wrapperComponent,t.contentComponent);t.setTransformState(e.scale,e.positionX,e.positionY)}},t.applyTransformation=function(){if(t.mounted&&t.contentComponent){var e=t.transformState,n=e.scale,r=e.positionX,i=e.positionY;t.contentComponent.style.transform="translate3d("+r+"px, "+i+"px, 0) scale("+n+")",t.handleRef()}},t.handleRef=function(){t.props.setRef(lE(t))},t}return function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}sX(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}(t,e),t.prototype.componentDidMount=function(){var e=lw();window.addEventListener("mousedown",this.onPanningStart,e),window.addEventListener("mousemove",this.onPanning,e),window.addEventListener("mouseup",this.onPanningStop,e),document.addEventListener("mouseleave",this.clearPanning,e),window.addEventListener("keyup",this.setKeyUnPressed,e),window.addEventListener("keydown",this.setKeyPressed,e),this.handleRef()},t.prototype.componentWillUnmount=function(){var e=lw();window.removeEventListener("mousedown",this.onPanningStart,e),window.removeEventListener("mousemove",this.onPanning,e),window.removeEventListener("mouseup",this.onPanningStop,e),window.removeEventListener("keyup",this.setKeyUnPressed,e),window.removeEventListener("keydown",this.setKeyPressed,e),s5(this)},t.prototype.componentDidUpdate=function(e){e!==this.props&&(s7(this,this.transformState.scale),this.setup=lv(this.props))},t.prototype.render=function(){var e=lE(this),t=this.props.children,n="function"==typeof t?t(e):t;return r.createElement(lF.Provider,{value:sJ(sJ({},this.transformState),{setComponents:this.setComponents,contextInstance:this})},n)},t}(r.Component),lU=r.forwardRef(function(e,t){var n=(0,r.useState)(null),i=n[0],a=n[1];return(0,r.useImperativeHandle)(t,function(){return i},[i]),r.createElement(lB,sJ({},e,{setRef:a}))});!function(e,t){void 0===t&&(t={});var n=t.insertAt;if(e&&"undefined"!=typeof document){var r=document.head||document.getElementsByTagName("head")[0],i=document.createElement("style");
90i.type="text/css","top"===n&&r.firstChild?r.insertBefore(i,r.firstChild):r.appendChild(i),i.styleSheet?i.styleSheet.cssText=e:i.appendChild(document.createTextNode(e))}}(".transform-component-module_wrapper__1_Fgj {\n  position: relative;\n  width: -moz-fit-content;\n  width: fit-content;\n  height: -moz-fit-content;\n  height: fit-content;\n  overflow: hidden;\n  -webkit-touch-callout: none; /* iOS Safari */\n  -webkit-user-select: none; /* Safari */\n  -khtml-user-select: none; /* Konqueror HTML */\n  -moz-user-select: none; /* Firefox */\n  -ms-user-select: none; /* Internet Explorer/Edge */\n  user-select: none;\n  margin: 0;\n  padding: 0;\n}\n.transform-component-module_content__2jYgh {\n  display: flex;\n  flex-wrap: wrap;\n  width: -moz-fit-content;\n  width: fit-content;\n  height: -moz-fit-content;\n  height: fit-content;\n  margin: 0;\n  padding: 0;\n  transform-origin: 0% 0%;\n}\n.transform-component-module_content__2jYgh img {\n  pointer-events: none;\n}\n");var lV,lz,lq,lQ,lH,lG=function(e){var t=e.children,n=e.wrapperClass,i=e.contentClass,a=e.wrapperStyle,o=e.contentStyle,s=(0,r.useContext)(lF).setComponents,l=(0,r.useRef)(null),u=(0,r.useRef)(null);return(0,r.useEffect)(function(){var e=l.current,t=u.current;null!==e&&null!==t&&s&&s(e,t)},[]),r.createElement("div",{ref:l,className:"react-transform-wrapper transform-component-module_wrapper__1_Fgj "+(void 0===n?"":n),style:a},r.createElement("div",{ref:u,className:"react-transform-component transform-component-module_content__2jYgh "+(void 0===i?"":i),style:o},t))},lK=r.memo(function(e){var t=e.src,n=e.caption,i=e.disablePanzoom,a=e.handlePanzoom,o=e.panzoomEnabled,s=e.boxShadow,l=e.imgHeight,u=e.imgWidth,c=J((0,r.useState)(!0),2),d=c[0],h=c[1];function f(e){e.touches.length>1&&!o&&e.cancelable&&(e.preventDefault(),a(!0))}(0,r.useEffect)(function(){var e=new Image;e.src=t,e.onload=function(){h(!1)}},[t]),(0,r.useEffect)(function(){return document.addEventListener("touchstart",f,{passive:!1}),function(){document.addEventListener("touchstart",f,{passive:!1})}},[]);var p=d?r.createElement(sY,null):o?r.createElement(lU,{maxScale:6,minScale:.5,wheel:{step:.5},zoomAnimation:{animationType:"easeInOutQuad"}},r.createElement(lG,null,r.createElement(sZ,{src:t,className:"SRLImage SRLImageZoomed",alt:n,initial:{opacity:0}
90,animate:{opacity:1},exit:{opacity:0},transition:{ease:"easeInOut"}}))):r.createElement(sW,{src:t,className:"SRLImage",disablePanzoom:i,onClick:function(){return a(!0)},alt:n,boxShadow:s,initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{ease:"easeInOut"},width:u,height:l});return r.createElement(sh,null,p)});lK.displayName="ImageLoad",lK.propTypes={handlePanzoom:Z.func,src:Z.string,caption:Z.string,disablePanzoom:Z.bool,boxShadow:Z.string,panzoomEnabled:Z.bool,containerRef:Z.any,imgWidth:Z.number,imgHeight:Z.number};var l$,lW,lZ,lY,lX,lJ,l0,l1,l2,l3,l4,l5,l8,l6,l9,l7,ue,ut,un,ur=tP(lV||(lV=em(["\n  -ms-grid-columns: 1fr auto;\n  grid-template-columns: 1fr auto;\n  -ms-grid-rows: 90% auto;\n  grid-template-rows: 90% auto;\n\n  > *:nth-of-type(1) {\n    -ms-grid-row: 1;\n  }\n\n  > *:nth-of-type(2) {\n    -ms-grid-row: 2;\n  }\n\n  > *:nth-of-type(3) {\n    -ms-grid-row: 1;\n  }\n"]))),ui=tP(lz||(lz=em(["\n  -ms-grid-columns: auto 1fr;\n  grid-template-columns: auto 1fr;\n  -ms-grid-rows: 90% auto;\n  grid-template-rows: 90% auto;\n\n  > *:nth-of-type(1) {\n    -ms-grid-row: 1;\n  }\n\n  > *:nth-of-type(2) {\n    -ms-grid-row: 2;\n  }\n\n  > *:nth-of-type(3) {\n    -ms-grid-row: 1;\n  }\n"]))),ua=tq.div(lq||(lq=em(["\n  bottom: 0;\n  left: 0;\n  right: 0;\n  top: 0;\n  display: grid;\n  display: -ms-grid;\n  -ms-grid-rows: auto;\n  grid-template-rows: auto;\n  align-items: center;\n  justify-content: center;\n  justify-items: center;\n  width: 100vw;\n  height: 100vh;\n  height: calc(var(--vh, 1vh) * 100);\n\n  > *:nth-of-type(1) {\n    -ms-grid-row: 1;\n  }\n\n  > *:nth-of-type(2) {\n    -ms-grid-row: 2;\n  }\n\n  > *:nth-of-type(3) {\n    -ms-grid-row: 3;\n  }\n\n  /* Thumbnails aligned to the right */\n  ",";\n\n  /* Thumbnails aligned to the left */\n  ",";\n\n  ",";\n\n  ",";\n\n  @media (max-width: 768px) {\n    grid-template-columns: auto;\n    grid-template-rows: auto;\n  }\n"])),function(e){return"right"===e.thumbnailsPosition&&ur},function(e){return"left"===e.thumbnailsPosition&&ui},function(e){return e.hideThumbnails&&tP(lQ||(lQ=em(["\n      -ms-grid-rows: 90% auto;\n      grid-template-rows: 90% auto;\n    "])))},function(e){return!e.showCaption&&tP(lH||(lH=em(["\n      -ms-grid-rows: auto;\n      grid-template-rows: auto;\n    "])))});function uo(e){var t,n,i,a,o,s,l,u,c,d,h,f,p=e.caption,m=e.direction,g=e.elements,v=e.handleCurrentElement,y=e.handleCloseLightbox,b=e.handleNextElement,A=e.handlePanzoom,E=e.handlePrevElement,w=e.height,x=e.hideThumbnails,T=e.id,S=e.options,_=e.panzoomEnabled,C=e.source,k=e.SRLThumbnailsRef,I=e.SRLCaptionRef,L=e.width,P=S.settings,O=S.thumbnails,R=S.caption,D=J(sQ(I),1)[0],N=J(sQ(k),1)[0],M=(0,r.useRef)(),j=!!window.MSInputMethodContext&&!!document.documentMode,F=j?1e3:"100%",B=j?-1e3:"-100%",U={slideIn:function(e){return{x:void 0===e?0:"next"===e?F:B,transition:{ease:P.slideTransitionTimingFunction}}},slideOut:function(e){return{x:"previous"===e?F:B,transition:{ease:P.slideTransitionTimingFunction}}},fadeIn:{opacity:0,transition:{ease:P.slideTransitionTimingFunction}},fadeOut:{opacity:0,transition:{ease:P.slideTransitionTimingFunction}},bothIn:function(e){return{opacity:1,x:void 0===e?"0":"next"===e?1e3:-1e3,transition:{ease:P.slideTransitionTimingFunction}}},bothOut:function(e){return{opacity:0,x:"previous"===e?1e3:-1e3,transition:{ease:P.slideTransitionTimingFunction}}},center:{x:0,opacity:1}},V=(n=(t={onSwipedLeft:function(){return b(T)},onSwipedRight:function(){return E(T)},delta:_?500:90,preventDefaultTouchmoveEvent:!0,trackTouch:!0,trackMouse:!1}).trackMouse,i=r.useRef(sI({},sP)),(a=r.useRef(sI({},sL))).current=sI({},sL,t),s=(o=r.useMemo(function(){var e,t,r,o,s,l,u,c;return e=function(e){return i.current=e(i.current,a.current)},t=function(t){t&&"touches"in t&&t.touches.length>
901||e(function(e,n){n.trackMouse&&(document.addEventListener("mousemove",r),document.addEventListener("mouseup",l));var i="touches"in t?t.touches[0]:t,a=sO([i.clientX,i.clientY],n.rotationAngle);return sI({},e,sP,{initial:[].concat(a),xy:a,start:t.timeStamp||0})})},r=function(t){e(function(e,n){if("touches"in t&&t.touches.length>1)return e;var r="touches"in t?t.touches[0]:t,i=sO([r.clientX,r.clientY],n.rotationAngle),a=i[0],o=i[1],s=a-e.xy[0],l=o-e.xy[1],u=Math.abs(s),c=Math.abs(l),d=(t.timeStamp||0)-e.start,h=u>c?s>0?"Right":"Left":l>0?"Down":"Up",f="number"==typeof n.delta?n.delta:n.delta[h.toLowerCase()]||sL.delta;if(u<f&&c<f&&!e.swiping)return e;var p={absX:u,absY:c,deltaX:s,deltaY:l,dir:h,event:t,first:e.first,initial:e.initial,velocity:Math.sqrt(u*u+c*c)/(d||1),vxvy:[s/(d||1),l/(d||1)]};p.first&&n.onSwipeStart&&n.onSwipeStart(p),n.onSwiping&&n.onSwiping(p);var m=!1;return(n.onSwiping||n.onSwiped||"onSwiped"+h in n)&&(m=!0),m&&n.preventDefaultTouchmoveEvent&&n.trackTouch&&t.cancelable&&t.preventDefault(),sI({},e,{first:!1,eventData:p,swiping:!0})})},o=function(t){e(function(e,n){var r;if(e.swiping&&e.eventData){r=sI({},e.eventData,{event:t}),n.onSwiped&&n.onSwiped(r);var i=n["onSwiped"+r.dir];i&&i(r)}else n.onTap&&n.onTap({event:t});return sI({},e,sP,{eventData:r})})},s=function(){document.removeEventListener("mousemove",r),document.removeEventListener("mouseup",l)},l=function(e){s(),o(e)},u=function(e,n){var i=function(){};if(e&&e.addEventListener){var a=[["touchstart",t],["touchmove",r],["touchend",o]];a.forEach(function(t){var r=t[0],i=t[1];return e.addEventListener(r,i,{passive:n})}),i=function(){return a.forEach(function(t){var n=t[0],r=t[1];return e.removeEventListener(n,r)})}}return i},c={ref:function(t){null!==t&&e(function(e,n){if(e.el===t)return e;var r={};return e.el&&e.el!==t&&e.cleanUpTouch&&(e.cleanUpTouch(),r.cleanUpTouch=void 0),n.trackTouch&&t&&(r.cleanUpTouch=u(t,!n.preventDefaultTouchmoveEvent)),sI({},e,{el:t},r)})}},n&&(c.onMouseDown=t),[c,u]},[n]))[0],l=o[1],i.current=(u=i.current,c=a.current,d={},!c.trackTouch&&u.cleanUpTouch?(u.cleanUpTouch(),d.cleanUpTouch=void 0):c.trackTouch&&!u.cleanUpTouch&&u.el&&(d.cleanUpTouch=l(u.el,!c.preventDefaultTouchmoveEvent)),sI({},u,d)),s),z=sR(function(e){e>0?b(T):e<0&&E(T)},150);(0,r.useEffect)(function(){if(!_&&!P.disableWheelControls){var e=sz(document,"wheel",function(e){return z(e.deltaY)});return function(){e()}}},[z,_,P.disableWheelControls]),(0,r.useEffect)(function(){var e=function(e){!h.current||e.target.classList.contains("SRLImage")||e.target.classList.contains("SRLPanzoomImage")||e.target.classList.contains("SRLNextButton")||e.target.classList.contains("SRLPrevButton")||e.target.classList.contains("SRLCloseButton")||e.target.classList.contains("SRLAutoplayButton")||e.target.classList.contains("SRLExpandButton")||e.target.classList.contains("SRLZoomOutButton")||e.target.classList.contains("SRLDownloadButton")||e.target.classList.contains("SRLThumbnailsButton")||e.target.classList.contains("SRLCaptionContainer")||e.target.classList.contains("SRLCaptionText")||e.target.classList.contains("SRLCustomCaption")||e.target.classList.contains("SRLThumbnails")||e.target.classList.contains("SRLThumb")||e.target.classList.contains("SRLCaption")||e.target.classList.contains("react-transform-component")||e.target.classList.contains("react-transform-element")||"touchstart"===e.type||0!==e.button||f(e)};return"undefined"!=typeof window&&(document.addEventListener("mousedown",e),document.addEventListener("touchstart",e)),function(){"undefined"!=typeof window&&(document.removeEventListener("mousedown",e),document.removeEventListener("touchstart",e))}},[h=M,f=function(){return y()}]);var q={captionAlignment:S.caption.captionAlignment,captionColor:S.caption.captionColor,captionContainerPadding:S.caption.captionContainerPadding,captionFontFamily:S.caption.captionFontFamily,captionFontSize:S.caption.captionFontSize,captionFontStyle:S.caption.captionFontStyle,captionFontWeight:S.caption.captionFontWeight,captionTextTransform:S.caption.captionTextTransform};return r.createElement(ua,{className:"SRLContainer",ref:M,thumbnailsPosition:O.thumbnailsPosition,showCaption:R.showCaption,hideThumbnails:x},r.createElement(sK,ep({thumbnailsPosition:O.thumbnailsPosition,showThumbnails:O.showThumbnails,hideThumbnails:x,showCaption:R.showCaption,className:"SRLElementContainer",captionDivSizes:D,thumbnailsDivSizes:N},V),r.createElement(sh,{className:"SRLAnimatePresence",custom:m},r.createElement(s$,{variants:U,custom:m,initial:"slide"===P.slideAnimationType?"slideIn":"both"===P.slideAnimationType?"bothIn":"fadeIn",animate:"center",exit:"slide"===P.slideAnimationType?"slideOut":"both"===P.slideAnimationType?"bothOut":"fadeOut",className:"SRLElementWrapper",key:T||0,transition:{x:{type:"spring",stiffness:P.slideSpringValues[0],damping:P.slideSpringValues[1]},opacity:{duration:P.slideTransitionSpeed}}},r.createElement(lK,{disablePanzoom:P.disablePanzoom,panzoomEnabled:_,handlePanzoom:A,containerRef:M,imgHeight:w,imgWidth:L,src:C,caption:p,boxSh
90adow:P.boxShadow})))),R.showCaption&&r.createElement(sk,{id:T,thumbnailsPosition:O.thumbnailsPosition,captionOptions:q,caption:p,SRLCaptionRef:I}),O.showThumbnails&&!x&&r.createElement(s_,{handleCurrentElement:v,thumbnails:O,currentId:T,elements:g||[],SRLThumbnailsRef:k}))}uo.propTypes={caption:Z.string,direction:Z.string,elements:Z.array,handleCloseLightbox:Z.func,handleCurrentElement:Z.func,handleNextElement:Z.func,handlePanzoom:Z.func,handlePrevElement:Z.func,height:Z.oneOfType([Z.number,Z.string]),hideThumbnails:Z.bool,id:Z.string,options:Z.shape({settings:Z.shape({boxShadow:Z.string,disablePanzoom:Z.bool,disableWheelControls:Z.bool,slideAnimationType:Z.string,slideSpringValues:Z.array,slideTransitionSpeed:Z.number,slideTransitionTimingFunction:Z.oneOfType([Z.string,Z.array])}),caption:Z.shape({captionAlignment:Z.string,captionColor:Z.string,captionFontFamily:Z.string,captionFontSize:Z.string,captionFontStyle:Z.string,captionFontWeight:Z.oneOfType([Z.number,Z.string]),captionContainerPadding:Z.string,captionTextTransform:Z.string,showCaption:Z.bool}),thumbnails:Z.shape({showThumbnails:Z.bool,thumbnailsOpacity:Z.number,thumbnailsPosition:Z.string,thumbnailsSize:Z.array})}),panzoomEnabled:Z.bool,showControls:Z.bool,source:Z.oneOfType([Z.string,Z.object]),SRLCaptionRef:Z.object,SRLThumbnailsRef:Z.object,thumbnailsOpacity:Z.number,type:Z.string,width:Z.oneOfType([Z.number,Z.string])};var us,ul,uu=tq.button(l$||(l$=em(["\n  position: absolute;\n  height: ",";\n  width: ",";\n  transition: color 0.3s ease;\n  background-color: ",";\n  border: 0;\n  border-radius: 0;\n  box-shadow: none;\n  cursor: pointer;\n  margin: 0;\n  padding: 0;\n  visibility: inherit;\n  z-index: 9998;\n  opacity: 1;\n  transition: opacity 0.3s ease;\n  display: flex;\n  align-items: center;\n  align-content: center;\n  justify-content: center;\n\n  .SRLIdle & {\n    opacity: 0;\n\n    @media (max-width: 768px) {\n      opacity: 1;\n    }\n\n    @media (max-width: 360px) {\n      opacity: 1;\n    }\n  }\n\n  &:focus {\n    outline: none;\n  }\n\n  @media (max-width: 768px) {\n    height: ",";\n    width: ",";\n\n    .SRLIdle & {\n      opacity: 1;\n    }\n  }\n\n  div {\n    height: ",";\n    width: ",";\n    padding: ",";\n    box-sizing: border-box;\n    display: flex;\n    align-items: center;\n\n    @media only screen and (min-device-width: 768px) and (max-device-width: 1024px) and (-webkit-min-device-pixel-ratio: 2) {\n      padding: 10px;\n      height: ",";\n      width: ",";\n    }\n\n    @media only screen and (min-device-width: 1024px) and (max-device-width: 1366px) {\n      padding: 10px;\n      height: ",";\n      width: ",";\n    }\n\n    @media (max-width: 768px) {\n      padding: 10px;\n      height: ",";\n      width: ",";\n\n      .SRLIdle & {\n        opacity: 1;\n      }\n    }\n\n    svg {\n      display: block;\n      height: 100%;\n      width: 100%;\n      overflow: visible;\n      position: relative;\n      path {\n        transition: fill 0.3s ease;\n        fill: ",";\n      }\n    }\n    &:hover {\n      svg path {\n        fill: ",";\n      }\n    }\n  }\n"])),function(e){return e.buttonsSize?e.buttonsSize:"30px"},function(e){return e.buttonsSize?e.buttonsSize:"30px"},function(e){return e.buttonsBackgroundColor?e.buttonsBackgroundColor:"rgba(30, 30, 36, 0.8)"},function(e){return e.buttonsSize?Math.round(parseInt(e.buttonsSize,10)/1.2)+"px":"30px"},function(e){return e.buttonsSize?Math.round(parseInt(e.buttonsSize,10)/1.2)+"px":"30px"},function(e){return e.buttonsSize?e.buttonsSize:"30px"},function(e){return e.buttonsSize?e.buttonsSize:"30px"},function(e){return e.buttonsIconPadding?e.buttonsIconPadding:"5px"},function(e){return e.buttonsSize?Math.round(parseInt(e.buttonsSize,10)/1)+"px":"30px"},function(e){return e.buttonsSize?Math.round(parseInt(e.buttonsSize,10)/1)+"px":"30px"},function(e){return e.buttonsSize?Math.round(parseInt(e.buttonsSize,10)/1)+"px":"30px"},function(e){return e.buttonsSize?Math.round(parseInt(e.buttonsSize,10)/1)+"px":"30px"},function(e){return e.buttonsSize?Math.round(parseInt(e.buttonsSize,10)/1.1)+"px":"30px"},function(e){return e.buttonsSize?Math.round(parseInt(e.buttonsSize,10)/1.1)+"px":"30px"},function(e){return e.buttonsIconColor?e.buttonsIconColor:"rgba(255, 255, 255, 0.8)"},function(e){return e.buttonsIconColor&&e.buttonsIconColor.replace(/[\d\.]+\)$/g,"1)")}),uc=tq.div(lW||(lW=em(['\n  position: absolute;\n  top: 5px;\n  right: 5px;\n  top: calc(env(safe-area-inset-top) + 5px);\n  right: calc(env(safe-area-inset-right) + 5px);\n  display: flex;\n  flex-direction: row;\n  flex-wrap: wrap;\n  transition: 0.3s ease;\n  will-change: right;\n\n  /* Offset the buttons if the progress bar is active and the autoplay is "playing" */\n  ',";\n\n  /* Offset the buttons if the thumbnails are on the right */\n  ",";\n\n  /* Thumbnails on right are closed so we need to reset the position */\n  ",";\n\n  @media (max-width: 768px) {\n    right: 5px;\n    right: calc(env(safe-area-inset-right) + 5px) !important;\n  }\n"])),function(e){return e.showProgressBar&&e.autoplay&&tP(lZ||(lZ=em(["\n      top: ","px;\n      top: calc(\n        env(safe-area-inset-top) +\n          ","px\n      );\n    "])),2*Math.round(parseInt(e.buttonsOffsetFromProgressBar,10)),2*Math.round(parseInt(e.buttonsOffsetFromProgressBar,10)))},function(e){return"right"===e.thumbnailsPosition&&tP(lY||(lY=em(["\n      right: ","px;\n      right: calc(\n        env(safe-area-inset-top) + ","px\n      );\n    "])),e.thumbnailsDivSizes.width+5,e.thumbnailsDivSizes.width+5)},function(e){return e.hideThumbnails&&"right"===e.thumbnailsPosition&&tP(lX||(lX=em(["\n      right: 5px;\n      right: calc(env(safe-area-inset-right) + 5px);\n    "])))}),ud=tq(uu)(lJ||(lJ=em(["\n  position: relative;\n"]))),uh=tq(uu)(l0||(l0=em(["\n  position: relative;\n  margin-right: 5px;\n\n  @media (max-width: 768px) {\n    display: none;\n  }\n"]))),uf=tq(uu)(l1||(l1=em(["\n  position: relative;\n  margin-right: 5px;
90\n"]))),up=tq(uu)(l2||(l2=em(["\n  position: relative;\n  margin-right: 5px;\n  display: ",";\n"])),function(e){return 0===e.autoplaySpeed?"none":"flex"}),um=tq(uu)(l3||(l3=em(["\n  position: relative;\n  margin-right: 5px;\n\n  ","\n\n  ","\n\n  @media (max-width: 768px) {\n    svg {\n      transform: rotate(0) !important;\n    }\n  }\n"])),function(e){return"right"===e.thumbnailsPosition&&tP(l4||(l4=em(["\n      svg {\n        transform: rotate(-90deg);\n      }\n    "])))},function(e){return"left"===e.thumbnailsPosition&&tP(l5||(l5=em(["\n      svg {\n        transform: rotate(90deg);\n      }\n    "])))}),ug=tq(uu)(l8||(l8=em(["\n  position: relative;\n  margin-right: 5px;\n"]))),uv=tq(uu)(l6||(l6=em(["\n  top: calc(50% - 50px);\n  right: 5px;\n  right: calc(env(safe-area-inset-right) + 5px);\n  transition: 0.3s ease;\n  will-change: right;\n\n  /* Offset the thumbnails with the width of the div of the thumbnails */\n  ",";\n\n  /* Thumbnails on right are closed so we need to reset the position */\n  ",";\n\n  @media (max-width: 768px) {\n    display: none;\n  }\n"])),function(e){return"right"===e.thumbnailsPosition&&tP(l9||(l9=em(["\n      right: ","px;\n      right: calc(\n        env(safe-area-inset-right) + ","px\n      );\n    "])),e.thumbnailsDivSizes.width+5,e.thumbnailsDivSizes.width+5)},function(e){return e.hideThumbnails&&"right"===e.thumbnailsPosition&&tP(l7||(l7=em(["\n      right: 5px;\n      right: calc(env(safe-area-inset-right) + 5px);\n    "])))}),uy=tq(uu)(ue||(ue=em(["\n  top: calc(50% - 50px);\n  left: 5px;\n  left: calc(env(safe-area-inset-left) + 5px);\n  transition: 0.3s ease;\n  will-change: left;\n\n  /* Offset the thumbnails with the width of the div of the thumbnails */\n  ",";\n\n  /* Thumbnails on left are closed so we need to reset the position */\n  ",";\n\n  @media (max-width: 768px) {\n    display: none;\n  }\n"])),function(e){return"left"===e.thumbnailsPosition&&tP(ut||(ut=em(["\n      left: ","px;\n      left: calc(\n        env(safe-area-inset-right) + ","px\n      );\n    "])),e.thumbnailsDivSizes.width+5,e.thumbnailsDivSizes.width+5)},function(e){return e.hideThumbnails&&"left"===e.thumbnailsPosition&&tP(un||(un=em(["\n      left: 5px;\n      left: calc(env(safe-area-inset-right) + 5px);\n    "])))}),ub=function(e){var t=e.autoplay,n=e.buttons,i=e.buttonsOffsetFromProgressBar,a=e.currentElementID,o=e.handleCloseLightbox,s=e.handleFullScreen,l=e.handleImageDownload,u=e.handleNextElement,c=e.handlePanzoom,d=e.handlePrevElement,h=e.handleThumbnails,f=e.hideThumbnails,p=e.panzoomEnabled,m=e.setAutoplay,g=e.settings,v=e.showProgressBar,y=e.showThumbnails,b=e.SRLThumbnailsRef,A=e.thumbnailsPosition,E=e.thumbnailsSize,w=J(sQ(b),1)[0];return r.createElement(r.Fragment,null,r.createElement(uc,{className:"SRLControls",autoplay:t,showProgressBar:v,buttonsOffsetFromProgressBar:i,thumbnailsPosition:A,thumbnailsDivSizes:w,thumbnailsSize:E,hideThumbnails:f},n.showAutoplayButton&&r.createElement(up,{buttonsBackgroundColor:n.backgroundColor,buttonsIconColor:n.iconColor,buttonsSize:n.size,buttonsIconPadding:n.iconPadding,autoplaySpeed:g.autoplaySpeed,title:t?"Pause":"Play",className:"SRLAutoplayButton",onClick:function(){return m(!t)}},r.createElement("div",{className:"SRLAutoplayButton"},t?r.createElement("svg",{className:"SRLAutoplayButton",xmlns:"http://www.w3.org/2000/svg",viewBox:"11 11 30 30"},r.createElement("path",{className:"SRLAutoplayButton",d:"M14.2 38.7h5.9c1.6 0 2.9-1.3 2.9-2.9V14.2c0-1.6-1.3-2.9-2.9-2.9h-5.9c-1.6 0-2.9 1.3-2.9 2.9v21.6c0 1.6 1.3 2.9 2.9 2.9zm-1-24.5c0-.5.4-1 1-1h5.9c.5 0 1 .4 1 1v21.6c0 .5-.4 1-1 1h-5.9c-.5 0-1-.4-1-1V14.2zm16.7 24.5h5.9c1.6 0 2.9-1.3 2.9-2.9V14.2c0-1.6-1.3-2.9-2.9-2.9h-5.9c-1.6 0-2.9 1.3-2.9 2.9v21.6c0 1.6 1.3 2.9 2.9 2.9zm-1-24.5c0-.5.4-1 1-1h5.9c.5 0 1 .4 1 1v21.6c0 .5-.4 1-1 1h-5.9c-.5 0-1-.4-1-1V14.2z"})):r.createElement("svg",{className:"SRLAutoplayButton",xmlns:"http://www.w3.org/2000/svg",viewBox:"11 11 30 30"},r.createElement("path",{className:"SRLAutoplayButton",d:"M35.7 22.8L16.9 11.6c-1.5-.9-3.9 0-3.9 2.2v22.3c0 2 2.2 3.2 3.9 2.2l18.9-11.1c1.6-1 1.6-3.4-.1-4.4zm-.8 2.9L16 36.9c-.6.3-1.3-.1-1.3-.7V13.8c0-.9.9-1 1.3-.7l18.9 11.1c.5.4.5 1.2 0 1.5z"})))),n.showThumbnailsButton&&y&&r.createElement(um,{buttonsBackgroun
90dColor:n.backgroundColor,buttonsIconColor:n.iconColor,buttonsSize:n.size,buttonsIconPadding:n.iconPadding,thumbnailsPosition:A,onClick:h,title:f?"Show Thumbnails":"Hide Thumbnails",className:"SRLThumbnailsButton"},r.createElement("div",{className:"SRLThumbnailsButton"},r.createElement("svg",{className:"SRLThumbnailsButton",xmlns:"http://www.w3.org/2000/svg",viewBox:"11 11 30 30"},r.createElement("g",{fill:"#fff",className:"SRLThumbnailsButton"},r.createElement("path",{className:"SRLThumbnailsButton",d:"M15.4 27.4h-4.8c-1.3 0-2.4 1.1-2.4 2.4v4.8c0 1.3 1.1 2.4 2.4 2.4h4.8c1.3 0 2.4-1.1 2.4-2.4v-4.8c0-1.3-1.1-2.4-2.4-2.4zm12 0h-4.8c-1.3 0-2.4 1.1-2.4 2.4v4.8c0 1.3 1.1 2.4 2.4 2.4h4.8c1.3 0 2.4-1.1 2.4-2.4v-4.8c0-1.3-1.1-2.4-2.4-2.4zm12 0h-4.8c-1.3 0-2.4 1.1-2.4 2.4v4.8c0 1.3 1.1 2.4 2.4 2.4h4.8c1.3 0 2.4-1.1 2.4-2.4v-4.8c0-1.3-1.1-2.4-2.4-2.4z",opacity:".4"}),r.createElement("path",{className:"SRLThumbnailsButton",d:"M39.4 13h-4.8c-1.3 0-2.4 1.1-2.4 2.4v4.8c0 1.3 1.1 2.4 2.4 2.4h4.8c1.3 0 2.4-1.1 2.4-2.4v-4.8c0-1.3-1.1-2.4-2.4-2.4zm-24 0h-4.8c-1.3 0-2.4 1.1-2.4 2.4v4.8c0 1.3 1.1 2.4 2.4 2.4h4.8c1.3 0 2.4-1.1 2.4-2.4v-4.8c0-1.3-1.1-2.4-2.4-2.4zm12 0h-4.8c-1.3 0-2.4 1.1-2.4 2.4v4.8c0 1.3 1.1 2.4 2.4 2.4h4.8c1.3 0 2.4-1.1 2.4-2.4v-4.8c0-1.3-1.1-2.4-2.4-2.4z"}))))),n.showDownloadButton&&r.createElement(ug,{buttonsBackgroundColor:n.backgroundColor,buttonsIconColor:n.iconColor,buttonsSize:n.size,buttonsIconPadding:n.iconPadding,title:"Download image",className:"SRLDownloadButton",onClick:l},r.createElement("div",{className:"SRLDownloadButton"},r.createElement("svg",{className:"SRLDownloadButton",xmlns:"http://www.w3.org/2000/svg",viewBox:"11 11 30 30"},r.createElement("path",{className:"SRLDownloadButton",d:"M35.7 34.1c0 .6-.5 1-1.1 1-.6 0-1.1-.5-1.1-1s.5-1 1.1-1c.6 0 1.1.5 1.1 1zm-4.6-1c-.6 0-1.1.5-1.1 1s.5 1 1.1 1c.6 0 1.1-.5 1.1-1s-.5-1-1.1-1zm7.8-2.5V36c0 1.3-1.1 2.3-2.4 2.3h-23c-1.3 0-2.4-1-2.4-2.3v-5.4c0-1.3 1.1-2.3 2.4-2.3h5.4l-3.1-2.9c-1.4-1.3-.4-3.5 1.5-3.5h2.9v-8.1c0-1.1 1-2.1 2.2-2.1h5.2c1.2 0 2.2.9 2.2 2.1v8.1h2.9c1.9 0 2.9 2.2 1.5 3.5l-3.1 2.9h5.4c1.3 0 2.4 1 2.4 2.3zm-14.2.9c.2.2.4.2.6 0l7.6-7.3c.3-.3.1-.7-.3-.7H28v-9.7c0-.2-.2-.4-.4-.4h-5.2c-.2 0-.4.2-.4.4v9.7h-4.6c-.4 0-.6.4-.3.7l7.6 7.3zm12.5-.9c0-.3-.3-.6-.7-.6h-7.1l-2.8 2.7c-.8.8-2.2.8-3.1 0L20.6 30h-7.1c-.4 0-.7.3-.7.6V36c0 .3.3.6.7.6h23c.4 0 .7-.3.7-.6v-5.4z"})))),p?r.createElement(uf,{buttonsBackgroundColor:n.backgroundColor,buttonsIconColor:n.iconColor,buttonsSize:n.size,buttonsIconPadding:n.iconPadding,title:"Zoom out",className:"SRLZoomOutButton",onClick:function(){return c(!1)}},r.createElement("div",{className:"SRLZoomOutButton"},r.createElement("svg",{className:"SRLZoomOutButton",xmlns:"http://www.w3.org/2000/svg",viewBox:"11 11 30 30"},r.createElement("path",{className:"SRLZoomOutButton",d:"M27.9 21.6v1.3c0 .4-.3.7-.7.7h-10c-.4 0-.7-.3-.7-.7v-1.3c0-.4.3-.7.7-.7h10c.4 0 .7.3.7.7zm10.7 15.8l-1.2 1.2c-.3.3-.7.3-.9 0L29.9 32c-.1-.1-.2-.3-.2-.5v-.7c-2 1.7-4.6 2.8-7.4 2.8C16 33.6 11 28.5 11 22.3s5-11.4 11.3-11.4S33.6 16 33.6 22.3c0 2.8-1 5.4-2.8 7.4h.7c.2 0 .3.1.5.2l6.6 6.6c.3.2.3.6 0 .9zM31 22.3c0-4.8-3.9-8.7-8.7-8.7s-8.7 3.9-8.7 8.7 3.9 8.7 8.7 8.7 8.7-3.9 8.7-8.7z"})))):"",n.showFullscreenButton&&r.createElement(uh,{buttonsBackgroundColor:n.backgroundColor,buttonsIconColor:n.iconColor,buttonsSize:n.size,buttonsIconPadding:n.iconPadding,title:"Enter fullscreen",className:"SRLExpandButton",onClick:s},r.createElement("div",{className:"SRLExpandButton"},r.createElement("svg",{className:"SRLExpandButton",xmlns:"http://www.w3.org/2000/svg",viewBox:"11 11 30 30"},r.createElement("path",{className:"SRLExpandButton",d:"M11.22 20.66v-7.91a1.52 1.52 0 011.53-1.53h7.91a.76.76 0 01.76.76v1.53a.77.77 0 01-.76.77h-6.38v6.38a.77.77 0 01-.77.76H12a.76.76 0 01-.78-.76zM29.58 12v1.53a.78.78 0 00.77.77h6.38v6.38a.76.76 0 00.76.76H39a.77.77 0 00.77-.76v-7.93a1.52 1.52 0 00-1.53-1.53h-7.89a.77.77 0 00-.77.78zM39 29.58h-1.51a.77.77 0 00-.76.77v6.38h-6.38a.77.77 0 00-.77.76V39a.78.78 0 00.77.77h7.91a1.52 1.52 0 001.53-1.53v-7.89a.78.78 0 00-.79-.77zM21.42 39v-1.51a.76.76 0 00-.76-.76h-6.38v-6.38a.78.78 0 00-.77-.77H12a.77.77 0 00-.76.77v7.91a1.52 1.52 0 001.53 1.53h7.91a.77.7
907 0 00.74-.79z"})))),n.showCloseButton&&r.createElement(ud,{buttonsBackgroundColor:n.backgroundColor,buttonsIconColor:n.iconColor,buttonsSize:n.size,buttonsIconPadding:n.iconPadding,title:"Close",className:"SRLCloseButton",onClick:function(){return o()}},r.createElement("div",{className:"SRLCloseButton"},r.createElement("svg",{className:"SRLCloseButton",xmlns:"http://www.w3.org/2000/svg",viewBox:"11 11 30 30"},r.createElement("path",{className:"SRLCloseButton",d:"M27.92 25l8.84-8.84 1.82-1.82c.27-.27.27-.71 0-.97l-1.95-1.95a.682.682 0 0 0-.97 0L25 22.08 14.34 11.42a.682.682 0 0 0-.97 0l-1.95 1.95c-.27.27-.27.71 0 .97L22.08 25 11.42 35.66c-.27.27-.27.71 0 .97l1.95 1.95c.27.27.71.27.97 0L25 27.92l8.84 8.84 1.82 1.82c.27.27.71.27.97 0l1.95-1.95c.27-.27.27-.71 0-.97L27.92 25z"}))))),n.showNextButton&&r.createElement(uv,{buttonsBackgroundColor:n.backgroundColor,buttonsIconColor:n.iconColor,buttonsSize:n.size,buttonsIconPadding:n.iconPadding,thumbnailsPosition:A,thumbnailsDivSizes:w,thumbnailsSize:E,hideThumbnails:f,title:"Next",className:"SRLNextButton",onClick:function(){return u(a)}},r.createElement("div",{className:"SRLNextButton"},r.createElement("svg",{className:"SRLNextButton",xmlns:"http://www.w3.org/2000/svg",viewBox:"11 11 30 30"},r.createElement("path",{className:"SRLPrevButton",d:"M24.53 11.36l-.44.44c-.29.29-.29.76 0 1.05l11.09 11.09H11.83c-.41 0-.75.33-.75.75v.62c0 .41.33.75.75.75h23.35L24.09 37.14c-.29.29-.29.76 0 1.05l.44.44c.29.29.76.29 1.05 0l13.11-13.11c.29-.29.29-.76 0-1.05l-13.1-13.11a.754.754 0 0 0-1.06 0z"})))),n.showPrevButton&&r.createElement(uy,{buttonsBackgroundColor:n.backgroundColor,buttonsIconColor:n.iconColor,buttonsSize:n.size,buttonsIconPadding:n.iconPadding,title:"Previous",className:"SRLPrevButton",thumbnailsPosition:A,thumbnailsDivSizes:w,thumbnailsSize:E,hideThumbnails:f,onClick:function(){return d(a)}},r.createElement("div",{className:"SRLPrevButton"},r.createElement("svg",{className:"SRLPrevButton",xmlns:"http://www.w3.org/2000/svg",viewBox:"11 11 30 30"},r.createElement("path",{className:"SRLPrevButton",d:"M25.47 38.64l.44-.44c.29-.29.29-.76 0-1.05L14.82 26.06h23.35c.41 0 .75-.33.75-.75v-.62c0-.41-.33-.75-.75-.75H14.82l11.09-11.09c.29-.29.29-.76 0-1.05l-.44-.44a.742.742 0 0 0-1.05 0L11.31 24.47c-.29.29-.29.76 0 1.05l13.11 13.11c.29.3.76.3 1.05.01z"})))))};
90ub.propTypes={autoplay:Z.bool,buttons:Z.shape({backgroundColor:Z.string,iconColor:Z.string,iconPadding:Z.string,showAutoplayButton:Z.bool,showCloseButton:Z.bool,showDownloadButton:Z.bool,showFullscreenButton:Z.bool,showNextButton:Z.bool,showPrevButton:Z.bool,showThumbnailsButton:Z.bool,size:Z.string}),hideThumbnails:Z.bool,buttonsOffsetFromProgressBar:Z.string,currentElementID:Z.string,handleCloseLightbox:Z.func,handleFullScreen:Z.func,handleImageDownload:Z.func,handleNextElement:Z.func,handlePanzoom:Z.func,handlePrevElement:Z.func,handleThumbnails:Z.func,panzoomEnabled:Z.bool,setAutoplay:Z.func,settings:Z.shape({autoplaySpeed:Z.number}),showProgressBar:Z.bool,showThumbnails:Z.bool,thumbnailsPosition:Z.string,SRLThumbnailsRef:Z.object,thumbnailsSize:Z.array};var uA=tq.div(us||(us=em(["\n  width: 100%;\n  height: ",";\n  background-color: ",";\n  position: fixed;\n  top: 0;\n  left: 0;\n  z-index: 9999;\n"])),function(e){return e.barHeight},function(e){return e.backgroundColor}),uE=tq.div(ul||(ul=em(["\n  height: ",";\n  width: 100%;\n  background-color: ",";\n  position: absolute;\n  top: 0;\n  left: 0;\n  transform: scaleX(0);\n  transform-origin: 0;\n"])),function(e){return e.barHeight},function(e){return e.fillColor}),uw=function(e){var t=e.autoplay,n=e.autoplaySpeed,i=e.progressBar,a=e.currentElementID,o=J((0,r.useState)(!1),2),s=o[0],l=o[1];return(0,r.useEffect)(function(){l(!1)},[a]),sq(function(){l(!0)},t?n/100:null,a),r.createElement(uA,{barHeight:i.height,backgroundColor:i.backgroundColor,className:"SRLProgressBar"},r.createElement(uE,{barHeight:i.height,fillColor:i.fillColor,style:{transform:"scaleX(".concat(s?1:0,")"),transitionDuration:"".concat(s?n+"ms":"0ms")}}))};function ux(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];e&&e.addEventListener&&e.addEventListener.apply(e,t)}function uT(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];e&&e.removeEventListener&&e.removeEventListener.apply(e,t)}uw.propTypes={autoplay:Z.bool,autoplaySpeed:Z.number,currentElementID:Z.string,progressBar:Z.shape({backgroundColor:Z.string,fillColor:Z.string,height:Z.string})};var uS=["mousemove","mousedown","resize","keydown","touchstart","wheel"],u_=function(e,t,n){void 0===e&&(e=6e4),void 0===t&&(t=!1),void 0===n&&(n=uS);var i=(0,r.useState)(t),a=i[0],o=i[1];return(0,r.useEffect)(function(){for(var t,r=!0,i=a,s=function(e){r&&(i=e,o(e))},l=function(e,t,n,r){var i,a=!1,o=0;function s(){i&&clearTimeout(i)}function l(){for(var l=arguments.length,u=Array(l),c=0;c<l;c++)u[c]=arguments[c];var d=this,h=Date.now()-o;function f(){o=Date.now(),n.apply(d,u)}a||(r&&!i&&f(),s(),void 0===r&&h>e?f():!0!==t&&(i=setTimeout(r?function(){i=void 0}:f,void 0===r?e-h:e)))}return"boolean"!=typeof t&&(r=n,n=t,t=void 0),l.cancel=function(){s(),a=!0},l}(50,function(){i&&s(!1),clearTimeout(t),t=setTimeout(function(){return s(!0)},e)}),u=function(){document.hidden||l()},c=0;c<n.length;c++)ux(window,n[c],l);return ux(document,"visibilitychange",u),t=setTimeout(function(){return s(!0)},e),function(){r=!1;for(var e=0;e<n.length;e++)uT(window,n[e],l);uT(document,"visibilitychange",u)}},[e,n]),a},uC=!1;if("undefined"!=typeof window){var uk={get passive(){uC=!0}};window.addEventListener("testPassive",null,uk),window.removeEventListener("testPassive",null,uk)}var uI="undefined"!=typeof window&&window.navigator&&window.navigator.platform&&(/iP(ad|hone|od)/.test(window.navigator.platform)||"MacIntel"===window.navigator.platform&&window.navigator.maxTouchPoints>1),uL=[],uP=!1,uO=-1,uR=void 0,uD=void 0,uN=function(e){return uL.some(function(t){return!(!t.options.allowTouchMove||!t.options.allowTouchMove(e))})},uM=function(e){var t=e||window.event;return!!uN(t.target)||t.touches.length>1||(t.preventDefault&&t.preventDefault(),!1)},uj=function(e,t){e?!uL.some(function(t){return t.targetElement===e})&&(uL=[].concat(function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}(uL),[{targetElement:e,options:t||{}}]),uI?(e.ontouchstart=function(e){1===e.targetTouches.length&&(uO=e.targetTouches[0].clientY)},e.ontouchmove=function(t){var n;1===t.targetTouches.length&&(n=t.targetTouches[0].clientY-uO,uN(t.target)||(e&&0===e.scrollTop&&n>0||e&&e.scrollHeight-e.scrollTop<=e.clientHeight&&n<0?uM(t):t.stopPropagation()))},uP||(document.addEventListener("touchmove",uM,uC?{passive:!1}:void 0),uP=!0)):function(e){if(void 0===uD){var t=!!e&&!0===e.reserveScrollBarGap,n=window.innerWidth-document.documentElement.clientWidth;t&&n>0&&(uD=document.body.style.paddingRight,document.body.style.paddingRight=n+"px")}void 0===uR&&(uR=document.body.style.overflow,document.body.style.overflow="hidden")}(t)):console.error("disableBodyScroll unsuccessful - targetElement must be provided when calling disableBodyScroll on IOS devices.")}
90,uF=function(){uI?(uL.forEach(function(e){e.targetElement.ontouchstart=null,e.targetElement.ontouchmove=null}),uP&&(document.removeEventListener("touchmove",uM,uC?{passive:!1}:void 0),uP=!1),uO=-1):(void 0!==uD&&(document.body.style.paddingRight=uD,uD=void 0),void 0!==uR&&(document.body.style.overflow=uR,uR=void 0)),uL=[]},uB=function(e){var t=e.options,n=e.callbacks,i=e.selectedElement,a=e.elements,o=e.dispatch,s=e.compensateForScrollbar,l=(0,r.useContext)(ei),u=(0,r.useRef)(),c=(0,r.useRef)(),d=(0,r.useRef)(),h=(0,r.useRef)(),f=t.buttons,p=t.settings,m=t.progressBar,g=t.thumbnails,v=n.onCountSlides,y=n.onSlideChange,b=n.onLightboxClosed,A=n.onLightboxOpened,E=(0,r.useCallback)(function(e){if("function"==typeof y)return l.callbacks.onSlideChange(e);console.error('Simple React Lightbox error: you are not passing a function in your "onSlideChange" callback! You are passing a '.concat(sg(y),"."))},[l.callbacks,y]),w=(0,r.useCallback)(function(e){"function"==typeof A?l.callbacks.onLightboxOpened(e):console.error('Simple React Lightbox error: you are not passing a function in your "onLightboxOpened" callback! You are passing a '.concat(sg(A),"."))},[l.callbacks,A]),x=(0,r.useCallback)(function(e){"function"==typeof b?l.callbacks.onLightboxClosed(e):console.error('Simple React Lightbox error: you are not passing a function in your "onLightboxClosed" callback! You are passing a '.concat(sg(b),"."))},[l.callbacks,b]),T=(0,r.useCallback)(function(e){"function"==typeof v?l.callbacks.onCountSlides(e):console.error('Simple React Lightbox error: you are not passing a function in your "onCountSlides" callback! You are passing a '.concat(sg(v),"."))},[l.callbacks,v]),S=J((0,r.useState)(!1),2),_=S[0],C=S[1],k=J((0,r.useState)(!1),2),I=k[0],L=k[1],P=J((0,r.useState)(),2),O=P[0],R=P[1],D=J((0,r.useState)(!1),2),N=D[0],M=D[1],j=u_(p.hideControlsAfter<1e3?9999999:p.hideControlsAfter),F=(0,r.useCallback)(function(e){return ec.exports.findIndex(a,function(t){return t.id===e})},[a]),B=(0,r.useCallback)(function(e,t,n){R(n?"next"===n?"next":"previous"===n?"previous":void 0:e>t?"next":e<t?"previous":void 0)},[]),U=(0,r.useCallback)(function(){M(!N)},[N]),V=(0,r.useCallback)(function(e){p.disablePanzoom||L(e)},[p.disablePanzoom]),z=(0,r.useCallback)(function(e,t,n,r){V(!1),B(e,t,r),o({type:"HANDLE_ELEMENT",element:n})},[B,V,o]),q=(0,r.useCallback)(function(e,t){var n=F(e),r=a[n];z(e,t,r),E({action:"selected",slides:{previous:a[n-1],current:r,next:a[n+1]},index:n})},[a,F,E,z]),Q=(0,r.useCallback)(function(e){var t=F(e),n=a[t-1]||a[a.length-1];z(e,null,n,"previous");var r=t-1==-1?a.length-1:t-1;E({action:"left",slides:{previous:a[r-1],current:n,next:a[r+1]},index:r})},[a,F,E,z]),H=(0,r.useCallback)(function(e){var t=F(e),n=a[t+1]||a[0];z(e,null,n,"next");var r=t+1===a.length?0:t+1;E({action:"right",slides:{previous:a[r-1],current:n,next:a[r+1]},index:r})},[a,F,E,z]),G=(0,r.useCallback)(function(){o({type:"CLOSE_LIGHTBOX"}),x({opened:!1,currentSlide:l.selectedElement})},[o,x,l.selectedElement]);sq(function(){return H(i.id)},_?p.autoplaySpeed:null,i.id);var K=sR(function(e){"ArrowRight"!==e&&"ArrowUp"!==e||H(i.id),"ArrowLeft"!==e&&"ArrowDown"!==e||Q(i.id),"Escape"===e&&G()},300);(0,r.useEffect)(function(){return w({opened:!0,currentSlide:l.selectedElement}),T({totalSlide:l.elements.length}),"undefined"!=typeof window&&(document.body.classList.add("SRLOpened"),document.body.style.marginRight=s+"px",uj(document.getElementsByClassName(".SRLOpened"),{allowTouchMove:function(e){return e.className.includes("SRLThumbnailsContainer")||e.className.includes("SRLThumb")}})),function(){document.body.classList.remove("SRLOpened"),document.body.style.marginRight="0",uF()}},[]),(0,r.useEffect)(function(){return 0===p.hideControlsAfter&&p.hideControlsAfter||(j?null!==d.current&&void 0!==d.current&&d.current.classList.add("SRLIdle"):null!==d.current&&void 0!==d.current&&d.current.classList.contains("SRLIdle")&&d.current.classList.remove("SRLIdle")),void 0===i.id&&o({type:"HANDLE_ELEMENT",element:{source:a[0].source,caption:a[0].caption,id:a[0].id,width:a[0].width,height:a[0].height,type:a[0].type,showControls:a[0].showControls,videoAutoplay:a[0].videoAutoplay,muted:a[0].muted}}),p.disableKeyboardControls||(h.current=sz(document,"keydown",function(e){return K(e.ke
90y)},!1)),function(){p.disableKeyboardControls||h.current()}},[i.id,a,p.disablePanzoom,p.disableKeyboardControls,I,p.hideControlsAfter,j,K,O,l,o,i]);var $={autoplay:_,buttons:f,currentElementID:i.id,direction:O,handleCloseLightbox:G,handleCurrentElement:q,handleFullScreen:function(){var e="";if("undefined"!=typeof window&&(e=document.querySelector("#SRLLightbox")),document.fullscreenElement)document.exitFullscreen();else if(C(!1),null!==e)try{-1!==navigator.userAgent.indexOf("Safari")&&-1===navigator.userAgent.indexOf("Chrome")?e.webkitRequestFullScreen():e.requestFullscreen()}catch(e){console.error(e.message="SRL - ERROR WHEN USING FULLSCREEN API"),console.warn("Sorry, your browser doesn't support this functionality!")}},handleImageDownload:function(){var e;(e=i.source,fetch(e).then(function(e){return e.blob()}).then(function(e){return new Promise(function(t,n){var r=new FileReader;r.onloadend=function(){return t(r.result)},r.onerror=n,r.readAsDataURL(e)})})).then(function(e){var t=document.createElement("a");t.href=e,t.download="".concat(l.options.settings.downloadedFileName,"-").concat(i.id),t.click()})},handleNextElement:H,handlePanzoom:V,handlePrevElement:Q,handleThumbnails:U,hideThumbnails:N,panzoomEnabled:I,setAutoplay:C,settings:p,SRLThumbnailsRef:u,SRLCaptionRef:c},W={buttonsBackgroundColor:f.backgroundColor,buttonsIconColor:f.iconColor,buttonsSize:f.size,buttonsIconPadding:f.iconPadding,buttonsOffsetFromProgressBar:m.height,showProgressBar:m.showProgressBar,translations:l.options.translations,icons:l.options.icons};return r.createElement("div",{ref:d,className:"SRLStage"},m.showProgressBar&&_&&r.createElement(uw,{autoplay:_,autoplaySpeed:p.autoplaySpeed,progressBar:m,currentElementID:i.id}),r.createElement(ub,ep({},W,$,{thumbnailsPosition:g.thumbnailsPosition,thumbnailsSize:g.thumbnailsSize,thumbnailsContainerPadding:g.thumbnailsContainerPadding,showThumbnails:g.showThumbnails,SRLThumbnailsRef:u})),r.createElement(uo,ep({},i,$,{elements:a,options:t})))};function uU(){var e=(0,r.useContext)(ei),t=e.isOpened,n=e.options.settings.usingPreact,i=J((0,r.useState)(0),2),a=i[0],o=i[1],s=(0,r.useRef)();return(0,r.useEffect)(function(){function e(){"undefined"!=typeof window&&(s.current=.01*window.innerHeight,document.documentElement.style.setProperty("--vh","".concat(s.current,"px")))}return e(),window.addEventListener("resize",e),function(){return window.removeEventListener("resize",e)}},[]),(0,r.useEffect)(function(){"undefined"!=typeof window&&document.body.scrollHeight>window.innerHeight&&o(window.innerWidth-document.documentElement.clientWidth)}),n?r.createElement(sm,{selector:"SRLLightbox",isOpened:t},r.createElement(uB,ep({},e,{compensateForScrollbar:a}))):r.createElement(sh,null,t&&r.createElement(sm,{selector:"SRLLightbox",isOpened:t},r.createElement(uB,ep({},e,{compensateForScrollbar:a}))))}uB.propTypes={callbacks:Z.object,compensateForScrollbar:Z.number,elements:Z.array,isOpened:Z.bool,dispatch:Z.func,selectedElement:Z.object,options:Z.shape({thumbnails:Z.shape({thumbnailsContainerPadding:Z.string,thumbnailsPosition:Z.string,thumbnailsSize:Z.array,showThumbnails:Z.bool}),settings:Z.shape({overlayColor:Z.string,autoplaySpeed:Z.number,disableKeyboardControls:Z.bool,disablePanzoom:Z.bool,hideControlsAfter:Z.oneOfType([Z.number,Z.bool])}),buttons:Z.shape({backgroundColor:Z.string,iconColor:Z.string,iconPadding:Z.string,size:Z.string}),progressBar:Z.shape({showProgressBar:Z.bool,background:Z.string,height:Z.string})})},uU.propTypes={context:Z.object};var uV=function(e){var t=e.children;return r.createElement(ea,null,t,r.createElement(uU,null))};uV.propTypes={children:Z.oneOfType([Z.arrayOf(Z.node),Z.node]).isRequired}},6156:function(e,t,n){"use strict";function r(e){return null!==e&&"object"==typeof e&&"constructor"in e&&e.constructor===Object}function i(e,t){void 0===e&&(e={}),void 0===t&&(t={}),Object.keys(t).forEach(function(n){void 0===e[n]?e[n]=t[n]:r(t[n])&&r(e[n])&&Object.keys(t[n]).length>0&&i(e[n],t[n])})}n.d(t,{Jj:function(){return l},Me:function(){return o}});var a={body:{},addEventListener:function(){},removeEventListener:function(){},activeElement:{blur:function(){},nodeName:""},querySelector:function(){return null},querySelectorAll:function(){return[]},getElementById:function(){return null},createEvent:function(){return{initEvent:function(){}}},createElement:function(){return{children:[],childNodes:[],style:{},setAttribute:function(){},getElementsByTagName:function(){return[]}}},createElementNS:function(){return{}},importNode:function(){return null},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};function o(){var e="undefined"!=typeof document?document:{};return i(e,a),e}var s={document:a,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState:function(){},pushState:function(){},go:function(){},back:function(){}},CustomEvent:function(){return this},addEventListener:function(){},removeEventListener:function(){},getComputedStyle:function(){return{getPropertyValue:function(){return""}}},Image:function(){},Date:function(){},screen:{},setTimeout:function(){},clearTimeout:function(){},matchMedia:function(){return{}},requestAnimationFrame:function(e){return"undefined"==typeof setTimeout?(e(),null):setTimeout(e,0)},cancelAnimationFrame:function(e){"undefined"!=typeof setTimeout&&clearTimeout(e)}};function l(){var e="undefined"!=typeof window?window:{};return i(e,s),e}},3920:function(e,t,n){e.exports=function(){"use strict";function e(t){return(e="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})(t)}function t(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
90t%2?r(Object(n),!0).forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function a(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,i=!1,a=void 0;try{for(var o,s=e[Symbol.iterator]();!(r=(o=s.next()).done)&&(n.push(o.value),!t||n.length!==t);r=!0);}catch(e){i=!0,a=e}finally{try{r||null==s.return||s.return()}finally{if(i)throw a}}return n}}(e,t)||s(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(e){return function(e){if(Array.isArray(e))return l(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||s(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(e,t){if(e){if("string"==typeof e)return l(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?l(e,t):void 0}}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function u(e,t){if(!Array.isArray(e)||!e.length)return e;var n,r,a=i(i({},{strictlyTwoElementsInRangeArrays:!1,progressFn:null}),t);if(a.strictlyTwoElementsInRangeArrays&&!e.filter(function(e){return e}).every(function(e,t){return 2===e.length||(n=t,r=e.length,!1)}))throw TypeError("ranges-sort: [THROW_ID_03] The first argument should be an array and must consist of arrays which are natural number indexes representing TWO string index ranges. However, ".concat(n,"th range (").concat(JSON.stringify(e[n],null,4),") has not two but ").concat(r," elements!"));if(!e.filter(function(e){return e}).every(function(e,t){return!(!Number.isInteger(e[0])||e[0]<0||!Number.isInteger(e[1])||e[1]<0)||(n=t,!1)}))throw TypeError("ranges-sort: [THROW_ID_04] The first argument should be an array and must consist of arrays which are natural number indexes representing string index ranges. However, ".concat(n,"th range (").concat(JSON.stringify(e[n],null,4),") does not consist of only natural numbers!"));var o=Math.pow(e.filter(function(e){return e}).length,2),s=0;return Array.from(e).filter(function(e){return e}).sort(function(e,t){return a.progressFn&&(s+=1,a.progressFn(Math.floor(100*s/o))),e[0]===t[0]?e[1]<t[1]?-1:e[1]>t[1]?1:0:e[0]<t[0]?-1:1})}function c(t,n){function r(t){return t&&"object"===e(t)&&!Array.isArray(t)}if(!Array.isArray(t)||!t.length)return null;var a,s={mergeType:1,progressFn:null,joinRangesThatTouchEdges:!0};if(n){if(!r(n))throw Error("emlint: [THROW_ID_03] the second input argument must be a plain object. It was given as:\n".concat(JSON.stringify(n,null,4)," (type ").concat(e(n),")"));if((a=i(i({},s),n)).progressFn&&r(a.progressFn)&&!Object.keys(a.progressFn).length)a.progressFn=null;else if(a.progressFn&&"function"!=typeof a.progressFn)throw Error('ranges-merge: [THROW_ID_01] opts.progressFn must be a function! It was given of a type: "'.concat(e(a.progressFn),'", equal to ').concat(JSON.stringify(a.progressFn,null,4)));if(a.mergeType&&1!=+a.mergeType&&2!=+a.mergeType)throw Error('ranges-merge: [THROW_ID_02] opts.mergeType was customised to a wrong thing! It was given of a type: "'.concat(e(a.mergeType),'", equal to ').concat(JSON.stringify(a.mergeType,null,4)));if("boolean"!=typeof a.joinRangesThatTouchEdges)throw Error('ranges-merge: [THROW_ID_04] opts.joinRangesThatTouchEdges was customised to a wrong thing! It was given of a type: "'.concat(e(a.joinRangesThatTouchEdges),'", equal to ').concat(JSON.stringify(a.joinRangesThatTouchEdges,null,4)))}else a=i({},s);for(var l,c,d,h=t.filter(function(e){return e}).map(function(e){return o(e)}).filter(function(e){return void 0!==e[2]||e[0]!==e[1]}),f=(l=a.progressFn?u(h,{progressFn:function(e){(d=Math.floor(e/5))!==c&&(c=d,a.progressFn(d))}}):u(h)).length-1,p=f;p>0;p--)a.progressFn&&(d=Math.floor(78*(1-p/f))+21)!==c&&d>c&&(c=d,a.progressFn(d)),(l[p][0]<=l[p-1][0]||!a.joinRangesThatTouchEdges&&l[p][0]<l[p-1][1]||a.joinRangesThatTouchEdges&&l[p][0]<=l[p-1][1])&&(l[p-1][0]=Math.min(l[p][0],l[p-1][0]),l[p-1][1]=Math.max(l[p][1],l[p-1][1]),void 0!==l[p][2]&&(l[p-1][0]>=l[p][0]||l[p-1][1]<=l[p][1])&&null!==l[p-1][2]&&(null===l[p][2]&&null!==l[p-1][2]?l[p-1][2]=null:void 0!==l[p-1][2]?2==+a.mergeType&&l[p-1][0]===l[p][0]?l[p-1][2]=l[p][2]:l[p-1][2]+=l[p][2]:l[p-1][2]=l[p][2]),l.splice(p,1),p=l.length);return l.length?l:null}function d(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;function n(e){return Array.from(e).reverse().join("")}function r(e,t,n){var r=n?"\n":"\r",i=n?"\r":"\n";if(!e)return e;for(var a=0,o="",s=0,l=e.length;s<l;s++)(e[s]===r||e[s]===i&&e[s-1]!==r)&&a++,"\r\n".includes(e[s])||"\xa0"===e[s]?"\xa0"===e[s]?o+=e[s]:e[s]===r?a<=t&&(o+=e[s],e[s+1]===i&&(o+=e[s+1],s++)):e[s]===i&&(!e[s-1]||e[s-1]!==r)&&a<=t&&(o+=e[s]):e[s+1]||a||(o+=" ");return o}if("string"==typeof e&&e.length){var i=1;"number"==typeof+t&&Number.isInteger(+t)&&+t>=0&&(i=+t);var a="",o="";if(e.trim()){if(!e[0].trim()){for(var s=0,l=e.length;s<l;s++)if(e[s].trim()){a=e.slice(0,s);break}}}else a=e;if(e.trim()&&(""===e.slice(-1).trim()||"\xa0"===e.slice(-1))){for(var u=e.length;u--;)if(e[u].trim()){o=e.slice(u+1);break}}return"".concat(r(a,i,!1)).concat(e.trim()).concat(n(r(n(o),i,!0)))}return e}function h(e){return null!=e}function f(e){return Number.isInteger(e)&&e>=0}function p(e){return"string"==typeof e}function m(e){return/^\d*$/.test(e)?parseInt(e,10):e}var g,v,y,b,A,E=function(){var n,r;function a(t){!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,a);var n=i(i({},{limitToBeAddedWhitespace:!1,limitLinebreaksCount:1,mergeType:1}),t);if(n.mergeType&&1!==n.mergeType&&2!==n.mergeType){if(p(n.mergeType)&&"1"===n.mergeType.trim())n.mergeType=1;else{if(!p(n.mergeType)||"2"!==n.mergeType.trim())throw Error('ranges-push: [THROW_ID_02] opts.mergeType was customised to a wrong thing! It was given of a type: "'.concat(e(n.mergeType),'", equal to ').concat(JSON.stringify(n.mergeType,null,4)));n.mergeType=2}}this.opts=n}return n=[{key:"add",value:function(t,n,r){for(var i=this,a=arguments.length,s=Array(a>3?a-3:0),l=3;l<a;l++)s[l-3]=arguments[l];if(s.length>0)throw TypeError("ranges-push/Ranges/add(): [THROW_ID_03] Please don't overload the add() method. From the 4th input argument onwards we see these redundant arguments: ".concat(JSON.stringify(s,null,4)));if(h(t)||h(n)){if(h(t)&&!h(n)){if(Array.isArray(t)){if(t.length){if(t.some(function(e){return Array.isArray(e)}))return void t.forEach(function(e){Array.isArray(e)&&i.add.apply(i,o(e))});t.length>
901&&f(m(t[0]))&&f(m(t[1]))&&this.add.apply(this,o(t))}return}throw TypeError('ranges-push/Ranges/add(): [THROW_ID_12] the first input argument, "from" is set ('.concat(JSON.stringify(t,null,0),') but second-one, "to" is not (').concat(JSON.stringify(n,null,0),")"))}if(!h(t)&&h(n))throw TypeError('ranges-push/Ranges/add(): [THROW_ID_13] the second input argument, "to" is set ('.concat(JSON.stringify(n,null,0),') but first-one, "from" is not (').concat(JSON.stringify(t,null,0),")"));var u=/^\d*$/.test(t)?parseInt(t,10):t,c=/^\d*$/.test(n)?parseInt(n,10):n;if(f(r)&&(r=String(r)),!f(u)||!f(c))throw f(u)&&u>=0?TypeError('ranges-push/Ranges/add(): [THROW_ID_10] "to" value, the second input argument, must be a natural number or zero! Currently it\'s of a type "'.concat(e(c),'" equal to: ').concat(JSON.stringify(c,null,4))):TypeError('ranges-push/Ranges/add(): [THROW_ID_09] "from" value, the first input argument, must be a natural number or zero! Currently it\'s of a type "'.concat(e(u),'" equal to: ').concat(JSON.stringify(u,null,4)));if(h(r)&&!p(r)&&!f(r))throw TypeError("ranges-push/Ranges/add(): [THROW_ID_08] The third argument, the value to add, was given not as string but ".concat(e(r),", equal to:\n").concat(JSON.stringify(r,null,4)));if(h(this.ranges)&&Array.isArray(this.last())&&u===this.last()[1]){if(this.last()[1]=c,this.last()[2],null!==this.last()[2]&&h(r)){var g=!(h(this.last()[2])&&this.last()[2].length>0)||this.opts&&this.opts.mergeType&&1!==this.opts.mergeType?r:this.last()[2]+r;this.opts.limitToBeAddedWhitespace&&(g=d(g,this.opts.limitLinebreaksCount)),p(g)&&!g.length||(this.last()[2]=g)}}else{this.ranges||(this.ranges=[]);var v=void 0===r||p(r)&&!r.length?[u,c]:[u,c,this.opts.limitToBeAddedWhitespace?d(r,this.opts.limitLinebreaksCount):r];this.ranges.push(v)}}}},{key:"push",value:function(e,t,n){for(var r=arguments.length,i=Array(r>3?r-3:0),a=3;a<r;a++)i[a-3]=arguments[a];this.add.apply(this,[e,t,n].concat(i))}},{key:"current",value:function(){var e=this;return null!=this.ranges?(this.ranges=c(this.ranges,{mergeType:this.opts.mergeType}),this.ranges&&this.opts.limitToBeAddedWhitespace?this.ranges.map(function(t){return h(t[2])?[t[0],t[1],d(t[2],e.opts.limitLinebreaksCount)]:t}):this.ranges):null}},{key:"wipe",value:function(){this.ranges=void 0}},{key:"replace",value:function(e){if(Array.isArray(e)&&e.length){if(!Array.isArray(e[0])||!f(e[0][0]))throw Error("ranges-push/Ranges/replace(): [THROW_ID_11] Single range was given but we expected array of arrays! The first element, ".concat(JSON.stringify(e[0],null,4)," should be an array and its first element should be an integer, a string index."));this.ranges=Array.from(e)}else this.ranges=void 0}},{key:"last",value:function(){return void 0!==this.ranges&&Array.isArray(this.ranges)?this.ranges[this.ranges.length-1]:null}}],t(a.prototype,n),r&&t(a,r),a}(),w=Object.prototype,x=Function.prototype.toString,T=w.hasOwnProperty,S=x.call(Object),_=w.toString,C=(b=Object.getPrototypeOf,A=Object,function(e){return b(A(e))}),k=function(t){if(!(t&&"object"==e(t))||"[object Object]"!=_.call(t)||function(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(e){}return t}(t))return!1;var n=C(t);if(null===n)return!0;var r=T.call(n,"constructor")&&n.constructor;return"function"==typeof r&&r instanceof r&&x.call(r)==S},I="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==n.g?n.g:"undefined"!=typeof self?self:{},L=/^\s+|\s+$/g,P="[\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0]",O="\ud83c[\udffb-\udfff]",R="[^\ud800-\udfff]",D="(?:\ud83c[\udde6-\uddff]){2}",N="[\ud800-\udbff][\udc00-\udfff]",M="(?:"+P+"|"+O+")?",j="[\\ufe0e\\ufe0f]?",F=j+M+("(?:\\u200d(?:"+[R,D,N].join("|")+")")+j+M+")*",B=RegExp(O+"(?="+O+")|(?:"+[R+P+"?",P,D,N,"[\ud800-\udfff]"].join("|")+")"+F,"g"),U=RegExp("[\\u200d\ud800-\udfff\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0\\ufe0e\\ufe0f]"),V="object"==e(I)&&I&&I.Object===Object&&I,z="object"==("undefined"==typeof self?"undefined":e(self))&&self&&self.Object===Object&&self,q=V||z||Function("return this")();function Q(e,t,n){if(t!=t)return function(e,t,n,r){for(var i=e.length,a=n+(r?1:-1);r?a--:++a<i;)if(t(e[a],a,e))return a;return -1}(e,H,n);for(var r=n-1,i=e.length;++r<i;)if(e[r]===t)return r;return -1}function H(e){return e!=e}function G(e){return U.test(e)?e.match(B)||[]:e.split("")}
90var K=Object.prototype.toString,$=q.Symbol,W=$?$.prototype:void 0,Z=W?W.toString:void 0;function Y(t){if("string"==typeof t)return t;if("symbol"==e(t)||t&&"object"==e(t)&&"[object Symbol]"==K.call(t))return Z?Z.call(t):"";var n=t+"";return"0"==n&&1/t==-1/0?"-0":n}var X=function(e,t,n){if((e=null==(o=e)?"":Y(o))&&(n||void 0===t))return e.replace(L,"");if(!e||!(t=Y(t)))return e;var r,i,a,o,s=G(e),l=G(t);return(r=function(e,t){for(var n=-1,r=e.length;++n<r&&Q(t,e[n],0)>-1;);return n}(s,l),i=function(e,t){for(var n=e.length;n--&&Q(t,e[n],0)>-1;);return n}(s,l)+1,a=s.length,i=void 0===i?a:i,!r&&i>=a?s:function(e,t,n){var r=-1,i=e.length;t<0&&(t=-t>i?0:i+t),(n=n>i?i:n)<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var a=Array(i);++r<i;)a[r]=e[r+t];return a}(s,r,i)).join("")},J="__lodash_hash_undefined__",ee=/^\[object .+?Constructor\]$/,et="object"==e(I)&&I&&I.Object===Object&&I,en="object"==("undefined"==typeof self?"undefined":e(self))&&self&&self.Object===Object&&self,er=et||en||Function("return this")();function ei(e,t){return!!(e?e.length:0)&&function(e,t,n){if(t!=t)return function(e,t,n,r){for(var i=e.length,a=n+(r?1:-1);r?a--:++a<i;)if(t(e[a],a,e))return a;return -1}(e,eo,n);for(var r=n-1,i=e.length;++r<i;)if(e[r]===t)return r;return -1}(e,t,0)>-1}function ea(e,t,n){for(var r=-1,i=e?e.length:0;++r<i;)if(n(t,e[r]))return!0;return!1}function eo(e){return e!=e}function es(e,t){return e.has(t)}var el,eu=Array.prototype,ec=Function.prototype,ed=Object.prototype,eh=er["__core-js_shared__"],ef=(el=/[^.]+$/.exec(eh&&eh.keys&&eh.keys.IE_PROTO||""))?"Symbol(src)_1."+el:"",ep=ec.toString,em=ed.hasOwnProperty,eg=ed.toString,ev=RegExp("^"+ep.call(em).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ey=eu.splice,eb=Math.max,eA=ek(er,"Map"),eE=ek(Object,"create");function ew(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function ex(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function eT(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function eS(e){var t=-1,n=e?e.length:0;for(this.__data__=new eT;++t<n;)this.add(e[t])}function e_(e,t){for(var n,r=e.length;r--;)if((n=e[r][0])===t||n!=n&&t!=t)return r;return -1}function eC(t,n){var r,i=t.__data__;return("string"==(r=e(n))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?i["string"==typeof n?"string":"hash"]:i.map}function ek(e,t){var n=null==e?void 0:e[t];return!(!eL(n)||ef&&ef in n)&&(eI(n)||function(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(e){}return t}(n)?ev:ee).test(function(e){if(null!=e){try{return ep.call(e)}catch(e){}try{return e+""}catch(e){}}return""}(n))?n:void 0}function eI(e){var t=eL(e)?eg.call(e):"";return"[object Function]"==t||"[object GeneratorFunction]"==t}function eL(t){var n=e(t);return!!t&&("object"==n||"function"==n)}ew.prototype.clear=function(){this.__data__=eE?eE(null):{}},ew.prototype.delete=function(e){return this.has(e)&&delete this.__data__[e]},ew.prototype.get=function(e){var t=this.__data__;if(eE){var n=t[e];return n===J?void 0:n}return em.call(t,e)?t[e]:void 0},ew.prototype.has=function(e){var t=this.__data__;return eE?void 0!==t[e]:em.call(t,e)},ew.prototype.set=function(e,t){return this.__data__[e]=eE&&void 0===t?J:t,this},ex.prototype.clear=function(){this.__data__=[]},ex.prototype.delete=function(e){var t=this.__data__,n=e_(t,e);return!(n<0)&&(n==t.length-1?t.pop():ey.call(t,n,1),!0)},ex.prototype.get=function(e){var t=this.__data__,n=e_(t,e);return n<0?void 0:t[n][1]},ex.prototype.has=function(e){return e_(this.__data__,e)>-1},ex.prototype.set=function(e,t){var n=this.__data__,r=e_(n,e);return r<0?n.push([e,t]):n[r][1]=t,this},eT.prototype.clear=function(){this.__data__={hash:new ew,map:new(eA||ex),string:new ew}},eT.prototype.delete=function(e){return eC(this,e).delete(e)},eT.prototype.get=function(e){return eC(this,e).get(e)},eT.prototype.has=function(e){return eC(this,e).has(e)},eT.prototype.set=function(e,t){return eC(this,e).set(e,t),this},eS.prototype.add=eS.prototype.push=function(e){return this.__data__.set(e,J),this},eS.prototype.has=function(e){return this.__data__.has(e)};var eP=(g=function(t,n){var r,i;return t&&"object"==e(t)&&null!=(r=t)&&"number"==typeof(i=r.length)&&i>-1&&i%1==0&&i<=9007199254740991&&!eI(r)?function(e,t,n,r){var i=-1,a=ei,o=!0,s=e.length,l=[],u=t.length;if(!s)return l;n&&(t=function(e,t){for(var n=-1,r=e?e.length:0,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}(t,function(e){return n(e)})),r?(a=ea,o=!1):t.length>=200&&(a=es,o=!1,t=new eS(t));r:for(;++i<s;){var c=e[i],d=n?n(c):c;if(c=r||0!==c?c:0,o&&d==d){for(var h=u;h--;)if(t[h]===d)continue r;l.push(c)}else a(t,d,r)||l.push(c)}return l}(t,n):[]},v=eb(void 0===v?g.length-1:v,0),function(){for(var e=arguments,t=-1,n=eb(e.length-v,0),r=Array(n);++t<n;)r[t]=e[v+t];t=-1;for(var i=Array(v+1);++t<v;)i[t]=e[t];return i[v]=r,function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}(g,this,i)}),eO=/^xn--/,eR=/[^\x20-\x7E]/,eD=/[\x2E\u3002\uFF0E\uFF61]/g,eN={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >
90= 0x80 (not a basic code point)","invalid-input":"Invalid input"},eM=Math.floor,ej=String.fromCharCode;/*! https://mths.be/punycode v1.4.1 by @mathias */function eF(e){throw RangeError(eN[e])}function eB(e,t){for(var n=e.length,r=[];n--;)r[n]=t(e[n]);return r}function eU(e,t){var n=e.split("@"),r="";return n.length>1&&(r=n[0]+"@",e=n[1]),r+eB((e=e.replace(eD,".")).split("."),t).join(".")}function eV(e){for(var t,n,r=[],i=0,a=e.length;i<a;)(t=e.charCodeAt(i++))>=55296&&t<=56319&&i<a?56320==(64512&(n=e.charCodeAt(i++)))?r.push(((1023&t)<<10)+(1023&n)+65536):(r.push(t),i--):r.push(t);return r}function ez(e){return eB(e,function(e){var t="";return e>65535&&(t+=ej((e-=65536)>>>10&1023|55296),e=56320|1023&e),t+=ej(e)}).join("")}function eq(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function eQ(e,t,n){var r=0;for(e=n?eM(e/700):e>>1,e+=eM(e/t);e>455;r+=36)e=eM(e/35);return eM(r+36*e/(e+38))}function eH(e){var t,n,r,i,a,o,s,l,u,c,d,h=[],f=e.length,p=0,m=128,g=72;for((n=e.lastIndexOf("-"))<0&&(n=0),r=0;r<n;++r)e.charCodeAt(r)>=128&&eF("not-basic"),h.push(e.charCodeAt(r));for(i=n>0?n+1:0;i<f;){for(a=p,o=1,s=36;i>=f&&eF("invalid-input"),((l=(d=e.charCodeAt(i++))-48<10?d-22:d-65<26?d-65:d-97<26?d-97:36)>=36||l>eM((2147483647-p)/o))&&eF("overflow"),p+=l*o,!(l<(u=s<=g?1:s>=g+26?26:s-g));s+=36)o>eM(2147483647/(c=36-u))&&eF("overflow"),o*=c;g=eQ(p-a,t=h.length+1,0==a),eM(p/t)>2147483647-m&&eF("overflow"),m+=eM(p/t),p%=t,h.splice(p++,0,m)}return ez(h)}function eG(e){var t,n,r,i,a,o,s,l,u,c,d,h,f,p,m,g=[];for(h=(e=eV(e)).length,t=128,n=0,a=72,o=0;o<h;
90++o)(d=e[o])<128&&g.push(ej(d));for(r=i=g.length,i&&g.push("-");r<h;){for(s=2147483647,o=0;o<h;++o)(d=e[o])>=t&&d<s&&(s=d);for(s-t>eM((2147483647-n)/(f=r+1))&&eF("overflow"),n+=(s-t)*f,t=s,o=0;o<h;++o)if((d=e[o])<t&&++n>2147483647&&eF("overflow"),d==t){for(l=n,u=36;!(l<(c=u<=a?1:u>=a+26?26:u-a));u+=36)m=l-c,p=36-c,g.push(ej(eq(c+m%p,0))),l=eM(m/p);g.push(ej(eq(l,0))),a=eQ(n,f,r==i),n=0,++r}++n,++t}return g.join("")}function eK(e){return eU(e,function(e){return eO.test(e)?eH(e.slice(4).toLowerCase()):e})}function e$(e){return eU(e,function(e){return eR.test(e)?"xn--"+eG(e):e})}var eW="1.4.1",eZ={decode:eV,encode:ez},eY={9:"Tab;",10:"NewLine;",33:"excl;",34:"quot;",35:"num;",36:"dollar;",37:"percnt;",38:"amp;",39:"apos;",40:"lpar;",41:"rpar;",42:"midast;",43:"plus;",44:"comma;",46:"period;",47:"sol;",58:"colon;",59:"semi;",60:"lt;",61:"equals;",62:"gt;",63:"quest;",64:"commat;",91:"lsqb;",92:"bsol;",93:"rsqb;",94:"Hat;",95:"UnderBar;",96:"grave;",123:"lcub;",124:"VerticalLine;",125:"rcub;",160:"NonBreakingSpace;",161:"iexcl;",162:"cent;",163:"pound;",164:"curren;",165:"yen;",166:"brvbar;",167:"sect;",168:"uml;",169:"copy;",170:"ordf;",171:"laquo;",172:"not;",173:"shy;",174:"reg;",175:"strns;",176:"deg;",177:"pm;",178:"sup2;",179:"sup3;",180:"DiacriticalAcute;",181:"micro;",182:"para;",183:"middot;",184:"Cedilla;",185:"sup1;",186:"ordm;",187:"raquo;",188:"frac14;",189:"half;",190:"frac34;",191:"iquest;",192:"Agrave;",193:"Aacute;",194:"Acirc;",195:"Atilde;",196:"Auml;",197:"Aring;",198:"AElig;",199:"Ccedil;",200:"Egrave;",201:"Eacute;",202:"Ecirc;",203:"Euml;",204:"Igrave;",205:"Iacute;",206:"Icirc;",207:"Iuml;",208:"ETH;",209:"Ntilde;",210:"Ograve;",211:"Oacute;",212:"Ocirc;",213:"Otilde;",214:"Ouml;",215:"times;",216:"Oslash;",217:"Ugrave;",218:"Uacute;",219:"Ucirc;",220:"Uuml;",221:"Yacute;",222:"THORN;",223:"szlig;",224:"agrave;",225:"aacute;",226:"acirc;",227:"atilde;",228:"auml;",229:"aring;",230:"aelig;",231:"ccedil;",232:"egrave;",233:"eacute;",234:"ecirc;",235:"euml;",236:"igrave;",237:"iacute;",238:"icirc;",239:"iuml;",240:"eth;",241:"ntilde;",242:"ograve;",243:"oacute;",244:"ocirc;",245:"otilde;",246:"ouml;",247:"divide;",248:"oslash;",249:"ugrave;",250:"uacute;",251:"ucirc;",252:"uuml;",253:"yacute;",254:"thorn;",255:"yuml;",256:"Amacr;",257:"amacr;",258:"Abreve;",259:"abreve;",260:"Aogon;",261:"aogon;",262:"Cacute;",263:"cacute;",264:"Ccirc;",265:"ccirc;",266:"Cdot;",267:"cdot;",268:"Ccaron;",269:"ccaron;",270:"Dcaron;",271:"dcaron;",272:"Dstrok;",273:"dstrok;",274:"Emacr;",275:"emacr;",278:"Edot;",279:"edot;
90",280:"Eogon;",281:"eogon;",282:"Ecaron;",283:"ecaron;",284:"Gcirc;",285:"gcirc;",286:"Gbreve;",287:"gbreve;",288:"Gdot;",289:"gdot;",290:"Gcedil;",292:"Hcirc;",293:"hcirc;",294:"Hstrok;",295:"hstrok;",296:"Itilde;",297:"itilde;",298:"Imacr;",299:"imacr;",302:"Iogon;",303:"iogon;",304:"Idot;",305:"inodot;",306:"IJlig;",307:"ijlig;",308:"Jcirc;",309:"jcirc;",310:"Kcedil;",311:"kcedil;",312:"kgreen;",313:"Lacute;",314:"lacute;",315:"Lcedil;",316:"lcedil;",317:"Lcaron;",318:"lcaron;",319:"Lmidot;",320:"lmidot;",321:"Lstrok;",322:"lstrok;",323:"Nacute;",324:"nacute;",325:"Ncedil;",326:"ncedil;",327:"Ncaron;",328:"ncaron;",329:"napos;",330:"ENG;",331:"eng;",332:"Omacr;",333:"omacr;",336:"Odblac;",337:"odblac;",338:"OElig;",339:"oelig;",340:"Racute;",341:"racute;",342:"Rcedil;",343:"rcedil;",344:"Rcaron;",345:"rcaron;",346:"Sacute;",347:"sacute;",348:"Scirc;",349:"scirc;",350:"Scedil;",351:"scedil;",352:"Scaron;",353:"scaron;",354:"Tcedil;",355:"tcedil;",356:"Tcaron;",357:"tcaron;",358:"Tstrok;",359:"tstrok;",360:"Utilde;",361:"utilde;",362:"Umacr;",363:"umacr;",364:"Ubreve;",365:"ubreve;",366:"Uring;",367:"uring;",368:"Udblac;",369:"udblac;",370:"Uogon;",371:"uogon;",372:"Wcirc;",373:"wcirc;",374:"Ycirc;",375:"ycirc;",376:"Yuml;",377:"Zacute;",378:"zacute;",379:"Zdot;",380:"zdot;",381:"Zcaron;",382:"zcaron;",402:"fnof;",437:"imped;",501:"gacute;",567:"jmath;",710:"circ;",711:"Hacek;",728:"breve;",729:"dot;",730:"ring;",731:"ogon;",732:"tilde;",733:"DiacriticalDoubleAcute;",785:"DownBreve;",913:"Alpha;",914:"Beta;",915:"Gamma;",916:"Delta;",917:"Epsilon;",918:"Zeta;",919:"Eta;",920:"Theta;",921:"Iota;",922:"Kappa;",923:"Lambda;",924:"Mu;",925:"Nu;",926:"Xi;",927:"Omicron;",928:"Pi;",929:"Rho;",931:"Sigma;",932:"Tau;",933:"Upsilon;",934:"Phi;",935:"Chi;",936:"Psi;",937:"Omega;",945:"alpha;",946:"beta;",947:"gamma;",948:"delta;",949:"epsilon;",950:"zeta;",951:"eta;",952:"theta;",953:"iota;",954:"kappa;",955:"lambda;",956:"mu;",957:"nu;",958:"xi;",959:"omicron;",960:"pi;",961:"rho;",962:"varsigma;",963:"sigma;",964:"tau;",965:"upsilon;",966:"phi;",967:"chi;",968:"psi;",969:"omega;",977:"vartheta;",978:"upsih;",981:"varphi;",982:"varpi;",988:"Gammad;",989:"gammad;",1008:"varkappa;",1009:"varrho;",1013:"varepsilon;",1014:"bepsi;",1025:"IOcy;",1026:"DJcy;",1027:"GJcy;",1028:"Jukcy;",1029:"DScy;",1030:"Iukcy;",1031:"YIcy;",1032:"Jsercy;",1033:"LJcy;",1034:"NJcy;",1035:"TSHcy;",1036:"KJcy;",1038:"Ubrcy;",1039:"DZcy;",1040:"Acy;",1041:"Bcy;",1042:"Vcy;",1043:"Gcy;",1044:"Dcy;",1045:"IEcy;",1046:"ZHcy;",1047:"Zcy;",1048:"Icy;",1049:"Jcy;",1050:"Kcy;",1051:"Lcy;",1052:"Mcy;",1053:"Ncy;",1054:"Ocy;",1055:"Pcy;",1056:"Rcy;",1057:"Scy;",1058:"Tcy;",1059:"Ucy;",1060:"Fcy;",1061:"KHcy;",1062:"TScy;",1063:"CHcy;",1064:"SHcy;",1065:"SHCHcy;",1066:"HARDcy;",1067:"Ycy;",1068:"SOFTcy;",1069:"Ecy;",1070:"YUcy;",1071:"YAcy;",1072:"acy;",1073:"bcy;",1074:"vcy;",1075:"gcy;",1076:"dcy;",1077:"iecy;",1078:"zhcy;",1079:"zcy;",1080:"icy;",1081:"jcy;",1082:"kcy;",1083:"lcy;",1084:"mcy;",1085:"ncy;",1086:"ocy;",1087:"pcy;",1088:"rcy;",1089:"scy;",1090:"tcy;",1091:"ucy;",1092:"fcy;",1093:"khcy;",1094:"tscy;",1095:"chcy;",1096:"shcy;",1097:"shchcy;",1098:"hardcy;",1099:"ycy;",1100:"softcy;",1101:"ecy;",1102:"yucy;",1103:"yacy;",1105:"iocy;",1106:"djcy;",1107:"gjcy;",1108:"jukcy;",1109:"dscy;",1110:"iukcy;",1111:"yicy;",1112:"jsercy;",1113:"ljcy;",1114:"njcy;",1115:"tshcy;",1116:"kjcy;",1118:"ubrcy;",1119:"dzcy;",8194:"ensp;",8195:"emsp;",8196:"emsp13;",8197:"emsp14;",8199:"numsp;",8200:"puncsp;",8201:"ThinSpace;",8202:"VeryThinSpace;",8203:"ZeroWidthSpace;",8204:"zwnj;",8205:"zwj;",8206:"lrm;",8207:"rlm;",8208:"hyphen;",8211:"ndash;",8212:"mdash;",8213:"horbar;",8214:"Vert;",8216:"OpenCurlyQuote;",8217:"rsquor;",8218:"sbquo;",8220:"OpenCurlyDoubleQuote;",8221:"rdquor;",8222:"ldquor;",8224:"dagger;",8225:"ddagger;",8226:"bullet;",8229:"nldr;",8230:"mldr;",8240:"permil;",8241:"pertenk;",8242:"prime;",8243:"Prime;",8244:"tprime;",8245:"bprime;",8249:"lsaquo;",8250:"rsaquo;",8254:"OverBar;",8257:"caret;",8259:"hybull;",8260:"frasl;",8271:"bsemi;",8279:"qprime;",8287:"MediumSpace;",8288:"NoBreak;",8289:"ApplyFunction;",8290:"it;",8291:"InvisibleComma;",8364:"euro;",8411:"TripleDot;",8412:"DotDot;",8450:"Copf;",8453:"incare;",8458:"gscr;",8459:"Hscr;",8460:"Poincareplane;",8461:"quaternions;",8462:"planckh;",8463:"plankv;",8464:"Iscr;",8465:"imagpart;",8466:"Lscr;",8467:"ell;",8469:"Nopf;",8470:"numero;",8471:"copysr;",8472:"wp;",8473:"primes;",8474:"rationals;",8475:"Rscr;",8476:"Rfr;",8477:"Ropf;",8478:"rx;",8482:"trade;",8484:"Zopf;",8487:"mho;",8488:"Zfr;",8489:"iiota;",8492:"Bscr;",8493:"Cfr;",8495:"escr;",8496:"expectation;",8497:"Fscr;",8499:"phmmat;",8500:"oscr;",8501:"aleph;",8502:"beth;",8503:"gimel;",8504:"daleth;",8517:"DD;",8518:"DifferentialD;",8519:"exponentiale;",8520:"ImaginaryI;",8531:"frac13;",8532:"frac23;",8533:"frac15;",8534:"frac25;",8535:"frac35;",8536:"frac45;",8537:"frac16;",8538:"frac56;",8539:"frac18;",8540:"frac38;",8541:"frac58;",8542:"frac78;",8592:"slarr;",8593:"uparrow;",8594:"srarr;",8595:"ShortDownArrow;",8596:"leftrightarrow;",8597:"varr;",8598:"UpperLeftArrow;",8599:"UpperRightArrow;",8600:"searrow;",8601:"swarrow;",8602:"nleftarrow;",8603:"nrightarrow;",8605:"rightsquigarrow;",8606:"twoheadleftarrow;",8607:"Uarr;",8608:"twoheadrightarrow;",8609:"Darr;",8610:"leftarrowtail;",8611:"rightarrowtail;",8612:"mapstoleft;",8613:"UpTeeArrow;",8614:"RightTeeArrow;",8615:"mapstodown;",8617:"larrhk;",8618:"rarrhk;",8619:"looparrowleft;",8620:"rarrlp;",8621:"leftrightsquigarrow;",8622:"nleftrightarrow;",8624:"lsh;",8625:"rsh;",8626:"ldsh;",8627:"rdsh;",8629:"crarr;",8630:"curvearrowleft;",8631:"curvearrowright;",8634:"olarr;",8635:"orarr;",8636:"lharu;",8637:"lhard;",8638:"upharpoonright;",8639:"upharpoonleft;",8640:"RightVector;",8641:"rightharpoondown;",8642:"RightDownVector;",8643:"LeftDownVector;",8644:"rlarr;",8645:"UpArrowDownArrow;",8646:"lrarr;",8647:"llarr;",8648:"uuarr;",8649:"rrarr;",8650:"downdownarrows;",8651:"ReverseEquilibrium;",8652:"rlhar;",8653:"nLeftarrow;",8654:"nLeftrightarrow;",8655:"nRightarrow;",8656:"Leftarrow;",8657:"Uparrow;",8658:"Rightarrow;",8659:"Downarrow;",8660:"Leftrightarrow;",8661:"vArr;",8662:"nwArr;",8663:"neArr;",8664:"seArr;",8665:"swArr;",8666:"Lleftarrow;",8667:"Rrightarrow;",8669:"zigrarr;",8676:"LeftArrowBar;",8677:"RightArrowBar;",8693:"duarr;",8701:"loarr;",8702:"roarr;",8703:"hoarr;",8704:"forall;",8705:"complement;
90",8706:"PartialD;",8707:"Exists;",8708:"NotExists;",8709:"varnothing;",8711:"nabla;",8712:"isinv;",8713:"notinva;",8715:"SuchThat;",8716:"NotReverseElement;",8719:"Product;",8720:"Coproduct;",8721:"sum;",8722:"minus;",8723:"mp;",8724:"plusdo;",8726:"ssetmn;",8727:"lowast;",8728:"SmallCircle;",8730:"Sqrt;",8733:"vprop;",8734:"infin;",8735:"angrt;",8736:"angle;",8737:"measuredangle;",8738:"angsph;",8739:"VerticalBar;",8740:"nsmid;",8741:"spar;",8742:"nspar;",8743:"wedge;",8744:"vee;",8745:"cap;",8746:"cup;",8747:"Integral;",8748:"Int;",8749:"tint;",8750:"oint;",8751:"DoubleContourIntegral;",8752:"Cconint;",8753:"cwint;",8754:"cwconint;",8755:"CounterClockwiseContourIntegral;",8756:"therefore;",8757:"because;",8758:"ratio;",8759:"Proportion;",8760:"minusd;",8762:"mDDot;",8763:"homtht;",8764:"Tilde;",8765:"bsim;",8766:"mstpos;",8767:"acd;",8768:"wreath;",8769:"nsim;",8770:"esim;",8771:"TildeEqual;",8772:"nsimeq;",8773:"TildeFullEqual;",8774:"simne;",8775:"NotTildeFullEqual;",8776:"TildeTilde;",8777:"NotTildeTilde;",8778:"approxeq;",8779:"apid;",8780:"bcong;",8781:"CupCap;",8782:"HumpDownHump;",8783:"HumpEqual;",8784:"esdot;",8785:"eDot;",8786:"fallingdotseq;",8787:"risingdotseq;",8788:"coloneq;",8789:"eqcolon;",8790:"eqcirc;",8791:"cire;",8793:"wedgeq;",8794:"veeeq;",8796:"trie;",8799:"questeq;",8800:"NotEqual;",8801:"equiv;",8802:"NotCongruent;",8804:"leq;",8805:"GreaterEqual;",8806:"LessFullEqual;",8807:"GreaterFullEqual;",8808:"lneqq;",8809:"gneqq;",8810:"NestedLessLess;",8811:"NestedGreaterGreater;",8812:"twixt;",8813:"NotCupCap;",8814:"NotLess;",8815:"NotGreater;",8816:"NotLessEqual;",8817:"NotGreaterEqual;",8818:"lsim;",8819:"gtrsim;",8820:"NotLessTilde;",8821:"NotGreaterTilde;",8822:"lg;",8823:"gtrless;",8824:"ntlg;",8825:"ntgl;",8826:"Precedes;",8827:"Succeeds;",8828:"PrecedesSlantEqual;",8829:"SucceedsSlantEqual;",8830:"prsim;",8831:"succsim;",8832:"nprec;",8833:"nsucc;",8834:"subset;",8835:"supset;",8836:"nsub;",8837:"nsup;",8838:"SubsetEqual;",8839:"supseteq;",8840:"nsubseteq;",8841:"nsupseteq;",8842:"subsetneq;",8843:"supsetneq;",8845:"cupdot;",8846:"uplus;",8847:"SquareSubset;",8848:"SquareSuperset;",8849:"SquareSubsetEqual;",8850:"SquareSupersetEqual;",8851:"SquareIntersection;",8852:"SquareUnion;",8853:"oplus;",8854:"ominus;",8855:"otimes;",8856:"osol;",8857:"odot;",8858:"ocir;",8859:"oast;",8861:"odash;",8862:"plusb;",8863:"minusb;",8864:"timesb;",8865:"sdotb;",8866:"vdash;",8867:"LeftTee;",8868:"top;",8869:"UpTee;",8871:"models;",8872:"vDash;",8873:"Vdash;",8874:"Vvdash;",8875:"VDash;",8876:"nvdash;",8877:"nvDash;",8878:"nVdash;",8879:"nVDash;",8880:"prurel;",8882:"vltri;",8883:"vrtri;",8884:"trianglelefteq;",8885:"trianglerighteq;",8886:"origof;",8887:"imof;",8888:"mumap;",8889:"hercon;",8890:"intercal;",8891:"veebar;",8893:"barvee;",8894:"angrtvb;",8895:"lrtri;",8896:"xwedge;",8897:"xvee;",8898:"xcap;",8899:"xcup;",8900:"diamond;",8901:"sdot;",8902:"Star;",8903:"divonx;",8904:"bowtie;",8905:"ltimes;",8906:"rtimes;",8907:"lthree;",8908:"rthree;",8909:"bsime;",8910:"cuvee;",8911:"cuwed;",8912:"Subset;",8913:"Supset;",8914:"Cap;",8915:"Cup;",8916:"pitchfork;",8917:"epar;",8918:"ltdot;",8919:"gtrdot;",8920:"Ll;",8921:"ggg;",8922:"LessEqualGreater;",8923:"gtreqless;",8926:"curlyeqprec;",8927:"curlyeqsucc;",8928:"nprcue;",8929:"nsccue;",8930:"nsqsube;",8931:"nsqsupe;",8934:"lnsim;",8935:"gnsim;",8936:"prnsim;",8937:"succnsim;",8938:"ntriangleleft;",8939:"ntriangleright;",8940:"ntrianglelefteq;",8941:"ntrianglerighteq;",8942:"vellip;",8943:"ctdot;",8944:"utdot;",8945:"dtdot;",8946:"disin;",8947:"isinsv;",8948:"isins;",8949:"isindot;",8950:"notinvc;",8951:"notinvb;",8953:"isinE;",8954:"nisd;",8955:"xnis;",8956:"nis;",8957:"notnivc;",8958:"notnivb;",8965:"barwedge;",8966:"doublebarwedge;",8968:"LeftCeiling;",8969:"RightCeiling;",8970:"lfloor;",8971:"RightFloor;",8972:"drcrop;",8973:"dlcrop;",8974:"urcrop;",8975:"ulcrop;",8976:"bnot;",8978:"profline;",8979:"profsurf;",8981:"telrec;",8982:"target;",8988:"ulcorner;",8989:"urcorner;",8990:"llcorner;",8991:"lrcorner;",8994:"sfrown;",8995:"ssmile;",9005:"cylcty;",9006:"profalar;",9014:"topbot;",9021:"ovbar;",9023:"solbar;",9084:"angzarr;",9136:"lmoustache;",9137:"rmoustache;",9140:"tbrk;",9141:"UnderBracket;",9142:"bbrktbrk;",9180:"OverParenthesis;",9181:"UnderParenthesis;",9182:"OverBrace;",9183:"UnderBrace;",9186:"trpezium;",9191:"elinters;",9251:"blank;",9416:"oS;",9472:"HorizontalLine;",9474:"boxv;",9484:"boxdr;",9488:"boxdl;",9492:"boxur;",9496:"boxul;",9500:"boxvr;",9508:"boxvl;",9516:"boxhd;",9524:"boxhu;",9532:"boxvh;",9552:"boxH;",9553:"boxV;",9554:"boxdR;",9555:"boxDr;",9556:"boxDR;",9557:"boxdL;",9558:"boxDl;",9559:"boxDL;",9560:"boxuR;",9561:"boxUr;",9562:"boxUR;",9563:"boxuL;",9564:"boxUl;",9565:"boxUL;",9566:"boxvR;",9567:"boxVr;",9568:"boxVR;",9569:"boxvL;",9570:"boxVl;",9571:"boxVL;",9572:"boxHd;",9573:"boxhD;",9574:"boxHD;",9575:"boxHu;",9576:"boxhU;",9577:"boxHU;",9578:"boxvH;",9579:"boxVh;
90",9580:"boxVH;",9600:"uhblk;",9604:"lhblk;",9608:"block;",9617:"blk14;",9618:"blk12;",9619:"blk34;",9633:"square;",9642:"squf;",9643:"EmptyVerySmallSquare;",9645:"rect;",9646:"marker;",9649:"fltns;",9651:"xutri;",9652:"utrif;",9653:"utri;",9656:"rtrif;",9657:"triangleright;",9661:"xdtri;",9662:"dtrif;",9663:"triangledown;",9666:"ltrif;",9667:"triangleleft;",9674:"lozenge;",9675:"cir;",9708:"tridot;",9711:"xcirc;",9720:"ultri;",9721:"urtri;",9722:"lltri;",9723:"EmptySmallSquare;",9724:"FilledSmallSquare;",9733:"starf;",9734:"star;",9742:"phone;",9792:"female;",9794:"male;",9824:"spadesuit;",9827:"clubsuit;",9829:"heartsuit;",9830:"diams;",9834:"sung;",9837:"flat;",9838:"natural;",9839:"sharp;",10003:"checkmark;",10007:"cross;",10016:"maltese;",10038:"sext;",10072:"VerticalSeparator;",10098:"lbbrk;",10099:"rbbrk;",10184:"bsolhsub;",10185:"suphsol;",10214:"lobrk;",10215:"robrk;",10216:"LeftAngleBracket;",10217:"RightAngleBracket;",10218:"Lang;",10219:"Rang;",10220:"loang;",10221:"roang;",10229:"xlarr;",10230:"xrarr;",10231:"xharr;",10232:"xlArr;",10233:"xrArr;",10234:"xhArr;",10236:"xmap;",10239:"dzigrarr;",10498:"nvlArr;",10499:"nvrArr;",10500:"nvHarr;",10501:"Map;",10508:"lbarr;",10509:"rbarr;",10510:"lBarr;",10511:"rBarr;",10512:"RBarr;",10513:"DDotrahd;",10514:"UpArrowBar;",10515:"DownArrowBar;",10518:"Rarrtl;",10521:"latail;",10522:"ratail;",10523:"lAtail;",10524:"rAtail;",10525:"larrfs;",10526:"rarrfs;",10527:"larrbfs;",10528:"rarrbfs;",10531:"nwarhk;",10532:"nearhk;",10533:"searhk;",10534:"swarhk;",10535:"nwnear;",10536:"toea;",10537:"tosa;",10538:"swnwar;",10547:"rarrc;",10549:"cudarrr;",10550:"ldca;",10551:"rdca;",10552:"cudarrl;",10553:"larrpl;",10556:"curarrm;",10557:"cularrp;",10565:"rarrpl;",10568:"harrcir;",10569:"Uarrocir;",10570:"lurdshar;",10571:"ldrushar;",10574:"LeftRightVector;",10575:"RightUpDownVector;",10576:"DownLeftRightVector;
90",10577:"LeftUpDownVector;",10578:"LeftVectorBar;",10579:"RightVectorBar;",10580:"RightUpVectorBar;",10581:"RightDownVectorBar;",10582:"DownLeftVectorBar;",10583:"DownRightVectorBar;",10584:"LeftUpVectorBar;",10585:"LeftDownVectorBar;",10586:"LeftTeeVector;",10587:"RightTeeVector;",10588:"RightUpTeeVector;",10589:"RightDownTeeVector;",10590:"DownLeftTeeVector;",10591:"DownRightTeeVector;",10592:"LeftUpTeeVector;",10593:"LeftDownTeeVector;",10594:"lHar;",10595:"uHar;",10596:"rHar;",10597:"dHar;",10598:"luruhar;",10599:"ldrdhar;",10600:"ruluhar;",10601:"rdldhar;",10602:"lharul;",10603:"llhard;",10604:"rharul;",10605:"lrhard;",10606:"UpEquilibrium;",10607:"ReverseUpEquilibrium;",10608:"RoundImplies;",10609:"erarr;",10610:"simrarr;",10611:"larrsim;",10612:"rarrsim;",10613:"rarrap;",10614:"ltlarr;",10616:"gtrarr;",10617:"subrarr;",10619:"suplarr;",10620:"lfisht;",10621:"rfisht;",10622:"ufisht;",10623:"dfisht;",10629:"lopar;",10630:"ropar;",10635:"lbrke;",10636:"rbrke;",10637:"lbrkslu;",10638:"rbrksld;",10639:"lbrksld;",10640:"rbrkslu;",10641:"langd;",10642:"rangd;",10643:"lparlt;",10644:"rpargt;",10645:"gtlPar;",10646:"ltrPar;",10650:"vzigzag;",10652:"vangrt;",10653:"angrtvbd;",10660:"ange;",10661:"range;",10662:"dwangle;",10663:"uwangle;",10664:"angmsdaa;",10665:"angmsdab;",10666:"angmsdac;",10667:"angmsdad;",10668:"angmsdae;",10669:"angmsdaf;",10670:"angmsdag;",10671:"angmsdah;",10672:"bemptyv;",10673:"demptyv;",10674:"cemptyv;",10675:"raemptyv;",10676:"laemptyv;",10677:"ohbar;",10678:"omid;",10679:"opar;",10681:"operp;",10683:"olcross;",10684:"odsold;",10686:"olcir;",10687:"ofcir;",10688:"olt;",10689:"ogt;",10690:"cirscir;",10691:"cirE;",10692:"solb;",10693:"bsolb;",10697:"boxbox;",10701:"trisb;",10702:"rtriltri;",10703:"LeftTriangleBar;",10704:"RightTriangleBar;",10716:"iinfin;",10717:"infintie;",10718:"nvinfin;",10723:"eparsl;",10724:"smeparsl;",10725:"eqvparsl;",10731:"lozf;",10740:"RuleDelayed;",10742:"dsol;",10752:"xodot;",10753:"xoplus;",10754:"xotime;",10756:"xuplus;",10758:"xsqcup;",10764:"qint;",10765:"fpartint;",10768:"cirfnint;",10769:"awint;",10770:"rppolint;",10771:"scpolint;",10772:"npolint;",10773:"pointint;",10774:"quatint;",10775:"intlarhk;",10786:"pluscir;",10787:"plusacir;",10788:"simplus;",10789:"plusdu;",10790:"plussim;",10791:"plustwo;",10793:"mcomma;",10794:"minusdu;",10797:"loplus;",10798:"roplus;",10799:"Cross;",10800:"timesd;",10801:"timesbar;",10803:"smashp;",10804:"lotimes;",10805:"rotimes;",10806:"otimesas;",10807:"Otimes;",10808:"odiv;",10809:"triplus;",10810:"triminus;",10811:"tritime;",10812:"iprod;",10815:"amalg;",10816:"capdot;",10818:"ncup;",10819:"ncap;",10820:"capand;",10821:"cupor;",10822:"cupcap;",10823:"capcup;",10824:"cupbrcap;",10825:"capbrcup;",10826:"cupcup;",10827:"capcap;",10828:"ccups;",10829:"ccaps;",10832:"ccupssm;",10835:"And;",10836:"Or;",10837:"andand;",10838:"oror;",10839:"orslope;",10840:"andslope;",10842:"andv;",10843:"orv;",10844:"andd;",10845:"ord;",10847:"wedbar;",10854:"sdote;",10858:"simdot;",10861:"congdot;",10862:"easter;",10863:"apacir;",10864:"apE;",10865:"eplus;",10866:"pluse;",10867:"Esim;",10868:"Colone;",10869:"Equal;",10871:"eDDot;",10872:"equivDD;",10873:"ltcir;",10874:"gtcir;",10875:"ltquest;",10876:"gtquest;",10877:"LessSlantEqual;",10878:"GreaterSlantEqual;",10879:"lesdot;",10880:"gesdot;",10881:"lesdoto;",10882:"gesdoto;",10883:"lesdotor;",10884:"gesdotol;",10885:"lessapprox;",10886:"gtrapprox;",10887:"lneq;",10888:"gneq;",10889:"lnapprox;",10890:"gnapprox;",10891:"lesseqqgtr;",10892:"gtreqqless;",10893:"lsime;",10894:"gsime;",10895:"lsimg;",10896:"gsiml;",10897:"lgE;",10898:"glE;",10899:"lesges;",10900:"gesles;",10901:"eqslantless;",10902:"eqslantgtr;",10903:"elsdot;",10904:"egsdot;",10905:"el;",10906:"eg;",10909:"siml;",10910:"simg;",10911:"simlE;",10912:"simgE;",10913:"LessLess;",10914:"GreaterGreater;",10916:"glj;",10917:"gla;",10918:"ltcc;",10919:"gtcc;",10920:"lescc;",10921:"gescc;",10922:"smt;",10923:"lat;",10924:"smte;",10925:"late;",10926:"bumpE;",10927:"preceq;",10928:"succeq;",10931:"prE;",10932:"scE;",10933:"prnE;",10934:"succneqq;",10935:"precapprox;",10936:"succapprox;",10937:"prnap;",10938:"succnapprox;",10939:"Pr;",10940:"Sc;",10941:"subdot;",10942:"supdot;",10943:"subplus;",10944:"supplus;",10945:"submult;",10946:"supmult;",10947:"subedot;",10948:"supedot;",10949:"subseteqq;",10950:"supseteqq;",10951:"subsim;",10952:"supsim;",10955:"subsetneqq;",10956:"supsetneqq;",10959:"csub;",10960:"csup;",10961:"csube;",10962:"csupe;",10963:"subsup;",10964:"supsub;",10965:"subsub;",10966:"supsup;",10967:"suphsub;",10968:"supdsub;",10969:"forkv;",10970:"topfork;",10971:"mlcp;",10980:"DoubleLeftTee;",10982:"Vdashl;",10983:"Barv;",10984:"vBar;",10985:"vBarv;",10987:"Vbar;",10988:"Not;",10989:"bNot;",10990:"rnmid;",10991:"cirmid;",10992:"midcir;",10993:"topcir;",10994:"nhpar;",10995:"parsim;",11005:"parsl;",64256:"fflig;",64257:"filig;",64258:"fllig;",64259:"ffilig;",64260:"ffllig;"},eX=function(e){if(e.__esModule)return e;var t=Object.defineProperty({},"__esModule",{value:!0});return Object.keys(e).forEach(function(n){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return e[n]}})}),t}(Object.freeze({__proto__:null,decode:eH,encode:eG,toUnicode:eK,toASCII:e$,version:eW,ucs2:eZ,default:{version:eW,ucs2:eZ,toASCII:e$,toUnicode:eK,encode:eG,decode:eH}})),eJ={"Aacute;":"\xc1",Aacute:"\xc1","aacute;":"\xe1",aacute:"\xe1","Abreve;":"Ă","abreve;":"ă","ac;":"∾","acd;":"∿","acE;":"∾̳","Acirc;":"\xc2",Acirc:"\xc2","acirc;":"\xe2",acirc:"\xe2","acute;":"\xb4",acute:"\xb4","Acy;":"А","acy;":"а","AElig;":"\xc6",AElig:"\xc6","aelig;":"\xe6",aelig:"\xe6","af;":"⁡","Afr;":"\uD835\uDD04","afr;":"\uD835\uDD1E","Agrave;":"\xc0",Agrave:"\xc0","agrave;":"\xe0",agrave:"\xe0","alefsym;":"ℵ","aleph;":"ℵ","Alpha;":"Α","alpha;":"α","Amacr;":"Ā","amacr;":"ā","amalg;":"⨿","AMP;":"&",AMP:"&","amp;":"&",amp:"&","And;":"⩓","and;":"∧","andand;":"⩕","andd;
90":"⩜","andslope;":"⩘","andv;":"⩚","ang;":"∠","ange;":"⦤","angle;":"∠","angmsd;":"∡","angmsdaa;":"⦨","angmsdab;":"⦩","angmsdac;":"⦪","angmsdad;":"⦫","angmsdae;":"⦬","angmsdaf;":"⦭","angmsdag;":"⦮","angmsdah;":"⦯","angrt;":"∟","angrtvb;":"⊾","angrtvbd;":"⦝","angsph;":"∢","angst;":"\xc5","angzarr;":"⍼","Aogon;":"Ą","aogon;":"ą","Aopf;":"\uD835\uDD38","aopf;":"\uD835\uDD52","ap;":"≈","apacir;":"⩯","apE;":"⩰","ape;":"≊","apid;":"≋","apos;":"'","ApplyFunction;":"⁡","approx;":"≈","approxeq;":"≊","Aring;":"\xc5",Aring:"\xc5","aring;":"\xe5",aring:"\xe5","Ascr;":"\uD835\uDC9C","ascr;":"\uD835\uDCB6","Assign;":"≔","ast;":"*","asymp;":"≈","asympeq;":"≍","Atilde;":"\xc3",Atilde:"\xc3","atilde;":"\xe3",atilde:"\xe3","Auml;":"\xc4",Auml:"\xc4","auml;":"\xe4",auml:"\xe4","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;":"\uD835\uDD05","bfr;":"\uD835\uDD1F","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;":"\uD835\uDD39","bopf;":"\uD835\uDD53","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;":"\xa6",brvbar:"\xa6","Bscr;":"ℬ","bscr;":"\uD835\uDCB7","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;":"\xc7",Ccedil:"\xc7","ccedil;":"\xe7",ccedil:"\xe7","Ccirc;":"Ĉ","ccirc;":"ĉ","Cconint;":"∰","ccups;":"⩌","ccupssm;":"⩐","Cdot;":"Ċ","cdot;":"ċ","cedil;":"\xb8",cedil:"\xb8","Cedilla;":"\xb8","cemptyv;":"⦲","cent;":"\xa2",cent:"\xa2","CenterDot;":"\xb7","centerdot;":"\xb7","Cfr;":"ℭ","cfr;":"\uD835\uDD20","CHcy;":"Ч","chcy;":"ч","check;":"✓","checkmark;":"✓","Chi;":"Χ","chi;":"χ","cir;":"○","circ;":"ˆ","circeq;":"≗","circlearrowleft;":"↺","circlearrowright;":"↻","circledast;":"⊛","circledcirc;":"⊚","circleddash;":"⊝","CircleDot;":"⊙","circledR;":"\xae","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;":"\uD835\uDD54","coprod;":"∐","Coproduct;":"∐","COPY;":"\xa9",COPY:"\xa9","copy;":"\xa9",copy:"\xa9","copysr;":"℗","CounterClockwiseContourIntegral;":"∳","crarr;":"↵","Cross;":"⨯","cross;":"✗","Cscr;":"\uD835\uDC9E","cscr;":"\uD835\uDCB8","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;":"\xa4",curren:"\xa4","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;":"\xb0",deg:"\xb0","Del;":"∇","Delta;":"Δ","delta;":"δ","demptyv;":"⦱","dfisht;":"⥿","Dfr;":"\uD835\uDD07","dfr;":"\uD835\uDD21","dHar;":"⥥","dharl;":"⇃","dharr;":"⇂","DiacriticalAcute;":"\xb4","DiacriticalDot;":"˙","DiacriticalDoubleAcute;":"˝","DiacriticalGrave;":"`","DiacriticalTilde;":"˜","diam;":"⋄","Diamond;":"⋄","diamond;":"⋄","diamondsuit;":"♦","diams;":"♦","die;":"\xa8","DifferentialD;
90":"ⅆ","digamma;":"ϝ","disin;":"⋲","div;":"\xf7","divide;":"\xf7",divide:"\xf7","divideontimes;":"⋇","divonx;":"⋇","DJcy;":"Ђ","djcy;":"ђ","dlcorn;":"⌞","dlcrop;":"⌍","dollar;":"$","Dopf;":"\uD835\uDD3B","dopf;":"\uD835\uDD55","Dot;":"\xa8","dot;":"˙","DotDot;":"⃜","doteq;":"≐","doteqdot;":"≑","DotEqual;":"≐","dotminus;":"∸","dotplus;":"∔","dotsquare;":"⊡","doublebarwedge;":"⌆","DoubleContourIntegral;":"∯","DoubleDot;":"\xa8","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;":"\uD835\uDC9F","dscr;":"\uD835\uDCB9","DScy;":"Ѕ","dscy;":"ѕ","dsol;":"⧶","Dstrok;":"Đ","dstrok;":"đ","dtdot;":"⋱","dtri;":"▿","dtrif;":"▾","duarr;":"⇵","duhar;":"⥯","dwangle;":"⦦","DZcy;":"Џ","dzcy;":"џ","dzigrarr;":"⟿","Eacute;":"\xc9",Eacute:"\xc9","eacute;":"\xe9",eacute:"\xe9","easter;":"⩮","Ecaron;":"Ě","ecaron;":"ě","ecir;":"≖","Ecirc;":"\xca",Ecirc:"\xca","ecirc;":"\xea",ecirc:"\xea","ecolon;":"≕","Ecy;":"Э","ecy;":"э","eDDot;":"⩷","Edot;":"Ė","eDot;":"≑","edot;":"ė","ee;":"ⅇ","efDot;":"≒","Efr;":"\uD835\uDD08","efr;":"\uD835\uDD22","eg;":"⪚","Egrave;":"\xc8",Egrave:"\xc8","egrave;":"\xe8",egrave:"\xe8","egs;":"⪖","egsdot;":"⪘","el;":"⪙","Element;":"∈","elinters;":"⏧","ell;":"ℓ","els;":"⪕","elsdot;":"⪗","Emacr;":"Ē","emacr;":"ē","empty;":"∅","emptyset;":"∅","EmptySmallSquare;":"◻","emptyv;":"∅","EmptyVerySmallSquare;":"▫","emsp;":" ","emsp13;":" ","emsp14;":" ","ENG;":"Ŋ","eng;":"ŋ","ensp;":" ","Eogon;":"Ę","eogon;":"ę","Eopf;":"\uD835\uDD3C","eopf;":"\uD835\uDD56","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;":"\xd0",ETH:"\xd0","eth;":"\xf0",eth:"\xf0","Euml;":"\xcb",Euml:"\xcb","euml;":"\xeb",euml:"\xeb","euro;":"€","excl;":"!","exist;":"∃","Exists;":"∃","expectation;":"ℰ","ExponentialE;":"ⅇ","exponentiale;":"ⅇ","fallingdotseq;":"≒","Fcy;":"Ф","fcy;":"ф","female;":"♀","ffilig;":"ffi","fflig;":"ff","ffllig;":"ffl","Ffr;":"\uD835\uDD09","ffr;":"\uD835\uDD23","filig;":"fi","FilledSmallSquare;":"◼","FilledVerySmallSquare;":"▪","fjlig;":"fj","flat;":"♭","fllig;":"fl","fltns;":"▱","fnof;":"ƒ","Fopf;":"\uD835\uDD3D","fopf;":"\uD835\uDD57","ForAll;":"∀","forall;":"∀","fork;":"⋔","forkv;":"⫙","Fouriertrf;":"ℱ","fpartint;":"⨍","frac12;":"\xbd",frac12:"\xbd","frac13;":"⅓","frac14;":"\xbc",frac14:"\xbc","frac15;":"⅕","frac16;":"⅙","frac18;":"⅛","frac23;":"⅔","frac25;":"⅖","frac34;":"\xbe",frac34:"\xbe","frac35;":"⅗","frac38;":"⅜","frac45;":"⅘","frac56;":"⅚","frac58;":"⅝","frac78;":"⅞","frasl;":"⁄","frown;":"⌢","Fscr;":"ℱ","fscr;":"\uD835\uDCBB","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;":"\uD835\uDD0A","gfr;":"\uD835\uDD24","Gg;":"⋙","gg;":"≫","ggg;":"⋙","gimel;":"ℷ","GJcy;":"Ѓ","gjcy;":"ѓ","gl;":"≷","gla;":"⪥","glE;":"⪒","glj;":"⪤","gnap;":"⪊","gnapprox;":"⪊","gnE;":"≩","gne;":"⪈","gneq;":"⪈","gneqq;":"≩","gnsim;":"⋧","Gopf;":"\uD835\uDD3E","gopf;":"\uD835\uDD58","grave;":"`","GreaterEqual;":"≥","GreaterEqualLess;":"⋛","GreaterFullEqual;":"≧","GreaterGreater;":"⪢","GreaterLess;":"≷","GreaterSlantEqual;":"⩾","GreaterTilde;":"≳","Gscr;":"\uD835\uDCA2","gscr;":"ℊ","gsim;":"≳","gsime;":"⪎","gsiml;":"⪐","GT;":">",GT:">","Gt;":"≫","gt;":">",gt:">","gtcc;":"⪧","gtcir;":"⩺","gtdot;":"⋗","gtlPar;":"⦕","gtquest;":"⩼","gtrapprox;":"⪆","gtrarr;":"⥸","gtrdot;":"⋗","gtreqless;":"⋛","gtreqqless;":"⪌","gtrless;":"≷","gtrsim;":"≳","gvertneqq;":"≩︀","gvnE;":"≩︀","Hacek;":"ˇ","hairsp;":" ","half;":"\xbd","hamilt;":"ℋ","HARDcy;":"Ъ","hardcy;":"ъ","hArr;":"⇔","harr;":"↔","harrcir;":"⥈","harrw;":"↭","Hat;":"^","hbar;":"ℏ","Hcirc;":"Ĥ","hcirc;":"ĥ","hearts;":"♥","heartsuit;":"♥","hellip;":"…","hercon;":"⊹","Hfr;":"ℌ","hfr;":"\uD835\uDD25","HilbertSpace;":"ℋ","hksearow;":"⤥","hkswarow;":"⤦","hoarr;":"⇿","homtht;":"∻","hookleftarrow;":"↩","hookrightarrow;":"↪","Hopf;":"ℍ","hopf;":"\uD835\uDD59","horbar;":"―","HorizontalLine;":"─","Hscr;":"ℋ","hscr;":"\uD835\uDCBD","hslash;":"ℏ","Hstrok;":"Ħ","hstrok;":"ħ","HumpDownHump;":"≎","HumpEqual;":"≏","hybull;":"⁃","hyphen;":"‐","Iacute;":"\xcd",Iacute:"\xcd","iacute;":"\xed",iacute:"\xed","ic;":"⁣","Icirc;":"\xce",Icirc:"\xce","icirc;":"\xee",icirc:"\xee","Icy;":"И","icy;":"и","Idot;":"İ","IEcy;":"Е","iecy;":"е","iexcl;":"\xa1",iexcl:"\xa1","iff;":"⇔","Ifr;":"ℑ","ifr;":"\uD835\uDD26","Igrave;":"\xcc",Igrave:"\xcc","igrave;":"\xec",igrave:"\xec","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;":"\uD835\uDD40","iopf;":"\uD835\uDD5A","Iota;":"Ι","iota;":"ι","iprod;":"⨼","iquest;":"\xbf",iquest:"\xbf","Iscr;":"ℐ","iscr;":"\uD835\uDCBE","isin;":"∈","isindot;":"⋵","isinE;":"⋹","isins;":"⋴","isinsv;":"⋳","isinv;":"∈","it;":"⁢","Itilde;":"Ĩ","itilde;":"ĩ","Iukcy;":"І","iukcy;":"і","Iuml;":"\xcf",Iuml:"\xcf","iuml;":"\xef",iuml:"\xef","Jcirc;":"Ĵ","jcirc;":"ĵ","Jcy;":"Й","jcy;":"й","Jfr;":"\uD835\uDD0D","jfr;":"\uD835\uDD27","jmath;":"ȷ","Jopf;":"\uD835\uDD41","jopf;":"\uD835\uDD5B","Jscr;":"\uD835\uDCA5","jscr;":"\uD835\uDCBF","Jsercy;":"Ј","jsercy;":"ј","Jukcy;":"Є","jukcy;":"є","Kappa;":"Κ","kappa;":"κ","kappav;":"ϰ","Kcedil;":"Ķ","kcedil;":"ķ","Kcy;":"К","kcy;":"к","Kfr;":"\uD835\uDD0E","kfr;":"\uD835\uDD28","kgreen;":"ĸ","KHcy;":"Х","khcy;":"х","KJcy;":"Ќ","kjcy;":"ќ","Kopf;":"\uD835\uDD42","kopf;":"\uD835\uDD5C","Kscr;":"\uD835\uDCA6","kscr;":"\uD835\uDCC0","lAarr;":"⇚","Lacute;":"Ĺ","lacute;":"ĺ","laemptyv;":"⦴","lagran;
90":"ℒ","Lambda;":"Λ","lambda;":"λ","Lang;":"⟪","lang;":"⟨","langd;":"⦑","langle;":"⟨","lap;":"⪅","Laplacetrf;":"ℒ","laquo;":"\xab",laquo:"\xab","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;":"\uD835\uDD0F","lfr;":"\uD835\uDD29","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;":"\uD835\uDD43","lopf;":"\uD835\uDD5D","loplus;":"⨭","lotimes;":"⨴","lowast;":"∗","lowbar;":"_","LowerLeftArrow;":"↙","LowerRightArrow;":"↘","loz;":"◊","lozenge;":"◊","lozf;":"⧫","lpar;":"(","lparlt;":"⦓","lrarr;":"⇆","lrcorner;":"⌟","lrhar;":"⇋","lrhard;":"⥭","lrm;":"‎","lrtri;":"⊿","lsaquo;":"‹","Lscr;":"ℒ","lscr;":"\uD835\uDCC1","Lsh;":"↰","lsh;":"↰","lsim;":"≲","lsime;":"⪍","lsimg;":"⪏","lsqb;":"[","lsquo;":"‘","lsquor;":"‚","Lstrok;":"Ł","lstrok;":"ł","LT;":"<",LT:"<","Lt;":"≪","lt;":"<",lt:"<","ltcc;":"⪦","ltcir;":"⩹","ltdot;":"⋖","lthree;":"⋋","ltimes;":"⋉","ltlarr;":"⥶","ltquest;":"⩻","ltri;":"◃","ltrie;":"⊴","ltrif;":"◂","ltrPar;":"⦖","lurdshar;":"⥊","luruhar;":"⥦","lvertneqq;":"≨︀","lvnE;":"≨︀","macr;":"\xaf",macr:"\xaf","male;":"♂","malt;":"✠","maltese;":"✠","Map;":"⤅","map;":"↦","mapsto;":"↦","mapstodown;":"↧","mapstoleft;":"↤","mapstoup;":"↥","marker;":"▮","mcomma;":"⨩","Mcy;":"М","mcy;":"м","mdash;":"—","mDDot;":"∺","measuredangle;":"∡","MediumSpace;":" ","Mellintrf;":"ℳ","Mfr;":"\uD835\uDD10","mfr;":"\uD835\uDD2A","mho;":"℧","micro;":"\xb5",micro:"\xb5","mid;":"∣","midast;":"*","midcir;":"⫰","middot;":"\xb7",middot:"\xb7","minus;":"−","minusb;":"⊟","minusd;":"∸","minusdu;":"⨪","MinusPlus;":"∓","mlcp;":"⫛","mldr;":"…","mnplus;":"∓","models;":"⊧","Mopf;":"\uD835\uDD44","mopf;":"\uD835\uDD5E","mp;":"∓","Mscr;":"ℳ","mscr;":"\uD835\uDCC2","mstpos;":"∾","Mu;":"Μ","mu;":"μ","multimap;":"⊸","mumap;":"⊸","nabla;":"∇","Nacute;":"Ń","nacute;":"ń","nang;":"∠⃒","nap;":"≉","napE;":"⩰̸","napid;":"≋̸","napos;":"ʼn","napprox;":"≉","natur;":"♮","natural;":"♮","naturals;":"ℕ","nbsp;":"\xa0",nbsp:"\xa0","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;":"\uD835\uDD11","nfr;":"\uD835\uDD2B","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;":"\xa0","Nopf;":"ℕ","nopf;":"\uD835\uDD5F","Not;":"⫬","not;":"\xac",not:"\xac","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;
90":"⊈","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;":"\uD835\uDCA9","nscr;":"\uD835\uDCC3","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;":"\xd1",Ntilde:"\xd1","ntilde;":"\xf1",ntilde:"\xf1","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;":"\xd3",Oacute:"\xd3","oacute;":"\xf3",oacute:"\xf3","oast;":"⊛","ocir;":"⊚","Ocirc;":"\xd4",Ocirc:"\xd4","ocirc;":"\xf4",ocirc:"\xf4","Ocy;":"О","ocy;":"о","odash;":"⊝","Odblac;":"Ő","odblac;":"ő","odiv;":"⨸","odot;":"⊙","odsold;":"⦼","OElig;":"Œ","oelig;":"œ","ofcir;":"⦿","Ofr;":"\uD835\uDD12","ofr;":"\uD835\uDD2C","ogon;":"˛","Ograve;":"\xd2",Ograve:"\xd2","ograve;":"\xf2",ograve:"\xf2","ogt;":"⧁","ohbar;":"⦵","ohm;":"Ω","oint;":"∮","olarr;":"↺","olcir;":"⦾","olcross;":"⦻","oline;":"‾","olt;":"⧀","Omacr;":"Ō","omacr;":"ō","Omega;":"Ω","omega;":"ω","Omicron;":"Ο","omicron;":"ο","omid;":"⦶","ominus;":"⊖","Oopf;":"\uD835\uDD46","oopf;":"\uD835\uDD60","opar;":"⦷","OpenCurlyDoubleQuote;":"“","OpenCurlyQuote;":"‘","operp;":"⦹","oplus;":"⊕","Or;":"⩔","or;":"∨","orarr;":"↻","ord;":"⩝","order;":"ℴ","orderof;":"ℴ","ordf;":"\xaa",ordf:"\xaa","ordm;":"\xba",ordm:"\xba","origof;":"⊶","oror;":"⩖","orslope;":"⩗","orv;":"⩛","oS;":"Ⓢ","Oscr;":"\uD835\uDCAA","oscr;":"ℴ","Oslash;":"\xd8",Oslash:"\xd8","oslash;":"\xf8",oslash:"\xf8","osol;":"⊘","Otilde;":"\xd5",Otilde:"\xd5","otilde;":"\xf5",otilde:"\xf5","Otimes;":"⨷","otimes;":"⊗","otimesas;":"⨶","Ouml;":"\xd6",Ouml:"\xd6","ouml;":"\xf6",ouml:"\xf6","ovbar;":"⌽","OverBar;":"‾","OverBrace;":"⏞","OverBracket;":"⎴","OverParenthesis;":"⏜","par;":"∥","para;":"\xb6",para:"\xb6","parallel;":"∥","parsim;":"⫳","parsl;":"⫽","part;":"∂","PartialD;":"∂","Pcy;":"П","pcy;":"п","percnt;":"%","period;":".","permil;":"‰","perp;":"⊥","pertenk;":"‱","Pfr;":"\uD835\uDD13","pfr;":"\uD835\uDD2D","Phi;":"Φ","phi;":"φ","phiv;":"ϕ","phmmat;":"ℳ","phone;":"☎","Pi;":"Π","pi;":"π","pitchfork;":"⋔","piv;":"ϖ","planck;":"ℏ","planckh;":"ℎ","plankv;":"ℏ","plus;":"+","plusacir;":"⨣","plusb;":"⊞","pluscir;":"⨢","plusdo;":"∔","plusdu;":"⨥","pluse;":"⩲","PlusMinus;":"\xb1","plusmn;":"\xb1",plusmn:"\xb1","plussim;":"⨦","plustwo;":"⨧","pm;":"\xb1","Poincareplane;":"ℌ","pointint;":"⨕","Popf;":"ℙ","popf;":"\uD835\uDD61","pound;":"\xa3",pound:"\xa3","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;":"\uD835\uDCAB","pscr;":"\uD835\uDCC5","Psi;":"Ψ","psi;":"ψ","puncsp;":" ","Qfr;":"\uD835\uDD14","qfr;":"\uD835\uDD2E","qint;":"⨌","Qopf;":"ℚ","qopf;":"\uD835\uDD62","qprime;":"⁗","Qscr;":"\uD835\uDCAC","qscr;":"\uD835\uDCC6","quaternions;":"ℍ","quatint;":"⨖","quest;":"?","questeq;":"≟","QUOT;":'"',QUOT:'"',"quot;":'"',quot:'"',"rAarr;":"⇛","race;":"∽̱","Racute;":"Ŕ","racute;":"ŕ","radic;":"√","raemptyv;":"⦳","Rang;":"⟫","rang;":"⟩","rangd;":"⦒","range;":"⦥","rangle;":"⟩","raquo;":"\xbb",raquo:"\xbb","Rarr;":"↠","rArr;":"⇒","rarr;":"→","rarrap;":"⥵","rarrb;
90":"⇥","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;":"\xae",REG:"\xae","reg;":"\xae",reg:"\xae","ReverseElement;":"∋","ReverseEquilibrium;":"⇋","ReverseUpEquilibrium;":"⥯","rfisht;":"⥽","rfloor;":"⌋","Rfr;":"ℜ","rfr;":"\uD835\uDD2F","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;":"\uD835\uDD63","roplus;":"⨮","rotimes;":"⨵","RoundImplies;":"⥰","rpar;":")","rpargt;":"⦔","rppolint;":"⨒","rrarr;":"⇉","Rrightarrow;":"⇛","rsaquo;":"›","Rscr;":"ℛ","rscr;":"\uD835\uDCC7","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;":"\xa7",sect:"\xa7","semi;":";","seswar;":"⤩","setminus;":"∖","setmn;":"∖","sext;":"✶","Sfr;":"\uD835\uDD16","sfr;":"\uD835\uDD30","sfrown;":"⌢","sharp;":"♯","SHCHcy;":"Щ","shchcy;":"щ","SHcy;":"Ш","shcy;":"ш","ShortDownArrow;":"↓","ShortLeftArrow;":"←","shortmid;":"∣","shortparallel;":"∥","ShortRightArrow;":"→","ShortUpArrow;":"↑","shy;":"\xad",shy:"\xad","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;":"\uD835\uDD4A","sopf;":"\uD835\uDD64","spades;":"♠","spadesuit;":"♠","spar;":"∥","sqcap;":"⊓","sqcaps;":"⊓︀","sqcup;":"⊔","sqcups;":"⊔︀","Sqrt;":"√","sqsub;":"⊏","sqsube;":"⊑","sqsubset;":"⊏","sqsubseteq;":"⊑","sqsup;
90":"⊐","sqsupe;":"⊒","sqsupset;":"⊐","sqsupseteq;":"⊒","squ;":"□","Square;":"□","square;":"□","SquareIntersection;":"⊓","SquareSubset;":"⊏","SquareSubsetEqual;":"⊑","SquareSuperset;":"⊐","SquareSupersetEqual;":"⊒","SquareUnion;":"⊔","squarf;":"▪","squf;":"▪","srarr;":"→","Sscr;":"\uD835\uDCAE","sscr;":"\uD835\uDCC8","ssetmn;":"∖","ssmile;":"⌣","sstarf;":"⋆","Star;":"⋆","star;":"☆","starf;":"★","straightepsilon;":"ϵ","straightphi;":"ϕ","strns;":"\xaf","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;":"\xb9",sup1:"\xb9","sup2;":"\xb2",sup2:"\xb2","sup3;":"\xb3",sup3:"\xb3","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;":"\xdf",szlig:"\xdf","Tab;":"	","target;":"⌖","Tau;":"Τ","tau;":"τ","tbrk;":"⎴","Tcaron;":"Ť","tcaron;":"ť","Tcedil;":"Ţ","tcedil;":"ţ","Tcy;":"Т","tcy;":"т","tdot;":"⃛","telrec;":"⌕","Tfr;":"\uD835\uDD17","tfr;":"\uD835\uDD31","there4;":"∴","Therefore;":"∴","therefore;":"∴","Theta;":"Θ","theta;":"θ","thetasym;":"ϑ","thetav;":"ϑ","thickapprox;":"≈","thicksim;":"∼","ThickSpace;":"  ","thinsp;":" ","ThinSpace;":" ","thkap;":"≈","thksim;":"∼","THORN;":"\xde",THORN:"\xde","thorn;":"\xfe",thorn:"\xfe","Tilde;":"∼","tilde;":"˜","TildeEqual;":"≃","TildeFullEqual;":"≅","TildeTilde;":"≈","times;":"\xd7",times:"\xd7","timesb;":"⊠","timesbar;":"⨱","timesd;":"⨰","tint;":"∭","toea;":"⤨","top;":"⊤","topbot;":"⌶","topcir;":"⫱","Topf;":"\uD835\uDD4B","topf;":"\uD835\uDD65","topfork;":"⫚","tosa;":"⤩","tprime;":"‴","TRADE;":"™","trade;":"™","triangle;":"▵","triangledown;":"▿","triangleleft;":"◃","trianglelefteq;":"⊴","triangleq;":"≜","triangleright;":"▹","trianglerighteq;":"⊵","tridot;":"◬","trie;":"≜","triminus;":"⨺","TripleDot;":"⃛","triplus;":"⨹","trisb;":"⧍","tritime;":"⨻","trpezium;":"⏢","Tscr;":"\uD835\uDCAF","tscr;":"\uD835\uDCC9","TScy;":"Ц","tscy;":"ц","TSHcy;":"Ћ","tshcy;":"ћ","Tstrok;":"Ŧ","tstrok;":"ŧ","twixt;":"≬","twoheadleftarrow;":"↞","twoheadrightarrow;":"↠","Uacute;":"\xda",Uacute:"\xda","uacute;":"\xfa",uacute:"\xfa","Uarr;":"↟","uArr;":"⇑","uarr;":"↑","Uarrocir;":"⥉","Ubrcy;":"Ў","ubrcy;":"ў","Ubreve;":"Ŭ","ubreve;":"ŭ","Ucirc;":"\xdb",Ucirc:"\xdb","ucirc;":"\xfb",ucirc:"\xfb","Ucy;":"У","ucy;":"у","udarr;":"⇅","Udblac;":"Ű","udblac;":"ű","udhar;":"⥮","ufisht;":"⥾","Ufr;":"\uD835\uDD18","ufr;":"\uD835\uDD32","Ugrave;":"\xd9",Ugrave:"\xd9","ugrave;":"\xf9",ugrave:"\xf9","uHar;":"⥣","uharl;":"↿","uharr;":"↾","uhblk;":"▀","ulcorn;":"⌜","ulcorner;":"⌜","ulcrop;":"⌏","ultri;":"◸","Umacr;":"Ū","umacr;":"ū","uml;":"\xa8",uml:"\xa8","UnderBar;":"_","UnderBrace;":"⏟","UnderBracket;":"⎵","UnderParenthesis;":"⏝","Union;":"⋃","UnionPlus;":"⊎","Uogon;":"Ų","uogon;":"ų","Uopf;":"\uD835\uDD4C","uopf;":"\uD835\uDD66","UpArrow;":"↑","Uparrow;":"⇑","uparrow;":"↑","UpArrowBar;":"⤒","UpArrowDownArrow;":"⇅","UpDownArrow;":"↕","Updownarrow;":"⇕","updownarrow;":"↕","UpEquilibrium;":"⥮","upharpoonleft;":"↿","upharpoonright;":"↾","uplus;":"⊎","UpperLeftArrow;
90":"↖","UpperRightArrow;":"↗","Upsi;":"ϒ","upsi;":"υ","upsih;":"ϒ","Upsilon;":"Υ","upsilon;":"υ","UpTee;":"⊥","UpTeeArrow;":"↥","upuparrows;":"⇈","urcorn;":"⌝","urcorner;":"⌝","urcrop;":"⌎","Uring;":"Ů","uring;":"ů","urtri;":"◹","Uscr;":"\uD835\uDCB0","uscr;":"\uD835\uDCCA","utdot;":"⋰","Utilde;":"Ũ","utilde;":"ũ","utri;":"▵","utrif;":"▴","uuarr;":"⇈","Uuml;":"\xdc",Uuml:"\xdc","uuml;":"\xfc",uuml:"\xfc","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;":"\uD835\uDD19","vfr;":"\uD835\uDD33","vltri;":"⊲","vnsub;":"⊂⃒","vnsup;":"⊃⃒","Vopf;":"\uD835\uDD4D","vopf;":"\uD835\uDD67","vprop;":"∝","vrtri;":"⊳","Vscr;":"\uD835\uDCB1","vscr;":"\uD835\uDCCB","vsubnE;":"⫋︀","vsubne;":"⊊︀","vsupnE;":"⫌︀","vsupne;":"⊋︀","Vvdash;":"⊪","vzigzag;":"⦚","Wcirc;":"Ŵ","wcirc;":"ŵ","wedbar;":"⩟","Wedge;":"⋀","wedge;":"∧","wedgeq;":"≙","weierp;":"℘","Wfr;":"\uD835\uDD1A","wfr;":"\uD835\uDD34","Wopf;":"\uD835\uDD4E","wopf;":"\uD835\uDD68","wp;":"℘","wr;":"≀","wreath;":"≀","Wscr;":"\uD835\uDCB2","wscr;":"\uD835\uDCCC","xcap;":"⋂","xcirc;":"◯","xcup;":"⋃","xdtri;":"▽","Xfr;":"\uD835\uDD1B","xfr;":"\uD835\uDD35","xhArr;":"⟺","xharr;":"⟷","Xi;":"Ξ","xi;":"ξ","xlArr;":"⟸","xlarr;":"⟵","xmap;":"⟼","xnis;":"⋻","xodot;":"⨀","Xopf;":"\uD835\uDD4F","xopf;":"\uD835\uDD69","xoplus;":"⨁","xotime;":"⨂","xrArr;":"⟹","xrarr;":"⟶","Xscr;":"\uD835\uDCB3","xscr;":"\uD835\uDCCD","xsqcup;":"⨆","xuplus;":"⨄","xutri;":"△","xvee;":"⋁","xwedge;":"⋀","Yacute;":"\xdd",Yacute:"\xdd","yacute;":"\xfd",yacute:"\xfd","YAcy;":"Я","yacy;":"я","Ycirc;":"Ŷ","ycirc;":"ŷ","Ycy;":"Ы","ycy;":"ы","yen;":"\xa5",yen:"\xa5","Yfr;":"\uD835\uDD1C","yfr;":"\uD835\uDD36","YIcy;":"Ї","yicy;":"ї","Yopf;":"\uD835\uDD50","yopf;":"\uD835\uDD6A","Yscr;":"\uD835\uDCB4","yscr;":"\uD835\uDCCE","YUcy;":"Ю","yucy;":"ю","Yuml;":"Ÿ","yuml;":"\xff",yuml:"\xff","Zacute;":"Ź","zacute;":"ź","Zcaron;":"Ž","zcaron;":"ž","Zcy;":"З","zcy;":"з","Zdot;":"Ż","zdot;":"ż","zeetrf;":"ℨ","ZeroWidthSpace;":"​","Zeta;":"Ζ","zeta;":"ζ","Zfr;":"ℨ","zfr;":"\uD835\uDD37","ZHcy;":"Ж","zhcy;":"ж","zigrarr;":"⇝","Zopf;":"ℤ","zopf;":"\uD835\uDD6B","Zscr;":"\uD835\uDCB5","zscr;":"\uD835\uDCCF","zwj;":"‍","zwnj;":"‌"},e0={encode:function(e,t){if("string"!=typeof e)throw TypeError("Expected a String");t||(t={});var n=!0;t.named&&(n=!1),void 0!==t.numeric&&(n=t.numeric);for(var r=t.special||{'"':!0,"'":!0,"<":!0,">":!0,"&":!0},i=eX.ucs2.decode(e),a=[],o=0;o<i.length;o++){var s=i[o],l=eX.ucs2.encode([s]),u=eY[s];u&&(s>=127||r[l])&&!n?a.push("&"+(/;$/.test(u)?u:u+";")):s<32||s>=127||r[l]?a.push("&#"+s+";"):a.push(l)}return a.join("")},decode:function(e){if("string"!=typeof e)throw TypeError("Expected a String");return e.replace(/&(#?[^;\W]+;?)/g,function(e,t){if(n=/^#(\d+);?$/.exec(t))return eX.ucs2.encode([parseInt(n[1],10)]);if(n=/^#[Xx]([A-Fa-f0-9]+);?/.exec(t))return eX.ucs2.encode([parseInt(n[1],16)]);var n,r=/;$/.test(t),i=eJ[r?t.replace(/;$/,""):t]||r&&eJ[t];return"number"==typeof i?eX.ucs2.encode([i]):"string"==typeof i?i:"&"+t})}};function e1(e,t){return function(e){var t=e.str,n=e.idx,r=e.stopAtNewlines,i=e.stopAtRawNbsp;if("string"!=typeof t||!t.length||(n&&"number"==typeof n||(n=0),!t[n+1]))return null;if(t[n+1]&&(t[n+1].trim()||r&&"\n\r".includes(t[n+1])||i&&"\xa0"===t[n+1]))return n+1;if(t[n+2]&&(t[n+2].trim()||r&&"\n\r".includes(t[n+2])||i&&"\xa0"===t[n+2]))return n+2;for(var a=n+1,o=t.length;a<o;a++)if(t[a].trim()||r&&"\n\r".includes(t[a])||i&&"\xa0"===t[a])return a;return null}({str:e,idx:t,stopAtNewlines:!1,stopAtRawNbsp:!1})}function e2(t,n){if(!t)return[];if(Array.isArray(t))return t.filter(function(e){return"string"==typeof e&&e.trim()});if("string"==typeof t)return t.trim()?[t]:[];throw TypeError("string-strip-html/stripHtml(): [THROW_ID_03] ".concat(n," must be array containing zero or more strings or something falsey. Currently it's equal to: ").concat(t,", that a type of ").concat(e(t),"."))}function e3(e,t,n){return!e||!e.quotes||!function(e,t,n,r){for(var i=t,a=e.length;i<a;i++){if(e.startsWith(n,i))return!0;
90if(e.startsWith(">",i))break}return!1}(t,n+1,e.quotes.value,0)}return function(t,n){var r,i="__lodash_hash_undefined__",a="[object Arguments]",o="[object Boolean]",s="[object Date]",l="[object Function]",u="[object GeneratorFunction]",c="[object Map]",d="[object Number]",h="[object Object]",f="[object Promise]",p="[object RegExp]",m="[object Set]",g="[object String]",v="[object Symbol]",y="[object WeakMap]",b="[object ArrayBuffer]",A="[object DataView]",E="[object Float32Array]",w="[object Float64Array]",x="[object Int8Array]",T="[object Int16Array]",S="[object Int32Array]",_="[object Uint8Array]",C="[object Uint8ClampedArray]",k="[object Uint16Array]",L="[object Uint32Array]",P=/\w*$/,O=/^\[object .+?Constructor\]$/,R=/^(?:0|[1-9]\d*)$/,D={};D[a]=D["[object Array]"]=D[b]=D[A]=D[o]=D[s]=D[E]=D[w]=D[x]=D[T]=D[S]=D[c]=D[d]=D[h]=D[p]=D[m]=D[g]=D[v]=D[_]=D[C]=D[k]=D[L]=!0,D["[object Error]"]=D[l]=D[y]=!1;var N="object"==e(I)&&I&&I.Object===Object&&I,M="object"==("undefined"==typeof self?"undefined":e(self))&&self&&self.Object===Object&&self,j=N||M||Function("return this")(),F=n&&!n.nodeType&&n,B=F&&t&&!t.nodeType&&t,U=B&&B.exports===F;function V(e,t){return e.set(t[0],t[1]),e}function z(e,t){return e.add(t),e}function q(e,t,n,r){var i=-1,a=e?e.length:0;for(r&&a&&(n=e[++i]);++i<a;)n=t(n,e[i],i,e);return n}function Q(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(e){}return t}function H(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}function G(e,t){return function(n){return e(t(n))}}function K(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}var $=Array.prototype,W=Function.prototype,Z=Object.prototype,Y=j["__core-js_shared__"],X=(r=/[^.]+$/.exec(Y&&Y.keys&&Y.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"",J=W.toString,ee=Z.hasOwnProperty,et=Z.toString,en=RegExp("^"+J.call(ee).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),er=U?j.Buffer:void 0,ei=j.Symbol,ea=j.Uint8Array,eo=G(Object.getPrototypeOf,Object),es=Object.create,el=Z.propertyIsEnumerable,eu=$.splice,ec=Object.getOwnPropertySymbols,ed=er?er.isBuffer:void 0,eh=G(Object.keys,Object),ef=eN(j,"DataView"),ep=eN(j,"Map"),em=eN(j,"Promise"),eg=eN(j,"Set"),ev=eN(j,"WeakMap"),ey=eN(Object,"create"),eb=eB(ef),eA=eB(ep),eE=eB(em),ew=eB(eg),ex=eB(ev),eT=ei?ei.prototype:void 0,eS=eT?eT.valueOf:void 0;function e_(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function eC(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function ek(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function eI(e){this.__data__=new eC(e)}
90function eL(e,t,n){var r=e[t];ee.call(e,t)&&eU(r,n)&&(void 0!==n||t in e)||(e[t]=n)}function eP(e,t){for(var n=e.length;n--;)if(eU(e[n][0],t))return n;return -1}function eO(e){var t=new e.constructor(e.byteLength);return new ea(t).set(new ea(e)),t}function eR(e,t,n,r){n||(n={});for(var i=-1,a=t.length;++i<a;){var o=t[i],s=r?r(n[o],e[o],o,n,e):void 0;eL(n,o,void 0===s?e[o]:s)}return n}function eD(t,n){var r,i=t.__data__;return("string"==(r=e(n))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?i["string"==typeof n?"string":"hash"]:i.map}function eN(e,t){var n=null==e?void 0:e[t];return!(!eH(n)||X&&X in n)&&(eQ(n)||Q(n)?en:O).test(eB(n))?n:void 0}e_.prototype.clear=function(){this.__data__=ey?ey(null):{}},e_.prototype.delete=function(e){return this.has(e)&&delete this.__data__[e]},e_.prototype.get=function(e){var t=this.__data__;if(ey){var n=t[e];return n===i?void 0:n}return ee.call(t,e)?t[e]:void 0},e_.prototype.has=function(e){var t=this.__data__;return ey?void 0!==t[e]:ee.call(t,e)},e_.prototype.set=function(e,t){return this.__data__[e]=ey&&void 0===t?i:t,this},eC.prototype.clear=function(){this.__data__=[]},eC.prototype.delete=function(e){var t=this.__data__,n=eP(t,e);return!(n<0)&&(n==t.length-1?t.pop():eu.call(t,n,1),!0)},eC.prototype.get=function(e){var t=this.__data__,n=eP(t,e);return n<0?void 0:t[n][1]},eC.prototype.has=function(e){return eP(this.__data__,e)>-1},eC.prototype.set=function(e,t){var n=this.__data__,r=eP(n,e);return r<0?n.push([e,t]):n[r][1]=t,this},ek.prototype.clear=function(){this.__data__={hash:new e_,map:new(ep||eC),string:new e_}},ek.prototype.delete=function(e){return eD(this,e).delete(e)},ek.prototype.get=function(e){return eD(this,e).get(e)},ek.prototype.has=function(e){return eD(this,e).has(e)},ek.prototype.set=function(e,t){return eD(this,e).set(e,t),this},eI.prototype.clear=function(){this.__data__=new eC},eI.prototype.delete=function(e){return this.__data__.delete(e)},eI.prototype.get=function(e){return this.__data__.get(e)},eI.prototype.has=function(e){return this.__data__.has(e)},eI.prototype.set=function(e,t){var n=this.__data__;if(n instanceof eC){var r=n.__data__;if(!ep||r.length<199)return r.push([e,t]),this;n=this.__data__=new ek(r)}return n.set(e,t),this};var eM=ec?G(ec,Object):function(){return[]},ej=function(e){return et.call(e)};function eF(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Z)}function eB(e){if(null!=e){try{return J.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function eU(e,t){return e===t||e!=e&&t!=t}(ef&&ej(new ef(new ArrayBuffer(1)))!=A||ep&&ej(new ep)!=c||em&&ej(em.resolve())!=f||eg&&ej(new eg)!=m||ev&&ej(new ev)!=y)&&(ej=function(e){var t=et.call(e),n=t==h?e.constructor:void 0,r=n?eB(n):void 0;if(r)switch(r){case eb:return A;case eA:return c;case eE:return f;case ew:return m;case ex:return y}return t});var eV=Array.isArray;function ez(e){var t;return null!=e&&"number"==typeof(t=e.length)&&t>-1&&t%1==0&&t<=9007199254740991&&!eQ(e)}var eq=ed||function(){return!1};function eQ(e){var t=eH(e)?et.call(e):"";return t==l||t==u}function eH(t){var n=e(t);return!!t&&("object"==n||"function"==n)}function eG(t){return ez(t)?function(t,n){var r,i=eV(t)||t&&"object"==e(t)&&ez(t)&&ee.call(t,"callee")&&(!el.call(t,"callee")||et.call(t)==a)?function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}(t.length,String):[],o=i.length,s=!!o;for(var l in t)!ee.call(t,l)||s&&("length"==l||(r=null==(r=o)?9007199254740991:r)&&("number"==typeof l||R.test(l))&&l>-1&&l%1==0&&l<r)||i.push(l);return i}(t):function(e){if(!eF(e))return eh(e);var t=[];for(var n in Object(e))ee.call(e,n)&&"constructor"!=n&&t.push(n);return t}(t)}t.exports=function(e){return function e(t,n,r,i,f,y,I){if(i&&(O=y?i(t,f,y,I):i(t)),void 0!==O)return O;if(!eH(t))return t;var O,R=eV(t);if(R){if(N=t.length,M=t.constructor(N),N&&"string"==typeof t[0]&&ee.call(t,"index")&&(M.index=t.index,M.input=t.input),O=M,!n)return function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}(t,O)}else{var N,M,j,F,B,U,G=ej(t),$=G==l||G==u;if(eq(t))return function(e,t){if(t)return e.slice();var n=new e.constructor(e.length);return e.copy(n),n}(t,n);if(G==h||G==a||$&&!y){if(Q(t))return y?t:{};if(O="function"!=typeof(j=$?{}:t).constructor||eF(j)?{}:eH(F=eo(j))?es(F):{},!n)return U=(B=O)&&eR(t,eG(t),B),eR(t,eM(t),U)}else{if(!D[G])return y?t:{};O=function(e,t,n,r){var i,a,l,u=e.constructor;switch(t){case b:return eO(e);case o:case s:return new u(+e);case A:return i=r?eO(e.buffer):e.buffer,new e.constructor(i,e.byteOffset,e.byteLength);case E:case w:case x:case T:case S:case _:case C:case k:case L:return a=r?eO(e.buffer):e.buffer,new e.constructor(a,e.byteOffset,e.length);case c:return q(r?n(H(e),!0):H(e),V,new e.constructor);case d:case g:return new u(e);case p:return(l=new e.constructor(e.source,P.exec(e))).lastIndex=e.lastIndex,l;case m:return q(r?n(K(e),!0):K(e),z,new e.constructor);case v:return eS?Object(eS.call(e)):{}}}(t,G,e,n)}}I||(I=new eI);var W=I.get(t);if(W)return W;if(I.set(t,O),!R)var Z,Y=r?(Z=eG(t),eV(t)?Z:function(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}(Z,eM(t))):eG(t);return function(e,t){for(var n=-1,r=e?e.length:0;
90++n<r&&!1!==t(e[n],n,e););}(Y||t,function(a,o){Y&&(a=t[o=a]),eL(O,o,e(a,n,r,i,o,t,I))}),O}(e,!0,!0)}}(y={exports:{}},y.exports),function t(n,r){var s,l=Date.now(),u=new Set(["!doctype","abbr","address","area","article","aside","audio","base","bdi","bdo","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","doctype","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","math","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","param","picture","pre","progress","rb","rp","rt","rtc","ruby","samp","script","section","select","slot","small","source","span","strong","style","sub","summary","sup","svg","table","tbody","td","template","textarea","tfoot","th","thead","time","title","tr","track","ul","var","video","wbr","xml"]),d=new Set(["a","b","i","p","q","s","u"]),h=new Set([".",",","?",";",")","…",'"',"\xbb"]),f=new Set(["script","style","xml"]),p=[],m=[],g=[];s={attributes:[]};var v,y=null,b=null,A={},w={},x="",T=null;function S(e,t,r){if(Array.isArray(t.stripTogetherWithTheirContents)&&(t.stripTogetherWithTheirContents.includes(s.name)||t.stripTogetherWithTheirContents.includes("*"))){if(Array.isArray(p)&&p.some(function(t){return t.name===s.name&&t.lastClosingBracketAt<e}))for(var i=function(i){if(p[i].name===s.name){(t.stripTogetherWithTheirContents.includes(s.name)||t.stripTogetherWithTheirContents.includes("*"))&&(g=g.filter(function(t){var n=a(t,2),r=n[0],o=n[1];return(r<p[i].lastOpeningBracketAt||r>=e+1)&&(o<=p[i].lastOpeningBracketAt||o>e+1)}));var o=e+1;return s.lastClosingBracketAt&&(o=s.lastClosingBracketAt+1),g.push([p[i].lastOpeningBracketAt,o]),h.has(n[e])?t.cb({tag:s,deleteFrom:p[i].lastOpeningBracketAt,deleteTo:e+1,insert:null,rangesArr:r,proposedReturn:[p[i].lastOpeningBracketAt,e,null]}):t.cb({tag:s,deleteFrom:p[i].lastOpeningBracketAt,deleteTo:e,insert:"",rangesArr:r,proposedReturn:[p[i].lastOpeningBracketAt,e,""]}),p.splice(i,1),"break"}},o=p.length;o--&&"break"!==i(o););else p.push(s)}}function _(e,t,n,r,i,a){var o="";if(n<i&&(o+=e.slice(n,i)),r>a+1){var s=e.slice(a+1,r);s.includes("\n")&&"<"===e[r]?o+=" ":o+=s}if(!h.has(e[t])&&"!"!==e[t]){var l=o.match(/\n/g);return Array.isArray(l)&&l.length?1===l.length?"\n":2===l.length?"\n\n":"\n\n\n":" "}return""}function C(e){if(e.dumpLinkHrefsNearby.enabled&&Object.keys(w).length&&w.tagName===s.name&&s.lastOpeningBracketAt&&(w.openingTagEnds&&s.lastOpeningBracketAt>w.openingTagEnds||!w.openingTagEnds)&&(v=!0),v){var t=e.dumpLinkHrefsNearby.putOnNewLine?"\n\n":"";x="".concat(t).concat(w.hrefValue).concat(t)}}if("string"!=typeof n)throw TypeError("string-strip-html/stripHtml(): [THROW_ID_01] Input must be string! Currently it's: ".concat(e(n).toLowerCase(),", equal to:\n").concat(JSON.stringify(n,null,4)));if(r&&!k(r))throw TypeError("string-strip-html/stripHtml(): [THROW_ID_02] Optional Options Object must be a plain object! Currently it's: ".concat(e(r).toLowerCase(),", equal to:\n").concat(JSON.stringify(r,null,4)));function I(){v&&(w={},v=!1)}var L={ignoreTags:[],onlyStripTags:[],stripTogetherWithTheirContents:o(f),skipHtmlDecoding:!1,trimOnlySpaces:!1,dumpLinkHrefsNearby:{enabled:!1,putOnNewLine:!1,wrapHeads:"",wrapTails:""},cb:null},P=i(i({},L),r);if(Object.prototype.hasOwnProperty.call(P,"returnRangesOnly"))throw TypeError("string-strip-html/stripHtml(): [THROW_ID_03] opts.returnRangesOnly has been removed from the API since v.5 release.");P.ignoreTags=e2(P.ignoreTags,"opts.ignoreTags"),P.onlyStripTags=e2(P.onlyStripTags,"opts.onlyStripTags");var O=!!P.onlyStripTags.length;if(P.onlyStripTags.length&&P.ignoreTags.length&&(P.onlyStripTags=eP.apply(void 0,[P.onlyStripTags].concat(o(P.ignoreTags)))),k(P.dumpLinkHrefsNearby)||(P.dumpLinkHrefsNearby=i({},L.dumpLinkHrefsNearby)),P.dumpLinkHrefsNearby=L.dumpLinkHrefsNearby,k(r)&&Object.prototype.hasOwnProperty.call(r,"dumpLinkHrefsNearby")&&null!=r.dumpLinkHrefsNearby){if(k(r.dumpLinkHrefsNearby))P.dumpLinkHrefsNearby=i(i({},L.dumpLinkHrefsNearby),r.dumpLinkHrefsNearby);else if(r.dumpLinkHrefsNearby)throw TypeError("string-strip-html/stripHtml(): [THROW_ID_04] Optional Options Object's key dumpLinkHrefsNearby was set to ".concat(e(r.dumpLinkHrefsNearby),", equal to ").concat(JSON.stringify(r.dumpLinkHrefsNearby,null,4),". The only allowed value is a plain object. See the API reference."))}P.stripTogetherWithTheirContents?"string"==typeof P.stripTogetherWithTheirContents&&P.stripTogetherWithTheirContents.length>0&&(P.stripTogetherWithTheirContents=[P.stripTogetherWithTheirContents]):P.stripTogetherWithTheirContents=[];var R={};if(P.stripTogetherWithTheirContents&&Array.isArray(P.stripTogetherWithTheirContents)&&P.stripTogetherWithTheirContents.length&&!P.stripTogetherWithTheirContents.every(function(e,t){return"string"==typeof e||(R.el=e,R.i=t,!1)}))throw TypeError("string-strip-html/stripHtml(): [THROW_ID_05] Optional Options Object's key stripTogetherWithTheirContents was set to contain not just string elements! For example, element at index ".concat(R.i," has a value ").concat(R.el," which is not string but ").concat(e(R.el).toLowerCase(),"."));P.cb||(P.cb=function(e){var t=e.rangesArr,n=e.proposedReturn;t.push.apply(t,o(n))});var D=new E({limitToBeAddedWhitespace:!0,limitLinebreaksCount:2});if(!P.skipHtmlDecoding)for(;n!==e0.decode(n);)n=e0.decode(n);for(var N=function(e,r){if(Object.keys(s).length>1&&s.lastClosingBracketAt&&s.lastClosingBracketAt<e&&" "!==n[e]&&null===T&&(T=e),">"===n[e]&&(!s||Object.keys(s).length<2)&&e>1)for(var i=e;i--&&(void 0!==n[i-1]&&">"!==n[i]||"break"!==function(){var a=void 0===n[i-1]?i:i+1,l=n.slice(a,e+1);if(n!=="<".concat(X(l.trim(),"/>"),">")&&o(u).some(function(e){return X(l.trim().split(/\s+/).filter(function(e){return e.trim()}).filter(function(e,t){return 0===t}),"/>").toLowerCase()===e})&&""===t("<".concat(l.trim(),">"),P).result){m.length&&m[m.length-1][0]===s.lastOpeningBracketAt||m.push([a,e+1]),g.length&&g[g.length-1][0]===s.lastOpeningBracketAt||g.push([a,e+1]);var c=_(n,e,a,e+1,a,e+1),d=e+1;
90if(n[d]&&!n[d].trim()){for(var h=d;h<r;h++)if(n[h].trim()){d=h;break}}P.cb({tag:s,deleteFrom:a,deleteTo:d,insert:c,rangesArr:D,proposedReturn:[a,d,c]})}return"break"}()););if("/"!==n[e]||s.quotes&&s.quotes.value||!Number.isInteger(s.lastOpeningBracketAt)||Number.isInteger(s.lastClosingBracketAt)||(s.slashPresent=e),('"'===n[e]||"'"===n[e])&&(s.nameStarts&&s.quotes&&s.quotes.value&&s.quotes.value===n[e]?(A.valueEnds=e,A.value=n.slice(A.valueStarts,e),s.attributes.push(A),A={},s.quotes=void 0,P.dumpLinkHrefsNearby.enabled&&s.attributes.some(function(t){if(t.name&&"href"===t.name.toLowerCase())return h="".concat(P.dumpLinkHrefsNearby.wrapHeads||"").concat(t.value).concat(P.dumpLinkHrefsNearby.wrapTails||""),M=e,!0})&&(w={tagName:s.name,hrefValue:h})):!s.quotes&&s.nameStarts&&(s.quotes={},s.quotes.value=n[e],s.quotes.start=e,A.nameStarts&&A.nameEnds&&A.nameEnds<e&&A.nameStarts<e&&!A.valueStarts&&(A.name=n.slice(A.nameStarts,A.nameEnds)))),!(void 0===s.nameStarts||void 0!==s.nameEnds||n[e].trim()&&(f=n[e],/[-_A-Za-z0-9]/.test(f)))){if(s.nameEnds=e,s.name=n.slice(s.nameStarts,s.nameEnds+(">"!==n[e]&&"/"!==n[e]&&void 0===n[e+1]?1:0)),"!"!==n[s.nameStarts-1]&&!s.name.replace(/-/g,"").length||/^\d+$/.test(s.name[0]))return s={},M=e,"continue";if("<"===n[e]){C(P);var l=_(n,e,s.leftOuterWhitespace,e,s.lastOpeningBracketAt,e);(P.stripTogetherWithTheirContents.includes(s.name)||P.stripTogetherWithTheirContents.includes("*"))&&(g=g.filter(function(t){var n=a(t,2),r=n[0],i=n[1];return!(r===s.leftOuterWhitespace&&i===e)})),P.cb({tag:s,deleteFrom:s.leftOuterWhitespace,deleteTo:e,insert:"".concat(l).concat(x).concat(l),rangesArr:D,proposedReturn:[s.leftOuterWhitespace,e,"".concat(l).concat(x).concat(l)]}),I(),S(e,P,D)}}if(s.quotes&&s.quotes.start&&s.quotes.start<e&&!s.quotes.end&&A.nameEnds&&A.equalsAt&&!A.valueStarts&&(A.valueStarts=e),s.quotes||!A.nameEnds||"="!==n[e]||A.valueStarts||A.equalsAt||(A.equalsAt=e),!s.quotes&&A.nameStarts&&A.nameEnds&&!A.valueStarts&&n[e].trim()&&"="!==n[e]&&(s.attributes.push(A),A={}),s.quotes||!A.nameStarts||A.nameEnds||(n[e].trim()?"="===n[e]?A.equalsAt||(A.nameEnds=e,A.equalsAt=e,A.name=n.slice(A.nameStarts,A.nameEnds)):("/"===n[e]||">"===n[e]||"<"===n[e])&&(A.nameEnds=e,A.name=n.slice(A.nameStarts,A.nameEnds),s.attributes.push(A),A={}):(A.nameEnds=e,A.name=n.slice(A.nameStarts,A.nameEnds))),s.quotes||!(s.nameEnds<e)||n[e-1].trim()||!n[e].trim()||"<>/!".includes(n[e])||A.nameStarts||s.lastClosingBracketAt||(A.nameStarts=e),null!==s.lastOpeningBracketAt&&s.lastOpeningBracketAt<e&&"/"===n[e]&&s.onlyPlausible&&(s.onlyPlausible=!1),null!==s.lastOpeningBracketAt&&s.lastOpeningBracketAt<e&&"/"!==n[e]&&(void 0===s.onlyPlausible&&(n[e].trim()&&"<"!==n[e]||s.slashPresent?s.onlyPlausible=!1:s.onlyPlausible=!0),n[e].trim()&&void 0===s.nameStarts&&"<"!==n[e]&&"/"!==n[e]&&">"!==n[e]&&"!"!==n[e]&&(s.nameStarts=e,s.nameContainsLetters=!1)),s.nameStarts&&!s.quotes&&n[e].toLowerCase()!==n[e].toUpperCase()&&(s.nameContainsLetters=!0),">"===n[e]&&e3(s,n,e)&&void 0!==s.lastOpeningBracketAt&&(s.lastClosingBracketAt=e,T=null,Object.keys(A).length&&(s.attributes.push(A),A={}),P.dumpLinkHrefsNearby.enabled&&w.tagName&&!w.openingTagEnds&&(w.openingTagEnds=e)),void 0!==s.lastOpeningBracketAt){if(void 0===s.lastClosingBracketAt){if(s.lastOpeningBracketAt<e&&"<"!==n[e]&&(void 0===n[e+1]||"<"===n[e+1])&&s.nameContainsLetters){if(s.name=n.slice(s.nameStarts,s.nameEnds?s.nameEnds:e+1).toLowerCase(),m.length&&m[m.length-1][0]===s.lastOpeningBracketAt||m.push([s.lastOpeningBracketAt,e+1]),P.ignoreTags.includes(s.name)||s.onlyPlausible&&!u.has(s.name))return s={},A={},M=e,"continue";if((u.has(s.name)||d.has(s.name))&&(!1===s.onlyPlausible||!0===s.onlyPlausible&&s.attributes.length)||void 0===n[e+1]){C(P);var c=_(n,e,s.leftOuterWhitespace,e+1,s.lastOpeningBracketAt,s.lastClosingBracketAt);P.cb({tag:s,deleteFrom:s.leftOuterWhitespace,deleteTo:e+1,insert:"".concat(c).concat(x).concat(c),rangesArr:D,proposedReturn:[s.leftOuterWhitespace,e+1,"".concat(c).concat(x).concat(c)]}),I(),S(e,P,D)}if(!g.length||g[g.length-1][0]!==s.lastOpeningBracketAt&&g[g.length-1][1]!==e+1){if(P.stripTogetherWithTheirContents.includes(s.name)||P.stripTogetherWithTheirContents.includes("*")){for(var h,f,E,L=p.length;L--;)p[L].name===s.name&&(E=p[L]);E?(g=g.filter(function(e){return a(e,1)[0]!==E.lastOpeningBracketAt})).push([E.lastOpeningBracketAt,e+1]):g.push([s.lastOpeningBracketAt,e+1])}else g.push([s.lastOpeningBracketAt,e+1])}}}else if(e>s.lastClosingBracketAt&&n[e].trim()||void 0===n[e+1]){var R=s.lastClosingBracketAt===e?e+1:e;if(P.trimOnlySpaces&&R===r-1&&null!==T&&T<e&&(R=T),m.length&&m[m.length-1][0]===s.lastOpeningBracketAt||m.push([s.lastOpeningBracketAt,s.lastClosingBracketAt+1]),!O&&P.ignoreTags.includes(s.name)||O&&!P.onlyStripTags.includes(s.name))P.cb({tag:s,deleteFrom:null,deleteTo:null,insert:null,rangesArr:D,proposedReturn:[]}),s={},A={};else if(!s.onlyPlausible||0===s.attributes.length&&s.name&&(u.has(s.name.toLowerCase())||d.has(s.name.toLowerCase()))||s.attributes&&s.attributes.some(function(e){return e.equalsAt})){g.length&&g[g.length-1][0]===s.lastOpeningBracketAt||g.push([s.lastOpeningBracketAt,s.lastClosingBracketAt+1]);var N,j=_(n,e,s.leftOuterWhitespace,R,s.lastOpeningBracketAt,s.lastClosingBracketAt);x="",v=!1,C(P),N="string"==typeof x&&x.length?"".concat(j).concat(x).concat("\n\n"===j?"\n":j):j,0!==s.leftOuterWhitespace&&e1(n,R-1)||(N=""),P.cb({tag:s,deleteFrom:s.leftOuterWhitespace,deleteTo:R,insert:N,rangesArr:D,proposedReturn:[s.leftOuterWhitespace,R,N]}),I(),S(e,P,D)}else s={};">"!==n[e]&&(s={})}}if("<"===n[e]&&"<"!==n[e-1]&&!"'\"".includes(n[e+1])&&(!"'\"".includes(n[e+2])||/\w/.test(n[e+1]))&&("c"!==n[e+1]||":"!==n[e+2])&&("%"!==n[e+1]||"@"!==n[e+2])&&("f"!==n[e+1]||"m"!==n[e+2]||"t"!==n[e+3]||":"!==n[e+4])&&("s"!==n[e+1]||"q"!==n[e+2]||"l"!==n[e+3]||":"!==n[e+4])&&("x"!==n[e+1]||":"!==n[e+2])&&("f"!==n[e+1]||"n"!==n[e+2]||":"!==n[e+3])&&e3(s,n,e)){if(">"===n[e1(n,e)])return M=e,"continue";if(s.nameEnds&&s.nameEnds<e&&!s.lastClosingBracketAt&&(!0===s.onlyPlausible&&s.attributes&&s.attributes.length||!1===s.onlyPlausible)){var F=_(n,e,s.leftOuterWhitespace,e,s.lastOpeningBracketAt,e);P.cb({tag:s,deleteFrom:s.leftOuterWhitespace,deleteTo:e,insert:F,rangesArr:D,proposedReturn:[s.leftOuterWhitespace,e,F]}),S(e,P,D),s={},A={}}if(void 0!==s.lastOpeningBracketAt&&s.onlyPlausible&&s.name&&!s.quotes&&(s.lastOpeningBracketAt=void 0,s.name=void 0,s.onlyPlausible=!1),!(void 0!==s.lastOpeningBracketAt&&s.onlyPlausible||s.quotes)&&(s.lastOpeningBracketAt=e,s.slashPresent=!1,s.attributes=[],null===y?s.leftOuterWhitespace=e:P.trimOnlySpaces&&0===y?s.leftOuterWhitespace=b||e:s.leftOuterWhitespace=y,"!--"==="".concat(n[e+1]).concat(n[e+2]).concat(n[e+3])||"![CDATA["==="".concat(n[e+1]).concat(n[e+2]).concat(n[e+3]).concat(n[e+4]).concat(n[e+5]).concat(n[e+6]).concat(n[e+7]).concat(n[e+8]))){var B,U=!0;"-"===n[e+2]&&(U=!1);for(var V=e;V<r;V++)if((B||!U||"]]>"!=="".concat(n[V-2]).concat(n[V-1]).concat(n[V]))&&(U||"-->"!=="".concat(n[V-2]).concat(n[V-1]).concat(n[V]))||(B=V),B&&(B<V&&n[V].trim()||void 0===n[V+1])){var z=V;(void 0!==n[V+1]||n[V].trim())&&">"!==n[V]||(z+=1),m.length&&m[m.length-1][0]===s.lastOpeningBracketAt||m.push([s.lastOpeningBracketAt,B+1]),g.length&&g[g.length-1][0]===s.lastOpeningBracketAt||g.push([s.lastOpeningBracketAt,B+1]);var q=_(n,V,s.leftOuterWhitespace,z,s.lastOpeningBracketAt,B);P.cb({tag:s,deleteFrom:s.leftOuterWhitespace,deleteTo:z,insert:q,rangesArr:D,proposedReturn:[s.leftOuterWhitespace,z,q]}),e=V-1,">"===n[V]&&(e=V),s={},A={};break}}}""===n[e].trim()?null===y&&(y=e,void 0!==s.lastOpeningBracketAt&&s.lastOpeningBracketAt<e&&s.nameStarts&&s.nameStarts<s.lastOpeningBracketAt&&e===s.lastOpeningBracketAt+1&&!p.some(function(e){return e.name===s.name})&&(s.onlyPlausible=!0,s.name=void 0,s.nameStarts=void 0)):null!==y&&(!s.quotes&&A.equalsAt>y-1&&A.nameEnds&&A.equalsAt>A.nameEnds&&'"'!==n[e]&&"'"!==n[e]&&(k(A)&&s.attributes.push(A),A={},s.equalsSpottedAt=void 0),y=null)," "===n[e]?null===b&&(b=e):null!==b&&(b=null),M=e},M=0,j=n.length;M<j;M++)N(M,j);if(n&&(P.trimOnlySpaces&&" "===n[0]||!P.trimOnlySpaces&&!n[0].trim()))for(var F=0,B=n.length;F<B;F++){if(P.trimOnlySpaces&&" "!==n[F]||!P.trimOnlySpaces&&n[F].trim()){D.push([0,F]);break}n[F+1]||D.push([0,F+1])}if(n&&(P.trimOnlySpaces&&" "===n[n.length-1]||!P.trimOnlySpaces&&!n[n.length-1].trim())){for(var U=n.length;U--;
90)if(P.trimOnlySpaces&&" "!==n[U]||!P.trimOnlySpaces&&n[U].trim()){D.push([U+1,n.length]);break}}if((!r||!r.cb)&&D.current()&&(D.current()[0]&&!D.current()[0][0]&&(D.current()[0][1],D.current(),D.ranges[0]=[D.ranges[0][0],D.ranges[0][1]]),D.current()[D.current().length-1]&&D.current()[D.current().length-1][1]===n.length)){D.current()[D.current().length-1][0],D.current();var V=D.ranges[D.ranges.length-1][0];n[V-1]&&(P.trimOnlySpaces&&" "===n[V-1]||!P.trimOnlySpaces&&!n[V-1].trim())&&(V-=1);var z=D.ranges[D.ranges.length-1][2];D.ranges[D.ranges.length-1]=[V,D.ranges[D.ranges.length-1][1]],z&&z.trim()&&D.ranges[D.ranges.length-1].push(z.trimEnd())}return{log:{timeTakenInMilliseconds:Date.now()-l},result:function(t,n,r){var i,a=0,o=0;if(0==arguments.length)throw Error("ranges-apply: [THROW_ID_01] inputs missing!");if("string"!=typeof t)throw TypeError("ranges-apply: [THROW_ID_02] first input argument must be a string! Currently it's: ".concat(e(t),", equal to: ").concat(JSON.stringify(t,null,4)));if(n&&!Array.isArray(n))throw TypeError("ranges-apply: [THROW_ID_03] second input argument must be an array (or null)! Currently it's: ".concat(e(n),", equal to: ").concat(JSON.stringify(n,null,4)));if(r&&"function"!=typeof r)throw TypeError("ranges-apply: [THROW_ID_04] the third input argument must be a function (or falsey)! Currently it's: ".concat(e(r),", equal to: ").concat(JSON.stringify(r,null,4)));if(!n||!n.filter(function(e){return e}).length)return t;var s=(i=Array.isArray(n)&&(Number.isInteger(n[0])&&n[0]>=0||/^\d*$/.test(n[0]))&&(Number.isInteger(n[1])&&n[1]>=0||/^\d*$/.test(n[1]))?[Array.from(n)]:Array.from(n)).length,l=0;i.filter(function(e){return e}).forEach(function(t,n){if(r&&(a=Math.floor(l/s*10))!==o&&(o=a,r(a)),!Array.isArray(t))throw TypeError("ranges-apply: [THROW_ID_05] ranges array, second input arg., has ".concat(n,"th element not an array: ").concat(JSON.stringify(t,null,4),", which is ").concat(e(t)));if(!Number.isInteger(t[0])||t[0]<0){if(!/^\d*$/.test(t[0]))throw TypeError("ranges-apply: [THROW_ID_06] ranges array, second input arg. has ".concat(n,"th element, array [").concat(t[0],",").concat(t[1],"]. That array has first element not an integer, but ").concat(e(t[0]),", equal to: ").concat(JSON.stringify(t[0],null,4),". Computer doesn't like this."));i[n][0]=Number.parseInt(i[n][0],10)}if(!Number.isInteger(t[1])){if(!/^\d*$/.test(t[1]))throw TypeError("ranges-apply: [THROW_ID_07] ranges array, second input arg. has ".concat(n,"th element, array [").concat(t[0],",").concat(t[1],"]. That array has second element not an integer, but ").concat(e(t[1]),", equal to: ").concat(JSON.stringify(t[1],null,4),". Computer doesn't like this."));i[n][1]=Number.parseInt(i[n][1],10)}l+=1});var u=c(i,{progressFn:function(e){r&&(a=10+Math.floor(e/10))!==o&&(o=a,r(a))}});if(!u)return t;var d=u.length;if(d>0){var h=t.slice(u[d-1][1]);t=u.reduce(function(e,n,i,s){r&&(a=20+Math.floor(i/d*80))!==o&&(o=a,r(a));var l=0===i?0:s[i-1][1],u=s[i][0];return e+t.slice(l,u)+(null!=s[i][2]?s[i][2]:"")},"")+h}return t}(n,D.current()),ranges:D.current(),allTagLocations:m,filteredTagLocations:g}}}()},7649:function(e,t,n){"use strict";var r=n(6156),i=n(8262);function a(){return(a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var o={run:function(){var e=this,t=e.slides.eq(e.activeIndex),n=e.params.autoplay.delay;t.attr("data-swiper-autoplay")&&(n=t.attr("data-swiper-autoplay")||e.params.autoplay.delay),clearTimeout(e.autoplay.timeout),e.autoplay.timeout=(0,i.Y3)(function(){e.params.autoplay.reverseDirection?e.params.loop?(e.loopFix(),e.slidePrev(e.params.speed,!0,!0),e.emit("autoplay")):e.isBeginning?e.params.autoplay.stopOnLastSlide?e.autoplay.stop():(e.slideTo(e.slides.length-1,e.params.speed,!0,!0),e.emit("autoplay")):(e.slidePrev(e.params.speed,!0,!0),e.emit("autoplay")):e.params.loop?(e.loopFix(),e.slideNext(e.params.speed,!0,!0),e.emit("autoplay")):e.isEnd?e.params.autoplay.stopOnLastSlide?e.autoplay.stop():(e.slideTo(0,e.params.speed,!0,
90!0),e.emit("autoplay")):(e.slideNext(e.params.speed,!0,!0),e.emit("autoplay")),e.params.cssMode&&e.autoplay.running&&e.autoplay.run()},n)},start:function(){return void 0===this.autoplay.timeout&&!this.autoplay.running&&(this.autoplay.running=!0,this.emit("autoplayStart"),this.autoplay.run(),!0)},stop:function(){return!!this.autoplay.running&&void 0!==this.autoplay.timeout&&(this.autoplay.timeout&&(clearTimeout(this.autoplay.timeout),this.autoplay.timeout=void 0),this.autoplay.running=!1,this.emit("autoplayStop"),!0)},pause:function(e){this.autoplay.running&&(this.autoplay.paused||(this.autoplay.timeout&&clearTimeout(this.autoplay.timeout),this.autoplay.paused=!0,0!==e&&this.params.autoplay.waitForTransition?(this.$wrapperEl[0].addEventListener("transitionend",this.autoplay.onTransitionEnd),this.$wrapperEl[0].addEventListener("webkitTransitionEnd",this.autoplay.onTransitionEnd)):(this.autoplay.paused=!1,this.autoplay.run())))},onVisibilityChange:function(){var e=(0,r.Me)();"hidden"===e.visibilityState&&this.autoplay.running&&this.autoplay.pause(),"visible"===e.visibilityState&&this.autoplay.paused&&(this.autoplay.run(),this.autoplay.paused=!1)},onTransitionEnd:function(e){this&&!this.destroyed&&this.$wrapperEl&&e.target===this.$wrapperEl[0]&&(this.$wrapperEl[0].removeEventListener("transitionend",this.autoplay.onTransitionEnd),this.$wrapperEl[0].removeEventListener("webkitTransitionEnd",this.autoplay.onTransitionEnd),this.autoplay.paused=!1,this.autoplay.running?this.autoplay.run():this.autoplay.stop())}};t.Z={name:"autoplay",params:{autoplay:{enabled:!1,delay:3e3,waitForTransition:!0,disableOnInteraction:!0,stopOnLastSlide:!1,reverseDirection:!1}},create:function(){(0,i.cR)(this,{autoplay:a(a({},o),{},{running:!1,paused:!1})})},on:{init:function(e){e.params.autoplay.enabled&&(e.autoplay.start(),(0,r.Me)().addEventListener("visibilitychange",e.autoplay.onVisibilityChange))},beforeTransitionStart:function(e,t,n){e.autoplay.running&&(n||!e.params.autoplay.disableOnInteraction?e.autoplay.pause(t):e.autoplay.stop())},sliderFirstMove:function(e){e.autoplay.running&&(e.params.autoplay.disableOnInteraction?e.autoplay.stop():e.autoplay.pause())},touchEnd:function(e){e.params.cssMode&&e.autoplay.paused&&!e.params.autoplay.disableOnInteraction&&e.autoplay.run()},destroy:function(e){e.autoplay.running&&e.autoplay.stop(),(0,r.Me)().removeEventListener("visibilitychange",e.autoplay.onVisibilityChange)}}}},5186:function(e,t,n){"use strict";var r=n(8557),i=n(8262);function a(){return(a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var o={update:function(){var e=this.params.navigation;if(!this.params.loop){var t=this.navigation,n=t.$nextEl,r=t.$prevEl;r&&r.length>0&&(this.isBeginning?r.addClass(e.disabledClass):r.removeClass(e.disabledClass),r[this.params.watchOverflow&&this.isLocked?"addClass":"removeClass"](e.lockClass)),n&&n.length>0&&(this.isEnd?n.addClass(e.disabledClass):n.removeClass(e.disabledClass),n[this.params.watchOverflow&&this.isLocked?"addClass":"removeClass"](e.lockClass))}},onPrevClick:function(e){e.preventDefault(),(!this.isBeginning||this.params.loop)&&this.slidePrev()},onNextClick:function(e){e.preventDefault(),(!this.isEnd||this.params.loop)&&this.slideNext()},init:function(){var e,t,n=this.params.navigation;(n.nextEl||n.prevEl)&&(n.nextEl&&(e=(0,r.Z)(n.nextEl),this.params.uniqueNavElements&&"string"==typeof n.nextEl&&e.length>1&&1===this.$el.find(n.nextEl).length&&(e=this.$el.find(n.nextEl))),n.prevEl&&(t=(0,r.Z)(n.prevEl),this.params.uniqueNavElements&&"string"==typeof n.prevEl&&t.length>1&&1===this.$el.find(n.prevEl).length&&(t=this.$el.find(n.prevEl))),e&&e.length>0&&e.on("click",this.navigation.onNextClick),t&&t.length>0&&t.on("click",this.navigation.onPrevClick),(0,i.l7)(this.navigation,{$nextEl:e,nextEl:e&&e[0],$prevEl:t,prevEl:t&&t[0]}))},destroy:function(){var e=this.navigation,t=e.$nextEl,n=e.$prevEl;t&&t.length&&(t.off("click",this.navigation.onNextClick),t.removeClass(this.params.navigation.disabledClass)),n&&n.length&&(n.off("
90click",this.navigation.onPrevClick),n.removeClass(this.params.navigation.disabledClass))}};t.Z={name:"navigation",params:{navigation:{nextEl:null,prevEl:null,hideOnClick:!1,disabledClass:"swiper-button-disabled",hiddenClass:"swiper-button-hidden",lockClass:"swiper-button-lock"}},create:function(){(0,i.cR)(this,{navigation:a({},o)})},on:{init:function(e){e.navigation.init(),e.navigation.update()},toEdge:function(e){e.navigation.update()},fromEdge:function(e){e.navigation.update()},destroy:function(e){e.navigation.destroy()},click:function(e,t){var n,i=e.navigation,a=i.$nextEl,o=i.$prevEl;e.params.navigation.hideOnClick&&!(0,r.Z)(t.target).is(o)&&!(0,r.Z)(t.target).is(a)&&(a?n=a.hasClass(e.params.navigation.hiddenClass):o&&(n=o.hasClass(e.params.navigation.hiddenClass)),!0===n?e.emit("navigationShow"):e.emit("navigationHide"),a&&a.toggleClass(e.params.navigation.hiddenClass),o&&o.toggleClass(e.params.navigation.hiddenClass))}}}},2997:function(e,t,n){"use strict";var r=n(8557),i=n(8262);function a(){return(a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var o={update:function(){var e=this.rtl,t=this.params.pagination;if(t.el&&this.pagination.el&&this.pagination.$el&&0!==this.pagination.$el.length){var n=this.virtual&&this.params.virtual.enabled?this.virtual.slides.length:this.slides.length,i=this.pagination.$el,a=this.params.loop?Math.ceil((n-2*this.loopedSlides)/this.params.slidesPerGroup):this.snapGrid.length;if(this.params.loop?((o=Math.ceil((this.activeIndex-this.loopedSlides)/this.params.slidesPerGroup))>n-1-2*this.loopedSlides&&(o-=n-2*this.loopedSlides),o>a-1&&(o-=a),o<0&&"bullets"!==this.params.paginationType&&(o=a+o)):o=void 0!==this.snapIndex?this.snapIndex:this.activeIndex||0,"bullets"===t.type&&this.pagination.bullets&&this.pagination.bullets.length>0){var o,s,l,u,c=this.pagination.bullets;if(t.dynamicBullets&&(this.pagination.bulletSize=c.eq(0)[this.isHorizontal()?"outerWidth":"outerHeight"](!0),i.css(this.isHorizontal()?"width":"height",this.pagination.bulletSize*(t.dynamicMainBullets+4)+"px"),t.dynamicMainBullets>1&&void 0!==this.previousIndex&&(this.pagination.dynamicBulletIndex+=o-this.previousIndex,this.pagination.dynamicBulletIndex>t.dynamicMainBullets-1?this.pagination.dynamicBulletIndex=t.dynamicMainBullets-1:this.pagination.dynamicBulletIndex<0&&(this.pagination.dynamicBulletIndex=0)),u=((l=(s=o-this.pagination.dynamicBulletIndex)+(Math.min(c.length,t.dynamicMainBullets)-1))+s)/2),c.removeClass(t.bulletActiveClass+" "+t.bulletActiveClass+"-next "+t.bulletActiveClass+"-next-next "+t.bulletActiveClass+"-prev "+t.bulletActiveClass+"-prev-prev "+t.bulletActiveClass+"-main"),i.length>1)c.each(function(e){var n=(0,r.Z)(e),i=n.index();i===o&&n.addClass(t.bulletActiveClass),t.dynamicBullets&&(i>=s&&i<=l&&n.addClass(t.bulletActiveClass+"-main"),i===s&&n.prev().addClass(t.bulletActiveClass+"-prev").prev().addClass(t.bulletActiveClass+"-prev-prev"),i===l&&n.next().addClass(t.bulletActiveClass+"-next").next().addClass(t.bulletActiveClass+"-next-next"))});else{var d=c.eq(o),h=d.index();if(d.addClass(t.bulletActiveClass),t.dynamicBullets){for(var f=c.eq(s),p=c.eq(l),m=s;m<=l;m+=1)c.eq(m).addClass(t.bulletActiveClass+"-main");if(this.params.loop){if(h>=c.length-t.dynamicMainBullets){for(var g=t.dynamicMainBullets;g>=0;g-=1)c.eq(c.length-g).addClass(t.bulletActiveClass+"-main");c.eq(c.length-t.dynamicMainBullets-1).addClass(t.bulletActiveClass+"-prev")}else f.prev().addClass(t.bulletActiveClass+"-prev").prev().addClass(t.bulletActiveClass+"-prev-prev"),p.next().addClass(t.bulletActiveClass+"-next").next().addClass(t.bulletActiveClass+"-next-next")}else f.prev().addClass(t.bulletActiveClass+"-prev").prev().addClass(t.bulletActiveClass+"-prev-prev"),p.next().addClass(t.bulletActiveClass+"-next").next().addClass(t.bulletActiveClass+"-next-next")}}if(t.dynamicBullets){var v=Math.min(c.length,t.dynamicMainBullets+4),y=(this.pagination.bulletSize*v-this.pagination.bulletSize)/2-u*this.pagination.bulletSize;c.css(this.isHorizontal()?e?"right":"left":"top",y+"px")}}if("fraction"===t.type&&(i.find("."+t.currentClass).text(t.formatFractionCurrent(o+1)),i.find("."+t.totalClass).text(t.formatFractionTotal(a))),"progressbar"===t.type){b=t.progressbarOpposite?this.isHorizontal()?"vertical":"horizontal":this.isHorizontal()?"horizontal":"vertical";var b,A=(o+1)/a,E=1,w=1;"horizontal"===b?E=A:w=A,i.find("."+t.progressbarFillClass).transform("translate3d(0,
900,0) scaleX("+E+") scaleY("+w+")").transition(this.params.speed)}"custom"===t.type&&t.renderCustom?(i.html(t.renderCustom(this,o+1,a)),this.emit("paginationRender",i[0])):this.emit("paginationUpdate",i[0]),i[this.params.watchOverflow&&this.isLocked?"addClass":"removeClass"](t.lockClass)}},render:function(){var e=this.params.pagination;if(e.el&&this.pagination.el&&this.pagination.$el&&0!==this.pagination.$el.length){var t=this.virtual&&this.params.virtual.enabled?this.virtual.slides.length:this.slides.length,n=this.pagination.$el,r="";if("bullets"===e.type){for(var i=this.params.loop?Math.ceil((t-2*this.loopedSlides)/this.params.slidesPerGroup):this.snapGrid.length,a=0;a<i;a+=1)e.renderBullet?r+=e.renderBullet.call(this,a,e.bulletClass):r+="<"+e.bulletElement+' class="'+e.bulletClass+'"></'+e.bulletElement+">";n.html(r),this.pagination.bullets=n.find("."+e.bulletClass)}"fraction"===e.type&&(r=e.renderFraction?e.renderFraction.call(this,e.currentClass,e.totalClass):'<span class="'+e.currentClass+'"></span> / <span class="'+e.totalClass+'"></span>',n.html(r)),"progressbar"===e.type&&(r=e.renderProgressbar?e.renderProgressbar.call(this,e.progressbarFillClass):'<span class="'+e.progressbarFillClass+'"></span>',n.html(r)),"custom"!==e.type&&this.emit("paginationRender",this.pagination.$el[0])}},init:function(){var e=this,t=e.params.pagination;if(t.el){var n=(0,r.Z)(t.el);0!==n.length&&(e.params.uniqueNavElements&&"string"==typeof t.el&&n.length>1&&(n=e.$el.find(t.el)),"bullets"===t.type&&t.clickable&&n.addClass(t.clickableClass),n.addClass(t.modifierClass+t.type),"bullets"===t.type&&t.dynamicBullets&&(n.addClass(""+t.modifierClass+t.type+"-dynamic"),e.pagination.dynamicBulletIndex=0,t.dynamicMainBullets<1&&(t.dynamicMainBullets=1)),"progressbar"===t.type&&t.progressbarOpposite&&n.addClass(t.progressbarOppositeClass),t.clickable&&n.on("click","."+t.bulletClass,function(t){t.preventDefault();var n=(0,r.Z)(this).index()*e.params.slidesPerGroup;e.params.loop&&(n+=e.loopedSlides),e.slideTo(n)}),(0,i.l7)(e.pagination,{$el:n,el:n[0]}))}},destroy:function(){var e=this.params.pagination;if(e.el&&this.pagination.el&&this.pagination.$el&&0!==this.pagination.$el.length){var t=this.pagination.$el;t.removeClass(e.hiddenClass),t.removeClass(e.modifierClass+e.type),this.pagination.bullets&&this.pagination.bullets.removeClass(e.bulletActiveClass),e.clickable&&t.off("click","."+e.bulletClass)}}};t.Z={name:"pagination",params:{pagination:{el:null,bulletElement:"span",clickable:!1,hideOnClick:!1,renderBullet:null,renderProgressbar:null,renderFraction:null,renderCustom:null,progressbarOpposite:!1,type:"bullets",dynamicBullets:!1,dynamicMainBullets:1,formatFractionCurrent:function(e){return e},formatFractionTotal:function(e){return e},bulletClass:"swiper-pagination-bullet",bulletActiveClass:"swiper-pagination-bullet-active",modifierClass:"swiper-pagination-",currentClass:"swiper-pagination-current",totalClass:"swiper-pagination-total",hiddenClass:"swiper-pagination-hidden",progressbarFillClass:"swiper-pagination-progressbar-fill",progressbarOppositeClass:"swiper-pagination-progressbar-opposite",clickableClass:"swiper-pagination-clickable",lockClass:"swiper-pagination-lock"}},create:function(){(0,i.cR)(this,{pagination:a({dynamicBulletIndex:0},o)})},on:{init:function(e){e.pagination.init(),e.pagination.render(),e.pagination.update()},activeIndexChange:function(e){e.params.loop?e.pagination.update():void 0===e.snapIndex&&e.pagination.update()},snapIndexChange:function(e){e.params.loop||e.pagination.update()},slidesLengthChange:function(e){e.params.loop&&(e.pagination.render(),e.pagination.update())},snapGridLengthChange:function(e){e.params.loop||(e.pagination.render(),e.pagination.update())},destroy:function(e){e.pagination.destroy()},click:function(e,t){e.params.pagination.el&&e.params.pagination.hideOnClick&&e.pagination.$el.length>0&&!(0,r.Z)(t.target).hasClass(e.params.pagination.bulletClass)&&(!0===e.pagination.$el.hasClass(e.params.pagination.hiddenClass)?e.emit("paginationShow"):e.emit("paginationHide"),e.pagination.$el.toggleClass(e.params.pagination.hiddenClass))}}}},4002:function(e,t,n){"use strict";n.d(t,{o:function(){return o}});var r=n(7294),i=n(1077);function a(){return(a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var o=(0,r.forwardRef)(function(e,t){var n=void 0===e?{}:e,o=n.tag,s=n.children,l=n.className,u=void 0===l?"":l,c=n.swiper,d=n.zoom,h=function(e,t){if(null==e)return{};var n,r,i={},a=Object.keys(e);for(r=0;r<a.length;r++)t.indexOf(n=a[r])>=0||(i[n]=e[n]);return i}(n,["tag","children","className","swiper","zoom"]),f=(0,r.useRef)(null),p=(0,r.useState)("swiper-slide"),m=p[0],g=p[1];function v(e,t,n){t===f.current&&g(n)}return(0,r.useEffect)(function(){if(t&&(t.current=f.current),f.current&&c){if(c.destroyed){"swiper-slide"!==m&&g("swiper-slide");return}return c.on("_slideClass",v),function(){c&&c.off("_slideClass",v)}}}),r.createElement(void 0===o?"div":o,a({ref:f,className:(0,i.kI)(""+m+(u?" "+u:""))},h),d?r.createElement("div",{className:"swiper-zoom-container","data-swiper-zoom":"number"==typeof d?d:void 0},s):s)});o.displayName="SwiperSlide"},1713:function(e,t,n){"use strict";n.d(t,{t:function(){return c}});var r=n(7294),i=n(3876),a=n(1077),o=["init","_direction","touchEventsTarget","initialSlide","_speed","cssMode","updateOnWindowResize","_width","_height","preventInteractionOnTransition","userAgent","url","_edgeSwipeDetection","_edgeSwipeThreshold","_freeMode","_freeModeMomentum","_freeModeMomentumRatio","_freeModeMomentumBounce","_freeModeMomentumBounceRatio","_freeModeMomentumVelocityRatio","_freeModeSticky","_freeModeMinimumVelocity","_autoHeight","setWrapperSize","virtualTranslate","_effect","breakpoints","_spaceBetween","_slidesPerView","_slidesPerColumn","_slidesPerColumnFill","_slidesPerGroup","_slidesPerGroupSkip","_centeredSlides","_centeredSlidesB
90ounds","_slidesOffsetBefore","_slidesOffsetAfter","normalizeSlideIndex","_centerInsufficientSlides","_watchOverflow","roundLengths","touchRatio","touchAngle","simulateTouch","_shortSwipes","_longSwipes","longSwipesRatio","longSwipesMs","_followFinger","allowTouchMove","_threshold","touchMoveStopPropagation","touchStartPreventDefault","touchStartForcePreventDefault","touchReleaseOnEdges","uniqueNavElements","_resistance","_resistanceRatio","_watchSlidesProgress","_watchSlidesVisibility","_grabCursor","preventClicks","preventClicksPropagation","_slideToClickedSlide","_preloadImages","updateOnImagesReady","_loop","_loopAdditionalSlides","_loopedSlides","_loopFillGroupWithBlank","loopPreventsSlide","_allowSlidePrev","_allowSlideNext","_swipeHandler","_noSwiping","noSwipingClass","noSwipingSelector","passiveListeners","containerModifierClass","slideClass","slideBlankClass","slideActiveClass","slideDuplicateActiveClass","slideVisibleClass","slideDuplicateClass","slideNextClass","slideDuplicateNextClass","slidePrevClass","slideDuplicatePrevClass","wrapperClass","runCallbacksOnInit","a11y","autoplay","_controller","coverflowEffect","cubeEffect","fadeEffect","flipEffect","hashNavigation","history","keyboard","lazy","mousewheel","_navigation","_pagination","parallax","_scrollbar","_thumbs","virtual","zoom"];function s(e,t){var n=Math.ceil(parseFloat(t.loopedSlides||t.slidesPerView,10));return(n+=t.loopAdditionalSlides)>e.length&&(n=e.length),n}function l(e,t){return"undefined"==typeof window?(0,r.useEffect)(e,t):(0,r.useLayoutEffect)(e,t)}function u(){return(u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var c=(0,r.forwardRef)(function(e,t){var n,c,d,h,f,p,m,g=void 0===e?{}:e,v=g.className,y=g.tag,b=g.wrapperTag,A=g.children,E=g.onSwiper,w=function(e,t){if(null==e)return{};var n,r,i={},a=Object.keys(e);for(r=0;r<a.length;r++)t.indexOf(n=a[r])>=0||(i[n]=e[n]);return i}(g,["className","tag","wrapperTag","children","onSwiper"]),x=(0,r.useState)("swiper-container"),T=x[0],S=x[1],_=(0,r.useState)(null),C=_[0],k=_[1],I=(0,r.useRef)(!1),L=(0,r.useRef)(null),P=(0,r.useRef)(null),O=(0,r.useRef)(null),R=(0,r.useRef)(null),D=(0,r.useRef)(null),N=(0,r.useRef)(null),M=(0,r.useRef)(null),j=(0,r.useRef)(null),F=(void 0===(n=w)&&(n={}),c={_emitClasses:!0,on:{}},d={},(0,a.l7)(c,i.default.defaults),(0,a.l7)(c,i.default.extendedDefaults),h={},f=o.map(function(e){return e.replace(/_/,"")}),Object.keys(n).forEach(function(e){f.indexOf(e)>=0?(0,a.Kn)(n[e])?(c[e]={},d[e]={},(0,a.l7)(c[e],n[e]),(0,a.l7)(d[e],n[e])):(c[e]=n[e],d[e]=n[e]):0===e.search(/on[A-Z]/)&&"function"==typeof n[e]?c.on[""+e[2].toLowerCase()+e.substr(3)]=n[e]:h[e]=n[e]}),{params:c,passedParams:d,rest:h}),B=F.params,U=F.passedParams,V=F.rest,z=(p=[],m={"container-start":[],"container-end":[],"wrapper-start":[],"wrapper-end":[]},!function e(t){r.Children.toArray(t).forEach(function(t){if(t.type===r.Fragment&&t.props.children){e(t.props.children);return}t.type&&"SwiperSlide"===t.type.displayName?p.push(t):t.props&&t.props.slot&&m[t.props.slot]?m[t.props.slot].push(t):m["container-end"].push(t)})}(A),{slides:p,slots:m}),q=z.slides,Q=z.slots,H=function(e,t,n,r){var i=[];if(!t)return i;var a=r.map(function(e){return e.key}),s=n.map(function(e){return e.key});return a.join("")!==s.join("")&&i.push("children"),r.length!==n.length&&i.push("children"),o.filter(function(e){return"_"===e[0]}).map(function(e){return e.replace(/_/,"")}).forEach(function(n){n in e&&n in t&&e[n]!==t[n]&&i.push(n)}),i}(U,O.current,q,R.current);return O.current=U,R.current=q,Object.assign(B.on,{_containerClasses:function(e,t){S(t)},_swiper:function(e){e.loopCreate=function(){},e.loopDestroy=function(){},B.loop&&(e.loopedSlides=s(q,B)),P.current=e,e.virtual&&e.params.virtual.enabled&&(e.virtual.slides=q,e.params.virtual.cache=!1,e.params.virtual.renderExternal=k,e.params.virtual.renderExternalUpdate=!1)}}),(0,r.useEffect)(function(){!I.current&&P.current&&(P.current.emitSlidesClasses(),I.current=!0)}),l(function(){if(H.length&&P.current&&!P.current.destroyed){var e,t,n,r,i,o,s,l,u,c,d,h,f;e=P.current,s=H.filter(function(e){return"children"!==e&&"direction"!==e}),l=e.params,u=e.pagination,c=e.navigation,d=e.scrollbar,h=e.virtual,f=e.thumbs,H.includes("thumbs")&&U.thumbs&&U.thumbs.swiper&&l.thumbs&&!l.thumbs.swiper&&(t=!0),H.includes("controller")&&U.controller&&U.controller.control&&l.controller&&!l.controller.control&&(n=!0),H.includes("pagination")&&U.pagination&&U.pagination.el&&l.pagination&&u&&!u.el&&(r=!0),H.includes("scrollbar")&&U.scrollbar&&U.scrollbar.el&&l.scrollbar&&d&&!d.el&&(i=!0),H.includes("navigation")&&U.navigation&&U.navigation.prevEl&&U.navigation.nextEl&&l.navigation&&c&&!c.prevEl&&!c.nextEl&&(o=!0),s.forEac
90h(function(e){(0,a.Kn)(l[e])&&(0,a.Kn)(U[e])?(0,a.l7)(l[e],U[e]):l[e]=U[e]}),H.includes("children")&&h&&l.virtual.enabled&&(h.slides=q,h.update(!0)),t&&f.init()&&f.update(!0),n&&(e.controller.control=l.controller.control),r&&(u.init(),u.render(),u.update()),i&&(d.init(),d.updateSize(),d.setTranslate()),o&&(c.init(),c.update()),H.includes("allowSlideNext")&&(e.allowSlideNext=U.allowSlideNext),H.includes("allowSlidePrev")&&(e.allowSlidePrev=U.allowSlidePrev),H.includes("direction")&&e.changeDirection(U.direction,!1),e.update()}}),l(function(){var e;(e=P.current)&&!e.destroyed&&(e.updateSlides(),e.updateProgress(),e.updateSlidesClasses(),e.lazy&&e.params.lazy.enabled&&e.lazy.load())},[C]),l(function(){if(t&&(t.current=L.current),L.current){var e,n,r,o,s,l;return n=(e={el:L.current,nextEl:D.current,prevEl:N.current,paginationEl:M.current,scrollbarEl:j.current}).el,r=e.nextEl,o=e.prevEl,s=e.paginationEl,l=e.scrollbarEl,(0,a.d7)(B)&&r&&o&&(!0===B.navigation&&(B.navigation={}),B.navigation.nextEl=r,B.navigation.prevEl=o),(0,a.fw)(B)&&s&&(!0===B.pagination&&(B.pagination={}),B.pagination.el=s),(0,a.XE)(B)&&l&&(!0===B.scrollbar&&(B.scrollbar={}),B.scrollbar.el=l),new i.default(n,B),E&&E(P.current),function(){P.current&&!P.current.destroyed&&P.current.destroy()}}},[]),r.createElement(void 0===y?"div":y,u({ref:L,className:(0,a.kI)(""+T+(v?" "+v:""))},V),Q["container-start"],(0,a.d7)(B)&&r.createElement(r.Fragment,null,r.createElement("div",{ref:N,className:"swiper-button-prev"}),r.createElement("div",{ref:D,className:"swiper-button-next"})),(0,a.XE)(B)&&r.createElement("div",{ref:j,className:"swiper-scrollbar"}),(0,a.fw)(B)&&r.createElement("div",{ref:M,className:"swiper-pagination"}),r.createElement(void 0===b?"div":b,{className:"swiper-wrapper"},Q["wrapper-start"],B.virtual?function(e,t,n){if(!n)return null;var i=e.isHorizontal()?{left:n.offset+"px"}:{top:n.offset+"px"};return t.filter(function(e,t){return t>=n.from&&t<=n.to}).map(function(t){return r.cloneElement(t,{swiper:e,style:i})})}(P.current,q,C):!B.loop||P.current&&P.current.destroyed?q.map(function(e){return r.cloneElement(e,{swiper:P.current})}):function(e,t,n){var i=t.map(function(t,n){return r.cloneElement(t,{swiper:e,"data-swiper-slide-index":n})});function a(e,t,i){return r.cloneElement(e,{key:e.key+"-duplicate-"+t+"-"+i,className:(e.props.className||"")+" "+n.slideDuplicateClass})}if(n.loopFillGroupWithBlank){var o=n.slidesPerGroup-i.length%n.slidesPerGroup;if(o!==n.slidesPerGroup)for(var l=0;l<o;l+=1){var u=r.createElement("div",{className:n.slideClass+" "+n.slideBlankClass});i.push(u)}}"auto"!==n.slidesPerView||n.loopedSlides||(n.loopedSlides=i.length);var c=s(i,n),d=[],h=[];return i.forEach(function(e,t){t<c&&h.push(a(e,t,"prepend")),t<i.length&&t>=i.length-c&&d.push(a(e,t,"append"))}),e&&(e.loopedSlides=c),[].concat(d,i,h)}(P.current,q,B),Q["wrapper-end"]),Q["container-end"])});c.displayName="Swiper"},1077:function(e,t,n){"use strict";function r(e){return"object"==typeof e&&null!==e&&e.constructor&&e.constructor===Object}function i(e){return void 0===e&&(e={}),e.navigation&&void 0===e.navigation.nextEl&&void 0===e.navigation.prevEl}function a(e){return void 0===e&&(e={}),e.pagination&&void 0===e.pagination.el}function o(e){return void 0===e&&(e={}),e.scrollbar&&void 0===e.scrollbar.el}function s(e){void 0===e&&(e="");var t=e.split(" ").map(function(e){return e.trim()}).filter(function(e){return!!e}),n=[];return t.forEach(function(e){0>n.indexOf(e)&&n.push(e)}),n.join(" ")}n.d(t,{Kn:function(){return r},XE:function(){return o},d7:function(){return i},fw:function(){return a},kI:function(){return s},l7:function(){return function e(t,n){Object.keys(n).forEach(function(i){void 0===t[i]?t[i]=n[i]:r(n[i])&&r(t[i])&&Object.keys(n[i]).length>0?e(t[i],n[i]):t[i]=n[i]})}}})},8557:function(e,t,n){"use strict";n.d(t,{Z:function(){return m}});var r=n(6156);function i(e){return(i=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function a(e,t){return(a=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function o(e,t,n){return(o=!function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}()?function(e,t,n){var r=[null];r.push.apply(r,t);var i=new(Function.bind.apply(e,r));return n&&a(i,n.prototype),i}:Reflect.construct).apply(null,arguments)}function s(e){var t="function"==typeof Map?new Map:void 0;return(s=function(e){if(null===e||-1===Function.toString.call(e).indexOf("[native code]"))return e;if("function"!=typeof e)throw TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return o(e,arguments,i(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),a(n,e)})(e)}var l=function(e){function t(t){var n,r,i;return i=(r=function(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(n=e.call.apply(e,[this].concat(t))||this)).__proto__,Object.defineProperty(r,"__proto__",{get:function(){return i},set:function(e){i.__proto__=e}}),n}return t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e,t}(s(Array));function u(e){void 0===e&&(e=[]);var t=[];return e.forEach(function(e){Array.isArray(e)?t.push.apply(t,u(e)):t.push(e)}),t}function c(e,t){return Array.prototype.filter.call(e,t)}function d(e,t){var n=(0,r.Jj)(),i=(0,r.Me)(),a=[];if(!t&&e instanceof l)return e;if(!e)return new l(a);if("string"==typeof e){var o=e.trim();if(o.indexOf("<")>=0&&o.indexOf(">")>=0){var s="div";0===o.indexOf("<li")&&(s="ul"),0===o.indexOf("<tr")&&(s="tbody"),(0===o.indexOf("<td")||0===o.indexOf("<th"))&&(s="tr"),0===o.indexOf("<tbody")&&(s="table"),0===o.indexOf("<option")&&(s="select");var u=i.createElement(s);u.innerHTML=o;for(var c=0;c<u.childNodes.length;c+=1)a.push(u.childNodes[c])}else a=function(e,t){if("string"!=typeof e)return[e];for(var n=[],r=t.querySelectorAll(e),i=0;i<r.length;i+=1)n.push(r[i]);return n}(e.trim(),t||i)}else if(e.nodeType||e===n||e===i)a.push(e);else if(Array.isArray(e)){if(e instanceof l)return e;a=e}return new l(function(e){for(var t=[],n=0;n<e.length;
90n+=1)-1===t.indexOf(e[n])&&t.push(e[n]);return t}(a))}d.fn=l.prototype;var h="resize scroll".split(" ");function f(e){return function(){for(var t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];if(void 0===n[0]){for(var i=0;i<this.length;i+=1)0>h.indexOf(e)&&(e in this[i]?this[i][e]():d(this[i]).trigger(e));return this}return this.on.apply(this,[e].concat(n))}}f("click"),f("blur"),f("focus"),f("focusin"),f("focusout"),f("keyup"),f("keydown"),f("keypress"),f("submit"),f("change"),f("mousedown"),f("mousemove"),f("mouseup"),f("mouseenter"),f("mouseleave"),f("mouseout"),f("mouseover"),f("touchstart"),f("touchend"),f("touchmove"),f("resize"),f("scroll");var p={addClass:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=u(t.map(function(e){return e.split(" ")}));return this.forEach(function(e){var t;(t=e.classList).add.apply(t,r)}),this},removeClass:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=u(t.map(function(e){return e.split(" ")}));return this.forEach(function(e){var t;(t=e.classList).remove.apply(t,r)}),this},hasClass:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=u(t.map(function(e){return e.split(" ")}));return c(this,function(e){return r.filter(function(t){return e.classList.contains(t)}).length>0}).length>0},toggleClass:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=u(t.map(function(e){return e.split(" ")}));this.forEach(function(e){r.forEach(function(t){e.classList.toggle(t)})})},attr:function(e,t){if(1==arguments.length&&"string"==typeof e)return this[0]?this[0].getAttribute(e):void 0;for(var n=0;n<this.length;n+=1)if(2==arguments.length)this[n].setAttribute(e,t);else for(var r in e)this[n][r]=e[r],this[n].setAttribute(r,e[r]);return this},removeAttr:function(e){for(var t=0;t<this.length;t+=1)this[t].removeAttribute(e);return this},transform:function(e){for(var t=0;t<this.length;t+=1)this[t].style.transform=e;return this},transition:function(e){for(var t=0;t<this.length;t+=1)this[t].style.transitionDuration="string"!=typeof e?e+"ms":e;return this},on:function(){for(var e,t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];var i=n[0],a=n[1],o=n[2],s=n[3];function l(e){var t=e.target;if(t){var n=e.target.dom7EventData||[];if(0>n.indexOf(e)&&n.unshift(e),d(t).is(a))o.apply(t,n);else for(var r=d(t).parents(),i=0;i<r.length;i+=1)d(r[i]).is(a)&&o.apply(r[i],n)}}function u(e){var t=e&&e.target&&e.target.dom7EventData||[];0>t.indexOf(e)&&t.unshift(e),o.apply(this,t)}"function"==typeof n[1]&&(i=n[0],o=n[1],s=n[2],a=void 0),s||(s=!1);for(var c=i.split(" "),h=0;h<this.length;h+=1){var f=this[h];if(a)for(e=0;e<c.length;e+=1){var p=c[e];f.dom7LiveListeners||(f.dom7LiveListeners={}),f.dom7LiveListeners[p]||(f.dom7LiveListeners[p]=[]),f.dom7LiveListeners[p].push({listener:o,proxyListener:l}),f.addEventListener(p,l,s)}else for(e=0;e<c.length;e+=1){var m=c[e];f.dom7Listeners||(f.dom7Listeners={}),f.dom7Listeners[m]||(f.dom7Listeners[m]=[]),f.dom7Listeners[m].push({listener:o,proxyListener:u}),f.addEventListener(m,u,s)}}return this},off:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t[0],i=t[1],a=t[2],o=t[3];"function"==typeof t[1]&&(r=t[0],a=t[1],o=t[2],i=void 0),o||(o=!1);for(var s=r.split(" "),l=0;l<s.length;l+=1)for(var u=s[l],c=0;c<this.length;c+=1){var d=this[c],h=void 0;if(!i&&d.dom7Listeners?h=d.dom7Listeners[u]:i&&d.dom7LiveListeners&&(h=d.dom7LiveListeners[u]),h&&h.length)for(var f=h.length-1;f>=0;f-=1){var p=h[f];a&&p.listener===a?(d.removeEventListener(u,p.proxyListener,o),h.splice(f,1)):a&&p.listener&&p.listener.dom7proxy&&p.listener.dom7proxy===a?(d.removeEventListener(u,p.proxyListener,o),h.splice(f,1)):a||(d.removeEventListener(u,p.proxyListener,o),h.splice(f,1))}}return this},trigger:function(){for(var e=(0,r.Jj)(),t=arguments.length,n=Array(t),i=0;i<t;i++)n[i]=arguments[i];for(var a=n[0].split(" "),o=n[1],s=0;s<a.length;s+=1)for(var l=a[s],u=0;u<this.length;u+=1){var c=this[u];if(e.CustomEvent){var d=new e.CustomEvent(l,{detail:o,bubbles:!0,cancelable:!0});c.dom7EventData=n.filter(function(e,t){return t>0}),c.dispatchEvent(d),c.dom7EventData=[],delete c.dom7EventData}}return this},transitionEnd:function(e){var t=this;return e&&t.on("transitionend",function n(r){r.target===this&&(e.call(this,r),t.off("transitionend",n))}),this},outerWidth:function(e){if(this.length>0){if(e){var t=this.styles();return this[0].offsetWidth+parseFloat(t.getPropertyValue("margin-right"))+
90parseFloat(t.getPropertyValue("margin-left"))}return this[0].offsetWidth}return null},outerHeight:function(e){if(this.length>0){if(e){var t=this.styles();return this[0].offsetHeight+parseFloat(t.getPropertyValue("margin-top"))+parseFloat(t.getPropertyValue("margin-bottom"))}return this[0].offsetHeight}return null},styles:function(){var e=(0,r.Jj)();return this[0]?e.getComputedStyle(this[0],null):{}},offset:function(){if(this.length>0){var e=(0,r.Jj)(),t=(0,r.Me)(),n=this[0],i=n.getBoundingClientRect(),a=t.body,o=n.clientTop||a.clientTop||0,s=n.clientLeft||a.clientLeft||0,l=n===e?e.scrollY:n.scrollTop,u=n===e?e.scrollX:n.scrollLeft;return{top:i.top+l-o,left:i.left+u-s}}return null},css:function(e,t){var n,i=(0,r.Jj)();if(1==arguments.length){if("string"==typeof e){if(this[0])return i.getComputedStyle(this[0],null).getPropertyValue(e)}else{for(n=0;n<this.length;n+=1)for(var a in e)this[n].style[a]=e[a];return this}}if(2==arguments.length&&"string"==typeof e)for(n=0;n<this.length;n+=1)this[n].style[e]=t;return this},each:function(e){return e&&this.forEach(function(t,n){e.apply(t,[t,n])}),this},html:function(e){if(void 0===e)return this[0]?this[0].innerHTML:null;for(var t=0;t<this.length;t+=1)this[t].innerHTML=e;return this},text:function(e){if(void 0===e)return this[0]?this[0].textContent.trim():null;for(var t=0;t<this.length;t+=1)this[t].textContent=e;return this},is:function(e){var t,n,i=(0,r.Jj)(),a=(0,r.Me)(),o=this[0];if(!o||void 0===e)return!1;if("string"==typeof e){if(o.matches)return o.matches(e);if(o.webkitMatchesSelector)return o.webkitMatchesSelector(e);if(o.msMatchesSelector)return o.msMatchesSelector(e);for(n=0,t=d(e);n<t.length;n+=1)if(t[n]===o)return!0;return!1}if(e===a)return o===a;if(e===i)return o===i;if(e.nodeType||e instanceof l){for(n=0,t=e.nodeType?[e]:e;n<t.length;n+=1)if(t[n]===o)return!0}return!1},index:function(){var e,t=this[0];if(t){for(e=0;null!==(t=t.previousSibling);)1===t.nodeType&&(e+=1);return e}},eq:function(e){if(void 0===e)return this;var t=this.length;if(e>t-1)return d([]);if(e<0){var n=t+e;return n<0?d([]):d([this[n]])}return d([this[e]])},append:function(){for(var e,t=(0,r.Me)(),n=0;n<arguments.length;n+=1){e=n<0||arguments.length<=n?void 0:arguments[n];for(var i=0;i<this.length;i+=1)if("string"==typeof e){var a=t.createElement("div");for(a.innerHTML=e;a.firstChild;)this[i].appendChild(a.firstChild)}else if(e instanceof l)for(var o=0;o<e.length;o+=1)this[i].appendChild(e[o]);else this[i].appendChild(e)}return this},prepend:function(e){var t,n,i=(0,r.Me)();for(t=0;t<this.length;t+=1)if("string"==typeof e){var a=i.createElement("div");for(a.innerHTML=e,n=a.childNodes.length-1;n>=0;n-=1)this[t].insertBefore(a.childNodes[n],this[t].childNodes[0])}else if(e instanceof l)for(n=0;n<e.length;n+=1)this[t].insertBefore(e[n],this[t].childNodes[0]);else this[t].insertBefore(e,this[t].childNodes[0]);return this},next:function(e){if(this.length>0){if(e)return this[0].nextElementSibling&&d(this[0].nextElementSibling).is(e)?d([this[0].nextElementSibling]):d([]);if(this[0].nextElementSibling)return d([this[0].nextElementSibling])}return d([])},nextAll:function(e){var t=[],n=this[0];if(!n)return d([]);for(;n.nextElementSibling;){var r=n.nextElementSibling;e?d(r).is(e)&&t.push(r):t.push(r),n=r}return d(t)},prev:function(e){if(this.length>0){var t=this[0];if(e)return t.previousElementSibling&&d(t.previousElementSibling).is(e)?d([t.previousElementSibling]):d([]);if(t.previousElementSibling)return d([t.previousElementSibling])}return d([])},prevAll:function(e){var t=[],n=this[0];if(!n)return d([]);for(;n.previousElementSibling;){var r=n.previousElementSibling;e?d(r).is(e)&&t.push(r):t.push(r),n=r}return d(t)},parent:function(e){for(var t=[],n=0;n<this.length;n+=1)null!==this[n].parentNode&&(e?d(this[n].parentNode).is(e)&&t.push(this[n].parentNode):t.push(this[n].parentNode));return d(t)},parents:function(e){for(var t=[],n=0;n<this.length;n+=1)for(var r=this[n].parentNode;r;)e?d(r).is(e)&&t.push(r):t.push(r),r=r.parentNode;return d(t)},closest:function(e){var t=this;return void 0===e?d([]):(t.is(e)||(t=t.parents(e).eq(0)),t)},find:function(e){for(var t=[],n=0;n<this.length;n+=1)for(var r=this[n].querySelectorAll(e),i=0;i<r.length;i+=1)t.push(r[i]);return d(t)},children:function(e){for(var t=[],n=0;n<this.length;n+=1)for(var r=this[n].children,i=0;i<r.length;i+=1)(!e||d(r[i]).is(e))&&t.push(r[i]);return d(t)},filter:function(e){return d(c(this,e))},remove:function(){for(var e=0;e<this.length;e+=1)this[e].parentNode&&this[e].parentNode.removeChild(this[e]);return this}};
90Object.keys(p).forEach(function(e){d.fn[e]=p[e]});var m=d},8262:function(e,t,n){"use strict";n.d(t,{Kn:function(){return l},R6:function(){return s},Y3:function(){return a},cP:function(){return i},cR:function(){return u},l7:function(){return function e(){for(var t=Object(arguments.length<=0?void 0:arguments[0]),n=1;n<arguments.length;n+=1){var r=n<0||arguments.length<=n?void 0:arguments[n];if(null!=r)for(var i=Object.keys(Object(r)),a=0,o=i.length;a<o;a+=1){var s=i[a],u=Object.getOwnPropertyDescriptor(r,s);void 0!==u&&u.enumerable&&(l(t[s])&&l(r[s])?e(t[s],r[s]):!l(t[s])&&l(r[s])?(t[s]={},e(t[s],r[s])):t[s]=r[s])}}return t}},zO:function(){return o}});var r=n(6156);function i(e){Object.keys(e).forEach(function(t){try{e[t]=null}catch(e){}try{delete e[t]}catch(e){}})}function a(e,t){return void 0===t&&(t=0),setTimeout(e,t)}function o(){return Date.now()}function s(e,t){void 0===t&&(t="x");var n,i,a,o=(0,r.Jj)(),s=o.getComputedStyle(e,null);return o.WebKitCSSMatrix?((i=s.transform||s.webkitTransform).split(",").length>6&&(i=i.split(", ").map(function(e){return e.replace(",",".")}).join(", ")),a=new o.WebKitCSSMatrix("none"===i?"":i)):n=(a=s.MozTransform||s.OTransform||s.MsTransform||s.msTransform||s.transform||s.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,")).toString().split(","),"x"===t&&(i=o.WebKitCSSMatrix?a.m41:16===n.length?parseFloat(n[12]):parseFloat(n[4])),"y"===t&&(i=o.WebKitCSSMatrix?a.m42:16===n.length?parseFloat(n[13]):parseFloat(n[5])),i||0}function l(e){return"object"==typeof e&&null!==e&&e.constructor&&e.constructor===Object}function u(e,t){Object.keys(t).forEach(function(n){l(t[n])&&Object.keys(t[n]).forEach(function(r){"function"==typeof t[n][r]&&(t[n][r]=t[n][r].bind(e))}),e[n]=t[n]})}},3876:function(e,t,n){"use strict";n.r(t),n.d(t,{A11y:function(){return j},Autoplay:function(){return Q.Z},Controller:function(){return D},EffectCoverflow:function(){return en},EffectCube:function(){return Z},EffectFade:function(){return K},EffectFlip:function(){return J},HashNavigation:function(){return q},History:function(){return U},Keyboard:function(){return m},Lazy:function(){return P},Mousewheel:function(){return v},Navigation:function(){return y.Z},Pagination:function(){return b.Z},Parallax:function(){return S},Scrollbar:function(){return w},Swiper:function(){return ey},Thumbs:function(){return ea},Virtual:function(){return h},Zoom:function(){return k},default:function(){return eE}});var r,i,a,o=n(8557),s=n(8262),l=n(6156);function u(){if(!r){var e,t;e=(0,l.Jj)(),t=(0,l.Me)(),r={touch:!!("ontouchstart"in e||e.DocumentTouch&&t instanceof e.DocumentTouch),pointerEvents:!!e.PointerEvent&&"maxTouchPoints"in e.navigator&&e.navigator.maxTouchPoints>=0,observer:"MutationObserver"in e||"WebkitMutationObserver"in e,passiveListener:function(){var t=!1;try{var n=Object.defineProperty({},"passive",{get:function(){t=!0}});e.addEventListener("testPassiveListener",null,n)}catch(e){}return t}(),gestures:"ongesturestart"in e}}return r}function c(){return(c=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var d={update:function(e){var t,n,r,i=this,a=i.params,o=a.slidesPerView,l=a.slidesPerGroup,u=a.centeredSlides,c=i.params.virtual,d=c.addSlidesBefore,h=c.addSlidesAfter,f=i.virtual,p=f.from,m=f.to,g=f.slides,v=f.slidesGrid,y=f.renderSlide,b=f.offset;i.updateActiveIndex();var A=i.activeIndex||0;t=i.rtlTranslate?"right":i.isHorizontal()?"left":"top",u?(n=Math.floor(o/2)+l+h,r=Math.floor(o/2)+l+d):(n=o+(l-1)+h,r=l+d);var E=Math.max((A||0)-r,0),w=Math.min((A||0)+n,g.length-1),x=(i.slidesGrid[E]||0)-(i.slidesGrid[0]||0);function T(){i.updateSlides(),i.updateProgress(),i.updateSlidesClasses(),i.lazy&&i.params.lazy.enabled&&i.lazy.load()}if((0,s.l7)(i.virtual,{from:E,to:w,offset:x,slidesGrid:i.slidesGrid}),p===E&&m===w&&!e){i.slidesGrid!==v&&x!==b&&i.slides.css(t,x+"px"),i.updateProgress();return}if(i.params.virtual.renderExternal){i.params.virtual.renderExternal.call(i,{offset:x,from:E,to:w,slides:function(){for(var e=[],t=E;t<=w;t+=1)e.push(g[t]);return e}()}),i.params.virtual.renderExternalUpdate&&T();return}var S=[],_=[];
90if(e)i.$wrapperEl.find("."+i.params.slideClass).remove();else for(var C=p;C<=m;C+=1)(C<E||C>w)&&i.$wrapperEl.find("."+i.params.slideClass+'[data-swiper-slide-index="'+C+'"]').remove();for(var k=0;k<g.length;k+=1)k>=E&&k<=w&&(void 0===m||e?_.push(k):(k>m&&_.push(k),k<p&&S.push(k)));_.forEach(function(e){i.$wrapperEl.append(y(g[e],e))}),S.sort(function(e,t){return t-e}).forEach(function(e){i.$wrapperEl.prepend(y(g[e],e))}),i.$wrapperEl.children(".swiper-slide").css(t,x+"px"),T()},renderSlide:function(e,t){var n=this.params.virtual;if(n.cache&&this.virtual.cache[t])return this.virtual.cache[t];var r=n.renderSlide?(0,o.Z)(n.renderSlide.call(this,e,t)):(0,o.Z)('<div class="'+this.params.slideClass+'" data-swiper-slide-index="'+t+'">'+e+"</div>");return r.attr("data-swiper-slide-index")||r.attr("data-swiper-slide-index",t),n.cache&&(this.virtual.cache[t]=r),r},appendSlide:function(e){if("object"==typeof e&&"length"in e)for(var t=0;t<e.length;t+=1)e[t]&&this.virtual.slides.push(e[t]);else this.virtual.slides.push(e);this.virtual.update(!0)},prependSlide:function(e){var t=this.activeIndex,n=t+1,r=1;if(Array.isArray(e)){for(var i=0;i<e.length;i+=1)e[i]&&this.virtual.slides.unshift(e[i]);n=t+e.length,r=e.length}else this.virtual.slides.unshift(e);if(this.params.virtual.cache){var a=this.virtual.cache,o={};Object.keys(a).forEach(function(e){var t=a[e],n=t.attr("data-swiper-slide-index");n&&t.attr("data-swiper-slide-index",parseInt(n,10)+1),o[parseInt(e,10)+r]=t}),this.virtual.cache=o}this.virtual.update(!0),this.slideTo(n,0)},removeSlide:function(e){if(null!=e){var t=this.activeIndex;if(Array.isArray(e))for(var n=e.length-1;n>=0;n-=1)this.virtual.slides.splice(e[n],1),this.params.virtual.cache&&delete this.virtual.cache[e[n]],e[n]<t&&(t-=1),t=Math.max(t,0);else this.virtual.slides.splice(e,1),this.params.virtual.cache&&delete this.virtual.cache[e],e<t&&(t-=1),t=Math.max(t,0);this.virtual.update(!0),this.slideTo(t,0)}},removeAllSlides:function(){this.virtual.slides=[],this.params.virtual.cache&&(this.virtual.cache={}),this.virtual.update(!0),this.slideTo(0,0)}},h={name:"virtual",params:{virtual:{enabled:!1,slides:[],cache:!0,renderSlide:null,renderExternal:null,renderExternalUpdate:!0,addSlidesBefore:0,addSlidesAfter:0}},create:function(){(0,s.cR)(this,{virtual:c(c({},d),{},{slides:this.params.virtual.slides,cache:{}})})},on:{beforeInit:function(e){if(e.params.virtual.enabled){e.classNames.push(e.params.containerModifierClass+"virtual");var t={watchSlidesProgress:!0};(0,s.l7)(e.params,t),(0,s.l7)(e.originalParams,t),e.params.initialSlide||e.virtual.update(
90)}},setTranslate:function(e){e.params.virtual.enabled&&e.virtual.update()}}};function f(){return(f=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var p={handle:function(e){var t=(0,l.Jj)(),n=(0,l.Me)(),r=this.rtlTranslate,i=e;i.originalEvent&&(i=i.originalEvent);var a=i.keyCode||i.charCode,o=this.params.keyboard.pageUpDown,s=o&&33===a,u=o&&34===a,c=37===a,d=39===a,h=38===a,f=40===a;if(!this.allowSlideNext&&(this.isHorizontal()&&d||this.isVertical()&&f||u)||!this.allowSlidePrev&&(this.isHorizontal()&&c||this.isVertical()&&h||s))return!1;if(!i.shiftKey&&!i.altKey&&!i.ctrlKey&&!i.metaKey&&(!n.activeElement||!n.activeElement.nodeName||"input"!==n.activeElement.nodeName.toLowerCase()&&"textarea"!==n.activeElement.nodeName.toLowerCase())){if(this.params.keyboard.onlyInViewport&&(s||u||c||d||h||f)){var p=!1;if(this.$el.parents("."+this.params.slideClass).length>0&&0===this.$el.parents("."+this.params.slideActiveClass).length)return;var m=t.innerWidth,g=t.innerHeight,v=this.$el.offset();r&&(v.left-=this.$el[0].scrollLeft);for(var y=[[v.left,v.top],[v.left+this.width,v.top],[v.left,v.top+this.height],[v.left+this.width,v.top+this.height]],b=0;b<y.length;b+=1){var A=y[b];A[0]>=0&&A[0]<=m&&A[1]>=0&&A[1]<=g&&(p=!0)}if(!p)return}this.isHorizontal()?((s||u||c||d)&&(i.preventDefault?i.preventDefault():i.returnValue=!1),((u||d)&&!r||(s||c)&&r)&&this.slideNext(),((s||c)&&!r||(u||d)&&r)&&this.slidePrev()):((s||u||h||f)&&(i.preventDefault?i.preventDefault():i.returnValue=!1),(u||f)&&this.slideNext(),(s||h)&&this.slidePrev()),this.emit("keyPress",a)}},enable:function(){var e=(0,l.Me)();this.keyboard.enabled||((0,o.Z)(e).on("keydown",this.keyboard.handle),this.keyboard.enabled=!0)},disable:function(){var e=(0,l.Me)();this.keyboard.enabled&&((0,o.Z)(e).off("keydown",this.keyboard.handle),this.keyboard.enabled=!1)}},m={name:"keyboard",params:{keyboard:{enabled:!1,onlyInViewport:!0,pageUpDown:!0}},create:function(){(0,s.cR)(this,{keyboard:f({enabled:!1},p)})},on:{init:function(e){e.params.keyboard.enabled&&e.keyboard.enable()},destroy:function(e){e.keyboard.enabled&&e.keyboard.disable()}}},g={lastScrollTime:(0,s.zO)(),lastEventBeforeSnap:void 0,recentWheelEvents:[],event:function(){return(0,l.Jj)().navigator.userAgent.indexOf("firefox")>-1?"DOMMouseScroll":!function(){var e=(0,l.Me)(),t="onwheel",n=t in e;if(!n){var r=e.createElement("div");r.setAttribute(t,"return;"),n="function"==typeof r[t]}return!n&&e.implementation&&e.implementation.hasFeature&&!0!==e.implementation.hasFeature("","")&&(n=e.implementation.hasFeature("Events.wheel","3.0")),n}()?"mousewheel":"wheel"},normalize:function(e){var t=0,n=0,r=0,i=0;return"detail"in e&&(n=e.detail),"wheelDelta"in e&&(n=-e.wheelDelta/120),"wheelDeltaY"in e&&(n=-e.wheelDeltaY/120),"wheelDeltaX"in e&&(t=-e.wheelDeltaX/120),"axis"in e&&e.axis===e.HORIZONTAL_AXIS&&(t=n,n=0),r=10*t,i=10*n,"deltaY"in e&&(i=e.deltaY),"deltaX"in e&&(r=e.deltaX),e.shiftKey&&!r&&(r=i,i=0),(r||i)&&e.deltaMode&&(1===e.deltaMode?(r*=40,i*=40):(r*=800,i*=800)),r&&!t&&(t=r<1?-1:1),i&&!n&&(n=i<1?-1:1),{spinX:t,spinY:n,pixelX:r,pixelY:i}},handleMouseEnter:function(){this.mouseEntered=!0},handleMouseLeave:function(){this.mouseEntered=!1},handle:function(e){var t=e,n=this,r=n.params.mousewheel;n.params.cssMode&&t.preventDefault();var i=n.$el;if("container"!==n.params.mousewheel.eventsTarget&&(i=(0,o.Z)(n.params.mousewheel.eventsTarget)),!n.mouseEntered&&!i[0].contains(t.target)&&!r.releaseOnEdges)return!0;t.originalEvent&&(t=t.originalEvent);var a=0,l=n.rtlTranslate?-1:1,u=g.normalize(t);if(r.forceToAxis){if(n.isHorizontal()){if(!(Math.abs(u.pixelX)>Math.abs(u.pixelY)))return!0;a=-u.pixelX*l}else{if(!(Math.abs(u.pixelY)>Math.abs(u.pixelX)))return!0;a=-u.pixelY}}else a=Math.abs(u.pixelX)>Math.abs(u.pixelY)?-u.pixelX*l:-u.pixelY;if(0===a)return!0;if(r.invert&&(a=-a),n.params.freeMode){var c={time:(0,s.zO)(),delta:Math.abs(a),direction:Math.sign(a)},d=n.mousewheel.lastEventBeforeSnap,h=d&&c.time<d.time+500&&c.delta<=d.delta&&c.direction===d.direction;if(!h){n.mousewheel.lastEventBeforeSnap=void 0,n.params.loop&&n.loopFix();
90var f=n.getTranslate()+a*r.sensitivity,p=n.isBeginning,m=n.isEnd;if(f>=n.minTranslate()&&(f=n.minTranslate()),f<=n.maxTranslate()&&(f=n.maxTranslate()),n.setTransition(0),n.setTranslate(f),n.updateProgress(),n.updateActiveIndex(),n.updateSlidesClasses(),(!p&&n.isBeginning||!m&&n.isEnd)&&n.updateSlidesClasses(),n.params.freeModeSticky){clearTimeout(n.mousewheel.timeout),n.mousewheel.timeout=void 0;var v=n.mousewheel.recentWheelEvents;v.length>=15&&v.shift();var y=v.length?v[v.length-1]:void 0,b=v[0];if(v.push(c),y&&(c.delta>y.delta||c.direction!==y.direction))v.splice(0);else if(v.length>=15&&c.time-b.time<500&&b.delta-c.delta>=1&&c.delta<=6){var A=a>0?.8:.2;n.mousewheel.lastEventBeforeSnap=c,v.splice(0),n.mousewheel.timeout=(0,s.Y3)(function(){n.slideToClosest(n.params.speed,!0,void 0,A)},0)}n.mousewheel.timeout||(n.mousewheel.timeout=(0,s.Y3)(function(){n.mousewheel.lastEventBeforeSnap=c,v.splice(0),n.slideToClosest(n.params.speed,!0,void 0,.5)},500))}if(h||n.emit("scroll",t),n.params.autoplay&&n.params.autoplayDisableOnInteraction&&n.autoplay.stop(),f===n.minTranslate()||f===n.maxTranslate())return!0}}else{var E={time:(0,s.zO)(),delta:Math.abs(a),direction:Math.sign(a),raw:e},w=n.mousewheel.recentWheelEvents;w.length>=2&&w.shift();var x=w.length?w[w.length-1]:void 0;if(w.push(E),x?(E.direction!==x.direction||E.delta>x.delta||E.time>x.time+150)&&n.mousewheel.animateSlider(E):n.mousewheel.animateSlider(E),n.mousewheel.releaseScroll(E))return!0}return t.preventDefault?t.preventDefault():t.returnValue=!1,!1},animateSlider:function(e){var t=(0,l.Jj)();return!!(e.delta>=6&&(0,s.zO)()-this.mousewheel.lastScrollTime<60)||(e.direction<0?this.isEnd&&!this.params.loop||this.animating||(this.slideNext(),this.emit("scroll",e.raw)):this.isBeginning&&!this.params.loop||this.animating||(this.slidePrev(),this.emit("scroll",e.raw)),this.mousewheel.lastScrollTime=new t.Date().getTime(),!1)},releaseScroll:function(e){var t=this.params.mousewheel;if(e.direction<0){if(this.isEnd&&!this.params.loop&&t.releaseOnEdges)return!0}else if(this.isBeginning&&!this.params.loop&&t.releaseOnEdges)return!0;return!1},enable:function(){var e=g.event();if(this.params.cssMode)return this.wrapperEl.removeEventListener(e,this.mousewheel.handle),!0;if(!e||this.mousewheel.enabled)return!1;var t=this.$el;return"container"!==this.params.mousewheel.eventsTarget&&(t=(0,o.Z)(this.params.mousewheel.eventsTarget)),t.on("mouseenter",this.mousewheel.handleMouseEnter),t.on("mouseleave",this.mousewheel.handleMouseLeave),t.on(e,this.mousewheel.handle),this.mousewheel.enabled=!0,!0},disable:function(){var e=g.event();if(this.params.cssMode)return this.wrapperEl.addEventListener(e,this.mousewheel.handle),!0;if(!e||!this.mousewheel.enabled)return!1;var t=this.$el;return"container"!==this.params.mousewheel.eventsTarget&&(t=(0,o.Z)(this.params.mousewheel.eventsTarget)),t.off(e,this.mousewheel.handle),this.mousewheel.enabled=!1,!0}},v={name:"mousewheel",params:{mousewheel:{enabled:!1,releaseOnEdges:!1,invert:!1,forceToAxis:!1,sensitivity:1,eventsTarget:"container"}},create:function(){(0,s.cR)(this,{mousewheel:{enabled:!1,lastScrollTime:(0,s.zO)(),lastEventBeforeSnap:void 0,recentWheelEvents:[],enable:g.enable,disable:g.disable,handle:g.handle,handleMouseEnter:g.handleMouseEnter,handleMouseLeave:g.handleMouseLeave,animateSlider:g.animateSlider,releaseScroll:g.releaseScroll}})},on:{init:function(e){!e.params.mousewheel.enabled&&e.params.cssMode&&e.mousewheel.disable(),e.params.mousewheel.enabled&&e.mousewheel.enable()},destroy:function(e){e.params.cssMode&&e.mousewheel.enable(),e.mousewheel.enabled&&e.mousewheel.disable()}}},y=n(5186),b=n(2997);function A(){return(A=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var E={setTranslate:function(){if(this.params.scrollbar.el&&this.scrollbar.el){var e=this.scrollbar,t=this.rtlTranslate,n=this.progress,r=e.dragSize,i=e.trackSize,a=e.$dragEl,o=e.$el,s=this.params.scrollbar,l=r,u=(i-r)*n;t?(u=-u)>0?(l=r-u,u=0):-u+r>i&&(l=i+u):u<0?(l=r+u,u=0):u+r>i&&(l=i-u),this.isHorizontal()?(a.transform("translate3d("+u+"px, 0, 0)"),a[0].style.width=l+"px"):(a.transform("translate3d(0px, "+u+"px, 0)"),a[0].style.height=l+"px"),s.hide&&(clearTimeout(this.scrollbar.timeout),o[0].style.opacity=1,this.scrollbar.timeout=setTimeout(function(){o[0].style.opacity=0,o.transition(400)},1e3))}},setTransition:function(e){this.params.scrollbar.el&&this.scrollbar.el&&this.scrollbar.$dragEl.transition(e)},updateSize:function(){var e;if(this.params.scrollbar.el&&this.scrollbar.el){var t=this.scrollbar,n=t.$dragEl,r=t.$el;n[0].style.width="",n[0].style.height="";var i=this.isHorizontal()?r[0].offsetWidth:r[0].offsetHeight,a=this.size/this.virtualSize,o=i/this.size*a;e="auto"===this.params.scrollbar.dragSize?i*a:parseInt(this.params.scrollbar.dragSize,10),this.isHorizontal()?n[0].style.width=e+"px":n[0].style.height=e+"px",a>=1?r[0].style.display="none":r[0].style.display="",this.params.scrollbar.hide&&(r[0].style.opacity=0),(0,s.l7)(t,{trackSize:i,divider:a,moveDivider:o,dragSize:e}),t.$el[this.params.watchOverflow&&this.isLocked?"addClass":"removeClass"](this.params.scrollbar.lockClass)}},getPointerPosition:function(e){return this.isHorizontal()?"touchstart"===e.type||"touchmove"===e.type?e.targetTouches[0].clientX:e.clientX:"touchstart"===e.type||"touchmove"===e.type?e.targetTouches[0].clientY:e.clientY},setDragPosition:function(e){var t,n=this.scrollbar,r=this.rtlTranslate,i=n.$el,a=n.dragSize,o=n.trackSize,s=n.dragStartPos;t=Math.max(Math.min(t=(n.getPointerPosition(e)-i.offset()[this.isHorizontal()?"left":"top"]-(null!==s?s:a/2))/(o-a),1),0),r&&(t=1-t);var l=this.minTranslate()+(this.maxTranslate()-this.minTranslate())*t;this.updateProgress(l),this.setTranslate(l),this.updateActiveIndex(),this.updateSlidesClasses()},onDragStart:function(e){var t=this.params.scrollbar,n=this.scrollbar,r=this.$wrapperEl,i=n.$el,a=n.$dragEl;this.scrollbar.isTouched=!0,this.scrollbar.dragStartPos=e.target===a[0]||e.target===a?n.getPointerPosition(e)-e.target.getBoundingClientRect()[this.isHorizontal()?"left":"top"]:null,e.preventDefault(),e.stopPropagation(),r.transition(100),a.transition(100),n.setDragPosition(e),clearTimeout(this.scrollbar.dragTimeout),i.transition(0),t.hide&&i.css("opacity",1),this.params.cssMode&&this.$wrapperEl.css("scroll-snap-type","none"),this.emit
90("scrollbarDragStart",e)},onDragMove:function(e){var t=this.scrollbar,n=this.$wrapperEl,r=t.$el,i=t.$dragEl;this.scrollbar.isTouched&&(e.preventDefault?e.preventDefault():e.returnValue=!1,t.setDragPosition(e),n.transition(0),r.transition(0),i.transition(0),this.emit("scrollbarDragMove",e))},onDragEnd:function(e){var t=this.params.scrollbar,n=this.scrollbar,r=this.$wrapperEl,i=n.$el;this.scrollbar.isTouched&&(this.scrollbar.isTouched=!1,this.params.cssMode&&(this.$wrapperEl.css("scroll-snap-type",""),r.transition("")),t.hide&&(clearTimeout(this.scrollbar.dragTimeout),this.scrollbar.dragTimeout=(0,s.Y3)(function(){i.css("opacity",0),i.transition(400)},1e3)),this.emit("scrollbarDragEnd",e),t.snapOnRelease&&this.slideToClosest())},enableDraggable:function(){if(this.params.scrollbar.el){var e=(0,l.Me)(),t=this.scrollbar,n=this.touchEventsTouch,r=this.touchEventsDesktop,i=this.params,a=this.support,o=t.$el[0],s=!!a.passiveListener&&!!i.passiveListeners&&{passive:!1,capture:!1},u=!!a.passiveListener&&!!i.passiveListeners&&{passive:!0,capture:!1};a.touch?(o.addEventListener(n.start,this.scrollbar.onDragStart,s),o.addEventListener(n.move,this.scrollbar.onDragMove,s),o.addEventListener(n.end,this.scrollbar.onDragEnd,u)):(o.addEventListener(r.start,this.scrollbar.onDragStart,s),e.addEventListener(r.move,this.scrollbar.onDragMove,s),e.addEventListener(r.end,this.scrollbar.onDragEnd,u))}},disableDraggable:function(){if(this.params.scrollbar.el){var e=(0,l.Me)(),t=this.scrollbar,n=this.touchEventsTouch,r=this.touchEventsDesktop,i=this.params,a=this.support,o=t.$el[0],s=!!a.passiveListener&&!!i.passiveListeners&&{passive:!1,capture:!1},u=!!a.passiveListener&&!!i.passiveListeners&&{passive:!0,capture:!1};a.touch?(o.removeEventListener(n.start,this.scrollbar.onDragStart,s),o.removeEventListener(n.move,this.scrollbar.onDragMove,s),o.removeEventListener(n.end,this.scrollbar.onDragEnd,u)):(o.removeEventListener(r.start,this.scrollbar.onDragStart,s),e.removeEventListener(r.move,this.scrollbar.onDragMove,s),e.removeEventListener(r.end,this.scrollbar.onDragEnd,u))}},init:function(){if(this.params.scrollbar.el){var e=this.scrollbar,t=this.$el,n=this.params.scrollbar,r=(0,o.Z)(n.el);this.params.uniqueNavElements&&"string"==typeof n.el&&r.length>1&&1===t.find(n.el).length&&(r=t.find(n.el));var i=r.find("."+this.params.scrollbar.dragClass);0===i.length&&(i=(0,o.Z)('<div class="'+this.params.scrollbar.dragClass+'"></div>'),r.append(i)),(0,s.l7)(e,{$el:r,el:r[0],$dragEl:i,dragEl:i[0]}),n.draggable&&e.enableDraggable()}},destroy:function(){this.scrollbar.disableDraggable()}},w={name:"scrollbar",params:{scrollbar:{el:null,dragSize:"auto",hide:!1,draggable:!1,snapOnRelease:!0,lockClass:"swiper-scrollbar-lock",dragClass:"swiper-scrollbar-drag"}},create:function(){(0,s.cR)(this,{scrollbar:A({isTouched:!1,timeout:null,dragTimeout:null},E)})},on:{init:function(e){e.scrollbar.init(),e.scrollbar.updateSize(),e.scrollbar.setTranslate()},update:function(e){e.scrollbar.updateSize()},resize:function(e){e.scrollbar.updateSize()},observerUpdate:function(e){e.scrollbar.updateSize()},setTranslate:function(e){e.scrollbar.setTranslate()},setTransition:function(e,t){e.scrollbar.setTransition(t)},destroy:function(e){e.scrollbar.destroy()}}};function x(){return(x=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var T={setTransform:function(e,t){var n=this.rtl,r=(0,o.Z)(e),i=n?-1:1,a=r.attr("data-swiper-parallax")||"0",s=r.attr("data-swiper-parallax-x"),l=r.attr("data-swiper-parallax-y"),u=r.attr("data-swiper-parallax-scale"),c=r.attr("data-swiper-parallax-opacity");if(s||l?(s=s||"0",l=l||"0"):this.isHorizontal()?(s=a,l="0"):(l=a,s="0"),s=s.indexOf("%")>=0?parseInt(s,10)*t*i+"%":s*t*i+"px",l=l.indexOf("%")>=0?parseInt(l,10)*t+"%":l*t+"px",null!=c){var d=c-(c-1)*(1-Math.abs(t));r[0].style.opacity=d}if(null==u)r.transform("translate3d("+s+", "+l+", 0px)");else{var h=u-(u-1)*(1-Math.abs(t));r.transform("translate3d("+s+", "+l+", 0px) scale("+h+")")}},setTranslate:function(){var e=this,t=e.$el,n=e.slides,r=e.progress,i=e.snapGrid;t.children("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y], [data-swiper-parallax-opacity], [data-swiper-parallax-scale]").each(function(t){e.parallax.setTransform(t,r)}),n.each(function(t,n){var a=t.progress;e.params.slidesPerGroup>1&&"auto"!==e.params.slidesPerView&&(a+=Math.ceil(n/2)-r*(i.length-1)),a=Math.min(Math.max(a,-1),1),(0,o.Z)(t).find("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y], [data-swiper-parallax-opacity], [data-swiper-parallax-scale]").each(function(t){e.parallax.setTransform(t,a)})})},setTransition:function(e){void 0===e&&(e=this.params.speed),this.$el.find("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y], [data-swiper-parallax-opacity], [data-swiper-parallax-scale]").each(function(t){var n=(0,o.Z)(t),r=parseInt(n.attr("data-swiper-parallax-duration"),10)||e;0===e&&(r=0),n.transition(r)})}},S={name:"parallax",params:{parallax:{enabled:!1}},create:function(){(0,s.cR)(this,{parallax:x({},T)})},on:{beforeInit:function(e){e.params.parallax.enabled&&(e.params.watchSlidesProgress=!0,e.originalParams.watchSlidesProgress=!0)},init:function(e){e.params.parallax.enabled&&e.parallax.setTranslate()},setTranslate:function(e){e.params.parallax.enabled&&e.parallax.setTranslate()},setTransition:function(e,t){e.params.parallax.enabled&&e.parallax.setTransition(t)}}};function _(){return(_=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var C={getDistanceBetweenTouches:function(e){if(e.targetTouches.length<2)return 1;var t=e.targetTouches[0].pageX,n=e.targetTouches[0].pageY;return Math.sqrt(Math.pow(e.targetTouches[1].pageX-t,2)+Math.pow(e.targetTouches[1].pageY-n,2))},onGestureStart:function(e){var t=this.support,n=this.params.zoom,r=this.zoom,i=r.gesture;if(r.fakeGestureTouched=!1,r.fakeGestureMoved=!1,!t.gestures){if("touchstart"!==e.type||"touchstart"===e.type&&e.targetTouches.length<2)return;r.fakeGestureTouched=!0,i.scaleStart=C.getDistanceBetweenTouches(e)}if((!i.$slideEl||!i.$slideEl.length)&&(i.$slideEl=(0,o.Z)(e.target).closest("."+this.params.slideClass),0===i.$slideEl.length&&(i.$slideEl=this.slides.eq(this.activeIndex)),i.$imageEl=i.$slideEl.find("img, svg, canvas, picture, .swiper-zoom-target"),i.$imageWrapEl=i.$imageEl.parent("."+n.containerClass),i.maxRatio=i.$imageWrapEl.attr("data-swiper-zoom")||n.maxRatio,0===i.$imageWrapEl.length)){i.$imageEl=void 0;return}i.$imageEl&&i.$imageEl.transition(0),this.zoom.isScaling=!0},onGestureChange:function(e){var t=this.support,n=this.params.zoom,r=this.zoom,i=r.gesture;if(!t.gestures){if("touchmove"!==e.type||"touchmove"===e.type&&e.targetTouches.length<2)return;r.fakeGestureMoved=!0,i.scaleMove=C.getDistanceBetweenTouches(e)}if(!i.$imageEl||0===i.$imageEl.length){"gesturechange"===e.type&&r.onGestureStart(e);return}t.gestures?r.scale=e.scale*r.currentScale:r.scale=i.scaleMove/i.scaleStart*r.currentScale,r.scale>i.maxRatio&&(r.scale=i.maxRatio-1+Math.pow(r.scale-i.maxRatio+1,.5)),r.scale<n.minRatio&&(r.scale=n.minRatio+1-Math.pow(n.minRatio-r.scale+1,.5)),i.$imageEl.transform("translate3d(0,
900,0) scale("+r.scale+")")},onGestureEnd:function(e){var t=this.device,n=this.support,r=this.params.zoom,i=this.zoom,a=i.gesture;if(!n.gestures){if(!i.fakeGestureTouched||!i.fakeGestureMoved||"touchend"!==e.type||"touchend"===e.type&&e.changedTouches.length<2&&!t.android)return;i.fakeGestureTouched=!1,i.fakeGestureMoved=!1}a.$imageEl&&0!==a.$imageEl.length&&(i.scale=Math.max(Math.min(i.scale,a.maxRatio),r.minRatio),a.$imageEl.transition(this.params.speed).transform("translate3d(0,0,0) scale("+i.scale+")"),i.currentScale=i.scale,i.isScaling=!1,1===i.scale&&(a.$slideEl=void 0))},onTouchStart:function(e){var t=this.device,n=this.zoom,r=n.gesture,i=n.image;r.$imageEl&&0!==r.$imageEl.length&&(i.isTouched||(t.android&&e.cancelable&&e.preventDefault(),i.isTouched=!0,i.touchesStart.x="touchstart"===e.type?e.targetTouches[0].pageX:e.pageX,i.touchesStart.y="touchstart"===e.type?e.targetTouches[0].pageY:e.pageY))},onTouchMove:function(e){var t=this.zoom,n=t.gesture,r=t.image,i=t.velocity;if(n.$imageEl&&0!==n.$imageEl.length&&(this.allowClick=!1,r.isTouched&&n.$slideEl)){!r.isMoved&&(r.width=n.$imageEl[0].offsetWidth,r.height=n.$imageEl[0].offsetHeight,r.startX=(0,s.R6)(n.$imageWrapEl[0],"x")||0,r.startY=(0,s.R6)(n.$imageWrapEl[0],"y")||0,n.slideWidth=n.$slideEl[0].offsetWidth,n.slideHeight=n.$slideEl[0].offsetHeight,n.$imageWrapEl.transition(0),this.rtl&&(r.startX=-r.startX,r.startY=-r.startY));var a=r.width*t.scale,o=r.height*t.scale;if(!(a<n.slideWidth)||!(o<n.slideHeight)){if(r.minX=Math.min(n.slideWidth/2-a/2,0),r.maxX=-r.minX,r.minY=Math.min(n.slideHeight/2-o/2,0),r.maxY=-r.minY,r.touchesCurrent.x="touchmove"===e.type?e.targetTouches[0].pageX:e.pageX,r.touchesCurrent.y="touchmove"===e.type?e.targetTouches[0].pageY:e.pageY,!r.isMoved&&!t.isScaling&&(this.isHorizontal()&&(Math.floor(r.minX)===Math.floor(r.startX)&&r.touchesCurrent.x<r.touchesStart.x||Math.floor(r.maxX)===Math.floor(r.startX)&&r.touchesCurrent.x>r.touchesStart.x)||!this.isHorizontal()&&(Math.floor(r.minY)===Math.floor(r.startY)&&r.touchesCurrent.y<r.touchesStart.y||Math.floor(r.maxY)===Math.floor(r.startY)&&r.touchesCurrent.y>r.touchesStart.y))){r.isTouched=!1;return}e.cancelable&&e.preventDefault(),e.stopPropagation(),r.isMoved=!0,r.currentX=r.touchesCurrent.x-r.touchesStart.x+r.startX,r.currentY=r.touchesCurrent.y-r.touchesStart.y+r.startY,r.currentX<r.minX&&(r.currentX=r.minX+1-Math.pow(r.minX-r.currentX+1,.8)),r.currentX>r.maxX&&(r.currentX=r.maxX-1+Math.pow(r.currentX-r.maxX+1,.8)),r.currentY<r.minY&&(r.currentY=r.minY+1-Math.pow(r.minY-r.currentY+1,.8)),r.currentY>r.maxY&&(r.currentY=r.maxY-1+Math.pow(r.currentY-r.maxY+1,.8)),i.prevPositionX||(i.prevPositionX=r.touchesCurrent.x),i.prevPositionY||(i.prevPositionY=r.touchesCurrent.y),i.prevTime||(i.prevTime=Date.now()),i.x=(r.touchesCurrent.x-i.prevPositionX)/(Date.now()-i.prevTime)/2,i.y=(r.touchesCurrent.y-i.prevPositionY)/(Date.now()-i.prevTime)/2,2>Math.abs(r.touchesCurrent.x-i.prevPositionX)&&(i.x=0),2>Math.abs(r.touchesCurrent.y-i.prevPositionY)&&(i.y=0),i.prevPositionX=r.touchesCurrent.x,i.prevPositionY=r.touchesCurrent.y,i.prevTime=Date.now(),n.$imageWrapEl.transform("translate3d("+r.currentX+"px, "+r.currentY+"px,0)")}}},onTouchEnd:function(){var e=this.zoom,t=e.gesture,n=e.image,r=e.velocity;if(t.$imageEl&&0!==t.$imageEl.length){if(!n.isTouched||!n.isMoved){n.isTouched=!1,n.isMoved=!1;return}n.isTouched=!1,n.isMoved=!1;var i=300,a=300,o=r.x*i,s=n.currentX+o,l=r.y*a,u=n.currentY+l;0!==r.x&&(i=Math.abs((s-n.currentX)/r.x)),0!==r.y&&(a=Math.abs((u-n.currentY)/r.y));var c=Math.max(i,a);n.currentX=s,n.currentY=u;var d=n.width*e.scale,h=n.height*e.scale;n.minX=Math.min(t.slideWidth/2-d/2,0),n.maxX=-n.minX,n.minY=Math.min(t.slideHeight/2-h/2,0),n.maxY=-n.minY,n.currentX=Math.max(Math.min(n.currentX,n.maxX),n.minX),n.currentY=Math.max(Math.min(n.currentY,n.maxY),n.minY),t.$imageWrapEl.transition(c).transform("translate3d("+n.currentX+"px, "+n.currentY+"px,0)")}},onTransitionEnd:function(){var e=this.zoom,t=e.gesture;t.$slideEl&&this.previousIndex!==this.activeIndex&&(t.$imageEl&&t.$imageEl.transform("translate3d(0,
900,0) scale(1)"),t.$imageWrapEl&&t.$imageWrapEl.transform("translate3d(0,0,0)"),e.scale=1,e.currentScale=1,t.$slideEl=void 0,t.$imageEl=void 0,t.$imageWrapEl=void 0)},toggle:function(e){var t=this.zoom;t.scale&&1!==t.scale?t.out():t.in(e)},in:function(e){var t,n,r,i,a,o,s,l,u,c,d,h,f,p,m,g,v,y,b=this.zoom,A=this.params.zoom,E=b.gesture,w=b.image;E.$slideEl||(this.params.virtual&&this.params.virtual.enabled&&this.virtual?E.$slideEl=this.$wrapperEl.children("."+this.params.slideActiveClass):E.$slideEl=this.slides.eq(this.activeIndex),E.$imageEl=E.$slideEl.find("img, svg, canvas, picture, .swiper-zoom-target"),E.$imageWrapEl=E.$imageEl.parent("."+A.containerClass)),E.$imageEl&&0!==E.$imageEl.length&&(E.$slideEl.addClass(""+A.zoomedSlideClass),void 0===w.touchesStart.x&&e?(t="touchend"===e.type?e.changedTouches[0].pageX:e.pageX,n="touchend"===e.type?e.changedTouches[0].pageY:e.pageY):(t=w.touchesStart.x,n=w.touchesStart.y),b.scale=E.$imageWrapEl.attr("data-swiper-zoom")||A.maxRatio,b.currentScale=E.$imageWrapEl.attr("data-swiper-zoom")||A.maxRatio,e?(v=E.$slideEl[0].offsetWidth,y=E.$slideEl[0].offsetHeight,r=E.$slideEl.offset().left,i=E.$slideEl.offset().top,a=r+v/2-t,o=i+y/2-n,u=E.$imageEl[0].offsetWidth,c=E.$imageEl[0].offsetHeight,d=u*b.scale,h=c*b.scale,f=Math.min(v/2-d/2,0),p=Math.min(y/2-h/2,0),m=-f,g=-p,s=a*b.scale,l=o*b.scale,s<f&&(s=f),s>m&&(s=m),l<p&&(l=p),l>g&&(l=g)):(s=0,l=0),E.$imageWrapEl.transition(300).transform("translate3d("+s+"px, "+l+"px,0)"),E.$imageEl.transition(300).transform("translate3d(0,0,0) scale("+b.scale+")"))},out:function(){var e=this.zoom,t=this.params.zoom,n=e.gesture;n.$slideEl||(this.params.virtual&&this.params.virtual.enabled&&this.virtual?n.$slideEl=this.$wrapperEl.children("."+this.params.slideActiveClass):n.$slideEl=this.slides.eq(this.activeIndex),n.$imageEl=n.$slideEl.find("img, svg, canvas, picture, .swiper-zoom-target"),n.$imageWrapEl=n.$imageEl.parent("."+t.containerClass)),n.$imageEl&&0!==n.$imageEl.length&&(e.scale=1,e.currentScale=1,n.$imageWrapEl.transition(300).transform("translate3d(0,0,0)"),n.$imageEl.transition(300).transform("translate3d(0,0,0) scale(1)"),n.$slideEl.removeClass(""+t.zoomedSlideClass),n.$slideEl=void 0)},toggleGestures:function(e){var t=this.zoom,n=t.slideSelector,r=t.passiveListener;this.$wrapperEl[e]("gesturestart",n,t.onGestureStart,r),this.$wrapperEl[e]("gesturechange",n,t.onGestureChange,r),this.$wrapperEl[e]("gestureend",n,t.onGestureEnd,r)},enableGestures:function(){this.zoom.gesturesEnabled||(this.zoom.gesturesEnabled=!0,this.zoom.toggleGestures("on"))},disableGestures:function(){this.zoom.gesturesEnabled&&(this.zoom.gesturesEnabled=!1,this.zoom.toggleGestures("off"))},enable:function(){var e=this.support,t=this.zoom;if(!t.enabled){t.enabled=!0;var n="touchstart"===this.touchEvents.start&&!!e.passiveListener&&!!this.params.passiveListeners&&{passive:!0,capture:!1},r=!e.passiveListener||{passive:!1,capture:!0},i="."+this.params.slideClass;this.zoom.passiveListener=n,this.zoom.slideSelector=i,e.gestures?(this.$wrapperEl.on(this.touchEvents.start,this.zoom.enableGestures,n),this.$wrapperEl.on(this.touchEvents.end,this.zoom.disableGestures,n)):"touchstart"===this.touchEvents.start&&(this.$wrapperEl.on(this.touchEvents.start,i,t.onGestureStart,n),this.$wrapperEl.on(this.touchEvents.move,i,t.onGestureChange,r),this.$wrapperEl.on(this.touchEvents.end,i,t.onGestureEnd,n),this.touchEvents.cancel&&this.$wrapperEl.on(this.touchEvents.cancel,i,t.onGestureEnd,n)),this.$wrapperEl.on(this.touchEvents.move,"."+this.params.zoom.containerClass,t.onTouchMove,r)}},disable:function(){var e=this.zoom;if(e.enabled){var t=this.support;this.zoom.enabled=!1;var n="touchstart"===this.touchEvents.start&&!!t.passiveListener&&!!this.params.passiveListeners&&{passive:!0,capture:!1},r=!t.passiveListener||{passive:!1,capture:!0},i="."+this.params.slideClass;t.gestures?(this.$wrapperEl.off(this.touchEvents.start,this.zoom.enableGestures,n),this.$wrapperEl.off(this.touchEvents.end,this.zoom.disableGestures,n)):"touchstart"===this.touchEvents.start&&(this.$wrapperEl.off(this.touchEvents.start,i,e.onGestureStart,n),this.$wrapperEl.off(this.touchEvents.move,i,e.onGestureChange,r),this.$wrapperEl.off(this.touchEvents.end,i,e.onGestureEnd,n),this.touchEvents.cancel&&this.$wrapperEl.off(this.touchEvents.cancel,i,e.onGestureEnd,n)),this.$wrapperEl.off(this.touchEvents.move,"."+this.params.zoom.containerClass,e.onTouchMove,r)}}},k={name:"zoom",params:{zoom:{enabled:!1,maxRatio:3,minRatio:1,toggle:!0,containerClass:"swiper-zoom-container",zoomedSlideClass:"swiper-slide-zoomed"}},create:function(){var e=this;(0,s.cR)(e,{zoom:_({enabled:!1,scale:1,currentScale:1,isScaling:!1,gesture:{$slideEl:void 0,slideWidth:void 0,slideHeight:void 0,$imageEl:void 0,$imageWrapEl:void 0,maxRatio:3},image:{isTouched:void 0,isMoved:void 0,currentX:void 0,currentY:void 0,minX:void 0,minY:void 0,maxX:void 0,maxY:void 0,width:void 0,height:void 0,startX:void 0,startY:void 0,touchesStart:{},touchesCurrent:{}},velocity:{x:void 0,y:void 0,prevPositionX:void 0,prevPositionY:void 0,prevTime:void 0}},C)});var t=1;Object.defineProperty(e.zoom,"scale",{get:function(){return t},set:function(n){if(t!==n){var r=e.zoom.gesture.$imageEl?e.zoom.gesture.$imageEl[0]:void 0,i=e.zoom.gesture.$slideEl?e.zoom.gesture.$slideEl[0]:void 0;e.emit("zoomChange",n,r,i)}t=n}})},on:{init:function(e){e.params.zoom.enabled&&e.zoom.enable()},destroy:function(e){e.zoom.disable()},touchStart:function(e,t){e.zoom.enabled&&e.zoom.onTouchStart(t)},touchEnd:function(e,t){e.zoom.enabled&&e.zoom.onTouchEnd(t)},doubleTap:function(e,t){e.params.zoom.enabled&&e.zoom.enabled&&e.params.zoom.toggle&&e.zoom.toggle(t)},transitionEnd:function(e){e.zoom.enabled&&e.params.zoom.enabled&&e.zoom.onTransitionEnd()},slideChange:function(e){e.zoom.enabled&&e.params.zoom.enabled&&e.params.cssMode&&e.zoom.onTransitionEnd()}}};function I(){return(I=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var L={loadInSlide:function(e,t){void 0===t&&(t=!0);var n=this,r=n.params.lazy;if(void 0!==e&&0!==n.slides.length){var i=n.virtual&&n.params.virtual.enabled?n.$wrapperEl.children("."+n.params.slideClass+'[data-swiper-slide-index="'+e+'"]'):n.slides.eq(e),a=i.find("."+r.elementClass+":not(."+r.loadedClass+"):not(."+r.loadingClass+")");!i.hasClass(r.elementClass)||i.hasClass(r.loadedClass)||i.hasClass(r.loadingClass)||a.push(i[0]),0!==a.length&&a.each(function(e){var a=(0,o.Z)(e);a.addClass(r.loadingClass);var s=a.attr("data-background"),l=a.attr("data-src"),u=a.attr("data-srcset"),c=a.attr("data-sizes"),d=a.parent("picture");n.loadImage(a[0],l||s,u,c,!1,function(){if(null!=n&&n&&(!n||n.params)&&!n.destroyed){
90if(s?(a.css("background-image",'url("'+s+'")'),a.removeAttr("data-background")):(u&&(a.attr("srcset",u),a.removeAttr("data-srcset")),c&&(a.attr("sizes",c),a.removeAttr("data-sizes")),d.length&&d.children("source").each(function(e){var t=(0,o.Z)(e);t.attr("data-srcset")&&(t.attr("srcset",t.attr("data-srcset")),t.removeAttr("data-srcset"))}),l&&(a.attr("src",l),a.removeAttr("data-src"))),a.addClass(r.loadedClass).removeClass(r.loadingClass),i.find("."+r.preloaderClass).remove(),n.params.loop&&t){var e=i.attr("data-swiper-slide-index");if(i.hasClass(n.params.slideDuplicateClass)){var h=n.$wrapperEl.children('[data-swiper-slide-index="'+e+'"]:not(.'+n.params.slideDuplicateClass+")");n.lazy.loadInSlide(h.index(),!1)}else{var f=n.$wrapperEl.children("."+n.params.slideDuplicateClass+'[data-swiper-slide-index="'+e+'"]');n.lazy.loadInSlide(f.index(),!1)}}n.emit("lazyImageReady",i[0],a[0]),n.params.autoHeight&&n.updateAutoHeight()}}),n.emit("lazyImageLoad",i[0],a[0])})}},load:function(){var e=this,t=e.$wrapperEl,n=e.params,r=e.slides,i=e.activeIndex,a=e.virtual&&n.virtual.enabled,s=n.lazy,l=n.slidesPerView;function u(e){if(a){if(t.children("."+n.slideClass+'[data-swiper-slide-index="'+e+'"]').length)return!0}else if(r[e])return!0;return!1}function c(e){return a?(0,o.Z)(e).attr("data-swiper-slide-index"):(0,o.Z)(e).index()}if("auto"===l&&(l=0),e.lazy.initialImageLoaded||(e.lazy.initialImageLoaded=!0),e.params.watchSlidesVisibility)t.children("."+n.slideVisibleClass).each(function(t){var n=a?(0,o.Z)(t).attr("data-swiper-slide-index"):(0,o.Z)(t).index();e.lazy.loadInSlide(n)});else if(l>1)for(var d=i;d<i+l;d+=1)u(d)&&e.lazy.loadInSlide(d);else e.lazy.loadInSlide(i);if(s.loadPrevNext){if(l>1||s.loadPrevNextAmount&&s.loadPrevNextAmount>1){for(var h=s.loadPrevNextAmount,f=l,p=Math.min(i+f+Math.max(h,f),r.length),m=Math.max(i-Math.max(f,h),0),g=i+l;g<p;g+=1)u(g)&&e.lazy.loadInSlide(g);for(var v=m;v<i;v+=1)u(v)&&e.lazy.loadInSlide(v)}else{var y=t.children("."+n.slideNextClass);y.length>0&&e.lazy.loadInSlide(c(y));var b=t.children("."+n.slidePrevClass);b.length>0&&e.lazy.loadInSlide(c(b))}}}},P={name:"lazy",params:{lazy:{enabled:!1,loadPrevNext:!1,loadPrevNextAmount:1,loadOnTransitionStart:!1,elementClass:"swiper-lazy",loadingClass:"swiper-lazy-loading",loadedClass:"swiper-lazy-loaded",preloaderClass:"swiper-lazy-preloader"}},create:function(){(0,s.cR)(this,{lazy:I({initialImageLoaded:!1},L)})},on:{beforeInit:function(e){e.params.lazy.enabled&&e.params.preloadImages&&(e.params.preloadImages=!1)},init:function(e){e.params.lazy.enabled&&!e.params.loop&&0===e.params.initialSlide&&e.lazy.load()},scroll:function(e){e.params.freeMode&&!e.params.freeModeSticky&&e.lazy.load()},resize:function(e){e.params.lazy.enabled&&e.lazy.load()},scrollbarDragMove:function(e){e.params.lazy.enabled&&e.lazy.load()},transitionStart:function(e){e.params.lazy.enabled&&(e.params.lazy.loadOnTransitionStart||!e.params.lazy.loadOnTransitionStart&&!e.lazy.initialImageLoaded)&&e.lazy.load()},transitionEnd:function(e){e.params.lazy.enabled&&!e.params.lazy.loadOnTransitionStart&&e.lazy.load()},slideChange:function(e){e.params.lazy.enabled&&e.params.cssMode&&e.lazy.load()}}};function O(){return(O=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var R={LinearSpline:function(e,t){var n,r,i,a,o,s=function(e,t){for(r=-1,n=e.length;n-r>1;)e[i=n+r>>1]<=t?r=i:n=i;return n};return this.x=e,this.y=t,this.lastIndex=e.length-1,this.interpolate=function(e){return e?(a=(o=s(this.x,e))-1,(e-this.x[a])*(this.y[o]-this.y[a])/(this.x[o]-this.x[a])+this.y[a]):0},this},getInterpolateFunction:function(e){this.controller.spline||(this.controller.spline=this.params.loop?new R.LinearSpline(this.slidesGrid,e.slidesGrid):new R.LinearSpline(this.snapGrid,e.snapGrid))},setTranslate:function(e,t){var n,r,i=this,a=i.controller.control,o=i.constructor;function s(e){var t=i.rtlTranslate?-i.translate:i.translate;"slide"===i.params.controller.by&&(i.controller.getInterpolateFunction(e),r=-i.
90controller.spline.interpolate(-t)),r&&"container"!==i.params.controller.by||(n=(e.maxTranslate()-e.minTranslate())/(i.maxTranslate()-i.minTranslate()),r=(t-i.minTranslate())*n+e.minTranslate()),i.params.controller.inverse&&(r=e.maxTranslate()-r),e.updateProgress(r),e.setTranslate(r,i),e.updateActiveIndex(),e.updateSlidesClasses()}if(Array.isArray(a))for(var l=0;l<a.length;l+=1)a[l]!==t&&a[l]instanceof o&&s(a[l]);else a instanceof o&&t!==a&&s(a)},setTransition:function(e,t){var n,r=this,i=r.constructor,a=r.controller.control;function o(t){t.setTransition(e,r),0!==e&&(t.transitionStart(),t.params.autoHeight&&(0,s.Y3)(function(){t.updateAutoHeight()}),t.$wrapperEl.transitionEnd(function(){a&&(t.params.loop&&"slide"===r.params.controller.by&&t.loopFix(),t.transitionEnd())}))}if(Array.isArray(a))for(n=0;n<a.length;n+=1)a[n]!==t&&a[n]instanceof i&&o(a[n]);else a instanceof i&&t!==a&&o(a)}},D={name:"controller",params:{controller:{control:void 0,inverse:!1,by:"slide"}},create:function(){(0,s.cR)(this,{controller:O({control:this.params.controller.control},R)})},on:{update:function(e){e.controller.control&&e.controller.spline&&(e.controller.spline=void 0,delete e.controller.spline)},resize:function(e){e.controller.control&&e.controller.spline&&(e.controller.spline=void 0,delete e.controller.spline)},observerUpdate:function(e){e.controller.control&&e.controller.spline&&(e.controller.spline=void 0,delete e.controller.spline)},setTranslate:function(e,t,n){e.controller.control&&e.controller.setTranslate(t,n)},setTransition:function(e,t,n){e.controller.control&&e.controller.setTransition(t,n)}}};function N(){return(N=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var M={makeElFocusable:function(e){return e.attr("tabIndex","0"),e},makeElNotFocusable:function(e){return e.attr("tabIndex","-1"),e},addElRole:function(e,t){return e.attr("role",t),e},addElLabel:function(e,t){return e.attr("aria-label",t),e},disableEl:function(e){return e.attr("aria-disabled",!0),e},enableEl:function(e){return e.attr("aria-disabled",!1),e},onEnterKey:function(e){var t=this.params.a11y;if(13===e.keyCode){var n=(0,o.Z)(e.target);this.navigation&&this.navigation.$nextEl&&n.is(this.navigation.$nextEl)&&(this.isEnd&&!this.params.loop||this.slideNext(),this.isEnd?this.a11y.notify(t.lastSlideMessage):this.a11y.notify(t.nextSlideMessage)),this.navigation&&this.navigation.$prevEl&&n.is(this.navigation.$prevEl)&&(this.isBeginning&&!this.params.loop||this.slidePrev(),this.isBeginning?this.a11y.notify(t.firstSlideMessage):this.a11y.notify(t.prevSlideMessage)),this.pagination&&n.is("."+this.params.pagination.bulletClass)&&n[0].click()}},notify:function(e){var t=this.a11y.liveRegion;0!==t.length&&(t.html(""),t.html(e))},updateNavigation:function(){if(!this.params.loop&&this.navigation){var e=this.navigation,t=e.$nextEl,n=e.$prevEl;n&&n.length>0&&(this.isBeginning?(this.a11y.disableEl(n),this.a11y.makeElNotFocusable(n)):(this.a11y.enableEl(n),this.a11y.makeElFocusable(n))),t&&t.length>0&&(this.isEnd?(this.a11y.disableEl(t),this.a11y.makeElNotFocusable(t)):(this.a11y.enableEl(t),this.a11y.makeElFocusable(t)))}},updatePagination:function(){var e=this,t=e.params.a11y;e.pagination&&e.params.pagination.clickable&&e.pagination.bullets&&e.pagination.bullets.length&&e.pagination.bullets.each(function(n){var r=(0,o.Z)(n);e.a11y.makeElFocusable(r),e.a11y.addElRole(r,"button"),e.a11y.addElLabel(r,t.paginationBulletMessage.replace(/\{\{index\}\}/,r.index()+1))})},init:function(){this.$el.append(this.a11y.liveRegion);var e,t,n=this.params.a11y;this.navigation&&this.navigation.$nextEl&&(e=this.navigation.$nextEl),this.navigation&&this.navigation.$prevEl&&(t=this.navigation.$prevEl),e&&(this.a11y.makeElFocusable(e),this.a11y.addElRole(e,"button"),this.a11y.addElLabel(e,n.nextSlideMessage),e.on("keydown",this.a11y.onEnterKey)),t&&(this.a11y.makeElFocusable(t),this.a11y.addElRole(t,"button"),this.a11y.addElLabel(t,n.prevSlideMessage),t.on("keydown",this.a11y.onEnterKey)),this.pagination&&this.params.pagination.clickable&&this.pagination.bullets&&this.pagination.bullets.length&&this.pagination.$el.on("key
90down","."+this.params.pagination.bulletClass,this.a11y.onEnterKey)},destroy:function(){var e,t;this.a11y.liveRegion&&this.a11y.liveRegion.length>0&&this.a11y.liveRegion.remove(),this.navigation&&this.navigation.$nextEl&&(e=this.navigation.$nextEl),this.navigation&&this.navigation.$prevEl&&(t=this.navigation.$prevEl),e&&e.off("keydown",this.a11y.onEnterKey),t&&t.off("keydown",this.a11y.onEnterKey),this.pagination&&this.params.pagination.clickable&&this.pagination.bullets&&this.pagination.bullets.length&&this.pagination.$el.off("keydown","."+this.params.pagination.bulletClass,this.a11y.onEnterKey)}},j={name:"a11y",params:{a11y:{enabled:!0,notificationClass:"swiper-notification",prevSlideMessage:"Previous slide",nextSlideMessage:"Next slide",firstSlideMessage:"This is the first slide",lastSlideMessage:"This is the last slide",paginationBulletMessage:"Go to slide {{index}}"}},create:function(){(0,s.cR)(this,{a11y:N(N({},M),{},{liveRegion:(0,o.Z)('<span class="'+this.params.a11y.notificationClass+'" aria-live="assertive" aria-atomic="true"></span>')})})},on:{init:function(e){e.params.a11y.enabled&&(e.a11y.init(),e.a11y.updateNavigation())},toEdge:function(e){e.params.a11y.enabled&&e.a11y.updateNavigation()},fromEdge:function(e){e.params.a11y.enabled&&e.a11y.updateNavigation()},paginationUpdate:function(e){e.params.a11y.enabled&&e.a11y.updatePagination()},destroy:function(e){e.params.a11y.enabled&&e.a11y.destroy()}}};function F(){return(F=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var B={init:function(){var e=(0,l.Jj)();if(this.params.history){if(!e.history||!e.history.pushState){this.params.history.enabled=!1,this.params.hashNavigation.enabled=!0;return}var t=this.history;t.initialized=!0,t.paths=B.getPathValues(this.params.url),(t.paths.key||t.paths.value)&&(t.scrollToSlide(0,t.paths.value,this.params.runCallbacksOnInit),this.params.history.replaceState||e.addEventListener("popstate",this.history.setHistoryPopState))}},destroy:function(){var e=(0,l.Jj)();this.params.history.replaceState||e.removeEventListener("popstate",this.history.setHistoryPopState)},setHistoryPopState:function(){this.history.paths=B.getPathValues(this.params.url),this.history.scrollToSlide(this.params.speed,this.history.paths.value,!1)},getPathValues:function(e){var t=(0,l.Jj)(),n=(e?new URL(e):t.location).pathname.slice(1).split("/").filter(function(e){return""!==e}),r=n.length;return{key:n[r-2],value:n[r-1]}},setHistory:function(e,t){var n,r=(0,l.Jj)();if(this.history.initialized&&this.params.history.enabled){n=this.params.url?new URL(this.params.url):r.location;var i=this.slides.eq(t),a=B.slugify(i.attr("data-history"));n.pathname.includes(e)||(a=e+"/"+a);var o=r.history.state;if(o&&o.value===a)return;this.params.history.replaceState?r.history.replaceState({value:a},null,a):r.history.pushState({value:a},null,a)}},slugify:function(e){return e.toString().replace(/\s+/g,"-").replace(/[^\w-]+/g,"").replace(/--+/g,"-").replace(/^-+/,"").replace(/-+$/,"")},scrollToSlide:function(e,t,n){if(t)for(var r=0,i=this.slides.length;r<i;r+=1){var a=this.slides.eq(r);if(B.slugify(a.attr("data-history"))===t&&!a.hasClass(this.params.slideDuplicateClass)){var o=a.index();this.slideTo(o,e,n)}}else this.slideTo(0,e,n)}},U={name:"history",params:{history:{enabled:!1,replaceState:!1,key:"slides"}},create:function(){(0,s.cR)(this,{history:F({},B)})},on:{init:function(e){e.params.history.enabled&&e.history.init()},destroy:function(e){e.params.history.enabled&&e.history.destroy()},transitionEnd:function(e){e.history.initialized&&e.history.setHistory(e.params.history.key,e.activeIndex)},slideChange:function(e){e.history.initialized&&e.params.cssMode&&e.history.setHistory(e.params.history.key,e.activeIndex)}}};function V(){return(V=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var z={onHashCange:function(){var e=(0,l.Me)();
90this.emit("hashChange");var t=e.location.hash.replace("#","");if(t!==this.slides.eq(this.activeIndex).attr("data-hash")){var n=this.$wrapperEl.children("."+this.params.slideClass+'[data-hash="'+t+'"]').index();if(void 0===n)return;this.slideTo(n)}},setHash:function(){var e=(0,l.Jj)(),t=(0,l.Me)();if(this.hashNavigation.initialized&&this.params.hashNavigation.enabled){if(this.params.hashNavigation.replaceState&&e.history&&e.history.replaceState)e.history.replaceState(null,null,"#"+this.slides.eq(this.activeIndex).attr("data-hash")),this.emit("hashSet");else{var n=this.slides.eq(this.activeIndex),r=n.attr("data-hash")||n.attr("data-history");t.location.hash=r||"",this.emit("hashSet")}}},init:function(){var e=(0,l.Me)(),t=(0,l.Jj)();if(this.params.hashNavigation.enabled&&(!this.params.history||!this.params.history.enabled)){this.hashNavigation.initialized=!0;var n=e.location.hash.replace("#","");if(n)for(var r=0,i=this.slides.length;r<i;r+=1){var a=this.slides.eq(r);if((a.attr("data-hash")||a.attr("data-history"))===n&&!a.hasClass(this.params.slideDuplicateClass)){var s=a.index();this.slideTo(s,0,this.params.runCallbacksOnInit,!0)}}this.params.hashNavigation.watchState&&(0,o.Z)(t).on("hashchange",this.hashNavigation.onHashCange)}},destroy:function(){var e=(0,l.Jj)();this.params.hashNavigation.watchState&&(0,o.Z)(e).off("hashchange",this.hashNavigation.onHashCange)}},q={name:"hash-navigation",params:{hashNavigation:{enabled:!1,replaceState:!1,watchState:!1}},create:function(){(0,s.cR)(this,{hashNavigation:V({initialized:!1},z)})},on:{init:function(e){e.params.hashNavigation.enabled&&e.hashNavigation.init()},destroy:function(e){e.params.hashNavigation.enabled&&e.hashNavigation.destroy()},transitionEnd:function(e){e.hashNavigation.initialized&&e.hashNavigation.setHash()},slideChange:function(e){e.hashNavigation.initialized&&e.params.cssMode&&e.hashNavigation.setHash()}}},Q=n(7649);function H(){return(H=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var G={setTranslate:function(){for(var e=this.slides,t=0;t<e.length;t+=1){var n=this.slides.eq(t),r=-n[0].swiperSlideOffset;this.params.virtualTranslate||(r-=this.translate);var i=0;this.isHorizontal()||(i=r,r=0);var a=this.params.fadeEffect.crossFade?Math.max(1-Math.abs(n[0].progress),0):1+Math.min(Math.max(n[0].progress,-1),0);n.css({opacity:a}).transform("translate3d("+r+"px, "+i+"px, 0px)")}},setTransition:function(e){var t=this,n=t.slides,r=t.$wrapperEl;if(n.transition(e),t.params.virtualTranslate&&0!==e){var i=!1;n.transitionEnd(function(){if(!i&&t&&!t.destroyed){i=!0,t.animating=!1;for(var e=["webkitTransitionEnd","transitionend"],n=0;n<e.length;n+=1)r.trigger(e[n])}})}}},K={name:"effect-fade",params:{fadeEffect:{crossFade:!1}},create:function(){(0,s.cR)(this,{fadeEffect:H({},G)})},on:{beforeInit:function(e){if("fade"===e.params.effect){e.classNames.push(e.params.containerModifierClass+"fade");var t={slidesPerView:1,slidesPerColumn:1,slidesPerGroup:1,watchSlidesProgress:!0,spaceBetween:0,virtualTranslate:!0};(0,s.l7)(e.params,t),(0,s.l7)(e.originalParams,t)}},setTranslate:function(e){"fade"===e.params.effect&&e.fadeEffect.setTranslate()},setTransition:function(e,t){"fade"===e.params.effect&&e.fadeEffect.setTransition(t)}}};function $(){return($=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var W={setTranslate:function(){var e,t=this.$el,n=this.$wrapperEl,r=this.slides,i=this.width,a=this.height,s=this.rtlTranslate,l=this.size,u=this.browser,c=this.params.cubeEffect,d=this.isHorizontal(),h=this.virtual&&this.params.virtual.enabled,f=0;c.shadow&&(d?(0===(e=n.find(".swiper-cube-shadow")).length&&(e=(0,o.Z)('<div class="swiper-cube-shadow"></div>'),n.append(e)),e.css({height:i+"px"})):0===(e=t.find(".swiper-cube-shadow")).length&&(e=(0,o.Z)('<div class="swiper-cube-shadow"></div>'),t.append(e)));for(var p=0;p<r.length;p+=1){var m=r.eq(p),g=p;h&&(g=parseInt(m.attr("data-swiper-slide-index"),10));var v=90*g,y=Math.floor(v/360);s&&(y=Math.floor(-(v=-v)/360));
90var b=Math.max(Math.min(m[0].progress,1),-1),A=0,E=0,w=0;g%4==0?(A=-(4*y)*l,w=0):(g-1)%4==0?(A=0,w=-(4*y)*l):(g-2)%4==0?(A=l+4*y*l,w=l):(g-3)%4==0&&(A=-l,w=3*l+4*l*y),s&&(A=-A),d||(E=A,A=0);var x="rotateX("+(d?0:-v)+"deg) rotateY("+(d?v:0)+"deg) translate3d("+A+"px, "+E+"px, "+w+"px)";if(b<=1&&b>-1&&(f=90*g+90*b,s&&(f=-(90*g)-90*b)),m.transform(x),c.slideShadows){var T=d?m.find(".swiper-slide-shadow-left"):m.find(".swiper-slide-shadow-top"),S=d?m.find(".swiper-slide-shadow-right"):m.find(".swiper-slide-shadow-bottom");0===T.length&&(T=(0,o.Z)('<div class="swiper-slide-shadow-'+(d?"left":"top")+'"></div>'),m.append(T)),0===S.length&&(S=(0,o.Z)('<div class="swiper-slide-shadow-'+(d?"right":"bottom")+'"></div>'),m.append(S)),T.length&&(T[0].style.opacity=Math.max(-b,0)),S.length&&(S[0].style.opacity=Math.max(b,0))}}if(n.css({"-webkit-transform-origin":"50% 50% -"+l/2+"px","-moz-transform-origin":"50% 50% -"+l/2+"px","-ms-transform-origin":"50% 50% -"+l/2+"px","transform-origin":"50% 50% -"+l/2+"px"}),c.shadow){if(d)e.transform("translate3d(0px, "+(i/2+c.shadowOffset)+"px, "+-i/2+"px) rotateX(90deg) rotateZ(0deg) scale("+c.shadowScale+")");else{var _=Math.abs(f)-90*Math.floor(Math.abs(f)/90),C=1.5-(Math.sin(2*_*Math.PI/360)/2+Math.cos(2*_*Math.PI/360)/2),k=c.shadowScale,I=c.shadowScale/C,L=c.shadowOffset;e.transform("scale3d("+k+", 1, "+I+") translate3d(0px, "+(a/2+L)+"px, "+-a/2/I+"px) rotateX(-90deg)")}}var P=u.isSafari||u.isWebView?-l/2:0;n.transform("translate3d(0px,0,"+P+"px) rotateX("+(this.isHorizontal()?0:f)+"deg) rotateY("+(this.isHorizontal()?-f:0)+"deg)")},setTransition:function(e){var t=this.$el;this.slides.transition(e).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(e),this.params.cubeEffect.shadow&&!this.isHorizontal()&&t.find(".swiper-cube-shadow").transition(e)}},Z={name:"effect-cube",params:{cubeEffect:{slideShadows:!0,shadow:!0,shadowOffset:20,shadowScale:.94}},create:function(){(0,s.cR)(this,{cubeEffect:$({},W)})},on:{beforeInit:function(e){if("cube"===e.params.effect){e.classNames.push(e.params.containerModifierClass+"cube"),e.classNames.push(e.params.containerModifierClass+"3d");var t={slidesPerView:1,slidesPerColumn:1,slidesPerGroup:1,watchSlidesProgress:!0,resistanceRatio:0,spaceBetween:0,centeredSlides:!1,virtualTranslate:!0};(0,s.l7)(e.params,t),(0,s.l7)(e.originalParams,t)}},setTranslate:function(e){"cube"===e.params.effect&&e.cubeEffect.setTranslate()},setTransition:function(e,t){"cube"===e.params.effect&&e.cubeEffect.setTransition(t)}}};function Y(){return(Y=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var X={setTranslate:function(){for(var e=this.slides,t=this.rtlTranslate,n=0;n<e.length;n+=1){var r=e.eq(n),i=r[0].progress;this.params.flipEffect.limitRotation&&(i=Math.max(Math.min(r[0].progress,1),-1));var a=r[0].swiperSlideOffset,s=-180*i,l=0,u=-a,c=0;if(this.isHorizontal()?t&&(s=-s):(c=u,u=0,l=-s,s=0),r[0].style.zIndex=-Math.abs(Math.round(i))+e.length,this.params.flipEffect.slideShadows){var d=this.isHorizontal()?r.find(".swiper-slide-shadow-left"):r.find(".swiper-slide-shadow-top"),h=this.isHorizontal()?r.find(".swiper-slide-shadow-right"):r.find(".swiper-slide-shadow-bottom");0===d.length&&(d=(0,o.Z)('<div class="swiper-slide-shadow-'+(this.isHorizontal()?"left":"top")+'"></div>'),r.append(d)),0===h.length&&(h=(0,o.Z)('<div class="swiper-slide-shadow-'+(this.isHorizontal()?"right":"bottom")+'"></div>'),r.append(h)),d.length&&(d[0].style.opacity=Math.max(-i,0)),h.length&&(h[0].style.opacity=Math.max(i,0))}r.transform("translate3d("+u+"px, "+c+"px, 0px) rotateX("+l+"deg) rotateY("+s+"deg)")}},setTransition:function(e){var t=this,n=t.slides,r=t.activeIndex,i=t.$wrapperEl;if(n.transition(e).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(e),t.params.virtualTranslate&&0!==e){var a=!1;n.eq(r).transitionEnd(function(){if(!a&&t&&!t.destroyed){a=!0,t.animating=!1;for(var e=["webkitTransitionEnd","transitionend"],n=0;n<e.length;n+=1)i.trigger(e[n])}})}}},J={name:"effect-flip",params:{flipEffect:{slideShadows:!0,limitRotation:!0}},create:function(){(0,s.cR)(this,{flipEffect:Y({},X)})},on:{beforeInit:function(e){if("flip"===e.params.effect){e.classNames.push(e.params.containerModifierClass+"flip"),e.classNames.push(e.params.containerModifierClass+"3d");var t={slidesPerView:1,slidesPerColumn:1,slidesPerGroup:1,watchSlidesProgress:!0,spaceBetween:0,virtualTranslate:!0};(0,s.l7)(e.params,t),(0,s.l7)(e.originalParams,t)}},setTranslate:function(e){"flip"===e.params.effect&&e.flipEffect.setTranslate()},setTransition:function(e,t){"flip"===e.params.effect&&e.flipEffect.setTransition(t)}}};function ee(){return(ee=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var et={setTranslate:function(){for(var e=this.width,t=this.height,n=this.slides,r=this.slidesSizesGrid,i=this.params.coverflowEffect,a=this.isHorizontal(),s=this.translate,l=a?-s+e/2:-s+t/2,u=a?i.rotate:-i.rotate,c=i.depth,d=0,h=n.length;d<h;d+=1){var f=n.eq(d),p=r[d],m=(l-f[0].swiperSlideOffset-p/2)/p*i.modifier,g=a?u*m:0,v=a?0:u*m,y=-c*Math.abs(m),b=i.stretch;"string"==typeof b&&-1!==b.indexOf("%")&&(b=parseFloat(i.stretch)/100*p);var A=a?0:b*m,E=a?b*m:0,w=1-(1-i.scale)*Math.abs(m);.001>Math.abs(E)&&(E=0),.001>Math.abs(A)&&(A=0),.001>Math.abs(y)&&(y=0),.001>Math.abs(g)&&(g=0),.001>Math.abs(v)&&(v=0),.001>Math.abs(w)&&(w=0);var x="translate3d("+E+"px,"+A+"px,"+y+"px)  rotateX("+v+"deg) rotateY("+g+"deg) scale("+w+")";if(f.transform(x),f[0].style.zIndex=-Math.abs(Math.round(m))+1,i.slideShadows){var T=a?f.find(".swiper-slide-shadow-left"):f.find(".swiper-slide-shadow-top"),S=a?f.find(".swiper-slide-shadow-right"):f.find(".swiper-slide-shadow-bottom");0===T.length&&(T=(0,o.Z)('<div class="swiper-slide-shadow-'+(a?"left":"top")+'"></div>'),f.append(T)),0===S.length&&(S=(0,o.Z)('<div class="swiper-slide-shadow-'+(a?"right":"bottom")+'"></div>'),f.append(S)),T.length&&(T[0].style.opacity=m>0?m:0),S.length&&(S[0].style.opacity=-m>0?-m:0)}}},setTransition:function(e){this.slides.transition(e).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(e)}},en={name:"effect-coverflow",params:{coverflowEffect:{rotate:50,stretch:0,depth:100,scale:1,modifier:1,slideShadows:!0}},create:function(){(0,s.cR)(this,{coverflowEffect:ee({},et)}
90)},on:{beforeInit:function(e){"coverflow"===e.params.effect&&(e.classNames.push(e.params.containerModifierClass+"coverflow"),e.classNames.push(e.params.containerModifierClass+"3d"),e.params.watchSlidesProgress=!0,e.originalParams.watchSlidesProgress=!0)},setTranslate:function(e){"coverflow"===e.params.effect&&e.coverflowEffect.setTranslate()},setTransition:function(e,t){"coverflow"===e.params.effect&&e.coverflowEffect.setTransition(t)}}};function er(){return(er=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var ei={init:function(){var e=this.params.thumbs;if(this.thumbs.initialized)return!1;this.thumbs.initialized=!0;var t=this.constructor;return e.swiper instanceof t?(this.thumbs.swiper=e.swiper,(0,s.l7)(this.thumbs.swiper.originalParams,{watchSlidesProgress:!0,slideToClickedSlide:!1}),(0,s.l7)(this.thumbs.swiper.params,{watchSlidesProgress:!0,slideToClickedSlide:!1})):(0,s.Kn)(e.swiper)&&(this.thumbs.swiper=new t((0,s.l7)({},e.swiper,{watchSlidesVisibility:!0,watchSlidesProgress:!0,slideToClickedSlide:!1})),this.thumbs.swiperCreated=!0),this.thumbs.swiper.$el.addClass(this.params.thumbs.thumbsContainerClass),this.thumbs.swiper.on("tap",this.thumbs.onThumbClick),!0},onThumbClick:function(){var e,t=this.thumbs.swiper;if(t){var n=t.clickedIndex,r=t.clickedSlide;if(!(r&&(0,o.Z)(r).hasClass(this.params.thumbs.slideThumbActiveClass))&&null!=n){if(e=t.params.loop?parseInt((0,o.Z)(t.clickedSlide).attr("data-swiper-slide-index"),10):n,this.params.loop){var i=this.activeIndex;this.slides.eq(i).hasClass(this.params.slideDuplicateClass)&&(this.loopFix(),this._clientLeft=this.$wrapperEl[0].clientLeft,i=this.activeIndex);var a=this.slides.eq(i).prevAll('[data-swiper-slide-index="'+e+'"]').eq(0).index(),s=this.slides.eq(i).nextAll('[data-swiper-slide-index="'+e+'"]').eq(0).index();e=void 0===a?s:void 0===s?a:s-i<i-a?s:a}this.slideTo(e)}}},update:function(e){var t=this.thumbs.swiper;if(t){var n="auto"===t.params.slidesPerView?t.slidesPerViewDynamic():t.params.slidesPerView,r=this.params.thumbs.autoScrollOffset,i=r&&!t.params.loop;if(this.realIndex!==t.realIndex||i){var a,o,s=t.activeIndex;if(t.params.loop){t.slides.eq(s).hasClass(t.params.slideDuplicateClass)&&(t.loopFix(),t._clientLeft=t.$wrapperEl[0].clientLeft,s=t.activeIndex);var l=t.slides.eq(s).prevAll('[data-swiper-slide-index="'+this.realIndex+'"]').eq(0).index(),u=t.slides.eq(s).nextAll('[data-swiper-slide-index="'+this.realIndex+'"]').eq(0).index();a=void 0===l?u:void 0===u?l:u-s==s-l?s:u-s<s-l?u:l,o=this.activeIndex>this.previousIndex?"next":"prev"}else o=(a=this.realIndex)>this.previousIndex?"next":"prev";i&&(a+="next"===o?r:-1*r),t.visibleSlidesIndexes&&0>t.visibleSlidesIndexes.indexOf(a)&&(t.params.centeredSlides?a=a>s?a-Math.floor(n/2)+1:a+Math.floor(n/2)-1:a>s&&(a=a-n+1),t.slideTo(a,e?0:void 0))}var c=1,d=this.params.thumbs.slideThumbActiveClass;if(this.params.slidesPerView>1&&!this.params.centeredSlides&&(c=this.params.slidesPerView),this.params.thumbs.multipleActiveThumbs||(c=1),c=Math.floor(c),t.slides.removeClass(d),t.params.loop||t.params.virtual&&t.params.virtual.enabled)for(var h=0;h<c;h+=1)t.$wrapperEl.children('[data-swiper-slide-index="'+(this.realIndex+h)+'"]').addClass(d);else for(var f=0;f<c;f+=1)t.slides.eq(this.realIndex+f).addClass(d)}}},ea={name:"thumbs",params:{thumbs:{swiper:null,multipleActiveThumbs:!0,autoScrollOffset:0,slideThumbActiveClass:"swiper-slide-thumb-active",thumbsContainerClass:"swiper-container-thumbs"}},create:function(){(0,s.cR)(this,{thumbs:er({swiper:null,initialized:!1},ei)})},on:{beforeInit:function(e){var t=e.params.thumbs;t&&t.swiper&&(e.thumbs.init(),e.thumbs.update(!0))},slideChange:function(e){e.thumbs.swiper&&e.thumbs.update()},update:function(e){e.thumbs.swiper&&e.thumbs.update()},resize:function(e){e.thumbs.swiper&&e.thumbs.update()},observerUpdate:function(e){e.thumbs.swiper&&e.thumbs.update()},setTransition:function(e,t){var n=e.thumbs.swiper;n&&n.setTransition(t)},beforeDestroy:function(e){var t=e.thumbs.swiper;t&&e.thumbs.swiperCreated&&t&&t.destroy()}}};function eo(){return(eo=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function es(e){var t=(0,l.Me)(),n=(0,l.Jj)(),r=this.touchEventsData,i=this.params,a=this.touches;if(!this.animating||!i.preventInteractionOnTransition){var u=e;u.originalEvent&&(u=u.originalEvent);var c=(0,o.Z)(u.target);if(("wrapper"!==i.touchEventsTarget||c.closest(this.wrapperEl).length)&&(r.isTouchEvent="touchstart"===u.type,(r.isTouchEvent||!("which"in u)||3!==u.which)&&(r.isTouchEvent||!("button"in u)||!(u.button>0))&&(!r.isTouched||!r.isMoved))){if(i.noSwiping&&c.closest(i.noSwipingSelector?i.noSwipingSelector:"."+i.noSwipingClass)[0]){this.allowClick=!0;return}if(i.swipeHandler&&!c.closest(i.swipeHandler)[0])return;a.currentX="touchstart"===u.type?u.targetTouches[0].pageX:u.pageX,a.currentY="touchstart"===u.type?u.targetTouches[0].pageY:u.pageY;var d=a.currentX,h=a.currentY,f=i.edgeSwipeDetection||i.iOSEdgeSwipeDetection,p=i.edgeSwipeThreshold||i.iOSEdgeSwipeThreshold;if(f&&(d<=p||d>=n.screen.width-p))return;if((0,s.l7)(r,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),a.startX=d,a.startY=h,r.touchStartTime=(0,s.zO)(),this.allowClick=!0,this.updateSize(),this.swipeDirection=void 0,i.threshold>0&&(r.allowThresholdMove=!1),"touchstart"!==u.type){var m=!0;c.is(r.formElements)&&(m=!1),t.activeElement&&(0,o.Z)(t.activeElement).is(r.formElements)&&t.activeElement!==c[0]&&t.activeElement.blur();var g=m&&this.allowTouchMove&&i.touchStartPreventDefault;(i.touchStartForcePreventDefault||g)&&u.preventDefault()}
90this.emit("touchStart",u)}}}function el(e){var t,n=(0,l.Me)(),r=this.touchEventsData,i=this.params,a=this.touches,u=this.rtlTranslate,c=e;if(c.originalEvent&&(c=c.originalEvent),!r.isTouched){r.startMoving&&r.isScrolling&&this.emit("touchMoveOpposite",c);return}if(!r.isTouchEvent||"touchmove"===c.type){var d="touchmove"===c.type&&c.targetTouches&&(c.targetTouches[0]||c.changedTouches[0]),h="touchmove"===c.type?d.pageX:c.pageX,f="touchmove"===c.type?d.pageY:c.pageY;if(c.preventedByNestedSwiper){a.startX=h,a.startY=f;return}if(!this.allowTouchMove){this.allowClick=!1,r.isTouched&&((0,s.l7)(a,{startX:h,startY:f,currentX:h,currentY:f}),r.touchStartTime=(0,s.zO)());return}if(r.isTouchEvent&&i.touchReleaseOnEdges&&!i.loop){if(this.isVertical()){if(f<a.startY&&this.translate<=this.maxTranslate()||f>a.startY&&this.translate>=this.minTranslate()){r.isTouched=!1,r.isMoved=!1;return}}else if(h<a.startX&&this.translate<=this.maxTranslate()||h>a.startX&&this.translate>=this.minTranslate())return}if(r.isTouchEvent&&n.activeElement&&c.target===n.activeElement&&(0,o.Z)(c.target).is(r.formElements)){r.isMoved=!0,this.allowClick=!1;return}if(r.allowTouchCallbacks&&this.emit("touchMove",c),!c.targetTouches||!(c.targetTouches.length>1)){a.currentX=h,a.currentY=f;var p=a.currentX-a.startX,m=a.currentY-a.startY;if(!(this.params.threshold&&Math.sqrt(Math.pow(p,2)+Math.pow(m,2))<this.params.threshold)){if(void 0===r.isScrolling&&(this.isHorizontal()&&a.currentY===a.startY||this.isVertical()&&a.currentX===a.startX?r.isScrolling=!1:p*p+m*m>=25&&(t=180*Math.atan2(Math.abs(m),Math.abs(p))/Math.PI,r.isScrolling=this.isHorizontal()?t>i.touchAngle:90-t>i.touchAngle)),r.isScrolling&&this.emit("touchMoveOpposite",c),void 0===r.startMoving&&(a.currentX!==a.startX||a.currentY!==a.startY)&&(r.startMoving=!0),r.isScrolling){r.isTouched=!1;return}if(r.startMoving){this.allowClick=!1,!i.cssMode&&c.cancelable&&c.preventDefault(),i.touchMoveStopPropagation&&!i.nested&&c.stopPropagation(),r.isMoved||(i.loop&&this.loopFix(),r.startTranslate=this.getTranslate(),this.setTransition(0),this.animating&&this.$wrapperEl.trigger("webkitTransitionEnd transitionend"),r.allowMomentumBounce=!1,i.grabCursor&&(!0===this.allowSlideNext||!0===this.allowSlidePrev)&&this.setGrabCursor(!0),this.emit("sliderFirstMove",c)),this.emit("sliderMove",c),r.isMoved=!0;var g=this.isHorizontal()?p:m;a.diff=g,g*=i.touchRatio,u&&(g=-g),this.swipeDirection=g>0?"prev":"next",r.currentTranslate=g+r.startTranslate;var v=!0,y=i.resistanceRatio;if(i.touchReleaseOnEdges&&(y=0),g>0&&r.currentTranslate>this.minTranslate()?(v=!1,i.resistance&&(r.currentTranslate=this.minTranslate()-1+Math.pow(-this.minTranslate()+r.startTranslate+g,y))):g<0&&r.currentTranslate<this.maxTranslate()&&(v=!1,i.resistance&&(r.currentTranslate=this.maxTranslate()+1-Math.pow(this.maxTranslate()-r.startTranslate-g,y))),v&&(c.preventedByNestedSwiper=!0),!this.allowSlideNext&&"next"===this.swipeDirection&&r.currentTranslate<r.startTranslate&&(r.currentTranslate=r.startTranslate),!this.allowSlidePrev&&"prev"===this.swipeDirection&&r.currentTranslate>r.startTranslate&&(r.currentTranslate=r.startTranslate),i.threshold>0){if(Math.abs(g)>i.threshold||r.allowThresholdMove){if(!r.allowThresholdMove){r.allowThresholdMove=!0,a.startX=a.currentX,a.startY=a.currentY,r.currentTranslate=r.startTranslate,a.diff=this.isHorizontal()?a.currentX-a.startX:a.currentY-a.startY;return}}else{r.currentTranslate=r.startTranslate;return}}i.followFinger&&!i.cssMode&&((i.freeMode||i.watchSlidesProgress||i.watchSlidesVisibility)&&(this.updateActiveIndex(),this.updateSlidesClasses()),i.freeMode&&(0===r.velocities.length&&r.velocities.push({position:a[this.isHorizontal()?"startX":"startY"],time:r.touchStartTime}),r.velocities.push({position:a[this.isHorizontal()?"currentX":"currentY"],time:(0,s.zO)()})),this.updateProgress(r.currentTranslate),this.setTranslate(r.currentTranslate))}}}}}function eu(e){var t=this,n=t.touchEventsData,r=t.params,i=t.touches,a=t.rtlTranslate,o=t.$wrapperEl,l=t.slidesGrid,u=t.snapGrid,c=e;if(c.originalEvent&&(c=c.originalEvent),n.allowTouchCallbacks&&t.emit("touchEnd",c),n.allowTouchCallbacks=!1,!n.isTouched){n.isMoved&&r.grabCursor&&t.setGrabCursor(!1),n.isMoved=!1,n.startMoving=!1;return}r.grabCursor&&n.isMoved&&n.isTouched&&(!0===t.allowSlideNext||!0===t.allowSlidePrev)&&t.setGrabCursor(!1);var d=(0,s.zO)(),h=d-n.touchStartTime;if(t.allowClick&&(t.updateClickedSlide(c),t.emit("tap click",c),h<300&&d-n.lastClickTime<300&&t.emit("doubleTap doubleClick",c)),n.lastClickTime=(0,s.zO)(),(0,s.Y3)(function(){t.destroyed||(t.allowClick=!0)}),!n.isTouched||!n.isMoved||!t.swipeDirection||0===i.diff||n.currentTranslate===n.startTranslate){n.isTouched=!1,n.isMoved=!1,n.startMoving=!1;return}if(n.isTouched=!1,n.isMoved=!1,n.startMoving=!1,f=r.followFinger?a?t.translate:-t.translate:-n.currentTranslate,!r.cssMode){if(r.freeMode){if(f<-t.minTranslate()){t.slideTo(t.activeIndex);return}if(f>-t.maxTranslate()){t.slides.length<u.length?t.slideTo(u.length-1):t.slideTo(t.slides.length-1);return}if(r.freeModeMomentum){if(n.velocities.length>1){var f,p,m,g,v=n.velocities.pop(),y=n.velocities.pop(),b=v.position-y.position,A=v.time-y.time;t.velocity=b/A,t.velocity/=2,Math.abs(t.velocity)<r.freeModeMinimumVelocity&&(t.velocity=0),(A>150||(0,s.zO)()-v.time>300)&&(t.velocity=0)}else t.velocity=0;
90t.velocity*=r.freeModeMomentumVelocityRatio,n.velocities.length=0;var E=1e3*r.freeModeMomentumRatio,w=t.velocity*E,x=t.translate+w;a&&(x=-x);var T=!1,S=20*Math.abs(t.velocity)*r.freeModeMomentumBounceRatio;if(x<t.maxTranslate())r.freeModeMomentumBounce?(x+t.maxTranslate()<-S&&(x=t.maxTranslate()-S),p=t.maxTranslate(),T=!0,n.allowMomentumBounce=!0):x=t.maxTranslate(),r.loop&&r.centeredSlides&&(m=!0);else if(x>t.minTranslate())r.freeModeMomentumBounce?(x-t.minTranslate()>S&&(x=t.minTranslate()+S),p=t.minTranslate(),T=!0,n.allowMomentumBounce=!0):x=t.minTranslate(),r.loop&&r.centeredSlides&&(m=!0);else if(r.freeModeSticky){for(var _=0;_<u.length;_+=1)if(u[_]>-x){g=_;break}x=-(x=Math.abs(u[g]-x)<Math.abs(u[g-1]-x)||"next"===t.swipeDirection?u[g]:u[g-1])}if(m&&t.once("transitionEnd",function(){t.loopFix()}),0!==t.velocity){if(E=a?Math.abs((-x-t.translate)/t.velocity):Math.abs((x-t.translate)/t.velocity),r.freeModeSticky){var C=Math.abs((a?-x:x)-t.translate),k=t.slidesSizesGrid[t.activeIndex];E=C<k?r.speed:C<2*k?1.5*r.speed:2.5*r.speed}}else if(r.freeModeSticky){t.slideToClosest();return}r.freeModeMomentumBounce&&T?(t.updateProgress(p),t.setTransition(E),t.setTranslate(x),t.transitionStart(!0,t.swipeDirection),t.animating=!0,o.transitionEnd(function(){t&&!t.destroyed&&n.allowMomentumBounce&&(t.emit("momentumBounce"),t.setTransition(r.speed),setTimeout(function(){t.setTranslate(p),o.transitionEnd(function(){t&&!t.destroyed&&t.transitionEnd()})},0))})):t.velocity?(t.updateProgress(x),t.setTransition(E),t.setTranslate(x),t.transitionStart(!0,t.swipeDirection),t.animating||(t.animating=!0,o.transitionEnd(function(){t&&!t.destroyed&&t.transitionEnd()}))):t.updateProgress(x),t.updateActiveIndex(),t.updateSlidesClasses()}else if(r.freeModeSticky){t.slideToClosest();return}(!r.freeModeMomentum||h>=r.longSwipesMs)&&(t.updateProgress(),t.updateActiveIndex(),t.updateSlidesClasses());return}for(var I=0,L=t.slidesSizesGrid[0],P=0;P<l.length;P+=P<r.slidesPerGroupSkip?1:r.slidesPerGroup){var O=P<r.slidesPerGroupSkip-1?1:r.slidesPerGroup;void 0!==l[P+O]?f>=l[P]&&f<l[P+O]&&(I=P,L=l[P+O]-l[P]):f>=l[P]&&(I=P,L=l[l.length-1]-l[l.length-2])}var R=(f-l[I])/L,D=I<r.slidesPerGroupSkip-1?1:r.slidesPerGroup;if(h>r.longSwipesMs){if(!r.longSwipes){t.slideTo(t.activeIndex);return}"next"===t.swipeDirection&&(R>=r.longSwipesRatio?t.slideTo(I+D):t.slideTo(I)),"prev"===t.swipeDirection&&(R>1-r.longSwipesRatio?t.slideTo(I+D):t.slideTo(I))}else{if(!r.shortSwipes){t.slideTo(t.activeIndex);return}t.navigation&&(c.target===t.navigation.nextEl||c.target===t.navigation.prevEl)?c.target===t.navigation.nextEl?t.slideTo(I+D):t.slideTo(I):("next"===t.swipeDirection&&t.slideTo(I+D),"prev"===t.swipeDirection&&t.slideTo(I))}}}function ec(){var e=this.params,t=this.el;if(!t||0!==t.offsetWidth){e.breakpoints&&this.setBreakpoint();var n=this.allowSlideNext,r=this.allowSlidePrev,i=this.snapGrid;this.allowSlideNext=!0,this.allowSlidePrev=!0,this.updateSize(),this.updateSlides(),this.updateSlidesClasses(),("auto"===e.slidesPerView||e.slidesPerView>1)&&this.isEnd&&!this.isBeginning&&!this.params.centeredSlides?this.slideTo(this.slides.length-1,0,!1,!0):this.slideTo(this.activeIndex,0,!1,!0),this.autoplay&&this.autoplay.running&&this.autoplay.paused&&this.autoplay.run(),this.allowSlidePrev=r,this.allowSlideNext=n,this.params.watchOverflow&&i!==this.snapGrid&&this.checkOverflow()}}function ed(e){!this.allowClick&&(this.params.preventClicks&&e.preventDefault(),this.params.preventClicksPropagation&&this.animating&&(e.stopPropagation(),e.stopImmediatePropagation()))}function eh(){var e=this.wrapperEl,t=this.rtlTranslate;this.previousTranslate=this.translate,this.isHorizontal()?t?this.translate=e.scrollWidth-e.offsetWidth-e.scrollLeft:this.translate=-e.scrollLeft:this.translate=-e.scrollTop,-0===this.translate&&(this.translate=0),this.updateActiveIndex(),this.updateSlidesClasses();var n=this.maxTranslate()-this.minTranslate();(0===n?0:(this.translate-this.minTranslate())/n)!==this.progress&&this.updateProgress(t?-this.translate:this.translate),this.emit("setTranslate",this.translate,!1)}var ef=!1;function ep(){}var em={init:!0,direction:"horizontal",touchEventsTarget:"container",initialSlide:0,speed:300,cssMode:!1,updateOnWindowResize:!0,width:null,height:null,preventInteractionOnTransition:!1,userAgent:null,url:null,edgeSwipeDetection:!1,edgeSwipeThreshold:20,freeMode:!1,freeModeMomentum:!0,freeModeMomentumRatio:1,freeModeMomentumBounce:!0,freeModeMomentumBounceRatio:1,freeModeMomentumVelocityRatio:1,freeModeSticky:!1,freeModeMinimumVelocity:.02,autoHeight:!1,setWrapperSize:!1,virtualTranslate:!1,effect:"slide",breakpoints:void 0,spaceBetween:0,slidesPerView:1,slidesPerColumn:1,slidesPerColumnFill:"column",slidesPerGroup:1,slidesPerGroupSkip:0,centeredSlides:!1,centeredSlidesB
90ounds:!1,slidesOffsetBefore:0,slidesOffsetAfter:0,normalizeSlideIndex:!0,centerInsufficientSlides:!1,watchOverflow:!1,roundLengths:!1,touchRatio:1,touchAngle:45,simulateTouch:!0,shortSwipes:!0,longSwipes:!0,longSwipesRatio:.5,longSwipesMs:300,followFinger:!0,allowTouchMove:!0,threshold:0,touchMoveStopPropagation:!1,touchStartPreventDefault:!0,touchStartForcePreventDefault:!1,touchReleaseOnEdges:!1,uniqueNavElements:!0,resistance:!0,resistanceRatio:.85,watchSlidesProgress:!1,watchSlidesVisibility:!1,grabCursor:!1,preventClicks:!0,preventClicksPropagation:!0,slideToClickedSlide:!1,preloadImages:!0,updateOnImagesReady:!0,loop:!1,loopAdditionalSlides:0,loopedSlides:null,loopFillGroupWithBlank:!1,loopPreventsSlide:!0,allowSlidePrev:!0,allowSlideNext:!0,swipeHandler:null,noSwiping:!0,noSwipingClass:"swiper-no-swiping",noSwipingSelector:null,passiveListeners:!0,containerModifierClass:"swiper-container-",slideClass:"swiper-slide",slideBlankClass:"swiper-slide-invisible-blank",slideActiveClass:"swiper-slide-active",slideDuplicateActiveClass:"swiper-slide-duplicate-active",slideVisibleClass:"swiper-slide-visible",slideDuplicateClass:"swiper-slide-duplicate",slideNextClass:"swiper-slide-next",slideDuplicateNextClass:"swiper-slide-duplicate-next",slidePrevClass:"swiper-slide-prev",slideDuplicatePrevClass:"swiper-slide-duplicate-prev",wrapperClass:"swiper-wrapper",runCallbacksOnInit:!0,_emitClasses:!1},eg={modular:{useParams:function(e){var t=this;t.modules&&Object.keys(t.modules).forEach(function(n){var r=t.modules[n];r.params&&(0,s.l7)(e,r.params)})},useModules:function(e){void 0===e&&(e={});var t=this;t.modules&&Object.keys(t.modules).forEach(function(n){var r=t.modules[n],i=e[n]||{};r.on&&t.on&&Object.keys(r.on).forEach(function(e){t.on(e,r.on[e])}),r.create&&r.create.bind(t)(i)})}},eventsEmitter:{on:function(e,t,n){var r=this;if("function"!=typeof t)return r;var i=n?"unshift":"push";return e.split(" ").forEach(function(e){r.eventsListeners[e]||(r.eventsListeners[e]=[]),r.eventsListeners[e][i](t)}),r},once:function(e,t,n){var r=this;if("function"!=typeof t)return r;function i(){r.off(e,i),i.__emitterProxy&&delete i.__emitterProxy;for(var n=arguments.length,a=Array(n),o=0;o<n;o++)a[o]=arguments[o];t.apply(r,a)}return i.__emitterProxy=t,r.on(e,i,n)},onAny:function(e,t){return"function"!=typeof e||0>this.eventsAnyListeners.indexOf(e)&&this.eventsAnyListeners[t?"unshift":"push"](e),this},offAny:function(e){if(!this.eventsAnyListeners)return this;var t=this.eventsAnyListeners.indexOf(e);return t>=0&&this.eventsAnyListeners.splice(t,1),this},off:function(e,t){var n=this;return n.eventsListeners&&e.split(" ").forEach(function(e){void 0===t?n.eventsListeners[e]=[]:n.eventsListeners[e]&&n.eventsListeners[e].forEach(function(r,i){(r===t||r.__emitterProxy&&r.__emitterProxy===t)&&n.eventsListeners[e].splice(i,1)})}),n},emit:function(){var e,t,n,r=this;if(!r.eventsListeners)return r;for(var i=arguments.length,a=Array(i),o=0;o<i;o++)a[o]=arguments[o];return"string"==typeof a[0]||Array.isArray(a[0])?(e=a[0],t=a.slice(1,a.length),n=r):(e=a[0].events,t=a[0].data,n=a[0].context||r),t.unshift(n),(Array.isArray(e)?e:e.split(" ")).forEach(function(e){if(r.eventsListeners&&r.eventsListeners[e]){var i=[];r.eventsListeners[e].forEach(function(e){i.push(e)}),i.forEach(function(e){e.apply(n,t)})}}),r}},update:{updateSize:function(){var e,t,n=this.$el;e=void 0!==this.params.width&&null!==this.params.width?this.params.width:n[0].clientWidth,t=void 0!==this.params.height&&null!==this.params.width?this.params.height:n[0].clientHeight,0===e&&this.isHorizontal()||0===t&&this.isVertical()||(e=e-parseInt(n.css("padding-left")||0,10)-parseInt(n.css("padding-right")||0,10),t=t-parseInt(n.css("padding-top")||0,10)-parseInt(n.css("padding-bottom")||0,10),Number.isNaN(e)&&(e=0),Number.isNaN(t)&&(t=0),(0,s.l7)(this,{width:e,height:t,size:this.isHorizontal()?e:t}))},updateSlides:function(){var e,t,n,r=(0,l.Jj)(),i=this.params,a=this.$wrapperEl,o=this.size,u=this.rtlTranslate,c=this.wrongRTL,d=this.virtual&&i.virtual.enabled,h=d?this.virtual.slides.length:this.slides.length,f=a.children("."+this.params.slideClass),p=d?this.virtual.slides.length:f.length,m=[],g=[],v=[];function y(e,t){return!i.cssMode||t!==f.length-1}var b=i.slidesOffsetBefore;"function"==typeof b&&(b=i.slidesOffsetBefore.call(this));var A=i.slidesOffsetAfter;"function"==typeof A&&(A=i.slidesOffsetAfter.call(this));var E=this.snapGrid.length,w=this.snapGrid.length,x=i.spaceBetween,T=-b,S=0,_=0;if(void 0!==o){"string"==typeof x&&x.indexOf("%")>=0&&(x=parseFloat(x.replace("%",""))/100*o),this.virtualSize=-x,u?f.css({marginLeft:"",marginTop:""}):f.css({marginRight:"",marginBottom:""}),i.slidesPerColumn>1&&(e=Math.floor(p/i.slidesPerColumn)===p/this.params.slidesPerColumn?p:Math.ceil(p/i.slidesPerColumn)*i.slidesPerColumn,"auto"!==i.slidesPerView&&"row"===i.slidesPerColumnFill&&(e=Math.max(e,i.slidesPerView*i.slidesPerColumn)));for(var C=i.slidesPerColumn,k=e/C,I=Math.floor(p/i.slidesPerColumn),L=0;L<p;L+=1){t=0;var P=f.eq(L);if(i.slidesPerColumn>1){var O=void 0,R=void 0,D=void 0;if("row"===i.slidesPerColumnFill&&i.slidesPerGroup>1){var N=Math.floor(L/(i.slidesPerGroup*i.slidesPerColumn)),M=L-i.slidesPerColumn*i.slidesPerGroup*N,j=0===N?i.slidesPerGroup:Math.min(Math.ceil((p-N*C*i.slidesPerGroup)/C),i.slidesPerGroup);D=Math.floor(M/j),O=(R=M-D*j+N*i.slidesPerGroup)+D*e/C,P.css({"-webkit-box-ordinal-group":O,"-moz-box-ordinal-group":O,"-ms-flex-order":O,"-webkit-order":O,order:O})}else"column"===i.slidesPerColumnFill?(R=Math.floor(L/C),D=L-R*C,(R>I||R===I&&D===C-1)&&(D+=1)>=C&&(D=0,R+=1)):(D=Math.floor(L/k),R=L-D*k);P.css("margin-"+(this.isHorizontal()?"top":"left"),0!==D&&i.spaceBetween&&i.spaceBetween+"px")}if("none"!==P.css("display")){if("auto"===i.slidesPerView){var F=r.getComputedStyle(P[0],null),B=P[0].style.transform,U=P[0].style.webkitTransform;if(B&&(P[0].style.transform="none"),U&&(P[0].style.webkitTransform="none"),i.roun
90dLengths)t=this.isHorizontal()?P.outerWidth(!0):P.outerHeight(!0);else if(this.isHorizontal()){var V=parseFloat(F.getPropertyValue("width")||0),z=parseFloat(F.getPropertyValue("padding-left")||0),q=parseFloat(F.getPropertyValue("padding-right")||0),Q=parseFloat(F.getPropertyValue("margin-left")||0),H=parseFloat(F.getPropertyValue("margin-right")||0),G=F.getPropertyValue("box-sizing");t=G&&"border-box"===G?V+Q+H:V+z+q+Q+H}else{var K=parseFloat(F.getPropertyValue("height")||0),$=parseFloat(F.getPropertyValue("padding-top")||0),W=parseFloat(F.getPropertyValue("padding-bottom")||0),Z=parseFloat(F.getPropertyValue("margin-top")||0),Y=parseFloat(F.getPropertyValue("margin-bottom")||0),X=F.getPropertyValue("box-sizing");t=X&&"border-box"===X?K+Z+Y:K+$+W+Z+Y}B&&(P[0].style.transform=B),U&&(P[0].style.webkitTransform=U),i.roundLengths&&(t=Math.floor(t))}else t=(o-(i.slidesPerView-1)*x)/i.slidesPerView,i.roundLengths&&(t=Math.floor(t)),f[L]&&(this.isHorizontal()?f[L].style.width=t+"px":f[L].style.height=t+"px");f[L]&&(f[L].swiperSlideSize=t),v.push(t),i.centeredSlides?(T=T+t/2+S/2+x,0===S&&0!==L&&(T=T-o/2-x),0===L&&(T=T-o/2-x),.001>Math.abs(T)&&(T=0),i.roundLengths&&(T=Math.floor(T)),_%i.slidesPerGroup==0&&m.push(T),g.push(T)):(i.roundLengths&&(T=Math.floor(T)),(_-Math.min(this.params.slidesPerGroupSkip,_))%this.params.slidesPerGroup==0&&m.push(T),g.push(T),T=T+t+x),this.virtualSize+=t+x,S=t,_+=1}}if(this.virtualSize=Math.max(this.virtualSize,o)+A,u&&c&&("slide"===i.effect||"coverflow"===i.effect)&&a.css({width:this.virtualSize+i.spaceBetween+"px"}),i.setWrapperSize&&(this.isHorizontal()?a.css({width:this.virtualSize+i.spaceBetween+"px"}):a.css({height:this.virtualSize+i.spaceBetween+"px"})),i.slidesPerColumn>1&&(this.virtualSize=(t+i.spaceBetween)*e,this.virtualSize=Math.ceil(this.virtualSize/i.slidesPerColumn)-i.spaceBetween,this.isHorizontal()?a.css({width:this.virtualSize+i.spaceBetween+"px"}):a.css({height:this.virtualSize+i.spaceBetween+"px"}),i.centeredSlides)){n=[];for(var J=0;J<m.length;J+=1){var ee=m[J];i.roundLengths&&(ee=Math.floor(ee)),m[J]<this.virtualSize+m[0]&&n.push(ee)}m=n}if(!i.centeredSlides){n=[];for(var et=0;et<m.length;et+=1){var en=m[et];i.roundLengths&&(en=Math.floor(en)),m[et]<=this.virtualSize-o&&n.push(en)}m=n,Math.floor(this.virtualSize-o)-Math.floor(m[m.length-1])>1&&m.push(this.virtualSize-o)}if(0===m.length&&(m=[0]),0!==i.spaceBetween&&(this.isHorizontal()?u?f.filter(y).css({marginLeft:x+"px"}):f.filter(y).css({marginRight:x+"px"}):f.filter(y).css({marginBottom:x+"px"})),i.centeredSlides&&i.centeredSlidesBounds){var er=0;v.forEach(function(e){er+=e+(i.spaceBetween?i.spaceBetween:0)});var ei=(er-=i.spaceBetween)-o;m=m.map(function(e){return e<0?-b:e>ei?ei+A:e})}if(i.centerInsufficientSlides){var ea=0;if(v.forEach(function(e){ea+=e+(i.spaceBetween?i.spaceBetween:0)}),(ea-=i.spaceBetween)<o){var eo=(o-ea)/2;m.forEach(function(e,t){m[t]=e-eo}),g.forEach(function(e,t){g[t]=e+eo})}}(0,s.l7)(this,{slides:f,snapGrid:m,slidesGrid:g,slidesSizesGrid:v}),p!==h&&this.emit("slidesLengthChange"),m.length!==E&&(this.params.watchOverflow&&this.checkOverflow(),this.emit("snapGridLengthChange")),g.length!==w&&this.emit("slidesGridLengthChange"),(i.watchSlidesProgress||i.watchSlidesVisibility)&&this.updateSlidesOffset()}},updateAutoHeight:function(e){var t,n=[],r=0;if("number"==typeof e?this.setTransition(e):!0===e&&this.setTransition(this.params.speed),"auto"!==this.params.slidesPerView&&this.params.slidesPerView>1){if(this.params.centeredSlides)this.visibleSlides.each(function(e){n.push(e)});else for(t=0;t<Math.ceil(this.params.slidesPerView);t+=1){var i=this.activeIndex+t;if(i>this.slides.length)break;n.push(this.slides.eq(i)[0])}}else n.push(this.slides.eq(this.activeIndex)[0]);for(t=0;t<n.length;t+=1)if(void 0!==n[t]){var a=n[t].offsetHeight;r=a>r?a:r}r&&this.$wrapperEl.css("height",r+"px")},updateSlidesOffset:function(){for(var e=this.slides,t=0;t<e.length;t+=1)e[t].swiperSlideOffset=this.isHorizontal()?e[t].offsetLeft:e[t].offsetTop},updateSlidesProgress:function(e){void 0===e&&(e=this&&this.translate||0);var t=this.params,n=this.slides,r=this.rtlTranslate;if(0!==n.length){void 0===n[0].swiperSlideOffset&&this.updateSlidesOffset();var i=-e;r&&(i=e),n.removeClass(t.slideVisibleClass),this.visibleSlidesIndexes=[],this.visibleSlides=[];for(var a=0;a<n.length;a+=1){var s=n[a],l=(i+(t.centeredSlides?this.minTranslate():0)-s.swiperSlideOffset)/(s.swiperSlideSize+t.spaceBetween);if(t.watchSlidesVisibility||t.centeredSlides&&t.autoHeight){var u=-(i-s.swiperSlideOffset),c=u+this.slidesSizesGrid[a];(u>=0&&u<this.size-1||c>1&&c<=this.size||u<=0&&c>=this.size)&&(this.visibleSlides.push(s),this.visibleSlidesIndexes.push(a),n.eq(a).addClass(t.slideVisibleClass))}s.progress=r?-l:l}this.visibleSlides=(0,o.Z)(this.visibleSlides)}},updateProgress:function(e){if(void 0===e){var t=this.rtlTranslate?-1:1;e=this&&this.translate&&this.translate*t||0}var n=this.params,r=this.maxTranslate()-this.minTranslate(),i=this.progress,a=this.isBeg
90inning,o=this.isEnd,l=a,u=o;0===r?(i=0,a=!0,o=!0):(a=(i=(e-this.minTranslate())/r)<=0,o=i>=1),(0,s.l7)(this,{progress:i,isBeginning:a,isEnd:o}),(n.watchSlidesProgress||n.watchSlidesVisibility||n.centeredSlides&&n.autoHeight)&&this.updateSlidesProgress(e),a&&!l&&this.emit("reachBeginning toEdge"),o&&!u&&this.emit("reachEnd toEdge"),(l&&!a||u&&!o)&&this.emit("fromEdge"),this.emit("progress",i)},updateSlidesClasses:function(){var e,t=this.slides,n=this.params,r=this.$wrapperEl,i=this.activeIndex,a=this.realIndex,o=this.virtual&&n.virtual.enabled;t.removeClass(n.slideActiveClass+" "+n.slideNextClass+" "+n.slidePrevClass+" "+n.slideDuplicateActiveClass+" "+n.slideDuplicateNextClass+" "+n.slideDuplicatePrevClass),(e=o?this.$wrapperEl.find("."+n.slideClass+'[data-swiper-slide-index="'+i+'"]'):t.eq(i)).addClass(n.slideActiveClass),n.loop&&(e.hasClass(n.slideDuplicateClass)?r.children("."+n.slideClass+":not(."+n.slideDuplicateClass+')[data-swiper-slide-index="'+a+'"]').addClass(n.slideDuplicateActiveClass):r.children("."+n.slideClass+"."+n.slideDuplicateClass+'[data-swiper-slide-index="'+a+'"]').addClass(n.slideDuplicateActiveClass));var s=e.nextAll("."+n.slideClass).eq(0).addClass(n.slideNextClass);n.loop&&0===s.length&&(s=t.eq(0)).addClass(n.slideNextClass);var l=e.prevAll("."+n.slideClass).eq(0).addClass(n.slidePrevClass);
90n.loop&&0===l.length&&(l=t.eq(-1)).addClass(n.slidePrevClass),n.loop&&(s.hasClass(n.slideDuplicateClass)?r.children("."+n.slideClass+":not(."+n.slideDuplicateClass+')[data-swiper-slide-index="'+s.attr("data-swiper-slide-index")+'"]').addClass(n.slideDuplicateNextClass):r.children("."+n.slideClass+"."+n.slideDuplicateClass+'[data-swiper-slide-index="'+s.attr("data-swiper-slide-index")+'"]').addClass(n.slideDuplicateNextClass),l.hasClass(n.slideDuplicateClass)?r.children("."+n.slideClass+":not(."+n.slideDuplicateClass+')[data-swiper-slide-index="'+l.attr("data-swiper-slide-index")+'"]').addClass(n.slideDuplicatePrevClass):r.children("."+n.slideClass+"."+n.slideDuplicateClass+'[data-swiper-slide-index="'+l.attr("data-swiper-slide-index")+'"]').addClass(n.slideDuplicatePrevClass)),this.emitSlidesClasses()},updateActiveIndex:function(e){var t,n=this.rtlTranslate?this.translate:-this.translate,r=this.slidesGrid,i=this.snapGrid,a=this.params,o=this.activeIndex,l=this.realIndex,u=this.snapIndex,c=e;if(void 0===c){for(var d=0;d<r.length;d+=1)void 0!==r[d+1]?n>=r[d]&&n<r[d+1]-(r[d+1]-r[d])/2?c=d:n>=r[d]&&n<r[d+1]&&(c=d+1):n>=r[d]&&(c=d);a.normalizeSlideIndex&&(c<0||void 0===c)&&(c=0)}if(i.indexOf(n)>=0)t=i.indexOf(n);else{var h=Math.min(a.slidesPerGroupSkip,c);t=h+Math.floor((c-h)/a.slidesPerGroup)}if(t>=i.length&&(t=i.length-1),c===o){t!==u&&(this.snapIndex=t,this.emit("snapIndexChange"));return}var f=parseInt(this.slides.eq(c).attr("data-swiper-slide-index")||c,10);(0,s.l7)(this,{snapIndex:t,realIndex:f,previousIndex:o,activeIndex:c}),this.emit("activeIndexChange"),this.emit("snapIndexChange"),l!==f&&this.emit("realIndexChange"),(this.initialized||this.params.runCallbacksOnInit)&&this.emit("slideChange")},updateClickedSlide:function(e){var t=this.params,n=(0,o.Z)(e.target).closest("."+t.slideClass)[0],r=!1;if(n)for(var i=0;i<this.slides.length;i+=1)this.slides[i]===n&&(r=!0);if(n&&r)this.clickedSlide=n,this.virtual&&this.params.virtual.enabled?this.clickedIndex=parseInt((0,o.Z)(n).attr("data-swiper-slide-index"),10):this.clickedIndex=(0,o.Z)(n).index();else{this.clickedSlide=void 0,this.clickedIndex=void 0;return}t.slideToClickedSlide&&void 0!==this.clickedIndex&&this.clickedIndex!==this.activeIndex&&this.slideToClickedSlide()}},translate:{getTranslate:function(e){void 0===e&&(e=this.isHorizontal()?"x":"y");var t=this.params,n=this.rtlTranslate,r=this.translate,i=this.$wrapperEl;if(t.virtualTranslate)return n?-r:r;if(t.cssMode)return r;var a=(0,s.R6)(i[0],e);return n&&(a=-a),a||0},setTranslate:function(e,t){var n=this.rtlTranslate,r=this.params,i=this.$wrapperEl,a=this.wrapperEl,o=this.progress,s=0,l=0;this.isHorizontal()?s=n?-e:e:l=e,r.roundLengths&&(s=Math.floor(s),l=Math.floor(l)),r.cssMode?a[this.isHorizontal()?"scrollLeft":"scrollTop"]=this.isHorizontal()?-s:-l:r.virtualTranslate||i.transform("translate3d("+s+"px, "+l+"px, 0px)"),this.previousTranslate=this.translate,this.translate=this.isHorizontal()?s:l;var u=this.maxTranslate()-this.minTranslate();(0===u?0:(e-this.minTranslate())/u)!==o&&this.updateProgress(e),this.emit("setTranslate",this.translate,t)},minTranslate:function(){return-this.snapGrid[0]},maxTranslate:function(){return-this.snapGrid[this.snapGrid.length-1]},translateTo:function(e,t,n,r,i){void 0===e&&(e=0),void 0===t&&(t=this.params.speed),void 0===n&&(n=!0),void 0===r&&(r=!0);var a=this,o=a.params,s=a.wrapperEl;if(a.animating&&o.preventInteractionOnTransition)return!1;var l=a.minTranslate(),u=a.maxTranslate();if(c=r&&e>l?l:r&&e<u?u:e,a.updateProgress(c),o.cssMode){var c,d,h=a.isHorizontal();return 0===t?s[h?"scrollLeft":"scrollTop"]=-c:s.scrollTo?s.scrollTo(((d={})[h?"left":"top"]=-c,d.behavior="smooth",d)):s[h?"scrollLeft":"scrollTop"]=-c,!0}return 0===t?(a.setTransition(0),a.setTranslate(c),n&&(a.emit("beforeTransitionStart",t,i),a.emit("transitionEnd"))):(a.setTransition(t),a.setTranslate(c),n&&(a.emit("beforeTransitionStart",t,i),a.emit("transitionStart")),a.animating||(a.animating=!0,a.onTranslateToWrapperTransitionEnd||(a.onTranslateToWrapperTransitionEnd=function(e){a&&!a.destroyed&&e.target===this&&(a.$wrapperEl[0].removeEventListener("transitionend",a.onTranslateToWrapperTransitionEnd),a.$wrapperEl[0].removeEventListener("webkitTransitionEnd",a.onTranslateToWrapperTransitionEnd),a.onTranslateToWrapperTransitionEnd=null,delete a.onTranslateToWrapperTransitionEnd,n&&a.emit("transitionEnd"))}),a.$wrapperEl[0].addEventListener("transitionend",a.onTranslateToWrapperTransitionEnd),a.$wrapperEl[0].addEventListener("webkitTransitionEnd",a.onTranslateToWrapperTransitionEnd))),!0}},transition:{setTransition:function(e,t){this.params.cssMode||this.$wrapperEl.transition(e),this.emit
90("setTransition",e,t)},transitionStart:function(e,t){void 0===e&&(e=!0);var n=this.activeIndex,r=this.params,i=this.previousIndex;if(!r.cssMode){r.autoHeight&&this.updateAutoHeight();var a=t;if(a||(a=n>i?"next":n<i?"prev":"reset"),this.emit("transitionStart"),e&&n!==i){if("reset"===a){this.emit("slideResetTransitionStart");return}this.emit("slideChangeTransitionStart"),"next"===a?this.emit("slideNextTransitionStart"):this.emit("slidePrevTransitionStart")}}},transitionEnd:function(e,t){void 0===e&&(e=!0);var n=this.activeIndex,r=this.previousIndex,i=this.params;if(this.animating=!1,!i.cssMode){this.setTransition(0);var a=t;if(a||(a=n>r?"next":n<r?"prev":"reset"),this.emit("transitionEnd"),e&&n!==r){if("reset"===a){this.emit("slideResetTransitionEnd");return}this.emit("slideChangeTransitionEnd"),"next"===a?this.emit("slideNextTransitionEnd"):this.emit("slidePrevTransitionEnd")}}}},slide:{slideTo:function(e,t,n,r){void 0===e&&(e=0),void 0===t&&(t=this.params.speed),void 0===n&&(n=!0);var i=this,a=e;a<0&&(a=0);var o=i.params,s=i.snapGrid,l=i.slidesGrid,u=i.previousIndex,c=i.activeIndex,d=i.rtlTranslate,h=i.wrapperEl;if(i.animating&&o.preventInteractionOnTransition)return!1;var f=Math.min(i.params.slidesPerGroupSkip,a),p=f+Math.floor((a-f)/i.params.slidesPerGroup);p>=s.length&&(p=s.length-1),(c||o.initialSlide||0)===(u||0)&&n&&i.emit("beforeSlideChangeStart");var m=-s[p];if(i.updateProgress(m),o.normalizeSlideIndex)for(var g=0;g<l.length;g+=1)-Math.floor(100*m)>=Math.floor(100*l[g])&&(a=g);if(i.initialized&&a!==c&&(!i.allowSlideNext&&m<i.translate&&m<i.minTranslate()||!i.allowSlidePrev&&m>i.translate&&m>i.maxTranslate()&&(c||0)!==a))return!1;if(v=a>c?"next":a<c?"prev":"reset",d&&-m===i.translate||!d&&m===i.translate)return i.updateActiveIndex(a),o.autoHeight&&i.updateAutoHeight(),i.updateSlidesClasses(),"slide"!==o.effect&&i.setTranslate(m),"reset"!==v&&(i.transitionStart(n,v),i.transitionEnd(n,v)),!1;if(o.cssMode){var v,y,b=i.isHorizontal(),A=-m;return d&&(A=h.scrollWidth-h.offsetWidth-A),0===t?h[b?"scrollLeft":"scrollTop"]=A:h.scrollTo?h.scrollTo(((y={})[b?"left":"top"]=A,y.behavior="smooth",y)):h[b?"scrollLeft":"scrollTop"]=A,!0}return 0===t?(i.setTransition(0),i.setTranslate(m),i.updateActiveIndex(a),i.updateSlidesClasses(),i.emit("beforeTransitionStart",t,r),i.transitionStart(n,v),i.transitionEnd(n,v)):(i.setTransition(t),i.setTranslate(m),i.updateActiveIndex(a),i.updateSlidesClasses(),i.emit("beforeTransitionStart",t,r),i.transitionStart(n,v),i.animating||(i.animating=!0,i.onSlideToWrapperTransitionEnd||(i.onSlideToWrapperTransitionEnd=function(e){i&&!i.destroyed&&e.target===this&&(i.$wrapperEl[0].removeEventListener("transitionend",i.onSlideToWrapperTransitionEnd),i.$wrapperEl[0].removeEventListener("webkitTransitionEnd",i.onSlideToWrapperTransitionEnd),i.onSlideToWrapperTransitionEnd=null,delete i.onSlideToWrapperTransitionEnd,i.transitionEnd(n,v))}),i.$wrapperEl[0].addEventListener("transitionend",i.onSlideToWrapperTransitionEnd),i.$wrapperEl[0].addEventListener("webkitTransitionEnd",i.onSlideToWrapperTransitionEnd))),!0},slideToLoop:function(e,t,n,r){void 0===e&&(e=0),void 0===t&&(t=this.params.speed),void 0===n&&(n=!0);var i=e;return this.params.loop&&(i+=this.loopedSlides),this.slideTo(i,t,n,r)},slideNext:function(e,t,n){void 0===e&&(e=this.params.speed),void 0===t&&(t=!0);var r=this.params,i=this.animating,a=this.activeIndex<r.slidesPerGroupSkip?1:r.slidesPerGroup;if(r.loop){if(i&&r.loopPreventsSlide)return!1;this.loopFix(),this._clientLeft=this.$wrapperEl[0].clientLeft}return this.slideTo(this.activeIndex+a,e,t,n)},slidePrev:function(e,t,n){void 0===e&&(e=this.params.speed),void 0===t&&(t=!0);var r,i=this.params,a=this.animating,o=this.snapGrid,s=this.slidesGrid,l=this.rtlTranslate;if(i.loop){if(a&&i.loopPreventsSlide)return!1;this.loopFix(),this._clientLeft=this.$wrapperEl[0].clientLeft}function u(e){return e<0?-Math.floor(Math.abs(e)):Math.floor(e)}var c=u(l?this.translate:-this.translate),d=o.map(function(e){return u(e)});o[d.indexOf(c)];var h=o[d.indexOf(c)-1];return void 0===h&&i.cssMode&&o.forEach(function(e){!h&&c>=e&&(h=e)}),void 0!==h&&(r=s.indexOf(h))<0&&(r=this.activeIndex-1),this.slideTo(r,e,t,n)},slideReset:function(e,t,n){return void 0===e&&(e=this.params.speed),void 0===t&&(t=!0),this.slideTo(this.activeIndex,e,t,n)},slideToClosest:function(e,t,n,r){void 0===e&&(e=this.params.speed),void 0===t&&(t=!0),void 0===r&&(r=.5);var i=this.activeIndex,a=Math.min(this.params.slidesPerGroupSkip,i),o=a+Math.floor((i-a)/this.params.slidesPerGroup),s=this.rtlTranslate?this.translate:-this.translate;if(s>=this.snapGrid[o]){var l=this.snapGrid[o];s-l>(this.snapGrid[o+1]-l)*r&&(i+=this.params.slidesPerGroup)}else{var u=this.snapGrid[o-1];s-u<=(this.snapGrid[o]-u)*r&&(i-=this.params.slidesPerGroup)}return i=Math.min(i=Math.max(i,0),this.slidesGrid.length-1),this.slideTo(i,e,t,n)},slideToClickedSlide:function(){var e,t=this,n=t.params,r=t.$wrapperEl,i="auto"===n.slidesPerView?t.slidesPerViewDynamic():n.slidesPerView,a=t.clickedIndex;if(n.loop){if(t.animating)return;e=parseInt((0,o.Z)(t.clickedSlide).attr("data-swiper-slide-index"),10),n.centeredSlides?a<t.loopedSlides-i/2||a>t.slides.length-t.loopedSlides+i/2?(t.loopFix(),a=r.children("."+n.slideClass+'[data-swiper-slide-index="'+e+'"]:not(.'+n.slideDuplicateClass+")").eq(0).index(),(0,s.Y3)(function(){t.slideTo(a)})):t.slideTo(a):a>t.slides.length-i?(t.loopFix(),a=r.children("."+n.slideClass+'[data-swiper-slide-index="'+e+'"]:not(.'+n.slideDuplicateClass+")").eq(0).index(),(0,s.Y3)(function(){t.slideTo(a)})):t.slideTo(a)}else t.slideTo(a)}},loop:{loopCreate:function(){var e=this,t=(0,l.Me)(),n=e.params,r=e.$wrapperEl;r.children("."+n.slideClass+"."+n.slideDuplicateClass).remove();var i=r.children("."+n.slideClass);if(n.loopFillGroupWithBlank){var a=n.slidesPerGroup-i.length%n.slidesPerGroup;if(a!==n.slidesPerGroup){for(var s=0;s<a;s+=1){var u=(0,o.Z)(t.createElement("div")).addClass(n.slideClass+" "+n.slideBlankClass);r.append(u)}i=r.children("."+n.slideClass)}}"auto"!==n.slidesPerView||n.loopedSlides||(n.loopedSlides=i.length),e.loopedSlides=Math.ceil(parseFloat(n.loopedSlides||n.slidesPerView,10)),e.loopedSlides+=n.loopAdditionalSlides,e.loopedSlides>i.length&&(e.loopedSlides=i.length);var c=[],d=[];i.each(function(t,n){var r=(0,o.Z)(t);n<e.loopedSlides&&d.push(t),n<i.length&&n>=i.length-e.loopedSlides&&c.push(t),r.attr("data-swiper-slide-index",n)});for(var h=0;h<d.length;h+=1)r.append((0,o.Z)(d[h].cloneNode(!0)).addClass(n.slideDuplicateClass));for(var f=c.length-1;f>=0;f-=1)r.prepend((0,o.Z)(c[f].cloneNode(!0)).addClass(n.slideDuplicateClass))}
90,loopFix:function(){this.emit("beforeLoopFix");var e,t=this.activeIndex,n=this.slides,r=this.loopedSlides,i=this.allowSlidePrev,a=this.allowSlideNext,o=this.snapGrid,s=this.rtlTranslate;this.allowSlidePrev=!0,this.allowSlideNext=!0;var l=-o[t]-this.getTranslate();t<r?(e=n.length-3*r+t+r,this.slideTo(e,0,!1,!0)&&0!==l&&this.setTranslate((s?-this.translate:this.translate)-l)):t>=n.length-r&&(e=-n.length+t+r+r,this.slideTo(e,0,!1,!0)&&0!==l&&this.setTranslate((s?-this.translate:this.translate)-l)),this.allowSlidePrev=i,this.allowSlideNext=a,this.emit("loopFix")},loopDestroy:function(){var e=this.$wrapperEl,t=this.params,n=this.slides;e.children("."+t.slideClass+"."+t.slideDuplicateClass+",."+t.slideClass+"."+t.slideBlankClass).remove(),n.removeAttr("data-swiper-slide-index")}},grabCursor:{setGrabCursor:function(e){if(!this.support.touch&&this.params.simulateTouch&&(!this.params.watchOverflow||!this.isLocked)&&!this.params.cssMode){var t=this.el;t.style.cursor="move",t.style.cursor=e?"-webkit-grabbing":"-webkit-grab",t.style.cursor=e?"-moz-grabbin":"-moz-grab",t.style.cursor=e?"grabbing":"grab"}},unsetGrabCursor:function(){this.support.touch||this.params.watchOverflow&&this.isLocked||this.params.cssMode||(this.el.style.cursor="")}},manipulation:{appendSlide:function(e){var t=this.$wrapperEl,n=this.params;if(n.loop&&this.loopDestroy(),"object"==typeof e&&"length"in e)for(var r=0;r<e.length;r+=1)e[r]&&t.append(e[r]);else t.append(e);n.loop&&this.loopCreate(),n.observer&&this.support.observer||this.update()},prependSlide:function(e){var t=this.params,n=this.$wrapperEl,r=this.activeIndex;t.loop&&this.loopDestroy();var i=r+1;if("object"==typeof e&&"length"in e){for(var a=0;a<e.length;a+=1)e[a]&&n.prepend(e[a]);i=r+e.length}else n.prepend(e);t.loop&&this.loopCreate(),t.observer&&this.support.observer||this.update(),this.slideTo(i,0,!1)},addSlide:function(e,t){var n=this.$wrapperEl,r=this.params,i=this.activeIndex;r.loop&&(i-=this.loopedSlides,this.loopDestroy(),this.slides=n.children("."+r.slideClass));var a=this.slides.length;if(e<=0){this.prependSlide(t);return}if(e>=a){this.appendSlide(t);return}for(var o=i>e?i+1:i,s=[],l=a-1;l>=e;l-=1){var u=this.slides.eq(l);u.remove(),s.unshift(u)}if("object"==typeof t&&"length"in t){for(var c=0;c<t.length;c+=1)t[c]&&n.append(t[c]);o=i>e?i+t.length:i}else n.append(t);for(var d=0;d<s.length;d+=1)n.append(s[d]);r.loop&&this.loopCreate(),r.observer&&this.support.observer||this.update(),r.loop?this.slideTo(o+this.loopedSlides,0,!1):this.slideTo(o,0,!1)},removeSlide:function(e){var t,n=this.params,r=this.$wrapperEl,i=this.activeIndex;n.loop&&(i-=this.loopedSlides,this.loopDestroy(),this.slides=r.children("."+n.slideClass));var a=i;if("object"==typeof e&&"length"in e){for(var o=0;o<e.length;o+=1)t=e[o],this.slides[t]&&this.slides.eq(t).remove(),t<a&&(a-=1);a=Math.max(a,0)}else t=e,this.slides[t]&&this.slides.eq(t).remove(),t<a&&(a-=1),a=Math.max(a,0);n.loop&&this.loopCreate(),n.observer&&this.support.observer||this.update(),n.loop?this.slideTo(a+this.loopedSlides,0,!1):this.slideTo(a,0,!1)},removeAllSlides:function(){for(var e=[],t=0;t<this.slides.length;t+=1)e.push(t);this.removeSlide(e)}},events:{attachEvents:function(){var e=(0,l.Me)(),t=this.params,n=this.touchEvents,r=this.el,i=this.wrapperEl,a=this.device,o=this.support;this.onTouchStart=es.bind(this),this.onTouchMove=el.bind(this),this.onTouchEnd=eu.bind(this),t.cssMode&&(this.onScroll=eh.bind(this)),this.onClick=ed.bind(this);var s=!!t.nested;if(!o.touch&&o.pointerEvents)r.addEventListener(n.start,this.onTouchStart,!1),e.addEventListener(n.move,this.onTouchMove,s),e.addEventListener(n.end,this.onTouchEnd,!1);else{if(o.touch){var u="touchstart"===n.start&&!!o.passiveListener&&!!t.passiveListeners&&{passive:!0,capture:!1};r.addEventListener(n.start,this.onTouchStart,u),r.addEventListener(n.move,this.onTouchMove,o.passiveListener?{passive:!1,capture:s}:s),r.addEventListener(n.end,this.onTouchEnd,u),n.cancel&&r.addEventListener(n.cancel,this.onTouchEnd,u),ef||(e.addEventListener("touchstart",ep),ef=!0)}(t.simulateTouch&&!a.ios&&!a.android||t.simulateTouch&&!o.touch&&a.ios)&&(r.addEventListener("mousedown",this.onTouchStart,!1),e.addEventListener("mousemove",this.onTouchMove,s),e.addEventListener("mouseup",this.onTouchEnd,!1))}(t.preventClicks||t.preventClicksPropagation)&&r.addEventListener("click",this.onClick,!0),t.cssMode&&i.addEventListener("scroll",this.onScroll),t.updateOnWindowResize?this.on(a.ios||a.android?"resize orientationchange observerUpdate":"resize observerUpdate",ec,!0):this.on("observerUpdate",ec,!0)},detachEvents:function(){var e=(0,l.Me)(),t=this.params,n=this.touchEvents,r=this.el,i=this.wrapperEl,a=this.device,o=this.support,s=!!t.nested;
90if(!o.touch&&o.pointerEvents)r.removeEventListener(n.start,this.onTouchStart,!1),e.removeEventListener(n.move,this.onTouchMove,s),e.removeEventListener(n.end,this.onTouchEnd,!1);else{if(o.touch){var u="onTouchStart"===n.start&&!!o.passiveListener&&!!t.passiveListeners&&{passive:!0,capture:!1};r.removeEventListener(n.start,this.onTouchStart,u),r.removeEventListener(n.move,this.onTouchMove,s),r.removeEventListener(n.end,this.onTouchEnd,u),n.cancel&&r.removeEventListener(n.cancel,this.onTouchEnd,u)}(t.simulateTouch&&!a.ios&&!a.android||t.simulateTouch&&!o.touch&&a.ios)&&(r.removeEventListener("mousedown",this.onTouchStart,!1),e.removeEventListener("mousemove",this.onTouchMove,s),e.removeEventListener("mouseup",this.onTouchEnd,!1))}(t.preventClicks||t.preventClicksPropagation)&&r.removeEventListener("click",this.onClick,!0),t.cssMode&&i.removeEventListener("scroll",this.onScroll),this.off(a.ios||a.android?"resize orientationchange observerUpdate":"resize observerUpdate",ec)}},breakpoints:{setBreakpoint:function(){var e=this.activeIndex,t=this.initialized,n=this.loopedSlides,r=this.params,i=this.$el,a=r.breakpoints;if(a&&(!a||0!==Object.keys(a).length)){var o=this.getBreakpoint(a);if(o&&this.currentBreakpoint!==o){var l=o in a?a[o]:void 0;l&&["slidesPerView","spaceBetween","slidesPerGroup","slidesPerGroupSkip","slidesPerColumn"].forEach(function(e){var t=l[e];void 0!==t&&("slidesPerView"===e&&("AUTO"===t||"auto"===t)?l[e]="auto":"slidesPerView"===e?l[e]=parseFloat(t):l[e]=parseInt(t,10))});var u=l||this.originalParams,c=r.slidesPerColumn>1,d=u.slidesPerColumn>1;c&&!d?(i.removeClass(r.containerModifierClass+"multirow "+r.containerModifierClass+"multirow-column"),this.emitContainerClasses()):!c&&d&&(i.addClass(r.containerModifierClass+"multirow"),"column"===u.slidesPerColumnFill&&i.addClass(r.containerModifierClass+"multirow-column"),this.emitContainerClasses());var h=u.direction&&u.direction!==r.direction,f=r.loop&&(u.slidesPerView!==r.slidesPerView||h);h&&t&&this.changeDirection(),(0,s.l7)(this.params,u),(0,s.l7)(this,{allowTouchMove:this.params.allowTouchMove,allowSlideNext:this.params.allowSlideNext,allowSlidePrev:this.params.allowSlidePrev}),this.currentBreakpoint=o,f&&t&&(this.loopDestroy(),this.loopCreate(),this.updateSlides(),this.slideTo(e-(void 0===n?0:n)+this.loopedSlides,0,!1)),this.emit("breakpoint",u)}}},getBreakpoint:function(e){var t=(0,l.Jj)();if(e){var n=!1,r=Object.keys(e).map(function(e){if("string"==typeof e&&0===e.indexOf("@")){var n=parseFloat(e.substr(1));return{value:t.innerHeight*n,point:e}}return{value:e,point:e}});r.sort(function(e,t){return parseInt(e.value,10)-parseInt(t.value,10)});for(var i=0;i<r.length;i+=1){var a=r[i],o=a.point;a.value<=t.innerWidth&&(n=o)}return n||"max"}}},checkOverflow:{checkOverflow:function(){var e=this.params,t=this.isLocked,n=this.slides.length>0&&e.slidesOffsetBefore+e.spaceBetween*(this.slides.length-1)+this.slides[0].offsetWidth*this.slides.length;e.slidesOffsetBefore&&e.slidesOffsetAfter&&n?this.isLocked=n<=this.size:this.isLocked=1===this.snapGrid.length,this.allowSlideNext=!this.isLocked,this.allowSlidePrev=!this.isLocked,t!==this.isLocked&&this.emit(this.isLocked?"lock":"unlock"),t&&t!==this.isLocked&&(this.isEnd=!1,this.navigation&&this.navigation.update())}},classes:{addClasses:function(){var e=this.classNames,t=this.params,n=this.rtl,r=this.$el,i=this.device,a=[];a.push("initialized"),a.push(t.direction),t.freeMode&&a.push("free-mode"),t.autoHeight&&a.push("autoheight"),n&&a.push("rtl"),t.slidesPerColumn>1&&(a.push("multirow"),"column"===t.slidesPerColumnFill&&a.push("multirow-column")),i.android&&a.push("android"),i.ios&&a.push("ios"),t.cssMode&&a.push("css-mode"),a.forEach(function(n){e.push(t.containerModifierClass+n)}),r.addClass(e.join(" ")),this.emitContainerClasses()},removeClasses:function(){var e=this.$el,t=this.classNames;e.removeClass(t.join(" ")),this.emitContainerClasses()}},images:{loadImage:function(e,t,n,r,i,a){var s,u=(0,l.Jj)();function c(){a&&a()}(0,o.Z)(e).parent("picture")[0]||e.complete&&i?c():t?((s=new u.Image).onload=c,s.onerror=c,r&&(s.sizes=r),n&&(s.srcset=n),t&&(s.src=t)):c()},preloadImages:function(){var e=this;function t(){null!=e&&e&&!e.destroyed&&(void 0!==e.imagesLoaded&&(e.imagesLoaded+=1),e.imagesLoaded===e.imagesToLoad.length&&(e.params.updateOnImagesReady&&e.update(
90),e.emit("imagesReady")))}e.imagesToLoad=e.$el.find("img");for(var n=0;n<e.imagesToLoad.length;n+=1){var r=e.imagesToLoad[n];e.loadImage(r,r.currentSrc||r.getAttribute("src"),r.srcset||r.getAttribute("srcset"),r.sizes||r.getAttribute("sizes"),!0,t)}}}},ev={},ey=function(){function e(){for(var t,n,r,c,d=arguments.length,h=Array(d),f=0;f<d;f++)h[f]=arguments[f];1===h.length&&h[0].constructor&&h[0].constructor===Object?r=h[0]:(n=h[0],r=h[1]),r||(r={}),r=(0,s.l7)({},r),n&&!r.el&&(r.el=n);var p=this;p.support=u(),p.device=function(e){if(void 0===e&&(e={}),!i){var t,n,r,a,o,s,c,d,h,f,p,m,g,v;n=(void 0===(t=e)?{}:t).userAgent,r=u(),o=(a=(0,l.Jj)()).navigator.platform,s=n||a.navigator.userAgent,c={ios:!1,android:!1},d=a.screen.width,h=a.screen.height,f=s.match(/(Android);?[\s\/]+([\d.]+)?/),p=s.match(/(iPad).*OS\s([\d_]+)/),m=s.match(/(iPod)(.*OS\s([\d_]+))?/),g=!p&&s.match(/(iPhone\sOS|iOS)\s([\d_]+)/),v="MacIntel"===o,!p&&v&&r.touch&&["1024x1366","1366x1024","834x1194","1194x834","834x1112","1112x834","768x1024","1024x768"].indexOf(d+"x"+h)>=0&&((p=s.match(/(Version)\/([\d.]+)/))||(p=[0,1,"13_0_0"]),v=!1),f&&"Win32"!==o&&(c.os="android",c.android=!0),(p||g||m)&&(c.os="ios",c.ios=!0),i=c}return i}({userAgent:r.userAgent}),p.browser=function(){if(!a){var e,t;a={isEdge:!!(e=(0,l.Jj)()).navigator.userAgent.match(/Edge/g),isSafari:(t=e.navigator.userAgent.toLowerCase()).indexOf("safari")>=0&&0>t.indexOf("chrome")&&0>t.indexOf("android"),isWebView:/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(e.navigator.userAgent)}}return a}(),p.eventsListeners={},p.eventsAnyListeners=[],Object.keys(eg).forEach(function(t){Object.keys(eg[t]).forEach(function(n){e.prototype[n]||(e.prototype[n]=eg[t][n])})}),void 0===p.modules&&(p.modules={}),Object.keys(p.modules).forEach(function(e){var t=p.modules[e];if(t.params){var n=Object.keys(t.params)[0],i=t.params[n];if("object"!=typeof i||null===i||!(n in r&&"enabled"in i))return;!0===r[n]&&(r[n]={enabled:!0}),"object"!=typeof r[n]||"enabled"in r[n]||(r[n].enabled=!0),r[n]||(r[n]={enabled:!1})}});var m=(0,s.l7)({},em);p.useParams(m),p.params=(0,s.l7)({},m,ev,r),p.originalParams=(0,s.l7)({},p.params),p.passedParams=(0,s.l7)({}
90,r),p.params&&p.params.on&&Object.keys(p.params.on).forEach(function(e){p.on(e,p.params.on[e])}),p.$=o.Z;var g=(0,o.Z)(p.params.el);if(n=g[0]){if(g.length>1){var v=[];return g.each(function(t){var n=(0,s.l7)({},r,{el:t});v.push(new e(n))}),v}return n.swiper=p,n&&n.shadowRoot&&n.shadowRoot.querySelector?(c=(0,o.Z)(n.shadowRoot.querySelector("."+p.params.wrapperClass))).children=function(e){return g.children(e)}:c=g.children("."+p.params.wrapperClass),(0,s.l7)(p,{$el:g,el:n,$wrapperEl:c,wrapperEl:c[0],classNames:[],slides:(0,o.Z)(),slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal:function(){return"horizontal"===p.params.direction},isVertical:function(){return"vertical"===p.params.direction},rtl:"rtl"===n.dir.toLowerCase()||"rtl"===g.css("direction"),rtlTranslate:"horizontal"===p.params.direction&&("rtl"===n.dir.toLowerCase()||"rtl"===g.css("direction")),wrongRTL:"-webkit-box"===c.css("display"),activeIndex:0,realIndex:0,isBeginning:!0,isEnd:!1,translate:0,previousTranslate:0,progress:0,velocity:0,animating:!1,allowSlideNext:p.params.allowSlideNext,allowSlidePrev:p.params.allowSlidePrev,touchEvents:(t=["mousedown","mousemove","mouseup"],p.support.pointerEvents&&(t=["pointerdown","pointermove","pointerup"]),p.touchEventsTouch={start:"touchstart",move:"touchmove",end:"touchend",cancel:"touchcancel"},p.touchEventsDesktop={start:t[0],move:t[1],end:t[2]},p.support.touch||!p.params.simulateTouch?p.touchEventsTouch:p.touchEventsDesktop),touchEventsData:{isTouched:void 0,isMoved:void 0,allowTouchCallbacks:void 0,touchStartTime:void 0,isScrolling:void 0,currentTranslate:void 0,startTranslate:void 0,allowThresholdMove:void 0,formElements:"input, select, option, textarea, button, video, label",lastClickTime:(0,s.zO)(),clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,isTouchEvent:void 0,startMoving:void 0},allowClick:!0,allowTouchMove:p.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),p.useModules(),p.emit("_swiper"),p.params.init&&p.init(),p}}var t,n=e.prototype;return n.emitContainerClasses=function(){var e=this;if(e.params._emitClasses&&e.el){var t=e.el.className.split(" ").filter(function(t){return 0===t.indexOf("swiper-container")||0===t.indexOf(e.params.containerModifierClass)});e.emit("_containerClasses",t.join(" "))}},n.emitSlidesClasses=function(){var e=this;e.params._emitClasses&&e.el&&e.slides.each(function(t){var n=t.className.split(" ").filter(function(t){return 0===t.indexOf("swiper-slide")||0===t.indexOf(e.params.slideClass)});e.emit("_slideClass",t,n.join(" "))})},n.slidesPerViewDynamic=function(){var e=this.params,t=this.slides,n=this.slidesGrid,r=this.size,i=this.activeIndex,a=1;if(e.centeredSlides){for(var o,s=t[i].swiperSlideSize,l=i+1;l<t.length;l+=1)t[l]&&!o&&(s+=t[l].swiperSlideSize,a+=1,s>r&&(o=!0));for(var u=i-1;u>=0;u-=1)t[u]&&!o&&(s+=t[u].swiperSlideSize,a+=1,s>r&&(o=!0))}else for(var c=i+1;c<t.length;c+=1)n[c]-n[i]<r&&(a+=1);return a},n.update=function(){var e=this;if(e&&!e.destroyed){var t=e.snapGrid,n=e.params;n.breakpoints&&e.setBreakpoint(),e.updateSize(),e.updateSlides(),e.updateProgress(),e.updateSlidesClasses(),e.params.freeMode?(r(),e.params.autoHeight&&e.updateAutoHeight()):(("auto"===e.params.slidesPerView||e.params.slidesPerView>1)&&e.isEnd&&!e.params.centeredSlides?e.slideTo(e.slides.length-1,0,!1,!0):e.slideTo(e.activeIndex,0,!1,!0))||r(),n.watchOverflow&&t!==e.snapGrid&&e.checkOverflow(),e.emit("update")}function r(){var t=Math.min(Math.max(e.rtlTranslate?-1*e.translate:e.translate,e.maxTranslate()),e.minTranslate());e.setTranslate(t),e.updateActiveIndex(),e.updateSlidesClasses()}},n.changeDirection=function(e,t){void 0===t&&(t=!0);var n=this.params.direction;return e||(e="horizontal"===n?"vertical":"horizontal"),e===n||"horizontal"!==e&&"vertical"!==e||(this.$el.removeClass(""+this.params.containerModifierClass+n).addClass(""+this.params.containerModifierClass+e),this.emitContainerClasses(),this.params.direction=e,this.slides.each(function(t){"vertical"===e?t.style.width="":t.style.height=""}),this.emit("changeDirection"),t&&this.update()),this}
90,n.init=function(){this.initialized||(this.emit("beforeInit"),this.params.breakpoints&&this.setBreakpoint(),this.addClasses(),this.params.loop&&this.loopCreate(),this.updateSize(),this.updateSlides(),this.params.watchOverflow&&this.checkOverflow(),this.params.grabCursor&&this.setGrabCursor(),this.params.preloadImages&&this.preloadImages(),this.params.loop?this.slideTo(this.params.initialSlide+this.loopedSlides,0,this.params.runCallbacksOnInit):this.slideTo(this.params.initialSlide,0,this.params.runCallbacksOnInit),this.attachEvents(),this.initialized=!0,this.emit("init"))},n.destroy=function(e,t){void 0===e&&(e=!0),void 0===t&&(t=!0);var n=this,r=n.params,i=n.$el,a=n.$wrapperEl,o=n.slides;return void 0===n.params||n.destroyed||(n.emit("beforeDestroy"),n.initialized=!1,n.detachEvents(),r.loop&&n.loopDestroy(),t&&(n.removeClasses(),i.removeAttr("style"),a.removeAttr("style"),o&&o.length&&o.removeClass([r.slideVisibleClass,r.slideActiveClass,r.slideNextClass,r.slidePrevClass].join(" ")).removeAttr("style").removeAttr("data-swiper-slide-index")),n.emit("destroy"),Object.keys(n.eventsListeners).forEach(function(e){n.off(e)}),!1!==e&&(n.$el[0].swiper=null,(0,s.cP)(n)),n.destroyed=!0),null},e.extendDefaults=function(e){(0,s.l7)(ev,e)},e.installModule=function(t){e.prototype.modules||(e.prototype.modules={});var n=t.name||Object.keys(e.prototype.modules).length+"_"+(0,s.zO)();e.prototype.modules[n]=t},e.use=function(t){return Array.isArray(t)?t.forEach(function(t){return e.installModule(t)}):e.installModule(t),e},t=[{key:"extendedDefaults",get:function(){return ev}},{key:"defaults",get:function(){return em}}],function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(e,t),e}(),eb={attach:function(e,t){void 0===t&&(t={});var n=(0,l.Jj)(),r=this,i=new(n.MutationObserver||n.WebkitMutationObserver)(function(e){if(1===e.length){r.emit("observerUpdate",e[0]);return}var t=function(){r.emit("observerUpdate",e[0])};n.requestAnimationFrame?n.requestAnimationFrame(t):n.setTimeout(t,0)});i.observe(e,{attributes:void 0===t.attributes||t.attributes,childList:void 0===t.childList||t.childList,characterData:void 0===t.characterData||t.characterData}),r.observer.observers.push(i)},init:function(){if(this.support.observer&&this.params.observer){if(this.params.observeParents)for(var e=this.$el.parents(),t=0;t<e.length;t+=1)this.observer.attach(e[t]);this.observer.attach(this.$el[0],{childList:this.params.observeSlideChildren}),this.observer.attach(this.$wrapperEl[0],{attributes:!1})}},destroy:function(){this.observer.observers.forEach(function(e){e.disconnect()}),this.observer.observers=[]}},eA=[{name:"resize",create:function(){var e=this;(0,s.l7)(e,{resize:{resizeHandler:function(){e&&!e.destroyed&&e.initialized&&(e.emit("beforeResize"),e.emit("resize"))},orientationChangeHandler:function(){e&&!e.destroyed&&e.initialized&&e.emit("orientationchange")}}})},on:{init:function(e){var t=(0,l.Jj)();t.addEventListener("resize",e.resize.resizeHandler),t.addEventListener("orientationchange",e.resize.orientationChangeHandler)},destroy:function(e){var t=(0,l.Jj)();t.removeEventListener("resize",e.resize.resizeHandler),t.removeEventListener("orientationchange",e.resize.orientationChangeHandler)}}},{name:"observer",params:{observer:!1,observeParents:!1,observeSlideChildren:!1},create:function(){(0,s.cR)(this,{observer:eo(eo({},eb),{},{observers:[]})})},on:{init:function(e){e.observer.init()},destroy:function(e){e.observer.destroy()}}}];ey.use(eA);var eE=ey},8123:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}}),e=n.hmd(e);var r,i,a,o=("function"==typeof(i=("undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==n.g?n.g:e).Symbol)?i.observable?r=i.observable:(r=i("observable"),i.observable=r):r="@@observable",r)},2473:function(e){"use strict";e.exports=function(){}},439:function(e,t,n){"use strict";n.r(t),n.d(t,{$$asyncIterator:function(){return m},$$iterator:function(){return a},createAsyncIterator:function(){return b},createIterator:function(){return d},forAwaitEach:function(){return w}
90,forEach:function(){return f},getAsyncIterator:function(){return v},getAsyncIteratorMethod:function(){return y},getIterator:function(){return u},getIteratorMethod:function(){return c},isArrayLike:function(){return s},isAsyncIterable:function(){return g},isCollection:function(){return l},isIterable:function(){return o}});var r="function"==typeof Symbol?Symbol:void 0,i=r&&r.iterator,a=i||"@@iterator";function o(e){return!!c(e)}function s(e){var t=null!=e&&e.length;return"number"==typeof t&&t>=0&&t%1==0}function l(e){return Object(e)===e&&(s(e)||o(e))}function u(e){var t=c(e);if(t)return t.call(e)}function c(e){if(null!=e){var t=i&&e[i]||e["@@iterator"];if("function"==typeof t)return t}}function d(e){if(null!=e){var t=u(e);if(t)return t;if(s(e))return new h(e)}}function h(e){this._o=e,this._i=0}function f(e,t,n){if(null!=e){if("function"==typeof e.forEach)return e.forEach(t,n);var r,i=0,a=u(e);if(a){for(;!(r=a.next()).done;)if(t.call(n,r.value,i++,e),i>9999999)throw TypeError("Near-infinite iteration.")}else if(s(e))for(;i<e.length;i++)e.hasOwnProperty(i)&&t.call(n,e[i],i,e)}}h.prototype[a]=function(){return this},h.prototype.next=function(){return void 0===this._o||this._i>=this._o.length?(this._o=void 0,{value:void 0,done:!0}):{value:this._o[this._i++],done:!1}};var p=r&&r.asyncIterator,m=p||"@@asyncIterator";function g(e){return!!y(e)}function v(e){var t=y(e);if(t)return t.call(e)}function y(e){if(null!=e){var t=p&&e[p]||e["@@asyncIterator"];if("function"==typeof t)return t}}function b(e){if(null!=e){var t=v(e);if(t)return t;var n=d(e);if(n)return new A(n)}}function A(e){this._i=e}function E(e,t,n){var r;return new Promise(function(i){i((r=e[t](n)).value)}).then(function(e){return{value:e,done:r.done}})}function w(e,t,n){var r=b(e);if(r){var i=0;return new Promise(function(a,o){!function s(){return r.next().then(function(r){return r.done?a():Promise.resolve(t.call(n,r.value,i++,e)).then(s).catch(o),null}).catch(o),null}()})}}A.prototype[m]=function(){return this},A.prototype.next=function(e){return E(this._i,"next",e)},A.prototype.return=function(e){return this._i.return?E(this._i,"return",e):Promise.resolve({value:e,done:!0})},A.prototype.throw=function(e){return this._i.throw?E(this._i,"throw",e):Promise.reject(e)}}},function(e){var t=function(t){return e(e.s=t)};e.O(0,[774,179],function(){return t(6840),t(3035)}),_N_E=e.O()}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.