(()=>{"use strict";var e,t={15165(e,t,r){r.r(t),r.d(t,{EBGetIconClass:()=>v,EBGetIconType:()=>p,EBRenderIcon:()=>d,EBRenderIconWithSVG:()=>g,SetEqualHeightOfMultiColumnBlock:()=>E,fetchSvgAsHTML:()=>l,generateArrowHTML:()=>b,getDataAttribute:()=>A,isInlineSvgMarkup:()=>u,isSvgIconValue:()=>s,loadSvgIcons:()=>f,logSecurityWarning:()=>O,sanitize:()=>y,sanitizeAttribute:()=>S,sanitizeCSS:()=>j,sanitizeFormInput:()=>T,sanitizeHTML:()=>x,sanitizeIconValue:()=>M,sanitizeObject:()=>I,sanitizeTarget:()=>k,sanitizeText:()=>_,sanitizeURL:()=>m,setDataAttribute:()=>z});var n=r(88727);const i=window.regeneratorRuntime;var a=r.n(i);function o(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return c(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?c(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,o=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return o=e.done,e},e:function(e){s=!0,a=e},f:function(){try{o||null==r.return||r.return()}finally{if(s)throw a}}}}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var s=function(e){if(!e||"string"!=typeof e)return!1;try{return/\.svg(\?|#|$)/i.test(e)}catch(e){return!1}},u=function(e){return"string"==typeof e&&/<svg[\s\S]*<\/svg>/i.test(e)},l=function(){var e=(0,n.A)(a().mark(function e(t){var r,n,i,o;return a().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(s(t)){e.next=1;break}return e.abrupt("return","");case 1:return e.prev=1,e.next=2,fetch(t,{credentials:"omit"});case 2:if((r=e.sent).ok){e.next=3;break}return e.abrupt("return","");case 3:return e.next=4,r.text();case 4:if(n=e.sent,i=n.match(/<svg[\s\S]*?<\/svg>/i),o=i?i[0]:n,"undefined"==typeof window||!window.eb_frontend||!window.eb_frontend.sanitizeHTML){e.next=5;break}return e.abrupt("return",window.eb_frontend.sanitizeHTML(o));case 5:return e.abrupt("return",o);case 6:return e.prev=6,e.catch(1),e.abrupt("return","");case 7:case"end":return e.stop()}},e,null,[[1,6]])}));return function(t){return e.apply(this,arguments)}}(),f=function(){var e=(0,n.A)(a().mark(function e(t){var r,n,i,c,s,u,f,p;return a().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:r=t.querySelectorAll(".eb-svg-icon[data-svg-url]"),n=o(r),e.prev=1,n.s();case 2:if((i=n.n()).done){e.next=7;break}if(c=i.value,!(s=c.getAttribute("data-svg-url"))){e.next=6;break}return e.prev=3,e.next=4,l(s);case 4:(u=e.sent)&&(c.innerHTML=u,c.removeAttribute("data-svg-url")),e.next=6;break;case 5:e.prev=5,f=e.catch(3),console.warn("Failed to load SVG icon:",s,f);case 6:e.next=2;break;case 7:e.next=9;break;case 8:e.prev=8,p=e.catch(1),n.e(p);case 9:return e.prev=9,n.f(),e.finish(9);case 10:case"end":return e.stop()}},e,null,[[1,8,9,10],[3,5]])}));return function(t){return e.apply(this,arguments)}}(),p=function(e){return e.includes("fa-")?"fontawesome":"dashicon"},d=function(e,t,r){return"dashicon"===e?'<span class="dashicon dashicons '+r+" "+t+'"></span>':"fontawesome"===e?'<i class="'+r+" "+t+'"></i>':"Invalid icon type"},v=function(e){return e?e.includes("fa-")?e:"dashicon dashicons "+e:""},g=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if(!e)return"";var r="undefined"!=typeof window&&window.eb_frontend&&window.eb_frontend.sanitizeHTML?window.eb_frontend.sanitizeHTML:function(e){return e},n="undefined"!=typeof window&&window.eb_frontend&&window.eb_frontend.sanitizeIconValue?window.eb_frontend.sanitizeIconValue:function(e){return e&&"string"==typeof e?e.replace(/[<>'"]/g,""):""};if(u(e))return'<span class="'+t+'">'+r(e)+"</span>";if(s(e))return'<span class="eb-svg-icon '+t+'" data-svg-url="'+e+'"></span>';var i=p(e),a=n(e),o=t.replace(/[<>'"]/g,"");return d(i,o,a)},b=function(e,t){var r="undefined"!=typeof window&&window.eb_frontend&&window.eb_frontend.sanitizeHTML?window.eb_frontend.sanitizeHTML:function(e){return e},n="undefined"!=typeof window&&window.eb_frontend&&window.eb_frontend.sanitizeIconValue?window.eb_frontend.sanitizeIconValue:function(e){return e&&"string"==typeof e?e.replace(/[<>'"]/g,""):""};if(u(e))return'<div class="slick-'+t+'"><span>'+r(e)+"</span></div>";if(s(e))return'<div class="slick-'+t+'"><span class="eb-svg-icon" data-svg-url="'+e+'"></span></div>';var i=p(e),a=n(e);return'<div class="slick-'+t.replace(/[<>'"]/g,"")+'">'+d(i,"",a)+"</div>"},h=r(50809),w=r(69624),y=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"text";if(null==e)return null;var r=String(e).trim();if(!r)return"url"===t?null:"";switch(t){case"url":return m(r);case"attribute":return S(r);case"html":return x(r);default:return _(r)}},m=function(e){if(!e||"string"!=typeof e)return null;var t=e.replace(/javascript:/gi,"").replace(/data:/gi,"").replace(/vbscript:/gi,"").replace(/on\w+=/gi,"").replace(/<script/gi,"").replace(/<\/script>/gi,"");if(t.startsWith("/")||t.startsWith("#"))return t;try{var r=new URL(t);return["http:","https:","ftp:","ftps:","mailto:","news:","irc:","irc6:","ircs:","gopher:","nntp:","feed:","telnet:","mms:","rtsp:","sms:","svn:","tel:","fax:","xmpp:","webcal:","urn:"].includes(r.protocol)?r.toString():null}catch(e){return null}},S=function(e){return e&&"string"==typeof e?e.replace(/[<>'"]/g,"").replace(/javascript:/gi,"").replace(/on\w+=/gi,"").replace(/data:/gi,"").replace(/vbscript:/gi,"").trim():""},_=function(e){return e&&"string"==typeof e?e.replace(/<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi,"").replace(/<[^>]*>/g,"").replace(/javascript:/gi,"").replace(/on\w+=/gi,"").trim():""},x=function(e){return e&&"string"==typeof e?e.replace(/<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi,"").replace(/<iframe\b[^<]*(?:(?!<\/iframe>)<[^<]*)*<\/iframe>/gi,"").replace(/<object\b[^<]*(?:(?!<\/object>)<[^<]*)*<\/object>/gi,"").replace(/<embed\b[^<]*(?:(?!<\/embed>)<[^<]*)*<\/embed>/gi,"").replace(/on\w+\s*=\s*["'][^"']*["']/gi,"").replace(/javascript:/gi,"").replace(/vbscript:/gi,"").trim():""},k=function(e){if(!e||"string"!=typeof e)return"_self";var t=S(e);return["_self","_blank","_parent","_top"].includes(t)?t:"_self"},A=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"attribute";if(!e||!t)return null;var n=e.getAttribute("data-".concat(t));return y(n,r)},z=function(e,t,r){if(e&&t){var n=y(r,arguments.length>3&&void 0!==arguments[3]?arguments[3]:"attribute");null!==n&&e.setAttribute("data-".concat(t),n)}},j=function(e){return e&&"string"==typeof e?e.replace(/javascript:/gi,"").replace(/expression\s*\(/gi,"").replace(/@import/gi,"").replace(/behavior\s*:/gi,"").replace(/binding\s*:/gi,"").replace(/<[^>]*>/g,"").trim():""},O=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;console.warn("[Essential Blocks Security] ".concat(e),t||"")},T=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"text";if(!e||"string"!=typeof e)return null;var r=_(e);switch(t){case"email":return/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(r)?r:null;case"url":return m(r);case"number":var n=parseFloat(r);return isNaN(n)?null:n.toString();default:return r}},I=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!e||"object"!==(0,w.A)(e))return{};for(var r={},n=0,i=Object.entries(e);n<i.length;n++){var a=(0,h.A)(i[n],2),o=a[0],c=a[1],s=t[o]||"text";r[o]=y(c,s)}return r},M=function(e){return e?e.includes("fa-")?/^(fa[srb]?)\s+(fa-[a-z0-9-]+)(\s+fa-[a-z0-9-]+)*$/.test(e)?e:"":e.includes("dashicons-")&&/^dashicons-[a-z0-9-]+$/.test(e)?e:"":""},E=function(e){if(e){var t={};e.querySelectorAll(".eb-mcpt-feature-list").forEach(function(e){e.querySelectorAll(".eb-mcpt-cell").forEach(function(e,r){var n=e.offsetHeight;0!==n&&(void 0!==t[r]&&t[r]<n||void 0===t[r])&&(t[r]=n)})}),Object.keys(t).length>0&&e.querySelectorAll(".eb-mcpt-feature-list").forEach(function(e){e.querySelectorAll(".eb-mcpt-cell").forEach(function(e,r){e.style.height=t[r]+"px"})})}}}},r={};function n(e){var i=r[e];if(void 0!==i)return i.exports;var a=r[e]={exports:{}};return t[e](a,a.exports,n),a.exports}n.m=t,e=[],n.O=(t,r,i,a)=>{if(!r){var o=1/0;for(l=0;l<e.length;l++){for(var[r,i,a]=e[l],c=!0,s=0;s<r.length;s++)(!1&a||o>=a)&&Object.keys(n.O).every(e=>n.O[e](r[s]))?r.splice(s--,1):(c=!1,a<o&&(o=a));if(c){e.splice(l--,1);var u=i();void 0!==u&&(t=u)}}return t}a=a||0;for(var l=e.length;l>0&&e[l-1][2]>a;l--)e[l]=e[l-1];e[l]=[r,i,a]},n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.j=5211,(()=>{var e={5211:0};n.O.j=t=>0===e[t];var t=(t,r)=>{var i,a,[o,c,s]=r,u=0;if(o.some(t=>0!==e[t])){for(i in c)n.o(c,i)&&(n.m[i]=c[i]);if(s)var l=s(n)}for(t&&t(r);u<o.length;u++)a=o[u],n.o(e,a)&&e[a]&&e[a][0](),e[a]=0;return n.O(l)},r=globalThis.webpackChunkessential_blocks=globalThis.webpackChunkessential_blocks||[];r.forEach(t.bind(null,0)),r.push=t.bind(null,r.push.bind(r))})();var i=n.O(void 0,[3935],()=>n(15165));i=n.O(i),window.eb_frontend=i})();
(globalThis.webpackChunkessential_blocks=globalThis.webpackChunkessential_blocks||[]).push([[7916],{10498(e,t,n){"use strict";n.d(t,{gj:()=>r,FN:()=>a}),n(51609),"undefined"!=typeof window&&void 0!==window.document&&window.document.createElement;const r=e=>{let{containerNodeRect:t,draggingNodeRect:n,transform:r}=e;return n&&t?function(e,t,n){const r={...e};return t.top+e.y<=n.top?r.y=n.top-t.top:t.bottom+e.y>=n.top+n.height&&(r.y=n.top+n.height-t.bottom),t.left+e.x<=n.left?r.x=n.left-t.left:t.right+e.x>=n.left+n.width&&(r.x=n.left+n.width-t.right),r}(r,n,t):r},a=e=>{let{transform:t}=e;return{...t,x:0}}},35137(e,t,n){"use strict";function r(e){for(var t,n=0,r=0,a=e.length;a>=4;++r,a-=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(a){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)}n.d(t,{A:()=>r})},36289(e,t,n){"use strict";function r(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}n.d(t,{A:()=>r})},87457(e,t,n){"use strict";n.d(t,{AH:()=>I,Y:()=>T,i7:()=>D});var r=n(51609),a=n(65047),i=n(40390),o=n(19735),s=n(24534),l=n(50483),c=n(49503),u=n(73716),f=function(e,t,n){for(var r=0,a=0;r=a,a=(0,i.se)(),38===r&&12===a&&(t[n]=1),!(0,i.Sh)(a);)(0,i.K2)();return(0,i.di)(e,i.G1)},h=new WeakMap,p=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){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)||h.get(n))&&!r){h.set(e,!0);for(var a=[],s=function(e,t){return(0,i.VF)(function(e,t){var n=-1,r=44;do{switch((0,i.Sh)(r)){case 0:38===r&&12===(0,i.se)()&&(t[n]=1),e[n]+=f(i.G1-1,t,n);break;case 2:e[n]+=(0,i.Tb)(r);break;case 4:if(44===r){e[++n]=58===(0,i.se)()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=(0,o.HT)(r)}}while(r=(0,i.K2)());return e}((0,i.c4)(e),t))}(t,a),l=n.props,c=0,u=0;c<s.length;c++)for(var p=0;p<l.length;p++,u++)e.props[u]=a[c]?s[c].replace(/&\f/g,l[p]):l[p]+" "+s[c]}}},d=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function m(e,t){switch((0,o.tW)(e,t)){case 5103:return s.j+"print-"+e+e;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 s.j+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return s.j+e+s.vd+e+s.MS+e+e;case 6828:case 4268:return s.j+e+s.MS+e+e;case 6165:return s.j+e+s.MS+"flex-"+e+e;case 5187:return s.j+e+(0,o.HC)(e,/(\w+).+(:[^]+)/,s.j+"box-$1$2"+s.MS+"flex-$1$2")+e;case 5443:return s.j+e+s.MS+"flex-item-"+(0,o.HC)(e,/flex-|-self/,"")+e;case 4675:return s.j+e+s.MS+"flex-line-pack"+(0,o.HC)(e,/align-content|flex-|-self/,"")+e;case 5548:return s.j+e+s.MS+(0,o.HC)(e,"shrink","negative")+e;case 5292:return s.j+e+s.MS+(0,o.HC)(e,"basis","preferred-size")+e;case 6060:return s.j+"box-"+(0,o.HC)(e,"-grow","")+s.j+e+s.MS+(0,o.HC)(e,"grow","positive")+e;case 4554:return s.j+(0,o.HC)(e,/([^-])(transform)/g,"$1"+s.j+"$2")+e;case 6187:return(0,o.HC)((0,o.HC)((0,o.HC)(e,/(zoom-|grab)/,s.j+"$1"),/(image-set)/,s.j+"$1"),e,"")+e;case 5495:case 3959:return(0,o.HC)(e,/(image-set\([^]*)/,s.j+"$1$`$1");case 4968:return(0,o.HC)((0,o.HC)(e,/(.+:)(flex-)?(.*)/,s.j+"box-pack:$3"+s.MS+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+s.j+e+e;case 4095:case 3583:case 4068:case 2532:return(0,o.HC)(e,/(.+)-inline(.+)/,s.j+"$1$2")+e;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((0,o.b2)(e)-1-t>6)switch((0,o.wN)(e,t+1)){case 109:if(45!==(0,o.wN)(e,t+4))break;case 102:return(0,o.HC)(e,/(.+:)(.+)-([^]+)/,"$1"+s.j+"$2-$3$1"+s.vd+(108==(0,o.wN)(e,t+3)?"$3":"$2-$3"))+e;case 115:return~(0,o.K5)(e,"stretch")?m((0,o.HC)(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==(0,o.wN)(e,t+1))break;case 6444:switch((0,o.wN)(e,(0,o.b2)(e)-3-(~(0,o.K5)(e,"!important")&&10))){case 107:return(0,o.HC)(e,":",":"+s.j)+e;case 101:return(0,o.HC)(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+s.j+(45===(0,o.wN)(e,14)?"inline-":"")+"box$3$1"+s.j+"$2$3$1"+s.MS+"$2box$3")+e}break;case 5936:switch((0,o.wN)(e,t+11)){case 114:return s.j+e+s.MS+(0,o.HC)(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return s.j+e+s.MS+(0,o.HC)(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return s.j+e+s.MS+(0,o.HC)(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return s.j+e+s.MS+e+e}return e}var g,y,v=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case s.LU:e.return=m(e.value,e.length);break;case s.Sv:return(0,l.l)([(0,i.C)(e,{value:(0,o.HC)(e.value,"@","@"+s.j)})],r);case s.XZ:if(e.length)return(0,o.kg)(e.props,function(t){switch((0,o.YW)(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return(0,l.l)([(0,i.C)(e,{props:[(0,o.HC)(t,/:(read-\w+)/,":"+s.vd+"$1")]})],r);case"::placeholder":return(0,l.l)([(0,i.C)(e,{props:[(0,o.HC)(t,/:(plac\w+)/,":"+s.j+"input-$1")]}),(0,i.C)(e,{props:[(0,o.HC)(t,/:(plac\w+)/,":"+s.vd+"$1")]}),(0,i.C)(e,{props:[(0,o.HC)(t,/:(plac\w+)/,s.MS+"input-$1")]})],r)}return""})}}],b=function(e){var t=e.key;if("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,i,o=e.stylisPlugins||v,s={},f=[];r=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;f.push(e)});var h,m=[p,d],g=[l.A,(0,c.MY)(function(e){h.insert(e)})],y=(0,c.r1)(m.concat(o,g));i=function(e,t,n,r){var a;h=n,a=e?e+"{"+t.styles+"}":t.styles,(0,l.l)((0,u.wE)(a),y),r&&(b.inserted[t.name]=!0)};var b={key:t,sheet:new a.v({key:t,container:r,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:s,registered:{},insert:i};return b.sheet.hydrate(f),b},_=n(30041),w=n(23917),S=!!r.useInsertionEffect&&r.useInsertionEffect,x=S||function(e){return e()},k=(S||r.useLayoutEffect,r.createContext("undefined"!=typeof HTMLElement?b({key:"css"}):null)),C=(k.Provider,function(e){return(0,r.forwardRef)(function(t,n){var a=(0,r.useContext)(k);return e(t,a,n)})}),E=r.createContext({}),P={}.hasOwnProperty,A="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",O=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return(0,_.SF)(t,n,r),x(function(){return(0,_.sk)(t,n,r)}),null},M=C(function(e,t,n){var a=e.css;"string"==typeof a&&void 0!==t.registered[a]&&(a=t.registered[a]);var i=e[A],o=[a],s="";"string"==typeof e.className?s=(0,_.Rk)(t.registered,o,e.className):null!=e.className&&(s=e.className+" ");var l=(0,w.J)(o,void 0,r.useContext(E));s+=t.key+"-"+l.name;var c={};for(var u in e)P.call(e,u)&&"css"!==u&&u!==A&&(c[u]=e[u]);return c.className=s,n&&(c.ref=n),r.createElement(r.Fragment,null,r.createElement(O,{cache:t,serialized:l,isStringTag:"string"==typeof i}),r.createElement(i,c))}),T=(n(4146),function(e,t){var n=arguments;if(null==t||!P.call(t,"css"))return r.createElement.apply(void 0,n);var a=n.length,i=new Array(a);i[0]=M,i[1]=function(e,t){var n={};for(var r in t)P.call(t,r)&&(n[r]=t[r]);return n[A]=e,n}(e,t);for(var o=2;o<a;o++)i[o]=n[o];return r.createElement.apply(null,i)});function I(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return(0,w.J)(t)}function D(){var e=I.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}g=T||(T={}),y||(y=g.JSX||(g.JSX={}))},23917(e,t,n){"use strict";if(n.d(t,{J:()=>m}),/^(3260|6573|7776)$/.test(n.j))var r=n(35137);if(/^(3260|6573|7776)$/.test(n.j))var a=n(83969);if(/^(3260|6573|7776)$/.test(n.j))var i=n(36289);var o=/[A-Z]|^ms/g,s=/_EMO_([^_]+?)_([^]*?)_EMO_/g,l=function(e){return 45===e.charCodeAt(1)},c=function(e){return null!=e&&"boolean"!=typeof e},u=/^(3260|6573|7776)$/.test(n.j)?(0,i.A)(function(e){return l(e)?e:e.replace(o,"-$&").toLowerCase()}):null,f=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(s,function(e,t,n){return p={name:t,styles:n,next:p},t})}return 1===a.A[e]||l(e)||"number"!=typeof t||0===t?t:t+"px"};function h(e,t,n){if(null==n)return"";var r=n;if(void 0!==r.__emotion_styles)return r;switch(typeof n){case"boolean":return"";case"object":var a=n;if(1===a.anim)return p={name:a.name,styles:a.styles,next:p},a.name;var i=n;if(void 0!==i.styles){var o=i.next;if(void 0!==o)for(;void 0!==o;)p={name:o.name,styles:o.styles,next:p},o=o.next;return i.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var a=0;a<n.length;a++)r+=h(e,t,n[a])+";";else for(var i in n){var o=n[i];if("object"!=typeof o){var s=o;null!=t&&void 0!==t[s]?r+=i+"{"+t[s]+"}":c(s)&&(r+=u(i)+":"+f(i,s)+";")}else if(!Array.isArray(o)||"string"!=typeof o[0]||null!=t&&void 0!==t[o[0]]){var l=h(e,t,o);switch(i){case"animation":case"animationName":r+=u(i)+":"+l+";";break;default:r+=i+"{"+l+"}"}}else for(var p=0;p<o.length;p++)c(o[p])&&(r+=u(i)+":"+f(i,o[p])+";")}return r}(e,t,n);case"function":if(void 0!==e){var s=p,l=n(e);return p=s,h(e,t,l)}}var d=n;if(null==t)return d;var m=t[d];return void 0!==m?m:d}/^(3260|6573|7776)$/.test(n.j);var p,d=/label:\s*([^\s;{]+)\s*(;|$)/g;function m(e,t,n){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var a=!0,i="";p=void 0;var o=e[0];null==o||void 0===o.raw?(a=!1,i+=h(n,t,o)):i+=o[0];for(var s=1;s<e.length;s++)i+=h(n,t,e[s]),a&&(i+=o[s]);d.lastIndex=0;for(var l,c="";null!==(l=d.exec(i));)c+="-"+l[1];return{name:(0,r.A)(i)+c,styles:i,next:p}}},65047(e,t,n){"use strict";n.d(t,{v:()=>r});var r=/^(3260|6573|7776)$/.test(n.j)?function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling: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||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,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(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=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]}(t);try{n.insertRule(e,n.cssRules.length)}catch(e){}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach(function(e){var t;return null==(t=e.parentNode)?void 0:t.removeChild(e)}),this.tags=[],this.ctr=0},e}():null},83969(e,t,n){"use strict";n.d(t,{A:()=>r});var r=/^(3260|6573|7776)$/.test(n.j)?{animationIterationCount:1,aspectRatio: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,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale: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}:null},30041(e,t,n){"use strict";function r(e,t,n){var r="";return n.split(" ").forEach(function(n){void 0!==e[n]?t.push(e[n]+";"):n&&(r+=n+" ")}),r}n.d(t,{Rk:()=>r,SF:()=>a,sk:()=>i});var a=function(e,t,n){var r=e.key+"-"+t.name;!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles)},i=function(e,t,n){a(e,t,n);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var i=t;do{e.insert(t===i?"."+r:"",i,e.sheet,!0),i=i.next}while(void 0!==i)}}},34186(e,t,n){"use strict";n.d(t,{A:()=>o});var r=n(5573),a=n(74848);const i=3260==n.j?(0,a.jsx)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,a.jsx)(r.Path,{d:"M7.5 5.5h9V4h-9v1.5Zm-3.5 7h16V11H4v1.5Zm3.5 7h9V18h-9v1.5Z"})}):null,o=3260==n.j?i:null},52034(e,t,n){"use strict";n.d(t,{A:()=>o});var r=n(5573),a=n(74848);const i=3260==n.j?(0,a.jsx)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,a.jsx)(r.Path,{d:"M13 5.5H4V4h9v1.5Zm7 7H4V11h16v1.5Zm-7 7H4V18h9v1.5Z"})}):null,o=3260==n.j?i:null},357(e,t,n){"use strict";n.d(t,{A:()=>o});var r=n(5573),a=n(74848);const i=3260==n.j?(0,a.jsx)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,a.jsx)(r.Path,{d:"M11.111 5.5H20V4h-8.889v1.5ZM4 12.5h16V11H4v1.5Zm7.111 7H20V18h-8.889v1.5Z"})}):null,o=3260==n.j?i:null},63803(e,t,n){"use strict";if(n.d(t,{A:()=>a}),3260==n.j)var r=n(20998);const a=3260==n.j?r.A:null},20998(e,t,n){"use strict";n.d(t,{A:()=>o});var r=n(5573),a=n(74848);const i=3260==n.j?(0,a.jsx)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,a.jsx)(r.Path,{d:"m19 7-3-3-8.5 8.5-1 4 4-1L19 7Zm-7 11.5H5V20h7v-1.5Z"})}):null,o=3260==n.j?i:null},38088(e){"use strict";const t=(e,t,n)=>{const r=t<0?e.length+t:t;if(r>=0&&r<e.length){const r=n<0?e.length+n:n,[a]=e.splice(t,1);e.splice(r,0,a)}};e.exports=(e,n,r)=>(e=[...e],t(e,n,r),e),e.exports.mutate=t},14744(e){"use strict";var t=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||function(e){return e.$$typeof===n}(e)}(e)},n="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function r(e,t){return!1!==t.clone&&t.isMergeableObject(e)?s((n=e,Array.isArray(n)?[]:{}),e,t):e;var n}function a(e,t,n){return e.concat(t).map(function(e){return r(e,n)})}function i(e){return Object.keys(e).concat(function(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]}(e))}function o(e,t){try{return t in e}catch(e){return!1}}function s(e,n,l){(l=l||{}).arrayMerge=l.arrayMerge||a,l.isMergeableObject=l.isMergeableObject||t,l.cloneUnlessOtherwiseSpecified=r;var c=Array.isArray(n);return c===Array.isArray(e)?c?l.arrayMerge(e,n,l):function(e,t,n){var a={};return n.isMergeableObject(e)&&i(e).forEach(function(t){a[t]=r(e[t],n)}),i(t).forEach(function(i){(function(e,t){return o(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))})(e,i)||(o(e,i)&&n.isMergeableObject(t[i])?a[i]=function(e,t){if(!t.customMerge)return s;var n=t.customMerge(e);return"function"==typeof n?n:s}(i,n)(e[i],t[i],n):a[i]=r(t[i],n))}),a}(e,n,l):r(n,l)}s.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce(function(e,n){return s(e,n,t)},{})};var l=s;e.exports=l},45413(e,t){"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.Doctype=t.CDATA=t.Tag=t.Style=t.Script=t.Comment=t.Directive=t.Text=t.Root=t.isTag=t.ElementType=void 0,function(e){e.Root="root",e.Text="text",e.Directive="directive",e.Comment="comment",e.Script="script",e.Style="style",e.Tag="tag",e.CDATA="cdata",e.Doctype="doctype"}(n=t.ElementType||(t.ElementType={})),t.isTag=function(e){return e.type===n.Tag||e.type===n.Script||e.type===n.Style},t.Root=n.Root,t.Text=n.Text,t.Directive=n.Directive,t.Comment=n.Comment,t.Script=n.Script,t.Style=n.Style,t.Tag=n.Tag,t.CDATA=n.CDATA,t.Doctype=n.Doctype},41141(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),a=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.DomHandler=void 0;var i=n(45413),o=n(36957);a(n(36957),t);var s={withStartIndices:!1,withEndIndices:!1,xmlMode:!1},l=function(){function e(e,t,n){this.dom=[],this.root=new o.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null,"function"==typeof t&&(n=t,t=s),"object"==typeof e&&(t=e,e=void 0),this.callback=null!=e?e:null,this.options=null!=t?t:s,this.elementCB=null!=n?n:null}return e.prototype.onparserinit=function(e){this.parser=e},e.prototype.onreset=function(){this.dom=[],this.root=new o.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null},e.prototype.onend=function(){this.done||(this.done=!0,this.parser=null,this.handleCallback(null))},e.prototype.onerror=function(e){this.handleCallback(e)},e.prototype.onclosetag=function(){this.lastNode=null;var e=this.tagStack.pop();this.options.withEndIndices&&(e.endIndex=this.parser.endIndex),this.elementCB&&this.elementCB(e)},e.prototype.onopentag=function(e,t){var n=this.options.xmlMode?i.ElementType.Tag:void 0,r=new o.Element(e,t,void 0,n);this.addNode(r),this.tagStack.push(r)},e.prototype.ontext=function(e){var t=this.lastNode;if(t&&t.type===i.ElementType.Text)t.data+=e,this.options.withEndIndices&&(t.endIndex=this.parser.endIndex);else{var n=new o.Text(e);this.addNode(n),this.lastNode=n}},e.prototype.oncomment=function(e){if(this.lastNode&&this.lastNode.type===i.ElementType.Comment)this.lastNode.data+=e;else{var t=new o.Comment(e);this.addNode(t),this.lastNode=t}},e.prototype.oncommentend=function(){this.lastNode=null},e.prototype.oncdatastart=function(){var e=new o.Text(""),t=new o.CDATA([e]);this.addNode(t),e.parent=t,this.lastNode=e},e.prototype.oncdataend=function(){this.lastNode=null},e.prototype.onprocessinginstruction=function(e,t){var n=new o.ProcessingInstruction(e,t);this.addNode(n)},e.prototype.handleCallback=function(e){if("function"==typeof this.callback)this.callback(e,this.dom);else if(e)throw e},e.prototype.addNode=function(e){var t=this.tagStack[this.tagStack.length-1],n=t.children[t.children.length-1];this.options.withStartIndices&&(e.startIndex=this.parser.startIndex),this.options.withEndIndices&&(e.endIndex=this.parser.endIndex),t.children.push(e),n&&(e.prev=n,n.next=e),e.parent=t,this.lastNode=null},e}();t.DomHandler=l,t.default=l},36957(e,t,n){"use strict";var r,a=this&&this.__extends||(r=function(e,t){return r=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])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__assign||function(){return i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var a in t=arguments[n])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e},i.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.cloneNode=t.hasChildren=t.isDocument=t.isDirective=t.isComment=t.isText=t.isCDATA=t.isTag=t.Element=t.Document=t.CDATA=t.NodeWithChildren=t.ProcessingInstruction=t.Comment=t.Text=t.DataNode=t.Node=void 0;var o=n(45413),s=function(){function e(){this.parent=null,this.prev=null,this.next=null,this.startIndex=null,this.endIndex=null}return Object.defineProperty(e.prototype,"parentNode",{get:function(){return this.parent},set:function(e){this.parent=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"previousSibling",{get:function(){return this.prev},set:function(e){this.prev=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"nextSibling",{get:function(){return this.next},set:function(e){this.next=e},enumerable:!1,configurable:!0}),e.prototype.cloneNode=function(e){return void 0===e&&(e=!1),S(this,e)},e}();t.Node=s;var l=function(e){function t(t){var n=e.call(this)||this;return n.data=t,n}return a(t,e),Object.defineProperty(t.prototype,"nodeValue",{get:function(){return this.data},set:function(e){this.data=e},enumerable:!1,configurable:!0}),t}(s);t.DataNode=l;var c=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=o.ElementType.Text,t}return a(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 3},enumerable:!1,configurable:!0}),t}(l);t.Text=c;var u=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=o.ElementType.Comment,t}return a(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 8},enumerable:!1,configurable:!0}),t}(l);t.Comment=u;var f=function(e){function t(t,n){var r=e.call(this,n)||this;return r.name=t,r.type=o.ElementType.Directive,r}return a(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),t}(l);t.ProcessingInstruction=f;var h=function(e){function t(t){var n=e.call(this)||this;return n.children=t,n}return a(t,e),Object.defineProperty(t.prototype,"firstChild",{get:function(){var e;return null!==(e=this.children[0])&&void 0!==e?e:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"lastChild",{get:function(){return this.children.length>0?this.children[this.children.length-1]:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"childNodes",{get:function(){return this.children},set:function(e){this.children=e},enumerable:!1,configurable:!0}),t}(s);t.NodeWithChildren=h;var p=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=o.ElementType.CDATA,t}return a(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 4},enumerable:!1,configurable:!0}),t}(h);t.CDATA=p;var d=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=o.ElementType.Root,t}return a(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 9},enumerable:!1,configurable:!0}),t}(h);t.Document=d;var m=function(e){function t(t,n,r,a){void 0===r&&(r=[]),void 0===a&&(a="script"===t?o.ElementType.Script:"style"===t?o.ElementType.Style:o.ElementType.Tag);var i=e.call(this,r)||this;return i.name=t,i.attribs=n,i.type=a,i}return a(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"tagName",{get:function(){return this.name},set:function(e){this.name=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"attributes",{get:function(){var e=this;return Object.keys(this.attribs).map(function(t){var n,r;return{name:t,value:e.attribs[t],namespace:null===(n=e["x-attribsNamespace"])||void 0===n?void 0:n[t],prefix:null===(r=e["x-attribsPrefix"])||void 0===r?void 0:r[t]}})},enumerable:!1,configurable:!0}),t}(h);function g(e){return(0,o.isTag)(e)}function y(e){return e.type===o.ElementType.CDATA}function v(e){return e.type===o.ElementType.Text}function b(e){return e.type===o.ElementType.Comment}function _(e){return e.type===o.ElementType.Directive}function w(e){return e.type===o.ElementType.Root}function S(e,t){var n;if(void 0===t&&(t=!1),v(e))n=new c(e.data);else if(b(e))n=new u(e.data);else if(g(e)){var r=t?x(e.children):[],a=new m(e.name,i({},e.attribs),r);r.forEach(function(e){return e.parent=a}),null!=e.namespace&&(a.namespace=e.namespace),e["x-attribsNamespace"]&&(a["x-attribsNamespace"]=i({},e["x-attribsNamespace"])),e["x-attribsPrefix"]&&(a["x-attribsPrefix"]=i({},e["x-attribsPrefix"])),n=a}else if(y(e)){r=t?x(e.children):[];var o=new p(r);r.forEach(function(e){return e.parent=o}),n=o}else if(w(e)){r=t?x(e.children):[];var s=new d(r);r.forEach(function(e){return e.parent=s}),e["x-mode"]&&(s["x-mode"]=e["x-mode"]),n=s}else{if(!_(e))throw new Error("Not implemented yet: ".concat(e.type));var l=new f(e.name,e.data);null!=e["x-name"]&&(l["x-name"]=e["x-name"],l["x-publicId"]=e["x-publicId"],l["x-systemId"]=e["x-systemId"]),n=l}return n.startIndex=e.startIndex,n.endIndex=e.endIndex,null!=e.sourceCodeLocation&&(n.sourceCodeLocation=e.sourceCodeLocation),n}function x(e){for(var t=e.map(function(e){return S(e,!0)}),n=1;n<t.length;n++)t[n].prev=t[n-1],t[n-1].next=t[n];return t}t.Element=m,t.isTag=g,t.isCDATA=y,t.isText=v,t.isComment=b,t.isDirective=_,t.isDocument=w,t.hasChildren=function(e){return Object.prototype.hasOwnProperty.call(e,"children")},t.cloneNode=S},71040(e,t,n){var r=n(88404),a=n(22524).each;function i(e,t){this.query=e,this.isUnconditional=t,this.handlers=[],this.mql=window.matchMedia(e);var n=this;this.listener=function(e){n.mql=e.currentTarget||e,n.assess()},this.mql.addListener(this.listener)}i.prototype={constuctor:i,addHandler:function(e){var t=new r(e);this.handlers.push(t),this.matches()&&t.on()},removeHandler:function(e){var t=this.handlers;a(t,function(n,r){if(n.equals(e))return n.destroy(),!t.splice(r,1)})},matches:function(){return this.mql.matches||this.isUnconditional},clear:function(){a(this.handlers,function(e){e.destroy()}),this.mql.removeListener(this.listener),this.handlers.length=0},assess:function(){var e=this.matches()?"on":"off";a(this.handlers,function(t){t[e]()})}},e.exports=i},51098(e,t,n){var r=n(71040),a=n(22524),i=a.each,o=a.isFunction,s=a.isArray;function l(){if(!window.matchMedia)throw new Error("matchMedia not present, legacy browsers require a polyfill");this.queries={},this.browserIsIncapable=!window.matchMedia("only all").matches}l.prototype={constructor:l,register:function(e,t,n){var a=this.queries,l=n&&this.browserIsIncapable;return a[e]||(a[e]=new r(e,l)),o(t)&&(t={match:t}),s(t)||(t=[t]),i(t,function(t){o(t)&&(t={match:t}),a[e].addHandler(t)}),this},unregister:function(e,t){var n=this.queries[e];return n&&(t?n.removeHandler(t):(n.clear(),delete this.queries[e])),this}},e.exports=l},88404(e){function t(e){this.options=e,!e.deferSetup&&this.setup()}t.prototype={constructor:t,setup:function(){this.options.setup&&this.options.setup(),this.initialised=!0},on:function(){!this.initialised&&this.setup(),this.options.match&&this.options.match()},off:function(){this.options.unmatch&&this.options.unmatch()},destroy:function(){this.options.destroy?this.options.destroy():this.off()},equals:function(e){return this.options===e||this.options.match===e}},e.exports=t},22524(e){e.exports={isFunction:function(e){return"function"==typeof e},isArray:function(e){return"[object Array]"===Object.prototype.toString.apply(e)},each:function(e,t){for(var n=0,r=e.length;n<r&&!1!==t(e[n],n);n++);}}},22386(e,t,n){var r=n(51098);e.exports=new r},4146(e,t,n){"use strict";var r=n(73404),a={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},o={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function l(e){return r.isMemo(e)?o:s[e.$$typeof]||a}s[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[r.Memo]=o;var c=Object.defineProperty,u=Object.getOwnPropertyNames,f=Object.getOwnPropertySymbols,h=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,d=Object.prototype;e.exports=function e(t,n,r){if("string"!=typeof n){if(d){var a=p(n);a&&a!==d&&e(t,a,r)}var o=u(n);f&&(o=o.concat(f(n)));for(var s=l(t),m=l(n),g=0;g<o.length;++g){var y=o[g];if(!(i[y]||r&&r[y]||m&&m[y]||s&&s[y])){var v=h(n,y);try{c(t,y,v)}catch(e){}}}}return t}},3072(e,t){"use strict";var n="function"==typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,a=n?Symbol.for("react.portal"):60106,i=n?Symbol.for("react.fragment"):60107,o=n?Symbol.for("react.strict_mode"):60108,s=n?Symbol.for("react.profiler"):60114,l=n?Symbol.for("react.provider"):60109,c=n?Symbol.for("react.context"):60110,u=n?Symbol.for("react.async_mode"):60111,f=n?Symbol.for("react.concurrent_mode"):60111,h=n?Symbol.for("react.forward_ref"):60112,p=n?Symbol.for("react.suspense"):60113,d=n?Symbol.for("react.suspense_list"):60120,m=n?Symbol.for("react.memo"):60115,g=n?Symbol.for("react.lazy"):60116,y=n?Symbol.for("react.block"):60121,v=n?Symbol.for("react.fundamental"):60117,b=n?Symbol.for("react.responder"):60118,_=n?Symbol.for("react.scope"):60119;function w(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case u:case f:case i:case s:case o:case p:return e;default:switch(e=e&&e.$$typeof){case c:case h:case g:case m:case l:return e;default:return t}}case a:return t}}}function S(e){return w(e)===f}t.AsyncMode=u,t.ConcurrentMode=f,t.ContextConsumer=c,t.ContextProvider=l,t.Element=r,t.ForwardRef=h,t.Fragment=i,t.Lazy=g,t.Memo=m,t.Portal=a,t.Profiler=s,t.StrictMode=o,t.Suspense=p,t.isAsyncMode=function(e){return S(e)||w(e)===u},t.isConcurrentMode=S,t.isContextConsumer=function(e){return w(e)===c},t.isContextProvider=function(e){return w(e)===l},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return w(e)===h},t.isFragment=function(e){return w(e)===i},t.isLazy=function(e){return w(e)===g},t.isMemo=function(e){return w(e)===m},t.isPortal=function(e){return w(e)===a},t.isProfiler=function(e){return w(e)===s},t.isStrictMode=function(e){return w(e)===o},t.isSuspense=function(e){return w(e)===p},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===i||e===f||e===s||e===o||e===p||e===d||"object"==typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===m||e.$$typeof===l||e.$$typeof===c||e.$$typeof===h||e.$$typeof===v||e.$$typeof===b||e.$$typeof===_||e.$$typeof===y)},t.typeOf=w},73404(e,t,n){"use strict";e.exports=n(3072)},15270(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CARRIAGE_RETURN_PLACEHOLDER_REGEX=t.CARRIAGE_RETURN_PLACEHOLDER=t.CARRIAGE_RETURN_REGEX=t.CARRIAGE_RETURN=t.CASE_SENSITIVE_TAG_NAMES_MAP=t.CASE_SENSITIVE_TAG_NAMES=void 0,t.CASE_SENSITIVE_TAG_NAMES=["animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","linearGradient","radialGradient","textPath"],t.CASE_SENSITIVE_TAG_NAMES_MAP=t.CASE_SENSITIVE_TAG_NAMES.reduce(function(e,t){return e[t.toLowerCase()]=t,e},{}),t.CARRIAGE_RETURN="\r",t.CARRIAGE_RETURN_REGEX=new RegExp(t.CARRIAGE_RETURN,"g"),t.CARRIAGE_RETURN_PLACEHOLDER="__HTML_DOM_PARSER_CARRIAGE_RETURN_PLACEHOLDER_".concat(Date.now().toString(),"__"),t.CARRIAGE_RETURN_PLACEHOLDER_REGEX=new RegExp(t.CARRIAGE_RETURN_PLACEHOLDER,"g")},65496(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n,u,f,h,d;e=(0,r.escapeSpecialCharacters)(e);var g=s.exec(e),y=null===(t=null==g?void 0:g[1])||void 0===t?void 0:t.toLowerCase();switch(y){case a:var v=c(e);return(0,r.hasOpenTag)(e,i)||null===(n=null==(_=v.querySelector(i))?void 0:_.parentNode)||void 0===n||n.removeChild(_),(0,r.hasOpenTag)(e,o)||null===(u=null==(_=v.querySelector(o))?void 0:_.parentNode)||void 0===u||u.removeChild(_),v.querySelectorAll(a);case i:case o:var b=l(e).querySelectorAll(y);return(0,r.hasOpenTag)(e,o)&&(0,r.hasOpenTag)(e,i)?null!==(h=null===(f=b[0].parentNode)||void 0===f?void 0:f.childNodes)&&void 0!==h?h:m():b;default:return p?p(e):null!==(d=null==(_=l(e,o).querySelector(o))?void 0:_.childNodes)&&void 0!==d?d:m();var _}};var r=n(67731),a="html",i="head",o="body",s=/<([a-zA-Z]+[0-9]?)/,l=function(e,t){throw new Error("This browser does not support `document.implementation.createHTMLDocument`")},c=function(e,t){throw new Error("This browser does not support `DOMParser.prototype.parseFromString`")},u="object"==typeof window&&window.DOMParser;if("function"==typeof u){var f=new u;l=c=function(e,t){return t&&(e="<".concat(t,">").concat(e,"</").concat(t,">")),f.parseFromString(e,"text/html")}}if("object"==typeof document&&document.implementation){var h=document.implementation.createHTMLDocument();l=function(e,t){if(t){var n=h.documentElement.querySelector(t);return n&&(n.innerHTML=e),h}return h.documentElement.innerHTML=e,h}}var p,d="object"==typeof document&&document.createElement("template");d&&d.content&&(p=function(e){return d.innerHTML=e,d.content.childNodes});var m=function(){return document.createDocumentFragment().childNodes}},92471(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}),t.default=function(e){if("string"!=typeof e)throw new TypeError("First argument must be a string");if(!e)return[];var t=o.exec(e),n=t?t[1]:void 0;return(0,i.formatDOM)((0,a.default)(e),null,n)};var a=r(n(65496)),i=n(67731),o=/<(![a-zA-Z\s]+)>/},67731(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.formatAttributes=i,t.hasOpenTag=function(e,t){var n="<"+t,r=e.toLowerCase().indexOf(n);if(-1===r)return!1;var a=e[r+n.length];return">"===a||" "===a||"\t"===a||"\n"===a||"\r"===a||"/"===a},t.escapeSpecialCharacters=function(e){return e.replace(a.CARRIAGE_RETURN_REGEX,a.CARRIAGE_RETURN_PLACEHOLDER)},t.revertEscapedCharacters=s,t.formatDOM=function e(t,n,a){var l,c,u,f;void 0===n&&(n=null);for(var h,p=[],d=0,m=t.length;d<m;d++){var g=t[d];switch(g.nodeType){case 1:var y=o(g.nodeName);(h=new r.Element(y,i(g.attributes))).children=e("template"===y?g.content.childNodes:g.childNodes,h);break;case 3:h=new r.Text(s(null!==(l=g.nodeValue)&&void 0!==l?l:""));break;case 8:h=new r.Comment(null!==(c=g.nodeValue)&&void 0!==c?c:"");break;default:continue}var v=null!==(u=p[d-1])&&void 0!==u?u:null;v&&(v.next=h),h.parent=n,h.prev=v,h.next=null,p.push(h)}return a&&((h=new r.ProcessingInstruction(a.substring(0,a.indexOf(" ")).toLowerCase(),a)).next=null!==(f=p[0])&&void 0!==f?f:null,h.parent=n,p.unshift(h),p[1]&&(p[1].prev=p[0])),p};var r=n(41141),a=n(15270);function i(e){for(var t={},n=0,r=e.length;n<r;n++){var a=e[n];t[a.name]=a.value}return t}function o(e){return function(e){return a.CASE_SENSITIVE_TAG_NAMES_MAP[e]}(e=e.toLowerCase())||e}function s(e){return e.replace(a.CARRIAGE_RETURN_PLACEHOLDER_REGEX,a.CARRIAGE_RETURN)}},20840(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){void 0===e&&(e={});var n={},c=Boolean(e.type&&s[e.type]);for(var u in e){var f=e[u];if((0,r.isCustomAttribute)(u))n[u]=f;else{var h=u.toLowerCase(),p=l(h);if(p){var d=(0,r.getPropertyInfo)(p);switch(i.includes(p)&&o.includes(t)&&!c&&(p=l("default"+h)),n[p]=f,null==d?void 0:d.type){case r.BOOLEAN:n[p]=!0;break;case r.OVERLOADED_BOOLEAN:""===f&&(n[p]=!0)}}else a.PRESERVE_CUSTOM_ATTRIBUTES&&(n[u]=f)}}return(0,a.setStyleProp)(e.style,n),n};var r=n(14210),a=n(74958),i=["checked","value"],o=["input","select","textarea"],s={reset:!0,submit:!0};function l(e){return r.possibleStandardNames[e]}},10308(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}),t.default=function e(t,n){var r,a,c,u,f;void 0===n&&(n={});for(var h=[],p="function"==typeof n.replace,d=null!==(r=n.transform)&&void 0!==r?r:o.returnFirstArg,m=null!==(a=n.library)&&void 0!==a?a:s,g=m.cloneElement,y=m.createElement,v=m.isValidElement,b=t.length,_=0;_<b;_++){var w=t[_];if(p){var S=null===(c=n.replace)||void 0===c?void 0:c.call(n,w,_);if(v(S)){b>1&&(S=g(S,{key:null!==(u=S.key)&&void 0!==u?u:_})),h.push(d(S,w,_));continue}}if("text"!==w.type){var x=w,k={};l(x)?((0,o.setStyleProp)(x.attribs.style,x.attribs),k=x.attribs):x.attribs&&(k=(0,i.default)(x.attribs,x.name));var C=void 0;switch(w.type){case"script":case"style":w.children[0]&&(k.dangerouslySetInnerHTML={__html:w.children[0].data});break;case"tag":"textarea"===w.name&&w.children[0]?k.defaultValue=w.children[0].data:(null===(f=w.children)||void 0===f?void 0:f.length)&&(C=e(w.children,n));break;default:continue}b>1&&(k.key=_),h.push(d(y(w.name,k,C),w,_))}else{var E=!w.data.trim().length;if(E&&w.parent&&!(0,o.canTextBeChildOfNode)(w.parent))continue;if(n.trim&&E)continue;h.push(d(w.data,w,_))}}return 1===h.length?h[0]:h};var a=n(51609),i=r(n(20840)),o=n(74958),s={cloneElement:a.cloneElement,createElement:a.createElement,isValidElement:a.isValidElement};function l(e){return o.PRESERVE_CUSTOM_ATTRIBUTES&&"tag"===e.type&&(0,o.isCustomComponent)(e.name,e.attribs)}},50442(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}),t.htmlToDOM=t.domToReact=t.attributesToProps=t.Text=t.ProcessingInstruction=t.Element=t.Comment=void 0,t.default=function(e,t){var n;if("string"!=typeof e)throw new TypeError("First argument must be a string");return e?(0,o.default)((0,a.default)(e,null!==(n=null==t?void 0:t.htmlparser2)&&void 0!==n?n:l),t):[]};var a=r(n(92471));t.htmlToDOM=a.default;var i=r(n(20840));t.attributesToProps=i.default;var o=r(n(10308));t.domToReact=o.default;var s=n(41141);Object.defineProperty(t,"Comment",{enumerable:!0,get:function(){return s.Comment}}),Object.defineProperty(t,"Element",{enumerable:!0,get:function(){return s.Element}}),Object.defineProperty(t,"ProcessingInstruction",{enumerable:!0,get:function(){return s.ProcessingInstruction}}),Object.defineProperty(t,"Text",{enumerable:!0,get:function(){return s.Text}});var l={lowerCaseAttributeNames:!1}},74958(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}),t.returnFirstArg=t.canTextBeChildOfNode=t.ELEMENTS_WITH_NO_TEXT_CHILDREN=t.PRESERVE_CUSTOM_ATTRIBUTES=void 0,t.isCustomComponent=function(e,t){return e.includes("-")?!o.has(e):Boolean(t&&"string"==typeof t.is)},t.setStyleProp=function(e,t){if("string"==typeof e)if(e.trim())try{t.style=(0,i.default)(e,s)}catch(e){t.style={}}else t.style={}};var a=n(51609),i=r(n(35229)),o=new Set(["annotation-xml","color-profile","font-face","font-face-src","font-face-uri","font-face-format","font-face-name","missing-glyph"]),s={reactCompat:!0};t.PRESERVE_CUSTOM_ATTRIBUTES=Number(a.version.split(".")[0])>=16,t.ELEMENTS_WITH_NO_TEXT_CHILDREN=new Set(["tr","tbody","thead","tfoot","colgroup","table","head","html","frameset"]),t.canTextBeChildOfNode=function(e){return!t.ELEMENTS_WITH_NO_TEXT_CHILDREN.has(e.name)},t.returnFirstArg=function(e){return e}},5077(e){"use strict";var t=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,n=/\n/g,r=/^\s*/,a=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,i=/^:\s*/,o=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,s=/^[;\s]*/,l=/^\s+|\s+$/g,c="";function u(e){return e?e.replace(l,c):c}e.exports=function(e,l){if("string"!=typeof e)throw new TypeError("First argument must be a string");if(!e)return[];l=l||{};var f=1,h=1;function p(e){var t=e.match(n);t&&(f+=t.length);var r=e.lastIndexOf("\n");h=~r?e.length-r:h+e.length}function d(){var e={line:f,column:h};return function(t){return t.position=new m(e),v(),t}}function m(e){this.start=e,this.end={line:f,column:h},this.source=l.source}function g(t){var n=new Error(l.source+":"+f+":"+h+": "+t);if(n.reason=t,n.filename=l.source,n.line=f,n.column=h,n.source=e,!l.silent)throw n}function y(t){var n=t.exec(e);if(n){var r=n[0];return p(r),e=e.slice(r.length),n}}function v(){y(r)}function b(e){var t;for(e=e||[];t=_();)!1!==t&&e.push(t);return e}function _(){var t=d();if("/"==e.charAt(0)&&"*"==e.charAt(1)){for(var n=2;c!=e.charAt(n)&&("*"!=e.charAt(n)||"/"!=e.charAt(n+1));)++n;if(n+=2,c===e.charAt(n-1))return g("End of comment missing");var r=e.slice(2,n-2);return h+=2,p(r),e=e.slice(n),h+=2,t({type:"comment",comment:r})}}function w(){var e=d(),n=y(a);if(n){if(_(),!y(i))return g("property missing ':'");var r=y(o),l=e({type:"declaration",property:u(n[0].replace(t,c)),value:r?u(r[0].replace(t,c)):c});return y(s),l}}return m.prototype.content=e,v(),function(){var e,t=[];for(b(t);e=w();)!1!==e&&(t.push(e),b(t));return t}()}},20311(e){"use strict";e.exports=function(e,t,n,r,a,i,o,s){if(!e){var l;if(void 0===t)l=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[n,r,a,i,o,s],u=0;(l=new Error(t.replace(/%s/g,function(){return c[u++]}))).name="Invariant Violation"}throw l.framesToPop=1,l}}},11441(e,t,n){var r=n(28028),a=function(e){var t="",n=Object.keys(e);return n.forEach(function(a,i){var o=e[a];(function(e){return/[height|width]$/.test(e)})(a=r(a))&&"number"==typeof o&&(o+="px"),t+=!0===o?a:!1===o?"not "+a:"("+a+": "+o+")",i<n.length-1&&(t+=" and ")}),t};e.exports=function(e){var t="";return"string"==typeof e?e:e instanceof Array?(e.forEach(function(n,r){t+=a(n),r<e.length-1&&(t+=", ")}),t):a(e)}},6147(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(new Error("Failed to load "+this.src),e)}}function n(e,t){e.onreadystatechange=function(){"complete"!=this.readyState&&"loaded"!=this.readyState||(this.onreadystatechange=null,t(null,e))}}e.exports=function(e,r,a){var i=document.head||document.getElementsByTagName("head")[0],o=document.createElement("script");"function"==typeof r&&(a=r,r={}),r=r||{},a=a||function(){},o.type=r.type||"text/javascript",o.charset=r.charset||"utf8",o.async=!("async"in r)||!!r.async,o.src=e,r.attrs&&function(e,t){for(var n in t)e.setAttribute(n,t[n])}(o,r.attrs),r.text&&(o.text=""+r.text),("onload"in o?t:n)(o,a),o.onload||t(o,a),i.appendChild(o)}},20181(e){var t=/^\s+|\s+$/g,n=/^[-+]0x[0-9a-f]+$/i,r=/^0b[01]+$/i,a=/^0o[0-7]+$/i,i=parseInt,o="object"==typeof globalThis&&globalThis&&globalThis.Object===Object&&globalThis,s="object"==typeof self&&self&&self.Object===Object&&self,l=o||s||Function("return this")(),c=Object.prototype.toString,u=Math.max,f=Math.min,h=function(){return l.Date.now()};function p(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function d(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Symbol]"==c.call(e)}(e))return NaN;if(p(e)){var o="function"==typeof e.valueOf?e.valueOf():e;e=p(o)?o+"":o}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(t,"");var s=r.test(e);return s||a.test(e)?i(e.slice(2),s?2:8):n.test(e)?NaN:+e}e.exports=function(e,t,n){var r,a,i,o,s,l,c=0,m=!1,g=!1,y=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function v(t){var n=r,i=a;return r=a=void 0,c=t,o=e.apply(i,n)}function b(e){var n=e-l;return void 0===l||n>=t||n<0||g&&e-c>=i}function _(){var e=h();if(b(e))return w(e);s=setTimeout(_,function(e){var n=t-(e-l);return g?f(n,i-(e-c)):n}(e))}function w(e){return s=void 0,y&&r?v(e):(r=a=void 0,o)}function S(){var e=h(),n=b(e);if(r=arguments,a=this,l=e,n){if(void 0===s)return function(e){return c=e,s=setTimeout(_,t),m?v(e):o}(l);if(g)return s=setTimeout(_,t),v(l)}return void 0===s&&(s=setTimeout(_,t)),o}return t=d(t)||0,p(n)&&(m=!!n.leading,i=(g="maxWait"in n)?u(d(n.maxWait)||0,t):i,y="trailing"in n?!!n.trailing:y),S.cancel=function(){void 0!==s&&clearTimeout(s),c=0,r=l=a=s=void 0},S.flush=function(){return void 0===s?o:w(h())},S}},55580(e,t,n){var r=n(56110)(n(9325),"DataView");e.exports=r},21549(e,t,n){var r=n(22032),a=n(63862),i=n(66721),o=n(12749),s=n(35749);function l(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])}}l.prototype.clear=r,l.prototype.delete=a,l.prototype.get=i,l.prototype.has=o,l.prototype.set=s,e.exports=l},80079(e,t,n){var r=n(63702),a=n(70080),i=n(24739),o=n(48655),s=n(31175);function l(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])}}l.prototype.clear=r,l.prototype.delete=a,l.prototype.get=i,l.prototype.has=o,l.prototype.set=s,e.exports=l},68223(e,t,n){var r=n(56110)(n(9325),"Map");e.exports=r},53661(e,t,n){var r=n(63040),a=n(17670),i=n(90289),o=n(4509),s=n(72949);function l(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])}}l.prototype.clear=r,l.prototype.delete=a,l.prototype.get=i,l.prototype.has=o,l.prototype.set=s,e.exports=l},32804(e,t,n){var r=n(56110)(n(9325),"Promise");e.exports=r},76545(e,t,n){var r=n(56110)(n(9325),"Set");e.exports=r},38859(e,t,n){var r=n(53661),a=n(31380),i=n(51459);function o(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new r;++t<n;)this.add(e[t])}o.prototype.add=o.prototype.push=a,o.prototype.has=i,e.exports=o},37217(e,t,n){var r=n(80079),a=n(51420),i=n(90938),o=n(63605),s=n(29817),l=n(80945);function c(e){var t=this.__data__=new r(e);this.size=t.size}c.prototype.clear=a,c.prototype.delete=i,c.prototype.get=o,c.prototype.has=s,c.prototype.set=l,e.exports=c},51873(e,t,n){var r=n(9325).Symbol;e.exports=r},37828(e,t,n){var r=n(9325).Uint8Array;e.exports=r},28303(e,t,n){var r=n(56110)(n(9325),"WeakMap");e.exports=r},79770(e){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,a=0,i=[];++n<r;){var o=e[n];t(o,n,e)&&(i[a++]=o)}return i}},70695(e,t,n){var r=n(78096),a=n(72428),i=n(56449),o=n(3656),s=n(30361),l=n(37167),c=Object.prototype.hasOwnProperty;e.exports=function(e,t){var n=i(e),u=!n&&a(e),f=!n&&!u&&o(e),h=!n&&!u&&!f&&l(e),p=n||u||f||h,d=p?r(e.length,String):[],m=d.length;for(var g in e)!t&&!c.call(e,g)||p&&("length"==g||f&&("offset"==g||"parent"==g)||h&&("buffer"==g||"byteLength"==g||"byteOffset"==g)||s(g,m))||d.push(g);return d}},14528(e){e.exports=function(e,t){for(var n=-1,r=t.length,a=e.length;++n<r;)e[a+n]=t[n];return e}},14248(e){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}},26025(e,t,n){var r=n(75288);e.exports=function(e,t){for(var n=e.length;n--;)if(r(e[n][0],t))return n;return-1}},82199(e,t,n){var r=n(14528),a=n(56449);e.exports=function(e,t,n){var i=t(e);return a(e)?i:r(i,n(e))}},72552(e,t,n){var r=n(51873),a=n(659),i=n(59350),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)?a(e):i(e)}},27534(e,t,n){var r=n(72552),a=n(40346);e.exports=function(e){return a(e)&&"[object Arguments]"==r(e)}},60270(e,t,n){var r=n(87068),a=n(40346);e.exports=function e(t,n,i,o,s){return t===n||(null==t||null==n||!a(t)&&!a(n)?t!=t&&n!=n:r(t,n,i,o,e,s))}},87068(e,t,n){var r=n(37217),a=n(25911),i=n(21986),o=n(50689),s=n(5861),l=n(56449),c=n(3656),u=n(37167),f="[object Arguments]",h="[object Array]",p="[object Object]",d=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,m,g,y){var v=l(e),b=l(t),_=v?h:s(e),w=b?h:s(t),S=(_=_==f?p:_)==p,x=(w=w==f?p:w)==p,k=_==w;if(k&&c(e)){if(!c(t))return!1;v=!0,S=!1}if(k&&!S)return y||(y=new r),v||u(e)?a(e,t,n,m,g,y):i(e,t,_,n,m,g,y);if(!(1&n)){var C=S&&d.call(e,"__wrapped__"),E=x&&d.call(t,"__wrapped__");if(C||E){var P=C?e.value():e,A=E?t.value():t;return y||(y=new r),g(P,A,n,m,y)}}return!!k&&(y||(y=new r),o(e,t,n,m,g,y))}},45083(e,t,n){var r=n(1882),a=n(87296),i=n(23805),o=n(47473),s=/^\[object .+?Constructor\]$/,l=Function.prototype,c=Object.prototype,u=l.toString,f=c.hasOwnProperty,h=RegExp("^"+u.call(f).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!i(e)||a(e))&&(r(e)?h:s).test(o(e))}},4901(e,t,n){var r=n(72552),a=n(30294),i=n(40346),o={};o["[object Float32Array]"]=o["[object Float64Array]"]=o["[object Int8Array]"]=o["[object Int16Array]"]=o["[object Int32Array]"]=o["[object Uint8Array]"]=o["[object Uint8ClampedArray]"]=o["[object Uint16Array]"]=o["[object Uint32Array]"]=!0,o["[object Arguments]"]=o["[object Array]"]=o["[object ArrayBuffer]"]=o["[object Boolean]"]=o["[object DataView]"]=o["[object Date]"]=o["[object Error]"]=o["[object Function]"]=o["[object Map]"]=o["[object Number]"]=o["[object Object]"]=o["[object RegExp]"]=o["[object Set]"]=o["[object String]"]=o["[object WeakMap]"]=!1,e.exports=function(e){return i(e)&&a(e.length)&&!!o[r(e)]}},88984(e,t,n){var r=n(55527),a=n(3650),i=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return a(e);var t=[];for(var n in Object(e))i.call(e,n)&&"constructor"!=n&&t.push(n);return t}},78096(e){e.exports=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}},27301(e){e.exports=function(e){return function(t){return e(t)}}},19219(e){e.exports=function(e,t){return e.has(t)}},55481(e,t,n){var r=n(9325)["__core-js_shared__"];e.exports=r},25911(e,t,n){var r=n(38859),a=n(14248),i=n(19219);e.exports=function(e,t,n,o,s,l){var c=1&n,u=e.length,f=t.length;if(u!=f&&!(c&&f>u))return!1;var h=l.get(e),p=l.get(t);if(h&&p)return h==t&&p==e;var d=-1,m=!0,g=2&n?new r:void 0;for(l.set(e,t),l.set(t,e);++d<u;){var y=e[d],v=t[d];if(o)var b=c?o(v,y,d,t,e,l):o(y,v,d,e,t,l);if(void 0!==b){if(b)continue;m=!1;break}if(g){if(!a(t,function(e,t){if(!i(g,t)&&(y===e||s(y,e,n,o,l)))return g.push(t)})){m=!1;break}}else if(y!==v&&!s(y,v,n,o,l)){m=!1;break}}return l.delete(e),l.delete(t),m}},21986(e,t,n){var r=n(51873),a=n(37828),i=n(75288),o=n(25911),s=n(20317),l=n(84247),c=r?r.prototype:void 0,u=c?c.valueOf:void 0;e.exports=function(e,t,n,r,c,f,h){switch(n){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!f(new a(e),new a(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return i(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var p=s;case"[object Set]":var d=1&r;if(p||(p=l),e.size!=t.size&&!d)return!1;var m=h.get(e);if(m)return m==t;r|=2,h.set(e,t);var g=o(p(e),p(t),r,c,f,h);return h.delete(e),g;case"[object Symbol]":if(u)return u.call(e)==u.call(t)}return!1}},50689(e,t,n){var r=n(50002),a=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,i,o,s){var l=1&n,c=r(e),u=c.length;if(u!=r(t).length&&!l)return!1;for(var f=u;f--;){var h=c[f];if(!(l?h in t:a.call(t,h)))return!1}var p=s.get(e),d=s.get(t);if(p&&d)return p==t&&d==e;var m=!0;s.set(e,t),s.set(t,e);for(var g=l;++f<u;){var y=e[h=c[f]],v=t[h];if(i)var b=l?i(v,y,h,t,e,s):i(y,v,h,e,t,s);if(!(void 0===b?y===v||o(y,v,n,i,s):b)){m=!1;break}g||(g="constructor"==h)}if(m&&!g){var _=e.constructor,w=t.constructor;_==w||!("constructor"in e)||!("constructor"in t)||"function"==typeof _&&_ instanceof _&&"function"==typeof w&&w instanceof w||(m=!1)}return s.delete(e),s.delete(t),m}},34840(e){var t="object"==typeof globalThis&&globalThis&&globalThis.Object===Object&&globalThis;e.exports=t},50002(e,t,n){var r=n(82199),a=n(4664),i=n(95950);e.exports=function(e){return r(e,i,a)}},12651(e,t,n){var r=n(74218);e.exports=function(e,t){var n=e.__data__;return r(t)?n["string"==typeof t?"string":"hash"]:n.map}},56110(e,t,n){var r=n(45083),a=n(10392);e.exports=function(e,t){var n=a(e,t);return r(n)?n:void 0}},659(e,t,n){var r=n(51873),a=Object.prototype,i=a.hasOwnProperty,o=a.toString,s=r?r.toStringTag:void 0;e.exports=function(e){var t=i.call(e,s),n=e[s];try{e[s]=void 0;var r=!0}catch(e){}var a=o.call(e);return r&&(t?e[s]=n:delete e[s]),a}},4664(e,t,n){var r=n(79770),a=n(63345),i=Object.prototype.propertyIsEnumerable,o=Object.getOwnPropertySymbols,s=o?function(e){return null==e?[]:(e=Object(e),r(o(e),function(t){return i.call(e,t)}))}:a;e.exports=s},5861(e,t,n){var r=n(55580),a=n(68223),i=n(32804),o=n(76545),s=n(28303),l=n(72552),c=n(47473),u="[object Map]",f="[object Promise]",h="[object Set]",p="[object WeakMap]",d="[object DataView]",m=c(r),g=c(a),y=c(i),v=c(o),b=c(s),_=l;(r&&_(new r(new ArrayBuffer(1)))!=d||a&&_(new a)!=u||i&&_(i.resolve())!=f||o&&_(new o)!=h||s&&_(new s)!=p)&&(_=function(e){var t=l(e),n="[object Object]"==t?e.constructor:void 0,r=n?c(n):"";if(r)switch(r){case m:return d;case g:return u;case y:return f;case v:return h;case b:return p}return t}),e.exports=_},10392(e){e.exports=function(e,t){return null==e?void 0:e[t]}},22032(e,t,n){var r=n(81042);e.exports=function(){this.__data__=r?r(null):{},this.size=0}},63862(e){e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},66721(e,t,n){var r=n(81042),a=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(r){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return a.call(t,e)?t[e]:void 0}},12749(e,t,n){var r=n(81042),a=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return r?void 0!==t[e]:a.call(t,e)}},35749(e,t,n){var r=n(81042);e.exports=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=r&&void 0===t?"__lodash_hash_undefined__":t,this}},30361(e){var t=/^(?:0|[1-9]\d*)$/;e.exports=function(e,n){var r=typeof e;return!!(n=n??9007199254740991)&&("number"==r||"symbol"!=r&&t.test(e))&&e>-1&&e%1==0&&e<n}},74218(e){e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},87296(e,t,n){var r,a=n(55481),i=(r=/[^.]+$/.exec(a&&a.keys&&a.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"";e.exports=function(e){return!!i&&i in e}},55527(e){var t=Object.prototype;e.exports=function(e){var n=e&&e.constructor;return e===("function"==typeof n&&n.prototype||t)}},63702(e){e.exports=function(){this.__data__=[],this.size=0}},70080(e,t,n){var r=n(26025),a=Array.prototype.splice;e.exports=function(e){var t=this.__data__,n=r(t,e);return!(n<0||(n==t.length-1?t.pop():a.call(t,n,1),--this.size,0))}},24739(e,t,n){var r=n(26025);e.exports=function(e){var t=this.__data__,n=r(t,e);return n<0?void 0:t[n][1]}},48655(e,t,n){var r=n(26025);e.exports=function(e){return r(this.__data__,e)>-1}},31175(e,t,n){var r=n(26025);e.exports=function(e,t){var n=this.__data__,a=r(n,e);return a<0?(++this.size,n.push([e,t])):n[a][1]=t,this}},63040(e,t,n){var r=n(21549),a=n(80079),i=n(68223);e.exports=function(){this.size=0,this.__data__={hash:new r,map:new(i||a),string:new r}}},17670(e,t,n){var r=n(12651);e.exports=function(e){var t=r(this,e).delete(e);return this.size-=t?1:0,t}},90289(e,t,n){var r=n(12651);e.exports=function(e){return r(this,e).get(e)}},4509(e,t,n){var r=n(12651);e.exports=function(e){return r(this,e).has(e)}},72949(e,t,n){var r=n(12651);e.exports=function(e,t){var n=r(this,e),a=n.size;return n.set(e,t),this.size+=n.size==a?0:1,this}},20317(e){e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}},81042(e,t,n){var r=n(56110)(Object,"create");e.exports=r},3650(e,t,n){var r=n(74335)(Object.keys,Object);e.exports=r},86009(e,t,n){e=n.nmd(e);var r=n(34840),a=t&&!t.nodeType&&t,i=a&&e&&!e.nodeType&&e,o=i&&i.exports===a&&r.process,s=function(){try{return i&&i.require&&i.require("util").types||o&&o.binding&&o.binding("util")}catch(e){}}();e.exports=s},59350(e){var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},74335(e){e.exports=function(e,t){return function(n){return e(t(n))}}},9325(e,t,n){var r=n(34840),a="object"==typeof self&&self&&self.Object===Object&&self,i=r||a||Function("return this")();e.exports=i},31380(e){e.exports=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}},51459(e){e.exports=function(e){return this.__data__.has(e)}},84247(e){e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}},51420(e,t,n){var r=n(80079);e.exports=function(){this.__data__=new r,this.size=0}},90938(e){e.exports=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}},63605(e){e.exports=function(e){return this.__data__.get(e)}},29817(e){e.exports=function(e){return this.__data__.has(e)}},80945(e,t,n){var r=n(80079),a=n(68223),i=n(53661);e.exports=function(e,t){var n=this.__data__;if(n instanceof r){var o=n.__data__;if(!a||o.length<199)return o.push([e,t]),this.size=++n.size,this;n=this.__data__=new i(o)}return n.set(e,t),this.size=n.size,this}},47473(e){var t=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return t.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},75288(e){e.exports=function(e,t){return e===t||e!=e&&t!=t}},72428(e,t,n){var r=n(27534),a=n(40346),i=Object.prototype,o=i.hasOwnProperty,s=i.propertyIsEnumerable,l=r(function(){return arguments}())?r:function(e){return a(e)&&o.call(e,"callee")&&!s.call(e,"callee")};e.exports=l},56449(e){var t=Array.isArray;e.exports=t},64894(e,t,n){var r=n(1882),a=n(30294);e.exports=function(e){return null!=e&&a(e.length)&&!r(e)}},3656(e,t,n){e=n.nmd(e);var r=n(9325),a=n(89935),i=t&&!t.nodeType&&t,o=i&&e&&!e.nodeType&&e,s=o&&o.exports===i?r.Buffer:void 0,l=(s?s.isBuffer:void 0)||a;e.exports=l},2404(e,t,n){var r=n(60270);e.exports=function(e,t){return r(e,t)}},1882(e,t,n){var r=n(72552),a=n(23805);e.exports=function(e){if(!a(e))return!1;var t=r(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},30294(e){e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},23805(e){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},40346(e){e.exports=function(e){return null!=e&&"object"==typeof e}},37167(e,t,n){var r=n(4901),a=n(27301),i=n(86009),o=i&&i.isTypedArray,s=o?a(o):r;e.exports=s},95950(e,t,n){var r=n(70695),a=n(88984),i=n(64894);e.exports=function(e){return i(e)?r(e):a(e)}},63345(e){e.exports=function(){return[]}},89935(e){e.exports=function(){return!1}},49891(module,exports,__webpack_require__){var factory;"undefined"!=typeof document&&"undefined"!=typeof navigator&&(factory=function(){"use strict";var svgNS="http://www.w3.org/2000/svg",locationHref="",_useWebWorker=!1,initialDefaultFrame=-999999,setWebWorker=function(e){_useWebWorker=!!e},getWebWorker=function(){return _useWebWorker},setLocationHref=function(e){locationHref=e},getLocationHref=function(){return locationHref};function createTag(e){return document.createElement(e)}function extendPrototype(e,t){var n,r,a=e.length;for(n=0;n<a;n+=1)for(var i in r=e[n].prototype)Object.prototype.hasOwnProperty.call(r,i)&&(t.prototype[i]=r[i])}function getDescriptor(e,t){return Object.getOwnPropertyDescriptor(e,t)}function createProxyFunction(e){function t(){}return t.prototype=e,t}var audioControllerFactory=function(){function e(e){this.audios=[],this.audioFactory=e,this._volume=1,this._isMuted=!1}return e.prototype={addAudio:function(e){this.audios.push(e)},pause:function(){var e,t=this.audios.length;for(e=0;e<t;e+=1)this.audios[e].pause()},resume:function(){var e,t=this.audios.length;for(e=0;e<t;e+=1)this.audios[e].resume()},setRate:function(e){var t,n=this.audios.length;for(t=0;t<n;t+=1)this.audios[t].setRate(e)},createAudio:function(e){return this.audioFactory?this.audioFactory(e):window.Howl?new window.Howl({src:[e]}):{isPlaying:!1,play:function(){this.isPlaying=!0},seek:function(){this.isPlaying=!1},playing:function(){},rate:function(){},setVolume:function(){}}},setAudioFactory:function(e){this.audioFactory=e},setVolume:function(e){this._volume=e,this._updateVolume()},mute:function(){this._isMuted=!0,this._updateVolume()},unmute:function(){this._isMuted=!1,this._updateVolume()},getVolume:function(){return this._volume},_updateVolume:function(){var e,t=this.audios.length;for(e=0;e<t;e+=1)this.audios[e].volume(this._volume*(this._isMuted?0:1))}},function(){return new e}}(),createTypedArray=function(){function e(e,t){var n,r=0,a=[];switch(e){case"int16":case"uint8c":n=1;break;default:n=1.1}for(r=0;r<t;r+=1)a.push(n);return a}return"function"==typeof Uint8ClampedArray&&"function"==typeof Float32Array?function(t,n){return"float32"===t?new Float32Array(n):"int16"===t?new Int16Array(n):"uint8c"===t?new Uint8ClampedArray(n):e(t,n)}:e}();function createSizedArray(e){return Array.apply(null,{length:e})}function _typeof$6(e){return _typeof$6="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},_typeof$6(e)}var subframeEnabled=!0,expressionsPlugin=null,expressionsInterfaces=null,idPrefix$1="",isSafari=/^((?!chrome|android).)*safari/i.test(navigator.userAgent),_shouldRoundValues=!1,bmPow=Math.pow,bmSqrt=Math.sqrt,bmFloor=Math.floor,bmMax=Math.max,bmMin=Math.min,BMMath={};function ProjectInterface$1(){return{}}!function(){var e,t=["abs","acos","acosh","asin","asinh","atan","atanh","atan2","ceil","cbrt","expm1","clz32","cos","cosh","exp","floor","fround","hypot","imul","log","log1p","log2","log10","max","min","pow","random","round","sign","sin","sinh","sqrt","tan","tanh","trunc","E","LN10","LN2","LOG10E","LOG2E","PI","SQRT1_2","SQRT2"],n=t.length;for(e=0;e<n;e+=1)BMMath[t[e]]=Math[t[e]]}(),BMMath.random=Math.random,BMMath.abs=function(e){if("object"===_typeof$6(e)&&e.length){var t,n=createSizedArray(e.length),r=e.length;for(t=0;t<r;t+=1)n[t]=Math.abs(e[t]);return n}return Math.abs(e)};var defaultCurveSegments=150,degToRads=Math.PI/180,roundCorner=.5519;function roundValues(e){_shouldRoundValues=!!e}function bmRnd(e){return _shouldRoundValues?Math.round(e):e}function styleDiv(e){e.style.position="absolute",e.style.top=0,e.style.left=0,e.style.display="block",e.style.transformOrigin="0 0",e.style.webkitTransformOrigin="0 0",e.style.backfaceVisibility="visible",e.style.webkitBackfaceVisibility="visible",e.style.transformStyle="preserve-3d",e.style.webkitTransformStyle="preserve-3d",e.style.mozTransformStyle="preserve-3d"}function BMEnterFrameEvent(e,t,n,r){this.type=e,this.currentTime=t,this.totalTime=n,this.direction=r<0?-1:1}function BMCompleteEvent(e,t){this.type=e,this.direction=t<0?-1:1}function BMCompleteLoopEvent(e,t,n,r){this.type=e,this.currentLoop=n,this.totalLoops=t,this.direction=r<0?-1:1}function BMSegmentStartEvent(e,t,n){this.type=e,this.firstFrame=t,this.totalFrames=n}function BMDestroyEvent(e,t){this.type=e,this.target=t}function BMRenderFrameErrorEvent(e,t){this.type="renderFrameError",this.nativeError=e,this.currentTime=t}function BMConfigErrorEvent(e){this.type="configError",this.nativeError=e}function BMAnimationConfigErrorEvent(e,t){this.type=e,this.nativeError=t}var createElementID=(_count=0,function(){return idPrefix$1+"__lottie_element_"+(_count+=1)}),_count;function HSVtoRGB(e,t,n){var r,a,i,o,s,l,c,u;switch(l=n*(1-t),c=n*(1-(s=6*e-(o=Math.floor(6*e)))*t),u=n*(1-(1-s)*t),o%6){case 0:r=n,a=u,i=l;break;case 1:r=c,a=n,i=l;break;case 2:r=l,a=n,i=u;break;case 3:r=l,a=c,i=n;break;case 4:r=u,a=l,i=n;break;case 5:r=n,a=l,i=c}return[r,a,i]}function RGBtoHSV(e,t,n){var r,a=Math.max(e,t,n),i=Math.min(e,t,n),o=a-i,s=0===a?0:o/a,l=a/255;switch(a){case i:r=0;break;case e:r=t-n+o*(t<n?6:0),r/=6*o;break;case t:r=n-e+2*o,r/=6*o;break;case n:r=e-t+4*o,r/=6*o}return[r,s,l]}function addSaturationToRGB(e,t){var n=RGBtoHSV(255*e[0],255*e[1],255*e[2]);return n[1]+=t,n[1]>1?n[1]=1:n[1]<=0&&(n[1]=0),HSVtoRGB(n[0],n[1],n[2])}function addBrightnessToRGB(e,t){var n=RGBtoHSV(255*e[0],255*e[1],255*e[2]);return n[2]+=t,n[2]>1?n[2]=1:n[2]<0&&(n[2]=0),HSVtoRGB(n[0],n[1],n[2])}function addHueToRGB(e,t){var n=RGBtoHSV(255*e[0],255*e[1],255*e[2]);return n[0]+=t/360,n[0]>1?n[0]-=1:n[0]<0&&(n[0]+=1),HSVtoRGB(n[0],n[1],n[2])}var rgbToHex=function(){var e,t,n=[];for(e=0;e<256;e+=1)t=e.toString(16),n[e]=1===t.length?"0"+t:t;return function(e,t,r){return e<0&&(e=0),t<0&&(t=0),r<0&&(r=0),"#"+n[e]+n[t]+n[r]}}(),setSubframeEnabled=function(e){subframeEnabled=!!e},getSubframeEnabled=function(){return subframeEnabled},setExpressionsPlugin=function(e){expressionsPlugin=e},getExpressionsPlugin=function(){return expressionsPlugin},setExpressionInterfaces=function(e){expressionsInterfaces=e},getExpressionInterfaces=function(){return expressionsInterfaces},setDefaultCurveSegments=function(e){defaultCurveSegments=e},getDefaultCurveSegments=function(){return defaultCurveSegments},setIdPrefix=function(e){idPrefix$1=e},getIdPrefix=function(){return idPrefix$1};function createNS(e){return document.createElementNS(svgNS,e)}function _typeof$5(e){return _typeof$5="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},_typeof$5(e)}var dataManager=function(){var e,t,n=1,r=[],a={onmessage:function(){},postMessage:function(t){e({data:t})}},i={postMessage:function(e){a.onmessage({data:e})}};function o(){t||(t=function(t){if(window.Worker&&window.Blob&&getWebWorker()){var n=new Blob(["var _workerSelf=self; self.onmessage=",t.toString()],{type:"text/javascript"}),r=URL.createObjectURL(n);return new Worker(r)}return e=t,a}(function(e){if(i.dataManager||(i.dataManager=function(){function e(a,i){var o,s,l,c,u,h,p=a.length;for(s=0;s<p;s+=1)if("ks"in(o=a[s])&&!o.completed){if(o.completed=!0,o.hasMask){var d=o.masksProperties;for(c=d.length,l=0;l<c;l+=1)if(d[l].pt.k.i)r(d[l].pt.k);else for(h=d[l].pt.k.length,u=0;u<h;u+=1)d[l].pt.k[u].s&&r(d[l].pt.k[u].s[0]),d[l].pt.k[u].e&&r(d[l].pt.k[u].e[0])}0===o.ty?(o.layers=t(o.refId,i),e(o.layers,i)):4===o.ty?n(o.shapes):5===o.ty&&f(o)}}function t(e,t){var n=function(e,t){for(var n=0,r=t.length;n<r;){if(t[n].id===e)return t[n];n+=1}return null}(e,t);return n?n.layers.__used?JSON.parse(JSON.stringify(n.layers)):(n.layers.__used=!0,n.layers):null}function n(e){var t,a,i;for(t=e.length-1;t>=0;t-=1)if("sh"===e[t].ty)if(e[t].ks.k.i)r(e[t].ks.k);else for(i=e[t].ks.k.length,a=0;a<i;a+=1)e[t].ks.k[a].s&&r(e[t].ks.k[a].s[0]),e[t].ks.k[a].e&&r(e[t].ks.k[a].e[0]);else"gr"===e[t].ty&&n(e[t].it)}function r(e){var t,n=e.i.length;for(t=0;t<n;t+=1)e.i[t][0]+=e.v[t][0],e.i[t][1]+=e.v[t][1],e.o[t][0]+=e.v[t][0],e.o[t][1]+=e.v[t][1]}function a(e,t){var n=t?t.split("."):[100,100,100];return e[0]>n[0]||!(n[0]>e[0])&&(e[1]>n[1]||!(n[1]>e[1])&&(e[2]>n[2]||!(n[2]>e[2])&&null))}var i,o=function(){var e=[4,4,14];function t(e){var t=e.t.d;e.t.d={k:[{s:t,t:0}]}}function n(e){var n,r=e.length;for(n=0;n<r;n+=1)5===e[n].ty&&t(e[n])}return function(t){if(a(e,t.v)&&(n(t.layers),t.assets)){var r,i=t.assets.length;for(r=0;r<i;r+=1)t.assets[r].layers&&n(t.assets[r].layers)}}}(),s=(i=[4,7,99],function(e){if(e.chars&&!a(i,e.v)){var t,r=e.chars.length;for(t=0;t<r;t+=1){var o=e.chars[t];o.data&&o.data.shapes&&(n(o.data.shapes),o.data.ip=0,o.data.op=99999,o.data.st=0,o.data.sr=1,o.data.ks={p:{k:[0,0],a:0},s:{k:[100,100],a:0},a:{k:[0,0],a:0},r:{k:0,a:0},o:{k:100,a:0}},e.chars[t].t||(o.data.shapes.push({ty:"no"}),o.data.shapes[0].it.push({p:{k:[0,0],a:0},s:{k:[100,100],a:0},a:{k:[0,0],a:0},r:{k:0,a:0},o:{k:100,a:0},sk:{k:0,a:0},sa:{k:0,a:0},ty:"tr"})))}}}),l=function(){var e=[5,7,15];function t(e){var t=e.t.p;"number"==typeof t.a&&(t.a={a:0,k:t.a}),"number"==typeof t.p&&(t.p={a:0,k:t.p}),"number"==typeof t.r&&(t.r={a:0,k:t.r})}function n(e){var n,r=e.length;for(n=0;n<r;n+=1)5===e[n].ty&&t(e[n])}return function(t){if(a(e,t.v)&&(n(t.layers),t.assets)){var r,i=t.assets.length;for(r=0;r<i;r+=1)t.assets[r].layers&&n(t.assets[r].layers)}}}(),c=function(){var e=[4,1,9];function t(e){var n,r,a,i=e.length;for(n=0;n<i;n+=1)if("gr"===e[n].ty)t(e[n].it);else if("fl"===e[n].ty||"st"===e[n].ty)if(e[n].c.k&&e[n].c.k[0].i)for(a=e[n].c.k.length,r=0;r<a;r+=1)e[n].c.k[r].s&&(e[n].c.k[r].s[0]/=255,e[n].c.k[r].s[1]/=255,e[n].c.k[r].s[2]/=255,e[n].c.k[r].s[3]/=255),e[n].c.k[r].e&&(e[n].c.k[r].e[0]/=255,e[n].c.k[r].e[1]/=255,e[n].c.k[r].e[2]/=255,e[n].c.k[r].e[3]/=255);else e[n].c.k[0]/=255,e[n].c.k[1]/=255,e[n].c.k[2]/=255,e[n].c.k[3]/=255}function n(e){var n,r=e.length;for(n=0;n<r;n+=1)4===e[n].ty&&t(e[n].shapes)}return function(t){if(a(e,t.v)&&(n(t.layers),t.assets)){var r,i=t.assets.length;for(r=0;r<i;r+=1)t.assets[r].layers&&n(t.assets[r].layers)}}}(),u=function(){var e=[4,4,18];function t(e){var n,r,a;for(n=e.length-1;n>=0;n-=1)if("sh"===e[n].ty)if(e[n].ks.k.i)e[n].ks.k.c=e[n].closed;else for(a=e[n].ks.k.length,r=0;r<a;r+=1)e[n].ks.k[r].s&&(e[n].ks.k[r].s[0].c=e[n].closed),e[n].ks.k[r].e&&(e[n].ks.k[r].e[0].c=e[n].closed);else"gr"===e[n].ty&&t(e[n].it)}function n(e){var n,r,a,i,o,s,l=e.length;for(r=0;r<l;r+=1){if((n=e[r]).hasMask){var c=n.masksProperties;for(i=c.length,a=0;a<i;a+=1)if(c[a].pt.k.i)c[a].pt.k.c=c[a].cl;else for(s=c[a].pt.k.length,o=0;o<s;o+=1)c[a].pt.k[o].s&&(c[a].pt.k[o].s[0].c=c[a].cl),c[a].pt.k[o].e&&(c[a].pt.k[o].e[0].c=c[a].cl)}4===n.ty&&t(n.shapes)}}return function(t){if(a(e,t.v)&&(n(t.layers),t.assets)){var r,i=t.assets.length;for(r=0;r<i;r+=1)t.assets[r].layers&&n(t.assets[r].layers)}}}();function f(e){0===e.t.a.length&&e.t.p}var h={completeData:function(n){n.__complete||(c(n),o(n),s(n),l(n),u(n),e(n.layers,n.assets),function(n,r){if(n){var a=0,i=n.length;for(a=0;a<i;a+=1)1===n[a].t&&(n[a].data.layers=t(n[a].data.refId,r),e(n[a].data.layers,r))}}(n.chars,n.assets),n.__complete=!0)}};return h.checkColors=c,h.checkChars=s,h.checkPathProperties=l,h.checkShapes=u,h.completeLayers=e,h}()),i.assetLoader||(i.assetLoader=function(){function e(e){var t=e.getResponseHeader("content-type");return t&&"json"===e.responseType&&-1!==t.indexOf("json")||e.response&&"object"===_typeof$5(e.response)?e.response:e.response&&"string"==typeof e.response?JSON.parse(e.response):e.responseText?JSON.parse(e.responseText):null}return{load:function(t,n,r,a){var i,o=new XMLHttpRequest;try{o.responseType="json"}catch(e){}o.onreadystatechange=function(){if(4===o.readyState)if(200===o.status)i=e(o),r(i);else try{i=e(o),r(i)}catch(e){a&&a(e)}};try{o.open(["G","E","T"].join(""),t,!0)}catch(e){o.open(["G","E","T"].join(""),n+"/"+t,!0)}o.send()}}}()),"loadAnimation"===e.data.type)i.assetLoader.load(e.data.path,e.data.fullPath,function(t){i.dataManager.completeData(t),i.postMessage({id:e.data.id,payload:t,status:"success"})},function(){i.postMessage({id:e.data.id,status:"error"})});else if("complete"===e.data.type){var t=e.data.animation;i.dataManager.completeData(t),i.postMessage({id:e.data.id,payload:t,status:"success"})}else"loadData"===e.data.type&&i.assetLoader.load(e.data.path,e.data.fullPath,function(t){i.postMessage({id:e.data.id,payload:t,status:"success"})},function(){i.postMessage({id:e.data.id,status:"error"})})}),t.onmessage=function(e){var t=e.data,n=t.id,a=r[n];r[n]=null,"success"===t.status?a.onComplete(t.payload):a.onError&&a.onError()})}function s(e,t){var a="processId_"+(n+=1);return r[a]={onComplete:e,onError:t},a}return{loadAnimation:function(e,n,r){o();var a=s(n,r);t.postMessage({type:"loadAnimation",path:e,fullPath:window.location.origin+window.location.pathname,id:a})},loadData:function(e,n,r){o();var a=s(n,r);t.postMessage({type:"loadData",path:e,fullPath:window.location.origin+window.location.pathname,id:a})},completeAnimation:function(e,n,r){o();var a=s(n,r);t.postMessage({type:"complete",animation:e,id:a})}}}(),ImagePreloader=function(){var e=function(){var e=createTag("canvas");e.width=1,e.height=1;var t=e.getContext("2d");return t.fillStyle="rgba(0,0,0,0)",t.fillRect(0,0,1,1),e}();function t(){this.loadedAssets+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function n(){this.loadedFootagesCount+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function r(e,t,n){var r="";if(e.e)r=e.p;else if(t){var a=e.p;-1!==a.indexOf("images/")&&(a=a.split("/")[1]),r=t+a}else r=n,r+=e.u?e.u:"",r+=e.p;return r}function a(e){var t=0,n=setInterval(function(){(e.getBBox().width||t>500)&&(this._imageLoaded(),clearInterval(n)),t+=1}.bind(this),50)}function i(e){var t={assetData:e},n=r(e,this.assetsPath,this.path);return dataManager.loadData(n,function(e){t.img=e,this._footageLoaded()}.bind(this),function(){t.img={},this._footageLoaded()}.bind(this)),t}function o(){this._imageLoaded=t.bind(this),this._footageLoaded=n.bind(this),this.testImageLoaded=a.bind(this),this.createFootageData=i.bind(this),this.assetsPath="",this.path="",this.totalImages=0,this.totalFootages=0,this.loadedAssets=0,this.loadedFootagesCount=0,this.imagesLoadedCb=null,this.images=[]}return o.prototype={loadAssets:function(e,t){var n;this.imagesLoadedCb=t;var r=e.length;for(n=0;n<r;n+=1)e[n].layers||(e[n].t&&"seq"!==e[n].t?3===e[n].t&&(this.totalFootages+=1,this.images.push(this.createFootageData(e[n]))):(this.totalImages+=1,this.images.push(this._createImageData(e[n]))))},setAssetsPath:function(e){this.assetsPath=e||""},setPath:function(e){this.path=e||""},loadedImages:function(){return this.totalImages===this.loadedAssets},loadedFootages:function(){return this.totalFootages===this.loadedFootagesCount},destroy:function(){this.imagesLoadedCb=null,this.images.length=0},getAsset:function(e){for(var t=0,n=this.images.length;t<n;){if(this.images[t].assetData===e)return this.images[t].img;t+=1}return null},createImgData:function(t){var n=r(t,this.assetsPath,this.path),a=createTag("img");a.crossOrigin="anonymous",a.addEventListener("load",this._imageLoaded,!1),a.addEventListener("error",function(){i.img=e,this._imageLoaded()}.bind(this),!1),a.src=n;var i={img:a,assetData:t};return i},createImageData:function(t){var n=r(t,this.assetsPath,this.path),a=createNS("image");isSafari?this.testImageLoaded(a):a.addEventListener("load",this._imageLoaded,!1),a.addEventListener("error",function(){i.img=e,this._imageLoaded()}.bind(this),!1),a.setAttributeNS("http://www.w3.org/1999/xlink","href",n),this._elementHelper.append?this._elementHelper.append(a):this._elementHelper.appendChild(a);var i={img:a,assetData:t};return i},imageLoaded:t,footageLoaded:n,setCacheType:function(e,t){"svg"===e?(this._elementHelper=t,this._createImageData=this.createImageData.bind(this)):this._createImageData=this.createImgData.bind(this)}},o}();function BaseEvent(){}BaseEvent.prototype={triggerEvent:function(e,t){if(this._cbs[e])for(var n=this._cbs[e],r=0;r<n.length;r+=1)n[r](t)},addEventListener:function(e,t){return this._cbs[e]||(this._cbs[e]=[]),this._cbs[e].push(t),function(){this.removeEventListener(e,t)}.bind(this)},removeEventListener:function(e,t){if(t){if(this._cbs[e]){for(var n=0,r=this._cbs[e].length;n<r;)this._cbs[e][n]===t&&(this._cbs[e].splice(n,1),n-=1,r-=1),n+=1;this._cbs[e].length||(this._cbs[e]=null)}}else this._cbs[e]=null}};var markerParser=function(){function e(e){for(var t,n=e.split("\r\n"),r={},a=0,i=0;i<n.length;i+=1)2===(t=n[i].split(":")).length&&(r[t[0]]=t[1].trim(),a+=1);if(0===a)throw new Error;return r}return function(t){for(var n=[],r=0;r<t.length;r+=1){var a=t[r],i={time:a.tm,duration:a.dr};try{i.payload=JSON.parse(t[r].cm)}catch(n){try{i.payload=e(t[r].cm)}catch(e){i.payload={name:t[r].cm}}}n.push(i)}return n}}(),ProjectInterface=function(){function e(e){this.compositions.push(e)}return function(){function t(e){for(var t=0,n=this.compositions.length;t<n;){if(this.compositions[t].data&&this.compositions[t].data.nm===e)return this.compositions[t].prepareFrame&&this.compositions[t].data.xt&&this.compositions[t].prepareFrame(this.currentFrame),this.compositions[t].compInterface;t+=1}return null}return t.compositions=[],t.currentFrame=0,t.registerComposition=e,t}}(),renderers={},registerRenderer=function(e,t){renderers[e]=t};function getRenderer(e){return renderers[e]}function getRegisteredRenderer(){if(renderers.canvas)return"canvas";for(var e in renderers)if(renderers[e])return e;return""}function _typeof$4(e){return _typeof$4="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},_typeof$4(e)}var AnimationItem=function(){this._cbs=[],this.name="",this.path="",this.isLoaded=!1,this.currentFrame=0,this.currentRawFrame=0,this.firstFrame=0,this.totalFrames=0,this.frameRate=0,this.frameMult=0,this.playSpeed=1,this.playDirection=1,this.playCount=0,this.animationData={},this.assets=[],this.isPaused=!0,this.autoplay=!1,this.loop=!0,this.renderer=null,this.animationID=createElementID(),this.assetsPath="",this.timeCompleted=0,this.segmentPos=0,this.isSubframeEnabled=getSubframeEnabled(),this.segments=[],this._idle=!0,this._completedLoop=!1,this.projectInterface=ProjectInterface(),this.imagePreloader=new ImagePreloader,this.audioController=audioControllerFactory(),this.markers=[],this.configAnimation=this.configAnimation.bind(this),this.onSetupError=this.onSetupError.bind(this),this.onSegmentComplete=this.onSegmentComplete.bind(this),this.drawnFrameEvent=new BMEnterFrameEvent("drawnFrame",0,0,0),this.expressionsPlugin=getExpressionsPlugin()};extendPrototype([BaseEvent],AnimationItem),AnimationItem.prototype.setParams=function(e){(e.wrapper||e.container)&&(this.wrapper=e.wrapper||e.container);var t="svg";e.animType?t=e.animType:e.renderer&&(t=e.renderer);var n=getRenderer(t);this.renderer=new n(this,e.rendererSettings),this.imagePreloader.setCacheType(t,this.renderer.globalData.defs),this.renderer.setProjectInterface(this.projectInterface),this.animType=t,""===e.loop||null===e.loop||void 0===e.loop||!0===e.loop?this.loop=!0:!1===e.loop?this.loop=!1:this.loop=parseInt(e.loop,10),this.autoplay=!("autoplay"in e)||e.autoplay,this.name=e.name?e.name:"",this.autoloadSegments=!Object.prototype.hasOwnProperty.call(e,"autoloadSegments")||e.autoloadSegments,this.assetsPath=e.assetsPath,this.initialSegment=e.initialSegment,e.audioFactory&&this.audioController.setAudioFactory(e.audioFactory),e.animationData?this.setupAnimation(e.animationData):e.path&&(-1!==e.path.lastIndexOf("\\")?this.path=e.path.substr(0,e.path.lastIndexOf("\\")+1):this.path=e.path.substr(0,e.path.lastIndexOf("/")+1),this.fileName=e.path.substr(e.path.lastIndexOf("/")+1),this.fileName=this.fileName.substr(0,this.fileName.lastIndexOf(".json")),dataManager.loadAnimation(e.path,this.configAnimation,this.onSetupError))},AnimationItem.prototype.onSetupError=function(){this.trigger("data_failed")},AnimationItem.prototype.setupAnimation=function(e){dataManager.completeAnimation(e,this.configAnimation)},AnimationItem.prototype.setData=function(e,t){t&&"object"!==_typeof$4(t)&&(t=JSON.parse(t));var n={wrapper:e,animationData:t},r=e.attributes;n.path=r.getNamedItem("data-animation-path")?r.getNamedItem("data-animation-path").value:r.getNamedItem("data-bm-path")?r.getNamedItem("data-bm-path").value:r.getNamedItem("bm-path")?r.getNamedItem("bm-path").value:"",n.animType=r.getNamedItem("data-anim-type")?r.getNamedItem("data-anim-type").value:r.getNamedItem("data-bm-type")?r.getNamedItem("data-bm-type").value:r.getNamedItem("bm-type")?r.getNamedItem("bm-type").value:r.getNamedItem("data-bm-renderer")?r.getNamedItem("data-bm-renderer").value:r.getNamedItem("bm-renderer")?r.getNamedItem("bm-renderer").value:getRegisteredRenderer()||"canvas";var a=r.getNamedItem("data-anim-loop")?r.getNamedItem("data-anim-loop").value:r.getNamedItem("data-bm-loop")?r.getNamedItem("data-bm-loop").value:r.getNamedItem("bm-loop")?r.getNamedItem("bm-loop").value:"";"false"===a?n.loop=!1:"true"===a?n.loop=!0:""!==a&&(n.loop=parseInt(a,10));var i=r.getNamedItem("data-anim-autoplay")?r.getNamedItem("data-anim-autoplay").value:r.getNamedItem("data-bm-autoplay")?r.getNamedItem("data-bm-autoplay").value:!r.getNamedItem("bm-autoplay")||r.getNamedItem("bm-autoplay").value;n.autoplay="false"!==i,n.name=r.getNamedItem("data-name")?r.getNamedItem("data-name").value:r.getNamedItem("data-bm-name")?r.getNamedItem("data-bm-name").value:r.getNamedItem("bm-name")?r.getNamedItem("bm-name").value:"","false"===(r.getNamedItem("data-anim-prerender")?r.getNamedItem("data-anim-prerender").value:r.getNamedItem("data-bm-prerender")?r.getNamedItem("data-bm-prerender").value:r.getNamedItem("bm-prerender")?r.getNamedItem("bm-prerender").value:"")&&(n.prerender=!1),n.path?this.setParams(n):this.trigger("destroy")},AnimationItem.prototype.includeLayers=function(e){e.op>this.animationData.op&&(this.animationData.op=e.op,this.totalFrames=Math.floor(e.op-this.animationData.ip));var t,n,r=this.animationData.layers,a=r.length,i=e.layers,o=i.length;for(n=0;n<o;n+=1)for(t=0;t<a;){if(r[t].id===i[n].id){r[t]=i[n];break}t+=1}if((e.chars||e.fonts)&&(this.renderer.globalData.fontManager.addChars(e.chars),this.renderer.globalData.fontManager.addFonts(e.fonts,this.renderer.globalData.defs)),e.assets)for(a=e.assets.length,t=0;t<a;t+=1)this.animationData.assets.push(e.assets[t]);this.animationData.__complete=!1,dataManager.completeAnimation(this.animationData,this.onSegmentComplete)},AnimationItem.prototype.onSegmentComplete=function(e){this.animationData=e;var t=getExpressionsPlugin();t&&t.initExpressions(this),this.loadNextSegment()},AnimationItem.prototype.loadNextSegment=function(){var e=this.animationData.segments;if(!e||0===e.length||!this.autoloadSegments)return this.trigger("data_ready"),void(this.timeCompleted=this.totalFrames);var t=e.shift();this.timeCompleted=t.time*this.frameRate;var n=this.path+this.fileName+"_"+this.segmentPos+".json";this.segmentPos+=1,dataManager.loadData(n,this.includeLayers.bind(this),function(){this.trigger("data_failed")}.bind(this))},AnimationItem.prototype.loadSegments=function(){this.animationData.segments||(this.timeCompleted=this.totalFrames),this.loadNextSegment()},AnimationItem.prototype.imagesLoaded=function(){this.trigger("loaded_images"),this.checkLoaded()},AnimationItem.prototype.preloadImages=function(){this.imagePreloader.setAssetsPath(this.assetsPath),this.imagePreloader.setPath(this.path),this.imagePreloader.loadAssets(this.animationData.assets,this.imagesLoaded.bind(this))},AnimationItem.prototype.configAnimation=function(e){if(this.renderer)try{this.animationData=e,this.initialSegment?(this.totalFrames=Math.floor(this.initialSegment[1]-this.initialSegment[0]),this.firstFrame=Math.round(this.initialSegment[0])):(this.totalFrames=Math.floor(this.animationData.op-this.animationData.ip),this.firstFrame=Math.round(this.animationData.ip)),this.renderer.configAnimation(e),e.assets||(e.assets=[]),this.assets=this.animationData.assets,this.frameRate=this.animationData.fr,this.frameMult=this.animationData.fr/1e3,this.renderer.searchExtraCompositions(e.assets),this.markers=markerParser(e.markers||[]),this.trigger("config_ready"),this.preloadImages(),this.loadSegments(),this.updaFrameModifier(),this.waitForFontsLoaded(),this.isPaused&&this.audioController.pause()}catch(e){this.triggerConfigError(e)}},AnimationItem.prototype.waitForFontsLoaded=function(){this.renderer&&(this.renderer.globalData.fontManager.isLoaded?this.checkLoaded():setTimeout(this.waitForFontsLoaded.bind(this),20))},AnimationItem.prototype.checkLoaded=function(){if(!this.isLoaded&&this.renderer.globalData.fontManager.isLoaded&&(this.imagePreloader.loadedImages()||"canvas"!==this.renderer.rendererType)&&this.imagePreloader.loadedFootages()){this.isLoaded=!0;var e=getExpressionsPlugin();e&&e.initExpressions(this),this.renderer.initItems(),setTimeout(function(){this.trigger("DOMLoaded")}.bind(this),0),this.gotoFrame(),this.autoplay&&this.play()}},AnimationItem.prototype.resize=function(e,t){var n="number"==typeof e?e:void 0,r="number"==typeof t?t:void 0;this.renderer.updateContainerSize(n,r)},AnimationItem.prototype.setSubframe=function(e){this.isSubframeEnabled=!!e},AnimationItem.prototype.gotoFrame=function(){this.currentFrame=this.isSubframeEnabled?this.currentRawFrame:~~this.currentRawFrame,this.timeCompleted!==this.totalFrames&&this.currentFrame>this.timeCompleted&&(this.currentFrame=this.timeCompleted),this.trigger("enterFrame"),this.renderFrame(),this.trigger("drawnFrame")},AnimationItem.prototype.renderFrame=function(){if(!1!==this.isLoaded&&this.renderer)try{this.expressionsPlugin&&this.expressionsPlugin.resetFrame(),this.renderer.renderFrame(this.currentFrame+this.firstFrame)}catch(e){this.triggerRenderFrameError(e)}},AnimationItem.prototype.play=function(e){e&&this.name!==e||!0===this.isPaused&&(this.isPaused=!1,this.trigger("_play"),this.audioController.resume(),this._idle&&(this._idle=!1,this.trigger("_active")))},AnimationItem.prototype.pause=function(e){e&&this.name!==e||!1===this.isPaused&&(this.isPaused=!0,this.trigger("_pause"),this._idle=!0,this.trigger("_idle"),this.audioController.pause())},AnimationItem.prototype.togglePause=function(e){e&&this.name!==e||(!0===this.isPaused?this.play():this.pause())},AnimationItem.prototype.stop=function(e){e&&this.name!==e||(this.pause(),this.playCount=0,this._completedLoop=!1,this.setCurrentRawFrameValue(0))},AnimationItem.prototype.getMarkerData=function(e){for(var t,n=0;n<this.markers.length;n+=1)if((t=this.markers[n]).payload&&t.payload.name===e)return t;return null},AnimationItem.prototype.goToAndStop=function(e,t,n){if(!n||this.name===n){var r=Number(e);if(isNaN(r)){var a=this.getMarkerData(e);a&&this.goToAndStop(a.time,!0)}else t?this.setCurrentRawFrameValue(e):this.setCurrentRawFrameValue(e*this.frameModifier);this.pause()}},AnimationItem.prototype.goToAndPlay=function(e,t,n){if(!n||this.name===n){var r=Number(e);if(isNaN(r)){var a=this.getMarkerData(e);a&&(a.duration?this.playSegments([a.time,a.time+a.duration],!0):this.goToAndStop(a.time,!0))}else this.goToAndStop(r,t,n);this.play()}},AnimationItem.prototype.advanceTime=function(e){if(!0!==this.isPaused&&!1!==this.isLoaded){var t=this.currentRawFrame+e*this.frameModifier,n=!1;t>=this.totalFrames-1&&this.frameModifier>0?this.loop&&this.playCount!==this.loop?t>=this.totalFrames?(this.playCount+=1,this.checkSegments(t%this.totalFrames)||(this.setCurrentRawFrameValue(t%this.totalFrames),this._completedLoop=!0,this.trigger("loopComplete"))):this.setCurrentRawFrameValue(t):this.checkSegments(t>this.totalFrames?t%this.totalFrames:0)||(n=!0,t=this.totalFrames-1):t<0?this.checkSegments(t%this.totalFrames)||(!this.loop||this.playCount--<=0&&!0!==this.loop?(n=!0,t=0):(this.setCurrentRawFrameValue(this.totalFrames+t%this.totalFrames),this._completedLoop?this.trigger("loopComplete"):this._completedLoop=!0)):this.setCurrentRawFrameValue(t),n&&(this.setCurrentRawFrameValue(t),this.pause(),this.trigger("complete"))}},AnimationItem.prototype.adjustSegment=function(e,t){this.playCount=0,e[1]<e[0]?(this.frameModifier>0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(-1)),this.totalFrames=e[0]-e[1],this.timeCompleted=this.totalFrames,this.firstFrame=e[1],this.setCurrentRawFrameValue(this.totalFrames-.001-t)):e[1]>e[0]&&(this.frameModifier<0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(1)),this.totalFrames=e[1]-e[0],this.timeCompleted=this.totalFrames,this.firstFrame=e[0],this.setCurrentRawFrameValue(.001+t)),this.trigger("segmentStart")},AnimationItem.prototype.setSegment=function(e,t){var n=-1;this.isPaused&&(this.currentRawFrame+this.firstFrame<e?n=e:this.currentRawFrame+this.firstFrame>t&&(n=t-e)),this.firstFrame=e,this.totalFrames=t-e,this.timeCompleted=this.totalFrames,-1!==n&&this.goToAndStop(n,!0)},AnimationItem.prototype.playSegments=function(e,t){if(t&&(this.segments.length=0),"object"===_typeof$4(e[0])){var n,r=e.length;for(n=0;n<r;n+=1)this.segments.push(e[n])}else this.segments.push(e);this.segments.length&&t&&this.adjustSegment(this.segments.shift(),0),this.isPaused&&this.play()},AnimationItem.prototype.resetSegments=function(e){this.segments.length=0,this.segments.push([this.animationData.ip,this.animationData.op]),e&&this.checkSegments(0)},AnimationItem.prototype.checkSegments=function(e){return!!this.segments.length&&(this.adjustSegment(this.segments.shift(),e),!0)},AnimationItem.prototype.destroy=function(e){e&&this.name!==e||!this.renderer||(this.renderer.destroy(),this.imagePreloader.destroy(),this.trigger("destroy"),this._cbs=null,this.onEnterFrame=null,this.onLoopComplete=null,this.onComplete=null,this.onSegmentStart=null,this.onDestroy=null,this.renderer=null,this.expressionsPlugin=null,this.imagePreloader=null,this.projectInterface=null)},AnimationItem.prototype.setCurrentRawFrameValue=function(e){this.currentRawFrame=e,this.gotoFrame()},AnimationItem.prototype.setSpeed=function(e){this.playSpeed=e,this.updaFrameModifier()},AnimationItem.prototype.setDirection=function(e){this.playDirection=e<0?-1:1,this.updaFrameModifier()},AnimationItem.prototype.setLoop=function(e){this.loop=e},AnimationItem.prototype.setVolume=function(e,t){t&&this.name!==t||this.audioController.setVolume(e)},AnimationItem.prototype.getVolume=function(){return this.audioController.getVolume()},AnimationItem.prototype.mute=function(e){e&&this.name!==e||this.audioController.mute()},AnimationItem.prototype.unmute=function(e){e&&this.name!==e||this.audioController.unmute()},AnimationItem.prototype.updaFrameModifier=function(){this.frameModifier=this.frameMult*this.playSpeed*this.playDirection,this.audioController.setRate(this.playSpeed*this.playDirection)},AnimationItem.prototype.getPath=function(){return this.path},AnimationItem.prototype.getAssetsPath=function(e){var t="";if(e.e)t=e.p;else if(this.assetsPath){var n=e.p;-1!==n.indexOf("images/")&&(n=n.split("/")[1]),t=this.assetsPath+n}else t=this.path,t+=e.u?e.u:"",t+=e.p;return t},AnimationItem.prototype.getAssetData=function(e){for(var t=0,n=this.assets.length;t<n;){if(e===this.assets[t].id)return this.assets[t];t+=1}return null},AnimationItem.prototype.hide=function(){this.renderer.hide()},AnimationItem.prototype.show=function(){this.renderer.show()},AnimationItem.prototype.getDuration=function(e){return e?this.totalFrames:this.totalFrames/this.frameRate},AnimationItem.prototype.updateDocumentData=function(e,t,n){try{this.renderer.getElementByPath(e).updateDocumentData(t,n)}catch(e){}},AnimationItem.prototype.trigger=function(e){if(this._cbs&&this._cbs[e])switch(e){case"enterFrame":this.triggerEvent(e,new BMEnterFrameEvent(e,this.currentFrame,this.totalFrames,this.frameModifier));break;case"drawnFrame":this.drawnFrameEvent.currentTime=this.currentFrame,this.drawnFrameEvent.totalTime=this.totalFrames,this.drawnFrameEvent.direction=this.frameModifier,this.triggerEvent(e,this.drawnFrameEvent);break;case"loopComplete":this.triggerEvent(e,new BMCompleteLoopEvent(e,this.loop,this.playCount,this.frameMult));break;case"complete":this.triggerEvent(e,new BMCompleteEvent(e,this.frameMult));break;case"segmentStart":this.triggerEvent(e,new BMSegmentStartEvent(e,this.firstFrame,this.totalFrames));break;case"destroy":this.triggerEvent(e,new BMDestroyEvent(e,this));break;default:this.triggerEvent(e)}"enterFrame"===e&&this.onEnterFrame&&this.onEnterFrame.call(this,new BMEnterFrameEvent(e,this.currentFrame,this.totalFrames,this.frameMult)),"loopComplete"===e&&this.onLoopComplete&&this.onLoopComplete.call(this,new BMCompleteLoopEvent(e,this.loop,this.playCount,this.frameMult)),"complete"===e&&this.onComplete&&this.onComplete.call(this,new BMCompleteEvent(e,this.frameMult)),"segmentStart"===e&&this.onSegmentStart&&this.onSegmentStart.call(this,new BMSegmentStartEvent(e,this.firstFrame,this.totalFrames)),"destroy"===e&&this.onDestroy&&this.onDestroy.call(this,new BMDestroyEvent(e,this))},AnimationItem.prototype.triggerRenderFrameError=function(e){var t=new BMRenderFrameErrorEvent(e,this.currentFrame);this.triggerEvent("error",t),this.onError&&this.onError.call(this,t)},AnimationItem.prototype.triggerConfigError=function(e){var t=new BMConfigErrorEvent(e,this.currentFrame);this.triggerEvent("error",t),this.onError&&this.onError.call(this,t)};var animationManager=function(){var e={},t=[],n=0,r=0,a=0,i=!0,o=!1;function s(e){for(var n=0,a=e.target;n<r;)t[n].animation===a&&(t.splice(n,1),n-=1,r-=1,a.isPaused||u()),n+=1}function l(e,n){if(!e)return null;for(var a=0;a<r;){if(t[a].elem===e&&null!==t[a].elem)return t[a].animation;a+=1}var i=new AnimationItem;return f(i,e),i.setData(e,n),i}function c(){a+=1,d()}function u(){a-=1}function f(e,n){e.addEventListener("destroy",s),e.addEventListener("_active",c),e.addEventListener("_idle",u),t.push({elem:n,animation:e}),r+=1}function h(e){var s,l=e-n;for(s=0;s<r;s+=1)t[s].animation.advanceTime(l);n=e,a&&!o?window.requestAnimationFrame(h):i=!0}function p(e){n=e,window.requestAnimationFrame(h)}function d(){!o&&a&&i&&(window.requestAnimationFrame(p),i=!1)}return e.registerAnimation=l,e.loadAnimation=function(e){var t=new AnimationItem;return f(t,null),t.setParams(e),t},e.setSpeed=function(e,n){var a;for(a=0;a<r;a+=1)t[a].animation.setSpeed(e,n)},e.setDirection=function(e,n){var a;for(a=0;a<r;a+=1)t[a].animation.setDirection(e,n)},e.play=function(e){var n;for(n=0;n<r;n+=1)t[n].animation.play(e)},e.pause=function(e){var n;for(n=0;n<r;n+=1)t[n].animation.pause(e)},e.stop=function(e){var n;for(n=0;n<r;n+=1)t[n].animation.stop(e)},e.togglePause=function(e){var n;for(n=0;n<r;n+=1)t[n].animation.togglePause(e)},e.searchAnimations=function(e,t,n){var r,a=[].concat([].slice.call(document.getElementsByClassName("lottie")),[].slice.call(document.getElementsByClassName("bodymovin"))),i=a.length;for(r=0;r<i;r+=1)n&&a[r].setAttribute("data-bm-type",n),l(a[r],e);if(t&&0===i){n||(n="svg");var o=document.getElementsByTagName("body")[0];o.innerText="";var s=createTag("div");s.style.width="100%",s.style.height="100%",s.setAttribute("data-bm-type",n),o.appendChild(s),l(s,e)}},e.resize=function(){var e;for(e=0;e<r;e+=1)t[e].animation.resize()},e.goToAndStop=function(e,n,a){var i;for(i=0;i<r;i+=1)t[i].animation.goToAndStop(e,n,a)},e.destroy=function(e){var n;for(n=r-1;n>=0;n-=1)t[n].animation.destroy(e)},e.freeze=function(){o=!0},e.unfreeze=function(){o=!1,d()},e.setVolume=function(e,n){var a;for(a=0;a<r;a+=1)t[a].animation.setVolume(e,n)},e.mute=function(e){var n;for(n=0;n<r;n+=1)t[n].animation.mute(e)},e.unmute=function(e){var n;for(n=0;n<r;n+=1)t[n].animation.unmute(e)},e.getRegisteredAnimations=function(){var e,n=t.length,r=[];for(e=0;e<n;e+=1)r.push(t[e].animation);return r},e}(),BezierFactory=function(){var e={getBezierEasing:function(e,n,r,a,i){var o=i||("bez_"+e+"_"+n+"_"+r+"_"+a).replace(/\./g,"p");if(t[o])return t[o];var s=new u([e,n,r,a]);return t[o]=s,s}},t={},n=11,r=1/(n-1),a="function"==typeof Float32Array;function i(e,t){return 1-3*t+3*e}function o(e,t){return 3*t-6*e}function s(e){return 3*e}function l(e,t,n){return((i(t,n)*e+o(t,n))*e+s(t))*e}function c(e,t,n){return 3*i(t,n)*e*e+2*o(t,n)*e+s(t)}function u(e){this._p=e,this._mSampleValues=a?new Float32Array(n):new Array(n),this._precomputed=!1,this.get=this.get.bind(this)}return u.prototype={get:function(e){var t=this._p[0],n=this._p[1],r=this._p[2],a=this._p[3];return this._precomputed||this._precompute(),t===n&&r===a?e:0===e?0:1===e?1:l(this._getTForX(e),n,a)},_precompute:function(){var e=this._p[0],t=this._p[1],n=this._p[2],r=this._p[3];this._precomputed=!0,e===t&&n===r||this._calcSampleValues()},_calcSampleValues:function(){for(var e=this._p[0],t=this._p[2],a=0;a<n;++a)this._mSampleValues[a]=l(a*r,e,t)},_getTForX:function(e){for(var t=this._p[0],a=this._p[2],i=this._mSampleValues,o=0,s=1,u=n-1;s!==u&&i[s]<=e;++s)o+=r;var f=o+(e-i[--s])/(i[s+1]-i[s])*r,h=c(f,t,a);return h>=.001?function(e,t,n,r){for(var a=0;a<4;++a){var i=c(t,n,r);if(0===i)return t;t-=(l(t,n,r)-e)/i}return t}(e,f,t,a):0===h?f:function(e,t,n,r,a){var i,o,s=0;do{(i=l(o=t+(n-t)/2,r,a)-e)>0?n=o:t=o}while(Math.abs(i)>1e-7&&++s<10);return o}(e,o,o+r,t,a)}},e}(),pooling={double:function(e){return e.concat(createSizedArray(e.length))}},poolFactory=function(e,t,n){var r=0,a=e,i=createSizedArray(a);return{newElement:function(){return r?i[r-=1]:t()},release:function(e){r===a&&(i=pooling.double(i),a*=2),n&&n(e),i[r]=e,r+=1}}},bezierLengthPool=poolFactory(8,function(){return{addedLength:0,percents:createTypedArray("float32",getDefaultCurveSegments()),lengths:createTypedArray("float32",getDefaultCurveSegments())}}),segmentsLengthPool=poolFactory(8,function(){return{lengths:[],totalLength:0}},function(e){var t,n=e.lengths.length;for(t=0;t<n;t+=1)bezierLengthPool.release(e.lengths[t]);e.lengths.length=0});function bezFunction(){var e=Math;function t(e,t,n,r,a,i){var o=e*r+t*a+n*i-a*r-i*e-n*t;return o>-.001&&o<.001}var n=function(e,t,n,r){var a,i,o,s,l,c,u=getDefaultCurveSegments(),f=0,h=[],p=[],d=bezierLengthPool.newElement();for(o=n.length,a=0;a<u;a+=1){for(l=a/(u-1),c=0,i=0;i<o;i+=1)s=bmPow(1-l,3)*e[i]+3*bmPow(1-l,2)*l*n[i]+3*(1-l)*bmPow(l,2)*r[i]+bmPow(l,3)*t[i],h[i]=s,null!==p[i]&&(c+=bmPow(h[i]-p[i],2)),p[i]=h[i];c&&(f+=c=bmSqrt(c)),d.percents[a]=l,d.lengths[a]=f}return d.addedLength=f,d};function r(e){this.segmentLength=0,this.points=new Array(e)}function a(e,t){this.partialLength=e,this.point=t}var i,o=(i={},function(e,n,o,s){var l=(e[0]+"_"+e[1]+"_"+n[0]+"_"+n[1]+"_"+o[0]+"_"+o[1]+"_"+s[0]+"_"+s[1]).replace(/\./g,"p");if(!i[l]){var c,u,f,h,p,d,m,g=getDefaultCurveSegments(),y=0,v=null;2===e.length&&(e[0]!==n[0]||e[1]!==n[1])&&t(e[0],e[1],n[0],n[1],e[0]+o[0],e[1]+o[1])&&t(e[0],e[1],n[0],n[1],n[0]+s[0],n[1]+s[1])&&(g=2);var b=new r(g);for(f=o.length,c=0;c<g;c+=1){for(m=createSizedArray(f),p=c/(g-1),d=0,u=0;u<f;u+=1)h=bmPow(1-p,3)*e[u]+3*bmPow(1-p,2)*p*(e[u]+o[u])+3*(1-p)*bmPow(p,2)*(n[u]+s[u])+bmPow(p,3)*n[u],m[u]=h,null!==v&&(d+=bmPow(m[u]-v[u],2));y+=d=bmSqrt(d),b.points[c]=new a(d,m),v=m}b.segmentLength=y,i[l]=b}return i[l]});function s(e,t){var n=t.percents,r=t.lengths,a=n.length,i=bmFloor((a-1)*e),o=e*t.addedLength,s=0;if(i===a-1||0===i||o===r[i])return n[i];for(var l=r[i]>o?-1:1,c=!0;c;)if(r[i]<=o&&r[i+1]>o?(s=(o-r[i])/(r[i+1]-r[i]),c=!1):i+=l,i<0||i>=a-1){if(i===a-1)return n[i];c=!1}return n[i]+(n[i+1]-n[i])*s}var l=createTypedArray("float32",8);return{getSegmentsLength:function(e){var t,r=segmentsLengthPool.newElement(),a=e.c,i=e.v,o=e.o,s=e.i,l=e._length,c=r.lengths,u=0;for(t=0;t<l-1;t+=1)c[t]=n(i[t],i[t+1],o[t],s[t+1]),u+=c[t].addedLength;return a&&l&&(c[t]=n(i[t],i[0],o[t],s[0]),u+=c[t].addedLength),r.totalLength=u,r},getNewSegment:function(t,n,r,a,i,o,c){i<0?i=0:i>1&&(i=1);var u,f=s(i,c),h=s(o=o>1?1:o,c),p=t.length,d=1-f,m=1-h,g=d*d*d,y=f*d*d*3,v=f*f*d*3,b=f*f*f,_=d*d*m,w=f*d*m+d*f*m+d*d*h,S=f*f*m+d*f*h+f*d*h,x=f*f*h,k=d*m*m,C=f*m*m+d*h*m+d*m*h,E=f*h*m+d*h*h+f*m*h,P=f*h*h,A=m*m*m,O=h*m*m+m*h*m+m*m*h,M=h*h*m+m*h*h+h*m*h,T=h*h*h;for(u=0;u<p;u+=1)l[4*u]=e.round(1e3*(g*t[u]+y*r[u]+v*a[u]+b*n[u]))/1e3,l[4*u+1]=e.round(1e3*(_*t[u]+w*r[u]+S*a[u]+x*n[u]))/1e3,l[4*u+2]=e.round(1e3*(k*t[u]+C*r[u]+E*a[u]+P*n[u]))/1e3,l[4*u+3]=e.round(1e3*(A*t[u]+O*r[u]+M*a[u]+T*n[u]))/1e3;return l},getPointInSegment:function(t,n,r,a,i,o){var l=s(i,o),c=1-l;return[e.round(1e3*(c*c*c*t[0]+(l*c*c+c*l*c+c*c*l)*r[0]+(l*l*c+c*l*l+l*c*l)*a[0]+l*l*l*n[0]))/1e3,e.round(1e3*(c*c*c*t[1]+(l*c*c+c*l*c+c*c*l)*r[1]+(l*l*c+c*l*l+l*c*l)*a[1]+l*l*l*n[1]))/1e3]},buildBezierData:o,pointOnLine2D:t,pointOnLine3D:function(n,r,a,i,o,s,l,c,u){if(0===a&&0===s&&0===u)return t(n,r,i,o,l,c);var f,h=e.sqrt(e.pow(i-n,2)+e.pow(o-r,2)+e.pow(s-a,2)),p=e.sqrt(e.pow(l-n,2)+e.pow(c-r,2)+e.pow(u-a,2)),d=e.sqrt(e.pow(l-i,2)+e.pow(c-o,2)+e.pow(u-s,2));return(f=h>p?h>d?h-p-d:d-p-h:d>p?d-p-h:p-h-d)>-1e-4&&f<1e-4}}}var bez=bezFunction(),initFrame=initialDefaultFrame,mathAbs=Math.abs;function interpolateValue(e,t){var n,r=this.offsetTime;"multidimensional"===this.propType&&(n=createTypedArray("float32",this.pv.length));for(var a,i,o,s,l,c,u,f,h,p=t.lastIndex,d=p,m=this.keyframes.length-1,g=!0;g;){if(a=this.keyframes[d],i=this.keyframes[d+1],d===m-1&&e>=i.t-r){a.h&&(a=i),p=0;break}if(i.t-r>e){p=d;break}d<m-1?d+=1:(p=0,g=!1)}o=this.keyframesMetadata[d]||{};var y,v=i.t-r,b=a.t-r;if(a.to){o.bezierData||(o.bezierData=bez.buildBezierData(a.s,i.s||a.e,a.to,a.ti));var _=o.bezierData;if(e>=v||e<b){var w=e>=v?_.points.length-1:0;for(l=_.points[w].point.length,s=0;s<l;s+=1)n[s]=_.points[w].point[s]}else{o.__fnct?h=o.__fnct:(h=BezierFactory.getBezierEasing(a.o.x,a.o.y,a.i.x,a.i.y,a.n).get,o.__fnct=h),c=h((e-b)/(v-b));var S,x=_.segmentLength*c,k=t.lastFrame<e&&t._lastKeyframeIndex===d?t._lastAddedLength:0;for(f=t.lastFrame<e&&t._lastKeyframeIndex===d?t._lastPoint:0,g=!0,u=_.points.length;g;){if(k+=_.points[f].partialLength,0===x||0===c||f===_.points.length-1){for(l=_.points[f].point.length,s=0;s<l;s+=1)n[s]=_.points[f].point[s];break}if(x>=k&&x<k+_.points[f+1].partialLength){for(S=(x-k)/_.points[f+1].partialLength,l=_.points[f].point.length,s=0;s<l;s+=1)n[s]=_.points[f].point[s]+(_.points[f+1].point[s]-_.points[f].point[s])*S;break}f<u-1?f+=1:g=!1}t._lastPoint=f,t._lastAddedLength=k-_.points[f].partialLength,t._lastKeyframeIndex=d}}else{var C,E,P,A,O;if(m=a.s.length,y=i.s||a.e,this.sh&&1!==a.h)e>=v?(n[0]=y[0],n[1]=y[1],n[2]=y[2]):e<=b?(n[0]=a.s[0],n[1]=a.s[1],n[2]=a.s[2]):quaternionToEuler(n,slerp(createQuaternion(a.s),createQuaternion(y),(e-b)/(v-b)));else for(d=0;d<m;d+=1)1!==a.h&&(e>=v?c=1:e<b?c=0:(a.o.x.constructor===Array?(o.__fnct||(o.__fnct=[]),o.__fnct[d]?h=o.__fnct[d]:(C=void 0===a.o.x[d]?a.o.x[0]:a.o.x[d],E=void 0===a.o.y[d]?a.o.y[0]:a.o.y[d],P=void 0===a.i.x[d]?a.i.x[0]:a.i.x[d],A=void 0===a.i.y[d]?a.i.y[0]:a.i.y[d],h=BezierFactory.getBezierEasing(C,E,P,A).get,o.__fnct[d]=h)):o.__fnct?h=o.__fnct:(C=a.o.x,E=a.o.y,P=a.i.x,A=a.i.y,h=BezierFactory.getBezierEasing(C,E,P,A).get,a.keyframeMetadata=h),c=h((e-b)/(v-b)))),y=i.s||a.e,O=1===a.h?a.s[d]:a.s[d]+(y[d]-a.s[d])*c,"multidimensional"===this.propType?n[d]=O:n=O}return t.lastIndex=p,n}function slerp(e,t,n){var r,a,i,o,s,l=[],c=e[0],u=e[1],f=e[2],h=e[3],p=t[0],d=t[1],m=t[2],g=t[3];return(a=c*p+u*d+f*m+h*g)<0&&(a=-a,p=-p,d=-d,m=-m,g=-g),1-a>1e-6?(r=Math.acos(a),i=Math.sin(r),o=Math.sin((1-n)*r)/i,s=Math.sin(n*r)/i):(o=1-n,s=n),l[0]=o*c+s*p,l[1]=o*u+s*d,l[2]=o*f+s*m,l[3]=o*h+s*g,l}function quaternionToEuler(e,t){var n=t[0],r=t[1],a=t[2],i=t[3],o=Math.atan2(2*r*i-2*n*a,1-2*r*r-2*a*a),s=Math.asin(2*n*r+2*a*i),l=Math.atan2(2*n*i-2*r*a,1-2*n*n-2*a*a);e[0]=o/degToRads,e[1]=s/degToRads,e[2]=l/degToRads}function createQuaternion(e){var t=e[0]*degToRads,n=e[1]*degToRads,r=e[2]*degToRads,a=Math.cos(t/2),i=Math.cos(n/2),o=Math.cos(r/2),s=Math.sin(t/2),l=Math.sin(n/2),c=Math.sin(r/2);return[s*l*o+a*i*c,s*i*o+a*l*c,a*l*o-s*i*c,a*i*o-s*l*c]}function getValueAtCurrentTime(){var e=this.comp.renderedFrame-this.offsetTime,t=this.keyframes[0].t-this.offsetTime,n=this.keyframes[this.keyframes.length-1].t-this.offsetTime;if(!(e===this._caching.lastFrame||this._caching.lastFrame!==initFrame&&(this._caching.lastFrame>=n&&e>=n||this._caching.lastFrame<t&&e<t))){this._caching.lastFrame>=e&&(this._caching._lastKeyframeIndex=-1,this._caching.lastIndex=0);var r=this.interpolateValue(e,this._caching);this.pv=r}return this._caching.lastFrame=e,this.pv}function setVValue(e){var t;if("unidimensional"===this.propType)t=e*this.mult,mathAbs(this.v-t)>1e-5&&(this.v=t,this._mdf=!0);else for(var n=0,r=this.v.length;n<r;)t=e[n]*this.mult,mathAbs(this.v[n]-t)>1e-5&&(this.v[n]=t,this._mdf=!0),n+=1}function processEffectsSequence(){if(this.elem.globalData.frameId!==this.frameId&&this.effectsSequence.length)if(this.lock)this.setVValue(this.pv);else{var e;this.lock=!0,this._mdf=this._isFirstFrame;var t=this.effectsSequence.length,n=this.kf?this.pv:this.data.k;for(e=0;e<t;e+=1)n=this.effectsSequence[e](n);this.setVValue(n),this._isFirstFrame=!1,this.lock=!1,this.frameId=this.elem.globalData.frameId}}function addEffect(e){this.effectsSequence.push(e),this.container.addDynamicProperty(this)}function ValueProperty(e,t,n,r){this.propType="unidimensional",this.mult=n||1,this.data=t,this.v=n?t.k*n:t.k,this.pv=t.k,this._mdf=!1,this.elem=e,this.container=r,this.comp=e.comp,this.k=!1,this.kf=!1,this.vel=0,this.effectsSequence=[],this._isFirstFrame=!0,this.getValue=processEffectsSequence,this.setVValue=setVValue,this.addEffect=addEffect}function MultiDimensionalProperty(e,t,n,r){var a;this.propType="multidimensional",this.mult=n||1,this.data=t,this._mdf=!1,this.elem=e,this.container=r,this.comp=e.comp,this.k=!1,this.kf=!1,this.frameId=-1;var i=t.k.length;for(this.v=createTypedArray("float32",i),this.pv=createTypedArray("float32",i),this.vel=createTypedArray("float32",i),a=0;a<i;a+=1)this.v[a]=t.k[a]*this.mult,this.pv[a]=t.k[a];this._isFirstFrame=!0,this.effectsSequence=[],this.getValue=processEffectsSequence,this.setVValue=setVValue,this.addEffect=addEffect}function KeyframedValueProperty(e,t,n,r){this.propType="unidimensional",this.keyframes=t.k,this.keyframesMetadata=[],this.offsetTime=e.data.st,this.frameId=-1,this._caching={lastFrame:initFrame,lastIndex:0,value:0,_lastKeyframeIndex:-1},this.k=!0,this.kf=!0,this.data=t,this.mult=n||1,this.elem=e,this.container=r,this.comp=e.comp,this.v=initFrame,this.pv=initFrame,this._isFirstFrame=!0,this.getValue=processEffectsSequence,this.setVValue=setVValue,this.interpolateValue=interpolateValue,this.effectsSequence=[getValueAtCurrentTime.bind(this)],this.addEffect=addEffect}function KeyframedMultidimensionalProperty(e,t,n,r){var a;this.propType="multidimensional";var i,o,s,l,c=t.k.length;for(a=0;a<c-1;a+=1)t.k[a].to&&t.k[a].s&&t.k[a+1]&&t.k[a+1].s&&(i=t.k[a].s,o=t.k[a+1].s,s=t.k[a].to,l=t.k[a].ti,(2===i.length&&(i[0]!==o[0]||i[1]!==o[1])&&bez.pointOnLine2D(i[0],i[1],o[0],o[1],i[0]+s[0],i[1]+s[1])&&bez.pointOnLine2D(i[0],i[1],o[0],o[1],o[0]+l[0],o[1]+l[1])||3===i.length&&(i[0]!==o[0]||i[1]!==o[1]||i[2]!==o[2])&&bez.pointOnLine3D(i[0],i[1],i[2],o[0],o[1],o[2],i[0]+s[0],i[1]+s[1],i[2]+s[2])&&bez.pointOnLine3D(i[0],i[1],i[2],o[0],o[1],o[2],o[0]+l[0],o[1]+l[1],o[2]+l[2]))&&(t.k[a].to=null,t.k[a].ti=null),i[0]===o[0]&&i[1]===o[1]&&0===s[0]&&0===s[1]&&0===l[0]&&0===l[1]&&(2===i.length||i[2]===o[2]&&0===s[2]&&0===l[2])&&(t.k[a].to=null,t.k[a].ti=null));this.effectsSequence=[getValueAtCurrentTime.bind(this)],this.data=t,this.keyframes=t.k,this.keyframesMetadata=[],this.offsetTime=e.data.st,this.k=!0,this.kf=!0,this._isFirstFrame=!0,this.mult=n||1,this.elem=e,this.container=r,this.comp=e.comp,this.getValue=processEffectsSequence,this.setVValue=setVValue,this.interpolateValue=interpolateValue,this.frameId=-1;var u=t.k[0].s.length;for(this.v=createTypedArray("float32",u),this.pv=createTypedArray("float32",u),a=0;a<u;a+=1)this.v[a]=initFrame,this.pv[a]=initFrame;this._caching={lastFrame:initFrame,lastIndex:0,value:createTypedArray("float32",u)},this.addEffect=addEffect}var PropertyFactory={getProp:function(e,t,n,r,a){var i;if(t.sid&&(t=e.globalData.slotManager.getProp(t)),t.k.length)if("number"==typeof t.k[0])i=new MultiDimensionalProperty(e,t,r,a);else switch(n){case 0:i=new KeyframedValueProperty(e,t,r,a);break;case 1:i=new KeyframedMultidimensionalProperty(e,t,r,a)}else i=new ValueProperty(e,t,r,a);return i.effectsSequence.length&&a.addDynamicProperty(i),i}};function DynamicPropertyContainer(){}DynamicPropertyContainer.prototype={addDynamicProperty:function(e){-1===this.dynamicProperties.indexOf(e)&&(this.dynamicProperties.push(e),this.container.addDynamicProperty(this),this._isAnimated=!0)},iterateDynamicProperties:function(){var e;this._mdf=!1;var t=this.dynamicProperties.length;for(e=0;e<t;e+=1)this.dynamicProperties[e].getValue(),this.dynamicProperties[e]._mdf&&(this._mdf=!0)},initDynamicPropertyContainer:function(e){this.container=e,this.dynamicProperties=[],this._mdf=!1,this._isAnimated=!1}};var pointPool=poolFactory(8,function(){return createTypedArray("float32",2)});function ShapePath(){this.c=!1,this._length=0,this._maxLength=8,this.v=createSizedArray(this._maxLength),this.o=createSizedArray(this._maxLength),this.i=createSizedArray(this._maxLength)}ShapePath.prototype.setPathData=function(e,t){this.c=e,this.setLength(t);for(var n=0;n<t;)this.v[n]=pointPool.newElement(),this.o[n]=pointPool.newElement(),this.i[n]=pointPool.newElement(),n+=1},ShapePath.prototype.setLength=function(e){for(;this._maxLength<e;)this.doubleArrayLength();this._length=e},ShapePath.prototype.doubleArrayLength=function(){this.v=this.v.concat(createSizedArray(this._maxLength)),this.i=this.i.concat(createSizedArray(this._maxLength)),this.o=this.o.concat(createSizedArray(this._maxLength)),this._maxLength*=2},ShapePath.prototype.setXYAt=function(e,t,n,r,a){var i;switch(this._length=Math.max(this._length,r+1),this._length>=this._maxLength&&this.doubleArrayLength(),n){case"v":i=this.v;break;case"i":i=this.i;break;case"o":i=this.o;break;default:i=[]}(!i[r]||i[r]&&!a)&&(i[r]=pointPool.newElement()),i[r][0]=e,i[r][1]=t},ShapePath.prototype.setTripleAt=function(e,t,n,r,a,i,o,s){this.setXYAt(e,t,"v",o,s),this.setXYAt(n,r,"o",o,s),this.setXYAt(a,i,"i",o,s)},ShapePath.prototype.reverse=function(){var e=new ShapePath;e.setPathData(this.c,this._length);var t=this.v,n=this.o,r=this.i,a=0;this.c&&(e.setTripleAt(t[0][0],t[0][1],r[0][0],r[0][1],n[0][0],n[0][1],0,!1),a=1);var i,o=this._length-1,s=this._length;for(i=a;i<s;i+=1)e.setTripleAt(t[o][0],t[o][1],r[o][0],r[o][1],n[o][0],n[o][1],i,!1),o-=1;return e},ShapePath.prototype.length=function(){return this._length};var shapePool=(factory=poolFactory(4,function(){return new ShapePath},function(e){var t,n=e._length;for(t=0;t<n;t+=1)pointPool.release(e.v[t]),pointPool.release(e.i[t]),pointPool.release(e.o[t]),e.v[t]=null,e.i[t]=null,e.o[t]=null;e._length=0,e.c=!1}),factory.clone=function(e){var t,n=factory.newElement(),r=void 0===e._length?e.v.length:e._length;for(n.setLength(r),n.c=e.c,t=0;t<r;t+=1)n.setTripleAt(e.v[t][0],e.v[t][1],e.o[t][0],e.o[t][1],e.i[t][0],e.i[t][1],t);return n},factory),factory;function ShapeCollection(){this._length=0,this._maxLength=4,this.shapes=createSizedArray(this._maxLength)}ShapeCollection.prototype.addShape=function(e){this._length===this._maxLength&&(this.shapes=this.shapes.concat(createSizedArray(this._maxLength)),this._maxLength*=2),this.shapes[this._length]=e,this._length+=1},ShapeCollection.prototype.releaseShapes=function(){var e;for(e=0;e<this._length;e+=1)shapePool.release(this.shapes[e]);this._length=0};var shapeCollectionPool=(ob={newShapeCollection:function(){return _length?pool[_length-=1]:new ShapeCollection},release:function(e){var t,n=e._length;for(t=0;t<n;t+=1)shapePool.release(e.shapes[t]);e._length=0,_length===_maxLength&&(pool=pooling.double(pool),_maxLength*=2),pool[_length]=e,_length+=1}},_length=0,_maxLength=4,pool=createSizedArray(_maxLength),ob),ob,_length,_maxLength,pool,ShapePropertyFactory=function(){var e=-999999;function t(e,t,n){var r,a,i,o,s,l,c,u,f,h=n.lastIndex,p=this.keyframes;if(e<p[0].t-this.offsetTime)r=p[0].s[0],i=!0,h=0;else if(e>=p[p.length-1].t-this.offsetTime)r=p[p.length-1].s?p[p.length-1].s[0]:p[p.length-2].e[0],i=!0;else{for(var d,m,g,y=h,v=p.length-1,b=!0;b&&(d=p[y],!((m=p[y+1]).t-this.offsetTime>e));)y<v-1?y+=1:b=!1;if(g=this.keyframesMetadata[y]||{},h=y,!(i=1===d.h)){if(e>=m.t-this.offsetTime)u=1;else if(e<d.t-this.offsetTime)u=0;else{var _;g.__fnct?_=g.__fnct:(_=BezierFactory.getBezierEasing(d.o.x,d.o.y,d.i.x,d.i.y).get,g.__fnct=_),u=_((e-(d.t-this.offsetTime))/(m.t-this.offsetTime-(d.t-this.offsetTime)))}a=m.s?m.s[0]:d.e[0]}r=d.s[0]}for(l=t._length,c=r.i[0].length,n.lastIndex=h,o=0;o<l;o+=1)for(s=0;s<c;s+=1)f=i?r.i[o][s]:r.i[o][s]+(a.i[o][s]-r.i[o][s])*u,t.i[o][s]=f,f=i?r.o[o][s]:r.o[o][s]+(a.o[o][s]-r.o[o][s])*u,t.o[o][s]=f,f=i?r.v[o][s]:r.v[o][s]+(a.v[o][s]-r.v[o][s])*u,t.v[o][s]=f}function n(){var t=this.comp.renderedFrame-this.offsetTime,n=this.keyframes[0].t-this.offsetTime,r=this.keyframes[this.keyframes.length-1].t-this.offsetTime,a=this._caching.lastFrame;return a!==e&&(a<n&&t<n||a>r&&t>r)||(this._caching.lastIndex=a<t?this._caching.lastIndex:0,this.interpolateShape(t,this.pv,this._caching)),this._caching.lastFrame=t,this.pv}function r(){this.paths=this.localShapeCollection}function a(e){(function(e,t){if(e._length!==t._length||e.c!==t.c)return!1;var n,r=e._length;for(n=0;n<r;n+=1)if(e.v[n][0]!==t.v[n][0]||e.v[n][1]!==t.v[n][1]||e.o[n][0]!==t.o[n][0]||e.o[n][1]!==t.o[n][1]||e.i[n][0]!==t.i[n][0]||e.i[n][1]!==t.i[n][1])return!1;return!0})(this.v,e)||(this.v=shapePool.clone(e),this.localShapeCollection.releaseShapes(),this.localShapeCollection.addShape(this.v),this._mdf=!0,this.paths=this.localShapeCollection)}function i(){if(this.elem.globalData.frameId!==this.frameId)if(this.effectsSequence.length)if(this.lock)this.setVValue(this.pv);else{var e,t;this.lock=!0,this._mdf=!1,e=this.kf?this.pv:this.data.ks?this.data.ks.k:this.data.pt.k;var n=this.effectsSequence.length;for(t=0;t<n;t+=1)e=this.effectsSequence[t](e);this.setVValue(e),this.lock=!1,this.frameId=this.elem.globalData.frameId}else this._mdf=!1}function o(e,t,n){this.propType="shape",this.comp=e.comp,this.container=e,this.elem=e,this.data=t,this.k=!1,this.kf=!1,this._mdf=!1;var a=3===n?t.pt.k:t.ks.k;this.v=shapePool.clone(a),this.pv=shapePool.clone(this.v),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.reset=r,this.effectsSequence=[]}function s(e){this.effectsSequence.push(e),this.container.addDynamicProperty(this)}function l(t,a,i){this.propType="shape",this.comp=t.comp,this.elem=t,this.container=t,this.offsetTime=t.data.st,this.keyframes=3===i?a.pt.k:a.ks.k,this.keyframesMetadata=[],this.k=!0,this.kf=!0;var o=this.keyframes[0].s[0].i.length;this.v=shapePool.newElement(),this.v.setPathData(this.keyframes[0].s[0].c,o),this.pv=shapePool.clone(this.v),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.lastFrame=e,this.reset=r,this._caching={lastFrame:e,lastIndex:0},this.effectsSequence=[n.bind(this)]}o.prototype.interpolateShape=t,o.prototype.getValue=i,o.prototype.setVValue=a,o.prototype.addEffect=s,l.prototype.getValue=i,l.prototype.interpolateShape=t,l.prototype.setVValue=a,l.prototype.addEffect=s;var c=function(){var e=roundCorner;function t(e,t){this.v=shapePool.newElement(),this.v.setPathData(!0,4),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.localShapeCollection.addShape(this.v),this.d=t.d,this.elem=e,this.comp=e.comp,this.frameId=-1,this.initDynamicPropertyContainer(e),this.p=PropertyFactory.getProp(e,t.p,1,0,this),this.s=PropertyFactory.getProp(e,t.s,1,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertEllToPath())}return t.prototype={reset:r,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertEllToPath())},convertEllToPath:function(){var t=this.p.v[0],n=this.p.v[1],r=this.s.v[0]/2,a=this.s.v[1]/2,i=3!==this.d,o=this.v;o.v[0][0]=t,o.v[0][1]=n-a,o.v[1][0]=i?t+r:t-r,o.v[1][1]=n,o.v[2][0]=t,o.v[2][1]=n+a,o.v[3][0]=i?t-r:t+r,o.v[3][1]=n,o.i[0][0]=i?t-r*e:t+r*e,o.i[0][1]=n-a,o.i[1][0]=i?t+r:t-r,o.i[1][1]=n-a*e,o.i[2][0]=i?t+r*e:t-r*e,o.i[2][1]=n+a,o.i[3][0]=i?t-r:t+r,o.i[3][1]=n+a*e,o.o[0][0]=i?t+r*e:t-r*e,o.o[0][1]=n-a,o.o[1][0]=i?t+r:t-r,o.o[1][1]=n+a*e,o.o[2][0]=i?t-r*e:t+r*e,o.o[2][1]=n+a,o.o[3][0]=i?t-r:t+r,o.o[3][1]=n-a*e}},extendPrototype([DynamicPropertyContainer],t),t}(),u=function(){function e(e,t){this.v=shapePool.newElement(),this.v.setPathData(!0,0),this.elem=e,this.comp=e.comp,this.data=t,this.frameId=-1,this.d=t.d,this.initDynamicPropertyContainer(e),1===t.sy?(this.ir=PropertyFactory.getProp(e,t.ir,0,0,this),this.is=PropertyFactory.getProp(e,t.is,0,.01,this),this.convertToPath=this.convertStarToPath):this.convertToPath=this.convertPolygonToPath,this.pt=PropertyFactory.getProp(e,t.pt,0,0,this),this.p=PropertyFactory.getProp(e,t.p,1,0,this),this.r=PropertyFactory.getProp(e,t.r,0,degToRads,this),this.or=PropertyFactory.getProp(e,t.or,0,0,this),this.os=PropertyFactory.getProp(e,t.os,0,.01,this),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertToPath())}return e.prototype={reset:r,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertToPath())},convertStarToPath:function(){var e,t,n,r,a=2*Math.floor(this.pt.v),i=2*Math.PI/a,o=!0,s=this.or.v,l=this.ir.v,c=this.os.v,u=this.is.v,f=2*Math.PI*s/(2*a),h=2*Math.PI*l/(2*a),p=-Math.PI/2;p+=this.r.v;var d=3===this.data.d?-1:1;for(this.v._length=0,e=0;e<a;e+=1){n=o?c:u,r=o?f:h;var m=(t=o?s:l)*Math.cos(p),g=t*Math.sin(p),y=0===m&&0===g?0:g/Math.sqrt(m*m+g*g),v=0===m&&0===g?0:-m/Math.sqrt(m*m+g*g);m+=+this.p.v[0],g+=+this.p.v[1],this.v.setTripleAt(m,g,m-y*r*n*d,g-v*r*n*d,m+y*r*n*d,g+v*r*n*d,e,!0),o=!o,p+=i*d}},convertPolygonToPath:function(){var e,t=Math.floor(this.pt.v),n=2*Math.PI/t,r=this.or.v,a=this.os.v,i=2*Math.PI*r/(4*t),o=.5*-Math.PI,s=3===this.data.d?-1:1;for(o+=this.r.v,this.v._length=0,e=0;e<t;e+=1){var l=r*Math.cos(o),c=r*Math.sin(o),u=0===l&&0===c?0:c/Math.sqrt(l*l+c*c),f=0===l&&0===c?0:-l/Math.sqrt(l*l+c*c);l+=+this.p.v[0],c+=+this.p.v[1],this.v.setTripleAt(l,c,l-u*i*a*s,c-f*i*a*s,l+u*i*a*s,c+f*i*a*s,e,!0),o+=n*s}this.paths.length=0,this.paths[0]=this.v}},extendPrototype([DynamicPropertyContainer],e),e}(),f=function(){function e(e,t){this.v=shapePool.newElement(),this.v.c=!0,this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.elem=e,this.comp=e.comp,this.frameId=-1,this.d=t.d,this.initDynamicPropertyContainer(e),this.p=PropertyFactory.getProp(e,t.p,1,0,this),this.s=PropertyFactory.getProp(e,t.s,1,0,this),this.r=PropertyFactory.getProp(e,t.r,0,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertRectToPath())}return e.prototype={convertRectToPath:function(){var e=this.p.v[0],t=this.p.v[1],n=this.s.v[0]/2,r=this.s.v[1]/2,a=bmMin(n,r,this.r.v),i=a*(1-roundCorner);this.v._length=0,2===this.d||1===this.d?(this.v.setTripleAt(e+n,t-r+a,e+n,t-r+a,e+n,t-r+i,0,!0),this.v.setTripleAt(e+n,t+r-a,e+n,t+r-i,e+n,t+r-a,1,!0),0!==a?(this.v.setTripleAt(e+n-a,t+r,e+n-a,t+r,e+n-i,t+r,2,!0),this.v.setTripleAt(e-n+a,t+r,e-n+i,t+r,e-n+a,t+r,3,!0),this.v.setTripleAt(e-n,t+r-a,e-n,t+r-a,e-n,t+r-i,4,!0),this.v.setTripleAt(e-n,t-r+a,e-n,t-r+i,e-n,t-r+a,5,!0),this.v.setTripleAt(e-n+a,t-r,e-n+a,t-r,e-n+i,t-r,6,!0),this.v.setTripleAt(e+n-a,t-r,e+n-i,t-r,e+n-a,t-r,7,!0)):(this.v.setTripleAt(e-n,t+r,e-n+i,t+r,e-n,t+r,2),this.v.setTripleAt(e-n,t-r,e-n,t-r+i,e-n,t-r,3))):(this.v.setTripleAt(e+n,t-r+a,e+n,t-r+i,e+n,t-r+a,0,!0),0!==a?(this.v.setTripleAt(e+n-a,t-r,e+n-a,t-r,e+n-i,t-r,1,!0),this.v.setTripleAt(e-n+a,t-r,e-n+i,t-r,e-n+a,t-r,2,!0),this.v.setTripleAt(e-n,t-r+a,e-n,t-r+a,e-n,t-r+i,3,!0),this.v.setTripleAt(e-n,t+r-a,e-n,t+r-i,e-n,t+r-a,4,!0),this.v.setTripleAt(e-n+a,t+r,e-n+a,t+r,e-n+i,t+r,5,!0),this.v.setTripleAt(e+n-a,t+r,e+n-i,t+r,e+n-a,t+r,6,!0),this.v.setTripleAt(e+n,t+r-a,e+n,t+r-a,e+n,t+r-i,7,!0)):(this.v.setTripleAt(e-n,t-r,e-n+i,t-r,e-n,t-r,1,!0),this.v.setTripleAt(e-n,t+r,e-n,t+r-i,e-n,t+r,2,!0),this.v.setTripleAt(e+n,t+r,e+n-i,t+r,e+n,t+r,3,!0)))},getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertRectToPath())},reset:r},extendPrototype([DynamicPropertyContainer],e),e}();return{getShapeProp:function(e,t,n){var r;return 3===n||4===n?r=(3===n?t.pt:t.ks).k.length?new l(e,t,n):new o(e,t,n):5===n?r=new f(e,t):6===n?r=new c(e,t):7===n&&(r=new u(e,t)),r.k&&e.addDynamicProperty(r),r},getConstructorFunction:function(){return o},getKeyframedConstructorFunction:function(){return l}}}(),Matrix=function(){var e=Math.cos,t=Math.sin,n=Math.tan,r=Math.round;function a(){return this.props[0]=1,this.props[1]=0,this.props[2]=0,this.props[3]=0,this.props[4]=0,this.props[5]=1,this.props[6]=0,this.props[7]=0,this.props[8]=0,this.props[9]=0,this.props[10]=1,this.props[11]=0,this.props[12]=0,this.props[13]=0,this.props[14]=0,this.props[15]=1,this}function i(n){if(0===n)return this;var r=e(n),a=t(n);return this._t(r,-a,0,0,a,r,0,0,0,0,1,0,0,0,0,1)}function o(n){if(0===n)return this;var r=e(n),a=t(n);return this._t(1,0,0,0,0,r,-a,0,0,a,r,0,0,0,0,1)}function s(n){if(0===n)return this;var r=e(n),a=t(n);return this._t(r,0,a,0,0,1,0,0,-a,0,r,0,0,0,0,1)}function l(n){if(0===n)return this;var r=e(n),a=t(n);return this._t(r,-a,0,0,a,r,0,0,0,0,1,0,0,0,0,1)}function c(e,t){return this._t(1,t,e,1,0,0)}function u(e,t){return this.shear(n(e),n(t))}function f(r,a){var i=e(a),o=t(a);return this._t(i,o,0,0,-o,i,0,0,0,0,1,0,0,0,0,1)._t(1,0,0,0,n(r),1,0,0,0,0,1,0,0,0,0,1)._t(i,-o,0,0,o,i,0,0,0,0,1,0,0,0,0,1)}function h(e,t,n){return n||0===n||(n=1),1===e&&1===t&&1===n?this:this._t(e,0,0,0,0,t,0,0,0,0,n,0,0,0,0,1)}function p(e,t,n,r,a,i,o,s,l,c,u,f,h,p,d,m){return this.props[0]=e,this.props[1]=t,this.props[2]=n,this.props[3]=r,this.props[4]=a,this.props[5]=i,this.props[6]=o,this.props[7]=s,this.props[8]=l,this.props[9]=c,this.props[10]=u,this.props[11]=f,this.props[12]=h,this.props[13]=p,this.props[14]=d,this.props[15]=m,this}function d(e,t,n){return n=n||0,0!==e||0!==t||0!==n?this._t(1,0,0,0,0,1,0,0,0,0,1,0,e,t,n,1):this}function m(e,t,n,r,a,i,o,s,l,c,u,f,h,p,d,m){var g=this.props;if(1===e&&0===t&&0===n&&0===r&&0===a&&1===i&&0===o&&0===s&&0===l&&0===c&&1===u&&0===f)return g[12]=g[12]*e+g[15]*h,g[13]=g[13]*i+g[15]*p,g[14]=g[14]*u+g[15]*d,g[15]*=m,this._identityCalculated=!1,this;var y=g[0],v=g[1],b=g[2],_=g[3],w=g[4],S=g[5],x=g[6],k=g[7],C=g[8],E=g[9],P=g[10],A=g[11],O=g[12],M=g[13],T=g[14],I=g[15];return g[0]=y*e+v*a+b*l+_*h,g[1]=y*t+v*i+b*c+_*p,g[2]=y*n+v*o+b*u+_*d,g[3]=y*r+v*s+b*f+_*m,g[4]=w*e+S*a+x*l+k*h,g[5]=w*t+S*i+x*c+k*p,g[6]=w*n+S*o+x*u+k*d,g[7]=w*r+S*s+x*f+k*m,g[8]=C*e+E*a+P*l+A*h,g[9]=C*t+E*i+P*c+A*p,g[10]=C*n+E*o+P*u+A*d,g[11]=C*r+E*s+P*f+A*m,g[12]=O*e+M*a+T*l+I*h,g[13]=O*t+M*i+T*c+I*p,g[14]=O*n+M*o+T*u+I*d,g[15]=O*r+M*s+T*f+I*m,this._identityCalculated=!1,this}function g(e){var t=e.props;return this.transform(t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8],t[9],t[10],t[11],t[12],t[13],t[14],t[15])}function y(){return this._identityCalculated||(this._identity=!(1!==this.props[0]||0!==this.props[1]||0!==this.props[2]||0!==this.props[3]||0!==this.props[4]||1!==this.props[5]||0!==this.props[6]||0!==this.props[7]||0!==this.props[8]||0!==this.props[9]||1!==this.props[10]||0!==this.props[11]||0!==this.props[12]||0!==this.props[13]||0!==this.props[14]||1!==this.props[15]),this._identityCalculated=!0),this._identity}function v(e){for(var t=0;t<16;){if(e.props[t]!==this.props[t])return!1;t+=1}return!0}function b(e){var t;for(t=0;t<16;t+=1)e.props[t]=this.props[t];return e}function _(e){var t;for(t=0;t<16;t+=1)this.props[t]=e[t]}function w(e,t,n){return{x:e*this.props[0]+t*this.props[4]+n*this.props[8]+this.props[12],y:e*this.props[1]+t*this.props[5]+n*this.props[9]+this.props[13],z:e*this.props[2]+t*this.props[6]+n*this.props[10]+this.props[14]}}function S(e,t,n){return e*this.props[0]+t*this.props[4]+n*this.props[8]+this.props[12]}function x(e,t,n){return e*this.props[1]+t*this.props[5]+n*this.props[9]+this.props[13]}function k(e,t,n){return e*this.props[2]+t*this.props[6]+n*this.props[10]+this.props[14]}function C(){var e=this.props[0]*this.props[5]-this.props[1]*this.props[4],t=this.props[5]/e,n=-this.props[1]/e,r=-this.props[4]/e,a=this.props[0]/e,i=(this.props[4]*this.props[13]-this.props[5]*this.props[12])/e,o=-(this.props[0]*this.props[13]-this.props[1]*this.props[12])/e,s=new Matrix;return s.props[0]=t,s.props[1]=n,s.props[4]=r,s.props[5]=a,s.props[12]=i,s.props[13]=o,s}function E(e){return this.getInverseMatrix().applyToPointArray(e[0],e[1],e[2]||0)}function P(e){var t,n=e.length,r=[];for(t=0;t<n;t+=1)r[t]=E(e[t]);return r}function A(e,t,n){var r=createTypedArray("float32",6);if(this.isIdentity())r[0]=e[0],r[1]=e[1],r[2]=t[0],r[3]=t[1],r[4]=n[0],r[5]=n[1];else{var a=this.props[0],i=this.props[1],o=this.props[4],s=this.props[5],l=this.props[12],c=this.props[13];r[0]=e[0]*a+e[1]*o+l,r[1]=e[0]*i+e[1]*s+c,r[2]=t[0]*a+t[1]*o+l,r[3]=t[0]*i+t[1]*s+c,r[4]=n[0]*a+n[1]*o+l,r[5]=n[0]*i+n[1]*s+c}return r}function O(e,t,n){return this.isIdentity()?[e,t,n]:[e*this.props[0]+t*this.props[4]+n*this.props[8]+this.props[12],e*this.props[1]+t*this.props[5]+n*this.props[9]+this.props[13],e*this.props[2]+t*this.props[6]+n*this.props[10]+this.props[14]]}function M(e,t){if(this.isIdentity())return e+","+t;var n=this.props;return Math.round(100*(e*n[0]+t*n[4]+n[12]))/100+","+Math.round(100*(e*n[1]+t*n[5]+n[13]))/100}function T(){for(var e=0,t=this.props,n="matrix3d(";e<16;)n+=r(1e4*t[e])/1e4,n+=15===e?")":",",e+=1;return n}function I(e){return e<1e-6&&e>0||e>-1e-6&&e<0?r(1e4*e)/1e4:e}function D(){var e=this.props;return"matrix("+I(e[0])+","+I(e[1])+","+I(e[4])+","+I(e[5])+","+I(e[12])+","+I(e[13])+")"}return function(){this.reset=a,this.rotate=i,this.rotateX=o,this.rotateY=s,this.rotateZ=l,this.skew=u,this.skewFromAxis=f,this.shear=c,this.scale=h,this.setTransform=p,this.translate=d,this.transform=m,this.multiply=g,this.applyToPoint=w,this.applyToX=S,this.applyToY=x,this.applyToZ=k,this.applyToPointArray=O,this.applyToTriplePoints=A,this.applyToPointStringified=M,this.toCSS=T,this.to2dCSS=D,this.clone=b,this.cloneFromProps=_,this.equals=v,this.inversePoints=P,this.inversePoint=E,this.getInverseMatrix=C,this._t=this.transform,this.isIdentity=y,this._identity=!0,this._identityCalculated=!1,this.props=createTypedArray("float32",16),this.reset()}}();function _typeof$3(e){return _typeof$3="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},_typeof$3(e)}var lottie={},standalone="__[STANDALONE]__",animationData="__[ANIMATIONDATA]__",renderer="";function setLocation(e){setLocationHref(e)}function searchAnimations(){!0===standalone?animationManager.searchAnimations(animationData,standalone,renderer):animationManager.searchAnimations()}function setSubframeRendering(e){setSubframeEnabled(e)}function setPrefix(e){setIdPrefix(e)}function loadAnimation(e){return!0===standalone&&(e.animationData=JSON.parse(animationData)),animationManager.loadAnimation(e)}function setQuality(e){if("string"==typeof e)switch(e){case"high":setDefaultCurveSegments(200);break;default:case"medium":setDefaultCurveSegments(50);break;case"low":setDefaultCurveSegments(10)}else!isNaN(e)&&e>1&&setDefaultCurveSegments(e);getDefaultCurveSegments()>=50?roundValues(!1):roundValues(!0)}function inBrowser(){return"undefined"!=typeof navigator}function installPlugin(e,t){"expressions"===e&&setExpressionsPlugin(t)}function getFactory(e){switch(e){case"propertyFactory":return PropertyFactory;case"shapePropertyFactory":return ShapePropertyFactory;case"matrix":return Matrix;default:return null}}function checkReady(){"complete"===document.readyState&&(clearInterval(readyStateCheckInterval),searchAnimations())}function getQueryVariable(e){for(var t=queryString.split("&"),n=0;n<t.length;n+=1){var r=t[n].split("=");if(decodeURIComponent(r[0])==e)return decodeURIComponent(r[1])}return null}lottie.play=animationManager.play,lottie.pause=animationManager.pause,lottie.setLocationHref=setLocation,lottie.togglePause=animationManager.togglePause,lottie.setSpeed=animationManager.setSpeed,lottie.setDirection=animationManager.setDirection,lottie.stop=animationManager.stop,lottie.searchAnimations=searchAnimations,lottie.registerAnimation=animationManager.registerAnimation,lottie.loadAnimation=loadAnimation,lottie.setSubframeRendering=setSubframeRendering,lottie.resize=animationManager.resize,lottie.goToAndStop=animationManager.goToAndStop,lottie.destroy=animationManager.destroy,lottie.setQuality=setQuality,lottie.inBrowser=inBrowser,lottie.installPlugin=installPlugin,lottie.freeze=animationManager.freeze,lottie.unfreeze=animationManager.unfreeze,lottie.setVolume=animationManager.setVolume,lottie.mute=animationManager.mute,lottie.unmute=animationManager.unmute,lottie.getRegisteredAnimations=animationManager.getRegisteredAnimations,lottie.useWebWorker=setWebWorker,lottie.setIDPrefix=setPrefix,lottie.__getFactory=getFactory,lottie.version="5.13.0";var queryString="";if(standalone){var scripts=document.getElementsByTagName("script"),index=scripts.length-1,myScript=scripts[index]||{src:""};queryString=myScript.src?myScript.src.replace(/^[^\?]+\??/,""):"",renderer=getQueryVariable("renderer")}var readyStateCheckInterval=setInterval(checkReady,100);try{"object"!==_typeof$3(exports)&&__webpack_require__.amdO}catch(e){}var ShapeModifiers=function(){var e={},t={};return e.registerModifier=function(e,n){t[e]||(t[e]=n)},e.getModifier=function(e,n,r){return new t[e](n,r)},e}();function ShapeModifier(){}function TrimModifier(){}function PuckerAndBloatModifier(){}ShapeModifier.prototype.initModifierProperties=function(){},ShapeModifier.prototype.addShapeToModifier=function(){},ShapeModifier.prototype.addShape=function(e){if(!this.closed){e.sh.container.addDynamicProperty(e.sh);var t={shape:e.sh,data:e,localShapeCollection:shapeCollectionPool.newShapeCollection()};this.shapes.push(t),this.addShapeToModifier(t),this._isAnimated&&e.setAsAnimated()}},ShapeModifier.prototype.init=function(e,t){this.shapes=[],this.elem=e,this.initDynamicPropertyContainer(e),this.initModifierProperties(e,t),this.frameId=initialDefaultFrame,this.closed=!1,this.k=!1,this.dynamicProperties.length?this.k=!0:this.getValue(!0)},ShapeModifier.prototype.processKeys=function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties())},extendPrototype([DynamicPropertyContainer],ShapeModifier),extendPrototype([ShapeModifier],TrimModifier),TrimModifier.prototype.initModifierProperties=function(e,t){this.s=PropertyFactory.getProp(e,t.s,0,.01,this),this.e=PropertyFactory.getProp(e,t.e,0,.01,this),this.o=PropertyFactory.getProp(e,t.o,0,0,this),this.sValue=0,this.eValue=0,this.getValue=this.processKeys,this.m=t.m,this._isAnimated=!!this.s.effectsSequence.length||!!this.e.effectsSequence.length||!!this.o.effectsSequence.length},TrimModifier.prototype.addShapeToModifier=function(e){e.pathsData=[]},TrimModifier.prototype.calculateShapeEdges=function(e,t,n,r,a){var i=[];t<=1?i.push({s:e,e:t}):e>=1?i.push({s:e-1,e:t-1}):(i.push({s:e,e:1}),i.push({s:0,e:t-1}));var o,s,l=[],c=i.length;for(o=0;o<c;o+=1){var u,f;(s=i[o]).e*a<r||s.s*a>r+n||(u=s.s*a<=r?0:(s.s*a-r)/n,f=s.e*a>=r+n?1:(s.e*a-r)/n,l.push([u,f]))}return l.length||l.push([0,0]),l},TrimModifier.prototype.releasePathsData=function(e){var t,n=e.length;for(t=0;t<n;t+=1)segmentsLengthPool.release(e[t]);return e.length=0,e},TrimModifier.prototype.processShapes=function(e){var t,n,r,a;if(this._mdf||e){var i=this.o.v%360/360;if(i<0&&(i+=1),(t=this.s.v>1?1+i:this.s.v<0?0+i:this.s.v+i)>(n=this.e.v>1?1+i:this.e.v<0?0+i:this.e.v+i)){var o=t;t=n,n=o}t=1e-4*Math.round(1e4*t),n=1e-4*Math.round(1e4*n),this.sValue=t,this.eValue=n}else t=this.sValue,n=this.eValue;var s,l,c,u,f,h=this.shapes.length,p=0;if(n===t)for(a=0;a<h;a+=1)this.shapes[a].localShapeCollection.releaseShapes(),this.shapes[a].shape._mdf=!0,this.shapes[a].shape.paths=this.shapes[a].localShapeCollection,this._mdf&&(this.shapes[a].pathsData.length=0);else if(1===n&&0===t||0===n&&1===t){if(this._mdf)for(a=0;a<h;a+=1)this.shapes[a].pathsData.length=0,this.shapes[a].shape._mdf=!0}else{var d,m,g=[];for(a=0;a<h;a+=1)if((d=this.shapes[a]).shape._mdf||this._mdf||e||2===this.m){if(l=(r=d.shape.paths)._length,f=0,!d.shape._mdf&&d.pathsData.length)f=d.totalShapeLength;else{for(c=this.releasePathsData(d.pathsData),s=0;s<l;s+=1)u=bez.getSegmentsLength(r.shapes[s]),c.push(u),f+=u.totalLength;d.totalShapeLength=f,d.pathsData=c}p+=f,d.shape._mdf=!0}else d.shape.paths=d.localShapeCollection;var y,v=t,b=n,_=0;for(a=h-1;a>=0;a-=1)if((d=this.shapes[a]).shape._mdf){for((m=d.localShapeCollection).releaseShapes(),2===this.m&&h>1?(y=this.calculateShapeEdges(t,n,d.totalShapeLength,_,p),_+=d.totalShapeLength):y=[[v,b]],l=y.length,s=0;s<l;s+=1){v=y[s][0],b=y[s][1],g.length=0,b<=1?g.push({s:d.totalShapeLength*v,e:d.totalShapeLength*b}):v>=1?g.push({s:d.totalShapeLength*(v-1),e:d.totalShapeLength*(b-1)}):(g.push({s:d.totalShapeLength*v,e:d.totalShapeLength}),g.push({s:0,e:d.totalShapeLength*(b-1)}));var w=this.addShapes(d,g[0]);if(g[0].s!==g[0].e){if(g.length>1)if(d.shape.paths.shapes[d.shape.paths._length-1].c){var S=w.pop();this.addPaths(w,m),w=this.addShapes(d,g[1],S)}else this.addPaths(w,m),w=this.addShapes(d,g[1]);this.addPaths(w,m)}}d.shape.paths=m}}},TrimModifier.prototype.addPaths=function(e,t){var n,r=e.length;for(n=0;n<r;n+=1)t.addShape(e[n])},TrimModifier.prototype.addSegment=function(e,t,n,r,a,i,o){a.setXYAt(t[0],t[1],"o",i),a.setXYAt(n[0],n[1],"i",i+1),o&&a.setXYAt(e[0],e[1],"v",i),a.setXYAt(r[0],r[1],"v",i+1)},TrimModifier.prototype.addSegmentFromArray=function(e,t,n,r){t.setXYAt(e[1],e[5],"o",n),t.setXYAt(e[2],e[6],"i",n+1),r&&t.setXYAt(e[0],e[4],"v",n),t.setXYAt(e[3],e[7],"v",n+1)},TrimModifier.prototype.addShapes=function(e,t,n){var r,a,i,o,s,l,c,u,f=e.pathsData,h=e.shape.paths.shapes,p=e.shape.paths._length,d=0,m=[],g=!0;for(n?(s=n._length,u=n._length):(n=shapePool.newElement(),s=0,u=0),m.push(n),r=0;r<p;r+=1){for(l=f[r].lengths,n.c=h[r].c,i=h[r].c?l.length:l.length+1,a=1;a<i;a+=1)if(d+(o=l[a-1]).addedLength<t.s)d+=o.addedLength,n.c=!1;else{if(d>t.e){n.c=!1;break}t.s<=d&&t.e>=d+o.addedLength?(this.addSegment(h[r].v[a-1],h[r].o[a-1],h[r].i[a],h[r].v[a],n,s,g),g=!1):(c=bez.getNewSegment(h[r].v[a-1],h[r].v[a],h[r].o[a-1],h[r].i[a],(t.s-d)/o.addedLength,(t.e-d)/o.addedLength,l[a-1]),this.addSegmentFromArray(c,n,s,g),g=!1,n.c=!1),d+=o.addedLength,s+=1}if(h[r].c&&l.length){if(o=l[a-1],d<=t.e){var y=l[a-1].addedLength;t.s<=d&&t.e>=d+y?(this.addSegment(h[r].v[a-1],h[r].o[a-1],h[r].i[0],h[r].v[0],n,s,g),g=!1):(c=bez.getNewSegment(h[r].v[a-1],h[r].v[0],h[r].o[a-1],h[r].i[0],(t.s-d)/y,(t.e-d)/y,l[a-1]),this.addSegmentFromArray(c,n,s,g),g=!1,n.c=!1)}else n.c=!1;d+=o.addedLength,s+=1}if(n._length&&(n.setXYAt(n.v[u][0],n.v[u][1],"i",u),n.setXYAt(n.v[n._length-1][0],n.v[n._length-1][1],"o",n._length-1)),d>t.e)break;r<p-1&&(n=shapePool.newElement(),g=!0,m.push(n),s=0)}return m},extendPrototype([ShapeModifier],PuckerAndBloatModifier),PuckerAndBloatModifier.prototype.initModifierProperties=function(e,t){this.getValue=this.processKeys,this.amount=PropertyFactory.getProp(e,t.a,0,null,this),this._isAnimated=!!this.amount.effectsSequence.length},PuckerAndBloatModifier.prototype.processPath=function(e,t){var n=t/100,r=[0,0],a=e._length,i=0;for(i=0;i<a;i+=1)r[0]+=e.v[i][0],r[1]+=e.v[i][1];r[0]/=a,r[1]/=a;var o,s,l,c,u,f,h=shapePool.newElement();for(h.c=e.c,i=0;i<a;i+=1)o=e.v[i][0]+(r[0]-e.v[i][0])*n,s=e.v[i][1]+(r[1]-e.v[i][1])*n,l=e.o[i][0]+(r[0]-e.o[i][0])*-n,c=e.o[i][1]+(r[1]-e.o[i][1])*-n,u=e.i[i][0]+(r[0]-e.i[i][0])*-n,f=e.i[i][1]+(r[1]-e.i[i][1])*-n,h.setTripleAt(o,s,l,c,u,f,i);return h},PuckerAndBloatModifier.prototype.processShapes=function(e){var t,n,r,a,i,o,s=this.shapes.length,l=this.amount.v;if(0!==l)for(n=0;n<s;n+=1){if(o=(i=this.shapes[n]).localShapeCollection,i.shape._mdf||this._mdf||e)for(o.releaseShapes(),i.shape._mdf=!0,t=i.shape.paths.shapes,a=i.shape.paths._length,r=0;r<a;r+=1)o.addShape(this.processPath(t[r],l));i.shape.paths=i.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)};var TransformPropertyFactory=function(){var e=[0,0];function t(e,t,n){if(this.elem=e,this.frameId=-1,this.propType="transform",this.data=t,this.v=new Matrix,this.pre=new Matrix,this.appliedTransformations=0,this.initDynamicPropertyContainer(n||e),t.p&&t.p.s?(this.px=PropertyFactory.getProp(e,t.p.x,0,0,this),this.py=PropertyFactory.getProp(e,t.p.y,0,0,this),t.p.z&&(this.pz=PropertyFactory.getProp(e,t.p.z,0,0,this))):this.p=PropertyFactory.getProp(e,t.p||{k:[0,0,0]},1,0,this),t.rx){if(this.rx=PropertyFactory.getProp(e,t.rx,0,degToRads,this),this.ry=PropertyFactory.getProp(e,t.ry,0,degToRads,this),this.rz=PropertyFactory.getProp(e,t.rz,0,degToRads,this),t.or.k[0].ti){var r,a=t.or.k.length;for(r=0;r<a;r+=1)t.or.k[r].to=null,t.or.k[r].ti=null}this.or=PropertyFactory.getProp(e,t.or,1,degToRads,this),this.or.sh=!0}else this.r=PropertyFactory.getProp(e,t.r||{k:0},0,degToRads,this);t.sk&&(this.sk=PropertyFactory.getProp(e,t.sk,0,degToRads,this),this.sa=PropertyFactory.getProp(e,t.sa,0,degToRads,this)),this.a=PropertyFactory.getProp(e,t.a||{k:[0,0,0]},1,0,this),this.s=PropertyFactory.getProp(e,t.s||{k:[100,100,100]},1,.01,this),t.o?this.o=PropertyFactory.getProp(e,t.o,0,.01,e):this.o={_mdf:!1,v:1},this._isDirty=!0,this.dynamicProperties.length||this.getValue(!0)}return t.prototype={applyToMatrix:function(e){var t=this._mdf;this.iterateDynamicProperties(),this._mdf=this._mdf||t,this.a&&e.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.s&&e.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&e.skewFromAxis(-this.sk.v,this.sa.v),this.r?e.rotate(-this.r.v):e.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.data.p.s?this.data.p.z?e.translate(this.px.v,this.py.v,-this.pz.v):e.translate(this.px.v,this.py.v,0):e.translate(this.p.v[0],this.p.v[1],-this.p.v[2])},getValue:function(t){if(this.elem.globalData.frameId!==this.frameId){if(this._isDirty&&(this.precalculateMatrix(),this._isDirty=!1),this.iterateDynamicProperties(),this._mdf||t){var n;if(this.v.cloneFromProps(this.pre.props),this.appliedTransformations<1&&this.v.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations<2&&this.v.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&this.appliedTransformations<3&&this.v.skewFromAxis(-this.sk.v,this.sa.v),this.r&&this.appliedTransformations<4?this.v.rotate(-this.r.v):!this.r&&this.appliedTransformations<4&&this.v.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.autoOriented){var r,a;if(n=this.elem.globalData.frameRate,this.p&&this.p.keyframes&&this.p.getValueAtTime)this.p._caching.lastFrame+this.p.offsetTime<=this.p.keyframes[0].t?(r=this.p.getValueAtTime((this.p.keyframes[0].t+.01)/n,0),a=this.p.getValueAtTime(this.p.keyframes[0].t/n,0)):this.p._caching.lastFrame+this.p.offsetTime>=this.p.keyframes[this.p.keyframes.length-1].t?(r=this.p.getValueAtTime(this.p.keyframes[this.p.keyframes.length-1].t/n,0),a=this.p.getValueAtTime((this.p.keyframes[this.p.keyframes.length-1].t-.05)/n,0)):(r=this.p.pv,a=this.p.getValueAtTime((this.p._caching.lastFrame+this.p.offsetTime-.01)/n,this.p.offsetTime));else if(this.px&&this.px.keyframes&&this.py.keyframes&&this.px.getValueAtTime&&this.py.getValueAtTime){r=[],a=[];var i=this.px,o=this.py;i._caching.lastFrame+i.offsetTime<=i.keyframes[0].t?(r[0]=i.getValueAtTime((i.keyframes[0].t+.01)/n,0),r[1]=o.getValueAtTime((o.keyframes[0].t+.01)/n,0),a[0]=i.getValueAtTime(i.keyframes[0].t/n,0),a[1]=o.getValueAtTime(o.keyframes[0].t/n,0)):i._caching.lastFrame+i.offsetTime>=i.keyframes[i.keyframes.length-1].t?(r[0]=i.getValueAtTime(i.keyframes[i.keyframes.length-1].t/n,0),r[1]=o.getValueAtTime(o.keyframes[o.keyframes.length-1].t/n,0),a[0]=i.getValueAtTime((i.keyframes[i.keyframes.length-1].t-.01)/n,0),a[1]=o.getValueAtTime((o.keyframes[o.keyframes.length-1].t-.01)/n,0)):(r=[i.pv,o.pv],a[0]=i.getValueAtTime((i._caching.lastFrame+i.offsetTime-.01)/n,i.offsetTime),a[1]=o.getValueAtTime((o._caching.lastFrame+o.offsetTime-.01)/n,o.offsetTime))}else r=a=e;this.v.rotate(-Math.atan2(r[1]-a[1],r[0]-a[0]))}this.data.p&&this.data.p.s?this.data.p.z?this.v.translate(this.px.v,this.py.v,-this.pz.v):this.v.translate(this.px.v,this.py.v,0):this.v.translate(this.p.v[0],this.p.v[1],-this.p.v[2])}this.frameId=this.elem.globalData.frameId}},precalculateMatrix:function(){if(this.appliedTransformations=0,this.pre.reset(),!this.a.effectsSequence.length&&(this.pre.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations=1,!this.s.effectsSequence.length)){if(this.pre.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.appliedTransformations=2,this.sk){if(this.sk.effectsSequence.length||this.sa.effectsSequence.length)return;this.pre.skewFromAxis(-this.sk.v,this.sa.v),this.appliedTransformations=3}this.r?this.r.effectsSequence.length||(this.pre.rotate(-this.r.v),this.appliedTransformations=4):this.rz.effectsSequence.length||this.ry.effectsSequence.length||this.rx.effectsSequence.length||this.or.effectsSequence.length||(this.pre.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.appliedTransformations=4)}},autoOrient:function(){}},extendPrototype([DynamicPropertyContainer],t),t.prototype.addDynamicProperty=function(e){this._addDynamicProperty(e),this.elem.addDynamicProperty(e),this._isDirty=!0},t.prototype._addDynamicProperty=DynamicPropertyContainer.prototype.addDynamicProperty,{getTransformProperty:function(e,n,r){return new t(e,n,r)}}}();function RepeaterModifier(){}function RoundCornersModifier(){}function floatEqual(e,t){return 1e5*Math.abs(e-t)<=Math.min(Math.abs(e),Math.abs(t))}function floatZero(e){return Math.abs(e)<=1e-5}function lerp(e,t,n){return e*(1-n)+t*n}function lerpPoint(e,t,n){return[lerp(e[0],t[0],n),lerp(e[1],t[1],n)]}function quadRoots(e,t,n){if(0===e)return[];var r=t*t-4*e*n;if(r<0)return[];var a=-t/(2*e);if(0===r)return[a];var i=Math.sqrt(r)/(2*e);return[a-i,a+i]}function polynomialCoefficients(e,t,n,r){return[3*t-e-3*n+r,3*e-6*t+3*n,-3*e+3*t,e]}function singlePoint(e){return new PolynomialBezier(e,e,e,e,!1)}function PolynomialBezier(e,t,n,r,a){a&&pointEqual(e,t)&&(t=lerpPoint(e,r,1/3)),a&&pointEqual(n,r)&&(n=lerpPoint(e,r,2/3));var i=polynomialCoefficients(e[0],t[0],n[0],r[0]),o=polynomialCoefficients(e[1],t[1],n[1],r[1]);this.a=[i[0],o[0]],this.b=[i[1],o[1]],this.c=[i[2],o[2]],this.d=[i[3],o[3]],this.points=[e,t,n,r]}function extrema(e,t){var n=e.points[0][t],r=e.points[e.points.length-1][t];if(n>r){var a=r;r=n,n=a}for(var i=quadRoots(3*e.a[t],2*e.b[t],e.c[t]),o=0;o<i.length;o+=1)if(i[o]>0&&i[o]<1){var s=e.point(i[o])[t];s<n?n=s:s>r&&(r=s)}return{min:n,max:r}}function intersectData(e,t,n){var r=e.boundingBox();return{cx:r.cx,cy:r.cy,width:r.width,height:r.height,bez:e,t:(t+n)/2,t1:t,t2:n}}function splitData(e){var t=e.bez.split(.5);return[intersectData(t[0],e.t1,e.t),intersectData(t[1],e.t,e.t2)]}function boxIntersect(e,t){return 2*Math.abs(e.cx-t.cx)<e.width+t.width&&2*Math.abs(e.cy-t.cy)<e.height+t.height}function intersectsImpl(e,t,n,r,a,i){if(boxIntersect(e,t))if(n>=i||e.width<=r&&e.height<=r&&t.width<=r&&t.height<=r)a.push([e.t,t.t]);else{var o=splitData(e),s=splitData(t);intersectsImpl(o[0],s[0],n+1,r,a,i),intersectsImpl(o[0],s[1],n+1,r,a,i),intersectsImpl(o[1],s[0],n+1,r,a,i),intersectsImpl(o[1],s[1],n+1,r,a,i)}}function crossProduct(e,t){return[e[1]*t[2]-e[2]*t[1],e[2]*t[0]-e[0]*t[2],e[0]*t[1]-e[1]*t[0]]}function lineIntersection(e,t,n,r){var a=[e[0],e[1],1],i=[t[0],t[1],1],o=[n[0],n[1],1],s=[r[0],r[1],1],l=crossProduct(crossProduct(a,i),crossProduct(o,s));return floatZero(l[2])?null:[l[0]/l[2],l[1]/l[2]]}function polarOffset(e,t,n){return[e[0]+Math.cos(t)*n,e[1]-Math.sin(t)*n]}function pointDistance(e,t){return Math.hypot(e[0]-t[0],e[1]-t[1])}function pointEqual(e,t){return floatEqual(e[0],t[0])&&floatEqual(e[1],t[1])}function ZigZagModifier(){}function setPoint(e,t,n,r,a,i,o){var s=n-Math.PI/2,l=n+Math.PI/2,c=t[0]+Math.cos(n)*r*a,u=t[1]-Math.sin(n)*r*a;e.setTripleAt(c,u,c+Math.cos(s)*i,u-Math.sin(s)*i,c+Math.cos(l)*o,u-Math.sin(l)*o,e.length())}function getPerpendicularVector(e,t){var n=[t[0]-e[0],t[1]-e[1]],r=.5*-Math.PI;return[Math.cos(r)*n[0]-Math.sin(r)*n[1],Math.sin(r)*n[0]+Math.cos(r)*n[1]]}function getProjectingAngle(e,t){var n=0===t?e.length()-1:t-1,r=(t+1)%e.length(),a=getPerpendicularVector(e.v[n],e.v[r]);return Math.atan2(0,1)-Math.atan2(a[1],a[0])}function zigZagCorner(e,t,n,r,a,i,o){var s=getProjectingAngle(t,n),l=t.v[n%t._length],c=t.v[0===n?t._length-1:n-1],u=t.v[(n+1)%t._length],f=2===i?Math.sqrt(Math.pow(l[0]-c[0],2)+Math.pow(l[1]-c[1],2)):0,h=2===i?Math.sqrt(Math.pow(l[0]-u[0],2)+Math.pow(l[1]-u[1],2)):0;setPoint(e,t.v[n%t._length],s,o,r,h/(2*(a+1)),f/(2*(a+1)),i)}function zigZagSegment(e,t,n,r,a,i){for(var o=0;o<r;o+=1){var s=(o+1)/(r+1),l=2===a?Math.sqrt(Math.pow(t.points[3][0]-t.points[0][0],2)+Math.pow(t.points[3][1]-t.points[0][1],2)):0,c=t.normalAngle(s);setPoint(e,t.point(s),c,i,n,l/(2*(r+1)),l/(2*(r+1)),a),i=-i}return i}function linearOffset(e,t,n){var r=Math.atan2(t[0]-e[0],t[1]-e[1]);return[polarOffset(e,r,n),polarOffset(t,r,n)]}function offsetSegment(e,t){var n,r,a,i,o,s,l;n=(l=linearOffset(e.points[0],e.points[1],t))[0],r=l[1],a=(l=linearOffset(e.points[1],e.points[2],t))[0],i=l[1],o=(l=linearOffset(e.points[2],e.points[3],t))[0],s=l[1];var c=lineIntersection(n,r,a,i);null===c&&(c=r);var u=lineIntersection(o,s,a,i);return null===u&&(u=o),new PolynomialBezier(n,c,u,s)}function joinLines(e,t,n,r,a){var i=t.points[3],o=n.points[0];if(3===r)return i;if(pointEqual(i,o))return i;if(2===r){var s=-t.tangentAngle(1),l=-n.tangentAngle(0)+Math.PI,c=lineIntersection(i,polarOffset(i,s+Math.PI/2,100),o,polarOffset(o,s+Math.PI/2,100)),u=c?pointDistance(c,i):pointDistance(i,o)/2,f=polarOffset(i,s,2*u*roundCorner);return e.setXYAt(f[0],f[1],"o",e.length()-1),f=polarOffset(o,l,2*u*roundCorner),e.setTripleAt(o[0],o[1],o[0],o[1],f[0],f[1],e.length()),o}var h=lineIntersection(pointEqual(i,t.points[2])?t.points[0]:t.points[2],i,o,pointEqual(o,n.points[1])?n.points[3]:n.points[1]);return h&&pointDistance(h,i)<a?(e.setTripleAt(h[0],h[1],h[0],h[1],h[0],h[1],e.length()),h):i}function getIntersection(e,t){var n=e.intersections(t);return n.length&&floatEqual(n[0][0],1)&&n.shift(),n.length?n[0]:null}function pruneSegmentIntersection(e,t){var n=e.slice(),r=t.slice(),a=getIntersection(e[e.length-1],t[0]);return a&&(n[e.length-1]=e[e.length-1].split(a[0])[0],r[0]=t[0].split(a[1])[1]),e.length>1&&t.length>1&&(a=getIntersection(e[0],t[t.length-1]))?[[e[0].split(a[0])[0]],[t[t.length-1].split(a[1])[1]]]:[n,r]}function pruneIntersections(e){for(var t,n=1;n<e.length;n+=1)t=pruneSegmentIntersection(e[n-1],e[n]),e[n-1]=t[0],e[n]=t[1];return e.length>1&&(t=pruneSegmentIntersection(e[e.length-1],e[0]),e[e.length-1]=t[0],e[0]=t[1]),e}function offsetSegmentSplit(e,t){var n,r,a,i,o=e.inflectionPoints();if(0===o.length)return[offsetSegment(e,t)];if(1===o.length||floatEqual(o[1],1))return n=(a=e.split(o[0]))[0],r=a[1],[offsetSegment(n,t),offsetSegment(r,t)];n=(a=e.split(o[0]))[0];var s=(o[1]-o[0])/(1-o[0]);return i=(a=a[1].split(s))[0],r=a[1],[offsetSegment(n,t),offsetSegment(i,t),offsetSegment(r,t)]}function OffsetPathModifier(){}function getFontProperties(e){for(var t=e.fStyle?e.fStyle.split(" "):[],n="normal",r="normal",a=t.length,i=0;i<a;i+=1)switch(t[i].toLowerCase()){case"italic":r="italic";break;case"bold":n="700";break;case"black":n="900";break;case"medium":n="500";break;case"regular":case"normal":n="400";break;case"light":case"thin":n="200"}return{style:r,weight:e.fWeight||n}}extendPrototype([ShapeModifier],RepeaterModifier),RepeaterModifier.prototype.initModifierProperties=function(e,t){this.getValue=this.processKeys,this.c=PropertyFactory.getProp(e,t.c,0,null,this),this.o=PropertyFactory.getProp(e,t.o,0,null,this),this.tr=TransformPropertyFactory.getTransformProperty(e,t.tr,this),this.so=PropertyFactory.getProp(e,t.tr.so,0,.01,this),this.eo=PropertyFactory.getProp(e,t.tr.eo,0,.01,this),this.data=t,this.dynamicProperties.length||this.getValue(!0),this._isAnimated=!!this.dynamicProperties.length,this.pMatrix=new Matrix,this.rMatrix=new Matrix,this.sMatrix=new Matrix,this.tMatrix=new Matrix,this.matrix=new Matrix},RepeaterModifier.prototype.applyTransforms=function(e,t,n,r,a,i){var o=i?-1:1,s=r.s.v[0]+(1-r.s.v[0])*(1-a),l=r.s.v[1]+(1-r.s.v[1])*(1-a);e.translate(r.p.v[0]*o*a,r.p.v[1]*o*a,r.p.v[2]),t.translate(-r.a.v[0],-r.a.v[1],r.a.v[2]),t.rotate(-r.r.v*o*a),t.translate(r.a.v[0],r.a.v[1],r.a.v[2]),n.translate(-r.a.v[0],-r.a.v[1],r.a.v[2]),n.scale(i?1/s:s,i?1/l:l),n.translate(r.a.v[0],r.a.v[1],r.a.v[2])},RepeaterModifier.prototype.init=function(e,t,n,r){for(this.elem=e,this.arr=t,this.pos=n,this.elemsData=r,this._currentCopies=0,this._elements=[],this._groups=[],this.frameId=-1,this.initDynamicPropertyContainer(e),this.initModifierProperties(e,t[n]);n>0;)n-=1,this._elements.unshift(t[n]);this.dynamicProperties.length?this.k=!0:this.getValue(!0)},RepeaterModifier.prototype.resetElements=function(e){var t,n=e.length;for(t=0;t<n;t+=1)e[t]._processed=!1,"gr"===e[t].ty&&this.resetElements(e[t].it)},RepeaterModifier.prototype.cloneElements=function(e){var t=JSON.parse(JSON.stringify(e));return this.resetElements(t),t},RepeaterModifier.prototype.changeGroupRender=function(e,t){var n,r=e.length;for(n=0;n<r;n+=1)e[n]._render=t,"gr"===e[n].ty&&this.changeGroupRender(e[n].it,t)},RepeaterModifier.prototype.processShapes=function(e){var t,n,r,a,i,o=!1;if(this._mdf||e){var s,l=Math.ceil(this.c.v);if(this._groups.length<l){for(;this._groups.length<l;){var c={it:this.cloneElements(this._elements),ty:"gr"};c.it.push({a:{a:0,ix:1,k:[0,0]},nm:"Transform",o:{a:0,ix:7,k:100},p:{a:0,ix:2,k:[0,0]},r:{a:1,ix:6,k:[{s:0,e:0,t:0},{s:0,e:0,t:1}]},s:{a:0,ix:3,k:[100,100]},sa:{a:0,ix:5,k:0},sk:{a:0,ix:4,k:0},ty:"tr"}),this.arr.splice(0,0,c),this._groups.splice(0,0,c),this._currentCopies+=1}this.elem.reloadShapes(),o=!0}for(i=0,r=0;r<=this._groups.length-1;r+=1){if(s=i<l,this._groups[r]._render=s,this.changeGroupRender(this._groups[r].it,s),!s){var u=this.elemsData[r].it,f=u[u.length-1];0!==f.transform.op.v?(f.transform.op._mdf=!0,f.transform.op.v=0):f.transform.op._mdf=!1}i+=1}this._currentCopies=l;var h=this.o.v,p=h%1,d=h>0?Math.floor(h):Math.ceil(h),m=this.pMatrix.props,g=this.rMatrix.props,y=this.sMatrix.props;this.pMatrix.reset(),this.rMatrix.reset(),this.sMatrix.reset(),this.tMatrix.reset(),this.matrix.reset();var v,b,_=0;if(h>0){for(;_<d;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),_+=1;p&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,p,!1),_+=p)}else if(h<0){for(;_>d;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!0),_-=1;p&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,-p,!0),_-=p)}for(r=1===this.data.m?0:this._currentCopies-1,a=1===this.data.m?1:-1,i=this._currentCopies;i;){if(b=(n=(t=this.elemsData[r].it)[t.length-1].transform.mProps.v.props).length,t[t.length-1].transform.mProps._mdf=!0,t[t.length-1].transform.op._mdf=!0,t[t.length-1].transform.op.v=1===this._currentCopies?this.so.v:this.so.v+(this.eo.v-this.so.v)*(r/(this._currentCopies-1)),0!==_){for((0!==r&&1===a||r!==this._currentCopies-1&&-1===a)&&this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),this.matrix.transform(g[0],g[1],g[2],g[3],g[4],g[5],g[6],g[7],g[8],g[9],g[10],g[11],g[12],g[13],g[14],g[15]),this.matrix.transform(y[0],y[1],y[2],y[3],y[4],y[5],y[6],y[7],y[8],y[9],y[10],y[11],y[12],y[13],y[14],y[15]),this.matrix.transform(m[0],m[1],m[2],m[3],m[4],m[5],m[6],m[7],m[8],m[9],m[10],m[11],m[12],m[13],m[14],m[15]),v=0;v<b;v+=1)n[v]=this.matrix.props[v];this.matrix.reset()}else for(this.matrix.reset(),v=0;v<b;v+=1)n[v]=this.matrix.props[v];_+=1,i-=1,r+=a}}else for(i=this._currentCopies,r=0,a=1;i;)n=(t=this.elemsData[r].it)[t.length-1].transform.mProps.v.props,t[t.length-1].transform.mProps._mdf=!1,t[t.length-1].transform.op._mdf=!1,i-=1,r+=a;return o},RepeaterModifier.prototype.addShape=function(){},extendPrototype([ShapeModifier],RoundCornersModifier),RoundCornersModifier.prototype.initModifierProperties=function(e,t){this.getValue=this.processKeys,this.rd=PropertyFactory.getProp(e,t.r,0,null,this),this._isAnimated=!!this.rd.effectsSequence.length},RoundCornersModifier.prototype.processPath=function(e,t){var n,r=shapePool.newElement();r.c=e.c;var a,i,o,s,l,c,u,f,h,p,d,m,g=e._length,y=0;for(n=0;n<g;n+=1)a=e.v[n],o=e.o[n],i=e.i[n],a[0]===o[0]&&a[1]===o[1]&&a[0]===i[0]&&a[1]===i[1]?0!==n&&n!==g-1||e.c?(s=0===n?e.v[g-1]:e.v[n-1],c=(l=Math.sqrt(Math.pow(a[0]-s[0],2)+Math.pow(a[1]-s[1],2)))?Math.min(l/2,t)/l:0,u=d=a[0]+(s[0]-a[0])*c,f=m=a[1]-(a[1]-s[1])*c,h=u-(u-a[0])*roundCorner,p=f-(f-a[1])*roundCorner,r.setTripleAt(u,f,h,p,d,m,y),y+=1,s=n===g-1?e.v[0]:e.v[n+1],c=(l=Math.sqrt(Math.pow(a[0]-s[0],2)+Math.pow(a[1]-s[1],2)))?Math.min(l/2,t)/l:0,u=h=a[0]+(s[0]-a[0])*c,f=p=a[1]+(s[1]-a[1])*c,d=u-(u-a[0])*roundCorner,m=f-(f-a[1])*roundCorner,r.setTripleAt(u,f,h,p,d,m,y),y+=1):(r.setTripleAt(a[0],a[1],o[0],o[1],i[0],i[1],y),y+=1):(r.setTripleAt(e.v[n][0],e.v[n][1],e.o[n][0],e.o[n][1],e.i[n][0],e.i[n][1],y),y+=1);return r},RoundCornersModifier.prototype.processShapes=function(e){var t,n,r,a,i,o,s=this.shapes.length,l=this.rd.v;if(0!==l)for(n=0;n<s;n+=1){if(o=(i=this.shapes[n]).localShapeCollection,i.shape._mdf||this._mdf||e)for(o.releaseShapes(),i.shape._mdf=!0,t=i.shape.paths.shapes,a=i.shape.paths._length,r=0;r<a;r+=1)o.addShape(this.processPath(t[r],l));i.shape.paths=i.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)},PolynomialBezier.prototype.point=function(e){return[((this.a[0]*e+this.b[0])*e+this.c[0])*e+this.d[0],((this.a[1]*e+this.b[1])*e+this.c[1])*e+this.d[1]]},PolynomialBezier.prototype.derivative=function(e){return[(3*e*this.a[0]+2*this.b[0])*e+this.c[0],(3*e*this.a[1]+2*this.b[1])*e+this.c[1]]},PolynomialBezier.prototype.tangentAngle=function(e){var t=this.derivative(e);return Math.atan2(t[1],t[0])},PolynomialBezier.prototype.normalAngle=function(e){var t=this.derivative(e);return Math.atan2(t[0],t[1])},PolynomialBezier.prototype.inflectionPoints=function(){var e=this.a[1]*this.b[0]-this.a[0]*this.b[1];if(floatZero(e))return[];var t=-.5*(this.a[1]*this.c[0]-this.a[0]*this.c[1])/e,n=t*t-1/3*(this.b[1]*this.c[0]-this.b[0]*this.c[1])/e;if(n<0)return[];var r=Math.sqrt(n);return floatZero(r)?r>0&&r<1?[t]:[]:[t-r,t+r].filter(function(e){return e>0&&e<1})},PolynomialBezier.prototype.split=function(e){if(e<=0)return[singlePoint(this.points[0]),this];if(e>=1)return[this,singlePoint(this.points[this.points.length-1])];var t=lerpPoint(this.points[0],this.points[1],e),n=lerpPoint(this.points[1],this.points[2],e),r=lerpPoint(this.points[2],this.points[3],e),a=lerpPoint(t,n,e),i=lerpPoint(n,r,e),o=lerpPoint(a,i,e);return[new PolynomialBezier(this.points[0],t,a,o,!0),new PolynomialBezier(o,i,r,this.points[3],!0)]},PolynomialBezier.prototype.bounds=function(){return{x:extrema(this,0),y:extrema(this,1)}},PolynomialBezier.prototype.boundingBox=function(){var e=this.bounds();return{left:e.x.min,right:e.x.max,top:e.y.min,bottom:e.y.max,width:e.x.max-e.x.min,height:e.y.max-e.y.min,cx:(e.x.max+e.x.min)/2,cy:(e.y.max+e.y.min)/2}},PolynomialBezier.prototype.intersections=function(e,t,n){void 0===t&&(t=2),void 0===n&&(n=7);var r=[];return intersectsImpl(intersectData(this,0,1),intersectData(e,0,1),0,t,r,n),r},PolynomialBezier.shapeSegment=function(e,t){var n=(t+1)%e.length();return new PolynomialBezier(e.v[t],e.o[t],e.i[n],e.v[n],!0)},PolynomialBezier.shapeSegmentInverted=function(e,t){var n=(t+1)%e.length();return new PolynomialBezier(e.v[n],e.i[n],e.o[t],e.v[t],!0)},extendPrototype([ShapeModifier],ZigZagModifier),ZigZagModifier.prototype.initModifierProperties=function(e,t){this.getValue=this.processKeys,this.amplitude=PropertyFactory.getProp(e,t.s,0,null,this),this.frequency=PropertyFactory.getProp(e,t.r,0,null,this),this.pointsType=PropertyFactory.getProp(e,t.pt,0,null,this),this._isAnimated=0!==this.amplitude.effectsSequence.length||0!==this.frequency.effectsSequence.length||0!==this.pointsType.effectsSequence.length},ZigZagModifier.prototype.processPath=function(e,t,n,r){var a=e._length,i=shapePool.newElement();if(i.c=e.c,e.c||(a-=1),0===a)return i;var o=-1,s=PolynomialBezier.shapeSegment(e,0);zigZagCorner(i,e,0,t,n,r,o);for(var l=0;l<a;l+=1)o=zigZagSegment(i,s,t,n,r,-o),s=l!==a-1||e.c?PolynomialBezier.shapeSegment(e,(l+1)%a):null,zigZagCorner(i,e,l+1,t,n,r,o);return i},ZigZagModifier.prototype.processShapes=function(e){var t,n,r,a,i,o,s=this.shapes.length,l=this.amplitude.v,c=Math.max(0,Math.round(this.frequency.v)),u=this.pointsType.v;if(0!==l)for(n=0;n<s;n+=1){if(o=(i=this.shapes[n]).localShapeCollection,i.shape._mdf||this._mdf||e)for(o.releaseShapes(),i.shape._mdf=!0,t=i.shape.paths.shapes,a=i.shape.paths._length,r=0;r<a;r+=1)o.addShape(this.processPath(t[r],l,c,u));i.shape.paths=i.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)},extendPrototype([ShapeModifier],OffsetPathModifier),OffsetPathModifier.prototype.initModifierProperties=function(e,t){this.getValue=this.processKeys,this.amount=PropertyFactory.getProp(e,t.a,0,null,this),this.miterLimit=PropertyFactory.getProp(e,t.ml,0,null,this),this.lineJoin=t.lj,this._isAnimated=0!==this.amount.effectsSequence.length},OffsetPathModifier.prototype.processPath=function(e,t,n,r){var a=shapePool.newElement();a.c=e.c;var i,o,s,l=e.length();e.c||(l-=1);var c=[];for(i=0;i<l;i+=1)s=PolynomialBezier.shapeSegment(e,i),c.push(offsetSegmentSplit(s,t));if(!e.c)for(i=l-1;i>=0;i-=1)s=PolynomialBezier.shapeSegmentInverted(e,i),c.push(offsetSegmentSplit(s,t));c=pruneIntersections(c);var u=null,f=null;for(i=0;i<c.length;i+=1){var h=c[i];for(f&&(u=joinLines(a,f,h[0],n,r)),f=h[h.length-1],o=0;o<h.length;o+=1)s=h[o],u&&pointEqual(s.points[0],u)?a.setXYAt(s.points[1][0],s.points[1][1],"o",a.length()-1):a.setTripleAt(s.points[0][0],s.points[0][1],s.points[1][0],s.points[1][1],s.points[0][0],s.points[0][1],a.length()),a.setTripleAt(s.points[3][0],s.points[3][1],s.points[3][0],s.points[3][1],s.points[2][0],s.points[2][1],a.length()),u=s.points[3]}return c.length&&joinLines(a,f,c[0][0],n,r),a},OffsetPathModifier.prototype.processShapes=function(e){var t,n,r,a,i,o,s=this.shapes.length,l=this.amount.v,c=this.miterLimit.v,u=this.lineJoin;if(0!==l)for(n=0;n<s;n+=1){if(o=(i=this.shapes[n]).localShapeCollection,i.shape._mdf||this._mdf||e)for(o.releaseShapes(),i.shape._mdf=!0,t=i.shape.paths.shapes,a=i.shape.paths._length,r=0;r<a;r+=1)o.addShape(this.processPath(t[r],l,u,c));i.shape.paths=i.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)};var FontManager=function(){var e={w:0,size:0,shapes:[],data:{shapes:[]}},t=[];t=t.concat([2304,2305,2306,2307,2362,2363,2364,2364,2366,2367,2368,2369,2370,2371,2372,2373,2374,2375,2376,2377,2378,2379,2380,2381,2382,2383,2387,2388,2389,2390,2391,2402,2403]);var n=127988,r=["d83cdffb","d83cdffc","d83cdffd","d83cdffe","d83cdfff"];function a(e,t){var n=createTag("span");n.setAttribute("aria-hidden",!0),n.style.fontFamily=t;var r=createTag("span");r.innerText="giItT1WQy@!-/#",n.style.position="absolute",n.style.left="-10000px",n.style.top="-10000px",n.style.fontSize="300px",n.style.fontVariant="normal",n.style.fontStyle="normal",n.style.fontWeight="normal",n.style.letterSpacing="0",n.appendChild(r),document.body.appendChild(n);var a=r.offsetWidth;return r.style.fontFamily=function(e){var t,n=e.split(","),r=n.length,a=[];for(t=0;t<r;t+=1)"sans-serif"!==n[t]&&"monospace"!==n[t]&&a.push(n[t]);return a.join(",")}(e)+", "+t,{node:r,w:a,parent:n}}function i(e,t){var n,r=document.body&&t?"svg":"canvas",a=getFontProperties(e);if("svg"===r){var i=createNS("text");i.style.fontSize="100px",i.setAttribute("font-family",e.fFamily),i.setAttribute("font-style",a.style),i.setAttribute("font-weight",a.weight),i.textContent="1",e.fClass?(i.style.fontFamily="inherit",i.setAttribute("class",e.fClass)):i.style.fontFamily=e.fFamily,t.appendChild(i),n=i}else{var o=new OffscreenCanvas(500,500).getContext("2d");o.font=a.style+" "+a.weight+" 100px "+e.fFamily,n=o}return{measureText:function(e){return"svg"===r?(n.textContent=e,n.getComputedTextLength()):n.measureText(e).width}}}function o(e){var t=0,n=e.charCodeAt(0);if(n>=55296&&n<=56319){var r=e.charCodeAt(1);r>=56320&&r<=57343&&(t=1024*(n-55296)+r-56320+65536)}return t}function s(e){var t=o(e);return t>=127462&&t<=127487}var l=function(){this.fonts=[],this.chars=null,this.typekitLoaded=0,this.isLoaded=!1,this._warned=!1,this.initTime=Date.now(),this.setIsLoadedBinded=this.setIsLoaded.bind(this),this.checkLoadedFontsBinded=this.checkLoadedFonts.bind(this)};l.isModifier=function(e,t){var n=e.toString(16)+t.toString(16);return-1!==r.indexOf(n)},l.isZeroWidthJoiner=function(e){return 8205===e},l.isFlagEmoji=function(e){return s(e.substr(0,2))&&s(e.substr(2,2))},l.isRegionalCode=s,l.isCombinedCharacter=function(e){return-1!==t.indexOf(e)},l.isRegionalFlag=function(e,t){var r=o(e.substr(t,2));if(r!==n)return!1;var a=0;for(t+=2;a<5;){if((r=o(e.substr(t,2)))<917601||r>917626)return!1;a+=1,t+=2}return 917631===o(e.substr(t,2))},l.isVariationSelector=function(e){return 65039===e},l.BLACK_FLAG_CODE_POINT=n;var c={addChars:function(e){if(e){var t;this.chars||(this.chars=[]);var n,r,a=e.length,i=this.chars.length;for(t=0;t<a;t+=1){for(n=0,r=!1;n<i;)this.chars[n].style===e[t].style&&this.chars[n].fFamily===e[t].fFamily&&this.chars[n].ch===e[t].ch&&(r=!0),n+=1;r||(this.chars.push(e[t]),i+=1)}}},addFonts:function(e,t){if(e){if(this.chars)return this.isLoaded=!0,void(this.fonts=e.list);if(!document.body)return this.isLoaded=!0,e.list.forEach(function(e){e.helper=i(e),e.cache={}}),void(this.fonts=e.list);var n,r=e.list,o=r.length,s=o;for(n=0;n<o;n+=1){var l,c,u=!0;if(r[n].loaded=!1,r[n].monoCase=a(r[n].fFamily,"monospace"),r[n].sansCase=a(r[n].fFamily,"sans-serif"),r[n].fPath){if("p"===r[n].fOrigin||3===r[n].origin){if((l=document.querySelectorAll('style[f-forigin="p"][f-family="'+r[n].fFamily+'"], style[f-origin="3"][f-family="'+r[n].fFamily+'"]')).length>0&&(u=!1),u){var f=createTag("style");f.setAttribute("f-forigin",r[n].fOrigin),f.setAttribute("f-origin",r[n].origin),f.setAttribute("f-family",r[n].fFamily),f.type="text/css",f.innerText="@font-face {font-family: "+r[n].fFamily+"; font-style: normal; src: url('"+r[n].fPath+"');}",t.appendChild(f)}}else if("g"===r[n].fOrigin||1===r[n].origin){for(l=document.querySelectorAll('link[f-forigin="g"], link[f-origin="1"]'),c=0;c<l.length;c+=1)-1!==l[c].href.indexOf(r[n].fPath)&&(u=!1);if(u){var h=createTag("link");h.setAttribute("f-forigin",r[n].fOrigin),h.setAttribute("f-origin",r[n].origin),h.type="text/css",h.rel="stylesheet",h.href=r[n].fPath,document.body.appendChild(h)}}else if("t"===r[n].fOrigin||2===r[n].origin){for(l=document.querySelectorAll('script[f-forigin="t"], script[f-origin="2"]'),c=0;c<l.length;c+=1)r[n].fPath===l[c].src&&(u=!1);if(u){var p=createTag("link");p.setAttribute("f-forigin",r[n].fOrigin),p.setAttribute("f-origin",r[n].origin),p.setAttribute("rel","stylesheet"),p.setAttribute("href",r[n].fPath),t.appendChild(p)}}}else r[n].loaded=!0,s-=1;r[n].helper=i(r[n],t),r[n].cache={},this.fonts.push(r[n])}0===s?this.isLoaded=!0:setTimeout(this.checkLoadedFonts.bind(this),100)}else this.isLoaded=!0},getCharData:function(t,n,r){for(var a=0,i=this.chars.length;a<i;){if(this.chars[a].ch===t&&this.chars[a].style===n&&this.chars[a].fFamily===r)return this.chars[a];a+=1}return("string"==typeof t&&13!==t.charCodeAt(0)||!t)&&console&&console.warn&&!this._warned&&(this._warned=!0,console.warn("Missing character from exported characters list: ",t,n,r)),e},getFontByName:function(e){for(var t=0,n=this.fonts.length;t<n;){if(this.fonts[t].fName===e)return this.fonts[t];t+=1}return this.fonts[0]},measureText:function(e,t,n){var r=this.getFontByName(t),a=e;if(!r.cache[a]){var i=r.helper;if(" "===e){var o=i.measureText("|"+e+"|"),s=i.measureText("||");r.cache[a]=(o-s)/100}else r.cache[a]=i.measureText(e)/100}return r.cache[a]*n},checkLoadedFonts:function(){var e,t,n,r=this.fonts.length,a=r;for(e=0;e<r;e+=1)this.fonts[e].loaded?a-=1:"n"===this.fonts[e].fOrigin||0===this.fonts[e].origin?this.fonts[e].loaded=!0:(t=this.fonts[e].monoCase.node,n=this.fonts[e].monoCase.w,t.offsetWidth!==n?(a-=1,this.fonts[e].loaded=!0):(t=this.fonts[e].sansCase.node,n=this.fonts[e].sansCase.w,t.offsetWidth!==n&&(a-=1,this.fonts[e].loaded=!0)),this.fonts[e].loaded&&(this.fonts[e].sansCase.parent.parentNode.removeChild(this.fonts[e].sansCase.parent),this.fonts[e].monoCase.parent.parentNode.removeChild(this.fonts[e].monoCase.parent)));0!==a&&Date.now()-this.initTime<5e3?setTimeout(this.checkLoadedFontsBinded,20):setTimeout(this.setIsLoadedBinded,10)},setIsLoaded:function(){this.isLoaded=!0}};return l.prototype=c,l}();function SlotManager(e){this.animationData=e}function slotFactory(e){return new SlotManager(e)}function RenderableElement(){}SlotManager.prototype.getProp=function(e){return this.animationData.slots&&this.animationData.slots[e.sid]?Object.assign(e,this.animationData.slots[e.sid].p):e},RenderableElement.prototype={initRenderable:function(){this.isInRange=!1,this.hidden=!1,this.isTransparent=!1,this.renderableComponents=[]},addRenderableComponent:function(e){-1===this.renderableComponents.indexOf(e)&&this.renderableComponents.push(e)},removeRenderableComponent:function(e){-1!==this.renderableComponents.indexOf(e)&&this.renderableComponents.splice(this.renderableComponents.indexOf(e),1)},prepareRenderableFrame:function(e){this.checkLayerLimits(e)},checkTransparency:function(){this.finalTransform.mProp.o.v<=0?!this.isTransparent&&this.globalData.renderConfig.hideOnTransparent&&(this.isTransparent=!0,this.hide()):this.isTransparent&&(this.isTransparent=!1,this.show())},checkLayerLimits:function(e){this.data.ip-this.data.st<=e&&this.data.op-this.data.st>e?!0!==this.isInRange&&(this.globalData._mdf=!0,this._mdf=!0,this.isInRange=!0,this.show()):!1!==this.isInRange&&(this.globalData._mdf=!0,this.isInRange=!1,this.hide())},renderRenderable:function(){var e,t=this.renderableComponents.length;for(e=0;e<t;e+=1)this.renderableComponents[e].renderFrame(this._isFirstFrame)},sourceRectAtTime:function(){return{top:0,left:0,width:100,height:100}},getLayerSize:function(){return 5===this.data.ty?{w:this.data.textData.width,h:this.data.textData.height}:{w:this.data.width,h:this.data.height}}};var getBlendMode=(blendModeEnums={0:"source-over",1:"multiply",2:"screen",3:"overlay",4:"darken",5:"lighten",6:"color-dodge",7:"color-burn",8:"hard-light",9:"soft-light",10:"difference",11:"exclusion",12:"hue",13:"saturation",14:"color",15:"luminosity"},function(e){return blendModeEnums[e]||""}),blendModeEnums;function SliderEffect(e,t,n){this.p=PropertyFactory.getProp(t,e.v,0,0,n)}function AngleEffect(e,t,n){this.p=PropertyFactory.getProp(t,e.v,0,0,n)}function ColorEffect(e,t,n){this.p=PropertyFactory.getProp(t,e.v,1,0,n)}function PointEffect(e,t,n){this.p=PropertyFactory.getProp(t,e.v,1,0,n)}function LayerIndexEffect(e,t,n){this.p=PropertyFactory.getProp(t,e.v,0,0,n)}function MaskIndexEffect(e,t,n){this.p=PropertyFactory.getProp(t,e.v,0,0,n)}function CheckboxEffect(e,t,n){this.p=PropertyFactory.getProp(t,e.v,0,0,n)}function NoValueEffect(){this.p={}}function EffectsManager(e,t){var n,r=e.ef||[];this.effectElements=[];var a,i=r.length;for(n=0;n<i;n+=1)a=new GroupEffect(r[n],t),this.effectElements.push(a)}function GroupEffect(e,t){this.init(e,t)}function BaseElement(){}function FrameElement(){}function FootageElement(e,t,n){this.initFrame(),this.initRenderable(),this.assetData=t.getAssetData(e.refId),this.footageData=t.imageLoader.getAsset(this.assetData),this.initBaseData(e,t,n)}function AudioElement(e,t,n){this.initFrame(),this.initRenderable(),this.assetData=t.getAssetData(e.refId),this.initBaseData(e,t,n),this._isPlaying=!1,this._canPlay=!1;var r=this.globalData.getAssetsPath(this.assetData);this.audio=this.globalData.audioController.createAudio(r),this._currentTime=0,this.globalData.audioController.addAudio(this),this._volumeMultiplier=1,this._volume=1,this._previousVolume=null,this.tm=e.tm?PropertyFactory.getProp(this,e.tm,0,t.frameRate,this):{_placeholder:!0},this.lv=PropertyFactory.getProp(this,e.au&&e.au.lv?e.au.lv:{k:[100]},1,.01,this)}function BaseRenderer(){}extendPrototype([DynamicPropertyContainer],GroupEffect),GroupEffect.prototype.getValue=GroupEffect.prototype.iterateDynamicProperties,GroupEffect.prototype.init=function(e,t){var n;this.data=e,this.effectElements=[],this.initDynamicPropertyContainer(t);var r,a=this.data.ef.length,i=this.data.ef;for(n=0;n<a;n+=1){switch(r=null,i[n].ty){case 0:r=new SliderEffect(i[n],t,this);break;case 1:r=new AngleEffect(i[n],t,this);break;case 2:r=new ColorEffect(i[n],t,this);break;case 3:r=new PointEffect(i[n],t,this);break;case 4:case 7:r=new CheckboxEffect(i[n],t,this);break;case 10:r=new LayerIndexEffect(i[n],t,this);break;case 11:r=new MaskIndexEffect(i[n],t,this);break;case 5:r=new EffectsManager(i[n],t,this);break;default:r=new NoValueEffect(i[n],t,this)}r&&this.effectElements.push(r)}},BaseElement.prototype={checkMasks:function(){if(!this.data.hasMask)return!1;for(var e=0,t=this.data.masksProperties.length;e<t;){if("n"!==this.data.masksProperties[e].mode&&!1!==this.data.masksProperties[e].cl)return!0;e+=1}return!1},initExpressions:function(){var e=getExpressionInterfaces();if(e){var t=e("layer"),n=e("effects"),r=e("shape"),a=e("text"),i=e("comp");this.layerInterface=t(this),this.data.hasMask&&this.maskManager&&this.layerInterface.registerMaskInterface(this.maskManager);var o=n.createEffectsInterface(this,this.layerInterface);this.layerInterface.registerEffectsInterface(o),0===this.data.ty||this.data.xt?this.compInterface=i(this):4===this.data.ty?(this.layerInterface.shapeInterface=r(this.shapesData,this.itemsData,this.layerInterface),this.layerInterface.content=this.layerInterface.shapeInterface):5===this.data.ty&&(this.layerInterface.textInterface=a(this),this.layerInterface.text=this.layerInterface.textInterface)}},setBlendMode:function(){var e=getBlendMode(this.data.bm);(this.baseElement||this.layerElement).style["mix-blend-mode"]=e},initBaseData:function(e,t,n){this.globalData=t,this.comp=n,this.data=e,this.layerId=createElementID(),this.data.sr||(this.data.sr=1),this.effectsManager=new EffectsManager(this.data,this,this.dynamicProperties)},getType:function(){return this.type},sourceRectAtTime:function(){}},FrameElement.prototype={initFrame:function(){this._isFirstFrame=!1,this.dynamicProperties=[],this._mdf=!1},prepareProperties:function(e,t){var n,r=this.dynamicProperties.length;for(n=0;n<r;n+=1)(t||this._isParent&&"transform"===this.dynamicProperties[n].propType)&&(this.dynamicProperties[n].getValue(),this.dynamicProperties[n]._mdf&&(this.globalData._mdf=!0,this._mdf=!0))},addDynamicProperty:function(e){-1===this.dynamicProperties.indexOf(e)&&this.dynamicProperties.push(e)}},FootageElement.prototype.prepareFrame=function(){},extendPrototype([RenderableElement,BaseElement,FrameElement],FootageElement),FootageElement.prototype.getBaseElement=function(){return null},FootageElement.prototype.renderFrame=function(){},FootageElement.prototype.destroy=function(){},FootageElement.prototype.initExpressions=function(){var e=getExpressionInterfaces();if(e){var t=e("footage");this.layerInterface=t(this)}},FootageElement.prototype.getFootageData=function(){return this.footageData},AudioElement.prototype.prepareFrame=function(e){if(this.prepareRenderableFrame(e,!0),this.prepareProperties(e,!0),this.tm._placeholder)this._currentTime=e/this.data.sr;else{var t=this.tm.v;this._currentTime=t}this._volume=this.lv.v[0];var n=this._volume*this._volumeMultiplier;this._previousVolume!==n&&(this._previousVolume=n,this.audio.volume(n))},extendPrototype([RenderableElement,BaseElement,FrameElement],AudioElement),AudioElement.prototype.renderFrame=function(){this.isInRange&&this._canPlay&&(this._isPlaying?(!this.audio.playing()||Math.abs(this._currentTime/this.globalData.frameRate-this.audio.seek())>.1)&&this.audio.seek(this._currentTime/this.globalData.frameRate):(this.audio.play(),this.audio.seek(this._currentTime/this.globalData.frameRate),this._isPlaying=!0))},AudioElement.prototype.show=function(){},AudioElement.prototype.hide=function(){this.audio.pause(),this._isPlaying=!1},AudioElement.prototype.pause=function(){this.audio.pause(),this._isPlaying=!1,this._canPlay=!1},AudioElement.prototype.resume=function(){this._canPlay=!0},AudioElement.prototype.setRate=function(e){this.audio.rate(e)},AudioElement.prototype.volume=function(e){this._volumeMultiplier=e,this._previousVolume=e*this._volume,this.audio.volume(this._previousVolume)},AudioElement.prototype.getBaseElement=function(){return null},AudioElement.prototype.destroy=function(){},AudioElement.prototype.sourceRectAtTime=function(){},AudioElement.prototype.initExpressions=function(){},BaseRenderer.prototype.checkLayers=function(e){var t,n,r=this.layers.length;for(this.completeLayers=!0,t=r-1;t>=0;t-=1)this.elements[t]||(n=this.layers[t]).ip-n.st<=e-this.layers[t].st&&n.op-n.st>e-this.layers[t].st&&this.buildItem(t),this.completeLayers=!!this.elements[t]&&this.completeLayers;this.checkPendingElements()},BaseRenderer.prototype.createItem=function(e){switch(e.ty){case 2:return this.createImage(e);case 0:return this.createComp(e);case 1:return this.createSolid(e);case 3:default:return this.createNull(e);case 4:return this.createShape(e);case 5:return this.createText(e);case 6:return this.createAudio(e);case 13:return this.createCamera(e);case 15:return this.createFootage(e)}},BaseRenderer.prototype.createCamera=function(){throw new Error("You're using a 3d camera. Try the html renderer.")},BaseRenderer.prototype.createAudio=function(e){return new AudioElement(e,this.globalData,this)},BaseRenderer.prototype.createFootage=function(e){return new FootageElement(e,this.globalData,this)},BaseRenderer.prototype.buildAllItems=function(){var e,t=this.layers.length;for(e=0;e<t;e+=1)this.buildItem(e);this.checkPendingElements()},BaseRenderer.prototype.includeLayers=function(e){var t;this.completeLayers=!1;var n,r=e.length,a=this.layers.length;for(t=0;t<r;t+=1)for(n=0;n<a;){if(this.layers[n].id===e[t].id){this.layers[n]=e[t];break}n+=1}},BaseRenderer.prototype.setProjectInterface=function(e){this.globalData.projectInterface=e},BaseRenderer.prototype.initItems=function(){this.globalData.progressiveLoad||this.buildAllItems()},BaseRenderer.prototype.buildElementParenting=function(e,t,n){for(var r=this.elements,a=this.layers,i=0,o=a.length;i<o;)a[i].ind==t&&(r[i]&&!0!==r[i]?(n.push(r[i]),r[i].setAsParent(),void 0!==a[i].parent?this.buildElementParenting(e,a[i].parent,n):e.setHierarchy(n)):(this.buildItem(i),this.addPendingElement(e))),i+=1},BaseRenderer.prototype.addPendingElement=function(e){this.pendingElements.push(e)},BaseRenderer.prototype.searchExtraCompositions=function(e){var t,n=e.length;for(t=0;t<n;t+=1)if(e[t].xt){var r=this.createComp(e[t]);r.initExpressions(),this.globalData.projectInterface.registerComposition(r)}},BaseRenderer.prototype.getElementById=function(e){var t,n=this.elements.length;for(t=0;t<n;t+=1)if(this.elements[t].data.ind===e)return this.elements[t];return null},BaseRenderer.prototype.getElementByPath=function(e){var t,n=e.shift();if("number"==typeof n)t=this.elements[n];else{var r,a=this.elements.length;for(r=0;r<a;r+=1)if(this.elements[r].data.nm===n){t=this.elements[r];break}}return 0===e.length?t:t.getElementByPath(e)},BaseRenderer.prototype.setupGlobalData=function(e,t){this.globalData.fontManager=new FontManager,this.globalData.slotManager=slotFactory(e),this.globalData.fontManager.addChars(e.chars),this.globalData.fontManager.addFonts(e.fonts,t),this.globalData.getAssetData=this.animationItem.getAssetData.bind(this.animationItem),this.globalData.getAssetsPath=this.animationItem.getAssetsPath.bind(this.animationItem),this.globalData.imageLoader=this.animationItem.imagePreloader,this.globalData.audioController=this.animationItem.audioController,this.globalData.frameId=0,this.globalData.frameRate=e.fr,this.globalData.nm=e.nm,this.globalData.compSize={w:e.w,h:e.h}};var effectTypes={TRANSFORM_EFFECT:"transformEFfect"};function TransformElement(){}function MaskElement(e,t,n){this.data=e,this.element=t,this.globalData=n,this.storedData=[],this.masksProperties=this.data.masksProperties||[],this.maskElement=null;var r,a,i=this.globalData.defs,o=this.masksProperties?this.masksProperties.length:0;this.viewData=createSizedArray(o),this.solidPath="";var s,l,c,u,f,h,p=this.masksProperties,d=0,m=[],g=createElementID(),y="clipPath",v="clip-path";for(r=0;r<o;r+=1)if(("a"!==p[r].mode&&"n"!==p[r].mode||p[r].inv||100!==p[r].o.k||p[r].o.x)&&(y="mask",v="mask"),"s"!==p[r].mode&&"i"!==p[r].mode||0!==d?c=null:((c=createNS("rect")).setAttribute("fill","#ffffff"),c.setAttribute("width",this.element.comp.data.w||0),c.setAttribute("height",this.element.comp.data.h||0),m.push(c)),a=createNS("path"),"n"===p[r].mode)this.viewData[r]={op:PropertyFactory.getProp(this.element,p[r].o,0,.01,this.element),prop:ShapePropertyFactory.getShapeProp(this.element,p[r],3),elem:a,lastPath:""},i.appendChild(a);else{var b;if(d+=1,a.setAttribute("fill","s"===p[r].mode?"#000000":"#ffffff"),a.setAttribute("clip-rule","nonzero"),0!==p[r].x.k?(y="mask",v="mask",h=PropertyFactory.getProp(this.element,p[r].x,0,null,this.element),b=createElementID(),(u=createNS("filter")).setAttribute("id",b),(f=createNS("feMorphology")).setAttribute("operator","erode"),f.setAttribute("in","SourceGraphic"),f.setAttribute("radius","0"),u.appendChild(f),i.appendChild(u),a.setAttribute("stroke","s"===p[r].mode?"#000000":"#ffffff")):(f=null,h=null),this.storedData[r]={elem:a,x:h,expan:f,lastPath:"",lastOperator:"",filterId:b,lastRadius:0},"i"===p[r].mode){l=m.length;var _=createNS("g");for(s=0;s<l;s+=1)_.appendChild(m[s]);var w=createNS("mask");w.setAttribute("mask-type","alpha"),w.setAttribute("id",g+"_"+d),w.appendChild(a),i.appendChild(w),_.setAttribute("mask","url("+getLocationHref()+"#"+g+"_"+d+")"),m.length=0,m.push(_)}else m.push(a);p[r].inv&&!this.solidPath&&(this.solidPath=this.createLayerSolidPath()),this.viewData[r]={elem:a,lastPath:"",op:PropertyFactory.getProp(this.element,p[r].o,0,.01,this.element),prop:ShapePropertyFactory.getShapeProp(this.element,p[r],3),invRect:c},this.viewData[r].prop.k||this.drawPath(p[r],this.viewData[r].prop.v,this.viewData[r])}for(this.maskElement=createNS(y),o=m.length,r=0;r<o;r+=1)this.maskElement.appendChild(m[r]);d>0&&(this.maskElement.setAttribute("id",g),this.element.maskedElement.setAttribute(v,"url("+getLocationHref()+"#"+g+")"),i.appendChild(this.maskElement)),this.viewData.length&&this.element.addRenderableComponent(this)}TransformElement.prototype={initTransform:function(){var e=new Matrix;this.finalTransform={mProp:this.data.ks?TransformPropertyFactory.getTransformProperty(this,this.data.ks,this):{o:0},_matMdf:!1,_localMatMdf:!1,_opMdf:!1,mat:e,localMat:e,localOpacity:1},this.data.ao&&(this.finalTransform.mProp.autoOriented=!0),this.data.ty},renderTransform:function(){if(this.finalTransform._opMdf=this.finalTransform.mProp.o._mdf||this._isFirstFrame,this.finalTransform._matMdf=this.finalTransform.mProp._mdf||this._isFirstFrame,this.hierarchy){var e,t=this.finalTransform.mat,n=0,r=this.hierarchy.length;if(!this.finalTransform._matMdf)for(;n<r;){if(this.hierarchy[n].finalTransform.mProp._mdf){this.finalTransform._matMdf=!0;break}n+=1}if(this.finalTransform._matMdf)for(e=this.finalTransform.mProp.v.props,t.cloneFromProps(e),n=0;n<r;n+=1)t.multiply(this.hierarchy[n].finalTransform.mProp.v)}this.localTransforms&&!this.finalTransform._matMdf||(this.finalTransform._localMatMdf=this.finalTransform._matMdf),this.finalTransform._opMdf&&(this.finalTransform.localOpacity=this.finalTransform.mProp.o.v)},renderLocalTransform:function(){if(this.localTransforms){var e=0,t=this.localTransforms.length;if(this.finalTransform._localMatMdf=this.finalTransform._matMdf,!this.finalTransform._localMatMdf||!this.finalTransform._opMdf)for(;e<t;)this.localTransforms[e]._mdf&&(this.finalTransform._localMatMdf=!0),this.localTransforms[e]._opMdf&&!this.finalTransform._opMdf&&(this.finalTransform.localOpacity=this.finalTransform.mProp.o.v,this.finalTransform._opMdf=!0),e+=1;if(this.finalTransform._localMatMdf){var n=this.finalTransform.localMat;for(this.localTransforms[0].matrix.clone(n),e=1;e<t;e+=1){var r=this.localTransforms[e].matrix;n.multiply(r)}n.multiply(this.finalTransform.mat)}if(this.finalTransform._opMdf){var a=this.finalTransform.localOpacity;for(e=0;e<t;e+=1)a*=.01*this.localTransforms[e].opacity;this.finalTransform.localOpacity=a}}},searchEffectTransforms:function(){if(this.renderableEffectsManager){var e=this.renderableEffectsManager.getEffects(effectTypes.TRANSFORM_EFFECT);if(e.length){this.localTransforms=[],this.finalTransform.localMat=new Matrix;var t=0,n=e.length;for(t=0;t<n;t+=1)this.localTransforms.push(e[t])}}},globalToLocal:function(e){var t=[];t.push(this.finalTransform);for(var n,r=!0,a=this.comp;r;)a.finalTransform?(a.data.hasMask&&t.splice(0,0,a.finalTransform),a=a.comp):r=!1;var i,o=t.length;for(n=0;n<o;n+=1)i=t[n].mat.applyToPointArray(0,0,0),e=[e[0]-i[0],e[1]-i[1],0];return e},mHelper:new Matrix},MaskElement.prototype.getMaskProperty=function(e){return this.viewData[e].prop},MaskElement.prototype.renderFrame=function(e){var t,n=this.element.finalTransform.mat,r=this.masksProperties.length;for(t=0;t<r;t+=1)if((this.viewData[t].prop._mdf||e)&&this.drawPath(this.masksProperties[t],this.viewData[t].prop.v,this.viewData[t]),(this.viewData[t].op._mdf||e)&&this.viewData[t].elem.setAttribute("fill-opacity",this.viewData[t].op.v),"n"!==this.masksProperties[t].mode&&(this.viewData[t].invRect&&(this.element.finalTransform.mProp._mdf||e)&&this.viewData[t].invRect.setAttribute("transform",n.getInverseMatrix().to2dCSS()),this.storedData[t].x&&(this.storedData[t].x._mdf||e))){var a=this.storedData[t].expan;this.storedData[t].x.v<0?("erode"!==this.storedData[t].lastOperator&&(this.storedData[t].lastOperator="erode",this.storedData[t].elem.setAttribute("filter","url("+getLocationHref()+"#"+this.storedData[t].filterId+")")),a.setAttribute("radius",-this.storedData[t].x.v)):("dilate"!==this.storedData[t].lastOperator&&(this.storedData[t].lastOperator="dilate",this.storedData[t].elem.setAttribute("filter",null)),this.storedData[t].elem.setAttribute("stroke-width",2*this.storedData[t].x.v))}},MaskElement.prototype.getMaskelement=function(){return this.maskElement},MaskElement.prototype.createLayerSolidPath=function(){var e="M0,0 ";return e+=" h"+this.globalData.compSize.w,e+=" v"+this.globalData.compSize.h,(e+=" h-"+this.globalData.compSize.w)+" v-"+this.globalData.compSize.h+" "},MaskElement.prototype.drawPath=function(e,t,n){var r,a,i=" M"+t.v[0][0]+","+t.v[0][1];for(a=t._length,r=1;r<a;r+=1)i+=" C"+t.o[r-1][0]+","+t.o[r-1][1]+" "+t.i[r][0]+","+t.i[r][1]+" "+t.v[r][0]+","+t.v[r][1];if(t.c&&a>1&&(i+=" C"+t.o[r-1][0]+","+t.o[r-1][1]+" "+t.i[0][0]+","+t.i[0][1]+" "+t.v[0][0]+","+t.v[0][1]),n.lastPath!==i){var o="";n.elem&&(t.c&&(o=e.inv?this.solidPath+i:i),n.elem.setAttribute("d",o)),n.lastPath=i}},MaskElement.prototype.destroy=function(){this.element=null,this.globalData=null,this.maskElement=null,this.data=null,this.masksProperties=null};var filtersFactory={createFilter:function(e,t){var n=createNS("filter");return n.setAttribute("id",e),!0!==t&&(n.setAttribute("filterUnits","objectBoundingBox"),n.setAttribute("x","0%"),n.setAttribute("y","0%"),n.setAttribute("width","100%"),n.setAttribute("height","100%")),n},createAlphaToLuminanceFilter:function(){var e=createNS("feColorMatrix");return e.setAttribute("type","matrix"),e.setAttribute("color-interpolation-filters","sRGB"),e.setAttribute("values","0 0 0 1 0  0 0 0 1 0  0 0 0 1 0  0 0 0 1 1"),e}},featureSupport=function(){var e={maskType:!0,svgLumaHidden:!0,offscreenCanvas:"undefined"!=typeof OffscreenCanvas};return(/MSIE 10/i.test(navigator.userAgent)||/MSIE 9/i.test(navigator.userAgent)||/rv:11.0/i.test(navigator.userAgent)||/Edge\/\d./i.test(navigator.userAgent))&&(e.maskType=!1),/firefox/i.test(navigator.userAgent)&&(e.svgLumaHidden=!1),e}(),registeredEffects$1={},idPrefix="filter_result_";function SVGEffects(e){var t,n,r="SourceGraphic",a=e.data.ef?e.data.ef.length:0,i=createElementID(),o=filtersFactory.createFilter(i,!0),s=0;for(this.filters=[],t=0;t<a;t+=1){n=null;var l=e.data.ef[t].ty;registeredEffects$1[l]&&(n=new(0,registeredEffects$1[l].effect)(o,e.effectsManager.effectElements[t],e,idPrefix+s,r),r=idPrefix+s,registeredEffects$1[l].countsAsEffect&&(s+=1)),n&&this.filters.push(n)}s&&(e.globalData.defs.appendChild(o),e.layerElement.setAttribute("filter","url("+getLocationHref()+"#"+i+")")),this.filters.length&&e.addRenderableComponent(this)}function registerEffect$1(e,t,n){registeredEffects$1[e]={effect:t,countsAsEffect:n}}function SVGBaseElement(){}function HierarchyElement(){}function RenderableDOMElement(){}function IImageElement(e,t,n){this.assetData=t.getAssetData(e.refId),this.assetData&&this.assetData.sid&&(this.assetData=t.slotManager.getProp(this.assetData)),this.initElement(e,t,n),this.sourceRect={top:0,left:0,width:this.assetData.w,height:this.assetData.h}}function ProcessedElement(e,t){this.elem=e,this.pos=t}function IShapeElement(){}SVGEffects.prototype.renderFrame=function(e){var t,n=this.filters.length;for(t=0;t<n;t+=1)this.filters[t].renderFrame(e)},SVGEffects.prototype.getEffects=function(e){var t,n=this.filters.length,r=[];for(t=0;t<n;t+=1)this.filters[t].type===e&&r.push(this.filters[t]);return r},SVGBaseElement.prototype={initRendererElement:function(){this.layerElement=createNS("g")},createContainerElements:function(){this.matteElement=createNS("g"),this.transformedElement=this.layerElement,this.maskedElement=this.layerElement,this._sizeChanged=!1;var e=null;if(this.data.td){this.matteMasks={};var t=createNS("g");t.setAttribute("id",this.layerId),t.appendChild(this.layerElement),e=t,this.globalData.defs.appendChild(t)}else this.data.tt?(this.matteElement.appendChild(this.layerElement),e=this.matteElement,this.baseElement=this.matteElement):this.baseElement=this.layerElement;if(this.data.ln&&this.layerElement.setAttribute("id",this.data.ln),this.data.cl&&this.layerElement.setAttribute("class",this.data.cl),0===this.data.ty&&!this.data.hd){var n=createNS("clipPath"),r=createNS("path");r.setAttribute("d","M0,0 L"+this.data.w+",0 L"+this.data.w+","+this.data.h+" L0,"+this.data.h+"z");var a=createElementID();if(n.setAttribute("id",a),n.appendChild(r),this.globalData.defs.appendChild(n),this.checkMasks()){var i=createNS("g");i.setAttribute("clip-path","url("+getLocationHref()+"#"+a+")"),i.appendChild(this.layerElement),this.transformedElement=i,e?e.appendChild(this.transformedElement):this.baseElement=this.transformedElement}else this.layerElement.setAttribute("clip-path","url("+getLocationHref()+"#"+a+")")}0!==this.data.bm&&this.setBlendMode()},renderElement:function(){this.finalTransform._localMatMdf&&this.transformedElement.setAttribute("transform",this.finalTransform.localMat.to2dCSS()),this.finalTransform._opMdf&&this.transformedElement.setAttribute("opacity",this.finalTransform.localOpacity)},destroyBaseElement:function(){this.layerElement=null,this.matteElement=null,this.maskManager.destroy()},getBaseElement:function(){return this.data.hd?null:this.baseElement},createRenderableComponents:function(){this.maskManager=new MaskElement(this.data,this,this.globalData),this.renderableEffectsManager=new SVGEffects(this),this.searchEffectTransforms()},getMatte:function(e){if(this.matteMasks||(this.matteMasks={}),!this.matteMasks[e]){var t,n,r,a,i=this.layerId+"_"+e;if(1===e||3===e){var o=createNS("mask");o.setAttribute("id",i),o.setAttribute("mask-type",3===e?"luminance":"alpha"),(r=createNS("use")).setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),o.appendChild(r),this.globalData.defs.appendChild(o),featureSupport.maskType||1!==e||(o.setAttribute("mask-type","luminance"),t=createElementID(),n=filtersFactory.createFilter(t),this.globalData.defs.appendChild(n),n.appendChild(filtersFactory.createAlphaToLuminanceFilter()),(a=createNS("g")).appendChild(r),o.appendChild(a),a.setAttribute("filter","url("+getLocationHref()+"#"+t+")"))}else if(2===e){var s=createNS("mask");s.setAttribute("id",i),s.setAttribute("mask-type","alpha");var l=createNS("g");s.appendChild(l),t=createElementID(),n=filtersFactory.createFilter(t);var c=createNS("feComponentTransfer");c.setAttribute("in","SourceGraphic"),n.appendChild(c);var u=createNS("feFuncA");u.setAttribute("type","table"),u.setAttribute("tableValues","1.0 0.0"),c.appendChild(u),this.globalData.defs.appendChild(n);var f=createNS("rect");f.setAttribute("width",this.comp.data.w),f.setAttribute("height",this.comp.data.h),f.setAttribute("x","0"),f.setAttribute("y","0"),f.setAttribute("fill","#ffffff"),f.setAttribute("opacity","0"),l.setAttribute("filter","url("+getLocationHref()+"#"+t+")"),l.appendChild(f),(r=createNS("use")).setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),l.appendChild(r),featureSupport.maskType||(s.setAttribute("mask-type","luminance"),n.appendChild(filtersFactory.createAlphaToLuminanceFilter()),a=createNS("g"),l.appendChild(f),a.appendChild(this.layerElement),l.appendChild(a)),this.globalData.defs.appendChild(s)}this.matteMasks[e]=i}return this.matteMasks[e]},setMatte:function(e){this.matteElement&&this.matteElement.setAttribute("mask","url("+getLocationHref()+"#"+e+")")}},HierarchyElement.prototype={initHierarchy:function(){this.hierarchy=[],this._isParent=!1,this.checkParenting()},setHierarchy:function(e){this.hierarchy=e},setAsParent:function(){this._isParent=!0},checkParenting:function(){void 0!==this.data.parent&&this.comp.buildElementParenting(this,this.data.parent,[])}},extendPrototype([RenderableElement,createProxyFunction({initElement:function(e,t,n){this.initFrame(),this.initBaseData(e,t,n),this.initTransform(e,t,n),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide()},hide:function(){this.hidden||this.isInRange&&!this.isTransparent||((this.baseElement||this.layerElement).style.display="none",this.hidden=!0)},show:function(){this.isInRange&&!this.isTransparent&&(this.data.hd||((this.baseElement||this.layerElement).style.display="block"),this.hidden=!1,this._isFirstFrame=!0)},renderFrame:function(){this.data.hd||this.hidden||(this.renderTransform(),this.renderRenderable(),this.renderLocalTransform(),this.renderElement(),this.renderInnerContent(),this._isFirstFrame&&(this._isFirstFrame=!1))},renderInnerContent:function(){},prepareFrame:function(e){this._mdf=!1,this.prepareRenderableFrame(e),this.prepareProperties(e,this.isInRange),this.checkTransparency()},destroy:function(){this.innerElem=null,this.destroyBaseElement()}})],RenderableDOMElement),extendPrototype([BaseElement,TransformElement,SVGBaseElement,HierarchyElement,FrameElement,RenderableDOMElement],IImageElement),IImageElement.prototype.createContent=function(){var e=this.globalData.getAssetsPath(this.assetData);this.innerElem=createNS("image"),this.innerElem.setAttribute("width",this.assetData.w+"px"),this.innerElem.setAttribute("height",this.assetData.h+"px"),this.innerElem.setAttribute("preserveAspectRatio",this.assetData.pr||this.globalData.renderConfig.imagePreserveAspectRatio),this.innerElem.setAttributeNS("http://www.w3.org/1999/xlink","href",e),this.layerElement.appendChild(this.innerElem)},IImageElement.prototype.sourceRectAtTime=function(){return this.sourceRect},IShapeElement.prototype={addShapeToModifiers:function(e){var t,n=this.shapeModifiers.length;for(t=0;t<n;t+=1)this.shapeModifiers[t].addShape(e)},isShapeInAnimatedModifiers:function(e){for(var t=this.shapeModifiers.length;0<t;)if(this.shapeModifiers[0].isAnimatedWithShape(e))return!0;return!1},renderModifiers:function(){if(this.shapeModifiers.length){var e,t=this.shapes.length;for(e=0;e<t;e+=1)this.shapes[e].sh.reset();for(e=(t=this.shapeModifiers.length)-1;e>=0&&!this.shapeModifiers[e].processShapes(this._isFirstFrame);e-=1);}},searchProcessedElement:function(e){for(var t=this.processedElements,n=0,r=t.length;n<r;){if(t[n].elem===e)return t[n].pos;n+=1}return 0},addProcessedElement:function(e,t){for(var n=this.processedElements,r=n.length;r;)if(n[r-=1].elem===e)return void(n[r].pos=t);n.push(new ProcessedElement(e,t))},prepareFrame:function(e){this.prepareRenderableFrame(e),this.prepareProperties(e,this.isInRange)}};var lineCapEnum={1:"butt",2:"round",3:"square"},lineJoinEnum={1:"miter",2:"round",3:"bevel"};function SVGShapeData(e,t,n){this.caches=[],this.styles=[],this.transformers=e,this.lStr="",this.sh=n,this.lvl=t,this._isAnimated=!!n.k;for(var r=0,a=e.length;r<a;){if(e[r].mProps.dynamicProperties.length){this._isAnimated=!0;break}r+=1}}function SVGStyleData(e,t){this.data=e,this.type=e.ty,this.d="",this.lvl=t,this._mdf=!1,this.closed=!0===e.hd,this.pElem=createNS("path"),this.msElem=null}function DashProperty(e,t,n,r){var a;this.elem=e,this.frameId=-1,this.dataProps=createSizedArray(t.length),this.renderer=n,this.k=!1,this.dashStr="",this.dashArray=createTypedArray("float32",t.length?t.length-1:0),this.dashoffset=createTypedArray("float32",1),this.initDynamicPropertyContainer(r);var i,o=t.length||0;for(a=0;a<o;a+=1)i=PropertyFactory.getProp(e,t[a].v,0,0,this),this.k=i.k||this.k,this.dataProps[a]={n:t[a].n,p:i};this.k||this.getValue(!0),this._isAnimated=this.k}function SVGStrokeStyleData(e,t,n){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.o=PropertyFactory.getProp(e,t.o,0,.01,this),this.w=PropertyFactory.getProp(e,t.w,0,null,this),this.d=new DashProperty(e,t.d||{},"svg",this),this.c=PropertyFactory.getProp(e,t.c,1,255,this),this.style=n,this._isAnimated=!!this._isAnimated}function SVGFillStyleData(e,t,n){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.o=PropertyFactory.getProp(e,t.o,0,.01,this),this.c=PropertyFactory.getProp(e,t.c,1,255,this),this.style=n}function SVGNoStyleData(e,t,n){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.style=n}function GradientProperty(e,t,n){this.data=t,this.c=createTypedArray("uint8c",4*t.p);var r=t.k.k[0].s?t.k.k[0].s.length-4*t.p:t.k.k.length-4*t.p;this.o=createTypedArray("float32",r),this._cmdf=!1,this._omdf=!1,this._collapsable=this.checkCollapsable(),this._hasOpacity=r,this.initDynamicPropertyContainer(n),this.prop=PropertyFactory.getProp(e,t.k,1,null,this),this.k=this.prop.k,this.getValue(!0)}function SVGGradientFillStyleData(e,t,n){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.initGradientData(e,t,n)}function SVGGradientStrokeStyleData(e,t,n){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.w=PropertyFactory.getProp(e,t.w,0,null,this),this.d=new DashProperty(e,t.d||{},"svg",this),this.initGradientData(e,t,n),this._isAnimated=!!this._isAnimated}function ShapeGroupData(){this.it=[],this.prevViewData=[],this.gr=createNS("g")}function SVGTransformData(e,t,n){this.transform={mProps:e,op:t,container:n},this.elements=[],this._isAnimated=this.transform.mProps.dynamicProperties.length||this.transform.op.effectsSequence.length}SVGShapeData.prototype.setAsAnimated=function(){this._isAnimated=!0},SVGStyleData.prototype.reset=function(){this.d="",this._mdf=!1},DashProperty.prototype.getValue=function(e){if((this.elem.globalData.frameId!==this.frameId||e)&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf=this._mdf||e,this._mdf)){var t=0,n=this.dataProps.length;for("svg"===this.renderer&&(this.dashStr=""),t=0;t<n;t+=1)"o"!==this.dataProps[t].n?"svg"===this.renderer?this.dashStr+=" "+this.dataProps[t].p.v:this.dashArray[t]=this.dataProps[t].p.v:this.dashoffset[0]=this.dataProps[t].p.v}},extendPrototype([DynamicPropertyContainer],DashProperty),extendPrototype([DynamicPropertyContainer],SVGStrokeStyleData),extendPrototype([DynamicPropertyContainer],SVGFillStyleData),extendPrototype([DynamicPropertyContainer],SVGNoStyleData),GradientProperty.prototype.comparePoints=function(e,t){for(var n=0,r=this.o.length/2;n<r;){if(Math.abs(e[4*n]-e[4*t+2*n])>.01)return!1;n+=1}return!0},GradientProperty.prototype.checkCollapsable=function(){if(this.o.length/2!=this.c.length/4)return!1;if(this.data.k.k[0].s)for(var e=0,t=this.data.k.k.length;e<t;){if(!this.comparePoints(this.data.k.k[e].s,this.data.p))return!1;e+=1}else if(!this.comparePoints(this.data.k.k,this.data.p))return!1;return!0},GradientProperty.prototype.getValue=function(e){if(this.prop.getValue(),this._mdf=!1,this._cmdf=!1,this._omdf=!1,this.prop._mdf||e){var t,n,r,a=4*this.data.p;for(t=0;t<a;t+=1)n=t%4==0?100:255,r=Math.round(this.prop.v[t]*n),this.c[t]!==r&&(this.c[t]=r,this._cmdf=!e);if(this.o.length)for(a=this.prop.v.length,t=4*this.data.p;t<a;t+=1)n=t%2==0?100:1,r=t%2==0?Math.round(100*this.prop.v[t]):this.prop.v[t],this.o[t-4*this.data.p]!==r&&(this.o[t-4*this.data.p]=r,this._omdf=!e);this._mdf=!e}},extendPrototype([DynamicPropertyContainer],GradientProperty),SVGGradientFillStyleData.prototype.initGradientData=function(e,t,n){this.o=PropertyFactory.getProp(e,t.o,0,.01,this),this.s=PropertyFactory.getProp(e,t.s,1,null,this),this.e=PropertyFactory.getProp(e,t.e,1,null,this),this.h=PropertyFactory.getProp(e,t.h||{k:0},0,.01,this),this.a=PropertyFactory.getProp(e,t.a||{k:0},0,degToRads,this),this.g=new GradientProperty(e,t.g,this),this.style=n,this.stops=[],this.setGradientData(n.pElem,t),this.setGradientOpacity(t,n),this._isAnimated=!!this._isAnimated},SVGGradientFillStyleData.prototype.setGradientData=function(e,t){var n=createElementID(),r=createNS(1===t.t?"linearGradient":"radialGradient");r.setAttribute("id",n),r.setAttribute("spreadMethod","pad"),r.setAttribute("gradientUnits","userSpaceOnUse");var a,i,o,s=[];for(o=4*t.g.p,i=0;i<o;i+=4)a=createNS("stop"),r.appendChild(a),s.push(a);e.setAttribute("gf"===t.ty?"fill":"stroke","url("+getLocationHref()+"#"+n+")"),this.gf=r,this.cst=s},SVGGradientFillStyleData.prototype.setGradientOpacity=function(e,t){if(this.g._hasOpacity&&!this.g._collapsable){var n,r,a,i=createNS("mask"),o=createNS("path");i.appendChild(o);var s=createElementID(),l=createElementID();i.setAttribute("id",l);var c=createNS(1===e.t?"linearGradient":"radialGradient");c.setAttribute("id",s),c.setAttribute("spreadMethod","pad"),c.setAttribute("gradientUnits","userSpaceOnUse"),a=e.g.k.k[0].s?e.g.k.k[0].s.length:e.g.k.k.length;var u=this.stops;for(r=4*e.g.p;r<a;r+=2)(n=createNS("stop")).setAttribute("stop-color","rgb(255,255,255)"),c.appendChild(n),u.push(n);o.setAttribute("gf"===e.ty?"fill":"stroke","url("+getLocationHref()+"#"+s+")"),"gs"===e.ty&&(o.setAttribute("stroke-linecap",lineCapEnum[e.lc||2]),o.setAttribute("stroke-linejoin",lineJoinEnum[e.lj||2]),1===e.lj&&o.setAttribute("stroke-miterlimit",e.ml)),this.of=c,this.ms=i,this.ost=u,this.maskId=l,t.msElem=o}},extendPrototype([DynamicPropertyContainer],SVGGradientFillStyleData),extendPrototype([SVGGradientFillStyleData,DynamicPropertyContainer],SVGGradientStrokeStyleData);var buildShapeString=function(e,t,n,r){if(0===t)return"";var a,i=e.o,o=e.i,s=e.v,l=" M"+r.applyToPointStringified(s[0][0],s[0][1]);for(a=1;a<t;a+=1)l+=" C"+r.applyToPointStringified(i[a-1][0],i[a-1][1])+" "+r.applyToPointStringified(o[a][0],o[a][1])+" "+r.applyToPointStringified(s[a][0],s[a][1]);return n&&t&&(l+=" C"+r.applyToPointStringified(i[a-1][0],i[a-1][1])+" "+r.applyToPointStringified(o[0][0],o[0][1])+" "+r.applyToPointStringified(s[0][0],s[0][1]),l+="z"),l},SVGElementsRenderer=function(){var e=new Matrix,t=new Matrix;function n(e,t,n){(n||t.transform.op._mdf)&&t.transform.container.setAttribute("opacity",t.transform.op.v),(n||t.transform.mProps._mdf)&&t.transform.container.setAttribute("transform",t.transform.mProps.v.to2dCSS())}function r(){}function a(n,r,a){var i,o,s,l,c,u,f,h,p,d,m=r.styles.length,g=r.lvl;for(u=0;u<m;u+=1){if(l=r.sh._mdf||a,r.styles[u].lvl<g){for(h=t.reset(),p=g-r.styles[u].lvl,d=r.transformers.length-1;!l&&p>0;)l=r.transformers[d].mProps._mdf||l,p-=1,d-=1;if(l)for(p=g-r.styles[u].lvl,d=r.transformers.length-1;p>0;)h.multiply(r.transformers[d].mProps.v),p-=1,d-=1}else h=e;if(o=(f=r.sh.paths)._length,l){for(s="",i=0;i<o;i+=1)(c=f.shapes[i])&&c._length&&(s+=buildShapeString(c,c._length,c.c,h));r.caches[u]=s}else s=r.caches[u];r.styles[u].d+=!0===n.hd?"":s,r.styles[u]._mdf=l||r.styles[u]._mdf}}function i(e,t,n){var r=t.style;(t.c._mdf||n)&&r.pElem.setAttribute("fill","rgb("+bmFloor(t.c.v[0])+","+bmFloor(t.c.v[1])+","+bmFloor(t.c.v[2])+")"),(t.o._mdf||n)&&r.pElem.setAttribute("fill-opacity",t.o.v)}function o(e,t,n){s(e,t,n),l(0,t,n)}function s(e,t,n){var r,a,i,o,s,l=t.gf,c=t.g._hasOpacity,u=t.s.v,f=t.e.v;if(t.o._mdf||n){var h="gf"===e.ty?"fill-opacity":"stroke-opacity";t.style.pElem.setAttribute(h,t.o.v)}if(t.s._mdf||n){var p=1===e.t?"x1":"cx",d="x1"===p?"y1":"cy";l.setAttribute(p,u[0]),l.setAttribute(d,u[1]),c&&!t.g._collapsable&&(t.of.setAttribute(p,u[0]),t.of.setAttribute(d,u[1]))}if(t.g._cmdf||n){r=t.cst;var m=t.g.c;for(i=r.length,a=0;a<i;a+=1)(o=r[a]).setAttribute("offset",m[4*a]+"%"),o.setAttribute("stop-color","rgb("+m[4*a+1]+","+m[4*a+2]+","+m[4*a+3]+")")}if(c&&(t.g._omdf||n)){var g=t.g.o;for(i=(r=t.g._collapsable?t.cst:t.ost).length,a=0;a<i;a+=1)o=r[a],t.g._collapsable||o.setAttribute("offset",g[2*a]+"%"),o.setAttribute("stop-opacity",g[2*a+1])}if(1===e.t)(t.e._mdf||n)&&(l.setAttribute("x2",f[0]),l.setAttribute("y2",f[1]),c&&!t.g._collapsable&&(t.of.setAttribute("x2",f[0]),t.of.setAttribute("y2",f[1])));else if((t.s._mdf||t.e._mdf||n)&&(s=Math.sqrt(Math.pow(u[0]-f[0],2)+Math.pow(u[1]-f[1],2)),l.setAttribute("r",s),c&&!t.g._collapsable&&t.of.setAttribute("r",s)),t.s._mdf||t.e._mdf||t.h._mdf||t.a._mdf||n){s||(s=Math.sqrt(Math.pow(u[0]-f[0],2)+Math.pow(u[1]-f[1],2)));var y=Math.atan2(f[1]-u[1],f[0]-u[0]),v=t.h.v;v>=1?v=.99:v<=-1&&(v=-.99);var b=s*v,_=Math.cos(y+t.a.v)*b+u[0],w=Math.sin(y+t.a.v)*b+u[1];l.setAttribute("fx",_),l.setAttribute("fy",w),c&&!t.g._collapsable&&(t.of.setAttribute("fx",_),t.of.setAttribute("fy",w))}}function l(e,t,n){var r=t.style,a=t.d;a&&(a._mdf||n)&&a.dashStr&&(r.pElem.setAttribute("stroke-dasharray",a.dashStr),r.pElem.setAttribute("stroke-dashoffset",a.dashoffset[0])),t.c&&(t.c._mdf||n)&&r.pElem.setAttribute("stroke","rgb("+bmFloor(t.c.v[0])+","+bmFloor(t.c.v[1])+","+bmFloor(t.c.v[2])+")"),(t.o._mdf||n)&&r.pElem.setAttribute("stroke-opacity",t.o.v),(t.w._mdf||n)&&(r.pElem.setAttribute("stroke-width",t.w.v),r.msElem&&r.msElem.setAttribute("stroke-width",t.w.v))}return{createRenderFunction:function(e){switch(e.ty){case"fl":return i;case"gf":return s;case"gs":return o;case"st":return l;case"sh":case"el":case"rc":case"sr":return a;case"tr":return n;case"no":return r;default:return null}}}}();function SVGShapeElement(e,t,n){this.shapes=[],this.shapesData=e.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.initElement(e,t,n),this.prevViewData=[]}function LetterProps(e,t,n,r,a,i){this.o=e,this.sw=t,this.sc=n,this.fc=r,this.m=a,this.p=i,this._mdf={o:!0,sw:!!t,sc:!!n,fc:!!r,m:!0,p:!0}}function TextProperty(e,t){this._frameId=initialDefaultFrame,this.pv="",this.v="",this.kf=!1,this._isFirstFrame=!0,this._mdf=!1,t.d&&t.d.sid&&(t.d=e.globalData.slotManager.getProp(t.d)),this.data=t,this.elem=e,this.comp=this.elem.comp,this.keysIndex=0,this.canResize=!1,this.minimumFontSize=1,this.effectsSequence=[],this.currentData={ascent:0,boxWidth:this.defaultBoxWidth,f:"",fStyle:"",fWeight:"",fc:"",j:"",justifyOffset:"",l:[],lh:0,lineWidths:[],ls:"",of:"",s:"",sc:"",sw:0,t:0,tr:0,sz:0,ps:null,fillColorAnim:!1,strokeColorAnim:!1,strokeWidthAnim:!1,yOffset:0,finalSize:0,finalText:[],finalLineHeight:0,__complete:!1},this.copyData(this.currentData,this.data.d.k[0].s),this.searchProperty()||this.completeTextData(this.currentData)}extendPrototype([BaseElement,TransformElement,SVGBaseElement,IShapeElement,HierarchyElement,FrameElement,RenderableDOMElement],SVGShapeElement),SVGShapeElement.prototype.initSecondaryElement=function(){},SVGShapeElement.prototype.identityMatrix=new Matrix,SVGShapeElement.prototype.buildExpressionInterface=function(){},SVGShapeElement.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes()},SVGShapeElement.prototype.filterUniqueShapes=function(){var e,t,n,r,a=this.shapes.length,i=this.stylesList.length,o=[],s=!1;for(n=0;n<i;n+=1){for(r=this.stylesList[n],s=!1,o.length=0,e=0;e<a;e+=1)-1!==(t=this.shapes[e]).styles.indexOf(r)&&(o.push(t),s=t._isAnimated||s);o.length>1&&s&&this.setShapesAsAnimated(o)}},SVGShapeElement.prototype.setShapesAsAnimated=function(e){var t,n=e.length;for(t=0;t<n;t+=1)e[t].setAsAnimated()},SVGShapeElement.prototype.createStyleElement=function(e,t){var n,r=new SVGStyleData(e,t),a=r.pElem;return"st"===e.ty?n=new SVGStrokeStyleData(this,e,r):"fl"===e.ty?n=new SVGFillStyleData(this,e,r):"gf"===e.ty||"gs"===e.ty?(n=new("gf"===e.ty?SVGGradientFillStyleData:SVGGradientStrokeStyleData)(this,e,r),this.globalData.defs.appendChild(n.gf),n.maskId&&(this.globalData.defs.appendChild(n.ms),this.globalData.defs.appendChild(n.of),a.setAttribute("mask","url("+getLocationHref()+"#"+n.maskId+")"))):"no"===e.ty&&(n=new SVGNoStyleData(this,e,r)),"st"!==e.ty&&"gs"!==e.ty||(a.setAttribute("stroke-linecap",lineCapEnum[e.lc||2]),a.setAttribute("stroke-linejoin",lineJoinEnum[e.lj||2]),a.setAttribute("fill-opacity","0"),1===e.lj&&a.setAttribute("stroke-miterlimit",e.ml)),2===e.r&&a.setAttribute("fill-rule","evenodd"),e.ln&&a.setAttribute("id",e.ln),e.cl&&a.setAttribute("class",e.cl),e.bm&&(a.style["mix-blend-mode"]=getBlendMode(e.bm)),this.stylesList.push(r),this.addToAnimatedContents(e,n),n},SVGShapeElement.prototype.createGroupElement=function(e){var t=new ShapeGroupData;return e.ln&&t.gr.setAttribute("id",e.ln),e.cl&&t.gr.setAttribute("class",e.cl),e.bm&&(t.gr.style["mix-blend-mode"]=getBlendMode(e.bm)),t},SVGShapeElement.prototype.createTransformElement=function(e,t){var n=TransformPropertyFactory.getTransformProperty(this,e,this),r=new SVGTransformData(n,n.o,t);return this.addToAnimatedContents(e,r),r},SVGShapeElement.prototype.createShapeElement=function(e,t,n){var r=4;"rc"===e.ty?r=5:"el"===e.ty?r=6:"sr"===e.ty&&(r=7);var a=new SVGShapeData(t,n,ShapePropertyFactory.getShapeProp(this,e,r,this));return this.shapes.push(a),this.addShapeToModifiers(a),this.addToAnimatedContents(e,a),a},SVGShapeElement.prototype.addToAnimatedContents=function(e,t){for(var n=0,r=this.animatedContents.length;n<r;){if(this.animatedContents[n].element===t)return;n+=1}this.animatedContents.push({fn:SVGElementsRenderer.createRenderFunction(e),element:t,data:e})},SVGShapeElement.prototype.setElementStyles=function(e){var t,n=e.styles,r=this.stylesList.length;for(t=0;t<r;t+=1)-1!==n.indexOf(this.stylesList[t])||this.stylesList[t].closed||n.push(this.stylesList[t])},SVGShapeElement.prototype.reloadShapes=function(){var e;this._isFirstFrame=!0;var t=this.itemsData.length;for(e=0;e<t;e+=1)this.prevViewData[e]=this.itemsData[e];for(this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes(),t=this.dynamicProperties.length,e=0;e<t;e+=1)this.dynamicProperties[e].getValue();this.renderModifiers()},SVGShapeElement.prototype.searchShapes=function(e,t,n,r,a,i,o){var s,l,c,u,f,h,p=[].concat(i),d=e.length-1,m=[],g=[];for(s=d;s>=0;s-=1){if((h=this.searchProcessedElement(e[s]))?t[s]=n[h-1]:e[s]._render=o,"fl"===e[s].ty||"st"===e[s].ty||"gf"===e[s].ty||"gs"===e[s].ty||"no"===e[s].ty)h?t[s].style.closed=e[s].hd:t[s]=this.createStyleElement(e[s],a),e[s]._render&&t[s].style.pElem.parentNode!==r&&r.appendChild(t[s].style.pElem),m.push(t[s].style);else if("gr"===e[s].ty){if(h)for(c=t[s].it.length,l=0;l<c;l+=1)t[s].prevViewData[l]=t[s].it[l];else t[s]=this.createGroupElement(e[s]);this.searchShapes(e[s].it,t[s].it,t[s].prevViewData,t[s].gr,a+1,p,o),e[s]._render&&t[s].gr.parentNode!==r&&r.appendChild(t[s].gr)}else"tr"===e[s].ty?(h||(t[s]=this.createTransformElement(e[s],r)),u=t[s].transform,p.push(u)):"sh"===e[s].ty||"rc"===e[s].ty||"el"===e[s].ty||"sr"===e[s].ty?(h||(t[s]=this.createShapeElement(e[s],p,a)),this.setElementStyles(t[s])):"tm"===e[s].ty||"rd"===e[s].ty||"ms"===e[s].ty||"pb"===e[s].ty||"zz"===e[s].ty||"op"===e[s].ty?(h?(f=t[s]).closed=!1:((f=ShapeModifiers.getModifier(e[s].ty)).init(this,e[s]),t[s]=f,this.shapeModifiers.push(f)),g.push(f)):"rp"===e[s].ty&&(h?(f=t[s]).closed=!0:(f=ShapeModifiers.getModifier(e[s].ty),t[s]=f,f.init(this,e,s,t),this.shapeModifiers.push(f),o=!1),g.push(f));this.addProcessedElement(e[s],s+1)}for(d=m.length,s=0;s<d;s+=1)m[s].closed=!0;for(d=g.length,s=0;s<d;s+=1)g[s].closed=!0},SVGShapeElement.prototype.renderInnerContent=function(){var e;this.renderModifiers();var t=this.stylesList.length;for(e=0;e<t;e+=1)this.stylesList[e].reset();for(this.renderShape(),e=0;e<t;e+=1)(this.stylesList[e]._mdf||this._isFirstFrame)&&(this.stylesList[e].msElem&&(this.stylesList[e].msElem.setAttribute("d",this.stylesList[e].d),this.stylesList[e].d="M0 0"+this.stylesList[e].d),this.stylesList[e].pElem.setAttribute("d",this.stylesList[e].d||"M0 0"))},SVGShapeElement.prototype.renderShape=function(){var e,t,n=this.animatedContents.length;for(e=0;e<n;e+=1)t=this.animatedContents[e],(this._isFirstFrame||t.element._isAnimated)&&!0!==t.data&&t.fn(t.data,t.element,this._isFirstFrame)},SVGShapeElement.prototype.destroy=function(){this.destroyBaseElement(),this.shapesData=null,this.itemsData=null},LetterProps.prototype.update=function(e,t,n,r,a,i){this._mdf.o=!1,this._mdf.sw=!1,this._mdf.sc=!1,this._mdf.fc=!1,this._mdf.m=!1,this._mdf.p=!1;var o=!1;return this.o!==e&&(this.o=e,this._mdf.o=!0,o=!0),this.sw!==t&&(this.sw=t,this._mdf.sw=!0,o=!0),this.sc!==n&&(this.sc=n,this._mdf.sc=!0,o=!0),this.fc!==r&&(this.fc=r,this._mdf.fc=!0,o=!0),this.m!==a&&(this.m=a,this._mdf.m=!0,o=!0),!i.length||this.p[0]===i[0]&&this.p[1]===i[1]&&this.p[4]===i[4]&&this.p[5]===i[5]&&this.p[12]===i[12]&&this.p[13]===i[13]||(this.p=i,this._mdf.p=!0,o=!0),o},TextProperty.prototype.defaultBoxWidth=[0,0],TextProperty.prototype.copyData=function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e},TextProperty.prototype.setCurrentData=function(e){e.__complete||this.completeTextData(e),this.currentData=e,this.currentData.boxWidth=this.currentData.boxWidth||this.defaultBoxWidth,this._mdf=!0},TextProperty.prototype.searchProperty=function(){return this.searchKeyframes()},TextProperty.prototype.searchKeyframes=function(){return this.kf=this.data.d.k.length>1,this.kf&&this.addEffect(this.getKeyframeValue.bind(this)),this.kf},TextProperty.prototype.addEffect=function(e){this.effectsSequence.push(e),this.elem.addDynamicProperty(this)},TextProperty.prototype.getValue=function(e){if(this.elem.globalData.frameId!==this.frameId&&this.effectsSequence.length||e){this.currentData.t=this.data.d.k[this.keysIndex].s.t;var t=this.currentData,n=this.keysIndex;if(this.lock)this.setCurrentData(this.currentData);else{var r;this.lock=!0,this._mdf=!1;var a=this.effectsSequence.length,i=e||this.data.d.k[this.keysIndex].s;for(r=0;r<a;r+=1)i=n!==this.keysIndex?this.effectsSequence[r](i,i.t):this.effectsSequence[r](this.currentData,i.t);t!==i&&this.setCurrentData(i),this.v=this.currentData,this.pv=this.v,this.lock=!1,this.frameId=this.elem.globalData.frameId}}},TextProperty.prototype.getKeyframeValue=function(){for(var e=this.data.d.k,t=this.elem.comp.renderedFrame,n=0,r=e.length;n<=r-1&&!(n===r-1||e[n+1].t>t);)n+=1;return this.keysIndex!==n&&(this.keysIndex=n),this.data.d.k[this.keysIndex].s},TextProperty.prototype.buildFinalText=function(e){for(var t,n,r=[],a=0,i=e.length,o=!1,s=!1,l="";a<i;)o=s,s=!1,t=e.charCodeAt(a),l=e.charAt(a),FontManager.isCombinedCharacter(t)?o=!0:t>=55296&&t<=56319?FontManager.isRegionalFlag(e,a)?l=e.substr(a,14):(n=e.charCodeAt(a+1))>=56320&&n<=57343&&(FontManager.isModifier(t,n)?(l=e.substr(a,2),o=!0):l=FontManager.isFlagEmoji(e.substr(a,4))?e.substr(a,4):e.substr(a,2)):t>56319?(n=e.charCodeAt(a+1),FontManager.isVariationSelector(t)&&(o=!0)):FontManager.isZeroWidthJoiner(t)&&(o=!0,s=!0),o?(r[r.length-1]+=l,o=!1):r.push(l),a+=l.length;return r},TextProperty.prototype.completeTextData=function(e){e.__complete=!0;var t,n,r,a,i,o,s,l=this.elem.globalData.fontManager,c=this.data,u=[],f=0,h=c.m.g,p=0,d=0,m=0,g=[],y=0,v=0,b=l.getFontByName(e.f),_=0,w=getFontProperties(b);e.fWeight=w.weight,e.fStyle=w.style,e.finalSize=e.s,e.finalText=this.buildFinalText(e.t),n=e.finalText.length,e.finalLineHeight=e.lh;var S,x=e.tr/1e3*e.finalSize;if(e.sz)for(var k,C,E=!0,P=e.sz[0],A=e.sz[1];E;){k=0,y=0,n=(C=this.buildFinalText(e.t)).length,x=e.tr/1e3*e.finalSize;var O=-1;for(t=0;t<n;t+=1)S=C[t].charCodeAt(0),r=!1," "===C[t]?O=t:13!==S&&3!==S||(y=0,r=!0,k+=e.finalLineHeight||1.2*e.finalSize),l.chars?(s=l.getCharData(C[t],b.fStyle,b.fFamily),_=r?0:s.w*e.finalSize/100):_=l.measureText(C[t],e.f,e.finalSize),y+_>P&&" "!==C[t]?(-1===O?n+=1:t=O,k+=e.finalLineHeight||1.2*e.finalSize,C.splice(t,O===t?1:0,"\r"),O=-1,y=0):(y+=_,y+=x);k+=b.ascent*e.finalSize/100,this.canResize&&e.finalSize>this.minimumFontSize&&A<k?(e.finalSize-=1,e.finalLineHeight=e.finalSize*e.lh/e.s):(e.finalText=C,n=e.finalText.length,E=!1)}y=-x,_=0;var M,T=0;for(t=0;t<n;t+=1)if(r=!1,13===(S=(M=e.finalText[t]).charCodeAt(0))||3===S?(T=0,g.push(y),v=y>v?y:v,y=-2*x,a="",r=!0,m+=1):a=M,l.chars?(s=l.getCharData(M,b.fStyle,l.getFontByName(e.f).fFamily),_=r?0:s.w*e.finalSize/100):_=l.measureText(a,e.f,e.finalSize)," "===M?T+=_+x:(y+=_+x+T,T=0),u.push({l:_,an:_,add:p,n:r,anIndexes:[],val:a,line:m,animatorJustifyOffset:0}),2==h){if(p+=_,""===a||" "===a||t===n-1){for(""!==a&&" "!==a||(p-=_);d<=t;)u[d].an=p,u[d].ind=f,u[d].extra=_,d+=1;f+=1,p=0}}else if(3==h){if(p+=_,""===a||t===n-1){for(""===a&&(p-=_);d<=t;)u[d].an=p,u[d].ind=f,u[d].extra=_,d+=1;p=0,f+=1}}else u[f].ind=f,u[f].extra=0,f+=1;if(e.l=u,v=y>v?y:v,g.push(y),e.sz)e.boxWidth=e.sz[0],e.justifyOffset=0;else switch(e.boxWidth=v,e.j){case 1:e.justifyOffset=-e.boxWidth;break;case 2:e.justifyOffset=-e.boxWidth/2;break;default:e.justifyOffset=0}e.lineWidths=g;var I,D,L,R,j=c.a;o=j.length;var F=[];for(i=0;i<o;i+=1){for((I=j[i]).a.sc&&(e.strokeColorAnim=!0),I.a.sw&&(e.strokeWidthAnim=!0),(I.a.fc||I.a.fh||I.a.fs||I.a.fb)&&(e.fillColorAnim=!0),R=0,L=I.s.b,t=0;t<n;t+=1)(D=u[t]).anIndexes[i]=R,(1==L&&""!==D.val||2==L&&""!==D.val&&" "!==D.val||3==L&&(D.n||" "==D.val||t==n-1)||4==L&&(D.n||t==n-1))&&(1===I.s.rn&&F.push(R),R+=1);c.a[i].s.totalChars=R;var V,N=-1;if(1===I.s.rn)for(t=0;t<n;t+=1)N!=(D=u[t]).anIndexes[i]&&(N=D.anIndexes[i],V=F.splice(Math.floor(Math.random()*F.length),1)[0]),D.anIndexes[i]=V}e.yOffset=e.finalLineHeight||1.2*e.finalSize,e.ls=e.ls||0,e.ascent=b.ascent*e.finalSize/100},TextProperty.prototype.updateDocumentData=function(e,t){t=void 0===t?this.keysIndex:t;var n=this.copyData({},this.data.d.k[t].s);n=this.copyData(n,e),this.data.d.k[t].s=n,this.recalculate(t),this.setCurrentData(n),this.elem.addDynamicProperty(this)},TextProperty.prototype.recalculate=function(e){var t=this.data.d.k[e].s;t.__complete=!1,this.keysIndex=0,this._isFirstFrame=!0,this.getValue(t)},TextProperty.prototype.canResizeFont=function(e){this.canResize=e,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)},TextProperty.prototype.setMinimumFontSize=function(e){this.minimumFontSize=Math.floor(e)||1,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)};var TextSelectorProp=function(){var e=Math.max,t=Math.min,n=Math.floor;function r(e,t){this._currentTextLength=-1,this.k=!1,this.data=t,this.elem=e,this.comp=e.comp,this.finalS=0,this.finalE=0,this.initDynamicPropertyContainer(e),this.s=PropertyFactory.getProp(e,t.s||{k:0},0,0,this),this.e="e"in t?PropertyFactory.getProp(e,t.e,0,0,this):{v:100},this.o=PropertyFactory.getProp(e,t.o||{k:0},0,0,this),this.xe=PropertyFactory.getProp(e,t.xe||{k:0},0,0,this),this.ne=PropertyFactory.getProp(e,t.ne||{k:0},0,0,this),this.sm=PropertyFactory.getProp(e,t.sm||{k:100},0,0,this),this.a=PropertyFactory.getProp(e,t.a,0,.01,this),this.dynamicProperties.length||this.getValue()}return r.prototype={getMult:function(r){this._currentTextLength!==this.elem.textProperty.currentData.l.length&&this.getValue();var a=0,i=0,o=1,s=1;this.ne.v>0?a=this.ne.v/100:i=-this.ne.v/100,this.xe.v>0?o=1-this.xe.v/100:s=1+this.xe.v/100;var l=BezierFactory.getBezierEasing(a,i,o,s).get,c=0,u=this.finalS,f=this.finalE,h=this.data.sh;if(2===h)c=l(c=f===u?r>=f?1:0:e(0,t(.5/(f-u)+(r-u)/(f-u),1)));else if(3===h)c=l(c=f===u?r>=f?0:1:1-e(0,t(.5/(f-u)+(r-u)/(f-u),1)));else if(4===h)f===u?c=0:(c=e(0,t(.5/(f-u)+(r-u)/(f-u),1)))<.5?c*=2:c=1-2*(c-.5),c=l(c);else if(5===h){if(f===u)c=0;else{var p=f-u,d=-p/2+(r=t(e(0,r+.5-u),f-u)),m=p/2;c=Math.sqrt(1-d*d/(m*m))}c=l(c)}else 6===h?(f===u?c=0:(r=t(e(0,r+.5-u),f-u),c=(1+Math.cos(Math.PI+2*Math.PI*r/(f-u)))/2),c=l(c)):(r>=n(u)&&(c=e(0,t(r-u<0?t(f,1)-(u-r):f-r,1))),c=l(c));if(100!==this.sm.v){var g=.01*this.sm.v;0===g&&(g=1e-8);var y=.5-.5*g;c<y?c=0:(c=(c-y)/g)>1&&(c=1)}return c*this.a.v},getValue:function(e){this.iterateDynamicProperties(),this._mdf=e||this._mdf,this._currentTextLength=this.elem.textProperty.currentData.l.length||0,e&&2===this.data.r&&(this.e.v=this._currentTextLength);var t=2===this.data.r?1:100/this.data.totalChars,n=this.o.v/t,r=this.s.v/t+n,a=this.e.v/t+n;if(r>a){var i=r;r=a,a=i}this.finalS=r,this.finalE=a}},extendPrototype([DynamicPropertyContainer],r),{getTextSelectorProp:function(e,t,n){return new r(e,t,n)}}}();function TextAnimatorDataProperty(e,t,n){var r={propType:!1},a=PropertyFactory.getProp,i=t.a;this.a={r:i.r?a(e,i.r,0,degToRads,n):r,rx:i.rx?a(e,i.rx,0,degToRads,n):r,ry:i.ry?a(e,i.ry,0,degToRads,n):r,sk:i.sk?a(e,i.sk,0,degToRads,n):r,sa:i.sa?a(e,i.sa,0,degToRads,n):r,s:i.s?a(e,i.s,1,.01,n):r,a:i.a?a(e,i.a,1,0,n):r,o:i.o?a(e,i.o,0,.01,n):r,p:i.p?a(e,i.p,1,0,n):r,sw:i.sw?a(e,i.sw,0,0,n):r,sc:i.sc?a(e,i.sc,1,0,n):r,fc:i.fc?a(e,i.fc,1,0,n):r,fh:i.fh?a(e,i.fh,0,0,n):r,fs:i.fs?a(e,i.fs,0,.01,n):r,fb:i.fb?a(e,i.fb,0,.01,n):r,t:i.t?a(e,i.t,0,0,n):r},this.s=TextSelectorProp.getTextSelectorProp(e,t.s,n),this.s.t=t.s.t}function TextAnimatorProperty(e,t,n){this._isFirstFrame=!0,this._hasMaskedPath=!1,this._frameId=-1,this._textData=e,this._renderType=t,this._elem=n,this._animatorsData=createSizedArray(this._textData.a.length),this._pathData={},this._moreOptions={alignment:{}},this.renderedLetters=[],this.lettersChangedFlag=!1,this.initDynamicPropertyContainer(n)}function ITextElement(){}TextAnimatorProperty.prototype.searchProperties=function(){var e,t,n=this._textData.a.length,r=PropertyFactory.getProp;for(e=0;e<n;e+=1)t=this._textData.a[e],this._animatorsData[e]=new TextAnimatorDataProperty(this._elem,t,this);this._textData.p&&"m"in this._textData.p?(this._pathData={a:r(this._elem,this._textData.p.a,0,0,this),f:r(this._elem,this._textData.p.f,0,0,this),l:r(this._elem,this._textData.p.l,0,0,this),r:r(this._elem,this._textData.p.r,0,0,this),p:r(this._elem,this._textData.p.p,0,0,this),m:this._elem.maskManager.getMaskProperty(this._textData.p.m)},this._hasMaskedPath=!0):this._hasMaskedPath=!1,this._moreOptions.alignment=r(this._elem,this._textData.m.a,1,0,this)},TextAnimatorProperty.prototype.getMeasures=function(e,t){if(this.lettersChangedFlag=t,this._mdf||this._isFirstFrame||t||this._hasMaskedPath&&this._pathData.m._mdf){this._isFirstFrame=!1;var n,r,a,i,o,s,l,c,u,f,h,p,d,m,g,y,v,b,_,w=this._moreOptions.alignment.v,S=this._animatorsData,x=this._textData,k=this.mHelper,C=this._renderType,E=this.renderedLetters.length,P=e.l;if(this._hasMaskedPath){if(_=this._pathData.m,!this._pathData.n||this._pathData._mdf){var A,O=_.v;for(this._pathData.r.v&&(O=O.reverse()),o={tLength:0,segments:[]},i=O._length-1,y=0,a=0;a<i;a+=1)A=bez.buildBezierData(O.v[a],O.v[a+1],[O.o[a][0]-O.v[a][0],O.o[a][1]-O.v[a][1]],[O.i[a+1][0]-O.v[a+1][0],O.i[a+1][1]-O.v[a+1][1]]),o.tLength+=A.segmentLength,o.segments.push(A),y+=A.segmentLength;a=i,_.v.c&&(A=bez.buildBezierData(O.v[a],O.v[0],[O.o[a][0]-O.v[a][0],O.o[a][1]-O.v[a][1]],[O.i[0][0]-O.v[0][0],O.i[0][1]-O.v[0][1]]),o.tLength+=A.segmentLength,o.segments.push(A),y+=A.segmentLength),this._pathData.pi=o}if(o=this._pathData.pi,s=this._pathData.f.v,h=0,f=1,c=0,u=!0,m=o.segments,s<0&&_.v.c)for(o.tLength<Math.abs(s)&&(s=-Math.abs(s)%o.tLength),f=(d=m[h=m.length-1].points).length-1;s<0;)s+=d[f].partialLength,(f-=1)<0&&(f=(d=m[h-=1].points).length-1);p=(d=m[h].points)[f-1],g=(l=d[f]).partialLength}i=P.length,n=0,r=0;var M,T,I,D,L,R=1.2*e.finalSize*.714,j=!0;I=S.length;var F,V,N,B,z,H,G,W,U,$,q,Y,K=-1,X=s,J=h,Z=f,Q=-1,ee="",te=this.defaultPropsArray;if(2===e.j||1===e.j){var ne=0,re=0,ae=2===e.j?-.5:-1,ie=0,oe=!0;for(a=0;a<i;a+=1)if(P[a].n){for(ne&&(ne+=re);ie<a;)P[ie].animatorJustifyOffset=ne,ie+=1;ne=0,oe=!0}else{for(T=0;T<I;T+=1)(M=S[T].a).t.propType&&(oe&&2===e.j&&(re+=M.t.v*ae),(L=S[T].s.getMult(P[a].anIndexes[T],x.a[T].s.totalChars)).length?ne+=M.t.v*L[0]*ae:ne+=M.t.v*L*ae);oe=!1}for(ne&&(ne+=re);ie<a;)P[ie].animatorJustifyOffset=ne,ie+=1}for(a=0;a<i;a+=1){if(k.reset(),B=1,P[a].n)n=0,r+=e.yOffset,r+=j?1:0,s=X,j=!1,this._hasMaskedPath&&(f=Z,p=(d=m[h=J].points)[f-1],g=(l=d[f]).partialLength,c=0),ee="",q="",U="",Y="",te=this.defaultPropsArray;else{if(this._hasMaskedPath){if(Q!==P[a].line){switch(e.j){case 1:s+=y-e.lineWidths[P[a].line];break;case 2:s+=(y-e.lineWidths[P[a].line])/2}Q=P[a].line}K!==P[a].ind&&(P[K]&&(s+=P[K].extra),s+=P[a].an/2,K=P[a].ind),s+=w[0]*P[a].an*.005;var se=0;for(T=0;T<I;T+=1)(M=S[T].a).p.propType&&((L=S[T].s.getMult(P[a].anIndexes[T],x.a[T].s.totalChars)).length?se+=M.p.v[0]*L[0]:se+=M.p.v[0]*L),M.a.propType&&((L=S[T].s.getMult(P[a].anIndexes[T],x.a[T].s.totalChars)).length?se+=M.a.v[0]*L[0]:se+=M.a.v[0]*L);for(u=!0,this._pathData.a.v&&(s=.5*P[0].an+(y-this._pathData.f.v-.5*P[0].an-.5*P[P.length-1].an)*K/(i-1),s+=this._pathData.f.v);u;)c+g>=s+se||!d?(v=(s+se-c)/l.partialLength,V=p.point[0]+(l.point[0]-p.point[0])*v,N=p.point[1]+(l.point[1]-p.point[1])*v,k.translate(-w[0]*P[a].an*.005,-w[1]*R*.01),u=!1):d&&(c+=l.partialLength,(f+=1)>=d.length&&(f=0,m[h+=1]?d=m[h].points:_.v.c?(f=0,d=m[h=0].points):(c-=l.partialLength,d=null)),d&&(p=l,g=(l=d[f]).partialLength));F=P[a].an/2-P[a].add,k.translate(-F,0,0)}else F=P[a].an/2-P[a].add,k.translate(-F,0,0),k.translate(-w[0]*P[a].an*.005,-w[1]*R*.01,0);for(T=0;T<I;T+=1)(M=S[T].a).t.propType&&(L=S[T].s.getMult(P[a].anIndexes[T],x.a[T].s.totalChars),0===n&&0===e.j||(this._hasMaskedPath?L.length?s+=M.t.v*L[0]:s+=M.t.v*L:L.length?n+=M.t.v*L[0]:n+=M.t.v*L));for(e.strokeWidthAnim&&(H=e.sw||0),e.strokeColorAnim&&(z=e.sc?[e.sc[0],e.sc[1],e.sc[2]]:[0,0,0]),e.fillColorAnim&&e.fc&&(G=[e.fc[0],e.fc[1],e.fc[2]]),T=0;T<I;T+=1)(M=S[T].a).a.propType&&((L=S[T].s.getMult(P[a].anIndexes[T],x.a[T].s.totalChars)).length?k.translate(-M.a.v[0]*L[0],-M.a.v[1]*L[1],M.a.v[2]*L[2]):k.translate(-M.a.v[0]*L,-M.a.v[1]*L,M.a.v[2]*L));for(T=0;T<I;T+=1)(M=S[T].a).s.propType&&((L=S[T].s.getMult(P[a].anIndexes[T],x.a[T].s.totalChars)).length?k.scale(1+(M.s.v[0]-1)*L[0],1+(M.s.v[1]-1)*L[1],1):k.scale(1+(M.s.v[0]-1)*L,1+(M.s.v[1]-1)*L,1));for(T=0;T<I;T+=1){if(M=S[T].a,L=S[T].s.getMult(P[a].anIndexes[T],x.a[T].s.totalChars),M.sk.propType&&(L.length?k.skewFromAxis(-M.sk.v*L[0],M.sa.v*L[1]):k.skewFromAxis(-M.sk.v*L,M.sa.v*L)),M.r.propType&&(L.length?k.rotateZ(-M.r.v*L[2]):k.rotateZ(-M.r.v*L)),M.ry.propType&&(L.length?k.rotateY(M.ry.v*L[1]):k.rotateY(M.ry.v*L)),M.rx.propType&&(L.length?k.rotateX(M.rx.v*L[0]):k.rotateX(M.rx.v*L)),M.o.propType&&(L.length?B+=(M.o.v*L[0]-B)*L[0]:B+=(M.o.v*L-B)*L),e.strokeWidthAnim&&M.sw.propType&&(L.length?H+=M.sw.v*L[0]:H+=M.sw.v*L),e.strokeColorAnim&&M.sc.propType)for(W=0;W<3;W+=1)L.length?z[W]+=(M.sc.v[W]-z[W])*L[0]:z[W]+=(M.sc.v[W]-z[W])*L;if(e.fillColorAnim&&e.fc){if(M.fc.propType)for(W=0;W<3;W+=1)L.length?G[W]+=(M.fc.v[W]-G[W])*L[0]:G[W]+=(M.fc.v[W]-G[W])*L;M.fh.propType&&(G=L.length?addHueToRGB(G,M.fh.v*L[0]):addHueToRGB(G,M.fh.v*L)),M.fs.propType&&(G=L.length?addSaturationToRGB(G,M.fs.v*L[0]):addSaturationToRGB(G,M.fs.v*L)),M.fb.propType&&(G=L.length?addBrightnessToRGB(G,M.fb.v*L[0]):addBrightnessToRGB(G,M.fb.v*L))}}for(T=0;T<I;T+=1)(M=S[T].a).p.propType&&(L=S[T].s.getMult(P[a].anIndexes[T],x.a[T].s.totalChars),this._hasMaskedPath?L.length?k.translate(0,M.p.v[1]*L[0],-M.p.v[2]*L[1]):k.translate(0,M.p.v[1]*L,-M.p.v[2]*L):L.length?k.translate(M.p.v[0]*L[0],M.p.v[1]*L[1],-M.p.v[2]*L[2]):k.translate(M.p.v[0]*L,M.p.v[1]*L,-M.p.v[2]*L));if(e.strokeWidthAnim&&(U=H<0?0:H),e.strokeColorAnim&&($="rgb("+Math.round(255*z[0])+","+Math.round(255*z[1])+","+Math.round(255*z[2])+")"),e.fillColorAnim&&e.fc&&(q="rgb("+Math.round(255*G[0])+","+Math.round(255*G[1])+","+Math.round(255*G[2])+")"),this._hasMaskedPath){if(k.translate(0,-e.ls),k.translate(0,w[1]*R*.01+r,0),this._pathData.p.v){b=(l.point[1]-p.point[1])/(l.point[0]-p.point[0]);var le=180*Math.atan(b)/Math.PI;l.point[0]<p.point[0]&&(le+=180),k.rotate(-le*Math.PI/180)}k.translate(V,N,0),s-=w[0]*P[a].an*.005,P[a+1]&&K!==P[a+1].ind&&(s+=P[a].an/2,s+=.001*e.tr*e.finalSize)}else{switch(k.translate(n,r,0),e.ps&&k.translate(e.ps[0],e.ps[1]+e.ascent,0),e.j){case 1:k.translate(P[a].animatorJustifyOffset+e.justifyOffset+(e.boxWidth-e.lineWidths[P[a].line]),0,0);break;case 2:k.translate(P[a].animatorJustifyOffset+e.justifyOffset+(e.boxWidth-e.lineWidths[P[a].line])/2,0,0)}k.translate(0,-e.ls),k.translate(F,0,0),k.translate(w[0]*P[a].an*.005,w[1]*R*.01,0),n+=P[a].l+.001*e.tr*e.finalSize}"html"===C?ee=k.toCSS():"svg"===C?ee=k.to2dCSS():te=[k.props[0],k.props[1],k.props[2],k.props[3],k.props[4],k.props[5],k.props[6],k.props[7],k.props[8],k.props[9],k.props[10],k.props[11],k.props[12],k.props[13],k.props[14],k.props[15]],Y=B}E<=a?(D=new LetterProps(Y,U,$,q,ee,te),this.renderedLetters.push(D),E+=1,this.lettersChangedFlag=!0):(D=this.renderedLetters[a],this.lettersChangedFlag=D.update(Y,U,$,q,ee,te)||this.lettersChangedFlag)}}},TextAnimatorProperty.prototype.getValue=function(){this._elem.globalData.frameId!==this._frameId&&(this._frameId=this._elem.globalData.frameId,this.iterateDynamicProperties())},TextAnimatorProperty.prototype.mHelper=new Matrix,TextAnimatorProperty.prototype.defaultPropsArray=[],extendPrototype([DynamicPropertyContainer],TextAnimatorProperty),ITextElement.prototype.initElement=function(e,t,n){this.lettersChangedFlag=!0,this.initFrame(),this.initBaseData(e,t,n),this.textProperty=new TextProperty(this,e.t,this.dynamicProperties),this.textAnimator=new TextAnimatorProperty(e.t,this.renderType,this),this.initTransform(e,t,n),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide(),this.textAnimator.searchProperties(this.dynamicProperties)},ITextElement.prototype.prepareFrame=function(e){this._mdf=!1,this.prepareRenderableFrame(e),this.prepareProperties(e,this.isInRange)},ITextElement.prototype.createPathShape=function(e,t){var n,r,a=t.length,i="";for(n=0;n<a;n+=1)"sh"===t[n].ty&&(r=t[n].ks.k,i+=buildShapeString(r,r.i.length,!0,e));return i},ITextElement.prototype.updateDocumentData=function(e,t){this.textProperty.updateDocumentData(e,t)},ITextElement.prototype.canResizeFont=function(e){this.textProperty.canResizeFont(e)},ITextElement.prototype.setMinimumFontSize=function(e){this.textProperty.setMinimumFontSize(e)},ITextElement.prototype.applyTextPropertiesToMatrix=function(e,t,n,r,a){switch(e.ps&&t.translate(e.ps[0],e.ps[1]+e.ascent,0),t.translate(0,-e.ls,0),e.j){case 1:t.translate(e.justifyOffset+(e.boxWidth-e.lineWidths[n]),0,0);break;case 2:t.translate(e.justifyOffset+(e.boxWidth-e.lineWidths[n])/2,0,0)}t.translate(r,a,0)},ITextElement.prototype.buildColor=function(e){return"rgb("+Math.round(255*e[0])+","+Math.round(255*e[1])+","+Math.round(255*e[2])+")"},ITextElement.prototype.emptyProp=new LetterProps,ITextElement.prototype.destroy=function(){},ITextElement.prototype.validateText=function(){(this.textProperty._mdf||this.textProperty._isFirstFrame)&&(this.buildNewText(),this.textProperty._isFirstFrame=!1,this.textProperty._mdf=!1)};var emptyShapeData={shapes:[]};function SVGTextLottieElement(e,t,n){this.textSpans=[],this.renderType="svg",this.initElement(e,t,n)}function ISolidElement(e,t,n){this.initElement(e,t,n)}function NullElement(e,t,n){this.initFrame(),this.initBaseData(e,t,n),this.initFrame(),this.initTransform(e,t,n),this.initHierarchy()}function SVGRendererBase(){}function ICompElement(){}function SVGCompElement(e,t,n){this.layers=e.layers,this.supports3d=!0,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?createSizedArray(this.layers.length):[],this.initElement(e,t,n),this.tm=e.tm?PropertyFactory.getProp(this,e.tm,0,t.frameRate,this):{_placeholder:!0}}function SVGRenderer(e,t){this.animationItem=e,this.layers=null,this.renderedFrame=-1,this.svgElement=createNS("svg");var n="";if(t&&t.title){var r=createNS("title"),a=createElementID();r.setAttribute("id",a),r.textContent=t.title,this.svgElement.appendChild(r),n+=a}if(t&&t.description){var i=createNS("desc"),o=createElementID();i.setAttribute("id",o),i.textContent=t.description,this.svgElement.appendChild(i),n+=" "+o}n&&this.svgElement.setAttribute("aria-labelledby",n);var s=createNS("defs");this.svgElement.appendChild(s);var l=createNS("g");this.svgElement.appendChild(l),this.layerElement=l,this.renderConfig={preserveAspectRatio:t&&t.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:t&&t.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:t&&t.contentVisibility||"visible",progressiveLoad:t&&t.progressiveLoad||!1,hideOnTransparent:!(t&&!1===t.hideOnTransparent),viewBoxOnly:t&&t.viewBoxOnly||!1,viewBoxSize:t&&t.viewBoxSize||!1,className:t&&t.className||"",id:t&&t.id||"",focusable:t&&t.focusable,filterSize:{width:t&&t.filterSize&&t.filterSize.width||"100%",height:t&&t.filterSize&&t.filterSize.height||"100%",x:t&&t.filterSize&&t.filterSize.x||"0%",y:t&&t.filterSize&&t.filterSize.y||"0%"},width:t&&t.width,height:t&&t.height,runExpressions:!t||void 0===t.runExpressions||t.runExpressions},this.globalData={_mdf:!1,frameNum:-1,defs:s,renderConfig:this.renderConfig},this.elements=[],this.pendingElements=[],this.destroyed=!1,this.rendererType="svg"}function ShapeTransformManager(){this.sequences={},this.sequenceList=[],this.transform_key_count=0}extendPrototype([BaseElement,TransformElement,SVGBaseElement,HierarchyElement,FrameElement,RenderableDOMElement,ITextElement],SVGTextLottieElement),SVGTextLottieElement.prototype.createContent=function(){this.data.singleShape&&!this.globalData.fontManager.chars&&(this.textContainer=createNS("text"))},SVGTextLottieElement.prototype.buildTextContents=function(e){for(var t=0,n=e.length,r=[],a="";t<n;)e[t]===String.fromCharCode(13)||e[t]===String.fromCharCode(3)?(r.push(a),a=""):a+=e[t],t+=1;return r.push(a),r},SVGTextLottieElement.prototype.buildShapeData=function(e,t){if(e.shapes&&e.shapes.length){var n=e.shapes[0];if(n.it){var r=n.it[n.it.length-1];r.s&&(r.s.k[0]=t,r.s.k[1]=t)}}return e},SVGTextLottieElement.prototype.buildNewText=function(){var e,t;this.addDynamicProperty(this);var n=this.textProperty.currentData;this.renderedLetters=createSizedArray(n?n.l.length:0),n.fc?this.layerElement.setAttribute("fill",this.buildColor(n.fc)):this.layerElement.setAttribute("fill","rgba(0,0,0,0)"),n.sc&&(this.layerElement.setAttribute("stroke",this.buildColor(n.sc)),this.layerElement.setAttribute("stroke-width",n.sw)),this.layerElement.setAttribute("font-size",n.finalSize);var r=this.globalData.fontManager.getFontByName(n.f);if(r.fClass)this.layerElement.setAttribute("class",r.fClass);else{this.layerElement.setAttribute("font-family",r.fFamily);var a=n.fWeight,i=n.fStyle;this.layerElement.setAttribute("font-style",i),this.layerElement.setAttribute("font-weight",a)}this.layerElement.setAttribute("aria-label",n.t);var o,s=n.l||[],l=!!this.globalData.fontManager.chars;t=s.length;var c=this.mHelper,u=this.data.singleShape,f=0,h=0,p=!0,d=.001*n.tr*n.finalSize;if(!u||l||n.sz){var m,g=this.textSpans.length;for(e=0;e<t;e+=1){if(this.textSpans[e]||(this.textSpans[e]={span:null,childSpan:null,glyph:null}),!l||!u||0===e){if(o=g>e?this.textSpans[e].span:createNS(l?"g":"text"),g<=e){if(o.setAttribute("stroke-linecap","butt"),o.setAttribute("stroke-linejoin","round"),o.setAttribute("stroke-miterlimit","4"),this.textSpans[e].span=o,l){var y=createNS("g");o.appendChild(y),this.textSpans[e].childSpan=y}this.textSpans[e].span=o,this.layerElement.appendChild(o)}o.style.display="inherit"}if(c.reset(),u&&(s[e].n&&(f=-d,h+=n.yOffset,h+=p?1:0,p=!1),this.applyTextPropertiesToMatrix(n,c,s[e].line,f,h),f+=s[e].l||0,f+=d),l){var v;if(1===(m=this.globalData.fontManager.getCharData(n.finalText[e],r.fStyle,this.globalData.fontManager.getFontByName(n.f).fFamily)).t)v=new SVGCompElement(m.data,this.globalData,this);else{var b=emptyShapeData;m.data&&m.data.shapes&&(b=this.buildShapeData(m.data,n.finalSize)),v=new SVGShapeElement(b,this.globalData,this)}if(this.textSpans[e].glyph){var _=this.textSpans[e].glyph;this.textSpans[e].childSpan.removeChild(_.layerElement),_.destroy()}this.textSpans[e].glyph=v,v._debug=!0,v.prepareFrame(0),v.renderFrame(),this.textSpans[e].childSpan.appendChild(v.layerElement),1===m.t&&this.textSpans[e].childSpan.setAttribute("transform","scale("+n.finalSize/100+","+n.finalSize/100+")")}else u&&o.setAttribute("transform","translate("+c.props[12]+","+c.props[13]+")"),o.textContent=s[e].val,o.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve")}u&&o&&o.setAttribute("d","")}else{var w=this.textContainer,S="start";switch(n.j){case 1:S="end";break;case 2:S="middle";break;default:S="start"}w.setAttribute("text-anchor",S),w.setAttribute("letter-spacing",d);var x=this.buildTextContents(n.finalText);for(t=x.length,h=n.ps?n.ps[1]+n.ascent:0,e=0;e<t;e+=1)(o=this.textSpans[e].span||createNS("tspan")).textContent=x[e],o.setAttribute("x",0),o.setAttribute("y",h),o.style.display="inherit",w.appendChild(o),this.textSpans[e]||(this.textSpans[e]={span:null,glyph:null}),this.textSpans[e].span=o,h+=n.finalLineHeight;this.layerElement.appendChild(w)}for(;e<this.textSpans.length;)this.textSpans[e].span.style.display="none",e+=1;this._sizeChanged=!0},SVGTextLottieElement.prototype.sourceRectAtTime=function(){if(this.prepareFrame(this.comp.renderedFrame-this.data.st),this.renderInnerContent(),this._sizeChanged){this._sizeChanged=!1;var e=this.layerElement.getBBox();this.bbox={top:e.y,left:e.x,width:e.width,height:e.height}}return this.bbox},SVGTextLottieElement.prototype.getValue=function(){var e,t,n=this.textSpans.length;for(this.renderedFrame=this.comp.renderedFrame,e=0;e<n;e+=1)(t=this.textSpans[e].glyph)&&(t.prepareFrame(this.comp.renderedFrame-this.data.st),t._mdf&&(this._mdf=!0))},SVGTextLottieElement.prototype.renderInnerContent=function(){if(this.validateText(),(!this.data.singleShape||this._mdf)&&(this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag),this.lettersChangedFlag||this.textAnimator.lettersChangedFlag)){var e,t;this._sizeChanged=!0;var n,r,a,i=this.textAnimator.renderedLetters,o=this.textProperty.currentData.l;for(t=o.length,e=0;e<t;e+=1)o[e].n||(n=i[e],r=this.textSpans[e].span,(a=this.textSpans[e].glyph)&&a.renderFrame(),n._mdf.m&&r.setAttribute("transform",n.m),n._mdf.o&&r.setAttribute("opacity",n.o),n._mdf.sw&&r.setAttribute("stroke-width",n.sw),n._mdf.sc&&r.setAttribute("stroke",n.sc),n._mdf.fc&&r.setAttribute("fill",n.fc))}},extendPrototype([IImageElement],ISolidElement),ISolidElement.prototype.createContent=function(){var e=createNS("rect");e.setAttribute("width",this.data.sw),e.setAttribute("height",this.data.sh),e.setAttribute("fill",this.data.sc),this.layerElement.appendChild(e)},NullElement.prototype.prepareFrame=function(e){this.prepareProperties(e,!0)},NullElement.prototype.renderFrame=function(){},NullElement.prototype.getBaseElement=function(){return null},NullElement.prototype.destroy=function(){},NullElement.prototype.sourceRectAtTime=function(){},NullElement.prototype.hide=function(){},extendPrototype([BaseElement,TransformElement,HierarchyElement,FrameElement],NullElement),extendPrototype([BaseRenderer],SVGRendererBase),SVGRendererBase.prototype.createNull=function(e){return new NullElement(e,this.globalData,this)},SVGRendererBase.prototype.createShape=function(e){return new SVGShapeElement(e,this.globalData,this)},SVGRendererBase.prototype.createText=function(e){return new SVGTextLottieElement(e,this.globalData,this)},SVGRendererBase.prototype.createImage=function(e){return new IImageElement(e,this.globalData,this)},SVGRendererBase.prototype.createSolid=function(e){return new ISolidElement(e,this.globalData,this)},SVGRendererBase.prototype.configAnimation=function(e){this.svgElement.setAttribute("xmlns","http://www.w3.org/2000/svg"),this.svgElement.setAttribute("xmlns:xlink","http://www.w3.org/1999/xlink"),this.renderConfig.viewBoxSize?this.svgElement.setAttribute("viewBox",this.renderConfig.viewBoxSize):this.svgElement.setAttribute("viewBox","0 0 "+e.w+" "+e.h),this.renderConfig.viewBoxOnly||(this.svgElement.setAttribute("width",e.w),this.svgElement.setAttribute("height",e.h),this.svgElement.style.width="100%",this.svgElement.style.height="100%",this.svgElement.style.transform="translate3d(0,0,0)",this.svgElement.style.contentVisibility=this.renderConfig.contentVisibility),this.renderConfig.width&&this.svgElement.setAttribute("width",this.renderConfig.width),this.renderConfig.height&&this.svgElement.setAttribute("height",this.renderConfig.height),this.renderConfig.className&&this.svgElement.setAttribute("class",this.renderConfig.className),this.renderConfig.id&&this.svgElement.setAttribute("id",this.renderConfig.id),void 0!==this.renderConfig.focusable&&this.svgElement.setAttribute("focusable",this.renderConfig.focusable),this.svgElement.setAttribute("preserveAspectRatio",this.renderConfig.preserveAspectRatio),this.animationItem.wrapper.appendChild(this.svgElement);var t=this.globalData.defs;this.setupGlobalData(e,t),this.globalData.progressiveLoad=this.renderConfig.progressiveLoad,this.data=e;var n=createNS("clipPath"),r=createNS("rect");r.setAttribute("width",e.w),r.setAttribute("height",e.h),r.setAttribute("x",0),r.setAttribute("y",0);var a=createElementID();n.setAttribute("id",a),n.appendChild(r),this.layerElement.setAttribute("clip-path","url("+getLocationHref()+"#"+a+")"),t.appendChild(n),this.layers=e.layers,this.elements=createSizedArray(e.layers.length)},SVGRendererBase.prototype.destroy=function(){var e;this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),this.layerElement=null,this.globalData.defs=null;var t=this.layers?this.layers.length:0;for(e=0;e<t;e+=1)this.elements[e]&&this.elements[e].destroy&&this.elements[e].destroy();this.elements.length=0,this.destroyed=!0,this.animationItem=null},SVGRendererBase.prototype.updateContainerSize=function(){},SVGRendererBase.prototype.findIndexByInd=function(e){var t=0,n=this.layers.length;for(t=0;t<n;t+=1)if(this.layers[t].ind===e)return t;return-1},SVGRendererBase.prototype.buildItem=function(e){var t=this.elements;if(!t[e]&&99!==this.layers[e].ty){t[e]=!0;var n=this.createItem(this.layers[e]);if(t[e]=n,getExpressionsPlugin()&&(0===this.layers[e].ty&&this.globalData.projectInterface.registerComposition(n),n.initExpressions()),this.appendElementInPos(n,e),this.layers[e].tt){var r="tp"in this.layers[e]?this.findIndexByInd(this.layers[e].tp):e-1;if(-1===r)return;if(this.elements[r]&&!0!==this.elements[r]){var a=t[r].getMatte(this.layers[e].tt);n.setMatte(a)}else this.buildItem(r),this.addPendingElement(n)}}},SVGRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;){var e=this.pendingElements.pop();if(e.checkParenting(),e.data.tt)for(var t=0,n=this.elements.length;t<n;){if(this.elements[t]===e){var r="tp"in e.data?this.findIndexByInd(e.data.tp):t-1,a=this.elements[r].getMatte(this.layers[t].tt);e.setMatte(a);break}t+=1}}},SVGRendererBase.prototype.renderFrame=function(e){if(this.renderedFrame!==e&&!this.destroyed){var t;null===e?e=this.renderedFrame:this.renderedFrame=e,this.globalData.frameNum=e,this.globalData.frameId+=1,this.globalData.projectInterface.currentFrame=e,this.globalData._mdf=!1;var n=this.layers.length;for(this.completeLayers||this.checkLayers(e),t=n-1;t>=0;t-=1)(this.completeLayers||this.elements[t])&&this.elements[t].prepareFrame(e-this.layers[t].st);if(this.globalData._mdf)for(t=0;t<n;t+=1)(this.completeLayers||this.elements[t])&&this.elements[t].renderFrame()}},SVGRendererBase.prototype.appendElementInPos=function(e,t){var n=e.getBaseElement();if(n){for(var r,a=0;a<t;)this.elements[a]&&!0!==this.elements[a]&&this.elements[a].getBaseElement()&&(r=this.elements[a].getBaseElement()),a+=1;r?this.layerElement.insertBefore(n,r):this.layerElement.appendChild(n)}},SVGRendererBase.prototype.hide=function(){this.layerElement.style.display="none"},SVGRendererBase.prototype.show=function(){this.layerElement.style.display="block"},extendPrototype([BaseElement,TransformElement,HierarchyElement,FrameElement,RenderableDOMElement],ICompElement),ICompElement.prototype.initElement=function(e,t,n){this.initFrame(),this.initBaseData(e,t,n),this.initTransform(e,t,n),this.initRenderable(),this.initHierarchy(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),!this.data.xt&&t.progressiveLoad||this.buildAllItems(),this.hide()},ICompElement.prototype.prepareFrame=function(e){if(this._mdf=!1,this.prepareRenderableFrame(e),this.prepareProperties(e,this.isInRange),this.isInRange||this.data.xt){if(this.tm._placeholder)this.renderedFrame=e/this.data.sr;else{var t=this.tm.v;t===this.data.op&&(t=this.data.op-1),this.renderedFrame=t}var n,r=this.elements.length;for(this.completeLayers||this.checkLayers(this.renderedFrame),n=r-1;n>=0;n-=1)(this.completeLayers||this.elements[n])&&(this.elements[n].prepareFrame(this.renderedFrame-this.layers[n].st),this.elements[n]._mdf&&(this._mdf=!0))}},ICompElement.prototype.renderInnerContent=function(){var e,t=this.layers.length;for(e=0;e<t;e+=1)(this.completeLayers||this.elements[e])&&this.elements[e].renderFrame()},ICompElement.prototype.setElements=function(e){this.elements=e},ICompElement.prototype.getElements=function(){return this.elements},ICompElement.prototype.destroyElements=function(){var e,t=this.layers.length;for(e=0;e<t;e+=1)this.elements[e]&&this.elements[e].destroy()},ICompElement.prototype.destroy=function(){this.destroyElements(),this.destroyBaseElement()},extendPrototype([SVGRendererBase,ICompElement,SVGBaseElement],SVGCompElement),SVGCompElement.prototype.createComp=function(e){return new SVGCompElement(e,this.globalData,this)},extendPrototype([SVGRendererBase],SVGRenderer),SVGRenderer.prototype.createComp=function(e){return new SVGCompElement(e,this.globalData,this)},ShapeTransformManager.prototype={addTransformSequence:function(e){var t,n=e.length,r="_";for(t=0;t<n;t+=1)r+=e[t].transform.key+"_";var a=this.sequences[r];return a||(a={transforms:[].concat(e),finalTransform:new Matrix,_mdf:!1},this.sequences[r]=a,this.sequenceList.push(a)),a},processSequence:function(e,t){for(var n=0,r=e.transforms.length,a=t;n<r&&!t;){if(e.transforms[n].transform.mProps._mdf){a=!0;break}n+=1}if(a)for(e.finalTransform.reset(),n=r-1;n>=0;n-=1)e.finalTransform.multiply(e.transforms[n].transform.mProps.v);e._mdf=a},processSequences:function(e){var t,n=this.sequenceList.length;for(t=0;t<n;t+=1)this.processSequence(this.sequenceList[t],e)},getNewKey:function(){return this.transform_key_count+=1,"_"+this.transform_key_count}};var lumaLoader=function(){var e="__lottie_element_luma_buffer",t=null,n=null,r=null;function a(){var a,i,o;t||(a=createNS("svg"),i=createNS("filter"),o=createNS("feColorMatrix"),i.setAttribute("id",e),o.setAttribute("type","matrix"),o.setAttribute("color-interpolation-filters","sRGB"),o.setAttribute("values","0.3, 0.3, 0.3, 0, 0, 0.3, 0.3, 0.3, 0, 0, 0.3, 0.3, 0.3, 0, 0, 0.3, 0.3, 0.3, 0, 0"),i.appendChild(o),a.appendChild(i),a.setAttribute("id",e+"_svg"),featureSupport.svgLumaHidden&&(a.style.display="none"),r=a,document.body.appendChild(r),t=createTag("canvas"),(n=t.getContext("2d")).filter="url(#"+e+")",n.fillStyle="rgba(0,0,0,0)",n.fillRect(0,0,1,1))}return{load:a,get:function(r){return t||a(),t.width=r.width,t.height=r.height,n.filter="url(#"+e+")",t}}};function createCanvas(e,t){if(featureSupport.offscreenCanvas)return new OffscreenCanvas(e,t);var n=createTag("canvas");return n.width=e,n.height=t,n}var assetLoader={loadLumaCanvas:lumaLoader.load,getLumaCanvas:lumaLoader.get,createCanvas},registeredEffects={};function CVEffects(e){var t,n,r=e.data.ef?e.data.ef.length:0;for(this.filters=[],t=0;t<r;t+=1){n=null;var a=e.data.ef[t].ty;registeredEffects[a]&&(n=new(0,registeredEffects[a].effect)(e.effectsManager.effectElements[t],e)),n&&this.filters.push(n)}this.filters.length&&e.addRenderableComponent(this)}function registerEffect(e,t){registeredEffects[e]={effect:t}}function CVMaskElement(e,t){var n;this.data=e,this.element=t,this.masksProperties=this.data.masksProperties||[],this.viewData=createSizedArray(this.masksProperties.length);var r=this.masksProperties.length,a=!1;for(n=0;n<r;n+=1)"n"!==this.masksProperties[n].mode&&(a=!0),this.viewData[n]=ShapePropertyFactory.getShapeProp(this.element,this.masksProperties[n],3);this.hasMasks=a,a&&this.element.addRenderableComponent(this)}function CVBaseElement(){}CVEffects.prototype.renderFrame=function(e){var t,n=this.filters.length;for(t=0;t<n;t+=1)this.filters[t].renderFrame(e)},CVEffects.prototype.getEffects=function(e){var t,n=this.filters.length,r=[];for(t=0;t<n;t+=1)this.filters[t].type===e&&r.push(this.filters[t]);return r},CVMaskElement.prototype.renderFrame=function(){if(this.hasMasks){var e,t,n,r,a=this.element.finalTransform.mat,i=this.element.canvasContext,o=this.masksProperties.length;for(i.beginPath(),e=0;e<o;e+=1)if("n"!==this.masksProperties[e].mode){var s;this.masksProperties[e].inv&&(i.moveTo(0,0),i.lineTo(this.element.globalData.compSize.w,0),i.lineTo(this.element.globalData.compSize.w,this.element.globalData.compSize.h),i.lineTo(0,this.element.globalData.compSize.h),i.lineTo(0,0)),r=this.viewData[e].v,t=a.applyToPointArray(r.v[0][0],r.v[0][1],0),i.moveTo(t[0],t[1]);var l=r._length;for(s=1;s<l;s+=1)n=a.applyToTriplePoints(r.o[s-1],r.i[s],r.v[s]),i.bezierCurveTo(n[0],n[1],n[2],n[3],n[4],n[5]);n=a.applyToTriplePoints(r.o[s-1],r.i[0],r.v[0]),i.bezierCurveTo(n[0],n[1],n[2],n[3],n[4],n[5])}this.element.globalData.renderer.save(!0),i.clip()}},CVMaskElement.prototype.getMaskProperty=MaskElement.prototype.getMaskProperty,CVMaskElement.prototype.destroy=function(){this.element=null};var operationsMap={1:"source-in",2:"source-out",3:"source-in",4:"source-out"};function CVShapeData(e,t,n,r){this.styledShapes=[],this.tr=[0,0,0,0,0,0];var a,i=4;"rc"===t.ty?i=5:"el"===t.ty?i=6:"sr"===t.ty&&(i=7),this.sh=ShapePropertyFactory.getShapeProp(e,t,i,e);var o,s=n.length;for(a=0;a<s;a+=1)n[a].closed||(o={transforms:r.addTransformSequence(n[a].transforms),trNodes:[]},this.styledShapes.push(o),n[a].elements.push(o))}function CVShapeElement(e,t,n){this.shapes=[],this.shapesData=e.shapes,this.stylesList=[],this.itemsData=[],this.prevViewData=[],this.shapeModifiers=[],this.processedElements=[],this.transformsManager=new ShapeTransformManager,this.initElement(e,t,n)}function CVTextElement(e,t,n){this.textSpans=[],this.yOffset=0,this.fillColorAnim=!1,this.strokeColorAnim=!1,this.strokeWidthAnim=!1,this.stroke=!1,this.fill=!1,this.justifyOffset=0,this.currentRender=null,this.renderType="canvas",this.values={fill:"rgba(0,0,0,0)",stroke:"rgba(0,0,0,0)",sWidth:0,fValue:""},this.initElement(e,t,n)}function CVImageElement(e,t,n){this.assetData=t.getAssetData(e.refId),this.img=t.imageLoader.getAsset(this.assetData),this.initElement(e,t,n)}function CVSolidElement(e,t,n){this.initElement(e,t,n)}function CanvasRendererBase(){}function CanvasContext(){this.opacity=-1,this.transform=createTypedArray("float32",16),this.fillStyle="",this.strokeStyle="",this.lineWidth="",this.lineCap="",this.lineJoin="",this.miterLimit="",this.id=Math.random()}function CVContextData(){var e;for(this.stack=[],this.cArrPos=0,this.cTr=new Matrix,e=0;e<15;e+=1){var t=new CanvasContext;this.stack[e]=t}this._length=15,this.nativeContext=null,this.transformMat=new Matrix,this.currentOpacity=1,this.currentFillStyle="",this.appliedFillStyle="",this.currentStrokeStyle="",this.appliedStrokeStyle="",this.currentLineWidth="",this.appliedLineWidth="",this.currentLineCap="",this.appliedLineCap="",this.currentLineJoin="",this.appliedLineJoin="",this.appliedMiterLimit="",this.currentMiterLimit=""}function CVCompElement(e,t,n){this.completeLayers=!1,this.layers=e.layers,this.pendingElements=[],this.elements=createSizedArray(this.layers.length),this.initElement(e,t,n),this.tm=e.tm?PropertyFactory.getProp(this,e.tm,0,t.frameRate,this):{_placeholder:!0}}function CanvasRenderer(e,t){this.animationItem=e,this.renderConfig={clearCanvas:!t||void 0===t.clearCanvas||t.clearCanvas,context:t&&t.context||null,progressiveLoad:t&&t.progressiveLoad||!1,preserveAspectRatio:t&&t.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:t&&t.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:t&&t.contentVisibility||"visible",className:t&&t.className||"",id:t&&t.id||"",runExpressions:!t||void 0===t.runExpressions||t.runExpressions},this.renderConfig.dpr=t&&t.dpr||1,this.animationItem.wrapper&&(this.renderConfig.dpr=t&&t.dpr||window.devicePixelRatio||1),this.renderedFrame=-1,this.globalData={frameNum:-1,_mdf:!1,renderConfig:this.renderConfig,currentGlobalAlpha:-1},this.contextData=new CVContextData,this.elements=[],this.pendingElements=[],this.transformMat=new Matrix,this.completeLayers=!1,this.rendererType="canvas",this.renderConfig.clearCanvas&&(this.ctxTransform=this.contextData.transform.bind(this.contextData),this.ctxOpacity=this.contextData.opacity.bind(this.contextData),this.ctxFillStyle=this.contextData.fillStyle.bind(this.contextData),this.ctxStrokeStyle=this.contextData.strokeStyle.bind(this.contextData),this.ctxLineWidth=this.contextData.lineWidth.bind(this.contextData),this.ctxLineCap=this.contextData.lineCap.bind(this.contextData),this.ctxLineJoin=this.contextData.lineJoin.bind(this.contextData),this.ctxMiterLimit=this.contextData.miterLimit.bind(this.contextData),this.ctxFill=this.contextData.fill.bind(this.contextData),this.ctxFillRect=this.contextData.fillRect.bind(this.contextData),this.ctxStroke=this.contextData.stroke.bind(this.contextData),this.save=this.contextData.save.bind(this.contextData))}function HBaseElement(){}function HSolidElement(e,t,n){this.initElement(e,t,n)}function HShapeElement(e,t,n){this.shapes=[],this.shapesData=e.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.shapesContainer=createNS("g"),this.initElement(e,t,n),this.prevViewData=[],this.currentBBox={x:999999,y:-999999,h:0,w:0}}function HTextElement(e,t,n){this.textSpans=[],this.textPaths=[],this.currentBBox={x:999999,y:-999999,h:0,w:0},this.renderType="svg",this.isMasked=!1,this.initElement(e,t,n)}function HCameraElement(e,t,n){this.initFrame(),this.initBaseData(e,t,n),this.initHierarchy();var r=PropertyFactory.getProp;if(this.pe=r(this,e.pe,0,0,this),e.ks.p.s?(this.px=r(this,e.ks.p.x,1,0,this),this.py=r(this,e.ks.p.y,1,0,this),this.pz=r(this,e.ks.p.z,1,0,this)):this.p=r(this,e.ks.p,1,0,this),e.ks.a&&(this.a=r(this,e.ks.a,1,0,this)),e.ks.or.k.length&&e.ks.or.k[0].to){var a,i=e.ks.or.k.length;for(a=0;a<i;a+=1)e.ks.or.k[a].to=null,e.ks.or.k[a].ti=null}this.or=r(this,e.ks.or,1,degToRads,this),this.or.sh=!0,this.rx=r(this,e.ks.rx,0,degToRads,this),this.ry=r(this,e.ks.ry,0,degToRads,this),this.rz=r(this,e.ks.rz,0,degToRads,this),this.mat=new Matrix,this._prevMat=new Matrix,this._isFirstFrame=!0,this.finalTransform={mProp:this}}function HImageElement(e,t,n){this.assetData=t.getAssetData(e.refId),this.initElement(e,t,n)}function HybridRendererBase(e,t){this.animationItem=e,this.layers=null,this.renderedFrame=-1,this.renderConfig={className:t&&t.className||"",imagePreserveAspectRatio:t&&t.imagePreserveAspectRatio||"xMidYMid slice",hideOnTransparent:!(t&&!1===t.hideOnTransparent),filterSize:{width:t&&t.filterSize&&t.filterSize.width||"400%",height:t&&t.filterSize&&t.filterSize.height||"400%",x:t&&t.filterSize&&t.filterSize.x||"-100%",y:t&&t.filterSize&&t.filterSize.y||"-100%"}},this.globalData={_mdf:!1,frameNum:-1,renderConfig:this.renderConfig},this.pendingElements=[],this.elements=[],this.threeDElements=[],this.destroyed=!1,this.camera=null,this.supports3d=!0,this.rendererType="html"}function HCompElement(e,t,n){this.layers=e.layers,this.supports3d=!e.hasMask,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?createSizedArray(this.layers.length):[],this.initElement(e,t,n),this.tm=e.tm?PropertyFactory.getProp(this,e.tm,0,t.frameRate,this):{_placeholder:!0}}function HybridRenderer(e,t){this.animationItem=e,this.layers=null,this.renderedFrame=-1,this.renderConfig={className:t&&t.className||"",imagePreserveAspectRatio:t&&t.imagePreserveAspectRatio||"xMidYMid slice",hideOnTransparent:!(t&&!1===t.hideOnTransparent),filterSize:{width:t&&t.filterSize&&t.filterSize.width||"400%",height:t&&t.filterSize&&t.filterSize.height||"400%",x:t&&t.filterSize&&t.filterSize.x||"-100%",y:t&&t.filterSize&&t.filterSize.y||"-100%"},runExpressions:!t||void 0===t.runExpressions||t.runExpressions},this.globalData={_mdf:!1,frameNum:-1,renderConfig:this.renderConfig},this.pendingElements=[],this.elements=[],this.threeDElements=[],this.destroyed=!1,this.camera=null,this.supports3d=!0,this.rendererType="html"}CVBaseElement.prototype={createElements:function(){},initRendererElement:function(){},createContainerElements:function(){if(this.data.tt>=1){this.buffers=[];var e=this.globalData.canvasContext,t=assetLoader.createCanvas(e.canvas.width,e.canvas.height);this.buffers.push(t);var n=assetLoader.createCanvas(e.canvas.width,e.canvas.height);this.buffers.push(n),this.data.tt>=3&&!document._isProxy&&assetLoader.loadLumaCanvas()}this.canvasContext=this.globalData.canvasContext,this.transformCanvas=this.globalData.transformCanvas,this.renderableEffectsManager=new CVEffects(this),this.searchEffectTransforms()},createContent:function(){},setBlendMode:function(){var e=this.globalData;if(e.blendMode!==this.data.bm){e.blendMode=this.data.bm;var t=getBlendMode(this.data.bm);e.canvasContext.globalCompositeOperation=t}},createRenderableComponents:function(){this.maskManager=new CVMaskElement(this.data,this),this.transformEffects=this.renderableEffectsManager.getEffects(effectTypes.TRANSFORM_EFFECT)},hideElement:function(){this.hidden||this.isInRange&&!this.isTransparent||(this.hidden=!0)},showElement:function(){this.isInRange&&!this.isTransparent&&(this.hidden=!1,this._isFirstFrame=!0,this.maskManager._isFirstFrame=!0)},clearCanvas:function(e){e.clearRect(this.transformCanvas.tx,this.transformCanvas.ty,this.transformCanvas.w*this.transformCanvas.sx,this.transformCanvas.h*this.transformCanvas.sy)},prepareLayer:function(){if(this.data.tt>=1){var e=this.buffers[0].getContext("2d");this.clearCanvas(e),e.drawImage(this.canvasContext.canvas,0,0),this.currentTransform=this.canvasContext.getTransform(),this.canvasContext.setTransform(1,0,0,1,0,0),this.clearCanvas(this.canvasContext),this.canvasContext.setTransform(this.currentTransform)}},exitLayer:function(){if(this.data.tt>=1){var e=this.buffers[1],t=e.getContext("2d");if(this.clearCanvas(t),t.drawImage(this.canvasContext.canvas,0,0),this.canvasContext.setTransform(1,0,0,1,0,0),this.clearCanvas(this.canvasContext),this.canvasContext.setTransform(this.currentTransform),this.comp.getElementById("tp"in this.data?this.data.tp:this.data.ind-1).renderFrame(!0),this.canvasContext.setTransform(1,0,0,1,0,0),this.data.tt>=3&&!document._isProxy){var n=assetLoader.getLumaCanvas(this.canvasContext.canvas);n.getContext("2d").drawImage(this.canvasContext.canvas,0,0),this.clearCanvas(this.canvasContext),this.canvasContext.drawImage(n,0,0)}this.canvasContext.globalCompositeOperation=operationsMap[this.data.tt],this.canvasContext.drawImage(e,0,0),this.canvasContext.globalCompositeOperation="destination-over",this.canvasContext.drawImage(this.buffers[0],0,0),this.canvasContext.setTransform(this.currentTransform),this.canvasContext.globalCompositeOperation="source-over"}},renderFrame:function(e){if(!this.hidden&&!this.data.hd&&(1!==this.data.td||e)){this.renderTransform(),this.renderRenderable(),this.renderLocalTransform(),this.setBlendMode();var t=0===this.data.ty;this.prepareLayer(),this.globalData.renderer.save(t),this.globalData.renderer.ctxTransform(this.finalTransform.localMat.props),this.globalData.renderer.ctxOpacity(this.finalTransform.localOpacity),this.renderInnerContent(),this.globalData.renderer.restore(t),this.exitLayer(),this.maskManager.hasMasks&&this.globalData.renderer.restore(!0),this._isFirstFrame&&(this._isFirstFrame=!1)}},destroy:function(){this.canvasContext=null,this.data=null,this.globalData=null,this.maskManager.destroy()},mHelper:new Matrix},CVBaseElement.prototype.hide=CVBaseElement.prototype.hideElement,CVBaseElement.prototype.show=CVBaseElement.prototype.showElement,CVShapeData.prototype.setAsAnimated=SVGShapeData.prototype.setAsAnimated,extendPrototype([BaseElement,TransformElement,CVBaseElement,IShapeElement,HierarchyElement,FrameElement,RenderableElement],CVShapeElement),CVShapeElement.prototype.initElement=RenderableDOMElement.prototype.initElement,CVShapeElement.prototype.transformHelper={opacity:1,_opMdf:!1},CVShapeElement.prototype.dashResetter=[],CVShapeElement.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,!0,[])},CVShapeElement.prototype.createStyleElement=function(e,t){var n={data:e,type:e.ty,preTransforms:this.transformsManager.addTransformSequence(t),transforms:[],elements:[],closed:!0===e.hd},r={};if("fl"===e.ty||"st"===e.ty?(r.c=PropertyFactory.getProp(this,e.c,1,255,this),r.c.k||(n.co="rgb("+bmFloor(r.c.v[0])+","+bmFloor(r.c.v[1])+","+bmFloor(r.c.v[2])+")")):"gf"!==e.ty&&"gs"!==e.ty||(r.s=PropertyFactory.getProp(this,e.s,1,null,this),r.e=PropertyFactory.getProp(this,e.e,1,null,this),r.h=PropertyFactory.getProp(this,e.h||{k:0},0,.01,this),r.a=PropertyFactory.getProp(this,e.a||{k:0},0,degToRads,this),r.g=new GradientProperty(this,e.g,this)),r.o=PropertyFactory.getProp(this,e.o,0,.01,this),"st"===e.ty||"gs"===e.ty){if(n.lc=lineCapEnum[e.lc||2],n.lj=lineJoinEnum[e.lj||2],1==e.lj&&(n.ml=e.ml),r.w=PropertyFactory.getProp(this,e.w,0,null,this),r.w.k||(n.wi=r.w.v),e.d){var a=new DashProperty(this,e.d,"canvas",this);r.d=a,r.d.k||(n.da=r.d.dashArray,n.do=r.d.dashoffset[0])}}else n.r=2===e.r?"evenodd":"nonzero";return this.stylesList.push(n),r.style=n,r},CVShapeElement.prototype.createGroupElement=function(){return{it:[],prevViewData:[]}},CVShapeElement.prototype.createTransformElement=function(e){return{transform:{opacity:1,_opMdf:!1,key:this.transformsManager.getNewKey(),op:PropertyFactory.getProp(this,e.o,0,.01,this),mProps:TransformPropertyFactory.getTransformProperty(this,e,this)}}},CVShapeElement.prototype.createShapeElement=function(e){var t=new CVShapeData(this,e,this.stylesList,this.transformsManager);return this.shapes.push(t),this.addShapeToModifiers(t),t},CVShapeElement.prototype.reloadShapes=function(){var e;this._isFirstFrame=!0;var t=this.itemsData.length;for(e=0;e<t;e+=1)this.prevViewData[e]=this.itemsData[e];for(this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,!0,[]),t=this.dynamicProperties.length,e=0;e<t;e+=1)this.dynamicProperties[e].getValue();this.renderModifiers(),this.transformsManager.processSequences(this._isFirstFrame)},CVShapeElement.prototype.addTransformToStyleList=function(e){var t,n=this.stylesList.length;for(t=0;t<n;t+=1)this.stylesList[t].closed||this.stylesList[t].transforms.push(e)},CVShapeElement.prototype.removeTransformFromStyleList=function(){var e,t=this.stylesList.length;for(e=0;e<t;e+=1)this.stylesList[e].closed||this.stylesList[e].transforms.pop()},CVShapeElement.prototype.closeStyles=function(e){var t,n=e.length;for(t=0;t<n;t+=1)e[t].closed=!0},CVShapeElement.prototype.searchShapes=function(e,t,n,r,a){var i,o,s,l,c,u,f=e.length-1,h=[],p=[],d=[].concat(a);for(i=f;i>=0;i-=1){if((l=this.searchProcessedElement(e[i]))?t[i]=n[l-1]:e[i]._shouldRender=r,"fl"===e[i].ty||"st"===e[i].ty||"gf"===e[i].ty||"gs"===e[i].ty)l?t[i].style.closed=!1:t[i]=this.createStyleElement(e[i],d),h.push(t[i].style);else if("gr"===e[i].ty){if(l)for(s=t[i].it.length,o=0;o<s;o+=1)t[i].prevViewData[o]=t[i].it[o];else t[i]=this.createGroupElement(e[i]);this.searchShapes(e[i].it,t[i].it,t[i].prevViewData,r,d)}else"tr"===e[i].ty?(l||(u=this.createTransformElement(e[i]),t[i]=u),d.push(t[i]),this.addTransformToStyleList(t[i])):"sh"===e[i].ty||"rc"===e[i].ty||"el"===e[i].ty||"sr"===e[i].ty?l||(t[i]=this.createShapeElement(e[i])):"tm"===e[i].ty||"rd"===e[i].ty||"pb"===e[i].ty||"zz"===e[i].ty||"op"===e[i].ty?(l?(c=t[i]).closed=!1:((c=ShapeModifiers.getModifier(e[i].ty)).init(this,e[i]),t[i]=c,this.shapeModifiers.push(c)),p.push(c)):"rp"===e[i].ty&&(l?(c=t[i]).closed=!0:(c=ShapeModifiers.getModifier(e[i].ty),t[i]=c,c.init(this,e,i,t),this.shapeModifiers.push(c),r=!1),p.push(c));this.addProcessedElement(e[i],i+1)}for(this.removeTransformFromStyleList(),this.closeStyles(h),f=p.length,i=0;i<f;i+=1)p[i].closed=!0},CVShapeElement.prototype.renderInnerContent=function(){this.transformHelper.opacity=1,this.transformHelper._opMdf=!1,this.renderModifiers(),this.transformsManager.processSequences(this._isFirstFrame),this.renderShape(this.transformHelper,this.shapesData,this.itemsData,!0)},CVShapeElement.prototype.renderShapeTransform=function(e,t){(e._opMdf||t.op._mdf||this._isFirstFrame)&&(t.opacity=e.opacity,t.opacity*=t.op.v,t._opMdf=!0)},CVShapeElement.prototype.drawLayer=function(){var e,t,n,r,a,i,o,s,l,c=this.stylesList.length,u=this.globalData.renderer,f=this.globalData.canvasContext;for(e=0;e<c;e+=1)if(("st"!==(s=(l=this.stylesList[e]).type)&&"gs"!==s||0!==l.wi)&&l.data._shouldRender&&0!==l.coOp&&0!==this.globalData.currentGlobalAlpha){for(u.save(),i=l.elements,"st"===s||"gs"===s?(u.ctxStrokeStyle("st"===s?l.co:l.grd),u.ctxLineWidth(l.wi),u.ctxLineCap(l.lc),u.ctxLineJoin(l.lj),u.ctxMiterLimit(l.ml||0)):u.ctxFillStyle("fl"===s?l.co:l.grd),u.ctxOpacity(l.coOp),"st"!==s&&"gs"!==s&&f.beginPath(),u.ctxTransform(l.preTransforms.finalTransform.props),n=i.length,t=0;t<n;t+=1){for("st"!==s&&"gs"!==s||(f.beginPath(),l.da&&(f.setLineDash(l.da),f.lineDashOffset=l.do)),a=(o=i[t].trNodes).length,r=0;r<a;r+=1)"m"===o[r].t?f.moveTo(o[r].p[0],o[r].p[1]):"c"===o[r].t?f.bezierCurveTo(o[r].pts[0],o[r].pts[1],o[r].pts[2],o[r].pts[3],o[r].pts[4],o[r].pts[5]):f.closePath();"st"!==s&&"gs"!==s||(u.ctxStroke(),l.da&&f.setLineDash(this.dashResetter))}"st"!==s&&"gs"!==s&&this.globalData.renderer.ctxFill(l.r),u.restore()}},CVShapeElement.prototype.renderShape=function(e,t,n,r){var a,i;for(i=e,a=t.length-1;a>=0;a-=1)"tr"===t[a].ty?(i=n[a].transform,this.renderShapeTransform(e,i)):"sh"===t[a].ty||"el"===t[a].ty||"rc"===t[a].ty||"sr"===t[a].ty?this.renderPath(t[a],n[a]):"fl"===t[a].ty?this.renderFill(t[a],n[a],i):"st"===t[a].ty?this.renderStroke(t[a],n[a],i):"gf"===t[a].ty||"gs"===t[a].ty?this.renderGradientFill(t[a],n[a],i):"gr"===t[a].ty?this.renderShape(i,t[a].it,n[a].it):t[a].ty;r&&this.drawLayer()},CVShapeElement.prototype.renderStyledShape=function(e,t){if(this._isFirstFrame||t._mdf||e.transforms._mdf){var n,r,a,i=e.trNodes,o=t.paths,s=o._length;i.length=0;var l=e.transforms.finalTransform;for(a=0;a<s;a+=1){var c=o.shapes[a];if(c&&c.v){for(r=c._length,n=1;n<r;n+=1)1===n&&i.push({t:"m",p:l.applyToPointArray(c.v[0][0],c.v[0][1],0)}),i.push({t:"c",pts:l.applyToTriplePoints(c.o[n-1],c.i[n],c.v[n])});1===r&&i.push({t:"m",p:l.applyToPointArray(c.v[0][0],c.v[0][1],0)}),c.c&&r&&(i.push({t:"c",pts:l.applyToTriplePoints(c.o[n-1],c.i[0],c.v[0])}),i.push({t:"z"}))}}e.trNodes=i}},CVShapeElement.prototype.renderPath=function(e,t){if(!0!==e.hd&&e._shouldRender){var n,r=t.styledShapes.length;for(n=0;n<r;n+=1)this.renderStyledShape(t.styledShapes[n],t.sh)}},CVShapeElement.prototype.renderFill=function(e,t,n){var r=t.style;(t.c._mdf||this._isFirstFrame)&&(r.co="rgb("+bmFloor(t.c.v[0])+","+bmFloor(t.c.v[1])+","+bmFloor(t.c.v[2])+")"),(t.o._mdf||n._opMdf||this._isFirstFrame)&&(r.coOp=t.o.v*n.opacity)},CVShapeElement.prototype.renderGradientFill=function(e,t,n){var r,a=t.style;if(!a.grd||t.g._mdf||t.s._mdf||t.e._mdf||1!==e.t&&(t.h._mdf||t.a._mdf)){var i,o=this.globalData.canvasContext,s=t.s.v,l=t.e.v;if(1===e.t)r=o.createLinearGradient(s[0],s[1],l[0],l[1]);else{var c=Math.sqrt(Math.pow(s[0]-l[0],2)+Math.pow(s[1]-l[1],2)),u=Math.atan2(l[1]-s[1],l[0]-s[0]),f=t.h.v;f>=1?f=.99:f<=-1&&(f=-.99);var h=c*f,p=Math.cos(u+t.a.v)*h+s[0],d=Math.sin(u+t.a.v)*h+s[1];r=o.createRadialGradient(p,d,0,s[0],s[1],c)}var m=e.g.p,g=t.g.c,y=1;for(i=0;i<m;i+=1)t.g._hasOpacity&&t.g._collapsable&&(y=t.g.o[2*i+1]),r.addColorStop(g[4*i]/100,"rgba("+g[4*i+1]+","+g[4*i+2]+","+g[4*i+3]+","+y+")");a.grd=r}a.coOp=t.o.v*n.opacity},CVShapeElement.prototype.renderStroke=function(e,t,n){var r=t.style,a=t.d;a&&(a._mdf||this._isFirstFrame)&&(r.da=a.dashArray,r.do=a.dashoffset[0]),(t.c._mdf||this._isFirstFrame)&&(r.co="rgb("+bmFloor(t.c.v[0])+","+bmFloor(t.c.v[1])+","+bmFloor(t.c.v[2])+")"),(t.o._mdf||n._opMdf||this._isFirstFrame)&&(r.coOp=t.o.v*n.opacity),(t.w._mdf||this._isFirstFrame)&&(r.wi=t.w.v)},CVShapeElement.prototype.destroy=function(){this.shapesData=null,this.globalData=null,this.canvasContext=null,this.stylesList.length=0,this.itemsData.length=0},extendPrototype([BaseElement,TransformElement,CVBaseElement,HierarchyElement,FrameElement,RenderableElement,ITextElement],CVTextElement),CVTextElement.prototype.tHelper=createTag("canvas").getContext("2d"),CVTextElement.prototype.buildNewText=function(){var e=this.textProperty.currentData;this.renderedLetters=createSizedArray(e.l?e.l.length:0);var t=!1;e.fc?(t=!0,this.values.fill=this.buildColor(e.fc)):this.values.fill="rgba(0,0,0,0)",this.fill=t;var n=!1;e.sc&&(n=!0,this.values.stroke=this.buildColor(e.sc),this.values.sWidth=e.sw);var r,a,i,o,s,l,c,u,f,h,p,d,m=this.globalData.fontManager.getFontByName(e.f),g=e.l,y=this.mHelper;this.stroke=n,this.values.fValue=e.finalSize+"px "+this.globalData.fontManager.getFontByName(e.f).fFamily,a=e.finalText.length;var v=this.data.singleShape,b=.001*e.tr*e.finalSize,_=0,w=0,S=!0,x=0;for(r=0;r<a;r+=1){o=(i=this.globalData.fontManager.getCharData(e.finalText[r],m.fStyle,this.globalData.fontManager.getFontByName(e.f).fFamily))&&i.data||{},y.reset(),v&&g[r].n&&(_=-b,w+=e.yOffset,w+=S?1:0,S=!1),f=(c=o.shapes?o.shapes[0].it:[]).length,y.scale(e.finalSize/100,e.finalSize/100),v&&this.applyTextPropertiesToMatrix(e,y,g[r].line,_,w),p=createSizedArray(f-1);var k=0;for(u=0;u<f;u+=1)if("sh"===c[u].ty){for(l=c[u].ks.k.i.length,h=c[u].ks.k,d=[],s=1;s<l;s+=1)1===s&&d.push(y.applyToX(h.v[0][0],h.v[0][1],0),y.applyToY(h.v[0][0],h.v[0][1],0)),d.push(y.applyToX(h.o[s-1][0],h.o[s-1][1],0),y.applyToY(h.o[s-1][0],h.o[s-1][1],0),y.applyToX(h.i[s][0],h.i[s][1],0),y.applyToY(h.i[s][0],h.i[s][1],0),y.applyToX(h.v[s][0],h.v[s][1],0),y.applyToY(h.v[s][0],h.v[s][1],0));d.push(y.applyToX(h.o[s-1][0],h.o[s-1][1],0),y.applyToY(h.o[s-1][0],h.o[s-1][1],0),y.applyToX(h.i[0][0],h.i[0][1],0),y.applyToY(h.i[0][0],h.i[0][1],0),y.applyToX(h.v[0][0],h.v[0][1],0),y.applyToY(h.v[0][0],h.v[0][1],0)),p[k]=d,k+=1}v&&(_+=g[r].l,_+=b),this.textSpans[x]?this.textSpans[x].elem=p:this.textSpans[x]={elem:p},x+=1}},CVTextElement.prototype.renderInnerContent=function(){var e,t,n,r,a,i;this.validateText(),this.canvasContext.font=this.values.fValue,this.globalData.renderer.ctxLineCap("butt"),this.globalData.renderer.ctxLineJoin("miter"),this.globalData.renderer.ctxMiterLimit(4),this.data.singleShape||this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag);var o,s=this.textAnimator.renderedLetters,l=this.textProperty.currentData.l;t=l.length;var c,u,f=null,h=null,p=null,d=this.globalData.renderer;for(e=0;e<t;e+=1)if(!l[e].n){if((o=s[e])&&(d.save(),d.ctxTransform(o.p),d.ctxOpacity(o.o)),this.fill){for(o&&o.fc?f!==o.fc&&(d.ctxFillStyle(o.fc),f=o.fc):f!==this.values.fill&&(f=this.values.fill,d.ctxFillStyle(this.values.fill)),r=(c=this.textSpans[e].elem).length,this.globalData.canvasContext.beginPath(),n=0;n<r;n+=1)for(i=(u=c[n]).length,this.globalData.canvasContext.moveTo(u[0],u[1]),a=2;a<i;a+=6)this.globalData.canvasContext.bezierCurveTo(u[a],u[a+1],u[a+2],u[a+3],u[a+4],u[a+5]);this.globalData.canvasContext.closePath(),d.ctxFill()}if(this.stroke){for(o&&o.sw?p!==o.sw&&(p=o.sw,d.ctxLineWidth(o.sw)):p!==this.values.sWidth&&(p=this.values.sWidth,d.ctxLineWidth(this.values.sWidth)),o&&o.sc?h!==o.sc&&(h=o.sc,d.ctxStrokeStyle(o.sc)):h!==this.values.stroke&&(h=this.values.stroke,d.ctxStrokeStyle(this.values.stroke)),r=(c=this.textSpans[e].elem).length,this.globalData.canvasContext.beginPath(),n=0;n<r;n+=1)for(i=(u=c[n]).length,this.globalData.canvasContext.moveTo(u[0],u[1]),a=2;a<i;a+=6)this.globalData.canvasContext.bezierCurveTo(u[a],u[a+1],u[a+2],u[a+3],u[a+4],u[a+5]);this.globalData.canvasContext.closePath(),d.ctxStroke()}o&&this.globalData.renderer.restore()}},extendPrototype([BaseElement,TransformElement,CVBaseElement,HierarchyElement,FrameElement,RenderableElement],CVImageElement),CVImageElement.prototype.initElement=SVGShapeElement.prototype.initElement,CVImageElement.prototype.prepareFrame=IImageElement.prototype.prepareFrame,CVImageElement.prototype.createContent=function(){if(this.img.width&&(this.assetData.w!==this.img.width||this.assetData.h!==this.img.height)){var e=createTag("canvas");e.width=this.assetData.w,e.height=this.assetData.h;var t,n,r=e.getContext("2d"),a=this.img.width,i=this.img.height,o=a/i,s=this.assetData.w/this.assetData.h,l=this.assetData.pr||this.globalData.renderConfig.imagePreserveAspectRatio;o>s&&"xMidYMid slice"===l||o<s&&"xMidYMid slice"!==l?t=(n=i)*s:n=(t=a)/s,r.drawImage(this.img,(a-t)/2,(i-n)/2,t,n,0,0,this.assetData.w,this.assetData.h),this.img=e}},CVImageElement.prototype.renderInnerContent=function(){this.canvasContext.drawImage(this.img,0,0)},CVImageElement.prototype.destroy=function(){this.img=null},extendPrototype([BaseElement,TransformElement,CVBaseElement,HierarchyElement,FrameElement,RenderableElement],CVSolidElement),CVSolidElement.prototype.initElement=SVGShapeElement.prototype.initElement,CVSolidElement.prototype.prepareFrame=IImageElement.prototype.prepareFrame,CVSolidElement.prototype.renderInnerContent=function(){this.globalData.renderer.ctxFillStyle(this.data.sc),this.globalData.renderer.ctxFillRect(0,0,this.data.sw,this.data.sh)},extendPrototype([BaseRenderer],CanvasRendererBase),CanvasRendererBase.prototype.createShape=function(e){return new CVShapeElement(e,this.globalData,this)},CanvasRendererBase.prototype.createText=function(e){return new CVTextElement(e,this.globalData,this)},CanvasRendererBase.prototype.createImage=function(e){return new CVImageElement(e,this.globalData,this)},CanvasRendererBase.prototype.createSolid=function(e){return new CVSolidElement(e,this.globalData,this)},CanvasRendererBase.prototype.createNull=SVGRenderer.prototype.createNull,CanvasRendererBase.prototype.ctxTransform=function(e){1===e[0]&&0===e[1]&&0===e[4]&&1===e[5]&&0===e[12]&&0===e[13]||this.canvasContext.transform(e[0],e[1],e[4],e[5],e[12],e[13])},CanvasRendererBase.prototype.ctxOpacity=function(e){this.canvasContext.globalAlpha*=e<0?0:e},CanvasRendererBase.prototype.ctxFillStyle=function(e){this.canvasContext.fillStyle=e},CanvasRendererBase.prototype.ctxStrokeStyle=function(e){this.canvasContext.strokeStyle=e},CanvasRendererBase.prototype.ctxLineWidth=function(e){this.canvasContext.lineWidth=e},CanvasRendererBase.prototype.ctxLineCap=function(e){this.canvasContext.lineCap=e},CanvasRendererBase.prototype.ctxLineJoin=function(e){this.canvasContext.lineJoin=e},CanvasRendererBase.prototype.ctxMiterLimit=function(e){this.canvasContext.miterLimit=e},CanvasRendererBase.prototype.ctxFill=function(e){this.canvasContext.fill(e)},CanvasRendererBase.prototype.ctxFillRect=function(e,t,n,r){this.canvasContext.fillRect(e,t,n,r)},CanvasRendererBase.prototype.ctxStroke=function(){this.canvasContext.stroke()},CanvasRendererBase.prototype.reset=function(){this.renderConfig.clearCanvas?this.contextData.reset():this.canvasContext.restore()},CanvasRendererBase.prototype.save=function(){this.canvasContext.save()},CanvasRendererBase.prototype.restore=function(e){this.renderConfig.clearCanvas?(e&&(this.globalData.blendMode="source-over"),this.contextData.restore(e)):this.canvasContext.restore()},CanvasRendererBase.prototype.configAnimation=function(e){if(this.animationItem.wrapper){this.animationItem.container=createTag("canvas");var t=this.animationItem.container.style;t.width="100%",t.height="100%";var n="0px 0px 0px";t.transformOrigin=n,t.mozTransformOrigin=n,t.webkitTransformOrigin=n,t["-webkit-transform"]=n,t.contentVisibility=this.renderConfig.contentVisibility,this.animationItem.wrapper.appendChild(this.animationItem.container),this.canvasContext=this.animationItem.container.getContext("2d"),this.renderConfig.className&&this.animationItem.container.setAttribute("class",this.renderConfig.className),this.renderConfig.id&&this.animationItem.container.setAttribute("id",this.renderConfig.id)}else this.canvasContext=this.renderConfig.context;this.contextData.setContext(this.canvasContext),this.data=e,this.layers=e.layers,this.transformCanvas={w:e.w,h:e.h,sx:0,sy:0,tx:0,ty:0},this.setupGlobalData(e,document.body),this.globalData.canvasContext=this.canvasContext,this.globalData.renderer=this,this.globalData.isDashed=!1,this.globalData.progressiveLoad=this.renderConfig.progressiveLoad,this.globalData.transformCanvas=this.transformCanvas,this.elements=createSizedArray(e.layers.length),this.updateContainerSize()},CanvasRendererBase.prototype.updateContainerSize=function(e,t){var n,r,a,i;if(this.reset(),e?(n=e,r=t,this.canvasContext.canvas.width=n,this.canvasContext.canvas.height=r):(this.animationItem.wrapper&&this.animationItem.container?(n=this.animationItem.wrapper.offsetWidth,r=this.animationItem.wrapper.offsetHeight):(n=this.canvasContext.canvas.width,r=this.canvasContext.canvas.height),this.canvasContext.canvas.width=n*this.renderConfig.dpr,this.canvasContext.canvas.height=r*this.renderConfig.dpr),-1!==this.renderConfig.preserveAspectRatio.indexOf("meet")||-1!==this.renderConfig.preserveAspectRatio.indexOf("slice")){var o=this.renderConfig.preserveAspectRatio.split(" "),s=o[1]||"meet",l=o[0]||"xMidYMid",c=l.substr(0,4),u=l.substr(4);a=n/r,(i=this.transformCanvas.w/this.transformCanvas.h)>a&&"meet"===s||i<a&&"slice"===s?(this.transformCanvas.sx=n/(this.transformCanvas.w/this.renderConfig.dpr),this.transformCanvas.sy=n/(this.transformCanvas.w/this.renderConfig.dpr)):(this.transformCanvas.sx=r/(this.transformCanvas.h/this.renderConfig.dpr),this.transformCanvas.sy=r/(this.transformCanvas.h/this.renderConfig.dpr)),this.transformCanvas.tx="xMid"===c&&(i<a&&"meet"===s||i>a&&"slice"===s)?(n-this.transformCanvas.w*(r/this.transformCanvas.h))/2*this.renderConfig.dpr:"xMax"===c&&(i<a&&"meet"===s||i>a&&"slice"===s)?(n-this.transformCanvas.w*(r/this.transformCanvas.h))*this.renderConfig.dpr:0,this.transformCanvas.ty="YMid"===u&&(i>a&&"meet"===s||i<a&&"slice"===s)?(r-this.transformCanvas.h*(n/this.transformCanvas.w))/2*this.renderConfig.dpr:"YMax"===u&&(i>a&&"meet"===s||i<a&&"slice"===s)?(r-this.transformCanvas.h*(n/this.transformCanvas.w))*this.renderConfig.dpr:0}else"none"===this.renderConfig.preserveAspectRatio?(this.transformCanvas.sx=n/(this.transformCanvas.w/this.renderConfig.dpr),this.transformCanvas.sy=r/(this.transformCanvas.h/this.renderConfig.dpr),this.transformCanvas.tx=0,this.transformCanvas.ty=0):(this.transformCanvas.sx=this.renderConfig.dpr,this.transformCanvas.sy=this.renderConfig.dpr,this.transformCanvas.tx=0,this.transformCanvas.ty=0);this.transformCanvas.props=[this.transformCanvas.sx,0,0,0,0,this.transformCanvas.sy,0,0,0,0,1,0,this.transformCanvas.tx,this.transformCanvas.ty,0,1],this.ctxTransform(this.transformCanvas.props),this.canvasContext.beginPath(),this.canvasContext.rect(0,0,this.transformCanvas.w,this.transformCanvas.h),this.canvasContext.closePath(),this.canvasContext.clip(),this.renderFrame(this.renderedFrame,!0)},CanvasRendererBase.prototype.destroy=function(){var e;for(this.renderConfig.clearCanvas&&this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),e=(this.layers?this.layers.length:0)-1;e>=0;e-=1)this.elements[e]&&this.elements[e].destroy&&this.elements[e].destroy();this.elements.length=0,this.globalData.canvasContext=null,this.animationItem.container=null,this.destroyed=!0},CanvasRendererBase.prototype.renderFrame=function(e,t){if((this.renderedFrame!==e||!0!==this.renderConfig.clearCanvas||t)&&!this.destroyed&&-1!==e){var n;this.renderedFrame=e,this.globalData.frameNum=e-this.animationItem._isFirstFrame,this.globalData.frameId+=1,this.globalData._mdf=!this.renderConfig.clearCanvas||t,this.globalData.projectInterface.currentFrame=e;var r=this.layers.length;for(this.completeLayers||this.checkLayers(e),n=r-1;n>=0;n-=1)(this.completeLayers||this.elements[n])&&this.elements[n].prepareFrame(e-this.layers[n].st);if(this.globalData._mdf){for(!0===this.renderConfig.clearCanvas?this.canvasContext.clearRect(0,0,this.transformCanvas.w,this.transformCanvas.h):this.save(),n=r-1;n>=0;n-=1)(this.completeLayers||this.elements[n])&&this.elements[n].renderFrame();!0!==this.renderConfig.clearCanvas&&this.restore()}}},CanvasRendererBase.prototype.buildItem=function(e){var t=this.elements;if(!t[e]&&99!==this.layers[e].ty){var n=this.createItem(this.layers[e],this,this.globalData);t[e]=n,n.initExpressions()}},CanvasRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;)this.pendingElements.pop().checkParenting()},CanvasRendererBase.prototype.hide=function(){this.animationItem.container.style.display="none"},CanvasRendererBase.prototype.show=function(){this.animationItem.container.style.display="block"},CVContextData.prototype.duplicate=function(){var e=2*this._length,t=0;for(t=this._length;t<e;t+=1)this.stack[t]=new CanvasContext;this._length=e},CVContextData.prototype.reset=function(){this.cArrPos=0,this.cTr.reset(),this.stack[this.cArrPos].opacity=1},CVContextData.prototype.restore=function(e){this.cArrPos-=1;var t,n=this.stack[this.cArrPos],r=n.transform,a=this.cTr.props;for(t=0;t<16;t+=1)a[t]=r[t];if(e){this.nativeContext.restore();var i=this.stack[this.cArrPos+1];this.appliedFillStyle=i.fillStyle,this.appliedStrokeStyle=i.strokeStyle,this.appliedLineWidth=i.lineWidth,this.appliedLineCap=i.lineCap,this.appliedLineJoin=i.lineJoin,this.appliedMiterLimit=i.miterLimit}this.nativeContext.setTransform(r[0],r[1],r[4],r[5],r[12],r[13]),(e||-1!==n.opacity&&this.currentOpacity!==n.opacity)&&(this.nativeContext.globalAlpha=n.opacity,this.currentOpacity=n.opacity),this.currentFillStyle=n.fillStyle,this.currentStrokeStyle=n.strokeStyle,this.currentLineWidth=n.lineWidth,this.currentLineCap=n.lineCap,this.currentLineJoin=n.lineJoin,this.currentMiterLimit=n.miterLimit},CVContextData.prototype.save=function(e){e&&this.nativeContext.save();var t=this.cTr.props;this._length<=this.cArrPos&&this.duplicate();var n,r=this.stack[this.cArrPos];for(n=0;n<16;n+=1)r.transform[n]=t[n];this.cArrPos+=1;var a=this.stack[this.cArrPos];a.opacity=r.opacity,a.fillStyle=r.fillStyle,a.strokeStyle=r.strokeStyle,a.lineWidth=r.lineWidth,a.lineCap=r.lineCap,a.lineJoin=r.lineJoin,a.miterLimit=r.miterLimit},CVContextData.prototype.setOpacity=function(e){this.stack[this.cArrPos].opacity=e},CVContextData.prototype.setContext=function(e){this.nativeContext=e},CVContextData.prototype.fillStyle=function(e){this.stack[this.cArrPos].fillStyle!==e&&(this.currentFillStyle=e,this.stack[this.cArrPos].fillStyle=e)},CVContextData.prototype.strokeStyle=function(e){this.stack[this.cArrPos].strokeStyle!==e&&(this.currentStrokeStyle=e,this.stack[this.cArrPos].strokeStyle=e)},CVContextData.prototype.lineWidth=function(e){this.stack[this.cArrPos].lineWidth!==e&&(this.currentLineWidth=e,this.stack[this.cArrPos].lineWidth=e)},CVContextData.prototype.lineCap=function(e){this.stack[this.cArrPos].lineCap!==e&&(this.currentLineCap=e,this.stack[this.cArrPos].lineCap=e)},CVContextData.prototype.lineJoin=function(e){this.stack[this.cArrPos].lineJoin!==e&&(this.currentLineJoin=e,this.stack[this.cArrPos].lineJoin=e)},CVContextData.prototype.miterLimit=function(e){this.stack[this.cArrPos].miterLimit!==e&&(this.currentMiterLimit=e,this.stack[this.cArrPos].miterLimit=e)},CVContextData.prototype.transform=function(e){this.transformMat.cloneFromProps(e);var t=this.cTr;this.transformMat.multiply(t),t.cloneFromProps(this.transformMat.props);var n=t.props;this.nativeContext.setTransform(n[0],n[1],n[4],n[5],n[12],n[13])},CVContextData.prototype.opacity=function(e){var t=this.stack[this.cArrPos].opacity;t*=e<0?0:e,this.stack[this.cArrPos].opacity!==t&&(this.currentOpacity!==e&&(this.nativeContext.globalAlpha=e,this.currentOpacity=e),this.stack[this.cArrPos].opacity=t)},CVContextData.prototype.fill=function(e){this.appliedFillStyle!==this.currentFillStyle&&(this.appliedFillStyle=this.currentFillStyle,this.nativeContext.fillStyle=this.appliedFillStyle),this.nativeContext.fill(e)},CVContextData.prototype.fillRect=function(e,t,n,r){this.appliedFillStyle!==this.currentFillStyle&&(this.appliedFillStyle=this.currentFillStyle,this.nativeContext.fillStyle=this.appliedFillStyle),this.nativeContext.fillRect(e,t,n,r)},CVContextData.prototype.stroke=function(){this.appliedStrokeStyle!==this.currentStrokeStyle&&(this.appliedStrokeStyle=this.currentStrokeStyle,this.nativeContext.strokeStyle=this.appliedStrokeStyle),this.appliedLineWidth!==this.currentLineWidth&&(this.appliedLineWidth=this.currentLineWidth,this.nativeContext.lineWidth=this.appliedLineWidth),this.appliedLineCap!==this.currentLineCap&&(this.appliedLineCap=this.currentLineCap,this.nativeContext.lineCap=this.appliedLineCap),this.appliedLineJoin!==this.currentLineJoin&&(this.appliedLineJoin=this.currentLineJoin,this.nativeContext.lineJoin=this.appliedLineJoin),this.appliedMiterLimit!==this.currentMiterLimit&&(this.appliedMiterLimit=this.currentMiterLimit,this.nativeContext.miterLimit=this.appliedMiterLimit),this.nativeContext.stroke()},extendPrototype([CanvasRendererBase,ICompElement,CVBaseElement],CVCompElement),CVCompElement.prototype.renderInnerContent=function(){var e,t=this.canvasContext;for(t.beginPath(),t.moveTo(0,0),t.lineTo(this.data.w,0),t.lineTo(this.data.w,this.data.h),t.lineTo(0,this.data.h),t.lineTo(0,0),t.clip(),e=this.layers.length-1;e>=0;e-=1)(this.completeLayers||this.elements[e])&&this.elements[e].renderFrame()},CVCompElement.prototype.destroy=function(){var e;for(e=this.layers.length-1;e>=0;e-=1)this.elements[e]&&this.elements[e].destroy();this.layers=null,this.elements=null},CVCompElement.prototype.createComp=function(e){return new CVCompElement(e,this.globalData,this)},extendPrototype([CanvasRendererBase],CanvasRenderer),CanvasRenderer.prototype.createComp=function(e){return new CVCompElement(e,this.globalData,this)},HBaseElement.prototype={checkBlendMode:function(){},initRendererElement:function(){this.baseElement=createTag(this.data.tg||"div"),this.data.hasMask?(this.svgElement=createNS("svg"),this.layerElement=createNS("g"),this.maskedElement=this.layerElement,this.svgElement.appendChild(this.layerElement),this.baseElement.appendChild(this.svgElement)):this.layerElement=this.baseElement,styleDiv(this.baseElement)},createContainerElements:function(){this.renderableEffectsManager=new CVEffects(this),this.transformedElement=this.baseElement,this.maskedElement=this.layerElement,this.data.ln&&this.layerElement.setAttribute("id",this.data.ln),this.data.cl&&this.layerElement.setAttribute("class",this.data.cl),0!==this.data.bm&&this.setBlendMode()},renderElement:function(){var e=this.transformedElement?this.transformedElement.style:{};if(this.finalTransform._matMdf){var t=this.finalTransform.mat.toCSS();e.transform=t,e.webkitTransform=t}this.finalTransform._opMdf&&(e.opacity=this.finalTransform.mProp.o.v)},renderFrame:function(){this.data.hd||this.hidden||(this.renderTransform(),this.renderRenderable(),this.renderElement(),this.renderInnerContent(),this._isFirstFrame&&(this._isFirstFrame=!1))},destroy:function(){this.layerElement=null,this.transformedElement=null,this.matteElement&&(this.matteElement=null),this.maskManager&&(this.maskManager.destroy(),this.maskManager=null)},createRenderableComponents:function(){this.maskManager=new MaskElement(this.data,this,this.globalData)},addEffects:function(){},setMatte:function(){}},HBaseElement.prototype.getBaseElement=SVGBaseElement.prototype.getBaseElement,HBaseElement.prototype.destroyBaseElement=HBaseElement.prototype.destroy,HBaseElement.prototype.buildElementParenting=BaseRenderer.prototype.buildElementParenting,extendPrototype([BaseElement,TransformElement,HBaseElement,HierarchyElement,FrameElement,RenderableDOMElement],HSolidElement),HSolidElement.prototype.createContent=function(){var e;this.data.hasMask?((e=createNS("rect")).setAttribute("width",this.data.sw),e.setAttribute("height",this.data.sh),e.setAttribute("fill",this.data.sc),this.svgElement.setAttribute("width",this.data.sw),this.svgElement.setAttribute("height",this.data.sh)):((e=createTag("div")).style.width=this.data.sw+"px",e.style.height=this.data.sh+"px",e.style.backgroundColor=this.data.sc),this.layerElement.appendChild(e)},extendPrototype([BaseElement,TransformElement,HSolidElement,SVGShapeElement,HBaseElement,HierarchyElement,FrameElement,RenderableElement],HShapeElement),HShapeElement.prototype._renderShapeFrame=HShapeElement.prototype.renderInnerContent,HShapeElement.prototype.createContent=function(){var e;if(this.baseElement.style.fontSize=0,this.data.hasMask)this.layerElement.appendChild(this.shapesContainer),e=this.svgElement;else{e=createNS("svg");var t=this.comp.data?this.comp.data:this.globalData.compSize;e.setAttribute("width",t.w),e.setAttribute("height",t.h),e.appendChild(this.shapesContainer),this.layerElement.appendChild(e)}this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.shapesContainer,0,[],!0),this.filterUniqueShapes(),this.shapeCont=e},HShapeElement.prototype.getTransformedPoint=function(e,t){var n,r=e.length;for(n=0;n<r;n+=1)t=e[n].mProps.v.applyToPointArray(t[0],t[1],0);return t},HShapeElement.prototype.calculateShapeBoundingBox=function(e,t){var n,r,a,i,o,s=e.sh.v,l=e.transformers,c=s._length;if(!(c<=1)){for(n=0;n<c-1;n+=1)r=this.getTransformedPoint(l,s.v[n]),a=this.getTransformedPoint(l,s.o[n]),i=this.getTransformedPoint(l,s.i[n+1]),o=this.getTransformedPoint(l,s.v[n+1]),this.checkBounds(r,a,i,o,t);s.c&&(r=this.getTransformedPoint(l,s.v[n]),a=this.getTransformedPoint(l,s.o[n]),i=this.getTransformedPoint(l,s.i[0]),o=this.getTransformedPoint(l,s.v[0]),this.checkBounds(r,a,i,o,t))}},HShapeElement.prototype.checkBounds=function(e,t,n,r,a){this.getBoundsOfCurve(e,t,n,r);var i=this.shapeBoundingBox;a.x=bmMin(i.left,a.x),a.xMax=bmMax(i.right,a.xMax),a.y=bmMin(i.top,a.y),a.yMax=bmMax(i.bottom,a.yMax)},HShapeElement.prototype.shapeBoundingBox={left:0,right:0,top:0,bottom:0},HShapeElement.prototype.tempBoundingBox={x:0,xMax:0,y:0,yMax:0,width:0,height:0},HShapeElement.prototype.getBoundsOfCurve=function(e,t,n,r){for(var a,i,o,s,l,c,u,f=[[e[0],r[0]],[e[1],r[1]]],h=0;h<2;++h)i=6*e[h]-12*t[h]+6*n[h],a=-3*e[h]+9*t[h]-9*n[h]+3*r[h],o=3*t[h]-3*e[h],i|=0,o|=0,0==(a|=0)&&0===i||(0===a?(s=-o/i)>0&&s<1&&f[h].push(this.calculateF(s,e,t,n,r,h)):(l=i*i-4*o*a)>=0&&((c=(-i+bmSqrt(l))/(2*a))>0&&c<1&&f[h].push(this.calculateF(c,e,t,n,r,h)),(u=(-i-bmSqrt(l))/(2*a))>0&&u<1&&f[h].push(this.calculateF(u,e,t,n,r,h))));this.shapeBoundingBox.left=bmMin.apply(null,f[0]),this.shapeBoundingBox.top=bmMin.apply(null,f[1]),this.shapeBoundingBox.right=bmMax.apply(null,f[0]),this.shapeBoundingBox.bottom=bmMax.apply(null,f[1])},HShapeElement.prototype.calculateF=function(e,t,n,r,a,i){return bmPow(1-e,3)*t[i]+3*bmPow(1-e,2)*e*n[i]+3*(1-e)*bmPow(e,2)*r[i]+bmPow(e,3)*a[i]},HShapeElement.prototype.calculateBoundingBox=function(e,t){var n,r=e.length;for(n=0;n<r;n+=1)e[n]&&e[n].sh?this.calculateShapeBoundingBox(e[n],t):e[n]&&e[n].it?this.calculateBoundingBox(e[n].it,t):e[n]&&e[n].style&&e[n].w&&this.expandStrokeBoundingBox(e[n].w,t)},HShapeElement.prototype.expandStrokeBoundingBox=function(e,t){var n=0;if(e.keyframes){for(var r=0;r<e.keyframes.length;r+=1){var a=e.keyframes[r].s;a>n&&(n=a)}n*=e.mult}else n=e.v*e.mult;t.x-=n,t.xMax+=n,t.y-=n,t.yMax+=n},HShapeElement.prototype.currentBoxContains=function(e){return this.currentBBox.x<=e.x&&this.currentBBox.y<=e.y&&this.currentBBox.width+this.currentBBox.x>=e.x+e.width&&this.currentBBox.height+this.currentBBox.y>=e.y+e.height},HShapeElement.prototype.renderInnerContent=function(){if(this._renderShapeFrame(),!this.hidden&&(this._isFirstFrame||this._mdf)){var e=this.tempBoundingBox,t=999999;if(e.x=t,e.xMax=-t,e.y=t,e.yMax=-t,this.calculateBoundingBox(this.itemsData,e),e.width=e.xMax<e.x?0:e.xMax-e.x,e.height=e.yMax<e.y?0:e.yMax-e.y,this.currentBoxContains(e))return;var n=!1;if(this.currentBBox.w!==e.width&&(this.currentBBox.w=e.width,this.shapeCont.setAttribute("width",e.width),n=!0),this.currentBBox.h!==e.height&&(this.currentBBox.h=e.height,this.shapeCont.setAttribute("height",e.height),n=!0),n||this.currentBBox.x!==e.x||this.currentBBox.y!==e.y){this.currentBBox.w=e.width,this.currentBBox.h=e.height,this.currentBBox.x=e.x,this.currentBBox.y=e.y,this.shapeCont.setAttribute("viewBox",this.currentBBox.x+" "+this.currentBBox.y+" "+this.currentBBox.w+" "+this.currentBBox.h);var r=this.shapeCont.style,a="translate("+this.currentBBox.x+"px,"+this.currentBBox.y+"px)";r.transform=a,r.webkitTransform=a}}},extendPrototype([BaseElement,TransformElement,HBaseElement,HierarchyElement,FrameElement,RenderableDOMElement,ITextElement],HTextElement),HTextElement.prototype.createContent=function(){if(this.isMasked=this.checkMasks(),this.isMasked){this.renderType="svg",this.compW=this.comp.data.w,this.compH=this.comp.data.h,this.svgElement.setAttribute("width",this.compW),this.svgElement.setAttribute("height",this.compH);var e=createNS("g");this.maskedElement.appendChild(e),this.innerElem=e}else this.renderType="html",this.innerElem=this.layerElement;this.checkParenting()},HTextElement.prototype.buildNewText=function(){var e=this.textProperty.currentData;this.renderedLetters=createSizedArray(e.l?e.l.length:0);var t=this.innerElem.style,n=e.fc?this.buildColor(e.fc):"rgba(0,0,0,0)";t.fill=n,t.color=n,e.sc&&(t.stroke=this.buildColor(e.sc),t.strokeWidth=e.sw+"px");var r,a,i=this.globalData.fontManager.getFontByName(e.f);if(!this.globalData.fontManager.chars)if(t.fontSize=e.finalSize+"px",t.lineHeight=e.finalSize+"px",i.fClass)this.innerElem.className=i.fClass;else{t.fontFamily=i.fFamily;var o=e.fWeight,s=e.fStyle;t.fontStyle=s,t.fontWeight=o}var l,c,u,f=e.l;a=f.length;var h,p=this.mHelper,d="",m=0;for(r=0;r<a;r+=1){if(this.globalData.fontManager.chars?(this.textPaths[m]?l=this.textPaths[m]:((l=createNS("path")).setAttribute("stroke-linecap",lineCapEnum[1]),l.setAttribute("stroke-linejoin",lineJoinEnum[2]),l.setAttribute("stroke-miterlimit","4")),this.isMasked||(this.textSpans[m]?u=(c=this.textSpans[m]).children[0]:((c=createTag("div")).style.lineHeight=0,(u=createNS("svg")).appendChild(l),styleDiv(c)))):this.isMasked?l=this.textPaths[m]?this.textPaths[m]:createNS("text"):this.textSpans[m]?(c=this.textSpans[m],l=this.textPaths[m]):(styleDiv(c=createTag("span")),styleDiv(l=createTag("span")),c.appendChild(l)),this.globalData.fontManager.chars){var g,y=this.globalData.fontManager.getCharData(e.finalText[r],i.fStyle,this.globalData.fontManager.getFontByName(e.f).fFamily);if(g=y?y.data:null,p.reset(),g&&g.shapes&&g.shapes.length&&(h=g.shapes[0].it,p.scale(e.finalSize/100,e.finalSize/100),d=this.createPathShape(p,h),l.setAttribute("d",d)),this.isMasked)this.innerElem.appendChild(l);else{if(this.innerElem.appendChild(c),g&&g.shapes){document.body.appendChild(u);var v=u.getBBox();u.setAttribute("width",v.width+2),u.setAttribute("height",v.height+2),u.setAttribute("viewBox",v.x-1+" "+(v.y-1)+" "+(v.width+2)+" "+(v.height+2));var b=u.style,_="translate("+(v.x-1)+"px,"+(v.y-1)+"px)";b.transform=_,b.webkitTransform=_,f[r].yOffset=v.y-1}else u.setAttribute("width",1),u.setAttribute("height",1);c.appendChild(u)}}else if(l.textContent=f[r].val,l.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),this.isMasked)this.innerElem.appendChild(l);else{this.innerElem.appendChild(c);var w=l.style,S="translate3d(0,"+-e.finalSize/1.2+"px,0)";w.transform=S,w.webkitTransform=S}this.isMasked?this.textSpans[m]=l:this.textSpans[m]=c,this.textSpans[m].style.display="block",this.textPaths[m]=l,m+=1}for(;m<this.textSpans.length;)this.textSpans[m].style.display="none",m+=1},HTextElement.prototype.renderInnerContent=function(){var e;if(this.validateText(),this.data.singleShape){if(!this._isFirstFrame&&!this.lettersChangedFlag)return;if(this.isMasked&&this.finalTransform._matMdf){this.svgElement.setAttribute("viewBox",-this.finalTransform.mProp.p.v[0]+" "+-this.finalTransform.mProp.p.v[1]+" "+this.compW+" "+this.compH),e=this.svgElement.style;var t="translate("+-this.finalTransform.mProp.p.v[0]+"px,"+-this.finalTransform.mProp.p.v[1]+"px)";e.transform=t,e.webkitTransform=t}}if(this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag),this.lettersChangedFlag||this.textAnimator.lettersChangedFlag){var n,r,a,i,o,s=0,l=this.textAnimator.renderedLetters,c=this.textProperty.currentData.l;for(r=c.length,n=0;n<r;n+=1)c[n].n?s+=1:(i=this.textSpans[n],o=this.textPaths[n],a=l[s],s+=1,a._mdf.m&&(this.isMasked?i.setAttribute("transform",a.m):(i.style.webkitTransform=a.m,i.style.transform=a.m)),i.style.opacity=a.o,a.sw&&a._mdf.sw&&o.setAttribute("stroke-width",a.sw),a.sc&&a._mdf.sc&&o.setAttribute("stroke",a.sc),a.fc&&a._mdf.fc&&(o.setAttribute("fill",a.fc),o.style.color=a.fc));if(this.innerElem.getBBox&&!this.hidden&&(this._isFirstFrame||this._mdf)){var u=this.innerElem.getBBox();if(this.currentBBox.w!==u.width&&(this.currentBBox.w=u.width,this.svgElement.setAttribute("width",u.width)),this.currentBBox.h!==u.height&&(this.currentBBox.h=u.height,this.svgElement.setAttribute("height",u.height)),this.currentBBox.w!==u.width+2||this.currentBBox.h!==u.height+2||this.currentBBox.x!==u.x-1||this.currentBBox.y!==u.y-1){this.currentBBox.w=u.width+2,this.currentBBox.h=u.height+2,this.currentBBox.x=u.x-1,this.currentBBox.y=u.y-1,this.svgElement.setAttribute("viewBox",this.currentBBox.x+" "+this.currentBBox.y+" "+this.currentBBox.w+" "+this.currentBBox.h),e=this.svgElement.style;var f="translate("+this.currentBBox.x+"px,"+this.currentBBox.y+"px)";e.transform=f,e.webkitTransform=f}}}},extendPrototype([BaseElement,FrameElement,HierarchyElement],HCameraElement),HCameraElement.prototype.setup=function(){var e,t,n,r,a=this.comp.threeDElements.length;for(e=0;e<a;e+=1)if("3d"===(t=this.comp.threeDElements[e]).type){n=t.perspectiveElem.style,r=t.container.style;var i=this.pe.v+"px",o="0px 0px 0px",s="matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)";n.perspective=i,n.webkitPerspective=i,r.transformOrigin=o,r.mozTransformOrigin=o,r.webkitTransformOrigin=o,n.transform=s,n.webkitTransform=s}},HCameraElement.prototype.createElements=function(){},HCameraElement.prototype.hide=function(){},HCameraElement.prototype.renderFrame=function(){var e,t,n=this._isFirstFrame;if(this.hierarchy)for(t=this.hierarchy.length,e=0;e<t;e+=1)n=this.hierarchy[e].finalTransform.mProp._mdf||n;if(n||this.pe._mdf||this.p&&this.p._mdf||this.px&&(this.px._mdf||this.py._mdf||this.pz._mdf)||this.rx._mdf||this.ry._mdf||this.rz._mdf||this.or._mdf||this.a&&this.a._mdf){if(this.mat.reset(),this.hierarchy)for(e=t=this.hierarchy.length-1;e>=0;e-=1){var r=this.hierarchy[e].finalTransform.mProp;this.mat.translate(-r.p.v[0],-r.p.v[1],r.p.v[2]),this.mat.rotateX(-r.or.v[0]).rotateY(-r.or.v[1]).rotateZ(r.or.v[2]),this.mat.rotateX(-r.rx.v).rotateY(-r.ry.v).rotateZ(r.rz.v),this.mat.scale(1/r.s.v[0],1/r.s.v[1],1/r.s.v[2]),this.mat.translate(r.a.v[0],r.a.v[1],r.a.v[2])}if(this.p?this.mat.translate(-this.p.v[0],-this.p.v[1],this.p.v[2]):this.mat.translate(-this.px.v,-this.py.v,this.pz.v),this.a){var a;a=this.p?[this.p.v[0]-this.a.v[0],this.p.v[1]-this.a.v[1],this.p.v[2]-this.a.v[2]]:[this.px.v-this.a.v[0],this.py.v-this.a.v[1],this.pz.v-this.a.v[2]];var i=Math.sqrt(Math.pow(a[0],2)+Math.pow(a[1],2)+Math.pow(a[2],2)),o=[a[0]/i,a[1]/i,a[2]/i],s=Math.sqrt(o[2]*o[2]+o[0]*o[0]),l=Math.atan2(o[1],s),c=Math.atan2(o[0],-o[2]);this.mat.rotateY(c).rotateX(-l)}this.mat.rotateX(-this.rx.v).rotateY(-this.ry.v).rotateZ(this.rz.v),this.mat.rotateX(-this.or.v[0]).rotateY(-this.or.v[1]).rotateZ(this.or.v[2]),this.mat.translate(this.globalData.compSize.w/2,this.globalData.compSize.h/2,0),this.mat.translate(0,0,this.pe.v);var u=!this._prevMat.equals(this.mat);if((u||this.pe._mdf)&&this.comp.threeDElements){var f,h,p;for(t=this.comp.threeDElements.length,e=0;e<t;e+=1)if("3d"===(f=this.comp.threeDElements[e]).type){if(u){var d=this.mat.toCSS();(p=f.container.style).transform=d,p.webkitTransform=d}this.pe._mdf&&((h=f.perspectiveElem.style).perspective=this.pe.v+"px",h.webkitPerspective=this.pe.v+"px")}this.mat.clone(this._prevMat)}}this._isFirstFrame=!1},HCameraElement.prototype.prepareFrame=function(e){this.prepareProperties(e,!0)},HCameraElement.prototype.destroy=function(){},HCameraElement.prototype.getBaseElement=function(){return null},extendPrototype([BaseElement,TransformElement,HBaseElement,HSolidElement,HierarchyElement,FrameElement,RenderableElement],HImageElement),HImageElement.prototype.createContent=function(){var e=this.globalData.getAssetsPath(this.assetData),t=new Image;this.data.hasMask?(this.imageElem=createNS("image"),this.imageElem.setAttribute("width",this.assetData.w+"px"),this.imageElem.setAttribute("height",this.assetData.h+"px"),this.imageElem.setAttributeNS("http://www.w3.org/1999/xlink","href",e),this.layerElement.appendChild(this.imageElem),this.baseElement.setAttribute("width",this.assetData.w),this.baseElement.setAttribute("height",this.assetData.h)):this.layerElement.appendChild(t),t.crossOrigin="anonymous",t.src=e,this.data.ln&&this.baseElement.setAttribute("id",this.data.ln)},extendPrototype([BaseRenderer],HybridRendererBase),HybridRendererBase.prototype.buildItem=SVGRenderer.prototype.buildItem,HybridRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;)this.pendingElements.pop().checkParenting()},HybridRendererBase.prototype.appendElementInPos=function(e,t){var n=e.getBaseElement();if(n){var r=this.layers[t];if(r.ddd&&this.supports3d)this.addTo3dContainer(n,t);else if(this.threeDElements)this.addTo3dContainer(n,t);else{for(var a,i,o=0;o<t;)this.elements[o]&&!0!==this.elements[o]&&this.elements[o].getBaseElement&&(i=this.elements[o],a=(this.layers[o].ddd?this.getThreeDContainerByPos(o):i.getBaseElement())||a),o+=1;a?r.ddd&&this.supports3d||this.layerElement.insertBefore(n,a):r.ddd&&this.supports3d||this.layerElement.appendChild(n)}}},HybridRendererBase.prototype.createShape=function(e){return this.supports3d?new HShapeElement(e,this.globalData,this):new SVGShapeElement(e,this.globalData,this)},HybridRendererBase.prototype.createText=function(e){return this.supports3d?new HTextElement(e,this.globalData,this):new SVGTextLottieElement(e,this.globalData,this)},HybridRendererBase.prototype.createCamera=function(e){return this.camera=new HCameraElement(e,this.globalData,this),this.camera},HybridRendererBase.prototype.createImage=function(e){return this.supports3d?new HImageElement(e,this.globalData,this):new IImageElement(e,this.globalData,this)},HybridRendererBase.prototype.createSolid=function(e){return this.supports3d?new HSolidElement(e,this.globalData,this):new ISolidElement(e,this.globalData,this)},HybridRendererBase.prototype.createNull=SVGRenderer.prototype.createNull,HybridRendererBase.prototype.getThreeDContainerByPos=function(e){for(var t=0,n=this.threeDElements.length;t<n;){if(this.threeDElements[t].startPos<=e&&this.threeDElements[t].endPos>=e)return this.threeDElements[t].perspectiveElem;t+=1}return null},HybridRendererBase.prototype.createThreeDContainer=function(e,t){var n,r,a=createTag("div");styleDiv(a);var i=createTag("div");if(styleDiv(i),"3d"===t){(n=a.style).width=this.globalData.compSize.w+"px",n.height=this.globalData.compSize.h+"px";var o="50% 50%";n.webkitTransformOrigin=o,n.mozTransformOrigin=o,n.transformOrigin=o;var s="matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)";(r=i.style).transform=s,r.webkitTransform=s}a.appendChild(i);var l={container:i,perspectiveElem:a,startPos:e,endPos:e,type:t};return this.threeDElements.push(l),l},HybridRendererBase.prototype.build3dContainers=function(){var e,t,n=this.layers.length,r="";for(e=0;e<n;e+=1)this.layers[e].ddd&&3!==this.layers[e].ty?("3d"!==r&&(r="3d",t=this.createThreeDContainer(e,"3d")),t.endPos=Math.max(t.endPos,e)):("2d"!==r&&(r="2d",t=this.createThreeDContainer(e,"2d")),t.endPos=Math.max(t.endPos,e));for(e=(n=this.threeDElements.length)-1;e>=0;e-=1)this.resizerElem.appendChild(this.threeDElements[e].perspectiveElem)},HybridRendererBase.prototype.addTo3dContainer=function(e,t){for(var n=0,r=this.threeDElements.length;n<r;){if(t<=this.threeDElements[n].endPos){for(var a,i=this.threeDElements[n].startPos;i<t;)this.elements[i]&&this.elements[i].getBaseElement&&(a=this.elements[i].getBaseElement()),i+=1;a?this.threeDElements[n].container.insertBefore(e,a):this.threeDElements[n].container.appendChild(e);break}n+=1}},HybridRendererBase.prototype.configAnimation=function(e){var t=createTag("div"),n=this.animationItem.wrapper,r=t.style;r.width=e.w+"px",r.height=e.h+"px",this.resizerElem=t,styleDiv(t),r.transformStyle="flat",r.mozTransformStyle="flat",r.webkitTransformStyle="flat",this.renderConfig.className&&t.setAttribute("class",this.renderConfig.className),n.appendChild(t),r.overflow="hidden";var a=createNS("svg");a.setAttribute("width","1"),a.setAttribute("height","1"),styleDiv(a),this.resizerElem.appendChild(a);var i=createNS("defs");a.appendChild(i),this.data=e,this.setupGlobalData(e,a),this.globalData.defs=i,this.layers=e.layers,this.layerElement=this.resizerElem,this.build3dContainers(),this.updateContainerSize()},HybridRendererBase.prototype.destroy=function(){var e;this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),this.animationItem.container=null,this.globalData.defs=null;var t=this.layers?this.layers.length:0;for(e=0;e<t;e+=1)this.elements[e]&&this.elements[e].destroy&&this.elements[e].destroy();this.elements.length=0,this.destroyed=!0,this.animationItem=null},HybridRendererBase.prototype.updateContainerSize=function(){var e,t,n,r,a=this.animationItem.wrapper.offsetWidth,i=this.animationItem.wrapper.offsetHeight,o=a/i;this.globalData.compSize.w/this.globalData.compSize.h>o?(e=a/this.globalData.compSize.w,t=a/this.globalData.compSize.w,n=0,r=(i-this.globalData.compSize.h*(a/this.globalData.compSize.w))/2):(e=i/this.globalData.compSize.h,t=i/this.globalData.compSize.h,n=(a-this.globalData.compSize.w*(i/this.globalData.compSize.h))/2,r=0);var s=this.resizerElem.style;s.webkitTransform="matrix3d("+e+",0,0,0,0,"+t+",0,0,0,0,1,0,"+n+","+r+",0,1)",s.transform=s.webkitTransform},HybridRendererBase.prototype.renderFrame=SVGRenderer.prototype.renderFrame,HybridRendererBase.prototype.hide=function(){this.resizerElem.style.display="none"},HybridRendererBase.prototype.show=function(){this.resizerElem.style.display="block"},HybridRendererBase.prototype.initItems=function(){if(this.buildAllItems(),this.camera)this.camera.setup();else{var e,t=this.globalData.compSize.w,n=this.globalData.compSize.h,r=this.threeDElements.length;for(e=0;e<r;e+=1){var a=this.threeDElements[e].perspectiveElem.style;a.webkitPerspective=Math.sqrt(Math.pow(t,2)+Math.pow(n,2))+"px",a.perspective=a.webkitPerspective}}},HybridRendererBase.prototype.searchExtraCompositions=function(e){var t,n=e.length,r=createTag("div");for(t=0;t<n;t+=1)if(e[t].xt){var a=this.createComp(e[t],r,this.globalData.comp,null);a.initExpressions(),this.globalData.projectInterface.registerComposition(a)}},extendPrototype([HybridRendererBase,ICompElement,HBaseElement],HCompElement),HCompElement.prototype._createBaseContainerElements=HCompElement.prototype.createContainerElements,HCompElement.prototype.createContainerElements=function(){this._createBaseContainerElements(),this.data.hasMask?(this.svgElement.setAttribute("width",this.data.w),this.svgElement.setAttribute("height",this.data.h),this.transformedElement=this.baseElement):this.transformedElement=this.layerElement},HCompElement.prototype.addTo3dContainer=function(e,t){for(var n,r=0;r<t;)this.elements[r]&&this.elements[r].getBaseElement&&(n=this.elements[r].getBaseElement()),r+=1;n?this.layerElement.insertBefore(e,n):this.layerElement.appendChild(e)},HCompElement.prototype.createComp=function(e){return this.supports3d?new HCompElement(e,this.globalData,this):new SVGCompElement(e,this.globalData,this)},extendPrototype([HybridRendererBase],HybridRenderer),HybridRenderer.prototype.createComp=function(e){return this.supports3d?new HCompElement(e,this.globalData,this):new SVGCompElement(e,this.globalData,this)};var CompExpressionInterface=function(e){function t(t){for(var n=0,r=e.layers.length;n<r;){if(e.layers[n].nm===t||e.layers[n].ind===t)return e.elements[n].layerInterface;n+=1}return null}return Object.defineProperty(t,"_name",{value:e.data.nm}),t.layer=t,t.pixelAspect=1,t.height=e.data.h||e.globalData.compSize.h,t.width=e.data.w||e.globalData.compSize.w,t.pixelAspect=1,t.frameDuration=1/e.globalData.frameRate,t.displayStartTime=0,t.numLayers=e.layers.length,t};function _typeof$2(e){return _typeof$2="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},_typeof$2(e)}function seedRandom(e,t){var n=this,r=256,a="random",i=t.pow(r,6),o=t.pow(2,52),s=2*o,l=255;function c(e){var t,n=e.length,a=this,i=0,o=a.i=a.j=0,s=a.S=[];for(n||(e=[n++]);i<r;)s[i]=i++;for(i=0;i<r;i++)s[i]=s[o=l&o+e[i%n]+(t=s[i])],s[o]=t;a.g=function(e){for(var t,n=0,i=a.i,o=a.j,s=a.S;e--;)t=s[i=l&i+1],n=n*r+s[l&(s[i]=s[o=l&o+t])+(s[o]=t)];return a.i=i,a.j=o,n}}function u(e,t){return t.i=e.i,t.j=e.j,t.S=e.S.slice(),t}function f(e,t){var n,r=[],a=_typeof$2(e);if(t&&"object"==a)for(n in e)try{r.push(f(e[n],t-1))}catch(e){}return r.length?r:"string"==a?e:e+"\0"}function h(e,t){for(var n,r=e+"",a=0;a<r.length;)t[l&a]=l&(n^=19*t[l&a])+r.charCodeAt(a++);return p(t)}function p(e){return String.fromCharCode.apply(0,e)}t["seed"+a]=function(l,d,m){var g=[],y=h(f((d=!0===d?{entropy:!0}:d||{}).entropy?[l,p(e)]:null===l?function(){try{var t=new Uint8Array(r);return(n.crypto||n.msCrypto).getRandomValues(t),p(t)}catch(t){var a=n.navigator,i=a&&a.plugins;return[+new Date,n,i,n.screen,p(e)]}}():l,3),g),v=new c(g),b=function(){for(var e=v.g(6),t=i,n=0;e<o;)e=(e+n)*r,t*=r,n=v.g(1);for(;e>=s;)e/=2,t/=2,n>>>=1;return(e+n)/t};return b.int32=function(){return 0|v.g(4)},b.quick=function(){return v.g(4)/4294967296},b.double=b,h(p(v.S),e),(d.pass||m||function(e,n,r,i){return i&&(i.S&&u(i,v),e.state=function(){return u(v,{})}),r?(t[a]=e,n):e})(b,y,"global"in d?d.global:this==t,d.state)},h(t.random(),e)}function initialize$2(e){seedRandom([],e)}var propTypes={SHAPE:"shape"};function _typeof$1(e){return _typeof$1="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},_typeof$1(e)}var ExpressionManager=function(){var ob={},Math=BMMath,window=null,document=null,XMLHttpRequest=null,fetch=null,frames=null,_lottieGlobal={};function resetFrame(){_lottieGlobal={}}function $bm_isInstanceOfArray(e){return e.constructor===Array||e.constructor===Float32Array}function isNumerable(e,t){return"number"===e||t instanceof Number||"boolean"===e||"string"===e}function $bm_neg(e){var t=_typeof$1(e);if("number"===t||e instanceof Number||"boolean"===t)return-e;if($bm_isInstanceOfArray(e)){var n,r=e.length,a=[];for(n=0;n<r;n+=1)a[n]=-e[n];return a}return e.propType?e.v:-e}initialize$2(BMMath);var easeInBez=BezierFactory.getBezierEasing(.333,0,.833,.833,"easeIn").get,easeOutBez=BezierFactory.getBezierEasing(.167,.167,.667,1,"easeOut").get,easeInOutBez=BezierFactory.getBezierEasing(.33,0,.667,1,"easeInOut").get;function sum(e,t){var n=_typeof$1(e),r=_typeof$1(t);if(isNumerable(n,e)&&isNumerable(r,t)||"string"===n||"string"===r)return e+t;if($bm_isInstanceOfArray(e)&&isNumerable(r,t))return(e=e.slice(0))[0]+=t,e;if(isNumerable(n,e)&&$bm_isInstanceOfArray(t))return(t=t.slice(0))[0]=e+t[0],t;if($bm_isInstanceOfArray(e)&&$bm_isInstanceOfArray(t)){for(var a=0,i=e.length,o=t.length,s=[];a<i||a<o;)("number"==typeof e[a]||e[a]instanceof Number)&&("number"==typeof t[a]||t[a]instanceof Number)?s[a]=e[a]+t[a]:s[a]=void 0===t[a]?e[a]:e[a]||t[a],a+=1;return s}return 0}var add=sum;function sub(e,t){var n=_typeof$1(e),r=_typeof$1(t);if(isNumerable(n,e)&&isNumerable(r,t))return"string"===n&&(e=parseInt(e,10)),"string"===r&&(t=parseInt(t,10)),e-t;if($bm_isInstanceOfArray(e)&&isNumerable(r,t))return(e=e.slice(0))[0]-=t,e;if(isNumerable(n,e)&&$bm_isInstanceOfArray(t))return(t=t.slice(0))[0]=e-t[0],t;if($bm_isInstanceOfArray(e)&&$bm_isInstanceOfArray(t)){for(var a=0,i=e.length,o=t.length,s=[];a<i||a<o;)("number"==typeof e[a]||e[a]instanceof Number)&&("number"==typeof t[a]||t[a]instanceof Number)?s[a]=e[a]-t[a]:s[a]=void 0===t[a]?e[a]:e[a]||t[a],a+=1;return s}return 0}function mul(e,t){var n,r,a,i=_typeof$1(e),o=_typeof$1(t);if(isNumerable(i,e)&&isNumerable(o,t))return e*t;if($bm_isInstanceOfArray(e)&&isNumerable(o,t)){for(a=e.length,n=createTypedArray("float32",a),r=0;r<a;r+=1)n[r]=e[r]*t;return n}if(isNumerable(i,e)&&$bm_isInstanceOfArray(t)){for(a=t.length,n=createTypedArray("float32",a),r=0;r<a;r+=1)n[r]=e*t[r];return n}return 0}function div(e,t){var n,r,a,i=_typeof$1(e),o=_typeof$1(t);if(isNumerable(i,e)&&isNumerable(o,t))return e/t;if($bm_isInstanceOfArray(e)&&isNumerable(o,t)){for(a=e.length,n=createTypedArray("float32",a),r=0;r<a;r+=1)n[r]=e[r]/t;return n}if(isNumerable(i,e)&&$bm_isInstanceOfArray(t)){for(a=t.length,n=createTypedArray("float32",a),r=0;r<a;r+=1)n[r]=e/t[r];return n}return 0}function mod(e,t){return"string"==typeof e&&(e=parseInt(e,10)),"string"==typeof t&&(t=parseInt(t,10)),e%t}var $bm_sum=sum,$bm_sub=sub,$bm_mul=mul,$bm_div=div,$bm_mod=mod;function clamp(e,t,n){if(t>n){var r=n;n=t,t=r}return Math.min(Math.max(e,t),n)}function radiansToDegrees(e){return e/degToRads}var radians_to_degrees=radiansToDegrees;function degreesToRadians(e){return e*degToRads}var degrees_to_radians=radiansToDegrees,helperLengthArray=[0,0,0,0,0,0];function length(e,t){if("number"==typeof e||e instanceof Number)return t=t||0,Math.abs(e-t);var n;t||(t=helperLengthArray);var r=Math.min(e.length,t.length),a=0;for(n=0;n<r;n+=1)a+=Math.pow(t[n]-e[n],2);return Math.sqrt(a)}function normalize(e){return div(e,length(e))}function rgbToHsl(e){var t,n,r=e[0],a=e[1],i=e[2],o=Math.max(r,a,i),s=Math.min(r,a,i),l=(o+s)/2;if(o===s)t=0,n=0;else{var c=o-s;switch(n=l>.5?c/(2-o-s):c/(o+s),o){case r:t=(a-i)/c+(a<i?6:0);break;case a:t=(i-r)/c+2;break;case i:t=(r-a)/c+4}t/=6}return[t,n,l,e[3]]}function hue2rgb(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function hslToRgb(e){var t,n,r,a=e[0],i=e[1],o=e[2];if(0===i)t=o,r=o,n=o;else{var s=o<.5?o*(1+i):o+i-o*i,l=2*o-s;t=hue2rgb(l,s,a+1/3),n=hue2rgb(l,s,a),r=hue2rgb(l,s,a-1/3)}return[t,n,r,e[3]]}function linear(e,t,n,r,a){if(void 0!==r&&void 0!==a||(r=t,a=n,t=0,n=1),n<t){var i=n;n=t,t=i}if(e<=t)return r;if(e>=n)return a;var o,s=n===t?0:(e-t)/(n-t);if(!r.length)return r+(a-r)*s;var l=r.length,c=createTypedArray("float32",l);for(o=0;o<l;o+=1)c[o]=r[o]+(a[o]-r[o])*s;return c}function random(e,t){if(void 0===t&&(void 0===e?(e=0,t=1):(t=e,e=void 0)),t.length){var n,r=t.length;e||(e=createTypedArray("float32",r));var a=createTypedArray("float32",r),i=BMMath.random();for(n=0;n<r;n+=1)a[n]=e[n]+i*(t[n]-e[n]);return a}return void 0===e&&(e=0),e+BMMath.random()*(t-e)}function createPath(e,t,n,r){var a,i=e.length,o=shapePool.newElement();o.setPathData(!!r,i);var s,l,c=[0,0];for(a=0;a<i;a+=1)s=t&&t[a]?t[a]:c,l=n&&n[a]?n[a]:c,o.setTripleAt(e[a][0],e[a][1],l[0]+e[a][0],l[1]+e[a][1],s[0]+e[a][0],s[1]+e[a][1],a,!0);return o}function initiateExpression(elem,data,property){function noOp(e){return e}if(!elem.globalData.renderConfig.runExpressions)return noOp;var val=data.x,needsVelocity=/velocity(?![\w\d])/.test(val),_needsRandom=-1!==val.indexOf("random"),elemType=elem.data.ty,transform,$bm_transform,content,effect,thisProperty=property;thisProperty._name=elem.data.nm,thisProperty.valueAtTime=thisProperty.getValueAtTime,Object.defineProperty(thisProperty,"value",{get:function(){return thisProperty.v}}),elem.comp.frameDuration=1/elem.comp.globalData.frameRate,elem.comp.displayStartTime=0;var inPoint=elem.data.ip/elem.comp.globalData.frameRate,outPoint=elem.data.op/elem.comp.globalData.frameRate,width=elem.data.sw?elem.data.sw:0,height=elem.data.sh?elem.data.sh:0,name=elem.data.nm,loopIn,loop_in,loopOut,loop_out,smooth,toWorld,fromWorld,fromComp,toComp,fromCompToSurface,position,rotation,anchorPoint,scale,thisLayer,thisComp,mask,valueAtTime,velocityAtTime,scoped_bm_rt,expression_function=eval("[function _expression_function(){"+val+";scoped_bm_rt=$bm_rt}]")[0],numKeys=property.kf?data.k.length:0,active=!this.data||!0!==this.data.hd,wiggle=function(e,t){var n,r,a=this.pv.length?this.pv.length:1,i=createTypedArray("float32",a),o=Math.floor(5*time);for(n=0,r=0;n<o;){for(r=0;r<a;r+=1)i[r]+=-t+2*t*BMMath.random();n+=1}var s=5*time,l=s-Math.floor(s),c=createTypedArray("float32",a);if(a>1){for(r=0;r<a;r+=1)c[r]=this.pv[r]+i[r]+(-t+2*t*BMMath.random())*l;return c}return this.pv+i[0]+(-t+2*t*BMMath.random())*l}.bind(this);function loopInDuration(e,t){return loopIn(e,t,!0)}function loopOutDuration(e,t){return loopOut(e,t,!0)}thisProperty.loopIn&&(loopIn=thisProperty.loopIn.bind(thisProperty),loop_in=loopIn),thisProperty.loopOut&&(loopOut=thisProperty.loopOut.bind(thisProperty),loop_out=loopOut),thisProperty.smooth&&(smooth=thisProperty.smooth.bind(thisProperty)),this.getValueAtTime&&(valueAtTime=this.getValueAtTime.bind(this)),this.getVelocityAtTime&&(velocityAtTime=this.getVelocityAtTime.bind(this));var comp=elem.comp.globalData.projectInterface.bind(elem.comp.globalData.projectInterface),time,velocity,value,text,textIndex,textTotal,selectorValue;function lookAt(e,t){var n=[t[0]-e[0],t[1]-e[1],t[2]-e[2]],r=Math.atan2(n[0],Math.sqrt(n[1]*n[1]+n[2]*n[2]))/degToRads;return[-Math.atan2(n[1],n[2])/degToRads,r,0]}function easeOut(e,t,n,r,a){return applyEase(easeOutBez,e,t,n,r,a)}function easeIn(e,t,n,r,a){return applyEase(easeInBez,e,t,n,r,a)}function ease(e,t,n,r,a){return applyEase(easeInOutBez,e,t,n,r,a)}function applyEase(e,t,n,r,a,i){void 0===a?(a=n,i=r):t=(t-n)/(r-n),t>1?t=1:t<0&&(t=0);var o=e(t);if($bm_isInstanceOfArray(a)){var s,l=a.length,c=createTypedArray("float32",l);for(s=0;s<l;s+=1)c[s]=(i[s]-a[s])*o+a[s];return c}return(i-a)*o+a}function nearestKey(e){var t,n,r,a=data.k.length;if(data.k.length&&"number"!=typeof data.k[0])if(n=-1,(e*=elem.comp.globalData.frameRate)<data.k[0].t)n=1,r=data.k[0].t;else{for(t=0;t<a-1;t+=1){if(e===data.k[t].t){n=t+1,r=data.k[t].t;break}if(e>data.k[t].t&&e<data.k[t+1].t){e-data.k[t].t>data.k[t+1].t-e?(n=t+2,r=data.k[t+1].t):(n=t+1,r=data.k[t].t);break}}-1===n&&(n=t+1,r=data.k[t].t)}else n=0,r=0;var i={};return i.index=n,i.time=r/elem.comp.globalData.frameRate,i}function key(e){var t,n,r;if(!data.k.length||"number"==typeof data.k[0])throw new Error("The property has no keyframe at index "+e);e-=1,t={time:data.k[e].t/elem.comp.globalData.frameRate,value:[]};var a=Object.prototype.hasOwnProperty.call(data.k[e],"s")?data.k[e].s:data.k[e-1].e;for(r=a.length,n=0;n<r;n+=1)t[n]=a[n],t.value[n]=a[n];return t}function framesToTime(e,t){return t||(t=elem.comp.globalData.frameRate),e/t}function timeToFrames(e,t){return e||0===e||(e=time),t||(t=elem.comp.globalData.frameRate),e*t}function seedRandom(e){BMMath.seedrandom(randSeed+e)}function sourceRectAtTime(){return elem.sourceRectAtTime()}function substring(e,t){return"string"==typeof value?void 0===t?value.substring(e):value.substring(e,t):""}function substr(e,t){return"string"==typeof value?void 0===t?value.substr(e):value.substr(e,t):""}function posterizeTime(e){time=0===e?0:Math.floor(time*e)/e,value=valueAtTime(time)}var index=elem.data.ind,hasParent=!(!elem.hierarchy||!elem.hierarchy.length),parent,randSeed=Math.floor(1e6*Math.random()),globalData=elem.globalData;function executeExpression(e){return value=e,this.frameExpressionId===elem.globalData.frameId&&"textSelector"!==this.propType?value:("textSelector"===this.propType&&(textIndex=this.textIndex,textTotal=this.textTotal,selectorValue=this.selectorValue),thisLayer||(text=elem.layerInterface.text,thisLayer=elem.layerInterface,thisComp=elem.comp.compInterface,toWorld=thisLayer.toWorld.bind(thisLayer),fromWorld=thisLayer.fromWorld.bind(thisLayer),fromComp=thisLayer.fromComp.bind(thisLayer),toComp=thisLayer.toComp.bind(thisLayer),mask=thisLayer.mask?thisLayer.mask.bind(thisLayer):null,fromCompToSurface=fromComp),transform||(transform=elem.layerInterface("ADBE Transform Group"),$bm_transform=transform,transform&&(anchorPoint=transform.anchorPoint)),4!==elemType||content||(content=thisLayer("ADBE Root Vectors Group")),effect||(effect=thisLayer(4)),(hasParent=!(!elem.hierarchy||!elem.hierarchy.length))&&!parent&&(parent=elem.hierarchy[0].layerInterface),time=this.comp.renderedFrame/this.comp.globalData.frameRate,_needsRandom&&seedRandom(randSeed+time),needsVelocity&&(velocity=velocityAtTime(time)),expression_function(),this.frameExpressionId=elem.globalData.frameId,scoped_bm_rt=scoped_bm_rt.propType===propTypes.SHAPE?scoped_bm_rt.v:scoped_bm_rt)}return executeExpression.__preventDeadCodeRemoval=[$bm_transform,anchorPoint,time,velocity,inPoint,outPoint,width,height,name,loop_in,loop_out,smooth,toComp,fromCompToSurface,toWorld,fromWorld,mask,position,rotation,scale,thisComp,numKeys,active,wiggle,loopInDuration,loopOutDuration,comp,lookAt,easeOut,easeIn,ease,nearestKey,key,text,textIndex,textTotal,selectorValue,framesToTime,timeToFrames,sourceRectAtTime,substring,substr,posterizeTime,index,globalData],executeExpression}return ob.initiateExpression=initiateExpression,ob.__preventDeadCodeRemoval=[window,document,XMLHttpRequest,fetch,frames,$bm_neg,add,$bm_sum,$bm_sub,$bm_mul,$bm_div,$bm_mod,clamp,radians_to_degrees,degreesToRadians,degrees_to_radians,normalize,rgbToHsl,hslToRgb,linear,random,createPath,_lottieGlobal],ob.resetFrame=resetFrame,ob}(),Expressions=function(){var e={initExpressions:function(e){var t=0,n=[];e.renderer.compInterface=CompExpressionInterface(e.renderer),e.renderer.globalData.projectInterface.registerComposition(e.renderer),e.renderer.globalData.pushExpression=function(){t+=1},e.renderer.globalData.popExpression=function(){0==(t-=1)&&function(){var e,t=n.length;for(e=0;e<t;e+=1)n[e].release();n.length=0}()},e.renderer.globalData.registerExpressionProperty=function(e){-1===n.indexOf(e)&&n.push(e)}}};return e.resetFrame=ExpressionManager.resetFrame,e}(),MaskManagerInterface=function(){function e(e,t){this._mask=e,this._data=t}return Object.defineProperty(e.prototype,"maskPath",{get:function(){return this._mask.prop.k&&this._mask.prop.getValue(),this._mask.prop}}),Object.defineProperty(e.prototype,"maskOpacity",{get:function(){return this._mask.op.k&&this._mask.op.getValue(),100*this._mask.op.v}}),function(t){var n,r=createSizedArray(t.viewData.length),a=t.viewData.length;for(n=0;n<a;n+=1)r[n]=new e(t.viewData[n],t.masksProperties[n]);return function(e){for(n=0;n<a;){if(t.masksProperties[n].nm===e)return r[n];n+=1}return null}}}(),ExpressionPropertyInterface=function(){var e={pv:0,v:0,mult:1},t={pv:[0,0,0],v:[0,0,0],mult:1};function n(e,t,n){Object.defineProperty(e,"velocity",{get:function(){return t.getVelocityAtTime(t.comp.currentFrame)}}),e.numKeys=t.keyframes?t.keyframes.length:0,e.key=function(r){if(!e.numKeys)return 0;var a;a="s"in t.keyframes[r-1]?t.keyframes[r-1].s:"e"in t.keyframes[r-2]?t.keyframes[r-2].e:t.keyframes[r-2].s;var i="unidimensional"===n?new Number(a):Object.assign({},a);return i.time=t.keyframes[r-1].t/t.elem.comp.globalData.frameRate,i.value="unidimensional"===n?a[0]:a,i},e.valueAtTime=t.getValueAtTime,e.speedAtTime=t.getSpeedAtTime,e.velocityAtTime=t.getVelocityAtTime,e.propertyGroup=t.propertyGroup}function r(){return e}return function(a){return a?"unidimensional"===a.propType?function(t){t&&"pv"in t||(t=e);var r=1/t.mult,a=t.pv*r,i=new Number(a);return i.value=a,n(i,t,"unidimensional"),function(){return t.k&&t.getValue(),a=t.v*r,i.value!==a&&((i=new Number(a)).value=a,i[0]=a,n(i,t,"unidimensional")),i}}(a):function(e){e&&"pv"in e||(e=t);var r=1/e.mult,a=e.data&&e.data.l||e.pv.length,i=createTypedArray("float32",a),o=createTypedArray("float32",a);return i.value=o,n(i,e,"multidimensional"),function(){e.k&&e.getValue();for(var t=0;t<a;t+=1)o[t]=e.v[t]*r,i[t]=o[t];return i}}(a):r}}(),TransformExpressionInterface=function(e){function t(e){switch(e){case"scale":case"Scale":case"ADBE Scale":case 6:return t.scale;case"rotation":case"Rotation":case"ADBE Rotation":case"ADBE Rotate Z":case 10:return t.rotation;case"ADBE Rotate X":return t.xRotation;case"ADBE Rotate Y":return t.yRotation;case"position":case"Position":case"ADBE Position":case 2:return t.position;case"ADBE Position_0":return t.xPosition;case"ADBE Position_1":return t.yPosition;case"ADBE Position_2":return t.zPosition;case"anchorPoint":case"AnchorPoint":case"Anchor Point":case"ADBE AnchorPoint":case 1:return t.anchorPoint;case"opacity":case"Opacity":case 11:return t.opacity;default:return null}}var n,r,a,i;return Object.defineProperty(t,"rotation",{get:ExpressionPropertyInterface(e.r||e.rz)}),Object.defineProperty(t,"zRotation",{get:ExpressionPropertyInterface(e.rz||e.r)}),Object.defineProperty(t,"xRotation",{get:ExpressionPropertyInterface(e.rx)}),Object.defineProperty(t,"yRotation",{get:ExpressionPropertyInterface(e.ry)}),Object.defineProperty(t,"scale",{get:ExpressionPropertyInterface(e.s)}),e.p?i=ExpressionPropertyInterface(e.p):(n=ExpressionPropertyInterface(e.px),r=ExpressionPropertyInterface(e.py),e.pz&&(a=ExpressionPropertyInterface(e.pz))),Object.defineProperty(t,"position",{get:function(){return e.p?i():[n(),r(),a?a():0]}}),Object.defineProperty(t,"xPosition",{get:ExpressionPropertyInterface(e.px)}),Object.defineProperty(t,"yPosition",{get:ExpressionPropertyInterface(e.py)}),Object.defineProperty(t,"zPosition",{get:ExpressionPropertyInterface(e.pz)}),Object.defineProperty(t,"anchorPoint",{get:ExpressionPropertyInterface(e.a)}),Object.defineProperty(t,"opacity",{get:ExpressionPropertyInterface(e.o)}),Object.defineProperty(t,"skew",{get:ExpressionPropertyInterface(e.sk)}),Object.defineProperty(t,"skewAxis",{get:ExpressionPropertyInterface(e.sa)}),Object.defineProperty(t,"orientation",{get:ExpressionPropertyInterface(e.or)}),t},LayerExpressionInterface=function(){function e(e){var t=new Matrix;return void 0!==e?this._elem.finalTransform.mProp.getValueAtTime(e).clone(t):this._elem.finalTransform.mProp.applyToMatrix(t),t}function t(e,t){var n=this.getMatrix(t);return n.props[12]=0,n.props[13]=0,n.props[14]=0,this.applyPoint(n,e)}function n(e,t){var n=this.getMatrix(t);return this.applyPoint(n,e)}function r(e,t){var n=this.getMatrix(t);return n.props[12]=0,n.props[13]=0,n.props[14]=0,this.invertPoint(n,e)}function a(e,t){var n=this.getMatrix(t);return this.invertPoint(n,e)}function i(e,t){if(this._elem.hierarchy&&this._elem.hierarchy.length){var n,r=this._elem.hierarchy.length;for(n=0;n<r;n+=1)this._elem.hierarchy[n].finalTransform.mProp.applyToMatrix(e)}return e.applyToPointArray(t[0],t[1],t[2]||0)}function o(e,t){if(this._elem.hierarchy&&this._elem.hierarchy.length){var n,r=this._elem.hierarchy.length;for(n=0;n<r;n+=1)this._elem.hierarchy[n].finalTransform.mProp.applyToMatrix(e)}return e.inversePoint(t)}function s(e){var t=new Matrix;if(t.reset(),this._elem.finalTransform.mProp.applyToMatrix(t),this._elem.hierarchy&&this._elem.hierarchy.length){var n,r=this._elem.hierarchy.length;for(n=0;n<r;n+=1)this._elem.hierarchy[n].finalTransform.mProp.applyToMatrix(t);return t.inversePoint(e)}return t.inversePoint(e)}function l(){return[1,1,1,1]}return function(c){var u;function f(e){switch(e){case"ADBE Root Vectors Group":case"Contents":case 2:return f.shapeInterface;case 1:case 6:case"Transform":case"transform":case"ADBE Transform Group":return u;case 4:case"ADBE Effect Parade":case"effects":case"Effects":return f.effect;case"ADBE Text Properties":return f.textInterface;default:return null}}f.getMatrix=e,f.invertPoint=o,f.applyPoint=i,f.toWorld=n,f.toWorldVec=t,f.fromWorld=a,f.fromWorldVec=r,f.toComp=n,f.fromComp=s,f.sampleImage=l,f.sourceRectAtTime=c.sourceRectAtTime.bind(c),f._elem=c;var h=getDescriptor(u=TransformExpressionInterface(c.finalTransform.mProp),"anchorPoint");return Object.defineProperties(f,{hasParent:{get:function(){return c.hierarchy.length}},parent:{get:function(){return c.hierarchy[0].layerInterface}},rotation:getDescriptor(u,"rotation"),scale:getDescriptor(u,"scale"),position:getDescriptor(u,"position"),opacity:getDescriptor(u,"opacity"),anchorPoint:h,anchor_point:h,transform:{get:function(){return u}},active:{get:function(){return c.isInRange}}}),f.startTime=c.data.st,f.index=c.data.ind,f.source=c.data.refId,f.height=0===c.data.ty?c.data.h:100,f.width=0===c.data.ty?c.data.w:100,f.inPoint=c.data.ip/c.comp.globalData.frameRate,f.outPoint=c.data.op/c.comp.globalData.frameRate,f._name=c.data.nm,f.registerMaskInterface=function(e){f.mask=new MaskManagerInterface(e,c)},f.registerEffectsInterface=function(e){f.effect=e},f}}(),propertyGroupFactory=function(e,t){return function(n){return(n=void 0===n?1:n)<=0?e:t(n-1)}},PropertyInterface=function(e,t){var n={_name:e};return function(e){return(e=void 0===e?1:e)<=0?n:t(e-1)}},EffectsExpressionInterface=function(){function e(n,r,a,i){function o(e){for(var t=n.ef,r=0,a=t.length;r<a;){if(e===t[r].nm||e===t[r].mn||e===t[r].ix)return 5===t[r].ty?c[r]:c[r]();r+=1}throw new Error}var s,l=propertyGroupFactory(o,a),c=[],u=n.ef.length;for(s=0;s<u;s+=1)5===n.ef[s].ty?c.push(e(n.ef[s],r.effectElements[s],r.effectElements[s].propertyGroup,i)):c.push(t(r.effectElements[s],n.ef[s].ty,i,l));return"ADBE Color Control"===n.mn&&Object.defineProperty(o,"color",{get:function(){return c[0]()}}),Object.defineProperties(o,{numProperties:{get:function(){return n.np}},_name:{value:n.nm},propertyGroup:{value:l}}),o.enabled=0!==n.en,o.active=o.enabled,o}function t(e,t,n,r){var a=ExpressionPropertyInterface(e.p);return e.p.setGroupProperty&&e.p.setGroupProperty(PropertyInterface("",r)),function(){return 10===t?n.comp.compInterface(e.p.v):a()}}return{createEffectsInterface:function(t,n){if(t.effectsManager){var r,a=[],i=t.data.ef,o=t.effectsManager.effectElements.length;for(r=0;r<o;r+=1)a.push(e(i[r],t.effectsManager.effectElements[r],n,t));var s=t.data.ef||[],l=function(e){for(r=0,o=s.length;r<o;){if(e===s[r].nm||e===s[r].mn||e===s[r].ix)return a[r];r+=1}return null};return Object.defineProperty(l,"numProperties",{get:function(){return s.length}}),l}return null}}}(),ShapePathInterface=function(e,t,n){var r=t.sh;function a(e){return"Shape"===e||"shape"===e||"Path"===e||"path"===e||"ADBE Vector Shape"===e||2===e?a.path:null}var i=propertyGroupFactory(a,n);return r.setGroupProperty(PropertyInterface("Path",i)),Object.defineProperties(a,{path:{get:function(){return r.k&&r.getValue(),r}},shape:{get:function(){return r.k&&r.getValue(),r}},_name:{value:e.nm},ix:{value:e.ix},propertyIndex:{value:e.ix},mn:{value:e.mn},propertyGroup:{value:n}}),a},ShapeExpressionInterface=function(){function e(e,s,p){var d,m=[],g=e?e.length:0;for(d=0;d<g;d+=1)"gr"===e[d].ty?m.push(t(e[d],s[d],p)):"fl"===e[d].ty?m.push(n(e[d],s[d],p)):"st"===e[d].ty?m.push(i(e[d],s[d],p)):"tm"===e[d].ty?m.push(o(e[d],s[d],p)):"tr"===e[d].ty||("el"===e[d].ty?m.push(l(e[d],s[d],p)):"sr"===e[d].ty?m.push(c(e[d],s[d],p)):"sh"===e[d].ty?m.push(ShapePathInterface(e[d],s[d],p)):"rc"===e[d].ty?m.push(u(e[d],s[d],p)):"rd"===e[d].ty?m.push(f(e[d],s[d],p)):"rp"===e[d].ty?m.push(h(e[d],s[d],p)):"gf"===e[d].ty?m.push(r(e[d],s[d],p)):m.push(a(e[d],s[d])));return m}function t(t,n,r){var a=function(e){switch(e){case"ADBE Vectors Group":case"Contents":case 2:return a.content;default:return a.transform}};a.propertyGroup=propertyGroupFactory(a,r);var i=function(t,n,r){var a,i=function(e){for(var t=0,n=a.length;t<n;){if(a[t]._name===e||a[t].mn===e||a[t].propertyIndex===e||a[t].ix===e||a[t].ind===e)return a[t];t+=1}return"number"==typeof e?a[e-1]:null};i.propertyGroup=propertyGroupFactory(i,r),a=e(t.it,n.it,i.propertyGroup),i.numProperties=a.length;var o=s(t.it[t.it.length-1],n.it[n.it.length-1],i.propertyGroup);return i.transform=o,i.propertyIndex=t.cix,i._name=t.nm,i}(t,n,a.propertyGroup),o=s(t.it[t.it.length-1],n.it[n.it.length-1],a.propertyGroup);return a.content=i,a.transform=o,Object.defineProperty(a,"_name",{get:function(){return t.nm}}),a.numProperties=t.np,a.propertyIndex=t.ix,a.nm=t.nm,a.mn=t.mn,a}function n(e,t,n){function r(e){return"Color"===e||"color"===e?r.color:"Opacity"===e||"opacity"===e?r.opacity:null}return Object.defineProperties(r,{color:{get:ExpressionPropertyInterface(t.c)},opacity:{get:ExpressionPropertyInterface(t.o)},_name:{value:e.nm},mn:{value:e.mn}}),t.c.setGroupProperty(PropertyInterface("Color",n)),t.o.setGroupProperty(PropertyInterface("Opacity",n)),r}function r(e,t,n){function r(e){return"Start Point"===e||"start point"===e?r.startPoint:"End Point"===e||"end point"===e?r.endPoint:"Opacity"===e||"opacity"===e?r.opacity:null}return Object.defineProperties(r,{startPoint:{get:ExpressionPropertyInterface(t.s)},endPoint:{get:ExpressionPropertyInterface(t.e)},opacity:{get:ExpressionPropertyInterface(t.o)},type:{get:function(){return"a"}},_name:{value:e.nm},mn:{value:e.mn}}),t.s.setGroupProperty(PropertyInterface("Start Point",n)),t.e.setGroupProperty(PropertyInterface("End Point",n)),t.o.setGroupProperty(PropertyInterface("Opacity",n)),r}function a(){return function(){return null}}function i(e,t,n){var r,a=propertyGroupFactory(c,n),i=propertyGroupFactory(l,a);function o(n){Object.defineProperty(l,e.d[n].nm,{get:ExpressionPropertyInterface(t.d.dataProps[n].p)})}var s=e.d?e.d.length:0,l={};for(r=0;r<s;r+=1)o(r),t.d.dataProps[r].p.setGroupProperty(i);function c(e){return"Color"===e||"color"===e?c.color:"Opacity"===e||"opacity"===e?c.opacity:"Stroke Width"===e||"stroke width"===e?c.strokeWidth:null}return Object.defineProperties(c,{color:{get:ExpressionPropertyInterface(t.c)},opacity:{get:ExpressionPropertyInterface(t.o)},strokeWidth:{get:ExpressionPropertyInterface(t.w)},dash:{get:function(){return l}},_name:{value:e.nm},mn:{value:e.mn}}),t.c.setGroupProperty(PropertyInterface("Color",a)),t.o.setGroupProperty(PropertyInterface("Opacity",a)),t.w.setGroupProperty(PropertyInterface("Stroke Width",a)),c}function o(e,t,n){function r(t){return t===e.e.ix||"End"===t||"end"===t?r.end:t===e.s.ix?r.start:t===e.o.ix?r.offset:null}var a=propertyGroupFactory(r,n);return r.propertyIndex=e.ix,t.s.setGroupProperty(PropertyInterface("Start",a)),t.e.setGroupProperty(PropertyInterface("End",a)),t.o.setGroupProperty(PropertyInterface("Offset",a)),r.propertyIndex=e.ix,r.propertyGroup=n,Object.defineProperties(r,{start:{get:ExpressionPropertyInterface(t.s)},end:{get:ExpressionPropertyInterface(t.e)},offset:{get:ExpressionPropertyInterface(t.o)},_name:{value:e.nm}}),r.mn=e.mn,r}function s(e,t,n){function r(t){return e.a.ix===t||"Anchor Point"===t?r.anchorPoint:e.o.ix===t||"Opacity"===t?r.opacity:e.p.ix===t||"Position"===t?r.position:e.r.ix===t||"Rotation"===t||"ADBE Vector Rotation"===t?r.rotation:e.s.ix===t||"Scale"===t?r.scale:e.sk&&e.sk.ix===t||"Skew"===t?r.skew:e.sa&&e.sa.ix===t||"Skew Axis"===t?r.skewAxis:null}var a=propertyGroupFactory(r,n);return t.transform.mProps.o.setGroupProperty(PropertyInterface("Opacity",a)),t.transform.mProps.p.setGroupProperty(PropertyInterface("Position",a)),t.transform.mProps.a.setGroupProperty(PropertyInterface("Anchor Point",a)),t.transform.mProps.s.setGroupProperty(PropertyInterface("Scale",a)),t.transform.mProps.r.setGroupProperty(PropertyInterface("Rotation",a)),t.transform.mProps.sk&&(t.transform.mProps.sk.setGroupProperty(PropertyInterface("Skew",a)),t.transform.mProps.sa.setGroupProperty(PropertyInterface("Skew Angle",a))),t.transform.op.setGroupProperty(PropertyInterface("Opacity",a)),Object.defineProperties(r,{opacity:{get:ExpressionPropertyInterface(t.transform.mProps.o)},position:{get:ExpressionPropertyInterface(t.transform.mProps.p)},anchorPoint:{get:ExpressionPropertyInterface(t.transform.mProps.a)},scale:{get:ExpressionPropertyInterface(t.transform.mProps.s)},rotation:{get:ExpressionPropertyInterface(t.transform.mProps.r)},skew:{get:ExpressionPropertyInterface(t.transform.mProps.sk)},skewAxis:{get:ExpressionPropertyInterface(t.transform.mProps.sa)},_name:{value:e.nm}}),r.ty="tr",r.mn=e.mn,r.propertyGroup=n,r}function l(e,t,n){function r(t){return e.p.ix===t?r.position:e.s.ix===t?r.size:null}var a=propertyGroupFactory(r,n);r.propertyIndex=e.ix;var i="tm"===t.sh.ty?t.sh.prop:t.sh;return i.s.setGroupProperty(PropertyInterface("Size",a)),i.p.setGroupProperty(PropertyInterface("Position",a)),Object.defineProperties(r,{size:{get:ExpressionPropertyInterface(i.s)},position:{get:ExpressionPropertyInterface(i.p)},_name:{value:e.nm}}),r.mn=e.mn,r}function c(e,t,n){function r(t){return e.p.ix===t?r.position:e.r.ix===t?r.rotation:e.pt.ix===t?r.points:e.or.ix===t||"ADBE Vector Star Outer Radius"===t?r.outerRadius:e.os.ix===t?r.outerRoundness:!e.ir||e.ir.ix!==t&&"ADBE Vector Star Inner Radius"!==t?e.is&&e.is.ix===t?r.innerRoundness:null:r.innerRadius}var a=propertyGroupFactory(r,n),i="tm"===t.sh.ty?t.sh.prop:t.sh;return r.propertyIndex=e.ix,i.or.setGroupProperty(PropertyInterface("Outer Radius",a)),i.os.setGroupProperty(PropertyInterface("Outer Roundness",a)),i.pt.setGroupProperty(PropertyInterface("Points",a)),i.p.setGroupProperty(PropertyInterface("Position",a)),i.r.setGroupProperty(PropertyInterface("Rotation",a)),e.ir&&(i.ir.setGroupProperty(PropertyInterface("Inner Radius",a)),i.is.setGroupProperty(PropertyInterface("Inner Roundness",a))),Object.defineProperties(r,{position:{get:ExpressionPropertyInterface(i.p)},rotation:{get:ExpressionPropertyInterface(i.r)},points:{get:ExpressionPropertyInterface(i.pt)},outerRadius:{get:ExpressionPropertyInterface(i.or)},outerRoundness:{get:ExpressionPropertyInterface(i.os)},innerRadius:{get:ExpressionPropertyInterface(i.ir)},innerRoundness:{get:ExpressionPropertyInterface(i.is)},_name:{value:e.nm}}),r.mn=e.mn,r}function u(e,t,n){function r(t){return e.p.ix===t?r.position:e.r.ix===t?r.roundness:e.s.ix===t||"Size"===t||"ADBE Vector Rect Size"===t?r.size:null}var a=propertyGroupFactory(r,n),i="tm"===t.sh.ty?t.sh.prop:t.sh;return r.propertyIndex=e.ix,i.p.setGroupProperty(PropertyInterface("Position",a)),i.s.setGroupProperty(PropertyInterface("Size",a)),i.r.setGroupProperty(PropertyInterface("Rotation",a)),Object.defineProperties(r,{position:{get:ExpressionPropertyInterface(i.p)},roundness:{get:ExpressionPropertyInterface(i.r)},size:{get:ExpressionPropertyInterface(i.s)},_name:{value:e.nm}}),r.mn=e.mn,r}function f(e,t,n){function r(t){return e.r.ix===t||"Round Corners 1"===t?r.radius:null}var a=propertyGroupFactory(r,n),i=t;return r.propertyIndex=e.ix,i.rd.setGroupProperty(PropertyInterface("Radius",a)),Object.defineProperties(r,{radius:{get:ExpressionPropertyInterface(i.rd)},_name:{value:e.nm}}),r.mn=e.mn,r}function h(e,t,n){function r(t){return e.c.ix===t||"Copies"===t?r.copies:e.o.ix===t||"Offset"===t?r.offset:null}var a=propertyGroupFactory(r,n),i=t;return r.propertyIndex=e.ix,i.c.setGroupProperty(PropertyInterface("Copies",a)),i.o.setGroupProperty(PropertyInterface("Offset",a)),Object.defineProperties(r,{copies:{get:ExpressionPropertyInterface(i.c)},offset:{get:ExpressionPropertyInterface(i.o)},_name:{value:e.nm}}),r.mn=e.mn,r}return function(t,n,r){var a;function i(e){if("number"==typeof e)return 0===(e=void 0===e?1:e)?r:a[e-1];for(var t=0,n=a.length;t<n;){if(a[t]._name===e)return a[t];t+=1}return null}return i.propertyGroup=propertyGroupFactory(i,function(){return r}),a=e(t,n,i.propertyGroup),i.numProperties=a.length,i._name="Contents",i}}(),TextExpressionInterface=function(e){var t;function n(e){return"ADBE Text Document"===e?n.sourceText:null}return Object.defineProperty(n,"sourceText",{get:function(){e.textProperty.getValue();var n=e.textProperty.currentData.t;return t&&n===t.value||((t=new String(n)).value=n||new String(n),Object.defineProperty(t,"style",{get:function(){return{fillColor:e.textProperty.currentData.fc}}})),t}}),n};function _typeof(e){return _typeof="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},_typeof(e)}var FootageInterface=(dataInterfaceFactory=function(e){function t(e){return"Outline"===e?t.outlineInterface():null}return t._name="Outline",t.outlineInterface=function(e){var t="",n=e.getFootageData();function r(e){if(n[e])return t=e,"object"===_typeof(n=n[e])?r:n;var a=e.indexOf(t);if(-1!==a){var i=parseInt(e.substr(a+t.length),10);return"object"===_typeof(n=n[i])?r:n}return""}return function(){return t="",n=e.getFootageData(),r}}(e),t},function(e){function t(e){return"Data"===e?t.dataInterface:null}return t._name="Data",t.dataInterface=dataInterfaceFactory(e),t}),dataInterfaceFactory,interfaces={layer:LayerExpressionInterface,effects:EffectsExpressionInterface,comp:CompExpressionInterface,shape:ShapeExpressionInterface,text:TextExpressionInterface,footage:FootageInterface};function getInterface(e){return interfaces[e]||null}var expressionHelpers={searchExpressions:function(e,t,n){t.x&&(n.k=!0,n.x=!0,n.initiateExpression=ExpressionManager.initiateExpression,n.effectsSequence.push(n.initiateExpression(e,t,n).bind(n)))},getSpeedAtTime:function(e){var t=this.getValueAtTime(e),n=this.getValueAtTime(e+-.01),r=0;if(t.length){var a;for(a=0;a<t.length;a+=1)r+=Math.pow(n[a]-t[a],2);r=100*Math.sqrt(r)}else r=0;return r},getVelocityAtTime:function(e){if(void 0!==this.vel)return this.vel;var t,n,r=-.001,a=this.getValueAtTime(e),i=this.getValueAtTime(e+r);if(a.length)for(t=createTypedArray("float32",a.length),n=0;n<a.length;n+=1)t[n]=(i[n]-a[n])/r;else t=(i-a)/r;return t},getValueAtTime:function(e){return e*=this.elem.globalData.frameRate,(e-=this.offsetTime)!==this._cachingAtTime.lastFrame&&(this._cachingAtTime.lastIndex=this._cachingAtTime.lastFrame<e?this._cachingAtTime.lastIndex:0,this._cachingAtTime.value=this.interpolateValue(e,this._cachingAtTime),this._cachingAtTime.lastFrame=e),this._cachingAtTime.value},getStaticValueAtTime:function(){return this.pv},setGroupProperty:function(e){this.propertyGroup=e}};function addPropertyDecorator(){function e(e,t,n){if(!this.k||!this.keyframes)return this.pv;e=e?e.toLowerCase():"";var r,a,i,o,s,l=this.comp.renderedFrame,c=this.keyframes,u=c[c.length-1].t;if(l<=u)return this.pv;if(n?a=u-(r=t?Math.abs(u-this.elem.comp.globalData.frameRate*t):Math.max(0,u-this.elem.data.ip)):((!t||t>c.length-1)&&(t=c.length-1),r=u-(a=c[c.length-1-t].t)),"pingpong"===e){if(Math.floor((l-a)/r)%2!=0)return this.getValueAtTime((r-(l-a)%r+a)/this.comp.globalData.frameRate,0)}else{if("offset"===e){var f=this.getValueAtTime(a/this.comp.globalData.frameRate,0),h=this.getValueAtTime(u/this.comp.globalData.frameRate,0),p=this.getValueAtTime(((l-a)%r+a)/this.comp.globalData.frameRate,0),d=Math.floor((l-a)/r);if(this.pv.length){for(o=(s=new Array(f.length)).length,i=0;i<o;i+=1)s[i]=(h[i]-f[i])*d+p[i];return s}return(h-f)*d+p}if("continue"===e){var m=this.getValueAtTime(u/this.comp.globalData.frameRate,0),g=this.getValueAtTime((u-.001)/this.comp.globalData.frameRate,0);if(this.pv.length){for(o=(s=new Array(m.length)).length,i=0;i<o;i+=1)s[i]=m[i]+(m[i]-g[i])*((l-u)/this.comp.globalData.frameRate)/5e-4;return s}return m+(l-u)/.001*(m-g)}}return this.getValueAtTime(((l-a)%r+a)/this.comp.globalData.frameRate,0)}function t(e,t,n){if(!this.k)return this.pv;e=e?e.toLowerCase():"";var r,a,i,o,s,l=this.comp.renderedFrame,c=this.keyframes,u=c[0].t;if(l>=u)return this.pv;if(n?a=u+(r=t?Math.abs(this.elem.comp.globalData.frameRate*t):Math.max(0,this.elem.data.op-u)):((!t||t>c.length-1)&&(t=c.length-1),r=(a=c[t].t)-u),"pingpong"===e){if(Math.floor((u-l)/r)%2==0)return this.getValueAtTime(((u-l)%r+u)/this.comp.globalData.frameRate,0)}else{if("offset"===e){var f=this.getValueAtTime(u/this.comp.globalData.frameRate,0),h=this.getValueAtTime(a/this.comp.globalData.frameRate,0),p=this.getValueAtTime((r-(u-l)%r+u)/this.comp.globalData.frameRate,0),d=Math.floor((u-l)/r)+1;if(this.pv.length){for(o=(s=new Array(f.length)).length,i=0;i<o;i+=1)s[i]=p[i]-(h[i]-f[i])*d;return s}return p-(h-f)*d}if("continue"===e){var m=this.getValueAtTime(u/this.comp.globalData.frameRate,0),g=this.getValueAtTime((u+.001)/this.comp.globalData.frameRate,0);if(this.pv.length){for(o=(s=new Array(m.length)).length,i=0;i<o;i+=1)s[i]=m[i]+(m[i]-g[i])*(u-l)/.001;return s}return m+(m-g)*(u-l)/.001}}return this.getValueAtTime((r-((u-l)%r+u))/this.comp.globalData.frameRate,0)}function n(e,t){if(!this.k)return this.pv;if(e=.5*(e||.4),(t=Math.floor(t||5))<=1)return this.pv;var n,r,a=this.comp.renderedFrame/this.comp.globalData.frameRate,i=a-e,o=t>1?(a+e-i)/(t-1):1,s=0,l=0;for(n=this.pv.length?createTypedArray("float32",this.pv.length):0;s<t;){if(r=this.getValueAtTime(i+s*o),this.pv.length)for(l=0;l<this.pv.length;l+=1)n[l]+=r[l];else n+=r;s+=1}if(this.pv.length)for(l=0;l<this.pv.length;l+=1)n[l]/=t;else n/=t;return n}function r(e){this._transformCachingAtTime||(this._transformCachingAtTime={v:new Matrix});var t=this._transformCachingAtTime.v;if(t.cloneFromProps(this.pre.props),this.appliedTransformations<1){var n=this.a.getValueAtTime(e);t.translate(-n[0]*this.a.mult,-n[1]*this.a.mult,n[2]*this.a.mult)}if(this.appliedTransformations<2){var r=this.s.getValueAtTime(e);t.scale(r[0]*this.s.mult,r[1]*this.s.mult,r[2]*this.s.mult)}if(this.sk&&this.appliedTransformations<3){var a=this.sk.getValueAtTime(e),i=this.sa.getValueAtTime(e);t.skewFromAxis(-a*this.sk.mult,i*this.sa.mult)}if(this.r&&this.appliedTransformations<4){var o=this.r.getValueAtTime(e);t.rotate(-o*this.r.mult)}else if(!this.r&&this.appliedTransformations<4){var s=this.rz.getValueAtTime(e),l=this.ry.getValueAtTime(e),c=this.rx.getValueAtTime(e),u=this.or.getValueAtTime(e);t.rotateZ(-s*this.rz.mult).rotateY(l*this.ry.mult).rotateX(c*this.rx.mult).rotateZ(-u[2]*this.or.mult).rotateY(u[1]*this.or.mult).rotateX(u[0]*this.or.mult)}if(this.data.p&&this.data.p.s){var f=this.px.getValueAtTime(e),h=this.py.getValueAtTime(e);if(this.data.p.z){var p=this.pz.getValueAtTime(e);t.translate(f*this.px.mult,h*this.py.mult,-p*this.pz.mult)}else t.translate(f*this.px.mult,h*this.py.mult,0)}else{var d=this.p.getValueAtTime(e);t.translate(d[0]*this.p.mult,d[1]*this.p.mult,-d[2]*this.p.mult)}return t}function a(){return this.v.clone(new Matrix)}var i=TransformPropertyFactory.getTransformProperty;TransformPropertyFactory.getTransformProperty=function(e,t,n){var o=i(e,t,n);return o.dynamicProperties.length?o.getValueAtTime=r.bind(o):o.getValueAtTime=a.bind(o),o.setGroupProperty=expressionHelpers.setGroupProperty,o};var o=PropertyFactory.getProp;PropertyFactory.getProp=function(r,a,i,s,l){var c=o(r,a,i,s,l);c.kf?c.getValueAtTime=expressionHelpers.getValueAtTime.bind(c):c.getValueAtTime=expressionHelpers.getStaticValueAtTime.bind(c),c.setGroupProperty=expressionHelpers.setGroupProperty,c.loopOut=e,c.loopIn=t,c.smooth=n,c.getVelocityAtTime=expressionHelpers.getVelocityAtTime.bind(c),c.getSpeedAtTime=expressionHelpers.getSpeedAtTime.bind(c),c.numKeys=1===a.a?a.k.length:0,c.propertyIndex=a.ix;var u=0;return 0!==i&&(u=createTypedArray("float32",1===a.a?a.k[0].s.length:a.k.length)),c._cachingAtTime={lastFrame:initialDefaultFrame,lastIndex:0,value:u},expressionHelpers.searchExpressions(r,a,c),c.k&&l.addDynamicProperty(c),c};var s=ShapePropertyFactory.getConstructorFunction(),l=ShapePropertyFactory.getKeyframedConstructorFunction();function c(){}c.prototype={vertices:function(e,t){this.k&&this.getValue();var n,r=this.v;void 0!==t&&(r=this.getValueAtTime(t,0));var a=r._length,i=r[e],o=r.v,s=createSizedArray(a);for(n=0;n<a;n+=1)s[n]="i"===e||"o"===e?[i[n][0]-o[n][0],i[n][1]-o[n][1]]:[i[n][0],i[n][1]];return s},points:function(e){return this.vertices("v",e)},inTangents:function(e){return this.vertices("i",e)},outTangents:function(e){return this.vertices("o",e)},isClosed:function(){return this.v.c},pointOnPath:function(e,t){var n=this.v;void 0!==t&&(n=this.getValueAtTime(t,0)),this._segmentsLength||(this._segmentsLength=bez.getSegmentsLength(n));for(var r,a=this._segmentsLength,i=a.lengths,o=a.totalLength*e,s=0,l=i.length,c=0;s<l;){if(c+i[s].addedLength>o){var u=s,f=n.c&&s===l-1?0:s+1,h=(o-c)/i[s].addedLength;r=bez.getPointInSegment(n.v[u],n.v[f],n.o[u],n.i[f],h,i[s]);break}c+=i[s].addedLength,s+=1}return r||(r=n.c?[n.v[0][0],n.v[0][1]]:[n.v[n._length-1][0],n.v[n._length-1][1]]),r},vectorOnPath:function(e,t,n){1==e?e=this.v.c:0==e&&(e=.999);var r=this.pointOnPath(e,t),a=this.pointOnPath(e+.001,t),i=a[0]-r[0],o=a[1]-r[1],s=Math.sqrt(Math.pow(i,2)+Math.pow(o,2));return 0===s?[0,0]:"tangent"===n?[i/s,o/s]:[-o/s,i/s]},tangentOnPath:function(e,t){return this.vectorOnPath(e,t,"tangent")},normalOnPath:function(e,t){return this.vectorOnPath(e,t,"normal")},setGroupProperty:expressionHelpers.setGroupProperty,getValueAtTime:expressionHelpers.getStaticValueAtTime},extendPrototype([c],s),extendPrototype([c],l),l.prototype.getValueAtTime=function(e){return this._cachingAtTime||(this._cachingAtTime={shapeValue:shapePool.clone(this.pv),lastIndex:0,lastTime:initialDefaultFrame}),e*=this.elem.globalData.frameRate,(e-=this.offsetTime)!==this._cachingAtTime.lastTime&&(this._cachingAtTime.lastIndex=this._cachingAtTime.lastTime<e?this._caching.lastIndex:0,this._cachingAtTime.lastTime=e,this.interpolateShape(e,this._cachingAtTime.shapeValue,this._cachingAtTime)),this._cachingAtTime.shapeValue},l.prototype.initiateExpression=ExpressionManager.initiateExpression;var u=ShapePropertyFactory.getShapeProp;ShapePropertyFactory.getShapeProp=function(e,t,n,r,a){var i=u(e,t,n,r,a);return i.propertyIndex=t.ix,i.lock=!1,3===n?expressionHelpers.searchExpressions(e,t.pt,i):4===n&&expressionHelpers.searchExpressions(e,t.ks,i),i.k&&e.addDynamicProperty(i),i}}function initialize$1(){addPropertyDecorator()}function addDecorator(){TextProperty.prototype.getExpressionValue=function(e,t){var n=this.calculateExpression(t);if(e.t!==n){var r={};return this.copyData(r,e),r.t=n.toString(),r.__complete=!1,r}return e},TextProperty.prototype.searchProperty=function(){var e=this.searchKeyframes(),t=this.searchExpressions();return this.kf=e||t,this.kf},TextProperty.prototype.searchExpressions=function(){return this.data.d.x?(this.calculateExpression=ExpressionManager.initiateExpression.bind(this)(this.elem,this.data.d,this),this.addEffect(this.getExpressionValue.bind(this)),!0):null}}function initialize(){addDecorator()}function SVGComposableEffect(){}SVGComposableEffect.prototype={createMergeNode:function(e,t){var n,r,a=createNS("feMerge");for(a.setAttribute("result",e),r=0;r<t.length;r+=1)(n=createNS("feMergeNode")).setAttribute("in",t[r]),a.appendChild(n),a.appendChild(n);return a}};var linearFilterValue="0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0";function SVGTintFilter(e,t,n,r,a){this.filterManager=t;var i=createNS("feColorMatrix");i.setAttribute("type","matrix"),i.setAttribute("color-interpolation-filters","linearRGB"),i.setAttribute("values",linearFilterValue+" 1 0"),this.linearFilter=i,i.setAttribute("result",r+"_tint_1"),e.appendChild(i),(i=createNS("feColorMatrix")).setAttribute("type","matrix"),i.setAttribute("color-interpolation-filters","sRGB"),i.setAttribute("values","1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"),i.setAttribute("result",r+"_tint_2"),e.appendChild(i),this.matrixFilter=i;var o=this.createMergeNode(r,[a,r+"_tint_1",r+"_tint_2"]);e.appendChild(o)}function SVGFillFilter(e,t,n,r){this.filterManager=t;var a=createNS("feColorMatrix");a.setAttribute("type","matrix"),a.setAttribute("color-interpolation-filters","sRGB"),a.setAttribute("values","1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"),a.setAttribute("result",r),e.appendChild(a),this.matrixFilter=a}function SVGStrokeEffect(e,t,n){this.initialized=!1,this.filterManager=t,this.elem=n,this.paths=[]}function SVGTritoneFilter(e,t,n,r){this.filterManager=t;var a=createNS("feColorMatrix");a.setAttribute("type","matrix"),a.setAttribute("color-interpolation-filters","linearRGB"),a.setAttribute("values","0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0"),e.appendChild(a);var i=createNS("feComponentTransfer");i.setAttribute("color-interpolation-filters","sRGB"),i.setAttribute("result",r),this.matrixFilter=i;var o=createNS("feFuncR");o.setAttribute("type","table"),i.appendChild(o),this.feFuncR=o;var s=createNS("feFuncG");s.setAttribute("type","table"),i.appendChild(s),this.feFuncG=s;var l=createNS("feFuncB");l.setAttribute("type","table"),i.appendChild(l),this.feFuncB=l,e.appendChild(i)}function SVGProLevelsFilter(e,t,n,r){this.filterManager=t;var a=this.filterManager.effectElements,i=createNS("feComponentTransfer");(a[10].p.k||0!==a[10].p.v||a[11].p.k||1!==a[11].p.v||a[12].p.k||1!==a[12].p.v||a[13].p.k||0!==a[13].p.v||a[14].p.k||1!==a[14].p.v)&&(this.feFuncR=this.createFeFunc("feFuncR",i)),(a[17].p.k||0!==a[17].p.v||a[18].p.k||1!==a[18].p.v||a[19].p.k||1!==a[19].p.v||a[20].p.k||0!==a[20].p.v||a[21].p.k||1!==a[21].p.v)&&(this.feFuncG=this.createFeFunc("feFuncG",i)),(a[24].p.k||0!==a[24].p.v||a[25].p.k||1!==a[25].p.v||a[26].p.k||1!==a[26].p.v||a[27].p.k||0!==a[27].p.v||a[28].p.k||1!==a[28].p.v)&&(this.feFuncB=this.createFeFunc("feFuncB",i)),(a[31].p.k||0!==a[31].p.v||a[32].p.k||1!==a[32].p.v||a[33].p.k||1!==a[33].p.v||a[34].p.k||0!==a[34].p.v||a[35].p.k||1!==a[35].p.v)&&(this.feFuncA=this.createFeFunc("feFuncA",i)),(this.feFuncR||this.feFuncG||this.feFuncB||this.feFuncA)&&(i.setAttribute("color-interpolation-filters","sRGB"),e.appendChild(i)),(a[3].p.k||0!==a[3].p.v||a[4].p.k||1!==a[4].p.v||a[5].p.k||1!==a[5].p.v||a[6].p.k||0!==a[6].p.v||a[7].p.k||1!==a[7].p.v)&&((i=createNS("feComponentTransfer")).setAttribute("color-interpolation-filters","sRGB"),i.setAttribute("result",r),e.appendChild(i),this.feFuncRComposed=this.createFeFunc("feFuncR",i),this.feFuncGComposed=this.createFeFunc("feFuncG",i),this.feFuncBComposed=this.createFeFunc("feFuncB",i))}function SVGDropShadowEffect(e,t,n,r,a){var i=t.container.globalData.renderConfig.filterSize,o=t.data.fs||i;e.setAttribute("x",o.x||i.x),e.setAttribute("y",o.y||i.y),e.setAttribute("width",o.width||i.width),e.setAttribute("height",o.height||i.height),this.filterManager=t;var s=createNS("feGaussianBlur");s.setAttribute("in","SourceAlpha"),s.setAttribute("result",r+"_drop_shadow_1"),s.setAttribute("stdDeviation","0"),this.feGaussianBlur=s,e.appendChild(s);var l=createNS("feOffset");l.setAttribute("dx","25"),l.setAttribute("dy","0"),l.setAttribute("in",r+"_drop_shadow_1"),l.setAttribute("result",r+"_drop_shadow_2"),this.feOffset=l,e.appendChild(l);var c=createNS("feFlood");c.setAttribute("flood-color","#00ff00"),c.setAttribute("flood-opacity","1"),c.setAttribute("result",r+"_drop_shadow_3"),this.feFlood=c,e.appendChild(c);var u=createNS("feComposite");u.setAttribute("in",r+"_drop_shadow_3"),u.setAttribute("in2",r+"_drop_shadow_2"),u.setAttribute("operator","in"),u.setAttribute("result",r+"_drop_shadow_4"),e.appendChild(u);var f=this.createMergeNode(r,[r+"_drop_shadow_4",a]);e.appendChild(f)}extendPrototype([SVGComposableEffect],SVGTintFilter),SVGTintFilter.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){var t=this.filterManager.effectElements[0].p.v,n=this.filterManager.effectElements[1].p.v,r=this.filterManager.effectElements[2].p.v/100;this.linearFilter.setAttribute("values",linearFilterValue+" "+r+" 0"),this.matrixFilter.setAttribute("values",n[0]-t[0]+" 0 0 0 "+t[0]+" "+(n[1]-t[1])+" 0 0 0 "+t[1]+" "+(n[2]-t[2])+" 0 0 0 "+t[2]+" 0 0 0 1 0")}},SVGFillFilter.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){var t=this.filterManager.effectElements[2].p.v,n=this.filterManager.effectElements[6].p.v;this.matrixFilter.setAttribute("values","0 0 0 0 "+t[0]+" 0 0 0 0 "+t[1]+" 0 0 0 0 "+t[2]+" 0 0 0 "+n+" 0")}},SVGStrokeEffect.prototype.initialize=function(){var e,t,n,r,a=this.elem.layerElement.children||this.elem.layerElement.childNodes;for(1===this.filterManager.effectElements[1].p.v?(r=this.elem.maskManager.masksProperties.length,n=0):r=1+(n=this.filterManager.effectElements[0].p.v-1),(t=createNS("g")).setAttribute("fill","none"),t.setAttribute("stroke-linecap","round"),t.setAttribute("stroke-dashoffset",1);n<r;n+=1)e=createNS("path"),t.appendChild(e),this.paths.push({p:e,m:n});if(3===this.filterManager.effectElements[10].p.v){var i=createNS("mask"),o=createElementID();i.setAttribute("id",o),i.setAttribute("mask-type","alpha"),i.appendChild(t),this.elem.globalData.defs.appendChild(i);var s=createNS("g");for(s.setAttribute("mask","url("+getLocationHref()+"#"+o+")");a[0];)s.appendChild(a[0]);this.elem.layerElement.appendChild(s),this.masker=i,t.setAttribute("stroke","#fff")}else if(1===this.filterManager.effectElements[10].p.v||2===this.filterManager.effectElements[10].p.v){if(2===this.filterManager.effectElements[10].p.v)for(a=this.elem.layerElement.children||this.elem.layerElement.childNodes;a.length;)this.elem.layerElement.removeChild(a[0]);this.elem.layerElement.appendChild(t),this.elem.layerElement.removeAttribute("mask"),t.setAttribute("stroke","#fff")}this.initialized=!0,this.pathMasker=t},SVGStrokeEffect.prototype.renderFrame=function(e){var t;this.initialized||this.initialize();var n,r,a=this.paths.length;for(t=0;t<a;t+=1)if(-1!==this.paths[t].m&&(n=this.elem.maskManager.viewData[this.paths[t].m],r=this.paths[t].p,(e||this.filterManager._mdf||n.prop._mdf)&&r.setAttribute("d",n.lastPath),e||this.filterManager.effectElements[9].p._mdf||this.filterManager.effectElements[4].p._mdf||this.filterManager.effectElements[7].p._mdf||this.filterManager.effectElements[8].p._mdf||n.prop._mdf)){var i;if(0!==this.filterManager.effectElements[7].p.v||100!==this.filterManager.effectElements[8].p.v){var o=.01*Math.min(this.filterManager.effectElements[7].p.v,this.filterManager.effectElements[8].p.v),s=.01*Math.max(this.filterManager.effectElements[7].p.v,this.filterManager.effectElements[8].p.v),l=r.getTotalLength();i="0 0 0 "+l*o+" ";var c,u=l*(s-o),f=1+2*this.filterManager.effectElements[4].p.v*this.filterManager.effectElements[9].p.v*.01,h=Math.floor(u/f);for(c=0;c<h;c+=1)i+="1 "+2*this.filterManager.effectElements[4].p.v*this.filterManager.effectElements[9].p.v*.01+" ";i+="0 "+10*l+" 0 0"}else i="1 "+2*this.filterManager.effectElements[4].p.v*this.filterManager.effectElements[9].p.v*.01;r.setAttribute("stroke-dasharray",i)}if((e||this.filterManager.effectElements[4].p._mdf)&&this.pathMasker.setAttribute("stroke-width",2*this.filterManager.effectElements[4].p.v),(e||this.filterManager.effectElements[6].p._mdf)&&this.pathMasker.setAttribute("opacity",this.filterManager.effectElements[6].p.v),(1===this.filterManager.effectElements[10].p.v||2===this.filterManager.effectElements[10].p.v)&&(e||this.filterManager.effectElements[3].p._mdf)){var p=this.filterManager.effectElements[3].p.v;this.pathMasker.setAttribute("stroke","rgb("+bmFloor(255*p[0])+","+bmFloor(255*p[1])+","+bmFloor(255*p[2])+")")}},SVGTritoneFilter.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){var t=this.filterManager.effectElements[0].p.v,n=this.filterManager.effectElements[1].p.v,r=this.filterManager.effectElements[2].p.v,a=r[0]+" "+n[0]+" "+t[0],i=r[1]+" "+n[1]+" "+t[1],o=r[2]+" "+n[2]+" "+t[2];this.feFuncR.setAttribute("tableValues",a),this.feFuncG.setAttribute("tableValues",i),this.feFuncB.setAttribute("tableValues",o)}},SVGProLevelsFilter.prototype.createFeFunc=function(e,t){var n=createNS(e);return n.setAttribute("type","table"),t.appendChild(n),n},SVGProLevelsFilter.prototype.getTableValue=function(e,t,n,r,a){for(var i,o,s=0,l=Math.min(e,t),c=Math.max(e,t),u=Array.call(null,{length:256}),f=0,h=a-r,p=t-e;s<=256;)o=(i=s/256)<=l?p<0?a:r:i>=c?p<0?r:a:r+h*Math.pow((i-e)/p,1/n),u[f]=o,f+=1,s+=256/255;return u.join(" ")},SVGProLevelsFilter.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){var t,n=this.filterManager.effectElements;this.feFuncRComposed&&(e||n[3].p._mdf||n[4].p._mdf||n[5].p._mdf||n[6].p._mdf||n[7].p._mdf)&&(t=this.getTableValue(n[3].p.v,n[4].p.v,n[5].p.v,n[6].p.v,n[7].p.v),this.feFuncRComposed.setAttribute("tableValues",t),this.feFuncGComposed.setAttribute("tableValues",t),this.feFuncBComposed.setAttribute("tableValues",t)),this.feFuncR&&(e||n[10].p._mdf||n[11].p._mdf||n[12].p._mdf||n[13].p._mdf||n[14].p._mdf)&&(t=this.getTableValue(n[10].p.v,n[11].p.v,n[12].p.v,n[13].p.v,n[14].p.v),this.feFuncR.setAttribute("tableValues",t)),this.feFuncG&&(e||n[17].p._mdf||n[18].p._mdf||n[19].p._mdf||n[20].p._mdf||n[21].p._mdf)&&(t=this.getTableValue(n[17].p.v,n[18].p.v,n[19].p.v,n[20].p.v,n[21].p.v),this.feFuncG.setAttribute("tableValues",t)),this.feFuncB&&(e||n[24].p._mdf||n[25].p._mdf||n[26].p._mdf||n[27].p._mdf||n[28].p._mdf)&&(t=this.getTableValue(n[24].p.v,n[25].p.v,n[26].p.v,n[27].p.v,n[28].p.v),this.feFuncB.setAttribute("tableValues",t)),this.feFuncA&&(e||n[31].p._mdf||n[32].p._mdf||n[33].p._mdf||n[34].p._mdf||n[35].p._mdf)&&(t=this.getTableValue(n[31].p.v,n[32].p.v,n[33].p.v,n[34].p.v,n[35].p.v),this.feFuncA.setAttribute("tableValues",t))}},extendPrototype([SVGComposableEffect],SVGDropShadowEffect),SVGDropShadowEffect.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){if((e||this.filterManager.effectElements[4].p._mdf)&&this.feGaussianBlur.setAttribute("stdDeviation",this.filterManager.effectElements[4].p.v/4),e||this.filterManager.effectElements[0].p._mdf){var t=this.filterManager.effectElements[0].p.v;this.feFlood.setAttribute("flood-color",rgbToHex(Math.round(255*t[0]),Math.round(255*t[1]),Math.round(255*t[2])))}if((e||this.filterManager.effectElements[1].p._mdf)&&this.feFlood.setAttribute("flood-opacity",this.filterManager.effectElements[1].p.v/255),e||this.filterManager.effectElements[2].p._mdf||this.filterManager.effectElements[3].p._mdf){var n=this.filterManager.effectElements[3].p.v,r=(this.filterManager.effectElements[2].p.v-90)*degToRads,a=n*Math.cos(r),i=n*Math.sin(r);this.feOffset.setAttribute("dx",a),this.feOffset.setAttribute("dy",i)}}};var _svgMatteSymbols=[];function SVGMatte3Effect(e,t,n){this.initialized=!1,this.filterManager=t,this.filterElem=e,this.elem=n,n.matteElement=createNS("g"),n.matteElement.appendChild(n.layerElement),n.matteElement.appendChild(n.transformedElement),n.baseElement=n.matteElement}function SVGGaussianBlurEffect(e,t,n,r){e.setAttribute("x","-100%"),e.setAttribute("y","-100%"),e.setAttribute("width","300%"),e.setAttribute("height","300%"),this.filterManager=t;var a=createNS("feGaussianBlur");a.setAttribute("result",r),e.appendChild(a),this.feGaussianBlur=a}function TransformEffect(){}function SVGTransformEffect(e,t){this.init(t)}function CVTransformEffect(e){this.init(e)}return SVGMatte3Effect.prototype.findSymbol=function(e){for(var t=0,n=_svgMatteSymbols.length;t<n;){if(_svgMatteSymbols[t]===e)return _svgMatteSymbols[t];t+=1}return null},SVGMatte3Effect.prototype.replaceInParent=function(e,t){var n=e.layerElement.parentNode;if(n){for(var r,a=n.children,i=0,o=a.length;i<o&&a[i]!==e.layerElement;)i+=1;i<=o-2&&(r=a[i+1]);var s=createNS("use");s.setAttribute("href","#"+t),r?n.insertBefore(s,r):n.appendChild(s)}},SVGMatte3Effect.prototype.setElementAsMask=function(e,t){if(!this.findSymbol(t)){var n=createElementID(),r=createNS("mask");r.setAttribute("id",t.layerId),r.setAttribute("mask-type","alpha"),_svgMatteSymbols.push(t);var a=e.globalData.defs;a.appendChild(r);var i=createNS("symbol");i.setAttribute("id",n),this.replaceInParent(t,n),i.appendChild(t.layerElement),a.appendChild(i);var o=createNS("use");o.setAttribute("href","#"+n),r.appendChild(o),t.data.hd=!1,t.show()}e.setMatte(t.layerId)},SVGMatte3Effect.prototype.initialize=function(){for(var e=this.filterManager.effectElements[0].p.v,t=this.elem.comp.elements,n=0,r=t.length;n<r;)t[n]&&t[n].data.ind===e&&this.setElementAsMask(this.elem,t[n]),n+=1;this.initialized=!0},SVGMatte3Effect.prototype.renderFrame=function(){this.initialized||this.initialize()},SVGGaussianBlurEffect.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){var t=.3*this.filterManager.effectElements[0].p.v,n=this.filterManager.effectElements[1].p.v,r=3==n?0:t,a=2==n?0:t;this.feGaussianBlur.setAttribute("stdDeviation",r+" "+a);var i=1==this.filterManager.effectElements[2].p.v?"wrap":"duplicate";this.feGaussianBlur.setAttribute("edgeMode",i)}},TransformEffect.prototype.init=function(e){this.effectsManager=e,this.type=effectTypes.TRANSFORM_EFFECT,this.matrix=new Matrix,this.opacity=-1,this._mdf=!1,this._opMdf=!1},TransformEffect.prototype.renderFrame=function(e){if(this._opMdf=!1,this._mdf=!1,e||this.effectsManager._mdf){var t=this.effectsManager.effectElements,n=t[0].p.v,r=t[1].p.v,a=1===t[2].p.v,i=t[3].p.v,o=a?i:t[4].p.v,s=t[5].p.v,l=t[6].p.v,c=t[7].p.v;this.matrix.reset(),this.matrix.translate(-n[0],-n[1],n[2]),this.matrix.scale(.01*o,.01*i,1),this.matrix.rotate(-c*degToRads),this.matrix.skewFromAxis(-s*degToRads,(l+90)*degToRads),this.matrix.translate(r[0],r[1],0),this._mdf=!0,this.opacity!==t[8].p.v&&(this.opacity=t[8].p.v,this._opMdf=!0)}},extendPrototype([TransformEffect],SVGTransformEffect),extendPrototype([TransformEffect],CVTransformEffect),registerRenderer("canvas",CanvasRenderer),registerRenderer("html",HybridRenderer),registerRenderer("svg",SVGRenderer),ShapeModifiers.registerModifier("tm",TrimModifier),ShapeModifiers.registerModifier("pb",PuckerAndBloatModifier),ShapeModifiers.registerModifier("rp",RepeaterModifier),ShapeModifiers.registerModifier("rd",RoundCornersModifier),ShapeModifiers.registerModifier("zz",ZigZagModifier),ShapeModifiers.registerModifier("op",OffsetPathModifier),setExpressionsPlugin(Expressions),setExpressionInterfaces(getInterface),initialize$1(),initialize(),registerEffect$1(20,SVGTintFilter,!0),registerEffect$1(21,SVGFillFilter,!0),registerEffect$1(22,SVGStrokeEffect,!1),registerEffect$1(23,SVGTritoneFilter,!0),registerEffect$1(24,SVGProLevelsFilter,!0),registerEffect$1(25,SVGDropShadowEffect,!0),registerEffect$1(28,SVGMatte3Effect,!1),registerEffect$1(29,SVGGaussianBlurEffect,!0),registerEffect$1(35,SVGTransformEffect,!1),registerEffect(35,CVTransformEffect),lottie},module.exports=factory())},41811(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>o});var r=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function a(e,t){return e===t||!(!r(e)||!r(t))}function i(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!a(e[n],t[n]))return!1;return!0}const o=/^6(573|695)$/.test(n.j)?function(e,t){var n;void 0===t&&(t=i);var 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}}:null},2694(e,t,n){"use strict";var r=n(6925);function a(){}function i(){}i.resetWarningCache=a,e.exports=function(){function e(e,t,n,a,i,o){if(o!==r){var s=new 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:i,resetWarningCache:a};return n.PropTypes=n,n}},5556(e,t,n){e.exports=n(2694)()},6925(e){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},45566(e,t,n){"use strict";n.d(t,{A:()=>y});var r=n(64467),a=n(3453),i=n(80045),o=n(51609),s=n(46942),l=n.n(s);function c(e){var t=o.useRef();t.current=e;var n=o.useCallback(function(){for(var e,n=arguments.length,r=new Array(n),a=0;a<n;a++)r[a]=arguments[a];return null===(e=t.current)||void 0===e?void 0:e.call.apply(e,[t].concat(r))},[]);return n}var u="undefined"!=typeof window&&window.document&&window.document.createElement?o.useLayoutEffect:o.useEffect,f=function(e,t){!function(e,t){var n=o.useRef(!0);u(function(){return e(n.current)},t),u(function(){return n.current=!1,function(){n.current=!0}},[])}(function(t){if(!t)return e()},t)};function h(e){var t=o.useRef(!1),n=o.useState(e),r=(0,a.A)(n,2),i=r[0],s=r[1];return o.useEffect(function(){return t.current=!1,function(){t.current=!0}},[]),[i,function(e,n){n&&t.current||s(e)}]}function p(e){return void 0!==e}var d={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(e){var t=e.keyCode;if(e.altKey&&!e.ctrlKey||e.metaKey||t>=d.F1&&t<=d.F12)return!1;switch(t){case d.ALT:case d.CAPS_LOCK:case d.CONTEXT_MENU:case d.CTRL:case d.DOWN:case d.END:case d.ESC:case d.HOME:case d.INSERT:case d.LEFT:case d.MAC_FF_META:case d.META:case d.NUMLOCK:case d.NUM_CENTER:case d.PAGE_DOWN:case d.PAGE_UP:case d.PAUSE:case d.PRINT_SCREEN:case d.RIGHT:case d.SHIFT:case d.UP:case d.WIN_KEY:case d.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(e){if(e>=d.ZERO&&e<=d.NINE)return!0;if(e>=d.NUM_ZERO&&e<=d.NUM_MULTIPLY)return!0;if(e>=d.A&&e<=d.Z)return!0;if(-1!==window.navigator.userAgent.indexOf("WebKit")&&0===e)return!0;switch(e){case d.SPACE:case d.QUESTION_MARK:case d.NUM_PLUS:case d.NUM_MINUS:case d.NUM_PERIOD:case d.NUM_DIVISION:case d.SEMICOLON:case d.DASH:case d.EQUALS:case d.COMMA:case d.PERIOD:case d.SLASH:case d.APOSTROPHE:case d.SINGLE_QUOTE:case d.OPEN_SQUARE_BRACKET:case d.BACKSLASH:case d.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}};const m=d;var g=o.forwardRef(function(e,t){var n,s=e.prefixCls,u=void 0===s?"rc-switch":s,d=e.className,g=e.checked,y=e.defaultChecked,v=e.disabled,b=e.loadingIcon,_=e.checkedChildren,w=e.unCheckedChildren,S=e.onClick,x=e.onChange,k=e.onKeyDown,C=(0,i.A)(e,["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"]),E=function(e,t){var n=t||{},r=n.defaultValue,i=n.value,o=n.onChange,s=n.postState,l=h(function(){return p(i)?i:p(r)?"function"==typeof r?r():r:e}),u=(0,a.A)(l,2),d=u[0],m=u[1],g=void 0!==i?i:d,y=s?s(g):g,v=c(o),b=h([g]),_=(0,a.A)(b,2),w=_[0],S=_[1];return f(function(){var e=w[0];d!==e&&v(d,e)},[w]),f(function(){p(i)||m(i)},[i]),[y,c(function(e,t){m(e,t),S([g],t)})]}(!1,{value:g,defaultValue:y}),P=(0,a.A)(E,2),A=P[0],O=P[1];function M(e,t){var n=A;return v||(O(n=e),null==x||x(n,t)),n}var T=l()(u,d,(n={},(0,r.A)(n,"".concat(u,"-checked"),A),(0,r.A)(n,"".concat(u,"-disabled"),v),n));return o.createElement("button",Object.assign({},C,{type:"button",role:"switch","aria-checked":A,disabled:v,className:T,ref:t,onKeyDown:function(e){e.which===m.LEFT?M(!1,e):e.which===m.RIGHT&&M(!0,e),null==k||k(e)},onClick:function(e){var t=M(!A,e);null==S||S(t,e)}}),b,o.createElement("span",{className:"".concat(u,"-inner")},A?_:w))});g.displayName="Switch";const y=g},46391(e,t,n){(()=>{"use strict";var t={n:e=>{var n=e&&e.__esModule?()=>e.default:()=>e;return t.d(n,{a:n}),n},d:(e,n)=>{for(var r in n)t.o(n,r)&&!t.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:n[r]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r:e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},r={};t.r(r),t.d(r,{default:()=>c});const a=n(51609);var i=t.n(a);function o(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 s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach(function(t){l(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function l(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const c=e=>{const{aspectRatio:t="taller",handle:n=null,handleSize:r=40,hover:o=!1,leftImage:l,leftImageAlt:c="",leftImageCss:u={},leftImageLabel:f=null,onSliderPositionChange:h=()=>{},rightImage:p,rightImageAlt:d="",rightImageCss:m={},rightImageLabel:g=null,skeleton:y=null,sliderLineColor:v="#ffffff",sliderLineWidth:b=2,sliderPositionPercentage:_=.5,vertical:w=!1}=e,S=!w,[x,k]=(0,a.useState)(_),[C,E]=(0,a.useState)(0),[P,A]=(0,a.useState)(0),[O,M]=(0,a.useState)(!1),[T,I]=(0,a.useState)(!1),[D,L]=(0,a.useState)(!1),R=(0,a.useRef)(null),j=(0,a.useRef)(null),F=(0,a.useRef)(null);(0,a.useEffect)(()=>{const e=R.current,t=new ResizeObserver(e=>{let[t,...n]=e;const r=t.target.getBoundingClientRect().width;E(r)});return t.observe(e),()=>t.disconnect()},[]),(0,a.useEffect)(()=>(F.current.complete&&M(!0),()=>{M(!1)}),[l]),(0,a.useEffect)(()=>(j.current.complete&&I(!0),()=>{I(!1)}),[p]);const V=T&&O;(0,a.useEffect)(()=>{const e=e=>{const t=e||window.event,n=t.touches?t.touches[0].pageX:t.pageX,r=t.touches?t.touches[0].pageY:t.pageY,a=n-window.pageXOffset,i=r-window.pageYOffset,o=j.current.getBoundingClientRect();let s=S?a-o.left:i-o.top;const l=0+b/2,c=S?C-b/2:P-b/2;s<l&&(s=l),s>c&&(s=c),k(S?s/C:s/P),h&&h(S?s/C:s/P)},n=t=>{L(!0),"touches"in t||t.preventDefault(),e(t),window.addEventListener("mousemove",e),window.addEventListener("touchmove",e)},r=()=>{L(!1),window.removeEventListener("mousemove",e),window.removeEventListener("touchmove",e)},a=R.current;if(V){a.addEventListener("touchstart",n),window.addEventListener("touchend",r),o?(a.addEventListener("mousemove",e),a.addEventListener("mouseleave",r)):(a.addEventListener("mousedown",n),window.addEventListener("mouseup",r));const i=F.current.naturalHeight/F.current.naturalWidth,s=j.current.naturalHeight/j.current.naturalWidth,l="taller"===t?Math.max(i,s):Math.min(i,s);A(C*l)}return()=>{a.removeEventListener("touchstart",n),window.removeEventListener("touchend",r),a.removeEventListener("mousemove",e),a.removeEventListener("mouseleave",r),a.removeEventListener("mousedown",n),window.removeEventListener("mouseup",r),window.removeEventListener("mousemove",e),window.removeEventListener("touchmove",e)}},[V,t,P,C,S,o,b,w]);const N={container:{boxSizing:"border-box",position:"relative",width:"100%",height:`${P}px`,overflow:"hidden"},rightImage:s({clip:S?`rect(auto, auto, auto, ${C*x}px)`:`rect(${P*x}px, auto, auto, auto)`,display:"block",height:"100%",objectFit:"cover",position:"absolute",width:"100%"},m),leftImage:s({clip:S?`rect(auto, ${C*x}px, auto, auto)`:`rect(auto, auto, ${P*x}px, auto)`,display:"block",height:"100%",objectFit:"cover",position:"absolute",width:"100%"},u),slider:{alignItems:"center",cursor:!o&&S?"ew-resize":!o&&!S&&"ns-resize",display:"flex",flexDirection:S?"column":"row",height:S?"100%":`${r}px`,justifyContent:"center",left:S?C*x-r/2+"px":0,position:"absolute",top:S?0:P*x-r/2+"px",width:S?`${r}px`:"100%"},line:{background:v,boxShadow:"0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12)",flex:"0 1 auto",height:S?"100%":`${b}px`,width:S?`${b}px`:"100%"},handleCustom:{alignItems:"center",boxSizing:"border-box",display:"flex",flex:"1 0 auto",height:"auto",justifyContent:"center",width:"auto"},handleDefault:{alignItems:"center",border:`${b}px solid ${v}`,borderRadius:"100%",boxShadow:"0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12)",boxSizing:"border-box",display:"flex",flex:"1 0 auto",height:`${r}px`,justifyContent:"center",width:`${r}px`,transform:S?"none":"rotate(90deg)"},leftArrow:{border:`inset ${.15*r}px rgba(0,0,0,0)`,borderRight:`${.15*r}px solid ${v}`,height:"0px",marginLeft:`-${.25*r}px`,marginRight:.25*r+"px",width:"0px"},rightArrow:{border:`inset ${.15*r}px rgba(0,0,0,0)`,borderLeft:`${.15*r}px solid ${v}`,height:"0px",marginRight:`-${.25*r}px`,width:"0px"},leftLabel:{background:"rgba(0, 0, 0, 0.5)",color:"white",left:S?"5%":"50%",opacity:D?0:1,padding:"10px 20px",position:"absolute",top:S?"50%":"3%",transform:S?"translate(0,-50%)":"translate(-50%, 0)",transition:"opacity 0.1s ease-out"},rightLabel:{background:"rgba(0, 0, 0, 0.5)",color:"white",opacity:D?0:1,padding:"10px 20px",position:"absolute",left:S?null:"50%",right:S?"5%":null,top:S?"50%":null,bottom:S?null:"3%",transform:S?"translate(0,-50%)":"translate(-50%, 0)",transition:"opacity 0.1s ease-out"},leftLabelContainer:{clip:S?`rect(auto, ${C*x}px, auto, auto)`:`rect(auto, auto, ${P*x}px, auto)`,height:"100%",position:"absolute",width:"100%"},rightLabelContainer:{clip:S?`rect(auto, auto, auto, ${C*x}px)`:`rect(${P*x}px, auto, auto, auto)`,height:"100%",position:"absolute",width:"100%"}};return i().createElement(i().Fragment,null,y&&!V&&i().createElement("div",{style:s({},N.container)},y),i().createElement("div",{style:s(s({},N.container),{},{display:V?"block":"none"}),ref:R,"data-testid":"container"},i().createElement("img",{onLoad:()=>I(!0),alt:d,"data-testid":"right-image",ref:j,src:p,style:N.rightImage}),i().createElement("img",{onLoad:()=>M(!0),alt:c,"data-testid":"left-image",ref:F,src:l,style:N.leftImage}),i().createElement("div",{style:N.slider},i().createElement("div",{style:N.line}),n?i().createElement("div",{style:N.handleCustom},n):i().createElement("div",{style:N.handleDefault},i().createElement("div",{style:N.leftArrow}),i().createElement("div",{style:N.rightArrow})),i().createElement("div",{style:N.line})),f&&i().createElement("div",{style:N.leftLabelContainer},i().createElement("div",{style:N.leftLabel},f)),g&&i().createElement("div",{style:N.rightLabelContainer},i().createElement("div",{style:N.rightLabel},g))))};e.exports=r})()},30115(e){var t="undefined"!=typeof Element,n="function"==typeof Map,r="function"==typeof Set,a="function"==typeof ArrayBuffer&&!!ArrayBuffer.isView;function i(e,o){if(e===o)return!0;if(e&&o&&"object"==typeof e&&"object"==typeof o){if(e.constructor!==o.constructor)return!1;var s,l,c,u;if(Array.isArray(e)){if((s=e.length)!=o.length)return!1;for(l=s;0!==l--;)if(!i(e[l],o[l]))return!1;return!0}if(n&&e instanceof Map&&o instanceof Map){if(e.size!==o.size)return!1;for(u=e.entries();!(l=u.next()).done;)if(!o.has(l.value[0]))return!1;for(u=e.entries();!(l=u.next()).done;)if(!i(l.value[1],o.get(l.value[0])))return!1;return!0}if(r&&e instanceof Set&&o instanceof Set){if(e.size!==o.size)return!1;for(u=e.entries();!(l=u.next()).done;)if(!o.has(l.value[0]))return!1;return!0}if(a&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(o)){if((s=e.length)!=o.length)return!1;for(l=s;0!==l--;)if(e[l]!==o[l])return!1;return!0}if(e.constructor===RegExp)return e.source===o.source&&e.flags===o.flags;if(e.valueOf!==Object.prototype.valueOf&&"function"==typeof e.valueOf&&"function"==typeof o.valueOf)return e.valueOf()===o.valueOf();if(e.toString!==Object.prototype.toString&&"function"==typeof e.toString&&"function"==typeof o.toString)return e.toString()===o.toString();if((s=(c=Object.keys(e)).length)!==Object.keys(o).length)return!1;for(l=s;0!==l--;)if(!Object.prototype.hasOwnProperty.call(o,c[l]))return!1;if(t&&e instanceof Element)return!1;for(l=s;0!==l--;)if(("_owner"!==c[l]&&"__v"!==c[l]&&"__o"!==c[l]||!e.$$typeof)&&!i(e[c[l]],o[c[l]]))return!1;return!0}return e!=e&&o!=o}e.exports=function(e,t){try{return i(e,t)}catch(e){if((e.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw e}}},22799(e,t){"use strict";var n,r=Symbol.for("react.element"),a=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),l=Symbol.for("react.provider"),c=Symbol.for("react.context"),u=Symbol.for("react.server_context"),f=Symbol.for("react.forward_ref"),h=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),g=Symbol.for("react.offscreen");n=Symbol.for("react.module.reference"),t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===i||e===s||e===o||e===h||e===p||e===g||"object"==typeof e&&null!==e&&(e.$$typeof===m||e.$$typeof===d||e.$$typeof===l||e.$$typeof===c||e.$$typeof===f||e.$$typeof===n||void 0!==e.getModuleId)},t.typeOf=function(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case i:case s:case o:case h:case p:return e;default:switch(e=e&&e.$$typeof){case u:case c:case f:case m:case d:case l:return e;default:return t}}case a:return t}}}},44363(e,t,n){"use strict";e.exports=n(22799)},77532(e,t,n){"use strict";n.d(t,{h:()=>r});var r=function(e){return{display:e?"flex":"none"}}},48708(e,t,n){"use strict";n.d(t,{LW:()=>Xe});var r=n(51609),a=n.n(r),i=n(44363),o=n(2833),s=n.n(o);const l=function(e){function t(e,r,l,c,h){for(var p,d,m,g,_,S=0,x=0,k=0,C=0,E=0,I=0,L=m=p=0,j=0,F=0,V=0,N=0,B=l.length,z=B-1,H="",G="",W="",U="";j<B;){if(d=l.charCodeAt(j),j===z&&0!==x+C+k+S&&(0!==x&&(d=47===x?10:47),C=k=S=0,B++,z++),0===x+C+k+S){if(j===z&&(0<F&&(H=H.replace(f,"")),0<H.trim().length)){switch(d){case 32:case 9:case 59:case 13:case 10:break;default:H+=l.charAt(j)}d=59}switch(d){case 123:for(p=(H=H.trim()).charCodeAt(0),m=1,N=++j;j<B;){switch(d=l.charCodeAt(j)){case 123:m++;break;case 125:m--;break;case 47:switch(d=l.charCodeAt(j+1)){case 42:case 47:e:{for(L=j+1;L<z;++L)switch(l.charCodeAt(L)){case 47:if(42===d&&42===l.charCodeAt(L-1)&&j+2!==L){j=L+1;break e}break;case 10:if(47===d){j=L+1;break e}}j=L}}break;case 91:d++;case 40:d++;case 34:case 39:for(;j++<z&&l.charCodeAt(j)!==d;);}if(0===m)break;j++}if(m=l.substring(N,j),0===p&&(p=(H=H.replace(u,"").trim()).charCodeAt(0)),64===p){switch(0<F&&(H=H.replace(f,"")),d=H.charCodeAt(1)){case 100:case 109:case 115:case 45:F=r;break;default:F=T}if(N=(m=t(r,F,m,d,h+1)).length,0<D&&(_=s(3,m,F=n(T,H,V),r,A,P,N,d,h,c),H=F.join(""),void 0!==_&&0===(N=(m=_.trim()).length)&&(d=0,m="")),0<N)switch(d){case 115:H=H.replace(w,o);case 100:case 109:case 45:m=H+"{"+m+"}";break;case 107:m=(H=H.replace(y,"$1 $2"))+"{"+m+"}",m=1===M||2===M&&i("@"+m,3)?"@-webkit-"+m+"@"+m:"@"+m;break;default:m=H+m,112===c&&(G+=m,m="")}else m=""}else m=t(r,n(r,H,V),m,c,h+1);W+=m,m=V=F=L=p=0,H="",d=l.charCodeAt(++j);break;case 125:case 59:if(1<(N=(H=(0<F?H.replace(f,""):H).trim()).length))switch(0===L&&(p=H.charCodeAt(0),45===p||96<p&&123>p)&&(N=(H=H.replace(" ",":")).length),0<D&&void 0!==(_=s(1,H,r,e,A,P,G.length,c,h,c))&&0===(N=(H=_.trim()).length)&&(H="\0\0"),p=H.charCodeAt(0),d=H.charCodeAt(1),p){case 0:break;case 64:if(105===d||99===d){U+=H+l.charAt(j);break}default:58!==H.charCodeAt(N-1)&&(G+=a(H,p,d,H.charCodeAt(2)))}V=F=L=p=0,H="",d=l.charCodeAt(++j)}}switch(d){case 13:case 10:47===x?x=0:0===1+p&&107!==c&&0<H.length&&(F=1,H+="\0"),0<D*R&&s(0,H,r,e,A,P,G.length,c,h,c),P=1,A++;break;case 59:case 125:if(0===x+C+k+S){P++;break}default:switch(P++,g=l.charAt(j),d){case 9:case 32:if(0===C+S+x)switch(E){case 44:case 58:case 9:case 32:g="";break;default:32!==d&&(g=" ")}break;case 0:g="\\0";break;case 12:g="\\f";break;case 11:g="\\v";break;case 38:0===C+x+S&&(F=V=1,g="\f"+g);break;case 108:if(0===C+x+S+O&&0<L)switch(j-L){case 2:112===E&&58===l.charCodeAt(j-3)&&(O=E);case 8:111===I&&(O=I)}break;case 58:0===C+x+S&&(L=j);break;case 44:0===x+k+C+S&&(F=1,g+="\r");break;case 34:case 39:0===x&&(C=C===d?0:0===C?d:C);break;case 91:0===C+x+k&&S++;break;case 93:0===C+x+k&&S--;break;case 41:0===C+x+S&&k--;break;case 40:0===C+x+S&&(0===p&&(2*E+3*I==533||(p=1)),k++);break;case 64:0===x+k+C+S+L+m&&(m=1);break;case 42:case 47:if(!(0<C+S+k))switch(x){case 0:switch(2*d+3*l.charCodeAt(j+1)){case 235:x=47;break;case 220:N=j,x=42}break;case 42:47===d&&42===E&&N+2!==j&&(33===l.charCodeAt(N+2)&&(G+=l.substring(N,j+1)),g="",x=0)}}0===x&&(H+=g)}I=E,E=d,j++}if(0<(N=G.length)){if(F=r,0<D&&void 0!==(_=s(2,G,F,e,A,P,N,c,h,c))&&0===(G=_).length)return U+G+W;if(G=F.join(",")+"{"+G+"}",0!==M*O){switch(2!==M||i(G,2)||(O=0),O){case 111:G=G.replace(b,":-moz-$1")+G;break;case 112:G=G.replace(v,"::-webkit-input-$1")+G.replace(v,"::-moz-$1")+G.replace(v,":-ms-input-$1")+G}O=0}}return U+G+W}function n(e,t,n){var a=t.trim().split(m);t=a;var i=a.length,o=e.length;switch(o){case 0:case 1:var s=0;for(e=0===o?"":e[0]+" ";s<i;++s)t[s]=r(e,t[s],n).trim();break;default:var l=s=0;for(t=[];s<i;++s)for(var c=0;c<o;++c)t[l++]=r(e[c]+" ",a[s],n).trim()}return t}function r(e,t,n){var r=t.charCodeAt(0);switch(33>r&&(r=(t=t.trim()).charCodeAt(0)),r){case 38:return t.replace(g,"$1"+e.trim());case 58:return e.trim()+t.replace(g,"$1"+e.trim());default:if(0<1*n&&0<t.indexOf("\f"))return t.replace(g,(58===e.charCodeAt(0)?"":"$1")+e.trim())}return e+t}function a(e,t,n,r){var o=e+";",s=2*t+3*n+4*r;if(944===s){e=o.indexOf(":",9)+1;var l=o.substring(e,o.length-1).trim();return l=o.substring(0,e).trim()+l+";",1===M||2===M&&i(l,1)?"-webkit-"+l+l:l}if(0===M||2===M&&!i(o,1))return o;switch(s){case 1015:return 97===o.charCodeAt(10)?"-webkit-"+o+o:o;case 951:return 116===o.charCodeAt(3)?"-webkit-"+o+o:o;case 963:return 110===o.charCodeAt(5)?"-webkit-"+o+o:o;case 1009:if(100!==o.charCodeAt(4))break;case 969:case 942:return"-webkit-"+o+o;case 978:return"-webkit-"+o+"-moz-"+o+o;case 1019:case 983:return"-webkit-"+o+"-moz-"+o+"-ms-"+o+o;case 883:if(45===o.charCodeAt(8))return"-webkit-"+o+o;if(0<o.indexOf("image-set(",11))return o.replace(E,"$1-webkit-$2")+o;break;case 932:if(45===o.charCodeAt(4))switch(o.charCodeAt(5)){case 103:return"-webkit-box-"+o.replace("-grow","")+"-webkit-"+o+"-ms-"+o.replace("grow","positive")+o;case 115:return"-webkit-"+o+"-ms-"+o.replace("shrink","negative")+o;case 98:return"-webkit-"+o+"-ms-"+o.replace("basis","preferred-size")+o}return"-webkit-"+o+"-ms-"+o+o;case 964:return"-webkit-"+o+"-ms-flex-"+o+o;case 1023:if(99!==o.charCodeAt(8))break;return"-webkit-box-pack"+(l=o.substring(o.indexOf(":",15)).replace("flex-","").replace("space-between","justify"))+"-webkit-"+o+"-ms-flex-pack"+l+o;case 1005:return p.test(o)?o.replace(h,":-webkit-")+o.replace(h,":-moz-")+o:o;case 1e3:switch(t=(l=o.substring(13).trim()).indexOf("-")+1,l.charCodeAt(0)+l.charCodeAt(t)){case 226:l=o.replace(_,"tb");break;case 232:l=o.replace(_,"tb-rl");break;case 220:l=o.replace(_,"lr");break;default:return o}return"-webkit-"+o+"-ms-"+l+o;case 1017:if(-1===o.indexOf("sticky",9))break;case 975:switch(t=(o=e).length-10,s=(l=(33===o.charCodeAt(t)?o.substring(0,t):o).substring(e.indexOf(":",7)+1).trim()).charCodeAt(0)+(0|l.charCodeAt(7))){case 203:if(111>l.charCodeAt(8))break;case 115:o=o.replace(l,"-webkit-"+l)+";"+o;break;case 207:case 102:o=o.replace(l,"-webkit-"+(102<s?"inline-":"")+"box")+";"+o.replace(l,"-webkit-"+l)+";"+o.replace(l,"-ms-"+l+"box")+";"+o}return o+";";case 938:if(45===o.charCodeAt(5))switch(o.charCodeAt(6)){case 105:return l=o.replace("-items",""),"-webkit-"+o+"-webkit-box-"+l+"-ms-flex-"+l+o;case 115:return"-webkit-"+o+"-ms-flex-item-"+o.replace(x,"")+o;default:return"-webkit-"+o+"-ms-flex-line-pack"+o.replace("align-content","").replace(x,"")+o}break;case 973:case 989:if(45!==o.charCodeAt(3)||122===o.charCodeAt(4))break;case 931:case 953:if(!0===C.test(e))return 115===(l=e.substring(e.indexOf(":")+1)).charCodeAt(0)?a(e.replace("stretch","fill-available"),t,n,r).replace(":fill-available",":stretch"):o.replace(l,"-webkit-"+l)+o.replace(l,"-moz-"+l.replace("fill-",""))+o;break;case 962:if(o="-webkit-"+o+(102===o.charCodeAt(5)?"-ms-"+o:"")+o,211===n+r&&105===o.charCodeAt(13)&&0<o.indexOf("transform",10))return o.substring(0,o.indexOf(";",27)+1).replace(d,"$1-webkit-$2")+o}return o}function i(e,t){var n=e.indexOf(1===t?":":"{"),r=e.substring(0,3!==t?n:10);return n=e.substring(n+1,e.length-1),L(2!==t?r:r.replace(k,"$1"),n,t)}function o(e,t){var n=a(t,t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2));return n!==t+";"?n.replace(S," or ($1)").substring(4):"("+t+")"}function s(e,t,n,r,a,i,o,s,l,u){for(var f,h=0,p=t;h<D;++h)switch(f=I[h].call(c,e,p,n,r,a,i,o,s,l,u)){case void 0:case!1:case!0:case null:break;default:p=f}if(p!==t)return p}function l(e){return void 0!==(e=e.prefix)&&(L=null,e?"function"!=typeof e?M=1:(M=2,L=e):M=0),l}function c(e,n){var r=e;if(33>r.charCodeAt(0)&&(r=r.trim()),r=[r],0<D){var a=s(-1,n,r,r,A,P,0,0,0,0);void 0!==a&&"string"==typeof a&&(n=a)}var i=t(T,r,n,0,0);return 0<D&&void 0!==(a=s(-2,i,r,r,A,P,i.length,0,0,0))&&(i=a),O=0,P=A=1,i}var u=/^\0+/g,f=/[\0\r\f]/g,h=/: */g,p=/zoo|gra/,d=/([,: ])(transform)/g,m=/,\r+?/g,g=/([\t\r\n ])*\f?&/g,y=/@(k\w+)\s*(\S*)\s*/,v=/::(place)/g,b=/:(read-only)/g,_=/[svh]\w+-[tblr]{2}/,w=/\(\s*(.*)\s*\)/g,S=/([\s\S]*?);/g,x=/-self|flex-/g,k=/[^]*?(:[rp][el]a[\w-]+)[^]*/,C=/stretch|:\s*\w+\-(?:conte|avail)/,E=/([^-])(image-set\()/,P=1,A=1,O=0,M=1,T=[],I=[],D=0,L=null,R=0;return c.use=function e(t){switch(t){case void 0:case null:D=I.length=0;break;default:if("function"==typeof t)I[D++]=t;else if("object"==typeof t)for(var n=0,r=t.length;n<r;++n)e(t[n]);else R=0|!!t}return e},c.set=l,void 0!==e&&l(e),c},c={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,msGridRow: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};var u=n(36289),f=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|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|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|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|popover|popoverTarget|popoverTargetAction|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|incremental|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|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)-.*))$/,h=(0,u.A)(function(e){return f.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91}),p=n(4146),d=n.n(p);function m(){return(m=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=function(e,t){for(var n=[e[0]],r=0,a=t.length;r<a;r+=1)n.push(t[r],e[r+1]);return n},y=function(e){return null!==e&&"object"==typeof e&&"[object Object]"===(e.toString?e.toString():Object.prototype.toString.call(e))&&!(0,i.typeOf)(e)},v=Object.freeze([]),b=Object.freeze({});function _(e){return"function"==typeof e}function w(e){return e.displayName||e.name||"Component"}function S(e){return e&&"string"==typeof e.styledComponentId}var x="undefined"!=typeof process&&void 0!==process.env&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",k="undefined"!=typeof window&&"HTMLElement"in window,C=Boolean("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env&&(void 0!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&""!==process.env.REACT_APP_SC_DISABLE_SPEEDY?"false"!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&process.env.REACT_APP_SC_DISABLE_SPEEDY:void 0!==process.env.SC_DISABLE_SPEEDY&&""!==process.env.SC_DISABLE_SPEEDY&&"false"!==process.env.SC_DISABLE_SPEEDY&&process.env.SC_DISABLE_SPEEDY));function E(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];throw new Error("An error occurred. See https://git.io/JUIaE#"+e+" for more information."+(n.length>0?" Args: "+n.join(", "):""))}var P=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e}var t=e.prototype;return t.indexOfGroup=function(e){for(var t=0,n=0;n<e;n++)t+=this.groupSizes[n];return t},t.insertRules=function(e,t){if(e>=this.groupSizes.length){for(var n=this.groupSizes,r=n.length,a=r;e>=a;)(a<<=1)<0&&E(16,""+e);this.groupSizes=new Uint32Array(a),this.groupSizes.set(n),this.length=a;for(var i=r;i<a;i++)this.groupSizes[i]=0}for(var o=this.indexOfGroup(e+1),s=0,l=t.length;s<l;s++)this.tag.insertRule(o,t[s])&&(this.groupSizes[e]++,o++)},t.clearGroup=function(e){if(e<this.length){var t=this.groupSizes[e],n=this.indexOfGroup(e),r=n+t;this.groupSizes[e]=0;for(var a=n;a<r;a++)this.tag.deleteRule(n)}},t.getGroup=function(e){var t="";if(e>=this.length||0===this.groupSizes[e])return t;for(var n=this.groupSizes[e],r=this.indexOfGroup(e),a=r+n,i=r;i<a;i++)t+=this.tag.getRule(i)+"\n";return t},e}(),A=new Map,O=new Map,M=1,T=function(e){if(A.has(e))return A.get(e);for(;O.has(M);)M++;var t=M++;return A.set(e,t),O.set(t,e),t},I=function(e){return O.get(e)},D=function(e,t){t>=M&&(M=t+1),A.set(e,t),O.set(t,e)},L="style["+x+'][data-styled-version="5.3.11"]',R=new RegExp("^"+x+'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)'),j=function(e,t,n){for(var r,a=n.split(","),i=0,o=a.length;i<o;i++)(r=a[i])&&e.registerName(t,r)},F=function(e,t){for(var n=(t.textContent||"").split("\n"),r=[],a=0,i=n.length;a<i;a++){var o=n[a].trim();if(o){var s=o.match(R);if(s){var l=0|parseInt(s[1],10),c=s[2];0!==l&&(D(c,l),j(e,c,s[3]),e.getTag().insertRules(l,r)),r.length=0}else r.push(o)}}},V=function(){return n.nc},N=function(e){var t=document.head,n=e||t,r=document.createElement("style"),a=function(e){for(var t=e.childNodes,n=t.length;n>=0;n--){var r=t[n];if(r&&1===r.nodeType&&r.hasAttribute(x))return r}}(n),i=void 0!==a?a.nextSibling:null;r.setAttribute(x,"active"),r.setAttribute("data-styled-version","5.3.11");var o=V();return o&&r.setAttribute("nonce",o),n.insertBefore(r,i),r},B=function(){function e(e){var t=this.element=N(e);t.appendChild(document.createTextNode("")),this.sheet=function(e){if(e.sheet)return e.sheet;for(var t=document.styleSheets,n=0,r=t.length;n<r;n++){var a=t[n];if(a.ownerNode===e)return a}E(17)}(t),this.length=0}var t=e.prototype;return t.insertRule=function(e,t){try{return this.sheet.insertRule(t,e),this.length++,!0}catch(e){return!1}},t.deleteRule=function(e){this.sheet.deleteRule(e),this.length--},t.getRule=function(e){var t=this.sheet.cssRules[e];return void 0!==t&&"string"==typeof t.cssText?t.cssText:""},e}(),z=function(){function e(e){var t=this.element=N(e);this.nodes=t.childNodes,this.length=0}var t=e.prototype;return t.insertRule=function(e,t){if(e<=this.length&&e>=0){var n=document.createTextNode(t),r=this.nodes[e];return this.element.insertBefore(n,r||null),this.length++,!0}return!1},t.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--},t.getRule=function(e){return e<this.length?this.nodes[e].textContent:""},e}(),H=function(){function e(e){this.rules=[],this.length=0}var t=e.prototype;return t.insertRule=function(e,t){return e<=this.length&&(this.rules.splice(e,0,t),this.length++,!0)},t.deleteRule=function(e){this.rules.splice(e,1),this.length--},t.getRule=function(e){return e<this.length?this.rules[e]:""},e}(),G=k,W={isServer:!k,useCSSOMInjection:!C},U=function(){function e(e,t,n){void 0===e&&(e=b),void 0===t&&(t={}),this.options=m({},W,{},e),this.gs=t,this.names=new Map(n),this.server=!!e.isServer,!this.server&&k&&G&&(G=!1,function(e){for(var t=document.querySelectorAll(L),n=0,r=t.length;n<r;n++){var a=t[n];a&&"active"!==a.getAttribute(x)&&(F(e,a),a.parentNode&&a.parentNode.removeChild(a))}}(this))}e.registerId=function(e){return T(e)};var t=e.prototype;return t.reconstructWithOptions=function(t,n){return void 0===n&&(n=!0),new e(m({},this.options,{},t),this.gs,n&&this.names||void 0)},t.allocateGSInstance=function(e){return this.gs[e]=(this.gs[e]||0)+1},t.getTag=function(){return this.tag||(this.tag=(n=(t=this.options).isServer,r=t.useCSSOMInjection,a=t.target,e=n?new H(a):r?new B(a):new z(a),new P(e)));var e,t,n,r,a},t.hasNameForId=function(e,t){return this.names.has(e)&&this.names.get(e).has(t)},t.registerName=function(e,t){if(T(e),this.names.has(e))this.names.get(e).add(t);else{var n=new Set;n.add(t),this.names.set(e,n)}},t.insertRules=function(e,t,n){this.registerName(e,t),this.getTag().insertRules(T(e),n)},t.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},t.clearRules=function(e){this.getTag().clearGroup(T(e)),this.clearNames(e)},t.clearTag=function(){this.tag=void 0},t.toString=function(){return function(e){for(var t=e.getTag(),n=t.length,r="",a=0;a<n;a++){var i=I(a);if(void 0!==i){var o=e.names.get(i),s=t.getGroup(a);if(o&&s&&o.size){var l=x+".g"+a+'[id="'+i+'"]',c="";void 0!==o&&o.forEach(function(e){e.length>0&&(c+=e+",")}),r+=""+s+l+'{content:"'+c+'"}\n'}}}return r}(this)},e}(),$=/(a)(d)/gi,q=function(e){return String.fromCharCode(e+(e>25?39:97))};function Y(e){var t,n="";for(t=Math.abs(e);t>52;t=t/52|0)n=q(t%52)+n;return(q(t%52)+n).replace($,"$1-$2")}var K=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},X=function(e){return K(5381,e)};function J(e){for(var t=0;t<e.length;t+=1){var n=e[t];if(_(n)&&!S(n))return!1}return!0}var Z=X("5.3.11"),Q=function(){function e(e,t,n){this.rules=e,this.staticRulesId="",this.isStatic=(void 0===n||n.isStatic)&&J(e),this.componentId=t,this.baseHash=K(Z,t),this.baseStyle=n,U.registerId(t)}return e.prototype.generateAndInjectStyles=function(e,t,n){var r=this.componentId,a=[];if(this.baseStyle&&a.push(this.baseStyle.generateAndInjectStyles(e,t,n)),this.isStatic&&!n.hash)if(this.staticRulesId&&t.hasNameForId(r,this.staticRulesId))a.push(this.staticRulesId);else{var i=ge(this.rules,e,t,n).join(""),o=Y(K(this.baseHash,i)>>>0);if(!t.hasNameForId(r,o)){var s=n(i,"."+o,void 0,r);t.insertRules(r,o,s)}a.push(o),this.staticRulesId=o}else{for(var l=this.rules.length,c=K(this.baseHash,n.hash),u="",f=0;f<l;f++){var h=this.rules[f];if("string"==typeof h)u+=h;else if(h){var p=ge(h,e,t,n),d=Array.isArray(p)?p.join(""):p;c=K(c,d+f),u+=d}}if(u){var m=Y(c>>>0);if(!t.hasNameForId(r,m)){var g=n(u,"."+m,void 0,r);t.insertRules(r,m,g)}a.push(m)}}return a.join(" ")},e}(),ee=/^\s*\/\/.*$/gm,te=[":","[",".","#"];function ne(e){var t,n,r,a,i=void 0===e?b:e,o=i.options,s=void 0===o?b:o,c=i.plugins,u=void 0===c?v:c,f=new l(s),h=[],p=function(e){function t(t){if(t)try{e(t+"}")}catch(e){}}return function(n,r,a,i,o,s,l,c,u,f){switch(n){case 1:if(0===u&&64===r.charCodeAt(0))return e(r+";"),"";break;case 2:if(0===c)return r+"";break;case 3:switch(c){case 102:case 112:return e(a[0]+r),"";default:return r+(0===f?"":"")}case-2:r.split("}").forEach(t)}}}(function(e){h.push(e)}),d=function(e,r,i){return 0===r&&-1!==te.indexOf(i[n.length])||i.match(a)?e:"."+t};function m(e,i,o,s){void 0===s&&(s="&");var l=e.replace(ee,""),c=i&&o?o+" "+i+" { "+l+" }":l;return t=s,n=i,r=new RegExp("\\"+n+"\\b","g"),a=new RegExp("(\\"+n+"\\b){2,}"),f(o||!i?"":i,c)}return f.use([].concat(u,[function(e,t,a){2===e&&a.length&&a[0].lastIndexOf(n)>0&&(a[0]=a[0].replace(r,d))},p,function(e){if(-2===e){var t=h;return h=[],t}}])),m.hash=u.length?u.reduce(function(e,t){return t.name||E(15),K(e,t.name)},5381).toString():"",m}var re=a().createContext(),ae=(re.Consumer,a().createContext()),ie=(ae.Consumer,new U),oe=ne();function se(){return(0,r.useContext)(re)||ie}function le(e){var t=(0,r.useState)(e.stylisPlugins),n=t[0],i=t[1],o=se(),l=(0,r.useMemo)(function(){var t=o;return e.sheet?t=e.sheet:e.target&&(t=t.reconstructWithOptions({target:e.target},!1)),e.disableCSSOMInjection&&(t=t.reconstructWithOptions({useCSSOMInjection:!1})),t},[e.disableCSSOMInjection,e.sheet,e.target]),c=(0,r.useMemo)(function(){return ne({options:{prefix:!e.disableVendorPrefixes},plugins:n})},[e.disableVendorPrefixes,n]);return(0,r.useEffect)(function(){s()(n,e.stylisPlugins)||i(e.stylisPlugins)},[e.stylisPlugins]),a().createElement(re.Provider,{value:l},a().createElement(ae.Provider,{value:c},e.children))}var ce=function(){function e(e,t){var n=this;this.inject=function(e,t){void 0===t&&(t=oe);var r=n.name+t.hash;e.hasNameForId(n.id,r)||e.insertRules(n.id,r,t(n.rules,r,"@keyframes"))},this.toString=function(){return E(12,String(n.name))},this.name=e,this.id="sc-keyframes-"+e,this.rules=t}return e.prototype.getName=function(e){return void 0===e&&(e=oe),this.name+e.hash},e}(),ue=/([A-Z])/,fe=/([A-Z])/g,he=/^ms-/,pe=function(e){return"-"+e.toLowerCase()};function de(e){return ue.test(e)?e.replace(fe,pe).replace(he,"-ms-"):e}var me=function(e){return null==e||!1===e||""===e};function ge(e,t,n,r){if(Array.isArray(e)){for(var a,i=[],o=0,s=e.length;o<s;o+=1)""!==(a=ge(e[o],t,n,r))&&(Array.isArray(a)?i.push.apply(i,a):i.push(a));return i}return me(e)?"":S(e)?"."+e.styledComponentId:_(e)?"function"!=typeof(l=e)||l.prototype&&l.prototype.isReactComponent||!t?e:ge(e(t),t,n,r):e instanceof ce?n?(e.inject(n,r),e.getName(r)):e:y(e)?function e(t,n){var r,a,i=[];for(var o in t)t.hasOwnProperty(o)&&!me(t[o])&&(Array.isArray(t[o])&&t[o].isCss||_(t[o])?i.push(de(o)+":",t[o],";"):y(t[o])?i.push.apply(i,e(t[o],o)):i.push(de(o)+": "+(r=o,(null==(a=t[o])||"boolean"==typeof a||""===a?"":"number"!=typeof a||0===a||r in c||r.startsWith("--")?String(a).trim():a+"px")+";")));return n?[n+" {"].concat(i,["}"]):i}(e):e.toString();var l}var ye=function(e){return Array.isArray(e)&&(e.isCss=!0),e};function ve(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return _(e)||y(e)?ye(ge(g(v,[e].concat(n)))):0===n.length&&1===e.length&&"string"==typeof e[0]?e:ye(ge(g(e,n)))}new Set;var be=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,_e=/(^-|-$)/g;function we(e){return e.replace(be,"-").replace(_e,"")}var Se=function(e){return Y(X(e)>>>0)};function xe(e){return"string"==typeof e&&!0}var ke=function(e){return"function"==typeof e||"object"==typeof e&&null!==e&&!Array.isArray(e)},Ce=function(e){return"__proto__"!==e&&"constructor"!==e&&"prototype"!==e};function Ee(e,t,n){var r=e[n];ke(t)&&ke(r)?Pe(r,t):e[n]=t}function Pe(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];for(var a=0,i=n;a<i.length;a++){var o=i[a];if(ke(o))for(var s in o)Ce(s)&&Ee(e,o[s],s)}return e}var Ae=a().createContext();Ae.Consumer;var Oe={};function Me(e,t,n){var i=S(e),o=!xe(e),s=t.attrs,l=void 0===s?v:s,c=t.componentId,u=void 0===c?function(e,t){var n="string"!=typeof e?"sc":we(e);Oe[n]=(Oe[n]||0)+1;var r=n+"-"+Se("5.3.11"+n+Oe[n]);return t?t+"-"+r:r}(t.displayName,t.parentComponentId):c,f=t.displayName,p=void 0===f?function(e){return xe(e)?"styled."+e:"Styled("+w(e)+")"}(e):f,g=t.displayName&&t.componentId?we(t.displayName)+"-"+t.componentId:t.componentId||u,y=i&&e.attrs?Array.prototype.concat(e.attrs,l).filter(Boolean):l,x=t.shouldForwardProp;i&&e.shouldForwardProp&&(x=t.shouldForwardProp?function(n,r,a){return e.shouldForwardProp(n,r,a)&&t.shouldForwardProp(n,r,a)}:e.shouldForwardProp);var k,C=new Q(n,g,i?e.componentStyle:void 0),E=C.isStatic&&0===l.length,P=function(e,t){return function(e,t,n,a){var i=e.attrs,o=e.componentStyle,s=e.defaultProps,l=e.foldedComponentIds,c=e.shouldForwardProp,u=e.styledComponentId,f=e.target,p=function(e,t,n){void 0===e&&(e=b);var r=m({},t,{theme:e}),a={};return n.forEach(function(e){var t,n,i,o=e;for(t in _(o)&&(o=o(r)),o)r[t]=a[t]="className"===t?(n=a[t],i=o[t],n&&i?n+" "+i:n||i):o[t]}),[r,a]}(function(e,t,n){return void 0===n&&(n=b),e.theme!==n.theme&&e.theme||t||n.theme}(t,(0,r.useContext)(Ae),s)||b,t,i),d=p[0],g=p[1],y=function(e,t,n){var a=se(),i=(0,r.useContext)(ae)||oe;return t?e.generateAndInjectStyles(b,a,i):e.generateAndInjectStyles(n,a,i)}(o,a,d),v=n,w=g.$as||t.$as||g.as||t.as||f,S=xe(w),x=g!==t?m({},t,{},g):t,k={};for(var C in x)"$"!==C[0]&&"as"!==C&&("forwardedAs"===C?k.as=x[C]:(c?c(C,h,w):!S||h(C))&&(k[C]=x[C]));return t.style&&g.style!==t.style&&(k.style=m({},t.style,{},g.style)),k.className=Array.prototype.concat(l,u,y!==u?y:null,t.className,g.className).filter(Boolean).join(" "),k.ref=v,(0,r.createElement)(w,k)}(k,e,t,E)};return P.displayName=p,(k=a().forwardRef(P)).attrs=y,k.componentStyle=C,k.displayName=p,k.shouldForwardProp=x,k.foldedComponentIds=i?Array.prototype.concat(e.foldedComponentIds,e.styledComponentId):v,k.styledComponentId=g,k.target=i?e.target:e,k.withComponent=function(e){var r=t.componentId,a=function(e,t){if(null==e)return{};var n,r,a={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(t,["componentId"]),i=r&&r+"-"+(xe(e)?e:we(w(e)));return Me(e,m({},a,{attrs:y,componentId:i}),n)},Object.defineProperty(k,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(t){this._foldedDefaultProps=i?Pe({},e.defaultProps,t):t}}),Object.defineProperty(k,"toString",{value:function(){return"."+k.styledComponentId}}),o&&d()(k,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0,withComponent:!0}),k}var Te,Ie=function(e){return function e(t,n,r){if(void 0===r&&(r=b),!(0,i.isValidElementType)(n))return E(1,String(n));var a=function(){return t(n,r,ve.apply(void 0,arguments))};return a.withConfig=function(a){return e(t,n,m({},r,{},a))},a.attrs=function(a){return e(t,n,m({},r,{attrs:Array.prototype.concat(r.attrs,a).filter(Boolean)}))},a}(Me,e)};function De(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var a=ve.apply(void 0,[e].concat(n)).join(""),i=Se(a);return new ce(i,a)}["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","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","textPath","tspan"].forEach(function(e){Ie[e]=Ie(e)}),(Te=function(e,t){this.rules=e,this.componentId=t,this.isStatic=J(e),U.registerId(this.componentId+1)}.prototype).createStyles=function(e,t,n,r){var a=r(ge(this.rules,t,n,r).join(""),""),i=this.componentId+e;n.insertRules(i,i,a)},Te.removeStyles=function(e,t){t.clearRules(this.componentId+e)},Te.renderStyles=function(e,t,n,r){e>2&&U.registerId(this.componentId+e),this.removeStyles(e,n),this.createStyles(e,t,n,r)},function(){var e=function(){var e=this;this._emitSheetCSS=function(){var t=e.instance.toString();if(!t)return"";var n=V();return"<style "+[n&&'nonce="'+n+'"',x+'="true"','data-styled-version="5.3.11"'].filter(Boolean).join(" ")+">"+t+"</style>"},this.getStyleTags=function(){return e.sealed?E(2):e._emitSheetCSS()},this.getStyleElement=function(){var t;if(e.sealed)return E(2);var n=((t={})[x]="",t["data-styled-version"]="5.3.11",t.dangerouslySetInnerHTML={__html:e.instance.toString()},t),r=V();return r&&(n.nonce=r),[a().createElement("style",m({},n,{key:"sc-0-0"}))]},this.seal=function(){e.sealed=!0},this.instance=new U({isServer:!0}),this.sealed=!1}.prototype;e.collectStyles=function(e){return this.sealed?E(2):a().createElement(le,{sheet:this.instance},e)},e.interleaveWithNodeStream=function(e){return E(3)}}();const Le=Ie;var Re,je,Fe=function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},Ve=242.776657104492,Ne=De(Re||(Re=Fe(["\n  12.5% {\n    stroke-dasharray: ","px, ","px;\n    stroke-dashoffset: -","px;\n  }\n  43.75% {\n    stroke-dasharray: ","px, ","px;\n    stroke-dashoffset: -","px;\n  }\n  100% {\n    stroke-dasharray: ","px, ","px;\n    stroke-dashoffset: -","px;\n  }\n"],["\n  12.5% {\n    stroke-dasharray: ","px, ","px;\n    stroke-dashoffset: -","px;\n  }\n  43.75% {\n    stroke-dasharray: ","px, ","px;\n    stroke-dashoffset: -","px;\n  }\n  100% {\n    stroke-dasharray: ","px, ","px;\n    stroke-dashoffset: -","px;\n  }\n"])),.14*Ve,Ve,.11*Ve,.35*Ve,Ve,.35*Ve,.01*Ve,Ve,.99*Ve);Le.path(je||(je=Fe(["\n  stroke-dasharray: ","px, ",";\n  stroke-dashoffset: 0;\n  animation: "," ","s linear infinite;\n"],["\n  stroke-dasharray: ","px, ",";\n  stroke-dashoffset: 0;\n  animation: "," ","s linear infinite;\n"])),.01*Ve,Ve,Ne,1.6);var Be,ze,He,Ge,We,Ue=function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},$e=De(Be||(Be=Ue(["\n to {\n    transform: rotate(360deg);\n  }\n"],["\n to {\n    transform: rotate(360deg);\n  }\n"])));Le.svg(ze||(ze=Ue(["\n  animation: "," 0.75s steps(12, end) infinite;\n  animation-duration: ","s;\n"],["\n  animation: "," 0.75s steps(12, end) infinite;\n  animation-duration: ","s;\n"])),$e,(Ge="speed",We="0.75",function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(void 0!==e[Ge])return e[Ge];if(Ge&&Ge.indexOf(".")>0){for(var t=Ge.split("."),n=t.length,r=e[t[0]],a=1;null!=r&&a<n;)r=r[t[a]],a+=1;if(void 0!==r)return r}return We})),Le.polyline(He||(He=Ue(["\n  stroke-width: ","px;\n  stroke-linecap: round;\n\n  &:nth-child(12n + 0){\n    stroke-opacity: 0.08;\n  }\n\n  &:nth-child(12n + 1){\n    stroke-opacity: 0.17;\n  }\n\n  &:nth-child(12n + 2){\n    stroke-opacity: 0.25;\n  }\n\n  &:nth-child(12n + 3){\n    stroke-opacity: 0.33;\n  }\n\n  &:nth-child(12n + 4){\n    stroke-opacity: 0.42;\n  }\n\n  &:nth-child(12n + 5){\n    stroke-opacity: 0.5;\n  }\n\n  &:nth-child(12n + 6){\n    stroke-opacity: 0.58;\n  }\n\n  &:nth-child(12n + 7){\n    stroke-opacity: 0.66;\n  }\n\n  &:nth-child(12n + 8){\n    stroke-opacity: 0.75;\n  }\n\n  &:nth-child(12n + 9){\n    stroke-opacity: 0.83;\n  }\n\n  &:nth-child(12n + 11){\n    stroke-opacity: 0.92;\n  }\n"],["\n  stroke-width: ","px;\n  stroke-linecap: round;\n\n  &:nth-child(12n + 0){\n    stroke-opacity: 0.08;\n  }\n\n  &:nth-child(12n + 1){\n    stroke-opacity: 0.17;\n  }\n\n  &:nth-child(12n + 2){\n    stroke-opacity: 0.25;\n  }\n\n  &:nth-child(12n + 3){\n    stroke-opacity: 0.33;\n  }\n\n  &:nth-child(12n + 4){\n    stroke-opacity: 0.42;\n  }\n\n  &:nth-child(12n + 5){\n    stroke-opacity: 0.5;\n  }\n\n  &:nth-child(12n + 6){\n    stroke-opacity: 0.58;\n  }\n\n  &:nth-child(12n + 7){\n    stroke-opacity: 0.66;\n  }\n\n  &:nth-child(12n + 8){\n    stroke-opacity: 0.75;\n  }\n\n  &:nth-child(12n + 9){\n    stroke-opacity: 0.83;\n  }\n\n  &:nth-child(12n + 11){\n    stroke-opacity: 0.92;\n  }\n"])),function(e){return e.width});var qe=n(77532),Ye=n(97637),Ke=function(){return Ke=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var a in t=arguments[n])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e},Ke.apply(this,arguments)};const Xe=function(e){var t=e.height,n=void 0===t?80:t,r=e.width,i=void 0===r?80:r,o=e.radius,s=void 0===o?9:o,l=e.color,c=void 0===l?Ye.O:l,u=e.ariaLabel,f=void 0===u?"three-dots-loading":u,h=e.wrapperStyle,p=e.wrapperClass,d=e.visible,m=void 0===d||d;return a().createElement("div",Ke({style:Ke(Ke({},(0,qe.h)(m)),h),className:p,"data-testid":"three-dots-loading","aria-label":f},Ye.p),a().createElement("svg",{width:i,height:n,viewBox:"0 0 120 30",xmlns:"http://www.w3.org/2000/svg",fill:c,"data-testid":"three-dots-svg"},a().createElement("circle",{cx:"15",cy:"15",r:Number(s)+6},a().createElement("animate",{attributeName:"r",from:"15",to:"15",begin:"0s",dur:"0.8s",values:"15;9;15",calcMode:"linear",repeatCount:"indefinite"}),a().createElement("animate",{attributeName:"fill-opacity",from:"1",to:"1",begin:"0s",dur:"0.8s",values:"1;.5;1",calcMode:"linear",repeatCount:"indefinite"})),a().createElement("circle",{cx:"60",cy:"15",r:s,attributeName:"fill-opacity",from:"1",to:"0.3"},a().createElement("animate",{attributeName:"r",from:"9",to:"9",begin:"0s",dur:"0.8s",values:"9;15;9",calcMode:"linear",repeatCount:"indefinite"}),a().createElement("animate",{attributeName:"fill-opacity",from:"0.5",to:"0.5",begin:"0s",dur:"0.8s",values:".5;1;.5",calcMode:"linear",repeatCount:"indefinite"})),a().createElement("circle",{cx:"105",cy:"15",r:Number(s)+6},a().createElement("animate",{attributeName:"r",from:"15",to:"15",begin:"0s",dur:"0.8s",values:"15;9;15",calcMode:"linear",repeatCount:"indefinite"}),a().createElement("animate",{attributeName:"fill-opacity",from:"1",to:"1",begin:"0s",dur:"0.8s",values:"1;.5;1",calcMode:"linear",repeatCount:"indefinite"}))))};var Je,Ze,Qe,et=function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},tt=De(Je||(Je=et(["\n to {\n    stroke-dashoffset: 136;\n  }\n"],["\n to {\n    stroke-dashoffset: 136;\n  }\n"])));Le.polygon(Ze||(Ze=et(["\n  stroke-dasharray: 17;\n  animation: "," 2.5s cubic-bezier(0.35, 0.04, 0.63, 0.95) infinite;\n"],["\n  stroke-dasharray: 17;\n  animation: "," 2.5s cubic-bezier(0.35, 0.04, 0.63, 0.95) infinite;\n"])),tt),Le.svg(Qe||(Qe=et(["\n  transform-origin: 50% 65%;\n"],["\n  transform-origin: 50% 65%;\n"])))},97637(e,t,n){"use strict";n.d(t,{O:()=>r,p:()=>a});var r="#4fa94d",a=/^(5065|6573)$/.test(n.j)?{"aria-busy":!0,role:"status"}:null},88021(e,t,n){"use strict";function r(e){return r="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},r(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a,i=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!=typeof e)return{default:e};var t=c();if(t&&t.has(e))return t.get(e);var n={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var o=a?Object.getOwnPropertyDescriptor(e,i):null;o&&(o.get||o.set)?Object.defineProperty(n,i,o):n[i]=e[i]}return n.default=e,t&&t.set(e,n),n}(n(51609)),o=(a=n(30115))&&a.__esModule?a:{default:a},s=n(7604),l=n(75635);function c(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return c=function(){return 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},u.apply(this,arguments)}function f(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 h(e,t){return h=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},h(e,t)}function p(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function d(e){return d=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},d(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}var g=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new 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&&h(e,t)}(g,e);var t,n,a,s,c=(a=g,s=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(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(){var e,t=d(a);if(s){var n=d(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?p(e):t}(this,e)});function g(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,g);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return m(p(e=c.call.apply(c,[this].concat(n))),"mounted",!1),m(p(e),"isReady",!1),m(p(e),"isPlaying",!1),m(p(e),"isLoading",!0),m(p(e),"loadOnReady",null),m(p(e),"startOnPlay",!0),m(p(e),"seekOnPlay",null),m(p(e),"onDurationCalled",!1),m(p(e),"handlePlayerMount",function(t){e.player||(e.player=t,e.player.load(e.props.url)),e.progress()}),m(p(e),"getInternalPlayer",function(t){return e.player?e.player[t]:null}),m(p(e),"progress",function(){if(e.props.url&&e.player&&e.isReady){var t=e.getCurrentTime()||0,n=e.getSecondsLoaded(),r=e.getDuration();if(r){var a={playedSeconds:t,played:t/r};null!==n&&(a.loadedSeconds=n,a.loaded=n/r),a.playedSeconds===e.prevPlayed&&a.loadedSeconds===e.prevLoaded||e.props.onProgress(a),e.prevPlayed=a.playedSeconds,e.prevLoaded=a.loadedSeconds}}e.progressTimeout=setTimeout(e.progress,e.props.progressFrequency||e.props.progressInterval)}),m(p(e),"handleReady",function(){if(e.mounted){e.isReady=!0,e.isLoading=!1;var t=e.props,n=t.onReady,r=t.playing,a=t.volume,i=t.muted;n(),i||null===a||e.player.setVolume(a),e.loadOnReady?(e.player.load(e.loadOnReady,!0),e.loadOnReady=null):r&&e.player.play(),e.handleDurationCheck()}}),m(p(e),"handlePlay",function(){e.isPlaying=!0,e.isLoading=!1;var t=e.props,n=t.onStart,r=t.onPlay,a=t.playbackRate;e.startOnPlay&&(e.player.setPlaybackRate&&1!==a&&e.player.setPlaybackRate(a),n(),e.startOnPlay=!1),r(),e.seekOnPlay&&(e.seekTo(e.seekOnPlay),e.seekOnPlay=null),e.handleDurationCheck()}),m(p(e),"handlePause",function(t){e.isPlaying=!1,e.isLoading||e.props.onPause(t)}),m(p(e),"handleEnded",function(){var t=e.props,n=t.activePlayer,r=t.loop,a=t.onEnded;n.loopOnEnded&&r&&e.seekTo(0),r||(e.isPlaying=!1,a())}),m(p(e),"handleError",function(){var t;e.isLoading=!1,(t=e.props).onError.apply(t,arguments)}),m(p(e),"handleDurationCheck",function(){clearTimeout(e.durationCheckTimeout);var t=e.getDuration();t?e.onDurationCalled||(e.props.onDuration(t),e.onDurationCalled=!0):e.durationCheckTimeout=setTimeout(e.handleDurationCheck,100)}),m(p(e),"handleLoaded",function(){e.isLoading=!1}),e}return t=g,n=[{key:"componentDidMount",value:function(){this.mounted=!0}},{key:"componentWillUnmount",value:function(){clearTimeout(this.progressTimeout),clearTimeout(this.durationCheckTimeout),this.isReady&&this.props.stopOnUnmount&&(this.player.stop(),this.player.disablePIP&&this.player.disablePIP()),this.mounted=!1}},{key:"componentDidUpdate",value:function(e){var t=this;if(this.player){var n=this.props,r=n.url,a=n.playing,i=n.volume,s=n.muted,c=n.playbackRate,u=n.pip,f=n.loop,h=n.activePlayer,p=n.disableDeferredLoading;if(!(0,o.default)(e.url,r)){if(this.isLoading&&!h.forceLoad&&!p&&!(0,l.isMediaStream)(r))return console.warn("ReactPlayer: the attempt to load ".concat(r," is being deferred until the player has loaded")),void(this.loadOnReady=r);this.isLoading=!0,this.startOnPlay=!0,this.onDurationCalled=!1,this.player.load(r,this.isReady)}e.playing||!a||this.isPlaying||this.player.play(),e.playing&&!a&&this.isPlaying&&this.player.pause(),!e.pip&&u&&this.player.enablePIP&&this.player.enablePIP(),e.pip&&!u&&this.player.disablePIP&&this.player.disablePIP(),e.volume!==i&&null!==i&&this.player.setVolume(i),e.muted!==s&&(s?this.player.mute():(this.player.unmute(),null!==i&&setTimeout(function(){return t.player.setVolume(i)}))),e.playbackRate!==c&&this.player.setPlaybackRate&&this.player.setPlaybackRate(c),e.loop!==f&&this.player.setLoop&&this.player.setLoop(f)}}},{key:"getDuration",value:function(){return this.isReady?this.player.getDuration():null}},{key:"getCurrentTime",value:function(){return this.isReady?this.player.getCurrentTime():null}},{key:"getSecondsLoaded",value:function(){return this.isReady?this.player.getSecondsLoaded():null}},{key:"seekTo",value:function(e,t,n){var r=this;if(this.isReady){if(t?"fraction"===t:e>0&&e<1){var a=this.player.getDuration();return a?void this.player.seekTo(a*e,n):void console.warn("ReactPlayer: could not seek using fraction – duration not yet available")}this.player.seekTo(e,n)}else 0!==e&&(this.seekOnPlay=e,setTimeout(function(){r.seekOnPlay=null},5e3))}},{key:"render",value:function(){var e=this.props.activePlayer;return e?i.default.createElement(e,u({},this.props,{onMount:this.handlePlayerMount,onReady:this.handleReady,onPlay:this.handlePlay,onPause:this.handlePause,onEnded:this.handleEnded,onLoaded:this.handleLoaded,onError:this.handleError})):null}}],n&&f(t.prototype,n),g}(i.Component);t.default=g,m(g,"displayName","Player"),m(g,"propTypes",s.propTypes),m(g,"defaultProps",s.defaultProps)},66734(e,t,n){"use strict";function r(e){return r="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},r(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!=typeof e)return{default:e};var t=i();if(t&&t.has(e))return t.get(e);var n={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var s=a?Object.getOwnPropertyDescriptor(e,o):null;s&&(s.get||s.set)?Object.defineProperty(n,o,s):n[o]=e[o]}return n.default=e,t&&t.set(e,n),n}(n(51609));function i(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return i=function(){return e},e}function o(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 s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach(function(t){h(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function l(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 c(e,t){return c=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},c(e,t)}function u(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function f(e){return f=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},f(e)}function h(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var p="64px",d={},m=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new 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&&c(e,t)}(g,e);var t,n,i,o,m=(i=g,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(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(){var e,t=f(i);if(o){var n=f(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?u(e):t}(this,e)});function g(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,g);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return h(u(e=m.call.apply(m,[this].concat(n))),"mounted",!1),h(u(e),"state",{image:null}),h(u(e),"handleKeyPress",function(t){"Enter"!==t.key&&" "!==t.key||e.props.onClick()}),e}return t=g,(n=[{key:"componentDidMount",value:function(){this.mounted=!0,this.fetchImage(this.props)}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.url,r=t.light;e.url===n&&e.light===r||this.fetchImage(this.props)}},{key:"componentWillUnmount",value:function(){this.mounted=!1}},{key:"fetchImage",value:function(e){var t=this,n=e.url,r=e.light,i=e.oEmbedUrl;if(!a.default.isValidElement(r))if("string"!=typeof r){if(!d[n])return this.setState({image:null}),window.fetch(i.replace("{url}",n)).then(function(e){return e.json()}).then(function(e){if(e.thumbnail_url&&t.mounted){var r=e.thumbnail_url.replace("height=100","height=480").replace("-d_295x166","-d_640");t.setState({image:r}),d[n]=r}});this.setState({image:d[n]})}else this.setState({image:r})}},{key:"render",value:function(){var e=this.props,t=e.light,n=e.onClick,r=e.playIcon,i=e.previewTabIndex,o=this.state.image,l=a.default.isValidElement(t),c={display:"flex",alignItems:"center",justifyContent:"center"},u={preview:s({width:"100%",height:"100%",backgroundImage:o&&!l?"url(".concat(o,")"):void 0,backgroundSize:"cover",backgroundPosition:"center",cursor:"pointer"},c),shadow:s({background:"radial-gradient(rgb(0, 0, 0, 0.3), rgba(0, 0, 0, 0) 60%)",borderRadius:p,width:p,height:p,position:l?"absolute":void 0},c),playIcon:{borderStyle:"solid",borderWidth:"16px 0 16px 26px",borderColor:"transparent transparent transparent white",marginLeft:"7px"}},f=a.default.createElement("div",{style:u.shadow,className:"react-player__shadow"},a.default.createElement("div",{style:u.playIcon,className:"react-player__play-icon"}));return a.default.createElement("div",{style:u.preview,className:"react-player__preview",onClick:n,tabIndex:i,onKeyPress:this.handleKeyPress},l?t:null,r||f)}}])&&l(t.prototype,n),g}(a.Component);t.default=m},15580(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createReactPlayer=void 0;var r=x(n(51609)),a=u(n(14744)),i=u(n(41811)),o=u(n(30115)),s=n(7604),l=n(75635),c=u(n(88021));function u(e){return e&&e.__esModule?e:{default:e}}function f(e){return f="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},f(e)}function h(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 p(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?h(Object(n),!0).forEach(function(t){w(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):h(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function d(){return d=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},d.apply(this,arguments)}function m(e){return function(e){if(Array.isArray(e))return g(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return g(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)?g(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function g(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function y(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 v(e,t){return v=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},v(e,t)}function b(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function _(e){return _=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},_(e)}function w(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function S(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return S=function(){return e},e}function x(e){if(e&&e.__esModule)return e;if(null===e||"object"!==f(e)&&"function"!=typeof e)return{default:e};var t=S();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)){var i=r?Object.getOwnPropertyDescriptor(e,a):null;i&&(i.get||i.set)?Object.defineProperty(n,a,i):n[a]=e[a]}return n.default=e,t&&t.set(e,n),n}var k=(0,r.lazy)(function(){return Promise.resolve().then(function(){return x(n(66734))})}),C="undefined"!=typeof window&&window.document,E="undefined"!=typeof globalThis&&globalThis.window&&globalThis.window.document,P=Object.keys(s.propTypes),A=C||E?r.Suspense:function(){return null},O=[];t.createReactPlayer=function(e,t){var n,u;return u=n=function(n){!function(e,t){if("function"!=typeof t&&null!==t)throw new 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&&v(e,t)}(C,n);var u,h,g,S,x=(g=C,S=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(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(){var e,t=_(g);if(S){var n=_(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){return!t||"object"!==f(t)&&"function"!=typeof t?b(e):t}(this,e)});function C(){var n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,C);for(var o=arguments.length,u=new Array(o),f=0;f<o;f++)u[f]=arguments[f];return w(b(n=x.call.apply(x,[this].concat(u))),"state",{showPreview:!!n.props.light}),w(b(n),"references",{wrapper:function(e){n.wrapper=e},player:function(e){n.player=e}}),w(b(n),"handleClickPreview",function(e){n.setState({showPreview:!1}),n.props.onClickPreview(e)}),w(b(n),"showPreview",function(){n.setState({showPreview:!0})}),w(b(n),"getDuration",function(){return n.player?n.player.getDuration():null}),w(b(n),"getCurrentTime",function(){return n.player?n.player.getCurrentTime():null}),w(b(n),"getSecondsLoaded",function(){return n.player?n.player.getSecondsLoaded():null}),w(b(n),"getInternalPlayer",function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"player";return n.player?n.player.getInternalPlayer(e):null}),w(b(n),"seekTo",function(e,t,r){if(!n.player)return null;n.player.seekTo(e,t,r)}),w(b(n),"handleReady",function(){n.props.onReady(b(n))}),w(b(n),"getActivePlayer",(0,i.default)(function(n){for(var r=0,a=[].concat(O,m(e));r<a.length;r++){var i=a[r];if(i.canPlay(n))return i}return t||null})),w(b(n),"getConfig",(0,i.default)(function(e,t){var r=n.props.config;return a.default.all([s.defaultProps.config,s.defaultProps.config[t]||{},r,r[t]||{}])})),w(b(n),"getAttributes",(0,i.default)(function(e){return(0,l.omit)(n.props,P)})),w(b(n),"renderActivePlayer",function(e){if(!e)return null;var t=n.getActivePlayer(e);if(!t)return null;var a=n.getConfig(e,t.key);return r.default.createElement(c.default,d({},n.props,{key:t.key,ref:n.references.player,config:a,activePlayer:t.lazyPlayer||t,onReady:n.handleReady}))}),n}return u=C,h=[{key:"shouldComponentUpdate",value:function(e,t){return!(0,o.default)(this.props,e)||!(0,o.default)(this.state,t)}},{key:"componentDidUpdate",value:function(e){var t=this.props.light;!e.light&&t&&this.setState({showPreview:!0}),e.light&&!t&&this.setState({showPreview:!1})}},{key:"renderPreview",value:function(e){if(!e)return null;var t=this.props,n=t.light,a=t.playIcon,i=t.previewTabIndex,o=t.oEmbedUrl;return r.default.createElement(k,{url:e,light:n,playIcon:a,previewTabIndex:i,oEmbedUrl:o,onClick:this.handleClickPreview})}},{key:"render",value:function(){var e=this.props,t=e.url,n=e.style,a=e.width,i=e.height,o=e.fallback,s=e.wrapper,l=this.state.showPreview,c=this.getAttributes(t),u="string"==typeof s?this.references.wrapper:void 0;return r.default.createElement(s,d({ref:u,style:p(p({},n),{},{width:a,height:i})},c),r.default.createElement(A,{fallback:o},l?this.renderPreview(t):this.renderActivePlayer(t)))}}],h&&y(u.prototype,h),C}(r.Component),w(n,"displayName","ReactPlayer"),w(n,"propTypes",s.propTypes),w(n,"defaultProps",s.defaultProps),w(n,"addCustomPlayer",function(e){O.push(e)}),w(n,"removeCustomPlayers",function(){O.length=0}),w(n,"canPlay",function(t){for(var n=0,r=[].concat(O,m(e));n<r.length;n++)if(r[n].canPlay(t))return!0;return!1}),w(n,"canEnablePIP",function(t){for(var n=0,r=[].concat(O,m(e));n<r.length;n++){var a=r[n];if(a.canEnablePIP&&a.canEnablePIP(t))return!0}return!1}),u}},13554(e,t,n){"use strict";t.A=void 0;var r,a=(r=n(97015))&&r.__esModule?r:{default:r},i=n(15580),o=a.default[a.default.length-1],s=(0,i.createReactPlayer)(a.default,o);t.A=s},50327(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.canPlay=t.FLV_EXTENSIONS=t.DASH_EXTENSIONS=t.HLS_EXTENSIONS=t.VIDEO_EXTENSIONS=t.AUDIO_EXTENSIONS=t.MATCH_URL_KALTURA=t.MATCH_URL_VIDYARD=t.MATCH_URL_MIXCLOUD=t.MATCH_URL_DAILYMOTION=t.MATCH_URL_TWITCH_CHANNEL=t.MATCH_URL_TWITCH_VIDEO=t.MATCH_URL_WISTIA=t.MATCH_URL_STREAMABLE=t.MATCH_URL_FACEBOOK_WATCH=t.MATCH_URL_FACEBOOK=t.MATCH_URL_VIMEO=t.MATCH_URL_SOUNDCLOUD=t.MATCH_URL_YOUTUBE=void 0;var r=n(75635);function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var i=/(?:youtu\.be\/|youtube(?:-nocookie|education)?\.com\/(?:embed\/|v\/|watch\/|watch\?v=|watch\?.+&v=|shorts\/|live\/))((\w|-){11})|youtube\.com\/playlist\?list=|youtube\.com\/user\//;t.MATCH_URL_YOUTUBE=i;var o=/(?:soundcloud\.com|snd\.sc)\/[^.]+$/;t.MATCH_URL_SOUNDCLOUD=o;var s=/vimeo\.com\/(?!progressive_redirect).+/;t.MATCH_URL_VIMEO=s;var l=/^https?:\/\/(www\.)?facebook\.com.*\/(video(s)?|watch|story)(\.php?|\/).+$/;t.MATCH_URL_FACEBOOK=l;var c=/^https?:\/\/fb\.watch\/.+$/;t.MATCH_URL_FACEBOOK_WATCH=c;var u=/streamable\.com\/([a-z0-9]+)$/;t.MATCH_URL_STREAMABLE=u;var f=/(?:wistia\.(?:com|net)|wi\.st)\/(?:medias|embed)\/(?:iframe\/)?([^?]+)/;t.MATCH_URL_WISTIA=f;var h=/(?:www\.|go\.)?twitch\.tv\/videos\/(\d+)($|\?)/;t.MATCH_URL_TWITCH_VIDEO=h;var p=/(?:www\.|go\.)?twitch\.tv\/([a-zA-Z0-9_]+)($|\?)/;t.MATCH_URL_TWITCH_CHANNEL=p;var d=/^(?:(?:https?):)?(?:\/\/)?(?:www\.)?(?:(?:dailymotion\.com(?:\/embed)?\/video)|dai\.ly)\/([a-zA-Z0-9]+)(?:_[\w_-]+)?(?:[\w.#_-]+)?/;t.MATCH_URL_DAILYMOTION=d;var m=/mixcloud\.com\/([^/]+\/[^/]+)/;t.MATCH_URL_MIXCLOUD=m;var g=/vidyard.com\/(?:watch\/)?([a-zA-Z0-9-_]+)/;t.MATCH_URL_VIDYARD=g;var y=/^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-_].*)$/;t.MATCH_URL_KALTURA=y;var v=/\.(m4a|m4b|mp4a|mpga|mp2|mp2a|mp3|m2a|m3a|wav|weba|aac|oga|spx)($|\?)/i;t.AUDIO_EXTENSIONS=v;var b=/\.(mp4|og[gv]|webm|mov|m4v)(#t=[,\d+]+)?($|\?)/i;t.VIDEO_EXTENSIONS=b;var _=/\.(m3u8)($|\?)/i;t.HLS_EXTENSIONS=_;var w=/\.(mpd)($|\?)/i;t.DASH_EXTENSIONS=w;var S=/\.(flv)($|\?)/i;t.FLV_EXTENSIONS=S;var x={youtube:function(e){return e instanceof Array?e.every(function(e){return i.test(e)}):i.test(e)},soundcloud:function(e){return o.test(e)&&!v.test(e)},vimeo:function(e){return s.test(e)&&!b.test(e)&&!_.test(e)},facebook:function(e){return l.test(e)||c.test(e)},streamable:function(e){return u.test(e)},wistia:function(e){return f.test(e)},twitch:function(e){return h.test(e)||p.test(e)},dailymotion:function(e){return d.test(e)},mixcloud:function(e){return m.test(e)},vidyard:function(e){return g.test(e)},kaltura:function(e){return y.test(e)},file:function e(t){if(t instanceof Array){var n,i=function(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return a(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)?a(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,s=!0,l=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return s=e.done,e},e:function(e){l=!0,o=e},f:function(){try{s||null==n.return||n.return()}finally{if(l)throw o}}}}(t);try{for(i.s();!(n=i.n()).done;){var o=n.value;if("string"==typeof o&&e(o))return!0;if(e(o.src))return!0}}catch(e){i.e(e)}finally{i.f()}return!1}return!(!(0,r.isMediaStream)(t)&&!(0,r.isBlobUrl)(t))||v.test(t)||b.test(t)||_.test(t)||w.test(t)||S.test(t)}};t.canPlay=x},39348(e,t,n){"use strict";function r(e){return r="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},r(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var n={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var o=a?Object.getOwnPropertyDescriptor(e,i):null;o&&(o.get||o.set)?Object.defineProperty(n,i,o):n[i]=e[i]}return n.default=e,t&&t.set(e,n),n}(n(51609)),i=n(75635),o=n(50327);function s(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}function l(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 c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?l(Object(n),!0).forEach(function(t){m(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function f(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 h(e,t){return h=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},h(e,t)}function p(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function d(e){return d=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},d(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}var g=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new 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&&h(e,t)}(y,e);var t,n,s,l,g=(s=y,l=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(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(){var e,t=d(s);if(l){var n=d(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?p(e):t}(this,e)});function y(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,y);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return m(p(e=g.call.apply(g,[this].concat(n))),"callPlayer",i.callPlayer),m(p(e),"onDurationChange",function(){var t=e.getDuration();e.props.onDuration(t)}),m(p(e),"mute",function(){e.callPlayer("setMuted",!0)}),m(p(e),"unmute",function(){e.callPlayer("setMuted",!1)}),m(p(e),"ref",function(t){e.container=t}),e}return t=y,n=[{key:"componentDidMount",value:function(){this.props.onMount&&this.props.onMount(this)}},{key:"load",value:function(e){var t,n,r=this,a=this.props,s=a.controls,l=a.config,f=a.onError,h=a.playing,p=(t=e.match(o.MATCH_URL_DAILYMOTION),n=2,function(e){if(Array.isArray(e))return e}(t)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,a=!1,i=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){a=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(a)throw i}}return n}}(t,n)||function(e,t){if(e){if("string"==typeof e)return u(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)?u(e,t):void 0}}(t,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())[1];this.player?this.player.load(p,{start:(0,i.parseStartTime)(e),autoplay:h}):(0,i.getSDK)("https://api.dmcdn.net/all.js","DM","dmAsyncInit",function(e){return e.player}).then(function(t){if(r.container){var n=t.player;r.player=new n(r.container,{width:"100%",height:"100%",video:p,params:c({controls:s,autoplay:r.props.playing,mute:r.props.muted,start:(0,i.parseStartTime)(e),origin:window.location.origin},l.params),events:{apiready:r.props.onReady,seeked:function(){return r.props.onSeek(r.player.currentTime)},video_end:r.props.onEnded,durationchange:r.onDurationChange,pause:r.props.onPause,playing:r.props.onPlay,waiting:r.props.onBuffer,error:function(e){return f(e)}}})}},f)}},{key:"play",value:function(){this.callPlayer("play")}},{key:"pause",value:function(){this.callPlayer("pause")}},{key:"stop",value:function(){}},{key:"seekTo",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];this.callPlayer("seek",e),t||this.pause()}},{key:"setVolume",value:function(e){this.callPlayer("setVolume",e)}},{key:"getDuration",value:function(){return this.player.duration||null}},{key:"getCurrentTime",value:function(){return this.player.currentTime}},{key:"getSecondsLoaded",value:function(){return this.player.bufferedTime}},{key:"render",value:function(){var e={width:"100%",height:"100%",display:this.props.display};return a.default.createElement("div",{style:e},a.default.createElement("div",{ref:this.ref}))}}],n&&f(t.prototype,n),y}(a.Component);t.default=g,m(g,"displayName","DailyMotion"),m(g,"canPlay",o.canPlay.dailymotion),m(g,"loopOnEnded",!0)},61343(e,t,n){"use strict";function r(e){return r="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},r(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var n={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var o=a?Object.getOwnPropertyDescriptor(e,i):null;o&&(o.get||o.set)?Object.defineProperty(n,i,o):n[i]=e[i]}return n.default=e,t&&t.set(e,n),n}(n(51609)),i=n(75635),o=n(50327);function s(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}function l(){return l=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},l.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 u(e,t){return u=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},u(e,t)}function f(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function h(e){return h=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},h(e)}function p(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var d="https://connect.facebook.net/en_US/sdk.js",m="fbAsyncInit",g=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new 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&&u(e,t)}(y,e);var t,n,o,s,g=(o=y,s=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(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(){var e,t=h(o);if(s){var n=h(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?f(e):t}(this,e)});function y(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,y);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return p(f(e=g.call.apply(g,[this].concat(n))),"callPlayer",i.callPlayer),p(f(e),"playerID",e.props.config.playerId||"".concat("facebook-player-").concat((0,i.randomString)())),p(f(e),"mute",function(){e.callPlayer("mute")}),p(f(e),"unmute",function(){e.callPlayer("unmute")}),e}return t=y,n=[{key:"componentDidMount",value:function(){this.props.onMount&&this.props.onMount(this)}},{key:"load",value:function(e,t){var n=this;t?(0,i.getSDK)(d,"FB",m).then(function(e){return e.XFBML.parse()}):(0,i.getSDK)(d,"FB",m).then(function(e){e.init({appId:n.props.config.appId,xfbml:!0,version:n.props.config.version}),e.Event.subscribe("xfbml.render",function(e){n.props.onLoaded()}),e.Event.subscribe("xfbml.ready",function(e){"video"===e.type&&e.id===n.playerID&&(n.player=e.instance,n.player.subscribe("startedPlaying",n.props.onPlay),n.player.subscribe("paused",n.props.onPause),n.player.subscribe("finishedPlaying",n.props.onEnded),n.player.subscribe("startedBuffering",n.props.onBuffer),n.player.subscribe("finishedBuffering",n.props.onBufferEnd),n.player.subscribe("error",n.props.onError),n.props.muted?n.callPlayer("mute"):n.callPlayer("unmute"),n.props.onReady(),document.getElementById(n.playerID).querySelector("iframe").style.visibility="visible")})})}},{key:"play",value:function(){this.callPlayer("play")}},{key:"pause",value:function(){this.callPlayer("pause")}},{key:"stop",value:function(){}},{key:"seekTo",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];this.callPlayer("seek",e),t||this.pause()}},{key:"setVolume",value:function(e){this.callPlayer("setVolume",e)}},{key:"getDuration",value:function(){return this.callPlayer("getDuration")}},{key:"getCurrentTime",value:function(){return this.callPlayer("getCurrentPosition")}},{key:"getSecondsLoaded",value:function(){return null}},{key:"render",value:function(){var e=this.props.config.attributes;return a.default.createElement("div",l({style:{width:"100%",height:"100%"},id:this.playerID,className:"fb-video","data-href":this.props.url,"data-autoplay":this.props.playing?"true":"false","data-allowfullscreen":"true","data-controls":this.props.controls?"true":"false"},e))}}],n&&c(t.prototype,n),y}(a.Component);t.default=g,p(g,"displayName","Facebook"),p(g,"canPlay",o.canPlay.facebook),p(g,"loopOnEnded",!0)},20688(e,t,n){"use strict";function r(e){return r="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},r(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var n={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var o=a?Object.getOwnPropertyDescriptor(e,i):null;o&&(o.get||o.set)?Object.defineProperty(n,i,o):n[i]=e[i]}return n.default=e,t&&t.set(e,n),n}(n(51609)),i=n(75635),o=n(50327);function s(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}function l(){return l=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},l.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 u(e,t){return u=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},u(e,t)}function f(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function h(e){return h=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},h(e)}function p(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var d="undefined"!=typeof navigator,m=d&&"MacIntel"===navigator.platform&&navigator.maxTouchPoints>1,g=d&&(/iPad|iPhone|iPod/.test(navigator.userAgent)||m)&&!window.MSStream,y=d&&/^((?!chrome|android).)*safari/i.test(navigator.userAgent)&&!window.MSStream,v=/www\.dropbox\.com\/.+/,b=/https:\/\/watch\.cloudflarestream\.com\/([a-z0-9]+)/,_=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new 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&&u(e,t)}(_,e);var t,n,s,d,m=(s=_,d=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(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(){var e,t=h(s);if(d){var n=h(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?f(e):t}(this,e)});function _(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,_);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return p(f(e=m.call.apply(m,[this].concat(n))),"onReady",function(){var t;return(t=e.props).onReady.apply(t,arguments)}),p(f(e),"onPlay",function(){var t;return(t=e.props).onPlay.apply(t,arguments)}),p(f(e),"onBuffer",function(){var t;return(t=e.props).onBuffer.apply(t,arguments)}),p(f(e),"onBufferEnd",function(){var t;return(t=e.props).onBufferEnd.apply(t,arguments)}),p(f(e),"onPause",function(){var t;return(t=e.props).onPause.apply(t,arguments)}),p(f(e),"onEnded",function(){var t;return(t=e.props).onEnded.apply(t,arguments)}),p(f(e),"onError",function(){var t;return(t=e.props).onError.apply(t,arguments)}),p(f(e),"onPlayBackRateChange",function(t){return e.props.onPlaybackRateChange(t.target.playbackRate)}),p(f(e),"onEnablePIP",function(){var t;return(t=e.props).onEnablePIP.apply(t,arguments)}),p(f(e),"onDisablePIP",function(t){var n=e.props,r=n.onDisablePIP,a=n.playing;r(t),a&&e.play()}),p(f(e),"onPresentationModeChange",function(t){if(e.player&&(0,i.supportsWebKitPresentationMode)(e.player)){var n=e.player.webkitPresentationMode;"picture-in-picture"===n?e.onEnablePIP(t):"inline"===n&&e.onDisablePIP(t)}}),p(f(e),"onSeek",function(t){e.props.onSeek(t.target.currentTime)}),p(f(e),"mute",function(){e.player.muted=!0}),p(f(e),"unmute",function(){e.player.muted=!1}),p(f(e),"renderSourceElement",function(e,t){return"string"==typeof e?a.default.createElement("source",{key:t,src:e}):a.default.createElement("source",l({key:t},e))}),p(f(e),"renderTrack",function(e,t){return a.default.createElement("track",l({key:t},e))}),p(f(e),"ref",function(t){e.player&&(e.prevPlayer=e.player),e.player=t}),e}return t=_,n=[{key:"componentDidMount",value:function(){this.props.onMount&&this.props.onMount(this),this.addListeners(this.player);var e=this.getSource(this.props.url);e&&(this.player.src=e),(g||this.props.config.forceDisableHls)&&this.player.load()}},{key:"componentDidUpdate",value:function(e){this.shouldUseAudio(this.props)!==this.shouldUseAudio(e)&&(this.removeListeners(this.prevPlayer,e.url),this.addListeners(this.player)),this.props.url===e.url||(0,i.isMediaStream)(this.props.url)||this.props.url instanceof Array||(this.player.srcObject=null)}},{key:"componentWillUnmount",value:function(){this.player.removeAttribute("src"),this.removeListeners(this.player),this.hls&&this.hls.destroy()}},{key:"addListeners",value:function(e){var t=this.props,n=t.url,r=t.playsinline;e.addEventListener("play",this.onPlay),e.addEventListener("waiting",this.onBuffer),e.addEventListener("playing",this.onBufferEnd),e.addEventListener("pause",this.onPause),e.addEventListener("seeked",this.onSeek),e.addEventListener("ended",this.onEnded),e.addEventListener("error",this.onError),e.addEventListener("ratechange",this.onPlayBackRateChange),e.addEventListener("enterpictureinpicture",this.onEnablePIP),e.addEventListener("leavepictureinpicture",this.onDisablePIP),e.addEventListener("webkitpresentationmodechanged",this.onPresentationModeChange),this.shouldUseHLS(n)||e.addEventListener("canplay",this.onReady),r&&(e.setAttribute("playsinline",""),e.setAttribute("webkit-playsinline",""),e.setAttribute("x5-playsinline",""))}},{key:"removeListeners",value:function(e,t){e.removeEventListener("canplay",this.onReady),e.removeEventListener("play",this.onPlay),e.removeEventListener("waiting",this.onBuffer),e.removeEventListener("playing",this.onBufferEnd),e.removeEventListener("pause",this.onPause),e.removeEventListener("seeked",this.onSeek),e.removeEventListener("ended",this.onEnded),e.removeEventListener("error",this.onError),e.removeEventListener("ratechange",this.onPlayBackRateChange),e.removeEventListener("enterpictureinpicture",this.onEnablePIP),e.removeEventListener("leavepictureinpicture",this.onDisablePIP),e.removeEventListener("webkitpresentationmodechanged",this.onPresentationModeChange),this.shouldUseHLS(t)||e.removeEventListener("canplay",this.onReady)}},{key:"shouldUseAudio",value:function(e){return!e.config.forceVideo&&!e.config.attributes.poster&&(o.AUDIO_EXTENSIONS.test(e.url)||e.config.forceAudio)}},{key:"shouldUseHLS",value:function(e){return!!(y&&this.props.config.forceSafariHLS||this.props.config.forceHLS)||!g&&!this.props.config.forceDisableHls&&(o.HLS_EXTENSIONS.test(e)||b.test(e))}},{key:"shouldUseDASH",value:function(e){return o.DASH_EXTENSIONS.test(e)||this.props.config.forceDASH}},{key:"shouldUseFLV",value:function(e){return o.FLV_EXTENSIONS.test(e)||this.props.config.forceFLV}},{key:"load",value:function(e){var t=this,n=this.props.config,r=n.hlsVersion,a=n.hlsOptions,o=n.dashVersion,s=n.flvVersion;if(this.hls&&this.hls.destroy(),this.dash&&this.dash.reset(),this.shouldUseHLS(e)&&(0,i.getSDK)("https://cdn.jsdelivr.net/npm/hls.js@VERSION/dist/hls.min.js".replace("VERSION",r),"Hls").then(function(n){if(t.hls=new n(a),t.hls.on(n.Events.MANIFEST_PARSED,function(){t.props.onReady()}),t.hls.on(n.Events.ERROR,function(e,r){t.props.onError(e,r,t.hls,n)}),b.test(e)){var r=e.match(b)[1];t.hls.loadSource("https://videodelivery.net/{id}/manifest/video.m3u8".replace("{id}",r))}else t.hls.loadSource(e);t.hls.attachMedia(t.player),t.props.onLoaded()}),this.shouldUseDASH(e)&&(0,i.getSDK)("https://cdnjs.cloudflare.com/ajax/libs/dashjs/VERSION/dash.all.min.js".replace("VERSION",o),"dashjs").then(function(n){t.dash=n.MediaPlayer().create(),t.dash.initialize(t.player,e,t.props.playing),t.dash.on("error",t.props.onError),parseInt(o)<3?t.dash.getDebug().setLogToBrowserConsole(!1):t.dash.updateSettings({debug:{logLevel:n.Debug.LOG_LEVEL_NONE}}),t.props.onLoaded()}),this.shouldUseFLV(e)&&(0,i.getSDK)("https://cdn.jsdelivr.net/npm/flv.js@VERSION/dist/flv.min.js".replace("VERSION",s),"flvjs").then(function(n){t.flv=n.createPlayer({type:"flv",url:e}),t.flv.attachMediaElement(t.player),t.flv.on(n.Events.ERROR,function(e,r){t.props.onError(e,r,t.flv,n)}),t.flv.load(),t.props.onLoaded()}),e instanceof Array)this.player.load();else if((0,i.isMediaStream)(e))try{this.player.srcObject=e}catch(t){this.player.src=window.URL.createObjectURL(e)}}},{key:"play",value:function(){var e=this.player.play();e&&e.catch(this.props.onError)}},{key:"pause",value:function(){this.player.pause()}},{key:"stop",value:function(){this.player.removeAttribute("src"),this.dash&&this.dash.reset()}},{key:"seekTo",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];this.player.currentTime=e,t||this.pause()}},{key:"setVolume",value:function(e){this.player.volume=e}},{key:"enablePIP",value:function(){this.player.requestPictureInPicture&&document.pictureInPictureElement!==this.player?this.player.requestPictureInPicture():(0,i.supportsWebKitPresentationMode)(this.player)&&"picture-in-picture"!==this.player.webkitPresentationMode&&this.player.webkitSetPresentationMode("picture-in-picture")}},{key:"disablePIP",value:function(){document.exitPictureInPicture&&document.pictureInPictureElement===this.player?document.exitPictureInPicture():(0,i.supportsWebKitPresentationMode)(this.player)&&"inline"!==this.player.webkitPresentationMode&&this.player.webkitSetPresentationMode("inline")}},{key:"setPlaybackRate",value:function(e){try{this.player.playbackRate=e}catch(e){this.props.onError(e)}}},{key:"getDuration",value:function(){if(!this.player)return null;var e=this.player,t=e.duration,n=e.seekable;return t===1/0&&n.length>0?n.end(n.length-1):t}},{key:"getCurrentTime",value:function(){return this.player?this.player.currentTime:null}},{key:"getSecondsLoaded",value:function(){if(!this.player)return null;var e=this.player.buffered;if(0===e.length)return 0;var t=e.end(e.length-1),n=this.getDuration();return t>n?n:t}},{key:"getSource",value:function(e){var t=this.shouldUseHLS(e),n=this.shouldUseDASH(e),r=this.shouldUseFLV(e);if(!(e instanceof Array||(0,i.isMediaStream)(e)||t||n||r))return v.test(e)?e.replace("www.dropbox.com","dl.dropboxusercontent.com"):e}},{key:"render",value:function(){var e=this.props,t=e.url,n=e.playing,r=e.loop,i=e.controls,o=e.muted,s=e.config,c=e.width,u=e.height,f=this.shouldUseAudio(this.props)?"audio":"video",h={width:"auto"===c?c:"100%",height:"auto"===u?u:"100%"};return a.default.createElement(f,l({ref:this.ref,src:this.getSource(t),style:h,preload:"auto",autoPlay:n||void 0,controls:i,muted:o,loop:r},s.attributes),t instanceof Array&&t.map(this.renderSourceElement),s.tracks.map(this.renderTrack))}}],n&&c(t.prototype,n),_}(a.Component);t.default=_,p(_,"displayName","FilePlayer"),p(_,"canPlay",o.canPlay.file)},97945(e,t,n){"use strict";function r(e){return r="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},r(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var n={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var o=a?Object.getOwnPropertyDescriptor(e,i):null;o&&(o.get||o.set)?Object.defineProperty(n,i,o):n[i]=e[i]}return n.default=e,t&&t.set(e,n),n}(n(51609)),i=n(75635),o=n(50327);function s(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}function l(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 c(e,t){return c=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},c(e,t)}function u(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function f(e){return f=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},f(e)}function h(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var p=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new 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&&c(e,t)}(d,e);var t,n,o,s,p=(o=d,s=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(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(){var e,t=f(o);if(s){var n=f(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?u(e):t}(this,e)});function d(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,d);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return h(u(e=p.call.apply(p,[this].concat(n))),"callPlayer",i.callPlayer),h(u(e),"duration",null),h(u(e),"currentTime",null),h(u(e),"secondsLoaded",null),h(u(e),"mute",function(){e.callPlayer("mute")}),h(u(e),"unmute",function(){e.callPlayer("unmute")}),h(u(e),"ref",function(t){e.iframe=t}),e}return t=d,n=[{key:"componentDidMount",value:function(){this.props.onMount&&this.props.onMount(this)}},{key:"load",value:function(e){var t=this;(0,i.getSDK)("https://cdn.embed.ly/player-0.1.0.min.js","playerjs").then(function(e){t.iframe&&(t.player=new e.Player(t.iframe),t.player.on("ready",function(){setTimeout(function(){t.player.isReady=!0,t.player.setLoop(t.props.loop),t.props.muted&&t.player.mute(),t.addListeners(t.player,t.props),t.props.onReady()},500)}))},this.props.onError)}},{key:"addListeners",value:function(e,t){var n=this;e.on("play",t.onPlay),e.on("pause",t.onPause),e.on("ended",t.onEnded),e.on("error",t.onError),e.on("timeupdate",function(e){var t=e.duration,r=e.seconds;n.duration=t,n.currentTime=r})}},{key:"play",value:function(){this.callPlayer("play")}},{key:"pause",value:function(){this.callPlayer("pause")}},{key:"stop",value:function(){}},{key:"seekTo",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];this.callPlayer("setCurrentTime",e),t||this.pause()}},{key:"setVolume",value:function(e){this.callPlayer("setVolume",e)}},{key:"setLoop",value:function(e){this.callPlayer("setLoop",e)}},{key:"getDuration",value:function(){return this.duration}},{key:"getCurrentTime",value:function(){return this.currentTime}},{key:"getSecondsLoaded",value:function(){return this.secondsLoaded}},{key:"render",value:function(){return a.default.createElement("iframe",{ref:this.ref,src:this.props.url,frameBorder:"0",scrolling:"no",style:{width:"100%",height:"100%"},allow:"encrypted-media; autoplay; fullscreen;",referrerPolicy:"no-referrer-when-downgrade"})}}],n&&l(t.prototype,n),d}(a.Component);t.default=p,h(p,"displayName","Kaltura"),h(p,"canPlay",o.canPlay.kaltura)},3276(e,t,n){"use strict";function r(e){return r="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},r(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var n={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var o=a?Object.getOwnPropertyDescriptor(e,i):null;o&&(o.get||o.set)?Object.defineProperty(n,i,o):n[i]=e[i]}return n.default=e,t&&t.set(e,n),n}(n(51609)),i=n(75635),o=n(50327);function s(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}function l(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 c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?l(Object(n),!0).forEach(function(t){d(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function u(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 f(e,t){return f=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},f(e,t)}function h(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function p(e){return p=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},p(e)}function d(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var m=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new 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)}(g,e);var t,n,s,l,m=(s=g,l=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(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(){var e,t=p(s);if(l){var n=p(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?h(e):t}(this,e)});function g(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,g);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return d(h(e=m.call.apply(m,[this].concat(n))),"callPlayer",i.callPlayer),d(h(e),"duration",null),d(h(e),"currentTime",null),d(h(e),"secondsLoaded",null),d(h(e),"mute",function(){}),d(h(e),"unmute",function(){}),d(h(e),"ref",function(t){e.iframe=t}),e}return t=g,n=[{key:"componentDidMount",value:function(){this.props.onMount&&this.props.onMount(this)}},{key:"load",value:function(e){var t=this;(0,i.getSDK)("https://widget.mixcloud.com/media/js/widgetApi.js","Mixcloud").then(function(e){t.player=e.PlayerWidget(t.iframe),t.player.ready.then(function(){t.player.events.play.on(t.props.onPlay),t.player.events.pause.on(t.props.onPause),t.player.events.ended.on(t.props.onEnded),t.player.events.error.on(t.props.error),t.player.events.progress.on(function(e,n){t.currentTime=e,t.duration=n}),t.props.onReady()})},this.props.onError)}},{key:"play",value:function(){this.callPlayer("play")}},{key:"pause",value:function(){this.callPlayer("pause")}},{key:"stop",value:function(){}},{key:"seekTo",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];this.callPlayer("seek",e),t||this.pause()}},{key:"setVolume",value:function(e){}},{key:"getDuration",value:function(){return this.duration}},{key:"getCurrentTime",value:function(){return this.currentTime}},{key:"getSecondsLoaded",value:function(){return null}},{key:"render",value:function(){var e=this.props,t=e.url,n=e.config,r=t.match(o.MATCH_URL_MIXCLOUD)[1],s=(0,i.queryString)(c(c({},n.options),{},{feed:"/".concat(r,"/")}));return a.default.createElement("iframe",{key:r,ref:this.ref,style:{width:"100%",height:"100%"},src:"https://www.mixcloud.com/widget/iframe/?".concat(s),frameBorder:"0",allow:"autoplay"})}}],n&&u(t.prototype,n),g}(a.Component);t.default=m,d(m,"displayName","Mixcloud"),d(m,"canPlay",o.canPlay.mixcloud),d(m,"loopOnEnded",!0)},93127(e,t,n){"use strict";function r(e){return r="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},r(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var n={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var o=a?Object.getOwnPropertyDescriptor(e,i):null;o&&(o.get||o.set)?Object.defineProperty(n,i,o):n[i]=e[i]}return n.default=e,t&&t.set(e,n),n}(n(51609)),i=n(75635),o=n(50327);function s(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}function l(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 c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?l(Object(n),!0).forEach(function(t){d(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function u(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 f(e,t){return f=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},f(e,t)}function h(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function p(e){return p=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},p(e)}function d(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var m=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new 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)}(m,e);var t,n,o,s,l=(o=m,s=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(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(){var e,t=p(o);if(s){var n=p(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?h(e):t}(this,e)});function m(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,m);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return d(h(e=l.call.apply(l,[this].concat(n))),"callPlayer",i.callPlayer),d(h(e),"duration",null),d(h(e),"currentTime",null),d(h(e),"fractionLoaded",null),d(h(e),"mute",function(){e.setVolume(0)}),d(h(e),"unmute",function(){null!==e.props.volume&&e.setVolume(e.props.volume)}),d(h(e),"ref",function(t){e.iframe=t}),e}return t=m,n=[{key:"componentDidMount",value:function(){this.props.onMount&&this.props.onMount(this)}},{key:"load",value:function(e,t){var n=this;(0,i.getSDK)("https://w.soundcloud.com/player/api.js","SC").then(function(r){if(n.iframe){var a=r.Widget.Events,i=a.PLAY,o=a.PLAY_PROGRESS,s=a.PAUSE,l=a.FINISH,u=a.ERROR;t||(n.player=r.Widget(n.iframe),n.player.bind(i,n.props.onPlay),n.player.bind(s,function(){n.duration-n.currentTime<.05||n.props.onPause()}),n.player.bind(o,function(e){n.currentTime=e.currentPosition/1e3,n.fractionLoaded=e.loadedProgress}),n.player.bind(l,function(){return n.props.onEnded()}),n.player.bind(u,function(e){return n.props.onError(e)})),n.player.load(e,c(c({},n.props.config.options),{},{callback:function(){n.player.getDuration(function(e){n.duration=e/1e3,n.props.onReady()})}}))}})}},{key:"play",value:function(){this.callPlayer("play")}},{key:"pause",value:function(){this.callPlayer("pause")}},{key:"stop",value:function(){}},{key:"seekTo",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];this.callPlayer("seekTo",1e3*e),t||this.pause()}},{key:"setVolume",value:function(e){this.callPlayer("setVolume",100*e)}},{key:"getDuration",value:function(){return this.duration}},{key:"getCurrentTime",value:function(){return this.currentTime}},{key:"getSecondsLoaded",value:function(){return this.fractionLoaded*this.duration}},{key:"render",value:function(){var e={width:"100%",height:"100%",display:this.props.display};return a.default.createElement("iframe",{ref:this.ref,src:"https://w.soundcloud.com/player/?url=".concat(encodeURIComponent(this.props.url)),style:e,frameBorder:0,allow:"autoplay"})}}],n&&u(t.prototype,n),m}(a.Component);t.default=m,d(m,"displayName","SoundCloud"),d(m,"canPlay",o.canPlay.soundcloud),d(m,"loopOnEnded",!0)},9643(e,t,n){"use strict";function r(e){return r="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},r(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var n={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var o=a?Object.getOwnPropertyDescriptor(e,i):null;o&&(o.get||o.set)?Object.defineProperty(n,i,o):n[i]=e[i]}return n.default=e,t&&t.set(e,n),n}(n(51609)),i=n(75635),o=n(50327);function s(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}function l(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 c(e,t){return c=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},c(e,t)}function u(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function f(e){return f=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},f(e)}function h(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var p=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new 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&&c(e,t)}(m,e);var t,n,s,p,d=(s=m,p=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(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(){var e,t=f(s);if(p){var n=f(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?u(e):t}(this,e)});function m(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,m);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return h(u(e=d.call.apply(d,[this].concat(n))),"callPlayer",i.callPlayer),h(u(e),"duration",null),h(u(e),"currentTime",null),h(u(e),"secondsLoaded",null),h(u(e),"mute",function(){e.callPlayer("mute")}),h(u(e),"unmute",function(){e.callPlayer("unmute")}),h(u(e),"ref",function(t){e.iframe=t}),e}return t=m,n=[{key:"componentDidMount",value:function(){this.props.onMount&&this.props.onMount(this)}},{key:"load",value:function(e){var t=this;(0,i.getSDK)("https://cdn.embed.ly/player-0.1.0.min.js","playerjs").then(function(e){t.iframe&&(t.player=new e.Player(t.iframe),t.player.setLoop(t.props.loop),t.player.on("ready",t.props.onReady),t.player.on("play",t.props.onPlay),t.player.on("pause",t.props.onPause),t.player.on("seeked",t.props.onSeek),t.player.on("ended",t.props.onEnded),t.player.on("error",t.props.onError),t.player.on("timeupdate",function(e){var n=e.duration,r=e.seconds;t.duration=n,t.currentTime=r}),t.player.on("buffered",function(e){var n=e.percent;t.duration&&(t.secondsLoaded=t.duration*n)}),t.props.muted&&t.player.mute())},this.props.onError)}},{key:"play",value:function(){this.callPlayer("play")}},{key:"pause",value:function(){this.callPlayer("pause")}},{key:"stop",value:function(){}},{key:"seekTo",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];this.callPlayer("setCurrentTime",e),t||this.pause()}},{key:"setVolume",value:function(e){this.callPlayer("setVolume",100*e)}},{key:"setLoop",value:function(e){this.callPlayer("setLoop",e)}},{key:"getDuration",value:function(){return this.duration}},{key:"getCurrentTime",value:function(){return this.currentTime}},{key:"getSecondsLoaded",value:function(){return this.secondsLoaded}},{key:"render",value:function(){var e=this.props.url.match(o.MATCH_URL_STREAMABLE)[1];return a.default.createElement("iframe",{ref:this.ref,src:"https://streamable.com/o/".concat(e),frameBorder:"0",scrolling:"no",style:{width:"100%",height:"100%"},allow:"encrypted-media; autoplay; fullscreen;"})}}],n&&l(t.prototype,n),m}(a.Component);t.default=p,h(p,"displayName","Streamable"),h(p,"canPlay",o.canPlay.streamable)},21400(e,t,n){"use strict";function r(e){return r="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},r(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var n={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var o=a?Object.getOwnPropertyDescriptor(e,i):null;o&&(o.get||o.set)?Object.defineProperty(n,i,o):n[i]=e[i]}return n.default=e,t&&t.set(e,n),n}(n(51609)),i=n(75635),o=n(50327);function s(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}function l(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 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 u(e,t){return u=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},u(e,t)}function f(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function h(e){return h=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},h(e)}function p(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var d=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new 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&&u(e,t)}(g,e);var t,n,s,d,m=(s=g,d=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(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(){var e,t=h(s);if(d){var n=h(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?f(e):t}(this,e)});function g(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,g);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return p(f(e=m.call.apply(m,[this].concat(n))),"callPlayer",i.callPlayer),p(f(e),"playerID",e.props.config.playerId||"".concat("twitch-player-").concat((0,i.randomString)())),p(f(e),"mute",function(){e.callPlayer("setMuted",!0)}),p(f(e),"unmute",function(){e.callPlayer("setMuted",!1)}),e}return t=g,n=[{key:"componentDidMount",value:function(){this.props.onMount&&this.props.onMount(this)}},{key:"load",value:function(e,t){var n=this,r=this.props,a=r.playsinline,s=r.onError,c=r.config,u=r.controls,f=o.MATCH_URL_TWITCH_CHANNEL.test(e),h=f?e.match(o.MATCH_URL_TWITCH_CHANNEL)[1]:e.match(o.MATCH_URL_TWITCH_VIDEO)[1];t?f?this.player.setChannel(h):this.player.setVideo("v"+h):(0,i.getSDK)("https://player.twitch.tv/js/embed/v1.js","Twitch").then(function(t){n.player=new t.Player(n.playerID,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?l(Object(n),!0).forEach(function(t){p(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({video:f?"":h,channel:f?h:"",height:"100%",width:"100%",playsinline:a,autoplay:n.props.playing,muted:n.props.muted,controls:!!f||u,time:(0,i.parseStartTime)(e)},c.options));var r=t.Player,o=r.READY,s=r.PLAYING,d=r.PAUSE,m=r.ENDED,g=r.ONLINE,y=r.OFFLINE,v=r.SEEK;n.player.addEventListener(o,n.props.onReady),n.player.addEventListener(s,n.props.onPlay),n.player.addEventListener(d,n.props.onPause),n.player.addEventListener(m,n.props.onEnded),n.player.addEventListener(v,n.props.onSeek),n.player.addEventListener(g,n.props.onLoaded),n.player.addEventListener(y,n.props.onLoaded)},s)}},{key:"play",value:function(){this.callPlayer("play")}},{key:"pause",value:function(){this.callPlayer("pause")}},{key:"stop",value:function(){this.callPlayer("pause")}},{key:"seekTo",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];this.callPlayer("seek",e),t||this.pause()}},{key:"setVolume",value:function(e){this.callPlayer("setVolume",e)}},{key:"getDuration",value:function(){return this.callPlayer("getDuration")}},{key:"getCurrentTime",value:function(){return this.callPlayer("getCurrentTime")}},{key:"getSecondsLoaded",value:function(){return null}},{key:"render",value:function(){return a.default.createElement("div",{style:{width:"100%",height:"100%"},id:this.playerID})}}],n&&c(t.prototype,n),g}(a.Component);t.default=d,p(d,"displayName","Twitch"),p(d,"canPlay",o.canPlay.twitch),p(d,"loopOnEnded",!0)},53552(e,t,n){"use strict";function r(e){return r="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},r(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var n={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var o=a?Object.getOwnPropertyDescriptor(e,i):null;o&&(o.get||o.set)?Object.defineProperty(n,i,o):n[i]=e[i]}return n.default=e,t&&t.set(e,n),n}(n(51609)),i=n(75635),o=n(50327);function s(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}function l(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 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 u(e,t){return u=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},u(e,t)}function f(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function h(e){return h=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},h(e)}function p(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var d=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new 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&&u(e,t)}(g,e);var t,n,s,d,m=(s=g,d=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(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(){var e,t=h(s);if(d){var n=h(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?f(e):t}(this,e)});function g(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,g);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return p(f(e=m.call.apply(m,[this].concat(n))),"callPlayer",i.callPlayer),p(f(e),"mute",function(){e.setVolume(0)}),p(f(e),"unmute",function(){null!==e.props.volume&&e.setVolume(e.props.volume)}),p(f(e),"ref",function(t){e.container=t}),e}return t=g,n=[{key:"componentDidMount",value:function(){this.props.onMount&&this.props.onMount(this)}},{key:"load",value:function(e){var t=this,n=this.props,r=n.playing,a=n.config,s=n.onError,c=n.onDuration,u=e&&e.match(o.MATCH_URL_VIDYARD)[1];this.player&&this.stop(),(0,i.getSDK)("https://play.vidyard.com/embed/v4.js","VidyardV4","onVidyardAPI").then(function(e){t.container&&(e.api.addReadyListener(function(e,n){t.player||(t.player=n,t.player.on("ready",t.props.onReady),t.player.on("play",t.props.onPlay),t.player.on("pause",t.props.onPause),t.player.on("seek",t.props.onSeek),t.player.on("playerComplete",t.props.onEnded))},u),e.api.renderPlayer(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?l(Object(n),!0).forEach(function(t){p(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({uuid:u,container:t.container,autoplay:r?1:0},a.options)),e.api.getPlayerMetadata(u).then(function(e){t.duration=e.length_in_seconds,c(e.length_in_seconds)}))},s)}},{key:"play",value:function(){this.callPlayer("play")}},{key:"pause",value:function(){this.callPlayer("pause")}},{key:"stop",value:function(){window.VidyardV4.api.destroyPlayer(this.player)}},{key:"seekTo",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];this.callPlayer("seek",e),t||this.pause()}},{key:"setVolume",value:function(e){this.callPlayer("setVolume",e)}},{key:"setPlaybackRate",value:function(e){this.callPlayer("setPlaybackSpeed",e)}},{key:"getDuration",value:function(){return this.duration}},{key:"getCurrentTime",value:function(){return this.callPlayer("currentTime")}},{key:"getSecondsLoaded",value:function(){return null}},{key:"render",value:function(){var e={width:"100%",height:"100%",display:this.props.display};return a.default.createElement("div",{style:e},a.default.createElement("div",{ref:this.ref}))}}],n&&c(t.prototype,n),g}(a.Component);t.default=d,p(d,"displayName","Vidyard"),p(d,"canPlay",o.canPlay.vidyard)},91423(e,t,n){"use strict";function r(e){return r="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},r(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var n={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var o=a?Object.getOwnPropertyDescriptor(e,i):null;o&&(o.get||o.set)?Object.defineProperty(n,i,o):n[i]=e[i]}return n.default=e,t&&t.set(e,n),n}(n(51609)),i=n(75635),o=n(50327);function s(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}function l(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 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 u(e,t){return u=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},u(e,t)}function f(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function h(e){return h=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},h(e)}function p(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var d=function(e){return e.replace("/manage/videos","")},m=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new 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&&u(e,t)}(g,e);var t,n,o,s,m=(o=g,s=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(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(){var e,t=h(o);if(s){var n=h(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?f(e):t}(this,e)});function g(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,g);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return p(f(e=m.call.apply(m,[this].concat(n))),"callPlayer",i.callPlayer),p(f(e),"duration",null),p(f(e),"currentTime",null),p(f(e),"secondsLoaded",null),p(f(e),"mute",function(){e.setMuted(!0)}),p(f(e),"unmute",function(){e.setMuted(!1)}),p(f(e),"ref",function(t){e.container=t}),e}return t=g,n=[{key:"componentDidMount",value:function(){this.props.onMount&&this.props.onMount(this)}},{key:"load",value:function(e){var t=this;this.duration=null,(0,i.getSDK)("https://player.vimeo.com/api/player.js","Vimeo").then(function(n){if(t.container){var r=t.props.config,a=r.playerOptions,i=r.title;t.player=new n.Player(t.container,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?l(Object(n),!0).forEach(function(t){p(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({url:d(e),autoplay:t.props.playing,muted:t.props.muted,loop:t.props.loop,playsinline:t.props.playsinline,controls:t.props.controls},a)),t.player.ready().then(function(){var e=t.container.querySelector("iframe");e.style.width="100%",e.style.height="100%",i&&(e.title=i)}).catch(t.props.onError),t.player.on("loaded",function(){t.props.onReady(),t.refreshDuration()}),t.player.on("play",function(){t.props.onPlay(),t.refreshDuration()}),t.player.on("pause",t.props.onPause),t.player.on("seeked",function(e){return t.props.onSeek(e.seconds)}),t.player.on("ended",t.props.onEnded),t.player.on("error",t.props.onError),t.player.on("timeupdate",function(e){var n=e.seconds;t.currentTime=n}),t.player.on("progress",function(e){var n=e.seconds;t.secondsLoaded=n}),t.player.on("bufferstart",t.props.onBuffer),t.player.on("bufferend",t.props.onBufferEnd),t.player.on("playbackratechange",function(e){return t.props.onPlaybackRateChange(e.playbackRate)})}},this.props.onError)}},{key:"refreshDuration",value:function(){var e=this;this.player.getDuration().then(function(t){e.duration=t})}},{key:"play",value:function(){var e=this.callPlayer("play");e&&e.catch(this.props.onError)}},{key:"pause",value:function(){this.callPlayer("pause")}},{key:"stop",value:function(){this.callPlayer("unload")}},{key:"seekTo",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];this.callPlayer("setCurrentTime",e),t||this.pause()}},{key:"setVolume",value:function(e){this.callPlayer("setVolume",e)}},{key:"setMuted",value:function(e){this.callPlayer("setMuted",e)}},{key:"setLoop",value:function(e){this.callPlayer("setLoop",e)}},{key:"setPlaybackRate",value:function(e){this.callPlayer("setPlaybackRate",e)}},{key:"getDuration",value:function(){return this.duration}},{key:"getCurrentTime",value:function(){return this.currentTime}},{key:"getSecondsLoaded",value:function(){return this.secondsLoaded}},{key:"render",value:function(){var e={width:"100%",height:"100%",overflow:"hidden",display:this.props.display};return a.default.createElement("div",{key:this.props.url,ref:this.ref,style:e})}}],n&&c(t.prototype,n),g}(a.Component);t.default=m,p(m,"displayName","Vimeo"),p(m,"canPlay",o.canPlay.vimeo),p(m,"forceLoad",!0)},23330(e,t,n){"use strict";function r(e){return r="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},r(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var n={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var o=a?Object.getOwnPropertyDescriptor(e,i):null;o&&(o.get||o.set)?Object.defineProperty(n,i,o):n[i]=e[i]}return n.default=e,t&&t.set(e,n),n}(n(51609)),i=n(75635),o=n(50327);function s(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}function l(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 c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?l(Object(n),!0).forEach(function(t){d(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function u(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 f(e,t){return f=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},f(e,t)}function h(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function p(e){return p=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},p(e)}function d(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var m=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new 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)}(g,e);var t,n,s,l,m=(s=g,l=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(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(){var e,t=p(s);if(l){var n=p(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?h(e):t}(this,e)});function g(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,g);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return d(h(e=m.call.apply(m,[this].concat(n))),"callPlayer",i.callPlayer),d(h(e),"playerID",e.props.config.playerId||"".concat("wistia-player-").concat((0,i.randomString)())),d(h(e),"onPlay",function(){var t;return(t=e.props).onPlay.apply(t,arguments)}),d(h(e),"onPause",function(){var t;return(t=e.props).onPause.apply(t,arguments)}),d(h(e),"onSeek",function(){var t;return(t=e.props).onSeek.apply(t,arguments)}),d(h(e),"onEnded",function(){var t;return(t=e.props).onEnded.apply(t,arguments)}),d(h(e),"onPlaybackRateChange",function(){var t;return(t=e.props).onPlaybackRateChange.apply(t,arguments)}),d(h(e),"mute",function(){e.callPlayer("mute")}),d(h(e),"unmute",function(){e.callPlayer("unmute")}),e}return t=g,n=[{key:"componentDidMount",value:function(){this.props.onMount&&this.props.onMount(this)}},{key:"load",value:function(e){var t=this,n=this.props,r=n.playing,a=n.muted,o=n.controls,s=n.onReady,l=n.config,u=n.onError;(0,i.getSDK)("https://fast.wistia.com/assets/external/E-v1.js","Wistia").then(function(e){l.customControls&&l.customControls.forEach(function(t){return e.defineControl(t)}),window._wq=window._wq||[],window._wq.push({id:t.playerID,options:c({autoPlay:r,silentAutoPlay:"allow",muted:a,controlsVisibleOnLoad:o,fullscreenButton:o,playbar:o,playbackRateControl:o,qualityControl:o,volumeControl:o,settingsControl:o,smallPlayButton:o},l.options),onReady:function(e){t.player=e,t.unbind(),t.player.bind("play",t.onPlay),t.player.bind("pause",t.onPause),t.player.bind("seek",t.onSeek),t.player.bind("end",t.onEnded),t.player.bind("playbackratechange",t.onPlaybackRateChange),s()}})},u)}},{key:"unbind",value:function(){this.player.unbind("play",this.onPlay),this.player.unbind("pause",this.onPause),this.player.unbind("seek",this.onSeek),this.player.unbind("end",this.onEnded),this.player.unbind("playbackratechange",this.onPlaybackRateChange)}},{key:"play",value:function(){this.callPlayer("play")}},{key:"pause",value:function(){this.callPlayer("pause")}},{key:"stop",value:function(){this.unbind(),this.callPlayer("remove")}},{key:"seekTo",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];this.callPlayer("time",e),t||this.pause()}},{key:"setVolume",value:function(e){this.callPlayer("volume",e)}},{key:"setPlaybackRate",value:function(e){this.callPlayer("playbackRate",e)}},{key:"getDuration",value:function(){return this.callPlayer("duration")}},{key:"getCurrentTime",value:function(){return this.callPlayer("time")}},{key:"getSecondsLoaded",value:function(){return null}},{key:"render",value:function(){var e=this.props.url,t=e&&e.match(o.MATCH_URL_WISTIA)[1],n="wistia_embed wistia_async_".concat(t);return a.default.createElement("div",{id:this.playerID,key:t,className:n,style:{width:"100%",height:"100%"}})}}],n&&u(t.prototype,n),g}(a.Component);t.default=m,d(m,"displayName","Wistia"),d(m,"canPlay",o.canPlay.wistia),d(m,"loopOnEnded",!0)},82910(e,t,n){"use strict";function r(e){return r="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},r(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var n={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var o=a?Object.getOwnPropertyDescriptor(e,i):null;o&&(o.get||o.set)?Object.defineProperty(n,i,o):n[i]=e[i]}return n.default=e,t&&t.set(e,n),n}(n(51609)),i=n(75635),o=n(50327);function s(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}function l(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 c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?l(Object(n),!0).forEach(function(t){g(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function u(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,a=!1,i=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){a=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(a)throw i}}return n}}(e,t)||function(e,t){if(e){if("string"==typeof e)return f(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)?f(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function f(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function h(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 p(e,t){return p=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},p(e,t)}function d(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function m(e){return m=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},m(e)}function g(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var y=/[?&](?:list|channel)=([a-zA-Z0-9_-]+)/,v=/user\/([a-zA-Z0-9_-]+)\/?/,b=/youtube-nocookie\.com/,_=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new 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&&p(e,t)}(_,e);var t,n,s,l,f=(s=_,l=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(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(){var e,t=m(s);if(l){var n=m(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?d(e):t}(this,e)});function _(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,_);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return g(d(e=f.call.apply(f,[this].concat(n))),"callPlayer",i.callPlayer),g(d(e),"parsePlaylist",function(t){return t instanceof Array?{listType:"playlist",playlist:t.map(e.getID).join(",")}:y.test(t)?{listType:"playlist",list:u(t.match(y),2)[1].replace(/^UC/,"UU")}:v.test(t)?{listType:"user_uploads",list:u(t.match(v),2)[1]}:{}}),g(d(e),"onStateChange",function(t){var n=t.data,r=e.props,a=r.onPlay,i=r.onPause,o=r.onBuffer,s=r.onBufferEnd,l=r.onEnded,c=r.onReady,u=r.loop,f=r.config,h=f.playerVars,p=f.onUnstarted,d=window.YT.PlayerState,m=d.UNSTARTED,g=d.PLAYING,y=d.PAUSED,v=d.BUFFERING,b=d.ENDED,_=d.CUED;if(n===m&&p(),n===g&&(a(),s()),n===y&&i(),n===v&&o(),n===b){var w=!!e.callPlayer("getPlaylist");u&&!w&&(h.start?e.seekTo(h.start):e.play()),l()}n===_&&c()}),g(d(e),"mute",function(){e.callPlayer("mute")}),g(d(e),"unmute",function(){e.callPlayer("unMute")}),g(d(e),"ref",function(t){e.container=t}),e}return t=_,n=[{key:"componentDidMount",value:function(){this.props.onMount&&this.props.onMount(this)}},{key:"getID",value:function(e){return!e||e instanceof Array||y.test(e)?null:e.match(o.MATCH_URL_YOUTUBE)[1]}},{key:"load",value:function(e,t){var n=this,r=this.props,a=r.playing,o=r.muted,s=r.playsinline,l=r.controls,u=r.loop,f=r.config,h=r.onError,p=f.playerVars,d=f.embedOptions,m=this.getID(e);if(t)return y.test(e)||v.test(e)||e instanceof Array?void this.player.loadPlaylist(this.parsePlaylist(e)):void this.player.cueVideoById({videoId:m,startSeconds:(0,i.parseStartTime)(e)||p.start,endSeconds:(0,i.parseEndTime)(e)||p.end});(0,i.getSDK)("https://www.youtube.com/iframe_api","YT","onYouTubeIframeAPIReady",function(e){return e.loaded}).then(function(t){n.container&&(n.player=new t.Player(n.container,c({width:"100%",height:"100%",videoId:m,playerVars:c(c({autoplay:a?1:0,mute:o?1:0,controls:l?1:0,start:(0,i.parseStartTime)(e),end:(0,i.parseEndTime)(e),origin:window.location.origin,playsinline:s?1:0},n.parsePlaylist(e)),p),events:{onReady:function(){u&&n.player.setLoop(!0),n.props.onReady()},onPlaybackRateChange:function(e){return n.props.onPlaybackRateChange(e.data)},onPlaybackQualityChange:function(e){return n.props.onPlaybackQualityChange(e)},onStateChange:n.onStateChange,onError:function(e){return h(e.data)}},host:b.test(e)?"https://www.youtube-nocookie.com":void 0},d)))},h),d.events&&console.warn("Using `embedOptions.events` will likely break things. Use ReactPlayer’s callback props instead, eg onReady, onPlay, onPause")}},{key:"play",value:function(){this.callPlayer("playVideo")}},{key:"pause",value:function(){this.callPlayer("pauseVideo")}},{key:"stop",value:function(){document.body.contains(this.callPlayer("getIframe"))&&this.callPlayer("stopVideo")}},{key:"seekTo",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.callPlayer("seekTo",e),t||this.props.playing||this.pause()}},{key:"setVolume",value:function(e){this.callPlayer("setVolume",100*e)}},{key:"setPlaybackRate",value:function(e){this.callPlayer("setPlaybackRate",e)}},{key:"setLoop",value:function(e){this.callPlayer("setLoop",e)}},{key:"getDuration",value:function(){return this.callPlayer("getDuration")}},{key:"getCurrentTime",value:function(){return this.callPlayer("getCurrentTime")}},{key:"getSecondsLoaded",value:function(){return this.callPlayer("getVideoLoadedFraction")*this.getDuration()}},{key:"render",value:function(){var e={width:"100%",height:"100%",display:this.props.display};return a.default.createElement("div",{style:e},a.default.createElement("div",{ref:this.ref}))}}],n&&h(t.prototype,n),_}(a.Component);t.default=_,g(_,"displayName","YouTube"),g(_,"canPlay",o.canPlay.youtube)},97015(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(51609),a=n(75635),i=n(50327);function o(e){return o="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},o(e)}function s(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}function l(e){if(e&&e.__esModule)return e;if(null===e||"object"!==o(e)&&"function"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)){var i=r?Object.getOwnPropertyDescriptor(e,a):null;i&&(i.get||i.set)?Object.defineProperty(n,a,i):n[a]=e[a]}return n.default=e,t&&t.set(e,n),n}var c=[{key:"youtube",name:"YouTube",canPlay:i.canPlay.youtube,lazyPlayer:(0,r.lazy)(function(){return Promise.resolve().then(function(){return l(n(82910))})})},{key:"soundcloud",name:"SoundCloud",canPlay:i.canPlay.soundcloud,lazyPlayer:(0,r.lazy)(function(){return Promise.resolve().then(function(){return l(n(93127))})})},{key:"vimeo",name:"Vimeo",canPlay:i.canPlay.vimeo,lazyPlayer:(0,r.lazy)(function(){return Promise.resolve().then(function(){return l(n(91423))})})},{key:"facebook",name:"Facebook",canPlay:i.canPlay.facebook,lazyPlayer:(0,r.lazy)(function(){return Promise.resolve().then(function(){return l(n(61343))})})},{key:"streamable",name:"Streamable",canPlay:i.canPlay.streamable,lazyPlayer:(0,r.lazy)(function(){return Promise.resolve().then(function(){return l(n(9643))})})},{key:"wistia",name:"Wistia",canPlay:i.canPlay.wistia,lazyPlayer:(0,r.lazy)(function(){return Promise.resolve().then(function(){return l(n(23330))})})},{key:"twitch",name:"Twitch",canPlay:i.canPlay.twitch,lazyPlayer:(0,r.lazy)(function(){return Promise.resolve().then(function(){return l(n(21400))})})},{key:"dailymotion",name:"DailyMotion",canPlay:i.canPlay.dailymotion,lazyPlayer:(0,r.lazy)(function(){return Promise.resolve().then(function(){return l(n(39348))})})},{key:"mixcloud",name:"Mixcloud",canPlay:i.canPlay.mixcloud,lazyPlayer:(0,r.lazy)(function(){return Promise.resolve().then(function(){return l(n(3276))})})},{key:"vidyard",name:"Vidyard",canPlay:i.canPlay.vidyard,lazyPlayer:(0,r.lazy)(function(){return Promise.resolve().then(function(){return l(n(53552))})})},{key:"kaltura",name:"Kaltura",canPlay:i.canPlay.kaltura,lazyPlayer:(0,r.lazy)(function(){return Promise.resolve().then(function(){return l(n(97945))})})},{key:"file",name:"FilePlayer",canPlay:i.canPlay.file,canEnablePIP:function(e){return i.canPlay.file(e)&&(document.pictureInPictureEnabled||(0,a.supportsWebKitPresentationMode)())&&!i.AUDIO_EXTENSIONS.test(e)},lazyPlayer:(0,r.lazy)(function(){return Promise.resolve().then(function(){return l(n(20688))})})}];t.default=c},7604(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.defaultProps=t.propTypes=void 0;var r,a=(r=n(5556))&&r.__esModule?r:{default:r},i=a.default.string,o=a.default.bool,s=a.default.number,l=a.default.array,c=a.default.oneOfType,u=a.default.shape,f=a.default.object,h=a.default.func,p=a.default.node,d={url:c([i,l,f]),playing:o,loop:o,controls:o,volume:s,muted:o,playbackRate:s,width:c([i,s]),height:c([i,s]),style:f,progressInterval:s,playsinline:o,pip:o,stopOnUnmount:o,light:c([o,i,f]),playIcon:p,previewTabIndex:s,fallback:p,oEmbedUrl:i,wrapper:c([i,h,u({render:h.isRequired})]),config:u({soundcloud:u({options:f}),youtube:u({playerVars:f,embedOptions:f,onUnstarted:h}),facebook:u({appId:i,version:i,playerId:i,attributes:f}),dailymotion:u({params:f}),vimeo:u({playerOptions:f,title:i}),file:u({attributes:f,tracks:l,forceVideo:o,forceAudio:o,forceHLS:o,forceSafariHLS:o,forceDisableHls:o,forceDASH:o,forceFLV:o,hlsOptions:f,hlsVersion:i,dashVersion:i,flvVersion:i}),wistia:u({options:f,playerId:i,customControls:l}),mixcloud:u({options:f}),twitch:u({options:f,playerId:i}),vidyard:u({options:f})}),onReady:h,onStart:h,onPlay:h,onPause:h,onBuffer:h,onBufferEnd:h,onEnded:h,onError:h,onDuration:h,onSeek:h,onPlaybackRateChange:h,onPlaybackQualityChange:h,onProgress:h,onClickPreview:h,onEnablePIP:h,onDisablePIP:h};t.propTypes=d;var m=function(){},g={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,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:m},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},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:m,onStart:m,onPlay:m,onPause:m,onBuffer:m,onBufferEnd:m,onEnded:m,onError:m,onDuration:m,onSeek:m,onPlaybackRateChange:m,onPlaybackQualityChange:m,onProgress:m,onClickPreview:m,onEnablePIP:m,onDisablePIP:m};t.defaultProps=g},75635(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parseStartTime=function(e){return h(e,l)},t.parseEndTime=function(e){return h(e,c)},t.randomString=function(){return Math.random().toString(36).substr(2,5)},t.queryString=function(e){return Object.keys(e).map(function(t){return"".concat(t,"=").concat(e[t])}).join("&")},t.getSDK=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:function(){return!0},i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:r.default,o=p(t);return o&&a(o)?Promise.resolve(o):new Promise(function(r,a){if(d[e])d[e].push({resolve:r,reject:a});else{d[e]=[{resolve:r,reject:a}];var o=function(t){d[e].forEach(function(e){return e.resolve(t)})};if(n){var s=window[n];window[n]=function(){s&&s(),o(p(t))}}i(e,function(r){r?(d[e].forEach(function(e){return e.reject(r)}),d[e]=null):n||o(p(t))})}})},t.getConfig=function(e,t){return(0,a.default)(t.config,e.config)},t.omit=function(e){for(var t,n=arguments.length,r=new Array(n>1?n-1:0),a=1;a<n;a++)r[a-1]=arguments[a];for(var i=(t=[]).concat.apply(t,r),o={},s=0,l=Object.keys(e);s<l.length;s++){var c=l[s];-1===i.indexOf(c)&&(o[c]=e[c])}return o},t.callPlayer=function(e){var t;if(!this.player||!this.player[e]){var n="ReactPlayer: ".concat(this.constructor.displayName," player could not call %c").concat(e,"%c – ");return this.player?this.player[e]||(n+="The method was not available"):n+="The player was not available",console.warn(n,"font-weight: bold",""),null}for(var r=arguments.length,a=new Array(r>1?r-1:0),i=1;i<r;i++)a[i-1]=arguments[i];return(t=this.player)[e].apply(t,a)},t.isMediaStream=function(e){return"undefined"!=typeof window&&void 0!==window.MediaStream&&e instanceof window.MediaStream},t.isBlobUrl=function(e){return/^blob:/.test(e)},t.supportsWebKitPresentationMode=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document.createElement("video"),t=!1===/iPhone|iPod/.test(navigator.userAgent);return e.webkitSupportsPresentationMode&&"function"==typeof e.webkitSetPresentationMode&&t};var r=i(n(6147)),a=i(n(14744));function i(e){return e&&e.__esModule?e:{default:e}}function o(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,a=!1,i=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){a=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(a)throw i}}return n}}(e,t)||function(e,t){if(e){if("string"==typeof e)return s(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)?s(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var l=/[?&#](?:start|t)=([0-9hms]+)/,c=/[?&#]end=([0-9hms]+)/,u=/(\d+)(h|m|s)/g,f=/^\d+$/;function h(e,t){if(!(e instanceof Array)){var n=e.match(t);if(n){var r=n[1];if(r.match(u))return function(e){for(var t=0,n=u.exec(e);null!==n;){var r=o(n,3),a=r[1],i=r[2];"h"===i&&(t+=60*parseInt(a,10)*60),"m"===i&&(t+=60*parseInt(a,10)),"s"===i&&(t+=parseInt(a,10)),n=u.exec(e)}return t}(r);if(f.test(r))return parseInt(r)}}}function p(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}var d={}},14210(e,t,n){"use strict";function r(e,t,n,r,a,i,o){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=a,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=o}const a={};["children","dangerouslySetInnerHTML","defaultValue","defaultChecked","innerHTML","suppressContentEditableWarning","suppressHydrationWarning","style"].forEach(e=>{a[e]=new r(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(([e,t])=>{a[e]=new r(e,1,!1,t,null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(e=>{a[e]=new r(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(e=>{a[e]=new r(e,2,!1,e,null,!1,!1)}),["allowFullScreen","async","autoFocus","autoPlay","controls","default","defer","disabled","disablePictureInPicture","disableRemotePlayback","formNoValidate","hidden","loop","noModule","noValidate","open","playsInline","readOnly","required","reversed","scoped","seamless","itemScope"].forEach(e=>{a[e]=new r(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(e=>{a[e]=new r(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(e=>{a[e]=new r(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(e=>{a[e]=new r(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(e=>{a[e]=new r(e,5,!1,e.toLowerCase(),null,!1,!1)});const i=/[\-\:]([a-z])/g,o=e=>e[1].toUpperCase();["accent-height","alignment-baseline","arabic-form","baseline-shift","cap-height","clip-path","clip-rule","color-interpolation","color-interpolation-filters","color-profile","color-rendering","dominant-baseline","enable-background","fill-opacity","fill-rule","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","glyph-name","glyph-orientation-horizontal","glyph-orientation-vertical","horiz-adv-x","horiz-origin-x","image-rendering","letter-spacing","lighting-color","marker-end","marker-mid","marker-start","overline-position","overline-thickness","paint-order","panose-1","pointer-events","rendering-intent","shape-rendering","stop-color","stop-opacity","strikethrough-position","strikethrough-thickness","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-anchor","text-decoration","text-rendering","underline-position","underline-thickness","unicode-bidi","unicode-range","units-per-em","v-alphabetic","v-hanging","v-ideographic","v-mathematical","vector-effect","vert-adv-y","vert-origin-x","vert-origin-y","word-spacing","writing-mode","xmlns:xlink","x-height"].forEach(e=>{const t=e.replace(i,o);a[t]=new r(t,1,!1,e,null,!1,!1)}),["xlink:actuate","xlink:arcrole","xlink:role","xlink:show","xlink:title","xlink:type"].forEach(e=>{const t=e.replace(i,o);a[t]=new r(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(e=>{const t=e.replace(i,o);a[t]=new r(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(e=>{a[e]=new r(e,1,!1,e.toLowerCase(),null,!1,!1)}),a.xlinkHref=new r("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(e=>{a[e]=new r(e,1,!1,e.toLowerCase(),null,!0,!0)});const{CAMELCASE:s,SAME:l,possibleStandardNames:c}=n(96811),u=RegExp.prototype.test.bind(new RegExp("^(data|aria)-[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$")),f=Object.keys(c).reduce((e,t)=>{const n=c[t];return n===l?e[t]=t:n===s?e[t.toLowerCase()]=t:e[t]=n,e},{});t.BOOLEAN=3,t.BOOLEANISH_STRING=2,t.NUMERIC=5,t.OVERLOADED_BOOLEAN=4,t.POSITIVE_NUMERIC=6,t.RESERVED=0,t.STRING=1,t.getPropertyInfo=function(e){return a.hasOwnProperty(e)?a[e]:null},t.isCustomAttribute=u,t.possibleStandardNames=f},96811(e,t){t.SAME=0,t.CAMELCASE=1,t.possibleStandardNames={accept:0,acceptCharset:1,"accept-charset":"acceptCharset",accessKey:1,action:0,allowFullScreen:1,alt:0,as:0,async:0,autoCapitalize:1,autoComplete:1,autoCorrect:1,autoFocus:1,autoPlay:1,autoSave:1,capture:0,cellPadding:1,cellSpacing:1,challenge:0,charSet:1,checked:0,children:0,cite:0,class:"className",classID:1,className:1,cols:0,colSpan:1,content:0,contentEditable:1,contextMenu:1,controls:0,controlsList:1,coords:0,crossOrigin:1,dangerouslySetInnerHTML:1,data:0,dateTime:1,default:0,defaultChecked:1,defaultValue:1,defer:0,dir:0,disabled:0,disablePictureInPicture:1,disableRemotePlayback:1,download:0,draggable:0,encType:1,enterKeyHint:1,for:"htmlFor",form:0,formMethod:1,formAction:1,formEncType:1,formNoValidate:1,formTarget:1,frameBorder:1,headers:0,height:0,hidden:0,high:0,href:0,hrefLang:1,htmlFor:1,httpEquiv:1,"http-equiv":"httpEquiv",icon:0,id:0,innerHTML:1,inputMode:1,integrity:0,is:0,itemID:1,itemProp:1,itemRef:1,itemScope:1,itemType:1,keyParams:1,keyType:1,kind:0,label:0,lang:0,list:0,loop:0,low:0,manifest:0,marginWidth:1,marginHeight:1,max:0,maxLength:1,media:0,mediaGroup:1,method:0,min:0,minLength:1,multiple:0,muted:0,name:0,noModule:1,nonce:0,noValidate:1,open:0,optimum:0,pattern:0,placeholder:0,playsInline:1,poster:0,preload:0,profile:0,radioGroup:1,readOnly:1,referrerPolicy:1,rel:0,required:0,reversed:0,role:0,rows:0,rowSpan:1,sandbox:0,scope:0,scoped:0,scrolling:0,seamless:0,selected:0,shape:0,size:0,sizes:0,span:0,spellCheck:1,src:0,srcDoc:1,srcLang:1,srcSet:1,start:0,step:0,style:0,summary:0,tabIndex:1,target:0,title:0,type:0,useMap:1,value:0,width:0,wmode:0,wrap:0,about:0,accentHeight:1,"accent-height":"accentHeight",accumulate:0,additive:0,alignmentBaseline:1,"alignment-baseline":"alignmentBaseline",allowReorder:1,alphabetic:0,amplitude:0,arabicForm:1,"arabic-form":"arabicForm",ascent:0,attributeName:1,attributeType:1,autoReverse:1,azimuth:0,baseFrequency:1,baselineShift:1,"baseline-shift":"baselineShift",baseProfile:1,bbox:0,begin:0,bias:0,by:0,calcMode:1,capHeight:1,"cap-height":"capHeight",clip:0,clipPath:1,"clip-path":"clipPath",clipPathUnits:1,clipRule:1,"clip-rule":"clipRule",color:0,colorInterpolation:1,"color-interpolation":"colorInterpolation",colorInterpolationFilters:1,"color-interpolation-filters":"colorInterpolationFilters",colorProfile:1,"color-profile":"colorProfile",colorRendering:1,"color-rendering":"colorRendering",contentScriptType:1,contentStyleType:1,cursor:0,cx:0,cy:0,d:0,datatype:0,decelerate:0,descent:0,diffuseConstant:1,direction:0,display:0,divisor:0,dominantBaseline:1,"dominant-baseline":"dominantBaseline",dur:0,dx:0,dy:0,edgeMode:1,elevation:0,enableBackground:1,"enable-background":"enableBackground",end:0,exponent:0,externalResourcesRequired:1,fill:0,fillOpacity:1,"fill-opacity":"fillOpacity",fillRule:1,"fill-rule":"fillRule",filter:0,filterRes:1,filterUnits:1,floodOpacity:1,"flood-opacity":"floodOpacity",floodColor:1,"flood-color":"floodColor",focusable:0,fontFamily:1,"font-family":"fontFamily",fontSize:1,"font-size":"fontSize",fontSizeAdjust:1,"font-size-adjust":"fontSizeAdjust",fontStretch:1,"font-stretch":"fontStretch",fontStyle:1,"font-style":"fontStyle",fontVariant:1,"font-variant":"fontVariant",fontWeight:1,"font-weight":"fontWeight",format:0,from:0,fx:0,fy:0,g1:0,g2:0,glyphName:1,"glyph-name":"glyphName",glyphOrientationHorizontal:1,"glyph-orientation-horizontal":"glyphOrientationHorizontal",glyphOrientationVertical:1,"glyph-orientation-vertical":"glyphOrientationVertical",glyphRef:1,gradientTransform:1,gradientUnits:1,hanging:0,horizAdvX:1,"horiz-adv-x":"horizAdvX",horizOriginX:1,"horiz-origin-x":"horizOriginX",ideographic:0,imageRendering:1,"image-rendering":"imageRendering",in2:0,in:0,inlist:0,intercept:0,k1:0,k2:0,k3:0,k4:0,k:0,kernelMatrix:1,kernelUnitLength:1,kerning:0,keyPoints:1,keySplines:1,keyTimes:1,lengthAdjust:1,letterSpacing:1,"letter-spacing":"letterSpacing",lightingColor:1,"lighting-color":"lightingColor",limitingConeAngle:1,local:0,markerEnd:1,"marker-end":"markerEnd",markerHeight:1,markerMid:1,"marker-mid":"markerMid",markerStart:1,"marker-start":"markerStart",markerUnits:1,markerWidth:1,mask:0,maskContentUnits:1,maskUnits:1,mathematical:0,mode:0,numOctaves:1,offset:0,opacity:0,operator:0,order:0,orient:0,orientation:0,origin:0,overflow:0,overlinePosition:1,"overline-position":"overlinePosition",overlineThickness:1,"overline-thickness":"overlineThickness",paintOrder:1,"paint-order":"paintOrder",panose1:0,"panose-1":"panose1",pathLength:1,patternContentUnits:1,patternTransform:1,patternUnits:1,pointerEvents:1,"pointer-events":"pointerEvents",points:0,pointsAtX:1,pointsAtY:1,pointsAtZ:1,prefix:0,preserveAlpha:1,preserveAspectRatio:1,primitiveUnits:1,property:0,r:0,radius:0,refX:1,refY:1,renderingIntent:1,"rendering-intent":"renderingIntent",repeatCount:1,repeatDur:1,requiredExtensions:1,requiredFeatures:1,resource:0,restart:0,result:0,results:0,rotate:0,rx:0,ry:0,scale:0,security:0,seed:0,shapeRendering:1,"shape-rendering":"shapeRendering",slope:0,spacing:0,specularConstant:1,specularExponent:1,speed:0,spreadMethod:1,startOffset:1,stdDeviation:1,stemh:0,stemv:0,stitchTiles:1,stopColor:1,"stop-color":"stopColor",stopOpacity:1,"stop-opacity":"stopOpacity",strikethroughPosition:1,"strikethrough-position":"strikethroughPosition",strikethroughThickness:1,"strikethrough-thickness":"strikethroughThickness",string:0,stroke:0,strokeDasharray:1,"stroke-dasharray":"strokeDasharray",strokeDashoffset:1,"stroke-dashoffset":"strokeDashoffset",strokeLinecap:1,"stroke-linecap":"strokeLinecap",strokeLinejoin:1,"stroke-linejoin":"strokeLinejoin",strokeMiterlimit:1,"stroke-miterlimit":"strokeMiterlimit",strokeWidth:1,"stroke-width":"strokeWidth",strokeOpacity:1,"stroke-opacity":"strokeOpacity",suppressContentEditableWarning:1,suppressHydrationWarning:1,surfaceScale:1,systemLanguage:1,tableValues:1,targetX:1,targetY:1,textAnchor:1,"text-anchor":"textAnchor",textDecoration:1,"text-decoration":"textDecoration",textLength:1,textRendering:1,"text-rendering":"textRendering",to:0,transform:0,typeof:0,u1:0,u2:0,underlinePosition:1,"underline-position":"underlinePosition",underlineThickness:1,"underline-thickness":"underlineThickness",unicode:0,unicodeBidi:1,"unicode-bidi":"unicodeBidi",unicodeRange:1,"unicode-range":"unicodeRange",unitsPerEm:1,"units-per-em":"unitsPerEm",unselectable:0,vAlphabetic:1,"v-alphabetic":"vAlphabetic",values:0,vectorEffect:1,"vector-effect":"vectorEffect",version:0,vertAdvY:1,"vert-adv-y":"vertAdvY",vertOriginX:1,"vert-origin-x":"vertOriginX",vertOriginY:1,"vert-origin-y":"vertOriginY",vHanging:1,"v-hanging":"vHanging",vIdeographic:1,"v-ideographic":"vIdeographic",viewBox:1,viewTarget:1,visibility:0,vMathematical:1,"v-mathematical":"vMathematical",vocab:0,widths:0,wordSpacing:1,"word-spacing":"wordSpacing",writingMode:1,"writing-mode":"writingMode",x1:0,x2:0,x:0,xChannelSelector:1,xHeight:1,"x-height":"xHeight",xlinkActuate:1,"xlink:actuate":"xlinkActuate",xlinkArcrole:1,"xlink:arcrole":"xlinkArcrole",xlinkHref:1,"xlink:href":"xlinkHref",xlinkRole:1,"xlink:role":"xlinkRole",xlinkShow:1,"xlink:show":"xlinkShow",xlinkTitle:1,"xlink:title":"xlinkTitle",xlinkType:1,"xlink:type":"xlinkType",xmlBase:1,"xml:base":"xmlBase",xmlLang:1,"xml:lang":"xmlLang",xmlns:0,"xml:space":"xmlSpace",xmlnsXlink:1,"xmlns:xlink":"xmlnsXlink",xmlSpace:1,y1:0,y2:0,y:0,yChannelSelector:1,z:0,zoomAndPan:1}},8539(e,t,n){"use strict";if(n.d(t,{A:()=>c}),/^(3260|6573)$/.test(n.j))var r=n(58168);var a=n(51609);if(/^(3260|6573)$/.test(n.j))var i=n(34645);if(/^(3260|6573)$/.test(n.j))var o=n(52836);if(/^(3260|6573)$/.test(n.j))var s=n(60405);n(75795),n(27003);var l=/^(3260|6573)$/.test(n.j)?(0,a.forwardRef)(function(e,t){var n=(0,s.u)(e),l=(0,o.u)(n);return a.createElement(i.S,(0,r.A)({ref:t},l))}):null,c=/^(3260|6573)$/.test(n.j)?l:null},34645(e,t,n){"use strict";n.d(t,{S:()=>fe});var r=n(58168),a=n(89379),i=n(23029),o=n(92901),s=n(85501),l=n(29426),c=n(89394),u=n(51609),f=n(79800),h=n(87457),p=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function d(e,t){return e===t||!(!p(e)||!p(t))}function m(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!d(e[n],t[n]))return!1;return!0}for(var g=n(80045),y={name:"7pg0cj-a11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap"},v=function(e){return(0,h.Y)("span",(0,r.A)({css:y},e))},b={guidance:function(e){var t=e.isSearchable,n=e.isMulti,r=e.tabSelectsValue,a=e.context,i=e.isInitialFocus;switch(a){case"menu":return"Use Up and Down to choose options, press Enter to select the currently focused option, press Escape to exit the menu".concat(r?", press Tab to select the option and exit the menu":"",".");case"input":return i?"".concat(e["aria-label"]||"Select"," is focused ").concat(t?",type to refine list":"",", press Down to open the menu, ").concat(n?" press left to focus selected values":""):"";case"value":return"Use left and right to toggle between focused values, press Backspace to remove the currently focused value";default:return""}},onChange:function(e){var t=e.action,n=e.label,r=void 0===n?"":n,a=e.labels,i=e.isDisabled;switch(t){case"deselect-option":case"pop-value":case"remove-value":return"option ".concat(r,", deselected.");case"clear":return"All selected options have been cleared.";case"initial-input-focus":return"option".concat(a.length>1?"s":""," ").concat(a.join(","),", selected.");case"select-option":return"option ".concat(r,i?" is disabled. Select another option.":", selected.");default:return""}},onFocus:function(e){var t=e.context,n=e.focused,r=e.options,a=e.label,i=void 0===a?"":a,o=e.selectValue,s=e.isDisabled,l=e.isSelected,c=e.isAppleDevice,u=function(e,t){return e&&e.length?"".concat(e.indexOf(t)+1," of ").concat(e.length):""};if("value"===t&&o)return"value ".concat(i," focused, ").concat(u(o,n),".");if("menu"===t&&c){var f=s?" disabled":"",h="".concat(l?" selected":"").concat(f);return"".concat(i).concat(h,", ").concat(u(r,n),".")}return""},onFilter:function(e){var t=e.inputValue,n=e.resultsMessage;return"".concat(n).concat(t?" for search term "+t:"",".")}},_=function(e){var t=e.ariaSelection,n=e.focusedOption,r=e.focusedValue,i=e.focusableOptions,o=e.isFocused,s=e.selectValue,l=e.selectProps,c=e.id,f=e.isAppleDevice,p=l.ariaLiveMessages,d=l.getOptionLabel,m=l.inputValue,g=l.isMulti,y=l.isOptionDisabled,_=l.isSearchable,w=l.menuIsOpen,S=l.options,x=l.screenReaderStatus,k=l.tabSelectsValue,C=l.isLoading,E=l["aria-label"],P=l["aria-live"],A=(0,u.useMemo)(function(){return(0,a.A)((0,a.A)({},b),p||{})},[p]),O=(0,u.useMemo)(function(){var e,n="";if(t&&A.onChange){var r=t.option,i=t.options,o=t.removedValue,l=t.removedValues,c=t.value,u=o||r||(e=c,Array.isArray(e)?null:e),f=u?d(u):"",h=i||l||void 0,p=h?h.map(d):[],m=(0,a.A)({isDisabled:u&&y(u,s),label:f,labels:p},t);n=A.onChange(m)}return n},[t,A,y,s,d]),M=(0,u.useMemo)(function(){var e="",t=n||r,a=!!(n&&s&&s.includes(n));if(t&&A.onFocus){var o={focused:t,label:d(t),isDisabled:y(t,s),isSelected:a,options:i,context:t===n?"menu":"value",selectValue:s,isAppleDevice:f};e=A.onFocus(o)}return e},[n,r,d,y,A,i,s,f]),T=(0,u.useMemo)(function(){var e="";if(w&&S.length&&!C&&A.onFilter){var t=x({count:i.length});e=A.onFilter({inputValue:m,resultsMessage:t})}return e},[i,m,w,A,S,x,C]),I="initial-input-focus"===(null==t?void 0:t.action),D=(0,u.useMemo)(function(){var e="";if(A.guidance){var t=r?"value":w?"menu":"input";e=A.guidance({"aria-label":E,context:t,isDisabled:n&&y(n,s),isMulti:g,isSearchable:_,tabSelectsValue:k,isInitialFocus:I})}return e},[E,n,r,g,y,_,w,A,s,k,I]),L=(0,h.Y)(u.Fragment,null,(0,h.Y)("span",{id:"aria-selection"},O),(0,h.Y)("span",{id:"aria-focused"},M),(0,h.Y)("span",{id:"aria-results"},T),(0,h.Y)("span",{id:"aria-guidance"},D));return(0,h.Y)(u.Fragment,null,(0,h.Y)(v,{id:c},I&&L),(0,h.Y)(v,{"aria-live":P,"aria-atomic":"false","aria-relevant":"additions text",role:"log"},o&&!I&&L))},w=[{base:"A",letters:"AⒶＡÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ"},{base:"AA",letters:"Ꜳ"},{base:"AE",letters:"ÆǼǢ"},{base:"AO",letters:"Ꜵ"},{base:"AU",letters:"Ꜷ"},{base:"AV",letters:"ꜸꜺ"},{base:"AY",letters:"Ꜽ"},{base:"B",letters:"BⒷＢḂḄḆɃƂƁ"},{base:"C",letters:"CⒸＣĆĈĊČÇḈƇȻꜾ"},{base:"D",letters:"DⒹＤḊĎḌḐḒḎĐƋƊƉꝹ"},{base:"DZ",letters:"ǱǄ"},{base:"Dz",letters:"ǲǅ"},{base:"E",letters:"EⒺＥÈÉÊỀẾỄỂẼĒḔḖĔĖËẺĚȄȆẸỆȨḜĘḘḚƐƎ"},{base:"F",letters:"FⒻＦḞƑꝻ"},{base:"G",letters:"GⒼＧǴĜḠĞĠǦĢǤƓꞠꝽꝾ"},{base:"H",letters:"HⒽＨĤḢḦȞḤḨḪĦⱧⱵꞍ"},{base:"I",letters:"IⒾＩÌÍÎĨĪĬİÏḮỈǏȈȊỊĮḬƗ"},{base:"J",letters:"JⒿＪĴɈ"},{base:"K",letters:"KⓀＫḰǨḲĶḴƘⱩꝀꝂꝄꞢ"},{base:"L",letters:"LⓁＬĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ"},{base:"LJ",letters:"Ǉ"},{base:"Lj",letters:"ǈ"},{base:"M",letters:"MⓂＭḾṀṂⱮƜ"},{base:"N",letters:"NⓃＮǸŃÑṄŇṆŅṊṈȠƝꞐꞤ"},{base:"NJ",letters:"Ǌ"},{base:"Nj",letters:"ǋ"},{base:"O",letters:"OⓄＯÒÓÔỒỐỖỔÕṌȬṎŌṐṒŎȮȰÖȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬØǾƆƟꝊꝌ"},{base:"OI",letters:"Ƣ"},{base:"OO",letters:"Ꝏ"},{base:"OU",letters:"Ȣ"},{base:"P",letters:"PⓅＰṔṖƤⱣꝐꝒꝔ"},{base:"Q",letters:"QⓆＱꝖꝘɊ"},{base:"R",letters:"RⓇＲŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ"},{base:"S",letters:"SⓈＳẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ"},{base:"T",letters:"TⓉＴṪŤṬȚŢṰṮŦƬƮȾꞆ"},{base:"TZ",letters:"Ꜩ"},{base:"U",letters:"UⓊＵÙÚÛŨṸŪṺŬÜǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ"},{base:"V",letters:"VⓋＶṼṾƲꝞɅ"},{base:"VY",letters:"Ꝡ"},{base:"W",letters:"WⓌＷẀẂŴẆẄẈⱲ"},{base:"X",letters:"XⓍＸẊẌ"},{base:"Y",letters:"YⓎＹỲÝŶỸȲẎŸỶỴƳɎỾ"},{base:"Z",letters:"ZⓏＺŹẐŻŽẒẔƵȤⱿⱫꝢ"},{base:"a",letters:"aⓐａẚàáâầấẫẩãāăằắẵẳȧǡäǟảåǻǎȁȃạậặḁąⱥɐ"},{base:"aa",letters:"ꜳ"},{base:"ae",letters:"æǽǣ"},{base:"ao",letters:"ꜵ"},{base:"au",letters:"ꜷ"},{base:"av",letters:"ꜹꜻ"},{base:"ay",letters:"ꜽ"},{base:"b",letters:"bⓑｂḃḅḇƀƃɓ"},{base:"c",letters:"cⓒｃćĉċčçḉƈȼꜿↄ"},{base:"d",letters:"dⓓｄḋďḍḑḓḏđƌɖɗꝺ"},{base:"dz",letters:"ǳǆ"},{base:"e",letters:"eⓔｅèéêềếễểẽēḕḗĕėëẻěȅȇẹệȩḝęḙḛɇɛǝ"},{base:"f",letters:"fⓕｆḟƒꝼ"},{base:"g",letters:"gⓖｇǵĝḡğġǧģǥɠꞡᵹꝿ"},{base:"h",letters:"hⓗｈĥḣḧȟḥḩḫẖħⱨⱶɥ"},{base:"hv",letters:"ƕ"},{base:"i",letters:"iⓘｉìíîĩīĭïḯỉǐȉȋịįḭɨı"},{base:"j",letters:"jⓙｊĵǰɉ"},{base:"k",letters:"kⓚｋḱǩḳķḵƙⱪꝁꝃꝅꞣ"},{base:"l",letters:"lⓛｌŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇ"},{base:"lj",letters:"ǉ"},{base:"m",letters:"mⓜｍḿṁṃɱɯ"},{base:"n",letters:"nⓝｎǹńñṅňṇņṋṉƞɲŉꞑꞥ"},{base:"nj",letters:"ǌ"},{base:"o",letters:"oⓞｏòóôồốỗổõṍȭṏōṑṓŏȯȱöȫỏőǒȍȏơờớỡởợọộǫǭøǿɔꝋꝍɵ"},{base:"oi",letters:"ƣ"},{base:"ou",letters:"ȣ"},{base:"oo",letters:"ꝏ"},{base:"p",letters:"pⓟｐṕṗƥᵽꝑꝓꝕ"},{base:"q",letters:"qⓠｑɋꝗꝙ"},{base:"r",letters:"rⓡｒŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ"},{base:"s",letters:"sⓢｓßśṥŝṡšṧṣṩșşȿꞩꞅẛ"},{base:"t",letters:"tⓣｔṫẗťṭțţṱṯŧƭʈⱦꞇ"},{base:"tz",letters:"ꜩ"},{base:"u",letters:"uⓤｕùúûũṹūṻŭüǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"},{base:"v",letters:"vⓥｖṽṿʋꝟʌ"},{base:"vy",letters:"ꝡ"},{base:"w",letters:"wⓦｗẁẃŵẇẅẘẉⱳ"},{base:"x",letters:"xⓧｘẋẍ"},{base:"y",letters:"yⓨｙỳýŷỹȳẏÿỷẙỵƴɏỿ"},{base:"z",letters:"zⓩｚźẑżžẓẕƶȥɀⱬꝣ"}],S=new RegExp("["+w.map(function(e){return e.letters}).join("")+"]","g"),x={},k=0;k<w.length;k++)for(var C=w[k],E=0;E<C.letters.length;E++)x[C.letters[E]]=C.base;var P=function(e){return e.replace(S,function(e){return x[e]})},A=function(e,t){void 0===t&&(t=m);var n=null;function r(){for(var r=[],a=0;a<arguments.length;a++)r[a]=arguments[a];if(n&&n.lastThis===this&&t(r,n.lastArgs))return n.lastResult;var i=e.apply(this,r);return n={lastResult:i,lastArgs:r,lastThis:this},i}return r.clear=function(){n=null},r}(P),O=function(e){return e.replace(/^\s+|\s+$/g,"")},M=function(e){return"".concat(e.label," ").concat(e.value)},T=["innerRef"];function I(e){var t=e.innerRef,n=(0,g.A)(e,T),a=(0,f.r)(n,"onExited","in","enter","exit","appear");return(0,h.Y)("input",(0,r.A)({ref:t},a,{css:(0,h.AH)({label:"dummyInput",background:0,border:0,caretColor:"transparent",fontSize:"inherit",gridArea:"1 / 1 / 2 / 3",outline:0,padding:0,width:1,color:"transparent",left:-100,opacity:0,position:"relative",transform:"scale(.01)"},"","")}))}var D=["boxSizing","height","overflow","paddingRight","position"],L={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function R(e){e.cancelable&&e.preventDefault()}function j(e){e.stopPropagation()}function F(){var e=this.scrollTop,t=this.scrollHeight,n=e+this.offsetHeight;0===e?this.scrollTop=1:n===t&&(this.scrollTop=e-1)}function V(){return"ontouchstart"in window||navigator.maxTouchPoints}var N=!("undefined"==typeof window||!window.document||!window.document.createElement),B=0,z={capture:!1,passive:!1},H=function(e){var t=e.target;return t.ownerDocument.activeElement&&t.ownerDocument.activeElement.blur()},G={name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"};function W(e){var t=e.children,n=e.lockEnabled,r=e.captureEnabled,a=function(e){var t=e.isEnabled,n=e.onBottomArrive,r=e.onBottomLeave,a=e.onTopArrive,i=e.onTopLeave,o=(0,u.useRef)(!1),s=(0,u.useRef)(!1),l=(0,u.useRef)(0),c=(0,u.useRef)(null),h=(0,u.useCallback)(function(e,t){if(null!==c.current){var l=c.current,u=l.scrollTop,f=l.scrollHeight,h=l.clientHeight,p=c.current,d=t>0,m=f-h-u,g=!1;m>t&&o.current&&(r&&r(e),o.current=!1),d&&s.current&&(i&&i(e),s.current=!1),d&&t>m?(n&&!o.current&&n(e),p.scrollTop=f,g=!0,o.current=!0):!d&&-t>u&&(a&&!s.current&&a(e),p.scrollTop=0,g=!0,s.current=!0),g&&function(e){e.cancelable&&e.preventDefault(),e.stopPropagation()}(e)}},[n,r,a,i]),p=(0,u.useCallback)(function(e){h(e,e.deltaY)},[h]),d=(0,u.useCallback)(function(e){l.current=e.changedTouches[0].clientY},[]),m=(0,u.useCallback)(function(e){var t=l.current-e.changedTouches[0].clientY;h(e,t)},[h]),g=(0,u.useCallback)(function(e){if(e){var t=!!f.s&&{passive:!1};e.addEventListener("wheel",p,t),e.addEventListener("touchstart",d,t),e.addEventListener("touchmove",m,t)}},[m,d,p]),y=(0,u.useCallback)(function(e){e&&(e.removeEventListener("wheel",p,!1),e.removeEventListener("touchstart",d,!1),e.removeEventListener("touchmove",m,!1))},[m,d,p]);return(0,u.useEffect)(function(){if(t){var e=c.current;return g(e),function(){y(e)}}},[t,g,y]),function(e){c.current=e}}({isEnabled:void 0===r||r,onBottomArrive:e.onBottomArrive,onBottomLeave:e.onBottomLeave,onTopArrive:e.onTopArrive,onTopLeave:e.onTopLeave}),i=function(e){var t=e.isEnabled,n=e.accountForScrollbars,r=void 0===n||n,a=(0,u.useRef)({}),i=(0,u.useRef)(null),o=(0,u.useCallback)(function(e){if(N){var t=document.body,n=t&&t.style;if(r&&D.forEach(function(e){var t=n&&n[e];a.current[e]=t}),r&&B<1){var i=parseInt(a.current.paddingRight,10)||0,o=document.body?document.body.clientWidth:0,s=window.innerWidth-o+i||0;Object.keys(L).forEach(function(e){var t=L[e];n&&(n[e]=t)}),n&&(n.paddingRight="".concat(s,"px"))}t&&V()&&(t.addEventListener("touchmove",R,z),e&&(e.addEventListener("touchstart",F,z),e.addEventListener("touchmove",j,z))),B+=1}},[r]),s=(0,u.useCallback)(function(e){if(N){var t=document.body,n=t&&t.style;B=Math.max(B-1,0),r&&B<1&&D.forEach(function(e){var t=a.current[e];n&&(n[e]=t)}),t&&V()&&(t.removeEventListener("touchmove",R,z),e&&(e.removeEventListener("touchstart",F,z),e.removeEventListener("touchmove",j,z)))}},[r]);return(0,u.useEffect)(function(){if(t){var e=i.current;return o(e),function(){s(e)}}},[t,o,s]),function(e){i.current=e}}({isEnabled:n});return(0,h.Y)(u.Fragment,null,n&&(0,h.Y)("div",{onClick:H,css:G}),t(function(e){a(e),i(e)}))}var U={name:"1a0ro4n-requiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"},$=function(e){var t=e.name,n=e.onFocus;return(0,h.Y)("input",{required:!0,name:t,tabIndex:-1,"aria-hidden":"true",onFocus:n,css:U,value:"",onChange:function(){}})};function q(e){var t;return"undefined"!=typeof window&&null!=window.navigator&&e.test((null===(t=window.navigator.userAgentData)||void 0===t?void 0:t.platform)||window.navigator.platform)}function Y(){return q(/^Mac/i)}var K={clearIndicator:f.a,container:f.b,control:f.d,dropdownIndicator:f.e,group:f.g,groupHeading:f.f,indicatorsContainer:f.i,indicatorSeparator:f.h,input:f.j,loadingIndicator:f.l,loadingMessage:f.k,menu:f.m,menuList:f.n,menuPortal:f.o,multiValue:f.p,multiValueLabel:f.q,multiValueRemove:f.t,noOptionsMessage:f.u,option:f.v,placeholder:f.w,singleValue:f.x,valueContainer:f.y},X={borderRadius:4,colors:{primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},spacing:{baseUnit:4,controlHeight:38,menuGutter:8}},J={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:(0,f.z)(),captureMenuScroll:!(0,f.z)(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:function(e,t){if(e.data.__isNew__)return!0;var n=(0,a.A)({ignoreCase:!0,ignoreAccents:!0,stringify:M,trim:!0,matchFrom:"any"},void 0),r=n.ignoreCase,i=n.ignoreAccents,o=n.stringify,s=n.trim,l=n.matchFrom,c=s?O(t):t,u=s?O(o(e)):o(e);return r&&(c=c.toLowerCase(),u=u.toLowerCase()),i&&(c=A(c),u=P(u)),"start"===l?u.substr(0,c.length)===c:u.indexOf(c)>-1},formatGroupLabel:function(e){return e.label},getOptionLabel:function(e){return e.label},getOptionValue:function(e){return e.value},isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:function(e){return!!e.isDisabled},loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!(0,f.A)(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(e){var t=e.count;return"".concat(t," result").concat(1!==t?"s":""," available")},styles:{},tabIndex:0,tabSelectsValue:!0,unstyled:!1};function Z(e,t,n,r){return{type:"option",data:t,isDisabled:oe(e,t,n),isSelected:se(e,t,n),label:ae(e,t),value:ie(e,t),index:r}}function Q(e,t){return e.options.map(function(n,r){if("options"in n){var a=n.options.map(function(n,r){return Z(e,n,t,r)}).filter(function(t){return ne(e,t)});return a.length>0?{type:"group",data:n,options:a,index:r}:void 0}var i=Z(e,n,t,r);return ne(e,i)?i:void 0}).filter(f.K)}function ee(e){return e.reduce(function(e,t){return"group"===t.type?e.push.apply(e,(0,c.A)(t.options.map(function(e){return e.data}))):e.push(t.data),e},[])}function te(e,t){return e.reduce(function(e,n){return"group"===n.type?e.push.apply(e,(0,c.A)(n.options.map(function(e){return{data:e.data,id:"".concat(t,"-").concat(n.index,"-").concat(e.index)}}))):e.push({data:n.data,id:"".concat(t,"-").concat(n.index)}),e},[])}function ne(e,t){var n=e.inputValue,r=void 0===n?"":n,a=t.data,i=t.isSelected,o=t.label,s=t.value;return(!ce(e)||!i)&&le(e,{label:o,value:s,data:a},r)}var re=function(e,t){var n;return(null===(n=e.find(function(e){return e.data===t}))||void 0===n?void 0:n.id)||null},ae=function(e,t){return e.getOptionLabel(t)},ie=function(e,t){return e.getOptionValue(t)};function oe(e,t,n){return"function"==typeof e.isOptionDisabled&&e.isOptionDisabled(t,n)}function se(e,t,n){if(n.indexOf(t)>-1)return!0;if("function"==typeof e.isOptionSelected)return e.isOptionSelected(t,n);var r=ie(e,t);return n.some(function(t){return ie(e,t)===r})}function le(e,t,n){return!e.filterOption||e.filterOption(t,n)}var ce=function(e){var t=e.hideSelectedOptions,n=e.isMulti;return void 0===t?n:t},ue=1,fe=function(e){(0,s.A)(n,e);var t=(0,l.A)(n);function n(e){var r;if((0,i.A)(this,n),(r=t.call(this,e)).state={ariaSelection:null,focusedOption:null,focusedOptionId:null,focusableOptionsWithIds:[],focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,prevWasFocused:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0,instancePrefix:"",isAppleDevice:!1},r.blockOptionHover=!1,r.isComposing=!1,r.commonProps=void 0,r.initialTouchX=0,r.initialTouchY=0,r.openAfterFocus=!1,r.scrollToFocusedOptionOnUpdate=!1,r.userIsDragging=void 0,r.controlRef=null,r.getControlRef=function(e){r.controlRef=e},r.focusedOptionRef=null,r.getFocusedOptionRef=function(e){r.focusedOptionRef=e},r.menuListRef=null,r.getMenuListRef=function(e){r.menuListRef=e},r.inputRef=null,r.getInputRef=function(e){r.inputRef=e},r.focus=r.focusInput,r.blur=r.blurInput,r.onChange=function(e,t){var n=r.props,a=n.onChange,i=n.name;t.name=i,r.ariaOnChange(e,t),a(e,t)},r.setValue=function(e,t,n){var a=r.props,i=a.closeMenuOnSelect,o=a.isMulti,s=a.inputValue;r.onInputChange("",{action:"set-value",prevInputValue:s}),i&&(r.setState({inputIsHiddenAfterUpdate:!o}),r.onMenuClose()),r.setState({clearFocusValueOnUpdate:!0}),r.onChange(e,{action:t,option:n})},r.selectOption=function(e){var t=r.props,n=t.blurInputOnSelect,a=t.isMulti,i=t.name,o=r.state.selectValue,s=a&&r.isOptionSelected(e,o),l=r.isOptionDisabled(e,o);if(s){var u=r.getOptionValue(e);r.setValue((0,f.B)(o.filter(function(e){return r.getOptionValue(e)!==u})),"deselect-option",e)}else{if(l)return void r.ariaOnChange((0,f.C)(e),{action:"select-option",option:e,name:i});a?r.setValue((0,f.B)([].concat((0,c.A)(o),[e])),"select-option",e):r.setValue((0,f.C)(e),"select-option")}n&&r.blurInput()},r.removeValue=function(e){var t=r.props.isMulti,n=r.state.selectValue,a=r.getOptionValue(e),i=n.filter(function(e){return r.getOptionValue(e)!==a}),o=(0,f.D)(t,i,i[0]||null);r.onChange(o,{action:"remove-value",removedValue:e}),r.focusInput()},r.clearValue=function(){var e=r.state.selectValue;r.onChange((0,f.D)(r.props.isMulti,[],null),{action:"clear",removedValues:e})},r.popValue=function(){var e=r.props.isMulti,t=r.state.selectValue,n=t[t.length-1],a=t.slice(0,t.length-1),i=(0,f.D)(e,a,a[0]||null);n&&r.onChange(i,{action:"pop-value",removedValue:n})},r.getFocusedOptionId=function(e){return re(r.state.focusableOptionsWithIds,e)},r.getFocusableOptionsWithIds=function(){return te(Q(r.props,r.state.selectValue),r.getElementId("option"))},r.getValue=function(){return r.state.selectValue},r.cx=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return f.E.apply(void 0,[r.props.classNamePrefix].concat(t))},r.getOptionLabel=function(e){return ae(r.props,e)},r.getOptionValue=function(e){return ie(r.props,e)},r.getStyles=function(e,t){var n=r.props.unstyled,a=K[e](t,n);a.boxSizing="border-box";var i=r.props.styles[e];return i?i(a,t):a},r.getClassNames=function(e,t){var n,a;return null===(n=(a=r.props.classNames)[e])||void 0===n?void 0:n.call(a,t)},r.getElementId=function(e){return"".concat(r.state.instancePrefix,"-").concat(e)},r.getComponents=function(){return(0,f.F)(r.props)},r.buildCategorizedOptions=function(){return Q(r.props,r.state.selectValue)},r.getCategorizedOptions=function(){return r.props.menuIsOpen?r.buildCategorizedOptions():[]},r.buildFocusableOptions=function(){return ee(r.buildCategorizedOptions())},r.getFocusableOptions=function(){return r.props.menuIsOpen?r.buildFocusableOptions():[]},r.ariaOnChange=function(e,t){r.setState({ariaSelection:(0,a.A)({value:e},t)})},r.onMenuMouseDown=function(e){0===e.button&&(e.stopPropagation(),e.preventDefault(),r.focusInput())},r.onMenuMouseMove=function(e){r.blockOptionHover=!1},r.onControlMouseDown=function(e){if(!e.defaultPrevented){var t=r.props.openMenuOnClick;r.state.isFocused?r.props.menuIsOpen?"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&r.onMenuClose():t&&r.openMenu("first"):(t&&(r.openAfterFocus=!0),r.focusInput()),"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&e.preventDefault()}},r.onDropdownIndicatorMouseDown=function(e){if(!(e&&"mousedown"===e.type&&0!==e.button||r.props.isDisabled)){var t=r.props,n=t.isMulti,a=t.menuIsOpen;r.focusInput(),a?(r.setState({inputIsHiddenAfterUpdate:!n}),r.onMenuClose()):r.openMenu("first"),e.preventDefault()}},r.onClearIndicatorMouseDown=function(e){e&&"mousedown"===e.type&&0!==e.button||(r.clearValue(),e.preventDefault(),r.openAfterFocus=!1,"touchend"===e.type?r.focusInput():setTimeout(function(){return r.focusInput()}))},r.onScroll=function(e){"boolean"==typeof r.props.closeMenuOnScroll?e.target instanceof HTMLElement&&(0,f.G)(e.target)&&r.props.onMenuClose():"function"==typeof r.props.closeMenuOnScroll&&r.props.closeMenuOnScroll(e)&&r.props.onMenuClose()},r.onCompositionStart=function(){r.isComposing=!0},r.onCompositionEnd=function(){r.isComposing=!1},r.onTouchStart=function(e){var t=e.touches,n=t&&t.item(0);n&&(r.initialTouchX=n.clientX,r.initialTouchY=n.clientY,r.userIsDragging=!1)},r.onTouchMove=function(e){var t=e.touches,n=t&&t.item(0);if(n){var a=Math.abs(n.clientX-r.initialTouchX),i=Math.abs(n.clientY-r.initialTouchY);r.userIsDragging=a>5||i>5}},r.onTouchEnd=function(e){r.userIsDragging||(r.controlRef&&!r.controlRef.contains(e.target)&&r.menuListRef&&!r.menuListRef.contains(e.target)&&r.blurInput(),r.initialTouchX=0,r.initialTouchY=0)},r.onControlTouchEnd=function(e){r.userIsDragging||r.onControlMouseDown(e)},r.onClearIndicatorTouchEnd=function(e){r.userIsDragging||r.onClearIndicatorMouseDown(e)},r.onDropdownIndicatorTouchEnd=function(e){r.userIsDragging||r.onDropdownIndicatorMouseDown(e)},r.handleInputChange=function(e){var t=r.props.inputValue,n=e.currentTarget.value;r.setState({inputIsHiddenAfterUpdate:!1}),r.onInputChange(n,{action:"input-change",prevInputValue:t}),r.props.menuIsOpen||r.onMenuOpen()},r.onInputFocus=function(e){r.props.onFocus&&r.props.onFocus(e),r.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(r.openAfterFocus||r.props.openMenuOnFocus)&&r.openMenu("first"),r.openAfterFocus=!1},r.onInputBlur=function(e){var t=r.props.inputValue;r.menuListRef&&r.menuListRef.contains(document.activeElement)?r.inputRef.focus():(r.props.onBlur&&r.props.onBlur(e),r.onInputChange("",{action:"input-blur",prevInputValue:t}),r.onMenuClose(),r.setState({focusedValue:null,isFocused:!1}))},r.onOptionHover=function(e){if(!r.blockOptionHover&&r.state.focusedOption!==e){var t=r.getFocusableOptions().indexOf(e);r.setState({focusedOption:e,focusedOptionId:t>-1?r.getFocusedOptionId(e):null})}},r.shouldHideSelectedOptions=function(){return ce(r.props)},r.onValueInputFocus=function(e){e.preventDefault(),e.stopPropagation(),r.focus()},r.onKeyDown=function(e){var t=r.props,n=t.isMulti,a=t.backspaceRemovesValue,i=t.escapeClearsValue,o=t.inputValue,s=t.isClearable,l=t.isDisabled,c=t.menuIsOpen,u=t.onKeyDown,f=t.tabSelectsValue,h=t.openMenuOnFocus,p=r.state,d=p.focusedOption,m=p.focusedValue,g=p.selectValue;if(!(l||"function"==typeof u&&(u(e),e.defaultPrevented))){switch(r.blockOptionHover=!0,e.key){case"ArrowLeft":if(!n||o)return;r.focusValue("previous");break;case"ArrowRight":if(!n||o)return;r.focusValue("next");break;case"Delete":case"Backspace":if(o)return;if(m)r.removeValue(m);else{if(!a)return;n?r.popValue():s&&r.clearValue()}break;case"Tab":if(r.isComposing)return;if(e.shiftKey||!c||!f||!d||h&&r.isOptionSelected(d,g))return;r.selectOption(d);break;case"Enter":if(229===e.keyCode)break;if(c){if(!d)return;if(r.isComposing)return;r.selectOption(d);break}return;case"Escape":c?(r.setState({inputIsHiddenAfterUpdate:!1}),r.onInputChange("",{action:"menu-close",prevInputValue:o}),r.onMenuClose()):s&&i&&r.clearValue();break;case" ":if(o)return;if(!c){r.openMenu("first");break}if(!d)return;r.selectOption(d);break;case"ArrowUp":c?r.focusOption("up"):r.openMenu("last");break;case"ArrowDown":c?r.focusOption("down"):r.openMenu("first");break;case"PageUp":if(!c)return;r.focusOption("pageup");break;case"PageDown":if(!c)return;r.focusOption("pagedown");break;case"Home":if(!c)return;r.focusOption("first");break;case"End":if(!c)return;r.focusOption("last");break;default:return}e.preventDefault()}},r.state.instancePrefix="react-select-"+(r.props.instanceId||++ue),r.state.selectValue=(0,f.H)(e.value),e.menuIsOpen&&r.state.selectValue.length){var o=r.getFocusableOptionsWithIds(),s=r.buildFocusableOptions(),l=s.indexOf(r.state.selectValue[0]);r.state.focusableOptionsWithIds=o,r.state.focusedOption=s[l],r.state.focusedOptionId=re(o,s[l])}return r}return(0,o.A)(n,[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput(),this.props.menuIsOpen&&this.state.focusedOption&&this.menuListRef&&this.focusedOptionRef&&(0,f.I)(this.menuListRef,this.focusedOptionRef),(Y()||q(/^iPhone/i)||q(/^iPad/i)||Y()&&navigator.maxTouchPoints>1)&&this.setState({isAppleDevice:!0})}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.isDisabled,r=t.menuIsOpen,a=this.state.isFocused;(a&&!n&&e.isDisabled||a&&r&&!e.menuIsOpen)&&this.focusInput(),a&&n&&!e.isDisabled?this.setState({isFocused:!1},this.onMenuClose):a||n||!e.isDisabled||this.inputRef!==document.activeElement||this.setState({isFocused:!0}),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&((0,f.I)(this.menuListRef,this.focusedOptionRef),this.scrollToFocusedOptionOnUpdate=!1)}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function(){this.onInputChange("",{action:"menu-close",prevInputValue:this.props.inputValue}),this.props.onMenuClose()}},{key:"onInputChange",value:function(e,t){this.props.onInputChange(e,t)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(e){var t=this,n=this.state,r=n.selectValue,a=n.isFocused,i=this.buildFocusableOptions(),o="first"===e?0:i.length-1;if(!this.props.isMulti){var s=i.indexOf(r[0]);s>-1&&(o=s)}this.scrollToFocusedOptionOnUpdate=!(a&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:i[o],focusedOptionId:this.getFocusedOptionId(i[o])},function(){return t.onMenuOpen()})}},{key:"focusValue",value:function(e){var t=this.state,n=t.selectValue,r=t.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var a=n.indexOf(r);r||(a=-1);var i=n.length-1,o=-1;if(n.length){switch(e){case"previous":o=0===a?0:-1===a?i:a-1;break;case"next":a>-1&&a<i&&(o=a+1)}this.setState({inputIsHidden:-1!==o,focusedValue:n[o]})}}}},{key:"focusOption",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"first",t=this.props.pageSize,n=this.state.focusedOption,r=this.getFocusableOptions();if(r.length){var a=0,i=r.indexOf(n);n||(i=-1),"up"===e?a=i>0?i-1:r.length-1:"down"===e?a=(i+1)%r.length:"pageup"===e?(a=i-t)<0&&(a=0):"pagedown"===e?(a=i+t)>r.length-1&&(a=r.length-1):"last"===e&&(a=r.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:r[a],focusedValue:null,focusedOptionId:this.getFocusedOptionId(r[a])})}}},{key:"getTheme",value:function(){return this.props.theme?"function"==typeof this.props.theme?this.props.theme(X):(0,a.A)((0,a.A)({},X),this.props.theme):X}},{key:"getCommonProps",value:function(){var e=this.clearValue,t=this.cx,n=this.getStyles,r=this.getClassNames,a=this.getValue,i=this.selectOption,o=this.setValue,s=this.props,l=s.isMulti,c=s.isRtl,u=s.options;return{clearValue:e,cx:t,getStyles:n,getClassNames:r,getValue:a,hasValue:this.hasValue(),isMulti:l,isRtl:c,options:u,selectOption:i,selectProps:s,setValue:o,theme:this.getTheme()}}},{key:"hasValue",value:function(){return this.state.selectValue.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var e=this.props,t=e.isClearable,n=e.isMulti;return void 0===t?n:t}},{key:"isOptionDisabled",value:function(e,t){return oe(this.props,e,t)}},{key:"isOptionSelected",value:function(e,t){return se(this.props,e,t)}},{key:"filterOption",value:function(e,t){return le(this.props,e,t)}},{key:"formatOptionLabel",value:function(e,t){if("function"==typeof this.props.formatOptionLabel){var n=this.props.inputValue,r=this.state.selectValue;return this.props.formatOptionLabel(e,{context:t,inputValue:n,selectValue:r})}return this.getOptionLabel(e)}},{key:"formatGroupLabel",value:function(e){return this.props.formatGroupLabel(e)}},{key:"startListeningComposition",value:function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))}},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))}},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"renderInput",value:function(){var e=this.props,t=e.isDisabled,n=e.isSearchable,i=e.inputId,o=e.inputValue,s=e.tabIndex,l=e.form,c=e.menuIsOpen,h=e.required,p=this.getComponents().Input,d=this.state,m=d.inputIsHidden,g=d.ariaSelection,y=this.commonProps,v=i||this.getElementId("input"),b=(0,a.A)((0,a.A)((0,a.A)({"aria-autocomplete":"list","aria-expanded":c,"aria-haspopup":!0,"aria-errormessage":this.props["aria-errormessage"],"aria-invalid":this.props["aria-invalid"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-required":h,role:"combobox","aria-activedescendant":this.state.isAppleDevice?void 0:this.state.focusedOptionId||""},c&&{"aria-controls":this.getElementId("listbox")}),!n&&{"aria-readonly":!0}),this.hasValue()?"initial-input-focus"===(null==g?void 0:g.action)&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return n?u.createElement(p,(0,r.A)({},y,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:v,innerRef:this.getInputRef,isDisabled:t,isHidden:m,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:s,form:l,type:"text",value:o},b)):u.createElement(I,(0,r.A)({id:v,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:f.J,onFocus:this.onInputFocus,disabled:t,tabIndex:s,inputMode:"none",form:l,value:""},b))}},{key:"renderPlaceholderOrValue",value:function(){var e=this,t=this.getComponents(),n=t.MultiValue,a=t.MultiValueContainer,i=t.MultiValueLabel,o=t.MultiValueRemove,s=t.SingleValue,l=t.Placeholder,c=this.commonProps,f=this.props,h=f.controlShouldRenderValue,p=f.isDisabled,d=f.isMulti,m=f.inputValue,g=f.placeholder,y=this.state,v=y.selectValue,b=y.focusedValue,_=y.isFocused;if(!this.hasValue()||!h)return m?null:u.createElement(l,(0,r.A)({},c,{key:"placeholder",isDisabled:p,isFocused:_,innerProps:{id:this.getElementId("placeholder")}}),g);if(d)return v.map(function(t,s){var l=t===b,f="".concat(e.getOptionLabel(t),"-").concat(e.getOptionValue(t));return u.createElement(n,(0,r.A)({},c,{components:{Container:a,Label:i,Remove:o},isFocused:l,isDisabled:p,key:f,index:s,removeProps:{onClick:function(){return e.removeValue(t)},onTouchEnd:function(){return e.removeValue(t)},onMouseDown:function(e){e.preventDefault()}},data:t}),e.formatOptionLabel(t,"value"))});if(m)return null;var w=v[0];return u.createElement(s,(0,r.A)({},c,{data:w,isDisabled:p}),this.formatOptionLabel(w,"value"))}},{key:"renderClearIndicator",value:function(){var e=this.getComponents().ClearIndicator,t=this.commonProps,n=this.props,a=n.isDisabled,i=n.isLoading,o=this.state.isFocused;if(!this.isClearable()||!e||a||!this.hasValue()||i)return null;var s={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return u.createElement(e,(0,r.A)({},t,{innerProps:s,isFocused:o}))}},{key:"renderLoadingIndicator",value:function(){var e=this.getComponents().LoadingIndicator,t=this.commonProps,n=this.props,a=n.isDisabled,i=n.isLoading,o=this.state.isFocused;return e&&i?u.createElement(e,(0,r.A)({},t,{innerProps:{"aria-hidden":"true"},isDisabled:a,isFocused:o})):null}},{key:"renderIndicatorSeparator",value:function(){var e=this.getComponents(),t=e.DropdownIndicator,n=e.IndicatorSeparator;if(!t||!n)return null;var a=this.commonProps,i=this.props.isDisabled,o=this.state.isFocused;return u.createElement(n,(0,r.A)({},a,{isDisabled:i,isFocused:o}))}},{key:"renderDropdownIndicator",value:function(){var e=this.getComponents().DropdownIndicator;if(!e)return null;var t=this.commonProps,n=this.props.isDisabled,a=this.state.isFocused,i={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return u.createElement(e,(0,r.A)({},t,{innerProps:i,isDisabled:n,isFocused:a}))}},{key:"renderMenu",value:function(){var e=this,t=this.getComponents(),n=t.Group,a=t.GroupHeading,i=t.Menu,o=t.MenuList,s=t.MenuPortal,l=t.LoadingMessage,c=t.NoOptionsMessage,h=t.Option,p=this.commonProps,d=this.state.focusedOption,m=this.props,g=m.captureMenuScroll,y=m.inputValue,v=m.isLoading,b=m.loadingMessage,_=m.minMenuHeight,w=m.maxMenuHeight,S=m.menuIsOpen,x=m.menuPlacement,k=m.menuPosition,C=m.menuPortalTarget,E=m.menuShouldBlockScroll,P=m.menuShouldScrollIntoView,A=m.noOptionsMessage,O=m.onMenuScrollToTop,M=m.onMenuScrollToBottom;if(!S)return null;var T,I=function(t,n){var a=t.type,i=t.data,o=t.isDisabled,s=t.isSelected,l=t.label,c=t.value,f=d===i,m=o?void 0:function(){return e.onOptionHover(i)},g=o?void 0:function(){return e.selectOption(i)},y="".concat(e.getElementId("option"),"-").concat(n),v={id:y,onClick:g,onMouseMove:m,onMouseOver:m,tabIndex:-1,role:"option","aria-selected":e.state.isAppleDevice?void 0:s};return u.createElement(h,(0,r.A)({},p,{innerProps:v,data:i,isDisabled:o,isSelected:s,key:y,label:l,type:a,value:c,isFocused:f,innerRef:f?e.getFocusedOptionRef:void 0}),e.formatOptionLabel(t.data,"menu"))};if(this.hasOptions())T=this.getCategorizedOptions().map(function(t){if("group"===t.type){var i=t.data,o=t.options,s=t.index,l="".concat(e.getElementId("group"),"-").concat(s),c="".concat(l,"-heading");return u.createElement(n,(0,r.A)({},p,{key:l,data:i,options:o,Heading:a,headingProps:{id:c,data:t.data},label:e.formatGroupLabel(t.data)}),t.options.map(function(e){return I(e,"".concat(s,"-").concat(e.index))}))}if("option"===t.type)return I(t,"".concat(t.index))});else if(v){var D=b({inputValue:y});if(null===D)return null;T=u.createElement(l,p,D)}else{var L=A({inputValue:y});if(null===L)return null;T=u.createElement(c,p,L)}var R={minMenuHeight:_,maxMenuHeight:w,menuPlacement:x,menuPosition:k,menuShouldScrollIntoView:P},j=u.createElement(f.M,(0,r.A)({},p,R),function(t){var n=t.ref,a=t.placerProps,s=a.placement,l=a.maxHeight;return u.createElement(i,(0,r.A)({},p,R,{innerRef:n,innerProps:{onMouseDown:e.onMenuMouseDown,onMouseMove:e.onMenuMouseMove},isLoading:v,placement:s}),u.createElement(W,{captureEnabled:g,onTopArrive:O,onBottomArrive:M,lockEnabled:E},function(t){return u.createElement(o,(0,r.A)({},p,{innerRef:function(n){e.getMenuListRef(n),t(n)},innerProps:{role:"listbox","aria-multiselectable":p.isMulti,id:e.getElementId("listbox")},isLoading:v,maxHeight:l,focusedOption:d}),T)}))});return C||"fixed"===k?u.createElement(s,(0,r.A)({},p,{appendTo:C,controlElement:this.controlRef,menuPlacement:x,menuPosition:k}),j):j}},{key:"renderFormField",value:function(){var e=this,t=this.props,n=t.delimiter,r=t.isDisabled,a=t.isMulti,i=t.name,o=t.required,s=this.state.selectValue;if(o&&!this.hasValue()&&!r)return u.createElement($,{name:i,onFocus:this.onValueInputFocus});if(i&&!r){if(a){if(n){var l=s.map(function(t){return e.getOptionValue(t)}).join(n);return u.createElement("input",{name:i,type:"hidden",value:l})}var c=s.length>0?s.map(function(t,n){return u.createElement("input",{key:"i-".concat(n),name:i,type:"hidden",value:e.getOptionValue(t)})}):u.createElement("input",{name:i,type:"hidden",value:""});return u.createElement("div",null,c)}var f=s[0]?this.getOptionValue(s[0]):"";return u.createElement("input",{name:i,type:"hidden",value:f})}}},{key:"renderLiveRegion",value:function(){var e=this.commonProps,t=this.state,n=t.ariaSelection,a=t.focusedOption,i=t.focusedValue,o=t.isFocused,s=t.selectValue,l=this.getFocusableOptions();return u.createElement(_,(0,r.A)({},e,{id:this.getElementId("live-region"),ariaSelection:n,focusedOption:a,focusedValue:i,isFocused:o,selectValue:s,focusableOptions:l,isAppleDevice:this.state.isAppleDevice}))}},{key:"render",value:function(){var e=this.getComponents(),t=e.Control,n=e.IndicatorsContainer,a=e.SelectContainer,i=e.ValueContainer,o=this.props,s=o.className,l=o.id,c=o.isDisabled,f=o.menuIsOpen,h=this.state.isFocused,p=this.commonProps=this.getCommonProps();return u.createElement(a,(0,r.A)({},p,{className:s,innerProps:{id:l,onKeyDown:this.onKeyDown},isDisabled:c,isFocused:h}),this.renderLiveRegion(),u.createElement(t,(0,r.A)({},p,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:c,isFocused:h,menuIsOpen:f}),u.createElement(i,(0,r.A)({},p,{isDisabled:c}),this.renderPlaceholderOrValue(),this.renderInput()),u.createElement(n,(0,r.A)({},p,{isDisabled:c}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=t.prevProps,r=t.clearFocusValueOnUpdate,i=t.inputIsHiddenAfterUpdate,o=t.ariaSelection,s=t.isFocused,l=t.prevWasFocused,c=t.instancePrefix,u=e.options,h=e.value,p=e.menuIsOpen,d=e.inputValue,m=e.isMulti,g=(0,f.H)(h),y={};if(n&&(h!==n.value||u!==n.options||p!==n.menuIsOpen||d!==n.inputValue)){var v=p?function(e,t){return ee(Q(e,t))}(e,g):[],b=p?te(Q(e,g),"".concat(c,"-option")):[],_=r?function(e,t){var n=e.focusedValue,r=e.selectValue.indexOf(n);if(r>-1){if(t.indexOf(n)>-1)return n;if(r<t.length)return t[r]}return null}(t,g):null,w=function(e,t){var n=e.focusedOption;return n&&t.indexOf(n)>-1?n:t[0]}(t,v);y={selectValue:g,focusedOption:w,focusedOptionId:re(b,w),focusableOptionsWithIds:b,focusedValue:_,clearFocusValueOnUpdate:!1}}var S=null!=i&&e!==n?{inputIsHidden:i,inputIsHiddenAfterUpdate:void 0}:{},x=o,k=s&&l;return s&&!k&&(x={value:(0,f.D)(m,g,g[0]||null),options:g,action:"initial-input-focus"},k=!l),"initial-input-focus"===(null==o?void 0:o.action)&&(x=null),(0,a.A)((0,a.A)((0,a.A)({},y),S),{},{prevProps:e,ariaSelection:x,prevWasFocused:k})}}]),n}(u.Component);fe.defaultProps=J},79800(e,t,n){"use strict";n.d(t,{A:()=>O,B:()=>F,C:()=>j,D:()=>R,E:()=>v,F:()=>Be,G:()=>x,H:()=>b,I:()=>P,J:()=>g,K:()=>L,L:()=>S,M:()=>U,a:()=>ce,b:()=>Z,d:()=>de,e:()=>le,f:()=>ve,g:()=>ye,h:()=>ue,i:()=>ee,j:()=>we,k:()=>X,l:()=>he,m:()=>G,n:()=>q,o:()=>J,p:()=>Ee,q:()=>Pe,r:()=>V,s:()=>D,t:()=>Ae,u:()=>K,v:()=>De,w:()=>Re,x:()=>Fe,y:()=>Q,z:()=>A});var r=n(89379);if(/^(3260|6573|7776)$/.test(n.j))var a=n(58168);var i=n(87457);if(/^(3260|6573|7776)$/.test(n.j))var o=n(3453);if(/^(3260|6573|7776)$/.test(n.j))var s=n(80045);if(/^(3260|6573|7776)$/.test(n.j))var l=n(82284);var c=n(57528);if(/^(3260|6573|7776)$/.test(n.j))var u=n(64467);var f=n(51609),h=n(75795);if(/^(3260|6573|7776)$/.test(n.j))var p=n(18491);var d=n(27003),m=/^(3260|6573|7776)$/.test(n.j)?["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"]:null,g=function(){};function y(e,t){return t?"-"===t[0]?e+t:e+"__"+t:e}function v(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),a=2;a<n;a++)r[a-2]=arguments[a];var i=[].concat(r);if(t&&e)for(var o in t)t.hasOwnProperty(o)&&t[o]&&i.push("".concat(y(e,o)));return i.filter(function(e){return e}).map(function(e){return String(e).trim()}).join(" ")}var b=function(e){return t=e,Array.isArray(t)?e.filter(Boolean):"object"===(0,l.A)(e)&&null!==e?[e]:[];var t},_=function(e){e.className,e.clearValue,e.cx,e.getStyles,e.getClassNames,e.getValue,e.hasValue,e.isMulti,e.isRtl,e.options,e.selectOption,e.selectProps,e.setValue,e.theme;var t=(0,s.A)(e,m);return(0,r.A)({},t)},w=function(e,t,n){var r=e.cx,a=e.getStyles,i=e.getClassNames,o=e.className;return{css:a(t,e),className:r(null!=n?n:{},i(t,e),o)}};function S(e,t,n){if(n){var r=n(e,t);if("string"==typeof r)return r}return e}function x(e){return[document.documentElement,document.body,window].indexOf(e)>-1}function k(e){return x(e)?window.pageYOffset:e.scrollTop}function C(e,t){x(e)?window.scrollTo(0,t):e.scrollTop=t}function E(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:200,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:g,a=k(e),i=t-a,o=0;!function t(){var s,l=i*((s=(s=o+=10)/n-1)*s*s+1)+a;C(e,l),o<n?window.requestAnimationFrame(t):r(e)}()}function P(e,t){var n=e.getBoundingClientRect(),r=t.getBoundingClientRect(),a=t.offsetHeight/3;r.bottom+a>n.bottom?C(e,Math.min(t.offsetTop+t.clientHeight-e.offsetHeight+a,e.scrollHeight)):r.top-a<n.top&&C(e,Math.max(t.offsetTop-a,0))}function A(){try{return document.createEvent("TouchEvent"),!0}catch(e){return!1}}function O(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch(e){return!1}}var M=!1,T={get passive(){return M=!0}},I="undefined"!=typeof window?window:{};I.addEventListener&&I.removeEventListener&&(I.addEventListener("p",g,T),I.removeEventListener("p",g,!1));var D=/^(3260|6573|7776)$/.test(n.j)?M:null;function L(e){return null!=e}function R(e,t,n){return e?t:n}function j(e){return e}function F(e){return e}var V=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return Object.entries(e).filter(function(e){var t=(0,o.A)(e,1)[0];return!n.includes(t)}).reduce(function(e,t){var n=(0,o.A)(t,2),r=n[0],a=n[1];return e[r]=a,e},{})},N=/^(3260|6573|7776)$/.test(n.j)?["children","innerProps"]:null,B=/^(3260|6573|7776)$/.test(n.j)?["children","innerProps"]:null;var z,H=function(e){return"auto"===e?"bottom":e},G=function(e,t){var n,a=e.placement,i=e.theme,o=i.borderRadius,s=i.spacing,l=i.colors;return(0,r.A)((n={label:"menu"},(0,u.A)(n,function(e){return e?{bottom:"top",top:"bottom"}[e]:"bottom"}(a),"100%"),(0,u.A)(n,"position","absolute"),(0,u.A)(n,"width","100%"),(0,u.A)(n,"zIndex",1),n),t?{}:{backgroundColor:l.neutral0,borderRadius:o,boxShadow:"0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",marginBottom:s.menuGutter,marginTop:s.menuGutter})},W=/^(3260|6573|7776)$/.test(n.j)?(0,f.createContext)(null):null,U=function(e){var t=e.children,n=e.minMenuHeight,a=e.maxMenuHeight,i=e.menuPlacement,s=e.menuPosition,l=e.menuShouldScrollIntoView,c=e.theme,u=((0,f.useContext)(W)||{}).setPortalPlacement,h=(0,f.useRef)(null),p=(0,f.useState)(a),m=(0,o.A)(p,2),g=m[0],y=m[1],v=(0,f.useState)(null),b=(0,o.A)(v,2),_=b[0],w=b[1],S=c.spacing.controlHeight;return(0,d.A)(function(){var e=h.current;if(e){var t="fixed"===s,r=function(e){var t=e.maxHeight,n=e.menuEl,r=e.minHeight,a=e.placement,i=e.shouldScroll,o=e.isFixedPosition,s=e.controlHeight,l=function(e){var t=getComputedStyle(e),n="absolute"===t.position,r=/(auto|scroll)/;if("fixed"===t.position)return document.documentElement;for(var a=e;a=a.parentElement;)if(t=getComputedStyle(a),(!n||"static"!==t.position)&&r.test(t.overflow+t.overflowY+t.overflowX))return a;return document.documentElement}(n),c={placement:"bottom",maxHeight:t};if(!n||!n.offsetParent)return c;var u,f=l.getBoundingClientRect().height,h=n.getBoundingClientRect(),p=h.bottom,d=h.height,m=h.top,g=n.offsetParent.getBoundingClientRect().top,y=o||x(u=l)?window.innerHeight:u.clientHeight,v=k(l),b=parseInt(getComputedStyle(n).marginBottom,10),_=parseInt(getComputedStyle(n).marginTop,10),w=g-_,S=y-m,P=w+v,A=f-v-m,O=p-y+v+b,M=v+m-_,T=160;switch(a){case"auto":case"bottom":if(S>=d)return{placement:"bottom",maxHeight:t};if(A>=d&&!o)return i&&E(l,O,T),{placement:"bottom",maxHeight:t};if(!o&&A>=r||o&&S>=r)return i&&E(l,O,T),{placement:"bottom",maxHeight:o?S-b:A-b};if("auto"===a||o){var I=t,D=o?w:P;return D>=r&&(I=Math.min(D-b-s,t)),{placement:"top",maxHeight:I}}if("bottom"===a)return i&&C(l,O),{placement:"bottom",maxHeight:t};break;case"top":if(w>=d)return{placement:"top",maxHeight:t};if(P>=d&&!o)return i&&E(l,M,T),{placement:"top",maxHeight:t};if(!o&&P>=r||o&&w>=r){var L=t;return(!o&&P>=r||o&&w>=r)&&(L=o?w-_:P-_),i&&E(l,M,T),{placement:"top",maxHeight:L}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(a,'".'))}return c}({maxHeight:a,menuEl:e,minHeight:n,placement:i,shouldScroll:l&&!t,isFixedPosition:t,controlHeight:S});y(r.maxHeight),w(r.placement),null==u||u(r.placement)}},[a,i,s,l,n,u,S]),t({ref:h,placerProps:(0,r.A)((0,r.A)({},e),{},{placement:_||H(i),maxHeight:g})})},$=/^(3260|6573|7776)$/.test(n.j)?function(e){var t=e.children,n=e.innerRef,r=e.innerProps;return(0,i.Y)("div",(0,a.A)({},w(e,"menu",{menu:!0}),{ref:n},r),t)}:null,q=function(e,t){var n=e.maxHeight,a=e.theme.spacing.baseUnit;return(0,r.A)({maxHeight:n,overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},t?{}:{paddingBottom:a,paddingTop:a})},Y=function(e,t){var n=e.theme,a=n.spacing.baseUnit,i=n.colors;return(0,r.A)({textAlign:"center"},t?{}:{color:i.neutral40,padding:"".concat(2*a,"px ").concat(3*a,"px")})},K=/^(3260|6573|7776)$/.test(n.j)?Y:null,X=/^(3260|6573|7776)$/.test(n.j)?Y:null,J=function(e){var t=e.rect,n=e.offset,r=e.position;return{left:t.left,position:r,top:n,width:t.width,zIndex:1}},Z=function(e){var t=e.isDisabled;return{label:"container",direction:e.isRtl?"rtl":void 0,pointerEvents:t?"none":void 0,position:"relative"}},Q=function(e,t){var n=e.theme.spacing,a=e.isMulti,i=e.hasValue,o=e.selectProps.controlShouldRenderValue;return(0,r.A)({alignItems:"center",display:a&&i&&o?"flex":"grid",flex:1,flexWrap:"wrap",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"},t?{}:{padding:"".concat(n.baseUnit/2,"px ").concat(2*n.baseUnit,"px")})},ee=function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},te=/^(3260|6573|7776)$/.test(n.j)?["size"]:null,ne=/^(3260|6573|7776)$/.test(n.j)?["innerProps","isRtl","size"]:null,re=/^(3260|6573|7776)$/.test(n.j)?{name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"}:null,ae=function(e){var t=e.size,n=(0,s.A)(e,te);return(0,i.Y)("svg",(0,a.A)({height:t,width:t,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:re},n))},ie=function(e){return(0,i.Y)(ae,(0,a.A)({size:20},e),(0,i.Y)("path",{d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}))},oe=function(e){return(0,i.Y)(ae,(0,a.A)({size:20},e),(0,i.Y)("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"}))},se=function(e,t){var n=e.isFocused,a=e.theme,i=a.spacing.baseUnit,o=a.colors;return(0,r.A)({label:"indicatorContainer",display:"flex",transition:"color 150ms"},t?{}:{color:n?o.neutral60:o.neutral20,padding:2*i,":hover":{color:n?o.neutral80:o.neutral40}})},le=/^(3260|6573|7776)$/.test(n.j)?se:null,ce=/^(3260|6573|7776)$/.test(n.j)?se:null,ue=function(e,t){var n=e.isDisabled,a=e.theme,i=a.spacing.baseUnit,o=a.colors;return(0,r.A)({label:"indicatorSeparator",alignSelf:"stretch",width:1},t?{}:{backgroundColor:n?o.neutral10:o.neutral20,marginBottom:2*i,marginTop:2*i})},fe=(0,i.i7)(z||(z=(0,c.A)(["\n  0%, 80%, 100% { opacity: 0; }\n  40% { opacity: 1; }\n"]))),he=function(e,t){var n=e.isFocused,a=e.size,i=e.theme,o=i.colors,s=i.spacing.baseUnit;return(0,r.A)({label:"loadingIndicator",display:"flex",transition:"color 150ms",alignSelf:"center",fontSize:a,lineHeight:1,marginRight:a,textAlign:"center",verticalAlign:"middle"},t?{}:{color:n?o.neutral60:o.neutral20,padding:2*s})},pe=function(e){var t=e.delay,n=e.offset;return(0,i.Y)("span",{css:(0,i.AH)({animation:"".concat(fe," 1s ease-in-out ").concat(t,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:n?"1em":void 0,height:"1em",verticalAlign:"top",width:"1em"},"","")})},de=function(e,t){var n=e.isDisabled,a=e.isFocused,i=e.theme,o=i.colors,s=i.borderRadius,l=i.spacing;return(0,r.A)({label:"control",alignItems:"center",cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:l.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms"},t?{}:{backgroundColor:n?o.neutral5:o.neutral0,borderColor:n?o.neutral10:a?o.primary:o.neutral20,borderRadius:s,borderStyle:"solid",borderWidth:1,boxShadow:a?"0 0 0 1px ".concat(o.primary):void 0,"&:hover":{borderColor:a?o.primary:o.neutral30}})},me=/^(3260|6573|7776)$/.test(n.j)?function(e){var t=e.children,n=e.isDisabled,r=e.isFocused,o=e.innerRef,s=e.innerProps,l=e.menuIsOpen;return(0,i.Y)("div",(0,a.A)({ref:o},w(e,"control",{control:!0,"control--is-disabled":n,"control--is-focused":r,"control--menu-is-open":l}),s,{"aria-disabled":n||void 0}),t)}:null,ge=/^(3260|6573|7776)$/.test(n.j)?["data"]:null,ye=function(e,t){var n=e.theme.spacing;return t?{}:{paddingBottom:2*n.baseUnit,paddingTop:2*n.baseUnit}},ve=function(e,t){var n=e.theme,a=n.colors,i=n.spacing;return(0,r.A)({label:"group",cursor:"default",display:"block"},t?{}:{color:a.neutral40,fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:3*i.baseUnit,paddingRight:3*i.baseUnit,textTransform:"uppercase"})},be=/^(3260|6573|7776)$/.test(n.j)?function(e){var t=e.children,n=e.cx,r=e.getStyles,o=e.getClassNames,s=e.Heading,l=e.headingProps,c=e.innerProps,u=e.label,f=e.theme,h=e.selectProps;return(0,i.Y)("div",(0,a.A)({},w(e,"group",{group:!0}),c),(0,i.Y)(s,(0,a.A)({},l,{selectProps:h,theme:f,getStyles:r,getClassNames:o,cx:n}),u),(0,i.Y)("div",null,t))}:null,_e=/^(3260|6573|7776)$/.test(n.j)?["innerRef","isDisabled","isHidden","inputClassName"]:null,we=function(e,t){var n=e.isDisabled,a=e.value,i=e.theme,o=i.spacing,s=i.colors;return(0,r.A)((0,r.A)({visibility:n?"hidden":"visible",transform:a?"translateZ(0)":""},xe),t?{}:{margin:o.baseUnit/2,paddingBottom:o.baseUnit/2,paddingTop:o.baseUnit/2,color:s.neutral80})},Se={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},xe={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":(0,r.A)({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},Se)},ke=function(e){return(0,r.A)({label:"input",color:"inherit",background:0,opacity:e?0:1,width:"100%"},Se)},Ce=/^(3260|6573|7776)$/.test(n.j)?function(e){var t=e.cx,n=e.value,r=_(e),o=r.innerRef,l=r.isDisabled,c=r.isHidden,u=r.inputClassName,f=(0,s.A)(r,_e);return(0,i.Y)("div",(0,a.A)({},w(e,"input",{"input-container":!0}),{"data-value":n||""}),(0,i.Y)("input",(0,a.A)({className:t({input:!0},u),ref:o,style:ke(c),disabled:l},f)))}:null,Ee=function(e,t){var n=e.theme,a=n.spacing,i=n.borderRadius,o=n.colors;return(0,r.A)({label:"multiValue",display:"flex",minWidth:0},t?{}:{backgroundColor:o.neutral10,borderRadius:i/2,margin:a.baseUnit/2})},Pe=function(e,t){var n=e.theme,a=n.borderRadius,i=n.colors,o=e.cropWithEllipsis;return(0,r.A)({overflow:"hidden",textOverflow:o||void 0===o?"ellipsis":void 0,whiteSpace:"nowrap"},t?{}:{borderRadius:a/2,color:i.neutral80,fontSize:"85%",padding:3,paddingLeft:6})},Ae=function(e,t){var n=e.theme,a=n.spacing,i=n.borderRadius,o=n.colors,s=e.isFocused;return(0,r.A)({alignItems:"center",display:"flex"},t?{}:{borderRadius:i/2,backgroundColor:s?o.dangerLight:void 0,paddingLeft:a.baseUnit,paddingRight:a.baseUnit,":hover":{backgroundColor:o.dangerLight,color:o.danger}})},Oe=function(e){var t=e.children,n=e.innerProps;return(0,i.Y)("div",n,t)},Me=/^(3260|6573|7776)$/.test(n.j)?Oe:null,Te=/^(3260|6573|7776)$/.test(n.j)?Oe:null,Ie=/^(3260|6573|7776)$/.test(n.j)?function(e){var t=e.children,n=e.components,a=e.data,o=e.innerProps,s=e.isDisabled,l=e.removeProps,c=e.selectProps,u=n.Container,f=n.Label,h=n.Remove;return(0,i.Y)(u,{data:a,innerProps:(0,r.A)((0,r.A)({},w(e,"multiValue",{"multi-value":!0,"multi-value--is-disabled":s})),o),selectProps:c},(0,i.Y)(f,{data:a,innerProps:(0,r.A)({},w(e,"multiValueLabel",{"multi-value__label":!0})),selectProps:c},t),(0,i.Y)(h,{data:a,innerProps:(0,r.A)((0,r.A)({},w(e,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(t||"option")},l),selectProps:c}))}:null,De=function(e,t){var n=e.isDisabled,a=e.isFocused,i=e.isSelected,o=e.theme,s=o.spacing,l=o.colors;return(0,r.A)({label:"option",cursor:"default",display:"block",fontSize:"inherit",width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)"},t?{}:{backgroundColor:i?l.primary:a?l.primary25:"transparent",color:n?l.neutral20:i?l.neutral0:"inherit",padding:"".concat(2*s.baseUnit,"px ").concat(3*s.baseUnit,"px"),":active":{backgroundColor:n?void 0:i?l.primary:l.primary50}})},Le=/^(3260|6573|7776)$/.test(n.j)?function(e){var t=e.children,n=e.isDisabled,r=e.isFocused,o=e.isSelected,s=e.innerRef,l=e.innerProps;return(0,i.Y)("div",(0,a.A)({},w(e,"option",{option:!0,"option--is-disabled":n,"option--is-focused":r,"option--is-selected":o}),{ref:s,"aria-disabled":n},l),t)}:null,Re=function(e,t){var n=e.theme,a=n.spacing,i=n.colors;return(0,r.A)({label:"placeholder",gridArea:"1 / 1 / 2 / 3"},t?{}:{color:i.neutral50,marginLeft:a.baseUnit/2,marginRight:a.baseUnit/2})},je=/^(3260|6573|7776)$/.test(n.j)?function(e){var t=e.children,n=e.innerProps;return(0,i.Y)("div",(0,a.A)({},w(e,"placeholder",{placeholder:!0}),n),t)}:null,Fe=function(e,t){var n=e.isDisabled,a=e.theme,i=a.spacing,o=a.colors;return(0,r.A)({label:"singleValue",gridArea:"1 / 1 / 2 / 3",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t?{}:{color:n?o.neutral40:o.neutral80,marginLeft:i.baseUnit/2,marginRight:i.baseUnit/2})},Ve=/^(3260|6573|7776)$/.test(n.j)?function(e){var t=e.children,n=e.isDisabled,r=e.innerProps;return(0,i.Y)("div",(0,a.A)({},w(e,"singleValue",{"single-value":!0,"single-value--is-disabled":n}),r),t)}:null,Ne=/^(3260|6573|7776)$/.test(n.j)?{ClearIndicator:function(e){var t=e.children,n=e.innerProps;return(0,i.Y)("div",(0,a.A)({},w(e,"clearIndicator",{indicator:!0,"clear-indicator":!0}),n),t||(0,i.Y)(ie,null))},Control:me,DropdownIndicator:function(e){var t=e.children,n=e.innerProps;return(0,i.Y)("div",(0,a.A)({},w(e,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),n),t||(0,i.Y)(oe,null))},DownChevron:oe,CrossIcon:ie,Group:be,GroupHeading:function(e){var t=_(e);t.data;var n=(0,s.A)(t,ge);return(0,i.Y)("div",(0,a.A)({},w(e,"groupHeading",{"group-heading":!0}),n))},IndicatorsContainer:function(e){var t=e.children,n=e.innerProps;return(0,i.Y)("div",(0,a.A)({},w(e,"indicatorsContainer",{indicators:!0}),n),t)},IndicatorSeparator:function(e){var t=e.innerProps;return(0,i.Y)("span",(0,a.A)({},t,w(e,"indicatorSeparator",{"indicator-separator":!0})))},Input:Ce,LoadingIndicator:function(e){var t=e.innerProps,n=e.isRtl,o=e.size,l=void 0===o?4:o,c=(0,s.A)(e,ne);return(0,i.Y)("div",(0,a.A)({},w((0,r.A)((0,r.A)({},c),{},{innerProps:t,isRtl:n,size:l}),"loadingIndicator",{indicator:!0,"loading-indicator":!0}),t),(0,i.Y)(pe,{delay:0,offset:n}),(0,i.Y)(pe,{delay:160,offset:!0}),(0,i.Y)(pe,{delay:320,offset:!n}))},Menu:$,MenuList:function(e){var t=e.children,n=e.innerProps,r=e.innerRef,o=e.isMulti;return(0,i.Y)("div",(0,a.A)({},w(e,"menuList",{"menu-list":!0,"menu-list--is-multi":o}),{ref:r},n),t)},MenuPortal:function(e){var t=e.appendTo,n=e.children,s=e.controlElement,l=e.innerProps,c=e.menuPlacement,u=e.menuPosition,m=(0,f.useRef)(null),g=(0,f.useRef)(null),y=(0,f.useState)(H(c)),v=(0,o.A)(y,2),b=v[0],_=v[1],S=(0,f.useMemo)(function(){return{setPortalPlacement:_}},[]),x=(0,f.useState)(null),k=(0,o.A)(x,2),C=k[0],E=k[1],P=(0,f.useCallback)(function(){if(s){var e=function(e){var t=e.getBoundingClientRect();return{bottom:t.bottom,height:t.height,left:t.left,right:t.right,top:t.top,width:t.width}}(s),t="fixed"===u?0:window.pageYOffset,n=e[b]+t;n===(null==C?void 0:C.offset)&&e.left===(null==C?void 0:C.rect.left)&&e.width===(null==C?void 0:C.rect.width)||E({offset:n,rect:e})}},[s,u,b,null==C?void 0:C.offset,null==C?void 0:C.rect.left,null==C?void 0:C.rect.width]);(0,d.A)(function(){P()},[P]);var A=(0,f.useCallback)(function(){"function"==typeof g.current&&(g.current(),g.current=null),s&&m.current&&(g.current=(0,p.ll)(s,m.current,P,{elementResize:"ResizeObserver"in window}))},[s,P]);(0,d.A)(function(){A()},[A]);var O=(0,f.useCallback)(function(e){m.current=e,A()},[A]);if(!t&&"fixed"!==u||!C)return null;var M=(0,i.Y)("div",(0,a.A)({ref:O},w((0,r.A)((0,r.A)({},e),{},{offset:C.offset,position:u,rect:C.rect}),"menuPortal",{"menu-portal":!0}),l),n);return(0,i.Y)(W.Provider,{value:S},t?(0,h.createPortal)(M,t):M)},LoadingMessage:function(e){var t=e.children,n=void 0===t?"Loading...":t,o=e.innerProps,l=(0,s.A)(e,B);return(0,i.Y)("div",(0,a.A)({},w((0,r.A)((0,r.A)({},l),{},{children:n,innerProps:o}),"loadingMessage",{"menu-notice":!0,"menu-notice--loading":!0}),o),n)},NoOptionsMessage:function(e){var t=e.children,n=void 0===t?"No options":t,o=e.innerProps,l=(0,s.A)(e,N);return(0,i.Y)("div",(0,a.A)({},w((0,r.A)((0,r.A)({},l),{},{children:n,innerProps:o}),"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),o),n)},MultiValue:Ie,MultiValueContainer:Me,MultiValueLabel:Te,MultiValueRemove:function(e){var t=e.children,n=e.innerProps;return(0,i.Y)("div",(0,a.A)({role:"button"},n),t||(0,i.Y)(ie,{size:14}))},Option:Le,Placeholder:je,SelectContainer:function(e){var t=e.children,n=e.innerProps,r=e.isDisabled,o=e.isRtl;return(0,i.Y)("div",(0,a.A)({},w(e,"container",{"--is-disabled":r,"--is-rtl":o}),n),t)},SingleValue:Ve,ValueContainer:function(e){var t=e.children,n=e.innerProps,r=e.isMulti,o=e.hasValue;return(0,i.Y)("div",(0,a.A)({},w(e,"valueContainer",{"value-container":!0,"value-container--is-multi":r,"value-container--has-value":o}),n),t)}}:null,Be=function(e){return(0,r.A)((0,r.A)({},Ne),e.components)}},46005(e,t,n){"use strict";if(n.d(t,{Ay:()=>l}),/^(3260|7776)$/.test(n.j))var r=n(52836);if(/^(3260|7776)$/.test(n.j))var a=n(58168);var i=n(51609);if(/^(3260|7776)$/.test(n.j))var o=n(34645);n(75795),n(27003);var s=/^(3260|7776)$/.test(n.j)?(0,i.forwardRef)(function(e,t){var n=(0,r.u)(e);return i.createElement(o.S,(0,a.A)({ref:t},n))}):null,l=/^(3260|7776)$/.test(n.j)?s:null},60405(e,t,n){"use strict";if(n.d(t,{u:()=>u}),/^(3260|6573)$/.test(n.j))var r=n(64467);if(/^(3260|6573)$/.test(n.j))var a=n(89379);if(/^(3260|6573)$/.test(n.j))var i=n(3453);if(/^(3260|6573)$/.test(n.j))var o=n(80045);var s=n(51609);if(/^(3260|6573)$/.test(n.j))var l=n(79800);var c=/^(3260|6573)$/.test(n.j)?["defaultOptions","cacheOptions","loadOptions","options","isLoading","onInputChange","filterOption"]:null;function u(e){var t=e.defaultOptions,n=void 0!==t&&t,u=e.cacheOptions,f=void 0!==u&&u,h=e.loadOptions;e.options;var p=e.isLoading,d=void 0!==p&&p,m=e.onInputChange,g=e.filterOption,y=void 0===g?null:g,v=(0,o.A)(e,c),b=v.inputValue,_=(0,s.useRef)(void 0),w=(0,s.useRef)(!1),S=(0,s.useState)(Array.isArray(n)?n:void 0),x=(0,i.A)(S,2),k=x[0],C=x[1],E=(0,s.useState)(void 0!==b?b:""),P=(0,i.A)(E,2),A=P[0],O=P[1],M=(0,s.useState)(!0===n),T=(0,i.A)(M,2),I=T[0],D=T[1],L=(0,s.useState)(void 0),R=(0,i.A)(L,2),j=R[0],F=R[1],V=(0,s.useState)([]),N=(0,i.A)(V,2),B=N[0],z=N[1],H=(0,s.useState)(!1),G=(0,i.A)(H,2),W=G[0],U=G[1],$=(0,s.useState)({}),q=(0,i.A)($,2),Y=q[0],K=q[1],X=(0,s.useState)(void 0),J=(0,i.A)(X,2),Z=J[0],Q=J[1],ee=(0,s.useState)(void 0),te=(0,i.A)(ee,2),ne=te[0],re=te[1];f!==ne&&(K({}),re(f)),n!==Z&&(C(Array.isArray(n)?n:void 0),Q(n)),(0,s.useEffect)(function(){return w.current=!0,function(){w.current=!1}},[]);var ae=(0,s.useCallback)(function(e,t){if(!h)return t();var n=h(e,t);n&&"function"==typeof n.then&&n.then(t,function(){return t()})},[h]);(0,s.useEffect)(function(){!0===n&&ae(A,function(e){w.current&&(C(e||[]),D(!!_.current))})},[]);var ie=(0,s.useCallback)(function(e,t){var n=(0,l.L)(e,t,m);if(!n)return _.current=void 0,O(""),F(""),z([]),D(!1),void U(!1);if(f&&Y[n])O(n),F(n),z(Y[n]),D(!1),U(!1);else{var i=_.current={};O(n),D(!0),U(!j),ae(n,function(e){w&&i===_.current&&(_.current=void 0,D(!1),F(n),z(e||[]),U(!1),K(e?(0,a.A)((0,a.A)({},Y),{},(0,r.A)({},n,e)):Y))})}},[f,ae,j,Y,m]),oe=W?[]:A&&j?B:k||[];return(0,a.A)((0,a.A)({},v),{},{options:oe,isLoading:I||d,onInputChange:ie,filterOption:y})}},52836(e,t,n){"use strict";if(n.d(t,{u:()=>l}),/^(3260|6573|7776)$/.test(n.j))var r=n(89379);if(/^(3260|6573|7776)$/.test(n.j))var a=n(3453);if(/^(3260|6573|7776)$/.test(n.j))var i=n(80045);var o=n(51609),s=/^(3260|6573|7776)$/.test(n.j)?["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"]:null;function l(e){var t=e.defaultInputValue,n=void 0===t?"":t,l=e.defaultMenuIsOpen,c=void 0!==l&&l,u=e.defaultValue,f=void 0===u?null:u,h=e.inputValue,p=e.menuIsOpen,d=e.onChange,m=e.onInputChange,g=e.onMenuClose,y=e.onMenuOpen,v=e.value,b=(0,i.A)(e,s),_=(0,o.useState)(void 0!==h?h:n),w=(0,a.A)(_,2),S=w[0],x=w[1],k=(0,o.useState)(void 0!==p?p:c),C=(0,a.A)(k,2),E=C[0],P=C[1],A=(0,o.useState)(void 0!==v?v:f),O=(0,a.A)(A,2),M=O[0],T=O[1],I=(0,o.useCallback)(function(e,t){"function"==typeof d&&d(e,t),T(e)},[d]),D=(0,o.useCallback)(function(e,t){var n;"function"==typeof m&&(n=m(e,t)),x(void 0!==n?n:e)},[m]),L=(0,o.useCallback)(function(){"function"==typeof y&&y(),P(!0)},[y]),R=(0,o.useCallback)(function(){"function"==typeof g&&g(),P(!1)},[g]),j=void 0!==h?h:S,F=void 0!==p?p:E,V=void 0!==v?v:M;return(0,r.A)((0,r.A)({},b),{},{inputValue:j,menuIsOpen:F,onChange:I,onInputChange:D,onMenuClose:R,onMenuOpen:L,value:V})}},89223(e,t,n){"use strict";function r(e){return r="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},r(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.PrevArrow=t.NextArrow=void 0;var a=s(n(51609)),i=s(n(46942)),o=n(29445);function s(e){return e&&e.__esModule?e:{default:e}}function l(){return l=Object.assign?Object.assign.bind():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},l.apply(this,arguments)}function c(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 u(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?c(Object(n),!0).forEach(function(t){f(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function f(e,t,n){return(t=m(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function h(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function p(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,m(r.key),r)}}function d(e,t,n){return t&&p(e.prototype,t),n&&p(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function m(e){var t=function(e){if("object"!=r(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=r(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==r(t)?t:String(t)}function g(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&y(e,t)}function y(e,t){return y=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},y(e,t)}function v(e){var t=b();return function(){var n,a=_(e);if(t){var i=_(this).constructor;n=Reflect.construct(a,arguments,i)}else n=a.apply(this,arguments);return function(e,t){if(t&&("object"===r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,n)}}function b(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(b=function(){return!!e})()}function _(e){return _=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},_(e)}t.PrevArrow=function(e){g(n,e);var t=v(n);function n(){return h(this,n),t.apply(this,arguments)}return d(n,[{key:"clickHandler",value:function(e,t){t&&t.preventDefault(),this.props.clickHandler(e,t)}},{key:"render",value:function(){var e={"slick-arrow":!0,"slick-prev":!0},t=this.clickHandler.bind(this,{message:"previous"});!this.props.infinite&&(0===this.props.currentSlide||this.props.slideCount<=this.props.slidesToShow)&&(e["slick-disabled"]=!0,t=null);var n={key:"0","data-role":"none",className:(0,i.default)(e),style:{display:"block"},onClick:t},r={currentSlide:this.props.currentSlide,slideCount:this.props.slideCount};return this.props.prevArrow?a.default.cloneElement(this.props.prevArrow,u(u({},n),r)):a.default.createElement("button",l({key:"0",type:"button"},n)," ","Previous")}}]),n}(a.default.PureComponent),t.NextArrow=function(e){g(n,e);var t=v(n);function n(){return h(this,n),t.apply(this,arguments)}return d(n,[{key:"clickHandler",value:function(e,t){t&&t.preventDefault(),this.props.clickHandler(e,t)}},{key:"render",value:function(){var e={"slick-arrow":!0,"slick-next":!0},t=this.clickHandler.bind(this,{message:"next"});(0,o.canGoNext)(this.props)||(e["slick-disabled"]=!0,t=null);var n={key:"1","data-role":"none",className:(0,i.default)(e),style:{display:"block"},onClick:t},r={currentSlide:this.props.currentSlide,slideCount:this.props.slideCount};return this.props.nextArrow?a.default.cloneElement(this.props.nextArrow,u(u({},n),r)):a.default.createElement("button",l({key:"1",type:"button"},n)," ","Next")}}]),n}(a.default.PureComponent)},41327(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,a=(r=n(51609))&&r.__esModule?r:{default:r},i={accessibility:!0,adaptiveHeight:!1,afterChange:null,appendDots:function(e){return a.default.createElement("ul",{style:{display:"block"}},e)},arrows:!0,autoplay:!1,autoplaySpeed:3e3,beforeChange:null,centerMode:!1,centerPadding:"50px",className:"",cssEase:"ease",customPaging:function(e){return a.default.createElement("button",null,e+1)},dots:!1,dotsClass:"slick-dots",draggable:!0,easing:"linear",edgeFriction:.35,fade:!1,focusOnSelect:!1,infinite:!0,initialSlide:0,lazyLoad:null,nextArrow:null,onEdge:null,onInit:null,onLazyLoadError:null,onReInit:null,pauseOnDotsHover:!1,pauseOnFocus:!1,pauseOnHover:!0,prevArrow:null,responsive:null,rows:1,rtl:!1,slide:"div",slidesPerRow:1,slidesToScroll:1,slidesToShow:1,speed:500,swipe:!0,swipeEvent:null,swipeToSlide:!1,touchMove:!0,touchThreshold:5,useCSS:!0,useTransform:!0,variableWidth:!1,vertical:!1,waitForAnimate:!0,asNavFor:null,unslick:!1};t.default=i},773(e,t,n){"use strict";function r(e){return r="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},r(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.Dots=void 0;var a=s(n(51609)),i=s(n(46942)),o=n(29445);function s(e){return e&&e.__esModule?e:{default:e}}function l(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 c(e,t,n){return(t=f(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function u(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,f(r.key),r)}}function f(e){var t=function(e){if("object"!=r(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=r(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==r(t)?t:String(t)}function h(e,t){return h=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},h(e,t)}function p(e){var t=d();return function(){var n,a=m(e);if(t){var i=m(this).constructor;n=Reflect.construct(a,arguments,i)}else n=a.apply(this,arguments);return function(e,t){if(t&&("object"===r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,n)}}function d(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(d=function(){return!!e})()}function m(e){return m=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},m(e)}t.Dots=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&h(e,t)}(s,e);var t,n,r=p(s);function s(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),r.apply(this,arguments)}return t=s,n=[{key:"clickHandler",value:function(e,t){t.preventDefault(),this.props.clickHandler(e)}},{key:"render",value:function(){for(var e,t=this.props,n=t.onMouseEnter,r=t.onMouseOver,s=t.onMouseLeave,u=t.infinite,f=t.slidesToScroll,h=t.slidesToShow,p=t.slideCount,d=t.currentSlide,m=(e={slideCount:p,slidesToScroll:f,slidesToShow:h,infinite:u}).infinite?Math.ceil(e.slideCount/e.slidesToScroll):Math.ceil((e.slideCount-e.slidesToShow)/e.slidesToScroll)+1,g={onMouseEnter:n,onMouseOver:r,onMouseLeave:s},y=[],v=0;v<m;v++){var b=(v+1)*f-1,_=u?b:(0,o.clamp)(b,0,p-1),w=_-(f-1),S=u?w:(0,o.clamp)(w,0,p-1),x=(0,i.default)({"slick-active":u?d>=S&&d<=_:d===S}),k={message:"dots",index:v,slidesToScroll:f,currentSlide:d},C=this.clickHandler.bind(this,k);y=y.concat(a.default.createElement("li",{key:v,className:x},a.default.cloneElement(this.props.customPaging(v),{onClick:C})))}return a.default.cloneElement(this.props.appendDots(y),function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?l(Object(n),!0).forEach(function(t){c(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({className:this.props.dotsClass},g))}}],n&&u(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),s}(a.default.PureComponent)},4589(e,t,n){"use strict";t.A=void 0;var r,a=(r=n(38120))&&r.__esModule?r:{default:r};t.A=a.default},68841(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={animating:!1,autoplaying:null,currentDirection:0,currentLeft:null,currentSlide:0,direction:1,dragging:!1,edgeDragged:!1,initialized:!1,lazyLoadedList:[],listHeight:null,listWidth:null,scrolling:!1,slideCount:null,slideHeight:null,slideWidth:null,swipeLeft:null,swiped:!1,swiping:!1,touchObject:{startX:0,startY:0,curX:0,curY:0},trackStyle:{},trackWidth:0,targetSlide:0}},34999(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.InnerSlider=void 0;var r=h(n(51609)),a=h(n(68841)),i=h(n(20181)),o=h(n(46942)),s=n(29445),l=n(25942),c=n(773),u=n(89223),f=h(n(43591));function h(e){return e&&e.__esModule?e:{default:e}}function p(e){return p="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},p(e)}function d(){return d=Object.assign?Object.assign.bind():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},d.apply(this,arguments)}function m(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 g(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?m(Object(n),!0).forEach(function(t){x(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):m(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function y(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,k(r.key),r)}}function v(e,t){return v=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},v(e,t)}function b(e){var t=w();return function(){var n,r=S(e);if(t){var a=S(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===p(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return _(e)}(this,n)}}function _(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function w(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(w=function(){return!!e})()}function S(e){return S=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},S(e)}function x(e,t,n){return(t=k(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function k(e){var t=function(e){if("object"!=p(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=p(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==p(t)?t:String(t)}t.InnerSlider=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&v(e,t)}(m,e);var t,n,h=b(m);function m(e){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,m),x(_(t=h.call(this,e)),"listRefHandler",function(e){return t.list=e}),x(_(t),"trackRefHandler",function(e){return t.track=e}),x(_(t),"adaptHeight",function(){if(t.props.adaptiveHeight&&t.list){var e=t.list.querySelector('[data-index="'.concat(t.state.currentSlide,'"]'));t.list.style.height=(0,s.getHeight)(e)+"px"}}),x(_(t),"componentDidMount",function(){if(t.props.onInit&&t.props.onInit(),t.props.lazyLoad){var e=(0,s.getOnDemandLazySlides)(g(g({},t.props),t.state));e.length>0&&(t.setState(function(t){return{lazyLoadedList:t.lazyLoadedList.concat(e)}}),t.props.onLazyLoad&&t.props.onLazyLoad(e))}var n=g({listRef:t.list,trackRef:t.track},t.props);t.updateState(n,!0,function(){t.adaptHeight(),t.props.autoplay&&t.autoPlay("update")}),"progressive"===t.props.lazyLoad&&(t.lazyLoadTimer=setInterval(t.progressiveLazyLoad,1e3)),t.ro=new f.default(function(){t.state.animating?(t.onWindowResized(!1),t.callbackTimers.push(setTimeout(function(){return t.onWindowResized()},t.props.speed))):t.onWindowResized()}),t.ro.observe(t.list),document.querySelectorAll&&Array.prototype.forEach.call(document.querySelectorAll(".slick-slide"),function(e){e.onfocus=t.props.pauseOnFocus?t.onSlideFocus:null,e.onblur=t.props.pauseOnFocus?t.onSlideBlur:null}),window.addEventListener?window.addEventListener("resize",t.onWindowResized):window.attachEvent("onresize",t.onWindowResized)}),x(_(t),"componentWillUnmount",function(){t.animationEndCallback&&clearTimeout(t.animationEndCallback),t.lazyLoadTimer&&clearInterval(t.lazyLoadTimer),t.callbackTimers.length&&(t.callbackTimers.forEach(function(e){return clearTimeout(e)}),t.callbackTimers=[]),window.addEventListener?window.removeEventListener("resize",t.onWindowResized):window.detachEvent("onresize",t.onWindowResized),t.autoplayTimer&&clearInterval(t.autoplayTimer),t.ro.disconnect()}),x(_(t),"componentDidUpdate",function(e){if(t.checkImagesLoad(),t.props.onReInit&&t.props.onReInit(),t.props.lazyLoad){var n=(0,s.getOnDemandLazySlides)(g(g({},t.props),t.state));n.length>0&&(t.setState(function(e){return{lazyLoadedList:e.lazyLoadedList.concat(n)}}),t.props.onLazyLoad&&t.props.onLazyLoad(n))}t.adaptHeight();var a=g(g({listRef:t.list,trackRef:t.track},t.props),t.state),i=t.didPropsChange(e);i&&t.updateState(a,i,function(){t.state.currentSlide>=r.default.Children.count(t.props.children)&&t.changeSlide({message:"index",index:r.default.Children.count(t.props.children)-t.props.slidesToShow,currentSlide:t.state.currentSlide}),t.props.autoplay?t.autoPlay("update"):t.pause("paused")})}),x(_(t),"onWindowResized",function(e){t.debouncedResize&&t.debouncedResize.cancel(),t.debouncedResize=(0,i.default)(function(){return t.resizeWindow(e)},50),t.debouncedResize()}),x(_(t),"resizeWindow",function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];if(Boolean(t.track&&t.track.node)){var n=g(g({listRef:t.list,trackRef:t.track},t.props),t.state);t.updateState(n,e,function(){t.props.autoplay?t.autoPlay("update"):t.pause("paused")}),t.setState({animating:!1}),clearTimeout(t.animationEndCallback),delete t.animationEndCallback}}),x(_(t),"updateState",function(e,n,a){var i=(0,s.initializedState)(e);e=g(g(g({},e),i),{},{slideIndex:i.currentSlide});var o=(0,s.getTrackLeft)(e);e=g(g({},e),{},{left:o});var l=(0,s.getTrackCSS)(e);(n||r.default.Children.count(t.props.children)!==r.default.Children.count(e.children))&&(i.trackStyle=l),t.setState(i,a)}),x(_(t),"ssrInit",function(){if(t.props.variableWidth){var e=0,n=0,a=[],i=(0,s.getPreClones)(g(g(g({},t.props),t.state),{},{slideCount:t.props.children.length})),o=(0,s.getPostClones)(g(g(g({},t.props),t.state),{},{slideCount:t.props.children.length}));t.props.children.forEach(function(t){a.push(t.props.style.width),e+=t.props.style.width});for(var l=0;l<i;l++)n+=a[a.length-1-l],e+=a[a.length-1-l];for(var c=0;c<o;c++)e+=a[c];for(var u=0;u<t.state.currentSlide;u++)n+=a[u];var f={width:e+"px",left:-n+"px"};if(t.props.centerMode){var h="".concat(a[t.state.currentSlide],"px");f.left="calc(".concat(f.left," + (100% - ").concat(h,") / 2) ")}return{trackStyle:f}}var p=r.default.Children.count(t.props.children),d=g(g(g({},t.props),t.state),{},{slideCount:p}),m=(0,s.getPreClones)(d)+(0,s.getPostClones)(d)+p,y=100/t.props.slidesToShow*m,v=100/m,b=-v*((0,s.getPreClones)(d)+t.state.currentSlide)*y/100;return t.props.centerMode&&(b+=(100-v*y/100)/2),{slideWidth:v+"%",trackStyle:{width:y+"%",left:b+"%"}}}),x(_(t),"checkImagesLoad",function(){var e=t.list&&t.list.querySelectorAll&&t.list.querySelectorAll(".slick-slide img")||[],n=e.length,r=0;Array.prototype.forEach.call(e,function(e){var a=function(){return++r&&r>=n&&t.onWindowResized()};if(e.onclick){var i=e.onclick;e.onclick=function(t){i(t),e.parentNode.focus()}}else e.onclick=function(){return e.parentNode.focus()};e.onload||(t.props.lazyLoad?e.onload=function(){t.adaptHeight(),t.callbackTimers.push(setTimeout(t.onWindowResized,t.props.speed))}:(e.onload=a,e.onerror=function(){a(),t.props.onLazyLoadError&&t.props.onLazyLoadError()}))})}),x(_(t),"progressiveLazyLoad",function(){for(var e=[],n=g(g({},t.props),t.state),r=t.state.currentSlide;r<t.state.slideCount+(0,s.getPostClones)(n);r++)if(t.state.lazyLoadedList.indexOf(r)<0){e.push(r);break}for(var a=t.state.currentSlide-1;a>=-(0,s.getPreClones)(n);a--)if(t.state.lazyLoadedList.indexOf(a)<0){e.push(a);break}e.length>0?(t.setState(function(t){return{lazyLoadedList:t.lazyLoadedList.concat(e)}}),t.props.onLazyLoad&&t.props.onLazyLoad(e)):t.lazyLoadTimer&&(clearInterval(t.lazyLoadTimer),delete t.lazyLoadTimer)}),x(_(t),"slideHandler",function(e){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=t.props,a=r.asNavFor,i=r.beforeChange,o=r.onLazyLoad,l=r.speed,c=r.afterChange,u=t.state.currentSlide,f=(0,s.slideHandler)(g(g(g({index:e},t.props),t.state),{},{trackRef:t.track,useCSS:t.props.useCSS&&!n})),h=f.state,p=f.nextState;if(h){i&&i(u,h.currentSlide);var d=h.lazyLoadedList.filter(function(e){return t.state.lazyLoadedList.indexOf(e)<0});o&&d.length>0&&o(d),!t.props.waitForAnimate&&t.animationEndCallback&&(clearTimeout(t.animationEndCallback),c&&c(u),delete t.animationEndCallback),t.setState(h,function(){a&&t.asNavForIndex!==e&&(t.asNavForIndex=e,a.innerSlider.slideHandler(e)),p&&(t.animationEndCallback=setTimeout(function(){var e=p.animating,n=function(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}(p,["animating"]);t.setState(n,function(){t.callbackTimers.push(setTimeout(function(){return t.setState({animating:e})},10)),c&&c(h.currentSlide),delete t.animationEndCallback})},l))})}}),x(_(t),"changeSlide",function(e){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=g(g({},t.props),t.state),a=(0,s.changeSlide)(r,e);if((0===a||a)&&(!0===n?t.slideHandler(a,n):t.slideHandler(a),t.props.autoplay&&t.autoPlay("update"),t.props.focusOnSelect)){var i=t.list.querySelectorAll(".slick-current");i[0]&&i[0].focus()}}),x(_(t),"clickHandler",function(e){!1===t.clickable&&(e.stopPropagation(),e.preventDefault()),t.clickable=!0}),x(_(t),"keyHandler",function(e){var n=(0,s.keyHandler)(e,t.props.accessibility,t.props.rtl);""!==n&&t.changeSlide({message:n})}),x(_(t),"selectHandler",function(e){t.changeSlide(e)}),x(_(t),"disableBodyScroll",function(){window.ontouchmove=function(e){(e=e||window.event).preventDefault&&e.preventDefault(),e.returnValue=!1}}),x(_(t),"enableBodyScroll",function(){window.ontouchmove=null}),x(_(t),"swipeStart",function(e){t.props.verticalSwiping&&t.disableBodyScroll();var n=(0,s.swipeStart)(e,t.props.swipe,t.props.draggable);""!==n&&t.setState(n)}),x(_(t),"swipeMove",function(e){var n=(0,s.swipeMove)(e,g(g(g({},t.props),t.state),{},{trackRef:t.track,listRef:t.list,slideIndex:t.state.currentSlide}));n&&(n.swiping&&(t.clickable=!1),t.setState(n))}),x(_(t),"swipeEnd",function(e){var n=(0,s.swipeEnd)(e,g(g(g({},t.props),t.state),{},{trackRef:t.track,listRef:t.list,slideIndex:t.state.currentSlide}));if(n){var r=n.triggerSlideHandler;delete n.triggerSlideHandler,t.setState(n),void 0!==r&&(t.slideHandler(r),t.props.verticalSwiping&&t.enableBodyScroll())}}),x(_(t),"touchEnd",function(e){t.swipeEnd(e),t.clickable=!0}),x(_(t),"slickPrev",function(){t.callbackTimers.push(setTimeout(function(){return t.changeSlide({message:"previous"})},0))}),x(_(t),"slickNext",function(){t.callbackTimers.push(setTimeout(function(){return t.changeSlide({message:"next"})},0))}),x(_(t),"slickGoTo",function(e){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(e=Number(e),isNaN(e))return"";t.callbackTimers.push(setTimeout(function(){return t.changeSlide({message:"index",index:e,currentSlide:t.state.currentSlide},n)},0))}),x(_(t),"play",function(){var e;if(t.props.rtl)e=t.state.currentSlide-t.props.slidesToScroll;else{if(!(0,s.canGoNext)(g(g({},t.props),t.state)))return!1;e=t.state.currentSlide+t.props.slidesToScroll}t.slideHandler(e)}),x(_(t),"autoPlay",function(e){t.autoplayTimer&&clearInterval(t.autoplayTimer);var n=t.state.autoplaying;if("update"===e){if("hovered"===n||"focused"===n||"paused"===n)return}else if("leave"===e){if("paused"===n||"focused"===n)return}else if("blur"===e&&("paused"===n||"hovered"===n))return;t.autoplayTimer=setInterval(t.play,t.props.autoplaySpeed+50),t.setState({autoplaying:"playing"})}),x(_(t),"pause",function(e){t.autoplayTimer&&(clearInterval(t.autoplayTimer),t.autoplayTimer=null);var n=t.state.autoplaying;"paused"===e?t.setState({autoplaying:"paused"}):"focused"===e?"hovered"!==n&&"playing"!==n||t.setState({autoplaying:"focused"}):"playing"===n&&t.setState({autoplaying:"hovered"})}),x(_(t),"onDotsOver",function(){return t.props.autoplay&&t.pause("hovered")}),x(_(t),"onDotsLeave",function(){return t.props.autoplay&&"hovered"===t.state.autoplaying&&t.autoPlay("leave")}),x(_(t),"onTrackOver",function(){return t.props.autoplay&&t.pause("hovered")}),x(_(t),"onTrackLeave",function(){return t.props.autoplay&&"hovered"===t.state.autoplaying&&t.autoPlay("leave")}),x(_(t),"onSlideFocus",function(){return t.props.autoplay&&t.pause("focused")}),x(_(t),"onSlideBlur",function(){return t.props.autoplay&&"focused"===t.state.autoplaying&&t.autoPlay("blur")}),x(_(t),"render",function(){var e,n,a,i=(0,o.default)("slick-slider",t.props.className,{"slick-vertical":t.props.vertical,"slick-initialized":!0}),f=g(g({},t.props),t.state),h=(0,s.extractObject)(f,["fade","cssEase","speed","infinite","centerMode","focusOnSelect","currentSlide","lazyLoad","lazyLoadedList","rtl","slideWidth","slideHeight","listHeight","vertical","slidesToShow","slidesToScroll","slideCount","trackStyle","variableWidth","unslick","centerPadding","targetSlide","useCSS"]),p=t.props.pauseOnHover;if(h=g(g({},h),{},{onMouseEnter:p?t.onTrackOver:null,onMouseLeave:p?t.onTrackLeave:null,onMouseOver:p?t.onTrackOver:null,focusOnSelect:t.props.focusOnSelect&&t.clickable?t.selectHandler:null}),!0===t.props.dots&&t.state.slideCount>=t.props.slidesToShow){var m=(0,s.extractObject)(f,["dotsClass","slideCount","slidesToShow","currentSlide","slidesToScroll","clickHandler","children","customPaging","infinite","appendDots"]),y=t.props.pauseOnDotsHover;m=g(g({},m),{},{clickHandler:t.changeSlide,onMouseEnter:y?t.onDotsLeave:null,onMouseOver:y?t.onDotsOver:null,onMouseLeave:y?t.onDotsLeave:null}),e=r.default.createElement(c.Dots,m)}var v=(0,s.extractObject)(f,["infinite","centerMode","currentSlide","slideCount","slidesToShow","prevArrow","nextArrow"]);v.clickHandler=t.changeSlide,t.props.arrows&&(n=r.default.createElement(u.PrevArrow,v),a=r.default.createElement(u.NextArrow,v));var b=null;t.props.vertical&&(b={height:t.state.listHeight});var _=null;!1===t.props.vertical?!0===t.props.centerMode&&(_={padding:"0px "+t.props.centerPadding}):!0===t.props.centerMode&&(_={padding:t.props.centerPadding+" 0px"});var w=g(g({},b),_),S=t.props.touchMove,x={className:"slick-list",style:w,onClick:t.clickHandler,onMouseDown:S?t.swipeStart:null,onMouseMove:t.state.dragging&&S?t.swipeMove:null,onMouseUp:S?t.swipeEnd:null,onMouseLeave:t.state.dragging&&S?t.swipeEnd:null,onTouchStart:S?t.swipeStart:null,onTouchMove:t.state.dragging&&S?t.swipeMove:null,onTouchEnd:S?t.touchEnd:null,onTouchCancel:t.state.dragging&&S?t.swipeEnd:null,onKeyDown:t.props.accessibility?t.keyHandler:null},k={className:i,dir:"ltr",style:t.props.style};return t.props.unslick&&(x={className:"slick-list"},k={className:i}),r.default.createElement("div",k,t.props.unslick?"":n,r.default.createElement("div",d({ref:t.listRefHandler},x),r.default.createElement(l.Track,d({ref:t.trackRefHandler},h),t.props.children)),t.props.unslick?"":a,t.props.unslick?"":e)}),t.list=null,t.track=null,t.state=g(g({},a.default),{},{currentSlide:t.props.initialSlide,targetSlide:t.props.initialSlide?t.props.initialSlide:0,slideCount:r.default.Children.count(t.props.children)}),t.callbackTimers=[],t.clickable=!0,t.debouncedResize=null;var n=t.ssrInit();return t.state=g(g({},t.state),n),t}return t=m,(n=[{key:"didPropsChange",value:function(e){for(var t=!1,n=0,a=Object.keys(this.props);n<a.length;n++){var i=a[n];if(!e.hasOwnProperty(i)){t=!0;break}if("object"!==p(e[i])&&"function"!=typeof e[i]&&!isNaN(e[i])&&e[i]!==this.props[i]){t=!0;break}}return t||r.default.Children.count(this.props.children)!==r.default.Children.count(e.children)}}])&&y(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),m}(r.default.Component)},38120(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=l(n(51609)),a=n(34999),i=l(n(11441)),o=l(n(41327)),s=n(29445);function l(e){return e&&e.__esModule?e:{default:e}}function c(e){return c="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},c(e)}function u(){return u=Object.assign?Object.assign.bind():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},u.apply(this,arguments)}function f(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 h(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?f(Object(n),!0).forEach(function(t){b(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function p(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 d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},d(e,t)}function m(e){var t=y();return function(){var n,r=v(e);if(t){var a=v(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===c(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return g(e)}(this,n)}}function g(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function y(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(y=function(){return!!e})()}function v(e){return v=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},v(e)}function b(e,t,n){return(t=_(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _(e){var t=function(e){if("object"!=c(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=c(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==c(t)?t:String(t)}var w=(0,s.canUseDOM)()&&n(22386);t.default=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&d(e,t)}(c,e);var t,n,l=m(c);function c(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c),b(g(t=l.call(this,e)),"innerSliderRefHandler",function(e){return t.innerSlider=e}),b(g(t),"slickPrev",function(){return t.innerSlider.slickPrev()}),b(g(t),"slickNext",function(){return t.innerSlider.slickNext()}),b(g(t),"slickGoTo",function(e){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return t.innerSlider.slickGoTo(e,n)}),b(g(t),"slickPause",function(){return t.innerSlider.pause("paused")}),b(g(t),"slickPlay",function(){return t.innerSlider.autoPlay("play")}),t.state={breakpoint:null},t._responsiveMediaHandlers=[],t}return t=c,(n=[{key:"media",value:function(e,t){w.register(e,t),this._responsiveMediaHandlers.push({query:e,handler:t})}},{key:"componentDidMount",value:function(){var e=this;if(this.props.responsive){var t=this.props.responsive.map(function(e){return e.breakpoint});t.sort(function(e,t){return e-t}),t.forEach(function(n,r){var a;a=0===r?(0,i.default)({minWidth:0,maxWidth:n}):(0,i.default)({minWidth:t[r-1]+1,maxWidth:n}),(0,s.canUseDOM)()&&e.media(a,function(){e.setState({breakpoint:n})})});var n=(0,i.default)({minWidth:t.slice(-1)[0]});(0,s.canUseDOM)()&&this.media(n,function(){e.setState({breakpoint:null})})}}},{key:"componentWillUnmount",value:function(){this._responsiveMediaHandlers.forEach(function(e){w.unregister(e.query,e.handler)})}},{key:"render",value:function(){var e,t,n=this;(e=this.state.breakpoint?"unslick"===(t=this.props.responsive.filter(function(e){return e.breakpoint===n.state.breakpoint}))[0].settings?"unslick":h(h(h({},o.default),this.props),t[0].settings):h(h({},o.default),this.props)).centerMode&&(e.slidesToScroll,e.slidesToScroll=1),e.fade&&(e.slidesToShow,e.slidesToScroll,e.slidesToShow=1,e.slidesToScroll=1);var i=r.default.Children.toArray(this.props.children);i=i.filter(function(e){return"string"==typeof e?!!e.trim():!!e}),e.variableWidth&&(e.rows>1||e.slidesPerRow>1)&&(console.warn("variableWidth is not supported in case of rows > 1 or slidesPerRow > 1"),e.variableWidth=!1);for(var l=[],c=null,f=0;f<i.length;f+=e.rows*e.slidesPerRow){for(var p=[],d=f;d<f+e.rows*e.slidesPerRow;d+=e.slidesPerRow){for(var m=[],g=d;g<d+e.slidesPerRow&&(e.variableWidth&&i[g].props.style&&(c=i[g].props.style.width),!(g>=i.length));g+=1)m.push(r.default.cloneElement(i[g],{key:100*f+10*d+g,tabIndex:-1,style:{width:"".concat(100/e.slidesPerRow,"%"),display:"inline-block"}}));p.push(r.default.createElement("div",{key:10*f+d},m))}e.variableWidth?l.push(r.default.createElement("div",{key:f,style:{width:c}},p)):l.push(r.default.createElement("div",{key:f},p))}if("unslick"===e){var y="regular slider "+(this.props.className||"");return r.default.createElement("div",{className:y},i)}return l.length<=e.slidesToShow&&!e.infinite&&(e.unslick=!0),r.default.createElement(a.InnerSlider,u({style:this.props.style,ref:this.innerSliderRefHandler},(0,s.filterSettings)(e)),l)}}])&&p(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),c}(r.default.Component)},25942(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Track=void 0;var r=o(n(51609)),a=o(n(46942)),i=n(29445);function o(e){return e&&e.__esModule?e:{default:e}}function s(e){return s="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},s(e)}function l(){return l=Object.assign?Object.assign.bind():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},l.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,v(r.key),r)}}function u(e,t){return u=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},u(e,t)}function f(e){var t=p();return function(){var n,r=d(e);if(t){var a=d(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===s(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return h(e)}(this,n)}}function h(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function p(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(p=function(){return!!e})()}function d(e){return d=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},d(e)}function m(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 g(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?m(Object(n),!0).forEach(function(t){y(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):m(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function y(e,t,n){return(t=v(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function v(e){var t=function(e){if("object"!=s(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=s(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==s(t)?t:String(t)}var b=function(e){var t,n,r,a,i;return r=(i=e.rtl?e.slideCount-1-e.index:e.index)<0||i>=e.slideCount,e.centerMode?(a=Math.floor(e.slidesToShow/2),n=(i-e.currentSlide)%e.slideCount===0,i>e.currentSlide-a-1&&i<=e.currentSlide+a&&(t=!0)):t=e.currentSlide<=i&&i<e.currentSlide+e.slidesToShow,{"slick-slide":!0,"slick-active":t,"slick-center":n,"slick-cloned":r,"slick-current":i===(e.targetSlide<0?e.targetSlide+e.slideCount:e.targetSlide>=e.slideCount?e.targetSlide-e.slideCount:e.targetSlide)}},_=function(e,t){return e.key||t};t.Track=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&u(e,t)}(s,e);var t,n,o=f(s);function s(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return y(h(e=o.call.apply(o,[this].concat(n))),"node",null),y(h(e),"handleRef",function(t){e.node=t}),e}return t=s,(n=[{key:"render",value:function(){var e=function(e){var t,n=[],o=[],s=[],l=r.default.Children.count(e.children),c=(0,i.lazyStartIndex)(e),u=(0,i.lazyEndIndex)(e);return r.default.Children.forEach(e.children,function(f,h){var p,d={message:"children",index:h,slidesToScroll:e.slidesToScroll,currentSlide:e.currentSlide};p=!e.lazyLoad||e.lazyLoad&&e.lazyLoadedList.indexOf(h)>=0?f:r.default.createElement("div",null);var m=function(e){var t={};return void 0!==e.variableWidth&&!1!==e.variableWidth||(t.width=e.slideWidth),e.fade&&(t.position="relative",e.vertical?t.top=-e.index*parseInt(e.slideHeight):t.left=-e.index*parseInt(e.slideWidth),t.opacity=e.currentSlide===e.index?1:0,t.zIndex=e.currentSlide===e.index?999:998,e.useCSS&&(t.transition="opacity "+e.speed+"ms "+e.cssEase+", visibility "+e.speed+"ms "+e.cssEase)),t}(g(g({},e),{},{index:h})),y=p.props.className||"",v=b(g(g({},e),{},{index:h}));if(n.push(r.default.cloneElement(p,{key:"original"+_(p,h),"data-index":h,className:(0,a.default)(v,y),tabIndex:"-1","aria-hidden":!v["slick-active"],style:g(g({outline:"none"},p.props.style||{}),m),onClick:function(t){p.props&&p.props.onClick&&p.props.onClick(t),e.focusOnSelect&&e.focusOnSelect(d)}})),e.infinite&&!1===e.fade){var w=l-h;w<=(0,i.getPreClones)(e)&&((t=-w)>=c&&(p=f),v=b(g(g({},e),{},{index:t})),o.push(r.default.cloneElement(p,{key:"precloned"+_(p,t),"data-index":t,tabIndex:"-1",className:(0,a.default)(v,y),"aria-hidden":!v["slick-active"],style:g(g({},p.props.style||{}),m),onClick:function(t){p.props&&p.props.onClick&&p.props.onClick(t),e.focusOnSelect&&e.focusOnSelect(d)}}))),(t=l+h)<u&&(p=f),v=b(g(g({},e),{},{index:t})),s.push(r.default.cloneElement(p,{key:"postcloned"+_(p,t),"data-index":t,tabIndex:"-1",className:(0,a.default)(v,y),"aria-hidden":!v["slick-active"],style:g(g({},p.props.style||{}),m),onClick:function(t){p.props&&p.props.onClick&&p.props.onClick(t),e.focusOnSelect&&e.focusOnSelect(d)}}))}}),e.rtl?o.concat(n,s).reverse():o.concat(n,s)}(this.props),t=this.props,n={onMouseEnter:t.onMouseEnter,onMouseOver:t.onMouseOver,onMouseLeave:t.onMouseLeave};return r.default.createElement("div",l({ref:this.handleRef,className:"slick-track",style:this.props.trackStyle},n),e)}}])&&c(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),s}(r.default.PureComponent)},29445(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.checkSpecKeys=t.checkNavigable=t.changeSlide=t.canUseDOM=t.canGoNext=void 0,t.clamp=u,t.extractObject=void 0,t.filterSettings=function(e){return L.reduce(function(t,n){return e.hasOwnProperty(n)&&(t[n]=e[n]),t},{})},t.validSettings=t.swipeStart=t.swipeMove=t.swipeEnd=t.slidesOnRight=t.slidesOnLeft=t.slideHandler=t.siblingDirection=t.safePreventDefault=t.lazyStartIndex=t.lazySlidesOnRight=t.lazySlidesOnLeft=t.lazyEndIndex=t.keyHandler=t.initializedState=t.getWidth=t.getTrackLeft=t.getTrackCSS=t.getTrackAnimateCSS=t.getTotalSlides=t.getSwipeDirection=t.getSlideCount=t.getRequiredLazySlides=t.getPreClones=t.getPostClones=t.getOnDemandLazySlides=t.getNavigableIndexes=t.getHeight=void 0;var r=i(n(51609)),a=i(n(41327));function i(e){return e&&e.__esModule?e:{default:e}}function o(e){return o="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},o(e)}function s(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 l(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach(function(t){c(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function c(e,t,n){var r;return r=function(e){if("object"!=o(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=o(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(t),(t="symbol"==o(r)?r:String(r))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function u(e,t,n){return Math.max(t,Math.min(e,n))}var f=t.safePreventDefault=function(e){["onTouchStart","onTouchMove","onWheel"].includes(e._reactName)||e.preventDefault()},h=t.getOnDemandLazySlides=function(e){for(var t=[],n=p(e),r=d(e),a=n;a<r;a++)e.lazyLoadedList.indexOf(a)<0&&t.push(a);return t},p=(t.getRequiredLazySlides=function(e){for(var t=[],n=p(e),r=d(e),a=n;a<r;a++)t.push(a);return t},t.lazyStartIndex=function(e){return e.currentSlide-m(e)}),d=t.lazyEndIndex=function(e){return e.currentSlide+g(e)},m=t.lazySlidesOnLeft=function(e){return e.centerMode?Math.floor(e.slidesToShow/2)+(parseInt(e.centerPadding)>0?1:0):0},g=t.lazySlidesOnRight=function(e){return e.centerMode?Math.floor((e.slidesToShow-1)/2)+1+(parseInt(e.centerPadding)>0?1:0):e.slidesToShow},y=t.getWidth=function(e){return e&&e.offsetWidth||0},v=t.getHeight=function(e){return e&&e.offsetHeight||0},b=t.getSwipeDirection=function(e){var t,n,r,a,i=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return t=e.startX-e.curX,n=e.startY-e.curY,r=Math.atan2(n,t),(a=Math.round(180*r/Math.PI))<0&&(a=360-Math.abs(a)),a<=45&&a>=0||a<=360&&a>=315?"left":a>=135&&a<=225?"right":!0===i?a>=35&&a<=135?"up":"down":"vertical"},_=t.canGoNext=function(e){var t=!0;return e.infinite||(e.centerMode&&e.currentSlide>=e.slideCount-1||e.slideCount<=e.slidesToShow||e.currentSlide>=e.slideCount-e.slidesToShow)&&(t=!1),t},w=(t.extractObject=function(e,t){var n={};return t.forEach(function(t){return n[t]=e[t]}),n},t.initializedState=function(e){var t,n=r.default.Children.count(e.children),a=e.listRef,i=Math.ceil(y(a)),o=e.trackRef&&e.trackRef.node,s=Math.ceil(y(o));if(e.vertical)t=i;else{var c=e.centerMode&&2*parseInt(e.centerPadding);"string"==typeof e.centerPadding&&"%"===e.centerPadding.slice(-1)&&(c*=i/100),t=Math.ceil((i-c)/e.slidesToShow)}var u=a&&v(a.querySelector('[data-index="0"]')),f=u*e.slidesToShow,p=void 0===e.currentSlide?e.initialSlide:e.currentSlide;e.rtl&&void 0===e.currentSlide&&(p=n-1-e.initialSlide);var d=e.lazyLoadedList||[],m=h(l(l({},e),{},{currentSlide:p,lazyLoadedList:d})),g={slideCount:n,slideWidth:t,listWidth:i,trackWidth:s,currentSlide:p,slideHeight:u,listHeight:f,lazyLoadedList:d=d.concat(m)};return null===e.autoplaying&&e.autoplay&&(g.autoplaying="playing"),g},t.slideHandler=function(e){var t=e.waitForAnimate,n=e.animating,r=e.fade,a=e.infinite,i=e.index,o=e.slideCount,s=e.lazyLoad,c=e.currentSlide,f=e.centerMode,p=e.slidesToScroll,d=e.slidesToShow,m=e.useCSS,g=e.lazyLoadedList;if(t&&n)return{};var y,v,b,w=i,S={},x={},k=a?i:u(i,0,o-1);if(r){if(!a&&(i<0||i>=o))return{};i<0?w=i+o:i>=o&&(w=i-o),s&&g.indexOf(w)<0&&(g=g.concat(w)),S={animating:!0,currentSlide:w,lazyLoadedList:g,targetSlide:w},x={animating:!1,targetSlide:w}}else y=w,w<0?(y=w+o,a?o%p!==0&&(y=o-o%p):y=0):!_(e)&&w>c?w=y=c:f&&w>=o?(w=a?o:o-1,y=a?0:o-1):w>=o&&(y=w-o,a?o%p!==0&&(y=0):y=o-d),!a&&w+d>=o&&(y=o-d),v=P(l(l({},e),{},{slideIndex:w})),b=P(l(l({},e),{},{slideIndex:y})),a||(v===b&&(w=y),v=b),s&&(g=g.concat(h(l(l({},e),{},{currentSlide:w})))),m?(S={animating:!0,currentSlide:y,trackStyle:E(l(l({},e),{},{left:v})),lazyLoadedList:g,targetSlide:k},x={animating:!1,currentSlide:y,trackStyle:C(l(l({},e),{},{left:b})),swipeLeft:null,targetSlide:k}):S={currentSlide:y,trackStyle:C(l(l({},e),{},{left:b})),lazyLoadedList:g,targetSlide:k};return{state:S,nextState:x}},t.changeSlide=function(e,t){var n,r,a,i,o=e.slidesToScroll,s=e.slidesToShow,c=e.slideCount,u=e.currentSlide,f=e.targetSlide,h=e.lazyLoad,p=e.infinite;if(n=c%o!==0?0:(c-u)%o,"previous"===t.message)i=u-(a=0===n?o:s-n),h&&!p&&(i=-1===(r=u-a)?c-1:r),p||(i=f-o);else if("next"===t.message)i=u+(a=0===n?o:n),h&&!p&&(i=(u+o)%c+n),p||(i=f+o);else if("dots"===t.message)i=t.index*t.slidesToScroll;else if("children"===t.message){if(i=t.index,p){var d=T(l(l({},e),{},{targetSlide:i}));i>t.currentSlide&&"left"===d?i-=c:i<t.currentSlide&&"right"===d&&(i+=c)}}else"index"===t.message&&(i=Number(t.index));return i},t.keyHandler=function(e,t,n){return e.target.tagName.match("TEXTAREA|INPUT|SELECT")||!t?"":37===e.keyCode?n?"next":"previous":39===e.keyCode?n?"previous":"next":""},t.swipeStart=function(e,t,n){return"IMG"===e.target.tagName&&f(e),!t||!n&&-1!==e.type.indexOf("mouse")?"":{dragging:!0,touchObject:{startX:e.touches?e.touches[0].pageX:e.clientX,startY:e.touches?e.touches[0].pageY:e.clientY,curX:e.touches?e.touches[0].pageX:e.clientX,curY:e.touches?e.touches[0].pageY:e.clientY}}},t.swipeMove=function(e,t){var n=t.scrolling,r=t.animating,a=t.vertical,i=t.swipeToSlide,o=t.verticalSwiping,s=t.rtl,c=t.currentSlide,u=t.edgeFriction,h=t.edgeDragged,p=t.onEdge,d=t.swiped,m=t.swiping,g=t.slideCount,y=t.slidesToScroll,v=t.infinite,w=t.touchObject,S=t.swipeEvent,x=t.listHeight,k=t.listWidth;if(!n){if(r)return f(e);a&&i&&o&&f(e);var E,A={},O=P(t);w.curX=e.touches?e.touches[0].pageX:e.clientX,w.curY=e.touches?e.touches[0].pageY:e.clientY,w.swipeLength=Math.round(Math.sqrt(Math.pow(w.curX-w.startX,2)));var M=Math.round(Math.sqrt(Math.pow(w.curY-w.startY,2)));if(!o&&!m&&M>10)return{scrolling:!0};o&&(w.swipeLength=M);var T=(s?-1:1)*(w.curX>w.startX?1:-1);o&&(T=w.curY>w.startY?1:-1);var I=Math.ceil(g/y),D=b(t.touchObject,o),L=w.swipeLength;return v||(0===c&&("right"===D||"down"===D)||c+1>=I&&("left"===D||"up"===D)||!_(t)&&("left"===D||"up"===D))&&(L=w.swipeLength*u,!1===h&&p&&(p(D),A.edgeDragged=!0)),!d&&S&&(S(D),A.swiped=!0),E=a?O+L*(x/k)*T:s?O-L*T:O+L*T,o&&(E=O+L*T),A=l(l({},A),{},{touchObject:w,swipeLeft:E,trackStyle:C(l(l({},t),{},{left:E}))}),Math.abs(w.curX-w.startX)<.8*Math.abs(w.curY-w.startY)||w.swipeLength>10&&(A.swiping=!0,f(e)),A}},t.swipeEnd=function(e,t){var n=t.dragging,r=t.swipe,a=t.touchObject,i=t.listWidth,o=t.touchThreshold,s=t.verticalSwiping,c=t.listHeight,u=t.swipeToSlide,h=t.scrolling,p=t.onSwipe,d=t.targetSlide,m=t.currentSlide,g=t.infinite;if(!n)return r&&f(e),{};var y=s?c/o:i/o,v=b(a,s),_={dragging:!1,edgeDragged:!1,scrolling:!1,swiping:!1,swiped:!1,swipeLeft:null,touchObject:{}};if(h)return _;if(!a.swipeLength)return _;if(a.swipeLength>y){var w,k;f(e),p&&p(v);var C=g?m:d;switch(v){case"left":case"up":k=C+x(t),w=u?S(t,k):k,_.currentDirection=0;break;case"right":case"down":k=C-x(t),w=u?S(t,k):k,_.currentDirection=1;break;default:w=C}_.triggerSlideHandler=w}else{var A=P(t);_.trackStyle=E(l(l({},t),{},{left:A}))}return _},t.getNavigableIndexes=function(e){for(var t=e.infinite?2*e.slideCount:e.slideCount,n=e.infinite?-1*e.slidesToShow:0,r=e.infinite?-1*e.slidesToShow:0,a=[];n<t;)a.push(n),n=r+e.slidesToScroll,r+=Math.min(e.slidesToScroll,e.slidesToShow);return a}),S=t.checkNavigable=function(e,t){var n=w(e),r=0;if(t>n[n.length-1])t=n[n.length-1];else for(var a in n){if(t<n[a]){t=r;break}r=n[a]}return t},x=t.getSlideCount=function(e){var t=e.centerMode?e.slideWidth*Math.floor(e.slidesToShow/2):0;if(e.swipeToSlide){var n,r=e.listRef,a=r.querySelectorAll&&r.querySelectorAll(".slick-slide")||[];if(Array.from(a).every(function(r){if(e.vertical){if(r.offsetTop+v(r)/2>-1*e.swipeLeft)return n=r,!1}else if(r.offsetLeft-t+y(r)/2>-1*e.swipeLeft)return n=r,!1;return!0}),!n)return 0;var i=!0===e.rtl?e.slideCount-e.currentSlide:e.currentSlide;return Math.abs(n.dataset.index-i)||1}return e.slidesToScroll},k=t.checkSpecKeys=function(e,t){return t.reduce(function(t,n){return t&&e.hasOwnProperty(n)},!0)?null:console.error("Keys Missing:",e)},C=t.getTrackCSS=function(e){var t,n;k(e,["left","variableWidth","slideCount","slidesToShow","slideWidth"]);var r=e.slideCount+2*e.slidesToShow;e.vertical?n=r*e.slideHeight:t=M(e)*e.slideWidth;var a={opacity:1,transition:"",WebkitTransition:""};if(e.useTransform){var i=e.vertical?"translate3d(0px, "+e.left+"px, 0px)":"translate3d("+e.left+"px, 0px, 0px)",o=e.vertical?"translate3d(0px, "+e.left+"px, 0px)":"translate3d("+e.left+"px, 0px, 0px)",s=e.vertical?"translateY("+e.left+"px)":"translateX("+e.left+"px)";a=l(l({},a),{},{WebkitTransform:i,transform:o,msTransform:s})}else e.vertical?a.top=e.left:a.left=e.left;return e.fade&&(a={opacity:1}),t&&(a.width=t),n&&(a.height=n),window&&!window.addEventListener&&window.attachEvent&&(e.vertical?a.marginTop=e.left+"px":a.marginLeft=e.left+"px"),a},E=t.getTrackAnimateCSS=function(e){k(e,["left","variableWidth","slideCount","slidesToShow","slideWidth","speed","cssEase"]);var t=C(e);return e.useTransform?(t.WebkitTransition="-webkit-transform "+e.speed+"ms "+e.cssEase,t.transition="transform "+e.speed+"ms "+e.cssEase):e.vertical?t.transition="top "+e.speed+"ms "+e.cssEase:t.transition="left "+e.speed+"ms "+e.cssEase,t},P=t.getTrackLeft=function(e){if(e.unslick)return 0;k(e,["slideIndex","trackRef","infinite","centerMode","slideCount","slidesToShow","slidesToScroll","slideWidth","listWidth","variableWidth","slideHeight"]);var t,n,r=e.slideIndex,a=e.trackRef,i=e.infinite,o=e.centerMode,s=e.slideCount,l=e.slidesToShow,c=e.slidesToScroll,u=e.slideWidth,f=e.listWidth,h=e.variableWidth,p=e.slideHeight,d=e.fade,m=e.vertical;if(d||1===e.slideCount)return 0;var g=0;if(i?(g=-A(e),s%c!==0&&r+c>s&&(g=-(r>s?l-(r-s):s%c)),o&&(g+=parseInt(l/2))):(s%c!==0&&r+c>s&&(g=l-s%c),o&&(g=parseInt(l/2))),t=m?r*p*-1+g*p:r*u*-1+g*u,!0===h){var y,v=a&&a.node;if(y=r+A(e),t=(n=v&&v.childNodes[y])?-1*n.offsetLeft:0,!0===o){y=i?r+A(e):r,n=v&&v.children[y],t=0;for(var b=0;b<y;b++)t-=v&&v.children[b]&&v.children[b].offsetWidth;t-=parseInt(e.centerPadding),t+=n&&(f-n.offsetWidth)/2}}return t},A=t.getPreClones=function(e){return e.unslick||!e.infinite?0:e.variableWidth?e.slideCount:e.slidesToShow+(e.centerMode?1:0)},O=t.getPostClones=function(e){return e.unslick||!e.infinite?0:e.slideCount},M=t.getTotalSlides=function(e){return 1===e.slideCount?1:A(e)+e.slideCount+O(e)},T=t.siblingDirection=function(e){return e.targetSlide>e.currentSlide?e.targetSlide>e.currentSlide+I(e)?"left":"right":e.targetSlide<e.currentSlide-D(e)?"right":"left"},I=t.slidesOnRight=function(e){var t=e.slidesToShow,n=e.centerMode,r=e.rtl,a=e.centerPadding;if(n){var i=(t-1)/2+1;return parseInt(a)>0&&(i+=1),r&&t%2==0&&(i+=1),i}return r?0:t-1},D=t.slidesOnLeft=function(e){var t=e.slidesToShow,n=e.centerMode,r=e.rtl,a=e.centerPadding;if(n){var i=(t-1)/2+1;return parseInt(a)>0&&(i+=1),r||t%2!=0||(i+=1),i}return r?t-1:0},L=(t.canUseDOM=function(){return!("undefined"==typeof window||!window.document||!window.document.createElement)},t.validSettings=Object.keys(a.default))},61021(e,t,n){"use strict";if(n.d(t,{D:()=>V,Zj:()=>K,q6:()=>$}),3260==n.j)var r=n(58168);if(3260==n.j)var a=n(3453);if(3260==n.j)var i=n(30201);var o=n(23029),s=n(92901);if(3260==n.j)var l=n(56822);if(3260==n.j)var c=n(53954);if(3260==n.j)var u=n(85501);if(3260==n.j)var f=n(9417);var h=n(64467),p=n(51609),d=n(75795),m=n(20311),g=n.n(m);if(3260==n.j)var y=n(89394);var v=n(5556),b=n.n(v),_=function(){function e(){(0,o.A)(this,e),(0,h.A)(this,"refs",{})}return(0,s.A)(e,[{key:"add",value:function(e,t){this.refs[e]||(this.refs[e]=[]),this.refs[e].push(t)}},{key:"remove",value:function(e,t){var n=this.getIndex(e,t);-1!==n&&this.refs[e].splice(n,1)}},{key:"isActive",value:function(){return this.active}},{key:"getActive",value:function(){var e=this;return this.refs[this.active.collection].find(function(t){return t.node.sortableInfo.index==e.active.index})}},{key:"getIndex",value:function(e,t){return this.refs[e].indexOf(t)}},{key:"getOrderedRefs",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.active.collection;return this.refs[e].sort(w)}}]),e}();function w(e,t){return e.node.sortableInfo.index-t.node.sortableInfo.index}function S(e,t){return Object.keys(e).reduce(function(n,r){return-1===t.indexOf(r)&&(n[r]=e[r]),n},{})}var x=3260==n.j?{end:["touchend","touchcancel","mouseup"],move:["touchmove","mousemove"],start:["touchstart","mousedown"]}:null,k=function(){if("undefined"==typeof window||"undefined"==typeof document)return"";var e=window.getComputedStyle(document.documentElement,"")||["-moz-hidden-iframe"],t=(Array.prototype.slice.call(e).join("").match(/-(moz|webkit|ms)-/)||""===e.OLink&&["","o"])[1];return"ms"===t?"ms":t&&t.length?t[0].toUpperCase()+t.substr(1):""}();function C(e,t){Object.keys(t).forEach(function(n){e.style[n]=t[n]})}function E(e,t){e.style["".concat(k,"Transform")]=null==t?"":"translate3d(".concat(t.x,"px,").concat(t.y,"px,0)")}function P(e,t){e.style["".concat(k,"TransitionDuration")]=null==t?"":"".concat(t,"ms")}function A(e,t){for(;e;){if(t(e))return e;e=e.parentNode}return null}function O(e,t,n){return Math.max(e,Math.min(n,t))}function M(e){return"px"===e.substr(-2)?parseFloat(e):0}function T(e,t){var n=t.displayName||t.name;return n?"".concat(e,"(").concat(n,")"):e}function I(e,t){var n=e.getBoundingClientRect();return{top:n.top+t.top,left:n.left+t.left}}function D(e){return e.touches&&e.touches.length?{x:e.touches[0].pageX,y:e.touches[0].pageY}:e.changedTouches&&e.changedTouches.length?{x:e.changedTouches[0].pageX,y:e.changedTouches[0].pageY}:{x:e.pageX,y:e.pageY}}function L(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{left:0,top:0};if(e){var r={left:n.left+e.offsetLeft,top:n.top+e.offsetTop};return e.parentNode===t?r:L(e.parentNode,t,r)}}function R(e){var t=e.lockOffset,n=e.width,r=e.height,a=t,i=t,o="px";if("string"==typeof t){var s=/^[+-]?\d*(?:\.\d*)?(px|%)$/.exec(t);g()(null!==s,'lockOffset value should be a number or a string of a number followed by "px" or "%". Given %s',t),a=parseFloat(t),i=parseFloat(t),o=s[1]}return g()(isFinite(a)&&isFinite(i),"lockOffset value should be a finite. Given %s",t),"%"===o&&(a=a*n/100,i=i*r/100),{x:a,y:i}}function j(e){return e instanceof HTMLElement?function(e){var t=window.getComputedStyle(e),n=/(auto|scroll)/;return["overflow","overflowX","overflowY"].find(function(e){return n.test(t[e])})}(e)?e:j(e.parentNode):null}var F=3260==n.j?{Anchor:"A",Button:"BUTTON",Canvas:"CANVAS",Input:"INPUT",Option:"OPTION",Textarea:"TEXTAREA",Select:"SELECT"}:null;function V(e){var t,n,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{withRef:!1};return n=t=function(t){function n(){var e,t;(0,o.A)(this,n);for(var r=arguments.length,a=new Array(r),i=0;i<r;i++)a[i]=arguments[i];return t=(0,l.A)(this,(e=(0,c.A)(n)).call.apply(e,[this].concat(a))),(0,h.A)((0,f.A)((0,f.A)(t)),"wrappedInstance",(0,p.createRef)()),t}return(0,u.A)(n,t),(0,s.A)(n,[{key:"componentDidMount",value:function(){(0,d.findDOMNode)(this).sortableHandle=!0}},{key:"getWrappedInstance",value:function(){return g()(a.withRef,"To access the wrapped instance, you need to pass in {withRef: true} as the second argument of the SortableHandle() call"),this.wrappedInstance.current}},{key:"render",value:function(){var t=a.withRef?this.wrappedInstance:null;return(0,p.createElement)(e,(0,r.A)({ref:t},this.props))}}]),n}(p.Component),(0,h.A)(t,"displayName",T("sortableHandle",e)),n}function N(e){return null!=e.sortableHandle}var B=function(){function e(t,n){(0,o.A)(this,e),this.container=t,this.onScrollCallback=n}return(0,s.A)(e,[{key:"clear",value:function(){null!=this.interval&&(clearInterval(this.interval),this.interval=null)}},{key:"update",value:function(e){var t=this,n=e.translate,r=e.minTranslate,a=e.maxTranslate,i=e.width,o=e.height,s={x:0,y:0},l={x:1,y:1},c=this.container,u=c.scrollTop,f=c.scrollLeft,h=c.scrollHeight,p=c.scrollWidth,d=0===u,m=h-u-c.clientHeight===0,g=0===f,y=p-f-c.clientWidth===0;n.y>=a.y-o/2&&!m?(s.y=1,l.y=10*Math.abs((a.y-o/2-n.y)/o)):n.x>=a.x-i/2&&!y?(s.x=1,l.x=10*Math.abs((a.x-i/2-n.x)/i)):n.y<=r.y+o/2&&!d?(s.y=-1,l.y=10*Math.abs((n.y-o/2-r.y)/o)):n.x<=r.x+i/2&&!g&&(s.x=-1,l.x=10*Math.abs((n.x-i/2-r.x)/i)),this.interval&&(this.clear(),this.isAutoScrolling=!1),0===s.x&&0===s.y||(this.interval=setInterval(function(){t.isAutoScrolling=!0;var e={left:l.x*s.x,top:l.y*s.y};t.container.scrollTop+=e.top,t.container.scrollLeft+=e.left,t.onScrollCallback(e)},5))}}]),e}(),z={axis:b().oneOf(["x","y","xy"]),contentWindow:b().any,disableAutoscroll:b().bool,distance:b().number,getContainer:b().func,getHelperDimensions:b().func,helperClass:b().string,helperContainer:b().oneOfType([b().func,"undefined"==typeof HTMLElement?b().any:b().instanceOf(HTMLElement)]),hideSortableGhost:b().bool,keyboardSortingTransitionDuration:b().number,lockAxis:b().string,lockOffset:b().oneOfType([b().number,b().string,b().arrayOf(b().oneOfType([b().number,b().string]))]),lockToContainerEdges:b().bool,onSortEnd:b().func,onSortMove:b().func,onSortOver:b().func,onSortStart:b().func,pressDelay:b().number,pressThreshold:b().number,keyCodes:b().shape({lift:b().arrayOf(b().number),drop:b().arrayOf(b().number),cancel:b().arrayOf(b().number),up:b().arrayOf(b().number),down:b().arrayOf(b().number)}),shouldCancelStart:b().func,transitionDuration:b().number,updateBeforeSortStart:b().func,useDragHandle:b().bool,useWindowAsScrollContainer:b().bool},H={lift:[32],drop:[32],cancel:[27],up:[38,37],down:[40,39]},G=3260==n.j?{axis:"y",disableAutoscroll:!1,distance:0,getHelperDimensions:function(e){var t=e.node;return{height:t.offsetHeight,width:t.offsetWidth}},hideSortableGhost:!0,lockOffset:"50%",lockToContainerEdges:!1,pressDelay:0,pressThreshold:5,keyCodes:H,shouldCancelStart:function(e){return-1!==[F.Input,F.Textarea,F.Select,F.Option,F.Button].indexOf(e.target.tagName)||!!A(e.target,function(e){return"true"===e.contentEditable})},transitionDuration:300,useWindowAsScrollContainer:!1}:null,W=Object.keys(z),U=(0,p.createContext)({manager:{}});function $(e){var t,n,m=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{withRef:!1};return n=t=function(t){function n(e){var t;(0,o.A)(this,n),t=(0,l.A)(this,(0,c.A)(n).call(this,e)),(0,h.A)((0,f.A)((0,f.A)(t)),"state",{}),(0,h.A)((0,f.A)((0,f.A)(t)),"handleStart",function(e){var n=t.props,r=n.distance,a=n.shouldCancelStart;if(2!==e.button&&!a(e)){t.touched=!0,t.position=D(e);var i=A(e.target,function(e){return null!=e.sortableInfo});if(i&&i.sortableInfo&&t.nodeIsChild(i)&&!t.state.sorting){var o=t.props.useDragHandle,s=i.sortableInfo,l=s.index,c=s.collection;if(s.disabled)return;if(o&&!A(e.target,N))return;t.manager.active={collection:c,index:l},function(e){return e.touches&&e.touches.length||e.changedTouches&&e.changedTouches.length}(e)||e.target.tagName!==F.Anchor||e.preventDefault(),r||(0===t.props.pressDelay?t.handlePress(e):t.pressTimer=setTimeout(function(){return t.handlePress(e)},t.props.pressDelay))}}}),(0,h.A)((0,f.A)((0,f.A)(t)),"nodeIsChild",function(e){return e.sortableInfo.manager===t.manager}),(0,h.A)((0,f.A)((0,f.A)(t)),"handleMove",function(e){var n=t.props,r=n.distance,a=n.pressThreshold;if(!t.state.sorting&&t.touched&&!t._awaitingUpdateBeforeSortStart){var i=D(e),o={x:t.position.x-i.x,y:t.position.y-i.y},s=Math.abs(o.x)+Math.abs(o.y);t.delta=o,r||a&&!(s>=a)?r&&s>=r&&t.manager.isActive()&&t.handlePress(e):(clearTimeout(t.cancelTimer),t.cancelTimer=setTimeout(t.cancel,0))}}),(0,h.A)((0,f.A)((0,f.A)(t)),"handleEnd",function(){t.touched=!1,t.cancel()}),(0,h.A)((0,f.A)((0,f.A)(t)),"cancel",function(){var e=t.props.distance;t.state.sorting||(e||clearTimeout(t.pressTimer),t.manager.active=null)}),(0,h.A)((0,f.A)((0,f.A)(t)),"handlePress",function(e){try{var n=t.manager.getActive(),r=function(){if(n){var r=function(){var n,r,a,u,g,v,b=p.sortableInfo.index,_=(n=p,{bottom:M((r=window.getComputedStyle(n)).marginBottom),left:M(r.marginLeft),right:M(r.marginRight),top:M(r.marginTop)}),w=function(e){var t=window.getComputedStyle(e);return"grid"===t.display?{x:M(t.gridColumnGap),y:M(t.gridRowGap)}:{x:0,y:0}}(t.container),S=t.scrollContainer.getBoundingClientRect(),k=s({index:b,node:p,collection:d});if(t.node=p,t.margin=_,t.gridGap=w,t.width=k.width,t.height=k.height,t.marginOffset={x:t.margin.left+t.margin.right+t.gridGap.x,y:Math.max(t.margin.top,t.margin.bottom,t.gridGap.y)},t.boundingClientRect=p.getBoundingClientRect(),t.containerBoundingRect=S,t.index=b,t.newIndex=b,t.axis={x:o.indexOf("x")>=0,y:o.indexOf("y")>=0},t.offsetEdge=L(p,t.container),t.initialOffset=D(m?(0,i.A)({},e,{pageX:t.boundingClientRect.left,pageY:t.boundingClientRect.top}):e),t.initialScroll={left:t.scrollContainer.scrollLeft,top:t.scrollContainer.scrollTop},t.initialWindowScroll={left:window.pageXOffset,top:window.pageYOffset},t.helper=t.helperContainer.appendChild((u="input, textarea, select, canvas, [contenteditable]",g=(a=p).querySelectorAll(u),v=a.cloneNode(!0),(0,y.A)(v.querySelectorAll(u)).forEach(function(e,t){"file"!==e.type&&(e.value=g[t].value),"radio"===e.type&&e.name&&(e.name="__sortableClone__".concat(e.name)),e.tagName===F.Canvas&&g[t].width>0&&g[t].height>0&&e.getContext("2d").drawImage(g[t],0,0)}),v)),C(t.helper,{boxSizing:"border-box",height:"".concat(t.height,"px"),left:"".concat(t.boundingClientRect.left-_.left,"px"),pointerEvents:"none",position:"fixed",top:"".concat(t.boundingClientRect.top-_.top,"px"),width:"".concat(t.width,"px")}),m&&t.helper.focus(),c&&(t.sortableGhost=p,C(p,{opacity:0,visibility:"hidden"})),t.minTranslate={},t.maxTranslate={},m){var E=h?{top:0,left:0,width:t.contentWindow.innerWidth,height:t.contentWindow.innerHeight}:t.containerBoundingRect,P=E.top,A=E.left,O=E.width,T=P+E.height,I=A+O;t.axis.x&&(t.minTranslate.x=A-t.boundingClientRect.left,t.maxTranslate.x=I-(t.boundingClientRect.left+t.width)),t.axis.y&&(t.minTranslate.y=P-t.boundingClientRect.top,t.maxTranslate.y=T-(t.boundingClientRect.top+t.height))}else t.axis.x&&(t.minTranslate.x=(h?0:S.left)-t.boundingClientRect.left-t.width/2,t.maxTranslate.x=(h?t.contentWindow.innerWidth:S.left+S.width)-t.boundingClientRect.left-t.width/2),t.axis.y&&(t.minTranslate.y=(h?0:S.top)-t.boundingClientRect.top-t.height/2,t.maxTranslate.y=(h?t.contentWindow.innerHeight:S.top+S.height)-t.boundingClientRect.top-t.height/2);l&&l.split(" ").forEach(function(e){return t.helper.classList.add(e)}),t.listenerNode=e.touches?e.target:t.contentWindow,m?(t.listenerNode.addEventListener("wheel",t.handleKeyEnd,!0),t.listenerNode.addEventListener("mousedown",t.handleKeyEnd,!0),t.listenerNode.addEventListener("keydown",t.handleKeyDown)):(x.move.forEach(function(e){return t.listenerNode.addEventListener(e,t.handleSortMove,!1)}),x.end.forEach(function(e){return t.listenerNode.addEventListener(e,t.handleSortEnd,!1)})),t.setState({sorting:!0,sortingIndex:b}),f&&f({node:p,index:b,collection:d,isKeySorting:m,nodes:t.manager.getOrderedRefs(),helper:t.helper},e),m&&t.keyMove(0)},a=t.props,o=a.axis,s=a.getHelperDimensions,l=a.helperClass,c=a.hideSortableGhost,u=a.updateBeforeSortStart,f=a.onSortStart,h=a.useWindowAsScrollContainer,p=n.node,d=n.collection,m=t.manager.isKeySorting,g=function(){if("function"==typeof u){t._awaitingUpdateBeforeSortStart=!0;var n=function(t,n){try{var r=(a=p.sortableInfo.index,Promise.resolve(u({collection:d,index:a,node:p,isKeySorting:m},e)).then(function(){}))}catch(e){return n(!0,e)}var a;return r&&r.then?r.then(n.bind(null,!1),n.bind(null,!0)):n(!1,value)}(0,function(e,n){if(t._awaitingUpdateBeforeSortStart=!1,e)throw n;return n});if(n&&n.then)return n.then(function(){})}}();return g&&g.then?g.then(r):r()}}();return Promise.resolve(r&&r.then?r.then(function(){}):void 0)}catch(e){return Promise.reject(e)}}),(0,h.A)((0,f.A)((0,f.A)(t)),"handleSortMove",function(e){var n=t.props.onSortMove;"function"==typeof e.preventDefault&&e.cancelable&&e.preventDefault(),t.updateHelperPosition(e),t.animateNodes(),t.autoscroll(),n&&n(e)}),(0,h.A)((0,f.A)((0,f.A)(t)),"handleSortEnd",function(e){var n=t.props,r=n.hideSortableGhost,a=n.onSortEnd,i=t.manager,o=i.active.collection,s=i.isKeySorting,l=t.manager.getOrderedRefs();t.listenerNode&&(s?(t.listenerNode.removeEventListener("wheel",t.handleKeyEnd,!0),t.listenerNode.removeEventListener("mousedown",t.handleKeyEnd,!0),t.listenerNode.removeEventListener("keydown",t.handleKeyDown)):(x.move.forEach(function(e){return t.listenerNode.removeEventListener(e,t.handleSortMove)}),x.end.forEach(function(e){return t.listenerNode.removeEventListener(e,t.handleSortEnd)}))),t.helper.parentNode.removeChild(t.helper),r&&t.sortableGhost&&C(t.sortableGhost,{opacity:"",visibility:""});for(var c=0,u=l.length;c<u;c++){var f=l[c],h=f.node;f.edgeOffset=null,f.boundingClientRect=null,E(h,null),P(h,null),f.translate=null}t.autoScroller.clear(),t.manager.active=null,t.manager.isKeySorting=!1,t.setState({sorting:!1,sortingIndex:null}),"function"==typeof a&&a({collection:o,newIndex:t.newIndex,oldIndex:t.index,isKeySorting:s,nodes:l},e),t.touched=!1}),(0,h.A)((0,f.A)((0,f.A)(t)),"autoscroll",function(){var e=t.props.disableAutoscroll,n=t.manager.isKeySorting;if(e)t.autoScroller.clear();else{if(n){var r=(0,i.A)({},t.translate),a=0,o=0;return t.axis.x&&(r.x=Math.min(t.maxTranslate.x,Math.max(t.minTranslate.x,t.translate.x)),a=t.translate.x-r.x),t.axis.y&&(r.y=Math.min(t.maxTranslate.y,Math.max(t.minTranslate.y,t.translate.y)),o=t.translate.y-r.y),t.translate=r,E(t.helper,t.translate),t.scrollContainer.scrollLeft+=a,void(t.scrollContainer.scrollTop+=o)}t.autoScroller.update({height:t.height,maxTranslate:t.maxTranslate,minTranslate:t.minTranslate,translate:t.translate,width:t.width})}}),(0,h.A)((0,f.A)((0,f.A)(t)),"onAutoScroll",function(e){t.translate.x+=e.left,t.translate.y+=e.top,t.animateNodes()}),(0,h.A)((0,f.A)((0,f.A)(t)),"handleKeyDown",function(e){var n=e.keyCode,r=t.props,a=r.shouldCancelStart,o=r.keyCodes,s=void 0===o?{}:o,l=(0,i.A)({},H,s);t.manager.active&&!t.manager.isKeySorting||!(t.manager.active||l.lift.includes(n)&&!a(e)&&t.isValidSortingTarget(e))||(e.stopPropagation(),e.preventDefault(),l.lift.includes(n)&&!t.manager.active?t.keyLift(e):l.drop.includes(n)&&t.manager.active?t.keyDrop(e):l.cancel.includes(n)?(t.newIndex=t.manager.active.index,t.keyDrop(e)):l.up.includes(n)?t.keyMove(-1):l.down.includes(n)&&t.keyMove(1))}),(0,h.A)((0,f.A)((0,f.A)(t)),"keyLift",function(e){var n=e.target,r=A(n,function(e){return null!=e.sortableInfo}).sortableInfo,a=r.index,i=r.collection;t.initialFocusedNode=n,t.manager.isKeySorting=!0,t.manager.active={index:a,collection:i},t.handlePress(e)}),(0,h.A)((0,f.A)((0,f.A)(t)),"keyMove",function(e){var n=t.manager.getOrderedRefs(),r=n[n.length-1].node.sortableInfo.index,a=t.newIndex+e,i=t.newIndex;if(!(a<0||a>r)){t.prevIndex=i,t.newIndex=a;var o=function(e,t,n){return e<n&&e>t?e-1:e>n&&e<t?e+1:e}(t.newIndex,t.prevIndex,t.index),s=n.find(function(e){return e.node.sortableInfo.index===o}),l=s.node,c=t.containerScrollDelta,u=s.boundingClientRect||I(l,c),f=s.translate||{x:0,y:0},h=u.top+f.y-c.top,p=u.left+f.x-c.left,d=i<a,m=d&&t.axis.x?l.offsetWidth-t.width:0,g=d&&t.axis.y?l.offsetHeight-t.height:0;t.handleSortMove({pageX:p+m,pageY:h+g,ignoreTransition:0===e})}}),(0,h.A)((0,f.A)((0,f.A)(t)),"keyDrop",function(e){t.handleSortEnd(e),t.initialFocusedNode&&t.initialFocusedNode.focus()}),(0,h.A)((0,f.A)((0,f.A)(t)),"handleKeyEnd",function(e){t.manager.active&&t.keyDrop(e)}),(0,h.A)((0,f.A)((0,f.A)(t)),"isValidSortingTarget",function(e){var n=t.props.useDragHandle,r=e.target,a=A(r,function(e){return null!=e.sortableInfo});return a&&a.sortableInfo&&!a.sortableInfo.disabled&&(n?N(r):r.sortableInfo)});var r=new _;return function(e){g()(!(e.distance&&e.pressDelay),"Attempted to set both `pressDelay` and `distance` on SortableContainer, you may only use one or the other, not both at the same time.")}(e),t.manager=r,t.wrappedInstance=(0,p.createRef)(),t.sortableContextValue={manager:r},t.events={end:t.handleEnd,move:t.handleMove,start:t.handleStart},t}return(0,u.A)(n,t),(0,s.A)(n,[{key:"componentDidMount",value:function(){var e=this,t=this.props.useWindowAsScrollContainer,n=this.getContainer();Promise.resolve(n).then(function(n){e.container=n,e.document=e.container.ownerDocument||document;var r=e.props.contentWindow||e.document.defaultView||window;e.contentWindow="function"==typeof r?r():r,e.scrollContainer=t?e.document.scrollingElement||e.document.documentElement:j(e.container)||e.container,e.autoScroller=new B(e.scrollContainer,e.onAutoScroll),Object.keys(e.events).forEach(function(t){return x[t].forEach(function(n){return e.container.addEventListener(n,e.events[t],!1)})}),e.container.addEventListener("keydown",e.handleKeyDown)})}},{key:"componentWillUnmount",value:function(){var e=this;this.helper&&this.helper.parentNode&&this.helper.parentNode.removeChild(this.helper),this.container&&(Object.keys(this.events).forEach(function(t){return x[t].forEach(function(n){return e.container.removeEventListener(n,e.events[t])})}),this.container.removeEventListener("keydown",this.handleKeyDown))}},{key:"updateHelperPosition",value:function(e){var t=this.props,n=t.lockAxis,r=t.lockOffset,i=t.lockToContainerEdges,o=t.transitionDuration,s=t.keyboardSortingTransitionDuration,l=void 0===s?o:s,c=this.manager.isKeySorting,u=e.ignoreTransition,f=D(e),h={x:f.x-this.initialOffset.x,y:f.y-this.initialOffset.y};if(h.y-=window.pageYOffset-this.initialWindowScroll.top,h.x-=window.pageXOffset-this.initialWindowScroll.left,this.translate=h,i){var p=function(e){var t=e.height,n=e.width,r=e.lockOffset,i=Array.isArray(r)?r:[r,r];g()(2===i.length,"lockOffset prop of SortableContainer should be a single value or an array of exactly two values. Given %s",r);var o=(0,a.A)(i,2),s=o[0],l=o[1];return[R({height:t,lockOffset:s,width:n}),R({height:t,lockOffset:l,width:n})]}({height:this.height,lockOffset:r,width:this.width}),d=(0,a.A)(p,2),m=d[0],y=d[1],v={x:this.width/2-m.x,y:this.height/2-m.y},b={x:this.width/2-y.x,y:this.height/2-y.y};h.x=O(this.minTranslate.x+v.x,this.maxTranslate.x-b.x,h.x),h.y=O(this.minTranslate.y+v.y,this.maxTranslate.y-b.y,h.y)}"x"===n?h.y=0:"y"===n&&(h.x=0),c&&l&&!u&&P(this.helper,l),E(this.helper,h)}},{key:"animateNodes",value:function(){var e=this.props,t=e.transitionDuration,n=e.hideSortableGhost,r=e.onSortOver,a=this.containerScrollDelta,i=this.windowScrollDelta,o=this.manager.getOrderedRefs(),s=this.offsetEdge.left+this.translate.x+a.left,l=this.offsetEdge.top+this.translate.y+a.top,c=this.manager.isKeySorting,u=this.newIndex;this.newIndex=null;for(var f=0,h=o.length;f<h;f++){var p=o[f].node,d=p.sortableInfo.index,m=p.offsetWidth,g=p.offsetHeight,y={height:this.height>g?g/2:this.height/2,width:this.width>m?m/2:this.width/2},v=c&&d>this.index&&d<=u,b=c&&d<this.index&&d>=u,_={x:0,y:0},w=o[f].edgeOffset;w||(w=L(p,this.container),o[f].edgeOffset=w,c&&(o[f].boundingClientRect=I(p,a)));var S=f<o.length-1&&o[f+1],x=f>0&&o[f-1];S&&!S.edgeOffset&&(S.edgeOffset=L(S.node,this.container),c&&(S.boundingClientRect=I(S.node,a))),d!==this.index?(t&&P(p,t),this.axis.x?this.axis.y?b||d<this.index&&(s+i.left-y.width<=w.left&&l+i.top<=w.top+y.height||l+i.top+y.height<=w.top)?(_.x=this.width+this.marginOffset.x,w.left+_.x>this.containerBoundingRect.width-y.width&&S&&(_.x=S.edgeOffset.left-w.left,_.y=S.edgeOffset.top-w.top),null===this.newIndex&&(this.newIndex=d)):(v||d>this.index&&(s+i.left+y.width>=w.left&&l+i.top+y.height>=w.top||l+i.top+y.height>=w.top+g))&&(_.x=-(this.width+this.marginOffset.x),w.left+_.x<this.containerBoundingRect.left+y.width&&x&&(_.x=x.edgeOffset.left-w.left,_.y=x.edgeOffset.top-w.top),this.newIndex=d):v||d>this.index&&s+i.left+y.width>=w.left?(_.x=-(this.width+this.marginOffset.x),this.newIndex=d):(b||d<this.index&&s+i.left<=w.left+y.width)&&(_.x=this.width+this.marginOffset.x,null==this.newIndex&&(this.newIndex=d)):this.axis.y&&(v||d>this.index&&l+i.top+y.height>=w.top?(_.y=-(this.height+this.marginOffset.y),this.newIndex=d):(b||d<this.index&&l+i.top<=w.top+y.height)&&(_.y=this.height+this.marginOffset.y,null==this.newIndex&&(this.newIndex=d))),E(p,_),o[f].translate=_):n&&(this.sortableGhost=p,C(p,{opacity:0,visibility:"hidden"}))}null==this.newIndex&&(this.newIndex=this.index),c&&(this.newIndex=u);var k=c?this.prevIndex:u;r&&this.newIndex!==k&&r({collection:this.manager.active.collection,index:this.index,newIndex:this.newIndex,oldIndex:k,isKeySorting:c,nodes:o,helper:this.helper})}},{key:"getWrappedInstance",value:function(){return g()(m.withRef,"To access the wrapped instance, you need to pass in {withRef: true} as the second argument of the SortableContainer() call"),this.wrappedInstance.current}},{key:"getContainer",value:function(){var e=this.props.getContainer;return"function"!=typeof e?(0,d.findDOMNode)(this):e(m.withRef?this.getWrappedInstance():void 0)}},{key:"render",value:function(){var t=m.withRef?this.wrappedInstance:null;return(0,p.createElement)(U.Provider,{value:this.sortableContextValue},(0,p.createElement)(e,(0,r.A)({ref:t},S(this.props,W))))}},{key:"helperContainer",get:function(){var e=this.props.helperContainer;return"function"==typeof e?e():this.props.helperContainer||this.document.body}},{key:"containerScrollDelta",get:function(){return this.props.useWindowAsScrollContainer?{left:0,top:0}:{left:this.scrollContainer.scrollLeft-this.initialScroll.left,top:this.scrollContainer.scrollTop-this.initialScroll.top}}},{key:"windowScrollDelta",get:function(){return{left:this.contentWindow.pageXOffset-this.initialWindowScroll.left,top:this.contentWindow.pageYOffset-this.initialWindowScroll.top}}}]),n}(p.Component),(0,h.A)(t,"displayName",T("sortableList",e)),(0,h.A)(t,"defaultProps",G),(0,h.A)(t,"propTypes",z),n}var q={index:b().number.isRequired,collection:b().oneOfType([b().number,b().string]),disabled:b().bool},Y=Object.keys(q);function K(e){var t,n,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{withRef:!1};return n=t=function(t){function n(){var e,t;(0,o.A)(this,n);for(var r=arguments.length,a=new Array(r),i=0;i<r;i++)a[i]=arguments[i];return t=(0,l.A)(this,(e=(0,c.A)(n)).call.apply(e,[this].concat(a))),(0,h.A)((0,f.A)((0,f.A)(t)),"wrappedInstance",(0,p.createRef)()),t}return(0,u.A)(n,t),(0,s.A)(n,[{key:"componentDidMount",value:function(){this.register()}},{key:"componentDidUpdate",value:function(e){this.node&&(e.index!==this.props.index&&(this.node.sortableInfo.index=this.props.index),e.disabled!==this.props.disabled&&(this.node.sortableInfo.disabled=this.props.disabled)),e.collection!==this.props.collection&&(this.unregister(e.collection),this.register())}},{key:"componentWillUnmount",value:function(){this.unregister()}},{key:"register",value:function(){var e=this.props,t=e.collection,n=e.disabled,r=e.index,a=(0,d.findDOMNode)(this);a.sortableInfo={collection:t,disabled:n,index:r,manager:this.context.manager},this.node=a,this.ref={node:a},this.context.manager.add(t,this.ref)}},{key:"unregister",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props.collection;this.context.manager.remove(e,this.ref)}},{key:"getWrappedInstance",value:function(){return g()(a.withRef,"To access the wrapped instance, you need to pass in {withRef: true} as the second argument of the SortableElement() call"),this.wrappedInstance.current}},{key:"render",value:function(){var t=a.withRef?this.wrappedInstance:null;return(0,p.createElement)(e,(0,r.A)({ref:t},S(this.props,Y)))}}]),n}(p.Component),(0,h.A)(t,"displayName",T("sortableElement",e)),(0,h.A)(t,"contextType",U),(0,h.A)(t,"propTypes",q),(0,h.A)(t,"defaultProps",{collection:0}),n}},21020(e,t,n){"use strict";var r=n(51609),a=Symbol.for("react.element"),i=(Symbol.for("react.fragment"),Object.prototype.hasOwnProperty),o=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,s={key:!0,ref:!0,__self:!0,__source:!0};t.jsx=function(e,t,n){var r,l={},c=null,u=null;for(r in void 0!==n&&(c=""+n),void 0!==t.key&&(c=""+t.key),void 0!==t.ref&&(u=t.ref),t)i.call(t,r)&&!s.hasOwnProperty(r)&&(l[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===l[r]&&(l[r]=t[r]);return{$$typeof:a,type:e,key:c,ref:u,props:l,_owner:o.current}}},74848(e,t,n){"use strict";e.exports=n(21020)},43591(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>k});var r=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 a=r[n];e.call(t,a[1],a[0])}},t}()}(),a="undefined"!=typeof window&&"undefined"!=typeof document&&window.document===document,i="undefined"!=typeof globalThis&&globalThis.Math===Math?globalThis:"undefined"!=typeof self&&self.Math===Math?self:"undefined"!=typeof window&&window.Math===Math?window:Function("return this")(),o="function"==typeof requestAnimationFrame?requestAnimationFrame.bind(i):function(e){return setTimeout(function(){return e(Date.now())},1e3/60)},s=["top","right","bottom","left","width","height","size","weight"],l="undefined"!=typeof MutationObserver,c=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=function(e){var t=!1,n=!1,r=0;function a(){t&&(t=!1,e()),n&&s()}function i(){o(a)}function s(){var e=Date.now();if(t){if(e-r<2)return;n=!0}else t=!0,n=!1,setTimeout(i,20);r=e}return s}(this.refresh.bind(this))}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(){a&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),l?(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(){a&&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;s.some(function(e){return!!~n.indexOf(e)})&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),u=function(e,t){for(var n=0,r=Object.keys(t);n<r.length;n++){var a=r[n];Object.defineProperty(e,a,{value:t[a],enumerable:!1,writable:!1,configurable:!0})}return e},f=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||i},h=y(0,0,0,0);function p(e){return parseFloat(e)||0}function d(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce(function(t,n){return t+p(e["border-"+n+"-width"])},0)}var m="undefined"!=typeof SVGGraphicsElement?function(e){return e instanceof f(e).SVGGraphicsElement}:function(e){return e instanceof f(e).SVGElement&&"function"==typeof e.getBBox};function g(e){return a?m(e)?function(e){var t=e.getBBox();return y(0,0,t.width,t.height)}(e):function(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return h;var r=f(e).getComputedStyle(e),a=function(e){for(var t={},n=0,r=["top","right","bottom","left"];n<r.length;n++){var a=r[n],i=e["padding-"+a];t[a]=p(i)}return t}(r),i=a.left+a.right,o=a.top+a.bottom,s=p(r.width),l=p(r.height);if("border-box"===r.boxSizing&&(Math.round(s+i)!==t&&(s-=d(r,"left","right")+i),Math.round(l+o)!==n&&(l-=d(r,"top","bottom")+o)),!function(e){return e===f(e).document.documentElement}(e)){var c=Math.round(s+i)-t,u=Math.round(l+o)-n;1!==Math.abs(c)&&(s-=c),1!==Math.abs(u)&&(l-=u)}return y(a.left,a.top,s,l)}(e):h}function y(e,t,n,r){return{x:e,y:t,width:n,height:r}}var v=function(){function e(e){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=y(0,0,0,0),this.target=e}return e.prototype.isActive=function(){var e=g(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}(),b=function(e,t){var n,r,a,i,o,s,l,c=(r=(n=t).x,a=n.y,i=n.width,o=n.height,s="undefined"!=typeof DOMRectReadOnly?DOMRectReadOnly:Object,l=Object.create(s.prototype),u(l,{x:r,y:a,width:i,height:o,top:a,right:r+i,bottom:o+a,left:r}),l);u(this,{target:e,contentRect:c})},_=function(){function e(e,t,n){if(this.activeObservations_=[],this.observations_=new r,"function"!=typeof e)throw new 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 new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof f(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)||(t.set(e,new v(e)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof f(e).Element))throw new 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 b(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}(),w="undefined"!=typeof WeakMap?new WeakMap:new r,S=function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=c.getInstance(),r=new _(t,n,this);w.set(this,r)};["observe","unobserve","disconnect"].forEach(function(e){S.prototype[e]=function(){var t;return(t=w.get(this))[e].apply(t,arguments)}});var x=void 0!==i.ResizeObserver?i.ResizeObserver:S;const k=/^(3260|9638)$/.test(n.j)?x:null},2833(e){e.exports=function(e,t,n,r){var a=n?n.call(r,e,t):void 0;if(void 0!==a)return!!a;if(e===t)return!0;if("object"!=typeof e||!e||"object"!=typeof t||!t)return!1;var i=Object.keys(e),o=Object.keys(t);if(i.length!==o.length)return!1;for(var s=Object.prototype.hasOwnProperty.bind(t),l=0;l<i.length;l++){var c=i[l];if(!s(c))return!1;var u=e[c],f=t[c];if(!1===(a=n?n.call(r,u,f,c):void 0)||void 0===a&&u!==f)return!1}return!0}},28028(e){e.exports=function(e){return e.replace(/[A-Z]/g,function(e){return"-"+e.toLowerCase()}).toLowerCase()}},67098(e,t,n){"use strict";var r;!function(){if("function"!=typeof a){var a=function(e){return e};a.nonNative=!0}const i=a("plaintext"),o=a("html"),s=a("comment"),l=/<(\w*)>/g,c=/<\/?([^\s\/>]+)/;function u(e,t,n){return h(e=e||"",f(t=t||[],n=n||""))}function f(e,t){return{allowable_tags:e=function(e){let t=new Set;if("string"==typeof e){let n;for(;n=l.exec(e);)t.add(n[1])}else a.nonNative||"function"!=typeof e[a.iterator]?"function"==typeof e.forEach&&e.forEach(t.add,t):t=new Set(e);return t}(e),tag_replacement:t,state:i,tag_buffer:"",depth:0,in_quote_char:""}}function h(e,t){if("string"!=typeof e)throw new TypeError("'html' parameter must be a string");let n=t.allowable_tags,r=t.tag_replacement,a=t.state,l=t.tag_buffer,c=t.depth,u=t.in_quote_char,f="";for(let t=0,h=e.length;t<h;t++){let h=e[t];if(a===i)"<"===h?(a=o,l+=h):f+=h;else if(a===o)switch(h){case"<":if(u)break;c++;break;case">":if(u)break;if(c){c--;break}u="",a=i,l+=">",n.has(p(l))?f+=l:f+=r,l="";break;case'"':case"'":u=h===u?"":u||h,l+=h;break;case"-":"<!-"===l&&(a=s),l+=h;break;case" ":case"\n":if("<"===l){a=i,f+="< ",l="";break}l+=h;break;default:l+=h}else a===s&&(">"===h?("--"==l.slice(-2)&&(a=i),l=""):l+=h)}return t.state=a,t.tag_buffer=l,t.depth=c,t.in_quote_char=u,f}function p(e){let t=c.exec(e);return t?t[1].toLowerCase():null}u.init_streaming_mode=function(e,t){let n=f(e=e||[],t=t||"");return function(e){return h(e||"",n)}},void 0===(r=function(){return u}.call(t,n,t,e))||(e.exports=r)}()},35229(e,t,n){"use strict";var r=(this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}})(n(51133)),a=n(98917);function i(e,t){var n={};return e&&"string"==typeof e?((0,r.default)(e,function(e,r){e&&r&&(n[(0,a.camelCase)(e,t)]=r)}),n):n}i.default=i,e.exports=i},98917(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.camelCase=void 0;var n=/^--[a-zA-Z0-9_-]+$/,r=/-([a-z])/g,a=/^[^-]+$/,i=/^-(webkit|moz|ms|o|khtml)-/,o=/^-(ms)-/,s=function(e,t){return t.toUpperCase()},l=function(e,t){return"".concat(t,"-")};t.camelCase=function(e,t){return void 0===t&&(t={}),function(e){return!e||a.test(e)||n.test(e)}(e)?e:(e=e.toLowerCase(),(e=t.reactCompat?e.replace(o,l):e.replace(i,l)).replace(r,s))}},51133(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}),t.default=function(e,t){let n=null;if(!e||"string"!=typeof e)return n;const r=(0,a.default)(e),i="function"==typeof t;return r.forEach(e=>{if("declaration"!==e.type)return;const{property:r,value:a}=e;i?t(r,a,e):a&&(n=n||{},n[r]=a)}),n};const a=r(n(5077))},27003(e,t,n){"use strict";n.d(t,{A:()=>a});var r=n(51609),a=/^(3260|6573|7776)$/.test(n.j)?r.useLayoutEffect:null},93101(e,t,n){"use strict";n.d(t,{Mp:()=>Be,vL:()=>Q,AN:()=>ce,fp:()=>k,Sj:()=>D,TT:()=>A,fF:()=>We,PM:()=>Ge,zM:()=>$e,MS:()=>g,FR:()=>y});var r=n(51609),a=n.n(r),i=n(75795),o=n(46189);const s={display:"none"};function l(e){let{id:t,value:n}=e;return a().createElement("div",{id:t,style:s},n)}function c(e){let{id:t,announcement:n,ariaLiveType:r="assertive"}=e;return a().createElement("div",{id:t,style:{position:"fixed",top:0,left:0,width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0 0 0 0)",clipPath:"inset(100%)",whiteSpace:"nowrap"},role:"status","aria-live":r,"aria-atomic":!0},n)}const u=(0,r.createContext)(null),f={draggable:"\n    To pick up a draggable item, press the space bar.\n    While dragging, use the arrow keys to move the item.\n    Press space again to drop the item in its new position, or press escape to cancel.\n  "},h={onDragStart(e){let{active:t}=e;return"Picked up draggable item "+t.id+"."},onDragOver(e){let{active:t,over:n}=e;return n?"Draggable item "+t.id+" was moved over droppable area "+n.id+".":"Draggable item "+t.id+" is no longer over a droppable area."},onDragEnd(e){let{active:t,over:n}=e;return n?"Draggable item "+t.id+" was dropped over droppable area "+n.id:"Draggable item "+t.id+" was dropped."},onDragCancel(e){let{active:t}=e;return"Dragging was cancelled. Draggable item "+t.id+" was dropped."}};function p(e){let{announcements:t=h,container:n,hiddenTextDescribedById:s,screenReaderInstructions:p=f}=e;const{announce:d,announcement:m}=function(){const[e,t]=(0,r.useState)("");return{announce:(0,r.useCallback)(e=>{null!=e&&t(e)},[]),announcement:e}}(),g=(0,o.YG)("DndLiveRegion"),[y,v]=(0,r.useState)(!1);if((0,r.useEffect)(()=>{v(!0)},[]),function(e){const t=(0,r.useContext)(u);(0,r.useEffect)(()=>{if(!t)throw new Error("useDndMonitor must be used within a children of <DndContext>");return t(e)},[e,t])}((0,r.useMemo)(()=>({onDragStart(e){let{active:n}=e;d(t.onDragStart({active:n}))},onDragMove(e){let{active:n,over:r}=e;t.onDragMove&&d(t.onDragMove({active:n,over:r}))},onDragOver(e){let{active:n,over:r}=e;d(t.onDragOver({active:n,over:r}))},onDragEnd(e){let{active:n,over:r}=e;d(t.onDragEnd({active:n,over:r}))},onDragCancel(e){let{active:n,over:r}=e;d(t.onDragCancel({active:n,over:r}))}}),[d,t])),!y)return null;const b=a().createElement(a().Fragment,null,a().createElement(l,{id:s,value:p.draggable}),a().createElement(c,{id:g,announcement:m}));return n?(0,i.createPortal)(b,n):b}var d;function m(){}function g(e,t){return(0,r.useMemo)(()=>({sensor:e,options:null!=t?t:{}}),[e,t])}function y(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return(0,r.useMemo)(()=>[...t].filter(e=>null!=e),[...t])}!function(e){e.DragStart="dragStart",e.DragMove="dragMove",e.DragEnd="dragEnd",e.DragCancel="dragCancel",e.DragOver="dragOver",e.RegisterDroppable="registerDroppable",e.SetDroppableDisabled="setDroppableDisabled",e.UnregisterDroppable="unregisterDroppable"}(d||(d={}));const v=Object.freeze({x:0,y:0});function b(e,t){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function _(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return n-r}function w(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return r-n}function S(e){let{left:t,top:n,height:r,width:a}=e;return[{x:t,y:n},{x:t+a,y:n},{x:t,y:n+r},{x:t+a,y:n+r}]}function x(e,t,n){return void 0===t&&(t=e.left),void 0===n&&(n=e.top),{x:t+.5*e.width,y:n+.5*e.height}}const k=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e;const a=x(t,t.left,t.top),i=[];for(const e of r){const{id:t}=e,r=n.get(t);if(r){const n=b(x(r),a);i.push({id:t,data:{droppableContainer:e,value:n}})}}return i.sort(_)};function C(e,t){const n=Math.max(t.top,e.top),r=Math.max(t.left,e.left),a=Math.min(t.left+t.width,e.left+e.width),i=Math.min(t.top+t.height,e.top+e.height),o=a-r,s=i-n;if(r<a&&n<i){const n=t.width*t.height,r=e.width*e.height,a=o*s;return Number((a/(n+r-a)).toFixed(4))}return 0}const E=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e;const a=[];for(const e of r){const{id:r}=e,i=n.get(r);if(i){const n=C(i,t);n>0&&a.push({id:r,data:{droppableContainer:e,value:n}})}}return a.sort(w)};function P(e,t){const{top:n,left:r,bottom:a,right:i}=t;return n<=e.y&&e.y<=a&&r<=e.x&&e.x<=i}const A=e=>{let{droppableContainers:t,droppableRects:n,pointerCoordinates:r}=e;if(!r)return[];const a=[];for(const e of t){const{id:t}=e,i=n.get(t);if(i&&P(r,i)){const n=S(i).reduce((e,t)=>e+b(r,t),0),o=Number((n/4).toFixed(4));a.push({id:t,data:{droppableContainer:e,value:o}})}}return a.sort(_)};function O(e,t){return e&&t?{x:e.left-t.left,y:e.top-t.top}:v}function M(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),a=1;a<n;a++)r[a-1]=arguments[a];return r.reduce((t,n)=>({...t,top:t.top+e*n.y,bottom:t.bottom+e*n.y,left:t.left+e*n.x,right:t.right+e*n.x}),{...t})}}const T=M(1);const I={ignoreTransform:!1};function D(e,t){void 0===t&&(t=I);let n=e.getBoundingClientRect();if(t.ignoreTransform){const{transform:t,transformOrigin:r}=(0,o.zk)(e).getComputedStyle(e);t&&(n=function(e,t,n){const r=function(e){if(e.startsWith("matrix3d(")){const t=e.slice(9,-1).split(/, /);return{x:+t[12],y:+t[13],scaleX:+t[0],scaleY:+t[5]}}if(e.startsWith("matrix(")){const t=e.slice(7,-1).split(/, /);return{x:+t[4],y:+t[5],scaleX:+t[0],scaleY:+t[3]}}return null}(t);if(!r)return e;const{scaleX:a,scaleY:i,x:o,y:s}=r,l=e.left-o-(1-a)*parseFloat(n),c=e.top-s-(1-i)*parseFloat(n.slice(n.indexOf(" ")+1)),u=a?e.width/a:e.width,f=i?e.height/i:e.height;return{width:u,height:f,top:c,right:l+u,bottom:c+f,left:l}}(n,t,r))}const{top:r,left:a,width:i,height:s,bottom:l,right:c}=n;return{top:r,left:a,width:i,height:s,bottom:l,right:c}}function L(e){return D(e,{ignoreTransform:!0})}function R(e,t){const n=[];return e?function r(a){if(null!=t&&n.length>=t)return n;if(!a)return n;if((0,o.wz)(a)&&null!=a.scrollingElement&&!n.includes(a.scrollingElement))return n.push(a.scrollingElement),n;if(!(0,o.sb)(a)||(0,o.xZ)(a))return n;if(n.includes(a))return n;const i=(0,o.zk)(e).getComputedStyle(a);return a!==e&&function(e,t){void 0===t&&(t=(0,o.zk)(e).getComputedStyle(e));const n=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some(e=>{const r=t[e];return"string"==typeof r&&n.test(r)})}(a,i)&&n.push(a),function(e,t){return void 0===t&&(t=(0,o.zk)(e).getComputedStyle(e)),"fixed"===t.position}(a,i)?n:r(a.parentNode)}(e):n}function j(e){const[t]=R(e,1);return null!=t?t:null}function F(e){return o.Sw&&e?(0,o.l6)(e)?e:(0,o.Ll)(e)?(0,o.wz)(e)||e===(0,o.TW)(e).scrollingElement?window:(0,o.sb)(e)?e:null:null:null}function V(e){return(0,o.l6)(e)?e.scrollX:e.scrollLeft}function N(e){return(0,o.l6)(e)?e.scrollY:e.scrollTop}function B(e){return{x:V(e),y:N(e)}}var z;function H(e){return!(!o.Sw||!e)&&e===document.scrollingElement}function G(e){const t={x:0,y:0},n=H(e)?{height:window.innerHeight,width:window.innerWidth}:{height:e.clientHeight,width:e.clientWidth},r={x:e.scrollWidth-n.width,y:e.scrollHeight-n.height};return{isTop:e.scrollTop<=t.y,isLeft:e.scrollLeft<=t.x,isBottom:e.scrollTop>=r.y,isRight:e.scrollLeft>=r.x,maxScroll:r,minScroll:t}}!function(e){e[e.Forward=1]="Forward",e[e.Backward=-1]="Backward"}(z||(z={}));const W={x:.2,y:.2};function U(e,t,n,r,a){let{top:i,left:o,right:s,bottom:l}=n;void 0===r&&(r=10),void 0===a&&(a=W);const{isTop:c,isBottom:u,isLeft:f,isRight:h}=G(e),p={x:0,y:0},d={x:0,y:0},m=t.height*a.y,g=t.width*a.x;return!c&&i<=t.top+m?(p.y=z.Backward,d.y=r*Math.abs((t.top+m-i)/m)):!u&&l>=t.bottom-m&&(p.y=z.Forward,d.y=r*Math.abs((t.bottom-m-l)/m)),!h&&s>=t.right-g?(p.x=z.Forward,d.x=r*Math.abs((t.right-g-s)/g)):!f&&o<=t.left+g&&(p.x=z.Backward,d.x=r*Math.abs((t.left+g-o)/g)),{direction:p,speed:d}}function $(e){if(e===document.scrollingElement){const{innerWidth:e,innerHeight:t}=window;return{top:0,left:0,right:e,bottom:t,width:e,height:t}}const{top:t,left:n,right:r,bottom:a}=e.getBoundingClientRect();return{top:t,left:n,right:r,bottom:a,width:e.clientWidth,height:e.clientHeight}}function q(e){return e.reduce((e,t)=>(0,o.WQ)(e,B(t)),v)}const Y=[["x",["left","right"],function(e){return e.reduce((e,t)=>e+V(t),0)}],["y",["top","bottom"],function(e){return e.reduce((e,t)=>e+N(t),0)}]];class K{constructor(e,t){this.rect=void 0,this.width=void 0,this.height=void 0,this.top=void 0,this.bottom=void 0,this.right=void 0,this.left=void 0;const n=R(t),r=q(n);this.rect={...e},this.width=e.width,this.height=e.height;for(const[e,t,a]of Y)for(const i of t)Object.defineProperty(this,i,{get:()=>{const t=a(n),o=r[e]-t;return this.rect[i]+o},enumerable:!0});Object.defineProperty(this,"rect",{enumerable:!1})}}class X{constructor(e){this.target=void 0,this.listeners=[],this.removeAll=()=>{this.listeners.forEach(e=>{var t;return null==(t=this.target)?void 0:t.removeEventListener(...e)})},this.target=e}add(e,t,n){var r;null==(r=this.target)||r.addEventListener(e,t,n),this.listeners.push([e,t,n])}}function J(e,t){const n=Math.abs(e.x),r=Math.abs(e.y);return"number"==typeof t?Math.sqrt(n**2+r**2)>t:"x"in t&&"y"in t?n>t.x&&r>t.y:"x"in t?n>t.x:"y"in t&&r>t.y}var Z,Q;function ee(e){e.preventDefault()}function te(e){e.stopPropagation()}!function(e){e.Click="click",e.DragStart="dragstart",e.Keydown="keydown",e.ContextMenu="contextmenu",e.Resize="resize",e.SelectionChange="selectionchange",e.VisibilityChange="visibilitychange"}(Z||(Z={})),function(e){e.Space="Space",e.Down="ArrowDown",e.Right="ArrowRight",e.Left="ArrowLeft",e.Up="ArrowUp",e.Esc="Escape",e.Enter="Enter",e.Tab="Tab"}(Q||(Q={}));const ne={start:[Q.Space,Q.Enter],cancel:[Q.Esc],end:[Q.Space,Q.Enter,Q.Tab]},re=(e,t)=>{let{currentCoordinates:n}=t;switch(e.code){case Q.Right:return{...n,x:n.x+25};case Q.Left:return{...n,x:n.x-25};case Q.Down:return{...n,y:n.y+25};case Q.Up:return{...n,y:n.y-25}}};class ae{constructor(e){this.props=void 0,this.autoScrollEnabled=!1,this.referenceCoordinates=void 0,this.listeners=void 0,this.windowListeners=void 0,this.props=e;const{event:{target:t}}=e;this.props=e,this.listeners=new X((0,o.TW)(t)),this.windowListeners=new X((0,o.zk)(t)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach()}attach(){this.handleStart(),this.windowListeners.add(Z.Resize,this.handleCancel),this.windowListeners.add(Z.VisibilityChange,this.handleCancel),setTimeout(()=>this.listeners.add(Z.Keydown,this.handleKeyDown))}handleStart(){const{activeNode:e,onStart:t}=this.props,n=e.node.current;n&&function(e,t){if(void 0===t&&(t=D),!e)return;const{top:n,left:r,bottom:a,right:i}=t(e);j(e)&&(a<=0||i<=0||n>=window.innerHeight||r>=window.innerWidth)&&e.scrollIntoView({block:"center",inline:"center"})}(n),t(v)}handleKeyDown(e){if((0,o.kx)(e)){const{active:t,context:n,options:r}=this.props,{keyboardCodes:a=ne,coordinateGetter:i=re,scrollBehavior:s="smooth"}=r,{code:l}=e;if(a.end.includes(l))return void this.handleEnd(e);if(a.cancel.includes(l))return void this.handleCancel(e);const{collisionRect:c}=n.current,u=c?{x:c.left,y:c.top}:v;this.referenceCoordinates||(this.referenceCoordinates=u);const f=i(e,{active:t,context:n.current,currentCoordinates:u});if(f){const t=(0,o.Re)(f,u),r={x:0,y:0},{scrollableAncestors:a}=n.current;for(const n of a){const a=e.code,{isTop:i,isRight:o,isLeft:l,isBottom:c,maxScroll:u,minScroll:h}=G(n),p=$(n),d={x:Math.min(a===Q.Right?p.right-p.width/2:p.right,Math.max(a===Q.Right?p.left:p.left+p.width/2,f.x)),y:Math.min(a===Q.Down?p.bottom-p.height/2:p.bottom,Math.max(a===Q.Down?p.top:p.top+p.height/2,f.y))},m=a===Q.Right&&!o||a===Q.Left&&!l,g=a===Q.Down&&!c||a===Q.Up&&!i;if(m&&d.x!==f.x){const e=n.scrollLeft+t.x,i=a===Q.Right&&e<=u.x||a===Q.Left&&e>=h.x;if(i&&!t.y)return void n.scrollTo({left:e,behavior:s});r.x=i?n.scrollLeft-e:a===Q.Right?n.scrollLeft-u.x:n.scrollLeft-h.x,r.x&&n.scrollBy({left:-r.x,behavior:s});break}if(g&&d.y!==f.y){const e=n.scrollTop+t.y,i=a===Q.Down&&e<=u.y||a===Q.Up&&e>=h.y;if(i&&!t.x)return void n.scrollTo({top:e,behavior:s});r.y=i?n.scrollTop-e:a===Q.Down?n.scrollTop-u.y:n.scrollTop-h.y,r.y&&n.scrollBy({top:-r.y,behavior:s});break}}this.handleMove(e,(0,o.WQ)((0,o.Re)(f,this.referenceCoordinates),r))}}}handleMove(e,t){const{onMove:n}=this.props;e.preventDefault(),n(t)}handleEnd(e){const{onEnd:t}=this.props;e.preventDefault(),this.detach(),t()}handleCancel(e){const{onCancel:t}=this.props;e.preventDefault(),this.detach(),t()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll()}}function ie(e){return Boolean(e&&"distance"in e)}function oe(e){return Boolean(e&&"delay"in e)}ae.activators=[{eventName:"onKeyDown",handler:(e,t,n)=>{let{keyboardCodes:r=ne,onActivation:a}=t,{active:i}=n;const{code:o}=e.nativeEvent;if(r.start.includes(o)){const t=i.activatorNode.current;return!(t&&e.target!==t||(e.preventDefault(),null==a||a({event:e.nativeEvent}),0))}return!1}}];class se{constructor(e,t,n){var r;void 0===n&&(n=function(e){const{EventTarget:t}=(0,o.zk)(e);return e instanceof t?e:(0,o.TW)(e)}(e.event.target)),this.props=void 0,this.events=void 0,this.autoScrollEnabled=!0,this.document=void 0,this.activated=!1,this.initialCoordinates=void 0,this.timeoutId=null,this.listeners=void 0,this.documentListeners=void 0,this.windowListeners=void 0,this.props=e,this.events=t;const{event:a}=e,{target:i}=a;this.props=e,this.events=t,this.document=(0,o.TW)(i),this.documentListeners=new X(this.document),this.listeners=new X(n),this.windowListeners=new X((0,o.zk)(i)),this.initialCoordinates=null!=(r=(0,o.e_)(a))?r:v,this.handleStart=this.handleStart.bind(this),this.handleMove=this.handleMove.bind(this),this.handleEnd=this.handleEnd.bind(this),this.handleCancel=this.handleCancel.bind(this),this.handleKeydown=this.handleKeydown.bind(this),this.removeTextSelection=this.removeTextSelection.bind(this),this.attach()}attach(){const{events:e,props:{options:{activationConstraint:t,bypassActivationConstraint:n}}}=this;if(this.listeners.add(e.move.name,this.handleMove,{passive:!1}),this.listeners.add(e.end.name,this.handleEnd),e.cancel&&this.listeners.add(e.cancel.name,this.handleCancel),this.windowListeners.add(Z.Resize,this.handleCancel),this.windowListeners.add(Z.DragStart,ee),this.windowListeners.add(Z.VisibilityChange,this.handleCancel),this.windowListeners.add(Z.ContextMenu,ee),this.documentListeners.add(Z.Keydown,this.handleKeydown),t){if(null!=n&&n({event:this.props.event,activeNode:this.props.activeNode,options:this.props.options}))return this.handleStart();if(oe(t))return this.timeoutId=setTimeout(this.handleStart,t.delay),void this.handlePending(t);if(ie(t))return void this.handlePending(t)}this.handleStart()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll(),setTimeout(this.documentListeners.removeAll,50),null!==this.timeoutId&&(clearTimeout(this.timeoutId),this.timeoutId=null)}handlePending(e,t){const{active:n,onPending:r}=this.props;r(n,e,this.initialCoordinates,t)}handleStart(){const{initialCoordinates:e}=this,{onStart:t}=this.props;e&&(this.activated=!0,this.documentListeners.add(Z.Click,te,{capture:!0}),this.removeTextSelection(),this.documentListeners.add(Z.SelectionChange,this.removeTextSelection),t(e))}handleMove(e){var t;const{activated:n,initialCoordinates:r,props:a}=this,{onMove:i,options:{activationConstraint:s}}=a;if(!r)return;const l=null!=(t=(0,o.e_)(e))?t:v,c=(0,o.Re)(r,l);if(!n&&s){if(ie(s)){if(null!=s.tolerance&&J(c,s.tolerance))return this.handleCancel();if(J(c,s.distance))return this.handleStart()}return oe(s)&&J(c,s.tolerance)?this.handleCancel():void this.handlePending(s,c)}e.cancelable&&e.preventDefault(),i(l)}handleEnd(){const{onAbort:e,onEnd:t}=this.props;this.detach(),this.activated||e(this.props.active),t()}handleCancel(){const{onAbort:e,onCancel:t}=this.props;this.detach(),this.activated||e(this.props.active),t()}handleKeydown(e){e.code===Q.Esc&&this.handleCancel()}removeTextSelection(){var e;null==(e=this.document.getSelection())||e.removeAllRanges()}}const le={cancel:{name:"pointercancel"},move:{name:"pointermove"},end:{name:"pointerup"}};class ce extends se{constructor(e){const{event:t}=e,n=(0,o.TW)(t.target);super(e,le,n)}}ce.activators=[{eventName:"onPointerDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return!(!n.isPrimary||0!==n.button||(null==r||r({event:n}),0))}}];const ue={move:{name:"mousemove"},end:{name:"mouseup"}};var fe;!function(e){e[e.RightClick=2]="RightClick"}(fe||(fe={})),class extends se{constructor(e){super(e,ue,(0,o.TW)(e.event.target))}}.activators=[{eventName:"onMouseDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return n.button!==fe.RightClick&&(null==r||r({event:n}),!0)}}];const he={cancel:{name:"touchcancel"},move:{name:"touchmove"},end:{name:"touchend"}};var pe,de;(class extends se{constructor(e){super(e,he)}static setup(){return window.addEventListener(he.move.name,e,{capture:!1,passive:!1}),function(){window.removeEventListener(he.move.name,e)};function e(){}}}).activators=[{eventName:"onTouchStart",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;const{touches:a}=n;return!(a.length>1||(null==r||r({event:n}),0))}}],function(e){e[e.Pointer=0]="Pointer",e[e.DraggableRect=1]="DraggableRect"}(pe||(pe={})),function(e){e[e.TreeOrder=0]="TreeOrder",e[e.ReversedTreeOrder=1]="ReversedTreeOrder"}(de||(de={}));const me={x:{[z.Backward]:!1,[z.Forward]:!1},y:{[z.Backward]:!1,[z.Forward]:!1}};var ge,ye;!function(e){e[e.Always=0]="Always",e[e.BeforeDragging=1]="BeforeDragging",e[e.WhileDragging=2]="WhileDragging"}(ge||(ge={})),function(e){e.Optimized="optimized"}(ye||(ye={}));const ve=new Map;function be(e,t){return(0,o.KG)(n=>e?n||("function"==typeof t?t(e):e):null,[t,e])}function _e(e){let{callback:t,disabled:n}=e;const a=(0,o._q)(t),i=(0,r.useMemo)(()=>{if(n||"undefined"==typeof window||void 0===window.ResizeObserver)return;const{ResizeObserver:e}=window;return new e(a)},[n]);return(0,r.useEffect)(()=>()=>null==i?void 0:i.disconnect(),[i]),i}function we(e){return new K(D(e),e)}function Se(e,t,n){void 0===t&&(t=we);const[a,i]=(0,r.useState)(null);function s(){i(r=>{if(!e)return null;var a;if(!1===e.isConnected)return null!=(a=null!=r?r:n)?a:null;const i=t(e);return JSON.stringify(r)===JSON.stringify(i)?r:i})}const l=function(e){let{callback:t,disabled:n}=e;const a=(0,o._q)(t),i=(0,r.useMemo)(()=>{if(n||"undefined"==typeof window||void 0===window.MutationObserver)return;const{MutationObserver:e}=window;return new e(a)},[a,n]);return(0,r.useEffect)(()=>()=>null==i?void 0:i.disconnect(),[i]),i}({callback(t){if(e)for(const n of t){const{type:t,target:r}=n;if("childList"===t&&r instanceof HTMLElement&&r.contains(e)){s();break}}}}),c=_e({callback:s});return(0,o.Es)(()=>{s(),e?(null==c||c.observe(e),null==l||l.observe(document.body,{childList:!0,subtree:!0})):(null==c||c.disconnect(),null==l||l.disconnect())},[e]),a}const xe=[];function ke(e,t){void 0===t&&(t=[]);const n=(0,r.useRef)(null);return(0,r.useEffect)(()=>{n.current=null},t),(0,r.useEffect)(()=>{const t=e!==v;t&&!n.current&&(n.current=e),!t&&n.current&&(n.current=null)},[e]),n.current?(0,o.Re)(e,n.current):v}function Ce(e){return(0,r.useMemo)(()=>e?function(e){const t=e.innerWidth,n=e.innerHeight;return{top:0,left:0,right:t,bottom:n,width:t,height:n}}(e):null,[e])}const Ee=[];const Pe=[{sensor:ce,options:{}},{sensor:ae,options:{}}],Ae={current:{}},Oe={draggable:{measure:L},droppable:{measure:L,strategy:ge.WhileDragging,frequency:ye.Optimized},dragOverlay:{measure:D}};class Me extends Map{get(e){var t;return null!=e&&null!=(t=super.get(e))?t:void 0}toArray(){return Array.from(this.values())}getEnabled(){return this.toArray().filter(e=>{let{disabled:t}=e;return!t})}getNodeFor(e){var t,n;return null!=(t=null==(n=this.get(e))?void 0:n.node.current)?t:void 0}}const Te={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:new Map,droppableRects:new Map,droppableContainers:new Me,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:m},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:Oe,measureDroppableContainers:m,windowRect:null,measuringScheduled:!1},Ie={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:m,draggableNodes:new Map,over:null,measureDroppableContainers:m},De=(0,r.createContext)(Ie),Le=(0,r.createContext)(Te);function Re(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new Me}}}function je(e,t){switch(t.type){case d.DragStart:return{...e,draggable:{...e.draggable,initialCoordinates:t.initialCoordinates,active:t.active}};case d.DragMove:return null==e.draggable.active?e:{...e,draggable:{...e.draggable,translate:{x:t.coordinates.x-e.draggable.initialCoordinates.x,y:t.coordinates.y-e.draggable.initialCoordinates.y}}};case d.DragEnd:case d.DragCancel:return{...e,draggable:{...e.draggable,active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}}};case d.RegisterDroppable:{const{element:n}=t,{id:r}=n,a=new Me(e.droppable.containers);return a.set(r,n),{...e,droppable:{...e.droppable,containers:a}}}case d.SetDroppableDisabled:{const{id:n,key:r,disabled:a}=t,i=e.droppable.containers.get(n);if(!i||r!==i.key)return e;const o=new Me(e.droppable.containers);return o.set(n,{...i,disabled:a}),{...e,droppable:{...e.droppable,containers:o}}}case d.UnregisterDroppable:{const{id:n,key:r}=t,a=e.droppable.containers.get(n);if(!a||r!==a.key)return e;const i=new Me(e.droppable.containers);return i.delete(n),{...e,droppable:{...e.droppable,containers:i}}}default:return e}}function Fe(e){let{disabled:t}=e;const{active:n,activatorEvent:a,draggableNodes:i}=(0,r.useContext)(De),s=(0,o.ZC)(a),l=(0,o.ZC)(null==n?void 0:n.id);return(0,r.useEffect)(()=>{if(!t&&!a&&s&&null!=l){if(!(0,o.kx)(s))return;if(document.activeElement===s.target)return;const e=i.get(l);if(!e)return;const{activatorNode:t,node:n}=e;if(!t.current&&!n.current)return;requestAnimationFrame(()=>{for(const e of[t.current,n.current]){if(!e)continue;const t=(0,o.ag)(e);if(t){t.focus();break}}})}},[a,t,i,l,s]),null}const Ve=(0,r.createContext)({...v,scaleX:1,scaleY:1});var Ne;!function(e){e[e.Uninitialized=0]="Uninitialized",e[e.Initializing=1]="Initializing",e[e.Initialized=2]="Initialized"}(Ne||(Ne={}));const Be=(0,r.memo)(function(e){var t,n,s,l;let{id:c,accessibility:f,autoScroll:h=!0,children:m,sensors:g=Pe,collisionDetection:y=E,measuring:b,modifiers:_,...w}=e;const S=(0,r.useReducer)(je,void 0,Re),[x,k]=S,[C,P]=function(){const[e]=(0,r.useState)(()=>new Set),t=(0,r.useCallback)(t=>(e.add(t),()=>e.delete(t)),[e]);return[(0,r.useCallback)(t=>{let{type:n,event:r}=t;e.forEach(e=>{var t;return null==(t=e[n])?void 0:t.call(e,r)})},[e]),t]}(),[A,M]=(0,r.useState)(Ne.Uninitialized),I=A===Ne.Initialized,{draggable:{active:L,nodes:V,translate:N},droppable:{containers:G}}=x,W=null!=L?V.get(L):null,$=(0,r.useRef)({initial:null,translated:null}),Y=(0,r.useMemo)(()=>{var e;return null!=L?{id:L,data:null!=(e=null==W?void 0:W.data)?e:Ae,rect:$}:null},[L,W]),X=(0,r.useRef)(null),[J,Z]=(0,r.useState)(null),[Q,ee]=(0,r.useState)(null),te=(0,o.YN)(w,Object.values(w)),ne=(0,o.YG)("DndDescribedBy",c),re=(0,r.useMemo)(()=>G.getEnabled(),[G]),ae=(ie=b,(0,r.useMemo)(()=>({draggable:{...Oe.draggable,...null==ie?void 0:ie.draggable},droppable:{...Oe.droppable,...null==ie?void 0:ie.droppable},dragOverlay:{...Oe.dragOverlay,...null==ie?void 0:ie.dragOverlay}}),[null==ie?void 0:ie.draggable,null==ie?void 0:ie.droppable,null==ie?void 0:ie.dragOverlay]));var ie;const{droppableRects:oe,measureDroppableContainers:se,measuringScheduled:le}=function(e,t){let{dragging:n,dependencies:a,config:i}=t;const[s,l]=(0,r.useState)(null),{frequency:c,measure:u,strategy:f}=i,h=(0,r.useRef)(e),p=function(){switch(f){case ge.Always:return!1;case ge.BeforeDragging:return n;default:return!n}}(),d=(0,o.YN)(p),m=(0,r.useCallback)(function(e){void 0===e&&(e=[]),d.current||l(t=>null===t?e:t.concat(e.filter(e=>!t.includes(e))))},[d]),g=(0,r.useRef)(null),y=(0,o.KG)(t=>{if(p&&!n)return ve;if(!t||t===ve||h.current!==e||null!=s){const t=new Map;for(let n of e){if(!n)continue;if(s&&s.length>0&&!s.includes(n.id)&&n.rect.current){t.set(n.id,n.rect.current);continue}const e=n.node.current,r=e?new K(u(e),e):null;n.rect.current=r,r&&t.set(n.id,r)}return t}return t},[e,s,n,p,u]);return(0,r.useEffect)(()=>{h.current=e},[e]),(0,r.useEffect)(()=>{p||m()},[n,p]),(0,r.useEffect)(()=>{s&&s.length>0&&l(null)},[JSON.stringify(s)]),(0,r.useEffect)(()=>{p||"number"!=typeof c||null!==g.current||(g.current=setTimeout(()=>{m(),g.current=null},c))},[c,p,m,...a]),{droppableRects:y,measureDroppableContainers:m,measuringScheduled:null!=s}}(re,{dragging:I,dependencies:[N.x,N.y],config:ae.droppable}),ce=function(e,t){const n=null!=t?e.get(t):void 0,r=n?n.node.current:null;return(0,o.KG)(e=>{var n;return null==t?null:null!=(n=null!=r?r:e)?n:null},[r,t])}(V,L),ue=(0,r.useMemo)(()=>Q?(0,o.e_)(Q):null,[Q]),fe=function(){const e=!1===(null==J?void 0:J.autoScrollEnabled),t="object"==typeof h?!1===h.enabled:!1===h,n=I&&!e&&!t;return"object"==typeof h?{...h,enabled:n}:{enabled:n}}(),he=function(e,t){return be(e,t)}(ce,ae.draggable.measure);!function(e){let{activeNode:t,measure:n,initialRect:a,config:i=!0}=e;const s=(0,r.useRef)(!1),{x:l,y:c}="boolean"==typeof i?{x:i,y:i}:i;(0,o.Es)(()=>{if(!l&&!c||!t)return void(s.current=!1);if(s.current||!a)return;const e=null==t?void 0:t.node.current;if(!e||!1===e.isConnected)return;const r=O(n(e),a);if(l||(r.x=0),c||(r.y=0),s.current=!0,Math.abs(r.x)>0||Math.abs(r.y)>0){const t=j(e);t&&t.scrollBy({top:r.y,left:r.x})}},[t,l,c,a,n])}({activeNode:null!=L?V.get(L):null,config:fe.layoutShiftCompensation,initialRect:he,measure:ae.draggable.measure});const ye=Se(ce,ae.draggable.measure,he),we=Se(ce?ce.parentElement:null),Me=(0,r.useRef)({activatorEvent:null,active:null,activeNode:ce,collisionRect:null,collisions:null,droppableRects:oe,draggableNodes:V,draggingNode:null,draggingNodeRect:null,droppableContainers:G,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),Te=G.getNodeFor(null==(t=Me.current.over)?void 0:t.id),Ie=function(e){let{measure:t}=e;const[n,a]=(0,r.useState)(null),i=_e({callback:(0,r.useCallback)(e=>{for(const{target:n}of e)if((0,o.sb)(n)){a(e=>{const r=t(n);return e?{...e,width:r.width,height:r.height}:r});break}},[t])}),s=(0,r.useCallback)(e=>{const n=function(e){if(!e)return null;if(e.children.length>1)return e;const t=e.children[0];return(0,o.sb)(t)?t:e}(e);null==i||i.disconnect(),n&&(null==i||i.observe(n)),a(n?t(n):null)},[t,i]),[l,c]=(0,o.lk)(s);return(0,r.useMemo)(()=>({nodeRef:l,rect:n,setRef:c}),[n,l,c])}({measure:ae.dragOverlay.measure}),Be=null!=(n=Ie.nodeRef.current)?n:ce,ze=I?null!=(s=Ie.rect)?s:ye:null,He=Boolean(Ie.nodeRef.current&&Ie.rect),Ge=O(We=He?null:ye,be(We));var We;const Ue=Ce(Be?(0,o.zk)(Be):null),$e=function(e){const t=(0,r.useRef)(e),n=(0,o.KG)(n=>e?n&&n!==xe&&e&&t.current&&e.parentNode===t.current.parentNode?n:R(e):xe,[e]);return(0,r.useEffect)(()=>{t.current=e},[e]),n}(I?null!=Te?Te:ce:null),qe=function(e,t){void 0===t&&(t=D);const[n]=e,a=Ce(n?(0,o.zk)(n):null),[i,s]=(0,r.useState)(Ee);function l(){s(()=>e.length?e.map(e=>H(e)?a:new K(t(e),e)):Ee)}const c=_e({callback:l});return(0,o.Es)(()=>{null==c||c.disconnect(),l(),e.forEach(e=>null==c?void 0:c.observe(e))},[e]),i}($e),Ye=function(e,t){let{transform:n,...r}=t;return null!=e&&e.length?e.reduce((e,t)=>t({transform:e,...r}),n):n}(_,{transform:{x:N.x-Ge.x,y:N.y-Ge.y,scaleX:1,scaleY:1},activatorEvent:Q,active:Y,activeNodeRect:ye,containerNodeRect:we,draggingNodeRect:ze,over:Me.current.over,overlayNodeRect:Ie.rect,scrollableAncestors:$e,scrollableAncestorRects:qe,windowRect:Ue}),Ke=ue?(0,o.WQ)(ue,N):null,Xe=function(e){const[t,n]=(0,r.useState)(null),a=(0,r.useRef)(e),i=(0,r.useCallback)(e=>{const t=F(e.target);t&&n(e=>e?(e.set(t,B(t)),new Map(e)):null)},[]);return(0,r.useEffect)(()=>{const t=a.current;if(e!==t){r(t);const o=e.map(e=>{const t=F(e);return t?(t.addEventListener("scroll",i,{passive:!0}),[t,B(t)]):null}).filter(e=>null!=e);n(o.length?new Map(o):null),a.current=e}return()=>{r(e),r(t)};function r(e){e.forEach(e=>{const t=F(e);null==t||t.removeEventListener("scroll",i)})}},[i,e]),(0,r.useMemo)(()=>e.length?t?Array.from(t.values()).reduce((e,t)=>(0,o.WQ)(e,t),v):q(e):v,[e,t])}($e),Je=ke(Xe),Ze=ke(Xe,[ye]),Qe=(0,o.WQ)(Ye,Je),et=ze?T(ze,Ye):null,tt=Y&&et?y({active:Y,collisionRect:et,droppableRects:oe,droppableContainers:re,pointerCoordinates:Ke}):null,nt=function(e){if(!e||0===e.length)return null;const[t]=e;return t.id}(tt),[rt,at]=(0,r.useState)(null),it=function(e,t,n){return{...e,scaleX:t&&n?t.width/n.width:1,scaleY:t&&n?t.height/n.height:1}}(He?Ye:(0,o.WQ)(Ye,Ze),null!=(l=null==rt?void 0:rt.rect)?l:null,ye),ot=(0,r.useRef)(null),st=(0,r.useCallback)((e,t)=>{let{sensor:n,options:r}=t;if(null==X.current)return;const a=V.get(X.current);if(!a)return;const o=e.nativeEvent,s=new n({active:X.current,activeNode:a,event:o,options:r,context:Me,onAbort(e){if(!V.get(e))return;const{onDragAbort:t}=te.current,n={id:e};null==t||t(n),C({type:"onDragAbort",event:n})},onPending(e,t,n,r){if(!V.get(e))return;const{onDragPending:a}=te.current,i={id:e,constraint:t,initialCoordinates:n,offset:r};null==a||a(i),C({type:"onDragPending",event:i})},onStart(e){const t=X.current;if(null==t)return;const n=V.get(t);if(!n)return;const{onDragStart:r}=te.current,a={activatorEvent:o,active:{id:t,data:n.data,rect:$}};(0,i.unstable_batchedUpdates)(()=>{null==r||r(a),M(Ne.Initializing),k({type:d.DragStart,initialCoordinates:e,active:t}),C({type:"onDragStart",event:a}),Z(ot.current),ee(o)})},onMove(e){k({type:d.DragMove,coordinates:e})},onEnd:l(d.DragEnd),onCancel:l(d.DragCancel)});function l(e){return async function(){const{active:t,collisions:n,over:r,scrollAdjustedTranslate:a}=Me.current;let s=null;if(t&&a){const{cancelDrop:i}=te.current;s={activatorEvent:o,active:t,collisions:n,delta:a,over:r},e===d.DragEnd&&"function"==typeof i&&await Promise.resolve(i(s))&&(e=d.DragCancel)}X.current=null,(0,i.unstable_batchedUpdates)(()=>{k({type:e}),M(Ne.Uninitialized),at(null),Z(null),ee(null),ot.current=null;const t=e===d.DragEnd?"onDragEnd":"onDragCancel";if(s){const e=te.current[t];null==e||e(s),C({type:t,event:s})}})}}ot.current=s},[V]),lt=(0,r.useCallback)((e,t)=>(n,r)=>{const a=n.nativeEvent,i=V.get(r);if(null!==X.current||!i||a.dndKit||a.defaultPrevented)return;const o={active:i};!0===e(n,t.options,o)&&(a.dndKit={capturedBy:t.sensor},X.current=r,st(n,t))},[V,st]),ct=function(e,t){return(0,r.useMemo)(()=>e.reduce((e,n)=>{const{sensor:r}=n;return[...e,...r.activators.map(e=>({eventName:e.eventName,handler:t(e.handler,n)}))]},[]),[e,t])}(g,lt);!function(e){(0,r.useEffect)(()=>{if(!o.Sw)return;const t=e.map(e=>{let{sensor:t}=e;return null==t.setup?void 0:t.setup()});return()=>{for(const e of t)null==e||e()}},e.map(e=>{let{sensor:t}=e;return t}))}(g),(0,o.Es)(()=>{ye&&A===Ne.Initializing&&M(Ne.Initialized)},[ye,A]),(0,r.useEffect)(()=>{const{onDragMove:e}=te.current,{active:t,activatorEvent:n,collisions:r,over:a}=Me.current;if(!t||!n)return;const o={active:t,activatorEvent:n,collisions:r,delta:{x:Qe.x,y:Qe.y},over:a};(0,i.unstable_batchedUpdates)(()=>{null==e||e(o),C({type:"onDragMove",event:o})})},[Qe.x,Qe.y]),(0,r.useEffect)(()=>{const{active:e,activatorEvent:t,collisions:n,droppableContainers:r,scrollAdjustedTranslate:a}=Me.current;if(!e||null==X.current||!t||!a)return;const{onDragOver:o}=te.current,s=r.get(nt),l=s&&s.rect.current?{id:s.id,rect:s.rect.current,data:s.data,disabled:s.disabled}:null,c={active:e,activatorEvent:t,collisions:n,delta:{x:a.x,y:a.y},over:l};(0,i.unstable_batchedUpdates)(()=>{at(l),null==o||o(c),C({type:"onDragOver",event:c})})},[nt]),(0,o.Es)(()=>{Me.current={activatorEvent:Q,active:Y,activeNode:ce,collisionRect:et,collisions:tt,droppableRects:oe,draggableNodes:V,draggingNode:Be,draggingNodeRect:ze,droppableContainers:G,over:rt,scrollableAncestors:$e,scrollAdjustedTranslate:Qe},$.current={initial:ze,translated:et}},[Y,ce,tt,et,V,Be,ze,oe,G,rt,$e,Qe]),function(e){let{acceleration:t,activator:n=pe.Pointer,canScroll:a,draggingRect:i,enabled:s,interval:l=5,order:c=de.TreeOrder,pointerCoordinates:u,scrollableAncestors:f,scrollableAncestorRects:h,delta:p,threshold:d}=e;const m=function(e){let{delta:t,disabled:n}=e;const r=(0,o.ZC)(t);return(0,o.KG)(e=>{if(n||!r||!e)return me;const a=Math.sign(t.x-r.x),i=Math.sign(t.y-r.y);return{x:{[z.Backward]:e.x[z.Backward]||-1===a,[z.Forward]:e.x[z.Forward]||1===a},y:{[z.Backward]:e.y[z.Backward]||-1===i,[z.Forward]:e.y[z.Forward]||1===i}}},[n,t,r])}({delta:p,disabled:!s}),[g,y]=(0,o.$$)(),v=(0,r.useRef)({x:0,y:0}),b=(0,r.useRef)({x:0,y:0}),_=(0,r.useMemo)(()=>{switch(n){case pe.Pointer:return u?{top:u.y,bottom:u.y,left:u.x,right:u.x}:null;case pe.DraggableRect:return i}},[n,i,u]),w=(0,r.useRef)(null),S=(0,r.useCallback)(()=>{const e=w.current;if(!e)return;const t=v.current.x*b.current.x,n=v.current.y*b.current.y;e.scrollBy(t,n)},[]),x=(0,r.useMemo)(()=>c===de.TreeOrder?[...f].reverse():f,[c,f]);(0,r.useEffect)(()=>{if(s&&f.length&&_){for(const e of x){if(!1===(null==a?void 0:a(e)))continue;const n=f.indexOf(e),r=h[n];if(!r)continue;const{direction:i,speed:o}=U(e,r,_,t,d);for(const e of["x","y"])m[e][i[e]]||(o[e]=0,i[e]=0);if(o.x>0||o.y>0)return y(),w.current=e,g(S,l),v.current=o,void(b.current=i)}v.current={x:0,y:0},b.current={x:0,y:0},y()}else y()},[t,S,a,y,s,l,JSON.stringify(_),JSON.stringify(m),g,f,x,h,JSON.stringify(d)])}({...fe,delta:N,draggingRect:et,pointerCoordinates:Ke,scrollableAncestors:$e,scrollableAncestorRects:qe});const ut=(0,r.useMemo)(()=>({active:Y,activeNode:ce,activeNodeRect:ye,activatorEvent:Q,collisions:tt,containerNodeRect:we,dragOverlay:Ie,draggableNodes:V,droppableContainers:G,droppableRects:oe,over:rt,measureDroppableContainers:se,scrollableAncestors:$e,scrollableAncestorRects:qe,measuringConfiguration:ae,measuringScheduled:le,windowRect:Ue}),[Y,ce,ye,Q,tt,we,Ie,V,G,oe,rt,se,$e,qe,ae,le,Ue]),ft=(0,r.useMemo)(()=>({activatorEvent:Q,activators:ct,active:Y,activeNodeRect:ye,ariaDescribedById:{draggable:ne},dispatch:k,draggableNodes:V,over:rt,measureDroppableContainers:se}),[Q,ct,Y,ye,k,ne,V,rt,se]);return a().createElement(u.Provider,{value:P},a().createElement(De.Provider,{value:ft},a().createElement(Le.Provider,{value:ut},a().createElement(Ve.Provider,{value:it},m)),a().createElement(Fe,{disabled:!1===(null==f?void 0:f.restoreFocus)})),a().createElement(p,{...f,hiddenTextDescribedById:ne}))}),ze=(0,r.createContext)(null),He="button";function Ge(e){let{id:t,data:n,disabled:a=!1,attributes:i}=e;const s=(0,o.YG)("Draggable"),{activators:l,activatorEvent:c,active:u,activeNodeRect:f,ariaDescribedById:h,draggableNodes:p,over:d}=(0,r.useContext)(De),{role:m=He,roleDescription:g="draggable",tabIndex:y=0}=null!=i?i:{},v=(null==u?void 0:u.id)===t,b=(0,r.useContext)(v?Ve:ze),[_,w]=(0,o.lk)(),[S,x]=(0,o.lk)(),k=function(e,t){return(0,r.useMemo)(()=>e.reduce((e,n)=>{let{eventName:r,handler:a}=n;return e[r]=e=>{a(e,t)},e},{}),[e,t])}(l,t),C=(0,o.YN)(n);return(0,o.Es)(()=>(p.set(t,{id:t,key:s,node:_,activatorNode:S,data:C}),()=>{const e=p.get(t);e&&e.key===s&&p.delete(t)}),[p,t]),{active:u,activatorEvent:c,activeNodeRect:f,attributes:(0,r.useMemo)(()=>({role:m,tabIndex:y,"aria-disabled":a,"aria-pressed":!(!v||m!==He)||void 0,"aria-roledescription":g,"aria-describedby":h.draggable}),[a,m,y,v,g,h.draggable]),isDragging:v,listeners:a?void 0:k,node:_,over:d,setNodeRef:w,setActivatorNodeRef:x,transform:b}}function We(){return(0,r.useContext)(Le)}const Ue={timeout:25};function $e(e){let{data:t,disabled:n=!1,id:a,resizeObserverConfig:i}=e;const s=(0,o.YG)("Droppable"),{active:l,dispatch:c,over:u,measureDroppableContainers:f}=(0,r.useContext)(De),h=(0,r.useRef)({disabled:n}),p=(0,r.useRef)(!1),m=(0,r.useRef)(null),g=(0,r.useRef)(null),{disabled:y,updateMeasurementsFor:v,timeout:b}={...Ue,...i},_=(0,o.YN)(null!=v?v:a),w=_e({callback:(0,r.useCallback)(()=>{p.current?(null!=g.current&&clearTimeout(g.current),g.current=setTimeout(()=>{f(Array.isArray(_.current)?_.current:[_.current]),g.current=null},b)):p.current=!0},[b]),disabled:y||!l}),S=(0,r.useCallback)((e,t)=>{w&&(t&&(w.unobserve(t),p.current=!1),e&&w.observe(e))},[w]),[x,k]=(0,o.lk)(S),C=(0,o.YN)(t);return(0,r.useEffect)(()=>{w&&x.current&&(w.disconnect(),p.current=!1,w.observe(x.current))},[x,w]),(0,r.useEffect)(()=>(c({type:d.RegisterDroppable,element:{id:a,key:s,disabled:n,node:x,rect:m,data:C}}),()=>c({type:d.UnregisterDroppable,key:s,id:a})),[a]),(0,r.useEffect)(()=>{n!==h.current.disabled&&(c({type:d.SetDroppableDisabled,id:a,key:s,disabled:n}),h.current.disabled=n)},[a,s,n,c]),{active:l,rect:m,isOver:(null==u?void 0:u.id)===a,node:x,over:u,setNodeRef:k}}},61677(e,t,n){"use strict";n.d(t,{_G:()=>h,be:()=>s,gB:()=>m,gl:()=>S});var r=n(51609),a=n.n(r),i=n(93101),o=n(46189);function s(e,t,n){const r=e.slice();return r.splice(n<0?r.length+n:n,0,r.splice(t,1)[0]),r}function l(e,t){return e.reduce((e,n,r)=>{const a=t.get(n);return a&&(e[r]=a),e},Array(e.length))}function c(e){return null!==e&&e>=0}const u=e=>{let{rects:t,activeIndex:n,overIndex:r,index:a}=e;const i=s(t,r,n),o=t[a],l=i[a];return l&&o?{x:l.left-o.left,y:l.top-o.top,scaleX:l.width/o.width,scaleY:l.height/o.height}:null},f=2690==n.j?{scaleX:1,scaleY:1}:null,h=e=>{var t;let{activeIndex:n,activeNodeRect:r,index:a,rects:i,overIndex:o}=e;const s=null!=(t=i[n])?t:r;if(!s)return null;if(a===n){const e=i[o];return e?{x:0,y:n<o?e.top+e.height-(s.top+s.height):e.top-s.top,...f}:null}const l=function(e,t,n){const r=e[t],a=e[t-1],i=e[t+1];return r?n<t?a?r.top-(a.top+a.height):i?i.top-(r.top+r.height):0:i?i.top-(r.top+r.height):a?r.top-(a.top+a.height):0:0}(i,a,n);return a>n&&a<=o?{x:0,y:-s.height-l,...f}:a<n&&a>=o?{x:0,y:s.height+l,...f}:{x:0,y:0,...f}},p="Sortable",d=2690==n.j?a().createContext({activeIndex:-1,containerId:p,disableTransforms:!1,items:[],overIndex:-1,useDragOverlay:!1,sortedRects:[],strategy:u,disabled:{draggable:!1,droppable:!1}}):null;function m(e){let{children:t,id:n,items:s,strategy:c=u,disabled:f=!1}=e;const{active:h,dragOverlay:m,droppableRects:g,over:y,measureDroppableContainers:v}=(0,i.fF)(),b=(0,o.YG)(p,n),_=Boolean(null!==m.rect),w=(0,r.useMemo)(()=>s.map(e=>"object"==typeof e&&"id"in e?e.id:e),[s]),S=null!=h,x=h?w.indexOf(h.id):-1,k=y?w.indexOf(y.id):-1,C=(0,r.useRef)(w),E=!function(e,t){if(e===t)return!0;if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}(w,C.current),P=-1!==k&&-1===x||E,A=function(e){return"boolean"==typeof e?{draggable:e,droppable:e}:e}(f);(0,o.Es)(()=>{E&&S&&v(w)},[E,w,S,v]),(0,r.useEffect)(()=>{C.current=w},[w]);const O=(0,r.useMemo)(()=>({activeIndex:x,containerId:b,disabled:A,disableTransforms:P,items:w,overIndex:k,useDragOverlay:_,sortedRects:l(w,g),strategy:c}),[x,b,A.draggable,A.droppable,P,w,k,g,_,c]);return a().createElement(d.Provider,{value:O},t)}const g=e=>{let{id:t,items:n,activeIndex:r,overIndex:a}=e;return s(n,r,a).indexOf(t)},y=e=>{let{containerId:t,isSorting:n,wasDragging:r,index:a,items:i,newIndex:o,previousItems:s,previousContainerId:l,transition:c}=e;return!(!c||!r||s!==i&&a===o||!n&&(o===a||t!==l))},v=2690==n.j?{duration:200,easing:"ease"}:null,b="transform",_=2690==n.j?o.Ks.Transition.toString({property:b,duration:0,easing:"linear"}):null,w=2690==n.j?{roleDescription:"sortable"}:null;function S(e){let{animateLayoutChanges:t=y,attributes:n,disabled:a,data:s,getNewIndex:l=g,id:u,strategy:f,resizeObserverConfig:h,transition:p=v}=e;const{items:m,containerId:S,activeIndex:x,disabled:k,disableTransforms:C,sortedRects:E,overIndex:P,useDragOverlay:A,strategy:O}=(0,r.useContext)(d),M=function(e,t){var n,r;return"boolean"==typeof e?{draggable:e,droppable:!1}:{draggable:null!=(n=null==e?void 0:e.draggable)?n:t.draggable,droppable:null!=(r=null==e?void 0:e.droppable)?r:t.droppable}}(a,k),T=m.indexOf(u),I=(0,r.useMemo)(()=>({sortable:{containerId:S,index:T,items:m},...s}),[S,s,T,m]),D=(0,r.useMemo)(()=>m.slice(m.indexOf(u)),[m,u]),{rect:L,node:R,isOver:j,setNodeRef:F}=(0,i.zM)({id:u,data:I,disabled:M.droppable,resizeObserverConfig:{updateMeasurementsFor:D,...h}}),{active:V,activatorEvent:N,activeNodeRect:B,attributes:z,setNodeRef:H,listeners:G,isDragging:W,over:U,setActivatorNodeRef:$,transform:q}=(0,i.PM)({id:u,data:I,attributes:{...w,...n},disabled:M.draggable}),Y=(0,o.jn)(F,H),K=Boolean(V),X=K&&!C&&c(x)&&c(P),J=!A&&W,Z=J&&X?q:null,Q=X?null!=Z?Z:(null!=f?f:O)({rects:E,activeNodeRect:B,activeIndex:x,overIndex:P,index:T}):null,ee=c(x)&&c(P)?l({id:u,items:m,activeIndex:x,overIndex:P}):T,te=null==V?void 0:V.id,ne=(0,r.useRef)({activeId:te,items:m,newIndex:ee,containerId:S}),re=m!==ne.current.items,ae=t({active:V,containerId:S,isDragging:W,isSorting:K,id:u,index:T,items:m,newIndex:ne.current.newIndex,previousItems:ne.current.items,previousContainerId:ne.current.containerId,transition:p,wasDragging:null!=ne.current.activeId}),ie=function(e){let{disabled:t,index:n,node:a,rect:s}=e;const[l,c]=(0,r.useState)(null),u=(0,r.useRef)(n);return(0,o.Es)(()=>{if(!t&&n!==u.current&&a.current){const e=s.current;if(e){const t=(0,i.Sj)(a.current,{ignoreTransform:!0}),n={x:e.left-t.left,y:e.top-t.top,scaleX:e.width/t.width,scaleY:e.height/t.height};(n.x||n.y)&&c(n)}}n!==u.current&&(u.current=n)},[t,n,a,s]),(0,r.useEffect)(()=>{l&&c(null)},[l]),l}({disabled:!ae,index:T,node:R,rect:L});return(0,r.useEffect)(()=>{K&&ne.current.newIndex!==ee&&(ne.current.newIndex=ee),S!==ne.current.containerId&&(ne.current.containerId=S),m!==ne.current.items&&(ne.current.items=m)},[K,ee,S,m]),(0,r.useEffect)(()=>{if(te===ne.current.activeId)return;if(te&&!ne.current.activeId)return void(ne.current.activeId=te);const e=setTimeout(()=>{ne.current.activeId=te},50);return()=>clearTimeout(e)},[te]),{active:V,activeIndex:x,attributes:z,data:I,rect:L,index:T,newIndex:ee,items:m,isOver:j,isSorting:K,isDragging:W,listeners:G,node:R,overIndex:P,over:U,setNodeRef:Y,setActivatorNodeRef:$,setDroppableNodeRef:F,setDraggableNodeRef:H,transform:null!=ie?ie:Q,transition:ie||re&&ne.current.newIndex===T?_:J&&!(0,o.kx)(N)||!p?void 0:K||ae?o.Ks.Transition.toString({...p,property:b}):void 0}}i.vL.Down,i.vL.Right,i.vL.Up,i.vL.Left},46189(e,t,n){"use strict";n.d(t,{$$:()=>m,Es:()=>p,KG:()=>y,Ks:()=>P,Ll:()=>s,Re:()=>k,Sw:()=>i,TW:()=>h,WQ:()=>x,YG:()=>w,YN:()=>g,ZC:()=>b,_q:()=>d,ag:()=>O,e_:()=>E,jn:()=>a,kx:()=>C,l6:()=>o,lk:()=>v,sb:()=>u,wz:()=>c,xZ:()=>f,zk:()=>l});var r=n(51609);function a(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return(0,r.useMemo)(()=>e=>{t.forEach(t=>t(e))},t)}const i="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement;function o(e){const t=Object.prototype.toString.call(e);return"[object Window]"===t||"[object global]"===t}function s(e){return"nodeType"in e}function l(e){var t,n;return e?o(e)?e:s(e)&&null!=(t=null==(n=e.ownerDocument)?void 0:n.defaultView)?t:window:window}function c(e){const{Document:t}=l(e);return e instanceof t}function u(e){return!o(e)&&e instanceof l(e).HTMLElement}function f(e){return e instanceof l(e).SVGElement}function h(e){return e?o(e)?e.document:s(e)?c(e)?e:u(e)||f(e)?e.ownerDocument:document:document:document}const p=2690==n.j?i?r.useLayoutEffect:r.useEffect:null;function d(e){const t=(0,r.useRef)(e);return p(()=>{t.current=e}),(0,r.useCallback)(function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return null==t.current?void 0:t.current(...n)},[])}function m(){const e=(0,r.useRef)(null);return[(0,r.useCallback)((t,n)=>{e.current=setInterval(t,n)},[]),(0,r.useCallback)(()=>{null!==e.current&&(clearInterval(e.current),e.current=null)},[])]}function g(e,t){void 0===t&&(t=[e]);const n=(0,r.useRef)(e);return p(()=>{n.current!==e&&(n.current=e)},t),n}function y(e,t){const n=(0,r.useRef)();return(0,r.useMemo)(()=>{const t=e(n.current);return n.current=t,t},[...t])}function v(e){const t=d(e),n=(0,r.useRef)(null),a=(0,r.useCallback)(e=>{e!==n.current&&(null==t||t(e,n.current)),n.current=e},[]);return[n,a]}function b(e){const t=(0,r.useRef)();return(0,r.useEffect)(()=>{t.current=e},[e]),t.current}let _=2690==n.j?{}:null;function w(e,t){return(0,r.useMemo)(()=>{if(t)return t;const n=null==_[e]?0:_[e]+1;return _[e]=n,e+"-"+n},[e,t])}function S(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),a=1;a<n;a++)r[a-1]=arguments[a];return r.reduce((t,n)=>{const r=Object.entries(n);for(const[n,a]of r){const r=t[n];null!=r&&(t[n]=r+e*a)}return t},{...t})}}const x=2690==n.j?S(1):null,k=2690==n.j?S(-1):null;function C(e){if(!e)return!1;const{KeyboardEvent:t}=l(e.target);return t&&e instanceof t}function E(e){if(function(e){if(!e)return!1;const{TouchEvent:t}=l(e.target);return t&&e instanceof t}(e)){if(e.touches&&e.touches.length){const{clientX:t,clientY:n}=e.touches[0];return{x:t,y:n}}if(e.changedTouches&&e.changedTouches.length){const{clientX:t,clientY:n}=e.changedTouches[0];return{x:t,y:n}}}return function(e){return"clientX"in e&&"clientY"in e}(e)?{x:e.clientX,y:e.clientY}:null}const P=2690==n.j?Object.freeze({Translate:{toString(e){if(!e)return;const{x:t,y:n}=e;return"translate3d("+(t?Math.round(t):0)+"px, "+(n?Math.round(n):0)+"px, 0)"}},Scale:{toString(e){if(!e)return;const{scaleX:t,scaleY:n}=e;return"scaleX("+t+") scaleY("+n+")"}},Transform:{toString(e){if(e)return[P.Translate.toString(e),P.Scale.toString(e)].join(" ")}},Transition:{toString(e){let{property:t,duration:n,easing:r}=e;return t+" "+n+"ms "+r}}}):null,A="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";function O(e){return e.matches(A)?e:e.querySelector(A)}},83859(e,t,n){"use strict";function r(e){for(var t,n=0,r=0,a=e.length;a>=4;++r,a-=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(a){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)}n.d(t,{A:()=>r})},18643(e,t,n){"use strict";function r(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}n.d(t,{A:()=>r})},50219(e,t,n){"use strict";n.d(t,{AH:()=>I,Y:()=>T,i7:()=>D});var r=n(51609),a=n(71609),i=n(48114),o=n(89499),s=n(76658),l=n(89687),c=n(81139),u=n(96088),f=function(e,t,n){for(var r=0,a=0;r=a,a=(0,i.se)(),38===r&&12===a&&(t[n]=1),!(0,i.Sh)(a);)(0,i.K2)();return(0,i.di)(e,i.G1)},h=new WeakMap,p=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){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)||h.get(n))&&!r){h.set(e,!0);for(var a=[],s=function(e,t){return(0,i.VF)(function(e,t){var n=-1,r=44;do{switch((0,i.Sh)(r)){case 0:38===r&&12===(0,i.se)()&&(t[n]=1),e[n]+=f(i.G1-1,t,n);break;case 2:e[n]+=(0,i.Tb)(r);break;case 4:if(44===r){e[++n]=58===(0,i.se)()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=(0,o.HT)(r)}}while(r=(0,i.K2)());return e}((0,i.c4)(e),t))}(t,a),l=n.props,c=0,u=0;c<s.length;c++)for(var p=0;p<l.length;p++,u++)e.props[u]=a[c]?s[c].replace(/&\f/g,l[p]):l[p]+" "+s[c]}}},d=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function m(e,t){switch((0,o.tW)(e,t)){case 5103:return s.j+"print-"+e+e;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 s.j+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return s.j+e+s.vd+e+s.MS+e+e;case 6828:case 4268:return s.j+e+s.MS+e+e;case 6165:return s.j+e+s.MS+"flex-"+e+e;case 5187:return s.j+e+(0,o.HC)(e,/(\w+).+(:[^]+)/,s.j+"box-$1$2"+s.MS+"flex-$1$2")+e;case 5443:return s.j+e+s.MS+"flex-item-"+(0,o.HC)(e,/flex-|-self/,"")+e;case 4675:return s.j+e+s.MS+"flex-line-pack"+(0,o.HC)(e,/align-content|flex-|-self/,"")+e;case 5548:return s.j+e+s.MS+(0,o.HC)(e,"shrink","negative")+e;case 5292:return s.j+e+s.MS+(0,o.HC)(e,"basis","preferred-size")+e;case 6060:return s.j+"box-"+(0,o.HC)(e,"-grow","")+s.j+e+s.MS+(0,o.HC)(e,"grow","positive")+e;case 4554:return s.j+(0,o.HC)(e,/([^-])(transform)/g,"$1"+s.j+"$2")+e;case 6187:return(0,o.HC)((0,o.HC)((0,o.HC)(e,/(zoom-|grab)/,s.j+"$1"),/(image-set)/,s.j+"$1"),e,"")+e;case 5495:case 3959:return(0,o.HC)(e,/(image-set\([^]*)/,s.j+"$1$`$1");case 4968:return(0,o.HC)((0,o.HC)(e,/(.+:)(flex-)?(.*)/,s.j+"box-pack:$3"+s.MS+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+s.j+e+e;case 4095:case 3583:case 4068:case 2532:return(0,o.HC)(e,/(.+)-inline(.+)/,s.j+"$1$2")+e;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((0,o.b2)(e)-1-t>6)switch((0,o.wN)(e,t+1)){case 109:if(45!==(0,o.wN)(e,t+4))break;case 102:return(0,o.HC)(e,/(.+:)(.+)-([^]+)/,"$1"+s.j+"$2-$3$1"+s.vd+(108==(0,o.wN)(e,t+3)?"$3":"$2-$3"))+e;case 115:return~(0,o.K5)(e,"stretch")?m((0,o.HC)(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==(0,o.wN)(e,t+1))break;case 6444:switch((0,o.wN)(e,(0,o.b2)(e)-3-(~(0,o.K5)(e,"!important")&&10))){case 107:return(0,o.HC)(e,":",":"+s.j)+e;case 101:return(0,o.HC)(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+s.j+(45===(0,o.wN)(e,14)?"inline-":"")+"box$3$1"+s.j+"$2$3$1"+s.MS+"$2box$3")+e}break;case 5936:switch((0,o.wN)(e,t+11)){case 114:return s.j+e+s.MS+(0,o.HC)(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return s.j+e+s.MS+(0,o.HC)(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return s.j+e+s.MS+(0,o.HC)(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return s.j+e+s.MS+e+e}return e}var g,y,v=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case s.LU:e.return=m(e.value,e.length);break;case s.Sv:return(0,l.l)([(0,i.C)(e,{value:(0,o.HC)(e.value,"@","@"+s.j)})],r);case s.XZ:if(e.length)return(0,o.kg)(e.props,function(t){switch((0,o.YW)(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return(0,l.l)([(0,i.C)(e,{props:[(0,o.HC)(t,/:(read-\w+)/,":"+s.vd+"$1")]})],r);case"::placeholder":return(0,l.l)([(0,i.C)(e,{props:[(0,o.HC)(t,/:(plac\w+)/,":"+s.j+"input-$1")]}),(0,i.C)(e,{props:[(0,o.HC)(t,/:(plac\w+)/,":"+s.vd+"$1")]}),(0,i.C)(e,{props:[(0,o.HC)(t,/:(plac\w+)/,s.MS+"input-$1")]})],r)}return""})}}],b=function(e){var t=e.key;if("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,i,o=e.stylisPlugins||v,s={},f=[];r=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;f.push(e)});var h,m=[p,d],g=[l.A,(0,c.MY)(function(e){h.insert(e)})],y=(0,c.r1)(m.concat(o,g));i=function(e,t,n,r){var a;h=n,a=e?e+"{"+t.styles+"}":t.styles,(0,l.l)((0,u.wE)(a),y),r&&(b.inserted[t.name]=!0)};var b={key:t,sheet:new a.v({key:t,container:r,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:s,registered:{},insert:i};return b.sheet.hydrate(f),b},_=n(68567),w=n(28071),S=!!r.useInsertionEffect&&r.useInsertionEffect,x=S||function(e){return e()},k=(S||r.useLayoutEffect,r.createContext("undefined"!=typeof HTMLElement?b({key:"css"}):null)),C=(k.Provider,function(e){return(0,r.forwardRef)(function(t,n){var a=(0,r.useContext)(k);return e(t,a,n)})}),E=r.createContext({}),P={}.hasOwnProperty,A="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",O=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return(0,_.SF)(t,n,r),x(function(){return(0,_.sk)(t,n,r)}),null},M=C(function(e,t,n){var a=e.css;"string"==typeof a&&void 0!==t.registered[a]&&(a=t.registered[a]);var i=e[A],o=[a],s="";"string"==typeof e.className?s=(0,_.Rk)(t.registered,o,e.className):null!=e.className&&(s=e.className+" ");var l=(0,w.J)(o,void 0,r.useContext(E));s+=t.key+"-"+l.name;var c={};for(var u in e)P.call(e,u)&&"css"!==u&&u!==A&&(c[u]=e[u]);return c.className=s,n&&(c.ref=n),r.createElement(r.Fragment,null,r.createElement(O,{cache:t,serialized:l,isStringTag:"string"==typeof i}),r.createElement(i,c))}),T=(n(5684),function(e,t){var n=arguments;if(null==t||!P.call(t,"css"))return r.createElement.apply(void 0,n);var a=n.length,i=new Array(a);i[0]=M,i[1]=function(e,t){var n={};for(var r in t)P.call(t,r)&&(n[r]=t[r]);return n[A]=e,n}(e,t);for(var o=2;o<a;o++)i[o]=n[o];return r.createElement.apply(null,i)});function I(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return(0,w.J)(t)}function D(){var e=I.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}g=T||(T={}),y||(y=g.JSX||(g.JSX={}))},28071(e,t,n){"use strict";if(n.d(t,{J:()=>m}),2690==n.j)var r=n(83859);if(2690==n.j)var a=n(32379);if(2690==n.j)var i=n(18643);var o=/[A-Z]|^ms/g,s=/_EMO_([^_]+?)_([^]*?)_EMO_/g,l=function(e){return 45===e.charCodeAt(1)},c=function(e){return null!=e&&"boolean"!=typeof e},u=2690==n.j?(0,i.A)(function(e){return l(e)?e:e.replace(o,"-$&").toLowerCase()}):null,f=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(s,function(e,t,n){return p={name:t,styles:n,next:p},t})}return 1===a.A[e]||l(e)||"number"!=typeof t||0===t?t:t+"px"};function h(e,t,n){if(null==n)return"";var r=n;if(void 0!==r.__emotion_styles)return r;switch(typeof n){case"boolean":return"";case"object":var a=n;if(1===a.anim)return p={name:a.name,styles:a.styles,next:p},a.name;var i=n;if(void 0!==i.styles){var o=i.next;if(void 0!==o)for(;void 0!==o;)p={name:o.name,styles:o.styles,next:p},o=o.next;return i.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var a=0;a<n.length;a++)r+=h(e,t,n[a])+";";else for(var i in n){var o=n[i];if("object"!=typeof o){var s=o;null!=t&&void 0!==t[s]?r+=i+"{"+t[s]+"}":c(s)&&(r+=u(i)+":"+f(i,s)+";")}else if(!Array.isArray(o)||"string"!=typeof o[0]||null!=t&&void 0!==t[o[0]]){var l=h(e,t,o);switch(i){case"animation":case"animationName":r+=u(i)+":"+l+";";break;default:r+=i+"{"+l+"}"}}else for(var p=0;p<o.length;p++)c(o[p])&&(r+=u(i)+":"+f(i,o[p])+";")}return r}(e,t,n);case"function":if(void 0!==e){var s=p,l=n(e);return p=s,h(e,t,l)}}var d=n;if(null==t)return d;var m=t[d];return void 0!==m?m:d}n.j;var p,d=/label:\s*([^\s;{]+)\s*(;|$)/g;function m(e,t,n){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var a=!0,i="";p=void 0;var o=e[0];null==o||void 0===o.raw?(a=!1,i+=h(n,t,o)):i+=o[0];for(var s=1;s<e.length;s++)i+=h(n,t,e[s]),a&&(i+=o[s]);d.lastIndex=0;for(var l,c="";null!==(l=d.exec(i));)c+="-"+l[1];return{name:(0,r.A)(i)+c,styles:i,next:p}}},71609(e,t,n){"use strict";n.d(t,{v:()=>r});var r=2690==n.j?function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling: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||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,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(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=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]}(t);try{n.insertRule(e,n.cssRules.length)}catch(e){}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach(function(e){var t;return null==(t=e.parentNode)?void 0:t.removeChild(e)}),this.tags=[],this.ctr=0},e}():null},32379(e,t,n){"use strict";n.d(t,{A:()=>r});var r=2690==n.j?{animationIterationCount:1,aspectRatio: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,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale: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}:null},68567(e,t,n){"use strict";function r(e,t,n){var r="";return n.split(" ").forEach(function(n){void 0!==e[n]?t.push(e[n]+";"):n&&(r+=n+" ")}),r}n.d(t,{Rk:()=>r,SF:()=>a,sk:()=>i});var a=function(e,t,n){var r=e.key+"-"+t.name;!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles)},i=function(e,t,n){a(e,t,n);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var i=t;do{e.insert(t===i?"."+r:"",i,e.sheet,!0),i=i.next}while(void 0!==i)}}},61281(e,t,n){"use strict";function r(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 a(e,t,n){return(t=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 new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function i(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 o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?i(Object(n),!0).forEach(function(t){a(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function s(e,t){if(null==e)return{};var n,r,a=function(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}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}function l(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,a,i,o,s=[],l=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t);else for(;!(l=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){c=!0,a=e}finally{try{if(!l&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(c)throw a}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return r(e,t);var n={}.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)?r(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}n.d(t,{$i:()=>s,T1:()=>o,zC:()=>l})},32357(e,t,n){"use strict";n.d(t,{A:()=>r});var r=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){return t.reduceRight(function(e,t){return t(e)},e)}}},80019(e,t,n){"use strict";if(n.d(t,{A:()=>a}),2690==n.j)var r=n(61281);function a(e,t){return Object.keys(t).forEach(function(n){t[n]instanceof Object&&e[n]&&Object.assign(t[n],a(e[n],t[n]))}),(0,r.T1)((0,r.T1)({},e),t)}},82078(e,t,n){"use strict";function r(e){return{}.toString.call(e).includes("Object")}n.d(t,{A:()=>r})},24297(e,t,n){"use strict";n.d(t,{A:()=>a});var r=2690==n.j?{type:"cancelation",msg:"operation is manually canceled"}:null;function a(e){var t=!1,n=new Promise(function(n,a){e.then(function(e){return t?a(r):n(e)}),e.catch(a)});return n.cancel=function(){return t=!0},n}},41727(e,t,n){"use strict";n.d(t,{A:()=>o});var r=n(51609),a=n(5573);const i=(0,r.createElement)(a.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,r.createElement)(a.Path,{d:"M18 20v-2h2v-1.5H7.75a.25.25 0 0 1-.25-.25V4H6v2H4v1.5h2v8.75c0 .966.784 1.75 1.75 1.75h8.75v2H18ZM9.273 7.5h6.977a.25.25 0 0 1 .25.25v6.977H18V7.75A1.75 1.75 0 0 0 16.25 6H9.273v1.5Z"})),o=2690==n.j?i:null},52528(e,t,n){"use strict";n.d(t,{A:()=>o});var r=n(51609),a=n(5573);const i=(0,r.createElement)(a.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,r.createElement)(a.Path,{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zM5 4.5h14c.3 0 .5.2.5.5v8.4l-3-2.9c-.3-.3-.8-.3-1 0L11.9 14 9 12c-.3-.2-.6-.2-.8 0l-3.6 2.6V5c-.1-.3.1-.5.4-.5zm14 15H5c-.3 0-.5-.2-.5-.5v-2.4l4.1-3 3 1.9c.3.2.7.2.9-.1L16 12l3.5 3.4V19c0 .3-.2.5-.5.5z"})),o=2690==n.j?i:null},99763(e,t,n){"use strict";n.d(t,{A:()=>o});var r=n(51609),a=n(5573);const i=(0,r.createElement)(a.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,r.createElement)(a.Path,{d:"M13 19h-2v-2h2v2zm0-6h-2v-2h2v2zm0-6h-2V5h2v2z"})),o=2690==n.j?i:null},83373(e,t,n){"use strict";n.d(t,{A:()=>o});var r=n(51609),a=n(5573);const i=(0,r.createElement)(a.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,r.createElement)(a.Path,{d:"M11 12.5V17.5H12.5V12.5H17.5V11H12.5V6H11V11H6V12.5H11Z"})),o=2690==n.j?i:null},3363(e,t,n){"use strict";n.d(t,{A:()=>o});var r=n(51609),a=n(5573);const i=(0,r.createElement)(a.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,r.createElement)(a.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M12 5.5A2.25 2.25 0 0 0 9.878 7h4.244A2.251 2.251 0 0 0 12 5.5ZM12 4a3.751 3.751 0 0 0-3.675 3H5v1.5h1.27l.818 8.997a2.75 2.75 0 0 0 2.739 2.501h4.347a2.75 2.75 0 0 0 2.738-2.5L17.73 8.5H19V7h-3.325A3.751 3.751 0 0 0 12 4Zm4.224 4.5H7.776l.806 8.861a1.25 1.25 0 0 0 1.245 1.137h4.347a1.25 1.25 0 0 0 1.245-1.137l.805-8.861Z"})),o=2690==n.j?i:null},28860(e,t,n){"use strict";n.d(t,{A:()=>o});var r=n(51609),a=n(5573);const i=(0,r.createElement)(a.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,r.createElement)(a.Path,{d:"m11.3 17.2-5-5c-.1-.1-.1-.3 0-.4l2.3-2.3-1.1-1-2.3 2.3c-.7.7-.7 1.8 0 2.5l5 5H7.5v1.5h5.3v-5.2h-1.5v2.6zm7.5-6.4-5-5h2.7V4.2h-5.2v5.2h1.5V6.8l5 5c.1.1.1.3 0 .4l-2.3 2.3 1.1 1.1 2.3-2.3c.6-.7.6-1.9-.1-2.5z"})),o=2690==n.j?i:null},73718(e){"use strict";const t=(e,t,n)=>{const r=t<0?e.length+t:t;if(r>=0&&r<e.length){const r=n<0?e.length+n:n,[a]=e.splice(t,1);e.splice(r,0,a)}};e.exports=(e,n,r)=>(e=[...e],t(e,n,r),e),e.exports.mutate=t},61563(e){"use strict";e.exports=function e(t,n){if(t===n)return!0;if(t&&n&&"object"==typeof t&&"object"==typeof n){if(t.constructor!==n.constructor)return!1;var r,a,i;if(Array.isArray(t)){if((r=t.length)!=n.length)return!1;for(a=r;0!==a--;)if(!e(t[a],n[a]))return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if((r=(i=Object.keys(t)).length)!==Object.keys(n).length)return!1;for(a=r;0!==a--;)if(!Object.prototype.hasOwnProperty.call(n,i[a]))return!1;for(a=r;0!==a--;){var o=i[a];if(!e(t[o],n[o]))return!1}return!0}return t!=t&&n!=n}},5684(e,t,n){"use strict";var r=n(64758),a={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},o={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function l(e){return r.isMemo(e)?o:s[e.$$typeof]||a}s[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[r.Memo]=o;var c=Object.defineProperty,u=Object.getOwnPropertyNames,f=Object.getOwnPropertySymbols,h=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,d=Object.prototype;e.exports=function e(t,n,r){if("string"!=typeof n){if(d){var a=p(n);a&&a!==d&&e(t,a,r)}var o=u(n);f&&(o=o.concat(f(n)));for(var s=l(t),m=l(n),g=0;g<o.length;++g){var y=o[g];if(!(i[y]||r&&r[y]||m&&m[y]||s&&s[y])){var v=h(n,y);try{c(t,y,v)}catch(e){}}}}return t}},69274(e,t){"use strict";var n="function"==typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,a=n?Symbol.for("react.portal"):60106,i=n?Symbol.for("react.fragment"):60107,o=n?Symbol.for("react.strict_mode"):60108,s=n?Symbol.for("react.profiler"):60114,l=n?Symbol.for("react.provider"):60109,c=n?Symbol.for("react.context"):60110,u=n?Symbol.for("react.async_mode"):60111,f=n?Symbol.for("react.concurrent_mode"):60111,h=n?Symbol.for("react.forward_ref"):60112,p=n?Symbol.for("react.suspense"):60113,d=n?Symbol.for("react.suspense_list"):60120,m=n?Symbol.for("react.memo"):60115,g=n?Symbol.for("react.lazy"):60116,y=n?Symbol.for("react.block"):60121,v=n?Symbol.for("react.fundamental"):60117,b=n?Symbol.for("react.responder"):60118,_=n?Symbol.for("react.scope"):60119;function w(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case u:case f:case i:case s:case o:case p:return e;default:switch(e=e&&e.$$typeof){case c:case h:case g:case m:case l:return e;default:return t}}case a:return t}}}function S(e){return w(e)===f}t.AsyncMode=u,t.ConcurrentMode=f,t.ContextConsumer=c,t.ContextProvider=l,t.Element=r,t.ForwardRef=h,t.Fragment=i,t.Lazy=g,t.Memo=m,t.Portal=a,t.Profiler=s,t.StrictMode=o,t.Suspense=p,t.isAsyncMode=function(e){return S(e)||w(e)===u},t.isConcurrentMode=S,t.isContextConsumer=function(e){return w(e)===c},t.isContextProvider=function(e){return w(e)===l},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return w(e)===h},t.isFragment=function(e){return w(e)===i},t.isLazy=function(e){return w(e)===g},t.isMemo=function(e){return w(e)===m},t.isPortal=function(e){return w(e)===a},t.isProfiler=function(e){return w(e)===s},t.isStrictMode=function(e){return w(e)===o},t.isSuspense=function(e){return w(e)===p},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===i||e===f||e===s||e===o||e===p||e===d||"object"==typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===m||e.$$typeof===l||e.$$typeof===c||e.$$typeof===h||e.$$typeof===v||e.$$typeof===b||e.$$typeof===_||e.$$typeof===y)},t.typeOf=w},64758(e,t,n){"use strict";e.exports=n(69274)},99253(e){"use strict";e.exports=function(e,t,n,r,a,i,o,s){if(!e){var l;if(void 0===t)l=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[n,r,a,i,o,s],u=0;(l=new Error(t.replace(/%s/g,function(){return c[u++]}))).name="Invariant Violation"}throw l.framesToPop=1,l}}},27344(e,t,n){"use strict";var r=n(67351);function a(){}function i(){}i.resetWarningCache=a,e.exports=function(){function e(e,t,n,a,i,o){if(o!==r){var s=new 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:i,resetWarningCache:a};return n.PropTypes=n,n}},96310(e,t,n){e.exports=n(27344)()},67351(e){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},5689(e,t,n){"use strict";if(n.d(t,{A:()=>c}),2690==n.j)var r=n(34036);var a=n(51609);if(2690==n.j)var i=n(5506);if(2690==n.j)var o=n(46630);if(2690==n.j)var s=n(74759);n(75795),n(71393);var l=2690==n.j?(0,a.forwardRef)(function(e,t){var n=(0,s.u)(e),l=(0,o.u)(n);return a.createElement(i.S,(0,r.A)({ref:t},l))}):null,c=2690==n.j?l:null},5506(e,t,n){"use strict";n.d(t,{S:()=>fe});var r=n(34036),a=n(7711),i=n(7777),o=n(60745),s=n(15521),l=n(43774),c=n(78438),u=n(51609),f=n(17854),h=n(50219),p=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function d(e,t){return e===t||!(!p(e)||!p(t))}function m(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!d(e[n],t[n]))return!1;return!0}for(var g=n(48465),y={name:"7pg0cj-a11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap"},v=function(e){return(0,h.Y)("span",(0,r.A)({css:y},e))},b={guidance:function(e){var t=e.isSearchable,n=e.isMulti,r=e.tabSelectsValue,a=e.context,i=e.isInitialFocus;switch(a){case"menu":return"Use Up and Down to choose options, press Enter to select the currently focused option, press Escape to exit the menu".concat(r?", press Tab to select the option and exit the menu":"",".");case"input":return i?"".concat(e["aria-label"]||"Select"," is focused ").concat(t?",type to refine list":"",", press Down to open the menu, ").concat(n?" press left to focus selected values":""):"";case"value":return"Use left and right to toggle between focused values, press Backspace to remove the currently focused value";default:return""}},onChange:function(e){var t=e.action,n=e.label,r=void 0===n?"":n,a=e.labels,i=e.isDisabled;switch(t){case"deselect-option":case"pop-value":case"remove-value":return"option ".concat(r,", deselected.");case"clear":return"All selected options have been cleared.";case"initial-input-focus":return"option".concat(a.length>1?"s":""," ").concat(a.join(","),", selected.");case"select-option":return"option ".concat(r,i?" is disabled. Select another option.":", selected.");default:return""}},onFocus:function(e){var t=e.context,n=e.focused,r=e.options,a=e.label,i=void 0===a?"":a,o=e.selectValue,s=e.isDisabled,l=e.isSelected,c=e.isAppleDevice,u=function(e,t){return e&&e.length?"".concat(e.indexOf(t)+1," of ").concat(e.length):""};if("value"===t&&o)return"value ".concat(i," focused, ").concat(u(o,n),".");if("menu"===t&&c){var f=s?" disabled":"",h="".concat(l?" selected":"").concat(f);return"".concat(i).concat(h,", ").concat(u(r,n),".")}return""},onFilter:function(e){var t=e.inputValue,n=e.resultsMessage;return"".concat(n).concat(t?" for search term "+t:"",".")}},_=function(e){var t=e.ariaSelection,n=e.focusedOption,r=e.focusedValue,i=e.focusableOptions,o=e.isFocused,s=e.selectValue,l=e.selectProps,c=e.id,f=e.isAppleDevice,p=l.ariaLiveMessages,d=l.getOptionLabel,m=l.inputValue,g=l.isMulti,y=l.isOptionDisabled,_=l.isSearchable,w=l.menuIsOpen,S=l.options,x=l.screenReaderStatus,k=l.tabSelectsValue,C=l.isLoading,E=l["aria-label"],P=l["aria-live"],A=(0,u.useMemo)(function(){return(0,a.A)((0,a.A)({},b),p||{})},[p]),O=(0,u.useMemo)(function(){var e,n="";if(t&&A.onChange){var r=t.option,i=t.options,o=t.removedValue,l=t.removedValues,c=t.value,u=o||r||(e=c,Array.isArray(e)?null:e),f=u?d(u):"",h=i||l||void 0,p=h?h.map(d):[],m=(0,a.A)({isDisabled:u&&y(u,s),label:f,labels:p},t);n=A.onChange(m)}return n},[t,A,y,s,d]),M=(0,u.useMemo)(function(){var e="",t=n||r,a=!!(n&&s&&s.includes(n));if(t&&A.onFocus){var o={focused:t,label:d(t),isDisabled:y(t,s),isSelected:a,options:i,context:t===n?"menu":"value",selectValue:s,isAppleDevice:f};e=A.onFocus(o)}return e},[n,r,d,y,A,i,s,f]),T=(0,u.useMemo)(function(){var e="";if(w&&S.length&&!C&&A.onFilter){var t=x({count:i.length});e=A.onFilter({inputValue:m,resultsMessage:t})}return e},[i,m,w,A,S,x,C]),I="initial-input-focus"===(null==t?void 0:t.action),D=(0,u.useMemo)(function(){var e="";if(A.guidance){var t=r?"value":w?"menu":"input";e=A.guidance({"aria-label":E,context:t,isDisabled:n&&y(n,s),isMulti:g,isSearchable:_,tabSelectsValue:k,isInitialFocus:I})}return e},[E,n,r,g,y,_,w,A,s,k,I]),L=(0,h.Y)(u.Fragment,null,(0,h.Y)("span",{id:"aria-selection"},O),(0,h.Y)("span",{id:"aria-focused"},M),(0,h.Y)("span",{id:"aria-results"},T),(0,h.Y)("span",{id:"aria-guidance"},D));return(0,h.Y)(u.Fragment,null,(0,h.Y)(v,{id:c},I&&L),(0,h.Y)(v,{"aria-live":P,"aria-atomic":"false","aria-relevant":"additions text",role:"log"},o&&!I&&L))},w=[{base:"A",letters:"AⒶＡÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ"},{base:"AA",letters:"Ꜳ"},{base:"AE",letters:"ÆǼǢ"},{base:"AO",letters:"Ꜵ"},{base:"AU",letters:"Ꜷ"},{base:"AV",letters:"ꜸꜺ"},{base:"AY",letters:"Ꜽ"},{base:"B",letters:"BⒷＢḂḄḆɃƂƁ"},{base:"C",letters:"CⒸＣĆĈĊČÇḈƇȻꜾ"},{base:"D",letters:"DⒹＤḊĎḌḐḒḎĐƋƊƉꝹ"},{base:"DZ",letters:"ǱǄ"},{base:"Dz",letters:"ǲǅ"},{base:"E",letters:"EⒺＥÈÉÊỀẾỄỂẼĒḔḖĔĖËẺĚȄȆẸỆȨḜĘḘḚƐƎ"},{base:"F",letters:"FⒻＦḞƑꝻ"},{base:"G",letters:"GⒼＧǴĜḠĞĠǦĢǤƓꞠꝽꝾ"},{base:"H",letters:"HⒽＨĤḢḦȞḤḨḪĦⱧⱵꞍ"},{base:"I",letters:"IⒾＩÌÍÎĨĪĬİÏḮỈǏȈȊỊĮḬƗ"},{base:"J",letters:"JⒿＪĴɈ"},{base:"K",letters:"KⓀＫḰǨḲĶḴƘⱩꝀꝂꝄꞢ"},{base:"L",letters:"LⓁＬĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ"},{base:"LJ",letters:"Ǉ"},{base:"Lj",letters:"ǈ"},{base:"M",letters:"MⓂＭḾṀṂⱮƜ"},{base:"N",letters:"NⓃＮǸŃÑṄŇṆŅṊṈȠƝꞐꞤ"},{base:"NJ",letters:"Ǌ"},{base:"Nj",letters:"ǋ"},{base:"O",letters:"OⓄＯÒÓÔỒỐỖỔÕṌȬṎŌṐṒŎȮȰÖȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬØǾƆƟꝊꝌ"},{base:"OI",letters:"Ƣ"},{base:"OO",letters:"Ꝏ"},{base:"OU",letters:"Ȣ"},{base:"P",letters:"PⓅＰṔṖƤⱣꝐꝒꝔ"},{base:"Q",letters:"QⓆＱꝖꝘɊ"},{base:"R",letters:"RⓇＲŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ"},{base:"S",letters:"SⓈＳẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ"},{base:"T",letters:"TⓉＴṪŤṬȚŢṰṮŦƬƮȾꞆ"},{base:"TZ",letters:"Ꜩ"},{base:"U",letters:"UⓊＵÙÚÛŨṸŪṺŬÜǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ"},{base:"V",letters:"VⓋＶṼṾƲꝞɅ"},{base:"VY",letters:"Ꝡ"},{base:"W",letters:"WⓌＷẀẂŴẆẄẈⱲ"},{base:"X",letters:"XⓍＸẊẌ"},{base:"Y",letters:"YⓎＹỲÝŶỸȲẎŸỶỴƳɎỾ"},{base:"Z",letters:"ZⓏＺŹẐŻŽẒẔƵȤⱿⱫꝢ"},{base:"a",letters:"aⓐａẚàáâầấẫẩãāăằắẵẳȧǡäǟảåǻǎȁȃạậặḁąⱥɐ"},{base:"aa",letters:"ꜳ"},{base:"ae",letters:"æǽǣ"},{base:"ao",letters:"ꜵ"},{base:"au",letters:"ꜷ"},{base:"av",letters:"ꜹꜻ"},{base:"ay",letters:"ꜽ"},{base:"b",letters:"bⓑｂḃḅḇƀƃɓ"},{base:"c",letters:"cⓒｃćĉċčçḉƈȼꜿↄ"},{base:"d",letters:"dⓓｄḋďḍḑḓḏđƌɖɗꝺ"},{base:"dz",letters:"ǳǆ"},{base:"e",letters:"eⓔｅèéêềếễểẽēḕḗĕėëẻěȅȇẹệȩḝęḙḛɇɛǝ"},{base:"f",letters:"fⓕｆḟƒꝼ"},{base:"g",letters:"gⓖｇǵĝḡğġǧģǥɠꞡᵹꝿ"},{base:"h",letters:"hⓗｈĥḣḧȟḥḩḫẖħⱨⱶɥ"},{base:"hv",letters:"ƕ"},{base:"i",letters:"iⓘｉìíîĩīĭïḯỉǐȉȋịįḭɨı"},{base:"j",letters:"jⓙｊĵǰɉ"},{base:"k",letters:"kⓚｋḱǩḳķḵƙⱪꝁꝃꝅꞣ"},{base:"l",letters:"lⓛｌŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇ"},{base:"lj",letters:"ǉ"},{base:"m",letters:"mⓜｍḿṁṃɱɯ"},{base:"n",letters:"nⓝｎǹńñṅňṇņṋṉƞɲŉꞑꞥ"},{base:"nj",letters:"ǌ"},{base:"o",letters:"oⓞｏòóôồốỗổõṍȭṏōṑṓŏȯȱöȫỏőǒȍȏơờớỡởợọộǫǭøǿɔꝋꝍɵ"},{base:"oi",letters:"ƣ"},{base:"ou",letters:"ȣ"},{base:"oo",letters:"ꝏ"},{base:"p",letters:"pⓟｐṕṗƥᵽꝑꝓꝕ"},{base:"q",letters:"qⓠｑɋꝗꝙ"},{base:"r",letters:"rⓡｒŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ"},{base:"s",letters:"sⓢｓßśṥŝṡšṧṣṩșşȿꞩꞅẛ"},{base:"t",letters:"tⓣｔṫẗťṭțţṱṯŧƭʈⱦꞇ"},{base:"tz",letters:"ꜩ"},{base:"u",letters:"uⓤｕùúûũṹūṻŭüǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"},{base:"v",letters:"vⓥｖṽṿʋꝟʌ"},{base:"vy",letters:"ꝡ"},{base:"w",letters:"wⓦｗẁẃŵẇẅẘẉⱳ"},{base:"x",letters:"xⓧｘẋẍ"},{base:"y",letters:"yⓨｙỳýŷỹȳẏÿỷẙỵƴɏỿ"},{base:"z",letters:"zⓩｚźẑżžẓẕƶȥɀⱬꝣ"}],S=new RegExp("["+w.map(function(e){return e.letters}).join("")+"]","g"),x={},k=0;k<w.length;k++)for(var C=w[k],E=0;E<C.letters.length;E++)x[C.letters[E]]=C.base;var P=function(e){return e.replace(S,function(e){return x[e]})},A=function(e,t){void 0===t&&(t=m);var n=null;function r(){for(var r=[],a=0;a<arguments.length;a++)r[a]=arguments[a];if(n&&n.lastThis===this&&t(r,n.lastArgs))return n.lastResult;var i=e.apply(this,r);return n={lastResult:i,lastArgs:r,lastThis:this},i}return r.clear=function(){n=null},r}(P),O=function(e){return e.replace(/^\s+|\s+$/g,"")},M=function(e){return"".concat(e.label," ").concat(e.value)},T=["innerRef"];function I(e){var t=e.innerRef,n=(0,g.A)(e,T),a=(0,f.r)(n,"onExited","in","enter","exit","appear");return(0,h.Y)("input",(0,r.A)({ref:t},a,{css:(0,h.AH)({label:"dummyInput",background:0,border:0,caretColor:"transparent",fontSize:"inherit",gridArea:"1 / 1 / 2 / 3",outline:0,padding:0,width:1,color:"transparent",left:-100,opacity:0,position:"relative",transform:"scale(.01)"},"","")}))}var D=["boxSizing","height","overflow","paddingRight","position"],L={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function R(e){e.cancelable&&e.preventDefault()}function j(e){e.stopPropagation()}function F(){var e=this.scrollTop,t=this.scrollHeight,n=e+this.offsetHeight;0===e?this.scrollTop=1:n===t&&(this.scrollTop=e-1)}function V(){return"ontouchstart"in window||navigator.maxTouchPoints}var N=!("undefined"==typeof window||!window.document||!window.document.createElement),B=0,z={capture:!1,passive:!1},H=function(e){var t=e.target;return t.ownerDocument.activeElement&&t.ownerDocument.activeElement.blur()},G={name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"};function W(e){var t=e.children,n=e.lockEnabled,r=e.captureEnabled,a=function(e){var t=e.isEnabled,n=e.onBottomArrive,r=e.onBottomLeave,a=e.onTopArrive,i=e.onTopLeave,o=(0,u.useRef)(!1),s=(0,u.useRef)(!1),l=(0,u.useRef)(0),c=(0,u.useRef)(null),h=(0,u.useCallback)(function(e,t){if(null!==c.current){var l=c.current,u=l.scrollTop,f=l.scrollHeight,h=l.clientHeight,p=c.current,d=t>0,m=f-h-u,g=!1;m>t&&o.current&&(r&&r(e),o.current=!1),d&&s.current&&(i&&i(e),s.current=!1),d&&t>m?(n&&!o.current&&n(e),p.scrollTop=f,g=!0,o.current=!0):!d&&-t>u&&(a&&!s.current&&a(e),p.scrollTop=0,g=!0,s.current=!0),g&&function(e){e.cancelable&&e.preventDefault(),e.stopPropagation()}(e)}},[n,r,a,i]),p=(0,u.useCallback)(function(e){h(e,e.deltaY)},[h]),d=(0,u.useCallback)(function(e){l.current=e.changedTouches[0].clientY},[]),m=(0,u.useCallback)(function(e){var t=l.current-e.changedTouches[0].clientY;h(e,t)},[h]),g=(0,u.useCallback)(function(e){if(e){var t=!!f.s&&{passive:!1};e.addEventListener("wheel",p,t),e.addEventListener("touchstart",d,t),e.addEventListener("touchmove",m,t)}},[m,d,p]),y=(0,u.useCallback)(function(e){e&&(e.removeEventListener("wheel",p,!1),e.removeEventListener("touchstart",d,!1),e.removeEventListener("touchmove",m,!1))},[m,d,p]);return(0,u.useEffect)(function(){if(t){var e=c.current;return g(e),function(){y(e)}}},[t,g,y]),function(e){c.current=e}}({isEnabled:void 0===r||r,onBottomArrive:e.onBottomArrive,onBottomLeave:e.onBottomLeave,onTopArrive:e.onTopArrive,onTopLeave:e.onTopLeave}),i=function(e){var t=e.isEnabled,n=e.accountForScrollbars,r=void 0===n||n,a=(0,u.useRef)({}),i=(0,u.useRef)(null),o=(0,u.useCallback)(function(e){if(N){var t=document.body,n=t&&t.style;if(r&&D.forEach(function(e){var t=n&&n[e];a.current[e]=t}),r&&B<1){var i=parseInt(a.current.paddingRight,10)||0,o=document.body?document.body.clientWidth:0,s=window.innerWidth-o+i||0;Object.keys(L).forEach(function(e){var t=L[e];n&&(n[e]=t)}),n&&(n.paddingRight="".concat(s,"px"))}t&&V()&&(t.addEventListener("touchmove",R,z),e&&(e.addEventListener("touchstart",F,z),e.addEventListener("touchmove",j,z))),B+=1}},[r]),s=(0,u.useCallback)(function(e){if(N){var t=document.body,n=t&&t.style;B=Math.max(B-1,0),r&&B<1&&D.forEach(function(e){var t=a.current[e];n&&(n[e]=t)}),t&&V()&&(t.removeEventListener("touchmove",R,z),e&&(e.removeEventListener("touchstart",F,z),e.removeEventListener("touchmove",j,z)))}},[r]);return(0,u.useEffect)(function(){if(t){var e=i.current;return o(e),function(){s(e)}}},[t,o,s]),function(e){i.current=e}}({isEnabled:n});return(0,h.Y)(u.Fragment,null,n&&(0,h.Y)("div",{onClick:H,css:G}),t(function(e){a(e),i(e)}))}var U={name:"1a0ro4n-requiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"},$=function(e){var t=e.name,n=e.onFocus;return(0,h.Y)("input",{required:!0,name:t,tabIndex:-1,"aria-hidden":"true",onFocus:n,css:U,value:"",onChange:function(){}})};function q(e){var t;return"undefined"!=typeof window&&null!=window.navigator&&e.test((null===(t=window.navigator.userAgentData)||void 0===t?void 0:t.platform)||window.navigator.platform)}function Y(){return q(/^Mac/i)}var K={clearIndicator:f.a,container:f.b,control:f.d,dropdownIndicator:f.e,group:f.g,groupHeading:f.f,indicatorsContainer:f.i,indicatorSeparator:f.h,input:f.j,loadingIndicator:f.l,loadingMessage:f.k,menu:f.m,menuList:f.n,menuPortal:f.o,multiValue:f.p,multiValueLabel:f.q,multiValueRemove:f.t,noOptionsMessage:f.u,option:f.v,placeholder:f.w,singleValue:f.x,valueContainer:f.y},X={borderRadius:4,colors:{primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},spacing:{baseUnit:4,controlHeight:38,menuGutter:8}},J={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:(0,f.z)(),captureMenuScroll:!(0,f.z)(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:function(e,t){if(e.data.__isNew__)return!0;var n=(0,a.A)({ignoreCase:!0,ignoreAccents:!0,stringify:M,trim:!0,matchFrom:"any"},void 0),r=n.ignoreCase,i=n.ignoreAccents,o=n.stringify,s=n.trim,l=n.matchFrom,c=s?O(t):t,u=s?O(o(e)):o(e);return r&&(c=c.toLowerCase(),u=u.toLowerCase()),i&&(c=A(c),u=P(u)),"start"===l?u.substr(0,c.length)===c:u.indexOf(c)>-1},formatGroupLabel:function(e){return e.label},getOptionLabel:function(e){return e.label},getOptionValue:function(e){return e.value},isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:function(e){return!!e.isDisabled},loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!(0,f.A)(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(e){var t=e.count;return"".concat(t," result").concat(1!==t?"s":""," available")},styles:{},tabIndex:0,tabSelectsValue:!0,unstyled:!1};function Z(e,t,n,r){return{type:"option",data:t,isDisabled:oe(e,t,n),isSelected:se(e,t,n),label:ae(e,t),value:ie(e,t),index:r}}function Q(e,t){return e.options.map(function(n,r){if("options"in n){var a=n.options.map(function(n,r){return Z(e,n,t,r)}).filter(function(t){return ne(e,t)});return a.length>0?{type:"group",data:n,options:a,index:r}:void 0}var i=Z(e,n,t,r);return ne(e,i)?i:void 0}).filter(f.K)}function ee(e){return e.reduce(function(e,t){return"group"===t.type?e.push.apply(e,(0,c.A)(t.options.map(function(e){return e.data}))):e.push(t.data),e},[])}function te(e,t){return e.reduce(function(e,n){return"group"===n.type?e.push.apply(e,(0,c.A)(n.options.map(function(e){return{data:e.data,id:"".concat(t,"-").concat(n.index,"-").concat(e.index)}}))):e.push({data:n.data,id:"".concat(t,"-").concat(n.index)}),e},[])}function ne(e,t){var n=e.inputValue,r=void 0===n?"":n,a=t.data,i=t.isSelected,o=t.label,s=t.value;return(!ce(e)||!i)&&le(e,{label:o,value:s,data:a},r)}var re=function(e,t){var n;return(null===(n=e.find(function(e){return e.data===t}))||void 0===n?void 0:n.id)||null},ae=function(e,t){return e.getOptionLabel(t)},ie=function(e,t){return e.getOptionValue(t)};function oe(e,t,n){return"function"==typeof e.isOptionDisabled&&e.isOptionDisabled(t,n)}function se(e,t,n){if(n.indexOf(t)>-1)return!0;if("function"==typeof e.isOptionSelected)return e.isOptionSelected(t,n);var r=ie(e,t);return n.some(function(t){return ie(e,t)===r})}function le(e,t,n){return!e.filterOption||e.filterOption(t,n)}var ce=function(e){var t=e.hideSelectedOptions,n=e.isMulti;return void 0===t?n:t},ue=1,fe=function(e){(0,s.A)(n,e);var t=(0,l.A)(n);function n(e){var r;if((0,i.A)(this,n),(r=t.call(this,e)).state={ariaSelection:null,focusedOption:null,focusedOptionId:null,focusableOptionsWithIds:[],focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,prevWasFocused:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0,instancePrefix:"",isAppleDevice:!1},r.blockOptionHover=!1,r.isComposing=!1,r.commonProps=void 0,r.initialTouchX=0,r.initialTouchY=0,r.openAfterFocus=!1,r.scrollToFocusedOptionOnUpdate=!1,r.userIsDragging=void 0,r.controlRef=null,r.getControlRef=function(e){r.controlRef=e},r.focusedOptionRef=null,r.getFocusedOptionRef=function(e){r.focusedOptionRef=e},r.menuListRef=null,r.getMenuListRef=function(e){r.menuListRef=e},r.inputRef=null,r.getInputRef=function(e){r.inputRef=e},r.focus=r.focusInput,r.blur=r.blurInput,r.onChange=function(e,t){var n=r.props,a=n.onChange,i=n.name;t.name=i,r.ariaOnChange(e,t),a(e,t)},r.setValue=function(e,t,n){var a=r.props,i=a.closeMenuOnSelect,o=a.isMulti,s=a.inputValue;r.onInputChange("",{action:"set-value",prevInputValue:s}),i&&(r.setState({inputIsHiddenAfterUpdate:!o}),r.onMenuClose()),r.setState({clearFocusValueOnUpdate:!0}),r.onChange(e,{action:t,option:n})},r.selectOption=function(e){var t=r.props,n=t.blurInputOnSelect,a=t.isMulti,i=t.name,o=r.state.selectValue,s=a&&r.isOptionSelected(e,o),l=r.isOptionDisabled(e,o);if(s){var u=r.getOptionValue(e);r.setValue((0,f.B)(o.filter(function(e){return r.getOptionValue(e)!==u})),"deselect-option",e)}else{if(l)return void r.ariaOnChange((0,f.C)(e),{action:"select-option",option:e,name:i});a?r.setValue((0,f.B)([].concat((0,c.A)(o),[e])),"select-option",e):r.setValue((0,f.C)(e),"select-option")}n&&r.blurInput()},r.removeValue=function(e){var t=r.props.isMulti,n=r.state.selectValue,a=r.getOptionValue(e),i=n.filter(function(e){return r.getOptionValue(e)!==a}),o=(0,f.D)(t,i,i[0]||null);r.onChange(o,{action:"remove-value",removedValue:e}),r.focusInput()},r.clearValue=function(){var e=r.state.selectValue;r.onChange((0,f.D)(r.props.isMulti,[],null),{action:"clear",removedValues:e})},r.popValue=function(){var e=r.props.isMulti,t=r.state.selectValue,n=t[t.length-1],a=t.slice(0,t.length-1),i=(0,f.D)(e,a,a[0]||null);n&&r.onChange(i,{action:"pop-value",removedValue:n})},r.getFocusedOptionId=function(e){return re(r.state.focusableOptionsWithIds,e)},r.getFocusableOptionsWithIds=function(){return te(Q(r.props,r.state.selectValue),r.getElementId("option"))},r.getValue=function(){return r.state.selectValue},r.cx=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return f.E.apply(void 0,[r.props.classNamePrefix].concat(t))},r.getOptionLabel=function(e){return ae(r.props,e)},r.getOptionValue=function(e){return ie(r.props,e)},r.getStyles=function(e,t){var n=r.props.unstyled,a=K[e](t,n);a.boxSizing="border-box";var i=r.props.styles[e];return i?i(a,t):a},r.getClassNames=function(e,t){var n,a;return null===(n=(a=r.props.classNames)[e])||void 0===n?void 0:n.call(a,t)},r.getElementId=function(e){return"".concat(r.state.instancePrefix,"-").concat(e)},r.getComponents=function(){return(0,f.F)(r.props)},r.buildCategorizedOptions=function(){return Q(r.props,r.state.selectValue)},r.getCategorizedOptions=function(){return r.props.menuIsOpen?r.buildCategorizedOptions():[]},r.buildFocusableOptions=function(){return ee(r.buildCategorizedOptions())},r.getFocusableOptions=function(){return r.props.menuIsOpen?r.buildFocusableOptions():[]},r.ariaOnChange=function(e,t){r.setState({ariaSelection:(0,a.A)({value:e},t)})},r.onMenuMouseDown=function(e){0===e.button&&(e.stopPropagation(),e.preventDefault(),r.focusInput())},r.onMenuMouseMove=function(e){r.blockOptionHover=!1},r.onControlMouseDown=function(e){if(!e.defaultPrevented){var t=r.props.openMenuOnClick;r.state.isFocused?r.props.menuIsOpen?"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&r.onMenuClose():t&&r.openMenu("first"):(t&&(r.openAfterFocus=!0),r.focusInput()),"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&e.preventDefault()}},r.onDropdownIndicatorMouseDown=function(e){if(!(e&&"mousedown"===e.type&&0!==e.button||r.props.isDisabled)){var t=r.props,n=t.isMulti,a=t.menuIsOpen;r.focusInput(),a?(r.setState({inputIsHiddenAfterUpdate:!n}),r.onMenuClose()):r.openMenu("first"),e.preventDefault()}},r.onClearIndicatorMouseDown=function(e){e&&"mousedown"===e.type&&0!==e.button||(r.clearValue(),e.preventDefault(),r.openAfterFocus=!1,"touchend"===e.type?r.focusInput():setTimeout(function(){return r.focusInput()}))},r.onScroll=function(e){"boolean"==typeof r.props.closeMenuOnScroll?e.target instanceof HTMLElement&&(0,f.G)(e.target)&&r.props.onMenuClose():"function"==typeof r.props.closeMenuOnScroll&&r.props.closeMenuOnScroll(e)&&r.props.onMenuClose()},r.onCompositionStart=function(){r.isComposing=!0},r.onCompositionEnd=function(){r.isComposing=!1},r.onTouchStart=function(e){var t=e.touches,n=t&&t.item(0);n&&(r.initialTouchX=n.clientX,r.initialTouchY=n.clientY,r.userIsDragging=!1)},r.onTouchMove=function(e){var t=e.touches,n=t&&t.item(0);if(n){var a=Math.abs(n.clientX-r.initialTouchX),i=Math.abs(n.clientY-r.initialTouchY);r.userIsDragging=a>5||i>5}},r.onTouchEnd=function(e){r.userIsDragging||(r.controlRef&&!r.controlRef.contains(e.target)&&r.menuListRef&&!r.menuListRef.contains(e.target)&&r.blurInput(),r.initialTouchX=0,r.initialTouchY=0)},r.onControlTouchEnd=function(e){r.userIsDragging||r.onControlMouseDown(e)},r.onClearIndicatorTouchEnd=function(e){r.userIsDragging||r.onClearIndicatorMouseDown(e)},r.onDropdownIndicatorTouchEnd=function(e){r.userIsDragging||r.onDropdownIndicatorMouseDown(e)},r.handleInputChange=function(e){var t=r.props.inputValue,n=e.currentTarget.value;r.setState({inputIsHiddenAfterUpdate:!1}),r.onInputChange(n,{action:"input-change",prevInputValue:t}),r.props.menuIsOpen||r.onMenuOpen()},r.onInputFocus=function(e){r.props.onFocus&&r.props.onFocus(e),r.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(r.openAfterFocus||r.props.openMenuOnFocus)&&r.openMenu("first"),r.openAfterFocus=!1},r.onInputBlur=function(e){var t=r.props.inputValue;r.menuListRef&&r.menuListRef.contains(document.activeElement)?r.inputRef.focus():(r.props.onBlur&&r.props.onBlur(e),r.onInputChange("",{action:"input-blur",prevInputValue:t}),r.onMenuClose(),r.setState({focusedValue:null,isFocused:!1}))},r.onOptionHover=function(e){if(!r.blockOptionHover&&r.state.focusedOption!==e){var t=r.getFocusableOptions().indexOf(e);r.setState({focusedOption:e,focusedOptionId:t>-1?r.getFocusedOptionId(e):null})}},r.shouldHideSelectedOptions=function(){return ce(r.props)},r.onValueInputFocus=function(e){e.preventDefault(),e.stopPropagation(),r.focus()},r.onKeyDown=function(e){var t=r.props,n=t.isMulti,a=t.backspaceRemovesValue,i=t.escapeClearsValue,o=t.inputValue,s=t.isClearable,l=t.isDisabled,c=t.menuIsOpen,u=t.onKeyDown,f=t.tabSelectsValue,h=t.openMenuOnFocus,p=r.state,d=p.focusedOption,m=p.focusedValue,g=p.selectValue;if(!(l||"function"==typeof u&&(u(e),e.defaultPrevented))){switch(r.blockOptionHover=!0,e.key){case"ArrowLeft":if(!n||o)return;r.focusValue("previous");break;case"ArrowRight":if(!n||o)return;r.focusValue("next");break;case"Delete":case"Backspace":if(o)return;if(m)r.removeValue(m);else{if(!a)return;n?r.popValue():s&&r.clearValue()}break;case"Tab":if(r.isComposing)return;if(e.shiftKey||!c||!f||!d||h&&r.isOptionSelected(d,g))return;r.selectOption(d);break;case"Enter":if(229===e.keyCode)break;if(c){if(!d)return;if(r.isComposing)return;r.selectOption(d);break}return;case"Escape":c?(r.setState({inputIsHiddenAfterUpdate:!1}),r.onInputChange("",{action:"menu-close",prevInputValue:o}),r.onMenuClose()):s&&i&&r.clearValue();break;case" ":if(o)return;if(!c){r.openMenu("first");break}if(!d)return;r.selectOption(d);break;case"ArrowUp":c?r.focusOption("up"):r.openMenu("last");break;case"ArrowDown":c?r.focusOption("down"):r.openMenu("first");break;case"PageUp":if(!c)return;r.focusOption("pageup");break;case"PageDown":if(!c)return;r.focusOption("pagedown");break;case"Home":if(!c)return;r.focusOption("first");break;case"End":if(!c)return;r.focusOption("last");break;default:return}e.preventDefault()}},r.state.instancePrefix="react-select-"+(r.props.instanceId||++ue),r.state.selectValue=(0,f.H)(e.value),e.menuIsOpen&&r.state.selectValue.length){var o=r.getFocusableOptionsWithIds(),s=r.buildFocusableOptions(),l=s.indexOf(r.state.selectValue[0]);r.state.focusableOptionsWithIds=o,r.state.focusedOption=s[l],r.state.focusedOptionId=re(o,s[l])}return r}return(0,o.A)(n,[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput(),this.props.menuIsOpen&&this.state.focusedOption&&this.menuListRef&&this.focusedOptionRef&&(0,f.I)(this.menuListRef,this.focusedOptionRef),(Y()||q(/^iPhone/i)||q(/^iPad/i)||Y()&&navigator.maxTouchPoints>1)&&this.setState({isAppleDevice:!0})}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.isDisabled,r=t.menuIsOpen,a=this.state.isFocused;(a&&!n&&e.isDisabled||a&&r&&!e.menuIsOpen)&&this.focusInput(),a&&n&&!e.isDisabled?this.setState({isFocused:!1},this.onMenuClose):a||n||!e.isDisabled||this.inputRef!==document.activeElement||this.setState({isFocused:!0}),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&((0,f.I)(this.menuListRef,this.focusedOptionRef),this.scrollToFocusedOptionOnUpdate=!1)}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function(){this.onInputChange("",{action:"menu-close",prevInputValue:this.props.inputValue}),this.props.onMenuClose()}},{key:"onInputChange",value:function(e,t){this.props.onInputChange(e,t)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(e){var t=this,n=this.state,r=n.selectValue,a=n.isFocused,i=this.buildFocusableOptions(),o="first"===e?0:i.length-1;if(!this.props.isMulti){var s=i.indexOf(r[0]);s>-1&&(o=s)}this.scrollToFocusedOptionOnUpdate=!(a&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:i[o],focusedOptionId:this.getFocusedOptionId(i[o])},function(){return t.onMenuOpen()})}},{key:"focusValue",value:function(e){var t=this.state,n=t.selectValue,r=t.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var a=n.indexOf(r);r||(a=-1);var i=n.length-1,o=-1;if(n.length){switch(e){case"previous":o=0===a?0:-1===a?i:a-1;break;case"next":a>-1&&a<i&&(o=a+1)}this.setState({inputIsHidden:-1!==o,focusedValue:n[o]})}}}},{key:"focusOption",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"first",t=this.props.pageSize,n=this.state.focusedOption,r=this.getFocusableOptions();if(r.length){var a=0,i=r.indexOf(n);n||(i=-1),"up"===e?a=i>0?i-1:r.length-1:"down"===e?a=(i+1)%r.length:"pageup"===e?(a=i-t)<0&&(a=0):"pagedown"===e?(a=i+t)>r.length-1&&(a=r.length-1):"last"===e&&(a=r.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:r[a],focusedValue:null,focusedOptionId:this.getFocusedOptionId(r[a])})}}},{key:"getTheme",value:function(){return this.props.theme?"function"==typeof this.props.theme?this.props.theme(X):(0,a.A)((0,a.A)({},X),this.props.theme):X}},{key:"getCommonProps",value:function(){var e=this.clearValue,t=this.cx,n=this.getStyles,r=this.getClassNames,a=this.getValue,i=this.selectOption,o=this.setValue,s=this.props,l=s.isMulti,c=s.isRtl,u=s.options;return{clearValue:e,cx:t,getStyles:n,getClassNames:r,getValue:a,hasValue:this.hasValue(),isMulti:l,isRtl:c,options:u,selectOption:i,selectProps:s,setValue:o,theme:this.getTheme()}}},{key:"hasValue",value:function(){return this.state.selectValue.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var e=this.props,t=e.isClearable,n=e.isMulti;return void 0===t?n:t}},{key:"isOptionDisabled",value:function(e,t){return oe(this.props,e,t)}},{key:"isOptionSelected",value:function(e,t){return se(this.props,e,t)}},{key:"filterOption",value:function(e,t){return le(this.props,e,t)}},{key:"formatOptionLabel",value:function(e,t){if("function"==typeof this.props.formatOptionLabel){var n=this.props.inputValue,r=this.state.selectValue;return this.props.formatOptionLabel(e,{context:t,inputValue:n,selectValue:r})}return this.getOptionLabel(e)}},{key:"formatGroupLabel",value:function(e){return this.props.formatGroupLabel(e)}},{key:"startListeningComposition",value:function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))}},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))}},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"renderInput",value:function(){var e=this.props,t=e.isDisabled,n=e.isSearchable,i=e.inputId,o=e.inputValue,s=e.tabIndex,l=e.form,c=e.menuIsOpen,h=e.required,p=this.getComponents().Input,d=this.state,m=d.inputIsHidden,g=d.ariaSelection,y=this.commonProps,v=i||this.getElementId("input"),b=(0,a.A)((0,a.A)((0,a.A)({"aria-autocomplete":"list","aria-expanded":c,"aria-haspopup":!0,"aria-errormessage":this.props["aria-errormessage"],"aria-invalid":this.props["aria-invalid"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-required":h,role:"combobox","aria-activedescendant":this.state.isAppleDevice?void 0:this.state.focusedOptionId||""},c&&{"aria-controls":this.getElementId("listbox")}),!n&&{"aria-readonly":!0}),this.hasValue()?"initial-input-focus"===(null==g?void 0:g.action)&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return n?u.createElement(p,(0,r.A)({},y,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:v,innerRef:this.getInputRef,isDisabled:t,isHidden:m,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:s,form:l,type:"text",value:o},b)):u.createElement(I,(0,r.A)({id:v,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:f.J,onFocus:this.onInputFocus,disabled:t,tabIndex:s,inputMode:"none",form:l,value:""},b))}},{key:"renderPlaceholderOrValue",value:function(){var e=this,t=this.getComponents(),n=t.MultiValue,a=t.MultiValueContainer,i=t.MultiValueLabel,o=t.MultiValueRemove,s=t.SingleValue,l=t.Placeholder,c=this.commonProps,f=this.props,h=f.controlShouldRenderValue,p=f.isDisabled,d=f.isMulti,m=f.inputValue,g=f.placeholder,y=this.state,v=y.selectValue,b=y.focusedValue,_=y.isFocused;if(!this.hasValue()||!h)return m?null:u.createElement(l,(0,r.A)({},c,{key:"placeholder",isDisabled:p,isFocused:_,innerProps:{id:this.getElementId("placeholder")}}),g);if(d)return v.map(function(t,s){var l=t===b,f="".concat(e.getOptionLabel(t),"-").concat(e.getOptionValue(t));return u.createElement(n,(0,r.A)({},c,{components:{Container:a,Label:i,Remove:o},isFocused:l,isDisabled:p,key:f,index:s,removeProps:{onClick:function(){return e.removeValue(t)},onTouchEnd:function(){return e.removeValue(t)},onMouseDown:function(e){e.preventDefault()}},data:t}),e.formatOptionLabel(t,"value"))});if(m)return null;var w=v[0];return u.createElement(s,(0,r.A)({},c,{data:w,isDisabled:p}),this.formatOptionLabel(w,"value"))}},{key:"renderClearIndicator",value:function(){var e=this.getComponents().ClearIndicator,t=this.commonProps,n=this.props,a=n.isDisabled,i=n.isLoading,o=this.state.isFocused;if(!this.isClearable()||!e||a||!this.hasValue()||i)return null;var s={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return u.createElement(e,(0,r.A)({},t,{innerProps:s,isFocused:o}))}},{key:"renderLoadingIndicator",value:function(){var e=this.getComponents().LoadingIndicator,t=this.commonProps,n=this.props,a=n.isDisabled,i=n.isLoading,o=this.state.isFocused;return e&&i?u.createElement(e,(0,r.A)({},t,{innerProps:{"aria-hidden":"true"},isDisabled:a,isFocused:o})):null}},{key:"renderIndicatorSeparator",value:function(){var e=this.getComponents(),t=e.DropdownIndicator,n=e.IndicatorSeparator;if(!t||!n)return null;var a=this.commonProps,i=this.props.isDisabled,o=this.state.isFocused;return u.createElement(n,(0,r.A)({},a,{isDisabled:i,isFocused:o}))}},{key:"renderDropdownIndicator",value:function(){var e=this.getComponents().DropdownIndicator;if(!e)return null;var t=this.commonProps,n=this.props.isDisabled,a=this.state.isFocused,i={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return u.createElement(e,(0,r.A)({},t,{innerProps:i,isDisabled:n,isFocused:a}))}},{key:"renderMenu",value:function(){var e=this,t=this.getComponents(),n=t.Group,a=t.GroupHeading,i=t.Menu,o=t.MenuList,s=t.MenuPortal,l=t.LoadingMessage,c=t.NoOptionsMessage,h=t.Option,p=this.commonProps,d=this.state.focusedOption,m=this.props,g=m.captureMenuScroll,y=m.inputValue,v=m.isLoading,b=m.loadingMessage,_=m.minMenuHeight,w=m.maxMenuHeight,S=m.menuIsOpen,x=m.menuPlacement,k=m.menuPosition,C=m.menuPortalTarget,E=m.menuShouldBlockScroll,P=m.menuShouldScrollIntoView,A=m.noOptionsMessage,O=m.onMenuScrollToTop,M=m.onMenuScrollToBottom;if(!S)return null;var T,I=function(t,n){var a=t.type,i=t.data,o=t.isDisabled,s=t.isSelected,l=t.label,c=t.value,f=d===i,m=o?void 0:function(){return e.onOptionHover(i)},g=o?void 0:function(){return e.selectOption(i)},y="".concat(e.getElementId("option"),"-").concat(n),v={id:y,onClick:g,onMouseMove:m,onMouseOver:m,tabIndex:-1,role:"option","aria-selected":e.state.isAppleDevice?void 0:s};return u.createElement(h,(0,r.A)({},p,{innerProps:v,data:i,isDisabled:o,isSelected:s,key:y,label:l,type:a,value:c,isFocused:f,innerRef:f?e.getFocusedOptionRef:void 0}),e.formatOptionLabel(t.data,"menu"))};if(this.hasOptions())T=this.getCategorizedOptions().map(function(t){if("group"===t.type){var i=t.data,o=t.options,s=t.index,l="".concat(e.getElementId("group"),"-").concat(s),c="".concat(l,"-heading");return u.createElement(n,(0,r.A)({},p,{key:l,data:i,options:o,Heading:a,headingProps:{id:c,data:t.data},label:e.formatGroupLabel(t.data)}),t.options.map(function(e){return I(e,"".concat(s,"-").concat(e.index))}))}if("option"===t.type)return I(t,"".concat(t.index))});else if(v){var D=b({inputValue:y});if(null===D)return null;T=u.createElement(l,p,D)}else{var L=A({inputValue:y});if(null===L)return null;T=u.createElement(c,p,L)}var R={minMenuHeight:_,maxMenuHeight:w,menuPlacement:x,menuPosition:k,menuShouldScrollIntoView:P},j=u.createElement(f.M,(0,r.A)({},p,R),function(t){var n=t.ref,a=t.placerProps,s=a.placement,l=a.maxHeight;return u.createElement(i,(0,r.A)({},p,R,{innerRef:n,innerProps:{onMouseDown:e.onMenuMouseDown,onMouseMove:e.onMenuMouseMove},isLoading:v,placement:s}),u.createElement(W,{captureEnabled:g,onTopArrive:O,onBottomArrive:M,lockEnabled:E},function(t){return u.createElement(o,(0,r.A)({},p,{innerRef:function(n){e.getMenuListRef(n),t(n)},innerProps:{role:"listbox","aria-multiselectable":p.isMulti,id:e.getElementId("listbox")},isLoading:v,maxHeight:l,focusedOption:d}),T)}))});return C||"fixed"===k?u.createElement(s,(0,r.A)({},p,{appendTo:C,controlElement:this.controlRef,menuPlacement:x,menuPosition:k}),j):j}},{key:"renderFormField",value:function(){var e=this,t=this.props,n=t.delimiter,r=t.isDisabled,a=t.isMulti,i=t.name,o=t.required,s=this.state.selectValue;if(o&&!this.hasValue()&&!r)return u.createElement($,{name:i,onFocus:this.onValueInputFocus});if(i&&!r){if(a){if(n){var l=s.map(function(t){return e.getOptionValue(t)}).join(n);return u.createElement("input",{name:i,type:"hidden",value:l})}var c=s.length>0?s.map(function(t,n){return u.createElement("input",{key:"i-".concat(n),name:i,type:"hidden",value:e.getOptionValue(t)})}):u.createElement("input",{name:i,type:"hidden",value:""});return u.createElement("div",null,c)}var f=s[0]?this.getOptionValue(s[0]):"";return u.createElement("input",{name:i,type:"hidden",value:f})}}},{key:"renderLiveRegion",value:function(){var e=this.commonProps,t=this.state,n=t.ariaSelection,a=t.focusedOption,i=t.focusedValue,o=t.isFocused,s=t.selectValue,l=this.getFocusableOptions();return u.createElement(_,(0,r.A)({},e,{id:this.getElementId("live-region"),ariaSelection:n,focusedOption:a,focusedValue:i,isFocused:o,selectValue:s,focusableOptions:l,isAppleDevice:this.state.isAppleDevice}))}},{key:"render",value:function(){var e=this.getComponents(),t=e.Control,n=e.IndicatorsContainer,a=e.SelectContainer,i=e.ValueContainer,o=this.props,s=o.className,l=o.id,c=o.isDisabled,f=o.menuIsOpen,h=this.state.isFocused,p=this.commonProps=this.getCommonProps();return u.createElement(a,(0,r.A)({},p,{className:s,innerProps:{id:l,onKeyDown:this.onKeyDown},isDisabled:c,isFocused:h}),this.renderLiveRegion(),u.createElement(t,(0,r.A)({},p,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:c,isFocused:h,menuIsOpen:f}),u.createElement(i,(0,r.A)({},p,{isDisabled:c}),this.renderPlaceholderOrValue(),this.renderInput()),u.createElement(n,(0,r.A)({},p,{isDisabled:c}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=t.prevProps,r=t.clearFocusValueOnUpdate,i=t.inputIsHiddenAfterUpdate,o=t.ariaSelection,s=t.isFocused,l=t.prevWasFocused,c=t.instancePrefix,u=e.options,h=e.value,p=e.menuIsOpen,d=e.inputValue,m=e.isMulti,g=(0,f.H)(h),y={};if(n&&(h!==n.value||u!==n.options||p!==n.menuIsOpen||d!==n.inputValue)){var v=p?function(e,t){return ee(Q(e,t))}(e,g):[],b=p?te(Q(e,g),"".concat(c,"-option")):[],_=r?function(e,t){var n=e.focusedValue,r=e.selectValue.indexOf(n);if(r>-1){if(t.indexOf(n)>-1)return n;if(r<t.length)return t[r]}return null}(t,g):null,w=function(e,t){var n=e.focusedOption;return n&&t.indexOf(n)>-1?n:t[0]}(t,v);y={selectValue:g,focusedOption:w,focusedOptionId:re(b,w),focusableOptionsWithIds:b,focusedValue:_,clearFocusValueOnUpdate:!1}}var S=null!=i&&e!==n?{inputIsHidden:i,inputIsHiddenAfterUpdate:void 0}:{},x=o,k=s&&l;return s&&!k&&(x={value:(0,f.D)(m,g,g[0]||null),options:g,action:"initial-input-focus"},k=!l),"initial-input-focus"===(null==o?void 0:o.action)&&(x=null),(0,a.A)((0,a.A)((0,a.A)({},y),S),{},{prevProps:e,ariaSelection:x,prevWasFocused:k})}}]),n}(u.Component);fe.defaultProps=J},17854(e,t,n){"use strict";n.d(t,{A:()=>O,B:()=>F,C:()=>j,D:()=>R,E:()=>v,F:()=>Be,G:()=>x,H:()=>b,I:()=>P,J:()=>g,K:()=>L,L:()=>S,M:()=>U,a:()=>ce,b:()=>Z,d:()=>de,e:()=>le,f:()=>ve,g:()=>ye,h:()=>ue,i:()=>ee,j:()=>we,k:()=>X,l:()=>he,m:()=>G,n:()=>q,o:()=>J,p:()=>Ee,q:()=>Pe,r:()=>V,s:()=>D,t:()=>Ae,u:()=>K,v:()=>De,w:()=>Re,x:()=>Fe,y:()=>Q,z:()=>A});var r=n(7711);if(2690==n.j)var a=n(34036);var i=n(50219);if(2690==n.j)var o=n(50809);if(2690==n.j)var s=n(48465);if(2690==n.j)var l=n(69624);var c=n(47284);if(2690==n.j)var u=n(53711);var f=n(51609),h=n(75795);if(2690==n.j)var p=n(73911);var d=n(71393),m=2690==n.j?["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"]:null,g=function(){};function y(e,t){return t?"-"===t[0]?e+t:e+"__"+t:e}function v(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),a=2;a<n;a++)r[a-2]=arguments[a];var i=[].concat(r);if(t&&e)for(var o in t)t.hasOwnProperty(o)&&t[o]&&i.push("".concat(y(e,o)));return i.filter(function(e){return e}).map(function(e){return String(e).trim()}).join(" ")}var b=function(e){return t=e,Array.isArray(t)?e.filter(Boolean):"object"===(0,l.A)(e)&&null!==e?[e]:[];var t},_=function(e){e.className,e.clearValue,e.cx,e.getStyles,e.getClassNames,e.getValue,e.hasValue,e.isMulti,e.isRtl,e.options,e.selectOption,e.selectProps,e.setValue,e.theme;var t=(0,s.A)(e,m);return(0,r.A)({},t)},w=function(e,t,n){var r=e.cx,a=e.getStyles,i=e.getClassNames,o=e.className;return{css:a(t,e),className:r(null!=n?n:{},i(t,e),o)}};function S(e,t,n){if(n){var r=n(e,t);if("string"==typeof r)return r}return e}function x(e){return[document.documentElement,document.body,window].indexOf(e)>-1}function k(e){return x(e)?window.pageYOffset:e.scrollTop}function C(e,t){x(e)?window.scrollTo(0,t):e.scrollTop=t}function E(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:200,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:g,a=k(e),i=t-a,o=0;!function t(){var s,l=i*((s=(s=o+=10)/n-1)*s*s+1)+a;C(e,l),o<n?window.requestAnimationFrame(t):r(e)}()}function P(e,t){var n=e.getBoundingClientRect(),r=t.getBoundingClientRect(),a=t.offsetHeight/3;r.bottom+a>n.bottom?C(e,Math.min(t.offsetTop+t.clientHeight-e.offsetHeight+a,e.scrollHeight)):r.top-a<n.top&&C(e,Math.max(t.offsetTop-a,0))}function A(){try{return document.createEvent("TouchEvent"),!0}catch(e){return!1}}function O(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch(e){return!1}}var M=!1,T={get passive(){return M=!0}},I="undefined"!=typeof window?window:{};I.addEventListener&&I.removeEventListener&&(I.addEventListener("p",g,T),I.removeEventListener("p",g,!1));var D=2690==n.j?M:null;function L(e){return null!=e}function R(e,t,n){return e?t:n}function j(e){return e}function F(e){return e}var V=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return Object.entries(e).filter(function(e){var t=(0,o.A)(e,1)[0];return!n.includes(t)}).reduce(function(e,t){var n=(0,o.A)(t,2),r=n[0],a=n[1];return e[r]=a,e},{})},N=2690==n.j?["children","innerProps"]:null,B=2690==n.j?["children","innerProps"]:null;var z,H=function(e){return"auto"===e?"bottom":e},G=function(e,t){var n,a=e.placement,i=e.theme,o=i.borderRadius,s=i.spacing,l=i.colors;return(0,r.A)((n={label:"menu"},(0,u.A)(n,function(e){return e?{bottom:"top",top:"bottom"}[e]:"bottom"}(a),"100%"),(0,u.A)(n,"position","absolute"),(0,u.A)(n,"width","100%"),(0,u.A)(n,"zIndex",1),n),t?{}:{backgroundColor:l.neutral0,borderRadius:o,boxShadow:"0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",marginBottom:s.menuGutter,marginTop:s.menuGutter})},W=2690==n.j?(0,f.createContext)(null):null,U=function(e){var t=e.children,n=e.minMenuHeight,a=e.maxMenuHeight,i=e.menuPlacement,s=e.menuPosition,l=e.menuShouldScrollIntoView,c=e.theme,u=((0,f.useContext)(W)||{}).setPortalPlacement,h=(0,f.useRef)(null),p=(0,f.useState)(a),m=(0,o.A)(p,2),g=m[0],y=m[1],v=(0,f.useState)(null),b=(0,o.A)(v,2),_=b[0],w=b[1],S=c.spacing.controlHeight;return(0,d.A)(function(){var e=h.current;if(e){var t="fixed"===s,r=function(e){var t=e.maxHeight,n=e.menuEl,r=e.minHeight,a=e.placement,i=e.shouldScroll,o=e.isFixedPosition,s=e.controlHeight,l=function(e){var t=getComputedStyle(e),n="absolute"===t.position,r=/(auto|scroll)/;if("fixed"===t.position)return document.documentElement;for(var a=e;a=a.parentElement;)if(t=getComputedStyle(a),(!n||"static"!==t.position)&&r.test(t.overflow+t.overflowY+t.overflowX))return a;return document.documentElement}(n),c={placement:"bottom",maxHeight:t};if(!n||!n.offsetParent)return c;var u,f=l.getBoundingClientRect().height,h=n.getBoundingClientRect(),p=h.bottom,d=h.height,m=h.top,g=n.offsetParent.getBoundingClientRect().top,y=o||x(u=l)?window.innerHeight:u.clientHeight,v=k(l),b=parseInt(getComputedStyle(n).marginBottom,10),_=parseInt(getComputedStyle(n).marginTop,10),w=g-_,S=y-m,P=w+v,A=f-v-m,O=p-y+v+b,M=v+m-_,T=160;switch(a){case"auto":case"bottom":if(S>=d)return{placement:"bottom",maxHeight:t};if(A>=d&&!o)return i&&E(l,O,T),{placement:"bottom",maxHeight:t};if(!o&&A>=r||o&&S>=r)return i&&E(l,O,T),{placement:"bottom",maxHeight:o?S-b:A-b};if("auto"===a||o){var I=t,D=o?w:P;return D>=r&&(I=Math.min(D-b-s,t)),{placement:"top",maxHeight:I}}if("bottom"===a)return i&&C(l,O),{placement:"bottom",maxHeight:t};break;case"top":if(w>=d)return{placement:"top",maxHeight:t};if(P>=d&&!o)return i&&E(l,M,T),{placement:"top",maxHeight:t};if(!o&&P>=r||o&&w>=r){var L=t;return(!o&&P>=r||o&&w>=r)&&(L=o?w-_:P-_),i&&E(l,M,T),{placement:"top",maxHeight:L}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(a,'".'))}return c}({maxHeight:a,menuEl:e,minHeight:n,placement:i,shouldScroll:l&&!t,isFixedPosition:t,controlHeight:S});y(r.maxHeight),w(r.placement),null==u||u(r.placement)}},[a,i,s,l,n,u,S]),t({ref:h,placerProps:(0,r.A)((0,r.A)({},e),{},{placement:_||H(i),maxHeight:g})})},$=2690==n.j?function(e){var t=e.children,n=e.innerRef,r=e.innerProps;return(0,i.Y)("div",(0,a.A)({},w(e,"menu",{menu:!0}),{ref:n},r),t)}:null,q=function(e,t){var n=e.maxHeight,a=e.theme.spacing.baseUnit;return(0,r.A)({maxHeight:n,overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},t?{}:{paddingBottom:a,paddingTop:a})},Y=function(e,t){var n=e.theme,a=n.spacing.baseUnit,i=n.colors;return(0,r.A)({textAlign:"center"},t?{}:{color:i.neutral40,padding:"".concat(2*a,"px ").concat(3*a,"px")})},K=2690==n.j?Y:null,X=2690==n.j?Y:null,J=function(e){var t=e.rect,n=e.offset,r=e.position;return{left:t.left,position:r,top:n,width:t.width,zIndex:1}},Z=function(e){var t=e.isDisabled;return{label:"container",direction:e.isRtl?"rtl":void 0,pointerEvents:t?"none":void 0,position:"relative"}},Q=function(e,t){var n=e.theme.spacing,a=e.isMulti,i=e.hasValue,o=e.selectProps.controlShouldRenderValue;return(0,r.A)({alignItems:"center",display:a&&i&&o?"flex":"grid",flex:1,flexWrap:"wrap",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"},t?{}:{padding:"".concat(n.baseUnit/2,"px ").concat(2*n.baseUnit,"px")})},ee=function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},te=2690==n.j?["size"]:null,ne=2690==n.j?["innerProps","isRtl","size"]:null,re=2690==n.j?{name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"}:null,ae=function(e){var t=e.size,n=(0,s.A)(e,te);return(0,i.Y)("svg",(0,a.A)({height:t,width:t,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:re},n))},ie=function(e){return(0,i.Y)(ae,(0,a.A)({size:20},e),(0,i.Y)("path",{d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}))},oe=function(e){return(0,i.Y)(ae,(0,a.A)({size:20},e),(0,i.Y)("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"}))},se=function(e,t){var n=e.isFocused,a=e.theme,i=a.spacing.baseUnit,o=a.colors;return(0,r.A)({label:"indicatorContainer",display:"flex",transition:"color 150ms"},t?{}:{color:n?o.neutral60:o.neutral20,padding:2*i,":hover":{color:n?o.neutral80:o.neutral40}})},le=2690==n.j?se:null,ce=2690==n.j?se:null,ue=function(e,t){var n=e.isDisabled,a=e.theme,i=a.spacing.baseUnit,o=a.colors;return(0,r.A)({label:"indicatorSeparator",alignSelf:"stretch",width:1},t?{}:{backgroundColor:n?o.neutral10:o.neutral20,marginBottom:2*i,marginTop:2*i})},fe=(0,i.i7)(z||(z=(0,c.A)(["\n  0%, 80%, 100% { opacity: 0; }\n  40% { opacity: 1; }\n"]))),he=function(e,t){var n=e.isFocused,a=e.size,i=e.theme,o=i.colors,s=i.spacing.baseUnit;return(0,r.A)({label:"loadingIndicator",display:"flex",transition:"color 150ms",alignSelf:"center",fontSize:a,lineHeight:1,marginRight:a,textAlign:"center",verticalAlign:"middle"},t?{}:{color:n?o.neutral60:o.neutral20,padding:2*s})},pe=function(e){var t=e.delay,n=e.offset;return(0,i.Y)("span",{css:(0,i.AH)({animation:"".concat(fe," 1s ease-in-out ").concat(t,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:n?"1em":void 0,height:"1em",verticalAlign:"top",width:"1em"},"","")})},de=function(e,t){var n=e.isDisabled,a=e.isFocused,i=e.theme,o=i.colors,s=i.borderRadius,l=i.spacing;return(0,r.A)({label:"control",alignItems:"center",cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:l.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms"},t?{}:{backgroundColor:n?o.neutral5:o.neutral0,borderColor:n?o.neutral10:a?o.primary:o.neutral20,borderRadius:s,borderStyle:"solid",borderWidth:1,boxShadow:a?"0 0 0 1px ".concat(o.primary):void 0,"&:hover":{borderColor:a?o.primary:o.neutral30}})},me=2690==n.j?function(e){var t=e.children,n=e.isDisabled,r=e.isFocused,o=e.innerRef,s=e.innerProps,l=e.menuIsOpen;return(0,i.Y)("div",(0,a.A)({ref:o},w(e,"control",{control:!0,"control--is-disabled":n,"control--is-focused":r,"control--menu-is-open":l}),s,{"aria-disabled":n||void 0}),t)}:null,ge=2690==n.j?["data"]:null,ye=function(e,t){var n=e.theme.spacing;return t?{}:{paddingBottom:2*n.baseUnit,paddingTop:2*n.baseUnit}},ve=function(e,t){var n=e.theme,a=n.colors,i=n.spacing;return(0,r.A)({label:"group",cursor:"default",display:"block"},t?{}:{color:a.neutral40,fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:3*i.baseUnit,paddingRight:3*i.baseUnit,textTransform:"uppercase"})},be=2690==n.j?function(e){var t=e.children,n=e.cx,r=e.getStyles,o=e.getClassNames,s=e.Heading,l=e.headingProps,c=e.innerProps,u=e.label,f=e.theme,h=e.selectProps;return(0,i.Y)("div",(0,a.A)({},w(e,"group",{group:!0}),c),(0,i.Y)(s,(0,a.A)({},l,{selectProps:h,theme:f,getStyles:r,getClassNames:o,cx:n}),u),(0,i.Y)("div",null,t))}:null,_e=2690==n.j?["innerRef","isDisabled","isHidden","inputClassName"]:null,we=function(e,t){var n=e.isDisabled,a=e.value,i=e.theme,o=i.spacing,s=i.colors;return(0,r.A)((0,r.A)({visibility:n?"hidden":"visible",transform:a?"translateZ(0)":""},xe),t?{}:{margin:o.baseUnit/2,paddingBottom:o.baseUnit/2,paddingTop:o.baseUnit/2,color:s.neutral80})},Se={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},xe={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":(0,r.A)({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},Se)},ke=function(e){return(0,r.A)({label:"input",color:"inherit",background:0,opacity:e?0:1,width:"100%"},Se)},Ce=2690==n.j?function(e){var t=e.cx,n=e.value,r=_(e),o=r.innerRef,l=r.isDisabled,c=r.isHidden,u=r.inputClassName,f=(0,s.A)(r,_e);return(0,i.Y)("div",(0,a.A)({},w(e,"input",{"input-container":!0}),{"data-value":n||""}),(0,i.Y)("input",(0,a.A)({className:t({input:!0},u),ref:o,style:ke(c),disabled:l},f)))}:null,Ee=function(e,t){var n=e.theme,a=n.spacing,i=n.borderRadius,o=n.colors;return(0,r.A)({label:"multiValue",display:"flex",minWidth:0},t?{}:{backgroundColor:o.neutral10,borderRadius:i/2,margin:a.baseUnit/2})},Pe=function(e,t){var n=e.theme,a=n.borderRadius,i=n.colors,o=e.cropWithEllipsis;return(0,r.A)({overflow:"hidden",textOverflow:o||void 0===o?"ellipsis":void 0,whiteSpace:"nowrap"},t?{}:{borderRadius:a/2,color:i.neutral80,fontSize:"85%",padding:3,paddingLeft:6})},Ae=function(e,t){var n=e.theme,a=n.spacing,i=n.borderRadius,o=n.colors,s=e.isFocused;return(0,r.A)({alignItems:"center",display:"flex"},t?{}:{borderRadius:i/2,backgroundColor:s?o.dangerLight:void 0,paddingLeft:a.baseUnit,paddingRight:a.baseUnit,":hover":{backgroundColor:o.dangerLight,color:o.danger}})},Oe=function(e){var t=e.children,n=e.innerProps;return(0,i.Y)("div",n,t)},Me=2690==n.j?Oe:null,Te=2690==n.j?Oe:null,Ie=2690==n.j?function(e){var t=e.children,n=e.components,a=e.data,o=e.innerProps,s=e.isDisabled,l=e.removeProps,c=e.selectProps,u=n.Container,f=n.Label,h=n.Remove;return(0,i.Y)(u,{data:a,innerProps:(0,r.A)((0,r.A)({},w(e,"multiValue",{"multi-value":!0,"multi-value--is-disabled":s})),o),selectProps:c},(0,i.Y)(f,{data:a,innerProps:(0,r.A)({},w(e,"multiValueLabel",{"multi-value__label":!0})),selectProps:c},t),(0,i.Y)(h,{data:a,innerProps:(0,r.A)((0,r.A)({},w(e,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(t||"option")},l),selectProps:c}))}:null,De=function(e,t){var n=e.isDisabled,a=e.isFocused,i=e.isSelected,o=e.theme,s=o.spacing,l=o.colors;return(0,r.A)({label:"option",cursor:"default",display:"block",fontSize:"inherit",width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)"},t?{}:{backgroundColor:i?l.primary:a?l.primary25:"transparent",color:n?l.neutral20:i?l.neutral0:"inherit",padding:"".concat(2*s.baseUnit,"px ").concat(3*s.baseUnit,"px"),":active":{backgroundColor:n?void 0:i?l.primary:l.primary50}})},Le=2690==n.j?function(e){var t=e.children,n=e.isDisabled,r=e.isFocused,o=e.isSelected,s=e.innerRef,l=e.innerProps;return(0,i.Y)("div",(0,a.A)({},w(e,"option",{option:!0,"option--is-disabled":n,"option--is-focused":r,"option--is-selected":o}),{ref:s,"aria-disabled":n},l),t)}:null,Re=function(e,t){var n=e.theme,a=n.spacing,i=n.colors;return(0,r.A)({label:"placeholder",gridArea:"1 / 1 / 2 / 3"},t?{}:{color:i.neutral50,marginLeft:a.baseUnit/2,marginRight:a.baseUnit/2})},je=2690==n.j?function(e){var t=e.children,n=e.innerProps;return(0,i.Y)("div",(0,a.A)({},w(e,"placeholder",{placeholder:!0}),n),t)}:null,Fe=function(e,t){var n=e.isDisabled,a=e.theme,i=a.spacing,o=a.colors;return(0,r.A)({label:"singleValue",gridArea:"1 / 1 / 2 / 3",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t?{}:{color:n?o.neutral40:o.neutral80,marginLeft:i.baseUnit/2,marginRight:i.baseUnit/2})},Ve=2690==n.j?function(e){var t=e.children,n=e.isDisabled,r=e.innerProps;return(0,i.Y)("div",(0,a.A)({},w(e,"singleValue",{"single-value":!0,"single-value--is-disabled":n}),r),t)}:null,Ne=2690==n.j?{ClearIndicator:function(e){var t=e.children,n=e.innerProps;return(0,i.Y)("div",(0,a.A)({},w(e,"clearIndicator",{indicator:!0,"clear-indicator":!0}),n),t||(0,i.Y)(ie,null))},Control:me,DropdownIndicator:function(e){var t=e.children,n=e.innerProps;return(0,i.Y)("div",(0,a.A)({},w(e,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),n),t||(0,i.Y)(oe,null))},DownChevron:oe,CrossIcon:ie,Group:be,GroupHeading:function(e){var t=_(e);t.data;var n=(0,s.A)(t,ge);return(0,i.Y)("div",(0,a.A)({},w(e,"groupHeading",{"group-heading":!0}),n))},IndicatorsContainer:function(e){var t=e.children,n=e.innerProps;return(0,i.Y)("div",(0,a.A)({},w(e,"indicatorsContainer",{indicators:!0}),n),t)},IndicatorSeparator:function(e){var t=e.innerProps;return(0,i.Y)("span",(0,a.A)({},t,w(e,"indicatorSeparator",{"indicator-separator":!0})))},Input:Ce,LoadingIndicator:function(e){var t=e.innerProps,n=e.isRtl,o=e.size,l=void 0===o?4:o,c=(0,s.A)(e,ne);return(0,i.Y)("div",(0,a.A)({},w((0,r.A)((0,r.A)({},c),{},{innerProps:t,isRtl:n,size:l}),"loadingIndicator",{indicator:!0,"loading-indicator":!0}),t),(0,i.Y)(pe,{delay:0,offset:n}),(0,i.Y)(pe,{delay:160,offset:!0}),(0,i.Y)(pe,{delay:320,offset:!n}))},Menu:$,MenuList:function(e){var t=e.children,n=e.innerProps,r=e.innerRef,o=e.isMulti;return(0,i.Y)("div",(0,a.A)({},w(e,"menuList",{"menu-list":!0,"menu-list--is-multi":o}),{ref:r},n),t)},MenuPortal:function(e){var t=e.appendTo,n=e.children,s=e.controlElement,l=e.innerProps,c=e.menuPlacement,u=e.menuPosition,m=(0,f.useRef)(null),g=(0,f.useRef)(null),y=(0,f.useState)(H(c)),v=(0,o.A)(y,2),b=v[0],_=v[1],S=(0,f.useMemo)(function(){return{setPortalPlacement:_}},[]),x=(0,f.useState)(null),k=(0,o.A)(x,2),C=k[0],E=k[1],P=(0,f.useCallback)(function(){if(s){var e=function(e){var t=e.getBoundingClientRect();return{bottom:t.bottom,height:t.height,left:t.left,right:t.right,top:t.top,width:t.width}}(s),t="fixed"===u?0:window.pageYOffset,n=e[b]+t;n===(null==C?void 0:C.offset)&&e.left===(null==C?void 0:C.rect.left)&&e.width===(null==C?void 0:C.rect.width)||E({offset:n,rect:e})}},[s,u,b,null==C?void 0:C.offset,null==C?void 0:C.rect.left,null==C?void 0:C.rect.width]);(0,d.A)(function(){P()},[P]);var A=(0,f.useCallback)(function(){"function"==typeof g.current&&(g.current(),g.current=null),s&&m.current&&(g.current=(0,p.ll)(s,m.current,P,{elementResize:"ResizeObserver"in window}))},[s,P]);(0,d.A)(function(){A()},[A]);var O=(0,f.useCallback)(function(e){m.current=e,A()},[A]);if(!t&&"fixed"!==u||!C)return null;var M=(0,i.Y)("div",(0,a.A)({ref:O},w((0,r.A)((0,r.A)({},e),{},{offset:C.offset,position:u,rect:C.rect}),"menuPortal",{"menu-portal":!0}),l),n);return(0,i.Y)(W.Provider,{value:S},t?(0,h.createPortal)(M,t):M)},LoadingMessage:function(e){var t=e.children,n=void 0===t?"Loading...":t,o=e.innerProps,l=(0,s.A)(e,B);return(0,i.Y)("div",(0,a.A)({},w((0,r.A)((0,r.A)({},l),{},{children:n,innerProps:o}),"loadingMessage",{"menu-notice":!0,"menu-notice--loading":!0}),o),n)},NoOptionsMessage:function(e){var t=e.children,n=void 0===t?"No options":t,o=e.innerProps,l=(0,s.A)(e,N);return(0,i.Y)("div",(0,a.A)({},w((0,r.A)((0,r.A)({},l),{},{children:n,innerProps:o}),"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),o),n)},MultiValue:Ie,MultiValueContainer:Me,MultiValueLabel:Te,MultiValueRemove:function(e){var t=e.children,n=e.innerProps;return(0,i.Y)("div",(0,a.A)({role:"button"},n),t||(0,i.Y)(ie,{size:14}))},Option:Le,Placeholder:je,SelectContainer:function(e){var t=e.children,n=e.innerProps,r=e.isDisabled,o=e.isRtl;return(0,i.Y)("div",(0,a.A)({},w(e,"container",{"--is-disabled":r,"--is-rtl":o}),n),t)},SingleValue:Ve,ValueContainer:function(e){var t=e.children,n=e.innerProps,r=e.isMulti,o=e.hasValue;return(0,i.Y)("div",(0,a.A)({},w(e,"valueContainer",{"value-container":!0,"value-container--is-multi":r,"value-container--has-value":o}),n),t)}}:null,Be=function(e){return(0,r.A)((0,r.A)({},Ne),e.components)}},77511(e,t,n){"use strict";if(n.d(t,{Ay:()=>l}),2690==n.j)var r=n(46630);if(2690==n.j)var a=n(34036);var i=n(51609);if(2690==n.j)var o=n(5506);n(75795),n(71393);var s=2690==n.j?(0,i.forwardRef)(function(e,t){var n=(0,r.u)(e);return i.createElement(o.S,(0,a.A)({ref:t},n))}):null,l=2690==n.j?s:null},74759(e,t,n){"use strict";if(n.d(t,{u:()=>u}),2690==n.j)var r=n(53711);if(2690==n.j)var a=n(7711);if(2690==n.j)var i=n(50809);if(2690==n.j)var o=n(48465);var s=n(51609);if(2690==n.j)var l=n(17854);var c=2690==n.j?["defaultOptions","cacheOptions","loadOptions","options","isLoading","onInputChange","filterOption"]:null;function u(e){var t=e.defaultOptions,n=void 0!==t&&t,u=e.cacheOptions,f=void 0!==u&&u,h=e.loadOptions;e.options;var p=e.isLoading,d=void 0!==p&&p,m=e.onInputChange,g=e.filterOption,y=void 0===g?null:g,v=(0,o.A)(e,c),b=v.inputValue,_=(0,s.useRef)(void 0),w=(0,s.useRef)(!1),S=(0,s.useState)(Array.isArray(n)?n:void 0),x=(0,i.A)(S,2),k=x[0],C=x[1],E=(0,s.useState)(void 0!==b?b:""),P=(0,i.A)(E,2),A=P[0],O=P[1],M=(0,s.useState)(!0===n),T=(0,i.A)(M,2),I=T[0],D=T[1],L=(0,s.useState)(void 0),R=(0,i.A)(L,2),j=R[0],F=R[1],V=(0,s.useState)([]),N=(0,i.A)(V,2),B=N[0],z=N[1],H=(0,s.useState)(!1),G=(0,i.A)(H,2),W=G[0],U=G[1],$=(0,s.useState)({}),q=(0,i.A)($,2),Y=q[0],K=q[1],X=(0,s.useState)(void 0),J=(0,i.A)(X,2),Z=J[0],Q=J[1],ee=(0,s.useState)(void 0),te=(0,i.A)(ee,2),ne=te[0],re=te[1];f!==ne&&(K({}),re(f)),n!==Z&&(C(Array.isArray(n)?n:void 0),Q(n)),(0,s.useEffect)(function(){return w.current=!0,function(){w.current=!1}},[]);var ae=(0,s.useCallback)(function(e,t){if(!h)return t();var n=h(e,t);n&&"function"==typeof n.then&&n.then(t,function(){return t()})},[h]);(0,s.useEffect)(function(){!0===n&&ae(A,function(e){w.current&&(C(e||[]),D(!!_.current))})},[]);var ie=(0,s.useCallback)(function(e,t){var n=(0,l.L)(e,t,m);if(!n)return _.current=void 0,O(""),F(""),z([]),D(!1),void U(!1);if(f&&Y[n])O(n),F(n),z(Y[n]),D(!1),U(!1);else{var i=_.current={};O(n),D(!0),U(!j),ae(n,function(e){w&&i===_.current&&(_.current=void 0,D(!1),F(n),z(e||[]),U(!1),K(e?(0,a.A)((0,a.A)({},Y),{},(0,r.A)({},n,e)):Y))})}},[f,ae,j,Y,m]),oe=W?[]:A&&j?B:k||[];return(0,a.A)((0,a.A)({},v),{},{options:oe,isLoading:I||d,onInputChange:ie,filterOption:y})}},46630(e,t,n){"use strict";if(n.d(t,{u:()=>l}),2690==n.j)var r=n(7711);if(2690==n.j)var a=n(50809);if(2690==n.j)var i=n(48465);var o=n(51609),s=2690==n.j?["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"]:null;function l(e){var t=e.defaultInputValue,n=void 0===t?"":t,l=e.defaultMenuIsOpen,c=void 0!==l&&l,u=e.defaultValue,f=void 0===u?null:u,h=e.inputValue,p=e.menuIsOpen,d=e.onChange,m=e.onInputChange,g=e.onMenuClose,y=e.onMenuOpen,v=e.value,b=(0,i.A)(e,s),_=(0,o.useState)(void 0!==h?h:n),w=(0,a.A)(_,2),S=w[0],x=w[1],k=(0,o.useState)(void 0!==p?p:c),C=(0,a.A)(k,2),E=C[0],P=C[1],A=(0,o.useState)(void 0!==v?v:f),O=(0,a.A)(A,2),M=O[0],T=O[1],I=(0,o.useCallback)(function(e,t){"function"==typeof d&&d(e,t),T(e)},[d]),D=(0,o.useCallback)(function(e,t){var n;"function"==typeof m&&(n=m(e,t)),x(void 0!==n?n:e)},[m]),L=(0,o.useCallback)(function(){"function"==typeof y&&y(),P(!0)},[y]),R=(0,o.useCallback)(function(){"function"==typeof g&&g(),P(!1)},[g]),j=void 0!==h?h:S,F=void 0!==p?p:E,V=void 0!==v?v:M;return(0,r.A)((0,r.A)({},b),{},{inputValue:j,menuIsOpen:F,onChange:I,onInputChange:D,onMenuClose:R,onMenuOpen:L,value:V})}},50231(e,t,n){"use strict";if(n.d(t,{D:()=>V,Zj:()=>K,q6:()=>$}),2690==n.j)var r=n(34036);if(2690==n.j)var a=n(50809);if(2690==n.j)var i=n(79853);var o=n(7777),s=n(60745);if(2690==n.j)var l=n(42962);if(2690==n.j)var c=n(58446);if(2690==n.j)var u=n(15521);if(2690==n.j)var f=n(90141);var h=n(53711),p=n(51609),d=n(75795),m=n(99253),g=n.n(m);if(2690==n.j)var y=n(78438);var v=n(96310),b=n.n(v),_=function(){function e(){(0,o.A)(this,e),(0,h.A)(this,"refs",{})}return(0,s.A)(e,[{key:"add",value:function(e,t){this.refs[e]||(this.refs[e]=[]),this.refs[e].push(t)}},{key:"remove",value:function(e,t){var n=this.getIndex(e,t);-1!==n&&this.refs[e].splice(n,1)}},{key:"isActive",value:function(){return this.active}},{key:"getActive",value:function(){var e=this;return this.refs[this.active.collection].find(function(t){return t.node.sortableInfo.index==e.active.index})}},{key:"getIndex",value:function(e,t){return this.refs[e].indexOf(t)}},{key:"getOrderedRefs",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.active.collection;return this.refs[e].sort(w)}}]),e}();function w(e,t){return e.node.sortableInfo.index-t.node.sortableInfo.index}function S(e,t){return Object.keys(e).reduce(function(n,r){return-1===t.indexOf(r)&&(n[r]=e[r]),n},{})}var x=2690==n.j?{end:["touchend","touchcancel","mouseup"],move:["touchmove","mousemove"],start:["touchstart","mousedown"]}:null,k=function(){if("undefined"==typeof window||"undefined"==typeof document)return"";var e=window.getComputedStyle(document.documentElement,"")||["-moz-hidden-iframe"],t=(Array.prototype.slice.call(e).join("").match(/-(moz|webkit|ms)-/)||""===e.OLink&&["","o"])[1];return"ms"===t?"ms":t&&t.length?t[0].toUpperCase()+t.substr(1):""}();function C(e,t){Object.keys(t).forEach(function(n){e.style[n]=t[n]})}function E(e,t){e.style["".concat(k,"Transform")]=null==t?"":"translate3d(".concat(t.x,"px,").concat(t.y,"px,0)")}function P(e,t){e.style["".concat(k,"TransitionDuration")]=null==t?"":"".concat(t,"ms")}function A(e,t){for(;e;){if(t(e))return e;e=e.parentNode}return null}function O(e,t,n){return Math.max(e,Math.min(n,t))}function M(e){return"px"===e.substr(-2)?parseFloat(e):0}function T(e,t){var n=t.displayName||t.name;return n?"".concat(e,"(").concat(n,")"):e}function I(e,t){var n=e.getBoundingClientRect();return{top:n.top+t.top,left:n.left+t.left}}function D(e){return e.touches&&e.touches.length?{x:e.touches[0].pageX,y:e.touches[0].pageY}:e.changedTouches&&e.changedTouches.length?{x:e.changedTouches[0].pageX,y:e.changedTouches[0].pageY}:{x:e.pageX,y:e.pageY}}function L(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{left:0,top:0};if(e){var r={left:n.left+e.offsetLeft,top:n.top+e.offsetTop};return e.parentNode===t?r:L(e.parentNode,t,r)}}function R(e){var t=e.lockOffset,n=e.width,r=e.height,a=t,i=t,o="px";if("string"==typeof t){var s=/^[+-]?\d*(?:\.\d*)?(px|%)$/.exec(t);g()(null!==s,'lockOffset value should be a number or a string of a number followed by "px" or "%". Given %s',t),a=parseFloat(t),i=parseFloat(t),o=s[1]}return g()(isFinite(a)&&isFinite(i),"lockOffset value should be a finite. Given %s",t),"%"===o&&(a=a*n/100,i=i*r/100),{x:a,y:i}}function j(e){return e instanceof HTMLElement?function(e){var t=window.getComputedStyle(e),n=/(auto|scroll)/;return["overflow","overflowX","overflowY"].find(function(e){return n.test(t[e])})}(e)?e:j(e.parentNode):null}var F=2690==n.j?{Anchor:"A",Button:"BUTTON",Canvas:"CANVAS",Input:"INPUT",Option:"OPTION",Textarea:"TEXTAREA",Select:"SELECT"}:null;function V(e){var t,n,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{withRef:!1};return n=t=function(t){function n(){var e,t;(0,o.A)(this,n);for(var r=arguments.length,a=new Array(r),i=0;i<r;i++)a[i]=arguments[i];return t=(0,l.A)(this,(e=(0,c.A)(n)).call.apply(e,[this].concat(a))),(0,h.A)((0,f.A)((0,f.A)(t)),"wrappedInstance",(0,p.createRef)()),t}return(0,u.A)(n,t),(0,s.A)(n,[{key:"componentDidMount",value:function(){(0,d.findDOMNode)(this).sortableHandle=!0}},{key:"getWrappedInstance",value:function(){return g()(a.withRef,"To access the wrapped instance, you need to pass in {withRef: true} as the second argument of the SortableHandle() call"),this.wrappedInstance.current}},{key:"render",value:function(){var t=a.withRef?this.wrappedInstance:null;return(0,p.createElement)(e,(0,r.A)({ref:t},this.props))}}]),n}(p.Component),(0,h.A)(t,"displayName",T("sortableHandle",e)),n}function N(e){return null!=e.sortableHandle}var B=function(){function e(t,n){(0,o.A)(this,e),this.container=t,this.onScrollCallback=n}return(0,s.A)(e,[{key:"clear",value:function(){null!=this.interval&&(clearInterval(this.interval),this.interval=null)}},{key:"update",value:function(e){var t=this,n=e.translate,r=e.minTranslate,a=e.maxTranslate,i=e.width,o=e.height,s={x:0,y:0},l={x:1,y:1},c=this.container,u=c.scrollTop,f=c.scrollLeft,h=c.scrollHeight,p=c.scrollWidth,d=0===u,m=h-u-c.clientHeight===0,g=0===f,y=p-f-c.clientWidth===0;n.y>=a.y-o/2&&!m?(s.y=1,l.y=10*Math.abs((a.y-o/2-n.y)/o)):n.x>=a.x-i/2&&!y?(s.x=1,l.x=10*Math.abs((a.x-i/2-n.x)/i)):n.y<=r.y+o/2&&!d?(s.y=-1,l.y=10*Math.abs((n.y-o/2-r.y)/o)):n.x<=r.x+i/2&&!g&&(s.x=-1,l.x=10*Math.abs((n.x-i/2-r.x)/i)),this.interval&&(this.clear(),this.isAutoScrolling=!1),0===s.x&&0===s.y||(this.interval=setInterval(function(){t.isAutoScrolling=!0;var e={left:l.x*s.x,top:l.y*s.y};t.container.scrollTop+=e.top,t.container.scrollLeft+=e.left,t.onScrollCallback(e)},5))}}]),e}(),z={axis:b().oneOf(["x","y","xy"]),contentWindow:b().any,disableAutoscroll:b().bool,distance:b().number,getContainer:b().func,getHelperDimensions:b().func,helperClass:b().string,helperContainer:b().oneOfType([b().func,"undefined"==typeof HTMLElement?b().any:b().instanceOf(HTMLElement)]),hideSortableGhost:b().bool,keyboardSortingTransitionDuration:b().number,lockAxis:b().string,lockOffset:b().oneOfType([b().number,b().string,b().arrayOf(b().oneOfType([b().number,b().string]))]),lockToContainerEdges:b().bool,onSortEnd:b().func,onSortMove:b().func,onSortOver:b().func,onSortStart:b().func,pressDelay:b().number,pressThreshold:b().number,keyCodes:b().shape({lift:b().arrayOf(b().number),drop:b().arrayOf(b().number),cancel:b().arrayOf(b().number),up:b().arrayOf(b().number),down:b().arrayOf(b().number)}),shouldCancelStart:b().func,transitionDuration:b().number,updateBeforeSortStart:b().func,useDragHandle:b().bool,useWindowAsScrollContainer:b().bool},H={lift:[32],drop:[32],cancel:[27],up:[38,37],down:[40,39]},G=2690==n.j?{axis:"y",disableAutoscroll:!1,distance:0,getHelperDimensions:function(e){var t=e.node;return{height:t.offsetHeight,width:t.offsetWidth}},hideSortableGhost:!0,lockOffset:"50%",lockToContainerEdges:!1,pressDelay:0,pressThreshold:5,keyCodes:H,shouldCancelStart:function(e){return-1!==[F.Input,F.Textarea,F.Select,F.Option,F.Button].indexOf(e.target.tagName)||!!A(e.target,function(e){return"true"===e.contentEditable})},transitionDuration:300,useWindowAsScrollContainer:!1}:null,W=Object.keys(z),U=(0,p.createContext)({manager:{}});function $(e){var t,n,m=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{withRef:!1};return n=t=function(t){function n(e){var t;(0,o.A)(this,n),t=(0,l.A)(this,(0,c.A)(n).call(this,e)),(0,h.A)((0,f.A)((0,f.A)(t)),"state",{}),(0,h.A)((0,f.A)((0,f.A)(t)),"handleStart",function(e){var n=t.props,r=n.distance,a=n.shouldCancelStart;if(2!==e.button&&!a(e)){t.touched=!0,t.position=D(e);var i=A(e.target,function(e){return null!=e.sortableInfo});if(i&&i.sortableInfo&&t.nodeIsChild(i)&&!t.state.sorting){var o=t.props.useDragHandle,s=i.sortableInfo,l=s.index,c=s.collection;if(s.disabled)return;if(o&&!A(e.target,N))return;t.manager.active={collection:c,index:l},function(e){return e.touches&&e.touches.length||e.changedTouches&&e.changedTouches.length}(e)||e.target.tagName!==F.Anchor||e.preventDefault(),r||(0===t.props.pressDelay?t.handlePress(e):t.pressTimer=setTimeout(function(){return t.handlePress(e)},t.props.pressDelay))}}}),(0,h.A)((0,f.A)((0,f.A)(t)),"nodeIsChild",function(e){return e.sortableInfo.manager===t.manager}),(0,h.A)((0,f.A)((0,f.A)(t)),"handleMove",function(e){var n=t.props,r=n.distance,a=n.pressThreshold;if(!t.state.sorting&&t.touched&&!t._awaitingUpdateBeforeSortStart){var i=D(e),o={x:t.position.x-i.x,y:t.position.y-i.y},s=Math.abs(o.x)+Math.abs(o.y);t.delta=o,r||a&&!(s>=a)?r&&s>=r&&t.manager.isActive()&&t.handlePress(e):(clearTimeout(t.cancelTimer),t.cancelTimer=setTimeout(t.cancel,0))}}),(0,h.A)((0,f.A)((0,f.A)(t)),"handleEnd",function(){t.touched=!1,t.cancel()}),(0,h.A)((0,f.A)((0,f.A)(t)),"cancel",function(){var e=t.props.distance;t.state.sorting||(e||clearTimeout(t.pressTimer),t.manager.active=null)}),(0,h.A)((0,f.A)((0,f.A)(t)),"handlePress",function(e){try{var n=t.manager.getActive(),r=function(){if(n){var r=function(){var n,r,a,u,g,v,b=p.sortableInfo.index,_=(n=p,{bottom:M((r=window.getComputedStyle(n)).marginBottom),left:M(r.marginLeft),right:M(r.marginRight),top:M(r.marginTop)}),w=function(e){var t=window.getComputedStyle(e);return"grid"===t.display?{x:M(t.gridColumnGap),y:M(t.gridRowGap)}:{x:0,y:0}}(t.container),S=t.scrollContainer.getBoundingClientRect(),k=s({index:b,node:p,collection:d});if(t.node=p,t.margin=_,t.gridGap=w,t.width=k.width,t.height=k.height,t.marginOffset={x:t.margin.left+t.margin.right+t.gridGap.x,y:Math.max(t.margin.top,t.margin.bottom,t.gridGap.y)},t.boundingClientRect=p.getBoundingClientRect(),t.containerBoundingRect=S,t.index=b,t.newIndex=b,t.axis={x:o.indexOf("x")>=0,y:o.indexOf("y")>=0},t.offsetEdge=L(p,t.container),t.initialOffset=D(m?(0,i.A)({},e,{pageX:t.boundingClientRect.left,pageY:t.boundingClientRect.top}):e),t.initialScroll={left:t.scrollContainer.scrollLeft,top:t.scrollContainer.scrollTop},t.initialWindowScroll={left:window.pageXOffset,top:window.pageYOffset},t.helper=t.helperContainer.appendChild((u="input, textarea, select, canvas, [contenteditable]",g=(a=p).querySelectorAll(u),v=a.cloneNode(!0),(0,y.A)(v.querySelectorAll(u)).forEach(function(e,t){"file"!==e.type&&(e.value=g[t].value),"radio"===e.type&&e.name&&(e.name="__sortableClone__".concat(e.name)),e.tagName===F.Canvas&&g[t].width>0&&g[t].height>0&&e.getContext("2d").drawImage(g[t],0,0)}),v)),C(t.helper,{boxSizing:"border-box",height:"".concat(t.height,"px"),left:"".concat(t.boundingClientRect.left-_.left,"px"),pointerEvents:"none",position:"fixed",top:"".concat(t.boundingClientRect.top-_.top,"px"),width:"".concat(t.width,"px")}),m&&t.helper.focus(),c&&(t.sortableGhost=p,C(p,{opacity:0,visibility:"hidden"})),t.minTranslate={},t.maxTranslate={},m){var E=h?{top:0,left:0,width:t.contentWindow.innerWidth,height:t.contentWindow.innerHeight}:t.containerBoundingRect,P=E.top,A=E.left,O=E.width,T=P+E.height,I=A+O;t.axis.x&&(t.minTranslate.x=A-t.boundingClientRect.left,t.maxTranslate.x=I-(t.boundingClientRect.left+t.width)),t.axis.y&&(t.minTranslate.y=P-t.boundingClientRect.top,t.maxTranslate.y=T-(t.boundingClientRect.top+t.height))}else t.axis.x&&(t.minTranslate.x=(h?0:S.left)-t.boundingClientRect.left-t.width/2,t.maxTranslate.x=(h?t.contentWindow.innerWidth:S.left+S.width)-t.boundingClientRect.left-t.width/2),t.axis.y&&(t.minTranslate.y=(h?0:S.top)-t.boundingClientRect.top-t.height/2,t.maxTranslate.y=(h?t.contentWindow.innerHeight:S.top+S.height)-t.boundingClientRect.top-t.height/2);l&&l.split(" ").forEach(function(e){return t.helper.classList.add(e)}),t.listenerNode=e.touches?e.target:t.contentWindow,m?(t.listenerNode.addEventListener("wheel",t.handleKeyEnd,!0),t.listenerNode.addEventListener("mousedown",t.handleKeyEnd,!0),t.listenerNode.addEventListener("keydown",t.handleKeyDown)):(x.move.forEach(function(e){return t.listenerNode.addEventListener(e,t.handleSortMove,!1)}),x.end.forEach(function(e){return t.listenerNode.addEventListener(e,t.handleSortEnd,!1)})),t.setState({sorting:!0,sortingIndex:b}),f&&f({node:p,index:b,collection:d,isKeySorting:m,nodes:t.manager.getOrderedRefs(),helper:t.helper},e),m&&t.keyMove(0)},a=t.props,o=a.axis,s=a.getHelperDimensions,l=a.helperClass,c=a.hideSortableGhost,u=a.updateBeforeSortStart,f=a.onSortStart,h=a.useWindowAsScrollContainer,p=n.node,d=n.collection,m=t.manager.isKeySorting,g=function(){if("function"==typeof u){t._awaitingUpdateBeforeSortStart=!0;var n=function(t,n){try{var r=(a=p.sortableInfo.index,Promise.resolve(u({collection:d,index:a,node:p,isKeySorting:m},e)).then(function(){}))}catch(e){return n(!0,e)}var a;return r&&r.then?r.then(n.bind(null,!1),n.bind(null,!0)):n(!1,value)}(0,function(e,n){if(t._awaitingUpdateBeforeSortStart=!1,e)throw n;return n});if(n&&n.then)return n.then(function(){})}}();return g&&g.then?g.then(r):r()}}();return Promise.resolve(r&&r.then?r.then(function(){}):void 0)}catch(e){return Promise.reject(e)}}),(0,h.A)((0,f.A)((0,f.A)(t)),"handleSortMove",function(e){var n=t.props.onSortMove;"function"==typeof e.preventDefault&&e.cancelable&&e.preventDefault(),t.updateHelperPosition(e),t.animateNodes(),t.autoscroll(),n&&n(e)}),(0,h.A)((0,f.A)((0,f.A)(t)),"handleSortEnd",function(e){var n=t.props,r=n.hideSortableGhost,a=n.onSortEnd,i=t.manager,o=i.active.collection,s=i.isKeySorting,l=t.manager.getOrderedRefs();t.listenerNode&&(s?(t.listenerNode.removeEventListener("wheel",t.handleKeyEnd,!0),t.listenerNode.removeEventListener("mousedown",t.handleKeyEnd,!0),t.listenerNode.removeEventListener("keydown",t.handleKeyDown)):(x.move.forEach(function(e){return t.listenerNode.removeEventListener(e,t.handleSortMove)}),x.end.forEach(function(e){return t.listenerNode.removeEventListener(e,t.handleSortEnd)}))),t.helper.parentNode.removeChild(t.helper),r&&t.sortableGhost&&C(t.sortableGhost,{opacity:"",visibility:""});for(var c=0,u=l.length;c<u;c++){var f=l[c],h=f.node;f.edgeOffset=null,f.boundingClientRect=null,E(h,null),P(h,null),f.translate=null}t.autoScroller.clear(),t.manager.active=null,t.manager.isKeySorting=!1,t.setState({sorting:!1,sortingIndex:null}),"function"==typeof a&&a({collection:o,newIndex:t.newIndex,oldIndex:t.index,isKeySorting:s,nodes:l},e),t.touched=!1}),(0,h.A)((0,f.A)((0,f.A)(t)),"autoscroll",function(){var e=t.props.disableAutoscroll,n=t.manager.isKeySorting;if(e)t.autoScroller.clear();else{if(n){var r=(0,i.A)({},t.translate),a=0,o=0;return t.axis.x&&(r.x=Math.min(t.maxTranslate.x,Math.max(t.minTranslate.x,t.translate.x)),a=t.translate.x-r.x),t.axis.y&&(r.y=Math.min(t.maxTranslate.y,Math.max(t.minTranslate.y,t.translate.y)),o=t.translate.y-r.y),t.translate=r,E(t.helper,t.translate),t.scrollContainer.scrollLeft+=a,void(t.scrollContainer.scrollTop+=o)}t.autoScroller.update({height:t.height,maxTranslate:t.maxTranslate,minTranslate:t.minTranslate,translate:t.translate,width:t.width})}}),(0,h.A)((0,f.A)((0,f.A)(t)),"onAutoScroll",function(e){t.translate.x+=e.left,t.translate.y+=e.top,t.animateNodes()}),(0,h.A)((0,f.A)((0,f.A)(t)),"handleKeyDown",function(e){var n=e.keyCode,r=t.props,a=r.shouldCancelStart,o=r.keyCodes,s=void 0===o?{}:o,l=(0,i.A)({},H,s);t.manager.active&&!t.manager.isKeySorting||!(t.manager.active||l.lift.includes(n)&&!a(e)&&t.isValidSortingTarget(e))||(e.stopPropagation(),e.preventDefault(),l.lift.includes(n)&&!t.manager.active?t.keyLift(e):l.drop.includes(n)&&t.manager.active?t.keyDrop(e):l.cancel.includes(n)?(t.newIndex=t.manager.active.index,t.keyDrop(e)):l.up.includes(n)?t.keyMove(-1):l.down.includes(n)&&t.keyMove(1))}),(0,h.A)((0,f.A)((0,f.A)(t)),"keyLift",function(e){var n=e.target,r=A(n,function(e){return null!=e.sortableInfo}).sortableInfo,a=r.index,i=r.collection;t.initialFocusedNode=n,t.manager.isKeySorting=!0,t.manager.active={index:a,collection:i},t.handlePress(e)}),(0,h.A)((0,f.A)((0,f.A)(t)),"keyMove",function(e){var n=t.manager.getOrderedRefs(),r=n[n.length-1].node.sortableInfo.index,a=t.newIndex+e,i=t.newIndex;if(!(a<0||a>r)){t.prevIndex=i,t.newIndex=a;var o=function(e,t,n){return e<n&&e>t?e-1:e>n&&e<t?e+1:e}(t.newIndex,t.prevIndex,t.index),s=n.find(function(e){return e.node.sortableInfo.index===o}),l=s.node,c=t.containerScrollDelta,u=s.boundingClientRect||I(l,c),f=s.translate||{x:0,y:0},h=u.top+f.y-c.top,p=u.left+f.x-c.left,d=i<a,m=d&&t.axis.x?l.offsetWidth-t.width:0,g=d&&t.axis.y?l.offsetHeight-t.height:0;t.handleSortMove({pageX:p+m,pageY:h+g,ignoreTransition:0===e})}}),(0,h.A)((0,f.A)((0,f.A)(t)),"keyDrop",function(e){t.handleSortEnd(e),t.initialFocusedNode&&t.initialFocusedNode.focus()}),(0,h.A)((0,f.A)((0,f.A)(t)),"handleKeyEnd",function(e){t.manager.active&&t.keyDrop(e)}),(0,h.A)((0,f.A)((0,f.A)(t)),"isValidSortingTarget",function(e){var n=t.props.useDragHandle,r=e.target,a=A(r,function(e){return null!=e.sortableInfo});return a&&a.sortableInfo&&!a.sortableInfo.disabled&&(n?N(r):r.sortableInfo)});var r=new _;return function(e){g()(!(e.distance&&e.pressDelay),"Attempted to set both `pressDelay` and `distance` on SortableContainer, you may only use one or the other, not both at the same time.")}(e),t.manager=r,t.wrappedInstance=(0,p.createRef)(),t.sortableContextValue={manager:r},t.events={end:t.handleEnd,move:t.handleMove,start:t.handleStart},t}return(0,u.A)(n,t),(0,s.A)(n,[{key:"componentDidMount",value:function(){var e=this,t=this.props.useWindowAsScrollContainer,n=this.getContainer();Promise.resolve(n).then(function(n){e.container=n,e.document=e.container.ownerDocument||document;var r=e.props.contentWindow||e.document.defaultView||window;e.contentWindow="function"==typeof r?r():r,e.scrollContainer=t?e.document.scrollingElement||e.document.documentElement:j(e.container)||e.container,e.autoScroller=new B(e.scrollContainer,e.onAutoScroll),Object.keys(e.events).forEach(function(t){return x[t].forEach(function(n){return e.container.addEventListener(n,e.events[t],!1)})}),e.container.addEventListener("keydown",e.handleKeyDown)})}},{key:"componentWillUnmount",value:function(){var e=this;this.helper&&this.helper.parentNode&&this.helper.parentNode.removeChild(this.helper),this.container&&(Object.keys(this.events).forEach(function(t){return x[t].forEach(function(n){return e.container.removeEventListener(n,e.events[t])})}),this.container.removeEventListener("keydown",this.handleKeyDown))}},{key:"updateHelperPosition",value:function(e){var t=this.props,n=t.lockAxis,r=t.lockOffset,i=t.lockToContainerEdges,o=t.transitionDuration,s=t.keyboardSortingTransitionDuration,l=void 0===s?o:s,c=this.manager.isKeySorting,u=e.ignoreTransition,f=D(e),h={x:f.x-this.initialOffset.x,y:f.y-this.initialOffset.y};if(h.y-=window.pageYOffset-this.initialWindowScroll.top,h.x-=window.pageXOffset-this.initialWindowScroll.left,this.translate=h,i){var p=function(e){var t=e.height,n=e.width,r=e.lockOffset,i=Array.isArray(r)?r:[r,r];g()(2===i.length,"lockOffset prop of SortableContainer should be a single value or an array of exactly two values. Given %s",r);var o=(0,a.A)(i,2),s=o[0],l=o[1];return[R({height:t,lockOffset:s,width:n}),R({height:t,lockOffset:l,width:n})]}({height:this.height,lockOffset:r,width:this.width}),d=(0,a.A)(p,2),m=d[0],y=d[1],v={x:this.width/2-m.x,y:this.height/2-m.y},b={x:this.width/2-y.x,y:this.height/2-y.y};h.x=O(this.minTranslate.x+v.x,this.maxTranslate.x-b.x,h.x),h.y=O(this.minTranslate.y+v.y,this.maxTranslate.y-b.y,h.y)}"x"===n?h.y=0:"y"===n&&(h.x=0),c&&l&&!u&&P(this.helper,l),E(this.helper,h)}},{key:"animateNodes",value:function(){var e=this.props,t=e.transitionDuration,n=e.hideSortableGhost,r=e.onSortOver,a=this.containerScrollDelta,i=this.windowScrollDelta,o=this.manager.getOrderedRefs(),s=this.offsetEdge.left+this.translate.x+a.left,l=this.offsetEdge.top+this.translate.y+a.top,c=this.manager.isKeySorting,u=this.newIndex;this.newIndex=null;for(var f=0,h=o.length;f<h;f++){var p=o[f].node,d=p.sortableInfo.index,m=p.offsetWidth,g=p.offsetHeight,y={height:this.height>g?g/2:this.height/2,width:this.width>m?m/2:this.width/2},v=c&&d>this.index&&d<=u,b=c&&d<this.index&&d>=u,_={x:0,y:0},w=o[f].edgeOffset;w||(w=L(p,this.container),o[f].edgeOffset=w,c&&(o[f].boundingClientRect=I(p,a)));var S=f<o.length-1&&o[f+1],x=f>0&&o[f-1];S&&!S.edgeOffset&&(S.edgeOffset=L(S.node,this.container),c&&(S.boundingClientRect=I(S.node,a))),d!==this.index?(t&&P(p,t),this.axis.x?this.axis.y?b||d<this.index&&(s+i.left-y.width<=w.left&&l+i.top<=w.top+y.height||l+i.top+y.height<=w.top)?(_.x=this.width+this.marginOffset.x,w.left+_.x>this.containerBoundingRect.width-y.width&&S&&(_.x=S.edgeOffset.left-w.left,_.y=S.edgeOffset.top-w.top),null===this.newIndex&&(this.newIndex=d)):(v||d>this.index&&(s+i.left+y.width>=w.left&&l+i.top+y.height>=w.top||l+i.top+y.height>=w.top+g))&&(_.x=-(this.width+this.marginOffset.x),w.left+_.x<this.containerBoundingRect.left+y.width&&x&&(_.x=x.edgeOffset.left-w.left,_.y=x.edgeOffset.top-w.top),this.newIndex=d):v||d>this.index&&s+i.left+y.width>=w.left?(_.x=-(this.width+this.marginOffset.x),this.newIndex=d):(b||d<this.index&&s+i.left<=w.left+y.width)&&(_.x=this.width+this.marginOffset.x,null==this.newIndex&&(this.newIndex=d)):this.axis.y&&(v||d>this.index&&l+i.top+y.height>=w.top?(_.y=-(this.height+this.marginOffset.y),this.newIndex=d):(b||d<this.index&&l+i.top<=w.top+y.height)&&(_.y=this.height+this.marginOffset.y,null==this.newIndex&&(this.newIndex=d))),E(p,_),o[f].translate=_):n&&(this.sortableGhost=p,C(p,{opacity:0,visibility:"hidden"}))}null==this.newIndex&&(this.newIndex=this.index),c&&(this.newIndex=u);var k=c?this.prevIndex:u;r&&this.newIndex!==k&&r({collection:this.manager.active.collection,index:this.index,newIndex:this.newIndex,oldIndex:k,isKeySorting:c,nodes:o,helper:this.helper})}},{key:"getWrappedInstance",value:function(){return g()(m.withRef,"To access the wrapped instance, you need to pass in {withRef: true} as the second argument of the SortableContainer() call"),this.wrappedInstance.current}},{key:"getContainer",value:function(){var e=this.props.getContainer;return"function"!=typeof e?(0,d.findDOMNode)(this):e(m.withRef?this.getWrappedInstance():void 0)}},{key:"render",value:function(){var t=m.withRef?this.wrappedInstance:null;return(0,p.createElement)(U.Provider,{value:this.sortableContextValue},(0,p.createElement)(e,(0,r.A)({ref:t},S(this.props,W))))}},{key:"helperContainer",get:function(){var e=this.props.helperContainer;return"function"==typeof e?e():this.props.helperContainer||this.document.body}},{key:"containerScrollDelta",get:function(){return this.props.useWindowAsScrollContainer?{left:0,top:0}:{left:this.scrollContainer.scrollLeft-this.initialScroll.left,top:this.scrollContainer.scrollTop-this.initialScroll.top}}},{key:"windowScrollDelta",get:function(){return{left:this.contentWindow.pageXOffset-this.initialWindowScroll.left,top:this.contentWindow.pageYOffset-this.initialWindowScroll.top}}}]),n}(p.Component),(0,h.A)(t,"displayName",T("sortableList",e)),(0,h.A)(t,"defaultProps",G),(0,h.A)(t,"propTypes",z),n}var q={index:b().number.isRequired,collection:b().oneOfType([b().number,b().string]),disabled:b().bool},Y=Object.keys(q);function K(e){var t,n,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{withRef:!1};return n=t=function(t){function n(){var e,t;(0,o.A)(this,n);for(var r=arguments.length,a=new Array(r),i=0;i<r;i++)a[i]=arguments[i];return t=(0,l.A)(this,(e=(0,c.A)(n)).call.apply(e,[this].concat(a))),(0,h.A)((0,f.A)((0,f.A)(t)),"wrappedInstance",(0,p.createRef)()),t}return(0,u.A)(n,t),(0,s.A)(n,[{key:"componentDidMount",value:function(){this.register()}},{key:"componentDidUpdate",value:function(e){this.node&&(e.index!==this.props.index&&(this.node.sortableInfo.index=this.props.index),e.disabled!==this.props.disabled&&(this.node.sortableInfo.disabled=this.props.disabled)),e.collection!==this.props.collection&&(this.unregister(e.collection),this.register())}},{key:"componentWillUnmount",value:function(){this.unregister()}},{key:"register",value:function(){var e=this.props,t=e.collection,n=e.disabled,r=e.index,a=(0,d.findDOMNode)(this);a.sortableInfo={collection:t,disabled:n,index:r,manager:this.context.manager},this.node=a,this.ref={node:a},this.context.manager.add(t,this.ref)}},{key:"unregister",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props.collection;this.context.manager.remove(e,this.ref)}},{key:"getWrappedInstance",value:function(){return g()(a.withRef,"To access the wrapped instance, you need to pass in {withRef: true} as the second argument of the SortableElement() call"),this.wrappedInstance.current}},{key:"render",value:function(){var t=a.withRef?this.wrappedInstance:null;return(0,p.createElement)(e,(0,r.A)({ref:t},S(this.props,Y)))}}]),n}(p.Component),(0,h.A)(t,"displayName",T("sortableElement",e)),(0,h.A)(t,"contextType",U),(0,h.A)(t,"propTypes",q),(0,h.A)(t,"defaultProps",{collection:0}),n}},64158(e,t,n){"use strict";var r=n(51609),a=Symbol.for("react.element"),i=Symbol.for("react.fragment"),o=Object.prototype.hasOwnProperty,s=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l={key:!0,ref:!0,__self:!0,__source:!0};function c(e,t,n){var r,i={},c=null,u=null;for(r in void 0!==n&&(c=""+n),void 0!==t.key&&(c=""+t.key),void 0!==t.ref&&(u=t.ref),t)o.call(t,r)&&!l.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===i[r]&&(i[r]=t[r]);return{$$typeof:a,type:e,key:c,ref:u,props:i,_owner:s.current}}t.Fragment=i,t.jsx=c,t.jsxs=c},53998(e,t,n){"use strict";e.exports=n(64158)},71393(e,t,n){"use strict";n.d(t,{A:()=>a});var r=n(51609),a=2690==n.j?r.useLayoutEffect:null},1849(e,t,n){var r;!function(){function a(e,t,n){return e.call.apply(e.bind,arguments)}function i(e,t,n){if(!e)throw Error();if(2<arguments.length){var r=Array.prototype.slice.call(arguments,2);return function(){var n=Array.prototype.slice.call(arguments);return Array.prototype.unshift.apply(n,r),e.apply(t,n)}}return function(){return e.apply(t,arguments)}}function o(e,t,n){return(o=Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?a:i).apply(null,arguments)}var s=Date.now||function(){return+new Date};function l(e,t){this.a=e,this.o=t||e,this.c=this.o.document}var c=!!window.FontFace;function u(e,t,n,r){if(t=e.c.createElement(t),n)for(var a in n)n.hasOwnProperty(a)&&("style"==a?t.style.cssText=n[a]:t.setAttribute(a,n[a]));return r&&t.appendChild(e.c.createTextNode(r)),t}function f(e,t,n){(e=e.c.getElementsByTagName(t)[0])||(e=document.documentElement),e.insertBefore(n,e.lastChild)}function h(e){e.parentNode&&e.parentNode.removeChild(e)}function p(e,t,n){t=t||[],n=n||[];for(var r=e.className.split(/\s+/),a=0;a<t.length;a+=1){for(var i=!1,o=0;o<r.length;o+=1)if(t[a]===r[o]){i=!0;break}i||r.push(t[a])}for(t=[],a=0;a<r.length;a+=1){for(i=!1,o=0;o<n.length;o+=1)if(r[a]===n[o]){i=!0;break}i||t.push(r[a])}e.className=t.join(" ").replace(/\s+/g," ").replace(/^\s+|\s+$/,"")}function d(e,t){for(var n=e.className.split(/\s+/),r=0,a=n.length;r<a;r++)if(n[r]==t)return!0;return!1}function m(e,t,n){function r(){s&&a&&i&&(s(o),s=null)}t=u(e,"link",{rel:"stylesheet",href:t,media:"all"});var a=!1,i=!0,o=null,s=n||null;c?(t.onload=function(){a=!0,r()},t.onerror=function(){a=!0,o=Error("Stylesheet failed to load"),r()}):setTimeout(function(){a=!0,r()},0),f(e,"head",t)}function g(e,t,n,r){var a=e.c.getElementsByTagName("head")[0];if(a){var i=u(e,"script",{src:t}),o=!1;return i.onload=i.onreadystatechange=function(){o||this.readyState&&"loaded"!=this.readyState&&"complete"!=this.readyState||(o=!0,n&&n(null),i.onload=i.onreadystatechange=null,"HEAD"==i.parentNode.tagName&&a.removeChild(i))},a.appendChild(i),setTimeout(function(){o||(o=!0,n&&n(Error("Script load timeout")))},r||5e3),i}return null}function y(){this.a=0,this.c=null}function v(e){return e.a++,function(){e.a--,_(e)}}function b(e,t){e.c=t,_(e)}function _(e){0==e.a&&e.c&&(e.c(),e.c=null)}function w(e){this.a=e||"-"}function S(e,t){this.c=e,this.f=4,this.a="n";var n=(t||"n4").match(/^([nio])([1-9])$/i);n&&(this.a=n[1],this.f=parseInt(n[2],10))}function x(e){var t=[];e=e.split(/,\s*/);for(var n=0;n<e.length;n++){var r=e[n].replace(/['"]/g,"");-1!=r.indexOf(" ")||/^\d/.test(r)?t.push("'"+r+"'"):t.push(r)}return t.join(",")}function k(e){return e.a+e.f}function C(e){var t="normal";return"o"===e.a?t="oblique":"i"===e.a&&(t="italic"),t}function E(e){var t=4,n="n",r=null;return e&&((r=e.match(/(normal|oblique|italic)/i))&&r[1]&&(n=r[1].substr(0,1).toLowerCase()),(r=e.match(/([1-9]00|normal|bold)/i))&&r[1]&&(/bold/i.test(r[1])?t=7:/[1-9]00/.test(r[1])&&(t=parseInt(r[1].substr(0,1),10)))),n+t}function P(e,t){this.c=e,this.f=e.o.document.documentElement,this.h=t,this.a=new w("-"),this.j=!1!==t.events,this.g=!1!==t.classes}function A(e){if(e.g){var t=d(e.f,e.a.c("wf","active")),n=[],r=[e.a.c("wf","loading")];t||n.push(e.a.c("wf","inactive")),p(e.f,n,r)}O(e,"inactive")}function O(e,t,n){e.j&&e.h[t]&&(n?e.h[t](n.c,k(n)):e.h[t]())}function M(){this.c={}}function T(e,t){this.c=e,this.f=t,this.a=u(this.c,"span",{"aria-hidden":"true"},this.f)}function I(e){f(e.c,"body",e.a)}function D(e){return"display:block;position:absolute;top:-9999px;left:-9999px;font-size:300px;width:auto;height:auto;line-height:normal;margin:0;padding:0;font-variant:normal;white-space:nowrap;font-family:"+x(e.c)+";font-style:"+C(e)+";font-weight:"+e.f+"00;"}function L(e,t,n,r,a,i){this.g=e,this.j=t,this.a=r,this.c=n,this.f=a||3e3,this.h=i||void 0}function R(e,t,n,r,a,i,o){this.v=e,this.B=t,this.c=n,this.a=r,this.s=o||"BESbswy",this.f={},this.w=a||3e3,this.u=i||null,this.m=this.j=this.h=this.g=null,this.g=new T(this.c,this.s),this.h=new T(this.c,this.s),this.j=new T(this.c,this.s),this.m=new T(this.c,this.s),e=D(e=new S(this.a.c+",serif",k(this.a))),this.g.a.style.cssText=e,e=D(e=new S(this.a.c+",sans-serif",k(this.a))),this.h.a.style.cssText=e,e=D(e=new S("serif",k(this.a))),this.j.a.style.cssText=e,e=D(e=new S("sans-serif",k(this.a))),this.m.a.style.cssText=e,I(this.g),I(this.h),I(this.j),I(this.m)}w.prototype.c=function(e){for(var t=[],n=0;n<arguments.length;n++)t.push(arguments[n].replace(/[\W_]+/g,"").toLowerCase());return t.join(this.a)},L.prototype.start=function(){var e=this.c.o.document,t=this,n=s(),r=new Promise(function(r,a){!function i(){s()-n>=t.f?a():e.fonts.load(function(e){return C(e)+" "+e.f+"00 300px "+x(e.c)}(t.a),t.h).then(function(e){1<=e.length?r():setTimeout(i,25)},function(){a()})}()}),a=null,i=new Promise(function(e,n){a=setTimeout(n,t.f)});Promise.race([i,r]).then(function(){a&&(clearTimeout(a),a=null),t.g(t.a)},function(){t.j(t.a)})};var j={D:"serif",C:"sans-serif"},F=null;function V(){if(null===F){var e=/AppleWebKit\/([0-9]+)(?:\.([0-9]+))/.exec(window.navigator.userAgent);F=!!e&&(536>parseInt(e[1],10)||536===parseInt(e[1],10)&&11>=parseInt(e[2],10))}return F}function N(e,t,n){for(var r in j)if(j.hasOwnProperty(r)&&t===e.f[j[r]]&&n===e.f[j[r]])return!0;return!1}function B(e){var t,n=e.g.a.offsetWidth,r=e.h.a.offsetWidth;(t=n===e.f.serif&&r===e.f["sans-serif"])||(t=V()&&N(e,n,r)),t?s()-e.A>=e.w?V()&&N(e,n,r)&&(null===e.u||e.u.hasOwnProperty(e.a.c))?z(e,e.v):z(e,e.B):function(e){setTimeout(o(function(){B(this)},e),50)}(e):z(e,e.v)}function z(e,t){setTimeout(o(function(){h(this.g.a),h(this.h.a),h(this.j.a),h(this.m.a),t(this.a)},e),0)}function H(e,t,n){this.c=e,this.a=t,this.f=0,this.m=this.j=!1,this.s=n}R.prototype.start=function(){this.f.serif=this.j.a.offsetWidth,this.f["sans-serif"]=this.m.a.offsetWidth,this.A=s(),B(this)};var G=null;function W(e){0==--e.f&&e.j&&(e.m?((e=e.a).g&&p(e.f,[e.a.c("wf","active")],[e.a.c("wf","loading"),e.a.c("wf","inactive")]),O(e,"active")):A(e.a))}function U(e){this.j=e,this.a=new M,this.h=0,this.f=this.g=!0}function $(e,t,n,r,a){var i=0==--e.h;(e.f||e.g)&&setTimeout(function(){var e=a||null,s=r||{};if(0===n.length&&i)A(t.a);else{t.f+=n.length,i&&(t.j=i);var l,c=[];for(l=0;l<n.length;l++){var u=n[l],f=s[u.c],h=t.a,d=u;if(h.g&&p(h.f,[h.a.c("wf",d.c,k(d).toString(),"loading")]),O(h,"fontloading",d),h=null,null===G)if(window.FontFace){d=/Gecko.*Firefox\/(\d+)/.exec(window.navigator.userAgent);var m=/OS X.*Version\/10\..*Safari/.exec(window.navigator.userAgent)&&/Apple/.exec(window.navigator.vendor);G=d?42<parseInt(d[1],10):!m}else G=!1;h=G?new L(o(t.g,t),o(t.h,t),t.c,u,t.s,f):new R(o(t.g,t),o(t.h,t),t.c,u,t.s,e,f),c.push(h)}for(l=0;l<c.length;l++)c[l].start()}},0)}function q(e,t){this.c=e,this.a=t}function Y(e,t){this.c=e,this.a=t}function K(e,t){this.c=e||X,this.a=[],this.f=[],this.g=t||""}H.prototype.g=function(e){var t=this.a;t.g&&p(t.f,[t.a.c("wf",e.c,k(e).toString(),"active")],[t.a.c("wf",e.c,k(e).toString(),"loading"),t.a.c("wf",e.c,k(e).toString(),"inactive")]),O(t,"fontactive",e),this.m=!0,W(this)},H.prototype.h=function(e){var t=this.a;if(t.g){var n=d(t.f,t.a.c("wf",e.c,k(e).toString(),"active")),r=[],a=[t.a.c("wf",e.c,k(e).toString(),"loading")];n||r.push(t.a.c("wf",e.c,k(e).toString(),"inactive")),p(t.f,r,a)}O(t,"fontinactive",e),W(this)},U.prototype.load=function(e){this.c=new l(this.j,e.context||this.j),this.g=!1!==e.events,this.f=!1!==e.classes,function(e,t,n){var r=[],a=n.timeout;!function(e){e.g&&p(e.f,[e.a.c("wf","loading")]),O(e,"loading")}(t),r=function(e,t,n){var r,a=[];for(r in t)if(t.hasOwnProperty(r)){var i=e.c[r];i&&a.push(i(t[r],n))}return a}(e.a,n,e.c);var i=new H(e.c,t,a);for(e.h=r.length,t=0,n=r.length;t<n;t++)r[t].load(function(t,n,r){$(e,i,t,n,r)})}(this,new P(this.c,e),e)},q.prototype.load=function(e){function t(){if(i["__mti_fntLst"+r]){var n,a=i["__mti_fntLst"+r](),o=[];if(a)for(var s=0;s<a.length;s++){var l=a[s].fontfamily;null!=a[s].fontStyle&&null!=a[s].fontWeight?(n=a[s].fontStyle+a[s].fontWeight,o.push(new S(l,n))):o.push(new S(l))}e(o)}else setTimeout(function(){t()},50)}var n=this,r=n.a.projectId,a=n.a.version;if(r){var i=n.c.o;g(this.c,(n.a.api||"https://fast.fonts.net/jsapi")+"/"+r+".js"+(a?"?v="+a:""),function(a){a?e([]):(i["__MonotypeConfiguration__"+r]=function(){return n.a},t())}).id="__MonotypeAPIScript__"+r}else e([])},Y.prototype.load=function(e){var t,n,r=this.a.urls||[],a=this.a.families||[],i=this.a.testStrings||{},o=new y;for(t=0,n=r.length;t<n;t++)m(this.c,r[t],v(o));var s=[];for(t=0,n=a.length;t<n;t++)if((r=a[t].split(":"))[1])for(var l=r[1].split(","),c=0;c<l.length;c+=1)s.push(new S(r[0],l[c]));else s.push(new S(r[0]));b(o,function(){e(s,i)})};var X="https://fonts.googleapis.com/css";function J(e){this.f=e,this.a=[],this.c={}}var Z={latin:"BESbswy","latin-ext":"çöüğş",cyrillic:"йяЖ",greek:"αβΣ",khmer:"កខគ",Hanuman:"កខគ"},Q={thin:"1",extralight:"2","extra-light":"2",ultralight:"2","ultra-light":"2",light:"3",regular:"4",book:"4",medium:"5","semi-bold":"6",semibold:"6","demi-bold":"6",demibold:"6",bold:"7","extra-bold":"8",extrabold:"8","ultra-bold":"8",ultrabold:"8",black:"9",heavy:"9",l:"3",r:"4",b:"7"},ee={i:"i",italic:"i",n:"n",normal:"n"},te=/^(thin|(?:(?:extra|ultra)-?)?light|regular|book|medium|(?:(?:semi|demi|extra|ultra)-?)?bold|black|heavy|l|r|b|[1-9]00)?(n|i|normal|italic)?$/;function ne(e,t){this.c=e,this.a=t}var re={Arimo:!0,Cousine:!0,Tinos:!0};function ae(e,t){this.c=e,this.a=t}function ie(e,t){this.c=e,this.f=t,this.a=[]}ne.prototype.load=function(e){var t=new y,n=this.c,r=new K(this.a.api,this.a.text),a=this.a.families;!function(e,t){for(var n=t.length,r=0;r<n;r++){var a=t[r].split(":");3==a.length&&e.f.push(a.pop());var i="";2==a.length&&""!=a[1]&&(i=":"),e.a.push(a.join(i))}}(r,a);var i=new J(a);!function(e){for(var t=e.f.length,n=0;n<t;n++){var r=e.f[n].split(":"),a=r[0].replace(/\+/g," "),i=["n4"];if(2<=r.length){var o;if(o=[],s=r[1])for(var s,l=(s=s.split(",")).length,c=0;c<l;c++){var u;if((u=s[c]).match(/^[\w-]+$/))if(null==(f=te.exec(u.toLowerCase())))u="";else{if(u=null==(u=f[2])||""==u?"n":ee[u],null==(f=f[1])||""==f)f="4";else var f=Q[f]||(isNaN(f)?"4":f.substr(0,1));u=[u,f].join("")}else u="";u&&o.push(u)}0<o.length&&(i=o),3==r.length&&(o=[],0<(r=(r=r[2])?r.split(","):o).length&&(r=Z[r[0]])&&(e.c[a]=r))}for(e.c[a]||(r=Z[a])&&(e.c[a]=r),r=0;r<i.length;r+=1)e.a.push(new S(a,i[r]))}}(i),m(n,function(e){if(0==e.a.length)throw Error("No fonts to load!");if(-1!=e.c.indexOf("kit="))return e.c;for(var t=e.a.length,n=[],r=0;r<t;r++)n.push(e.a[r].replace(/ /g,"+"));return t=e.c+"?family="+n.join("%7C"),0<e.f.length&&(t+="&subset="+e.f.join(",")),0<e.g.length&&(t+="&text="+encodeURIComponent(e.g)),t}(r),v(t)),b(t,function(){e(i.a,i.c,re)})},ae.prototype.load=function(e){var t=this.a.id,n=this.c.o;t?g(this.c,(this.a.api||"https://use.typekit.net")+"/"+t+".js",function(t){if(t)e([]);else if(n.Typekit&&n.Typekit.config&&n.Typekit.config.fn){t=n.Typekit.config.fn;for(var r=[],a=0;a<t.length;a+=2)for(var i=t[a],o=t[a+1],s=0;s<o.length;s++)r.push(new S(i,o[s]));try{n.Typekit.load({events:!1,classes:!1,async:!0})}catch(e){}e(r)}},2e3):e([])},ie.prototype.load=function(e){var t=this.f.id,n=this.c.o,r=this;t?(n.__webfontfontdeckmodule__||(n.__webfontfontdeckmodule__={}),n.__webfontfontdeckmodule__[t]=function(t,n){for(var a=0,i=n.fonts.length;a<i;++a){var o=n.fonts[a];r.a.push(new S(o.name,E("font-weight:"+o.weight+";font-style:"+o.style)))}e(r.a)},g(this.c,(this.f.api||"https://f.fontdeck.com/s/css/js/")+function(e){return e.o.location.hostname||e.a.location.hostname}(this.c)+"/"+t+".js",function(t){t&&e([])})):e([])};var oe=new U(window);oe.a.c.custom=function(e,t){return new Y(t,e)},oe.a.c.fontdeck=function(e,t){return new ie(t,e)},oe.a.c.monotype=function(e,t){return new q(t,e)},oe.a.c.typekit=function(e,t){return new ae(t,e)},oe.a.c.google=function(e,t){return new ne(t,e)};var se={load:o(oe.load,oe)};void 0===(r=function(){return se}.call(t,n,t,e))||(e.exports=r)}()},46942(e,t){var n;!function(){"use strict";var r={}.hasOwnProperty;function a(){for(var e="",t=0;t<arguments.length;t++){var n=arguments[t];n&&(e=o(e,i(n)))}return e}function i(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return a.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var t="";for(var n in e)r.call(e,n)&&e[n]&&(t=o(t,n));return t}function o(e,t){return t?e?e+" "+t:e+t:e}e.exports?(a.default=a,e.exports=a):void 0===(n=function(){return a}.apply(t,[]))||(e.exports=n)}()},14706(e,t){var n;!function(){"use strict";var r={}.hasOwnProperty;function a(){for(var e="",t=0;t<arguments.length;t++){var n=arguments[t];n&&(e=o(e,i(n)))}return e}function i(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return a.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var t="";for(var n in e)r.call(e,n)&&e[n]&&(t=o(t,n));return t}function o(e,t){return t?e?e+" "+t:e+t:e}e.exports?(a.default=a,e.exports=a):void 0===(n=function(){return a}.apply(t,[]))||(e.exports=n)}()},18491(e,t,n){"use strict";if(n.d(t,{ll:()=>u}),/^(3260|6573|7776)$/.test(n.j))var r=n(97193);if(/^(3260|6573|7776)$/.test(n.j))var a=n(86635);function i(e){return(0,a.vq)(e)?e:e.contextElement}function o(e){const t=i(e);if(!(0,a.sb)(t))return(0,r.Jx)(1);const n=t.getBoundingClientRect(),{width:o,height:s,$:l}=function(e){const t=(0,a.L9)(e);let n=parseFloat(t.width)||0,i=parseFloat(t.height)||0;const o=(0,a.sb)(e),s=o?e.offsetWidth:n,l=o?e.offsetHeight:i,c=(0,r.LI)(n)!==s||(0,r.LI)(i)!==l;return c&&(n=s,i=l),{width:n,height:i,$:c}}(t);let c=(l?(0,r.LI)(n.width):n.width)/o,u=(l?(0,r.LI)(n.height):n.height)/s;return c&&Number.isFinite(c)||(c=1),u&&Number.isFinite(u)||(u=1),{x:c,y:u}}const s=/^(3260|6573|7776)$/.test(n.j)?(0,r.Jx)(0):null;function l(e,t,n,l){void 0===t&&(t=!1),void 0===n&&(n=!1);const c=e.getBoundingClientRect(),u=i(e);let f=(0,r.Jx)(1);t&&(l?(0,a.vq)(l)&&(f=o(l)):f=o(e));const h=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==(0,a.zk)(e))&&t}(u,n,l)?function(e){const t=(0,a.zk)(e);return(0,a.Tc)()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:s}(u):(0,r.Jx)(0);let p=(c.left+h.x)/f.x,d=(c.top+h.y)/f.y,m=c.width/f.x,g=c.height/f.y;if(u){const e=(0,a.zk)(u),t=l&&(0,a.vq)(l)?(0,a.zk)(l):l;let n=e,r=(0,a._m)(n);for(;r&&l&&t!==n;){const e=o(r),t=r.getBoundingClientRect(),i=(0,a.L9)(r),s=t.left+(r.clientLeft+parseFloat(i.paddingLeft))*e.x,l=t.top+(r.clientTop+parseFloat(i.paddingTop))*e.y;p*=e.x,d*=e.y,m*=e.x,g*=e.y,p+=s,d+=l,n=(0,a.zk)(r),r=(0,a._m)(n)}}return(0,r.B1)({width:m,height:g,x:p,y:d})}function c(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function u(e,t,n,o){void 0===o&&(o={});const{ancestorScroll:s=!0,ancestorResize:u=!0,elementResize:f="function"==typeof ResizeObserver,layoutShift:h="function"==typeof IntersectionObserver,animationFrame:p=!1}=o,d=i(e),m=s||u?[...d?(0,a.v9)(d):[],...t?(0,a.v9)(t):[]]:[];m.forEach(e=>{s&&e.addEventListener("scroll",n,{passive:!0}),u&&e.addEventListener("resize",n)});const g=d&&h?function(e,t){let n,i=null;const o=(0,a.ep)(e);function s(){var e;clearTimeout(n),null==(e=i)||e.disconnect(),i=null}return function a(l,u){void 0===l&&(l=!1),void 0===u&&(u=1),s();const f=e.getBoundingClientRect(),{left:h,top:p,width:d,height:m}=f;if(l||t(),!d||!m)return;const g={rootMargin:-(0,r.RI)(p)+"px "+-(0,r.RI)(o.clientWidth-(h+d))+"px "+-(0,r.RI)(o.clientHeight-(p+m))+"px "+-(0,r.RI)(h)+"px",threshold:(0,r.T9)(0,(0,r.jk)(1,u))||1};let y=!0;function v(t){const r=t[0].intersectionRatio;if(r!==u){if(!y)return a();r?a(!1,r):n=setTimeout(()=>{a(!1,1e-7)},1e3)}1!==r||c(f,e.getBoundingClientRect())||a(),y=!1}try{i=new IntersectionObserver(v,{...g,root:o.ownerDocument})}catch(e){i=new IntersectionObserver(v,g)}i.observe(e)}(!0),s}(d,n):null;let y,v=-1,b=null;f&&(b=new ResizeObserver(e=>{let[r]=e;r&&r.target===d&&b&&t&&(b.unobserve(t),cancelAnimationFrame(v),v=requestAnimationFrame(()=>{var e;null==(e=b)||e.observe(t)})),n()}),d&&!p&&b.observe(d),t&&b.observe(t));let _=p?l(e):null;return p&&function t(){const r=l(e);_&&!c(_,r)&&n(),_=r,y=requestAnimationFrame(t)}(),n(),()=>{var e;m.forEach(e=>{s&&e.removeEventListener("scroll",n),u&&e.removeEventListener("resize",n)}),null==g||g(),null==(e=b)||e.disconnect(),b=null,p&&cancelAnimationFrame(y)}}},86635(e,t,n){"use strict";function r(){return"undefined"!=typeof window}function a(e){return s(e)?(e.nodeName||"").toLowerCase():"#document"}function i(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function o(e){var t;return null==(t=(s(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function s(e){return!!r()&&(e instanceof Node||e instanceof i(e).Node)}function l(e){return!!r()&&(e instanceof Element||e instanceof i(e).Element)}function c(e){return!!r()&&(e instanceof HTMLElement||e instanceof i(e).HTMLElement)}function u(e){return!(!r()||"undefined"==typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof i(e).ShadowRoot)}function f(e){const{overflow:t,overflowX:n,overflowY:r,display:a}=d(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&"inline"!==a&&"contents"!==a}let h;function p(){return null==h&&(h="undefined"!=typeof CSS&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),h}function d(e){return i(e).getComputedStyle(e)}function m(e){const t=function(e){if("html"===a(e))return e;const t=e.assignedSlot||e.parentNode||u(e)&&e.host||o(e);return u(t)?t.host:t}(e);return function(e){return/^(html|body|#document)$/.test(a(e))}(t)?e.ownerDocument?e.ownerDocument.body:e.body:c(t)&&f(t)?t:m(t)}function g(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);const a=m(e),o=a===(null==(r=e.ownerDocument)?void 0:r.body),s=i(a);if(o){const e=y(s);return t.concat(s,s.visualViewport||[],f(a)?a:[],e&&n?g(e):[])}return t.concat(a,g(a,[],n))}function y(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}n.d(t,{L9:()=>d,Tc:()=>p,_m:()=>y,ep:()=>o,sb:()=>c,v9:()=>g,vq:()=>l,zk:()=>i})},97193(e,t,n){"use strict";n.d(t,{B1:()=>l,Jx:()=>s,LI:()=>i,RI:()=>o,T9:()=>a,jk:()=>r});const r=Math.min,a=Math.max,i=Math.round,o=Math.floor,s=e=>({x:e,y:e});function l(e){const{x:t,y:n,width:r,height:a}=e;return{width:r,height:a,top:n,left:t,right:t+r,bottom:n+a,x:t,y:n}}},1259(e,t,n){"use strict";function r(e){return(r="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 a(e){var t=function(e){if("object"!=r(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=r(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==r(t)?t:t+""}function i(e,t,n){return(t=a(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,{j:()=>$});var o=class{requestAnimationFrame(e){return requestAnimationFrame(e)}cancelAnimationFrame(e){cancelAnimationFrame(e)}},s=class{constructor(){i(this,"_lastHandleId",0),i(this,"_lastImmediate",null)}requestAnimationFrame(e){return this._lastHandleId>=2**53-1&&(this._lastHandleId=0),this._lastHandleId+=1,this._lastImmediate=setImmediate(()=>{e(performance.now())}),this._lastHandleId}cancelAnimationFrame(e){this._lastImmediate&&clearImmediate(this._lastImmediate)}},l=class{constructor(){i(this,"_strategy",void 0),this._strategy="function"==typeof requestAnimationFrame?new o:new s}requestAnimationFrame(e){return this._strategy.requestAnimationFrame(e)}cancelAnimationFrame(e){this._strategy.cancelAnimationFrame(e)}};const c=typeof window<"u"&&void 0!==window.document,u=new Uint8Array([80,75,3,4]),f=/^(3260|6487)$/.test(n.j)?["v","ip","op","layers","fr","w","h"]:null,h="0.75.0",p="@lottiefiles/dotlottie-web";let d;const m=typeof TextDecoder<"u"?new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0}):{decode:()=>{throw Error("TextDecoder not available")}};typeof TextDecoder<"u"&&m.decode();let g=null;function y(){return(null===g||0===g.byteLength)&&(g=new Uint8Array(d.memory.buffer)),g}function v(e,t){return e>>>=0,m.decode(y().subarray(e,e+t))}function b(e){let t=d.__externref_table_alloc_command_export();return d.__wbindgen_export_3.set(t,e),t}let _=0;const w=typeof TextEncoder<"u"?new TextEncoder("utf-8"):{encode:()=>{throw Error("TextEncoder not available")}},S="function"==typeof w.encodeInto?function(e,t){return w.encodeInto(e,t)}:function(e,t){let n=w.encode(e);return t.set(n),{read:e.length,written:n.length}};function x(e,t,n){if(void 0===n){let n=w.encode(e),r=t(n.length,1)>>>0;return y().subarray(r,r+n.length).set(n),_=n.length,r}let r=e.length,a=t(r,1)>>>0,i=y(),o=0;for(;o<r;o++){let t=e.charCodeAt(o);if(t>127)break;i[a+o]=t}if(o!==r){0!==o&&(e=e.slice(o)),a=n(a,r,r=o+3*e.length,1)>>>0;let t=y().subarray(a+o,a+r);o+=S(e,t).written,a=n(a,r,o,1)>>>0}return _=o,a}let k=null;function C(){return(null===k||!0===k.buffer.detached||void 0===k.buffer.detached&&k.buffer!==d.memory.buffer)&&(k=new DataView(d.memory.buffer)),k}let E=null;function P(e,t){let n=t(1*e.length,1)>>>0;return y().set(e,n/1),_=e.length,n}const A=Object.freeze({Forward:0,0:"Forward",Reverse:1,1:"Reverse",Bounce:2,2:"Bounce",ReverseBounce:3,3:"ReverseBounce"}),O=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>d.__wbg_dotlottieplayerwasm_free(e>>>0,1));var M=class{__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,O.unregister(this),e}free(){let e=this.__destroy_into_raw();d.__wbg_dotlottieplayerwasm_free(e,0)}clear_slot(e){let t=x(e,d.__wbindgen_malloc_command_export,d.__wbindgen_realloc_command_export),n=_;return 0!==d.dotlottieplayerwasm_clear_slot(this.__wbg_ptr,t,n)}is_playing(){return 0!==d.dotlottieplayerwasm_is_playing(this.__wbg_ptr)}is_stopped(){return 0!==d.dotlottieplayerwasm_is_stopped(this.__wbg_ptr)}layout_fit(){let e,t;try{let n=d.dotlottieplayerwasm_layout_fit(this.__wbg_ptr);return e=n[0],t=n[1],v(n[0],n[1])}finally{d.__wbindgen_free_command_export(e,t,1)}}loop_count(){return d.dotlottieplayerwasm_loop_count(this.__wbg_ptr)>>>0}poll_event(){return d.dotlottieplayerwasm_poll_event(this.__wbg_ptr)}reset_slot(e){let t=x(e,d.__wbindgen_malloc_command_export,d.__wbindgen_realloc_command_export),n=_;return 0!==d.dotlottieplayerwasm_reset_slot(this.__wbg_ptr,t,n)}set_layout(e,t,n){let r=x(e,d.__wbindgen_malloc_command_export,d.__wbindgen_realloc_command_export),a=_;return 0!==d.dotlottieplayerwasm_set_layout(this.__wbg_ptr,r,a,t,n)}set_marker(e){let t=x(e,d.__wbindgen_malloc_command_export,d.__wbindgen_realloc_command_export),n=_;d.dotlottieplayerwasm_set_marker(this.__wbg_ptr,t,n)}clear_slots(){return 0!==d.dotlottieplayerwasm_clear_slots(this.__wbg_ptr)}is_complete(){return 0!==d.dotlottieplayerwasm_is_complete(this.__wbg_ptr)}is_tweening(){return 0!==d.dotlottieplayerwasm_is_tweening(this.__wbg_ptr)}reset_slots(){return 0!==d.dotlottieplayerwasm_reset_slots(this.__wbg_ptr)}reset_theme(){return 0!==d.dotlottieplayerwasm_reset_theme(this.__wbg_ptr)}segment_end(){return d.dotlottieplayerwasm_segment_end(this.__wbg_ptr)}set_quality(e){return 0!==d.dotlottieplayerwasm_set_quality(this.__wbg_ptr,e)}set_segment(e,t){return 0!==d.dotlottieplayerwasm_set_segment(this.__wbg_ptr,e,t)}sm_set_seed(e){return 0!==d.dotlottieplayerwasm_sm_set_seed(this.__wbg_ptr,e)}static unload_font(e){let t=x(e,d.__wbindgen_malloc_command_export,d.__wbindgen_realloc_command_export),n=_;return 0!==d.dotlottieplayerwasm_unload_font(t,n)}animation_id(){let e,t=d.dotlottieplayerwasm_animation_id(this.__wbg_ptr);return 0!==t[0]&&(e=v(t[0],t[1]).slice(),d.__wbindgen_free_command_export(t[0],1*t[1],1)),e}audio_volume(){return d.dotlottieplayerwasm_audio_volume(this.__wbg_ptr)}background_a(){return d.dotlottieplayerwasm_background_a(this.__wbg_ptr)}background_b(){return d.dotlottieplayerwasm_background_b(this.__wbg_ptr)}background_g(){return d.dotlottieplayerwasm_background_g(this.__wbg_ptr)}background_r(){return d.dotlottieplayerwasm_background_r(this.__wbg_ptr)}clear_marker(){d.dotlottieplayerwasm_clear_marker(this.__wbg_ptr)}emit_on_loop(){d.dotlottieplayerwasm_emit_on_loop(this.__wbg_ptr)}get_slot_ids(){return d.dotlottieplayerwasm_get_slot_ids(this.__wbg_ptr)}get_slot_str(e){let t,n=x(e,d.__wbindgen_malloc_command_export,d.__wbindgen_realloc_command_export),r=_,a=d.dotlottieplayerwasm_get_slot_str(this.__wbg_ptr,n,r);return 0!==a[0]&&(t=v(a[0],a[1]).slice(),d.__wbindgen_free_command_export(a[0],1*a[1],1)),t}marker_names(){return d.dotlottieplayerwasm_marker_names(this.__wbg_ptr)}set_autoplay(e){d.dotlottieplayerwasm_set_autoplay(this.__wbg_ptr,e)}set_slot_str(e,t){let n=x(e,d.__wbindgen_malloc_command_export,d.__wbindgen_realloc_command_export),r=_,a=x(t,d.__wbindgen_malloc_command_export,d.__wbindgen_realloc_command_export),i=_;return 0!==d.dotlottieplayerwasm_set_slot_str(this.__wbg_ptr,n,r,a,i)}set_viewport(e,t,n,r){return 0!==d.dotlottieplayerwasm_set_viewport(this.__wbg_ptr,e,t,n,r)}total_frames(){return d.dotlottieplayerwasm_total_frames(this.__wbg_ptr)}clear_segment(){return 0!==d.dotlottieplayerwasm_clear_segment(this.__wbg_ptr)}current_frame(){return d.dotlottieplayerwasm_current_frame(this.__wbg_ptr)}get_slot_type(e){let t,n=x(e,d.__wbindgen_malloc_command_export,d.__wbindgen_realloc_command_export),r=_,a=d.dotlottieplayerwasm_get_slot_type(this.__wbg_ptr,n,r);return 0!==a[0]&&(t=v(a[0],a[1]).slice(),d.__wbindgen_free_command_export(a[0],1*a[1],1)),t}get_slots_str(){let e,t;try{let n=d.dotlottieplayerwasm_get_slots_str(this.__wbg_ptr);return e=n[0],t=n[1],v(n[0],n[1])}finally{d.__wbindgen_free_command_export(e,t,1)}}get_transform(){return d.dotlottieplayerwasm_get_transform(this.__wbg_ptr)}segment_start(){return d.dotlottieplayerwasm_segment_start(this.__wbg_ptr)}set_slots_str(e){let t=x(e,d.__wbindgen_malloc_command_export,d.__wbindgen_realloc_command_export),n=_;return 0!==d.dotlottieplayerwasm_set_slots_str(this.__wbg_ptr,t,n)}set_text_slot(e,t){let n=x(e,d.__wbindgen_malloc_command_export,d.__wbindgen_realloc_command_export),r=_,a=x(t,d.__wbindgen_malloc_command_export,d.__wbindgen_realloc_command_export),i=_;return 0!==d.dotlottieplayerwasm_set_text_slot(this.__wbg_ptr,n,r,a,i)}set_transform(e){let t=function(e,t){let n=t(4*e.length,4)>>>0;return((null===E||0===E.byteLength)&&(E=new Float32Array(d.memory.buffer)),E).set(e,n/4),_=e.length,n}(e,d.__wbindgen_malloc_command_export),n=_;return 0!==d.dotlottieplayerwasm_set_transform(this.__wbg_ptr,t,n)}sm_get_inputs(){return d.dotlottieplayerwasm_sm_get_inputs(this.__wbg_ptr)}sm_poll_event(){return d.dotlottieplayerwasm_sm_poll_event(this.__wbg_ptr)}sm_post_click(e,t){d.dotlottieplayerwasm_sm_post_click(this.__wbg_ptr,e,t)}animation_size(){return d.dotlottieplayerwasm_animation_size(this.__wbg_ptr)}current_marker(){let e,t=d.dotlottieplayerwasm_current_marker(this.__wbg_ptr);return 0!==t[0]&&(e=v(t[0],t[1]).slice(),d.__wbindgen_free_command_export(t[0],1*t[1],1)),e}layout_align_x(){return d.dotlottieplayerwasm_layout_align_x(this.__wbg_ptr)}layout_align_y(){return d.dotlottieplayerwasm_layout_align_y(this.__wbg_ptr)}load_animation(e){let t=x(e,d.__wbindgen_malloc_command_export,d.__wbindgen_realloc_command_export),n=_;return 0!==d.dotlottieplayerwasm_load_animation(this.__wbg_ptr,t,n)}loop_animation(){return 0!==d.dotlottieplayerwasm_loop_animation(this.__wbg_ptr)}set_background(e,t,n,r){return 0!==d.dotlottieplayerwasm_set_background(this.__wbg_ptr,e,t,n,r)}set_color_slot(e,t,n,r){let a=x(e,d.__wbindgen_malloc_command_export,d.__wbindgen_realloc_command_export),i=_;return 0!==d.dotlottieplayerwasm_set_color_slot(this.__wbg_ptr,a,i,t,n,r)}set_loop_count(e){d.dotlottieplayerwasm_set_loop_count(this.__wbg_ptr,e)}set_theme_data(e){let t=x(e,d.__wbindgen_malloc_command_export,d.__wbindgen_realloc_command_export),n=_;return 0!==d.dotlottieplayerwasm_set_theme_data(this.__wbg_ptr,t,n)}sm_reset_input(e){let t=x(e,d.__wbindgen_malloc_command_export,d.__wbindgen_realloc_command_export),n=_;d.dotlottieplayerwasm_sm_reset_input(this.__wbg_ptr,t,n)}manifest_string(){let e,t;try{let n=d.dotlottieplayerwasm_manifest_string(this.__wbg_ptr);return e=n[0],t=n[1],v(n[0],n[1])}finally{d.__wbindgen_free_command_export(e,t,1)}}set_scalar_slot(e,t){let n=x(e,d.__wbindgen_malloc_command_export,d.__wbindgen_realloc_command_export),r=_;return 0!==d.dotlottieplayerwasm_set_scalar_slot(this.__wbg_ptr,n,r,t)}set_vector_slot(e,t,n){let r=x(e,d.__wbindgen_malloc_command_export,d.__wbindgen_realloc_command_export),a=_;return 0!==d.dotlottieplayerwasm_set_vector_slot(this.__wbg_ptr,r,a,t,n)}setup_sw_target(e,t){return 0!==d.dotlottieplayerwasm_setup_sw_target(this.__wbg_ptr,e,t)}get_pixel_buffer(){return d.dotlottieplayerwasm_get_pixel_buffer(this.__wbg_ptr)}set_audio_volume(e){d.dotlottieplayerwasm_set_audio_volume(this.__wbg_ptr,e)}sm_current_state(){let e,t;try{let n=d.dotlottieplayerwasm_sm_current_state(this.__wbg_ptr);return e=n[0],t=n[1],v(n[0],n[1])}finally{d.__wbindgen_free_command_export(e,t,1)}}state_machine_id(){let e,t=d.dotlottieplayerwasm_state_machine_id(this.__wbg_ptr);return 0!==t[0]&&(e=v(t[0],t[1]).slice(),d.__wbindgen_free_command_export(t[0],1*t[1],1)),e}get_state_machine(e){let t,n=x(e,d.__wbindgen_malloc_command_export,d.__wbindgen_realloc_command_export),r=_,a=d.dotlottieplayerwasm_get_state_machine(this.__wbg_ptr,n,r);return 0!==a[0]&&(t=v(a[0],a[1]).slice(),d.__wbindgen_free_command_export(a[0],1*a[1],1)),t}set_position_slot(e,t,n){let r=x(e,d.__wbindgen_malloc_command_export,d.__wbindgen_realloc_command_export),a=_;return 0!==d.dotlottieplayerwasm_set_position_slot(this.__wbg_ptr,r,a,t,n)}current_loop_count(){return d.dotlottieplayerwasm_current_loop_count(this.__wbg_ptr)>>>0}sm_framework_setup(){return d.dotlottieplayerwasm_sm_framework_setup(this.__wbg_ptr)}sm_post_pointer_up(e,t){d.dotlottieplayerwasm_sm_post_pointer_up(this.__wbg_ptr,e,t)}state_machine_load(e){let t=x(e,d.__wbindgen_malloc_command_export,d.__wbindgen_realloc_command_export),n=_;return 0!==d.dotlottieplayerwasm_state_machine_load(this.__wbg_ptr,t,n)}load_dotlottie_data(e){let t=P(e,d.__wbindgen_malloc_command_export),n=_;return 0!==d.dotlottieplayerwasm_load_dotlottie_data(this.__wbg_ptr,t,n)}sm_get_string_input(e){let t,n=x(e,d.__wbindgen_malloc_command_export,d.__wbindgen_realloc_command_export),r=_,a=d.dotlottieplayerwasm_sm_get_string_input(this.__wbg_ptr,n,r);return 0!==a[0]&&(t=v(a[0],a[1]).slice(),d.__wbindgen_free_command_export(a[0],1*a[1],1)),t}sm_set_string_input(e,t){let n=x(e,d.__wbindgen_malloc_command_export,d.__wbindgen_realloc_command_export),r=_,a=x(t,d.__wbindgen_malloc_command_export,d.__wbindgen_realloc_command_export),i=_;return 0!==d.dotlottieplayerwasm_sm_set_string_input(this.__wbg_ptr,n,r,a,i)}sm_get_boolean_input(e){let t=x(e,d.__wbindgen_malloc_command_export,d.__wbindgen_realloc_command_export),n=_,r=d.dotlottieplayerwasm_sm_get_boolean_input(this.__wbg_ptr,t,n);return 16777215===r?void 0:0!==r}sm_get_numeric_input(e){let t=x(e,d.__wbindgen_malloc_command_export,d.__wbindgen_realloc_command_export),n=_,r=d.dotlottieplayerwasm_sm_get_numeric_input(this.__wbg_ptr,t,n);return 4294967297===r?void 0:r}sm_post_pointer_down(e,t){d.dotlottieplayerwasm_sm_post_pointer_down(this.__wbg_ptr,e,t)}sm_post_pointer_exit(e,t){d.dotlottieplayerwasm_sm_post_pointer_exit(this.__wbg_ptr,e,t)}sm_post_pointer_move(e,t){d.dotlottieplayerwasm_sm_post_pointer_move(this.__wbg_ptr,e,t)}sm_set_boolean_input(e,t){let n=x(e,d.__wbindgen_malloc_command_export,d.__wbindgen_realloc_command_export),r=_;return 0!==d.dotlottieplayerwasm_sm_set_boolean_input(this.__wbg_ptr,n,r,t)}sm_set_numeric_input(e,t){let n=x(e,d.__wbindgen_malloc_command_export,d.__wbindgen_realloc_command_export),r=_;return 0!==d.dotlottieplayerwasm_sm_set_numeric_input(this.__wbg_ptr,n,r,t)}state_machine_unload(){d.dotlottieplayerwasm_state_machine_unload(this.__wbg_ptr)}sm_post_pointer_enter(e,t){d.dotlottieplayerwasm_sm_post_pointer_enter(this.__wbg_ptr,e,t)}load_animation_from_id(e){let t=x(e,d.__wbindgen_malloc_command_export,d.__wbindgen_realloc_command_export),n=_;return 0!==d.dotlottieplayerwasm_load_animation_from_id(this.__wbg_ptr,t,n)}sm_poll_internal_event(){return d.dotlottieplayerwasm_sm_poll_internal_event(this.__wbg_ptr)}use_frame_interpolation(){return 0!==d.dotlottieplayerwasm_use_frame_interpolation(this.__wbg_ptr)}reset_current_loop_count(){d.dotlottieplayerwasm_reset_current_loop_count(this.__wbg_ptr)}sm_override_current_state(e,t){let n=x(e,d.__wbindgen_malloc_command_export,d.__wbindgen_realloc_command_export),r=_;return 0!==d.dotlottieplayerwasm_sm_override_current_state(this.__wbg_ptr,n,r,t)}state_machine_load_from_id(e){let t=x(e,d.__wbindgen_malloc_command_export,d.__wbindgen_realloc_command_export),n=_;return 0!==d.dotlottieplayerwasm_state_machine_load_from_id(this.__wbg_ptr,t,n)}set_use_frame_interpolation(e){d.dotlottieplayerwasm_set_use_frame_interpolation(this.__wbg_ptr,e)}constructor(){let e=d.dotlottieplayerwasm_new();return this.__wbg_ptr=e>>>0,O.register(this,this.__wbg_ptr,this),this}mode(){return d.dotlottieplayerwasm_mode(this.__wbg_ptr)}play(){return 0!==d.dotlottieplayerwasm_play(this.__wbg_ptr)}stop(){return 0!==d.dotlottieplayerwasm_stop(this.__wbg_ptr)}tick(e){return 0!==d.dotlottieplayerwasm_tick(this.__wbg_ptr,e)}pause(){return 0!==d.dotlottieplayerwasm_pause(this.__wbg_ptr)}speed(){return d.dotlottieplayerwasm_speed(this.__wbg_ptr)}width(){return d.dotlottieplayerwasm_width(this.__wbg_ptr)>>>0}height(){return d.dotlottieplayerwasm_height(this.__wbg_ptr)>>>0}render(){return 0!==d.dotlottieplayerwasm_render(this.__wbg_ptr)}markers(){return d.dotlottieplayerwasm_markers(this.__wbg_ptr)}sm_fire(e){let t=x(e,d.__wbindgen_malloc_command_export,d.__wbindgen_realloc_command_export),n=_;return 0!==d.dotlottieplayerwasm_sm_fire(this.__wbg_ptr,t,n)}sm_stop(){return 0!==d.dotlottieplayerwasm_sm_stop(this.__wbg_ptr)}sm_tick(e){return 0!==d.dotlottieplayerwasm_sm_tick(this.__wbg_ptr,e)}autoplay(){return 0!==d.dotlottieplayerwasm_autoplay(this.__wbg_ptr)}duration(){return d.dotlottieplayerwasm_duration(this.__wbg_ptr)}set_loop(e){d.dotlottieplayerwasm_set_loop(this.__wbg_ptr,e)}set_mode(e){d.dotlottieplayerwasm_set_mode(this.__wbg_ptr,e)}sm_start(e,t){let n=function(e,t){let n=t(4*e.length,4)>>>0;for(let t=0;t<e.length;t++){let r=b(e[t]);C().setUint32(n+4*t,r,!0)}return _=e.length,n}(t,d.__wbindgen_malloc_command_export),r=_;return 0!==d.dotlottieplayerwasm_sm_start(this.__wbg_ptr,e,n,r)}theme_id(){let e,t=d.dotlottieplayerwasm_theme_id(this.__wbg_ptr);return 0!==t[0]&&(e=v(t[0],t[1]).slice(),d.__wbindgen_free_command_export(t[0],1*t[1],1)),e}is_loaded(){return 0!==d.dotlottieplayerwasm_is_loaded(this.__wbg_ptr)}is_paused(){return 0!==d.dotlottieplayerwasm_is_paused(this.__wbg_ptr)}load_font(e,t){let n=x(e,d.__wbindgen_malloc_command_export,d.__wbindgen_realloc_command_export),r=_,a=P(t,d.__wbindgen_malloc_command_export),i=_;return 0!==d.dotlottieplayerwasm_load_font(this.__wbg_ptr,n,r,a,i)}set_frame(e){return 0!==d.dotlottieplayerwasm_set_frame(this.__wbg_ptr,e)}set_speed(e){d.dotlottieplayerwasm_set_speed(this.__wbg_ptr,e)}set_theme(e){let t=x(e,d.__wbindgen_malloc_command_export,d.__wbindgen_realloc_command_export),n=_;return 0!==d.dotlottieplayerwasm_set_theme(this.__wbg_ptr,t,n)}sm_status(){let e,t;try{let n=d.dotlottieplayerwasm_sm_status(this.__wbg_ptr);return e=n[0],t=n[1],v(n[0],n[1])}finally{d.__wbindgen_free_command_export(e,t,1)}}};function T(){let e={wbg:{}};return e.wbg.__wbg_buffer_609cc3eee51ed158=function(e){return e.buffer},e.wbg.__wbg_error_7534b8e9a36f1ab4=function(e,t){let n,r;try{n=e,r=t,console.error(v(e,t))}finally{d.__wbindgen_free_command_export(n,r,1)}},e.wbg.__wbg_new_405e22f390576ce2=function(){return{}},e.wbg.__wbg_new_78feb108b6472713=function(){return[]},e.wbg.__wbg_new_8a6f238a6ece86ea=function(){return Error()},e.wbg.__wbg_newwithbyteoffsetandlength_d97e637ebe145a9a=function(e,t,n){return new Uint8Array(e,t>>>0,n>>>0)},e.wbg.__wbg_newwithlength_5a5efe313cfd59f1=function(e){return new Float32Array(e>>>0)},e.wbg.__wbg_push_737cfc8c1432c2c6=function(e,t){return e.push(t)},e.wbg.__wbg_set_bb8cecf6a62b9f46=function(){return function(e,t){try{return function(e,t,n){return Reflect.set(e,t,n)}.apply(this,t)}catch(e){let t=b(e);d.__wbindgen_exn_store_command_export(t)}}(function(e,t,n){return Reflect.set(e,t,n)},arguments)},e.wbg.__wbg_setindex_4e73afdcd9bb95cd=function(e,t,n){e[t>>>0]=n},e.wbg.__wbg_stack_0ed75d68575b0f3c=function(e,t){let n=x(t.stack,d.__wbindgen_malloc_command_export,d.__wbindgen_realloc_command_export),r=_;C().setInt32(e+4,r,!0),C().setInt32(e+0,n,!0)},e.wbg.__wbindgen_init_externref_table=function(){let e=d.__wbindgen_export_3,t=e.grow(4);e.set(0,void 0),e.set(t+0,void 0),e.set(t+1,null),e.set(t+2,!0),e.set(t+3,!1)},e.wbg.__wbindgen_memory=function(){return d.memory},e.wbg.__wbindgen_number_new=function(e){return e},e.wbg.__wbindgen_string_get=function(e,t){let n="string"==typeof t?t:void 0;var r=function(e){return null==e}(n)?0:x(n,d.__wbindgen_malloc_command_export,d.__wbindgen_realloc_command_export),a=_;C().setInt32(e+4,a,!0),C().setInt32(e+0,r,!0)},e.wbg.__wbindgen_string_new=function(e,t){return v(e,t)},e.wbg.__wbindgen_throw=function(e,t){throw Error(v(e,t))},e}var I=class{constructor(){i(this,"_eventListeners",new Map)}addEventListener(e,t){let n=this._eventListeners.get(e);n||(n=new Set,this._eventListeners.set(e,n)),n.add(t)}removeEventListener(e,t){let n=this._eventListeners.get(e);n&&(t?(n.delete(t),0===n.size&&this._eventListeners.delete(e)):this._eventListeners.delete(e))}dispatch(e){this._eventListeners.get(e.type)?.forEach(t=>t(e))}removeAllEventListeners(){this._eventListeners.clear()}},D=class e{static _initializeObserver(){e._observer||(e._observer=new IntersectionObserver(t=>{t.forEach(t=>{let n=e._observedCanvases.get(t.target);n&&(t.isIntersecting?n.unfreeze():n.freeze())})},{threshold:0}))}static observe(t,n){e._initializeObserver(),!e._observedCanvases.has(t)&&(e._observedCanvases.set(t,n),e._observer?.observe(t))}static unobserve(t){e._observer?.unobserve(t),e._observedCanvases.delete(t),0===e._observedCanvases.size&&(e._observer?.disconnect(),e._observer=null)}};i(D,"_observer",null),i(D,"_observedCanvases",new Map);var L=class e{static _initializeObserver(){e._observer||(e._observer=new ResizeObserver(t=>{t.forEach(t=>{let n=e._observedCanvases.get(t.target);if(!n)return;let[r,a]=n;clearTimeout(a);let i=setTimeout(()=>{r.resize()},100);e._observedCanvases.set(t.target,[r,i])})}))}static observe(t,n){e._initializeObserver(),!e._observedCanvases.has(t)&&(e._observedCanvases.set(t,[n,0]),e._observer?.observe(t))}static unobserve(t){let n=e._observedCanvases.get(t);if(n){let e=n[1];e&&clearTimeout(e)}e._observer?.unobserve(t),e._observedCanvases.delete(t),!e._observedCanvases.size&&e._observer&&(e._observer.disconnect(),e._observer=null)}};function R(e){if(e.byteLength<4)return!1;let t=new Uint8Array(e.slice(0,u.byteLength));for(let e=0;e<u.length;e+=1)if(u[e]!==t[e])return!1;return!0}function j(e){return f.every(t=>Object.hasOwn(e,t))}function F(e){if("string"!=typeof e)return j(e);try{return j(JSON.parse(e))}catch{return!1}}function V(){return 1+.75*((c?window.devicePixelRatio:1)-1)}function N(e){let t=e.getBoundingClientRect(),n=window.innerHeight||document.documentElement.clientHeight,r=window.innerWidth||document.documentElement.clientWidth;return!(t.bottom<0||t.top>n||t.right<0||t.left>r)}function B(e){let t=e.target;if(t instanceof HTMLCanvasElement){let n=t.getBoundingClientRect();if(0===n.width||0===n.height||0===t.width||0===t.height)return null;let r=t.width/n.width,a=t.height/n.height,i=(e.clientX-n.left)*r,o=(e.clientY-n.top)*a;return!Number.isFinite(i)||!Number.isFinite(o)||Number.isNaN(i)||Number.isNaN(o)?null:{x:i,y:o}}return null}function z(e){let t,n,r=e.replace("OpenUrl: ",""),a=r.indexOf(" | Target: ");-1===a?(t=r,n="_blank"):(t=r.substring(0,a),n=r.substring(a+11)),window.open(t,n)}i(L,"_observer",null),i(L,"_observedCanvases",new Map);const H=function(e,t,n){let r=null,a=t;async function i(t){await e({module_or_path:t})}async function o(t){let n=await fetch(t);if(!n.ok)throw Error(`fetch ${t} responded with ${n.status} ${n.statusText}`);await e({module_or_path:await n.arrayBuffer()})}return{load(){if(!r){let e=a,t=n;r=(async()=>{let n,a;try{return void await i(e)}catch(r){n=r,console.warn(`Primary WASM load failed from ${e}: ${r.message}`),console.warn(`Attempting to load WASM from backup URL: ${t}`)}try{return void await i(t)}catch(e){a=e,console.warn(`Backup WASM load failed from ${t}: ${e.message}`)}console.warn("Retrying WASM load with buffered instantiation");try{return void await o(e)}catch(t){console.warn(`Buffered WASM load from ${e} failed: ${t.message}`)}try{return void await o(t)}catch(e){throw console.error(`Primary WASM URL failed: ${n.message}`),console.error(`Backup WASM URL failed: ${a.message}`),console.error(`Buffered fallback failed: ${e.message}`),r=null,Error("WASM loading failed from all sources.")}})()}return r},setWasmUrl(e){e!==a&&(a=e,r=null)}}}(async function e(t){if(void 0!==d)return d;if(void 0!==t&&(Object.getPrototypeOf(t)===Object.prototype?({module_or_path:t}=t):console.warn("using deprecated parameters for the initialization function; pass a single object instead")),void 0===t)throw Error("WASM module URL must be provided via DotLottieWasmLoader or setWasmUrl().");let n=T();("string"==typeof t||"function"==typeof Request&&t instanceof Request||"function"==typeof URL&&t instanceof URL)&&(t=fetch(t));let{instance:r,module:a}=await async function(e,t){if("function"==typeof Response&&e instanceof Response){if("function"==typeof WebAssembly.instantiateStreaming)try{return await WebAssembly.instantiateStreaming(e,t)}catch(t){if("application/wasm"==e.headers.get("Content-Type"))throw t;console.warn("`WebAssembly.instantiateStreaming` failed because your server does not serve Wasm with `application/wasm` MIME type. Falling back to `WebAssembly.instantiate` which is slower. Original error:\n",t)}let n=await e.arrayBuffer();return await WebAssembly.instantiate(n,t)}{let n=await WebAssembly.instantiate(e,t);return n instanceof WebAssembly.Instance?{instance:n,module:e}:n}}(await t,n);return function(t,n){return d=t.exports,e.__wbindgen_wasm_module=n,k=null,E=null,g=null,d.__wbindgen_start(),d}(r,a)},`https://cdn.jsdelivr.net/npm/${p}@${h}/dist/dotlottie-player.wasm`,`https://unpkg.com/${p}@${h}/dist/dotlottie-player.wasm`),G=e=>{switch(e){case"reverse":return A.Reverse;case"bounce":return A.Bounce;case"reverse-bounce":return A.ReverseBounce;default:return A.Forward}},W=e=>{switch(e){case A.Reverse:return"reverse";case A.Bounce:return"bounce";case A.ReverseBounce:return"reverse-bounce";default:return"forward"}},U=e=>{switch(e){case"contain":default:return"contain";case"cover":return"cover";case"fill":return"fill";case"fit-height":return"fit-height";case"fit-width":return"fit-width";case"none":return"none"}};var $=class{constructor(e){i(this,"_canvas",null),i(this,"_pendingLoad",null),i(this,"_context",null),i(this,"_eventManager",void 0),i(this,"_animationFrameId",null),i(this,"_frameManager",void 0),i(this,"_boundAnimationLoop",void 0),i(this,"_dotLottieCore",null),i(this,"_stateMachineId",""),i(this,"_stateMachineConfig",null),i(this,"_isStateMachineRunning",!1),i(this,"_renderConfig",{}),i(this,"_isFrozen",!1),i(this,"_backgroundColor",null),i(this,"_lastFrameTime",null),i(this,"_boundOnClick",null),i(this,"_boundOnPointerUp",null),i(this,"_boundOnPointerDown",null),i(this,"_boundOnPointerMove",null),i(this,"_boundOnPointerEnter",null),i(this,"_boundOnPointerLeave",null),i(this,"_bufferMismatchCount",0),i(this,"_lastExpectedBufferSize",0),i(this,"_cachedImageData",null),i(this,"_cachedImageDataBuffer",null),i(this,"_cachedImageDataByteOffset",0),i(this,"_marker",""),i(this,"_segment",null),this._canvas=e.canvas??null,this._eventManager=new I,this._frameManager=new l,this._boundAnimationLoop=this._animationLoop.bind(this),this._renderConfig={...e.renderConfig,devicePixelRatio:e.renderConfig?.devicePixelRatio||V(),freezeOnOffscreen:e.renderConfig?.freezeOnOffscreen??!0},this._initWasm().then(()=>{this._dotLottieCore=this._createCore(),this._dotLottieCore.set_autoplay(e.autoplay??!1),this._dotLottieCore.set_loop(e.loop??!1),this._dotLottieCore.set_loop_count(e.loopCount??0),this._dotLottieCore.set_mode(G(e.mode??"forward")),this._dotLottieCore.set_speed(e.speed??1),this._dotLottieCore.set_use_frame_interpolation(e.useFrameInterpolation??!0),e.segment&&2===e.segment.length&&(this._segment=[e.segment[0],e.segment[1]],this._dotLottieCore.set_segment(this._segment[0],this._segment[1])),this._marker=e.marker??"",this._marker&&this._dotLottieCore.set_marker(this._marker),this._dotLottieCore.set_layout(e.layout?.fit??"contain",e.layout?.align?.[0]??.5,e.layout?.align?.[1]??.5),this._stateMachineId=e.stateMachineId??"",this._stateMachineConfig=e.stateMachineConfig??null,this._onCoreCreated(),this._eventManager.dispatch({type:"ready"}),e.data?this._canvas?this._loadFromData(e.data):this._pendingLoad={data:e.data}:e.src&&(this._canvas?this._loadFromSrc(e.src):this._pendingLoad={src:e.src}),e.backgroundColor&&this.setBackgroundColor(e.backgroundColor)}).catch(e=>{console.error("[dotlottie-web] Initialization failed:",e),this._eventManager.dispatch({type:"loadError",error:Error(`Failed to load wasm module: ${e}`)})})}async _initWasm(){return H.load()}_createCore(){return new M}_onCoreCreated(){}_setupTarget(e,t){return!!this._dotLottieCore&&this._dotLottieCore.setup_sw_target(e,t)}_drainPlayerEvents({skipFrame:e=!1}={}){if(!this._dotLottieCore)return;let t;for(;null!=(t=this._dotLottieCore.poll_event());){let n=t;switch(n.type){case"Load":setTimeout(()=>this._eventManager.dispatch({type:"load"}),0);break;case"LoadError":setTimeout(()=>this._eventManager.dispatch({type:"loadError",error:Error("failed to load")}),0);break;case"Play":queueMicrotask(()=>this._eventManager.dispatch({type:"play"}));break;case"Pause":queueMicrotask(()=>this._eventManager.dispatch({type:"pause"}));break;case"Stop":queueMicrotask(()=>this._eventManager.dispatch({type:"stop"}));break;case"Frame":e||queueMicrotask(()=>this._eventManager.dispatch({type:"frame",currentFrame:n.frameNo??0}));break;case"Render":e||queueMicrotask(()=>this._eventManager.dispatch({type:"render",currentFrame:n.frameNo??0}));break;case"Loop":queueMicrotask(()=>this._eventManager.dispatch({type:"loop",loopCount:n.loopCount??0}));break;case"Complete":queueMicrotask(()=>this._eventManager.dispatch({type:"complete"}))}}}_drainSmEvents(){if(!this._dotLottieCore)return;let e,t;for(;null!=(e=this._dotLottieCore.sm_poll_event());){let t=e;switch(t.type){case"Start":queueMicrotask(()=>{this._isStateMachineRunning=!0,this._eventManager.dispatch({type:"stateMachineStart"}),this._startAnimationLoop()});break;case"Stop":queueMicrotask(()=>{this._isStateMachineRunning=!1,this._eventManager.dispatch({type:"stateMachineStop"}),this._dotLottieCore?.is_playing()||this._stopAnimationLoop()});break;case"CustomEvent":this._eventManager.dispatch({type:"stateMachineCustomEvent",eventName:t.message??""});break;case"BooleanInputChange":this._eventManager.dispatch({type:"stateMachineBooleanInputValueChange",inputName:t.name??"",newValue:t.newValue,oldValue:t.oldValue});break;case"NumericInputChange":this._eventManager.dispatch({type:"stateMachineNumericInputValueChange",inputName:t.name??"",newValue:t.newValue,oldValue:t.oldValue});break;case"StringInputChange":this._eventManager.dispatch({type:"stateMachineStringInputValueChange",inputName:t.name??"",newValue:t.newValue,oldValue:t.oldValue});break;case"InputFired":this._eventManager.dispatch({type:"stateMachineInputFired",inputName:t.name??""});break;case"Transition":this._eventManager.dispatch({type:"stateMachineTransition",fromState:t.previousState??"",toState:t.newState??""});break;case"StateEntered":this._eventManager.dispatch({type:"stateMachineStateEntered",state:t.state??""});break;case"StateExit":this._eventManager.dispatch({type:"stateMachineStateExit",state:t.state??""});break;case"Error":this._eventManager.dispatch({type:"stateMachineError",error:t.message??""})}}for(;null!=(t=this._dotLottieCore.sm_poll_internal_event());){let e=t;if("Message"===e.type){let t=e.message??"";c&&t.startsWith("OpenUrl: ")?z(t):this._eventManager.dispatch({type:"stateMachineInternalMessage",message:t})}}}_dispatchError(e){console.error(e),this._eventManager.dispatch({type:"loadError",error:Error(e)})}async _fetchData(e){let t=await fetch(e);if(!t.ok)throw Error(`Failed to fetch animation data from URL: ${e}. ${t.status}: ${t.statusText}`);let n=await t.arrayBuffer();return R(n)?n:(new TextDecoder).decode(n)}_loadFromData(e){if(null===this._dotLottieCore)return;if(!this._canvas)return void console.warn("[dotlottie-web] Cannot load animation without canvas. Call setCanvas() first.");let t=this._canvas.width,n=this._canvas.height;this._setupTarget(t,n);let r=!1;if("string"==typeof e){if(!F(e))return void this._dispatchError("Invalid Lottie JSON string: The provided string does not conform to the Lottie JSON format.");r=this._dotLottieCore.load_animation(e)}else if(e instanceof ArrayBuffer){if(!R(e))return void this._dispatchError("Invalid dotLottie ArrayBuffer: The provided ArrayBuffer does not conform to the dotLottie format.");r=this._dotLottieCore.load_dotlottie_data(new Uint8Array(e))}else{if("object"!=typeof e)return void this._dispatchError("Unsupported data type for animation data. Expected:\n          - string (Lottie JSON),\n          - ArrayBuffer (dotLottie),\n          - object (Lottie JSON).\n          Received: "+typeof e);if(!F(e))return void this._dispatchError("Invalid Lottie JSON object: The provided object does not conform to the Lottie JSON format.");r=this._dotLottieCore.load_animation(JSON.stringify(e))}if(r){if(void 0!==this._renderConfig.quality&&this._dotLottieCore.set_quality(this._renderConfig.quality),c&&this.resize(),this._drainPlayerEvents({skipFrame:!!this._marker||!!this._segment}),this._marker&&this._dotLottieCore.set_marker(this._marker),this._segment){this._dotLottieCore.set_segment(this._segment[0],this._segment[1]);let e=W(this._dotLottieCore.mode()),t="reverse"===e||"reverse-bounce"===e?this._segment[1]:this._segment[0];this._dotLottieCore.set_frame(t)}setTimeout(()=>{this._eventManager.dispatch({type:"frame",currentFrame:this.currentFrame})},0),this._dotLottieCore.render(),this._drainPlayerEvents(),this._draw(),this._stateMachineId?this.stateMachineLoad(this._stateMachineId)&&this.stateMachineStart()&&this._startAnimationLoop():this._dotLottieCore.is_playing()&&this._startAnimationLoop(),c&&this._canvas instanceof HTMLCanvasElement&&(this._renderConfig.freezeOnOffscreen&&(D.observe(this._canvas,this),N(this._canvas)||this.freeze()),this._renderConfig.autoResize&&L.observe(this._canvas,this))}else this._drainPlayerEvents()}_loadFromSrc(e){this._fetchData(e).then(e=>this._loadFromData(e)).catch(t=>this._dispatchError(`Failed to load animation data from URL: ${e}. ${t}`))}get buffer(){return this._dotLottieCore?this._dotLottieCore.get_pixel_buffer():null}get activeAnimationId(){return this._dotLottieCore?.animation_id()??void 0}get activeThemeId(){return this._dotLottieCore?.theme_id()??void 0}get layout(){if(this._dotLottieCore)return{align:[this._dotLottieCore.layout_align_x(),this._dotLottieCore.layout_align_y()],fit:U(this._dotLottieCore.layout_fit())}}get marker(){return this._dotLottieCore?.current_marker()??""}get manifest(){try{let e=this._dotLottieCore?.manifest_string();if(null===this._dotLottieCore||!e)return null;let t=JSON.parse(e);return 0===Object.keys(t).length?null:t}catch{return null}}get renderConfig(){return this._renderConfig}get segment(){if(this._dotLottieCore)return[this._dotLottieCore.segment_start(),this._dotLottieCore.segment_end()]}get loop(){return this._dotLottieCore?.loop_animation()??!1}get mode(){return this._dotLottieCore?W(this._dotLottieCore.mode()):"forward"}get isFrozen(){return this._isFrozen}get isStateMachineRunning(){return this._isStateMachineRunning}get backgroundColor(){return this._backgroundColor??""}get autoplay(){return this._dotLottieCore?.autoplay()??!1}get useFrameInterpolation(){return this._dotLottieCore?.use_frame_interpolation()??!1}get speed(){return this._dotLottieCore?.speed()??0}get isReady(){return null!==this._dotLottieCore}get isLoaded(){return this._dotLottieCore?.is_loaded()??!1}get isPlaying(){return this._dotLottieCore?.is_playing()??!1}get isPaused(){return this._dotLottieCore?.is_paused()??!1}get isStopped(){return this._dotLottieCore?.is_stopped()??!1}get currentFrame(){return this._dotLottieCore?Math.round(100*this._dotLottieCore.current_frame())/100:0}get loopCount(){return this._dotLottieCore?.current_loop_count()??0}get totalFrames(){return this._dotLottieCore?.total_frames()??0}get duration(){return(this._dotLottieCore?.duration()??0)/1e3}get canvas(){return this._canvas}load(e){null!==this._dotLottieCore&&(this._stopAnimationLoop(),this._cleanupCanvas(),this._isFrozen=!1,this._dotLottieCore.set_autoplay(e.autoplay??!1),this._dotLottieCore.set_loop(e.loop??!1),this._dotLottieCore.set_loop_count(e.loopCount??0),this._dotLottieCore.set_mode(G(e.mode??"forward")),this._dotLottieCore.set_speed(e.speed??1),this._dotLottieCore.set_use_frame_interpolation(e.useFrameInterpolation??!0),e.segment&&2===e.segment.length?(this._segment=[e.segment[0],e.segment[1]],this._dotLottieCore.set_segment(this._segment[0],this._segment[1])):(this._segment=null,this._dotLottieCore.clear_segment()),this._marker=e.marker??"",this._marker?this._dotLottieCore.set_marker(this._marker):this._dotLottieCore.clear_marker(),this._dotLottieCore.set_layout(e.layout?.fit??"contain",e.layout?.align?.[0]??.5,e.layout?.align?.[1]??.5),e.data?this._canvas?this._loadFromData(e.data):this._pendingLoad={data:e.data}:e.src&&(this._canvas?this._loadFromSrc(e.src):this._pendingLoad={src:e.src}),e.backgroundColor&&this.setBackgroundColor(e.backgroundColor))}_draw(){if(null===this._dotLottieCore||null===this._canvas||(!this._context&&"getContext"in this._canvas&&"function"==typeof this._canvas.getContext&&(!c||typeof HTMLCanvasElement<"u"&&this._canvas instanceof HTMLCanvasElement||typeof OffscreenCanvas<"u"&&this._canvas instanceof OffscreenCanvas)&&(this._context=this._canvas.getContext("2d")),!this._context))return;let e=this._dotLottieCore.get_pixel_buffer(),t=this._canvas.width,n=this._canvas.height,r=t*n*4;if(e.byteLength!==r)return this._lastExpectedBufferSize===r?this._bufferMismatchCount+=1:(this._bufferMismatchCount=1,this._lastExpectedBufferSize=r),void(10===this._bufferMismatchCount&&console.warn(`[dotlottie-web] Persistent buffer size mismatch detected. Expected ${r} bytes for canvas ${t}x${n}, but got ${e.byteLength} bytes. This may indicate a WASM memory allocation issue or invalid canvas dimensions.`));this._bufferMismatchCount=0,this._lastExpectedBufferSize=r;let a=this._cachedImageData;if(null===a||a.width!==t||a.height!==n||a.data.byteLength!==r||this._cachedImageDataBuffer!==e.buffer||this._cachedImageDataByteOffset!==e.byteOffset){if(typeof ImageData>"u")this._cachedImageData=this._context.createImageData(t,n);else{let r=new Uint8ClampedArray(e.buffer,e.byteOffset,e.byteLength);this._cachedImageData=new ImageData(r,t,n)}this._cachedImageDataBuffer=e.buffer,this._cachedImageDataByteOffset=e.byteOffset}if(typeof ImageData>"u"){let t=new Uint8ClampedArray(e.buffer,e.byteOffset,e.byteLength);this._cachedImageData.data.set(t)}this._context.putImageData(this._cachedImageData,0,0)}_cleanupCanvas(){this._canvas&&c&&this._canvas instanceof HTMLCanvasElement&&(D.unobserve(this._canvas),L.unobserve(this._canvas),this._cleanupStateMachineListeners())}_initializeCanvas(){this._setupRendererOnCanvas(),this._canvas&&c&&this._canvas instanceof HTMLCanvasElement&&this.isLoaded&&(this._renderConfig.freezeOnOffscreen&&(D.observe(this._canvas,this),N(this._canvas)||this.freeze()),this._renderConfig.autoResize&&L.observe(this._canvas,this),this._isStateMachineRunning&&this._setupStateMachineListeners()),this._canvas&&this._dotLottieCore&&this.isLoaded&&this._setupTarget(this._canvas.width,this._canvas.height)&&(this._dotLottieCore.render(),this._draw())}_setupRendererOnCanvas(){this._context=null}_stopAnimationLoop(){null!==this._animationFrameId&&(this._frameManager.cancelAnimationFrame(this._animationFrameId),this._animationFrameId=null),this._lastFrameTime=null}_startAnimationLoop(){null===this._animationFrameId&&this._dotLottieCore&&!this._isFrozen&&(this._dotLottieCore.is_playing()||this._isStateMachineRunning)&&(this._animationFrameId=this._frameManager.requestAnimationFrame(this._boundAnimationLoop))}_animationLoop(e){if(null!==this._dotLottieCore)if(this._dotLottieCore.is_playing()||this._isStateMachineRunning)try{let t=null===this._lastFrameTime?0:e-this._lastFrameTime;this._lastFrameTime=e;let n=this._isStateMachineRunning?this._dotLottieCore.sm_tick(t):this._dotLottieCore.tick(t);this._isStateMachineRunning?this._drainSmEvents():this._drainPlayerEvents(),n&&this._draw(),this._animationFrameId=this._frameManager.requestAnimationFrame(this._boundAnimationLoop)}catch(e){console.error("Error in animation frame:",e),this._eventManager.dispatch({type:"renderError",error:e}),e instanceof WebAssembly.RuntimeError&&this.destroy()}else this._stopAnimationLoop();else this._stopAnimationLoop()}play(){if(null===this._dotLottieCore||!this.isLoaded)return;this._stopAnimationLoop();let e=this._dotLottieCore.play();this._drainPlayerEvents(),(e||this._dotLottieCore.is_playing())&&(this._isFrozen=!1,this._startAnimationLoop()),this._canvas&&c&&this._canvas instanceof HTMLCanvasElement&&this._renderConfig.freezeOnOffscreen&&!N(this._canvas)&&this.freeze()}pause(){null!==this._dotLottieCore&&(this._dotLottieCore.pause(),this._drainPlayerEvents(),this._stopAnimationLoop())}stop(){if(null===this._dotLottieCore)return;let e=this._dotLottieCore.stop();this._drainPlayerEvents(),this._stopAnimationLoop(),e&&(this._eventManager.dispatch({type:"frame",currentFrame:this.currentFrame}),this._dotLottieCore.render(),this._draw())}setFrame(e){if(null!==this._dotLottieCore&&this._dotLottieCore.set_frame(e)){let e=this._dotLottieCore.render();this._drainPlayerEvents(),e&&this._draw()}}setSpeed(e){null!==this._dotLottieCore&&this._dotLottieCore.set_speed(e)}setBackgroundColor(e){if(null!==this._dotLottieCore){if(c&&this._canvas instanceof HTMLCanvasElement)this._canvas.style.backgroundColor=e;else{let[t,n,r,a]=function(e){if(!function(e){return/^#([\da-f]{6}|[\da-f]{8})$/iu.test(e)}(e))return[0,0,0,0];let t=e.replace("#","");return t=6===t.length?`${t}ff`:t,[parseInt(t.slice(0,2),16)/255,parseInt(t.slice(2,4),16)/255,parseInt(t.slice(4,6),16)/255,parseInt(t.slice(6,8),16)/255]}(e);this._dotLottieCore.set_background(t,n,r,a)}this._backgroundColor=e}}setLoop(e){null!==this._dotLottieCore&&this._dotLottieCore.set_loop(e)}setLoopCount(e){null!==this._dotLottieCore&&this._dotLottieCore.set_loop_count(e)}setUseFrameInterpolation(e){null!==this._dotLottieCore&&this._dotLottieCore.set_use_frame_interpolation(e)}addEventListener(e,t){this._eventManager.addEventListener(e,t)}removeEventListener(e,t){this._eventManager.removeEventListener(e,t)}destroy(){this._stopAnimationLoop(),this._isStateMachineRunning=!1,this._cleanupCanvas();let e=this._dotLottieCore;if(this._dotLottieCore=null,this._context=null,e)try{e.free()}catch(e){console.warn("[dotlottie-web] Error freeing wasm core during destroy:",e)}this._eventManager.dispatch({type:"destroy"}),this._eventManager.removeAllEventListeners(),this._cleanupStateMachineListeners()}freeze(){null!==this._animationFrameId&&(this._stopAnimationLoop(),this._isFrozen=!0,this._eventManager.dispatch({type:"freeze"}))}unfreeze(){null===this._animationFrameId&&(this._isFrozen=!1,this._eventManager.dispatch({type:"unfreeze"}),this._startAnimationLoop())}resize(){if(this._dotLottieCore&&this.isLoaded&&this._canvas){if(c&&this._canvas instanceof HTMLCanvasElement){let e=this._renderConfig.devicePixelRatio||window.devicePixelRatio||1,{height:t,width:n}=this._canvas.getBoundingClientRect();0!==t&&0!==n&&(this._canvas.width=n*e,this._canvas.height=t*e)}this._setupTarget(this._canvas.width,this._canvas.height)&&(this._dotLottieCore.render(),this._draw())}}setCanvas(e){if(e&&this._canvas!==e&&(this._canvas&&this._cleanupCanvas(),this._canvas=e,this._initializeCanvas(),this._pendingLoad)){let e=this._pendingLoad;this._pendingLoad=null,e.data?this._loadFromData(e.data):e.src&&this._loadFromSrc(e.src)}}setTransform(e){if(!this._dotLottieCore)return!1;let t=this._dotLottieCore.set_transform(new Float32Array(e));return t&&this._dotLottieCore.render()&&this._draw(),t}getTransform(){if(!this._dotLottieCore)return;let e=this._dotLottieCore.get_transform();return Array.from(e)}setSegment(e,t){null!==this._dotLottieCore&&(this._segment=[e,t],this._dotLottieCore.set_segment(e,t))}resetSegment(){null!==this._dotLottieCore&&(this._segment=null,this._dotLottieCore.clear_segment())}setMode(e){null!==this._dotLottieCore&&this._dotLottieCore.set_mode(G(e))}setRenderConfig(e){let{devicePixelRatio:t,freezeOnOffscreen:n,quality:r,...a}=e;this._renderConfig={...this._renderConfig,...a,devicePixelRatio:t||V(),freezeOnOffscreen:n??!0,...void 0!==r&&{quality:r}},void 0!==r&&this._dotLottieCore&&this._dotLottieCore.set_quality(r),c&&this._canvas instanceof HTMLCanvasElement&&(this._renderConfig.autoResize?L.observe(this._canvas,this):L.unobserve(this._canvas),this._renderConfig.freezeOnOffscreen?(D.observe(this._canvas,this),N(this._canvas)||this.freeze()):(D.unobserve(this._canvas),this._isFrozen&&this.unfreeze()))}loadAnimation(e){null===this._dotLottieCore||this._dotLottieCore.animation_id()===e||!this._canvas||(this._setupTarget(this._canvas.width,this._canvas.height),this._dotLottieCore.load_animation_from_id(e)?(void 0!==this._renderConfig.quality&&this._dotLottieCore.set_quality(this._renderConfig.quality),this.resize(),this._drainPlayerEvents(),this._dotLottieCore.render(),this._draw()):this._dispatchError(`Failed to load animation with id: ${e}`))}setMarker(e){null!==this._dotLottieCore&&(this.markers().some(t=>t.name===e)?(this._marker=e,this._dotLottieCore.set_marker(e)):(this._marker="",this._segment=null,this._dotLottieCore.clear_marker(),this._dotLottieCore.clear_segment()))}markers(){let e=this._dotLottieCore?.markers();return e&&Array.isArray(e)?e:[]}setTheme(e){if(null===this._dotLottieCore)return!1;let t=this._dotLottieCore.set_theme(e);return t&&(this._dotLottieCore.render(),this._draw()),t}resetTheme(){if(null===this._dotLottieCore)return!1;let e=this._dotLottieCore.reset_theme();return e&&(this._dotLottieCore.render(),this._draw()),e}setThemeData(e){if(null===this._dotLottieCore)return!1;let t="string"==typeof e?e:JSON.stringify(e),n=this._dotLottieCore.set_theme_data(t);return n&&(this._dotLottieCore.render(),this._draw()),n}setSlots(e){null!==this._dotLottieCore&&this._dotLottieCore.set_slots_str(JSON.stringify(e))&&(this._dotLottieCore.render(),this._draw())}_isKeyframeArray(e){return Array.isArray(e)&&e.length>0&&"object"==typeof e[0]&&null!==e[0]&&"t"in e[0]&&"s"in e[0]}getSlotIds(){if(!this._dotLottieCore)return[];let e=this._dotLottieCore.get_slot_ids();return Array.isArray(e)?e:[]}getSlotType(e){if(!this._dotLottieCore)return;return this._dotLottieCore.get_slot_type(e)||void 0}getSlot(e){if(!this._dotLottieCore)return;let t=this._dotLottieCore.get_slot_str(e);if(t)try{return JSON.parse(t)}catch{return}}getSlots(){if(!this._dotLottieCore)return{};try{return JSON.parse(this._dotLottieCore.get_slots_str())}catch{return{}}}setColorSlot(e,t){if(null===this._dotLottieCore)return!1;let n=this._isKeyframeArray(t),r=JSON.stringify({a:+!!n,k:t}),a=this._dotLottieCore.set_slot_str(e,r);return this._dotLottieCore.render(),this._draw(),a}setScalarSlot(e,t){if(null===this._dotLottieCore)return!1;let n=JSON.stringify({a:"number"==typeof t?0:1,k:t}),r=this._dotLottieCore.set_slot_str(e,n);return this._dotLottieCore.render(),this._draw(),r}setVectorSlot(e,t){if(null===this._dotLottieCore)return!1;let n=this._isKeyframeArray(t),r=JSON.stringify({a:+!!n,k:t}),a=this._dotLottieCore.set_slot_str(e,r);return this._dotLottieCore.render(),this._draw(),a}setGradientSlot(e,t,n){if(null===this._dotLottieCore)return!1;let r=this._isKeyframeArray(t),a=JSON.stringify({k:{a:+!!r,k:t},p:n}),i=this._dotLottieCore.set_slot_str(e,a);return this._dotLottieCore.render(),this._draw(),i}setTextSlot(e,t){if(null===this._dotLottieCore)return!1;let n=this._dotLottieCore.get_slot_str(e),r=t;if(n){let e=JSON.parse(n);if(e&&"k"in e&&Array.isArray(e.k)){let n=e.k[0];"s"in n&&"object"==typeof n.s&&(r={...n.s,...t})}}let a=JSON.stringify({a:0,k:[{t:0,s:r}]}),i=this._dotLottieCore.set_slot_str(e,a);return this._dotLottieCore.render(),this._draw(),i}resetSlot(e){if(null===this._dotLottieCore)return!1;let t=this._dotLottieCore.reset_slot(e);return this._dotLottieCore.render(),this._draw(),t}clearSlot(e){if(null===this._dotLottieCore)return!1;let t=this._dotLottieCore.clear_slot(e);return this._dotLottieCore.render(),this._draw(),t}resetSlots(){if(null===this._dotLottieCore)return!1;let e=this._dotLottieCore.reset_slots();return this._dotLottieCore.render(),this._draw(),e}clearSlots(){if(null===this._dotLottieCore)return!1;let e=this._dotLottieCore.clear_slots();return this._dotLottieCore.render(),this._draw(),e}setLayout(e){null!==this._dotLottieCore&&this._dotLottieCore.set_layout(e.fit??"contain",e.align?.[0]??.5,e.align?.[1]??.5)}setViewport(e,t,n,r){return null!==this._dotLottieCore&&this._dotLottieCore.set_viewport(e,t,n,r)}static setWasmUrl(e){H.setWasmUrl(e)}static async registerFont(e,t){try{let n;if(await H.load(),"string"==typeof t){let e=await fetch(t);if(!e.ok)return console.error(`Failed to fetch font from URL: ${t}. Status: ${e.status}`),!1;n=new Uint8Array(await e.arrayBuffer())}else n=t instanceof Uint8Array?t:new Uint8Array(t);let r=function(e,t){let n=x(e,d.__wbindgen_malloc_command_export,d.__wbindgen_realloc_command_export),r=_,a=P(t,d.__wbindgen_malloc_command_export),i=_;return 0!==d.register_font(n,r,a,i)}(e,n);return r||console.error(`Failed to register font "${e}". Font data may be invalid.`),r}catch(t){return console.error(`Error registering font "${e}":`,t),!1}}animationSize(){let e=this._dotLottieCore?.animation_size();return{width:e?.[0]??0,height:e?.[1]??0}}stateMachineLoad(e){return!!this._dotLottieCore&&this._dotLottieCore.state_machine_load_from_id(e)}stateMachineLoadData(e){return!!this._dotLottieCore&&this._dotLottieCore.state_machine_load(e)}stateMachineSetConfig(e){this._stateMachineConfig=e}stateMachineStart(){if(null===this._dotLottieCore)return!1;let e=this._dotLottieCore.sm_start(this._stateMachineConfig?.openUrlPolicy?.requireUserInteraction??!0,this._stateMachineConfig?.openUrlPolicy?.whitelist??[]);return this._drainSmEvents(),e&&(this._isStateMachineRunning=!0,this._setupStateMachineListeners(),this._startAnimationLoop()),e}stateMachineStop(){if(!this._dotLottieCore)return!1;let e=this._dotLottieCore.sm_stop();return this._drainSmEvents(),e&&(this._isStateMachineRunning=!1,this._cleanupStateMachineListeners(),this._dotLottieCore.is_playing()||this._stopAnimationLoop()),e}stateMachineGetStatus(){return this._dotLottieCore?.sm_status()??""}stateMachineGetCurrentState(){return this._dotLottieCore?.sm_current_state()??""}stateMachineGetActiveId(){return this._dotLottieCore?.state_machine_id()??""}stateMachineOverrideState(e,t=!1){return this._dotLottieCore?.sm_override_current_state(e,t)??!1}stateMachineGet(e){return this._dotLottieCore?.get_state_machine(e)??""}stateMachineGetListeners(){if(!this._dotLottieCore)return[];let e=this._dotLottieCore.sm_framework_setup();return Array.isArray(e)?e:[]}stateMachineSetBooleanInput(e,t){return this._dotLottieCore?.sm_set_boolean_input(e,t)??!1}stateMachineSetNumericInput(e,t){return this._dotLottieCore?.sm_set_numeric_input(e,t)??!1}stateMachineSetStringInput(e,t){return this._dotLottieCore?.sm_set_string_input(e,t)??!1}stateMachineGetBooleanInput(e){return this._dotLottieCore?.sm_get_boolean_input(e)??void 0}stateMachineGetNumericInput(e){return this._dotLottieCore?.sm_get_numeric_input(e)??void 0}stateMachineGetStringInput(e){return this._dotLottieCore?.sm_get_string_input(e)??void 0}stateMachineGetInputs(){if(!this._dotLottieCore)return[];let e=this._dotLottieCore.sm_get_inputs();return Array.isArray(e)?e:[]}stateMachineFireEvent(e){this._dotLottieCore?.sm_fire(e)}stateMachinePostClickEvent(e,t){this._dotLottieCore?.sm_post_click(e,t)}stateMachinePostPointerUpEvent(e,t){this._dotLottieCore?.sm_post_pointer_up(e,t)}stateMachinePostPointerDownEvent(e,t){this._dotLottieCore?.sm_post_pointer_down(e,t)}stateMachinePostPointerMoveEvent(e,t){this._dotLottieCore?.sm_post_pointer_move(e,t)}stateMachinePostPointerEnterEvent(e,t){this._dotLottieCore?.sm_post_pointer_enter(e,t)}stateMachinePostPointerExitEvent(e,t){this._dotLottieCore?.sm_post_pointer_exit(e,t)}_onClick(e){let t=B(e);t&&this.stateMachinePostClickEvent(t.x,t.y)}_onPointerUp(e){let t=B(e);t&&this.stateMachinePostPointerUpEvent(t.x,t.y)}_onPointerDown(e){let t=B(e);t&&this.stateMachinePostPointerDownEvent(t.x,t.y)}_onPointerMove(e){let t=B(e);t&&this.stateMachinePostPointerMoveEvent(t.x,t.y)}_onPointerEnter(e){let t=B(e);t&&this.stateMachinePostPointerEnterEvent(t.x,t.y)}_onPointerLeave(e){let t=B(e);t&&this.stateMachinePostPointerExitEvent(t.x,t.y)}_setupStateMachineListeners(){if(c&&this._canvas instanceof HTMLCanvasElement&&null!==this._dotLottieCore&&this.isLoaded){let e=this.stateMachineGetListeners();this._cleanupStateMachineListeners(),e.includes("Click")&&(this._boundOnClick=this._onClick.bind(this),this._canvas.addEventListener("click",this._boundOnClick)),e.includes("PointerUp")&&(this._boundOnPointerUp=this._onPointerUp.bind(this),this._canvas.addEventListener("pointerup",this._boundOnPointerUp)),e.includes("PointerDown")&&(this._boundOnPointerDown=this._onPointerDown.bind(this),this._canvas.addEventListener("pointerdown",this._boundOnPointerDown)),e.includes("PointerMove")&&(this._boundOnPointerMove=this._onPointerMove.bind(this),this._canvas.addEventListener("pointermove",this._boundOnPointerMove)),e.includes("PointerEnter")&&(this._boundOnPointerEnter=this._onPointerEnter.bind(this),this._canvas.addEventListener("pointerenter",this._boundOnPointerEnter)),e.includes("PointerExit")&&(this._boundOnPointerLeave=this._onPointerLeave.bind(this),this._canvas.addEventListener("pointerleave",this._boundOnPointerLeave))}}_cleanupStateMachineListeners(){c&&this._canvas instanceof HTMLCanvasElement&&(this._boundOnClick&&(this._canvas.removeEventListener("click",this._boundOnClick),this._boundOnClick=null),this._boundOnPointerUp&&(this._canvas.removeEventListener("pointerup",this._boundOnPointerUp),this._boundOnPointerUp=null),this._boundOnPointerDown&&(this._canvas.removeEventListener("pointerdown",this._boundOnPointerDown),this._boundOnPointerDown=null),this._boundOnPointerMove&&(this._canvas.removeEventListener("pointermove",this._boundOnPointerMove),this._boundOnPointerMove=null),this._boundOnPointerEnter&&(this._canvas.removeEventListener("pointerenter",this._boundOnPointerEnter),this._boundOnPointerEnter=null),this._boundOnPointerLeave&&(this._canvas.removeEventListener("pointerleave",this._boundOnPointerLeave),this._boundOnPointerLeave=null))}},q=class{constructor(){if(typeof Worker>"u")throw Error("Worker is not supported in this environment.");let e=new Blob([new Uint8Array([34,117,115,101,32,115,116,114,105,99,116,34,59,40,40,41,61,62,123,118,97,114,32,99,116,61,79,98,106,101,99,116,46,100,101,102,105,110,101,80,114,111,112,101,114,116,121,59,118,97,114,32,95,116,61,40,110,44,116,44,101,41,61,62,116,32,105,110,32,110,63,99,116,40,110,44,116,44,123,101,110,117,109,101,114,97,98,108,101,58,33,48,44,99,111,110,102,105,103,117,114,97,98,108,101,58,33,48,44,119,114,105,116,97,98,108,101,58,33,48,44,118,97,108,117,101,58,101,125,41,58,110,91,116,93,61,101,59,118,97,114,32,108,61,40,110,44,116,44,101,41,61,62,95,116,40,110,44,116,121,112,101,111,102,32,116,33,61,34,115,121,109,98,111,108,34,63,116,43,34,34,58,116,44,101,41,59,118,97,114,32,66,61,99,108,97,115,115,123,114,101,113,117,101,115,116,65,110,105,109,97,116,105,111,110,70,114,97,109,101,40,116,41,123,114,101,116,117,114,110,32,114,101,113,117,101,115,116,65,110,105,109,97,116,105,111,110,70,114,97,109,101,40,116,41,125,99,97,110,99,101,108,65,110,105,109,97,116,105,111,110,70,114,97,109,101,40,116,41,123,99,97,110,99,101,108,65,110,105,109,97,116,105,111,110,70,114,97,109,101,40,116,41,125,125,44,68,61,99,108,97,115,115,123,99,111,110,115,116,114,117,99,116,111,114,40,41,123,108,40,116,104,105,115,44,34,95,108,97,115,116,72,97,110,100,108,101,73,100,34,44,48,41,59,108,40,116,104,105,115,44,34,95,108,97,115,116,73,109,109,101,100,105,97,116,101,34,44,110,117,108,108,41,125,114,101,113,117,101,115,116,65,110,105,109,97,116,105,111,110,70,114,97,109,101,40,116,41,123,114,101,116,117,114,110,32,116,104,105,115,46,95,108,97,115,116,72,97,110,100,108,101,73,100,62,61,78,117,109,98,101,114,46,77,65,88,95,83,65,70,69,95,73,78,84,69,71,69,82,38,38,40,116,104,105,115,46,95,108,97,115,116,72,97,110,100,108,101,73,100,61,48,41,44,116,104,105,115,46,95,108,97,115,116,72,97,110,100,108,101,73,100,43,61,49,44,116,104,105,115,46,95,108,97,115,116,73,109,109,101,100,105,97,116,101,61,115,101,116,73,109,109,101,100,105,97,116,101,40,40,41,61,62,123,116,40,112,101,114,102,111,114,109,97,110,99,101,46,110,111,119,40,41,41,125,41,44,116,104,105,115,46,95,108,97,115,116,72,97,110,100,108,101,73,100,125,99,97,110,99,101,108,65,110,105,109,97,116,105,111,110,70,114,97,109,101,40,116,41,123,116,104,105,115,46,95,108,97,115,116,73,109,109,101,100,105,97,116,101,38,38,99,108,101,97,114,73,109,109,101,100,105,97,116,101,40,116,104,105,115,46,95,108,97,115,116,73,109,109,101,100,105,97,116,101,41,125,125,44,84,61,99,108,97,115,115,123,99,111,110,115,116,114,117,99,116,111,114,40,41,123,108,40,116,104,105,115,44,34,95,115,116,114,97,116,101,103,121,34,41,59,116,104,105,115,46,95,115,116,114,97,116,101,103,121,61,116,121,112,101,111,102,32,114,101,113,117,101,115,116,65,110,105,109,97,116,105,111,110,70,114,97,109,101,61,61,34,102,117,110,99,116,105,111,110,34,63,110,101,119,32,66,58,110,101,119,32,68,125,114,101,113,117,101,115,116,65,110,105,109,97,116,105,111,110,70,114,97,109,101,40,116,41,123,114,101,116,117,114,110,32,116,104,105,115,46,95,115,116,114,97,116,101,103,121,46,114,101,113,117,101,115,116,65,110,105,109,97,116,105,111,110,70,114,97,109,101,40,116,41,125,99,97,110,99,101,108,65,110,105,109,97,116,105,111,110,70,114,97,109,101,40,116,41,123,116,104,105,115,46,95,115,116,114,97,116,101,103,121,46,99,97,110,99,101,108,65,110,105,109,97,116,105,111,110,70,114,97,109,101,40,116,41,125,125,59,118,97,114,32,103,61,116,121,112,101,111,102,32,119,105,110,100,111,119,60,34,117,34,38,38,116,121,112,101,111,102,32,119,105,110,100,111,119,46,100,111,99,117,109,101,110,116,60,34,117,34,59,118,97,114,32,80,61,110,101,119,32,85,105,110,116,56,65,114,114,97,121,40,91,56,48,44,55,53,44,51,44,52,93,41,44,75,61,91,34,118,34,44,34,105,112,34,44,34,111,112,34,44,34,108,97,121,101,114,115,34,44,34,102,114,34,44,34,119,34,44,34,104,34,93,44,36,61,34,48,46,55,53,46,48,34,44,122,61,34,64,108,111,116,116,105,101,102,105,108,101,115,47,100,111,116,108,111,116,116,105,101,45,119,101,98,34,44,89,61,46,55,53,44,88,61,52,59,118,97,114,32,115,44,81,61,116,121,112,101,111,102,32,84,101,120,116,68,101,99,111,100,101,114,60,34,117,34,63,110,101,119,32,84,101,120,116,68,101,99,111,100,101,114,40,34,117,116,102,45,56,34,44,123,105,103,110,111,114,101,66,79,77,58,33,48,44,102,97,116,97,108,58,33,48,125,41,58,123,100,101,99,111,100,101,58,40,41,61,62,123,116,104,114,111,119,32,69,114,114,111,114,40,34,84,101,120,116,68,101,99,111,100,101,114,32,110,111,116,32,97,118,97,105,108,97,98,108,101,34,41,125,125,59,116,121,112,101,111,102,32,84,101,120,116,68,101,99,111,100,101,114,60,34,117,34,38,38,81,46,100,101,99,111,100,101,40,41,59,118,97,114,32,76,61,110,117,108,108,59,102,117,110,99,116,105,111,110,32,83,40,41,123,114,101,116,117,114,110,40,76,61,61,61,110,117,108,108,124,124,76,46,98,121,116,101,76,101,110,103,116,104,61,61,61,48,41,38,38,40,76,61,110,101,119,32,85,105,110,116,56,65,114,114,97,121,40,115,46,109,101,109,111,114,121,46,98,117,102,102,101,114,41,41,44,76,125,102,117,110,99,116,105,111,110,32,109,40,110,44,116,41,123,114,101,116,117,114,110,32,110,61,110,62,62,62,48,44,81,46,100,101,99,111,100,101,40,83,40,41,46,115,117,98,97,114,114,97,121,40,110,44,110,43,116,41,41,125,102,117,110,99,116,105,111,110,32,113,40,110,41,123,108,101,116,32,116,61,115,46,95,95,101,120,116,101,114,110,114,101,102,95,116,97,98,108,101,95,97,108,108,111,99,95,99,111,109,109,97,110,100,95,101,120,112,111,114,116,40,41,59,114,101,116,117,114,110,32,115,46,95,95,119,98,105,110,100,103,101,110,95,101,120,112,111,114,116,95,51,46,115,101,116,40,116,44,110,41,44,116,125,102,117,110,99,116,105,111,110,32,100,116,40,110,44,116,41,123,116,114,121,123,114,101,116,117,114,110,32,110,46,97,112,112,108,121,40,116,104,105,115,44,116,41,125,99,97,116,99,104,40,101,41,123,108,101,116,32,114,61,113,40,101,41,59,115,46,95,95,119,98,105,110,100,103,101,110,95,101,120,110,95,115,116,111,114,101,95,99,111,109,109,97,110,100,95,101,120,112,111,114,116,40,114,41,125,125,118,97,114,32,95,61,48,44,65,61,116,121,112,101,111,102,32,84,101,120,116,69,110,99,111,100,101,114,60,34,117,34,63,110,101,119,32,84,101,120,116,69,110,99,111,100,101,114,40,34,117,116,102,45,56,34,41,58,123,101,110,99,111,100,101,58,40,41,61,62,123,116,104,114,111,119,32,69,114,114,111,114,40,34,84,101,120,116,69,110,99,111,100,101,114,32,110,111,116,32,97,118,97,105,108,97,98,108,101,34,41,125,125,44,108,116,61,116,121,112,101,111,102,32,65,46,101,110,99,111,100,101,73,110,116,111,61,61,34,102,117,110,99,116,105,111,110,34,63,102,117,110,99,116,105,111,110,40,110,44,116,41,123,114,101,116,117,114,110,32,65,46,101,110,99,111,100,101,73,110,116,111,40,110,44,116,41,125,58,102,117,110,99,116,105,111,110,40,110,44,116,41,123,108,101,116,32,101,61,65,46,101,110,99,111,100,101,40,110,41,59,114,101,116,117,114,110,32,116,46,115,101,116,40,101,41,44,123,114,101,97,100,58,110,46,108,101,110,103,116,104,44,119,114,105,116,116,101,110,58,101,46,108,101,110,103,116,104,125,125,59,102,117,110,99,116,105,111,110,32,112,40,110,44,116,44,101,41,123,105,102,40,101,61,61,61,118,111,105,100,32,48,41,123,108,101,116,32,100,61,65,46,101,110,99,111,100,101,40,110,41,44,104,61,116,40,100,46,108,101,110,103,116,104,44,49,41,62,62,62,48,59,114,101,116,117,114,110,32,83,40,41,46,115,117,98,97,114,114,97,121,40,104,44,104,43,100,46,108,101,110,103,116,104,41,46,115,101,116,40,100,41,44,95,61,100,46,108,101,110,103,116,104,44,104,125,108,101,116,32,114,61,110,46,108,101,110,103,116,104,44,111,61,116,40,114,44,49,41,62,62,62,48,44,105,61,83,40,41,44,99,61,48,59,102,111,114,40,59,99,60,114,59,99,43,43,41,123,108,101,116,32,100,61,110,46,99,104,97,114,67,111,100,101,65,116,40,99,41,59,105,102,40,100,62,49,50,55,41,98,114,101,97,107,59,105,91,111,43,99,93,61,100,125,105,102,40,99,33,61,61,114,41,123,99,33,61,61,48,38,38,40,110,61,110,46,115,108,105,99,101,40,99,41,41,44,111,61,101,40,111,44,114,44,114,61,99,43,110,46,108,101,110,103,116,104,42,51,44,49,41,62,62,62,48,59,108,101,116,32,100,61,83,40,41,46,115,117,98,97,114,114,97,121,40,111,43,99,44,111,43,114,41,44,104,61,108,116,40,110,44,100,41,59,99,43,61,104,46,119,114,105,116,116,101,110,44,111,61,101,40,111,44,114,44,99,44,49,41,62,62,62,48,125,114,101,116,117,114,110,32,95,61,99,44,111,125,118,97,114,32,69,61,110,117,108,108,59,102,117,110,99,116,105,111,110,32,73,40,41,123,114,101,116,117,114,110,40,69,61,61,61,110,117,108,108,124,124,69,46,98,117,102,102,101,114,46,100,101,116,97,99,104,101,100,61,61,61,33,48,124,124,69,46,98,117,102,102,101,114,46,100,101,116,97,99,104,101,100,61,61,61,118,111,105,100,32,48,38,38,69,46,98,117,102,102,101,114,33,61,61,115,46,109,101,109,111,114,121,46,98,117,102,102,101,114,41,38,38,40,69,61,110,101,119,32,68,97,116,97,86,105,101,119,40,115,46,109,101,109,111,114,121,46,98,117,102,102,101,114,41,41,44,69,125,102,117,110,99,116,105,111,110,32,112,116,40,110,41,123,114,101,116,117,114,110,32,110,61,61,110,117,108,108,125,118,97,114,32,120,61,110,117,108,108,59,102,117,110,99,116,105,111,110,32,104,116,40,41,123,114,101,116,117,114,110,40,120,61,61,61,110,117,108,108,124,124,120,46,98,121,116,101,76,101,110,103,116,104,61,61,61,48,41,38,38,40,120,61,110,101,119,32,70,108,111,97,116,51,50,65,114,114,97,121,40,115,46,109,101,109,111,114,121,46,98,117,102,102,101,114,41,41,44,120,125,102,117,110,99,116,105,111,110,32,117,116,40,110,44,116,41,123,108,101,116,32,101,61,116,40,110,46,108,101,110,103,116,104,42,52,44,52,41,62,62,62,48,59,114,101,116,117,114,110,32,104,116,40,41,46,115,101,116,40,110,44,101,47,52,41,44,95,61,110,46,108,101,110,103,116,104,44,101,125,102,117,110,99,116,105,111,110,32,86,40,110,44,116,41,123,108,101,116,32,101,61,116,40,110,46,108,101,110,103,116,104,42,49,44,49,41,62,62,62,48,59,114,101,116,117,114,110,32,83,40,41,46,115,101,116,40,110,44,101,47,49,41,44,95,61,110,46,108,101,110,103,116,104,44,101,125,102,117,110,99,116,105,111,110,32,109,116,40,110,44,116,41,123,108,101,116,32,101,61,116,40,110,46,108,101,110,103,116,104,42,52,44,52,41,62,62,62,48,59,102,111,114,40,108,101,116,32,114,61,48,59,114,60,110,46,108,101,110,103,116,104,59,114,43,43,41,123,108,101,116,32,111,61,113,40,110,91,114,93,41,59,73,40,41,46,115,101,116,85,105,110,116,51,50,40,101,43,52,42,114,44,111,44,33,48,41,125,114,101,116,117,114,110,32,95,61,110,46,108,101,110,103,116,104,44,101,125,102,117,110,99,116,105,111,110,32,116,116,40,110,44,116,41,123,108,101,116,32,101,61,112,40,110,44,115,46,95,95,119,98,105,110,100,103,101,110,95,109,97,108,108,111,99,95,99,111,109,109,97,110,100,95,101,120,112,111,114,116,44,115,46,95,95,119,98,105,110,100,103,101,110,95,114,101,97,108,108,111,99,95,99,111,109,109,97,110,100,95,101,120,112,111,114,116,41,44,114,61,95,44,111,61,86,40,116,44,115,46,95,95,119,98,105,110,100,103,101,110,95,109,97,108,108,111,99,95,99,111,109,109,97,110,100,95,101,120,112,111,114,116,41,44,105,61,95,59,114,101,116,117,114,110,32,115,46,114,101,103,105,115,116,101,114,95,102,111,110,116,40,101,44,114,44,111,44,105,41,33,61,61,48,125,118,97,114,32,119,61,79,98,106,101,99,116,46,102,114,101,101,122,101,40,123,70,111,114,119,97,114,100,58,48,44,48,58,34,70,111,114,119,97,114,100,34,44,82,101,118,101,114,115,101,58,49,44,49,58,34,82,101,118,101,114,115,101,34,44,66,111,117,110,99,101,58,50,44,50,58,34,66,111,117,110,99,101,34,44,82,101,118,101,114,115,101,66,111,117,110,99,101,58,51,44,51,58,34,82,101,118,101,114,115,101,66,111,117,110,99,101,34,125,41,44,90,61,116,121,112,101,111,102,32,70,105,110,97,108,105,122,97,116,105,111,110,82,101,103,105,115,116,114,121,62,34,117,34,63,123,114,101,103,105,115,116,101,114,58,40,41,61,62,123,125,44,117,110,114,101,103,105,115,116,101,114,58,40,41,61,62,123,125,125,58,110,101,119,32,70,105,110,97,108,105,122,97,116,105,111,110,82,101,103,105,115,116,114,121,40,110,61,62,115,46,95,95,119,98,103,95,100,111,116,108,111,116,116,105,101,112,108,97,121,101,114,119,97,115,109,95,102,114,101,101,40,110,62,62,62,48,44,49,41,41,44,70,61,99,108,97,115,115,123,95,95,100,101,115,116,114,111,121,95,105,110,116,111,95,114,97,119,40,41,123,108,101,116,32,116,61,116,104,105,115,46,95,95,119,98,103,95,112,116,114,59,114,101,116,117,114,110,32,116,104,105,115,46,95,95,119,98,103,95,112,116,114,61,48,44,90,46,117,110,114,101,103,105,115,116,101,114,40,116,104,105,115,41,44,116,125,102,114,101,101,40,41,123,108,101,116,32,116,61,116,104,105,115,46,95,95,100,101,115,116,114,111,121,95,105,110,116,111,95,114,97,119,40,41,59,115,46,95,95,119,98,103,95,100,111,116,108,111,116,116,105,101,112,108,97,121,101,114,119,97,115,109,95,102,114,101,101,40,116,44,48,41,125,99,108,101,97,114,95,115,108,111,116,40,116,41,123,108,101,116,32,101,61,112,40,116,44,115,46,95,95,119,98,105,110,100,103,101,110,95,109,97,108,108,111,99,95,99,111,109,109,97,110,100,95,101,120,112,111,114,116,44,115,46,95,95,119,98,105,110,100,103,101,110,95,114,101,97,108,108,111,99,95,99,111,109,109,97,110,100,95,101,120,112,111,114,116,41,44,114,61,95,59,114,101,116,117,114,110,32,115,46,100,111,116,108,111,116,116,105,101,112,108,97,121,101,114,119,97,115,109,95,99,108,101,97,114,95,115,108,111,116,40,116,104,105,115,46,95,95,119,98,103,95,112,116,114,44,101,44,114,41,33,61,61,48,125,105,115,95,112,108,97,121,105,110,103,40,41,123,114,101,116,117,114,110,32,115,46,100,111,116,108,111,116,116,105,101,112,108,97,121,101,114,119,97,115,109,95,105,115,95,112,108,97,121,105,110,103,40,116,104,105,115,46,95,95,119,98,103,95,112,116,114,41,33,61,61,48,125,105,115,95,115,116,111,112,112,101,100,40,41,123,114,101,116,117,114,110,32,115,46,100,111,116,108,111,116,116,105,101,112,108,97,121,101,114,119,97,115,109,95,105,115,95,115,116,111,112,112,101,100,40,116,104,105,115,46,95,95,119,98,103,95,112,116,114,41,33,61,61,48,125,108,97,121,111,117,116,95,102,105,116,40,41,123,108,101,116,32,116,44,101,59,116,114,121,123,108,101,116,32,114,61,115,46,100,111,116,108,111,116,116,105,101,112,108,97,121,101,114,119,97,115,109,95,108,97,121,111,117,116,95,102,105,116,40,116,104,105,115,46,95,95,119,98,103,95,112,116,114,41,59,114,101,116,117,114,110,32,116,61,114,91,48,93,44,101,61,114,91,49,93,44,109,40,114,91,48,93,44,114,91,49,93,41,125,102,105,110,97,108,108,121,123,115,46,95,95,119,98,105,110,100,103,101,110,95,102,114,101,101,95,99,111,109,109,97,110,100,95,101,120,112,111,114,116,40,116,44,101,44,49,41,125,125,108,111,111,112,95,99,111,117,110,116,40,41,123,114,101,116,117,114,110,32,115,46,100,111,116,108,111,116,116,105,101,112,108,97,121,101,114,119,97,115,109,95,108,111,111,112,95,99,111,117,110,116,40,116,104,105,115,46,95,95,119,98,103,95,112,116,114,41,62,62,62,48,125,112,111,108,108,95,101,118,101,110,116,40,41,123,114,101,116,117,114,110,32,115,46,100,111,116,108,111,116,116,105,101,112,108,97,121,101,114,119,97,115,109,95,112,111,108,108,95,101,118,101,110,116,40,116,104,105,115,46,95,95,119,98,103,95,112,116,114,41,125,114,101,115,101,116,95,115,108,111,116,40,116,41,123,108,101,116,32,101,61,112,40,116,44,115,46,95,95,119,98,105,110,100,103,101,110,95,109,97,108,108,111,99,95,99,111,109,109,97,110,100,95,101,120,112,111,114,116,44,115,46,95,95,119,98,105,110,100,103,101,110,95,114,101,97,108,108,111,99,95,99,111,109,109,97,110,100,95,101,120,112,111,114,116,41,44,114,61,95,59,114,101,116,117,114,110,32,115,46,100,111,116,108,111,116,116,105,101,112,108,97,121,101,114,119,97,115,109,95,114,101,115,101,116,95,115,108,111,116,40,116,104,105,115,46,95,95,119,98,103,95,112,116,114,44,101,44,114,41,33,61,61,48,125,115,101,116,95,108,97,121,111,117,116,40,116,44,101,44,114,41,123,108,101,116,32,111,61,112,40,116,44,115,46,95,95,119,98,105,110,100,103,101,110,95,109,97,108,108,111,99,95,99,111,109,109,97,110,100,95,101,120,112,111,114,116,44,115,46,95,95,119,98,105,110,100,103,101,110,95,114,101,97,108,108,111,99,95,99,111,109,109,97,110,100,95,101,120,112,111,114,116,41,44,105,61,95,59,114,101,116,117,114,110,32,115,46,100,111,116,108,111,116,116,105,101,112,108,97,121,101,114,119,97,115,109,95,115,101,116,95,108,97,121,111,117,116,40,116,104,105,115,46,95,95,119,98,103,95,112,116,114,44,111,44,105,44,101,44,114,41,33,61,61,48,125,115,101,116,95,109,97,114,107,101,114,40,116,41,123,108,101,116,32,101,61,112,40,116,44,115,46,95,95,119,98,105,110,100,103,101,110,95,109,97,108,108,111,99,95,99,111,109,109,97,110,100,95,101,120,112,111,114,116,44,115,46,95,95,119,98,105,110,100,103,101,110,95,114,101,97,108,108,111,99,95,99,111,109,109,97,110,100,95,101,120,112,111,114,116,41,44,114,61,95,59,115,46,100,111,116,108,111,116,116,105,101,112,108,97,121,101,114,119,97,115,109,95,115,101,116,95,109,97,114,107,101,114,40,116,104,105,115,46,95,95,119,98,103,95,112,116,114,44,101,44,114,41,125,99,108,101,97,114,95,115,108,111,116,115,40,41,123,114,101,116,117,114,110,32,115,46,100,111,116,108,111,116,116,105,101,112,108,97,121,101,114,119,97,115,109,95,99,108,101,97,114,95,115,108,111,116,115,40,116,104,105,115,46,95,95,119,98,103,95,112,116,114,41,33,61,61,48,125,105,115,95,99,111,109,112,108,101,116,101,40,41,123,114,101,116,117,114,110,32,115,46,100,111,116,108,111,116,116,105,101,112,108,97,121,101,114,119,97,115,109,95,105,115,95,99,111,109,112,108,101,116,101,40,116,104,105,115,46,95,95,119,98,103,95,112,116,114,41,33,61,61,48,125,105,115,95,116,119,101,101,110,105,110,103,40,41,123,114,101,116,117,114,110,32,115,46,100,111,116,108,111,116,116,105,101,112,108,97,121,101,114,119,97,115,109,95,105,115,95,116,119,101,101,110,105,110,103,40,116,104,105,115,46,95,95,119,98,103,95,112,116,114,41,33,61,61,48,125,114,101,115,101,116,95,115,108,111,116,115,40,41,123,114,101,116,117,114,110,32,115,46,100,111,116,108,111,116,116,105,101,112,108,97,121,101,114,119,97,115,109,95,114,101,115,101,116,95,115,108,111,116,115,40,116,104,105,115,46,95,95,119,98,103,95,112,116,114,41,33,61,61,48,125,114,101,115,101,116,95,116,104,101,109,101,40,41,123,114,101,116,117,114,110,32,115,46,100,111,116,108,111,116,116,105,101,112,108,97,121,101,114,119,97,115,109,95,114,101,115,101,116,95,116,104,101,109,101,40,116,104,105,115,46,95,95,119,98,103,95,112,116,114,41,33,61,61,48,125,115,101,103,109,101,110,116,95,101,110,100,40,41,123,114,101,116,117,114,110,32,115,46,100,111,116,108,111,116,116,105,101,112,108,97,121,101,114,119,97,115,109,95,115,101,103,109,101,110,116,95,101,110,100,40,116,104,105,115,46,95,95,119,98,103,95,112,116,114,41,125,115,101,116,95,113,117,97,108,105,116,121,40,116,41,123,114,101,116,117,114,110,32,115,46,100,111,116,108,111,116,116,105,101,112,108,97,121,101,114,119,97,115,109,95,115,101,116,95,113,117,97,108,105,116,121,40,116,104,105,115,46,95,95,119,98,103,95,112,116,114,44,116,41,33,61,61,48,125,115,101,116,95,115,101,103,109,101,110,116,40,116,44,101,41,123,114,101,116,117,114,110,32,115,46,100,111,116,108,111,116,116,105,101,112,108,97,121,101,114,119,97,115,109,95,115,101,116,95,115,101,103,109,101,110,116,40,116,104,105,115,46,95,95,119,98,103,95,112,116,114,44,116,44,101,41,33,61,61,48,125,115,109,95,115,101,116,95,115,101,101,100,40,116,41,123,114,101,116,117,114,110,32,115,46,100,111,116,108,111,116,116,105,101,112,108,97,121,101,114,119,97,115,109,95,115,109,95,115,101,116,95,115,101,101,100,40,116,104,105,115,46,95,95,119,98,103,95,112,116,114,44,116,41,33,61,61,48,125,115,116,97,116,105,99,32,117,110,108,111,97,100,95,102,111,110,116,40,116,41,123,108,101,116,32,101,61,112,40,116,44,115,46,95,95,119,98,105,110,100,103,101,110,95,109,97,108,108,111,99,95,99,111,109,109,97,110,100,95,101,120,112,111,114,116,44,115,46,95,95,119,98,105,110,100,103,101,110,95,114,101,97,108,108,111,99,95,99,111,109,109,97,110,100,95,101,120,112,111,114,116,41,44,114,61,95,59,114,101,116,117,114,110,32,115,46,100,111,116,108,111,116,116,105,101,112,108,97,121,101,114,119,97,115,109,95,117,110,108,111,97,100,95,102,111,110,116,40,101,44,114,41,33,61,61,48,125,97,110,105,109,97,116,105,111,110,95,105,100,40,41,123,108,101,116,32,116,61,115,46,100,111,116,108,111,116,116,105,101,112,108,97,121,101,114,119,97,115,109,95,97,110,105,109,97,116,105,111,110,95,105,100,40,116,104,105,115,46,95,95,119,98,103,95,112,116,114,41,44,101,59,114,101,116,117,114,110,32,116,91,48,93,33,61,61,48,38,38,40,101,61,109,40,116,91,48,93,44,116,91,49,93,41,46,115,108,105,99,101,40,41,44,115,46,95,95,119,98,105,110,100,103,101,110,95,102,114,101,101,95,99,111,109,109,97,110,100,95,101,120,112,111,114,116,40,116,91,48,93,44,116,91,49,93,42,49,44,49,41,41,44,101,125,97,117,100,105,111,95,118,111,108,117,109,101,40,41,123,114,101,116,117,114,110,32,115,46,100,111,116,108,111,116,116,105,101,112,108,97,121,101,114,119,97,115,109,95,97,117,100,105,111,95,118,111,108,117,109,101,40,116,104,105,115,46,95,95,119,98,103,95,112,116,114,41,125,98,97,99,107,103,114,111,117,110,100,95,97,40,41,123,114,101,116,117,114,110,32,115,46,100,111,116,108,111,116,116,105,101,112,108,97,121,101,114,119,97,115,109,95,98,97,99,107,103,114,111,117,110,100,95,97,40,116,104,105,115,46,95,95,119,98,103,95,112,116,114,41,125,98,97,99,107,103,114,111,117,110,100,95,98,40,41,123,114,101,116,117,114,110,32,115,46,100,111,116,108,111,116,116,105,101,112,108,97,121,101,114,119,97,115,109,95,98,97,99,107,103,114,111,117,110,100,95,98,40,116,104,105,115,46,95,95,119,98,103,95,112,116,114,41,125,98,97,99,107,103,114,111,117,110,100,95,103,40,41,123,114,101,116,117,114,110,32,115,46,100,111,116,108,111,116,116,105,101,112,108,97,121,101,114,119,97,115,109,95,98,97,99,107,103,114,111,117,110,100,95,103,40,116,104,105,115,46,95,95,119,98,103,95,112,116,114,41,125,98,97,99,107,103,114,111,117,110,100,95,114,40,41,123,114,101,116,117,114,110,32,115,46,100,111,116,108,111,116,116,105,101,112,108,97,121,101,114,119,97,115,109,95,98,97,99,107,103,114,111,117,110,100,95,114,40,116,104,105,115,46,95,95,119,98,103,95,112,116,114,41,125,99,108,101,97,114,95,109,97,114,107,101,114,40,41,123,115,46,100,111,116,108,111,116,116,105,101,112,108,97,121,101,114,119,97,115,109,95,99,108,101,97,114,95,109,97,114,107,101,114,40,116,104,105,115,46,95,95,119,98,103,95,112,116,114,41,125,101,109,105,116,95,111,110,95,108,111,111,112,40,41,123,115,46,100,111,116,108,111,116,116,105,101,112,108,97,121,101,114,119,97,115,109,95,101,109,105,116,95,111,110,95,108,111,111,112,40,116,104,105,115,46,95,95,119,98,103,95,112,116,114,41,125,103,101,116,95,115,108,111,116,95,105,100,115,40,41,123,114,101,116,117,114,110,32,115,46,100,111,116,108,111,116,116,105,101,112,108,97,121,101,114,119,97,115,109,95,103,101,116,95,115,108,111,116,95,105,100,115,40,116,104,105,115,46,95,95,119,98,103,95,112,116,114,41,125,103,101,116,95,115,108,111,116,95,115,116,114,40,116,41,123,108,101,116,32,101,61,112,40,116,44,115,46,95,95,119,98,105,110,100,103,101,110,95,109,97,108,108,111,99,95,99,111,109,109,97,110,100,95,101,120,112,111,114,116,44,115,46,95,95,119,98,105,110,100,103,101,110,95,114,101,97,108,108,111,99,95,99,111,109,109,97,110,100,95,101,120,112,111,114,116,41,44,114,61,95,44,111,61,115,46,100,111,116,108,111,116,116,105,101,112,108,97,121,101,114,119,97,115,109,95,103,101,116,95,115,108,111,116,95,115,116,114,40,116,104,105,115,46,95,95,119,98,103,95,112,116,114,44,101,44,114,41,44,105,59,114,101,116,117,114,110,32,111,91,48,93,33,61,61,48,38,38,40,105,61,109,40,111,91,48,93,44,111,91,49,93,41,46,115,108,105,99,101,40,41,44,115,46,95,95,119,98,105,110,100,103,101,110,95,102,114,101,101,95,99,111,109,109,97,110,100,95,101,120,112,111,114,116,40,111,91,48,93,44,111,91,49,93,42,49,44,49,41,41,44,105,125,109,97,114,107,101,114,95,110,97,109,101,115,40,41,123,114,101,116,117,114,110,32,115,46,100,111,116,108,111,116,116,105,101,112,108,97,121,101,114,119,97,115,109,95,109,97,114,107,101,114,95,110,97,109,101,115,40,116,104,105,115,46,95,95,119,98,103,95,112,116,114,41,125,115,101,116,95,97,117,116,111,112,108,97,121,40,116,41,123,115,46,100,111,116,108,111,116,116,105,101,112,108,97,121,101,114,119,97,115,109,95,115,101,116,95,97,117,116,111,112,108,97,121,40,116,104,105,115,46,95,95,119,98,103,95,112,116,114,44,116,41,125,115,101,116,95,115,108,111,116,95,115,116,114,40,116,44,101,41,123,108,101,116,32,114,61,112,40,116,44,115,46,95,95,119,98,105,110,100,103,101,110,95,109,97,108,108,111,99,95,99,111,109,109,97,110,100,95,101,120,112,111,114,116,44,115,46,95,95,119,98,105,110,100,103,101,110,95,114,101,97,108,108,111,99,95,99,111,109,109,97,110,100,95,101,120,112,111,114,116,41,44,111,61,95,44,105,61,112,40,101,44,115,46,95,95,119,98,105,110,100,103,101,110,95,109,97,108,108,111,99,95,99,111,109,109,97,110,100,95,101,120,112,111,114,116,44,115,46,95,95,119,98,105,110,100,103,101,110,95,114,101,97,108,108,111,99,95,99,111,109,109,97,110,100,95,101,120,112,111,114,116,41,44,99,61,95,59,114,101,116,117,114,110,32,115,46,100,111,116,108,111,116,116,105,101,112,108,97,121,101,114,119,97,115,109,95,115,101,116,95,115,108,111,116,95,115,116,114,40,116,104,105,115,46,95,95,119,98,103,95,112,116,114,44,114,44,111,44,105,44,99,41,33,61,61,48,125,115,101,116,95,118,105,101,119,112,111,114,116,40,116,44,101,44,114,44,111,41,123,114,101,116,117,114,110,32,115,46,100,111,116,108,111,116,116,105,101,112,108,97,121,101,114,119,97,115,109,95,115,101,116,95,118,105,101,119,112,111,114,116,40,116,104,105,115,46,95,95,119,98,103,95,112,116,114,44,116,44,101,44,114,44,111,41,33,61,61,48,125,116,111,116,97,108,95,102,114,97,109,101,115,40,41,123,114,101,116,117,114,110,32,115,46,100,111,116,108,111,116,116,105,101,112,108,97,121,101,114,119,97,115,109,95,116,111,116,97,108,95,102,114,97,109,101,115,40,116,104,105,115,46,95,95,119,98,103,95,112,116,114,41,125,99,108,101,97,114,95,115,101,103,109,101,110,116,40,41,123,114,101,116,117,114,110,32,115,46,100,111,116,108,111,116,116,105,101,112,108,97,121,101,114,119,97,115,109,95,99,108,101,97,114,95,115,101,103,109,101,110,116,40,116,104,105,115,46,95,95,119,98,103,95,112,116,114,41,33,61,61,48,125,99,117,114,114,101,110,116,95,102,114,97,109,101,40,41,123,114,101,116,117,114,110,32,115,46,100,111,116,108,111,116,116,105,101,112,108,97,121,101,114,119,97,115,109,95,99,117,114,114,101,110,116,95,102,114,97,109,101,40,116,104,105,115,46,95,95,119,98,103,95,112,116,114,41,125,103,101,116,95,115,108,111,116,95,116,121,112,101,40,116,41,123,108,101,116,32,101,61,112,40,116,44,115,46,95,95,119,98,105,110,100,103,101,110,95,109,97,108,108,111,99,95,99,111,109,109,97,110,100,95,101,120,112,111,114,116,44,115,46,95,95,119,98,105,110,100,103,101,110,95,114,101,97,108,108,111,99,95,99,111,109,109,97,110,100,95,101,120,112,111,114,116,41,44,114,61,95,44,111,61,115,46,100,111,116,108,111,116,116,105,101,112,108,97,121,101,114,119,97,115,109,95,103,101,116,95,115,108,111,116,95,116,121,112,101,40,116,104,105,115,46,95,95,119,98,103,95,112,116,114,44,101,44,114,41,44,105,59,114,101,116,117,114,110,32,111,91,48,93,33,61,61,48,38,38,40,105,61,109,40,111,91,48,93,44,111,91,49,93,41,46,115,108,105,99,101,40,41,44,115,46,95,95,119,98,105,110,100,103,101,110,95,102,114,101,101,95,99,111,109,109,97,110,100,95,101,120,112,111,114,116,40,111,91,48,93,44,111,91,49,93,42,49,44,49,41,41,44,105,125,103,101,116,95,115,108,111,116,115,95,115,116,114,40,41,123,108,101,116,32,116,44,101,59,116,114,121,123,108,101,116,32,114,61,115,46,100,111,116,108,111,116,116,105,101,112,108,97,121,101,114,119,97,115,109,95,103,101,116,95,115,108,111,116,115,95,115,116,114,40,116,104,105,115,46,95,95,119,98,103,95,112,116,114,41,59,114,101,116,117,114,110,32,116,61,114,91,48,93,44,101,61,114,91,49,93,44,109,40,114,91,48,93,44,114,91,49,93,41,125,102,105,110,97,108,108,121,123,115,46,95,95,119,98,105,110,100,103,101,110,95,102,114,101,101,95,99,111,109,109,97,110,100,95,101,120,112,111,114,116,40,116,44,101,44,49,41,125,125,103,101,116,95,116,114,97,110,115,102,111,114,109,40,41,123,114,101,116,117,114,110,32,115,46,100,111,116,108,111,116,116,105,101,112,108,97,121,101,114,119,97,115,109,95,103,101,116,95,116,114,97,110,115,102,111,114,109,40,116,104,105,115,46,95,95,119,98,103,95,112,116,114,41,125,115,101,103,109,101,110,116,95,115,116,97,114,116,40,41,123,114,101,116,117,114,110,32,115,46,100,111,116,108,111,116,116,105,101,112,108,97,121,101,114,119,97,115,109,95,115,101,103,109,101,110,116,95,115,116,97,114,116,40,116,104,105,115,46,95,95,119,98,103,95,112,116,114,41,125,115,101,116,95,115,108,111,116,115,95,115,116,114,40,116,41,123,108,101,116,32,101,61,112,40,116,44,115,46,95,95,119,98,105,110,100,103,101,110,95,109,97,108,108,111,99,95,99,111,109,109,97,110,100,95,101,120,112,111,114,116,44,115,46,95,95,119,98,105,110,100,103,101,110,95,114,101,97,108,108,111,99,95,99,111,109,109,97,110,100,95,101,120,112,111,114,116,41,44,114,61,95,59,114,101,116,117,114,110,32,115,46,100,111,116,108,111,116,116,105,101,112,108,97,121,101,114,119,97,115,109,95,115,101,116,95,115,108,111,116,115,95,115,116,114,40,116,104,105,115,46,95,95,119,98,103,95,112,116,114,44,101,44,114,41,33,61,61,48,125,115,101,116,95,116,101,120,116,95,115,108,111,116,40,116,44,101,41,123,108,101,116,32,114,61,112,40,116,44,115,46,95,95,119,98,105,110,100,103,101,110,95,109,97,108,108,111,99,95,99,111,109,109,97,110,100,95,101,120,112,111,114,116,44,115,46,95,95,119,98,105,110,100,103,101,110,95,114,101,97,108,108,111,99,95,99,111,109,109,97,110,100,95,101,120,112,111,114,116,41,44,111,61,95,44,105,61,112,40,101,44,115,46,95,95,119,98,105,110,100,103,101,110,95,109,97,108,108,111,99,95,99,111,109,109,97,110,100,95,101,120,112,111,114,116,44,115,46,95,95,119,98,105,110,100,103,101,110,95,114,101,97,108,108,111,99,95,99,111,109,109,97,110,100,95,101,120,112,111,114,116,41,44,99,61,95,59,114,101,116,117,114,110,32,115,46,100,111,116,108,111,116,116,105,101,112,108,97,121,101,114,119,97,115,109,95,115,101,116,95,116,101,120,116,95,115,108,111,116,40,116,104,105,115,46,95,95,119,98,103,95,112,116,114,44,114,44,111,44,105,44,99,41,33,61,61,48,125,115,101,116,95,116,114,97,110,115,102,111,114,109,40,116,41,123,108,101,116,32,101,61,117,116,40,116,44,115,46,95,95,119,98,105,110,100,103,101,110,95,109,97,108,108,111,99,95,99,111,109,109,97,110,100,95,101,120,112,111,114,116,41,44,114,61,95,59,114,101,116,117,114,110,32,115,46,100,111,116,108,111,116,116,105,101,112,108,97,121,101,114,119,97,115,109,95,115,101,116,95,116,114,97,110,115,102,111,114,109,40,116,104,105,115,46,95,95,119,98,103,95,112,116,114,44,101,44,114,41,33,61,61,48,125,115,109,95,103,101,116,95,105,110,112,117,116,115,40,41,123,114,101,116,117,114,110,32,115,46,100,111,116,108,111,116,116,105,101,112,108,97,121,101,114,119,97,115,109,95,115,109,95,103,101,116,95,105,110,112,117,116,115,40,116,104,105,115,46,95,95,119,98,103,95,112,116,114,41,125,115,109,95,112,111,108,108,95,101,118,101,110,116,40,41,123,114,101,116,117,114,110,32,115,46,100,111,116,108,111,116,116,105,101,112,108,97,121,101,114,119,97,115,109,95,115,109,95,112,111,108,108,95,101,118,101,110,116,40,116,104,105,115,46,95,95,119,98,103,95,112,116,114,41,125,115,109,95,112,111,115,116,95,99,108,105,99,107,40,116,44,101,41,123,115,46,100,111,116,108,111,116,116,105,101,112,108,97,121,101,114,119,97,115,109,95,115,109,95,112,111,115,116,95,99,108,105,99,107,40,116,104,105,115,46,95,95,119,98,103,95,112,116,114,44,116,44,101,41,125,97,110,105,109,97,116,105,111,110,95,115,105,122,101,40,41,123,114,101,116,117,114,110,32,115,46,100,111,116,108,111,116,116,105,101,112,108,97,121,101,114,119,97,115,109,95,97,110,105,109,97,116,105,111,110,95,115,105,122,101,40,116,104,105,115,46,95,95,119,98,103,95,112,116,114,41,125,99,117,114,114,101,110,116,95,109,97,114,107,101,114,40,41,123,108,101,116,32,116,61,115,46,100,111,116,108,111,116,116,105,101,112,108,97,121,101,114,119,97,115,109,95,99,117,114,114,101,110,116,95,109,97,114,107,101,114,40,116,104,105,115,46,95,95,119,98,103,95,112,116,114,41,44,101,59,114,101,116,117,114,110,32,116,91,48,93,33,61,61,48,38,38,40,101,61,109,40,116,91,48,93,44,116,91,49,93,41,46,115,108,105,99,101,40,41,44,115,46,95,95,119,98,105,110,100,103,101,110,95,102,114,101,101,95,99,111,109,109,97,110,100,95,101,120,112,111,114,116,40,116,91,48,93,44,116,91,49,93,42,49,44,49,41,41,44,101,125,108,97,121,111,117,116,95,97,108,105,103,110,95,120,40,41,123,114,101,116,117,114,110,32,115,46,100,111,116,108,111,116,116,105,101,112,108,97,121,101,114,119,97,115,109,95,108,97,121,111,117,116,95,97,108,105,103,110,95,120,40,116,104,105,115,46,95,95,119,98,103,95,112,116,114,41,125,108,97,121,111,117,116,95,97,108,105,103,110,95,121,40,41,123,114,101,116,117,114,110,32,115,46,100,111,116,108,111,116,116,105,101,112,108,97,121,101,114,119,97,115,109,95,108,97,121,111,117,116,95,97,108,105,103,110,95,121,40,116,104,105,115,46,95,95,119,98,103,95,112,116,114,41,125,108,111,97,100,95,97,110,105,109,97,116,105,111,110,40,116,41,123,108,101,116,32,101,61,112,40,116,44,115,46,95,95,119,98,105,110,100,103,101,110,95,109,97,108,108,111,99,95,99,111,109,109,97,110,100,95,101,120,112,111,114,116,44,115,46,95,95,119,98,105,110,100,103,101,110,95,114,101,97,108,108,111,99,95,99,111,109,109,97,110,100,95,101,120,112,111,114,116,41,44,114,61,95,59,114,101,116,117,114,110,32,115,46,100,111,116,108,111,116,116,105,101,112,108,97,121,101,114,119,97,115,109,95,108,111,97,100,95,97,110,105,109,97,116,105,111,110,40,116,104,105,115,46,95,95,119,98,103,95,112,116,114,44,101,44,114,41,33,61,61,48,125,108,111,111,112,95,97,110,105,109,97,116,105,111,110,40,41,123,114,101,116,117,114,110,32,115,46,100,111,116,108,111,116,116,105,101,112,108,97,121,101,114,119,97,115,109,95,108,111,111,112,95,97,110,105,109,97,116,105,111,110,40,116,104,105,115,46,95,95,119,98,103,95,112,116,114,41,33,61,61,48,125,115,101,116,95,98,97,99,107,103,114,111,117,110,100,40,116,44,101,44,114,44,111,41,123,114,101,116,117,114,110,32,115,46,100,111,116,108,111,116,116,105,101,112,108,97,121,101,114,119,97,115,109,95,115,101,116,95,98,97,99,107,103,114,111,117,110,100,40,116,104,105,115,46,95,95,119,98,103,95,112,116,114,44,116,44,101,44,114,44,111,41,33,61,61,48,125,115,101,116,95,99,111,108,111,114,95,115,108,111,116,40,116,44,101,44,114,44,111,41,123,108,101,116,32,105,61,112,40,116,44,115,46,95,95,119,98,105,110,100,103,101,110,95,109,97,108,108,111,99,95,99,111,109,109,97,110,100,95,101,120,112,111,114,116,44,115,46,95,95,119,98,105,110,100,103,101,110,95,114,101,97,108,108,111,99,95,99,111,109,109,97,110,100,95,101,120,112,111,114,116,41,44,99,61,95,59,114,101,116,117,114,110,32,115,46,100,111,116,108,111,116,116,105,101,112,108,97,121,101,114,119,97,115,109,95,115,101,116,95,99,111,108,111,114,95,115,108,111,116,40,116,104,105,115,46,95,95,119,98,103,95,112,116,114,44,105,44,99,44,101,44,114,44,111,41,33,61,61,48,125,115,101,116,95,108,111,111,112,95,99,111,117,110,116,40,116,41,123,115,46,100,111,116,108,111,116,116,105,101,112,108,97,121,101,114,119,97,115,109,95,115,101,116,95,108,111,111,112,95,99,111,117,110,116,40,116,104,105,115,46,95,95,119,98,103,95,112,116,114,44,116,41,125,115,101,116,95,116,104,101,109,101,95,100,97,116,97,40,116,41,123,108,101,116,32,101,61,112,40,116,44,115,46,95,95,119,98,105,110,100,103,101,110,95,109,97,108,108,111,99,95,99,111,109,109,97,110,100,95,101,120,112,111,114,116,44,115,46,95,95,119,98,105,110,100,103,101,110,95,114,101,97,108,108,111,99,95,99,111,109,109,97,110,100,95,101,120,112,111,114,116,41,44,114,61,95,59,114,101,116,117,114,110,32,115,46,100,111,116,108,111,116,116,105,101,112,108,97,121,101,114,119,97,115,109,95,115,101,116,95,116,104,101,109,101,95,100,97,116,97,40,116,104,105,115,46,95,95,119,98,103,95,112,116,114,44,101,44,114,41,33,61,61,48,125,115,109,95,114,101,115,101,116,95,105,110,112,117,116,40,116,41,123,108,101,116,32,101,61,112,40,116,44,115,46,95,95,119,98,105,110,100,103,101,110,95,109,97,108,108,111,99,95,99,111,109,109,97,110,100,95,101,120,112,111,114,116,44,115,46,95,95,119,98,105,110,100,103,101,110,95,114,101,97,108,108,111,99,95,99,111,109,109,97,110,100,95,101,120,112,111,114,116,41,44,114,61,95,59,115,46,100,111,116,108,111,116,116,105,101,112,108,97,121,101,114,119,97,115,109,95,115,109,95,114,101,115,101,116,95,105,110,112,117,116,40,116,104,105,115,46,95,95,119,98,103,95,112,116,114,44,101,44,114,41,125,109,97,110,105,102,101,115,116,95,115,116,114,105,110,103,40,41,123,108,101,116,32,116,44,101,59,116,114,121,123,108,101,116,32,114,61,115,46,100,111,116,108,111,116,116,105,101,112,108,97,121,101,114,119,97,115,109,95,109,97,110,105,102,101,115,116,95,115,116,114,105,110,103,40,116,104,105,115,46,95,95,119,98,103,95,112,116,114,41,59,114,101,116,117,114,110,32,116,61,114,91,48,93,44,101,61,114,91,49,93,44,109,40,114,91,48,93,44,114,91,49,93,41,125,102,105,110,97,108,108,121,123,115,46,95,95,119,98,105,110,100,103,101,110,95,102,114,101,101,95,99,111,109,109,97,110,100,95,101,120,112,111,114,116,40,116,44,101,44,49,41,125,125,115,101,116,95,115,99,97,108,97,114,95,115,108,111,116,40,116,44,101,41,123,108,101,116,32,114,61,112,40,116,44,115,46,95,95,119,98,105,110,100,103,101,110,95,109,97,108,108,111,99,95,99,111,109,109,97,110,100,95,101,120,112,111,114,116,44,115,46,95,95,119,98,105,110,100,103,101,110,95,114,101,97,108,108,111,99,95,99,111,109,109,97,110,100,95,101,120,112,111,114,116,41,44,111,61,95,59,114,101,116,117,114,110,32,115,46,100,111,116,108,111,116,116,105,101,112,108,97,121,101,114,119,97,115,109,95,115,101,116,95,115,99,97,108,97,114,95,115,108,111,116,40,116,104,105,115,46,95,95,119,98,103,95,112,116,114,44,114,44,111,44,101,41,33,61,61,48,125,115,101,116,95,118,101,99,116,111,114,95,115,108,111,116,40,116,44,101,44,114,41,123,108,101,116,32,111,61,112,40,116,44,115,46,95,95,119,98,105,110,100,103,101,110,95,109,97,108,108,111,99,95,99,111,109,109,97,110,100,95,101,120,112,111,114,116,44,115,46,95,95,119,98,105,110,100,103,101,110,95,114,101,97,108,108,111,99,95,99,111,109,109,97,110,100,95,101,120,112,111,114,116,41,44,105,61,95,59,114,101,116,117,114,110,32,115,46,100,111,116,108,111,116,116,105,101,112,108,97,121,101,114,119,97,115,109,95,115,101,116,95,118,101,99,116,111,114,95,115,108,111,116,40,116,104,105,115,46,95,95,119,98,103,95,112,116,114,44,111,44,105,44,101,44,114,41,33,61,61,48,125,115,101,116,117,112,95,115,119,95,116,97,114,103,101,116,40,116,44,101,41,123,114,101,116,117,114,110,32,115,46,100,111,116,108,111,116,116,105,101,112,108,97,121,101,114,119,97,115,109,95,115,101,116,117,112,95,115,119,95,116,97,114,103,101,116,40,116,104,105,115,46,95,95,119,98,103,95,112,116,114,44,116,44,101,41,33,61,61,48,125,103,101,116,95,112,105,120,101,108,95,98,117,102,102,101,114,40,41,123,114,101,116,117,114,110,32,115,46,100,111,116,108,111,116,116,105,101,112,108,97,121,101,114,119,97,115,109,95,103,101,116,95,112,105,120,101,108,95,98,117,102,102,101,114,40,116,104,105,115,46,95,95,119,98,103,95,112,116,114,41,125,115,101,116,95,97,117,100,105,111,95,118,111,108,117,109,101,40,116,41,123,115,46,100,111,116,108,111,116,116,105,101,112,108,97,121,101,114,119,97,115,109,95,115,101,116,95,97,117,100,105,111,95,118,111,108,117,109,101,40,116,104,105,115,46,95,95,119,98,103,95,112,116,114,44,116,41,125,115,109,95,99,117,114,114,101,110,116,95,115,116,97,116,101,40,41,123,108,101,116,32,116,44,101,59,116,114,121,123,108,101,116,32,114,61,115,46,100,111,116,108,111,116,116,105,101,112,108,97,121,101,114,119,97,115,109,95,115,109,95,99,117,114,114,101,110,116,95,115,116,97,116,101,40,116,104,105,115,46,95,95,119,98,103,95,112,116,114,41,59,114,101,116,117,114,110,32,116,61,114,91,48,93,44,101,61,114,91,49,93,44,109,40,114,91,48,93,44,114,91,49,93,41,125,102,105,110,97,108,108,121,123,115,46,95,95,119,98,105,110,100,103,101,110,95,102,114,101,101,95,99,111,109,109,97,110,100,95,101,120,112,111,114,116,40,116,44,101,44,49,41,125,125,115,116,97,116,101,95,109,97,99,104,105,110,101,95,105,100,40,41,123,108,101,116,32,116,61,115,46,100,111,116,108,111,116,116,105,101,112,108,97,121,101,114,119,97,115,109,95,115,116,97,116,101,95,109,97,99,104,105,110,101,95,105,100,40,116,104,105,115,46,95,95,119,98,103,95,112,116,114,41,44,101,59,114,101,116,117,114,110,32,116,91,48,93,33,61,61,48,38,38,40,101,61,109,40,116,91,48,93,44,116,91,49,93,41,46,115,108,105,99,101,40,41,44,115,46,95,95,119,98,105,110,100,103,101,110,95,102,114,101,101,95,99,111,109,109,97,110,100,95,101,120,112,111,114,116,40,116,91,48,93,44,116,91,49,93,42,49,44,49,41,41,44,101,125,103,101,116,95,115,116,97,116,101,95,109,97,99,104,105,110,101,40,116,41,123,108,101,116,32,101,61,112,40,116,44,115,46,95,95,119,98,105,110,100,103,101,110,95,109,97,108,108,111,99,95,99,111,109,109,97,110,100,95,101,120,112,111,114,116,44,115,46,95,95,119,98,105,110,100,103,101,110,95,114,101,97,108,108,111,99,95,99,111,109,109,97,110,100,95,101,120,112,111,114,116,41,44,114,61,95,44,111,61,115,46,100,111,116,108,111,116,116,105,101,112,108,97,121,101,114,119,97,115,109,95,103,101,116,95,115,116,97,116,101,95,109,97,99,104,105,110,101,40,116,104,105,115,46,95,95,119,98,103,95,112,116,114,44,101,44,114,41,44,105,59,114,101,116,117,114,110,32,111,91,48,93,33,61,61,48,38,38,40,105,61,109,40,111,91,48,93,44,111,91,49,93,41,46,115,108,105,99,101,40,41,44,115,46,95,95,119,98,105,110,100,103,101,110,95,102,114,101,101,95,99,111,109,109,97,110,100,95,101,120,112,111,114,116,40,111,91,48,93,44,111,91,49,93,42,49,44,49,41,41,44,105,125,115,101,116,95,112,111,115,105,116,105,111,110,95,115,108,111,116,40,116,44,101,44,114,41,123,108,101,116,32,111,61,112,40,116,44,115,46,95,95,119,98,105,110,100,103,101,110,95,109,97,108,108,111,99,95,99,111,109,109,97,110,100,95,101,120,112,111,114,116,44,115,46,95,95,119,98,105,110,100,103,101,110,95,114,101,97,108,108,111,99,95,99,111,109,109,97,110,100,95,101,120,112,111,114,116,41,44,105,61,95,59,114,101,116,117,114,110,32,115,46,100,111,116,108,111,116,116,105,101,112,108,97,121,101,114,119,97,115,109,95,115,101,116,95,112,111,115,105,116,105,111,110,95,115,108,111,116,40,116,104,105,115,46,95,95,119,98,103,95,112,116,114,44,111,44,105,44,101,44,114,41,33,61,61,48,125,99,117,114,114,101,110,116,95,108,111,111,112,95,99,111,117,110,116,40,41,123,114,101,116,117,114,110,32,115,46,100,111,116,108,111,116,116,105,101,112,108,97,121,101,114,119,97,115,109,95,99,117,114,114,101,110,116,95,108,111,111,112,95,99,111,117,110,116,40,116,104,105,115,46,95,95,119,98,103,95,112,116,114,41,62,62,62,48,125,115,109,95,102,114,97,109,101,119,111,114,107,95,115,101,116,117,112,40,41,123,114,101,116,117,114,110,32,115,46,100,111,116,108,111,116,116,105,101,112,108,97,121,101,114,119,97,115,109,95,115,109,95,102,114,97,109,101,119,111,114,107,95,115,101,116,117,112,40,116,104,105,115,46,95,95,119,98,103,95,112,116,114,41,125,115,109,95,112,111,115,116,95,112,111,105,110,116,101,114,95,117,112,40,116,44,101,41,123,115,46,100,111,116,108,111,116,116,105,101,112,108,97,121,101,114,119,97,115,109,95,115,109,95,112,111,115,116,95,112,111,105,110,116,101,114,95,117,112,40,116,104,105,115,46,95,95,119,98,103,95,112,116,114,44,116,44,101,41,125,115,116,97,116,101,95,109,97,99,104,105,110,101,95,108,111,97,100,40,116,41,123,108,101,116,32,101,61,112,40,116,44,115,46,95,95,119,98,105,110,100,103,101,110,95,109,97,108,108,111,99,95,99,111,109,109,97,110,100,95,101,120,112,111,114,116,44,115,46,95,95,119,98,105,110,100,103,101,110,95,114,101,97,108,108,111,99,95,99,111,109,109,97,110,100,95,101,120,112,111,114,116,41,44,114,61,95,59,114,101,116,117,114,110,32,115,46,100,111,116,108,111,116,116,105,101,112,108,97,121,101,114,119,97,115,109,95,115,116,97,116,101,95,109,97,99,104,105,110,101,95,108,111,97,100,40,116,104,105,115,46,95,95,119,98,103,95,112,116,114,44,101,44,114,41,33,61,61,48,125,108,111,97,100,95,100,111,116,108,111,116,116,105,101,95,100,97,116,97,40,116,41,123,108,101,116,32,101,61,86,40,116,44,115,46,95,95,119,98,105,110,100,103,101,110,95,109,97,108,108,111,99,95,99,111,109,109,97,110,100,95,101,120,112,111,114,116,41,44,114,61,95,59,114,101,116,117,114,110,32,115,46,100,111,116,108,111,116,116,105,101,112,108,97,121,101,114,119,97,115,109,95,108,111,97,100,95,100,111,116,108,111,116,116,105,101,95,100,97,116,97,40,116,104,105,115,46,95,95,119,98,103,95,112,116,114,44,101,44,114,41,33,61,61,48,125,115,109,95,103,101,116,95,115,116,114,105,110,103,95,105,110,112,117,116,40,116,41,123,108,101,116,32,101,61,112,40,116,44,115,46,95,95,119,98,105,110,100,103,101,110,95,109,97,108,108,111,99,95,99,111,109,109,97,110,100,95,101,120,112,111,114,116,44,115,46,95,95,119,98,105,110,100,103,101,110,95,114,101,97,108,108,111,99,95,99,111,109,109,97,110,100,95,101,120,112,111,114,116,41,44,114,61,95,44,111,61,115,46,100,111,116,108,111,116,116,105,101,112,108,97,121,101,114,119,97,115,109,95,115,109,95,103,101,116,95,115,116,114,105,110,103,95,105,110,112,117,116,40,116,104,105,115,46,95,95,119,98,103,95,112,116,114,44,101,44,114,41,44,105,59,114,101,116,117,114,110,32,111,91,48,93,33,61,61,48,38,38,40,105,61,109,40,111,91,48,93,44,111,91,49,93,41,46,115,108,105,99,101,40,41,44,115,46,95,95,119,98,105,110,100,103,101,110,95,102,114,101,101,95,99,111,109,109,97,110,100,95,101,120,112,111,114,116,40,111,91,48,93,44,111,91,49,93,42,49,44,49,41,41,44,105,125,115,109,95,115,101,116,95,115,116,114,105,110,103,95,105,110,112,117,116,40,116,44,101,41,123,108,101,116,32,114,61,112,40,116,44,115,46,95,95,119,98,105,110,100,103,101,110,95,109,97,108,108,111,99,95,99,111,109,109,97,110,100,95,101,120,112,111,114,116,44,115,46,95,95,119,98,105,110,100,103,101,110,95,114,101,97,108,108,111,99,95,99,111,109,109,97,110,100,95,101,120,112,111,114,116,41,44,111,61,95,44,105,61,112,40,101,44,115,46,95,95,119,98,105,110,100,103,101,110,95,109,97,108,108,111,99,95,99,111,109,109,97,110,100,95,101,120,112,111,114,116,44,115,46,95,95,119,98,105,110,100,103,101,110,95,114,101,97,108,108,111,99,95,99,111,109,109,97,110,100,95,101,120,112,111,114,116,41,44,99,61,95,59,114,101,116,117,114,110,32,115,46,100,111,116,108,111,116,116,105,101,112,108,97,121,101,114,119,97,115,109,95,115,109,95,115,101,116,95,115,116,114,105,110,103,95,105,110,112,117,116,40,116,104,105,115,46,95,95,119,98,103,95,112,116,114,44,114,44,111,44,105,44,99,41,33,61,61,48,125,115,109,95,103,101,116,95,98,111,111,108,101,97,110,95,105,110,112,117,116,40,116,41,123,108,101,116,32,101,61,112,40,116,44,115,46,95,95,119,98,105,110,100,103,101,110,95,109,97,108,108,111,99,95,99,111,109,109,97,110,100,95,101,120,112,111,114,116,44,115,46,95,95,119,98,105,110,100,103,101,110,95,114,101,97,108,108,111,99,95,99,111,109,109,97,110,100,95,101,120,112,111,114,116,41,44,114,61,95,44,111,61,115,46,100,111,116,108,111,116,116,105,101,112,108,97,121,101,114,119,97,115,109,95,115,109,95,103,101,116,95,98,111,111,108,101,97,110,95,105,110,112,117,116,40,116,104,105,115,46,95,95,119,98,103,95,112,116,114,44,101,44,114,41,59,114,101,116,117,114,110,32,111,61,61,61,49,54,55,55,55,50,49,53,63,118,111,105,100,32,48,58,111,33,61,61,48,125,115,109,95,103,101,116,95,110,117,109,101,114,105,99,95,105,110,112,117,116,40,116,41,123,108,101,116,32,101,61,112,40,116,44,115,46,95,95,119,98,105,110,100,103,101,110,95,109,97,108,108,111,99,95,99,111,109,109,97,110,100,95,101,120,112,111,114,116,44,115,46,95,95,119,98,105,110,100,103,101,110,95,114,101,97,108,108,111,99,95,99,111,109,109,97,110,100,95,101,120,112,111,114,116,41,44,114,61,95,44,111,61,115,46,100,111,116,108,111,116,116,105,101,112,108,97,121,101,114,119,97,115,109,95,115,109,95,103,101,116,95,110,117,109,101,114,105,99,95,105,110,112,117,116,40,116,104,105,115,46,95,95,119,98,103,95,112,116,114,44,101,44,114,41,59,114,101,116,117,114,110,32,111,61,61,61,52,50,57,52,57,54,55,50,57,55,63,118,111,105,100,32,48,58,111,125,115,109,95,112,111,115,116,95,112,111,105,110,116,101,114,95,100,111,119,110,40,116,44,101,41,123,115,46,100,111,116,108,111,116,116,105,101,112,108,97,121,101,114,119,97,115,109,95,115,109,95,112,111,115,116,95,112,111,105,110,116,101,114,95,100,111,119,110,40,116,104,105,115,46,95,95,119,98,103,95,112,116,114,44,116,44,101,41,125,115,109,95,112,111,115,116,95,112,111,105,110,116,101,114,95,101,120,105,116,40,116,44,101,41,123,115,46,100,111,116,108,111,116,116,105,101,112,108,97,121,101,114,119,97,115,109,95,115,109,95,112,111,115,116,95,112,111,105,110,116,101,114,95,101,120,105,116,40,116,104,105,115,46,95,95,119,98,103,95,112,116,114,44,116,44,101,41,125,115,109,95,112,111,115,116,95,112,111,105,110,116,101,114,95,109,111,118,101,40,116,44,101,41,123,115,46,100,111,116,108,111,116,116,105,101,112,108,97,121,101,114,119,97,115,109,95,115,109,95,112,111,115,116,95,112,111,105,110,116,101,114,95,109,111,118,101,40,116,104,105,115,46,95,95,119,98,103,95,112,116,114,44,116,44,101,41,125,115,109,95,115,101,116,95,98,111,111,108,101,97,110,95,105,110,112,117,116,40,116,44,101,41,123,108,101,116,32,114,61,112,40,116,44,115,46,95,95,119,98,105,110,100,103,101,110,95,109,97,108,108,111,99,95,99,111,109,109,97,110,100,95,101,120,112,111,114,116,44,115,46,95,95,119,98,105,110,100,103,101,110,95,114,101,97,108,108,111,99,95,99,111,109,109,97,110,100,95,101,120,112,111,114,116,41,44,111,61,95,59,114,101,116,117,114,110,32,115,46,100,111,116,108,111,116,116,105,101,112,108,97,121,101,114,119,97,115,109,95,115,109,95,115,101,116,95,98,111,111,108,101,97,110,95,105,110,112,117,116,40,116,104,105,115,46,95,95,119,98,103,95,112,116,114,44,114,44,111,44,101,41,33,61,61,48,125,115,109,95,115,101,116,95,110,117,109,101,114,105,99,95,105,110,112,117,116,40,116,44,101,41,123,108,101,116,32,114,61,112,40,116,44,115,46,95,95,119,98,105,110,100,103,101,110,95,109,97,108,108,111,99,95,99,111,109,109,97,110,100,95,101,120,112,111,114,116,44,115,46,95,95,119,98,105,110,100,103,101,110,95,114,101,97,108,108,111,99,95,99,111,109,109,97,110,100,95,101,120,112,111,114,116,41,44,111,61,95,59,114,101,116,117,114,110,32,115,46,100,111,116,108,111,116,116,105,101,112,108,97,121,101,114,119,97,115,109,95,115,109,95,115,101,116,95,110,117,109,101,114,105,99,95,105,110,112,117,116,40,116,104,105,115,46,95,95,119,98,103,95,112,116,114,44,114,44,111,44,101,41,33,61,61,48,125,115,116,97,116,101,95,109,97,99,104,105,110,101,95,117,110,108,111,97,100,40,41,123,115,46,100,111,116,108,111,116,116,105,101,112,108,97,121,101,114,119,97,115,109,95,115,116,97,116,101,95,109,97,99,104,105,110,101,95,117,110,108,111,97,100,40,116,104,105,115,46,95,95,119,98,103,95,112,116,114,41,125,115,109,95,112,111,115,116,95,112,111,105,110,116,101,114,95,101,110,116,101,114,40,116,44,101,41,123,115,46,100,111,116,108,111,116,116,105,101,112,108,97,121,101,114,119,97,115,109,95,115,109,95,112,111,115,116,95,112,111,105,110,116,101,114,95,101,110,116,101,114,40,116,104,105,115,46,95,95,119,98,103,95,112,116,114,44,116,44,101,41,125,108,111,97,100,95,97,110,105,109,97,116,105,111,110,95,102,114,111,109,95,105,100,40,116,41,123,108,101,116,32,101,61,112,40,116,44,115,46,95,95,119,98,105,110,100,103,101,110,95,109,97,108,108,111,99,95,99,111,109,109,97,110,100,95,101,120,112,111,114,116,44,115,46,95,95,119,98,105,110,100,103,101,110,95,114,101,97,108,108,111,99,95,99,111,109,109,97,110,100,95,101,120,112,111,114,116,41,44,114,61,95,59,114,101,116,117,114,110,32,115,46,100,111,116,108,111,116,116,105,101,112,108,97,121,101,114,119,97,115,109,95,108,111,97,100,95,97,110,105,109,97,116,105,111,110,95,102,114,111,109,95,105,100,40,116,104,105,115,46,95,95,119,98,103,95,112,116,114,44,101,44,114,41,33,61,61,48,125,115,109,95,112,111,108,108,95,105,110,116,101,114,110,97,108,95,101,118,101,110,116,40,41,123,114,101,116,117,114,110,32,115,46,100,111,116,108,111,116,116,105,101,112,108,97,121,101,114,119,97,115,109,95,115,109,95,112,111,108,108,95,105,110,116,101,114,110,97,108,95,101,118,101,110,116,40,116,104,105,115,46,95,95,119,98,103,95,112,116,114,41,125,117,115,101,95,102,114,97,109,101,95,105,110,116,101,114,112,111,108,97,116,105,111,110,40,41,123,114,101,116,117,114,110,32,115,46,100,111,116,108,111,116,116,105,101,112,108,97,121,101,114,119,97,115,109,95,117,115,101,95,102,114,97,109,101,95,105,110,116,101,114,112,111,108,97,116,105,111,110,40,116,104,105,115,46,95,95,119,98,103,95,112,116,114,41,33,61,61,48,125,114,101,115,101,116,95,99,117,114,114,101,110,116,95,108,111,111,112,95,99,111,117,110,116,40,41,123,115,46,100,111,116,108,111,116,116,105,101,112,108,97,121,101,114,119,97,115,109,95,114,101,115,101,116,95,99,117,114,114,101,110,116,95,108,111,111,112,95,99,111,117,110,116,40,116,104,105,115,46,95,95,119,98,103,95,112,116,114,41,125,115,109,95,111,118,101,114,114,105,100,101,95,99,117,114,114,101,110,116,95,115,116,97,116,101,40,116,44,101,41,123,108,101,116,32,114,61,112,40,116,44,115,46,95,95,119,98,105,110,100,103,101,110,95,109,97,108,108,111,99,95,99,111,109,109,97,110,100,95,101,120,112,111,114,116,44,115,46,95,95,119,98,105,110,100,103,101,110,95,114,101,97,108,108,111,99,95,99,111,109,109,97,110,100,95,101,120,112,111,114,116,41,44,111,61,95,59,114,101,116,117,114,110,32,115,46,100,111,116,108,111,116,116,105,101,112,108,97,121,101,114,119,97,115,109,95,115,109,95,111,118,101,114,114,105,100,101,95,99,117,114,114,101,110,116,95,115,116,97,116,101,40,116,104,105,115,46,95,95,119,98,103,95,112,116,114,44,114,44,111,44,101,41,33,61,61,48,125,115,116,97,116,101,95,109,97,99,104,105,110,101,95,108,111,97,100,95,102,114,111,109,95,105,100,40,116,41,123,108,101,116,32,101,61,112,40,116,44,115,46,95,95,119,98,105,110,100,103,101,110,95,109,97,108,108,111,99,95,99,111,109,109,97,110,100,95,101,120,112,111,114,116,44,115,46,95,95,119,98,105,110,100,103,101,110,95,114,101,97,108,108,111,99,95,99,111,109,109,97,110,100,95,101,120,112,111,114,116,41,44,114,61,95,59,114,101,116,117,114,110,32,115,46,100,111,116,108,111,116,116,105,101,112,108,97,121,101,114,119,97,115,109,95,115,116,97,116,101,95,109,97,99,104,105,110,101,95,108,111,97,100,95,102,114,111,109,95,105,100,40,116,104,105,115,46,95,95,119,98,103,95,112,116,114,44,101,44,114,41,33,61,61,48,125,115,101,116,95,117,115,101,95,102,114,97,109,101,95,105,110,116,101,114,112,111,108,97,116,105,111,110,40,116,41,123,115,46,100,111,116,108,111,116,116,105,101,112,108,97,121,101,114,119,97,115,109,95,115,101,116,95,117,115,101,95,102,114,97,109,101,95,105,110,116,101,114,112,111,108,97,116,105,111,110,40,116,104,105,115,46,95,95,119,98,103,95,112,116,114,44,116,41,125,99,111,110,115,116,114,117,99,116,111,114,40,41,123,108,101,116,32,116,61,115,46,100,111,116,108,111,116,116,105,101,112,108,97,121,101,114,119,97,115,109,95,110,101,119,40,41,59,114,101,116,117,114,110,32,116,104,105,115,46,95,95,119,98,103,95,112,116,114,61,116,62,62,62,48,44,90,46,114,101,103,105,115,116,101,114,40,116,104,105,115,44,116,104,105,115,46,95,95,119,98,103,95,112,116,114,44,116,104,105,115,41,44,116,104,105,115,125,109,111,100,101,40,41,123,114,101,116,117,114,110,32,115,46,100,111,116,108,111,116,116,105,101,112,108,97,121,101,114,119,97,115,109,95,109,111,100,101,40,116,104,105,115,46,95,95,119,98,103,95,112,116,114,41,125,112,108,97,121,40,41,123,114,101,116,117,114,110,32,115,46,100,111,116,108,111,116,116,105,101,112,108,97,121,101,114,119,97,115,109,95,112,108,97,121,40,116,104,105,115,46,95,95,119,98,103,95,112,116,114,41,33,61,61,48,125,115,116,111,112,40,41,123,114,101,116,117,114,110,32,115,46,100,111,116,108,111,116,116,105,101,112,108,97,121,101,114,119,97,115,109,95,115,116,111,112,40,116,104,105,115,46,95,95,119,98,103,95,112,116,114,41,33,61,61,48,125,116,105,99,107,40,116,41,123,114,101,116,117,114,110,32,115,46,100,111,116,108,111,116,116,105,101,112,108,97,121,101,114,119,97,115,109,95,116,105,99,107,40,116,104,105,115,46,95,95,119,98,103,95,112,116,114,44,116,41,33,61,61,48,125,112,97,117,115,101,40,41,123,114,101,116,117,114,110,32,115,46,100,111,116,108,111,116,116,105,101,112,108,97,121,101,114,119,97,115,109,95,112,97,117,115,101,40,116,104,105,115,46,95,95,119,98,103,95,112,116,114,41,33,61,61,48,125,115,112,101,101,100,40,41,123,114,101,116,117,114,110,32,115,46,100,111,116,108,111,116,116,105,101,112,108,97,121,101,114,119,97,115,109,95,115,112,101,101,100,40,116,104,105,115,46,95,95,119,98,103,95,112,116,114,41,125,119,105,100,116,104,40,41,123,114,101,116,117,114,110,32,115,46,100,111,116,108,111,116,116,105,101,112,108,97,121,101,114,119,97,115,109,95,119,105,100,116,104,40,116,104,105,115,46,95,95,119,98,103,95,112,116,114,41,62,62,62,48,125,104,101,105,103,104,116,40,41,123,114,101,116,117,114,110,32,115,46,100,111,116,108,111,116,116,105,101,112,108,97,121,101,114,119,97,115,109,95,104,101,105,103,104,116,40,116,104,105,115,46,95,95,119,98,103,95,112,116,114,41,62,62,62,48,125,114,101,110,100,101,114,40,41,123,114,101,116,117,114,110,32,115,46,100,111,116,108,111,116,116,105,101,112,108,97,121,101,114,119,97,115,109,95,114,101,110,100,101,114,40,116,104,105,115,46,95,95,119,98,103,95,112,116,114,41,33,61,61,48,125,109,97,114,107,101,114,115,40,41,123,114,101,116,117,114,110,32,115,46,100,111,116,108,111,116,116,105,101,112,108,97,121,101,114,119,97,115,109,95,109,97,114,107,101,114,115,40,116,104,105,115,46,95,95,119,98,103,95,112,116,114,41,125,115,109,95,102,105,114,101,40,116,41,123,108,101,116,32,101,61,112,40,116,44,115,46,95,95,119,98,105,110,100,103,101,110,95,109,97,108,108,111,99,95,99,111,109,109,97,110,100,95,101,120,112,111,114,116,44,115,46,95,95,119,98,105,110,100,103,101,110,95,114,101,97,108,108,111,99,95,99,111,109,109,97,110,100,95,101,120,112,111,114,116,41,44,114,61,95,59,114,101,116,117,114,110,32,115,46,100,111,116,108,111,116,116,105,101,112,108,97,121,101,114,119,97,115,109,95,115,109,95,102,105,114,101,40,116,104,105,115,46,95,95,119,98,103,95,112,116,114,44,101,44,114,41,33,61,61,48,125,115,109,95,115,116,111,112,40,41,123,114,101,116,117,114,110,32,115,46,100,111,116,108,111,116,116,105,101,112,108,97,121,101,114,119,97,115,109,95,115,109,95,115,116,111,112,40,116,104,105,115,46,95,95,119,98,103,95,112,116,114,41,33,61,61,48,125,115,109,95,116,105,99,107,40,116,41,123,114,101,116,117,114,110,32,115,46,100,111,116,108,111,116,116,105,101,112,108,97,121,101,114,119,97,115,109,95,115,109,95,116,105,99,107,40,116,104,105,115,46,95,95,119,98,103,95,112,116,114,44,116,41,33,61,61,48,125,97,117,116,111,112,108,97,121,40,41,123,114,101,116,117,114,110,32,115,46,100,111,116,108,111,116,116,105,101,112,108,97,121,101,114,119,97,115,109,95,97,117,116,111,112,108,97,121,40,116,104,105,115,46,95,95,119,98,103,95,112,116,114,41,33,61,61,48,125,100,117,114,97,116,105,111,110,40,41,123,114,101,116,117,114,110,32,115,46,100,111,116,108,111,116,116,105,101,112,108,97,121,101,114,119,97,115,109,95,100,117,114,97,116,105,111,110,40,116,104,105,115,46,95,95,119,98,103,95,112,116,114,41,125,115,101,116,95,108,111,111,112,40,116,41,123,115,46,100,111,116,108,111,116,116,105,101,112,108,97,121,101,114,119,97,115,109,95,115,101,116,95,108,111,111,112,40,116,104,105,115,46,95,95,119,98,103,95,112,116,114,44,116,41,125,115,101,116,95,109,111,100,101,40,116,41,123,115,46,100,111,116,108,111,116,116,105,101,112,108,97,121,101,114,119,97,115,109,95,115,101,116,95,109,111,100,101,40,116,104,105,115,46,95,95,119,98,103,95,112,116,114,44,116,41,125,115,109,95,115,116,97,114,116,40,116,44,101,41,123,108,101,116,32,114,61,109,116,40,101,44,115,46,95,95,119,98,105,110,100,103,101,110,95,109,97,108,108,111,99,95,99,111,109,109,97,110,100,95,101,120,112,111,114,116,41,44,111,61,95,59,114,101,116,117,114,110,32,115,46,100,111,116,108,111,116,116,105,101,112,108,97,121,101,114,119,97,115,109,95,115,109,95,115,116,97,114,116,40,116,104,105,115,46,95,95,119,98,103,95,112,116,114,44,116,44,114,44,111,41,33,61,61,48,125,116,104,101,109,101,95,105,100,40,41,123,108,101,116,32,116,61,115,46,100,111,116,108,111,116,116,105,101,112,108,97,121,101,114,119,97,115,109,95,116,104,101,109,101,95,105,100,40,116,104,105,115,46,95,95,119,98,103,95,112,116,114,41,44,101,59,114,101,116,117,114,110,32,116,91,48,93,33,61,61,48,38,38,40,101,61,109,40,116,91,48,93,44,116,91,49,93,41,46,115,108,105,99,101,40,41,44,115,46,95,95,119,98,105,110,100,103,101,110,95,102,114,101,101,95,99,111,109,109,97,110,100,95,101,120,112,111,114,116,40,116,91,48,93,44,116,91,49,93,42,49,44,49,41,41,44,101,125,105,115,95,108,111,97,100,101,100,40,41,123,114,101,116,117,114,110,32,115,46,100,111,116,108,111,116,116,105,101,112,108,97,121,101,114,119,97,115,109,95,105,115,95,108,111,97,100,101,100,40,116,104,105,115,46,95,95,119,98,103,95,112,116,114,41,33,61,61,48,125,105,115,95,112,97,117,115,101,100,40,41,123,114,101,116,117,114,110,32,115,46,100,111,116,108,111,116,116,105,101,112,108,97,121,101,114,119,97,115,109,95,105,115,95,112,97,117,115,101,100,40,116,104,105,115,46,95,95,119,98,103,95,112,116,114,41,33,61,61,48,125,108,111,97,100,95,102,111,110,116,40,116,44,101,41,123,108,101,116,32,114,61,112,40,116,44,115,46,95,95,119,98,105,110,100,103,101,110,95,109,97,108,108,111,99,95,99,111,109,109,97,110,100,95,101,120,112,111,114,116,44,115,46,95,95,119,98,105,110,100,103,101,110,95,114,101,97,108,108,111,99,95,99,111,109,109,97,110,100,95,101,120,112,111,114,116,41,44,111,61,95,44,105,61,86,40,101,44,115,46,95,95,119,98,105,110,100,103,101,110,95,109,97,108,108,111,99,95,99,111,109,109,97,110,100,95,101,120,112,111,114,116,41,44,99,61,95,59,114,101,116,117,114,110,32,115,46,100,111,116,108,111,116,116,105,101,112,108,97,121,101,114,119,97,115,109,95,108,111,97,100,95,102,111,110,116,40,116,104,105,115,46,95,95,119,98,103,95,112,116,114,44,114,44,111,44,105,44,99,41,33,61,61,48,125,115,101,116,95,102,114,97,109,101,40,116,41,123,114,101,116,117,114,110,32,115,46,100,111,116,108,111,116,116,105,101,112,108,97,121,101,114,119,97,115,109,95,115,101,116,95,102,114,97,109,101,40,116,104,105,115,46,95,95,119,98,103,95,112,116,114,44,116,41,33,61,61,48,125,115,101,116,95,115,112,101,101,100,40,116,41,123,115,46,100,111,116,108,111,116,116,105,101,112,108,97,121,101,114,119,97,115,109,95,115,101,116,95,115,112,101,101,100,40,116,104,105,115,46,95,95,119,98,103,95,112,116,114,44,116,41,125,115,101,116,95,116,104,101,109,101,40,116,41,123,108,101,116,32,101,61,112,40,116,44,115,46,95,95,119,98,105,110,100,103,101,110,95,109,97,108,108,111,99,95,99,111,109,109,97,110,100,95,101,120,112,111,114,116,44,115,46,95,95,119,98,105,110,100,103,101,110,95,114,101,97,108,108,111,99,95,99,111,109,109,97,110,100,95,101,120,112,111,114,116,41,44,114,61,95,59,114,101,116,117,114,110,32,115,46,100,111,116,108,111,116,116,105,101,112,108,97,121,101,114,119,97,115,109,95,115,101,116,95,116,104,101,109,101,40,116,104,105,115,46,95,95,119,98,103,95,112,116,114,44,101,44,114,41,33,61,61,48,125,115,109,95,115,116,97,116,117,115,40,41,123,108,101,116,32,116,44,101,59,116,114,121,123,108,101,116,32,114,61,115,46,100,111,116,108,111,116,116,105,101,112,108,97,121,101,114,119,97,115,109,95,115,109,95,115,116,97,116,117,115,40,116,104,105,115,46,95,95,119,98,103,95,112,116,114,41,59,114,101,116,117,114,110,32,116,61,114,91,48,93,44,101,61,114,91,49,93,44,109,40,114,91,48,93,44,114,91,49,93,41,125,102,105,110,97,108,108,121,123,115,46,95,95,119,98,105,110,100,103,101,110,95,102,114,101,101,95,99,111,109,109,97,110,100,95,101,120,112,111,114,116,40,116,44,101,44,49,41,125,125,125,59,97,115,121,110,99,32,102,117,110,99,116,105,111,110,32,102,116,40,110,44,116,41,123,105,102,40,116,121,112,101,111,102,32,82,101,115,112,111,110,115,101,61,61,34,102,117,110,99,116,105,111,110,34,38,38,110,32,105,110,115,116,97,110,99,101,111,102,32,82,101,115,112,111,110,115,101,41,123,105,102,40,116,121,112,101,111,102,32,87,101,98,65,115,115,101,109,98,108,121,46,105,110,115,116,97,110,116,105,97,116,101,83,116,114,101,97,109,105,110,103,61,61,34,102,117,110,99,116,105,111,110,34,41,116,114,121,123,114,101,116,117,114,110,32,97,119,97,105,116,32,87,101,98,65,115,115,101,109,98,108,121,46,105,110,115,116,97,110,116,105,97,116,101,83,116,114,101,97,109,105,110,103,40,110,44,116,41,125,99,97,116,99,104,40,114,41,123,105,102,40,110,46,104,101,97,100,101,114,115,46,103,101,116,40,34,67,111,110,116,101,110,116,45,84,121,112,101,34,41,33,61,34,97,112,112,108,105,99,97,116,105,111,110,47,119,97,115,109,34,41,99,111,110,115,111,108,101,46,119,97,114,110,40,34,96,87,101,98,65,115,115,101,109,98,108,121,46,105,110,115,116,97,110,116,105,97,116,101,83,116,114,101,97,109,105,110,103,96,32,102,97,105,108,101,100,32,98,101,99,97,117,115,101,32,121,111,117,114,32,115,101,114,118,101,114,32,100,111,101,115,32,110,111,116,32,115,101,114,118,101,32,87,97,115,109,32,119,105,116,104,32,96,97,112,112,108,105,99,97,116,105,111,110,47,119,97,115,109,96,32,77,73,77,69,32,116,121,112,101,46,32,70,97,108,108,105,110,103,32,98,97,99,107,32,116,111,32,96,87,101,98,65,115,115,101,109,98,108,121,46,105,110,115,116,97,110,116,105,97,116,101,96,32,119,104,105,99,104,32,105,115,32,115,108,111,119,101,114,46,32,79,114,105,103,105,110,97,108,32,101,114,114,111,114,58,92,110,34,44,114,41,59,101,108,115,101,32,116,104,114,111,119,32,114,125,108,101,116,32,101,61,97,119,97,105,116,32,110,46,97,114,114,97,121,66,117,102,102,101,114,40,41,59,114,101,116,117,114,110,32,97,119,97,105,116,32,87,101,98,65,115,115,101,109,98,108,121,46,105,110,115,116,97,110,116,105,97,116,101,40,101,44,116,41,125,101,108,115,101,123,108,101,116,32,101,61,97,119,97,105,116,32,87,101,98,65,115,115,101,109,98,108,121,46,105,110,115,116,97,110,116,105,97,116,101,40,110,44,116,41,59,114,101,116,117,114,110,32,101,32,105,110,115,116,97,110,99,101,111,102,32,87,101,98,65,115,115,101,109,98,108,121,46,73,110,115,116,97,110,99,101,63,123,105,110,115,116,97,110,99,101,58,101,44,109,111,100,117,108,101,58,110,125,58,101,125,125,102,117,110,99,116,105,111,110,32,103,116,40,41,123,108,101,116,32,110,61,123,125,59,114,101,116,117,114,110,32,110,46,119,98,103,61,123,125,44,110,46,119,98,103,46,95,95,119,98,103,95,98,117,102,102,101,114,95,54,48,57,99,99,51,101,101,101,53,49,101,100,49,53,56,61,102,117,110,99,116,105,111,110,40,116,41,123,114,101,116,117,114,110,32,116,46,98,117,102,102,101,114,125,44,110,46,119,98,103,46,95,95,119,98,103,95,101,114,114,111,114,95,55,53,51,52,98,56,101,57,97,51,54,102,49,97,98,52,61,102,117,110,99,116,105,111,110,40,116,44,101,41,123,108,101,116,32,114,44,111,59,116,114,121,123,114,61,116,44,111,61,101,44,99,111,110,115,111,108,101,46,101,114,114,111,114,40,109,40,116,44,101,41,41,125,102,105,110,97,108,108,121,123,115,46,95,95,119,98,105,110,100,103,101,110,95,102,114,101,101,95,99,111,109,109,97,110,100,95,101,120,112,111,114,116,40,114,44,111,44,49,41,125,125,44,110,46,119,98,103,46,95,95,119,98,103,95,110,101,119,95,52,48,53,101,50,50,102,51,57,48,53,55,54,99,101,50,61,102,117,110,99,116,105,111,110,40,41,123,114,101,116,117,114,110,32,110,101,119,32,79,98,106,101,99,116,125,44,110,46,119,98,103,46,95,95,119,98,103,95,110,101,119,95,55,56,102,101,98,49,48,56,98,54,52,55,50,55,49,51,61,102,117,110,99,116,105,111,110,40,41,123,114,101,116,117,114,110,32,110,101,119,32,65,114,114,97,121,125,44,110,46,119,98,103,46,95,95,119,98,103,95,110,101,119,95,56,97,54,102,50,51,56,97,54,101,99,101,56,54,101,97,61,102,117,110,99,116,105,111,110,40,41,123,114,101,116,117,114,110,32,110,101,119,32,69,114,114,111,114,125,44,110,46,119,98,103,46,95,95,119,98,103,95,110,101,119,119,105,116,104,98,121,116,101,111,102,102,115,101,116,97,110,100,108,101,110,103,116,104,95,100,57,55,101,54,51,55,101,98,101,49,52,53,97,57,97,61,102,117,110,99,116,105,111,110,40,116,44,101,44,114,41,123,114,101,116,117,114,110,32,110,101,119,32,85,105,110,116,56,65,114,114,97,121,40,116,44,101,62,62,62,48,44,114,62,62,62,48,41,125,44,110,46,119,98,103,46,95,95,119,98,103,95,110,101,119,119,105,116,104,108,101,110,103,116,104,95,53,97,53,101,102,101,51,49,51,99,102,100,53,57,102,49,61,102,117,110,99,116,105,111,110,40,116,41,123,114,101,116,117,114,110,32,110,101,119,32,70,108,111,97,116,51,50,65,114,114,97,121,40,116,62,62,62,48,41,125,44,110,46,119,98,103,46,95,95,119,98,103,95,112,117,115,104,95,55,51,55,99,102,99,56,99,49,52,51,50,99,50,99,54,61,102,117,110,99,116,105,111,110,40,116,44,101,41,123,114,101,116,117,114,110,32,116,46,112,117,115,104,40,101,41,125,44,110,46,119,98,103,46,95,95,119,98,103,95,115,101,116,95,98,98,56,99,101,99,102,54,97,54,50,98,57,102,52,54,61,102,117,110,99,116,105,111,110,40,41,123,114,101,116,117,114,110,32,100,116,40,102,117,110,99,116,105,111,110,40,116,44,101,44,114,41,123,114,101,116,117,114,110,32,82,101,102,108,101,99,116,46,115,101,116,40,116,44,101,44,114,41,125,44,97,114,103,117,109,101,110,116,115,41,125,44,110,46,119,98,103,46,95,95,119,98,103,95,115,101,116,105,110,100,101,120,95,52,101,55,51,97,102,100,99,100,57,98,98,57,53,99,100,61,102,117,110,99,116,105,111,110,40,116,44,101,44,114,41,123,116,91,101,62,62,62,48,93,61,114,125,44,110,46,119,98,103,46,95,95,119,98,103,95,115,116,97,99,107,95,48,101,100,55,53,100,54,56,53,55,53,98,48,102,51,99,61,102,117,110,99,116,105,111,110,40,116,44,101,41,123,108,101,116,32,114,61,101,46,115,116,97,99,107,44,111,61,112,40,114,44,115,46,95,95,119,98,105,110,100,103,101,110,95,109,97,108,108,111,99,95,99,111,109,109,97,110,100,95,101,120,112,111,114,116,44,115,46,95,95,119,98,105,110,100,103,101,110,95,114,101,97,108,108,111,99,95,99,111,109,109,97,110,100,95,101,120,112,111,114,116,41,44,105,61,95,59,73,40,41,46,115,101,116,73,110,116,51,50,40,116,43,52,44,105,44,33,48,41,44,73,40,41,46,115,101,116,73,110,116,51,50,40,116,43,48,44,111,44,33,48,41,125,44,110,46,119,98,103,46,95,95,119,98,105,110,100,103,101,110,95,105,110,105,116,95,101,120,116,101,114,110,114,101,102,95,116,97,98,108,101,61,102,117,110,99,116,105,111,110,40,41,123,108,101,116,32,116,61,115,46,95,95,119,98,105,110,100,103,101,110,95,101,120,112,111,114,116,95,51,44,101,61,116,46,103,114,111,119,40,52,41,59,116,46,115,101,116,40,48,44,118,111,105,100,32,48,41,44,116,46,115,101,116,40,101,43,48,44,118,111,105,100,32,48,41,44,116,46,115,101,116,40,101,43,49,44,110,117,108,108,41,44,116,46,115,101,116,40,101,43,50,44,33,48,41,44,116,46,115,101,116,40,101,43,51,44,33,49,41,125,44,110,46,119,98,103,46,95,95,119,98,105,110,100,103,101,110,95,109,101,109,111,114,121,61,102,117,110,99,116,105,111,110,40,41,123,114,101,116,117,114,110,32,115,46,109,101,109,111,114,121,125,44,110,46,119,98,103,46,95,95,119,98,105,110,100,103,101,110,95,110,117,109,98,101,114,95,110,101,119,61,102,117,110,99,116,105,111,110,40,116,41,123,114,101,116,117,114,110,32,116,125,44,110,46,119,98,103,46,95,95,119,98,105,110,100,103,101,110,95,115,116,114,105,110,103,95,103,101,116,61,102,117,110,99,116,105,111,110,40,116,44,101,41,123,108,101,116,32,114,61,101,44,111,61,116,121,112,101,111,102,32,114,61,61,34,115,116,114,105,110,103,34,63,114,58,118,111,105,100,32,48,59,118,97,114,32,105,61,112,116,40,111,41,63,48,58,112,40,111,44,115,46,95,95,119,98,105,110,100,103,101,110,95,109,97,108,108,111,99,95,99,111,109,109,97,110,100,95,101,120,112,111,114,116,44,115,46,95,95,119,98,105,110,100,103,101,110,95,114,101,97,108,108,111,99,95,99,111,109,109,97,110,100,95,101,120,112,111,114,116,41,44,99,61,95,59,73,40,41,46,115,101,116,73,110,116,51,50,40,116,43,52,44,99,44,33,48,41,44,73,40,41,46,115,101,116,73,110,116,51,50,40,116,43,48,44,105,44,33,48,41,125,44,110,46,119,98,103,46,95,95,119,98,105,110,100,103,101,110,95,115,116,114,105,110,103,95,110,101,119,61,102,117,110,99,116,105,111,110,40,116,44,101,41,123,114,101,116,117,114,110,32,109,40,116,44,101,41,125,44,110,46,119,98,103,46,95,95,119,98,105,110,100,103,101,110,95,116,104,114,111,119,61,102,117,110,99,116,105,111,110,40,116,44,101,41,123,116,104,114,111,119,32,110,101,119,32,69,114,114,111,114,40,109,40,116,44,101,41,41,125,44,110,125,102,117,110,99,116,105,111,110,32,118,116,40,110,44,116,41,123,114,101,116,117,114,110,32,115,61,110,46,101,120,112,111,114,116,115,44,101,116,46,95,95,119,98,105,110,100,103,101,110,95,119,97,115,109,95,109,111,100,117,108,101,61,116,44,69,61,110,117,108,108,44,120,61,110,117,108,108,44,76,61,110,117,108,108,44,115,46,95,95,119,98,105,110,100,103,101,110,95,115,116,97,114,116,40,41,44,115,125,97,115,121,110,99,32,102,117,110,99,116,105,111,110,32,101,116,40,110,41,123,105,102,40,115,33,61,61,118,111,105,100,32,48,41,114,101,116,117,114,110,32,115,59,105,102,40,116,121,112,101,111,102,32,110,60,34,117,34,38,38,40,79,98,106,101,99,116,46,103,101,116,80,114,111,116,111,116,121,112,101,79,102,40,110,41,61,61,61,79,98,106,101,99,116,46,112,114,111,116,111,116,121,112,101,63,123,109,111,100,117,108,101,95,111,114,95,112,97,116,104,58,110,125,61,110,58,99,111,110,115,111,108,101,46,119,97,114,110,40,34,117,115,105,110,103,32,100,101,112,114,101,99,97,116,101,100,32,112,97,114,97,109,101,116,101,114,115,32,102,111,114,32,116,104,101,32,105,110,105,116,105,97,108,105,122,97,116,105,111,110,32,102,117,110,99,116,105,111,110,59,32,112,97,115,115,32,97,32,115,105,110,103,108,101,32,111,98,106,101,99,116,32,105,110,115,116,101,97,100,34,41,41,44,116,121,112,101,111,102,32,110,62,34,117,34,41,116,104,114,111,119,32,110,101,119,32,69,114,114,111,114,40,34,87,65,83,77,32,109,111,100,117,108,101,32,85,82,76,32,109,117,115,116,32,98,101,32,112,114,111,118,105,100,101,100,32,118,105,97,32,68,111,116,76,111,116,116,105,101,87,97,115,109,76,111,97,100,101,114,32,111,114,32,115,101,116,87,97,115,109,85,114,108,40,41,46,34,41,59,108,101,116,32,116,61,103,116,40,41,59,40,116,121,112,101,111,102,32,110,61,61,34,115,116,114,105,110,103,34,124,124,116,121,112,101,111,102,32,82,101,113,117,101,115,116,61,61,34,102,117,110,99,116,105,111,110,34,38,38,110,32,105,110,115,116,97,110,99,101,111,102,32,82,101,113,117,101,115,116,124,124,116,121,112,101,111,102,32,85,82,76,61,61,34,102,117,110,99,116,105,111,110,34,38,38,110,32,105,110,115,116,97,110,99,101,111,102,32,85,82,76,41,38,38,40,110,61,102,101,116,99,104,40,110,41,41,59,108,101,116,123,105,110,115,116,97,110,99,101,58,101,44,109,111,100,117,108,101,58,114,125,61,97,119,97,105,116,32,102,116,40,97,119,97,105,116,32,110,44,116,41,59,114,101,116,117,114,110,32,118,116,40,101,44,114,41,125,118,97,114,32,110,116,61,101,116,59,118,97,114,32,79,61,99,108,97,115,115,123,99,111,110,115,116,114,117,99,116,111,114,40,41,123,108,40,116,104,105,115,44,34,95,101,118,101,110,116,76,105,115,116,101,110,101,114,115,34,44,110,101,119,32,77,97,112,41,125,97,100,100,69,118,101,110,116,76,105,115,116,101,110,101,114,40,116,44,101,41,123,108,101,116,32,114,61,116,104,105,115,46,95,101,118,101,110,116,76,105,115,116,101,110,101,114,115,46,103,101,116,40,116,41,59,114,124,124,40,114,61,110,101,119,32,83,101,116,44,116,104,105,115,46,95,101,118,101,110,116,76,105,115,116,101,110,101,114,115,46,115,101,116,40,116,44,114,41,41,44,114,46,97,100,100,40,101,41,125,114,101,109,111,118,101,69,118,101,110,116,76,105,115,116,101,110,101,114,40,116,44,101,41,123,108,101,116,32,114,61,116,104,105,115,46,95,101,118,101,110,116,76,105,115,116,101,110,101,114,115,46,103,101,116,40,116,41,59,114,38,38,40,101,63,40,114,46,100,101,108,101,116,101,40,101,41,44,114,46,115,105,122,101,61,61,61,48,38,38,116,104,105,115,46,95,101,118,101,110,116,76,105,115,116,101,110,101,114,115,46,100,101,108,101,116,101,40,116,41,41,58,116,104,105,115,46,95,101,118,101,110,116,76,105,115,116,101,110,101,114,115,46,100,101,108,101,116,101,40,116,41,41,125,100,105,115,112,97,116,99,104,40,116,41,123,116,104,105,115,46,95,101,118,101,110,116,76,105,115,116,101,110,101,114,115,46,103,101,116,40,116,46,116,121,112,101,41,63,46,102,111,114,69,97,99,104,40,114,61,62,114,40,116,41,41,125,114,101,109,111,118,101,65,108,108,69,118,101,110,116,76,105,115,116,101,110,101,114,115,40,41,123,116,104,105,115,46,95,101,118,101,110,116,76,105,115,116,101,110,101,114,115,46,99,108,101,97,114,40,41,125,125,59,118,97,114,32,102,61,99,108,97,115,115,32,102,123,115,116,97,116,105,99,32,95,105,110,105,116,105,97,108,105,122,101,79,98,115,101,114,118,101,114,40,41,123,105,102,40,102,46,95,111,98,115,101,114,118,101,114,41,114,101,116,117,114,110,59,108,101,116,32,116,61,101,61,62,123,101,46,102,111,114,69,97,99,104,40,114,61,62,123,108,101,116,32,111,61,102,46,95,111,98,115,101,114,118,101,100,67,97,110,118,97,115,101,115,46,103,101,116,40,114,46,116,97,114,103,101,116,41,59,111,38,38,40,114,46,105,115,73,110,116,101,114,115,101,99,116,105,110,103,63,111,46,117,110,102,114,101,101,122,101,40,41,58,111,46,102,114,101,101,122,101,40,41,41,125,41,125,59,102,46,95,111,98,115,101,114,118,101,114,61,110,101,119,32,73,110,116,101,114,115,101,99,116,105,111,110,79,98,115,101,114,118,101,114,40,116,44,123,116,104,114,101,115,104,111,108,100,58,48,125,41,125,115,116,97,116,105,99,32,111,98,115,101,114,118,101,40,116,44,101,41,123,102,46,95,105,110,105,116,105,97,108,105,122,101,79,98,115,101,114,118,101,114,40,41,44,33,102,46,95,111,98,115,101,114,118,101,100,67,97,110,118,97,115,101,115,46,104,97,115,40,116,41,38,38,40,102,46,95,111,98,115,101,114,118,101,100,67,97,110,118,97,115,101,115,46,115,101,116,40,116,44,101,41,44,102,46,95,111,98,115,101,114,118,101,114,63,46,111,98,115,101,114,118,101,40,116,41,41,125,115,116,97,116,105,99,32,117,110,111,98,115,101,114,118,101,40,116,41,123,102,46,95,111,98,115,101,114,118,101,114,63,46,117,110,111,98,115,101,114,118,101,40,116,41,44,102,46,95,111,98,115,101,114,118,101,100,67,97,110,118,97,115,101,115,46,100,101,108,101,116,101,40,116,41,44,102,46,95,111,98,115,101,114,118,101,100,67,97,110,118,97,115,101,115,46,115,105,122,101,61,61,61,48,38,38,40,102,46,95,111,98,115,101,114,118,101,114,63,46,100,105,115,99,111,110,110,101,99,116,40,41,44,102,46,95,111,98,115,101,114,118,101,114,61,110,117,108,108,41,125,125,59,108,40,102,44,34,95,111,98,115,101,114,118,101,114,34,44,110,117,108,108,41,44,108,40,102,44,34,95,111,98,115,101,114,118,101,100,67,97,110,118,97,115,101,115,34,44,110,101,119,32,77,97,112,41,59,118,97,114,32,98,61,102,59,118,97,114,32,117,61,99,108,97,115,115,32,117,123,115,116,97,116,105,99,32,95,105,110,105,116,105,97,108,105,122,101,79,98,115,101,114,118,101,114,40,41,123,105,102,40,117,46,95,111,98,115,101,114,118,101,114,41,114,101,116,117,114,110,59,108,101,116,32,116,61,101,61,62,123,101,46,102,111,114,69,97,99,104,40,114,61,62,123,108,101,116,32,111,61,117,46,95,111,98,115,101,114,118,101,100,67,97,110,118,97,115,101,115,46,103,101,116,40,114,46,116,97,114,103,101,116,41,59,105,102,40,33,111,41,114,101,116,117,114,110,59,108,101,116,91,105,44,99,93,61,111,59,99,108,101,97,114,84,105,109,101,111,117,116,40,99,41,59,108,101,116,32,100,61,115,101,116,84,105,109,101,111,117,116,40,40,41,61,62,123,105,46,114,101,115,105,122,101,40,41,125,44,49,48,48,41,59,117,46,95,111,98,115,101,114,118,101,100,67,97,110,118,97,115,101,115,46,115,101,116,40,114,46,116,97,114,103,101,116,44,91,105,44,100,93,41,125,41,125,59,117,46,95,111,98,115,101,114,118,101,114,61,110,101,119,32,82,101,115,105,122,101,79,98,115,101,114,118,101,114,40,116,41,125,115,116,97,116,105,99,32,111,98,115,101,114,118,101,40,116,44,101,41,123,117,46,95,105,110,105,116,105,97,108,105,122,101,79,98,115,101,114,118,101,114,40,41,44,33,117,46,95,111,98,115,101,114,118,101,100,67,97,110,118,97,115,101,115,46,104,97,115,40,116,41,38,38,40,117,46,95,111,98,115,101,114,118,101,100,67,97,110,118,97,115,101,115,46,115,101,116,40,116,44,91,101,44,48,93,41,44,117,46,95,111,98,115,101,114,118,101,114,63,46,111,98,115,101,114,118,101,40,116,41,41,125,115,116,97,116,105,99,32,117,110,111,98,115,101,114,118,101,40,116,41,123,108,101,116,32,101,61,117,46,95,111,98,115,101,114,118,101,100,67,97,110,118,97,115,101,115,46,103,101,116,40,116,41,59,105,102,40,101,41,123,108,101,116,32,114,61,101,91,49,93,59,114,38,38,99,108,101,97,114,84,105,109,101,111,117,116,40,114,41,125,117,46,95,111,98,115,101,114,118,101,114,63,46,117,110,111,98,115,101,114,118,101,40,116,41,44,117,46,95,111,98,115,101,114,118,101,100,67,97,110,118,97,115,101,115,46,100,101,108,101,116,101,40,116,41,44,33,117,46,95,111,98,115,101,114,118,101,100,67,97,110,118,97,115,101,115,46,115,105,122,101,38,38,117,46,95,111,98,115,101,114,118,101,114,38,38,40,117,46,95,111,98,115,101,114,118,101,114,46,100,105,115,99,111,110,110,101,99,116,40,41,44,117,46,95,111,98,115,101,114,118,101,114,61,110,117,108,108,41,125,125,59,108,40,117,44,34,95,111,98,115,101,114,118,101,114,34,44,110,117,108,108,41,44,108,40,117,44,34,95,111,98,115,101,114,118,101,100,67,97,110,118,97,115,101,115,34,44,110,101,119,32,77,97,112,41,59,118,97,114,32,121,61,117,59,102,117,110,99,116,105,111,110,32,119,116,40,110,41,123,114,101,116,117,114,110,47,94,35,40,91,92,100,97,45,102,93,123,54,125,124,91,92,100,97,45,102,93,123,56,125,41,36,47,105,117,46,116,101,115,116,40,110,41,125,102,117,110,99,116,105,111,110,32,115,116,40,110,41,123,105,102,40,33,119,116,40,110,41,41,114,101,116,117,114,110,91,48,44,48,44,48,44,48,93,59,108,101,116,32,116,61,110,46,114,101,112,108,97,99,101,40,34,35,34,44,34,34,41,59,116,61,116,46,108,101,110,103,116,104,61,61,61,54,63,96,36,123,116,125,102,102,96,58,116,59,108,101,116,32,101,61,112,97,114,115,101,73,110,116,40,116,46,115,108,105,99,101,40,48,44,50,41,44,49,54,41,47,50,53,53,44,114,61,112,97,114,115,101,73,110,116,40,116,46,115,108,105,99,101,40,50,44,52,41,44,49,54,41,47,50,53,53,44,111,61,112,97,114,115,101,73,110,116,40,116,46,115,108,105,99,101,40,52,44,54,41,44,49,54,41,47,50,53,53,44,105,61,112,97,114,115,101,73,110,116,40,116,46,115,108,105,99,101,40,54,44,56,41,44,49,54,41,47,50,53,53,59,114,101,116,117,114,110,91,101,44,114,44,111,44,105,93,125,102,117,110,99,116,105,111,110,32,78,40,110,41,123,105,102,40,110,46,98,121,116,101,76,101,110,103,116,104,60,52,41,114,101,116,117,114,110,33,49,59,108,101,116,32,116,61,110,101,119,32,85,105,110,116,56,65,114,114,97,121,40,110,46,115,108,105,99,101,40,48,44,80,46,98,121,116,101,76,101,110,103,116,104,41,41,59,102,111,114,40,108,101,116,32,101,61,48,59,101,60,80,46,108,101,110,103,116,104,59,101,43,61,49,41,105,102,40,80,91,101,93,33,61,61,116,91,101,93,41,114,101,116,117,114,110,33,49,59,114,101,116,117,114,110,33,48,125,102,117,110,99,116,105,111,110,32,114,116,40,110,41,123,114,101,116,117,114,110,32,75,46,101,118,101,114,121,40,116,61,62,79,98,106,101,99,116,46,104,97,115,79,119,110,40,110,44,116,41,41,125,102,117,110,99,116,105,111,110,32,85,40,110,41,123,105,102,40,116,121,112,101,111,102,32,110,61,61,34,115,116,114,105,110,103,34,41,116,114,121,123,114,101,116,117,114,110,32,114,116,40,74,83,79,78,46,112,97,114,115,101,40,110,41,41,125,99,97,116,99,104,123,114,101,116,117,114,110,33,49,125,101,108,115,101,32,114,101,116,117,114,110,32,114,116,40,110,41,125,102,117,110,99,116,105,111,110,32,87,40,41,123,114,101,116,117,114,110,32,49,43,40,40,103,63,119,105,110,100,111,119,46,100,101,118,105,99,101,80,105,120,101,108,82,97,116,105,111,58,49,41,45,49,41,42,89,125,102,117,110,99,116,105,111,110,32,82,40,110,41,123,108,101,116,32,116,61,110,46,103,101,116,66,111,117,110,100,105,110,103,67,108,105,101,110,116,82,101,99,116,40,41,44,101,61,119,105,110,100,111,119,46,105,110,110,101,114,72,101,105,103,104,116,124,124,100,111,99,117,109,101,110,116,46,100,111,99,117,109,101,110,116,69,108,101,109,101,110,116,46,99,108,105,101,110,116,72,101,105,103,104,116,44,114,61,119,105,110,100,111,119,46,105,110,110,101,114,87,105,100,116,104,124,124,100,111,99,117,109,101,110,116,46,100,111,99,117,109,101,110,116,69,108,101,109,101,110,116,46,99,108,105,101,110,116,87,105,100,116,104,59,114,101,116,117,114,110,33,40,116,46,98,111,116,116,111,109,60,48,124,124,116,46,116,111,112,62,101,124,124,116,46,114,105,103,104,116,60,48,124,124,116,46,108,101,102,116,62,114,41,125,102,117,110,99,116,105,111,110,32,77,40,110,41,123,108,101,116,32,116,61,110,46,116,97,114,103,101,116,59,105,102,40,116,32,105,110,115,116,97,110,99,101,111,102,32,72,84,77,76,67,97,110,118,97,115,69,108,101,109,101,110,116,41,123,108,101,116,32,101,61,116,46,103,101,116,66,111,117,110,100,105,110,103,67,108,105,101,110,116,82,101,99,116,40,41,59,105,102,40,101,46,119,105,100,116,104,61,61,61,48,124,124,101,46,104,101,105,103,104,116,61,61,61,48,124,124,116,46,119,105,100,116,104,61,61,61,48,124,124,116,46,104,101,105,103,104,116,61,61,61,48,41,114,101,116,117,114,110,32,110,117,108,108,59,108,101,116,32,114,61,116,46,119,105,100,116,104,47,101,46,119,105,100,116,104,44,111,61,116,46,104,101,105,103,104,116,47,101,46,104,101,105,103,104,116,44,105,61,40,110,46,99,108,105,101,110,116,88,45,101,46,108,101,102,116,41,42,114,44,99,61,40,110,46,99,108,105,101,110,116,89,45,101,46,116,111,112,41,42,111,59,114,101,116,117,114,110,33,78,117,109,98,101,114,46,105,115,70,105,110,105,116,101,40,105,41,124,124,33,78,117,109,98,101,114,46,105,115,70,105,110,105,116,101,40,99,41,124,124,78,117,109,98,101,114,46,105,115,78,97,78,40,105,41,124,124,78,117,109,98,101,114,46,105,115,78,97,78,40,99,41,63,110,117,108,108,58,123,120,58,105,44,121,58,99,125,125,114,101,116,117,114,110,32,110,117,108,108,125,102,117,110,99,116,105,111,110,32,111,116,40,110,41,123,108,101,116,32,116,61,110,46,114,101,112,108,97,99,101,40,34,79,112,101,110,85,114,108,58,32,34,44,34,34,41,44,101,61,116,46,105,110,100,101,120,79,102,40,34,32,124,32,84,97,114,103,101,116,58,32,34,41,44,114,44,111,59,101,61,61,61,45,49,63,40,114,61,116,44,111,61,34,95,98,108,97,110,107,34,41,58,40,114,61,116,46,115,117,98,115,116,114,105,110,103,40,48,44,101,41,44,111,61,116,46,115,117,98,115,116,114,105,110,103,40,101,43,49,49,41,41,44,119,105,110,100,111,119,46,111,112,101,110,40,114,44,111,41,125,102,117,110,99,116,105,111,110,32,105,116,40,110,44,116,44,101,41,123,108,101,116,32,114,61,110,117,108,108,44,111,61,116,59,97,115,121,110,99,32,102,117,110,99,116,105,111,110,32,105,40,100,41,123,97,119,97,105,116,32,110,40,123,109,111,100,117,108,101,95,111,114,95,112,97,116,104,58,100,125,41,125,97,115,121,110,99,32,102,117,110,99,116,105,111,110,32,99,40,100,41,123,108,101,116,32,104,61,97,119,97,105,116,32,102,101,116,99,104,40,100,41,59,105,102,40,33,104,46,111,107,41,116,104,114,111,119,32,110,101,119,32,69,114,114,111,114,40,96,102,101,116,99,104,32,36,123,100,125,32,114,101,115,112,111,110,100,101,100,32,119,105,116,104,32,36,123,104,46,115,116,97,116,117,115,125,32,36,123,104,46,115,116,97,116,117,115,84,101,120,116,125,96,41,59,108,101,116,32,107,61,97,119,97,105,116,32,104,46,97,114,114,97,121,66,117,102,102,101,114,40,41,59,97,119,97,105,116,32,110,40,123,109,111,100,117,108,101,95,111,114,95,112,97,116,104,58,107,125,41,125,114,101,116,117,114,110,123,108,111,97,100,40,41,123,105,102,40,33,114,41,123,108,101,116,32,100,61,111,44,104,61,101,59,114,61,40,97,115,121,110,99,40,41,61,62,123,108,101,116,32,107,44,106,59,116,114,121,123,97,119,97,105,116,32,105,40,100,41,59,114,101,116,117,114,110,125,99,97,116,99,104,40,118,41,123,107,61,118,44,99,111,110,115,111,108,101,46,119,97,114,110,40,96,80,114,105,109,97,114,121,32,87,65,83,77,32,108,111,97,100,32,102,97,105,108,101,100,32,102,114,111,109,32,36,123,100,125,58,32,36,123,118,46,109,101,115,115,97,103,101,125,96,41,44,99,111,110,115,111,108,101,46,119,97,114,110,40,96,65,116,116,101,109,112,116,105,110,103,32,116,111,32,108,111,97,100,32,87,65,83,77,32,102,114,111,109,32,98,97,99,107,117,112,32,85,82,76,58,32,36,123,104,125,96,41,125,116,114,121,123,97,119,97,105,116,32,105,40,104,41,59,114,101,116,117,114,110,125,99,97,116,99,104,40,118,41,123,106,61,118,44,99,111,110,115,111,108,101,46,119,97,114,110,40,96,66,97,99,107,117,112,32,87,65,83,77,32,108,111,97,100,32,102,97,105,108,101,100,32,102,114,111,109,32,36,123,104,125,58,32,36,123,118,46,109,101,115,115,97,103,101,125,96,41,125,99,111,110,115,111,108,101,46,119,97,114,110,40,34,82,101,116,114,121,105,110,103,32,87,65,83,77,32,108,111,97,100,32,119,105,116,104,32,98,117,102,102,101,114,101,100,32,105,110,115,116,97,110,116,105,97,116,105,111,110,34,41,59,116,114,121,123,97,119,97,105,116,32,99,40,100,41,59,114,101,116,117,114,110,125,99,97,116,99,104,40,118,41,123,99,111,110,115,111,108,101,46,119,97,114,110,40,96,66,117,102,102,101,114,101,100,32,87,65,83,77,32,108,111,97,100,32,102,114,111,109,32,36,123,100,125,32,102,97,105,108,101,100,58,32,36,123,118,46,109,101,115,115,97,103,101,125,96,41,125,116,114,121,123,97,119,97,105,116,32,99,40,104,41,59,114,101,116,117,114,110,125,99,97,116,99,104,40,118,41,123,116,104,114,111,119,32,99,111,110,115,111,108,101,46,101,114,114,111,114,40,96,80,114,105,109,97,114,121,32,87,65,83,77,32,85,82,76,32,102,97,105,108,101,100,58,32,36,123,107,46,109,101,115,115,97,103,101,125,96,41,44,99,111,110,115,111,108,101,46,101,114,114,111,114,40,96,66,97,99,107,117,112,32,87,65,83,77,32,85,82,76,32,102,97,105,108,101,100,58,32,36,123,106,46,109,101,115,115,97,103,101,125,96,41,44,99,111,110,115,111,108,101,46,101,114,114,111,114,40,96,66,117,102,102,101,114,101,100,32,102,97,108,108,98,97,99,107,32,102,97,105,108,101,100,58,32,36,123,118,46,109,101,115,115,97,103,101,125,96,41,44,114,61,110,117,108,108,44,110,101,119,32,69,114,114,111,114,40,34,87,65,83,77,32,108,111,97,100,105,110,103,32,102,97,105,108,101,100,32,102,114,111,109,32,97,108,108,32,115,111,117,114,99,101,115,46,34,41,125,125,41,40,41,125,114,101,116,117,114,110,32,114,125,44,115,101,116,87,97,115,109,85,114,108,40,100,41,123,100,33,61,61,111,38,38,40,111,61,100,44,114,61,110,117,108,108,41,125,125,125,118,97,114,32,71,61,105,116,40,110,116,44,96,104,116,116,112,115,58,47,47,99,100,110,46,106,115,100,101,108,105,118,114,46,110,101,116,47,110,112,109,47,36,123,122,125,64,36,123,36,125,47,100,105,115,116,47,100,111,116,108,111,116,116,105,101,45,112,108,97,121,101,114,46,119,97,115,109,96,44,96,104,116,116,112,115,58,47,47,117,110,112,107,103,46,99,111,109,47,36,123,122,125,64,36,123,36,125,47,100,105,115,116,47,100,111,116,108,111,116,116,105,101,45,112,108,97,121,101,114,46,119,97,115,109,96,41,44,72,61,110,61,62,123,115,119,105,116,99,104,40,110,41,123,99,97,115,101,34,114,101,118,101,114,115,101,34,58,114,101,116,117,114,110,32,119,46,82,101,118,101,114,115,101,59,99,97,115,101,34,98,111,117,110,99,101,34,58,114,101,116,117,114,110,32,119,46,66,111,117,110,99,101,59,99,97,115,101,34,114,101,118,101,114,115,101,45,98,111,117,110,99,101,34,58,114,101,116,117,114,110,32,119,46,82,101,118,101,114,115,101,66,111,117,110,99,101,59,100,101,102,97,117,108,116,58,114,101,116,117,114,110,32,119,46,70,111,114,119,97,114,100,125,125,44,97,116,61,110,61,62,123,115,119,105,116,99,104,40,110,41,123,99,97,115,101,32,119,46,82,101,118,101,114,115,101,58,114,101,116,117,114,110,34,114,101,118,101,114,115,101,34,59,99,97,115,101,32,119,46,66,111,117,110,99,101,58,114,101,116,117,114,110,34,98,111,117,110,99,101,34,59,99,97,115,101,32,119,46,82,101,118,101,114,115,101,66,111,117,110,99,101,58,114,101,116,117,114,110,34,114,101,118,101,114,115,101,45,98,111,117,110,99,101,34,59,100,101,102,97,117,108,116,58,114,101,116,117,114,110,34,102,111,114,119,97,114,100,34,125,125,44,98,116,61,110,61,62,123,115,119,105,116,99,104,40,110,41,123,99,97,115,101,34,99,111,110,116,97,105,110,34,58,114,101,116,117,114,110,34,99,111,110,116,97,105,110,34,59,99,97,115,101,34,99,111,118,101,114,34,58,114,101,116,117,114,110,34,99,111,118,101,114,34,59,99,97,115,101,34,102,105,108,108,34,58,114,101,116,117,114,110,34,102,105,108,108,34,59,99,97,115,101,34,102,105,116,45,104,101,105,103,104,116,34,58,114,101,116,117,114,110,34,102,105,116,45,104,101,105,103,104,116,34,59,99,97,115,101,34,102,105,116,45,119,105,100,116,104,34,58,114,101,116,117,114,110,34,102,105,116,45,119,105,100,116,104,34,59,99,97,115,101,34,110,111,110,101,34,58,114,101,116,117,114,110,34,110,111,110,101,34,59,100,101,102,97,117,108,116,58,114,101,116,117,114,110,34,99,111,110,116,97,105,110,34,125,125,44,67,61,99,108,97,115,115,123,99,111,110,115,116,114,117,99,116,111,114,40,116,41,123,108,40,116,104,105,115,44,34,95,99,97,110,118,97,115,34,44,110,117,108,108,41,59,108,40,116,104,105,115,44,34,95,112,101,110,100,105,110,103,76,111,97,100,34,44,110,117,108,108,41,59,108,40,116,104,105,115,44,34,95,99,111,110,116,101,120,116,34,44,110,117,108,108,41,59,108,40,116,104,105,115,44,34,95,101,118,101,110,116,77,97,110,97,103,101,114,34,41,59,108,40,116,104,105,115,44,34,95,97,110,105,109,97,116,105,111,110,70,114,97,109,101,73,100,34,44,110,117,108,108,41,59,108,40,116,104,105,115,44,34,95,102,114,97,109,101,77,97,110,97,103,101,114,34,41,59,108,40,116,104,105,115,44,34,95,98,111,117,110,100,65,110,105,109,97,116,105,111,110,76,111,111,112,34,41,59,108,40,116,104,105,115,44,34,95,100,111,116,76,111,116,116,105,101,67,111,114,101,34,44,110,117,108,108,41,59,108,40,116,104,105,115,44,34,95,115,116,97,116,101,77,97,99,104,105,110,101,73,100,34,44,34,34,41,59,108,40,116,104,105,115,44,34,95,115,116,97,116,101,77,97,99,104,105,110,101,67,111,110,102,105,103,34,44,110,117,108,108,41,59,108,40,116,104,105,115,44,34,95,105,115,83,116,97,116,101,77,97,99,104,105,110,101,82,117,110,110,105,110,103,34,44,33,49,41,59,108,40,116,104,105,115,44,34,95,114,101,110,100,101,114,67,111,110,102,105,103,34,44,123,125,41,59,108,40,116,104,105,115,44,34,95,105,115,70,114,111,122,101,110,34,44,33,49,41,59,108,40,116,104,105,115,44,34,95,98,97,99,107,103,114,111,117,110,100,67,111,108,111,114,34,44,110,117,108,108,41,59,108,40,116,104,105,115,44,34,95,108,97,115,116,70,114,97,109,101,84,105,109,101,34,44,110,117,108,108,41,59,108,40,116,104,105,115,44,34,95,98,111,117,110,100,79,110,67,108,105,99,107,34,44,110,117,108,108,41,59,108,40,116,104,105,115,44,34,95,98,111,117,110,100,79,110,80,111,105,110,116,101,114,85,112,34,44,110,117,108,108,41,59,108,40,116,104,105,115,44,34,95,98,111,117,110,100,79,110,80,111,105,110,116,101,114,68,111,119,110,34,44,110,117,108,108,41,59,108,40,116,104,105,115,44,34,95,98,111,117,110,100,79,110,80,111,105,110,116,101,114,77,111,118,101,34,44,110,117,108,108,41,59,108,40,116,104,105,115,44,34,95,98,111,117,110,100,79,110,80,111,105,110,116,101,114,69,110,116,101,114,34,44,110,117,108,108,41,59,108,40,116,104,105,115,44,34,95,98,111,117,110,100,79,110,80,111,105,110,116,101,114,76,101,97,118,101,34,44,110,117,108,108,41,59,108,40,116,104,105,115,44,34,95,98,117,102,102,101,114,77,105,115,109,97,116,99,104,67,111,117,110,116,34,44,48,41,59,108,40,116,104,105,115,44,34,95,108,97,115,116,69,120,112,101,99,116,101,100,66,117,102,102,101,114,83,105,122,101,34,44,48,41,59,108,40,116,104,105,115,44,34,95,99,97,99,104,101,100,73,109,97,103,101,68,97,116,97,34,44,110,117,108,108,41,59,108,40,116,104,105,115,44,34,95,99,97,99,104,101,100,73,109,97,103,101,68,97,116,97,66,117,102,102,101,114,34,44,110,117,108,108,41,59,108,40,116,104,105,115,44,34,95,99,97,99,104,101,100,73,109,97,103,101,68,97,116,97,66,121,116,101,79,102,102,115,101,116,34,44,48,41,59,108,40,116,104,105,115,44,34,95,109,97,114,107,101,114,34,44,34,34,41,59,108,40,116,104,105,115,44,34,95,115,101,103,109,101,110,116,34,44,110,117,108,108,41,59,116,104,105,115,46,95,99,97,110,118,97,115,61,116,46,99,97,110,118,97,115,63,63,110,117,108,108,44,116,104,105,115,46,95,101,118,101,110,116,77,97,110,97,103,101,114,61,110,101,119,32,79,44,116,104,105,115,46,95,102,114,97,109,101,77,97,110,97,103,101,114,61,110,101,119,32,84,44,116,104,105,115,46,95,98,111,117,110,100,65,110,105,109,97,116,105,111,110,76,111,111,112,61,116,104,105,115,46,95,97,110,105,109,97,116,105,111,110,76,111,111,112,46,98,105,110,100,40,116,104,105,115,41,44,116,104,105,115,46,95,114,101,110,100,101,114,67,111,110,102,105,103,61,123,46,46,46,116,46,114,101,110,100,101,114,67,111,110,102,105,103,44,100,101,118,105,99,101,80,105,120,101,108,82,97,116,105,111,58,116,46,114,101,110,100,101,114,67,111,110,102,105,103,63,46,100,101,118,105,99,101,80,105,120,101,108,82,97,116,105,111,124,124,87,40,41,44,102,114,101,101,122,101,79,110,79,102,102,115,99,114,101,101,110,58,116,46,114,101,110,100,101,114,67,111,110,102,105,103,63,46,102,114,101,101,122,101,79,110,79,102,102,115,99,114,101,101,110,63,63,33,48,125,44,116,104,105,115,46,95,105,110,105,116,87,97,115,109,40,41,46,116,104,101,110,40,40,41,61,62,123,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,61,116,104,105,115,46,95,99,114,101,97,116,101,67,111,114,101,40,41,44,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,46,115,101,116,95,97,117,116,111,112,108,97,121,40,116,46,97,117,116,111,112,108,97,121,63,63,33,49,41,44,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,46,115,101,116,95,108,111,111,112,40,116,46,108,111,111,112,63,63,33,49,41,44,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,46,115,101,116,95,108,111,111,112,95,99,111,117,110,116,40,116,46,108,111,111,112,67,111,117,110,116,63,63,48,41,44,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,46,115,101,116,95,109,111,100,101,40,72,40,116,46,109,111,100,101,63,63,34,102,111,114,119,97,114,100,34,41,41,44,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,46,115,101,116,95,115,112,101,101,100,40,116,46,115,112,101,101,100,63,63,49,41,44,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,46,115,101,116,95,117,115,101,95,102,114,97,109,101,95,105,110,116,101,114,112,111,108,97,116,105,111,110,40,116,46,117,115,101,70,114,97,109,101,73,110,116,101,114,112,111,108,97,116,105,111,110,63,63,33,48,41,44,116,46,115,101,103,109,101,110,116,38,38,116,46,115,101,103,109,101,110,116,46,108,101,110,103,116,104,61,61,61,50,38,38,40,116,104,105,115,46,95,115,101,103,109,101,110,116,61,91,116,46,115,101,103,109,101,110,116,91,48,93,44,116,46,115,101,103,109,101,110,116,91,49,93,93,44,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,46,115,101,116,95,115,101,103,109,101,110,116,40,116,104,105,115,46,95,115,101,103,109,101,110,116,91,48,93,44,116,104,105,115,46,95,115,101,103,109,101,110,116,91,49,93,41,41,44,116,104,105,115,46,95,109,97,114,107,101,114,61,116,46,109,97,114,107,101,114,63,63,34,34,44,116,104,105,115,46,95,109,97,114,107,101,114,38,38,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,46,115,101,116,95,109,97,114,107,101,114,40,116,104,105,115,46,95,109,97,114,107,101,114,41,44,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,46,115,101,116,95,108,97,121,111,117,116,40,116,46,108,97,121,111,117,116,63,46,102,105,116,63,63,34,99,111,110,116,97,105,110,34,44,116,46,108,97,121,111,117,116,63,46,97,108,105,103,110,63,46,91,48,93,63,63,46,53,44,116,46,108,97,121,111,117,116,63,46,97,108,105,103,110,63,46,91,49,93,63,63,46,53,41,44,116,104,105,115,46,95,115,116,97,116,101,77,97,99,104,105,110,101,73,100,61,116,46,115,116,97,116,101,77,97,99,104,105,110,101,73,100,63,63,34,34,44,116,104,105,115,46,95,115,116,97,116,101,77,97,99,104,105,110,101,67,111,110,102,105,103,61,116,46,115,116,97,116,101,77,97,99,104,105,110,101,67,111,110,102,105,103,63,63,110,117,108,108,44,116,104,105,115,46,95,111,110,67,111,114,101,67,114,101,97,116,101,100,40,41,44,116,104,105,115,46,95,101,118,101,110,116,77,97,110,97,103,101,114,46,100,105,115,112,97,116,99,104,40,123,116,121,112,101,58,34,114,101,97,100,121,34,125,41,44,116,46,100,97,116,97,63,116,104,105,115,46,95,99,97,110,118,97,115,63,116,104,105,115,46,95,108,111,97,100,70,114,111,109,68,97,116,97,40,116,46,100,97,116,97,41,58,116,104,105,115,46,95,112,101,110,100,105,110,103,76,111,97,100,61,123,100,97,116,97,58,116,46,100,97,116,97,125,58,116,46,115,114,99,38,38,40,116,104,105,115,46,95,99,97,110,118,97,115,63,116,104,105,115,46,95,108,111,97,100,70,114,111,109,83,114,99,40,116,46,115,114,99,41,58,116,104,105,115,46,95,112,101,110,100,105,110,103,76,111,97,100,61,123,115,114,99,58,116,46,115,114,99,125,41,44,116,46,98,97,99,107,103,114,111,117,110,100,67,111,108,111,114,38,38,116,104,105,115,46,115,101,116,66,97,99,107,103,114,111,117,110,100,67,111,108,111,114,40,116,46,98,97,99,107,103,114,111,117,110,100,67,111,108,111,114,41,125,41,46,99,97,116,99,104,40,101,61,62,123,99,111,110,115,111,108,101,46,101,114,114,111,114,40,34,91,100,111,116,108,111,116,116,105,101,45,119,101,98,93,32,73,110,105,116,105,97,108,105,122,97,116,105,111,110,32,102,97,105,108,101,100,58,34,44,101,41,44,116,104,105,115,46,95,101,118,101,110,116,77,97,110,97,103,101,114,46,100,105,115,112,97,116,99,104,40,123,116,121,112,101,58,34,108,111,97,100,69,114,114,111,114,34,44,101,114,114,111,114,58,110,101,119,32,69,114,114,111,114,40,96,70,97,105,108,101,100,32,116,111,32,108,111,97,100,32,119,97,115,109,32,109,111,100,117,108,101,58,32,36,123,101,125,96,41,125,41,125,41,125,97,115,121,110,99,32,95,105,110,105,116,87,97,115,109,40,41,123,114,101,116,117,114,110,32,71,46,108,111,97,100,40,41,125,95,99,114,101,97,116,101,67,111,114,101,40,41,123,114,101,116,117,114,110,32,110,101,119,32,70,125,95,111,110,67,111,114,101,67,114,101,97,116,101,100,40,41,123,125,95,115,101,116,117,112,84,97,114,103,101,116,40,116,44,101,41,123,114,101,116,117,114,110,32,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,63,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,46,115,101,116,117,112,95,115,119,95,116,97,114,103,101,116,40,116,44,101,41,58,33,49,125,95,100,114,97,105,110,80,108,97,121,101,114,69,118,101,110,116,115,40,123,115,107,105,112,70,114,97,109,101,58,116,61,33,49,125,61,123,125,41,123,105,102,40,33,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,41,114,101,116,117,114,110,59,108,101,116,32,101,59,102,111,114,40,59,40,101,61,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,46,112,111,108,108,95,101,118,101,110,116,40,41,41,33,61,61,110,117,108,108,38,38,101,33,61,61,118,111,105,100,32,48,59,41,123,108,101,116,32,114,61,101,59,115,119,105,116,99,104,40,114,46,116,121,112,101,41,123,99,97,115,101,34,76,111,97,100,34,58,115,101,116,84,105,109,101,111,117,116,40,40,41,61,62,116,104,105,115,46,95,101,118,101,110,116,77,97,110,97,103,101,114,46,100,105,115,112,97,116,99,104,40,123,116,121,112,101,58,34,108,111,97,100,34,125,41,44,48,41,59,98,114,101,97,107,59,99,97,115,101,34,76,111,97,100,69,114,114,111,114,34,58,115,101,116,84,105,109,101,111,117,116,40,40,41,61,62,116,104,105,115,46,95,101,118,101,110,116,77,97,110,97,103,101,114,46,100,105,115,112,97,116,99,104,40,123,116,121,112,101,58,34,108,111,97,100,69,114,114,111,114,34,44,101,114,114,111,114,58,110,101,119,32,69,114,114,111,114,40,34,102,97,105,108,101,100,32,116,111,32,108,111,97,100,34,41,125,41,44,48,41,59,98,114,101,97,107,59,99,97,115,101,34,80,108,97,121,34,58,113,117,101,117,101,77,105,99,114,111,116,97,115,107,40,40,41,61,62,116,104,105,115,46,95,101,118,101,110,116,77,97,110,97,103,101,114,46,100,105,115,112,97,116,99,104,40,123,116,121,112,101,58,34,112,108,97,121,34,125,41,41,59,98,114,101,97,107,59,99,97,115,101,34,80,97,117,115,101,34,58,113,117,101,117,101,77,105,99,114,111,116,97,115,107,40,40,41,61,62,116,104,105,115,46,95,101,118,101,110,116,77,97,110,97,103,101,114,46,100,105,115,112,97,116,99,104,40,123,116,121,112,101,58,34,112,97,117,115,101,34,125,41,41,59,98,114,101,97,107,59,99,97,115,101,34,83,116,111,112,34,58,113,117,101,117,101,77,105,99,114,111,116,97,115,107,40,40,41,61,62,116,104,105,115,46,95,101,118,101,110,116,77,97,110,97,103,101,114,46,100,105,115,112,97,116,99,104,40,123,116,121,112,101,58,34,115,116,111,112,34,125,41,41,59,98,114,101,97,107,59,99,97,115,101,34,70,114,97,109,101,34,58,116,124,124,113,117,101,117,101,77,105,99,114,111,116,97,115,107,40,40,41,61,62,116,104,105,115,46,95,101,118,101,110,116,77,97,110,97,103,101,114,46,100,105,115,112,97,116,99,104,40,123,116,121,112,101,58,34,102,114,97,109,101,34,44,99,117,114,114,101,110,116,70,114,97,109,101,58,114,46,102,114,97,109,101,78,111,63,63,48,125,41,41,59,98,114,101,97,107,59,99,97,115,101,34,82,101,110,100,101,114,34,58,116,124,124,113,117,101,117,101,77,105,99,114,111,116,97,115,107,40,40,41,61,62,116,104,105,115,46,95,101,118,101,110,116,77,97,110,97,103,101,114,46,100,105,115,112,97,116,99,104,40,123,116,121,112,101,58,34,114,101,110,100,101,114,34,44,99,117,114,114,101,110,116,70,114,97,109,101,58,114,46,102,114,97,109,101,78,111,63,63,48,125,41,41,59,98,114,101,97,107,59,99,97,115,101,34,76,111,111,112,34,58,113,117,101,117,101,77,105,99,114,111,116,97,115,107,40,40,41,61,62,116,104,105,115,46,95,101,118,101,110,116,77,97,110,97,103,101,114,46,100,105,115,112,97,116,99,104,40,123,116,121,112,101,58,34,108,111,111,112,34,44,108,111,111,112,67,111,117,110,116,58,114,46,108,111,111,112,67,111,117,110,116,63,63,48,125,41,41,59,98,114,101,97,107,59,99,97,115,101,34,67,111,109,112,108,101,116,101,34,58,113,117,101,117,101,77,105,99,114,111,116,97,115,107,40,40,41,61,62,116,104,105,115,46,95,101,118,101,110,116,77,97,110,97,103,101,114,46,100,105,115,112,97,116,99,104,40,123,116,121,112,101,58,34,99,111,109,112,108,101,116,101,34,125,41,41,59,98,114,101,97,107,59,100,101,102,97,117,108,116,58,98,114,101,97,107,125,125,125,95,100,114,97,105,110,83,109,69,118,101,110,116,115,40,41,123,105,102,40,33,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,41,114,101,116,117,114,110,59,108,101,116,32,116,59,102,111,114,40,59,40,116,61,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,46,115,109,95,112,111,108,108,95,101,118,101,110,116,40,41,41,33,61,61,110,117,108,108,38,38,116,33,61,61,118,111,105,100,32,48,59,41,123,108,101,116,32,114,61,116,59,115,119,105,116,99,104,40,114,46,116,121,112,101,41,123,99,97,115,101,34,83,116,97,114,116,34,58,113,117,101,117,101,77,105,99,114,111,116,97,115,107,40,40,41,61,62,123,116,104,105,115,46,95,105,115,83,116,97,116,101,77,97,99,104,105,110,101,82,117,110,110,105,110,103,61,33,48,44,116,104,105,115,46,95,101,118,101,110,116,77,97,110,97,103,101,114,46,100,105,115,112,97,116,99,104,40,123,116,121,112,101,58,34,115,116,97,116,101,77,97,99,104,105,110,101,83,116,97,114,116,34,125,41,44,116,104,105,115,46,95,115,116,97,114,116,65,110,105,109,97,116,105,111,110,76,111,111,112,40,41,125,41,59,98,114,101,97,107,59,99,97,115,101,34,83,116,111,112,34,58,113,117,101,117,101,77,105,99,114,111,116,97,115,107,40,40,41,61,62,123,116,104,105,115,46,95,105,115,83,116,97,116,101,77,97,99,104,105,110,101,82,117,110,110,105,110,103,61,33,49,44,116,104,105,115,46,95,101,118,101,110,116,77,97,110,97,103,101,114,46,100,105,115,112,97,116,99,104,40,123,116,121,112,101,58,34,115,116,97,116,101,77,97,99,104,105,110,101,83,116,111,112,34,125,41,44,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,63,46,105,115,95,112,108,97,121,105,110,103,40,41,124,124,116,104,105,115,46,95,115,116,111,112,65,110,105,109,97,116,105,111,110,76,111,111,112,40,41,125,41,59,98,114,101,97,107,59,99,97,115,101,34,67,117,115,116,111,109,69,118,101,110,116,34,58,116,104,105,115,46,95,101,118,101,110,116,77,97,110,97,103,101,114,46,100,105,115,112,97,116,99,104,40,123,116,121,112,101,58,34,115,116,97,116,101,77,97,99,104,105,110,101,67,117,115,116,111,109,69,118,101,110,116,34,44,101,118,101,110,116,78,97,109,101,58,114,46,109,101,115,115,97,103,101,63,63,34,34,125,41,59,98,114,101,97,107,59,99,97,115,101,34,66,111,111,108,101,97,110,73,110,112,117,116,67,104,97,110,103,101,34,58,116,104,105,115,46,95,101,118,101,110,116,77,97,110,97,103,101,114,46,100,105,115,112,97,116,99,104,40,123,116,121,112,101,58,34,115,116,97,116,101,77,97,99,104,105,110,101,66,111,111,108,101,97,110,73,110,112,117,116,86,97,108,117,101,67,104,97,110,103,101,34,44,105,110,112,117,116,78,97,109,101,58,114,46,110,97,109,101,63,63,34,34,44,110,101,119,86,97,108,117,101,58,114,46,110,101,119,86,97,108,117,101,44,111,108,100,86,97,108,117,101,58,114,46,111,108,100,86,97,108,117,101,125,41,59,98,114,101,97,107,59,99,97,115,101,34,78,117,109,101,114,105,99,73,110,112,117,116,67,104,97,110,103,101,34,58,116,104,105,115,46,95,101,118,101,110,116,77,97,110,97,103,101,114,46,100,105,115,112,97,116,99,104,40,123,116,121,112,101,58,34,115,116,97,116,101,77,97,99,104,105,110,101,78,117,109,101,114,105,99,73,110,112,117,116,86,97,108,117,101,67,104,97,110,103,101,34,44,105,110,112,117,116,78,97,109,101,58,114,46,110,97,109,101,63,63,34,34,44,110,101,119,86,97,108,117,101,58,114,46,110,101,119,86,97,108,117,101,44,111,108,100,86,97,108,117,101,58,114,46,111,108,100,86,97,108,117,101,125,41,59,98,114,101,97,107,59,99,97,115,101,34,83,116,114,105,110,103,73,110,112,117,116,67,104,97,110,103,101,34,58,116,104,105,115,46,95,101,118,101,110,116,77,97,110,97,103,101,114,46,100,105,115,112,97,116,99,104,40,123,116,121,112,101,58,34,115,116,97,116,101,77,97,99,104,105,110,101,83,116,114,105,110,103,73,110,112,117,116,86,97,108,117,101,67,104,97,110,103,101,34,44,105,110,112,117,116,78,97,109,101,58,114,46,110,97,109,101,63,63,34,34,44,110,101,119,86,97,108,117,101,58,114,46,110,101,119,86,97,108,117,101,44,111,108,100,86,97,108,117,101,58,114,46,111,108,100,86,97,108,117,101,125,41,59,98,114,101,97,107,59,99,97,115,101,34,73,110,112,117,116,70,105,114,101,100,34,58,116,104,105,115,46,95,101,118,101,110,116,77,97,110,97,103,101,114,46,100,105,115,112,97,116,99,104,40,123,116,121,112,101,58,34,115,116,97,116,101,77,97,99,104,105,110,101,73,110,112,117,116,70,105,114,101,100,34,44,105,110,112,117,116,78,97,109,101,58,114,46,110,97,109,101,63,63,34,34,125,41,59,98,114,101,97,107,59,99,97,115,101,34,84,114,97,110,115,105,116,105,111,110,34,58,116,104,105,115,46,95,101,118,101,110,116,77,97,110,97,103,101,114,46,100,105,115,112,97,116,99,104,40,123,116,121,112,101,58,34,115,116,97,116,101,77,97,99,104,105,110,101,84,114,97,110,115,105,116,105,111,110,34,44,102,114,111,109,83,116,97,116,101,58,114,46,112,114,101,118,105,111,117,115,83,116,97,116,101,63,63,34,34,44,116,111,83,116,97,116,101,58,114,46,110,101,119,83,116,97,116,101,63,63,34,34,125,41,59,98,114,101,97,107,59,99,97,115,101,34,83,116,97,116,101,69,110,116,101,114,101,100,34,58,116,104,105,115,46,95,101,118,101,110,116,77,97,110,97,103,101,114,46,100,105,115,112,97,116,99,104,40,123,116,121,112,101,58,34,115,116,97,116,101,77,97,99,104,105,110,101,83,116,97,116,101,69,110,116,101,114,101,100,34,44,115,116,97,116,101,58,114,46,115,116,97,116,101,63,63,34,34,125,41,59,98,114,101,97,107,59,99,97,115,101,34,83,116,97,116,101,69,120,105,116,34,58,116,104,105,115,46,95,101,118,101,110,116,77,97,110,97,103,101,114,46,100,105,115,112,97,116,99,104,40,123,116,121,112,101,58,34,115,116,97,116,101,77,97,99,104,105,110,101,83,116,97,116,101,69,120,105,116,34,44,115,116,97,116,101,58,114,46,115,116,97,116,101,63,63,34,34,125,41,59,98,114,101,97,107,59,99,97,115,101,34,69,114,114,111,114,34,58,116,104,105,115,46,95,101,118,101,110,116,77,97,110,97,103,101,114,46,100,105,115,112,97,116,99,104,40,123,116,121,112,101,58,34,115,116,97,116,101,77,97,99,104,105,110,101,69,114,114,111,114,34,44,101,114,114,111,114,58,114,46,109,101,115,115,97,103,101,63,63,34,34,125,41,59,98,114,101,97,107,59,100,101,102,97,117,108,116,58,98,114,101,97,107,125,125,108,101,116,32,101,59,102,111,114,40,59,40,101,61,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,46,115,109,95,112,111,108,108,95,105,110,116,101,114,110,97,108,95,101,118,101,110,116,40,41,41,33,61,61,110,117,108,108,38,38,101,33,61,61,118,111,105,100,32,48,59,41,123,108,101,116,32,114,61,101,59,105,102,40,114,46,116,121,112,101,61,61,61,34,77,101,115,115,97,103,101,34,41,123,108,101,116,32,111,61,114,46,109,101,115,115,97,103,101,63,63,34,34,59,103,38,38,111,46,115,116,97,114,116,115,87,105,116,104,40,34,79,112,101,110,85,114,108,58,32,34,41,63,111,116,40,111,41,58,116,104,105,115,46,95,101,118,101,110,116,77,97,110,97,103,101,114,46,100,105,115,112,97,116,99,104,40,123,116,121,112,101,58,34,115,116,97,116,101,77,97,99,104,105,110,101,73,110,116,101,114,110,97,108,77,101,115,115,97,103,101,34,44,109,101,115,115,97,103,101,58,111,125,41,125,125,125,95,100,105,115,112,97,116,99,104,69,114,114,111,114,40,116,41,123,99,111,110,115,111,108,101,46,101,114,114,111,114,40,116,41,44,116,104,105,115,46,95,101,118,101,110,116,77,97,110,97,103,101,114,46,100,105,115,112,97,116,99,104,40,123,116,121,112,101,58,34,108,111,97,100,69,114,114,111,114,34,44,101,114,114,111,114,58,110,101,119,32,69,114,114,111,114,40,116,41,125,41,125,97,115,121,110,99,32,95,102,101,116,99,104,68,97,116,97,40,116,41,123,108,101,116,32,101,61,97,119,97,105,116,32,102,101,116,99,104,40,116,41,59,105,102,40,33,101,46,111,107,41,116,104,114,111,119,32,110,101,119,32,69,114,114,111,114,40,96,70,97,105,108,101,100,32,116,111,32,102,101,116,99,104,32,97,110,105,109,97,116,105,111,110,32,100,97,116,97,32,102,114,111,109,32,85,82,76,58,32,36,123,116,125,46,32,36,123,101,46,115,116,97,116,117,115,125,58,32,36,123,101,46,115,116,97,116,117,115,84,101,120,116,125,96,41,59,108,101,116,32,114,61,97,119,97,105,116,32,101,46,97,114,114,97,121,66,117,102,102,101,114,40,41,59,114,101,116,117,114,110,32,78,40,114,41,63,114,58,110,101,119,32,84,101,120,116,68,101,99,111,100,101,114,40,41,46,100,101,99,111,100,101,40,114,41,125,95,108,111,97,100,70,114,111,109,68,97,116,97,40,116,41,123,105,102,40,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,61,61,61,110,117,108,108,41,114,101,116,117,114,110,59,105,102,40,33,116,104,105,115,46,95,99,97,110,118,97,115,41,123,99,111,110,115,111,108,101,46,119,97,114,110,40,34,91,100,111,116,108,111,116,116,105,101,45,119,101,98,93,32,67,97,110,110,111,116,32,108,111,97,100,32,97,110,105,109,97,116,105,111,110,32,119,105,116,104,111,117,116,32,99,97,110,118,97,115,46,32,67,97,108,108,32,115,101,116,67,97,110,118,97,115,40,41,32,102,105,114,115,116,46,34,41,59,114,101,116,117,114,110,125,108,101,116,32,101,61,116,104,105,115,46,95,99,97,110,118,97,115,46,119,105,100,116,104,44,114,61,116,104,105,115,46,95,99,97,110,118,97,115,46,104,101,105,103,104,116,59,116,104,105,115,46,95,115,101,116,117,112,84,97,114,103,101,116,40,101,44,114,41,59,108,101,116,32,111,61,33,49,59,105,102,40,116,121,112,101,111,102,32,116,61,61,34,115,116,114,105,110,103,34,41,123,105,102,40,33,85,40,116,41,41,123,116,104,105,115,46,95,100,105,115,112,97,116,99,104,69,114,114,111,114,40,34,73,110,118,97,108,105,100,32,76,111,116,116,105,101,32,74,83,79,78,32,115,116,114,105,110,103,58,32,84,104,101,32,112,114,111,118,105,100,101,100,32,115,116,114,105,110,103,32,100,111,101,115,32,110,111,116,32,99,111,110,102,111,114,109,32,116,111,32,116,104,101,32,76,111,116,116,105,101,32,74,83,79,78,32,102,111,114,109,97,116,46,34,41,59,114,101,116,117,114,110,125,111,61,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,46,108,111,97,100,95,97,110,105,109,97,116,105,111,110,40,116,41,125,101,108,115,101,32,105,102,40,116,32,105,110,115,116,97,110,99,101,111,102,32,65,114,114,97,121,66,117,102,102,101,114,41,123,105,102,40,33,78,40,116,41,41,123,116,104,105,115,46,95,100,105,115,112,97,116,99,104,69,114,114,111,114,40,34,73,110,118,97,108,105,100,32,100,111,116,76,111,116,116,105,101,32,65,114,114,97,121,66,117,102,102,101,114,58,32,84,104,101,32,112,114,111,118,105,100,101,100,32,65,114,114,97,121,66,117,102,102,101,114,32,100,111,101,115,32,110,111,116,32,99,111,110,102,111,114,109,32,116,111,32,116,104,101,32,100,111,116,76,111,116,116,105,101,32,102,111,114,109,97,116,46,34,41,59,114,101,116,117,114,110,125,111,61,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,46,108,111,97,100,95,100,111,116,108,111,116,116,105,101,95,100,97,116,97,40,110,101,119,32,85,105,110,116,56,65,114,114,97,121,40,116,41,41,125,101,108,115,101,32,105,102,40,116,121,112,101,111,102,32,116,61,61,34,111,98,106,101,99,116,34,41,123,105,102,40,33,85,40,116,41,41,123,116,104,105,115,46,95,100,105,115,112,97,116,99,104,69,114,114,111,114,40,34,73,110,118,97,108,105,100,32,76,111,116,116,105,101,32,74,83,79,78,32,111,98,106,101,99,116,58,32,84,104,101,32,112,114,111,118,105,100,101,100,32,111,98,106,101,99,116,32,100,111,101,115,32,110,111,116,32,99,111,110,102,111,114,109,32,116,111,32,116,104,101,32,76,111,116,116,105,101,32,74,83,79,78,32,102,111,114,109,97,116,46,34,41,59,114,101,116,117,114,110,125,111,61,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,46,108,111,97,100,95,97,110,105,109,97,116,105,111,110,40,74,83,79,78,46,115,116,114,105,110,103,105,102,121,40,116,41,41,125,101,108,115,101,123,116,104,105,115,46,95,100,105,115,112,97,116,99,104,69,114,114,111,114,40,96,85,110,115,117,112,112,111,114,116,101,100,32,100,97,116,97,32,116,121,112,101,32,102,111,114,32,97,110,105,109,97,116,105,111,110,32,100,97,116,97,46,32,69,120,112,101,99,116,101,100,58,10,32,32,32,32,32,32,32,32,32,32,45,32,115,116,114,105,110,103,32,40,76,111,116,116,105,101,32,74,83,79,78,41,44,10,32,32,32,32,32,32,32,32,32,32,45,32,65,114,114,97,121,66,117,102,102,101,114,32,40,100,111,116,76,111,116,116,105,101,41,44,10,32,32,32,32,32,32,32,32,32,32,45,32,111,98,106,101,99,116,32,40,76,111,116,116,105,101,32,74,83,79,78,41,46,10,32,32,32,32,32,32,32,32,32,32,82,101,99,101,105,118,101,100,58,32,36,123,116,121,112,101,111,102,32,116,125,96,41,59,114,101,116,117,114,110,125,105,102,40,111,41,123,105,102,40,116,104,105,115,46,95,114,101,110,100,101,114,67,111,110,102,105,103,46,113,117,97,108,105,116,121,33,61,61,118,111,105,100,32,48,38,38,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,46,115,101,116,95,113,117,97,108,105,116,121,40,116,104,105,115,46,95,114,101,110,100,101,114,67,111,110,102,105,103,46,113,117,97,108,105,116,121,41,44,103,38,38,116,104,105,115,46,114,101,115,105,122,101,40,41,44,116,104,105,115,46,95,100,114,97,105,110,80,108,97,121,101,114,69,118,101,110,116,115,40,123,115,107,105,112,70,114,97,109,101,58,33,33,116,104,105,115,46,95,109,97,114,107,101,114,124,124,33,33,116,104,105,115,46,95,115,101,103,109,101,110,116,125,41,44,116,104,105,115,46,95,109,97,114,107,101,114,38,38,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,46,115,101,116,95,109,97,114,107,101,114,40,116,104,105,115,46,95,109,97,114,107,101,114,41,44,116,104,105,115,46,95,115,101,103,109,101,110,116,41,123,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,46,115,101,116,95,115,101,103,109,101,110,116,40,116,104,105,115,46,95,115,101,103,109,101,110,116,91,48,93,44,116,104,105,115,46,95,115,101,103,109,101,110,116,91,49,93,41,59,108,101,116,32,105,61,97,116,40,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,46,109,111,100,101,40,41,41,44,99,61,105,61,61,61,34,114,101,118,101,114,115,101,34,124,124,105,61,61,61,34,114,101,118,101,114,115,101,45,98,111,117,110,99,101,34,63,116,104,105,115,46,95,115,101,103,109,101,110,116,91,49,93,58,116,104,105,115,46,95,115,101,103,109,101,110,116,91,48,93,59,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,46,115,101,116,95,102,114,97,109,101,40,99,41,125,115,101,116,84,105,109,101,111,117,116,40,40,41,61,62,123,116,104,105,115,46,95,101,118,101,110,116,77,97,110,97,103,101,114,46,100,105,115,112,97,116,99,104,40,123,116,121,112,101,58,34,102,114,97,109,101,34,44,99,117,114,114,101,110,116,70,114,97,109,101,58,116,104,105,115,46,99,117,114,114,101,110,116,70,114,97,109,101,125,41,125,44,48,41,44,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,46,114,101,110,100,101,114,40,41,44,116,104,105,115,46,95,100,114,97,105,110,80,108,97,121,101,114,69,118,101,110,116,115,40,41,44,116,104,105,115,46,95,100,114,97,119,40,41,44,116,104,105,115,46,95,115,116,97,116,101,77,97,99,104,105,110,101,73,100,63,116,104,105,115,46,115,116,97,116,101,77,97,99,104,105,110,101,76,111,97,100,40,116,104,105,115,46,95,115,116,97,116,101,77,97,99,104,105,110,101,73,100,41,38,38,116,104,105,115,46,115,116,97,116,101,77,97,99,104,105,110,101,83,116,97,114,116,40,41,38,38,116,104,105,115,46,95,115,116,97,114,116,65,110,105,109,97,116,105,111,110,76,111,111,112,40,41,58,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,46,105,115,95,112,108,97,121,105,110,103,40,41,38,38,116,104,105,115,46,95,115,116,97,114,116,65,110,105,109,97,116,105,111,110,76,111,111,112,40,41,44,103,38,38,116,104,105,115,46,95,99,97,110,118,97,115,32,105,110,115,116,97,110,99,101,111,102,32,72,84,77,76,67,97,110,118,97,115,69,108,101,109,101,110,116,38,38,40,116,104,105,115,46,95,114,101,110,100,101,114,67,111,110,102,105,103,46,102,114,101,101,122,101,79,110,79,102,102,115,99,114,101,101,110,38,38,40,98,46,111,98,115,101,114,118,101,40,116,104,105,115,46,95,99,97,110,118,97,115,44,116,104,105,115,41,44,82,40,116,104,105,115,46,95,99,97,110,118,97,115,41,124,124,116,104,105,115,46,102,114,101,101,122,101,40,41,41,44,116,104,105,115,46,95,114,101,110,100,101,114,67,111,110,102,105,103,46,97,117,116,111,82,101,115,105,122,101,38,38,121,46,111,98,115,101,114,118,101,40,116,104,105,115,46,95,99,97,110,118,97,115,44,116,104,105,115,41,41,125,101,108,115,101,32,116,104,105,115,46,95,100,114,97,105,110,80,108,97,121,101,114,69,118,101,110,116,115,40,41,125,95,108,111,97,100,70,114,111,109,83,114,99,40,116,41,123,116,104,105,115,46,95,102,101,116,99,104,68,97,116,97,40,116,41,46,116,104,101,110,40,101,61,62,116,104,105,115,46,95,108,111,97,100,70,114,111,109,68,97,116,97,40,101,41,41,46,99,97,116,99,104,40,101,61,62,116,104,105,115,46,95,100,105,115,112,97,116,99,104,69,114,114,111,114,40,96,70,97,105,108,101,100,32,116,111,32,108,111,97,100,32,97,110,105,109,97,116,105,111,110,32,100,97,116,97,32,102,114,111,109,32,85,82,76,58,32,36,123,116,125,46,32,36,123,101,125,96,41,41,125,103,101,116,32,98,117,102,102,101,114,40,41,123,114,101,116,117,114,110,32,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,63,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,46,103,101,116,95,112,105,120,101,108,95,98,117,102,102,101,114,40,41,58,110,117,108,108,125,103,101,116,32,97,99,116,105,118,101,65,110,105,109,97,116,105,111,110,73,100,40,41,123,114,101,116,117,114,110,32,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,63,46,97,110,105,109,97,116,105,111,110,95,105,100,40,41,63,63,118,111,105,100,32,48,125,103,101,116,32,97,99,116,105,118,101,84,104,101,109,101,73,100,40,41,123,114,101,116,117,114,110,32,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,63,46,116,104,101,109,101,95,105,100,40,41,63,63,118,111,105,100,32,48,125,103,101,116,32,108,97,121,111,117,116,40,41,123,105,102,40,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,41,114,101,116,117,114,110,123,97,108,105,103,110,58,91,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,46,108,97,121,111,117,116,95,97,108,105,103,110,95,120,40,41,44,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,46,108,97,121,111,117,116,95,97,108,105,103,110,95,121,40,41,93,44,102,105,116,58,98,116,40,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,46,108,97,121,111,117,116,95,102,105,116,40,41,41,125,125,103,101,116,32,109,97,114,107,101,114,40,41,123,114,101,116,117,114,110,32,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,63,46,99,117,114,114,101,110,116,95,109,97,114,107,101,114,40,41,63,63,34,34,125,103,101,116,32,109,97,110,105,102,101,115,116,40,41,123,116,114,121,123,108,101,116,32,116,61,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,63,46,109,97,110,105,102,101,115,116,95,115,116,114,105,110,103,40,41,59,105,102,40,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,61,61,61,110,117,108,108,124,124,33,116,41,114,101,116,117,114,110,32,110,117,108,108,59,108,101,116,32,101,61,74,83,79,78,46,112,97,114,115,101,40,116,41,59,114,101,116,117,114,110,32,79,98,106,101,99,116,46,107,101,121,115,40,101,41,46,108,101,110,103,116,104,61,61,61,48,63,110,117,108,108,58,101,125,99,97,116,99,104,123,114,101,116,117,114,110,32,110,117,108,108,125,125,103,101,116,32,114,101,110,100,101,114,67,111,110,102,105,103,40,41,123,114,101,116,117,114,110,32,116,104,105,115,46,95,114,101,110,100,101,114,67,111,110,102,105,103,125,103,101,116,32,115,101,103,109,101,110,116,40,41,123,105,102,40,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,41,114,101,116,117,114,110,91,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,46,115,101,103,109,101,110,116,95,115,116,97,114,116,40,41,44,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,46,115,101,103,109,101,110,116,95,101,110,100,40,41,93,125,103,101,116,32,108,111,111,112,40,41,123,114,101,116,117,114,110,32,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,63,46,108,111,111,112,95,97,110,105,109,97,116,105,111,110,40,41,63,63,33,49,125,103,101,116,32,109,111,100,101,40,41,123,114,101,116,117,114,110,32,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,63,97,116,40,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,46,109,111,100,101,40,41,41,58,34,102,111,114,119,97,114,100,34,125,103,101,116,32,105,115,70,114,111,122,101,110,40,41,123,114,101,116,117,114,110,32,116,104,105,115,46,95,105,115,70,114,111,122,101,110,125,103,101,116,32,105,115,83,116,97,116,101,77,97,99,104,105,110,101,82,117,110,110,105,110,103,40,41,123,114,101,116,117,114,110,32,116,104,105,115,46,95,105,115,83,116,97,116,101,77,97,99,104,105,110,101,82,117,110,110,105,110,103,125,103,101,116,32,98,97,99,107,103,114,111,117,110,100,67,111,108,111,114,40,41,123,114,101,116,117,114,110,32,116,104,105,115,46,95,98,97,99,107,103,114,111,117,110,100,67,111,108,111,114,63,63,34,34,125,103,101,116,32,97,117,116,111,112,108,97,121,40,41,123,114,101,116,117,114,110,32,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,63,46,97,117,116,111,112,108,97,121,40,41,63,63,33,49,125,103,101,116,32,117,115,101,70,114,97,109,101,73,110,116,101,114,112,111,108,97,116,105,111,110,40,41,123,114,101,116,117,114,110,32,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,63,46,117,115,101,95,102,114,97,109,101,95,105,110,116,101,114,112,111,108,97,116,105,111,110,40,41,63,63,33,49,125,103,101,116,32,115,112,101,101,100,40,41,123,114,101,116,117,114,110,32,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,63,46,115,112,101,101,100,40,41,63,63,48,125,103,101,116,32,105,115,82,101,97,100,121,40,41,123,114,101,116,117,114,110,32,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,33,61,61,110,117,108,108,125,103,101,116,32,105,115,76,111,97,100,101,100,40,41,123,114,101,116,117,114,110,32,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,63,46,105,115,95,108,111,97,100,101,100,40,41,63,63,33,49,125,103,101,116,32,105,115,80,108,97,121,105,110,103,40,41,123,114,101,116,117,114,110,32,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,63,46,105,115,95,112,108,97,121,105,110,103,40,41,63,63,33,49,125,103,101,116,32,105,115,80,97,117,115,101,100,40,41,123,114,101,116,117,114,110,32,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,63,46,105,115,95,112,97,117,115,101,100,40,41,63,63,33,49,125,103,101,116,32,105,115,83,116,111,112,112,101,100,40,41,123,114,101,116,117,114,110,32,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,63,46,105,115,95,115,116,111,112,112,101,100,40,41,63,63,33,49,125,103,101,116,32,99,117,114,114,101,110,116,70,114,97,109,101,40,41,123,114,101,116,117,114,110,32,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,63,77,97,116,104,46,114,111,117,110,100,40,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,46,99,117,114,114,101,110,116,95,102,114,97,109,101,40,41,42,49,48,48,41,47,49,48,48,58,48,125,103,101,116,32,108,111,111,112,67,111,117,110,116,40,41,123,114,101,116,117,114,110,32,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,63,46,99,117,114,114,101,110,116,95,108,111,111,112,95,99,111,117,110,116,40,41,63,63,48,125,103,101,116,32,116,111,116,97,108,70,114,97,109,101,115,40,41,123,114,101,116,117,114,110,32,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,63,46,116,111,116,97,108,95,102,114,97,109,101,115,40,41,63,63,48,125,103,101,116,32,100,117,114,97,116,105,111,110,40,41,123,114,101,116,117,114,110,40,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,63,46,100,117,114,97,116,105,111,110,40,41,63,63,48,41,47,49,101,51,125,103,101,116,32,99,97,110,118,97,115,40,41,123,114,101,116,117,114,110,32,116,104,105,115,46,95,99,97,110,118,97,115,125,108,111,97,100,40,116,41,123,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,33,61,61,110,117,108,108,38,38,40,116,104,105,115,46,95,115,116,111,112,65,110,105,109,97,116,105,111,110,76,111,111,112,40,41,44,116,104,105,115,46,95,99,108,101,97,110,117,112,67,97,110,118,97,115,40,41,44,116,104,105,115,46,95,105,115,70,114,111,122,101,110,61,33,49,44,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,46,115,101,116,95,97,117,116,111,112,108,97,121,40,116,46,97,117,116,111,112,108,97,121,63,63,33,49,41,44,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,46,115,101,116,95,108,111,111,112,40,116,46,108,111,111,112,63,63,33,49,41,44,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,46,115,101,116,95,108,111,111,112,95,99,111,117,110,116,40,116,46,108,111,111,112,67,111,117,110,116,63,63,48,41,44,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,46,115,101,116,95,109,111,100,101,40,72,40,116,46,109,111,100,101,63,63,34,102,111,114,119,97,114,100,34,41,41,44,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,46,115,101,116,95,115,112,101,101,100,40,116,46,115,112,101,101,100,63,63,49,41,44,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,46,115,101,116,95,117,115,101,95,102,114,97,109,101,95,105,110,116,101,114,112,111,108,97,116,105,111,110,40,116,46,117,115,101,70,114,97,109,101,73,110,116,101,114,112,111,108,97,116,105,111,110,63,63,33,48,41,44,116,46,115,101,103,109,101,110,116,38,38,116,46,115,101,103,109,101,110,116,46,108,101,110,103,116,104,61,61,61,50,63,40,116,104,105,115,46,95,115,101,103,109,101,110,116,61,91,116,46,115,101,103,109,101,110,116,91,48,93,44,116,46,115,101,103,109,101,110,116,91,49,93,93,44,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,46,115,101,116,95,115,101,103,109,101,110,116,40,116,104,105,115,46,95,115,101,103,109,101,110,116,91,48,93,44,116,104,105,115,46,95,115,101,103,109,101,110,116,91,49,93,41,41,58,40,116,104,105,115,46,95,115,101,103,109,101,110,116,61,110,117,108,108,44,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,46,99,108,101,97,114,95,115,101,103,109,101,110,116,40,41,41,44,116,104,105,115,46,95,109,97,114,107,101,114,61,116,46,109,97,114,107,101,114,63,63,34,34,44,116,104,105,115,46,95,109,97,114,107,101,114,63,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,46,115,101,116,95,109,97,114,107,101,114,40,116,104,105,115,46,95,109,97,114,107,101,114,41,58,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,46,99,108,101,97,114,95,109,97,114,107,101,114,40,41,44,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,46,115,101,116,95,108,97,121,111,117,116,40,116,46,108,97,121,111,117,116,63,46,102,105,116,63,63,34,99,111,110,116,97,105,110,34,44,116,46,108,97,121,111,117,116,63,46,97,108,105,103,110,63,46,91,48,93,63,63,46,53,44,116,46,108,97,121,111,117,116,63,46,97,108,105,103,110,63,46,91,49,93,63,63,46,53,41,44,116,46,100,97,116,97,63,116,104,105,115,46,95,99,97,110,118,97,115,63,116,104,105,115,46,95,108,111,97,100,70,114,111,109,68,97,116,97,40,116,46,100,97,116,97,41,58,116,104,105,115,46,95,112,101,110,100,105,110,103,76,111,97,100,61,123,100,97,116,97,58,116,46,100,97,116,97,125,58,116,46,115,114,99,38,38,40,116,104,105,115,46,95,99,97,110,118,97,115,63,116,104,105,115,46,95,108,111,97,100,70,114,111,109,83,114,99,40,116,46,115,114,99,41,58,116,104,105,115,46,95,112,101,110,100,105,110,103,76,111,97,100,61,123,115,114,99,58,116,46,115,114,99,125,41,44,116,46,98,97,99,107,103,114,111,117,110,100,67,111,108,111,114,38,38,116,104,105,115,46,115,101,116,66,97,99,107,103,114,111,117,110,100,67,111,108,111,114,40,116,46,98,97,99,107,103,114,111,117,110,100,67,111,108,111,114,41,41,125,95,100,114,97,119,40,41,123,105,102,40,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,61,61,61,110,117,108,108,124,124,116,104,105,115,46,95,99,97,110,118,97,115,61,61,61,110,117,108,108,124,124,40,33,116,104,105,115,46,95,99,111,110,116,101,120,116,38,38,34,103,101,116,67,111,110,116,101,120,116,34,105,110,32,116,104,105,115,46,95,99,97,110,118,97,115,38,38,116,121,112,101,111,102,32,116,104,105,115,46,95,99,97,110,118,97,115,46,103,101,116,67,111,110,116,101,120,116,61,61,34,102,117,110,99,116,105,111,110,34,38,38,40,33,103,124,124,116,121,112,101,111,102,32,72,84,77,76,67,97,110,118,97,115,69,108,101,109,101,110,116,60,34,117,34,38,38,116,104,105,115,46,95,99,97,110,118,97,115,32,105,110,115,116,97,110,99,101,111,102,32,72,84,77,76,67,97,110,118,97,115,69,108,101,109,101,110,116,124,124,116,121,112,101,111,102,32,79,102,102,115,99,114,101,101,110,67,97,110,118,97,115,60,34,117,34,38,38,116,104,105,115,46,95,99,97,110,118,97,115,32,105,110,115,116,97,110,99,101,111,102,32,79,102,102,115,99,114,101,101,110,67,97,110,118,97,115,41,38,38,40,116,104,105,115,46,95,99,111,110,116,101,120,116,61,116,104,105,115,46,95,99,97,110,118,97,115,46,103,101,116,67,111,110,116,101,120,116,40,34,50,100,34,41,41,44,33,116,104,105,115,46,95,99,111,110,116,101,120,116,41,41,114,101,116,117,114,110,59,108,101,116,32,116,61,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,46,103,101,116,95,112,105,120,101,108,95,98,117,102,102,101,114,40,41,44,101,61,116,104,105,115,46,95,99,97,110,118,97,115,46,119,105,100,116,104,44,114,61,116,104,105,115,46,95,99,97,110,118,97,115,46,104,101,105,103,104,116,44,111,61,101,42,114,42,88,59,105,102,40,116,46,98,121,116,101,76,101,110,103,116,104,33,61,61,111,41,123,116,104,105,115,46,95,108,97,115,116,69,120,112,101,99,116,101,100,66,117,102,102,101,114,83,105,122,101,61,61,61,111,63,116,104,105,115,46,95,98,117,102,102,101,114,77,105,115,109,97,116,99,104,67,111,117,110,116,43,61,49,58,40,116,104,105,115,46,95,98,117,102,102,101,114,77,105,115,109,97,116,99,104,67,111,117,110,116,61,49,44,116,104,105,115,46,95,108,97,115,116,69,120,112,101,99,116,101,100,66,117,102,102,101,114,83,105,122,101,61,111,41,44,116,104,105,115,46,95,98,117,102,102,101,114,77,105,115,109,97,116,99,104,67,111,117,110,116,61,61,61,49,48,38,38,99,111,110,115,111,108,101,46,119,97,114,110,40,96,91,100,111,116,108,111,116,116,105,101,45,119,101,98,93,32,80,101,114,115,105,115,116,101,110,116,32,98,117,102,102,101,114,32,115,105,122,101,32,109,105,115,109,97,116,99,104,32,100,101,116,101,99,116,101,100,46,32,69,120,112,101,99,116,101,100,32,36,123,111,125,32,98,121,116,101,115,32,102,111,114,32,99,97,110,118,97,115,32,36,123,101,125,120,36,123,114,125,44,32,98,117,116,32,103,111,116,32,36,123,116,46,98,121,116,101,76,101,110,103,116,104,125,32,98,121,116,101,115,46,32,84,104,105,115,32,109,97,121,32,105,110,100,105,99,97,116,101,32,97,32,87,65,83,77,32,109,101,109,111,114,121,32,97,108,108,111,99,97,116,105,111,110,32,105,115,115,117,101,32,111,114,32,105,110,118,97,108,105,100,32,99,97,110,118,97,115,32,100,105,109,101,110,115,105,111,110,115,46,96,41,59,114,101,116,117,114,110,125,116,104,105,115,46,95,98,117,102,102,101,114,77,105,115,109,97,116,99,104,67,111,117,110,116,61,48,44,116,104,105,115,46,95,108,97,115,116,69,120,112,101,99,116,101,100,66,117,102,102,101,114,83,105,122,101,61,111,59,108,101,116,32,105,61,116,104,105,115,46,95,99,97,99,104,101,100,73,109,97,103,101,68,97,116,97,59,105,102,40,33,40,105,33,61,61,110,117,108,108,38,38,105,46,119,105,100,116,104,61,61,61,101,38,38,105,46,104,101,105,103,104,116,61,61,61,114,38,38,105,46,100,97,116,97,46,98,121,116,101,76,101,110,103,116,104,61,61,61,111,38,38,116,104,105,115,46,95,99,97,99,104,101,100,73,109,97,103,101,68,97,116,97,66,117,102,102,101,114,61,61,61,116,46,98,117,102,102,101,114,38,38,116,104,105,115,46,95,99,97,99,104,101,100,73,109,97,103,101,68,97,116,97,66,121,116,101,79,102,102,115,101,116,61,61,61,116,46,98,121,116,101,79,102,102,115,101,116,41,41,123,105,102,40,116,121,112,101,111,102,32,73,109,97,103,101,68,97,116,97,62,34,117,34,41,116,104,105,115,46,95,99,97,99,104,101,100,73,109,97,103,101,68,97,116,97,61,116,104,105,115,46,95,99,111,110,116,101,120,116,46,99,114,101,97,116,101,73,109,97,103,101,68,97,116,97,40,101,44,114,41,59,101,108,115,101,123,108,101,116,32,100,61,110,101,119,32,85,105,110,116,56,67,108,97,109,112,101,100,65,114,114,97,121,40,116,46,98,117,102,102,101,114,44,116,46,98,121,116,101,79,102,102,115,101,116,44,116,46,98,121,116,101,76,101,110,103,116,104,41,59,116,104,105,115,46,95,99,97,99,104,101,100,73,109,97,103,101,68,97,116,97,61,110,101,119,32,73,109,97,103,101,68,97,116,97,40,100,44,101,44,114,41,125,116,104,105,115,46,95,99,97,99,104,101,100,73,109,97,103,101,68,97,116,97,66,117,102,102,101,114,61,116,46,98,117,102,102,101,114,44,116,104,105,115,46,95,99,97,99,104,101,100,73,109,97,103,101,68,97,116,97,66,121,116,101,79,102,102,115,101,116,61,116,46,98,121,116,101,79,102,102,115,101,116,125,105,102,40,116,121,112,101,111,102,32,73,109,97,103,101,68,97,116,97,62,34,117,34,41,123,108,101,116,32,100,61,110,101,119,32,85,105,110,116,56,67,108,97,109,112,101,100,65,114,114,97,121,40,116,46,98,117,102,102,101,114,44,116,46,98,121,116,101,79,102,102,115,101,116,44,116,46,98,121,116,101,76,101,110,103,116,104,41,59,116,104,105,115,46,95,99,97,99,104,101,100,73,109,97,103,101,68,97,116,97,46,100,97,116,97,46,115,101,116,40,100,41,125,116,104,105,115,46,95,99,111,110,116,101,120,116,46,112,117,116,73,109,97,103,101,68,97,116,97,40,116,104,105,115,46,95,99,97,99,104,101,100,73,109,97,103,101,68,97,116,97,44,48,44,48,41,125,95,99,108,101,97,110,117,112,67,97,110,118,97,115,40,41,123,116,104,105,115,46,95,99,97,110,118,97,115,38,38,103,38,38,116,104,105,115,46,95,99,97,110,118,97,115,32,105,110,115,116,97,110,99,101,111,102,32,72,84,77,76,67,97,110,118,97,115,69,108,101,109,101,110,116,38,38,40,98,46,117,110,111,98,115,101,114,118,101,40,116,104,105,115,46,95,99,97,110,118,97,115,41,44,121,46,117,110,111,98,115,101,114,118,101,40,116,104,105,115,46,95,99,97,110,118,97,115,41,44,116,104,105,115,46,95,99,108,101,97,110,117,112,83,116,97,116,101,77,97,99,104,105,110,101,76,105,115,116,101,110,101,114,115,40,41,41,125,95,105,110,105,116,105,97,108,105,122,101,67,97,110,118,97,115,40,41,123,116,104,105,115,46,95,115,101,116,117,112,82,101,110,100,101,114,101,114,79,110,67,97,110,118,97,115,40,41,44,116,104,105,115,46,95,99,97,110,118,97,115,38,38,103,38,38,116,104,105,115,46,95,99,97,110,118,97,115,32,105,110,115,116,97,110,99,101,111,102,32,72,84,77,76,67,97,110,118,97,115,69,108,101,109,101,110,116,38,38,116,104,105,115,46,105,115,76,111,97,100,101,100,38,38,40,116,104,105,115,46,95,114,101,110,100,101,114,67,111,110,102,105,103,46,102,114,101,101,122,101,79,110,79,102,102,115,99,114,101,101,110,38,38,40,98,46,111,98,115,101,114,118,101,40,116,104,105,115,46,95,99,97,110,118,97,115,44,116,104,105,115,41,44,82,40,116,104,105,115,46,95,99,97,110,118,97,115,41,124,124,116,104,105,115,46,102,114,101,101,122,101,40,41,41,44,116,104,105,115,46,95,114,101,110,100,101,114,67,111,110,102,105,103,46,97,117,116,111,82,101,115,105,122,101,38,38,121,46,111,98,115,101,114,118,101,40,116,104,105,115,46,95,99,97,110,118,97,115,44,116,104,105,115,41,44,116,104,105,115,46,95,105,115,83,116,97,116,101,77,97,99,104,105,110,101,82,117,110,110,105,110,103,38,38,116,104,105,115,46,95,115,101,116,117,112,83,116,97,116,101,77,97,99,104,105,110,101,76,105,115,116,101,110,101,114,115,40,41,41,44,116,104,105,115,46,95,99,97,110,118,97,115,38,38,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,38,38,116,104,105,115,46,105,115,76,111,97,100,101,100,38,38,116,104,105,115,46,95,115,101,116,117,112,84,97,114,103,101,116,40,116,104,105,115,46,95,99,97,110,118,97,115,46,119,105,100,116,104,44,116,104,105,115,46,95,99,97,110,118,97,115,46,104,101,105,103,104,116,41,38,38,40,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,46,114,101,110,100,101,114,40,41,44,116,104,105,115,46,95,100,114,97,119,40,41,41,125,95,115,101,116,117,112,82,101,110,100,101,114,101,114,79,110,67,97,110,118,97,115,40,41,123,116,104,105,115,46,95,99,111,110,116,101,120,116,61,110,117,108,108,125,95,115,116,111,112,65,110,105,109,97,116,105,111,110,76,111,111,112,40,41,123,116,104,105,115,46,95,97,110,105,109,97,116,105,111,110,70,114,97,109,101,73,100,33,61,61,110,117,108,108,38,38,40,116,104,105,115,46,95,102,114,97,109,101,77,97,110,97,103,101,114,46,99,97,110,99,101,108,65,110,105,109,97,116,105,111,110,70,114,97,109,101,40,116,104,105,115,46,95,97,110,105,109,97,116,105,111,110,70,114,97,109,101,73,100,41,44,116,104,105,115,46,95,97,110,105,109,97,116,105,111,110,70,114,97,109,101,73,100,61,110,117,108,108,41,44,116,104,105,115,46,95,108,97,115,116,70,114,97,109,101,84,105,109,101,61,110,117,108,108,125,95,115,116,97,114,116,65,110,105,109,97,116,105,111,110,76,111,111,112,40,41,123,116,104,105,115,46,95,97,110,105,109,97,116,105,111,110,70,114,97,109,101,73,100,61,61,61,110,117,108,108,38,38,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,38,38,33,116,104,105,115,46,95,105,115,70,114,111,122,101,110,38,38,40,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,46,105,115,95,112,108,97,121,105,110,103,40,41,124,124,116,104,105,115,46,95,105,115,83,116,97,116,101,77,97,99,104,105,110,101,82,117,110,110,105,110,103,41,38,38,40,116,104,105,115,46,95,97,110,105,109,97,116,105,111,110,70,114,97,109,101,73,100,61,116,104,105,115,46,95,102,114,97,109,101,77,97,110,97,103,101,114,46,114,101,113,117,101,115,116,65,110,105,109,97,116,105,111,110,70,114,97,109,101,40,116,104,105,115,46,95,98,111,117,110,100,65,110,105,109,97,116,105,111,110,76,111,111,112,41,41,125,95,97,110,105,109,97,116,105,111,110,76,111,111,112,40,116,41,123,105,102,40,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,61,61,61,110,117,108,108,41,123,116,104,105,115,46,95,115,116,111,112,65,110,105,109,97,116,105,111,110,76,111,111,112,40,41,59,114,101,116,117,114,110,125,105,102,40,33,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,46,105,115,95,112,108,97,121,105,110,103,40,41,38,38,33,116,104,105,115,46,95,105,115,83,116,97,116,101,77,97,99,104,105,110,101,82,117,110,110,105,110,103,41,123,116,104,105,115,46,95,115,116,111,112,65,110,105,109,97,116,105,111,110,76,111,111,112,40,41,59,114,101,116,117,114,110,125,116,114,121,123,108,101,116,32,101,61,116,104,105,115,46,95,108,97,115,116,70,114,97,109,101,84,105,109,101,33,61,61,110,117,108,108,63,116,45,116,104,105,115,46,95,108,97,115,116,70,114,97,109,101,84,105,109,101,58,48,59,116,104,105,115,46,95,108,97,115,116,70,114,97,109,101,84,105,109,101,61,116,59,108,101,116,32,114,61,116,104,105,115,46,95,105,115,83,116,97,116,101,77,97,99,104,105,110,101,82,117,110,110,105,110,103,63,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,46,115,109,95,116,105,99,107,40,101,41,58,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,46,116,105,99,107,40,101,41,59,116,104,105,115,46,95,105,115,83,116,97,116,101,77,97,99,104,105,110,101,82,117,110,110,105,110,103,63,116,104,105,115,46,95,100,114,97,105,110,83,109,69,118,101,110,116,115,40,41,58,116,104,105,115,46,95,100,114,97,105,110,80,108,97,121,101,114,69,118,101,110,116,115,40,41,44,114,38,38,116,104,105,115,46,95,100,114,97,119,40,41,44,116,104,105,115,46,95,97,110,105,109,97,116,105,111,110,70,114,97,109,101,73,100,61,116,104,105,115,46,95,102,114,97,109,101,77,97,110,97,103,101,114,46,114,101,113,117,101,115,116,65,110,105,109,97,116,105,111,110,70,114,97,109,101,40,116,104,105,115,46,95,98,111,117,110,100,65,110,105,109,97,116,105,111,110,76,111,111,112,41,125,99,97,116,99,104,40,101,41,123,99,111,110,115,111,108,101,46,101,114,114,111,114,40,34,69,114,114,111,114,32,105,110,32,97,110,105,109,97,116,105,111,110,32,102,114,97,109,101,58,34,44,101,41,44,116,104,105,115,46,95,101,118,101,110,116,77,97,110,97,103,101,114,46,100,105,115,112,97,116,99,104,40,123,116,121,112,101,58,34,114,101,110,100,101,114,69,114,114,111,114,34,44,101,114,114,111,114,58,101,125,41,44,101,32,105,110,115,116,97,110,99,101,111,102,32,87,101,98,65,115,115,101,109,98,108,121,46,82,117,110,116,105,109,101,69,114,114,111,114,38,38,116,104,105,115,46,100,101,115,116,114,111,121,40,41,125,125,112,108,97,121,40,41,123,105,102,40,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,61,61,61,110,117,108,108,124,124,33,116,104,105,115,46,105,115,76,111,97,100,101,100,41,114,101,116,117,114,110,59,116,104,105,115,46,95,115,116,111,112,65,110,105,109,97,116,105,111,110,76,111,111,112,40,41,59,108,101,116,32,116,61,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,46,112,108,97,121,40,41,59,116,104,105,115,46,95,100,114,97,105,110,80,108,97,121,101,114,69,118,101,110,116,115,40,41,44,40,116,124,124,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,46,105,115,95,112,108,97,121,105,110,103,40,41,41,38,38,40,116,104,105,115,46,95,105,115,70,114,111,122,101,110,61,33,49,44,116,104,105,115,46,95,115,116,97,114,116,65,110,105,109,97,116,105,111,110,76,111,111,112,40,41,41,44,116,104,105,115,46,95,99,97,110,118,97,115,38,38,103,38,38,116,104,105,115,46,95,99,97,110,118,97,115,32,105,110,115,116,97,110,99,101,111,102,32,72,84,77,76,67,97,110,118,97,115,69,108,101,109,101,110,116,38,38,116,104,105,115,46,95,114,101,110,100,101,114,67,111,110,102,105,103,46,102,114,101,101,122,101,79,110,79,102,102,115,99,114,101,101,110,38,38,33,82,40,116,104,105,115,46,95,99,97,110,118,97,115,41,38,38,116,104,105,115,46,102,114,101,101,122,101,40,41,125,112,97,117,115,101,40,41,123,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,33,61,61,110,117,108,108,38,38,40,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,46,112,97,117,115,101,40,41,44,116,104,105,115,46,95,100,114,97,105,110,80,108,97,121,101,114,69,118,101,110,116,115,40,41,44,116,104,105,115,46,95,115,116,111,112,65,110,105,109,97,116,105,111,110,76,111,111,112,40,41,41,125,115,116,111,112,40,41,123,105,102,40,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,61,61,61,110,117,108,108,41,114,101,116,117,114,110,59,108,101,116,32,116,61,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,46,115,116,111,112,40,41,59,116,104,105,115,46,95,100,114,97,105,110,80,108,97,121,101,114,69,118,101,110,116,115,40,41,44,116,104,105,115,46,95,115,116,111,112,65,110,105,109,97,116,105,111,110,76,111,111,112,40,41,44,116,38,38,40,116,104,105,115,46,95,101,118,101,110,116,77,97,110,97,103,101,114,46,100,105,115,112,97,116,99,104,40,123,116,121,112,101,58,34,102,114,97,109,101,34,44,99,117,114,114,101,110,116,70,114,97,109,101,58,116,104,105,115,46,99,117,114,114,101,110,116,70,114,97,109,101,125,41,44,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,46,114,101,110,100,101,114,40,41,44,116,104,105,115,46,95,100,114,97,119,40,41,41,125,115,101,116,70,114,97,109,101,40,116,41,123,105,102,40,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,61,61,61,110,117,108,108,41,114,101,116,117,114,110,59,105,102,40,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,46,115,101,116,95,102,114,97,109,101,40,116,41,41,123,108,101,116,32,114,61,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,46,114,101,110,100,101,114,40,41,59,116,104,105,115,46,95,100,114,97,105,110,80,108,97,121,101,114,69,118,101,110,116,115,40,41,44,114,38,38,116,104,105,115,46,95,100,114,97,119,40,41,125,125,115,101,116,83,112,101,101,100,40,116,41,123,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,33,61,61,110,117,108,108,38,38,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,46,115,101,116,95,115,112,101,101,100,40,116,41,125,115,101,116,66,97,99,107,103,114,111,117,110,100,67,111,108,111,114,40,116,41,123,105,102,40,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,33,61,61,110,117,108,108,41,123,105,102,40,103,38,38,116,104,105,115,46,95,99,97,110,118,97,115,32,105,110,115,116,97,110,99,101,111,102,32,72,84,77,76,67,97,110,118,97,115,69,108,101,109,101,110,116,41,116,104,105,115,46,95,99,97,110,118,97,115,46,115,116,121,108,101,46,98,97,99,107,103,114,111,117,110,100,67,111,108,111,114,61,116,59,101,108,115,101,123,108,101,116,91,101,44,114,44,111,44,105,93,61,115,116,40,116,41,59,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,46,115,101,116,95,98,97,99,107,103,114,111,117,110,100,40,101,44,114,44,111,44,105,41,125,116,104,105,115,46,95,98,97,99,107,103,114,111,117,110,100,67,111,108,111,114,61,116,125,125,115,101,116,76,111,111,112,40,116,41,123,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,33,61,61,110,117,108,108,38,38,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,46,115,101,116,95,108,111,111,112,40,116,41,125,115,101,116,76,111,111,112,67,111,117,110,116,40,116,41,123,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,33,61,61,110,117,108,108,38,38,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,46,115,101,116,95,108,111,111,112,95,99,111,117,110,116,40,116,41,125,115,101,116,85,115,101,70,114,97,109,101,73,110,116,101,114,112,111,108,97,116,105,111,110,40,116,41,123,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,33,61,61,110,117,108,108,38,38,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,46,115,101,116,95,117,115,101,95,102,114,97,109,101,95,105,110,116,101,114,112,111,108,97,116,105,111,110,40,116,41,125,97,100,100,69,118,101,110,116,76,105,115,116,101,110,101,114,40,116,44,101,41,123,116,104,105,115,46,95,101,118,101,110,116,77,97,110,97,103,101,114,46,97,100,100,69,118,101,110,116,76,105,115,116,101,110,101,114,40,116,44,101,41,125,114,101,109,111,118,101,69,118,101,110,116,76,105,115,116,101,110,101,114,40,116,44,101,41,123,116,104,105,115,46,95,101,118,101,110,116,77,97,110,97,103,101,114,46,114,101,109,111,118,101,69,118,101,110,116,76,105,115,116,101,110,101,114,40,116,44,101,41,125,100,101,115,116,114,111,121,40,41,123,116,104,105,115,46,95,115,116,111,112,65,110,105,109,97,116,105,111,110,76,111,111,112,40,41,44,116,104,105,115,46,95,105,115,83,116,97,116,101,77,97,99,104,105,110,101,82,117,110,110,105,110,103,61,33,49,44,116,104,105,115,46,95,99,108,101,97,110,117,112,67,97,110,118,97,115,40,41,59,108,101,116,32,116,61,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,59,105,102,40,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,61,110,117,108,108,44,116,104,105,115,46,95,99,111,110,116,101,120,116,61,110,117,108,108,44,116,41,116,114,121,123,116,46,102,114,101,101,40,41,125,99,97,116,99,104,40,101,41,123,99,111,110,115,111,108,101,46,119,97,114,110,40,34,91,100,111,116,108,111,116,116,105,101,45,119,101,98,93,32,69,114,114,111,114,32,102,114,101,101,105,110,103,32,119,97,115,109,32,99,111,114,101,32,100,117,114,105,110,103,32,100,101,115,116,114,111,121,58,34,44,101,41,125,116,104,105,115,46,95,101,118,101,110,116,77,97,110,97,103,101,114,46,100,105,115,112,97,116,99,104,40,123,116,121,112,101,58,34,100,101,115,116,114,111,121,34,125,41,44,116,104,105,115,46,95,101,118,101,110,116,77,97,110,97,103,101,114,46,114,101,109,111,118,101,65,108,108,69,118,101,110,116,76,105,115,116,101,110,101,114,115,40,41,44,116,104,105,115,46,95,99,108,101,97,110,117,112,83,116,97,116,101,77,97,99,104,105,110,101,76,105,115,116,101,110,101,114,115,40,41,125,102,114,101,101,122,101,40,41,123,116,104,105,115,46,95,97,110,105,109,97,116,105,111,110,70,114,97,109,101,73,100,33,61,61,110,117,108,108,38,38,40,116,104,105,115,46,95,115,116,111,112,65,110,105,109,97,116,105,111,110,76,111,111,112,40,41,44,116,104,105,115,46,95,105,115,70,114,111,122,101,110,61,33,48,44,116,104,105,115,46,95,101,118,101,110,116,77,97,110,97,103,101,114,46,100,105,115,112,97,116,99,104,40,123,116,121,112,101,58,34,102,114,101,101,122,101,34,125,41,41,125,117,110,102,114,101,101,122,101,40,41,123,116,104,105,115,46,95,97,110,105,109,97,116,105,111,110,70,114,97,109,101,73,100,61,61,61,110,117,108,108,38,38,40,116,104,105,115,46,95,105,115,70,114,111,122,101,110,61,33,49,44,116,104,105,115,46,95,101,118,101,110,116,77,97,110,97,103,101,114,46,100,105,115,112,97,116,99,104,40,123,116,121,112,101,58,34,117,110,102,114,101,101,122,101,34,125,41,44,116,104,105,115,46,95,115,116,97,114,116,65,110,105,109,97,116,105,111,110,76,111,111,112,40,41,41,125,114,101,115,105,122,101,40,41,123,105,102,40,33,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,124,124,33,116,104,105,115,46,105,115,76,111,97,100,101,100,124,124,33,116,104,105,115,46,95,99,97,110,118,97,115,41,114,101,116,117,114,110,59,105,102,40,103,38,38,116,104,105,115,46,95,99,97,110,118,97,115,32,105,110,115,116,97,110,99,101,111,102,32,72,84,77,76,67,97,110,118,97,115,69,108,101,109,101,110,116,41,123,108,101,116,32,101,61,116,104,105,115,46,95,114,101,110,100,101,114,67,111,110,102,105,103,46,100,101,118,105,99,101,80,105,120,101,108,82,97,116,105,111,124,124,119,105,110,100,111,119,46,100,101,118,105,99,101,80,105,120,101,108,82,97,116,105,111,124,124,49,44,123,104,101,105,103,104,116,58,114,44,119,105,100,116,104,58,111,125,61,116,104,105,115,46,95,99,97,110,118,97,115,46,103,101,116,66,111,117,110,100,105,110,103,67,108,105,101,110,116,82,101,99,116,40,41,59,114,33,61,61,48,38,38,111,33,61,61,48,38,38,40,116,104,105,115,46,95,99,97,110,118,97,115,46,119,105,100,116,104,61,111,42,101,44,116,104,105,115,46,95,99,97,110,118,97,115,46,104,101,105,103,104,116,61,114,42,101,41,125,116,104,105,115,46,95,115,101,116,117,112,84,97,114,103,101,116,40,116,104,105,115,46,95,99,97,110,118,97,115,46,119,105,100,116,104,44,116,104,105,115,46,95,99,97,110,118,97,115,46,104,101,105,103,104,116,41,38,38,40,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,46,114,101,110,100,101,114,40,41,44,116,104,105,115,46,95,100,114,97,119,40,41,41,125,115,101,116,67,97,110,118,97,115,40,116,41,123,105,102,40,33,40,33,116,124,124,116,104,105,115,46,95,99,97,110,118,97,115,61,61,61,116,41,38,38,40,116,104,105,115,46,95,99,97,110,118,97,115,38,38,116,104,105,115,46,95,99,108,101,97,110,117,112,67,97,110,118,97,115,40,41,44,116,104,105,115,46,95,99,97,110,118,97,115,61,116,44,116,104,105,115,46,95,105,110,105,116,105,97,108,105,122,101,67,97,110,118,97,115,40,41,44,116,104,105,115,46,95,112,101,110,100,105,110,103,76,111,97,100,41,41,123,108,101,116,32,101,61,116,104,105,115,46,95,112,101,110,100,105,110,103,76,111,97,100,59,116,104,105,115,46,95,112,101,110,100,105,110,103,76,111,97,100,61,110,117,108,108,44,101,46,100,97,116,97,63,116,104,105,115,46,95,108,111,97,100,70,114,111,109,68,97,116,97,40,101,46,100,97,116,97,41,58,101,46,115,114,99,38,38,116,104,105,115,46,95,108,111,97,100,70,114,111,109,83,114,99,40,101,46,115,114,99,41,125,125,115,101,116,84,114,97,110,115,102,111,114,109,40,116,41,123,105,102,40,33,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,41,114,101,116,117,114,110,33,49,59,108,101,116,32,101,61,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,46,115,101,116,95,116,114,97,110,115,102,111,114,109,40,110,101,119,32,70,108,111,97,116,51,50,65,114,114,97,121,40,116,41,41,59,114,101,116,117,114,110,32,101,38,38,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,46,114,101,110,100,101,114,40,41,38,38,116,104,105,115,46,95,100,114,97,119,40,41,44,101,125,103,101,116,84,114,97,110,115,102,111,114,109,40,41,123,105,102,40,33,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,41,114,101,116,117,114,110,59,108,101,116,32,116,61,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,46,103,101,116,95,116,114,97,110,115,102,111,114,109,40,41,59,114,101,116,117,114,110,32,65,114,114,97,121,46,102,114,111,109,40,116,41,125,115,101,116,83,101,103,109,101,110,116,40,116,44,101,41,123,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,33,61,61,110,117,108,108,38,38,40,116,104,105,115,46,95,115,101,103,109,101,110,116,61,91,116,44,101,93,44,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,46,115,101,116,95,115,101,103,109,101,110,116,40,116,44,101,41,41,125,114,101,115,101,116,83,101,103,109,101,110,116,40,41,123,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,33,61,61,110,117,108,108,38,38,40,116,104,105,115,46,95,115,101,103,109,101,110,116,61,110,117,108,108,44,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,46,99,108,101,97,114,95,115,101,103,109,101,110,116,40,41,41,125,115,101,116,77,111,100,101,40,116,41,123,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,33,61,61,110,117,108,108,38,38,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,46,115,101,116,95,109,111,100,101,40,72,40,116,41,41,125,115,101,116,82,101,110,100,101,114,67,111,110,102,105,103,40,116,41,123,108,101,116,123,100,101,118,105,99,101,80,105,120,101,108,82,97,116,105,111,58,101,44,102,114,101,101,122,101,79,110,79,102,102,115,99,114,101,101,110,58,114,44,113,117,97,108,105,116,121,58,111,44,46,46,46,105,125,61,116,59,116,104,105,115,46,95,114,101,110,100,101,114,67,111,110,102,105,103,61,123,46,46,46,116,104,105,115,46,95,114,101,110,100,101,114,67,111,110,102,105,103,44,46,46,46,105,44,100,101,118,105,99,101,80,105,120,101,108,82,97,116,105,111,58,101,124,124,87,40,41,44,102,114,101,101,122,101,79,110,79,102,102,115,99,114,101,101,110,58,114,63,63,33,48,44,46,46,46,111,33,61,61,118,111,105,100,32,48,38,38,123,113,117,97,108,105,116,121,58,111,125,125,44,111,33,61,61,118,111,105,100,32,48,38,38,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,38,38,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,46,115,101,116,95,113,117,97,108,105,116,121,40,111,41,44,103,38,38,116,104,105,115,46,95,99,97,110,118,97,115,32,105,110,115,116,97,110,99,101,111,102,32,72,84,77,76,67,97,110,118,97,115,69,108,101,109,101,110,116,38,38,40,116,104,105,115,46,95,114,101,110,100,101,114,67,111,110,102,105,103,46,97,117,116,111,82,101,115,105,122,101,63,121,46,111,98,115,101,114,118,101,40,116,104,105,115,46,95,99,97,110,118,97,115,44,116,104,105,115,41,58,121,46,117,110,111,98,115,101,114,118,101,40,116,104,105,115,46,95,99,97,110,118,97,115,41,44,116,104,105,115,46,95,114,101,110,100,101,114,67,111,110,102,105,103,46,102,114,101,101,122,101,79,110,79,102,102,115,99,114,101,101,110,63,40,98,46,111,98,115,101,114,118,101,40,116,104,105,115,46,95,99,97,110,118,97,115,44,116,104,105,115,41,44,82,40,116,104,105,115,46,95,99,97,110,118,97,115,41,124,124,116,104,105,115,46,102,114,101,101,122,101,40,41,41,58,40,98,46,117,110,111,98,115,101,114,118,101,40,116,104,105,115,46,95,99,97,110,118,97,115,41,44,116,104,105,115,46,95,105,115,70,114,111,122,101,110,38,38,116,104,105,115,46,117,110,102,114,101,101,122,101,40,41,41,41,125,108,111,97,100,65,110,105,109,97,116,105,111,110,40,116,41,123,105,102,40,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,61,61,61,110,117,108,108,124,124,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,46,97,110,105,109,97,116,105,111,110,95,105,100,40,41,61,61,61,116,124,124,33,116,104,105,115,46,95,99,97,110,118,97,115,41,114,101,116,117,114,110,59,116,104,105,115,46,95,115,101,116,117,112,84,97,114,103,101,116,40,116,104,105,115,46,95,99,97,110,118,97,115,46,119,105,100,116,104,44,116,104,105,115,46,95,99,97,110,118,97,115,46,104,101,105,103,104,116,41,44,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,46,108,111,97,100,95,97,110,105,109,97,116,105,111,110,95,102,114,111,109,95,105,100,40,116,41,63,40,116,104,105,115,46,95,114,101,110,100,101,114,67,111,110,102,105,103,46,113,117,97,108,105,116,121,33,61,61,118,111,105,100,32,48,38,38,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,46,115,101,116,95,113,117,97,108,105,116,121,40,116,104,105,115,46,95,114,101,110,100,101,114,67,111,110,102,105,103,46,113,117,97,108,105,116,121,41,44,116,104,105,115,46,114,101,115,105,122,101,40,41,44,116,104,105,115,46,95,100,114,97,105,110,80,108,97,121,101,114,69,118,101,110,116,115,40,41,44,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,46,114,101,110,100,101,114,40,41,44,116,104,105,115,46,95,100,114,97,119,40,41,41,58,116,104,105,115,46,95,100,105,115,112,97,116,99,104,69,114,114,111,114,40,96,70,97,105,108,101,100,32,116,111,32,108,111,97,100,32,97,110,105,109,97,116,105,111,110,32,119,105,116,104,32,105,100,58,32,36,123,116,125,96,41,125,115,101,116,77,97,114,107,101,114,40,116,41,123,105,102,40,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,61,61,61,110,117,108,108,41,114,101,116,117,114,110,59,116,104,105,115,46,109,97,114,107,101,114,115,40,41,46,115,111,109,101,40,111,61,62,111,46,110,97,109,101,61,61,61,116,41,63,40,116,104,105,115,46,95,109,97,114,107,101,114,61,116,44,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,46,115,101,116,95,109,97,114,107,101,114,40,116,41,41,58,40,116,104,105,115,46,95,109,97,114,107,101,114,61,34,34,44,116,104,105,115,46,95,115,101,103,109,101,110,116,61,110,117,108,108,44,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,46,99,108,101,97,114,95,109,97,114,107,101,114,40,41,44,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,46,99,108,101,97,114,95,115,101,103,109,101,110,116,40,41,41,125,109,97,114,107,101,114,115,40,41,123,108,101,116,32,116,61,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,63,46,109,97,114,107,101,114,115,40,41,59,114,101,116,117,114,110,32,116,38,38,65,114,114,97,121,46,105,115,65,114,114,97,121,40,116,41,63,116,58,91,93,125,115,101,116,84,104,101,109,101,40,116,41,123,105,102,40,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,61,61,61,110,117,108,108,41,114,101,116,117,114,110,33,49,59,108,101,116,32,101,61,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,46,115,101,116,95,116,104,101,109,101,40,116,41,59,114,101,116,117,114,110,32,101,38,38,40,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,46,114,101,110,100,101,114,40,41,44,116,104,105,115,46,95,100,114,97,119,40,41,41,44,101,125,114,101,115,101,116,84,104,101,109,101,40,41,123,105,102,40,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,61,61,61,110,117,108,108,41,114,101,116,117,114,110,33,49,59,108,101,116,32,116,61,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,46,114,101,115,101,116,95,116,104,101,109,101,40,41,59,114,101,116,117,114,110,32,116,38,38,40,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,46,114,101,110,100,101,114,40,41,44,116,104,105,115,46,95,100,114,97,119,40,41,41,44,116,125,115,101,116,84,104,101,109,101,68,97,116,97,40,116,41,123,105,102,40,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,61,61,61,110,117,108,108,41,114,101,116,117,114,110,33,49,59,108,101,116,32,101,61,116,121,112,101,111,102,32,116,61,61,34,115,116,114,105,110,103,34,63,116,58,74,83,79,78,46,115,116,114,105,110,103,105,102,121,40,116,41,44,114,61,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,46,115,101,116,95,116,104,101,109,101,95,100,97,116,97,40,101,41,59,114,101,116,117,114,110,32,114,38,38,40,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,46,114,101,110,100,101,114,40,41,44,116,104,105,115,46,95,100,114,97,119,40,41,41,44,114,125,115,101,116,83,108,111,116,115,40,116,41,123,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,33,61,61,110,117,108,108,38,38,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,46,115,101,116,95,115,108,111,116,115,95,115,116,114,40,74,83,79,78,46,115,116,114,105,110,103,105,102,121,40,116,41,41,38,38,40,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,46,114,101,110,100,101,114,40,41,44,116,104,105,115,46,95,100,114,97,119,40,41,41,125,95,105,115,75,101,121,102,114,97,109,101,65,114,114,97,121,40,116,41,123,114,101,116,117,114,110,32,65,114,114,97,121,46,105,115,65,114,114,97,121,40,116,41,38,38,116,46,108,101,110,103,116,104,62,48,38,38,116,121,112,101,111,102,32,116,91,48,93,61,61,34,111,98,106,101,99,116,34,38,38,116,91,48,93,33,61,61,110,117,108,108,38,38,34,116,34,105,110,32,116,91,48,93,38,38,34,115,34,105,110,32,116,91,48,93,125,103,101,116,83,108,111,116,73,100,115,40,41,123,105,102,40,33,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,41,114,101,116,117,114,110,91,93,59,108,101,116,32,116,61,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,46,103,101,116,95,115,108,111,116,95,105,100,115,40,41,59,114,101,116,117,114,110,32,65,114,114,97,121,46,105,115,65,114,114,97,121,40,116,41,63,116,58,91,93,125,103,101,116,83,108,111,116,84,121,112,101,40,116,41,123,105,102,40,33,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,41,114,101,116,117,114,110,59,108,101,116,32,101,61,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,46,103,101,116,95,115,108,111,116,95,116,121,112,101,40,116,41,59,105,102,40,101,41,114,101,116,117,114,110,32,101,125,103,101,116,83,108,111,116,40,116,41,123,105,102,40,33,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,41,114,101,116,117,114,110,59,108,101,116,32,101,61,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,46,103,101,116,95,115,108,111,116,95,115,116,114,40,116,41,59,105,102,40,101,41,116,114,121,123,114,101,116,117,114,110,32,74,83,79,78,46,112,97,114,115,101,40,101,41,125,99,97,116,99,104,123,114,101,116,117,114,110,125,125,103,101,116,83,108,111,116,115,40,41,123,105,102,40,33,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,41,114,101,116,117,114,110,123,125,59,116,114,121,123,114,101,116,117,114,110,32,74,83,79,78,46,112,97,114,115,101,40,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,46,103,101,116,95,115,108,111,116,115,95,115,116,114,40,41,41,125,99,97,116,99,104,123,114,101,116,117,114,110,123,125,125,125,115,101,116,67,111,108,111,114,83,108,111,116,40,116,44,101,41,123,105,102,40,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,61,61,61,110,117,108,108,41,114,101,116,117,114,110,33,49,59,108,101,116,32,114,61,116,104,105,115,46,95,105,115,75,101,121,102,114,97,109,101,65,114,114,97,121,40,101,41,44,111,61,74,83,79,78,46,115,116,114,105,110,103,105,102,121,40,123,97,58,114,63,49,58,48,44,107,58,101,125,41,44,105,61,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,46,115,101,116,95,115,108,111,116,95,115,116,114,40,116,44,111,41,59,114,101,116,117,114,110,32,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,46,114,101,110,100,101,114,40,41,44,116,104,105,115,46,95,100,114,97,119,40,41,44,105,125,115,101,116,83,99,97,108,97,114,83,108,111,116,40,116,44,101,41,123,105,102,40,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,61,61,61,110,117,108,108,41,114,101,116,117,114,110,33,49,59,108,101,116,32,111,61,74,83,79,78,46,115,116,114,105,110,103,105,102,121,40,123,97,58,116,121,112,101,111,102,32,101,33,61,34,110,117,109,98,101,114,34,63,49,58,48,44,107,58,101,125,41,44,105,61,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,46,115,101,116,95,115,108,111,116,95,115,116,114,40,116,44,111,41,59,114,101,116,117,114,110,32,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,46,114,101,110,100,101,114,40,41,44,116,104,105,115,46,95,100,114,97,119,40,41,44,105,125,115,101,116,86,101,99,116,111,114,83,108,111,116,40,116,44,101,41,123,105,102,40,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,61,61,61,110,117,108,108,41,114,101,116,117,114,110,33,49,59,108,101,116,32,114,61,116,104,105,115,46,95,105,115,75,101,121,102,114,97,109,101,65,114,114,97,121,40,101,41,44,111,61,74,83,79,78,46,115,116,114,105,110,103,105,102,121,40,123,97,58,114,63,49,58,48,44,107,58,101,125,41,44,105,61,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,46,115,101,116,95,115,108,111,116,95,115,116,114,40,116,44,111,41,59,114,101,116,117,114,110,32,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,46,114,101,110,100,101,114,40,41,44,116,104,105,115,46,95,100,114,97,119,40,41,44,105,125,115,101,116,71,114,97,100,105,101,110,116,83,108,111,116,40,116,44,101,44,114,41,123,105,102,40,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,61,61,61,110,117,108,108,41,114,101,116,117,114,110,33,49,59,108,101,116,32,111,61,116,104,105,115,46,95,105,115,75,101,121,102,114,97,109,101,65,114,114,97,121,40,101,41,44,105,61,74,83,79,78,46,115,116,114,105,110,103,105,102,121,40,123,107,58,123,97,58,111,63,49,58,48,44,107,58,101,125,44,112,58,114,125,41,44,99,61,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,46,115,101,116,95,115,108,111,116,95,115,116,114,40,116,44,105,41,59,114,101,116,117,114,110,32,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,46,114,101,110,100,101,114,40,41,44,116,104,105,115,46,95,100,114,97,119,40,41,44,99,125,115,101,116,84,101,120,116,83,108,111,116,40,116,44,101,41,123,105,102,40,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,61,61,61,110,117,108,108,41,114,101,116,117,114,110,33,49,59,108,101,116,32,114,61,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,46,103,101,116,95,115,108,111,116,95,115,116,114,40,116,41,44,111,61,101,59,105,102,40,114,41,123,108,101,116,32,100,61,74,83,79,78,46,112,97,114,115,101,40,114,41,59,105,102,40,100,38,38,34,107,34,105,110,32,100,38,38,65,114,114,97,121,46,105,115,65,114,114,97,121,40,100,46,107,41,41,123,108,101,116,32,104,61,100,46,107,91,48,93,59,34,115,34,105,110,32,104,38,38,116,121,112,101,111,102,32,104,46,115,61,61,34,111,98,106,101,99,116,34,38,38,40,111,61,123,46,46,46,104,46,115,44,46,46,46,101,125,41,125,125,108,101,116,32,105,61,74,83,79,78,46,115,116,114,105,110,103,105,102,121,40,123,97,58,48,44,107,58,91,123,116,58,48,44,115,58,111,125,93,125,41,44,99,61,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,46,115,101,116,95,115,108,111,116,95,115,116,114,40,116,44,105,41,59,114,101,116,117,114,110,32,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,46,114,101,110,100,101,114,40,41,44,116,104,105,115,46,95,100,114,97,119,40,41,44,99,125,114,101,115,101,116,83,108,111,116,40,116,41,123,105,102,40,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,61,61,61,110,117,108,108,41,114,101,116,117,114,110,33,49,59,108,101,116,32,101,61,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,46,114,101,115,101,116,95,115,108,111,116,40,116,41,59,114,101,116,117,114,110,32,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,46,114,101,110,100,101,114,40,41,44,116,104,105,115,46,95,100,114,97,119,40,41,44,101,125,99,108,101,97,114,83,108,111,116,40,116,41,123,105,102,40,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,61,61,61,110,117,108,108,41,114,101,116,117,114,110,33,49,59,108,101,116,32,101,61,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,46,99,108,101,97,114,95,115,108,111,116,40,116,41,59,114,101,116,117,114,110,32,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,46,114,101,110,100,101,114,40,41,44,116,104,105,115,46,95,100,114,97,119,40,41,44,101,125,114,101,115,101,116,83,108,111,116,115,40,41,123,105,102,40,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,61,61,61,110,117,108,108,41,114,101,116,117,114,110,33,49,59,108,101,116,32,116,61,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,46,114,101,115,101,116,95,115,108,111,116,115,40,41,59,114,101,116,117,114,110,32,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,46,114,101,110,100,101,114,40,41,44,116,104,105,115,46,95,100,114,97,119,40,41,44,116,125,99,108,101,97,114,83,108,111,116,115,40,41,123,105,102,40,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,61,61,61,110,117,108,108,41,114,101,116,117,114,110,33,49,59,108,101,116,32,116,61,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,46,99,108,101,97,114,95,115,108,111,116,115,40,41,59,114,101,116,117,114,110,32,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,46,114,101,110,100,101,114,40,41,44,116,104,105,115,46,95,100,114,97,119,40,41,44,116,125,115,101,116,76,97,121,111,117,116,40,116,41,123,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,33,61,61,110,117,108,108,38,38,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,46,115,101,116,95,108,97,121,111,117,116,40,116,46,102,105,116,63,63,34,99,111,110,116,97,105,110,34,44,116,46,97,108,105,103,110,63,46,91,48,93,63,63,46,53,44,116,46,97,108,105,103,110,63,46,91,49,93,63,63,46,53,41,125,115,101,116,86,105,101,119,112,111,114,116,40,116,44,101,44,114,44,111,41,123,114,101,116,117,114,110,32,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,61,61,61,110,117,108,108,63,33,49,58,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,46,115,101,116,95,118,105,101,119,112,111,114,116,40,116,44,101,44,114,44,111,41,125,115,116,97,116,105,99,32,115,101,116,87,97,115,109,85,114,108,40,116,41,123,71,46,115,101,116,87,97,115,109,85,114,108,40,116,41,125,115,116,97,116,105,99,32,97,115,121,110,99,32,114,101,103,105,115,116,101,114,70,111,110,116,40,116,44,101,41,123,116,114,121,123,97,119,97,105,116,32,71,46,108,111,97,100,40,41,59,108,101,116,32,114,59,105,102,40,116,121,112,101,111,102,32,101,61,61,34,115,116,114,105,110,103,34,41,123,108,101,116,32,105,61,97,119,97,105,116,32,102,101,116,99,104,40,101,41,59,105,102,40,33,105,46,111,107,41,114,101,116,117,114,110,32,99,111,110,115,111,108,101,46,101,114,114,111,114,40,96,70,97,105,108,101,100,32,116,111,32,102,101,116,99,104,32,102,111,110,116,32,102,114,111,109,32,85,82,76,58,32,36,123,101,125,46,32,83,116,97,116,117,115,58,32,36,123,105,46,115,116,97,116,117,115,125,96,41,44,33,49,59,114,61,110,101,119,32,85,105,110,116,56,65,114,114,97,121,40,97,119,97,105,116,32,105,46,97,114,114,97,121,66,117,102,102,101,114,40,41,41,125,101,108,115,101,32,101,32,105,110,115,116,97,110,99,101,111,102,32,85,105,110,116,56,65,114,114,97,121,63,114,61,101,58,114,61,110,101,119,32,85,105,110,116,56,65,114,114,97,121,40,101,41,59,108,101,116,32,111,61,116,116,40,116,44,114,41,59,114,101,116,117,114,110,32,111,124,124,99,111,110,115,111,108,101,46,101,114,114,111,114,40,96,70,97,105,108,101,100,32,116,111,32,114,101,103,105,115,116,101,114,32,102,111,110,116,32,34,36,123,116,125,34,46,32,70,111,110,116,32,100,97,116,97,32,109,97,121,32,98,101,32,105,110,118,97,108,105,100,46,96,41,44,111,125,99,97,116,99,104,40,114,41,123,114,101,116,117,114,110,32,99,111,110,115,111,108,101,46,101,114,114,111,114,40,96,69,114,114,111,114,32,114,101,103,105,115,116,101,114,105,110,103,32,102,111,110,116,32,34,36,123,116,125,34,58,96,44,114,41,44,33,49,125,125,97,110,105,109,97,116,105,111,110,83,105,122,101,40,41,123,108,101,116,32,116,61,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,63,46,97,110,105,109,97,116,105,111,110,95,115,105,122,101,40,41,59,114,101,116,117,114,110,123,119,105,100,116,104,58,116,63,46,91,48,93,63,63,48,44,104,101,105,103,104,116,58,116,63,46,91,49,93,63,63,48,125,125,115,116,97,116,101,77,97,99,104,105,110,101,76,111,97,100,40,116,41,123,114,101,116,117,114,110,32,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,63,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,46,115,116,97,116,101,95,109,97,99,104,105,110,101,95,108,111,97,100,95,102,114,111,109,95,105,100,40,116,41,58,33,49,125,115,116,97,116,101,77,97,99,104,105,110,101,76,111,97,100,68,97,116,97,40,116,41,123,114,101,116,117,114,110,32,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,63,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,46,115,116,97,116,101,95,109,97,99,104,105,110,101,95,108,111,97,100,40,116,41,58,33,49,125,115,116,97,116,101,77,97,99,104,105,110,101,83,101,116,67,111,110,102,105,103,40,116,41,123,116,104,105,115,46,95,115,116,97,116,101,77,97,99,104,105,110,101,67,111,110,102,105,103,61,116,125,115,116,97,116,101,77,97,99,104,105,110,101,83,116,97,114,116,40,41,123,105,102,40,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,61,61,61,110,117,108,108,41,114,101,116,117,114,110,33,49,59,108,101,116,32,116,61,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,46,115,109,95,115,116,97,114,116,40,116,104,105,115,46,95,115,116,97,116,101,77,97,99,104,105,110,101,67,111,110,102,105,103,63,46,111,112,101,110,85,114,108,80,111,108,105,99,121,63,46,114,101,113,117,105,114,101,85,115,101,114,73,110,116,101,114,97,99,116,105,111,110,63,63,33,48,44,116,104,105,115,46,95,115,116,97,116,101,77,97,99,104,105,110,101,67,111,110,102,105,103,63,46,111,112,101,110,85,114,108,80,111,108,105,99,121,63,46,119,104,105,116,101,108,105,115,116,63,63,91,93,41,59,114,101,116,117,114,110,32,116,104,105,115,46,95,100,114,97,105,110,83,109,69,118,101,110,116,115,40,41,44,116,38,38,40,116,104,105,115,46,95,105,115,83,116,97,116,101,77,97,99,104,105,110,101,82,117,110,110,105,110,103,61,33,48,44,116,104,105,115,46,95,115,101,116,117,112,83,116,97,116,101,77,97,99,104,105,110,101,76,105,115,116,101,110,101,114,115,40,41,44,116,104,105,115,46,95,115,116,97,114,116,65,110,105,109,97,116,105,111,110,76,111,111,112,40,41,41,44,116,125,115,116,97,116,101,77,97,99,104,105,110,101,83,116,111,112,40,41,123,105,102,40,33,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,41,114,101,116,117,114,110,33,49,59,108,101,116,32,116,61,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,46,115,109,95,115,116,111,112,40,41,59,114,101,116,117,114,110,32,116,104,105,115,46,95,100,114,97,105,110,83,109,69,118,101,110,116,115,40,41,44,116,38,38,40,116,104,105,115,46,95,105,115,83,116,97,116,101,77,97,99,104,105,110,101,82,117,110,110,105,110,103,61,33,49,44,116,104,105,115,46,95,99,108,101,97,110,117,112,83,116,97,116,101,77,97,99,104,105,110,101,76,105,115,116,101,110,101,114,115,40,41,44,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,46,105,115,95,112,108,97,121,105,110,103,40,41,124,124,116,104,105,115,46,95,115,116,111,112,65,110,105,109,97,116,105,111,110,76,111,111,112,40,41,41,44,116,125,115,116,97,116,101,77,97,99,104,105,110,101,71,101,116,83,116,97,116,117,115,40,41,123,114,101,116,117,114,110,32,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,63,46,115,109,95,115,116,97,116,117,115,40,41,63,63,34,34,125,115,116,97,116,101,77,97,99,104,105,110,101,71,101,116,67,117,114,114,101,110,116,83,116,97,116,101,40,41,123,114,101,116,117,114,110,32,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,63,46,115,109,95,99,117,114,114,101,110,116,95,115,116,97,116,101,40,41,63,63,34,34,125,115,116,97,116,101,77,97,99,104,105,110,101,71,101,116,65,99,116,105,118,101,73,100,40,41,123,114,101,116,117,114,110,32,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,63,46,115,116,97,116,101,95,109,97,99,104,105,110,101,95,105,100,40,41,63,63,34,34,125,115,116,97,116,101,77,97,99,104,105,110,101,79,118,101,114,114,105,100,101,83,116,97,116,101,40,116,44,101,61,33,49,41,123,114,101,116,117,114,110,32,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,63,46,115,109,95,111,118,101,114,114,105,100,101,95,99,117,114,114,101,110,116,95,115,116,97,116,101,40,116,44,101,41,63,63,33,49,125,115,116,97,116,101,77,97,99,104,105,110,101,71,101,116,40,116,41,123,114,101,116,117,114,110,32,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,63,46,103,101,116,95,115,116,97,116,101,95,109,97,99,104,105,110,101,40,116,41,63,63,34,34,125,115,116,97,116,101,77,97,99,104,105,110,101,71,101,116,76,105,115,116,101,110,101,114,115,40,41,123,105,102,40,33,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,41,114,101,116,117,114,110,91,93,59,108,101,116,32,116,61,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,46,115,109,95,102,114,97,109,101,119,111,114,107,95,115,101,116,117,112,40,41,59,114,101,116,117,114,110,32,65,114,114,97,121,46,105,115,65,114,114,97,121,40,116,41,63,116,58,91,93,125,115,116,97,116,101,77,97,99,104,105,110,101,83,101,116,66,111,111,108,101,97,110,73,110,112,117,116,40,116,44,101,41,123,114,101,116,117,114,110,32,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,63,46,115,109,95,115,101,116,95,98,111,111,108,101,97,110,95,105,110,112,117,116,40,116,44,101,41,63,63,33,49,125,115,116,97,116,101,77,97,99,104,105,110,101,83,101,116,78,117,109,101,114,105,99,73,110,112,117,116,40,116,44,101,41,123,114,101,116,117,114,110,32,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,63,46,115,109,95,115,101,116,95,110,117,109,101,114,105,99,95,105,110,112,117,116,40,116,44,101,41,63,63,33,49,125,115,116,97,116,101,77,97,99,104,105,110,101,83,101,116,83,116,114,105,110,103,73,110,112,117,116,40,116,44,101,41,123,114,101,116,117,114,110,32,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,63,46,115,109,95,115,101,116,95,115,116,114,105,110,103,95,105,110,112,117,116,40,116,44,101,41,63,63,33,49,125,115,116,97,116,101,77,97,99,104,105,110,101,71,101,116,66,111,111,108,101,97,110,73,110,112,117,116,40,116,41,123,114,101,116,117,114,110,32,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,63,46,115,109,95,103,101,116,95,98,111,111,108,101,97,110,95,105,110,112,117,116,40,116,41,63,63,118,111,105,100,32,48,125,115,116,97,116,101,77,97,99,104,105,110,101,71,101,116,78,117,109,101,114,105,99,73,110,112,117,116,40,116,41,123,114,101,116,117,114,110,32,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,63,46,115,109,95,103,101,116,95,110,117,109,101,114,105,99,95,105,110,112,117,116,40,116,41,63,63,118,111,105,100,32,48,125,115,116,97,116,101,77,97,99,104,105,110,101,71,101,116,83,116,114,105,110,103,73,110,112,117,116,40,116,41,123,114,101,116,117,114,110,32,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,63,46,115,109,95,103,101,116,95,115,116,114,105,110,103,95,105,110,112,117,116,40,116,41,63,63,118,111,105,100,32,48,125,115,116,97,116,101,77,97,99,104,105,110,101,71,101,116,73,110,112,117,116,115,40,41,123,105,102,40,33,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,41,114,101,116,117,114,110,91,93,59,108,101,116,32,116,61,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,46,115,109,95,103,101,116,95,105,110,112,117,116,115,40,41,59,114,101,116,117,114,110,32,65,114,114,97,121,46,105,115,65,114,114,97,121,40,116,41,63,116,58,91,93,125,115,116,97,116,101,77,97,99,104,105,110,101,70,105,114,101,69,118,101,110,116,40,116,41,123,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,63,46,115,109,95,102,105,114,101,40,116,41,125,115,116,97,116,101,77,97,99,104,105,110,101,80,111,115,116,67,108,105,99,107,69,118,101,110,116,40,116,44,101,41,123,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,63,46,115,109,95,112,111,115,116,95,99,108,105,99,107,40,116,44,101,41,125,115,116,97,116,101,77,97,99,104,105,110,101,80,111,115,116,80,111,105,110,116,101,114,85,112,69,118,101,110,116,40,116,44,101,41,123,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,63,46,115,109,95,112,111,115,116,95,112,111,105,110,116,101,114,95,117,112,40,116,44,101,41,125,115,116,97,116,101,77,97,99,104,105,110,101,80,111,115,116,80,111,105,110,116,101,114,68,111,119,110,69,118,101,110,116,40,116,44,101,41,123,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,63,46,115,109,95,112,111,115,116,95,112,111,105,110,116,101,114,95,100,111,119,110,40,116,44,101,41,125,115,116,97,116,101,77,97,99,104,105,110,101,80,111,115,116,80,111,105,110,116,101,114,77,111,118,101,69,118,101,110,116,40,116,44,101,41,123,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,63,46,115,109,95,112,111,115,116,95,112,111,105,110,116,101,114,95,109,111,118,101,40,116,44,101,41,125,115,116,97,116,101,77,97,99,104,105,110,101,80,111,115,116,80,111,105,110,116,101,114,69,110,116,101,114,69,118,101,110,116,40,116,44,101,41,123,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,63,46,115,109,95,112,111,115,116,95,112,111,105,110,116,101,114,95,101,110,116,101,114,40,116,44,101,41,125,115,116,97,116,101,77,97,99,104,105,110,101,80,111,115,116,80,111,105,110,116,101,114,69,120,105,116,69,118,101,110,116,40,116,44,101,41,123,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,63,46,115,109,95,112,111,115,116,95,112,111,105,110,116,101,114,95,101,120,105,116,40,116,44,101,41,125,95,111,110,67,108,105,99,107,40,116,41,123,108,101,116,32,101,61,77,40,116,41,59,101,38,38,116,104,105,115,46,115,116,97,116,101,77,97,99,104,105,110,101,80,111,115,116,67,108,105,99,107,69,118,101,110,116,40,101,46,120,44,101,46,121,41,125,95,111,110,80,111,105,110,116,101,114,85,112,40,116,41,123,108,101,116,32,101,61,77,40,116,41,59,101,38,38,116,104,105,115,46,115,116,97,116,101,77,97,99,104,105,110,101,80,111,115,116,80,111,105,110,116,101,114,85,112,69,118,101,110,116,40,101,46,120,44,101,46,121,41,125,95,111,110,80,111,105,110,116,101,114,68,111,119,110,40,116,41,123,108,101,116,32,101,61,77,40,116,41,59,101,38,38,116,104,105,115,46,115,116,97,116,101,77,97,99,104,105,110,101,80,111,115,116,80,111,105,110,116,101,114,68,111,119,110,69,118,101,110,116,40,101,46,120,44,101,46,121,41,125,95,111,110,80,111,105,110,116,101,114,77,111,118,101,40,116,41,123,108,101,116,32,101,61,77,40,116,41,59,101,38,38,116,104,105,115,46,115,116,97,116,101,77,97,99,104,105,110,101,80,111,115,116,80,111,105,110,116,101,114,77,111,118,101,69,118,101,110,116,40,101,46,120,44,101,46,121,41,125,95,111,110,80,111,105,110,116,101,114,69,110,116,101,114,40,116,41,123,108,101,116,32,101,61,77,40,116,41,59,101,38,38,116,104,105,115,46,115,116,97,116,101,77,97,99,104,105,110,101,80,111,115,116,80,111,105,110,116,101,114,69,110,116,101,114,69,118,101,110,116,40,101,46,120,44,101,46,121,41,125,95,111,110,80,111,105,110,116,101,114,76,101,97,118,101,40,116,41,123,108,101,116,32,101,61,77,40,116,41,59,101,38,38,116,104,105,115,46,115,116,97,116,101,77,97,99,104,105,110,101,80,111,115,116,80,111,105,110,116,101,114,69,120,105,116,69,118,101,110,116,40,101,46,120,44,101,46,121,41,125,95,115,101,116,117,112,83,116,97,116,101,77,97,99,104,105,110,101,76,105,115,116,101,110,101,114,115,40,41,123,105,102,40,103,38,38,116,104,105,115,46,95,99,97,110,118,97,115,32,105,110,115,116,97,110,99,101,111,102,32,72,84,77,76,67,97,110,118,97,115,69,108,101,109,101,110,116,38,38,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,33,61,61,110,117,108,108,38,38,116,104,105,115,46,105,115,76,111,97,100,101,100,41,123,108,101,116,32,116,61,116,104,105,115,46,115,116,97,116,101,77,97,99,104,105,110,101,71,101,116,76,105,115,116,101,110,101,114,115,40,41,59,116,104,105,115,46,95,99,108,101,97,110,117,112,83,116,97,116,101,77,97,99,104,105,110,101,76,105,115,116,101,110,101,114,115,40,41,44,116,46,105,110,99,108,117,100,101,115,40,34,67,108,105,99,107,34,41,38,38,40,116,104,105,115,46,95,98,111,117,110,100,79,110,67,108,105,99,107,61,116,104,105,115,46,95,111,110,67,108,105,99,107,46,98,105,110,100,40,116,104,105,115,41,44,116,104,105,115,46,95,99,97,110,118,97,115,46,97,100,100,69,118,101,110,116,76,105,115,116,101,110,101,114,40,34,99,108,105,99,107,34,44,116,104,105,115,46,95,98,111,117,110,100,79,110,67,108,105,99,107,41,41,44,116,46,105,110,99,108,117,100,101,115,40,34,80,111,105,110,116,101,114,85,112,34,41,38,38,40,116,104,105,115,46,95,98,111,117,110,100,79,110,80,111,105,110,116,101,114,85,112,61,116,104,105,115,46,95,111,110,80,111,105,110,116,101,114,85,112,46,98,105,110,100,40,116,104,105,115,41,44,116,104,105,115,46,95,99,97,110,118,97,115,46,97,100,100,69,118,101,110,116,76,105,115,116,101,110,101,114,40,34,112,111,105,110,116,101,114,117,112,34,44,116,104,105,115,46,95,98,111,117,110,100,79,110,80,111,105,110,116,101,114,85,112,41,41,44,116,46,105,110,99,108,117,100,101,115,40,34,80,111,105,110,116,101,114,68,111,119,110,34,41,38,38,40,116,104,105,115,46,95,98,111,117,110,100,79,110,80,111,105,110,116,101,114,68,111,119,110,61,116,104,105,115,46,95,111,110,80,111,105,110,116,101,114,68,111,119,110,46,98,105,110,100,40,116,104,105,115,41,44,116,104,105,115,46,95,99,97,110,118,97,115,46,97,100,100,69,118,101,110,116,76,105,115,116,101,110,101,114,40,34,112,111,105,110,116,101,114,100,111,119,110,34,44,116,104,105,115,46,95,98,111,117,110,100,79,110,80,111,105,110,116,101,114,68,111,119,110,41,41,44,116,46,105,110,99,108,117,100,101,115,40,34,80,111,105,110,116,101,114,77,111,118,101,34,41,38,38,40,116,104,105,115,46,95,98,111,117,110,100,79,110,80,111,105,110,116,101,114,77,111,118,101,61,116,104,105,115,46,95,111,110,80,111,105,110,116,101,114,77,111,118,101,46,98,105,110,100,40,116,104,105,115,41,44,116,104,105,115,46,95,99,97,110,118,97,115,46,97,100,100,69,118,101,110,116,76,105,115,116,101,110,101,114,40,34,112,111,105,110,116,101,114,109,111,118,101,34,44,116,104,105,115,46,95,98,111,117,110,100,79,110,80,111,105,110,116,101,114,77,111,118,101,41,41,44,116,46,105,110,99,108,117,100,101,115,40,34,80,111,105,110,116,101,114,69,110,116,101,114,34,41,38,38,40,116,104,105,115,46,95,98,111,117,110,100,79,110,80,111,105,110,116,101,114,69,110,116,101,114,61,116,104,105,115,46,95,111,110,80,111,105,110,116,101,114,69,110,116,101,114,46,98,105,110,100,40,116,104,105,115,41,44,116,104,105,115,46,95,99,97,110,118,97,115,46,97,100,100,69,118,101,110,116,76,105,115,116,101,110,101,114,40,34,112,111,105,110,116,101,114,101,110,116,101,114,34,44,116,104,105,115,46,95,98,111,117,110,100,79,110,80,111,105,110,116,101,114,69,110,116,101,114,41,41,44,116,46,105,110,99,108,117,100,101,115,40,34,80,111,105,110,116,101,114,69,120,105,116,34,41,38,38,40,116,104,105,115,46,95,98,111,117,110,100,79,110,80,111,105,110,116,101,114,76,101,97,118,101,61,116,104,105,115,46,95,111,110,80,111,105,110,116,101,114,76,101,97,118,101,46,98,105,110,100,40,116,104,105,115,41,44,116,104,105,115,46,95,99,97,110,118,97,115,46,97,100,100,69,118,101,110,116,76,105,115,116,101,110,101,114,40,34,112,111,105,110,116,101,114,108,101,97,118,101,34,44,116,104,105,115,46,95,98,111,117,110,100,79,110,80,111,105,110,116,101,114,76,101,97,118,101,41,41,125,125,95,99,108,101,97,110,117,112,83,116,97,116,101,77,97,99,104,105,110,101,76,105,115,116,101,110,101,114,115,40,41,123,103,38,38,116,104,105,115,46,95,99,97,110,118,97,115,32,105,110,115,116,97,110,99,101,111,102,32,72,84,77,76,67,97,110,118,97,115,69,108,101,109,101,110,116,38,38,40,116,104,105,115,46,95,98,111,117,110,100,79,110,67,108,105,99,107,38,38,40,116,104,105,115,46,95,99,97,110,118,97,115,46,114,101,109,111,118,101,69,118,101,110,116,76,105,115,116,101,110,101,114,40,34,99,108,105,99,107,34,44,116,104,105,115,46,95,98,111,117,110,100,79,110,67,108,105,99,107,41,44,116,104,105,115,46,95,98,111,117,110,100,79,110,67,108,105,99,107,61,110,117,108,108,41,44,116,104,105,115,46,95,98,111,117,110,100,79,110,80,111,105,110,116,101,114,85,112,38,38,40,116,104,105,115,46,95,99,97,110,118,97,115,46,114,101,109,111,118,101,69,118,101,110,116,76,105,115,116,101,110,101,114,40,34,112,111,105,110,116,101,114,117,112,34,44,116,104,105,115,46,95,98,111,117,110,100,79,110,80,111,105,110,116,101,114,85,112,41,44,116,104,105,115,46,95,98,111,117,110,100,79,110,80,111,105,110,116,101,114,85,112,61,110,117,108,108,41,44,116,104,105,115,46,95,98,111,117,110,100,79,110,80,111,105,110,116,101,114,68,111,119,110,38,38,40,116,104,105,115,46,95,99,97,110,118,97,115,46,114,101,109,111,118,101,69,118,101,110,116,76,105,115,116,101,110,101,114,40,34,112,111,105,110,116,101,114,100,111,119,110,34,44,116,104,105,115,46,95,98,111,117,110,100,79,110,80,111,105,110,116,101,114,68,111,119,110,41,44,116,104,105,115,46,95,98,111,117,110,100,79,110,80,111,105,110,116,101,114,68,111,119,110,61,110,117,108,108,41,44,116,104,105,115,46,95,98,111,117,110,100,79,110,80,111,105,110,116,101,114,77,111,118,101,38,38,40,116,104,105,115,46,95,99,97,110,118,97,115,46,114,101,109,111,118,101,69,118,101,110,116,76,105,115,116,101,110,101,114,40,34,112,111,105,110,116,101,114,109,111,118,101,34,44,116,104,105,115,46,95,98,111,117,110,100,79,110,80,111,105,110,116,101,114,77,111,118,101,41,44,116,104,105,115,46,95,98,111,117,110,100,79,110,80,111,105,110,116,101,114,77,111,118,101,61,110,117,108,108,41,44,116,104,105,115,46,95,98,111,117,110,100,79,110,80,111,105,110,116,101,114,69,110,116,101,114,38,38,40,116,104,105,115,46,95,99,97,110,118,97,115,46,114,101,109,111,118,101,69,118,101,110,116,76,105,115,116,101,110,101,114,40,34,112,111,105,110,116,101,114,101,110,116,101,114,34,44,116,104,105,115,46,95,98,111,117,110,100,79,110,80,111,105,110,116,101,114,69,110,116,101,114,41,44,116,104,105,115,46,95,98,111,117,110,100,79,110,80,111,105,110,116,101,114,69,110,116,101,114,61,110,117,108,108,41,44,116,104,105,115,46,95,98,111,117,110,100,79,110,80,111,105,110,116,101,114,76,101,97,118,101,38,38,40,116,104,105,115,46,95,99,97,110,118,97,115,46,114,101,109,111,118,101,69,118,101,110,116,76,105,115,116,101,110,101,114,40,34,112,111,105,110,116,101,114,108,101,97,118,101,34,44,116,104,105,115,46,95,98,111,117,110,100,79,110,80,111,105,110,116,101,114,76,101,97,118,101,41,44,116,104,105,115,46,95,98,111,117,110,100,79,110,80,111,105,110,116,101,114,76,101,97,118,101,61,110,117,108,108,41,41,125,125,59,118,97,114,32,97,61,110,101,119,32,77,97,112,44,121,116,61,123,114,101,97,100,121,58,110,61,62,116,61,62,123,108,101,116,32,101,61,123,105,100,58,34,34,44,109,101,116,104,111,100,58,34,111,110,82,101,97,100,121,34,44,114,101,115,117,108,116,58,123,105,110,115,116,97,110,99,101,73,100,58,110,44,101,118,101,110,116,58,116,125,125,59,115,101,108,102,46,112,111,115,116,77,101,115,115,97,103,101,40,101,41,125,44,99,111,109,112,108,101,116,101,58,110,61,62,116,61,62,123,108,101,116,32,101,61,123,105,100,58,34,34,44,109,101,116,104,111,100,58,34,111,110,67,111,109,112,108,101,116,101,34,44,114,101,115,117,108,116,58,123,105,110,115,116,97,110,99,101,73,100,58,110,44,101,118,101,110,116,58,116,125,125,59,115,101,108,102,46,112,111,115,116,77,101,115,115,97,103,101,40,101,41,125,44,108,111,97,100,58,110,61,62,116,61,62,123,108,101,116,32,114,61,123,105,100,58,34,34,44,109,101,116,104,111,100,58,34,111,110,76,111,97,100,34,44,114,101,115,117,108,116,58,123,105,110,115,116,97,110,99,101,73,100,58,110,44,101,118,101,110,116,58,116,125,125,59,115,101,108,102,46,112,111,115,116,77,101,115,115,97,103,101,40,114,41,125,44,108,111,97,100,69,114,114,111,114,58,110,61,62,116,61,62,123,108,101,116,32,114,61,123,105,100,58,34,34,44,109,101,116,104,111,100,58,34,111,110,76,111,97,100,69,114,114,111,114,34,44,114,101,115,117,108,116,58,123,105,110,115,116,97,110,99,101,73,100,58,110,44,101,118,101,110,116,58,116,125,125,59,115,101,108,102,46,112,111,115,116,77,101,115,115,97,103,101,40,114,41,125,44,114,101,110,100,101,114,69,114,114,111,114,58,110,61,62,116,61,62,123,108,101,116,32,114,61,123,105,100,58,34,34,44,109,101,116,104,111,100,58,34,111,110,82,101,110,100,101,114,69,114,114,111,114,34,44,114,101,115,117,108,116,58,123,105,110,115,116,97,110,99,101,73,100,58,110,44,101,118,101,110,116,58,116,125,125,59,115,101,108,102,46,112,111,115,116,77,101,115,115,97,103,101,40,114,41,125,44,108,111,111,112,58,110,61,62,116,61,62,123,108,101,116,32,114,61,123,105,100,58,34,34,44,109,101,116,104,111,100,58,34,111,110,76,111,111,112,34,44,114,101,115,117,108,116,58,123,105,110,115,116,97,110,99,101,73,100,58,110,44,101,118,101,110,116,58,116,125,125,59,115,101,108,102,46,112,111,115,116,77,101,115,115,97,103,101,40,114,41,125,44,112,108,97,121,58,110,61,62,116,61,62,123,108,101,116,32,114,61,123,105,100,58,34,34,44,109,101,116,104,111,100,58,34,111,110,80,108,97,121,34,44,114,101,115,117,108,116,58,123,105,110,115,116,97,110,99,101,73,100,58,110,44,101,118,101,110,116,58,116,125,125,59,115,101,108,102,46,112,111,115,116,77,101,115,115,97,103,101,40,114,41,125,44,112,97,117,115,101,58,110,61,62,116,61,62,123,108,101,116,32,114,61,123,105,100,58,34,34,44,109,101,116,104,111,100,58,34,111,110,80,97,117,115,101,34,44,114,101,115,117,108,116,58,123,105,110,115,116,97,110,99,101,73,100,58,110,44,101,118,101,110,116,58,116,125,125,59,115,101,108,102,46,112,111,115,116,77,101,115,115,97,103,101,40,114,41,125,44,115,116,111,112,58,110,61,62,116,61,62,123,108,101,116,32,114,61,123,105,100,58,34,34,44,109,101,116,104,111,100,58,34,111,110,83,116,111,112,34,44,114,101,115,117,108,116,58,123,105,110,115,116,97,110,99,101,73,100,58,110,44,101,118,101,110,116,58,116,125,125,59,115,101,108,102,46,112,111,115,116,77,101,115,115,97,103,101,40,114,41,125,44,102,114,97,109,101,58,110,61,62,116,61,62,123,108,101,116,32,114,61,123,105,100,58,34,34,44,109,101,116,104,111,100,58,34,111,110,70,114,97,109,101,34,44,114,101,115,117,108,116,58,123,105,110,115,116,97,110,99,101,73,100,58,110,44,101,118,101,110,116,58,116,125,125,59,115,101,108,102,46,112,111,115,116,77,101,115,115,97,103,101,40,114,41,125,44,114,101,110,100,101,114,58,110,61,62,116,61,62,123,108,101,116,32,114,61,123,105,100,58,34,34,44,109,101,116,104,111,100,58,34,111,110,82,101,110,100,101,114,34,44,114,101,115,117,108,116,58,123,105,110,115,116,97,110,99,101,73,100,58,110,44,101,118,101,110,116,58,116,125,125,59,115,101,108,102,46,112,111,115,116,77,101,115,115,97,103,101,40,114,41,125,44,102,114,101,101,122,101,58,110,61,62,116,61,62,123,108,101,116,32,114,61,123,105,100,58,34,34,44,109,101,116,104,111,100,58,34,111,110,70,114,101,101,122,101,34,44,114,101,115,117,108,116,58,123,105,110,115,116,97,110,99,101,73,100,58,110,44,101,118,101,110,116,58,116,125,125,59,115,101,108,102,46,112,111,115,116,77,101,115,115,97,103,101,40,114,41,125,44,117,110,102,114,101,101,122,101,58,110,61,62,116,61,62,123,108,101,116,32,114,61,123,105,100,58,34,34,44,109,101,116,104,111,100,58,34,111,110,85,110,102,114,101,101,122,101,34,44,114,101,115,117,108,116,58,123,105,110,115,116,97,110,99,101,73,100,58,110,44,101,118,101,110,116,58,116,125,125,59,115,101,108,102,46,112,111,115,116,77,101,115,115,97,103,101,40,114,41,125,44,100,101,115,116,114,111,121,58,110,61,62,116,61,62,123,108,101,116,32,114,61,123,105,100,58,34,34,44,109,101,116,104,111,100,58,34,111,110,68,101,115,116,114,111,121,34,44,114,101,115,117,108,116,58,123,105,110,115,116,97,110,99,101,73,100,58,110,44,101,118,101,110,116,58,116,125,125,59,115,101,108,102,46,112,111,115,116,77,101,115,115,97,103,101,40,114,41,125,44,115,116,97,116,101,77,97,99,104,105,110,101,83,116,97,114,116,58,110,61,62,116,61,62,123,108,101,116,32,114,61,123,105,100,58,34,34,44,109,101,116,104,111,100,58,34,111,110,83,116,97,116,101,77,97,99,104,105,110,101,83,116,97,114,116,34,44,114,101,115,117,108,116,58,123,105,110,115,116,97,110,99,101,73,100,58,110,44,101,118,101,110,116,58,116,125,125,59,115,101,108,102,46,112,111,115,116,77,101,115,115,97,103,101,40,114,41,125,44,115,116,97,116,101,77,97,99,104,105,110,101,83,116,111,112,58,110,61,62,116,61,62,123,108,101,116,32,114,61,123,105,100,58,34,34,44,109,101,116,104,111,100,58,34,111,110,83,116,97,116,101,77,97,99,104,105,110,101,83,116,111,112,34,44,114,101,115,117,108,116,58,123,105,110,115,116,97,110,99,101,73,100,58,110,44,101,118,101,110,116,58,116,125,125,59,115,101,108,102,46,112,111,115,116,77,101,115,115,97,103,101,40,114,41,125,44,115,116,97,116,101,77,97,99,104,105,110,101,84,114,97,110,115,105,116,105,111,110,58,110,61,62,116,61,62,123,108,101,116,32,114,61,123,105,100,58,34,34,44,109,101,116,104,111,100,58,34,111,110,83,116,97,116,101,77,97,99,104,105,110,101,84,114,97,110,115,105,116,105,111,110,34,44,114,101,115,117,108,116,58,123,105,110,115,116,97,110,99,101,73,100,58,110,44,101,118,101,110,116,58,116,125,125,59,115,101,108,102,46,112,111,115,116,77,101,115,115,97,103,101,40,114,41,125,44,115,116,97,116,101,77,97,99,104,105,110,101,83,116,97,116,101,69,110,116,101,114,101,100,58,110,61,62,116,61,62,123,108,101,116,32,114,61,123,105,100,58,34,34,44,109,101,116,104,111,100,58,34,111,110,83,116,97,116,101,77,97,99,104,105,110,101,83,116,97,116,101,69,110,116,101,114,101,100,34,44,114,101,115,117,108,116,58,123,105,110,115,116,97,110,99,101,73,100,58,110,44,101,118,101,110,116,58,116,125,125,59,115,101,108,102,46,112,111,115,116,77,101,115,115,97,103,101,40,114,41,125,44,115,116,97,116,101,77,97,99,104,105,110,101,83,116,97,116,101,69,120,105,116,58,110,61,62,116,61,62,123,108,101,116,32,114,61,123,105,100,58,34,34,44,109,101,116,104,111,100,58,34,111,110,83,116,97,116,101,77,97,99,104,105,110,101,83,116,97,116,101,69,120,105,116,34,44,114,101,115,117,108,116,58,123,105,110,115,116,97,110,99,101,73,100,58,110,44,101,118,101,110,116,58,116,125,125,59,115,101,108,102,46,112,111,115,116,77,101,115,115,97,103,101,40,114,41,125,44,115,116,97,116,101,77,97,99,104,105,110,101,67,117,115,116,111,109,69,118,101,110,116,58,110,61,62,116,61,62,123,108,101,116,32,114,61,123,105,100,58,34,34,44,109,101,116,104,111,100,58,34,111,110,83,116,97,116,101,77,97,99,104,105,110,101,67,117,115,116,111,109,69,118,101,110,116,34,44,114,101,115,117,108,116,58,123,105,110,115,116,97,110,99,101,73,100,58,110,44,101,118,101,110,116,58,116,125,125,59,115,101,108,102,46,112,111,115,116,77,101,115,115,97,103,101,40,114,41,125,44,115,116,97,116,101,77,97,99,104,105,110,101,69,114,114,111,114,58,110,61,62,116,61,62,123,108,101,116,32,114,61,123,105,100,58,34,34,44,109,101,116,104,111,100,58,34,111,110,83,116,97,116,101,77,97,99,104,105,110,101,69,114,114,111,114,34,44,114,101,115,117,108,116,58,123,105,110,115,116,97,110,99,101,73,100,58,110,44,101,118,101,110,116,58,116,125,125,59,115,101,108,102,46,112,111,115,116,77,101,115,115,97,103,101,40,114,41,125,44,115,116,97,116,101,77,97,99,104,105,110,101,66,111,111,108,101,97,110,73,110,112,117,116,86,97,108,117,101,67,104,97,110,103,101,58,110,61,62,116,61,62,123,108,101,116,32,114,61,123,105,100,58,34,34,44,109,101,116,104,111,100,58,34,111,110,83,116,97,116,101,77,97,99,104,105,110,101,66,111,111,108,101,97,110,73,110,112,117,116,86,97,108,117,101,67,104,97,110,103,101,34,44,114,101,115,117,108,116,58,123,105,110,115,116,97,110,99,101,73,100,58,110,44,101,118,101,110,116,58,116,125,125,59,115,101,108,102,46,112,111,115,116,77,101,115,115,97,103,101,40,114,41,125,44,115,116,97,116,101,77,97,99,104,105,110,101,78,117,109,101,114,105,99,73,110,112,117,116,86,97,108,117,101,67,104,97,110,103,101,58,110,61,62,116,61,62,123,108,101,116,32,114,61,123,105,100,58,34,34,44,109,101,116,104,111,100,58,34,111,110,83,116,97,116,101,77,97,99,104,105,110,101,78,117,109,101,114,105,99,73,110,112,117,116,86,97,108,117,101,67,104,97,110,103,101,34,44,114,101,115,117,108,116,58,123,105,110,115,116,97,110,99,101,73,100,58,110,44,101,118,101,110,116,58,116,125,125,59,115,101,108,102,46,112,111,115,116,77,101,115,115,97,103,101,40,114,41,125,44,115,116,97,116,101,77,97,99,104,105,110,101,83,116,114,105,110,103,73,110,112,117,116,86,97,108,117,101,67,104,97,110,103,101,58,110,61,62,116,61,62,123,108,101,116,32,114,61,123,105,100,58,34,34,44,109,101,116,104,111,100,58,34,111,110,83,116,97,116,101,77,97,99,104,105,110,101,83,116,114,105,110,103,73,110,112,117,116,86,97,108,117,101,67,104,97,110,103,101,34,44,114,101,115,117,108,116,58,123,105,110,115,116,97,110,99,101,73,100,58,110,44,101,118,101,110,116,58,116,125,125,59,115,101,108,102,46,112,111,115,116,77,101,115,115,97,103,101,40,114,41,125,44,115,116,97,116,101,77,97,99,104,105,110,101,73,110,112,117,116,70,105,114,101,100,58,110,61,62,116,61,62,123,108,101,116,32,114,61,123,105,100,58,34,34,44,109,101,116,104,111,100,58,34,111,110,83,116,97,116,101,77,97,99,104,105,110,101,73,110,112,117,116,70,105,114,101,100,34,44,114,101,115,117,108,116,58,123,105,110,115,116,97,110,99,101,73,100,58,110,44,101,118,101,110,116,58,116,125,125,59,115,101,108,102,46,112,111,115,116,77,101,115,115,97,103,101,40,114,41,125,44,115,116,97,116,101,77,97,99,104,105,110,101,73,110,116,101,114,110,97,108,77,101,115,115,97,103,101,58,110,61,62,116,61,62,123,108,101,116,32,114,61,123,105,100,58,34,34,44,109,101,116,104,111,100,58,34,111,110,83,116,97,116,101,77,97,99,104,105,110,101,73,110,116,101,114,110,97,108,77,101,115,115,97,103,101,34,44,114,101,115,117,108,116,58,123,105,110,115,116,97,110,99,101,73,100,58,110,44,101,118,101,110,116,58,116,125,125,59,115,101,108,102,46,112,111,115,116,77,101,115,115,97,103,101,40,114,41,125,125,44,74,61,123,115,101,116,84,114,97,110,115,102,111,114,109,40,110,41,123,108,101,116,32,116,61,110,46,112,97,114,97,109,115,46,105,110,115,116,97,110,99,101,73,100,44,101,61,97,46,103,101,116,40,116,41,59,105,102,40,33,101,41,116,104,114,111,119,32,110,101,119,32,69,114,114,111,114,40,96,73,110,115,116,97,110,99,101,32,119,105,116,104,32,105,100,32,36,123,116,125,32,100,111,101,115,32,110,111,116,32,101,120,105,115,116,46,96,41,59,114,101,116,117,114,110,32,101,46,115,101,116,84,114,97,110,115,102,111,114,109,40,110,46,112,97,114,97,109,115,46,116,114,97,110,115,102,111,114,109,41,125,44,103,101,116,84,114,97,110,115,102,111,114,109,40,110,41,123,108,101,116,32,116,61,110,46,112,97,114,97,109,115,46,105,110,115,116,97,110,99,101,73,100,44,101,61,97,46,103,101,116,40,116,41,59,105,102,40,33,101,41,116,104,114,111,119,32,110,101,119,32,69,114,114,111,114,40,96,73,110,115,116,97,110,99,101,32,119,105,116,104,32,105,100,32,36,123,116,125,32,100,111,101,115,32,110,111,116,32,101,120,105,115,116,46,96,41,59,114,101,116,117,114,110,32,101,46,103,101,116,84,114,97,110,115,102,111,114,109,40,41,125,44,103,101,116,68,111,116,76,111,116,116,105,101,73,110,115,116,97,110,99,101,83,116,97,116,101,40,110,41,123,108,101,116,32,116,61,110,46,112,97,114,97,109,115,46,105,110,115,116,97,110,99,101,73,100,44,101,61,97,46,103,101,116,40,116,41,59,105,102,40,33,101,41,116,104,114,111,119,32,110,101,119,32,69,114,114,111,114,40,96,73,110,115,116,97,110,99,101,32,119,105,116,104,32,105,100,32,36,123,116,125,32,100,111,101,115,32,110,111,116,32,101,120,105,115,116,46,96,41,59,114,101,116,117,114,110,123,115,116,97,116,101,58,123,108,111,111,112,67,111,117,110,116,58,101,46,108,111,111,112,67,111,117,110,116,44,105,115,76,111,97,100,101,100,58,101,46,105,115,76,111,97,100,101,100,44,105,115,80,97,117,115,101,100,58,101,46,105,115,80,97,117,115,101,100,44,105,115,80,108,97,121,105,110,103,58,101,46,105,115,80,108,97,121,105,110,103,44,105,115,83,116,111,112,112,101,100,58,101,46,105,115,83,116,111,112,112,101,100,44,105,115,70,114,111,122,101,110,58,101,46,105,115,70,114,111,122,101,110,44,108,111,111,112,58,101,46,108,111,111,112,44,109,111,100,101,58,101,46,109,111,100,101,44,115,112,101,101,100,58,101,46,115,112,101,101,100,44,99,117,114,114,101,110,116,70,114,97,109,101,58,101,46,99,117,114,114,101,110,116,70,114,97,109,101,44,116,111,116,97,108,70,114,97,109,101,115,58,101,46,116,111,116,97,108,70,114,97,109,101,115,44,100,117,114,97,116,105,111,110,58,101,46,100,117,114,97,116,105,111,110,44,117,115,101,70,114,97,109,101,73,110,116,101,114,112,111,108,97,116,105,111,110,58,101,46,117,115,101,70,114,97,109,101,73,110,116,101,114,112,111,108,97,116,105,111,110,44,114,101,110,100,101,114,67,111,110,102,105,103,58,101,46,114,101,110,100,101,114,67,111,110,102,105,103,44,109,97,114,107,101,114,58,101,46,109,97,114,107,101,114,44,98,97,99,107,103,114,111,117,110,100,67,111,108,111,114,58,101,46,98,97,99,107,103,114,111,117,110,100,67,111,108,111,114,44,109,97,114,107,101,114,115,58,101,46,109,97,114,107,101,114,115,40,41,44,97,99,116,105,118,101,65,110,105,109,97,116,105,111,110,73,100,58,101,46,97,99,116,105,118,101,65,110,105,109,97,116,105,111,110,73,100,44,97,99,116,105,118,101,84,104,101,109,101,73,100,58,101,46,97,99,116,105,118,101,84,104,101,109,101,73,100,44,97,117,116,111,112,108,97,121,58,101,46,97,117,116,111,112,108,97,121,44,115,101,103,109,101,110,116,58,101,46,115,101,103,109,101,110,116,44,108,97,121,111,117,116,58,101,46,108,97,121,111,117,116,44,105,115,82,101,97,100,121,58,101,46,105,115,82,101,97,100,121,44,109,97,110,105,102,101,115,116,58,101,46,109,97,110,105,102,101,115,116,125,125,125,44,115,101,116,76,97,121,111,117,116,40,110,41,123,108,101,116,32,116,61,110,46,112,97,114,97,109,115,46,105,110,115,116,97,110,99,101,73,100,44,101,61,110,46,112,97,114,97,109,115,46,108,97,121,111,117,116,44,114,61,97,46,103,101,116,40,116,41,59,105,102,40,33,114,41,116,104,114,111,119,32,110,101,119,32,69,114,114,111,114,40,96,73,110,115,116,97,110,99,101,32,119,105,116,104,32,105,100,32,36,123,116,125,32,100,111,101,115,32,110,111,116,32,101,120,105,115,116,46,96,41,59,114,46,115,101,116,76,97,121,111,117,116,40,101,41,125,44,115,116,97,116,101,77,97,99,104,105,110,101,71,101,116,76,105,115,116,101,110,101,114,115,40,110,41,123,108,101,116,32,116,61,110,46,112,97,114,97,109,115,46,105,110,115,116,97,110,99,101,73,100,44,101,61,97,46,103,101,116,40,116,41,59,105,102,40,33,101,41,116,104,114,111,119,32,110,101,119,32,69,114,114,111,114,40,96,73,110,115,116,97,110,99,101,32,119,105,116,104,32,105,100,32,36,123,116,125,32,100,111,101,115,32,110,111,116,32,101,120,105,115,116,46,96,41,59,114,101,116,117,114,110,32,101,46,115,116,97,116,101,77,97,99,104,105,110,101,71,101,116,76,105,115,116,101,110,101,114,115,40,41,125,44,115,116,97,116,101,77,97,99,104,105,110,101,83,116,97,114,116,40,110,41,123,108,101,116,32,116,61,110,46,112,97,114,97,109,115,46,105,110,115,116,97,110,99,101,73,100,44,101,61,97,46,103,101,116,40,116,41,59,105,102,40,33,101,41,116,104,114,111,119,32,110,101,119,32,69,114,114,111,114,40,96,73,110,115,116,97,110,99,101,32,119,105,116,104,32,105,100,32,36,123,116,125,32,100,111,101,115,32,110,111,116,32,101,120,105,115,116,46,96,41,59,114,101,116,117,114,110,32,101,46,115,116,97,116,101,77,97,99,104,105,110,101,83,116,97,114,116,40,41,125,44,115,116,97,116,101,77,97,99,104,105,110,101,83,116,111,112,40,110,41,123,108,101,116,32,116,61,110,46,112,97,114,97,109,115,46,105,110,115,116,97,110,99,101,73,100,44,101,61,97,46,103,101,116,40,116,41,59,105,102,40,33,101,41,116,104,114,111,119,32,110,101,119,32,69,114,114,111,114,40,96,73,110,115,116,97,110,99,101,32,119,105,116,104,32,105,100,32,36,123,116,125,32,100,111,101,115,32,110,111,116,32,101,120,105,115,116,46,96,41,59,114,101,116,117,114,110,32,101,46,115,116,97,116,101,77,97,99,104,105,110,101,83,116,111,112,40,41,125,44,115,116,97,116,101,77,97,99,104,105,110,101,76,111,97,100,40,110,41,123,108,101,116,32,116,61,110,46,112,97,114,97,109,115,46,105,110,115,116,97,110,99,101,73,100,44,101,61,110,46,112,97,114,97,109,115,46,115,116,97,116,101,77,97,99,104,105,110,101,73,100,44,114,61,97,46,103,101,116,40,116,41,59,105,102,40,33,114,41,116,104,114,111,119,32,110,101,119,32,69,114,114,111,114,40,96,73,110,115,116,97,110,99,101,32,119,105,116,104,32,105,100,32,36,123,116,125,32,100,111,101,115,32,110,111,116,32,101,120,105,115,116,46,96,41,59,114,101,116,117,114,110,32,114,46,115,116,97,116,101,77,97,99,104,105,110,101,76,111,97,100,40,101,41,125,44,115,116,97,116,101,77,97,99,104,105,110,101,76,111,97,100,68,97,116,97,40,110,41,123,108,101,116,32,116,61,110,46,112,97,114,97,109,115,46,105,110,115,116,97,110,99,101,73,100,44,101,61,110,46,112,97,114,97,109,115,46,115,116,97,116,101,77,97,99,104,105,110,101,68,97,116,97,44,114,61,97,46,103,101,116,40,116,41,59,105,102,40,33,114,41,116,104,114,111,119,32,110,101,119,32,69,114,114,111,114,40,96,73,110,115,116,97,110,99,101,32,119,105,116,104,32,105,100,32,36,123,116,125,32,100,111,101,115,32,110,111,116,32,101,120,105,115,116,46,96,41,59,114,101,116,117,114,110,32,114,46,115,116,97,116,101,77,97,99,104,105,110,101,76,111,97,100,68,97,116,97,40,101,41,125,44,115,116,97,116,101,77,97,99,104,105,110,101,80,111,115,116,67,108,105,99,107,69,118,101,110,116,40,110,41,123,108,101,116,32,116,61,110,46,112,97,114,97,109,115,46,105,110,115,116,97,110,99,101,73,100,44,101,61,110,46,112,97,114,97,109,115,46,120,44,114,61,110,46,112,97,114,97,109,115,46,121,44,111,61,97,46,103,101,116,40,116,41,59,105,102,40,33,111,41,116,104,114,111,119,32,110,101,119,32,69,114,114,111,114,40,96,73,110,115,116,97,110,99,101,32,119,105,116,104,32,105,100,32,36,123,116,125,32,100,111,101,115,32,110,111,116,32,101,120,105,115,116,46,96,41,59,114,101,116,117,114,110,32,111,46,115,116,97,116,101,77,97,99,104,105,110,101,80,111,115,116,67,108,105,99,107,69,118,101,110,116,40,101,44,114,41,125,44,115,116,97,116,101,77,97,99,104,105,110,101,80,111,115,116,80,111,105,110,116,101,114,85,112,69,118,101,110,116,40,110,41,123,108,101,116,32,116,61,110,46,112,97,114,97,109,115,46,105,110,115,116,97,110,99,101,73,100,44,101,61,110,46,112,97,114,97,109,115,46,120,44,114,61,110,46,112,97,114,97,109,115,46,121,44,111,61,97,46,103,101,116,40,116,41,59,105,102,40,33,111,41,116,104,114,111,119,32,110,101,119,32,69,114,114,111,114,40,96,73,110,115,116,97,110,99,101,32,119,105,116,104,32,105,100,32,36,123,116,125,32,100,111,101,115,32,110,111,116,32,101,120,105,115,116,46,96,41,59,114,101,116,117,114,110,32,111,46,115,116,97,116,101,77,97,99,104,105,110,101,80,111,115,116,80,111,105,110,116,101,114,85,112,69,118,101,110,116,40,101,44,114,41,125,44,115,116,97,116,101,77,97,99,104,105,110,101,80,111,115,116,80,111,105,110,116,101,114,68,111,119,110,69,118,101,110,116,40,110,41,123,108,101,116,32,116,61,110,46,112,97,114,97,109,115,46,105,110,115,116,97,110,99,101,73,100,44,101,61,110,46,112,97,114,97,109,115,46,120,44,114,61,110,46,112,97,114,97,109,115,46,121,44,111,61,97,46,103,101,116,40,116,41,59,105,102,40,33,111,41,116,104,114,111,119,32,110,101,119,32,69,114,114,111,114,40,96,73,110,115,116,97,110,99,101,32,119,105,116,104,32,105,100,32,36,123,116,125,32,100,111,101,115,32,110,111,116,32,101,120,105,115,116,46,96,41,59,114,101,116,117,114,110,32,111,46,115,116,97,116,101,77,97,99,104,105,110,101,80,111,115,116,80,111,105,110,116,101,114,68,111,119,110,69,118,101,110,116,40,101,44,114,41,125,44,115,116,97,116,101,77,97,99,104,105,110,101,80,111,115,116,80,111,105,110,116,101,114,77,111,118,101,69,118,101,110,116,40,110,41,123,108,101,116,32,116,61,110,46,112,97,114,97,109,115,46,105,110,115,116,97,110,99,101,73,100,44,101,61,110,46,112,97,114,97,109,115,46,120,44,114,61,110,46,112,97,114,97,109,115,46,121,44,111,61,97,46,103,101,116,40,116,41,59,105,102,40,33,111,41,116,104,114,111,119,32,110,101,119,32,69,114,114,111,114,40,96,73,110,115,116,97,110,99,101,32,119,105,116,104,32,105,100,32,36,123,116,125,32,100,111,101,115,32,110,111,116,32,101,120,105,115,116,46,96,41,59,114,101,116,117,114,110,32,111,46,115,116,97,116,101,77,97,99,104,105,110,101,80,111,115,116,80,111,105,110,116,101,114,77,111,118,101,69,118,101,110,116,40,101,44,114,41,125,44,115,116,97,116,101,77,97,99,104,105,110,101,80,111,115,116,80,111,105,110,116,101,114,69,110,116,101,114,69,118,101,110,116,40,110,41,123,108,101,116,32,116,61,110,46,112,97,114,97,109,115,46,105,110,115,116,97,110,99,101,73,100,44,101,61,110,46,112,97,114,97,109,115,46,120,44,114,61,110,46,112,97,114,97,109,115,46,121,44,111,61,97,46,103,101,116,40,116,41,59,105,102,40,33,111,41,116,104,114,111,119,32,110,101,119,32,69,114,114,111,114,40,96,73,110,115,116,97,110,99,101,32,119,105,116,104,32,105,100,32,36,123,116,125,32,100,111,101,115,32,110,111,116,32,101,120,105,115,116,46,96,41,59,114,101,116,117,114,110,32,111,46,115,116,97,116,101,77,97,99,104,105,110,101,80,111,115,116,80,111,105,110,116,101,114,69,110,116,101,114,69,118,101,110,116,40,101,44,114,41,125,44,115,116,97,116,101,77,97,99,104,105,110,101,80,111,115,116,80,111,105,110,116,101,114,69,120,105,116,69,118,101,110,116,40,110,41,123,108,101,116,32,116,61,110,46,112,97,114,97,109,115,46,105,110,115,116,97,110,99,101,73,100,44,101,61,110,46,112,97,114,97,109,115,46,120,44,114,61,110,46,112,97,114,97,109,115,46,121,44,111,61,97,46,103,101,116,40,116,41,59,105,102,40,33,111,41,116,104,114,111,119,32,110,101,119,32,69,114,114,111,114,40,96,73,110,115,116,97,110,99,101,32,119,105,116,104,32,105,100,32,36,123,116,125,32,100,111,101,115,32,110,111,116,32,101,120,105,115,116,46,96,41,59,114,101,116,117,114,110,32,111,46,115,116,97,116,101,77,97,99,104,105,110,101,80,111,115,116,80,111,105,110,116,101,114,69,120,105,116,69,118,101,110,116,40,101,44,114,41,125,44,115,116,97,116,101,77,97,99,104,105,110,101,83,101,116,78,117,109,101,114,105,99,73,110,112,117,116,58,110,61,62,123,108,101,116,32,116,61,110,46,112,97,114,97,109,115,46,105,110,115,116,97,110,99,101,73,100,44,101,61,110,46,112,97,114,97,109,115,46,110,97,109,101,44,114,61,110,46,112,97,114,97,109,115,46,118,97,108,117,101,44,111,61,97,46,103,101,116,40,116,41,59,105,102,40,33,111,41,116,104,114,111,119,32,110,101,119,32,69,114,114,111,114,40,96,73,110,115,116,97,110,99,101,32,119,105,116,104,32,105,100,32,36,123,116,125,32,100,111,101,115,32,110,111,116,32,101,120,105,115,116,46,96,41,59,114,101,116,117,114,110,32,111,46,115,116,97,116,101,77,97,99,104,105,110,101,83,101,116,78,117,109,101,114,105,99,73,110,112,117,116,40,101,44,114,41,125,44,115,116,97,116,101,77,97,99,104,105,110,101,83,101,116,66,111,111,108,101,97,110,73,110,112,117,116,58,110,61,62,123,108,101,116,32,116,61,110,46,112,97,114,97,109,115,46,105,110,115,116,97,110,99,101,73,100,44,101,61,110,46,112,97,114,97,109,115,46,110,97,109,101,44,114,61,110,46,112,97,114,97,109,115,46,118,97,108,117,101,44,111,61,97,46,103,101,116,40,116,41,59,105,102,40,33,111,41,116,104,114,111,119,32,110,101,119,32,69,114,114,111,114,40,96,73,110,115,116,97,110,99,101,32,119,105,116,104,32,105,100,32,36,123,116,125,32,100,111,101,115,32,110,111,116,32,101,120,105,115,116,46,96,41,59,114,101,116,117,114,110,32,111,46,115,116,97,116,101,77,97,99,104,105,110,101,83,101,116,66,111,111,108,101,97,110,73,110,112,117,116,40,101,44,114,41,125,44,115,116,97,116,101,77,97,99,104,105,110,101,83,101,116,67,111,110,102,105,103,58,110,61,62,123,108,101,116,32,116,61,110,46,112,97,114,97,109,115,46,105,110,115,116,97,110,99,101,73,100,44,101,61,110,46,112,97,114,97,109,115,46,99,111,110,102,105,103,44,114,61,97,46,103,101,116,40,116,41,59,105,102,40,33,114,41,116,104,114,111,119,32,110,101,119,32,69,114,114,111,114,40,96,73,110,115,116,97,110,99,101,32,119,105,116,104,32,105,100,32,36,123,116,125,32,100,111,101,115,32,110,111,116,32,101,120,105,115,116,46,96,41,59,114,46,115,116,97,116,101,77,97,99,104,105,110,101,83,101,116,67,111,110,102,105,103,40,101,41,125,44,115,116,97,116,101,77,97,99,104,105,110,101,83,101,116,83,116,114,105,110,103,73,110,112,117,116,58,110,61,62,123,108,101,116,32,116,61,110,46,112,97,114,97,109,115,46,105,110,115,116,97,110,99,101,73,100,44,101,61,110,46,112,97,114,97,109,115,46,110,97,109,101,44,114,61,110,46,112,97,114,97,109,115,46,118,97,108,117,101,44,111,61,97,46,103,101,116,40,116,41,59,105,102,40,33,111,41,116,104,114,111,119,32,110,101,119,32,69,114,114,111,114,40,96,73,110,115,116,97,110,99,101,32,119,105,116,104,32,105,100,32,36,123,116,125,32,100,111,101,115,32,110,111,116,32,101,120,105,115,116,46,96,41,59,114,101,116,117,114,110,32,111,46,115,116,97,116,101,77,97,99,104,105,110,101,83,101,116,83,116,114,105,110,103,73,110,112,117,116,40,101,44,114,41,125,44,115,116,97,116,101,77,97,99,104,105,110,101,71,101,116,78,117,109,101,114,105,99,73,110,112,117,116,58,110,61,62,123,108,101,116,32,116,61,110,46,112,97,114,97,109,115,46,105,110,115,116,97,110,99,101,73,100,44,101,61,110,46,112,97,114,97,109,115,46,110,97,109,101,44,114,61,97,46,103,101,116,40,116,41,59,105,102,40,33,114,41,116,104,114,111,119,32,110,101,119,32,69,114,114,111,114,40,96,73,110,115,116,97,110,99,101,32,119,105,116,104,32,105,100,32,36,123,116,125,32,100,111,101,115,32,110,111,116,32,101,120,105,115,116,46,96,41,59,114,101,116,117,114,110,32,114,46,115,116,97,116,101,77,97,99,104,105,110,101,71,101,116,78,117,109,101,114,105,99,73,110,112,117,116,40,101,41,125,44,115,116,97,116,101,77,97,99,104,105,110,101,71,101,116,66,111,111,108,101,97,110,73,110,112,117,116,58,110,61,62,123,108,101,116,32,116,61,110,46,112,97,114,97,109,115,46,105,110,115,116,97,110,99,101,73,100,44,101,61,110,46,112,97,114,97,109,115,46,110,97,109,101,44,114,61,97,46,103,101,116,40,116,41,59,105,102,40,33,114,41,116,104,114,111,119,32,110,101,119,32,69,114,114,111,114,40,96,73,110,115,116,97,110,99,101,32,119,105,116,104,32,105,100,32,36,123,116,125,32,100,111,101,115,32,110,111,116,32,101,120,105,115,116,46,96,41,59,114,101,116,117,114,110,32,114,46,115,116,97,116,101,77,97,99,104,105,110,101,71,101,116,66,111,111,108,101,97,110,73,110,112,117,116,40,101,41,125,44,115,116,97,116,101,77,97,99,104,105,110,101,71,101,116,83,116,114,105,110,103,73,110,112,117,116,58,110,61,62,123,108,101,116,32,116,61,110,46,112,97,114,97,109,115,46,105,110,115,116,97,110,99,101,73,100,44,101,61,110,46,112,97,114,97,109,115,46,110,97,109,101,44,114,61,97,46,103,101,116,40,116,41,59,105,102,40,33,114,41,116,104,114,111,119,32,110,101,119,32,69,114,114,111,114,40,96,73,110,115,116,97,110,99,101,32,119,105,116,104,32,105,100,32,36,123,116,125,32,100,111,101,115,32,110,111,116,32,101,120,105,115,116,46,96,41,59,114,101,116,117,114,110,32,114,46,115,116,97,116,101,77,97,99,104,105,110,101,71,101,116,83,116,114,105,110,103,73,110,112,117,116,40,101,41,125,44,115,116,97,116,101,77,97,99,104,105,110,101,71,101,116,73,110,112,117,116,115,58,110,61,62,123,108,101,116,32,116,61,110,46,112,97,114,97,109,115,46,105,110,115,116,97,110,99,101,73,100,44,101,61,97,46,103,101,116,40,116,41,59,105,102,40,33,101,41,116,104,114,111,119,32,110,101,119,32,69,114,114,111,114,40,96,73,110,115,116,97,110,99,101,32,119,105,116,104,32,105,100,32,36,123,116,125,32,100,111,101,115,32,110,111,116,32,101,120,105,115,116,46,96,41,59,114,101,116,117,114,110,32,101,46,115,116,97,116,101,77,97,99,104,105,110,101,71,101,116,73,110,112,117,116,115,40,41,125,44,115,116,97,116,101,77,97,99,104,105,110,101,70,105,114,101,69,118,101,110,116,58,110,61,62,123,108,101,116,32,116,61,110,46,112,97,114,97,109,115,46,105,110,115,116,97,110,99,101,73,100,44,101,61,110,46,112,97,114,97,109,115,46,110,97,109,101,44,114,61,97,46,103,101,116,40,116,41,59,105,102,40,33,114,41,116,104,114,111,119,32,110,101,119,32,69,114,114,111,114,40,96,73,110,115,116,97,110,99,101,32,119,105,116,104,32,105,100,32,36,123,116,125,32,100,111,101,115,32,110,111,116,32,101,120,105,115,116,46,96,41,59,114,101,116,117,114,110,32,114,46,115,116,97,116,101,77,97,99,104,105,110,101,70,105,114,101,69,118,101,110,116,40,101,41,125,44,115,116,97,116,101,77,97,99,104,105,110,101,71,101,116,83,116,97,116,117,115,58,110,61,62,123,108,101,116,32,116,61,110,46,112,97,114,97,109,115,46,105,110,115,116,97,110,99,101,73,100,44,101,61,97,46,103,101,116,40,116,41,59,105,102,40,33,101,41,116,104,114,111,119,32,110,101,119,32,69,114,114,111,114,40,96,73,110,115,116,97,110,99,101,32,119,105,116,104,32,105,100,32,36,123,116,125,32,100,111,101,115,32,110,111,116,32,101,120,105,115,116,46,96,41,59,114,101,116,117,114,110,32,101,46,115,116,97,116,101,77,97,99,104,105,110,101,71,101,116,83,116,97,116,117,115,40,41,125,44,115,116,97,116,101,77,97,99,104,105,110,101,71,101,116,67,117,114,114,101,110,116,83,116,97,116,101,58,110,61,62,123,108,101,116,32,116,61,110,46,112,97,114,97,109,115,46,105,110,115,116,97,110,99,101,73,100,44,101,61,97,46,103,101,116,40,116,41,59,105,102,40,33,101,41,116,104,114,111,119,32,110,101,119,32,69,114,114,111,114,40,96,73,110,115,116,97,110,99,101,32,119,105,116,104,32,105,100,32,36,123,116,125,32,100,111,101,115,32,110,111,116,32,101,120,105,115,116,46,96,41,59,114,101,116,117,114,110,32,101,46,115,116,97,116,101,77,97,99,104,105,110,101,71,101,116,67,117,114,114,101,110,116,83,116,97,116,101,40,41,125,44,115,116,97,116,101,77,97,99,104,105,110,101,71,101,116,65,99,116,105,118,101,73,100,58,110,61,62,123,108,101,116,32,116,61,110,46,112,97,114,97,109,115,46,105,110,115,116,97,110,99,101,73,100,44,101,61,97,46,103,101,116,40,116,41,59,105,102,40,33,101,41,116,104,114,111,119,32,110,101,119,32,69,114,114,111,114,40,96,73,110,115,116,97,110,99,101,32,119,105,116,104,32,105,100,32,36,123,116,125,32,100,111,101,115,32,110,111,116,32,101,120,105,115,116,46,96,41,59,114,101,116,117,114,110,32,101,46,115,116,97,116,101,77,97,99,104,105,110,101,71,101,116,65,99,116,105,118,101,73,100,40,41,125,44,115,116,97,116,101,77,97,99,104,105,110,101,79,118,101,114,114,105,100,101,83,116,97,116,101,58,110,61,62,123,108,101,116,32,116,61,110,46,112,97,114,97,109,115,46,105,110,115,116,97,110,99,101,73,100,44,101,61,110,46,112,97,114,97,109,115,46,115,116,97,116,101,44,114,61,110,46,112,97,114,97,109,115,46,105,109,109,101,100,105,97,116,101,44,111,61,97,46,103,101,116,40,116,41,59,105,102,40,33,111,41,116,104,114,111,119,32,110,101,119,32,69,114,114,111,114,40,96,73,110,115,116,97,110,99,101,32,119,105,116,104,32,105,100,32,36,123,116,125,32,100,111,101,115,32,110,111,116,32,101,120,105,115,116,46,96,41,59,114,101,116,117,114,110,32,111,46,115,116,97,116,101,77,97,99,104,105,110,101,79,118,101,114,114,105,100,101,83,116,97,116,101,40,101,44,114,41,125,44,115,116,97,116,101,77,97,99,104,105,110,101,71,101,116,58,110,61,62,123,108,101,116,32,116,61,110,46,112,97,114,97,109,115,46,105,110,115,116,97,110,99,101,73,100,44,101,61,110,46,112,97,114,97,109,115,46,115,116,97,116,101,77,97,99,104,105,110,101,73,100,44,114,61,97,46,103,101,116,40,116,41,59,105,102,40,33,114,41,116,104,114,111,119,32,110,101,119,32,69,114,114,111,114,40,96,73,110,115,116,97,110,99,101,32,119,105,116,104,32,105,100,32,36,123,116,125,32,100,111,101,115,32,110,111,116,32,101,120,105,115,116,46,96,41,59,114,101,116,117,114,110,32,114,46,115,116,97,116,101,77,97,99,104,105,110,101,71,101,116,40,101,41,125,44,99,114,101,97,116,101,58,110,61,62,123,108,101,116,32,116,61,110,46,112,97,114,97,109,115,46,105,110,115,116,97,110,99,101,73,100,44,101,61,110,46,112,97,114,97,109,115,46,99,111,110,102,105,103,44,114,61,110,46,112,97,114,97,109,115,46,119,105,100,116,104,44,111,61,110,46,112,97,114,97,109,115,46,104,101,105,103,104,116,59,105,102,40,97,46,104,97,115,40,116,41,41,116,104,114,111,119,32,110,101,119,32,69,114,114,111,114,40,96,73,110,115,116,97,110,99,101,32,119,105,116,104,32,105,100,32,36,123,116,125,32,97,108,114,101,97,100,121,32,101,120,105,115,116,115,46,96,41,59,108,101,116,32,105,61,110,101,119,32,67,40,101,41,59,114,101,116,117,114,110,32,105,46,99,97,110,118,97,115,38,38,40,105,46,99,97,110,118,97,115,46,104,101,105,103,104,116,61,111,44,105,46,99,97,110,118,97,115,46,119,105,100,116,104,61,114,41,44,97,46,115,101,116,40,116,44,105,41,44,91,34,99,111,109,112,108,101,116,101,34,44,34,102,114,97,109,101,34,44,34,108,111,97,100,34,44,34,108,111,97,100,69,114,114,111,114,34,44,34,114,101,110,100,101,114,69,114,114,111,114,34,44,34,108,111,111,112,34,44,34,112,97,117,115,101,34,44,34,112,108,97,121,34,44,34,115,116,111,112,34,44,34,100,101,115,116,114,111,121,34,44,34,102,114,101,101,122,101,34,44,34,117,110,102,114,101,101,122,101,34,44,34,114,101,110,100,101,114,34,44,34,114,101,97,100,121,34,44,34,115,116,97,116,101,77,97,99,104,105,110,101,83,116,97,114,116,34,44,34,115,116,97,116,101,77,97,99,104,105,110,101,83,116,111,112,34,44,34,115,116,97,116,101,77,97,99,104,105,110,101,84,114,97,110,115,105,116,105,111,110,34,44,34,115,116,97,116,101,77,97,99,104,105,110,101,83,116,97,116,101,69,110,116,101,114,101,100,34,44,34,115,116,97,116,101,77,97,99,104,105,110,101,83,116,97,116,101,69,120,105,116,34,44,34,115,116,97,116,101,77,97,99,104,105,110,101,67,117,115,116,111,109,69,118,101,110,116,34,44,34,115,116,97,116,101,77,97,99,104,105,110,101,69,114,114,111,114,34,44,34,115,116,97,116,101,77,97,99,104,105,110,101,66,111,111,108,101,97,110,73,110,112,117,116,86,97,108,117,101,67,104,97,110,103,101,34,44,34,115,116,97,116,101,77,97,99,104,105,110,101,78,117,109,101,114,105,99,73,110,112,117,116,86,97,108,117,101,67,104,97,110,103,101,34,44,34,115,116,97,116,101,77,97,99,104,105,110,101,83,116,114,105,110,103,73,110,112,117,116,86,97,108,117,101,67,104,97,110,103,101,34,44,34,115,116,97,116,101,77,97,99,104,105,110,101,73,110,112,117,116,70,105,114,101,100,34,44,34,115,116,97,116,101,77,97,99,104,105,110,101,73,110,116,101,114,110,97,108,77,101,115,115,97,103,101,34,93,46,102,111,114,69,97,99,104,40,100,61,62,123,105,46,97,100,100,69,118,101,110,116,76,105,115,116,101,110,101,114,40,100,44,121,116,91,100,93,40,116,41,41,125,41,44,123,105,110,115,116,97,110,99,101,73,100,58,116,125,125,44,100,101,115,116,114,111,121,58,110,61,62,123,108,101,116,32,116,61,110,46,112,97,114,97,109,115,46,105,110,115,116,97,110,99,101,73,100,44,101,61,97,46,103,101,116,40,116,41,59,101,38,38,40,101,46,100,101,115,116,114,111,121,40,41,44,97,46,100,101,108,101,116,101,40,116,41,41,125,44,102,114,101,101,122,101,58,110,61,62,123,108,101,116,32,116,61,110,46,112,97,114,97,109,115,46,105,110,115,116,97,110,99,101,73,100,44,101,61,97,46,103,101,116,40,116,41,59,105,102,40,33,101,41,116,104,114,111,119,32,110,101,119,32,69,114,114,111,114,40,96,73,110,115,116,97,110,99,101,32,119,105,116,104,32,105,100,32,36,123,116,125,32,100,111,101,115,32,110,111,116,32,101,120,105,115,116,46,96,41,59,101,46,102,114,101,101,122,101,40,41,125,44,108,111,97,100,58,110,61,62,123,108,101,116,32,116,61,110,46,112,97,114,97,109,115,46,105,110,115,116,97,110,99,101,73,100,44,101,61,110,46,112,97,114,97,109,115,46,99,111,110,102,105,103,44,114,61,97,46,103,101,116,40,116,41,59,105,102,40,33,114,41,116,104,114,111,119,32,110,101,119,32,69,114,114,111,114,40,96,73,110,115,116,97,110,99,101,32,119,105,116,104,32,105,100,32,36,123,116,125,32,100,111,101,115,32,110,111,116,32,101,120,105,115,116,46,96,41,59,114,46,108,111,97,100,40,101,41,125,44,108,111,97,100,65,110,105,109,97,116,105,111,110,58,110,61,62,123,108,101,116,32,116,61,110,46,112,97,114,97,109,115,46,105,110,115,116,97,110,99,101,73,100,44,101,61,110,46,112,97,114,97,109,115,46,97,110,105,109,97,116,105,111,110,73,100,44,114,61,97,46,103,101,116,40,116,41,59,105,102,40,33,114,41,116,104,114,111,119,32,110,101,119,32,69,114,114,111,114,40,96,73,110,115,116,97,110,99,101,32,119,105,116,104,32,105,100,32,36,123,116,125,32,100,111,101,115,32,110,111,116,32,101,120,105,115,116,46,96,41,59,114,46,108,111,97,100,65,110,105,109,97,116,105,111,110,40,101,41,125,44,115,101,116,84,104,101,109,101,58,110,61,62,123,108,101,116,32,116,61,110,46,112,97,114,97,109,115,46,105,110,115,116,97,110,99,101,73,100,44,101,61,110,46,112,97,114,97,109,115,46,116,104,101,109,101,73,100,44,114,61,97,46,103,101,116,40,116,41,59,105,102,40,33,114,41,116,104,114,111,119,32,110,101,119,32,69,114,114,111,114,40,96,73,110,115,116,97,110,99,101,32,119,105,116,104,32,105,100,32,36,123,116,125,32,100,111,101,115,32,110,111,116,32,101,120,105,115,116,46,96,41,59,114,101,116,117,114,110,32,114,46,115,101,116,84,104,101,109,101,40,101,41,125,44,115,101,116,84,104,101,109,101,68,97,116,97,58,110,61,62,123,108,101,116,32,116,61,110,46,112,97,114,97,109,115,46,105,110,115,116,97,110,99,101,73,100,44,101,61,110,46,112,97,114,97,109,115,46,116,104,101,109,101,68,97,116,97,44,114,61,97,46,103,101,116,40,116,41,59,105,102,40,33,114,41,116,104,114,111,119,32,110,101,119,32,69,114,114,111,114,40,96,73,110,115,116,97,110,99,101,32,119,105,116,104,32,105,100,32,36,123,116,125,32,100,111,101,115,32,110,111,116,32,101,120,105,115,116,46,96,41,59,114,101,116,117,114,110,32,114,46,115,101,116,84,104,101,109,101,68,97,116,97,40,101,41,125,44,112,97,117,115,101,58,110,61,62,123,108,101,116,32,116,61,110,46,112,97,114,97,109,115,46,105,110,115,116,97,110,99,101,73,100,44,101,61,97,46,103,101,116,40,116,41,59,105,102,40,33,101,41,116,104,114,111,119,32,110,101,119,32,69,114,114,111,114,40,96,73,110,115,116,97,110,99,101,32,119,105,116,104,32,105,100,32,36,123,116,125,32,100,111,101,115,32,110,111,116,32,101,120,105,115,116,46,96,41,59,114,101,116,117,114,110,32,101,46,112,97,117,115,101,40,41,125,44,112,108,97,121,58,110,61,62,123,108,101,116,32,116,61,110,46,112,97,114,97,109,115,46,105,110,115,116,97,110,99,101,73,100,44,101,61,97,46,103,101,116,40,116,41,59,105,102,40,33,101,41,116,104,114,111,119,32,110,101,119,32,69,114,114,111,114,40,96,73,110,115,116,97,110,99,101,32,119,105,116,104,32,105,100,32,36,123,116,125,32,100,111,101,115,32,110,111,116,32,101,120,105,115,116,46,96,41,59,114,101,116,117,114,110,32,101,46,112,108,97,121,40,41,125,44,114,101,103,105,115,116,101,114,70,111,110,116,58,97,115,121,110,99,32,110,61,62,123,108,101,116,123,102,111,110,116,78,97,109,101,58,116,44,102,111,110,116,83,111,117,114,99,101,58,101,125,61,110,46,112,97,114,97,109,115,59,114,101,116,117,114,110,32,67,46,114,101,103,105,115,116,101,114,70,111,110,116,40,116,44,101,41,125,44,114,101,115,105,122,101,58,110,61,62,123,108,101,116,32,116,61,110,46,112,97,114,97,109,115,46,105,110,115,116,97,110,99,101,73,100,44,101,61,110,46,112,97,114,97,109,115,46,119,105,100,116,104,44,114,61,110,46,112,97,114,97,109,115,46,104,101,105,103,104,116,44,111,61,97,46,103,101,116,40,116,41,59,105,102,40,33,111,41,116,104,114,111,119,32,110,101,119,32,69,114,114,111,114,40,96,73,110,115,116,97,110,99,101,32,119,105,116,104,32,105,100,32,36,123,116,125,32,100,111,101,115,32,110,111,116,32,101,120,105,115,116,46,96,41,59,111,46,99,97,110,118,97,115,38,38,40,111,46,99,97,110,118,97,115,46,104,101,105,103,104,116,61,114,44,111,46,99,97,110,118,97,115,46,119,105,100,116,104,61,101,41,44,111,46,114,101,115,105,122,101,40,41,125,44,115,101,116,66,97,99,107,103,114,111,117,110,100,67,111,108,111,114,58,110,61,62,123,108,101,116,32,116,61,110,46,112,97,114,97,109,115,46,105,110,115,116,97,110,99,101,73,100,44,101,61,110,46,112,97,114,97,109,115,46,98,97,99,107,103,114,111,117,110,100,67,111,108,111,114,44,114,61,97,46,103,101,116,40,116,41,59,105,102,40,33,114,41,116,104,114,111,119,32,110,101,119,32,69,114,114,111,114,40,96,73,110,115,116,97,110,99,101,32,119,105,116,104,32,105,100,32,36,123,116,125,32,100,111,101,115,32,110,111,116,32,101,120,105,115,116,46,96,41,59,114,46,115,101,116,66,97,99,107,103,114,111,117,110,100,67,111,108,111,114,40,101,41,125,44,115,101,116,83,108,111,116,115,58,110,61,62,123,108,101,116,32,116,61,110,46,112,97,114,97,109,115,46,105,110,115,116,97,110,99,101,73,100,44,101,61,97,46,103,101,116,40,116,41,59,105,102,40,33,101,41,116,104,114,111,119,32,110,101,119,32,69,114,114,111,114,40,96,73,110,115,116,97,110,99,101,32,119,105,116,104,32,105,100,32,36,123,116,125,32,100,111,101,115,32,110,111,116,32,101,120,105,115,116,46,96,41,59,101,46,115,101,116,83,108,111,116,115,40,110,46,112,97,114,97,109,115,46,115,108,111,116,115,41,125,44,103,101,116,83,108,111,116,73,100,115,58,110,61,62,123,108,101,116,32,116,61,110,46,112,97,114,97,109,115,46,105,110,115,116,97,110,99,101,73,100,44,101,61,97,46,103,101,116,40,116,41,59,105,102,40,33,101,41,116,104,114,111,119,32,110,101,119,32,69,114,114,111,114,40,96,73,110,115,116,97,110,99,101,32,119,105,116,104,32,105,100,32,36,123,116,125,32,100,111,101,115,32,110,111,116,32,101,120,105,115,116,46,96,41,59,114,101,116,117,114,110,32,101,46,103,101,116,83,108,111,116,73,100,115,40,41,125,44,103,101,116,83,108,111,116,84,121,112,101,58,110,61,62,123,108,101,116,32,116,61,110,46,112,97,114,97,109,115,46,105,110,115,116,97,110,99,101,73,100,44,101,61,97,46,103,101,116,40,116,41,59,105,102,40,33,101,41,116,104,114,111,119,32,110,101,119,32,69,114,114,111,114,40,96,73,110,115,116,97,110,99,101,32,119,105,116,104,32,105,100,32,36,123,116,125,32,100,111,101,115,32,110,111,116,32,101,120,105,115,116,46,96,41,59,114,101,116,117,114,110,32,101,46,103,101,116,83,108,111,116,84,121,112,101,40,110,46,112,97,114,97,109,115,46,115,108,111,116,73,100,41,125,44,103,101,116,83,108,111,116,58,110,61,62,123,108,101,116,32,116,61,110,46,112,97,114,97,109,115,46,105,110,115,116,97,110,99,101,73,100,44,101,61,97,46,103,101,116,40,116,41,59,105,102,40,33,101,41,116,104,114,111,119,32,110,101,119,32,69,114,114,111,114,40,96,73,110,115,116,97,110,99,101,32,119,105,116,104,32,105,100,32,36,123,116,125,32,100,111,101,115,32,110,111,116,32,101,120,105,115,116,46,96,41,59,114,101,116,117,114,110,32,101,46,103,101,116,83,108,111,116,40,110,46,112,97,114,97,109,115,46,115,108,111,116,73,100,41,125,44,103,101,116,83,108,111,116,115,58,110,61,62,123,108,101,116,32,116,61,110,46,112,97,114,97,109,115,46,105,110,115,116,97,110,99,101,73,100,44,101,61,97,46,103,101,116,40,116,41,59,105,102,40,33,101,41,116,104,114,111,119,32,110,101,119,32,69,114,114,111,114,40,96,73,110,115,116,97,110,99,101,32,119,105,116,104,32,105,100,32,36,123,116,125,32,100,111,101,115,32,110,111,116,32,101,120,105,115,116,46,96,41,59,114,101,116,117,114,110,32,101,46,103,101,116,83,108,111,116,115,40,41,125,44,115,101,116,67,111,108,111,114,83,108,111,116,58,110,61,62,123,108,101,116,32,116,61,110,46,112,97,114,97,109,115,46,105,110,115,116,97,110,99,101,73,100,44,101,61,97,46,103,101,116,40,116,41,59,105,102,40,33,101,41,116,104,114,111,119,32,110,101,119,32,69,114,114,111,114,40,96,73,110,115,116,97,110,99,101,32,119,105,116,104,32,105,100,32,36,123,116,125,32,100,111,101,115,32,110,111,116,32,101,120,105,115,116,46,96,41,59,114,101,116,117,114,110,32,101,46,115,101,116,67,111,108,111,114,83,108,111,116,40,110,46,112,97,114,97,109,115,46,115,108,111,116,73,100,44,110,46,112,97,114,97,109,115,46,118,97,108,117,101,41,125,44,115,101,116,83,99,97,108,97,114,83,108,111,116,58,110,61,62,123,108,101,116,32,116,61,110,46,112,97,114,97,109,115,46,105,110,115,116,97,110,99,101,73,100,44,101,61,97,46,103,101,116,40,116,41,59,105,102,40,33,101,41,116,104,114,111,119,32,110,101,119,32,69,114,114,111,114,40,96,73,110,115,116,97,110,99,101,32,119,105,116,104,32,105,100,32,36,123,116,125,32,100,111,101,115,32,110,111,116,32,101,120,105,115,116,46,96,41,59,114,101,116,117,114,110,32,101,46,115,101,116,83,99,97,108,97,114,83,108,111,116,40,110,46,112,97,114,97,109,115,46,115,108,111,116,73,100,44,110,46,112,97,114,97,109,115,46,118,97,108,117,101,41,125,44,115,101,116,86,101,99,116,111,114,83,108,111,116,58,110,61,62,123,108,101,116,32,116,61,110,46,112,97,114,97,109,115,46,105,110,115,116,97,110,99,101,73,100,44,101,61,97,46,103,101,116,40,116,41,59,105,102,40,33,101,41,116,104,114,111,119,32,110,101,119,32,69,114,114,111,114,40,96,73,110,115,116,97,110,99,101,32,119,105,116,104,32,105,100,32,36,123,116,125,32,100,111,101,115,32,110,111,116,32,101,120,105,115,116,46,96,41,59,114,101,116,117,114,110,32,101,46,115,101,116,86,101,99,116,111,114,83,108,111,116,40,110,46,112,97,114,97,109,115,46,115,108,111,116,73,100,44,110,46,112,97,114,97,109,115,46,118,97,108,117,101,41,125,44,115,101,116,71,114,97,100,105,101,110,116,83,108,111,116,58,110,61,62,123,108,101,116,32,116,61,110,46,112,97,114,97,109,115,46,105,110,115,116,97,110,99,101,73,100,44,101,61,97,46,103,101,116,40,116,41,59,105,102,40,33,101,41,116,104,114,111,119,32,110,101,119,32,69,114,114,111,114,40,96,73,110,115,116,97,110,99,101,32,119,105,116,104,32,105,100,32,36,123,116,125,32,100,111,101,115,32,110,111,116,32,101,120,105,115,116,46,96,41,59,114,101,116,117,114,110,32,101,46,115,101,116,71,114,97,100,105,101,110,116,83,108,111,116,40,110,46,112,97,114,97,109,115,46,115,108,111,116,73,100,44,110,46,112,97,114,97,109,115,46,118,97,108,117,101,44,110,46,112,97,114,97,109,115,46,99,111,108,111,114,83,116,111,112,67,111,117,110,116,41,125,44,115,101,116,84,101,120,116,83,108,111,116,58,110,61,62,123,108,101,116,32,116,61,110,46,112,97,114,97,109,115,46,105,110,115,116,97,110,99,101,73,100,44,101,61,97,46,103,101,116,40,116,41,59,105,102,40,33,101,41,116,104,114,111,119,32,110,101,119,32,69,114,114,111,114,40,96,73,110,115,116,97,110,99,101,32,119,105,116,104,32,105,100,32,36,123,116,125,32,100,111,101,115,32,110,111,116,32,101,120,105,115,116,46,96,41,59,114,101,116,117,114,110,32,101,46,115,101,116,84,101,120,116,83,108,111,116,40,110,46,112,97,114,97,109,115,46,115,108,111,116,73,100,44,110,46,112,97,114,97,109,115,46,118,97,108,117,101,41,125,44,114,101,115,101,116,83,108,111,116,58,110,61,62,123,108,101,116,32,116,61,110,46,112,97,114,97,109,115,46,105,110,115,116,97,110,99,101,73,100,44,101,61,97,46,103,101,116,40,116,41,59,105,102,40,33,101,41,116,104,114,111,119,32,110,101,119,32,69,114,114,111,114,40,96,73,110,115,116,97,110,99,101,32,119,105,116,104,32,105,100,32,36,123,116,125,32,100,111,101,115,32,110,111,116,32,101,120,105,115,116,46,96,41,59,114,101,116,117,114,110,32,101,46,114,101,115,101,116,83,108,111,116,40,110,46,112,97,114,97,109,115,46,115,108,111,116,73,100,41,125,44,99,108,101,97,114,83,108,111,116,58,110,61,62,123,108,101,116,32,116,61,110,46,112,97,114,97,109,115,46,105,110,115,116,97,110,99,101,73,100,44,101,61,97,46,103,101,116,40,116,41,59,105,102,40,33,101,41,116,104,114,111,119,32,110,101,119,32,69,114,114,111,114,40,96,73,110,115,116,97,110,99,101,32,119,105,116,104,32,105,100,32,36,123,116,125,32,100,111,101,115,32,110,111,116,32,101,120,105,115,116,46,96,41,59,114,101,116,117,114,110,32,101,46,99,108,101,97,114,83,108,111,116,40,110,46,112,97,114,97,109,115,46,115,108,111,116,73,100,41,125,44,114,101,115,101,116,83,108,111,116,115,58,110,61,62,123,108,101,116,32,116,61,110,46,112,97,114,97,109,115,46,105,110,115,116,97,110,99,101,73,100,44,101,61,97,46,103,101,116,40,116,41,59,105,102,40,33,101,41,116,104,114,111,119,32,110,101,119,32,69,114,114,111,114,40,96,73,110,115,116,97,110,99,101,32,119,105,116,104,32,105,100,32,36,123,116,125,32,100,111,101,115,32,110,111,116,32,101,120,105,115,116,46,96,41,59,114,101,116,117,114,110,32,101,46,114,101,115,101,116,83,108,111,116,115,40,41,125,44,99,108,101,97,114,83,108,111,116,115,58,110,61,62,123,108,101,116,32,116,61,110,46,112,97,114,97,109,115,46,105,110,115,116,97,110,99,101,73,100,44,101,61,97,46,103,101,116,40,116,41,59,105,102,40,33,101,41,116,104,114,111,119,32,110,101,119,32,69,114,114,111,114,40,96,73,110,115,116,97,110,99,101,32,119,105,116,104,32,105,100,32,36,123,116,125,32,100,111,101,115,32,110,111,116,32,101,120,105,115,116,46,96,41,59,114,101,116,117,114,110,32,101,46,99,108,101,97,114,83,108,111,116,115,40,41,125,44,115,101,116,70,114,97,109,101,58,110,61,62,123,108,101,116,32,116,61,110,46,112,97,114,97,109,115,46,105,110,115,116,97,110,99,101,73,100,44,101,61,110,46,112,97,114,97,109,115,46,102,114,97,109,101,44,114,61,97,46,103,101,116,40,116,41,59,105,102,40,33,114,41,116,104,114,111,119,32,110,101,119,32,69,114,114,111,114,40,96,73,110,115,116,97,110,99,101,32,119,105,116,104,32,105,100,32,36,123,116,125,32,100,111,101,115,32,110,111,116,32,101,120,105,115,116,46,96,41,59,114,46,115,101,116,70,114,97,109,101,40,101,41,125,44,115,101,116,77,111,100,101,58,110,61,62,123,108,101,116,32,116,61,110,46,112,97,114,97,109,115,46,105,110,115,116,97,110,99,101,73,100,44,101,61,110,46,112,97,114,97,109,115,46,109,111,100,101,44,114,61,97,46,103,101,116,40,116,41,59,105,102,40,33,114,41,116,104,114,111,119,32,110,101,119,32,69,114,114,111,114,40,96,73,110,115,116,97,110,99,101,32,119,105,116,104,32,105,100,32,36,123,116,125,32,100,111,101,115,32,110,111,116,32,101,120,105,115,116,46,96,41,59,114,46,115,101,116,77,111,100,101,40,101,41,125,44,115,101,116,82,101,110,100,101,114,67,111,110,102,105,103,58,110,61,62,123,108,101,116,32,116,61,110,46,112,97,114,97,109,115,46,105,110,115,116,97,110,99,101,73,100,44,101,61,110,46,112,97,114,97,109,115,46,114,101,110,100,101,114,67,111,110,102,105,103,44,114,61,97,46,103,101,116,40,116,41,59,105,102,40,33,114,41,116,104,114,111,119,32,110,101,119,32,69,114,114,111,114,40,96,73,110,115,116,97,110,99,101,32,119,105,116,104,32,105,100,32,36,123,116,125,32,100,111,101,115,32,110,111,116,32,101,120,105,115,116,46,96,41,59,114,46,115,101,116,82,101,110,100,101,114,67,111,110,102,105,103,40,101,41,125,44,115,101,116,83,101,103,109,101,110,116,58,110,61,62,123,108,101,116,32,116,61,110,46,112,97,114,97,109,115,46,105,110,115,116,97,110,99,101,73,100,44,101,61,110,46,112,97,114,97,109,115,46,115,101,103,109,101,110,116,44,114,61,97,46,103,101,116,40,116,41,59,105,102,40,33,114,41,116,104,114,111,119,32,110,101,119,32,69,114,114,111,114,40,96,73,110,115,116,97,110,99,101,32,119,105,116,104,32,105,100,32,36,123,116,125,32,100,111,101,115,32,110,111,116,32,101,120,105,115,116,46,96,41,59,114,46,115,101,116,83,101,103,109,101,110,116,40,101,91,48,93,44,101,91,49,93,41,125,44,114,101,115,101,116,83,101,103,109,101,110,116,58,110,61,62,123,108,101,116,32,116,61,110,46,112,97,114,97,109,115,46,105,110,115,116,97,110,99,101,73,100,44,101,61,97,46,103,101,116,40,116,41,59,105,102,40,33,101,41,116,104,114,111,119,32,110,101,119,32,69,114,114,111,114,40,96,73,110,115,116,97,110,99,101,32,119,105,116,104,32,105,100,32,36,123,116,125,32,100,111,101,115,32,110,111,116,32,101,120,105,115,116,46,96,41,59,101,46,114,101,115,101,116,83,101,103,109,101,110,116,40,41,125,44,115,101,116,83,112,101,101,100,58,110,61,62,123,108,101,116,32,116,61,110,46,112,97,114,97,109,115,46,105,110,115,116,97,110,99,101,73,100,44,101,61,110,46,112,97,114,97,109,115,46,115,112,101,101,100,44,114,61,97,46,103,101,116,40,116,41,59,105,102,40,33,114,41,116,104,114,111,119,32,110,101,119,32,69,114,114,111,114,40,96,73,110,115,116,97,110,99,101,32,119,105,116,104,32,105,100,32,36,123,116,125,32,100,111,101,115,32,110,111,116,32,101,120,105,115,116,46,96,41,59,114,46,115,101,116,83,112,101,101,100,40,101,41,125,44,115,101,116,85,115,101,70,114,97,109,101,73,110,116,101,114,112,111,108,97,116,105,111,110,58,110,61,62,123,108,101,116,32,116,61,110,46,112,97,114,97,109,115,46,105,110,115,116,97,110,99,101,73,100,44,101,61,110,46,112,97,114,97,109,115,46,117,115,101,70,114,97,109,101,73,110,116,101,114,112,111,108,97,116,105,111,110,44,114,61,97,46,103,101,116,40,116,41,59,105,102,40,33,114,41,116,104,114,111,119,32,110,101,119,32,69,114,114,111,114,40,96,73,110,115,116,97,110,99,101,32,119,105,116,104,32,105,100,32,36,123,116,125,32,100,111,101,115,32,110,111,116,32,101,120,105,115,116,46,96,41,59,114,46,115,101,116,85,115,101,70,114,97,109,101,73,110,116,101,114,112,111,108,97,116,105,111,110,40,101,41,125,44,115,101,116,87,97,115,109,85,114,108,58,110,61,62,123,67,46,115,101,116,87,97,115,109,85,114,108,40,110,46,112,97,114,97,109,115,46,117,114,108,41,125,44,115,116,111,112,58,110,61,62,123,108,101,116,32,116,61,110,46,112,97,114,97,109,115,46,105,110,115,116,97,110,99,101,73,100,44,101,61,97,46,103,101,116,40,116,41,59,105,102,40,33,101,41,116,104,114,111,119,32,110,101,119,32,69,114,114,111,114,40,96,73,110,115,116,97,110,99,101,32,119,105,116,104,32,105,100,32,36,123,116,125,32,100,111,101,115,32,110,111,116,32,101,120,105,115,116,46,96,41,59,101,46,115,116,111,112,40,41,125,44,117,110,102,114,101,101,122,101,58,110,61,62,123,108,101,116,32,116,61,110,46,112,97,114,97,109,115,46,105,110,115,116,97,110,99,101,73,100,44,101,61,97,46,103,101,116,40,116,41,59,105,102,40,33,101,41,116,104,114,111,119,32,110,101,119,32,69,114,114,111,114,40,96,73,110,115,116,97,110,99,101,32,119,105,116,104,32,105,100,32,36,123,116,125,32,100,111,101,115,32,110,111,116,32,101,120,105,115,116,46,96,41,59,101,46,117,110,102,114,101,101,122,101,40,41,125,44,115,101,116,86,105,101,119,112,111,114,116,40,110,41,123,108,101,116,32,116,61,110,46,112,97,114,97,109,115,46,105,110,115,116,97,110,99,101,73,100,44,101,61,110,46,112,97,114,97,109,115,46,120,44,114,61,110,46,112,97,114,97,109,115,46,121,44,111,61,110,46,112,97,114,97,109,115,46,119,105,100,116,104,44,105,61,110,46,112,97,114,97,109,115,46,104,101,105,103,104,116,44,99,61,97,46,103,101,116,40,116,41,59,105,102,40,33,99,41,116,104,114,111,119,32,110,101,119,32,69,114,114,111,114,40,96,73,110,115,116,97,110,99,101,32,119,105,116,104,32,105,100,32,36,123,116,125,32,100,111,101,115,32,110,111,116,32,101,120,105,115,116,46,96,41,59,114,101,116,117,114,110,32,99,46,115,101,116,86,105,101,119,112,111,114,116,40,101,44,114,44,111,44,105,41,125,44,97,110,105,109,97,116,105,111,110,83,105,122,101,40,110,41,123,108,101,116,32,116,61,110,46,112,97,114,97,109,115,46,105,110,115,116,97,110,99,101,73,100,44,101,61,97,46,103,101,116,40,116,41,59,105,102,40,33,101,41,116,104,114,111,119,32,110,101,119,32,69,114,114,111,114,40,96,73,110,115,116,97,110,99,101,32,119,105,116,104,32,105,100,32,36,123,116,125,32,100,111,101,115,32,110,111,116,32,101,120,105,115,116,46,96,41,59,108,101,116,123,104,101,105,103,104,116,58,114,44,119,105,100,116,104,58,111,125,61,101,46,97,110,105,109,97,116,105,111,110,83,105,122,101,40,41,59,114,101,116,117,114,110,123,104,101,105,103,104,116,58,114,44,119,105,100,116,104,58,111,125,125,44,115,101,116,77,97,114,107,101,114,40,110,41,123,108,101,116,32,116,61,110,46,112,97,114,97,109,115,46,105,110,115,116,97,110,99,101,73,100,44,101,61,110,46,112,97,114,97,109,115,46,109,97,114,107,101,114,44,114,61,97,46,103,101,116,40,116,41,59,105,102,40,33,114,41,116,104,114,111,119,32,110,101,119,32,69,114,114,111,114,40,96,73,110,115,116,97,110,99,101,32,119,105,116,104,32,105,100,32,36,123,116,125,32,100,111,101,115,32,110,111,116,32,101,120,105,115,116,46,96,41,59,114,46,115,101,116,77,97,114,107,101,114,40,101,41,125,44,115,101,116,76,111,111,112,40,110,41,123,108,101,116,32,116,61,110,46,112,97,114,97,109,115,46,105,110,115,116,97,110,99,101,73,100,44,101,61,110,46,112,97,114,97,109,115,46,108,111,111,112,44,114,61,97,46,103,101,116,40,116,41,59,105,102,40,33,114,41,116,104,114,111,119,32,110,101,119,32,69,114,114,111,114,40,96,73,110,115,116,97,110,99,101,32,119,105,116,104,32,105,100,32,36,123,116,125,32,100,111,101,115,32,110,111,116,32,101,120,105,115,116,46,96,41,59,114,46,115,101,116,76,111,111,112,40,101,41,125,44,115,101,116,76,111,111,112,67,111,117,110,116,40,110,41,123,108,101,116,32,116,61,110,46,112,97,114,97,109,115,46,105,110,115,116,97,110,99,101,73,100,44,101,61,110,46,112,97,114,97,109,115,46,108,111,111,112,67,111,117,110,116,44,114,61,97,46,103,101,116,40,116,41,59,105,102,40,33,114,41,116,104,114,111,119,32,110,101,119,32,69,114,114,111,114,40,96,73,110,115,116,97,110,99,101,32,119,105,116,104,32,105,100,32,36,123,116,125,32,100,111,101,115,32,110,111,116,32,101,120,105,115,116,46,96,41,59,114,46,115,101,116,76,111,111,112,67,111,117,110,116,40,101,41,125,125,59,102,117,110,99,116,105,111,110,32,69,116,40,110,41,123,108,101,116,32,116,61,110,46,109,101,116,104,111,100,59,105,102,40,79,98,106,101,99,116,46,104,97,115,79,119,110,40,74,44,116,41,38,38,116,121,112,101,111,102,32,74,91,116,93,61,61,34,102,117,110,99,116,105,111,110,34,41,114,101,116,117,114,110,32,74,91,116,93,40,110,41,59,116,104,114,111,119,32,110,101,119,32,69,114,114,111,114,40,96,77,101,116,104,111,100,32,36,123,83,116,114,105,110,103,40,116,41,125,32,105,115,32,110,111,116,32,105,109,112,108,101,109,101,110,116,101,100,32,105,110,32,99,111,109,109,97,110,100,115,46,96,41,125,115,101,108,102,46,111,110,109,101,115,115,97,103,101,61,97,115,121,110,99,32,110,61,62,123,116,114,121,123,108,101,116,32,116,61,97,119,97,105,116,32,69,116,40,110,46,100,97,116,97,41,44,101,61,123,105,100,58,110,46,100,97,116,97,46,105,100,44,109,101,116,104,111,100,58,110,46,100,97,116,97,46,109,101,116,104,111,100,44,114,101,115,117,108,116,58,116,125,59,115,101,108,102,46,112,111,115,116,77,101,115,115,97,103,101,40,101,41,125,99,97,116,99,104,40,116,41,123,108,101,116,32,101,61,123,105,100,58,110,46,100,97,116,97,46,105,100,44,109,101,116,104,111,100,58,110,46,100,97,116,97,46,109,101,116,104,111,100,44,101,114,114,111,114,58,116,46,109,101,115,115,97,103,101,125,59,115,101,108,102,46,112,111,115,116,77,101,115,115,97,103,101,40,101,41,125,125,59,118,97,114,32,77,116,61,34,34,44,89,116,61,77,116,59,125,41,40,41,59,10])],{type:"application/javascript"}),t=URL.createObjectURL(e),n=new Worker(t);return URL.revokeObjectURL(t),n}};function Y(e,t){if(typeof HTMLCanvasElement<"u"&&e instanceof HTMLCanvasElement){let{height:n,width:r}=e.getBoundingClientRect();if(0!==n&&0!==r)return{width:r*t,height:n*t}}return{width:e.width,height:e.height}}function K(){return Date.now().toString(36)+Math.random().toString(36).substr(2,9)}var X=class e{constructor(t){if(i(this,"_eventManager",new I),i(this,"_id",void 0),i(this,"_worker",void 0),i(this,"_canvas",void 0),i(this,"_dotLottieInstanceState",{loopCount:0,markers:[],autoplay:!1,backgroundColor:"",currentFrame:0,duration:0,loop:!1,mode:"forward",segment:[0,0],speed:1,totalFrames:0,isLoaded:!1,isPlaying:!1,isPaused:!1,isStopped:!0,isFrozen:!1,useFrameInterpolation:!1,renderConfig:{devicePixelRatio:V()},activeAnimationId:"",activeThemeId:"",layout:void 0,marker:"",isReady:!1,manifest:null}),i(this,"_created",!1),i(this,"_boundOnClick",null),i(this,"_boundOnPointerUp",null),i(this,"_boundOnPointerDown",null),i(this,"_boundOnPointerMove",null),i(this,"_boundOnPointerEnter",null),i(this,"_boundOnPointerLeave",null),i(this,"_pendingConfig",null),t.canvas){let e=typeof HTMLCanvasElement<"u"&&t.canvas instanceof HTMLCanvasElement,n=typeof OffscreenCanvas<"u"&&t.canvas instanceof OffscreenCanvas;if(!e&&!n)throw Error("Worker-based DotLottie requires HTMLCanvasElement or OffscreenCanvas")}this._canvas=t.canvas??null,this._id=`dotlottie-${K()}`;let n=t.workerId||"defaultWorker";this._worker=e._workerManager.getWorker(n),e._workerManager.assignAnimationToWorker(this._id,n),e._wasmUrl&&this._sendMessage("setWasmUrl",{url:e._wasmUrl});let r={...t,renderConfig:{...t.renderConfig,devicePixelRatio:t.renderConfig?.devicePixelRatio||V(),freezeOnOffscreen:t.renderConfig?.freezeOnOffscreen??!0}};this._pendingConfig=r,this._canvas&&(this._create(r),this._pendingConfig=null),e._workerManager.registerEventHandler(this._id,this._handleWorkerEvent.bind(this))}async _handleWorkerEvent(e){let t=e.data;if(!t.id&&("onLoad"===t.method&&t.result.instanceId===this._id&&(await this._updateDotLottieInstanceState(),this._eventManager.dispatch(t.result.event),c&&this._canvas instanceof HTMLCanvasElement&&(this._dotLottieInstanceState.renderConfig.freezeOnOffscreen&&(D.observe(this._canvas,this),N(this._canvas)||await this.freeze()),this._dotLottieInstanceState.renderConfig.autoResize&&L.observe(this._canvas,this))),"onComplete"===t.method&&t.result.instanceId===this._id&&(await this._updateDotLottieInstanceState(),this._eventManager.dispatch(t.result.event)),"onDestroy"===t.method&&t.result.instanceId===this._id&&this._eventManager.dispatch(t.result.event),"onUnfreeze"===t.method&&t.result.instanceId===this._id&&(await this._updateDotLottieInstanceState(),this._dotLottieInstanceState.isFrozen=!1,this._eventManager.dispatch(t.result.event)),"onFrame"===t.method&&t.result.instanceId===this._id&&(this._dotLottieInstanceState.currentFrame=t.result.event.currentFrame,this._eventManager.dispatch(t.result.event)),"onRender"===t.method&&t.result.instanceId===this._id&&this._eventManager.dispatch(t.result.event),"onFreeze"===t.method&&t.result.instanceId===this._id&&(await this._updateDotLottieInstanceState(),this._eventManager.dispatch(t.result.event)),"onPause"===t.method&&t.result.instanceId===this._id&&(await this._updateDotLottieInstanceState(),this._eventManager.dispatch(t.result.event)),"onPlay"===t.method&&t.result.instanceId===this._id&&(await this._updateDotLottieInstanceState(),this._eventManager.dispatch(t.result.event)),"onStop"===t.method&&t.result.instanceId===this._id&&(await this._updateDotLottieInstanceState(),this._eventManager.dispatch(t.result.event)),"onLoadError"===t.method&&t.result.instanceId===this._id&&(await this._updateDotLottieInstanceState(),this._eventManager.dispatch(t.result.event)),"onRenderError"===t.method&&t.result.instanceId===this._id&&this._eventManager.dispatch(t.result.event),"onReady"===t.method&&t.result.instanceId===this._id&&(await this._updateDotLottieInstanceState(),this._eventManager.dispatch(t.result.event)),"onLoop"===t.method&&t.result.instanceId===this._id&&(await this._updateDotLottieInstanceState(),this._eventManager.dispatch(t.result.event)),"onStateMachineStart"===t.method&&t.result.instanceId===this._id&&(await this._updateDotLottieInstanceState(),this._setupStateMachineListeners(),this._eventManager.dispatch(t.result.event)),"onStateMachineStop"===t.method&&t.result.instanceId===this._id&&(await this._updateDotLottieInstanceState(),this._cleanupStateMachineListeners(),this._eventManager.dispatch(t.result.event)),"onStateMachineTransition"===t.method&&t.result.instanceId===this._id&&(await this._updateDotLottieInstanceState(),this._eventManager.dispatch(t.result.event)),"onStateMachineStateEntered"===t.method&&t.result.instanceId===this._id&&(await this._updateDotLottieInstanceState(),this._eventManager.dispatch(t.result.event)),"onStateMachineStateExit"===t.method&&t.result.instanceId===this._id&&(await this._updateDotLottieInstanceState(),this._eventManager.dispatch(t.result.event)),"onStateMachineCustomEvent"===t.method&&t.result.instanceId===this._id&&(await this._updateDotLottieInstanceState(),this._eventManager.dispatch(t.result.event)),"onStateMachineError"===t.method&&t.result.instanceId===this._id&&(await this._updateDotLottieInstanceState(),this._eventManager.dispatch(t.result.event)),"onStateMachineBooleanInputValueChange"===t.method&&t.result.instanceId===this._id&&(await this._updateDotLottieInstanceState(),this._eventManager.dispatch(t.result.event)),"onStateMachineNumericInputValueChange"===t.method&&t.result.instanceId===this._id&&(await this._updateDotLottieInstanceState(),this._eventManager.dispatch(t.result.event)),"onStateMachineStringInputValueChange"===t.method&&t.result.instanceId===this._id&&(await this._updateDotLottieInstanceState(),this._eventManager.dispatch(t.result.event)),"onStateMachineInputFired"===t.method&&t.result.instanceId===this._id&&(await this._updateDotLottieInstanceState(),this._eventManager.dispatch(t.result.event)),"onStateMachineInternalMessage"===t.method&&t.result.instanceId===this._id)){await this._updateDotLottieInstanceState();let e=t.result.event;e.message.startsWith("OpenUrl: ")&&z(e.message)}}async _create(e){if(!this._canvas)return;let t;t=this._canvas instanceof HTMLCanvasElement?this._canvas.transferControlToOffscreen():this._canvas;let{instanceId:n}=await this._sendMessage("create",{instanceId:this._id,config:{...e,canvas:t},...Y(this._canvas,e.renderConfig?.devicePixelRatio||V())},[t]);if(n!==this._id)throw Error("Instance ID mismatch");this._created=!0,await this._updateDotLottieInstanceState()}get loopCount(){return this._dotLottieInstanceState.loopCount}get isLoaded(){return this._dotLottieInstanceState.isLoaded}get isPlaying(){return this._dotLottieInstanceState.isPlaying}get isPaused(){return this._dotLottieInstanceState.isPaused}get isStopped(){return this._dotLottieInstanceState.isStopped}get currentFrame(){return this._dotLottieInstanceState.currentFrame}get isFrozen(){return this._dotLottieInstanceState.isFrozen}get totalFrames(){return this._dotLottieInstanceState.totalFrames}get segment(){return this._dotLottieInstanceState.segment}get speed(){return this._dotLottieInstanceState.speed}get duration(){return this._dotLottieInstanceState.duration}get isReady(){return this._dotLottieInstanceState.isReady}get mode(){return this._dotLottieInstanceState.mode}get canvas(){return this._canvas}async setCanvas(e){let t=typeof HTMLCanvasElement<"u"&&e instanceof HTMLCanvasElement,n=typeof OffscreenCanvas<"u"&&e instanceof OffscreenCanvas;if(!t&&!n)throw Error("Worker-based DotLottie requires HTMLCanvasElement or OffscreenCanvas");if(this._canvas!==e){if(this._created&&null!==this._canvas)throw Error("Cannot change canvas after worker instance is already created with a different canvas.");this._canvas=e,!this._created&&this._pendingConfig&&(await this._create(this._pendingConfig),this._pendingConfig=null)}}get autoplay(){return this._dotLottieInstanceState.autoplay}get backgroundColor(){return this._dotLottieInstanceState.backgroundColor}get loop(){return this._dotLottieInstanceState.loop}get useFrameInterpolation(){return this._dotLottieInstanceState.useFrameInterpolation}get renderConfig(){return this._dotLottieInstanceState.renderConfig}get manifest(){return this._dotLottieInstanceState.manifest}get activeAnimationId(){return this._dotLottieInstanceState.activeAnimationId}get marker(){return this._dotLottieInstanceState.marker}get activeThemeId(){return this._dotLottieInstanceState.activeThemeId}get layout(){return this._dotLottieInstanceState.layout}async play(){this._created&&(await this._sendMessage("play",{instanceId:this._id}),await this._updateDotLottieInstanceState(),c&&this._canvas instanceof HTMLCanvasElement&&this._dotLottieInstanceState.renderConfig.freezeOnOffscreen&&!N(this._canvas)&&await this.freeze())}async pause(){this._created&&(await this._sendMessage("pause",{instanceId:this._id}),await this._updateDotLottieInstanceState())}async stop(){this._created&&(await this._sendMessage("stop",{instanceId:this._id}),await this._updateDotLottieInstanceState())}async setSpeed(e){this._created&&(await this._sendMessage("setSpeed",{instanceId:this._id,speed:e}),await this._updateDotLottieInstanceState())}async setMode(e){this._created&&(await this._sendMessage("setMode",{instanceId:this._id,mode:e}),await this._updateDotLottieInstanceState())}async setFrame(e){this._created&&(await this._sendMessage("setFrame",{frame:e,instanceId:this._id}),await this._updateDotLottieInstanceState())}async setSegment(e,t){this._created&&(await this._sendMessage("setSegment",{instanceId:this._id,segment:[e,t]}),await this._updateDotLottieInstanceState())}async resetSegment(){this._created&&(await this._sendMessage("resetSegment",{instanceId:this._id}),await this._updateDotLottieInstanceState())}async setRenderConfig(e){if(!this._created)return;let{devicePixelRatio:t,freezeOnOffscreen:n,quality:r,...a}=e;await this._sendMessage("setRenderConfig",{instanceId:this._id,renderConfig:{...this._dotLottieInstanceState.renderConfig,...a,devicePixelRatio:t||V(),freezeOnOffscreen:n??!0,...void 0!==r&&{quality:r}}}),await this._updateDotLottieInstanceState(),c&&this._canvas instanceof HTMLCanvasElement&&(this._dotLottieInstanceState.renderConfig.autoResize?L.observe(this._canvas,this):L.unobserve(this._canvas),this._dotLottieInstanceState.renderConfig.freezeOnOffscreen?(D.observe(this._canvas,this),N(this._canvas)||await this.freeze()):(D.unobserve(this._canvas),this._dotLottieInstanceState.isFrozen&&await this.unfreeze()))}async setUseFrameInterpolation(e){this._created&&(await this._sendMessage("setUseFrameInterpolation",{instanceId:this._id,useFrameInterpolation:e}),await this._updateDotLottieInstanceState())}async setTheme(e){if(!this._created)return!1;let t=await this._sendMessage("setTheme",{instanceId:this._id,themeId:e});return await this._updateDotLottieInstanceState(),t}async load(e){this._created?(await this._sendMessage("load",{config:e,instanceId:this._id}),await this._updateDotLottieInstanceState()):this._pendingConfig&&(this._pendingConfig={...this._pendingConfig,...e})}async setLoop(e){this._created&&(await this._sendMessage("setLoop",{instanceId:this._id,loop:e}),await this._updateDotLottieInstanceState())}async setLoopCount(e){this._created&&(await this._sendMessage("setLoopCount",{instanceId:this._id,loopCount:e}),await this._updateDotLottieInstanceState())}async resize(){if(!this._created||!this._canvas)return;let{height:e,width:t}=Y(this._canvas,this._dotLottieInstanceState.renderConfig.devicePixelRatio||V());await this._sendMessage("resize",{height:e,instanceId:this._id,width:t}),await this._updateDotLottieInstanceState()}async destroy(){this._created&&(this._created=!1,await this._sendMessage("destroy",{instanceId:this._id}),this._cleanupStateMachineListeners(),e._workerManager.unregisterEventHandler(this._id),e._workerManager.unassignAnimationFromWorker(this._id),this._eventManager.removeAllEventListeners(),c&&this._canvas instanceof HTMLCanvasElement&&(D.unobserve(this._canvas),L.unobserve(this._canvas)))}async freeze(){this._created&&(await this._sendMessage("freeze",{instanceId:this._id}),await this._updateDotLottieInstanceState())}async unfreeze(){this._created&&(await this._sendMessage("unfreeze",{instanceId:this._id}),await this._updateDotLottieInstanceState())}async setBackgroundColor(e){this._created&&(await this._sendMessage("setBackgroundColor",{instanceId:this._id,backgroundColor:e}),await this._updateDotLottieInstanceState())}async loadAnimation(e){this._created&&(await this._sendMessage("loadAnimation",{animationId:e,instanceId:this._id}),await this._updateDotLottieInstanceState())}async setLayout(e){this._created&&(await this._sendMessage("setLayout",{instanceId:this._id,layout:e}),await this._updateDotLottieInstanceState())}async setSlots(e){this._created&&await this._sendMessage("setSlots",{instanceId:this._id,slots:e})}async getSlotIds(){return this._created?this._sendMessage("getSlotIds",{instanceId:this._id}):[]}async getSlotType(e){if(this._created)return this._sendMessage("getSlotType",{instanceId:this._id,slotId:e})}async getSlot(e){if(this._created)return this._sendMessage("getSlot",{instanceId:this._id,slotId:e})}async getSlots(){return this._created?this._sendMessage("getSlots",{instanceId:this._id}):{}}async setColorSlot(e,t){return!!this._created&&this._sendMessage("setColorSlot",{instanceId:this._id,slotId:e,value:t})}async setScalarSlot(e,t){return!!this._created&&this._sendMessage("setScalarSlot",{instanceId:this._id,slotId:e,value:t})}async setVectorSlot(e,t){return!!this._created&&this._sendMessage("setVectorSlot",{instanceId:this._id,slotId:e,value:t})}async setGradientSlot(e,t,n){return!!this._created&&this._sendMessage("setGradientSlot",{instanceId:this._id,slotId:e,value:t,colorStopCount:n})}async setTextSlot(e,t){return!!this._created&&this._sendMessage("setTextSlot",{instanceId:this._id,slotId:e,value:t})}async resetSlot(e){return!!this._created&&this._sendMessage("resetSlot",{instanceId:this._id,slotId:e})}async clearSlot(e){return!!this._created&&this._sendMessage("clearSlot",{instanceId:this._id,slotId:e})}async resetSlots(){return!!this._created&&this._sendMessage("resetSlots",{instanceId:this._id})}async clearSlots(){return!!this._created&&this._sendMessage("clearSlots",{instanceId:this._id})}async _updateDotLottieInstanceState(){if(!this._created)return;let e=await this._sendMessage("getDotLottieInstanceState",{instanceId:this._id});this._dotLottieInstanceState=e.state}markers(){return this._dotLottieInstanceState.markers}async setMarker(e){this._created&&(await this._sendMessage("setMarker",{instanceId:this._id,marker:e}),await this._updateDotLottieInstanceState())}async setThemeData(e){if(!this._created)return!1;let t=await this._sendMessage("setThemeData",{instanceId:this._id,themeData:e});return await this._updateDotLottieInstanceState(),t}async setViewport(e,t,n,r){return!!this._created&&this._sendMessage("setViewport",{x:e,y:t,width:n,height:r,instanceId:this._id})}async animationSize(){return this._created?this._sendMessage("animationSize",{instanceId:this._id}):{height:0,width:0}}async setTransform(e){return!!this._created&&this._sendMessage("setTransform",{instanceId:this._id,transform:e})}async getTransform(){if(this._created)return this._sendMessage("getTransform",{instanceId:this._id})}async _sendMessage(t,n,r){let a={id:`dotlottie-request-${K()}`,method:t,params:n};return new Promise((n,i)=>{e._workerManager.registerRpcReplyHandler(a.id,r=>{e._workerManager.unregisterRpcReplyHandler(a.id);let o=r.data;o.error?i(Error(`Failed to execute method ${t}: ${o.error}`)):n(o.result)}),this._worker.postMessage(a,r||[])})}addEventListener(e,t){this._eventManager.addEventListener(e,t)}removeEventListener(e,t){this._eventManager.removeEventListener(e,t)}static setWasmUrl(t){e._wasmUrl=t}static async registerFont(t,n){try{let r=K();return e._workerManager.broadcastMessage({id:r,method:"registerFont",params:{fontName:t,fontSource:n}}),!0}catch(e){return console.error(`Error broadcasting registerFont for "${t}":`,e),!1}}async stateMachineLoad(e){if(!this._created)return!1;let t=await this._sendMessage("stateMachineLoad",{instanceId:this._id,stateMachineId:e});return await this._updateDotLottieInstanceState(),t}async stateMachineLoadData(e){if(!this._created)return!1;let t=await this._sendMessage("stateMachineLoadData",{instanceId:this._id,stateMachineData:e});return await this._updateDotLottieInstanceState(),t}async stateMachineStart(){if(!this._created)return!1;let e=await this._sendMessage("stateMachineStart",{instanceId:this._id});return e&&(this._setupStateMachineListeners(),await this._updateDotLottieInstanceState()),e}async stateMachineStop(){return!!this._created&&(this._cleanupStateMachineListeners(),this._sendMessage("stateMachineStop",{instanceId:this._id}))}async stateMachineSetNumericInput(e,t){return!!this._created&&this._sendMessage("stateMachineSetNumericInput",{instanceId:this._id,name:e,value:t})}async stateMachineSetBooleanInput(e,t){return!!this._created&&this._sendMessage("stateMachineSetBooleanInput",{instanceId:this._id,name:e,value:t})}async stateMachineSetConfig(e){this._created&&this._sendMessage("stateMachineSetConfig",{instanceId:this._id,config:e})}async stateMachineSetStringInput(e,t){return!!this._created&&this._sendMessage("stateMachineSetStringInput",{instanceId:this._id,name:e,value:t})}async stateMachineGetNumericInput(e){if(this._created)return this._sendMessage("stateMachineGetNumericInput",{instanceId:this._id,name:e})}async stateMachineGetBooleanInput(e){if(this._created)return this._sendMessage("stateMachineGetBooleanInput",{instanceId:this._id,name:e})}async stateMachineGetStringInput(e){if(this._created)return this._sendMessage("stateMachineGetStringInput",{instanceId:this._id,name:e})}async stateMachineGetInputs(){if(this._created)return this._sendMessage("stateMachineGetInputs",{instanceId:this._id})}async stateMachineFireEvent(e){this._created&&this._sendMessage("stateMachineFireEvent",{instanceId:this._id,name:e})}async stateMachineGetStatus(){return this._created?this._sendMessage("stateMachineGetStatus",{instanceId:this._id}):""}async stateMachineGetCurrentState(){return this._created?this._sendMessage("stateMachineGetCurrentState",{instanceId:this._id}):""}async stateMachineGetActiveId(){return this._created?this._sendMessage("stateMachineGetActiveId",{instanceId:this._id}):""}async stateMachineOverrideState(e,t=!1){return!!this._created&&this._sendMessage("stateMachineOverrideState",{instanceId:this._id,state:e,immediate:t})}async stateMachineGet(e){return this._created?this._sendMessage("stateMachineGet",{instanceId:this._id,stateMachineId:e}):""}async stateMachineGetListeners(){return this._created?this._sendMessage("stateMachineGetListeners",{instanceId:this._id}):[]}async stateMachinePostClickEvent(e,t){if(this._created)return this._sendMessage("stateMachinePostClickEvent",{instanceId:this._id,x:e,y:t})}async stateMachinePostPointerUpEvent(e,t){if(this._created)return this._sendMessage("stateMachinePostPointerUpEvent",{instanceId:this._id,x:e,y:t})}async stateMachinePostPointerDownEvent(e,t){if(this._created)return this._sendMessage("stateMachinePostPointerDownEvent",{instanceId:this._id,x:e,y:t})}async stateMachinePostPointerMoveEvent(e,t){if(this._created)return this._sendMessage("stateMachinePostPointerMoveEvent",{instanceId:this._id,x:e,y:t})}async stateMachinePostPointerEnterEvent(e,t){if(this._created)return this._sendMessage("stateMachinePostPointerEnterEvent",{instanceId:this._id,x:e,y:t})}async stateMachinePostPointerExitEvent(e,t){if(this._created)return this._sendMessage("stateMachinePostPointerExitEvent",{instanceId:this._id,x:e,y:t})}_onClick(e){let t=B(e);t&&this._sendMessage("stateMachinePostClickEvent",{instanceId:this._id,x:t.x,y:t.y})}_onPointerUp(e){let t=B(e);t&&this._sendMessage("stateMachinePostPointerUpEvent",{instanceId:this._id,x:t.x,y:t.y})}_onPointerDown(e){let t=B(e);t&&this._sendMessage("stateMachinePostPointerDownEvent",{instanceId:this._id,x:t.x,y:t.y})}_onPointerMove(e){let t=B(e);t&&this._sendMessage("stateMachinePostPointerMoveEvent",{instanceId:this._id,x:t.x,y:t.y})}_onPointerEnter(e){let t=B(e);t&&this._sendMessage("stateMachinePostPointerEnterEvent",{instanceId:this._id,x:t.x,y:t.y})}_onPointerLeave(e){let t=B(e);t&&this._sendMessage("stateMachinePostPointerExitEvent",{instanceId:this._id,x:t.x,y:t.y})}async _setupStateMachineListeners(){if(c&&this._canvas instanceof HTMLCanvasElement&&this.isLoaded){let e=await this._sendMessage("stateMachineGetListeners",{instanceId:this._id});if(0===e.length)return;this._cleanupStateMachineListeners(),e.includes("Click")&&(this._boundOnClick=this._onClick.bind(this),this._canvas.addEventListener("click",this._boundOnClick)),e.includes("PointerUp")&&(this._boundOnPointerUp=this._onPointerUp.bind(this),this._canvas.addEventListener("pointerup",this._boundOnPointerUp)),e.includes("PointerDown")&&(this._boundOnPointerDown=this._onPointerDown.bind(this),this._canvas.addEventListener("pointerdown",this._boundOnPointerDown)),e.includes("PointerMove")&&(this._boundOnPointerMove=this._onPointerMove.bind(this),this._canvas.addEventListener("pointermove",this._boundOnPointerMove)),e.includes("PointerEnter")&&(this._boundOnPointerEnter=this._onPointerEnter.bind(this),this._canvas.addEventListener("pointerenter",this._boundOnPointerEnter)),e.includes("PointerExit")&&(this._boundOnPointerLeave=this._onPointerLeave.bind(this),this._canvas.addEventListener("pointerleave",this._boundOnPointerLeave))}}_cleanupStateMachineListeners(){c&&this._canvas instanceof HTMLCanvasElement&&(this._boundOnClick&&(this._canvas.removeEventListener("click",this._boundOnClick),this._boundOnClick=null),this._boundOnPointerUp&&(this._canvas.removeEventListener("pointerup",this._boundOnPointerUp),this._boundOnPointerUp=null),this._boundOnPointerDown&&(this._canvas.removeEventListener("pointerdown",this._boundOnPointerDown),this._boundOnPointerDown=null),this._boundOnPointerMove&&(this._canvas.removeEventListener("pointermove",this._boundOnPointerMove),this._boundOnPointerMove=null),this._boundOnPointerEnter&&(this._canvas.removeEventListener("pointerenter",this._boundOnPointerEnter),this._boundOnPointerEnter=null),this._boundOnPointerLeave&&(this._canvas.removeEventListener("pointerleave",this._boundOnPointerLeave),this._boundOnPointerLeave=null))}};i(X,"_workerManager",new class{constructor(){i(this,"_workers",new Map),i(this,"_animationWorkerMap",new Map),i(this,"_eventHandlers",new Map),i(this,"_rpcHandlers",new Map),i(this,"_routeMessage",e=>{let t=e.data;if(t.id){let n=this._rpcHandlers.get(t.id);return void(n&&n(e))}let n=t.result?.instanceId;if(n){let t=this._eventHandlers.get(n);t&&t(e)}})}getWorker(e){let t=this._workers.get(e);return t||(t=new q,t.addEventListener("message",this._routeMessage),this._workers.set(e,t)),t}assignAnimationToWorker(e,t){this._animationWorkerMap.set(e,t)}unassignAnimationFromWorker(e){this._animationWorkerMap.delete(e)}sendMessage(e,t,n){this.getWorker(e).postMessage(t,n||[])}broadcastMessage(e,t){this._workers.forEach(n=>{n.postMessage(e,t||[])})}terminateWorker(e){let t=this._workers.get(e);t&&(t.removeEventListener("message",this._routeMessage),t.terminate(),this._workers.delete(e))}registerEventHandler(e,t){this._eventHandlers.set(e,t)}unregisterEventHandler(e){this._eventHandlers.delete(e)}registerRpcReplyHandler(e,t){this._rpcHandlers.set(e,t)}unregisterRpcReplyHandler(e){this._rpcHandlers.delete(e)}}),i(X,"_wasmUrl","")},10900(e,t,n){"use strict";n.d(t,{Ay:()=>a});var r=n(50442);const a=r.default||r},24534(e,t,n){"use strict";n.d(t,{IO:()=>f,LU:()=>l,MS:()=>r,Sv:()=>u,XZ:()=>s,YK:()=>o,j:()=>i,vd:()=>a,yE:()=>c});var r="-ms-",a="-moz-",i="-webkit-",o="comm",s="rule",l="decl",c="@import",u="@keyframes",f="@layer"},49503(e,t,n){"use strict";if(n.d(t,{MY:()=>i,r1:()=>a}),/^(3260|6573|7776)$/.test(n.j))var r=n(19735);function a(e){var t=(0,r.FK)(e);return function(n,r,a,i){for(var o="",s=0;s<t;s++)o+=e[s](n,r,a,i)||"";return o}}function i(e){return function(t){t.root||(t=t.return)&&e(t)}}},73716(e,t,n){"use strict";if(n.d(t,{wE:()=>o}),/^(3260|6573|7776)$/.test(n.j))var r=n(24534);if(/^(3260|6573|7776)$/.test(n.j))var a=n(19735);if(/^(3260|6573|7776)$/.test(n.j))var i=n(40390);function o(e){return(0,i.VF)(s("",null,null,null,[""],e=(0,i.c4)(e),0,[0],e))}function s(e,t,n,r,o,f,h,p,d){for(var m=0,g=0,y=h,v=0,b=0,_=0,w=1,S=1,x=1,k=0,C="",E=o,P=f,A=r,O=C;S;)switch(_=k,k=(0,i.K2)()){case 40:if(108!=_&&58==(0,a.wN)(O,y-1)){-1!=(0,a.K5)(O+=(0,a.HC)((0,i.Tb)(k),"&","&\f"),"&\f")&&(x=-1);break}case 34:case 39:case 91:O+=(0,i.Tb)(k);break;case 9:case 10:case 13:case 32:O+=(0,i.mw)(_);break;case 92:O+=(0,i.Nc)((0,i.OW)()-1,7);continue;case 47:switch((0,i.se)()){case 42:case 47:(0,a.BC)(c((0,i.nf)((0,i.K2)(),(0,i.OW)()),t,n),d);break;default:O+="/"}break;case 123*w:p[m++]=(0,a.b2)(O)*x;case 125*w:case 59:case 0:switch(k){case 0:case 125:S=0;case 59+g:-1==x&&(O=(0,a.HC)(O,/\f/g,"")),b>0&&(0,a.b2)(O)-y&&(0,a.BC)(b>32?u(O+";",r,n,y-1):u((0,a.HC)(O," ","")+";",r,n,y-2),d);break;case 59:O+=";";default:if((0,a.BC)(A=l(O,t,n,m,g,o,p,C,E=[],P=[],y),f),123===k)if(0===g)s(O,t,A,A,E,f,y,p,P);else switch(99===v&&110===(0,a.wN)(O,3)?100:v){case 100:case 108:case 109:case 115:s(e,A,A,r&&(0,a.BC)(l(e,A,A,0,0,o,p,C,o,E=[],y),P),o,P,y,p,r?E:P);break;default:s(O,A,A,A,[""],P,0,p,P)}}m=g=b=0,w=x=1,C=O="",y=h;break;case 58:y=1+(0,a.b2)(O),b=_;default:if(w<1)if(123==k)--w;else if(125==k&&0==w++&&125==(0,i.YL)())continue;switch(O+=(0,a.HT)(k),k*w){case 38:x=g>0?1:(O+="\f",-1);break;case 44:p[m++]=((0,a.b2)(O)-1)*x,x=1;break;case 64:45===(0,i.se)()&&(O+=(0,i.Tb)((0,i.K2)())),v=(0,i.se)(),g=y=(0,a.b2)(C=O+=(0,i.Cv)((0,i.OW)())),k++;break;case 45:45===_&&2==(0,a.b2)(O)&&(w=0)}}return f}function l(e,t,n,o,s,l,c,u,f,h,p){for(var d=s-1,m=0===s?l:[""],g=(0,a.FK)(m),y=0,v=0,b=0;y<o;++y)for(var _=0,w=(0,a.c1)(e,d+1,d=(0,a.tn)(v=c[y])),S=e;_<g;++_)(S=(0,a.Bq)(v>0?m[_]+" "+w:(0,a.HC)(w,/&\f/g,m[_])))&&(f[b++]=S);return(0,i.rH)(e,t,n,0===s?r.XZ:u,f,h,p)}function c(e,t,n){return(0,i.rH)(e,t,n,r.YK,(0,a.HT)((0,i.Tp)()),(0,a.c1)(e,2,-2),0)}function u(e,t,n,o){return(0,i.rH)(e,t,n,r.LU,(0,a.c1)(e,0,o),(0,a.c1)(e,o+1,-1),o)}},50483(e,t,n){"use strict";if(n.d(t,{A:()=>o,l:()=>i}),/^(3260|6573|7776)$/.test(n.j))var r=n(24534);if(/^(3260|6573|7776)$/.test(n.j))var a=n(19735);function i(e,t){for(var n="",r=(0,a.FK)(e),i=0;i<r;i++)n+=t(e[i],i,e,t)||"";return n}function o(e,t,n,o){switch(e.type){case r.IO:if(e.children.length)break;case r.yE:case r.LU:return e.return=e.return||e.value;case r.YK:return"";case r.Sv:return e.return=e.value+"{"+i(e.children,o)+"}";case r.XZ:e.value=e.props.join(",")}return(0,a.b2)(n=i(e.children,o))?e.return=e.value+"{"+n+"}":""}},40390(e,t,n){"use strict";if(n.d(t,{C:()=>f,Cv:()=>E,G1:()=>s,K2:()=>d,Nc:()=>x,OW:()=>g,Sh:()=>v,Tb:()=>w,Tp:()=>h,VF:()=>_,YL:()=>p,c4:()=>b,di:()=>y,mw:()=>S,nf:()=>C,rH:()=>u,se:()=>m}),/^(3260|6573|7776)$/.test(n.j))var r=n(19735);var a=1,i=1,o=0,s=0,l=0,c="";function u(e,t,n,r,o,s,l){return{value:e,root:t,parent:n,type:r,props:o,children:s,line:a,column:i,length:l,return:""}}function f(e,t){return(0,r.kp)(u("",null,null,"",null,null,0),e,{length:-e.length},t)}function h(){return l}function p(){return l=s>0?(0,r.wN)(c,--s):0,i--,10===l&&(i=1,a--),l}function d(){return l=s<o?(0,r.wN)(c,s++):0,i++,10===l&&(i=1,a++),l}function m(){return(0,r.wN)(c,s)}function g(){return s}function y(e,t){return(0,r.c1)(c,e,t)}function v(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 b(e){return a=i=1,o=(0,r.b2)(c=e),s=0,[]}function _(e){return c="",e}function w(e){return(0,r.Bq)(y(s-1,k(91===e?e+2:40===e?e+1:e)))}function S(e){for(;(l=m())&&l<33;)d();return v(e)>2||v(l)>3?"":" "}function x(e,t){for(;--t&&d()&&!(l<48||l>102||l>57&&l<65||l>70&&l<97););return y(e,g()+(t<6&&32==m()&&32==d()))}function k(e){for(;d();)switch(l){case e:return s;case 34:case 39:34!==e&&39!==e&&k(l);break;case 40:41===e&&k(e);break;case 92:d()}return s}function C(e,t){for(;d()&&e+l!==57&&(e+l!==84||47!==m()););return"/*"+y(t,s-1)+"*"+(0,r.HT)(47===e?e:d())}function E(e){for(;!v(m());)d();return y(e,s)}},19735(e,t,n){"use strict";n.d(t,{BC:()=>m,Bq:()=>s,FK:()=>d,HC:()=>c,HT:()=>a,K5:()=>u,YW:()=>l,b2:()=>p,c1:()=>h,kg:()=>g,kp:()=>i,tW:()=>o,tn:()=>r,wN:()=>f});var r=Math.abs,a=String.fromCharCode,i=Object.assign;function o(e,t){return 45^f(e,0)?(((t<<2^f(e,0))<<2^f(e,1))<<2^f(e,2))<<2^f(e,3):0}function s(e){return e.trim()}function l(e,t){return(e=t.exec(e))?e[0]:e}function c(e,t,n){return e.replace(t,n)}function u(e,t){return e.indexOf(t)}function f(e,t){return 0|e.charCodeAt(t)}function h(e,t,n){return e.slice(t,n)}function p(e){return e.length}function d(e){return e.length}function m(e,t){return t.push(e),e}function g(e,t){return e.map(t).join("")}},72902(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)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r.apply(this,arguments)}n.d(t,{A:()=>s});var a={strings:["These are the default values...","You know what you should do?","Use your own!","Have a great day!"],stringsElement:null,typeSpeed:0,startDelay:0,backSpeed:0,smartBackspace:!0,shuffle:!1,backDelay:700,fadeOut:!1,fadeOutClass:"typed-fade-out",fadeOutDelay:500,loop:!1,loopCount:1/0,showCursor:!0,cursorChar:"|",autoInsertCss:!0,attr:null,bindInputFocusEvents:!1,contentType:"html",onBegin:function(e){},onComplete:function(e){},preStringTyped:function(e,t){},onStringTyped:function(e,t){},onLastStringBackspaced:function(e){},onTypingPaused:function(e,t){},onTypingResumed:function(e,t){},onReset:function(e){},onStop:function(e,t){},onStart:function(e,t){},onDestroy:function(e){}},i=new(function(){function e(){}var t=e.prototype;return t.load=function(e,t,n){if(e.el="string"==typeof n?document.querySelector(n):n,e.options=r({},a,t),e.isInput="input"===e.el.tagName.toLowerCase(),e.attr=e.options.attr,e.bindInputFocusEvents=e.options.bindInputFocusEvents,e.showCursor=!e.isInput&&e.options.showCursor,e.cursorChar=e.options.cursorChar,e.cursorBlinking=!0,e.elContent=e.attr?e.el.getAttribute(e.attr):e.el.textContent,e.contentType=e.options.contentType,e.typeSpeed=e.options.typeSpeed,e.startDelay=e.options.startDelay,e.backSpeed=e.options.backSpeed,e.smartBackspace=e.options.smartBackspace,e.backDelay=e.options.backDelay,e.fadeOut=e.options.fadeOut,e.fadeOutClass=e.options.fadeOutClass,e.fadeOutDelay=e.options.fadeOutDelay,e.isPaused=!1,e.strings=e.options.strings.map(function(e){return e.trim()}),e.stringsElement="string"==typeof e.options.stringsElement?document.querySelector(e.options.stringsElement):e.options.stringsElement,e.stringsElement){e.strings=[],e.stringsElement.style.cssText="clip: rect(0 0 0 0);clip-path:inset(50%);height:1px;overflow:hidden;position:absolute;white-space:nowrap;width:1px;";var i=Array.prototype.slice.apply(e.stringsElement.children),o=i.length;if(o)for(var s=0;s<o;s+=1)e.strings.push(i[s].innerHTML.trim())}for(var l in e.strPos=0,e.currentElContent=this.getCurrentElContent(e),e.currentElContent&&e.currentElContent.length>0&&(e.strPos=e.currentElContent.length-1,e.strings.unshift(e.currentElContent)),e.sequence=[],e.strings)e.sequence[l]=l;e.arrayPos=0,e.stopNum=0,e.loop=e.options.loop,e.loopCount=e.options.loopCount,e.curLoop=0,e.shuffle=e.options.shuffle,e.pause={status:!1,typewrite:!0,curString:"",curStrPos:0},e.typingComplete=!1,e.autoInsertCss=e.options.autoInsertCss,e.autoInsertCss&&(this.appendCursorAnimationCss(e),this.appendFadeOutAnimationCss(e))},t.getCurrentElContent=function(e){return e.attr?e.el.getAttribute(e.attr):e.isInput?e.el.value:"html"===e.contentType?e.el.innerHTML:e.el.textContent},t.appendCursorAnimationCss=function(e){var t="data-typed-js-cursor-css";if(e.showCursor&&!document.querySelector("["+t+"]")){var n=document.createElement("style");n.setAttribute(t,"true"),n.innerHTML="\n        .typed-cursor{\n          opacity: 1;\n        }\n        .typed-cursor.typed-cursor--blink{\n          animation: typedjsBlink 0.7s infinite;\n          -webkit-animation: typedjsBlink 0.7s infinite;\n                  animation: typedjsBlink 0.7s infinite;\n        }\n        @keyframes typedjsBlink{\n          50% { opacity: 0.0; }\n        }\n        @-webkit-keyframes typedjsBlink{\n          0% { opacity: 1; }\n          50% { opacity: 0.0; }\n          100% { opacity: 1; }\n        }\n      ",document.body.appendChild(n)}},t.appendFadeOutAnimationCss=function(e){var t="data-typed-fadeout-js-css";if(e.fadeOut&&!document.querySelector("["+t+"]")){var n=document.createElement("style");n.setAttribute(t,"true"),n.innerHTML="\n        .typed-fade-out{\n          opacity: 0;\n          transition: opacity .25s;\n        }\n        .typed-cursor.typed-cursor--blink.typed-fade-out{\n          -webkit-animation: 0;\n          animation: 0;\n        }\n      ",document.body.appendChild(n)}},e}()),o=new(function(){function e(){}var t=e.prototype;return t.typeHtmlChars=function(e,t,n){if("html"!==n.contentType)return t;var r=e.substring(t).charAt(0);if("<"===r||"&"===r){var a;for(a="<"===r?">":";";e.substring(t+1).charAt(0)!==a&&!(1+ ++t>e.length););t++}return t},t.backSpaceHtmlChars=function(e,t,n){if("html"!==n.contentType)return t;var r=e.substring(t).charAt(0);if(">"===r||";"===r){var a;for(a=">"===r?"<":"&";e.substring(t-1).charAt(0)!==a&&!(--t<0););t--}return t},e}()),s=3260==n.j?function(){function e(e,t){i.load(this,t,e),this.begin()}var t=e.prototype;return t.toggle=function(){this.pause.status?this.start():this.stop()},t.stop=function(){this.typingComplete||this.pause.status||(this.toggleBlinking(!0),this.pause.status=!0,this.options.onStop(this.arrayPos,this))},t.start=function(){this.typingComplete||this.pause.status&&(this.pause.status=!1,this.pause.typewrite?this.typewrite(this.pause.curString,this.pause.curStrPos):this.backspace(this.pause.curString,this.pause.curStrPos),this.options.onStart(this.arrayPos,this))},t.destroy=function(){this.reset(!1),this.options.onDestroy(this)},t.reset=function(e){void 0===e&&(e=!0),clearInterval(this.timeout),this.replaceText(""),this.cursor&&this.cursor.parentNode&&(this.cursor.parentNode.removeChild(this.cursor),this.cursor=null),this.strPos=0,this.arrayPos=0,this.curLoop=0,e&&(this.insertCursor(),this.options.onReset(this),this.begin())},t.begin=function(){var e=this;this.options.onBegin(this),this.typingComplete=!1,this.shuffleStringsIfNeeded(this),this.insertCursor(),this.bindInputFocusEvents&&this.bindFocusEvents(),this.timeout=setTimeout(function(){0===e.strPos?e.typewrite(e.strings[e.sequence[e.arrayPos]],e.strPos):e.backspace(e.strings[e.sequence[e.arrayPos]],e.strPos)},this.startDelay)},t.typewrite=function(e,t){var n=this;this.fadeOut&&this.el.classList.contains(this.fadeOutClass)&&(this.el.classList.remove(this.fadeOutClass),this.cursor&&this.cursor.classList.remove(this.fadeOutClass));var r=this.humanizer(this.typeSpeed),a=1;!0!==this.pause.status?this.timeout=setTimeout(function(){t=o.typeHtmlChars(e,t,n);var r=0,i=e.substring(t);if("^"===i.charAt(0)&&/^\^\d+/.test(i)){var s=1;s+=(i=/\d+/.exec(i)[0]).length,r=parseInt(i),n.temporaryPause=!0,n.options.onTypingPaused(n.arrayPos,n),e=e.substring(0,t)+e.substring(t+s),n.toggleBlinking(!0)}if("`"===i.charAt(0)){for(;"`"!==e.substring(t+a).charAt(0)&&(a++,!(t+a>e.length)););var l=e.substring(0,t),c=e.substring(l.length+1,t+a),u=e.substring(t+a+1);e=l+c+u,a--}n.timeout=setTimeout(function(){n.toggleBlinking(!1),t>=e.length?n.doneTyping(e,t):n.keepTyping(e,t,a),n.temporaryPause&&(n.temporaryPause=!1,n.options.onTypingResumed(n.arrayPos,n))},r)},r):this.setPauseStatus(e,t,!0)},t.keepTyping=function(e,t,n){0===t&&(this.toggleBlinking(!1),this.options.preStringTyped(this.arrayPos,this));var r=e.substring(0,t+=n);this.replaceText(r),this.typewrite(e,t)},t.doneTyping=function(e,t){var n=this;this.options.onStringTyped(this.arrayPos,this),this.toggleBlinking(!0),this.arrayPos===this.strings.length-1&&(this.complete(),!1===this.loop||this.curLoop===this.loopCount)||(this.timeout=setTimeout(function(){n.backspace(e,t)},this.backDelay))},t.backspace=function(e,t){var n=this;if(!0!==this.pause.status){if(this.fadeOut)return this.initFadeOut();this.toggleBlinking(!1);var r=this.humanizer(this.backSpeed);this.timeout=setTimeout(function(){t=o.backSpaceHtmlChars(e,t,n);var r=e.substring(0,t);if(n.replaceText(r),n.smartBackspace){var a=n.strings[n.arrayPos+1];n.stopNum=a&&r===a.substring(0,t)?t:0}t>n.stopNum?(t--,n.backspace(e,t)):t<=n.stopNum&&(n.arrayPos++,n.arrayPos===n.strings.length?(n.arrayPos=0,n.options.onLastStringBackspaced(),n.shuffleStringsIfNeeded(),n.begin()):n.typewrite(n.strings[n.sequence[n.arrayPos]],t))},r)}else this.setPauseStatus(e,t,!1)},t.complete=function(){this.options.onComplete(this),this.loop?this.curLoop++:this.typingComplete=!0},t.setPauseStatus=function(e,t,n){this.pause.typewrite=n,this.pause.curString=e,this.pause.curStrPos=t},t.toggleBlinking=function(e){this.cursor&&(this.pause.status||this.cursorBlinking!==e&&(this.cursorBlinking=e,e?this.cursor.classList.add("typed-cursor--blink"):this.cursor.classList.remove("typed-cursor--blink")))},t.humanizer=function(e){return Math.round(Math.random()*e/2)+e},t.shuffleStringsIfNeeded=function(){this.shuffle&&(this.sequence=this.sequence.sort(function(){return Math.random()-.5}))},t.initFadeOut=function(){var e=this;return this.el.className+=" "+this.fadeOutClass,this.cursor&&(this.cursor.className+=" "+this.fadeOutClass),setTimeout(function(){e.arrayPos++,e.replaceText(""),e.strings.length>e.arrayPos?e.typewrite(e.strings[e.sequence[e.arrayPos]],0):(e.typewrite(e.strings[0],0),e.arrayPos=0)},this.fadeOutDelay)},t.replaceText=function(e){this.attr?this.el.setAttribute(this.attr,e):this.isInput?this.el.value=e:"html"===this.contentType?this.el.innerHTML=e:this.el.textContent=e},t.bindFocusEvents=function(){var e=this;this.isInput&&(this.el.addEventListener("focus",function(t){e.stop()}),this.el.addEventListener("blur",function(t){e.el.value&&0!==e.el.value.length||e.start()}))},t.insertCursor=function(){this.showCursor&&(this.cursor||(this.cursor=document.createElement("span"),this.cursor.className="typed-cursor",this.cursor.setAttribute("aria-hidden",!0),this.cursor.innerHTML=this.cursorChar,this.el.parentNode&&this.el.parentNode.insertBefore(this.cursor,this.el.nextSibling)))},e}():null},73911(e,t,n){"use strict";if(n.d(t,{ll:()=>u}),2690==n.j)var r=n(43733);if(2690==n.j)var a=n(97831);function i(e){return(0,a.vq)(e)?e:e.contextElement}function o(e){const t=i(e);if(!(0,a.sb)(t))return(0,r.Jx)(1);const n=t.getBoundingClientRect(),{width:o,height:s,$:l}=function(e){const t=(0,a.L9)(e);let n=parseFloat(t.width)||0,i=parseFloat(t.height)||0;const o=(0,a.sb)(e),s=o?e.offsetWidth:n,l=o?e.offsetHeight:i,c=(0,r.LI)(n)!==s||(0,r.LI)(i)!==l;return c&&(n=s,i=l),{width:n,height:i,$:c}}(t);let c=(l?(0,r.LI)(n.width):n.width)/o,u=(l?(0,r.LI)(n.height):n.height)/s;return c&&Number.isFinite(c)||(c=1),u&&Number.isFinite(u)||(u=1),{x:c,y:u}}const s=2690==n.j?(0,r.Jx)(0):null;function l(e,t,n,l){void 0===t&&(t=!1),void 0===n&&(n=!1);const c=e.getBoundingClientRect(),u=i(e);let f=(0,r.Jx)(1);t&&(l?(0,a.vq)(l)&&(f=o(l)):f=o(e));const h=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==(0,a.zk)(e))&&t}(u,n,l)?function(e){const t=(0,a.zk)(e);return(0,a.Tc)()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:s}(u):(0,r.Jx)(0);let p=(c.left+h.x)/f.x,d=(c.top+h.y)/f.y,m=c.width/f.x,g=c.height/f.y;if(u){const e=(0,a.zk)(u),t=l&&(0,a.vq)(l)?(0,a.zk)(l):l;let n=e,r=(0,a._m)(n);for(;r&&l&&t!==n;){const e=o(r),t=r.getBoundingClientRect(),i=(0,a.L9)(r),s=t.left+(r.clientLeft+parseFloat(i.paddingLeft))*e.x,l=t.top+(r.clientTop+parseFloat(i.paddingTop))*e.y;p*=e.x,d*=e.y,m*=e.x,g*=e.y,p+=s,d+=l,n=(0,a.zk)(r),r=(0,a._m)(n)}}return(0,r.B1)({width:m,height:g,x:p,y:d})}function c(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function u(e,t,n,o){void 0===o&&(o={});const{ancestorScroll:s=!0,ancestorResize:u=!0,elementResize:f="function"==typeof ResizeObserver,layoutShift:h="function"==typeof IntersectionObserver,animationFrame:p=!1}=o,d=i(e),m=s||u?[...d?(0,a.v9)(d):[],...t?(0,a.v9)(t):[]]:[];m.forEach(e=>{s&&e.addEventListener("scroll",n,{passive:!0}),u&&e.addEventListener("resize",n)});const g=d&&h?function(e,t){let n,i=null;const o=(0,a.ep)(e);function s(){var e;clearTimeout(n),null==(e=i)||e.disconnect(),i=null}return function a(l,u){void 0===l&&(l=!1),void 0===u&&(u=1),s();const f=e.getBoundingClientRect(),{left:h,top:p,width:d,height:m}=f;if(l||t(),!d||!m)return;const g={rootMargin:-(0,r.RI)(p)+"px "+-(0,r.RI)(o.clientWidth-(h+d))+"px "+-(0,r.RI)(o.clientHeight-(p+m))+"px "+-(0,r.RI)(h)+"px",threshold:(0,r.T9)(0,(0,r.jk)(1,u))||1};let y=!0;function v(t){const r=t[0].intersectionRatio;if(r!==u){if(!y)return a();r?a(!1,r):n=setTimeout(()=>{a(!1,1e-7)},1e3)}1!==r||c(f,e.getBoundingClientRect())||a(),y=!1}try{i=new IntersectionObserver(v,{...g,root:o.ownerDocument})}catch(e){i=new IntersectionObserver(v,g)}i.observe(e)}(!0),s}(d,n):null;let y,v=-1,b=null;f&&(b=new ResizeObserver(e=>{let[r]=e;r&&r.target===d&&b&&t&&(b.unobserve(t),cancelAnimationFrame(v),v=requestAnimationFrame(()=>{var e;null==(e=b)||e.observe(t)})),n()}),d&&!p&&b.observe(d),t&&b.observe(t));let _=p?l(e):null;return p&&function t(){const r=l(e);_&&!c(_,r)&&n(),_=r,y=requestAnimationFrame(t)}(),n(),()=>{var e;m.forEach(e=>{s&&e.removeEventListener("scroll",n),u&&e.removeEventListener("resize",n)}),null==g||g(),null==(e=b)||e.disconnect(),b=null,p&&cancelAnimationFrame(y)}}},97831(e,t,n){"use strict";function r(){return"undefined"!=typeof window}function a(e){return s(e)?(e.nodeName||"").toLowerCase():"#document"}function i(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function o(e){var t;return null==(t=(s(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function s(e){return!!r()&&(e instanceof Node||e instanceof i(e).Node)}function l(e){return!!r()&&(e instanceof Element||e instanceof i(e).Element)}function c(e){return!!r()&&(e instanceof HTMLElement||e instanceof i(e).HTMLElement)}function u(e){return!(!r()||"undefined"==typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof i(e).ShadowRoot)}function f(e){const{overflow:t,overflowX:n,overflowY:r,display:a}=d(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&"inline"!==a&&"contents"!==a}let h;function p(){return null==h&&(h="undefined"!=typeof CSS&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),h}function d(e){return i(e).getComputedStyle(e)}function m(e){const t=function(e){if("html"===a(e))return e;const t=e.assignedSlot||e.parentNode||u(e)&&e.host||o(e);return u(t)?t.host:t}(e);return function(e){return/^(html|body|#document)$/.test(a(e))}(t)?e.ownerDocument?e.ownerDocument.body:e.body:c(t)&&f(t)?t:m(t)}function g(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);const a=m(e),o=a===(null==(r=e.ownerDocument)?void 0:r.body),s=i(a);if(o){const e=y(s);return t.concat(s,s.visualViewport||[],f(a)?a:[],e&&n?g(e):[])}return t.concat(a,g(a,[],n))}function y(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}n.d(t,{L9:()=>d,Tc:()=>p,_m:()=>y,ep:()=>o,sb:()=>c,v9:()=>g,vq:()=>l,zk:()=>i})},43733(e,t,n){"use strict";n.d(t,{B1:()=>l,Jx:()=>s,LI:()=>i,RI:()=>o,T9:()=>a,jk:()=>r});const r=Math.min,a=Math.max,i=Math.round,o=Math.floor,s=e=>({x:e,y:e});function l(e){const{x:t,y:n,width:r,height:a}=e;return{width:r,height:a,top:n,left:t,right:t+r,bottom:n+a,x:t,y:n}}},85520(e,t,n){"use strict";n.d(t,{Ay:()=>q});var r=n(61281);function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function i(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 o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?i(Object(n),!0).forEach(function(t){a(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function s(e){return function t(){for(var n=this,r=arguments.length,a=new Array(r),i=0;i<r;i++)a[i]=arguments[i];return a.length>=e.length?e.apply(this,a):function(){for(var e=arguments.length,r=new Array(e),i=0;i<e;i++)r[i]=arguments[i];return t.apply(n,[].concat(a,r))}}}function l(e){return{}.toString.call(e).includes("Object")}function c(e){return"function"==typeof e}var u=s(function(e,t){throw new Error(e[t]||e.default)})({initialIsRequired:"initial state is required",initialType:"initial state should be an object",initialContent:"initial state shouldn't be an empty object",handlerType:"handler should be an object or a function",handlersType:"all handlers should be a functions",selectorType:"selector should be a function",changeType:"provided value of changes should be an object",changeField:'it seams you want to change a field in the state which is not specified in the "initial" state',default:"an unknown error accured in `state-local` package"}),f=function(e,t){return l(t)||u("changeType"),Object.keys(t).some(function(t){return n=e,r=t,!Object.prototype.hasOwnProperty.call(n,r);var n,r})&&u("changeField"),t},h=function(e){c(e)||u("selectorType")},p=function(e){c(e)||l(e)||u("handlerType"),l(e)&&Object.values(e).some(function(e){return!c(e)})&&u("handlersType")},d=function(e){var t;e||u("initialIsRequired"),l(e)||u("initialType"),t=e,Object.keys(t).length||u("initialContent")};function m(e,t){return c(t)?t(e.current):t}function g(e,t){return e.current=o(o({},e.current),t),t}function y(e,t,n){return c(t)?t(e.current):Object.keys(n).forEach(function(n){var r;return null===(r=t[n])||void 0===r?void 0:r.call(t,e.current[n])}),n}var v={create:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};d(e),p(t);var n={current:e},r=s(y)(n,t),a=s(g)(n),i=s(f)(e),o=s(m)(n);return[function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:function(e){return e};return h(e),e(n.current)},function(e){!function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){return t.reduceRight(function(e,t){return t(e)},e)}}(r,a,i,o)(e)}]}};const b=v;n(82078);var _,w={configIsRequired:"the configuration object is required",configType:"the configuration object should be an object",default:"an unknown error accured in `@monaco-editor/loader` package",deprecation:"Deprecation warning!\n    You are using deprecated way of configuration.\n\n    Instead of using\n      monaco.config({ urls: { monacoBase: '...' }})\n    use\n      monaco.config({ paths: { vs: '...' }})\n\n    For more please check the link https://github.com/suren-atoyan/monaco-loader#config\n  "},S=((_=function(e,t){throw new Error(e[t]||e.default)},function e(){for(var t=this,n=arguments.length,r=new Array(n),a=0;a<n;a++)r[a]=arguments[a];return r.length>=_.length?_.apply(this,r):function(){for(var n=arguments.length,a=new Array(n),i=0;i<n;i++)a[i]=arguments[i];return e.apply(t,[].concat(r,a))}})(w),n(32357)),x=(n(80019),n(24297)),k=b.create({config:{paths:{vs:"https://cdn.jsdelivr.net/npm/monaco-editor@0.55.1/min/vs"}},isInitialized:!1,resolve:null,reject:null,monaco:null}),C=(0,r.zC)(k,2),E=C[0],P=C[1];function A(e){return document.body.appendChild(e)}function O(e){var t,n,r=E(function(e){return{config:e.config,reject:e.reject}}),a=(t="".concat(r.config.paths.vs,"/loader.js"),n=document.createElement("script"),t&&(n.src=t),n);return a.onload=function(){return e()},a.onerror=r.reject,a}function M(){var e=E(function(e){return{config:e.config,resolve:e.resolve,reject:e.reject}}),t=window.require;t.config(e.config),t(["vs/editor/editor.main"],function(t){var n=t.m||t;T(n),e.resolve(n)},function(t){e.reject(t)})}function T(e){E().monaco||P({monaco:e})}var I=new Promise(function(e,t){return P({resolve:e,reject:t})}),D=function(){var e=E(function(e){return{monaco:e.monaco,isInitialized:e.isInitialized,resolve:e.resolve}});if(!e.isInitialized){if(P({isInitialized:!0}),e.monaco)return e.resolve(e.monaco),(0,x.A)(I);if(window.monaco&&window.monaco.editor)return T(window.monaco),e.resolve(window.monaco),(0,x.A)(I);(0,S.A)(A,O)(M)}return(0,x.A)(I)},L=n(51609),R={display:"flex",position:"relative",textAlign:"initial"},j={width:"100%"},F={display:"none"},V={container:{display:"flex",height:"100%",width:"100%",justifyContent:"center",alignItems:"center"}},N=function({children:e}){return L.createElement("div",{style:V.container},e)},B=(0,L.memo)(function({width:e,height:t,isEditorReady:n,loading:r,_ref:a,className:i,wrapperProps:o}){return L.createElement("section",{style:{...R,width:e,height:t},...o},!n&&L.createElement(N,null,r),L.createElement("div",{ref:a,style:{...j,...!n&&F},className:i}))}),z=function(e){(0,L.useEffect)(e,[])},H=function(e,t,n=!0){let r=(0,L.useRef)(!0);(0,L.useEffect)(r.current||!n?()=>{r.current=!1}:e,t)};function G(){}function W(e,t,n,r){return function(e,t){return e.editor.getModel(U(e,t))}(e,r)||function(e,t,n,r){return e.editor.createModel(t,n,r?U(e,r):void 0)}(e,t,n,r)}function U(e,t){return e.Uri.parse(t)}(0,L.memo)(function({original:e,modified:t,language:n,originalLanguage:r,modifiedLanguage:a,originalModelPath:i,modifiedModelPath:o,keepCurrentOriginalModel:s=!1,keepCurrentModifiedModel:l=!1,theme:c="light",loading:u="Loading...",options:f={},height:h="100%",width:p="100%",className:d,wrapperProps:m={},beforeMount:g=G,onMount:y=G}){let[v,b]=(0,L.useState)(!1),[_,w]=(0,L.useState)(!0),S=(0,L.useRef)(null),x=(0,L.useRef)(null),k=(0,L.useRef)(null),C=(0,L.useRef)(y),E=(0,L.useRef)(g),P=(0,L.useRef)(!1);z(()=>{let e=D();return e.then(e=>(x.current=e)&&w(!1)).catch(e=>"cancelation"!==e?.type&&console.error("Monaco initialization: error:",e)),()=>S.current?function(){let e=S.current?.getModel();s||e?.original?.dispose(),l||e?.modified?.dispose(),S.current?.dispose()}():e.cancel()}),H(()=>{if(S.current&&x.current){let t=S.current.getOriginalEditor(),a=W(x.current,e||"",r||n||"text",i||"");a!==t.getModel()&&t.setModel(a)}},[i],v),H(()=>{if(S.current&&x.current){let e=S.current.getModifiedEditor(),r=W(x.current,t||"",a||n||"text",o||"");r!==e.getModel()&&e.setModel(r)}},[o],v),H(()=>{let e=S.current.getModifiedEditor();e.getOption(x.current.editor.EditorOption.readOnly)?e.setValue(t||""):t!==e.getValue()&&(e.executeEdits("",[{range:e.getModel().getFullModelRange(),text:t||"",forceMoveMarkers:!0}]),e.pushUndoStop())},[t],v),H(()=>{S.current?.getModel()?.original.setValue(e||"")},[e],v),H(()=>{let{original:e,modified:t}=S.current.getModel();x.current.editor.setModelLanguage(e,r||n||"text"),x.current.editor.setModelLanguage(t,a||n||"text")},[n,r,a],v),H(()=>{x.current?.editor.setTheme(c)},[c],v),H(()=>{S.current?.updateOptions(f)},[f],v);let A=(0,L.useCallback)(()=>{if(!x.current)return;E.current(x.current);let s=W(x.current,e||"",r||n||"text",i||""),l=W(x.current,t||"",a||n||"text",o||"");S.current?.setModel({original:s,modified:l})},[n,t,a,e,r,i,o]),O=(0,L.useCallback)(()=>{!P.current&&k.current&&(S.current=x.current.editor.createDiffEditor(k.current,{automaticLayout:!0,...f}),A(),x.current?.editor.setTheme(c),b(!0),P.current=!0)},[f,c,A]);return(0,L.useEffect)(()=>{v&&C.current(S.current,x.current)},[v]),(0,L.useEffect)(()=>{!_&&!v&&O()},[_,v,O]),L.createElement(B,{width:p,height:h,isEditorReady:v,loading:u,_ref:k,className:d,wrapperProps:m})});var $=new Map,q=(0,L.memo)(function({defaultValue:e,defaultLanguage:t,defaultPath:n,value:r,language:a,path:i,theme:o="light",line:s,loading:l="Loading...",options:c={},overrideServices:u={},saveViewState:f=!0,keepCurrentModel:h=!1,width:p="100%",height:d="100%",className:m,wrapperProps:g={},beforeMount:y=G,onMount:v=G,onChange:b,onValidate:_=G}){let[w,S]=(0,L.useState)(!1),[x,k]=(0,L.useState)(!0),C=(0,L.useRef)(null),E=(0,L.useRef)(null),P=(0,L.useRef)(null),A=(0,L.useRef)(v),O=(0,L.useRef)(y),M=(0,L.useRef)(),T=(0,L.useRef)(r),I=function(e){let t=(0,L.useRef)();return(0,L.useEffect)(()=>{t.current=e},[e]),t.current}(i),R=(0,L.useRef)(!1),j=(0,L.useRef)(!1);z(()=>{let e=D();return e.then(e=>(C.current=e)&&k(!1)).catch(e=>"cancelation"!==e?.type&&console.error("Monaco initialization: error:",e)),()=>E.current?(M.current?.dispose(),h?f&&$.set(i,E.current.saveViewState()):E.current.getModel()?.dispose(),void E.current.dispose()):e.cancel()}),H(()=>{let o=W(C.current,e||r||"",t||a||"",i||n||"");o!==E.current?.getModel()&&(f&&$.set(I,E.current?.saveViewState()),E.current?.setModel(o),f&&E.current?.restoreViewState($.get(i)))},[i],w),H(()=>{E.current?.updateOptions(c)},[c],w),H(()=>{!E.current||void 0===r||(E.current.getOption(C.current.editor.EditorOption.readOnly)?E.current.setValue(r):r!==E.current.getValue()&&(j.current=!0,E.current.executeEdits("",[{range:E.current.getModel().getFullModelRange(),text:r,forceMoveMarkers:!0}]),E.current.pushUndoStop(),j.current=!1))},[r],w),H(()=>{let e=E.current?.getModel();e&&a&&C.current?.editor.setModelLanguage(e,a)},[a],w),H(()=>{void 0!==s&&E.current?.revealLine(s)},[s],w),H(()=>{C.current?.editor.setTheme(o)},[o],w);let F=(0,L.useCallback)(()=>{if(P.current&&C.current&&!R.current){O.current(C.current);let l=i||n,h=W(C.current,r||e||"",t||a||"",l||"");E.current=C.current?.editor.create(P.current,{model:h,automaticLayout:!0,...c},u),f&&E.current.restoreViewState($.get(l)),C.current.editor.setTheme(o),void 0!==s&&E.current.revealLine(s),S(!0),R.current=!0}},[e,t,n,r,a,i,c,u,f,o,s]);return(0,L.useEffect)(()=>{w&&A.current(E.current,C.current)},[w]),(0,L.useEffect)(()=>{!x&&!w&&F()},[x,w,F]),T.current=r,(0,L.useEffect)(()=>{w&&b&&(M.current?.dispose(),M.current=E.current?.onDidChangeModelContent(e=>{j.current||b(E.current.getValue(),e)}))},[w,b]),(0,L.useEffect)(()=>{if(w){let e=C.current.editor.onDidChangeMarkers(e=>{let t=E.current.getModel()?.uri;if(t&&e.find(e=>e.path===t.path)){let e=C.current.editor.getModelMarkers({resource:t});_?.(e)}});return()=>{e?.dispose()}}return()=>{}},[w,_]),L.createElement(B,{width:p,height:d,isEditorReady:w,loading:l,_ref:P,className:m,wrapperProps:g})})},76658(e,t,n){"use strict";n.d(t,{IO:()=>f,LU:()=>l,MS:()=>r,Sv:()=>u,XZ:()=>s,YK:()=>o,j:()=>i,vd:()=>a,yE:()=>c});var r="-ms-",a="-moz-",i="-webkit-",o="comm",s="rule",l="decl",c="@import",u="@keyframes",f="@layer"},81139(e,t,n){"use strict";if(n.d(t,{MY:()=>i,r1:()=>a}),2690==n.j)var r=n(89499);function a(e){var t=(0,r.FK)(e);return function(n,r,a,i){for(var o="",s=0;s<t;s++)o+=e[s](n,r,a,i)||"";return o}}function i(e){return function(t){t.root||(t=t.return)&&e(t)}}},96088(e,t,n){"use strict";if(n.d(t,{wE:()=>o}),2690==n.j)var r=n(76658);if(2690==n.j)var a=n(89499);if(2690==n.j)var i=n(48114);function o(e){return(0,i.VF)(s("",null,null,null,[""],e=(0,i.c4)(e),0,[0],e))}function s(e,t,n,r,o,f,h,p,d){for(var m=0,g=0,y=h,v=0,b=0,_=0,w=1,S=1,x=1,k=0,C="",E=o,P=f,A=r,O=C;S;)switch(_=k,k=(0,i.K2)()){case 40:if(108!=_&&58==(0,a.wN)(O,y-1)){-1!=(0,a.K5)(O+=(0,a.HC)((0,i.Tb)(k),"&","&\f"),"&\f")&&(x=-1);break}case 34:case 39:case 91:O+=(0,i.Tb)(k);break;case 9:case 10:case 13:case 32:O+=(0,i.mw)(_);break;case 92:O+=(0,i.Nc)((0,i.OW)()-1,7);continue;case 47:switch((0,i.se)()){case 42:case 47:(0,a.BC)(c((0,i.nf)((0,i.K2)(),(0,i.OW)()),t,n),d);break;default:O+="/"}break;case 123*w:p[m++]=(0,a.b2)(O)*x;case 125*w:case 59:case 0:switch(k){case 0:case 125:S=0;case 59+g:-1==x&&(O=(0,a.HC)(O,/\f/g,"")),b>0&&(0,a.b2)(O)-y&&(0,a.BC)(b>32?u(O+";",r,n,y-1):u((0,a.HC)(O," ","")+";",r,n,y-2),d);break;case 59:O+=";";default:if((0,a.BC)(A=l(O,t,n,m,g,o,p,C,E=[],P=[],y),f),123===k)if(0===g)s(O,t,A,A,E,f,y,p,P);else switch(99===v&&110===(0,a.wN)(O,3)?100:v){case 100:case 108:case 109:case 115:s(e,A,A,r&&(0,a.BC)(l(e,A,A,0,0,o,p,C,o,E=[],y),P),o,P,y,p,r?E:P);break;default:s(O,A,A,A,[""],P,0,p,P)}}m=g=b=0,w=x=1,C=O="",y=h;break;case 58:y=1+(0,a.b2)(O),b=_;default:if(w<1)if(123==k)--w;else if(125==k&&0==w++&&125==(0,i.YL)())continue;switch(O+=(0,a.HT)(k),k*w){case 38:x=g>0?1:(O+="\f",-1);break;case 44:p[m++]=((0,a.b2)(O)-1)*x,x=1;break;case 64:45===(0,i.se)()&&(O+=(0,i.Tb)((0,i.K2)())),v=(0,i.se)(),g=y=(0,a.b2)(C=O+=(0,i.Cv)((0,i.OW)())),k++;break;case 45:45===_&&2==(0,a.b2)(O)&&(w=0)}}return f}function l(e,t,n,o,s,l,c,u,f,h,p){for(var d=s-1,m=0===s?l:[""],g=(0,a.FK)(m),y=0,v=0,b=0;y<o;++y)for(var _=0,w=(0,a.c1)(e,d+1,d=(0,a.tn)(v=c[y])),S=e;_<g;++_)(S=(0,a.Bq)(v>0?m[_]+" "+w:(0,a.HC)(w,/&\f/g,m[_])))&&(f[b++]=S);return(0,i.rH)(e,t,n,0===s?r.XZ:u,f,h,p)}function c(e,t,n){return(0,i.rH)(e,t,n,r.YK,(0,a.HT)((0,i.Tp)()),(0,a.c1)(e,2,-2),0)}function u(e,t,n,o){return(0,i.rH)(e,t,n,r.LU,(0,a.c1)(e,0,o),(0,a.c1)(e,o+1,-1),o)}},89687(e,t,n){"use strict";if(n.d(t,{A:()=>o,l:()=>i}),2690==n.j)var r=n(76658);if(2690==n.j)var a=n(89499);function i(e,t){for(var n="",r=(0,a.FK)(e),i=0;i<r;i++)n+=t(e[i],i,e,t)||"";return n}function o(e,t,n,o){switch(e.type){case r.IO:if(e.children.length)break;case r.yE:case r.LU:return e.return=e.return||e.value;case r.YK:return"";case r.Sv:return e.return=e.value+"{"+i(e.children,o)+"}";case r.XZ:e.value=e.props.join(",")}return(0,a.b2)(n=i(e.children,o))?e.return=e.value+"{"+n+"}":""}},48114(e,t,n){"use strict";if(n.d(t,{C:()=>f,Cv:()=>E,G1:()=>s,K2:()=>d,Nc:()=>x,OW:()=>g,Sh:()=>v,Tb:()=>w,Tp:()=>h,VF:()=>_,YL:()=>p,c4:()=>b,di:()=>y,mw:()=>S,nf:()=>C,rH:()=>u,se:()=>m}),2690==n.j)var r=n(89499);var a=1,i=1,o=0,s=0,l=0,c="";function u(e,t,n,r,o,s,l){return{value:e,root:t,parent:n,type:r,props:o,children:s,line:a,column:i,length:l,return:""}}function f(e,t){return(0,r.kp)(u("",null,null,"",null,null,0),e,{length:-e.length},t)}function h(){return l}function p(){return l=s>0?(0,r.wN)(c,--s):0,i--,10===l&&(i=1,a--),l}function d(){return l=s<o?(0,r.wN)(c,s++):0,i++,10===l&&(i=1,a++),l}function m(){return(0,r.wN)(c,s)}function g(){return s}function y(e,t){return(0,r.c1)(c,e,t)}function v(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 b(e){return a=i=1,o=(0,r.b2)(c=e),s=0,[]}function _(e){return c="",e}function w(e){return(0,r.Bq)(y(s-1,k(91===e?e+2:40===e?e+1:e)))}function S(e){for(;(l=m())&&l<33;)d();return v(e)>2||v(l)>3?"":" "}function x(e,t){for(;--t&&d()&&!(l<48||l>102||l>57&&l<65||l>70&&l<97););return y(e,g()+(t<6&&32==m()&&32==d()))}function k(e){for(;d();)switch(l){case e:return s;case 34:case 39:34!==e&&39!==e&&k(l);break;case 40:41===e&&k(e);break;case 92:d()}return s}function C(e,t){for(;d()&&e+l!==57&&(e+l!==84||47!==m()););return"/*"+y(t,s-1)+"*"+(0,r.HT)(47===e?e:d())}function E(e){for(;!v(m());)d();return y(e,s)}},89499(e,t,n){"use strict";n.d(t,{BC:()=>m,Bq:()=>s,FK:()=>d,HC:()=>c,HT:()=>a,K5:()=>u,YW:()=>l,b2:()=>p,c1:()=>h,kg:()=>g,kp:()=>i,tW:()=>o,tn:()=>r,wN:()=>f});var r=Math.abs,a=String.fromCharCode,i=Object.assign;function o(e,t){return 45^f(e,0)?(((t<<2^f(e,0))<<2^f(e,1))<<2^f(e,2))<<2^f(e,3):0}function s(e){return e.trim()}function l(e,t){return(e=t.exec(e))?e[0]:e}function c(e,t,n){return e.replace(t,n)}function u(e,t){return e.indexOf(t)}function f(e,t){return 0|e.charCodeAt(t)}function h(e,t,n){return e.slice(t,n)}function p(e){return e.length}function d(e){return e.length}function m(e,t){return t.push(e),e}function g(e,t){return e.map(t).join("")}},29887(e,t,n){"use strict";n.d(t,{a:()=>b,u:()=>m});var r=n(51609),a=n(56427),i=n(86087),o=n(53998);function s(e){return s="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},s(e)}function l(e,t,n){return(t=function(e){var t=function(e){if("object"!=s(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=s(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==s(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function c(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){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,a,i,o,s=[],l=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t);else for(;!(l=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){c=!0,a=e}finally{try{if(!l&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(c)throw a}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return c(e,t);var n={}.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)?c(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var f=function(e){return e&&e.includes("fa-")?"fontawesome":"dashicon"},h=function(e){return e?e.replace(/^dashicons-/,""):""};function p(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 d(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?p(Object(n),!0).forEach(function(t){l(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var m=function(e){var t=e.icon,n=e.className,r=void 0===n?"":n;if("string"==typeof t){var i=f(t);return(0,o.jsxs)(o.Fragment,{children:["dashicon"===i&&(0,o.jsx)(a.Dashicon,d(d({},e),{},{className:r,icon:h(t)})),"fontawesome"===i&&(0,o.jsx)("i",d(d({},e),{},{className:"".concat(t," ").concat(r)}))]})}},g=2690==n.j?["dashicons-menu","dashicons-admin-site","dashicons-dashboard","dashicons-admin-media","dashicons-admin-page","dashicons-admin-comments","dashicons-admin-appearance","dashicons-admin-plugins","dashicons-admin-users","dashicons-admin-tools","dashicons-admin-settings","dashicons-admin-network","dashicons-admin-generic","dashicons-admin-home","dashicons-admin-collapse","dashicons-filter","dashicons-admin-customizer","dashicons-admin-multisite","dashicons-admin-links","dashicons-admin-post","dashicons-format-image","dashicons-format-gallery","dashicons-format-audio","dashicons-format-video","dashicons-format-chat","dashicons-format-status","dashicons-format-aside","dashicons-format-quote","dashicons-welcome-write-blog","dashicons-welcome-add-page","dashicons-welcome-view-site","dashicons-welcome-widgets-menus","dashicons-welcome-comments","dashicons-welcome-learn-more","dashicons-image-crop","dashicons-image-rotate","dashicons-image-rotate-left","dashicons-image-rotate-right","dashicons-image-flip-vertical","dashicons-image-flip-horizontal","dashicons-image-filter","dashicons-undo","dashicons-redo","dashicons-editor-bold","dashicons-editor-italic","dashicons-editor-ul","dashicons-editor-ol","dashicons-editor-quote","dashicons-editor-alignleft","dashicons-editor-aligncenter","dashicons-editor-alignright","dashicons-editor-insertmore","dashicons-editor-spellcheck","dashicons-editor-expand","dashicons-editor-contract","dashicons-editor-kitchensink","dashicons-editor-underline","dashicons-editor-justify","dashicons-editor-textcolor","dashicons-editor-paste-word","dashicons-editor-paste-text","dashicons-editor-removeformatting","dashicons-editor-video","dashicons-editor-customchar","dashicons-editor-outdent","dashicons-editor-indent","dashicons-editor-help","dashicons-editor-strikethrough","dashicons-editor-unlink","dashicons-editor-rtl","dashicons-editor-break","dashicons-editor-code","dashicons-editor-code-duplicate","dashicons-editor-paragraph","dashicons-editor-table","dashicons-align-left","dashicons-align-right","dashicons-align-center","dashicons-align-none","dashicons-lock","dashicons-lock-duplicate","dashicons-unlock","dashicons-calendar","dashicons-calendar-alt","dashicons-visibility","dashicons-hidden","dashicons-post-status","dashicons-edit","dashicons-edit-large","dashicons-sticky","dashicons-external","dashicons-arrow-up","dashicons-arrow-up-duplicate","dashicons-arrow-down","dashicons-arrow-left","dashicons-arrow-right","dashicons-arrow-up-alt","dashicons-arrow-down-alt","dashicons-arrow-left-alt","dashicons-arrow-right-alt","dashicons-arrow-up-alt2","dashicons-arrow-down-alt2","dashicons-arrow-left-alt2","dashicons-arrow-right-alt2","dashicons-leftright","dashicons-sort","dashicons-randomize","dashicons-list-view","dashicons-excerpt-view","dashicons-grid-view","dashicons-move","dashicons-hammer","dashicons-art","dashicons-migrate","dashicons-performance","dashicons-universal-access","dashicons-universal-access-alt","dashicons-tickets","dashicons-nametag","dashicons-clipboard","dashicons-heart","dashicons-megaphone","dashicons-schedule","dashicons-wordpress","dashicons-wordpress-alt","dashicons-pressthis","dashicons-update","dashicons-screenoptions","dashicons-cart","dashicons-feedback","dashicons-translation","dashicons-tag","dashicons-category","dashicons-archive","dashicons-tagcloud","dashicons-text","dashicons-media-archive","dashicons-media-audio","dashicons-media-code","dashicons-media-default","dashicons-media-document","dashicons-media-interactive","dashicons-media-spreadsheet","dashicons-media-text","dashicons-media-video","dashicons-playlist-audio","dashicons-playlist-video","dashicons-controls-play","dashicons-controls-pause","dashicons-controls-forward","dashicons-controls-skipforward","dashicons-controls-back","dashicons-controls-skipback","dashicons-controls-repeat","dashicons-controls-volumeon","dashicons-controls-volumeoff","dashicons-yes","dashicons-no","dashicons-no-alt","dashicons-plus","dashicons-plus-alt","dashicons-plus-alt2","dashicons-minus","dashicons-dismiss","dashicons-marker","dashicons-star-filled","dashicons-star-half","dashicons-star-empty","dashicons-flag","dashicons-info","dashicons-warning","dashicons-share","dashicons-share1","dashicons-share-alt","dashicons-share-alt2","dashicons-twitter","dashicons-rss","dashicons-email","dashicons-email-alt","dashicons-facebook","dashicons-facebook-alt","dashicons-networking","dashicons-googleplus","dashicons-location","dashicons-location-alt","dashicons-camera","dashicons-images-alt","dashicons-images-alt2","dashicons-video-alt","dashicons-video-alt2","dashicons-video-alt3","dashicons-vault","dashicons-shield","dashicons-shield-alt","dashicons-sos","dashicons-search","dashicons-slides","dashicons-analytics","dashicons-chart-pie","dashicons-chart-bar","dashicons-chart-line","dashicons-chart-area","dashicons-groups","dashicons-businessman","dashicons-id","dashicons-id-alt","dashicons-products","dashicons-awards","dashicons-forms","dashicons-testimonial","dashicons-portfolio","dashicons-book","dashicons-book-alt","dashicons-download","dashicons-upload","dashicons-backup","dashicons-clock","dashicons-lightbulb","dashicons-microphone","dashicons-desktop","dashicons-laptop","dashicons-tablet","dashicons-smartphone","dashicons-phone","dashicons-smiley","dashicons-index-card","dashicons-carrot","dashicons-building","dashicons-store","dashicons-album","dashicons-palmtree","dashicons-tickets-alt","dashicons-money","dashicons-thumbs-up","dashicons-thumbs-down","dashicons-layout","dashicons-paperclip","dashicons-email-alt2","dashicons-menu-alt","dashicons-trash","dashicons-heading","dashicons-insert","dashicons-align-full-width","dashicons-button","dashicons-align-wide","dashicons-ellipsis","dashicons-buddicons-activity","dashicons-buddicons-buddypress-logo","dashicons-buddicons-community","dashicons-buddicons-forums","dashicons-buddicons-friends","dashicons-buddicons-groups","dashicons-buddicons-pm","dashicons-buddicons-replies","dashicons-buddicons-topics","dashicons-buddicons-tracking","dashicons-admin-site-alt","dashicons-admin-site-alt2","dashicons-admin-site-alt3","dashicons-rest-api","dashicons-yes-alt","dashicons-buddicons-bbpress-logo","dashicons-tide","dashicons-editor-ol-rtl","dashicons-instagram","dashicons-businessperson","dashicons-businesswoman","dashicons-color-picker","dashicons-camera-alt","dashicons-editor-ltr","dashicons-cloud","dashicons-twitter-alt","dashicons-menu-alt2","dashicons-menu-alt3","dashicons-plugins-checked","dashicons-text-page","dashicons-update-alt","dashicons-code-standards","dashicons-align-pull-left","dashicons-align-pull-right","dashicons-block-default","dashicons-cloud-saved","dashicons-cloud-upload","dashicons-columns","dashicons-cover-image","dashicons-embed-audio","dashicons-embed-generic","dashicons-embed-photo","dashicons-embed-post","dashicons-embed-video","dashicons-exit","dashicons-html","dashicons-info-outline","dashicons-insert-after","dashicons-insert-before","dashicons-remove","dashicons-shortcode","dashicons-table-col-after","dashicons-table-col-before","dashicons-table-col-delete","dashicons-table-row-after","dashicons-table-row-before","dashicons-table-row-delete","dashicons-saved","dashicons-airplane","dashicons-amazon","dashicons-bank","dashicons-beer","dashicons-bell","dashicons-calculator","dashicons-coffee","dashicons-database-add","dashicons-database-export","dashicons-database-import","dashicons-database-remove","dashicons-database-view","dashicons-database","dashicons-drumstick","dashicons-edit-page","dashicons-food","dashicons-fullscreen-alt","dashicons-fullscreen-exit-alt","dashicons-games","dashicons-google","dashicons-hourglass","dashicons-linkedin","dashicons-money-alt","dashicons-open-folder","dashicons-pdf","dashicons-pets","dashicons-pinterest","dashicons-printer","dashicons-privacy","dashicons-reddit","dashicons-spotify","dashicons-superhero-alt","dashicons-superhero","dashicons-twitch","dashicons-whatsapp","dashicons-youtube","dashicons-car","dashicons-podio","dashicons-xing"]:null,y=2690==n.j?["fab fa-42-group","fab fa-500px","fab fa-accessible-icon","fab fa-accusoft","fab fa-adn","fab fa-adversal","fab fa-affiliatetheme","fab fa-airbnb","fab fa-algolia","fab fa-alipay","fab fa-amazon","fab fa-amazon-pay","fab fa-amilia","fab fa-android","fab fa-angellist","fab fa-angrycreative","fab fa-angular","fab fa-app-store","fab fa-app-store-ios","fab fa-apper","fab fa-apple","fab fa-apple-pay","fab fa-artstation","fab fa-asymmetrik","fab fa-atlassian","fab fa-audible","fab fa-autoprefixer","fab fa-avianex","fab fa-aviato","fab fa-aws","fab fa-bandcamp","fab fa-battle-net","fab fa-behance","fab fa-bilibili","fab fa-bimobject","fab fa-bitbucket","fab fa-bitcoin","fab fa-bity","fab fa-black-tie","fab fa-blackberry","fab fa-blogger","fab fa-blogger-b","fab fa-bluetooth","fab fa-bluetooth-b","fab fa-bootstrap","fab fa-bots","fab fa-brave","fab fa-brave-reverse","fab fa-btc","fab fa-buffer","fab fa-buromobelexperte","fab fa-buy-n-large","fab fa-buysellads","fab fa-canadian-maple-leaf","fab fa-cc-amazon-pay","fab fa-cc-amex","fab fa-cc-apple-pay","fab fa-cc-diners-club","fab fa-cc-discover","fab fa-cc-jcb","fab fa-cc-mastercard","fab fa-cc-paypal","fab fa-cc-stripe","fab fa-cc-visa","fab fa-centercode","fab fa-centos","fab fa-chrome","fab fa-chromecast","fab fa-cloudflare","fab fa-cloudscale","fab fa-cloudsmith","fab fa-cloudversify","fab fa-cmplid","fab fa-codepen","fab fa-codiepie","fab fa-confluence","fab fa-connectdevelop","fab fa-contao","fab fa-cotton-bureau","fab fa-cpanel","fab fa-creative-commons","fab fa-creative-commons-by","fab fa-creative-commons-nc","fab fa-creative-commons-nc-eu","fab fa-creative-commons-nc-jp","fab fa-creative-commons-nd","fab fa-creative-commons-pd","fab fa-creative-commons-pd-alt","fab fa-creative-commons-remix","fab fa-creative-commons-sa","fab fa-creative-commons-sampling","fab fa-creative-commons-sampling-plus","fab fa-creative-commons-share","fab fa-creative-commons-zero","fab fa-critical-role","fab fa-css3","fab fa-css3-alt","fab fa-cuttlefish","fab fa-d-and-d","fab fa-d-and-d-beyond","fab fa-dailymotion","fab fa-dashcube","fab fa-debian","fab fa-deezer","fab fa-delicious","fab fa-deploydog","fab fa-deskpro","fab fa-dev","fab fa-deviantart","fab fa-dhl","fab fa-diaspora","fab fa-digg","fab fa-digital-ocean","fab fa-discord","fab fa-discourse","fab fa-dochub","fab fa-docker","fab fa-draft2digital","fab fa-dribbble","fab fa-dropbox","fab fa-drupal","fab fa-dyalog","fab fa-earlybirds","fab fa-ebay","fab fa-edge","fab fa-edge-legacy","fab fa-elementor","fab fa-ello","fab fa-ember","fab fa-empire","fab fa-envira","fab fa-erlang","fab fa-ethereum","fab fa-etsy","fab fa-evernote","fab fa-expeditedssl","fab fa-facebook","fab fa-facebook-f","fab fa-facebook-messenger","fab fa-fantasy-flight-games","fab fa-fedex","fab fa-fedora","fab fa-figma","fab fa-firefox","fab fa-firefox-browser","fab fa-first-order","fab fa-first-order-alt","fab fa-firstdraft","fab fa-flickr","fab fa-flipboard","fab fa-fly","fab fa-font-awesome","fab fa-fonticons","fab fa-fonticons-fi","fab fa-fort-awesome","fab fa-fort-awesome-alt","fab fa-forumbee","fab fa-foursquare","fab fa-free-code-camp","fab fa-freebsd","fab fa-fulcrum","fab fa-galactic-republic","fab fa-galactic-senate","fab fa-get-pocket","fab fa-gg","fab fa-gg-circle","fab fa-git","fab fa-git-alt","fab fa-github","fab fa-github-alt","fab fa-gitkraken","fab fa-gitlab","fab fa-gitter","fab fa-glide","fab fa-glide-g","fab fa-gofore","fab fa-golang","fab fa-goodreads","fab fa-goodreads-g","fab fa-google","fab fa-google-drive","fab fa-google-pay","fab fa-google-play","fab fa-google-plus","fab fa-google-plus-g","fab fa-google-scholar","fab fa-google-wallet","fab fa-gratipay","fab fa-grav","fab fa-gripfire","fab fa-grunt","fab fa-guilded","fab fa-gulp","fab fa-hacker-news","fab fa-hackerrank","fab fa-hashnode","fab fa-hips","fab fa-hire-a-helper","fab fa-hive","fab fa-hooli","fab fa-hornbill","fab fa-hotjar","fab fa-houzz","fab fa-html5","fab fa-hubspot","fab fa-ideal","fab fa-imdb","fab fa-instagram","fab fa-instalod","fab fa-intercom","fab fa-internet-explorer","fab fa-invision","fab fa-ioxhost","fab fa-itch-io","fab fa-itunes","fab fa-itunes-note","fab fa-java","fab fa-jedi-order","fab fa-jenkins","fab fa-jira","fab fa-joget","fab fa-joomla","fab fa-js","fab fa-jsfiddle","fab fa-kaggle","fab fa-keybase","fab fa-keycdn","fab fa-kickstarter","fab fa-kickstarter-k","fab fa-korvue","fab fa-laravel","fab fa-lastfm","fab fa-leanpub","fab fa-less","fab fa-letterboxd","fab fa-line","fab fa-linkedin","fab fa-linkedin-in","fab fa-linode","fab fa-linux","fab fa-lyft","fab fa-magento","fab fa-mailchimp","fab fa-mandalorian","fab fa-markdown","fab fa-mastodon","fab fa-maxcdn","fab fa-mdb","fab fa-medapps","fab fa-medium","fab fa-medrt","fab fa-meetup","fab fa-megaport","fab fa-mendeley","fab fa-meta","fab fa-microblog","fab fa-microsoft","fab fa-mintbit","fab fa-mix","fab fa-mixcloud","fab fa-mixer","fab fa-mizuni","fab fa-modx","fab fa-monero","fab fa-napster","fab fa-neos","fab fa-nfc-directional","fab fa-nfc-symbol","fab fa-nimblr","fab fa-node","fab fa-node-js","fab fa-npm","fab fa-ns8","fab fa-nutritionix","fab fa-octopus-deploy","fab fa-odnoklassniki","fab fa-odysee","fab fa-old-republic","fab fa-opencart","fab fa-openid","fab fa-opensuse","fab fa-opera","fab fa-optin-monster","fab fa-orcid","fab fa-osi","fab fa-padlet","fab fa-page4","fab fa-pagelines","fab fa-palfed","fab fa-patreon","fab fa-paypal","fab fa-perbyte","fab fa-periscope","fab fa-phabricator","fab fa-phoenix-framework","fab fa-phoenix-squadron","fab fa-php","fab fa-pied-piper","fab fa-pied-piper-alt","fab fa-pied-piper-hat","fab fa-pied-piper-pp","fab fa-pinterest","fab fa-pinterest-p","fab fa-pix","fab fa-pixiv","fab fa-playstation","fab fa-product-hunt","fab fa-pushed","fab fa-python","fab fa-qq","fab fa-quinscape","fab fa-quora","fab fa-r-project","fab fa-raspberry-pi","fab fa-ravelry","fab fa-react","fab fa-reacteurope","fab fa-readme","fab fa-rebel","fab fa-red-river","fab fa-reddit","fab fa-reddit-alien","fab fa-redhat","fab fa-renren","fab fa-replyd","fab fa-researchgate","fab fa-resolving","fab fa-rev","fab fa-rocketchat","fab fa-rockrms","fab fa-rust","fab fa-safari","fab fa-salesforce","fab fa-sass","fab fa-schlix","fab fa-screenpal","fab fa-scribd","fab fa-searchengin","fab fa-sellcast","fab fa-sellsy","fab fa-servicestack","fab fa-shirtsinbulk","fab fa-shoelace","fab fa-shopify","fab fa-shopware","fab fa-signal-messenger","fab fa-simplybuilt","fab fa-sistrix","fab fa-sith","fab fa-sitrox","fab fa-sketch","fab fa-skyatlas","fab fa-skype","fab fa-slack","fab fa-slideshare","fab fa-snapchat","fab fa-soundcloud","fab fa-sourcetree","fab fa-space-awesome","fab fa-speakap","fab fa-speaker-deck","fab fa-spotify","fab fa-square-behance","fab fa-square-dribbble","fab fa-square-facebook","fab fa-square-font-awesome","fab fa-square-font-awesome-stroke","fab fa-square-git","fab fa-square-github","fab fa-square-gitlab","fab fa-square-google-plus","fab fa-square-hacker-news","fab fa-square-instagram","fab fa-square-js","fab fa-square-lastfm","fab fa-square-letterboxd","fab fa-square-odnoklassniki","fab fa-square-pied-piper","fab fa-square-pinterest","fab fa-square-reddit","fab fa-square-snapchat","fab fa-square-steam","fab fa-square-threads","fab fa-square-tumblr","fab fa-square-twitter","fab fa-square-viadeo","fab fa-square-vimeo","fab fa-square-whatsapp","fab fa-square-x-twitter","fab fa-square-xing","fab fa-square-youtube","fab fa-squarespace","fab fa-stack-exchange","fab fa-stack-overflow","fab fa-stackpath","fab fa-staylinked","fab fa-steam","fab fa-steam-symbol","fab fa-sticker-mule","fab fa-strava","fab fa-stripe","fab fa-stripe-s","fab fa-stubber","fab fa-studiovinari","fab fa-stumbleupon","fab fa-stumbleupon-circle","fab fa-superpowers","fab fa-supple","fab fa-suse","fab fa-swift","fab fa-symfony","fab fa-teamspeak","fab fa-telegram","fab fa-tencent-weibo","fab fa-the-red-yeti","fab fa-themeco","fab fa-themeisle","fab fa-think-peaks","fab fa-threads","fab fa-tiktok","fab fa-trade-federation","fab fa-trello","fab fa-tumblr","fab fa-twitch","fab fa-twitter","fab fa-typo3","fab fa-uber","fab fa-ubuntu","fab fa-uikit","fab fa-umbraco","fab fa-uncharted","fab fa-uniregistry","fab fa-unity","fab fa-unsplash","fab fa-untappd","fab fa-ups","fab fa-upwork","fab fa-usb","fab fa-usps","fab fa-ussunnah","fab fa-vaadin","fab fa-viacoin","fab fa-viadeo","fab fa-viber","fab fa-vimeo","fab fa-vimeo-v","fab fa-vine","fab fa-vk","fab fa-vnv","fab fa-vuejs","fab fa-watchman-monitoring","fab fa-waze","fab fa-webflow","fab fa-weebly","fab fa-weibo","fab fa-weixin","fab fa-whatsapp","fab fa-whmcs","fab fa-wikipedia-w","fab fa-windows","fab fa-wirsindhandwerk","fab fa-wix","fab fa-wizards-of-the-coast","fab fa-wodu","fab fa-wolf-pack-battalion","fab fa-wordpress","fab fa-wordpress-simple","fab fa-wpbeginner","fab fa-wpexplorer","fab fa-wpforms","fab fa-wpressr","fab fa-x-twitter","fab fa-xbox","fab fa-xing","fab fa-y-combinator","fab fa-yahoo","fab fa-yammer","fab fa-yandex","fab fa-yandex-international","fab fa-yarn","fab fa-yelp","fab fa-yoast","fab fa-youtube","fab fa-zhihu","far fa-address-book","far fa-address-card","far fa-bell","far fa-bell-slash","far fa-bookmark","far fa-building","far fa-calendar","far fa-calendar-check","far fa-calendar-days","far fa-calendar-minus","far fa-calendar-plus","far fa-calendar-xmark","far fa-chart-bar","far fa-chess-bishop","far fa-chess-king","far fa-chess-knight","far fa-chess-pawn","far fa-chess-queen","far fa-chess-rook","far fa-circle","far fa-circle-check","far fa-circle-dot","far fa-circle-down","far fa-circle-left","far fa-circle-pause","far fa-circle-play","far fa-circle-question","far fa-circle-right","far fa-circle-stop","far fa-circle-up","far fa-circle-user","far fa-circle-xmark","far fa-clipboard","far fa-clock","far fa-clone","far fa-closed-captioning","far fa-comment","far fa-comment-dots","far fa-comments","far fa-compass","far fa-copy","far fa-copyright","far fa-credit-card","far fa-envelope","far fa-envelope-open","far fa-eye","far fa-eye-slash","far fa-face-angry","far fa-face-dizzy","far fa-face-flushed","far fa-face-frown","far fa-face-frown-open","far fa-face-grimace","far fa-face-grin","far fa-face-grin-beam","far fa-face-grin-beam-sweat","far fa-face-grin-hearts","far fa-face-grin-squint","far fa-face-grin-squint-tears","far fa-face-grin-stars","far fa-face-grin-tears","far fa-face-grin-tongue","far fa-face-grin-tongue-squint","far fa-face-grin-tongue-wink","far fa-face-grin-wide","far fa-face-grin-wink","far fa-face-kiss","far fa-face-kiss-beam","far fa-face-kiss-wink-heart","far fa-face-laugh","far fa-face-laugh-beam","far fa-face-laugh-squint","far fa-face-laugh-wink","far fa-face-meh","far fa-face-meh-blank","far fa-face-rolling-eyes","far fa-face-sad-cry","far fa-face-sad-tear","far fa-face-smile","far fa-face-smile-beam","far fa-face-smile-wink","far fa-face-surprise","far fa-face-tired","far fa-file","far fa-file-audio","far fa-file-code","far fa-file-excel","far fa-file-image","far fa-file-lines","far fa-file-pdf","far fa-file-powerpoint","far fa-file-video","far fa-file-word","far fa-file-zipper","far fa-flag","far fa-floppy-disk","far fa-folder","far fa-folder-closed","far fa-folder-open","far fa-font-awesome","far fa-futbol","far fa-gem","far fa-hand","far fa-hand-back-fist","far fa-hand-lizard","far fa-hand-peace","far fa-hand-point-down","far fa-hand-point-left","far fa-hand-point-right","far fa-hand-point-up","far fa-hand-pointer","far fa-hand-scissors","far fa-hand-spock","far fa-handshake","far fa-hard-drive","far fa-heart","far fa-hospital","far fa-hourglass","far fa-hourglass-half","far fa-id-badge","far fa-id-card","far fa-image","far fa-images","far fa-keyboard","far fa-lemon","far fa-life-ring","far fa-lightbulb","far fa-map","far fa-message","far fa-money-bill-1","far fa-moon","far fa-newspaper","far fa-note-sticky","far fa-object-group","far fa-object-ungroup","far fa-paper-plane","far fa-paste","far fa-pen-to-square","far fa-rectangle-list","far fa-rectangle-xmark","far fa-registered","far fa-share-from-square","far fa-snowflake","far fa-square","far fa-square-caret-down","far fa-square-caret-left","far fa-square-caret-right","far fa-square-caret-up","far fa-square-check","far fa-square-full","far fa-square-minus","far fa-square-plus","far fa-star","far fa-star-half","far fa-star-half-stroke","far fa-sun","far fa-thumbs-down","far fa-thumbs-up","far fa-trash-can","far fa-user","far fa-window-maximize","far fa-window-minimize","far fa-window-restore","fas fa-0","fas fa-1","fas fa-2","fas fa-3","fas fa-4","fas fa-5","fas fa-6","fas fa-7","fas fa-8","fas fa-9","fas fa-a","fas fa-address-book","fas fa-address-card","fas fa-align-center","fas fa-align-justify","fas fa-align-left","fas fa-align-right","fas fa-anchor","fas fa-anchor-circle-check","fas fa-anchor-circle-exclamation","fas fa-anchor-circle-xmark","fas fa-anchor-lock","fas fa-angle-down","fas fa-angle-left","fas fa-angle-right","fas fa-angle-up","fas fa-angles-down","fas fa-angles-left","fas fa-angles-right","fas fa-angles-up","fas fa-ankh","fas fa-apple-whole","fas fa-archway","fas fa-arrow-down","fas fa-arrow-down-1-9","fas fa-arrow-down-9-1","fas fa-arrow-down-a-z","fas fa-arrow-down-long","fas fa-arrow-down-short-wide","fas fa-arrow-down-up-across-line","fas fa-arrow-down-up-lock","fas fa-arrow-down-wide-short","fas fa-arrow-down-z-a","fas fa-arrow-left","fas fa-arrow-left-long","fas fa-arrow-pointer","fas fa-arrow-right","fas fa-arrow-right-arrow-left","fas fa-arrow-right-from-bracket","fas fa-arrow-right-long","fas fa-arrow-right-to-bracket","fas fa-arrow-right-to-city","fas fa-arrow-rotate-left","fas fa-arrow-rotate-right","fas fa-arrow-trend-down","fas fa-arrow-trend-up","fas fa-arrow-turn-down","fas fa-arrow-turn-up","fas fa-arrow-up","fas fa-arrow-up-1-9","fas fa-arrow-up-9-1","fas fa-arrow-up-a-z","fas fa-arrow-up-from-bracket","fas fa-arrow-up-from-ground-water","fas fa-arrow-up-from-water-pump","fas fa-arrow-up-long","fas fa-arrow-up-right-dots","fas fa-arrow-up-right-from-square","fas fa-arrow-up-short-wide","fas fa-arrow-up-wide-short","fas fa-arrow-up-z-a","fas fa-arrows-down-to-line","fas fa-arrows-down-to-people","fas fa-arrows-left-right","fas fa-arrows-left-right-to-line","fas fa-arrows-rotate","fas fa-arrows-spin","fas fa-arrows-split-up-and-left","fas fa-arrows-to-circle","fas fa-arrows-to-dot","fas fa-arrows-to-eye","fas fa-arrows-turn-right","fas fa-arrows-turn-to-dots","fas fa-arrows-up-down","fas fa-arrows-up-down-left-right","fas fa-arrows-up-to-line","fas fa-asterisk","fas fa-at","fas fa-atom","fas fa-audio-description","fas fa-austral-sign","fas fa-award","fas fa-b","fas fa-baby","fas fa-baby-carriage","fas fa-backward","fas fa-backward-fast","fas fa-backward-step","fas fa-bacon","fas fa-bacteria","fas fa-bacterium","fas fa-bag-shopping","fas fa-bahai","fas fa-baht-sign","fas fa-ban","fas fa-ban-smoking","fas fa-bandage","fas fa-bangladeshi-taka-sign","fas fa-barcode","fas fa-bars","fas fa-bars-progress","fas fa-bars-staggered","fas fa-baseball","fas fa-baseball-bat-ball","fas fa-basket-shopping","fas fa-basketball","fas fa-bath","fas fa-battery-empty","fas fa-battery-full","fas fa-battery-half","fas fa-battery-quarter","fas fa-battery-three-quarters","fas fa-bed","fas fa-bed-pulse","fas fa-beer-mug-empty","fas fa-bell","fas fa-bell-concierge","fas fa-bell-slash","fas fa-bezier-curve","fas fa-bicycle","fas fa-binoculars","fas fa-biohazard","fas fa-bitcoin-sign","fas fa-blender","fas fa-blender-phone","fas fa-blog","fas fa-bold","fas fa-bolt","fas fa-bolt-lightning","fas fa-bomb","fas fa-bone","fas fa-bong","fas fa-book","fas fa-book-atlas","fas fa-book-bible","fas fa-book-bookmark","fas fa-book-journal-whills","fas fa-book-medical","fas fa-book-open","fas fa-book-open-reader","fas fa-book-quran","fas fa-book-skull","fas fa-book-tanakh","fas fa-bookmark","fas fa-border-all","fas fa-border-none","fas fa-border-top-left","fas fa-bore-hole","fas fa-bottle-droplet","fas fa-bottle-water","fas fa-bowl-food","fas fa-bowl-rice","fas fa-bowling-ball","fas fa-box","fas fa-box-archive","fas fa-box-open","fas fa-box-tissue","fas fa-boxes-packing","fas fa-boxes-stacked","fas fa-braille","fas fa-brain","fas fa-brazilian-real-sign","fas fa-bread-slice","fas fa-bridge","fas fa-bridge-circle-check","fas fa-bridge-circle-exclamation","fas fa-bridge-circle-xmark","fas fa-bridge-lock","fas fa-bridge-water","fas fa-briefcase","fas fa-briefcase-medical","fas fa-broom","fas fa-broom-ball","fas fa-brush","fas fa-bucket","fas fa-bug","fas fa-bug-slash","fas fa-bugs","fas fa-building","fas fa-building-circle-arrow-right","fas fa-building-circle-check","fas fa-building-circle-exclamation","fas fa-building-circle-xmark","fas fa-building-columns","fas fa-building-flag","fas fa-building-lock","fas fa-building-ngo","fas fa-building-shield","fas fa-building-un","fas fa-building-user","fas fa-building-wheat","fas fa-bullhorn","fas fa-bullseye","fas fa-burger","fas fa-burst","fas fa-bus","fas fa-bus-simple","fas fa-business-time","fas fa-c","fas fa-cable-car","fas fa-cake-candles","fas fa-calculator","fas fa-calendar","fas fa-calendar-check","fas fa-calendar-day","fas fa-calendar-days","fas fa-calendar-minus","fas fa-calendar-plus","fas fa-calendar-week","fas fa-calendar-xmark","fas fa-camera","fas fa-camera-retro","fas fa-camera-rotate","fas fa-campground","fas fa-candy-cane","fas fa-cannabis","fas fa-capsules","fas fa-car","fas fa-car-battery","fas fa-car-burst","fas fa-car-on","fas fa-car-rear","fas fa-car-side","fas fa-car-tunnel","fas fa-caravan","fas fa-caret-down","fas fa-caret-left","fas fa-caret-right","fas fa-caret-up","fas fa-carrot","fas fa-cart-arrow-down","fas fa-cart-flatbed","fas fa-cart-flatbed-suitcase","fas fa-cart-plus","fas fa-cart-shopping","fas fa-cash-register","fas fa-cat","fas fa-cedi-sign","fas fa-cent-sign","fas fa-certificate","fas fa-chair","fas fa-chalkboard","fas fa-chalkboard-user","fas fa-champagne-glasses","fas fa-charging-station","fas fa-chart-area","fas fa-chart-bar","fas fa-chart-column","fas fa-chart-gantt","fas fa-chart-line","fas fa-chart-pie","fas fa-chart-simple","fas fa-check","fas fa-check-double","fas fa-check-to-slot","fas fa-cheese","fas fa-chess","fas fa-chess-bishop","fas fa-chess-board","fas fa-chess-king","fas fa-chess-knight","fas fa-chess-pawn","fas fa-chess-queen","fas fa-chess-rook","fas fa-chevron-down","fas fa-chevron-left","fas fa-chevron-right","fas fa-chevron-up","fas fa-child","fas fa-child-combatant","fas fa-child-dress","fas fa-child-reaching","fas fa-children","fas fa-church","fas fa-circle","fas fa-circle-arrow-down","fas fa-circle-arrow-left","fas fa-circle-arrow-right","fas fa-circle-arrow-up","fas fa-circle-check","fas fa-circle-chevron-down","fas fa-circle-chevron-left","fas fa-circle-chevron-right","fas fa-circle-chevron-up","fas fa-circle-dollar-to-slot","fas fa-circle-dot","fas fa-circle-down","fas fa-circle-exclamation","fas fa-circle-h","fas fa-circle-half-stroke","fas fa-circle-info","fas fa-circle-left","fas fa-circle-minus","fas fa-circle-nodes","fas fa-circle-notch","fas fa-circle-pause","fas fa-circle-play","fas fa-circle-plus","fas fa-circle-question","fas fa-circle-radiation","fas fa-circle-right","fas fa-circle-stop","fas fa-circle-up","fas fa-circle-user","fas fa-circle-xmark","fas fa-city","fas fa-clapperboard","fas fa-clipboard","fas fa-clipboard-check","fas fa-clipboard-list","fas fa-clipboard-question","fas fa-clipboard-user","fas fa-clock","fas fa-clock-rotate-left","fas fa-clone","fas fa-closed-captioning","fas fa-cloud","fas fa-cloud-arrow-down","fas fa-cloud-arrow-up","fas fa-cloud-bolt","fas fa-cloud-meatball","fas fa-cloud-moon","fas fa-cloud-moon-rain","fas fa-cloud-rain","fas fa-cloud-showers-heavy","fas fa-cloud-showers-water","fas fa-cloud-sun","fas fa-cloud-sun-rain","fas fa-clover","fas fa-code","fas fa-code-branch","fas fa-code-commit","fas fa-code-compare","fas fa-code-fork","fas fa-code-merge","fas fa-code-pull-request","fas fa-coins","fas fa-colon-sign","fas fa-comment","fas fa-comment-dollar","fas fa-comment-dots","fas fa-comment-medical","fas fa-comment-slash","fas fa-comment-sms","fas fa-comments","fas fa-comments-dollar","fas fa-compact-disc","fas fa-compass","fas fa-compass-drafting","fas fa-compress","fas fa-computer","fas fa-computer-mouse","fas fa-cookie","fas fa-cookie-bite","fas fa-copy","fas fa-copyright","fas fa-couch","fas fa-cow","fas fa-credit-card","fas fa-crop","fas fa-crop-simple","fas fa-cross","fas fa-crosshairs","fas fa-crow","fas fa-crown","fas fa-crutch","fas fa-cruzeiro-sign","fas fa-cube","fas fa-cubes","fas fa-cubes-stacked","fas fa-d","fas fa-database","fas fa-delete-left","fas fa-democrat","fas fa-desktop","fas fa-dharmachakra","fas fa-diagram-next","fas fa-diagram-predecessor","fas fa-diagram-project","fas fa-diagram-successor","fas fa-diamond","fas fa-diamond-turn-right","fas fa-dice","fas fa-dice-d20","fas fa-dice-d6","fas fa-dice-five","fas fa-dice-four","fas fa-dice-one","fas fa-dice-six","fas fa-dice-three","fas fa-dice-two","fas fa-disease","fas fa-display","fas fa-divide","fas fa-dna","fas fa-dog","fas fa-dollar-sign","fas fa-dolly","fas fa-dong-sign","fas fa-door-closed","fas fa-door-open","fas fa-dove","fas fa-down-left-and-up-right-to-center","fas fa-down-long","fas fa-download","fas fa-dragon","fas fa-draw-polygon","fas fa-droplet","fas fa-droplet-slash","fas fa-drum","fas fa-drum-steelpan","fas fa-drumstick-bite","fas fa-dumbbell","fas fa-dumpster","fas fa-dumpster-fire","fas fa-dungeon","fas fa-e","fas fa-ear-deaf","fas fa-ear-listen","fas fa-earth-africa","fas fa-earth-americas","fas fa-earth-asia","fas fa-earth-europe","fas fa-earth-oceania","fas fa-egg","fas fa-eject","fas fa-elevator","fas fa-ellipsis","fas fa-ellipsis-vertical","fas fa-envelope","fas fa-envelope-circle-check","fas fa-envelope-open","fas fa-envelope-open-text","fas fa-envelopes-bulk","fas fa-equals","fas fa-eraser","fas fa-ethernet","fas fa-euro-sign","fas fa-exclamation","fas fa-expand","fas fa-explosion","fas fa-eye","fas fa-eye-dropper","fas fa-eye-low-vision","fas fa-eye-slash","fas fa-f","fas fa-face-angry","fas fa-face-dizzy","fas fa-face-flushed","fas fa-face-frown","fas fa-face-frown-open","fas fa-face-grimace","fas fa-face-grin","fas fa-face-grin-beam","fas fa-face-grin-beam-sweat","fas fa-face-grin-hearts","fas fa-face-grin-squint","fas fa-face-grin-squint-tears","fas fa-face-grin-stars","fas fa-face-grin-tears","fas fa-face-grin-tongue","fas fa-face-grin-tongue-squint","fas fa-face-grin-tongue-wink","fas fa-face-grin-wide","fas fa-face-grin-wink","fas fa-face-kiss","fas fa-face-kiss-beam","fas fa-face-kiss-wink-heart","fas fa-face-laugh","fas fa-face-laugh-beam","fas fa-face-laugh-squint","fas fa-face-laugh-wink","fas fa-face-meh","fas fa-face-meh-blank","fas fa-face-rolling-eyes","fas fa-face-sad-cry","fas fa-face-sad-tear","fas fa-face-smile","fas fa-face-smile-beam","fas fa-face-smile-wink","fas fa-face-surprise","fas fa-face-tired","fas fa-fan","fas fa-faucet","fas fa-faucet-drip","fas fa-fax","fas fa-feather","fas fa-feather-pointed","fas fa-ferry","fas fa-file","fas fa-file-arrow-down","fas fa-file-arrow-up","fas fa-file-audio","fas fa-file-circle-check","fas fa-file-circle-exclamation","fas fa-file-circle-minus","fas fa-file-circle-plus","fas fa-file-circle-question","fas fa-file-circle-xmark","fas fa-file-code","fas fa-file-contract","fas fa-file-csv","fas fa-file-excel","fas fa-file-export","fas fa-file-image","fas fa-file-import","fas fa-file-invoice","fas fa-file-invoice-dollar","fas fa-file-lines","fas fa-file-medical","fas fa-file-pdf","fas fa-file-pen","fas fa-file-powerpoint","fas fa-file-prescription","fas fa-file-shield","fas fa-file-signature","fas fa-file-video","fas fa-file-waveform","fas fa-file-word","fas fa-file-zipper","fas fa-fill","fas fa-fill-drip","fas fa-film","fas fa-filter","fas fa-filter-circle-dollar","fas fa-filter-circle-xmark","fas fa-fingerprint","fas fa-fire","fas fa-fire-burner","fas fa-fire-extinguisher","fas fa-fire-flame-curved","fas fa-fire-flame-simple","fas fa-fish","fas fa-fish-fins","fas fa-flag","fas fa-flag-checkered","fas fa-flag-usa","fas fa-flask","fas fa-flask-vial","fas fa-floppy-disk","fas fa-florin-sign","fas fa-folder","fas fa-folder-closed","fas fa-folder-minus","fas fa-folder-open","fas fa-folder-plus","fas fa-folder-tree","fas fa-font","fas fa-font-awesome","fas fa-football","fas fa-forward","fas fa-forward-fast","fas fa-forward-step","fas fa-franc-sign","fas fa-frog","fas fa-futbol","fas fa-g","fas fa-gamepad","fas fa-gas-pump","fas fa-gauge","fas fa-gauge-high","fas fa-gauge-simple","fas fa-gauge-simple-high","fas fa-gavel","fas fa-gear","fas fa-gears","fas fa-gem","fas fa-genderless","fas fa-ghost","fas fa-gift","fas fa-gifts","fas fa-glass-water","fas fa-glass-water-droplet","fas fa-glasses","fas fa-globe","fas fa-golf-ball-tee","fas fa-gopuram","fas fa-graduation-cap","fas fa-greater-than","fas fa-greater-than-equal","fas fa-grip","fas fa-grip-lines","fas fa-grip-lines-vertical","fas fa-grip-vertical","fas fa-group-arrows-rotate","fas fa-guarani-sign","fas fa-guitar","fas fa-gun","fas fa-h","fas fa-hammer","fas fa-hamsa","fas fa-hand","fas fa-hand-back-fist","fas fa-hand-dots","fas fa-hand-fist","fas fa-hand-holding","fas fa-hand-holding-dollar","fas fa-hand-holding-droplet","fas fa-hand-holding-hand","fas fa-hand-holding-heart","fas fa-hand-holding-medical","fas fa-hand-lizard","fas fa-hand-middle-finger","fas fa-hand-peace","fas fa-hand-point-down","fas fa-hand-point-left","fas fa-hand-point-right","fas fa-hand-point-up","fas fa-hand-pointer","fas fa-hand-scissors","fas fa-hand-sparkles","fas fa-hand-spock","fas fa-handcuffs","fas fa-hands","fas fa-hands-asl-interpreting","fas fa-hands-bound","fas fa-hands-bubbles","fas fa-hands-clapping","fas fa-hands-holding","fas fa-hands-holding-child","fas fa-hands-holding-circle","fas fa-hands-praying","fas fa-handshake","fas fa-handshake-angle","fas fa-handshake-simple","fas fa-handshake-simple-slash","fas fa-handshake-slash","fas fa-hanukiah","fas fa-hard-drive","fas fa-hashtag","fas fa-hat-cowboy","fas fa-hat-cowboy-side","fas fa-hat-wizard","fas fa-head-side-cough","fas fa-head-side-cough-slash","fas fa-head-side-mask","fas fa-head-side-virus","fas fa-heading","fas fa-headphones","fas fa-headphones-simple","fas fa-headset","fas fa-heart","fas fa-heart-circle-bolt","fas fa-heart-circle-check","fas fa-heart-circle-exclamation","fas fa-heart-circle-minus","fas fa-heart-circle-plus","fas fa-heart-circle-xmark","fas fa-heart-crack","fas fa-heart-pulse","fas fa-helicopter","fas fa-helicopter-symbol","fas fa-helmet-safety","fas fa-helmet-un","fas fa-highlighter","fas fa-hill-avalanche","fas fa-hill-rockslide","fas fa-hippo","fas fa-hockey-puck","fas fa-holly-berry","fas fa-horse","fas fa-horse-head","fas fa-hospital","fas fa-hospital-user","fas fa-hot-tub-person","fas fa-hotdog","fas fa-hotel","fas fa-hourglass","fas fa-hourglass-end","fas fa-hourglass-half","fas fa-hourglass-start","fas fa-house","fas fa-house-chimney","fas fa-house-chimney-crack","fas fa-house-chimney-medical","fas fa-house-chimney-user","fas fa-house-chimney-window","fas fa-house-circle-check","fas fa-house-circle-exclamation","fas fa-house-circle-xmark","fas fa-house-crack","fas fa-house-fire","fas fa-house-flag","fas fa-house-flood-water","fas fa-house-flood-water-circle-arrow-right","fas fa-house-laptop","fas fa-house-lock","fas fa-house-medical","fas fa-house-medical-circle-check","fas fa-house-medical-circle-exclamation","fas fa-house-medical-circle-xmark","fas fa-house-medical-flag","fas fa-house-signal","fas fa-house-tsunami","fas fa-house-user","fas fa-hryvnia-sign","fas fa-hurricane","fas fa-i","fas fa-i-cursor","fas fa-ice-cream","fas fa-icicles","fas fa-icons","fas fa-id-badge","fas fa-id-card","fas fa-id-card-clip","fas fa-igloo","fas fa-image","fas fa-image-portrait","fas fa-images","fas fa-inbox","fas fa-indent","fas fa-indian-rupee-sign","fas fa-industry","fas fa-infinity","fas fa-info","fas fa-italic","fas fa-j","fas fa-jar","fas fa-jar-wheat","fas fa-jedi","fas fa-jet-fighter","fas fa-jet-fighter-up","fas fa-joint","fas fa-jug-detergent","fas fa-k","fas fa-kaaba","fas fa-key","fas fa-keyboard","fas fa-khanda","fas fa-kip-sign","fas fa-kit-medical","fas fa-kitchen-set","fas fa-kiwi-bird","fas fa-l","fas fa-land-mine-on","fas fa-landmark","fas fa-landmark-dome","fas fa-landmark-flag","fas fa-language","fas fa-laptop","fas fa-laptop-code","fas fa-laptop-file","fas fa-laptop-medical","fas fa-lari-sign","fas fa-layer-group","fas fa-leaf","fas fa-left-long","fas fa-left-right","fas fa-lemon","fas fa-less-than","fas fa-less-than-equal","fas fa-life-ring","fas fa-lightbulb","fas fa-lines-leaning","fas fa-link","fas fa-link-slash","fas fa-lira-sign","fas fa-list","fas fa-list-check","fas fa-list-ol","fas fa-list-ul","fas fa-litecoin-sign","fas fa-location-arrow","fas fa-location-crosshairs","fas fa-location-dot","fas fa-location-pin","fas fa-location-pin-lock","fas fa-lock","fas fa-lock-open","fas fa-locust","fas fa-lungs","fas fa-lungs-virus","fas fa-m","fas fa-magnet","fas fa-magnifying-glass","fas fa-magnifying-glass-arrow-right","fas fa-magnifying-glass-chart","fas fa-magnifying-glass-dollar","fas fa-magnifying-glass-location","fas fa-magnifying-glass-minus","fas fa-magnifying-glass-plus","fas fa-manat-sign","fas fa-map","fas fa-map-location","fas fa-map-location-dot","fas fa-map-pin","fas fa-marker","fas fa-mars","fas fa-mars-and-venus","fas fa-mars-and-venus-burst","fas fa-mars-double","fas fa-mars-stroke","fas fa-mars-stroke-right","fas fa-mars-stroke-up","fas fa-martini-glass","fas fa-martini-glass-citrus","fas fa-martini-glass-empty","fas fa-mask","fas fa-mask-face","fas fa-mask-ventilator","fas fa-masks-theater","fas fa-mattress-pillow","fas fa-maximize","fas fa-medal","fas fa-memory","fas fa-menorah","fas fa-mercury","fas fa-message","fas fa-meteor","fas fa-microchip","fas fa-microphone","fas fa-microphone-lines","fas fa-microphone-lines-slash","fas fa-microphone-slash","fas fa-microscope","fas fa-mill-sign","fas fa-minimize","fas fa-minus","fas fa-mitten","fas fa-mobile","fas fa-mobile-button","fas fa-mobile-retro","fas fa-mobile-screen","fas fa-mobile-screen-button","fas fa-money-bill","fas fa-money-bill-1","fas fa-money-bill-1-wave","fas fa-money-bill-transfer","fas fa-money-bill-trend-up","fas fa-money-bill-wave","fas fa-money-bill-wheat","fas fa-money-bills","fas fa-money-check","fas fa-money-check-dollar","fas fa-monument","fas fa-moon","fas fa-mortar-pestle","fas fa-mosque","fas fa-mosquito","fas fa-mosquito-net","fas fa-motorcycle","fas fa-mound","fas fa-mountain","fas fa-mountain-city","fas fa-mountain-sun","fas fa-mug-hot","fas fa-mug-saucer","fas fa-music","fas fa-n","fas fa-naira-sign","fas fa-network-wired","fas fa-neuter","fas fa-newspaper","fas fa-not-equal","fas fa-notdef","fas fa-note-sticky","fas fa-notes-medical","fas fa-o","fas fa-object-group","fas fa-object-ungroup","fas fa-oil-can","fas fa-oil-well","fas fa-om","fas fa-otter","fas fa-outdent","fas fa-p","fas fa-pager","fas fa-paint-roller","fas fa-paintbrush","fas fa-palette","fas fa-pallet","fas fa-panorama","fas fa-paper-plane","fas fa-paperclip","fas fa-parachute-box","fas fa-paragraph","fas fa-passport","fas fa-paste","fas fa-pause","fas fa-paw","fas fa-peace","fas fa-pen","fas fa-pen-clip","fas fa-pen-fancy","fas fa-pen-nib","fas fa-pen-ruler","fas fa-pen-to-square","fas fa-pencil","fas fa-people-arrows","fas fa-people-carry-box","fas fa-people-group","fas fa-people-line","fas fa-people-pulling","fas fa-people-robbery","fas fa-people-roof","fas fa-pepper-hot","fas fa-percent","fas fa-person","fas fa-person-arrow-down-to-line","fas fa-person-arrow-up-from-line","fas fa-person-biking","fas fa-person-booth","fas fa-person-breastfeeding","fas fa-person-burst","fas fa-person-cane","fas fa-person-chalkboard","fas fa-person-circle-check","fas fa-person-circle-exclamation","fas fa-person-circle-minus","fas fa-person-circle-plus","fas fa-person-circle-question","fas fa-person-circle-xmark","fas fa-person-digging","fas fa-person-dots-from-line","fas fa-person-dress","fas fa-person-dress-burst","fas fa-person-drowning","fas fa-person-falling","fas fa-person-falling-burst","fas fa-person-half-dress","fas fa-person-harassing","fas fa-person-hiking","fas fa-person-military-pointing","fas fa-person-military-rifle","fas fa-person-military-to-person","fas fa-person-praying","fas fa-person-pregnant","fas fa-person-rays","fas fa-person-rifle","fas fa-person-running","fas fa-person-shelter","fas fa-person-skating","fas fa-person-skiing","fas fa-person-skiing-nordic","fas fa-person-snowboarding","fas fa-person-swimming","fas fa-person-through-window","fas fa-person-walking","fas fa-person-walking-arrow-loop-left","fas fa-person-walking-arrow-right","fas fa-person-walking-dashed-line-arrow-right","fas fa-person-walking-luggage","fas fa-person-walking-with-cane","fas fa-peseta-sign","fas fa-peso-sign","fas fa-phone","fas fa-phone-flip","fas fa-phone-slash","fas fa-phone-volume","fas fa-photo-film","fas fa-piggy-bank","fas fa-pills","fas fa-pizza-slice","fas fa-place-of-worship","fas fa-plane","fas fa-plane-arrival","fas fa-plane-circle-check","fas fa-plane-circle-exclamation","fas fa-plane-circle-xmark","fas fa-plane-departure","fas fa-plane-lock","fas fa-plane-slash","fas fa-plane-up","fas fa-plant-wilt","fas fa-plate-wheat","fas fa-play","fas fa-plug","fas fa-plug-circle-bolt","fas fa-plug-circle-check","fas fa-plug-circle-exclamation","fas fa-plug-circle-minus","fas fa-plug-circle-plus","fas fa-plug-circle-xmark","fas fa-plus","fas fa-plus-minus","fas fa-podcast","fas fa-poo","fas fa-poo-storm","fas fa-poop","fas fa-power-off","fas fa-prescription","fas fa-prescription-bottle","fas fa-prescription-bottle-medical","fas fa-print","fas fa-pump-medical","fas fa-pump-soap","fas fa-puzzle-piece","fas fa-q","fas fa-qrcode","fas fa-question","fas fa-quote-left","fas fa-quote-right","fas fa-r","fas fa-radiation","fas fa-radio","fas fa-rainbow","fas fa-ranking-star","fas fa-receipt","fas fa-record-vinyl","fas fa-rectangle-ad","fas fa-rectangle-list","fas fa-rectangle-xmark","fas fa-recycle","fas fa-registered","fas fa-repeat","fas fa-reply","fas fa-reply-all","fas fa-republican","fas fa-restroom","fas fa-retweet","fas fa-ribbon","fas fa-right-from-bracket","fas fa-right-left","fas fa-right-long","fas fa-right-to-bracket","fas fa-ring","fas fa-road","fas fa-road-barrier","fas fa-road-bridge","fas fa-road-circle-check","fas fa-road-circle-exclamation","fas fa-road-circle-xmark","fas fa-road-lock","fas fa-road-spikes","fas fa-robot","fas fa-rocket","fas fa-rotate","fas fa-rotate-left","fas fa-rotate-right","fas fa-route","fas fa-rss","fas fa-ruble-sign","fas fa-rug","fas fa-ruler","fas fa-ruler-combined","fas fa-ruler-horizontal","fas fa-ruler-vertical","fas fa-rupee-sign","fas fa-rupiah-sign","fas fa-s","fas fa-sack-dollar","fas fa-sack-xmark","fas fa-sailboat","fas fa-satellite","fas fa-satellite-dish","fas fa-scale-balanced","fas fa-scale-unbalanced","fas fa-scale-unbalanced-flip","fas fa-school","fas fa-school-circle-check","fas fa-school-circle-exclamation","fas fa-school-circle-xmark","fas fa-school-flag","fas fa-school-lock","fas fa-scissors","fas fa-screwdriver","fas fa-screwdriver-wrench","fas fa-scroll","fas fa-scroll-torah","fas fa-sd-card","fas fa-section","fas fa-seedling","fas fa-server","fas fa-shapes","fas fa-share","fas fa-share-from-square","fas fa-share-nodes","fas fa-sheet-plastic","fas fa-shekel-sign","fas fa-shield","fas fa-shield-cat","fas fa-shield-dog","fas fa-shield-halved","fas fa-shield-heart","fas fa-shield-virus","fas fa-ship","fas fa-shirt","fas fa-shoe-prints","fas fa-shop","fas fa-shop-lock","fas fa-shop-slash","fas fa-shower","fas fa-shrimp","fas fa-shuffle","fas fa-shuttle-space","fas fa-sign-hanging","fas fa-signal","fas fa-signature","fas fa-signs-post","fas fa-sim-card","fas fa-sink","fas fa-sitemap","fas fa-skull","fas fa-skull-crossbones","fas fa-slash","fas fa-sleigh","fas fa-sliders","fas fa-smog","fas fa-smoking","fas fa-snowflake","fas fa-snowman","fas fa-snowplow","fas fa-soap","fas fa-socks","fas fa-solar-panel","fas fa-sort","fas fa-sort-down","fas fa-sort-up","fas fa-spa","fas fa-spaghetti-monster-flying","fas fa-spell-check","fas fa-spider","fas fa-spinner","fas fa-splotch","fas fa-spoon","fas fa-spray-can","fas fa-spray-can-sparkles","fas fa-square","fas fa-square-arrow-up-right","fas fa-square-caret-down","fas fa-square-caret-left","fas fa-square-caret-right","fas fa-square-caret-up","fas fa-square-check","fas fa-square-envelope","fas fa-square-full","fas fa-square-h","fas fa-square-minus","fas fa-square-nfi","fas fa-square-parking","fas fa-square-pen","fas fa-square-person-confined","fas fa-square-phone","fas fa-square-phone-flip","fas fa-square-plus","fas fa-square-poll-horizontal","fas fa-square-poll-vertical","fas fa-square-root-variable","fas fa-square-rss","fas fa-square-share-nodes","fas fa-square-up-right","fas fa-square-virus","fas fa-square-xmark","fas fa-staff-snake","fas fa-stairs","fas fa-stamp","fas fa-stapler","fas fa-star","fas fa-star-and-crescent","fas fa-star-half","fas fa-star-half-stroke","fas fa-star-of-david","fas fa-star-of-life","fas fa-sterling-sign","fas fa-stethoscope","fas fa-stop","fas fa-stopwatch","fas fa-stopwatch-20","fas fa-store","fas fa-store-slash","fas fa-street-view","fas fa-strikethrough","fas fa-stroopwafel","fas fa-subscript","fas fa-suitcase","fas fa-suitcase-medical","fas fa-suitcase-rolling","fas fa-sun","fas fa-sun-plant-wilt","fas fa-superscript","fas fa-swatchbook","fas fa-synagogue","fas fa-syringe","fas fa-t","fas fa-table","fas fa-table-cells","fas fa-table-cells-large","fas fa-table-columns","fas fa-table-list","fas fa-table-tennis-paddle-ball","fas fa-tablet","fas fa-tablet-button","fas fa-tablet-screen-button","fas fa-tablets","fas fa-tachograph-digital","fas fa-tag","fas fa-tags","fas fa-tape","fas fa-tarp","fas fa-tarp-droplet","fas fa-taxi","fas fa-teeth","fas fa-teeth-open","fas fa-temperature-arrow-down","fas fa-temperature-arrow-up","fas fa-temperature-empty","fas fa-temperature-full","fas fa-temperature-half","fas fa-temperature-high","fas fa-temperature-low","fas fa-temperature-quarter","fas fa-temperature-three-quarters","fas fa-tenge-sign","fas fa-tent","fas fa-tent-arrow-down-to-line","fas fa-tent-arrow-left-right","fas fa-tent-arrow-turn-left","fas fa-tent-arrows-down","fas fa-tents","fas fa-terminal","fas fa-text-height","fas fa-text-slash","fas fa-text-width","fas fa-thermometer","fas fa-thumbs-down","fas fa-thumbs-up","fas fa-thumbtack","fas fa-ticket","fas fa-ticket-simple","fas fa-timeline","fas fa-toggle-off","fas fa-toggle-on","fas fa-toilet","fas fa-toilet-paper","fas fa-toilet-paper-slash","fas fa-toilet-portable","fas fa-toilets-portable","fas fa-toolbox","fas fa-tooth","fas fa-torii-gate","fas fa-tornado","fas fa-tower-broadcast","fas fa-tower-cell","fas fa-tower-observation","fas fa-tractor","fas fa-trademark","fas fa-traffic-light","fas fa-trailer","fas fa-train","fas fa-train-subway","fas fa-train-tram","fas fa-transgender","fas fa-trash","fas fa-trash-arrow-up","fas fa-trash-can","fas fa-trash-can-arrow-up","fas fa-tree","fas fa-tree-city","fas fa-triangle-exclamation","fas fa-trophy","fas fa-trowel","fas fa-trowel-bricks","fas fa-truck","fas fa-truck-arrow-right","fas fa-truck-droplet","fas fa-truck-fast","fas fa-truck-field","fas fa-truck-field-un","fas fa-truck-front","fas fa-truck-medical","fas fa-truck-monster","fas fa-truck-moving","fas fa-truck-pickup","fas fa-truck-plane","fas fa-truck-ramp-box","fas fa-tty","fas fa-turkish-lira-sign","fas fa-turn-down","fas fa-turn-up","fas fa-tv","fas fa-u","fas fa-umbrella","fas fa-umbrella-beach","fas fa-underline","fas fa-universal-access","fas fa-unlock","fas fa-unlock-keyhole","fas fa-up-down","fas fa-up-down-left-right","fas fa-up-long","fas fa-up-right-and-down-left-from-center","fas fa-up-right-from-square","fas fa-upload","fas fa-user","fas fa-user-astronaut","fas fa-user-check","fas fa-user-clock","fas fa-user-doctor","fas fa-user-gear","fas fa-user-graduate","fas fa-user-group","fas fa-user-injured","fas fa-user-large","fas fa-user-large-slash","fas fa-user-lock","fas fa-user-minus","fas fa-user-ninja","fas fa-user-nurse","fas fa-user-pen","fas fa-user-plus","fas fa-user-secret","fas fa-user-shield","fas fa-user-slash","fas fa-user-tag","fas fa-user-tie","fas fa-user-xmark","fas fa-users","fas fa-users-between-lines","fas fa-users-gear","fas fa-users-line","fas fa-users-rays","fas fa-users-rectangle","fas fa-users-slash","fas fa-users-viewfinder","fas fa-utensils","fas fa-v","fas fa-van-shuttle","fas fa-vault","fas fa-vector-square","fas fa-venus","fas fa-venus-double","fas fa-venus-mars","fas fa-vest","fas fa-vest-patches","fas fa-vial","fas fa-vial-circle-check","fas fa-vial-virus","fas fa-vials","fas fa-video","fas fa-video-slash","fas fa-vihara","fas fa-virus","fas fa-virus-covid","fas fa-virus-covid-slash","fas fa-virus-slash","fas fa-viruses","fas fa-voicemail","fas fa-volcano","fas fa-volleyball","fas fa-volume-high","fas fa-volume-low","fas fa-volume-off","fas fa-volume-xmark","fas fa-vr-cardboard","fas fa-w","fas fa-walkie-talkie","fas fa-wallet","fas fa-wand-magic","fas fa-wand-magic-sparkles","fas fa-wand-sparkles","fas fa-warehouse","fas fa-water","fas fa-water-ladder","fas fa-wave-square","fas fa-weight-hanging","fas fa-weight-scale","fas fa-wheat-awn","fas fa-wheat-awn-circle-exclamation","fas fa-wheelchair","fas fa-wheelchair-move","fas fa-whiskey-glass","fas fa-wifi","fas fa-wind","fas fa-window-maximize","fas fa-window-minimize","fas fa-window-restore","fas fa-wine-bottle","fas fa-wine-glass","fas fa-wine-glass-empty","fas fa-won-sign","fas fa-worm","fas fa-wrench","fas fa-x","fas fa-x-ray","fas fa-xmark","fas fa-xmarks-lines","fas fa-y","fas fa-yen-sign","fas fa-yin-yang","fas fa-z"]:null;function v(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}var b=function(e){var t,n,c,p,d=e.title,b=void 0===d?"Select Icon":d,_=e.icons,w=void 0!==_&&_,S=e.value,x=e.onChange,k=e.showHeading,C=void 0===k||k,E=e.disableDashicon,P=void 0!==E&&E,A=e.disableFontAwesome,O=void 0!==A&&A,M=u((0,i.useState)({}),2),T=M[0],I=M[1],D=u((0,i.useState)(""),2),L=D[0],R=D[1],j=u((0,i.useState)(""),2),F=j[0],V=j[1],N=u((0,i.useState)("dashicon"),2),B=N[0],z=N[1],H=u((0,i.useState)({}),2),G=H[0],W=H[1],U=u((0,i.useState)(!1),2),$=U[0],q=U[1],Y=u((0,i.useState)(""),2),K=Y[0],X=Y[1],J=(0,i.useRef)(null),Z=(0,i.useRef)(null);return n=Z,c=q,(0,i.useEffect)(function(){function e(e){t.current&&!t.current.contains(e.target)&&(n.current&&n.current.contains(e.target)?c(!0):c(!1))}return document.addEventListener("mousedown",e),function(){document.removeEventListener("mousedown",e)}},[t=J]),(0,i.useEffect)(function(){var e={};e=w&&"object"===s(w)&&Object.keys(w).length>0?function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?v(Object(n),!0).forEach(function(t){l(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):v(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},w):{dashIcon:g,fontAwesome:y},P&&delete e.dashIcon,O&&delete e.fontAwesome,I(e),"object"===s(e)&&Object.keys(e).length>0&&"object"===s(e[Object.keys(e)[0]])&&W(e[Object.keys(e)[0]]),Z.current&&X(Z.current)},[]),(0,i.useEffect)(function(){V(""),"fontawesome"===B?T.fontAwesome&&"object"===s(T.fontAwesome)&&T.fontAwesome.length>0&&W(T.fontAwesome):T.dashIcon&&"object"===s(T.dashIcon)&&T.dashIcon.length>0&&W(T.dashIcon)},[B]),(0,i.useEffect)(function(){S&&"string"==typeof S&&(R(S),z(f(S)))},[S]),(0,o.jsxs)(r.Fragment,{children:[C&&(0,o.jsx)(a.PanelRow,{children:b}),(0,o.jsxs)("div",{ref:Z,id:"wipIcon",onClick:function(){return q(!$)},children:[S&&(0,o.jsx)(o.Fragment,{children:(0,o.jsx)(m,{label:"Click to choose Icon",icon:S})}),!S&&(0,o.jsx)(o.Fragment,{children:(0,o.jsx)(a.Dashicon,{className:"wip-iconpicker-placeholder",icon:"insert"})})]}),$&&(0,o.jsxs)(a.Popover,{ref:J,anchor:K,className:"wip-iconpicker-popup",children:[(0,o.jsx)(a.SearchControl,{value:F,onChange:function(e){return function(e){V(e);var t=("fontawesome"===B?T.fontAwesome:T.dashIcon).filter(function(t){return t.includes(e)});W(t)}(e)}}),(0,o.jsx)(a.TabPanel,{className:"wip-parent-tab-panel",activeClass:"active-tab",onSelect:function(e){return z(e)},initialTabName:B,tabs:(p=[],P||p.push({name:"dashicon",title:"Dashicon",className:"wip-icon-tab dashicon"}),O||p.push({name:"fontawesome",title:"FontAwesome",className:"wip-icon-tab fontawesome"}),p),children:function(e){return(0,o.jsx)("div",{className:"wip-icon-area",children:G.map(function(e,t){return(0,o.jsx)("div",{className:"wip-icon-box".concat(L===e?" active":""),onClick:function(){return function(e){x(e),q(!1)}(e)},children:(0,o.jsx)(a.Tooltip,{text:e,children:(0,o.jsxs)("div",{className:"wip-icon-content",children:["dashicon"===B&&(0,o.jsx)(a.Dashicon,{icon:h(e)}),"fontawesome"===B&&(0,o.jsx)("i",{class:e}),(0,o.jsx)(a.PanelRow,{label:e,children:e.substring(0,16)+"..."})]})})},t)})})}})]})]})}}}]);
!function t(e){var r,i;r=this,i=function(){"use strict";function r(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,i)}return r}function i(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?r(Object(i),!0).forEach(function(e){s(t,e,i[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):r(Object(i)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))})}return t}function n(t,e){for(var r=0;r<e.length;r++){var i=e[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,v(i.key),i)}}function a(t,e,r){return e&&n(t.prototype,e),r&&n(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function s(t,e,r){return(e=v(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function o(){return o=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(t[i]=r[i])}return t},o.apply(this,arguments)}function l(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,h(t,e)}function u(t){return u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},u(t)}function h(t,e){return h=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},h(t,e)}function d(t,e,r){return d=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}()?Reflect.construct.bind():function(t,e,r){var i=[null];i.push.apply(i,e);var n=new(Function.bind.apply(t,i));return r&&h(n,r.prototype),n},d.apply(null,arguments)}function c(t){var e="function"==typeof Map?new Map:void 0;return c=function(t){if(null===t||(r=t,-1===Function.toString.call(r).indexOf("[native code]")))return t;var r;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==e){if(e.has(t))return e.get(t);e.set(t,i)}function i(){return d(t,arguments,u(this).constructor)}return i.prototype=Object.create(t.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),h(i,t)},c(t)}function f(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,i=new Array(e);r<e;r++)i[r]=t[r];return i}function g(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(r)return(r=r.call(t)).next.bind(r);if(Array.isArray(t)||(r=function(t,e){if(t){if("string"==typeof t)return f(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?f(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var i=0;return function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function v(t){var e=function(t){if("object"!=typeof t||null===t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==typeof e?e:String(e)}var m={exports:{}};!function(t){var e,r,i,n,a;e=/^(?=((?:[a-zA-Z0-9+\-.]+:)?))\1(?=((?:\/\/[^\/?#]*)?))\2(?=((?:(?:[^?#\/]*\/)*[^;?#\/]*)?))\3((?:;[^?#]*)?)(\?[^#]*)?(#[^]*)?$/,r=/^(?=([^\/?#]*))\1([^]*)$/,i=/(?:\/|^)\.(?=\/)/g,n=/(?:\/|^)\.\.\/(?!\.\.\/)[^\/]*(?=\/)/g,a={buildAbsoluteURL:function(t,e,i){if(i=i||{},t=t.trim(),!(e=e.trim())){if(!i.alwaysNormalize)return t;var n=a.parseURL(t);if(!n)throw new Error("Error trying to parse base URL.");return n.path=a.normalizePath(n.path),a.buildURLFromParts(n)}var s=a.parseURL(e);if(!s)throw new Error("Error trying to parse relative URL.");if(s.scheme)return i.alwaysNormalize?(s.path=a.normalizePath(s.path),a.buildURLFromParts(s)):e;var o=a.parseURL(t);if(!o)throw new Error("Error trying to parse base URL.");if(!o.netLoc&&o.path&&"/"!==o.path[0]){var l=r.exec(o.path);o.netLoc=l[1],o.path=l[2]}o.netLoc&&!o.path&&(o.path="/");var u={scheme:o.scheme,netLoc:s.netLoc,path:null,params:s.params,query:s.query,fragment:s.fragment};if(!s.netLoc&&(u.netLoc=o.netLoc,"/"!==s.path[0]))if(s.path){var h=o.path,d=h.substring(0,h.lastIndexOf("/")+1)+s.path;u.path=a.normalizePath(d)}else u.path=o.path,s.params||(u.params=o.params,s.query||(u.query=o.query));return null===u.path&&(u.path=i.alwaysNormalize?a.normalizePath(s.path):s.path),a.buildURLFromParts(u)},parseURL:function(t){var r=e.exec(t);return r?{scheme:r[1]||"",netLoc:r[2]||"",path:r[3]||"",params:r[4]||"",query:r[5]||"",fragment:r[6]||""}:null},normalizePath:function(t){for(t=t.split("").reverse().join("").replace(i,"");t.length!==(t=t.replace(n,"")).length;);return t.split("").reverse().join("")},buildURLFromParts:function(t){return t.scheme+t.netLoc+t.path+t.params+t.query+t.fragment}},t.exports=a}(m);var p=m.exports,y=Number.isFinite||function(t){return"number"==typeof t&&isFinite(t)},T=function(t){return t.MEDIA_ATTACHING="hlsMediaAttaching",t.MEDIA_ATTACHED="hlsMediaAttached",t.MEDIA_DETACHING="hlsMediaDetaching",t.MEDIA_DETACHED="hlsMediaDetached",t.BUFFER_RESET="hlsBufferReset",t.BUFFER_CODECS="hlsBufferCodecs",t.BUFFER_CREATED="hlsBufferCreated",t.BUFFER_APPENDING="hlsBufferAppending",t.BUFFER_APPENDED="hlsBufferAppended",t.BUFFER_EOS="hlsBufferEos",t.BUFFER_FLUSHING="hlsBufferFlushing",t.BUFFER_FLUSHED="hlsBufferFlushed",t.MANIFEST_LOADING="hlsManifestLoading",t.MANIFEST_LOADED="hlsManifestLoaded",t.MANIFEST_PARSED="hlsManifestParsed",t.LEVEL_SWITCHING="hlsLevelSwitching",t.LEVEL_SWITCHED="hlsLevelSwitched",t.LEVEL_LOADING="hlsLevelLoading",t.LEVEL_LOADED="hlsLevelLoaded",t.LEVEL_UPDATED="hlsLevelUpdated",t.LEVEL_PTS_UPDATED="hlsLevelPtsUpdated",t.LEVELS_UPDATED="hlsLevelsUpdated",t.AUDIO_TRACKS_UPDATED="hlsAudioTracksUpdated",t.AUDIO_TRACK_SWITCHING="hlsAudioTrackSwitching",t.AUDIO_TRACK_SWITCHED="hlsAudioTrackSwitched",t.AUDIO_TRACK_LOADING="hlsAudioTrackLoading",t.AUDIO_TRACK_LOADED="hlsAudioTrackLoaded",t.SUBTITLE_TRACKS_UPDATED="hlsSubtitleTracksUpdated",t.SUBTITLE_TRACKS_CLEARED="hlsSubtitleTracksCleared",t.SUBTITLE_TRACK_SWITCH="hlsSubtitleTrackSwitch",t.SUBTITLE_TRACK_LOADING="hlsSubtitleTrackLoading",t.SUBTITLE_TRACK_LOADED="hlsSubtitleTrackLoaded",t.SUBTITLE_FRAG_PROCESSED="hlsSubtitleFragProcessed",t.CUES_PARSED="hlsCuesParsed",t.NON_NATIVE_TEXT_TRACKS_FOUND="hlsNonNativeTextTracksFound",t.INIT_PTS_FOUND="hlsInitPtsFound",t.FRAG_LOADING="hlsFragLoading",t.FRAG_LOAD_EMERGENCY_ABORTED="hlsFragLoadEmergencyAborted",t.FRAG_LOADED="hlsFragLoaded",t.FRAG_DECRYPTED="hlsFragDecrypted",t.FRAG_PARSING_INIT_SEGMENT="hlsFragParsingInitSegment",t.FRAG_PARSING_USERDATA="hlsFragParsingUserdata",t.FRAG_PARSING_METADATA="hlsFragParsingMetadata",t.FRAG_PARSED="hlsFragParsed",t.FRAG_BUFFERED="hlsFragBuffered",t.FRAG_CHANGED="hlsFragChanged",t.FPS_DROP="hlsFpsDrop",t.FPS_DROP_LEVEL_CAPPING="hlsFpsDropLevelCapping",t.ERROR="hlsError",t.DESTROYING="hlsDestroying",t.KEY_LOADING="hlsKeyLoading",t.KEY_LOADED="hlsKeyLoaded",t.LIVE_BACK_BUFFER_REACHED="hlsLiveBackBufferReached",t.BACK_BUFFER_REACHED="hlsBackBufferReached",t}({}),E=function(t){return t.NETWORK_ERROR="networkError",t.MEDIA_ERROR="mediaError",t.KEY_SYSTEM_ERROR="keySystemError",t.MUX_ERROR="muxError",t.OTHER_ERROR="otherError",t}({}),S=function(t){return t.KEY_SYSTEM_NO_KEYS="keySystemNoKeys",t.KEY_SYSTEM_NO_ACCESS="keySystemNoAccess",t.KEY_SYSTEM_NO_SESSION="keySystemNoSession",t.KEY_SYSTEM_NO_CONFIGURED_LICENSE="keySystemNoConfiguredLicense",t.KEY_SYSTEM_LICENSE_REQUEST_FAILED="keySystemLicenseRequestFailed",t.KEY_SYSTEM_SERVER_CERTIFICATE_REQUEST_FAILED="keySystemServerCertificateRequestFailed",t.KEY_SYSTEM_SERVER_CERTIFICATE_UPDATE_FAILED="keySystemServerCertificateUpdateFailed",t.KEY_SYSTEM_SESSION_UPDATE_FAILED="keySystemSessionUpdateFailed",t.KEY_SYSTEM_STATUS_OUTPUT_RESTRICTED="keySystemStatusOutputRestricted",t.KEY_SYSTEM_STATUS_INTERNAL_ERROR="keySystemStatusInternalError",t.MANIFEST_LOAD_ERROR="manifestLoadError",t.MANIFEST_LOAD_TIMEOUT="manifestLoadTimeOut",t.MANIFEST_PARSING_ERROR="manifestParsingError",t.MANIFEST_INCOMPATIBLE_CODECS_ERROR="manifestIncompatibleCodecsError",t.LEVEL_EMPTY_ERROR="levelEmptyError",t.LEVEL_LOAD_ERROR="levelLoadError",t.LEVEL_LOAD_TIMEOUT="levelLoadTimeOut",t.LEVEL_PARSING_ERROR="levelParsingError",t.LEVEL_SWITCH_ERROR="levelSwitchError",t.AUDIO_TRACK_LOAD_ERROR="audioTrackLoadError",t.AUDIO_TRACK_LOAD_TIMEOUT="audioTrackLoadTimeOut",t.SUBTITLE_LOAD_ERROR="subtitleTrackLoadError",t.SUBTITLE_TRACK_LOAD_TIMEOUT="subtitleTrackLoadTimeOut",t.FRAG_LOAD_ERROR="fragLoadError",t.FRAG_LOAD_TIMEOUT="fragLoadTimeOut",t.FRAG_DECRYPT_ERROR="fragDecryptError",t.FRAG_PARSING_ERROR="fragParsingError",t.FRAG_GAP="fragGap",t.REMUX_ALLOC_ERROR="remuxAllocError",t.KEY_LOAD_ERROR="keyLoadError",t.KEY_LOAD_TIMEOUT="keyLoadTimeOut",t.BUFFER_ADD_CODEC_ERROR="bufferAddCodecError",t.BUFFER_INCOMPATIBLE_CODECS_ERROR="bufferIncompatibleCodecsError",t.BUFFER_APPEND_ERROR="bufferAppendError",t.BUFFER_APPENDING_ERROR="bufferAppendingError",t.BUFFER_STALLED_ERROR="bufferStalledError",t.BUFFER_FULL_ERROR="bufferFullError",t.BUFFER_SEEK_OVER_HOLE="bufferSeekOverHole",t.BUFFER_NUDGE_ON_STALL="bufferNudgeOnStall",t.INTERNAL_EXCEPTION="internalException",t.INTERNAL_ABORTED="aborted",t.UNKNOWN="unknown",t}({}),L=function(){},R={trace:L,debug:L,log:L,warn:L,info:L,error:L},A=R;function k(t,e){if(self.console&&!0===t||"object"==typeof t){!function(t){for(var e=arguments.length,r=new Array(e>1?e-1:0),i=1;i<e;i++)r[i-1]=arguments[i];r.forEach(function(e){A[e]=t[e]?t[e].bind(t):function(t){var e=self.console[t];return e?e.bind(self.console,"["+t+"] >"):L}(e)})}(t,"debug","log","info","warn","error");try{A.log('Debug logs enabled for "'+e+'" in hls.js version 1.4.12')}catch(t){A=R}}else A=R}var b=A,D=/^(\d+)x(\d+)$/,I=/(.+?)=(".*?"|.*?)(?:,|$)/g,w=function(){function t(e){for(var r in"string"==typeof e&&(e=t.parseAttrList(e)),e)e.hasOwnProperty(r)&&("X-"===r.substring(0,2)&&(this.clientAttrs=this.clientAttrs||[],this.clientAttrs.push(r)),this[r]=e[r])}var e=t.prototype;return e.decimalInteger=function(t){var e=parseInt(this[t],10);return e>Number.MAX_SAFE_INTEGER?1/0:e},e.hexadecimalInteger=function(t){if(this[t]){var e=(this[t]||"0x").slice(2);e=(1&e.length?"0":"")+e;for(var r=new Uint8Array(e.length/2),i=0;i<e.length/2;i++)r[i]=parseInt(e.slice(2*i,2*i+2),16);return r}return null},e.hexadecimalIntegerAsNumber=function(t){var e=parseInt(this[t],16);return e>Number.MAX_SAFE_INTEGER?1/0:e},e.decimalFloatingPoint=function(t){return parseFloat(this[t])},e.optionalFloat=function(t,e){var r=this[t];return r?parseFloat(r):e},e.enumeratedString=function(t){return this[t]},e.bool=function(t){return"YES"===this[t]},e.decimalResolution=function(t){var e=D.exec(this[t]);if(null!==e)return{width:parseInt(e[1],10),height:parseInt(e[2],10)}},t.parseAttrList=function(t){var e,r={};for(I.lastIndex=0;null!==(e=I.exec(t));){var i=e[2];0===i.indexOf('"')&&i.lastIndexOf('"')===i.length-1&&(i=i.slice(1,-1)),r[e[1].trim()]=i}return r},t}();function C(t){return"SCTE35-OUT"===t||"SCTE35-IN"===t}var _=function(){function t(t,e){if(this.attr=void 0,this._startDate=void 0,this._endDate=void 0,this._badValueForSameId=void 0,e){var r=e.attr;for(var i in r)if(Object.prototype.hasOwnProperty.call(t,i)&&t[i]!==r[i]){b.warn('DATERANGE tag attribute: "'+i+'" does not match for tags with ID: "'+t.ID+'"'),this._badValueForSameId=i;break}t=o(new w({}),r,t)}if(this.attr=t,this._startDate=new Date(t["START-DATE"]),"END-DATE"in this.attr){var n=new Date(this.attr["END-DATE"]);y(n.getTime())&&(this._endDate=n)}}return a(t,[{key:"id",get:function(){return this.attr.ID}},{key:"class",get:function(){return this.attr.CLASS}},{key:"startDate",get:function(){return this._startDate}},{key:"endDate",get:function(){if(this._endDate)return this._endDate;var t=this.duration;return null!==t?new Date(this._startDate.getTime()+1e3*t):null}},{key:"duration",get:function(){if("DURATION"in this.attr){var t=this.attr.decimalFloatingPoint("DURATION");if(y(t))return t}else if(this._endDate)return(this._endDate.getTime()-this._startDate.getTime())/1e3;return null}},{key:"plannedDuration",get:function(){return"PLANNED-DURATION"in this.attr?this.attr.decimalFloatingPoint("PLANNED-DURATION"):null}},{key:"endOnNext",get:function(){return this.attr.bool("END-ON-NEXT")}},{key:"isValid",get:function(){return!!this.id&&!this._badValueForSameId&&y(this.startDate.getTime())&&(null===this.duration||this.duration>=0)&&(!this.endOnNext||!!this.class)}}]),t}(),P=function(){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}},x="audio",F="video",M="audiovideo",O=function(){function t(t){var e;this._byteRange=null,this._url=null,this.baseurl=void 0,this.relurl=void 0,this.elementaryStreams=((e={})[x]=null,e[F]=null,e[M]=null,e),this.baseurl=t}return t.prototype.setByteRange=function(t,e){var r=t.split("@",2),i=[];1===r.length?i[0]=e?e.byteRangeEndOffset:0:i[0]=parseInt(r[1]),i[1]=parseInt(r[0])+i[0],this._byteRange=i},a(t,[{key:"byteRange",get:function(){return this._byteRange?this._byteRange:[]}},{key:"byteRangeStartOffset",get:function(){return this.byteRange[0]}},{key:"byteRangeEndOffset",get:function(){return this.byteRange[1]}},{key:"url",get:function(){return!this._url&&this.baseurl&&this.relurl&&(this._url=p.buildAbsoluteURL(this.baseurl,this.relurl,{alwaysNormalize:!0})),this._url||""},set:function(t){this._url=t}}]),t}(),N=function(t){function e(e,r){var i;return(i=t.call(this,r)||this)._decryptdata=null,i.rawProgramDateTime=null,i.programDateTime=null,i.tagList=[],i.duration=0,i.sn=0,i.levelkeys=void 0,i.type=void 0,i.loader=null,i.keyLoader=null,i.level=-1,i.cc=0,i.startPTS=void 0,i.endPTS=void 0,i.startDTS=void 0,i.endDTS=void 0,i.start=0,i.deltaPTS=void 0,i.maxStartPTS=void 0,i.minEndPTS=void 0,i.stats=new P,i.urlId=0,i.data=void 0,i.bitrateTest=!1,i.title=null,i.initSegment=null,i.endList=void 0,i.gap=void 0,i.type=e,i}l(e,t);var r=e.prototype;return r.setKeyFormat=function(t){if(this.levelkeys){var e=this.levelkeys[t];e&&!this._decryptdata&&(this._decryptdata=e.getDecryptData(this.sn))}},r.abortRequests=function(){var t,e;null==(t=this.loader)||t.abort(),null==(e=this.keyLoader)||e.abort()},r.setElementaryStreamInfo=function(t,e,r,i,n,a){void 0===a&&(a=!1);var s=this.elementaryStreams,o=s[t];o?(o.startPTS=Math.min(o.startPTS,e),o.endPTS=Math.max(o.endPTS,r),o.startDTS=Math.min(o.startDTS,i),o.endDTS=Math.max(o.endDTS,n)):s[t]={startPTS:e,endPTS:r,startDTS:i,endDTS:n,partial:a}},r.clearElementaryStreamInfo=function(){var t=this.elementaryStreams;t[x]=null,t[F]=null,t[M]=null},a(e,[{key:"decryptdata",get:function(){if(!this.levelkeys&&!this._decryptdata)return null;if(!this._decryptdata&&this.levelkeys&&!this.levelkeys.NONE){var t=this.levelkeys.identity;if(t)this._decryptdata=t.getDecryptData(this.sn);else{var e=Object.keys(this.levelkeys);if(1===e.length)return this._decryptdata=this.levelkeys[e[0]].getDecryptData(this.sn)}}return this._decryptdata}},{key:"end",get:function(){return this.start+this.duration}},{key:"endProgramDateTime",get:function(){if(null===this.programDateTime)return null;if(!y(this.programDateTime))return null;var t=y(this.duration)?this.duration:0;return this.programDateTime+1e3*t}},{key:"encrypted",get:function(){var t;if(null!=(t=this._decryptdata)&&t.encrypted)return!0;if(this.levelkeys){var e=Object.keys(this.levelkeys),r=e.length;if(r>1||1===r&&this.levelkeys[e[0]].encrypted)return!0}return!1}}]),e}(O),U=function(t){function e(e,r,i,n,a){var s;(s=t.call(this,i)||this).fragOffset=0,s.duration=0,s.gap=!1,s.independent=!1,s.relurl=void 0,s.fragment=void 0,s.index=void 0,s.stats=new P,s.duration=e.decimalFloatingPoint("DURATION"),s.gap=e.bool("GAP"),s.independent=e.bool("INDEPENDENT"),s.relurl=e.enumeratedString("URI"),s.fragment=r,s.index=n;var o=e.enumeratedString("BYTERANGE");return o&&s.setByteRange(o,a),a&&(s.fragOffset=a.fragOffset+a.duration),s}return l(e,t),a(e,[{key:"start",get:function(){return this.fragment.start+this.fragOffset}},{key:"end",get:function(){return this.start+this.duration}},{key:"loaded",get:function(){var t=this.elementaryStreams;return!!(t.audio||t.video||t.audiovideo)}}]),e}(O),B=function(){function t(t){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.live=!0,this.ageHeader=0,this.advancedDateTime=void 0,this.updated=!0,this.advanced=!0,this.availabilityDelay=void 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.driftStartTime=0,this.driftEndTime=0,this.driftStart=0,this.driftEnd=0,this.encryptedFragments=void 0,this.playlistParsingError=null,this.variableList=null,this.hasVariableRefs=!1,this.fragments=[],this.encryptedFragments=[],this.dateRanges={},this.url=t}return t.prototype.reloaded=function(t){if(!t)return this.advanced=!0,void(this.updated=!0);var e=this.lastPartSn-t.lastPartSn,r=this.lastPartIndex-t.lastPartIndex;this.updated=this.endSN!==t.endSN||!!r||!!e||!this.live,this.advanced=this.endSN>t.endSN||e>0||0===e&&r>0,this.updated||this.advanced?this.misses=Math.floor(.6*t.misses):this.misses=t.misses+1,this.availabilityDelay=t.availabilityDelay},a(t,[{key:"hasProgramDateTime",get:function(){return!!this.fragments.length&&y(this.fragments[this.fragments.length-1].programDateTime)}},{key:"levelTargetDuration",get:function(){return this.averagetargetduration||this.targetduration||10}},{key:"drift",get:function(){var t=this.driftEndTime-this.driftStartTime;return t>0?1e3*(this.driftEnd-this.driftStart)/t:1}},{key:"edge",get:function(){return this.partEnd||this.fragmentEnd}},{key:"partEnd",get:function(){var t;return null!=(t=this.partList)&&t.length?this.partList[this.partList.length-1].end:this.fragmentEnd}},{key:"fragmentEnd",get:function(){var t;return null!=(t=this.fragments)&&t.length?this.fragments[this.fragments.length-1].end:0}},{key:"age",get:function(){return this.advancedDateTime?Math.max(Date.now()-this.advancedDateTime,0)/1e3:0}},{key:"lastPartIndex",get:function(){var t;return null!=(t=this.partList)&&t.length?this.partList[this.partList.length-1].index:-1}},{key:"lastPartSn",get:function(){var t;return null!=(t=this.partList)&&t.length?this.partList[this.partList.length-1].fragment.sn:this.endSN}}]),t}();function G(t){return Uint8Array.from(atob(t),function(t){return t.charCodeAt(0)})}function K(t){return Uint8Array.from(unescape(encodeURIComponent(t)),function(t){return t.charCodeAt(0)})}var H={CLEARKEY:"org.w3.clearkey",FAIRPLAY:"com.apple.fps",PLAYREADY:"com.microsoft.playready",WIDEVINE:"com.widevine.alpha"},V="org.w3.clearkey",Y="com.apple.streamingkeydelivery",W="com.microsoft.playready",j="urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed";function q(t){switch(t){case Y:return H.FAIRPLAY;case W:return H.PLAYREADY;case j:return H.WIDEVINE;case V:return H.CLEARKEY}}var X="edef8ba979d64acea3c827dcd51d21ed";function z(t){switch(t){case H.FAIRPLAY:return Y;case H.PLAYREADY:return W;case H.WIDEVINE:return j;case H.CLEARKEY:return V}}function Q(t){var e=t.drmSystems,r=t.widevineLicenseUrl,i=e?[H.FAIRPLAY,H.WIDEVINE,H.PLAYREADY,H.CLEARKEY].filter(function(t){return!!e[t]}):[];return!i[H.WIDEVINE]&&r&&i.push(H.WIDEVINE),i}var $="undefined"!=typeof self&&self.navigator&&self.navigator.requestMediaKeySystemAccess?self.navigator.requestMediaKeySystemAccess.bind(self.navigator):null;function J(t,e,r){return Uint8Array.prototype.slice?t.slice(e,r):new Uint8Array(Array.prototype.slice.call(t,e,r))}var Z,tt=function(t,e){return e+10<=t.length&&73===t[e]&&68===t[e+1]&&51===t[e+2]&&t[e+3]<255&&t[e+4]<255&&t[e+6]<128&&t[e+7]<128&&t[e+8]<128&&t[e+9]<128},et=function(t,e){return e+10<=t.length&&51===t[e]&&68===t[e+1]&&73===t[e+2]&&t[e+3]<255&&t[e+4]<255&&t[e+6]<128&&t[e+7]<128&&t[e+8]<128&&t[e+9]<128},rt=function(t,e){for(var r=e,i=0;tt(t,e);)i+=10,i+=it(t,e+6),et(t,e+10)&&(i+=10),e+=i;if(i>0)return t.subarray(r,r+i)},it=function(t,e){var r=0;return r=(127&t[e])<<21,r|=(127&t[e+1])<<14,(r|=(127&t[e+2])<<7)|127&t[e+3]},nt=function(t,e){return tt(t,e)&&it(t,e+6)+10<=t.length-e},at=function(t){return t&&"PRIV"===t.key&&"com.apple.streaming.transportStreamTimestamp"===t.info},st=function(t){var e=String.fromCharCode(t[0],t[1],t[2],t[3]),r=it(t,4);return{type:e,size:r,data:t.subarray(10,10+r)}},ot=function(t){for(var e=0,r=[];tt(t,e);){for(var i=it(t,e+6),n=(e+=10)+i;e+8<n;){var a=st(t.subarray(e)),s=lt(a);s&&r.push(s),e+=a.size+10}et(t,e)&&(e+=10)}return r},lt=function(t){return"PRIV"===t.type?ut(t):"W"===t.type[0]?dt(t):ht(t)},ut=function(t){if(!(t.size<2)){var e=ft(t.data,!0),r=new Uint8Array(t.data.subarray(e.length+1));return{key:t.type,info:e,data:r.buffer}}},ht=function(t){if(!(t.size<2)){if("TXXX"===t.type){var e=1,r=ft(t.data.subarray(e),!0);e+=r.length+1;var i=ft(t.data.subarray(e));return{key:t.type,info:r,data:i}}var n=ft(t.data.subarray(1));return{key:t.type,data:n}}},dt=function(t){if("WXXX"===t.type){if(t.size<2)return;var e=1,r=ft(t.data.subarray(e),!0);e+=r.length+1;var i=ft(t.data.subarray(e));return{key:t.type,info:r,data:i}}var n=ft(t.data);return{key:t.type,data:n}},ct=function(t){if(8===t.data.byteLength){var e=new Uint8Array(t.data),r=1&e[3],i=(e[4]<<23)+(e[5]<<15)+(e[6]<<7)+e[7];return i/=45,r&&(i+=47721858.84),Math.round(i)}},ft=function(t,e){void 0===e&&(e=!1);var r=(Z||void 0===self.TextDecoder||(Z=new self.TextDecoder("utf-8")),Z);if(r){var i=r.decode(t);if(e){var n=i.indexOf("\0");return-1!==n?i.substring(0,n):i}return i.replace(/\0/g,"")}for(var a,s,o,l=t.length,u="",h=0;h<l;){if(0===(a=t[h++])&&e)return u;if(0!==a&&3!==a)switch(a>>4){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:u+=String.fromCharCode(a);break;case 12:case 13:s=t[h++],u+=String.fromCharCode((31&a)<<6|63&s);break;case 14:s=t[h++],o=t[h++],u+=String.fromCharCode((15&a)<<12|(63&s)<<6|63&o)}}return u},gt=function(t){for(var e="",r=0;r<t.length;r++){var i=t[r].toString(16);i.length<2&&(i="0"+i),e+=i}return e},vt=Math.pow(2,32)-1,mt=[].push,pt={video:1,audio:2,id3:3,text:4};function yt(t){return String.fromCharCode.apply(null,t)}function Tt(t,e){var r=t[e]<<8|t[e+1];return r<0?65536+r:r}function Et(t,e){var r=St(t,e);return r<0?4294967296+r:r}function St(t,e){return t[e]<<24|t[e+1]<<16|t[e+2]<<8|t[e+3]}function Lt(t,e,r){t[e]=r>>24,t[e+1]=r>>16&255,t[e+2]=r>>8&255,t[e+3]=255&r}function Rt(t,e){var r=[];if(!e.length)return r;for(var i=t.byteLength,n=0;n<i;){var a=Et(t,n),s=a>1?n+a:i;if(yt(t.subarray(n+4,n+8))===e[0])if(1===e.length)r.push(t.subarray(n+8,s));else{var o=Rt(t.subarray(n+8,s),e.slice(1));o.length&&mt.apply(r,o)}n=s}return r}function At(t){var e=[],r=t[0],i=8,n=Et(t,i);i+=4,i+=0===r?8:16,i+=2;var a=t.length+0,s=Tt(t,i);i+=2;for(var o=0;o<s;o++){var l=i,u=Et(t,l);l+=4;var h=2147483647&u;if(1==(2147483648&u)>>>31)return b.warn("SIDX has hierarchical references (not supported)"),null;var d=Et(t,l);l+=4,e.push({referenceSize:h,subsegmentDuration:d,info:{duration:d/n,start:a,end:a+h-1}}),a+=h,i=l+=4}return{earliestPresentationTime:0,timescale:n,version:r,referencesCount:s,references:e}}function kt(t){for(var e=[],r=Rt(t,["moov","trak"]),i=0;i<r.length;i++){var n=r[i],a=Rt(n,["tkhd"])[0];if(a){var s=a[0],o=0===s?12:20,l=Et(a,o),u=Rt(n,["mdia","mdhd"])[0];if(u){var h=Et(u,o=0===(s=u[0])?12:20),d=Rt(n,["mdia","hdlr"])[0];if(d){var c=yt(d.subarray(8,12)),f={soun:x,vide:F}[c];if(f){var g=Rt(n,["mdia","minf","stbl","stsd"])[0],v=void 0;g&&(v=yt(g.subarray(12,16))),e[l]={timescale:h,type:f},e[f]={timescale:h,id:l,codec:v}}}}}}return Rt(t,["moov","mvex","trex"]).forEach(function(t){var r=Et(t,4),i=e[r];i&&(i.default={duration:Et(t,12),flags:Et(t,20)})}),e}function bt(t){var e=Rt(t,["schm"])[0];if(e){var r=yt(e.subarray(4,8));if("cbcs"===r||"cenc"===r)return Rt(t,["schi","tenc"])[0]}return b.error("[eme] missing 'schm' box"),null}function Dt(t){var e=Et(t,0),r=8;1&e&&(r+=4),4&e&&(r+=4);for(var i=0,n=Et(t,4),a=0;a<n;a++)256&e&&(i+=Et(t,r),r+=4),512&e&&(r+=4),1024&e&&(r+=4),2048&e&&(r+=4);return i}function It(t,e){var r=new Uint8Array(t.length+e.length);return r.set(t),r.set(e,t.length),r}function wt(t,e){var r=[],i=e.samples,n=e.timescale,a=e.id,s=!1;return Rt(i,["moof"]).map(function(o){var l=o.byteOffset-8;Rt(o,["traf"]).map(function(o){var u=Rt(o,["tfdt"]).map(function(t){var e=t[0],r=Et(t,4);return 1===e&&(r*=Math.pow(2,32),r+=Et(t,8)),r/n})[0];return void 0!==u&&(t=u),Rt(o,["tfhd"]).map(function(u){var h=Et(u,4),d=16777215&Et(u,0),c=0,f=!!(16&d),g=0,v=!!(32&d),m=8;h===a&&(!!(1&d)&&(m+=8),!!(2&d)&&(m+=4),!!(8&d)&&(c=Et(u,m),m+=4),f&&(g=Et(u,m),m+=4),v&&(m+=4),"video"===e.type&&(s=function(t){if(!t)return!1;var e=t.indexOf("."),r=e<0?t:t.substring(0,e);return"hvc1"===r||"hev1"===r||"dvh1"===r||"dvhe"===r}(e.codec)),Rt(o,["trun"]).map(function(a){var o=a[0],u=16777215&Et(a,0),h=!!(1&u),d=0,f=!!(4&u),v=!!(256&u),m=0,p=!!(512&u),y=0,T=!!(1024&u),E=!!(2048&u),S=0,L=Et(a,4),R=8;h&&(d=Et(a,R),R+=4),f&&(R+=4);for(var A=d+l,k=0;k<L;k++){if(v?(m=Et(a,R),R+=4):m=c,p?(y=Et(a,R),R+=4):y=g,T&&(R+=4),E&&(S=0===o?Et(a,R):St(a,R),R+=4),e.type===F)for(var b=0;b<y;){var D=Et(i,A);Ct(s,i[A+=4])&&_t(i.subarray(A,A+D),s?2:1,t+S/n,r),A+=D,b+=D+4}t+=m/n}}))})})}),r}function Ct(t,e){if(t){var r=e>>1&63;return 39===r||40===r}return 6==(31&e)}function _t(t,e,r,i){var n=Pt(t),a=0;a+=e;for(var s=0,o=0,l=!1,u=0;a<n.length;){s=0;do{if(a>=n.length)break;s+=u=n[a++]}while(255===u);o=0;do{if(a>=n.length)break;o+=u=n[a++]}while(255===u);var h=n.length-a;if(!l&&4===s&&a<n.length){if(l=!0,181===n[a++]){var d=Tt(n,a);if(a+=2,49===d){var c=Et(n,a);if(a+=4,1195456820===c){var f=n[a++];if(3===f){var g=n[a++],v=64&g,m=v?2+3*(31&g):0,p=new Uint8Array(m);if(v){p[0]=g;for(var y=1;y<m;y++)p[y]=n[a++]}i.push({type:f,payloadType:s,pts:r,bytes:p})}}}}}else if(5===s&&o<h){if(l=!0,o>16){for(var T=[],E=0;E<16;E++){var S=n[a++].toString(16);T.push(1==S.length?"0"+S:S),3!==E&&5!==E&&7!==E&&9!==E||T.push("-")}for(var L=o-16,R=new Uint8Array(L),A=0;A<L;A++)R[A]=n[a++];i.push({payloadType:s,pts:r,uuid:T.join(""),userData:ft(R),userDataBytes:R})}}else if(o<h)a+=o;else if(o>h)break}}function Pt(t){for(var e=t.byteLength,r=[],i=1;i<e-2;)0===t[i]&&0===t[i+1]&&3===t[i+2]?(r.push(i+2),i+=2):i++;if(0===r.length)return t;var n=e-r.length,a=new Uint8Array(n),s=0;for(i=0;i<n;s++,i++)s===r[0]&&(s++,r.shift()),a[i]=t[s];return a}var xt={},Ft=function(){function t(t,e,r,i,n){void 0===i&&(i=[1]),void 0===n&&(n=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.pssh=null,this.method=t,this.uri=e,this.keyFormat=r,this.keyFormatVersions=i,this.iv=n,this.encrypted=!!t&&"NONE"!==t,this.isCommonEncryption=this.encrypted&&"AES-128"!==t}t.clearKeyUriToKeyIdMap=function(){xt={}};var e=t.prototype;return e.isSupported=function(){if(this.method){if("AES-128"===this.method||"NONE"===this.method)return!0;if("identity"===this.keyFormat)return"SAMPLE-AES"===this.method;switch(this.keyFormat){case Y:case j:case W:case V:return-1!==["ISO-23001-7","SAMPLE-AES","SAMPLE-AES-CENC","SAMPLE-AES-CTR"].indexOf(this.method)}}return!1},e.getDecryptData=function(e){if(!this.encrypted||!this.uri)return null;if("AES-128"===this.method&&this.uri&&!this.iv){"number"!=typeof e&&("AES-128"!==this.method||this.iv||b.warn('missing IV for initialization segment with method="'+this.method+'" - compliance issue'),e=0);var r=function(t){for(var e=new Uint8Array(16),r=12;r<16;r++)e[r]=t>>8*(15-r)&255;return e}(e);return new t(this.method,this.uri,"identity",this.keyFormatVersions,r)}var i=function(t){var e,r,i=t.split(":"),n=null;if("data"===i[0]&&2===i.length){var a=i[1].split(";"),s=a[a.length-1].split(",");if(2===s.length){var o="base64"===s[0],l=s[1];o?(a.splice(-1,1),n=G(l)):(e=K(l).subarray(0,16),(r=new Uint8Array(16)).set(e,16-e.length),n=r)}}return n}(this.uri);if(i)switch(this.keyFormat){case j:this.pssh=i,i.length>=22&&(this.keyId=i.subarray(i.length-22,i.length-6));break;case W:var n=new Uint8Array([154,4,240,121,152,64,66,134,171,146,230,91,224,136,95,149]);this.pssh=function(t,e,r){if(16!==t.byteLength)throw new RangeError("Invalid system id");var i,n,a;i=0,n=new Uint8Array,i>0?(a=new Uint8Array(4),e.length>0&&new DataView(a.buffer).setUint32(0,e.length,!1)):a=new Uint8Array;var s=new Uint8Array(4);return r&&r.byteLength>0&&new DataView(s.buffer).setUint32(0,r.byteLength,!1),function(t){for(var e=arguments.length,r=new Array(e>1?e-1:0),i=1;i<e;i++)r[i-1]=arguments[i];for(var n=r.length,a=8,s=n;s--;)a+=r[s].byteLength;var o=new Uint8Array(a);for(o[0]=a>>24&255,o[1]=a>>16&255,o[2]=a>>8&255,o[3]=255&a,o.set(t,4),s=0,a=8;s<n;s++)o.set(r[s],a),a+=r[s].byteLength;return o}([112,115,115,104],new Uint8Array([i,0,0,0]),t,a,n,s,r||new Uint8Array)}(n,null,i);var a=new Uint16Array(i.buffer,i.byteOffset,i.byteLength/2),s=String.fromCharCode.apply(null,Array.from(a)),o=s.substring(s.indexOf("<"),s.length),l=(new DOMParser).parseFromString(o,"text/xml").getElementsByTagName("KID")[0];if(l){var u=l.childNodes[0]?l.childNodes[0].nodeValue:l.getAttribute("VALUE");if(u){var h=G(u).subarray(0,16);!function(t){var e=function(t,e,r){var i=t[e];t[e]=t[r],t[r]=i};e(t,0,3),e(t,1,2),e(t,4,5),e(t,6,7)}(h),this.keyId=h}}break;default:var d=i.subarray(0,16);if(16!==d.length){var c=new Uint8Array(16);c.set(d,16-d.length),d=c}this.keyId=d}if(!this.keyId||16!==this.keyId.byteLength){var f=xt[this.uri];if(!f){var g=Object.keys(xt).length%Number.MAX_SAFE_INTEGER;f=new Uint8Array(16),new DataView(f.buffer,12,4).setUint32(0,g),xt[this.uri]=f}this.keyId=f}return this},t}(),Mt=/\{\$([a-zA-Z0-9-_]+)\}/g;function Ot(t){return Mt.test(t)}function Nt(t,e,r){if(null!==t.variableList||t.hasVariableRefs)for(var i=r.length;i--;){var n=r[i],a=e[n];a&&(e[n]=Ut(t,a))}}function Ut(t,e){if(null!==t.variableList||t.hasVariableRefs){var r=t.variableList;return e.replace(Mt,function(e){var i=e.substring(2,e.length-1),n=null==r?void 0:r[i];return void 0===n?(t.playlistParsingError||(t.playlistParsingError=new Error('Missing preceding EXT-X-DEFINE tag for Variable Reference: "'+i+'"')),e):n})}return e}function Bt(t,e,r){var i,n,a=t.variableList;if(a||(t.variableList=a={}),"QUERYPARAM"in e){i=e.QUERYPARAM;try{var s=new self.URL(r).searchParams;if(!s.has(i))throw new Error('"'+i+'" does not match any query parameter in URI: "'+r+'"');n=s.get(i)}catch(e){t.playlistParsingError||(t.playlistParsingError=new Error("EXT-X-DEFINE QUERYPARAM: "+e.message))}}else i=e.NAME,n=e.VALUE;i in a?t.playlistParsingError||(t.playlistParsingError=new Error('EXT-X-DEFINE duplicate Variable Name declarations: "'+i+'"')):a[i]=n||""}function Gt(t,e,r){var i=e.IMPORT;if(r&&i in r){var n=t.variableList;n||(t.variableList=n={}),n[i]=r[i]}else t.playlistParsingError||(t.playlistParsingError=new Error('EXT-X-DEFINE IMPORT attribute not found in Multivariant Playlist: "'+i+'"'))}function Kt(){if("undefined"!=typeof self)return self.MediaSource||self.WebKitMediaSource}var Ht={audio:{a3ds:!0,"ac-3":!0,"ac-4":!0,alac:!0,alaw:!0,dra1:!0,"dts+":!0,"dts-":!0,dtsc:!0,dtse:!0,dtsh:!0,"ec-3":!0,enca:!0,g719:!0,g726:!0,m4ae:!0,mha1:!0,mha2:!0,mhm1:!0,mhm2:!0,mlpa:!0,mp4a:!0,"raw ":!0,Opus:!0,opus:!0,samr:!0,sawb:!0,sawp:!0,sevc:!0,sqcp:!0,ssmv:!0,twos:!0,ulaw:!0},video:{avc1:!0,avc2:!0,avc3:!0,avc4:!0,avcp:!0,av01:!0,drac:!0,dva1:!0,dvav:!0,dvh1:!0,dvhe:!0,encv:!0,hev1:!0,hvc1:!0,mjp2:!0,mp4v:!0,mvc1:!0,mvc2:!0,mvc3:!0,mvc4:!0,resv:!0,rv60:!0,s263:!0,svc1:!0,svc2:!0,"vc-1":!0,vp08:!0,vp09:!0},text:{stpp:!0,wvtt:!0}},Vt=Kt();function Yt(t,e){var r;return null!=(r=null==Vt?void 0:Vt.isTypeSupported((e||"video")+'/mp4;codecs="'+t+'"'))&&r}var Wt=/#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,jt=/#EXT-X-MEDIA:(.*)/g,qt=/^#EXT(?:INF|-X-TARGETDURATION):/m,Xt=new RegExp([/#EXTINF:\s*(\d*(?:\.\d+)?)(?:,(.*)\s+)?/.source,/(?!#) *(\S[\S ]*)/.source,/#EXT-X-BYTERANGE:*(.+)/.source,/#EXT-X-PROGRAM-DATE-TIME:(.+)/.source,/#.*/.source].join("|"),"g"),zt=new RegExp([/#(EXTM3U)/.source,/#EXT-X-(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)/.source,/(#)([^:]*):(.*)/.source,/(#)(.*)(?:.*)\r?\n?/.source].join("|")),Qt=function(){function t(){}return t.findGroup=function(t,e){for(var r=0;r<t.length;r++){var i=t[r];if(i.id===e)return i}},t.convertAVC1ToAVCOTI=function(t){var e=t.split(".");if(e.length>2){var r=e.shift()+".";return(r+=parseInt(e.shift()).toString(16))+("000"+parseInt(e.shift()).toString(16)).slice(-4)}return t},t.resolve=function(t,e){return p.buildAbsoluteURL(e,t,{alwaysNormalize:!0})},t.isMediaPlaylist=function(t){return qt.test(t)},t.parseMasterPlaylist=function(e,r){var i,n={contentSteering:null,levels:[],playlistParsingError:null,sessionData:null,sessionKeys:null,startTimeOffset:null,variableList:null,hasVariableRefs:Ot(e)},a=[];for(Wt.lastIndex=0;null!=(i=Wt.exec(e));)if(i[1]){var s,o=new w(i[1]);Nt(n,o,["CODECS","SUPPLEMENTAL-CODECS","ALLOWED-CPC","PATHWAY-ID","STABLE-VARIANT-ID","AUDIO","VIDEO","SUBTITLES","CLOSED-CAPTIONS","NAME"]);var l=Ut(n,i[2]),u={attrs:o,bitrate:o.decimalInteger("AVERAGE-BANDWIDTH")||o.decimalInteger("BANDWIDTH"),name:o.NAME,url:t.resolve(l,r)},h=o.decimalResolution("RESOLUTION");h&&(u.width=h.width,u.height=h.height),Zt((o.CODECS||"").split(/[ ,]+/).filter(function(t){return t}),u),u.videoCodec&&-1!==u.videoCodec.indexOf("avc1")&&(u.videoCodec=t.convertAVC1ToAVCOTI(u.videoCodec)),null!=(s=u.unknownCodecs)&&s.length||a.push(u),n.levels.push(u)}else if(i[3]){var d=i[3],c=i[4];switch(d){case"SESSION-DATA":var f=new w(c);Nt(n,f,["DATA-ID","LANGUAGE","VALUE","URI"]);var g=f["DATA-ID"];g&&(null===n.sessionData&&(n.sessionData={}),n.sessionData[g]=f);break;case"SESSION-KEY":var v=$t(c,r,n);v.encrypted&&v.isSupported()?(null===n.sessionKeys&&(n.sessionKeys=[]),n.sessionKeys.push(v)):b.warn('[Keys] Ignoring invalid EXT-X-SESSION-KEY tag: "'+c+'"');break;case"DEFINE":var m=new w(c);Nt(n,m,["NAME","VALUE","QUERYPARAM"]),Bt(n,m,r);break;case"CONTENT-STEERING":var p=new w(c);Nt(n,p,["SERVER-URI","PATHWAY-ID"]),n.contentSteering={uri:t.resolve(p["SERVER-URI"],r),pathwayId:p["PATHWAY-ID"]||"."};break;case"START":n.startTimeOffset=Jt(c)}}var y=a.length>0&&a.length<n.levels.length;return n.levels=y?a:n.levels,0===n.levels.length&&(n.playlistParsingError=new Error("no levels found in manifest")),n},t.parseMasterPlaylistMedia=function(e,r,i){var n,a={},s=i.levels,o={AUDIO:s.map(function(t){return{id:t.attrs.AUDIO,audioCodec:t.audioCodec}}),SUBTITLES:s.map(function(t){return{id:t.attrs.SUBTITLES,textCodec:t.textCodec}}),"CLOSED-CAPTIONS":[]},l=0;for(jt.lastIndex=0;null!==(n=jt.exec(e));){var u=new w(n[1]),h=u.TYPE;if(h){var d=o[h],c=a[h]||[];a[h]=c,Nt(i,u,["URI","GROUP-ID","LANGUAGE","ASSOC-LANGUAGE","STABLE-RENDITION-ID","NAME","INSTREAM-ID","CHARACTERISTICS","CHANNELS"]);var f={attrs:u,bitrate:0,id:l++,groupId:u["GROUP-ID"]||"",instreamId:u["INSTREAM-ID"],name:u.NAME||u.LANGUAGE||"",type:h,default:u.bool("DEFAULT"),autoselect:u.bool("AUTOSELECT"),forced:u.bool("FORCED"),lang:u.LANGUAGE,url:u.URI?t.resolve(u.URI,r):""};if(null!=d&&d.length){var g=t.findGroup(d,f.groupId)||d[0];te(f,g,"audioCodec"),te(f,g,"textCodec")}c.push(f)}}return a},t.parseLevelPlaylist=function(t,e,r,i,n,a){var s,l,u,h=new B(e),d=h.fragments,c=null,f=0,g=0,v=0,m=0,p=null,T=new N(i,e),E=-1,S=!1;for(Xt.lastIndex=0,h.m3u8=t,h.hasVariableRefs=Ot(t);null!==(s=Xt.exec(t));){S&&(S=!1,(T=new N(i,e)).start=v,T.sn=f,T.cc=m,T.level=r,c&&(T.initSegment=c,T.rawProgramDateTime=c.rawProgramDateTime,c.rawProgramDateTime=null));var L=s[1];if(L){T.duration=parseFloat(L);var R=(" "+s[2]).slice(1);T.title=R||null,T.tagList.push(R?["INF",L,R]:["INF",L])}else if(s[3]){if(y(T.duration)){T.start=v,u&&ie(T,u,h),T.sn=f,T.level=r,T.cc=m,T.urlId=n,d.push(T);var A=(" "+s[3]).slice(1);T.relurl=Ut(h,A),ee(T,p),p=T,v+=T.duration,f++,g=0,S=!0}}else if(s[4]){var k=(" "+s[4]).slice(1);p?T.setByteRange(k,p):T.setByteRange(k)}else if(s[5])T.rawProgramDateTime=(" "+s[5]).slice(1),T.tagList.push(["PROGRAM-DATE-TIME",T.rawProgramDateTime]),-1===E&&(E=d.length);else{if(!(s=s[0].match(zt))){b.warn("No matches on slow regex match for level playlist!");continue}for(l=1;l<s.length&&void 0===s[l];l++);var D=(" "+s[l]).slice(1),I=(" "+s[l+1]).slice(1),C=s[l+2]?(" "+s[l+2]).slice(1):"";switch(D){case"PLAYLIST-TYPE":h.type=I.toUpperCase();break;case"MEDIA-SEQUENCE":f=h.startSN=parseInt(I);break;case"SKIP":var P=new w(I);Nt(h,P,["RECENTLY-REMOVED-DATERANGES"]);var x=P.decimalInteger("SKIPPED-SEGMENTS");if(y(x)){h.skippedSegments=x;for(var F=x;F--;)d.unshift(null);f+=x}var M=P.enumeratedString("RECENTLY-REMOVED-DATERANGES");M&&(h.recentlyRemovedDateranges=M.split("\t"));break;case"TARGETDURATION":h.targetduration=Math.max(parseInt(I),1);break;case"VERSION":h.version=parseInt(I);break;case"EXTM3U":break;case"ENDLIST":h.live=!1;break;case"#":(I||C)&&T.tagList.push(C?[I,C]:[I]);break;case"DISCONTINUITY":m++,T.tagList.push(["DIS"]);break;case"GAP":T.gap=!0,T.tagList.push([D]);break;case"BITRATE":T.tagList.push([D,I]);break;case"DATERANGE":var O=new w(I);Nt(h,O,["ID","CLASS","START-DATE","END-DATE","SCTE35-CMD","SCTE35-OUT","SCTE35-IN"]),Nt(h,O,O.clientAttrs);var G=new _(O,h.dateRanges[O.ID]);G.isValid||h.skippedSegments?h.dateRanges[G.id]=G:b.warn('Ignoring invalid DATERANGE tag: "'+I+'"'),T.tagList.push(["EXT-X-DATERANGE",I]);break;case"DEFINE":var K=new w(I);Nt(h,K,["NAME","VALUE","IMPORT","QUERYPARAM"]),"IMPORT"in K?Gt(h,K,a):Bt(h,K,e);break;case"DISCONTINUITY-SEQUENCE":m=parseInt(I);break;case"KEY":var H=$t(I,e,h);if(H.isSupported()){if("NONE"===H.method){u=void 0;break}u||(u={}),u[H.keyFormat]&&(u=o({},u)),u[H.keyFormat]=H}else b.warn('[Keys] Ignoring invalid EXT-X-KEY tag: "'+I+'"');break;case"START":h.startTimeOffset=Jt(I);break;case"MAP":var V=new w(I);if(Nt(h,V,["BYTERANGE","URI"]),T.duration){var Y=new N(i,e);re(Y,V,r,u),c=Y,T.initSegment=c,c.rawProgramDateTime&&!T.rawProgramDateTime&&(T.rawProgramDateTime=c.rawProgramDateTime)}else re(T,V,r,u),c=T,S=!0;break;case"SERVER-CONTROL":var W=new w(I);h.canBlockReload=W.bool("CAN-BLOCK-RELOAD"),h.canSkipUntil=W.optionalFloat("CAN-SKIP-UNTIL",0),h.canSkipDateRanges=h.canSkipUntil>0&&W.bool("CAN-SKIP-DATERANGES"),h.partHoldBack=W.optionalFloat("PART-HOLD-BACK",0),h.holdBack=W.optionalFloat("HOLD-BACK",0);break;case"PART-INF":var j=new w(I);h.partTarget=j.decimalFloatingPoint("PART-TARGET");break;case"PART":var q=h.partList;q||(q=h.partList=[]);var X=g>0?q[q.length-1]:void 0,z=g++,Q=new w(I);Nt(h,Q,["BYTERANGE","URI"]);var $=new U(Q,T,e,z,X);q.push($),T.duration+=$.duration;break;case"PRELOAD-HINT":var J=new w(I);Nt(h,J,["URI"]),h.preloadHint=J;break;case"RENDITION-REPORT":var Z=new w(I);Nt(h,Z,["URI"]),h.renditionReports=h.renditionReports||[],h.renditionReports.push(Z);break;default:b.warn("line parsed but not handled: "+s)}}}p&&!p.relurl?(d.pop(),v-=p.duration,h.partList&&(h.fragmentHint=p)):h.partList&&(ee(T,p),T.cc=m,h.fragmentHint=T,u&&ie(T,u,h));var tt=d.length,et=d[0],rt=d[tt-1];if((v+=h.skippedSegments*h.targetduration)>0&&tt&&rt){h.averagetargetduration=v/tt;var it=rt.sn;h.endSN="initSegment"!==it?it:0,h.live||(rt.endList=!0),et&&(h.startCC=et.cc)}else h.endSN=0,h.startCC=0;return h.fragmentHint&&(v+=h.fragmentHint.duration),h.totalduration=v,h.endCC=m,E>0&&function(t,e){for(var r=t[e],i=e;i--;){var n=t[i];if(!n)return;n.programDateTime=r.programDateTime-1e3*n.duration,r=n}}(d,E),h},t}();function $t(t,e,r){var i,n,a=new w(t);Nt(r,a,["KEYFORMAT","KEYFORMATVERSIONS","URI","IV","URI"]);var s=null!=(i=a.METHOD)?i:"",o=a.URI,l=a.hexadecimalInteger("IV"),u=a.KEYFORMATVERSIONS,h=null!=(n=a.KEYFORMAT)?n:"identity";o&&a.IV&&!l&&b.error("Invalid IV: "+a.IV);var d=o?Qt.resolve(o,e):"",c=(u||"1").split("/").map(Number).filter(Number.isFinite);return new Ft(s,d,h,c,l)}function Jt(t){var e=new w(t).decimalFloatingPoint("TIME-OFFSET");return y(e)?e:null}function Zt(t,e){["video","audio","text"].forEach(function(r){var i=t.filter(function(t){return function(t,e){var r=Ht[e];return!!r&&!0===r[t.slice(0,4)]}(t,r)});if(i.length){var n=i.filter(function(t){return 0===t.lastIndexOf("avc1",0)||0===t.lastIndexOf("mp4a",0)});e[r+"Codec"]=n.length>0?n[0]:i[0],t=t.filter(function(t){return-1===i.indexOf(t)})}}),e.unknownCodecs=t}function te(t,e,r){var i=e[r];i&&(t[r]=i)}function ee(t,e){t.rawProgramDateTime?t.programDateTime=Date.parse(t.rawProgramDateTime):null!=e&&e.programDateTime&&(t.programDateTime=e.endProgramDateTime),y(t.programDateTime)||(t.programDateTime=null,t.rawProgramDateTime=null)}function re(t,e,r,i){t.relurl=e.URI,e.BYTERANGE&&t.setByteRange(e.BYTERANGE),t.level=r,t.sn="initSegment",i&&(t.levelkeys=i),t.initSegment=null}function ie(t,e,r){t.levelkeys=e;var i=r.encryptedFragments;i.length&&i[i.length-1].levelkeys===e||!Object.keys(e).some(function(t){return e[t].isCommonEncryption})||i.push(t)}var ne="manifest",ae="level",se="audioTrack",oe="subtitleTrack",le="main",ue="audio",he="subtitle";function de(t){switch(t.type){case se:return ue;case oe:return he;default:return le}}function ce(t,e){var r=t.url;return void 0!==r&&0!==r.indexOf("data:")||(r=e.url),r}var fe=function(){function t(t){this.hls=void 0,this.loaders=Object.create(null),this.variableList=null,this.hls=t,this.registerListeners()}var e=t.prototype;return e.startLoad=function(t){},e.stopLoad=function(){this.destroyInternalLoaders()},e.registerListeners=function(){var t=this.hls;t.on(T.MANIFEST_LOADING,this.onManifestLoading,this),t.on(T.LEVEL_LOADING,this.onLevelLoading,this),t.on(T.AUDIO_TRACK_LOADING,this.onAudioTrackLoading,this),t.on(T.SUBTITLE_TRACK_LOADING,this.onSubtitleTrackLoading,this)},e.unregisterListeners=function(){var t=this.hls;t.off(T.MANIFEST_LOADING,this.onManifestLoading,this),t.off(T.LEVEL_LOADING,this.onLevelLoading,this),t.off(T.AUDIO_TRACK_LOADING,this.onAudioTrackLoading,this),t.off(T.SUBTITLE_TRACK_LOADING,this.onSubtitleTrackLoading,this)},e.createInternalLoader=function(t){var e=this.hls.config,r=e.pLoader,i=e.loader,n=new(r||i)(e);return this.loaders[t.type]=n,n},e.getInternalLoader=function(t){return this.loaders[t.type]},e.resetInternalLoader=function(t){this.loaders[t]&&delete this.loaders[t]},e.destroyInternalLoaders=function(){for(var t in this.loaders){var e=this.loaders[t];e&&e.destroy(),this.resetInternalLoader(t)}},e.destroy=function(){this.variableList=null,this.unregisterListeners(),this.destroyInternalLoaders()},e.onManifestLoading=function(t,e){var r=e.url;this.variableList=null,this.load({id:null,level:0,responseType:"text",type:ne,url:r,deliveryDirectives:null})},e.onLevelLoading=function(t,e){var r=e.id,i=e.level,n=e.url,a=e.deliveryDirectives;this.load({id:r,level:i,responseType:"text",type:ae,url:n,deliveryDirectives:a})},e.onAudioTrackLoading=function(t,e){var r=e.id,i=e.groupId,n=e.url,a=e.deliveryDirectives;this.load({id:r,groupId:i,level:null,responseType:"text",type:se,url:n,deliveryDirectives:a})},e.onSubtitleTrackLoading=function(t,e){var r=e.id,i=e.groupId,n=e.url,a=e.deliveryDirectives;this.load({id:r,groupId:i,level:null,responseType:"text",type:oe,url:n,deliveryDirectives:a})},e.load=function(t){var e,r,i,n=this,a=this.hls.config,s=this.getInternalLoader(t);if(s){var l=s.context;if(l&&l.url===t.url)return void b.trace("[playlist-loader]: playlist request ongoing");b.log("[playlist-loader]: aborting previous loader for type: "+t.type),s.abort()}if(r=t.type===ne?a.manifestLoadPolicy.default:o({},a.playlistLoadPolicy.default,{timeoutRetry:null,errorRetry:null}),s=this.createInternalLoader(t),null!=(e=t.deliveryDirectives)&&e.part&&(t.type===ae&&null!==t.level?i=this.hls.levels[t.level].details:t.type===se&&null!==t.id?i=this.hls.audioTracks[t.id].details:t.type===oe&&null!==t.id&&(i=this.hls.subtitleTracks[t.id].details),i)){var u=i.partTarget,h=i.targetduration;if(u&&h){var d=1e3*Math.max(3*u,.8*h);r=o({},r,{maxTimeToFirstByteMs:Math.min(d,r.maxTimeToFirstByteMs),maxLoadTimeMs:Math.min(d,r.maxTimeToFirstByteMs)})}}var c=r.errorRetry||r.timeoutRetry||{},f={loadPolicy:r,timeout:r.maxLoadTimeMs,maxRetry:c.maxNumRetry||0,retryDelay:c.retryDelayMs||0,maxRetryDelay:c.maxRetryDelayMs||0},g={onSuccess:function(t,e,r,i){var a=n.getInternalLoader(r);n.resetInternalLoader(r.type);var s=t.data;0===s.indexOf("#EXTM3U")?(e.parsing.start=performance.now(),Qt.isMediaPlaylist(s)?n.handleTrackOrLevelPlaylist(t,e,r,i||null,a):n.handleMasterPlaylist(t,e,r,i)):n.handleManifestParsingError(t,r,new Error("no EXTM3U delimiter"),i||null,e)},onError:function(t,e,r,i){n.handleNetworkError(e,r,!1,t,i)},onTimeout:function(t,e,r){n.handleNetworkError(e,r,!0,void 0,t)}};s.load(t,f,g)},e.handleMasterPlaylist=function(t,e,r,i){var n=this.hls,a=t.data,s=ce(t,r),o=Qt.parseMasterPlaylist(a,s);if(o.playlistParsingError)this.handleManifestParsingError(t,r,o.playlistParsingError,i,e);else{var l=o.contentSteering,u=o.levels,h=o.sessionData,d=o.sessionKeys,c=o.startTimeOffset,f=o.variableList;this.variableList=f;var g=Qt.parseMasterPlaylistMedia(a,s,o),v=g.AUDIO,m=void 0===v?[]:v,p=g.SUBTITLES,y=g["CLOSED-CAPTIONS"];m.length&&(m.some(function(t){return!t.url})||!u[0].audioCodec||u[0].attrs.AUDIO||(b.log("[playlist-loader]: audio codec signaled in quality level, but no embedded audio track signaled, create one"),m.unshift({type:"main",name:"main",groupId:"main",default:!1,autoselect:!1,forced:!1,id:-1,attrs:new w({}),bitrate:0,url:""}))),n.trigger(T.MANIFEST_LOADED,{levels:u,audioTracks:m,subtitles:p,captions:y,contentSteering:l,url:s,stats:e,networkDetails:i,sessionData:h,sessionKeys:d,startTimeOffset:c,variableList:f})}},e.handleTrackOrLevelPlaylist=function(t,e,r,i,n){var a=this.hls,s=r.id,o=r.level,l=r.type,u=ce(t,r),h=y(s)?s:0,d=y(o)?o:h,c=de(r),f=Qt.parseLevelPlaylist(t.data,u,d,c,h,this.variableList);if(l===ne){var g={attrs:new w({}),bitrate:0,details:f,name:"",url:u};a.trigger(T.MANIFEST_LOADED,{levels:[g],audioTracks:[],url:u,stats:e,networkDetails:i,sessionData:null,sessionKeys:null,contentSteering:null,startTimeOffset:null,variableList:null})}e.parsing.end=performance.now(),r.levelDetails=f,this.handlePlaylistLoaded(f,t,e,r,i,n)},e.handleManifestParsingError=function(t,e,r,i,n){this.hls.trigger(T.ERROR,{type:E.NETWORK_ERROR,details:S.MANIFEST_PARSING_ERROR,fatal:e.type===ne,url:t.url,err:r,error:r,reason:r.message,response:t,context:e,networkDetails:i,stats:n})},e.handleNetworkError=function(t,e,r,n,a){void 0===r&&(r=!1);var s="A network "+(r?"timeout":"error"+(n?" (status "+n.code+")":""))+" occurred while loading "+t.type;t.type===ae?s+=": "+t.level+" id: "+t.id:t.type!==se&&t.type!==oe||(s+=" id: "+t.id+' group-id: "'+t.groupId+'"');var o=new Error(s);b.warn("[playlist-loader]: "+s);var l=S.UNKNOWN,u=!1,h=this.getInternalLoader(t);switch(t.type){case ne:l=r?S.MANIFEST_LOAD_TIMEOUT:S.MANIFEST_LOAD_ERROR,u=!0;break;case ae:l=r?S.LEVEL_LOAD_TIMEOUT:S.LEVEL_LOAD_ERROR,u=!1;break;case se:l=r?S.AUDIO_TRACK_LOAD_TIMEOUT:S.AUDIO_TRACK_LOAD_ERROR,u=!1;break;case oe:l=r?S.SUBTITLE_TRACK_LOAD_TIMEOUT:S.SUBTITLE_LOAD_ERROR,u=!1}h&&this.resetInternalLoader(t.type);var d={type:E.NETWORK_ERROR,details:l,fatal:u,url:t.url,loader:h,context:t,error:o,networkDetails:e,stats:a};if(n){var c=(null==e?void 0:e.url)||t.url;d.response=i({url:c,data:void 0},n)}this.hls.trigger(T.ERROR,d)},e.handlePlaylistLoaded=function(t,e,r,i,n,a){var s=this.hls,o=i.type,l=i.level,u=i.id,h=i.groupId,d=i.deliveryDirectives,c=ce(e,i),f=de(i),g="number"==typeof i.level&&f===le?l:void 0;if(t.fragments.length){t.targetduration||(t.playlistParsingError=new Error("Missing Target Duration"));var v=t.playlistParsingError;if(v)s.trigger(T.ERROR,{type:E.NETWORK_ERROR,details:S.LEVEL_PARSING_ERROR,fatal:!1,url:c,error:v,reason:v.message,response:e,context:i,level:g,parent:f,networkDetails:n,stats:r});else switch(t.live&&a&&(a.getCacheAge&&(t.ageHeader=a.getCacheAge()||0),a.getCacheAge&&!isNaN(t.ageHeader)||(t.ageHeader=0)),o){case ne:case ae:s.trigger(T.LEVEL_LOADED,{details:t,level:g||0,id:u||0,stats:r,networkDetails:n,deliveryDirectives:d});break;case se:s.trigger(T.AUDIO_TRACK_LOADED,{details:t,id:u||0,groupId:h||"",stats:r,networkDetails:n,deliveryDirectives:d});break;case oe:s.trigger(T.SUBTITLE_TRACK_LOADED,{details:t,id:u||0,groupId:h||"",stats:r,networkDetails:n,deliveryDirectives:d})}}else{var m=new Error("No Segments found in Playlist");s.trigger(T.ERROR,{type:E.NETWORK_ERROR,details:S.LEVEL_EMPTY_ERROR,fatal:!1,url:c,error:m,reason:m.message,response:e,context:i,level:g,parent:f,networkDetails:n,stats:r})}},t}();function ge(t,e){var r;try{r=new Event("addtrack")}catch(t){(r=document.createEvent("Event")).initEvent("addtrack",!1,!1)}r.track=t,e.dispatchEvent(r)}function ve(t,e){var r=t.mode;if("disabled"===r&&(t.mode="hidden"),t.cues&&!t.cues.getCueById(e.id))try{if(t.addCue(e),!t.cues.getCueById(e.id))throw new Error("addCue is failed for: "+e)}catch(r){b.debug("[texttrack-utils]: "+r);try{var i=new self.TextTrackCue(e.startTime,e.endTime,e.text);i.id=e.id,t.addCue(i)}catch(t){b.debug("[texttrack-utils]: Legacy TextTrackCue fallback failed: "+t)}}"disabled"===r&&(t.mode=r)}function me(t){var e=t.mode;if("disabled"===e&&(t.mode="hidden"),t.cues)for(var r=t.cues.length;r--;)t.removeCue(t.cues[r]);"disabled"===e&&(t.mode=e)}function pe(t,e,r,i){var n=t.mode;if("disabled"===n&&(t.mode="hidden"),t.cues&&t.cues.length>0)for(var a=function(t,e,r){var i=[],n=function(t,e){if(e<t[0].startTime)return 0;var r=t.length-1;if(e>t[r].endTime)return-1;for(var i=0,n=r;i<=n;){var a=Math.floor((n+i)/2);if(e<t[a].startTime)n=a-1;else{if(!(e>t[a].startTime&&i<r))return a;i=a+1}}return t[i].startTime-e<e-t[n].startTime?i:n}(t,e);if(n>-1)for(var a=n,s=t.length;a<s;a++){var o=t[a];if(o.startTime>=e&&o.endTime<=r)i.push(o);else if(o.startTime>r)return i}return i}(t.cues,e,r),s=0;s<a.length;s++)i&&!i(a[s])||t.removeCue(a[s]);"disabled"===n&&(t.mode=n)}var ye="org.id3",Te="https://aomedia.org/emsg/ID3";function Ee(){if("undefined"!=typeof self)return self.WebKitDataCue||self.VTTCue||self.TextTrackCue}var Se=function(){var t=Ee();try{new t(0,Number.POSITIVE_INFINITY,"")}catch(t){return Number.MAX_VALUE}return Number.POSITIVE_INFINITY}();function Le(t,e){return t.getTime()/1e3-e}var Re=function(){function t(t){this.hls=void 0,this.id3Track=null,this.media=null,this.dateRangeCuesAppended={},this.hls=t,this._registerListeners()}var e=t.prototype;return e.destroy=function(){this._unregisterListeners(),this.id3Track=null,this.media=null,this.dateRangeCuesAppended={},this.hls=null},e._registerListeners=function(){var t=this.hls;t.on(T.MEDIA_ATTACHED,this.onMediaAttached,this),t.on(T.MEDIA_DETACHING,this.onMediaDetaching,this),t.on(T.MANIFEST_LOADING,this.onManifestLoading,this),t.on(T.FRAG_PARSING_METADATA,this.onFragParsingMetadata,this),t.on(T.BUFFER_FLUSHING,this.onBufferFlushing,this),t.on(T.LEVEL_UPDATED,this.onLevelUpdated,this)},e._unregisterListeners=function(){var t=this.hls;t.off(T.MEDIA_ATTACHED,this.onMediaAttached,this),t.off(T.MEDIA_DETACHING,this.onMediaDetaching,this),t.off(T.MANIFEST_LOADING,this.onManifestLoading,this),t.off(T.FRAG_PARSING_METADATA,this.onFragParsingMetadata,this),t.off(T.BUFFER_FLUSHING,this.onBufferFlushing,this),t.off(T.LEVEL_UPDATED,this.onLevelUpdated,this)},e.onMediaAttached=function(t,e){this.media=e.media},e.onMediaDetaching=function(){this.id3Track&&(me(this.id3Track),this.id3Track=null,this.media=null,this.dateRangeCuesAppended={})},e.onManifestLoading=function(){this.dateRangeCuesAppended={}},e.createTrack=function(t){var e=this.getID3Track(t.textTracks);return e.mode="hidden",e},e.getID3Track=function(t){if(this.media){for(var e=0;e<t.length;e++){var r=t[e];if("metadata"===r.kind&&"id3"===r.label)return ge(r,this.media),r}return this.media.addTextTrack("metadata","id3")}},e.onFragParsingMetadata=function(t,e){if(this.media){var r=this.hls.config,i=r.enableEmsgMetadataCues,n=r.enableID3MetadataCues;if(i||n){var a=e.samples;this.id3Track||(this.id3Track=this.createTrack(this.media));for(var s=Ee(),o=0;o<a.length;o++){var l=a[o].type;if((l!==Te||i)&&n){var u=ot(a[o].data);if(u){var h=a[o].pts,d=h+a[o].duration;d>Se&&(d=Se),d-h<=0&&(d=h+.25);for(var c=0;c<u.length;c++){var f=u[c];if(!at(f)){this.updateId3CueEnds(h,l);var g=new s(h,d,"");g.value=f,l&&(g.type=l),this.id3Track.addCue(g)}}}}}}}},e.updateId3CueEnds=function(t,e){var r,i=null==(r=this.id3Track)?void 0:r.cues;if(i)for(var n=i.length;n--;){var a=i[n];a.type===e&&a.startTime<t&&a.endTime===Se&&(a.endTime=t)}},e.onBufferFlushing=function(t,e){var r=e.startOffset,i=e.endOffset,n=e.type,a=this.id3Track,s=this.hls;if(s){var o=s.config,l=o.enableEmsgMetadataCues,u=o.enableID3MetadataCues;a&&(l||u)&&pe(a,r,i,"audio"===n?function(t){return t.type===ye&&u}:"video"===n?function(t){return t.type===Te&&l}:function(t){return t.type===ye&&u||t.type===Te&&l})}},e.onLevelUpdated=function(t,e){var r=this,i=e.details;if(this.media&&i.hasProgramDateTime&&this.hls.config.enableDateRangeMetadataCues){var n=this.dateRangeCuesAppended,a=this.id3Track,s=i.dateRanges,o=Object.keys(s);if(a)for(var l=Object.keys(n).filter(function(t){return!o.includes(t)}),u=function(){var t=l[h];Object.keys(n[t].cues).forEach(function(e){a.removeCue(n[t].cues[e])}),delete n[t]},h=l.length;h--;)u();var d=i.fragments[i.fragments.length-1];if(0!==o.length&&y(null==d?void 0:d.programDateTime)){this.id3Track||(this.id3Track=this.createTrack(this.media));for(var c=d.programDateTime/1e3-d.start,f=Ee(),g=function(){var t=o[v],e=s[t],i=n[t],a=(null==i?void 0:i.cues)||{},l=(null==i?void 0:i.durationKnown)||!1,u=Le(e.startDate,c),h=Se,d=e.endDate;if(d)h=Le(d,c),l=!0;else if(e.endOnNext&&!l){var g=o.reduce(function(t,r){var i=s[r];return i.class===e.class&&i.id!==r&&i.startDate>e.startDate&&t.push(i),t},[]).sort(function(t,e){return t.startDate.getTime()-e.startDate.getTime()})[0];g&&(h=Le(g.startDate,c),l=!0)}for(var m,p,y=Object.keys(e.attr),T=0;T<y.length;T++){var E=y[T];if("ID"!==(p=E)&&"CLASS"!==p&&"START-DATE"!==p&&"DURATION"!==p&&"END-DATE"!==p&&"END-ON-NEXT"!==p){var S=a[E];if(S)l&&!i.durationKnown&&(S.endTime=h);else{var L=e.attr[E];S=new f(u,h,""),C(E)&&(m=L,L=Uint8Array.from(m.replace(/^0x/,"").replace(/([\da-fA-F]{2}) ?/g,"0x$1 ").replace(/ +$/,"").split(" ")).buffer),S.value={key:E,data:L},S.type="com.apple.quicktime.HLS",S.id=t,r.id3Track.addCue(S),a[E]=S}}}n[t]={cues:a,dateRange:e,durationKnown:l}},v=0;v<o.length;v++)g()}}},t}(),Ae=function(){function t(t){var e=this;this.hls=void 0,this.config=void 0,this.media=null,this.levelDetails=null,this.currentTime=0,this.stallCount=0,this._latency=null,this.timeupdateHandler=function(){return e.timeupdate()},this.hls=t,this.config=t.config,this.registerListeners()}var e=t.prototype;return e.destroy=function(){this.unregisterListeners(),this.onMediaDetaching(),this.levelDetails=null,this.hls=this.timeupdateHandler=null},e.registerListeners=function(){this.hls.on(T.MEDIA_ATTACHED,this.onMediaAttached,this),this.hls.on(T.MEDIA_DETACHING,this.onMediaDetaching,this),this.hls.on(T.MANIFEST_LOADING,this.onManifestLoading,this),this.hls.on(T.LEVEL_UPDATED,this.onLevelUpdated,this),this.hls.on(T.ERROR,this.onError,this)},e.unregisterListeners=function(){this.hls.off(T.MEDIA_ATTACHED,this.onMediaAttached,this),this.hls.off(T.MEDIA_DETACHING,this.onMediaDetaching,this),this.hls.off(T.MANIFEST_LOADING,this.onManifestLoading,this),this.hls.off(T.LEVEL_UPDATED,this.onLevelUpdated,this),this.hls.off(T.ERROR,this.onError,this)},e.onMediaAttached=function(t,e){this.media=e.media,this.media.addEventListener("timeupdate",this.timeupdateHandler)},e.onMediaDetaching=function(){this.media&&(this.media.removeEventListener("timeupdate",this.timeupdateHandler),this.media=null)},e.onManifestLoading=function(){this.levelDetails=null,this._latency=null,this.stallCount=0},e.onLevelUpdated=function(t,e){var r=e.details;this.levelDetails=r,r.advanced&&this.timeupdate(),!r.live&&this.media&&this.media.removeEventListener("timeupdate",this.timeupdateHandler)},e.onError=function(t,e){var r;e.details===S.BUFFER_STALLED_ERROR&&(this.stallCount++,null!=(r=this.levelDetails)&&r.live&&b.warn("[playback-rate-controller]: Stall detected, adjusting target latency"))},e.timeupdate=function(){var t=this.media,e=this.levelDetails;if(t&&e){this.currentTime=t.currentTime;var r=this.computeLatency();if(null!==r){this._latency=r;var i=this.config,n=i.lowLatencyMode,a=i.maxLiveSyncPlaybackRate;if(n&&1!==a){var s=this.targetLatency;if(null!==s){var o=r-s,l=o<Math.min(this.maxLatency,s+e.targetduration);if(e.live&&l&&o>.05&&this.forwardBufferLength>1){var u=Math.min(2,Math.max(1,a)),h=Math.round(2/(1+Math.exp(-.75*o-this.edgeStalled))*20)/20;t.playbackRate=Math.min(u,Math.max(1,h))}else 1!==t.playbackRate&&0!==t.playbackRate&&(t.playbackRate=1)}}}}},e.estimateLiveEdge=function(){var t=this.levelDetails;return null===t?null:t.edge+t.age},e.computeLatency=function(){var t=this.estimateLiveEdge();return null===t?null:t-this.currentTime},a(t,[{key:"latency",get:function(){return this._latency||0}},{key:"maxLatency",get:function(){var t=this.config,e=this.levelDetails;return void 0!==t.liveMaxLatencyDuration?t.liveMaxLatencyDuration:e?t.liveMaxLatencyDurationCount*e.targetduration:0}},{key:"targetLatency",get:function(){var t=this.levelDetails;if(null===t)return null;var e=t.holdBack,r=t.partHoldBack,i=t.targetduration,n=this.config,a=n.liveSyncDuration,s=n.liveSyncDurationCount,o=n.lowLatencyMode,l=this.hls.userConfig,u=o&&r||e;(l.liveSyncDuration||l.liveSyncDurationCount||0===u)&&(u=void 0!==a?a:s*i);var h=i;return u+Math.min(1*this.stallCount,h)}},{key:"liveSyncPosition",get:function(){var t=this.estimateLiveEdge(),e=this.targetLatency,r=this.levelDetails;if(null===t||null===e||null===r)return null;var i=r.edge,n=t-e-this.edgeStalled,a=i-r.totalduration,s=i-(this.config.lowLatencyMode&&r.partTarget||r.targetduration);return Math.min(Math.max(a,n),s)}},{key:"drift",get:function(){var t=this.levelDetails;return null===t?1:t.drift}},{key:"edgeStalled",get:function(){var t=this.levelDetails;if(null===t)return 0;var e=3*(this.config.lowLatencyMode&&t.partTarget||t.targetduration);return Math.max(t.age-e,0)}},{key:"forwardBufferLength",get:function(){var t=this.media,e=this.levelDetails;if(!t||!e)return 0;var r=t.buffered.length;return(r?t.buffered.end(r-1):e.edge)-this.currentTime}}]),t}(),ke=["NONE","TYPE-0","TYPE-1",null],be=function(){function t(t,e,r){this.msn=void 0,this.part=void 0,this.skip=void 0,this.msn=t,this.part=e,this.skip=r}return t.prototype.addDirectives=function(t){var e=new self.URL(t);return void 0!==this.msn&&e.searchParams.set("_HLS_msn",this.msn.toString()),void 0!==this.part&&e.searchParams.set("_HLS_part",this.part.toString()),this.skip&&e.searchParams.set("_HLS_skip",this.skip),e.href},t}(),De=function(){function t(t){this._attrs=void 0,this.audioCodec=void 0,this.bitrate=void 0,this.codecSet=void 0,this.height=void 0,this.id=void 0,this.name=void 0,this.videoCodec=void 0,this.width=void 0,this.unknownCodecs=void 0,this.audioGroupIds=void 0,this.details=void 0,this.fragmentError=0,this.loadError=0,this.loaded=void 0,this.realBitrate=0,this.textGroupIds=void 0,this.url=void 0,this._urlId=0,this.url=[t.url],this._attrs=[t.attrs],this.bitrate=t.bitrate,t.details&&(this.details=t.details),this.id=t.id||0,this.name=t.name,this.width=t.width||0,this.height=t.height||0,this.audioCodec=t.audioCodec,this.videoCodec=t.videoCodec,this.unknownCodecs=t.unknownCodecs,this.codecSet=[t.videoCodec,t.audioCodec].filter(function(t){return t}).join(",").replace(/\.[^.,]+/g,"")}return t.prototype.addFallback=function(t){this.url.push(t.url),this._attrs.push(t.attrs)},a(t,[{key:"maxBitrate",get:function(){return Math.max(this.realBitrate,this.bitrate)}},{key:"attrs",get:function(){return this._attrs[this._urlId]}},{key:"pathwayId",get:function(){return this.attrs["PATHWAY-ID"]||"."}},{key:"uri",get:function(){return this.url[this._urlId]||""}},{key:"urlId",get:function(){return this._urlId},set:function(t){var e=t%this.url.length;this._urlId!==e&&(this.fragmentError=0,this.loadError=0,this.details=void 0,this._urlId=e)}},{key:"audioGroupId",get:function(){var t;return null==(t=this.audioGroupIds)?void 0:t[this.urlId]}},{key:"textGroupId",get:function(){var t;return null==(t=this.textGroupIds)?void 0:t[this.urlId]}}]),t}();function Ie(t,e){var r=e.startPTS;if(y(r)){var i,n=0;e.sn>t.sn?(n=r-t.start,i=t):(n=t.start-r,i=e),i.duration!==n&&(i.duration=n)}else e.sn>t.sn?t.cc===e.cc&&t.minEndPTS?e.start=t.start+(t.minEndPTS-t.start):e.start=t.start+t.duration:e.start=Math.max(t.start-e.duration,0)}function we(t,e,r,i,n,a){i-r<=0&&(b.warn("Fragment should have a positive duration",e),i=r+e.duration,a=n+e.duration);var s=r,o=i,l=e.startPTS,u=e.endPTS;if(y(l)){var h=Math.abs(l-r);y(e.deltaPTS)?e.deltaPTS=Math.max(h,e.deltaPTS):e.deltaPTS=h,s=Math.max(r,l),r=Math.min(r,l),n=Math.min(n,e.startDTS),o=Math.min(i,u),i=Math.max(i,u),a=Math.max(a,e.endDTS)}var d=r-e.start;0!==e.start&&(e.start=r),e.duration=i-e.start,e.startPTS=r,e.maxStartPTS=s,e.startDTS=n,e.endPTS=i,e.minEndPTS=o,e.endDTS=a;var c,f=e.sn;if(!t||f<t.startSN||f>t.endSN)return 0;var g=f-t.startSN,v=t.fragments;for(v[g]=e,c=g;c>0;c--)Ie(v[c],v[c-1]);for(c=g;c<v.length-1;c++)Ie(v[c],v[c+1]);return t.fragmentHint&&Ie(v[v.length-1],t.fragmentHint),t.PTSKnown=t.alignedSliding=!0,d}function Ce(t,e){for(var r=null,i=t.fragments,n=i.length-1;n>=0;n--){var a=i[n].initSegment;if(a){r=a;break}}t.fragmentHint&&delete t.fragmentHint.endPTS;var s,l,u,h,d,c=0;if(function(t,e,r){for(var i=e.skippedSegments,n=Math.max(t.startSN,e.startSN)-e.startSN,a=(t.fragmentHint?1:0)+(i?e.endSN:Math.min(t.endSN,e.endSN))-e.startSN,s=e.startSN-t.startSN,o=e.fragmentHint?e.fragments.concat(e.fragmentHint):e.fragments,l=t.fragmentHint?t.fragments.concat(t.fragmentHint):t.fragments,u=n;u<=a;u++){var h=l[s+u],d=o[u];i&&!d&&u<i&&(d=e.fragments[u]=h),h&&d&&r(h,d)}}(t,e,function(t,i){t.relurl&&(c=t.cc-i.cc),y(t.startPTS)&&y(t.endPTS)&&(i.start=i.startPTS=t.startPTS,i.startDTS=t.startDTS,i.maxStartPTS=t.maxStartPTS,i.endPTS=t.endPTS,i.endDTS=t.endDTS,i.minEndPTS=t.minEndPTS,i.duration=t.endPTS-t.startPTS,i.duration&&(s=i),e.PTSKnown=e.alignedSliding=!0),i.elementaryStreams=t.elementaryStreams,i.loader=t.loader,i.stats=t.stats,i.urlId=t.urlId,t.initSegment&&(i.initSegment=t.initSegment,r=t.initSegment)}),r&&(e.fragmentHint?e.fragments.concat(e.fragmentHint):e.fragments).forEach(function(t){var e;t.initSegment&&t.initSegment.relurl!==(null==(e=r)?void 0:e.relurl)||(t.initSegment=r)}),e.skippedSegments)if(e.deltaUpdateFailed=e.fragments.some(function(t){return!t}),e.deltaUpdateFailed){b.warn("[level-helper] Previous playlist missing segments skipped in delta playlist");for(var f=e.skippedSegments;f--;)e.fragments.shift();e.startSN=e.fragments[0].sn,e.startCC=e.fragments[0].cc}else e.canSkipDateRanges&&(e.dateRanges=(l=t.dateRanges,u=e.dateRanges,h=e.recentlyRemovedDateranges,d=o({},l),h&&h.forEach(function(t){delete d[t]}),Object.keys(u).forEach(function(t){var e=new _(u[t].attr,d[t]);e.isValid?d[t]=e:b.warn('Ignoring invalid Playlist Delta Update DATERANGE tag: "'+JSON.stringify(u[t].attr)+'"')}),d));var g=e.fragments;if(c){b.warn("discontinuity sliding from playlist, take drift into account");for(var v=0;v<g.length;v++)g[v].cc+=c}e.skippedSegments&&(e.startCC=e.fragments[0].cc),function(t,e,r){if(t&&e)for(var i=0,n=0,a=t.length;n<=a;n++){var s=t[n],o=e[n+i];s&&o&&s.index===o.index&&s.fragment.sn===o.fragment.sn?r(s,o):i--}}(t.partList,e.partList,function(t,e){e.elementaryStreams=t.elementaryStreams,e.stats=t.stats}),s?we(e,s,s.startPTS,s.endPTS,s.startDTS,s.endDTS):_e(t,e),g.length&&(e.totalduration=e.edge-g[0].start),e.driftStartTime=t.driftStartTime,e.driftStart=t.driftStart;var m=e.advancedDateTime;if(e.advanced&&m){var p=e.edge;e.driftStart||(e.driftStartTime=m,e.driftStart=p),e.driftEndTime=m,e.driftEnd=p}else e.driftEndTime=t.driftEndTime,e.driftEnd=t.driftEnd,e.advancedDateTime=t.advancedDateTime}function _e(t,e){var r=e.startSN+e.skippedSegments-t.startSN,i=t.fragments;r<0||r>=i.length||Pe(e,i[r].start)}function Pe(t,e){if(e){for(var r=t.fragments,i=t.skippedSegments;i<r.length;i++)r[i].start+=e;t.fragmentHint&&(t.fragmentHint.start+=e)}}function xe(t,e,r){var i;return null!=t&&t.details?Fe(null==(i=t.details)?void 0:i.partList,e,r):null}function Fe(t,e,r){if(t)for(var i=t.length;i--;){var n=t[i];if(n.index===r&&n.fragment.sn===e)return n}return null}function Me(t){switch(t.details){case S.FRAG_LOAD_TIMEOUT:case S.KEY_LOAD_TIMEOUT:case S.LEVEL_LOAD_TIMEOUT:case S.MANIFEST_LOAD_TIMEOUT:return!0}return!1}function Oe(t,e){var r=Me(e);return t.default[(r?"timeout":"error")+"Retry"]}function Ne(t,e){var r="linear"===t.backoff?1:Math.pow(2,e);return Math.min(r*t.retryDelayMs,t.maxRetryDelayMs)}function Ue(t){return i(i({},t),{errorRetry:null,timeoutRetry:null})}function Be(t,e,r,i){return!!t&&e<t.maxNumRetry&&(function(t){return 0===t&&!1===navigator.onLine||!!t&&(t<400||t>499)}(i)||!!r)}var Ge=function(t,e){for(var r=0,i=t.length-1,n=null,a=null;r<=i;){var s=e(a=t[n=(r+i)/2|0]);if(s>0)r=n+1;else{if(!(s<0))return a;i=n-1}}return null};function Ke(t,e,r,i){void 0===r&&(r=0),void 0===i&&(i=0);var n=null;if(t?n=e[t.sn-e[0].sn+1]||null:0===r&&0===e[0].start&&(n=e[0]),n&&0===He(r,i,n))return n;var a=Ge(e,He.bind(null,r,i));return!a||a===t&&n?n:a}function He(t,e,r){if(void 0===t&&(t=0),void 0===e&&(e=0),r.start<=t&&r.start+r.duration>t)return 0;var i=Math.min(e,r.duration+(r.deltaPTS?r.deltaPTS:0));return r.start+r.duration-i<=t?1:r.start-i>t&&r.start?-1:0}function Ve(t,e,r){var i=1e3*Math.min(e,r.duration+(r.deltaPTS?r.deltaPTS:0));return(r.endProgramDateTime||0)-i>t}var Ye,We=function(){function t(t){this.hls=void 0,this.playlistError=0,this.penalizedRenditions={},this.log=void 0,this.warn=void 0,this.error=void 0,this.hls=t,this.log=b.log.bind(b,"[info]:"),this.warn=b.warn.bind(b,"[warning]:"),this.error=b.error.bind(b,"[error]:"),this.registerListeners()}var e=t.prototype;return e.registerListeners=function(){var t=this.hls;t.on(T.ERROR,this.onError,this),t.on(T.MANIFEST_LOADING,this.onManifestLoading,this),t.on(T.LEVEL_UPDATED,this.onLevelUpdated,this)},e.unregisterListeners=function(){var t=this.hls;t&&(t.off(T.ERROR,this.onError,this),t.off(T.ERROR,this.onErrorOut,this),t.off(T.MANIFEST_LOADING,this.onManifestLoading,this),t.off(T.LEVEL_UPDATED,this.onLevelUpdated,this))},e.destroy=function(){this.unregisterListeners(),this.hls=null,this.penalizedRenditions={}},e.startLoad=function(t){this.playlistError=0},e.stopLoad=function(){},e.getVariantLevelIndex=function(t){return(null==t?void 0:t.type)===le?t.level:this.hls.loadLevel},e.onManifestLoading=function(){this.playlistError=0,this.penalizedRenditions={}},e.onLevelUpdated=function(){this.playlistError=0},e.onError=function(t,e){var r,i;if(!e.fatal){var n=this.hls,a=e.context;switch(e.details){case S.FRAG_LOAD_ERROR:case S.FRAG_LOAD_TIMEOUT:case S.KEY_LOAD_ERROR:case S.KEY_LOAD_TIMEOUT:return void(e.errorAction=this.getFragRetryOrSwitchAction(e));case S.FRAG_PARSING_ERROR:if(null!=(r=e.frag)&&r.gap)return void(e.errorAction={action:0,flags:0});case S.FRAG_GAP:case S.FRAG_DECRYPT_ERROR:return e.errorAction=this.getFragRetryOrSwitchAction(e),void(e.errorAction.action=2);case S.LEVEL_EMPTY_ERROR:case S.LEVEL_PARSING_ERROR:var s,o,l=e.parent===le?e.level:n.loadLevel;return void(e.details===S.LEVEL_EMPTY_ERROR&&null!=(s=e.context)&&null!=(o=s.levelDetails)&&o.live?e.errorAction=this.getPlaylistRetryOrSwitchAction(e,l):(e.levelRetry=!1,e.errorAction=this.getLevelSwitchAction(e,l)));case S.LEVEL_LOAD_ERROR:case S.LEVEL_LOAD_TIMEOUT:return void("number"==typeof(null==a?void 0:a.level)&&(e.errorAction=this.getPlaylistRetryOrSwitchAction(e,a.level)));case S.AUDIO_TRACK_LOAD_ERROR:case S.AUDIO_TRACK_LOAD_TIMEOUT:case S.SUBTITLE_LOAD_ERROR:case S.SUBTITLE_TRACK_LOAD_TIMEOUT:if(a){var u=n.levels[n.loadLevel];if(u&&(a.type===se&&a.groupId===u.audioGroupId||a.type===oe&&a.groupId===u.textGroupId))return e.errorAction=this.getPlaylistRetryOrSwitchAction(e,n.loadLevel),e.errorAction.action=2,void(e.errorAction.flags=1)}return;case S.KEY_SYSTEM_STATUS_OUTPUT_RESTRICTED:var h=n.levels[n.loadLevel],d=null==h?void 0:h.attrs["HDCP-LEVEL"];return void(d&&(e.errorAction={action:2,flags:2,hdcpLevel:d}));case S.BUFFER_ADD_CODEC_ERROR:case S.REMUX_ALLOC_ERROR:return void(e.errorAction=this.getLevelSwitchAction(e,null!=(i=e.level)?i:n.loadLevel));case S.INTERNAL_EXCEPTION:case S.BUFFER_APPENDING_ERROR:case S.BUFFER_APPEND_ERROR:case S.BUFFER_FULL_ERROR:case S.LEVEL_SWITCH_ERROR:case S.BUFFER_STALLED_ERROR:case S.BUFFER_SEEK_OVER_HOLE:case S.BUFFER_NUDGE_ON_STALL:return void(e.errorAction={action:0,flags:0})}if(e.type===E.KEY_SYSTEM_ERROR){var c=this.getVariantLevelIndex(e.frag);return e.levelRetry=!1,void(e.errorAction=this.getLevelSwitchAction(e,c))}}},e.getPlaylistRetryOrSwitchAction=function(t,e){var r,i=Oe(this.hls.config.playlistLoadPolicy,t),n=this.playlistError++,a=null==(r=t.response)?void 0:r.code;if(Be(i,n,Me(t),a))return{action:5,flags:0,retryConfig:i,retryCount:n};var s=this.getLevelSwitchAction(t,e);return i&&(s.retryConfig=i,s.retryCount=n),s},e.getFragRetryOrSwitchAction=function(t){var e=this.hls,r=this.getVariantLevelIndex(t.frag),i=e.levels[r],n=e.config,a=n.fragLoadPolicy,s=n.keyLoadPolicy,o=Oe(t.details.startsWith("key")?s:a,t),l=e.levels.reduce(function(t,e){return t+e.fragmentError},0);if(i){var u;t.details!==S.FRAG_GAP&&i.fragmentError++;var h=null==(u=t.response)?void 0:u.code;if(Be(o,l,Me(t),h))return{action:5,flags:0,retryConfig:o,retryCount:l}}var d=this.getLevelSwitchAction(t,r);return o&&(d.retryConfig=o,d.retryCount=l),d},e.getLevelSwitchAction=function(t,e){var r=this.hls;null==e&&(e=r.loadLevel);var i=this.hls.levels[e];if(i&&(i.loadError++,r.autoLevelEnabled)){for(var n,a,s=-1,o=r.levels,l=r.loadLevel,u=r.minAutoLevel,h=r.maxAutoLevel,d=null==(n=t.frag)?void 0:n.type,c=null!=(a=t.context)?a:{},f=c.type,g=c.groupId,v=o.length;v--;){var m=(v+l)%o.length;if(m!==l&&m>=u&&m<=h&&0===o[m].loadError){var p=o[m];if(t.details===S.FRAG_GAP&&t.frag){var y=o[m].details;if(y){var T=Ke(t.frag,y.fragments,t.frag.start);if(null!=T&&T.gap)continue}}else{if(f===se&&g===p.audioGroupId||f===oe&&g===p.textGroupId)continue;if(d===ue&&i.audioGroupId===p.audioGroupId||d===he&&i.textGroupId===p.textGroupId)continue}s=m;break}}if(s>-1&&r.loadLevel!==s)return t.levelRetry=!0,this.playlistError=0,{action:2,flags:0,nextAutoLevel:s}}return{action:2,flags:1}},e.onErrorOut=function(t,e){var r;switch(null==(r=e.errorAction)?void 0:r.action){case 0:break;case 2:this.sendAlternateToPenaltyBox(e),e.errorAction.resolved||e.details===S.FRAG_GAP||(e.fatal=!0)}e.fatal&&this.hls.stopLoad()},e.sendAlternateToPenaltyBox=function(t){var e=this.hls,r=t.errorAction;if(r){var i=r.flags,n=r.hdcpLevel,a=r.nextAutoLevel;switch(i){case 0:this.switchLevel(t,a);break;case 1:r.resolved||(r.resolved=this.redundantFailover(t));break;case 2:n&&(e.maxHdcpLevel=ke[ke.indexOf(n)-1],r.resolved=!0),this.warn('Restricting playback to HDCP-LEVEL of "'+e.maxHdcpLevel+'" or lower')}r.resolved||this.switchLevel(t,a)}},e.switchLevel=function(t,e){void 0!==e&&t.errorAction&&(this.warn("switching to level "+e+" after "+t.details),this.hls.nextAutoLevel=e,t.errorAction.resolved=!0,this.hls.nextLoadLevel=this.hls.nextAutoLevel)},e.redundantFailover=function(t){var e=this,r=this.hls,i=this.penalizedRenditions,n=t.parent===le?t.level:r.loadLevel,a=r.levels[n],s=a.url.length,o=t.frag?t.frag.urlId:a.urlId;a.urlId!==o||t.frag&&!a.details||this.penalizeRendition(a,t);for(var l=function(){var l=(o+u)%s,h=i[l];if(!h||function(t,e,r){if(performance.now()-t.lastErrorPerfMs>3e5)return!0;var i=t.details;if(e.details===S.FRAG_GAP&&i&&e.frag){var n=e.frag.start,a=Ke(null,i.fragments,n);if(a&&!a.gap)return!0}if(r&&t.errors.length<r.errors.length){var s=t.errors[t.errors.length-1];if(i&&s.frag&&e.frag&&Math.abs(s.frag.start-e.frag.start)>3*i.targetduration)return!0}return!1}(h,t,i[o]))return e.warn("Switching to Redundant Stream "+(l+1)+"/"+s+': "'+a.url[l]+'" after '+t.details),e.playlistError=0,r.levels.forEach(function(t){t.urlId=l}),r.nextLoadLevel=n,{v:!0}},u=1;u<s;u++){var h=l();if("object"==typeof h)return h.v}return!1},e.penalizeRendition=function(t,e){var r=this.penalizedRenditions,i=r[t.urlId]||{lastErrorPerfMs:0,errors:[],details:void 0};i.lastErrorPerfMs=performance.now(),i.errors.push(e),i.details=t.details,r[t.urlId]=i},t}(),je=function(){function t(t,e){this.hls=void 0,this.timer=-1,this.requestScheduled=-1,this.canLoad=!1,this.log=void 0,this.warn=void 0,this.log=b.log.bind(b,e+":"),this.warn=b.warn.bind(b,e+":"),this.hls=t}var e=t.prototype;return e.destroy=function(){this.clearTimer(),this.hls=this.log=this.warn=null},e.clearTimer=function(){clearTimeout(this.timer),this.timer=-1},e.startLoad=function(){this.canLoad=!0,this.requestScheduled=-1,this.loadPlaylist()},e.stopLoad=function(){this.canLoad=!1,this.clearTimer()},e.switchParams=function(t,e){var r=null==e?void 0:e.renditionReports;if(r){for(var i=-1,n=0;n<r.length;n++){var a=r[n],s=void 0;try{s=new self.URL(a.URI,e.url).href}catch(t){b.warn("Could not construct new URL for Rendition Report: "+t),s=a.URI||""}if(s===t){i=n;break}s===t.substring(0,s.length)&&(i=n)}if(-1!==i){var o=r[i],l=parseInt(o["LAST-MSN"])||(null==e?void 0:e.lastPartSn),u=parseInt(o["LAST-PART"])||(null==e?void 0:e.lastPartIndex);if(this.hls.config.lowLatencyMode){var h=Math.min(e.age-e.partTarget,e.targetduration);u>=0&&h>e.partTarget&&(u+=1)}return new be(l,u>=0?u:void 0,"")}}},e.loadPlaylist=function(t){-1===this.requestScheduled&&(this.requestScheduled=self.performance.now())},e.shouldLoadPlaylist=function(t){return this.canLoad&&!!t&&!!t.url&&(!t.details||t.details.live)},e.shouldReloadPlaylist=function(t){return-1===this.timer&&-1===this.requestScheduled&&this.shouldLoadPlaylist(t)},e.playlistLoaded=function(t,e,r){var i=this,n=e.details,a=e.stats,s=self.performance.now(),o=a.loading.first?Math.max(0,s-a.loading.first):0;if(n.advancedDateTime=Date.now()-o,n.live||null!=r&&r.live){if(n.reloaded(r),r&&this.log("live playlist "+t+" "+(n.advanced?"REFRESHED "+n.lastPartSn+"-"+n.lastPartIndex:n.updated?"UPDATED":"MISSED")),r&&n.fragments.length>0&&Ce(r,n),!this.canLoad||!n.live)return;var l,u=void 0,h=void 0;if(n.canBlockReload&&n.endSN&&n.advanced){var d=this.hls.config.lowLatencyMode,c=n.lastPartSn,f=n.endSN,g=n.lastPartIndex,v=c===f;-1!==g?(u=v?f+1:c,h=v?d?0:g:g+1):u=f+1;var m=n.age,p=m+n.ageHeader,y=Math.min(p-n.partTarget,1.5*n.targetduration);if(y>0){if(r&&y>r.tuneInGoal)this.warn("CDN Tune-in goal increased from: "+r.tuneInGoal+" to: "+y+" with playlist age: "+n.age),y=0;else{var T=Math.floor(y/n.targetduration);u+=T,void 0!==h&&(h+=Math.round(y%n.targetduration/n.partTarget)),this.log("CDN Tune-in age: "+n.ageHeader+"s last advanced "+m.toFixed(2)+"s goal: "+y+" skip sn "+T+" to part "+h)}n.tuneInGoal=y}if(l=this.getDeliveryDirectives(n,e.deliveryDirectives,u,h),d||!v)return void this.loadPlaylist(l)}else(n.canBlockReload||n.canSkipUntil)&&(l=this.getDeliveryDirectives(n,e.deliveryDirectives,u,h));var E=this.hls.mainForwardBufferInfo,S=E?E.end-E.len:0,L=function(t,e){void 0===e&&(e=1/0);var r=1e3*t.targetduration;if(t.updated){var i=t.fragments;if(i.length&&4*r>e){var n=1e3*i[i.length-1].duration;n<r&&(r=n)}}else r/=2;return Math.round(r)}(n,1e3*(n.edge-S));n.updated&&s>this.requestScheduled+L&&(this.requestScheduled=a.loading.start),void 0!==u&&n.canBlockReload?this.requestScheduled=a.loading.first+L-(1e3*n.partTarget||1e3):-1===this.requestScheduled||this.requestScheduled+L<s?this.requestScheduled=s:this.requestScheduled-s<=0&&(this.requestScheduled+=L);var R=this.requestScheduled-s;R=Math.max(0,R),this.log("reload live playlist "+t+" in "+Math.round(R)+" ms"),this.timer=self.setTimeout(function(){return i.loadPlaylist(l)},R)}else this.clearTimer()},e.getDeliveryDirectives=function(t,e,r,i){var n=function(t,e){var r=t.canSkipUntil,i=t.canSkipDateRanges,n=t.endSN;return r&&(void 0!==e?e-n:0)<r?i?"v2":"YES":""}(t,r);return null!=e&&e.skip&&t.deltaUpdateFailed&&(r=e.msn,i=e.part,n=""),new be(r,i,n)},e.checkRetry=function(t){var e=this,r=t.details,i=Me(t),n=t.errorAction,a=n||{},s=a.action,o=a.retryCount,l=void 0===o?0:o,u=a.retryConfig,h=!!n&&!!u&&(5===s||!n.resolved&&2===s);if(h){var d;if(this.requestScheduled=-1,l>=u.maxNumRetry)return!1;if(i&&null!=(d=t.context)&&d.deliveryDirectives)this.warn("Retrying playlist loading "+(l+1)+"/"+u.maxNumRetry+' after "'+r+'" without delivery-directives'),this.loadPlaylist();else{var c=Ne(u,l);this.timer=self.setTimeout(function(){return e.loadPlaylist()},c),this.warn("Retrying playlist loading "+(l+1)+"/"+u.maxNumRetry+' after "'+r+'" in '+c+"ms")}t.levelRetry=!0,n.resolved=!0}return h},t}(),qe=function(t){function e(e,r){var i;return(i=t.call(this,e,"[level-controller]")||this)._levels=[],i._firstLevel=-1,i._startLevel=void 0,i.currentLevel=null,i.currentLevelIndex=-1,i.manualLevelIndex=-1,i.steering=void 0,i.onParsedComplete=void 0,i.steering=r,i._registerListeners(),i}l(e,t);var r=e.prototype;return r._registerListeners=function(){var t=this.hls;t.on(T.MANIFEST_LOADING,this.onManifestLoading,this),t.on(T.MANIFEST_LOADED,this.onManifestLoaded,this),t.on(T.LEVEL_LOADED,this.onLevelLoaded,this),t.on(T.LEVELS_UPDATED,this.onLevelsUpdated,this),t.on(T.AUDIO_TRACK_SWITCHED,this.onAudioTrackSwitched,this),t.on(T.FRAG_LOADED,this.onFragLoaded,this),t.on(T.ERROR,this.onError,this)},r._unregisterListeners=function(){var t=this.hls;t.off(T.MANIFEST_LOADING,this.onManifestLoading,this),t.off(T.MANIFEST_LOADED,this.onManifestLoaded,this),t.off(T.LEVEL_LOADED,this.onLevelLoaded,this),t.off(T.LEVELS_UPDATED,this.onLevelsUpdated,this),t.off(T.AUDIO_TRACK_SWITCHED,this.onAudioTrackSwitched,this),t.off(T.FRAG_LOADED,this.onFragLoaded,this),t.off(T.ERROR,this.onError,this)},r.destroy=function(){this._unregisterListeners(),this.steering=null,this.resetLevels(),t.prototype.destroy.call(this)},r.startLoad=function(){this._levels.forEach(function(t){t.loadError=0,t.fragmentError=0}),t.prototype.startLoad.call(this)},r.resetLevels=function(){this._startLevel=void 0,this.manualLevelIndex=-1,this.currentLevelIndex=-1,this.currentLevel=null,this._levels=[]},r.onManifestLoading=function(t,e){this.resetLevels()},r.onManifestLoaded=function(t,e){var r,i=[],n={};e.levels.forEach(function(t){var e,a=t.attrs;-1!==(null==(e=t.audioCodec)?void 0:e.indexOf("mp4a.40.34"))&&(Ye||(Ye=/chrome|firefox/i.test(navigator.userAgent)),Ye&&(t.audioCodec=void 0));var s=a.AUDIO,o=a.CODECS,l=a["FRAME-RATE"],u=a["PATHWAY-ID"],h=a.RESOLUTION,d=a.SUBTITLES,c=(u||".")+"-"+t.bitrate+"-"+h+"-"+l+"-"+o;(r=n[c])?r.addFallback(t):(r=new De(t),n[c]=r,i.push(r)),Xe(r,"audio",s),Xe(r,"text",d)}),this.filterAndSortMediaOptions(i,e)},r.filterAndSortMediaOptions=function(t,e){var r=this,i=[],n=[],a=!1,s=!1,o=!1,l=t.filter(function(t){var e=t.audioCodec,r=t.videoCodec,i=t.width,n=t.height,l=t.unknownCodecs;return a||(a=!(!i||!n)),s||(s=!!r),o||(o=!!e),!(null!=l&&l.length)&&(!e||Yt(e,"audio"))&&(!r||Yt(r,"video"))});if((a||s)&&o&&(l=l.filter(function(t){var e=t.videoCodec,r=t.width,i=t.height;return!!e||!(!r||!i)})),0!==l.length){e.audioTracks&&ze(i=e.audioTracks.filter(function(t){return!t.audioCodec||Yt(t.audioCodec,"audio")})),e.subtitles&&ze(n=e.subtitles);var u=l.slice(0);l.sort(function(t,e){return t.attrs["HDCP-LEVEL"]!==e.attrs["HDCP-LEVEL"]?(t.attrs["HDCP-LEVEL"]||"")>(e.attrs["HDCP-LEVEL"]||"")?1:-1:t.bitrate!==e.bitrate?t.bitrate-e.bitrate:t.attrs["FRAME-RATE"]!==e.attrs["FRAME-RATE"]?t.attrs.decimalFloatingPoint("FRAME-RATE")-e.attrs.decimalFloatingPoint("FRAME-RATE"):t.attrs.SCORE!==e.attrs.SCORE?t.attrs.decimalFloatingPoint("SCORE")-e.attrs.decimalFloatingPoint("SCORE"):a&&t.height!==e.height?t.height-e.height:0});var h=u[0];if(this.steering&&(l=this.steering.filterParsedLevels(l)).length!==u.length)for(var d=0;d<u.length;d++)if(u[d].pathwayId===l[0].pathwayId){h=u[d];break}this._levels=l;for(var c=0;c<l.length;c++)if(l[c]===h){this._firstLevel=c,this.log("manifest loaded, "+l.length+" level(s) found, first bitrate: "+h.bitrate);break}var f=o&&!s,g={levels:l,audioTracks:i,subtitleTracks:n,sessionData:e.sessionData,sessionKeys:e.sessionKeys,firstLevel:this._firstLevel,stats:e.stats,audio:o,video:s,altAudio:!f&&i.some(function(t){return!!t.url})};this.hls.trigger(T.MANIFEST_PARSED,g),(this.hls.config.autoStartLoad||this.hls.forceStartLoad)&&this.hls.startLoad(this.hls.config.startPosition)}else Promise.resolve().then(function(){if(r.hls){var t=new Error("no level with compatible codecs found in manifest");r.hls.trigger(T.ERROR,{type:E.MEDIA_ERROR,details:S.MANIFEST_INCOMPATIBLE_CODECS_ERROR,fatal:!0,url:e.url,error:t,reason:t.message})}})},r.onError=function(t,e){!e.fatal&&e.context&&e.context.type===ae&&e.context.level===this.level&&this.checkRetry(e)},r.onFragLoaded=function(t,e){var r=e.frag;if(void 0!==r&&r.type===le){var i=this._levels[r.level];void 0!==i&&(i.loadError=0)}},r.onLevelLoaded=function(t,e){var r,i,n=e.level,a=e.details,s=this._levels[n];if(!s)return this.warn("Invalid level index "+n),void(null!=(i=e.deliveryDirectives)&&i.skip&&(a.deltaUpdateFailed=!0));n===this.currentLevelIndex?(0===s.fragmentError&&(s.loadError=0),this.playlistLoaded(n,e,s.details)):null!=(r=e.deliveryDirectives)&&r.skip&&(a.deltaUpdateFailed=!0)},r.onAudioTrackSwitched=function(t,e){var r=this.currentLevel;if(r){var i=this.hls.audioTracks[e.id].groupId;if(r.audioGroupIds&&r.audioGroupId!==i){for(var n=-1,a=0;a<r.audioGroupIds.length;a++)if(r.audioGroupIds[a]===i){n=a;break}-1!==n&&n!==r.urlId&&(r.urlId=n,this.canLoad&&this.startLoad())}}},r.loadPlaylist=function(e){t.prototype.loadPlaylist.call(this);var r=this.currentLevelIndex,i=this.currentLevel;if(i&&this.shouldLoadPlaylist(i)){var n=i.urlId,a=i.uri;if(e)try{a=e.addDirectives(a)}catch(t){this.warn("Could not construct new URL with HLS Delivery Directives: "+t)}var s=i.attrs["PATHWAY-ID"];this.log("Loading level index "+r+(void 0!==(null==e?void 0:e.msn)?" at sn "+e.msn+" part "+e.part:"")+" with"+(s?" Pathway "+s:"")+" URI "+(n+1)+"/"+i.url.length+" "+a),this.clearTimer(),this.hls.trigger(T.LEVEL_LOADING,{url:a,level:r,id:n,deliveryDirectives:e||null})}},r.removeLevel=function(t,e){var r=this,i=function(t,r){return r!==e},n=this._levels.filter(function(n,a){return a!==t||(n.url.length>1&&void 0!==e?(n.url=n.url.filter(i),n.audioGroupIds&&(n.audioGroupIds=n.audioGroupIds.filter(i)),n.textGroupIds&&(n.textGroupIds=n.textGroupIds.filter(i)),n.urlId=0,!0):(r.steering&&r.steering.removeLevel(n),!1))});this.hls.trigger(T.LEVELS_UPDATED,{levels:n})},r.onLevelsUpdated=function(t,e){var r=e.levels;r.forEach(function(t,e){var r=t.details;null!=r&&r.fragments&&r.fragments.forEach(function(t){t.level=e})}),this._levels=r},a(e,[{key:"levels",get:function(){return 0===this._levels.length?null:this._levels}},{key:"level",get:function(){return this.currentLevelIndex},set:function(t){var e=this._levels;if(0!==e.length){if(t<0||t>=e.length){var r=new Error("invalid level idx"),i=t<0;if(this.hls.trigger(T.ERROR,{type:E.OTHER_ERROR,details:S.LEVEL_SWITCH_ERROR,level:t,fatal:i,error:r,reason:r.message}),i)return;t=Math.min(t,e.length-1)}var n=this.currentLevelIndex,a=this.currentLevel,s=a?a.attrs["PATHWAY-ID"]:void 0,l=e[t],u=l.attrs["PATHWAY-ID"];if(this.currentLevelIndex=t,this.currentLevel=l,n!==t||!l.details||!a||s!==u){this.log("Switching to level "+t+(u?" with Pathway "+u:"")+" from level "+n+(s?" with Pathway "+s:""));var h=o({},l,{level:t,maxBitrate:l.maxBitrate,attrs:l.attrs,uri:l.uri,urlId:l.urlId});delete h._attrs,delete h._urlId,this.hls.trigger(T.LEVEL_SWITCHING,h);var d=l.details;if(!d||d.live){var c=this.switchParams(l.uri,null==a?void 0:a.details);this.loadPlaylist(c)}}}}},{key:"manualLevel",get:function(){return this.manualLevelIndex},set:function(t){this.manualLevelIndex=t,void 0===this._startLevel&&(this._startLevel=t),-1!==t&&(this.level=t)}},{key:"firstLevel",get:function(){return this._firstLevel},set:function(t){this._firstLevel=t}},{key:"startLevel",get:function(){if(void 0===this._startLevel){var t=this.hls.config.startLevel;return void 0!==t?t:this._firstLevel}return this._startLevel},set:function(t){this._startLevel=t}},{key:"nextLoadLevel",get:function(){return-1!==this.manualLevelIndex?this.manualLevelIndex:this.hls.nextAutoLevel},set:function(t){this.level=t,-1===this.manualLevelIndex&&(this.hls.nextAutoLevel=t)}}]),e}(je);function Xe(t,e,r){r&&("audio"===e?(t.audioGroupIds||(t.audioGroupIds=[]),t.audioGroupIds[t.url.length-1]=r):"text"===e&&(t.textGroupIds||(t.textGroupIds=[]),t.textGroupIds[t.url.length-1]=r))}function ze(t){var e={};t.forEach(function(t){var r=t.groupId||"";t.id=e[r]=e[r]||0,e[r]++})}var Qe="NOT_LOADED",$e="APPENDING",Je="PARTIAL",Ze="OK",tr=function(){function t(t){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=t,this._registerListeners()}var e=t.prototype;return e._registerListeners=function(){var t=this.hls;t.on(T.BUFFER_APPENDED,this.onBufferAppended,this),t.on(T.FRAG_BUFFERED,this.onFragBuffered,this),t.on(T.FRAG_LOADED,this.onFragLoaded,this)},e._unregisterListeners=function(){var t=this.hls;t.off(T.BUFFER_APPENDED,this.onBufferAppended,this),t.off(T.FRAG_BUFFERED,this.onFragBuffered,this),t.off(T.FRAG_LOADED,this.onFragLoaded,this)},e.destroy=function(){this._unregisterListeners(),this.fragments=this.activePartLists=this.endListFragments=this.timeRanges=null},e.getAppendedFrag=function(t,e){var r=this.activePartLists[e];if(r)for(var i=r.length;i--;){var n=r[i];if(!n)break;var a=n.end;if(n.start<=t&&null!==a&&t<=a)return n}return this.getBufferedFrag(t,e)},e.getBufferedFrag=function(t,e){for(var r=this.fragments,i=Object.keys(r),n=i.length;n--;){var a=r[i[n]];if((null==a?void 0:a.body.type)===e&&a.buffered){var s=a.body;if(s.start<=t&&t<=s.end)return s}}return null},e.detectEvictedFragments=function(t,e,r,i){var n=this;this.timeRanges&&(this.timeRanges[t]=e);var a=(null==i?void 0:i.fragment.sn)||-1;Object.keys(this.fragments).forEach(function(i){var s=n.fragments[i];if(s&&!(a>=s.body.sn))if(s.buffered||s.loaded){var o=s.range[t];o&&o.time.some(function(t){var r=!n.isTimeBuffered(t.startPTS,t.endPTS,e);return r&&n.removeFragment(s.body),r})}else s.body.type===r&&n.removeFragment(s.body)})},e.detectPartialFragments=function(t){var e=this,r=this.timeRanges,i=t.frag,n=t.part;if(r&&"initSegment"!==i.sn){var a=rr(i),s=this.fragments[a];if(!(!s||s.buffered&&i.gap)){var o=!i.relurl;Object.keys(r).forEach(function(t){var a=i.elementaryStreams[t];if(a){var l=r[t],u=o||!0===a.partial;s.range[t]=e.getBufferedTimes(i,n,u,l)}}),s.loaded=null,Object.keys(s.range).length?(s.buffered=!0,(s.body.endList=i.endList||s.body.endList)&&(this.endListFragments[s.body.type]=s),er(s)||this.removeParts(i.sn-1,i.type)):this.removeFragment(s.body)}}},e.removeParts=function(t,e){var r=this.activePartLists[e];r&&(this.activePartLists[e]=r.filter(function(e){return e.fragment.sn>=t}))},e.fragBuffered=function(t,e){var r=rr(t),i=this.fragments[r];!i&&e&&(i=this.fragments[r]={body:t,appendedPTS:null,loaded:null,buffered:!1,range:Object.create(null)},t.gap&&(this.hasGaps=!0)),i&&(i.loaded=null,i.buffered=!0)},e.getBufferedTimes=function(t,e,r,i){for(var n={time:[],partial:r},a=t.start,s=t.end,o=t.minEndPTS||s,l=t.maxStartPTS||a,u=0;u<i.length;u++){var h=i.start(u)-this.bufferPadding,d=i.end(u)+this.bufferPadding;if(l>=h&&o<=d){n.time.push({startPTS:Math.max(a,i.start(u)),endPTS:Math.min(s,i.end(u))});break}if(a<d&&s>h)n.partial=!0,n.time.push({startPTS:Math.max(a,i.start(u)),endPTS:Math.min(s,i.end(u))});else if(s<=h)break}return n},e.getPartialFragment=function(t){var e,r,i,n=null,a=0,s=this.bufferPadding,o=this.fragments;return Object.keys(o).forEach(function(l){var u=o[l];u&&er(u)&&(r=u.body.start-s,i=u.body.end+s,t>=r&&t<=i&&(e=Math.min(t-r,i-t),a<=e&&(n=u.body,a=e)))}),n},e.isEndListAppended=function(t){var e=this.endListFragments[t];return void 0!==e&&(e.buffered||er(e))},e.getState=function(t){var e=rr(t),r=this.fragments[e];return r?r.buffered?er(r)?Je:Ze:$e:Qe},e.isTimeBuffered=function(t,e,r){for(var i,n,a=0;a<r.length;a++){if(i=r.start(a)-this.bufferPadding,n=r.end(a)+this.bufferPadding,t>=i&&e<=n)return!0;if(e<=i)return!1}return!1},e.onFragLoaded=function(t,e){var r=e.frag,i=e.part;if("initSegment"!==r.sn&&!r.bitrateTest){var n=i?null:e,a=rr(r);this.fragments[a]={body:r,appendedPTS:null,loaded:n,buffered:!1,range:Object.create(null)}}},e.onBufferAppended=function(t,e){var r=this,i=e.frag,n=e.part,a=e.timeRanges;if("initSegment"!==i.sn){var s=i.type;if(n){var o=this.activePartLists[s];o||(this.activePartLists[s]=o=[]),o.push(n)}this.timeRanges=a,Object.keys(a).forEach(function(t){var e=a[t];r.detectEvictedFragments(t,e,s,n)})}},e.onFragBuffered=function(t,e){this.detectPartialFragments(e)},e.hasFragment=function(t){var e=rr(t);return!!this.fragments[e]},e.hasParts=function(t){var e;return!(null==(e=this.activePartLists[t])||!e.length)},e.removeFragmentsInRange=function(t,e,r,i,n){var a=this;i&&!this.hasGaps||Object.keys(this.fragments).forEach(function(s){var o=a.fragments[s];if(o){var l=o.body;l.type!==r||i&&!l.gap||l.start<e&&l.end>t&&(o.buffered||n)&&a.removeFragment(l)}})},e.removeFragment=function(t){var e=rr(t);t.stats.loaded=0,t.clearElementaryStreamInfo();var r=this.activePartLists[t.type];if(r){var i=t.sn;this.activePartLists[t.type]=r.filter(function(t){return t.fragment.sn!==i})}delete this.fragments[e],t.endList&&delete this.endListFragments[t.type]},e.removeAllFragments=function(){this.fragments=Object.create(null),this.endListFragments=Object.create(null),this.activePartLists=Object.create(null),this.hasGaps=!1},t}();function er(t){var e,r,i;return t.buffered&&(t.body.gap||(null==(e=t.range.video)?void 0:e.partial)||(null==(r=t.range.audio)?void 0:r.partial)||(null==(i=t.range.audiovideo)?void 0:i.partial))}function rr(t){return t.type+"_"+t.level+"_"+t.urlId+"_"+t.sn}var ir=Math.pow(2,17),nr=function(){function t(t){this.config=void 0,this.loader=null,this.partLoadTimeout=-1,this.config=t}var e=t.prototype;return e.destroy=function(){this.loader&&(this.loader.destroy(),this.loader=null)},e.abort=function(){this.loader&&this.loader.abort()},e.load=function(t,e){var r=this,n=t.url;if(!n)return Promise.reject(new or({type:E.NETWORK_ERROR,details:S.FRAG_LOAD_ERROR,fatal:!1,frag:t,error:new Error("Fragment does not have a "+(n?"part list":"url")),networkDetails:null}));this.abort();var a=this.config,s=a.fLoader,o=a.loader;return new Promise(function(l,u){if(r.loader&&r.loader.destroy(),t.gap){if(t.tagList.some(function(t){return"GAP"===t[0]}))return void u(sr(t));t.gap=!1}var h=r.loader=t.loader=s?new s(a):new o(a),d=ar(t),c=Ue(a.fragLoadPolicy.default),f={loadPolicy:c,timeout:c.maxLoadTimeMs,maxRetry:0,retryDelay:0,maxRetryDelay:0,highWaterMark:"initSegment"===t.sn?1/0:ir};t.stats=h.stats,h.load(d,f,{onSuccess:function(e,i,n,a){r.resetLoader(t,h);var s=e.data;n.resetIV&&t.decryptdata&&(t.decryptdata.iv=new Uint8Array(s.slice(0,16)),s=s.slice(16)),l({frag:t,part:null,payload:s,networkDetails:a})},onError:function(e,a,s,o){r.resetLoader(t,h),u(new or({type:E.NETWORK_ERROR,details:S.FRAG_LOAD_ERROR,fatal:!1,frag:t,response:i({url:n,data:void 0},e),error:new Error("HTTP Error "+e.code+" "+e.text),networkDetails:s,stats:o}))},onAbort:function(e,i,n){r.resetLoader(t,h),u(new or({type:E.NETWORK_ERROR,details:S.INTERNAL_ABORTED,fatal:!1,frag:t,error:new Error("Aborted"),networkDetails:n,stats:e}))},onTimeout:function(e,i,n){r.resetLoader(t,h),u(new or({type:E.NETWORK_ERROR,details:S.FRAG_LOAD_TIMEOUT,fatal:!1,frag:t,error:new Error("Timeout after "+f.timeout+"ms"),networkDetails:n,stats:e}))},onProgress:function(r,i,n,a){e&&e({frag:t,part:null,payload:n,networkDetails:a})}})})},e.loadPart=function(t,e,r){var n=this;this.abort();var a=this.config,s=a.fLoader,o=a.loader;return new Promise(function(l,u){if(n.loader&&n.loader.destroy(),t.gap||e.gap)u(sr(t,e));else{var h=n.loader=t.loader=s?new s(a):new o(a),d=ar(t,e),c=Ue(a.fragLoadPolicy.default),f={loadPolicy:c,timeout:c.maxLoadTimeMs,maxRetry:0,retryDelay:0,maxRetryDelay:0,highWaterMark:ir};e.stats=h.stats,h.load(d,f,{onSuccess:function(i,a,s,o){n.resetLoader(t,h),n.updateStatsFromPart(t,e);var u={frag:t,part:e,payload:i.data,networkDetails:o};r(u),l(u)},onError:function(r,a,s,o){n.resetLoader(t,h),u(new or({type:E.NETWORK_ERROR,details:S.FRAG_LOAD_ERROR,fatal:!1,frag:t,part:e,response:i({url:d.url,data:void 0},r),error:new Error("HTTP Error "+r.code+" "+r.text),networkDetails:s,stats:o}))},onAbort:function(r,i,a){t.stats.aborted=e.stats.aborted,n.resetLoader(t,h),u(new or({type:E.NETWORK_ERROR,details:S.INTERNAL_ABORTED,fatal:!1,frag:t,part:e,error:new Error("Aborted"),networkDetails:a,stats:r}))},onTimeout:function(r,i,a){n.resetLoader(t,h),u(new or({type:E.NETWORK_ERROR,details:S.FRAG_LOAD_TIMEOUT,fatal:!1,frag:t,part:e,error:new Error("Timeout after "+f.timeout+"ms"),networkDetails:a,stats:r}))}})}})},e.updateStatsFromPart=function(t,e){var r=t.stats,i=e.stats,n=i.total;if(r.loaded+=i.loaded,n){var a=Math.round(t.duration/e.duration),s=Math.min(Math.round(r.loaded/n),a),o=(a-s)*Math.round(r.loaded/s);r.total=r.loaded+o}else r.total=Math.max(r.loaded,r.total);var l=r.loading,u=i.loading;l.start?l.first+=u.first-u.start:(l.start=u.start,l.first=u.first),l.end=u.end},e.resetLoader=function(t,e){t.loader=null,this.loader===e&&(self.clearTimeout(this.partLoadTimeout),this.loader=null),e.destroy()},t}();function ar(t,e){void 0===e&&(e=null);var r=e||t,i={frag:t,part:e,responseType:"arraybuffer",url:r.url,headers:{},rangeStart:0,rangeEnd:0},n=r.byteRangeStartOffset,a=r.byteRangeEndOffset;if(y(n)&&y(a)){var s,o=n,l=a;if("initSegment"===t.sn&&"AES-128"===(null==(s=t.decryptdata)?void 0:s.method)){var u=a-n;u%16&&(l=a+(16-u%16)),0!==n&&(i.resetIV=!0,o=n-16)}i.rangeStart=o,i.rangeEnd=l}return i}function sr(t,e){var r=new Error("GAP "+(t.gap?"tag":"attribute")+" found"),i={type:E.MEDIA_ERROR,details:S.FRAG_GAP,fatal:!1,frag:t,error:r,networkDetails:null};return e&&(i.part=e),(e||t).stats.aborted=!0,new or(i)}var or=function(t){function e(e){var r;return(r=t.call(this,e.error.message)||this).data=void 0,r.data=e,r}return l(e,t),e}(c(Error)),lr=function(){function t(t){this.config=void 0,this.keyUriToKeyInfo={},this.emeController=null,this.config=t}var e=t.prototype;return e.abort=function(t){for(var e in this.keyUriToKeyInfo){var r=this.keyUriToKeyInfo[e].loader;if(r){if(t&&t!==r.context.frag.type)return;r.abort()}}},e.detach=function(){for(var t in this.keyUriToKeyInfo){var e=this.keyUriToKeyInfo[t];(e.mediaKeySessionContext||e.decryptdata.isCommonEncryption)&&delete this.keyUriToKeyInfo[t]}},e.destroy=function(){for(var t in this.detach(),this.keyUriToKeyInfo){var e=this.keyUriToKeyInfo[t].loader;e&&e.destroy()}this.keyUriToKeyInfo={}},e.createKeyLoadError=function(t,e,r,i,n){return void 0===e&&(e=S.KEY_LOAD_ERROR),new or({type:E.NETWORK_ERROR,details:e,fatal:!1,frag:t,response:n,error:r,networkDetails:i})},e.loadClear=function(t,e){var r=this;if(this.emeController&&this.config.emeEnabled)for(var i=t.sn,n=t.cc,a=function(){var t=e[s];if(n<=t.cc&&("initSegment"===i||"initSegment"===t.sn||i<t.sn))return r.emeController.selectKeySystemFormat(t).then(function(e){t.setKeyFormat(e)}),"break"},s=0;s<e.length&&"break"!==a();s++);},e.load=function(t){var e=this;return!t.decryptdata&&t.encrypted&&this.emeController?this.emeController.selectKeySystemFormat(t).then(function(r){return e.loadInternal(t,r)}):this.loadInternal(t)},e.loadInternal=function(t,e){var r,i;e&&t.setKeyFormat(e);var n=t.decryptdata;if(!n){var a=new Error(e?"Expected frag.decryptdata to be defined after setting format "+e:"Missing decryption data on fragment in onKeyLoading");return Promise.reject(this.createKeyLoadError(t,S.KEY_LOAD_ERROR,a))}var s=n.uri;if(!s)return Promise.reject(this.createKeyLoadError(t,S.KEY_LOAD_ERROR,new Error('Invalid key URI: "'+s+'"')));var o,l=this.keyUriToKeyInfo[s];if(null!=(r=l)&&r.decryptdata.key)return n.key=l.decryptdata.key,Promise.resolve({frag:t,keyInfo:l});if(null!=(i=l)&&i.keyLoadPromise)switch(null==(o=l.mediaKeySessionContext)?void 0:o.keyStatus){case void 0:case"status-pending":case"usable":case"usable-in-future":return l.keyLoadPromise.then(function(e){return n.key=e.keyInfo.decryptdata.key,{frag:t,keyInfo:l}})}switch(l=this.keyUriToKeyInfo[s]={decryptdata:n,keyLoadPromise:null,loader:null,mediaKeySessionContext:null},n.method){case"ISO-23001-7":case"SAMPLE-AES":case"SAMPLE-AES-CENC":case"SAMPLE-AES-CTR":return"identity"===n.keyFormat?this.loadKeyHTTP(l,t):this.loadKeyEME(l,t);case"AES-128":return this.loadKeyHTTP(l,t);default:return Promise.reject(this.createKeyLoadError(t,S.KEY_LOAD_ERROR,new Error('Key supplied with unsupported METHOD: "'+n.method+'"')))}},e.loadKeyEME=function(t,e){var r={frag:e,keyInfo:t};if(this.emeController&&this.config.emeEnabled){var i=this.emeController.loadKey(r);if(i)return(t.keyLoadPromise=i.then(function(e){return t.mediaKeySessionContext=e,r})).catch(function(e){throw t.keyLoadPromise=null,e})}return Promise.resolve(r)},e.loadKeyHTTP=function(t,e){var r=this,n=this.config,a=new(0,n.loader)(n);return e.keyLoader=t.loader=a,t.keyLoadPromise=new Promise(function(s,o){var l={keyInfo:t,frag:e,responseType:"arraybuffer",url:t.decryptdata.uri},u=n.keyLoadPolicy.default,h={loadPolicy:u,timeout:u.maxLoadTimeMs,maxRetry:0,retryDelay:0,maxRetryDelay:0},d={onSuccess:function(t,e,i,n){var a=i.frag,l=i.keyInfo,u=i.url;if(!a.decryptdata||l!==r.keyUriToKeyInfo[u])return o(r.createKeyLoadError(a,S.KEY_LOAD_ERROR,new Error("after key load, decryptdata unset or changed"),n));l.decryptdata.key=a.decryptdata.key=new Uint8Array(t.data),a.keyLoader=null,l.loader=null,s({frag:a,keyInfo:l})},onError:function(t,n,a,s){r.resetLoader(n),o(r.createKeyLoadError(e,S.KEY_LOAD_ERROR,new Error("HTTP Error "+t.code+" loading key "+t.text),a,i({url:l.url,data:void 0},t)))},onTimeout:function(t,i,n){r.resetLoader(i),o(r.createKeyLoadError(e,S.KEY_LOAD_TIMEOUT,new Error("key loading timed out"),n))},onAbort:function(t,i,n){r.resetLoader(i),o(r.createKeyLoadError(e,S.INTERNAL_ABORTED,new Error("key loading aborted"),n))}};a.load(l,h,d)})},e.resetLoader=function(t){var e=t.frag,r=t.keyInfo,i=t.url,n=r.loader;e.keyLoader===n&&(e.keyLoader=null,r.loader=null),delete this.keyUriToKeyInfo[i],n&&n.destroy()},t}(),ur=function(){function t(){this._boundTick=void 0,this._tickTimer=null,this._tickInterval=null,this._tickCallCount=0,this._boundTick=this.tick.bind(this)}var e=t.prototype;return e.destroy=function(){this.onHandlerDestroying(),this.onHandlerDestroyed()},e.onHandlerDestroying=function(){this.clearNextTick(),this.clearInterval()},e.onHandlerDestroyed=function(){},e.hasInterval=function(){return!!this._tickInterval},e.hasNextTick=function(){return!!this._tickTimer},e.setInterval=function(t){return!this._tickInterval&&(this._tickCallCount=0,this._tickInterval=self.setInterval(this._boundTick,t),!0)},e.clearInterval=function(){return!!this._tickInterval&&(self.clearInterval(this._tickInterval),this._tickInterval=null,!0)},e.clearNextTick=function(){return!!this._tickTimer&&(self.clearTimeout(this._tickTimer),this._tickTimer=null,!0)},e.tick=function(){this._tickCallCount++,1===this._tickCallCount&&(this.doTick(),this._tickCallCount>1&&this.tickImmediate(),this._tickCallCount=0)},e.tickImmediate=function(){this.clearNextTick(),this._tickTimer=self.setTimeout(this._boundTick,0)},e.doTick=function(){},t}(),hr={length:0,start:function(){return 0},end:function(){return 0}},dr=function(){function t(){}return t.isBuffered=function(e,r){try{if(e)for(var i=t.getBuffered(e),n=0;n<i.length;n++)if(r>=i.start(n)&&r<=i.end(n))return!0}catch(t){}return!1},t.bufferInfo=function(e,r,i){try{if(e){var n,a=t.getBuffered(e),s=[];for(n=0;n<a.length;n++)s.push({start:a.start(n),end:a.end(n)});return this.bufferedInfo(s,r,i)}}catch(t){}return{len:0,start:r,end:r,nextStart:void 0}},t.bufferedInfo=function(t,e,r){e=Math.max(0,e),t.sort(function(t,e){return t.start-e.start||e.end-t.end});var i=[];if(r)for(var n=0;n<t.length;n++){var a=i.length;if(a){var s=i[a-1].end;t[n].start-s<r?t[n].end>s&&(i[a-1].end=t[n].end):i.push(t[n])}else i.push(t[n])}else i=t;for(var o,l=0,u=e,h=e,d=0;d<i.length;d++){var c=i[d].start,f=i[d].end;if(e+r>=c&&e<f)u=c,l=(h=f)-e;else if(e+r<c){o=c;break}}return{len:l,start:u||0,end:h||0,nextStart:o}},t.getBuffered=function(t){try{return t.buffered}catch(t){return b.log("failed to get media.buffered",t),hr}},t}(),cr=function(t,e,r,i,n,a){void 0===i&&(i=0),void 0===n&&(n=-1),void 0===a&&(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={start:0,executeStart:0,executeEnd:0,end:0},this.buffering={audio:{start:0,executeStart:0,executeEnd:0,end:0},video:{start:0,executeStart:0,executeEnd:0,end:0},audiovideo:{start:0,executeStart:0,executeEnd:0,end:0}},this.level=t,this.sn=e,this.id=r,this.size=i,this.part=n,this.partial=a};function fr(t,e){for(var r=null,i=0,n=t.length;i<n;i++){var a=t[i];if(a&&a.cc===e){r=a;break}}return r}function gr(t,e){if(t){var r=t.start+e;t.start=t.startPTS=r,t.endPTS=r+t.duration}}function vr(t,e){for(var r=e.fragments,i=0,n=r.length;i<n;i++)gr(r[i],t);e.fragmentHint&&gr(e.fragmentHint,t),e.alignedSliding=!0}function mr(t,e){if(t.hasProgramDateTime&&e.hasProgramDateTime){var r=t.fragments,i=e.fragments;if(r.length&&i.length){var n=i[Math.round(i.length/2)-1],a=fr(r,n.cc)||r[Math.round(r.length/2)-1],s=n.programDateTime,o=a.programDateTime;null!==s&&null!==o&&vr((o-s)/1e3-(a.start-n.start),t)}}}var pr=function(){function t(t,e){this.subtle=void 0,this.aesIV=void 0,this.subtle=t,this.aesIV=e}return t.prototype.decrypt=function(t,e){return this.subtle.decrypt({name:"AES-CBC",iv:this.aesIV},e,t)},t}(),yr=function(){function t(t,e){this.subtle=void 0,this.key=void 0,this.subtle=t,this.key=e}return t.prototype.expandKey=function(){return this.subtle.importKey("raw",this.key,{name:"AES-CBC"},!1,["encrypt","decrypt"])},t}(),Tr=function(){function t(){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()}var e=t.prototype;return e.uint8ArrayToUint32Array_=function(t){for(var e=new DataView(t),r=new Uint32Array(4),i=0;i<4;i++)r[i]=e.getUint32(4*i);return r},e.initTable=function(){var t=this.sBox,e=this.invSBox,r=this.subMix,i=r[0],n=r[1],a=r[2],s=r[3],o=this.invSubMix,l=o[0],u=o[1],h=o[2],d=o[3],c=new Uint32Array(256),f=0,g=0,v=0;for(v=0;v<256;v++)c[v]=v<128?v<<1:v<<1^283;for(v=0;v<256;v++){var m=g^g<<1^g<<2^g<<3^g<<4;m=m>>>8^255&m^99,t[f]=m,e[m]=f;var p=c[f],y=c[p],T=c[y],E=257*c[m]^16843008*m;i[f]=E<<24|E>>>8,n[f]=E<<16|E>>>16,a[f]=E<<8|E>>>24,s[f]=E,E=16843009*T^65537*y^257*p^16843008*f,l[m]=E<<24|E>>>8,u[m]=E<<16|E>>>16,h[m]=E<<8|E>>>24,d[m]=E,f?(f=p^c[c[c[T^p]]],g^=c[c[g]]):f=g=1}},e.expandKey=function(t){for(var e=this.uint8ArrayToUint32Array_(t),r=!0,i=0;i<e.length&&r;)r=e[i]===this.key[i],i++;if(!r){this.key=e;var n=this.keySize=e.length;if(4!==n&&6!==n&&8!==n)throw new Error("Invalid aes key size="+n);var a,s,o,l,u=this.ksRows=4*(n+6+1),h=this.keySchedule=new Uint32Array(u),d=this.invKeySchedule=new Uint32Array(u),c=this.sBox,f=this.rcon,g=this.invSubMix,v=g[0],m=g[1],p=g[2],y=g[3];for(a=0;a<u;a++)a<n?o=h[a]=e[a]:(l=o,a%n==0?(l=c[(l=l<<8|l>>>24)>>>24]<<24|c[l>>>16&255]<<16|c[l>>>8&255]<<8|c[255&l],l^=f[a/n|0]<<24):n>6&&a%n==4&&(l=c[l>>>24]<<24|c[l>>>16&255]<<16|c[l>>>8&255]<<8|c[255&l]),h[a]=o=(h[a-n]^l)>>>0);for(s=0;s<u;s++)a=u-s,l=3&s?h[a]:h[a-4],d[s]=s<4||a<=4?l:v[c[l>>>24]]^m[c[l>>>16&255]]^p[c[l>>>8&255]]^y[c[255&l]],d[s]=d[s]>>>0}},e.networkToHostOrderSwap=function(t){return t<<24|(65280&t)<<8|(16711680&t)>>8|t>>>24},e.decrypt=function(t,e,r){for(var i,n,a,s,o,l,u,h,d,c,f,g,v,m,p=this.keySize+6,y=this.invKeySchedule,T=this.invSBox,E=this.invSubMix,S=E[0],L=E[1],R=E[2],A=E[3],k=this.uint8ArrayToUint32Array_(r),b=k[0],D=k[1],I=k[2],w=k[3],C=new Int32Array(t),_=new Int32Array(C.length),P=this.networkToHostOrderSwap;e<C.length;){for(d=P(C[e]),c=P(C[e+1]),f=P(C[e+2]),g=P(C[e+3]),o=d^y[0],l=g^y[1],u=f^y[2],h=c^y[3],v=4,m=1;m<p;m++)i=S[o>>>24]^L[l>>16&255]^R[u>>8&255]^A[255&h]^y[v],n=S[l>>>24]^L[u>>16&255]^R[h>>8&255]^A[255&o]^y[v+1],a=S[u>>>24]^L[h>>16&255]^R[o>>8&255]^A[255&l]^y[v+2],s=S[h>>>24]^L[o>>16&255]^R[l>>8&255]^A[255&u]^y[v+3],o=i,l=n,u=a,h=s,v+=4;i=T[o>>>24]<<24^T[l>>16&255]<<16^T[u>>8&255]<<8^T[255&h]^y[v],n=T[l>>>24]<<24^T[u>>16&255]<<16^T[h>>8&255]<<8^T[255&o]^y[v+1],a=T[u>>>24]<<24^T[h>>16&255]<<16^T[o>>8&255]<<8^T[255&l]^y[v+2],s=T[h>>>24]<<24^T[o>>16&255]<<16^T[l>>8&255]<<8^T[255&u]^y[v+3],_[e]=P(i^b),_[e+1]=P(s^D),_[e+2]=P(a^I),_[e+3]=P(n^w),b=d,D=c,I=f,w=g,e+=4}return _.buffer},t}(),Er=function(){function t(t,e){var r=(void 0===e?{}:e).removePKCS7Padding,i=void 0===r||r;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.useSoftware=t.enableSoftwareAES,this.removePKCS7Padding=i,i)try{var n=self.crypto;n&&(this.subtle=n.subtle||n.webkitSubtle)}catch(t){}null===this.subtle&&(this.useSoftware=!0)}var e=t.prototype;return e.destroy=function(){this.subtle=null,this.softwareDecrypter=null,this.key=null,this.fastAesKey=null,this.remainderData=null,this.currentIV=null,this.currentResult=null},e.isSync=function(){return this.useSoftware},e.flush=function(){var t=this.currentResult,e=this.remainderData;if(!t||e)return this.reset(),null;var r,i,n,a=new Uint8Array(t);return this.reset(),this.removePKCS7Padding?(n=(i=(r=a).byteLength)&&new DataView(r.buffer).getUint8(i-1))?J(r,0,i-n):r:a},e.reset=function(){this.currentResult=null,this.currentIV=null,this.remainderData=null,this.softwareDecrypter&&(this.softwareDecrypter=null)},e.decrypt=function(t,e,r){var i=this;return this.useSoftware?new Promise(function(n,a){i.softwareDecrypt(new Uint8Array(t),e,r);var s=i.flush();s?n(s.buffer):a(new Error("[softwareDecrypt] Failed to decrypt data"))}):this.webCryptoDecrypt(new Uint8Array(t),e,r)},e.softwareDecrypt=function(t,e,r){var i=this.currentIV,n=this.currentResult,a=this.remainderData;this.logOnce("JS AES decrypt"),a&&(t=It(a,t),this.remainderData=null);var s=this.getValidChunk(t);if(!s.length)return null;i&&(r=i);var o=this.softwareDecrypter;o||(o=this.softwareDecrypter=new Tr),o.expandKey(e);var l=n;return this.currentResult=o.decrypt(s.buffer,0,r),this.currentIV=J(s,-16).buffer,l||null},e.webCryptoDecrypt=function(t,e,r){var i=this,n=this.subtle;return this.key===e&&this.fastAesKey||(this.key=e,this.fastAesKey=new yr(n,e)),this.fastAesKey.expandKey().then(function(e){return n?(i.logOnce("WebCrypto AES decrypt"),new pr(n,new Uint8Array(r)).decrypt(t.buffer,e)):Promise.reject(new Error("web crypto not initialized"))}).catch(function(n){return b.warn("[decrypter]: WebCrypto Error, disable WebCrypto API, "+n.name+": "+n.message),i.onWebCryptoError(t,e,r)})},e.onWebCryptoError=function(t,e,r){this.useSoftware=!0,this.logEnabled=!0,this.softwareDecrypt(t,e,r);var i=this.flush();if(i)return i.buffer;throw new Error("WebCrypto and softwareDecrypt: failed to decrypt data")},e.getValidChunk=function(t){var e=t,r=t.length-t.length%16;return r!==t.length&&(e=J(t,0,r),this.remainderData=J(t,r)),e},e.logOnce=function(t){this.logEnabled&&(b.log("[decrypter]: "+t),this.logEnabled=!1)},t}(),Sr="STOPPED",Lr="IDLE",Rr="KEY_LOADING",Ar="FRAG_LOADING",kr="FRAG_LOADING_WAITING_RETRY",br="WAITING_TRACK",Dr="PARSING",Ir="PARSED",wr="ENDED",Cr="ERROR",_r="WAITING_INIT_PTS",Pr="WAITING_LEVEL",xr=function(t){function e(e,r,i,n,a){var s;return(s=t.call(this)||this).hls=void 0,s.fragPrevious=null,s.fragCurrent=null,s.fragmentTracker=void 0,s.transmuxer=null,s._state=Sr,s.playlistType=void 0,s.media=null,s.mediaBuffer=null,s.config=void 0,s.bitrateTest=!1,s.lastCurrentTime=0,s.nextLoadPosition=0,s.startPosition=0,s.startTimeOffset=null,s.loadedmetadata=!1,s.retryDate=0,s.levels=null,s.fragmentLoader=void 0,s.keyLoader=void 0,s.levelLastLoaded=null,s.startFragRequested=!1,s.decrypter=void 0,s.initPTS=[],s.onvseeking=null,s.onvended=null,s.logPrefix="",s.log=void 0,s.warn=void 0,s.playlistType=a,s.logPrefix=n,s.log=b.log.bind(b,n+":"),s.warn=b.warn.bind(b,n+":"),s.hls=e,s.fragmentLoader=new nr(e.config),s.keyLoader=i,s.fragmentTracker=r,s.config=e.config,s.decrypter=new Er(e.config),e.on(T.MANIFEST_LOADED,s.onManifestLoaded,function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(s)),s}l(e,t);var r=e.prototype;return r.doTick=function(){this.onTickEnd()},r.onTickEnd=function(){},r.startLoad=function(t){},r.stopLoad=function(){this.fragmentLoader.abort(),this.keyLoader.abort(this.playlistType);var t=this.fragCurrent;null!=t&&t.loader&&(t.abortRequests(),this.fragmentTracker.removeFragment(t)),this.resetTransmuxer(),this.fragCurrent=null,this.fragPrevious=null,this.clearInterval(),this.clearNextTick(),this.state=Sr},r._streamEnded=function(t,e){if(e.live||t.nextStart||!t.end||!this.media)return!1;var r=e.partList;if(null!=r&&r.length){var i=r[r.length-1];return dr.isBuffered(this.media,i.start+i.duration/2)}var n=e.fragments[e.fragments.length-1].type;return this.fragmentTracker.isEndListAppended(n)},r.getLevelDetails=function(){var t;if(this.levels&&null!==this.levelLastLoaded)return null==(t=this.levels[this.levelLastLoaded])?void 0:t.details},r.onMediaAttached=function(t,e){var r=this.media=this.mediaBuffer=e.media;this.onvseeking=this.onMediaSeeking.bind(this),this.onvended=this.onMediaEnded.bind(this),r.addEventListener("seeking",this.onvseeking),r.addEventListener("ended",this.onvended);var i=this.config;this.levels&&i.autoStartLoad&&this.state===Sr&&this.startLoad(i.startPosition)},r.onMediaDetaching=function(){var t=this.media;null!=t&&t.ended&&(this.log("MSE detaching and video ended, reset startPosition"),this.startPosition=this.lastCurrentTime=0),t&&this.onvseeking&&this.onvended&&(t.removeEventListener("seeking",this.onvseeking),t.removeEventListener("ended",this.onvended),this.onvseeking=this.onvended=null),this.keyLoader&&this.keyLoader.detach(),this.media=this.mediaBuffer=null,this.loadedmetadata=!1,this.fragmentTracker.removeAllFragments(),this.stopLoad()},r.onMediaSeeking=function(){var t=this.config,e=this.fragCurrent,r=this.media,i=this.mediaBuffer,n=this.state,a=r?r.currentTime:0,s=dr.bufferInfo(i||r,a,t.maxBufferHole);if(this.log("media seeking to "+(y(a)?a.toFixed(3):a)+", state: "+n),this.state===wr)this.resetLoadingState();else if(e){var o=t.maxFragLookUpTolerance,l=e.start-o,u=e.start+e.duration+o;if(!s.len||u<s.start||l>s.end){var h=a>u;(a<l||h)&&(h&&e.loader&&(this.log("seeking outside of buffer while fragment load in progress, cancel fragment load"),e.abortRequests(),this.resetLoadingState()),this.fragPrevious=null)}}r&&(this.fragmentTracker.removeFragmentsInRange(a,1/0,this.playlistType,!0),this.lastCurrentTime=a),this.loadedmetadata||s.len||(this.nextLoadPosition=this.startPosition=a),this.tickImmediate()},r.onMediaEnded=function(){this.startPosition=this.lastCurrentTime=0},r.onManifestLoaded=function(t,e){this.startTimeOffset=e.startTimeOffset,this.initPTS=[]},r.onHandlerDestroying=function(){this.stopLoad(),t.prototype.onHandlerDestroying.call(this)},r.onHandlerDestroyed=function(){this.state=Sr,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,t.prototype.onHandlerDestroyed.call(this)},r.loadFragment=function(t,e,r){this._loadFragForPlayback(t,e,r)},r._loadFragForPlayback=function(t,e,r){var i=this;this._doFragLoad(t,e,r,function(e){if(i.fragContextChanged(t))return i.warn("Fragment "+t.sn+(e.part?" p: "+e.part.index:"")+" of level "+t.level+" was dropped during download."),void i.fragmentTracker.removeFragment(t);t.stats.chunkCount++,i._handleFragmentLoadProgress(e)}).then(function(e){if(e){var r=i.state;i.fragContextChanged(t)?(r===Ar||!i.fragCurrent&&r===Dr)&&(i.fragmentTracker.removeFragment(t),i.state=Lr):("payload"in e&&(i.log("Loaded fragment "+t.sn+" of level "+t.level),i.hls.trigger(T.FRAG_LOADED,e)),i._handleFragmentLoadComplete(e))}}).catch(function(e){i.state!==Sr&&i.state!==Cr&&(i.warn(e),i.resetFragmentLoading(t))})},r.clearTrackerIfNeeded=function(t){var e,r=this.fragmentTracker;if(r.getState(t)===$e){var i=t.type,n=this.getFwdBufferInfo(this.mediaBuffer,i),a=Math.max(t.duration,n?n.len:this.config.maxBufferLength);this.reduceMaxBufferLength(a)&&r.removeFragment(t)}else 0===(null==(e=this.mediaBuffer)?void 0:e.buffered.length)?r.removeAllFragments():r.hasParts(t.type)&&(r.detectPartialFragments({frag:t,part:null,stats:t.stats,id:t.type}),r.getState(t)===Je&&r.removeFragment(t))},r.checkLiveUpdate=function(t){if(t.updated&&!t.live){var e=t.fragments[t.fragments.length-1];this.fragmentTracker.detectPartialFragments({frag:e,part:null,stats:e.stats,id:e.type})}t.fragments[0]||(t.deltaUpdateFailed=!0)},r.flushMainBuffer=function(t,e,r){if(void 0===r&&(r=null),t-e){var i={startOffset:t,endOffset:e,type:r};this.hls.trigger(T.BUFFER_FLUSHING,i)}},r._loadInitSegment=function(t,e){var r=this;this._doFragLoad(t,e).then(function(e){if(!e||r.fragContextChanged(t)||!r.levels)throw new Error("init load aborted");return e}).then(function(e){var i=r.hls,n=e.payload,a=t.decryptdata;if(n&&n.byteLength>0&&a&&a.key&&a.iv&&"AES-128"===a.method){var s=self.performance.now();return r.decrypter.decrypt(new Uint8Array(n),a.key.buffer,a.iv.buffer).catch(function(e){throw i.trigger(T.ERROR,{type:E.MEDIA_ERROR,details:S.FRAG_DECRYPT_ERROR,fatal:!1,error:e,reason:e.message,frag:t}),e}).then(function(r){var n=self.performance.now();return i.trigger(T.FRAG_DECRYPTED,{frag:t,payload:r,stats:{tstart:s,tdecrypt:n}}),e.payload=r,e})}return e}).then(function(i){var n=r.fragCurrent,a=r.hls;if(!r.levels)throw new Error("init load aborted, missing levels");var s=t.stats;r.state=Lr,e.fragmentError=0,t.data=new Uint8Array(i.payload),s.parsing.start=s.buffering.start=self.performance.now(),s.parsing.end=s.buffering.end=self.performance.now(),i.frag===n&&a.trigger(T.FRAG_BUFFERED,{stats:s,frag:n,part:null,id:t.type}),r.tick()}).catch(function(e){r.state!==Sr&&r.state!==Cr&&(r.warn(e),r.resetFragmentLoading(t))})},r.fragContextChanged=function(t){var e=this.fragCurrent;return!t||!e||t.level!==e.level||t.sn!==e.sn||t.urlId!==e.urlId},r.fragBufferedComplete=function(t,e){var r,i,n,a,s=this.mediaBuffer?this.mediaBuffer:this.media;this.log("Buffered "+t.type+" sn: "+t.sn+(e?" part: "+e.index:"")+" of "+(this.playlistType===le?"level":"track")+" "+t.level+" (frag:["+(null!=(r=t.startPTS)?r:NaN).toFixed(3)+"-"+(null!=(i=t.endPTS)?i:NaN).toFixed(3)+"] > buffer:"+(s?function(t){for(var e="",r=t.length,i=0;i<r;i++)e+="["+t.start(i).toFixed(3)+"-"+t.end(i).toFixed(3)+"]";return e}(dr.getBuffered(s)):"(detached)")+")"),this.state=Lr,s&&(!this.loadedmetadata&&t.type==le&&s.buffered.length&&(null==(n=this.fragCurrent)?void 0:n.sn)===(null==(a=this.fragPrevious)?void 0:a.sn)&&(this.loadedmetadata=!0,this.seekToStartPos()),this.tick())},r.seekToStartPos=function(){},r._handleFragmentLoadComplete=function(t){var e=this.transmuxer;if(e){var r=t.frag,i=t.part,n=t.partsLoaded,a=!n||0===n.length||n.some(function(t){return!t}),s=new cr(r.level,r.sn,r.stats.chunkCount+1,0,i?i.index:-1,!a);e.flush(s)}},r._handleFragmentLoadProgress=function(t){},r._doFragLoad=function(t,e,r,i){var n,a=this;void 0===r&&(r=null);var s=null==e?void 0:e.details;if(!this.levels||!s)throw new Error("frag load aborted, missing level"+(s?"":" detail")+"s");var o=null;if(!t.encrypted||null!=(n=t.decryptdata)&&n.key?!t.encrypted&&s.encryptedFragments.length&&this.keyLoader.loadClear(t,s.encryptedFragments):(this.log("Loading key for "+t.sn+" of ["+s.startSN+"-"+s.endSN+"], "+("[stream-controller]"===this.logPrefix?"level":"track")+" "+t.level),this.state=Rr,this.fragCurrent=t,o=this.keyLoader.load(t).then(function(t){if(!a.fragContextChanged(t.frag))return a.hls.trigger(T.KEY_LOADED,t),a.state===Rr&&(a.state=Lr),t}),this.hls.trigger(T.KEY_LOADING,{frag:t}),null===this.fragCurrent&&(o=Promise.reject(new Error("frag load aborted, context changed in KEY_LOADING")))),r=Math.max(t.start,r||0),this.config.lowLatencyMode&&"initSegment"!==t.sn){var l=s.partList;if(l&&i){r>t.end&&s.fragmentHint&&(t=s.fragmentHint);var u=this.getNextPart(l,t,r);if(u>-1){var h,d=l[u];return this.log("Loading part sn: "+t.sn+" p: "+d.index+" cc: "+t.cc+" of playlist ["+s.startSN+"-"+s.endSN+"] parts [0-"+u+"-"+(l.length-1)+"] "+("[stream-controller]"===this.logPrefix?"level":"track")+": "+t.level+", target: "+parseFloat(r.toFixed(3))),this.nextLoadPosition=d.start+d.duration,this.state=Ar,h=o?o.then(function(r){return!r||a.fragContextChanged(r.frag)?null:a.doFragPartsLoad(t,d,e,i)}).catch(function(t){return a.handleFragLoadError(t)}):this.doFragPartsLoad(t,d,e,i).catch(function(t){return a.handleFragLoadError(t)}),this.hls.trigger(T.FRAG_LOADING,{frag:t,part:d,targetBufferTime:r}),null===this.fragCurrent?Promise.reject(new Error("frag load aborted, context changed in FRAG_LOADING parts")):h}if(!t.url||this.loadedEndOfParts(l,r))return Promise.resolve(null)}}this.log("Loading fragment "+t.sn+" cc: "+t.cc+" "+(s?"of ["+s.startSN+"-"+s.endSN+"] ":"")+("[stream-controller]"===this.logPrefix?"level":"track")+": "+t.level+", target: "+parseFloat(r.toFixed(3))),y(t.sn)&&!this.bitrateTest&&(this.nextLoadPosition=t.start+t.duration),this.state=Ar;var c,f=this.config.progressive;return c=f&&o?o.then(function(e){return!e||a.fragContextChanged(null==e?void 0:e.frag)?null:a.fragmentLoader.load(t,i)}).catch(function(t){return a.handleFragLoadError(t)}):Promise.all([this.fragmentLoader.load(t,f?i:void 0),o]).then(function(t){var e=t[0];return!f&&e&&i&&i(e),e}).catch(function(t){return a.handleFragLoadError(t)}),this.hls.trigger(T.FRAG_LOADING,{frag:t,targetBufferTime:r}),null===this.fragCurrent?Promise.reject(new Error("frag load aborted, context changed in FRAG_LOADING")):c},r.doFragPartsLoad=function(t,e,r,i){var n=this;return new Promise(function(a,s){var o,l=[],u=null==(o=r.details)?void 0:o.partList;!function e(o){n.fragmentLoader.loadPart(t,o,i).then(function(i){l[o.index]=i;var s=i.part;n.hls.trigger(T.FRAG_LOADED,i);var h=xe(r,t.sn,o.index+1)||Fe(u,t.sn,o.index+1);if(!h)return a({frag:t,part:s,partsLoaded:l});e(h)}).catch(s)}(e)})},r.handleFragLoadError=function(t){if("data"in t){var e=t.data;t.data&&e.details===S.INTERNAL_ABORTED?this.handleFragLoadAborted(e.frag,e.part):this.hls.trigger(T.ERROR,e)}else this.hls.trigger(T.ERROR,{type:E.OTHER_ERROR,details:S.INTERNAL_EXCEPTION,err:t,error:t,fatal:!0});return null},r._handleTransmuxerFlush=function(t){var e=this.getCurrentContext(t);if(e&&this.state===Dr){var r=e.frag,i=e.part,n=e.level,a=self.performance.now();r.stats.parsing.end=a,i&&(i.stats.parsing.end=a),this.updateLevelTiming(r,i,n,t.partial)}else this.fragCurrent||this.state===Sr||this.state===Cr||(this.state=Lr)},r.getCurrentContext=function(t){var e=this.levels,r=this.fragCurrent,i=t.level,n=t.sn,a=t.part;if(null==e||!e[i])return this.warn("Levels object was unset while buffering fragment "+n+" of level "+i+". The current chunk will not be buffered."),null;var s=e[i],o=a>-1?xe(s,n,a):null,l=o?o.fragment:function(t,e,r){if(null==t||!t.details)return null;var i=t.details,n=i.fragments[e-i.startSN];return n||((n=i.fragmentHint)&&n.sn===e?n:e<i.startSN&&r&&r.sn===e?r:null)}(s,n,r);return l?(r&&r!==l&&(l.stats=r.stats),{frag:l,part:o,level:s}):null},r.bufferFragmentData=function(t,e,r,i,n){var a;if(t&&this.state===Dr){var s=t.data1,o=t.data2,l=s;if(s&&o&&(l=It(s,o)),null!=(a=l)&&a.length){var u={type:t.type,frag:e,part:r,chunkMeta:i,parent:e.type,data:l};if(this.hls.trigger(T.BUFFER_APPENDING,u),t.dropped&&t.independent&&!r){if(n)return;this.flushBufferGap(e)}}}},r.flushBufferGap=function(t){var e=this.media;if(e)if(dr.isBuffered(e,e.currentTime)){var r=e.currentTime,i=dr.bufferInfo(e,r,0),n=t.duration,a=Math.min(2*this.config.maxFragLookUpTolerance,.25*n),s=Math.max(Math.min(t.start-a,i.end-a),r+a);t.start-s>a&&this.flushMainBuffer(s,t.start)}else this.flushMainBuffer(0,t.start)},r.getFwdBufferInfo=function(t,e){var r=this.getLoadPosition();return y(r)?this.getFwdBufferInfoAtPos(t,r,e):null},r.getFwdBufferInfoAtPos=function(t,e,r){var i=this.config.maxBufferHole,n=dr.bufferInfo(t,e,i);if(0===n.len&&void 0!==n.nextStart){var a=this.fragmentTracker.getBufferedFrag(e,r);if(a&&n.nextStart<a.end)return dr.bufferInfo(t,e,Math.max(n.nextStart,i))}return n},r.getMaxBufferLength=function(t){var e,r=this.config;return e=t?Math.max(8*r.maxBufferSize/t,r.maxBufferLength):r.maxBufferLength,Math.min(e,r.maxMaxBufferLength)},r.reduceMaxBufferLength=function(t){var e=this.config,r=t||e.maxBufferLength;return e.maxMaxBufferLength>=r&&(e.maxMaxBufferLength/=2,this.warn("Reduce max buffer length to "+e.maxMaxBufferLength+"s"),!0)},r.getAppendedFrag=function(t,e){var r=this.fragmentTracker.getAppendedFrag(t,le);return r&&"fragment"in r?r.fragment:r},r.getNextFragment=function(t,e){var r=e.fragments,i=r.length;if(!i)return null;var n,a=this.config,s=r[0].start;if(e.live){var o=a.initialLiveManifestSize;if(i<o)return this.warn("Not enough fragments to start playback (have: "+i+", need: "+o+")"),null;e.PTSKnown||this.startFragRequested||-1!==this.startPosition||(n=this.getInitialLiveFragment(e,r),this.startPosition=n?this.hls.liveSyncPosition||n.start:t)}else t<=s&&(n=r[0]);if(!n){var l=a.lowLatencyMode?e.partEnd:e.fragmentEnd;n=this.getFragmentAtPosition(t,l,e)}return this.mapToInitFragWhenRequired(n)},r.isLoopLoading=function(t,e){var r=this.fragmentTracker.getState(t);return(r===Ze||r===Je&&!!t.gap)&&this.nextLoadPosition>e},r.getNextFragmentLoopLoading=function(t,e,r,i,n){var a=t.gap,s=this.getNextFragment(this.nextLoadPosition,e);if(null===s)return s;if(t=s,a&&t&&!t.gap&&r.nextStart){var o=this.getFwdBufferInfoAtPos(this.mediaBuffer?this.mediaBuffer:this.media,r.nextStart,i);if(null!==o&&r.len+o.len>=n)return this.log('buffer full after gaps in "'+i+'" playlist starting at sn: '+t.sn),null}return t},r.mapToInitFragWhenRequired=function(t){return null==t||!t.initSegment||null!=t&&t.initSegment.data||this.bitrateTest?t:t.initSegment},r.getNextPart=function(t,e,r){for(var i=-1,n=!1,a=!0,s=0,o=t.length;s<o;s++){var l=t[s];if(a=a&&!l.independent,i>-1&&r<l.start)break;var u=l.loaded;u?i=-1:(n||l.independent||a)&&l.fragment===e&&(i=s),n=u}return i},r.loadedEndOfParts=function(t,e){var r=t[t.length-1];return r&&e>r.start&&r.loaded},r.getInitialLiveFragment=function(t,e){var r=this.fragPrevious,i=null;if(r){if(t.hasProgramDateTime&&(this.log("Live playlist, switching playlist, load frag with same PDT: "+r.programDateTime),i=function(t,e,r){if(null===e||!Array.isArray(t)||!t.length||!y(e))return null;if(e<(t[0].programDateTime||0))return null;if(e>=(t[t.length-1].endProgramDateTime||0))return null;r=r||0;for(var i=0;i<t.length;++i){var n=t[i];if(Ve(e,r,n))return n}return null}(e,r.endProgramDateTime,this.config.maxFragLookUpTolerance)),!i){var n=r.sn+1;if(n>=t.startSN&&n<=t.endSN){var a=e[n-t.startSN];r.cc===a.cc&&(i=a,this.log("Live playlist, switching playlist, load frag with next SN: "+i.sn))}i||(i=function(t,e){return Ge(t,function(t){return t.cc<e?1:t.cc>e?-1:0})}(e,r.cc),i&&this.log("Live playlist, switching playlist, load frag with same CC: "+i.sn))}}else{var s=this.hls.liveSyncPosition;null!==s&&(i=this.getFragmentAtPosition(s,this.bitrateTest?t.fragmentEnd:t.edge,t))}return i},r.getFragmentAtPosition=function(t,e,r){var i,n=this.config,a=this.fragPrevious,s=r.fragments,o=r.endSN,l=r.fragmentHint,u=n.maxFragLookUpTolerance,h=r.partList,d=!!(n.lowLatencyMode&&null!=h&&h.length&&l);if(d&&l&&!this.bitrateTest&&(s=s.concat(l),o=l.sn),i=t<e?Ke(a,s,t,t>e-u?0:u):s[s.length-1]){var c=i.sn-r.startSN,f=this.fragmentTracker.getState(i);if((f===Ze||f===Je&&i.gap)&&(a=i),a&&i.sn===a.sn&&(!d||h[0].fragment.sn>i.sn)&&a&&i.level===a.level){var g=s[c+1];i=i.sn<o&&this.fragmentTracker.getState(g)!==Ze?g:null}}return i},r.synchronizeToLiveEdge=function(t){var e=this.config,r=this.media;if(r){var i=this.hls.liveSyncPosition,n=r.currentTime,a=t.fragments[0].start,s=t.edge,o=n>=a-e.maxFragLookUpTolerance&&n<=s;if(null!==i&&r.duration>i&&(n<i||!o)){var l=void 0!==e.liveMaxLatencyDuration?e.liveMaxLatencyDuration:e.liveMaxLatencyDurationCount*t.targetduration;(!o&&r.readyState<4||n<s-l)&&(this.loadedmetadata||(this.nextLoadPosition=i),r.readyState&&(this.warn("Playback: "+n.toFixed(3)+" is located too far from the end of live sliding playlist: "+s+", reset currentTime to:"+i.toFixed(3)),r.currentTime=i))}}},r.alignPlaylists=function(t,e){var r=this.levels,i=this.levelLastLoaded,n=this.fragPrevious,a=null!==i?r[i]:null,s=t.fragments.length;if(!s)return this.warn("No fragments in live playlist"),0;var o=t.fragments[0].start,l=!e,u=t.alignedSliding&&y(o);if(l||!u&&!o){!function(t,e,r){e&&(function(t,e,r){if(function(t,e,r){return!(!e.details||!(r.endCC>r.startCC||t&&t.cc<r.startCC))}(t,r,e)){var i=function(t,e){var r=t.fragments,i=e.fragments;if(i.length&&r.length){var n=fr(r,i[0].cc);if(n&&(!n||n.startPTS))return n;b.log("No frag in previous level to align on")}else b.log("No fragments to align")}(r.details,e);i&&y(i.start)&&(b.log("Adjusting PTS using last level due to CC increase within current level "+e.url),vr(i.start,e))}}(t,r,e),!r.alignedSliding&&e.details&&function(t,e){if(e.fragments.length&&t.hasProgramDateTime&&e.hasProgramDateTime){var r=e.fragments[0].programDateTime,i=t.fragments[0].programDateTime,n=(i-r)/1e3+e.fragments[0].start;n&&y(n)&&(b.log("Adjusting PTS using programDateTime delta "+(i-r)+"ms, sliding:"+n.toFixed(3)+" "+t.url+" "),vr(n,t))}}(r,e.details),r.alignedSliding||!e.details||r.skippedSegments||_e(e.details,r))}(n,a,t);var h=t.fragments[0].start;return this.log("Live playlist sliding: "+h.toFixed(2)+" start-sn: "+(e?e.startSN:"na")+"->"+t.startSN+" prev-sn: "+(n?n.sn:"na")+" fragments: "+s),h}return o},r.waitForCdnTuneIn=function(t){return t.live&&t.canBlockReload&&t.partTarget&&t.tuneInGoal>Math.max(t.partHoldBack,3*t.partTarget)},r.setStartPosition=function(t,e){var r=this.startPosition;if(r<e&&(r=-1),-1===r||-1===this.lastCurrentTime){var i=null!==this.startTimeOffset,n=i?this.startTimeOffset:t.startTimeOffset;null!==n&&y(n)?(r=e+n,n<0&&(r+=t.totalduration),r=Math.min(Math.max(e,r),e+t.totalduration),this.log("Start time offset "+n+" found in "+(i?"multivariant":"media")+" playlist, adjust startPosition to "+r),this.startPosition=r):t.live?r=this.hls.liveSyncPosition||e:this.startPosition=r=0,this.lastCurrentTime=r}this.nextLoadPosition=r},r.getLoadPosition=function(){var t=this.media,e=0;return this.loadedmetadata&&t?e=t.currentTime:this.nextLoadPosition&&(e=this.nextLoadPosition),e},r.handleFragLoadAborted=function(t,e){this.transmuxer&&"initSegment"!==t.sn&&t.stats.aborted&&(this.warn("Fragment "+t.sn+(e?" part "+e.index:"")+" of level "+t.level+" was aborted"),this.resetFragmentLoading(t))},r.resetFragmentLoading=function(t){this.fragCurrent&&(this.fragContextChanged(t)||this.state===kr)||(this.state=Lr)},r.onFragmentOrKeyLoadError=function(t,e){if(e.chunkMeta&&!e.frag){var r=this.getCurrentContext(e.chunkMeta);r&&(e.frag=r.frag)}var i=e.frag;if(i&&i.type===t&&this.levels)if(this.fragContextChanged(i)){var n;this.warn("Frag load error must match current frag to retry "+i.url+" > "+(null==(n=this.fragCurrent)?void 0:n.url))}else{var a=e.details===S.FRAG_GAP;a&&this.fragmentTracker.fragBuffered(i,!0);var s=e.errorAction,o=s||{},l=o.action,u=o.retryCount,h=void 0===u?0:u,d=o.retryConfig;if(s&&5===l&&d){var c;this.resetStartWhenNotLoaded(null!=(c=this.levelLastLoaded)?c:i.level);var f=Ne(d,h);this.warn("Fragment "+i.sn+" of "+t+" "+i.level+" errored with "+e.details+", retrying loading "+(h+1)+"/"+d.maxNumRetry+" in "+f+"ms"),s.resolved=!0,this.retryDate=self.performance.now()+f,this.state=kr}else d&&s?(this.resetFragmentErrors(t),h<d.maxNumRetry?a||(s.resolved=!0):b.warn(e.details+" reached or exceeded max retry ("+h+")")):2===(null==s?void 0:s.action)?this.state=Pr:this.state=Cr;this.tickImmediate()}},r.reduceLengthAndFlushBuffer=function(t){if(this.state===Dr||this.state===Ir){var e=t.parent,r=this.getFwdBufferInfo(this.mediaBuffer,e),i=r&&r.len>.5;i&&this.reduceMaxBufferLength(r.len);var n=!i;return n&&this.warn("Buffer full error while media.currentTime is not buffered, flush "+e+" buffer"),t.frag&&(this.fragmentTracker.removeFragment(t.frag),this.nextLoadPosition=t.frag.start),this.resetLoadingState(),n}return!1},r.resetFragmentErrors=function(t){t===ue&&(this.fragCurrent=null),this.loadedmetadata||(this.startFragRequested=!1),this.state!==Sr&&(this.state=Lr)},r.afterBufferFlushed=function(t,e,r){if(t){var i=dr.getBuffered(t);this.fragmentTracker.detectEvictedFragments(e,i,r),this.state===wr&&this.resetLoadingState()}},r.resetLoadingState=function(){this.log("Reset loading state"),this.fragCurrent=null,this.fragPrevious=null,this.state=Lr},r.resetStartWhenNotLoaded=function(t){if(!this.loadedmetadata){this.startFragRequested=!1;var e=this.levels?this.levels[t].details:null;null!=e&&e.live?(this.startPosition=-1,this.setStartPosition(e,0),this.resetLoadingState()):this.nextLoadPosition=this.startPosition}},r.resetWhenMissingContext=function(t){var e;this.warn("The loading context changed while buffering fragment "+t.sn+" of level "+t.level+". This chunk will not be buffered."),this.removeUnbufferedFrags(),this.resetStartWhenNotLoaded(null!=(e=this.levelLastLoaded)?e:t.level),this.resetLoadingState()},r.removeUnbufferedFrags=function(t){void 0===t&&(t=0),this.fragmentTracker.removeFragmentsInRange(t,1/0,this.playlistType,!1,!0)},r.updateLevelTiming=function(t,e,r,i){var n,a=this,s=r.details;if(s){if(Object.keys(t.elementaryStreams).reduce(function(e,n){var o=t.elementaryStreams[n];if(o){var l=o.endPTS-o.startPTS;if(l<=0)return a.warn("Could not parse fragment "+t.sn+" "+n+" duration reliably ("+l+")"),e||!1;var u=i?0:we(s,t,o.startPTS,o.endPTS,o.startDTS,o.endDTS);return a.hls.trigger(T.LEVEL_PTS_UPDATED,{details:s,level:r,drift:u,type:n,frag:t,start:o.startPTS,end:o.endPTS}),!0}return e},!1))r.fragmentError=0;else if(null===(null==(n=this.transmuxer)?void 0:n.error)){var o=new Error("Found no media in fragment "+t.sn+" of level "+t.level+" resetting transmuxer to fallback to playlist timing");if(0===r.fragmentError&&(r.fragmentError++,t.gap=!0,this.fragmentTracker.removeFragment(t),this.fragmentTracker.fragBuffered(t,!0)),this.warn(o.message),this.hls.trigger(T.ERROR,{type:E.MEDIA_ERROR,details:S.FRAG_PARSING_ERROR,fatal:!1,error:o,frag:t,reason:"Found no media in msn "+t.sn+' of level "'+r.url+'"'}),!this.hls)return;this.resetTransmuxer()}this.state=Ir,this.hls.trigger(T.FRAG_PARSED,{frag:t,part:e})}else this.warn("level.details undefined")},r.resetTransmuxer=function(){this.transmuxer&&(this.transmuxer.destroy(),this.transmuxer=null)},r.recoverWorkerError=function(t){var e,r,i;"demuxerWorker"===t.event&&(this.fragmentTracker.removeAllFragments(),this.resetTransmuxer(),this.resetStartWhenNotLoaded(null!=(e=null!=(r=this.levelLastLoaded)?r:null==(i=this.fragCurrent)?void 0:i.level)?e:0),this.resetLoadingState())},a(e,[{key:"state",get:function(){return this._state},set:function(t){var e=this._state;e!==t&&(this._state=t,this.log(e+"->"+t))}}]),e}(ur);function Fr(){return self.SourceBuffer||self.WebKitSourceBuffer}function Mr(t,e){return void 0===t&&(t=""),void 0===e&&(e=9e4),{type:t,id:-1,pid:-1,inputTimeScale:e,sequenceNumber:-1,samples:[],dropped:0}}var Or=function(){function t(){this._audioTrack=void 0,this._id3Track=void 0,this.frameIndex=0,this.cachedData=null,this.basePTS=null,this.initPTS=null,this.lastPTS=null}var e=t.prototype;return e.resetInitSegment=function(t,e,r,i){this._id3Track={type:"id3",id:3,pid:-1,inputTimeScale:9e4,sequenceNumber:0,samples:[],dropped:0}},e.resetTimeStamp=function(t){this.initPTS=t,this.resetContiguity()},e.resetContiguity=function(){this.basePTS=null,this.lastPTS=null,this.frameIndex=0},e.canParse=function(t,e){return!1},e.appendFrame=function(t,e,r){},e.demux=function(t,e){this.cachedData&&(t=It(this.cachedData,t),this.cachedData=null);var r,i=rt(t,0),n=i?i.length:0,a=this._audioTrack,s=this._id3Track,o=i?function(t){for(var e=ot(t),r=0;r<e.length;r++){var i=e[r];if(at(i))return ct(i)}}(i):void 0,l=t.length;for((null===this.basePTS||0===this.frameIndex&&y(o))&&(this.basePTS=Nr(o,e,this.initPTS),this.lastPTS=this.basePTS),null===this.lastPTS&&(this.lastPTS=this.basePTS),i&&i.length>0&&s.samples.push({pts:this.lastPTS,dts:this.lastPTS,data:i,type:ye,duration:Number.POSITIVE_INFINITY});n<l;){if(this.canParse(t,n)){var u=this.appendFrame(a,t,n);u?(this.frameIndex++,this.lastPTS=u.sample.pts,r=n+=u.length):n=l}else nt(t,n)?(i=rt(t,n),s.samples.push({pts:this.lastPTS,dts:this.lastPTS,data:i,type:ye,duration:Number.POSITIVE_INFINITY}),r=n+=i.length):n++;if(n===l&&r!==l){var h=J(t,r);this.cachedData?this.cachedData=It(this.cachedData,h):this.cachedData=h}}return{audioTrack:a,videoTrack:Mr(),id3Track:s,textTrack:Mr()}},e.demuxSampleAes=function(t,e,r){return Promise.reject(new Error("["+this+"] This demuxer does not support Sample-AES decryption"))},e.flush=function(t){var e=this.cachedData;return e&&(this.cachedData=null,this.demux(e,0)),{audioTrack:this._audioTrack,videoTrack:Mr(),id3Track:this._id3Track,textTrack:Mr()}},e.destroy=function(){},t}(),Nr=function(t,e,r){return y(t)?90*t:9e4*e+(r?9e4*r.baseTime/r.timescale:0)};function Ur(t,e){return 255===t[e]&&240==(246&t[e+1])}function Br(t,e){return 1&t[e+1]?7:9}function Gr(t,e){return(3&t[e+3])<<11|t[e+4]<<3|(224&t[e+5])>>>5}function Kr(t,e){return e+1<t.length&&Ur(t,e)}function Hr(t,e){if(Kr(t,e)){var r=Br(t,e);if(e+r>=t.length)return!1;var i=Gr(t,e);if(i<=r)return!1;var n=e+i;return n===t.length||Kr(t,n)}return!1}function Vr(t,e,r,i,n){if(!t.samplerate){var a=function(t,e,r,i){var n,a,s,o,l=navigator.userAgent.toLowerCase(),u=i,h=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350];n=1+((192&e[r+2])>>>6);var d=(60&e[r+2])>>>2;if(!(d>h.length-1))return s=(1&e[r+2])<<2,s|=(192&e[r+3])>>>6,b.log("manifest codec:"+i+", ADTS type:"+n+", samplingIndex:"+d),/firefox/i.test(l)?d>=6?(n=5,o=new Array(4),a=d-3):(n=2,o=new Array(2),a=d):-1!==l.indexOf("android")?(n=2,o=new Array(2),a=d):(n=5,o=new Array(4),i&&(-1!==i.indexOf("mp4a.40.29")||-1!==i.indexOf("mp4a.40.5"))||!i&&d>=6?a=d-3:((i&&-1!==i.indexOf("mp4a.40.2")&&(d>=6&&1===s||/vivaldi/i.test(l))||!i&&1===s)&&(n=2,o=new Array(2)),a=d)),o[0]=n<<3,o[0]|=(14&d)>>1,o[1]|=(1&d)<<7,o[1]|=s<<3,5===n&&(o[1]|=(14&a)>>1,o[2]=(1&a)<<7,o[2]|=8,o[3]=0),{config:o,samplerate:h[d],channelCount:s,codec:"mp4a.40."+n,manifestCodec:u};t.trigger(T.ERROR,{type:E.MEDIA_ERROR,details:S.FRAG_PARSING_ERROR,fatal:!0,reason:"invalid ADTS sampling index:"+d})}(e,r,i,n);if(!a)return;t.config=a.config,t.samplerate=a.samplerate,t.channelCount=a.channelCount,t.codec=a.codec,t.manifestCodec=a.manifestCodec,b.log("parsed codec:"+t.codec+", rate:"+a.samplerate+", channels:"+a.channelCount)}}function Yr(t){return 9216e4/t}function Wr(t,e,r,i,n){var a,s=i+n*Yr(t.samplerate),o=function(t,e){var r=Br(t,e);if(e+r<=t.length){var i=Gr(t,e)-r;if(i>0)return{headerLength:r,frameLength:i}}}(e,r);if(o){var l=o.frameLength,u=o.headerLength,h=u+l,d=Math.max(0,r+h-e.length);d?(a=new Uint8Array(h-u)).set(e.subarray(r+u,e.length),0):a=e.subarray(r+u,r+h);var c={unit:a,pts:s};return d||t.samples.push(c),{sample:c,length:h,missing:d}}var f=e.length-r;return(a=new Uint8Array(f)).set(e.subarray(r,e.length),0),{sample:{unit:a,pts:s},length:f,missing:-1}}var jr=function(t){function e(e,r){var i;return(i=t.call(this)||this).observer=void 0,i.config=void 0,i.observer=e,i.config=r,i}l(e,t);var r=e.prototype;return r.resetInitSegment=function(e,r,i,n){t.prototype.resetInitSegment.call(this,e,r,i,n),this._audioTrack={container:"audio/adts",type:"audio",id:2,pid:-1,sequenceNumber:0,segmentCodec:"aac",samples:[],manifestCodec:r,duration:n,inputTimeScale:9e4,dropped:0}},e.probe=function(t){if(!t)return!1;for(var e=(rt(t,0)||[]).length,r=t.length;e<r;e++)if(Hr(t,e))return b.log("ADTS sync word found !"),!0;return!1},r.canParse=function(t,e){return function(t,e){return function(t,e){return e+5<t.length}(t,e)&&Ur(t,e)&&Gr(t,e)<=t.length-e}(t,e)},r.appendFrame=function(t,e,r){Vr(t,this.observer,e,r,t.manifestCodec);var i=Wr(t,e,r,this.basePTS,this.frameIndex);if(i&&0===i.missing)return i},e}(Or),qr=/\/emsg[-/]ID3/i,Xr=function(){function t(t,e){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=e}var e=t.prototype;return e.resetTimeStamp=function(){},e.resetInitSegment=function(t,e,r,i){var n=this.videoTrack=Mr("video",1),a=this.audioTrack=Mr("audio",1),s=this.txtTrack=Mr("text",1);if(this.id3Track=Mr("id3",1),this.timeOffset=0,null!=t&&t.byteLength){var o=kt(t);if(o.video){var l=o.video,u=l.id,h=l.timescale,d=l.codec;n.id=u,n.timescale=s.timescale=h,n.codec=d}if(o.audio){var c=o.audio,f=c.id,g=c.timescale,v=c.codec;a.id=f,a.timescale=g,a.codec=v}s.id=pt.text,n.sampleDuration=0,n.duration=a.duration=i}},e.resetContiguity=function(){this.remainderData=null},t.probe=function(t){return Rt(t=t.length>16384?t.subarray(0,16384):t,["moof"]).length>0},e.demux=function(t,e){this.timeOffset=e;var r=t,i=this.videoTrack,n=this.txtTrack;if(this.config.progressive){this.remainderData&&(r=It(this.remainderData,t));var a=function(t){var e={valid:null,remainder:null},r=Rt(t,["moof"]);if(!r)return e;if(r.length<2)return e.remainder=t,e;var i=r[r.length-1];return e.valid=J(t,0,i.byteOffset-8),e.remainder=J(t,i.byteOffset-8),e}(r);this.remainderData=a.remainder,i.samples=a.valid||new Uint8Array}else i.samples=r;var s=this.extractID3Track(i,e);return n.samples=wt(e,i),{videoTrack:i,audioTrack:this.audioTrack,id3Track:s,textTrack:this.txtTrack}},e.flush=function(){var t=this.timeOffset,e=this.videoTrack,r=this.txtTrack;e.samples=this.remainderData||new Uint8Array,this.remainderData=null;var i=this.extractID3Track(e,this.timeOffset);return r.samples=wt(t,e),{videoTrack:e,audioTrack:Mr(),id3Track:i,textTrack:Mr()}},e.extractID3Track=function(t,e){var r=this.id3Track;if(t.samples.length){var i=Rt(t.samples,["emsg"]);i&&i.forEach(function(t){var i=function(t){var e=t[0],r="",i="",n=0,a=0,s=0,o=0,l=0,u=0;if(0===e){for(;"\0"!==yt(t.subarray(u,u+1));)r+=yt(t.subarray(u,u+1)),u+=1;for(r+=yt(t.subarray(u,u+1)),u+=1;"\0"!==yt(t.subarray(u,u+1));)i+=yt(t.subarray(u,u+1)),u+=1;i+=yt(t.subarray(u,u+1)),u+=1,n=Et(t,12),a=Et(t,16),o=Et(t,20),l=Et(t,24),u=28}else if(1===e){n=Et(t,u+=4);var h=Et(t,u+=4),d=Et(t,u+=4);for(u+=4,s=Math.pow(2,32)*h+d,Number.isSafeInteger(s)||(s=Number.MAX_SAFE_INTEGER,b.warn("Presentation time exceeds safe integer limit and wrapped to max safe integer in parsing emsg box")),o=Et(t,u),l=Et(t,u+=4),u+=4;"\0"!==yt(t.subarray(u,u+1));)r+=yt(t.subarray(u,u+1)),u+=1;for(r+=yt(t.subarray(u,u+1)),u+=1;"\0"!==yt(t.subarray(u,u+1));)i+=yt(t.subarray(u,u+1)),u+=1;i+=yt(t.subarray(u,u+1)),u+=1}return{schemeIdUri:r,value:i,timeScale:n,presentationTime:s,presentationTimeDelta:a,eventDuration:o,id:l,payload:t.subarray(u,t.byteLength)}}(t);if(qr.test(i.schemeIdUri)){var n=y(i.presentationTime)?i.presentationTime/i.timeScale:e+i.presentationTimeDelta/i.timeScale,a=4294967295===i.eventDuration?Number.POSITIVE_INFINITY:i.eventDuration/i.timeScale;a<=.001&&(a=Number.POSITIVE_INFINITY);var s=i.payload;r.samples.push({data:s,len:s.byteLength,dts:n,pts:n,type:Te,duration:a})}})}return r},e.demuxSampleAes=function(t,e,r){return Promise.reject(new Error("The MP4 demuxer does not support SAMPLE-AES decryption"))},e.destroy=function(){},t}(),zr=null,Qr=[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],$r=[44100,48e3,32e3,22050,24e3,16e3,11025,12e3,8e3],Jr=[[0,72,144,12],[0,0,0,0],[0,72,144,12],[0,144,144,12]],Zr=[0,1,1,4];function ti(t,e,r,i,n){if(!(r+24>e.length)){var a=ei(e,r);if(a&&r+a.frameLength<=e.length){var s=i+n*(9e4*a.samplesPerFrame/a.sampleRate),o={unit:e.subarray(r,r+a.frameLength),pts:s,dts:s};return t.config=[],t.channelCount=a.channelCount,t.samplerate=a.sampleRate,t.samples.push(o),{sample:o,length:a.frameLength,missing:0}}}}function ei(t,e){var r=t[e+1]>>3&3,i=t[e+1]>>1&3,n=t[e+2]>>4&15,a=t[e+2]>>2&3;if(1!==r&&0!==n&&15!==n&&3!==a){var s=t[e+2]>>1&1,o=t[e+3]>>6,l=1e3*Qr[14*(3===r?3-i:3===i?3:4)+n-1],u=$r[3*(3===r?0:2===r?1:2)+a],h=3===o?1:2,d=Jr[r][i],c=Zr[i],f=8*d*c,g=Math.floor(d*l/u+s)*c;if(null===zr){var v=(navigator.userAgent||"").match(/Chrome\/(\d+)/i);zr=v?parseInt(v[1]):0}return!!zr&&zr<=87&&2===i&&l>=224e3&&0===o&&(t[e+3]=128|t[e+3]),{sampleRate:u,channelCount:h,frameLength:g,samplesPerFrame:f}}}function ri(t,e){return!(255!==t[e]||224&~t[e+1]||!(6&t[e+1]))}function ii(t,e){return e+1<t.length&&ri(t,e)}function ni(t,e){if(e+1<t.length&&ri(t,e)){var r=ei(t,e),i=4;null!=r&&r.frameLength&&(i=r.frameLength);var n=e+i;return n===t.length||ii(t,n)}return!1}var ai=function(){function t(t){this.data=void 0,this.bytesAvailable=void 0,this.word=void 0,this.bitsAvailable=void 0,this.data=t,this.bytesAvailable=t.byteLength,this.word=0,this.bitsAvailable=0}var e=t.prototype;return e.loadWord=function(){var t=this.data,e=this.bytesAvailable,r=t.byteLength-e,i=new Uint8Array(4),n=Math.min(4,e);if(0===n)throw new Error("no bytes available");i.set(t.subarray(r,r+n)),this.word=new DataView(i.buffer).getUint32(0),this.bitsAvailable=8*n,this.bytesAvailable-=n},e.skipBits=function(t){var e;t=Math.min(t,8*this.bytesAvailable+this.bitsAvailable),this.bitsAvailable>t?(this.word<<=t,this.bitsAvailable-=t):(t-=this.bitsAvailable,t-=(e=t>>3)<<3,this.bytesAvailable-=e,this.loadWord(),this.word<<=t,this.bitsAvailable-=t)},e.readBits=function(t){var e=Math.min(this.bitsAvailable,t),r=this.word>>>32-e;if(t>32&&b.error("Cannot read more than 32 bits at a time"),this.bitsAvailable-=e,this.bitsAvailable>0)this.word<<=e;else{if(!(this.bytesAvailable>0))throw new Error("no bits available");this.loadWord()}return(e=t-e)>0&&this.bitsAvailable?r<<e|this.readBits(e):r},e.skipLZ=function(){var t;for(t=0;t<this.bitsAvailable;++t)if(this.word&2147483648>>>t)return this.word<<=t,this.bitsAvailable-=t,t;return this.loadWord(),t+this.skipLZ()},e.skipUEG=function(){this.skipBits(1+this.skipLZ())},e.skipEG=function(){this.skipBits(1+this.skipLZ())},e.readUEG=function(){var t=this.skipLZ();return this.readBits(t+1)-1},e.readEG=function(){var t=this.readUEG();return 1&t?1+t>>>1:-1*(t>>>1)},e.readBoolean=function(){return 1===this.readBits(1)},e.readUByte=function(){return this.readBits(8)},e.readUShort=function(){return this.readBits(16)},e.readUInt=function(){return this.readBits(32)},e.skipScalingList=function(t){for(var e=8,r=8,i=0;i<t;i++)0!==r&&(r=(e+this.readEG()+256)%256),e=0===r?e:r},e.readSPS=function(){var t,e,r,i=0,n=0,a=0,s=0,o=this.readUByte.bind(this),l=this.readBits.bind(this),u=this.readUEG.bind(this),h=this.readBoolean.bind(this),d=this.skipBits.bind(this),c=this.skipEG.bind(this),f=this.skipUEG.bind(this),g=this.skipScalingList.bind(this);o();var v=o();if(l(5),d(3),o(),f(),100===v||110===v||122===v||244===v||44===v||83===v||86===v||118===v||128===v){var m=u();if(3===m&&d(1),f(),f(),d(1),h())for(e=3!==m?8:12,r=0;r<e;r++)h()&&g(r<6?16:64)}f();var p=u();if(0===p)u();else if(1===p)for(d(1),c(),c(),t=u(),r=0;r<t;r++)c();f(),d(1);var y=u(),T=u(),E=l(1);0===E&&d(1),d(1),h()&&(i=u(),n=u(),a=u(),s=u());var S=[1,1];if(h()&&h())switch(o()){case 1:S=[1,1];break;case 2:S=[12,11];break;case 3:S=[10,11];break;case 4:S=[16,11];break;case 5:S=[40,33];break;case 6:S=[24,11];break;case 7:S=[20,11];break;case 8:S=[32,11];break;case 9:S=[80,33];break;case 10:S=[18,11];break;case 11:S=[15,11];break;case 12:S=[64,33];break;case 13:S=[160,99];break;case 14:S=[4,3];break;case 15:S=[3,2];break;case 16:S=[2,1];break;case 255:S=[o()<<8|o(),o()<<8|o()]}return{width:Math.ceil(16*(y+1)-2*i-2*n),height:(2-E)*(T+1)*16-(E?2:4)*(a+s),pixelRatio:S}},e.readSliceType=function(){return this.readUByte(),this.readUEG(),this.readUEG()},t}(),si=function(){function t(t,e,r){this.keyData=void 0,this.decrypter=void 0,this.keyData=r,this.decrypter=new Er(e,{removePKCS7Padding:!1})}var e=t.prototype;return e.decryptBuffer=function(t){return this.decrypter.decrypt(t,this.keyData.key.buffer,this.keyData.iv.buffer)},e.decryptAacSample=function(t,e,r){var i=this,n=t[e].unit;if(!(n.length<=16)){var a=n.subarray(16,n.length-n.length%16),s=a.buffer.slice(a.byteOffset,a.byteOffset+a.length);this.decryptBuffer(s).then(function(a){var s=new Uint8Array(a);n.set(s,16),i.decrypter.isSync()||i.decryptAacSamples(t,e+1,r)})}},e.decryptAacSamples=function(t,e,r){for(;;e++){if(e>=t.length)return void r();if(!(t[e].unit.length<32||(this.decryptAacSample(t,e,r),this.decrypter.isSync())))return}},e.getAvcEncryptedData=function(t){for(var e=16*Math.floor((t.length-48)/160)+16,r=new Int8Array(e),i=0,n=32;n<t.length-16;n+=160,i+=16)r.set(t.subarray(n,n+16),i);return r},e.getAvcDecryptedUnit=function(t,e){for(var r=new Uint8Array(e),i=0,n=32;n<t.length-16;n+=160,i+=16)t.set(r.subarray(i,i+16),n);return t},e.decryptAvcSample=function(t,e,r,i,n){var a=this,s=Pt(n.data),o=this.getAvcEncryptedData(s);this.decryptBuffer(o.buffer).then(function(o){n.data=a.getAvcDecryptedUnit(s,o),a.decrypter.isSync()||a.decryptAvcSamples(t,e,r+1,i)})},e.decryptAvcSamples=function(t,e,r,i){if(t instanceof Uint8Array)throw new Error("Cannot decrypt samples of type Uint8Array");for(;;e++,r=0){if(e>=t.length)return void i();for(var n=t[e].units;!(r>=n.length);r++){var a=n[r];if(!(a.data.length<=48||1!==a.type&&5!==a.type||(this.decryptAvcSample(t,e,r,i,a),this.decrypter.isSync())))return}}},t}(),oi=188,li=function(){function t(t,e,r){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._duration=0,this._pmtId=-1,this._avcTrack=void 0,this._audioTrack=void 0,this._id3Track=void 0,this._txtTrack=void 0,this.aacOverFlow=null,this.avcSample=null,this.remainderData=null,this.observer=t,this.config=e,this.typeSupported=r}t.probe=function(e){var r=t.syncOffset(e);return r>0&&b.warn("MPEG2-TS detected but first sync word found @ offset "+r),-1!==r},t.syncOffset=function(t){for(var e=t.length,r=Math.min(940,t.length-oi)+1,i=0;i<r;){for(var n=!1,a=-1,s=0,o=i;o<e;o+=oi){if(71!==t[o]){if(s)return-1;break}if(s++,-1===a&&0!==(a=o)&&(r=Math.min(a+18612,t.length-oi)+1),n||(n=0===hi(t,o)),n&&s>1&&(0===a&&s>2||o+oi>r))return a}i++}return-1},t.createTrack=function(t,e){return{container:"video"===t||"audio"===t?"video/mp2t":void 0,type:t,id:pt[t],pid:-1,inputTimeScale:9e4,sequenceNumber:0,samples:[],dropped:0,duration:"audio"===t?e:void 0}};var e=t.prototype;return e.resetInitSegment=function(e,r,i,n){this.pmtParsed=!1,this._pmtId=-1,this._avcTrack=t.createTrack("video"),this._audioTrack=t.createTrack("audio",n),this._id3Track=t.createTrack("id3"),this._txtTrack=t.createTrack("text"),this._audioTrack.segmentCodec="aac",this.aacOverFlow=null,this.avcSample=null,this.remainderData=null,this.audioCodec=r,this.videoCodec=i,this._duration=n},e.resetTimeStamp=function(){},e.resetContiguity=function(){var t=this._audioTrack,e=this._avcTrack,r=this._id3Track;t&&(t.pesData=null),e&&(e.pesData=null),r&&(r.pesData=null),this.aacOverFlow=null,this.avcSample=null,this.remainderData=null},e.demux=function(e,r,i,n){var a;void 0===i&&(i=!1),void 0===n&&(n=!1),i||(this.sampleAes=null);var s=this._avcTrack,o=this._audioTrack,l=this._id3Track,u=this._txtTrack,h=s.pid,d=s.pesData,c=o.pid,f=l.pid,g=o.pesData,v=l.pesData,m=null,p=this.pmtParsed,y=this._pmtId,L=e.length;if(this.remainderData&&(L=(e=It(this.remainderData,e)).length,this.remainderData=null),L<oi&&!n)return this.remainderData=e,{audioTrack:o,videoTrack:s,id3Track:l,textTrack:u};var R=Math.max(0,t.syncOffset(e));(L-=(L-R)%oi)<e.byteLength&&!n&&(this.remainderData=new Uint8Array(e.buffer,L,e.buffer.byteLength-L));for(var A=0,k=R;k<L;k+=oi)if(71===e[k]){var D=!!(64&e[k+1]),I=hi(e,k),w=void 0;if((48&e[k+3])>>4>1){if((w=k+5+e[k+4])===k+oi)continue}else w=k+4;switch(I){case h:D&&(d&&(a=fi(d))&&this.parseAVCPES(s,u,a,!1),d={data:[],size:0}),d&&(d.data.push(e.subarray(w,k+oi)),d.size+=k+oi-w);break;case c:if(D){if(g&&(a=fi(g)))switch(o.segmentCodec){case"aac":this.parseAACPES(o,a);break;case"mp3":this.parseMPEGPES(o,a)}g={data:[],size:0}}g&&(g.data.push(e.subarray(w,k+oi)),g.size+=k+oi-w);break;case f:D&&(v&&(a=fi(v))&&this.parseID3PES(l,a),v={data:[],size:0}),v&&(v.data.push(e.subarray(w,k+oi)),v.size+=k+oi-w);break;case 0:D&&(w+=e[w]+1),y=this._pmtId=di(e,w);break;case y:D&&(w+=e[w]+1);var C=ci(e,w,this.typeSupported,i);(h=C.avc)>0&&(s.pid=h),(c=C.audio)>0&&(o.pid=c,o.segmentCodec=C.segmentCodec),(f=C.id3)>0&&(l.pid=f),null===m||p||(b.warn("MPEG-TS PMT found at "+k+" after unknown PID '"+m+"'. Backtracking to sync byte @"+R+" to parse all TS packets."),m=null,k=R-188),p=this.pmtParsed=!0;break;case 17:case 8191:break;default:m=I}}else A++;if(A>0){var _=new Error("Found "+A+" TS packet/s that do not start with 0x47");this.observer.emit(T.ERROR,T.ERROR,{type:E.MEDIA_ERROR,details:S.FRAG_PARSING_ERROR,fatal:!1,error:_,reason:_.message})}s.pesData=d,o.pesData=g,l.pesData=v;var P={audioTrack:o,videoTrack:s,id3Track:l,textTrack:u};return n&&this.extractRemainingSamples(P),P},e.flush=function(){var t,e=this.remainderData;return this.remainderData=null,t=e?this.demux(e,-1,!1,!0):{videoTrack:this._avcTrack,audioTrack:this._audioTrack,id3Track:this._id3Track,textTrack:this._txtTrack},this.extractRemainingSamples(t),this.sampleAes?this.decrypt(t,this.sampleAes):t},e.extractRemainingSamples=function(t){var e,r=t.audioTrack,i=t.videoTrack,n=t.id3Track,a=t.textTrack,s=i.pesData,o=r.pesData,l=n.pesData;if(s&&(e=fi(s))?(this.parseAVCPES(i,a,e,!0),i.pesData=null):i.pesData=s,o&&(e=fi(o))){switch(r.segmentCodec){case"aac":this.parseAACPES(r,e);break;case"mp3":this.parseMPEGPES(r,e)}r.pesData=null}else null!=o&&o.size&&b.log("last AAC PES packet truncated,might overlap between fragments"),r.pesData=o;l&&(e=fi(l))?(this.parseID3PES(n,e),n.pesData=null):n.pesData=l},e.demuxSampleAes=function(t,e,r){var i=this.demux(t,r,!0,!this.config.progressive),n=this.sampleAes=new si(this.observer,this.config,e);return this.decrypt(i,n)},e.decrypt=function(t,e){return new Promise(function(r){var i=t.audioTrack,n=t.videoTrack;i.samples&&"aac"===i.segmentCodec?e.decryptAacSamples(i.samples,0,function(){n.samples?e.decryptAvcSamples(n.samples,0,0,function(){r(t)}):r(t)}):n.samples&&e.decryptAvcSamples(n.samples,0,0,function(){r(t)})})},e.destroy=function(){this._duration=0},e.parseAVCPES=function(t,e,r,i){var n,a=this,s=this.parseAVCNALu(t,r.data),o=this.avcSample,l=!1;r.data=null,o&&s.length&&!t.audFound&&(gi(o,t),o=this.avcSample=ui(!1,r.pts,r.dts,"")),s.forEach(function(i){var s;switch(i.type){case 1:var u=!1;n=!0;var h,d=i.data;if(l&&d.length>4){var c=new ai(d).readSliceType();2!==c&&4!==c&&7!==c&&9!==c||(u=!0)}u&&null!=(h=o)&&h.frame&&!o.key&&(gi(o,t),o=a.avcSample=null),o||(o=a.avcSample=ui(!0,r.pts,r.dts,"")),o.frame=!0,o.key=u;break;case 5:n=!0,null!=(s=o)&&s.frame&&!o.key&&(gi(o,t),o=a.avcSample=null),o||(o=a.avcSample=ui(!0,r.pts,r.dts,"")),o.key=!0,o.frame=!0;break;case 6:n=!0,_t(i.data,1,r.pts,e.samples);break;case 7:if(n=!0,l=!0,!t.sps){var f=i.data,g=new ai(f).readSPS();t.width=g.width,t.height=g.height,t.pixelRatio=g.pixelRatio,t.sps=[f],t.duration=a._duration;for(var v=f.subarray(1,4),m="avc1.",p=0;p<3;p++){var y=v[p].toString(16);y.length<2&&(y="0"+y),m+=y}t.codec=m}break;case 8:n=!0,t.pps||(t.pps=[i.data]);break;case 9:n=!1,t.audFound=!0,o&&gi(o,t),o=a.avcSample=ui(!1,r.pts,r.dts,"");break;case 12:n=!0;break;default:n=!1,o&&(o.debug+="unknown NAL "+i.type+" ")}o&&n&&o.units.push(i)}),i&&o&&(gi(o,t),this.avcSample=null)},e.getLastNalUnit=function(t){var e,r,i=this.avcSample;if(i&&0!==i.units.length||(i=t[t.length-1]),null!=(e=i)&&e.units){var n=i.units;r=n[n.length-1]}return r},e.parseAVCNALu=function(t,e){var r,i,n=e.byteLength,a=t.naluState||0,s=a,o=[],l=0,u=-1,h=0;for(-1===a&&(u=0,h=31&e[0],a=0,l=1);l<n;)if(r=e[l++],a)if(1!==a)if(r)if(1===r){if(u>=0){var d={data:e.subarray(u,l-a-1),type:h};o.push(d)}else{var c=this.getLastNalUnit(t.samples);if(c&&(s&&l<=4-s&&c.state&&(c.data=c.data.subarray(0,c.data.byteLength-s)),(i=l-a-1)>0)){var f=new Uint8Array(c.data.byteLength+i);f.set(c.data,0),f.set(e.subarray(0,i),c.data.byteLength),c.data=f,c.state=0}}l<n?(u=l,h=31&e[l],a=0):a=-1}else a=0;else a=3;else a=r?0:2;else a=r?0:1;if(u>=0&&a>=0){var g={data:e.subarray(u,n),type:h,state:a};o.push(g)}if(0===o.length){var v=this.getLastNalUnit(t.samples);if(v){var m=new Uint8Array(v.data.byteLength+e.byteLength);m.set(v.data,0),m.set(e,v.data.byteLength),v.data=m}}return t.naluState=a,o},e.parseAACPES=function(t,e){var r,i,n,a=0,s=this.aacOverFlow,o=e.data;if(s){this.aacOverFlow=null;var l=s.missing,u=s.sample.unit.byteLength;if(-1===l){var h=new Uint8Array(u+o.byteLength);h.set(s.sample.unit,0),h.set(o,u),o=h}else{var d=u-l;s.sample.unit.set(o.subarray(0,l),d),t.samples.push(s.sample),a=s.missing}}for(r=a,i=o.length;r<i-1&&!Kr(o,r);r++);if(r!==a){var c,f=r<i-1;c=f?"AAC PES did not start with ADTS header,offset:"+r:"No ADTS header found in AAC PES";var g=new Error(c);if(b.warn("parsing error: "+c),this.observer.emit(T.ERROR,T.ERROR,{type:E.MEDIA_ERROR,details:S.FRAG_PARSING_ERROR,fatal:!1,levelRetry:f,error:g,reason:c}),!f)return}if(Vr(t,this.observer,o,r,this.audioCodec),void 0!==e.pts)n=e.pts;else{if(!s)return void b.warn("[tsdemuxer]: AAC PES unknown PTS");var v=Yr(t.samplerate);n=s.sample.pts+v}for(var m,p=0;r<i;){if(r+=(m=Wr(t,o,r,n,p)).length,m.missing){this.aacOverFlow=m;break}for(p++;r<i-1&&!Kr(o,r);r++);}},e.parseMPEGPES=function(t,e){var r=e.data,i=r.length,n=0,a=0,s=e.pts;if(void 0!==s)for(;a<i;)if(ii(r,a)){var o=ti(t,r,a,s,n);if(!o)break;a+=o.length,n++}else a++;else b.warn("[tsdemuxer]: MPEG PES unknown PTS")},e.parseID3PES=function(t,e){if(void 0!==e.pts){var r=o({},e,{type:this._avcTrack?Te:ye,duration:Number.POSITIVE_INFINITY});t.samples.push(r)}else b.warn("[tsdemuxer]: ID3 PES unknown PTS")},t}();function ui(t,e,r,i){return{key:t,frame:!1,pts:e,dts:r,units:[],debug:i,length:0}}function hi(t,e){return((31&t[e+1])<<8)+t[e+2]}function di(t,e){return(31&t[e+10])<<8|t[e+11]}function ci(t,e,r,i){var n={audio:-1,avc:-1,id3:-1,segmentCodec:"aac"},a=e+3+((15&t[e+1])<<8|t[e+2])-4;for(e+=12+((15&t[e+10])<<8|t[e+11]);e<a;){var s=hi(t,e);switch(t[e]){case 207:if(!i){b.log("ADTS AAC with AES-128-CBC frame encryption found in unencrypted stream");break}case 15:-1===n.audio&&(n.audio=s);break;case 21:-1===n.id3&&(n.id3=s);break;case 219:if(!i){b.log("H.264 with AES-128-CBC slice encryption found in unencrypted stream");break}case 27:-1===n.avc&&(n.avc=s);break;case 3:case 4:!0!==r.mpeg&&!0!==r.mp3?b.log("MPEG audio found, not supported in this browser"):-1===n.audio&&(n.audio=s,n.segmentCodec="mp3");break;case 36:b.warn("Unsupported HEVC stream type found")}e+=5+((15&t[e+3])<<8|t[e+4])}return n}function fi(t){var e,r,i,n,a,s=0,o=t.data;if(!t||0===t.size)return null;for(;o[0].length<19&&o.length>1;){var l=new Uint8Array(o[0].length+o[1].length);l.set(o[0]),l.set(o[1],o[0].length),o[0]=l,o.splice(1,1)}if(1===((e=o[0])[0]<<16)+(e[1]<<8)+e[2]){if((r=(e[4]<<8)+e[5])&&r>t.size-6)return null;var u=e[7];192&u&&(n=536870912*(14&e[9])+4194304*(255&e[10])+16384*(254&e[11])+128*(255&e[12])+(254&e[13])/2,64&u?n-(a=536870912*(14&e[14])+4194304*(255&e[15])+16384*(254&e[16])+128*(255&e[17])+(254&e[18])/2)>54e5&&(b.warn(Math.round((n-a)/9e4)+"s delta between PTS and DTS, align them"),n=a):a=n);var h=(i=e[8])+9;if(t.size<=h)return null;t.size-=h;for(var d=new Uint8Array(t.size),c=0,f=o.length;c<f;c++){var g=(e=o[c]).byteLength;if(h){if(h>g){h-=g;continue}e=e.subarray(h),g-=h,h=0}d.set(e,s),s+=g}return r&&(r-=i+3),{data:d,pts:n,dts:a,len:r}}return null}function gi(t,e){if(t.units.length&&t.frame){if(void 0===t.pts){var r=e.samples,i=r.length;if(!i)return void e.dropped++;var n=r[i-1];t.pts=n.pts,t.dts=n.dts}e.samples.push(t)}t.debug.length&&b.log(t.pts+"/"+t.dts+":"+t.debug)}var vi=function(t){function e(){return t.apply(this,arguments)||this}l(e,t);var r=e.prototype;return r.resetInitSegment=function(e,r,i,n){t.prototype.resetInitSegment.call(this,e,r,i,n),this._audioTrack={container:"audio/mpeg",type:"audio",id:2,pid:-1,sequenceNumber:0,segmentCodec:"mp3",samples:[],manifestCodec:r,duration:n,inputTimeScale:9e4,dropped:0}},e.probe=function(t){if(!t)return!1;for(var e=(rt(t,0)||[]).length,r=t.length;e<r;e++)if(ni(t,e))return b.log("MPEG Audio sync word found !"),!0;return!1},r.canParse=function(t,e){return function(t,e){return ri(t,e)&&4<=t.length-e}(t,e)},r.appendFrame=function(t,e,r){if(null!==this.basePTS)return ti(t,e,r,this.basePTS,this.frameIndex)},e}(Or),mi=function(){function t(){}return t.getSilentFrame=function(t,e){if("mp4a.40.2"===t){if(1===e)return new Uint8Array([0,200,0,128,35,128]);if(2===e)return new Uint8Array([33,0,73,144,2,25,0,35,128]);if(3===e)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,142]);if(4===e)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,128,44,128,8,2,56]);if(5===e)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,130,48,4,153,0,33,144,2,56]);if(6===e)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===e)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===e)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]);if(3===e)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])}},t}(),pi=Math.pow(2,32)-1,yi=function(){function t(){}return t.init=function(){var e;for(e in t.types={avc1:[],avcC:[],btrt:[],dinf:[],dref:[],esds:[],ftyp:[],hdlr:[],mdat:[],mdhd:[],mdia:[],mfhd:[],minf:[],moof:[],moov:[],mp4a:[],".mp3":[],mvex:[],mvhd:[],pasp:[],sdtp:[],stbl:[],stco:[],stsc:[],stsd:[],stsz:[],stts:[],tfdt:[],tfhd:[],traf:[],trak:[],trun:[],trex:[],tkhd:[],vmhd:[],smhd:[]},t.types)t.types.hasOwnProperty(e)&&(t.types[e]=[e.charCodeAt(0),e.charCodeAt(1),e.charCodeAt(2),e.charCodeAt(3)]);var r=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]),i=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]);t.HDLR_TYPES={video:r,audio:i};var n=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,12,117,114,108,32,0,0,0,1]),a=new Uint8Array([0,0,0,0,0,0,0,0]);t.STTS=t.STSC=t.STCO=a,t.STSZ=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0]),t.VMHD=new Uint8Array([0,0,0,1,0,0,0,0,0,0,0,0]),t.SMHD=new Uint8Array([0,0,0,0,0,0,0,0]),t.STSD=new Uint8Array([0,0,0,0,0,0,0,1]);var s=new Uint8Array([105,115,111,109]),o=new Uint8Array([97,118,99,49]),l=new Uint8Array([0,0,0,1]);t.FTYP=t.box(t.types.ftyp,s,l,s,o),t.DINF=t.box(t.types.dinf,t.box(t.types.dref,n))},t.box=function(t){for(var e=8,r=arguments.length,i=new Array(r>1?r-1:0),n=1;n<r;n++)i[n-1]=arguments[n];for(var a=i.length,s=a;a--;)e+=i[a].byteLength;var o=new Uint8Array(e);for(o[0]=e>>24&255,o[1]=e>>16&255,o[2]=e>>8&255,o[3]=255&e,o.set(t,4),a=0,e=8;a<s;a++)o.set(i[a],e),e+=i[a].byteLength;return o},t.hdlr=function(e){return t.box(t.types.hdlr,t.HDLR_TYPES[e])},t.mdat=function(e){return t.box(t.types.mdat,e)},t.mdhd=function(e,r){r*=e;var i=Math.floor(r/(pi+1)),n=Math.floor(r%(pi+1));return t.box(t.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,i>>24,i>>16&255,i>>8&255,255&i,n>>24,n>>16&255,n>>8&255,255&n,85,196,0,0]))},t.mdia=function(e){return t.box(t.types.mdia,t.mdhd(e.timescale,e.duration),t.hdlr(e.type),t.minf(e))},t.mfhd=function(e){return t.box(t.types.mfhd,new Uint8Array([0,0,0,0,e>>24,e>>16&255,e>>8&255,255&e]))},t.minf=function(e){return"audio"===e.type?t.box(t.types.minf,t.box(t.types.smhd,t.SMHD),t.DINF,t.stbl(e)):t.box(t.types.minf,t.box(t.types.vmhd,t.VMHD),t.DINF,t.stbl(e))},t.moof=function(e,r,i){return t.box(t.types.moof,t.mfhd(e),t.traf(i,r))},t.moov=function(e){for(var r=e.length,i=[];r--;)i[r]=t.trak(e[r]);return t.box.apply(null,[t.types.moov,t.mvhd(e[0].timescale,e[0].duration)].concat(i).concat(t.mvex(e)))},t.mvex=function(e){for(var r=e.length,i=[];r--;)i[r]=t.trex(e[r]);return t.box.apply(null,[t.types.mvex].concat(i))},t.mvhd=function(e,r){r*=e;var i=Math.floor(r/(pi+1)),n=Math.floor(r%(pi+1)),a=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,i>>24,i>>16&255,i>>8&255,255&i,n>>24,n>>16&255,n>>8&255,255&n,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 t.box(t.types.mvhd,a)},t.sdtp=function(e){var r,i,n=e.samples||[],a=new Uint8Array(4+n.length);for(r=0;r<n.length;r++)i=n[r].flags,a[r+4]=i.dependsOn<<4|i.isDependedOn<<2|i.hasRedundancy;return t.box(t.types.sdtp,a)},t.stbl=function(e){return t.box(t.types.stbl,t.stsd(e),t.box(t.types.stts,t.STTS),t.box(t.types.stsc,t.STSC),t.box(t.types.stsz,t.STSZ),t.box(t.types.stco,t.STCO))},t.avc1=function(e){var r,i,n,a=[],s=[];for(r=0;r<e.sps.length;r++)n=(i=e.sps[r]).byteLength,a.push(n>>>8&255),a.push(255&n),a=a.concat(Array.prototype.slice.call(i));for(r=0;r<e.pps.length;r++)n=(i=e.pps[r]).byteLength,s.push(n>>>8&255),s.push(255&n),s=s.concat(Array.prototype.slice.call(i));var o=t.box(t.types.avcC,new Uint8Array([1,a[3],a[4],a[5],255,224|e.sps.length].concat(a).concat([e.pps.length]).concat(s))),l=e.width,u=e.height,h=e.pixelRatio[0],d=e.pixelRatio[1];return t.box(t.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,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]),o,t.box(t.types.btrt,new Uint8Array([0,28,156,128,0,45,198,192,0,45,198,192])),t.box(t.types.pasp,new Uint8Array([h>>24,h>>16&255,h>>8&255,255&h,d>>24,d>>16&255,d>>8&255,255&d])))},t.esds=function(t){var e=t.config.length;return new Uint8Array([0,0,0,0,3,23+e,0,1,0,4,15+e,64,21,0,0,0,0,0,0,0,0,0,0,0,5].concat([e]).concat(t.config).concat([6,1,2]))},t.mp4a=function(e){var r=e.samplerate;return t.box(t.types.mp4a,new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,e.channelCount,0,16,0,0,0,0,r>>8&255,255&r,0,0]),t.box(t.types.esds,t.esds(e)))},t.mp3=function(e){var r=e.samplerate;return t.box(t.types[".mp3"],new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,e.channelCount,0,16,0,0,0,0,r>>8&255,255&r,0,0]))},t.stsd=function(e){return"audio"===e.type?"mp3"===e.segmentCodec&&"mp3"===e.codec?t.box(t.types.stsd,t.STSD,t.mp3(e)):t.box(t.types.stsd,t.STSD,t.mp4a(e)):t.box(t.types.stsd,t.STSD,t.avc1(e))},t.tkhd=function(e){var r=e.id,i=e.duration*e.timescale,n=e.width,a=e.height,s=Math.floor(i/(pi+1)),o=Math.floor(i%(pi+1));return t.box(t.types.tkhd,new Uint8Array([1,0,0,7,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3,r>>24&255,r>>16&255,r>>8&255,255&r,0,0,0,0,s>>24,s>>16&255,s>>8&255,255&s,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,n>>8&255,255&n,0,0,a>>8&255,255&a,0,0]))},t.traf=function(e,r){var i=t.sdtp(e),n=e.id,a=Math.floor(r/(pi+1)),s=Math.floor(r%(pi+1));return t.box(t.types.traf,t.box(t.types.tfhd,new Uint8Array([0,0,0,0,n>>24,n>>16&255,n>>8&255,255&n])),t.box(t.types.tfdt,new Uint8Array([1,0,0,0,a>>24,a>>16&255,a>>8&255,255&a,s>>24,s>>16&255,s>>8&255,255&s])),t.trun(e,i.length+16+20+8+16+8+8),i)},t.trak=function(e){return e.duration=e.duration||4294967295,t.box(t.types.trak,t.tkhd(e),t.mdia(e))},t.trex=function(e){var r=e.id;return t.box(t.types.trex,new Uint8Array([0,0,0,0,r>>24,r>>16&255,r>>8&255,255&r,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,1]))},t.trun=function(e,r){var i,n,a,s,o,l,u=e.samples||[],h=u.length,d=12+16*h,c=new Uint8Array(d);for(r+=8+d,c.set(["video"===e.type?1:0,0,15,1,h>>>24&255,h>>>16&255,h>>>8&255,255&h,r>>>24&255,r>>>16&255,r>>>8&255,255&r],0),i=0;i<h;i++)a=(n=u[i]).duration,s=n.size,o=n.flags,l=n.cts,c.set([a>>>24&255,a>>>16&255,a>>>8&255,255&a,s>>>24&255,s>>>16&255,s>>>8&255,255&s,o.isLeading<<2|o.dependsOn,o.isDependedOn<<6|o.hasRedundancy<<4|o.paddingValue<<1|o.isNonSync,61440&o.degradPrio,15&o.degradPrio,l>>>24&255,l>>>16&255,l>>>8&255,255&l],12+16*i);return t.box(t.types.trun,c)},t.initSegment=function(e){t.types||t.init();var r=t.moov(e),i=new Uint8Array(t.FTYP.byteLength+r.byteLength);return i.set(t.FTYP),i.set(r,t.FTYP.byteLength),i},t}();function Ti(t,e,r,i){void 0===r&&(r=1),void 0===i&&(i=!1);var n=t*e*r;return i?Math.round(n):n}function Ei(t,e){return void 0===e&&(e=!1),Ti(t,1e3,1/9e4,e)}yi.types=void 0,yi.HDLR_TYPES=void 0,yi.STTS=void 0,yi.STSC=void 0,yi.STCO=void 0,yi.STSZ=void 0,yi.VMHD=void 0,yi.SMHD=void 0,yi.STSD=void 0,yi.FTYP=void 0,yi.DINF=void 0;var Si=null,Li=null,Ri=function(){function t(t,e,r,i){if(this.observer=void 0,this.config=void 0,this.typeSupported=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.observer=t,this.config=e,this.typeSupported=r,this.ISGenerated=!1,null===Si){var n=(navigator.userAgent||"").match(/Chrome\/(\d+)/i);Si=n?parseInt(n[1]):0}if(null===Li){var a=navigator.userAgent.match(/Safari\/(\d+)/i);Li=a?parseInt(a[1]):0}}var e=t.prototype;return e.destroy=function(){},e.resetTimeStamp=function(t){b.log("[mp4-remuxer]: initPTS & initDTS reset"),this._initPTS=this._initDTS=t},e.resetNextTimestamp=function(){b.log("[mp4-remuxer]: reset next timestamp"),this.isVideoContiguous=!1,this.isAudioContiguous=!1},e.resetInitSegment=function(){b.log("[mp4-remuxer]: ISGenerated flag reset"),this.ISGenerated=!1},e.getVideoStartPts=function(t){var e=!1,r=t.reduce(function(t,r){var i=r.pts-t;return i<-4294967296?(e=!0,Ai(t,r.pts)):i>0?t:r.pts},t[0].pts);return e&&b.debug("PTS rollover detected"),r},e.remux=function(t,e,r,i,n,a,s,o){var l,u,h,d,c,f,g=n,v=n,m=t.pid>-1,p=e.pid>-1,y=e.samples.length,T=t.samples.length>0,E=s&&y>0||y>1;if((!m||T)&&(!p||E)||this.ISGenerated||s){this.ISGenerated||(h=this.generateIS(t,e,n,a));var S,L=this.isVideoContiguous,R=-1;if(E&&(R=function(t){for(var e=0;e<t.length;e++)if(t[e].key)return e;return-1}(e.samples),!L&&this.config.forceKeyFrameOnDiscontinuity))if(f=!0,R>0){b.warn("[mp4-remuxer]: Dropped "+R+" out of "+y+" video samples due to a missing keyframe");var A=this.getVideoStartPts(e.samples);e.samples=e.samples.slice(R),e.dropped+=R,S=v+=(e.samples[0].pts-A)/e.inputTimeScale}else-1===R&&(b.warn("[mp4-remuxer]: No keyframe found out of "+y+" video samples"),f=!1);if(this.ISGenerated){if(T&&E){var k=this.getVideoStartPts(e.samples),D=(Ai(t.samples[0].pts,k)-k)/e.inputTimeScale;g+=Math.max(0,D),v+=Math.max(0,-D)}if(T){if(t.samplerate||(b.warn("[mp4-remuxer]: regenerate InitSegment as audio detected"),h=this.generateIS(t,e,n,a)),u=this.remuxAudio(t,g,this.isAudioContiguous,a,p||E||o===ue?v:void 0),E){var I=u?u.endPTS-u.startPTS:0;e.inputTimeScale||(b.warn("[mp4-remuxer]: regenerate InitSegment as video detected"),h=this.generateIS(t,e,n,a)),l=this.remuxVideo(e,v,L,I)}}else E&&(l=this.remuxVideo(e,v,L,0));l&&(l.firstKeyFrame=R,l.independent=-1!==R,l.firstKeyFramePTS=S)}}return this.ISGenerated&&this._initPTS&&this._initDTS&&(r.samples.length&&(c=ki(r,n,this._initPTS,this._initDTS)),i.samples.length&&(d=bi(i,n,this._initPTS))),{audio:u,video:l,initSegment:h,independent:f,text:d,id3:c}},e.generateIS=function(t,e,r,i){var n,a,s,o=t.samples,l=e.samples,u=this.typeSupported,h={},d=this._initPTS,c=!d||i,f="audio/mp4";if(c&&(n=a=1/0),t.config&&o.length&&(t.timescale=t.samplerate,"mp3"===t.segmentCodec&&(u.mpeg?(f="audio/mpeg",t.codec=""):u.mp3&&(t.codec="mp3")),h.audio={id:"audio",container:f,codec:t.codec,initSegment:"mp3"===t.segmentCodec&&u.mpeg?new Uint8Array(0):yi.initSegment([t]),metadata:{channelCount:t.channelCount}},c&&(s=t.inputTimeScale,d&&s===d.timescale?c=!1:n=a=o[0].pts-Math.round(s*r))),e.sps&&e.pps&&l.length&&(e.timescale=e.inputTimeScale,h.video={id:"main",container:"video/mp4",codec:e.codec,initSegment:yi.initSegment([e]),metadata:{width:e.width,height:e.height}},c))if(s=e.inputTimeScale,d&&s===d.timescale)c=!1;else{var g=this.getVideoStartPts(l),v=Math.round(s*r);a=Math.min(a,Ai(l[0].dts,g)-v),n=Math.min(n,g-v)}if(Object.keys(h).length)return this.ISGenerated=!0,c?(this._initPTS={baseTime:n,timescale:s},this._initDTS={baseTime:a,timescale:s}):n=s=void 0,{tracks:h,initPTS:n,timescale:s}},e.remuxVideo=function(t,e,r,i){var n,a,s=t.inputTimeScale,l=t.samples,u=[],h=l.length,d=this._initPTS,c=this.nextAvcDts,f=8,g=this.videoSampleDuration,v=Number.POSITIVE_INFINITY,m=Number.NEGATIVE_INFINITY,p=!1;r&&null!==c||(c=e*s-(l[0].pts-Ai(l[0].dts,l[0].pts)));for(var y=d.baseTime*s/d.timescale,L=0;L<h;L++){var R=l[L];R.pts=Ai(R.pts-y,c),R.dts=Ai(R.dts-y,c),R.dts<l[L>0?L-1:L].dts&&(p=!0)}p&&l.sort(function(t,e){var r=t.dts-e.dts,i=t.pts-e.pts;return r||i}),n=l[0].dts;var A=l[l.length-1].dts-n,k=A?Math.round(A/(h-1)):g||t.inputTimeScale/30;if(r){var D=n-c,I=D>k,w=D<-1;if((I||w)&&(I?b.warn("AVC: "+Ei(D,!0)+" ms ("+D+"dts) hole between fragments detected, filling it"):b.warn("AVC: "+Ei(-D,!0)+" ms ("+D+"dts) overlapping between fragments detected"),!w||c>=l[0].pts)){n=c;var C=l[0].pts-D;l[0].dts=n,l[0].pts=C,b.log("Video: First PTS/DTS adjusted: "+Ei(C,!0)+"/"+Ei(n,!0)+", delta: "+Ei(D,!0)+" ms")}}n=Math.max(0,n);for(var _=0,P=0,x=0;x<h;x++){for(var F=l[x],M=F.units,O=M.length,N=0,U=0;U<O;U++)N+=M[U].data.length;P+=N,_+=O,F.length=N,F.dts=Math.max(F.dts,n),v=Math.min(F.pts,v),m=Math.max(F.pts,m)}a=l[h-1].dts;var B,G=P+4*_+8;try{B=new Uint8Array(G)}catch(t){return void this.observer.emit(T.ERROR,T.ERROR,{type:E.MUX_ERROR,details:S.REMUX_ALLOC_ERROR,fatal:!1,error:t,bytes:G,reason:"fail allocating video mdat "+G})}var K=new DataView(B.buffer);K.setUint32(0,G),B.set(yi.types.mdat,4);for(var H=!1,V=Number.POSITIVE_INFINITY,Y=Number.POSITIVE_INFINITY,W=Number.NEGATIVE_INFINITY,j=Number.NEGATIVE_INFINITY,q=0;q<h;q++){for(var X=l[q],z=X.units,Q=0,$=0,J=z.length;$<J;$++){var Z=z[$],tt=Z.data,et=Z.data.byteLength;K.setUint32(f,et),f+=4,B.set(tt,f),f+=et,Q+=4+et}var rt=void 0;if(q<h-1)g=l[q+1].dts-X.dts,rt=l[q+1].pts-X.pts;else{var it=this.config,nt=q>0?X.dts-l[q-1].dts:k;if(rt=q>0?X.pts-l[q-1].pts:k,it.stretchShortVideoTrack&&null!==this.nextAudioPts){var at=Math.floor(it.maxBufferHole*s),st=(i?v+i*s:this.nextAudioPts)-X.pts;st>at?((g=st-nt)<0?g=nt:H=!0,b.log("[mp4-remuxer]: It is approximately "+st/90+" ms to the next segment; using duration "+g/90+" ms for the last video frame.")):g=nt}else g=nt}var ot=Math.round(X.pts-X.dts);V=Math.min(V,g),W=Math.max(W,g),Y=Math.min(Y,rt),j=Math.max(j,rt),u.push(new Ii(X.key,g,Q,ot))}if(u.length)if(Si){if(Si<70){var lt=u[0].flags;lt.dependsOn=2,lt.isNonSync=0}}else if(Li&&j-Y<W-V&&k/W<.025&&0===u[0].cts){b.warn("Found irregular gaps in sample duration. Using PTS instead of DTS to determine MP4 sample duration.");for(var ut=n,ht=0,dt=u.length;ht<dt;ht++){var ct=ut+u[ht].duration,ft=ut+u[ht].cts;if(ht<dt-1){var gt=ct+u[ht+1].cts;u[ht].duration=gt-ft}else u[ht].duration=ht?u[ht-1].duration:k;u[ht].cts=0,ut=ct}}g=H||!g?k:g,this.nextAvcDts=c=a+g,this.videoSampleDuration=g,this.isVideoContiguous=!0;var vt={data1:yi.moof(t.sequenceNumber++,n,o({},t,{samples:u})),data2:B,startPTS:v/s,endPTS:(m+g)/s,startDTS:n/s,endDTS:c/s,type:"video",hasAudio:!1,hasVideo:!0,nb:u.length,dropped:t.dropped};return t.samples=[],t.dropped=0,vt},e.remuxAudio=function(t,e,r,i,n){var a=t.inputTimeScale,s=a/(t.samplerate?t.samplerate:a),l="aac"===t.segmentCodec?1024:1152,u=l*s,h=this._initPTS,d="mp3"===t.segmentCodec&&this.typeSupported.mpeg,c=[],f=void 0!==n,g=t.samples,v=d?0:8,m=this.nextAudioPts||-1,p=e*a,y=h.baseTime*a/h.timescale;if(this.isAudioContiguous=r=r||g.length&&m>0&&(i&&Math.abs(p-m)<9e3||Math.abs(Ai(g[0].pts-y,p)-m)<20*u),g.forEach(function(t){t.pts=Ai(t.pts-y,p)}),!r||m<0){if(g=g.filter(function(t){return t.pts>=0}),!g.length)return;m=0===n?0:i&&!f?Math.max(0,p):g[0].pts}if("aac"===t.segmentCodec)for(var L=this.config.maxAudioFramesDrift,R=0,A=m;R<g.length;R++){var k=g[R],D=k.pts,I=D-A,w=Math.abs(1e3*I/a);if(I<=-L*u&&f)0===R&&(b.warn("Audio frame @ "+(D/a).toFixed(3)+"s overlaps nextAudioPts by "+Math.round(1e3*I/a)+" ms."),this.nextAudioPts=m=A=D);else if(I>=L*u&&w<1e4&&f){var C=Math.round(I/u);(A=D-C*u)<0&&(C--,A+=u),0===R&&(this.nextAudioPts=m=A),b.warn("[mp4-remuxer]: Injecting "+C+" audio frame @ "+(A/a).toFixed(3)+"s due to "+Math.round(1e3*I/a)+" ms gap.");for(var _=0;_<C;_++){var P=Math.max(A,0),x=mi.getSilentFrame(t.manifestCodec||t.codec,t.channelCount);x||(b.log("[mp4-remuxer]: Unable to get silent frame for given audio codec; duplicating last frame instead."),x=k.unit.subarray()),g.splice(R,0,{unit:x,pts:P}),A+=u,R++}}k.pts=A,A+=u}for(var F,M=null,O=null,N=0,U=g.length;U--;)N+=g[U].unit.byteLength;for(var B=0,G=g.length;B<G;B++){var K=g[B],H=K.unit,V=K.pts;if(null!==O)c[B-1].duration=Math.round((V-O)/s);else{if(r&&"aac"===t.segmentCodec&&(V=m),M=V,!(N>0))return;N+=v;try{F=new Uint8Array(N)}catch(t){return void this.observer.emit(T.ERROR,T.ERROR,{type:E.MUX_ERROR,details:S.REMUX_ALLOC_ERROR,fatal:!1,error:t,bytes:N,reason:"fail allocating audio mdat "+N})}d||(new DataView(F.buffer).setUint32(0,N),F.set(yi.types.mdat,4))}F.set(H,v);var Y=H.byteLength;v+=Y,c.push(new Ii(!0,l,Y,0)),O=V}var W=c.length;if(W){var j=c[c.length-1];this.nextAudioPts=m=O+s*j.duration;var q=d?new Uint8Array(0):yi.moof(t.sequenceNumber++,M/s,o({},t,{samples:c}));t.samples=[];var X=M/a,z=m/a,Q={data1:q,data2:F,startPTS:X,endPTS:z,startDTS:X,endDTS:z,type:"audio",hasAudio:!0,hasVideo:!1,nb:W};return this.isAudioContiguous=!0,Q}},e.remuxEmptyAudio=function(t,e,r,i){var n=t.inputTimeScale,a=n/(t.samplerate?t.samplerate:n),s=this.nextAudioPts,o=this._initDTS,l=9e4*o.baseTime/o.timescale,u=(null!==s?s:i.startDTS*n)+l,h=i.endDTS*n+l,d=1024*a,c=Math.ceil((h-u)/d),f=mi.getSilentFrame(t.manifestCodec||t.codec,t.channelCount);if(b.warn("[mp4-remuxer]: remux empty Audio"),f){for(var g=[],v=0;v<c;v++){var m=u+v*d;g.push({unit:f,pts:m,dts:m})}return t.samples=g,this.remuxAudio(t,e,r,!1)}b.trace("[mp4-remuxer]: Unable to remuxEmptyAudio since we were unable to get a silent frame for given audio codec")},t}();function Ai(t,e){var r;if(null===e)return t;for(r=e<t?-8589934592:8589934592;Math.abs(t-e)>4294967296;)t+=r;return t}function ki(t,e,r,i){var n=t.samples.length;if(n){for(var a=t.inputTimeScale,s=0;s<n;s++){var o=t.samples[s];o.pts=Ai(o.pts-r.baseTime*a/r.timescale,e*a)/a,o.dts=Ai(o.dts-i.baseTime*a/i.timescale,e*a)/a}var l=t.samples;return t.samples=[],{samples:l}}}function bi(t,e,r){var i=t.samples.length;if(i){for(var n=t.inputTimeScale,a=0;a<i;a++){var s=t.samples[a];s.pts=Ai(s.pts-r.baseTime*n/r.timescale,e*n)/n}t.samples.sort(function(t,e){return t.pts-e.pts});var o=t.samples;return t.samples=[],{samples:o}}}var Di,Ii=function(t,e,r,i){this.size=void 0,this.duration=void 0,this.cts=void 0,this.flags=void 0,this.duration=e,this.size=r,this.cts=i,this.flags=new wi(t)},wi=function(t){this.isLeading=0,this.isDependedOn=0,this.hasRedundancy=0,this.degradPrio=0,this.dependsOn=1,this.isNonSync=1,this.dependsOn=t?2:1,this.isNonSync=t?0:1},Ci=function(){function t(){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}var e=t.prototype;return e.destroy=function(){},e.resetTimeStamp=function(t){this.initPTS=t,this.lastEndTime=null},e.resetNextTimestamp=function(){this.lastEndTime=null},e.resetInitSegment=function(t,e,r,i){this.audioCodec=e,this.videoCodec=r,this.generateInitSegment(function(t,e){if(!t||!e)return t;var r=e.keyId;return r&&e.isCommonEncryption&&Rt(t,["moov","trak"]).forEach(function(t){var e=Rt(t,["mdia","minf","stbl","stsd"])[0].subarray(8),i=Rt(e,["enca"]),n=i.length>0;n||(i=Rt(e,["encv"])),i.forEach(function(t){Rt(n?t.subarray(28):t.subarray(78),["sinf"]).forEach(function(t){var e=bt(t);if(e){var i=e.subarray(8,24);i.some(function(t){return 0!==t})||(b.log("[eme] Patching keyId in 'enc"+(n?"a":"v")+">sinf>>tenc' box: "+gt(i)+" -> "+gt(r)),e.set(r,8))}})})}),t}(t,i)),this.emitInitSegment=!0},e.generateInitSegment=function(t){var e=this.audioCodec,r=this.videoCodec;if(null==t||!t.byteLength)return this.initTracks=void 0,void(this.initData=void 0);var i=this.initData=kt(t);e||(e=_i(i.audio,x)),r||(r=_i(i.video,F));var n={};i.audio&&i.video?n.audiovideo={container:"video/mp4",codec:e+","+r,initSegment:t,id:"main"}:i.audio?n.audio={container:"audio/mp4",codec:e,initSegment:t,id:"audio"}:i.video?n.video={container:"video/mp4",codec:r,initSegment:t,id:"main"}:b.warn("[passthrough-remuxer.ts]: initSegment does not contain moov or trak boxes."),this.initTracks=n},e.remux=function(t,e,r,i,n,a){var s,o,l=this.initPTS,u=this.lastEndTime,h={audio:void 0,video:void 0,text:i,id3:r,initSegment:void 0};y(u)||(u=this.lastEndTime=n||0);var d=e.samples;if(null==d||!d.length)return h;var c={initPTS:void 0,timescale:1},f=this.initData;if(null!=(s=f)&&s.length||(this.generateInitSegment(d),f=this.initData),null==(o=f)||!o.length)return b.warn("[passthrough-remuxer.ts]: Failed to generate initSegment."),h;this.emitInitSegment&&(c.tracks=this.initTracks,this.emitInitSegment=!1);var g=function(t,e){for(var r=0,i=0,n=0,a=Rt(t,["moof","traf"]),s=0;s<a.length;s++){var o=a[s],l=Rt(o,["tfhd"])[0],u=e[Et(l,4)];if(u){var h=u.default,d=Et(l,0)|(null==h?void 0:h.flags),c=null==h?void 0:h.duration;8&d&&(c=Et(l,2&d?12:8));for(var f=u.timescale||9e4,g=Rt(o,["trun"]),v=0;v<g.length;v++)!(r=Dt(g[v]))&&c&&(r=c*Et(g[v],4)),u.type===F?i+=r/f:u.type===x&&(n+=r/f)}}if(0===i&&0===n){for(var m=0,p=Rt(t,["sidx"]),y=0;y<p.length;y++){var T=At(p[y]);null!=T&&T.references&&(m+=T.references.reduce(function(t,e){return t+e.info.duration||0},0))}return m}return i||n}(d,f),v=function(t,e){return Rt(e,["moof","traf"]).reduce(function(e,r){var i=Rt(r,["tfdt"])[0],n=i[0],a=Rt(r,["tfhd"]).reduce(function(e,r){var a=Et(r,4),s=t[a];if(s){var o=Et(i,4);if(1===n){if(o===vt)return b.warn("[mp4-demuxer]: Ignoring assumed invalid signed 64-bit track fragment decode time"),e;o*=vt+1,o+=Et(i,8)}var l=o/(s.timescale||9e4);if(isFinite(l)&&(null===e||l<e))return l}return e},null);return null!==a&&isFinite(a)&&(null===e||a<e)?a:e},null)}(f,d),m=null===v?n:v;(function(t,e,r,i){if(null===t)return!0;var n=Math.max(i,1),a=e-t.baseTime/t.timescale;return Math.abs(a-r)>n}(l,m,n,g)||c.timescale!==l.timescale&&a)&&(c.initPTS=m-n,l&&1===l.timescale&&b.warn("Adjusting initPTS by "+(c.initPTS-l.baseTime)),this.initPTS=l={baseTime:c.initPTS,timescale:1});var p=t?m-l.baseTime/l.timescale:u,T=p+g;!function(t,e,r){Rt(e,["moof","traf"]).forEach(function(e){Rt(e,["tfhd"]).forEach(function(i){var n=Et(i,4),a=t[n];if(a){var s=a.timescale||9e4;Rt(e,["tfdt"]).forEach(function(t){var e=t[0],i=Et(t,4);if(0===e)i-=r*s,Lt(t,4,i=Math.max(i,0));else{i*=Math.pow(2,32),i+=Et(t,8),i-=r*s,i=Math.max(i,0);var n=Math.floor(i/(vt+1)),a=Math.floor(i%(vt+1));Lt(t,4,n),Lt(t,8,a)}})}})})}(f,d,l.baseTime/l.timescale),g>0?this.lastEndTime=T:(b.warn("Duration parsed from mp4 should be greater than zero"),this.resetNextTimestamp());var E=!!f.audio,S=!!f.video,L="";E&&(L+="audio"),S&&(L+="video");var R={data1:d,startPTS:p,startDTS:p,endPTS:T,endDTS:T,type:L,hasAudio:E,hasVideo:S,nb:1,dropped:0};return h.audio="audio"===R.type?R:void 0,h.video="audio"!==R.type?R:void 0,h.initSegment=c,h.id3=ki(r,n,l,l),i.samples.length&&(h.text=bi(i,n,l)),h},t}();function _i(t,e){var r=null==t?void 0:t.codec;return r&&r.length>4?r:"hvc1"===r||"hev1"===r?"hvc1.1.6.L120.90":"av01"===r?"av01.0.04M.08":"avc1"===r||e===F?"avc1.42e01e":"mp4a.40.5"}try{Di=self.performance.now.bind(self.performance)}catch(t){b.debug("Unable to use Performance API on this environment"),Di="undefined"!=typeof self&&self.Date.now}var Pi=[{demux:Xr,remux:Ci},{demux:li,remux:Ri},{demux:jr,remux:Ri},{demux:vi,remux:Ri}],xi=function(){function t(t,e,r,i,n){this.async=!1,this.observer=void 0,this.typeSupported=void 0,this.config=void 0,this.vendor=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=t,this.typeSupported=e,this.config=r,this.vendor=i,this.id=n}var e=t.prototype;return e.configure=function(t){this.transmuxConfig=t,this.decrypter&&this.decrypter.reset()},e.push=function(t,e,r,i){var n=this,a=r.transmuxing;a.executeStart=Di();var s=new Uint8Array(t),o=this.currentTransmuxState,l=this.transmuxConfig;i&&(this.currentTransmuxState=i);var u=i||o,h=u.contiguous,d=u.discontinuity,c=u.trackSwitch,f=u.accurateTimeOffset,g=u.timeOffset,v=u.initSegmentChange,m=l.audioCodec,p=l.videoCodec,y=l.defaultInitPts,L=l.duration,R=l.initSegmentData,A=function(t,e){var r=null;return t.byteLength>0&&null!=e&&null!=e.key&&null!==e.iv&&null!=e.method&&(r=e),r}(s,e);if(A&&"AES-128"===A.method){var k=this.getDecrypter();if(!k.isSync())return this.decryptionPromise=k.webCryptoDecrypt(s,A.key.buffer,A.iv.buffer).then(function(t){var e=n.push(t,null,r);return n.decryptionPromise=null,e}),this.decryptionPromise;var D=k.softwareDecrypt(s,A.key.buffer,A.iv.buffer);if(r.part>-1&&(D=k.flush()),!D)return a.executeEnd=Di(),Fi(r);s=new Uint8Array(D)}var I=this.needsProbing(d,c);if(I){var w=this.configureTransmuxer(s);if(w)return b.warn("[transmuxer] "+w.message),this.observer.emit(T.ERROR,T.ERROR,{type:E.MEDIA_ERROR,details:S.FRAG_PARSING_ERROR,fatal:!1,error:w,reason:w.message}),a.executeEnd=Di(),Fi(r)}(d||c||v||I)&&this.resetInitSegment(R,m,p,L,e),(d||v||I)&&this.resetInitialTimestamp(y),h||this.resetContiguity();var C=this.transmux(s,A,g,f,r),_=this.currentTransmuxState;return _.contiguous=!0,_.discontinuity=!1,_.trackSwitch=!1,a.executeEnd=Di(),C},e.flush=function(t){var e=this,r=t.transmuxing;r.executeStart=Di();var i=this.decrypter,n=this.currentTransmuxState,a=this.decryptionPromise;if(a)return a.then(function(){return e.flush(t)});var s=[],o=n.timeOffset;if(i){var l=i.flush();l&&s.push(this.push(l,null,t))}var u=this.demuxer,h=this.remuxer;if(!u||!h)return r.executeEnd=Di(),[Fi(t)];var d=u.flush(o);return Mi(d)?d.then(function(r){return e.flushRemux(s,r,t),s}):(this.flushRemux(s,d,t),s)},e.flushRemux=function(t,e,r){var i=e.audioTrack,n=e.videoTrack,a=e.id3Track,s=e.textTrack,o=this.currentTransmuxState,l=o.accurateTimeOffset,u=o.timeOffset;b.log("[transmuxer.ts]: Flushed fragment "+r.sn+(r.part>-1?" p: "+r.part:"")+" of level "+r.level);var h=this.remuxer.remux(i,n,a,s,u,l,!0,this.id);t.push({remuxResult:h,chunkMeta:r}),r.transmuxing.executeEnd=Di()},e.resetInitialTimestamp=function(t){var e=this.demuxer,r=this.remuxer;e&&r&&(e.resetTimeStamp(t),r.resetTimeStamp(t))},e.resetContiguity=function(){var t=this.demuxer,e=this.remuxer;t&&e&&(t.resetContiguity(),e.resetNextTimestamp())},e.resetInitSegment=function(t,e,r,i,n){var a=this.demuxer,s=this.remuxer;a&&s&&(a.resetInitSegment(t,e,r,i),s.resetInitSegment(t,e,r,n))},e.destroy=function(){this.demuxer&&(this.demuxer.destroy(),this.demuxer=void 0),this.remuxer&&(this.remuxer.destroy(),this.remuxer=void 0)},e.transmux=function(t,e,r,i,n){return e&&"SAMPLE-AES"===e.method?this.transmuxSampleAes(t,e,r,i,n):this.transmuxUnencrypted(t,r,i,n)},e.transmuxUnencrypted=function(t,e,r,i){var n=this.demuxer.demux(t,e,!1,!this.config.progressive),a=n.audioTrack,s=n.videoTrack,o=n.id3Track,l=n.textTrack;return{remuxResult:this.remuxer.remux(a,s,o,l,e,r,!1,this.id),chunkMeta:i}},e.transmuxSampleAes=function(t,e,r,i,n){var a=this;return this.demuxer.demuxSampleAes(t,e,r).then(function(t){return{remuxResult:a.remuxer.remux(t.audioTrack,t.videoTrack,t.id3Track,t.textTrack,r,i,!1,a.id),chunkMeta:n}})},e.configureTransmuxer=function(t){for(var e,r=this.config,i=this.observer,n=this.typeSupported,a=this.vendor,s=0,o=Pi.length;s<o;s++)if(Pi[s].demux.probe(t)){e=Pi[s];break}if(!e)return new Error("Failed to find demuxer by probing fragment data");var l=this.demuxer,u=this.remuxer,h=e.remux,d=e.demux;u&&u instanceof h||(this.remuxer=new h(i,r,n,a)),l&&l instanceof d||(this.demuxer=new d(i,r,n),this.probe=d.probe)},e.needsProbing=function(t,e){return!this.demuxer||!this.remuxer||t||e},e.getDecrypter=function(){var t=this.decrypter;return t||(t=this.decrypter=new Er(this.config)),t},t}(),Fi=function(t){return{remuxResult:{},chunkMeta:t}};function Mi(t){return"then"in t&&t.then instanceof Function}var Oi=function(t,e,r,i,n){this.audioCodec=void 0,this.videoCodec=void 0,this.initSegmentData=void 0,this.duration=void 0,this.defaultInitPts=void 0,this.audioCodec=t,this.videoCodec=e,this.initSegmentData=r,this.duration=i,this.defaultInitPts=n||null},Ni=function(t,e,r,i,n,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=t,this.contiguous=e,this.accurateTimeOffset=r,this.trackSwitch=i,this.timeOffset=n,this.initSegmentChange=a},Ui={exports:{}};!function(t){var e=Object.prototype.hasOwnProperty,r="~";function i(){}function n(t,e,r){this.fn=t,this.context=e,this.once=r||!1}function a(t,e,i,a,s){if("function"!=typeof i)throw new TypeError("The listener must be a function");var o=new n(i,a||t,s),l=r?r+e:e;return t._events[l]?t._events[l].fn?t._events[l]=[t._events[l],o]:t._events[l].push(o):(t._events[l]=o,t._eventsCount++),t}function s(t,e){0==--t._eventsCount?t._events=new i:delete t._events[e]}function o(){this._events=new i,this._eventsCount=0}Object.create&&(i.prototype=Object.create(null),(new i).__proto__||(r=!1)),o.prototype.eventNames=function(){var t,i,n=[];if(0===this._eventsCount)return n;for(i in t=this._events)e.call(t,i)&&n.push(r?i.slice(1):i);return Object.getOwnPropertySymbols?n.concat(Object.getOwnPropertySymbols(t)):n},o.prototype.listeners=function(t){var e=r?r+t:t,i=this._events[e];if(!i)return[];if(i.fn)return[i.fn];for(var n=0,a=i.length,s=new Array(a);n<a;n++)s[n]=i[n].fn;return s},o.prototype.listenerCount=function(t){var e=r?r+t:t,i=this._events[e];return i?i.fn?1:i.length:0},o.prototype.emit=function(t,e,i,n,a,s){var o=r?r+t:t;if(!this._events[o])return!1;var l,u,h=this._events[o],d=arguments.length;if(h.fn){switch(h.once&&this.removeListener(t,h.fn,void 0,!0),d){case 1:return h.fn.call(h.context),!0;case 2:return h.fn.call(h.context,e),!0;case 3:return h.fn.call(h.context,e,i),!0;case 4:return h.fn.call(h.context,e,i,n),!0;case 5:return h.fn.call(h.context,e,i,n,a),!0;case 6:return h.fn.call(h.context,e,i,n,a,s),!0}for(u=1,l=new Array(d-1);u<d;u++)l[u-1]=arguments[u];h.fn.apply(h.context,l)}else{var c,f=h.length;for(u=0;u<f;u++)switch(h[u].once&&this.removeListener(t,h[u].fn,void 0,!0),d){case 1:h[u].fn.call(h[u].context);break;case 2:h[u].fn.call(h[u].context,e);break;case 3:h[u].fn.call(h[u].context,e,i);break;case 4:h[u].fn.call(h[u].context,e,i,n);break;default:if(!l)for(c=1,l=new Array(d-1);c<d;c++)l[c-1]=arguments[c];h[u].fn.apply(h[u].context,l)}}return!0},o.prototype.on=function(t,e,r){return a(this,t,e,r,!1)},o.prototype.once=function(t,e,r){return a(this,t,e,r,!0)},o.prototype.removeListener=function(t,e,i,n){var a=r?r+t:t;if(!this._events[a])return this;if(!e)return s(this,a),this;var o=this._events[a];if(o.fn)o.fn!==e||n&&!o.once||i&&o.context!==i||s(this,a);else{for(var l=0,u=[],h=o.length;l<h;l++)(o[l].fn!==e||n&&!o[l].once||i&&o[l].context!==i)&&u.push(o[l]);u.length?this._events[a]=1===u.length?u[0]:u:s(this,a)}return this},o.prototype.removeAllListeners=function(t){var e;return t?(e=r?r+t:t,this._events[e]&&s(this,e)):(this._events=new i,this._eventsCount=0),this},o.prototype.off=o.prototype.removeListener,o.prototype.addListener=o.prototype.on,o.prefixed=r,o.EventEmitter=o,t.exports=o}(Ui);var Bi=function(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}(Ui.exports);function Gi(t,e){if(!((r=e.remuxResult).audio||r.video||r.text||r.id3||r.initSegment))return!1;var r,i=[],n=e.remuxResult,a=n.audio,s=n.video;return a&&Ki(i,a),s&&Ki(i,s),t.postMessage({event:"transmuxComplete",data:e},i),!0}function Ki(t,e){e.data1&&t.push(e.data1.buffer),e.data2&&t.push(e.data2.buffer)}function Hi(t,e,r){e.reduce(function(e,r){return Gi(t,r)||e},!1)||t.postMessage({event:"transmuxComplete",data:e[0]}),t.postMessage({event:"flush",data:r})}void 0!==e&&e&&function(t){var e=new Bi,r=function(e,r){t.postMessage({event:e,data:r})};e.on(T.FRAG_DECRYPTED,r),e.on(T.ERROR,r),t.addEventListener("message",function(i){var n=i.data;switch(n.cmd){case"init":var a=JSON.parse(n.config);t.transmuxer=new xi(e,n.typeSupported,a,n.vendor,n.id),k(a.debug,n.id),function(){var t=function(t){b[t]=function(e){r("workerLog",{logType:t,message:e})}};for(var e in b)t(e)}(),r("init",null);break;case"configure":t.transmuxer.configure(n.config);break;case"demux":var s=t.transmuxer.push(n.data,n.decryptdata,n.chunkMeta,n.state);Mi(s)?(t.transmuxer.async=!0,s.then(function(e){Gi(t,e)}).catch(function(t){r(T.ERROR,{type:E.MEDIA_ERROR,details:S.FRAG_PARSING_ERROR,chunkMeta:n.chunkMeta,fatal:!1,error:t,err:t,reason:"transmuxer-worker push error"})})):(t.transmuxer.async=!1,Gi(t,s));break;case"flush":var o=n.chunkMeta,l=t.transmuxer.flush(o);Mi(l)||t.transmuxer.async?(Mi(l)||(l=Promise.resolve(l)),l.then(function(e){Hi(t,e,o)}).catch(function(t){r(T.ERROR,{type:E.MEDIA_ERROR,details:S.FRAG_PARSING_ERROR,chunkMeta:n.chunkMeta,fatal:!1,error:t,err:t,reason:"transmuxer-worker flush error"})})):Hi(t,l,o)}})}(self);var Vi=Kt()||{isTypeSupported:function(){return!1}},Yi=function(){function e(e,r,i,n){var a=this;this.error=null,this.hls=void 0,this.id=void 0,this.observer=void 0,this.frag=null,this.part=null,this.useWorker=void 0,this.workerContext=null,this.onwmsg=void 0,this.transmuxer=null,this.onTransmuxComplete=void 0,this.onFlush=void 0;var s=e.config;this.hls=e,this.id=r,this.useWorker=!!s.enableWorker,this.onTransmuxComplete=i,this.onFlush=n;var o=function(t,e){(e=e||{}).frag=a.frag,e.id=a.id,t===T.ERROR&&(a.error=e.error),a.hls.trigger(t,e)};this.observer=new Bi,this.observer.on(T.FRAG_DECRYPTED,o),this.observer.on(T.ERROR,o);var l,u,h,d,c={mp4:Vi.isTypeSupported("video/mp4"),mpeg:Vi.isTypeSupported("audio/mpeg"),mp3:Vi.isTypeSupported('audio/mp4; codecs="mp3"')},f=navigator.vendor;if(!this.useWorker||"undefined"==typeof Worker||(s.workerPath,0))this.transmuxer=new xi(this.observer,c,s,f,r);else try{s.workerPath?(b.log("loading Web Worker "+s.workerPath+' for "'+r+'"'),this.workerContext=(h=s.workerPath,d=new self.URL(h,self.location.href).href,{worker:new self.Worker(d),scriptURL:d})):(b.log('injecting Web Worker for "'+r+'"'),this.workerContext=(l=new self.Blob(["var exports={};var module={exports:exports};function define(f){f()};define.amd=true;("+t.toString()+")(true);"],{type:"text/javascript"}),u=self.URL.createObjectURL(l),{worker:new self.Worker(u),objectURL:u})),this.onwmsg=function(t){return a.onWorkerMessage(t)};var g=this.workerContext.worker;g.addEventListener("message",this.onwmsg),g.onerror=function(t){var e=new Error(t.message+"  ("+t.filename+":"+t.lineno+")");s.enableWorker=!1,b.warn('Error in "'+r+'" Web Worker, fallback to inline'),a.hls.trigger(T.ERROR,{type:E.OTHER_ERROR,details:S.INTERNAL_EXCEPTION,fatal:!1,event:"demuxerWorker",error:e})},g.postMessage({cmd:"init",typeSupported:c,vendor:f,id:r,config:JSON.stringify(s)})}catch(t){b.warn('Error setting up "'+r+'" Web Worker, fallback to inline',t),this.resetWorker(),this.error=null,this.transmuxer=new xi(this.observer,c,s,f,r)}}var r=e.prototype;return r.resetWorker=function(){if(this.workerContext){var t=this.workerContext,e=t.worker,r=t.objectURL;r&&self.URL.revokeObjectURL(r),e.removeEventListener("message",this.onwmsg),e.onerror=null,e.terminate(),this.workerContext=null}},r.destroy=function(){if(this.workerContext)this.resetWorker(),this.onwmsg=void 0;else{var t=this.transmuxer;t&&(t.destroy(),this.transmuxer=null)}var e=this.observer;e&&e.removeAllListeners(),this.frag=null,this.observer=null,this.hls=null},r.push=function(t,e,r,i,n,a,s,o,l,u){var h,d,c=this;l.transmuxing.start=self.performance.now();var f=this.transmuxer,g=a?a.start:n.start,v=n.decryptdata,m=this.frag,p=!(m&&n.cc===m.cc),y=!(m&&l.level===m.level),T=m?l.sn-m.sn:-1,E=this.part?l.part-this.part.index:-1,S=0===T&&l.id>1&&l.id===(null==m?void 0:m.stats.chunkCount),L=!y&&(1===T||0===T&&(1===E||S&&E<=0)),R=self.performance.now();(y||T||0===n.stats.parsing.start)&&(n.stats.parsing.start=R),!a||!E&&L||(a.stats.parsing.start=R);var A=!(m&&(null==(h=n.initSegment)?void 0:h.url)===(null==(d=m.initSegment)?void 0:d.url)),k=new Ni(p,L,o,y,g,A);if(!L||p||A){b.log("[transmuxer-interface, "+n.type+"]: Starting new transmux session for sn: "+l.sn+" p: "+l.part+" level: "+l.level+" id: "+l.id+"\n        discontinuity: "+p+"\n        trackSwitch: "+y+"\n        contiguous: "+L+"\n        accurateTimeOffset: "+o+"\n        timeOffset: "+g+"\n        initSegmentChange: "+A);var D=new Oi(r,i,e,s,u);this.configureTransmuxer(D)}if(this.frag=n,this.part=a,this.workerContext)this.workerContext.worker.postMessage({cmd:"demux",data:t,decryptdata:v,chunkMeta:l,state:k},t instanceof ArrayBuffer?[t]:[]);else if(f){var I=f.push(t,v,l,k);Mi(I)?(f.async=!0,I.then(function(t){c.handleTransmuxComplete(t)}).catch(function(t){c.transmuxerError(t,l,"transmuxer-interface push error")})):(f.async=!1,this.handleTransmuxComplete(I))}},r.flush=function(t){var e=this;t.transmuxing.start=self.performance.now();var r=this.transmuxer;if(this.workerContext)this.workerContext.worker.postMessage({cmd:"flush",chunkMeta:t});else if(r){var i=r.flush(t);Mi(i)||r.async?(Mi(i)||(i=Promise.resolve(i)),i.then(function(r){e.handleFlushResult(r,t)}).catch(function(r){e.transmuxerError(r,t,"transmuxer-interface flush error")})):this.handleFlushResult(i,t)}},r.transmuxerError=function(t,e,r){this.hls&&(this.error=t,this.hls.trigger(T.ERROR,{type:E.MEDIA_ERROR,details:S.FRAG_PARSING_ERROR,chunkMeta:e,fatal:!1,error:t,err:t,reason:r}))},r.handleFlushResult=function(t,e){var r=this;t.forEach(function(t){r.handleTransmuxComplete(t)}),this.onFlush(e)},r.onWorkerMessage=function(t){var e=t.data,r=this.hls;switch(e.event){case"init":var i,n=null==(i=this.workerContext)?void 0:i.objectURL;n&&self.URL.revokeObjectURL(n);break;case"transmuxComplete":this.handleTransmuxComplete(e.data);break;case"flush":this.onFlush(e.data);break;case"workerLog":b[e.data.logType]&&b[e.data.logType](e.data.message);break;default:e.data=e.data||{},e.data.frag=this.frag,e.data.id=this.id,r.trigger(e.event,e.data)}},r.configureTransmuxer=function(t){var e=this.transmuxer;this.workerContext?this.workerContext.worker.postMessage({cmd:"configure",config:t}):e&&e.configure(t)},r.handleTransmuxComplete=function(t){t.chunkMeta.transmuxing.end=self.performance.now(),this.onTransmuxComplete(t)},e}(),Wi=function(){function t(t,e,r,i){this.config=void 0,this.media=null,this.fragmentTracker=void 0,this.hls=void 0,this.nudgeRetry=0,this.stallReported=!1,this.stalled=null,this.moved=!1,this.seeking=!1,this.config=t,this.media=e,this.fragmentTracker=r,this.hls=i}var e=t.prototype;return e.destroy=function(){this.media=null,this.hls=this.fragmentTracker=null},e.poll=function(t,e){var r=this.config,i=this.media,n=this.stalled;if(null!==i){var a=i.currentTime,s=i.seeking,o=this.seeking&&!s,l=!this.seeking&&s;if(this.seeking=s,a===t){if(l||o)this.stalled=null;else if(!(i.paused&&!s||i.ended||0===i.playbackRate)&&dr.getBuffered(i).length){var u=dr.bufferInfo(i,a,0),h=u.len>0,d=u.nextStart||0;if(h||d){if(s){var c=u.len>2,f=!d||e&&e.start<=a||d-a>2&&!this.fragmentTracker.getPartialFragment(a);if(c||f)return;this.moved=!1}if(!this.moved&&null!==this.stalled){var g,v=Math.max(d,u.start||0)-a,m=this.hls.levels?this.hls.levels[this.hls.currentLevel]:null,p=(null==m||null==(g=m.details)?void 0:g.live)?2*m.details.targetduration:2,y=this.fragmentTracker.getPartialFragment(a);if(v>0&&(v<=p||y))return void this._trySkipBufferHole(y)}var T=self.performance.now();if(null!==n){var E=T-n;if(s||!(E>=250)||(this._reportStall(u),this.media)){var S=dr.bufferInfo(i,a,r.maxBufferHole);this._tryFixBufferStall(S,E)}}else this.stalled=T}}}else if(this.moved=!0,null!==n){if(this.stallReported){var L=self.performance.now()-n;b.warn("playback not stuck anymore @"+a+", after "+Math.round(L)+"ms"),this.stallReported=!1}this.stalled=null,this.nudgeRetry=0}}},e._tryFixBufferStall=function(t,e){var r=this.config,i=this.fragmentTracker,n=this.media;if(null!==n){var a=n.currentTime,s=i.getPartialFragment(a);if(s&&(this._trySkipBufferHole(s)||!this.media))return;(t.len>r.maxBufferHole||t.nextStart&&t.nextStart-a<r.maxBufferHole)&&e>1e3*r.highBufferWatchdogPeriod&&(b.warn("Trying to nudge playhead over buffer-hole"),this.stalled=null,this._tryNudgeBuffer())}},e._reportStall=function(t){var e=this.hls,r=this.media;if(!this.stallReported&&r){this.stallReported=!0;var i=new Error("Playback stalling at @"+r.currentTime+" due to low buffer ("+JSON.stringify(t)+")");b.warn(i.message),e.trigger(T.ERROR,{type:E.MEDIA_ERROR,details:S.BUFFER_STALLED_ERROR,fatal:!1,error:i,buffer:t.len})}},e._trySkipBufferHole=function(t){var e=this.config,r=this.hls,i=this.media;if(null===i)return 0;var n=i.currentTime,a=dr.bufferInfo(i,n,0),s=n<a.start?a.start:a.nextStart;if(s){var o=a.len<=e.maxBufferHole,l=a.len>0&&a.len<1&&i.readyState<3,u=s-n;if(u>0&&(o||l)){if(u>e.maxBufferHole){var h=this.fragmentTracker,d=!1;if(0===n){var c=h.getAppendedFrag(0,le);c&&s<c.end&&(d=!0)}if(!d){var f=t||h.getAppendedFrag(n,le);if(f){for(var g=!1,v=f.end;v<s;){var m=h.getPartialFragment(v);if(!m){g=!0;break}v+=m.duration}if(g)return 0}}}var p=Math.max(s+.05,n+.1);if(b.warn("skipping hole, adjusting currentTime from "+n+" to "+p),this.moved=!0,this.stalled=null,i.currentTime=p,t&&!t.gap){var y=new Error("fragment loaded with buffer holes, seeking from "+n+" to "+p);r.trigger(T.ERROR,{type:E.MEDIA_ERROR,details:S.BUFFER_SEEK_OVER_HOLE,fatal:!1,error:y,reason:y.message,frag:t})}return p}}return 0},e._tryNudgeBuffer=function(){var t=this.config,e=this.hls,r=this.media,i=this.nudgeRetry;if(null!==r){var n=r.currentTime;if(this.nudgeRetry++,i<t.nudgeMaxRetry){var a=n+(i+1)*t.nudgeOffset,s=new Error("Nudging 'currentTime' from "+n+" to "+a);b.warn(s.message),r.currentTime=a,e.trigger(T.ERROR,{type:E.MEDIA_ERROR,details:S.BUFFER_NUDGE_ON_STALL,error:s,fatal:!1})}else{var o=new Error("Playhead still not moving while enough data buffered @"+n+" after "+t.nudgeMaxRetry+" nudges");b.error(o.message),e.trigger(T.ERROR,{type:E.MEDIA_ERROR,details:S.BUFFER_STALLED_ERROR,error:o,fatal:!0})}}},t}(),ji=function(t){function e(e,r,i){var n;return(n=t.call(this,e,r,i,"[stream-controller]",le)||this).audioCodecSwap=!1,n.gapController=null,n.level=-1,n._forceStartLoad=!1,n.altAudio=!1,n.audioOnly=!1,n.fragPlaying=null,n.onvplaying=null,n.onvseeked=null,n.fragLastKbps=0,n.couldBacktrack=!1,n.backtrackFragment=null,n.audioCodecSwitch=!1,n.videoBuffer=null,n._registerListeners(),n}l(e,t);var r=e.prototype;return r._registerListeners=function(){var t=this.hls;t.on(T.MEDIA_ATTACHED,this.onMediaAttached,this),t.on(T.MEDIA_DETACHING,this.onMediaDetaching,this),t.on(T.MANIFEST_LOADING,this.onManifestLoading,this),t.on(T.MANIFEST_PARSED,this.onManifestParsed,this),t.on(T.LEVEL_LOADING,this.onLevelLoading,this),t.on(T.LEVEL_LOADED,this.onLevelLoaded,this),t.on(T.FRAG_LOAD_EMERGENCY_ABORTED,this.onFragLoadEmergencyAborted,this),t.on(T.ERROR,this.onError,this),t.on(T.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),t.on(T.AUDIO_TRACK_SWITCHED,this.onAudioTrackSwitched,this),t.on(T.BUFFER_CREATED,this.onBufferCreated,this),t.on(T.BUFFER_FLUSHED,this.onBufferFlushed,this),t.on(T.LEVELS_UPDATED,this.onLevelsUpdated,this),t.on(T.FRAG_BUFFERED,this.onFragBuffered,this)},r._unregisterListeners=function(){var t=this.hls;t.off(T.MEDIA_ATTACHED,this.onMediaAttached,this),t.off(T.MEDIA_DETACHING,this.onMediaDetaching,this),t.off(T.MANIFEST_LOADING,this.onManifestLoading,this),t.off(T.MANIFEST_PARSED,this.onManifestParsed,this),t.off(T.LEVEL_LOADED,this.onLevelLoaded,this),t.off(T.FRAG_LOAD_EMERGENCY_ABORTED,this.onFragLoadEmergencyAborted,this),t.off(T.ERROR,this.onError,this),t.off(T.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),t.off(T.AUDIO_TRACK_SWITCHED,this.onAudioTrackSwitched,this),t.off(T.BUFFER_CREATED,this.onBufferCreated,this),t.off(T.BUFFER_FLUSHED,this.onBufferFlushed,this),t.off(T.LEVELS_UPDATED,this.onLevelsUpdated,this),t.off(T.FRAG_BUFFERED,this.onFragBuffered,this)},r.onHandlerDestroying=function(){this._unregisterListeners(),this.onMediaDetaching()},r.startLoad=function(t){if(this.levels){var e=this.lastCurrentTime,r=this.hls;if(this.stopLoad(),this.setInterval(100),this.level=-1,!this.startFragRequested){var i=r.startLevel;-1===i&&(r.config.testBandwidth&&this.levels.length>1?(i=0,this.bitrateTest=!0):i=r.nextAutoLevel),this.level=r.nextLoadLevel=i,this.loadedmetadata=!1}e>0&&-1===t&&(this.log("Override startPosition with lastCurrentTime @"+e.toFixed(3)),t=e),this.state=Lr,this.nextLoadPosition=this.startPosition=this.lastCurrentTime=t,this.tick()}else this._forceStartLoad=!0,this.state=Sr},r.stopLoad=function(){this._forceStartLoad=!1,t.prototype.stopLoad.call(this)},r.doTick=function(){switch(this.state){case Pr:var t,e=this.levels,r=this.level,i=null==e||null==(t=e[r])?void 0:t.details;if(i&&(!i.live||this.levelLastLoaded===this.level)){if(this.waitForCdnTuneIn(i))break;this.state=Lr;break}if(this.hls.nextLoadLevel!==this.level){this.state=Lr;break}break;case kr:var n,a=self.performance.now(),s=this.retryDate;(!s||a>=s||null!=(n=this.media)&&n.seeking)&&(this.resetStartWhenNotLoaded(this.level),this.state=Lr)}this.state===Lr&&this.doTickIdle(),this.onTickEnd()},r.onTickEnd=function(){t.prototype.onTickEnd.call(this),this.checkBuffer(),this.checkFragmentChanged()},r.doTickIdle=function(){var t=this.hls,e=this.levelLastLoaded,r=this.levels,i=this.media,n=t.config,a=t.nextLoadLevel;if(null!==e&&(i||!this.startFragRequested&&n.startFragPrefetch)&&(!this.altAudio||!this.audioOnly)&&null!=r&&r[a]){var s=r[a],o=this.getMainFwdBufferInfo();if(null!==o){var l=this.getLevelDetails();if(l&&this._streamEnded(o,l)){var u={};return this.altAudio&&(u.type="video"),this.hls.trigger(T.BUFFER_EOS,u),void(this.state=wr)}t.loadLevel!==a&&-1===t.manualLevel&&this.log("Adapting to level "+a+" from level "+this.level),this.level=t.nextLoadLevel=a;var h=s.details;if(!h||this.state===Pr||h.live&&this.levelLastLoaded!==a)return this.level=a,void(this.state=Pr);var d=o.len,c=this.getMaxBufferLength(s.maxBitrate);if(!(d>=c)){this.backtrackFragment&&this.backtrackFragment.start>o.end&&(this.backtrackFragment=null);var f=this.backtrackFragment?this.backtrackFragment.start:o.end,g=this.getNextFragment(f,h);if(this.couldBacktrack&&!this.fragPrevious&&g&&"initSegment"!==g.sn&&this.fragmentTracker.getState(g)!==Ze){var v,m=(null!=(v=this.backtrackFragment)?v:g).sn-h.startSN,p=h.fragments[m-1];p&&g.cc===p.cc&&(g=p,this.fragmentTracker.removeFragment(p))}else this.backtrackFragment&&o.len&&(this.backtrackFragment=null);if(g&&this.isLoopLoading(g,f)){if(!g.gap){var y=this.audioOnly&&!this.altAudio?x:F,E=(y===F?this.videoBuffer:this.mediaBuffer)||this.media;E&&this.afterBufferFlushed(E,y,le)}g=this.getNextFragmentLoopLoading(g,h,o,le,c)}g&&(!g.initSegment||g.initSegment.data||this.bitrateTest||(g=g.initSegment),this.loadFragment(g,s,f))}}}},r.loadFragment=function(e,r,i){var n=this.fragmentTracker.getState(e);this.fragCurrent=e,n===Qe||n===Je?"initSegment"===e.sn?this._loadInitSegment(e,r):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,r)):(this.startFragRequested=!0,t.prototype.loadFragment.call(this,e,r,i)):this.clearTrackerIfNeeded(e)},r.getBufferedFrag=function(t){return this.fragmentTracker.getBufferedFrag(t,le)},r.followingBufferedFrag=function(t){return t?this.getBufferedFrag(t.end+.5):null},r.immediateLevelSwitch=function(){this.abortCurrentFrag(),this.flushMainBuffer(0,Number.POSITIVE_INFINITY)},r.nextLevelSwitch=function(){var t=this.levels,e=this.media;if(null!=e&&e.readyState){var r,i=this.getAppendedFrag(e.currentTime);i&&i.start>1&&this.flushMainBuffer(0,i.start-1);var n=this.getLevelDetails();if(null!=n&&n.live){var a=this.getMainFwdBufferInfo();if(!a||a.len<2*n.targetduration)return}if(!e.paused&&t){var s=t[this.hls.nextLoadLevel],o=this.fragLastKbps;r=o&&this.fragCurrent?this.fragCurrent.duration*s.maxBitrate/(1e3*o)+1:0}else r=0;var l=this.getBufferedFrag(e.currentTime+r);if(l){var u=this.followingBufferedFrag(l);if(u){this.abortCurrentFrag();var h=u.maxStartPTS?u.maxStartPTS:u.start,d=u.duration,c=Math.max(l.end,h+Math.min(Math.max(d-this.config.maxFragLookUpTolerance,.5*d),.75*d));this.flushMainBuffer(c,Number.POSITIVE_INFINITY)}}}},r.abortCurrentFrag=function(){var t=this.fragCurrent;switch(this.fragCurrent=null,this.backtrackFragment=null,t&&(t.abortRequests(),this.fragmentTracker.removeFragment(t)),this.state){case Rr:case Ar:case kr:case Dr:case Ir:this.state=Lr}this.nextLoadPosition=this.getLoadPosition()},r.flushMainBuffer=function(e,r){t.prototype.flushMainBuffer.call(this,e,r,this.altAudio?"video":null)},r.onMediaAttached=function(e,r){t.prototype.onMediaAttached.call(this,e,r);var i=r.media;this.onvplaying=this.onMediaPlaying.bind(this),this.onvseeked=this.onMediaSeeked.bind(this),i.addEventListener("playing",this.onvplaying),i.addEventListener("seeked",this.onvseeked),this.gapController=new Wi(this.config,i,this.fragmentTracker,this.hls)},r.onMediaDetaching=function(){var e=this.media;e&&this.onvplaying&&this.onvseeked&&(e.removeEventListener("playing",this.onvplaying),e.removeEventListener("seeked",this.onvseeked),this.onvplaying=this.onvseeked=null,this.videoBuffer=null),this.fragPlaying=null,this.gapController&&(this.gapController.destroy(),this.gapController=null),t.prototype.onMediaDetaching.call(this)},r.onMediaPlaying=function(){this.tick()},r.onMediaSeeked=function(){var t=this.media,e=t?t.currentTime:null;y(e)&&this.log("Media seeked to "+e.toFixed(3));var r=this.getMainFwdBufferInfo();null!==r&&0!==r.len?this.tick():this.warn('Main forward buffer length on "seeked" event '+(r?r.len:"empty")+")")},r.onManifestLoading=function(){this.log("Trigger BUFFER_RESET"),this.hls.trigger(T.BUFFER_RESET,void 0),this.fragmentTracker.removeAllFragments(),this.couldBacktrack=!1,this.startPosition=this.lastCurrentTime=0,this.levels=this.fragPlaying=this.backtrackFragment=null,this.altAudio=this.audioOnly=!1},r.onManifestParsed=function(t,e){var r,i,n,a=!1,s=!1;e.levels.forEach(function(t){(r=t.audioCodec)&&(-1!==r.indexOf("mp4a.40.2")&&(a=!0),-1!==r.indexOf("mp4a.40.5")&&(s=!0))}),this.audioCodecSwitch=a&&s&&!("function"==typeof(null==(n=Fr())||null==(i=n.prototype)?void 0:i.changeType)),this.audioCodecSwitch&&this.log("Both AAC/HE-AAC audio found in levels; declaring level codec as HE-AAC"),this.levels=e.levels,this.startFragRequested=!1},r.onLevelLoading=function(t,e){var r=this.levels;if(r&&this.state===Lr){var i=r[e.level];(!i.details||i.details.live&&this.levelLastLoaded!==e.level||this.waitForCdnTuneIn(i.details))&&(this.state=Pr)}},r.onLevelLoaded=function(t,e){var r,i=this.levels,n=e.level,a=e.details,s=a.totalduration;if(i){this.log("Level "+n+" loaded ["+a.startSN+","+a.endSN+"]"+(a.lastPartSn?"[part-"+a.lastPartSn+"-"+a.lastPartIndex+"]":"")+", cc ["+a.startCC+", "+a.endCC+"] duration:"+s);var o=i[n],l=this.fragCurrent;!l||this.state!==Ar&&this.state!==kr||l.level===e.level&&l.urlId===o.urlId||!l.loader||this.abortCurrentFrag();var u=0;if(a.live||null!=(r=o.details)&&r.live){if(this.checkLiveUpdate(a),a.deltaUpdateFailed)return;u=this.alignPlaylists(a,o.details)}if(o.details=a,this.levelLastLoaded=n,this.hls.trigger(T.LEVEL_UPDATED,{details:a,level:n}),this.state===Pr){if(this.waitForCdnTuneIn(a))return;this.state=Lr}this.startFragRequested?a.live&&this.synchronizeToLiveEdge(a):this.setStartPosition(a,u),this.tick()}else this.warn("Levels were reset while loading level "+n)},r._handleFragmentLoadProgress=function(t){var e,r=t.frag,i=t.part,n=t.payload,a=this.levels;if(a){var s=a[r.level],o=s.details;if(!o)return this.warn("Dropping fragment "+r.sn+" of level "+r.level+" after level details were reset"),void this.fragmentTracker.removeFragment(r);var l=s.videoCodec,u=o.PTSKnown||!o.live,h=null==(e=r.initSegment)?void 0:e.data,d=this._getAudioCodec(s),c=this.transmuxer=this.transmuxer||new Yi(this.hls,le,this._handleTransmuxComplete.bind(this),this._handleTransmuxerFlush.bind(this)),f=i?i.index:-1,g=-1!==f,v=new cr(r.level,r.sn,r.stats.chunkCount,n.byteLength,f,g),m=this.initPTS[r.cc];c.push(n,h,d,l,r,i,o.totalduration,u,v,m)}else this.warn("Levels were reset while fragment load was in progress. Fragment "+r.sn+" of level "+r.level+" will not be buffered")},r.onAudioTrackSwitching=function(t,e){var r=this.altAudio;if(!e.url){if(this.mediaBuffer!==this.media){this.log("Switching on main audio, use media.buffered to schedule main fragment loading"),this.mediaBuffer=this.media;var i=this.fragCurrent;i&&(this.log("Switching to main audio track, cancel main fragment load"),i.abortRequests(),this.fragmentTracker.removeFragment(i)),this.resetTransmuxer(),this.resetLoadingState()}else this.audioOnly&&this.resetTransmuxer();var n=this.hls;r&&(n.trigger(T.BUFFER_FLUSHING,{startOffset:0,endOffset:Number.POSITIVE_INFINITY,type:null}),this.fragmentTracker.removeAllFragments()),n.trigger(T.AUDIO_TRACK_SWITCHED,e)}},r.onAudioTrackSwitched=function(t,e){var r=e.id,i=!!this.hls.audioTracks[r].url;if(i){var n=this.videoBuffer;n&&this.mediaBuffer!==n&&(this.log("Switching on alternate audio, use video.buffered to schedule main fragment loading"),this.mediaBuffer=n)}this.altAudio=i,this.tick()},r.onBufferCreated=function(t,e){var r,i,n=e.tracks,a=!1;for(var s in n){var o=n[s];if("main"===o.id){if(i=s,r=o,"video"===s){var l=n[s];l&&(this.videoBuffer=l.buffer)}}else a=!0}a&&r?(this.log("Alternate track found, use "+i+".buffered to schedule main fragment loading"),this.mediaBuffer=r.buffer):this.mediaBuffer=this.media},r.onFragBuffered=function(t,e){var r=e.frag,i=e.part;if(!r||r.type===le){if(this.fragContextChanged(r))return this.warn("Fragment "+r.sn+(i?" p: "+i.index:"")+" of level "+r.level+" finished buffering, but was aborted. state: "+this.state),void(this.state===Ir&&(this.state=Lr));var n=i?i.stats:r.stats;this.fragLastKbps=Math.round(8*n.total/(n.buffering.end-n.loading.first)),"initSegment"!==r.sn&&(this.fragPrevious=r),this.fragBufferedComplete(r,i)}},r.onError=function(t,e){var r;if(e.fatal)this.state=Cr;else switch(e.details){case S.FRAG_GAP:case S.FRAG_PARSING_ERROR:case S.FRAG_DECRYPT_ERROR:case S.FRAG_LOAD_ERROR:case S.FRAG_LOAD_TIMEOUT:case S.KEY_LOAD_ERROR:case S.KEY_LOAD_TIMEOUT:this.onFragmentOrKeyLoadError(le,e);break;case S.LEVEL_LOAD_ERROR:case S.LEVEL_LOAD_TIMEOUT:case S.LEVEL_PARSING_ERROR:e.levelRetry||this.state!==Pr||(null==(r=e.context)?void 0:r.type)!==ae||(this.state=Lr);break;case S.BUFFER_FULL_ERROR:if(!e.parent||"main"!==e.parent)return;this.reduceLengthAndFlushBuffer(e)&&this.flushMainBuffer(0,Number.POSITIVE_INFINITY);break;case S.INTERNAL_EXCEPTION:this.recoverWorkerError(e)}},r.checkBuffer=function(){var t=this.media,e=this.gapController;if(t&&e&&t.readyState){if(this.loadedmetadata||!dr.getBuffered(t).length){var r=this.state!==Lr?this.fragCurrent:null;e.poll(this.lastCurrentTime,r)}this.lastCurrentTime=t.currentTime}},r.onFragLoadEmergencyAborted=function(){this.state=Lr,this.loadedmetadata||(this.startFragRequested=!1,this.nextLoadPosition=this.startPosition),this.tickImmediate()},r.onBufferFlushed=function(t,e){var r=e.type;if(r!==x||this.audioOnly&&!this.altAudio){var i=(r===F?this.videoBuffer:this.mediaBuffer)||this.media;this.afterBufferFlushed(i,r,le)}},r.onLevelsUpdated=function(t,e){this.levels=e.levels},r.swapAudioCodec=function(){this.audioCodecSwap=!this.audioCodecSwap},r.seekToStartPos=function(){var t=this.media;if(t){var e=t.currentTime,r=this.startPosition;if(r>=0&&e<r){if(t.seeking)return void this.log("could not seek to "+r+", already seeking at "+e);var i=dr.getBuffered(t),n=(i.length?i.start(0):0)-r;n>0&&(n<this.config.maxBufferHole||n<this.config.maxFragLookUpTolerance)&&(this.log("adjusting start position by "+n+" to match buffer start"),r+=n,this.startPosition=r),this.log("seek to target start position "+r+" from current time "+e),t.currentTime=r}}},r._getAudioCodec=function(t){var e=this.config.defaultAudioCodec||t.audioCodec;return this.audioCodecSwap&&e&&(this.log("Swapping audio codec"),e=-1!==e.indexOf("mp4a.40.5")?"mp4a.40.2":"mp4a.40.5"),e},r._loadBitrateTestFrag=function(t,e){var r=this;t.bitrateTest=!0,this._doFragLoad(t,e).then(function(i){var n=r.hls;if(i&&!r.fragContextChanged(t)){e.fragmentError=0,r.state=Lr,r.startFragRequested=!1,r.bitrateTest=!1;var a=t.stats;a.parsing.start=a.parsing.end=a.buffering.start=a.buffering.end=self.performance.now(),n.trigger(T.FRAG_LOADED,i),t.bitrateTest=!1}})},r._handleTransmuxComplete=function(t){var e,r="main",i=this.hls,n=t.remuxResult,a=t.chunkMeta,s=this.getCurrentContext(a);if(s){var o=s.frag,l=s.part,u=s.level,h=n.video,d=n.text,c=n.id3,f=n.initSegment,g=u.details,v=this.altAudio?void 0:n.audio;if(this.fragContextChanged(o))this.fragmentTracker.removeFragment(o);else{if(this.state=Dr,f){if(null!=f&&f.tracks){var m=o.initSegment||o;this._bufferInitSegment(u,f.tracks,m,a),i.trigger(T.FRAG_PARSING_INIT_SEGMENT,{frag:m,id:r,tracks:f.tracks})}var p=f.initPTS,E=f.timescale;y(p)&&(this.initPTS[o.cc]={baseTime:p,timescale:E},i.trigger(T.INIT_PTS_FOUND,{frag:o,id:r,initPTS:p,timescale:E}))}if(h&&g&&"initSegment"!==o.sn){var S=g.fragments[o.sn-1-g.startSN],L=o.sn===g.startSN,R=!S||o.cc>S.cc;if(!1!==n.independent){var A=h.startPTS,k=h.endPTS,b=h.startDTS,D=h.endDTS;if(l)l.elementaryStreams[h.type]={startPTS:A,endPTS:k,startDTS:b,endDTS:D};else if(h.firstKeyFrame&&h.independent&&1===a.id&&!R&&(this.couldBacktrack=!0),h.dropped&&h.independent){var I=this.getMainFwdBufferInfo(),w=(I?I.end:this.getLoadPosition())+this.config.maxBufferHole,C=h.firstKeyFramePTS?h.firstKeyFramePTS:A;if(!L&&w<C-this.config.maxBufferHole&&!R)return void this.backtrack(o);R&&(o.gap=!0),o.setElementaryStreamInfo(h.type,o.start,k,o.start,D,!0)}o.setElementaryStreamInfo(h.type,A,k,b,D),this.backtrackFragment&&(this.backtrackFragment=o),this.bufferFragmentData(h,o,l,a,L||R)}else{if(!L&&!R)return void this.backtrack(o);o.gap=!0}}if(v){var _=v.startPTS,P=v.endPTS,F=v.startDTS,M=v.endDTS;l&&(l.elementaryStreams[x]={startPTS:_,endPTS:P,startDTS:F,endDTS:M}),o.setElementaryStreamInfo(x,_,P,F,M),this.bufferFragmentData(v,o,l,a)}if(g&&null!=c&&null!=(e=c.samples)&&e.length){var O={id:r,frag:o,details:g,samples:c.samples};i.trigger(T.FRAG_PARSING_METADATA,O)}if(g&&d){var N={id:r,frag:o,details:g,samples:d.samples};i.trigger(T.FRAG_PARSING_USERDATA,N)}}}else this.resetWhenMissingContext(a)},r._bufferInitSegment=function(t,e,r,i){var n=this;if(this.state===Dr){this.audioOnly=!!e.audio&&!e.video,this.altAudio&&!this.audioOnly&&delete e.audio;var a=e.audio,s=e.video,o=e.audiovideo;if(a){var l=t.audioCodec,u=navigator.userAgent.toLowerCase();this.audioCodecSwitch&&(l&&(l=-1!==l.indexOf("mp4a.40.5")?"mp4a.40.2":"mp4a.40.5"),1!==a.metadata.channelCount&&-1===u.indexOf("firefox")&&(l="mp4a.40.5")),-1!==u.indexOf("android")&&"audio/mpeg"!==a.container&&(l="mp4a.40.2",this.log("Android: force audio codec to "+l)),t.audioCodec&&t.audioCodec!==l&&this.log('Swapping manifest audio codec "'+t.audioCodec+'" for "'+l+'"'),a.levelCodec=l,a.id="main",this.log("Init audio buffer, container:"+a.container+", codecs[selected/level/parsed]=["+(l||"")+"/"+(t.audioCodec||"")+"/"+a.codec+"]")}s&&(s.levelCodec=t.videoCodec,s.id="main",this.log("Init video buffer, container:"+s.container+", codecs[level/parsed]=["+(t.videoCodec||"")+"/"+s.codec+"]")),o&&this.log("Init audiovideo buffer, container:"+o.container+", codecs[level/parsed]=["+(t.attrs.CODECS||"")+"/"+o.codec+"]"),this.hls.trigger(T.BUFFER_CODECS,e),Object.keys(e).forEach(function(t){var a=e[t].initSegment;null!=a&&a.byteLength&&n.hls.trigger(T.BUFFER_APPENDING,{type:t,data:a,frag:r,part:null,chunkMeta:i,parent:r.type})}),this.tick()}},r.getMainFwdBufferInfo=function(){return this.getFwdBufferInfo(this.mediaBuffer?this.mediaBuffer:this.media,le)},r.backtrack=function(t){this.couldBacktrack=!0,this.backtrackFragment=t,this.resetTransmuxer(),this.flushBufferGap(t),this.fragmentTracker.removeFragment(t),this.fragPrevious=null,this.nextLoadPosition=t.start,this.state=Lr},r.checkFragmentChanged=function(){var t=this.media,e=null;if(t&&t.readyState>1&&!1===t.seeking){var r=t.currentTime;if(dr.isBuffered(t,r)?e=this.getAppendedFrag(r):dr.isBuffered(t,r+.1)&&(e=this.getAppendedFrag(r+.1)),e){this.backtrackFragment=null;var i=this.fragPlaying,n=e.level;i&&e.sn===i.sn&&i.level===n&&e.urlId===i.urlId||(this.fragPlaying=e,this.hls.trigger(T.FRAG_CHANGED,{frag:e}),i&&i.level===n||this.hls.trigger(T.LEVEL_SWITCHED,{level:n}))}}},a(e,[{key:"nextLevel",get:function(){var t=this.nextBufferedFrag;return t?t.level:-1}},{key:"currentFrag",get:function(){var t=this.media;return t?this.fragPlaying||this.getAppendedFrag(t.currentTime):null}},{key:"currentProgramDateTime",get:function(){var t=this.media;if(t){var e=t.currentTime,r=this.currentFrag;if(r&&y(e)&&y(r.programDateTime)){var i=r.programDateTime+1e3*(e-r.start);return new Date(i)}}return null}},{key:"currentLevel",get:function(){var t=this.currentFrag;return t?t.level:-1}},{key:"nextBufferedFrag",get:function(){var t=this.currentFrag;return t?this.followingBufferedFrag(t):null}},{key:"forceStartLoad",get:function(){return this._forceStartLoad}}]),e}(xr),qi=function(){function t(t,e,r){void 0===e&&(e=0),void 0===r&&(r=0),this.halfLife=void 0,this.alpha_=void 0,this.estimate_=void 0,this.totalWeight_=void 0,this.halfLife=t,this.alpha_=t?Math.exp(Math.log(.5)/t):0,this.estimate_=e,this.totalWeight_=r}var e=t.prototype;return e.sample=function(t,e){var r=Math.pow(this.alpha_,t);this.estimate_=e*(1-r)+r*this.estimate_,this.totalWeight_+=t},e.getTotalWeight=function(){return this.totalWeight_},e.getEstimate=function(){if(this.alpha_){var t=1-Math.pow(this.alpha_,this.totalWeight_);if(t)return this.estimate_/t}return this.estimate_},t}(),Xi=function(){function t(t,e,r,i){void 0===i&&(i=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_=r,this.minWeight_=.001,this.minDelayMs_=50,this.slow_=new qi(t),this.fast_=new qi(e),this.defaultTTFB_=i,this.ttfb_=new qi(t)}var e=t.prototype;return e.update=function(t,e){var r=this.slow_,i=this.fast_,n=this.ttfb_;r.halfLife!==t&&(this.slow_=new qi(t,r.getEstimate(),r.getTotalWeight())),i.halfLife!==e&&(this.fast_=new qi(e,i.getEstimate(),i.getTotalWeight())),n.halfLife!==t&&(this.ttfb_=new qi(t,n.getEstimate(),n.getTotalWeight()))},e.sample=function(t,e){var r=(t=Math.max(t,this.minDelayMs_))/1e3,i=8*e/r;this.fast_.sample(r,i),this.slow_.sample(r,i)},e.sampleTTFB=function(t){var e=t/1e3,r=Math.sqrt(2)*Math.exp(-Math.pow(e,2)/2);this.ttfb_.sample(r,Math.max(t,5))},e.canEstimate=function(){return this.fast_.getTotalWeight()>=this.minWeight_},e.getEstimate=function(){return this.canEstimate()?Math.min(this.fast_.getEstimate(),this.slow_.getEstimate()):this.defaultEstimate_},e.getEstimateTTFB=function(){return this.ttfb_.getTotalWeight()>=this.minWeight_?this.ttfb_.getEstimate():this.defaultTTFB_},e.destroy=function(){},t}(),zi=function(){function t(t){this.hls=void 0,this.lastLevelLoadSec=0,this.lastLoadedFragLevel=0,this._nextAutoLevel=-1,this.timer=-1,this.onCheck=this._abandonRulesCheck.bind(this),this.fragCurrent=null,this.partCurrent=null,this.bitrateTestDelay=0,this.bwEstimator=void 0,this.hls=t;var e=t.config;this.bwEstimator=new Xi(e.abrEwmaSlowVoD,e.abrEwmaFastVoD,e.abrEwmaDefaultEstimate),this.registerListeners()}var e=t.prototype;return e.registerListeners=function(){var t=this.hls;t.on(T.FRAG_LOADING,this.onFragLoading,this),t.on(T.FRAG_LOADED,this.onFragLoaded,this),t.on(T.FRAG_BUFFERED,this.onFragBuffered,this),t.on(T.LEVEL_SWITCHING,this.onLevelSwitching,this),t.on(T.LEVEL_LOADED,this.onLevelLoaded,this)},e.unregisterListeners=function(){var t=this.hls;t.off(T.FRAG_LOADING,this.onFragLoading,this),t.off(T.FRAG_LOADED,this.onFragLoaded,this),t.off(T.FRAG_BUFFERED,this.onFragBuffered,this),t.off(T.LEVEL_SWITCHING,this.onLevelSwitching,this),t.off(T.LEVEL_LOADED,this.onLevelLoaded,this)},e.destroy=function(){this.unregisterListeners(),this.clearTimer(),this.hls=this.onCheck=null,this.fragCurrent=this.partCurrent=null},e.onFragLoading=function(t,e){var r,i=e.frag;this.ignoreFragment(i)||(this.fragCurrent=i,this.partCurrent=null!=(r=e.part)?r:null,this.clearTimer(),this.timer=self.setInterval(this.onCheck,100))},e.onLevelSwitching=function(t,e){this.clearTimer()},e.getTimeToLoadFrag=function(t,e,r,i){return t+r/e+(i?this.lastLevelLoadSec:0)},e.onLevelLoaded=function(t,e){var r=this.hls.config,i=e.stats,n=i.total,a=i.bwEstimate;y(n)&&y(a)&&(this.lastLevelLoadSec=8*n/a),e.details.live?this.bwEstimator.update(r.abrEwmaSlowLive,r.abrEwmaFastLive):this.bwEstimator.update(r.abrEwmaSlowVoD,r.abrEwmaFastVoD)},e._abandonRulesCheck=function(){var t=this.fragCurrent,e=this.partCurrent,r=this.hls,i=r.autoLevelEnabled,n=r.media;if(t&&n){var a=performance.now(),s=e?e.stats:t.stats,o=e?e.duration:t.duration,l=a-s.loading.start;if(s.aborted||s.loaded&&s.loaded===s.total||0===t.level)return this.clearTimer(),void(this._nextAutoLevel=-1);if(i&&!n.paused&&n.playbackRate&&n.readyState){var u=r.mainForwardBufferInfo;if(null!==u){var h=this.bwEstimator.getEstimateTTFB(),d=Math.abs(n.playbackRate);if(!(l<=Math.max(h,o/(2*d)*1e3))){var c=u.len/d;if(!(c>=2*o/d)){var f=s.loading.first?s.loading.first-s.loading.start:-1,g=s.loaded&&f>-1,v=this.bwEstimator.getEstimate(),m=r.levels,p=r.minAutoLevel,E=m[t.level],S=s.total||Math.max(s.loaded,Math.round(o*E.maxBitrate/8)),L=l-f;L<1&&g&&(L=Math.min(l,8*s.loaded/v));var R=g?1e3*s.loaded/L:0,A=R?(S-s.loaded)/R:8*S/v+h/1e3;if(!(A<=c)){var k,D=R?8*R:v,I=Number.POSITIVE_INFINITY;for(k=t.level-1;k>p;k--){var w=m[k].maxBitrate;if((I=this.getTimeToLoadFrag(h/1e3,D,o*w,!m[k].details))<c)break}I>=A||I>10*o||(r.nextLoadLevel=k,g?this.bwEstimator.sample(l-Math.min(h,f),s.loaded):this.bwEstimator.sampleTTFB(l),this.clearTimer(),b.warn("[abr] Fragment "+t.sn+(e?" part "+e.index:"")+" of level "+t.level+" is loading too slowly;\n      Time to underbuffer: "+c.toFixed(3)+" s\n      Estimated load time for current fragment: "+A.toFixed(3)+" s\n      Estimated load time for down switch fragment: "+I.toFixed(3)+" s\n      TTFB estimate: "+f+"\n      Current BW estimate: "+(y(v)?(v/1024).toFixed(3):"Unknown")+" Kb/s\n      New BW estimate: "+(this.bwEstimator.getEstimate()/1024).toFixed(3)+" Kb/s\n      Aborting and switching to level "+k),t.loader&&(this.fragCurrent=this.partCurrent=null,t.abortRequests()),r.trigger(T.FRAG_LOAD_EMERGENCY_ABORTED,{frag:t,part:e,stats:s}))}}}}}}},e.onFragLoaded=function(t,e){var r=e.frag,i=e.part,n=i?i.stats:r.stats;if(r.type===le&&this.bwEstimator.sampleTTFB(n.loading.first-n.loading.start),!this.ignoreFragment(r)){if(this.clearTimer(),this.lastLoadedFragLevel=r.level,this._nextAutoLevel=-1,this.hls.config.abrMaxWithRealBitrate){var a=i?i.duration:r.duration,s=this.hls.levels[r.level],o=(s.loaded?s.loaded.bytes:0)+n.loaded,l=(s.loaded?s.loaded.duration:0)+a;s.loaded={bytes:o,duration:l},s.realBitrate=Math.round(8*o/l)}if(r.bitrateTest){var u={stats:n,frag:r,part:i,id:r.type};this.onFragBuffered(T.FRAG_BUFFERED,u),r.bitrateTest=!1}}},e.onFragBuffered=function(t,e){var r=e.frag,i=e.part,n=null!=i&&i.stats.loaded?i.stats:r.stats;if(!n.aborted&&!this.ignoreFragment(r)){var a=n.parsing.end-n.loading.start-Math.min(n.loading.first-n.loading.start,this.bwEstimator.getEstimateTTFB());this.bwEstimator.sample(a,n.loaded),n.bwEstimate=this.bwEstimator.getEstimate(),r.bitrateTest?this.bitrateTestDelay=a/1e3:this.bitrateTestDelay=0}},e.ignoreFragment=function(t){return t.type!==le||"initSegment"===t.sn},e.clearTimer=function(){self.clearInterval(this.timer)},e.getNextABRAutoLevel=function(){var t=this.fragCurrent,e=this.partCurrent,r=this.hls,i=r.maxAutoLevel,n=r.config,a=r.minAutoLevel,s=r.media,o=e?e.duration:t?t.duration:0,l=s&&0!==s.playbackRate?Math.abs(s.playbackRate):1,u=this.bwEstimator?this.bwEstimator.getEstimate():n.abrEwmaDefaultEstimate,h=r.mainForwardBufferInfo,d=(h?h.len:0)/l,c=this.findBestLevel(u,a,i,d,n.abrBandWidthFactor,n.abrBandWidthUpFactor);if(c>=0)return c;b.trace("[abr] "+(d?"rebuffering expected":"buffer is empty")+", finding optimal quality level");var f=o?Math.min(o,n.maxStarvationDelay):n.maxStarvationDelay,g=n.abrBandWidthFactor,v=n.abrBandWidthUpFactor;if(!d){var m=this.bitrateTestDelay;m&&(f=(o?Math.min(o,n.maxLoadingDelay):n.maxLoadingDelay)-m,b.trace("[abr] bitrate test took "+Math.round(1e3*m)+"ms, set first fragment max fetchDuration to "+Math.round(1e3*f)+" ms"),g=v=1)}return c=this.findBestLevel(u,a,i,d+f,g,v),Math.max(c,0)},e.findBestLevel=function(t,e,r,i,n,a){for(var s,o=this.fragCurrent,l=this.partCurrent,u=this.lastLoadedFragLevel,h=this.hls.levels,d=h[u],c=!(null==d||null==(s=d.details)||!s.live),f=null==d?void 0:d.codecSet,g=l?l.duration:o?o.duration:0,v=this.bwEstimator.getEstimateTTFB()/1e3,m=e,p=-1,T=r;T>=e;T--){var E=h[T];if(!E||f&&E.codecSet!==f)E&&(m=Math.min(T,m),p=Math.max(T,p));else{-1!==p&&b.trace("[abr] Skipped level(s) "+m+"-"+p+' with CODECS:"'+h[p].attrs.CODECS+'"; not compatible with "'+d.attrs.CODECS+'"');var S,L=E.details,R=(l?null==L?void 0:L.partTarget:null==L?void 0:L.averagetargetduration)||g;S=T<=u?n*t:a*t;var A=h[T].maxBitrate,k=this.getTimeToLoadFrag(v,S,A*R,void 0===L);if(b.trace("[abr] level:"+T+" adjustedbw-bitrate:"+Math.round(S-A)+" avgDuration:"+R.toFixed(1)+" maxFetchDuration:"+i.toFixed(1)+" fetchDuration:"+k.toFixed(1)),S>A&&(0===k||!y(k)||c&&!this.bitrateTestDelay||k<i))return T}}return-1},a(t,[{key:"nextAutoLevel",get:function(){var t=this._nextAutoLevel,e=this.bwEstimator;if(-1!==t&&!e.canEstimate())return t;var r=this.getNextABRAutoLevel();if(-1!==t){var i=this.hls.levels;if(i.length>Math.max(t,r)&&i[t].loadError<=i[r].loadError)return t}return-1!==t&&(r=Math.min(t,r)),r},set:function(t){this._nextAutoLevel=t}}]),t}(),Qi=function(){function t(){this.chunks=[],this.dataLength=0}var e=t.prototype;return e.push=function(t){this.chunks.push(t),this.dataLength+=t.length},e.flush=function(){var t,e=this.chunks,r=this.dataLength;return e.length?(t=1===e.length?e[0]:function(t,e){for(var r=new Uint8Array(e),i=0,n=0;n<t.length;n++){var a=t[n];r.set(a,i),i+=a.length}return r}(e,r),this.reset(),t):new Uint8Array(0)},e.reset=function(){this.chunks.length=0,this.dataLength=0},t}(),$i=function(t){function e(e,r,i){var n;return(n=t.call(this,e,r,i,"[audio-stream-controller]",ue)||this).videoBuffer=null,n.videoTrackCC=-1,n.waitingVideoCC=-1,n.bufferedTrack=null,n.switchingTrack=null,n.trackId=-1,n.waitingData=null,n.mainDetails=null,n.bufferFlushed=!1,n.cachedTrackLoadedData=null,n._registerListeners(),n}l(e,t);var r=e.prototype;return r.onHandlerDestroying=function(){this._unregisterListeners(),this.mainDetails=null,this.bufferedTrack=null,this.switchingTrack=null},r._registerListeners=function(){var t=this.hls;t.on(T.MEDIA_ATTACHED,this.onMediaAttached,this),t.on(T.MEDIA_DETACHING,this.onMediaDetaching,this),t.on(T.MANIFEST_LOADING,this.onManifestLoading,this),t.on(T.LEVEL_LOADED,this.onLevelLoaded,this),t.on(T.AUDIO_TRACKS_UPDATED,this.onAudioTracksUpdated,this),t.on(T.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),t.on(T.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),t.on(T.ERROR,this.onError,this),t.on(T.BUFFER_RESET,this.onBufferReset,this),t.on(T.BUFFER_CREATED,this.onBufferCreated,this),t.on(T.BUFFER_FLUSHED,this.onBufferFlushed,this),t.on(T.INIT_PTS_FOUND,this.onInitPtsFound,this),t.on(T.FRAG_BUFFERED,this.onFragBuffered,this)},r._unregisterListeners=function(){var t=this.hls;t.off(T.MEDIA_ATTACHED,this.onMediaAttached,this),t.off(T.MEDIA_DETACHING,this.onMediaDetaching,this),t.off(T.MANIFEST_LOADING,this.onManifestLoading,this),t.off(T.LEVEL_LOADED,this.onLevelLoaded,this),t.off(T.AUDIO_TRACKS_UPDATED,this.onAudioTracksUpdated,this),t.off(T.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),t.off(T.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),t.off(T.ERROR,this.onError,this),t.off(T.BUFFER_RESET,this.onBufferReset,this),t.off(T.BUFFER_CREATED,this.onBufferCreated,this),t.off(T.BUFFER_FLUSHED,this.onBufferFlushed,this),t.off(T.INIT_PTS_FOUND,this.onInitPtsFound,this),t.off(T.FRAG_BUFFERED,this.onFragBuffered,this)},r.onInitPtsFound=function(t,e){var r=e.frag,i=e.id,n=e.initPTS,a=e.timescale;if("main"===i){var s=r.cc;this.initPTS[r.cc]={baseTime:n,timescale:a},this.log("InitPTS for cc: "+s+" found from main: "+n),this.videoTrackCC=s,this.state===_r&&this.tick()}},r.startLoad=function(t){if(!this.levels)return this.startPosition=t,void(this.state=Sr);var e=this.lastCurrentTime;this.stopLoad(),this.setInterval(100),e>0&&-1===t?(this.log("Override startPosition with lastCurrentTime @"+e.toFixed(3)),t=e,this.state=Lr):(this.loadedmetadata=!1,this.state=br),this.nextLoadPosition=this.startPosition=this.lastCurrentTime=t,this.tick()},r.doTick=function(){switch(this.state){case Lr:this.doTickIdle();break;case br:var e,r=this.levels,i=this.trackId,n=null==r||null==(e=r[i])?void 0:e.details;if(n){if(this.waitForCdnTuneIn(n))break;this.state=_r}break;case kr:var a,s=performance.now(),o=this.retryDate;(!o||s>=o||null!=(a=this.media)&&a.seeking)&&(this.log("RetryDate reached, switch back to IDLE state"),this.resetStartWhenNotLoaded(this.trackId),this.state=Lr);break;case _r:var l=this.waitingData;if(l){var u=l.frag,h=l.part,d=l.cache,c=l.complete;if(void 0!==this.initPTS[u.cc]){this.waitingData=null,this.waitingVideoCC=-1,this.state=Ar;var f={frag:u,part:h,payload:d.flush(),networkDetails:null};this._handleFragmentLoadProgress(f),c&&t.prototype._handleFragmentLoadComplete.call(this,f)}else if(this.videoTrackCC!==this.waitingVideoCC)this.log("Waiting fragment cc ("+u.cc+") cancelled because video is at cc "+this.videoTrackCC),this.clearWaitingFragment();else{var g=this.getLoadPosition(),v=dr.bufferInfo(this.mediaBuffer,g,this.config.maxBufferHole);He(v.end,this.config.maxFragLookUpTolerance,u)<0&&(this.log("Waiting fragment cc ("+u.cc+") @ "+u.start+" cancelled because another fragment at "+v.end+" is needed"),this.clearWaitingFragment())}}else this.state=Lr}this.onTickEnd()},r.clearWaitingFragment=function(){var t=this.waitingData;t&&(this.fragmentTracker.removeFragment(t.frag),this.waitingData=null,this.waitingVideoCC=-1,this.state=Lr)},r.resetLoadingState=function(){this.clearWaitingFragment(),t.prototype.resetLoadingState.call(this)},r.onTickEnd=function(){var t=this.media;null!=t&&t.readyState&&(this.lastCurrentTime=t.currentTime)},r.doTickIdle=function(){var t=this.hls,e=this.levels,r=this.media,i=this.trackId,n=t.config;if(null!=e&&e[i]&&(r||!this.startFragRequested&&n.startFragPrefetch)){var a=e[i],s=a.details;if(!s||s.live&&this.levelLastLoaded!==i||this.waitForCdnTuneIn(s))this.state=br;else{var o=this.mediaBuffer?this.mediaBuffer:this.media;this.bufferFlushed&&o&&(this.bufferFlushed=!1,this.afterBufferFlushed(o,x,ue));var l=this.getFwdBufferInfo(o,ue);if(null!==l){var u=this.bufferedTrack,h=this.switchingTrack;if(!h&&this._streamEnded(l,s))return t.trigger(T.BUFFER_EOS,{type:"audio"}),void(this.state=wr);var d=this.getFwdBufferInfo(this.videoBuffer?this.videoBuffer:this.media,le),c=l.len,f=this.getMaxBufferLength(null==d?void 0:d.len);if(!(c>=f)||h){var g=s.fragments[0].start,v=l.end;if(h&&r){var m=this.getLoadPosition();u&&h.attrs!==u.attrs&&(v=m),s.PTSKnown&&m<g&&(l.end>g||l.nextStart)&&(this.log("Alt audio track ahead of main track, seek to start of alt audio track"),r.currentTime=g+.05)}var p=this.getNextFragment(v,s),y=!1;if(p&&this.isLoopLoading(p,v)&&(y=!!p.gap,p=this.getNextFragmentLoopLoading(p,s,l,le,f)),p){var E=d&&p.start>d.end+s.targetduration;if(E||(null==d||!d.len)&&l.len){var S=this.getAppendedFrag(p.start,le);if(null===S)return;if(y||(y=!!S.gap||!!E&&0===d.len),E&&!y||y&&l.nextStart&&l.nextStart<S.end)return}this.loadFragment(p,a,v)}else this.bufferFlushed=!0}}}}},r.getMaxBufferLength=function(e){var r=t.prototype.getMaxBufferLength.call(this);return e?Math.min(Math.max(r,e),this.config.maxMaxBufferLength):r},r.onMediaDetaching=function(){this.videoBuffer=null,t.prototype.onMediaDetaching.call(this)},r.onAudioTracksUpdated=function(t,e){var r=e.audioTracks;this.resetTransmuxer(),this.levels=r.map(function(t){return new De(t)})},r.onAudioTrackSwitching=function(t,e){var r=!!e.url;this.trackId=e.id;var i=this.fragCurrent;i&&(i.abortRequests(),this.removeUnbufferedFrags(i.start)),this.resetLoadingState(),r?this.setInterval(100):this.resetTransmuxer(),r?(this.switchingTrack=e,this.state=Lr):(this.switchingTrack=null,this.bufferedTrack=e,this.state=Sr),this.tick()},r.onManifestLoading=function(){this.fragmentTracker.removeAllFragments(),this.startPosition=this.lastCurrentTime=0,this.bufferFlushed=!1,this.levels=this.mainDetails=this.waitingData=this.bufferedTrack=this.cachedTrackLoadedData=this.switchingTrack=null,this.startFragRequested=!1,this.trackId=this.videoTrackCC=this.waitingVideoCC=-1},r.onLevelLoaded=function(t,e){this.mainDetails=e.details,null!==this.cachedTrackLoadedData&&(this.hls.trigger(T.AUDIO_TRACK_LOADED,this.cachedTrackLoadedData),this.cachedTrackLoadedData=null)},r.onAudioTrackLoaded=function(t,e){var r;if(null!=this.mainDetails){var i=this.levels,n=e.details,a=e.id;if(i){this.log("Track "+a+" loaded ["+n.startSN+","+n.endSN+"]"+(n.lastPartSn?"[part-"+n.lastPartSn+"-"+n.lastPartIndex+"]":"")+",duration:"+n.totalduration);var s=i[a],o=0;if(n.live||null!=(r=s.details)&&r.live){this.checkLiveUpdate(n);var l=this.mainDetails;if(n.deltaUpdateFailed||!l)return;!s.details&&n.hasProgramDateTime&&l.hasProgramDateTime?(mr(n,l),o=n.fragments[0].start):o=this.alignPlaylists(n,s.details)}s.details=n,this.levelLastLoaded=a,this.startFragRequested||!this.mainDetails&&n.live||this.setStartPosition(s.details,o),this.state!==br||this.waitForCdnTuneIn(n)||(this.state=Lr),this.tick()}else this.warn("Audio tracks were reset while loading level "+a)}else this.cachedTrackLoadedData=e},r._handleFragmentLoadProgress=function(t){var e,r=t.frag,i=t.part,n=t.payload,a=this.config,s=this.trackId,o=this.levels;if(o){var l=o[s];if(l){var u=l.details;if(!u)return this.warn("Audio track details undefined on fragment load progress"),void this.removeUnbufferedFrags(r.start);var h=a.defaultAudioCodec||l.audioCodec||"mp4a.40.2",d=this.transmuxer;d||(d=this.transmuxer=new Yi(this.hls,ue,this._handleTransmuxComplete.bind(this),this._handleTransmuxerFlush.bind(this)));var c=this.initPTS[r.cc],f=null==(e=r.initSegment)?void 0:e.data;if(void 0!==c){var g=i?i.index:-1,v=-1!==g,m=new cr(r.level,r.sn,r.stats.chunkCount,n.byteLength,g,v);d.push(n,f,h,"",r,i,u.totalduration,!1,m,c)}else this.log("Unknown video PTS for cc "+r.cc+", waiting for video PTS before demuxing audio frag "+r.sn+" of ["+u.startSN+" ,"+u.endSN+"],track "+s),(this.waitingData=this.waitingData||{frag:r,part:i,cache:new Qi,complete:!1}).cache.push(new Uint8Array(n)),this.waitingVideoCC=this.videoTrackCC,this.state=_r}else this.warn("Audio track is undefined on fragment load progress")}else this.warn("Audio tracks were reset while fragment load was in progress. Fragment "+r.sn+" of level "+r.level+" will not be buffered")},r._handleFragmentLoadComplete=function(e){this.waitingData?this.waitingData.complete=!0:t.prototype._handleFragmentLoadComplete.call(this,e)},r.onBufferReset=function(){this.mediaBuffer=this.videoBuffer=null,this.loadedmetadata=!1},r.onBufferCreated=function(t,e){var r=e.tracks.audio;r&&(this.mediaBuffer=r.buffer||null),e.tracks.video&&(this.videoBuffer=e.tracks.video.buffer||null)},r.onFragBuffered=function(t,e){var r=e.frag,n=e.part;if(r.type===ue)if(this.fragContextChanged(r))this.warn("Fragment "+r.sn+(n?" p: "+n.index:"")+" of level "+r.level+" finished buffering, but was aborted. state: "+this.state+", audioSwitch: "+(this.switchingTrack?this.switchingTrack.name:"false"));else{if("initSegment"!==r.sn){this.fragPrevious=r;var a=this.switchingTrack;a&&(this.bufferedTrack=a,this.switchingTrack=null,this.hls.trigger(T.AUDIO_TRACK_SWITCHED,i({},a)))}this.fragBufferedComplete(r,n)}else if(!this.loadedmetadata&&r.type===le){var s=this.videoBuffer||this.media;s&&dr.getBuffered(s).length&&(this.loadedmetadata=!0)}},r.onError=function(e,r){var i;if(r.fatal)this.state=Cr;else switch(r.details){case S.FRAG_GAP:case S.FRAG_PARSING_ERROR:case S.FRAG_DECRYPT_ERROR:case S.FRAG_LOAD_ERROR:case S.FRAG_LOAD_TIMEOUT:case S.KEY_LOAD_ERROR:case S.KEY_LOAD_TIMEOUT:this.onFragmentOrKeyLoadError(ue,r);break;case S.AUDIO_TRACK_LOAD_ERROR:case S.AUDIO_TRACK_LOAD_TIMEOUT:case S.LEVEL_PARSING_ERROR:r.levelRetry||this.state!==br||(null==(i=r.context)?void 0:i.type)!==se||(this.state=Lr);break;case S.BUFFER_FULL_ERROR:if(!r.parent||"audio"!==r.parent)return;this.reduceLengthAndFlushBuffer(r)&&(this.bufferedTrack=null,t.prototype.flushMainBuffer.call(this,0,Number.POSITIVE_INFINITY,"audio"));break;case S.INTERNAL_EXCEPTION:this.recoverWorkerError(r)}},r.onBufferFlushed=function(t,e){e.type===x&&(this.bufferFlushed=!0,this.state===wr&&(this.state=Lr))},r._handleTransmuxComplete=function(t){var e,r="audio",i=this.hls,n=t.remuxResult,a=t.chunkMeta,s=this.getCurrentContext(a);if(s){var l=s.frag,u=s.part,h=s.level.details,d=n.audio,c=n.text,f=n.id3,g=n.initSegment;if(!this.fragContextChanged(l)&&h){if(this.state=Dr,this.switchingTrack&&d&&this.completeAudioSwitch(this.switchingTrack),null!=g&&g.tracks){var v=l.initSegment||l;this._bufferInitSegment(g.tracks,v,a),i.trigger(T.FRAG_PARSING_INIT_SEGMENT,{frag:v,id:r,tracks:g.tracks})}if(d){var m=d.startPTS,p=d.endPTS,y=d.startDTS,E=d.endDTS;u&&(u.elementaryStreams[x]={startPTS:m,endPTS:p,startDTS:y,endDTS:E}),l.setElementaryStreamInfo(x,m,p,y,E),this.bufferFragmentData(d,l,u,a)}if(null!=f&&null!=(e=f.samples)&&e.length){var S=o({id:r,frag:l,details:h},f);i.trigger(T.FRAG_PARSING_METADATA,S)}if(c){var L=o({id:r,frag:l,details:h},c);i.trigger(T.FRAG_PARSING_USERDATA,L)}}else this.fragmentTracker.removeFragment(l)}else this.resetWhenMissingContext(a)},r._bufferInitSegment=function(t,e,r){if(this.state===Dr){t.video&&delete t.video;var i=t.audio;if(i){i.levelCodec=i.codec,i.id="audio",this.log("Init audio buffer, container:"+i.container+", codecs[parsed]=["+i.codec+"]"),this.hls.trigger(T.BUFFER_CODECS,t);var n=i.initSegment;if(null!=n&&n.byteLength){var a={type:"audio",frag:e,part:null,chunkMeta:r,parent:e.type,data:n};this.hls.trigger(T.BUFFER_APPENDING,a)}this.tick()}}},r.loadFragment=function(e,r,i){var n,a=this.fragmentTracker.getState(e);this.fragCurrent=e,this.switchingTrack||a===Qe||a===Je?"initSegment"===e.sn?this._loadInitSegment(e,r):null!=(n=r.details)&&n.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=_r):(this.startFragRequested=!0,t.prototype.loadFragment.call(this,e,r,i)):this.clearTrackerIfNeeded(e)},r.completeAudioSwitch=function(e){var r=this.hls,n=this.media,a=this.bufferedTrack,s=null==a?void 0:a.attrs,o=e.attrs;n&&s&&(s.CHANNELS!==o.CHANNELS||s.NAME!==o.NAME||s.LANGUAGE!==o.LANGUAGE)&&(this.log("Switching audio track:flushing all audio"),t.prototype.flushMainBuffer.call(this,0,Number.POSITIVE_INFINITY,"audio")),this.bufferedTrack=e,this.switchingTrack=null,r.trigger(T.AUDIO_TRACK_SWITCHED,i({},e))},e}(xr),Ji=function(t){function e(e){var r;return(r=t.call(this,e,"[audio-track-controller]")||this).tracks=[],r.groupId=null,r.tracksInGroup=[],r.trackId=-1,r.currentTrack=null,r.selectDefaultTrack=!0,r.registerListeners(),r}l(e,t);var r=e.prototype;return r.registerListeners=function(){var t=this.hls;t.on(T.MANIFEST_LOADING,this.onManifestLoading,this),t.on(T.MANIFEST_PARSED,this.onManifestParsed,this),t.on(T.LEVEL_LOADING,this.onLevelLoading,this),t.on(T.LEVEL_SWITCHING,this.onLevelSwitching,this),t.on(T.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),t.on(T.ERROR,this.onError,this)},r.unregisterListeners=function(){var t=this.hls;t.off(T.MANIFEST_LOADING,this.onManifestLoading,this),t.off(T.MANIFEST_PARSED,this.onManifestParsed,this),t.off(T.LEVEL_LOADING,this.onLevelLoading,this),t.off(T.LEVEL_SWITCHING,this.onLevelSwitching,this),t.off(T.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),t.off(T.ERROR,this.onError,this)},r.destroy=function(){this.unregisterListeners(),this.tracks.length=0,this.tracksInGroup.length=0,this.currentTrack=null,t.prototype.destroy.call(this)},r.onManifestLoading=function(){this.tracks=[],this.groupId=null,this.tracksInGroup=[],this.trackId=-1,this.currentTrack=null,this.selectDefaultTrack=!0},r.onManifestParsed=function(t,e){this.tracks=e.audioTracks||[]},r.onAudioTrackLoaded=function(t,e){var r=e.id,i=e.groupId,n=e.details,a=this.tracksInGroup[r];if(a&&a.groupId===i){var s=a.details;a.details=e.details,this.log("audio-track "+r+' "'+a.name+'" lang:'+a.lang+" group:"+i+" loaded ["+n.startSN+"-"+n.endSN+"]"),r===this.trackId&&this.playlistLoaded(r,e,s)}else this.warn("Track with id:"+r+" and group:"+i+" not found in active group "+a.groupId)},r.onLevelLoading=function(t,e){this.switchLevel(e.level)},r.onLevelSwitching=function(t,e){this.switchLevel(e.level)},r.switchLevel=function(t){var e=this.hls.levels[t];if(null!=e&&e.audioGroupIds){var r=e.audioGroupIds[e.urlId];if(this.groupId!==r){this.groupId=r||null;var i=this.tracks.filter(function(t){return!r||t.groupId===r});this.selectDefaultTrack&&!i.some(function(t){return t.default})&&(this.selectDefaultTrack=!1),this.tracksInGroup=i;var n={audioTracks:i};this.log("Updating audio tracks, "+i.length+" track(s) found in group:"+r),this.hls.trigger(T.AUDIO_TRACKS_UPDATED,n),this.selectInitialTrack()}else this.shouldReloadPlaylist(this.currentTrack)&&this.setAudioTrack(this.trackId)}},r.onError=function(t,e){!e.fatal&&e.context&&e.context.type===se&&e.context.id===this.trackId&&e.context.groupId===this.groupId&&(this.requestScheduled=-1,this.checkRetry(e))},r.setAudioTrack=function(t){var e=this.tracksInGroup;if(t<0||t>=e.length)this.warn("Invalid id passed to audio-track controller");else{this.clearTimer();var r=this.currentTrack;e[this.trackId];var n=e[t],a=n.groupId,s=n.name;if(this.log("Switching to audio-track "+t+' "'+s+'" lang:'+n.lang+" group:"+a),this.trackId=t,this.currentTrack=n,this.selectDefaultTrack=!1,this.hls.trigger(T.AUDIO_TRACK_SWITCHING,i({},n)),!n.details||n.details.live){var o=this.switchParams(n.url,null==r?void 0:r.details);this.loadPlaylist(o)}}},r.selectInitialTrack=function(){var t=this.tracksInGroup,e=this.findTrackId(this.currentTrack)|this.findTrackId(null);if(-1!==e)this.setAudioTrack(e);else{var r=new Error("No track found for running audio group-ID: "+this.groupId+" track count: "+t.length);this.warn(r.message),this.hls.trigger(T.ERROR,{type:E.MEDIA_ERROR,details:S.AUDIO_TRACK_LOAD_ERROR,fatal:!0,error:r})}},r.findTrackId=function(t){for(var e=this.tracksInGroup,r=0;r<e.length;r++){var i=e[r];if(!this.selectDefaultTrack||i.default){if(!t||void 0!==t.attrs["STABLE-RENDITION-ID"]&&t.attrs["STABLE-RENDITION-ID"]===i.attrs["STABLE-RENDITION-ID"])return i.id;if(t.name===i.name&&t.lang===i.lang)return i.id}}return-1},r.loadPlaylist=function(e){t.prototype.loadPlaylist.call(this);var r=this.tracksInGroup[this.trackId];if(this.shouldLoadPlaylist(r)){var i=r.id,n=r.groupId,a=r.url;if(e)try{a=e.addDirectives(a)}catch(t){this.warn("Could not construct new URL with HLS Delivery Directives: "+t)}this.log("loading audio-track playlist "+i+' "'+r.name+'" lang:'+r.lang+" group:"+n),this.clearTimer(),this.hls.trigger(T.AUDIO_TRACK_LOADING,{url:a,id:i,groupId:n,deliveryDirectives:e||null})}},a(e,[{key:"audioTracks",get:function(){return this.tracksInGroup}},{key:"audioTrack",get:function(){return this.trackId},set:function(t){this.selectDefaultTrack=!1,this.setAudioTrack(t)}}]),e}(je);function Zi(t,e){if(t.length!==e.length)return!1;for(var r=0;r<t.length;r++)if(!tn(t[r].attrs,e[r].attrs))return!1;return!0}function tn(t,e){var r=t["STABLE-RENDITION-ID"];return r?r===e["STABLE-RENDITION-ID"]:!["LANGUAGE","NAME","CHARACTERISTICS","AUTOSELECT","DEFAULT","FORCED"].some(function(r){return t[r]!==e[r]})}var en=function(t){function e(e,r,i){var n;return(n=t.call(this,e,r,i,"[subtitle-stream-controller]",he)||this).levels=[],n.currentTrackId=-1,n.tracksBuffered=[],n.mainDetails=null,n._registerListeners(),n}l(e,t);var r=e.prototype;return r.onHandlerDestroying=function(){this._unregisterListeners(),this.mainDetails=null},r._registerListeners=function(){var t=this.hls;t.on(T.MEDIA_ATTACHED,this.onMediaAttached,this),t.on(T.MEDIA_DETACHING,this.onMediaDetaching,this),t.on(T.MANIFEST_LOADING,this.onManifestLoading,this),t.on(T.LEVEL_LOADED,this.onLevelLoaded,this),t.on(T.ERROR,this.onError,this),t.on(T.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),t.on(T.SUBTITLE_TRACK_SWITCH,this.onSubtitleTrackSwitch,this),t.on(T.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),t.on(T.SUBTITLE_FRAG_PROCESSED,this.onSubtitleFragProcessed,this),t.on(T.BUFFER_FLUSHING,this.onBufferFlushing,this),t.on(T.FRAG_BUFFERED,this.onFragBuffered,this)},r._unregisterListeners=function(){var t=this.hls;t.off(T.MEDIA_ATTACHED,this.onMediaAttached,this),t.off(T.MEDIA_DETACHING,this.onMediaDetaching,this),t.off(T.MANIFEST_LOADING,this.onManifestLoading,this),t.off(T.LEVEL_LOADED,this.onLevelLoaded,this),t.off(T.ERROR,this.onError,this),t.off(T.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),t.off(T.SUBTITLE_TRACK_SWITCH,this.onSubtitleTrackSwitch,this),t.off(T.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),t.off(T.SUBTITLE_FRAG_PROCESSED,this.onSubtitleFragProcessed,this),t.off(T.BUFFER_FLUSHING,this.onBufferFlushing,this),t.off(T.FRAG_BUFFERED,this.onFragBuffered,this)},r.startLoad=function(t){this.stopLoad(),this.state=Lr,this.setInterval(500),this.nextLoadPosition=this.startPosition=this.lastCurrentTime=t,this.tick()},r.onManifestLoading=function(){this.mainDetails=null,this.fragmentTracker.removeAllFragments()},r.onMediaDetaching=function(){this.tracksBuffered=[],t.prototype.onMediaDetaching.call(this)},r.onLevelLoaded=function(t,e){this.mainDetails=e.details},r.onSubtitleFragProcessed=function(t,e){var r=e.frag,i=e.success;if(this.fragPrevious=r,this.state=Lr,i){var n=this.tracksBuffered[this.currentTrackId];if(n){for(var a,s=r.start,o=0;o<n.length;o++)if(s>=n[o].start&&s<=n[o].end){a=n[o];break}var l=r.start+r.duration;a?a.end=l:(a={start:s,end:l},n.push(a)),this.fragmentTracker.fragBuffered(r)}}},r.onBufferFlushing=function(t,e){var r=e.startOffset,i=e.endOffset;if(0===r&&i!==Number.POSITIVE_INFINITY){var n=i-1;if(n<=0)return;e.endOffsetSubtitles=Math.max(0,n),this.tracksBuffered.forEach(function(t){for(var e=0;e<t.length;)if(t[e].end<=n)t.shift();else{if(!(t[e].start<n))break;t[e].start=n,e++}}),this.fragmentTracker.removeFragmentsInRange(r,n,he)}},r.onFragBuffered=function(t,e){var r;this.loadedmetadata||e.frag.type!==le||null!=(r=this.media)&&r.buffered.length&&(this.loadedmetadata=!0)},r.onError=function(t,e){var r=e.frag;(null==r?void 0:r.type)===he&&(this.fragCurrent&&this.fragCurrent.abortRequests(),this.state!==Sr&&(this.state=Lr))},r.onSubtitleTracksUpdated=function(t,e){var r=this,i=e.subtitleTracks;Zi(this.levels,i)?this.levels=i.map(function(t){return new De(t)}):(this.tracksBuffered=[],this.levels=i.map(function(t){var e=new De(t);return r.tracksBuffered[e.id]=[],e}),this.fragmentTracker.removeFragmentsInRange(0,Number.POSITIVE_INFINITY,he),this.fragPrevious=null,this.mediaBuffer=null)},r.onSubtitleTrackSwitch=function(t,e){if(this.currentTrackId=e.id,this.levels.length&&-1!==this.currentTrackId){var r=this.levels[this.currentTrackId];null!=r&&r.details?this.mediaBuffer=this.mediaBufferTimeRanges:this.mediaBuffer=null,r&&this.setInterval(500)}else this.clearInterval()},r.onSubtitleTrackLoaded=function(t,e){var r,i=e.details,n=e.id,a=this.currentTrackId,s=this.levels;if(s.length){var o=s[a];if(!(n>=s.length||n!==a)&&o){this.mediaBuffer=this.mediaBufferTimeRanges;var l=0;if(i.live||null!=(r=o.details)&&r.live){var u=this.mainDetails;if(i.deltaUpdateFailed||!u)return;var h=u.fragments[0];o.details?0===(l=this.alignPlaylists(i,o.details))&&h&&Pe(i,l=h.start):i.hasProgramDateTime&&u.hasProgramDateTime?(mr(i,u),l=i.fragments[0].start):h&&Pe(i,l=h.start)}o.details=i,this.levelLastLoaded=n,this.startFragRequested||!this.mainDetails&&i.live||this.setStartPosition(o.details,l),this.tick(),i.live&&!this.fragCurrent&&this.media&&this.state===Lr&&(Ke(null,i.fragments,this.media.currentTime,0)||(this.warn("Subtitle playlist not aligned with playback"),o.details=void 0))}}},r._handleFragmentLoadComplete=function(t){var e=this,r=t.frag,i=t.payload,n=r.decryptdata,a=this.hls;if(!this.fragContextChanged(r)&&i&&i.byteLength>0&&n&&n.key&&n.iv&&"AES-128"===n.method){var s=performance.now();this.decrypter.decrypt(new Uint8Array(i),n.key.buffer,n.iv.buffer).catch(function(t){throw a.trigger(T.ERROR,{type:E.MEDIA_ERROR,details:S.FRAG_DECRYPT_ERROR,fatal:!1,error:t,reason:t.message,frag:r}),t}).then(function(t){var e=performance.now();a.trigger(T.FRAG_DECRYPTED,{frag:r,payload:t,stats:{tstart:s,tdecrypt:e}})}).catch(function(t){e.warn(t.name+": "+t.message),e.state=Lr})}},r.doTick=function(){if(this.media){if(this.state===Lr){var t=this.currentTrackId,e=this.levels,r=e[t];if(!e.length||!r||!r.details)return;var i=this.config,n=this.getLoadPosition(),a=dr.bufferedInfo(this.tracksBuffered[this.currentTrackId]||[],n,i.maxBufferHole),s=a.end,o=a.len,l=this.getFwdBufferInfo(this.media,le),u=r.details;if(o>this.getMaxBufferLength(null==l?void 0:l.len)+u.levelTargetDuration)return;var h=u.fragments,d=h.length,c=u.edge,f=null,g=this.fragPrevious;if(s<c){var v=i.maxFragLookUpTolerance,m=s>c-v?0:v;!(f=Ke(g,h,Math.max(h[0].start,s),m))&&g&&g.start<h[0].start&&(f=h[0])}else f=h[d-1];if(!f)return;if("initSegment"!==(f=this.mapToInitFragWhenRequired(f)).sn){var p=h[f.sn-u.startSN-1];p&&p.cc===f.cc&&this.fragmentTracker.getState(p)===Qe&&(f=p)}this.fragmentTracker.getState(f)===Qe&&this.loadFragment(f,r,s)}}else this.state=Lr},r.getMaxBufferLength=function(e){var r=t.prototype.getMaxBufferLength.call(this);return e?Math.max(r,e):r},r.loadFragment=function(e,r,i){this.fragCurrent=e,"initSegment"===e.sn?this._loadInitSegment(e,r):(this.startFragRequested=!0,t.prototype.loadFragment.call(this,e,r,i))},a(e,[{key:"mediaBufferTimeRanges",get:function(){return new rn(this.tracksBuffered[this.currentTrackId]||[])}}]),e}(xr),rn=function(t){this.buffered=void 0;var e=function(e,r,i){if((r>>>=0)>i-1)throw new DOMException("Failed to execute '"+e+"' on 'TimeRanges': The index provided ("+r+") is greater than the maximum bound ("+i+")");return t[r][e]};this.buffered={get length(){return t.length},end:function(r){return e("end",r,t.length)},start:function(r){return e("start",r,t.length)}}},nn=function(t){function e(e){var r;return(r=t.call(this,e,"[subtitle-track-controller]")||this).media=null,r.tracks=[],r.groupId=null,r.tracksInGroup=[],r.trackId=-1,r.selectDefaultTrack=!0,r.queuedDefaultTrack=-1,r.trackChangeListener=function(){return r.onTextTracksChanged()},r.asyncPollTrackChange=function(){return r.pollTrackChange(0)},r.useTextTrackPolling=!1,r.subtitlePollingInterval=-1,r._subtitleDisplay=!0,r.registerListeners(),r}l(e,t);var r=e.prototype;return r.destroy=function(){this.unregisterListeners(),this.tracks.length=0,this.tracksInGroup.length=0,this.trackChangeListener=this.asyncPollTrackChange=null,t.prototype.destroy.call(this)},r.registerListeners=function(){var t=this.hls;t.on(T.MEDIA_ATTACHED,this.onMediaAttached,this),t.on(T.MEDIA_DETACHING,this.onMediaDetaching,this),t.on(T.MANIFEST_LOADING,this.onManifestLoading,this),t.on(T.MANIFEST_PARSED,this.onManifestParsed,this),t.on(T.LEVEL_LOADING,this.onLevelLoading,this),t.on(T.LEVEL_SWITCHING,this.onLevelSwitching,this),t.on(T.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),t.on(T.ERROR,this.onError,this)},r.unregisterListeners=function(){var t=this.hls;t.off(T.MEDIA_ATTACHED,this.onMediaAttached,this),t.off(T.MEDIA_DETACHING,this.onMediaDetaching,this),t.off(T.MANIFEST_LOADING,this.onManifestLoading,this),t.off(T.MANIFEST_PARSED,this.onManifestParsed,this),t.off(T.LEVEL_LOADING,this.onLevelLoading,this),t.off(T.LEVEL_SWITCHING,this.onLevelSwitching,this),t.off(T.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),t.off(T.ERROR,this.onError,this)},r.onMediaAttached=function(t,e){this.media=e.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))},r.pollTrackChange=function(t){self.clearInterval(this.subtitlePollingInterval),this.subtitlePollingInterval=self.setInterval(this.trackChangeListener,t)},r.onMediaDetaching=function(){this.media&&(self.clearInterval(this.subtitlePollingInterval),this.useTextTrackPolling||this.media.textTracks.removeEventListener("change",this.asyncPollTrackChange),this.trackId>-1&&(this.queuedDefaultTrack=this.trackId),an(this.media.textTracks).forEach(function(t){me(t)}),this.subtitleTrack=-1,this.media=null)},r.onManifestLoading=function(){this.tracks=[],this.groupId=null,this.tracksInGroup=[],this.trackId=-1,this.selectDefaultTrack=!0},r.onManifestParsed=function(t,e){this.tracks=e.subtitleTracks},r.onSubtitleTrackLoaded=function(t,e){var r=e.id,i=e.details,n=this.trackId,a=this.tracksInGroup[n];if(a){var s=a.details;a.details=e.details,this.log("subtitle track "+r+" loaded ["+i.startSN+"-"+i.endSN+"]"),r===this.trackId&&this.playlistLoaded(r,e,s)}else this.warn("Invalid subtitle track id "+r)},r.onLevelLoading=function(t,e){this.switchLevel(e.level)},r.onLevelSwitching=function(t,e){this.switchLevel(e.level)},r.switchLevel=function(t){var e=this.hls.levels[t];if(null!=e&&e.textGroupIds){var r=e.textGroupIds[e.urlId],i=this.tracksInGroup?this.tracksInGroup[this.trackId]:void 0;if(this.groupId!==r){var n=this.tracks.filter(function(t){return!r||t.groupId===r});this.tracksInGroup=n;var a=this.findTrackId(null==i?void 0:i.name)||this.findTrackId();this.groupId=r||null;var s={subtitleTracks:n};this.log("Updating subtitle tracks, "+n.length+' track(s) found in "'+r+'" group-id'),this.hls.trigger(T.SUBTITLE_TRACKS_UPDATED,s),-1!==a&&this.setSubtitleTrack(a,i)}else this.shouldReloadPlaylist(i)&&this.setSubtitleTrack(this.trackId,i)}},r.findTrackId=function(t){for(var e=this.tracksInGroup,r=0;r<e.length;r++){var i=e[r];if((!this.selectDefaultTrack||i.default)&&(!t||t===i.name))return i.id}return-1},r.onError=function(t,e){!e.fatal&&e.context&&e.context.type===oe&&e.context.id===this.trackId&&e.context.groupId===this.groupId&&this.checkRetry(e)},r.loadPlaylist=function(e){t.prototype.loadPlaylist.call(this);var r=this.tracksInGroup[this.trackId];if(this.shouldLoadPlaylist(r)){var i=r.id,n=r.groupId,a=r.url;if(e)try{a=e.addDirectives(a)}catch(t){this.warn("Could not construct new URL with HLS Delivery Directives: "+t)}this.log("Loading subtitle playlist for id "+i),this.hls.trigger(T.SUBTITLE_TRACK_LOADING,{url:a,id:i,groupId:n,deliveryDirectives:e||null})}},r.toggleTrackModes=function(t){var e=this,r=this.media,i=this.trackId;if(r){var n=an(r.textTracks),a=n.filter(function(t){return t.groupId===e.groupId});if(-1===t)[].slice.call(n).forEach(function(t){t.mode="disabled"});else{var s=a[i];s&&(s.mode="disabled")}var o=a[t];o&&(o.mode=this.subtitleDisplay?"showing":"hidden")}},r.setSubtitleTrack=function(t,e){var r,i=this.tracksInGroup;if(this.media){if(this.trackId!==t&&this.toggleTrackModes(t),!(this.trackId===t&&(-1===t||null!=(r=i[t])&&r.details)||t<-1||t>=i.length)){this.clearTimer();var n=i[t];if(this.log("Switching to subtitle-track "+t+(n?' "'+n.name+'" lang:'+n.lang+" group:"+n.groupId:"")),this.trackId=t,n){var a=n.id,s=n.groupId,o=void 0===s?"":s,l=n.name,u=n.type,h=n.url;this.hls.trigger(T.SUBTITLE_TRACK_SWITCH,{id:a,groupId:o,name:l,type:u,url:h});var d=this.switchParams(n.url,null==e?void 0:e.details);this.loadPlaylist(d)}else this.hls.trigger(T.SUBTITLE_TRACK_SWITCH,{id:t})}}else this.queuedDefaultTrack=t},r.onTextTracksChanged=function(){if(this.useTextTrackPolling||self.clearInterval(this.subtitlePollingInterval),this.media&&this.hls.config.renderTextTracksNatively){for(var t=-1,e=an(this.media.textTracks),r=0;r<e.length;r++)if("hidden"===e[r].mode)t=r;else if("showing"===e[r].mode){t=r;break}this.subtitleTrack!==t&&(this.subtitleTrack=t)}},a(e,[{key:"subtitleDisplay",get:function(){return this._subtitleDisplay},set:function(t){this._subtitleDisplay=t,this.trackId>-1&&this.toggleTrackModes(this.trackId)}},{key:"subtitleTracks",get:function(){return this.tracksInGroup}},{key:"subtitleTrack",get:function(){return this.trackId},set:function(t){this.selectDefaultTrack=!1;var e=this.tracksInGroup?this.tracksInGroup[this.trackId]:void 0;this.setSubtitleTrack(t,e)}}]),e}(je);function an(t){for(var e=[],r=0;r<t.length;r++){var i=t[r];"subtitles"!==i.kind&&"captions"!==i.kind||!i.label||e.push(t[r])}return e}var sn=function(){function t(t){this.buffers=void 0,this.queues={video:[],audio:[],audiovideo:[]},this.buffers=t}var e=t.prototype;return e.append=function(t,e){var r=this.queues[e];r.push(t),1===r.length&&this.buffers[e]&&this.executeNext(e)},e.insertAbort=function(t,e){this.queues[e].unshift(t),this.executeNext(e)},e.appendBlocker=function(t){var e,r=new Promise(function(t){e=t}),i={execute:e,onStart:function(){},onComplete:function(){},onError:function(){}};return this.append(i,t),r},e.executeNext=function(t){var e=this.buffers,r=this.queues,i=e[t],n=r[t];if(n.length){var a=n[0];try{a.execute()}catch(e){b.warn("[buffer-operation-queue]: Unhandled exception executing the current operation"),a.onError(e),null!=i&&i.updating||(n.shift(),this.executeNext(t))}}},e.shiftAndExecuteNext=function(t){this.queues[t].shift(),this.executeNext(t)},e.current=function(t){return this.queues[t][0]},t}(),on=Kt(),ln=/([ha]vc.)(?:\.[^.,]+)+/,un=function(){function t(t){var e=this;this.details=null,this._objectUrl=null,this.operationQueue=void 0,this.listeners=void 0,this.hls=void 0,this.bufferCodecEventsExpected=0,this._bufferCodecEventsTotal=0,this.media=null,this.mediaSource=null,this.lastMpegAudioChunk=null,this.appendError=0,this.tracks={},this.pendingTracks={},this.sourceBuffer=void 0,this._onMediaSourceOpen=function(){var t=e.media,r=e.mediaSource;b.log("[buffer-controller]: Media source opened"),t&&(t.removeEventListener("emptied",e._onMediaEmptied),e.updateMediaElementDuration(),e.hls.trigger(T.MEDIA_ATTACHED,{media:t})),r&&r.removeEventListener("sourceopen",e._onMediaSourceOpen),e.checkPendingTracks()},this._onMediaSourceClose=function(){b.log("[buffer-controller]: Media source closed")},this._onMediaSourceEnded=function(){b.log("[buffer-controller]: Media source ended")},this._onMediaEmptied=function(){var t=e.media,r=e._objectUrl;t&&t.src!==r&&b.error("Media element src was set while attaching MediaSource ("+r+" > "+t.src+")")},this.hls=t,this._initSourceBuffer(),this.registerListeners()}var e=t.prototype;return e.hasSourceTypes=function(){return this.getSourceBufferTypes().length>0||Object.keys(this.pendingTracks).length>0},e.destroy=function(){this.unregisterListeners(),this.details=null,this.lastMpegAudioChunk=null},e.registerListeners=function(){var t=this.hls;t.on(T.MEDIA_ATTACHING,this.onMediaAttaching,this),t.on(T.MEDIA_DETACHING,this.onMediaDetaching,this),t.on(T.MANIFEST_LOADING,this.onManifestLoading,this),t.on(T.MANIFEST_PARSED,this.onManifestParsed,this),t.on(T.BUFFER_RESET,this.onBufferReset,this),t.on(T.BUFFER_APPENDING,this.onBufferAppending,this),t.on(T.BUFFER_CODECS,this.onBufferCodecs,this),t.on(T.BUFFER_EOS,this.onBufferEos,this),t.on(T.BUFFER_FLUSHING,this.onBufferFlushing,this),t.on(T.LEVEL_UPDATED,this.onLevelUpdated,this),t.on(T.FRAG_PARSED,this.onFragParsed,this),t.on(T.FRAG_CHANGED,this.onFragChanged,this)},e.unregisterListeners=function(){var t=this.hls;t.off(T.MEDIA_ATTACHING,this.onMediaAttaching,this),t.off(T.MEDIA_DETACHING,this.onMediaDetaching,this),t.off(T.MANIFEST_LOADING,this.onManifestLoading,this),t.off(T.MANIFEST_PARSED,this.onManifestParsed,this),t.off(T.BUFFER_RESET,this.onBufferReset,this),t.off(T.BUFFER_APPENDING,this.onBufferAppending,this),t.off(T.BUFFER_CODECS,this.onBufferCodecs,this),t.off(T.BUFFER_EOS,this.onBufferEos,this),t.off(T.BUFFER_FLUSHING,this.onBufferFlushing,this),t.off(T.LEVEL_UPDATED,this.onLevelUpdated,this),t.off(T.FRAG_PARSED,this.onFragParsed,this),t.off(T.FRAG_CHANGED,this.onFragChanged,this)},e._initSourceBuffer=function(){this.sourceBuffer={},this.operationQueue=new sn(this.sourceBuffer),this.listeners={audio:[],video:[],audiovideo:[]},this.lastMpegAudioChunk=null},e.onManifestLoading=function(){this.bufferCodecEventsExpected=this._bufferCodecEventsTotal=0,this.details=null},e.onManifestParsed=function(t,e){var r=2;(e.audio&&!e.video||!e.altAudio)&&(r=1),this.bufferCodecEventsExpected=this._bufferCodecEventsTotal=r,b.log(this.bufferCodecEventsExpected+" bufferCodec event(s) expected")},e.onMediaAttaching=function(t,e){var r=this.media=e.media;if(r&&on){var i=this.mediaSource=new on;i.addEventListener("sourceopen",this._onMediaSourceOpen),i.addEventListener("sourceended",this._onMediaSourceEnded),i.addEventListener("sourceclose",this._onMediaSourceClose),r.src=self.URL.createObjectURL(i),this._objectUrl=r.src,r.addEventListener("emptied",this._onMediaEmptied)}},e.onMediaDetaching=function(){var t=this.media,e=this.mediaSource,r=this._objectUrl;if(e){if(b.log("[buffer-controller]: media source detaching"),"open"===e.readyState)try{e.endOfStream()}catch(t){b.warn("[buffer-controller]: onMediaDetaching: "+t.message+" while calling endOfStream")}this.onBufferReset(),e.removeEventListener("sourceopen",this._onMediaSourceOpen),e.removeEventListener("sourceended",this._onMediaSourceEnded),e.removeEventListener("sourceclose",this._onMediaSourceClose),t&&(t.removeEventListener("emptied",this._onMediaEmptied),r&&self.URL.revokeObjectURL(r),t.src===r?(t.removeAttribute("src"),t.load()):b.warn("[buffer-controller]: media.src was changed by a third party - skip cleanup")),this.mediaSource=null,this.media=null,this._objectUrl=null,this.bufferCodecEventsExpected=this._bufferCodecEventsTotal,this.pendingTracks={},this.tracks={}}this.hls.trigger(T.MEDIA_DETACHED,void 0)},e.onBufferReset=function(){var t=this;this.getSourceBufferTypes().forEach(function(e){var r=t.sourceBuffer[e];try{r&&(t.removeBufferListeners(e),t.mediaSource&&t.mediaSource.removeSourceBuffer(r),t.sourceBuffer[e]=void 0)}catch(t){b.warn("[buffer-controller]: Failed to reset the "+e+" buffer",t)}}),this._initSourceBuffer()},e.onBufferCodecs=function(t,e){var r=this,i=this.getSourceBufferTypes().length;Object.keys(e).forEach(function(t){if(i){var n=r.tracks[t];if(n&&"function"==typeof n.buffer.changeType){var a=e[t],s=a.id,o=a.codec,l=a.levelCodec,u=a.container,h=a.metadata,d=(n.levelCodec||n.codec).replace(ln,"$1"),c=(l||o).replace(ln,"$1");if(d!==c){var f=u+";codecs="+(l||o);r.appendChangeType(t,f),b.log("[buffer-controller]: switching codec "+d+" to "+c),r.tracks[t]={buffer:n.buffer,codec:o,container:u,levelCodec:l,metadata:h,id:s}}}}else r.pendingTracks[t]=e[t]}),i||(this.bufferCodecEventsExpected=Math.max(this.bufferCodecEventsExpected-1,0),this.mediaSource&&"open"===this.mediaSource.readyState&&this.checkPendingTracks())},e.appendChangeType=function(t,e){var r=this,i=this.operationQueue,n={execute:function(){var n=r.sourceBuffer[t];n&&(b.log("[buffer-controller]: changing "+t+" sourceBuffer type to "+e),n.changeType(e)),i.shiftAndExecuteNext(t)},onStart:function(){},onComplete:function(){},onError:function(e){b.warn("[buffer-controller]: Failed to change "+t+" SourceBuffer type",e)}};i.append(n,t)},e.onBufferAppending=function(t,e){var r=this,i=this.hls,n=this.operationQueue,a=this.tracks,s=e.data,o=e.type,l=e.frag,u=e.part,h=e.chunkMeta,d=h.buffering[o],c=self.performance.now();d.start=c;var f=l.stats.buffering,g=u?u.stats.buffering:null;0===f.start&&(f.start=c),g&&0===g.start&&(g.start=c);var v=a.audio,m=!1;"audio"===o&&"audio/mpeg"===(null==v?void 0:v.container)&&(m=!this.lastMpegAudioChunk||1===h.id||this.lastMpegAudioChunk.sn!==h.sn,this.lastMpegAudioChunk=h);var p=l.start,y={execute:function(){if(d.executeStart=self.performance.now(),m){var t=r.sourceBuffer[o];if(t){var e=p-t.timestampOffset;Math.abs(e)>=.1&&(b.log("[buffer-controller]: Updating audio SourceBuffer timestampOffset to "+p+" (delta: "+e+") sn: "+l.sn+")"),t.timestampOffset=p)}}r.appendExecutor(s,o)},onStart:function(){},onComplete:function(){var t=self.performance.now();d.executeEnd=d.end=t,0===f.first&&(f.first=t),g&&0===g.first&&(g.first=t);var e=r.sourceBuffer,i={};for(var n in e)i[n]=dr.getBuffered(e[n]);r.appendError=0,r.hls.trigger(T.BUFFER_APPENDED,{type:o,frag:l,part:u,chunkMeta:h,parent:l.type,timeRanges:i})},onError:function(t){b.error("[buffer-controller]: Error encountered while trying to append to the "+o+" SourceBuffer",t);var e={type:E.MEDIA_ERROR,parent:l.type,details:S.BUFFER_APPEND_ERROR,frag:l,part:u,chunkMeta:h,error:t,err:t,fatal:!1};t.code===DOMException.QUOTA_EXCEEDED_ERR?e.details=S.BUFFER_FULL_ERROR:(r.appendError++,e.details=S.BUFFER_APPEND_ERROR,r.appendError>i.config.appendErrorMaxRetry&&(b.error("[buffer-controller]: Failed "+i.config.appendErrorMaxRetry+" times to append segment in sourceBuffer"),e.fatal=!0)),i.trigger(T.ERROR,e)}};n.append(y,o)},e.onBufferFlushing=function(t,e){var r=this,i=this.operationQueue,n=function(t){return{execute:r.removeExecutor.bind(r,t,e.startOffset,e.endOffset),onStart:function(){},onComplete:function(){r.hls.trigger(T.BUFFER_FLUSHED,{type:t})},onError:function(e){b.warn("[buffer-controller]: Failed to remove from "+t+" SourceBuffer",e)}}};e.type?i.append(n(e.type),e.type):this.getSourceBufferTypes().forEach(function(t){i.append(n(t),t)})},e.onFragParsed=function(t,e){var r=this,i=e.frag,n=e.part,a=[],s=n?n.elementaryStreams:i.elementaryStreams;s[M]?a.push("audiovideo"):(s[x]&&a.push("audio"),s[F]&&a.push("video")),0===a.length&&b.warn("Fragments must have at least one ElementaryStreamType set. type: "+i.type+" level: "+i.level+" sn: "+i.sn),this.blockBuffers(function(){var t=self.performance.now();i.stats.buffering.end=t,n&&(n.stats.buffering.end=t);var e=n?n.stats:i.stats;r.hls.trigger(T.FRAG_BUFFERED,{frag:i,part:n,stats:e,id:i.type})},a)},e.onFragChanged=function(t,e){this.flushBackBuffer()},e.onBufferEos=function(t,e){var r=this;this.getSourceBufferTypes().reduce(function(t,i){var n=r.sourceBuffer[i];return!n||e.type&&e.type!==i||(n.ending=!0,n.ended||(n.ended=!0,b.log("[buffer-controller]: "+i+" sourceBuffer now EOS"))),t&&!(n&&!n.ended)},!0)&&(b.log("[buffer-controller]: Queueing mediaSource.endOfStream()"),this.blockBuffers(function(){r.getSourceBufferTypes().forEach(function(t){var e=r.sourceBuffer[t];e&&(e.ending=!1)});var t=r.mediaSource;t&&"open"===t.readyState?(b.log("[buffer-controller]: Calling mediaSource.endOfStream()"),t.endOfStream()):t&&b.info("[buffer-controller]: Could not call mediaSource.endOfStream(). mediaSource.readyState: "+t.readyState)}))},e.onLevelUpdated=function(t,e){var r=e.details;r.fragments.length&&(this.details=r,this.getSourceBufferTypes().length?this.blockBuffers(this.updateMediaElementDuration.bind(this)):this.updateMediaElementDuration())},e.flushBackBuffer=function(){var t=this.hls,e=this.details,r=this.media,i=this.sourceBuffer;if(r&&null!==e){var n=this.getSourceBufferTypes();if(n.length){var a=e.live&&null!==t.config.liveBackBufferLength?t.config.liveBackBufferLength:t.config.backBufferLength;if(y(a)&&!(a<0)){var s=r.currentTime,o=e.levelTargetDuration,l=Math.max(a,o),u=Math.floor(s/o)*o-l;n.forEach(function(r){var n=i[r];if(n){var a=dr.getBuffered(n);if(a.length>0&&u>a.start(0)){if(t.trigger(T.BACK_BUFFER_REACHED,{bufferEnd:u}),e.live)t.trigger(T.LIVE_BACK_BUFFER_REACHED,{bufferEnd:u});else if(n.ended&&a.end(a.length-1)-s<2*o)return void b.info("[buffer-controller]: Cannot flush "+r+" back buffer while SourceBuffer is in ended state");t.trigger(T.BUFFER_FLUSHING,{startOffset:0,endOffset:u,type:r})}}})}}}},e.updateMediaElementDuration=function(){if(this.details&&this.media&&this.mediaSource&&"open"===this.mediaSource.readyState){var t=this.details,e=this.hls,r=this.media,i=this.mediaSource,n=t.fragments[0].start+t.totalduration,a=r.duration,s=y(i.duration)?i.duration:0;t.live&&e.config.liveDurationInfinity?(b.log("[buffer-controller]: Media Source duration is set to Infinity"),i.duration=1/0,this.updateSeekableRange(t)):(n>s&&n>a||!y(a))&&(b.log("[buffer-controller]: Updating Media Source duration to "+n.toFixed(3)),i.duration=n)}},e.updateSeekableRange=function(t){var e=this.mediaSource,r=t.fragments;if(r.length&&t.live&&null!=e&&e.setLiveSeekableRange){var i=Math.max(0,r[0].start),n=Math.max(i,i+t.totalduration);e.setLiveSeekableRange(i,n)}},e.checkPendingTracks=function(){var t=this.bufferCodecEventsExpected,e=this.operationQueue,r=this.pendingTracks,i=Object.keys(r).length;if(i&&!t||2===i){this.createSourceBuffers(r),this.pendingTracks={};var n=this.getSourceBufferTypes();if(n.length)this.hls.trigger(T.BUFFER_CREATED,{tracks:this.tracks}),n.forEach(function(t){e.executeNext(t)});else{var a=new Error("could not create source buffer for media codec(s)");this.hls.trigger(T.ERROR,{type:E.MEDIA_ERROR,details:S.BUFFER_INCOMPATIBLE_CODECS_ERROR,fatal:!0,error:a,reason:a.message})}}},e.createSourceBuffers=function(t){var e=this.sourceBuffer,r=this.mediaSource;if(!r)throw Error("createSourceBuffers called when mediaSource was null");for(var i in t)if(!e[i]){var n=t[i];if(!n)throw Error("source buffer exists for track "+i+", however track does not");var a=n.levelCodec||n.codec,s=n.container+";codecs="+a;b.log("[buffer-controller]: creating sourceBuffer("+s+")");try{var o=e[i]=r.addSourceBuffer(s),l=i;this.addBufferListener(l,"updatestart",this._onSBUpdateStart),this.addBufferListener(l,"updateend",this._onSBUpdateEnd),this.addBufferListener(l,"error",this._onSBUpdateError),this.tracks[i]={buffer:o,codec:a,container:n.container,levelCodec:n.levelCodec,metadata:n.metadata,id:n.id}}catch(t){b.error("[buffer-controller]: error while trying to add sourceBuffer: "+t.message),this.hls.trigger(T.ERROR,{type:E.MEDIA_ERROR,details:S.BUFFER_ADD_CODEC_ERROR,fatal:!1,error:t,mimeType:s})}}},e._onSBUpdateStart=function(t){this.operationQueue.current(t).onStart()},e._onSBUpdateEnd=function(t){var e=this.operationQueue;e.current(t).onComplete(),e.shiftAndExecuteNext(t)},e._onSBUpdateError=function(t,e){var r=new Error(t+" SourceBuffer error");b.error("[buffer-controller]: "+r,e),this.hls.trigger(T.ERROR,{type:E.MEDIA_ERROR,details:S.BUFFER_APPENDING_ERROR,error:r,fatal:!1});var i=this.operationQueue.current(t);i&&i.onError(e)},e.removeExecutor=function(t,e,r){var i=this.media,n=this.mediaSource,a=this.operationQueue,s=this.sourceBuffer[t];if(!i||!n||!s)return b.warn("[buffer-controller]: Attempting to remove from the "+t+" SourceBuffer, but it does not exist"),void a.shiftAndExecuteNext(t);var o=y(i.duration)?i.duration:1/0,l=y(n.duration)?n.duration:1/0,u=Math.max(0,e),h=Math.min(r,o,l);h>u&&!s.ending?(s.ended=!1,b.log("[buffer-controller]: Removing ["+u+","+h+"] from the "+t+" SourceBuffer"),s.remove(u,h)):a.shiftAndExecuteNext(t)},e.appendExecutor=function(t,e){var r=this.operationQueue,i=this.sourceBuffer[e];if(!i)return b.warn("[buffer-controller]: Attempting to append to the "+e+" SourceBuffer, but it does not exist"),void r.shiftAndExecuteNext(e);i.ended=!1,i.appendBuffer(t)},e.blockBuffers=function(t,e){var r=this;if(void 0===e&&(e=this.getSourceBufferTypes()),!e.length)return b.log("[buffer-controller]: Blocking operation requested, but no SourceBuffers exist"),void Promise.resolve().then(t);var i=this.operationQueue,n=e.map(function(t){return i.appendBlocker(t)});Promise.all(n).then(function(){t(),e.forEach(function(t){var e=r.sourceBuffer[t];null!=e&&e.updating||i.shiftAndExecuteNext(t)})})},e.getSourceBufferTypes=function(){return Object.keys(this.sourceBuffer)},e.addBufferListener=function(t,e,r){var i=this.sourceBuffer[t];if(i){var n=r.bind(this,t);this.listeners[t].push({event:e,listener:n}),i.addEventListener(e,n)}},e.removeBufferListeners=function(t){var e=this.sourceBuffer[t];e&&this.listeners[t].forEach(function(t){e.removeEventListener(t.event,t.listener)})},t}(),hn={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,185: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},dn=function(t){var e=t;return hn.hasOwnProperty(t)&&(e=hn[t]),String.fromCharCode(e)},cn=15,fn=100,gn={17:1,18:3,21:5,22:7,23:9,16:11,19:12,20:14},vn={17:2,18:4,21:6,22:8,23:10,19:13,20:15},mn={25:1,26:3,29:5,30:7,31:9,24:11,27:12,28:14},pn={25:2,26:4,29:6,30:8,31:10,27:13,28:15},yn=["white","green","blue","cyan","red","yellow","magenta","black","transparent"],Tn=function(){function t(){this.time=null,this.verboseLevel=0}return t.prototype.log=function(t,e){if(this.verboseLevel>=t){var r="function"==typeof e?e():e;b.log(this.time+" ["+t+"] "+r)}},t}(),En=function(t){for(var e=[],r=0;r<t.length;r++)e.push(t[r].toString(16));return e},Sn=function(){function t(t,e,r,i,n){this.foreground=void 0,this.underline=void 0,this.italics=void 0,this.background=void 0,this.flash=void 0,this.foreground=t||"white",this.underline=e||!1,this.italics=r||!1,this.background=i||"black",this.flash=n||!1}var e=t.prototype;return e.reset=function(){this.foreground="white",this.underline=!1,this.italics=!1,this.background="black",this.flash=!1},e.setStyles=function(t){for(var e=["foreground","underline","italics","background","flash"],r=0;r<e.length;r++){var i=e[r];t.hasOwnProperty(i)&&(this[i]=t[i])}},e.isDefault=function(){return"white"===this.foreground&&!this.underline&&!this.italics&&"black"===this.background&&!this.flash},e.equals=function(t){return this.foreground===t.foreground&&this.underline===t.underline&&this.italics===t.italics&&this.background===t.background&&this.flash===t.flash},e.copy=function(t){this.foreground=t.foreground,this.underline=t.underline,this.italics=t.italics,this.background=t.background,this.flash=t.flash},e.toString=function(){return"color="+this.foreground+", underline="+this.underline+", italics="+this.italics+", background="+this.background+", flash="+this.flash},t}(),Ln=function(){function t(t,e,r,i,n,a){this.uchar=void 0,this.penState=void 0,this.uchar=t||" ",this.penState=new Sn(e,r,i,n,a)}var e=t.prototype;return e.reset=function(){this.uchar=" ",this.penState.reset()},e.setChar=function(t,e){this.uchar=t,this.penState.copy(e)},e.setPenState=function(t){this.penState.copy(t)},e.equals=function(t){return this.uchar===t.uchar&&this.penState.equals(t.penState)},e.copy=function(t){this.uchar=t.uchar,this.penState.copy(t.penState)},e.isEmpty=function(){return" "===this.uchar&&this.penState.isDefault()},t}(),Rn=function(){function t(t){this.chars=void 0,this.pos=void 0,this.currPenState=void 0,this.cueStartTime=void 0,this.logger=void 0,this.chars=[];for(var e=0;e<fn;e++)this.chars.push(new Ln);this.logger=t,this.pos=0,this.currPenState=new Sn}var e=t.prototype;return e.equals=function(t){for(var e=!0,r=0;r<fn;r++)if(!this.chars[r].equals(t.chars[r])){e=!1;break}return e},e.copy=function(t){for(var e=0;e<fn;e++)this.chars[e].copy(t.chars[e])},e.isEmpty=function(){for(var t=!0,e=0;e<fn;e++)if(!this.chars[e].isEmpty()){t=!1;break}return t},e.setCursor=function(t){this.pos!==t&&(this.pos=t),this.pos<0?(this.logger.log(3,"Negative cursor position "+this.pos),this.pos=0):this.pos>fn&&(this.logger.log(3,"Too large cursor position "+this.pos),this.pos=fn)},e.moveCursor=function(t){var e=this.pos+t;if(t>1)for(var r=this.pos+1;r<e+1;r++)this.chars[r].setPenState(this.currPenState);this.setCursor(e)},e.backSpace=function(){this.moveCursor(-1),this.chars[this.pos].setChar(" ",this.currPenState)},e.insertChar=function(t){var e=this;t>=144&&this.backSpace();var r=dn(t);this.pos>=fn?this.logger.log(0,function(){return"Cannot insert "+t.toString(16)+" ("+r+") at position "+e.pos+". Skipping it!"}):(this.chars[this.pos].setChar(r,this.currPenState),this.moveCursor(1))},e.clearFromPos=function(t){var e;for(e=t;e<fn;e++)this.chars[e].reset()},e.clear=function(){this.clearFromPos(0),this.pos=0,this.currPenState.reset()},e.clearToEndOfRow=function(){this.clearFromPos(this.pos)},e.getTextString=function(){for(var t=[],e=!0,r=0;r<fn;r++){var i=this.chars[r].uchar;" "!==i&&(e=!1),t.push(i)}return e?"":t.join("")},e.setPenStyles=function(t){this.currPenState.setStyles(t),this.chars[this.pos].setPenState(this.currPenState)},t}(),An=function(){function t(t){this.rows=void 0,this.currRow=void 0,this.nrRollUpRows=void 0,this.lastOutputScreen=void 0,this.logger=void 0,this.rows=[];for(var e=0;e<cn;e++)this.rows.push(new Rn(t));this.logger=t,this.currRow=14,this.nrRollUpRows=null,this.lastOutputScreen=null,this.reset()}var e=t.prototype;return e.reset=function(){for(var t=0;t<cn;t++)this.rows[t].clear();this.currRow=14},e.equals=function(t){for(var e=!0,r=0;r<cn;r++)if(!this.rows[r].equals(t.rows[r])){e=!1;break}return e},e.copy=function(t){for(var e=0;e<cn;e++)this.rows[e].copy(t.rows[e])},e.isEmpty=function(){for(var t=!0,e=0;e<cn;e++)if(!this.rows[e].isEmpty()){t=!1;break}return t},e.backSpace=function(){this.rows[this.currRow].backSpace()},e.clearToEndOfRow=function(){this.rows[this.currRow].clearToEndOfRow()},e.insertChar=function(t){this.rows[this.currRow].insertChar(t)},e.setPen=function(t){this.rows[this.currRow].setPenStyles(t)},e.moveCursor=function(t){this.rows[this.currRow].moveCursor(t)},e.setCursor=function(t){this.logger.log(2,"setCursor: "+t),this.rows[this.currRow].setCursor(t)},e.setPAC=function(t){this.logger.log(2,function(){return"pacData="+JSON.stringify(t)});var e=t.row-1;if(this.nrRollUpRows&&e<this.nrRollUpRows-1&&(e=this.nrRollUpRows-1),this.nrRollUpRows&&this.currRow!==e){for(var r=0;r<cn;r++)this.rows[r].clear();var i=this.currRow+1-this.nrRollUpRows,n=this.lastOutputScreen;if(n){var a=n.rows[i].cueStartTime,s=this.logger.time;if(a&&null!==s&&a<s)for(var o=0;o<this.nrRollUpRows;o++)this.rows[e-this.nrRollUpRows+o+1].copy(n.rows[i+o])}}this.currRow=e;var l=this.rows[this.currRow];if(null!==t.indent){var u=t.indent,h=Math.max(u-1,0);l.setCursor(t.indent),t.color=l.chars[h].penState.foreground}var d={foreground:t.color,underline:t.underline,italics:t.italics,background:"black",flash:!1};this.setPen(d)},e.setBkgData=function(t){this.logger.log(2,function(){return"bkgData="+JSON.stringify(t)}),this.backSpace(),this.setPen(t),this.insertChar(32)},e.setRollUpRows=function(t){this.nrRollUpRows=t},e.rollUp=function(){var t=this;if(null!==this.nrRollUpRows){this.logger.log(1,function(){return t.getDisplayText()});var e=this.currRow+1-this.nrRollUpRows,r=this.rows.splice(e,1)[0];r.clear(),this.rows.splice(this.currRow,0,r),this.logger.log(2,"Rolling up")}else this.logger.log(3,"roll_up but nrRollUpRows not set yet")},e.getDisplayText=function(t){t=t||!1;for(var e=[],r="",i=-1,n=0;n<cn;n++){var a=this.rows[n].getTextString();a&&(i=n+1,t?e.push("Row "+i+": '"+a+"'"):e.push(a.trim()))}return e.length>0&&(r=t?"["+e.join(" | ")+"]":e.join("\n")),r},e.getTextAndFormat=function(){return this.rows},t}(),kn=function(){function t(t,e,r){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=t,this.outputFilter=e,this.mode=null,this.verbose=0,this.displayedMemory=new An(r),this.nonDisplayedMemory=new An(r),this.lastOutputScreen=new An(r),this.currRollUpRow=this.displayedMemory.rows[14],this.writeScreen=this.displayedMemory,this.mode=null,this.cueStartTime=null,this.logger=r}var e=t.prototype;return e.reset=function(){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},e.getHandler=function(){return this.outputFilter},e.setHandler=function(t){this.outputFilter=t},e.setPAC=function(t){this.writeScreen.setPAC(t)},e.setBkgData=function(t){this.writeScreen.setBkgData(t)},e.setMode=function(t){t!==this.mode&&(this.mode=t,this.logger.log(2,function(){return"MODE="+t}),"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=t)},e.insertChars=function(t){for(var e=this,r=0;r<t.length;r++)this.writeScreen.insertChar(t[r]);var i=this.writeScreen===this.displayedMemory?"DISP":"NON_DISP";this.logger.log(2,function(){return i+": "+e.writeScreen.getDisplayText(!0)}),"MODE_PAINT-ON"!==this.mode&&"MODE_ROLL-UP"!==this.mode||(this.logger.log(1,function(){return"DISPLAYED: "+e.displayedMemory.getDisplayText(!0)}),this.outputDataUpdate())},e.ccRCL=function(){this.logger.log(2,"RCL - Resume Caption Loading"),this.setMode("MODE_POP-ON")},e.ccBS=function(){this.logger.log(2,"BS - BackSpace"),"MODE_TEXT"!==this.mode&&(this.writeScreen.backSpace(),this.writeScreen===this.displayedMemory&&this.outputDataUpdate())},e.ccAOF=function(){},e.ccAON=function(){},e.ccDER=function(){this.logger.log(2,"DER- Delete to End of Row"),this.writeScreen.clearToEndOfRow(),this.outputDataUpdate()},e.ccRU=function(t){this.logger.log(2,"RU("+t+") - Roll Up"),this.writeScreen=this.displayedMemory,this.setMode("MODE_ROLL-UP"),this.writeScreen.setRollUpRows(t)},e.ccFON=function(){this.logger.log(2,"FON - Flash On"),this.writeScreen.setPen({flash:!0})},e.ccRDC=function(){this.logger.log(2,"RDC - Resume Direct Captioning"),this.setMode("MODE_PAINT-ON")},e.ccTR=function(){this.logger.log(2,"TR"),this.setMode("MODE_TEXT")},e.ccRTD=function(){this.logger.log(2,"RTD"),this.setMode("MODE_TEXT")},e.ccEDM=function(){this.logger.log(2,"EDM - Erase Displayed Memory"),this.displayedMemory.reset(),this.outputDataUpdate(!0)},e.ccCR=function(){this.logger.log(2,"CR - Carriage Return"),this.writeScreen.rollUp(),this.outputDataUpdate(!0)},e.ccENM=function(){this.logger.log(2,"ENM - Erase Non-displayed Memory"),this.nonDisplayedMemory.reset()},e.ccEOC=function(){var t=this;if(this.logger.log(2,"EOC - End Of Caption"),"MODE_POP-ON"===this.mode){var e=this.displayedMemory;this.displayedMemory=this.nonDisplayedMemory,this.nonDisplayedMemory=e,this.writeScreen=this.nonDisplayedMemory,this.logger.log(1,function(){return"DISP: "+t.displayedMemory.getDisplayText()})}this.outputDataUpdate(!0)},e.ccTO=function(t){this.logger.log(2,"TO("+t+") - Tab Offset"),this.writeScreen.moveCursor(t)},e.ccMIDROW=function(t){var e={flash:!1};if(e.underline=t%2==1,e.italics=t>=46,e.italics)e.foreground="white";else{var r=Math.floor(t/2)-16;e.foreground=["white","green","blue","cyan","red","yellow","magenta"][r]}this.logger.log(2,"MIDROW: "+JSON.stringify(e)),this.writeScreen.setPen(e)},e.outputDataUpdate=function(t){void 0===t&&(t=!1);var e=this.logger.time;null!==e&&this.outputFilter&&(null!==this.cueStartTime||this.displayedMemory.isEmpty()?this.displayedMemory.equals(this.lastOutputScreen)||(this.outputFilter.newCue(this.cueStartTime,e,this.lastOutputScreen),t&&this.outputFilter.dispatchCue&&this.outputFilter.dispatchCue(),this.cueStartTime=this.displayedMemory.isEmpty()?null:e):this.cueStartTime=e,this.lastOutputScreen.copy(this.displayedMemory))},e.cueSplitAtTime=function(t){this.outputFilter&&(this.displayedMemory.isEmpty()||(this.outputFilter.newCue&&this.outputFilter.newCue(this.cueStartTime,t,this.displayedMemory),this.cueStartTime=t))},t}(),bn=function(){function t(t,e,r){this.channels=void 0,this.currentChannel=0,this.cmdHistory=void 0,this.logger=void 0;var i=new Tn;this.channels=[null,new kn(t,e,i),new kn(t+1,r,i)],this.cmdHistory={a:null,b:null},this.logger=i}var e=t.prototype;return e.getHandler=function(t){return this.channels[t].getHandler()},e.setHandler=function(t,e){this.channels[t].setHandler(e)},e.addData=function(t,e){var r,i,n,a=!1;this.logger.time=t;for(var s=0;s<e.length;s+=2)if(i=127&e[s],n=127&e[s+1],0!==i||0!==n){if(this.logger.log(3,"["+En([e[s],e[s+1]])+"] -> ("+En([i,n])+")"),(r=this.parseCmd(i,n))||(r=this.parseMidrow(i,n)),r||(r=this.parsePAC(i,n)),r||(r=this.parseBackgroundAttributes(i,n)),!r&&(a=this.parseChars(i,n))){var o=this.currentChannel;o&&o>0?this.channels[o].insertChars(a):this.logger.log(2,"No channel found yet. TEXT-MODE?")}r||a||this.logger.log(2,"Couldn't parse cleaned data "+En([i,n])+" orig: "+En([e[s],e[s+1]]))}},e.parseCmd=function(t,e){var r=this.cmdHistory;if(!((20===t||28===t||21===t||29===t)&&e>=32&&e<=47||(23===t||31===t)&&e>=33&&e<=35))return!1;if(In(t,e,r))return Dn(null,null,r),this.logger.log(3,"Repeated command ("+En([t,e])+") is dropped"),!0;var i=20===t||21===t||23===t?1:2,n=this.channels[i];return 20===t||21===t||28===t||29===t?32===e?n.ccRCL():33===e?n.ccBS():34===e?n.ccAOF():35===e?n.ccAON():36===e?n.ccDER():37===e?n.ccRU(2):38===e?n.ccRU(3):39===e?n.ccRU(4):40===e?n.ccFON():41===e?n.ccRDC():42===e?n.ccTR():43===e?n.ccRTD():44===e?n.ccEDM():45===e?n.ccCR():46===e?n.ccENM():47===e&&n.ccEOC():n.ccTO(e-32),Dn(t,e,r),this.currentChannel=i,!0},e.parseMidrow=function(t,e){var r=0;if((17===t||25===t)&&e>=32&&e<=47){if((r=17===t?1:2)!==this.currentChannel)return this.logger.log(0,"Mismatch channel in midrow parsing"),!1;var i=this.channels[r];return!!i&&(i.ccMIDROW(e),this.logger.log(3,"MIDROW ("+En([t,e])+")"),!0)}return!1},e.parsePAC=function(t,e){var r,i=this.cmdHistory;if(!((t>=17&&t<=23||t>=25&&t<=31)&&e>=64&&e<=127||(16===t||24===t)&&e>=64&&e<=95))return!1;if(In(t,e,i))return Dn(null,null,i),!0;var n=t<=23?1:2;r=e>=64&&e<=95?1===n?gn[t]:mn[t]:1===n?vn[t]:pn[t];var a=this.channels[n];return!!a&&(a.setPAC(this.interpretPAC(r,e)),Dn(t,e,i),this.currentChannel=n,!0)},e.interpretPAC=function(t,e){var r,i={color:null,italics:!1,indent:null,underline:!1,row:t};return r=e>95?e-96:e-64,i.underline=!(1&~r),r<=13?i.color=["white","green","blue","cyan","red","yellow","magenta","white"][Math.floor(r/2)]:r<=15?(i.italics=!0,i.color="white"):i.indent=4*Math.floor((r-16)/2),i},e.parseChars=function(t,e){var r,i,n=null,a=null;if(t>=25?(r=2,a=t-8):(r=1,a=t),a>=17&&a<=19?(i=17===a?e+80:18===a?e+112:e+144,this.logger.log(2,"Special char '"+dn(i)+"' in channel "+r),n=[i]):t>=32&&t<=127&&(n=0===e?[t]:[t,e]),n){var s=En(n);this.logger.log(3,"Char codes="+s.join(",")),Dn(t,e,this.cmdHistory)}return n},e.parseBackgroundAttributes=function(t,e){var r;if(!((16===t||24===t)&&e>=32&&e<=47||(23===t||31===t)&&e>=45&&e<=47))return!1;var i={};16===t||24===t?(r=Math.floor((e-32)/2),i.background=yn[r],e%2==1&&(i.background=i.background+"_semi")):45===e?i.background="transparent":(i.foreground="black",47===e&&(i.underline=!0));var n=t<=23?1:2;return this.channels[n].setBkgData(i),Dn(t,e,this.cmdHistory),!0},e.reset=function(){for(var t=0;t<Object.keys(this.channels).length;t++){var e=this.channels[t];e&&e.reset()}this.cmdHistory={a:null,b:null}},e.cueSplitAtTime=function(t){for(var e=0;e<this.channels.length;e++){var r=this.channels[e];r&&r.cueSplitAtTime(t)}},t}();function Dn(t,e,r){r.a=t,r.b=e}function In(t,e,r){return r.a===t&&r.b===e}var wn=function(){function t(t,e){this.timelineController=void 0,this.cueRanges=[],this.trackName=void 0,this.startTime=null,this.endTime=null,this.screen=null,this.timelineController=t,this.trackName=e}var e=t.prototype;return e.dispatchCue=function(){null!==this.startTime&&(this.timelineController.addCues(this.trackName,this.startTime,this.endTime,this.screen,this.cueRanges),this.startTime=null)},e.newCue=function(t,e,r){(null===this.startTime||this.startTime>t)&&(this.startTime=t),this.endTime=e,this.screen=r,this.timelineController.createCaptionsTrack(this.trackName)},e.reset=function(){this.cueRanges=[],this.startTime=null},t}(),Cn=function(){if("undefined"!=typeof self&&self.VTTCue)return self.VTTCue;var t=["","lr","rl"],e=["start","middle","end","left","right"];function r(t,e){if("string"!=typeof e)return!1;if(!Array.isArray(t))return!1;var r=e.toLowerCase();return!!~t.indexOf(r)&&r}function i(t){return r(e,t)}function n(t){for(var e=arguments.length,r=new Array(e>1?e-1:0),i=1;i<e;i++)r[i-1]=arguments[i];for(var n=1;n<arguments.length;n++){var a=arguments[n];for(var s in a)t[s]=a[s]}return t}function a(e,a,s){var o=this,l={enumerable:!0};o.hasBeenReset=!1;var u="",h=!1,d=e,c=a,f=s,g=null,v="",m=!0,p="auto",y="start",T=50,E="middle",S=50,L="middle";Object.defineProperty(o,"id",n({},l,{get:function(){return u},set:function(t){u=""+t}})),Object.defineProperty(o,"pauseOnExit",n({},l,{get:function(){return h},set:function(t){h=!!t}})),Object.defineProperty(o,"startTime",n({},l,{get:function(){return d},set:function(t){if("number"!=typeof t)throw new TypeError("Start time must be set to a number.");d=t,this.hasBeenReset=!0}})),Object.defineProperty(o,"endTime",n({},l,{get:function(){return c},set:function(t){if("number"!=typeof t)throw new TypeError("End time must be set to a number.");c=t,this.hasBeenReset=!0}})),Object.defineProperty(o,"text",n({},l,{get:function(){return f},set:function(t){f=""+t,this.hasBeenReset=!0}})),Object.defineProperty(o,"region",n({},l,{get:function(){return g},set:function(t){g=t,this.hasBeenReset=!0}})),Object.defineProperty(o,"vertical",n({},l,{get:function(){return v},set:function(e){var i=function(e){return r(t,e)}(e);if(!1===i)throw new SyntaxError("An invalid or illegal string was specified.");v=i,this.hasBeenReset=!0}})),Object.defineProperty(o,"snapToLines",n({},l,{get:function(){return m},set:function(t){m=!!t,this.hasBeenReset=!0}})),Object.defineProperty(o,"line",n({},l,{get:function(){return p},set:function(t){if("number"!=typeof t&&"auto"!==t)throw new SyntaxError("An invalid number or illegal string was specified.");p=t,this.hasBeenReset=!0}})),Object.defineProperty(o,"lineAlign",n({},l,{get:function(){return y},set:function(t){var e=i(t);if(!e)throw new SyntaxError("An invalid or illegal string was specified.");y=e,this.hasBeenReset=!0}})),Object.defineProperty(o,"position",n({},l,{get:function(){return T},set:function(t){if(t<0||t>100)throw new Error("Position must be between 0 and 100.");T=t,this.hasBeenReset=!0}})),Object.defineProperty(o,"positionAlign",n({},l,{get:function(){return E},set:function(t){var e=i(t);if(!e)throw new SyntaxError("An invalid or illegal string was specified.");E=e,this.hasBeenReset=!0}})),Object.defineProperty(o,"size",n({},l,{get:function(){return S},set:function(t){if(t<0||t>100)throw new Error("Size must be between 0 and 100.");S=t,this.hasBeenReset=!0}})),Object.defineProperty(o,"align",n({},l,{get:function(){return L},set:function(t){var e=i(t);if(!e)throw new SyntaxError("An invalid or illegal string was specified.");L=e,this.hasBeenReset=!0}})),o.displayState=void 0}return a.prototype.getCueAsHTML=function(){return self.WebVTT.convertCueToDOMTree(self,this.text)},a}(),_n=function(){function t(){}return t.prototype.decode=function(t,e){if(!t)return"";if("string"!=typeof t)throw new Error("Error - expected string data.");return decodeURIComponent(encodeURIComponent(t))},t}();function Pn(t){function e(t,e,r,i){return 3600*(0|t)+60*(0|e)+(0|r)+parseFloat(i||0)}var r=t.match(/^(?:(\d+):)?(\d{2}):(\d{2})(\.\d+)?/);return r?parseFloat(r[2])>59?e(r[2],r[3],0,r[4]):e(r[1],r[2],r[3],r[4]):null}var xn=function(){function t(){this.values=Object.create(null)}var e=t.prototype;return e.set=function(t,e){this.get(t)||""===e||(this.values[t]=e)},e.get=function(t,e,r){return r?this.has(t)?this.values[t]:e[r]:this.has(t)?this.values[t]:e},e.has=function(t){return t in this.values},e.alt=function(t,e,r){for(var i=0;i<r.length;++i)if(e===r[i]){this.set(t,e);break}},e.integer=function(t,e){/^-?\d+$/.test(e)&&this.set(t,parseInt(e,10))},e.percent=function(t,e){if(/^([\d]{1,3})(\.[\d]*)?%$/.test(e)){var r=parseFloat(e);if(r>=0&&r<=100)return this.set(t,r),!0}return!1},t}();function Fn(t,e,r,i){var n=i?t.split(i):[t];for(var a in n)if("string"==typeof n[a]){var s=n[a].split(r);2===s.length&&e(s[0],s[1])}}var Mn=new Cn(0,0,""),On="middle"===Mn.align?"middle":"center";function Nn(t,e,r){var i=t;function n(){var e=Pn(t);if(null===e)throw new Error("Malformed timestamp: "+i);return t=t.replace(/^[^\sa-zA-Z-]+/,""),e}function a(){t=t.replace(/^\s+/,"")}if(a(),e.startTime=n(),a(),"--\x3e"!==t.slice(0,3))throw new Error("Malformed time stamp (time stamps must be separated by '--\x3e'): "+i);t=t.slice(3),a(),e.endTime=n(),a(),function(t,e){var i=new xn;Fn(t,function(t,e){var n;switch(t){case"region":for(var a=r.length-1;a>=0;a--)if(r[a].id===e){i.set(t,r[a].region);break}break;case"vertical":i.alt(t,e,["rl","lr"]);break;case"line":n=e.split(","),i.integer(t,n[0]),i.percent(t,n[0])&&i.set("snapToLines",!1),i.alt(t,n[0],["auto"]),2===n.length&&i.alt("lineAlign",n[1],["start",On,"end"]);break;case"position":n=e.split(","),i.percent(t,n[0]),2===n.length&&i.alt("positionAlign",n[1],["start",On,"end","line-left","line-right","auto"]);break;case"size":i.percent(t,e);break;case"align":i.alt(t,e,["start",On,"end","left","right"])}},/:/,/\s/),e.region=i.get("region",null),e.vertical=i.get("vertical","");var n=i.get("line","auto");"auto"===n&&-1===Mn.line&&(n=-1),e.line=n,e.lineAlign=i.get("lineAlign","start"),e.snapToLines=i.get("snapToLines",!0),e.size=i.get("size",100),e.align=i.get("align",On);var a=i.get("position","auto");"auto"===a&&50===Mn.position&&(a="start"===e.align||"left"===e.align?0:"end"===e.align||"right"===e.align?100:50),e.position=a}(t,e)}function Un(t){return t.replace(/<br(?: \/)?>/gi,"\n")}var Bn=function(){function t(){this.state="INITIAL",this.buffer="",this.decoder=new _n,this.regionList=[],this.cue=null,this.oncue=void 0,this.onparsingerror=void 0,this.onflush=void 0}var e=t.prototype;return e.parse=function(t){var e=this;function r(){var t=e.buffer,r=0;for(t=Un(t);r<t.length&&"\r"!==t[r]&&"\n"!==t[r];)++r;var i=t.slice(0,r);return"\r"===t[r]&&++r,"\n"===t[r]&&++r,e.buffer=t.slice(r),i}t&&(e.buffer+=e.decoder.decode(t,{stream:!0}));try{var i="";if("INITIAL"===e.state){if(!/\r\n|\n/.test(e.buffer))return this;var n=(i=r()).match(/^(ï»¿)?WEBVTT([ \t].*)?$/);if(null==n||!n[0])throw new Error("Malformed WebVTT signature.");e.state="HEADER"}for(var a=!1;e.buffer;){if(!/\r\n|\n/.test(e.buffer))return this;switch(a?a=!1:i=r(),e.state){case"HEADER":/:/.test(i)?Fn(i,function(t,e){},/:/):i||(e.state="ID");continue;case"NOTE":i||(e.state="ID");continue;case"ID":if(/^NOTE($|[ \t])/.test(i)){e.state="NOTE";break}if(!i)continue;if(e.cue=new Cn(0,0,""),e.state="CUE",-1===i.indexOf("--\x3e")){e.cue.id=i;continue}case"CUE":if(!e.cue){e.state="BADCUE";continue}try{Nn(i,e.cue,e.regionList)}catch(t){e.cue=null,e.state="BADCUE";continue}e.state="CUETEXT";continue;case"CUETEXT":var s=-1!==i.indexOf("--\x3e");if(!i||s&&(a=!0)){e.oncue&&e.cue&&e.oncue(e.cue),e.cue=null,e.state="ID";continue}if(null===e.cue)continue;e.cue.text&&(e.cue.text+="\n"),e.cue.text+=i;continue;case"BADCUE":i||(e.state="ID")}}}catch(t){"CUETEXT"===e.state&&e.cue&&e.oncue&&e.oncue(e.cue),e.cue=null,e.state="INITIAL"===e.state?"BADWEBVTT":"BADCUE"}return this},e.flush=function(){var t=this;try{if((t.cue||"HEADER"===t.state)&&(t.buffer+="\n\n",t.parse()),"INITIAL"===t.state||"BADWEBVTT"===t.state)throw new Error("Malformed WebVTT signature.")}catch(e){t.onparsingerror&&t.onparsingerror(e)}return t.onflush&&t.onflush(),this},t}(),Gn=/\r\n|\n\r|\n|\r/g,Kn=function(t,e,r){return void 0===r&&(r=0),t.slice(r,r+e.length)===e},Hn=function(t){for(var e=5381,r=t.length;r;)e=33*e^t.charCodeAt(--r);return(e>>>0).toString()};function Vn(t,e,r){return Hn(t.toString())+Hn(e.toString())+Hn(r)}var Yn="stpp.ttml.im1t",Wn=/^(\d{2,}):(\d{2}):(\d{2}):(\d{2})\.?(\d+)?$/,jn=/^(\d*(?:\.\d*)?)(h|m|s|ms|f|t)$/,qn={left:"start",center:"center",right:"end",start:"start",end:"end"};function Xn(t,e,r,i){var n=Rt(new Uint8Array(t),["mdat"]);if(0!==n.length){var a,s,l,u=n.map(function(t){return ft(t)}),h=(a=e.baseTime,void 0===(s=e.timescale)&&(s=1),void 0===l&&(l=!1),Ti(a,1,1/s,l));try{u.forEach(function(t){return r(function(t,e){var r=(new DOMParser).parseFromString(t,"text/xml").getElementsByTagName("tt")[0];if(!r)throw new Error("Invalid ttml");var i={frameRate:30,subFrameRate:1,frameRateMultiplier:0,tickRate:0},n=Object.keys(i).reduce(function(t,e){return t[e]=r.getAttribute("ttp:"+e)||i[e],t},{}),a="preserve"!==r.getAttribute("xml:space"),s=Qn(zn(r,"styling","style")),l=Qn(zn(r,"layout","region")),u=zn(r,"body","[begin]");return[].map.call(u,function(t){var r=$n(t,a);if(!r||!t.hasAttribute("begin"))return null;var i=ta(t.getAttribute("begin"),n),u=ta(t.getAttribute("dur"),n),h=ta(t.getAttribute("end"),n);if(null===i)throw Zn(t);if(null===h){if(null===u)throw Zn(t);h=i+u}var d=new Cn(i-e,h-e,r);d.id=Vn(d.startTime,d.endTime,d.text);var c=function(t,e,r){var i="http://www.w3.org/ns/ttml#styling",n=null,a=null!=t&&t.hasAttribute("style")?t.getAttribute("style"):null;return a&&r.hasOwnProperty(a)&&(n=r[a]),["displayAlign","textAlign","color","backgroundColor","fontSize","fontFamily"].reduce(function(r,a){var s=Jn(e,i,a)||Jn(t,i,a)||Jn(n,i,a);return s&&(r[a]=s),r},{})}(l[t.getAttribute("region")],s[t.getAttribute("style")],s),f=c.textAlign;if(f){var g=qn[f];g&&(d.lineAlign=g),d.align=f}return o(d,c),d}).filter(function(t){return null!==t})}(t,h))})}catch(t){i(t)}}else i(new Error("Could not parse IMSC1 mdat"))}function zn(t,e,r){var i=t.getElementsByTagName(e)[0];return i?[].slice.call(i.querySelectorAll(r)):[]}function Qn(t){return t.reduce(function(t,e){var r=e.getAttribute("xml:id");return r&&(t[r]=e),t},{})}function $n(t,e){return[].slice.call(t.childNodes).reduce(function(t,r,i){var n;return"br"===r.nodeName&&i?t+"\n":null!=(n=r.childNodes)&&n.length?$n(r,e):e?t+r.textContent.trim().replace(/\s+/g," "):t+r.textContent},"")}function Jn(t,e,r){return t&&t.hasAttributeNS(e,r)?t.getAttributeNS(e,r):null}function Zn(t){return new Error("Could not parse ttml timestamp "+t)}function ta(t,e){if(!t)return null;var r=Pn(t);return null===r&&(Wn.test(t)?r=function(t,e){var r=Wn.exec(t),i=(0|r[4])+(0|r[5])/e.subFrameRate;return 3600*(0|r[1])+60*(0|r[2])+(0|r[3])+i/e.frameRate}(t,e):jn.test(t)&&(r=function(t,e){var r=jn.exec(t),i=Number(r[1]);switch(r[2]){case"h":return 3600*i;case"m":return 60*i;case"ms":return 1e3*i;case"f":return i/e.frameRate;case"t":return i/e.tickRate}return i}(t,e))),r}var ea=function(){function t(t){if(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.lastSn=-1,this.lastPartIndex=-1,this.prevCC=-1,this.vttCCs={ccOffset:0,presentationOffset:0,0:{start:0,prevCC:-1,new:!0}},this.captionsProperties=void 0,this.hls=t,this.config=t.config,this.Cues=t.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}},this.config.enableCEA708Captions){var e=new wn(this,"textTrack1"),r=new wn(this,"textTrack2"),i=new wn(this,"textTrack3"),n=new wn(this,"textTrack4");this.cea608Parser1=new bn(1,e,r),this.cea608Parser2=new bn(3,i,n)}t.on(T.MEDIA_ATTACHING,this.onMediaAttaching,this),t.on(T.MEDIA_DETACHING,this.onMediaDetaching,this),t.on(T.MANIFEST_LOADING,this.onManifestLoading,this),t.on(T.MANIFEST_LOADED,this.onManifestLoaded,this),t.on(T.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),t.on(T.FRAG_LOADING,this.onFragLoading,this),t.on(T.FRAG_LOADED,this.onFragLoaded,this),t.on(T.FRAG_PARSING_USERDATA,this.onFragParsingUserdata,this),t.on(T.FRAG_DECRYPTED,this.onFragDecrypted,this),t.on(T.INIT_PTS_FOUND,this.onInitPtsFound,this),t.on(T.SUBTITLE_TRACKS_CLEARED,this.onSubtitleTracksCleared,this),t.on(T.BUFFER_FLUSHING,this.onBufferFlushing,this)}var e=t.prototype;return e.destroy=function(){var t=this.hls;t.off(T.MEDIA_ATTACHING,this.onMediaAttaching,this),t.off(T.MEDIA_DETACHING,this.onMediaDetaching,this),t.off(T.MANIFEST_LOADING,this.onManifestLoading,this),t.off(T.MANIFEST_LOADED,this.onManifestLoaded,this),t.off(T.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),t.off(T.FRAG_LOADING,this.onFragLoading,this),t.off(T.FRAG_LOADED,this.onFragLoaded,this),t.off(T.FRAG_PARSING_USERDATA,this.onFragParsingUserdata,this),t.off(T.FRAG_DECRYPTED,this.onFragDecrypted,this),t.off(T.INIT_PTS_FOUND,this.onInitPtsFound,this),t.off(T.SUBTITLE_TRACKS_CLEARED,this.onSubtitleTracksCleared,this),t.off(T.BUFFER_FLUSHING,this.onBufferFlushing,this),this.hls=this.config=this.cea608Parser1=this.cea608Parser2=null},e.addCues=function(t,e,r,i,n){for(var a,s,o,l,u=!1,h=n.length;h--;){var d=n[h],c=(a=d[0],s=d[1],o=e,l=r,Math.min(s,l)-Math.max(a,o));if(c>=0&&(d[0]=Math.min(d[0],e),d[1]=Math.max(d[1],r),u=!0,c/(r-e)>.5))return}if(u||n.push([e,r]),this.config.renderTextTracksNatively){var f=this.captionsTracks[t];this.Cues.newCue(f,e,r,i)}else{var g=this.Cues.newCue(null,e,r,i);this.hls.trigger(T.CUES_PARSED,{type:"captions",cues:g,track:t})}},e.onInitPtsFound=function(t,e){var r=this,i=e.frag,n=e.id,a=e.initPTS,s=e.timescale,o=this.unparsedVttFrags;"main"===n&&(this.initPTS[i.cc]={baseTime:a,timescale:s}),o.length&&(this.unparsedVttFrags=[],o.forEach(function(t){r.onFragLoaded(T.FRAG_LOADED,t)}))},e.getExistingTrack=function(t){var e=this.media;if(e)for(var r=0;r<e.textTracks.length;r++){var i=e.textTracks[r];if(i[t])return i}return null},e.createCaptionsTrack=function(t){this.config.renderTextTracksNatively?this.createNativeTrack(t):this.createNonNativeTrack(t)},e.createNativeTrack=function(t){if(!this.captionsTracks[t]){var e=this.captionsProperties,r=this.captionsTracks,i=this.media,n=e[t],a=n.label,s=n.languageCode,o=this.getExistingTrack(t);if(o)r[t]=o,me(r[t]),ge(r[t],i);else{var l=this.createTextTrack("captions",a,s);l&&(l[t]=!0,r[t]=l)}}},e.createNonNativeTrack=function(t){if(!this.nonNativeCaptionsTracks[t]){var e=this.captionsProperties[t];if(e){var r={_id:t,label:e.label,kind:"captions",default:!!e.media&&!!e.media.default,closedCaptions:e.media};this.nonNativeCaptionsTracks[t]=r,this.hls.trigger(T.NON_NATIVE_TEXT_TRACKS_FOUND,{tracks:[r]})}}},e.createTextTrack=function(t,e,r){var i=this.media;if(i)return i.addTextTrack(t,e,r)},e.onMediaAttaching=function(t,e){this.media=e.media,this._cleanTracks()},e.onMediaDetaching=function(){var t=this.captionsTracks;Object.keys(t).forEach(function(e){me(t[e]),delete t[e]}),this.nonNativeCaptionsTracks={}},e.onManifestLoading=function(){this.lastSn=-1,this.lastPartIndex=-1,this.prevCC=-1,this.vttCCs={ccOffset:0,presentationOffset:0,0:{start:0,prevCC:-1,new:!0}},this._cleanTracks(),this.tracks=[],this.captionsTracks={},this.nonNativeCaptionsTracks={},this.textTracks=[],this.unparsedVttFrags=[],this.initPTS=[],this.cea608Parser1&&this.cea608Parser2&&(this.cea608Parser1.reset(),this.cea608Parser2.reset())},e._cleanTracks=function(){var t=this.media;if(t){var e=t.textTracks;if(e)for(var r=0;r<e.length;r++)me(e[r])}},e.onSubtitleTracksUpdated=function(t,e){var r=this,i=e.subtitleTracks||[],n=i.some(function(t){return t.textCodec===Yn});if(this.config.enableWebVTT||n&&this.config.enableIMSC1){if(Zi(this.tracks,i))return void(this.tracks=i);if(this.textTracks=[],this.tracks=i,this.config.renderTextTracksNatively){var a=this.media?this.media.textTracks:null;this.tracks.forEach(function(t,e){var i;if(a&&e<a.length){for(var n=null,s=0;s<a.length;s++)if(ra(a[s],t)){n=a[s];break}n&&(i=n)}if(i)me(i);else{var o=r._captionsOrSubtitlesFromCharacteristics(t);(i=r.createTextTrack(o,t.name,t.lang))&&(i.mode="disabled")}i&&(i.groupId=t.groupId,r.textTracks.push(i))})}else if(this.tracks.length){var s=this.tracks.map(function(t){return{label:t.name,kind:t.type.toLowerCase(),default:t.default,subtitleTrack:t}});this.hls.trigger(T.NON_NATIVE_TEXT_TRACKS_FOUND,{tracks:s})}}},e._captionsOrSubtitlesFromCharacteristics=function(t){if(t.attrs.CHARACTERISTICS){var e=/transcribes-spoken-dialog/gi.test(t.attrs.CHARACTERISTICS),r=/describes-music-and-sound/gi.test(t.attrs.CHARACTERISTICS);if(e&&r)return"captions"}return"subtitles"},e.onManifestLoaded=function(t,e){var r=this;this.config.enableCEA708Captions&&e.captions&&e.captions.forEach(function(t){var e=/(?:CC|SERVICE)([1-4])/.exec(t.instreamId);if(e){var i="textTrack"+e[1],n=r.captionsProperties[i];n&&(n.label=t.name,t.lang&&(n.languageCode=t.lang),n.media=t)}})},e.closedCaptionsForLevel=function(t){var e=this.hls.levels[t.level];return null==e?void 0:e.attrs["CLOSED-CAPTIONS"]},e.onFragLoading=function(t,e){var r=this.cea608Parser1,i=this.cea608Parser2,n=this.lastSn,a=this.lastPartIndex;if(this.enabled&&r&&i&&e.frag.type===le){var s,o,l=e.frag.sn,u=null!=(s=null==e||null==(o=e.part)?void 0:o.index)?s:-1;l===n+1||l===n&&u===a+1||(r.reset(),i.reset()),this.lastSn=l,this.lastPartIndex=u}},e.onFragLoaded=function(t,e){var r=e.frag,i=e.payload;if(r.type===he)if(i.byteLength){var n=r.decryptdata,a="stats"in e;if(null==n||!n.encrypted||a){var s=this.tracks[r.level],o=this.vttCCs;o[r.cc]||(o[r.cc]={start:r.start,prevCC:this.prevCC,new:!0},this.prevCC=r.cc),s&&s.textCodec===Yn?this._parseIMSC1(r,i):this._parseVTTs(e)}}else this.hls.trigger(T.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:r,error:new Error("Empty subtitle payload")})},e._parseIMSC1=function(t,e){var r=this,i=this.hls;Xn(e,this.initPTS[t.cc],function(e){r._appendCues(e,t.level),i.trigger(T.SUBTITLE_FRAG_PROCESSED,{success:!0,frag:t})},function(e){b.log("Failed to parse IMSC1: "+e),i.trigger(T.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:t,error:e})})},e._parseVTTs=function(t){var e,r=this,i=t.frag,n=t.payload,a=this.initPTS,s=this.unparsedVttFrags,o=a.length-1;if(a[i.cc]||-1!==o){var l=this.hls;!function(t,e,r,i,n,a,s){var o,l,u,h=new Bn,d=ft(new Uint8Array(t)).trim().replace(Gn,"\n").split("\n"),c=[],f=e?(o=e.baseTime,void 0===(l=e.timescale)&&(l=1),Ti(o,9e4,1/l)):0,g="00:00.000",v=0,m=0,p=!0;h.oncue=function(t){var a=r[i],s=r.ccOffset,o=(v-f)/9e4;if(null!=a&&a.new&&(void 0!==m?s=r.ccOffset=a.start:function(t,e,r){var i=t[e],n=t[i.prevCC];if(!n||!n.new&&i.new)return t.ccOffset=t.presentationOffset=i.start,void(i.new=!1);for(;null!=(a=n)&&a.new;){var a;t.ccOffset+=i.start-n.start,i.new=!1,n=t[(i=n).prevCC]}t.presentationOffset=r}(r,i,o)),o){if(!e)return void(u=new Error("Missing initPTS for VTT MPEGTS"));s=o-r.presentationOffset}var l=t.endTime-t.startTime,h=Ai(9e4*(t.startTime+s-m),9e4*n)/9e4;t.startTime=Math.max(h,0),t.endTime=Math.max(h+l,0);var d=t.text.trim();t.text=decodeURIComponent(encodeURIComponent(d)),t.id||(t.id=Vn(t.startTime,t.endTime,d)),t.endTime>0&&c.push(t)},h.onparsingerror=function(t){u=t},h.onflush=function(){u?s(u):a(c)},d.forEach(function(t){if(p){if(Kn(t,"X-TIMESTAMP-MAP=")){p=!1,t.slice(16).split(",").forEach(function(t){Kn(t,"LOCAL:")?g=t.slice(6):Kn(t,"MPEGTS:")&&(v=parseInt(t.slice(7)))});try{m=function(t){var e=parseInt(t.slice(-3)),r=parseInt(t.slice(-6,-4)),i=parseInt(t.slice(-9,-7)),n=t.length>9?parseInt(t.substring(0,t.indexOf(":"))):0;if(!(y(e)&&y(r)&&y(i)&&y(n)))throw Error("Malformed X-TIMESTAMP-MAP: Local:"+t);return e+=1e3*r,(e+=6e4*i)+36e5*n}(g)/1e3}catch(t){u=t}return}""===t&&(p=!1)}h.parse(t+"\n")}),h.flush()}(null!=(e=i.initSegment)&&e.data?It(i.initSegment.data,new Uint8Array(n)):n,this.initPTS[i.cc],this.vttCCs,i.cc,i.start,function(t){r._appendCues(t,i.level),l.trigger(T.SUBTITLE_FRAG_PROCESSED,{success:!0,frag:i})},function(e){var a="Missing initPTS for VTT MPEGTS"===e.message;a?s.push(t):r._fallbackToIMSC1(i,n),b.log("Failed to parse VTT cue: "+e),a&&o>i.cc||l.trigger(T.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:i,error:e})})}else s.push(t)},e._fallbackToIMSC1=function(t,e){var r=this,i=this.tracks[t.level];i.textCodec||Xn(e,this.initPTS[t.cc],function(){i.textCodec=Yn,r._parseIMSC1(t,e)},function(){i.textCodec="wvtt"})},e._appendCues=function(t,e){var r=this.hls;if(this.config.renderTextTracksNatively){var i=this.textTracks[e];if(!i||"disabled"===i.mode)return;t.forEach(function(t){return ve(i,t)})}else{var n=this.tracks[e];if(!n)return;var a=n.default?"default":"subtitles"+e;r.trigger(T.CUES_PARSED,{type:"subtitles",cues:t,track:a})}},e.onFragDecrypted=function(t,e){e.frag.type===he&&this.onFragLoaded(T.FRAG_LOADED,e)},e.onSubtitleTracksCleared=function(){this.tracks=[],this.captionsTracks={}},e.onFragParsingUserdata=function(t,e){var r=this.cea608Parser1,i=this.cea608Parser2;if(this.enabled&&r&&i){var n=e.frag,a=e.samples;if(n.type!==le||"NONE"!==this.closedCaptionsForLevel(n))for(var s=0;s<a.length;s++){var o=a[s].bytes;if(o){var l=this.extractCea608Data(o);r.addData(a[s].pts,l[0]),i.addData(a[s].pts,l[1])}}}},e.onBufferFlushing=function(t,e){var r=e.startOffset,i=e.endOffset,n=e.endOffsetSubtitles,a=e.type,s=this.media;if(s&&!(s.currentTime<i)){if(!a||"video"===a){var o=this.captionsTracks;Object.keys(o).forEach(function(t){return pe(o[t],r,i)})}if(this.config.renderTextTracksNatively&&0===r&&void 0!==n){var l=this.textTracks;Object.keys(l).forEach(function(t){return pe(l[t],r,n)})}}},e.extractCea608Data=function(t){for(var e=[[],[]],r=31&t[0],i=2,n=0;n<r;n++){var a=t[i++],s=127&t[i++],o=127&t[i++];if((0!==s||0!==o)&&4&a){var l=3&a;0!==l&&1!==l||(e[l].push(s),e[l].push(o))}}return e},t}();function ra(t,e){return!!t&&t.label===e.name&&!(t.textTrack1||t.textTrack2)}var ia=function(){function t(t){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=t,this.autoLevelCapping=Number.POSITIVE_INFINITY,this.firstLevel=-1,this.media=null,this.restrictedLevels=[],this.timer=void 0,this.clientRect=null,this.registerListeners()}var e=t.prototype;return e.setStreamController=function(t){this.streamController=t},e.destroy=function(){this.unregisterListener(),this.hls.config.capLevelToPlayerSize&&this.stopCapping(),this.media=null,this.clientRect=null,this.hls=this.streamController=null},e.registerListeners=function(){var t=this.hls;t.on(T.FPS_DROP_LEVEL_CAPPING,this.onFpsDropLevelCapping,this),t.on(T.MEDIA_ATTACHING,this.onMediaAttaching,this),t.on(T.MANIFEST_PARSED,this.onManifestParsed,this),t.on(T.BUFFER_CODECS,this.onBufferCodecs,this),t.on(T.MEDIA_DETACHING,this.onMediaDetaching,this)},e.unregisterListener=function(){var t=this.hls;t.off(T.FPS_DROP_LEVEL_CAPPING,this.onFpsDropLevelCapping,this),t.off(T.MEDIA_ATTACHING,this.onMediaAttaching,this),t.off(T.MANIFEST_PARSED,this.onManifestParsed,this),t.off(T.BUFFER_CODECS,this.onBufferCodecs,this),t.off(T.MEDIA_DETACHING,this.onMediaDetaching,this)},e.onFpsDropLevelCapping=function(t,e){var r=this.hls.levels[e.droppedLevel];this.isLevelAllowed(r)&&this.restrictedLevels.push({bitrate:r.bitrate,height:r.height,width:r.width})},e.onMediaAttaching=function(t,e){this.media=e.media instanceof HTMLVideoElement?e.media:null,this.clientRect=null},e.onManifestParsed=function(t,e){var r=this.hls;this.restrictedLevels=[],this.firstLevel=e.firstLevel,r.config.capLevelToPlayerSize&&e.video&&this.startCapping()},e.onBufferCodecs=function(t,e){this.hls.config.capLevelToPlayerSize&&e.video&&this.startCapping()},e.onMediaDetaching=function(){this.stopCapping()},e.detectPlayerSize=function(){if(this.media&&this.mediaHeight>0&&this.mediaWidth>0){var t=this.hls.levels;if(t.length){var e=this.hls;e.autoLevelCapping=this.getMaxLevel(t.length-1),e.autoLevelCapping>this.autoLevelCapping&&this.streamController&&this.streamController.nextLevelSwitch(),this.autoLevelCapping=e.autoLevelCapping}}},e.getMaxLevel=function(e){var r=this,i=this.hls.levels;if(!i.length)return-1;var n=i.filter(function(t,i){return r.isLevelAllowed(t)&&i<=e});return this.clientRect=null,t.getMaxLevelByMediaSize(n,this.mediaWidth,this.mediaHeight)},e.startCapping=function(){this.timer||(this.autoLevelCapping=Number.POSITIVE_INFINITY,this.hls.firstLevel=this.getMaxLevel(this.firstLevel),self.clearInterval(this.timer),this.timer=self.setInterval(this.detectPlayerSize.bind(this),1e3),this.detectPlayerSize())},e.stopCapping=function(){this.restrictedLevels=[],this.firstLevel=-1,this.autoLevelCapping=Number.POSITIVE_INFINITY,this.timer&&(self.clearInterval(this.timer),this.timer=void 0)},e.getDimensions=function(){if(this.clientRect)return this.clientRect;var t=this.media,e={width:0,height:0};if(t){var r=t.getBoundingClientRect();e.width=r.width,e.height=r.height,e.width||e.height||(e.width=r.right-r.left||t.width||0,e.height=r.bottom-r.top||t.height||0)}return this.clientRect=e,e},e.isLevelAllowed=function(t){return!this.restrictedLevels.some(function(e){return t.bitrate===e.bitrate&&t.width===e.width&&t.height===e.height})},t.getMaxLevelByMediaSize=function(t,e,r){if(null==t||!t.length)return-1;for(var i,n,a=t.length-1,s=0;s<t.length;s+=1){var o=t[s];if((o.width>=e||o.height>=r)&&(i=o,!(n=t[s+1])||i.width!==n.width||i.height!==n.height)){a=s;break}}return a},a(t,[{key:"mediaWidth",get:function(){return this.getDimensions().width*this.contentScaleFactor}},{key:"mediaHeight",get:function(){return this.getDimensions().height*this.contentScaleFactor}},{key:"contentScaleFactor",get:function(){var t=1;if(!this.hls.config.ignoreDevicePixelRatio)try{t=self.devicePixelRatio}catch(t){}return t}}]),t}(),na=function(){function t(t){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=t,this.registerListeners()}var e=t.prototype;return e.setStreamController=function(t){this.streamController=t},e.registerListeners=function(){this.hls.on(T.MEDIA_ATTACHING,this.onMediaAttaching,this)},e.unregisterListeners=function(){this.hls.off(T.MEDIA_ATTACHING,this.onMediaAttaching,this)},e.destroy=function(){this.timer&&clearInterval(this.timer),this.unregisterListeners(),this.isVideoPlaybackQualityAvailable=!1,this.media=null},e.onMediaAttaching=function(t,e){var r=this.hls.config;if(r.capLevelOnFPSDrop){var i=e.media instanceof self.HTMLVideoElement?e.media:null;this.media=i,i&&"function"==typeof i.getVideoPlaybackQuality&&(this.isVideoPlaybackQualityAvailable=!0),self.clearInterval(this.timer),this.timer=self.setInterval(this.checkFPSInterval.bind(this),r.fpsDroppedMonitoringPeriod)}},e.checkFPS=function(t,e,r){var i=performance.now();if(e){if(this.lastTime){var n=i-this.lastTime,a=r-this.lastDroppedFrames,s=e-this.lastDecodedFrames,o=1e3*a/n,l=this.hls;if(l.trigger(T.FPS_DROP,{currentDropped:a,currentDecoded:s,totalDroppedFrames:r}),o>0&&a>l.config.fpsDroppedMonitoringThreshold*s){var u=l.currentLevel;b.warn("drop FPS ratio greater than max allowed value for currentLevel: "+u),u>0&&(-1===l.autoLevelCapping||l.autoLevelCapping>=u)&&(u-=1,l.trigger(T.FPS_DROP_LEVEL_CAPPING,{level:u,droppedLevel:l.currentLevel}),l.autoLevelCapping=u,this.streamController.nextLevelSwitch())}}this.lastTime=i,this.lastDroppedFrames=r,this.lastDecodedFrames=e}},e.checkFPSInterval=function(){var t=this.media;if(t)if(this.isVideoPlaybackQualityAvailable){var e=t.getVideoPlaybackQuality();this.checkFPS(t,e.totalVideoFrames,e.droppedVideoFrames)}else this.checkFPS(t,t.webkitDecodedFrameCount,t.webkitDroppedFrameCount)},t}(),aa="[eme]",sa=function(){function t(e){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=t.CDMCleanupPromise?[t.CDMCleanupPromise]:[],this.onMediaEncrypted=this._onMediaEncrypted.bind(this),this.onWaitingForKey=this._onWaitingForKey.bind(this),this.debug=b.debug.bind(b,aa),this.log=b.log.bind(b,aa),this.warn=b.warn.bind(b,aa),this.error=b.error.bind(b,aa),this.hls=e,this.config=e.config,this.registerListeners()}var e=t.prototype;return e.destroy=function(){this.unregisterListeners(),this.onMediaDetached();var t=this.config;t.requestMediaKeySystemAccessFunc=null,t.licenseXhrSetup=t.licenseResponseCallback=void 0,t.drmSystems=t.drmSystemOptions={},this.hls=this.onMediaEncrypted=this.onWaitingForKey=this.keyIdToKeySessionPromise=null,this.config=null},e.registerListeners=function(){this.hls.on(T.MEDIA_ATTACHED,this.onMediaAttached,this),this.hls.on(T.MEDIA_DETACHED,this.onMediaDetached,this),this.hls.on(T.MANIFEST_LOADING,this.onManifestLoading,this),this.hls.on(T.MANIFEST_LOADED,this.onManifestLoaded,this)},e.unregisterListeners=function(){this.hls.off(T.MEDIA_ATTACHED,this.onMediaAttached,this),this.hls.off(T.MEDIA_DETACHED,this.onMediaDetached,this),this.hls.off(T.MANIFEST_LOADING,this.onManifestLoading,this),this.hls.off(T.MANIFEST_LOADED,this.onManifestLoaded,this)},e.getLicenseServerUrl=function(t){var e=this.config,r=e.drmSystems,i=e.widevineLicenseUrl,n=r[t];if(n)return n.licenseUrl;if(t===H.WIDEVINE&&i)return i;throw new Error('no license server URL configured for key-system "'+t+'"')},e.getServerCertificateUrl=function(t){var e=this.config.drmSystems[t];if(e)return e.serverCertificateUrl;this.log('No Server Certificate in config.drmSystems["'+t+'"]')},e.attemptKeySystemAccess=function(t){var e=this,r=this.hls.levels,i=function(t,e,r){return!!t&&r.indexOf(t)===e},n=r.map(function(t){return t.audioCodec}).filter(i),a=r.map(function(t){return t.videoCodec}).filter(i);return n.length+a.length===0&&a.push("avc1.42e01e"),new Promise(function(r,i){!function t(s){var o=s.shift();e.getMediaKeysPromise(o,n,a).then(function(t){return r({keySystem:o,mediaKeys:t})}).catch(function(e){s.length?t(s):i(e instanceof oa?e:new oa({type:E.KEY_SYSTEM_ERROR,details:S.KEY_SYSTEM_NO_ACCESS,error:e,fatal:!0},e.message))})}(t)})},e.requestMediaKeySystemAccess=function(t,e){var r=this.config.requestMediaKeySystemAccessFunc;if("function"!=typeof r){var i="Configured requestMediaKeySystemAccess is not a function "+r;return null===$&&"http:"===self.location.protocol&&(i="navigator.requestMediaKeySystemAccess is not available over insecure protocol "+location.protocol),Promise.reject(new Error(i))}return r(t,e)},e.getMediaKeysPromise=function(t,e,r){var i=this,n=function(t,e,r,i){var n;switch(t){case H.FAIRPLAY:n=["cenc","sinf"];break;case H.WIDEVINE:case H.PLAYREADY:n=["cenc"];break;case H.CLEARKEY:n=["cenc","keyids"];break;default:throw new Error("Unknown key-system: "+t)}return function(t,e,r,i){return[{initDataTypes:t,persistentState:i.persistentState||"not-allowed",distinctiveIdentifier:i.distinctiveIdentifier||"not-allowed",sessionTypes:i.sessionTypes||[i.sessionType||"temporary"],audioCapabilities:e.map(function(t){return{contentType:'audio/mp4; codecs="'+t+'"',robustness:i.audioRobustness||"",encryptionScheme:i.audioEncryptionScheme||null}}),videoCapabilities:r.map(function(t){return{contentType:'video/mp4; codecs="'+t+'"',robustness:i.videoRobustness||"",encryptionScheme:i.videoEncryptionScheme||null}})}]}(n,e,r,i)}(t,e,r,this.config.drmSystemOptions),a=this.keySystemAccessPromises[t],s=null==a?void 0:a.keySystemAccess;if(!s){this.log('Requesting encrypted media "'+t+'" key-system access with config: '+JSON.stringify(n)),s=this.requestMediaKeySystemAccess(t,n);var o=this.keySystemAccessPromises[t]={keySystemAccess:s};return s.catch(function(e){i.log('Failed to obtain access to key-system "'+t+'": '+e)}),s.then(function(e){i.log('Access for key-system "'+e.keySystem+'" obtained');var r=i.fetchServerCertificate(t);return i.log('Create media-keys for "'+t+'"'),o.mediaKeys=e.createMediaKeys().then(function(e){return i.log('Media-keys created for "'+t+'"'),r.then(function(r){return r?i.setMediaKeysServerCertificate(e,t,r):e})}),o.mediaKeys.catch(function(e){i.error('Failed to create media-keys for "'+t+'"}: '+e)}),o.mediaKeys})}return s.then(function(){return a.mediaKeys})},e.createMediaKeySessionContext=function(t){var e=t.decryptdata,r=t.keySystem,i=t.mediaKeys;this.log('Creating key-system session "'+r+'" keyId: '+gt(e.keyId||[]));var n=i.createSession(),a={decryptdata:e,keySystem:r,mediaKeys:i,mediaKeysSession:n,keyStatus:"status-pending"};return this.mediaKeySessions.push(a),a},e.renewKeySession=function(t){var e=t.decryptdata;if(e.pssh){var r=this.createMediaKeySessionContext(t),i=this.getKeyIdString(e);this.keyIdToKeySessionPromise[i]=this.generateRequestWithPreferredKeySession(r,"cenc",e.pssh,"expired")}else this.warn("Could not renew expired session. Missing pssh initData.");this.removeSession(t)},e.getKeyIdString=function(t){if(!t)throw new Error("Could not read keyId of undefined decryptdata");if(null===t.keyId)throw new Error("keyId is null");return gt(t.keyId)},e.updateKeySession=function(t,e){var r,i=t.mediaKeysSession;return this.log('Updating key-session "'+i.sessionId+'" for keyID '+gt((null==(r=t.decryptdata)?void 0:r.keyId)||[])+"\n      } (data length: "+(e?e.byteLength:e)+")"),i.update(e)},e.selectKeySystemFormat=function(t){var e=Object.keys(t.levelkeys||{});return this.keyFormatPromise||(this.log("Selecting key-system from fragment (sn: "+t.sn+" "+t.type+": "+t.level+") key formats "+e.join(", ")),this.keyFormatPromise=this.getKeyFormatPromise(e)),this.keyFormatPromise},e.getKeyFormatPromise=function(t){var e=this;return new Promise(function(r,i){var n=Q(e.config),a=t.map(q).filter(function(t){return!!t&&-1!==n.indexOf(t)});return e.getKeySystemSelectionPromise(a).then(function(t){var e=t.keySystem,n=z(e);n?r(n):i(new Error('Unable to find format for key-system "'+e+'"'))}).catch(i)})},e.loadKey=function(t){var e=this,r=t.keyInfo.decryptdata,i=this.getKeyIdString(r),n="(keyId: "+i+' format: "'+r.keyFormat+'" method: '+r.method+" uri: "+r.uri+")";this.log("Starting session for key "+n);var a=this.keyIdToKeySessionPromise[i];return a||(a=this.keyIdToKeySessionPromise[i]=this.getKeySystemForKeyPromise(r).then(function(i){var a=i.keySystem,s=i.mediaKeys;return e.throwIfDestroyed(),e.log("Handle encrypted media sn: "+t.frag.sn+" "+t.frag.type+": "+t.frag.level+" using key "+n),e.attemptSetMediaKeys(a,s).then(function(){e.throwIfDestroyed();var t=e.createMediaKeySessionContext({keySystem:a,mediaKeys:s,decryptdata:r});return e.generateRequestWithPreferredKeySession(t,"cenc",r.pssh,"playlist-key")})})).catch(function(t){return e.handleError(t)}),a},e.throwIfDestroyed=function(t){if(!this.hls)throw new Error("invalid state")},e.handleError=function(t){this.hls&&(this.error(t.message),t instanceof oa?this.hls.trigger(T.ERROR,t.data):this.hls.trigger(T.ERROR,{type:E.KEY_SYSTEM_ERROR,details:S.KEY_SYSTEM_NO_KEYS,error:t,fatal:!0}))},e.getKeySystemForKeyPromise=function(t){var e=this.getKeyIdString(t),r=this.keyIdToKeySessionPromise[e];if(!r){var i=q(t.keyFormat),n=i?[i]:Q(this.config);return this.attemptKeySystemAccess(n)}return r},e.getKeySystemSelectionPromise=function(t){if(t.length||(t=Q(this.config)),0===t.length)throw new oa({type:E.KEY_SYSTEM_ERROR,details:S.KEY_SYSTEM_NO_CONFIGURED_LICENSE,fatal:!0},"Missing key-system license configuration options "+JSON.stringify({drmSystems:this.config.drmSystems}));return this.attemptKeySystemAccess(t)},e._onMediaEncrypted=function(t){var e=this,r=t.initDataType,i=t.initData;if(this.debug('"'+t.type+'" event: init data type: "'+r+'"'),null!==i){var n,a;if("sinf"===r&&this.config.drmSystems[H.FAIRPLAY]){var s=yt(new Uint8Array(i));try{var o=G(JSON.parse(s).sinf),l=bt(new Uint8Array(o));if(!l)return;n=l.subarray(8,24),a=H.FAIRPLAY}catch(t){return void this.warn('Failed to parse sinf "encrypted" event message initData')}}else{var u=function(t){if(!(t instanceof ArrayBuffer)||t.byteLength<32)return null;var e={version:0,systemId:"",kids:null,data:null},r=new DataView(t),i=r.getUint32(0);if(t.byteLength!==i&&i>44)return null;if(1886614376!==r.getUint32(4))return null;if(e.version=r.getUint32(8)>>>24,e.version>1)return null;e.systemId=gt(new Uint8Array(t,12,16));var n=r.getUint32(28);if(0===e.version){if(i-32<n)return null;e.data=new Uint8Array(t,32,n)}else if(1===e.version){e.kids=[];for(var a=0;a<n;a++)e.kids.push(new Uint8Array(t,32+16*a,16))}return e}(i);if(null===u)return;0===u.version&&u.systemId===X&&u.data&&(n=u.data.subarray(8,24)),a=function(t){if(t===X)return H.WIDEVINE}(u.systemId)}if(a&&n){for(var h=gt(n),d=this.keyIdToKeySessionPromise,c=this.mediaKeySessions,f=d[h],g=function(){var t=c[v],a=t.decryptdata;if(a.pssh||!a.keyId)return"continue";var s=gt(a.keyId);return h===s||-1!==a.uri.replace(/-/g,"").indexOf(h)?(f=d[s],delete d[s],a.pssh=new Uint8Array(i),a.keyId=n,f=d[h]=f.then(function(){return e.generateRequestWithPreferredKeySession(t,r,i,"encrypted-event-key-match")}),"break"):void 0},v=0;v<c.length;v++){var m=g();if("continue"!==m&&"break"===m)break}f||(f=d[h]=this.getKeySystemSelectionPromise([a]).then(function(t){var a,s=t.keySystem,o=t.mediaKeys;e.throwIfDestroyed();var l=new Ft("ISO-23001-7",h,null!=(a=z(s))?a:"");return l.pssh=new Uint8Array(i),l.keyId=n,e.attemptSetMediaKeys(s,o).then(function(){e.throwIfDestroyed();var t=e.createMediaKeySessionContext({decryptdata:l,keySystem:s,mediaKeys:o});return e.generateRequestWithPreferredKeySession(t,r,i,"encrypted-event-no-match")})})),f.catch(function(t){return e.handleError(t)})}}},e._onWaitingForKey=function(t){this.log('"'+t.type+'" event')},e.attemptSetMediaKeys=function(t,e){var r=this,i=this.setMediaKeysQueue.slice();this.log('Setting media-keys for "'+t+'"');var n=Promise.all(i).then(function(){if(!r.media)throw new Error("Attempted to set mediaKeys without media element attached");return r.media.setMediaKeys(e)});return this.setMediaKeysQueue.push(n),n.then(function(){r.log('Media-keys set for "'+t+'"'),i.push(n),r.setMediaKeysQueue=r.setMediaKeysQueue.filter(function(t){return-1===i.indexOf(t)})})},e.generateRequestWithPreferredKeySession=function(t,e,r,i){var n,a,s=this,o=null==(n=this.config.drmSystems)||null==(a=n[t.keySystem])?void 0:a.generateRequest;if(o)try{var l=o.call(this.hls,e,r,t);if(!l)throw new Error("Invalid response from configured generateRequest filter");e=l.initDataType,r=t.decryptdata.pssh=l.initData?new Uint8Array(l.initData):null}catch(t){var u;if(this.warn(t.message),null!=(u=this.hls)&&u.config.debug)throw t}if(null===r)return this.log('Skipping key-session request for "'+i+'" (no initData)'),Promise.resolve(t);var h=this.getKeyIdString(t.decryptdata);this.log('Generating key-session request for "'+i+'": '+h+" (init data type: "+e+" length: "+(r?r.byteLength:null)+")");var d=new Bi;t.mediaKeysSession.onmessage=function(e){var r=t.mediaKeysSession;if(r){var i=e.messageType,n=e.message;s.log('"'+i+'" message event for session "'+r.sessionId+'" message size: '+n.byteLength),"license-request"===i||"license-renewal"===i?s.renewLicense(t,n).catch(function(t){s.handleError(t),d.emit("error",t)}):"license-release"===i?t.keySystem===H.FAIRPLAY&&(s.updateKeySession(t,K("acknowledged")),s.removeSession(t)):s.warn('unhandled media key message type "'+i+'"')}else d.emit("error",new Error("invalid state"))},t.mediaKeysSession.onkeystatuseschange=function(e){if(t.mediaKeysSession){s.onKeyStatusChange(t);var r=t.keyStatus;d.emit("keyStatus",r),"expired"===r&&(s.warn(t.keySystem+" expired for key "+h),s.renewKeySession(t))}else d.emit("error",new Error("invalid state"))};var c=new Promise(function(t,e){d.on("error",e),d.on("keyStatus",function(r){r.startsWith("usable")?t():"output-restricted"===r?e(new oa({type:E.KEY_SYSTEM_ERROR,details:S.KEY_SYSTEM_STATUS_OUTPUT_RESTRICTED,fatal:!1},"HDCP level output restricted")):"internal-error"===r?e(new oa({type:E.KEY_SYSTEM_ERROR,details:S.KEY_SYSTEM_STATUS_INTERNAL_ERROR,fatal:!0},'key status changed to "'+r+'"')):"expired"===r?e(new Error("key expired while generating request")):s.warn('unhandled key status change "'+r+'"')})});return t.mediaKeysSession.generateRequest(e,r).then(function(){var e;s.log('Request generated for key-session "'+(null==(e=t.mediaKeysSession)?void 0:e.sessionId)+'" keyId: '+h)}).catch(function(t){throw new oa({type:E.KEY_SYSTEM_ERROR,details:S.KEY_SYSTEM_NO_SESSION,error:t,fatal:!1},"Error generating key-session request: "+t)}).then(function(){return c}).catch(function(e){throw d.removeAllListeners(),s.removeSession(t),e}).then(function(){return d.removeAllListeners(),t})},e.onKeyStatusChange=function(t){var e=this;t.mediaKeysSession.keyStatuses.forEach(function(r,i){e.log('key status change "'+r+'" for keyStatuses keyId: '+gt("buffer"in i?new Uint8Array(i.buffer,i.byteOffset,i.byteLength):new Uint8Array(i))+" session keyId: "+gt(new Uint8Array(t.decryptdata.keyId||[]))+" uri: "+t.decryptdata.uri),t.keyStatus=r})},e.fetchServerCertificate=function(t){var e=this.config,r=new(0,e.loader)(e),n=this.getServerCertificateUrl(t);return n?(this.log('Fetching serverCertificate for "'+t+'"'),new Promise(function(a,s){var o={responseType:"arraybuffer",url:n},l=e.certLoadPolicy.default,u={loadPolicy:l,timeout:l.maxLoadTimeMs,maxRetry:0,retryDelay:0,maxRetryDelay:0},h={onSuccess:function(t,e,r,i){a(t.data)},onError:function(e,r,a,l){s(new oa({type:E.KEY_SYSTEM_ERROR,details:S.KEY_SYSTEM_SERVER_CERTIFICATE_REQUEST_FAILED,fatal:!0,networkDetails:a,response:i({url:o.url,data:void 0},e)},'"'+t+'" certificate request failed ('+n+"). Status: "+e.code+" ("+e.text+")"))},onTimeout:function(e,r,i){s(new oa({type:E.KEY_SYSTEM_ERROR,details:S.KEY_SYSTEM_SERVER_CERTIFICATE_REQUEST_FAILED,fatal:!0,networkDetails:i,response:{url:o.url,data:void 0}},'"'+t+'" certificate request timed out ('+n+")"))},onAbort:function(t,e,r){s(new Error("aborted"))}};r.load(o,u,h)})):Promise.resolve()},e.setMediaKeysServerCertificate=function(t,e,r){var i=this;return new Promise(function(n,a){t.setServerCertificate(r).then(function(a){i.log("setServerCertificate "+(a?"success":"not supported by CDM")+" ("+(null==r?void 0:r.byteLength)+') on "'+e+'"'),n(t)}).catch(function(t){a(new oa({type:E.KEY_SYSTEM_ERROR,details:S.KEY_SYSTEM_SERVER_CERTIFICATE_UPDATE_FAILED,error:t,fatal:!0},t.message))})})},e.renewLicense=function(t,e){var r=this;return this.requestLicense(t,new Uint8Array(e)).then(function(e){return r.updateKeySession(t,new Uint8Array(e)).catch(function(t){throw new oa({type:E.KEY_SYSTEM_ERROR,details:S.KEY_SYSTEM_SESSION_UPDATE_FAILED,error:t,fatal:!0},t.message)})})},e.setupLicenseXHR=function(t,e,r,i){var n=this,a=this.config.licenseXhrSetup;return a?Promise.resolve().then(function(){if(!r.decryptdata)throw new Error("Key removed");return a.call(n.hls,t,e,r,i)}).catch(function(s){if(!r.decryptdata)throw s;return t.open("POST",e,!0),a.call(n.hls,t,e,r,i)}).then(function(r){return t.readyState||t.open("POST",e,!0),{xhr:t,licenseChallenge:r||i}}):(t.open("POST",e,!0),Promise.resolve({xhr:t,licenseChallenge:i}))},e.requestLicense=function(t,e){var r=this,i=this.config.keyLoadPolicy.default;return new Promise(function(n,a){var s=r.getLicenseServerUrl(t.keySystem);r.log("Sending license request to URL: "+s);var o=new XMLHttpRequest;o.responseType="arraybuffer",o.onreadystatechange=function(){if(!r.hls||!t.mediaKeysSession)return a(new Error("invalid state"));if(4===o.readyState)if(200===o.status){r._requestLicenseFailureCount=0;var l=o.response;r.log("License received "+(l instanceof ArrayBuffer?l.byteLength:l));var u=r.config.licenseResponseCallback;if(u)try{l=u.call(r.hls,o,s,t)}catch(t){r.error(t)}n(l)}else{var h=i.errorRetry,d=h?h.maxNumRetry:0;if(r._requestLicenseFailureCount++,r._requestLicenseFailureCount>d||o.status>=400&&o.status<500)a(new oa({type:E.KEY_SYSTEM_ERROR,details:S.KEY_SYSTEM_LICENSE_REQUEST_FAILED,fatal:!0,networkDetails:o,response:{url:s,data:void 0,code:o.status,text:o.statusText}},"License Request XHR failed ("+s+"). Status: "+o.status+" ("+o.statusText+")"));else{var c=d-r._requestLicenseFailureCount+1;r.warn("Retrying license request, "+c+" attempts left"),r.requestLicense(t,e).then(n,a)}}},t.licenseXhr&&t.licenseXhr.readyState!==XMLHttpRequest.DONE&&t.licenseXhr.abort(),t.licenseXhr=o,r.setupLicenseXHR(o,s,t,e).then(function(t){var e=t.xhr,r=t.licenseChallenge;e.send(r)})})},e.onMediaAttached=function(t,e){if(this.config.emeEnabled){var r=e.media;this.media=r,r.addEventListener("encrypted",this.onMediaEncrypted),r.addEventListener("waitingforkey",this.onWaitingForKey)}},e.onMediaDetached=function(){var e=this,r=this.media,i=this.mediaKeySessions;r&&(r.removeEventListener("encrypted",this.onMediaEncrypted),r.removeEventListener("waitingforkey",this.onWaitingForKey),this.media=null),this._requestLicenseFailureCount=0,this.setMediaKeysQueue=[],this.mediaKeySessions=[],this.keyIdToKeySessionPromise={},Ft.clearKeyUriToKeyIdMap();var n=i.length;t.CDMCleanupPromise=Promise.all(i.map(function(t){return e.removeSession(t)}).concat(null==r?void 0:r.setMediaKeys(null).catch(function(t){e.log("Could not clear media keys: "+t+". media.src: "+(null==r?void 0:r.src))}))).then(function(){n&&(e.log("finished closing key sessions and clearing media keys"),i.length=0)}).catch(function(t){e.log("Could not close sessions and clear media keys: "+t+". media.src: "+(null==r?void 0:r.src))})},e.onManifestLoading=function(){this.keyFormatPromise=null},e.onManifestLoaded=function(t,e){var r=e.sessionKeys;if(r&&this.config.emeEnabled&&!this.keyFormatPromise){var i=r.reduce(function(t,e){return-1===t.indexOf(e.keyFormat)&&t.push(e.keyFormat),t},[]);this.log("Selecting key-system from session-keys "+i.join(", ")),this.keyFormatPromise=this.getKeyFormatPromise(i)}},e.removeSession=function(t){var e=this,r=t.mediaKeysSession,i=t.licenseXhr;if(r){this.log("Remove licenses and keys and close session "+r.sessionId),r.onmessage=null,r.onkeystatuseschange=null,i&&i.readyState!==XMLHttpRequest.DONE&&i.abort(),t.mediaKeysSession=t.decryptdata=t.licenseXhr=void 0;var n=this.mediaKeySessions.indexOf(t);return n>-1&&this.mediaKeySessions.splice(n,1),r.remove().catch(function(t){e.log("Could not remove session: "+t)}).then(function(){return r.close()}).catch(function(t){e.log("Could not close session: "+t)})}},t}();sa.CDMCleanupPromise=void 0;var oa=function(t){function e(e,r){var i;return(i=t.call(this,r)||this).data=void 0,e.error||(e.error=new Error(r)),i.data=e,e.err=e.error,i}return l(e,t),e}(c(Error)),la="a",ua="av",ha=function(){function t(e){var r=this;this.hls=void 0,this.config=void 0,this.media=void 0,this.sid=void 0,this.cid=void 0,this.useHeaders=!1,this.initialized=!1,this.starved=!1,this.buffering=!0,this.audioBuffer=void 0,this.videoBuffer=void 0,this.onWaiting=function(){r.initialized&&(r.starved=!0),r.buffering=!0},this.onPlaying=function(){r.initialized||(r.initialized=!0),r.buffering=!1},this.applyPlaylistData=function(t){try{r.apply(t,{ot:"m",su:!r.initialized})}catch(t){b.warn("Could not generate manifest CMCD data.",t)}},this.applyFragmentData=function(t){try{var e=t.frag,i=r.hls.levels[e.level],n=r.getObjectType(e),a={d:1e3*e.duration,ot:n};"v"!==n&&n!==la&&n!=ua||(a.br=i.bitrate/1e3,a.tb=r.getTopBandwidth(n)/1e3,a.bl=r.getBufferLength(n)),r.apply(t,a)}catch(t){b.warn("Could not generate segment CMCD data.",t)}},this.hls=e;var i=this.config=e.config,n=i.cmcd;null!=n&&(i.pLoader=this.createPlaylistLoader(),i.fLoader=this.createFragmentLoader(),this.sid=n.sessionId||t.uuid(),this.cid=n.contentId,this.useHeaders=!0===n.useHeaders,this.registerListeners())}var e=t.prototype;return e.registerListeners=function(){var t=this.hls;t.on(T.MEDIA_ATTACHED,this.onMediaAttached,this),t.on(T.MEDIA_DETACHED,this.onMediaDetached,this),t.on(T.BUFFER_CREATED,this.onBufferCreated,this)},e.unregisterListeners=function(){var t=this.hls;t.off(T.MEDIA_ATTACHED,this.onMediaAttached,this),t.off(T.MEDIA_DETACHED,this.onMediaDetached,this),t.off(T.BUFFER_CREATED,this.onBufferCreated,this)},e.destroy=function(){this.unregisterListeners(),this.onMediaDetached(),this.hls=this.config=this.audioBuffer=this.videoBuffer=null},e.onMediaAttached=function(t,e){this.media=e.media,this.media.addEventListener("waiting",this.onWaiting),this.media.addEventListener("playing",this.onPlaying)},e.onMediaDetached=function(){this.media&&(this.media.removeEventListener("waiting",this.onWaiting),this.media.removeEventListener("playing",this.onPlaying),this.media=null)},e.onBufferCreated=function(t,e){var r,i;this.audioBuffer=null==(r=e.tracks.audio)?void 0:r.buffer,this.videoBuffer=null==(i=e.tracks.video)?void 0:i.buffer},e.createData=function(){var t;return{v:1,sf:"h",sid:this.sid,cid:this.cid,pr:null==(t=this.media)?void 0:t.playbackRate,mtp:this.hls.bandwidthEstimate/1e3}},e.apply=function(e,r){void 0===r&&(r={}),o(r,this.createData());var i="i"===r.ot||"v"===r.ot||r.ot===ua;if(this.starved&&i&&(r.bs=!0,r.su=!0,this.starved=!1),null==r.su&&(r.su=this.buffering),this.useHeaders){var n=t.toHeaders(r);if(!Object.keys(n).length)return;e.headers||(e.headers={}),o(e.headers,n)}else{var a=t.toQuery(r);if(!a)return;e.url=t.appendQueryToUri(e.url,a)}},e.getObjectType=function(t){var e=t.type;return"subtitle"===e?"tt":"initSegment"===t.sn?"i":"audio"===e?la:"main"===e?this.hls.audioTracks.length?"v":ua:void 0},e.getTopBandwidth=function(t){var e,r=0,i=this.hls;if(t===la)e=i.audioTracks;else{var n=i.maxAutoLevel,a=n>-1?n+1:i.levels.length;e=i.levels.slice(0,a)}for(var s,o=g(e);!(s=o()).done;){var l=s.value;l.bitrate>r&&(r=l.bitrate)}return r>0?r:NaN},e.getBufferLength=function(t){var e=this.hls.media,r=t===la?this.audioBuffer:this.videoBuffer;return r&&e?1e3*dr.bufferInfo(r,e.currentTime,this.config.maxBufferHole).len:NaN},e.createPlaylistLoader=function(){var t=this.config.pLoader,e=this.applyPlaylistData,r=t||this.config.loader;return function(){function t(t){this.loader=void 0,this.loader=new r(t)}var i=t.prototype;return i.destroy=function(){this.loader.destroy()},i.abort=function(){this.loader.abort()},i.load=function(t,r,i){e(t),this.loader.load(t,r,i)},a(t,[{key:"stats",get:function(){return this.loader.stats}},{key:"context",get:function(){return this.loader.context}}]),t}()},e.createFragmentLoader=function(){var t=this.config.fLoader,e=this.applyFragmentData,r=t||this.config.loader;return function(){function t(t){this.loader=void 0,this.loader=new r(t)}var i=t.prototype;return i.destroy=function(){this.loader.destroy()},i.abort=function(){this.loader.abort()},i.load=function(t,r,i){e(t),this.loader.load(t,r,i)},a(t,[{key:"stats",get:function(){return this.loader.stats}},{key:"context",get:function(){return this.loader.context}}]),t}()},t.uuid=function(){var t=URL.createObjectURL(new Blob),e=t.toString();return URL.revokeObjectURL(t),e.slice(e.lastIndexOf("/")+1)},t.serialize=function(t){for(var e,r=[],i=function(t){return!Number.isNaN(t)&&null!=t&&""!==t&&!1!==t},n=function(t){return Math.round(t)},a=function(t){return 100*n(t/100)},s={br:n,d:n,bl:a,dl:a,mtp:a,nor:function(t){return encodeURIComponent(t)},rtp:a,tb:n},o=g(Object.keys(t||{}).sort());!(e=o()).done;){var l=e.value,u=t[l];if(i(u)&&!("v"===l&&1===u||"pr"==l&&1===u)){var h=s[l];h&&(u=h(u));var d,c=typeof u;d="ot"===l||"sf"===l||"st"===l?l+"="+u:"boolean"===c?l:"number"===c?l+"="+u:l+"="+JSON.stringify(u),r.push(d)}}return r.join(",")},t.toHeaders=function(e){for(var r={},i=["Object","Request","Session","Status"],n=[{},{},{},{}],a={br:0,d:0,ot:0,tb:0,bl:1,dl:1,mtp:1,nor:1,nrr:1,su:1,cid:2,pr:2,sf:2,sid:2,st:2,v:2,bs:3,rtp:3},s=0,o=Object.keys(e);s<o.length;s++){var l=o[s];n[null!=a[l]?a[l]:1][l]=e[l]}for(var u=0;u<n.length;u++){var h=t.serialize(n[u]);h&&(r["CMCD-"+i[u]]=h)}return r},t.toQuery=function(e){return"CMCD="+encodeURIComponent(t.serialize(e))},t.appendQueryToUri=function(t,e){if(!e)return t;var r=t.includes("?")?"&":"?";return""+t+r+e},t}(),da=function(){function t(t){this.hls=void 0,this.log=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=t,this.log=b.log.bind(b,"[content-steering]:"),this.registerListeners()}var e=t.prototype;return e.registerListeners=function(){var t=this.hls;t.on(T.MANIFEST_LOADING,this.onManifestLoading,this),t.on(T.MANIFEST_LOADED,this.onManifestLoaded,this),t.on(T.MANIFEST_PARSED,this.onManifestParsed,this),t.on(T.ERROR,this.onError,this)},e.unregisterListeners=function(){var t=this.hls;t&&(t.off(T.MANIFEST_LOADING,this.onManifestLoading,this),t.off(T.MANIFEST_LOADED,this.onManifestLoaded,this),t.off(T.MANIFEST_PARSED,this.onManifestParsed,this),t.off(T.ERROR,this.onError,this))},e.startLoad=function(){if(this.started=!0,self.clearTimeout(this.reloadTimer),this.enabled&&this.uri)if(this.updated){var t=Math.max(1e3*this.timeToLoad-(performance.now()-this.updated),0);this.scheduleRefresh(this.uri,t)}else this.loadSteeringManifest(this.uri)},e.stopLoad=function(){this.started=!1,this.loader&&(this.loader.destroy(),this.loader=null),self.clearTimeout(this.reloadTimer)},e.destroy=function(){this.unregisterListeners(),this.stopLoad(),this.hls=null,this.levels=this.audioTracks=this.subtitleTracks=null},e.removeLevel=function(t){var e=this.levels;e&&(this.levels=e.filter(function(e){return e!==t}))},e.onManifestLoading=function(){this.stopLoad(),this.enabled=!0,this.timeToLoad=300,this.updated=0,this.uri=null,this.pathwayId=".",this.levels=this.audioTracks=this.subtitleTracks=null},e.onManifestLoaded=function(t,e){var r=e.contentSteering;null!==r&&(this.pathwayId=r.pathwayId,this.uri=r.uri,this.started&&this.startLoad())},e.onManifestParsed=function(t,e){this.audioTracks=e.audioTracks,this.subtitleTracks=e.subtitleTracks},e.onError=function(t,e){var r=e.errorAction;if(2===(null==r?void 0:r.action)&&1===r.flags){var i=this.pathwayPriority,n=this.pathwayId;this.penalizedPathways[n]||(this.penalizedPathways[n]=performance.now()),!i&&this.levels&&(i=this.levels.reduce(function(t,e){return-1===t.indexOf(e.pathwayId)&&t.push(e.pathwayId),t},[])),i&&i.length>1&&(this.updatePathwayPriority(i),r.resolved=this.pathwayId!==n)}},e.filterParsedLevels=function(t){this.levels=t;var e=this.getLevelsForPathway(this.pathwayId);if(0===e.length){var r=t[0].pathwayId;this.log("No levels found in Pathway "+this.pathwayId+'. Setting initial Pathway to "'+r+'"'),e=this.getLevelsForPathway(r),this.pathwayId=r}return e.length!==t.length?(this.log("Found "+e.length+"/"+t.length+' levels in Pathway "'+this.pathwayId+'"'),e):t},e.getLevelsForPathway=function(t){return null===this.levels?[]:this.levels.filter(function(e){return t===e.pathwayId})},e.updatePathwayPriority=function(t){var e;this.pathwayPriority=t;var r=this.penalizedPathways,i=performance.now();Object.keys(r).forEach(function(t){i-r[t]>3e5&&delete r[t]});for(var n=0;n<t.length;n++){var a=t[n];if(!r[a]){if(a===this.pathwayId)return;var s=this.hls.nextLoadLevel,o=this.hls.levels[s];if((e=this.getLevelsForPathway(a)).length>0){this.log('Setting Pathway to "'+a+'"'),this.pathwayId=a,this.hls.trigger(T.LEVELS_UPDATED,{levels:e});var l=this.hls.levels[s];o&&l&&this.levels&&(l.attrs["STABLE-VARIANT-ID"]!==o.attrs["STABLE-VARIANT-ID"]&&l.bitrate!==o.bitrate&&this.log("Unstable Pathways change from bitrate "+o.bitrate+" to "+l.bitrate),this.hls.nextLoadLevel=s);break}}}},e.clonePathways=function(t){var e=this,r=this.levels;if(r){var i={},n={};t.forEach(function(t){var a=t.ID,s=t["BASE-ID"],l=t["URI-REPLACEMENT"];if(!r.some(function(t){return t.pathwayId===a})){var u=e.getLevelsForPathway(s).map(function(t){var e=o({},t);e.details=void 0,e.url=fa(t.uri,t.attrs["STABLE-VARIANT-ID"],"PER-VARIANT-URIS",l);var r=new w(t.attrs);r["PATHWAY-ID"]=a;var s=r.AUDIO&&r.AUDIO+"_clone_"+a,u=r.SUBTITLES&&r.SUBTITLES+"_clone_"+a;s&&(i[r.AUDIO]=s,r.AUDIO=s),u&&(n[r.SUBTITLES]=u,r.SUBTITLES=u),e.attrs=r;var h=new De(e);return Xe(h,"audio",s),Xe(h,"text",u),h});r.push.apply(r,u),ca(e.audioTracks,i,l,a),ca(e.subtitleTracks,n,l,a)}})}},e.loadSteeringManifest=function(t){var e,r=this,i=this.hls.config,n=i.loader;this.loader&&this.loader.destroy(),this.loader=new n(i);try{e=new self.URL(t)}catch(e){return this.enabled=!1,void this.log("Failed to parse Steering Manifest URI: "+t)}if("data:"!==e.protocol){var a=0|(this.hls.bandwidthEstimate||i.abrEwmaDefaultEstimate);e.searchParams.set("_HLS_pathway",this.pathwayId),e.searchParams.set("_HLS_throughput",""+a)}var s={responseType:"json",url:e.href},o=i.steeringManifestLoadPolicy.default,l=o.errorRetry||o.timeoutRetry||{},u={loadPolicy:o,timeout:o.maxLoadTimeMs,maxRetry:l.maxNumRetry||0,retryDelay:l.retryDelayMs||0,maxRetryDelay:l.maxRetryDelayMs||0},h={onSuccess:function(t,i,n,a){r.log('Loaded steering manifest: "'+e+'"');var s=t.data;if(1===s.VERSION){r.updated=performance.now(),r.timeToLoad=s.TTL;var o=s["RELOAD-URI"],l=s["PATHWAY-CLONES"],u=s["PATHWAY-PRIORITY"];if(o)try{r.uri=new self.URL(o,e).href}catch(t){return r.enabled=!1,void r.log("Failed to parse Steering Manifest RELOAD-URI: "+o)}r.scheduleRefresh(r.uri||n.url),l&&r.clonePathways(l),u&&r.updatePathwayPriority(u)}else r.log("Steering VERSION "+s.VERSION+" not supported!")},onError:function(t,e,i,n){if(r.log("Error loading steering manifest: "+t.code+" "+t.text+" ("+e.url+")"),r.stopLoad(),410===t.code)return r.enabled=!1,void r.log("Steering manifest "+e.url+" no longer available");var a=1e3*r.timeToLoad;if(429!==t.code)r.scheduleRefresh(r.uri||e.url,a);else{var s=r.loader;if("function"==typeof(null==s?void 0:s.getResponseHeader)){var o=s.getResponseHeader("Retry-After");o&&(a=1e3*parseFloat(o))}r.log("Steering manifest "+e.url+" rate limited")}},onTimeout:function(t,e,i){r.log("Timeout loading steering manifest ("+e.url+")"),r.scheduleRefresh(r.uri||e.url)}};this.log("Requesting steering manifest: "+e),this.loader.load(s,u,h)},e.scheduleRefresh=function(t,e){var r=this;void 0===e&&(e=1e3*this.timeToLoad),self.clearTimeout(this.reloadTimer),this.reloadTimer=self.setTimeout(function(){r.loadSteeringManifest(t)},e)},t}();function ca(t,e,r,i){t&&Object.keys(e).forEach(function(n){var a=t.filter(function(t){return t.groupId===n}).map(function(t){var a=o({},t);return a.details=void 0,a.attrs=new w(a.attrs),a.url=a.attrs.URI=fa(t.url,t.attrs["STABLE-RENDITION-ID"],"PER-RENDITION-URIS",r),a.groupId=a.attrs["GROUP-ID"]=e[n],a.attrs["PATHWAY-ID"]=i,a});t.push.apply(t,a)})}function fa(t,e,r,i){var n,a=i.HOST,s=i.PARAMS,o=i[r];e&&(n=null==o?void 0:o[e])&&(t=n);var l=new self.URL(t);return a&&!n&&(l.host=a),s&&Object.keys(s).sort().forEach(function(t){t&&l.searchParams.set(t,s[t])}),l.href}var ga=/^age:\s*[\d.]+\s*$/im,va=function(){function t(t){this.xhrSetup=void 0,this.requestTimeout=void 0,this.retryTimeout=void 0,this.retryDelay=void 0,this.config=null,this.callbacks=null,this.context=void 0,this.loader=null,this.stats=void 0,this.xhrSetup=t&&t.xhrSetup||null,this.stats=new P,this.retryDelay=0}var e=t.prototype;return e.destroy=function(){this.callbacks=null,this.abortInternal(),this.loader=null,this.config=null},e.abortInternal=function(){var t=this.loader;self.clearTimeout(this.requestTimeout),self.clearTimeout(this.retryTimeout),t&&(t.onreadystatechange=null,t.onprogress=null,4!==t.readyState&&(this.stats.aborted=!0,t.abort()))},e.abort=function(){var t;this.abortInternal(),null!=(t=this.callbacks)&&t.onAbort&&this.callbacks.onAbort(this.stats,this.context,this.loader)},e.load=function(t,e,r){if(this.stats.loading.start)throw new Error("Loader can only be used once.");this.stats.loading.start=self.performance.now(),this.context=t,this.config=e,this.callbacks=r,this.loadInternal()},e.loadInternal=function(){var t=this,e=this.config,r=this.context;if(e){var i=this.loader=new self.XMLHttpRequest,n=this.stats;n.loading.first=0,n.loaded=0,n.aborted=!1;var a=this.xhrSetup;a?Promise.resolve().then(function(){if(!t.stats.aborted)return a(i,r.url)}).catch(function(t){return i.open("GET",r.url,!0),a(i,r.url)}).then(function(){t.stats.aborted||t.openAndSendXhr(i,r,e)}).catch(function(e){t.callbacks.onError({code:i.status,text:e.message},r,i,n)}):this.openAndSendXhr(i,r,e)}},e.openAndSendXhr=function(t,e,r){t.readyState||t.open("GET",e.url,!0);var i=this.context.headers,n=r.loadPolicy,a=n.maxTimeToFirstByteMs,s=n.maxLoadTimeMs;if(i)for(var o in i)t.setRequestHeader(o,i[o]);e.rangeEnd&&t.setRequestHeader("Range","bytes="+e.rangeStart+"-"+(e.rangeEnd-1)),t.onreadystatechange=this.readystatechange.bind(this),t.onprogress=this.loadprogress.bind(this),t.responseType=e.responseType,self.clearTimeout(this.requestTimeout),r.timeout=a&&y(a)?a:s,this.requestTimeout=self.setTimeout(this.loadtimeout.bind(this),r.timeout),t.send()},e.readystatechange=function(){var t=this.context,e=this.loader,r=this.stats;if(t&&e){var i=e.readyState,n=this.config;if(!r.aborted&&i>=2&&(0===r.loading.first&&(r.loading.first=Math.max(self.performance.now(),r.loading.start),n.timeout!==n.loadPolicy.maxLoadTimeMs&&(self.clearTimeout(this.requestTimeout),n.timeout=n.loadPolicy.maxLoadTimeMs,this.requestTimeout=self.setTimeout(this.loadtimeout.bind(this),n.loadPolicy.maxLoadTimeMs-(r.loading.first-r.loading.start)))),4===i)){self.clearTimeout(this.requestTimeout),e.onreadystatechange=null,e.onprogress=null;var a=e.status,s="text"!==e.responseType;if(a>=200&&a<300&&(s&&e.response||null!==e.responseText)){r.loading.end=Math.max(self.performance.now(),r.loading.first);var o=s?e.response:e.responseText,l="arraybuffer"===e.responseType?o.byteLength:o.length;if(r.loaded=r.total=l,r.bwEstimate=8e3*r.total/(r.loading.end-r.loading.first),!this.callbacks)return;var u=this.callbacks.onProgress;if(u&&u(r,t,o,e),!this.callbacks)return;var h={url:e.responseURL,data:o,code:a};this.callbacks.onSuccess(h,r,t,e)}else{var d=n.loadPolicy.errorRetry;Be(d,r.retry,!1,a)?this.retry(d):(b.error(a+" while loading "+t.url),this.callbacks.onError({code:a,text:e.statusText},t,e,r))}}}},e.loadtimeout=function(){var t,e=null==(t=this.config)?void 0:t.loadPolicy.timeoutRetry;if(Be(e,this.stats.retry,!0))this.retry(e);else{b.warn("timeout while loading "+this.context.url);var r=this.callbacks;r&&(this.abortInternal(),r.onTimeout(this.stats,this.context,this.loader))}},e.retry=function(t){var e=this.context,r=this.stats;this.retryDelay=Ne(t,r.retry),r.retry++,b.warn((status?"HTTP Status "+status:"Timeout")+" while loading "+e.url+", retrying "+r.retry+"/"+t.maxNumRetry+" in "+this.retryDelay+"ms"),this.abortInternal(),this.loader=null,self.clearTimeout(this.retryTimeout),this.retryTimeout=self.setTimeout(this.loadInternal.bind(this),this.retryDelay)},e.loadprogress=function(t){var e=this.stats;e.loaded=t.loaded,t.lengthComputable&&(e.total=t.total)},e.getCacheAge=function(){var t=null;if(this.loader&&ga.test(this.loader.getAllResponseHeaders())){var e=this.loader.getResponseHeader("age");t=e?parseFloat(e):null}return t},e.getResponseHeader=function(t){return this.loader&&new RegExp("^"+t+":\\s*[\\d.]+\\s*$","im").test(this.loader.getAllResponseHeaders())?this.loader.getResponseHeader(t):null},t}(),ma=/(\d+)-(\d+)\/(\d+)/,pa=function(){function t(t){this.fetchSetup=void 0,this.requestTimeout=void 0,this.request=void 0,this.response=void 0,this.controller=void 0,this.context=void 0,this.config=null,this.callbacks=null,this.stats=void 0,this.loader=null,this.fetchSetup=t.fetchSetup||ya,this.controller=new self.AbortController,this.stats=new P}var e=t.prototype;return e.destroy=function(){this.loader=this.callbacks=null,this.abortInternal()},e.abortInternal=function(){var t=this.response;null!=t&&t.ok||(this.stats.aborted=!0,this.controller.abort())},e.abort=function(){var t;this.abortInternal(),null!=(t=this.callbacks)&&t.onAbort&&this.callbacks.onAbort(this.stats,this.context,this.response)},e.load=function(t,e,r){var i=this,n=this.stats;if(n.loading.start)throw new Error("Loader can only be used once.");n.loading.start=self.performance.now();var a=function(t,e){var r={method:"GET",mode:"cors",credentials:"same-origin",signal:e,headers:new self.Headers(o({},t.headers))};return t.rangeEnd&&r.headers.set("Range","bytes="+t.rangeStart+"-"+String(t.rangeEnd-1)),r}(t,this.controller.signal),s=r.onProgress,l="arraybuffer"===t.responseType,u=l?"byteLength":"length",h=e.loadPolicy,d=h.maxTimeToFirstByteMs,c=h.maxLoadTimeMs;this.context=t,this.config=e,this.callbacks=r,this.request=this.fetchSetup(t,a),self.clearTimeout(this.requestTimeout),e.timeout=d&&y(d)?d:c,this.requestTimeout=self.setTimeout(function(){i.abortInternal(),r.onTimeout(n,t,i.response)},e.timeout),self.fetch(this.request).then(function(a){i.response=i.loader=a;var o=Math.max(self.performance.now(),n.loading.start);if(self.clearTimeout(i.requestTimeout),e.timeout=c,i.requestTimeout=self.setTimeout(function(){i.abortInternal(),r.onTimeout(n,t,i.response)},c-(o-n.loading.start)),!a.ok){var u=a.status,h=a.statusText;throw new Ta(h||"fetch, bad network response",u,a)}return n.loading.first=o,n.total=function(t){var e=t.get("Content-Range");if(e){var r=function(t){var e=ma.exec(t);if(e)return parseInt(e[2])-parseInt(e[1])+1}(e);if(y(r))return r}var i=t.get("Content-Length");if(i)return parseInt(i)}(a.headers)||n.total,s&&y(e.highWaterMark)?i.loadProgressively(a,n,t,e.highWaterMark,s):l?a.arrayBuffer():"json"===t.responseType?a.json():a.text()}).then(function(a){var o=i.response;self.clearTimeout(i.requestTimeout),n.loading.end=Math.max(self.performance.now(),n.loading.first);var l=a[u];l&&(n.loaded=n.total=l);var h={url:o.url,data:a,code:o.status};s&&!y(e.highWaterMark)&&s(n,t,a,o),r.onSuccess(h,n,t,o)}).catch(function(e){if(self.clearTimeout(i.requestTimeout),!n.aborted){var a=e&&e.code||0,s=e?e.message:null;r.onError({code:a,text:s},t,e?e.details:null,n)}})},e.getCacheAge=function(){var t=null;if(this.response){var e=this.response.headers.get("age");t=e?parseFloat(e):null}return t},e.getResponseHeader=function(t){return this.response?this.response.headers.get(t):null},e.loadProgressively=function(t,e,r,i,n){void 0===i&&(i=0);var a=new Qi,s=t.body.getReader();return function o(){return s.read().then(function(s){if(s.done)return a.dataLength&&n(e,r,a.flush(),t),Promise.resolve(new ArrayBuffer(0));var l=s.value,u=l.length;return e.loaded+=u,u<i||a.dataLength?(a.push(l),a.dataLength>=i&&n(e,r,a.flush(),t)):n(e,r,l,t),o()}).catch(function(){return Promise.reject()})}()},t}();function ya(t,e){return new self.Request(t.url,e)}var Ta=function(t){function e(e,r,i){var n;return(n=t.call(this,e)||this).code=void 0,n.details=void 0,n.code=r,n.details=i,n}return l(e,t),e}(c(Error)),Ea=/\s/,Sa=i(i({autoStartLoad:!0,startPosition:-1,defaultAudioCodec:void 0,debug:!1,capLevelOnFPSDrop:!1,capLevelToPlayerSize:!1,ignoreDevicePixelRatio:!1,initialLiveManifestSize:1,maxBufferLength:30,backBufferLength:1/0,maxBufferSize:6e7,maxBufferHole:.1,highBufferWatchdogPeriod:2,nudgeOffset:.1,nudgeMaxRetry:3,maxFragLookUpTolerance:.25,liveSyncDurationCount:3,liveMaxLatencyDurationCount:1/0,liveSyncDuration:void 0,liveMaxLatencyDuration:void 0,maxLiveSyncPlaybackRate:1,liveDurationInfinity:!1,liveBackBufferLength:null,maxMaxBufferLength:600,enableWorker:!0,workerPath:null,enableSoftwareAES:!0,startLevel:void 0,startFragPrefetch:!1,fpsDroppedMonitoringPeriod:5e3,fpsDroppedMonitoringThreshold:.2,appendErrorMaxRetry:3,loader:va,fLoader:void 0,pLoader:void 0,xhrSetup:void 0,licenseXhrSetup:void 0,licenseResponseCallback:void 0,abrController:zi,bufferController:un,capLevelController:ia,errorController:We,fpsController:na,stretchShortVideoTrack:!1,maxAudioFramesDrift:1,forceKeyFrameOnDiscontinuity:!0,abrEwmaFastLive:3,abrEwmaSlowLive:9,abrEwmaFastVoD:3,abrEwmaSlowVoD:9,abrEwmaDefaultEstimate:5e5,abrBandWidthFactor:.95,abrBandWidthUpFactor:.7,abrMaxWithRealBitrate:!1,maxStarvationDelay:4,maxLoadingDelay:4,minAutoBitrate:0,emeEnabled:!1,widevineLicenseUrl:void 0,drmSystems:{},drmSystemOptions:{},requestMediaKeySystemAccessFunc:$,testBandwidth:!0,progressive:!1,lowLatencyMode:!0,cmcd:void 0,enableDateRangeMetadataCues:!0,enableEmsgMetadataCues:!0,enableID3MetadataCues:!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}}},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:function(t,e,r,i){for(var n,a,s,o,l,u=[],h=self.VTTCue||self.TextTrackCue,d=0;d<i.rows.length;d++)if(s=!0,o=0,l="",!(n=i.rows[d]).isEmpty()){for(var c,f=0;f<n.chars.length;f++)Ea.test(n.chars[f].uchar)&&s?o++:(l+=n.chars[f].uchar,s=!1);n.cueStartTime=e,e===r&&(r+=1e-4),o>=16?o--:o++;var g=Un(l.trim()),v=Vn(e,r,g);null!=t&&null!=(c=t.cues)&&c.getCueById(v)||((a=new h(e,r,g)).id=v,a.line=d+1,a.align="left",a.position=10+Math.min(80,10*Math.floor(8*o/32)),u.push(a))}return t&&u.length&&(u.sort(function(t,e){return"auto"===t.line||"auto"===e.line?0:t.line>8&&e.line>8?e.line-t.line:t.line-e.line}),u.forEach(function(e){return ve(t,e)})),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:en,subtitleTrackController:nn,timelineController:ea,audioStreamController:$i,audioTrackController:Ji,emeController:sa,cmcdController:ha,contentSteeringController:da});function La(t){return t&&"object"==typeof t?Array.isArray(t)?t.map(La):Object.keys(t).reduce(function(e,r){return e[r]=La(t[r]),e},{}):t}var Ra=function(){function t(e){void 0===e&&(e={}),this.config=void 0,this.userConfig=void 0,this.coreComponents=void 0,this.networkControllers=void 0,this._emitter=new Bi,this._autoLevelCapping=void 0,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.audioTrackController=void 0,this.subtitleTrackController=void 0,this.emeController=void 0,this.cmcdController=void 0,this._media=null,this.url=null,k(e.debug||!1,"Hls instance");var r=this.config=function(t,e){if((e.liveSyncDurationCount||e.liveMaxLatencyDurationCount)&&(e.liveSyncDuration||e.liveMaxLatencyDuration))throw new Error("Illegal hls.js config: don't mix up liveSyncDurationCount/liveMaxLatencyDurationCount and liveSyncDuration/liveMaxLatencyDuration");if(void 0!==e.liveMaxLatencyDurationCount&&(void 0===e.liveSyncDurationCount||e.liveMaxLatencyDurationCount<=e.liveSyncDurationCount))throw new Error('Illegal hls.js config: "liveMaxLatencyDurationCount" must be greater than "liveSyncDurationCount"');if(void 0!==e.liveMaxLatencyDuration&&(void 0===e.liveSyncDuration||e.liveMaxLatencyDuration<=e.liveSyncDuration))throw new Error('Illegal hls.js config: "liveMaxLatencyDuration" must be greater than "liveSyncDuration"');var r=La(t),n=["TimeOut","MaxRetry","RetryDelay","MaxRetryTimeout"];return["manifest","level","frag"].forEach(function(t){var i=("level"===t?"playlist":t)+"LoadPolicy",a=void 0===e[i],s=[];n.forEach(function(n){var o=t+"Loading"+n,l=e[o];if(void 0!==l&&a){s.push(o);var u=r[i].default;switch(e[i]={default:u},n){case"TimeOut":u.maxLoadTimeMs=l,u.maxTimeToFirstByteMs=l;break;case"MaxRetry":u.errorRetry.maxNumRetry=l,u.timeoutRetry.maxNumRetry=l;break;case"RetryDelay":u.errorRetry.retryDelayMs=l,u.timeoutRetry.retryDelayMs=l;break;case"MaxRetryTimeout":u.errorRetry.maxRetryDelayMs=l,u.timeoutRetry.maxRetryDelayMs=l}}}),s.length&&b.warn('hls.js config: "'+s.join('", "')+'" setting(s) are deprecated, use "'+i+'": '+JSON.stringify(e[i]))}),i(i({},r),e)}(t.DefaultConfig,e);this.userConfig=e,this._autoLevelCapping=-1,r.progressive&&function(t){var e=t.loader;e!==pa&&e!==va?(b.log("[config]: Custom loader detected, cannot enable progressive streaming"),t.progressive=!1):function(){if(self.fetch&&self.AbortController&&self.ReadableStream&&self.Request)try{return new self.ReadableStream({}),!0}catch(t){}return!1}()&&(t.loader=pa,t.progressive=!0,t.enableSoftwareAES=!0,b.log("[config]: Progressive streaming enabled, using FetchLoader"))}(r);var n=r.abrController,a=r.bufferController,s=r.capLevelController,o=r.errorController,l=r.fpsController,u=new o(this),h=this.abrController=new n(this),d=this.bufferController=new a(this),c=this.capLevelController=new s(this),f=new l(this),g=new fe(this),v=new Re(this),m=r.contentSteeringController,p=m?new m(this):null,y=this.levelController=new qe(this,p),E=new tr(this),S=new lr(this.config),L=this.streamController=new ji(this,E,S);c.setStreamController(L),f.setStreamController(L);var R=[g,y,L];p&&R.splice(1,0,p),this.networkControllers=R;var A=[h,d,c,f,v,E];this.audioTrackController=this.createController(r.audioTrackController,R);var D=r.audioStreamController;D&&R.push(new D(this,E,S)),this.subtitleTrackController=this.createController(r.subtitleTrackController,R);var I=r.subtitleStreamController;I&&R.push(new I(this,E,S)),this.createController(r.timelineController,A),S.emeController=this.emeController=this.createController(r.emeController,A),this.cmcdController=this.createController(r.cmcdController,A),this.latencyController=this.createController(Ae,A),this.coreComponents=A,R.push(u);var w=u.onErrorOut;"function"==typeof w&&this.on(T.ERROR,w,u)}t.isSupported=function(){return function(){var t=Kt();if(!t)return!1;var e=Fr(),r=t&&"function"==typeof t.isTypeSupported&&t.isTypeSupported('video/mp4; codecs="avc1.42E01E,mp4a.40.2"'),i=!e||e.prototype&&"function"==typeof e.prototype.appendBuffer&&"function"==typeof e.prototype.remove;return!!r&&!!i}()};var e=t.prototype;return e.createController=function(t,e){if(t){var r=new t(this);return e&&e.push(r),r}return null},e.on=function(t,e,r){void 0===r&&(r=this),this._emitter.on(t,e,r)},e.once=function(t,e,r){void 0===r&&(r=this),this._emitter.once(t,e,r)},e.removeAllListeners=function(t){this._emitter.removeAllListeners(t)},e.off=function(t,e,r,i){void 0===r&&(r=this),this._emitter.off(t,e,r,i)},e.listeners=function(t){return this._emitter.listeners(t)},e.emit=function(t,e,r){return this._emitter.emit(t,e,r)},e.trigger=function(t,e){if(this.config.debug)return this.emit(t,t,e);try{return this.emit(t,t,e)}catch(e){b.error("An internal error happened while handling event "+t+'. Error message: "'+e.message+'". Here is a stacktrace:',e),this.trigger(T.ERROR,{type:E.OTHER_ERROR,details:S.INTERNAL_EXCEPTION,fatal:!1,event:t,error:e})}return!1},e.listenerCount=function(t){return this._emitter.listenerCount(t)},e.destroy=function(){b.log("destroy"),this.trigger(T.DESTROYING,void 0),this.detachMedia(),this.removeAllListeners(),this._autoLevelCapping=-1,this.url=null,this.networkControllers.forEach(function(t){return t.destroy()}),this.networkControllers.length=0,this.coreComponents.forEach(function(t){return t.destroy()}),this.coreComponents.length=0;var t=this.config;t.xhrSetup=t.fetchSetup=void 0,this.userConfig=null},e.attachMedia=function(t){b.log("attachMedia"),this._media=t,this.trigger(T.MEDIA_ATTACHING,{media:t})},e.detachMedia=function(){b.log("detachMedia"),this.trigger(T.MEDIA_DETACHING,void 0),this._media=null},e.loadSource=function(t){this.stopLoad();var e=this.media,r=this.url,i=this.url=p.buildAbsoluteURL(self.location.href,t,{alwaysNormalize:!0});b.log("loadSource:"+i),e&&r&&(r!==i||this.bufferController.hasSourceTypes())&&(this.detachMedia(),this.attachMedia(e)),this.trigger(T.MANIFEST_LOADING,{url:t})},e.startLoad=function(t){void 0===t&&(t=-1),b.log("startLoad("+t+")"),this.networkControllers.forEach(function(e){e.startLoad(t)})},e.stopLoad=function(){b.log("stopLoad"),this.networkControllers.forEach(function(t){t.stopLoad()})},e.swapAudioCodec=function(){b.log("swapAudioCodec"),this.streamController.swapAudioCodec()},e.recoverMediaError=function(){b.log("recoverMediaError");var t=this._media;this.detachMedia(),t&&this.attachMedia(t)},e.removeLevel=function(t,e){void 0===e&&(e=0),this.levelController.removeLevel(t,e)},a(t,[{key:"levels",get:function(){return this.levelController.levels||[]}},{key:"currentLevel",get:function(){return this.streamController.currentLevel},set:function(t){b.log("set currentLevel:"+t),this.loadLevel=t,this.abrController.clearTimer(),this.streamController.immediateLevelSwitch()}},{key:"nextLevel",get:function(){return this.streamController.nextLevel},set:function(t){b.log("set nextLevel:"+t),this.levelController.manualLevel=t,this.streamController.nextLevelSwitch()}},{key:"loadLevel",get:function(){return this.levelController.level},set:function(t){b.log("set loadLevel:"+t),this.levelController.manualLevel=t}},{key:"nextLoadLevel",get:function(){return this.levelController.nextLoadLevel},set:function(t){this.levelController.nextLoadLevel=t}},{key:"firstLevel",get:function(){return Math.max(this.levelController.firstLevel,this.minAutoLevel)},set:function(t){b.log("set firstLevel:"+t),this.levelController.firstLevel=t}},{key:"startLevel",get:function(){return this.levelController.startLevel},set:function(t){b.log("set startLevel:"+t),-1!==t&&(t=Math.max(t,this.minAutoLevel)),this.levelController.startLevel=t}},{key:"capLevelToPlayerSize",get:function(){return this.config.capLevelToPlayerSize},set:function(t){var e=!!t;e!==this.config.capLevelToPlayerSize&&(e?this.capLevelController.startCapping():(this.capLevelController.stopCapping(),this.autoLevelCapping=-1,this.streamController.nextLevelSwitch()),this.config.capLevelToPlayerSize=e)}},{key:"autoLevelCapping",get:function(){return this._autoLevelCapping},set:function(t){this._autoLevelCapping!==t&&(b.log("set autoLevelCapping:"+t),this._autoLevelCapping=t)}},{key:"bandwidthEstimate",get:function(){var t=this.abrController.bwEstimator;return t?t.getEstimate():NaN}},{key:"ttfbEstimate",get:function(){var t=this.abrController.bwEstimator;return t?t.getEstimateTTFB():NaN}},{key:"maxHdcpLevel",get:function(){return this._maxHdcpLevel},set:function(t){ke.indexOf(t)>-1&&(this._maxHdcpLevel=t)}},{key:"autoLevelEnabled",get:function(){return-1===this.levelController.manualLevel}},{key:"manualLevel",get:function(){return this.levelController.manualLevel}},{key:"minAutoLevel",get:function(){var t=this.levels,e=this.config.minAutoBitrate;if(!t)return 0;for(var r=t.length,i=0;i<r;i++)if(t[i].maxBitrate>=e)return i;return 0}},{key:"maxAutoLevel",get:function(){var t,e=this.levels,r=this.autoLevelCapping,i=this.maxHdcpLevel;if(t=-1===r&&e&&e.length?e.length-1:r,i)for(var n=t;n--;){var a=e[n].attrs["HDCP-LEVEL"];if(a&&a<=i)return n}return t}},{key:"nextAutoLevel",get:function(){return Math.min(Math.max(this.abrController.nextAutoLevel,this.minAutoLevel),this.maxAutoLevel)},set:function(t){this.abrController.nextAutoLevel=Math.max(this.minAutoLevel,t)}},{key:"playingDate",get:function(){return this.streamController.currentProgramDateTime}},{key:"mainForwardBufferInfo",get:function(){return this.streamController.getMainFwdBufferInfo()}},{key:"audioTracks",get:function(){var t=this.audioTrackController;return t?t.audioTracks:[]}},{key:"audioTrack",get:function(){var t=this.audioTrackController;return t?t.audioTrack:-1},set:function(t){var e=this.audioTrackController;e&&(e.audioTrack=t)}},{key:"subtitleTracks",get:function(){var t=this.subtitleTrackController;return t?t.subtitleTracks:[]}},{key:"subtitleTrack",get:function(){var t=this.subtitleTrackController;return t?t.subtitleTrack:-1},set:function(t){var e=this.subtitleTrackController;e&&(e.subtitleTrack=t)}},{key:"media",get:function(){return this._media}},{key:"subtitleDisplay",get:function(){var t=this.subtitleTrackController;return!!t&&t.subtitleDisplay},set:function(t){var e=this.subtitleTrackController;e&&(e.subtitleDisplay=t)}},{key:"lowLatencyMode",get:function(){return this.config.lowLatencyMode},set:function(t){this.config.lowLatencyMode=t}},{key:"liveSyncPosition",get:function(){return this.latencyController.liveSyncPosition}},{key:"latency",get:function(){return this.latencyController.latency}},{key:"maxLatency",get:function(){return this.latencyController.maxLatency}},{key:"targetLatency",get:function(){return this.latencyController.targetLatency}},{key:"drift",get:function(){return this.latencyController.drift}},{key:"forceStartLoad",get:function(){return this.streamController.forceStartLoad}}],[{key:"version",get:function(){return"1.4.12"}},{key:"Events",get:function(){return T}},{key:"ErrorTypes",get:function(){return E}},{key:"ErrorDetails",get:function(){return S}},{key:"DefaultConfig",get:function(){return t.defaultConfig?t.defaultConfig:Sa},set:function(e){t.defaultConfig=e}}]),t}();return Ra.defaultConfig=void 0,Ra},"object"==typeof exports&&"undefined"!=typeof module?module.exports=i():"function"==typeof define&&define.amd?define(i):(r="undefined"!=typeof globalThis?globalThis:r||self).Hls=i()}(!1);
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.flvjs=t():e.flvjs=t()}(self,function(){return function(){var e={264:function(e,t,i){e.exports=function(){"use strict";function e(e){return"function"==typeof e}var t=Array.isArray?Array.isArray:function(e){return"[object Array]"===Object.prototype.toString.call(e)},n=0,r=void 0,s=void 0,o=function(e,t){_[n]=e,_[n+1]=t,2===(n+=2)&&(s?s(f):p())},a="undefined"!=typeof window?window:void 0,h=a||{},u=h.MutationObserver||h.WebKitMutationObserver,d="undefined"==typeof self&&"undefined"!=typeof process&&"[object process]"==={}.toString.call(process),l="undefined"!=typeof Uint8ClampedArray&&"undefined"!=typeof importScripts&&"undefined"!=typeof MessageChannel;function c(){var e=setTimeout;return function(){return e(f,1)}}var _=new Array(1e3);function f(){for(var e=0;e<n;e+=2)(0,_[e])(_[e+1]),_[e]=void 0,_[e+1]=void 0;n=0}var p=void 0;function m(e,t){var i=this,n=new this.constructor(y);void 0===n[v]&&I(n);var r=i._state;if(r){var s=arguments[r-1];o(function(){return k(r,n,s,i._result)})}else T(i,n,e,t);return n}function g(e){if(e&&"object"==typeof e&&e.constructor===this)return e;var t=new this(y);return L(t,e),t}p=d?function(){return process.nextTick(f)}:u?function(){var e=0,t=new u(f),i=document.createTextNode("");return t.observe(i,{characterData:!0}),function(){i.data=e=++e%2}}():l?function(){var e=new MessageChannel;return e.port1.onmessage=f,function(){return e.port2.postMessage(0)}}():void 0===a?function(){try{var e=Function("return this")().require("vertx");return void 0!==(r=e.runOnLoop||e.runOnContext)?function(){r(f)}:c()}catch(e){return c()}}():c();var v=Math.random().toString(36).substring(2);function y(){}var b=void 0,E=1,S=2;function A(t,i,n){i.constructor===t.constructor&&n===m&&i.constructor.resolve===g?function(e,t){t._state===E?w(e,t._result):t._state===S?O(e,t._result):T(t,void 0,function(t){return L(e,t)},function(t){return O(e,t)})}(t,i):void 0===n?w(t,i):e(n)?function(e,t,i){o(function(e){var n=!1,r=function(e,t,i,n){try{e.call(t,i,n)}catch(e){return e}}(i,t,function(i){n||(n=!0,t!==i?L(e,i):w(e,i))},function(t){n||(n=!0,O(e,t))},e._label);!n&&r&&(n=!0,O(e,r))},e)}(t,i,n):w(t,i)}function L(e,t){if(e===t)O(e,new TypeError("You cannot resolve a promise with itself"));else if(function(e){var t=typeof e;return null!==e&&("object"===t||"function"===t)}(t)){var i=void 0;try{i=t.then}catch(t){return void O(e,t)}A(e,t,i)}else w(e,t)}function R(e){e._onerror&&e._onerror(e._result),C(e)}function w(e,t){e._state===b&&(e._result=t,e._state=E,0!==e._subscribers.length&&o(C,e))}function O(e,t){e._state===b&&(e._state=S,e._result=t,o(R,e))}function T(e,t,i,n){var r=e._subscribers,s=r.length;e._onerror=null,r[s]=t,r[s+E]=i,r[s+S]=n,0===s&&e._state&&o(C,e)}function C(e){var t=e._subscribers,i=e._state;if(0!==t.length){for(var n=void 0,r=void 0,s=e._result,o=0;o<t.length;o+=3)n=t[o],r=t[o+i],n?k(i,n,r,s):r(s);e._subscribers.length=0}}function k(t,i,n,r){var s=e(n),o=void 0,a=void 0,h=!0;if(s){try{o=n(r)}catch(t){h=!1,a=t}if(i===o)return void O(i,new TypeError("A promises callback cannot return that same promise."))}else o=r;i._state!==b||(s&&h?L(i,o):!1===h?O(i,a):t===E?w(i,o):t===S&&O(i,o))}var D=0;function I(e){e[v]=D++,e._state=void 0,e._result=void 0,e._subscribers=[]}var M=function(){function e(e,i){this._instanceConstructor=e,this.promise=new e(y),this.promise[v]||I(this.promise),t(i)?(this.length=i.length,this._remaining=i.length,this._result=new Array(this.length),0===this.length?w(this.promise,this._result):(this.length=this.length||0,this._enumerate(i),0===this._remaining&&w(this.promise,this._result))):O(this.promise,new Error("Array Methods must be provided an Array"))}return e.prototype._enumerate=function(e){for(var t=0;this._state===b&&t<e.length;t++)this._eachEntry(e[t],t)},e.prototype._eachEntry=function(e,t){var i=this._instanceConstructor,n=i.resolve;if(n===g){var r=void 0,s=void 0,o=!1;try{r=e.then}catch(e){o=!0,s=e}if(r===m&&e._state!==b)this._settledAt(e._state,t,e._result);else if("function"!=typeof r)this._remaining--,this._result[t]=e;else if(i===B){var a=new i(y);o?O(a,s):A(a,e,r),this._willSettleAt(a,t)}else this._willSettleAt(new i(function(t){return t(e)}),t)}else this._willSettleAt(n(e),t)},e.prototype._settledAt=function(e,t,i){var n=this.promise;n._state===b&&(this._remaining--,e===S?O(n,i):this._result[t]=i),0===this._remaining&&w(n,this._result)},e.prototype._willSettleAt=function(e,t){var i=this;T(e,void 0,function(e){return i._settledAt(E,t,e)},function(e){return i._settledAt(S,t,e)})},e}(),B=function(){function t(e){this[v]=D++,this._result=this._state=void 0,this._subscribers=[],y!==e&&("function"!=typeof e&&function(){throw new TypeError("You must pass a resolver function as the first argument to the promise constructor")}(),this instanceof t?function(e,t){try{t(function(t){L(e,t)},function(t){O(e,t)})}catch(t){O(e,t)}}(this,e):function(){throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.")}())}return t.prototype.catch=function(e){return this.then(null,e)},t.prototype.finally=function(t){var i=this,n=i.constructor;return e(t)?i.then(function(e){return n.resolve(t()).then(function(){return e})},function(e){return n.resolve(t()).then(function(){throw e})}):i.then(t,t)},t}();return B.prototype.then=m,B.all=function(e){return new M(this,e).promise},B.race=function(e){var i=this;return t(e)?new i(function(t,n){for(var r=e.length,s=0;s<r;s++)i.resolve(e[s]).then(t,n)}):new i(function(e,t){return t(new TypeError("You must pass an array to race."))})},B.resolve=g,B.reject=function(e){var t=new this(y);return O(t,e),t},B._setScheduler=function(e){s=e},B._setAsap=function(e){o=e},B._asap=o,B.polyfill=function(){var e=void 0;if(void 0!==i.g)e=i.g;else if("undefined"!=typeof self)e=self;else try{e=Function("return this")()}catch(e){throw new Error("polyfill failed because global object is unavailable in this environment")}var t=e.Promise;if(t){var n=null;try{n=Object.prototype.toString.call(t.resolve())}catch(e){}if("[object Promise]"===n&&!t.cast)return}e.Promise=B},B.Promise=B,B}()},716:function(e){"use strict";var t,i="object"==typeof Reflect?Reflect:null,n=i&&"function"==typeof i.apply?i.apply:function(e,t,i){return Function.prototype.apply.call(e,t,i)};t=i&&"function"==typeof i.ownKeys?i.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var r=Number.isNaN||function(e){return e!=e};function s(){s.init.call(this)}e.exports=s,e.exports.once=function(e,t){return new Promise(function(i,n){function r(i){e.removeListener(t,s),n(i)}function s(){"function"==typeof e.removeListener&&e.removeListener("error",r),i([].slice.call(arguments))}p(e,t,s,{once:!0}),"error"!==t&&function(e,t){"function"==typeof e.on&&p(e,"error",t,{once:!0})}(e,r)})},s.EventEmitter=s,s.prototype._events=void 0,s.prototype._eventsCount=0,s.prototype._maxListeners=void 0;var o=10;function a(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function h(e){return void 0===e._maxListeners?s.defaultMaxListeners:e._maxListeners}function u(e,t,i,n){var r,s,o,u;if(a(i),void 0===(s=e._events)?(s=e._events=Object.create(null),e._eventsCount=0):(void 0!==s.newListener&&(e.emit("newListener",t,i.listener?i.listener:i),s=e._events),o=s[t]),void 0===o)o=s[t]=i,++e._eventsCount;else if("function"==typeof o?o=s[t]=n?[i,o]:[o,i]:n?o.unshift(i):o.push(i),(r=h(e))>0&&o.length>r&&!o.warned){o.warned=!0;var d=new Error("Possible EventEmitter memory leak detected. "+o.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");d.name="MaxListenersExceededWarning",d.emitter=e,d.type=t,d.count=o.length,u=d,console&&console.warn&&console.warn(u)}return e}function d(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function l(e,t,i){var n={fired:!1,wrapFn:void 0,target:e,type:t,listener:i},r=d.bind(n);return r.listener=i,n.wrapFn=r,r}function c(e,t,i){var n=e._events;if(void 0===n)return[];var r=n[t];return void 0===r?[]:"function"==typeof r?i?[r.listener||r]:[r]:i?function(e){for(var t=new Array(e.length),i=0;i<t.length;++i)t[i]=e[i].listener||e[i];return t}(r):f(r,r.length)}function _(e){var t=this._events;if(void 0!==t){var i=t[e];if("function"==typeof i)return 1;if(void 0!==i)return i.length}return 0}function f(e,t){for(var i=new Array(t),n=0;n<t;++n)i[n]=e[n];return i}function p(e,t,i,n){if("function"==typeof e.on)n.once?e.once(t,i):e.on(t,i);else{if("function"!=typeof e.addEventListener)throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof e);e.addEventListener(t,function r(s){n.once&&e.removeEventListener(t,r),i(s)})}}Object.defineProperty(s,"defaultMaxListeners",{enumerable:!0,get:function(){return o},set:function(e){if("number"!=typeof e||e<0||r(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");o=e}}),s.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},s.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||r(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},s.prototype.getMaxListeners=function(){return h(this)},s.prototype.emit=function(e){for(var t=[],i=1;i<arguments.length;i++)t.push(arguments[i]);var r="error"===e,s=this._events;if(void 0!==s)r=r&&void 0===s.error;else if(!r)return!1;if(r){var o;if(t.length>0&&(o=t[0]),o instanceof Error)throw o;var a=new Error("Unhandled error."+(o?" ("+o.message+")":""));throw a.context=o,a}var h=s[e];if(void 0===h)return!1;if("function"==typeof h)n(h,this,t);else{var u=h.length,d=f(h,u);for(i=0;i<u;++i)n(d[i],this,t)}return!0},s.prototype.addListener=function(e,t){return u(this,e,t,!1)},s.prototype.on=s.prototype.addListener,s.prototype.prependListener=function(e,t){return u(this,e,t,!0)},s.prototype.once=function(e,t){return a(t),this.on(e,l(this,e,t)),this},s.prototype.prependOnceListener=function(e,t){return a(t),this.prependListener(e,l(this,e,t)),this},s.prototype.removeListener=function(e,t){var i,n,r,s,o;if(a(t),void 0===(n=this._events))return this;if(void 0===(i=n[e]))return this;if(i===t||i.listener===t)0==--this._eventsCount?this._events=Object.create(null):(delete n[e],n.removeListener&&this.emit("removeListener",e,i.listener||t));else if("function"!=typeof i){for(r=-1,s=i.length-1;s>=0;s--)if(i[s]===t||i[s].listener===t){o=i[s].listener,r=s;break}if(r<0)return this;0===r?i.shift():function(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}(i,r),1===i.length&&(n[e]=i[0]),void 0!==n.removeListener&&this.emit("removeListener",e,o||t)}return this},s.prototype.off=s.prototype.removeListener,s.prototype.removeAllListeners=function(e){var t,i,n;if(void 0===(i=this._events))return this;if(void 0===i.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==i[e]&&(0==--this._eventsCount?this._events=Object.create(null):delete i[e]),this;if(0===arguments.length){var r,s=Object.keys(i);for(n=0;n<s.length;++n)"removeListener"!==(r=s[n])&&this.removeAllListeners(r);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(t=i[e]))this.removeListener(e,t);else if(void 0!==t)for(n=t.length-1;n>=0;n--)this.removeListener(e,t[n]);return this},s.prototype.listeners=function(e){return c(this,e,!0)},s.prototype.rawListeners=function(e){return c(this,e,!1)},s.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):_.call(e,t)},s.prototype.listenerCount=_,s.prototype.eventNames=function(){return this._eventsCount>0?t(this._events):[]}},397:function(e,t,i){function n(e){var t={};function i(n){if(t[n])return t[n].exports;var r=t[n]={i:n,l:!1,exports:{}};return e[n].call(r.exports,r,r.exports,i),r.l=!0,r.exports}i.m=e,i.c=t,i.i=function(e){return e},i.d=function(e,t,n){i.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:n})},i.r=function(e){Object.defineProperty(e,"__esModule",{value:!0})},i.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(t,"a",t),t},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.p="/",i.oe=function(e){throw console.error(e),e};var n=i(i.s=ENTRY_MODULE);return n.default||n}var r="\\(\\s*(/\\*.*?\\*/)?\\s*.*?([\\.|\\-|\\+|\\w|/|@]+).*?\\)";function s(e){return(e+"").replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}function o(e,t,n){var o={};o[n]=[];var a=t.toString(),h=a.match(/^function\s?\w*\(\w+,\s*\w+,\s*(\w+)\)/);if(!h)return o;for(var u,d=h[1],l=new RegExp("(\\\\n|\\W)"+s(d)+r,"g");u=l.exec(a);)"dll-reference"!==u[3]&&o[n].push(u[3]);for(l=new RegExp("\\("+s(d)+'\\("(dll-reference\\s([\\.|\\-|\\+|\\w|/|@]+))"\\)\\)'+r,"g");u=l.exec(a);)e[u[2]]||(o[n].push(u[1]),e[u[2]]=i(u[1]).m),o[u[2]]=o[u[2]]||[],o[u[2]].push(u[4]);for(var c,_=Object.keys(o),f=0;f<_.length;f++)for(var p=0;p<o[_[f]].length;p++)c=o[_[f]][p],isNaN(1*c)||(o[_[f]][p]=1*o[_[f]][p]);return o}function a(e){return Object.keys(e).reduce(function(t,i){return t||e[i].length>0},!1)}e.exports=function(e,t){t=t||{};var r={main:i.m},s=t.all?{main:Object.keys(r.main)}:function(e,t){for(var i={main:[t]},n={main:[]},r={main:{}};a(i);)for(var s=Object.keys(i),h=0;h<s.length;h++){var u=s[h],d=i[u].pop();if(r[u]=r[u]||{},!r[u][d]&&e[u][d]){r[u][d]=!0,n[u]=n[u]||[],n[u].push(d);for(var l=o(e,e[u][d],u),c=Object.keys(l),_=0;_<c.length;_++)i[c[_]]=i[c[_]]||[],i[c[_]]=i[c[_]].concat(l[c[_]])}}return n}(r,e),h="";Object.keys(s).filter(function(e){return"main"!==e}).forEach(function(e){for(var t=0;s[e][t];)t++;s[e].push(t),r[e][t]="(function(module, exports, __webpack_require__){ module.exports=__webpack_require__; })",h=h+"var "+e+"=("+n.toString().replace("ENTRY_MODULE",JSON.stringify(t))+")({"+s[e].map(function(t){return JSON.stringify(t)+": "+r[e][t].toString()}).join(",")+"});\n"}),h=h+"new (("+n.toString().replace("ENTRY_MODULE",JSON.stringify(e))+")({"+s.main.map(function(e){return JSON.stringify(e)+": "+r.main[e].toString()}).join(",")+"}))(self);";var u=new window.Blob([h],{type:"text/javascript"});if(t.bare)return u;var d=(window.URL||window.webkitURL||window.mozURL||window.msURL).createObjectURL(u),l=new window.Worker(d);return l.objectURL=d,l}},118:function(e,t){"use strict";var i=function(){function e(){this.mimeType=null,this.duration=null,this.hasAudio=null,this.hasVideo=null,this.audioCodec=null,this.videoCodec=null,this.audioDataRate=null,this.videoDataRate=null,this.audioSampleRate=null,this.audioChannelCount=null,this.width=null,this.height=null,this.fps=null,this.profile=null,this.level=null,this.refFrames=null,this.chromaFormat=null,this.sarNum=null,this.sarDen=null,this.metadata=null,this.segments=null,this.segmentCount=null,this.hasKeyframesIndex=null,this.keyframesIndex=null}return e.prototype.isComplete=function(){var e=!1===this.hasAudio||!0===this.hasAudio&&null!=this.audioCodec&&null!=this.audioSampleRate&&null!=this.audioChannelCount,t=!1===this.hasVideo||!0===this.hasVideo&&null!=this.videoCodec&&null!=this.width&&null!=this.height&&null!=this.fps&&null!=this.profile&&null!=this.level&&null!=this.refFrames&&null!=this.chromaFormat&&null!=this.sarNum&&null!=this.sarDen;return null!=this.mimeType&&null!=this.duration&&null!=this.metadata&&null!=this.hasKeyframesIndex&&e&&t},e.prototype.isSeekable=function(){return!0===this.hasKeyframesIndex},e.prototype.getNearestKeyframe=function(e){if(null==this.keyframesIndex)return null;var t=this.keyframesIndex,i=this._search(t.times,e);return{index:i,milliseconds:t.times[i],fileposition:t.filepositions[i]}},e.prototype._search=function(e,t){var i=0,n=e.length-1,r=0,s=0,o=n;for(t<e[0]&&(i=0,s=o+1);s<=o;){if((r=s+Math.floor((o-s)/2))===n||t>=e[r]&&t<e[r+1]){i=r;break}e[r]<t?s=r+1:o=r-1}return i},e}();t.Z=i},51:function(e,t,i){"use strict";i.d(t,{Wk:function(){return n},Yy:function(){return r},Vn:function(){return s},J1:function(){return o}});var n=function(e,t,i,n,r){this.dts=e,this.pts=t,this.duration=i,this.originalDts=n,this.isSyncPoint=r,this.fileposition=null},r=function(){function e(){this.beginDts=0,this.endDts=0,this.beginPts=0,this.endPts=0,this.originalBeginDts=0,this.originalEndDts=0,this.syncPoints=[],this.firstSample=null,this.lastSample=null}return e.prototype.appendSyncPoint=function(e){e.isSyncPoint=!0,this.syncPoints.push(e)},e}(),s=function(){function e(){this._list=[]}return e.prototype.clear=function(){this._list=[]},e.prototype.appendArray=function(e){var t=this._list;0!==e.length&&(t.length>0&&e[0].originalDts<t[t.length-1].originalDts&&this.clear(),Array.prototype.push.apply(t,e))},e.prototype.getLastSyncPointBeforeDts=function(e){if(0==this._list.length)return null;var t=this._list,i=0,n=t.length-1,r=0,s=0,o=n;for(e<t[0].dts&&(i=0,s=o+1);s<=o;){if((r=s+Math.floor((o-s)/2))===n||e>=t[r].dts&&e<t[r+1].dts){i=r;break}t[r].dts<e?s=r+1:o=r-1}return this._list[i]},e}(),o=function(){function e(e){this._type=e,this._list=[],this._lastAppendLocation=-1}return Object.defineProperty(e.prototype,"type",{get:function(){return this._type},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"length",{get:function(){return this._list.length},enumerable:!1,configurable:!0}),e.prototype.isEmpty=function(){return 0===this._list.length},e.prototype.clear=function(){this._list=[],this._lastAppendLocation=-1},e.prototype._searchNearestSegmentBefore=function(e){var t=this._list;if(0===t.length)return-2;var i=t.length-1,n=0,r=0,s=i,o=0;if(e<t[0].originalBeginDts)return-1;for(;r<=s;){if((n=r+Math.floor((s-r)/2))===i||e>t[n].lastSample.originalDts&&e<t[n+1].originalBeginDts){o=n;break}t[n].originalBeginDts<e?r=n+1:s=n-1}return o},e.prototype._searchNearestSegmentAfter=function(e){return this._searchNearestSegmentBefore(e)+1},e.prototype.append=function(e){var t=this._list,i=e,n=this._lastAppendLocation,r=0;-1!==n&&n<t.length&&i.originalBeginDts>=t[n].lastSample.originalDts&&(n===t.length-1||n<t.length-1&&i.originalBeginDts<t[n+1].originalBeginDts)?r=n+1:t.length>0&&(r=this._searchNearestSegmentBefore(i.originalBeginDts)+1),this._lastAppendLocation=r,this._list.splice(r,0,i)},e.prototype.getLastSegmentBefore=function(e){var t=this._searchNearestSegmentBefore(e);return t>=0?this._list[t]:null},e.prototype.getLastSampleBefore=function(e){var t=this.getLastSegmentBefore(e);return null!=t?t.lastSample:null},e.prototype.getLastSyncPointBefore=function(e){for(var t=this._searchNearestSegmentBefore(e),i=this._list[t].syncPoints;0===i.length&&t>0;)t--,i=this._list[t].syncPoints;return i.length>0?i[i.length-1]:null},e}()},949:function(e,t,i){"use strict";i.d(t,{Z:function(){return R}});var n=i(716),r=i.n(n),s=i(300),o=i(538),a=i(118);function h(e,t,i){var n=e;if(t+i<n.length){for(;i--;)if(128!=(192&n[++t]))return!1;return!0}return!1}var u,d=function(e){for(var t=[],i=e,n=0,r=e.length;n<r;)if(i[n]<128)t.push(String.fromCharCode(i[n])),++n;else{if(i[n]<192);else if(i[n]<224){if(h(i,n,1)&&(s=(31&i[n])<<6|63&i[n+1])>=128){t.push(String.fromCharCode(65535&s)),n+=2;continue}}else if(i[n]<240){if(h(i,n,2)&&(s=(15&i[n])<<12|(63&i[n+1])<<6|63&i[n+2])>=2048&&55296!=(63488&s)){t.push(String.fromCharCode(65535&s)),n+=3;continue}}else if(i[n]<248){var s;if(h(i,n,3)&&(s=(7&i[n])<<18|(63&i[n+1])<<12|(63&i[n+2])<<6|63&i[n+3])>65536&&s<1114112){s-=65536,t.push(String.fromCharCode(s>>>10|55296)),t.push(String.fromCharCode(1023&s|56320)),n+=4;continue}}t.push(String.fromCharCode(65533)),++n}return t.join("")},l=i(29),c=(u=new ArrayBuffer(2),new DataView(u).setInt16(0,256,!0),256===new Int16Array(u)[0]),_=function(){function e(){}return e.parseScriptData=function(t,i,n){var r={};try{var o=e.parseValue(t,i,n),a=e.parseValue(t,i+o.size,n-o.size);r[o.data]=a.data}catch(e){s.Z.e("AMF",e.toString())}return r},e.parseObject=function(t,i,n){if(n<3)throw new l.rT("Data not enough when parse ScriptDataObject");var r=e.parseString(t,i,n),s=e.parseValue(t,i+r.size,n-r.size),o=s.objectEnd;return{data:{name:r.data,value:s.data},size:r.size+s.size,objectEnd:o}},e.parseVariable=function(t,i,n){return e.parseObject(t,i,n)},e.parseString=function(e,t,i){if(i<2)throw new l.rT("Data not enough when parse String");var n=new DataView(e,t,i).getUint16(0,!c);return{data:n>0?d(new Uint8Array(e,t+2,n)):"",size:2+n}},e.parseLongString=function(e,t,i){if(i<4)throw new l.rT("Data not enough when parse LongString");var n=new DataView(e,t,i).getUint32(0,!c);return{data:n>0?d(new Uint8Array(e,t+4,n)):"",size:4+n}},e.parseDate=function(e,t,i){if(i<10)throw new l.rT("Data size invalid when parse Date");var n=new DataView(e,t,i),r=n.getFloat64(0,!c),s=n.getInt16(8,!c);return{data:new Date(r+=60*s*1e3),size:10}},e.parseValue=function(t,i,n){if(n<1)throw new l.rT("Data not enough when parse Value");var r,o=new DataView(t,i,n),a=1,h=o.getUint8(0),u=!1;try{switch(h){case 0:r=o.getFloat64(1,!c),a+=8;break;case 1:r=!!o.getUint8(1),a+=1;break;case 2:var d=e.parseString(t,i+1,n-1);r=d.data,a+=d.size;break;case 3:r={};var _=0;for(9==(16777215&o.getUint32(n-4,!c))&&(_=3);a<n-4;){var f=e.parseObject(t,i+a,n-a-_);if(f.objectEnd)break;r[f.data.name]=f.data.value,a+=f.size}a<=n-3&&9==(16777215&o.getUint32(a-1,!c))&&(a+=3);break;case 8:for(r={},a+=4,_=0,9==(16777215&o.getUint32(n-4,!c))&&(_=3);a<n-8;){var p=e.parseVariable(t,i+a,n-a-_);if(p.objectEnd)break;r[p.data.name]=p.data.value,a+=p.size}a<=n-3&&9==(16777215&o.getUint32(a-1,!c))&&(a+=3);break;case 9:r=void 0,a=1,u=!0;break;case 10:r=[];var m=o.getUint32(1,!c);a+=4;for(var g=0;g<m;g++){var v=e.parseValue(t,i+a,n-a);r.push(v.data),a+=v.size}break;case 11:var y=e.parseDate(t,i+1,n-1);r=y.data,a+=y.size;break;case 12:var b=e.parseString(t,i+1,n-1);r=b.data,a+=b.size;break;default:a=n,s.Z.w("AMF","Unsupported AMF value type "+h)}}catch(e){s.Z.e("AMF",e.toString())}return{data:r,size:a,objectEnd:u}},e}(),f=function(){function e(e){this.TAG="ExpGolomb",this._buffer=e,this._buffer_index=0,this._total_bytes=e.byteLength,this._total_bits=8*e.byteLength,this._current_word=0,this._current_word_bits_left=0}return e.prototype.destroy=function(){this._buffer=null},e.prototype._fillCurrentWord=function(){var e=this._total_bytes-this._buffer_index;if(e<=0)throw new l.rT("ExpGolomb: _fillCurrentWord() but no bytes available");var t=Math.min(4,e),i=new Uint8Array(4);i.set(this._buffer.subarray(this._buffer_index,this._buffer_index+t)),this._current_word=new DataView(i.buffer).getUint32(0,!1),this._buffer_index+=t,this._current_word_bits_left=8*t},e.prototype.readBits=function(e){if(e>32)throw new l.OC("ExpGolomb: readBits() bits exceeded max 32bits!");if(e<=this._current_word_bits_left){var t=this._current_word>>>32-e;return this._current_word<<=e,this._current_word_bits_left-=e,t}var i=this._current_word_bits_left?this._current_word:0;i>>>=32-this._current_word_bits_left;var n=e-this._current_word_bits_left;this._fillCurrentWord();var r=Math.min(n,this._current_word_bits_left),s=this._current_word>>>32-r;return this._current_word<<=r,this._current_word_bits_left-=r,i<<r|s},e.prototype.readBool=function(){return 1===this.readBits(1)},e.prototype.readByte=function(){return this.readBits(8)},e.prototype._skipLeadingZero=function(){var e;for(e=0;e<this._current_word_bits_left;e++)if(this._current_word&2147483648>>>e)return this._current_word<<=e,this._current_word_bits_left-=e,e;return this._fillCurrentWord(),e+this._skipLeadingZero()},e.prototype.readUEG=function(){var e=this._skipLeadingZero();return this.readBits(e+1)-1},e.prototype.readSEG=function(){var e=this.readUEG();return 1&e?e+1>>>1:-1*(e>>>1)},e}(),p=function(){function e(){}return e._ebsp2rbsp=function(e){for(var t=e,i=t.byteLength,n=new Uint8Array(i),r=0,s=0;s<i;s++)s>=2&&3===t[s]&&0===t[s-1]&&0===t[s-2]||(n[r]=t[s],r++);return new Uint8Array(n.buffer,0,r)},e.parseSPS=function(t){var i=e._ebsp2rbsp(t),n=new f(i);n.readByte();var r=n.readByte();n.readByte();var s=n.readByte();n.readUEG();var o=e.getProfileString(r),a=e.getLevelString(s),h=1,u=420,d=8;if((100===r||110===r||122===r||244===r||44===r||83===r||86===r||118===r||128===r||138===r||144===r)&&(3===(h=n.readUEG())&&n.readBits(1),h<=3&&(u=[0,420,422,444][h]),d=n.readUEG()+8,n.readUEG(),n.readBits(1),n.readBool()))for(var l=3!==h?8:12,c=0;c<l;c++)n.readBool()&&(c<6?e._skipScalingList(n,16):e._skipScalingList(n,64));n.readUEG();var _=n.readUEG();if(0===_)n.readUEG();else if(1===_){n.readBits(1),n.readSEG(),n.readSEG();var p=n.readUEG();for(c=0;c<p;c++)n.readSEG()}var m=n.readUEG();n.readBits(1);var g=n.readUEG(),v=n.readUEG(),y=n.readBits(1);0===y&&n.readBits(1),n.readBits(1);var b=0,E=0,S=0,A=0;n.readBool()&&(b=n.readUEG(),E=n.readUEG(),S=n.readUEG(),A=n.readUEG());var L=1,R=1,w=0,O=!0,T=0,C=0;if(n.readBool()){if(n.readBool()){var k=n.readByte();k>0&&k<16?(L=[1,12,10,16,40,24,20,32,80,18,15,64,160,4,3,2][k-1],R=[1,11,11,11,33,11,11,11,33,11,11,33,99,3,2,1][k-1]):255===k&&(L=n.readByte()<<8|n.readByte(),R=n.readByte()<<8|n.readByte())}if(n.readBool()&&n.readBool(),n.readBool()&&(n.readBits(4),n.readBool()&&n.readBits(24)),n.readBool()&&(n.readUEG(),n.readUEG()),n.readBool()){var D=n.readBits(32),I=n.readBits(32);O=n.readBool(),w=(T=I)/(C=2*D)}}var M=1;1===L&&1===R||(M=L/R);var B=0,x=0;0===h?(B=1,x=2-y):(B=3===h?1:2,x=(1===h?2:1)*(2-y));var P=16*(g+1),U=16*(v+1)*(2-y);P-=(b+E)*B,U-=(S+A)*x;var N=Math.ceil(P*M);return n.destroy(),n=null,{profile_string:o,level_string:a,bit_depth:d,ref_frames:m,chroma_format:u,chroma_format_string:e.getChromaFormatString(u),frame_rate:{fixed:O,fps:w,fps_den:C,fps_num:T},sar_ratio:{width:L,height:R},codec_size:{width:P,height:U},present_size:{width:N,height:U}}},e._skipScalingList=function(e,t){for(var i=8,n=8,r=0;r<t;r++)0!==n&&(n=(i+e.readSEG()+256)%256),i=0===n?i:n},e.getProfileString=function(e){switch(e){case 66:return"Baseline";case 77:return"Main";case 88:return"Extended";case 100:return"High";case 110:return"High10";case 122:return"High422";case 244:return"High444";default:return"Unknown"}},e.getLevelString=function(e){return(e/10).toFixed(1)},e.getChromaFormatString=function(e){switch(e){case 420:return"4:2:0";case 422:return"4:2:2";case 444:return"4:4:4";default:return"Unknown"}},e}(),m=i(600),g=function(){function e(e,t){this.TAG="FLVDemuxer",this._config=t,this._onError=null,this._onMediaInfo=null,this._onMetaDataArrived=null,this._onScriptDataArrived=null,this._onTrackMetadata=null,this._onDataAvailable=null,this._dataOffset=e.dataOffset,this._firstParse=!0,this._dispatch=!1,this._hasAudio=e.hasAudioTrack,this._hasVideo=e.hasVideoTrack,this._hasAudioFlagOverrided=!1,this._hasVideoFlagOverrided=!1,this._audioInitialMetadataDispatched=!1,this._videoInitialMetadataDispatched=!1,this._mediaInfo=new a.Z,this._mediaInfo.hasAudio=this._hasAudio,this._mediaInfo.hasVideo=this._hasVideo,this._metadata=null,this._audioMetadata=null,this._videoMetadata=null,this._naluLengthSize=4,this._timestampBase=0,this._timescale=1e3,this._duration=0,this._durationOverrided=!1,this._referenceFrameRate={fixed:!0,fps:23.976,fps_num:23976,fps_den:1e3},this._flvSoundRateTable=[5500,11025,22050,44100,48e3],this._mpegSamplingRates=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350],this._mpegAudioV10SampleRateTable=[44100,48e3,32e3,0],this._mpegAudioV20SampleRateTable=[22050,24e3,16e3,0],this._mpegAudioV25SampleRateTable=[11025,12e3,8e3,0],this._mpegAudioL1BitRateTable=[0,32,64,96,128,160,192,224,256,288,320,352,384,416,448,-1],this._mpegAudioL2BitRateTable=[0,32,48,56,64,80,96,112,128,160,192,224,256,320,384,-1],this._mpegAudioL3BitRateTable=[0,32,40,48,56,64,80,96,112,128,160,192,224,256,320,-1],this._videoTrack={type:"video",id:1,sequenceNumber:0,samples:[],length:0},this._audioTrack={type:"audio",id:2,sequenceNumber:0,samples:[],length:0},this._littleEndian=function(){var e=new ArrayBuffer(2);return new DataView(e).setInt16(0,256,!0),256===new Int16Array(e)[0]}()}return e.prototype.destroy=function(){this._mediaInfo=null,this._metadata=null,this._audioMetadata=null,this._videoMetadata=null,this._videoTrack=null,this._audioTrack=null,this._onError=null,this._onMediaInfo=null,this._onMetaDataArrived=null,this._onScriptDataArrived=null,this._onTrackMetadata=null,this._onDataAvailable=null},e.probe=function(e){var t=new Uint8Array(e),i={match:!1};if(70!==t[0]||76!==t[1]||86!==t[2]||1!==t[3])return i;var n,r=(4&t[4])>>>2!=0,s=!!(1&t[4]),o=(n=t)[5]<<24|n[6]<<16|n[7]<<8|n[8];return o<9?i:{match:!0,consumed:o,dataOffset:o,hasAudioTrack:r,hasVideoTrack:s}},e.prototype.bindDataSource=function(e){return e.onDataArrival=this.parseChunks.bind(this),this},Object.defineProperty(e.prototype,"onTrackMetadata",{get:function(){return this._onTrackMetadata},set:function(e){this._onTrackMetadata=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"onMediaInfo",{get:function(){return this._onMediaInfo},set:function(e){this._onMediaInfo=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"onMetaDataArrived",{get:function(){return this._onMetaDataArrived},set:function(e){this._onMetaDataArrived=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"onScriptDataArrived",{get:function(){return this._onScriptDataArrived},set:function(e){this._onScriptDataArrived=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"onError",{get:function(){return this._onError},set:function(e){this._onError=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"onDataAvailable",{get:function(){return this._onDataAvailable},set:function(e){this._onDataAvailable=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"timestampBase",{get:function(){return this._timestampBase},set:function(e){this._timestampBase=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"overridedDuration",{get:function(){return this._duration},set:function(e){this._durationOverrided=!0,this._duration=e,this._mediaInfo.duration=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"overridedHasAudio",{set:function(e){this._hasAudioFlagOverrided=!0,this._hasAudio=e,this._mediaInfo.hasAudio=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"overridedHasVideo",{set:function(e){this._hasVideoFlagOverrided=!0,this._hasVideo=e,this._mediaInfo.hasVideo=e},enumerable:!1,configurable:!0}),e.prototype.resetMediaInfo=function(){this._mediaInfo=new a.Z},e.prototype._isInitialMetadataDispatched=function(){return this._hasAudio&&this._hasVideo?this._audioInitialMetadataDispatched&&this._videoInitialMetadataDispatched:this._hasAudio&&!this._hasVideo?this._audioInitialMetadataDispatched:!(this._hasAudio||!this._hasVideo)&&this._videoInitialMetadataDispatched},e.prototype.parseChunks=function(t,i){if(!(this._onError&&this._onMediaInfo&&this._onTrackMetadata&&this._onDataAvailable))throw new l.rT("Flv: onError & onMediaInfo & onTrackMetadata & onDataAvailable callback must be specified");var n=0,r=this._littleEndian;if(0===i){if(!(t.byteLength>13))return 0;n=e.probe(t).dataOffset}for(this._firstParse&&(this._firstParse=!1,i+n!==this._dataOffset&&s.Z.w(this.TAG,"First time parsing but chunk byteStart invalid!"),0!==(o=new DataView(t,n)).getUint32(0,!r)&&s.Z.w(this.TAG,"PrevTagSize0!==0 !!!"),n+=4);n<t.byteLength;){this._dispatch=!0;var o=new DataView(t,n);if(n+11+4>t.byteLength)break;var a=o.getUint8(0),h=16777215&o.getUint32(0,!r);if(n+11+h+4>t.byteLength)break;if(8===a||9===a||18===a){var u=o.getUint8(4),d=o.getUint8(5),c=o.getUint8(6)|d<<8|u<<16|o.getUint8(7)<<24;16777215&o.getUint32(7,!r)&&s.Z.w(this.TAG,"Meet tag which has StreamID!=0!");var _=n+11;switch(a){case 8:this._parseAudioData(t,_,h,c);break;case 9:this._parseVideoData(t,_,h,c,i+n);break;case 18:this._parseScriptData(t,_,h)}var f=o.getUint32(11+h,!r);f!==11+h&&s.Z.w(this.TAG,"Invalid PrevTagSize "+f),n+=11+h+4}else s.Z.w(this.TAG,"Unsupported tag type "+a+", skipped"),n+=11+h+4}return this._isInitialMetadataDispatched()&&this._dispatch&&(this._audioTrack.length||this._videoTrack.length)&&this._onDataAvailable(this._audioTrack,this._videoTrack),n},e.prototype._parseScriptData=function(e,t,i){var n=_.parseScriptData(e,t,i);if(n.hasOwnProperty("onMetaData")){if(null==n.onMetaData||"object"!=typeof n.onMetaData)return void s.Z.w(this.TAG,"Invalid onMetaData structure!");this._metadata&&s.Z.w(this.TAG,"Found another onMetaData tag!"),this._metadata=n;var r=this._metadata.onMetaData;if(this._onMetaDataArrived&&this._onMetaDataArrived(Object.assign({},r)),"boolean"==typeof r.hasAudio&&!1===this._hasAudioFlagOverrided&&(this._hasAudio=r.hasAudio,this._mediaInfo.hasAudio=this._hasAudio),"boolean"==typeof r.hasVideo&&!1===this._hasVideoFlagOverrided&&(this._hasVideo=r.hasVideo,this._mediaInfo.hasVideo=this._hasVideo),"number"==typeof r.audiodatarate&&(this._mediaInfo.audioDataRate=r.audiodatarate),"number"==typeof r.videodatarate&&(this._mediaInfo.videoDataRate=r.videodatarate),"number"==typeof r.width&&(this._mediaInfo.width=r.width),"number"==typeof r.height&&(this._mediaInfo.height=r.height),"number"==typeof r.duration){if(!this._durationOverrided){var o=Math.floor(r.duration*this._timescale);this._duration=o,this._mediaInfo.duration=o}}else this._mediaInfo.duration=0;if("number"==typeof r.framerate){var a=Math.floor(1e3*r.framerate);if(a>0){var h=a/1e3;this._referenceFrameRate.fixed=!0,this._referenceFrameRate.fps=h,this._referenceFrameRate.fps_num=a,this._referenceFrameRate.fps_den=1e3,this._mediaInfo.fps=h}}if("object"==typeof r.keyframes){this._mediaInfo.hasKeyframesIndex=!0;var u=r.keyframes;this._mediaInfo.keyframesIndex=this._parseKeyframesIndex(u),r.keyframes=null}else this._mediaInfo.hasKeyframesIndex=!1;this._dispatch=!1,this._mediaInfo.metadata=r,s.Z.v(this.TAG,"Parsed onMetaData"),this._mediaInfo.isComplete()&&this._onMediaInfo(this._mediaInfo)}Object.keys(n).length>0&&this._onScriptDataArrived&&this._onScriptDataArrived(Object.assign({},n))},e.prototype._parseKeyframesIndex=function(e){for(var t=[],i=[],n=1;n<e.times.length;n++){var r=this._timestampBase+Math.floor(1e3*e.times[n]);t.push(r),i.push(e.filepositions[n])}return{times:t,filepositions:i}},e.prototype._parseAudioData=function(e,t,i,n){if(i<=1)s.Z.w(this.TAG,"Flv: Invalid audio packet, missing SoundData payload!");else if(!0!==this._hasAudioFlagOverrided||!1!==this._hasAudio){this._littleEndian;var r=new DataView(e,t,i).getUint8(0),o=r>>>4;if(2===o||10===o){var a=0,h=(12&r)>>>2;if(h>=0&&h<=4){a=this._flvSoundRateTable[h];var u=1&r,d=this._audioMetadata,l=this._audioTrack;if(d||(!1===this._hasAudio&&!1===this._hasAudioFlagOverrided&&(this._hasAudio=!0,this._mediaInfo.hasAudio=!0),(d=this._audioMetadata={}).type="audio",d.id=l.id,d.timescale=this._timescale,d.duration=this._duration,d.audioSampleRate=a,d.channelCount=0===u?1:2),10===o){var c=this._parseAACAudioData(e,t+1,i-1);if(null==c)return;if(0===c.packetType){d.config&&s.Z.w(this.TAG,"Found another AudioSpecificConfig!");var _=c.data;d.audioSampleRate=_.samplingRate,d.channelCount=_.channelCount,d.codec=_.codec,d.originalCodec=_.originalCodec,d.config=_.config,d.refSampleDuration=1024/d.audioSampleRate*d.timescale,s.Z.v(this.TAG,"Parsed AudioSpecificConfig"),this._isInitialMetadataDispatched()?this._dispatch&&(this._audioTrack.length||this._videoTrack.length)&&this._onDataAvailable(this._audioTrack,this._videoTrack):this._audioInitialMetadataDispatched=!0,this._dispatch=!1,this._onTrackMetadata("audio",d),(g=this._mediaInfo).audioCodec=d.originalCodec,g.audioSampleRate=d.audioSampleRate,g.audioChannelCount=d.channelCount,g.hasVideo?null!=g.videoCodec&&(g.mimeType='video/x-flv; codecs="'+g.videoCodec+","+g.audioCodec+'"'):g.mimeType='video/x-flv; codecs="'+g.audioCodec+'"',g.isComplete()&&this._onMediaInfo(g)}else if(1===c.packetType){var f=this._timestampBase+n,p={unit:c.data,length:c.data.byteLength,dts:f,pts:f};l.samples.push(p),l.length+=c.data.length}else s.Z.e(this.TAG,"Flv: Unsupported AAC data type "+c.packetType)}else if(2===o){if(!d.codec){var g;if(null==(_=this._parseMP3AudioData(e,t+1,i-1,!0)))return;d.audioSampleRate=_.samplingRate,d.channelCount=_.channelCount,d.codec=_.codec,d.originalCodec=_.originalCodec,d.refSampleDuration=1152/d.audioSampleRate*d.timescale,s.Z.v(this.TAG,"Parsed MPEG Audio Frame Header"),this._audioInitialMetadataDispatched=!0,this._onTrackMetadata("audio",d),(g=this._mediaInfo).audioCodec=d.codec,g.audioSampleRate=d.audioSampleRate,g.audioChannelCount=d.channelCount,g.audioDataRate=_.bitRate,g.hasVideo?null!=g.videoCodec&&(g.mimeType='video/x-flv; codecs="'+g.videoCodec+","+g.audioCodec+'"'):g.mimeType='video/x-flv; codecs="'+g.audioCodec+'"',g.isComplete()&&this._onMediaInfo(g)}var v=this._parseMP3AudioData(e,t+1,i-1,!1);if(null==v)return;f=this._timestampBase+n;var y={unit:v,length:v.byteLength,dts:f,pts:f};l.samples.push(y),l.length+=v.length}}else this._onError(m.Z.FORMAT_ERROR,"Flv: Invalid audio sample rate idx: "+h)}else this._onError(m.Z.CODEC_UNSUPPORTED,"Flv: Unsupported audio codec idx: "+o)}},e.prototype._parseAACAudioData=function(e,t,i){if(!(i<=1)){var n={},r=new Uint8Array(e,t,i);return n.packetType=r[0],0===r[0]?n.data=this._parseAACAudioSpecificConfig(e,t+1,i-1):n.data=r.subarray(1),n}s.Z.w(this.TAG,"Flv: Invalid AAC packet, missing AACPacketType or/and Data!")},e.prototype._parseAACAudioSpecificConfig=function(e,t,i){var n,r,s=new Uint8Array(e,t,i),o=null,a=0,h=null;if(a=n=s[0]>>>3,(r=(7&s[0])<<1|s[1]>>>7)<0||r>=this._mpegSamplingRates.length)this._onError(m.Z.FORMAT_ERROR,"Flv: AAC invalid sampling frequency index!");else{var u=this._mpegSamplingRates[r],d=(120&s[1])>>>3;if(!(d<0||d>=8)){5===a&&(h=(7&s[1])<<1|s[2]>>>7,s[2]);var l=self.navigator.userAgent.toLowerCase();return-1!==l.indexOf("firefox")?r>=6?(a=5,o=new Array(4),h=r-3):(a=2,o=new Array(2),h=r):-1!==l.indexOf("android")?(a=2,o=new Array(2),h=r):(a=5,h=r,o=new Array(4),r>=6?h=r-3:1===d&&(a=2,o=new Array(2),h=r)),o[0]=a<<3,o[0]|=(15&r)>>>1,o[1]=(15&r)<<7,o[1]|=(15&d)<<3,5===a&&(o[1]|=(15&h)>>>1,o[2]=(1&h)<<7,o[2]|=8,o[3]=0),{config:o,samplingRate:u,channelCount:d,codec:"mp4a.40."+a,originalCodec:"mp4a.40."+n}}this._onError(m.Z.FORMAT_ERROR,"Flv: AAC invalid channel configuration")}},e.prototype._parseMP3AudioData=function(e,t,i,n){if(!(i<4)){this._littleEndian;var r=new Uint8Array(e,t,i),o=null;if(n){if(255!==r[0])return;var a=r[1]>>>3&3,h=(6&r[1])>>1,u=(240&r[2])>>>4,d=(12&r[2])>>>2,l=3&~(r[3]>>>6)?2:1,c=0,_=0;switch(a){case 0:c=this._mpegAudioV25SampleRateTable[d];break;case 2:c=this._mpegAudioV20SampleRateTable[d];break;case 3:c=this._mpegAudioV10SampleRateTable[d]}switch(h){case 1:u<this._mpegAudioL3BitRateTable.length&&(_=this._mpegAudioL3BitRateTable[u]);break;case 2:u<this._mpegAudioL2BitRateTable.length&&(_=this._mpegAudioL2BitRateTable[u]);break;case 3:u<this._mpegAudioL1BitRateTable.length&&(_=this._mpegAudioL1BitRateTable[u])}o={bitRate:_,samplingRate:c,channelCount:l,codec:"mp3",originalCodec:"mp3"}}else o=r;return o}s.Z.w(this.TAG,"Flv: Invalid MP3 packet, header missing!")},e.prototype._parseVideoData=function(e,t,i,n,r){if(i<=1)s.Z.w(this.TAG,"Flv: Invalid video packet, missing VideoData payload!");else if(!0!==this._hasVideoFlagOverrided||!1!==this._hasVideo){var o=new Uint8Array(e,t,i)[0],a=(240&o)>>>4,h=15&o;7===h?this._parseAVCVideoPacket(e,t+1,i-1,n,r,a):this._onError(m.Z.CODEC_UNSUPPORTED,"Flv: Unsupported codec in video frame: "+h)}},e.prototype._parseAVCVideoPacket=function(e,t,i,n,r,o){if(i<4)s.Z.w(this.TAG,"Flv: Invalid AVC packet, missing AVCPacketType or/and CompositionTime");else{var a=this._littleEndian,h=new DataView(e,t,i),u=h.getUint8(0),d=(16777215&h.getUint32(0,!a))<<8>>8;if(0===u)this._parseAVCDecoderConfigurationRecord(e,t+4,i-4);else if(1===u)this._parseAVCVideoData(e,t+4,i-4,n,r,o,d);else if(2!==u)return void this._onError(m.Z.FORMAT_ERROR,"Flv: Invalid video packet type "+u)}},e.prototype._parseAVCDecoderConfigurationRecord=function(e,t,i){if(i<7)s.Z.w(this.TAG,"Flv: Invalid AVCDecoderConfigurationRecord, lack of data!");else{var n=this._videoMetadata,r=this._videoTrack,o=this._littleEndian,a=new DataView(e,t,i);n?void 0!==n.avcc&&s.Z.w(this.TAG,"Found another AVCDecoderConfigurationRecord!"):(!1===this._hasVideo&&!1===this._hasVideoFlagOverrided&&(this._hasVideo=!0,this._mediaInfo.hasVideo=!0),(n=this._videoMetadata={}).type="video",n.id=r.id,n.timescale=this._timescale,n.duration=this._duration);var h=a.getUint8(0),u=a.getUint8(1);if(a.getUint8(2),a.getUint8(3),1===h&&0!==u)if(this._naluLengthSize=1+(3&a.getUint8(4)),3===this._naluLengthSize||4===this._naluLengthSize){var d=31&a.getUint8(5);if(0!==d){d>1&&s.Z.w(this.TAG,"Flv: Strange AVCDecoderConfigurationRecord: SPS Count="+d);for(var l=6,c=0;c<d;c++){var _=a.getUint16(l,!o);if(l+=2,0!==_){var f=new Uint8Array(e,t+l,_);l+=_;var g=p.parseSPS(f);if(0===c){n.codecWidth=g.codec_size.width,n.codecHeight=g.codec_size.height,n.presentWidth=g.present_size.width,n.presentHeight=g.present_size.height,n.profile=g.profile_string,n.level=g.level_string,n.bitDepth=g.bit_depth,n.chromaFormat=g.chroma_format,n.sarRatio=g.sar_ratio,n.frameRate=g.frame_rate,!1!==g.frame_rate.fixed&&0!==g.frame_rate.fps_num&&0!==g.frame_rate.fps_den||(n.frameRate=this._referenceFrameRate);var v=n.frameRate.fps_den,y=n.frameRate.fps_num;n.refSampleDuration=n.timescale*(v/y);for(var b=f.subarray(1,4),E="avc1.",S=0;S<3;S++){var A=b[S].toString(16);A.length<2&&(A="0"+A),E+=A}n.codec=E;var L=this._mediaInfo;L.width=n.codecWidth,L.height=n.codecHeight,L.fps=n.frameRate.fps,L.profile=n.profile,L.level=n.level,L.refFrames=g.ref_frames,L.chromaFormat=g.chroma_format_string,L.sarNum=n.sarRatio.width,L.sarDen=n.sarRatio.height,L.videoCodec=E,L.hasAudio?null!=L.audioCodec&&(L.mimeType='video/x-flv; codecs="'+L.videoCodec+","+L.audioCodec+'"'):L.mimeType='video/x-flv; codecs="'+L.videoCodec+'"',L.isComplete()&&this._onMediaInfo(L)}}}var R=a.getUint8(l);if(0!==R){for(R>1&&s.Z.w(this.TAG,"Flv: Strange AVCDecoderConfigurationRecord: PPS Count="+R),l++,c=0;c<R;c++)_=a.getUint16(l,!o),l+=2,0!==_&&(l+=_);n.avcc=new Uint8Array(i),n.avcc.set(new Uint8Array(e,t,i),0),s.Z.v(this.TAG,"Parsed AVCDecoderConfigurationRecord"),this._isInitialMetadataDispatched()?this._dispatch&&(this._audioTrack.length||this._videoTrack.length)&&this._onDataAvailable(this._audioTrack,this._videoTrack):this._videoInitialMetadataDispatched=!0,this._dispatch=!1,this._onTrackMetadata("video",n)}else this._onError(m.Z.FORMAT_ERROR,"Flv: Invalid AVCDecoderConfigurationRecord: No PPS")}else this._onError(m.Z.FORMAT_ERROR,"Flv: Invalid AVCDecoderConfigurationRecord: No SPS")}else this._onError(m.Z.FORMAT_ERROR,"Flv: Strange NaluLengthSizeMinusOne: "+(this._naluLengthSize-1));else this._onError(m.Z.FORMAT_ERROR,"Flv: Invalid AVCDecoderConfigurationRecord")}},e.prototype._parseAVCVideoData=function(e,t,i,n,r,o,a){for(var h=this._littleEndian,u=new DataView(e,t,i),d=[],l=0,c=0,_=this._naluLengthSize,f=this._timestampBase+n,p=1===o;c<i;){if(c+4>=i){s.Z.w(this.TAG,"Malformed Nalu near timestamp "+f+", offset="+c+", dataSize="+i);break}var m=u.getUint32(c,!h);if(3===_&&(m>>>=8),m>i-_)return void s.Z.w(this.TAG,"Malformed Nalus near timestamp "+f+", NaluSize > DataSize!");var g=31&u.getUint8(c+_);5===g&&(p=!0);var v=new Uint8Array(e,t+c,_+m),y={type:g,data:v};d.push(y),l+=v.byteLength,c+=_+m}if(d.length){var b=this._videoTrack,E={units:d,length:l,isKeyframe:p,dts:f,cts:a,pts:f+a};p&&(E.fileposition=r),b.samples.push(E),b.length+=l}},e}(),v=function(){function e(){}return e.init=function(){for(var t in e.types={avc1:[],avcC:[],btrt:[],dinf:[],dref:[],esds:[],ftyp:[],hdlr:[],mdat:[],mdhd:[],mdia:[],mfhd:[],minf:[],moof:[],moov:[],mp4a:[],mvex:[],mvhd:[],sdtp:[],stbl:[],stco:[],stsc:[],stsd:[],stsz:[],stts:[],tfdt:[],tfhd:[],traf:[],trak:[],trun:[],trex:[],tkhd:[],vmhd:[],smhd:[],".mp3":[]},e.types)e.types.hasOwnProperty(t)&&(e.types[t]=[t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2),t.charCodeAt(3)]);var i=e.constants={};i.FTYP=new Uint8Array([105,115,111,109,0,0,0,1,105,115,111,109,97,118,99,49]),i.STSD_PREFIX=new Uint8Array([0,0,0,0,0,0,0,1]),i.STTS=new Uint8Array([0,0,0,0,0,0,0,0]),i.STSC=i.STCO=i.STTS,i.STSZ=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0]),i.HDLR_VIDEO=new Uint8Array([0,0,0,0,0,0,0,0,118,105,100,101,0,0,0,0,0,0,0,0,0,0,0,0,86,105,100,101,111,72,97,110,100,108,101,114,0]),i.HDLR_AUDIO=new Uint8Array([0,0,0,0,0,0,0,0,115,111,117,110,0,0,0,0,0,0,0,0,0,0,0,0,83,111,117,110,100,72,97,110,100,108,101,114,0]),i.DREF=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,12,117,114,108,32,0,0,0,1]),i.SMHD=new Uint8Array([0,0,0,0,0,0,0,0]),i.VMHD=new Uint8Array([0,0,0,1,0,0,0,0,0,0,0,0])},e.box=function(e){for(var t=8,i=null,n=Array.prototype.slice.call(arguments,1),r=n.length,s=0;s<r;s++)t+=n[s].byteLength;(i=new Uint8Array(t))[0]=t>>>24&255,i[1]=t>>>16&255,i[2]=t>>>8&255,i[3]=255&t,i.set(e,4);var o=8;for(s=0;s<r;s++)i.set(n[s],o),o+=n[s].byteLength;return i},e.generateInitSegment=function(t){var i=e.box(e.types.ftyp,e.constants.FTYP),n=e.moov(t),r=new Uint8Array(i.byteLength+n.byteLength);return r.set(i,0),r.set(n,i.byteLength),r},e.moov=function(t){var i=e.mvhd(t.timescale,t.duration),n=e.trak(t),r=e.mvex(t);return e.box(e.types.moov,i,n,r)},e.mvhd=function(t,i){return e.box(e.types.mvhd,new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,t>>>24&255,t>>>16&255,t>>>8&255,255&t,i>>>24&255,i>>>16&255,i>>>8&255,255&i,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]))},e.trak=function(t){return e.box(e.types.trak,e.tkhd(t),e.mdia(t))},e.tkhd=function(t){var i=t.id,n=t.duration,r=t.presentWidth,s=t.presentHeight;return e.box(e.types.tkhd,new Uint8Array([0,0,0,7,0,0,0,0,0,0,0,0,i>>>24&255,i>>>16&255,i>>>8&255,255&i,0,0,0,0,n>>>24&255,n>>>16&255,n>>>8&255,255&n,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,s>>>8&255,255&s,0,0]))},e.mdia=function(t){return e.box(e.types.mdia,e.mdhd(t),e.hdlr(t),e.minf(t))},e.mdhd=function(t){var i=t.timescale,n=t.duration;return e.box(e.types.mdhd,new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,i>>>24&255,i>>>16&255,i>>>8&255,255&i,n>>>24&255,n>>>16&255,n>>>8&255,255&n,85,196,0,0]))},e.hdlr=function(t){var i;return i="audio"===t.type?e.constants.HDLR_AUDIO:e.constants.HDLR_VIDEO,e.box(e.types.hdlr,i)},e.minf=function(t){var i;return i="audio"===t.type?e.box(e.types.smhd,e.constants.SMHD):e.box(e.types.vmhd,e.constants.VMHD),e.box(e.types.minf,i,e.dinf(),e.stbl(t))},e.dinf=function(){return e.box(e.types.dinf,e.box(e.types.dref,e.constants.DREF))},e.stbl=function(t){return e.box(e.types.stbl,e.stsd(t),e.box(e.types.stts,e.constants.STTS),e.box(e.types.stsc,e.constants.STSC),e.box(e.types.stsz,e.constants.STSZ),e.box(e.types.stco,e.constants.STCO))},e.stsd=function(t){return"audio"===t.type?"mp3"===t.codec?e.box(e.types.stsd,e.constants.STSD_PREFIX,e.mp3(t)):e.box(e.types.stsd,e.constants.STSD_PREFIX,e.mp4a(t)):e.box(e.types.stsd,e.constants.STSD_PREFIX,e.avc1(t))},e.mp3=function(t){var i=t.channelCount,n=t.audioSampleRate,r=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,i,0,16,0,0,0,0,n>>>8&255,255&n,0,0]);return e.box(e.types[".mp3"],r)},e.mp4a=function(t){var i=t.channelCount,n=t.audioSampleRate,r=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,i,0,16,0,0,0,0,n>>>8&255,255&n,0,0]);return e.box(e.types.mp4a,r,e.esds(t))},e.esds=function(t){var i=t.config||[],n=i.length,r=new Uint8Array([0,0,0,0,3,23+n,0,1,0,4,15+n,64,21,0,0,0,0,0,0,0,0,0,0,0,5].concat([n]).concat(i).concat([6,1,2]));return e.box(e.types.esds,r)},e.avc1=function(t){var i=t.avcc,n=t.codecWidth,r=t.codecHeight,s=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,n>>>8&255,255&n,r>>>8&255,255&r,0,72,0,0,0,72,0,0,0,0,0,0,0,1,10,120,113,113,47,102,108,118,46,106,115,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,24,255,255]);return e.box(e.types.avc1,s,e.box(e.types.avcC,i))},e.mvex=function(t){return e.box(e.types.mvex,e.trex(t))},e.trex=function(t){var i=t.id,n=new Uint8Array([0,0,0,0,i>>>24&255,i>>>16&255,i>>>8&255,255&i,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,1]);return e.box(e.types.trex,n)},e.moof=function(t,i){return e.box(e.types.moof,e.mfhd(t.sequenceNumber),e.traf(t,i))},e.mfhd=function(t){var i=new Uint8Array([0,0,0,0,t>>>24&255,t>>>16&255,t>>>8&255,255&t]);return e.box(e.types.mfhd,i)},e.traf=function(t,i){var n=t.id,r=e.box(e.types.tfhd,new Uint8Array([0,0,0,0,n>>>24&255,n>>>16&255,n>>>8&255,255&n])),s=e.box(e.types.tfdt,new Uint8Array([0,0,0,0,i>>>24&255,i>>>16&255,i>>>8&255,255&i])),o=e.sdtp(t),a=e.trun(t,o.byteLength+16+16+8+16+8+8);return e.box(e.types.traf,r,s,a,o)},e.sdtp=function(t){for(var i=t.samples||[],n=i.length,r=new Uint8Array(4+n),s=0;s<n;s++){var o=i[s].flags;r[s+4]=o.isLeading<<6|o.dependsOn<<4|o.isDependedOn<<2|o.hasRedundancy}return e.box(e.types.sdtp,r)},e.trun=function(t,i){var n=t.samples||[],r=n.length,s=12+16*r,o=new Uint8Array(s);i+=8+s,o.set([0,0,15,1,r>>>24&255,r>>>16&255,r>>>8&255,255&r,i>>>24&255,i>>>16&255,i>>>8&255,255&i],0);for(var a=0;a<r;a++){var h=n[a].duration,u=n[a].size,d=n[a].flags,l=n[a].cts;o.set([h>>>24&255,h>>>16&255,h>>>8&255,255&h,u>>>24&255,u>>>16&255,u>>>8&255,255&u,d.isLeading<<2|d.dependsOn,d.isDependedOn<<6|d.hasRedundancy<<4|d.isNonSync,0,0,l>>>24&255,l>>>16&255,l>>>8&255,255&l],12+16*a)}return e.box(e.types.trun,o)},e.mdat=function(t){return e.box(e.types.mdat,t)},e}();v.init();var y=v,b=function(){function e(){}return e.getSilentFrame=function(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]);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]);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)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]);if(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])}return null},e}(),E=i(51),S=function(){function e(e){this.TAG="MP4Remuxer",this._config=e,this._isLive=!0===e.isLive,this._dtsBase=-1,this._dtsBaseInited=!1,this._audioDtsBase=1/0,this._videoDtsBase=1/0,this._audioNextDts=void 0,this._videoNextDts=void 0,this._audioStashedLastSample=null,this._videoStashedLastSample=null,this._audioMeta=null,this._videoMeta=null,this._audioSegmentInfoList=new E.J1("audio"),this._videoSegmentInfoList=new E.J1("video"),this._onInitSegment=null,this._onMediaSegment=null,this._forceFirstIDR=!(!o.Z.chrome||!(o.Z.version.major<50||50===o.Z.version.major&&o.Z.version.build<2661)),this._fillSilentAfterSeek=o.Z.msedge||o.Z.msie,this._mp3UseMpegAudio=!o.Z.firefox,this._fillAudioTimestampGap=this._config.fixAudioTimestampGap}return e.prototype.destroy=function(){this._dtsBase=-1,this._dtsBaseInited=!1,this._audioMeta=null,this._videoMeta=null,this._audioSegmentInfoList.clear(),this._audioSegmentInfoList=null,this._videoSegmentInfoList.clear(),this._videoSegmentInfoList=null,this._onInitSegment=null,this._onMediaSegment=null},e.prototype.bindDataSource=function(e){return e.onDataAvailable=this.remux.bind(this),e.onTrackMetadata=this._onTrackMetadataReceived.bind(this),this},Object.defineProperty(e.prototype,"onInitSegment",{get:function(){return this._onInitSegment},set:function(e){this._onInitSegment=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"onMediaSegment",{get:function(){return this._onMediaSegment},set:function(e){this._onMediaSegment=e},enumerable:!1,configurable:!0}),e.prototype.insertDiscontinuity=function(){this._audioNextDts=this._videoNextDts=void 0},e.prototype.seek=function(e){this._audioStashedLastSample=null,this._videoStashedLastSample=null,this._videoSegmentInfoList.clear(),this._audioSegmentInfoList.clear()},e.prototype.remux=function(e,t){if(!this._onMediaSegment)throw new l.rT("MP4Remuxer: onMediaSegment callback must be specificed!");this._dtsBaseInited||this._calculateDtsBase(e,t),this._remuxVideo(t),this._remuxAudio(e)},e.prototype._onTrackMetadataReceived=function(e,t){var i=null,n="mp4",r=t.codec;if("audio"===e)this._audioMeta=t,"mp3"===t.codec&&this._mp3UseMpegAudio?(n="mpeg",r="",i=new Uint8Array):i=y.generateInitSegment(t);else{if("video"!==e)return;this._videoMeta=t,i=y.generateInitSegment(t)}if(!this._onInitSegment)throw new l.rT("MP4Remuxer: onInitSegment callback must be specified!");this._onInitSegment(e,{type:e,data:i.buffer,codec:r,container:e+"/"+n,mediaDuration:t.duration})},e.prototype._calculateDtsBase=function(e,t){this._dtsBaseInited||(e.samples&&e.samples.length&&(this._audioDtsBase=e.samples[0].dts),t.samples&&t.samples.length&&(this._videoDtsBase=t.samples[0].dts),this._dtsBase=Math.min(this._audioDtsBase,this._videoDtsBase),this._dtsBaseInited=!0)},e.prototype.flushStashedSamples=function(){var e=this._videoStashedLastSample,t=this._audioStashedLastSample,i={type:"video",id:1,sequenceNumber:0,samples:[],length:0};null!=e&&(i.samples.push(e),i.length=e.length);var n={type:"audio",id:2,sequenceNumber:0,samples:[],length:0};null!=t&&(n.samples.push(t),n.length=t.length),this._videoStashedLastSample=null,this._audioStashedLastSample=null,this._remuxVideo(i,!0),this._remuxAudio(n,!0)},e.prototype._remuxAudio=function(e,t){if(null!=this._audioMeta){var i,n=e,r=n.samples,a=void 0,h=-1,u=this._audioMeta.refSampleDuration,d="mp3"===this._audioMeta.codec&&this._mp3UseMpegAudio,l=this._dtsBaseInited&&void 0===this._audioNextDts,c=!1;if(r&&0!==r.length&&(1!==r.length||t)){var _=0,f=null,p=0;d?(_=0,p=n.length):(_=8,p=8+n.length);var m=null;if(r.length>1&&(p-=(m=r.pop()).length),null!=this._audioStashedLastSample){var g=this._audioStashedLastSample;this._audioStashedLastSample=null,r.unshift(g),p+=g.length}null!=m&&(this._audioStashedLastSample=m);var v=r[0].dts-this._dtsBase;if(this._audioNextDts)a=v-this._audioNextDts;else if(this._audioSegmentInfoList.isEmpty())a=0,this._fillSilentAfterSeek&&!this._videoSegmentInfoList.isEmpty()&&"mp3"!==this._audioMeta.originalCodec&&(c=!0);else{var S=this._audioSegmentInfoList.getLastSampleBefore(v);if(null!=S){var A=v-(S.originalDts+S.duration);A<=3&&(A=0),a=v-(S.dts+S.duration+A)}else a=0}if(c){var L=v-a,R=this._videoSegmentInfoList.getLastSegmentBefore(v);if(null!=R&&R.beginDts<L){if(P=b.getSilentFrame(this._audioMeta.originalCodec,this._audioMeta.channelCount)){var w=R.beginDts,O=L-R.beginDts;s.Z.v(this.TAG,"InsertPrefixSilentAudio: dts: "+w+", duration: "+O),r.unshift({unit:P,dts:w,pts:w}),p+=P.byteLength}}else c=!1}for(var T=[],C=0;C<r.length;C++){var k=(g=r[C]).unit,D=g.dts-this._dtsBase,I=(w=D,!1),M=null,B=0;if(!(D<-.001)){if("mp3"!==this._audioMeta.codec){var x=D;if(this._audioNextDts&&(x=this._audioNextDts),(a=D-x)<=-3*u){s.Z.w(this.TAG,"Dropping 1 audio frame (originalDts: "+D+" ms ,curRefDts: "+x+" ms)  due to dtsCorrection: "+a+" ms overlap.");continue}if(a>=3*u&&this._fillAudioTimestampGap&&!o.Z.safari){I=!0;var P,U=Math.floor(a/u);s.Z.w(this.TAG,"Large audio timestamp gap detected, may cause AV sync to drift. Silent frames will be generated to avoid unsync.\noriginalDts: "+D+" ms, curRefDts: "+x+" ms, dtsCorrection: "+Math.round(a)+" ms, generate: "+U+" frames"),w=Math.floor(x),B=Math.floor(x+u)-w,null==(P=b.getSilentFrame(this._audioMeta.originalCodec,this._audioMeta.channelCount))&&(s.Z.w(this.TAG,"Unable to generate silent frame for "+this._audioMeta.originalCodec+" with "+this._audioMeta.channelCount+" channels, repeat last frame"),P=k),M=[];for(var N=0;N<U;N++){x+=u;var Z=Math.floor(x),F=Math.floor(x+u)-Z,G={dts:Z,pts:Z,cts:0,unit:P,size:P.byteLength,duration:F,originalDts:D,flags:{isLeading:0,dependsOn:1,isDependedOn:0,hasRedundancy:0}};M.push(G),p+=G.size}this._audioNextDts=x+u}else w=Math.floor(x),B=Math.floor(x+u)-w,this._audioNextDts=x+u}else w=D-a,B=C!==r.length-1?r[C+1].dts-this._dtsBase-a-w:null!=m?m.dts-this._dtsBase-a-w:T.length>=1?T[T.length-1].duration:Math.floor(u),this._audioNextDts=w+B;-1===h&&(h=w),T.push({dts:w,pts:w,cts:0,unit:g.unit,size:g.unit.byteLength,duration:B,originalDts:D,flags:{isLeading:0,dependsOn:1,isDependedOn:0,hasRedundancy:0}}),I&&T.push.apply(T,M)}}if(0===T.length)return n.samples=[],void(n.length=0);for(d?f=new Uint8Array(p):((f=new Uint8Array(p))[0]=p>>>24&255,f[1]=p>>>16&255,f[2]=p>>>8&255,f[3]=255&p,f.set(y.types.mdat,4)),C=0;C<T.length;C++)k=T[C].unit,f.set(k,_),_+=k.byteLength;var j=T[T.length-1];i=j.dts+j.duration;var V,z=new E.Yy;z.beginDts=h,z.endDts=i,z.beginPts=h,z.endPts=i,z.originalBeginDts=T[0].originalDts,z.originalEndDts=j.originalDts+j.duration,z.firstSample=new E.Wk(T[0].dts,T[0].pts,T[0].duration,T[0].originalDts,!1),z.lastSample=new E.Wk(j.dts,j.pts,j.duration,j.originalDts,!1),this._isLive||this._audioSegmentInfoList.append(z),n.samples=T,n.sequenceNumber++,V=d?new Uint8Array:y.moof(n,h),n.samples=[],n.length=0;var K={type:"audio",data:this._mergeBoxes(V,f).buffer,sampleCount:T.length,info:z};d&&l&&(K.timestampOffset=h),this._onMediaSegment("audio",K)}}},e.prototype._remuxVideo=function(e,t){if(null!=this._videoMeta){var i,n,r=e,s=r.samples,o=void 0,a=-1,h=-1;if(s&&0!==s.length&&(1!==s.length||t)){var u=8,d=null,l=8+e.length,c=null;if(s.length>1&&(l-=(c=s.pop()).length),null!=this._videoStashedLastSample){var _=this._videoStashedLastSample;this._videoStashedLastSample=null,s.unshift(_),l+=_.length}null!=c&&(this._videoStashedLastSample=c);var f=s[0].dts-this._dtsBase;if(this._videoNextDts)o=f-this._videoNextDts;else if(this._videoSegmentInfoList.isEmpty())o=0;else{var p=this._videoSegmentInfoList.getLastSampleBefore(f);if(null!=p){var m=f-(p.originalDts+p.duration);m<=3&&(m=0),o=f-(p.dts+p.duration+m)}else o=0}for(var g=new E.Yy,v=[],b=0;b<s.length;b++){var S=(_=s[b]).dts-this._dtsBase,A=_.isKeyframe,L=S-o,R=_.cts,w=L+R;-1===a&&(a=L,h=w);var O;if(O=b!==s.length-1?s[b+1].dts-this._dtsBase-o-L:null!=c?c.dts-this._dtsBase-o-L:v.length>=1?v[v.length-1].duration:Math.floor(this._videoMeta.refSampleDuration),A){var T=new E.Wk(L,w,O,_.dts,!0);T.fileposition=_.fileposition,g.appendSyncPoint(T)}v.push({dts:L,pts:w,cts:R,units:_.units,size:_.length,isKeyframe:A,duration:O,originalDts:S,flags:{isLeading:0,dependsOn:A?2:1,isDependedOn:A?1:0,hasRedundancy:0,isNonSync:A?0:1}})}for((d=new Uint8Array(l))[0]=l>>>24&255,d[1]=l>>>16&255,d[2]=l>>>8&255,d[3]=255&l,d.set(y.types.mdat,4),b=0;b<v.length;b++)for(var C=v[b].units;C.length;){var k=C.shift().data;d.set(k,u),u+=k.byteLength}var D=v[v.length-1];if(i=D.dts+D.duration,n=D.pts+D.duration,this._videoNextDts=i,g.beginDts=a,g.endDts=i,g.beginPts=h,g.endPts=n,g.originalBeginDts=v[0].originalDts,g.originalEndDts=D.originalDts+D.duration,g.firstSample=new E.Wk(v[0].dts,v[0].pts,v[0].duration,v[0].originalDts,v[0].isKeyframe),g.lastSample=new E.Wk(D.dts,D.pts,D.duration,D.originalDts,D.isKeyframe),this._isLive||this._videoSegmentInfoList.append(g),r.samples=v,r.sequenceNumber++,this._forceFirstIDR){var I=v[0].flags;I.dependsOn=2,I.isNonSync=0}var M=y.moof(r,a);r.samples=[],r.length=0,this._onMediaSegment("video",{type:"video",data:this._mergeBoxes(M,d).buffer,sampleCount:v.length,info:g})}}},e.prototype._mergeBoxes=function(e,t){var i=new Uint8Array(e.byteLength+t.byteLength);return i.set(e,0),i.set(t,e.byteLength),i},e}(),A=i(191),L=i(257),R=function(){function e(e,t){this.TAG="TransmuxingController",this._emitter=new(r()),this._config=t,e.segments||(e.segments=[{duration:e.duration,filesize:e.filesize,url:e.url}]),"boolean"!=typeof e.cors&&(e.cors=!0),"boolean"!=typeof e.withCredentials&&(e.withCredentials=!1),this._mediaDataSource=e,this._currentSegmentIndex=0;var i=0;this._mediaDataSource.segments.forEach(function(n){n.timestampBase=i,i+=n.duration,n.cors=e.cors,n.withCredentials=e.withCredentials,t.referrerPolicy&&(n.referrerPolicy=t.referrerPolicy)}),isNaN(i)||this._mediaDataSource.duration===i||(this._mediaDataSource.duration=i),this._mediaInfo=null,this._demuxer=null,this._remuxer=null,this._ioctl=null,this._pendingSeekTime=null,this._pendingResolveSeekPoint=null,this._statisticsReporter=null}return e.prototype.destroy=function(){this._mediaInfo=null,this._mediaDataSource=null,this._statisticsReporter&&this._disableStatisticsReporter(),this._ioctl&&(this._ioctl.destroy(),this._ioctl=null),this._demuxer&&(this._demuxer.destroy(),this._demuxer=null),this._remuxer&&(this._remuxer.destroy(),this._remuxer=null),this._emitter.removeAllListeners(),this._emitter=null},e.prototype.on=function(e,t){this._emitter.addListener(e,t)},e.prototype.off=function(e,t){this._emitter.removeListener(e,t)},e.prototype.start=function(){this._loadSegment(0),this._enableStatisticsReporter()},e.prototype._loadSegment=function(e,t){this._currentSegmentIndex=e;var i=this._mediaDataSource.segments[e],n=this._ioctl=new A.Z(i,this._config,e);n.onError=this._onIOException.bind(this),n.onSeeked=this._onIOSeeked.bind(this),n.onComplete=this._onIOComplete.bind(this),n.onRedirect=this._onIORedirect.bind(this),n.onRecoveredEarlyEof=this._onIORecoveredEarlyEof.bind(this),t?this._demuxer.bindDataSource(this._ioctl):n.onDataArrival=this._onInitChunkArrival.bind(this),n.open(t)},e.prototype.stop=function(){this._internalAbort(),this._disableStatisticsReporter()},e.prototype._internalAbort=function(){this._ioctl&&(this._ioctl.destroy(),this._ioctl=null)},e.prototype.pause=function(){this._ioctl&&this._ioctl.isWorking()&&(this._ioctl.pause(),this._disableStatisticsReporter())},e.prototype.resume=function(){this._ioctl&&this._ioctl.isPaused()&&(this._ioctl.resume(),this._enableStatisticsReporter())},e.prototype.seek=function(e){if(null!=this._mediaInfo&&this._mediaInfo.isSeekable()){var t=this._searchSegmentIndexContains(e);if(t===this._currentSegmentIndex){var i=this._mediaInfo.segments[t];if(null==i)this._pendingSeekTime=e;else{var n=i.getNearestKeyframe(e);this._remuxer.seek(n.milliseconds),this._ioctl.seek(n.fileposition),this._pendingResolveSeekPoint=n.milliseconds}}else{var r=this._mediaInfo.segments[t];null==r?(this._pendingSeekTime=e,this._internalAbort(),this._remuxer.seek(),this._remuxer.insertDiscontinuity(),this._loadSegment(t)):(n=r.getNearestKeyframe(e),this._internalAbort(),this._remuxer.seek(e),this._remuxer.insertDiscontinuity(),this._demuxer.resetMediaInfo(),this._demuxer.timestampBase=this._mediaDataSource.segments[t].timestampBase,this._loadSegment(t,n.fileposition),this._pendingResolveSeekPoint=n.milliseconds,this._reportSegmentMediaInfo(t))}this._enableStatisticsReporter()}},e.prototype._searchSegmentIndexContains=function(e){for(var t=this._mediaDataSource.segments,i=t.length-1,n=0;n<t.length;n++)if(e<t[n].timestampBase){i=n-1;break}return i},e.prototype._onInitChunkArrival=function(e,t){var i=this,n=null,r=0;if(t>0)this._demuxer.bindDataSource(this._ioctl),this._demuxer.timestampBase=this._mediaDataSource.segments[this._currentSegmentIndex].timestampBase,r=this._demuxer.parseChunks(e,t);else if((n=g.probe(e)).match){this._demuxer=new g(n,this._config),this._remuxer||(this._remuxer=new S(this._config));var o=this._mediaDataSource;null==o.duration||isNaN(o.duration)||(this._demuxer.overridedDuration=o.duration),"boolean"==typeof o.hasAudio&&(this._demuxer.overridedHasAudio=o.hasAudio),"boolean"==typeof o.hasVideo&&(this._demuxer.overridedHasVideo=o.hasVideo),this._demuxer.timestampBase=o.segments[this._currentSegmentIndex].timestampBase,this._demuxer.onError=this._onDemuxException.bind(this),this._demuxer.onMediaInfo=this._onMediaInfo.bind(this),this._demuxer.onMetaDataArrived=this._onMetaDataArrived.bind(this),this._demuxer.onScriptDataArrived=this._onScriptDataArrived.bind(this),this._remuxer.bindDataSource(this._demuxer.bindDataSource(this._ioctl)),this._remuxer.onInitSegment=this._onRemuxerInitSegmentArrival.bind(this),this._remuxer.onMediaSegment=this._onRemuxerMediaSegmentArrival.bind(this),r=this._demuxer.parseChunks(e,t)}else n=null,s.Z.e(this.TAG,"Non-FLV, Unsupported media type!"),Promise.resolve().then(function(){i._internalAbort()}),this._emitter.emit(L.Z.DEMUX_ERROR,m.Z.FORMAT_UNSUPPORTED,"Non-FLV, Unsupported media type"),r=0;return r},e.prototype._onMediaInfo=function(e){var t=this;null==this._mediaInfo&&(this._mediaInfo=Object.assign({},e),this._mediaInfo.keyframesIndex=null,this._mediaInfo.segments=[],this._mediaInfo.segmentCount=this._mediaDataSource.segments.length,Object.setPrototypeOf(this._mediaInfo,a.Z.prototype));var i=Object.assign({},e);Object.setPrototypeOf(i,a.Z.prototype),this._mediaInfo.segments[this._currentSegmentIndex]=i,this._reportSegmentMediaInfo(this._currentSegmentIndex),null!=this._pendingSeekTime&&Promise.resolve().then(function(){var e=t._pendingSeekTime;t._pendingSeekTime=null,t.seek(e)})},e.prototype._onMetaDataArrived=function(e){this._emitter.emit(L.Z.METADATA_ARRIVED,e)},e.prototype._onScriptDataArrived=function(e){this._emitter.emit(L.Z.SCRIPTDATA_ARRIVED,e)},e.prototype._onIOSeeked=function(){this._remuxer.insertDiscontinuity()},e.prototype._onIOComplete=function(e){var t=e+1;t<this._mediaDataSource.segments.length?(this._internalAbort(),this._remuxer.flushStashedSamples(),this._loadSegment(t)):(this._remuxer.flushStashedSamples(),this._emitter.emit(L.Z.LOADING_COMPLETE),this._disableStatisticsReporter())},e.prototype._onIORedirect=function(e){var t=this._ioctl.extraData;this._mediaDataSource.segments[t].redirectedURL=e},e.prototype._onIORecoveredEarlyEof=function(){this._emitter.emit(L.Z.RECOVERED_EARLY_EOF)},e.prototype._onIOException=function(e,t){s.Z.e(this.TAG,"IOException: type="+e+", code="+t.code+", msg="+t.msg),this._emitter.emit(L.Z.IO_ERROR,e,t),this._disableStatisticsReporter()},e.prototype._onDemuxException=function(e,t){s.Z.e(this.TAG,"DemuxException: type="+e+", info="+t),this._emitter.emit(L.Z.DEMUX_ERROR,e,t)},e.prototype._onRemuxerInitSegmentArrival=function(e,t){this._emitter.emit(L.Z.INIT_SEGMENT,e,t)},e.prototype._onRemuxerMediaSegmentArrival=function(e,t){if(null==this._pendingSeekTime&&(this._emitter.emit(L.Z.MEDIA_SEGMENT,e,t),null!=this._pendingResolveSeekPoint&&"video"===e)){var i=t.info.syncPoints,n=this._pendingResolveSeekPoint;this._pendingResolveSeekPoint=null,o.Z.safari&&i.length>0&&i[0].originalDts===n&&(n=i[0].pts),this._emitter.emit(L.Z.RECOMMEND_SEEKPOINT,n)}},e.prototype._enableStatisticsReporter=function(){null==this._statisticsReporter&&(this._statisticsReporter=self.setInterval(this._reportStatisticsInfo.bind(this),this._config.statisticsInfoReportInterval))},e.prototype._disableStatisticsReporter=function(){this._statisticsReporter&&(self.clearInterval(this._statisticsReporter),this._statisticsReporter=null)},e.prototype._reportSegmentMediaInfo=function(e){var t=this._mediaInfo.segments[e],i=Object.assign({},t);i.duration=this._mediaInfo.duration,i.segmentCount=this._mediaInfo.segmentCount,delete i.segments,delete i.keyframesIndex,this._emitter.emit(L.Z.MEDIA_INFO,i)},e.prototype._reportStatisticsInfo=function(){var e={};e.url=this._ioctl.currentURL,e.hasRedirect=this._ioctl.hasRedirect,e.hasRedirect&&(e.redirectedURL=this._ioctl.currentRedirectedURL),e.speed=this._ioctl.currentSpeed,e.loaderType=this._ioctl.loaderType,e.currentSegmentIndex=this._currentSegmentIndex,e.totalSegmentCount=this._mediaDataSource.segments.length,this._emitter.emit(L.Z.STATISTICS_INFO,e)},e}()},257:function(e,t){"use strict";t.Z={IO_ERROR:"io_error",DEMUX_ERROR:"demux_error",INIT_SEGMENT:"init_segment",MEDIA_SEGMENT:"media_segment",LOADING_COMPLETE:"loading_complete",RECOVERED_EARLY_EOF:"recovered_early_eof",MEDIA_INFO:"media_info",METADATA_ARRIVED:"metadata_arrived",SCRIPTDATA_ARRIVED:"scriptdata_arrived",STATISTICS_INFO:"statistics_info",RECOMMEND_SEEKPOINT:"recommend_seekpoint"}},82:function(e,t,i){"use strict";i(846),i(219),i(949),i(257)},600:function(e,t){"use strict";t.Z={OK:"OK",FORMAT_ERROR:"FormatError",FORMAT_UNSUPPORTED:"FormatUnsupported",CODEC_UNSUPPORTED:"CodecUnsupported"}},60:function(e,t,i){"use strict";i.d(t,{default:function(){return B}});var n=i(219),r=i(191),s={enableWorker:!1,enableStashBuffer:!0,stashInitialSize:void 0,isLive:!1,lazyLoad:!0,lazyLoadMaxDuration:180,lazyLoadRecoverDuration:30,deferLoadAfterSourceOpen:!0,autoCleanupMaxBackwardDuration:180,autoCleanupMinBackwardDuration:120,statisticsInfoReportInterval:600,fixAudioTimestampGap:!0,accurateSeek:!1,seekType:"range",seekParamStart:"bstart",seekParamEnd:"bend",rangeLoadZeroStart:!1,customSeekHandler:void 0,reuseRedirectedURL:!1,headers:void 0,customLoader:void 0};function o(){return Object.assign({},s)}var a=function(){function e(){}return e.supportMSEH264Playback=function(){return window.MediaSource&&window.MediaSource.isTypeSupported('video/mp4; codecs="avc1.42E01E,mp4a.40.2"')},e.supportNetworkStreamIO=function(){var e=new r.Z({},o()),t=e.loaderType;return e.destroy(),"fetch-stream-loader"==t||"xhr-moz-chunked-loader"==t},e.getNetworkLoaderTypeName=function(){var e=new r.Z({},o()),t=e.loaderType;return e.destroy(),t},e.supportNativeMediaPlayback=function(t){null==e.videoElement&&(e.videoElement=window.document.createElement("video"));var i=e.videoElement.canPlayType(t);return"probably"===i||"maybe"==i},e.getFeatureList=function(){var t={mseFlvPlayback:!1,mseLiveFlvPlayback:!1,networkStreamIO:!1,networkLoaderName:"",nativeMP4H264Playback:!1,nativeWebmVP8Playback:!1,nativeWebmVP9Playback:!1};return t.mseFlvPlayback=e.supportMSEH264Playback(),t.networkStreamIO=e.supportNetworkStreamIO(),t.networkLoaderName=e.getNetworkLoaderTypeName(),t.mseLiveFlvPlayback=t.mseFlvPlayback&&t.networkStreamIO,t.nativeMP4H264Playback=e.supportNativeMediaPlayback('video/mp4; codecs="avc1.42001E, mp4a.40.2"'),t.nativeWebmVP8Playback=e.supportNativeMediaPlayback('video/webm; codecs="vp8.0, vorbis"'),t.nativeWebmVP9Playback=e.supportNativeMediaPlayback('video/webm; codecs="vp9"'),t},e}(),h=i(939),u=i(716),d=i.n(u),l=i(300),c=i(538),_={ERROR:"error",LOADING_COMPLETE:"loading_complete",RECOVERED_EARLY_EOF:"recovered_early_eof",MEDIA_INFO:"media_info",METADATA_ARRIVED:"metadata_arrived",SCRIPTDATA_ARRIVED:"scriptdata_arrived",STATISTICS_INFO:"statistics_info"},f=i(397),p=i.n(f),m=i(846),g=i(949),v=i(257),y=i(118),b=function(){function e(e,t){if(this.TAG="Transmuxer",this._emitter=new(d()),t.enableWorker&&"undefined"!=typeof Worker)try{this._worker=p()(82),this._workerDestroying=!1,this._worker.addEventListener("message",this._onWorkerMessage.bind(this)),this._worker.postMessage({cmd:"init",param:[e,t]}),this.e={onLoggingConfigChanged:this._onLoggingConfigChanged.bind(this)},m.Z.registerListener(this.e.onLoggingConfigChanged),this._worker.postMessage({cmd:"logging_config",param:m.Z.getConfig()})}catch(i){l.Z.e(this.TAG,"Error while initialize transmuxing worker, fallback to inline transmuxing"),this._worker=null,this._controller=new g.Z(e,t)}else this._controller=new g.Z(e,t);if(this._controller){var i=this._controller;i.on(v.Z.IO_ERROR,this._onIOError.bind(this)),i.on(v.Z.DEMUX_ERROR,this._onDemuxError.bind(this)),i.on(v.Z.INIT_SEGMENT,this._onInitSegment.bind(this)),i.on(v.Z.MEDIA_SEGMENT,this._onMediaSegment.bind(this)),i.on(v.Z.LOADING_COMPLETE,this._onLoadingComplete.bind(this)),i.on(v.Z.RECOVERED_EARLY_EOF,this._onRecoveredEarlyEof.bind(this)),i.on(v.Z.MEDIA_INFO,this._onMediaInfo.bind(this)),i.on(v.Z.METADATA_ARRIVED,this._onMetaDataArrived.bind(this)),i.on(v.Z.SCRIPTDATA_ARRIVED,this._onScriptDataArrived.bind(this)),i.on(v.Z.STATISTICS_INFO,this._onStatisticsInfo.bind(this)),i.on(v.Z.RECOMMEND_SEEKPOINT,this._onRecommendSeekpoint.bind(this))}}return e.prototype.destroy=function(){this._worker?this._workerDestroying||(this._workerDestroying=!0,this._worker.postMessage({cmd:"destroy"}),m.Z.removeListener(this.e.onLoggingConfigChanged),this.e=null):(this._controller.destroy(),this._controller=null),this._emitter.removeAllListeners(),this._emitter=null},e.prototype.on=function(e,t){this._emitter.addListener(e,t)},e.prototype.off=function(e,t){this._emitter.removeListener(e,t)},e.prototype.hasWorker=function(){return null!=this._worker},e.prototype.open=function(){this._worker?this._worker.postMessage({cmd:"start"}):this._controller.start()},e.prototype.close=function(){this._worker?this._worker.postMessage({cmd:"stop"}):this._controller.stop()},e.prototype.seek=function(e){this._worker?this._worker.postMessage({cmd:"seek",param:e}):this._controller.seek(e)},e.prototype.pause=function(){this._worker?this._worker.postMessage({cmd:"pause"}):this._controller.pause()},e.prototype.resume=function(){this._worker?this._worker.postMessage({cmd:"resume"}):this._controller.resume()},e.prototype._onInitSegment=function(e,t){var i=this;Promise.resolve().then(function(){i._emitter.emit(v.Z.INIT_SEGMENT,e,t)})},e.prototype._onMediaSegment=function(e,t){var i=this;Promise.resolve().then(function(){i._emitter.emit(v.Z.MEDIA_SEGMENT,e,t)})},e.prototype._onLoadingComplete=function(){var e=this;Promise.resolve().then(function(){e._emitter.emit(v.Z.LOADING_COMPLETE)})},e.prototype._onRecoveredEarlyEof=function(){var e=this;Promise.resolve().then(function(){e._emitter.emit(v.Z.RECOVERED_EARLY_EOF)})},e.prototype._onMediaInfo=function(e){var t=this;Promise.resolve().then(function(){t._emitter.emit(v.Z.MEDIA_INFO,e)})},e.prototype._onMetaDataArrived=function(e){var t=this;Promise.resolve().then(function(){t._emitter.emit(v.Z.METADATA_ARRIVED,e)})},e.prototype._onScriptDataArrived=function(e){var t=this;Promise.resolve().then(function(){t._emitter.emit(v.Z.SCRIPTDATA_ARRIVED,e)})},e.prototype._onStatisticsInfo=function(e){var t=this;Promise.resolve().then(function(){t._emitter.emit(v.Z.STATISTICS_INFO,e)})},e.prototype._onIOError=function(e,t){var i=this;Promise.resolve().then(function(){i._emitter.emit(v.Z.IO_ERROR,e,t)})},e.prototype._onDemuxError=function(e,t){var i=this;Promise.resolve().then(function(){i._emitter.emit(v.Z.DEMUX_ERROR,e,t)})},e.prototype._onRecommendSeekpoint=function(e){var t=this;Promise.resolve().then(function(){t._emitter.emit(v.Z.RECOMMEND_SEEKPOINT,e)})},e.prototype._onLoggingConfigChanged=function(e){this._worker&&this._worker.postMessage({cmd:"logging_config",param:e})},e.prototype._onWorkerMessage=function(e){var t=e.data,i=t.data;if("destroyed"===t.msg||this._workerDestroying)return this._workerDestroying=!1,this._worker.terminate(),void(this._worker=null);switch(t.msg){case v.Z.INIT_SEGMENT:case v.Z.MEDIA_SEGMENT:this._emitter.emit(t.msg,i.type,i.data);break;case v.Z.LOADING_COMPLETE:case v.Z.RECOVERED_EARLY_EOF:this._emitter.emit(t.msg);break;case v.Z.MEDIA_INFO:Object.setPrototypeOf(i,y.Z.prototype),this._emitter.emit(t.msg,i);break;case v.Z.METADATA_ARRIVED:case v.Z.SCRIPTDATA_ARRIVED:case v.Z.STATISTICS_INFO:this._emitter.emit(t.msg,i);break;case v.Z.IO_ERROR:case v.Z.DEMUX_ERROR:this._emitter.emit(t.msg,i.type,i.info);break;case v.Z.RECOMMEND_SEEKPOINT:this._emitter.emit(t.msg,i);break;case"logcat_callback":l.Z.emitter.emit("log",i.type,i.logcat)}},e}(),E="error",S="source_open",A="update_end",L="buffer_full",R=i(51),w=i(29),O=function(){function e(e){this.TAG="MSEController",this._config=e,this._emitter=new(d()),this._config.isLive&&null==this._config.autoCleanupSourceBuffer&&(this._config.autoCleanupSourceBuffer=!0),this.e={onSourceOpen:this._onSourceOpen.bind(this),onSourceEnded:this._onSourceEnded.bind(this),onSourceClose:this._onSourceClose.bind(this),onSourceBufferError:this._onSourceBufferError.bind(this),onSourceBufferUpdateEnd:this._onSourceBufferUpdateEnd.bind(this)},this._mediaSource=null,this._mediaSourceObjectURL=null,this._mediaElement=null,this._isBufferFull=!1,this._hasPendingEos=!1,this._requireSetMediaDuration=!1,this._pendingMediaDuration=0,this._pendingSourceBufferInit=[],this._mimeTypes={video:null,audio:null},this._sourceBuffers={video:null,audio:null},this._lastInitSegments={video:null,audio:null},this._pendingSegments={video:[],audio:[]},this._pendingRemoveRanges={video:[],audio:[]},this._idrList=new R.Vn}return e.prototype.destroy=function(){(this._mediaElement||this._mediaSource)&&this.detachMediaElement(),this.e=null,this._emitter.removeAllListeners(),this._emitter=null},e.prototype.on=function(e,t){this._emitter.addListener(e,t)},e.prototype.off=function(e,t){this._emitter.removeListener(e,t)},e.prototype.attachMediaElement=function(e){if(this._mediaSource)throw new w.rT("MediaSource has been attached to an HTMLMediaElement!");var t=this._mediaSource=new window.MediaSource;t.addEventListener("sourceopen",this.e.onSourceOpen),t.addEventListener("sourceended",this.e.onSourceEnded),t.addEventListener("sourceclose",this.e.onSourceClose),this._mediaElement=e,this._mediaSourceObjectURL=window.URL.createObjectURL(this._mediaSource),e.src=this._mediaSourceObjectURL},e.prototype.detachMediaElement=function(){if(this._mediaSource){var e=this._mediaSource;for(var t in this._sourceBuffers){var i=this._pendingSegments[t];i.splice(0,i.length),this._pendingSegments[t]=null,this._pendingRemoveRanges[t]=null,this._lastInitSegments[t]=null;var n=this._sourceBuffers[t];if(n){if("closed"!==e.readyState){try{e.removeSourceBuffer(n)}catch(e){l.Z.e(this.TAG,e.message)}n.removeEventListener("error",this.e.onSourceBufferError),n.removeEventListener("updateend",this.e.onSourceBufferUpdateEnd)}this._mimeTypes[t]=null,this._sourceBuffers[t]=null}}if("open"===e.readyState)try{e.endOfStream()}catch(e){l.Z.e(this.TAG,e.message)}e.removeEventListener("sourceopen",this.e.onSourceOpen),e.removeEventListener("sourceended",this.e.onSourceEnded),e.removeEventListener("sourceclose",this.e.onSourceClose),this._pendingSourceBufferInit=[],this._isBufferFull=!1,this._idrList.clear(),this._mediaSource=null}this._mediaElement&&(this._mediaElement.src="",this._mediaElement.removeAttribute("src"),this._mediaElement=null),this._mediaSourceObjectURL&&(window.URL.revokeObjectURL(this._mediaSourceObjectURL),this._mediaSourceObjectURL=null)},e.prototype.appendInitSegment=function(e,t){if(!this._mediaSource||"open"!==this._mediaSource.readyState)return this._pendingSourceBufferInit.push(e),void this._pendingSegments[e.type].push(e);var i=e,n=""+i.container;i.codec&&i.codec.length>0&&(n+=";codecs="+i.codec);var r=!1;if(l.Z.v(this.TAG,"Received Initialization Segment, mimeType: "+n),this._lastInitSegments[i.type]=i,n!==this._mimeTypes[i.type]){if(this._mimeTypes[i.type])l.Z.v(this.TAG,"Notice: "+i.type+" mimeType changed, origin: "+this._mimeTypes[i.type]+", target: "+n);else{r=!0;try{var s=this._sourceBuffers[i.type]=this._mediaSource.addSourceBuffer(n);s.addEventListener("error",this.e.onSourceBufferError),s.addEventListener("updateend",this.e.onSourceBufferUpdateEnd)}catch(e){return l.Z.e(this.TAG,e.message),void this._emitter.emit(E,{code:e.code,msg:e.message})}}this._mimeTypes[i.type]=n}t||this._pendingSegments[i.type].push(i),r||this._sourceBuffers[i.type]&&!this._sourceBuffers[i.type].updating&&this._doAppendSegments(),c.Z.safari&&"audio/mpeg"===i.container&&i.mediaDuration>0&&(this._requireSetMediaDuration=!0,this._pendingMediaDuration=i.mediaDuration/1e3,this._updateMediaSourceDuration())},e.prototype.appendMediaSegment=function(e){var t=e;this._pendingSegments[t.type].push(t),this._config.autoCleanupSourceBuffer&&this._needCleanupSourceBuffer()&&this._doCleanupSourceBuffer();var i=this._sourceBuffers[t.type];!i||i.updating||this._hasPendingRemoveRanges()||this._doAppendSegments()},e.prototype.seek=function(e){for(var t in this._sourceBuffers)if(this._sourceBuffers[t]){var i=this._sourceBuffers[t];if("open"===this._mediaSource.readyState)try{i.abort()}catch(e){l.Z.e(this.TAG,e.message)}this._idrList.clear();var n=this._pendingSegments[t];if(n.splice(0,n.length),"closed"!==this._mediaSource.readyState){for(var r=0;r<i.buffered.length;r++){var s=i.buffered.start(r),o=i.buffered.end(r);this._pendingRemoveRanges[t].push({start:s,end:o})}if(i.updating||this._doRemoveRanges(),c.Z.safari){var a=this._lastInitSegments[t];a&&(this._pendingSegments[t].push(a),i.updating||this._doAppendSegments())}}}},e.prototype.endOfStream=function(){var e=this._mediaSource,t=this._sourceBuffers;e&&"open"===e.readyState?t.video&&t.video.updating||t.audio&&t.audio.updating?this._hasPendingEos=!0:(this._hasPendingEos=!1,e.endOfStream()):e&&"closed"===e.readyState&&this._hasPendingSegments()&&(this._hasPendingEos=!0)},e.prototype.getNearestKeyframe=function(e){return this._idrList.getLastSyncPointBeforeDts(e)},e.prototype._needCleanupSourceBuffer=function(){if(!this._config.autoCleanupSourceBuffer)return!1;var e=this._mediaElement.currentTime;for(var t in this._sourceBuffers){var i=this._sourceBuffers[t];if(i){var n=i.buffered;if(n.length>=1&&e-n.start(0)>=this._config.autoCleanupMaxBackwardDuration)return!0}}return!1},e.prototype._doCleanupSourceBuffer=function(){var e=this._mediaElement.currentTime;for(var t in this._sourceBuffers){var i=this._sourceBuffers[t];if(i){for(var n=i.buffered,r=!1,s=0;s<n.length;s++){var o=n.start(s),a=n.end(s);if(o<=e&&e<a+3){if(e-o>=this._config.autoCleanupMaxBackwardDuration){r=!0;var h=e-this._config.autoCleanupMinBackwardDuration;this._pendingRemoveRanges[t].push({start:o,end:h})}}else a<e&&(r=!0,this._pendingRemoveRanges[t].push({start:o,end:a}))}r&&!i.updating&&this._doRemoveRanges()}}},e.prototype._updateMediaSourceDuration=function(){var e=this._sourceBuffers;if(0!==this._mediaElement.readyState&&"open"===this._mediaSource.readyState&&!(e.video&&e.video.updating||e.audio&&e.audio.updating)){var t=this._mediaSource.duration,i=this._pendingMediaDuration;i>0&&(isNaN(t)||i>t)&&(l.Z.v(this.TAG,"Update MediaSource duration from "+t+" to "+i),this._mediaSource.duration=i),this._requireSetMediaDuration=!1,this._pendingMediaDuration=0}},e.prototype._doRemoveRanges=function(){for(var e in this._pendingRemoveRanges)if(this._sourceBuffers[e]&&!this._sourceBuffers[e].updating)for(var t=this._sourceBuffers[e],i=this._pendingRemoveRanges[e];i.length&&!t.updating;){var n=i.shift();t.remove(n.start,n.end)}},e.prototype._doAppendSegments=function(){var e=this._pendingSegments;for(var t in e)if(this._sourceBuffers[t]&&!this._sourceBuffers[t].updating&&e[t].length>0){var i=e[t].shift();if(i.timestampOffset){var n=this._sourceBuffers[t].timestampOffset,r=i.timestampOffset/1e3;Math.abs(n-r)>.1&&(l.Z.v(this.TAG,"Update MPEG audio timestampOffset from "+n+" to "+r),this._sourceBuffers[t].timestampOffset=r),delete i.timestampOffset}if(!i.data||0===i.data.byteLength)continue;try{this._sourceBuffers[t].appendBuffer(i.data),this._isBufferFull=!1,"video"===t&&i.hasOwnProperty("info")&&this._idrList.appendArray(i.info.syncPoints)}catch(e){this._pendingSegments[t].unshift(i),22===e.code?(this._isBufferFull||this._emitter.emit(L),this._isBufferFull=!0):(l.Z.e(this.TAG,e.message),this._emitter.emit(E,{code:e.code,msg:e.message}))}}},e.prototype._onSourceOpen=function(){if(l.Z.v(this.TAG,"MediaSource onSourceOpen"),this._mediaSource.removeEventListener("sourceopen",this.e.onSourceOpen),this._pendingSourceBufferInit.length>0)for(var e=this._pendingSourceBufferInit;e.length;){var t=e.shift();this.appendInitSegment(t,!0)}this._hasPendingSegments()&&this._doAppendSegments(),this._emitter.emit(S)},e.prototype._onSourceEnded=function(){l.Z.v(this.TAG,"MediaSource onSourceEnded")},e.prototype._onSourceClose=function(){l.Z.v(this.TAG,"MediaSource onSourceClose"),this._mediaSource&&null!=this.e&&(this._mediaSource.removeEventListener("sourceopen",this.e.onSourceOpen),this._mediaSource.removeEventListener("sourceended",this.e.onSourceEnded),this._mediaSource.removeEventListener("sourceclose",this.e.onSourceClose))},e.prototype._hasPendingSegments=function(){var e=this._pendingSegments;return e.video.length>0||e.audio.length>0},e.prototype._hasPendingRemoveRanges=function(){var e=this._pendingRemoveRanges;return e.video.length>0||e.audio.length>0},e.prototype._onSourceBufferUpdateEnd=function(){this._requireSetMediaDuration?this._updateMediaSourceDuration():this._hasPendingRemoveRanges()?this._doRemoveRanges():this._hasPendingSegments()?this._doAppendSegments():this._hasPendingEos&&this.endOfStream(),this._emitter.emit(A)},e.prototype._onSourceBufferError=function(e){l.Z.e(this.TAG,"SourceBuffer Error: "+e)},e}(),T=i(600),C={NETWORK_ERROR:"NetworkError",MEDIA_ERROR:"MediaError",OTHER_ERROR:"OtherError"},k={NETWORK_EXCEPTION:h.nm.EXCEPTION,NETWORK_STATUS_CODE_INVALID:h.nm.HTTP_STATUS_CODE_INVALID,NETWORK_TIMEOUT:h.nm.CONNECTING_TIMEOUT,NETWORK_UNRECOVERABLE_EARLY_EOF:h.nm.UNRECOVERABLE_EARLY_EOF,MEDIA_MSE_ERROR:"MediaMSEError",MEDIA_FORMAT_ERROR:T.Z.FORMAT_ERROR,MEDIA_FORMAT_UNSUPPORTED:T.Z.FORMAT_UNSUPPORTED,MEDIA_CODEC_UNSUPPORTED:T.Z.CODEC_UNSUPPORTED},D=function(){function e(e,t){if(this.TAG="FlvPlayer",this._type="FlvPlayer",this._emitter=new(d()),this._config=o(),"object"==typeof t&&Object.assign(this._config,t),"flv"!==e.type.toLowerCase())throw new w.OC("FlvPlayer requires an flv MediaDataSource input!");!0===e.isLive&&(this._config.isLive=!0),this.e={onvLoadedMetadata:this._onvLoadedMetadata.bind(this),onvSeeking:this._onvSeeking.bind(this),onvCanPlay:this._onvCanPlay.bind(this),onvStalled:this._onvStalled.bind(this),onvProgress:this._onvProgress.bind(this)},self.performance&&self.performance.now?this._now=self.performance.now.bind(self.performance):this._now=Date.now,this._pendingSeekTime=null,this._requestSetTime=!1,this._seekpointRecord=null,this._progressChecker=null,this._mediaDataSource=e,this._mediaElement=null,this._msectl=null,this._transmuxer=null,this._mseSourceOpened=!1,this._hasPendingLoad=!1,this._receivedCanPlay=!1,this._mediaInfo=null,this._statisticsInfo=null;var i=c.Z.chrome&&(c.Z.version.major<50||50===c.Z.version.major&&c.Z.version.build<2661);this._alwaysSeekKeyframe=!!(i||c.Z.msedge||c.Z.msie),this._alwaysSeekKeyframe&&(this._config.accurateSeek=!1)}return e.prototype.destroy=function(){null!=this._progressChecker&&(window.clearInterval(this._progressChecker),this._progressChecker=null),this._transmuxer&&this.unload(),this._mediaElement&&this.detachMediaElement(),this.e=null,this._mediaDataSource=null,this._emitter.removeAllListeners(),this._emitter=null},e.prototype.on=function(e,t){var i=this;e===_.MEDIA_INFO?null!=this._mediaInfo&&Promise.resolve().then(function(){i._emitter.emit(_.MEDIA_INFO,i.mediaInfo)}):e===_.STATISTICS_INFO&&null!=this._statisticsInfo&&Promise.resolve().then(function(){i._emitter.emit(_.STATISTICS_INFO,i.statisticsInfo)}),this._emitter.addListener(e,t)},e.prototype.off=function(e,t){this._emitter.removeListener(e,t)},e.prototype.attachMediaElement=function(e){var t=this;if(this._mediaElement=e,e.addEventListener("loadedmetadata",this.e.onvLoadedMetadata),e.addEventListener("seeking",this.e.onvSeeking),e.addEventListener("canplay",this.e.onvCanPlay),e.addEventListener("stalled",this.e.onvStalled),e.addEventListener("progress",this.e.onvProgress),this._msectl=new O(this._config),this._msectl.on(A,this._onmseUpdateEnd.bind(this)),this._msectl.on(L,this._onmseBufferFull.bind(this)),this._msectl.on(S,function(){t._mseSourceOpened=!0,t._hasPendingLoad&&(t._hasPendingLoad=!1,t.load())}),this._msectl.on(E,function(e){t._emitter.emit(_.ERROR,C.MEDIA_ERROR,k.MEDIA_MSE_ERROR,e)}),this._msectl.attachMediaElement(e),null!=this._pendingSeekTime)try{e.currentTime=this._pendingSeekTime,this._pendingSeekTime=null}catch(e){}},e.prototype.detachMediaElement=function(){this._mediaElement&&(this._msectl.detachMediaElement(),this._mediaElement.removeEventListener("loadedmetadata",this.e.onvLoadedMetadata),this._mediaElement.removeEventListener("seeking",this.e.onvSeeking),this._mediaElement.removeEventListener("canplay",this.e.onvCanPlay),this._mediaElement.removeEventListener("stalled",this.e.onvStalled),this._mediaElement.removeEventListener("progress",this.e.onvProgress),this._mediaElement=null),this._msectl&&(this._msectl.destroy(),this._msectl=null)},e.prototype.load=function(){var e=this;if(!this._mediaElement)throw new w.rT("HTMLMediaElement must be attached before load()!");if(this._transmuxer)throw new w.rT("FlvPlayer.load() has been called, please call unload() first!");this._hasPendingLoad||(this._config.deferLoadAfterSourceOpen&&!1===this._mseSourceOpened?this._hasPendingLoad=!0:(this._mediaElement.readyState>0&&(this._requestSetTime=!0,this._mediaElement.currentTime=0),this._transmuxer=new b(this._mediaDataSource,this._config),this._transmuxer.on(v.Z.INIT_SEGMENT,function(t,i){e._msectl.appendInitSegment(i)}),this._transmuxer.on(v.Z.MEDIA_SEGMENT,function(t,i){if(e._msectl.appendMediaSegment(i),e._config.lazyLoad&&!e._config.isLive){var n=e._mediaElement.currentTime;i.info.endDts>=1e3*(n+e._config.lazyLoadMaxDuration)&&null==e._progressChecker&&(l.Z.v(e.TAG,"Maximum buffering duration exceeded, suspend transmuxing task"),e._suspendTransmuxer())}}),this._transmuxer.on(v.Z.LOADING_COMPLETE,function(){e._msectl.endOfStream(),e._emitter.emit(_.LOADING_COMPLETE)}),this._transmuxer.on(v.Z.RECOVERED_EARLY_EOF,function(){e._emitter.emit(_.RECOVERED_EARLY_EOF)}),this._transmuxer.on(v.Z.IO_ERROR,function(t,i){e._emitter.emit(_.ERROR,C.NETWORK_ERROR,t,i)}),this._transmuxer.on(v.Z.DEMUX_ERROR,function(t,i){e._emitter.emit(_.ERROR,C.MEDIA_ERROR,t,{code:-1,msg:i})}),this._transmuxer.on(v.Z.MEDIA_INFO,function(t){e._mediaInfo=t,e._emitter.emit(_.MEDIA_INFO,Object.assign({},t))}),this._transmuxer.on(v.Z.METADATA_ARRIVED,function(t){e._emitter.emit(_.METADATA_ARRIVED,t)}),this._transmuxer.on(v.Z.SCRIPTDATA_ARRIVED,function(t){e._emitter.emit(_.SCRIPTDATA_ARRIVED,t)}),this._transmuxer.on(v.Z.STATISTICS_INFO,function(t){e._statisticsInfo=e._fillStatisticsInfo(t),e._emitter.emit(_.STATISTICS_INFO,Object.assign({},e._statisticsInfo))}),this._transmuxer.on(v.Z.RECOMMEND_SEEKPOINT,function(t){e._mediaElement&&!e._config.accurateSeek&&(e._requestSetTime=!0,e._mediaElement.currentTime=t/1e3)}),this._transmuxer.open()))},e.prototype.unload=function(){this._mediaElement&&this._mediaElement.pause(),this._msectl&&this._msectl.seek(0),this._transmuxer&&(this._transmuxer.close(),this._transmuxer.destroy(),this._transmuxer=null)},e.prototype.play=function(){return this._mediaElement.play()},e.prototype.pause=function(){this._mediaElement.pause()},Object.defineProperty(e.prototype,"type",{get:function(){return this._type},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"buffered",{get:function(){return this._mediaElement.buffered},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"duration",{get:function(){return this._mediaElement.duration},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"volume",{get:function(){return this._mediaElement.volume},set:function(e){this._mediaElement.volume=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"muted",{get:function(){return this._mediaElement.muted},set:function(e){this._mediaElement.muted=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"currentTime",{get:function(){return this._mediaElement?this._mediaElement.currentTime:0},set:function(e){this._mediaElement?this._internalSeek(e):this._pendingSeekTime=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"mediaInfo",{get:function(){return Object.assign({},this._mediaInfo)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"statisticsInfo",{get:function(){return null==this._statisticsInfo&&(this._statisticsInfo={}),this._statisticsInfo=this._fillStatisticsInfo(this._statisticsInfo),Object.assign({},this._statisticsInfo)},enumerable:!1,configurable:!0}),e.prototype._fillStatisticsInfo=function(e){if(e.playerType=this._type,!(this._mediaElement instanceof HTMLVideoElement))return e;var t=!0,i=0,n=0;if(this._mediaElement.getVideoPlaybackQuality){var r=this._mediaElement.getVideoPlaybackQuality();i=r.totalVideoFrames,n=r.droppedVideoFrames}else null!=this._mediaElement.webkitDecodedFrameCount?(i=this._mediaElement.webkitDecodedFrameCount,n=this._mediaElement.webkitDroppedFrameCount):t=!1;return t&&(e.decodedFrames=i,e.droppedFrames=n),e},e.prototype._onmseUpdateEnd=function(){if(this._config.lazyLoad&&!this._config.isLive){for(var e=this._mediaElement.buffered,t=this._mediaElement.currentTime,i=0,n=0;n<e.length;n++){var r=e.start(n),s=e.end(n);if(r<=t&&t<s){i=s;break}}i>=t+this._config.lazyLoadMaxDuration&&null==this._progressChecker&&(l.Z.v(this.TAG,"Maximum buffering duration exceeded, suspend transmuxing task"),this._suspendTransmuxer())}},e.prototype._onmseBufferFull=function(){l.Z.v(this.TAG,"MSE SourceBuffer is full, suspend transmuxing task"),null==this._progressChecker&&this._suspendTransmuxer()},e.prototype._suspendTransmuxer=function(){this._transmuxer&&(this._transmuxer.pause(),null==this._progressChecker&&(this._progressChecker=window.setInterval(this._checkProgressAndResume.bind(this),1e3)))},e.prototype._checkProgressAndResume=function(){for(var e=this._mediaElement.currentTime,t=this._mediaElement.buffered,i=!1,n=0;n<t.length;n++){var r=t.start(n),s=t.end(n);if(e>=r&&e<s){e>=s-this._config.lazyLoadRecoverDuration&&(i=!0);break}}i&&(window.clearInterval(this._progressChecker),this._progressChecker=null,i&&(l.Z.v(this.TAG,"Continue loading from paused position"),this._transmuxer.resume()))},e.prototype._isTimepointBuffered=function(e){for(var t=this._mediaElement.buffered,i=0;i<t.length;i++){var n=t.start(i),r=t.end(i);if(e>=n&&e<r)return!0}return!1},e.prototype._internalSeek=function(e){var t=this._isTimepointBuffered(e),i=!1,n=0;if(e<1&&this._mediaElement.buffered.length>0){var r=this._mediaElement.buffered.start(0);(r<1&&e<r||c.Z.safari)&&(i=!0,n=c.Z.safari?.1:r)}if(i)this._requestSetTime=!0,this._mediaElement.currentTime=n;else if(t){if(this._alwaysSeekKeyframe){var s=this._msectl.getNearestKeyframe(Math.floor(1e3*e));this._requestSetTime=!0,this._mediaElement.currentTime=null!=s?s.dts/1e3:e}else this._requestSetTime=!0,this._mediaElement.currentTime=e;null!=this._progressChecker&&this._checkProgressAndResume()}else null!=this._progressChecker&&(window.clearInterval(this._progressChecker),this._progressChecker=null),this._msectl.seek(e),this._transmuxer.seek(Math.floor(1e3*e)),this._config.accurateSeek&&(this._requestSetTime=!0,this._mediaElement.currentTime=e)},e.prototype._checkAndApplyUnbufferedSeekpoint=function(){if(this._seekpointRecord)if(this._seekpointRecord.recordTime<=this._now()-100){var e=this._mediaElement.currentTime;this._seekpointRecord=null,this._isTimepointBuffered(e)||(null!=this._progressChecker&&(window.clearTimeout(this._progressChecker),this._progressChecker=null),this._msectl.seek(e),this._transmuxer.seek(Math.floor(1e3*e)),this._config.accurateSeek&&(this._requestSetTime=!0,this._mediaElement.currentTime=e))}else window.setTimeout(this._checkAndApplyUnbufferedSeekpoint.bind(this),50)},e.prototype._checkAndResumeStuckPlayback=function(e){var t=this._mediaElement;if(e||!this._receivedCanPlay||t.readyState<2){var i=t.buffered;i.length>0&&t.currentTime<i.start(0)&&(l.Z.w(this.TAG,"Playback seems stuck at "+t.currentTime+", seek to "+i.start(0)),this._requestSetTime=!0,this._mediaElement.currentTime=i.start(0),this._mediaElement.removeEventListener("progress",this.e.onvProgress))}else this._mediaElement.removeEventListener("progress",this.e.onvProgress)},e.prototype._onvLoadedMetadata=function(e){null!=this._pendingSeekTime&&(this._mediaElement.currentTime=this._pendingSeekTime,this._pendingSeekTime=null)},e.prototype._onvSeeking=function(e){var t=this._mediaElement.currentTime,i=this._mediaElement.buffered;if(this._requestSetTime)this._requestSetTime=!1;else{if(t<1&&i.length>0){var n=i.start(0);if(n<1&&t<n||c.Z.safari)return this._requestSetTime=!0,void(this._mediaElement.currentTime=c.Z.safari?.1:n)}if(this._isTimepointBuffered(t)){if(this._alwaysSeekKeyframe){var r=this._msectl.getNearestKeyframe(Math.floor(1e3*t));null!=r&&(this._requestSetTime=!0,this._mediaElement.currentTime=r.dts/1e3)}null!=this._progressChecker&&this._checkProgressAndResume()}else this._seekpointRecord={seekPoint:t,recordTime:this._now()},window.setTimeout(this._checkAndApplyUnbufferedSeekpoint.bind(this),50)}},e.prototype._onvCanPlay=function(e){this._receivedCanPlay=!0,this._mediaElement.removeEventListener("canplay",this.e.onvCanPlay)},e.prototype._onvStalled=function(e){this._checkAndResumeStuckPlayback(!0)},e.prototype._onvProgress=function(e){this._checkAndResumeStuckPlayback()},e}(),I=function(){function e(e,t){if(this.TAG="NativePlayer",this._type="NativePlayer",this._emitter=new(d()),this._config=o(),"object"==typeof t&&Object.assign(this._config,t),"flv"===e.type.toLowerCase())throw new w.OC("NativePlayer does't support flv MediaDataSource input!");if(e.hasOwnProperty("segments"))throw new w.OC("NativePlayer("+e.type+") doesn't support multipart playback!");this.e={onvLoadedMetadata:this._onvLoadedMetadata.bind(this)},this._pendingSeekTime=null,this._statisticsReporter=null,this._mediaDataSource=e,this._mediaElement=null}return e.prototype.destroy=function(){this._mediaElement&&(this.unload(),this.detachMediaElement()),this.e=null,this._mediaDataSource=null,this._emitter.removeAllListeners(),this._emitter=null},e.prototype.on=function(e,t){var i=this;e===_.MEDIA_INFO?null!=this._mediaElement&&0!==this._mediaElement.readyState&&Promise.resolve().then(function(){i._emitter.emit(_.MEDIA_INFO,i.mediaInfo)}):e===_.STATISTICS_INFO&&null!=this._mediaElement&&0!==this._mediaElement.readyState&&Promise.resolve().then(function(){i._emitter.emit(_.STATISTICS_INFO,i.statisticsInfo)}),this._emitter.addListener(e,t)},e.prototype.off=function(e,t){this._emitter.removeListener(e,t)},e.prototype.attachMediaElement=function(e){if(this._mediaElement=e,e.addEventListener("loadedmetadata",this.e.onvLoadedMetadata),null!=this._pendingSeekTime)try{e.currentTime=this._pendingSeekTime,this._pendingSeekTime=null}catch(e){}},e.prototype.detachMediaElement=function(){this._mediaElement&&(this._mediaElement.src="",this._mediaElement.removeAttribute("src"),this._mediaElement.removeEventListener("loadedmetadata",this.e.onvLoadedMetadata),this._mediaElement=null),null!=this._statisticsReporter&&(window.clearInterval(this._statisticsReporter),this._statisticsReporter=null)},e.prototype.load=function(){if(!this._mediaElement)throw new w.rT("HTMLMediaElement must be attached before load()!");this._mediaElement.src=this._mediaDataSource.url,this._mediaElement.readyState>0&&(this._mediaElement.currentTime=0),this._mediaElement.preload="auto",this._mediaElement.load(),this._statisticsReporter=window.setInterval(this._reportStatisticsInfo.bind(this),this._config.statisticsInfoReportInterval)},e.prototype.unload=function(){this._mediaElement&&(this._mediaElement.src="",this._mediaElement.removeAttribute("src")),null!=this._statisticsReporter&&(window.clearInterval(this._statisticsReporter),this._statisticsReporter=null)},e.prototype.play=function(){return this._mediaElement.play()},e.prototype.pause=function(){this._mediaElement.pause()},Object.defineProperty(e.prototype,"type",{get:function(){return this._type},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"buffered",{get:function(){return this._mediaElement.buffered},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"duration",{get:function(){return this._mediaElement.duration},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"volume",{get:function(){return this._mediaElement.volume},set:function(e){this._mediaElement.volume=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"muted",{get:function(){return this._mediaElement.muted},set:function(e){this._mediaElement.muted=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"currentTime",{get:function(){return this._mediaElement?this._mediaElement.currentTime:0},set:function(e){this._mediaElement?this._mediaElement.currentTime=e:this._pendingSeekTime=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"mediaInfo",{get:function(){var e={mimeType:(this._mediaElement instanceof HTMLAudioElement?"audio/":"video/")+this._mediaDataSource.type};return this._mediaElement&&(e.duration=Math.floor(1e3*this._mediaElement.duration),this._mediaElement instanceof HTMLVideoElement&&(e.width=this._mediaElement.videoWidth,e.height=this._mediaElement.videoHeight)),e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"statisticsInfo",{get:function(){var e={playerType:this._type,url:this._mediaDataSource.url};if(!(this._mediaElement instanceof HTMLVideoElement))return e;var t=!0,i=0,n=0;if(this._mediaElement.getVideoPlaybackQuality){var r=this._mediaElement.getVideoPlaybackQuality();i=r.totalVideoFrames,n=r.droppedVideoFrames}else null!=this._mediaElement.webkitDecodedFrameCount?(i=this._mediaElement.webkitDecodedFrameCount,n=this._mediaElement.webkitDroppedFrameCount):t=!1;return t&&(e.decodedFrames=i,e.droppedFrames=n),e},enumerable:!1,configurable:!0}),e.prototype._onvLoadedMetadata=function(e){null!=this._pendingSeekTime&&(this._mediaElement.currentTime=this._pendingSeekTime,this._pendingSeekTime=null),this._emitter.emit(_.MEDIA_INFO,this.mediaInfo)},e.prototype._reportStatisticsInfo=function(){this._emitter.emit(_.STATISTICS_INFO,this.statisticsInfo)},e}();n.Z.install();var M={createPlayer:function(e,t){var i=e;if(null==i||"object"!=typeof i)throw new w.OC("MediaDataSource must be an javascript object!");if(!i.hasOwnProperty("type"))throw new w.OC("MediaDataSource must has type field to indicate video file type!");return"flv"===i.type?new D(i,t):new I(i,t)},isSupported:function(){return a.supportMSEH264Playback()},getFeatureList:function(){return a.getFeatureList()}};M.BaseLoader=h.fp,M.LoaderStatus=h.GM,M.LoaderErrors=h.nm,M.Events=_,M.ErrorTypes=C,M.ErrorDetails=k,M.FlvPlayer=D,M.NativePlayer=I,M.LoggingControl=m.Z,Object.defineProperty(M,"version",{enumerable:!0,get:function(){return"1.6.2"}});var B=M},324:function(e,t,i){e.exports=i(60).default},191:function(e,t,i){"use strict";i.d(t,{Z:function(){return y}});var n,r=i(300),s=function(){function e(){this._firstCheckpoint=0,this._lastCheckpoint=0,this._intervalBytes=0,this._totalBytes=0,this._lastSecondBytes=0,self.performance&&self.performance.now?this._now=self.performance.now.bind(self.performance):this._now=Date.now}return e.prototype.reset=function(){this._firstCheckpoint=this._lastCheckpoint=0,this._totalBytes=this._intervalBytes=0,this._lastSecondBytes=0},e.prototype.addBytes=function(e){0===this._firstCheckpoint?(this._firstCheckpoint=this._now(),this._lastCheckpoint=this._firstCheckpoint,this._intervalBytes+=e,this._totalBytes+=e):this._now()-this._lastCheckpoint<1e3?(this._intervalBytes+=e,this._totalBytes+=e):(this._lastSecondBytes=this._intervalBytes,this._intervalBytes=e,this._totalBytes+=e,this._lastCheckpoint=this._now())},Object.defineProperty(e.prototype,"currentKBps",{get:function(){this.addBytes(0);var e=(this._now()-this._lastCheckpoint)/1e3;return 0==e&&(e=1),this._intervalBytes/e/1024},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"lastSecondKBps",{get:function(){return this.addBytes(0),0!==this._lastSecondBytes?this._lastSecondBytes/1024:this._now()-this._lastCheckpoint>=500?this.currentKBps:0},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"averageKBps",{get:function(){var e=(this._now()-this._firstCheckpoint)/1e3;return this._totalBytes/e/1024},enumerable:!1,configurable:!0}),e}(),o=i(939),a=i(538),h=i(29),u=(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function i(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),d=function(e){function t(t,i){var n=e.call(this,"fetch-stream-loader")||this;return n.TAG="FetchStreamLoader",n._seekHandler=t,n._config=i,n._needStash=!0,n._requestAbort=!1,n._contentLength=null,n._receivedLength=0,n}return u(t,e),t.isSupported=function(){try{var e=a.Z.msedge&&a.Z.version.minor>=15048,t=!a.Z.msedge||e;return self.fetch&&self.ReadableStream&&t}catch(e){return!1}},t.prototype.destroy=function(){this.isWorking()&&this.abort(),e.prototype.destroy.call(this)},t.prototype.open=function(e,t){var i=this;this._dataSource=e,this._range=t;var n=e.url;this._config.reuseRedirectedURL&&null!=e.redirectedURL&&(n=e.redirectedURL);var r=this._seekHandler.getConfig(n,t),s=new self.Headers;if("object"==typeof r.headers){var a=r.headers;for(var u in a)a.hasOwnProperty(u)&&s.append(u,a[u])}var d={method:"GET",headers:s,mode:"cors",cache:"default",referrerPolicy:"no-referrer-when-downgrade"};if("object"==typeof this._config.headers)for(var u in this._config.headers)s.append(u,this._config.headers[u]);!1===e.cors&&(d.mode="same-origin"),e.withCredentials&&(d.credentials="include"),e.referrerPolicy&&(d.referrerPolicy=e.referrerPolicy),self.AbortController&&(this._abortController=new self.AbortController,d.signal=this._abortController.signal),this._status=o.GM.kConnecting,self.fetch(r.url,d).then(function(e){if(i._requestAbort)return i._status=o.GM.kIdle,void e.body.cancel();if(e.ok&&e.status>=200&&e.status<=299){if(e.url!==r.url&&i._onURLRedirect){var t=i._seekHandler.removeURLParameters(e.url);i._onURLRedirect(t)}var n=e.headers.get("Content-Length");return null!=n&&(i._contentLength=parseInt(n),0!==i._contentLength&&i._onContentLengthKnown&&i._onContentLengthKnown(i._contentLength)),i._pump.call(i,e.body.getReader())}if(i._status=o.GM.kError,!i._onError)throw new h.OZ("FetchStreamLoader: Http code invalid, "+e.status+" "+e.statusText);i._onError(o.nm.HTTP_STATUS_CODE_INVALID,{code:e.status,msg:e.statusText})}).catch(function(e){if(!i._abortController||!i._abortController.signal.aborted){if(i._status=o.GM.kError,!i._onError)throw e;i._onError(o.nm.EXCEPTION,{code:-1,msg:e.message})}})},t.prototype.abort=function(){if(this._requestAbort=!0,(this._status!==o.GM.kBuffering||!a.Z.chrome)&&this._abortController)try{this._abortController.abort()}catch(e){}},t.prototype._pump=function(e){var t=this;return e.read().then(function(i){if(i.done)if(null!==t._contentLength&&t._receivedLength<t._contentLength){t._status=o.GM.kError;var n=o.nm.EARLY_EOF,r={code:-1,msg:"Fetch stream meet Early-EOF"};if(!t._onError)throw new h.OZ(r.msg);t._onError(n,r)}else t._status=o.GM.kComplete,t._onComplete&&t._onComplete(t._range.from,t._range.from+t._receivedLength-1);else{if(t._abortController&&t._abortController.signal.aborted)return void(t._status=o.GM.kComplete);if(!0===t._requestAbort)return t._status=o.GM.kComplete,e.cancel();t._status=o.GM.kBuffering;var s=i.value.buffer,a=t._range.from+t._receivedLength;t._receivedLength+=s.byteLength,t._onDataArrival&&t._onDataArrival(s,a,t._receivedLength),t._pump(e)}}).catch(function(e){if(t._abortController&&t._abortController.signal.aborted)t._status=o.GM.kComplete;else if(11!==e.code||!a.Z.msedge){t._status=o.GM.kError;var i=0,n=null;if(19!==e.code&&"network error"!==e.message||!(null===t._contentLength||null!==t._contentLength&&t._receivedLength<t._contentLength)?(i=o.nm.EXCEPTION,n={code:e.code,msg:e.message}):(i=o.nm.EARLY_EOF,n={code:e.code,msg:"Fetch stream meet Early-EOF"}),!t._onError)throw new h.OZ(n.msg);t._onError(i,n)}})},t}(o.fp),l=function(){var e=function(t,i){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])})(t,i)};return function(t,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function n(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),c=function(e){function t(t,i){var n=e.call(this,"xhr-moz-chunked-loader")||this;return n.TAG="MozChunkedLoader",n._seekHandler=t,n._config=i,n._needStash=!0,n._xhr=null,n._requestAbort=!1,n._contentLength=null,n._receivedLength=0,n}return l(t,e),t.isSupported=function(){try{var e=new XMLHttpRequest;return e.open("GET","https://example.com",!0),e.responseType="moz-chunked-arraybuffer","moz-chunked-arraybuffer"===e.responseType}catch(e){return r.Z.w("MozChunkedLoader",e.message),!1}},t.prototype.destroy=function(){this.isWorking()&&this.abort(),this._xhr&&(this._xhr.onreadystatechange=null,this._xhr.onprogress=null,this._xhr.onloadend=null,this._xhr.onerror=null,this._xhr=null),e.prototype.destroy.call(this)},t.prototype.open=function(e,t){this._dataSource=e,this._range=t;var i=e.url;this._config.reuseRedirectedURL&&null!=e.redirectedURL&&(i=e.redirectedURL);var n=this._seekHandler.getConfig(i,t);this._requestURL=n.url;var r=this._xhr=new XMLHttpRequest;if(r.open("GET",n.url,!0),r.responseType="moz-chunked-arraybuffer",r.onreadystatechange=this._onReadyStateChange.bind(this),r.onprogress=this._onProgress.bind(this),r.onloadend=this._onLoadEnd.bind(this),r.onerror=this._onXhrError.bind(this),e.withCredentials&&(r.withCredentials=!0),"object"==typeof n.headers){var s=n.headers;for(var a in s)s.hasOwnProperty(a)&&r.setRequestHeader(a,s[a])}if("object"==typeof this._config.headers)for(var a in s=this._config.headers)s.hasOwnProperty(a)&&r.setRequestHeader(a,s[a]);this._status=o.GM.kConnecting,r.send()},t.prototype.abort=function(){this._requestAbort=!0,this._xhr&&this._xhr.abort(),this._status=o.GM.kComplete},t.prototype._onReadyStateChange=function(e){var t=e.target;if(2===t.readyState){if(null!=t.responseURL&&t.responseURL!==this._requestURL&&this._onURLRedirect){var i=this._seekHandler.removeURLParameters(t.responseURL);this._onURLRedirect(i)}if(0!==t.status&&(t.status<200||t.status>299)){if(this._status=o.GM.kError,!this._onError)throw new h.OZ("MozChunkedLoader: Http code invalid, "+t.status+" "+t.statusText);this._onError(o.nm.HTTP_STATUS_CODE_INVALID,{code:t.status,msg:t.statusText})}else this._status=o.GM.kBuffering}},t.prototype._onProgress=function(e){if(this._status!==o.GM.kError){null===this._contentLength&&null!==e.total&&0!==e.total&&(this._contentLength=e.total,this._onContentLengthKnown&&this._onContentLengthKnown(this._contentLength));var t=e.target.response,i=this._range.from+this._receivedLength;this._receivedLength+=t.byteLength,this._onDataArrival&&this._onDataArrival(t,i,this._receivedLength)}},t.prototype._onLoadEnd=function(e){!0!==this._requestAbort?this._status!==o.GM.kError&&(this._status=o.GM.kComplete,this._onComplete&&this._onComplete(this._range.from,this._range.from+this._receivedLength-1)):this._requestAbort=!1},t.prototype._onXhrError=function(e){this._status=o.GM.kError;var t=0,i=null;if(this._contentLength&&e.loaded<this._contentLength?(t=o.nm.EARLY_EOF,i={code:-1,msg:"Moz-Chunked stream meet Early-Eof"}):(t=o.nm.EXCEPTION,i={code:-1,msg:e.constructor.name+" "+e.type}),!this._onError)throw new h.OZ(i.msg);this._onError(t,i)},t}(o.fp),_=function(){var e=function(t,i){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])})(t,i)};return function(t,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function n(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),f=function(e){function t(t,i){var n=e.call(this,"xhr-range-loader")||this;return n.TAG="RangeLoader",n._seekHandler=t,n._config=i,n._needStash=!1,n._chunkSizeKBList=[128,256,384,512,768,1024,1536,2048,3072,4096,5120,6144,7168,8192],n._currentChunkSizeKB=384,n._currentSpeedNormalized=0,n._zeroSpeedChunkCount=0,n._xhr=null,n._speedSampler=new s,n._requestAbort=!1,n._waitForTotalLength=!1,n._totalLengthReceived=!1,n._currentRequestURL=null,n._currentRedirectedURL=null,n._currentRequestRange=null,n._totalLength=null,n._contentLength=null,n._receivedLength=0,n._lastTimeLoaded=0,n}return _(t,e),t.isSupported=function(){try{var e=new XMLHttpRequest;return e.open("GET","https://example.com",!0),e.responseType="arraybuffer","arraybuffer"===e.responseType}catch(e){return r.Z.w("RangeLoader",e.message),!1}},t.prototype.destroy=function(){this.isWorking()&&this.abort(),this._xhr&&(this._xhr.onreadystatechange=null,this._xhr.onprogress=null,this._xhr.onload=null,this._xhr.onerror=null,this._xhr=null),e.prototype.destroy.call(this)},Object.defineProperty(t.prototype,"currentSpeed",{get:function(){return this._speedSampler.lastSecondKBps},enumerable:!1,configurable:!0}),t.prototype.open=function(e,t){this._dataSource=e,this._range=t,this._status=o.GM.kConnecting;var i=!1;null!=this._dataSource.filesize&&0!==this._dataSource.filesize&&(i=!0,this._totalLength=this._dataSource.filesize),this._totalLengthReceived||i?this._openSubRange():(this._waitForTotalLength=!0,this._internalOpen(this._dataSource,{from:0,to:-1}))},t.prototype._openSubRange=function(){var e=1024*this._currentChunkSizeKB,t=this._range.from+this._receivedLength,i=t+e;null!=this._contentLength&&i-this._range.from>=this._contentLength&&(i=this._range.from+this._contentLength-1),this._currentRequestRange={from:t,to:i},this._internalOpen(this._dataSource,this._currentRequestRange)},t.prototype._internalOpen=function(e,t){this._lastTimeLoaded=0;var i=e.url;this._config.reuseRedirectedURL&&(null!=this._currentRedirectedURL?i=this._currentRedirectedURL:null!=e.redirectedURL&&(i=e.redirectedURL));var n=this._seekHandler.getConfig(i,t);this._currentRequestURL=n.url;var r=this._xhr=new XMLHttpRequest;if(r.open("GET",n.url,!0),r.responseType="arraybuffer",r.onreadystatechange=this._onReadyStateChange.bind(this),r.onprogress=this._onProgress.bind(this),r.onload=this._onLoad.bind(this),r.onerror=this._onXhrError.bind(this),e.withCredentials&&(r.withCredentials=!0),"object"==typeof n.headers){var s=n.headers;for(var o in s)s.hasOwnProperty(o)&&r.setRequestHeader(o,s[o])}if("object"==typeof this._config.headers)for(var o in s=this._config.headers)s.hasOwnProperty(o)&&r.setRequestHeader(o,s[o]);r.send()},t.prototype.abort=function(){this._requestAbort=!0,this._internalAbort(),this._status=o.GM.kComplete},t.prototype._internalAbort=function(){this._xhr&&(this._xhr.onreadystatechange=null,this._xhr.onprogress=null,this._xhr.onload=null,this._xhr.onerror=null,this._xhr.abort(),this._xhr=null)},t.prototype._onReadyStateChange=function(e){var t=e.target;if(2===t.readyState){if(null!=t.responseURL){var i=this._seekHandler.removeURLParameters(t.responseURL);t.responseURL!==this._currentRequestURL&&i!==this._currentRedirectedURL&&(this._currentRedirectedURL=i,this._onURLRedirect&&this._onURLRedirect(i))}if(t.status>=200&&t.status<=299){if(this._waitForTotalLength)return;this._status=o.GM.kBuffering}else{if(this._status=o.GM.kError,!this._onError)throw new h.OZ("RangeLoader: Http code invalid, "+t.status+" "+t.statusText);this._onError(o.nm.HTTP_STATUS_CODE_INVALID,{code:t.status,msg:t.statusText})}}},t.prototype._onProgress=function(e){if(this._status!==o.GM.kError){if(null===this._contentLength){var t=!1;if(this._waitForTotalLength){this._waitForTotalLength=!1,this._totalLengthReceived=!0,t=!0;var i=e.total;this._internalAbort(),null!=i&0!==i&&(this._totalLength=i)}if(-1===this._range.to?this._contentLength=this._totalLength-this._range.from:this._contentLength=this._range.to-this._range.from+1,t)return void this._openSubRange();this._onContentLengthKnown&&this._onContentLengthKnown(this._contentLength)}var n=e.loaded-this._lastTimeLoaded;this._lastTimeLoaded=e.loaded,this._speedSampler.addBytes(n)}},t.prototype._normalizeSpeed=function(e){var t=this._chunkSizeKBList,i=t.length-1,n=0,r=0,s=i;if(e<t[0])return t[0];for(;r<=s;){if((n=r+Math.floor((s-r)/2))===i||e>=t[n]&&e<t[n+1])return t[n];t[n]<e?r=n+1:s=n-1}},t.prototype._onLoad=function(e){if(this._status!==o.GM.kError)if(this._waitForTotalLength)this._waitForTotalLength=!1;else{this._lastTimeLoaded=0;var t=this._speedSampler.lastSecondKBps;if(0===t&&(this._zeroSpeedChunkCount++,this._zeroSpeedChunkCount>=3&&(t=this._speedSampler.currentKBps)),0!==t){var i=this._normalizeSpeed(t);this._currentSpeedNormalized!==i&&(this._currentSpeedNormalized=i,this._currentChunkSizeKB=i)}var n=e.target.response,r=this._range.from+this._receivedLength;this._receivedLength+=n.byteLength;var s=!1;null!=this._contentLength&&this._receivedLength<this._contentLength?this._openSubRange():s=!0,this._onDataArrival&&this._onDataArrival(n,r,this._receivedLength),s&&(this._status=o.GM.kComplete,this._onComplete&&this._onComplete(this._range.from,this._range.from+this._receivedLength-1))}},t.prototype._onXhrError=function(e){this._status=o.GM.kError;var t=0,i=null;if(this._contentLength&&this._receivedLength>0&&this._receivedLength<this._contentLength?(t=o.nm.EARLY_EOF,i={code:-1,msg:"RangeLoader meet Early-Eof"}):(t=o.nm.EXCEPTION,i={code:-1,msg:e.constructor.name+" "+e.type}),!this._onError)throw new h.OZ(i.msg);this._onError(t,i)},t}(o.fp),p=function(){var e=function(t,i){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])})(t,i)};return function(t,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function n(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),m=function(e){function t(){var t=e.call(this,"websocket-loader")||this;return t.TAG="WebSocketLoader",t._needStash=!0,t._ws=null,t._requestAbort=!1,t._receivedLength=0,t}return p(t,e),t.isSupported=function(){try{return void 0!==self.WebSocket}catch(e){return!1}},t.prototype.destroy=function(){this._ws&&this.abort(),e.prototype.destroy.call(this)},t.prototype.open=function(e){try{var t=this._ws=new self.WebSocket(e.url);t.binaryType="arraybuffer",t.onopen=this._onWebSocketOpen.bind(this),t.onclose=this._onWebSocketClose.bind(this),t.onmessage=this._onWebSocketMessage.bind(this),t.onerror=this._onWebSocketError.bind(this),this._status=o.GM.kConnecting}catch(e){this._status=o.GM.kError;var i={code:e.code,msg:e.message};if(!this._onError)throw new h.OZ(i.msg);this._onError(o.nm.EXCEPTION,i)}},t.prototype.abort=function(){var e=this._ws;!e||0!==e.readyState&&1!==e.readyState||(this._requestAbort=!0,e.close()),this._ws=null,this._status=o.GM.kComplete},t.prototype._onWebSocketOpen=function(e){this._status=o.GM.kBuffering},t.prototype._onWebSocketClose=function(e){!0!==this._requestAbort?(this._status=o.GM.kComplete,this._onComplete&&this._onComplete(0,this._receivedLength-1)):this._requestAbort=!1},t.prototype._onWebSocketMessage=function(e){var t=this;if(e.data instanceof ArrayBuffer)this._dispatchArrayBuffer(e.data);else if(e.data instanceof Blob){var i=new FileReader;i.onload=function(){t._dispatchArrayBuffer(i.result)},i.readAsArrayBuffer(e.data)}else{this._status=o.GM.kError;var n={code:-1,msg:"Unsupported WebSocket message type: "+e.data.constructor.name};if(!this._onError)throw new h.OZ(n.msg);this._onError(o.nm.EXCEPTION,n)}},t.prototype._dispatchArrayBuffer=function(e){var t=e,i=this._receivedLength;this._receivedLength+=t.byteLength,this._onDataArrival&&this._onDataArrival(t,i,this._receivedLength)},t.prototype._onWebSocketError=function(e){this._status=o.GM.kError;var t={code:e.code,msg:e.message};if(!this._onError)throw new h.OZ(t.msg);this._onError(o.nm.EXCEPTION,t)},t}(o.fp),g=function(){function e(e){this._zeroStart=e||!1}return e.prototype.getConfig=function(e,t){var i,n={};0!==t.from||-1!==t.to?(i=-1!==t.to?"bytes="+t.from.toString()+"-"+t.to.toString():"bytes="+t.from.toString()+"-",n.Range=i):this._zeroStart&&(n.Range="bytes=0-");return{url:e,headers:n}},e.prototype.removeURLParameters=function(e){return e},e}(),v=function(){function e(e,t){this._startName=e,this._endName=t}return e.prototype.getConfig=function(e,t){var i=e;if(0!==t.from||-1!==t.to){var n=!0;-1===i.indexOf("?")&&(i+="?",n=!1),n&&(i+="&"),i+=this._startName+"="+t.from.toString(),-1!==t.to&&(i+="&"+this._endName+"="+t.to.toString())}return{url:i,headers:{}}},e.prototype.removeURLParameters=function(e){var t=e.split("?")[0],i=void 0,n=e.indexOf("?");-1!==n&&(i=e.substring(n+1));var r="";if(null!=i&&i.length>0)for(var s=i.split("&"),o=0;o<s.length;o++){var a=s[o].split("="),h=o>0;a[0]!==this._startName&&a[0]!==this._endName&&(h&&(r+="&"),r+=s[o])}return 0===r.length?t:t+"?"+r},e}(),y=function(){function e(e,t,i){this.TAG="IOController",this._config=t,this._extraData=i,this._stashInitialSize=393216,null!=t.stashInitialSize&&t.stashInitialSize>0&&(this._stashInitialSize=t.stashInitialSize),this._stashUsed=0,this._stashSize=this._stashInitialSize,this._bufferSize=3145728,this._stashBuffer=new ArrayBuffer(this._bufferSize),this._stashByteStart=0,this._enableStash=!0,!1===t.enableStashBuffer&&(this._enableStash=!1),this._loader=null,this._loaderClass=null,this._seekHandler=null,this._dataSource=e,this._isWebSocketURL=/wss?:\/\/(.+?)/.test(e.url),this._refTotalLength=e.filesize?e.filesize:null,this._totalLength=this._refTotalLength,this._fullRequestFlag=!1,this._currentRange=null,this._redirectedURL=null,this._speedNormalized=0,this._speedSampler=new s,this._speedNormalizeList=[64,128,256,384,512,768,1024,1536,2048,3072,4096],this._isEarlyEofReconnecting=!1,this._paused=!1,this._resumeFrom=0,this._onDataArrival=null,this._onSeeked=null,this._onError=null,this._onComplete=null,this._onRedirect=null,this._onRecoveredEarlyEof=null,this._selectSeekHandler(),this._selectLoader(),this._createLoader()}return e.prototype.destroy=function(){this._loader.isWorking()&&this._loader.abort(),this._loader.destroy(),this._loader=null,this._loaderClass=null,this._dataSource=null,this._stashBuffer=null,this._stashUsed=this._stashSize=this._bufferSize=this._stashByteStart=0,this._currentRange=null,this._speedSampler=null,this._isEarlyEofReconnecting=!1,this._onDataArrival=null,this._onSeeked=null,this._onError=null,this._onComplete=null,this._onRedirect=null,this._onRecoveredEarlyEof=null,this._extraData=null},e.prototype.isWorking=function(){return this._loader&&this._loader.isWorking()&&!this._paused},e.prototype.isPaused=function(){return this._paused},Object.defineProperty(e.prototype,"status",{get:function(){return this._loader.status},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"extraData",{get:function(){return this._extraData},set:function(e){this._extraData=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"onDataArrival",{get:function(){return this._onDataArrival},set:function(e){this._onDataArrival=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"onSeeked",{get:function(){return this._onSeeked},set:function(e){this._onSeeked=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"onError",{get:function(){return this._onError},set:function(e){this._onError=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"onComplete",{get:function(){return this._onComplete},set:function(e){this._onComplete=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"onRedirect",{get:function(){return this._onRedirect},set:function(e){this._onRedirect=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"onRecoveredEarlyEof",{get:function(){return this._onRecoveredEarlyEof},set:function(e){this._onRecoveredEarlyEof=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"currentURL",{get:function(){return this._dataSource.url},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"hasRedirect",{get:function(){return null!=this._redirectedURL||null!=this._dataSource.redirectedURL},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"currentRedirectedURL",{get:function(){return this._redirectedURL||this._dataSource.redirectedURL},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"currentSpeed",{get:function(){return this._loaderClass===f?this._loader.currentSpeed:this._speedSampler.lastSecondKBps},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"loaderType",{get:function(){return this._loader.type},enumerable:!1,configurable:!0}),e.prototype._selectSeekHandler=function(){var e=this._config;if("range"===e.seekType)this._seekHandler=new g(this._config.rangeLoadZeroStart);else if("param"===e.seekType){var t=e.seekParamStart||"bstart",i=e.seekParamEnd||"bend";this._seekHandler=new v(t,i)}else{if("custom"!==e.seekType)throw new h.OC("Invalid seekType in config: "+e.seekType);if("function"!=typeof e.customSeekHandler)throw new h.OC("Custom seekType specified in config but invalid customSeekHandler!");this._seekHandler=new e.customSeekHandler}},e.prototype._selectLoader=function(){if(null!=this._config.customLoader)this._loaderClass=this._config.customLoader;else if(this._isWebSocketURL)this._loaderClass=m;else if(d.isSupported())this._loaderClass=d;else if(c.isSupported())this._loaderClass=c;else{if(!f.isSupported())throw new h.OZ("Your browser doesn't support xhr with arraybuffer responseType!");this._loaderClass=f}},e.prototype._createLoader=function(){this._loader=new this._loaderClass(this._seekHandler,this._config),!1===this._loader.needStashBuffer&&(this._enableStash=!1),this._loader.onContentLengthKnown=this._onContentLengthKnown.bind(this),this._loader.onURLRedirect=this._onURLRedirect.bind(this),this._loader.onDataArrival=this._onLoaderChunkArrival.bind(this),this._loader.onComplete=this._onLoaderComplete.bind(this),this._loader.onError=this._onLoaderError.bind(this)},e.prototype.open=function(e){this._currentRange={from:0,to:-1},e&&(this._currentRange.from=e),this._speedSampler.reset(),e||(this._fullRequestFlag=!0),this._loader.open(this._dataSource,Object.assign({},this._currentRange))},e.prototype.abort=function(){this._loader.abort(),this._paused&&(this._paused=!1,this._resumeFrom=0)},e.prototype.pause=function(){this.isWorking()&&(this._loader.abort(),0!==this._stashUsed?(this._resumeFrom=this._stashByteStart,this._currentRange.to=this._stashByteStart-1):this._resumeFrom=this._currentRange.to+1,this._stashUsed=0,this._stashByteStart=0,this._paused=!0)},e.prototype.resume=function(){if(this._paused){this._paused=!1;var e=this._resumeFrom;this._resumeFrom=0,this._internalSeek(e,!0)}},e.prototype.seek=function(e){this._paused=!1,this._stashUsed=0,this._stashByteStart=0,this._internalSeek(e,!0)},e.prototype._internalSeek=function(e,t){this._loader.isWorking()&&this._loader.abort(),this._flushStashBuffer(t),this._loader.destroy(),this._loader=null;var i={from:e,to:-1};this._currentRange={from:i.from,to:-1},this._speedSampler.reset(),this._stashSize=this._stashInitialSize,this._createLoader(),this._loader.open(this._dataSource,i),this._onSeeked&&this._onSeeked()},e.prototype.updateUrl=function(e){if(!e||"string"!=typeof e||0===e.length)throw new h.OC("Url must be a non-empty string!");this._dataSource.url=e},e.prototype._expandBuffer=function(e){for(var t=this._stashSize;t+1048576<e;)t*=2;if((t+=1048576)!==this._bufferSize){var i=new ArrayBuffer(t);if(this._stashUsed>0){var n=new Uint8Array(this._stashBuffer,0,this._stashUsed);new Uint8Array(i,0,t).set(n,0)}this._stashBuffer=i,this._bufferSize=t}},e.prototype._normalizeSpeed=function(e){var t=this._speedNormalizeList,i=t.length-1,n=0,r=0,s=i;if(e<t[0])return t[0];for(;r<=s;){if((n=r+Math.floor((s-r)/2))===i||e>=t[n]&&e<t[n+1])return t[n];t[n]<e?r=n+1:s=n-1}},e.prototype._adjustStashSize=function(e){var t=0;(t=this._config.isLive||e<512?e:e>=512&&e<=1024?Math.floor(1.5*e):2*e)>8192&&(t=8192);var i=1024*t+1048576;this._bufferSize<i&&this._expandBuffer(i),this._stashSize=1024*t},e.prototype._dispatchChunks=function(e,t){return this._currentRange.to=t+e.byteLength-1,this._onDataArrival(e,t)},e.prototype._onURLRedirect=function(e){this._redirectedURL=e,this._onRedirect&&this._onRedirect(e)},e.prototype._onContentLengthKnown=function(e){e&&this._fullRequestFlag&&(this._totalLength=e,this._fullRequestFlag=!1)},e.prototype._onLoaderChunkArrival=function(e,t,i){if(!this._onDataArrival)throw new h.rT("IOController: No existing consumer (onDataArrival) callback!");if(!this._paused){this._isEarlyEofReconnecting&&(this._isEarlyEofReconnecting=!1,this._onRecoveredEarlyEof&&this._onRecoveredEarlyEof()),this._speedSampler.addBytes(e.byteLength);var n=this._speedSampler.lastSecondKBps;if(0!==n){var r=this._normalizeSpeed(n);this._speedNormalized!==r&&(this._speedNormalized=r,this._adjustStashSize(r))}if(this._enableStash)if(0===this._stashUsed&&0===this._stashByteStart&&(this._stashByteStart=t),this._stashUsed+e.byteLength<=this._stashSize)(a=new Uint8Array(this._stashBuffer,0,this._stashSize)).set(new Uint8Array(e),this._stashUsed),this._stashUsed+=e.byteLength;else if(a=new Uint8Array(this._stashBuffer,0,this._bufferSize),this._stashUsed>0){var s=this._stashBuffer.slice(0,this._stashUsed);(u=this._dispatchChunks(s,this._stashByteStart))<s.byteLength?u>0&&(d=new Uint8Array(s,u),a.set(d,0),this._stashUsed=d.byteLength,this._stashByteStart+=u):(this._stashUsed=0,this._stashByteStart+=u),this._stashUsed+e.byteLength>this._bufferSize&&(this._expandBuffer(this._stashUsed+e.byteLength),a=new Uint8Array(this._stashBuffer,0,this._bufferSize)),a.set(new Uint8Array(e),this._stashUsed),this._stashUsed+=e.byteLength}else(u=this._dispatchChunks(e,t))<e.byteLength&&((o=e.byteLength-u)>this._bufferSize&&(this._expandBuffer(o),a=new Uint8Array(this._stashBuffer,0,this._bufferSize)),a.set(new Uint8Array(e,u),0),this._stashUsed+=o,this._stashByteStart=t+u);else if(0===this._stashUsed){var o;(u=this._dispatchChunks(e,t))<e.byteLength&&((o=e.byteLength-u)>this._bufferSize&&this._expandBuffer(o),(a=new Uint8Array(this._stashBuffer,0,this._bufferSize)).set(new Uint8Array(e,u),0),this._stashUsed+=o,this._stashByteStart=t+u)}else{var a,u;if(this._stashUsed+e.byteLength>this._bufferSize&&this._expandBuffer(this._stashUsed+e.byteLength),(a=new Uint8Array(this._stashBuffer,0,this._bufferSize)).set(new Uint8Array(e),this._stashUsed),this._stashUsed+=e.byteLength,(u=this._dispatchChunks(this._stashBuffer.slice(0,this._stashUsed),this._stashByteStart))<this._stashUsed&&u>0){var d=new Uint8Array(this._stashBuffer,u);a.set(d,0)}this._stashUsed-=u,this._stashByteStart+=u}}},e.prototype._flushStashBuffer=function(e){if(this._stashUsed>0){var t=this._stashBuffer.slice(0,this._stashUsed),i=this._dispatchChunks(t,this._stashByteStart),n=t.byteLength-i;if(i<t.byteLength){if(!e){if(i>0){var s=new Uint8Array(this._stashBuffer,0,this._bufferSize),o=new Uint8Array(t,i);s.set(o,0),this._stashUsed=o.byteLength,this._stashByteStart+=i}return 0}r.Z.w(this.TAG,n+" bytes unconsumed data remain when flush buffer, dropped")}return this._stashUsed=0,this._stashByteStart=0,n}return 0},e.prototype._onLoaderComplete=function(e,t){this._flushStashBuffer(!0),this._onComplete&&this._onComplete(this._extraData)},e.prototype._onLoaderError=function(e,t){switch(r.Z.e(this.TAG,"Loader error, code="+t.code+", msg="+t.msg),this._flushStashBuffer(!1),this._isEarlyEofReconnecting&&(this._isEarlyEofReconnecting=!1,e=o.nm.UNRECOVERABLE_EARLY_EOF),e){case o.nm.EARLY_EOF:if(!this._config.isLive&&this._totalLength){var i=this._currentRange.to+1;return void(i<this._totalLength&&(r.Z.w(this.TAG,"Connection lost, trying reconnect..."),this._isEarlyEofReconnecting=!0,this._internalSeek(i,!1)))}e=o.nm.UNRECOVERABLE_EARLY_EOF;case o.nm.UNRECOVERABLE_EARLY_EOF:case o.nm.CONNECTING_TIMEOUT:case o.nm.HTTP_STATUS_CODE_INVALID:case o.nm.EXCEPTION:}if(!this._onError)throw new h.OZ("IOException: "+t.msg);this._onError(e,t)},e}()},939:function(e,t,i){"use strict";i.d(t,{GM:function(){return r},nm:function(){return s},fp:function(){return o}});var n=i(29),r={kIdle:0,kConnecting:1,kBuffering:2,kError:3,kComplete:4},s={OK:"OK",EXCEPTION:"Exception",HTTP_STATUS_CODE_INVALID:"HttpStatusCodeInvalid",CONNECTING_TIMEOUT:"ConnectingTimeout",EARLY_EOF:"EarlyEof",UNRECOVERABLE_EARLY_EOF:"UnrecoverableEarlyEof"},o=function(){function e(e){this._type=e||"undefined",this._status=r.kIdle,this._needStash=!1,this._onContentLengthKnown=null,this._onURLRedirect=null,this._onDataArrival=null,this._onError=null,this._onComplete=null}return e.prototype.destroy=function(){this._status=r.kIdle,this._onContentLengthKnown=null,this._onURLRedirect=null,this._onDataArrival=null,this._onError=null,this._onComplete=null},e.prototype.isWorking=function(){return this._status===r.kConnecting||this._status===r.kBuffering},Object.defineProperty(e.prototype,"type",{get:function(){return this._type},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"status",{get:function(){return this._status},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"needStashBuffer",{get:function(){return this._needStash},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"onContentLengthKnown",{get:function(){return this._onContentLengthKnown},set:function(e){this._onContentLengthKnown=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"onURLRedirect",{get:function(){return this._onURLRedirect},set:function(e){this._onURLRedirect=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"onDataArrival",{get:function(){return this._onDataArrival},set:function(e){this._onDataArrival=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"onError",{get:function(){return this._onError},set:function(e){this._onError=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"onComplete",{get:function(){return this._onComplete},set:function(e){this._onComplete=e},enumerable:!1,configurable:!0}),e.prototype.open=function(e,t){throw new n.do("Unimplemented abstract function!")},e.prototype.abort=function(){throw new n.do("Unimplemented abstract function!")},e}()},538:function(e,t){"use strict";var i={};!function(){var e=self.navigator.userAgent.toLowerCase(),t=/(edge)\/([\w.]+)/.exec(e)||/(opr)[\/]([\w.]+)/.exec(e)||/(chrome)[ \/]([\w.]+)/.exec(e)||/(iemobile)[\/]([\w.]+)/.exec(e)||/(version)(applewebkit)[ \/]([\w.]+).*(safari)[ \/]([\w.]+)/.exec(e)||/(webkit)[ \/]([\w.]+).*(version)[ \/]([\w.]+).*(safari)[ \/]([\w.]+)/.exec(e)||/(webkit)[ \/]([\w.]+)/.exec(e)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(e)||/(msie) ([\w.]+)/.exec(e)||e.indexOf("trident")>=0&&/(rv)(?::|)([\w.]+)/.exec(e)||e.indexOf("compatible")<0&&/(firefox)[ \/]([\w.]+)/.exec(e)||[],n=/(ipad)/.exec(e)||/(ipod)/.exec(e)||/(windows phone)/.exec(e)||/(iphone)/.exec(e)||/(kindle)/.exec(e)||/(android)/.exec(e)||/(windows)/.exec(e)||/(mac)/.exec(e)||/(linux)/.exec(e)||/(cros)/.exec(e)||[],r={browser:t[5]||t[3]||t[1]||"",version:t[2]||t[4]||"0",majorVersion:t[4]||t[2]||"0",platform:n[0]||""},s={};if(r.browser){s[r.browser]=!0;var o=r.majorVersion.split(".");s.version={major:parseInt(r.majorVersion,10),string:r.version},o.length>1&&(s.version.minor=parseInt(o[1],10)),o.length>2&&(s.version.build=parseInt(o[2],10))}for(var a in r.platform&&(s[r.platform]=!0),(s.chrome||s.opr||s.safari)&&(s.webkit=!0),(s.rv||s.iemobile)&&(s.rv&&delete s.rv,r.browser="msie",s.msie=!0),s.edge&&(delete s.edge,r.browser="msedge",s.msedge=!0),s.opr&&(r.browser="opera",s.opera=!0),s.safari&&s.android&&(r.browser="android",s.android=!0),s.name=r.browser,s.platform=r.platform,i)i.hasOwnProperty(a)&&delete i[a];Object.assign(i,s)}(),t.Z=i},29:function(e,t,i){"use strict";i.d(t,{OZ:function(){return s},rT:function(){return o},OC:function(){return a},do:function(){return h}});var n,r=(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function i(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),s=function(){function e(e){this._message=e}return Object.defineProperty(e.prototype,"name",{get:function(){return"RuntimeException"},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"message",{get:function(){return this._message},enumerable:!1,configurable:!0}),e.prototype.toString=function(){return this.name+": "+this.message},e}(),o=function(e){function t(t){return e.call(this,t)||this}return r(t,e),Object.defineProperty(t.prototype,"name",{get:function(){return"IllegalStateException"},enumerable:!1,configurable:!0}),t}(s),a=function(e){function t(t){return e.call(this,t)||this}return r(t,e),Object.defineProperty(t.prototype,"name",{get:function(){return"InvalidArgumentException"},enumerable:!1,configurable:!0}),t}(s),h=function(e){function t(t){return e.call(this,t)||this}return r(t,e),Object.defineProperty(t.prototype,"name",{get:function(){return"NotImplementedException"},enumerable:!1,configurable:!0}),t}(s)},300:function(e,t,i){"use strict";var n=i(716),r=i.n(n),s=function(){function e(){}return e.e=function(t,i){t&&!e.FORCE_GLOBAL_TAG||(t=e.GLOBAL_TAG);var n="["+t+"] > "+i;e.ENABLE_CALLBACK&&e.emitter.emit("log","error",n),e.ENABLE_ERROR&&(console.error?console.error(n):console.warn?console.warn(n):console.log(n))},e.i=function(t,i){t&&!e.FORCE_GLOBAL_TAG||(t=e.GLOBAL_TAG);var n="["+t+"] > "+i;e.ENABLE_CALLBACK&&e.emitter.emit("log","info",n),e.ENABLE_INFO&&(console.info?console.info(n):console.log(n))},e.w=function(t,i){t&&!e.FORCE_GLOBAL_TAG||(t=e.GLOBAL_TAG);var n="["+t+"] > "+i;e.ENABLE_CALLBACK&&e.emitter.emit("log","warn",n),e.ENABLE_WARN&&(console.warn?console.warn(n):console.log(n))},e.d=function(t,i){t&&!e.FORCE_GLOBAL_TAG||(t=e.GLOBAL_TAG);var n="["+t+"] > "+i;e.ENABLE_CALLBACK&&e.emitter.emit("log","debug",n),e.ENABLE_DEBUG&&(console.debug?console.debug(n):console.log(n))},e.v=function(t,i){t&&!e.FORCE_GLOBAL_TAG||(t=e.GLOBAL_TAG);var n="["+t+"] > "+i;e.ENABLE_CALLBACK&&e.emitter.emit("log","verbose",n),e.ENABLE_VERBOSE&&console.log(n)},e}();s.GLOBAL_TAG="flv.js",s.FORCE_GLOBAL_TAG=!1,s.ENABLE_ERROR=!0,s.ENABLE_INFO=!0,s.ENABLE_WARN=!0,s.ENABLE_DEBUG=!0,s.ENABLE_VERBOSE=!0,s.ENABLE_CALLBACK=!1,s.emitter=new(r()),t.Z=s},846:function(e,t,i){"use strict";var n=i(716),r=i.n(n),s=i(300),o=function(){function e(){}return Object.defineProperty(e,"forceGlobalTag",{get:function(){return s.Z.FORCE_GLOBAL_TAG},set:function(t){s.Z.FORCE_GLOBAL_TAG=t,e._notifyChange()},enumerable:!1,configurable:!0}),Object.defineProperty(e,"globalTag",{get:function(){return s.Z.GLOBAL_TAG},set:function(t){s.Z.GLOBAL_TAG=t,e._notifyChange()},enumerable:!1,configurable:!0}),Object.defineProperty(e,"enableAll",{get:function(){return s.Z.ENABLE_VERBOSE&&s.Z.ENABLE_DEBUG&&s.Z.ENABLE_INFO&&s.Z.ENABLE_WARN&&s.Z.ENABLE_ERROR},set:function(t){s.Z.ENABLE_VERBOSE=t,s.Z.ENABLE_DEBUG=t,s.Z.ENABLE_INFO=t,s.Z.ENABLE_WARN=t,s.Z.ENABLE_ERROR=t,e._notifyChange()},enumerable:!1,configurable:!0}),Object.defineProperty(e,"enableDebug",{get:function(){return s.Z.ENABLE_DEBUG},set:function(t){s.Z.ENABLE_DEBUG=t,e._notifyChange()},enumerable:!1,configurable:!0}),Object.defineProperty(e,"enableVerbose",{get:function(){return s.Z.ENABLE_VERBOSE},set:function(t){s.Z.ENABLE_VERBOSE=t,e._notifyChange()},enumerable:!1,configurable:!0}),Object.defineProperty(e,"enableInfo",{get:function(){return s.Z.ENABLE_INFO},set:function(t){s.Z.ENABLE_INFO=t,e._notifyChange()},enumerable:!1,configurable:!0}),Object.defineProperty(e,"enableWarn",{get:function(){return s.Z.ENABLE_WARN},set:function(t){s.Z.ENABLE_WARN=t,e._notifyChange()},enumerable:!1,configurable:!0}),Object.defineProperty(e,"enableError",{get:function(){return s.Z.ENABLE_ERROR},set:function(t){s.Z.ENABLE_ERROR=t,e._notifyChange()},enumerable:!1,configurable:!0}),e.getConfig=function(){return{globalTag:s.Z.GLOBAL_TAG,forceGlobalTag:s.Z.FORCE_GLOBAL_TAG,enableVerbose:s.Z.ENABLE_VERBOSE,enableDebug:s.Z.ENABLE_DEBUG,enableInfo:s.Z.ENABLE_INFO,enableWarn:s.Z.ENABLE_WARN,enableError:s.Z.ENABLE_ERROR,enableCallback:s.Z.ENABLE_CALLBACK}},e.applyConfig=function(e){s.Z.GLOBAL_TAG=e.globalTag,s.Z.FORCE_GLOBAL_TAG=e.forceGlobalTag,s.Z.ENABLE_VERBOSE=e.enableVerbose,s.Z.ENABLE_DEBUG=e.enableDebug,s.Z.ENABLE_INFO=e.enableInfo,s.Z.ENABLE_WARN=e.enableWarn,s.Z.ENABLE_ERROR=e.enableError,s.Z.ENABLE_CALLBACK=e.enableCallback},e._notifyChange=function(){var t=e.emitter;if(t.listenerCount("change")>0){var i=e.getConfig();t.emit("change",i)}},e.registerListener=function(t){e.emitter.addListener("change",t)},e.removeListener=function(t){e.emitter.removeListener("change",t)},e.addLogListener=function(t){s.Z.emitter.addListener("log",t),s.Z.emitter.listenerCount("log")>0&&(s.Z.ENABLE_CALLBACK=!0,e._notifyChange())},e.removeLogListener=function(t){s.Z.emitter.removeListener("log",t),0===s.Z.emitter.listenerCount("log")&&(s.Z.ENABLE_CALLBACK=!1,e._notifyChange())},e}();o.emitter=new(r()),t.Z=o},219:function(e,t,i){"use strict";var n=function(){function e(){}return e.install=function(){Object.setPrototypeOf=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Object.assign=Object.assign||function(e){if(null==e)throw new TypeError("Cannot convert undefined or null to object");for(var t=Object(e),i=1;i<arguments.length;i++){var n=arguments[i];if(null!=n)for(var r in n)n.hasOwnProperty(r)&&(t[r]=n[r])}return t},"function"!=typeof self.Promise&&i(264).polyfill()},e}();n.install(),t.Z=n}},t={};function i(n){var r=t[n];if(void 0!==r)return r.exports;var s=t[n]={exports:{}};return e[n].call(s.exports,s,s.exports,i),s.exports}return i.m=e,i.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(t,{a:t}),t},i.d=function(e,t){for(var n in t)i.o(t,n)&&!i.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},i.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i(324)}()});
!function e(t,r,n){function a(o,s){if(!r[o]){if(!t[o]){var u="function"==typeof require&&require;if(!s&&u)return u(o,!0);if(i)return i(o,!0);var l=new Error("Cannot find module '"+o+"'");throw l.code="MODULE_NOT_FOUND",l}var d=r[o]={exports:{}};t[o][0].call(d.exports,function(e){return a(t[o][1][e]||e)},d,d.exports,e,t,r,n)}return r[o].exports}for(var i="function"==typeof require&&require,o=0;o<n.length;o++)a(n[o]);return a}({1:[function(e,t,r){"use strict";var n=function(e){for(var t=[],r=0;r<e.length;++r){var n=e.charCodeAt(r);128>n?t.push(n):2048>n?(t.push(192|n>>6),t.push(128|63&n)):65536>n?(t.push(224|n>>12),t.push(128|63&n>>6),t.push(128|63&n)):(t.push(240|n>>18),t.push(128|63&n>>12),t.push(128|63&n>>6),t.push(128|63&n))}return t},i=function(e){for(var t=[],r=0;r<e.length;){var n=e[r++];128>n||(224>n?(n=(31&n)<<6,n|=63&e[r++]):240>n?(n=(15&n)<<12,n|=(63&e[r++])<<6,n|=63&e[r++]):(n=(7&n)<<18,n|=(63&e[r++])<<12,n|=(63&e[r++])<<6,n|=63&e[r++])),t.push(String.fromCharCode(n))}return t.join("")},o={};!function(e){var t=function(t){for(var r=0,n=[],a=0|t.length/3;0<a--;){var i=(t[r]<<16)+(t[r+1]<<8)+t[r+2];r+=3,n.push(e.charAt(63&i>>18)),n.push(e.charAt(63&i>>12)),n.push(e.charAt(63&i>>6)),n.push(e.charAt(63&i))}return 2==t.length-r?(i=(t[r]<<16)+(t[r+1]<<8),n.push(e.charAt(63&i>>18)),n.push(e.charAt(63&i>>12)),n.push(e.charAt(63&i>>6)),n.push("=")):1==t.length-r&&(i=t[r]<<16,n.push(e.charAt(63&i>>18)),n.push(e.charAt(63&i>>12)),n.push("==")),n.join("")},r=function(){for(var t=[],r=0;r<64;++r)t[e.charCodeAt(r)]=r;return t["=".charCodeAt(0)]=0,t}(),u=function(e){for(var t=0,n=[],a=0|e.length/4;0<a--;){var i=(r[e.charCodeAt(t)]<<18)+(r[e.charCodeAt(t+1)]<<12)+(r[e.charCodeAt(t+2)]<<6)+r[e.charCodeAt(t+3)];n.push(255&i>>16),n.push(255&i>>8),n.push(255&i),t+=4}return n&&("="==e.charAt(t-2)?(n.pop(),n.pop()):"="==e.charAt(t-1)&&n.pop()),n},l=function(e){for(var t=[],r=0;r<e.length;++r)t.push(e.charCodeAt(r));return t},d=function(e){for(var t=0;t<s.length;++t)a[t]=String.fromCharCode(a[t]);return a.join("")};o.decodeArray=function(e){var t=u(e);return new Uint8Array(t)},o.encodeASCII=function(e){var r=l(e);return t(r)},o.decodeASCII=function(e){var t=u(e);return d(t)},o.encode=function(e){var r=n(e);return t(r)},o.decode=function(e){var t=u(e);return i(t)}}("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"),void 0!==r&&(r.decode=o.decode,r.decodeArray=o.decodeArray)},{}],2:[function(e,t,r){"use strict";!function(e){var t={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,185: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},r=function(e){var r=e;return t.hasOwnProperty(e)&&(r=t[e]),String.fromCharCode(r)},n=15,a=32,i={17:1,18:3,21:5,22:7,23:9,16:11,19:12,20:14},o={17:2,18:4,21:6,22:8,23:10,19:13,20:15},s={25:1,26:3,29:5,30:7,31:9,24:11,27:12,28:14},u={25:2,26:4,29:6,30:8,31:10,27:13,28:15},l=["white","green","blue","cyan","red","yellow","magenta","black","transparent"],d={verboseFilter:{DATA:3,DEBUG:3,INFO:2,WARNING:2,TEXT:1,ERROR:0},time:null,verboseLevel:0,setTime:function(e){this.time=e},log:function(e,t){var r=this.verboseFilter[e];this.verboseLevel>=r&&console.log(this.time+" ["+e+"] "+t)}},f=function(e){for(var t=[],r=0;r<e.length;r++)t.push(e[r].toString(16));return t},c=function(e,t,r,n,a){this.foreground=e||"white",this.underline=t||!1,this.italics=r||!1,this.background=n||"black",this.flash=a||!1};c.prototype={reset:function(){this.foreground="white",this.underline=!1,this.italics=!1,this.background="black",this.flash=!1},setStyles:function(e){for(var t=["foreground","underline","italics","background","flash"],r=0;r<t.length;r++){var n=t[r];e.hasOwnProperty(n)&&(this[n]=e[n])}},isDefault:function(){return"white"===this.foreground&&!this.underline&&!this.italics&&"black"===this.background&&!this.flash},equals:function(e){return this.foreground===e.foreground&&this.underline===e.underline&&this.italics===e.italics&&this.background===e.background&&this.flash===e.flash},copy:function(e){this.foreground=e.foreground,this.underline=e.underline,this.italics=e.italics,this.background=e.background,this.flash=e.flash},toString:function(){return"color="+this.foreground+", underline="+this.underline+", italics="+this.italics+", background="+this.background+", flash="+this.flash}};var g=function(e,t,r,n,a,i){this.uchar=e||" ",this.penState=new c(t,r,n,a,i)};g.prototype={reset:function(){this.uchar=" ",this.penState.reset()},setChar:function(e,t){this.uchar=e,this.penState.copy(t)},setPenState:function(e){this.penState.copy(e)},equals:function(e){return this.uchar===e.uchar&&this.penState.equals(e.penState)},copy:function(e){this.uchar=e.uchar,this.penState.copy(e.penState)},isEmpty:function(){return" "===this.uchar&&this.penState.isDefault()}};var h=function(){this.chars=[];for(var e=0;a>e;e++)this.chars.push(new g);this.pos=0,this.currPenState=new c};h.prototype={equals:function(e){for(var t=!0,r=0;a>r;r++)if(!this.chars[r].equals(e.chars[r])){t=!1;break}return t},copy:function(e){for(var t=0;a>t;t++)this.chars[t].copy(e.chars[t])},isEmpty:function(){for(var e=!0,t=0;a>t;t++)if(!this.chars[t].isEmpty()){e=!1;break}return e},setCursor:function(e){this.pos!==e&&(this.pos=e),this.pos<0?(d.log("ERROR","Negative cursor position "+this.pos),this.pos=0):this.pos>a&&(d.log("ERROR","Too large cursor position "+this.pos),this.pos=a)},moveCursor:function(e){var t=this.pos+e;if(e>1)for(var r=this.pos+1;t+1>r;r++)this.chars[r].setPenState(this.currPenState);this.setCursor(t)},backSpace:function(){this.moveCursor(-1),this.chars[this.pos].setChar(" ",this.currPenState)},insertChar:function(e){e>=144&&this.backSpace();var t=r(e);return this.pos>=a?void d.log("ERROR","Cannot insert "+e.toString(16)+" ("+t+") at position "+this.pos+". Skipping it!"):(this.chars[this.pos].setChar(t,this.currPenState),void this.moveCursor(1))},clearFromPos:function(e){var t;for(t=e;a>t;t++)this.chars[t].reset()},clear:function(){this.clearFromPos(0),this.pos=0,this.currPenState.reset()},clearToEndOfRow:function(){this.clearFromPos(this.pos)},getTextString:function(){for(var e=[],t=!0,r=0;a>r;r++){var n=this.chars[r].uchar;" "!==n&&(t=!1),e.push(n)}return t?"":e.join("")},setPenStyles:function(e){this.currPenState.setStyles(e),this.chars[this.pos].setPenState(this.currPenState)}};var p=function(){this.rows=[];for(var e=0;n>e;e++)this.rows.push(new h);this.currRow=14,this.nrRollUpRows=null,this.reset()};p.prototype={reset:function(){for(var e=0;n>e;e++)this.rows[e].clear();this.currRow=14},equals:function(e){for(var t=!0,r=0;n>r;r++)if(!this.rows[r].equals(e.rows[r])){t=!1;break}return t},copy:function(e){for(var t=0;n>t;t++)this.rows[t].copy(e.rows[t])},isEmpty:function(){for(var e=!0,t=0;n>t;t++)if(!this.rows[t].isEmpty()){e=!1;break}return e},backSpace:function(){this.rows[this.currRow].backSpace()},clearToEndOfRow:function(){this.rows[this.currRow].clearToEndOfRow()},insertChar:function(e){this.rows[this.currRow].insertChar(e)},setPen:function(e){this.rows[this.currRow].setPenStyles(e)},moveCursor:function(e){this.rows[this.currRow].moveCursor(e)},setCursor:function(e){d.log("INFO","setCursor: "+e),this.rows[this.currRow].setCursor(e)},setPAC:function(e){d.log("INFO","pacData="+JSON.stringify(e));var t=e.row-1;this.nrRollUpRows&&t<this.nrRollUpRows-1&&(t=this.nrRollUpRows-1),this.currRow=t;var r=this.rows[this.currRow];if(null!==e.indent){var n=e.indent,a=Math.max(n-1,0);r.setCursor(e.indent),e.color=r.chars[a].penState.foreground}var i={foreground:e.color,underline:e.underline,italics:e.italics,background:"black",flash:!1};this.setPen(i)},setBkgData:function(e){d.log("INFO","bkgData="+JSON.stringify(e)),this.backSpace(),this.setPen(e),this.insertChar(32)},setRollUpRows:function(e){this.nrRollUpRows=e},rollUp:function(){if(null!==this.nrRollUpRows){d.log("TEXT",this.getDisplayText());var e=this.currRow+1-this.nrRollUpRows,t=this.rows.splice(e,1)[0];t.clear(),this.rows.splice(this.currRow,0,t),d.log("INFO","Rolling up")}else d.log("DEBUG","roll_up but nrRollUpRows not set yet")},getDisplayText:function(e){e=e||!1;for(var t=[],r="",a=-1,i=0;n>i;i++){var o=this.rows[i].getTextString();o&&(a=i+1,e?t.push("Row "+a+': "'+o+'"'):t.push(o.trim()))}return t.length>0&&(r=e?"["+t.join(" | ")+"]":t.join("\n")),r},getTextAndFormat:function(){return this.rows}};var m=function(e,t){this.chNr=e,this.outputFilter=t,this.mode=null,this.verbose=0,this.displayedMemory=new p,this.nonDisplayedMemory=new p,this.lastOutputScreen=new p,this.currRollUpRow=this.displayedMemory.rows[14],this.writeScreen=this.displayedMemory,this.mode=null,this.cueStartTime=null};m.prototype={modes:["MODE_ROLL-UP","MODE_POP-ON","MODE_PAINT-ON","MODE_TEXT"],reset:function(){this.mode=null,this.displayedMemory.reset(),this.nonDisplayedMemory.reset(),this.lastOutputScreen.reset(),this.currRollUpRow=this.displayedMemory.rows[14],this.writeScreen=this.displayedMemory,this.mode=null,this.cueStartTime=null,this.lastCueEndTime=null},getHandler:function(){return this.outputFilter},setHandler:function(e){this.outputFilter=e},setPAC:function(e){this.writeScreen.setPAC(e)},setBkgData:function(e){this.writeScreen.setBkgData(e)},setMode:function(e){e!==this.mode&&(this.mode=e,d.log("INFO","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:function(e){for(var t=0;t<e.length;t++)this.writeScreen.insertChar(e[t]);var r=this.writeScreen===this.displayedMemory?"DISP":"NON_DISP";d.log("INFO",r+": "+this.writeScreen.getDisplayText(!0)),("MODE_PAINT-ON"===this.mode||"MODE_ROLL-UP"===this.mode)&&(d.log("TEXT","DISPLAYED: "+this.displayedMemory.getDisplayText(!0)),this.outputDataUpdate())},cc_RCL:function(){d.log("INFO","RCL - Resume Caption Loading"),this.setMode("MODE_POP-ON")},cc_BS:function(){d.log("INFO","BS - BackSpace"),"MODE_TEXT"!==this.mode&&(this.writeScreen.backSpace(),this.writeScreen===this.displayedMemory&&this.outputDataUpdate())},cc_AOF:function(){},cc_AON:function(){},cc_DER:function(){d.log("INFO","DER- Delete to End of Row"),this.writeScreen.clearToEndOfRow(),this.outputDataUpdate()},cc_RU:function(e){d.log("INFO","RU("+e+") - Roll Up"),this.writeScreen=this.displayedMemory,this.setMode("MODE_ROLL-UP"),this.writeScreen.setRollUpRows(e)},cc_FON:function(){d.log("INFO","FON - Flash On"),this.writeScreen.setPen({flash:!0})},cc_RDC:function(){d.log("INFO","RDC - Resume Direct Captioning"),this.setMode("MODE_PAINT-ON")},cc_TR:function(){d.log("INFO","TR"),this.setMode("MODE_TEXT")},cc_RTD:function(){d.log("INFO","RTD"),this.setMode("MODE_TEXT")},cc_EDM:function(){d.log("INFO","EDM - Erase Displayed Memory"),this.displayedMemory.reset(),this.outputDataUpdate()},cc_CR:function(){d.log("CR - Carriage Return"),this.writeScreen.rollUp(),this.outputDataUpdate()},cc_ENM:function(){d.log("INFO","ENM - Erase Non-displayed Memory"),this.nonDisplayedMemory.reset()},cc_EOC:function(){if(d.log("INFO","EOC - End Of Caption"),"MODE_POP-ON"===this.mode){var e=this.displayedMemory;this.displayedMemory=this.nonDisplayedMemory,this.nonDisplayedMemory=e,this.writeScreen=this.nonDisplayedMemory,d.log("TEXT","DISP: "+this.displayedMemory.getDisplayText())}this.outputDataUpdate()},cc_TO:function(e){d.log("INFO","TO("+e+") - Tab Offset"),this.writeScreen.moveCursor(e)},cc_MIDROW:function(e){var t={flash:!1};if(t.underline=e%2==1,t.italics=e>=46,t.italics)t.foreground="white";else{var r=Math.floor(e/2)-16;t.foreground=["white","green","blue","cyan","red","yellow","magenta"][r]}d.log("INFO","MIDROW: "+JSON.stringify(t)),this.writeScreen.setPen(t)},outputDataUpdate:function(){var e=d.time;null!==e&&this.outputFilter&&(this.outputFilter.updateData&&this.outputFilter.updateData(e,this.displayedMemory),null!==this.cueStartTime||this.displayedMemory.isEmpty()?this.displayedMemory.equals(this.lastOutputScreen)||(this.outputFilter.newCue&&this.outputFilter.newCue(this.cueStartTime,e,this.lastOutputScreen),this.cueStartTime=this.displayedMemory.isEmpty()?null:e):this.cueStartTime=e,this.lastOutputScreen.copy(this.displayedMemory))},cueSplitAtTime:function(e){this.outputFilter&&(this.displayedMemory.isEmpty()||(this.outputFilter.newCue&&this.outputFilter.newCue(this.cueStartTime,e,this.displayedMemory),this.cueStartTime=e))}};var v=function(e,t,r){this.field=e||1,this.outputs=[t,r],this.channels=[new m(1,t),new m(2,r)],this.currChNr=-1,this.lastCmdA=null,this.lastCmdB=null,this.bufferedData=[],this.startTime=null,this.lastTime=null,this.dataCounters={padding:0,char:0,cmd:0,other:0}};v.prototype={getHandler:function(e){return this.channels[e].getHandler()},setHandler:function(e,t){this.channels[e].setHandler(t)},addData:function(e,t){var r,n,a,i=!1;this.lastTime=e,d.setTime(e);for(var o=0;o<t.length;o+=2)n=127&t[o],a=127&t[o+1],0!==n||0!==a?(d.log("DATA","["+f([t[o],t[o+1]])+"] -> ("+f([n,a])+")"),(r=this.parseCmd(n,a))||(r=this.parseMidrow(n,a)),r||(r=this.parsePAC(n,a)),r||(r=this.parseBackgroundAttributes(n,a)),!r&&(i=this.parseChars(n,a))&&(this.currChNr&&this.currChNr>=0?this.channels[this.currChNr-1].insertChars(i):d.log("WARNING","No channel found yet. TEXT-MODE?")),r?this.dataCounters.cmd+=2:i?this.dataCounters.char+=2:(this.dataCounters.other+=2,d.log("WARNING","Couldn't parse cleaned data "+f([n,a])+" orig: "+f([t[o],t[o+1]])))):this.dataCounters.padding+=2},parseCmd:function(e,t){var r;if(!((20===e||28===e)&&t>=32&&47>=t||(23===e||31===e)&&t>=33&&35>=t))return!1;if(e===this.lastCmdA&&t===this.lastCmdB)return this.lastCmdA=null,this.lastCmdB=null,d.log("DEBUG","Repeated command ("+f([e,t])+") is dropped"),!0;r=20===e||23===e?1:2;var n=this.channels[r-1];return 20===e||28===e?32===t?n.cc_RCL():33===t?n.cc_BS():34===t?n.cc_AOF():35===t?n.cc_AON():36===t?n.cc_DER():37===t?n.cc_RU(2):38===t?n.cc_RU(3):39===t?n.cc_RU(4):40===t?n.cc_FON():41===t?n.cc_RDC():42===t?n.cc_TR():43===t?n.cc_RTD():44===t?n.cc_EDM():45===t?n.cc_CR():46===t?n.cc_ENM():47===t&&n.cc_EOC():n.cc_TO(t-32),this.lastCmdA=e,this.lastCmdB=t,this.currChNr=r,!0},parseMidrow:function(e,t){var r=null;return(17===e||25===e)&&t>=32&&47>=t&&((r=17===e?1:2)!==this.currChNr?(d.log("ERROR","Mismatch channel in midrow parsing"),!1):(this.channels[r-1].cc_MIDROW(t),d.log("DEBUG","MIDROW ("+f([e,t])+")"),!0))},parsePAC:function(e,t){var r,n;if(!((e>=17&&23>=e||e>=25&&31>=e)&&t>=64&&127>=t||(16===e||24===e)&&t>=64&&95>=t))return!1;if(e===this.lastCmdA&&t===this.lastCmdB)return this.lastCmdA=null,this.lastCmdB=null,!0;r=23>=e?1:2,n=t>=64&&95>=t?1===r?i[e]:s[e]:1===r?o[e]:u[e];var a=this.interpretPAC(n,t);return this.channels[r-1].setPAC(a),this.lastCmdA=e,this.lastCmdB=t,this.currChNr=r,!0},interpretPAC:function(e,t){var r,n={color:null,italics:!1,indent:null,underline:!1,row:e};return r=t>95?t-96:t-64,n.underline=!(1&~r),13>=r?n.color=["white","green","blue","cyan","red","yellow","magenta","white"][Math.floor(r/2)]:15>=r?(n.italics=!0,n.color="white"):n.indent=4*Math.floor((r-16)/2),n},parseChars:function(e,t){var n,a=null,i=null,o=null;(e>=25?(a=2,o=e-8):(a=1,o=e),o>=17&&19>=o)?(n=17===o?t+80:18===o?t+112:t+144,d.log("INFO","Special char '"+r(n)+"' in channel "+a),i=[n]):e>=32&&127>=e&&(i=0===t?[e]:[e,t]);if(i){var s=f(i);d.log("DEBUG","Char codes="+s.join(",")),this.lastCmdA=null,this.lastCmdB=null}return i},parseBackgroundAttributes:function(e,t){var r,n,a;return!!((16===e||24===e)&&t>=32&&47>=t||(23===e||31===e)&&t>=45&&47>=t)&&(r={},16===e||24===e?(n=Math.floor((t-32)/2),r.background=l[n],t%2==1&&(r.background=r.background+"_semi")):45===t?r.background="transparent":(r.foreground="black",47===t&&(r.underline=!0)),a=24>e?1:2,this.channels[a-1].setBkgData(r),this.lastCmdA=null,this.lastCmdB=null,!0)},reset:function(){for(var e=0;e<this.channels.length;e++)this.channels[e]&&this.channels[e].reset();this.lastCmdA=null,this.lastCmdB=null},cueSplitAtTime:function(e){for(var t=0;t<this.channels.length;t++)this.channels[t]&&this.channels[t].cueSplitAtTime(e)}},e.logger=d,e.PenState=c,e.CaptionScreen=p,e.Cea608Parser=v,e.findCea608Nalus=function(e,t,r){for(var n=0,a=t,i=[],o=function(e,t,r,n){if(4!==e||8>t)return null;var a=r.getUint8(n),i=r.getUint16(n+1),o=r.getUint32(n+3),s=r.getUint8(n+7);return 181==a&&49==i&&1195456820==o&&3==s};t+r>a;){if(n=e.getUint32(a),6==(31&e.getUint8(a+4)))for(var s=a+5,u=-1;a+4+n-1>s;){u=0;for(var l=255;255===l;)u+=l=e.getUint8(s),s++;var d=0;for(l=255;255===l;)d+=l=e.getUint8(s),s++;o(u,d,e,s)&&i.push([s,d]),s+=d}a+=n+4}return i},e.extractCea608DataFromRange=function(e,t){var r=t[0],n=[[],[]];r+=8;var a=31&e.getUint8(r);r+=2;for(var i=0;a>i;i++){var o=e.getUint8(r),s=4&o,u=3&o;r++;var l=e.getUint8(r);r++;var d=e.getUint8(r);r++,s&&(127&l)+(127&d)!=0&&(0===u?(n[0].push(l),n[0].push(d)):1===u&&(n[1].push(l),n[1].push(d)))}return n}}(void 0===r?(void 0).cea608parser={}:r)},{}],3:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=function(e){var t,r,n;for(t=[],n=0,r=e.length;r>n;n+=1)e[n].isRoot?t.push("root"):t.push(e[n].name);var a=function(e,t){var r;if(null!==e&&null!==t)for(r in e)e.hasOwnProperty(r)&&(t.hasOwnProperty(r)||(t[r]=e[r]))},i=function(e,t,r){var n,i,o,s,u;if(null!==e&&0!==e.length)for(n=0,i=e.length;i>n;n+=1)o=e[n],t.hasOwnProperty(o.name)&&(r.hasOwnProperty(o.name)?o.merge&&(s=t[o.name],u=r[o.name],"object"==typeof s&&"object"==typeof u?a(s,u):null!=o.mergeFunction?r[o.name]=o.mergeFunction(s,u):r[o.name]=s+u):r[o.name]=t[o.name])},o=function e(t,r){var n,a,o,s,u,l,d,f=t;if(null!==f.children&&0!==f.children.length)for(n=0,a=f.children.length;a>n;n+=1)if(l=f.children[n],r.hasOwnProperty(l.name))if(l.isArray)for(o=0,s=(u=r[l.name+"_asArray"]).length;s>o;o+=1)d=u[o],i(f.properties,r,d),e(l,d);else d=r[l.name],i(f.properties,r,d),e(l,d)};return{run:function r(n){var a,i,s,u,l,d,f;if(null===n)return n;if("object"!=typeof n)return n;for(a=0,i=t.length;i>a;a+=1)"root"===t[a]&&(l=e[a],o(l,d=n));for(u in n)if(n.hasOwnProperty(u)&&"__children"!=u){if(-1!==(s=t.indexOf(u)))if((l=e[s]).isArray)for(a=0,i=(f=n[u+"_asArray"]).length;i>a;a+=1)d=f[a],o(l,d);else d=n[u],o(l,d);r(n[u])}return n}}},t.exports=r.default},{}],4:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=function(e,t,r){function n(e){var t=e.localName;return null==t&&(t=e.baseName),(null==t||""==t)&&(t=e.nodeName),t}function a(e){return"string"==typeof e?e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;").replace(/\//g,"&#x2F;"):e}function i(a){if(a.nodeType==p.DOCUMENT_NODE){var o,s,u=a.firstChild;for(o=0,s=a.childNodes.length;s>o;o+=1)if(a.childNodes[o].nodeType!==p.COMMENT_NODE){u=a.childNodes[o];break}return r?l=i(u):(l={})[g=n(u)]=i(u),l}if(a.nodeType==p.ELEMENT_NODE){var l;(l=new Object).__cnt=0;for(var d=[],f=a.childNodes,c=0;c<f.length;c++){var g=n(u=f.item(c));if(l.__cnt++,null==l[g]){var m=i(u);("#text"!=g||/[^\s]/.test(m))&&((_={})[g]=m,d.push(_)),l[g]=m,l[g+"_asArray"]=new Array(1),l[g+"_asArray"][0]=l[g]}else{if(null!=l[g]&&!(l[g]instanceof Array)){var v=l[g];l[g]=new Array,l[g][0]=v,l[g+"_asArray"]=l[g]}for(var y=0;null!=l[g][y];)y++;var _;m=i(u),("#text"!=g||/[^\s]/.test(m))&&((_={})[g]=m,d.push(_)),l[g][y]=m}}l.__children=d;for(var E=0;E<a.attributes.length;E++){var T=a.attributes.item(E);l.__cnt++;for(var M=T.value,S=0,R=e.length;R>S;S++){var I=e[S];I.test.call(this,T)&&(M=I.converter.call(this,T.value))}l[t+T.name]=M}var C=function(e){return e.prefix}(a);return null!=C&&""!=C&&(l.__cnt++,l.__prefix=C),1==l.__cnt&&null!=l["#text"]&&(l=l["#text"]),null!=l["#text"]&&(l.__text=l["#text"],h&&(l.__text=function(e){return e.replace(/&amp;/g,"&").replace(/&lt;/g,"<").replace(/&gt;/g,">").replace(/&quot;/g,'"').replace(/&#x27;/g,"'").replace(/&#x2F;/g,"/")}(l.__text)),delete l["#text"],delete l["#text_asArray"]),null!=l["#cdata-section"]&&(l.__cdata=l["#cdata-section"],delete l["#cdata-section"],delete l["#cdata-section_asArray"]),(null!=l.__text||null!=l.__cdata)&&(l.toString=function(){return(null!=this.__text?this.__text:"")+(null!=this.__cdata?this.__cdata:"")}),l}return a.nodeType==p.TEXT_NODE||a.nodeType==p.CDATA_SECTION_NODE?a.nodeValue:a.nodeType==p.COMMENT_NODE?null:void 0}function o(e,t,r,n){var a="<"+(null!=e&&null!=e.__prefix?e.__prefix+":":"")+t;if(null!=r)for(var i=0;i<r.length;i++){var o=r[i],s=e[o];a+=" "+o.substr(1)+"='"+s+"'"}return a+(n?"/>":">")}function s(e,t){return"</"+(null!=e.__prefix?e.__prefix+":":"")+t+">"}function u(e,t){return!!(function(e,t){return-1!==e.indexOf(t,e.length-8)}(t.toString(),"_asArray")||0==t.toString().indexOf("_")||e[t]instanceof Function)}function l(e){var t=0;if(e instanceof Object)for(var r in e)u(e,r)||t++;return t}function d(e){var t=[];if(e instanceof Object)for(var r in e)-1==r.toString().indexOf("__")&&0==r.toString().indexOf("_")&&t.push(r);return t}function f(e){var t="";return e instanceof Object?t+=function(e){var t="";return null!=e.__cdata&&(t+="<![CDATA["+e.__cdata+"]]>"),null!=e.__text&&(t+=h?a(e.__text):e.__text),t}(e):null!=e&&(t+=h?a(e):e),t}function c(e,t,r){var n="";if(0==e.length)n+=o(e,t,r,!0);else for(var a=0;a<e.length;a++)n+=o(e[a],t,d(e[a]),!1),n+=g(e[a]),n+=s(e[a],t);return n}function g(e){var t="";if(l(e)>0)for(var r in e)if(!u(e,r)){var n=e[r],a=d(n);null==n||null==n?t+=o(n,r,a,!0):n instanceof Object?n instanceof Array?t+=c(n,r,a):l(n)>0||null!=n.__text||null!=n.__cdata?(t+=o(n,r,a,!1),t+=g(n),t+=s(n,r)):t+=o(n,r,a,!0):(t+=o(n,r,a,!1),t+=f(n),t+=s(n,r))}return t+f(e)}null==t&&(t="_"),null==r&&(r=!1);var h=!1,p={ELEMENT_NODE:1,TEXT_NODE:3,CDATA_SECTION_NODE:4,COMMENT_NODE:8,DOCUMENT_NODE:9};this.parseXmlString=function(e){var t,r,n;if(window.DOMParser){r=new window.DOMParser;try{n=r.parseFromString("<","text/xml").getElementsByTagName("parsererror")[0].namespaceURI}catch(e){}try{t=r.parseFromString(e,"text/xml"),n&&t.getElementsByTagNameNS(n,"parsererror").length&&(t=void 0)}catch(e){}}else 0==e.indexOf("<?")&&(e=e.substr(e.indexOf("?>")+2)),(t=new ActiveXObject("Microsoft.XMLDOM")).async="false",t.loadXML(e);return t},this.xml2json=function(e){return i(e)},this.xml_str2json=function(e){var t=this.parseXmlString(e);return t?this.xml2json(t):void 0},this.json2xml_str=function(e){return g(e)},this.json2xml=function(e){var t=this.json2xml_str(e);return this.parseXmlString(t)},this.getVersion=function(){return"1.0.11"},this.escapeMode=function(e){h=e}},t.exports=r.default},{}],5:[function(e,t,r){(function(t){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(r,"__esModule",{value:!0});var a=n(e("./src/streaming/MediaPlayer.js")),i=n(e("./src/streaming/protection/Protection.js")),o=n(e("./src/streaming/metrics/MetricsReporting.js")),s=n(e("./src/streaming/MediaPlayerFactory.js")),u=window||t,l=u.dashjs;l||(l=u.dashjs={}),l.MediaPlayer=a.default,l.Protection=i.default,l.MetricsReporting=o.default,l.MediaPlayerFactory=s.default,r.default=l,r.MediaPlayer=a.default,r.Protection=i.default,r.MetricsReporting=o.default,r.MediaPlayerFactory=s.default}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./src/streaming/MediaPlayer.js":39,"./src/streaming/MediaPlayerFactory.js":41,"./src/streaming/metrics/MetricsReporting.js":64,"./src/streaming/protection/Protection.js":95}],6:[function(e,t,r){var n={parseBuffer:function(e){return new a(e).parse()},Utils:{}};n.Utils.dataViewToString=function(e,t){var r=t||"utf-8";if("undefined"!=typeof TextDecoder)return new TextDecoder(r).decode(e);var n=[],a=0;if("utf-8"===r)for(;a<e.byteLength;){var i=e.getUint8(a++);128>i||(224>i?(i=(31&i)<<6,i|=63&e.getUint8(a++)):240>i?(i=(15&i)<<12,i|=(63&e.getUint8(a++))<<6,i|=63&e.getUint8(a++)):(i=(7&i)<<18,i|=(63&e.getUint8(a++))<<12,i|=(63&e.getUint8(a++))<<6,i|=63&e.getUint8(a++))),n.push(String.fromCharCode(i))}else for(;a<e.byteLength;)n.push(String.fromCharCode(e.getUint8(a++)));return n.join("")},void 0!==r&&(r.parseBuffer=n.parseBuffer,r.Utils=n.Utils),n.Cursor=function(e){this.offset=void 0===e?0:e};var a=function(e){this._raw=new DataView(e),this._cursor=new n.Cursor,this.boxes=[]};a.prototype.fetch=function(e){var t=this.fetchAll(e,!0);return t.length?t[0]:null},a.prototype.fetchAll=function(e,t){var r=[];return a._sweep.call(this,e,r,t),r},a.prototype.parse=function(){for(this._cursor.offset=0,this.boxes=[];this._cursor.offset<this._raw.byteLength;){var e=i.parse(this);if(void 0===e.type)break;this.boxes.push(e)}return this},a._sweep=function(e,t,r){for(var n in this.type&&this.type==e&&t.push(this),this.boxes){if(t.length&&r)return;a._sweep.call(this.boxes[n],e,t,r)}};var i=function(){this._cursor=new n.Cursor};i.parse=function(e){var t=new i;return t._offset=e._cursor.offset,t._root=e._root?e._root:e,t._raw=e._raw,t._parent=e,t._parseBox(),e._cursor.offset=t._raw.byteOffset+t._raw.byteLength,t},i.prototype._readInt=function(e){var t=null;switch(e){case 8:t=this._raw.getInt8(this._cursor.offset-this._raw.byteOffset);break;case 16:t=this._raw.getInt16(this._cursor.offset-this._raw.byteOffset);break;case 32:t=this._raw.getInt32(this._cursor.offset-this._raw.byteOffset);break;case 64:var r=this._raw.getInt32(this._cursor.offset-this._raw.byteOffset),n=this._raw.getInt32(this._cursor.offset-this._raw.byteOffset+4);t=r*Math.pow(2,32)+n}return this._cursor.offset+=e>>3,t},i.prototype._readUint=function(e){var t=null;switch(e){case 8:t=this._raw.getUint8(this._cursor.offset-this._raw.byteOffset);break;case 16:t=this._raw.getUint16(this._cursor.offset-this._raw.byteOffset);break;case 24:t=((r=this._raw.getUint16(this._cursor.offset-this._raw.byteOffset))<<8)+(n=this._raw.getUint8(this._cursor.offset-this._raw.byteOffset+2));break;case 32:t=this._raw.getUint32(this._cursor.offset-this._raw.byteOffset);break;case 64:var r=this._raw.getUint32(this._cursor.offset-this._raw.byteOffset),n=this._raw.getUint32(this._cursor.offset-this._raw.byteOffset+4);t=r*Math.pow(2,32)+n}return this._cursor.offset+=e>>3,t},i.prototype._readString=function(e){for(var t="",r=0;e>r;r++){var n=this._readUint(8);t+=String.fromCharCode(n)}return t},i.prototype._readTerminatedString=function(){for(var e="";;){var t=this._readUint(8);if(0==t)break;e+=String.fromCharCode(t)}return e},i.prototype._readTemplate=function(e){return this._readUint(e/2)+this._readUint(e/2)/Math.pow(2,e/2)},i.prototype._parseBox=function(){if(this._cursor.offset=this._offset,this._offset+8>this._raw.buffer.byteLength)this._root._incomplete=!0;else{switch(this.size=this._readUint(32),this.type=this._readString(4),1==this.size&&(this.largesize=this._readUint(64)),"uuid"==this.type&&(this.usertype=this._readString(16)),this.size){case 0:this._raw=new DataView(this._raw.buffer,this._offset,this._raw.byteLength-this._cursor.offset);break;case 1:this._offset+this.size>this._raw.buffer.byteLength?(this._incomplete=!0,this._root._incomplete=!0):this._raw=new DataView(this._raw.buffer,this._offset,this.largesize);break;default:this._offset+this.size>this._raw.buffer.byteLength?(this._incomplete=!0,this._root._incomplete=!0):this._raw=new DataView(this._raw.buffer,this._offset,this.size)}!this._incomplete&&this._boxParsers[this.type]&&this._boxParsers[this.type].call(this)}},i.prototype._parseFullBox=function(){this.version=this._readUint(8),this.flags=this._readUint(24)},i.prototype._boxParsers={},["moov","trak","tref","mdia","minf","stbl","edts","dinf","mvex","moof","traf","mfra","udta","meco","strk","vttc"].forEach(function(e){i.prototype._boxParsers[e]=function(){for(this.boxes=[];this._cursor.offset-this._raw.byteOffset<this._raw.byteLength;)this.boxes.push(i.parse(this))}}),i.prototype._boxParsers.elst=function(){this._parseFullBox(),this.entry_count=this._readUint(32),this.entries=[];for(var e=1;e<=this.entry_count;e++){var t={};1==this.version?(t.segment_duration=this._readUint(64),t.media_time=this._readInt(64)):(t.segment_duration=this._readUint(32),t.media_time=this._readInt(32)),t.media_rate_integer=this._readInt(16),t.media_rate_fraction=this._readInt(16),this.entries.push(t)}},i.prototype._boxParsers.emsg=function(){this._parseFullBox(),this.scheme_id_uri=this._readTerminatedString(),this.value=this._readTerminatedString(),this.timescale=this._readUint(32),this.presentation_time_delta=this._readUint(32),this.event_duration=this._readUint(32),this.id=this._readUint(32),this.message_data=new DataView(this._raw.buffer,this._cursor.offset,this._raw.byteLength-(this._cursor.offset-this._offset))},i.prototype._boxParsers.free=i.prototype._boxParsers.skip=function(){this.data=new DataView(this._raw.buffer,this._cursor.offset,this._raw.byteLength-(this._cursor.offset-this._offset))},i.prototype._boxParsers.ftyp=i.prototype._boxParsers.styp=function(){for(this.major_brand=this._readString(4),this.minor_versions=this._readUint(32),this.compatible_brands=[];this._cursor.offset-this._raw.byteOffset<this._raw.byteLength;)this.compatible_brands.push(this._readString(4))},i.prototype._boxParsers.hdlr=function(){this._parseFullBox(),this.pre_defined=this._readUint(32),this.handler_type=this._readString(4),this.reserved=[this._readUint(32),this._readUint(32),this._readUint(32)],this.name=this._readTerminatedString()},i.prototype._boxParsers.mdat=function(){this.data=new DataView(this._raw.buffer,this._cursor.offset,this._raw.byteLength-(this._cursor.offset-this._offset))},i.prototype._boxParsers.mdhd=function(){this._parseFullBox(),1==this.version?(this.creation_time=this._readUint(64),this.modification_time=this._readUint(64),this.timescale=this._readUint(32),this.duration=this._readUint(64)):(this.creation_time=this._readUint(32),this.modification_time=this._readUint(32),this.timescale=this._readUint(32),this.duration=this._readUint(32));var e=this._readUint(16);this.pad=e>>15,this.language=String.fromCharCode(96+(e>>10&31),96+(e>>5&31),96+(31&e)),this.pre_defined=this._readUint(16)},i.prototype._boxParsers.mfhd=function(){this._parseFullBox(),this.sequence_number=this._readUint(32)},i.prototype._boxParsers.mvhd=function(){this._parseFullBox(),1==this.version?(this.creation_time=this._readUint(64),this.modification_time=this._readUint(64),this.timescale=this._readUint(32),this.duration=this._readUint(64)):(this.creation_time=this._readUint(32),this.modification_time=this._readUint(32),this.timescale=this._readUint(32),this.duration=this._readUint(32)),this.rate=this._readTemplate(32),this.volume=this._readTemplate(16),this.reserved1=this._readUint(16),this.reserved2=[this._readUint(32),this._readUint(32)],this.matrix=[];for(var e=0;9>e;e++)this.matrix.push(this._readTemplate(32));for(this.pre_defined=[],e=0;6>e;e++)this.pre_defined.push(this._readUint(32));this.next_track_ID=this._readUint(32)},i.prototype._boxParsers.payl=function(){var e=new DataView(this._raw.buffer,this._cursor.offset,this._raw.byteLength-(this._cursor.offset-this._offset));this.cue_text=n.Utils.dataViewToString(e)},i.prototype._boxParsers.sidx=function(){this._parseFullBox(),this.reference_ID=this._readUint(32),this.timescale=this._readUint(32),0==this.version?(this.earliest_presentation_time=this._readUint(32),this.first_offset=this._readUint(32)):(this.earliest_presentation_time=this._readUint(64),this.first_offset=this._readUint(64)),this.reserved=this._readUint(16),this.reference_count=this._readUint(16),this.references=[];for(var e=0;e<this.reference_count;e++){var t={},r=this._readUint(32);t.reference_type=r>>31&1,t.referenced_size=2147483647&r,t.subsegment_duration=this._readUint(32);var n=this._readUint(32);t.starts_with_SAP=n>>31&1,t.SAP_type=n>>28&7,t.SAP_delta_time=268435455&n,this.references.push(t)}},i.prototype._boxParsers.ssix=function(){this._parseFullBox(),this.subsegment_count=this._readUint(32),this.subsegments=[];for(var e=0;e<this.subsegment_count;e++){var t={};t.ranges_count=this._readUint(32),t.ranges=[];for(var r=0;r<t.ranges_count;r++){var n={};n.level=this._readUint(8),n.range_size=this._readUint(24),t.ranges.push(n)}this.subsegments.push(t)}},i.prototype._boxParsers.tfdt=function(){this._parseFullBox(),1==this.version?this.baseMediaDecodeTime=this._readUint(64):this.baseMediaDecodeTime=this._readUint(32)},i.prototype._boxParsers.tfhd=function(){this._parseFullBox(),this.track_ID=this._readUint(32),1&this.flags&&(this.base_data_offset=this._readUint(64)),2&this.flags&&(this.sample_description_offset=this._readUint(32)),8&this.flags&&(this.default_sample_duration=this._readUint(32)),16&this.flags&&(this.default_sample_size=this._readUint(32)),32&this.flags&&(this.default_sample_flags=this._readUint(32))},i.prototype._boxParsers.tkhd=function(){this._parseFullBox(),1==this.version?(this.creation_time=this._readUint(64),this.modification_time=this._readUint(64),this.track_ID=this._readUint(32),this.reserved1=this._readUint(32),this.duration=this._readUint(64)):(this.creation_time=this._readUint(32),this.modification_time=this._readUint(32),this.track_ID=this._readUint(32),this.reserved1=this._readUint(32),this.duration=this._readUint(32)),this.reserved2=[this._readUint(32),this._readUint(32)],this.layer=this._readUint(16),this.alternate_group=this._readUint(16),this.volume=this._readTemplate(16),this.reserved3=this._readUint(16),this.matrix=[];for(var e=0;9>e;e++)this.matrix.push(this._readTemplate(32));this.width=this._readUint(32),this.height=this._readUint(32)},i.prototype._boxParsers.trun=function(){this._parseFullBox(),this.sample_count=this._readUint(32),1&this.flags&&(this.data_offset=this._readInt(32)),4&this.flags&&(this.first_sample_flags=this._readUint(32)),this.samples=[];for(var e=0;e<this.sample_count;e++){var t={};256&this.flags&&(t.sample_duration=this._readUint(32)),512&this.flags&&(t.sample_size=this._readUint(32)),1024&this.flags&&(t.sample_flags=this._readUint(32)),2048&this.flags&&(0==this.version?t.sample_composition_time_offset=this._readUint(32):t.sample_composition_time_offset=this._readInt(32)),this.samples.push(t)}},i.prototype._boxParsers.vlab=function(){var e=new DataView(this._raw.buffer,this._cursor.offset,this._raw.byteLength-(this._cursor.offset-this._offset));this.source_label=n.Utils.dataViewToString(e)},i.prototype._boxParsers.vttC=function(){var e=new DataView(this._raw.buffer,this._cursor.offset,this._raw.byteLength-(this._cursor.offset-this._offset));this.config=n.Utils.dataViewToString(e)},i.prototype._boxParsers.vtte=function(){}},{}],7:[function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function a(){var e,t=this.context,r=(0,i.default)(t).getInstance(),n=void 0,a=void 0,s=void 0;return e={log:function(){var e="",t=null;a&&(t=(new Date).getTime(),e+="["+(t-s)+"]"),e.length>0&&(e+=" "),Array.apply(null,arguments).forEach(function(t){e+=t+" "}),n&&console.log(e),r.trigger(o.default.LOG,{message:e})},setLogTimestampVisible:function(e){a=e},setLogToBrowserConsole:function(e){n=e},getLogToBrowserConsole:function(){return n}},n=!0,a=!0,s=(new Date).getTime(),e}Object.defineProperty(r,"__esModule",{value:!0});var i=n(e("./EventBus.js")),o=n(e("./events/Events.js")),s=n(e("./FactoryMaker.js"));a.__dashjs_factory_name="Debug",r.default=s.default.getSingletonFactory(a),t.exports=r.default},{"./EventBus.js":8,"./FactoryMaker.js":9,"./events/Events.js":11}],8:[function(e,t,r){"use strict";function n(){function e(e,r,n){var a=t[e];if(!a||0===a.length)return-1;for(var i=0;i<a.length;i++)if(a[i].callback===r&&(!n||n===a[i].scope))return i;return-1}var t={};return{on:function(r,n,a){if(!r)throw new Error("event type cannot be null or undefined");if(!n||"function"!=typeof n)throw new Error("listener must be a function: "+n);if(!(e(r,n,a)>=0)){var i={callback:n,scope:a};t[r]=t[r]||[],t[r].push(i)}},off:function(r,n,a){if(r&&n&&t[r]){var i=e(r,n,a);0>i||t[r].splice(i,1)}},trigger:function(e,r){if(e&&t[e]){if((r=r||{}).hasOwnProperty("type"))throw new Error("'type' is a reserved word for event dispatching");r.type=e,t[e].forEach(function(e){e.callback.call(e.scope,r)})}},reset:function(){t={}}}}Object.defineProperty(r,"__esModule",{value:!0});var a=function(e){return e&&e.__esModule?e:{default:e}}(e("./FactoryMaker.js"));n.__dashjs_factory_name="EventBus",r.default=a.default.getSingletonFactory(n),t.exports=r.default},{"./FactoryMaker.js":9}],9:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=function(){function e(e,t){for(var r in i){var n=i[r];if(n.context===e&&n.name===t)return n.instance}return null}function t(e,t,a,i){var o=r(a)[e];if(o){var s=o.instance;if(!o.override)return s.apply({context:a,factory:n},i);for(var u in s=s.apply({context:a,factory:n,parent:t},i))t.hasOwnProperty(u)&&(t[u]=s[u])}return t}function r(e){var t=void 0;return a.forEach(function(r){r===e&&(t=r)}),t||(t=a.push(e)),t}var n=void 0,a=[],i=[];return n={extend:function(e,t,n,a){var i=r(a);!i[e]&&t&&(i[e]={instance:t,override:n})},getSingletonInstance:e,setSingletonInstance:function(e,t,r){for(var n in i){var a=i[n];if(a.context===e&&a.name===t)return void(i[n].instance=r)}i.push({name:t,context:e,instance:r})},getSingletonFactory:function(r){return function(n){var a=void 0;return void 0===n&&(n={}),{getInstance:function(){return a||(a=e(n,r.__dashjs_factory_name)),a||(a=t(r.__dashjs_factory_name,r.apply({context:n},arguments),n,arguments),i.push({name:r.__dashjs_factory_name,context:n,instance:a})),a}}}},getClassFactory:function(e){return function(r){return void 0===r&&(r={}),{create:function(){return t(e.__dashjs_factory_name,e.apply({context:r},arguments),r,arguments)}}}}}}();r.default=n,t.exports=r.default},{}],10:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=function(e){function t(){(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,t),function(e,t,r){for(var n=!0;n;){var a=e,i=t,o=r;n=!1,null===a&&(a=Function.prototype);var s=Object.getOwnPropertyDescriptor(a,i);if(void 0!==s){if("value"in s)return s.value;var u=s.get;if(void 0===u)return;return u.call(o)}var l=Object.getPrototypeOf(a);if(null===l)return;e=l,t=i,r=o,n=!0,s=l=void 0}}(Object.getPrototypeOf(t.prototype),"constructor",this).call(this),this.AST_IN_FUTURE="astinfuture",this.BUFFERING_COMPLETED="bufferingCompleted",this.BUFFER_CLEARED="bufferCleared",this.BUFFER_LEVEL_UPDATED="bufferLevelUpdated",this.BYTES_APPENDED="bytesAppended",this.CHECK_FOR_EXISTENCE_COMPLETED="checkForExistenceCompleted",this.CHUNK_APPENDED="chunkAppended",this.CURRENT_TRACK_CHANGED="currenttrackchanged",this.DATA_UPDATE_COMPLETED="dataUpdateCompleted",this.DATA_UPDATE_STARTED="dataUpdateStarted",this.FRAGMENT_LOADING_COMPLETED="fragmentLoadingCompleted",this.FRAGMENT_LOADING_STARTED="fragmentLoadingStarted",this.INITIALIZATION_LOADED="initializationLoaded",this.INIT_FRAGMENT_LOADED="initFragmentLoaded",this.INIT_REQUESTED="initRequested",this.INTERNAL_MANIFEST_LOADED="internalManifestLoaded",this.LIVE_EDGE_SEARCH_COMPLETED="liveEdgeSearchCompleted",this.LOADING_COMPLETED="loadingCompleted",this.LOADING_PROGRESS="loadingProgress",this.MANIFEST_UPDATED="manifestUpdated",this.MEDIA_FRAGMENT_LOADED="mediaFragmentLoaded",this.QUALITY_CHANGED="qualityChanged",this.QUOTA_EXCEEDED="quotaExceeded",this.REPRESENTATION_UPDATED="representationUpdated",this.SEGMENTS_LOADED="segmentsLoaded",this.SERVICE_LOCATION_BLACKLIST_CHANGED="serviceLocationBlacklistChanged",this.SOURCEBUFFER_APPEND_COMPLETED="sourceBufferAppendCompleted",this.SOURCEBUFFER_REMOVE_COMPLETED="sourceBufferRemoveCompleted",this.STREAMS_COMPOSED="streamsComposed",this.STREAM_BUFFERING_COMPLETED="streamBufferingCompleted",this.STREAM_COMPLETED="streamCompleted",this.STREAM_INITIALIZED="streaminitialized",this.STREAM_TEARDOWN_COMPLETE="streamTeardownComplete",this.TIMED_TEXT_REQUESTED="timedTextRequested",this.TIME_SYNCHRONIZATION_COMPLETED="timeSynchronizationComplete",this.URL_RESOLUTION_FAILED="urlResolutionFailed",this.WALLCLOCK_TIME_UPDATED="wallclockTimeUpdated",this.XLINK_ALL_ELEMENTS_LOADED="xlinkAllElementsLoaded",this.XLINK_ELEMENT_LOADED="xlinkElementLoaded",this.XLINK_READY="xlinkReady"}return function(e,t){if("function"!=typeof t&&null!==t)throw new 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),t}(function(e){return e&&e.__esModule?e:{default:e}}(e("./EventsBase.js")).default);r.default=n,t.exports=r.default},{"./EventsBase.js":12}],11:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=function(e){function t(){(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,t),function(e,t,r){for(var n=!0;n;){var a=e,i=t,o=r;n=!1,null===a&&(a=Function.prototype);var s=Object.getOwnPropertyDescriptor(a,i);if(void 0!==s){if("value"in s)return s.value;var u=s.get;if(void 0===u)return;return u.call(o)}var l=Object.getPrototypeOf(a);if(null===l)return;e=l,t=i,r=o,n=!0,s=l=void 0}}(Object.getPrototypeOf(t.prototype),"constructor",this).apply(this,arguments)}return function(e,t){if("function"!=typeof t&&null!==t)throw new 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),t}(function(e){return e&&e.__esModule?e:{default:e}}(e("./CoreEvents.js")).default),a=new n;r.default=a,t.exports=r.default},{"./CoreEvents.js":10}],12:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),a=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}return n(e,[{key:"extend",value:function(e,t){if(e){var r=!!t&&t.override,n=!!t&&t.publicOnly;for(var a in e)!e.hasOwnProperty(a)||this[a]&&!r||n&&-1===e[a].indexOf("public_")||(this[a]=e[a])}}}]),e}();r.default=a,t.exports=r.default},{}],13:[function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function a(){function e(e,t){return t.getRepresentationForQuality(e.quality)}function t(e){return v[e.streamInfo.id][e.index]}function r(e){for(var t=m.length,r=0;t>r;r++){var n=m[r];if(e.id===n.id)return n}return null}function n(e,t){var r=new i.default,n=t.adaptation.period.mpd.manifest.Period_asArray[t.adaptation.period.index].AdaptationSet_asArray[t.adaptation.index],o=p.getRepresentationFor(t.index,n);return r.id=t.id,r.quality=t.index,r.bandwidth=p.getBandwidth(o),r.DVRWindow=t.segmentAvailabilityRange,r.fragmentDuration=t.segmentDuration||(t.segments&&t.segments.length>0?t.segments[0].duration:NaN),r.MSETimeOffset=t.MSETimeOffset,r.useCalculatedLiveEdgeTime=t.useCalculatedLiveEdgeTime,r.mediaInfo=a(e,t.adaptation),r}function a(e,t){var r,n=new o.default,a=t.period.mpd.manifest.Period_asArray[t.period.index].AdaptationSet_asArray[t.index];return n.id=t.id,n.index=t.index,n.type=t.type,n.streamInfo=g(e,t.period),n.representationCount=p.getRepresentationCount(a),n.lang=p.getLanguageForAdaptation(a),r=p.getViewpointForAdaptation(a),n.viewpoint=r?r.value:void 0,n.accessibility=p.getAccessibilityForAdaptation(a).map(function(e){var t=e.value,r=t;return e.schemeIdUri&&e.schemeIdUri.search("cea-608")>=0&&void 0!==f.default&&(r=t?"cea-608:"+t:"cea-608",n.embeddedCaptions=!0),r}),n.audioChannelConfiguration=p.getAudioChannelConfigurationForAdaptation(a).map(function(e){return e.value}),n.roles=p.getRolesForAdaptation(a).map(function(e){return e.value}),n.codec=p.getCodec(a),n.mimeType=p.getMimeType(a),n.contentProtection=p.getContentProtectionData(a),n.bitrateList=p.getBitrateListForAdaptation(a),n.contentProtection&&n.contentProtection.forEach(function(e){e.KID=p.getKID(e)}),n.isText=p.getIsTextTrack(n.mimeType),n}function d(e,t,r){e.id=t,e.index=100+parseInt(t.substring(2,3)),e.type="embeddedText",e.codec="cea-608-in-SEI",e.isText=!0,e.isEmbedded=!0,e.lang=t+" "+r,e.roles=["caption"]}function g(e,t){var r=new s.default;return r.id=t.id,r.index=t.index,r.start=t.start,r.duration=t.duration,r.manifestInfo=h(e,t.mpd),r.isLast=1===e.Period_asArray.length||Math.abs(r.start+r.duration-r.manifestInfo.duration)<1,r.isFirst=1===e.Period_asArray.length||p.getRegularPeriods(e,p.getMpd(e))[0].id===t.id,r}function h(e,t){var r=new u.default;return r.DVRWindowSize=t.timeShiftBufferDepth,r.loadedTime=t.manifest.loadedTime,r.availableFrom=t.availabilityStartTime,r.minBufferTime=t.manifest.minBufferTime,r.maxFragmentDuration=t.maxSegmentDuration,r.duration=p.getDuration(e),r.isDynamic=p.getIsDynamic(e),r}var p=void 0,m=void 0,v=void 0;return{initialize:function(){m=[],v={}},convertDataToTrack:n,convertDataToMedia:a,convertDataToStream:g,getDataForTrack:e,getDataForMedia:t,getDataForStream:r,getStreamsInfo:function(e){var t,r,n,a=[];if(!e)return null;for(t=p.getMpd(e),m=p.getRegularPeriods(e,t),t.checkTime=p.getCheckTime(e,m[0]),v={},r=m.length,n=0;r>n;n++)a.push(g(e,m[n]));return a},getManifestInfo:function(e){return h(e,p.getMpd(e))},getMediaInfoForType:function(e,t,n){var i,o=r(t),s=o.id,u=p.getAdaptationForType(e,t.index,n);return u?(i=p.getIndexForAdaptation(u,e,t.index),v[s]=v[s]||p.getAdaptationsForPeriod(e,o),a(e,v[s][i])):null},getAllMediaInfoForType:function(e,t,n){var i,o,s,u,l,f,c=r(t),g=c.id,h=p.getAdaptationsForType(e,t.index,"embeddedText"!==n?n:"video"),m=[];if(!h)return m;for(v[g]=v[g]||p.getAdaptationsForPeriod(e,c),u=0,f=h.length;f>u;u++){if(i=h[u],s=p.getIndexForAdaptation(i,e,t.index),o=a(e,v[g][s]),"embeddedText"===n){var y=o.accessibility.length;for(l=0;y>l;l++)if(o){var _=o.accessibility[l];if(0===_.indexOf("cea-608:")){var E=_.substring(8).split(";");if("CC"===E[0].substring(0,2))for(l=0;l<E.length;l++)o||(o=a.call(this,e,v[g][s])),d(o,E[l].substring(0,3),E[l].substring(4)),m.push(o),o=null;else for(l=0;l<E.length;l++)o||(o=a.call(this,e,v[g][s])),d(o,"CC"+(l+1),E[l]),m.push(o),o=null}else 0===_.indexOf("cea-608")&&(d(o,"CC1","eng"),m.push(o),o=null)}}o&&"embeddedText"!==n&&m.push(o)}return m},getCurrentRepresentationInfo:function(e,t){var r=t.getCurrentRepresentation();return r?n(e,r):null},getRepresentationInfoForQuality:function(e,t,r){var a=t.getRepresentationForQuality(r);return a?n(e,a):null},updateData:function(e,n){var a,i,o=r(n.getStreamInfo()),s=n.getMediaInfo(),u=t(s),l=n.getType();i=(a=s.id)?p.getAdaptationForId(a,e,o.index):p.getAdaptationForIndex(s.index,e,o.index),n.getRepresentationController().updateData(i,u,l)},getInitRequest:function(e,t){var r=e.getRepresentationController().getRepresentationForQuality(t);return e.getIndexHandler().getInitRequest(r)},getNextFragmentRequest:function(t,r){var n=e(r,t.getRepresentationController());return t.getIndexHandler().getNextSegmentRequest(n)},getFragmentRequestForTime:function(t,r,n,a){var i=e(r,t.getRepresentationController());return t.getIndexHandler().getSegmentRequestForTime(i,n,a)},generateFragmentRequestForTime:function(t,r,n){var a=e(r,t.getRepresentationController());return t.getIndexHandler().generateSegmentRequestForTime(a,n)},getIndexHandlerTime:function(e){return e.getIndexHandler().getCurrentTime()},setIndexHandlerTime:function(e,t){return e.getIndexHandler().setCurrentTime(t)},getEventsFor:function(n,a,u){var l=[];return a instanceof s.default?l=p.getEventsForPeriod(n,r(a)):a instanceof o.default?l=p.getEventStreamForAdaptationSet(n,t(a)):a instanceof i.default&&(l=p.getEventStreamForRepresentation(n,e(a,u.getRepresentationController()))),l},getEvent:function(e,t,r){var n=new l.default,a=e.scheme_id_uri,i=e.value,o=e.timescale,s=e.presentation_time_delta,u=e.event_duration,d=e.id,f=e.message_data,c=r*o+s;return t[a]?(n.eventStream=t[a],n.eventStream.value=i,n.eventStream.timescale=o,n.duration=u,n.id=d,n.presentationTime=c,n.messageData=f,n.presentationTimeDelta=s,n):null},setConfig:function(e){e&&e.dashManifestModel&&(p=e.dashManifestModel)},reset:function(){m=[],v={}},metricsList:c}}Object.defineProperty(r,"__esModule",{value:!0});var i=n(e("../streaming/vo/TrackInfo.js")),o=n(e("../streaming/vo/MediaInfo.js")),s=n(e("../streaming/vo/StreamInfo.js")),u=n(e("../streaming/vo/ManifestInfo.js")),l=n(e("./vo/Event.js")),d=n(e("../core/FactoryMaker.js")),f=n(e("../../externals/cea608-parser.js")),c={TCP_CONNECTION:"TcpList",HTTP_REQUEST:"HttpList",TRACK_SWITCH:"RepSwitchList",BUFFER_LEVEL:"BufferLevel",BUFFER_STATE:"BufferState",DVR_INFO:"DVRInfo",DROPPED_FRAMES:"DroppedFrames",SCHEDULING_INFO:"SchedulingInfo",REQUESTS_QUEUE:"RequestsQueue",MANIFEST_UPDATE:"ManifestUpdate",MANIFEST_UPDATE_STREAM_INFO:"ManifestUpdatePeriodInfo",MANIFEST_UPDATE_TRACK_INFO:"ManifestUpdateRepresentationInfo",PLAY_LIST:"PlayList",DVB_ERRORS:"DVBErrors"};a.__dashjs_factory_name="DashAdapter",r.default=d.default.getSingletonFactory(a),t.exports=r.default},{"../../externals/cea608-parser.js":2,"../core/FactoryMaker.js":9,"../streaming/vo/ManifestInfo.js":153,"../streaming/vo/MediaInfo.js":154,"../streaming/vo/StreamInfo.js":156,"../streaming/vo/TrackInfo.js":159,"./vo/Event.js":29}],14:[function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function a(e){function t(e,t,r){var n,a,i=D.resolve(r.path);return i&&t!==i.url&&R.isRelative(t)?(n=i.url,a=i.serviceLocation,t&&(n+=t)):n=t,!R.isRelative(n)&&(e.url=n,e.serviceLocation=a,!0)}function r(e){var t,r,n,a=e.adaptation.period,i=e.segmentInfoType,o=!1;return 0>O?o=!1:w||O<e.availableSegmentsNumber?(r=(0,g.getSegmentByIndex)(O,e))&&(n=r.presentationStartTime-a.start,t=e.adaptation.period.duration,M(e.segmentInfoType+": "+n+" / "+t),o=("SegmentTimeline"!==i||!w)&&n>=t):o=!0,o}function n(e){return B.getSegments(e,P,O,a)}function a(e,t){if(e.segments=t,t&&t.length>0&&(L=isNaN(L)?t[0].presentationStartTime:Math.min(t[0].presentationStartTime,L)),w&&isNaN(C.getExpectedLiveEdge())){var r=t[t.length-1].presentationStartTime,n=j.getMetricsFor("stream");C.setExpectedLiveEdge(r),j.updateManifestUpdateInfo(A.getCurrentManifestUpdate(n),{presentationStartTime:r})}}function d(e){if(!e)throw new o.default("no representation");return e.segments=null,n(e),e}function m(e,t,r){var n,a,i,o,s,u=t.segments,l=u?u.length:null,d=-1;if(u&&l>0)for(s=0;l>s;s++)if(i=(a=u[s]).presentationStartTime,o=a.duration,e+(n=r??o/2)>=i&&i+o>e-n){d=a.availabilityIdx;break}return d}function v(e){if(null==e)return null;var r=new i.default,n=e.representation,a=n.adaptation.period.mpd.manifest.Period_asArray[n.adaptation.period.index].AdaptationSet_asArray[n.adaptation.index].Representation_asArray[n.index].bandwidth,o=e.media;return o=(0,g.replaceTokenForTemplate)(o,"Number",e.replacementNumber),o=(0,g.replaceTokenForTemplate)(o,"Time",e.replacementTime),o=function(e,t){if(null===t||-1===e.indexOf("$RepresentationID$"))return e;var r=t.toString();return e.split("$RepresentationID$").join(r)}(o=(0,g.replaceTokenForTemplate)(o,"Bandwidth",a),n.id),o=function(e){return e.split("$$").join("$")}(o),r.mediaType=N,r.type=s.default.MEDIA_SEGMENT_TYPE,r.range=e.mediaRange,r.startTime=e.presentationStartTime,r.duration=e.duration,r.timescale=n.timescale,r.availabilityStartTime=e.availabilityStartTime,r.availabilityEndTime=e.availabilityEndTime,r.wallStartTime=e.wallStartTime,r.quality=n.index,r.index=e.availabilityIdx,r.mediaInfo=F.getMediaInfo(),r.adaptationIndex=n.adaptation.index,t(r,o,n)?r:void 0}function y(e,t,a){var o,s=O,u=!!a&&a.keepIdx,l=a?a.timeThreshold:null,d=!(!a||!a.ignoreIsFinished);return e?(P!==t&&(P=t,M("Getting the request for "+N+" time:"+t)),O=m(t,e,l),n(e),0>O&&(O=m(t,e,l)),O>0&&M("Index for "+N+" time "+t+" is "+O),!d&&r(e)?((o=new i.default).action=i.default.ACTION_COMPLETE,o.index=O,o.mediaType=N,o.mediaInfo=F.getMediaInfo(),M("Signal complete.",o)):o=v((0,g.getSegmentByIndex)(O,e)),u&&s>=0&&(O="SegmentTimeline"===e.segmentInfoType&&w?O:s),o):null}function _(e){var t=e.representation;t.segments&&S.trigger(u.default.REPRESENTATION_UPDATED,{sender:this,representation:t})}function E(e){if(!e.error&&N===e.mediaType){var t,r,n,i,o=e.segments,s=e.representation,l=[],d=0;for(t=0,r=o.length;r>t;t++)n=o[t],i=(0,g.getTimeBasedSegment)(C,w,s,n.startTime,n.duration,n.timescale,n.media,n.mediaRange,d),l.push(i),i=null,d++;s.segmentAvailabilityRange={start:l[0].presentationStartTime,end:l[r-1].presentationStartTime},s.availableSegmentsNumber=r,a(s,l),s.initialization&&S.trigger(u.default.REPRESENTATION_UPDATED,{sender:this,representation:s})}}var T=this.context,M=(0,f.default)(T).getInstance().log,S=(0,l.default)(T).getInstance(),R=(0,c.default)(T).getInstance(),I=e.segmentBaseLoader,C=e.timelineConverter,A=e.dashMetrics,j=e.metricsModel,D=e.baseURLController,b=void 0,O=void 0,P=void 0,w=void 0,N=void 0,x=void 0,L=void 0,F=void 0,B=void 0;return b={initialize:function(t){N=(F=t).getType(),w=F.isDynamic(),B=(0,h.default)(T).create(e,w)},getStreamProcessor:function(){return F},getInitRequest:function(e){return e?function(e,r){var n,a,o=new i.default;return n=e.adaptation.period,o.mediaType=r,o.type=s.default.INIT_SEGMENT_TYPE,o.range=e.range,a=n.start,o.availabilityStartTime=C.calcAvailabilityStartTimeFromPresentationTime(a,e.adaptation.period.mpd,w),o.availabilityEndTime=C.calcAvailabilityEndTimeFromPresentationTime(a+n.duration,n.mpd,w),o.quality=e.index,o.mediaInfo=F.getMediaInfo(),t(o,e.initialization,e)?o:void 0}(e,N):null},getSegmentRequestForTime:y,getNextSegmentRequest:function(e){var t,a;return e&&-1!==O?(P=null,O++,M("Getting the next request at index: "+O),r(e)?((t=new i.default).action=i.default.ACTION_COMPLETE,t.index=O,t.mediaType=N,t.mediaInfo=F.getMediaInfo(),M("Signal complete.")):(n(e),t=v(a=(0,g.getSegmentByIndex)(O,e)),!a&&w&&O--),t):null},generateSegmentRequestForTime:function(e,t){var r=(e.segmentAvailabilityRange.end-e.segmentAvailabilityRange.start)/2;return e.segments=null,e.segmentAvailabilityRange={start:t-r,end:t+r},y(e,t,{keepIdx:!1,ignoreIsFinished:!0})},updateRepresentation:function(e,t){var r,n=e.initialization,a="BaseURL"!==e.segmentInfoType&&"SegmentBase"!==e.segmentInfoType;return e.segmentDuration||e.segments||d(e),e.segmentAvailabilityRange=null,e.segmentAvailabilityRange=C.calcSegmentAvailabilityRange(e,w),e.segmentAvailabilityRange.end<e.segmentAvailabilityRange.start&&!e.useCalculatedLiveEdgeTime?(r=new o.default(p,"no segments are available yet",{availabilityDelay:e.segmentAvailabilityRange.start-e.segmentAvailabilityRange.end}),void S.trigger(u.default.REPRESENTATION_UPDATED,{sender:this,representation:e,error:r})):(t||(O=-1),e.segmentDuration&&d(e),n||I.loadInitialization(e),a||I.loadSegments(e,N,e.indexRange),void(n&&a&&S.trigger(u.default.REPRESENTATION_UPDATED,{sender:this,representation:e})))},setCurrentTime:function(e){x=e},getCurrentTime:function(){return x},getCurrentIndex:function(){return O},getEarliestTime:function(){return L},reset:function(){B=null,x=0,L=NaN,P=NaN,O=-1,w=null,N=null,F=null,S.off(u.default.INITIALIZATION_LOADED,_,b),S.off(u.default.SEGMENTS_LOADED,E,b)}},O=-1,x=0,L=NaN,S.on(u.default.INITIALIZATION_LOADED,_,b),S.on(u.default.SEGMENTS_LOADED,E,b),b}Object.defineProperty(r,"__esModule",{value:!0});var i=n(e("../streaming/vo/FragmentRequest.js")),o=n(e("../streaming/vo/Error.js")),s=n(e("../streaming/vo/metrics/HTTPRequest.js")),u=n(e("../core/events/Events.js")),l=n(e("../core/EventBus.js")),d=n(e("../core/FactoryMaker.js")),f=n(e("../core/Debug.js")),c=n(e("../streaming/utils/URLUtils.js")),g=e("./utils/SegmentsUtils.js"),h=n(e("./utils/SegmentsGetter.js")),p=1;a.__dashjs_factory_name="DashHandler";var m=d.default.getClassFactory(a);m.SEGMENTS_UNAVAILABLE_ERROR_CODE=p,r.default=m,t.exports=r.default},{"../core/Debug.js":7,"../core/EventBus.js":8,"../core/FactoryMaker.js":9,"../core/events/Events.js":11,"../streaming/utils/URLUtils.js":145,"../streaming/vo/Error.js":149,"../streaming/vo/FragmentRequest.js":150,"../streaming/vo/metrics/HTTPRequest.js":166,"./utils/SegmentsGetter.js":22,"./utils/SegmentsUtils.js":23}],15:[function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function a(){function e(e){if(null===e)return null;var t,r=e.HttpList,n=null;if(null===r||r.length<=0)return null;for(t=r.length-1;t>=0;){if(r[t].responsecode){n=r[t];break}t--}return n}function t(e){return null===e?[]:e.HttpList?e.HttpList:[]}function r(e){var t={};if(!e)return t;for(var r=e.split("\r\n"),n=0,a=r.length;a>n;n++){var i=r[n],o=i.indexOf(": ");o>0&&(t[i.substring(0,o)]=i.substring(o+2))}return t}function n(e,t){return(0,u.default)(a).getInstance().getIsTypeOf(e,t)}var a=this.context,l=(0,s.default)(a).getInstance();return{getBandwidthForRepresentation:function(e,t){var r;return r=function(e,t){var r,n,a,i,o;for(r=e.AdaptationSet_asArray,i=0;i<r.length;i+=1)for(a=r[i].Representation_asArray,o=0;o<a.length;o+=1)if(t===(n=a[o]).id)return n;return null}(l.getValue().Period_asArray[t],e),null===r?null:r.bandwidth},getIndexForRepresentation:function(e,t){return function(e,t){var r,n,a,i;for(r=e.AdaptationSet_asArray,a=0;a<r.length;a+=1)for(n=r[a].Representation_asArray,i=0;i<n.length;i+=1)if(t===n[i].id)return i;return-1}(l.getValue().Period_asArray[t],e)},getMaxIndexForBufferType:function(e,t){return function(e,t){var r,a,i,o;if(!e||!t)return-1;for(a=e.AdaptationSet_asArray,o=0;o<a.length;o+=1)if(i=(r=a[o]).Representation_asArray,n(r,t))return i.length;return-1}(l.getValue().Period_asArray[t],e)},getMaxAllowedIndexForBufferType:function(e,t){var r=0,n=(0,o.default)(a).getInstance();return n&&(r=n.getTopQualityIndexFor(e,t)),r},getCurrentRepresentationSwitch:function(e){if(null===e)return null;var t=e.RepSwitchList;return null===t||t.length<=0?null:t[t.length-1]},getLatestBufferLevelVO:function(e){if(null===e)return null;var t=e.BufferLevel;return null===t||t.length<=0?null:t[t.length-1]},getCurrentBufferLevel:function(e){if(null===e)return 0;var t=e.BufferLevel;return null===t||t.length<=0?0:t[t.length-1].level/1e3},getCurrentHttpRequest:e,getHttpRequests:t,getCurrentDroppedFrames:function(e){if(null===e)return null;var t=e.DroppedFrames;return null===t||t.length<=0?null:t[t.length-1]},getCurrentSchedulingInfo:function(e){if(null===e)return null;var t=e.SchedulingInfo;return null===t||t.length<=0?null:t[t.length-1]},getCurrentDVRInfo:function(e){if(null===e)return null;var t=e.DVRInfo;return null===t||t.length<=0?null:t[t.length-1]},getCurrentManifestUpdate:function(e){if(null===e)return null;var t=e.ManifestUpdate;return null===t||t.length<=0?null:t[t.length-1]},getLatestFragmentRequestHeaderValueByID:function(t,n){if(null===t)return null;var a,i=e(t);return null===i||null===i._responseHeaders||void 0===(a=r(i._responseHeaders))[n]?null:a[n]},getLatestMPDRequestHeaderValueByID:function(e,n){var a,o,s,u={};if(null===e)return null;for(s=(a=t(e)).length-1;s>=0;s--)if((o=a[s]).type===i.default.MPD_TYPE){u=r(o._responseHeaders);break}return void 0===u[n]?null:u[n]},getRequestsQueue:function(e){return e.RequestsQueue}}}Object.defineProperty(r,"__esModule",{value:!0});var i=n(e("../streaming/vo/metrics/HTTPRequest.js")),o=n(e("../streaming/controllers/AbrController.js")),s=n(e("../streaming/models/ManifestModel.js")),u=n(e("./models/DashManifestModel.js")),l=n(e("../core/FactoryMaker.js"));a.__dashjs_factory_name="DashMetrics",r.default=l.default.getSingletonFactory(a),t.exports=r.default},{"../core/FactoryMaker.js":9,"../streaming/controllers/AbrController.js":49,"../streaming/models/ManifestModel.js":89,"../streaming/vo/metrics/HTTPRequest.js":166,"./models/DashManifestModel.js":19}],16:[function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function a(){var e,t=this.context,r=(0,s.default)(t).getInstance().log,n=void 0,a=void 0,o=void 0,d=void 0;return e={parse:function(e,n){var a,o=new l.default(d,"",!0),s=new u.default(function(){var e=[];return e.push(function(){var e,t,r,n;return n=[{name:"profiles",merge:!1},{name:"width",merge:!1},{name:"height",merge:!1},{name:"sar",merge:!1},{name:"frameRate",merge:!1},{name:"audioSamplingRate",merge:!1},{name:"mimeType",merge:!1},{name:"segmentProfiles",merge:!1},{name:"codecs",merge:!1},{name:"maximumSAPPeriod",merge:!1},{name:"startsWithSap",merge:!1},{name:"maxPlayoutRate",merge:!1},{name:"codingDependency",merge:!1},{name:"scanType",merge:!1},{name:"FramePacking",merge:!0},{name:"AudioChannelConfiguration",merge:!0},{name:"ContentProtection",merge:!0}],(e={}).name="AdaptationSet",e.isRoot=!1,e.isArray=!0,e.parent=null,e.children=[],e.properties=n,(t={}).name="Representation",t.isRoot=!1,t.isArray=!0,t.parent=e,t.children=[],t.properties=n,e.children.push(t),(r={}).name="SubRepresentation",r.isRoot=!1,r.isArray=!0,r.parent=t,r.children=[],r.properties=n,t.children.push(r),e}()),e.push(function(){var e,t,r,n;return n=[{name:"SegmentBase",merge:!0},{name:"SegmentTemplate",merge:!0},{name:"SegmentList",merge:!0}],(e={}).name="Period",e.isRoot=!1,e.isArray=!0,e.parent=null,e.children=[],e.properties=n,(t={}).name="AdaptationSet",t.isRoot=!1,t.isArray=!0,t.parent=e,t.children=[],t.properties=n,e.children.push(t),(r={}).name="Representation",r.isRoot=!1,r.isArray=!0,r.parent=t,r.children=[],r.properties=n,t.children.push(r),e}()),e}()),f=new Date,c=null,g=null;try{if(!(a=o.xml_str2json(e)))throw"parser error";c=new Date,a.hasOwnProperty("Location")&&(a.Location=a.Location_asArray[0]),s.run(a),g=new Date,n.setMatchers(d),n.setIron(s),r("Parsing complete:(xml2json: "+(c.getTime()-f.getTime())+"ms, objectiron: "+(g.getTime()-c.getTime())+"ms, total: "+(g.getTime()-f.getTime())/1e3+"s)")}catch(r){return(0,i.default)(t).getInstance().manifestError("parsing the manifest failed","parse",e),null}return a}},n=/^([-])?P(([\d.]*)Y)?(([\d.]*)M)?(([\d.]*)D)?T?(([\d.]*)H)?(([\d.]*)M)?(([\d.]*)S)?/,a=/^([0-9]{4})-([0-9]{2})-([0-9]{2})T([0-9]{2}):([0-9]{2})(?::([0-9]*)(\.[0-9]*)?)?(?:([+-])([0-9]{2})([0-9]{2}))?/,o=/^[-+]?[0-9]+[.]?[0-9]*([eE][-+]?[0-9]+)?$/,d=[{type:"duration",test:function(e){for(var t=["minBufferTime","mediaPresentationDuration","minimumUpdatePeriod","timeShiftBufferDepth","maxSegmentDuration","maxSubsegmentDuration","suggestedPresentationDelay","start","starttime","duration"],r=t.length,a=0;r>a;a++)if(e.nodeName===t[a])return n.test(e.value);return!1},converter:function(e){var t=n.exec(e),r=31536e3*parseFloat(t[2]||0)+2592e3*parseFloat(t[4]||0)+86400*parseFloat(t[6]||0)+3600*parseFloat(t[8]||0)+60*parseFloat(t[10]||0)+parseFloat(t[12]||0);return void 0!==t[1]&&(r=-r),r}},{type:"datetime",test:function(e){return a.test(e.value)},converter:function(e){var t,r=a.exec(e);if(t=Date.UTC(parseInt(r[1],10),parseInt(r[2],10)-1,parseInt(r[3],10),parseInt(r[4],10),parseInt(r[5],10),r[6]&&parseInt(r[6],10)||0,r[7]&&1e3*parseFloat(r[7])||0),r[9]&&r[10]){var n=60*parseInt(r[9],10)+parseInt(r[10],10);t+=("+"===r[8]?-1:1)*n*60*1e3}return new Date(t)}},{type:"numeric",test:function(e){return o.test(e.value)},converter:function(e){return parseFloat(e)}}],e}Object.defineProperty(r,"__esModule",{value:!0});var i=n(e("../streaming/utils/ErrorHandler.js")),o=n(e("../core/FactoryMaker.js")),s=n(e("../core/Debug.js")),u=n(e("../../externals/objectiron.js")),l=n(e("../../externals/xml2json.js"));a.__dashjs_factory_name="DashParser",r.default=o.default.getClassFactory(a),t.exports=r.default},{"../../externals/objectiron.js":3,"../../externals/xml2json.js":4,"../core/Debug.js":7,"../core/FactoryMaker.js":9,"../streaming/utils/ErrorHandler.js":139}],17:[function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function a(){function e(e,t){for(var r,n,a,i,s=e.references,u=s.length,l=e.timescale,d=e.earliest_presentation_time,f=t.range.start+e.first_offset+e.size,c=[],g=0;u>g;g++)a=s[g].subsegment_duration,i=s[g].referenced_size,(r=new o.default).duration=a,r.media=t.url,r.startTime=d,r.timescale=l,n=f+i-1,r.mediaRange=f+"-"+n,c.push(r),d+=a,f+=i;return c}function t(e,t){t.url&&(e.open("GET",m.modifyRequestURL(t.url)),e.responseType="arraybuffer",e.setRequestHeader("Range","bytes="+t.range.start+"-"+t.range.end),(e=m.modifyRequestHeader(e)).send(null))}function r(e,t,r){e?c.trigger(l.default.SEGMENTS_LOADED,{segments:e,representation:t,mediaType:r}):c.trigger(l.default.SEGMENTS_LOADED,{segments:null,representation:t,mediaType:r,error:new s.default(null,"error loading segments",null)})}var n=this.context,a=(0,g.default)(n).getInstance().log,c=(0,d.default)(n).getInstance(),h=void 0,p=void 0,m=void 0,v=void 0;return{setConfig:function(e){e.baseURLController&&(v=e.baseURLController)},initialize:function(){h=(0,u.default)(n).getInstance(),p=(0,f.default)(n).getInstance(),m=(0,i.default)(n).getInstance()},loadInitialization:function e(r,n){var i=!0,o=null,s=null,u=new XMLHttpRequest,d=v.resolve(r.path),f=n||{url:d?d.url:void 0,range:{start:0,end:1500},searching:!1,bytesLoaded:0,bytesToLoad:1500,request:u};a("Start searching for initialization."),u.onload=function(){u.status<200||u.status>299||(i=!1,f.bytesLoaded=f.range.end,s=p.parse(u.response),o=function(e){var t,r,n=e.getBox("ftyp"),i=e.getBox("moov"),o=null;return a("Searching for initialization."),i&&i.isComplete&&(t=n?n.offset:i.offset,r=i.offset+i.size-1,a("Found the initialization.  Range: "+(o=t+"-"+r))),o}(s),o?(r.range=o,r.initialization=f.url,c.trigger(l.default.INITIALIZATION_LOADED,{representation:r})):(f.range.end=f.bytesLoaded+f.bytesToLoad,e(r,f)))},u.onloadend=u.onerror=function(){i&&(i=!1,h.downloadError("initialization",f.url,u),c.trigger(l.default.INITIALIZATION_LOADED,{representation:r}))},t(u,f),a("Perform init search: "+f.url)},loadSegments:function n(i,o,s,u,l){if(s&&(void 0===s.start||void 0===s.end)){var d=s?s.toString().split("-"):null;s=d?{start:parseFloat(d[0]),end:parseFloat(d[1])}:null}l=l||r;var f=!0,c=null,g=null,m=!!s,y=new XMLHttpRequest,_=v.resolve(i.path),E={url:_?_.url:void 0,range:m?s:{start:0,end:1500},searching:!m,bytesLoaded:u?u.bytesLoaded:0,bytesToLoad:1500,request:y};y.onload=function(){if(!(y.status<200||y.status>299)){var t=E.bytesToLoad,r=y.response.byteLength;if(f=!1,E.bytesLoaded=E.range.end-E.range.start,c=p.parse(y.response),(g=c.getBox("sidx"))&&g.isComplete){var s,u,d=g.references;if(null!=d&&d.length>0&&(s=1===d[0].reference_type),s){a("Initiate multiple SIDX load."),E.range.end=E.range.start+g.size;var h,m,v,_,T=[],M=0,S=(g.offset||E.range.start)+g.size,R=function(e){e?(T=T.concat(e),++M>=m&&l(T,i,o)):l(null,i,o)};for(h=0,m=d.length;m>h;h++)v=S,_=S+d[h].referenced_size-1,S+=d[h].referenced_size,n(i,null,{start:v,end:_},E,R)}else a("Parsing segments from SIDX."),u=e(g,E),l(u,i,o)}else{if(g)E.range.start=g.offset||E.range.start,E.range.end=E.range.start+(g.size||t);else{if(r<E.bytesLoaded)return void l(null,i,o);var I=c.getLastBox();I&&I.size?(E.range.start=I.offset+I.size,E.range.end=E.range.start+t):E.range.end+=t}n(i,o,E.range,E,l)}}},y.onloadend=y.onerror=function(){f&&(f=!1,h.downloadError("SIDX",E.url,y),l(null,i,o))},t(y,E),a("Perform SIDX load: "+E.url)},reset:function(){h=null,p=null,m=null,a=null}}}Object.defineProperty(r,"__esModule",{value:!0});var i=n(e("../streaming/utils/RequestModifier.js")),o=n(e("./vo/Segment.js")),s=n(e("../streaming/vo/Error.js")),u=n(e("../streaming/utils/ErrorHandler.js")),l=n(e("../core/events/Events.js")),d=n(e("../core/EventBus.js")),f=n(e("../streaming/utils/BoxParser.js")),c=n(e("../core/FactoryMaker.js")),g=n(e("../core/Debug.js"));a.__dashjs_factory_name="SegmentBaseLoader",r.default=c.default.getSingletonFactory(a),t.exports=r.default},{"../core/Debug.js":7,"../core/EventBus.js":8,"../core/FactoryMaker.js":9,"../core/events/Events.js":11,"../streaming/utils/BoxParser.js":135,"../streaming/utils/ErrorHandler.js":139,"../streaming/utils/RequestModifier.js":143,"../streaming/vo/Error.js":149,"./vo/Segment.js":34}],18:[function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function a(){function e(){return b}function t(){return P}function r(){var e=new Date,r=t(),n=1e3*F.getTime();k.addRepresentationSwitch(r.adaptation.type,e,n,r.id)}function n(){var e=K.calcSegmentAvailabilityRange(P,w.isDynamic());k.addDVRInfo(w.getType(),F.getTime(),w.getStreamInfo().manifestInfo,e)}function a(e){return O[e]}function y(e){for(var t,r=0,n=O.length;n>r;r++)(t=O[r]).segmentAvailabilityRange=K.calcSegmentAvailabilityRange(t,e)}function _(a){if(a.sender.getStreamProcessor()===w&&e()){var i,o,s=a.representation,u=k.getMetricsFor("stream"),l=k.getMetricsFor(t().adaptation.type),d=q.getCurrentManifestUpdate(u),f=!1,c=0;if("dynamic"==s.adaptation.period.mpd.manifest.type){var g=s.segmentAvailabilityRange.end-s.segmentAvailabilityRange.start;c=1e3*(F.computeLiveDelay(P.segmentDuration,w.getStreamInfo().manifestInfo.DVRWindowSize)-g)}if(c>0)return n(),function(t){var r=t;b=!1,C.trigger(v.default.AST_IN_FUTURE,{delay:r}),setTimeout(function(){if(!e()){b=!0,C.trigger(v.default.DATA_UPDATE_STARTED,{sender:A}),O.forEach(function(e){e.segmentAvailabilityRange=null});for(var t=0;t<O.length;t++)x.updateRepresentation(O[t],!0)}},r)}(c),o=new p.default(R,"Segments update failed",null),void C.trigger(v.default.DATA_UPDATE_COMPLETED,{sender:this,data:j,currentRepresentation:P,error:o});if(d){for(var h=0;h<d.trackInfo.length;h++)if((i=d.trackInfo[h]).index===s.index&&i.mediaType===w.getType()){f=!0;break}f||k.addManifestUpdateRepresentationInfo(d,s.id,s.index,s.adaptation.period.index,w.getType(),s.presentationTimeOffset,s.startNumber,s.segmentInfoType)}(function(){for(var e=0,t=O.length;t>e;e++){var r=O[e].segmentInfoType;if(null===O[e].segmentAvailabilityRange||null===O[e].initialization||("SegmentBase"===r||"BaseURL"===r)&&!O[e].segments)return!1}return!0})()&&(b=!1,N.setPlaybackQuality(w.getType(),w.getStreamInfo(),function(e){return O.indexOf(e)}(P)),k.updateManifestUpdateInfo(d,{latency:P.segmentAvailabilityRange.end-F.getTime()}),q.getCurrentRepresentationSwitch(l)||r(),C.trigger(v.default.DATA_UPDATE_COMPLETED,{sender:this,data:j,currentRepresentation:P}))}}function E(e){e.isDynamic&&y(e.isDynamic)}function T(e){if(!e.error){y(!0),x.updateRepresentation(P,!1);var t=B.getValue(),r=P.adaptation.period,n=L.getActiveStreamInfo();n.isLast&&(r.mpd.checkTime=H.getCheckTime(t,r),r.duration=H.getEndTimeForLastPeriod(B.getValue(),r)-r.start,n.duration=r.duration)}}function M(e){e.sender.getStreamProcessor()===w&&n()}function S(e){e.mediaType===w.getType()&&w.getStreamInfo().id===e.streamInfo.id&&e.oldQuality!==e.newQuality&&(P=a(e.newQuality),U.setSavedBitrateSettings(e.mediaType,P.bandwidth),r())}var R=1,I=this.context,C=(0,m.default)(I).getInstance(),A=void 0,j=void 0,D=void 0,b=void 0,O=void 0,P=void 0,w=void 0,N=void 0,x=void 0,L=void 0,F=void 0,B=void 0,k=void 0,U=void 0,K=void 0,H=void 0,q=void 0;return A={initialize:function(e){x=(w=e).getIndexHandler()},setConfig:function(e){e.abrController&&(N=e.abrController)},getData:function(){return j},getDataIndex:function(){return D},isUpdating:e,updateData:function(e,t,r){var n,i=null,o=w.getStreamInfo(),s=N.getTopQualityIndexFor(r,o.id);if(b=!0,C.trigger(v.default.DATA_UPDATE_STARTED,{sender:this}),O=function(e){var t=B.getValue();return D=H.getIndexForAdaptation(j,t,e.period.index),H.getRepresentationsForAdaptation(t,e)}(t),null===j&&"fragmentedText"!==r?(i=N.getAverageThroughput(r)||N.getInitialBitrateFor(r,o),n=N.getQualityForBitrate(w.getMediaInfo(),i)):n=N.getQualityFor(r,o),n>s&&(n=s),P=a(n),j=e,"video"!==r&&"audio"!==r&&"fragmentedText"!==r)return b=!1,void C.trigger(v.default.DATA_UPDATE_COMPLETED,{sender:this,data:j,currentRepresentation:P});for(var u=0;u<O.length;u++)x.updateRepresentation(O[u],!0)},getStreamProcessor:function(){return w},getCurrentRepresentation:t,getRepresentationForQuality:a,reset:function(){C.off(v.default.QUALITY_CHANGED,S,A),C.off(v.default.REPRESENTATION_UPDATED,_,A),C.off(v.default.WALLCLOCK_TIME_UPDATED,E,A),C.off(v.default.BUFFER_LEVEL_UPDATED,M,A),C.off(v.default.LIVE_EDGE_SEARCH_COMPLETED,T,A),j=null,D=-1,b=!0,O=[],N=null,L=null,F=null,B=null,k=null,U=null,K=null,H=null,q=null}},j=null,D=-1,b=!0,O=[],N=(0,u.default)(I).getInstance(),L=(0,d.default)(I).getInstance(),F=(0,l.default)(I).getInstance(),B=(0,f.default)(I).getInstance(),k=(0,c.default)(I).getInstance(),U=(0,h.default)(I).getInstance(),K=(0,s.default)(I).getInstance(),H=(0,i.default)(I).getInstance(),q=(0,o.default)(I).getInstance(),(0,g.default)(I).getInstance(),C.on(v.default.QUALITY_CHANGED,S,A),C.on(v.default.REPRESENTATION_UPDATED,_,A),C.on(v.default.WALLCLOCK_TIME_UPDATED,E,A),C.on(v.default.BUFFER_LEVEL_UPDATED,M,A),C.on(v.default.LIVE_EDGE_SEARCH_COMPLETED,T,A),A}Object.defineProperty(r,"__esModule",{value:!0});var i=n(e("../models/DashManifestModel.js")),o=n(e("../DashMetrics.js")),s=n(e("../utils/TimelineConverter.js")),u=n(e("../../streaming/controllers/AbrController.js")),l=n(e("../../streaming/controllers/PlaybackController.js")),d=n(e("../../streaming/controllers/StreamController.js")),f=n(e("../../streaming/models/ManifestModel.js")),c=n(e("../../streaming/models/MetricsModel.js")),g=n(e("../../streaming/models/MediaPlayerModel.js")),h=n(e("../../streaming/utils/DOMStorage.js")),p=n(e("../../streaming/vo/Error.js")),m=n(e("../../core/EventBus.js")),v=n(e("../../core/events/Events.js")),y=n(e("../../core/FactoryMaker.js"));a.__dashjs_factory_name="RepresentationController",r.default=y.default.getClassFactory(a),t.exports=r.default},{"../../core/EventBus.js":8,"../../core/FactoryMaker.js":9,"../../core/events/Events.js":11,"../../streaming/controllers/AbrController.js":49,"../../streaming/controllers/PlaybackController.js":57,"../../streaming/controllers/StreamController.js":60,"../../streaming/models/ManifestModel.js":89,"../../streaming/models/MediaPlayerModel.js":90,"../../streaming/models/MetricsModel.js":91,"../../streaming/utils/DOMStorage.js":138,"../../streaming/vo/Error.js":149,"../DashMetrics.js":15,"../models/DashManifestModel.js":19,"../utils/TimelineConverter.js":25}],19:[function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function a(){function e(e,t){var r,n,a,i=!1,o=!1,s=e.ContentComponent_asArray,u="text"!==t?new RegExp(t):new RegExp("(vtt|ttml)");if(e.Representation_asArray.length>0&&e.Representation_asArray[0].hasOwnProperty("codecs")){var l=e.Representation_asArray[0].codecs;if("stpp"===l||"wvtt"===l)return"fragmentedText"===t}if(s){if(s.length>1)return"muxed"==t;s[0]&&s[0].contentType===t&&(i=!0,o=!0)}if(e.hasOwnProperty("mimeType")&&(i=u.test(e.mimeType),o=!0),!o)for(r=0,n=e.Representation_asArray.length;!o&&n>r;)(a=e.Representation_asArray[r]).hasOwnProperty("mimeType")&&(i=u.test(a.mimeType),o=!0),r++;return i}function t(t){return e(t,"audio")}function r(t){return e(t,"video")}function n(t){return e(t,"fragmentedText")}function a(t){return e(t,"muxed")}function p(e){return"text/vtt"===e||"application/ttml+xml"===e}function m(e){return e.hasOwnProperty("Role_asArray")?e.Role_asArray:[]}function v(e){return m(e).filter(function(e){return"main"===e.value})[0]}function y(e){return void 0!==e.Representation_asArray&&null!==e.Representation_asArray&&e.Representation_asArray.sort(function(e,t){return e.bandwidth-t.bandwidth}),e}function _(t,r,n){var a,i,o=t.Period_asArray[r].AdaptationSet_asArray,s=[];for(a=0,i=o.length;i>a;a++)e(o[a],n)&&s.push(y(o[a]));return s}function E(e){var t=!1;return e.hasOwnProperty("type")&&(t="dynamic"===e.type),t}function T(e,t){var r=!1;return e.profiles&&e.profiles.length>0&&(r=-1!==e.profiles.indexOf(t)),r}function M(e){if(!e)throw new Error("Period cannot be null or undefined");var t=s.default.DEFAULT_ID;return e.hasOwnProperty("id")&&"__proto__"!==e.id&&(t=e.id),t}function S(e,t){return j.calcPresentationTimeFromWallTime(e.loadedTime,t)}function R(e,t){var r=NaN;return e.hasOwnProperty("minimumUpdatePeriod")&&(r=S(e,t)+e.minimumUpdatePeriod),r}function I(e,t){var r,n=R(e,t);if(e.mediaPresentationDuration)r=e.mediaPresentationDuration;else{if(isNaN(n))throw new Error("Must have @mediaPresentationDuration or @minimumUpdatePeriod on MPD or an explicit @duration on the last period.");r=n}return r}function C(e,t){var r=[];if(!e)return r;for(var n=0;n<e.length;n++){var a=new g.default;if(a.timescale=1,a.representation=t,!e[n].hasOwnProperty("schemeIdUri"))throw"Invalid EventStream. SchemeIdUri has to be set";a.schemeIdUri=e[n].schemeIdUri,e[n].hasOwnProperty("timescale")&&(a.timescale=e[n].timescale),e[n].hasOwnProperty("value")&&(a.value=e[n].value),r.push(a)}return r}var A=this.context,j=(0,d.default)(A).getInstance(),D=(0,h.default)(A).getInstance();return{getIsTypeOf:e,getIsAudio:t,getIsVideo:r,getIsText:function(t){return e(t,"text")},getIsMuxed:a,getIsTextTrack:p,getIsFragmentedText:n,getIsMain:v,getLanguageForAdaptation:function(e){var t="";return e.hasOwnProperty("lang")&&(t=e.lang.replace(/[^A-Za-z0-9-]/g,"")),t},getViewpointForAdaptation:function(e){return e.hasOwnProperty("Viewpoint")?e.Viewpoint:null},getRolesForAdaptation:m,getAccessibilityForAdaptation:function(e){return e.hasOwnProperty("Accessibility_asArray")?e.Accessibility_asArray:[]},getAudioChannelConfigurationForAdaptation:function(e){return e.hasOwnProperty("AudioChannelConfiguration_asArray")?e.AudioChannelConfiguration_asArray:[]},processAdaptation:y,getAdaptationForIndex:function(e,t,r){return t.Period_asArray[r].AdaptationSet_asArray[e]},getIndexForAdaptation:function(e,t,r){var n,a,i=t.Period_asArray[r].AdaptationSet_asArray;for(n=0,a=i.length;a>n;n++)if(i[n]===e)return n;return-1},getAdaptationForId:function(e,t,r){var n,a,i=t.Period_asArray[r].AdaptationSet_asArray;for(n=0,a=i.length;a>n;n++)if(i[n].hasOwnProperty("id")&&i[n].id===e)return i[n];return null},getAdaptationsForType:_,getAdaptationForType:function(e,t,r){var n,a,i;if(!(i=_(e,t,r))||0===i.length)return null;for(n=0,a=i.length;a>n;n++)if(v(i[n]))return i[n];return i[0]},getCodec:function(e){var t=e.Representation_asArray[0];return t.mimeType+';codecs="'+t.codecs+'"'},getMimeType:function(e){return e.Representation_asArray[0].mimeType},getKID:function(e){return e&&e.hasOwnProperty("cenc:default_KID")?e["cenc:default_KID"]:null},getContentProtectionData:function(e){return e&&e.hasOwnProperty("ContentProtection_asArray")&&0!==e.ContentProtection_asArray.length?e.ContentProtection_asArray:null},getIsDynamic:E,getIsDVR:function(e){var t,r=E(e);return t=!isNaN(e.timeShiftBufferDepth),r&&t},getIsOnDemand:function(e){return T(e,"urn:mpeg:dash:profile:isoff-on-demand:2011")},getIsDVB:function(e){return T(e,"urn:dvb:dash:profile:dvb-dash:2014")},getDuration:function(e){return e.hasOwnProperty("mediaPresentationDuration")?e.mediaPresentationDuration:Number.MAX_VALUE},getBandwidth:function(e){return e.bandwidth},getRefreshDelay:function(e){var t=NaN;return e.hasOwnProperty("minimumUpdatePeriod")&&(t=Math.max(parseFloat(e.minimumUpdatePeriod),2)),t},getRepresentationCount:function(e){return e.Representation_asArray.length},getBitrateListForAdaptation:function(e){if(!e||!e.Representation_asArray||!e.Representation_asArray.length)return null;for(var t=y(e).Representation_asArray,r=t.length,n=[],a=0;r>a;a++)n.push({bandwidth:t[a].bandwidth,width:t[a].width||0,height:t[a].height||0});return n},getRepresentationFor:function(e,t){return t.Representation_asArray[e]},getRepresentationsForAdaptation:function(e,t){for(var r,n,a,o,s,u=y(e.Period_asArray[t.period.index].AdaptationSet_asArray[t.index]),l=[],d=0;d<u.Representation_asArray.length;d++)o=u.Representation_asArray[d],(r=new i.default).index=d,r.adaptation=t,o.hasOwnProperty("id")&&(r.id=o.id),o.hasOwnProperty("bandwidth")&&(r.bandwidth=o.bandwidth),o.hasOwnProperty("maxPlayoutRate")&&(r.maxPlayoutRate=o.maxPlayoutRate),o.hasOwnProperty("SegmentBase")?(a=o.SegmentBase,r.segmentInfoType="SegmentBase"):o.hasOwnProperty("SegmentList")?(a=o.SegmentList,r.segmentInfoType="SegmentList",r.useCalculatedLiveEdgeTime=!0):o.hasOwnProperty("SegmentTemplate")?((a=o.SegmentTemplate).hasOwnProperty("SegmentTimeline")?(r.segmentInfoType="SegmentTimeline",(!(s=a.SegmentTimeline.S_asArray[a.SegmentTimeline.S_asArray.length-1]).hasOwnProperty("r")||s.r>=0)&&(r.useCalculatedLiveEdgeTime=!0)):r.segmentInfoType="SegmentTemplate",a.hasOwnProperty("initialization")&&(r.initialization=a.initialization.split("$Bandwidth$").join(o.bandwidth).split("$RepresentationID$").join(o.id))):(a=o.BaseURL,r.segmentInfoType="BaseURL"),a.hasOwnProperty("Initialization")?(n=a.Initialization).hasOwnProperty("sourceURL")?r.initialization=n.sourceURL:n.hasOwnProperty("range")&&(r.range=n.range):o.hasOwnProperty("mimeType")&&p(o.mimeType)&&(r.range=0),a.hasOwnProperty("timescale")&&(r.timescale=a.timescale),a.hasOwnProperty("duration")&&(r.segmentDuration=a.duration/r.timescale),a.hasOwnProperty("startNumber")&&(r.startNumber=a.startNumber),a.hasOwnProperty("indexRange")&&(r.indexRange=a.indexRange),a.hasOwnProperty("presentationTimeOffset")&&(r.presentationTimeOffset=a.presentationTimeOffset/r.timescale),r.MSETimeOffset=j.calcMSETimeOffset(r),r.path=[t.period.index,t.index,d],l.push(r);return l},getAdaptationsForPeriod:function(e,i){for(var s,u,l=e.Period_asArray[i.index],d=[],f=0;f<l.AdaptationSet_asArray.length;f++)u=l.AdaptationSet_asArray[f],s=new o.default,u.hasOwnProperty("id")&&(s.id=u.id),s.index=f,s.period=i,a(u)?s.type="muxed":t(u)?s.type="audio":r(u)?s.type="video":n(u)?s.type="fragmentedText":s.type="text",d.push(s);return d},getRegularPeriods:function(e,t){var r,n,a=E(e),i=[],o=null,u=null,l=null,d=null;for(n=0,r=e.Period_asArray.length;r>n;n++)(u=e.Period_asArray[n]).hasOwnProperty("start")?(d=new s.default).start=u.start:null!==o&&u.hasOwnProperty("duration")&&null!==l?((d=new s.default).start=l.start+l.duration,d.duration=u.duration):0!==n||a||((d=new s.default).start=0),null!==l&&isNaN(l.duration)&&(l.duration=d.start-l.start),null!==d&&(d.id=M(u)),null!==d&&u.hasOwnProperty("duration")&&(d.duration=u.duration),null!==d&&(d.index=n,d.mpd=t,i.push(d),o=u,l=d),u=null,d=null;return 0===i.length||null!==l&&isNaN(l.duration)&&(l.duration=I(e,l)-l.start),i},getPeriodId:M,getMpd:function(e){var t=new u.default;return t.manifest=e,e.hasOwnProperty("availabilityStartTime")?t.availabilityStartTime=new Date(e.availabilityStartTime.getTime()):t.availabilityStartTime=new Date(e.loadedTime.getTime()),e.hasOwnProperty("availabilityEndTime")&&(t.availabilityEndTime=new Date(e.availabilityEndTime.getTime())),e.hasOwnProperty("suggestedPresentationDelay")&&(t.suggestedPresentationDelay=e.suggestedPresentationDelay),e.hasOwnProperty("timeShiftBufferDepth")&&(t.timeShiftBufferDepth=e.timeShiftBufferDepth),e.hasOwnProperty("maxSegmentDuration")&&(t.maxSegmentDuration=e.maxSegmentDuration),t},getFetchTime:S,getCheckTime:R,getEndTimeForLastPeriod:I,getEventsForPeriod:function(e,t){var r=e.Period_asArray[t.index].EventStream_asArray,n=[];if(r)for(var a=0;a<r.length;a++){var i=new g.default;if(i.period=t,i.timescale=1,!r[a].hasOwnProperty("schemeIdUri"))throw"Invalid EventStream. SchemeIdUri has to be set";i.schemeIdUri=r[a].schemeIdUri,r[a].hasOwnProperty("timescale")&&(i.timescale=r[a].timescale),r[a].hasOwnProperty("value")&&(i.value=r[a].value);for(var o=0;o<r[a].Event_asArray.length;o++){var s=new f.default;s.presentationTime=0,s.eventStream=i,r[a].Event_asArray[o].hasOwnProperty("presentationTime")&&(s.presentationTime=r[a].Event_asArray[o].presentationTime),r[a].Event_asArray[o].hasOwnProperty("duration")&&(s.duration=r[a].Event_asArray[o].duration),r[a].Event_asArray[o].hasOwnProperty("id")&&(s.id=r[a].Event_asArray[o].id),n.push(s)}}return n},getEventStreams:C,getEventStreamForAdaptationSet:function(e,t){return C(e.Period_asArray[t.period.index].AdaptationSet_asArray[t.index].InbandEventStream_asArray,null)},getEventStreamForRepresentation:function(e,t){return C(e.Period_asArray[t.adaptation.period.index].AdaptationSet_asArray[t.adaptation.index].Representation_asArray[t.index].InbandEventStream_asArray,t)},getUTCTimingSources:function(e){var t=E(e),r=e.hasOwnProperty("availabilityStartTime"),n=e.UTCTiming_asArray,a=[];return(t||r)&&n&&n.forEach(function(e){var t=new l.default;e.hasOwnProperty("schemeIdUri")&&(t.schemeIdUri=e.schemeIdUri,e.hasOwnProperty("value")&&(t.value=e.value.toString(),a.push(t)))}),a},getBaseURLsFromElement:function(e){var t=[],r=e.BaseURL_asArray||[e.baseUri]||[],n=!1;return r.some(function(r){if(r){var a=new c.default,i=r.__text||r;return D.isRelative(i)&&(n=!0,e.baseUri&&(i=e.baseUri+i)),a.url=i,r.hasOwnProperty("serviceLocation")&&r.serviceLocation.length?a.serviceLocation=r.serviceLocation:a.serviceLocation=i,r.hasOwnProperty("dvb:priority")&&(a.dvb_priority=r["dvb:priority"]),r.hasOwnProperty("dvb:weight")&&(a.dvb_weight=r["dvb:weight"]),t.push(a),n}}),t},getRepresentationSortFunction:function(){return function(e,t){return e.bandwidth-t.bandwidth}}}}Object.defineProperty(r,"__esModule",{value:!0});var i=n(e("../vo/Representation.js")),o=n(e("../vo/AdaptationSet.js")),s=n(e("../vo/Period.js")),u=n(e("../vo/Mpd.js")),l=n(e("../vo/UTCTiming.js")),d=n(e("../utils/TimelineConverter.js")),f=n(e("../vo/Event.js")),c=n(e("../vo/BaseURL.js")),g=n(e("../vo/EventStream.js")),h=n(e("../../streaming/utils/URLUtils.js")),p=n(e("../../core/FactoryMaker.js"));a.__dashjs_factory_name="DashManifestModel",r.default=p.default.getSingletonFactory(a),t.exports=r.default},{"../../core/FactoryMaker.js":9,"../../streaming/utils/URLUtils.js":145,"../utils/TimelineConverter.js":25,"../vo/AdaptationSet.js":27,"../vo/BaseURL.js":28,"../vo/Event.js":29,"../vo/EventStream.js":30,"../vo/Mpd.js":31,"../vo/Period.js":32,"../vo/Representation.js":33,"../vo/UTCTiming.js":35}],20:[function(e,t,r){"use strict";function n(){var e=void 0;return{getSamplesInfo:function(t){var r,n,a,i,o,s,u,l,d,f,c=e.parse(t),g=c.getBox("tfhd"),h=c.getBox("tfdt"),p=c.getBox("trun"),m=c.getBox("moof");for(f=c.getBox("mfhd").sequence_number,a=p.sample_count,o=h.baseMediaDecodeTime,d=(g.base_data_offset||0)+(p.data_offset||0),s=[],l=0;a>l;l++)r=void 0!==(u=p.samples[l]).sample_duration?u.sample_duration:g.default_sample_duration,i=void 0!==u.sample_size?u.sample_size:g.default_sample_size,n=void 0!==u.sample_composition_time_offset?u.sample_composition_time_offset:0,s.push({dts:o,cts:o+n,duration:r,offset:m.offset+d,size:i}),d+=i,o+=r;return{sampleList:s,sequenceNumber:f,totalDuration:o-h.baseMediaDecodeTime}},getMediaTimescaleFromMoov:function(t){var r=e.parse(t).getBox("mdhd");return r?r.timescale:NaN},setConfig:function(t){t&&t.boxParser&&(e=t.boxParser)}}}Object.defineProperty(r,"__esModule",{value:!0});var a=function(e){return e&&e.__esModule?e:{default:e}}(e("../../core/FactoryMaker.js"));n.__dashjs_factory_name="FragmentedTextBoxParser",r.default=a.default.getSingletonFactory(n),t.exports=r.default},{"../../core/FactoryMaker.js":9}],21:[function(e,t,r){"use strict";function n(e,t){var r=e.timelineConverter;return{getSegments:function(e,n,a,o){var s,u,l,d,f,c,g,h=e.adaptation.period.mpd.manifest.Period_asArray[e.adaptation.period.index].AdaptationSet_asArray[e.adaptation.index].Representation_asArray[e.index].SegmentList,p=e.adaptation.period.mpd.manifest.Period_asArray[e.adaptation.period.index].AdaptationSet_asArray[e.adaptation.index].Representation_asArray[e.index].BaseURL,m=h.SegmentURL_asArray.length,v=[];for(g=e.startNumber,d=(0,i.decideSegmentListRangeForTemplate)(r,t,e,n,a,o),f=Math.max(d.start,0),c=Math.min(d.end,h.SegmentURL_asArray.length-1),s=f;c>=s;s++)l=h.SegmentURL_asArray[s],(u=(0,i.getIndexBasedSegment)(r,t,e,s)).replacementTime=(g+s-1)*e.segmentDuration,u.media=l.media?l.media:p,u.mediaRange=l.mediaRange,u.index=l.index,u.indexRange=l.indexRange,v.push(u),u=null;return e.availableSegmentsNumber=m,v}}}Object.defineProperty(r,"__esModule",{value:!0});var a=function(e){return e&&e.__esModule?e:{default:e}}(e("../../core/FactoryMaker.js")),i=e("./SegmentsUtils.js");n.__dashjs_factory_name="ListSegmentsGetter";var o=a.default.getClassFactory(n);r.default=o,t.exports=r.default},{"../../core/FactoryMaker.js":9,"./SegmentsUtils.js":23}],22:[function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function a(e,t){var r,n=this.context,a=void 0,i=void 0,l=void 0;return r={getSegments:function(e,t,r,n,o){var s,u=e.segmentInfoType;return"SegmentBase"!==u&&"BaseURL"!==u&&function(e,t){var r,n,a=e.segments,i=!1;return a&&0!==a.length?(n=a[0].availabilityIdx,r=a[a.length-1].availabilityIdx,i=n>t||t>r):i=!0,i}(e,r)?("SegmentTimeline"===u?s=a.getSegments(e,t,r,o):"SegmentTemplate"===u?s=i.getSegments(e,t,r,o):"SegmentList"===u&&(s=l.getSegments(e,t,r,o)),n&&n(e,s)):s=e.segments,s}},a=(0,o.default)(n).create(e,t),i=(0,s.default)(n).create(e,t),l=(0,u.default)(n).create(e,t),r}Object.defineProperty(r,"__esModule",{value:!0});var i=n(e("../../core/FactoryMaker.js")),o=n(e("./TimelineSegmentsGetter.js")),s=n(e("./TemplateSegmentsGetter.js")),u=n(e("./ListSegmentsGetter.js"));a.__dashjs_factory_name="SegmentsGetter";var l=i.default.getClassFactory(a);r.default=l,t.exports=r.default},{"../../core/FactoryMaker.js":9,"./ListSegmentsGetter.js":21,"./TemplateSegmentsGetter.js":24,"./TimelineSegmentsGetter.js":26}],23:[function(e,t,r){"use strict";function n(e,t){for(;e.length<t;)e="0"+e;return e}function a(e,t){return e.representation.startNumber+t}function i(e,t,r){for(var a,i,o,s,u,l,d=t.length;;){if(0>(a=e.indexOf("$"+t)))return e;if(0>(i=e.indexOf("$",a+d)))return e;if((o=e.indexOf("%0",a+d))>a&&i>o)switch(s=e.charAt(i-1),u=parseInt(e.substring(o+2,i-1),10),s){case"d":case"i":case"u":l=n(r.toString(),u);break;case"x":l=n(r.toString(16),u);break;case"X":l=n(r.toString(16),u).toUpperCase();break;case"o":l=n(r.toString(8),u);break;default:return e}else l=r;e=e.substring(0,a)+l+e.substring(i+1)}}function o(e,t){if(!t||!t.segments)return null;var r,n,a=t.segments.length;if(a>e&&(r=t.segments[e])&&r.availabilityIdx===e)return r;for(n=0;a>n;n++)if((r=t.segments[n])&&r.availabilityIdx===e)return r;return null}Object.defineProperty(r,"__esModule",{value:!0}),r.replaceTokenForTemplate=i,r.getIndexBasedSegment=function(e,t,r,n){var i,o,u,l;return o=r.segmentDuration,isNaN(o)&&(o=r.adaptation.period.duration),l=(u=r.adaptation.period.start+n*o)+o,(i=new s.default).representation=r,i.duration=o,i.presentationStartTime=u,i.mediaStartTime=e.calcMediaTimeFromPresentationTime(i.presentationStartTime,r),i.availabilityStartTime=e.calcAvailabilityStartTimeFromPresentationTime(i.presentationStartTime,r.adaptation.period.mpd,t),i.availabilityEndTime=e.calcAvailabilityEndTimeFromPresentationTime(l,r.adaptation.period.mpd,t),i.wallStartTime=e.calcWallTimeForSegment(i,t),i.replacementNumber=a(i,n),i.availabilityIdx=n,i},r.getTimeBasedSegment=function(e,t,r,n,o,u,l,d,f){var c,g,h,p=n/u,m=Math.min(o/u,r.adaptation.period.mpd.maxSegmentDuration);return g=(c=e.calcPresentationTimeFromMediaTime(p,r))+m,(h=new s.default).representation=r,h.duration=m,h.mediaStartTime=p,h.presentationStartTime=c,h.availabilityStartTime=r.adaptation.period.mpd.manifest.loadedTime,h.availabilityEndTime=e.calcAvailabilityEndTimeFromPresentationTime(g,r.adaptation.period.mpd,t),h.wallStartTime=e.calcWallTimeForSegment(h,t),h.replacementTime=n,h.replacementNumber=a(h,f),l=i(l,"Number",h.replacementNumber),l=i(l,"Time",h.replacementTime),h.media=l,h.mediaRange=d,h.availabilityIdx=f,h},r.getSegmentByIndex=o,r.decideSegmentListRangeForTimeline=function(e,t,r,n,a){var i=a||10,o=Number.POSITIVE_INFINITY;return t&&!e.isTimeSyncCompleted()?{start:0,end:o}:!t&&r||0>n?null:{start:Math.max(n-2,0),end:Math.min(n+i,o)}},r.decideSegmentListRangeForTemplate=function(e,t,r,n,a,i){var s,u=r.segmentDuration,l=r.adaptation.period.mpd.manifest.minBufferTime,d=r.segmentAvailabilityRange,f={start:e.calcPeriodRelativeTimeFromMpdRelativeTime(r,d.start),end:e.calcPeriodRelativeTimeFromMpdRelativeTime(r,d.end)},c=r.segments,g=2*u,h=i||Math.max(2*l,10*u),p=NaN,m=null;return f.start=Math.max(f.start,0),t&&!e.isTimeSyncCompleted()?{start:s=Math.floor(f.start/u),end:Math.floor(f.end/u)}:(p=c&&c.length>0?(m=o(a,r))?e.calcPeriodRelativeTimeFromMpdRelativeTime(r,m.presentationStartTime):a>0?a*u:e.calcPeriodRelativeTimeFromMpdRelativeTime(r,n):a>0?a*u:t?f.end:f.start,{start:s=Math.floor(Math.max(p-g,f.start)/u),end:Math.floor(Math.min(s+h/u,f.end/u))})};var s=function(e){return e&&e.__esModule?e:{default:e}}(e("./../vo/Segment.js"))},{"./../vo/Segment.js":34}],24:[function(e,t,r){"use strict";function n(e,t){var r=e.timelineConverter;return{getSegments:function(e,n,a,o){var s,u,l,d,f,c=e.adaptation.period.mpd.manifest.Period_asArray[e.adaptation.period.index].AdaptationSet_asArray[e.adaptation.index].Representation_asArray[e.index].SegmentTemplate,g=e.segmentDuration,h=e.segmentAvailabilityRange,p=[],m=null,v=null;for(f=e.startNumber,l=(s=isNaN(g)&&!t?{start:f,end:f}:(0,i.decideSegmentListRangeForTemplate)(r,t,e,n,a,o)).start,d=s.end,u=l;d>=u;u++)(v=(0,i.getIndexBasedSegment)(r,t,e,u)).replacementTime=(f+u-1)*e.segmentDuration,m=c.media,m=(0,i.replaceTokenForTemplate)(m,"Number",v.replacementNumber),m=(0,i.replaceTokenForTemplate)(m,"Time",v.replacementTime),v.media=m,p.push(v),v=null;return isNaN(g)?e.availableSegmentsNumber=1:e.availableSegmentsNumber=Math.ceil((h.end-h.start)/g),p}}}Object.defineProperty(r,"__esModule",{value:!0});var a=function(e){return e&&e.__esModule?e:{default:e}}(e("../../core/FactoryMaker.js")),i=e("./SegmentsUtils.js");n.__dashjs_factory_name="TemplateSegmentsGetter";var o=a.default.getClassFactory(n);r.default=o,t.exports=r.default},{"../../core/FactoryMaker.js":9,"./SegmentsUtils.js":23}],25:[function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function a(){function e(e,t,r,n){return n?r&&t.timeShiftBufferDepth!=Number.POSITIVE_INFINITY?new Date(t.availabilityStartTime.getTime()+1e3*(e+t.timeShiftBufferDepth)):t.availabilityEndTime:r?new Date(t.availabilityStartTime.getTime()+1e3*(e-u)):t.availabilityStartTime}function t(e,t){return(e.getTime()-t.mpd.availabilityStartTime.getTime()+1e3*u)/1e3}function r(e){l||e.error||(u+=e.liveEdge-(d+e.searchTime),l=!0)}function n(e){l||e.error||(u=e.offset/1e3,l=!0)}var a=this.context,s=(0,i.default)(a).getInstance(),u=void 0,l=void 0,d=void 0;return{initialize:function(){u=0,l=!1,d=NaN,s.on(o.default.LIVE_EDGE_SEARCH_COMPLETED,r,this),s.on(o.default.TIME_SYNCHRONIZATION_COMPLETED,n,this)},isTimeSyncCompleted:function(){return l},setTimeSyncCompleted:function(e){l=e},getClientTimeOffset:function(){return u},getExpectedLiveEdge:function(){return d},setExpectedLiveEdge:function(e){d=e},calcAvailabilityStartTimeFromPresentationTime:function(t,r,n){return e.call(this,t,r,n)},calcAvailabilityEndTimeFromPresentationTime:function(t,r,n){return e.call(this,t,r,n,!0)},calcPresentationTimeFromWallTime:t,calcPresentationTimeFromMediaTime:function(e,t){return e+(t.adaptation.period.start-t.presentationTimeOffset)},calcPeriodRelativeTimeFromMpdRelativeTime:function(e,t){return t-e.adaptation.period.start},calcMpdRelativeTimeFromPeriodRelativeTime:function(e,t){return t+e.adaptation.period.start},calcMediaTimeFromPresentationTime:function(e,t){return e-t.adaptation.period.start+t.presentationTimeOffset},calcSegmentAvailabilityRange:function(e,r){var n,a,i=e.adaptation.period.start,o=i+e.adaptation.period.duration,s={start:i,end:o},u=e.segmentDuration||(e.segments&&e.segments.length?e.segments[e.segments.length-1].duration:0);if(!r)return s;if(!l&&e.segmentAvailabilityRange)return e.segmentAvailabilityRange;n=e.adaptation.period.mpd.checkTime,a=t(new Date,e.adaptation.period),i=Math.max(a-e.adaptation.period.mpd.timeShiftBufferDepth,e.adaptation.period.start);var d=isNaN(n)?a:Math.min(n,a),f=e.adaptation.period.start+e.adaptation.period.duration;return{start:i,end:o=(d>=f&&f>d-u?f:d)-u}},calcWallTimeForSegment:function(e,t){var r,n,a;return t&&(r=e.representation.adaptation.period.mpd.suggestedPresentationDelay,n=e.presentationStartTime+r,a=new Date(e.availabilityStartTime.getTime()+1e3*n)),a},calcMSETimeOffset:function(e){var t=e.presentationTimeOffset;return e.adaptation.period.start-t},reset:function(){s.off(o.default.LIVE_EDGE_SEARCH_COMPLETED,r,this),s.off(o.default.TIME_SYNCHRONIZATION_COMPLETED,n,this),u=0,l=!1,d=NaN}}}Object.defineProperty(r,"__esModule",{value:!0});var i=n(e("../../core/EventBus.js")),o=n(e("../../core/events/Events.js")),s=n(e("../../core/FactoryMaker.js"));a.__dashjs_factory_name="TimelineConverter",r.default=s.default.getSingletonFactory(a),t.exports=r.default},{"../../core/EventBus.js":8,"../../core/FactoryMaker.js":9,"../../core/events/Events.js":11}],26:[function(e,t,r){"use strict";function n(e,t){var r=e.timelineConverter;return{getSegments:function(e,n,a,o){var s,u,l,d,f,c,g,h,p,m,v,y,_,E,T=e.adaptation.period.mpd.manifest.Period_asArray[e.adaptation.period.index].AdaptationSet_asArray[e.adaptation.index].Representation_asArray[e.index].SegmentTemplate,M=T.SegmentTimeline,S=e.availableSegmentsNumber>0,R=0,I=0,C=-1,A=[],j=!1,D=function(n){return(0,i.getTimeBasedSegment)(r,t,e,R,n.d,E,T.media,n.mediaRange,C)};for(E=e.timescale,s=M.S_asArray,(p=(0,i.decideSegmentListRangeForTimeline)(r,t,n,a,o))?(y=p.start,_=p.end):v=r.calcMediaTimeFromPresentationTime(n||0,e),l=0,d=s.length;d>l;l++){if(c=0,(u=s[l]).hasOwnProperty("r")&&(c=u.r),u.hasOwnProperty("t")&&(I=(R=u.t)/E),0>c){if((h=s[l+1])&&h.hasOwnProperty("t"))g=h.t/E;else{var b=e.segmentAvailabilityRange?e.segmentAvailabilityRange.end:r.calcSegmentAvailabilityRange(e,t).end;g=r.calcMediaTimeFromPresentationTime(b,e),e.segmentDuration=u.d/E}c=Math.ceil((g-I)/(u.d/E))-1}if(m){if(S)break;C+=c+1}else for(f=0;c>=f;f++){if(C++,p){if(C>_){if(m=!0,S)break;continue}C>=y&&A.push(D(u))}else{if(A.length>10){if(m=!0,S)break;continue}j?A.push(D(u)):I>=v-u.d/E*1.5&&(j=!0,A.push(D(u)))}I=(R+=u.d)/E}}return S||(e.availableSegmentsNumber=C+1),A}}}Object.defineProperty(r,"__esModule",{value:!0});var a=function(e){return e&&e.__esModule?e:{default:e}}(e("../../core/FactoryMaker.js")),i=e("./SegmentsUtils.js");n.__dashjs_factory_name="TimelineSegmentsGetter";var o=a.default.getClassFactory(n);r.default=o,t.exports=r.default},{"../../core/FactoryMaker.js":9,"./SegmentsUtils.js":23}],27:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=function e(){(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,e),this.period=null,this.index=-1,this.type=null},t.exports=r.default},{}],28:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=function e(t,r,n,a){(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,e),this.url=t||"",this.serviceLocation=r||t||"",this.dvb_priority=n||1,this.dvb_weight=a||1};n.DEFAULT_DVB_PRIORITY=1,n.DEFAULT_DVB_WEIGHT=1,r.default=n,t.exports=r.default},{}],29:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=function e(){(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,e),this.duration=NaN,this.presentationTime=NaN,this.id=NaN,this.messageData="",this.eventStream=null,this.presentationTimeDelta=NaN},t.exports=r.default},{}],30:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=function e(){(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,e),this.adaptionSet=null,this.representation=null,this.period=null,this.timescale=1,this.value="",this.schemeIdUri=""},t.exports=r.default},{}],31:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=function e(){(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,e),this.manifest=null,this.suggestedPresentationDelay=0,this.availabilityStartTime=null,this.availabilityEndTime=Number.POSITIVE_INFINITY,this.timeShiftBufferDepth=Number.POSITIVE_INFINITY,this.maxSegmentDuration=Number.POSITIVE_INFINITY,this.checkTime=NaN,this.clientServerTimeShift=0,this.isClientServerTimeSyncCompleted=!1},t.exports=r.default},{}],32:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=function e(){(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,e),this.id=null,this.index=-1,this.duration=NaN,this.start=NaN,this.mpd=null};n.DEFAULT_ID="defaultId",r.default=n,t.exports=r.default},{}],33:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=function e(){(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,e),this.id=null,this.index=-1,this.adaptation=null,this.segmentInfoType=null,this.initialization=null,this.segmentDuration=NaN,this.timescale=1,this.startNumber=1,this.indexRange=null,this.range=null,this.presentationTimeOffset=0,this.MSETimeOffset=NaN,this.segmentAvailabilityRange=null,this.availableSegmentsNumber=0,this.bandwidth=NaN,this.maxPlayoutRate=NaN},t.exports=r.default},{}],34:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=function e(){(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,e),this.indexRange=null,this.index=null,this.mediaRange=null,this.media=null,this.duration=NaN,this.replacementTime=null,this.replacementNumber=NaN,this.mediaStartTime=NaN,this.presentationStartTime=NaN,this.availabilityStartTime=NaN,this.availabilityEndTime=NaN,this.availabilityIdx=NaN,this.wallStartTime=NaN,this.representation=null},t.exports=r.default},{}],35:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=function e(){(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,e),this.schemeIdUri="",this.value=""},t.exports=r.default},{}],36:[function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function a(e){var t=this.context,r=(0,u.default)(t).getInstance(),n=void 0,a=void 0;return n={checkForExistence:function(e){var t=function(t){r.trigger(l.default.CHECK_FOR_EXISTENCE_COMPLETED,{request:e,exists:t})};if(e){var n=new o.default(e.url);a.load({request:n,success:function(){t(!0)},error:function(){t(!1)}})}else t(!1)},load:function(e){var t=function(t,a){r.trigger(l.default.LOADING_COMPLETED,{request:e,response:t||null,error:a||null,sender:n})};e?a.load({request:e,progress:function(){r.trigger(l.default.LOADING_PROGRESS,{request:e})},success:function(e){t(e)},error:function(e,r,n){t(void 0,new s.default(f,n,r))}}):t(void 0,new s.default(c,g))},abort:function(){a&&a.abort()},reset:function(){a&&(a.abort(),a=null)}},a=(0,i.default)(t).create({errHandler:e.errHandler,metricsModel:e.metricsModel,requestModifier:e.requestModifier}),n}Object.defineProperty(r,"__esModule",{value:!0});var i=n(e("./XHRLoader.js")),o=n(e("./vo/HeadRequest.js")),s=n(e("./vo/Error.js")),u=n(e("./../core/EventBus.js")),l=n(e("./../core/events/Events.js")),d=n(e("../core/FactoryMaker.js")),f=1,c=2,g="request is null";a.__dashjs_factory_name="FragmentLoader";var h=d.default.getClassFactory(a);h.FRAGMENT_LOADER_ERROR_LOADING_FAILURE=f,h.FRAGMENT_LOADER_ERROR_NULL_REQUEST=c,r.default=h,t.exports=r.default},{"../core/FactoryMaker.js":9,"./../core/EventBus.js":8,"./../core/events/Events.js":11,"./XHRLoader.js":47,"./vo/Error.js":149,"./vo/HeadRequest.js":151}],37:[function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function a(e){function t(e){n.trigger(c.default.INTERNAL_MANIFEST_LOADED,{manifest:e.manifest})}var r=this.context,n=(0,f.default)(r).getInstance(),a=(0,s.default)(r).getInstance(),g=e.parser,v=void 0,y=void 0,_=void 0;return v={load:function(e){var t=new u.default(e,d.default.MPD_TYPE);y.load({request:t,success:function(t,r,i){var o,s;i.responseURL&&i.responseURL!==e?(s=a.parseBaseUrl(i.responseURL),o=i.responseURL):(a.isRelative(e)&&(e=a.parseBaseUrl(window.location.href)+e),s=a.parseBaseUrl(e));var u=g.parse(t,_);u?(u.url=o||e,u.originalUrl||(u.originalUrl=u.url),u.baseUri=s,u.loadedTime=new Date,_.resolveManifestOnLoad(u)):n.trigger(c.default.INTERNAL_MANIFEST_LOADED,{manifest:null,error:new l.default(h,m)})},error:function(t,r,a){n.trigger(c.default.INTERNAL_MANIFEST_LOADED,{manifest:null,error:new l.default(p,"Failed loading manifest: "+e+", "+a)})}})},reset:function(){n.off(c.default.XLINK_READY,t,v),_&&(_.reset(),_=null),y&&(y.abort(),y=null)}},n.on(c.default.XLINK_READY,t,v),y=(0,o.default)(r).create({errHandler:e.errHandler,metricsModel:e.metricsModel,requestModifier:e.requestModifier}),_=(0,i.default)(r).create({errHandler:e.errHandler,metricsModel:e.metricsModel,requestModifier:e.requestModifier}),v}Object.defineProperty(r,"__esModule",{value:!0});var i=n(e("./controllers/XlinkController.js")),o=n(e("./XHRLoader.js")),s=n(e("./utils/URLUtils.js")),u=n(e("./vo/TextRequest.js")),l=n(e("./vo/Error.js")),d=n(e("./vo/metrics/HTTPRequest.js")),f=n(e("../core/EventBus.js")),c=n(e("../core/events/Events.js")),g=n(e("../core/FactoryMaker.js")),h=1,p=2,m="parsing failed";a.__dashjs_factory_name="ManifestLoader";var v=g.default.getClassFactory(a);v.MANIFEST_LOADER_ERROR_PARSING_FAILURE=h,v.MANIFEST_LOADER_ERROR_LOADING_FAILURE=p,r.default=v,t.exports=r.default},{"../core/EventBus.js":8,"../core/FactoryMaker.js":9,"../core/events/Events.js":11,"./XHRLoader.js":47,"./controllers/XlinkController.js":63,"./utils/URLUtils.js":145,"./vo/Error.js":149,"./vo/TextRequest.js":157,"./vo/metrics/HTTPRequest.js":166}],38:[function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function a(){function e(){null!==p&&(clearInterval(p),p=null)}function t(){e(),isNaN(h)||(c("Refresh manifest in "+h+" seconds."),p=setTimeout(n,Math.min(1e3*h,Math.pow(2,31)-1),this))}function r(e){var r,n,a=new Date;_.setValue(e),c("Manifest has been refreshed at "+a+"["+a.getTime()/1e3+"] "),r=E.getRefreshDelay(e),n=((new Date).getTime()-e.loadedTime.getTime())/1e3,h=Math.max(r-n,0),g.trigger(o.default.MANIFEST_UPDATED,{manifest:e}),m||t()}function n(){var e,t;m||v||(v=!0,t=(e=_.getValue()).url,e.hasOwnProperty("Location")&&(t=e.Location),y.load(t))}function a(e){e.error||r(e.manifest)}function s(){m=!1,t()}function l(){m=!0,e()}function d(){v=!1}var f=this.context,c=(0,u.default)(f).getInstance().log,g=(0,i.default)(f).getInstance(),h=void 0,p=void 0,m=void 0,v=void 0,y=void 0,_=void 0,E=void 0;return{initialize:function(e){y=e,h=NaN,p=null,v=!1,m=!0,g.on(o.default.STREAMS_COMPOSED,d,this),g.on(o.default.PLAYBACK_STARTED,s,this),g.on(o.default.PLAYBACK_PAUSED,l,this),g.on(o.default.INTERNAL_MANIFEST_LOADED,a,this)},setManifest:function(e){r(e)},getManifestLoader:function(){return y},setConfig:function(e){e&&(e.manifestModel&&(_=e.manifestModel),e.dashManifestModel&&(E=e.dashManifestModel))},reset:function(){g.off(o.default.PLAYBACK_STARTED,s,this),g.off(o.default.PLAYBACK_PAUSED,l,this),g.off(o.default.STREAMS_COMPOSED,d,this),g.off(o.default.INTERNAL_MANIFEST_LOADED,a,this),m=!0,v=!1,e(),h=NaN}}}Object.defineProperty(r,"__esModule",{value:!0});var i=n(e("../core/EventBus.js")),o=n(e("../core/events/Events.js")),s=n(e("../core/FactoryMaker.js")),u=n(e("../core/Debug.js"));a.__dashjs_factory_name="ManifestUpdater",r.default=s.default.getSingletonFactory(a),t.exports=r.default},{"../core/Debug.js":7,"../core/EventBus.js":8,"../core/FactoryMaker.js":9,"../core/events/Events.js":11}],39:[function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function a(){function e(){return!!Oe&&!!ce}function t(){if(!pe)throw ie;return je.isPaused()}function r(e){var t=$();if(!t)return 0;var r=t.range.start+e;return r>t.range.end&&(r=t.range.end),r}function n(e){if(!pe)throw ie;var t=z().currentTime;if(void 0!==e&&(t=Ce.getTimeRelativeToStreamId(t,e)),je.getIsDynamic()){var r=$();t=null===r?0:a()-(r.range.end-r.time)}return t}function a(){if(!pe)throw ie;var e=z().duration;if(je.getIsDynamic()){var t,r=$();if(!r)return 0;e=(t=r.range.end-r.range.start)<r.manifestInfo.DVRWindowSize?t:r.manifestInfo.DVRWindowSize}return e}function U(e){me=e}function K(){return De}function H(e){return Me.getReadOnlyMetricsFor(e)}function q(e){if(!pe)throw ie;var t=Ce.getActiveStreamInfo();return t?ye.getTracksFor(e,t):[]}function Y(e,t){G(e,t);var r=new i.default;r.schemeIdUri=e,r.value=t,Se.getUTCTimingSources().push(r)}function G(e,t){var r=Se.getUTCTimingSources();r.forEach(function(n,a){n.schemeIdUri===e&&n.value===t&&r.splice(a,1)})}function V(){Y(E.default.DEFAULT_UTC_TIMING_SOURCE.scheme,E.default.DEFAULT_UTC_TIMING_SOURCE.value)}function z(){if(!Oe)throw oe;return Oe.getElement()}function W(e){if(!he)throw se;Oe=null,e&&((Oe=(0,I.default)(ue).getInstance()).initialize(),Oe.setElement(e),J(),function(){if(Ee)return Ee;var e=dashjs.MetricsReporting;if("function"==typeof e){var t=e(ue).create();Ee=t.createMetricsReporting({log:fe,eventBus:le,mediaElement:z(),dashManifestModel:be,metricsModel:Me})}}()),X()}function Q(e){if(!he)throw se;if("string"==typeof e){var t=(0,y.default)(ue).getInstance();t.initialize(),ce=t.parseURI(e)}else ce=e;X()}function X(){pe?(pe=!1,Te.reset(),Ce.reset(),je.reset(),ve.reset(),Ae.reset(),ye.reset(),Ce=null,Ee=null,e()&&re()):e()&&re()}function Z(){return(0,l.default)(ue).create({errHandler:Re,parser:(0,L.default)(ue).create(),metricsModel:Me,requestModifier:(0,m.default)(ue).getInstance()})}function J(){if(_e)return _e;var e=dashjs.Protection;if("function"==typeof e){var t=e(ue).create();return P.default.extend(e.events),w.default.extend(e.events,{publicOnly:!0}),_e=t.createProtectionSystem({log:fe,videoModel:Oe,capabilities:Ie,eventBus:le,adapter:Te})}return null}function $(){var e=Me.getReadOnlyMetricsFor("video")||Me.getReadOnlyMetricsFor("audio");return De.getCurrentDVRInfo(e)}function ee(e){var t=$();return t?e+(t.manifestInfo.availableFrom.getTime()/1e3+t.range.start):0}function te(){if(!pe)throw ie;var e=Ce.getActiveStreamInfo();return e?Ce.getStreamById(e.id):null}function re(){pe||(pe=!0,fe("Playback Initialized"),function(){var e=(0,A.default)(ue).getInstance();e.initialize();var t=(0,R.default)(ue).getInstance();t.initialize();var r=(0,h.default)(ue).getInstance();r.setConfig({dashManifestModel:be});var n=(0,p.default)(ue).getInstance();n.setConfig({sourceBufferController:r}),ye.initialize(),ye.setConfig({errHandler:Re}),(Ae=(0,C.default)(ue).getInstance()).initialize(),Ae.setConfig({abrRulesCollection:t,synchronizationRulesCollection:e}),(Ce=(0,s.default)(ue).getInstance()).setConfig({capabilities:Ie,manifestLoader:Z(),manifestModel:(0,_.default)(ue).getInstance(),dashManifestModel:be,protectionController:_e,adapter:Te,metricsModel:Me,dashMetrics:De,liveEdgeFinder:(0,d.default)(ue).getInstance(),mediaSourceController:(0,j.default)(ue).getInstance(),timeSyncController:(0,S.default)(ue).getInstance(),baseURLController:(0,D.default)(ue).getInstance(),virtualBuffer:n,errHandler:Re,timelineConverter:(0,k.default)(ue).getInstance()}),Ce.initialize(me,ge),ve.setConfig({abrRulesCollection:t,rulesController:Ae,streamController:Ce})}(),"string"==typeof ce?Ce.load(ce):Ce.loadWithManifest(ce))}var ne,ae="2.1.0",ie="You must first call play() to init playback before calling this method",oe="You must first call attachView() to set the video element before calling this method",se="MediaPlayer not initialized!",ue=this.context,le=(0,O.default)(ue).getInstance(),de=(0,b.default)(ue).getInstance(),fe=de.log,ce=void 0,ge=void 0,he=void 0,pe=void 0,me=void 0,ve=void 0,ye=void 0,_e=void 0,Ee=void 0,Te=void 0,Me=void 0,Se=void 0,Re=void 0,Ie=void 0,Ce=void 0,Ae=void 0,je=void 0,De=void 0,be=void 0,Oe=void 0,Pe=void 0;return ne={initialize:function(e,t,r){return Ie=(0,c.default)(ue).getInstance(),Re=(0,f.default)(ue).getInstance(),Ie.supportsMediaSource()?void(he||(he=!0,ve=(0,M.default)(ue).getInstance(),je=(0,o.default)(ue).getInstance(),ye=(0,u.default)(ue).getInstance(),ye.initialize(),be=(0,F.default)(ue).getInstance(),De=(0,B.default)(ue).getInstance(),Me=(0,T.default)(ue).getInstance(),Me.setConfig({adapter:(Te=(0,x.default)(ue).getInstance(),Te.initialize(),Te.setConfig({dashManifestModel:be}),Te)}),V(),U(void 0===r||r),e&&W(e),t&&Q(t),fe("[dash.js 2.1.0] MediaPlayer has been initialized"))):void Re.capabilityError("mediasource")},on:function(e,t,r){le.on(e,t,r)},off:function(e,t,r){le.off(e,t,r)},extend:function(e,t,r){N.default.extend(e,t,r,ue)},attachView:W,attachSource:Q,isReady:e,play:function(){if(!pe)throw ie;(!me||t()&&pe)&&je.play()},isPaused:t,pause:function(){if(!pe)throw ie;je.pause()},isSeeking:function(){if(!pe)throw ie;return je.isSeeking()},seek:function(e){if(!pe)throw ie;var t=je.getIsDynamic()?r(e):e;je.seek(t)},setMute:function(e){if(!Oe)throw oe;z().muted=e},isMuted:function(){if(!Oe)throw oe;return z().muted},setVolume:function(e){if(!Oe)throw oe;z().volume=e},getVolume:function(){if(!Oe)throw oe;return z().volume},time:n,duration:a,timeAsUTC:function(){if(!pe)throw ie;return n()<0?NaN:ee(n())},durationAsUTC:function(){if(!pe)throw ie;return ee(a())},getActiveStream:te,getDVRWindowSize:function(){var e=$();return e?e.manifestInfo.DVRWindowSize:0},getDVRSeekOffset:r,convertToTimeCode:function(e){e=Math.max(e,0);var t=Math.floor(e/3600),r=Math.floor(e%3600/60),n=Math.floor(e%3600%60);return(0===t?"":10>t?"0"+t.toString()+":":t.toString()+":")+(10>r?"0"+r.toString():r.toString())+":"+(10>n?"0"+n.toString():n.toString())},formatUTC:function(e,t,r){var n=new Date(1e3*e),a=n.toLocaleDateString(t);return n.toLocaleTimeString(t,{hour12:r})+" "+a},getVersion:function(){return ae},getDebug:function(){return de},getBufferLength:function(e){if(e){if("video"===e||"audio"===e||"fragmentedText"===e){var t=K().getCurrentBufferLevel(H(e));return t?t.toPrecision(3):NaN}return fe("Warning  - getBufferLength requested for invalid type"),NaN}var r=q("video").length>0?K().getCurrentBufferLevel(H("video")):Number.MAX_SAFE_INTEGER,n=q("audio").length>0?K().getCurrentBufferLevel(H("audio")):Number.MAX_SAFE_INTEGER,a=q("fragmentedText").length>0?K().getCurrentBufferLevel(H("fragmentedText")):Number.MAX_SAFE_INTEGER;return Math.min(r,n,a).toPrecision(3)},getVideoModel:function(){if(!Oe)throw oe;return Oe},getVideoContainer:function(){return Oe?Oe.getVideoContainer():null},getTTMLRenderingDiv:function(){return Oe?Oe.getTTMLRenderingDiv():null},getVideoElement:z,getSource:function(){if(!ce)throw"You must first call attachSource() with a valid source before calling this method";return ce},setLiveDelayFragmentCount:function(e){Se.setLiveDelayFragmentCount(e)},setLiveDelay:function(e){Se.setLiveDelay(e)},useSuggestedPresentationDelay:function(e){Se.setUseSuggestedPresentationDelay(e)},enableLastBitrateCaching:function(e,t){Se.setLastBitrateCachingInfo(e,t)},enableLastMediaSettingsCaching:function(e,t){Se.setLastMediaSettingsCachingInfo(e,t)},setMaxAllowedBitrateFor:function(e,t){ve.setMaxAllowedBitrateFor(e,t)},getMaxAllowedBitrateFor:function(e){return ve.getMaxAllowedBitrateFor(e)},setMaxAllowedRepresentationRatioFor:function(e,t){ve.setMaxAllowedRepresentationRatioFor(e,t)},getMaxAllowedRepresentationRatioFor:function(e){return ve.getMaxAllowedRepresentationRatioFor(e)},setAutoPlay:U,getAutoPlay:function(){return me},setScheduleWhilePaused:function(e){Se.setScheduleWhilePaused(e)},getScheduleWhilePaused:function(){return Se.getScheduleWhilePaused()},getDashMetrics:K,getMetricsFor:H,getQualityFor:function(e){if(!pe)throw ie;return ve.getQualityFor(e,Ce.getActiveStreamInfo())},setQualityFor:function(e,t){if(!pe)throw ie;ve.setPlaybackQuality(e,Ce.getActiveStreamInfo(),t)},getLimitBitrateByPortal:function(){return ve.getLimitBitrateByPortal()},setLimitBitrateByPortal:function(e){ve.setLimitBitrateByPortal(e)},setTextTrack:function(e){if(!pe)throw ie;void 0===Pe&&(Pe=(0,v.default)(ue).getInstance());for(var t=z().textTracks,r=t.length,n=0;r>n;n++){var a=t[n],i=e===n?"showing":"hidden";a.mode!==i&&(a.mode=i)}Pe.setTextTrack()},getBitrateInfoListFor:function(e){if(!pe)throw ie;var t=te();return t?t.getBitrateListFor(e):[]},setInitialBitrateFor:function(e,t){ve.setInitialBitrateFor(e,t)},getInitialBitrateFor:function(e){if(!pe)throw ie;return ve.getInitialBitrateFor(e)},setInitialRepresentationRatioFor:function(e,t){ve.setInitialRepresentationRatioFor(e,t)},getInitialRepresentationRatioFor:function(e){return ve.getInitialRepresentationRatioFor(e)},getStreamsFromManifest:function(e){if(!pe)throw ie;return Te.getStreamsInfo(e)},getTracksFor:q,getTracksForTypeFromManifest:function(e,t,r){if(!pe)throw ie;return(r=r||Te.getStreamsInfo(t)[0])?Te.getAllMediaInfoForType(t,r,e):[]},getCurrentTrackFor:function(e){if(!pe)throw ie;var t=Ce.getActiveStreamInfo();return t?ye.getCurrentTrackFor(e,t):null},setInitialMediaSettingsFor:function(e,t){ye.setInitialSettings(e,t)},getInitialMediaSettingsFor:function(e){return ye.getInitialSettings(e)},setCurrentTrack:function(e){if(!pe)throw ie;ye.setTrack(e)},getTrackSwitchModeFor:function(e){return ye.getSwitchMode(e)},setTrackSwitchModeFor:function(e,t){ye.setSwitchMode(e,t)},setSelectionModeForInitialTrack:function(e){ye.setSelectionModeForInitialTrack(e)},getSelectionModeForInitialTrack:function(){return ye.getSelectionModeForInitialTrack()},getAutoSwitchQuality:function(){return ve.getAutoSwitchBitrateFor("video")||ve.getAutoSwitchBitrateFor("audio")},setAutoSwitchQuality:function(e){ve.setAutoSwitchBitrateFor("video",e),ve.setAutoSwitchBitrateFor("audio",e)},getAutoSwitchQualityFor:function(e){return ve.getAutoSwitchBitrateFor(e)},setAutoSwitchQualityFor:function(e,t){ve.setAutoSwitchBitrateFor(e,t)},enableBufferOccupancyABR:function(e){Se.setBufferOccupancyABREnabled(e)},setBandwidthSafetyFactor:function(e){Se.setBandwidthSafetyFactor(e)},getBandwidthSafetyFactor:function(){return Se.getBandwidthSafetyFactor()},setAbandonLoadTimeout:function(e){Se.setAbandonLoadTimeout(e)},retrieveManifest:function(e,t){var r=Z(),n=this;le.on(P.default.INTERNAL_MANIFEST_LOADED,function e(a){a.error?t(null,a.error):t(a.manifest),le.off(P.default.INTERNAL_MANIFEST_LOADED,e,n),r.reset()},n);var a=(0,y.default)(ue).getInstance();a.initialize(),r.load(a.parseURI(e))},addUTCTimingSource:Y,removeUTCTimingSource:G,clearDefaultUTCTimingSources:function(){Se.setUTCTimingSources([])},restoreDefaultUTCTimingSources:V,setBufferToKeep:function(e){Se.setBufferToKeep(e)},setBufferPruningInterval:function(e){Se.setBufferPruningInterval(e)},setStableBufferTime:function(e){Se.setStableBufferTime(e)},setBufferTimeAtTopQuality:function(e){Se.setBufferTimeAtTopQuality(e)},setFragmentLoaderRetryAttempts:function(e){Se.setFragmentRetryAttempts(e)},setFragmentLoaderRetryInterval:function(e){Se.setFragmentRetryInterval(e)},setBufferTimeAtTopQualityLongForm:function(e){Se.setBufferTimeAtTopQualityLongForm(e)},setLongFormContentDurationThreshold:function(e){Se.setLongFormContentDurationThreshold(e)},setRichBufferThreshold:function(e){Se.setRichBufferThreshold(e)},getProtectionController:function(){return J()},attachProtectionController:function(e){_e=e},setProtectionData:function(e){ge=e},enableManifestDateHeaderTimeSource:function(e){Se.setUseManifestDateHeaderTimeSource(e)},displayCaptionsOnTop:function(e){var t=(0,g.default)(ue).getInstance();t.setConfig({videoModel:Oe}),t.initialize(),t.displayCConTop(e)},attachVideoContainer:function(e){if(!Oe)throw oe;Oe.setVideoContainer(e)},attachTTMLRenderingDiv:function(e){if(!Oe)throw oe;Oe.setTTMLRenderingDiv(e)},reset:function(){Q(null),W(null),ge=null,_e=null}},he=!1,pe=!1,me=!0,_e=null,ge=null,Te=null,P.default.extend(w.default),Se=(0,E.default)(ue).getInstance(),ne}Object.defineProperty(r,"__esModule",{value:!0});var i=n(e("../dash/vo/UTCTiming.js")),o=n(e("./controllers/PlaybackController.js")),s=n(e("./controllers/StreamController.js")),u=n(e("./controllers/MediaController.js")),l=n(e("./ManifestLoader.js")),d=n(e("./utils/LiveEdgeFinder.js")),f=n(e("./utils/ErrorHandler.js")),c=n(e("./utils/Capabilities.js")),g=n(e("./TextTracks.js")),h=n(e("./controllers/SourceBufferController.js")),p=n(e("./VirtualBuffer.js")),m=n(e("./utils/RequestModifier.js")),v=n(e("./TextSourceBuffer.js")),y=n(e("./models/URIQueryAndFragmentModel.js")),_=n(e("./models/ManifestModel.js")),E=n(e("./models/MediaPlayerModel.js")),T=n(e("./models/MetricsModel.js")),M=n(e("./controllers/AbrController.js")),S=n(e("./controllers/TimeSyncController.js")),R=n(e("./rules/abr/ABRRulesCollection.js")),I=n(e("./models/VideoModel.js")),C=n(e("./rules/RulesController.js")),A=n(e("./rules/synchronization/SynchronizationRulesCollection.js")),j=n(e("./controllers/MediaSourceController.js")),D=n(e("./controllers/BaseURLController.js")),b=n(e("./../core/Debug.js")),O=n(e("./../core/EventBus.js")),P=n(e("./../core/events/Events.js")),w=n(e("./MediaPlayerEvents.js")),N=n(e("../core/FactoryMaker.js")),x=n(e("../dash/DashAdapter.js")),L=n(e("../dash/DashParser.js")),F=n(e("../dash/models/DashManifestModel.js")),B=n(e("../dash/DashMetrics.js")),k=n(e("../dash/utils/TimelineConverter.js"));a.__dashjs_factory_name="MediaPlayer";var U=N.default.getClassFactory(a);U.events=w.default,r.default=U,t.exports=r.default},{"../core/FactoryMaker.js":9,"../dash/DashAdapter.js":13,"../dash/DashMetrics.js":15,"../dash/DashParser.js":16,"../dash/models/DashManifestModel.js":19,"../dash/utils/TimelineConverter.js":25,"../dash/vo/UTCTiming.js":35,"./../core/Debug.js":7,"./../core/EventBus.js":8,"./../core/events/Events.js":11,"./ManifestLoader.js":37,"./MediaPlayerEvents.js":40,"./TextSourceBuffer.js":44,"./TextTracks.js":45,"./VirtualBuffer.js":46,"./controllers/AbrController.js":49,"./controllers/BaseURLController.js":50,"./controllers/MediaController.js":55,"./controllers/MediaSourceController.js":56,"./controllers/PlaybackController.js":57,"./controllers/SourceBufferController.js":59,"./controllers/StreamController.js":60,"./controllers/TimeSyncController.js":62,"./models/ManifestModel.js":89,"./models/MediaPlayerModel.js":90,"./models/MetricsModel.js":91,"./models/URIQueryAndFragmentModel.js":92,"./models/VideoModel.js":93,"./rules/RulesController.js":118,"./rules/abr/ABRRulesCollection.js":120,"./rules/synchronization/SynchronizationRulesCollection.js":133,"./utils/Capabilities.js":136,"./utils/ErrorHandler.js":139,"./utils/LiveEdgeFinder.js":141,"./utils/RequestModifier.js":143}],40:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=function(e){function t(){(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,t),function(e,t,r){for(var n=!0;n;){var a=e,i=t,o=r;n=!1,null===a&&(a=Function.prototype);var s=Object.getOwnPropertyDescriptor(a,i);if(void 0!==s){if("value"in s)return s.value;var u=s.get;if(void 0===u)return;return u.call(o)}var l=Object.getPrototypeOf(a);if(null===l)return;e=l,t=i,r=o,n=!0,s=l=void 0}}(Object.getPrototypeOf(t.prototype),"constructor",this).call(this),this.BUFFER_EMPTY="bufferstalled",this.BUFFER_LOADED="bufferloaded",this.BUFFER_LEVEL_STATE_CHANGED="bufferStateChanged",this.ERROR="error",this.LOG="log",this.MANIFEST_LOADED="manifestloaded",this.METRICS_CHANGED="metricschanged",this.METRIC_CHANGED="metricchanged",this.METRIC_ADDED="metricadded",this.METRIC_UPDATED="metricupdated",this.PERIOD_SWITCH_COMPLETED="streamswitchcompleted",this.PERIOD_SWITCH_STARTED="streamswitchstarted",this.STREAM_INITIALIZED="streaminitialized",this.TEXT_TRACKS_ADDED="alltexttracksadded",this.TEXT_TRACK_ADDED="texttrackadded",this.CAN_PLAY="canPlay",this.PLAYBACK_ENDED="playbackEnded",this.PLAYBACK_ERROR="playbackError",this.PLAYBACK_METADATA_LOADED="playbackMetaDataLoaded",this.PLAYBACK_PAUSED="playbackPaused",this.PLAYBACK_PLAYING="playbackPlaying",this.PLAYBACK_PROGRESS="playbackProgress",this.PLAYBACK_RATE_CHANGED="playbackRateChanged",this.PLAYBACK_SEEKED="playbackSeeked",this.PLAYBACK_SEEKING="playbackSeeking",this.PLAYBACK_STARTED="playbackStarted",this.PLAYBACK_TIME_UPDATED="playbackTimeUpdated"}return function(e,t){if("function"!=typeof t&&null!==t)throw new 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),t}(function(e){return e&&e.__esModule?e:{default:e}}(e("../core/events/EventsBase.js")).default),a=new n;r.default=a,t.exports=r.default},{"../core/events/EventsBase.js":12}],41:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=function(e){return e&&e.__esModule?e:{default:e}}(e("./MediaPlayer.js")),a=function(){function e(e,t,a){if(!e||"VIDEO"!==e.nodeName)return null;if(e._dashjs_player)return e._dashjs_player;var i,o=e.id||e.name||"video element";if(!(t=t||[].slice.call(e.querySelectorAll("source")).filter(function(e){return e.type==r})[0])&&e.src)(t=document.createElement("source")).src=e.src;else if(!t&&!e.src)return null;return a=a||{},(i=(0,n.default)(a).create()).initialize(e,t.src,e.autoplay),i.getDebug().log("Converted "+o+" to dash.js player and added content: "+t.src),e._dashjs_player=i,i}function t(e){for(var t=!0;t;){var r=e;if(t=!1,"video"===r.nodeName.toLowerCase())return r;e=r.parentNode,t=!0}}var r="application/dash+xml";return{create:e,createAll:function(n,a){var i=[];n=n||"[data-dashjs-player]";for(var o=(a=a||document).querySelectorAll(n),s=0;s<o.length;s++){var u=e(o[s],null);i.push(u)}var l=a.querySelectorAll('source[type="'+r+'"]');for(s=0;s<l.length;s++)u=e(t(l[s]),null),i.push(u);return i}}}();!(window&&window.dashjs&&window.dashjs.skipAutoCreate)&&window&&window.addEventListener&&("complete"===window.document.readyState?a.createAll():window.addEventListener("load",function e(){window.removeEventListener("load",e),a.createAll()})),r.default=a,t.exports=r.default},{"./MediaPlayer.js":39}],42:[function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function a(e){function t(){for(var e=q.length,t=0;e>t;t++)q[t].reset();q=[],Y=!1,G=!1,te&&te.clear(),N.off(y.default.CURRENT_TRACK_CHANGED,E,H)}function r(){J&&(J.pause(),J=null),ee&&(ee.reset(),ee=null),Z.abortSearch(),t(),$=null,re=null,L=null,x=null,F=null,B=null,w=null,k=null,W=!1,Q=!1,z={},N.off(y.default.DATA_UPDATE_COMPLETED,D,H),N.off(y.default.BUFFERING_COMPLETED,j,H),N.off(y.default.KEY_ERROR,n,H),N.off(y.default.SERVER_CERTIFICATE_UPDATED,n,H),N.off(y.default.LICENSE_REQUEST_COMPLETE,n,H),N.off(y.default.KEY_SYSTEM_SELECTED,n,H),N.off(y.default.KEY_SESSION_CREATED,n,H)}function n(e){e.error&&(k.mediaKeySessionError(e.error),w(e.error),r())}function a(e,t,r){var n,a,i=e.type;if("muxed"===i&&e)return w(a="Multiplexed representations are intentionally not supported, as they are not compliant with the DASH-AVC/264 guidelines"),k.manifestError(a,"multiplexedrep",x.getValue()),!1;if("text"===i||"fragmentedText"===i||"embeddedText"===i)return!0;if(n=e.codec,w(i+" codec: "+n),e.contentProtection&&!B.supportsEncryptedMedia())k.capabilityError("encryptedmedia");else if(!B.supportsCodec((0,f.default)(P).getInstance().getElement(),n))return a=i+"Codec ("+n+") is not supported.",k.manifestError(a,"codec",r),w(a),!1;return!0}function E(e){if(e.newMediaInfo.streamInfo.id===V.id){var t=function(e){return!!e&&b().filter(function(t){return t.getType()===e.type})[0]}(e.oldMediaInfo);if(t){var r=J.getTime(),n=t.getBuffer(),a=e.newMediaInfo,i=x.getValue(),o=q.indexOf(t),s=t.getMediaSource();"fragmentedText"!==a.type?(t.reset(!0),S(a,i,s,{buffer:n,replaceIdx:o,currentTime:r}),J.seek(J.getTime())):t.updateMediaInfo(i,a)}}}function M(){var e=(0,p.default)(P).getInstance();return e.setConfig({baseURLController:K}),e.initialize(),(0,h.default)(P).create({segmentBaseLoader:e,timelineConverter:U,dashMetrics:(0,m.default)(P).getInstance(),metricsModel:(0,c.default)(P).getInstance(),baseURLController:K})}function S(e,t,r,n){var a=(0,o.default)(P).create({indexHandler:M(),timelineConverter:U,adapter:F,manifestModel:x}),i=F.getAllMediaInfoForType(t,V,e.type);if(a.initialize(function(e){return"text"===e.type?e.mimeType:e.type}(e),ee,r,H,te),re.updateTopQualityIndex(e),n?(a.setBuffer(n.buffer),q[n.replaceIdx]=a):q.push(a),"text"===e.type||"fragmentedText"===e.type){for(var s,u=0;u<i.length;u++)i[u].index===e.index&&(s=u),a.updateMediaInfo(t,i[u]);"fragmentedText"===e.type&&a.updateMediaInfo(t,i[s])}else a.updateMediaInfo(t,e);return a}function R(e,t){var r=x.getValue(),n=F.getAllMediaInfoForType(r,V,e),i=null;if(n&&0!==n.length){for(var o=0,s=n.length;s>o;o++)if(i=n[o],"embeddedText"===e)ne.addEmbeddedTrack(i);else{if(!a(i,0,r))continue;$.isMultiTrackSupportedByType(i.type)&&$.addTrack(i,V)}"embeddedText"!==e&&0!==$.getTracksFor(e,V).length&&($.checkInitialMediaSettingsForType(e,V),S($.getCurrentTrackFor(e,V),r,t))}else w("No "+e+" data.")}function I(){for(var e=q.length,t=z.audio||z.video?new Error(O,"Data update failed",null):null,r=0;e>r;r++)if(q[r].isUpdating()||W)return;Q=!0,Y=!0,G&&(X&&X.initialize(x.getValue(),C("audio"),C("video")),N.trigger(y.default.STREAM_INITIALIZED,{streamInfo:V,error:t}))}function C(e){for(var t=q.length,r=null,n=0;t>n;n++)if((r=q[n]).getType()===e)return r.getMediaInfo();return null}function A(){for(var e=0,t=q.length;t>e;e++)q[e].createBuffer()}function j(e){if(e.streamInfo===V){for(var t=b(),r=t.length,n=0;r>n;n++)if(!t[n].isBufferingCompleted())return;N.trigger(y.default.STREAM_BUFFERING_COMPLETED,{streamInfo:V})}}function D(e){var t=e.sender.getStreamProcessor();t.getStreamInfo()===V&&(z[t.getType()]=e.error,I())}function b(){for(var e,t,r=q.length,n=[],a=0;r>a;a++)("audio"===(e=(t=q[a]).getType())||"video"===e||"fragmentedText"===e)&&n.push(t);return n}var O=1,P=this.context,w=(0,_.default)(P).getInstance().log,N=(0,v.default)(P).getInstance(),x=e.manifestModel,L=e.manifestUpdater,F=e.adapter,B=e.capabilities,k=e.errHandler,U=e.timelineConverter,K=e.baseURLController,H=void 0,q=void 0,Y=void 0,G=void 0,V=void 0,z=void 0,W=void 0,Q=void 0,X=void 0,Z=void 0,J=void 0,$=void 0,ee=void 0,te=void 0,re=void 0,ne=void 0;return H={initialize:function(e,t){V=e,(X=t)&&(N.on(y.default.KEY_ERROR,n,H),N.on(y.default.SERVER_CERTIFICATE_UPDATED,n,H),N.on(y.default.LICENSE_REQUEST_COMPLETE,n,H),N.on(y.default.KEY_SYSTEM_SELECTED,n,H),N.on(y.default.KEY_SESSION_CREATED,n,H))},activate:function(e){Y?A():(N.on(y.default.CURRENT_TRACK_CHANGED,E,H),function(e){var t,r=x.getValue();if((te=(0,u.default)(P).getInstance()).initialize(),te.setConfig({manifestModel:x,manifestUpdater:L}),t=F.getEventsFor(r,V),te.addInlineEvents(t),W=!0,R("video",e),R("audio",e),R("text",e),R("fragmentedText",e),R("embeddedText",e),R("muxed",e),A(),G=!0,W=!1,0===q.length){var n="No streams to play.";k.manifestError(n,"nostreams",r),w(n)}else Z.initialize(U,q[0]),I()}(e))},deactivate:t,getDuration:function(){return V.duration},getStartTime:function(){return V.start},getStreamIndex:function(){return V.index},getId:function(){return V.id},getStreamInfo:function(){return V},hasMedia:function(e){return null!==C(e)},getBitrateListFor:function(e){var t=C(e);return re.getBitrateList(t)},startEventController:function(){te&&te.start()},isActivated:function(){return Y},isInitialized:function(){return Q},updateData:function(e){var t,r,n,a=q.length,i=x.getValue(),o=0;for(Y=!1,V=e,w("Manifest updated... set new data on buffers."),te&&(r=F.getEventsFor(i,V),te.addInlineEvents(r)),W=!0,Q=!1;a>o;o++)n=q[o],t=F.getMediaInfoForType(i,V,n.getType()),re.updateTopQualityIndex(t),n.updateMediaInfo(i,t);W=!1,I()},reset:r,getProcessors:b},q=[],Y=!1,G=!1,V=null,z={},W=!1,Q=!1,Z=(0,i.default)(P).getInstance(),J=(0,g.default)(P).getInstance(),re=(0,d.default)(P).getInstance(),$=(0,s.default)(P).getInstance(),ee=(0,l.default)(P).create(),ne=(0,T.default)(P).getInstance(),N.on(y.default.BUFFERING_COMPLETED,j,H),N.on(y.default.DATA_UPDATE_COMPLETED,D,H),H}Object.defineProperty(r,"__esModule",{value:!0});var i=n(e("./utils/LiveEdgeFinder.js")),o=n(e("./StreamProcessor.js")),s=n(e("./controllers/MediaController.js")),u=n(e("./controllers/EventController.js")),l=n(e("./controllers/FragmentController.js")),d=n(e("./controllers/AbrController.js")),f=n(e("./models/VideoModel.js")),c=n(e("./models/MetricsModel.js")),g=n(e("./controllers/PlaybackController.js")),h=n(e("../dash/DashHandler.js")),p=n(e("../dash/SegmentBaseLoader.js")),m=n(e("../dash/DashMetrics.js")),v=n(e("../core/EventBus.js")),y=n(e("../core/events/Events.js")),_=n(e("../core/Debug.js")),E=n(e("../core/FactoryMaker.js")),T=n(e("./TextSourceBuffer.js"));a.__dashjs_factory_name="Stream",r.default=E.default.getClassFactory(a),t.exports=r.default},{"../core/Debug.js":7,"../core/EventBus.js":8,"../core/FactoryMaker.js":9,"../core/events/Events.js":11,"../dash/DashHandler.js":14,"../dash/DashMetrics.js":15,"../dash/SegmentBaseLoader.js":17,"./StreamProcessor.js":43,"./TextSourceBuffer.js":44,"./controllers/AbrController.js":49,"./controllers/EventController.js":53,"./controllers/FragmentController.js":54,"./controllers/MediaController.js":55,"./controllers/PlaybackController.js":57,"./models/MetricsModel.js":91,"./models/VideoModel.js":93,"./utils/LiveEdgeFinder.js":141}],43:[function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function a(e){var t,r=this.context,n=e.indexHandler,a=e.timelineConverter,R=e.adapter,I=e.manifestModel,C=void 0,A=void 0,j=void 0,D=void 0,b=void 0,O=void 0,P=void 0,w=void 0,N=void 0,x=void 0,L=void 0,F=void 0,B=void 0;return t={initialize:function(e,t,A,D,k){j=e,O=k,L=t,C=(b=D).getStreamInfo().manifestInfo.isDynamic,n.initialize(this),(P=(0,i.default)(r).getInstance()).initialize(j,this),w=function(e){return"video"===e||"audio"===e||"fragmentedText"===e?(0,o.default)(r).create({metricsModel:(0,g.default)(r).getInstance(),manifestModel:I,sourceBufferController:(0,m.default)(r).getInstance(),errHandler:(0,S.default)(r).getInstance(),mediaSourceController:(0,_.default)(r).getInstance(),streamController:(0,s.default)(r).getInstance(),mediaController:(0,u.default)(r).getInstance(),adapter:R,virtualBuffer:(0,y.default)(r).getInstance(),textSourceBuffer:(0,v.default)(r).getInstance()}):(0,l.default)(r).create({errHandler:(0,S.default)(r).getInstance(),sourceBufferController:(0,m.default)(r).getInstance()})}(e),w.initialize(j,A,this),(N=(0,d.default)(r).create({metricsModel:(0,g.default)(r).getInstance(),manifestModel:I,adapter:R,dashMetrics:(0,T.default)(r).getInstance(),dashManifestModel:(0,E.default)(r).getInstance(),timelineConverter:a,rulesController:(0,f.default)(r).getInstance(),mediaPlayerModel:(0,c.default)(r).getInstance()})).initialize(j,this),F=(0,h.default)(r).create({metricsModel:(0,g.default)(r).getInstance(),errHandler:(0,S.default)(r).getInstance(),requestModifier:(0,p.default)(r).getInstance()}),(x=(0,M.default)(r).create()).initialize(this),(B=N.getFragmentModel()).setLoader(F)},isUpdating:function(){return x.isUpdating()},getType:function(){return j},getBufferController:function(){return w},getABRController:function(){return P},getFragmentLoader:function(){return F},getFragmentModel:function(){return B},getScheduleController:function(){return N},getEventController:function(){return O},getFragmentController:function(){return L},getRepresentationController:function(){return x},getIndexHandler:function(){return n},getCurrentRepresentationInfo:function(){return R.getCurrentRepresentationInfo(I.getValue(),x)},getRepresentationInfoForQuality:function(e){return R.getRepresentationInfoForQuality(I.getValue(),x,e)},isBufferingCompleted:function(){return w.getIsBufferingCompleted()},createBuffer:function(){return w.getBuffer()||w.createBuffer(A)},getStreamInfo:function(){return b.getStreamInfo()},updateMediaInfo:function(e,t){t===A||t&&A&&t.type!==A.type||(A=t),-1===D.indexOf(t)&&D.push(t),R.updateData(e,this)},getMediaInfoArr:function(){return D},getMediaInfo:function(){return A},getMediaSource:function(){return w.getMediaSource()},getBuffer:function(){return w.getBuffer()},setBuffer:function(e){w.setBuffer(e)},start:function(){N.start()},stop:function(){N.stop()},isDynamic:function(){return C},reset:function(e){B&&(B.reset(),B=null),n.reset(),w&&(w.reset(e),w=null),N&&(N.reset(),N=null),x&&(x.reset(),x=null),L=null,F=null,O=null,b=null,C=null,A=null,D=[],j=null}},D=[],t}Object.defineProperty(r,"__esModule",{value:!0});var i=n(e("./controllers/AbrController.js")),o=n(e("./controllers/BufferController.js")),s=n(e("./controllers/StreamController.js")),u=n(e("./controllers/MediaController.js")),l=n(e("./controllers/TextController.js")),d=n(e("./controllers/ScheduleController.js")),f=n(e("./rules/RulesController.js")),c=n(e("./models/MediaPlayerModel.js")),g=n(e("./models/MetricsModel.js")),h=n(e("./FragmentLoader.js")),p=n(e("./utils/RequestModifier.js")),m=n(e("./controllers/SourceBufferController")),v=n(e("./TextSourceBuffer.js")),y=n(e("./VirtualBuffer.js")),_=n(e("./controllers/MediaSourceController.js")),E=n(e("../dash/models/DashManifestModel.js")),T=n(e("../dash/DashMetrics.js")),M=n(e("../dash/controllers/RepresentationController.js")),S=n(e("./utils/ErrorHandler.js")),R=n(e("../core/FactoryMaker.js"));a.__dashjs_factory_name="StreamProcessor",r.default=R.default.getClassFactory(a),t.exports=r.default},{"../core/FactoryMaker.js":9,"../dash/DashMetrics.js":15,"../dash/controllers/RepresentationController.js":18,"../dash/models/DashManifestModel.js":19,"./FragmentLoader.js":36,"./TextSourceBuffer.js":44,"./VirtualBuffer.js":46,"./controllers/AbrController.js":49,"./controllers/BufferController.js":52,"./controllers/MediaController.js":55,"./controllers/MediaSourceController.js":56,"./controllers/ScheduleController.js":58,"./controllers/SourceBufferController":59,"./controllers/StreamController.js":60,"./controllers/TextController.js":61,"./models/MediaPlayerModel.js":90,"./models/MetricsModel.js":91,"./rules/RulesController.js":118,"./utils/ErrorHandler.js":139,"./utils/RequestModifier.js":143}],44:[function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function a(){function e(){q=[],P=[],k=(0,f.default)(_).getInstance(),(w=(0,c.default)(_).getInstance()).setConfig({videoModel:k}),w.initialize(),S=(0,s.default)(_).getInstance(),(O=(0,o.default)(_).getInstance()).setConfig({boxParser:S}),N=!1,H=null,Y=0,z=[],V=[],G=null,T=!0}function t(e){var t,r=function(e,t,r){var n=e.length;if(n>0){if(t>=e[n-1][0])e.push([t,r]);else for(var a=n-1;a>=0;a--)if(t<e[a][0]){e.splice(a,0,[t,r]);break}}else e.push([t,r])},n=S.parse(e),a=n.getBox("moof"),i=n.getBox("tfdt"),o=n.getBoxes("trun");if(0===o.length)return null;t=o[0],o.length>1&&E("Warning: Too many truns");for(var s=a.offset+t.data_offset,u=t.sample_count,l=s,d=i.baseMediaDecodeTime,f=new DataView(e),c={startTime:null,endTime:null,fields:[[],[]]},g=0,p=0;u>p;p++){for(var m=t.samples[p],v=d+g+m.sample_composition_time_offset,y=h.default.findCea608Nalus(f,l,m.sample_size),_=0;_<y.length;_++)for(var T=h.default.extractCea608DataFromRange(f,y[_]),M=0;2>M;M++)T[M].length>0&&r(c.fields[M],v,T[M]);g+=m.sample_duration,l+=m.sample_size}var R=d+g;return c.startTime=d,c.endTime=R,c}function r(e){for(var t="",r=0;r<e.length;++r)t+=e[r].uchar;return t.length-t.replace(/^\s+/,"").length}function n(e){return"left: "+3.125*e.x+"%; top: "+6.66*e.y1+"%; width: "+(100-3.125*e.x)+"%; height: "+6.66*Math.max(e.y2-1-e.y1,1)+"%; align-items: flex-start; overflow: visible; -webkit-writing-mode: horizontal-tb;"}function a(e){return"red"==e?"rgb(255, 0, 0)":"green"==e?"rgb(0, 255, 0)":"blue"==e?"rgb(0, 0, 255)":"cyan"==e?"rgb(0, 255, 255)":"magenta"==e?"rgb(255, 0, 255)":"yellow"==e?"rgb(255, 255, 0)":"white"==e?"rgb(255, 255, 255)":"black"==e?"rgb(0, 0, 0)":e}function l(e,t){var r=e.videoHeight/15;return t?"font-size: "+r+"px; font-family: Menlo, Consolas, 'Cutive Mono', monospace; color: "+(t.foreground?a(t.foreground):"rgb(255, 255, 255)")+"; font-style: "+(t.italics?"italic":"normal")+"; text-decoration: "+(t.underline?"underline":"none")+"; white-space: pre; background-color: "+(t.background?a(t.background):"transparent")+";":"font-size: "+r+"px; font-family: Menlo, Consolas, 'Cutive Mono', monospace; justify-content: flex-start; text-align: left; color: rgb(255, 255, 255); font-style: normal; white-space: pre; line-height: normal; font-weight: normal; text-decoration: none; width: 100%; display: flex;"}function p(e){return e.replace(/^\s+/g,"")}function m(e){return e.replace(/\s+$/g,"")}function v(e,t,a,i){var o=null,s=!1,u=-1,d={start:t,end:a,spans:[]},f="style_cea608_white_black",c={},g={},h=[],v=void 0,y=void 0;for(v=0;15>v;++v){var _=i.rows[v],E="",T=null;if(!1===_.isEmpty()){var S=r(_.chars);null===o&&(o={x:S,y1:v,y2:v+1,p:[]}),S!==u&&s&&(o.p.push(d),d={start:t,end:a,spans:[]},o.y2=v,o.name="region_"+o.x+"_"+o.y1+"_"+o.y2,!1===c.hasOwnProperty(o.name)?(h.push(o),c[o.name]=o):c[o.name].p.contat(o.p),o={x:S,y1:v,y2:v+1,p:[]});for(var R=0;R<_.chars.length;++R){var I=_.chars[R],C=I.penState;if(null===T||!C.equals(T)){E.trim().length>0&&(d.spans.push({name:f,line:E,row:v}),E="");var A="style_cea608_"+C.foreground+"_"+C.background;C.underline&&(A+="_underline"),C.italics&&(A+="_italics"),g.hasOwnProperty(A)||(g[A]=JSON.parse(JSON.stringify(C))),T=C,f=A}E+=I.uchar}E.trim().length>0&&d.spans.push({name:f,line:E,row:v}),s=!0,u=S}else s=!1,u=-1,o&&(o.p.push(d),d={start:t,end:a,spans:[]},o.y2=v,o.name="region_"+o.x+"_"+o.y1+"_"+o.y2,!1===c.hasOwnProperty(o.name)?(h.push(o),c[o.name]=o):c[o.name].p.contat(o.p),o=null)}o&&(o.p.push(d),o.y2=v+1,o.name="region_"+o.x+"_"+o.y1+"_"+o.y2,!1===c.hasOwnProperty(o.name)?(h.push(o),c[o.name]=o):c[o.name].p.contat(o.p),o=null);var j=[];for(v=0;v<h.length;++v){var D=h[v],b="sub_"+M++,O=document.createElement("div");O.id="subtitle_"+b;var P=n(D);O.style.cssText="position: absolute; margin: 0; display: flex; box-sizing: border-box; pointer-events: none;"+P;var w=document.createElement("div");w.className="paragraph bodyStyle",w.style.cssText=l(e);var N=document.createElement("div");N.className="cueUniWrapper",N.style.cssText="unicode-bidi: normal; direction: ltr;";for(var x=0;x<D.p.length;++x){var L=D.p[x],F=0;for(y=0;y<L.spans.length;++y){var B=L.spans[y];if(B.line.length>0){if(0!==y&&F!=B.row){var k=document.createElement("br");k.className="lineBreak",N.appendChild(k)}var U=!1;F===B.row&&(U=!0),F=B.row;var K=g[B.name],H=document.createElement("span");H.className="spanPadding "+B.name+" customSpanColor",H.style.cssText=l(e,K),0!==y&&U?y===L.spans.length-1?H.textContent=m(B.line):H.textContent=B.line:0===y&&L.spans.length>1&&B.row===L.spans[1].row?H.textContent=p(B.line):H.textContent=B.line.trim(),N.appendChild(H)}}}w.appendChild(N),O.appendChild(w);var q={bodyStyle:90};for(y in g)g.hasOwnProperty(y)&&(q[y]=90);j.push({type:"html",start:t,end:a,cueHTMLElement:O,cueID:b,cellResolution:[32,15],isFromCEA608:!0,regions:h,regionID:D.name,videoHeight:e.videoHeight,videoWidth:e.videoWidth,fontSize:q||{defaultFontSize:"100"},lineHeight:{},linePadding:{}})}return j}function y(e){var t;return e.search("vtt")>=0?t=D:(e.search("ttml")>=0||e.search("stpp")>=0)&&(t=b).setConfig({videoModel:k}),t}var _=this.context,E=(0,d.default)(_).getInstance().log,T=!1,M=0,S=void 0,R=void 0,I=void 0,C=void 0,A=void 0,j=void 0,D=void 0,b=void 0,O=void 0,P=void 0,w=void 0,N=void 0,x=void 0,L=void 0,F=void 0,B=void 0,k=void 0,U=void 0,K=void 0,H=void 0,q=void 0,Y=void 0,G=void 0,V=void 0,z=void 0;return{initialize:function(t,r){A=!1,j=null,x=null,L=!1,F=NaN,B=[],K=null,T||e();var n=r.getStreamProcessor();if(P=n.getMediaInfoArr(),w.setConfig({videoModel:k}),w.initialize(),N=!I.getIsTextTrack(t),S=(0,s.default)(_).getInstance(),(O=(0,o.default)(_).getInstance()).setConfig({boxParser:S}),N){x=n.getFragmentModel(),this.buffered=(0,u.default)(_).create(),B=C.getTracksFor("fragmentedText",U.getActiveStreamInfo());for(var a=C.getCurrentTrackFor("fragmentedText",U.getActiveStreamInfo()),i=0;i<B.length;i++)if(B[i]===a){H=i;break}}},append:function(e,r){function n(e,t){var r=new i.default,n={subtitle:"subtitles",caption:"captions"};r.captionData=e,r.lang=t.lang,r.label=t.id,r.index=t.index,r.isTTML=function(){var e=!1;return t.codec&&t.codec.search("stpp")>=0&&(e=!0),t.mimeType&&t.mimeType.search("ttml")>=0&&(e=!0),e}(),r.video=k.getElement(),r.defaultTrack=function(e){var t=!1;return q.length>1?t=e.id&&"CC1"===e.id:1===q.length?e.id&&"CC"===e.id.substring(0,2)&&(t=!0):t=e.index===P[0].index,t}(t),r.isFragmented=N,r.isEmbedded=!!t.isEmbedded,r.kind=function(){var e=t.roles.length>0?n[t.roles[0]]:n.caption;return e===n.caption||e===n.subtitle?e:n.caption}();var a=(P?P.length:0)+q.length;w.addTextTrack(r,a)}var a,o,s,u,l=r.mediaInfo,d=l.type,f=l.mimeType,c=l.codec||f;if(c){if("fragmentedText"===d)if(L)if(o=O.getSamplesInfo(e).sampleList,!K&&o.length>0&&(K=o[0].cts-r.start*F),c.search("stpp")>=0)for(j=null!==j?j:y(c),s=0;s<o.length;s++){var p=o[s],m=p.cts,_=m-K;this.buffered.add(_/F,(_+p.duration)/F);var T=new DataView(e,p.offset,p.size);u=g.default.Utils.dataViewToString(T,"utf-8");try{a=j.parse(u,m/F,(m+p.duration)/F),w.addCaptions(H,K/F,a)}catch(e){E("TTML parser error: "+e.message)}}else{var M=[];for(s=0;s<o.length;s++){var S=o[s];S.cts-=K,this.buffered.add(S.cts/F,(S.cts+S.duration)/F);for(var I=e.slice(S.offset,S.offset+S.size),C=g.default.parseBuffer(I),A=0;A<C.boxes.length;A++){var D=C.boxes[A];if(E("VTT box1: "+D.type),"vtte"!==D.type&&"vttc"===D.type){E("VTT vttc boxes.length="+D.boxes.length);for(var b=0;b<D.boxes.length;b++){var x=D.boxes[b];if(E("VTT box2: "+x.type),"payl"===x.type){var B=x.cue_text;E("VTT cue_text="+B);var U=S.cts/F,W=(S.cts+S.duration)/F;M.push({start:U,end:W,data:B,styles:{}}),E("VTT "+U+"-"+W+":"+B)}}}}}M.length>0&&w.addCaptions(H,0,M)}else{for(L=!0,s=0;s<P.length;s++)n(null,P[s]);F=O.getMediaTimescaleFromMoov(e)}else if("text"===d){T=new DataView(e,0,e.byteLength),u=g.default.Utils.dataViewToString(T,"utf-8");try{n(a=y(c).parse(u),l)}catch(e){R.timedTextError(e,"parse",u)}}else if("video"===d)if("InitializationSegment"===r.segmentType){if(0===Y)for(Y=O.getMediaTimescaleFromMoov(e),s=0;s<q.length;s++)n(null,q[s])}else{if(0===Y)return void E("CEA-608: No timescale for embeddedTextTrack yet");var Q=function(e,t){return function(e,r,n){var a;(a=k.getTTMLRenderingDiv()?v(k.getElement(),e,r,n):[{start:e,end:r,data:n.getDisplayText(),styles:{}}])&&w.addCaptions(t,0,a)}},X=O.getSamplesInfo(e).sequenceNumber;if(!z[0]&&!z[1]){var Z=void 0,J=void 0;for(s=0;s<q.length;s++){if("CC1"===q[s].id?J=w.getTrackIdxForId("CC1"):"CC3"===q[s].id&&(J=w.getTrackIdxForId("CC3")),-1===J)return void E("CEA-608: data before track is ready.");Z=Q(0,J),z[s]=new h.default.Cea608Parser(s,{newCue:Z},null)}}if(Y&&-1==V.indexOf(X)){if(null!==G&&X!==G+1)for(s=0;s<z.length;s++)z[s]&&z[s].reset();for(var $=t(e),ee=0;ee<z.length;ee++){var te=$.fields[ee],re=z[ee];if(re){for(s=0;s<te.length;s++)re.addData(te[s][0]/Y,te[s][1]);$.endTime&&re.cueSplitAtTime($.endTime/Y)}}G=X,V.push(X)}}}else E("No text type defined")},abort:function(){w.deleteAllTextTracks(),A=!1,j=null,O=null,P=null,w=null,N=!1,x=null,L=!1,F=NaN,B=[],k=null,U=null,T=!1,q=null},getAllTracksAreDisabled:function(){return A},setTextTrack:function(){for(var e=k.getElement().textTracks,t=e.length,r=t-q.length,n=w.getCurrentTrackIdx(),a=0;t>a;a++){var i=e[a];if(A="showing"!==i.mode,"showing"===i.mode){if(n!==a&&(w.setCurrentTrackIdx(a),w.addCaptions(a,0,null),N&&r>a)){var o=C.getCurrentTrackFor("fragmentedText",U.getActiveStreamInfo()),s=B[a];s!==o&&(x.abortRequests(),w.deleteTrackCues(o),C.setTrack(s),H=a)}break}}A&&w.setCurrentTrackIdx(-1)},setConfig:function(e){e&&(e.errHandler&&(R=e.errHandler),e.adapter&&e.adapter,e.dashManifestModel&&(I=e.dashManifestModel),e.mediaController&&(C=e.mediaController),e.videoModel&&(k=e.videoModel),e.streamController&&(U=e.streamController),e.textTracks&&(w=e.textTracks),e.VTTParser&&(D=e.VTTParser),e.TTMLParser&&(b=e.TTMLParser))},addEmbeddedTrack:function(t){T||e(),"CC1"===t.id||"CC3"===t.id?q.push(t):E("Warning: Embedded track "+t.id+" not supported!")},resetEmbedded:function(){T=!1,q=[],z=[null,null],V=[],G=null}}}Object.defineProperty(r,"__esModule",{value:!0});var i=n(e("./vo/TextTrackInfo.js")),o=n(e("../dash/utils/FragmentedTextBoxParser.js")),s=n(e("./utils/BoxParser.js")),u=n(e("./utils/CustomTimeRanges.js")),l=n(e("../core/FactoryMaker.js")),d=n(e("../core/Debug.js")),f=n(e("./models/VideoModel.js")),c=n(e("./TextTracks.js")),g=n(e("codem-isoboxer")),h=n(e("../../externals/cea608-parser.js"));a.__dashjs_factory_name="TextSourceBuffer",r.default=l.default.getSingletonFactory(a),t.exports=r.default},{"../../externals/cea608-parser.js":2,"../core/Debug.js":7,"../core/FactoryMaker.js":9,"../dash/utils/FragmentedTextBoxParser.js":20,"./TextTracks.js":45,"./models/VideoModel.js":93,"./utils/BoxParser.js":135,"./utils/CustomTimeRanges.js":137,"./vo/TextTrackInfo.js":158,"codem-isoboxer":6}],45:[function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function a(){function e(e){var t=_[e].kind,r=void 0!==_[e].label?_[e].label:_[e].lang,n=_[e].lang,a=j?document.createElement("track"):y.addTextTrack(t,r,n);return j&&(a.kind=t,a.label=r,a.srclang=n),a}function t(e,t,r,n,a,i){var o=0,s=0;e/t>r/n?o=(s=t)/n*r:s=(o=e)/r*n;var u=0,l=0,d=0,f=0;return o/s>a?(f=s,u=(e-(d=s/(1/a)))/2,l=0):(d=o,u=0,l=(t-(f=o/a))/2),i?{x:u+.1*d,y:l+.1*f,w:.8*d,h:.8*f}:{x:u,y:l,w:d,h:f}}function r(){var e=this.getCurrentTextTrack();if(e&&"html"===e.renderingType){var r=1;e.cellResolution&&(r=e.cellResolution[0]/e.cellResolution[1]);var n=!1;e.isFromCEA608&&(r=3.5/3,n=!0);var a=t.call(this,y.clientWidth,y.clientHeight,y.videoWidth,y.videoHeight,r,n),i=a.w,o=a.h;if(i!=R||o!=I){M=a.x,S=a.y,R=i,I=o,C.style.left=M+"px",C.style.top=S+"px",C.style.width=R+"px",C.style.height=I+"px";for(var s=0;e.activeCues&&s<e.activeCues.length;++s){var u=e.activeCues[s];u.scaleCue(u)}D&&document[D]||b?C.style.zIndex=O:C.style.zIndex=null}}}function n(e){var t,r,n,a=I,i=[R/e.cellResolution[0],a/e.cellResolution[1]];if(e.linePadding)for(t in e.linePadding)if(e.linePadding.hasOwnProperty(t)){r=(e.linePadding[t]*i[0]).toString();for(var o=document.getElementsByClassName("spanPadding"),s=0;s<o.length;s++)o[s].style.cssText=o[s].style.cssText.replace(/(padding-left\s*:\s*)[\d.,]+(?=\s*px)/gi,"$1"+r),o[s].style.cssText=o[s].style.cssText.replace(/(padding-right\s*:\s*)[\d.,]+(?=\s*px)/gi,"$1"+r)}if(e.fontSize)for(t in e.fontSize)if(e.fontSize.hasOwnProperty(t)){r=(e.fontSize[t]/100*i[1]).toString(),n="defaultFontSize"!==t?document.getElementsByClassName(t):document.getElementsByClassName("paragraph");for(var u=0;u<n.length;u++)n[u].style.cssText=n[u].style.cssText.replace(/(font-size\s*:\s*)[\d.,]+(?=\s*px)/gi,"$1"+r)}if(e.lineHeight)for(t in e.lineHeight)if(e.lineHeight.hasOwnProperty(t)){r=(e.lineHeight[t]/100*i[1]).toString(),n=document.getElementsByClassName(t);for(var l=0;l<n.length;l++)n[l].style.cssText=n[l].style.cssText.replace(/(line-height\s*:\s*)[\d.,]+(?=\s*px)/gi,"$1"+r)}}function a(e){T=e,c.call(this),e>=0&&"html"===y.textTracks[e].renderingType?d.call(this):f.call(this)}function s(e){return y.textTracks[e]}function l(e){if(e.cues){for(var t=e.cues,r=t.length-1;r>=0;r--)e.removeCue(t[r]);e.mode="disabled"}}function d(){if(j){var e=document.getElementById("native-cue-style");if(!e){(e=document.createElement("style")).id="native-cue-style",document.head.appendChild(e);var t=e.sheet;y.id?t.insertRule("#"+y.id+"::cue {background: transparent}",0):0!==y.classList.length?t.insertRule("."+y.className+"::cue {background: transparent}",0):t.insertRule("video::cue {background: transparent}",0)}}}function f(){if(j){var e=document.getElementById("native-cue-style");e&&document.head.removeChild(e)}}function c(){if(C)for(;C.firstChild;)C.removeChild(C.firstChild)}var g=this.context,h=(0,i.default)(g).getInstance(),p=(0,u.default)(g).getInstance().log,m=void 0,v=void 0,y=void 0,_=void 0,E=void 0,T=void 0,M=void 0,S=void 0,R=void 0,I=void 0,C=void 0,A=void 0,j=void 0,D=void 0,b=void 0,O=void 0;return{initialize:function(){m=window.VTTCue||window.TextTrackCue,_=[],E=[],T=-1,M=0,S=0,R=0,I=0,C=null,A=null,b=!1,O=2147483647,j=!!navigator.userAgent.match(/Chrome/)&&!navigator.userAgent.match(/Edge/),void 0!==document.fullscreenElement?D="fullscreenElement":void 0!==document.webkitIsFullScreen?D="webkitIsFullScreen":document.msFullscreenElement?D="msFullscreenElement":document.mozFullScreen&&(D="mozFullScreen")},displayCConTop:function(e){b=e,C&&!document[D]&&(C.style.zIndex=e?O:null)},addTextTrack:function(t,r){if(_.length!==r){if(_.push(t),void 0===y&&(y=t.video),_.length===r){_.sort(function(e,t){return e.index-t.index}),C=v.getTTMLRenderingDiv();for(var n=-1,i=0;i<_.length;i++){var s=e.call(this,i);E.push(s),_[i].defaultTrack&&(s.default=!0,n=i),j&&y.appendChild(s);var u=y.textTracks[i];u.nonAddedCues=[],C&&(_[i].isTTML||_[i].isEmbedded)?u.renderingType="html":u.renderingType="default",this.addCaptions(i,0,_[i].captionData),h.trigger(o.default.TEXT_TRACK_ADDED)}a.call(this,n),n>=0&&(y.textTracks[n].mode="showing",this.addCaptions(n,0,null)),h.trigger(o.default.TEXT_TRACKS_ADDED,{index:T,tracks:_})}}else p("Trying to add too many tracks.")},addCaptions:function(e,t,a){var i=e>=0?y.textTracks[e]:null,o=this;if(i){if("showing"!==i.mode)return void(a&&a.length>0&&(i.nonAddedCues=i.nonAddedCues.concat(a)));if(a||(a=i.nonAddedCues,i.nonAddedCues=[]),a&&0!==a.length)for(var s in a){var u,l=a[s];i.cellResolution=l.cellResolution,i.isFromCEA608=l.isFromCEA608,A||"html"!=l.type||(A=setInterval(r.bind(this),500)),"image"==l.type?((u=new m(l.start-t,l.end-t,"")).image=l.data,u.id=l.id,u.size=0,u.type="image",u.onenter=function(){var e=new Image;e.id="ttmlImage_"+this.id,e.src=this.image,e.className="cue-image",C?C.appendChild(e):y.parentNode.appendChild(e)},u.onexit=function(){var e,t,r;for(r=(e=C||y.parentNode).childNodes,t=0;t<r.length;t++)r[t].id=="ttmlImage_"+this.id&&e.removeChild(r[t])}):"html"===l.type?((u=new m(l.start-t,l.end-t,"")).cueHTMLElement=l.cueHTMLElement,u.regions=l.regions,u.regionID=l.regionID,u.cueID=l.cueID,u.videoWidth=l.videoWidth,u.videoHeight=l.videoHeight,u.cellResolution=l.cellResolution,u.fontSize=l.fontSize,u.lineHeight=l.lineHeight,u.linePadding=l.linePadding,u.scaleCue=n.bind(o),C.style.left=M+"px",C.style.top=S+"px",C.style.width=R+"px",C.style.height=I+"px",u.onenter=function(){"showing"==i.mode&&(C.appendChild(this.cueHTMLElement),n.call(o,this))},u.onexit=function(){for(var e=C.childNodes,t=0;t<e.length;++t)e[t].id=="subtitle_"+this.cueID&&C.removeChild(e[t])}):(u=new m(l.start-t,l.end-t,l.data),l.styles&&(void 0!==l.styles.align&&u.hasOwnProperty("align")&&(u.align=l.styles.align),void 0!==l.styles.line&&u.hasOwnProperty("line")&&(u.line=l.styles.line),void 0!==l.styles.position&&u.hasOwnProperty("position")&&(u.position=l.styles.position),void 0!==l.styles.size&&u.hasOwnProperty("size")&&(u.size=l.styles.size))),i.addCue(u)}}},getTextTrack:s,getCurrentTextTrack:function(){return T>=0?y.textTracks[T]:null},getCurrentTrackIdx:function(){return T},setCurrentTrackIdx:a,getTrackIdxForId:function(e){for(var t=-1,r=0;r<y.textTracks.length;r++)if(y.textTracks[r].label===e){t=r;break}return t},deleteTrackCues:l,deleteAllTextTracks:function(){for(var e=E.length,t=0;e>t;t++)if(j)y.removeChild(E[t]);else{var r=s.call(this,t);r.nonAddedCues=[],l.call(this,r)}E=[],_=[],A&&(clearInterval(A),A=null),c.call(this)},deleteTextTrack:function(e){y.removeChild(E[e]),E.splice(e,1)},setConfig:function(e){e&&e.videoModel&&(v=e.videoModel)}}}Object.defineProperty(r,"__esModule",{value:!0});var i=n(e("../core/EventBus.js")),o=n(e("../core/events/Events.js")),s=n(e("../core/FactoryMaker.js")),u=n(e("../core/Debug.js"));a.__dashjs_factory_name="TextTracks",r.default=s.default.getSingletonFactory(a),t.exports=r.default},{"../core/Debug.js":7,"../core/EventBus.js":8,"../core/FactoryMaker.js":9,"../core/events/Events.js":11}],46:[function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function a(){function e(e){var t=function(e){var t=e.streamId,r=e.mediaType;return f[t]?f[t][r]:null}(e),n=e.segmentType,o=e.appended,s=e.removeOrigin,u=e.limit||Number.POSITIVE_INFINITY,l=(0,i.default)(a).getInstance(),d=0,c=[];return t?(delete e.streamId,delete e.mediaType,delete e.segmentType,delete e.removeOrigin,delete e.limit,delete e.appended,c=(o?t.appended:n?t[n]:[]).filter(function(r,n,a){if(d>=u)return!1;for(var i in e){if("mediaInfo"===i)return l.isTracksEqual(r[i],e[i]);if(e.hasOwnProperty(i)&&r[i]!=e[i])return!1}return s&&(t.calculatedBufferedRanges.remove(r.start,r.end),a.splice(n,1)),d++,!0}),e.forRange&&(c=r(c,e.forRange,!1)),c):c}function t(e,t){e.sort(function(e,r){return e[t]<r[t]?-1:e[t]>r[t]?1:0})}function r(e,t,r){var n,a,i,o,s=t.start,u=t.end,l=[];return e.forEach(function(e){n=e.bufferedRange.start,a=e.bufferedRange.end,o=a>s&&u>=a,((i=n>=s&&u>n)||o)&&(l.push(e),r&&(e.bufferedRange.start=i?n:s,e.bufferedRange.end=o?a:u))}),l}var n,a=this.context,d=(0,u.default)(a).getInstance(),f=void 0,c=void 0;return n={append:function(e){var r=e.streamId,n=e.mediaInfo.type,i=e.segmentType,u=e.start,c=e.end;f[r]=f[r]||function(){var e={};return e.audio={calculatedBufferedRanges:(0,o.default)(a).create(),actualBufferedRanges:(0,o.default)(a).create(),appended:[]},e.audio[s.default.MEDIA_SEGMENT_TYPE]=[],e.audio[s.default.INIT_SEGMENT_TYPE]=[],e.video={calculatedBufferedRanges:(0,o.default)(a).create(),actualBufferedRanges:(0,o.default)(a).create(),appended:[]},e.video[s.default.MEDIA_SEGMENT_TYPE]=[],e.video[s.default.INIT_SEGMENT_TYPE]=[],e.fragmentedText={calculatedBufferedRanges:(0,o.default)(a).create(),actualBufferedRanges:(0,o.default)(a).create(),appended:[]},e.fragmentedText[s.default.MEDIA_SEGMENT_TYPE]=[],e.fragmentedText[s.default.INIT_SEGMENT_TYPE]=[],e}(),f[r][n][i].push(e),t(f[r][n][i],"index"),isNaN(u)||isNaN(c)||(f[r][n].calculatedBufferedRanges.add(u,c),d.trigger(l.default.CHUNK_APPENDED,{chunk:e,sender:this}))},extract:function(t){return t.removeOrigin=!0,e(t)},getChunks:e,storeAppendedChunk:function(r,n){if(r&&n){var a,i,o=r.streamId,s=r.mediaInfo.type,u=f[o][s].actualBufferedRanges,l=e({streamId:o,mediaType:s,appended:!0,start:r.start})[0];if(l?(i=f[o][s].appended.indexOf(l),f[o][s].appended[i]=r):f[o][s].appended.push(r),t(f[o][s].appended,"start"),!(a=c.getRangeDifference(u,n)))return void(r.bufferedRange=l?l.bufferedRange:{start:r.start,end:r.end});r.bufferedRange=a,u.add(a.start,a.end),l&&(r.bufferedRange.start=Math.min(l.bufferedRange.start,a.start),r.bufferedRange.end=Math.max(l.bufferedRange.end,a.end))}},updateBufferedRanges:function(t,n){if(t){var i,s,u=t.streamId,l=t.mediaType,d=e({streamId:u,mediaType:l,appended:!0}),c=[];if(f[u][l].actualBufferedRanges=(0,o.default)(a).create(),!n||0===n.length)return void(f[u][l].appended=[]);for(var g=0,h=n.length;h>g;g++)i=n.start(g),s=n.end(g),f[u][l].actualBufferedRanges.add(i,s),c=c.concat(r(d,{start:i,end:s},!0));f[u][l].appended=c}},getTotalBufferLevel:function(e){var t=e.type,r=0;for(var n in f)f.hasOwnProperty(n)&&(r+=c.getTotalBufferedTime({buffered:f[n][t].calculatedBufferedRanges}));return r},setConfig:function(e){e&&e.sourceBufferController&&(c=e.sourceBufferController)},reset:function(){f={}}},f={},n}Object.defineProperty(r,"__esModule",{value:!0});var i=n(e("./controllers/MediaController.js")),o=n(e("./utils/CustomTimeRanges.js")),s=n(e("./vo/metrics/HTTPRequest.js")),u=n(e("../core/EventBus.js")),l=n(e("../core/events/Events.js")),d=n(e("../core/FactoryMaker.js"));a.__dashjs_factory_name="VirtualBuffer",r.default=d.default.getSingletonFactory(a),t.exports=r.default},{"../core/EventBus.js":8,"../core/FactoryMaker.js":9,"../core/events/Events.js":11,"./controllers/MediaController.js":55,"./utils/CustomTimeRanges.js":137,"./vo/metrics/HTTPRequest.js":166}],47:[function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function a(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function i(e){function t(e,r){var n=e.request,a=new XMLHttpRequest,o=[],u=!0,p=!0,m=new Date,v=m,y=0,_=function(e){p=!1,n.requestStartDate=m,n.requestEndDate=new Date,n.firstByteDate=n.firstByteDate||m,n.checkExistenceOnly||l.addHttpRequest(n.mediaType,null,n.type,n.url,a.responseURL||null,n.serviceLocation||null,n.range||null,n.requestStartDate,n.firstByteDate,n.requestEndDate,a.status,n.duration,a.getAllResponseHeaders(),e?o:null)},E=function(){-1!==f.indexOf(a)&&(f.splice(f.indexOf(a),1),p&&(_(!1),r>0?(r--,g.push(setTimeout(function(){t(e,r)},i.getRetryIntervalForType(n.type)))):(s.downloadError(h[n.type],n.url,n),e.error&&e.error(n,"error",a.statusText),e.complete&&e.complete(n,a.statusText))))};try{var T=d.modifyRequestURL(n.url),M=n.checkExistenceOnly?"HEAD":"GET";a.open(M,T,!0),n.responseType&&(a.responseType=n.responseType),n.range&&a.setRequestHeader("Range","bytes="+n.range),n.requestStartDate||(n.requestStartDate=m),(a=d.modifyRequestHeader(a)).onload=function(){a.status>=200&&a.status<=299&&(_(!0),e.success&&e.success(a.response,a.statusText,a),e.complete&&e.complete(n,a.statusText))},a.onloadend=E,a.onerror=E,a.onprogress=function(t){var r=new Date;u&&(u=!1,(!t.lengthComputable||t.lengthComputable&&t.total!==t.loaded)&&(n.firstByteDate=r)),t.lengthComputable&&(n.bytesLoaded=t.loaded,n.bytesTotal=t.total),o.push({s:v,d:r.getTime()-v.getTime(),b:[t.loaded?t.loaded-y:0]}),v=r,y=t.loaded,e.progress&&e.progress()};var S=(new Date).getTime();isNaN(n.delayLoadingTime)||S>=n.delayLoadingTime?(f.push(a),a.send()):function(){var e={xhr:a};c.push(e),e.delayTimeout=setTimeout(function(){if(-1!==c.indexOf(e)){c.splice(c.indexOf(e),1);try{f.push(e.xhr),e.xhr.send()}catch(t){e.xhr.onerror()}}},n.delayLoadingTime-S)}()}catch(e){a.onerror()}}var r,n=this.context,i=(0,u.default)(n).getInstance(),s=e.errHandler,l=e.metricsModel,d=e.requestModifier,f=void 0,c=void 0,g=void 0,h=void 0;return r={load:function(e){e.request&&t(e,i.getRetryAttemptsForType(e.request.type))},abort:function(){g.forEach(function(e){return clearTimeout(e)}),g=[],c.forEach(function(e){return clearTimeout(e.delayTimeout)}),c=[],f.forEach(function(e){e.onloadend=e.onerror=void 0,e.abort()}),f=[]}},function(){var e;f=[],c=[],g=[],a(e={},o.default.MPD_TYPE,s.DOWNLOAD_ERROR_ID_MANIFEST),a(e,o.default.XLINK_EXPANSION_TYPE,s.DOWNLOAD_ERROR_ID_XLINK),a(e,o.default.INIT_SEGMENT_TYPE,s.DOWNLOAD_ERROR_ID_CONTENT),a(e,o.default.MEDIA_SEGMENT_TYPE,s.DOWNLOAD_ERROR_ID_CONTENT),a(e,o.default.INDEX_SEGMENT_TYPE,s.DOWNLOAD_ERROR_ID_CONTENT),a(e,o.default.BITSTREAM_SWITCHING_SEGMENT_TYPE,s.DOWNLOAD_ERROR_ID_CONTENT),a(e,o.default.OTHER_TYPE,s.DOWNLOAD_ERROR_ID_CONTENT),h=e}(),r}Object.defineProperty(r,"__esModule",{value:!0});var o=n(e("./vo/metrics/HTTPRequest.js")),s=n(e("../core/FactoryMaker.js")),u=n(e("./models/MediaPlayerModel.js"));i.__dashjs_factory_name="XHRLoader";var l=s.default.getClassFactory(i);r.default=l,t.exports=r.default},{"../core/FactoryMaker.js":9,"./models/MediaPlayerModel.js":90,"./vo/metrics/HTTPRequest.js":166}],48:[function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function a(e){var t=this.context,r=(0,l.default)(t).getInstance(),n=(0,o.default)(t).create({errHandler:e.errHandler,metricsModel:e.metricsModel,requestModifier:e.requestModifier});return{load:function(e,t,a){var o=function(n,o){t.resolved=!0,t.resolvedContent=n||null,r.trigger(d.default.XLINK_ELEMENT_LOADED,{element:t,resolveObject:a,error:n||o?null:new i.default(c,"Failed loading Xlink element: "+e)})};if("urn:mpeg:dash:resolve-to-zero:2013"===e)o(null,!0);else{var l=new u.default(e,s.default.XLINK_TYPE);n.load({request:l,success:function(e){o(e)},error:function(){o(null)}})}},reset:function(){n&&(n.abort(),n=null)}}}Object.defineProperty(r,"__esModule",{value:!0});var i=n(e("./vo/Error.js")),o=n(e("./XHRLoader.js")),s=n(e("./vo/metrics/HTTPRequest.js")),u=n(e("./vo/TextRequest.js")),l=n(e("../core/EventBus.js")),d=n(e("../core/events/Events.js")),f=n(e("../core/FactoryMaker.js")),c=1;a.__dashjs_factory_name="XlinkLoader";var g=f.default.getClassFactory(a);g.XLINK_LOADER_ERROR_LOADING_FAILURE=c,r.default=g,t.exports=r.default},{"../core/EventBus.js":8,"../core/FactoryMaker.js":9,"../core/events/Events.js":11,"./XHRLoader.js":47,"./vo/Error.js":149,"./vo/TextRequest.js":157,"./vo/metrics/HTTPRequest.js":166}],49:[function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function a(){function e(){N={video:!0,audio:!0},x={},L={},F={},B={},k={},U={},H={},K={},Y=!1,Q=(0,s.default)(D).getInstance(),W=(0,l.default)(D).getInstance(),G=(0,h.default)(D).getInstance(),V=(0,p.default)(D).getInstance(),z=(0,m.default)(D).getInstance()}function t(e,t){var a;return x[t]=x[t]||{},x[t].hasOwnProperty(e)||(x[t][e]=0),a=function(e,t){var n=r(t);if(isNaN(n)||!K[t])return e;var a=M(K[t].getMediaInfo(),n);return Math.min(e,a)}(x[t][e],e),a=function(e,t,r){var a=n(t);return isNaN(a)||a>=1||0>a?e:Math.min(e,Math.round(r*a))}(a,e,x[t][e]),function(e,t){if("video"!==t||!Y||!K[t])return e;var r=z.getElement(),n=r.clientWidth,a=r.clientHeight,i=G.getValue(),o=V.getAdaptationForType(i,0,t).Representation,s=e;if(n>0&&a>0){for(;s>0&&o[s]&&n<o[s].width&&n-o[s-1].width<o[s].width-n;)s-=1;o.length-2>=s&&o[s].width===o[s+1].width&&(s=Math.min(e,s+1))}return s}(a,e)}function r(e){return B.hasOwnProperty("max")&&B.max.hasOwnProperty(e)?B.max[e]:NaN}function n(e){return k.hasOwnProperty("max")&&k.max.hasOwnProperty(e)?k.max[e]:1}function a(e){return N[e]}function g(e,r,n){var a=r.id,i=R(e,r);if(null===n||isNaN(n)||n%1!=0)throw"argument is not an integer";n!==i&&n>=0&&n<=t(e,a)&&(I(e,a,n),b.trigger(c.default.QUALITY_CHANGED,{mediaType:e,streamInfo:r,oldQuality:i,newQuality:n}))}function T(e,t){H[e].state=t}function M(e,t){var r=S(e);if(!r||0===r.length)return-1;for(var n=r.length-1;n>=0;n--)if(1e3*t>=r[n].bitrate)return n;return 0}function S(e){if(!e||!e.bitrateList)return null;for(var t,r=e.bitrateList,n=e.type,a=[],i=0,s=r.length;s>i;i++)(t=new o.default).mediaType=n,t.qualityIndex=i,t.bitrate=r[i].bandwidth,t.width=r[i].width,t.height=r[i].height,a.push(t);return a}function R(e,t){var r=t.id;return L[r]=L[r]||{},L[r].hasOwnProperty(e)||(L[r][e]=0),L[r][e]}function I(e,t,r){L[t]=L[t]||{},L[t][e]=r}function C(e,t){return F[t]=F[t]||{},F[t].hasOwnProperty(e)||(F[t][e]=0),F[t][e]}function A(e){var t=e.request.mediaType;if(a(t)){var r=O.getRules(u.default.ABANDON_FRAGMENT_RULES),n=K[t].getScheduleController();if(!n)return;var o=n.getFragmentModel();P.applyRules(r,K[t],function(e){if(e.confidence===i.default.STRONG){var r=o.getRequests({state:d.default.FRAGMENT_MODEL_LOADING}),a=e.value;R(t,w.getActiveStreamInfo())>a&&(o.abortRequests(),T(t,v),g(t,w.getActiveStreamInfo(),a),n.replaceCanceledRequests(r),function(e){q=setTimeout(function(){T(e,y)},W.getAbandonLoadTimeout())}(t))}},e,function(e,t){return t})}}var j,D=this.context,b=(0,f.default)(D).getInstance(),O=void 0,P=void 0,w=void 0,N=void 0,x=void 0,L=void 0,F=void 0,B=void 0,k=void 0,U=void 0,K=void 0,H=void 0,q=void 0,Y=void 0,G=void 0,V=void 0,z=void 0,W=void 0,Q=void 0;return j={isPlayingAtTopQuality:function(e){var r=e.id,n=R("audio",e),a=R("video",e);return n===t("audio",r)&&a===t("video",r)},updateTopQualityIndex:function(e){var t=e.type,r=e.streamInfo.id,n=e.representationCount-1;return function(e,t,r){x[t]=x[t]||{},x[t][e]=r}(t,r,n),n},getAverageThroughput:function(e){return U[e]},getBitrateList:S,getQualityForBitrate:M,getMaxAllowedBitrateFor:r,setMaxAllowedBitrateFor:function(e,t){B.max=B.max||{},B.max[e]=t},getMaxAllowedRepresentationRatioFor:n,setMaxAllowedRepresentationRatioFor:function(e,t){k.max=k.max||{},k.max[e]=t},getInitialBitrateFor:function(e){var t=Q.getSavedBitrateSettings(e);if(!B.hasOwnProperty(e))if(k.hasOwnProperty(e)){var r=G.getValue(),n=V.getAdaptationForType(r,0,e).Representation;if(Array.isArray(n)){var a=Math.max(Math.round(n.length*k[e])-1,0);B[e]=n[a].bandwidth}else B[e]=0}else isNaN(t)?B[e]="video"===e?_:E:B[e]=t;return B[e]},setInitialBitrateFor:function(e,t){B[e]=t},getInitialRepresentationRatioFor:function(e){return k.hasOwnProperty(e)?k[e]:null},setInitialRepresentationRatioFor:function(e,t){k[e]=t},setAutoSwitchBitrateFor:function(e,t){N[e]=t},getAutoSwitchBitrateFor:a,setLimitBitrateByPortal:function(e){Y=e},getLimitBitrateByPortal:function(){return Y},getConfidenceFor:C,getQualityFor:R,getAbandonmentStateFor:function(e){return H[e].state},setAbandonmentStateFor:T,setPlaybackQuality:g,getPlaybackQuality:function(e,r){var n,o,s,l,d=e.getType(),f=e.getStreamInfo(),g=f.id;n=R(d,f),l=C(d,g),a(d)?(s=O.getRules(u.default.QUALITY_SWITCH_RULES),P.applyRules(s,e,function(a){var i=t(d,g);n=a.value,l=a.confidence,0>n&&(n=0),n>i&&(n=i),o=R(d,f),n!==o&&(H[d].state===y||n>o)&&(I(d,g,n),function(e,t,r){F[t]=F[t]||{},F[t][e]=r}(d,g,l),b.trigger(c.default.QUALITY_CHANGED,{mediaType:d,streamInfo:e.getStreamInfo(),oldQuality:o,newQuality:n})),r&&r()},n,function(e,t){return e=e===i.default.NO_CHANGE?0:e,Math.max(e,t)})):r&&r()},setAverageThroughput:function(e,t){U[e]=t},getTopQualityIndexFor:t,initialize:function(e,t){K[e]=t,H[e]=H[e]||{},H[e].state=y,b.on(c.default.LOADING_PROGRESS,A,this)},setConfig:function(e){e&&(e.abrRulesCollection&&(O=e.abrRulesCollection),e.rulesController&&(P=e.rulesController),e.streamController&&(w=e.streamController))},reset:function(){b.off(c.default.LOADING_PROGRESS,A,this),clearTimeout(q),q=null,e()}},e(),j}Object.defineProperty(r,"__esModule",{value:!0});var i=n(e("../rules/SwitchRequest")),o=n(e("../vo/BitrateInfo.js")),s=n(e("../utils/DOMStorage.js")),u=n(e("../rules/abr/ABRRulesCollection.js")),l=n(e("../models/MediaPlayerModel.js")),d=n(e("../models/FragmentModel.js")),f=n(e("../../core/EventBus.js")),c=n(e("../../core/events/Events.js")),g=n(e("../../core/FactoryMaker.js")),h=n(e("../models/ManifestModel.js")),p=n(e("../../dash/models/DashManifestModel.js")),m=n(e("../models/VideoModel.js")),v="abandonload",y="allowload",_=1e3,E=100;a.__dashjs_factory_name="AbrController";var T=g.default.getSingletonFactory(a);T.ABANDON_LOAD=v,r.default=T,t.exports=r.default},{"../../core/EventBus.js":8,"../../core/FactoryMaker.js":9,"../../core/events/Events.js":11,"../../dash/models/DashManifestModel.js":19,"../models/FragmentModel.js":88,"../models/ManifestModel.js":89,"../models/MediaPlayerModel.js":90,"../models/VideoModel.js":93,"../rules/SwitchRequest":119,"../rules/abr/ABRRulesCollection.js":120,"../utils/DOMStorage.js":138,"../vo/BitrateInfo.js":147}],50:[function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function a(){var e,t=this.context,r=(0,d.default)(t).getInstance(),n=(0,s.default)(t).getInstance(),a=void 0,l=void 0;return e={reset:function(){a.reset(),l.reset()},initialize:function(e){!function(e){a.update(e),l.chooseSelectorFromManifest(e)}(e)},resolve:function(e){var t=a.getForPath(e).reduce(function(e,t){var r=l.select(t);return r&&(n.isRelative(r.url)?e.url+=r.url:(e.url=r.url,e.serviceLocation=r.serviceLocation)),e},new u.default);return n.isRelative(t.url)?void 0:t}},a=(0,i.default)(t).create(),l=(0,o.default)(t).create(),r.on(f.default.SERVICE_LOCATION_BLACKLIST_CHANGED,function(e){a.invalidateSelectedIndexes(e.entry)},e),e}Object.defineProperty(r,"__esModule",{value:!0});var i=n(e("../models/BaseURLTreeModel.js")),o=n(e("../utils/BaseURLSelector.js")),s=n(e("../utils/URLUtils.js")),u=n(e("../../dash/vo/BaseURL.js")),l=n(e("../../core/FactoryMaker.js")),d=n(e("../../core/EventBus.js")),f=n(e("../../core/events/Events.js"));a.__dashjs_factory_name="BaseURLController",r.default=l.default.getSingletonFactory(a),t.exports=r.default},{"../../core/EventBus.js":8,"../../core/FactoryMaker.js":9,"../../core/events/Events.js":11,"../../dash/vo/BaseURL.js":28,"../models/BaseURLTreeModel.js":87,"../utils/BaseURLSelector.js":134,"../utils/URLUtils.js":145}],51:[function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function a(e){function t(e){-1===n.indexOf(e)&&(n.push(e),a.trigger(i,{entry:e}))}function r(e){e.error&&t(e.request.serviceLocation)}var n=[],a=(0,o.default)(this.context).getInstance(),i=e.updateEventName,s=e.loadFailedEventName;return function(){s&&a.on(s,r,this)}(),{add:t,contains:function(e){return!!(n.length&&e&&e.length)&&-1!==n.indexOf(e)},reset:function(){n=[]}}}Object.defineProperty(r,"__esModule",{value:!0});var i=n(e("../../core/FactoryMaker.js")),o=n(e("../../core/EventBus.js"));a.__dashjs_factory_name="BlackListController",r.default=i.default.getClassFactory(a),t.exports=r.default},{"../../core/EventBus.js":8,"../../core/FactoryMaker.js":9}],52:[function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function a(e){function t(e){var t;e.fragmentModel===Me.getFragmentModel()&&(Y("Initialization finished loading"),t=e.chunk,ee.append(t),a(N(),ne))}function r(e){if(e.fragmentModel===Me.getFragmentModel()){var t,r=e.chunk,a=r.bytes,o=r.quality,s=r.index,u=Me.getFragmentModel().getRequests({state:i.default.FRAGMENT_MODEL_EXECUTED,quality:o,index:s})[0],l=Me.getRepresentationInfoForQuality(o),d=z.getValue(),f=$.getEventsFor(d,l.mediaInfo,Me),c=$.getEventsFor(d,l,Me);(f.length>0||c.length>0)&&(t=function(e,t,r,n){var a,i,o,s=Math.max(isNaN(t.startTime)?0:t.startTime,0),u=[],l=[];Ee=!1,o=r.concat(n);for(var d=0;d<o.length;d++)u[o[d].schemeIdUri]=o[d];for(var f=0,c=(a=(0,p.default)(q).getInstance().parse(e).getBoxes("emsg")).length;c>f;f++)(i=$.getEvent(a[f],u,s))&&l.push(i);return l}(a,u,f,c),Me.getEventController().addInbandEvents(t)),r.bytes=function(e){if(!Ee)return e;for(var t,r,n=e.length,a=Math.pow(256,2),i=Math.pow(256,3),o=new Uint8Array(e.length),s=0,u=0;n>s;){if(t=String.fromCharCode(e[s+4],e[s+5],e[s+6],e[s+7]),r=e[s]*i+e[s+1]*a+256*e[s+2]+1*e[s+3],"emsg"!=t)for(var l=s;s+r>l;l++)o[u]=e[l],u++;s+=r}return o.subarray(0,u)}(a),ee.append(r),n()}}function n(){if(ge&&!ye&&D()){var e,t=N();if(ve)e=ve;else{if(!(e=ee.extract({streamId:t,mediaType:ce,segmentType:s.default.MEDIA_SEGMENT_TYPE,limit:1})[0]))return;ve=e}e.quality===ae?(ve=!1,m(e)):a(t,ve.quality)}}function a(e,t){var r={streamId:e,mediaType:ce,segmentType:s.default.INIT_SEGMENT_TYPE,quality:t},n=ee.getChunks(r)[0];if(n){if(!ge)return;m(n)}else G.trigger(h.default.INIT_REQUESTED,{sender:re,requiredQuality:t})}function m(e){ye=!0,pe=e,W.append(ge,e),"video"===e.mediaInfo.type&&e.mediaInfo.embeddedCaptions&&te.append(e.bytes,e)}function T(e){if(ge===e.buffer){var t,r,a;if(R(),ie&&Me.getStreamInfo().isLast&&X.signalEndOfStream(le),e.error)return e.error.code===u.default.QUOTA_EXCEEDED_ERROR_CODE&&(ee.append(pe),ue=.8*W.getTotalBufferedTime(ge),G.trigger(h.default.QUOTA_EXCEEDED,{sender:re,criticalBufferLevel:ue}),O(b())),void(ye=!1);if(D()||(G.trigger(h.default.QUOTA_EXCEEDED,{sender:re,criticalBufferLevel:ue}),O(b())),(t=W.getAllRanges(ge))&&t.length>0)for(r=0,a=t.length;a>r;r++)Y("Buffered Range: "+t.start(r)+" - "+t.end(r));ye=!1,isNaN(pe.index)?(ae=pe.quality,Me.isDynamic()||n()):(ee.storeAppendedChunk(pe,ge),function(){var e,t=ee.getChunks({streamId:N(),mediaType:ce,segmentType:s.default.MEDIA_SEGMENT_TYPE,appended:!0}),r=(0,c.default)(q),n=r.create(),a=r.create(),i=Te.getTime(),o=2*Me.getCurrentRepresentationInfo().fragmentDuration;if(t.forEach(function(e){(J.isCurrentTrack(e.mediaInfo)?a:n).add(e.bufferedRange.start,e.bufferedRange.end)}),0!==n.length&&0!==a.length&&!(o>W.getBufferLength({buffered:a},i)))for(var u=0,l=n.length;l>u;u++)e={start:n.start(u),end:n.end(u)},(J.getSwitchMode(ce)===f.default.TRACK_SWITCH_MODE_ALWAYS_REPLACE||e.start>i)&&O(e)}(),de=Math.max(pe.index,de),A()),G.trigger(h.default.BYTES_APPENDED,{sender:re,quality:pe.quality,startTime:pe.start,index:pe.index,bufferedRanges:t})}}function M(e){var t=e.newQuality;ne!==t&&ce===e.mediaType&&Me.getStreamInfo().id===e.streamInfo.id&&(w(Me.getRepresentationInfoForQuality(t).MSETimeOffset),ne=t)}function S(){ye=!1,R()}function R(){I(),C()}function I(){var e=Te.getTime();oe=W.getBufferLength(ge,e),G.trigger(h.default.BUFFER_LEVEL_UPDATED,{sender:re,bufferLevel:oe}),j()}function C(){Me.getStreamInfo().id===Z.getActiveStreamInfo().id&&(V.addBufferState(ce,he,se),V.addBufferLevel(ce,new Date,1e3*oe))}function A(){de===fe-1&&!ie&&(ie=!0,G.trigger(h.default.BUFFERING_COMPLETED,{sender:re,streamInfo:Me.getStreamInfo()}))}function j(){!function(e){if(!(he===e||"fragmentedText"===ce&&te.getAllTracksAreDisabled())){he=e,C(),G.trigger(h.default.BUFFER_LEVEL_STATE_CHANGED,{sender:re,state:e,mediaType:ce,streamInfo:Me.getStreamInfo()});var t=e===y?h.default.BUFFER_LOADED:h.default.BUFFER_EMPTY;G.trigger(t,{mediaType:ce}),Y(e===y?"Got enough buffer to start.":"Waiting for more buffer before starting playback.")}}(E>oe&&!ie?_:y)}function D(){var e=W.getTotalBufferedTime(ge);return ue>e}function b(){var e,t,r;return ge?(e=Te.getTime(),t=(r=Me.getFragmentModel().getRequests({state:i.default.FRAGMENT_MODEL_EXECUTED,time:e})[0])&&!isNaN(r.startTime)?r.startTime:Math.floor(e),null===W.getBufferRange(ge,e)&&ge.buffered.length>0&&(t=ge.buffered.end(ge.buffered.length-1)),{start:ge.buffered.start(0),end:t}):null}function O(e){if(e&&ge){var t=e.start,r=e.end;W.remove(ge,t,r,le)}}function P(e){ge===e.buffer&&(_e&&(_e=!1),ee.updateBufferedRanges({streamId:N(),mediaType:ce},W.getAllRanges(ge)),I(),G.trigger(h.default.BUFFER_CLEARED,{sender:re,from:e.from,to:e.to,hasEnoughSpaceToAppend:D()}),D()||null===Ie&&(Ie=setTimeout(function(){Ie=null,O(b())},1e3*Me.getStreamInfo().manifestInfo.minBufferTime)))}function w(e){ge&&ge.timestampOffset!==e&&!isNaN(e)&&(ge.timestampOffset=e)}function N(){return Me.getStreamInfo().id}function x(e){e.sender.getStreamProcessor()===Me&&(e.error||w(e.currentRepresentation.MSETimeOffset))}function L(e){e.fragmentModel===Me.getFragmentModel()&&(fe=e.request.index,A())}function F(e){e.sender===ee&&C()}function B(e){if(ge&&e.newMediaInfo.type===ce&&e.newMediaInfo.streamInfo.id===Me.getStreamInfo().id){var t=e.newMediaInfo.type,r=e.switchMode,n={start:0,end:Te.getTime()};if(ce===t)switch(r){case f.default.TRACK_SWITCH_MODE_ALWAYS_REPLACE:O(n);break;case f.default.TRACK_SWITCH_MODE_NEVER_REPLACE:break;default:Y("track switch mode is not supported: "+r)}}}function k(){++me*(Re.getWallclockTimeUpdateInterval()/1e3)>=Re.getBufferPruningInterval()&&!ye&&(me=0,function(){if("fragmentedText"!==ce){Y("try to prune buffer");var e=ge.buffered.length?ge.buffered.start(0):0,t=Te.getTime()-e-Re.getBufferToKeep();t>0&&(Y("pruning buffer: "+t+" seconds."),_e=!0,W.remove(ge,0,Math.round(e+t),le))}}())}function U(){j()}function K(e){ge=e}function H(e){le=e}var q=this.context,Y=(0,v.default)(q).getInstance().log,G=(0,g.default)(q).getInstance(),V=e.metricsModel,z=e.manifestModel,W=e.sourceBufferController,Q=e.errHandler,X=e.mediaSourceController,Z=e.streamController,J=e.mediaController,$=e.adapter,ee=e.virtualBuffer,te=e.textSourceBuffer,re=void 0,ne=void 0,ae=void 0,ie=void 0,oe=void 0,se=void 0,ue=void 0,le=void 0,de=void 0,fe=void 0,ce=void 0,ge=void 0,he=void 0,pe=void 0,me=void 0,ve=void 0,ye=void 0,_e=void 0,Ee=void 0,Te=void 0,Me=void 0,Se=void 0,Re=void 0,Ie=void 0;return re={initialize:function(e,n,a){ce=e,H(n),Me=a,Re=(0,o.default)(q).getInstance(),Te=(0,d.default)(q).getInstance(),Se=(0,l.default)(q).getInstance(),Me.getFragmentController(),Me.getScheduleController(),ne=Se.getQualityFor(ce,Me.getStreamInfo()),G.on(h.default.DATA_UPDATE_COMPLETED,x,this),G.on(h.default.INIT_FRAGMENT_LOADED,t,this),G.on(h.default.MEDIA_FRAGMENT_LOADED,r,this),G.on(h.default.QUALITY_CHANGED,M,this),G.on(h.default.STREAM_COMPLETED,L,this),G.on(h.default.PLAYBACK_PROGRESS,R,this),G.on(h.default.PLAYBACK_TIME_UPDATED,R,this),G.on(h.default.PLAYBACK_RATE_CHANGED,U,this),G.on(h.default.PLAYBACK_SEEKING,S,this),G.on(h.default.WALLCLOCK_TIME_UPDATED,k,this),G.on(h.default.CURRENT_TRACK_CHANGED,B,this),G.on(h.default.SOURCEBUFFER_APPEND_COMPLETED,T,this),G.on(h.default.SOURCEBUFFER_REMOVE_COMPLETED,P,this),G.on(h.default.CHUNK_APPENDED,F,this)},createBuffer:function(e){if(!e||!le||!Me)return null;var t=null;try{(t=W.createSourceBuffer(le,e))&&t.hasOwnProperty("initialize")&&t.initialize(ce,this)}catch(e){Q.mediaSourceError("Error creating "+ce+" source buffer.")}return K(t),w(Me.getRepresentationInfoForQuality(ne).MSETimeOffset),n(),t},getType:function(){return ce},getStreamProcessor:function(){return Me},setStreamProcessor:function(e){Me=e},getBuffer:function(){return ge},setBuffer:K,getBufferLevel:function(){return oe},getCriticalBufferLevel:function(){return ue},setMediaSource:H,getMediaSource:function(){return le},getIsBufferingCompleted:function(){return ie},getIsAppendingInProgress:function(){return ye},reset:function(e){G.off(h.default.DATA_UPDATE_COMPLETED,x,this),G.off(h.default.QUALITY_CHANGED,M,this),G.off(h.default.INIT_FRAGMENT_LOADED,t,this),G.off(h.default.MEDIA_FRAGMENT_LOADED,r,this),G.off(h.default.STREAM_COMPLETED,L,this),G.off(h.default.CURRENT_TRACK_CHANGED,B,this),G.off(h.default.PLAYBACK_PROGRESS,R,this),G.off(h.default.PLAYBACK_TIME_UPDATED,R,this),G.off(h.default.PLAYBACK_RATE_CHANGED,U,this),G.off(h.default.PLAYBACK_SEEKING,S,this),G.off(h.default.WALLCLOCK_TIME_UPDATED,k,this),G.off(h.default.SOURCEBUFFER_APPEND_COMPLETED,T,this),G.off(h.default.SOURCEBUFFER_REMOVE_COMPLETED,P,this),G.off(h.default.CHUNK_APPENDED,F,this),clearTimeout(Ie),Ie=null,ue=Number.POSITIVE_INFINITY,he=_,ae=-1,fe=-1,de=-1,ne=0,pe=null,ve=!1,ie=!1,ye=!1,_e=!1,Te=null,Me=null,Se=null,e||(W.abort(le,ge),W.removeSourceBuffer(le,ge)),ge=null}},ne=-1,ae=-1,ie=!1,oe=0,se=0,ue=Number.POSITIVE_INFINITY,de=-1,fe=-1,ge=null,he=_,me=0,ve=!1,ye=!1,_e=!1,Ee=!1,Ie=null,re}Object.defineProperty(r,"__esModule",{value:!0});var i=n(e("../models/FragmentModel.js")),o=n(e("../models/MediaPlayerModel.js")),s=n(e("../vo/metrics/HTTPRequest.js")),u=n(e("./SourceBufferController.js")),l=n(e("./AbrController.js")),d=n(e("./PlaybackController.js")),f=n(e("./MediaController.js")),c=n(e("../utils/CustomTimeRanges.js")),g=n(e("../../core/EventBus.js")),h=n(e("../../core/events/Events.js")),p=n(e("../utils/BoxParser.js")),m=n(e("../../core/FactoryMaker.js")),v=n(e("../../core/Debug.js")),y="bufferLoaded",_="bufferStalled",E=.5;a.__dashjs_factory_name="BufferController";var T=m.default.getClassFactory(a);T.BUFFER_LOADED=y,T.BUFFER_EMPTY=_,r.default=T,t.exports=r.default},{"../../core/Debug.js":7,"../../core/EventBus.js":8,"../../core/FactoryMaker.js":9,"../../core/events/Events.js":11,"../models/FragmentModel.js":88,"../models/MediaPlayerModel.js":90,"../utils/BoxParser.js":135,"../utils/CustomTimeRanges.js":137,"../vo/metrics/HTTPRequest.js":166,"./AbrController.js":49,"./MediaController.js":55,"./PlaybackController.js":57,"./SourceBufferController.js":59}],53:[function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function a(){function e(){null!==p&&T&&(clearInterval(p),p=null,T=!1)}function t(){n(g),n(c),function(){if(h)for(var e=E.getTime(),t=Object.keys(h),r=0;r<t.length;r++){var n=t[r],a=h[n];null!==a&&(a.duration+a.presentationTime)/a.eventStream.timescale<e&&(d("Remove Event "+n+" at time "+e),a=null,delete h[n])}}()}function r(){var e=y.getValue(),t=e.url;e.hasOwnProperty("Location")&&(t=e.Location),d("Refresh manifest @ "+t),_.getManifestLoader().load(t)}function n(e){var t,n=E.getTime();if(e)for(var i=Object.keys(e),s=0;s<i.length;s++){var u=i[s],l=e[u];void 0!==l&&(0===(t=l.presentationTime/l.eventStream.timescale)||n>=t&&t+v>n)&&(d("Start Event "+u+" at "+n),l.duration>0&&(h[u]=l),l.eventStream.schemeIdUri==a&&l.eventStream.value==o?r():f.trigger(l.eventStream.schemeIdUri,{event:l}),delete e[u])}}var a="urn:mpeg:dash:event:2012",o=1,l=this.context,d=(0,s.default)(l).getInstance().log,f=(0,u.default)(l).getInstance(),c=void 0,g=void 0,h=void 0,p=void 0,m=void 0,v=void 0,y=void 0,_=void 0,E=void 0,T=void 0;return{initialize:function(){T=!1,c={},g={},h={},p=null,v=(m=100)/1e3,E=(0,i.default)(l).getInstance()},addInlineEvents:function(e){if(c={},e)for(var t=0;t<e.length;t++){var r=e[t];c[r.id]=r,d("Add inline event with id "+r.id)}d("Added "+e.length+" inline events")},addInbandEvents:function(e){for(var t=0;t<e.length;t++){var r=e[t];r.id in g?d("Repeated event with id "+r.id):(g[r.id]=r,d("Add inband event with id "+r.id))}},clear:e,start:function(){d("Start Event Controller"),T||isNaN(m)||(T=!0,p=setInterval(t,m))},setConfig:function(e){e&&(e.manifestModel&&(y=e.manifestModel),e.manifestUpdater&&(_=e.manifestUpdater))},reset:function(){e(),c=null,g=null,h=null,E=null}}}Object.defineProperty(r,"__esModule",{value:!0});var i=n(e("../controllers/PlaybackController.js")),o=n(e("../../core/FactoryMaker.js")),s=n(e("../../core/Debug.js")),u=n(e("../../core/EventBus.js"));a.__dashjs_factory_name="EventController",r.default=o.default.getSingletonFactory(a),t.exports=r.default},{"../../core/Debug.js":7,"../../core/EventBus.js":8,"../../core/FactoryMaker.js":9,"../controllers/PlaybackController.js":57}],54:[function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function a(){function e(e){return e&&e.type&&e.type===i.default.INIT_SEGMENT_TYPE}function t(e){for(var t=p.length,r=0;t>r;r++)if(p[r].getScheduleController()==e)return p[r];return null}function r(e,t,r){var n=new o.default;return n.streamId=r,n.mediaInfo=t.mediaInfo,n.segmentType=t.type,n.start=t.startTime,n.duration=t.duration,n.end=n.start+n.duration,n.bytes=e,n.index=t.index,n.quality=t.quality,n}function n(n){var a=n.sender.getScheduleController();if(t(a)){var i,o=n.request,s=n.response,u=e(o),l=a.getStreamProcessor().getStreamInfo().id;if(!s)return void g("No "+o.mediaType+" bytes to push.");i=r(s,o,l),h.trigger(u?d.default.INIT_FRAGMENT_LOADED:d.default.MEDIA_FRAGMENT_LOADED,{chunk:i,fragmentModel:n.sender})}}var a,f=this.context,g=(0,c.default)(f).getInstance().log,h=(0,l.default)(f).getInstance(),p=void 0;return a={process:function(e){var t=null;return null!=e&&e.byteLength>0&&(t=new Uint8Array(e)),t},getModel:function(e){if(!e)return null;var r=t(e);return r||((r=(0,s.default)(f).create({metricsModel:(0,u.default)(f).getInstance()})).setScheduleController(e),p.push(r)),r},detachModel:function(e){var t=p.indexOf(e);t>-1&&p.splice(t,1)},isInitializationRequest:e,reset:function(){h.off(d.default.FRAGMENT_LOADING_COMPLETED,n,this),p=[]}},p=[],h.on(d.default.FRAGMENT_LOADING_COMPLETED,n,a),a}Object.defineProperty(r,"__esModule",{value:!0});var i=n(e("../vo/metrics/HTTPRequest.js")),o=n(e("../vo/DataChunk.js")),s=n(e("../models/FragmentModel.js")),u=n(e("../models/MetricsModel.js")),l=n(e("../../core/EventBus.js")),d=n(e("../../core/events/Events.js")),f=n(e("../../core/FactoryMaker.js")),c=n(e("../../core/Debug.js"));a.__dashjs_factory_name="FragmentController",r.default=f.default.getClassFactory(a),t.exports=r.default},{"../../core/Debug.js":7,"../../core/EventBus.js":8,"../../core/FactoryMaker.js":9,"../../core/events/Events.js":11,"../models/FragmentModel.js":88,"../models/MetricsModel.js":91,"../vo/DataChunk.js":148,"../vo/metrics/HTTPRequest.js":166}],55:[function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function a(){function e(){C={},A={audio:null,video:null},D={audio:c,video:f}}function t(e,t){if(!e||!t)return[];var r=t.id;return C[r]&&C[r][e]?C[r][e].list:[]}function r(e,t){return e&&t?C[t.id][e].current:null}function n(e){if(e){var t=e.type,n=e.streamInfo,a=n.id,o=r(t,n);if(C[a]&&C[a][t]&&(!o||!y(e,o))){C[a][t].current=e,o&&S.trigger(i.default.CURRENT_TRACK_CHANGED,{oldMediaInfo:o,newMediaInfo:e,switchMode:D[t]});var s=function(e){var t={lang:e.lang,viewpoint:e.viewpoint,roles:e.roles,accessibility:e.accessibility,audioChannelConfiguration:e.audioChannelConfiguration};return t.lang||t.viewpoint||t.role&&t.role.length>0||t.accessibility&&t.accessibility.length>0||t.audioChannelConfiguration&&t.audioChannelConfiguration.length>0?t:null}(e);s&&C[a][t].storeLastSettings&&(s.roles&&(s.role=s.roles[0],delete s.roles),s.accessibility&&(s.accessibility=s.accessibility[0]),s.audioChannelConfiguration&&(s.audioChannelConfiguration=s.audioChannelConfiguration[0]),I.setSavedMediaSettings(t,s))}}}function a(e,t){e&&t&&(A[e]=t)}function s(e){return e?A[e]:null}function m(){return j||p}function v(e){return"audio"===e||"video"===e||"text"===e||"fragmentedText"===e}function y(e,t){var r=e.id===t.id,n=e.viewpoint===t.viewpoint,a=e.lang===t.lang,i=e.roles.toString()==t.roles.toString(),o=e.accessibility.toString()==t.accessibility.toString(),s=e.audioChannelConfiguration.toString()==t.audioChannelConfiguration.toString();return r&&n&&a&&i&&o&&s}function _(e,t){var r=!e.lang||e.lang===t.lang,n=!e.viewpoint||e.viewpoint===t.viewpoint,a=!e.role||!!t.roles.filter(function(t){return t===e.role})[0],i=!e.accessibility||!!t.accessibility.filter(function(t){return t===e.accessibility})[0],o=!e.audioChannelConfiguration||!!t.audioChannelConfiguration.filter(function(t){return t===e.audioChannelConfiguration})[0];return r&&n&&a&&i&&o}function E(e){var t=m(),r=[],n=function(e){var t,r=0,n=[];return e.forEach(function(e){(t=Math.max.apply(Math,e.bitrateList.map(function(e){return e.bandwidth})))>r?(r=t,n=[e]):t===r&&n.push(e)}),n},a=function(e){var t,r=0,n=[];return e.forEach(function(e){(t=e.representationCount)>r?(r=t,n=[e]):t===r&&n.push(e)}),n};switch(t){case g:(r=n(e)).length>1&&(r=a(r));break;case h:(r=a(e)).length>1&&(r=n(e));break;default:M("track selection mode is not supported: "+t)}return r[0]}var T=this.context,M=(0,u.default)(T).getInstance().log,S=(0,o.default)(T).getInstance(),R=(0,l.default)(T).getInstance(),I=(0,d.default)(T).getInstance(),C=void 0,A=void 0,j=void 0,D=void 0,b=[c,f],O=[g,h];return{initialize:e,checkInitialMediaSettingsForType:function(e,r){var i=s(e),o=t(e,r),u=[];return"fragmentedText"===e?void n(o[0]):(i||a(e,i=I.getSavedMediaSettings(e)),void(o&&0!==o.length&&(i&&o.forEach(function(e){_(i,e)&&u.push(e)}),n(0===u.length?E(o):u.length>1?E(u):u[0]))))},addTrack:function(e){var t=e?e.type:null,a=e?e.streamInfo.id:null,i=s(t);return!(!e||!v(t)||(C[a]=C[a]||{audio:{list:[],storeLastSettings:!0,current:null},video:{list:[],storeLastSettings:!0,current:null},text:{list:[],storeLastSettings:!0,current:null},fragmentedText:{list:[],storeLastSettings:!0,current:null}},C[a][t].list.indexOf(e)>=0||(C[a][t].list.push(e),i&&_(i,e)&&!r(t,e.streamInfo)&&n(e),0)))},getTracksFor:t,getCurrentTrackFor:r,isCurrentTrack:function(e){var t=e.type,r=e.streamInfo.id;return C[r]&&C[r][t]&&y(C[r][t].current,e)},setTrack:n,setInitialSettings:a,getInitialSettings:s,setSwitchMode:function(e,t){return-1!==b.indexOf(t)?void(D[e]=t):void M("track switch mode is not supported: "+t)},getSwitchMode:function(e){return D[e]},setSelectionModeForInitialTrack:function(e){return-1!==O.indexOf(e)?void(j=e):void M("track selection mode is not supported: "+e)},getSelectionModeForInitialTrack:m,isMultiTrackSupportedByType:v,isTracksEqual:y,setConfig:function(e){e&&e.errHandler&&e.errHandler},reset:function(){e(),R.resetEmbedded()}}}Object.defineProperty(r,"__esModule",{value:!0});var i=n(e("../../core/events/Events.js")),o=n(e("../../core/EventBus.js")),s=n(e("../../core/FactoryMaker.js")),u=n(e("../../core/Debug.js")),l=n(e("../TextSourceBuffer.js")),d=n(e("../utils/DOMStorage.js")),f="neverReplace",c="alwaysReplace",g="highestBitrate",h="widestRange",p=g;a.__dashjs_factory_name="MediaController";var m=s.default.getSingletonFactory(a);m.TRACK_SWITCH_MODE_NEVER_REPLACE=f,m.TRACK_SWITCH_MODE_ALWAYS_REPLACE=c,m.TRACK_SELECTION_MODE_HIGHEST_BITRATE=g,m.TRACK_SELECTION_MODE_WIDEST_RANGE=h,m.DEFAULT_INIT_TRACK_SELECTION_MODE=p,r.default=m,t.exports=r.default},{"../../core/Debug.js":7,"../../core/EventBus.js":8,"../../core/FactoryMaker.js":9,"../../core/events/Events.js":11,"../TextSourceBuffer.js":44,"../utils/DOMStorage.js":138}],56:[function(e,t,r){"use strict";function n(){return{createMediaSource:function(){var e="WebKitMediaSource"in window;return"MediaSource"in window?new MediaSource:e?new WebKitMediaSource:null},attachMediaSource:function(e,t){var r=window.URL.createObjectURL(e);return t.setSource(r),r},detachMediaSource:function(e){e.setSource(null)},setDuration:function(e,t){return e.duration!=t&&(e.duration=t),e.duration},signalEndOfStream:function(e){var t=e.sourceBuffers,r=t.length,n=0;if("open"===e.readyState){for(;r>n;n++){if(t[n].updating)return;if(0===t[n].buffered.length)return}e.endOfStream()}}}}Object.defineProperty(r,"__esModule",{value:!0});var a=function(e){return e&&e.__esModule?e:{default:e}}(e("../../core/FactoryMaker.js"));n.__dashjs_factory_name="MediaSourceController",r.default=a.default.getSingletonFactory(n),t.exports=r.default},{"../../core/FactoryMaker.js":9}],57:[function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function a(){function e(){X=0,Z=NaN,J=null,te=null,ne=!1,$={},re=(0,s.default)(B).getInstance()}function t(e){e.fromStreamInfo&&$[e.fromStreamInfo.id]&&delete $[e.fromStreamInfo.id]}function r(){return m(!0)+ee.duration-g()}function n(){K?(K.autoplay=!0,K.play()):ne=!0}function a(){return K?K.paused:void 0}function d(){K&&(K.pause(),K.autoplay=!1)}function c(e){Q&&(k("Requesting seek to time: "+e),Q.setCurrentTime(e))}function g(){return K?K.currentTime:void 0}function h(){return K?K.playbackRate:void 0}function p(){return K?K.ended:void 0}function m(e){var t=void 0,r=e?NaN:parseInt((0,o.default)(B).getInstance().getURIFragmentData().s,10);if(te)!isNaN(r)&&r>1262304e3&&((t=r-ee.manifestInfo.availableFrom.getTime()/1e3)>Z||t<Z-ee.manifestInfo.DVRWindowSize)&&(t=null),t=t||Z;else if(!isNaN(r)&&r<Math.max(ee.manifestInfo.duration,ee.duration)&&r>=0)t=r;else{var n=$[ee.id];void 0===n&&(n=H.getActiveStreamCommonEarliestTime()),t=Math.max(n,ee.start)}return t}function v(){null===J&&(J=setInterval(function(){U.trigger(l.default.WALLCLOCK_TIME_UPDATED,{isDynamic:te,time:new Date})},re.getWallclockTimeUpdateInterval()))}function y(){clearInterval(J),J=null}function _(){var e=m(!1);e>0&&(c(e),k("Starting playback at offset: "+e))}function E(){if(!a()&&te&&0!==K.readyState){var e=g(),t=function(e){var t=Y.getReadOnlyMetricsFor("video")||Y.getReadOnlyMetricsFor("audio"),r=G.getCurrentDVRInfo(t),n=r?r.range:null;return n?e>=n.start&&e<=n.end?e:Math.max(n.end-2*ee.manifestInfo.minBufferTime,n.start):NaN}(e);!isNaN(t)&&t!==e&&c(t)}}function T(e){if(!e.error){var t=W.convertDataToTrack(V.getValue(),e.currentRepresentation).mediaInfo.streamInfo;ee.id===t.id&&(ee=t,E())}}function M(e){e.error||0===K.readyState||_()}function S(){U.trigger(l.default.CAN_PLAY)}function R(){k("Native video element event: play"),E(),v(),U.trigger(l.default.PLAYBACK_STARTED,{startTime:g()})}function I(){k("Native video element event: playing"),U.trigger(l.default.PLAYBACK_PLAYING,{playingTime:g()})}function C(){k("Native video element event: pause"),U.trigger(l.default.PLAYBACK_PAUSED,{ended:p()})}function A(){var e=g();k("Seeking to: "+e),v(),U.trigger(l.default.PLAYBACK_SEEKING,{seekTime:e})}function j(){k("Native video element event: seeked"),U.trigger(l.default.PLAYBACK_SEEKED)}function D(){var e=g();e!==X&&(X=e,U.trigger(l.default.PLAYBACK_TIME_UPDATED,{timeToEnd:r(),time:e}))}function b(){U.trigger(l.default.PLAYBACK_PROGRESS)}function O(){var e=h();k("Native video element event: ratechange: ",e),U.trigger(l.default.PLAYBACK_RATE_CHANGED,{playbackRate:e})}function P(){k("Native video element event: loadedmetadata"),(!te&&ee.isFirst||q.isTimeSyncCompleted())&&_(),U.trigger(l.default.PLAYBACK_METADATA_LOADED),v()}function w(){k("Native video element event: ended"),d(),y(),U.trigger(l.default.PLAYBACK_ENDED)}function N(e){var t=e.target||e.srcElement;U.trigger(l.default.PLAYBACK_ERROR,{error:t.error})}function x(e){var t=e.bufferedRanges;if(t&&t.length){var r=Math.max(t.start(0),ee.start),n=void 0===$[ee.id]?r:Math.max($[ee.id],r);n!==$[ee.id]&&(!te&&m(!0)<n&&c(n),$[ee.id]=n)}}function L(e){e.streamInfo.id===ee.id&&Q.setStallState(e.mediaType,e.state===i.default.BUFFER_EMPTY)}var F,B=this.context,k=(0,f.default)(B).getInstance().log,U=(0,u.default)(B).getInstance(),K=void 0,H=void 0,q=void 0,Y=void 0,G=void 0,V=void 0,z=void 0,W=void 0,Q=void 0,X=void 0,Z=void 0,J=void 0,$=void 0,ee=void 0,te=void 0,re=void 0,ne=void 0;return F={initialize:function(e){ee=e,(K=Q.getElement()).addEventListener("canplay",S),K.addEventListener("play",R),K.addEventListener("playing",I),K.addEventListener("pause",C),K.addEventListener("error",N),K.addEventListener("seeking",A),K.addEventListener("seeked",j),K.addEventListener("timeupdate",D),K.addEventListener("progress",b),K.addEventListener("ratechange",O),K.addEventListener("loadedmetadata",P),K.addEventListener("ended",w),te=ee.manifestInfo.isDynamic,Z=ee.start,U.on(l.default.DATA_UPDATE_COMPLETED,T,this),U.on(l.default.LIVE_EDGE_SEARCH_COMPLETED,M,this),U.on(l.default.BYTES_APPENDED,x,this),U.on(l.default.BUFFER_LEVEL_STATE_CHANGED,L,this),U.on(l.default.PERIOD_SWITCH_STARTED,t,this),ne&&(ne=!1,n())},setConfig:function(e){e&&(e.streamController&&(H=e.streamController),e.timelineConverter&&(q=e.timelineConverter),e.metricsModel&&(Y=e.metricsModel),e.dashMetrics&&(G=e.dashMetrics),e.manifestModel&&(V=e.manifestModel),e.dashManifestModel&&(z=e.dashManifestModel),e.adapter&&(W=e.adapter),e.videoModel&&(Q=e.videoModel))},getStreamStartTime:m,getTimeToStreamEnd:r,isPlaybackStarted:function(){return g()>0},getStreamId:function(){return ee.id},getStreamDuration:function(){return ee.duration},getTime:g,getPlaybackRate:h,getPlayedRanges:function(){return K?K.played:void 0},getEnded:p,getIsDynamic:function(){return te},setLiveStartTime:function(e){Z=e},getLiveStartTime:function(){return Z},computeLiveDelay:function(e,t){var r,n=z.getMpd(V.getValue());r=re.getUseSuggestedPresentationDelay()&&n.hasOwnProperty("suggestedPresentationDelay")?n.suggestedPresentationDelay:re.getLiveDelay()?re.getLiveDelay():isNaN(e)?2*ee.manifestInfo.minBufferTime:e*re.getLiveDelayFragmentCount();var a=Math.max(t-10,t/2);return Math.min(r,a)},play:n,isPaused:a,pause:d,isSeeking:function(){return K?K.seeking:void 0},seek:c,reset:function(){Q&&K&&(U.off(l.default.DATA_UPDATE_COMPLETED,T,this),U.off(l.default.BUFFER_LEVEL_STATE_CHANGED,L,this),U.off(l.default.LIVE_EDGE_SEARCH_COMPLETED,M,this),U.off(l.default.BYTES_APPENDED,x,this),y(),K.removeEventListener("canplay",S),K.removeEventListener("play",R),K.removeEventListener("playing",I),K.removeEventListener("pause",C),K.removeEventListener("error",N),K.removeEventListener("seeking",A),K.removeEventListener("seeked",j),K.removeEventListener("timeupdate",D),K.removeEventListener("progress",b),K.removeEventListener("ratechange",O),K.removeEventListener("loadedmetadata",P),K.removeEventListener("ended",w)),Q=null,ee=null,K=null,te=null,e()}},e(),F}Object.defineProperty(r,"__esModule",{value:!0});var i=n(e("./BufferController.js")),o=n(e("../models/URIQueryAndFragmentModel.js")),s=n(e("../../streaming/models/MediaPlayerModel.js")),u=n(e("../../core/EventBus.js")),l=n(e("../../core/events/Events.js")),d=n(e("../../core/FactoryMaker.js")),f=n(e("../../core/Debug.js"));a.__dashjs_factory_name="PlaybackController",r.default=d.default.getSingletonFactory(a),t.exports=r.default},{"../../core/Debug.js":7,"../../core/EventBus.js":8,"../../core/FactoryMaker.js":9,"../../core/events/Events.js":11,"../../streaming/models/MediaPlayerModel.js":90,"../models/URIQueryAndFragmentModel.js":92,"./BufferController.js":52}],58:[function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function a(e){function t(e,t){var r=0,n=null;oe&&!1===ue&&(n=se.start,r=e.getTime()-n.getTime(),se.duration=r,se.stopreason=t,oe.trace.push(se),ue=!0)}function r(){ee&&(L(),ie=!1,ae?a(ne.quality):M(),ae&&(ae=!1),Y("Schedule controller starting for "+$))}function n(){ie||(ie=!0,clearInterval(fe),Y("Schedule controller stopping for "+$))}function a(e){var t=W.getInitRequest(pe,e);return null!==t&&te.executeRequest(t),t}function E(e){var t,r,n,a=e.length;for(n=0;a>n;n++)r=(t=e[n]).startTime+t.duration/2+.1,(t=W.getFragmentRequestForTime(pe,ne,r,{timeThreshold:0,ignoreIsFinished:!0}))&&te.executeRequest(t)}function M(){ie||ge.isPaused()&&!Te||(!_e.execute(pe)||le||!X.getIsTextTrack($)&&ye.getIsAppendingInProgress()?S(1e3):(le=!0,he.getPlaybackQuality(pe,function(){var e=Ee.execute(pe);e?te.executeRequest(e):(le=!1,S(1e3))})))}function S(e){fe=setTimeout(M,e)}function R(e){if($===e.mediaType&&pe.getStreamInfo().id===e.streamInfo.id){if(null==(ne=pe.getRepresentationInfoForQuality(e.newQuality)))throw"Unexpected error! - currentRepresentationInfo is null or undefined";t(new Date,i.default.Trace.REPRESENTATION_SWITCH_STOP_REASON),L()}}function I(e){e.error||(ne=W.convertDataToTrack(z.getValue(),e.currentRepresentation))}function C(e){e.error||(ne=pe.getCurrentRepresentationInfo(),re&&null===ve.getLiveEdge()||(ee=!0),r())}function A(e){e.fragmentModel===te&&(n(),Y("Stream is complete"))}function j(e){e.sender===te&&(isNaN(e.request.index)||(le=!1),e.error&&e.serviceLocation&&!ie&&E([e.request]))}function D(e){e.sender.getStreamProcessor()===pe&&M()}function b(e){e.sender.getStreamProcessor()===pe&&n()}function O(e){e.sender.getStreamProcessor()===pe&&a(e.requiredQuality)}function P(e){e.sender.getStreamProcessor()===pe&&(te.removeExecutedRequestsBeforeTime(e.to),e.hasEnoughSpaceToAppend&&!ye.getIsBufferingCompleted()&&r())}function w(e){e.sender.getStreamProcessor()!==pe||e.state!==u.default.BUFFER_EMPTY||ge.isSeeking()||(Y("Stalling Buffer"),t(new Date,i.default.Trace.REBUFFERING_REASON))}function N(e){e.sender.getStreamProcessor()===pe&&n()}function x(){te.abortRequests(),n()}function L(){oe&&!0===ue&&ne&&(ue=!1,(se=new i.default.Trace).representationid=ne.id,se.start=new Date,se.mstart=1e3*ge.getTime(),se.playbackspeed=ge.getPlaybackRate().toString())}function F(e){e.sender.getStreamProcessor()===pe&&a(e.index)}function B(){r()}function k(e){ce=e.seekTime,ae||(le=!1),ie&&r();var t=V.getMetricsFor("stream"),n=Q.getCurrentManifestUpdate(t),a=ne.DVRWindow?ne.DVRWindow.end-ge.getTime():NaN;V.updateManifestUpdateInfo(n,{latency:a})}function U(e){se&&(se.playbackspeed=e.playbackRate.toString())}function K(e){if(!e.error){var t,n=e.liveEdge,a=ne.mediaInfo.streamInfo.manifestInfo,i=n-ge.computeLiveDelay(ne.fragmentDuration,a.DVRWindowSize/2),o=V.getMetricsFor("stream"),s=Q.getCurrentManifestUpdate(o),u=ge.getLiveStartTime();t=W.getFragmentRequestForTime(pe,ne,i,{ignoreIsFinished:!0}).startTime,ce=t,(isNaN(u)||t>u)&&ge.setLiveStartTime(t),V.updateManifestUpdateInfo(s,{currentTime:t,presentationStartTime:n,latency:n-t,clientTimeOffset:Z.getClientTimeOffset()}),ee=!0,r()}}var H,q=this.context,Y=(0,T.default)(q).getInstance().log,G=(0,y.default)(q).getInstance(),V=e.metricsModel,z=e.manifestModel,W=e.adapter,Q=e.dashMetrics,X=e.dashManifestModel,Z=e.timelineConverter,J=e.mediaPlayerModel,$=void 0,ee=void 0,te=void 0,re=void 0,ne=void 0,ae=void 0,ie=void 0,oe=void 0,se=void 0,ue=void 0,le=void 0,de=void 0,fe=void 0,ce=void 0,ge=void 0,he=void 0,pe=void 0,me=void 0,ve=void 0,ye=void 0,_e=void 0,Ee=void 0,Te=void 0;return H={initialize:function(e,t){$=e,pe=t,ve=(0,v.default)(q).getInstance(),ge=(0,o.default)(q).getInstance(),he=(0,s.default)(q).getInstance(),me=pe.getFragmentController(),ye=pe.getBufferController(),te=me.getModel(this),re=pe.isDynamic(),Te=J.getScheduleWhilePaused(),_e=(0,l.default)(q).create({dashMetrics:(0,g.default)(q).getInstance(),metricsModel:(0,c.default)(q).getInstance(),textSourceBuffer:(0,f.default)(q).getInstance()}),Ee=(0,d.default)(q).create({adapter:(0,h.default)(q).getInstance(),sourceBufferController:(0,p.default)(q).getInstance(),virtualBuffer:(0,m.default)(q).getInstance(),textSourceBuffer:(0,f.default)(q).getInstance()}),X.getIsTextTrack($)&&G.on(_.default.TIMED_TEXT_REQUESTED,F,this),G.on(_.default.LIVE_EDGE_SEARCH_COMPLETED,K,this),G.on(_.default.QUALITY_CHANGED,R,this),G.on(_.default.DATA_UPDATE_STARTED,b,this),G.on(_.default.DATA_UPDATE_COMPLETED,I,this),G.on(_.default.FRAGMENT_LOADING_COMPLETED,j,this),G.on(_.default.STREAM_COMPLETED,A,this),G.on(_.default.STREAM_INITIALIZED,C,this),G.on(_.default.BUFFER_LEVEL_STATE_CHANGED,w,this),G.on(_.default.BUFFER_CLEARED,P,this),G.on(_.default.BYTES_APPENDED,D,this),G.on(_.default.INIT_REQUESTED,O,this),G.on(_.default.QUOTA_EXCEEDED,N,this),G.on(_.default.BUFFER_LEVEL_STATE_CHANGED,w,this),G.on(_.default.PLAYBACK_STARTED,B,this),G.on(_.default.PLAYBACK_SEEKING,k,this),G.on(_.default.PLAYBACK_RATE_CHANGED,U,this),G.on(_.default.URL_RESOLUTION_FAILED,x,this)},getStreamProcessor:function(){return pe},getSeekTarget:function(){return ce},setSeekTarget:function(e){ce=e},getFragmentModel:function(){return te},setTimeToLoadDelay:function(e){de=e},getTimeToLoadDelay:function(){return de},replaceCanceledRequests:E,start:r,stop:n,reset:function(){G.off(_.default.LIVE_EDGE_SEARCH_COMPLETED,K,this),G.off(_.default.DATA_UPDATE_STARTED,b,this),G.off(_.default.DATA_UPDATE_COMPLETED,I,this),G.off(_.default.BUFFER_LEVEL_STATE_CHANGED,w,this),G.off(_.default.QUALITY_CHANGED,R,this),G.off(_.default.FRAGMENT_LOADING_COMPLETED,j,this),G.off(_.default.STREAM_COMPLETED,A,this),G.off(_.default.STREAM_INITIALIZED,C,this),G.off(_.default.QUOTA_EXCEEDED,N,this),G.off(_.default.BYTES_APPENDED,D,this),G.off(_.default.BUFFER_CLEARED,P,this),G.off(_.default.INIT_REQUESTED,O,this),G.off(_.default.PLAYBACK_RATE_CHANGED,U,this),G.off(_.default.PLAYBACK_SEEKING,k,this),G.off(_.default.PLAYBACK_STARTED,B,this),G.off(_.default.URL_RESOLUTION_FAILED,x,this),X.getIsTextTrack($)&&G.off(_.default.TIMED_TEXT_REQUESTED,F,this),n(),me.detachModel(te),le=!1,de=0,ce=NaN,ge=null,oe=null},setPlayList:function(e){oe=e},finalisePlayList:function(e,r){t(e,r),oe=null}},ae=!0,ie=!1,oe=null,se=null,ue=!0,le=!1,de=0,ce=NaN,H}Object.defineProperty(r,"__esModule",{value:!0});var i=n(e("../vo/metrics/PlayList.js")),o=n(e("./PlaybackController.js")),s=n(e("./AbrController.js")),u=n(e("./BufferController.js")),l=n(e("../rules/scheduling/BufferLevelRule.js")),d=n(e("../rules/scheduling/NextFragmentRequestRule.js")),f=n(e("../TextSourceBuffer.js")),c=n(e("../models/MetricsModel.js")),g=n(e("../../dash/DashMetrics.js")),h=n(e("../../dash/DashAdapter.js")),p=n(e("../controllers/SourceBufferController.js")),m=n(e("../VirtualBuffer.js")),v=n(e("../utils/LiveEdgeFinder.js")),y=n(e("../../core/EventBus.js")),_=n(e("../../core/events/Events.js")),E=n(e("../../core/FactoryMaker.js")),T=n(e("../../core/Debug.js"));a.__dashjs_factory_name="ScheduleController",r.default=E.default.getClassFactory(a),t.exports=r.default},{"../../core/Debug.js":7,"../../core/EventBus.js":8,"../../core/FactoryMaker.js":9,"../../core/events/Events.js":11,"../../dash/DashAdapter.js":13,"../../dash/DashMetrics.js":15,"../TextSourceBuffer.js":44,"../VirtualBuffer.js":46,"../controllers/SourceBufferController.js":59,"../models/MetricsModel.js":91,"../rules/scheduling/BufferLevelRule.js":129,"../rules/scheduling/NextFragmentRequestRule.js":130,"../utils/LiveEdgeFinder.js":141,"../vo/metrics/PlayList.js":168,"./AbrController.js":49,"./BufferController.js":52,"./PlaybackController.js":57}],59:[function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function a(){function e(e,t,r){var n,a,i=null,o=0,s=0,u=null,l=null,d=0,f=r||.15;try{i=e.buffered}catch(e){return null}if(null!=i){for(a=0,n=i.length;n>a;a++)if(o=i.start(a),s=i.end(a),null===u)d=Math.abs(o-t),(t>=o&&s>t||f>=d)&&(u=o,l=s);else{if(!(f>=(d=o-l)))break;l=s}if(null!==u)return{start:u,end:l}}return null}function t(e){try{return e.buffered}catch(e){return null}}function r(e,t){var r,n=function(){e.updating||(clearInterval(r),t())};if(e.updating)if("function"==typeof e.addEventListener)try{e.addEventListener("updateend",function r(){e.updating||(e.removeEventListener("updateend",r,!1),t())},!1)}catch(e){r=setInterval(n,50)}else r=setInterval(n,50);else t()}var n=this.context,a=(0,p.default)(n).getInstance(),v=void 0;return{append:function(e,t){var n=t.bytes,i="append"in e?"append":"appendBuffer"in e?"appendBuffer":null,o="Object"===Object.prototype.toString.call(e).slice(8,-1);if(i)try{r(e,function(){o?e[i](n,t):e[i](n),r(e,function(){a.trigger(m.default.SOURCEBUFFER_APPEND_COMPLETED,{buffer:e,bytes:n})})})}catch(t){a.trigger(m.default.SOURCEBUFFER_APPEND_COMPLETED,{buffer:e,bytes:n,error:new h.default(t.code,t.message,null)})}},remove:function(e,t,n,i){try{r(e,function(){t>=0&&n>t&&"ended"!==i.readyState&&e.remove(t,n),r(e,function(){a.trigger(m.default.SOURCEBUFFER_REMOVE_COMPLETED,{buffer:e,from:t,to:n})})})}catch(r){a.trigger(m.default.SOURCEBUFFER_REMOVE_COMPLETED,{buffer:e,from:t,to:n,error:new h.default(r.code,r.message,null)})}},abort:function(e,t){try{"open"===e.readyState&&t.abort()}catch(e){}},createSourceBuffer:function(e,t){var r=t.codec,a=null;try{if(r.match(/application\/mp4;\s*codecs="(stpp|wvtt)"/i))throw new h.default("not really supported");a=e.addSourceBuffer(r)}catch(e){if(!t.isText&&-1===r.indexOf('codecs="stpp"')&&-1===r.indexOf('codecs="wvtt"'))throw e;(a=(0,i.default)(n).getInstance()).setConfig({errHandler:(0,u.default)(n).getInstance(),adapter:(0,s.default)(n).getInstance(),dashManifestModel:v,mediaController:(0,o.default)(n).getInstance(),videoModel:(0,g.default)(n).getInstance(),streamController:(0,l.default)(n).getInstance(),textTracks:(0,d.default)(n).getInstance(),VTTParser:(0,f.default)(n).getInstance(),TTMLParser:(0,c.default)(n).getInstance()})}return a},removeSourceBuffer:function(e,t){try{e.removeSourceBuffer(t)}catch(e){}},getBufferRange:e,getAllRanges:t,getTotalBufferedTime:function(e){var r,n,a=t(e),i=0;if(!a)return i;for(n=0,r=a.length;r>n;n++)i+=a.end(n)-a.start(n);return i},getBufferLength:function(t,r,n){var a;return null===(a=e(t,r,n))?0:a.end-r},getRangeDifference:function(e,r){if(!r)return null;var n,a,i,o,s,u,l,d,f=t(r);if(!f)return null;for(var c=0,g=f.length;g>c;c++){if(s=e.length>c?{start:e.start(c),end:e.end(c)}:null,n=f.start(c),a=f.end(c),!s)return{start:n,end:a};if(i=s.start===n,o=s.end===a,!i||!o){if(i)d={start:s.end,end:a};else{if(!o)return{start:n,end:a};d={start:n,end:s.start}}return u=e.length>c+1?{start:e.start(c+1),end:e.end(c+1)}:null,l=g>c+1?{start:f.start(c+1),end:f.end(c+1)}:null,!u||l&&l.start===u.start&&l.end===u.end||(d.end=u.start),d}}return null},setConfig:function(e){e&&e.dashManifestModel&&(v=e.dashManifestModel)}}}Object.defineProperty(r,"__esModule",{value:!0});var i=n(e("../TextSourceBuffer.js")),o=n(e("./MediaController.js")),s=n(e("../../dash/DashAdapter.js")),u=n(e("../utils/ErrorHandler.js")),l=n(e("./StreamController.js")),d=n(e("../TextTracks.js")),f=n(e("../utils/VTTParser.js")),c=n(e("../utils/TTMLParser.js")),g=n(e("../models/VideoModel.js")),h=n(e("../vo/Error.js")),p=n(e("../../core/EventBus.js")),m=n(e("../../core/events/Events.js")),v=n(e("../../core/FactoryMaker.js"));a.__dashjs_factory_name="SourceBufferController";var y=v.default.getSingletonFactory(a);y.QUOTA_EXCEEDED_ERROR_CODE=22,r.default=y,t.exports=r.default},{"../../core/EventBus.js":8,"../../core/FactoryMaker.js":9,"../../core/events/Events.js":11,"../../dash/DashAdapter.js":13,"../TextSourceBuffer.js":44,"../TextTracks.js":45,"../models/VideoModel.js":93,"../utils/ErrorHandler.js":139,"../utils/TTMLParser.js":144,"../utils/VTTParser.js":146,"../vo/Error.js":149,"./MediaController.js":55,"./StreamController.js":60}],60:[function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function a(){function e(e,t){t=t||new Date,ue&&(W&&W.getProcessors().forEach(function(r){var n=r.getScheduleController();n&&n.finalisePlayList(t,e)}),B.addPlayList(ue),ue=null)}function t(e){(ue=new h.default).start=new Date,ue.mstart=1e3*ae.getTime(),ue.starttype=e,W&&W.getProcessors().forEach(function(e){var t=e.getScheduleController();t&&t.setPlayList(ue)})}function r(e,t,r){b.trigger(e,{fromStreamInfo:t?t.getStreamInfo():null,toStreamInfo:r.getStreamInfo()})}function n(e){var t=e.error?e.error.code:0,r="";if(-1!==t){switch(t){case 1:r="MEDIA_ERR_ABORTED";break;case 2:r="MEDIA_ERR_NETWORK";break;case 3:r="MEDIA_ERR_DECODE";break;case 4:r="MEDIA_ERR_SRC_NOT_SUPPORTED";break;case 5:r="MEDIA_ERR_ENCRYPTED";break;default:r="UNKNOWN"}ee=!0,e.error.msExtendedCode&&(r+=" (0x"+(e.error.msExtendedCode>>>0).toString(16).toUpperCase()+")"),D("Video Element Error: "+r),e.error&&D(e.error),G.mediaSourceError(r),C()}}function a(e){var t=ne.getPlaybackQuality();t&&B.addDroppedFrames("video",t),ae.isSeeking()||e.timeToEnd<A&&K.signalEndOfStream(re)}function g(){var t=function(){var e=W.getStreamInfo().start,t=W.getStreamInfo().duration;return z.filter(function(r){return r.getStreamInfo().start===e+t})[0]}();t&&E(W,t,NaN),e(t?h.default.Trace.END_OF_PERIOD_STOP_REASON:h.default.Trace.END_OF_CONTENT_STOP_REASON)}function m(r){var n=function(e){var t=0,r=null,n=z.length;n>0&&(t+=z[0].getStartTime());for(var a=0;n>a;a++)if((t+=(r=z[a]).getDuration())>e)return r;return null}(r.seekTime);n&&n!==W?(e(h.default.Trace.END_OF_PERIOD_STOP_REASON),E(W,n,r.seekTime)):e(h.default.Trace.USER_REQUEST_STOP_REASON),t(h.default.SEEK_START_REASON)}function v(){se?(se=!1,t(h.default.INITIAL_PLAYOUT_START_REASON)):oe&&(oe=!1,t(h.default.RESUME_FROM_PAUSE_START_REASON))}function y(t){t.ended||(oe=!0,e(h.default.Trace.USER_REQUEST_STOP_REASON))}function _(e){var t=e.streamInfo.isLast;re&&t&&K.signalEndOfStream(re)}function E(e,t,n){!J&&e&&t&&e!==t&&(J=!0,r(l.default.PERIOD_SWITCH_STARTED,e,t),e.deactivate(),W=t,ae.initialize(W.getStreamInfo()),T(function(){isNaN(n)?function(){var e=ae.getStreamStartTime(!0);W.getProcessors().forEach(function(t){F.setIndexHandlerTime(t,e)}),ae.seek(e)}():ae.seek(n),ae.play(),W.startEventController(),J=!1,r(l.default.PERIOD_SWITCH_COMPLETED,e,t)}))}function T(e){function t(){D("MediaSource is open!"),window.URL.revokeObjectURL(r),re.removeEventListener("sourceopen",t),re.removeEventListener("webkitsourceopen",t),function(){var e,t;e=W.getStreamInfo().manifestInfo.duration,t=K.setDuration(re,e),D("Duration successfully set to: "+t)}(),W.activate(re),e&&e()}var r=void 0;re?K.detachMediaSource(ne):re=K.createMediaSource(),re.addEventListener("sourceopen",t,!1),re.addEventListener("webkitsourceopen",t,!1),r=K.attachMediaSource(re,ne),D("MediaSource attached to element.  Waiting on open...")}function M(){if(!$){var e=z.length,t=0;for(W.isActivated()&&se&&0===W.getStreamInfo().index&&(W.startEventController(),Z&&ae.play());e>t;t++)if(!z[t].isInitialized())return;b.trigger(l.default.STREAMS_COMPOSED)}}function S(){M()}function R(){!function(){var e,t,n,a,i,s,u,d=x.getValue(),f=B.getMetricsFor("stream"),c=k.getCurrentManifestUpdate(f),g=[];if(d){s=F.getStreamsInfo(d),Q&&(b.trigger(l.default.PROTECTION_CREATED,{controller:Q,manifest:d}),Q.setMediaElement(ne.getElement()),X&&Q.setProtectionData(X));try{if(0===s.length)throw new Error("There are no streams");for(B.updateManifestUpdateInfo(c,{currentTime:ae.getTime(),buffered:ne.getElement().buffered,presentationStartTime:s[0].start,clientTimeOffset:V.getClientTimeOffset()}),$=!0,a=0,t=s.length;t>a;a++){for(e=s[a],i=0,n=z.length;n>i;i++)z[i].getId()===e.id&&(u=z[i],g.push(u),u.updateData(e));u||((u=(0,o.default)(j).create({manifestModel:x,manifestUpdater:w,adapter:F,timelineConverter:V,capabilities:P,errHandler:G,baseURLController:q})).initialize(e,Q),b.on(l.default.STREAM_INITIALIZED,S,this),g.push(u),W&&u.updateData(e)),B.addManifestUpdateStreamInfo(c,e.id,e.index,e.start,e.duration),u=null}z=g,W||(W=z[0],r(l.default.PERIOD_SWITCH_STARTED,null,W),ae.initialize(W.getStreamInfo()),r(l.default.PERIOD_SWITCH_COMPLETED,null,W)),re||T(),$=!1,M()}catch(e){G.manifestError(e.message,"nostreamscomposed",d),te=!0,C()}}}()}function I(e){if(e.error)te=!0,C();else{var t,r,n=e.manifest,a=F.getStreamsInfo(n)[0],i=F.getMediaInfoForType(n,a,"video")||F.getMediaInfoForType(n,a,"audio");i&&(t=F.getDataForMedia(i),(r=L.getRepresentationsForAdaptation(n,t)[0].useCalculatedLiveEdgeTime)&&(D("SegmentTimeline detected using calculated Live Edge Time"),ie.setUseManifestDateHeaderTimeSource(!1)));var o=L.getUTCTimingSources(e.manifest),s=!L.getIsDynamic(n)||r?o:o.concat(ie.getUTCTimingSources()),u=(0,d.default)(j).getInstance().isManifestHTTPS();s.forEach(function(e){e.value.replace(/.*?:\/\//g,"")===c.default.DEFAULT_UTC_TIMING_SOURCE.value.replace(/.*?:\/\//g,"")&&(e.value=e.value.replace(u?new RegExp(/^(http:)?\/\//i):new RegExp(/^(https:)?\/\//i),u?"https://":"http://"),D("Matching default timing source protocol to manifest protocol: ",e.value))}),q.initialize(n),H.setConfig({metricsModel:B,dashMetrics:k}),H.initialize(s,ie.getUseManifestDateHeaderTimeSource())}}function C(){H.reset(),e(ee||te?h.default.Trace.FAILURE_STOP_REASON:h.default.Trace.USER_REQUEST_STOP_REASON);for(var t=0,r=z.length;r>t;t++){var i=z[t];b.off(l.default.STREAM_INITIALIZED,S,this),i.reset(ee)}z=[],b.off(l.default.PLAYBACK_TIME_UPDATED,a,this),b.off(l.default.PLAYBACK_SEEKING,m,this),b.off(l.default.PLAYBACK_ERROR,n,this),b.off(l.default.PLAYBACK_STARTED,v,this),b.off(l.default.PLAYBACK_PAUSED,y,this),b.off(l.default.PLAYBACK_ENDED,g,this),b.off(l.default.MANIFEST_UPDATED,I,this),b.off(l.default.STREAM_BUFFERING_COMPLETED,_,this),q.reset(),w.reset(),B.clearAllCurrentMetrics(),x.setValue(null),N.reset(),V.reset(),U.reset(),F.reset(),Y.reset(),J=!1,$=!1,W=null,ee=!1,te=!1,se=!0,oe=!1,re&&(K.detachMediaSource(ne),re=null),ne=null,Q&&(Q.setMediaElement(null),Q=null,X=null,x.getValue()&&b.trigger(l.default.PROTECTION_DESTROYED,{data:x.getValue().url})),b.trigger(l.default.STREAM_TEARDOWN_COMPLETE)}var A=1,j=this.context,D=(0,p.default)(j).getInstance().log,b=(0,u.default)(j).getInstance(),O=void 0,P=void 0,w=void 0,N=void 0,x=void 0,L=void 0,F=void 0,B=void 0,k=void 0,U=void 0,K=void 0,H=void 0,q=void 0,Y=void 0,G=void 0,V=void 0,z=void 0,W=void 0,Q=void 0,X=void 0,Z=void 0,J=void 0,$=void 0,ee=void 0,te=void 0,re=void 0,ne=void 0,ae=void 0,ie=void 0,oe=void 0,se=void 0,ue=void 0;return O={initialize:function(e,t){Z=e,X=t,V.initialize(),(w=(0,s.default)(j).getInstance()).setConfig({log:D,manifestModel:x,dashManifestModel:L}),w.initialize(N),ne=(0,f.default)(j).getInstance(),(ae=(0,i.default)(j).getInstance()).setConfig({streamController:O,timelineConverter:V,metricsModel:B,dashMetrics:k,manifestModel:x,dashManifestModel:L,adapter:F,videoModel:ne}),b.on(l.default.TIME_SYNCHRONIZATION_COMPLETED,R,this),b.on(l.default.PLAYBACK_SEEKING,m,this),b.on(l.default.PLAYBACK_TIME_UPDATED,a,this),b.on(l.default.PLAYBACK_ENDED,g,this),b.on(l.default.PLAYBACK_ERROR,n,this),b.on(l.default.PLAYBACK_STARTED,v,this),b.on(l.default.PLAYBACK_PAUSED,y,this),b.on(l.default.MANIFEST_UPDATED,I,this),b.on(l.default.STREAM_BUFFERING_COMPLETED,_,this)},getAutoPlay:function(){return Z},getActiveStreamInfo:function(){return W?W.getStreamInfo():null},isStreamActive:function(e){return W.getId()===e.id},getStreamById:function(e){return z.filter(function(t){return t.getId()===e})[0]},getTimeRelativeToStreamId:function(e,t){for(var r=null,n=0,a=0,i=null,o=z.length,s=0;o>s;s++){if(a=(r=z[s]).getStartTime(),i=r.getDuration(),Number.isFinite(a)&&(n=a),r.getId()===t)return e-n;Number.isFinite(i)&&(n+=i)}return null},load:function(e){N.load(e)},loadWithManifest:function(e){w.setManifest(e)},getActiveStreamCommonEarliestTime:function(){var e=[];return W.getProcessors().forEach(function(t){e.push(t.getIndexHandler().getEarliestTime())}),Math.min.apply(Math,e)},setConfig:function(e){e&&(e.capabilities&&(P=e.capabilities),e.manifestLoader&&(N=e.manifestLoader),e.manifestModel&&(x=e.manifestModel),e.dashManifestModel&&(L=e.dashManifestModel),e.protectionController&&(Q=e.protectionController),e.adapter&&(F=e.adapter),e.metricsModel&&(B=e.metricsModel),e.dashMetrics&&(k=e.dashMetrics),e.liveEdgeFinder&&(U=e.liveEdgeFinder),e.mediaSourceController&&(K=e.mediaSourceController),e.timeSyncController&&(H=e.timeSyncController),e.baseURLController&&(q=e.baseURLController),e.virtualBuffer&&(Y=e.virtualBuffer),e.errHandler&&(G=e.errHandler),e.timelineConverter&&(V=e.timelineConverter))},reset:C},Q=null,z=[],ie=(0,c.default)(j).getInstance(),Z=!0,J=!1,$=!1,oe=!1,se=!0,ue=null,ee=!1,te=!1,O}Object.defineProperty(r,"__esModule",{value:!0});var i=n(e("./PlaybackController.js")),o=n(e("../Stream.js")),s=n(e("../ManifestUpdater.js")),u=n(e("../../core/EventBus.js")),l=n(e("../../core/events/Events.js")),d=n(e("../models/URIQueryAndFragmentModel.js")),f=n(e("../models/VideoModel.js")),c=n(e("../models/MediaPlayerModel.js")),g=n(e("../../core/FactoryMaker.js")),h=n(e("../vo/metrics/PlayList.js")),p=n(e("../../core/Debug.js"));a.__dashjs_factory_name="StreamController",r.default=g.default.getSingletonFactory(a),t.exports=r.default},{"../../core/Debug.js":7,"../../core/EventBus.js":8,"../../core/FactoryMaker.js":9,"../../core/events/Events.js":11,"../ManifestUpdater.js":38,"../Stream.js":42,"../models/MediaPlayerModel.js":90,"../models/URIQueryAndFragmentModel.js":92,"../models/VideoModel.js":93,"../vo/metrics/PlayList.js":168,"./PlaybackController.js":57}],61:[function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function a(e){function t(e){c=e}function r(e){e.sender.getStreamProcessor()===p&&u.trigger(o.default.TIMED_TEXT_REQUESTED,{index:0,sender:e.sender})}function n(e){e.fragmentModel===p.getFragmentModel()&&e.chunk.bytes&&l.append(g,e.chunk)}var a,s=this.context,u=(0,i.default)(s).getInstance(),l=e.sourceBufferController,d=e.errHandler,f=void 0,c=void 0,g=void 0,h=void 0,p=void 0;return a={initialize:function(e,r,n){h=e,t(r),(p=n).getRepresentationController()},createBuffer:function(e){try{g=l.createSourceBuffer(c,e),f||(g.hasOwnProperty("initialize")&&g.initialize(h,this),f=!0)}catch(e){d.mediaSourceError("Error creating "+h+" source buffer.")}return g},getBuffer:function(){return g},setBuffer:function(e){g=e},getStreamProcessor:function(){return p},setMediaSource:t,reset:function(e){u.off(o.default.DATA_UPDATE_COMPLETED,r,this),u.off(o.default.INIT_FRAGMENT_LOADED,n,this),e||(l.abort(c,g),l.removeSourceBuffer(c,g))}},function(){f=!1,c=null,g=null,h=null,p=null,u.on(o.default.DATA_UPDATE_COMPLETED,r,this),u.on(o.default.INIT_FRAGMENT_LOADED,n,this)}(),a}Object.defineProperty(r,"__esModule",{value:!0});var i=n(e("../../core/EventBus.js")),o=n(e("../../core/events/Events.js")),s=n(e("../../core/FactoryMaker.js"));a.__dashjs_factory_name="TextController",r.default=s.default.getClassFactory(a),t.exports=r.default},{"../../core/EventBus.js":8,"../../core/FactoryMaker.js":9,"../../core/events/Events.js":11}],62:[function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function a(){function e(e){T=e}function t(e){E=e}function r(e){var t=Date.parse(e);return isNaN(t)&&(t=function(e){var t,r,n=/^([0-9]{4})-([0-9]{2})-([0-9]{2})T([0-9]{2}):([0-9]{2})(?::([0-9]*)(\.[0-9]*)?)?(?:([+\-])([0-9]{2})([0-9]{2}))?/.exec(e);return t=Date.UTC(parseInt(n[1],10),parseInt(n[2],10)-1,parseInt(n[3],10),parseInt(n[4],10),parseInt(n[5],10),n[6]&&(parseInt(n[6],10)||0),n[7]&&1e3*parseFloat(n[7])||0),n[9]&&n[10]&&(r=60*parseInt(n[9],10)+parseInt(n[10],10),t+=("+"===n[8]?-1:1)*r*60*1e3),new Date(t).getTime()}(e)),t}function n(e){return Date.parse(e)}function a(e){return Date.parse(e)}function u(e,t,r){r()}function c(e,t,n){var a=r(e);return isNaN(a)?void n():void t(a)}function g(e,t,r,n,a){var i,o,s=!1,u=new XMLHttpRequest,l=a?"HEAD":"GET",d=t.match(/\S+/g);t=d.shift(),i=function(){s||(s=!0,d.length?g(e,d.join(" "),r,n,a):n())},o=function(){var t,n;200===u.status&&(t=a?u.getResponseHeader("Date"):u.response,n=e(t),isNaN(n)||(r(n),s=!0))},u.open(l,t),u.timeout=f||0,u.onload=o,u.onloadend=i,u.send()}function h(e,t,r){g(a,e,t,r,!0)}function p(t,r,n){e(!1),_.trigger(s.default.TIME_SYNCHRONIZATION_COMPLETED,{time:r,offset:n,error:t?new i.default(d):null})}function m(r,n){var a=n||0,i=r[a],o=function(e,r){var n=!e||!r;n&&M?function(){var e=R.getReadOnlyMetricsFor("stream"),r=I.getLatestMPDRequestHeaderValueByID(e,"Date"),n=null!==r?new Date(r).getTime():Number.NaN;isNaN(n)?p(!0):(t(n-(new Date).getTime()),p(!1,n/1e3,E))}():p(n,e,r)};e(!0),i?S.hasOwnProperty(i.schemeIdUri)?S[i.schemeIdUri](i.value,function(e){var r=(new Date).getTime(),n=e-r;t(n),y("Local time:      "+new Date(r)),y("Server time:     "+new Date(e)),y("Difference (ms): "+n),o(e,n)},function(){m(r,a+1)}):m(r,a+1):(t(0),o())}var v=this.context,y=(0,l.default)(v).getInstance().log,_=(0,o.default)(v).getInstance(),E=void 0,T=void 0,M=void 0,S=void 0,R=void 0,I=void 0;return{initialize:function(e,t){M=t,E=0,T=!1,S={"urn:mpeg:dash:utc:http-head:2014":h,"urn:mpeg:dash:utc:http-xsdate:2014":g.bind(null,r),"urn:mpeg:dash:utc:http-iso:2014":g.bind(null,n),"urn:mpeg:dash:utc:direct:2014":c,"urn:mpeg:dash:utc:http-head:2012":h,"urn:mpeg:dash:utc:http-xsdate:2012":g.bind(null,r),"urn:mpeg:dash:utc:http-iso:2012":g.bind(null,n),"urn:mpeg:dash:utc:direct:2012":c,"urn:mpeg:dash:utc:http-ntp:2014":u,"urn:mpeg:dash:utc:ntp:2014":u,"urn:mpeg:dash:utc:sntp:2014":u},T||m(e)},getOffsetToDeviceTimeMs:function(){return E},setConfig:function(e){e&&(e.metricsModel&&(R=e.metricsModel),e.dashMetrics&&(I=e.dashMetrics))},reset:function(){e(!1)}}}Object.defineProperty(r,"__esModule",{value:!0});var i=n(e("./../vo/Error.js")),o=n(e("./../../core/EventBus.js")),s=n(e("./../../core/events/Events.js")),u=n(e("../../core/FactoryMaker.js")),l=n(e("../../core/Debug.js")),d=1,f=5e3;a.__dashjs_factory_name="TimeSyncController";var c=u.default.getSingletonFactory(a);c.TIME_SYNC_FAILED_ERROR_CODE=d,c.HTTP_TIMEOUT_MS=f,r.default=c,t.exports=r.default},{"../../core/Debug.js":7,"../../core/FactoryMaker.js":9,"./../../core/EventBus.js":8,"./../../core/events/Events.js":11,"./../vo/Error.js":149}],63:[function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function a(e){function t(e,t,r){var a,i,o,s={};for(s.elements=e,s.type=t,s.resolveType=r,0===s.elements.length&&n(s),o=0;o<s.elements.length;o++)i=-1!==(a=s.elements[o]).url.indexOf("http://")?a.url:a.originalContent.BaseURL+a.url,R.load(i,a,s)}function r(e){var t,r,a,i="";t=e.element,r=e.resolveObject,t.resolvedContent&&(a=t.resolvedContent.indexOf(">")+1,i=t.resolvedContent.substr(0,a)+"<response>"+t.resolvedContent.substr(a)+"</response>",t.resolvedContent=S.xml_str2json(i)),function(e){var t;for(t=0;t<e.elements.length;t++)if(!1===e.elements[t].resolved)return!1;return!0}(r)&&n(r)}function n(e){var r,n,i=[];if(function(e){var t,r,n,a,i,o,s=[];for(a=e.elements.length-1;a>=0;a--){if(r=(t=e.elements[a]).type+"_asArray",!t.resolvedContent||m())delete t.originalContent["xlink:actuate"],delete t.originalContent["xlink:href"],s.push(t.originalContent);else if(t.resolvedContent)for(i=0;i<t.resolvedContent[r].length;i++)n=t.resolvedContent[r][i],s.push(n);for(t.parentElement[r].splice(t.index,1),o=0;o<s.length;o++)t.parentElement[r].splice(t.index+o,0,s[o]);s=[]}e.elements.length>0&&T.run(M)}(e),e.resolveType===f&&y.trigger(s.default.XLINK_READY,{manifest:M}),e.resolveType===d)switch(e.type){case c:for(r=0;r<M[c+"_asArray"].length;r++)(n=M[c+"_asArray"][r]).hasOwnProperty(g+"_asArray")&&(i=i.concat(a(n[g+"_asArray"],n,g,d))),n.hasOwnProperty(h+"_asArray")&&(i=i.concat(a(n[h+"_asArray"],n,h,d)));t(i,g,d);break;case g:y.trigger(s.default.XLINK_READY,{manifest:M})}}function a(e,t,r,n){var a,i,o,s=[];for(i=e.length-1;i>=0;i--)(a=e[i]).hasOwnProperty("xlink:href")&&a["xlink:href"]===p&&e.splice(i,1);for(i=0;i<e.length;i++)(a=e[i]).hasOwnProperty("xlink:href")&&a.hasOwnProperty("xlink:actuate")&&a["xlink:actuate"]===n&&(o=u(a["xlink:href"],t,r,i,n,a),s.push(o));return s}function u(e,t,r,n,a,i){return{url:e,parentElement:t,type:r,index:n,resolveType:a,originalContent:i,resolvedContent:null,resolved:!1}}function m(){return!1}var v=this.context,y=(0,o.default)(v).getInstance(),_=void 0,E=void 0,T=void 0,M=void 0,S=void 0,R=void 0;return _={resolveManifestOnLoad:function(e){S=new l.default(E,"",!0),t(a((M=e).Period_asArray,M,c,d),c,d)},setMatchers:function(e){E=e},setIron:function(e){T=e},reset:function(){y.off(s.default.XLINK_ELEMENT_LOADED,r,_),R&&(R.reset(),R=null)}},y.on(s.default.XLINK_ELEMENT_LOADED,r,_),R=(0,i.default)(v).create({errHandler:e.errHandler,metricsModel:e.metricsModel,requestModifier:e.requestModifier}),_}Object.defineProperty(r,"__esModule",{value:!0});var i=n(e("../XlinkLoader.js")),o=n(e("../../core/EventBus.js")),s=n(e("../../core/events/Events.js")),u=n(e("../../core/FactoryMaker.js")),l=n(e("../../../externals/xml2json.js")),d="onLoad",f="onActuate",c="Period",g="AdaptationSet",h="EventStream",p="urn:mpeg:dash:resolve-to-zero:2013";a.__dashjs_factory_name="XlinkController",r.default=u.default.getClassFactory(a),t.exports=r.default},{"../../../externals/xml2json.js":4,"../../core/EventBus.js":8,"../../core/FactoryMaker.js":9,"../../core/events/Events.js":11,"../XlinkLoader.js":48}],64:[function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function a(){var e=this.context;return{createMetricsReporting:function(t){return(0,i.default)(e).getInstance({eventBus:t.eventBus,metricsModel:t.metricsModel}),(0,s.default)(e).create(t)},getReportingFactory:function(){return(0,l.default)(e).getInstance()},getMetricsHandlerFactory:function(){return(0,u.default)(e).getInstance()}}}Object.defineProperty(r,"__esModule",{value:!0});var i=n(e("./utils/DVBErrorsTranslator.js")),o=n(e("./MetricsReportingEvents.js")),s=n(e("./controllers/MetricsCollectionController.js")),u=n(e("./metrics/MetricsHandlerFactory.js")),l=n(e("./reporting/ReportingFactory.js")),d=n(e("../../core/FactoryMaker.js"));a.__dashjs_factory_name="MetricsReporting";var f=d.default.getClassFactory(a);f.events=o.default,r.default=f,t.exports=r.default},{"../../core/FactoryMaker.js":9,"./MetricsReportingEvents.js":65,"./controllers/MetricsCollectionController.js":66,"./metrics/MetricsHandlerFactory.js":71,"./reporting/ReportingFactory.js":76,"./utils/DVBErrorsTranslator.js":78}],65:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=function(e){function t(){(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,t),function(e,t,r){for(var n=!0;n;){var a=e,i=t,o=r;n=!1,null===a&&(a=Function.prototype);var s=Object.getOwnPropertyDescriptor(a,i);if(void 0!==s){if("value"in s)return s.value;var u=s.get;if(void 0===u)return;return u.call(o)}var l=Object.getPrototypeOf(a);if(null===l)return;e=l,t=i,r=o,n=!0,s=l=void 0}}(Object.getPrototypeOf(t.prototype),"constructor",this).call(this),this.METRICS_INITIALISATION_COMPLETE="internal_metricsReportingInitialized",this.BECAME_REPORTING_PLAYER="internal_becameReportingPlayer"}return function(e,t){if("function"!=typeof t&&null!==t)throw new 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),t}(function(e){return e&&e.__esModule?e:{default:e}}(e("../../core/events/EventsBase.js")).default),a=new n;r.default=a,t.exports=r.default},{"../../core/events/EventsBase.js":12}],66:[function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function a(e){var t={},r=this.context,n=e.eventBus;return n.on(l.default.MANIFEST_UPDATED,function(a){if(!a.error){var s=Object.keys(t);(0,o.default)(r).getInstance({dashManifestModel:e.dashManifestModel}).getMetrics(a.manifest).forEach(function(n){var a=JSON.stringify(n);if(t.hasOwnProperty(a))s.splice(a,1);else try{var o=(0,i.default)(r).create(e);o.initialize(n),t[a]=o}catch(e){}}),s.forEach(function(e){t[e].reset(),delete t[e]}),n.trigger(u.default.METRICS_INITIALISATION_COMPLETE)}}),n.on(l.default.STREAM_TEARDOWN_COMPLETE,function(){Object.keys(t).forEach(function(e){t[e].reset()}),t={}}),{}}Object.defineProperty(r,"__esModule",{value:!0});var i=n(e("./MetricsController.js")),o=n(e("../utils/ManifestParsing.js")),s=n(e("../../../core/FactoryMaker.js")),u=n(e("../MetricsReportingEvents.js")),l=n(e("../../../core/events/Events.js"));a.__dashjs_factory_name="MetricsCollectionController",r.default=s.default.getClassFactory(a),t.exports=r.default},{"../../../core/FactoryMaker.js":9,"../../../core/events/Events.js":11,"../MetricsReportingEvents.js":65,"../utils/ManifestParsing.js":80,"./MetricsController.js":67}],67:[function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function a(e){function t(){r&&r.reset(),n&&n.reset(),a&&a.reset()}var r=void 0,n=void 0,a=void 0,i=this.context;return{initialize:function(l){try{(a=(0,o.default)(i).create({mediaElement:e.mediaElement})).initialize(l.Range),(n=(0,s.default)(i).create({log:e.log})).initialize(l.Reporting,a),(r=(0,u.default)(i).create({log:e.log,eventBus:e.eventBus})).initialize(l.metrics,n)}catch(e){throw t(),e}},reset:t}}Object.defineProperty(r,"__esModule",{value:!0});var i=n(e("../../../core/FactoryMaker.js")),o=n(e("./RangeController.js")),s=n(e("./ReportingController.js")),u=n(e("./MetricsHandlersController.js"));a.__dashjs_factory_name="MetricsController",r.default=i.default.getClassFactory(a),t.exports=r.default},{"../../../core/FactoryMaker.js":9,"./MetricsHandlersController.js":68,"./RangeController.js":69,"./ReportingController.js":70}],68:[function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function a(e){function t(e){r.forEach(function(t){t.handleNewMetric(e.metric,e.value,e.mediaType)})}var r=[],n=void 0,a=this.context,o=e.eventBus,u=(0,i.default)(a).getInstance({log:e.log,eventBus:e.eventBus});return n={initialize:function(e,a){e.split(",").forEach(function(e,t,n){var i;if(-1!==e.indexOf("(")&&-1===e.indexOf(")")){var o=n[t+1];o&&-1===o.indexOf("(")&&-1!==o.indexOf(")")&&(e+=","+o,delete n[t+1])}(i=u.create(e,a))&&r.push(i)}),o.on(s.default.METRIC_ADDED,t,n),o.on(s.default.METRIC_UPDATED,t,n)},reset:function(){o.off(s.default.METRIC_ADDED,t,n),o.off(s.default.METRIC_UPDATED,t,n),r.forEach(function(e){return e.reset()}),r=[]}}}Object.defineProperty(r,"__esModule",{value:!0});var i=n(e("../metrics/MetricsHandlerFactory.js")),o=n(e("../../../core/FactoryMaker.js")),s=n(e("../../MediaPlayerEvents.js"));a.__dashjs_factory_name="MetricsHandlersController",r.default=o.default.getClassFactory(a),t.exports=r.default},{"../../../core/FactoryMaker.js":9,"../../MediaPlayerEvents.js":40,"../metrics/MetricsHandlerFactory.js":71}],69:[function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function a(e){var t,r=!1,n=this.context,a=void 0,i=e.mediaElement;return t={initialize:function(e){e&&e.length&&(e.forEach(function(e){var t=e.starttime,r=t+e.duration;a.add(t,r)}),r=!!e[0]._useWallClockTime)},reset:function(){a.clear()},isEnabled:function(){var e,t=a.length;if(!t)return!0;e=r?(new Date).getTime()/1e3:i.currentTime;for(var n=0;t>n;n+=1){var o=a.start(n),s=a.end(n);if(e>=o&&s>e)return!0}return!1}},a=(0,o.default)(n).create(),t}Object.defineProperty(r,"__esModule",{value:!0});var i=n(e("../../../core/FactoryMaker.js")),o=n(e("../../utils/CustomTimeRanges.js"));a.__dashjs_factory_name="RangeController",r.default=i.default.getClassFactory(a),t.exports=r.default},{"../../../core/FactoryMaker.js":9,"../../utils/CustomTimeRanges.js":137}],70:[function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function a(e){var t=[],r=(0,o.default)(this.context).getInstance({log:e.log});return{initialize:function(e,n){e.some(function(e){var a=r.create(e,n);return a?(t.push(a),!0):void 0})},reset:function(){t.forEach(function(e){return e.reset()}),t=[]},report:function(e,r){t.forEach(function(t){return t.report(e,r)})}}}Object.defineProperty(r,"__esModule",{value:!0});var i=n(e("../../../core/FactoryMaker.js")),o=n(e("../reporting/ReportingFactory.js"));a.__dashjs_factory_name="ReportingController",r.default=i.default.getClassFactory(a),t.exports=r.default},{"../../../core/FactoryMaker.js":9,"../reporting/ReportingFactory.js":76}],71:[function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function a(e){var t=e.log,r=/([a-zA-Z]*)(\(([0-9]*)(\,\s*([a-zA-Z]*))?\))?/,n=this.context,a={BufferLevel:o.default,DVBErrors:s.default,HttpList:u.default,PlayList:l.default,RepSwitchList:l.default,TcpList:l.default};return{create:function(i,o){var s,u=i.match(r);if(u){try{(s=a[u[1]](n).create({eventBus:e.eventBus})).initialize(u[1],o,u[3],u[5])}catch(e){s=null,t("MetricsHandlerFactory: Could not create handler for type "+u[1]+" with args "+u[3]+", "+u[5]+" ("+e.message+")")}return s}},register:function(e,t){a[e]=t},unregister:function(e){delete a[e]}}}Object.defineProperty(r,"__esModule",{value:!0});var i=n(e("../../../core/FactoryMaker.js")),o=n(e("./handlers/BufferLevelHandler.js")),s=n(e("./handlers/DVBErrorsHandler.js")),u=n(e("./handlers/HttpListHandler.js")),l=n(e("./handlers/GenericMetricHandler.js"));a.__dashjs_factory_name="MetricsHandlerFactory",r.default=i.default.getSingletonFactory(a),t.exports=r.default},{"../../../core/FactoryMaker.js":9,"./handlers/BufferLevelHandler.js":72,"./handlers/DVBErrorsHandler.js":73,"./handlers/GenericMetricHandler.js":74,"./handlers/HttpListHandler.js":75}],72:[function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function a(){function e(){var e=function(){try{return Object.keys(l).map(function(e){return l[e]}).reduce(function(e,t){return e.level<t.level?e:t})}catch(e){return}}();e&&i!==e.t&&(i=e.t,t.report(n,e))}var t=void 0,r=void 0,n=void 0,a=void 0,i=void 0,s=this.context,u=(0,o.default)(s).getInstance(),l=[];return{initialize:function(i,o,s){o&&(r=u.validateN(s),t=o,n=u.reconstructFullMetricName(i,s),a=setInterval(e,r))},reset:function(){clearInterval(a),a=null,r=0,t=null,i=null},handleNewMetric:function(e,t,r){"BufferLevel"===e&&(l[r]=t)}}}Object.defineProperty(r,"__esModule",{value:!0});var i=n(e("../../../../core/FactoryMaker.js")),o=n(e("../../utils/HandlerHelpers.js"));a.__dashjs_factory_name="BufferLevelHandler",r.default=i.default.getClassFactory(a),t.exports=r.default},{"../../../../core/FactoryMaker.js":9,"../../utils/HandlerHelpers.js":79}],73:[function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(r,"__esModule",{value:!0});var a=n(e("../../../../core/FactoryMaker.js")),i=n(e("../../MetricsReportingEvents.js"));r.default=a.default.getClassFactory(function(e){function t(){n.off(i.default.METRICS_INITIALISATION_COMPLETE,t,this),n.trigger(i.default.BECAME_REPORTING_PLAYER)}var r=void 0,n=e.eventBus;return{initialize:function(e,a){a&&(r=a,n.on(i.default.METRICS_INITIALISATION_COMPLETE,t,this))},reset:function(){r=null},handleNewMetric:function(e,t){"DVBErrors"===e&&r&&r.report(e,t)}}}),t.exports=r.default},{"../../../../core/FactoryMaker.js":9,"../../MetricsReportingEvents.js":65}],74:[function(e,t,r){"use strict";function n(){var e=void 0,t=void 0;return{initialize:function(r,n){e=r,t=n},reset:function(){t=null,e=void 0},handleNewMetric:function(r,n){r===e&&t&&t.report(e,n)}}}Object.defineProperty(r,"__esModule",{value:!0});var a=function(e){return e&&e.__esModule?e:{default:e}}(e("../../../../core/FactoryMaker.js"));n.__dashjs_factory_name="GenericMetricHandler",r.default=a.default.getClassFactory(n),t.exports=r.default},{"../../../../core/FactoryMaker.js":9}],75:[function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function a(){function e(){var e=s;e.length&&t&&t.report(a,e),s=[]}var t=void 0,r=void 0,n=void 0,a=void 0,i=void 0,s=[],u=(0,o.default)(this.context).getInstance();return{initialize:function(o,s,l,d){s&&(r=u.validateN(l),t=s,d&&d.length&&(n=d),a=u.reconstructFullMetricName(o,l,d),i=setInterval(e,r))},reset:function(){clearInterval(i),i=null,r=null,n=null,s=[],t=null},handleNewMetric:function(e,t){"HttpList"===e&&(n&&n!==t.type||s.push(t))}}}Object.defineProperty(r,"__esModule",{value:!0});var i=n(e("../../../../core/FactoryMaker.js")),o=n(e("../../utils/HandlerHelpers.js"));a.__dashjs_factory_name="HttpListHandler",r.default=i.default.getClassFactory(a),t.exports=r.default},{"../../../../core/FactoryMaker.js":9,"../../utils/HandlerHelpers.js":79}],76:[function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function a(e){var t={"urn:dvb:dash:reporting:2014":o.default},r=this.context,n=e.log;return{create:function(e,a){var i;try{(i=t[e.schemeIdUri](r).create()).initialize(e,a)}catch(t){i=null,n("ReportingFactory: could not create Reporting with schemeIdUri "+e.schemeIdUri+" ("+t.message+")")}return i},register:function(e,r){t[e]=r},unregister:function(e){delete t[e]}}}Object.defineProperty(r,"__esModule",{value:!0});var i=n(e("../../../core/FactoryMaker.js")),o=n(e("./reporters/DVBReporting.js"));a.__dashjs_factory_name="ReportingFactory",r.default=i.default.getSingletonFactory(a),t.exports=r.default},{"../../../core/FactoryMaker.js":9,"./reporters/DVBReporting.js":77}],77:[function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function a(){var e=this.context,t=(0,o.default)(e).getInstance(),r=(0,s.default)(e).getInstance(),n=!1,a=!1,i=null,u=null,l=[];return{report:function(e,r){Array.isArray(r)||(r=[r]),n&&u.isEnabled()&&r.forEach(function(r){var a=t.serialise(r);"DVBErrors"!==e&&(a="metricname="+e+"&"+a),function(e,t,r){var n=new XMLHttpRequest,a=function(){var e=l.indexOf(n);-1!==e&&(l.splice(e,1),!(n.status>=200&&n.status<300)&&(r&&r()))};l.push(n);try{n.open("GET",e),n.onloadend=a,n.onerror=a,n.send()}catch(e){n.onerror()}}(a=i+"?"+a,0,function(){n=!1})})},initialize:function(e,t){var o;if(u=t,!(i=e["dvb:reportingUrl"]))throw new Error("required parameter missing (dvb:reportingUrl)");a||((o=e["dvb:probability"]||e["dvb:priority"]||0)&&(1e3===o||o/1e3>=r.random())&&(n=!0),a=!0)},reset:function(){a=!1,n=!1,i=null,u=null}}}Object.defineProperty(r,"__esModule",{value:!0});var i=n(e("../../../../core/FactoryMaker.js")),o=n(e("../../utils/MetricSerialiser.js")),s=n(e("../../utils/RNG.js"));a.__dashjs_factory_name="DVBReporting",r.default=i.default.getClassFactory(a),t.exports=r.default},{"../../../../core/FactoryMaker.js":9,"../../utils/MetricSerialiser.js":81,"../../utils/RNG.js":82}],78:[function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function a(e){function t(e){var t=new i.default;if(p){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.mpdurl||(t.mpdurl=p.originalUrl||p.url),t.terror||(t.terror=new Date),h.addDVBErrors(t)}}function r(e){e.error||(p=e.manifest)}function n(e){t({errorcode:i.default.BASE_URL_CHANGED,servicelocation:e.entry})}function a(){t({errorcode:i.default.BECAME_REPORTER})}function l(e){"HttpList"===e.metric&&function(e){(0===e.responsecode||e.responsecode>=400||e.responsecode<100||e.responsecode>=600)&&t({errorcode:e.responsecode||i.default.CONNECTION_ERROR,url:e.url,terror:e.tresponse,servicelocation:e._serviceLocation})}(e.value)}function d(e){var r;switch(e.error?e.error.code:0){case MediaError.MEDIA_ERR_NETWORK:r=i.default.CONNECTION_ERROR;break;case MediaError.MEDIA_ERR_DECODE:r=i.default.CORRUPT_MEDIA_OTHER;break;default:return}t({errorcode:r})}function f(){g.on(o.default.MANIFEST_UPDATED,r,c),g.on(o.default.SERVICE_LOCATION_BLACKLIST_CHANGED,n,c),g.on(s.default.METRIC_ADDED,l,c),g.on(s.default.METRIC_UPDATED,l,c),g.on(s.default.PLAYBACK_ERROR,d,c),g.on(u.default.BECAME_REPORTING_PLAYER,a,c)}var c=void 0,g=e.eventBus,h=e.metricsModel,p=void 0;return c={initialise:f,reset:function(){g.off(o.default.MANIFEST_UPDATED,r,c),g.off(o.default.SERVICE_LOCATION_BLACKLIST_CHANGED,n,c),g.off(s.default.METRIC_ADDED,l,c),g.off(s.default.METRIC_UPDATED,l,c),g.off(s.default.PLAYBACK_ERROR,d,c),g.off(u.default.BECAME_REPORTING_PLAYER,a,c)}},f(),c}Object.defineProperty(r,"__esModule",{value:!0});var i=n(e("../vo/DVBErrors.js")),o=n(e("../../../core/events/Events.js")),s=n(e("../../MediaPlayerEvents.js")),u=n(e("../MetricsReportingEvents.js")),l=n(e("../../../core/FactoryMaker.js"));a.__dashjs_factory_name="DVBErrorsTranslator",r.default=l.default.getSingletonFactory(a),t.exports=r.default},{"../../../core/FactoryMaker.js":9,"../../../core/events/Events.js":11,"../../MediaPlayerEvents.js":40,"../MetricsReportingEvents.js":65,"../vo/DVBErrors.js":83}],79:[function(e,t,r){"use strict";function n(){return{reconstructFullMetricName:function(e,t,r){var n=e;return t&&(n+="("+t,r&&r.length&&(n+=","+r),n+=")"),n},validateN:function(e){if(!e)throw"missing n";if(isNaN(e))throw"n is NaN";if(0>e)throw"n must be positive";return e}}}Object.defineProperty(r,"__esModule",{value:!0});var a=function(e){return e&&e.__esModule?e:{default:e}}(e("../../../core/FactoryMaker.js"));n.__dashjs_factory_name="HandlerHelpers",r.default=a.default.getSingletonFactory(n),t.exports=r.default},{"../../../core/FactoryMaker.js":9}],80:[function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function a(e){var t=e.dashManifestModel;return{getMetrics:function(e){var r=[];return e.Metrics_asArray&&e.Metrics_asArray.forEach(function(n){var a=new i.default,u=t.getIsDynamic(e);n.hasOwnProperty("metrics")&&(a.metrics=n.metrics,n.Range_asArray&&n.Range_asArray.forEach(function(r){var n=new o.default;n.starttime=function(e,r,n){var a,i,o=t.getMpd(e),s=0;return r?s=o.availabilityStartTime.getTime()/1e3:(a=this.getRegularPeriods(e,o)).length&&(s=a[0].start),i=s,n&&n.hasOwnProperty("starttime")&&(i+=n.starttime),i}(e,u,r),r.hasOwnProperty("duration")?n.duration=r.duration:n.duration=t.getDuration(e),n._useWallClockTime=u,a.Range.push(n)}),n.Reporting_asArray&&(n.Reporting_asArray.forEach(function(e){var t=new s.default;if(e.hasOwnProperty("schemeIdUri")){for(var r in t.schemeIdUri=e.schemeIdUri,e)e.hasOwnProperty(r)&&(t[r]=e[r]);a.Reporting.push(t)}}),r.push(a)))}),r}}}Object.defineProperty(r,"__esModule",{value:!0});var i=n(e("../vo/Metrics.js")),o=n(e("../vo/Range.js")),s=n(e("../vo/Reporting.js")),u=n(e("../../../core/FactoryMaker.js"));a.__dashjs_factory_name="ManifestParsing",r.default=u.default.getSingletonFactory(a),t.exports=r.default},{"../../../core/FactoryMaker.js":9,"../vo/Metrics.js":84,"../vo/Range.js":85,"../vo/Reporting.js":86}],81:[function(e,t,r){"use strict";function n(){return{serialise:function e(t){var r,n,a=[],i=[];for(r in t)if(t.hasOwnProperty(r)&&0!==r.indexOf("_")){if(null==(n=t[r])&&(n=""),Array.isArray(n)){if(!n.length)continue;i=[],n.forEach(function(t){var r="Object"!==Object.prototype.toString.call(t).slice(8,-1);i.push(r?t:e(t))}),n=encodeURIComponent(i.join(","))}else"string"==typeof n?n=encodeURIComponent(n):n instanceof Date?n=n.toISOString():"number"==typeof n&&(n=Math.round(n));a.push(r+"="+n)}return a.join("&")}}}Object.defineProperty(r,"__esModule",{value:!0});var a=function(e){return e&&e.__esModule?e:{default:e}}(e("../../../core/FactoryMaker.js"));n.__dashjs_factory_name="MetricSerialiser",r.default=a.default.getSingletonFactory(n),t.exports=r.default},{"../../../core/FactoryMaker.js":9}],82:[function(e,t,r){"use strict";function n(){function e(){r&&(o||(o=new n(i)),r.getRandomValues(o),s=0)}var t,r=window.crypto||window.msCrypto,n=Uint32Array,a=Math.pow(2,8*n.BYTES_PER_ELEMENT)-1,i=10,o=void 0,s=void 0;return t={random:function(t,n){var i;return t||(t=0),n||(n=1),r?(s===o.length&&e(),i=o[s]/a,s+=1):i=Math.random(),i*(n-t)+t}},e(),t}Object.defineProperty(r,"__esModule",{value:!0});var a=function(e){return e&&e.__esModule?e:{default:e}}(e("../../../core/FactoryMaker.js"));n.__dashjs_factory_name="RNG",r.default=a.default.getSingletonFactory(n),t.exports=r.default},{"../../../core/FactoryMaker.js":9}],83:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=function e(){(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,e),this.mpdurl=null,this.errorcode=null,this.terror=null,this.url=null,this.ipaddress=null,this.servicelocation=null};n.SSL_CONNECTION_FAILED_PREFIX="SSL",n.DNS_RESOLUTION_FAILED="C00",n.HOST_UNREACHABLE="C01",n.CONNECTION_REFUSED="C02",n.CONNECTION_ERROR="C03",n.CORRUPT_MEDIA_ISOBMFF="M00",n.CORRUPT_MEDIA_OTHER="M01",n.BASE_URL_CHANGED="F00",n.BECAME_REPORTER="S00",r.default=n,t.exports=r.default},{}],84:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=function e(){(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,e),this.metrics="",this.Range=[],this.Reporting=[]},t.exports=r.default},{}],85:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=function e(){(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,e),this.starttime=0,this.duration=1/0,this._useWallClockTime=!1},t.exports=r.default},{}],86:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=function e(){(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,e),this.schemeIdUri="",this.value=""},t.exports=r.default},{}],87:[function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function a(){function e(e,t,r){var n=s.getBaseURLsFromElement(r);e[t]?d.areSimpleEquivalent(n,e[t].data.baseUrls)||(e[t].data.baseUrls=n,e[t].data.selectedIdx=u):e[t]=new l(n)}function t(e,r){var a=r||n;e(a.data),a.children&&a.children.forEach(function(r){return t(e,r)})}var r,n=void 0,a=this.context,s=(0,i.default)(a).getInstance(),d=(0,o.default)(a).getInstance();return r={reset:function(){n=new l},update:function(t){!function(t){var r=s.getBaseURLsFromElement(t);d.areSimpleEquivalent(r,n.data.baseUrls)||(n.data.baseUrls=r,n.data.selectedIdx=u),t.Period_asArray&&t.Period_asArray.forEach(function(t,r){e(n.children,r,t),t.AdaptationSet_asArray&&t.AdaptationSet_asArray.forEach(function(t,a){e(n.children[r].children,a,t),t.Representation_asArray&&t.Representation_asArray.sort(s.getRepresentationSortFunction()).forEach(function(t,i){e(n.children[r].children[a].children,i,t)})})})}(t)},getForPath:function(e){var t=n,r=[t.data];return e.forEach(function(e){(t=t.children[e])&&r.push(t.data)}),r.filter(function(e){return e.baseUrls.length})},invalidateSelectedIndexes:function(e){t(function(t){isNaN(t.selectedIdx)||e===t.baseUrls[t.selectedIdx].serviceLocation&&(t.selectedIdx=u)})}},n=new l,r}Object.defineProperty(r,"__esModule",{value:!0});var i=n(e("../../dash/models/DashManifestModel.js")),o=n(e("../utils/ObjectUtils.js")),s=n(e("../../core/FactoryMaker.js")),u=NaN,l=function e(t,r){(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,e),this.data={baseUrls:t||null,selectedIdx:r||u},this.children=[]};a.__dashjs_factory_name="BaseURLTreeModel",r.default=s.default.getClassFactory(a),t.exports=r.default},{"../../core/FactoryMaker.js":9,"../../dash/models/DashManifestModel.js":19,"../utils/ObjectUtils.js":142}],88:[function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function a(e){function t(e,t){var r=e.indexOf(t);-1!==r&&e.splice(r,1)}function r(e,t,r){var n,a=NaN,i=NaN,o=null;for(n=e.length-1;n>=0;n--)if(i=(a=(o=e[n]).startTime)+o.duration,r=r||o.duration/2,!isNaN(a)&&!isNaN(i)&&t+r>=a&&i>t-r||isNaN(a)&&isNaN(t))return o;return null}function n(e,t){return t?t.hasOwnProperty("time")?[r(e,t.time,t.threshold)]:e.filter(function(e){for(var r in t)if("state"!==r&&t.hasOwnProperty(r)&&e[r]!=t[r])return!1;return!0}):e}function a(e){var t;switch(e){case d:t=T;break;case f:t=E;break;default:t=[]}return t}function s(e,t){if(e){var r=e.mediaType,n=new Date,a=e.type,i=e.startTime,o=e.availabilityStartTime,s=e.duration,u=e.quality,l=e.range;v.addSchedulingInfo(r,n,a,i,o,s,u,l,t),v.addRequestsQueue(r,T,E)}}function g(e){if(e.sender===M){var t=e.request,r=e.response,n=e.error;T.splice(T.indexOf(t),1),r&&!n&&E.push(t),s(t,n?c:f),m.trigger(o.default.FRAGMENT_LOADING_COMPLETED,{request:t,response:r,error:n,sender:this})}}var h=this.context,p=(0,l.default)(h).getInstance().log,m=(0,i.default)(h).getInstance(),v=e.metricsModel,y=void 0,_=void 0,E=void 0,T=void 0,M=void 0;return y={setLoader:function(e){M=e},setScheduleController:function(e){_=e},getScheduleController:function(){return _},getRequests:function(e){var t,r=[],i=[],o=1;if(!e||!e.state)return r;e.state instanceof Array?(o=e.state.length,t=e.state):t=[e.state];for(var s=0;o>s;s++)r=a(t[s]),i=i.concat(n(r,e));return i},isFragmentLoaded:function(e){var t=function(e,t){return e.action===u.default.ACTION_COMPLETE&&e.action===t.action},r=function(e,t){return!isNaN(e.index)&&e.index===t.index&&e.startTime===t.startTime&&e.adaptationIndex===t.adaptationIndex},n=function(e,t){return isNaN(e.index)&&isNaN(t.index)&&e.quality===t.quality},a=function(a){var i,o,s=!1,u=a.length;for(o=0;u>o;o++)if(i=a[o],r(e,i)||n(e,i)||t(e,i)){s=!0;break}return s};return a(T)||a(E)},removeExecutedRequestsBeforeTime:function(e){var r,n=NaN,a=null;for(r=E.length-1;r>=0;r--)n=(a=E[r]).startTime,!isNaN(n)&&e>n&&t(E,a)},abortRequests:function(){var e=[];for(M.abort();T.length>0;)e.push(T[0]),t(T,T[0]);return T=[],e},executeRequest:function(e){if(e)switch(e.action){case u.default.ACTION_COMPLETE:E.push(e),s(e,f),m.trigger(o.default.STREAM_COMPLETED,{request:e,fragmentModel:this});break;case u.default.ACTION_DOWNLOAD:s(e,d),T.push(e),function(e){m.trigger(o.default.FRAGMENT_LOADING_STARTED,{sender:y,request:e}),M.load(e)}(e);break;default:p("Unknown request action.")}},reset:function(){m.off(o.default.LOADING_COMPLETED,g,this),M&&(M.reset(),M=null),h=null,E=[],T=[]}},_=null,M=null,E=[],T=[],m.on(o.default.LOADING_COMPLETED,g,y),y}Object.defineProperty(r,"__esModule",{value:!0});var i=n(e("../../core/EventBus.js")),o=n(e("../../core/events/Events.js")),s=n(e("../../core/FactoryMaker.js")),u=n(e("../vo/FragmentRequest.js")),l=n(e("../../core/Debug.js")),d="loading",f="executed",c="failed";a.__dashjs_factory_name="FragmentModel";var g=s.default.getClassFactory(a);g.FRAGMENT_MODEL_LOADING=d,g.FRAGMENT_MODEL_EXECUTED=f,g.FRAGMENT_MODEL_CANCELED="canceled",g.FRAGMENT_MODEL_FAILED=c,r.default=g,t.exports=r.default},{"../../core/Debug.js":7,"../../core/EventBus.js":8,"../../core/FactoryMaker.js":9,"../../core/events/Events.js":11,"../vo/FragmentRequest.js":150}],89:[function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function a(){var e=this.context,t=(0,i.default)(e).getInstance(),r=void 0;return{getValue:function(){return r},setValue:function(e){r=e,t.trigger(o.default.MANIFEST_LOADED,{data:e})}}}Object.defineProperty(r,"__esModule",{value:!0});var i=n(e("../../core/EventBus.js")),o=n(e("../../core/events/Events.js")),s=n(e("../../core/FactoryMaker.js"));a.__dashjs_factory_name="ManifestModel",r.default=s.default.getSingletonFactory(a),t.exports=r.default},{"../../core/EventBus.js":8,"../../core/FactoryMaker.js":9,"../../core/events/Events.js":11}],90:[function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function a(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function i(){var e,t=void 0,r=void 0,n=void 0,i=void 0,o=void 0,A=void 0,j=void 0,D=void 0,b=void 0,O=void 0,P=void 0,w=void 0,N=void 0,x=void 0,L=void 0,F=void 0,B=void 0,k=void 0,U=void 0,K=void 0,H=void 0;return e={setBufferOccupancyABREnabled:function(e){H=e},getBufferOccupancyABREnabled:function(){return H},setBandwidthSafetyFactor:function(e){F=e},getBandwidthSafetyFactor:function(){return F},setAbandonLoadTimeout:function(e){B=e},getAbandonLoadTimeout:function(){return B},setLastBitrateCachingInfo:function(e,t){b.enabled=e,void 0===t||isNaN(t)||"number"!=typeof t||(b.ttl=t)},getLastBitrateCachingInfo:function(){return b},setLastMediaSettingsCachingInfo:function(e,t){O.enabled=e,void 0===t||isNaN(t)||"number"!=typeof t||(O.ttl=t)},getLastMediaSettingsCachingInfo:function(){return O},setStableBufferTime:function(e){P=e},getStableBufferTime:function(){return P},setBufferTimeAtTopQuality:function(e){w=e},getBufferTimeAtTopQuality:function(){return w},setBufferTimeAtTopQualityLongForm:function(e){N=e},getBufferTimeAtTopQualityLongForm:function(){return N},setLongFormContentDurationThreshold:function(e){x=e},getLongFormContentDurationThreshold:function(){return x},setRichBufferThreshold:function(e){L=e},getRichBufferThreshold:function(){return L},setBufferToKeep:function(e){j=e},getBufferToKeep:function(){return j},setBufferPruningInterval:function(e){D=e},getBufferPruningInterval:function(){return D},setFragmentRetryAttempts:function(e){k[s.default.MEDIA_SEGMENT_TYPE]=e},getFragmentRetryAttempts:function(){return k[s.default.MEDIA_SEGMENT_TYPE]},setRetryAttemptsForType:function(e,t){k[e]=t},getRetryAttemptsForType:function(e){return k[e]},setFragmentRetryInterval:function(e){U[s.default.MEDIA_SEGMENT_TYPE]=e},getFragmentRetryInterval:function(){return U[s.default.MEDIA_SEGMENT_TYPE]},setRetryIntervalForType:function(e,t){U[e]=t},getRetryIntervalForType:function(e){return U[e]},setWallclockTimeUpdateInterval:function(e){K=e},getWallclockTimeUpdateInterval:function(){return K},setScheduleWhilePaused:function(e){A=e},getScheduleWhilePaused:function(){return A},getUseSuggestedPresentationDelay:function(){return r},setUseSuggestedPresentationDelay:function(e){r=e},setLiveDelayFragmentCount:function(e){i=e},getLiveDelayFragmentCount:function(){return i},getLiveDelay:function(){return o},setLiveDelay:function(e){o=e},setUseManifestDateHeaderTimeSource:function(e){t=e},getUseManifestDateHeaderTimeSource:function(){return t},setUTCTimingSources:function(e){n=e},getUTCTimingSources:function(){return n},reset:function(){}},function(){var e,q;n=[],r=!1,t=!0,A=!0,H=!1,b={enabled:!0,ttl:l},O={enabled:!0,ttl:d},i=u,o=void 0,j=g,D=h,P=p,w=m,N=v,x=y,L=_,F=f,B=c,K=C,a(e={},s.default.MPD_TYPE,M),a(e,s.default.XLINK_EXPANSION_TYPE,R),a(e,s.default.MEDIA_SEGMENT_TYPE,E),a(e,s.default.INIT_SEGMENT_TYPE,E),a(e,s.default.BITSTREAM_SWITCHING_SEGMENT_TYPE,E),a(e,s.default.INDEX_SEGMENT_TYPE,E),a(e,s.default.OTHER_TYPE,E),k=e,a(q={},s.default.MPD_TYPE,S),a(q,s.default.XLINK_EXPANSION_TYPE,I),a(q,s.default.MEDIA_SEGMENT_TYPE,T),a(q,s.default.INIT_SEGMENT_TYPE,T),a(q,s.default.BITSTREAM_SWITCHING_SEGMENT_TYPE,T),a(q,s.default.INDEX_SEGMENT_TYPE,T),a(q,s.default.OTHER_TYPE,T),U=q}(),e}Object.defineProperty(r,"__esModule",{value:!0});var o=n(e("../../core/FactoryMaker.js")),s=n(e("../vo/metrics/HTTPRequest.js")),u=4,l=36e4,d=36e4,f=.9,c=1e4,g=30,h=30,p=12,m=30,v=60,y=600,_=20,E=3,T=1e3,M=3,S=500,R=1,I=500,C=50;i.__dashjs_factory_name="MediaPlayerModel";var A=o.default.getSingletonFactory(i);A.DEFAULT_UTC_TIMING_SOURCE={scheme:"urn:mpeg:dash:utc:http-xsdate:2014",value:"http://time.akamai.com/?iso"},r.default=A,t.exports=r.default},{"../../core/FactoryMaker.js":9,"../vo/metrics/HTTPRequest.js":166}],91:[function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function a(){function e(){T.trigger(v.default.METRICS_CHANGED)}function t(t){T.trigger(v.default.METRIC_CHANGED,{mediaType:t}),e()}function r(e,r,n){T.trigger(v.default.METRIC_UPDATED,{mediaType:e,metric:r,value:n}),t(e)}function n(e,r,n){T.trigger(v.default.METRIC_ADDED,{mediaType:e,metric:r,value:n}),t(e)}function a(e){var t;return S.hasOwnProperty(e)?t=S[e]:(t=new i.default,S[e]=t),t}var y,E=this.context,T=(0,p.default)(E).getInstance(),M=void 0,S=void 0;return y={metricsChanged:e,metricChanged:t,metricUpdated:r,metricAdded:n,clearCurrentMetricsForType:function(e){delete S[e],t(e)},clearAllCurrentMetrics:function(){S={},e()},getReadOnlyMetricsFor:function(e){return S.hasOwnProperty(e)?S[e]:null},getMetricsFor:a,addTcpConnection:function(e,t,r,i,s,u){var l=new o.default;return l.tcpid=t,l.dest=r,l.topen=i,l.tclose=s,l.tconnect=u,a(e).TcpList.push(l),n(e,M.metricsList.TCP_CONNECTION,l),l},addHttpRequest:function e(t,r,i,o,u,l,d,f,c,g,h,p,m,v){var y=new s.default;return u&&u!==o&&(e(t,null,i,o,null,null,d,f,null,null,null,p,null,null),y.actualurl=u),y.tcpid=r,y.type=i,y.url=o,y.range=d,y.trequest=f,y.tresponse=c,y.responsecode=h,y._tfinish=g,y._stream=t,y._mediaduration=p,y._responseHeaders=m,y._serviceLocation=l,v?v.forEach(function(e){!function(e,t,r,n){var a=new s.default.Trace;a.s=t,a.d=r,a.b=n,e.trace.push(a),e.interval||(e.interval=0),e.interval+=r}(y,e.s,e.d,e.b)}):(delete y.interval,delete y.trace),a(t).HttpList.push(y),n(t,M.metricsList.HTTP_REQUEST,y),y},addRepresentationSwitch:function(e,t,r,i,o){var s=new u.default;return s.t=t,s.mt=r,s.to=i,o?s.lto=o:delete s.lto,a(e).RepSwitchList.push(s),n(e,M.metricsList.TRACK_SWITCH,s),s},addBufferLevel:function(e,t,r){var i=new l.default;return i.t=t,i.level=r,a(e).BufferLevel.push(i),n(e,M.metricsList.BUFFER_LEVEL,i),i},addBufferState:function(e,t,r){var i=new d.default;return i.target=r,i.state=t,a(e).BufferState.push(i),n(e,M.metricsList.BUFFER_STATE,i),i},addDVRInfo:function(e,t,r,i){var o=new f.default;return o.time=t,o.range=i,o.manifestInfo=r,a(e).DVRInfo.push(o),n(e,M.metricsList.DVR_INFO,o),o},addDroppedFrames:function(e,t){var r=new c.default,i=a(e).DroppedFrames;return r.time=t.creationTime,r.droppedFrames=t.droppedVideoFrames,i.length>0&&i[i.length-1]==r?i[i.length-1]:(i.push(r),n(e,M.metricsList.DROPPED_FRAMES,r),r)},addSchedulingInfo:function(e,t,r,i,o,s,u,l,d){var f=new h.default;return f.mediaType=e,f.t=t,f.type=r,f.startTime=i,f.availabilityStartTime=o,f.duration=s,f.quality=u,f.range=l,f.state=d,a(e).SchedulingInfo.push(f),n(e,M.metricsList.SCHEDULING_INFO,f),f},addRequestsQueue:function(e,t,r){var i=new m.default;i.loadingRequests=t,i.executedRequests=r,a(e).RequestsQueue=i,n(e,M.metricsList.REQUESTS_QUEUE,i)},addManifestUpdate:function(e,t,r,i,o,s,u,l,d,f){var c=new g.default,h=a("stream");return c.mediaType=e,c.type=t,c.requestTime=r,c.fetchTime=i,c.availabilityStartTime=o,c.presentationStartTime=s,c.clientTimeOffset=u,c.currentTime=l,c.buffered=d,c.latency=f,h.ManifestUpdate.push(c),n(e,M.metricsList.MANIFEST_UPDATE,c),c},updateManifestUpdateInfo:function(e,t){if(e){for(var n in t)e[n]=t[n];r(e.mediaType,M.metricsList.MANIFEST_UPDATE,e)}},addManifestUpdateStreamInfo:function(e,t,n,a,i){if(e){var o=new g.default.StreamInfo;return o.id=t,o.index=n,o.start=a,o.duration=i,e.streamInfo.push(o),r(e.mediaType,M.metricsList.MANIFEST_UPDATE_STREAM_INFO,e),o}return null},addManifestUpdateRepresentationInfo:function(e,t,n,a,i,o,s,u){if(e){var l=new g.default.TrackInfo;return l.id=t,l.index=n,l.streamIndex=a,l.mediaType=i,l.startNumber=s,l.fragmentInfoType=u,l.presentationTimeOffset=o,e.trackInfo.push(l),r(e.mediaType,M.metricsList.MANIFEST_UPDATE_TRACK_INFO,e),l}return null},addPlayList:function(e){var t="stream";return e.trace&&Array.isArray(e.trace)?e.trace.forEach(function(e){e.hasOwnProperty("subreplevel")&&!e.subreplevel&&delete e.subreplevel}):delete e.trace,a(t).PlayList.push(e),n(t,M.metricsList.PLAY_LIST,e),e},addDVBErrors:function(e){var t="stream";return a(t).DVBErrors.push(e),n(t,M.metricsList.DVB_ERRORS,e),e},updateBolaState:function(e,t){var r=new _.default;return r._s=t,a(e).BolaState=[r],n(e,"BolaState",r),r},setConfig:function(e){e&&e.adapter&&(M=e.adapter)}},S={},y}Object.defineProperty(r,"__esModule",{value:!0});var i=n(e("../vo/MetricsList.js")),o=n(e("../vo/metrics/TCPConnection.js")),s=n(e("../vo/metrics/HTTPRequest.js")),u=n(e("../vo/metrics/RepresentationSwitch.js")),l=n(e("../vo/metrics/BufferLevel.js")),d=n(e("../vo/metrics/BufferState.js")),f=n(e("../vo/metrics/DVRInfo.js")),c=n(e("../vo/metrics/DroppedFrames.js")),g=n(e("../vo/metrics/ManifestUpdate.js")),h=n(e("../vo/metrics/SchedulingInfo.js")),p=n(e("../../core/EventBus.js")),m=n(e("../vo/metrics/RequestsQueue.js")),v=n(e("../../core/events/Events.js")),y=n(e("../../core/FactoryMaker.js")),_=n(e("../vo/metrics/BolaState.js"));a.__dashjs_factory_name="MetricsModel",r.default=y.default.getSingletonFactory(a),t.exports=r.default},{"../../core/EventBus.js":8,"../../core/FactoryMaker.js":9,"../../core/events/Events.js":11,"../vo/MetricsList.js":155,"../vo/metrics/BolaState.js":161,"../vo/metrics/BufferLevel.js":162,"../vo/metrics/BufferState.js":163,"../vo/metrics/DVRInfo.js":164,"../vo/metrics/DroppedFrames.js":165,"../vo/metrics/HTTPRequest.js":166,"../vo/metrics/ManifestUpdate.js":167,"../vo/metrics/RepresentationSwitch.js":169,"../vo/metrics/RequestsQueue.js":170,"../vo/metrics/SchedulingInfo.js":171,"../vo/metrics/TCPConnection.js":172}],92:[function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function a(){var e=void 0,t=void 0,r=void 0;return{initialize:function(){e=new i.default,t=[],r=!1},parseURI:function(n){function a(e,t,r,n){var a=n[0].split(/[=]/);return n.push({key:a[0],value:a[1]}),n.shift(),n}if(!n)return null;var i=[],o=new RegExp(/[?]/),s=new RegExp(/[#]/),u=new RegExp(/^(https:)?\/\//i),l=o.test(n),d=s.test(n);return r=u.test(n),n.split(/[?#]/).map(function(e,r,n){return r>0&&(l&&0===t.length?t=n[r].split(/[&]/):d&&(i=n[r].split(/[&]/))),n}),t.length>0&&(t=t.reduce(a,null)),i.length>0&&(i=i.reduce(a,null)).forEach(function(t){e[t.key]=t.value}),n},getURIFragmentData:function(){return e},getURIQueryData:function(){return t},isManifestHTTPS:function(){return r}}}Object.defineProperty(r,"__esModule",{value:!0});var i=n(e("../vo/URIFragmentData.js")),o=n(e("../../core/FactoryMaker.js"));a.__dashjs_factory_name="URIQueryAndFragmentModel",r.default=o.default.getSingletonFactory(a),t.exports=r.default},{"../../core/FactoryMaker.js":9,"../vo/URIFragmentData.js":160}],93:[function(e,t,r){"use strict";function n(){function e(e){!n||n.readyState<2||(n.playbackRate=e)}function t(t){var r=void 0;null===t||n.seeking||-1!==o.indexOf(t)||(o.push(t),1===o.length&&((r=document.createEvent("Event")).initEvent("waiting",!0,!1),s=n.playbackRate,e(0),n.dispatchEvent(r)))}function r(t){var r=o.indexOf(t),a=void 0;null!==t&&(-1!==r&&o.splice(r,1),o.length>0==0&&0===n.playbackRate&&((a=document.createEvent("Event")).initEvent("playing",!0,!1),e(s||1),n.dispatchEvent(a)))}var n=void 0,a=void 0,i=void 0,o=void 0,s=void 0;return{initialize:function(){o=[]},setCurrentTime:function(e){if(n.currentTime!=e)try{n.currentTime=e}catch(t){0===n.readyState&&t.code===t.INVALID_STATE_ERR&&setTimeout(function(){n.currentTime=e},400)}},setStallState:function(e,n){!function(e,n){n?t(e):r(e)}(e,n)},getElement:function(){return n},setElement:function(e){(n=e).preload="auto"},setSource:function(e){e?n.src=e:(n.removeAttribute("src"),n.load())},getSource:function(){return n.src},getVideoContainer:function(){return i},setVideoContainer:function(e){i=e},getTTMLRenderingDiv:function(){return a},setTTMLRenderingDiv:function(e){(a=e).style.position="absolute",a.style.display="flex",a.style.overflow="hidden",a.style.pointerEvents="none",a.style.top=0,a.style.left=0},getPlaybackQuality:function(){var e="webkitDroppedFrameCount"in n,t=null;return"getVideoPlaybackQuality"in n?t=n.getVideoPlaybackQuality():e&&(t={droppedVideoFrames:n.webkitDroppedFrameCount,creationTime:new Date}),t}}}Object.defineProperty(r,"__esModule",{value:!0});var a=function(e){return e&&e.__esModule?e:{default:e}}(e("../../core/FactoryMaker.js"));n.__dashjs_factory_name="VideoModel",r.default=a.default.getSingletonFactory(n),t.exports=r.default},{"../../core/FactoryMaker.js":9}],94:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),a=function(e){return e&&e.__esModule?e:{default:e}}(e("../../../externals/base64.js")),i=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}return n(e,null,[{key:"findCencContentProtection",value:function(e){for(var t=null,r=0;r<e.length;++r){var n=e[r];"urn:mpeg:dash:mp4protection:2011"===n.schemeIdUri.toLowerCase()&&"cenc"===n.value.toLowerCase()&&(t=n)}return t}},{key:"getPSSHData",value:function(e){var t=8,r=new DataView(e),n=r.getUint8(t);return t+=20,n>0&&(t+=4+16*r.getUint32(t)),t+=4,e.slice(t)}},{key:"getPSSHForKeySystem",value:function(t,r){var n=e.parsePSSHList(r);return n.hasOwnProperty(t.uuid.toLowerCase())?n[t.uuid.toLowerCase()]:null}},{key:"parseInitDataFromContentProtection",value:function(e){return"pssh"in e?a.default.decodeArray(e.pssh.__text).buffer:null}},{key:"parsePSSHList",value:function(e){if(null===e)return[];for(var t=new DataView(e),r={},n=0;;){var a,i,o,s=n;if(n>=t.buffer.byteLength)break;if(a=n+t.getUint32(n),n+=4,1886614376===t.getUint32(n))if(n+=4,0===(i=t.getUint8(n))||1===i){var u,l;for(n++,n+=3,o="",u=0;4>u;u++)o+=1===(l=t.getUint8(n+u).toString(16)).length?"0"+l:l;for(n+=4,o+="-",u=0;2>u;u++)o+=1===(l=t.getUint8(n+u).toString(16)).length?"0"+l:l;for(n+=2,o+="-",u=0;2>u;u++)o+=1===(l=t.getUint8(n+u).toString(16)).length?"0"+l:l;for(n+=2,o+="-",u=0;2>u;u++)o+=1===(l=t.getUint8(n+u).toString(16)).length?"0"+l:l;for(n+=2,o+="-",u=0;6>u;u++)o+=1===(l=t.getUint8(n+u).toString(16)).length?"0"+l:l;n+=6,o=o.toLowerCase(),t.getUint32(n),n+=4,r[o]=t.buffer.slice(s,a),n=a}else n=a;else n=a}return r}}]),e}();r.default=i,t.exports=r.default},{"../../../externals/base64.js":1}],95:[function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function a(){function e(e){var n=e.log,a=e.eventBus,i=e.videoModel.getElement();return void 0!==i.onencrypted&&void 0!==i.mediaKeys&&void 0!==navigator.requestMediaKeySystemAccess&&"function"==typeof navigator.requestMediaKeySystemAccess?(n("EME detected on this user agent! (ProtectionModel_21Jan2015)"),(0,u.default)(r).create({log:n,eventBus:a})):t(i,g)?(n("EME detected on this user agent! (ProtectionModel_3Feb2014)"),(0,l.default)(r).create({log:n,eventBus:a,api:t(i,g)})):t(i,c)?(n("EME detected on this user agent! (ProtectionModel_01b)"),(0,d.default)(r).create({log:n,eventBus:a,api:t(i,c)})):(n("No supported version of EME detected on this user agent! - Attempts to play encrypted content will fail!"),null)}function t(e,t){for(var r=0;r<t.length;r++){var n=t[r];if("function"==typeof e[n[Object.keys(n)[0]]])return n}return null}var r=this.context;return{createProtectionSystem:function(t){var n=null,a=(0,o.default)(r).getInstance();a.setConfig({log:t.log}),a.initialize();var s=e(t);return!n&&s&&(n=(0,i.default)(r).create({protectionModel:s,protectionKeyController:a,adapter:t.adapter,eventBus:t.eventBus,log:t.log}),t.capabilities.setEncryptedMediaSupported(!0)),n}}}Object.defineProperty(r,"__esModule",{value:!0});var i=n(e("./controllers/ProtectionController.js")),o=n(e("./controllers/ProtectionKeyController.js")),s=n(e("./ProtectionEvents.js")),u=n(e("./models/ProtectionModel_21Jan2015.js")),l=n(e("./models/ProtectionModel_3Feb2014.js")),d=n(e("./models/ProtectionModel_01b.js")),f=n(e("../../core/FactoryMaker.js")),c=[{generateKeyRequest:"generateKeyRequest",addKey:"addKey",cancelKeyRequest:"cancelKeyRequest",needkey:"needkey",keyerror:"keyerror",keyadded:"keyadded",keymessage:"keymessage"},{generateKeyRequest:"webkitGenerateKeyRequest",addKey:"webkitAddKey",cancelKeyRequest:"webkitCancelKeyRequest",needkey:"webkitneedkey",keyerror:"webkitkeyerror",keyadded:"webkitkeyadded",keymessage:"webkitkeymessage"}],g=[{setMediaKeys:"setMediaKeys",MediaKeys:"MediaKeys",release:"close",needkey:"needkey",error:"keyerror",message:"keymessage",ready:"keyadded",close:"keyclose"},{setMediaKeys:"msSetMediaKeys",MediaKeys:"MSMediaKeys",release:"close",needkey:"msneedkey",error:"mskeyerror",message:"mskeymessage",ready:"mskeyadded",close:"mskeyclose"}];a.__dashjs_factory_name="Protection";var h=f.default.getClassFactory(a);h.events=s.default,r.default=h,t.exports=r.default},{"../../core/FactoryMaker.js":9,"./ProtectionEvents.js":96,"./controllers/ProtectionController.js":97,"./controllers/ProtectionKeyController.js":98,"./models/ProtectionModel_01b.js":102,"./models/ProtectionModel_21Jan2015.js":103,"./models/ProtectionModel_3Feb2014.js":104}],96:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=function(e){function t(){(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,t),function(e,t,r){for(var n=!0;n;){var a=e,i=t,o=r;n=!1,null===a&&(a=Function.prototype);var s=Object.getOwnPropertyDescriptor(a,i);if(void 0!==s){if("value"in s)return s.value;var u=s.get;if(void 0===u)return;return u.call(o)}var l=Object.getPrototypeOf(a);if(null===l)return;e=l,t=i,r=o,n=!0,s=l=void 0}}(Object.getPrototypeOf(t.prototype),"constructor",this).call(this),this.INTERNAL_KEY_MESSAGE="internalKeyMessage",this.INTERNAL_KEY_SYSTEM_SELECTED="internalKeySystemSelected",this.KEY_ADDED="public_keyAdded",this.KEY_ERROR="public_keyError",this.KEY_MESSAGE="public_keyMessage",this.KEY_SESSION_CLOSED="public_keySessionClosed",this.KEY_SESSION_CREATED="public_keySessionCreated",this.KEY_SESSION_REMOVED="public_keySessionRemoved",this.KEY_STATUSES_CHANGED="public_keyStatusesChanged",this.KEY_SYSTEM_ACCESS_COMPLETE="keySystemAccessComplete",this.KEY_SYSTEM_SELECTED="public_keySystemSelected",this.LICENSE_REQUEST_COMPLETE="public_licenseRequestComplete",this.NEED_KEY="needkey",this.PROTECTION_CREATED="public_protectioncreated",this.PROTECTION_DESTROYED="public_protectiondestroyed",this.SERVER_CERTIFICATE_UPDATED="serverCertificateUpdated",this.TEARDOWN_COMPLETE="protectionTeardownComplete",this.VIDEO_ELEMENT_SELECTED="videoElementSelected"}return function(e,t){if("function"!=typeof t&&null!==t)throw new 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),t}(function(e){return e&&e.__esModule?e:{default:e}}(e("../../core/events/EventsBase.js")).default),a=new n;r.default=a,t.exports=r.default},{"../../core/events/EventsBase.js":12}],97:[function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function a(e){function t(e){var t=i.default.getPSSHForKeySystem(R,e);if(t){for(var r=h.getAllInitData(),n=0;n<r.length;n++)if(g.initDataEquals(t,r[n]))return void v("DRM: Ignoring initData because we have already seen it!");try{h.createKeySession(t,S)}catch(e){m.trigger(o.default.KEY_SESSION_CREATED,{data:null,error:"Error creating key session! "+e.message})}}else m.trigger(o.default.KEY_SESSION_CREATED,{data:null,error:"Selected key system is "+R.systemString+".  needkey/encrypted event contains no initData corresponding to that key system!"})}function r(e){e?(h.setMediaElement(e),m.on(o.default.NEED_KEY,f,this),m.on(o.default.INTERNAL_KEY_MESSAGE,l,this)):null===e&&(h.setMediaElement(e),m.off(o.default.NEED_KEY,f,this),m.off(o.default.INTERNAL_KEY_MESSAGE,l,this))}function n(e,r){var n=this,a=[],i=[];E&&i.push(new s.default(E.codec)),_&&a.push(new s.default(_.codec));var l,d=new u.default(a,i,"optional","temporary"===S?"optional":"required",[S]),f=[];if(R){for(l=0;l<e.length;l++)if(R===e[l].ks){var c=function(){return f.push({ks:e[l].ks,configs:[d]}),m.on(o.default.KEY_SYSTEM_ACCESS_COMPLETE,function a(i){m.off(o.default.KEY_SYSTEM_ACCESS_COMPLETE,a,n),i.error?r||m.trigger(o.default.KEY_SYSTEM_SELECTED,{error:"DRM: KeySystem Access Denied! -- "+i.error}):(v("DRM: KeySystem Access Granted"),m.trigger(o.default.KEY_SYSTEM_SELECTED,{data:i.data}),t(e[l].initData))},n),h.requestKeySystemAccess(f),"break"}();if("break"===c)break}}else if(void 0===R){R=null,y.push(e);for(var g=0;g<e.length;g++)f.push({ks:e[g].ks,configs:[d]});var p,T=function e(t){m.off(o.default.KEY_SYSTEM_ACCESS_COMPLETE,e,n),t.error?(R=void 0,m.off(o.default.INTERNAL_KEY_SYSTEM_SELECTED,M,n),r||m.trigger(o.default.KEY_SYSTEM_SELECTED,{data:null,error:"DRM: KeySystem Access Denied! -- "+t.error})):(p=t.data,v("DRM: KeySystem Access Granted ("+p.keySystem.systemString+")!  Selecting key system..."),h.selectKeySystem(p))},M=function e(a){if(m.off(o.default.INTERNAL_KEY_SYSTEM_SELECTED,e,n),m.off(o.default.KEY_SYSTEM_ACCESS_COMPLETE,T,n),a.error)R=void 0,r||m.trigger(o.default.KEY_SYSTEM_SELECTED,{data:null,error:"DRM: Error selecting key system! -- "+a.error});else{R=h.getKeySystem(),m.trigger(o.default.KEY_SYSTEM_SELECTED,{data:p});for(var i=0;i<y.length;i++)for(l=0;l<y[i].length;l++)if(R===y[i][l].ks){t(y[i][l].initData);break}}};m.on(o.default.INTERNAL_KEY_SYSTEM_SELECTED,M,n),m.on(o.default.KEY_SYSTEM_ACCESS_COMPLETE,T,n),h.requestKeySystemAccess(f)}else y.push(e)}function a(e,t){m.trigger(o.default.LICENSE_REQUEST_COMPLETE,{data:e,error:t})}function l(e){if(v("DRM: onKeyMessage"),e.error)v(e.error);else{var t=e.data;m.trigger(o.default.KEY_MESSAGE,{data:t});var r=t.messageType?t.messageType:"license-request",n=t.message,s=t.sessionToken,u=function(e){var t=null,r=e.systemString;return T&&(t=r in T?T[r]:null),t}(R),l=R.systemString,d=g.getLicenseServer(R,u,r),f={sessionToken:s,messageType:r};if(!d)return v("DRM: License server request not required for this message (type="+e.data.messageType+").  Session ID="+s.getSessionID()),void a(f);if(g.isClearKey(R)){var c=g.processClearKeyLicenseRequest(u,n);if(c)return v("DRM: ClearKey license request handled by application!"),a(f),void h.updateKeySession(s,c)}var p=new XMLHttpRequest,y=null;if(u)if(u.serverURL){var _=u.serverURL;"string"==typeof _&&""!==_?y=_:"object"==typeof _&&_.hasOwnProperty(r)&&(y=_[r])}else u.laURL&&""!==u.laURL&&(y=u.laURL);else(y=R.getLicenseServerURLFromInitData(i.default.getPSSHData(s.initData)))||(y=e.data.laURL);if(y=d.getServerURLFromMessage(y,n,r)){p.open(d.getHTTPMethod(r),y,!0),p.responseType=d.getResponseType(l,r),p.onload=function(){200==this.status?(a(f),h.updateKeySession(s,d.getLicenseMessage(this.response,l,r))):a(f,"DRM: "+l+' update, XHR status is "'+this.statusText+'" ('+this.status+"), expected to be 200. readyState is "+this.readyState+".  Response is "+(this.response?d.getErrorResponse(this.response,l,r):"NONE"))},p.onabort=function(){a(f,"DRM: "+l+' update, XHR aborted. status is "'+this.statusText+'" ('+this.status+"), readyState is "+this.readyState)},p.onerror=function(){a(f,"DRM: "+l+' update, XHR error. status is "'+this.statusText+'" ('+this.status+"), readyState is "+this.readyState)};var E=function(e){var t;if(e)for(t in e)"authorization"===t.toLowerCase()&&(p.withCredentials=!0),p.setRequestHeader(t,e[t])};u&&E(u.httpRequestHeaders),E(R.getRequestHeadersFromMessage(n)),u&&u.withCredentials&&(p.withCredentials=!0),p.send(R.getLicenseRequestFromMessage(n))}else a(f,"DRM: No license server URL specified!")}}function f(e){if(v("DRM: onNeedKey"),"cenc"===e.key.initDataType){var t=e.key.initData;ArrayBuffer.isView(t)&&(t=t.buffer),v("DRM: initData:",String.fromCharCode.apply(null,new Uint8Array(t)));var r=g.getSupportedKeySystems(t);return 0===r.length?void v("DRM: Received needkey event with initData, but we don't support any of the key systems!"):void n(r,!1)}v("DRM:  Only 'cenc' initData is supported!  Ignoring initData of type: "+e.key.initDataType)}var c,g=e.protectionKeyController,h=e.protectionModel,p=e.adapter,m=e.eventBus,v=e.log,y=void 0,_=void 0,E=void 0,T=void 0,M=void 0,S=void 0,R=void 0;return c={initialize:function(e,t,r){if(!M){var a;t||r||(a=p.getStreamsInfo(e)[0]),_=t||(a?p.getMediaInfoForType(e,a,"audio"):null);var i=(E=r||(a?p.getMediaInfoForType(e,a,"video"):null))||_,o=g.getSupportedKeySystemsFromContentProtection(i.contentProtection);o&&o.length>0&&n(o,!0),M=!0}},createKeySession:t,loadKeySession:function(e){h.loadKeySession(e)},removeKeySession:function(e){h.removeKeySession(e)},closeKeySession:function(e){h.closeKeySession(e)},setServerCertificate:function(e){h.setServerCertificate(e)},setMediaElement:r,setSessionType:function(e){S=e},setProtectionData:function(e){T=e},reset:function(){r(null),R=void 0,h&&(h.reset(),h=null)}},g.getKeySystems(),y=[],M=!1,S="temporary",o.default.extend(d.default.events),c}Object.defineProperty(r,"__esModule",{value:!0});var i=n(e("../CommonEncryption.js")),o=n(e("../../../core/events/Events.js")),s=n(e("../vo/MediaCapability.js")),u=n(e("../vo/KeySystemConfiguration.js")),l=n(e("../../../core/FactoryMaker.js")),d=n(e("../Protection.js"));a.__dashjs_factory_name="ProtectionController",r.default=l.default.getClassFactory(a),t.exports=r.default},{"../../../core/FactoryMaker.js":9,"../../../core/events/Events.js":11,"../CommonEncryption.js":94,"../Protection.js":95,"../vo/KeySystemConfiguration.js":114,"../vo/MediaCapability.js":115}],98:[function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function a(){var e=this.context,t=void 0,r=void 0,n=void 0;return{initialize:function(){var t;r=[],t=(0,u.default)(e).getInstance(),r.push(t),t=(0,s.default)(e).getInstance(),r.push(t),t=(0,o.default)(e).getInstance(),r.push(t),n=t},isClearKey:function(e){return e===n},initDataEquals:function(e,t){if(e.byteLength===t.byteLength){for(var r=new Uint8Array(e),n=new Uint8Array(t),a=0;a<r.length;a++)if(r[a]!==n[a])return!1;return!0}return!1},getKeySystems:function(){return r},getKeySystemBySystemString:function(e){for(var t=0;t<r.length;t++)if(r[t].systemString===e)return r[t];return null},getSupportedKeySystemsFromContentProtection:function(e){var t,n,a,i,o=[];if(e)for(a=0;a<r.length;++a)for(n=r[a],i=0;i<e.length;++i)if((t=e[i]).schemeIdUri.toLowerCase()===n.schemeIdURI){var s=n.getInitData(t);s&&o.push({ks:r[a],initData:s})}return o},getSupportedKeySystems:function(e){var t,n=[],a=i.default.parsePSSHList(e);for(t=0;t<r.length;++t)r[t].uuid in a&&n.push({ks:r[t],initData:a[r[t].uuid]});return n},getLicenseServer:function(t,r,n){if("license-release"===n||"individualization-request"==n)return null;var a=null;return r&&r.hasOwnProperty("drmtoday")?a=(0,l.default)(e).getInstance():"com.widevine.alpha"===t.systemString?a=(0,f.default)(e).getInstance():"com.microsoft.playready"===t.systemString?a=(0,d.default)(e).getInstance():"org.w3.clearkey"===t.systemString&&(a=(0,c.default)(e).getInstance()),a},processClearKeyLicenseRequest:function(e,r){try{return n.getClearKeysFromProtectionData(e,r)}catch(e){return t("Failed to retrieve clearkeys from ProtectionData"),null}},setConfig:function(e){e&&e.log&&(t=e.log)}}}Object.defineProperty(r,"__esModule",{value:!0});var i=n(e("./../CommonEncryption.js")),o=n(e("./../drm/KeySystemClearKey.js")),s=n(e("./../drm/KeySystemWidevine.js")),u=n(e("./../drm/KeySystemPlayReady.js")),l=n(e("./../servers/DRMToday.js")),d=n(e("./../servers/PlayReady.js")),f=n(e("./../servers/Widevine.js")),c=n(e("./../servers/ClearKey.js")),g=n(e("../../../core/FactoryMaker.js"));a.__dashjs_factory_name="ProtectionKeyController",r.default=g.default.getSingletonFactory(a),t.exports=r.default},{"../../../core/FactoryMaker.js":9,"./../CommonEncryption.js":94,"./../drm/KeySystemClearKey.js":99,"./../drm/KeySystemPlayReady.js":100,"./../drm/KeySystemWidevine.js":101,"./../servers/ClearKey.js":105,"./../servers/DRMToday.js":106,"./../servers/PlayReady.js":107,"./../servers/Widevine.js":108}],99:[function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function a(){return{uuid:l,schemeIdURI:f,systemString:d,getInitData:function(e){return s.default.parseInitDataFromContentProtection(e)},getRequestHeadersFromMessage:function(){return null},getLicenseRequestFromMessage:function(e){return new Uint8Array(e)},getLicenseServerURLFromInitData:function(){return null},getClearKeysFromProtectionData:function(e,t){var r=null;if(e){for(var n=JSON.parse(String.fromCharCode.apply(null,new Uint8Array(t))),a=[],s=0;s<n.kids.length;s++){var u=n.kids[s],l=e.clearkeys.hasOwnProperty(u)?e.clearkeys[u]:null;if(!l)throw new Error("DRM: ClearKey keyID ("+u+") is not known!");a.push(new i.default(u,l))}r=new o.default(a)}return r}}}Object.defineProperty(r,"__esModule",{value:!0});var i=n(e("../vo/KeyPair.js")),o=n(e("../vo/ClearKeyKeySet.js")),s=n(e("../CommonEncryption.js")),u=n(e("../../../core/FactoryMaker.js")),l="1077efec-c0b2-4d02-ace3-3c1e52e2fb4b",d="org.w3.clearkey",f="urn:uuid:"+l;a.__dashjs_factory_name="KeySystemClearKey",r.default=u.default.getSingletonFactory(a),t.exports=r.default},{"../../../core/FactoryMaker.js":9,"../CommonEncryption.js":94,"../vo/ClearKeyKeySet.js":109,"../vo/KeyPair.js":112}],100:[function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function a(){var e="utf16";return{uuid:l,schemeIdURI:f,systemString:d,getInitData:function(e){var t,r,n,a,o,s=new Uint8Array([112,115,115,104,0,0,0,0]),l=new Uint8Array([154,4,240,121,152,64,66,134,171,146,230,91,224,136,95,149]),d=0,f=null;if("pssh"in e)return i.default.parseInitDataFromContentProtection(e);if("pro"in e)f=u.default.decodeArray(e.pro.__text);else{if(!("prheader"in e))return null;f=u.default.decodeArray(e.prheader.__text)}return t=f.length,r=4+s.length+l.length+4+t,n=new ArrayBuffer(r),a=new Uint8Array(n),(o=new DataView(n)).setUint32(d,r),d+=4,a.set(s,d),d+=s.length,a.set(l,d),d+=l.length,o.setUint32(d,t),d+=4,a.set(f,d),d+=t,a.buffer},getRequestHeadersFromMessage:function(t){var r,n,a={},i=new DOMParser,o="utf16"===e?new Uint16Array(t):new Uint8Array(t);r=String.fromCharCode.apply(null,o);for(var s=(n=i.parseFromString(r,"application/xml")).getElementsByTagName("name"),u=n.getElementsByTagName("value"),l=0;l<s.length;l++)a[s[l].childNodes[0].nodeValue]=u[l].childNodes[0].nodeValue;return a.hasOwnProperty("Content")&&(a["Content-Type"]=a.Content,delete a.Content),a},getLicenseRequestFromMessage:function(t){var r,n,a=null,i=new DOMParser,o="utf16"===e?new Uint16Array(t):new Uint8Array(t);if(r=String.fromCharCode.apply(null,o),(n=i.parseFromString(r,"application/xml")).getElementsByTagName("Challenge")[0]){var s=n.getElementsByTagName("Challenge")[0].childNodes[0].nodeValue;s&&(a=u.default.decode(s))}return a},getLicenseServerURLFromInitData:function(e){if(e)for(var t=new DataView(e),r=t.getUint16(4,!0),n=6,a=new DOMParser,i=0;r>i;i++){var o=t.getUint16(n,!0);n+=2;var s=t.getUint16(n,!0);if(n+=2,1===o){var u=e.slice(n,n+s),l=String.fromCharCode.apply(null,new Uint16Array(u)),d=a.parseFromString(l,"application/xml");if(d.getElementsByTagName("LA_URL")[0]){var f=d.getElementsByTagName("LA_URL")[0].childNodes[0].nodeValue;if(f)return f}if(d.getElementsByTagName("LUI_URL")[0]){var c=d.getElementsByTagName("LUI_URL")[0].childNodes[0].nodeValue;if(c)return c}}else n+=s}return null},setPlayReadyMessageFormat:function(t){if("utf8"!==t&&"utf16"!==t)throw new o.default("Illegal PlayReady message format! -- "+t);e=t}}}Object.defineProperty(r,"__esModule",{value:!0});var i=n(e("../CommonEncryption.js")),o=n(e("../../vo/Error.js")),s=n(e("../../../core/FactoryMaker.js")),u=n(e("../../../../externals/base64.js")),l="9a04f079-9840-4286-ab92-e65be0885f95",d="com.microsoft.playready",f="urn:uuid:"+l;a.__dashjs_factory_name="KeySystemPlayReady",r.default=s.default.getSingletonFactory(a),t.exports=r.default},{"../../../../externals/base64.js":1,"../../../core/FactoryMaker.js":9,"../../vo/Error.js":149,"../CommonEncryption.js":94}],101:[function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function a(){return{uuid:s,schemeIdURI:l,systemString:u,getInitData:function(e){return i.default.parseInitDataFromContentProtection(e)},getRequestHeadersFromMessage:function(){return null},getLicenseRequestFromMessage:function(e){return new Uint8Array(e)},getLicenseServerURLFromInitData:function(){return null}}}Object.defineProperty(r,"__esModule",{value:!0});var i=n(e("../CommonEncryption.js")),o=n(e("../../../core/FactoryMaker.js")),s="edef8ba9-79d6-4ace-a3c8-27dcd51d21ed",u="com.widevine.alpha",l="urn:uuid:"+s;a.__dashjs_factory_name="KeySystemWidevine",r.default=o.default.getSingletonFactory(a),t.exports=r.default},{"../../../core/FactoryMaker.js":9,"../CommonEncryption.js":94}],102:[function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function a(e){function t(e){v[m.cancelKeyRequest](y.systemString,e.sessionID)}function r(e,t){if(t&&e){for(var r=e.length,n=0;r>n;n++)if(e[n].sessionID==t)return e[n];return null}return null}function n(){v.removeEventListener(m.keyerror,R),v.removeEventListener(m.needkey,R),v.removeEventListener(m.keymessage,R),v.removeEventListener(m.keyadded,R)}var a,g=this.context,h=e.eventBus,p=e.log,m=e.api,v=void 0,y=void 0,_=void 0,E=void 0,T=void 0,M=void 0,S=void 0,R=void 0;return a={getAllInitData:function(){for(var e=[],t=0;t<T.length;t++)e.push(T[t].initData);for(t=0;t<M.length;t++)e.push(M[t].initData);return e},requestKeySystemAccess:function(e){var t=v;t||(t=document.createElement("video"));for(var r=!1,n=0;n<e.length;n++)for(var a=e[n].ks.systemString,i=e[n].configs,o=null,s=0;s<i.length;s++){var u=i[s].videoCapabilities;if(u&&0!==u.length){o=[];for(var c=0;c<u.length;c++)""!==t.canPlayType(u[c].contentType,a)&&o.push(u[c])}if(o&&(!o||0!==o.length)){r=!0;var g=new l.default(null,o),p=_.getKeySystemBySystemString(a);h.trigger(f.default.KEY_SYSTEM_ACCESS_COMPLETE,{data:new d.default(p,g)});break}}r||h.trigger(f.default.KEY_SYSTEM_ACCESS_COMPLETE,{error:"Key system access denied! -- No valid audio/video content configurations detected!"})},getKeySystem:function(){return y},selectKeySystem:function(e){y=e.keySystem,h.trigger(f.default.INTERNAL_KEY_SYSTEM_SELECTED)},setMediaElement:function(e){v!==e&&(v&&n(),(v=e)&&(v.addEventListener(m.keyerror,R),v.addEventListener(m.needkey,R),v.addEventListener(m.keymessage,R),v.addEventListener(m.keyadded,R),h.trigger(f.default.VIDEO_ELEMENT_SELECTED)))},createKeySession:function(e){if(!y)throw new Error("Can not create sessions until you have selected a key system");if(S||0===M.length){var t={sessionID:null,initData:e,getSessionID:function(){return this.sessionID},getExpirationTime:function(){return NaN},getSessionType:function(){return"temporary"}};return T.push(t),v[m.generateKeyRequest](y.systemString,new Uint8Array(e)),t}throw new Error("Multiple sessions not allowed!")},updateKeySession:function(e,t){var r=e.sessionID;if(_.isClearKey(y))for(var n=0;n<t.keyPairs.length;n++)v[m.addKey](y.systemString,t.keyPairs[n].key,t.keyPairs[n].keyID,r);else v[m.addKey](y.systemString,new Uint8Array(t),e.initData,r)},closeKeySession:t,setServerCertificate:function(){},loadKeySession:function(){},removeKeySession:function(){},reset:function(){v&&n();for(var e=0;e<M.length;e++)t(M[e]);h.trigger(f.default.TEARDOWN_COMPLETE)}},v=null,y=null,T=[],M=[],_=(0,i.default)(g).getInstance(),E=(0,c.default)(g).getInstance(),R={handleEvent:function(e){var t=null;switch(e.type){case m.needkey:var n=ArrayBuffer.isView(e.initData)?e.initData.buffer:e.initData;h.trigger(f.default.NEED_KEY,{key:new o.default(n,"cenc")});break;case m.keyerror:if((t=r(M,e.sessionId))||(t=r(T,e.sessionId)),t){var a="";switch(e.errorCode.code){case 1:a+="MEDIA_KEYERR_UNKNOWN - An unspecified error occurred. This value is used for errors that don't match any of the other codes.";break;case 2:a+="MEDIA_KEYERR_CLIENT - The Key System could not be installed or updated.";break;case 3:a+="MEDIA_KEYERR_SERVICE - The message passed into update indicated an error from the license service.";break;case 4:a+="MEDIA_KEYERR_OUTPUT - There is no available output device with the required characteristics for the content protection system.";break;case 5:a+="MEDIA_KEYERR_HARDWARECHANGE - A hardware configuration change caused a content protection error.";break;case 6:a+="MEDIA_KEYERR_DOMAIN - An error occurred in a multi-device domain licensing configuration. The most common error is a failure to join the domain."}a+="  System Code="+e.systemCode,h.trigger(f.default.KEY_ERROR,{data:new s.default(t,a)})}else p("No session token found for key error");break;case m.keyadded:(t=r(M,e.sessionId))||(t=r(T,e.sessionId)),t?(p("DRM: Key added."),h.trigger(f.default.KEY_ADDED,{data:t})):p("No session token found for key added");break;case m.keymessage:if((S=null!==e.sessionId&&void 0!==e.sessionId)?!(t=r(M,e.sessionId))&&T.length>0&&(t=T.shift(),M.push(t),t.sessionID=e.sessionId):T.length>0&&(t=T.shift(),M.push(t),0!==T.length&&E.mediaKeyMessageError("Multiple key sessions were creates with a user-agent that does not support sessionIDs!! Unpredictable behavior ahead!")),t){var i=ArrayBuffer.isView(e.message)?e.message.buffer:e.message;t.keyMessage=i,h.trigger(f.default.INTERNAL_KEY_MESSAGE,{data:new u.default(t,i,e.defaultURL)})}else p("No session token found for key message")}}},a}Object.defineProperty(r,"__esModule",{value:!0});var i=n(e("../controllers/ProtectionKeyController.js")),o=n(e("../vo/NeedKey.js")),s=n(e("../vo/KeyError.js")),u=n(e("../vo/KeyMessage.js")),l=n(e("../vo/KeySystemConfiguration.js")),d=n(e("../vo/KeySystemAccess.js")),f=n(e("../../../core/events/Events.js")),c=n(e("../../utils/ErrorHandler.js")),g=n(e("../../../core/FactoryMaker.js"));a.__dashjs_factory_name="ProtectionModel_01b",r.default=g.default.getClassFactory(a),t.exports=r.default},{"../../../core/FactoryMaker.js":9,"../../../core/events/Events.js":11,"../../utils/ErrorHandler.js":139,"../controllers/ProtectionKeyController.js":98,"../vo/KeyError.js":110,"../vo/KeyMessage.js":111,"../vo/KeySystemAccess.js":113,"../vo/KeySystemConfiguration.js":114,"../vo/NeedKey.js":116}],103:[function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function a(e){function t(e,r){!function(r){var n=e[r].ks,a=e[r].configs;navigator.requestMediaKeySystemAccess(n.systemString,a).then(function(e){var t="function"==typeof e.getConfiguration?e.getConfiguration():null,r=new l.default(n,t);r.mksa=e,_.trigger(d.default.KEY_SYSTEM_ACCESS_COMPLETE,{data:r})}).catch(function(){++r<e.length?t(e,r):_.trigger(d.default.KEY_SYSTEM_ACCESS_COMPLETE,{error:"Key system access denied!"})})}(r)}function r(e){var t=e.session;return t.removeEventListener("keystatuseschange",e),t.removeEventListener("message",e),t.close()}function n(e){for(var t=0;t<p.length;t++)if(p[t]===e){p.splice(t,1);break}}function a(e,t,r){var a={session:e,initData:t,handleEvent:function(e){switch(e.type){case"keystatuseschange":_.trigger(d.default.KEY_STATUSES_CHANGED,{data:this});break;case"message":var t=ArrayBuffer.isView(e.message)?e.message.buffer:e.message;_.trigger(d.default.INTERNAL_KEY_MESSAGE,{data:new u.default(this,t,void 0,e.messageType)})}},getSessionID:function(){return e.sessionId},getExpirationTime:function(){return e.expiration},getKeyStatuses:function(){return e.keyStatuses},getSessionType:function(){return r}};return e.addEventListener("keystatuseschange",a),e.addEventListener("message",a),e.closed.then(function(){n(a),E("DRM: Session closed.  SessionID="+a.getSessionID()),_.trigger(d.default.KEY_SESSION_CLOSED,{data:a.getSessionID()})}),p.push(a),a}var f,c,g,h,p,m,v,y=this.context,_=e.eventBus,E=e.log;return f={getAllInitData:function(){for(var e=[],t=0;t<p.length;t++)e.push(p[t].initData);return e},requestKeySystemAccess:function(e){t(e,0)},getKeySystem:function(){return c},selectKeySystem:function(e){e.mksa.createMediaKeys().then(function(t){c=e.keySystem,h=t,g&&g.setMediaKeys(h),_.trigger(d.default.INTERNAL_KEY_SYSTEM_SELECTED)}).catch(function(){_.trigger(d.default.INTERNAL_KEY_SYSTEM_SELECTED,{error:"Error selecting keys system ("+e.keySystem.systemString+")! Could not create MediaKeys -- TODO"})})},setMediaElement:function(e){g!==e&&(g&&(g.removeEventListener("encrypted",m),g.setMediaKeys(null)),(g=e)&&(g.addEventListener("encrypted",m),h&&g.setMediaKeys(h)))},setServerCertificate:function(e){if(!c||!h)throw new Error("Can not set server certificate until you have selected a key system");h.setServerCertificate(e).then(function(){E("DRM: License server certificate successfully updated."),_.trigger(d.default.SERVER_CERTIFICATE_UPDATED)}).catch(function(e){_.trigger(d.default.SERVER_CERTIFICATE_UPDATED,{error:"Error updating server certificate -- "+e.name})})},createKeySession:function(e,t){if(!c||!h)throw new Error("Can not create sessions until you have selected a key system");var r=h.createSession(t),i=a(r,e,t);r.generateRequest("cenc",e).then(function(){E("DRM: Session created.  SessionID="+i.getSessionID()),_.trigger(d.default.KEY_SESSION_CREATED,{data:i})}).catch(function(e){n(i),_.trigger(d.default.KEY_SESSION_CREATED,{data:null,error:"Error generating key request -- "+e.name})})},updateKeySession:function(e,t){var r=e.session;v.isClearKey(c)&&(t=t.toJWK()),r.update(t).catch(function(t){_.trigger(d.default.KEY_ERROR,{data:new s.default(e,"Error sending update() message! "+t.name)})})},loadKeySession:function(e){if(!c||!h)throw new Error("Can not load sessions until you have selected a key system");var t=h.createSession();t.load(e).then(function(r){if(r){var n=a(t);E("DRM: Session created.  SessionID="+n.getSessionID()),_.trigger(d.default.KEY_SESSION_CREATED,{data:n})}else _.trigger(d.default.KEY_SESSION_CREATED,{data:null,error:"Could not load session! Invalid Session ID ("+e+")"})}).catch(function(t){_.trigger(d.default.KEY_SESSION_CREATED,{data:null,error:"Could not load session ("+e+")! "+t.name})})},removeKeySession:function(e){e.session.remove().then(function(){E("DRM: Session removed.  SessionID="+e.getSessionID()),_.trigger(d.default.KEY_SESSION_REMOVED,{data:e.getSessionID()})},function(t){_.trigger(d.default.KEY_SESSION_REMOVED,{data:null,error:"Error removing session ("+e.getSessionID()+"). "+t.name})})},closeKeySession:function(e){r(e).catch(function(t){n(e),_.trigger(d.default.KEY_SESSION_CLOSED,{data:null,error:"Error closing session ("+e.getSessionID()+") "+t.name})})},reset:function(){var e,t=p.length;if(0!==t)for(var a=function(e){n(e),0===p.length&&(g?(g.removeEventListener("encrypted",m),g.setMediaKeys(null).then(function(){_.trigger(d.default.TEARDOWN_COMPLETE)})):_.trigger(d.default.TEARDOWN_COMPLETE))},i=0;t>i;i++)(function(t){e.session.closed.then(function(){a(t)}),r(e).catch(function(){a(t)})})(e=p[i]);else _.trigger(d.default.TEARDOWN_COMPLETE)}},c=null,g=null,h=null,p=[],v=(0,i.default)(y).getInstance(),m={handleEvent:function(e){if("encrypted"===e.type&&e.initData){var t=ArrayBuffer.isView(e.initData)?e.initData.buffer:e.initData;_.trigger(d.default.NEED_KEY,{key:new o.default(t,e.initDataType)})}}},f}Object.defineProperty(r,"__esModule",{value:!0});var i=n(e("../controllers/ProtectionKeyController.js")),o=n(e("../vo/NeedKey.js")),s=n(e("../vo/KeyError.js")),u=n(e("../vo/KeyMessage.js")),l=n(e("../vo/KeySystemAccess.js")),d=n(e("../../../core/events/Events.js")),f=n(e("../../../core/FactoryMaker.js"));a.__dashjs_factory_name="ProtectionModel_21Jan2015",r.default=f.default.getClassFactory(a),t.exports=r.default},{"../../../core/FactoryMaker.js":9,"../../../core/events/Events.js":11,"../controllers/ProtectionKeyController.js":98,"../vo/KeyError.js":110,"../vo/KeyMessage.js":111,"../vo/KeySystemAccess.js":113,"../vo/NeedKey.js":116}],104:[function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function a(e){function t(e){var t=e.session;t.removeEventListener(h.error,e),t.removeEventListener(h.message,e),t.removeEventListener(h.ready,e),t.removeEventListener(h.close,e);for(var r=0;r<_.length;r++)if(_[r]===e){_.splice(r,1);break}t[h.release]()}function r(){var e=null,t=function(){p.removeEventListener("loadedmetadata",e),p[h.setMediaKeys](v),c.trigger(f.default.VIDEO_ELEMENT_SELECTED)};p.readyState>=1?t():(e=t.bind(this),p.addEventListener("loadedmetadata",e))}var n,a=this.context,c=e.eventBus,g=e.log,h=e.api,p=void 0,m=void 0,v=void 0,y=void 0,_=void 0,E=void 0,T=void 0;return n={getAllInitData:function(){for(var e=[],t=0;t<_.length;t++)e.push(_[t].initData);return e},requestKeySystemAccess:function(e){for(var t=!1,r=0;r<e.length;r++)for(var n=e[r].ks.systemString,a=e[r].configs,i=null,o=null,s=0;s<a.length;s++){var u=a[s].audioCapabilities,g=a[s].videoCapabilities;if(u&&0!==u.length){i=[];for(var p=0;p<u.length;p++)window[h.MediaKeys].isTypeSupported(n,u[p].contentType)&&i.push(u[p])}if(g&&0!==g.length){o=[];for(var m=0;m<g.length;m++)window[h.MediaKeys].isTypeSupported(n,g[m].contentType)&&o.push(g[m])}if(!(!i&&!o||i&&0===i.length||o&&0===o.length)){t=!0;var v=new l.default(i,o),y=T.getKeySystemBySystemString(n);c.trigger(f.default.KEY_SYSTEM_ACCESS_COMPLETE,{data:new d.default(y,v)});break}}t||c.trigger(f.default.KEY_SYSTEM_ACCESS_COMPLETE,{error:"Key system access denied! -- No valid audio/video content configurations detected!"})},getKeySystem:function(){return m},selectKeySystem:function(e){try{v=e.mediaKeys=new window[h.MediaKeys](e.keySystem.systemString),m=e.keySystem,y=e,p&&r(),c.trigger(f.default.INTERNAL_KEY_SYSTEM_SELECTED)}catch(e){c.trigger(f.default.INTERNAL_KEY_SYSTEM_SELECTED,{error:"Error selecting keys system ("+m.systemString+")! Could not create MediaKeys -- TODO"})}},setMediaElement:function(e){p!==e&&(p&&p.removeEventListener(h.needkey,E),(p=e)&&(p.addEventListener(h.needkey,E),v&&r()))},createKeySession:function(e){if(!m||!v||!y)throw new Error("Can not create sessions until you have selected a key system");var t=null;if(null!==y.ksConfiguration.videoCapabilities&&y.ksConfiguration.videoCapabilities.length>0&&(t=y.ksConfiguration.videoCapabilities[0]),null===t&&null!==y.ksConfiguration.audioCapabilities&&y.ksConfiguration.audioCapabilities.length>0&&(t=y.ksConfiguration.audioCapabilities[0]),null===t)throw new Error("Can not create sessions for unknown content types.");var r=t.contentType,n=v.createSession(r,new Uint8Array(e)),a=function(e,t){return{session:e,initData:t,getSessionID:function(){return this.session.sessionId},getExpirationTime:function(){return NaN},getSessionType:function(){return"temporary"},handleEvent:function(e){switch(e.type){case h.error:c.trigger(f.default.KEY_ERROR,{data:new s.default(this,"KeyError")});break;case h.message:var t=ArrayBuffer.isView(e.message)?e.message.buffer:e.message;c.trigger(f.default.INTERNAL_KEY_MESSAGE,{data:new u.default(this,t,e.destinationURL)});break;case h.ready:g("DRM: Key added."),c.trigger(f.default.KEY_ADDED);break;case h.close:g("DRM: Session closed.  SessionID="+this.getSessionID()),c.trigger(f.default.KEY_SESSION_CLOSED,{data:this.getSessionID()})}}}}(n,e);n.addEventListener(h.error,a),n.addEventListener(h.message,a),n.addEventListener(h.ready,a),n.addEventListener(h.close,a),_.push(a),g("DRM: Session created.  SessionID="+a.getSessionID()),c.trigger(f.default.KEY_SESSION_CREATED,{data:a})},updateKeySession:function(e,t){var r=e.session;T.isClearKey(m)?r.update(new Uint8Array(t.toJWK())):r.update(new Uint8Array(t))},closeKeySession:t,setServerCertificate:function(){},loadKeySession:function(){},removeKeySession:function(){},reset:function(){try{for(var e=0;e<_.length;e++)t(_[e]);p&&p.removeEventListener(h.needkey,E),c.trigger(f.default.TEARDOWN_COMPLETE)}catch(e){c.trigger(f.default.TEARDOWN_COMPLETE,{error:"Error tearing down key sessions and MediaKeys! -- "+e.message})}}},p=null,m=null,v=null,y=null,_=[],T=(0,i.default)(a).getInstance(),E={handleEvent:function(e){if(e.type===h.needkey&&e.initData){var t=ArrayBuffer.isView(e.initData)?e.initData.buffer:e.initData;c.trigger(f.default.NEED_KEY,{key:new o.default(t,"cenc")})}}},n}Object.defineProperty(r,"__esModule",{value:!0});var i=n(e("../controllers/ProtectionKeyController.js")),o=n(e("../vo/NeedKey.js")),s=n(e("../vo/KeyError.js")),u=n(e("../vo/KeyMessage.js")),l=n(e("../vo/KeySystemConfiguration.js")),d=n(e("../vo/KeySystemAccess.js")),f=n(e("../../../core/events/Events.js")),c=n(e("../../../core/FactoryMaker.js"));a.__dashjs_factory_name="ProtectionModel_3Feb2014",r.default=c.default.getClassFactory(a),t.exports=r.default},{"../../../core/FactoryMaker.js":9,"../../../core/events/Events.js":11,"../controllers/ProtectionKeyController.js":98,"../vo/KeyError.js":110,"../vo/KeyMessage.js":111,"../vo/KeySystemAccess.js":113,"../vo/KeySystemConfiguration.js":114,"../vo/NeedKey.js":116}],105:[function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function a(){return{getServerURLFromMessage:function(e,t){var r=JSON.parse(String.fromCharCode.apply(null,new Uint8Array(t)));e+="/?";for(var n=0;n<r.kids.length;n++)e+=r.kids[n]+"&";return e.substring(0,e.length-1)},getHTTPMethod:function(){return"GET"},getResponseType:function(){return"json"},getLicenseMessage:function(e){if(!e.hasOwnProperty("keys"))return null;for(var t=[],r=0;r<e.keys.length;r++){var n=e.keys[r],a=n.kid.replace(/=/g,""),s=n.k.replace(/=/g,"");t.push(new i.default(a,s))}return new o.default(t)},getErrorResponse:function(e){return String.fromCharCode.apply(null,new Uint8Array(e))}}}Object.defineProperty(r,"__esModule",{value:!0});var i=n(e("../vo/KeyPair.js")),o=n(e("../vo/ClearKeyKeySet.js")),s=n(e("../../../core/FactoryMaker.js"));a.__dashjs_factory_name="ClearKey",r.default=s.default.getSingletonFactory(a),t.exports=r.default},{"../../../core/FactoryMaker.js":9,"../vo/ClearKeyKeySet.js":109,"../vo/KeyPair.js":112}],106:[function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function a(){var e={"com.widevine.alpha":{responseType:"json",getLicenseMessage:function(e){return o.default.decodeArray(e.license)},getErrorResponse:function(e){return e}},"com.microsoft.playready":{responseType:"arraybuffer",getLicenseMessage:function(e){return e},getErrorResponse:function(e){return String.fromCharCode.apply(null,new Uint8Array(e))}}};return{getServerURLFromMessage:function(e){return e},getHTTPMethod:function(){return"POST"},getResponseType:function(t){return e[t].responseType},getLicenseMessage:function(t,r){return e[r].getLicenseMessage(t)},getErrorResponse:function(t,r){return e[r].getErrorResponse(t)}}}Object.defineProperty(r,"__esModule",{value:!0});var i=n(e("../../../core/FactoryMaker.js")),o=n(e("../../../../externals/base64.js"));a.__dashjs_factory_name="DRMToday",r.default=i.default.getSingletonFactory(a),t.exports=r.default},{"../../../../externals/base64.js":1,"../../../core/FactoryMaker.js":9}],107:[function(e,t,r){"use strict";function n(){return{getServerURLFromMessage:function(e){return e},getHTTPMethod:function(){return"POST"},getResponseType:function(){return"arraybuffer"},getLicenseMessage:function(e){return e},getErrorResponse:function(e){return String.fromCharCode.apply(null,new Uint8Array(e))}}}Object.defineProperty(r,"__esModule",{value:!0});var a=function(e){return e&&e.__esModule?e:{default:e}}(e("../../../core/FactoryMaker.js"));n.__dashjs_factory_name="PlayReady",r.default=a.default.getSingletonFactory(n),t.exports=r.default},{"../../../core/FactoryMaker.js":9}],108:[function(e,t,r){"use strict";function n(){return{getServerURLFromMessage:function(e){return e},getHTTPMethod:function(){return"POST"},getResponseType:function(){return"arraybuffer"},getLicenseMessage:function(e){return e},getErrorResponse:function(e){return String.fromCharCode.apply(null,new Uint8Array(e))}}}Object.defineProperty(r,"__esModule",{value:!0});var a=function(e){return e&&e.__esModule?e:{default:e}}(e("../../../core/FactoryMaker.js"));n.__dashjs_factory_name="Widevine",r.default=a.default.getSingletonFactory(n),t.exports=r.default},{"../../../core/FactoryMaker.js":9}],109:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),a=function(){function e(t,r){if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),r&&"persistent"!==r&&"temporary"!==r)throw new Error("Invalid ClearKey key set type!  Must be one of 'persistent' or 'temporary'");this.keyPairs=t,this.type=r}return n(e,[{key:"toJWK",value:function(){var e,t=this.keyPairs.length,r={keys:[]};for(e=0;t>e;e++){var n={kty:"oct",alg:"A128KW",kid:this.keyPairs[e].keyID,k:this.keyPairs[e].key};r.keys.push(n)}this.type&&(r.type=this.type);var a=JSON.stringify(r),i=a.length,o=new ArrayBuffer(i),s=new Uint8Array(o);for(e=0;i>e;e++)s[e]=a.charCodeAt(e);return o}}]),e}();r.default=a,t.exports=r.default},{}],110:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=function e(t,r){(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,e),this.sessionToken=t,this.error=r},t.exports=r.default},{}],111:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=function e(t,r,n,a){(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,e),this.sessionToken=t,this.message=r,this.defaultURL=n,this.messageType=a||"license-request"},t.exports=r.default},{}],112:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=function e(t,r){(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,e),this.keyID=t,this.key=r},t.exports=r.default},{}],113:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=function e(t,r){(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,e),this.keySystem=t,this.ksConfiguration=r},t.exports=r.default},{}],114:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=function e(t,r,n,a,i){(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,e),this.initDataTypes=["cenc"],this.audioCapabilities=t,this.videoCapabilities=r,this.distinctiveIdentifier=n,this.persistentState=a,this.sessionTypes=i},t.exports=r.default},{}],115:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=function e(t,r){(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,e),this.contentType=t,this.robustness=r},t.exports=r.default},{}],116:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=function e(t,r){(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,e),this.initData=t,this.initDataType=r},t.exports=r.default},{}],117:[function(e,t,r){"use strict";function n(e){var t=e.streamProcessor.getCurrentRepresentationInfo(),r=e.streamProcessor,n=e.currentValue;return{getStreamInfo:function(){return t.mediaInfo.streamInfo},getMediaInfo:function(){return t.mediaInfo},getTrackInfo:function(){return t},getCurrentValue:function(){return n},getManifestInfo:function(){return t.mediaInfo.streamInfo.manifestInfo},getStreamProcessor:function(){return r}}}Object.defineProperty(r,"__esModule",{value:!0});var a=function(e){return e&&e.__esModule?e:{default:e}}(e("../../core/FactoryMaker.js"));n.__dashjs_factory_name="RulesContext",r.default=a.default.getClassFactory(n),t.exports=r.default},{"../../core/FactoryMaker.js":9}],118:[function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function a(){function e(e,r){return(0,i.default)(t).create({streamProcessor:e,currentValue:r})}var t=this.context,r=void 0;return{initialize:function(){r={}},setConfig:function(e){e&&(e.abrRulesCollection&&(r[d]=e.abrRulesCollection),e.synchronizationRulesCollection&&(r[f]=e.synchronizationRulesCollection))},applyRules:function(t,r,n,a,i){var s,u={},l=t.length,d=l,f=e(r,a),c=function(e){var t,r;e.value!==o.default.NO_CHANGE&&(u[e.priority]=i(u[e.priority],e.value)),--l||(u[o.default.WEAK]!==o.default.NO_CHANGE&&(r=o.default.WEAK,t=u[o.default.WEAK]),u[o.default.DEFAULT]!==o.default.NO_CHANGE&&(r=o.default.DEFAULT,t=u[o.default.DEFAULT]),u[o.default.STRONG]!==o.default.NO_CHANGE&&(r=o.default.STRONG,t=u[o.default.STRONG]),r!=o.default.STRONG&&r!=o.default.WEAK&&(r=o.default.DEFAULT),n({value:void 0!==t?t:a,confidence:r}))};for(u[o.default.STRONG]=o.default.NO_CHANGE,u[o.default.WEAK]=o.default.NO_CHANGE,u[o.default.DEFAULT]=o.default.NO_CHANGE,s=0;d>s;s++)t[s].execute(f,c)},reset:function(){var e,t,n=r[d],a=r[f],i=(n.getRules(s.default.QUALITY_SWITCH_RULES)||[]).concat(n.getRules(s.default.ABANDON_FRAGMENT_RULES)||[]).concat(a.getRules(u.default.TIME_SYNCHRONIZED_RULES)||[]).concat(a.getRules(u.default.BEST_GUESS_RULES)||[]),o=i.length;for(t=0;o>t;t++)"function"==typeof(e=i[t]).reset&&e.reset();r={}}}}Object.defineProperty(r,"__esModule",{value:!0});var i=n(e("./RulesContext.js")),o=n(e("./SwitchRequest.js")),s=n(e("./abr/ABRRulesCollection.js")),u=n(e("./synchronization/SynchronizationRulesCollection.js")),l=n(e("../../core/FactoryMaker.js")),d=0,f=1;a.__dashjs_factory_name="RulesController";var c=l.default.getSingletonFactory(a);c.ABR_RULE=d,c.SYNC_RULE=f,r.default=c,t.exports=r.default},{"../../core/FactoryMaker.js":9,"./RulesContext.js":117,"./SwitchRequest.js":119,"./abr/ABRRulesCollection.js":120,"./synchronization/SynchronizationRulesCollection.js":133}],119:[function(e,t,r){"use strict";function n(e,t){return{value:void 0===e?i:e,priority:void 0===t?o:t}}Object.defineProperty(r,"__esModule",{value:!0});var a=function(e){return e&&e.__esModule?e:{default:e}}(e("../../core/FactoryMaker.js")),i=999,o=.5;n.__dashjs_factory_name="SwitchRequest";var s=a.default.getClassFactory(n);s.NO_CHANGE=i,s.DEFAULT=o,s.STRONG=1,s.WEAK=0,r.default=s,t.exports=r.default},{"../../core/FactoryMaker.js":9}],120:[function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function a(){var e=this.context,t=void 0,r=void 0;return{initialize:function(){t=[],r=[];var n=(0,c.default)(e).getInstance(),a=(0,g.default)(e).getInstance();(0,f.default)(e).getInstance().getBufferOccupancyABREnabled()?(t.push((0,l.default)(e).create({metricsModel:n,dashMetrics:(0,g.default)(e).getInstance()})),r.push((0,d.default)(e).create({metricsModel:n,dashMetrics:(0,g.default)(e).getInstance()}))):(t.push((0,i.default)(e).create({metricsModel:n,dashMetrics:a})),t.push((0,o.default)(e).create({metricsModel:n,dashMetrics:a})),t.push((0,s.default)(e).create({metricsModel:n})),r.push((0,u.default)(e).create()))},getRules:function(e){switch(e){case p:return t;case m:return r;default:return null}}}}Object.defineProperty(r,"__esModule",{value:!0});var i=n(e("./ThroughputRule.js")),o=n(e("./BufferOccupancyRule.js")),s=n(e("./InsufficientBufferRule.js")),u=n(e("./AbandonRequestsRule.js")),l=n(e("./BolaRule.js")),d=n(e("./BolaAbandonRule.js")),f=n(e("../../models/MediaPlayerModel.js")),c=n(e("../../models/MetricsModel.js")),g=n(e("../../../dash/DashMetrics.js")),h=n(e("../../../core/FactoryMaker.js")),p="qualitySwitchRules",m="abandonFragmentRules";a.__dashjs_factory_name="ABRRulesCollection";var v=h.default.getSingletonFactory(a);v.QUALITY_SWITCH_RULES=p,v.ABANDON_FRAGMENT_RULES=m,r.default=v,t.exports=r.default},{"../../../core/FactoryMaker.js":9,"../../../dash/DashMetrics.js":15,"../../models/MediaPlayerModel.js":90,"../../models/MetricsModel.js":91,"./AbandonRequestsRule.js":121,"./BolaAbandonRule.js":122,"./BolaRule.js":123,"./BufferOccupancyRule.js":124,"./InsufficientBufferRule.js":125,"./ThroughputRule.js":126}],121:[function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function a(){var e,t=this.context,r=(0,u.default)(t).getInstance().log,n=void 0,a=void 0,s=void 0;return e={execute:function(e,o){var u,f=(new Date).getTime(),c=e.getMediaInfo(),g=c.type,h=e.getCurrentValue(),p=e.getTrackInfo(),m=h.request,v=e.getStreamProcessor().getABRController(),y=(0,i.default)(t).create(i.default.NO_CHANGE,i.default.WEAK);if(!isNaN(m.index)){if(function(e,t){n[e]=n[e]||{},n[e][t]=n[e][t]||{}}(g,m.index),null===(u=n[g][m.index])||null===m.firstByteDate||a.hasOwnProperty(u.id))return void o(y);if(void 0===u.firstByteTime&&(u.firstByteTime=m.firstByteDate.getTime(),u.segmentDuration=m.duration,u.bytesTotal=m.bytesTotal,u.id=m.index),u.bytesLoaded=m.bytesLoaded,u.elapsedTime=f-u.firstByteTime,u.bytesLoaded<u.bytesTotal&&u.elapsedTime>=l){if(u.measuredBandwidthInKbps=Math.round(8*u.bytesLoaded/u.elapsedTime),u.estimatedTimeOfDownload=(8*u.bytesTotal*.001/u.measuredBandwidthInKbps).toFixed(2),u.estimatedTimeOfDownload<u.segmentDuration*d||0===p.quality)return void o(y);if(!a.hasOwnProperty(u.id)){var _=v.getQualityForBitrate(c,u.measuredBandwidthInKbps*s.getBandwidthSafetyFactor());y=(0,i.default)(t).create(_,i.default.STRONG),a[u.id]=u,r("AbandonRequestsRule(",g,"frag id",u.id,") is asking to abandon and switch to quality to ",_," measured bandwidth was",u.measuredBandwidthInKbps),delete n[g][u.id]}}else u.bytesLoaded===u.bytesTotal&&delete n[g][u.id]}o(y)},reset:function(){n={},a={}}},n={},a={},s=(0,o.default)(t).getInstance(),e}Object.defineProperty(r,"__esModule",{value:!0});var i=n(e("../SwitchRequest.js")),o=n(e("../../models/MediaPlayerModel.js")),s=n(e("../../../core/FactoryMaker.js")),u=n(e("../../../core/Debug.js")),l=500,d=1.5;a.__dashjs_factory_name="AbandonRequestsRule",r.default=s.default.getClassFactory(a),t.exports=r.default},{"../../../core/Debug.js":7,"../../../core/FactoryMaker.js":9,"../../models/MediaPlayerModel.js":90,"../SwitchRequest.js":119}],122:[function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function a(e){function t(e,t,r){f[e]={index:t,quality:r}}var r,n=this.context,a=(0,u.default)(n).getInstance().log,s=e.dashMetrics,d=e.metricsModel,f=void 0;return r={execute:function(e,r){var o=e.getMediaInfo().type,u=d.getReadOnlyMetricsFor(o),c=e.getCurrentValue().request,g=(0,i.default)(n).create(i.default.NO_CHANGE,i.default.WEAK);if(0===u.BolaState.length||u.BolaState[0]._s.state!==l.default.BOLA_STATE_STEADY)return f={},void r(g);var h=u.BolaState[0]._s,p=c.index,m=c.quality;if(!isNaN(p)&&0!==m&&function(e,t,r){var n=f[e];return!n||t>n.index||t==n.index&&r<n.quality}(o,p,m)&&c.firstByteDate){var v=(new Date).getTime()-c.firstByteDate.getTime(),y=c.bytesLoaded,_=c.bytesTotal,E=_-y,T=c.duration,M=s.getCurrentBufferLevel(u)?s.getCurrentBufferLevel(u):0,S=8e3*h.bandwidthSafetyFactor*y/v,R=.001*(c.firstByteDate.getTime()-c.requestStartDate.getTime());.2>R&&(R=.2);var I="index="+p+" quality="+m+" bytesLoaded/bytesTotal="+y+"/"+_+" bufferLevel="+M+" timeSince1stByte="+(v/1e3).toFixed(3)+" estThroughput="+(S/1e6).toFixed(3)+" latency="+R.toFixed(3),C=_*h.bitrate[0]/h.bitrate[m],A=E-R*S/8;if(1>A&&(A=1),500>v||C>=E||M>h.bufferTarget||C>=A||T>=8*_/S)r(g);else{if(h.safetyGuarantee&&M<=h.fragmentDuration&&h.state===l.default.BOLA_STATE_STEADY)return h.lastQuality=0,d.updateBolaState(o,h),t(o,p,m),g=(0,i.default)(n).create(0,i.default.STRONG),l.default.BOLA_DEBUG&&a("BolaDebug "+o+" BolaAbandonRule to 0 for safety guarantee - "+I),void r(g);var j=8*E/S,D=m;if(j>M)for(--D;D>0&&!(M>=(j=R+8*(C=_*h.bitrate[D]/h.bitrate[m])/S));)--D;for(var b=M+h.virtualBuffer-R,O=m,P=(h.utility[m]+h.gp-b/h.Vp)/A,w=0;m>w&&!((C=_*h.bitrate[w]/h.bitrate[m])>A);++w){var N=(h.utility[w]+h.gp-b/h.Vp)/C;N>P&&(O=w,P=N)}if(O>D&&(O=D),O!==m){for(;O>0&&h.bitrate[O]>S;)--O;h.lastQuality=O,d.updateBolaState(o,h),t(o,p,m),g=(0,i.default)(n).create(O,i.default.STRONG),l.default.BOLA_DEBUG&&a("BolaDebug "+o+" BolaAbandonRule abandon to "+O+" - "+I),r(g)}else r(g)}}else r(g)},reset:function(){f={}}},f={},(0,o.default)(n).getInstance(),r}Object.defineProperty(r,"__esModule",{value:!0});var i=n(e("../SwitchRequest.js")),o=n(e("../../models/MediaPlayerModel.js")),s=n(e("../../../core/FactoryMaker.js")),u=n(e("../../../core/Debug.js")),l=n(e("./BolaRule.js"));a.__dashjs_factory_name="BolaAbandonRule",r.default=s.default.getClassFactory(a),t.exports=r.default},{"../../../core/Debug.js":7,"../../../core/FactoryMaker.js":9,"../../models/MediaPlayerModel.js":90,"../SwitchRequest.js":119,"./BolaRule.js":123}],123:[function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function a(e){function t(){P={},w=[],N=(0,s.default)(C).getInstance(),(0,u.default)(C).getInstance(),x=(0,d.default)(C).getInstance(),b.on(c.default.PLAYBACK_SEEKING,T,O),b.on(c.default.PERIOD_SWITCH_STARTED,M,O)}function r(e){var t={},r=e.getMediaInfo(),n=r.bitrateList.map(function(e){return e.bandwidth}),a=n.length;if(2>a||n[0]>=n[1]||n[a-2]>=n[a-1])return t.state=h,t;var i,o,s=e.getStreamProcessor(),u=e.getStreamInfo(),l=e.getTrackInfo(),d=s.isDynamic(),f=u.manifestInfo.duration,c=l.fragmentDuration;i=N.getStableBufferTime(),o=f>=N.getLongFormContentDurationThreshold()?N.getBufferTimeAtTopQualityLongForm():N.getBufferTimeAtTopQuality();var g=i;c+S>g&&(g=c+S);for(var m=[],v=0;a>v;++v)m.push(Math.log(n[v]/n[0]));var _=(g-c)/m[a-1],E=1+m[a-1]/(g/c-1),T=!d&&g===i;if(T){var M=_,C=E;for(v=1;a>v;++v){var j=M*(C-n[0]*m[v]/(n[v]-n[0])),D=c*(2-n[0]/n[v])+.2;if(D>=i){T=!1;break}D>j&&(C=D/(M*=(i-D)/(i-j))+m[v]*n[0]/(n[v]-n[0]))}T&&S>(i-c)*M/_&&(T=!1),T&&(_=M,E=C)}var b=_*(m[a-1]+E);if(t.state=p,t.bitrate=n,t.utility=m,t.Vp=_,t.gp=E,t.fragmentDuration=c,t.bandwidthSafetyFactor=N.getBandwidthSafetyFactor(),t.bufferTarget=i,t.bufferMax=o,t.bolaBufferTarget=g,t.bolaBufferMax=b,t.isDynamic=d,t.safetyGuarantee=T,t.lastQuality=0,t.virtualBuffer=0,t.throughputCount=d?R:I,y){var O="";for(v=0;v<n.length-1;++v){var P=m[v],w=m[v+1],x=n[v],L=n[v+1],F=_*((P*L-w*x)/(L-x)+E),B=_*(P+E);O+=v+":"+(n[v]/1e6).toFixed(3)+" "+F.toFixed(3)+"/"+B.toFixed(3)+" "}O+=" "+(n.length-1)+":"+(n[n.length-1]/1e6).toFixed(3)+" -/"+(_*(m[n.length-1]+E)).toFixed(3),A("BolaDebug "+r.type+" bitrates "+O)}return t}function n(e,t){for(var r=e.bitrate.length,n=r-1,a=0,i=0;r>i;++i){var o=(e.utility[i]+e.gp-t/e.Vp)/e.bitrate[i];o>a&&(a=o,n=i)}return n}function a(e,t){for(var r=j.getHttpRequests(e),n=[],a=r.length-1;a>=0;--a){var i=r[a];if(i.type===l.default.MEDIA_SEGMENT_TYPE&&i._tfinish&&i.tresponse&&i.trace&&(n.push(i),n.length===t))break}return n}function o(e,t,r){var n=a(e,t);if(0===n.length)return 0;for(var i=0,o="",s=0;s<n.length;++s){var u=.001*(n[s]._tfinish.getTime()-n[s].trequest.getTime()),l=8*n[s].trace.reduce(function(e,t){return e+t.b[0]},0);o+=" "+(l/1e6).toFixed(3)+"/"+u.toFixed(3)+"="+(l/u/1e6).toFixed(3),i+=u/l}return y&&A("BolaDebug "+r+" BolaRule last throughput="+(n.length/i/1e6).toFixed(3)+" :"+o),n.length/i}function _(e,t){for(var r=0,n=1;n<e.bitrate.length&&!(e.bitrate[n]>t);++n)r=n;return r}function E(e,t){var r=a(e,1);if(0===r.length)return 0;var n=r[0],i=(new Date).getTime(),o=n._tfinish.getTime();o>i&&(o=i);var s,u=P[t];return P[t]=i,0>(s=u&&u>o?i-u:i-o)?0:.001*s}function T(){for(var e=0;e<w.length;++e){var t=w[e],r=D.getReadOnlyMetricsFor(t);if(0!==r.BolaState.length){var n=r.BolaState[0]._s;n.state!==h&&(n.state=p),D.updateBolaState(t,n)}}}function M(){}var S=5,R=2,I=3,C=this.context,A=(0,g.default)(C).getInstance().log,j=e.dashMetrics,D=e.metricsModel,b=(0,f.default)(C).getInstance(),O=void 0,P=void 0,w=void 0,N=void 0,x=void 0;return O={execute:function(e,t){var a=e.getStreamProcessor();a.getScheduleController().setTimeToLoadDelay(0);var s=(0,i.default)(C).create(i.default.NO_CHANGE,i.default.WEAK),u=e.getMediaInfo().type,l=D.getReadOnlyMetricsFor(u);if(0===l.BolaState.length){y&&A("BolaDebug "+u+"\nBolaDebug "+u+" BolaRule for state=- fragmentStart="+x.getIndexHandlerTime(e.getStreamProcessor()).toFixed(3));var d=r(e);D.updateBolaState(u,d);var f=0;if(d.state!==h){w.push(u);var c=o(l,d.throughputCount,u);if(0===c)return y&&A("BolaDebug "+u+" BolaRule quality unchanged for INITIALIZE"),void t(s);f=_(d,c*d.bandwidthSafetyFactor),d.lastQuality=f,s=(0,i.default)(C).create(f,i.default.DEFAULT)}return y&&A("BolaDebug "+u+" BolaRule quality "+f+" for INITIALIZE"),void t(s)}var g=l.BolaState[0]._s;if(g.state===h)return y&&A("BolaDebug "+u+" BolaRule quality 0 for ONE_BITRATE"),void t(s);y&&A("BolaDebug "+u+"\nBolaDebug "+u+" EXECUTE BolaRule for state="+g.state+" fragmentStart="+x.getIndexHandlerTime(e.getStreamProcessor()).toFixed(3));var T=j.getCurrentBufferLevel(l)?j.getCurrentBufferLevel(l):0,M=n(g,T),S=o(l,g.throughputCount,u);if(y&&A("BolaDebug "+u+" BolaRule bufferLevel="+T.toFixed(3)+"(+"+g.virtualBuffer.toFixed(3)+") lastThroughput="+(S/1e6).toFixed(3)+" tentativeQuality="+M+","+n(g,T+g.virtualBuffer)),.1>=T&&(g.virtualBuffer=0),!g.safetyGuarantee){var R=E(l,u);R>0&&(g.virtualBuffer+=R),T+g.virtualBuffer>g.bolaBufferMax&&(g.virtualBuffer=g.bolaBufferMax-T),g.virtualBuffer<0&&(g.virtualBuffer=0);var I=n(g,T+g.virtualBuffer);if(I>M){for(var b=M;I>b&&g.bitrate[b+1]*g.fragmentDuration/(S*g.bandwidthSafetyFactor)<T;)++b;if(b>M)if(b>=I)M=I;else{M=b;var O=g.Vp*(g.gp+g.utility[M]);T+g.virtualBuffer>O&&(g.virtualBuffer=O-T,g.virtualBuffer<0&&(g.virtualBuffer=0))}}}if((g.state===p||g.state===m)&&(f=_(g,S*g.bandwidthSafetyFactor),0>=S&&(g.state=v),g.state===p&&f<g.lastQuality&&(g.state=m),g.state===m&&f>g.lastQuality&&(f=g.lastQuality),M>=f&&(g.state=v),g.state!==v))return y&&A("BolaDebug "+u+" BolaRule quality "+f+">"+M+" for STARTUP"),g.lastQuality=f,D.updateBolaState(u,g),void t(s=(0,i.default)(C).create(f,i.default.DEFAULT));var P=0;M>g.lastQuality&&M>(f=_(g,S))&&(f<g.lastQuality?f=g.lastQuality:P=T-g.Vp*(g.utility[f]+g.gp),M=f),P>0&&(P>g.virtualBuffer?(P-=g.virtualBuffer,g.virtualBuffer=0):(g.virtualBuffer-=P,P=0)),P>0&&a.getScheduleController().setTimeToLoadDelay(1e3*P),g.lastQuality=M,D.updateBolaState(u,g),s=(0,i.default)(C).create(M,i.default.DEFAULT),y&&A("BolaDebug "+u+" BolaRule quality "+M+" delay="+P.toFixed(3)+" for STEADY"),t(s)},reset:function(){b.off(c.default.PLAYBACK_SEEKING,T,O),b.off(c.default.PERIOD_SWITCH_STARTED,M,O),t()}},t(),O}Object.defineProperty(r,"__esModule",{value:!0});var i=n(e("../SwitchRequest.js")),o=n(e("../../../core/FactoryMaker.js")),s=n(e("../../models/MediaPlayerModel.js")),u=n(e("../../controllers/PlaybackController.js")),l=n(e("../../vo/metrics/HTTPRequest.js")),d=n(e("../../../dash/DashAdapter.js")),f=n(e("../../../core/EventBus.js")),c=n(e("../../../core/events/Events.js")),g=n(e("../../../core/Debug.js")),h=0,p=1,m=2,v=3,y=!1;a.__dashjs_factory_name="BolaRule";var _=o.default.getClassFactory(a);_.BOLA_STATE_ONE_BITRATE=h,_.BOLA_STATE_STARTUP=p,_.BOLA_STATE_STARTUP_NO_INC=m,_.BOLA_STATE_STEADY=v,_.BOLA_DEBUG=y,r.default=_,t.exports=r.default},{"../../../core/Debug.js":7,"../../../core/EventBus.js":8,"../../../core/FactoryMaker.js":9,"../../../core/events/Events.js":11,"../../../dash/DashAdapter.js":13,"../../controllers/PlaybackController.js":57,"../../models/MediaPlayerModel.js":90,"../../vo/metrics/HTTPRequest.js":166,"../SwitchRequest.js":119}],124:[function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function a(e){var t,r=this.context,n=(0,l.default)(r).getInstance().log,a=e.metricsModel,u=e.dashMetrics,d=void 0,f=void 0;return t={execute:function(e,t){var o=(new Date).getTime()/1e3,l=e.getMediaInfo(),c=e.getTrackInfo(),g=l.type,h=isNaN(c.fragmentDuration)?2:c.fragmentDuration/2,p=e.getCurrentValue(),m=e.getStreamProcessor().getABRController(),v=a.getReadOnlyMetricsFor(g),y=u.getCurrentBufferLevel(v),_=v.BufferState.length>0?v.BufferState[v.BufferState.length-1]:null,E=l.representationCount-1,T=(0,i.default)(r).create(i.default.NO_CHANGE,i.default.WEAK);return h>o-d||m.getAbandonmentStateFor(g)===s.default.ABANDON_LOAD||(null!==_&&y>_.target&&y-_.target>f.getRichBufferThreshold()&&l.representationCount>1&&(T=(0,i.default)(r).create(E,i.default.STRONG)),T.value!==i.default.NO_CHANGE&&T.value!==p&&n("BufferOccupancyRule requesting switch to index: ",T.value,"type: ",g," Priority: ",T.priority===i.default.DEFAULT?"Default":T.priority===i.default.STRONG?"Strong":"Weak")),void t(T)},reset:function(){d=0}},d=0,f=(0,o.default)(r).getInstance(),t}Object.defineProperty(r,"__esModule",{value:!0});var i=n(e("../SwitchRequest.js")),o=n(e("../../models/MediaPlayerModel.js")),s=n(e("../../controllers/AbrController.js")),u=n(e("../../../core/FactoryMaker.js")),l=n(e("../../../core/Debug.js"));a.__dashjs_factory_name="BufferOccupancyRule",r.default=u.default.getClassFactory(a),t.exports=r.default},{"../../../core/Debug.js":7,"../../../core/FactoryMaker.js":9,"../../controllers/AbrController.js":49,"../../models/MediaPlayerModel.js":90,"../SwitchRequest.js":119}],125:[function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function a(e){function t(){c={}}var r=this.context,n=(0,d.default)(r).getInstance().log,a=(0,s.default)(r).getInstance(),l=e.metricsModel,f=void 0,c=void 0,g=void 0,h=void 0;return f={execute:function(e,t){var a=(new Date).getTime(),s=e.getMediaInfo().type,u=e.getCurrentValue(),d=l.getReadOnlyMetricsFor(s),f=d.BufferState.length>0?d.BufferState[d.BufferState.length-1]:null,p=(0,i.default)(r).create(i.default.NO_CHANGE,i.default.WEAK);return h>a-g||null===f||(function(e,t){c[e]=c[e]||{},c[e].state=t,t!==o.default.BUFFER_LOADED||c[e].firstBufferLoadedEvent||(c[e].firstBufferLoadedEvent=!0)}(s,f.state),f.state===o.default.BUFFER_EMPTY&&void 0!==c[s].firstBufferLoadedEvent&&(p=(0,i.default)(r).create(0,i.default.STRONG)),p.value!==i.default.NO_CHANGE&&p.value!==u&&n("InsufficientBufferRule requesting switch to index: ",p.value,"type: ",s," Priority: ",p.priority===i.default.DEFAULT?"Default":p.priority===i.default.STRONG?"Strong":"Weak"),g=a),void t(p)},reset:function(){a.off(u.default.PLAYBACK_SEEKING,t,f),c={},g=0}},c={},g=0,h=1e3,a.on(u.default.PLAYBACK_SEEKING,t,f),f}Object.defineProperty(r,"__esModule",{value:!0});var i=n(e("../SwitchRequest.js")),o=n(e("../../controllers/BufferController.js")),s=n(e("../../../core/EventBus.js")),u=n(e("../../../core/events/Events.js")),l=n(e("../../../core/FactoryMaker.js")),d=n(e("../../../core/Debug.js"));a.__dashjs_factory_name="InsufficientBufferRule",r.default=l.default.getClassFactory(a),t.exports=r.default},{"../../../core/Debug.js":7,"../../../core/EventBus.js":8,"../../../core/FactoryMaker.js":9,"../../../core/events/Events.js":11,"../../controllers/BufferController.js":52,"../SwitchRequest.js":119}],126:[function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function a(e){function t(){v=[],y=(0,u.default)(g).getInstance()}function r(e,t){v[e]=v[e]||[],t!==1/0&&t!==v[e][v[e].length-1]&&v[e].push(t)}function n(e,t){var r=0,n=t?d:c,a=v[e],i=a.length;if(n=n>i?i:n,i>0){for(var o=0,s=i-n;i>s;s++)o+=a[s];r=o/n}return a.length>n&&a.shift(),r/1e3*y.getBandwidthSafetyFactor()}var a,d=2,c=3,g=this.context,h=(0,f.default)(g).getInstance().log,p=e.dashMetrics,m=e.metricsModel,v=void 0,y=void 0;return a={execute:function(e,t){var a,u,d,f=e.getMediaInfo(),c=f.type,v=e.getCurrentValue(),y=m.getReadOnlyMetricsFor(c),_=e.getStreamProcessor(),E=_.getABRController(),T=_.isDynamic(),M=p.getCurrentHttpRequest(y),S=y.BufferState.length>0?y.BufferState[y.BufferState.length-1]:null,R=y.BufferLevel.length>0?y.BufferLevel[y.BufferLevel.length-1]:null,I=(0,i.default)(g).create(i.default.NO_CHANGE,i.default.WEAK);if(y&&M&&M.type===l.default.MEDIA_SEGMENT_TYPE&&S&&R){if(M.trace&&M.trace.length&&(a=(M._tfinish.getTime()-M.tresponse.getTime())/1e3,u=M.trace.reduce(function(e,t){return e+t.b[0]},0),r(c,Math.round(8*u)/a)),d=Math.round(n(c,T)),E.setAverageThroughput(c,d),E.getAbandonmentStateFor(c)!==s.default.ABANDON_LOAD){if(S.state===o.default.BUFFER_LOADED||T){var C=E.getQualityForBitrate(f,d);_.getScheduleController().setTimeToLoadDelay(0),I=(0,i.default)(g).create(C,i.default.DEFAULT)}I.value!==i.default.NO_CHANGE&&I.value!==v&&h("ThroughputRule requesting switch to index: ",I.value,"type: ",c," Priority: ",I.priority===i.default.DEFAULT?"Default":I.priority===i.default.STRONG?"Strong":"Weak","Average throughput",Math.round(d),"kbps")}t(I)}else t(I)},reset:function(){t()}},t(),a}Object.defineProperty(r,"__esModule",{value:!0});var i=n(e("../SwitchRequest.js")),o=n(e("../../controllers/BufferController.js")),s=n(e("../../controllers/AbrController.js")),u=n(e("../../models/MediaPlayerModel.js")),l=n(e("../../vo/metrics/HTTPRequest.js")),d=n(e("../../../core/FactoryMaker.js")),f=n(e("../../../core/Debug.js"));a.__dashjs_factory_name="ThroughputRule",r.default=d.default.getClassFactory(a),t.exports=r.default},{"../../../core/Debug.js":7,"../../../core/FactoryMaker.js":9,"../../controllers/AbrController.js":49,"../../controllers/BufferController.js":52,"../../models/MediaPlayerModel.js":90,"../../vo/metrics/HTTPRequest.js":166,"../SwitchRequest.js":119}],127:[function(e,t,r){"use strict";function n(e){var t=e.blacklistController;return{select:function(e){var r,n=0;return e&&e.some(function(e,r){return n=r,!t.contains(e.serviceLocation)})&&(r=e[n]),r}}}Object.defineProperty(r,"__esModule",{value:!0});var a=function(e){return e&&e.__esModule?e:{default:e}}(e("../../../core/FactoryMaker.js"));n.__dashjs_factory_name="BasicSelector",r.default=a.default.getClassFactory(n),t.exports=r.default},{"../../../core/FactoryMaker.js":9}],128:[function(e,t,r){"use strict";function n(e){var t=e.blacklistController;return{select:function(e){return e&&function(e){var t,r,n=0,a=[],i=0;return r=e.sort(function(e,t){var r=e.dvb_priority-t.dvb_priority;return isNaN(r)?0:r}).filter(function(e,t,r){return!t||r[0].dvb_priority&&e.dvb_priority&&r[0].dvb_priority===e.dvb_priority}),r.length?(r.length>1&&(r.forEach(function(e){n+=e.dvb_weight,a.push(n)}),t=Math.floor(Math.random()*(n-1)),a.every(function(e,r){return i=r,!(e>t)})),r[i]):void 0}(function(e){var r=[];return e.filter(function(e){return!t.contains(e.serviceLocation)||(e.dvb_priority&&r.push(e.dvb_priority),!1)}).filter(function(e){return!r.length||!e.dvb_priority||-1===r.indexOf(e.dvb_priority)})}(e))}}}Object.defineProperty(r,"__esModule",{value:!0});var a=function(e){return e&&e.__esModule?e:{default:e}}(e("../../../core/FactoryMaker.js"));n.__dashjs_factory_name="DVBSelector",r.default=a.default.getClassFactory(n),t.exports=r.default},{"../../../core/FactoryMaker.js":9}],129:[function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function a(e){var t,r=this.context,n=e.dashMetrics,a=e.metricsModel,s=e.textSourceBuffer,u=void 0;return t={execute:function(e){var t=e.getCurrentRepresentationInfo().mediaInfo.type,r=a.getReadOnlyMetricsFor(t);return n.getCurrentBufferLevel(r)<function(e,t){var r=e.getCurrentRepresentationInfo(),n=r.mediaInfo.streamInfo,a=e.getABRController(),i=n.manifestInfo.duration>=u.getLongFormContentDurationThreshold();return"fragmentedText"===t?s.getAllTracksAreDisabled()?0:r.fragmentDuration:a.isPlayingAtTopQuality(n)?i?u.getBufferTimeAtTopQualityLongForm():u.getBufferTimeAtTopQuality():u.getStableBufferTime()}(e,t)},reset:function(){}},u=(0,i.default)(r).getInstance(),(0,o.default)(r).getInstance(),t}Object.defineProperty(r,"__esModule",{value:!0});var i=n(e("../../models/MediaPlayerModel.js")),o=n(e("../../controllers/PlaybackController.js")),s=n(e("../../../core/FactoryMaker.js"));a.__dashjs_factory_name="BufferLevelRule",r.default=s.default.getClassFactory(a),t.exports=r.default},{"../../../core/FactoryMaker.js":9,"../../controllers/PlaybackController.js":57,"../../models/MediaPlayerModel.js":90}],130:[function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function a(e){var t=this.context,r=(0,i.default)(t).getInstance().log,n=e.adapter,a=e.sourceBufferController,o=e.virtualBuffer,s=e.textSourceBuffer;return{execute:function(e){var t=e.getCurrentRepresentationInfo(),i=t.mediaInfo,u=i.type,l=i.streamInfo.id,d=e.getScheduleController(),f=d.getSeekTarget(),c=!isNaN(f),g=!c,h=c?f:n.getIndexHandlerTime(e),p=e.getBuffer(),m=null,v=void 0,y=void 0;if(isNaN(h)||"fragmentedText"===u&&s.getAllTracksAreDisabled())return null;if(c&&d.setSeekTarget(NaN),p&&null!==(m=a.getBufferRange(e.getBuffer(),h))&&(v=o.getChunks({streamId:l,mediaType:u,appended:!0,mediaInfo:i,forRange:m}))&&v.length>0){var _=h;h=v[v.length-1].bufferedRange.end,r("Prior to making a request for time, NextFragmentRequestRule is aligning index handler's currentTime with bufferedRange.end.",_," was changed to ",h)}return(y=n.getFragmentRequestForTime(e,t,h,{keepIdx:g}))&&e.getFragmentModel().isFragmentLoaded(y)&&(y=n.getNextFragmentRequest(e,t)),y&&(n.setIndexHandlerTime(e,y.startTime+y.duration),y.delayLoadingTime=(new Date).getTime()+d.getTimeToLoadDelay(),d.setTimeToLoadDelay(0)),y}}}Object.defineProperty(r,"__esModule",{value:!0});var i=n(e("../../../core/Debug.js")),o=n(e("../../../core/FactoryMaker.js"));a.__dashjs_factory_name="NextFragmentRequestRule",r.default=o.default.getClassFactory(a),t.exports=r.default},{"../../../core/Debug.js":7,"../../../core/FactoryMaker.js":9}],131:[function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function a(e){function t(e,r,n,a){var i;null===a?(i=c.generateFragmentRequestForTime(S,v,e),t(e,r,n,i)):(f.on(s.default.CHECK_FOR_EXISTENCE_COMPLETED,function t(a){f.off(s.default.CHECK_FOR_EXISTENCE_COMPLETED,t,this),a.exists?r(a.request,e):n(a.request,e)},this),M.checkForExistence(a))}function r(e,o){var s,u,l;return y?void a(!1,o):void((s=(l=o-h)>0?h-l:h+Math.abs(l)+m)<p.start&&s>p.end?T((0,i.default)(d).create(null,E)):(u=c.getFragmentRequestForTime(S,v,s,{ignoreIsFinished:!0}),t(s,n,r,u)))}function n(e,r){var n,o,s=e.startTime;if(!y){if(!v.fragmentDuration)return void T((0,i.default)(d).create(s,E));if(y=!0,p.end=s+2*m,r===h)return o=r+_,n=c.getFragmentRequestForTime(S,v,o,{ignoreIsFinished:!0}),void t(o,function(){a(!0,o)},function(){T((0,i.default)(d).create(o,E))},n)}a(!0,r)}function a(e,a){var o;e?p.start=a:p.end=a,Math.floor(p.end-p.start)<=_?T((0,i.default)(d).create(e?a:a-_,E)):t(o=(p.start+p.end)/2,n,r,c.getFragmentRequestForTime(S,v,o,{ignoreIsFinished:!0}))}var u,d=this.context,f=(0,o.default)(d).getInstance(),c=e.adapter,g=e.timelineConverter,h=void 0,p=void 0,m=void 0,v=void 0,y=void 0,_=void 0,E=void 0,T=void 0,M=void 0,S=void 0;return u={execute:function(e,a){var o,s;if(T=a,S=e.getStreamProcessor(),M=S.getFragmentLoader(),v=e.getTrackInfo(),_=v.fragmentDuration,s=v.DVRWindow,h=s.end,v.useCalculatedLiveEdgeTime){var u=g.getExpectedLiveEdge();return g.setExpectedLiveEdge(h),void T((0,i.default)(d).create(u,E))}p={start:Math.max(0,h-l),end:h+l},m=Math.floor((s.end-s.start)/2),o=c.getFragmentRequestForTime(S,v,h,{ignoreIsFinished:!0}),t(h,n,r,o)},reset:function(){h=NaN,p=null,m=NaN,v=null,y=!1,_=NaN,S=null,M=null}},h=NaN,p=null,m=NaN,v=null,y=!1,_=NaN,E=i.default.DEFAULT,u}Object.defineProperty(r,"__esModule",{value:!0});var i=n(e("../SwitchRequest.js")),o=n(e("../../../core/EventBus.js")),s=n(e("../../../core/events/Events.js")),u=n(e("../../../core/FactoryMaker.js")),l=43200;a.__dashjs_factory_name="LiveEdgeBinarySearchRule",r.default=u.default.getClassFactory(a),t.exports=r.default},{"../../../core/EventBus.js":8,"../../../core/FactoryMaker.js":9,"../../../core/events/Events.js":11,"../SwitchRequest.js":119}],132:[function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function a(e){var t=this.context,r=e.timelineConverter;return{execute:function(e,n){var a=e.getTrackInfo(),o=a.DVRWindow.end,s=i.default.DEFAULT;if(a.useCalculatedLiveEdgeTime){var u=r.getExpectedLiveEdge();r.setExpectedLiveEdge(o),n((0,i.default)(t).create(u,s))}else n((0,i.default)(t).create(o,s))}}}Object.defineProperty(r,"__esModule",{value:!0});var i=n(e("../SwitchRequest.js")),o=n(e("../../../core/FactoryMaker.js"));a.__dashjs_factory_name="LiveEdgeWithTimeSynchronizationRule",r.default=o.default.getClassFactory(a),t.exports=r.default},{"../../../core/FactoryMaker.js":9,"../SwitchRequest.js":119}],133:[function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function a(){var e=this.context,t=void 0,r=void 0;return{initialize:function(){r=[],(t=[]).push((0,u.default)(e).create({timelineConverter:(0,o.default)(e).getInstance()})),r.push((0,s.default)(e).create({timelineConverter:(0,o.default)(e).getInstance(),adapter:(0,l.default)(e).getInstance()}))},getRules:function(e){switch(e){case d:return t;case f:return r;default:return null}}}}Object.defineProperty(r,"__esModule",{value:!0});var i=n(e("../../../core/FactoryMaker.js")),o=n(e("../../../dash/utils/TimelineConverter.js")),s=n(e("./LiveEdgeBinarySearchRule.js")),u=n(e("./LiveEdgeWithTimeSynchronizationRule.js")),l=n(e("../../../dash/DashAdapter.js")),d="withAccurateTimeSourceRules",f="bestGuestRules";a.__dashjs_factory_name="SynchronizationRulesCollection";var c=i.default.getSingletonFactory(a);c.TIME_SYNCHRONIZED_RULES=d,c.BEST_GUESS_RULES=f,r.default=c,t.exports=r.default},{"../../../core/FactoryMaker.js":9,"../../../dash/DashAdapter.js":13,"../../../dash/utils/TimelineConverter.js":25,"./LiveEdgeBinarySearchRule.js":131,"./LiveEdgeWithTimeSynchronizationRule.js":132}],134:[function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function a(){var e,t=this.context,r=(0,i.default)(t).getInstance(),n=(0,s.default)(t).getInstance(),a=void 0,f=void 0,h=void 0,p=void 0;return e={chooseSelectorFromManifest:function(e){p=n.getIsDVB(e)?h:f},select:function(e){var t=e.baseUrls,n=e.selectedIdx;if(!isNaN(n))return t[n];var a=p.select(t);return a?(e.selectedIdx=t.indexOf(a),a):void r.trigger(o.default.URL_RESOLUTION_FAILED,{error:new Error(c,g)})},reset:function(){a.reset()}},a=(0,u.default)(t).create({updateEventName:o.default.SERVICE_LOCATION_BLACKLIST_CHANGED,loadFailedEventName:o.default.FRAGMENT_LOADING_COMPLETED}),f=(0,d.default)(t).create({blacklistController:a}),h=(0,l.default)(t).create({blacklistController:a}),p=f,e}Object.defineProperty(r,"__esModule",{value:!0});var i=n(e("../../core/EventBus.js")),o=n(e("../../core/events/Events.js")),s=n(e("../../dash/models/DashManifestModel.js")),u=n(e("../controllers/BlacklistController.js")),l=n(e("../rules/baseUrlResolution/DVBSelector.js")),d=n(e("../rules/baseUrlResolution/BasicSelector.js")),f=n(e("../../core/FactoryMaker.js")),c=1,g="Failed to resolve a valid URL";a.__dashjs_factory_name="BaseURLSelector";var h=f.default.getClassFactory(a);h.URL_RESOLUTION_FAILED_GENERIC_ERROR_CODE=c,h.URL_RESOLUTION_FAILED_GENERIC_ERROR_MESSAGE=g,r.default=h,t.exports=r.default},{"../../core/EventBus.js":8,"../../core/FactoryMaker.js":9,"../../core/events/Events.js":11,"../../dash/models/DashManifestModel.js":19,"../controllers/BlacklistController.js":51,"../rules/baseUrlResolution/BasicSelector.js":127,"../rules/baseUrlResolution/DVBSelector.js":128}],135:[function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function a(){var e=this.context;return{parse:function(t){if(!t)return null;void 0===t.fileStart&&(t.fileStart=0);var r=s.default.parseBuffer(t),n=(0,i.default)(e).create();return n.setData(r),n}}}Object.defineProperty(r,"__esModule",{value:!0});var i=n(e("./IsoFile.js")),o=n(e("../../core/FactoryMaker.js")),s=n(e("codem-isoboxer"));a.__dashjs_factory_name="BoxParser",r.default=o.default.getSingletonFactory(a),t.exports=r.default},{"../../core/FactoryMaker.js":9,"./IsoFile.js":140,"codem-isoboxer":6}],136:[function(e,t,r){"use strict";function n(){var e,t=void 0;return e={supportsMediaSource:function(){var e="WebKitMediaSource"in window,t="MediaSource"in window;return e||t},supportsEncryptedMedia:function(){return t},supportsCodec:function(e,t){var r=e.canPlayType(t);return"probably"===r||"maybe"===r},setEncryptedMediaSupported:function(e){t=e}},t=!1,e}Object.defineProperty(r,"__esModule",{value:!0});var a=function(e){return e&&e.__esModule?e:{default:e}}(e("../../core/FactoryMaker.js"));n.__dashjs_factory_name="Capabilities",r.default=a.default.getSingletonFactory(n),t.exports=r.default},{"../../core/FactoryMaker.js":9}],137:[function(e,t,r){"use strict";function n(){return{customTimeRangeArray:[],length:0,add:function(e,t){var r=0;for(r=0;r<this.customTimeRangeArray.length&&e>this.customTimeRangeArray[r].start;r++);for(this.customTimeRangeArray.splice(r,0,{start:e,end:t}),r=0;r<this.customTimeRangeArray.length-1;r++)this.mergeRanges(r,r+1)&&r--;this.length=this.customTimeRangeArray.length},clear:function(){this.customTimeRangeArray=[],this.length=0},remove:function(e,t){for(var r=0;r<this.customTimeRangeArray.length;r++)if(e<=this.customTimeRangeArray[r].start&&t>=this.customTimeRangeArray[r].end)this.customTimeRangeArray.splice(r,1),r--;else{if(e>this.customTimeRangeArray[r].start&&t<this.customTimeRangeArray[r].end){this.customTimeRangeArray.splice(r+1,0,{start:t,end:this.customTimeRangeArray[r].end}),this.customTimeRangeArray[r].end=e;break}e>this.customTimeRangeArray[r].start&&e<this.customTimeRangeArray[r].end?this.customTimeRangeArray[r].end=e:t>this.customTimeRangeArray[r].start&&t<this.customTimeRangeArray[r].end&&(this.customTimeRangeArray[r].start=t)}this.length=this.customTimeRangeArray.length},mergeRanges:function(e,t){var r=this.customTimeRangeArray[e],n=this.customTimeRangeArray[t];return r.start<=n.start&&n.start<=r.end&&r.end<=n.end?(r.end=n.end,this.customTimeRangeArray.splice(t,1),!0):n.start<=r.start&&r.start<=n.end&&n.end<=r.end?(r.start=n.start,this.customTimeRangeArray.splice(t,1),!0):n.start<=r.start&&r.start<=n.end&&r.end<=n.end?(this.customTimeRangeArray.splice(e,1),!0):r.start<=n.start&&n.start<=r.end&&n.end<=r.end&&(this.customTimeRangeArray.splice(t,1),!0)},start:function(e){return this.customTimeRangeArray[e].start},end:function(e){return this.customTimeRangeArray[e].end}}}Object.defineProperty(r,"__esModule",{value:!0});var a=function(e){return e&&e.__esModule?e:{default:e}}(e("../../core/FactoryMaker.js"));n.__dashjs_factory_name="CustomTimeRanges",r.default=a.default.getClassFactory(n),t.exports=r.default},{"../../core/FactoryMaker.js":9}],138:[function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function a(){function e(e){if(void 0!==g)return g;var t;g=!1;try{"undefined"!=typeof window&&(t=window[e])}catch(e){return i("Warning: DOMStorage access denied: "+e.message),g}if(!t||e!==f&&e!==c)return g;try{t.setItem("1","1"),t.removeItem("1"),g=!0}catch(e){i("Warning: DOMStorage is supported, but cannot be used: "+e.message)}return g}function t(){var e=6e5;return Math.round((new Date).getTime()/e)*e}function r(t,r){return e(t)&&h["get"+r+"CachingInfo"]().enabled}var n,a=this.context,i=(0,s.default)(a).getInstance().log,g=void 0,h=void 0;return n={getSavedBitrateSettings:function(e){var t=NaN;if(r(f,"LastBitrate")){var n=l.replace(/\?/,e),a=JSON.parse(localStorage.getItem(n))||{},o=(new Date).getTime()-parseInt(a.timestamp,10)>=h.getLastBitrateCachingInfo().ttl||!1,s=parseInt(a.bitrate,10);isNaN(s)||o?o&&localStorage.removeItem(n):(t=s,i("Last saved bitrate for "+e+" was "+s))}return t},setSavedBitrateSettings:function(e,n){if(r(f,"LastBitrate")&&n){var a=l.replace(/\?/,e);try{localStorage.setItem(a,JSON.stringify({bitrate:n/1e3,timestamp:t()}))}catch(e){i(e.message)}}},getSavedMediaSettings:function(e){if(!r(f,"LastMediaSettings"))return null;var t=d.replace(/\?/,e),n=JSON.parse(localStorage.getItem(t))||{},a=(new Date).getTime()-parseInt(n.timestamp,10)>=h.getLastMediaSettingsCachingInfo().ttl||!1,i=n.settings;return a&&(localStorage.removeItem(t),i=null),i},setSavedMediaSettings:function(e,n){if(r(f,"LastMediaSettings")){var a=d.replace(/\?/,e);try{localStorage.setItem(a,JSON.stringify({settings:n,timestamp:t()}))}catch(e){i(e.message)}}},isSupported:e},h=(0,o.default)(a).getInstance(),e(f)&&u.forEach(function(e){var t=localStorage.getItem(e.oldKey);if(t){localStorage.removeItem(e.oldKey);try{localStorage.setItem(e.newKey,t)}catch(e){i(e.message)}}}),n}Object.defineProperty(r,"__esModule",{value:!0});var i=n(e("../../core/FactoryMaker.js")),o=n(e("../models/MediaPlayerModel.js")),s=n(e("../../core/Debug.js")),u=[{oldKey:"dashjs_vbitrate",newKey:"dashjs_video_bitrate"},{oldKey:"dashjs_abitrate",newKey:"dashjs_audio_bitrate"},{oldKey:"dashjs_vsettings",newKey:"dashjs_video_settings"},{oldKey:"dashjs_asettings",newKey:"dashjs_audio_settings"}],l="dashjs_?_bitrate",d="dashjs_?_settings",f="localStorage",c="sessionStorage";a.__dashjs_factory_name="DOMStorage";var g=i.default.getSingletonFactory(a);r.default=g,t.exports=r.default},{"../../core/Debug.js":7,"../../core/FactoryMaker.js":9,"../models/MediaPlayerModel.js":90}],139:[function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function a(){var e=this.context,t=(0,i.default)(e).getInstance();return{capabilityError:function(e){t.trigger(o.default.ERROR,{error:"capability",event:e})},downloadError:function(e,r,n){t.trigger(o.default.ERROR,{error:"download",event:{id:e,url:r,request:n}})},manifestError:function(e,r,n){t.trigger(o.default.ERROR,{error:"manifestError",event:{message:e,id:r,manifest:n}})},timedTextError:function(e,r,n){t.trigger(o.default.ERROR,{error:"cc",event:{message:e,id:r,cc:n}})},mediaSourceError:function(e){t.trigger(o.default.ERROR,{error:"mediasource",event:e})},mediaKeySessionError:function(e){t.trigger(o.default.ERROR,{error:"key_session",event:e})},mediaKeyMessageError:function(e){t.trigger(o.default.ERROR,{error:"key_message",event:e})}}}Object.defineProperty(r,"__esModule",{value:!0});var i=n(e("../../core/EventBus.js")),o=n(e("../../core/events/Events.js")),s=n(e("../../core/FactoryMaker.js"));a.__dashjs_factory_name="ErrorHandler";var u=s.default.getSingletonFactory(a);u.CAPABILITY_ERROR_MEDIASOURCE="mediasource",u.CAPABILITY_ERROR_MEDIAKEYS="mediakeys",u.DOWNLOAD_ERROR_ID_MANIFEST="manifest",u.DOWNLOAD_ERROR_ID_SIDX="SIDX",u.DOWNLOAD_ERROR_ID_CONTENT="content",u.DOWNLOAD_ERROR_ID_INITIALIZATION="initialization",u.DOWNLOAD_ERROR_ID_XLINK="xlink",u.MANIFEST_ERROR_ID_CODEC="codec",u.MANIFEST_ERROR_ID_PARSE="parse",u.MANIFEST_ERROR_ID_NOSTREAMS="nostreams",u.TIMED_TEXT_ERROR_ID_PARSE="parse",r.default=u,t.exports=r.default},{"../../core/EventBus.js":8,"../../core/FactoryMaker.js":9,"../../core/events/Events.js":11}],140:[function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function a(){function e(e){for(var t,n=a.fetchAll(e),i=[],o=0,s=n.length;s>o;o++)(t=r(n[o]))&&i.push(t);return i}function t(e,t,r){for(var n in r)t[n]=e[r[n]]}function r(e){if(!e)return null;var r,n,a=new i.default;switch(t(e,a,o),e.hasOwnProperty("_incomplete")&&(a.isComplete=!e._incomplete),a.type){case"sidx":if(t(e,a,s),a.references)for(r=0,n=a.references.length;n>r;r++)t(e.references[r],a.references[r],u);break;case"emsg":t(e,a,l);break;case"mdhd":t(e,a,d);break;case"mfhd":t(e,a,f);break;case"tfhd":t(e,a,c);break;case"tfdt":t(e,a,g);break;case"trun":if(t(e,a,h),a.samples)for(r=0,n=a.samples.length;n>r;r++)t(e.samples[r],a.samples[r],p)}return a}var n,a=void 0,o=void 0,s=void 0,u=void 0,l=void 0,d=void 0,f=void 0,c=void 0,g=void 0,h=void 0,p=void 0;return n={getBox:function(e){return e&&a&&a.boxes&&0!==a.boxes.length?r(a.fetch(e)):null},getBoxes:e,setData:function(e){a=e},getLastBox:function(){if(!a||!a.boxes||!a.boxes.length)return null;var t=e(a.boxes[a.boxes.length-1].type);return t[t.length-1]},getOffset:function(){return a._cursor.offset}},o={offset:"_offset",size:"size",type:"type"},s={references:"references",timescale:"timescale",earliest_presentation_time:"earliest_presentation_time",first_offset:"first_offset"},u={reference_type:"reference_type",referenced_size:"referenced_size",subsegment_duration:"subsegment_duration"},l={id:"id",value:"value",timescale:"timescale",scheme_id_uri:"scheme_id_uri",presentation_time_delta:"presentation_time_delta",event_duration:"event_duration",message_data:"message_data"},d={timescale:"timescale"},f={sequence_number:"sequence_number"},c={base_data_offset:"base_data_offset",sample_description_index:"sample_description_index",default_sample_duration:"default_sample_duration",default_sample_size:"default_sample_size",default_sample_flags:"default_sample_flags",flags:"flags"},g={version:"version",baseMediaDecodeTime:"baseMediaDecodeTime",flags:"flags"},h={sample_count:"sample_count",first_sample_flags:"first_sample_flags",data_offset:"data_offset",flags:"flags",samples:"samples"},p={sample_size:"sample_size",sample_duration:"sample_duration",sample_composition_time_offset:"sample_composition_time_offset"},n}Object.defineProperty(r,"__esModule",{value:!0});var i=n(e("../vo/IsoBox.js")),o=n(e("../../core/FactoryMaker.js"));a.__dashjs_factory_name="IsoFile",r.default=o.default.getClassFactory(a),t.exports=r.default},{"../../core/FactoryMaker.js":9,"../vo/IsoBox.js":152}],141:[function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function a(){function e(){h=!1,p=NaN}function t(e){var t=((new Date).getTime()-p)/1e3;v=e.value,a.trigger(u.default.LIVE_EDGE_SEARCH_COMPLETED,{liveEdge:v,searchTime:t,error:null===v?new o.default(f,"live edge has not been found",null):null})}function r(e){!c.isDynamic()||h||e.error||(y=d.isTimeSyncCompleted()?i.default.TIME_SYNCHRONIZED_RULES:i.default.BEST_GUESS_RULES,m=(0,i.default)(n).getInstance().getRules(y),h=!0,p=(new Date).getTime(),g.applyRules(m,c,t,null,function(e,t){return t}))}var n=this.context,a=(0,s.default)(n).getInstance(),d=void 0,c=void 0,g=void 0,h=void 0,p=void 0,m=void 0,v=void 0,y=void 0;return{initialize:function(e,t){d=e,c=t,h=!1,p=NaN,v=null,g=(0,l.default)(n).getInstance(),y=i.default.BEST_GUESS_RULES,a.on(u.default.STREAM_INITIALIZED,r,this)},abortSearch:e,getLiveEdge:function(){return v},reset:function(){a.off(u.default.STREAM_INITIALIZED,r,this),e(),v=null,d=null,c=null,h=!1,p=NaN,y=null,g=null}}}Object.defineProperty(r,"__esModule",{value:!0});var i=n(e("../rules/synchronization/SynchronizationRulesCollection.js")),o=n(e("../vo/Error.js")),s=n(e("../../core/EventBus.js")),u=n(e("../../core/events/Events.js")),l=n(e("../rules/RulesController.js")),d=n(e("../../core/FactoryMaker.js")),f=1;a.__dashjs_factory_name="LiveEdgeFinder";var c=d.default.getSingletonFactory(a);c.LIVE_EDGE_NOT_FOUND_ERROR_CODE=f,r.default=c,t.exports=r.default},{"../../core/EventBus.js":8,"../../core/FactoryMaker.js":9,"../../core/events/Events.js":11,"../rules/RulesController.js":118,"../rules/synchronization/SynchronizationRulesCollection.js":133,"../vo/Error.js":149}],142:[function(e,t,r){"use strict";function n(){return{areSimpleEquivalent:function(e,t){return JSON.stringify(e)===JSON.stringify(t)}}}Object.defineProperty(r,"__esModule",{value:!0});var a=function(e){return e&&e.__esModule?e:{default:e}}(e("../../core/FactoryMaker.js"));n.__dashjs_factory_name="ObjectUtils",r.default=a.default.getSingletonFactory(n),t.exports=r.default},{"../../core/FactoryMaker.js":9}],143:[function(e,t,r){"use strict";function n(){return{modifyRequestURL:function(e){return e},modifyRequestHeader:function(e){return e}}}Object.defineProperty(r,"__esModule",{value:!0});var a=function(e){return e&&e.__esModule?e:{default:e}}(e("../../core/FactoryMaker.js"));n.__dashjs_factory_name="RequestModifier",r.default=a.default.getSingletonFactory(n),t.exports=r.default},{"../../core/FactoryMaker.js":9}],144:[function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function a(){function e(e){var t,r,n;if(!S.test(e))return NaN;if(t=e.split(":"),r=parseFloat(t[0])*u+parseFloat(t[1])*l+parseFloat(t[2]),t[3]){if(!(n=R.tt.frameRate)||isNaN(n))return NaN;r+=parseFloat(t[3])/n}return r}function t(e,t){var r=Object.keys(e).filter(function(r){return("xmlns"===r.split(":")[0]||"xmlns"===r.split(":")[1])&&e[r]===t}).map(function(e){return e.split(":")[2]||e.split(":")[1]});return 1!=r.length?null:r[0]}function r(e,t){for(var n in e)if(e.hasOwnProperty(n)){if(("object"==typeof e[n]||e[n]instanceof Object)&&!Array.isArray(e[n]))r(e[n],t);else if(Array.isArray(e[n]))for(var a=0;a<e[n].length;a++)r(e[n][a],t);e[n.slice(n.indexOf(t)+t.length+1)]=e[n],delete e[n]}}function n(e){return e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function a(e){var t=e.slice(1).match(/.{2}/g),r=parseFloat(parseInt(parseInt(t[3],16)/255*1e3,10)/1e3),n=t.slice(0,3).map(function(e){return parseInt(e,16)});return"rgba("+n.join(",")+","+r+");"}function i(e,t){for(var r=0;r<t.length;r++)if(t[r].indexOf(e)>-1)return!0;return!1}function d(e,t){for(var r=0;r<t.length;r++)if(t[r].indexOf(e)>-1)return t[r];return null}function f(e,t){t.splice(t.indexOf(d(e,t)),1)}function c(e,t){for(var r=0;r<e.length;r++)for(var n=0;n<t.length;n++)e[r]&&e[r].split(":")[0].indexOf(t[n].split(":")[0])>-1&&e.splice(r,1);return e.concat(t)}function g(e,t){var r=[];return e.match(/\S+/g).forEach(function(e){var o=function(e,t){for(var r=0;r<e.length;r++){var n=e[r];if(n["xml:id"]===t||n.id===t)return n}return null}(I,e);if(o){var s=function(e,t){var r,o=[];for(var s in e)if(e.hasOwnProperty(s)){var u=s.replace("ebutts:","");e[u=n(u=(u=u.replace("xml:","")).replace("tts:",""))]=e[s],delete e[s]}if("line-padding"in e){var l=parseFloat(e["line-padding"].slice(e["line-padding"].indexOf(":")+1,e["line-padding"].indexOf("c")));"id"in e&&(D[e.id]=l);var d=l*t[0]+"px;";o.push("padding-left:"+d),o.push("padding-right:"+d)}if("font-size"in e){var c=parseFloat(e["font-size"].slice(e["font-size"].indexOf(":")+1,e["font-size"].indexOf("%")));"id"in e&&(A[e.id]=c);var g=c/100*t[1]+"px;";o.push("font-size:"+g)}if("line-height"in e)if("normal"===e["line-height"])o.push("line-height: normal;");else{var h=parseFloat(e["line-height"].slice(e["line-height"].indexOf(":")+1,e["line-height"].indexOf("%")));"id"in e&&(j[e.id]=h);var p=h/100*t[1]+"px;";o.push("line-height:"+p)}return"font-family"in e&&(e["font-family"]in P?o.push(P[e["font-family"]]):o.push("font-family:"+e["font-family"]+";")),"text-align"in e&&e["text-align"]in w&&(o.push(w[e["text-align"]][0]),o.push(w[e["text-align"]][1])),"multi-row-align"in e&&(i("text-align",o)&&"auto"!=e["multi-row-align"]&&f("text-align",o),e["multi-row-align"]in N&&o.push(N[e["multi-row-align"]])),"background-color"in e&&(e["background-color"].indexOf("#")>-1&&e["background-color"].length-1==8?(r=a(e["background-color"]),o.push("background-color: "+r)):o.push("background-color:"+e["background-color"]+";")),"color"in e&&(e.color.indexOf("#")>-1&&e.color.length-1==8?(r=a(e.color),o.push("color: "+r)):o.push("color:"+e.color+";")),"wrap-option"in e&&(e["wrap-option"]in x?o.push(x[e["wrap-option"]]):o.push("white-space:"+e["wrap-option"])),"unicode-bidi"in e&&(e["unicode-bidi"]in L?o.push(L[e["unicode-bidi"]]):o.push("unicode-bidi:"+e["unicode-bidi"])),"font-style"in e&&o.push("font-style:"+e["font-style"]+";"),"font-weight"in e&&o.push("font-weight:"+e["font-weight"]+";"),"direction"in e&&o.push("direction:"+e.direction+";"),"text-decoration"in e&&o.push("text-decoration:"+e["text-decoration"]+";"),R.tt.hasOwnProperty("xml:space")&&"preserve"===R.tt["xml:space"]&&o.push("white-space: pre;"),o}(JSON.parse(JSON.stringify(o)),t);r=r.concat(s)}}),r}function h(e,t){var r=[];for(var a in e){var i=a.replace("tts:","");e[i=n(i=i.replace("xml:",""))]=e[a],i!==a&&delete e[a]}if("extent"in e){var o=e.extent.split(/\s/);r.push("width: "+o[0]+";"),r.push("height: "+o[1]+";")}if("origin"in e){var s=e.origin.split(/\s/);r.push("left: "+s[0]+";"),r.push("top: "+s[1]+";")}if("display-align"in e&&r.push(F[e["display-align"]]),"writing-mode"in e&&r.push(B[e["writing-mode"]]),"style"in e){var u=g(e.style,t);r=r.concat(u)}return"padding"in e&&r.push("padding:"+e.padding+";"),"overflow"in e&&r.push("overflow:"+e.overflow+";"),"show-background"in e&&r.push("show-background:"+e["show-background"]+";"),"id"in e&&r.push("regionID:"+e.id+";"),r}function p(e,t){var r=[];return e.match(/\S+/g).forEach(function(e){var n=function(e,t){for(var r=0;r<e.length;r++){var n=e[r];if(n["xml:id"]===t||n.id===t)return n}return null}(C,e);if(n){var a=h(JSON.parse(JSON.stringify(n)),t);r=r.concat(a)}}),r}function m(e,t){var r=document.createElement("div");return e.forEach(function(e){if(!e.hasOwnProperty("metadata"))if(e.hasOwnProperty("span")){var n=e.span.__children,a=document.createElement("span");if(e.span.hasOwnProperty("style")){var i=g(e.span.style,t);a.className="spanPadding "+e.span.style,a.style.cssText=i.join(" ")}n.forEach(function(e){if(!n.hasOwnProperty("metadata"))if(e.hasOwnProperty("#text")){var t=document.createTextNode(e["#text"]);a.appendChild(t)}else if("br"in e){a.hasChildNodes()&&r.appendChild(a);var i=document.createElement("br");i.className="lineBreak",r.appendChild(i);var o=document.createElement("span");o.className=a.className,o.style.cssText=a.style.cssText,a=o}}),r.appendChild(a)}else if(e.hasOwnProperty("br")){var o=document.createElement("br");o.className="lineBreak",r.appendChild(o)}else if(e.hasOwnProperty("#text")){var s=document.createElement("span");s.textContent=e["#text"],r.appendChild(s)}}),r}function v(e,t,r){var n,a,i=[],o=e.region,s=t.region;return s&&(n=p(s,r)),o?(a=i.concat(p(o,r)),i=n?c(n,a):a):n&&(i=n),_(i,b),i}function y(e,t){var r,n,a,i=[],o=e.style,s=R.tt.body.style,u=R.tt.body.div.style,l="";return s&&(r=g(s,t),l="paragraph "+s),u&&(n=g(u,t),r?(n=c(r,n),l+=" "+u):l="paragraph "+u),o?(a=g(o,t),r&&n?(i=c(n,a),l+=" "+o):r?(i=c(r,a),l+=" "+o):n?(i=c(n,a),l+=" "+o):(i=a,l="paragraph "+o)):r&&!n?i=r:!r&&n&&(i=n),_(i,O),[i,l]}function _(e,t){for(var r in t)t.hasOwnProperty(r)&&(i(r,e)||e.push(r+":"+t[r]))}var E,T=this.context,M=(0,s.default)(T).getInstance().log,S=void 0,R=void 0,I=void 0,C=void 0,A=void 0,j=void 0,D=void 0,b=void 0,O=void 0,P=void 0,w=void 0,N=void 0,x=void 0,L=void 0,F=void 0,B=void 0,k=void 0;return E={parse:function(n,a,s){var u,l,c=void 0,g="",p=new o.default([],"",!1);if(!(R=p.xml_str2json(n)))throw"TTML document could not be parsed";k.getTTMLRenderingDiv()&&(c="html");var _=t(R,"http://www.w3.org/ns/ttml");if(_&&r(R,_),!(u=R.tt))throw"TTML document lacks tt element";if(!(l=u.head))throw"TTML document lacks head element";if(l.layout&&(C=l.layout.region_asArray),l.styling&&(I=l.styling.style_asArray),!u.body)throw"TTML document lacks body element";var E=R.tt.hasOwnProperty("ttp:cellResolution")?R.tt["ttp:cellResolution"].split(" ").map(parseFloat):[32,15],T=k.getElement().clientWidth,S=k.getElement().clientHeight,b=[T/E[0],S/E[1]];O["font-size"]=b[1]+"px;";var P=[];if(C)for(var w=0;w<C.length;w++)P.push(h(JSON.parse(JSON.stringify(C[w])),b));var N=t(R.tt,"http://www.w3.org/ns/ttml#parameter");R.tt.hasOwnProperty(N+":frameRate")&&(R.tt.frameRate=parseInt(R.tt[N+":frameRate"],10));var x=[];if(R.tt.body_asArray[0].__children.forEach(function(t){var r,n,o,u,l=t.div.p_asArray;l&&0!==l.length?l.forEach(function(l){if(l.hasOwnProperty("begin")&&l.hasOwnProperty("end"))r=e(l.begin),n=e(l.end);else{if(!l.span.hasOwnProperty("begin")||!l.span.hasOwnProperty("end"))throw g="TTML document has incorrect timing value";o=e(l.span.begin),u=e(l.span.end)}var h=o||r,p=u||n;if(void 0!==a&&void 0!==s){if(a>p||h>s)return void M("TTML: Cue interval "+h+"-"+p+" outside sample interval "+a+"-"+s+". Dropped");var _=!1,I=h,C=p;a>h&&(_=!0,h=a),p>s&&(_=!0,p=s),_&&M("TTML: Clipped cue "+I+"-"+C+" to "+h+"-"+p)}if(void 0!==l["smpte:backgroundImage"])for(var O=R.tt.head.metadata.image_asArray,w=0;w<O.length;w++)"#"+O[w]["xml:id"]==l["smpte:backgroundImage"]&&x.push({start:h,end:p,id:O[w]["xml:id"],data:"data:image/"+O[w].imagetype.toLowerCase()+";base64, "+O[w].__text,type:"image"});else if("html"===c){j={},D={},A={};var N="";if((l.hasOwnProperty("id")||l.hasOwnProperty("xml:id"))&&(N=l["xml:id"]||l.id),(isNaN(r)||isNaN(n))&&(isNaN(o)||isNaN(u)))throw g="TTML document has incorrect timing value";var L=v(l,t.div,b),F=y(l,b),B=F[1];F=F[0];var k=document.createElement("div");k.className=B;var U=m(l.__children,b);U.className="cueDirUniWrapper",i("unicode-bidi",F)&&(U.style.cssText+=d("unicode-bidi",F),f("unicode-bidi",F)),i("direction",F)&&(U.style.cssText+=d("direction",F),f("direction",F)),i("padding-left",F)&&i("padding-right",F)&&(U.innerHTML=function(e,t){for(var r=d("padding-left",t),n=d("padding-right",t),a=r.concat(" "+n+" "),i="",o="",s="",u=Array.prototype.slice.call(e.children),l=e.getElementsByClassName("lineBreak")[0],f=u.indexOf(l),c=[];-1!=f;)c.push(f),f=u.indexOf(l,f+1);var g="</span>",h="<br>",p='<span class="spanPadding" style="-webkit-box-decoration-break: clone; ';if(c.length)c.forEach(function(e,t){if(0===t){for(var r="",n=0;e>n;n++)i+=u[n].outerHTML,0===n&&(r=a.concat(u[n].style.cssText));i=p+r+'">'+i}for(var l="",d=e+1;d<u.length;d++)o+=u[d].outerHTML,d===u.length-1&&(l+=a.concat(u[d].style.cssText));o=p+l+'">'+o,i&&o&&t===c.length-1?s+=i+g+h+o+g:i&&o&&t!==c.length-1?s+=i+g+h+o+g+h:i&&!o?s+=i+g:!i&&o&&t===c.length-1?s+=o+g:!i&&o&&t!==c.length-1&&(s+=o+g+h)});else{for(var m="",v=0;v<u.length;v++)m+=u[v].style.cssText;s=p+a+m+'">'+e.innerHTML+g}return s}(U,F)),i("padding-left",F)&&i("padding-right",F)&&(f("padding-left",F),f("padding-right",F));var K="";if(i("regionID",L)){var H=d("regionID",L);K=H.slice(H.indexOf(":")+1,H.length-1)}F&&(k.style.cssText=F.join(" ")+"display:flex;"),L&&(L=L.join(" ")),k.appendChild(U);var q=document.createElement("div");q.appendChild(k),q.id="subtitle_"+N,q.style.cssText="position: absolute; margin: 0; display: flex; box-sizing: border-box; pointer-events: none;"+L,0===Object.keys(A).length&&(A.defaultFontSize="100"),x.push({start:h,end:p,type:"html",cueHTMLElement:q,regions:P,regionID:K,cueID:N,videoHeight:S,videoWidth:T,cellResolution:E,fontSize:A||{defaultFontSize:"100"},lineHeight:j,linePadding:D})}else{var Y="",G=l.__children;G.length&&G.forEach(function(e){if(e.hasOwnProperty("span")){var t=e.span.__children;t.forEach(function(e){t.hasOwnProperty("metadata")||(e.hasOwnProperty("#text")?Y+=e["#text"].replace(/[\r\n]+/gm," ").trim():"br"in e&&(Y+="\n"))})}else Y+=e.hasOwnProperty("br")?"\n":e["#text"].replace(/[\r\n]+/gm," ").trim()}),x.push({start:h,end:p,data:Y,type:"text"})}}):g="TTML document does not contain any cues"}),""!==g&&M(g),x.length>0)return x;throw g},setConfig:function(e){e&&e.videoModel&&(k=e.videoModel)}},S=/^([0-9][0-9]+):([0-5][0-9]):([0-5][0-9])|(60)(\.([0-9])+)?$/,A={},j={},D={},b={top:"85%;",left:"5%;",width:"90%;",height:"10%;","align-items":"flex-start;",overflow:"visible;","-ms-writing-mode":"lr-tb, horizontal-tb;","-webkit-writing-mode":"horizontal-tb;","-moz-writing-mode":"horizontal-tb;","writing-mode":"horizontal-tb;"},O={color:"rgb(255,255,255);",direction:"ltr;","font-family":"monospace, sans-serif;","font-style":"normal;","line-height":"normal;","font-weight":"normal;","text-align":"start;","justify-content":"flex-start;","text-decoration":"none;","unicode-bidi":"normal;","white-space":"normal;",width:"100%;"},P={monospace:"font-family: monospace;",sansSerif:"font-family: sans-serif;",serif:"font-family: serif;",monospaceSansSerif:"font-family: monospace, sans-serif;",monospaceSerif:"font-family: monospace, serif;",proportionalSansSerif:"font-family: Arial;",proportionalSerif:"font-family: Times New Roman;",default:"font-family: monospace, sans-serif;"},w={right:["justify-content: flex-end;","text-align: right;"],start:["justify-content: flex-start;","text-align: start;"],center:["justify-content: center;","text-align: center;"],end:["justify-content: flex-end;","text-align: end;"],left:["justify-content: flex-start;","text-align: left;"]},N={start:"text-align: start;",center:"text-align: center;",end:"text-align: end;",auto:""},x={wrap:"white-space: normal;",noWrap:"white-space: nowrap;"},L={normal:"unicode-bidi: normal;",embed:"unicode-bidi: embed;",bidiOverride:"unicode-bidi: bidi-override;"},F={before:"align-items: flex-start;",center:"align-items: center;",after:"align-items: flex-end;"},B={lrtb:"-webkit-writing-mode: horizontal-tb;writing-mode: horizontal-tb;",rltb:"-webkit-writing-mode: horizontal-tb;writing-mode: horizontal-tb;direction: rtl;unicode-bidi: bidi-override;",tbrl:"-webkit-writing-mode: vertical-rl;writing-mode: vertical-rl;-webkit-text-orientation: upright;text-orientation: upright;",tblr:"-webkit-writing-mode: vertical-lr;writing-mode: vertical-lr;-webkit-text-orientation: upright;text-orientation: upright;",lr:"-webkit-writing-mode: horizontal-tb;writing-mode: horizontal-tb;",rl:"-webkit-writing-mode: horizontal-tb;writing-mode: horizontal-tb;direction: rtl;",tb:"-webkit-writing-mode: vertical-rl;writing-mode: vertical-rl;-webkit-text-orientation: upright;text-orientation: upright;"},E}Object.defineProperty(r,"__esModule",{value:!0});var i=n(e("../../core/FactoryMaker.js")),o=n(e("../../../externals/xml2json.js")),s=n(e("../../core/Debug.js")),u=3600,l=60;a.__dashjs_factory_name="TTMLParser",r.default=i.default.getSingletonFactory(a),t.exports=r.default},{"../../../externals/xml2json.js":4,"../../core/Debug.js":7,"../../core/FactoryMaker.js":9}],145:[function(e,t,r){"use strict";function n(){var e=/^(?:(?:[a-z]+:)?\/)?\//i;return{parseBaseUrl:function(e){var t="";return-1!==e.indexOf("/")&&(-1!==e.indexOf("?")&&(e=e.substring(0,e.indexOf("?"))),t=e.substring(0,e.lastIndexOf("/")+1)),t},isRelative:function(t){return!e.test(t)}}}Object.defineProperty(r,"__esModule",{value:!0});var a=function(e){return e&&e.__esModule?e:{default:e}}(e("../../core/FactoryMaker.js"));n.__dashjs_factory_name="URLUtils",r.default=a.default.getSingletonFactory(n),t.exports=r.default},{"../../core/FactoryMaker.js":9}],146:[function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function a(){function e(e){var t=e.split(":"),r=t.length-1;return e=60*parseInt(t[r-1],10)+parseFloat(t[r]),2===r&&(e+=3600*parseInt(t[0],10)),e}function t(e){var t=e.split(l),n=t[1].split(f);return n.shift(),t[1]=n[0],n.shift(),{cuePoints:t,styles:r(n)}}function r(e){var t={};return e.forEach(function(e){if(e.split(/:/).length>1){var r=e.split(/:/)[1];r&&-1!=r.search(/%/)&&(r=parseInt(r.replace(/%/,""),10)),(e.match(/align/)||e.match(/A/))&&(t.align=r),(e.match(/line/)||e.match(/L/))&&(t.line=r),(e.match(/position/)||e.match(/P/))&&(t.position=r),(e.match(/size/)||e.match(/S/))&&(t.size=r)}}),t}function n(e,t){for(var r,n=t,a="",i="";""!==e[n]&&n<e.length;)n++;if((r=n-t)>1)for(var o=0;r>o;o++){if((i=e[t+o]).match(l)){a="";break}a+=i,o!==r-1&&(a+="\n")}else(i=e[t]).match(l)||(a=i);return decodeURI(a)}var a,i=this.context,s=(0,o.default)(i).getInstance().log,u=void 0,l=void 0,d=void 0,f=void 0;return a={parse:function(r){var a,i,o=[];a=(r=r.split(u)).length,i=-1;for(var f=0;a>f;f++){var c=r[f];if(c.length>0&&"WEBVTT"!==c&&c.match(l)){var g=t(c),h=g.cuePoints,p=g.styles,m=n(r,f+1),v=e(h[0].replace(d,"")),y=e(h[1].replace(d,""));!isNaN(v)&&!isNaN(y)&&v>=i&&y>v?""!==m?(i=v,o.push({start:v,end:y,data:m,styles:p})):s("Skipping cue due to empty/malformed cue text"):s("Skipping cue due to incorrect cue timing")}}return o}},u=/(?:\r\n|\r|\n)/gm,l=/-->/,d=/(^[\s]+|[\s]+$)/g,f=/\s\b/g,a}Object.defineProperty(r,"__esModule",{value:!0});var i=n(e("../../core/FactoryMaker.js")),o=n(e("../../core/Debug.js"));a.__dashjs_factory_name="VTTParser",r.default=i.default.getSingletonFactory(a),t.exports=r.default},{"../../core/Debug.js":7,"../../core/FactoryMaker.js":9}],147:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=function e(){(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,e),this.mediaType=null,this.bitrate=null,this.width=null,this.height=null,this.qualityIndex=NaN},t.exports=r.default},{}],148:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=function e(){(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,e),this.streamId=null,this.mediaInfo=null,this.segmentType=null,this.quality=NaN,this.index=NaN,this.bytes=null,this.start=NaN,this.end=NaN,this.duration=NaN},t.exports=r.default},{}],149:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=function e(t,r,n){(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,e),this.code=t||null,this.message=r||null,this.data=n||null},t.exports=r.default},{}],150:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=function e(){(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,e),this.action=e.ACTION_DOWNLOAD,this.startTime=NaN,this.mediaType=null,this.mediaInfo=null,this.type=null,this.duration=NaN,this.timescale=NaN,this.range=null,this.url=null,this.serviceLocation=null,this.requestStartDate=null,this.firstByteDate=null,this.requestEndDate=null,this.quality=NaN,this.index=NaN,this.availabilityStartTime=null,this.availabilityEndTime=null,this.wallStartTime=null,this.bytesLoaded=NaN,this.bytesTotal=NaN,this.delayLoadingTime=NaN,this.responseType="arraybuffer"};n.ACTION_DOWNLOAD="download",n.ACTION_COMPLETE="complete",r.default=n,t.exports=r.default},{}],151:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=function(e){function t(e){(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,t),function(e,t,r){for(var n=!0;n;){var a=e,i=t,o=r;n=!1,null===a&&(a=Function.prototype);var s=Object.getOwnPropertyDescriptor(a,i);if(void 0!==s){if("value"in s)return s.value;var u=s.get;if(void 0===u)return;return u.call(o)}var l=Object.getPrototypeOf(a);if(null===l)return;e=l,t=i,r=o,n=!0,s=l=void 0}}(Object.getPrototypeOf(t.prototype),"constructor",this).call(this),this.url=e||null,this.checkForExistenceOnly=!0}return function(e,t){if("function"!=typeof t&&null!==t)throw new 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),t}(function(e){return e&&e.__esModule?e:{default:e}}(e("./FragmentRequest.js")).default);r.default=n,t.exports=r.default},{"./FragmentRequest.js":150}],152:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=function e(){(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,e),this.offset=NaN,this.type=null,this.size=NaN,this.isComplete=!0},t.exports=r.default},{}],153:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=function e(){(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,e),this.DVRWindowSize=NaN,this.loadedTime=null,this.availableFrom=null,this.minBufferTime=NaN,this.duration=NaN,this.isDynamic=!1,this.maxFragmentDuration=null},t.exports=r.default},{}],154:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=function e(){(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,e),this.id=null,this.index=null,this.type=null,this.streamInfo=null,this.representationCount=0,this.lang=null,this.viewpoint=null,this.accessibility=null,this.audioChannelConfiguration=null,this.roles=null,this.codec=null,this.mimeType=null,this.contentProtection=null,this.isText=!1,this.KID=null,this.bitrateList=null},t.exports=r.default},{}],155:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=function e(){(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,e),this.TcpList=[],this.HttpList=[],this.RepSwitchList=[],this.BufferLevel=[],this.BufferState=[],this.PlayList=[],this.DroppedFrames=[],this.SchedulingInfo=[],this.DVRInfo=[],this.ManifestUpdate=[],this.RequestsQueue=null,this.DVBErrors=[],this.BolaState=[]},t.exports=r.default},{}],156:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=function e(){(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,e),this.id=null,this.index=null,this.start=NaN,this.duration=NaN,this.manifestInfo=null,this.isLast=!0,this.isFirst=!0},t.exports=r.default},{}],157:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=function(e){function t(e,r){(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,t),function(e,t,r){for(var n=!0;n;){var a=e,i=t,o=r;n=!1,null===a&&(a=Function.prototype);var s=Object.getOwnPropertyDescriptor(a,i);if(void 0!==s){if("value"in s)return s.value;var u=s.get;if(void 0===u)return;return u.call(o)}var l=Object.getPrototypeOf(a);if(null===l)return;e=l,t=i,r=o,n=!0,s=l=void 0}}(Object.getPrototypeOf(t.prototype),"constructor",this).call(this),this.url=e||null,this.type=r||null,this.mediaType="stream",this.responseType="text"}return function(e,t){if("function"!=typeof t&&null!==t)throw new 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),t}(function(e){return e&&e.__esModule?e:{default:e}}(e("./FragmentRequest.js")).default);r.default=n,t.exports=r.default},{"./FragmentRequest.js":150}],158:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=function e(){(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,e),this.video=null,this.captionData=null,this.label=null,this.lang=null,this.defaultTrack=!1,this.kind=null,this.isFragmented=!1,this.isEmbedded=!1},t.exports=r.default},{}],159:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=function e(){(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,e),this.id=null,this.quality=null,this.DVRWindow=null,this.fragmentDuration=null,this.mediaInfo=null,this.MSETimeOffset=null},t.exports=r.default},{}],160:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=function e(){(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,e),this.t=null,this.xywh=null,this.track=null,this.id=null,this.s=null},t.exports=r.default},{}],161:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=function e(){(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,e),this._s=void 0},t.exports=r.default},{}],162:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=function e(){(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,e),this.t=null,this.level=null},t.exports=r.default},{}],163:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=function(e){return e&&e.__esModule?e:{default:e}}(e("../../controllers/BufferController.js"));r.default=function e(){(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,e),this.target=null,this.state=n.default.BUFFER_EMPTY},t.exports=r.default},{"../../controllers/BufferController.js":52}],164:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=function e(){(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,e),this.time=null,this.range=null,this.manifestInfo=null},t.exports=r.default},{}],165:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=function e(){(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,e),this.time=null,this.droppedFrames=null},t.exports=r.default},{}],166:[function(e,t,r){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(r,"__esModule",{value:!0});var a=function e(){n(this,e),this.tcpid=null,this.type=null,this.url=null,this.actualurl=null,this.range=null,this.trequest=null,this.tresponse=null,this.responsecode=null,this.interval=null,this.trace=[],this._stream=null,this._tfinish=null,this._mediaduration=null,this._responseHeaders=null,this._serviceLocation=null};a.Trace=function e(){n(this,e),this.s=null,this.d=null,this.b=[]},a.MPD_TYPE="MPD",a.XLINK_EXPANSION_TYPE="XLinkExpansion",a.INIT_SEGMENT_TYPE="InitializationSegment",a.INDEX_SEGMENT_TYPE="IndexSegment",a.MEDIA_SEGMENT_TYPE="MediaSegment",a.BITSTREAM_SWITCHING_SEGMENT_TYPE="BitstreamSwitchingSegment",a.OTHER_TYPE="other",r.default=a,t.exports=r.default},{}],167:[function(e,t,r){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(r,"__esModule",{value:!0});var a=function e(){n(this,e),this.mediaType=null,this.type=null,this.requestTime=null,this.fetchTime=null,this.availabilityStartTime=null,this.presentationStartTime=0,this.clientTimeOffset=0,this.currentTime=null,this.buffered=null,this.latency=0,this.streamInfo=[],this.trackInfo=[]};a.StreamInfo=function e(){n(this,e),this.id=null,this.index=null,this.start=null,this.duration=null},a.TrackInfo=function e(){n(this,e),this.id=null,this.index=null,this.mediaType=null,this.streamIndex=null,this.presentationTimeOffset=null,this.startNumber=null,this.fragmentInfoType=null},r.default=a,t.exports=r.default},{}],168:[function(e,t,r){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(r,"__esModule",{value:!0});var a=function e(){n(this,e),this.start=null,this.mstart=null,this.starttype=null,this.trace=[]};a.Trace=function e(){n(this,e),this.representationid=null,this.subreplevel=null,this.start=null,this.mstart=null,this.duration=null,this.playbackspeed=null,this.stopreason=null},a.INITIAL_PLAYOUT_START_REASON="initial_playout",a.SEEK_START_REASON="seek",a.RESUME_FROM_PAUSE_START_REASON="resume",a.METRICS_COLLECTION_START_REASON="metrics_collection_start",a.Trace.REPRESENTATION_SWITCH_STOP_REASON="representation_switch",a.Trace.REBUFFERING_REASON="rebuffering",a.Trace.USER_REQUEST_STOP_REASON="user_request",a.Trace.END_OF_PERIOD_STOP_REASON="end_of_period",a.Trace.END_OF_CONTENT_STOP_REASON="end_of_content",a.Trace.METRICS_COLLECTION_STOP_REASON="metrics_collection_end",a.Trace.FAILURE_STOP_REASON="failure",r.default=a,t.exports=r.default},{}],169:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=function e(){(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,e),this.t=null,this.mt=null,this.to=null,this.lto=null},t.exports=r.default},{}],170:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=function e(){(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,e),this.loadingRequests=[],this.executedRequests=[]},t.exports=r.default},{}],171:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=function e(){(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,e),this.mediaType=null,this.t=null,this.type=null,this.startTime=null,this.availabilityStartTime=null,this.duration=null,this.quality=null,this.range=null,this.state=null},t.exports=r.default},{}],172:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=function e(){(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,e),this.tcpid=null,this.dest=null,this.topen=null,this.tclose=null,this.tconnect=null},t.exports=r.default},{}]},{},[5]);
(()=>{"use strict";var e,t={4773(e,t,n){n(51609);var a=n(86087),r=n(13554);function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=Array(t);n<t;n++)a[n]=e[n];return a}var o=window.eb_frontend||{},l=o.EBRenderIconWithSVG,s=o.loadSvgIcons,c=function(e){var t,n,a=e.wrapper,i=e._autoplay,o=e._muted,s=a.getAttribute("data-url"),c="true"===a.getAttribute("data-controls"),d="true"===a.getAttribute("data-loop"),u=o||"true"===a.getAttribute("data-muted"),y=i||"true"===a.getAttribute("data-playing"),m="true"===a.getAttribute("data-overlay"),p=a.getAttribute("data-light"),b="true"===a.getAttribute("data-customPlayIcon"),f=a.getAttribute("data-playicon"),v=a.getAttribute("data-customPlayIconType"),g=a.getAttribute("data-customPlayIconLib"),h=a.getAttribute("data-download");if(t=!(!0!==m||!p)&&p,1==m&&1==b&&"image"==v)n=React.createElement("img",{src:f});else if(1==m&&1==b&&"icon"==v)if(l){var w=l(g,"eb-video-play-icon");n=React.createElement("span",{dangerouslySetInnerHTML:{__html:w}})}else n=React.createElement("i",{className:g});else n=null;var k=null!==a.closest(".lightbox"),A={file:{attributes:{controlsList:"false"===h?"nodownload":"",playsInline:!k,webkitPlaysinline:k?void 0:"true",playsinline:k?void 0:"true"}},youtube:{playerVars:{playsinline:k?0:1,modestbranding:1,origin:window.location.origin}},vimeo:{playerOptions:{playsinline:!k,dnt:!0}}};return React.createElement(React.Fragment,null,React.createElement(r.A,{className:"eb-react-player",width:"100%",height:k?"100%":"auto",url:s,controls:c,loop:d,muted:u,playing:y,light:t,playIcon:n,volume:.5,config:A,playsinline:!k,style:{aspectRatio:k?"unset":"16/9"}}))};document.addEventListener("DOMContentLoaded",function(){var e,t=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return i(e,t);var n={}.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)?i(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var a=0,r=function(){};return{s:r,n:function(){return a>=e.length?{done:!0}:{done:!1,value:e[a++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,l=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return l=e.done,e},e:function(e){s=!0,o=e},f:function(){try{l||null==n.return||n.return()}finally{if(s)throw o}}}}(document.getElementsByClassName("eb-advanced-video-wrapper"));try{var n,r,o,l=function(){var t=e.value,i=t.getElementsByClassName("eb-player-option")[0];if(!i)return 1;var l="true"===i.getAttribute("data-overlay"),d=i.getAttribute("data-option"),u=(0,a.createRoot)(i);if(u.render(React.createElement(c,{wrapper:i})),l&&i.addEventListener("click",function(){u.render(React.createElement(c,{wrapper:i,_autoplay:!0,_muted:!1})),s&&setTimeout(function(){s(i)},100)}),s&&setTimeout(function(){s(i)},100),"eb-sticky"===d&&(n=document.querySelector(".eb-player-option.eb-sticky"),setTimeout(function(){var e=document.querySelector(".eb-react-player");if(e){var t=e.offsetHeight,a=i.closest(".eb-sticky").closest(".wp-block-essential-blocks-advanced-video").offsetTop,r=i.querySelector(".eb-sticky-video-close"),o=document.createElement("span");o.innerHTML="&times;",o.setAttribute("class","eb-sticky-video-close");var l="none",s=i.getAttribute("data-stickyVisibility"),c=i.getAttribute("data-stickyVisibilityTAB"),d=i.getAttribute("data-stickyVisibilityMOB"),u=!1;(window.matchMedia("(min-width: 1025px)").matches&&"hidden"!=s||window.matchMedia("(min-width: 768px) and (max-width: 1024px)").matches&&"hidden"!=c||window.matchMedia("(max-width: 767px)").matches&&"hidden"!=d)&&(u=!0),u&&document.addEventListener("scroll",function(){var e=t+a+320,i=window.pageYOffset;i<t+a+200?"none"!==l&&(n.classList.remove("stuck","stuck-out"),l="none",o.style.display="none"):i>e&&"stuck"!==l&&(n.classList.remove("stuck-out"),n.classList.add("stuck"),l="stuck",null==r&&n.prepend(o),o.style.display="inline",o.hasAttribute("data-listener-added")||(o.addEventListener("click",function(){n.classList.remove("eb-sticky"),l="none"}),o.setAttribute("data-listener-added","true")))})}else console.warn("React player element not found")},100)),t.classList.contains("lightbox")){var y=t.getAttribute("data-id"),m=document.querySelector('[data-id="'.concat(y,'"]')),p="#myBtn-"+y;r=m.querySelector(p),o=m.getElementsByClassName("eb-modal-close")[0],r.onclick=function(){var e="#eb-modal-"+this.id.substring(6),t=document.querySelector(e),n=t.getElementsByClassName("lightbox")[0].getAttribute("data-autoplay");t.style.display="block","true"===n&&(u.render(React.createElement(c,{wrapper:i,_autoplay:!0,_muted:!1})),s&&setTimeout(function(){s(i)},100))},o.onclick=function(){var e="#eb-modal-"+this.id.substring(6);document.querySelector(e).style.display="none",u.render(React.createElement(c,{wrapper:i,_autoplay:!1})),s&&setTimeout(function(){s(i)},100)},window.onclick=function(e){e.target.classList.contains("eb-modal-player")&&(document.getElementById(e.target.id).style.display="none",u.render(React.createElement(c,{wrapper:i,_autoplay:!1})),s&&setTimeout(function(){s(i)},100))}}};for(t.s();!(e=t.n()).done;)l()}catch(e){t.e(e)}finally{t.f()}})},51609(e){e.exports=window.React},86087(e){e.exports=window.wp.element}},n={};function a(e){var r=n[e];if(void 0!==r)return r.exports;var i=n[e]={id:e,loaded:!1,exports:{}};return t[e].call(i.exports,i,i.exports,a),i.loaded=!0,i.exports}a.m=t,a.amdO={},e=[],a.O=(t,n,r,i)=>{if(!n){var o=1/0;for(d=0;d<e.length;d++){for(var[n,r,i]=e[d],l=!0,s=0;s<n.length;s++)(!1&i||o>=i)&&Object.keys(a.O).every(e=>a.O[e](n[s]))?n.splice(s--,1):(l=!1,i<o&&(o=i));if(l){e.splice(d--,1);var c=r();void 0!==c&&(t=c)}}return t}i=i||0;for(var d=e.length;d>0&&e[d-1][2]>i;d--)e[d]=e[d-1];e[d]=[n,r,i]},a.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return a.d(t,{a:t}),t},a.d=(e,t)=>{for(var n in t)a.o(t,n)&&!a.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},a.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),a.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},a.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),a.j=6695,(()=>{var e={6695:0};a.O.j=t=>0===e[t];var t=(t,n)=>{var r,i,[o,l,s]=n,c=0;if(o.some(t=>0!==e[t])){for(r in l)a.o(l,r)&&(a.m[r]=l[r]);if(s)var d=s(a)}for(t&&t(n);c<o.length;c++)i=o[c],a.o(e,i)&&e[i]&&e[i][0](),e[i]=0;return a.O(d)},n=globalThis.webpackChunkessential_blocks=globalThis.webpackChunkessential_blocks||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))})(),a.nc=void 0;var r=a.O(void 0,[7916],()=>a(4773));r=a.O(r)})();
(function(){
"use strict";var wp;(wp||={}).domReady=(()=>{var o=Object.defineProperty;var u=Object.getOwnPropertyDescriptor;var a=Object.getOwnPropertyNames;var i=Object.prototype.hasOwnProperty;var f=(e,t)=>{for(var n in t)o(e,n,{get:t[n],enumerable:!0})},m=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let d of a(t))!i.call(e,d)&&d!==n&&o(e,d,{get:()=>t[d],enumerable:!(r=u(t,d))||r.enumerable});return e};var c=e=>m(o({},"__esModule",{value:!0}),e);var p={};f(p,{default:()=>y});function y(e){if(!(typeof document>"u")){if(document.readyState==="complete"||document.readyState==="interactive")return void e();document.addEventListener("DOMContentLoaded",e)}}return c(p);})();
if(typeof wp.domReady==='object'&&wp.domReady.default){ wp.domReady=wp.domReady.default; }
(window.wp||={}).domReady=wp.domReady;
})();
(()=>{"use strict";var e={n:t=>{var n=t&&t.__esModule?()=>t.default:()=>t;return e.d(n,{a:n}),n},d:(t,n)=>{for(var r in n)e.o(n,r)&&!e.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:n[r]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t)};const t=window.wp.domReady;e.n(t)()(function(){if(window.eb_frontend){var e=window.eb_frontend,t=e.getDataAttribute,n=e.sanitizeTarget,r=e.sanitize,o=e.sanitizeAttribute;document.querySelectorAll('.eb-infobox-wrapper[data-clickable="true"]').forEach(function(e){var a=t(e,"href","url"),i=n(t(e,"target"));e.style.cursor="pointer",e.addEventListener("click",function(e){if(!e.target.closest("a")){e.preventDefault();var t=r(a,"url");"_blank"===n(i)?window.open(t,"_blank","noopener,noreferrer"):window.location.href=t}}),e.setAttribute("tabindex",o("0")),e.setAttribute("role",o("button")),e.setAttribute("aria-label",o("Clickable infobox")),e.addEventListener("keydown",function(e){if("Enter"===e.key||" "===e.key){if(document.activeElement.closest("a"))return;e.preventDefault();var t=r(a,"url");"_blank"===n(i)?window.open(t,"_blank","noopener,noreferrer"):window.location.href=t}})})}else console.warn("[Essential Blocks] eb_frontend is not available; clickable infobox is disabled.")})})();
(()=>{"use strict";var t={n:e=>{var r=e&&e.__esModule?()=>e.default:()=>e;return t.d(r,{a:r}),r},d:(e,r)=>{for(var n in r)t.o(r,n)&&!t.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:r[n]})},o:(t,e)=>Object.prototype.hasOwnProperty.call(t,e)};const e=window.wp.domReady;t.n(e)()(function(){var t=document.querySelectorAll(".eb-counter-wrapper .eb-counter");if(t){var e=new IntersectionObserver(function(t,e){t.forEach(function(t){var n,a,o,i,u,c,d,s;t.isIntersecting&&(n=t.target,a=+n.getAttribute("data-target"),o=+n.getAttribute("data-duration"),i=+n.getAttribute("data-startValue"),u=n.getAttribute("data-isShowSeparator"),c=n.getAttribute("data-separator"),s=(a-(d=i<a?i:0))/o*53,function t(){d+=s,n.innerText=r(Math.floor(d),u,c),d<a?setTimeout(t,53):n.innerText=r(a,u,c)}(),e.unobserve(t.target))})},{threshold:.25});t.forEach(function(t){e.observe(t)})}function r(t,e,r){return"true"===e?t.toString().replace(/\B(?=(\d{3})+(?!\d))/g,r):t.toString()}})})();