| Server IP : 167.99.224.18 / Your IP : 216.73.216.136 Web Server : Apache/2.4.41 (Ubuntu) System : Linux wordpress-ubuntu-s-1vcpu-1gb-nyc1-01 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64 User : root ( 0) PHP Version : 8.0.25 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare, MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /var/www/html/wp-content/plugins/podlove-web-player/web-player/5.13.0/player/ |
Upload File : |
/*! For license information please see vendor.js.LICENSE.txt */
(self.webpackChunk_podlove_player=self.webpackChunk_podlove_player||[]).push([[736],{61357:(e,t,n)=>{"use strict";function r(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}n.d(t,{Z:()=>r})},56470:(e,t,n)=>{"use strict";function r(e,t,n,r,i,o,a){try{var s=e[o](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,i)}function i(e){return function(){var t=this,n=arguments;return new Promise((function(i,o){var a=e.apply(t,n);function s(e){r(a,i,o,s,l,"next",e)}function l(e){r(a,i,o,s,l,"throw",e)}s(void 0)}))}}n.d(t,{Z:()=>i})},51119:(e,t,n)=>{"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,{Z:()=>r})},7560:(e,t,n)=>{"use strict";function r(){return(r=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)}n.d(t,{Z:()=>r})},74315:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(70237);function i(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);a=!0);}catch(e){s=!0,i=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return o}}(e,t)||(0,r.Z)(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.")}()}},11746:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(61357),i=n(70237);function o(e){return function(e){if(Array.isArray(e))return(0,r.Z)(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||(0,i.Z)(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.")}()}},70237:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(61357);function i(e,t){if(e){if("string"==typeof e)return(0,r.Z)(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)?(0,r.Z)(e,t):void 0}}},5396:e=>{var t=function(e){"use strict";var t,n=Object.prototype,r=n.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},o=i.iterator||"@@iterator",a=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function l(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(e){l=function(e,t,n){return e[t]=n}}function u(e,t,n,r){var i=t&&t.prototype instanceof g?t:g,o=Object.create(i.prototype),a=new L(r||[]);return o._invoke=function(e,t,n){var r=f;return function(i,o){if(r===h)throw new Error("Generator is already running");if(r===p){if("throw"===i)throw o;return C()}for(n.method=i,n.arg=o;;){var a=n.delegate;if(a){var s=A(a,n);if(s){if(s===m)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===f)throw r=p,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=h;var l=c(e,t,n);if("normal"===l.type){if(r=n.done?p:d,l.arg===m)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(r=p,n.method="throw",n.arg=l.arg)}}}(e,n,a),o}function c(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=u;var f="suspendedStart",d="suspendedYield",h="executing",p="completed",m={};function g(){}function v(){}function y(){}var b={};b[o]=function(){return this};var T=Object.getPrototypeOf,S=T&&T(T(P([])));S&&S!==n&&r.call(S,o)&&(b=S);var E=y.prototype=g.prototype=Object.create(b);function w(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function _(e,t){function n(i,o,a,s){var l=c(e[i],e,o);if("throw"!==l.type){var u=l.arg,f=u.value;return f&&"object"==typeof f&&r.call(f,"__await")?t.resolve(f.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(f).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(l.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function A(e,n){var r=e.iterator[n.method];if(r===t){if(n.delegate=null,"throw"===n.method){if(e.iterator.return&&(n.method="return",n.arg=t,A(e,n),"throw"===n.method))return m;n.method="throw",n.arg=new TypeError("The iterator does not provide a 'throw' method")}return m}var i=c(r,e.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,m;var o=i.arg;return o?o.done?(n[e.resultName]=o.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,m):o:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,m)}function x(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function k(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function L(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(x,this),this.reset(!0)}function P(e){if(e){var n=e[o];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,a=function n(){for(;++i<e.length;)if(r.call(e,i))return n.value=e[i],n.done=!1,n;return n.value=t,n.done=!0,n};return a.next=a}}return{next:C}}function C(){return{value:t,done:!0}}return v.prototype=E.constructor=y,y.constructor=v,v.displayName=l(y,s,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===v||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,y):(e.__proto__=y,l(e,s,"GeneratorFunction")),e.prototype=Object.create(E),e},e.awrap=function(e){return{__await:e}},w(_.prototype),_.prototype[a]=function(){return this},e.AsyncIterator=_,e.async=function(t,n,r,i,o){void 0===o&&(o=Promise);var a=new _(u(t,n,r,i),o);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},w(E),l(E,s,"Generator"),E[o]=function(){return this},E.toString=function(){return"[object Generator]"},e.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},e.values=P,L.prototype={constructor:L,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(k),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function i(r,i){return s.type="throw",s.arg=e,n.next=r,i&&(n.method="next",n.arg=t),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var l=r.call(a,"catchLoc"),u=r.call(a,"finallyLoc");if(l&&u){if(this.prev<a.catchLoc)return i(a.catchLoc,!0);if(this.prev<a.finallyLoc)return i(a.finallyLoc)}else if(l){if(this.prev<a.catchLoc)return i(a.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return i(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,m):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),m},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),k(n),m}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;k(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:P(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),m}},e}(e.exports);try{regeneratorRuntime=t}catch(e){Function("r","regeneratorRuntime = r")(t)}},77162:(e,t,n)=>{e.exports=n(5396)},84405:(e,t,n)=>{e.exports={F:n(2650),T:n(29083),__:n(50364),add:n(20241),addIndex:n(1181),adjust:n(11258),all:n(97957),allPass:n(38208),always:n(405),and:n(9966),any:n(26663),anyPass:n(44447),ap:n(73265),aperture:n(71822),append:n(19792),apply:n(46735),applySpec:n(6997),ascend:n(15339),assoc:n(86149),assocPath:n(86407),binary:n(71267),bind:n(13173),both:n(9760),call:n(84912),chain:n(22754),clamp:n(93301),clone:n(53385),comparator:n(49638),complement:n(88679),compose:n(73537),composeK:n(29040),composeP:n(79742),concat:n(24740),cond:n(96412),construct:n(59173),constructN:n(8821),contains:n(74700),converge:n(86915),countBy:n(85699),curry:n(63896),curryN:n(34754),dec:n(49391),defaultTo:n(49075),descend:n(69287),difference:n(71938),differenceWith:n(10877),dissoc:n(38324),dissocPath:n(42316),divide:n(12756),drop:n(6726),dropLast:n(2587),dropLastWhile:n(56013),dropRepeats:n(21823),dropRepeatsWith:n(37204),dropWhile:n(60142),either:n(68930),empty:n(85391),endsWith:n(34359),eqBy:n(78995),eqProps:n(79925),equals:n(88264),evolve:n(7072),filter:n(49470),find:n(54364),findIndex:n(77500),findLast:n(7687),findLastIndex:n(15529),flatten:n(30928),flip:n(41170),forEach:n(9666),forEachObjIndexed:n(19693),fromPairs:n(41086),groupBy:n(86865),groupWith:n(62914),gt:n(47375),gte:n(38001),has:n(9295),hasIn:n(21047),head:n(35689),identical:n(68001),identity:n(78035),ifElse:n(38639),inc:n(52845),indexBy:n(87084),indexOf:n(62453),init:n(73519),innerJoin:n(83639),insert:n(85790),insertAll:n(63098),intersection:n(13815),intersectionWith:n(16853),intersperse:n(19239),into:n(49481),invert:n(17705),invertObj:n(42181),invoker:n(51961),is:n(18193),isEmpty:n(24093),isNil:n(70641),join:n(82137),juxt:n(57208),keys:n(17998),keysIn:n(50084),last:n(5259),lastIndexOf:n(49840),length:n(21446),lens:n(87445),lensIndex:n(58071),lensPath:n(10383),lensProp:n(47469),lift:n(11062),liftN:n(20818),lt:n(42747),lte:n(51347),map:n(27209),mapAccum:n(6917),mapAccumRight:n(88378),mapObjIndexed:n(9701),match:n(10538),mathMod:n(34351),max:n(38069),maxBy:n(18200),mean:n(51767),median:n(22382),memoize:n(64339),memoizeWith:n(10535),merge:n(23409),mergeAll:n(19210),mergeDeepLeft:n(42159),mergeDeepRight:n(52124),mergeDeepWith:n(71320),mergeDeepWithKey:n(96146),mergeWith:n(88726),mergeWithKey:n(6112),min:n(21481),minBy:n(8554),modulo:n(79952),multiply:n(19748),nAry:n(73362),negate:n(585),none:n(46640),not:n(17478),nth:n(11783),nthArg:n(1384),o:n(8169),objOf:n(66852),of:n(38246),omit:n(63890),once:n(56781),or:n(95246),over:n(72096),pair:n(54947),partial:n(40458),partialRight:n(19761),partition:n(67429),path:n(90706),pathEq:n(30784),pathOr:n(51743),pathSatisfies:n(30028),pick:n(84624),pickAll:n(23582),pickBy:n(28156),pipe:n(75115),pipeK:n(62765),pipeP:n(74551),pluck:n(3214),prepend:n(56149),product:n(3852),project:n(15966),prop:n(89341),propEq:n(23899),propIs:n(65191),propOr:n(35827),propSatisfies:n(41016),props:n(33292),range:n(28423),reduce:n(94181),reduceBy:n(97897),reduceRight:n(15695),reduceWhile:n(65299),reduced:n(33653),reject:n(5307),remove:n(50996),repeat:n(75638),replace:n(56906),reverse:n(64290),scan:n(95692),sequence:n(53922),set:n(15226),slice:n(36507),sort:n(49572),sortBy:n(63692),sortWith:n(53136),split:n(23030),splitAt:n(5220),splitEvery:n(78774),splitWhen:n(68851),startsWith:n(67073),subtract:n(37705),sum:n(85111),symmetricDifference:n(1565),symmetricDifferenceWith:n(80789),tail:n(14801),take:n(89747),takeLast:n(77153),takeLastWhile:n(56770),takeWhile:n(97077),tap:n(94802),test:n(24499),times:n(78910),toLower:n(96813),toPairs:n(58407),toPairsIn:n(41807),toString:n(56291),toUpper:n(30830),transduce:n(54594),transpose:n(89442),traverse:n(60745),trim:n(69818),tryCatch:n(80809),type:n(34016),unapply:n(32077),unary:n(89816),uncurryN:n(12417),unfold:n(45991),union:n(56575),unionWith:n(98348),uniq:n(23641),uniqBy:n(28742),uniqWith:n(69242),unless:n(74422),unnest:n(49952),until:n(15461),update:n(94376),useWith:n(66905),values:n(80909),valuesIn:n(44331),view:n(64854),when:n(36676),where:n(74499),whereEq:n(554),without:n(1639),xprod:n(9287),zip:n(32055),zipObj:n(19095),zipWith:n(52329)}},2650:(e,t,n)=>{var r=n(405);e.exports=r(!1)},29083:(e,t,n)=>{var r=n(405);e.exports=r(!0)},50364:e=>{e.exports={"@@functional/placeholder":!0}},20241:(e,t,n)=>{var r=n(11868);e.exports=r((function(e,t){return Number(e)+Number(t)}))},1181:(e,t,n)=>{var r=n(5281),i=n(55572),o=n(34754);e.exports=i((function(e){return o(e.length,(function(){var t=0,n=arguments[0],i=arguments[arguments.length-1],o=Array.prototype.slice.call(arguments,0);return o[0]=function(){var e=n.apply(this,r(arguments,[t,i]));return t+=1,e},e.apply(this,o)}))}))},11258:(e,t,n)=>{var r=n(5281),i=n(89352);e.exports=i((function(e,t,n){if(t>=n.length||t<-n.length)return n;var i=(t<0?n.length:0)+t,o=r(n);return o[i]=e(n[i]),o}))},97957:(e,t,n)=>{var r=n(11868),i=n(85125),o=n(62289);e.exports=r(i(["all"],o,(function(e,t){for(var n=0;n<t.length;){if(!e(t[n]))return!1;n+=1}return!0})))},38208:(e,t,n)=>{var r=n(55572),i=n(34754),o=n(38069),a=n(3214),s=n(94181);e.exports=r((function(e){return i(s(o,0,a("length",e)),(function(){for(var t=0,n=e.length;t<n;){if(!e[t].apply(this,arguments))return!1;t+=1}return!0}))}))},405:(e,t,n)=>{var r=n(55572);e.exports=r((function(e){return function(){return e}}))},9966:(e,t,n)=>{var r=n(11868);e.exports=r((function(e,t){return e&&t}))},26663:(e,t,n)=>{var r=n(11868),i=n(85125),o=n(6573);e.exports=r(i(["any"],o,(function(e,t){for(var n=0;n<t.length;){if(e(t[n]))return!0;n+=1}return!1})))},44447:(e,t,n)=>{var r=n(55572),i=n(34754),o=n(38069),a=n(3214),s=n(94181);e.exports=r((function(e){return i(s(o,0,a("length",e)),(function(){for(var t=0,n=e.length;t<n;){if(e[t].apply(this,arguments))return!0;t+=1}return!1}))}))},73265:(e,t,n)=>{var r=n(5281),i=n(11868),o=n(38992),a=n(27209);e.exports=i((function(e,t){return"function"==typeof t["fantasy-land/ap"]?t["fantasy-land/ap"](e):"function"==typeof e.ap?e.ap(t):"function"==typeof e?function(n){return e(n)(t(n))}:o((function(e,n){return r(e,a(n,t))}),[],e)}))},71822:(e,t,n)=>{var r=n(40500),i=n(11868),o=n(85125),a=n(15595);e.exports=i(o([],a,r))},19792:(e,t,n)=>{var r=n(5281),i=n(11868);e.exports=i((function(e,t){return r(t,[e])}))},46735:(e,t,n)=>{var r=n(11868);e.exports=r((function(e,t){return e.apply(this,t)}))},6997:(e,t,n)=>{var r=n(55572),i=n(46735),o=n(34754),a=n(27209),s=n(38069),l=n(3214),u=n(94181),c=n(80909);e.exports=r((function e(t){return t=a((function(t){return"function"==typeof t?t:e(t)}),t),o(u(s,0,l("length",c(t))),(function(){var e=arguments;return a((function(t){return i(t,e)}),t)}))}))},15339:(e,t,n)=>{var r=n(89352);e.exports=r((function(e,t,n){var r=e(t),i=e(n);return r<i?-1:r>i?1:0}))},86149:(e,t,n)=>{var r=n(89352);e.exports=r((function(e,t,n){var r={};for(var i in n)r[i]=n[i];return r[e]=t,r}))},86407:(e,t,n)=>{var r=n(89352),i=n(66409),o=n(13593),a=n(97528),s=n(86149),l=n(70641);e.exports=r((function e(t,n,r){if(0===t.length)return n;var u=t[0];if(t.length>1){var c=!l(r)&&i(u,r)?r[u]:a(t[1])?[]:{};n=e(Array.prototype.slice.call(t,1),n,c)}if(a(u)&&o(r)){var f=[].concat(r);return f[u]=n,f}return s(u,n,r)}))},71267:(e,t,n)=>{var r=n(55572),i=n(73362);e.exports=r((function(e){return i(2,e)}))},13173:(e,t,n)=>{var r=n(79478),i=n(11868);e.exports=i((function(e,t){return r(e.length,(function(){return e.apply(t,arguments)}))}))},9760:(e,t,n)=>{var r=n(11868),i=n(28890),o=n(9966),a=n(11062);e.exports=r((function(e,t){return i(e)?function(){return e.apply(this,arguments)&&t.apply(this,arguments)}:a(o)(e,t)}))},84912:(e,t,n)=>{var r=n(63896);e.exports=r((function(e){return e.apply(this,Array.prototype.slice.call(arguments,1))}))},22754:(e,t,n)=>{var r=n(11868),i=n(85125),o=n(9095),a=n(40980),s=n(27209);e.exports=r(i(["fantasy-land/chain","chain"],a,(function(e,t){return"function"==typeof t?function(n){return e(t(n))(n)}:o(!1)(s(e,t))})))},93301:(e,t,n)=>{var r=n(89352);e.exports=r((function(e,t,n){if(e>t)throw new Error("min must not be greater than max in clamp(min, max, value)");return n<e?e:n>t?t:n}))},53385:(e,t,n)=>{var r=n(35550),i=n(55572);e.exports=i((function(e){return null!=e&&"function"==typeof e.clone?e.clone():r(e,[],[],!0)}))},49638:(e,t,n)=>{var r=n(55572);e.exports=r((function(e){return function(t,n){return e(t,n)?-1:e(n,t)?1:0}}))},88679:(e,t,n)=>{var r=n(11062),i=n(17478);e.exports=r(i)},73537:(e,t,n)=>{var r=n(75115),i=n(64290);e.exports=function(){if(0===arguments.length)throw new Error("compose requires at least one argument");return r.apply(this,i(arguments))}},29040:(e,t,n)=>{var r=n(22754),i=n(73537),o=n(27209);e.exports=function(){if(0===arguments.length)throw new Error("composeK requires at least one argument");var e=Array.prototype.slice.call(arguments),t=e.pop();return i(i.apply(this,o(r,e)),t)}},79742:(e,t,n)=>{var r=n(74551),i=n(64290);e.exports=function(){if(0===arguments.length)throw new Error("composeP requires at least one argument");return r.apply(this,i(arguments))}},24740:(e,t,n)=>{var r=n(11868),i=n(13593),o=n(28890),a=n(46053),s=n(56291);e.exports=r((function(e,t){if(i(e)){if(i(t))return e.concat(t);throw new TypeError(s(t)+" is not an array")}if(a(e)){if(a(t))return e+t;throw new TypeError(s(t)+" is not a string")}if(null!=e&&o(e["fantasy-land/concat"]))return e["fantasy-land/concat"](t);if(null!=e&&o(e.concat))return e.concat(t);throw new TypeError(s(e)+' does not have a method named "concat" or "fantasy-land/concat"')}))},96412:(e,t,n)=>{var r=n(79478),i=n(55572),o=n(27209),a=n(38069),s=n(94181);e.exports=i((function(e){var t=s(a,0,o((function(e){return e[0].length}),e));return r(t,(function(){for(var t=0;t<e.length;){if(e[t][0].apply(this,arguments))return e[t][1].apply(this,arguments);t+=1}}))}))},59173:(e,t,n)=>{var r=n(55572),i=n(8821);e.exports=r((function(e){return i(e.length,e)}))},8821:(e,t,n)=>{var r=n(11868),i=n(63896),o=n(73362);e.exports=r((function(e,t){if(e>10)throw new Error("Constructor with greater than ten arguments");return 0===e?function(){return new t}:i(o(e,(function(e,n,r,i,o,a,s,l,u,c){switch(arguments.length){case 1:return new t(e);case 2:return new t(e,n);case 3:return new t(e,n,r);case 4:return new t(e,n,r,i);case 5:return new t(e,n,r,i,o);case 6:return new t(e,n,r,i,o,a);case 7:return new t(e,n,r,i,o,a,s);case 8:return new t(e,n,r,i,o,a,s,l);case 9:return new t(e,n,r,i,o,a,s,l,u);case 10:return new t(e,n,r,i,o,a,s,l,u,c)}})))}))},74700:(e,t,n)=>{var r=n(69991),i=n(11868);e.exports=i(r)},86915:(e,t,n)=>{var r=n(11868),i=n(71937),o=n(34754),a=n(38069),s=n(3214),l=n(94181);e.exports=r((function(e,t){return o(l(a,0,s("length",t)),(function(){var n=arguments,r=this;return e.apply(r,i((function(e){return e.apply(r,n)}),t))}))}))},85699:(e,t,n)=>{var r=n(97897);e.exports=r((function(e,t){return e+1}),0)},63896:(e,t,n)=>{var r=n(55572),i=n(34754);e.exports=r((function(e){return i(e.length,e)}))},34754:(e,t,n)=>{var r=n(79478),i=n(55572),o=n(11868),a=n(89417);e.exports=o((function(e,t){return 1===e?i(t):r(e,a(e,[],t))}))},49391:(e,t,n)=>{var r=n(20241);e.exports=r(-1)},49075:(e,t,n)=>{var r=n(11868);e.exports=r((function(e,t){return null==t||t!=t?e:t}))},69287:(e,t,n)=>{var r=n(89352);e.exports=r((function(e,t,n){var r=e(t),i=e(n);return r>i?-1:r<i?1:0}))},71938:(e,t,n)=>{var r=n(69991),i=n(11868);e.exports=i((function(e,t){for(var n=[],i=0,o=e.length;i<o;)r(e[i],t)||r(e[i],n)||(n[n.length]=e[i]),i+=1;return n}))},10877:(e,t,n)=>{var r=n(44541),i=n(89352);e.exports=i((function(e,t,n){for(var i=[],o=0,a=t.length;o<a;)r(e,t[o],n)||r(e,t[o],i)||i.push(t[o]),o+=1;return i}))},38324:(e,t,n)=>{var r=n(11868);e.exports=r((function(e,t){var n={};for(var r in t)n[r]=t[r];return delete n[e],n}))},42316:(e,t,n)=>{var r=n(11868),i=n(97528),o=n(86149),a=n(38324),s=n(50996),l=n(94376);e.exports=r((function e(t,n){switch(t.length){case 0:return n;case 1:return i(t[0])?s(t[0],1,n):a(t[0],n);default:var r=t[0],u=Array.prototype.slice.call(t,1);return null==n[r]?n:i(t[0])?l(r,e(u,n[r]),n):o(r,e(u,n[r]),n)}}))},12756:(e,t,n)=>{var r=n(11868);e.exports=r((function(e,t){return e/t}))},6726:(e,t,n)=>{var r=n(11868),i=n(85125),o=n(2019),a=n(36507);e.exports=r(i(["drop"],o,(function(e,t){return a(Math.max(0,e),1/0,t)})))},2587:(e,t,n)=>{var r=n(11868),i=n(85125),o=n(62009),a=n(31245);e.exports=r(i([],a,o))},56013:(e,t,n)=>{var r=n(11868),i=n(85125),o=n(94184),a=n(80549);e.exports=r(i([],a,o))},21823:(e,t,n)=>{var r=n(55572),i=n(85125),o=n(31642),a=n(37204),s=n(88264);e.exports=r(i([],o(s),a(s)))},37204:(e,t,n)=>{var r=n(11868),i=n(85125),o=n(31642),a=n(5259);e.exports=r(i([],o,(function(e,t){var n=[],r=1,i=t.length;if(0!==i)for(n[0]=t[0];r<i;)e(a(n),t[r])||(n[n.length]=t[r]),r+=1;return n})))},60142:(e,t,n)=>{var r=n(11868),i=n(85125),o=n(19858);e.exports=r(i(["dropWhile"],o,(function(e,t){for(var n=0,r=t.length;n<r&&e(t[n]);)n+=1;return Array.prototype.slice.call(t,n)})))},68930:(e,t,n)=>{var r=n(11868),i=n(28890),o=n(11062),a=n(95246);e.exports=r((function(e,t){return i(e)?function(){return e.apply(this,arguments)||t.apply(this,arguments)}:o(a)(e,t)}))},85391:(e,t,n)=>{var r=n(55572),i=n(89863),o=n(13593),a=n(36821),s=n(46053);e.exports=r((function(e){return null!=e&&"function"==typeof e["fantasy-land/empty"]?e["fantasy-land/empty"]():null!=e&&null!=e.constructor&&"function"==typeof e.constructor["fantasy-land/empty"]?e.constructor["fantasy-land/empty"]():null!=e&&"function"==typeof e.empty?e.empty():null!=e&&null!=e.constructor&&"function"==typeof e.constructor.empty?e.constructor.empty():o(e)?[]:s(e)?"":a(e)?{}:i(e)?function(){return arguments}():void 0}))},34359:(e,t,n)=>{var r=n(11868),i=n(88264),o=n(77153);e.exports=r((function(e,t){return i(o(e.length,t),e)}))},78995:(e,t,n)=>{var r=n(89352),i=n(88264);e.exports=r((function(e,t,n){return i(e(t),e(n))}))},79925:(e,t,n)=>{var r=n(89352),i=n(88264);e.exports=r((function(e,t,n){return i(t[e],n[e])}))},88264:(e,t,n)=>{var r=n(11868),i=n(54853);e.exports=r((function(e,t){return i(e,t,[],[])}))},7072:(e,t,n)=>{var r=n(11868);e.exports=r((function e(t,n){var r,i,o,a={};for(i in n)o=typeof(r=t[i]),a[i]="function"===o?r(n[i]):r&&"object"===o?e(r,n[i]):n[i];return a}))},49470:(e,t,n)=>{var r=n(11868),i=n(85125),o=n(92305),a=n(36821),s=n(38992),l=n(64857),u=n(17998);e.exports=r(i(["filter"],l,(function(e,t){return a(t)?s((function(n,r){return e(t[r])&&(n[r]=t[r]),n}),{},u(t)):o(e,t)})))},54364:(e,t,n)=>{var r=n(11868),i=n(85125),o=n(13822);e.exports=r(i(["find"],o,(function(e,t){for(var n=0,r=t.length;n<r;){if(e(t[n]))return t[n];n+=1}})))},77500:(e,t,n)=>{var r=n(11868),i=n(85125),o=n(41014);e.exports=r(i([],o,(function(e,t){for(var n=0,r=t.length;n<r;){if(e(t[n]))return n;n+=1}return-1})))},7687:(e,t,n)=>{var r=n(11868),i=n(85125),o=n(55570);e.exports=r(i([],o,(function(e,t){for(var n=t.length-1;n>=0;){if(e(t[n]))return t[n];n-=1}})))},15529:(e,t,n)=>{var r=n(11868),i=n(85125),o=n(21180);e.exports=r(i([],o,(function(e,t){for(var n=t.length-1;n>=0;){if(e(t[n]))return n;n-=1}return-1})))},30928:(e,t,n)=>{var r=n(55572),i=n(9095);e.exports=r(i(!0))},41170:(e,t,n)=>{var r=n(55572),i=n(63896);e.exports=r((function(e){return i((function(t,n){var r=Array.prototype.slice.call(arguments,0);return r[0]=n,r[1]=t,e.apply(this,r)}))}))},9666:(e,t,n)=>{var r=n(91630),i=n(11868);e.exports=i(r("forEach",(function(e,t){for(var n=t.length,r=0;r<n;)e(t[r]),r+=1;return t})))},19693:(e,t,n)=>{var r=n(11868),i=n(17998);e.exports=r((function(e,t){for(var n=i(t),r=0;r<n.length;){var o=n[r];e(t[o],o,t),r+=1}return t}))},41086:(e,t,n)=>{var r=n(55572);e.exports=r((function(e){for(var t={},n=0;n<e.length;)t[e[n][0]]=e[n][1],n+=1;return t}))},86865:(e,t,n)=>{var r=n(91630),i=n(11868),o=n(97897);e.exports=i(r("groupBy",o((function(e,t){return null==e&&(e=[]),e.push(t),e}),null)))},62914:(e,t,n)=>{var r=n(11868);e.exports=r((function(e,t){for(var n=[],r=0,i=t.length;r<i;){for(var o=r+1;o<i&&e(t[o-1],t[o]);)o+=1;n.push(t.slice(r,o)),r=o}return n}))},47375:(e,t,n)=>{var r=n(11868);e.exports=r((function(e,t){return e>t}))},38001:(e,t,n)=>{var r=n(11868);e.exports=r((function(e,t){return e>=t}))},9295:(e,t,n)=>{var r=n(11868),i=n(66409);e.exports=r(i)},21047:(e,t,n)=>{var r=n(11868);e.exports=r((function(e,t){return e in t}))},35689:(e,t,n)=>{var r=n(11783);e.exports=r(0)},68001:(e,t,n)=>{var r=n(11868);e.exports=r((function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}))},78035:(e,t,n)=>{var r=n(55572),i=n(22720);e.exports=r(i)},38639:(e,t,n)=>{var r=n(89352),i=n(34754);e.exports=r((function(e,t,n){return i(Math.max(e.length,t.length,n.length),(function(){return e.apply(this,arguments)?t.apply(this,arguments):n.apply(this,arguments)}))}))},52845:(e,t,n)=>{var r=n(20241);e.exports=r(1)},87084:(e,t,n)=>{var r=n(97897);e.exports=r((function(e,t){return t}),null)},62453:(e,t,n)=>{var r=n(11868),i=n(31333),o=n(13593);e.exports=r((function(e,t){return"function"!=typeof t.indexOf||o(t)?i(t,e,0):t.indexOf(e)}))},73519:(e,t,n)=>{var r=n(36507);e.exports=r(0,-1)},83639:(e,t,n)=>{var r=n(44541),i=n(89352),o=n(92305);e.exports=i((function(e,t,n){return o((function(t){return r(e,t,n)}),t)}))},85790:(e,t,n)=>{var r=n(89352);e.exports=r((function(e,t,n){e=e<n.length&&e>=0?e:n.length;var r=Array.prototype.slice.call(n,0);return r.splice(e,0,t),r}))},63098:(e,t,n)=>{var r=n(89352);e.exports=r((function(e,t,n){return e=e<n.length&&e>=0?e:n.length,[].concat(Array.prototype.slice.call(n,0,e),t,Array.prototype.slice.call(n,e))}))},92121:(e,t,n)=>{var r=n(69991);e.exports=function(){function e(){this._nativeSet="function"==typeof Set?new Set:null,this._items={}}function t(e,t,n){var i,o=typeof e;switch(o){case"string":case"number":return 0===e&&1/e==-1/0?!!n._items["-0"]||(t&&(n._items["-0"]=!0),!1):null!==n._nativeSet?t?(i=n._nativeSet.size,n._nativeSet.add(e),n._nativeSet.size===i):n._nativeSet.has(e):o in n._items?e in n._items[o]||(t&&(n._items[o][e]=!0),!1):(t&&(n._items[o]={},n._items[o][e]=!0),!1);case"boolean":if(o in n._items){var a=e?1:0;return!!n._items[o][a]||(t&&(n._items[o][a]=!0),!1)}return t&&(n._items[o]=e?[!1,!0]:[!0,!1]),!1;case"function":return null!==n._nativeSet?t?(i=n._nativeSet.size,n._nativeSet.add(e),n._nativeSet.size===i):n._nativeSet.has(e):o in n._items?!!r(e,n._items[o])||(t&&n._items[o].push(e),!1):(t&&(n._items[o]=[e]),!1);case"undefined":return!!n._items[o]||(t&&(n._items[o]=!0),!1);case"object":if(null===e)return!!n._items.null||(t&&(n._items.null=!0),!1);default:return(o=Object.prototype.toString.call(e))in n._items?!!r(e,n._items[o])||(t&&n._items[o].push(e),!1):(t&&(n._items[o]=[e]),!1)}}return e.prototype.add=function(e){return!t(e,!0,this)},e.prototype.has=function(e){return t(e,!1,this)},e}()},40500:e=>{e.exports=function(e,t){for(var n=0,r=t.length-(e-1),i=new Array(r>=0?r:0);n<r;)i[n]=Array.prototype.slice.call(t,n,n+e),n+=1;return i}},79478:e=>{e.exports=function(e,t){switch(e){case 0:return function(){return t.apply(this,arguments)};case 1:return function(e){return t.apply(this,arguments)};case 2:return function(e,n){return t.apply(this,arguments)};case 3:return function(e,n,r){return t.apply(this,arguments)};case 4:return function(e,n,r,i){return t.apply(this,arguments)};case 5:return function(e,n,r,i,o){return t.apply(this,arguments)};case 6:return function(e,n,r,i,o,a){return t.apply(this,arguments)};case 7:return function(e,n,r,i,o,a,s){return t.apply(this,arguments)};case 8:return function(e,n,r,i,o,a,s,l){return t.apply(this,arguments)};case 9:return function(e,n,r,i,o,a,s,l,u){return t.apply(this,arguments)};case 10:return function(e,n,r,i,o,a,s,l,u,c){return t.apply(this,arguments)};default:throw new Error("First argument to _arity must be a non-negative integer no greater than ten")}}},50096:e=>{e.exports=function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}},31298:(e,t,n)=>{var r=n(13270);e.exports="function"==typeof Object.assign?Object.assign:r},91630:(e,t,n)=>{var r=n(13593);e.exports=function(e,t){return function(){var n=arguments.length;if(0===n)return t();var i=arguments[n-1];return r(i)||"function"!=typeof i[e]?t.apply(this,arguments):i[e].apply(i,Array.prototype.slice.call(arguments,0,n-1))}}},35550:(e,t,n)=>{var r=n(25983),i=n(34016);e.exports=function e(t,n,o,a){var s=function(r){for(var i=n.length,s=0;s<i;){if(t===n[s])return o[s];s+=1}for(var l in n[s+1]=t,o[s+1]=r,t)r[l]=a?e(t[l],n,o,!0):t[l];return r};switch(i(t)){case"Object":return s({});case"Array":return s([]);case"Date":return new Date(t.valueOf());case"RegExp":return r(t);default:return t}}},25983:e=>{e.exports=function(e){return new RegExp(e.source,(e.global?"g":"")+(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.sticky?"y":"")+(e.unicode?"u":""))}},9008:e=>{e.exports=function(e){return function(){return!e.apply(this,arguments)}}},5281:e=>{e.exports=function(e,t){var n;t=t||[];var r=(e=e||[]).length,i=t.length,o=[];for(n=0;n<r;)o[o.length]=e[n],n+=1;for(n=0;n<i;)o[o.length]=t[n],n+=1;return o}},69991:(e,t,n)=>{var r=n(31333);e.exports=function(e,t){return r(t,e,0)>=0}},44541:e=>{e.exports=function(e,t,n){for(var r=0,i=n.length;r<i;){if(e(t,n[r]))return!0;r+=1}return!1}},22448:(e,t,n)=>{var r=n(79478),i=n(11868);e.exports=function(e){return i((function(t,n){return r(Math.max(0,t.length-n.length),(function(){return t.apply(this,e(n,arguments))}))}))}},55572:(e,t,n)=>{var r=n(72925);e.exports=function(e){return function t(n){return 0===arguments.length||r(n)?t:e.apply(this,arguments)}}},11868:(e,t,n)=>{var r=n(55572),i=n(72925);e.exports=function(e){return function t(n,o){switch(arguments.length){case 0:return t;case 1:return i(n)?t:r((function(t){return e(n,t)}));default:return i(n)&&i(o)?t:i(n)?r((function(t){return e(t,o)})):i(o)?r((function(t){return e(n,t)})):e(n,o)}}}},89352:(e,t,n)=>{var r=n(55572),i=n(11868),o=n(72925);e.exports=function(e){return function t(n,a,s){switch(arguments.length){case 0:return t;case 1:return o(n)?t:i((function(t,r){return e(n,t,r)}));case 2:return o(n)&&o(a)?t:o(n)?i((function(t,n){return e(t,a,n)})):o(a)?i((function(t,r){return e(n,t,r)})):r((function(t){return e(n,a,t)}));default:return o(n)&&o(a)&&o(s)?t:o(n)&&o(a)?i((function(t,n){return e(t,n,s)})):o(n)&&o(s)?i((function(t,n){return e(t,a,n)})):o(a)&&o(s)?i((function(t,r){return e(n,t,r)})):o(n)?r((function(t){return e(t,a,s)})):o(a)?r((function(t){return e(n,t,s)})):o(s)?r((function(t){return e(n,a,t)})):e(n,a,s)}}}},89417:(e,t,n)=>{var r=n(79478),i=n(72925);e.exports=function e(t,n,o){return function(){for(var a=[],s=0,l=t,u=0;u<n.length||s<arguments.length;){var c;u<n.length&&(!i(n[u])||s>=arguments.length)?c=n[u]:(c=arguments[s],s+=1),a[u]=c,i(c)||(l-=1),u+=1}return l<=0?o.apply(this,a):r(l,e(t,a,o))}}},85125:(e,t,n)=>{var r=n(13593),i=n(78589);e.exports=function(e,t,n){return function(){if(0===arguments.length)return n();var o=Array.prototype.slice.call(arguments,0),a=o.pop();if(!r(a)){for(var s=0;s<e.length;){if("function"==typeof a[e[s]])return a[e[s]].apply(a,o);s+=1}if(i(a)){var l=t.apply(null,o);return l(a)}}return n.apply(this,arguments)}}},62009:(e,t,n)=>{var r=n(89747);e.exports=function(e,t){return r(e<t.length?t.length-e:0,t)}},94184:e=>{e.exports=function(e,t){for(var n=t.length-1;n>=0&&e(t[n]);)n-=1;return Array.prototype.slice.call(t,0,n+1)}},54853:(e,t,n)=>{var r=n(50096),i=n(99300),o=n(66409),a=n(68001),s=n(17998),l=n(34016);e.exports=function e(t,n,u,c){if(a(t,n))return!0;if(l(t)!==l(n))return!1;if(null==t||null==n)return!1;if("function"==typeof t["fantasy-land/equals"]||"function"==typeof n["fantasy-land/equals"])return"function"==typeof t["fantasy-land/equals"]&&t["fantasy-land/equals"](n)&&"function"==typeof n["fantasy-land/equals"]&&n["fantasy-land/equals"](t);if("function"==typeof t.equals||"function"==typeof n.equals)return"function"==typeof t.equals&&t.equals(n)&&"function"==typeof n.equals&&n.equals(t);switch(l(t)){case"Arguments":case"Array":case"Object":if("function"==typeof t.constructor&&"Promise"===i(t.constructor))return t===n;break;case"Boolean":case"Number":case"String":if(typeof t!=typeof n||!a(t.valueOf(),n.valueOf()))return!1;break;case"Date":if(!a(t.valueOf(),n.valueOf()))return!1;break;case"Error":return t.name===n.name&&t.message===n.message;case"RegExp":if(t.source!==n.source||t.global!==n.global||t.ignoreCase!==n.ignoreCase||t.multiline!==n.multiline||t.sticky!==n.sticky||t.unicode!==n.unicode)return!1;break;case"Map":case"Set":if(!e(r(t.entries()),r(n.entries()),u,c))return!1;break;case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"ArrayBuffer":break;default:return!1}var f=s(t);if(f.length!==s(n).length)return!1;for(var d=u.length-1;d>=0;){if(u[d]===t)return c[d]===n;d-=1}for(u.push(t),c.push(n),d=f.length-1;d>=0;){var h=f[d];if(!o(h,n)||!e(n[h],t[h],u,c))return!1;d-=1}return u.pop(),c.pop(),!0}},92305:e=>{e.exports=function(e,t){for(var n=0,r=t.length,i=[];n<r;)e(t[n])&&(i[i.length]=t[n]),n+=1;return i}},72587:(e,t,n)=>{var r=n(10950),i=n(4832),o=n(38992),a=n(67334);e.exports=function(e){var t=function(e){return{"@@transducer/init":a.init,"@@transducer/result":function(t){return e["@@transducer/result"](t)},"@@transducer/step":function(t,n){var i=e["@@transducer/step"](t,n);return i["@@transducer/reduced"]?r(i):i}}}(e);return{"@@transducer/init":a.init,"@@transducer/result":function(e){return t["@@transducer/result"](e)},"@@transducer/step":function(e,n){return i(n)?o(t,e,n):o(t,e,[n])}}}},10950:e=>{e.exports=function(e){return{"@@transducer/value":e,"@@transducer/reduced":!0}}},99300:e=>{e.exports=function(e){var t=String(e).match(/^function (\w*)/);return null==t?"":t[1]}},66409:e=>{e.exports=function(e,t){return Object.prototype.hasOwnProperty.call(t,e)}},22720:e=>{e.exports=function(e){return e}},31333:(e,t,n)=>{var r=n(88264);e.exports=function(e,t,n){var i,o;if("function"==typeof e.indexOf)switch(typeof t){case"number":if(0===t){for(i=1/t;n<e.length;){if(0===(o=e[n])&&1/o===i)return n;n+=1}return-1}if(t!=t){for(;n<e.length;){if("number"==typeof(o=e[n])&&o!=o)return n;n+=1}return-1}return e.indexOf(t,n);case"string":case"boolean":case"function":case"undefined":return e.indexOf(t,n);case"object":if(null===t)return e.indexOf(t,n)}for(;n<e.length;){if(r(e[n],t))return n;n+=1}return-1}},89863:(e,t,n)=>{var r=n(66409);e.exports=function(){var e=Object.prototype.toString;return"[object Arguments]"===e.call(arguments)?function(t){return"[object Arguments]"===e.call(t)}:function(e){return r("callee",e)}}()},13593:e=>{e.exports=Array.isArray||function(e){return null!=e&&e.length>=0&&"[object Array]"===Object.prototype.toString.call(e)}},4832:(e,t,n)=>{var r=n(55572),i=n(13593),o=n(46053);e.exports=r((function(e){return!!i(e)||!!e&&"object"==typeof e&&!o(e)&&(1===e.nodeType?!!e.length:0===e.length||e.length>0&&e.hasOwnProperty(0)&&e.hasOwnProperty(e.length-1))}))},28890:e=>{e.exports=function(e){return"[object Function]"===Object.prototype.toString.call(e)}},97528:e=>{e.exports=Number.isInteger||function(e){return e<<0===e}},25962:e=>{e.exports=function(e){return"[object Number]"===Object.prototype.toString.call(e)}},36821:e=>{e.exports=function(e){return"[object Object]"===Object.prototype.toString.call(e)}},72925:e=>{e.exports=function(e){return null!=e&&"object"==typeof e&&!0===e["@@functional/placeholder"]}},66742:e=>{e.exports=function(e){return"[object RegExp]"===Object.prototype.toString.call(e)}},46053:e=>{e.exports=function(e){return"[object String]"===Object.prototype.toString.call(e)}},78589:e=>{e.exports=function(e){return"function"==typeof e["@@transducer/step"]}},9095:(e,t,n)=>{var r=n(4832);e.exports=function(e){return function t(n){for(var i,o,a,s=[],l=0,u=n.length;l<u;){if(r(n[l]))for(a=0,o=(i=e?t(n[l]):n[l]).length;a<o;)s[s.length]=i[a],a+=1;else s[s.length]=n[l];l+=1}return s}}},71937:e=>{e.exports=function(e,t){for(var n=0,r=t.length,i=Array(r);n<r;)i[n]=e(t[n]),n+=1;return i}},13270:(e,t,n)=>{var r=n(66409);e.exports=function(e){if(null==e)throw new TypeError("Cannot convert undefined or null to object");for(var t=Object(e),n=1,i=arguments.length;n<i;){var o=arguments[n];if(null!=o)for(var a in o)r(a,o)&&(t[a]=o[a]);n+=1}return t}},33683:e=>{e.exports=function(e){return[e]}},5200:e=>{e.exports=function(e,t){return function(){return t.call(this,e.apply(this,arguments))}}},64896:e=>{e.exports=function(e,t){return function(){var n=this;return e.apply(n,arguments).then((function(e){return t.call(n,e)}))}}},10392:e=>{e.exports=function(e){return'"'+e.replace(/\\/g,"\\\\").replace(/[\b]/g,"\\b").replace(/\f/g,"\\f").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\t/g,"\\t").replace(/\v/g,"\\v").replace(/\0/g,"\\0").replace(/"/g,'\\"')+'"'}},38992:(e,t,n)=>{var r=n(4832),i=n(4286),o=n(13173);e.exports=function(){function e(e,t,n){for(var r=n.next();!r.done;){if((t=e["@@transducer/step"](t,r.value))&&t["@@transducer/reduced"]){t=t["@@transducer/value"];break}r=n.next()}return e["@@transducer/result"](t)}function t(e,t,n,r){return e["@@transducer/result"](n[r](o(e["@@transducer/step"],e),t))}var n="undefined"!=typeof Symbol?Symbol.iterator:"@@iterator";return function(o,a,s){if("function"==typeof o&&(o=i(o)),r(s))return function(e,t,n){for(var r=0,i=n.length;r<i;){if((t=e["@@transducer/step"](t,n[r]))&&t["@@transducer/reduced"]){t=t["@@transducer/value"];break}r+=1}return e["@@transducer/result"](t)}(o,a,s);if("function"==typeof s["fantasy-land/reduce"])return t(o,a,s,"fantasy-land/reduce");if(null!=s[n])return e(o,a,s[n]());if("function"==typeof s.next)return e(o,a,s);if("function"==typeof s.reduce)return t(o,a,s,"reduce");throw new TypeError("reduce: list must be array or iterable")}}()},71645:e=>{e.exports=function(e){return e&&e["@@transducer/reduced"]?e:{"@@transducer/value":e,"@@transducer/reduced":!0}}},91658:(e,t,n)=>{var r,i,o,a=n(31298),s=n(22720),l=n(4832),u=n(78589),c=n(66852);e.exports=(r={"@@transducer/init":Array,"@@transducer/step":function(e,t){return e.push(t),e},"@@transducer/result":s},i={"@@transducer/init":String,"@@transducer/step":function(e,t){return e+t},"@@transducer/result":s},o={"@@transducer/init":Object,"@@transducer/step":function(e,t){return a(e,l(t)?c(t[0],t[1]):t)},"@@transducer/result":s},function(e){if(u(e))return e;if(l(e))return r;if("string"==typeof e)return i;if("object"==typeof e)return o;throw new Error("Cannot create transformer for "+e)})},85497:e=>{var t;e.exports=(t=function(e){return(e<10?"0":"")+e},"function"==typeof Date.prototype.toISOString?function(e){return e.toISOString()}:function(e){return e.getUTCFullYear()+"-"+t(e.getUTCMonth()+1)+"-"+t(e.getUTCDate())+"T"+t(e.getUTCHours())+":"+t(e.getUTCMinutes())+":"+t(e.getUTCSeconds())+"."+(e.getUTCMilliseconds()/1e3).toFixed(3).slice(2,5)+"Z"})},46162:(e,t,n)=>{var r=n(69991),i=n(71937),o=n(10392),a=n(85497),s=n(17998),l=n(5307);e.exports=function e(t,n){var u=function(i){var o=n.concat([t]);return r(i,o)?"<Circular>":e(i,o)},c=function(e,t){return i((function(t){return o(t)+": "+u(e[t])}),t.slice().sort())};switch(Object.prototype.toString.call(t)){case"[object Arguments]":return"(function() { return arguments; }("+i(u,t).join(", ")+"))";case"[object Array]":return"["+i(u,t).concat(c(t,l((function(e){return/^\d+$/.test(e)}),s(t)))).join(", ")+"]";case"[object Boolean]":return"object"==typeof t?"new Boolean("+u(t.valueOf())+")":t.toString();case"[object Date]":return"new Date("+(isNaN(t.valueOf())?u(NaN):o(a(t)))+")";case"[object Null]":return"null";case"[object Number]":return"object"==typeof t?"new Number("+u(t.valueOf())+")":1/t==-1/0?"-0":t.toString(10);case"[object String]":return"object"==typeof t?"new String("+u(t.valueOf())+")":o(t);case"[object Undefined]":return"undefined";default:if("function"==typeof t.toString){var f=t.toString();if("[object Object]"!==f)return f}return"{"+c(t,s(t)).join(", ")+"}"}}},62289:(e,t,n)=>{var r=n(11868),i=n(71645),o=n(67334);e.exports=function(){function e(e,t){this.xf=t,this.f=e,this.all=!0}return e.prototype["@@transducer/init"]=o.init,e.prototype["@@transducer/result"]=function(e){return this.all&&(e=this.xf["@@transducer/step"](e,!0)),this.xf["@@transducer/result"](e)},e.prototype["@@transducer/step"]=function(e,t){return this.f(t)||(this.all=!1,e=i(this.xf["@@transducer/step"](e,!1))),e},r((function(t,n){return new e(t,n)}))}()},6573:(e,t,n)=>{var r=n(11868),i=n(71645),o=n(67334);e.exports=function(){function e(e,t){this.xf=t,this.f=e,this.any=!1}return e.prototype["@@transducer/init"]=o.init,e.prototype["@@transducer/result"]=function(e){return this.any||(e=this.xf["@@transducer/step"](e,!1)),this.xf["@@transducer/result"](e)},e.prototype["@@transducer/step"]=function(e,t){return this.f(t)&&(this.any=!0,e=i(this.xf["@@transducer/step"](e,!0))),e},r((function(t,n){return new e(t,n)}))}()},15595:(e,t,n)=>{var r=n(5281),i=n(11868),o=n(67334);e.exports=function(){function e(e,t){this.xf=t,this.pos=0,this.full=!1,this.acc=new Array(e)}return e.prototype["@@transducer/init"]=o.init,e.prototype["@@transducer/result"]=function(e){return this.acc=null,this.xf["@@transducer/result"](e)},e.prototype["@@transducer/step"]=function(e,t){return this.store(t),this.full?this.xf["@@transducer/step"](e,this.getCopy()):e},e.prototype.store=function(e){this.acc[this.pos]=e,this.pos+=1,this.pos===this.acc.length&&(this.pos=0,this.full=!0)},e.prototype.getCopy=function(){return r(Array.prototype.slice.call(this.acc,this.pos),Array.prototype.slice.call(this.acc,0,this.pos))},i((function(t,n){return new e(t,n)}))}()},40980:(e,t,n)=>{var r=n(11868),i=n(72587),o=n(27209);e.exports=r((function(e,t){return o(e,i(t))}))},2019:(e,t,n)=>{var r=n(11868),i=n(67334);e.exports=function(){function e(e,t){this.xf=t,this.n=e}return e.prototype["@@transducer/init"]=i.init,e.prototype["@@transducer/result"]=i.result,e.prototype["@@transducer/step"]=function(e,t){return this.n>0?(this.n-=1,e):this.xf["@@transducer/step"](e,t)},r((function(t,n){return new e(t,n)}))}()},31245:(e,t,n)=>{var r=n(11868),i=n(67334);e.exports=function(){function e(e,t){this.xf=t,this.pos=0,this.full=!1,this.acc=new Array(e)}return e.prototype["@@transducer/init"]=i.init,e.prototype["@@transducer/result"]=function(e){return this.acc=null,this.xf["@@transducer/result"](e)},e.prototype["@@transducer/step"]=function(e,t){return this.full&&(e=this.xf["@@transducer/step"](e,this.acc[this.pos])),this.store(t),e},e.prototype.store=function(e){this.acc[this.pos]=e,this.pos+=1,this.pos===this.acc.length&&(this.pos=0,this.full=!0)},r((function(t,n){return new e(t,n)}))}()},80549:(e,t,n)=>{var r=n(11868),i=n(38992),o=n(67334);e.exports=function(){function e(e,t){this.f=e,this.retained=[],this.xf=t}return e.prototype["@@transducer/init"]=o.init,e.prototype["@@transducer/result"]=function(e){return this.retained=null,this.xf["@@transducer/result"](e)},e.prototype["@@transducer/step"]=function(e,t){return this.f(t)?this.retain(e,t):this.flush(e,t)},e.prototype.flush=function(e,t){return e=i(this.xf["@@transducer/step"],e,this.retained),this.retained=[],this.xf["@@transducer/step"](e,t)},e.prototype.retain=function(e,t){return this.retained.push(t),e},r((function(t,n){return new e(t,n)}))}()},31642:(e,t,n)=>{var r=n(11868),i=n(67334);e.exports=function(){function e(e,t){this.xf=t,this.pred=e,this.lastValue=void 0,this.seenFirstValue=!1}return e.prototype["@@transducer/init"]=i.init,e.prototype["@@transducer/result"]=i.result,e.prototype["@@transducer/step"]=function(e,t){var n=!1;return this.seenFirstValue?this.pred(this.lastValue,t)&&(n=!0):this.seenFirstValue=!0,this.lastValue=t,n?e:this.xf["@@transducer/step"](e,t)},r((function(t,n){return new e(t,n)}))}()},19858:(e,t,n)=>{var r=n(11868),i=n(67334);e.exports=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=i.init,e.prototype["@@transducer/result"]=i.result,e.prototype["@@transducer/step"]=function(e,t){if(this.f){if(this.f(t))return e;this.f=null}return this.xf["@@transducer/step"](e,t)},r((function(t,n){return new e(t,n)}))}()},67334:e=>{e.exports={init:function(){return this.xf["@@transducer/init"]()},result:function(e){return this.xf["@@transducer/result"](e)}}},64857:(e,t,n)=>{var r=n(11868),i=n(67334);e.exports=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=i.init,e.prototype["@@transducer/result"]=i.result,e.prototype["@@transducer/step"]=function(e,t){return this.f(t)?this.xf["@@transducer/step"](e,t):e},r((function(t,n){return new e(t,n)}))}()},13822:(e,t,n)=>{var r=n(11868),i=n(71645),o=n(67334);e.exports=function(){function e(e,t){this.xf=t,this.f=e,this.found=!1}return e.prototype["@@transducer/init"]=o.init,e.prototype["@@transducer/result"]=function(e){return this.found||(e=this.xf["@@transducer/step"](e,void 0)),this.xf["@@transducer/result"](e)},e.prototype["@@transducer/step"]=function(e,t){return this.f(t)&&(this.found=!0,e=i(this.xf["@@transducer/step"](e,t))),e},r((function(t,n){return new e(t,n)}))}()},41014:(e,t,n)=>{var r=n(11868),i=n(71645),o=n(67334);e.exports=function(){function e(e,t){this.xf=t,this.f=e,this.idx=-1,this.found=!1}return e.prototype["@@transducer/init"]=o.init,e.prototype["@@transducer/result"]=function(e){return this.found||(e=this.xf["@@transducer/step"](e,-1)),this.xf["@@transducer/result"](e)},e.prototype["@@transducer/step"]=function(e,t){return this.idx+=1,this.f(t)&&(this.found=!0,e=i(this.xf["@@transducer/step"](e,this.idx))),e},r((function(t,n){return new e(t,n)}))}()},55570:(e,t,n)=>{var r=n(11868),i=n(67334);e.exports=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=i.init,e.prototype["@@transducer/result"]=function(e){return this.xf["@@transducer/result"](this.xf["@@transducer/step"](e,this.last))},e.prototype["@@transducer/step"]=function(e,t){return this.f(t)&&(this.last=t),e},r((function(t,n){return new e(t,n)}))}()},21180:(e,t,n)=>{var r=n(11868),i=n(67334);e.exports=function(){function e(e,t){this.xf=t,this.f=e,this.idx=-1,this.lastIdx=-1}return e.prototype["@@transducer/init"]=i.init,e.prototype["@@transducer/result"]=function(e){return this.xf["@@transducer/result"](this.xf["@@transducer/step"](e,this.lastIdx))},e.prototype["@@transducer/step"]=function(e,t){return this.idx+=1,this.f(t)&&(this.lastIdx=this.idx),e},r((function(t,n){return new e(t,n)}))}()},6178:(e,t,n)=>{var r=n(11868),i=n(67334);e.exports=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=i.init,e.prototype["@@transducer/result"]=i.result,e.prototype["@@transducer/step"]=function(e,t){return this.xf["@@transducer/step"](e,this.f(t))},r((function(t,n){return new e(t,n)}))}()},39258:(e,t,n)=>{var r=n(89417),i=n(66409),o=n(67334);e.exports=function(){function e(e,t,n,r){this.valueFn=e,this.valueAcc=t,this.keyFn=n,this.xf=r,this.inputs={}}return e.prototype["@@transducer/init"]=o.init,e.prototype["@@transducer/result"]=function(e){var t;for(t in this.inputs)if(i(t,this.inputs)&&(e=this.xf["@@transducer/step"](e,this.inputs[t]))["@@transducer/reduced"]){e=e["@@transducer/value"];break}return this.inputs=null,this.xf["@@transducer/result"](e)},e.prototype["@@transducer/step"]=function(e,t){var n=this.keyFn(t);return this.inputs[n]=this.inputs[n]||[n,this.valueAcc],this.inputs[n][1]=this.valueFn(this.inputs[n][1],t),e},r(4,[],(function(t,n,r,i){return new e(t,n,r,i)}))}()},65490:(e,t,n)=>{var r=n(11868),i=n(71645),o=n(67334);e.exports=function(){function e(e,t){this.xf=t,this.n=e,this.i=0}return e.prototype["@@transducer/init"]=o.init,e.prototype["@@transducer/result"]=o.result,e.prototype["@@transducer/step"]=function(e,t){this.i+=1;var n=0===this.n?e:this.xf["@@transducer/step"](e,t);return this.n>=0&&this.i>=this.n?i(n):n},r((function(t,n){return new e(t,n)}))}()},14510:(e,t,n)=>{var r=n(11868),i=n(71645),o=n(67334);e.exports=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=o.init,e.prototype["@@transducer/result"]=o.result,e.prototype["@@transducer/step"]=function(e,t){return this.f(t)?this.xf["@@transducer/step"](e,t):i(e)},r((function(t,n){return new e(t,n)}))}()},4286:e=>{e.exports=function(){function e(e){this.f=e}return e.prototype["@@transducer/init"]=function(){throw new Error("init not implemented on XWrap")},e.prototype["@@transducer/result"]=function(e){return e},e.prototype["@@transducer/step"]=function(e,t){return this.f(e,t)},function(t){return new e(t)}}()},13815:(e,t,n)=>{var r=n(69991),i=n(11868),o=n(92305),a=n(41170),s=n(23641);e.exports=i((function(e,t){var n,i;return e.length>t.length?(n=e,i=t):(n=t,i=e),s(o(a(r)(n),i))}))},16853:(e,t,n)=>{var r=n(44541),i=n(89352),o=n(69242);e.exports=i((function(e,t,n){var i,a;t.length>n.length?(i=t,a=n):(i=n,a=t);for(var s=[],l=0;l<a.length;)r(e,a[l],i)&&(s[s.length]=a[l]),l+=1;return o(e,s)}))},19239:(e,t,n)=>{var r=n(91630),i=n(11868);e.exports=i(r("intersperse",(function(e,t){for(var n=[],r=0,i=t.length;r<i;)r===i-1?n.push(t[r]):n.push(t[r],e),r+=1;return n})))},49481:(e,t,n)=>{var r=n(35550),i=n(89352),o=n(78589),a=n(38992),s=n(91658);e.exports=i((function(e,t,n){return o(e)?a(t(e),e["@@transducer/init"](),n):a(t(s(e)),r(e,[],[],!1),n)}))},17705:(e,t,n)=>{var r=n(55572),i=n(66409),o=n(17998);e.exports=r((function(e){for(var t=o(e),n=t.length,r=0,a={};r<n;){var s=t[r],l=e[s],u=i(l,a)?a[l]:a[l]=[];u[u.length]=s,r+=1}return a}))},42181:(e,t,n)=>{var r=n(55572),i=n(17998);e.exports=r((function(e){for(var t=i(e),n=t.length,r=0,o={};r<n;){var a=t[r];o[e[a]]=a,r+=1}return o}))},51961:(e,t,n)=>{var r=n(11868),i=n(28890),o=n(34754),a=n(56291);e.exports=r((function(e,t){return o(e+1,(function(){var n=arguments[e];if(null!=n&&i(n[t]))return n[t].apply(n,Array.prototype.slice.call(arguments,0,e));throw new TypeError(a(n)+' does not have a method named "'+t+'"')}))}))},18193:(e,t,n)=>{var r=n(11868);e.exports=r((function(e,t){return null!=t&&t.constructor===e||t instanceof e}))},24093:(e,t,n)=>{var r=n(55572),i=n(85391),o=n(88264);e.exports=r((function(e){return null!=e&&o(e,i(e))}))},70641:(e,t,n)=>{var r=n(55572);e.exports=r((function(e){return null==e}))},82137:(e,t,n)=>{var r=n(51961);e.exports=r(1,"join")},57208:(e,t,n)=>{var r=n(55572),i=n(86915);e.exports=r((function(e){return i((function(){return Array.prototype.slice.call(arguments,0)}),e)}))},17998:(e,t,n)=>{var r,i,o,a,s=n(55572),l=n(66409),u=n(89863);e.exports=(r=!{toString:null}.propertyIsEnumerable("toString"),i=["constructor","valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],o=function(){"use strict";return arguments.propertyIsEnumerable("length")}(),a=function(e,t){for(var n=0;n<e.length;){if(e[n]===t)return!0;n+=1}return!1},"function"!=typeof Object.keys||o?s((function(e){if(Object(e)!==e)return[];var t,n,s=[],c=o&&u(e);for(t in e)!l(t,e)||c&&"length"===t||(s[s.length]=t);if(r)for(n=i.length-1;n>=0;)l(t=i[n],e)&&!a(s,t)&&(s[s.length]=t),n-=1;return s})):s((function(e){return Object(e)!==e?[]:Object.keys(e)})))},50084:(e,t,n)=>{var r=n(55572);e.exports=r((function(e){var t,n=[];for(t in e)n[n.length]=t;return n}))},5259:(e,t,n)=>{var r=n(11783);e.exports=r(-1)},49840:(e,t,n)=>{var r=n(11868),i=n(13593),o=n(88264);e.exports=r((function(e,t){if("function"!=typeof t.lastIndexOf||i(t)){for(var n=t.length-1;n>=0;){if(o(t[n],e))return n;n-=1}return-1}return t.lastIndexOf(e)}))},21446:(e,t,n)=>{var r=n(55572),i=n(25962);e.exports=r((function(e){return null!=e&&i(e.length)?e.length:NaN}))},87445:(e,t,n)=>{var r=n(11868),i=n(27209);e.exports=r((function(e,t){return function(n){return function(r){return i((function(e){return t(e,r)}),n(e(r)))}}}))},58071:(e,t,n)=>{var r=n(55572),i=n(87445),o=n(11783),a=n(94376);e.exports=r((function(e){return i(o(e),a(e))}))},10383:(e,t,n)=>{var r=n(55572),i=n(86407),o=n(87445),a=n(90706);e.exports=r((function(e){return o(a(e),i(e))}))},47469:(e,t,n)=>{var r=n(55572),i=n(86149),o=n(87445),a=n(89341);e.exports=r((function(e){return o(a(e),i(e))}))},11062:(e,t,n)=>{var r=n(55572),i=n(20818);e.exports=r((function(e){return i(e.length,e)}))},20818:(e,t,n)=>{var r=n(11868),i=n(38992),o=n(73265),a=n(34754),s=n(27209);e.exports=r((function(e,t){var n=a(e,t);return a(e,(function(){return i(o,s(n,arguments[0]),Array.prototype.slice.call(arguments,1))}))}))},42747:(e,t,n)=>{var r=n(11868);e.exports=r((function(e,t){return e<t}))},51347:(e,t,n)=>{var r=n(11868);e.exports=r((function(e,t){return e<=t}))},27209:(e,t,n)=>{var r=n(11868),i=n(85125),o=n(71937),a=n(38992),s=n(6178),l=n(34754),u=n(17998);e.exports=r(i(["fantasy-land/map","map"],s,(function(e,t){switch(Object.prototype.toString.call(t)){case"[object Function]":return l(t.length,(function(){return e.call(this,t.apply(this,arguments))}));case"[object Object]":return a((function(n,r){return n[r]=e(t[r]),n}),{},u(t));default:return o(e,t)}})))},6917:(e,t,n)=>{var r=n(89352);e.exports=r((function(e,t,n){for(var r=0,i=n.length,o=[],a=[t];r<i;)a=e(a[0],n[r]),o[r]=a[1],r+=1;return[a[0],o]}))},88378:(e,t,n)=>{var r=n(89352);e.exports=r((function(e,t,n){for(var r=n.length-1,i=[],o=[t];r>=0;)o=e(n[r],o[0]),i[r]=o[1],r-=1;return[i,o[0]]}))},9701:(e,t,n)=>{var r=n(11868),i=n(38992),o=n(17998);e.exports=r((function(e,t){return i((function(n,r){return n[r]=e(t[r],r,t),n}),{},o(t))}))},10538:(e,t,n)=>{var r=n(11868);e.exports=r((function(e,t){return t.match(e)||[]}))},34351:(e,t,n)=>{var r=n(11868),i=n(97528);e.exports=r((function(e,t){return i(e)?!i(t)||t<1?NaN:(e%t+t)%t:NaN}))},38069:(e,t,n)=>{var r=n(11868);e.exports=r((function(e,t){return t>e?t:e}))},18200:(e,t,n)=>{var r=n(89352);e.exports=r((function(e,t,n){return e(n)>e(t)?n:t}))},51767:(e,t,n)=>{var r=n(55572),i=n(85111);e.exports=r((function(e){return i(e)/e.length}))},22382:(e,t,n)=>{var r=n(55572),i=n(51767);e.exports=r((function(e){var t=e.length;if(0===t)return NaN;var n=2-t%2,r=(t-n)/2;return i(Array.prototype.slice.call(e,0).sort((function(e,t){return e<t?-1:e>t?1:0})).slice(r,r+n))}))},64339:(e,t,n)=>{var r=n(10535),i=n(56291);e.exports=r((function(){return i(arguments)}))},10535:(e,t,n)=>{var r=n(79478),i=n(11868),o=n(66409);e.exports=i((function(e,t){var n={};return r(t.length,(function(){var r=e.apply(this,arguments);return o(r,n)||(n[r]=t.apply(this,arguments)),n[r]}))}))},23409:(e,t,n)=>{var r=n(31298),i=n(11868);e.exports=i((function(e,t){return r({},e,t)}))},19210:(e,t,n)=>{var r=n(31298),i=n(55572);e.exports=i((function(e){return r.apply(null,[{}].concat(e))}))},42159:(e,t,n)=>{var r=n(11868),i=n(96146);e.exports=r((function(e,t){return i((function(e,t,n){return t}),e,t)}))},52124:(e,t,n)=>{var r=n(11868),i=n(96146);e.exports=r((function(e,t){return i((function(e,t,n){return n}),e,t)}))},71320:(e,t,n)=>{var r=n(89352),i=n(96146);e.exports=r((function(e,t,n){return i((function(t,n,r){return e(n,r)}),t,n)}))},96146:(e,t,n)=>{var r=n(89352),i=n(36821),o=n(6112);e.exports=r((function e(t,n,r){return o((function(n,r,o){return i(r)&&i(o)?e(t,r,o):t(n,r,o)}),n,r)}))},88726:(e,t,n)=>{var r=n(89352),i=n(6112);e.exports=r((function(e,t,n){return i((function(t,n,r){return e(n,r)}),t,n)}))},6112:(e,t,n)=>{var r=n(89352),i=n(66409);e.exports=r((function(e,t,n){var r,o={};for(r in t)i(r,t)&&(o[r]=i(r,n)?e(r,t[r],n[r]):t[r]);for(r in n)i(r,n)&&!i(r,o)&&(o[r]=n[r]);return o}))},21481:(e,t,n)=>{var r=n(11868);e.exports=r((function(e,t){return t<e?t:e}))},8554:(e,t,n)=>{var r=n(89352);e.exports=r((function(e,t,n){return e(n)<e(t)?n:t}))},79952:(e,t,n)=>{var r=n(11868);e.exports=r((function(e,t){return e%t}))},19748:(e,t,n)=>{var r=n(11868);e.exports=r((function(e,t){return e*t}))},73362:(e,t,n)=>{var r=n(11868);e.exports=r((function(e,t){switch(e){case 0:return function(){return t.call(this)};case 1:return function(e){return t.call(this,e)};case 2:return function(e,n){return t.call(this,e,n)};case 3:return function(e,n,r){return t.call(this,e,n,r)};case 4:return function(e,n,r,i){return t.call(this,e,n,r,i)};case 5:return function(e,n,r,i,o){return t.call(this,e,n,r,i,o)};case 6:return function(e,n,r,i,o,a){return t.call(this,e,n,r,i,o,a)};case 7:return function(e,n,r,i,o,a,s){return t.call(this,e,n,r,i,o,a,s)};case 8:return function(e,n,r,i,o,a,s,l){return t.call(this,e,n,r,i,o,a,s,l)};case 9:return function(e,n,r,i,o,a,s,l,u){return t.call(this,e,n,r,i,o,a,s,l,u)};case 10:return function(e,n,r,i,o,a,s,l,u,c){return t.call(this,e,n,r,i,o,a,s,l,u,c)};default:throw new Error("First argument to nAry must be a non-negative integer no greater than ten")}}))},585:(e,t,n)=>{var r=n(55572);e.exports=r((function(e){return-e}))},46640:(e,t,n)=>{var r=n(9008),i=n(11868),o=n(85125),a=n(6573),s=n(26663);e.exports=i(r(o(["any"],a,s)))},17478:(e,t,n)=>{var r=n(55572);e.exports=r((function(e){return!e}))},11783:(e,t,n)=>{var r=n(11868),i=n(46053);e.exports=r((function(e,t){var n=e<0?t.length+e:e;return i(t)?t.charAt(n):t[n]}))},1384:(e,t,n)=>{var r=n(55572),i=n(34754),o=n(11783);e.exports=r((function(e){return i(e<0?1:e+1,(function(){return o(e,arguments)}))}))},8169:(e,t,n)=>{var r=n(89352);e.exports=r((function(e,t,n){return e(t(n))}))},66852:(e,t,n)=>{var r=n(11868);e.exports=r((function(e,t){var n={};return n[e]=t,n}))},38246:(e,t,n)=>{var r=n(55572),i=n(33683);e.exports=r(i)},63890:(e,t,n)=>{var r=n(69991),i=n(11868);e.exports=i((function(e,t){var n={};for(var i in t)r(i,e)||(n[i]=t[i]);return n}))},56781:(e,t,n)=>{var r=n(79478),i=n(55572);e.exports=i((function(e){var t,n=!1;return r(e.length,(function(){return n?t:(n=!0,t=e.apply(this,arguments))}))}))},95246:(e,t,n)=>{var r=n(11868);e.exports=r((function(e,t){return e||t}))},72096:(e,t,n)=>{var r,i=n(89352);e.exports=(r=function(e){return{value:e,map:function(t){return r(t(e))}}},i((function(e,t,n){return e((function(e){return r(t(e))}))(n).value})))},54947:(e,t,n)=>{var r=n(11868);e.exports=r((function(e,t){return[e,t]}))},40458:(e,t,n)=>{var r=n(5281),i=n(22448);e.exports=i(r)},19761:(e,t,n)=>{var r=n(5281),i=n(22448),o=n(41170);e.exports=i(o(r))},67429:(e,t,n)=>{var r=n(49470),i=n(57208),o=n(5307);e.exports=i([r,o])},90706:(e,t,n)=>{var r=n(11868);e.exports=r((function(e,t){for(var n=t,r=0;r<e.length;){if(null==n)return;n=n[e[r]],r+=1}return n}))},30784:(e,t,n)=>{var r=n(89352),i=n(88264),o=n(90706);e.exports=r((function(e,t,n){return i(o(e,n),t)}))},51743:(e,t,n)=>{var r=n(89352),i=n(49075),o=n(90706);e.exports=r((function(e,t,n){return i(e,o(t,n))}))},30028:(e,t,n)=>{var r=n(89352),i=n(90706);e.exports=r((function(e,t,n){return t.length>0&&e(i(t,n))}))},84624:(e,t,n)=>{var r=n(11868);e.exports=r((function(e,t){for(var n={},r=0;r<e.length;)e[r]in t&&(n[e[r]]=t[e[r]]),r+=1;return n}))},23582:(e,t,n)=>{var r=n(11868);e.exports=r((function(e,t){for(var n={},r=0,i=e.length;r<i;){var o=e[r];n[o]=t[o],r+=1}return n}))},28156:(e,t,n)=>{var r=n(11868);e.exports=r((function(e,t){var n={};for(var r in t)e(t[r],r,t)&&(n[r]=t[r]);return n}))},75115:(e,t,n)=>{var r=n(79478),i=n(5200),o=n(94181),a=n(14801);e.exports=function(){if(0===arguments.length)throw new Error("pipe requires at least one argument");return r(arguments[0].length,o(i,arguments[0],a(arguments)))}},62765:(e,t,n)=>{var r=n(29040),i=n(64290);e.exports=function(){if(0===arguments.length)throw new Error("pipeK requires at least one argument");return r.apply(this,i(arguments))}},74551:(e,t,n)=>{var r=n(79478),i=n(64896),o=n(94181),a=n(14801);e.exports=function(){if(0===arguments.length)throw new Error("pipeP requires at least one argument");return r(arguments[0].length,o(i,arguments[0],a(arguments)))}},3214:(e,t,n)=>{var r=n(11868),i=n(27209),o=n(89341);e.exports=r((function(e,t){return i(o(e),t)}))},56149:(e,t,n)=>{var r=n(5281),i=n(11868);e.exports=i((function(e,t){return r([e],t)}))},3852:(e,t,n)=>{var r=n(19748),i=n(94181);e.exports=i(r,1)},15966:(e,t,n)=>{var r=n(71937),i=n(78035),o=n(23582),a=n(66905);e.exports=a(r,[o,i])},89341:(e,t,n)=>{var r=n(11868);e.exports=r((function(e,t){return t[e]}))},23899:(e,t,n)=>{var r=n(89352),i=n(88264);e.exports=r((function(e,t,n){return i(t,n[e])}))},65191:(e,t,n)=>{var r=n(89352),i=n(18193);e.exports=r((function(e,t,n){return i(e,n[t])}))},35827:(e,t,n)=>{var r=n(89352),i=n(66409);e.exports=r((function(e,t,n){return null!=n&&i(t,n)?n[t]:e}))},41016:(e,t,n)=>{var r=n(89352);e.exports=r((function(e,t,n){return e(n[t])}))},33292:(e,t,n)=>{var r=n(11868);e.exports=r((function(e,t){for(var n=e.length,r=[],i=0;i<n;)r[i]=t[e[i]],i+=1;return r}))},28423:(e,t,n)=>{var r=n(11868),i=n(25962);e.exports=r((function(e,t){if(!i(e)||!i(t))throw new TypeError("Both arguments to range must be numbers");for(var n=[],r=e;r<t;)n.push(r),r+=1;return n}))},94181:(e,t,n)=>{var r=n(89352),i=n(38992);e.exports=r(i)},97897:(e,t,n)=>{var r=n(89417),i=n(85125),o=n(66409),a=n(38992),s=n(39258);e.exports=r(4,[],i([],s,(function(e,t,n,r){return a((function(r,i){var a=n(i);return r[a]=e(o(a,r)?r[a]:t,i),r}),{},r)})))},15695:(e,t,n)=>{var r=n(89352);e.exports=r((function(e,t,n){for(var r=n.length-1;r>=0;)t=e(n[r],t),r-=1;return t}))},65299:(e,t,n)=>{var r=n(89417),i=n(38992),o=n(71645);e.exports=r(4,[],(function(e,t,n,r){return i((function(n,r){return e(n,r)?t(n,r):o(n)}),n,r)}))},33653:(e,t,n)=>{var r=n(55572),i=n(71645);e.exports=r(i)},5307:(e,t,n)=>{var r=n(9008),i=n(11868),o=n(49470);e.exports=i((function(e,t){return o(r(e),t)}))},50996:(e,t,n)=>{var r=n(89352);e.exports=r((function(e,t,n){var r=Array.prototype.slice.call(n,0);return r.splice(e,t),r}))},75638:(e,t,n)=>{var r=n(11868),i=n(405),o=n(78910);e.exports=r((function(e,t){return o(i(e),t)}))},56906:(e,t,n)=>{var r=n(89352);e.exports=r((function(e,t,n){return n.replace(e,t)}))},64290:(e,t,n)=>{var r=n(55572),i=n(46053);e.exports=r((function(e){return i(e)?e.split("").reverse().join(""):Array.prototype.slice.call(e,0).reverse()}))},95692:(e,t,n)=>{var r=n(89352);e.exports=r((function(e,t,n){for(var r=0,i=n.length,o=[t];r<i;)t=e(t,n[r]),o[r+1]=t,r+=1;return o}))},53922:(e,t,n)=>{var r=n(11868),i=n(73265),o=n(27209),a=n(56149),s=n(15695);e.exports=r((function(e,t){return"function"==typeof t.sequence?t.sequence(e):s((function(e,t){return i(o(a,e),t)}),e([]),t)}))},15226:(e,t,n)=>{var r=n(89352),i=n(405),o=n(72096);e.exports=r((function(e,t,n){return o(e,i(t),n)}))},36507:(e,t,n)=>{var r=n(91630),i=n(89352);e.exports=i(r("slice",(function(e,t,n){return Array.prototype.slice.call(n,e,t)})))},49572:(e,t,n)=>{var r=n(11868);e.exports=r((function(e,t){return Array.prototype.slice.call(t,0).sort(e)}))},63692:(e,t,n)=>{var r=n(11868);e.exports=r((function(e,t){return Array.prototype.slice.call(t,0).sort((function(t,n){var r=e(t),i=e(n);return r<i?-1:r>i?1:0}))}))},53136:(e,t,n)=>{var r=n(11868);e.exports=r((function(e,t){return Array.prototype.slice.call(t,0).sort((function(t,n){for(var r=0,i=0;0===r&&i<e.length;)r=e[i](t,n),i+=1;return r}))}))},23030:(e,t,n)=>{var r=n(51961);e.exports=r(1,"split")},5220:(e,t,n)=>{var r=n(11868),i=n(21446),o=n(36507);e.exports=r((function(e,t){return[o(0,e,t),o(e,i(t),t)]}))},78774:(e,t,n)=>{var r=n(11868),i=n(36507);e.exports=r((function(e,t){if(e<=0)throw new Error("First argument to splitEvery must be a positive integer");for(var n=[],r=0;r<t.length;)n.push(i(r,r+=e,t));return n}))},68851:(e,t,n)=>{var r=n(11868);e.exports=r((function(e,t){for(var n=0,r=t.length,i=[];n<r&&!e(t[n]);)i.push(t[n]),n+=1;return[i,Array.prototype.slice.call(t,n)]}))},67073:(e,t,n)=>{var r=n(11868),i=n(88264),o=n(89747);e.exports=r((function(e,t){return i(o(e.length,t),e)}))},37705:(e,t,n)=>{var r=n(11868);e.exports=r((function(e,t){return Number(e)-Number(t)}))},85111:(e,t,n)=>{var r=n(20241),i=n(94181);e.exports=i(r,0)},1565:(e,t,n)=>{var r=n(11868),i=n(24740),o=n(71938);e.exports=r((function(e,t){return i(o(e,t),o(t,e))}))},80789:(e,t,n)=>{var r=n(89352),i=n(24740),o=n(10877);e.exports=r((function(e,t,n){return i(o(e,t,n),o(e,n,t))}))},14801:(e,t,n)=>{var r=n(91630),i=n(55572),o=n(36507);e.exports=i(r("tail",o(1,1/0)))},89747:(e,t,n)=>{var r=n(11868),i=n(85125),o=n(65490),a=n(36507);e.exports=r(i(["take"],o,(function(e,t){return a(0,e<0?1/0:e,t)})))},77153:(e,t,n)=>{var r=n(11868),i=n(6726);e.exports=r((function(e,t){return i(e>=0?t.length-e:0,t)}))},56770:(e,t,n)=>{var r=n(11868);e.exports=r((function(e,t){for(var n=t.length-1;n>=0&&e(t[n]);)n-=1;return Array.prototype.slice.call(t,n+1)}))},97077:(e,t,n)=>{var r=n(11868),i=n(85125),o=n(14510);e.exports=r(i(["takeWhile"],o,(function(e,t){for(var n=0,r=t.length;n<r&&e(t[n]);)n+=1;return Array.prototype.slice.call(t,0,n)})))},94802:(e,t,n)=>{var r=n(11868);e.exports=r((function(e,t){return e(t),t}))},24499:(e,t,n)=>{var r=n(25983),i=n(11868),o=n(66742),a=n(56291);e.exports=i((function(e,t){if(!o(e))throw new TypeError("‘test’ requires a value of type RegExp as its first argument; received "+a(e));return r(e).test(t)}))},78910:(e,t,n)=>{var r=n(11868);e.exports=r((function(e,t){var n,r=Number(t),i=0;if(r<0||isNaN(r))throw new RangeError("n must be a non-negative number");for(n=new Array(r);i<r;)n[i]=e(i),i+=1;return n}))},96813:(e,t,n)=>{var r=n(51961);e.exports=r(0,"toLowerCase")},58407:(e,t,n)=>{var r=n(55572),i=n(66409);e.exports=r((function(e){var t=[];for(var n in e)i(n,e)&&(t[t.length]=[n,e[n]]);return t}))},41807:(e,t,n)=>{var r=n(55572);e.exports=r((function(e){var t=[];for(var n in e)t[t.length]=[n,e[n]];return t}))},56291:(e,t,n)=>{var r=n(55572),i=n(46162);e.exports=r((function(e){return i(e,[])}))},30830:(e,t,n)=>{var r=n(51961);e.exports=r(0,"toUpperCase")},54594:(e,t,n)=>{var r=n(38992),i=n(4286),o=n(34754);e.exports=o(4,(function(e,t,n,o){return r(e("function"==typeof t?i(t):t),n,o)}))},89442:(e,t,n)=>{var r=n(55572);e.exports=r((function(e){for(var t=0,n=[];t<e.length;){for(var r=e[t],i=0;i<r.length;)void 0===n[i]&&(n[i]=[]),n[i].push(r[i]),i+=1;t+=1}return n}))},60745:(e,t,n)=>{var r=n(89352),i=n(27209),o=n(53922);e.exports=r((function(e,t,n){return"function"==typeof n["fantasy-land/traverse"]?n["fantasy-land/traverse"](t,e):o(e,i(t,n))}))},69818:(e,t,n)=>{var r,i=n(55572);e.exports=(r="\t\n\v\f\r \u2028\u2029\ufeff","function"==typeof String.prototype.trim&&!r.trim()&&"".trim()?i((function(e){return e.trim()})):i((function(e){var t=new RegExp("^["+r+"]["+r+"]*"),n=new RegExp("["+r+"]["+r+"]*$");return e.replace(t,"").replace(n,"")})))},80809:(e,t,n)=>{var r=n(79478),i=n(5281),o=n(11868);e.exports=o((function(e,t){return r(e.length,(function(){try{return e.apply(this,arguments)}catch(e){return t.apply(this,i([e],arguments))}}))}))},34016:(e,t,n)=>{var r=n(55572);e.exports=r((function(e){return null===e?"Null":void 0===e?"Undefined":Object.prototype.toString.call(e).slice(8,-1)}))},32077:(e,t,n)=>{var r=n(55572);e.exports=r((function(e){return function(){return e(Array.prototype.slice.call(arguments,0))}}))},89816:(e,t,n)=>{var r=n(55572),i=n(73362);e.exports=r((function(e){return i(1,e)}))},12417:(e,t,n)=>{var r=n(11868),i=n(34754);e.exports=r((function(e,t){return i(e,(function(){for(var n,r=1,i=t,o=0;r<=e&&"function"==typeof i;)n=r===e?arguments.length:o+i.length,i=i.apply(this,Array.prototype.slice.call(arguments,o,n)),r+=1,o=n;return i}))}))},45991:(e,t,n)=>{var r=n(11868);e.exports=r((function(e,t){for(var n=e(t),r=[];n&&n.length;)r[r.length]=n[0],n=e(n[1]);return r}))},56575:(e,t,n)=>{var r=n(5281),i=n(11868),o=n(73537),a=n(23641);e.exports=i(o(a,r))},98348:(e,t,n)=>{var r=n(5281),i=n(89352),o=n(69242);e.exports=i((function(e,t,n){return o(e,r(t,n))}))},23641:(e,t,n)=>{var r=n(78035),i=n(28742);e.exports=i(r)},28742:(e,t,n)=>{var r=n(92121),i=n(11868);e.exports=i((function(e,t){for(var n,i,o=new r,a=[],s=0;s<t.length;)n=e(i=t[s]),o.add(n)&&a.push(i),s+=1;return a}))},69242:(e,t,n)=>{var r=n(44541),i=n(11868);e.exports=i((function(e,t){for(var n,i=0,o=t.length,a=[];i<o;)n=t[i],r(e,n,a)||(a[a.length]=n),i+=1;return a}))},74422:(e,t,n)=>{var r=n(89352);e.exports=r((function(e,t,n){return e(n)?n:t(n)}))},49952:(e,t,n)=>{var r=n(22720),i=n(22754);e.exports=i(r)},15461:(e,t,n)=>{var r=n(89352);e.exports=r((function(e,t,n){for(var r=n;!e(r);)r=t(r);return r}))},94376:(e,t,n)=>{var r=n(89352),i=n(11258),o=n(405);e.exports=r((function(e,t,n){return i(o(t),e,n)}))},66905:(e,t,n)=>{var r=n(11868),i=n(34754);e.exports=r((function(e,t){return i(t.length,(function(){for(var n=[],r=0;r<t.length;)n.push(t[r].call(this,arguments[r])),r+=1;return e.apply(this,n.concat(Array.prototype.slice.call(arguments,t.length)))}))}))},80909:(e,t,n)=>{var r=n(55572),i=n(17998);e.exports=r((function(e){for(var t=i(e),n=t.length,r=[],o=0;o<n;)r[o]=e[t[o]],o+=1;return r}))},44331:(e,t,n)=>{var r=n(55572);e.exports=r((function(e){var t,n=[];for(t in e)n[n.length]=e[t];return n}))},64854:(e,t,n)=>{var r,i=n(11868);e.exports=(r=function(e){return{value:e,"fantasy-land/map":function(){return this}}},i((function(e,t){return e(r)(t).value})))},36676:(e,t,n)=>{var r=n(89352);e.exports=r((function(e,t,n){return e(n)?t(n):n}))},74499:(e,t,n)=>{var r=n(11868),i=n(66409);e.exports=r((function(e,t){for(var n in e)if(i(n,e)&&!e[n](t[n]))return!1;return!0}))},554:(e,t,n)=>{var r=n(11868),i=n(88264),o=n(27209),a=n(74499);e.exports=r((function(e,t){return a(o(i,e),t)}))},1639:(e,t,n)=>{var r=n(69991),i=n(11868),o=n(41170),a=n(5307);e.exports=i((function(e,t){return a(o(r)(e),t)}))},9287:(e,t,n)=>{var r=n(11868);e.exports=r((function(e,t){for(var n,r=0,i=e.length,o=t.length,a=[];r<i;){for(n=0;n<o;)a[a.length]=[e[r],t[n]],n+=1;r+=1}return a}))},32055:(e,t,n)=>{var r=n(11868);e.exports=r((function(e,t){for(var n=[],r=0,i=Math.min(e.length,t.length);r<i;)n[r]=[e[r],t[r]],r+=1;return n}))},19095:(e,t,n)=>{var r=n(11868);e.exports=r((function(e,t){for(var n=0,r=Math.min(e.length,t.length),i={};n<r;)i[e[n]]=t[n],n+=1;return i}))},52329:(e,t,n)=>{var r=n(89352);e.exports=r((function(e,t,n){for(var r=[],i=0,o=Math.min(t.length,n.length);i<o;)r[i]=e(t[i],n[i]),i+=1;return r}))},27932:(e,t,n)=>{"use strict";n.d(t,{n:()=>re});var r=n(87655),i=n.n(r),o=n(84405);const a=(e={})=>t=>Object.keys(e).reduce(((n,r)=>Object.assign({},n,{[r]:e[r](t)})),{}),s=e=>[].concat(e),l=(0,o.path)(["target"]),u=e=>document.createElement(e),c=e=>(0,o.compose)((0,o.reduce)(((e,t)=>(e.appendChild(t),e)),e),s),f=e=>(0,o.compose)((()=>e),c(document.body))(e),d=((0,o.curry)(((e,t)=>{const n=new Event(e);return t.dispatchEvent(n),t})),(()=>{const e=e=>e.test(window.navigator.userAgent);switch(!0){case e(/edg/i):return"edge";case e(/opr/i)&&(!!window.opr||!!window.opera):return"opera";case e(/chrome/i)&&!!window.chrome:return"chrome";case e(/trident/i):return"ie";case e(/firefox/i):return"firefox";case e(/safari/i):}})(),(0,o.compose)((e=>e.reduce(((e,t)=>e||~["application/x-mpegurl","vnd.apple.mpegurl"].indexOf(t.mimeType.toLowerCase())?t.url:null),null)),s)),h=(0,o.path)(["duration"]),p=(0,o.path)(["playtime"]),m=(0,o.compose)(((e=[])=>{let t=[];for(let n=0;n<e.length;n++)t=[...t,[e.start(n),e.end(n)]];return t}),(0,o.path)(["buffered"])),g=(0,o.path)(["volume"]),v=(0,o.path)(["ended"]),y=(0,o.path)(["paused"]),b=(0,o.path)(["playbackRate"]),T=(0,o.path)(["muted"]),S=(0,o.path)(["currentSrc"]),E=((0,o.path)(["activeBuffer","channelCount"]),(0,o.path)(["audioBuffer"])),w=(0,o.path)(["initialized"]),_=(0,o.path)(["hls"]),A=(0,o.path)(["liveSync"]),x=(0,o.compose)((e=>{switch(e){case 0:return"HAVE_NOTHING";case 1:return"HAVE_METADATA";case 2:return"HAVE_CURRENT_DATA";case 3:return"HAVE_FUTURE_DATA";case 4:return"HAVE_ENOUGH_DATA"}}),(0,o.path)(["readyState"])),k=a({duration:h,buffered:m,volume:g,state:x,playtime:p,ended:v,rate:b,muted:T,src:S,paused:y,playing:e=>e&&e.currentTime>0&&!e.paused&&!e.ended&&e.readyState>2,buffer:E,hls:_,liveSync:A}),L=e=>(e.playtime=e.currentTime,e),P=e=>{if(!w(e))return e;try{e.currentTime=e.playtime}catch(e){}return e},C=e=>(e.initialized=!0,e),M=e=>h(e)===1/0,R=e=>{const{playtime:t,hls:n}=k(e);return e.liveSync=0,setInterval((()=>{const r=(({playtime:e,hls:t})=>t?t.liveSyncPosition?t.liveSyncPosition:e:0)({playtime:t,hls:n});e.liveSync=r>e.liveSync?r:e.liveSync,e.liveSync=e.liveSync+1,e.dispatchEvent(new CustomEvent("livesyncupdate"))}),1e3),e},O=e=>{const{playtime:t,liveSync:n}=k(e);return t>n||(e.currentTime=n),e},I=(0,o.compose)((e=>(e.autoplay=!1,e.loop=!1,e.preload="auto",e.controls=!1,e.playtime=0,e.liveSync=null,e.initialized=!1,e.hls=null,e)),(e=>(e.playtime=0,e.addEventListener("timeupdate",(0,o.compose)(L,l)),e.addEventListener("canplay",(0,o.compose)(P,C,l),{once:!0}),e.addEventListener("play",(0,o.compose)(P,l)),e)),(e=>(e.addEventListener("canplay",(0,o.compose)((0,o.ifElse)(M,R,o.identity),l),{once:!0}),e.addEventListener("play",(0,o.compose)((0,o.ifElse)(M,O,o.identity),l),{once:!0}),e))),D=(0,o.compose)((e=>t=>Object.keys(t).reduce(((e,n)=>(e.setAttribute(n,t[n]),e)),e)),u),N=({url:e,mimeType:t})=>D("source")({src:e,type:t}),F=(0,o.compose)(I,u),B=e=>{return(0,o.compose)(f,(t=F("audio"),(0,o.compose)(c(t),(0,o.map)(N))),s)(e);var t},G=(e,t=k,n={})=>(0,o.curry)(((r,i,a={})=>([].concat(e).forEach((e=>{r.addEventListener(e,(0,o.compose)(i,t,l),Object.assign({},n,a))})),r))),U=G("progress",k,{once:!0}),H=G(["canplay","canplaythrough"],k,{once:!0}),V=G(["canplay","canplaythrough"],k,{once:!0}),j=G(["canplay","canplaythrough"],k),W=G("play"),$=G("pause"),K=G("ended"),Z=G("filterUpdated",k),X=G("progress",m),z=(0,o.curry)(((e,t,n={})=>(e.addEventListener("waiting",(e=>{const n=l(e);"HAVE_ENOUGH_DATA"!==x(n)&&t(k(n))}),Object.assign({},n)),e))),q=G("timeupdate",p),Y=G("volumechange",g),Q=G("livesyncupdate",A),J=a({onLoading:U,onLoaded:H,onPause:$,onBufferChange:X,onEnd:K,onPlaytimeUpdate:q,onVolumeChange:Y,onError:(0,o.curry)(((e,t)=>(e.addEventListener("error",(function({detail:e}){switch(e&&e.networkState||this.networkState){case HTMLMediaElement.NETWORK_NO_SOURCE:return t("NETWORK_NO_SOURCE",{});case HTMLMediaElement.NETWORK_EMPTY:return t("NETWORK_EMPTY",{})}}),!0),e.addEventListener("error-media",(function({detail:n}){w(e)&&([0,20].includes(n.code)||t("MEDIA_ERROR",n))}),!1),e))),onDurationChange:G("durationchange",h),onRateChange:G("ratechange",b),onPlay:W,onBuffering:z,onReady:j,onFilterUpdate:Z,canPlay:V,onLiveSyncUpdate:Q}),ee=a({play:e=>()=>{try{const t=e.play();t&&void 0!==t.catch&&t.catch((t=>{e.dispatchEvent(new CustomEvent("error-media",{detail:t}))}))}catch(t){console.warn(t),e.dispatchEvent(new CustomEvent("error-media",{detail:t}))}return e},pause:e=>()=>(e.pause(),e),load:e=>()=>(e.load(),e),setPlaytime:e=>(t=0)=>{const n=h(e);return t=(t=(t=parseFloat(t))>n?n:t)<0?0:t,w(e)?(e.playtime=t,e.currentTime=t):e.playtime=t,e},mute:e=>()=>(e.muted=!0,e),unmute:e=>()=>(e.muted=!1,e),setVolume:e=>(t=1)=>(t=(t=(t=parseFloat(t))<0?0:t)>1?1:t,e.volume=t,e),setRate:e=>(t=1)=>(t=(t=(t=parseFloat(t))>4?4:t)<.5?.5:t,e.playbackRate=parseFloat(t),e)}),te=["play","pause","load","setPlaytime","mute","unmute","setVolume","setRate"],ne=["onLoading","onLoaded","onPause","onBufferChange","onEnd","onPlaytimeUpdate","onLiveSyncUpdate","onVolumeChange","onError","onDurationChange","onRateChange","onPlay","onBuffering","onReady","onFilterUpdate"],re=()=>{const e={load:function(n){e.mediaElement&&e.mediaElement.parentNode.removeChild(e.mediaElement),te.forEach((r=>{e.actions[r]=function(n,r){return(o=[])=>{e.mediaElement=B(n),(e=>{if(!i().isSupported())return e;const t=new(i())({liveDurationInfinity:!0}),n=(e=>[...e.children].map((e=>({url:e.getAttribute("src"),mimeType:e.getAttribute("type")}))))(e),r=d(n);r&&(e.hls=t,t.attachMedia(e),t.loadSource(r),t.on(i().Events.MEDIA_ATTACHED,(()=>{t.startLoad(-1)})),t.on(i().Events.ERROR,(function(n,r){switch(r.tyoe){case i().ErrorDetails.NETWORK_ERROR:t.startLoad(),e.dispatchEvent(new CustomEvent("error",{detail:{networkState:HTMLMediaElement.NETWORK_EMPTY}}));break;case i().ErrorTypes.OTHER_ERROR:t.destroy(),e.dispatchEvent(new CustomEvent("error",{detail:{networkState:HTMLMediaElement.NETWORK_NO_SOURCE}}));break;default:t.recoverMediaError()}})))})(e.mediaElement);const a=J(e.mediaElement);ne.forEach((e=>t[e].forEach((t=>a[e](t)))));const s=ee(e.mediaElement);te.forEach((t=>e.actions[t]=s[t])),r&&e.actions[r].call(null,o)}}(n,r)}))},mediaElement:null,actions:te.reduce(((e,t)=>({...e,[t]:()=>{}})),{}),events:ne.reduce(((e,n)=>({...e,[n]:e=>t[n].push(e)})),{})},t=ne.reduce(((e,t)=>({...e,[t]:[]})),{});return e}},93325:(e,t,n)=>{"use strict";n.d(t,{A:()=>R,B:()=>x,C:()=>I,D:()=>g,E:()=>b,F:()=>N,G:()=>j,H:()=>l,J:()=>F,L:()=>K,M:()=>Y,O:()=>q,P:()=>M,Q:()=>J,R:()=>O,S:()=>G,T:()=>C,W:()=>X,Z:()=>Z,a:()=>D,a4:()=>Q,b:()=>B,d:()=>U,e:()=>P,f:()=>H,g:()=>V,h:()=>W,i:()=>v,j:()=>_,k:()=>a,l:()=>w,m:()=>y,n:()=>L,o:()=>d,p:()=>u,q:()=>m,r:()=>f,s:()=>E,t:()=>s,u:()=>c,v:()=>A,y:()=>S,z:()=>T});var r=n(23143),i=n(7560),o=n(83594),a=function(){return!0},s=function(){},l=function(e){return e};"function"==typeof Symbol&&Symbol.asyncIterator&&Symbol.asyncIterator;var u=function(e,t){(0,i.Z)(e,t),Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(t).forEach((function(n){e[n]=t[n]}))},c=function(e,t){var n;return(n=[]).concat.apply(n,t.map(e))};function f(e,t){var n=e.indexOf(t);n>=0&&e.splice(n,1)}function d(e){var t=!1;return function(){t||(t=!0,e())}}var h=function(e){throw e},p=function(e){return{value:e,done:!0}};function m(e,t,n){void 0===t&&(t=h),void 0===n&&(n="iterator");var r={meta:{name:n},next:e,throw:t,return:p,isSagaIterator:!0};return"undefined"!=typeof Symbol&&(r[Symbol.iterator]=function(){return r}),r}function g(e,t){var n=t.sagaStack;console.error(e),console.error(n)}var v=function(e){return new Error("\n redux-saga: Error checking hooks detected an inconsistent state. This is likely a bug\n in redux-saga code and not yours. Thanks for reporting this in the project's github repo.\n Error: "+e+"\n")},y=function(e){return Array.apply(null,new Array(e))},b=function(e){return function(t){return e(Object.defineProperty(t,r.Nm,{value:!0}))}},T=function(e){return e===r.EO},S=function(e){return e===r.Wd},E=function(e){return T(e)||S(e)};function w(e,t){var n,r=Object.keys(e),i=r.length,a=0,l=(0,o.IX)(e)?y(i):{},u={};return r.forEach((function(e){var r=function(r,o){n||(o||E(r)?(t.cancel(),t(r,o)):(l[e]=r,++a===i&&(n=!0,t(l))))};r.cancel=s,u[e]=r})),t.cancel=function(){n||(n=!0,r.forEach((function(e){return u[e].cancel()})))},u}function _(e){return{name:e.name||"anonymous",location:A(e)}}function A(e){return e[r.b_]}function x(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return 0===t.length?function(e){return e}:1===t.length?t[0]:t.reduce((function(e,t){return function(){return e(t.apply(void 0,arguments))}}))}var k={isEmpty:a,put:s,take:s},L=function(){return k},P=function(e){return function(e,t){void 0===e&&(e=10);var n=new Array(e),r=0,i=0,o=0,a=function(t){n[i]=t,i=(i+1)%e,r++},s=function(){if(0!=r){var t=n[o];return n[o]=null,r--,o=(o+1)%e,t}},l=function(){for(var e=[];r;)e.push(s());return e};return{isEmpty:function(){return 0==r},put:function(t){var s;r<e||(s=2*e,n=l(),r=n.length,i=n.length,o=0,n.length=s,e=s),a(t)},take:s,flush:l}}(e)},C="TAKE",M="PUT",R="ALL",O="RACE",I="CALL",D="CPS",N="FORK",F="JOIN",B="CANCEL",G="SELECT",U="ACTION_CHANNEL",H="CANCELLED",V="FLUSH",j="GET_CONTEXT",W="SET_CONTEXT",$=function(e,t){var n;return(n={})[r.IO]=!0,n.combinator=!1,n.type=e,n.payload=t,n};function K(e,t){return void 0===e&&(e="*"),(0,o.uj)(e)?((0,o.d5)(t)&&console.warn("take(pattern) takes one argument but two were provided. Consider passing an array for listening to several action types"),$(C,{pattern:e})):(0,o.Om)(e)&&(0,o.d5)(t)&&(0,o.uj)(t)?$(C,{channel:e,pattern:t}):(0,o.CE)(e)?((0,o.d5)(t)&&console.warn("take(channel) takes one argument but two were provided. Second argument is ignored."),$(C,{channel:e})):void 0}function Z(e,t){return(0,o.sR)(t)&&(t=e,e=void 0),$(M,{channel:e,action:t})}function X(e){var t=$(O,e);return t.combinator=!0,t}function z(e,t){var n,r=null;return(0,o.Yl)(e)?n=e:((0,o.IX)(e)?(r=e[0],n=e[1]):(r=e.context,n=e.fn),r&&(0,o.Z_)(n)&&(0,o.Yl)(r[n])&&(n=r[n])),{context:r,fn:n,args:t}}function q(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 $(I,z(e,n))}function Y(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 $(N,z(e,n))}function Q(e){void 0===e&&(e=l);for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return $(G,{selector:e,args:n})}var J=q.bind(null,(function(e,t){var n;void 0===t&&(t=!0);var i=new Promise((function(r){n=setTimeout(r,Math.min(2147483647,e),t)}));return i[r.n1]=function(){clearTimeout(n)},i}))},83594:(e,t,n)=>{"use strict";n.d(t,{IX:()=>l,CE:()=>d,Yl:()=>a,hZ:()=>c,Om:()=>m,d5:()=>o,uj:()=>f,MC:()=>u,Z_:()=>s,eR:()=>h,NA:()=>p,sR:()=>i});var r=n(23143),i=function(e){return null==e},o=function(e){return null!=e},a=function(e){return"function"==typeof e},s=function(e){return"string"==typeof e},l=Array.isArray,u=function(e){return e&&a(e.then)},c=function(e){return e&&a(e.next)&&a(e.throw)},f=function e(t){return t&&(s(t)||p(t)||a(t)||l(t)&&t.every(e))},d=function(e){return e&&a(e.take)&&a(e.close)},h=function(e){return a(e)&&e.hasOwnProperty("toString")},p=function(e){return Boolean(e)&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype},m=function(e){return d(e)&&e[r.AS]}},23143:(e,t,n)=>{"use strict";n.d(t,{n1:()=>i,sZ:()=>o,IO:()=>a,uq:()=>s,AS:()=>l,Nm:()=>u,b_:()=>p,sC:()=>c,Cs:()=>f,Wd:()=>d,EO:()=>h});var r=function(e){return"@@redux-saga/"+e},i=r("CANCEL_PROMISE"),o=r("CHANNEL_END"),a=r("IO"),s=r("MATCH"),l=r("MULTICAST"),u=r("SAGA_ACTION"),c=r("SELF_CANCELLATION"),f=r("TASK"),d=r("TASK_CANCEL"),h=r("TERMINATE"),p=r("LOCATION")},23517:(e,t,n)=>{"use strict";n.d(t,{Bj:()=>E,qq:()=>F,Fl:()=>ct,ZM:()=>ot,cE:()=>G,B:()=>w,nZ:()=>A,X3:()=>je,PG:()=>He,$y:()=>Ve,dq:()=>ze,Xl:()=>$e,EB:()=>x,Jd:()=>j,WL:()=>rt,qj:()=>Ne,OT:()=>Be,iH:()=>qe,lk:()=>W,Um:()=>Fe,YS:()=>Ge,XI:()=>Ye,sT:()=>U,IU:()=>We,Vh:()=>lt,BK:()=>at,j:()=>$,X$:()=>X,oR:()=>et,SU:()=>tt});const r=()=>{},i=Object.assign,o=Object.prototype.hasOwnProperty,a=(e,t)=>o.call(e,t),s=Array.isArray,l=e=>"[object Map]"===h(e),u=e=>"function"==typeof e,c=e=>"symbol"==typeof e,f=e=>null!==e&&"object"==typeof e,d=Object.prototype.toString,h=e=>d.call(e),p=e=>(e=>"string"==typeof e)(e)&&"NaN"!==e&&"-"!==e[0]&&""+parseInt(e,10)===e,m=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},g=/-(\w)/g,v=(m((e=>e.replace(g,((e,t)=>t?t.toUpperCase():"")))),/\B([A-Z])/g),y=(m((e=>e.replace(v,"-$1").toLowerCase())),m((e=>e.charAt(0).toUpperCase()+e.slice(1)))),b=(m((e=>e?`on${y(e)}`:"")),(e,t)=>!Object.is(e,t));let T;const S=[];class E{constructor(e=!1){this.active=!0,this.effects=[],this.cleanups=[],!e&&T&&(this.parent=T,this.index=(T.scopes||(T.scopes=[])).push(this)-1)}run(e){if(this.active)try{return this.on(),e()}finally{this.off()}}on(){this.active&&(S.push(this),T=this)}off(){this.active&&(S.pop(),T=S[S.length-1])}stop(e){if(this.active){if(this.effects.forEach((e=>e.stop())),this.cleanups.forEach((e=>e())),this.scopes&&this.scopes.forEach((e=>e.stop(!0))),this.parent&&!e){const e=this.parent.scopes.pop();e&&e!==this&&(this.parent.scopes[this.index]=e,e.index=this.index)}this.active=!1}}}function w(e){return new E(e)}function _(e,t){(t=t||T)&&t.active&&t.effects.push(e)}function A(){return T}function x(e){T&&T.cleanups.push(e)}const k=e=>{const t=new Set(e);return t.w=0,t.n=0,t},L=e=>(e.w&R)>0,P=e=>(e.n&R)>0,C=new WeakMap;let M=0,R=1;const O=[];let I;const D=Symbol(""),N=Symbol("");class F{constructor(e,t=null,n){this.fn=e,this.scheduler=t,this.active=!0,this.deps=[],_(this,n)}run(){if(!this.active)return this.fn();if(!O.includes(this))try{return O.push(I=this),V.push(H),H=!0,R=1<<++M,M<=30?(({deps:e})=>{if(e.length)for(let t=0;t<e.length;t++)e[t].w|=R})(this):B(this),this.fn()}finally{M<=30&&(e=>{const{deps:t}=e;if(t.length){let n=0;for(let r=0;r<t.length;r++){const i=t[r];L(i)&&!P(i)?i.delete(e):t[n++]=i,i.w&=~R,i.n&=~R}t.length=n}})(this),R=1<<--M,W(),O.pop();const e=O.length;I=e>0?O[e-1]:void 0}}stop(){this.active&&(B(this),this.onStop&&this.onStop(),this.active=!1)}}function B(e){const{deps:t}=e;if(t.length){for(let n=0;n<t.length;n++)t[n].delete(e);t.length=0}}function G(e,t){e.effect&&(e=e.effect.fn);const n=new F(e);t&&(i(n,t),t.scope&&_(n,t.scope)),t&&t.lazy||n.run();const r=n.run.bind(n);return r.effect=n,r}function U(e){e.effect.stop()}let H=!0;const V=[];function j(){V.push(H),H=!1}function W(){const e=V.pop();H=void 0===e||e}function $(e,t,n){if(!K())return;let r=C.get(e);r||C.set(e,r=new Map);let i=r.get(n);i||r.set(n,i=k()),Z(i)}function K(){return H&&void 0!==I}function Z(e,t){let n=!1;M<=30?P(e)||(e.n|=R,n=!L(e)):n=!e.has(I),n&&(e.add(I),I.deps.push(e))}function X(e,t,n,r,i,o){const a=C.get(e);if(!a)return;let u=[];if("clear"===t)u=[...a.values()];else if("length"===n&&s(e))a.forEach(((e,t)=>{("length"===t||t>=r)&&u.push(e)}));else switch(void 0!==n&&u.push(a.get(n)),t){case"add":s(e)?p(n)&&u.push(a.get("length")):(u.push(a.get(D)),l(e)&&u.push(a.get(N)));break;case"delete":s(e)||(u.push(a.get(D)),l(e)&&u.push(a.get(N)));break;case"set":l(e)&&u.push(a.get(D))}if(1===u.length)u[0]&&z(u[0]);else{const e=[];for(const t of u)t&&e.push(...t);z(k(e))}}function z(e,t){for(const t of s(e)?e:[...e])(t!==I||t.allowRecurse)&&(t.scheduler?t.scheduler():t.run())}const q=function(e,t){const n=Object.create(null),r="__proto__,__v_isRef,__isVue".split(",");for(let e=0;e<r.length;e++)n[r[e]]=!0;return e=>!!n[e]}(),Y=new Set(Object.getOwnPropertyNames(Symbol).map((e=>Symbol[e])).filter(c)),Q=re(),J=re(!1,!0),ee=re(!0),te=re(!0,!0),ne=function(){const e={};return["includes","indexOf","lastIndexOf"].forEach((t=>{e[t]=function(...e){const n=We(this);for(let e=0,t=this.length;e<t;e++)$(n,0,e+"");const r=n[t](...e);return-1===r||!1===r?n[t](...e.map(We)):r}})),["push","pop","shift","unshift","splice"].forEach((t=>{e[t]=function(...e){j();const n=We(this)[t].apply(this,e);return W(),n}})),e}();function re(e=!1,t=!1){return function(n,r,i){if("__v_isReactive"===r)return!e;if("__v_isReadonly"===r)return e;if("__v_raw"===r&&i===(e?t?De:Ie:t?Oe:Re).get(n))return n;const o=s(n);if(!e&&o&&a(ne,r))return Reflect.get(ne,r,i);const l=Reflect.get(n,r,i);return(c(r)?Y.has(r):q(r))?l:(e||$(n,0,r),t?l:ze(l)?o&&p(r)?l:l.value:f(l)?e?Be(l):Ne(l):l)}}function ie(e=!1){return function(t,n,r,i){let o=t[n];if(!e&&(r=We(r),o=We(o),!s(t)&&ze(o)&&!ze(r)))return o.value=r,!0;const l=s(t)&&p(n)?Number(n)<t.length:a(t,n),u=Reflect.set(t,n,r,i);return t===We(i)&&(l?b(r,o)&&X(t,"set",n,r):X(t,"add",n,r)),u}}const oe={get:Q,set:ie(),deleteProperty:function(e,t){const n=a(e,t),r=(e[t],Reflect.deleteProperty(e,t));return r&&n&&X(e,"delete",t,void 0),r},has:function(e,t){const n=Reflect.has(e,t);return c(t)&&Y.has(t)||$(e,0,t),n},ownKeys:function(e){return $(e,0,s(e)?"length":D),Reflect.ownKeys(e)}},ae={get:ee,set:(e,t)=>!0,deleteProperty:(e,t)=>!0},se=i({},oe,{get:J,set:ie(!0)}),le=i({},ae,{get:te}),ue=e=>f(e)?Ne(e):e,ce=e=>f(e)?Be(e):e,fe=e=>e,de=e=>Reflect.getPrototypeOf(e);function he(e,t,n=!1,r=!1){const i=We(e=e.__v_raw),o=We(t);t!==o&&!n&&$(i,0,t),!n&&$(i,0,o);const{has:a}=de(i),s=r?fe:n?ce:ue;return a.call(i,t)?s(e.get(t)):a.call(i,o)?s(e.get(o)):void(e!==i&&e.get(t))}function pe(e,t=!1){const n=this.__v_raw,r=We(n),i=We(e);return e!==i&&!t&&$(r,0,e),!t&&$(r,0,i),e===i?n.has(e):n.has(e)||n.has(i)}function me(e,t=!1){return e=e.__v_raw,!t&&$(We(e),0,D),Reflect.get(e,"size",e)}function ge(e){e=We(e);const t=We(this);return de(t).has.call(t,e)||(t.add(e),X(t,"add",e,e)),this}function ve(e,t){t=We(t);const n=We(this),{has:r,get:i}=de(n);let o=r.call(n,e);o||(e=We(e),o=r.call(n,e));const a=i.call(n,e);return n.set(e,t),o?b(t,a)&&X(n,"set",e,t):X(n,"add",e,t),this}function ye(e){const t=We(this),{has:n,get:r}=de(t);let i=n.call(t,e);i||(e=We(e),i=n.call(t,e)),r&&r.call(t,e);const o=t.delete(e);return i&&X(t,"delete",e,void 0),o}function be(){const e=We(this),t=0!==e.size,n=e.clear();return t&&X(e,"clear",void 0,void 0),n}function Te(e,t){return function(n,r){const i=this,o=i.__v_raw,a=We(o),s=t?fe:e?ce:ue;return!e&&$(a,0,D),o.forEach(((e,t)=>n.call(r,s(e),s(t),i)))}}function Se(e,t,n){return function(...r){const i=this.__v_raw,o=We(i),a=l(o),s="entries"===e||e===Symbol.iterator&&a,u="keys"===e&&a,c=i[e](...r),f=n?fe:t?ce:ue;return!t&&$(o,0,u?N:D),{next(){const{value:e,done:t}=c.next();return t?{value:e,done:t}:{value:s?[f(e[0]),f(e[1])]:f(e),done:t}},[Symbol.iterator](){return this}}}}function Ee(e){return function(...t){return"delete"!==e&&this}}const[we,_e,Ae,xe]=function(){const e={get(e){return he(this,e)},get size(){return me(this)},has:pe,add:ge,set:ve,delete:ye,clear:be,forEach:Te(!1,!1)},t={get(e){return he(this,e,!1,!0)},get size(){return me(this)},has:pe,add:ge,set:ve,delete:ye,clear:be,forEach:Te(!1,!0)},n={get(e){return he(this,e,!0)},get size(){return me(this,!0)},has(e){return pe.call(this,e,!0)},add:Ee("add"),set:Ee("set"),delete:Ee("delete"),clear:Ee("clear"),forEach:Te(!0,!1)},r={get(e){return he(this,e,!0,!0)},get size(){return me(this,!0)},has(e){return pe.call(this,e,!0)},add:Ee("add"),set:Ee("set"),delete:Ee("delete"),clear:Ee("clear"),forEach:Te(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach((i=>{e[i]=Se(i,!1,!1),n[i]=Se(i,!0,!1),t[i]=Se(i,!1,!0),r[i]=Se(i,!0,!0)})),[e,n,t,r]}();function ke(e,t){const n=t?e?xe:Ae:e?_e:we;return(t,r,i)=>"__v_isReactive"===r?!e:"__v_isReadonly"===r?e:"__v_raw"===r?t:Reflect.get(a(n,r)&&r in t?n:t,r,i)}const Le={get:ke(!1,!1)},Pe={get:ke(!1,!0)},Ce={get:ke(!0,!1)},Me={get:ke(!0,!0)},Re=new WeakMap,Oe=new WeakMap,Ie=new WeakMap,De=new WeakMap;function Ne(e){return e&&e.__v_isReadonly?e:Ue(e,!1,oe,Le,Re)}function Fe(e){return Ue(e,!1,se,Pe,Oe)}function Be(e){return Ue(e,!0,ae,Ce,Ie)}function Ge(e){return Ue(e,!0,le,Me,De)}function Ue(e,t,n,r,i){if(!f(e))return e;if(e.__v_raw&&(!t||!e.__v_isReactive))return e;const o=i.get(e);if(o)return o;const a=function(e){return e.__v_skip||!Object.isExtensible(e)?0:function(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}((e=>h(e).slice(8,-1))(e))}(e);if(0===a)return e;const s=new Proxy(e,2===a?r:n);return i.set(e,s),s}function He(e){return Ve(e)?He(e.__v_raw):!(!e||!e.__v_isReactive)}function Ve(e){return!(!e||!e.__v_isReadonly)}function je(e){return He(e)||Ve(e)}function We(e){const t=e&&e.__v_raw;return t?We(t):e}function $e(e){return((e,t,n)=>{Object.defineProperty(e,"__v_skip",{configurable:!0,enumerable:!1,value:!0})})(e),e}function Ke(e){K()&&((e=We(e)).dep||(e.dep=k()),Z(e.dep))}function Ze(e,t){(e=We(e)).dep&&z(e.dep)}const Xe=e=>f(e)?Ne(e):e;function ze(e){return Boolean(e&&!0===e.__v_isRef)}function qe(e){return Je(e,!1)}function Ye(e){return Je(e,!0)}class Qe{constructor(e,t){this._shallow=t,this.dep=void 0,this.__v_isRef=!0,this._rawValue=t?e:We(e),this._value=t?e:Xe(e)}get value(){return Ke(this),this._value}set value(e){e=this._shallow?e:We(e),b(e,this._rawValue)&&(this._rawValue=e,this._value=this._shallow?e:Xe(e),Ze(this))}}function Je(e,t){return ze(e)?e:new Qe(e,t)}function et(e){Ze(e)}function tt(e){return ze(e)?e.value:e}const nt={get:(e,t,n)=>tt(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const i=e[t];return ze(i)&&!ze(n)?(i.value=n,!0):Reflect.set(e,t,n,r)}};function rt(e){return He(e)?e:new Proxy(e,nt)}class it{constructor(e){this.dep=void 0,this.__v_isRef=!0;const{get:t,set:n}=e((()=>Ke(this)),(()=>Ze(this)));this._get=t,this._set=n}get value(){return this._get()}set value(e){this._set(e)}}function ot(e){return new it(e)}function at(e){const t=s(e)?new Array(e.length):{};for(const n in e)t[n]=lt(e,n);return t}class st{constructor(e,t){this._object=e,this._key=t,this.__v_isRef=!0}get value(){return this._object[this._key]}set value(e){this._object[this._key]=e}}function lt(e,t){const n=e[t];return ze(n)?n:new st(e,t)}class ut{constructor(e,t,n){this._setter=t,this.dep=void 0,this._dirty=!0,this.__v_isRef=!0,this.effect=new F(e,(()=>{this._dirty||(this._dirty=!0,Ze(this))})),this.__v_isReadonly=n}get value(){const e=We(this);return Ke(e),e._dirty&&(e._dirty=!1,e._value=e.effect.run()),e._value}set value(e){this._setter(e)}}function ct(e,t){let n,i;return u(e)?(n=e,i=r):(n=e.get,i=e.set),new ut(n,i,u(e)||!e.set)}Promise.resolve()},27875:(e,t,n)=>{"use strict";n.r(t),n.d(t,{EffectScope:()=>r.Bj,ReactiveEffect:()=>r.qq,computed:()=>r.Fl,customRef:()=>r.ZM,effect:()=>r.cE,effectScope:()=>r.B,getCurrentScope:()=>r.nZ,isProxy:()=>r.X3,isReactive:()=>r.PG,isReadonly:()=>r.$y,isRef:()=>r.dq,markRaw:()=>r.Xl,onScopeDispose:()=>r.EB,proxyRefs:()=>r.WL,reactive:()=>r.qj,readonly:()=>r.OT,ref:()=>r.iH,shallowReactive:()=>r.Um,shallowReadonly:()=>r.YS,shallowRef:()=>r.XI,stop:()=>r.sT,toRaw:()=>r.IU,toRef:()=>r.Vh,toRefs:()=>r.BK,triggerRef:()=>r.oR,unref:()=>r.SU,camelize:()=>i._A,capitalize:()=>i.kC,normalizeClass:()=>i.C_,normalizeProps:()=>i.vs,normalizeStyle:()=>i.j5,toDisplayString:()=>i.zw,toHandlerKey:()=>i.hR,BaseTransition:()=>N,Comment:()=>dt,Fragment:()=>ct,KeepAlive:()=>X,Static:()=>ht,Suspense:()=>x,Teleport:()=>nt,Text:()=>ft,callWithAsyncErrorHandling:()=>wn,callWithErrorHandling:()=>En,cloneVNode:()=>Ot,compatUtils:()=>Sr,createBlock:()=>wt,createCommentVNode:()=>Nt,createElementBlock:()=>Et,createElementVNode:()=>Ct,createHydrationRenderer:()=>Ze,createRenderer:()=>Ke,createSlots:()=>Vt,createStaticVNode:()=>Dt,createTextVNode:()=>It,createVNode:()=>Mt,defineAsyncComponent:()=>$,defineComponent:()=>j,defineEmits:()=>ir,defineExpose:()=>or,defineProps:()=>rr,devtools:()=>o,getCurrentInstance:()=>en,getTransitionRawChildren:()=>V,guardReactiveProps:()=>Rt,h:()=>dr,handleError:()=>_n,initCustomFormatter:()=>mr,inject:()=>O,isMemoSame:()=>vr,isRuntimeOnly:()=>fn,isVNode:()=>_t,mergeDefaults:()=>cr,mergeProps:()=>Ut,nextTick:()=>Bn,onActivated:()=>q,onBeforeMount:()=>ie,onBeforeUnmount:()=>le,onBeforeUpdate:()=>ae,onDeactivated:()=>Y,onErrorCaptured:()=>he,onMounted:()=>oe,onRenderTracked:()=>de,onRenderTriggered:()=>fe,onServerPrefetch:()=>ce,onUnmounted:()=>ue,onUpdated:()=>se,openBlock:()=>gt,popScopeId:()=>y,provide:()=>R,pushScopeId:()=>v,queuePostFlushCb:()=>Vn,registerRuntimeCompiler:()=>cn,renderList:()=>Ht,renderSlot:()=>jt,resolveComponent:()=>it,resolveDirective:()=>st,resolveDynamicComponent:()=>at,resolveFilter:()=>Tr,resolveTransitionHooks:()=>B,setBlockTracking:()=>Tt,setDevtoolsHook:()=>a,setTransitionHooks:()=>H,ssrContextKey:()=>hr,ssrUtils:()=>br,toHandlers:()=>$t,transformVNodeArgs:()=>xt,useAttrs:()=>lr,useSSRContext:()=>pr,useSlots:()=>sr,useTransitionState:()=>I,version:()=>yr,warn:()=>bn,watch:()=>Yn,watchEffect:()=>Zn,watchPostEffect:()=>Xn,watchSyncEffect:()=>zn,withAsyncContext:()=>fr,withCtx:()=>T,withDefaults:()=>ar,withDirectives:()=>Ne,withMemo:()=>gr,withScopeId:()=>b});var r=n(23517),i=n(99454);let o;function a(e){o=e}new Set,new Map;const s=c("component:added"),l=c("component:updated"),u=c("component:removed");function c(e){return t=>{o&&o.emit(e,t.appContext.app,t.uid,t.parent?t.parent.uid:void 0,t)}}function f(e,t,...n){const r=e.vnode.props||i.kT;let a=n;const s=t.startsWith("update:"),l=s&&t.slice(7);if(l&&l in r){const e=`${"modelValue"===l?"model":l}Modifiers`,{number:t,trim:o}=r[e]||i.kT;o?a=n.map((e=>e.trim())):t&&(a=n.map(i.He))}let u;__VUE_PROD_DEVTOOLS__&&function(e,t,n){o&&o.emit("component:emit",e.appContext.app,e,t,n)}(e,t,a);let c=r[u=(0,i.hR)(t)]||r[u=(0,i.hR)((0,i._A)(t))];!c&&s&&(c=r[u=(0,i.hR)((0,i.rs)(t))]),c&&wn(c,e,6,a);const f=r[u+"Once"];if(f){if(e.emitted){if(e.emitted[u])return}else e.emitted={};e.emitted[u]=!0,wn(f,e,6,a)}}function d(e,t,n=!1){const r=t.emitsCache,o=r.get(e);if(void 0!==o)return o;const a=e.emits;let s={},l=!1;if(__VUE_OPTIONS_API__&&!(0,i.mf)(e)){const r=e=>{const n=d(e,t,!0);n&&(l=!0,(0,i.l7)(s,n))};!n&&t.mixins.length&&t.mixins.forEach(r),e.extends&&r(e.extends),e.mixins&&e.mixins.forEach(r)}return a||l?((0,i.kJ)(a)?a.forEach((e=>s[e]=null)):(0,i.l7)(s,a),r.set(e,s),s):(r.set(e,null),null)}function h(e,t){return!(!e||!(0,i.F7)(t))&&(t=t.slice(2).replace(/Once$/,""),(0,i.RI)(e,t[0].toLowerCase()+t.slice(1))||(0,i.RI)(e,(0,i.rs)(t))||(0,i.RI)(e,t))}Object.create(null),Object.create(null);let p=null,m=null;function g(e){const t=p;return p=e,m=e&&e.type.__scopeId||null,t}function v(e){m=e}function y(){m=null}const b=e=>T;function T(e,t=p,n){if(!t)return e;if(e._n)return e;const r=(...n)=>{r._d&&Tt(-1);const i=g(t),o=e(...n);return g(i),r._d&&Tt(1),__VUE_PROD_DEVTOOLS__&&l(t),o};return r._n=!0,r._c=!0,r._d=!0,r}function S(e){const{type:t,vnode:n,proxy:r,withProxy:o,props:a,propsOptions:[s],slots:l,attrs:u,emit:c,render:f,renderCache:d,data:h,setupState:p,ctx:m,inheritAttrs:v}=e;let y;const b=g(e);try{let e;if(4&n.shapeFlag){const t=o||r;y=Ft(f.call(t,t,d,a,p,h,m)),e=u}else{const n=t;y=Ft(n.length>1?n(a,{attrs:u,slots:l,emit:c}):n(a,null)),e=t.props?u:E(u)}let g=y;if(e&&!1!==v){const t=Object.keys(e),{shapeFlag:n}=g;t.length&&7&n&&(s&&t.some(i.tR)&&(e=w(e,s)),g=Ot(g,e))}n.dirs&&(g.dirs=g.dirs?g.dirs.concat(n.dirs):n.dirs),n.transition&&(g.transition=n.transition),y=g}catch(t){pt.length=0,_n(t,e,1),y=Mt(dt)}return g(b),y}const E=e=>{let t;for(const n in e)("class"===n||"style"===n||(0,i.F7)(n))&&((t||(t={}))[n]=e[n]);return t},w=(e,t)=>{const n={};for(const r in e)(0,i.tR)(r)&&r.slice(9)in t||(n[r]=e[r]);return n};function _(e,t,n){const r=Object.keys(t);if(r.length!==Object.keys(e).length)return!0;for(let i=0;i<r.length;i++){const o=r[i];if(t[o]!==e[o]&&!h(n,o))return!0}return!1}function A({vnode:e,parent:t},n){for(;t&&t.subTree===e;)(e=t.vnode).el=n,t=t.parent}const x={name:"Suspense",__isSuspense:!0,process(e,t,n,r,i,o,a,s,l,u){null==e?function(e,t,n,r,i,o,a,s,l){const{p:u,o:{createElement:c}}=l,f=c("div"),d=e.suspense=L(e,i,r,t,f,n,o,a,s,l);u(null,d.pendingBranch=e.ssContent,f,null,r,d,o,a),d.deps>0?(k(e,"onPending"),k(e,"onFallback"),u(null,e.ssFallback,t,n,r,null,o,a),M(d,e.ssFallback)):d.resolve()}(t,n,r,i,o,a,s,l,u):function(e,t,n,r,i,o,a,s,{p:l,um:u,o:{createElement:c}}){const f=t.suspense=e.suspense;f.vnode=t,t.el=e.el;const d=t.ssContent,h=t.ssFallback,{activeBranch:p,pendingBranch:m,isInFallback:g,isHydrating:v}=f;if(m)f.pendingBranch=d,At(d,m)?(l(m,d,f.hiddenContainer,null,i,f,o,a,s),f.deps<=0?f.resolve():g&&(l(p,h,n,r,i,null,o,a,s),M(f,h))):(f.pendingId++,v?(f.isHydrating=!1,f.activeBranch=m):u(m,i,f),f.deps=0,f.effects.length=0,f.hiddenContainer=c("div"),g?(l(null,d,f.hiddenContainer,null,i,f,o,a,s),f.deps<=0?f.resolve():(l(p,h,n,r,i,null,o,a,s),M(f,h))):p&&At(d,p)?(l(p,d,n,r,i,f,o,a,s),f.resolve(!0)):(l(null,d,f.hiddenContainer,null,i,f,o,a,s),f.deps<=0&&f.resolve()));else if(p&&At(d,p))l(p,d,n,r,i,f,o,a,s),M(f,d);else if(k(t,"onPending"),f.pendingBranch=d,f.pendingId++,l(null,d,f.hiddenContainer,null,i,f,o,a,s),f.deps<=0)f.resolve();else{const{timeout:e,pendingId:t}=f;e>0?setTimeout((()=>{f.pendingId===t&&f.fallback(h)}),e):0===e&&f.fallback(h)}}(e,t,n,r,i,a,s,l,u)},hydrate:function(e,t,n,r,i,o,a,s,l){const u=t.suspense=L(t,r,n,e.parentNode,document.createElement("div"),null,i,o,a,s,!0),c=l(e,u.pendingBranch=t.ssContent,n,u,o,a);return 0===u.deps&&u.resolve(),c},create:L,normalize:function(e){const{shapeFlag:t,children:n}=e,r=32&t;e.ssContent=P(r?n.default:n),e.ssFallback=r?P(n.fallback):Mt(dt)}};function k(e,t){const n=e.props&&e.props[t];(0,i.mf)(n)&&n()}function L(e,t,n,r,o,a,s,l,u,c,f=!1){const{p:d,m:h,um:p,n:m,o:{parentNode:g,remove:v}}=c,y=(0,i.He)(e.props&&e.props.timeout),b={vnode:e,parent:t,parentComponent:n,isSVG:s,container:r,hiddenContainer:o,anchor:a,deps:0,pendingId:0,timeout:"number"==typeof y?y:-1,activeBranch:null,pendingBranch:null,isInFallback:!0,isHydrating:f,isUnmounted:!1,effects:[],resolve(e=!1){const{vnode:t,activeBranch:n,pendingBranch:r,pendingId:i,effects:o,parentComponent:a,container:s}=b;if(b.isHydrating)b.isHydrating=!1;else if(!e){const e=n&&r.transition&&"out-in"===r.transition.mode;e&&(n.transition.afterLeave=()=>{i===b.pendingId&&h(r,s,t,0)});let{anchor:t}=b;n&&(t=m(n),p(n,a,b,!0)),e||h(r,s,t,0)}M(b,r),b.pendingBranch=null,b.isInFallback=!1;let l=b.parent,u=!1;for(;l;){if(l.pendingBranch){l.effects.push(...o),u=!0;break}l=l.parent}u||Vn(o),b.effects=[],k(t,"onResolve")},fallback(e){if(!b.pendingBranch)return;const{vnode:t,activeBranch:n,parentComponent:r,container:i,isSVG:o}=b;k(t,"onFallback");const a=m(n),s=()=>{b.isInFallback&&(d(null,e,i,a,r,null,o,l,u),M(b,e))},c=e.transition&&"out-in"===e.transition.mode;c&&(n.transition.afterLeave=s),b.isInFallback=!0,p(n,r,null,!0),c||s()},move(e,t,n){b.activeBranch&&h(b.activeBranch,e,t,n),b.container=e},next:()=>b.activeBranch&&m(b.activeBranch),registerDep(e,t){const n=!!b.pendingBranch;n&&b.deps++;const r=e.vnode.el;e.asyncDep.catch((t=>{_n(t,e,0)})).then((i=>{if(e.isUnmounted||b.isUnmounted||b.pendingId!==e.suspenseId)return;e.asyncResolved=!0;const{vnode:o}=e;un(e,i,!1),r&&(o.el=r);const a=!r&&e.subTree.el;t(e,o,g(r||e.subTree.el),r?null:m(e.subTree),b,s,u),a&&v(a),A(e,o.el),n&&0==--b.deps&&b.resolve()}))},unmount(e,t){b.isUnmounted=!0,b.activeBranch&&p(b.activeBranch,n,e,t),b.pendingBranch&&p(b.pendingBranch,n,e,t)}};return b}function P(e){let t;if((0,i.mf)(e)){const n=e._c;n&&(e._d=!1,gt()),e=e(),n&&(e._d=!0,t=mt,vt())}if((0,i.kJ)(e)){const t=function(e){let t;for(let n=0;n<e.length;n++){const r=e[n];if(!_t(r))return;if(r.type!==dt||"v-if"===r.children){if(t)return;t=r}}return t}(e);e=t}return e=Ft(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter((t=>t!==e))),e}function C(e,t){t&&t.pendingBranch?(0,i.kJ)(e)?t.effects.push(...e):t.effects.push(e):Vn(e)}function M(e,t){e.activeBranch=t;const{vnode:n,parentComponent:r}=e,i=n.el=t.el;r&&r.subTree===n&&(r.vnode.el=i,A(r,i))}function R(e,t){if(Jt){let n=Jt.provides;const r=Jt.parent&&Jt.parent.provides;r===n&&(n=Jt.provides=Object.create(r)),n[e]=t}}function O(e,t,n=!1){const r=Jt||p;if(r){const o=null==r.parent?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides;if(o&&e in o)return o[e];if(arguments.length>1)return n&&(0,i.mf)(t)?t.call(r.proxy):t}}function I(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return oe((()=>{e.isMounted=!0})),le((()=>{e.isUnmounting=!0})),e}const D=[Function,Array],N={name:"BaseTransition",props:{mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:D,onEnter:D,onAfterEnter:D,onEnterCancelled:D,onBeforeLeave:D,onLeave:D,onAfterLeave:D,onLeaveCancelled:D,onBeforeAppear:D,onAppear:D,onAfterAppear:D,onAppearCancelled:D},setup(e,{slots:t}){const n=en(),i=I();let o;return()=>{const a=t.default&&V(t.default(),!0);if(!a||!a.length)return;const s=(0,r.IU)(e),{mode:l}=s,u=a[0];if(i.isLeaving)return G(u);const c=U(u);if(!c)return G(u);const f=B(c,s,i,n);H(c,f);const d=n.subTree,h=d&&U(d);let p=!1;const{getTransitionKey:m}=c.type;if(m){const e=m();void 0===o?o=e:e!==o&&(o=e,p=!0)}if(h&&h.type!==dt&&(!At(c,h)||p)){const e=B(h,s,i,n);if(H(h,e),"out-in"===l)return i.isLeaving=!0,e.afterLeave=()=>{i.isLeaving=!1,n.update()},G(u);"in-out"===l&&c.type!==dt&&(e.delayLeave=(e,t,n)=>{F(i,h)[String(h.key)]=h,e._leaveCb=()=>{t(),e._leaveCb=void 0,delete f.delayedLeave},f.delayedLeave=n})}return u}}};function F(e,t){const{leavingVNodes:n}=e;let r=n.get(t.type);return r||(r=Object.create(null),n.set(t.type,r)),r}function B(e,t,n,r){const{appear:i,mode:o,persisted:a=!1,onBeforeEnter:s,onEnter:l,onAfterEnter:u,onEnterCancelled:c,onBeforeLeave:f,onLeave:d,onAfterLeave:h,onLeaveCancelled:p,onBeforeAppear:m,onAppear:g,onAfterAppear:v,onAppearCancelled:y}=t,b=String(e.key),T=F(n,e),S=(e,t)=>{e&&wn(e,r,9,t)},E={mode:o,persisted:a,beforeEnter(t){let r=s;if(!n.isMounted){if(!i)return;r=m||s}t._leaveCb&&t._leaveCb(!0);const o=T[b];o&&At(e,o)&&o.el._leaveCb&&o.el._leaveCb(),S(r,[t])},enter(e){let t=l,r=u,o=c;if(!n.isMounted){if(!i)return;t=g||l,r=v||u,o=y||c}let a=!1;const s=e._enterCb=t=>{a||(a=!0,S(t?o:r,[e]),E.delayedLeave&&E.delayedLeave(),e._enterCb=void 0)};t?(t(e,s),t.length<=1&&s()):s()},leave(t,r){const i=String(e.key);if(t._enterCb&&t._enterCb(!0),n.isUnmounting)return r();S(f,[t]);let o=!1;const a=t._leaveCb=n=>{o||(o=!0,r(),S(n?p:h,[t]),t._leaveCb=void 0,T[i]===e&&delete T[i])};T[i]=e,d?(d(t,a),d.length<=1&&a()):a()},clone:e=>B(e,t,n,r)};return E}function G(e){if(Z(e))return(e=Ot(e)).children=null,e}function U(e){return Z(e)?e.children?e.children[0]:void 0:e}function H(e,t){6&e.shapeFlag&&e.component?H(e.component.subTree,t):128&e.shapeFlag?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function V(e,t=!1){let n=[],r=0;for(let i=0;i<e.length;i++){const o=e[i];o.type===ct?(128&o.patchFlag&&r++,n=n.concat(V(o.children,t))):(t||o.type!==dt)&&n.push(o)}if(r>1)for(let e=0;e<n.length;e++)n[e].patchFlag=-2;return n}function j(e){return(0,i.mf)(e)?{setup:e,name:e.name}:e}const W=e=>!!e.type.__asyncLoader;function $(e){(0,i.mf)(e)&&(e={loader:e});const{loader:t,loadingComponent:n,errorComponent:o,delay:a=200,timeout:s,suspensible:l=!0,onError:u}=e;let c,f=null,d=0;const h=()=>{let e;return f||(e=f=t().catch((e=>{if(e=e instanceof Error?e:new Error(String(e)),u)return new Promise(((t,n)=>{u(e,(()=>t((d++,f=null,h()))),(()=>n(e)),d+1)}));throw e})).then((t=>e!==f&&f?f:(t&&(t.__esModule||"Module"===t[Symbol.toStringTag])&&(t=t.default),c=t,t))))};return j({name:"AsyncComponentWrapper",__asyncLoader:h,get __asyncResolved(){return c},setup(){const e=Jt;if(c)return()=>K(c,e);const t=t=>{f=null,_n(t,e,13,!o)};if(l&&e.suspense)return h().then((t=>()=>K(t,e))).catch((e=>(t(e),()=>o?Mt(o,{error:e}):null)));const i=(0,r.iH)(!1),u=(0,r.iH)(),d=(0,r.iH)(!!a);return a&&setTimeout((()=>{d.value=!1}),a),null!=s&&setTimeout((()=>{if(!i.value&&!u.value){const e=new Error(`Async component timed out after ${s}ms.`);t(e),u.value=e}}),s),h().then((()=>{i.value=!0,e.parent&&Z(e.parent.vnode)&&Gn(e.parent.update)})).catch((e=>{t(e),u.value=e})),()=>i.value&&c?K(c,e):u.value&&o?Mt(o,{error:u.value}):n&&!d.value?Mt(n):void 0}})}function K(e,{vnode:{ref:t,props:n,children:r}}){const i=Mt(e,n,r);return i.ref=t,i}const Z=e=>e.type.__isKeepAlive,X={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(e,{slots:t}){const n=en(),r=n.ctx;if(!r.renderer)return t.default;const o=new Map,a=new Set;let l=null;__VUE_PROD_DEVTOOLS__&&(n.__v_cache=o);const u=n.suspense,{renderer:{p:c,m:f,um:d,o:{createElement:h}}}=r,p=h("div");function m(e){ee(e),d(e,n,u)}function g(e){o.forEach(((t,n)=>{const r=gn(t.type);!r||e&&e(r)||v(n)}))}function v(e){const t=o.get(e);l&&t.type===l.type?l&&ee(l):m(t),o.delete(e),a.delete(e)}r.activate=(e,t,n,r,o)=>{const a=e.component;f(e,t,n,0,u),c(a.vnode,e,t,n,a,u,r,e.slotScopeIds,o),$e((()=>{a.isDeactivated=!1,a.a&&(0,i.ir)(a.a);const t=e.props&&e.props.onVnodeMounted;t&&qe(t,a.parent,e)}),u),__VUE_PROD_DEVTOOLS__&&s(a)},r.deactivate=e=>{const t=e.component;f(e,p,null,1,u),$e((()=>{t.da&&(0,i.ir)(t.da);const n=e.props&&e.props.onVnodeUnmounted;n&&qe(n,t.parent,e),t.isDeactivated=!0}),u),__VUE_PROD_DEVTOOLS__&&s(t)},Yn((()=>[e.include,e.exclude]),(([e,t])=>{e&&g((t=>z(e,t))),t&&g((e=>!z(t,e)))}),{flush:"post",deep:!0});let y=null;const b=()=>{null!=y&&o.set(y,te(n.subTree))};return oe(b),se(b),le((()=>{o.forEach((e=>{const{subTree:t,suspense:r}=n,i=te(t);if(e.type!==i.type)m(e);else{ee(i);const e=i.component.da;e&&$e(e,r)}}))})),()=>{if(y=null,!t.default)return null;const n=t.default(),r=n[0];if(n.length>1)return l=null,n;if(!_t(r)||!(4&r.shapeFlag||128&r.shapeFlag))return l=null,r;let i=te(r);const s=i.type,u=gn(W(i)?i.type.__asyncResolved||{}:s),{include:c,exclude:f,max:d}=e;if(c&&(!u||!z(c,u))||f&&u&&z(f,u))return l=i,r;const h=null==i.key?s:i.key,p=o.get(h);return i.el&&(i=Ot(i),128&r.shapeFlag&&(r.ssContent=i)),y=h,p?(i.el=p.el,i.component=p.component,i.transition&&H(i,i.transition),i.shapeFlag|=512,a.delete(h),a.add(h)):(a.add(h),d&&a.size>parseInt(d,10)&&v(a.values().next().value)),i.shapeFlag|=256,l=i,r}}};function z(e,t){return(0,i.kJ)(e)?e.some((e=>z(e,t))):(0,i.HD)(e)?e.split(",").indexOf(t)>-1:!!e.test&&e.test(t)}function q(e,t){Q(e,"a",t)}function Y(e,t){Q(e,"da",t)}function Q(e,t,n=Jt){const r=e.__wdc||(e.__wdc=()=>{let t=n;for(;t;){if(t.isDeactivated)return;t=t.parent}e()});if(ne(t,r,n),n){let e=n.parent;for(;e&&e.parent;)Z(e.parent.vnode)&&J(r,t,n,e),e=e.parent}}function J(e,t,n,r){const o=ne(t,e,r,!0);ue((()=>{(0,i.Od)(r[t],o)}),n)}function ee(e){let t=e.shapeFlag;256&t&&(t-=256),512&t&&(t-=512),e.shapeFlag=t}function te(e){return 128&e.shapeFlag?e.ssContent:e}function ne(e,t,n=Jt,i=!1){if(n){const o=n[e]||(n[e]=[]),a=t.__weh||(t.__weh=(...i)=>{if(n.isUnmounted)return;(0,r.Jd)(),tn(n);const o=wn(t,n,e,i);return nn(),(0,r.lk)(),o});return i?o.unshift(a):o.push(a),a}}const re=e=>(t,n=Jt)=>(!sn||"sp"===e)&&ne(e,t,n),ie=re("bm"),oe=re("m"),ae=re("bu"),se=re("u"),le=re("bum"),ue=re("um"),ce=re("sp"),fe=re("rtg"),de=re("rtc");function he(e,t=Jt){ne("ec",e,t)}let pe=!0;function me(e,t,n){wn((0,i.kJ)(e)?e.map((e=>e.bind(t.proxy))):e.bind(t.proxy),t,n)}function ge(e,t,n,r){const o=r.includes(".")?er(n,r):()=>n[r];if((0,i.HD)(e)){const n=t[e];(0,i.mf)(n)&&Yn(o,n)}else if((0,i.mf)(e))Yn(o,e.bind(n));else if((0,i.Kn)(e))if((0,i.kJ)(e))e.forEach((e=>ge(e,t,n,r)));else{const r=(0,i.mf)(e.handler)?e.handler.bind(n):t[e.handler];(0,i.mf)(r)&&Yn(o,r,e)}}function ve(e){const t=e.type,{mixins:n,extends:r}=t,{mixins:i,optionsCache:o,config:{optionMergeStrategies:a}}=e.appContext,s=o.get(t);let l;return s?l=s:i.length||n||r?(l={},i.length&&i.forEach((e=>ye(l,e,a,!0))),ye(l,t,a)):l=t,o.set(t,l),l}function ye(e,t,n,r=!1){const{mixins:i,extends:o}=t;o&&ye(e,o,n,!0),i&&i.forEach((t=>ye(e,t,n,!0)));for(const i in t)if(r&&"expose"===i);else{const r=be[i]||n&&n[i];e[i]=r?r(e[i],t[i]):t[i]}return e}const be={data:Te,props:we,emits:we,methods:we,computed:we,beforeCreate:Ee,created:Ee,beforeMount:Ee,mounted:Ee,beforeUpdate:Ee,updated:Ee,beforeDestroy:Ee,beforeUnmount:Ee,destroyed:Ee,unmounted:Ee,activated:Ee,deactivated:Ee,errorCaptured:Ee,serverPrefetch:Ee,components:we,directives:we,watch:function(e,t){if(!e)return t;if(!t)return e;const n=(0,i.l7)(Object.create(null),e);for(const r in t)n[r]=Ee(e[r],t[r]);return n},provide:Te,inject:function(e,t){return we(Se(e),Se(t))}};function Te(e,t){return t?e?function(){return(0,i.l7)((0,i.mf)(e)?e.call(this,this):e,(0,i.mf)(t)?t.call(this,this):t)}:t:e}function Se(e){if((0,i.kJ)(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function Ee(e,t){return e?[...new Set([].concat(e,t))]:t}function we(e,t){return e?(0,i.l7)((0,i.l7)(Object.create(null),e),t):t}function _e(e,t,n,o){const[a,s]=e.propsOptions;let l,u=!1;if(t)for(let r in t){if((0,i.Gg)(r))continue;const c=t[r];let f;a&&(0,i.RI)(a,f=(0,i._A)(r))?s&&s.includes(f)?(l||(l={}))[f]=c:n[f]=c:h(e.emitsOptions,r)||c!==o[r]&&(o[r]=c,u=!0)}if(s){const t=(0,r.IU)(n),o=l||i.kT;for(let r=0;r<s.length;r++){const l=s[r];n[l]=Ae(a,t,l,o[l],e,!(0,i.RI)(o,l))}}return u}function Ae(e,t,n,r,o,a){const s=e[n];if(null!=s){const e=(0,i.RI)(s,"default");if(e&&void 0===r){const e=s.default;if(s.type!==Function&&(0,i.mf)(e)){const{propsDefaults:i}=o;n in i?r=i[n]:(tn(o),r=i[n]=e.call(null,t),nn())}else r=e}s[0]&&(a&&!e?r=!1:!s[1]||""!==r&&r!==(0,i.rs)(n)||(r=!0))}return r}function xe(e,t,n=!1){const r=t.propsCache,o=r.get(e);if(o)return o;const a=e.props,s={},l=[];let u=!1;if(__VUE_OPTIONS_API__&&!(0,i.mf)(e)){const r=e=>{u=!0;const[n,r]=xe(e,t,!0);(0,i.l7)(s,n),r&&l.push(...r)};!n&&t.mixins.length&&t.mixins.forEach(r),e.extends&&r(e.extends),e.mixins&&e.mixins.forEach(r)}if(!a&&!u)return r.set(e,i.Z6),i.Z6;if((0,i.kJ)(a))for(let e=0;e<a.length;e++){const t=(0,i._A)(a[e]);ke(t)&&(s[t]=i.kT)}else if(a)for(const e in a){const t=(0,i._A)(e);if(ke(t)){const n=a[e],r=s[t]=(0,i.kJ)(n)||(0,i.mf)(n)?{type:n}:n;if(r){const e=Ce(Boolean,r.type),n=Ce(String,r.type);r[0]=e>-1,r[1]=n<0||e<n,(e>-1||(0,i.RI)(r,"default"))&&l.push(t)}}}const c=[s,l];return r.set(e,c),c}function ke(e){return"$"!==e[0]}function Le(e){const t=e&&e.toString().match(/^\s*function (\w+)/);return t?t[1]:null===e?"null":""}function Pe(e,t){return Le(e)===Le(t)}function Ce(e,t){return(0,i.kJ)(t)?t.findIndex((t=>Pe(t,e))):(0,i.mf)(t)&&Pe(t,e)?0:-1}const Me=e=>"_"===e[0]||"$stable"===e,Re=e=>(0,i.kJ)(e)?e.map(Ft):[Ft(e)],Oe=(e,t,n)=>{const r=T(((...e)=>Re(t(...e))),n);return r._c=!1,r},Ie=(e,t,n)=>{const r=e._ctx;for(const n in e){if(Me(n))continue;const o=e[n];if((0,i.mf)(o))t[n]=Oe(0,o,r);else if(null!=o){const e=Re(o);t[n]=()=>e}}},De=(e,t)=>{const n=Re(t);e.slots.default=()=>n};function Ne(e,t){if(null===p)return e;const n=p.proxy,r=e.dirs||(e.dirs=[]);for(let e=0;e<t.length;e++){let[o,a,s,l=i.kT]=t[e];(0,i.mf)(o)&&(o={mounted:o,updated:o}),o.deep&&tr(a),r.push({dir:o,instance:n,value:a,oldValue:void 0,arg:s,modifiers:l})}return e}function Fe(e,t,n,i){const o=e.dirs,a=t&&t.dirs;for(let s=0;s<o.length;s++){const l=o[s];a&&(l.oldValue=a[s].value);let u=l.dir[i];u&&((0,r.Jd)(),wn(u,n,8,[e.el,l,e,t]),(0,r.lk)())}}function Be(){return{app:null,config:{isNativeTag:i.NO,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let Ge=0;function Ue(e,t){return function(n,r=null){null==r||(0,i.Kn)(r)||(r=null);const a=Be(),s=new Set;let l=!1;const u=a.app={_uid:Ge++,_component:n,_props:r,_container:null,_context:a,_instance:null,version:yr,get config(){return a.config},set config(e){},use:(e,...t)=>(s.has(e)||(e&&(0,i.mf)(e.install)?(s.add(e),e.install(u,...t)):(0,i.mf)(e)&&(s.add(e),e(u,...t))),u),mixin:e=>(__VUE_OPTIONS_API__&&(a.mixins.includes(e)||a.mixins.push(e)),u),component:(e,t)=>t?(a.components[e]=t,u):a.components[e],directive:(e,t)=>t?(a.directives[e]=t,u):a.directives[e],mount(i,s,c){if(!l){const f=Mt(n,r);return f.appContext=a,s&&t?t(f,i):e(f,i,c),l=!0,u._container=i,i.__vue_app__=u,__VUE_PROD_DEVTOOLS__&&(u._instance=f.component,function(e,t){o&&o.emit("app:init",e,t,{Fragment:ct,Text:ft,Comment:dt,Static:ht})}(u,yr)),f.component.proxy}},unmount(){l&&(e(null,u._container),__VUE_PROD_DEVTOOLS__&&(u._instance=null,function(e){o&&o.emit("app:unmount",e)}(u)),delete u._container.__vue_app__)},provide:(e,t)=>(a.provides[e]=t,u)};return u}}let He=!1;const Ve=e=>/svg/.test(e.namespaceURI)&&"foreignObject"!==e.tagName,je=e=>8===e.nodeType;function We(e){const{mt:t,p:n,o:{patchProp:r,nextSibling:o,parentNode:a,remove:s,insert:l,createComment:u}}=e,c=(n,r,i,s,l,u=!1)=>{const g=je(n)&&"["===n.data,v=()=>p(n,r,i,s,l,g),{type:y,ref:b,shapeFlag:T}=r,S=n.nodeType;r.el=n;let E=null;switch(y){case ft:3!==S?E=v():(n.data!==r.children&&(He=!0,n.data=r.children),E=o(n));break;case dt:E=8!==S||g?v():o(n);break;case ht:if(1===S){E=n;const e=!r.children.length;for(let t=0;t<r.staticCount;t++)e&&(r.children+=E.outerHTML),t===r.staticCount-1&&(r.anchor=E),E=o(E);return E}E=v();break;case ct:E=g?h(n,r,i,s,l,u):v();break;default:if(1&T)E=1!==S||r.type.toLowerCase()!==n.tagName.toLowerCase()?v():f(n,r,i,s,l,u);else if(6&T){r.slotScopeIds=l;const e=a(n);if(t(r,e,null,i,s,Ve(e),u),E=g?m(n):o(n),W(r)){let t;g?(t=Mt(ct),t.anchor=E?E.previousSibling:e.lastChild):t=3===n.nodeType?It(""):Mt("div"),t.el=n,r.component.subTree=t}}else 64&T?E=8!==S?v():r.type.hydrate(n,r,i,s,l,u,e,d):128&T&&(E=r.type.hydrate(n,r,i,s,Ve(a(n)),l,u,e,c))}return null!=b&&ze(b,null,s,r),E},f=(e,t,n,o,a,l)=>{l=l||!!t.dynamicChildren;const{type:u,props:c,patchFlag:f,shapeFlag:h,dirs:p}=t,m="input"===u&&p||"option"===u;if(m||-1!==f){if(p&&Fe(t,null,n,"created"),c)if(m||!l||48&f)for(const t in c)(m&&t.endsWith("value")||(0,i.F7)(t)&&!(0,i.Gg)(t))&&r(e,t,null,c[t]);else c.onClick&&r(e,"onClick",null,c.onClick);let u;if((u=c&&c.onVnodeBeforeMount)&&qe(u,n,t),p&&Fe(t,null,n,"beforeMount"),((u=c&&c.onVnodeMounted)||p)&&C((()=>{u&&qe(u,n,t),p&&Fe(t,null,n,"mounted")}),o),16&h&&(!c||!c.innerHTML&&!c.textContent)){let r=d(e.firstChild,t,e,n,o,a,l);for(;r;){He=!0;const e=r;r=r.nextSibling,s(e)}}else 8&h&&e.textContent!==t.children&&(He=!0,e.textContent=t.children)}return e.nextSibling},d=(e,t,r,i,o,a,s)=>{s=s||!!t.dynamicChildren;const l=t.children,u=l.length;for(let t=0;t<u;t++){const u=s?l[t]:l[t]=Ft(l[t]);if(e)e=c(e,u,i,o,a,s);else{if(u.type===ft&&!u.children)continue;He=!0,n(null,u,r,null,i,o,Ve(r),a)}}return e},h=(e,t,n,r,i,s)=>{const{slotScopeIds:c}=t;c&&(i=i?i.concat(c):c);const f=a(e),h=d(o(e),t,f,n,r,i,s);return h&&je(h)&&"]"===h.data?o(t.anchor=h):(He=!0,l(t.anchor=u("]"),f,h),h)},p=(e,t,r,i,l,u)=>{if(He=!0,t.el=null,u){const t=m(e);for(;;){const n=o(e);if(!n||n===t)break;s(n)}}const c=o(e),f=a(e);return s(e),n(null,t,f,c,r,i,Ve(f),l),c},m=e=>{let t=0;for(;e;)if((e=o(e))&&je(e)&&("["===e.data&&t++,"]"===e.data)){if(0===t)return o(e);t--}return e};return[(e,t)=>{if(!t.hasChildNodes())return n(null,e,t),void Wn();He=!1,c(t.firstChild,e,null,null,null),Wn(),He&&console.error("Hydration completed but contains mismatches.")},c]}const $e=C;function Ke(e){return Xe(e)}function Ze(e){return Xe(e,We)}function Xe(e,t){if(function(){let e=!1;"boolean"!=typeof __VUE_OPTIONS_API__&&(e=!0,(0,i.E9)().__VUE_OPTIONS_API__=!0),"boolean"!=typeof __VUE_PROD_DEVTOOLS__&&(e=!0,(0,i.E9)().__VUE_PROD_DEVTOOLS__=!1)}(),__VUE_PROD_DEVTOOLS__){const e=(0,i.E9)();e.__VUE__=!0,a(e.__VUE_DEVTOOLS_GLOBAL_HOOK__)}const{insert:n,remove:o,patchProp:c,createElement:f,createText:d,createComment:p,setText:m,setElementText:g,parentNode:v,nextSibling:y,setScopeId:b=i.dG,cloneNode:T,insertStaticContent:E}=e,w=(e,t,n,r=null,i=null,o=null,a=!1,s=null,l=!!t.dynamicChildren)=>{if(e===t)return;e&&!At(e,t)&&(r=J(e),X(e,i,o,!0),e=null),-2===t.patchFlag&&(l=!1,t.dynamicChildren=null);const{type:u,ref:c,shapeFlag:f}=t;switch(u){case ft:x(e,t,n,r);break;case dt:k(e,t,n,r);break;case ht:null==e&&L(t,n,r,a);break;case ct:N(e,t,n,r,i,o,a,s,l);break;default:1&f?P(e,t,n,r,i,o,a,s,l):6&f?F(e,t,n,r,i,o,a,s,l):(64&f||128&f)&&u.process(e,t,n,r,i,o,a,s,l,te)}null!=c&&i&&ze(c,e&&e.ref,o,t||e,!t)},x=(e,t,r,i)=>{if(null==e)n(t.el=d(t.children),r,i);else{const n=t.el=e.el;t.children!==e.children&&m(n,t.children)}},k=(e,t,r,i)=>{null==e?n(t.el=p(t.children||""),r,i):t.el=e.el},L=(e,t,n,r)=>{[e.el,e.anchor]=E(e.children,t,n,r)},P=(e,t,n,r,i,o,a,s,l)=>{a=a||"svg"===t.type,null==e?C(t,n,r,i,o,a,s,l):O(e,t,i,o,a,s,l)},C=(e,t,r,o,a,s,l,u)=>{let d,h;const{type:p,props:m,shapeFlag:v,transition:y,patchFlag:b,dirs:S}=e;if(e.el&&void 0!==T&&-1===b)d=e.el=T(e.el);else{if(d=e.el=f(e.type,s,m&&m.is,m),8&v?g(d,e.children):16&v&&R(e.children,d,null,o,a,s&&"foreignObject"!==p,l,u),S&&Fe(e,null,o,"created"),m){for(const t in m)"value"===t||(0,i.Gg)(t)||c(d,t,null,m[t],s,e.children,o,a,Q);"value"in m&&c(d,"value",null,m.value),(h=m.onVnodeBeforeMount)&&qe(h,o,e)}M(d,e,e.scopeId,l,o)}__VUE_PROD_DEVTOOLS__&&(Object.defineProperty(d,"__vnode",{value:e,enumerable:!1}),Object.defineProperty(d,"__vueParentComponent",{value:o,enumerable:!1})),S&&Fe(e,null,o,"beforeMount");const E=(!a||a&&!a.pendingBranch)&&y&&!y.persisted;E&&y.beforeEnter(d),n(d,t,r),((h=m&&m.onVnodeMounted)||E||S)&&$e((()=>{h&&qe(h,o,e),E&&y.enter(d),S&&Fe(e,null,o,"mounted")}),a)},M=(e,t,n,r,i)=>{if(n&&b(e,n),r)for(let t=0;t<r.length;t++)b(e,r[t]);if(i&&t===i.subTree){const t=i.vnode;M(e,t,t.scopeId,t.slotScopeIds,i.parent)}},R=(e,t,n,r,i,o,a,s,l=0)=>{for(let u=l;u<e.length;u++){const l=e[u]=s?Bt(e[u]):Ft(e[u]);w(null,l,t,n,r,i,o,a,s)}},O=(e,t,n,r,o,a,s)=>{const l=t.el=e.el;let{patchFlag:u,dynamicChildren:f,dirs:d}=t;u|=16&e.patchFlag;const h=e.props||i.kT,p=t.props||i.kT;let m;(m=p.onVnodeBeforeUpdate)&&qe(m,n,t,e),d&&Fe(t,e,n,"beforeUpdate");const v=o&&"foreignObject"!==t.type;if(f?I(e.dynamicChildren,f,l,n,r,v,a):s||V(e,t,l,null,n,r,v,a,!1),u>0){if(16&u)D(l,t,h,p,n,r,o);else if(2&u&&h.class!==p.class&&c(l,"class",null,p.class,o),4&u&&c(l,"style",h.style,p.style,o),8&u){const i=t.dynamicProps;for(let t=0;t<i.length;t++){const a=i[t],s=h[a],u=p[a];u===s&&"value"!==a||c(l,a,s,u,o,e.children,n,r,Q)}}1&u&&e.children!==t.children&&g(l,t.children)}else s||null!=f||D(l,t,h,p,n,r,o);((m=p.onVnodeUpdated)||d)&&$e((()=>{m&&qe(m,n,t,e),d&&Fe(t,e,n,"updated")}),r)},I=(e,t,n,r,i,o,a)=>{for(let s=0;s<t.length;s++){const l=e[s],u=t[s],c=l.el&&(l.type===ct||!At(l,u)||70&l.shapeFlag)?v(l.el):n;w(l,u,c,null,r,i,o,a,!0)}},D=(e,t,n,r,o,a,s)=>{if(n!==r){for(const l in r){if((0,i.Gg)(l))continue;const u=r[l],f=n[l];u!==f&&"value"!==l&&c(e,l,f,u,s,t.children,o,a,Q)}if(n!==i.kT)for(const l in n)(0,i.Gg)(l)||l in r||c(e,l,n[l],null,s,t.children,o,a,Q);"value"in r&&c(e,"value",n.value,r.value)}},N=(e,t,r,i,o,a,s,l,u)=>{const c=t.el=e?e.el:d(""),f=t.anchor=e?e.anchor:d("");let{patchFlag:h,dynamicChildren:p,slotScopeIds:m}=t;m&&(l=l?l.concat(m):m),null==e?(n(c,r,i),n(f,r,i),R(t.children,r,f,o,a,s,l,u)):h>0&&64&h&&p&&e.dynamicChildren?(I(e.dynamicChildren,p,r,o,a,s,l),(null!=t.key||o&&t===o.subTree)&&Ye(e,t,!0)):V(e,t,r,f,o,a,s,l,u)},F=(e,t,n,r,i,o,a,s,l)=>{t.slotScopeIds=s,null==e?512&t.shapeFlag?i.ctx.activate(t,n,r,a,l):B(t,n,r,i,o,a,l):G(e,t,l)},B=(e,t,n,r,i,o,a)=>{const s=e.component=Qt(e,r,i);if(Z(e)&&(s.ctx.renderer=te),ln(s),s.asyncDep){if(i&&i.registerDep(s,U),!e.el){const e=s.subTree=Mt(dt);k(null,e,t,n)}}else U(s,e,t,n,i,o,a)},G=(e,t,n)=>{const r=t.component=e.component;if(function(e,t,n){const{props:r,children:i,component:o}=e,{props:a,children:s,patchFlag:l}=t,u=o.emitsOptions;if(t.dirs||t.transition)return!0;if(!(n&&l>=0))return!(!i&&!s||s&&s.$stable)||r!==a&&(r?!a||_(r,a,u):!!a);if(1024&l)return!0;if(16&l)return r?_(r,a,u):!!a;if(8&l){const e=t.dynamicProps;for(let t=0;t<e.length;t++){const n=e[t];if(a[n]!==r[n]&&!h(u,n))return!0}}return!1}(e,t,n)){if(r.asyncDep&&!r.asyncResolved)return void H(r,t,n);r.next=t,function(e){const t=kn.indexOf(e);t>Ln&&kn.splice(t,1)}(r.update),r.update()}else t.component=e.component,t.el=e.el,r.vnode=t},U=(e,t,n,o,a,u,c)=>{const f=new r.qq((()=>{if(e.isMounted){let t,{next:n,bu:r,u:o,parent:s,vnode:d}=e,h=n;f.allowRecurse=!1,n?(n.el=d.el,H(e,n,c)):n=d,r&&(0,i.ir)(r),(t=n.props&&n.props.onVnodeBeforeUpdate)&&qe(t,s,n,d),f.allowRecurse=!0;const p=S(e),m=e.subTree;e.subTree=p,w(m,p,v(m.el),J(m),e,a,u),n.el=p.el,null===h&&A(e,p.el),o&&$e(o,a),(t=n.props&&n.props.onVnodeUpdated)&&$e((()=>qe(t,s,n,d)),a),__VUE_PROD_DEVTOOLS__&&l(e)}else{let r;const{el:l,props:c}=t,{bm:d,m:h,parent:p}=e,m=W(t);if(f.allowRecurse=!1,d&&(0,i.ir)(d),!m&&(r=c&&c.onVnodeBeforeMount)&&qe(r,p,t),f.allowRecurse=!0,l&&re){const n=()=>{e.subTree=S(e),re(l,e.subTree,e,a,null)};m?t.type.__asyncLoader().then((()=>!e.isUnmounted&&n())):n()}else{const r=e.subTree=S(e);w(null,r,n,o,e,a,u),t.el=r.el}if(h&&$e(h,a),!m&&(r=c&&c.onVnodeMounted)){const e=t;$e((()=>qe(r,p,e)),a)}256&t.shapeFlag&&e.a&&$e(e.a,a),e.isMounted=!0,__VUE_PROD_DEVTOOLS__&&s(e),t=n=o=null}}),(()=>Gn(e.update)),e.scope),d=e.update=f.run.bind(f);d.id=e.uid,f.allowRecurse=d.allowRecurse=!0,d()},H=(e,t,n)=>{t.component=e;const o=e.vnode.props;e.vnode=t,e.next=null,function(e,t,n,o){const{props:a,attrs:s,vnode:{patchFlag:l}}=e,u=(0,r.IU)(a),[c]=e.propsOptions;let f=!1;if(!(o||l>0)||16&l){let r;_e(e,t,a,s)&&(f=!0);for(const o in u)t&&((0,i.RI)(t,o)||(r=(0,i.rs)(o))!==o&&(0,i.RI)(t,r))||(c?!n||void 0===n[o]&&void 0===n[r]||(a[o]=Ae(c,u,o,void 0,e,!0)):delete a[o]);if(s!==u)for(const e in s)t&&(0,i.RI)(t,e)||(delete s[e],f=!0)}else if(8&l){const n=e.vnode.dynamicProps;for(let r=0;r<n.length;r++){let o=n[r];const l=t[o];if(c)if((0,i.RI)(s,o))l!==s[o]&&(s[o]=l,f=!0);else{const t=(0,i._A)(o);a[t]=Ae(c,u,t,l,e,!1)}else l!==s[o]&&(s[o]=l,f=!0)}}f&&(0,r.X$)(e,"set","$attrs")}(e,t.props,o,n),((e,t,n)=>{const{vnode:r,slots:o}=e;let a=!0,s=i.kT;if(32&r.shapeFlag){const e=t._;e?n&&1===e?a=!1:((0,i.l7)(o,t),n||1!==e||delete o._):(a=!t.$stable,Ie(t,o)),s=t}else t&&(De(e,t),s={default:1});if(a)for(const e in o)Me(e)||e in s||delete o[e]})(e,t.children,n),(0,r.Jd)(),jn(void 0,e.update),(0,r.lk)()},V=(e,t,n,r,i,o,a,s,l=!1)=>{const u=e&&e.children,c=e?e.shapeFlag:0,f=t.children,{patchFlag:d,shapeFlag:h}=t;if(d>0){if(128&d)return void $(u,f,n,r,i,o,a,s,l);if(256&d)return void j(u,f,n,r,i,o,a,s,l)}8&h?(16&c&&Q(u,i,o),f!==u&&g(n,f)):16&c?16&h?$(u,f,n,r,i,o,a,s,l):Q(u,i,o,!0):(8&c&&g(n,""),16&h&&R(f,n,r,i,o,a,s,l))},j=(e,t,n,r,o,a,s,l,u)=>{e=e||i.Z6,t=t||i.Z6;const c=e.length,f=t.length,d=Math.min(c,f);let h;for(h=0;h<d;h++){const r=t[h]=u?Bt(t[h]):Ft(t[h]);w(e[h],r,n,null,o,a,s,l,u)}c>f?Q(e,o,a,!0,!1,d):R(t,n,r,o,a,s,l,u,d)},$=(e,t,n,r,o,a,s,l,u)=>{let c=0;const f=t.length;let d=e.length-1,h=f-1;for(;c<=d&&c<=h;){const r=e[c],i=t[c]=u?Bt(t[c]):Ft(t[c]);if(!At(r,i))break;w(r,i,n,null,o,a,s,l,u),c++}for(;c<=d&&c<=h;){const r=e[d],i=t[h]=u?Bt(t[h]):Ft(t[h]);if(!At(r,i))break;w(r,i,n,null,o,a,s,l,u),d--,h--}if(c>d){if(c<=h){const e=h+1,i=e<f?t[e].el:r;for(;c<=h;)w(null,t[c]=u?Bt(t[c]):Ft(t[c]),n,i,o,a,s,l,u),c++}}else if(c>h)for(;c<=d;)X(e[c],o,a,!0),c++;else{const p=c,m=c,g=new Map;for(c=m;c<=h;c++){const e=t[c]=u?Bt(t[c]):Ft(t[c]);null!=e.key&&g.set(e.key,c)}let v,y=0;const b=h-m+1;let T=!1,S=0;const E=new Array(b);for(c=0;c<b;c++)E[c]=0;for(c=p;c<=d;c++){const r=e[c];if(y>=b){X(r,o,a,!0);continue}let i;if(null!=r.key)i=g.get(r.key);else for(v=m;v<=h;v++)if(0===E[v-m]&&At(r,t[v])){i=v;break}void 0===i?X(r,o,a,!0):(E[i-m]=c+1,i>=S?S=i:T=!0,w(r,t[i],n,null,o,a,s,l,u),y++)}const _=T?function(e){const t=e.slice(),n=[0];let r,i,o,a,s;const l=e.length;for(r=0;r<l;r++){const l=e[r];if(0!==l){if(i=n[n.length-1],e[i]<l){t[r]=i,n.push(r);continue}for(o=0,a=n.length-1;o<a;)s=o+a>>1,e[n[s]]<l?o=s+1:a=s;l<e[n[o]]&&(o>0&&(t[r]=n[o-1]),n[o]=r)}}for(o=n.length,a=n[o-1];o-- >0;)n[o]=a,a=t[a];return n}(E):i.Z6;for(v=_.length-1,c=b-1;c>=0;c--){const e=m+c,i=t[e],d=e+1<f?t[e+1].el:r;0===E[c]?w(null,i,n,d,o,a,s,l,u):T&&(v<0||c!==_[v]?K(i,n,d,2):v--)}}},K=(e,t,r,i,o=null)=>{const{el:a,type:s,transition:l,children:u,shapeFlag:c}=e;if(6&c)K(e.component.subTree,t,r,i);else if(128&c)e.suspense.move(t,r,i);else if(64&c)s.move(e,t,r,te);else if(s!==ct)if(s!==ht)if(2!==i&&1&c&&l)if(0===i)l.beforeEnter(a),n(a,t,r),$e((()=>l.enter(a)),o);else{const{leave:e,delayLeave:i,afterLeave:o}=l,s=()=>n(a,t,r),u=()=>{e(a,(()=>{s(),o&&o()}))};i?i(a,s,u):u()}else n(a,t,r);else(({el:e,anchor:t},r,i)=>{let o;for(;e&&e!==t;)o=y(e),n(e,r,i),e=o;n(t,r,i)})(e,t,r);else{n(a,t,r);for(let e=0;e<u.length;e++)K(u[e],t,r,i);n(e.anchor,t,r)}},X=(e,t,n,r=!1,i=!1)=>{const{type:o,props:a,ref:s,children:l,dynamicChildren:u,shapeFlag:c,patchFlag:f,dirs:d}=e;if(null!=s&&ze(s,null,n,e,!0),256&c)return void t.ctx.deactivate(e);const h=1&c&&d,p=!W(e);let m;if(p&&(m=a&&a.onVnodeBeforeUnmount)&&qe(m,t,e),6&c)Y(e.component,n,r);else{if(128&c)return void e.suspense.unmount(n,r);h&&Fe(e,null,t,"beforeUnmount"),64&c?e.type.remove(e,t,n,i,te,r):u&&(o!==ct||f>0&&64&f)?Q(u,t,n,!1,!0):(o===ct&&384&f||!i&&16&c)&&Q(l,t,n),r&&z(e)}(p&&(m=a&&a.onVnodeUnmounted)||h)&&$e((()=>{m&&qe(m,t,e),h&&Fe(e,null,t,"unmounted")}),n)},z=e=>{const{type:t,el:n,anchor:r,transition:i}=e;if(t===ct)return void q(n,r);if(t===ht)return void(({el:e,anchor:t})=>{let n;for(;e&&e!==t;)n=y(e),o(e),e=n;o(t)})(e);const a=()=>{o(n),i&&!i.persisted&&i.afterLeave&&i.afterLeave()};if(1&e.shapeFlag&&i&&!i.persisted){const{leave:t,delayLeave:r}=i,o=()=>t(n,a);r?r(e.el,a,o):o()}else a()},q=(e,t)=>{let n;for(;e!==t;)n=y(e),o(e),e=n;o(t)},Y=(e,t,n)=>{const{bum:r,scope:o,update:a,subTree:s,um:l}=e;r&&(0,i.ir)(r),o.stop(),a&&(a.active=!1,X(s,e,t,n)),l&&$e(l,t),$e((()=>{e.isUnmounted=!0}),t),t&&t.pendingBranch&&!t.isUnmounted&&e.asyncDep&&!e.asyncResolved&&e.suspenseId===t.pendingId&&(t.deps--,0===t.deps&&t.resolve()),__VUE_PROD_DEVTOOLS__&&u(e)},Q=(e,t,n,r=!1,i=!1,o=0)=>{for(let a=o;a<e.length;a++)X(e[a],t,n,r,i)},J=e=>6&e.shapeFlag?J(e.component.subTree):128&e.shapeFlag?e.suspense.next():y(e.anchor||e.el),ee=(e,t,n)=>{null==e?t._vnode&&X(t._vnode,null,null,!0):w(t._vnode||null,e,t,null,null,null,n),Wn(),t._vnode=e},te={p:w,um:X,m:K,r:z,mt:B,mc:R,pc:V,pbc:I,n:J,o:e};let ne,re;return t&&([ne,re]=t(te)),{render:ee,hydrate:ne,createApp:Ue(ee,ne)}}function ze(e,t,n,o,a=!1){if((0,i.kJ)(e))return void e.forEach(((e,r)=>ze(e,t&&((0,i.kJ)(t)?t[r]:t),n,o,a)));if(W(o)&&!a)return;const s=4&o.shapeFlag?pn(o.component)||o.component.proxy:o.el,l=a?null:s,{i:u,r:c}=e,f=t&&t.r,d=u.refs===i.kT?u.refs={}:u.refs,h=u.setupState;if(null!=f&&f!==c&&((0,i.HD)(f)?(d[f]=null,(0,i.RI)(h,f)&&(h[f]=null)):(0,r.dq)(f)&&(f.value=null)),(0,i.HD)(c)){const e=()=>{d[c]=l,(0,i.RI)(h,c)&&(h[c]=l)};l?(e.id=-1,$e(e,n)):e()}else if((0,r.dq)(c)){const e=()=>{c.value=l};l?(e.id=-1,$e(e,n)):e()}else(0,i.mf)(c)&&En(c,u,12,[l,d])}function qe(e,t,n,r=null){wn(e,t,7,[n,r])}function Ye(e,t,n=!1){const r=e.children,o=t.children;if((0,i.kJ)(r)&&(0,i.kJ)(o))for(let e=0;e<r.length;e++){const t=r[e];let i=o[e];1&i.shapeFlag&&!i.dynamicChildren&&((i.patchFlag<=0||32===i.patchFlag)&&(i=o[e]=Bt(o[e]),i.el=t.el),n||Ye(t,i))}}const Qe=e=>e&&(e.disabled||""===e.disabled),Je=e=>"undefined"!=typeof SVGElement&&e instanceof SVGElement,et=(e,t)=>{const n=e&&e.to;return(0,i.HD)(n)?t?t(n):null:n};function tt(e,t,n,{o:{insert:r},m:i},o=2){0===o&&r(e.targetAnchor,t,n);const{el:a,anchor:s,shapeFlag:l,children:u,props:c}=e,f=2===o;if(f&&r(a,t,n),(!f||Qe(c))&&16&l)for(let e=0;e<u.length;e++)i(u[e],t,n,2);f&&r(s,t,n)}const nt={__isTeleport:!0,process(e,t,n,r,i,o,a,s,l,u){const{mc:c,pc:f,pbc:d,o:{insert:h,querySelector:p,createText:m,createComment:g}}=u,v=Qe(t.props);let{shapeFlag:y,children:b,dynamicChildren:T}=t;if(null==e){const e=t.el=m(""),u=t.anchor=m("");h(e,n,r),h(u,n,r);const f=t.target=et(t.props,p),d=t.targetAnchor=m("");f&&(h(d,f),a=a||Je(f));const g=(e,t)=>{16&y&&c(b,e,t,i,o,a,s,l)};v?g(n,u):f&&g(f,d)}else{t.el=e.el;const r=t.anchor=e.anchor,c=t.target=e.target,h=t.targetAnchor=e.targetAnchor,m=Qe(e.props),g=m?n:c,y=m?r:h;if(a=a||Je(c),T?(d(e.dynamicChildren,T,g,i,o,a,s),Ye(e,t,!0)):l||f(e,t,g,y,i,o,a,s,!1),v)m||tt(t,n,r,u,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const e=t.target=et(t.props,p);e&&tt(t,e,null,u,0)}else m&&tt(t,c,h,u,1)}},remove(e,t,n,r,{um:i,o:{remove:o}},a){const{shapeFlag:s,children:l,anchor:u,targetAnchor:c,target:f,props:d}=e;if(f&&o(c),(a||!Qe(d))&&(o(u),16&s))for(let e=0;e<l.length;e++){const r=l[e];i(r,t,n,!0,!!r.dynamicChildren)}},move:tt,hydrate:function(e,t,n,r,i,o,{o:{nextSibling:a,parentNode:s,querySelector:l}},u){const c=t.target=et(t.props,l);if(c){const l=c._lpa||c.firstChild;16&t.shapeFlag&&(Qe(t.props)?(t.anchor=u(a(e),t,s(e),n,r,i,o),t.targetAnchor=l):(t.anchor=a(e),t.targetAnchor=u(l,t,c,n,r,i,o)),c._lpa=t.targetAnchor&&a(t.targetAnchor))}return t.anchor&&a(t.anchor)}},rt="components";function it(e,t){return lt(rt,e,!0,t)||e}const ot=Symbol();function at(e){return(0,i.HD)(e)?lt(rt,e,!1)||e:e||ot}function st(e){return lt("directives",e)}function lt(e,t,n=!0,r=!1){const o=p||Jt;if(o){const n=o.type;if(e===rt){const e=gn(n);if(e&&(e===t||e===(0,i._A)(t)||e===(0,i.kC)((0,i._A)(t))))return n}const a=ut(o[e]||n[e],t)||ut(o.appContext[e],t);return!a&&r?n:a}}function ut(e,t){return e&&(e[t]||e[(0,i._A)(t)]||e[(0,i.kC)((0,i._A)(t))])}const ct=Symbol(void 0),ft=Symbol(void 0),dt=Symbol(void 0),ht=Symbol(void 0),pt=[];let mt=null;function gt(e=!1){pt.push(mt=e?null:[])}function vt(){pt.pop(),mt=pt[pt.length-1]||null}let yt,bt=1;function Tt(e){bt+=e}function St(e){return e.dynamicChildren=bt>0?mt||i.Z6:null,vt(),bt>0&&mt&&mt.push(e),e}function Et(e,t,n,r,i,o){return St(Ct(e,t,n,r,i,o,!0))}function wt(e,t,n,r,i){return St(Mt(e,t,n,r,i,!0))}function _t(e){return!!e&&!0===e.__v_isVNode}function At(e,t){return e.type===t.type&&e.key===t.key}function xt(e){yt=e}const kt="__vInternal",Lt=({key:e})=>null!=e?e:null,Pt=({ref:e})=>null!=e?(0,i.HD)(e)||(0,r.dq)(e)||(0,i.mf)(e)?{i:p,r:e}:e:null;function Ct(e,t=null,n=null,r=0,o=null,a=(e===ct?0:1),s=!1,l=!1){const u={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Lt(t),ref:t&&Pt(t),scopeId:m,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:a,patchFlag:r,dynamicProps:o,dynamicChildren:null,appContext:null};return l?(Gt(u,n),128&a&&e.normalize(u)):n&&(u.shapeFlag|=(0,i.HD)(n)?8:16),bt>0&&!s&&mt&&(u.patchFlag>0||6&a)&&32!==u.patchFlag&&mt.push(u),u}const Mt=function(e,t=null,n=null,o=0,a=null,s=!1){if(e&&e!==ot||(e=dt),_t(e)){const r=Ot(e,t,!0);return n&&Gt(r,n),r}if(function(e){return(0,i.mf)(e)&&"__vccOpts"in e}(e)&&(e=e.__vccOpts),t){t=Rt(t);let{class:e,style:n}=t;e&&!(0,i.HD)(e)&&(t.class=(0,i.C_)(e)),(0,i.Kn)(n)&&((0,r.X3)(n)&&!(0,i.kJ)(n)&&(n=(0,i.l7)({},n)),t.style=(0,i.j5)(n))}return Ct(e,t,n,o,a,(0,i.HD)(e)?1:(e=>e.__isSuspense)(e)?128:(e=>e.__isTeleport)(e)?64:(0,i.Kn)(e)?4:(0,i.mf)(e)?2:0,s,!0)};function Rt(e){return e?(0,r.X3)(e)||kt in e?(0,i.l7)({},e):e:null}function Ot(e,t,n=!1){const{props:r,ref:o,patchFlag:a,children:s}=e,l=t?Ut(r||{},t):r;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:l,key:l&&Lt(l),ref:t&&t.ref?n&&o?(0,i.kJ)(o)?o.concat(Pt(t)):[o,Pt(t)]:Pt(t):o,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:s,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==ct?-1===a?16:16|a:a,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Ot(e.ssContent),ssFallback:e.ssFallback&&Ot(e.ssFallback),el:e.el,anchor:e.anchor}}function It(e=" ",t=0){return Mt(ft,null,e,t)}function Dt(e,t){const n=Mt(ht,null,e);return n.staticCount=t,n}function Nt(e="",t=!1){return t?(gt(),wt(dt,null,e)):Mt(dt,null,e)}function Ft(e){return null==e||"boolean"==typeof e?Mt(dt):(0,i.kJ)(e)?Mt(ct,null,e.slice()):"object"==typeof e?Bt(e):Mt(ft,null,String(e))}function Bt(e){return null===e.el||e.memo?e:Ot(e)}function Gt(e,t){let n=0;const{shapeFlag:r}=e;if(null==t)t=null;else if((0,i.kJ)(t))n=16;else if("object"==typeof t){if(65&r){const n=t.default;return void(n&&(n._c&&(n._d=!1),Gt(e,n()),n._c&&(n._d=!0)))}{n=32;const r=t._;r||kt in t?3===r&&p&&(1===p.slots._?t._=1:(t._=2,e.patchFlag|=1024)):t._ctx=p}}else(0,i.mf)(t)?(t={default:t,_ctx:p},n=32):(t=String(t),64&r?(n=16,t=[It(t)]):n=8);e.children=t,e.shapeFlag|=n}function Ut(...e){const t={};for(let n=0;n<e.length;n++){const r=e[n];for(const e in r)if("class"===e)t.class!==r.class&&(t.class=(0,i.C_)([t.class,r.class]));else if("style"===e)t.style=(0,i.j5)([t.style,r.style]);else if((0,i.F7)(e)){const n=t[e],i=r[e];n!==i&&(t[e]=n?[].concat(n,i):i)}else""!==e&&(t[e]=r[e])}return t}function Ht(e,t,n,r){let o;const a=n&&n[r];if((0,i.kJ)(e)||(0,i.HD)(e)){o=new Array(e.length);for(let n=0,r=e.length;n<r;n++)o[n]=t(e[n],n,void 0,a&&a[n])}else if("number"==typeof e){o=new Array(e);for(let n=0;n<e;n++)o[n]=t(n+1,n,void 0,a&&a[n])}else if((0,i.Kn)(e))if(e[Symbol.iterator])o=Array.from(e,((e,n)=>t(e,n,void 0,a&&a[n])));else{const n=Object.keys(e);o=new Array(n.length);for(let r=0,i=n.length;r<i;r++){const i=n[r];o[r]=t(e[i],i,r,a&&a[r])}}else o=[];return n&&(n[r]=o),o}function Vt(e,t){for(let n=0;n<t.length;n++){const r=t[n];if((0,i.kJ)(r))for(let t=0;t<r.length;t++)e[r[t].name]=r[t].fn;else r&&(e[r.name]=r.fn)}return e}function jt(e,t,n={},r,i){if(p.isCE)return Mt("slot","default"===t?null:{name:t},r&&r());let o=e[t];o&&o._c&&(o._d=!1),gt();const a=o&&Wt(o(n)),s=wt(ct,{key:n.key||`_${t}`},a||(r?r():[]),a&&1===e._?64:-2);return!i&&s.scopeId&&(s.slotScopeIds=[s.scopeId+"-s"]),o&&o._c&&(o._d=!0),s}function Wt(e){return e.some((e=>!_t(e)||e.type!==dt&&!(e.type===ct&&!Wt(e.children))))?e:null}function $t(e){const t={};for(const n in e)t[(0,i.hR)(n)]=e[n];return t}const Kt=e=>e?rn(e)?pn(e)||e.proxy:Kt(e.parent):null,Zt=(0,i.l7)(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>Kt(e.parent),$root:e=>Kt(e.root),$emit:e=>e.emit,$options:e=>__VUE_OPTIONS_API__?ve(e):e.type,$forceUpdate:e=>()=>Gn(e.update),$nextTick:e=>Bn.bind(e.proxy),$watch:e=>__VUE_OPTIONS_API__?Jn.bind(e):i.dG}),Xt={get({_:e},t){const{ctx:n,setupState:o,data:a,props:s,accessCache:l,type:u,appContext:c}=e;let f;if("$"!==t[0]){const r=l[t];if(void 0!==r)switch(r){case 0:return o[t];case 1:return a[t];case 3:return n[t];case 2:return s[t]}else{if(o!==i.kT&&(0,i.RI)(o,t))return l[t]=0,o[t];if(a!==i.kT&&(0,i.RI)(a,t))return l[t]=1,a[t];if((f=e.propsOptions[0])&&(0,i.RI)(f,t))return l[t]=2,s[t];if(n!==i.kT&&(0,i.RI)(n,t))return l[t]=3,n[t];__VUE_OPTIONS_API__&&!pe||(l[t]=4)}}const d=Zt[t];let h,p;return d?("$attrs"===t&&(0,r.j)(e,"get",t),d(e)):(h=u.__cssModules)&&(h=h[t])?h:n!==i.kT&&(0,i.RI)(n,t)?(l[t]=3,n[t]):(p=c.config.globalProperties,(0,i.RI)(p,t)?p[t]:void 0)},set({_:e},t,n){const{data:r,setupState:o,ctx:a}=e;if(o!==i.kT&&(0,i.RI)(o,t))o[t]=n;else if(r!==i.kT&&(0,i.RI)(r,t))r[t]=n;else if((0,i.RI)(e.props,t))return!1;return!("$"===t[0]&&t.slice(1)in e||(a[t]=n,0))},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:o,propsOptions:a}},s){let l;return void 0!==n[s]||e!==i.kT&&(0,i.RI)(e,s)||t!==i.kT&&(0,i.RI)(t,s)||(l=a[0])&&(0,i.RI)(l,s)||(0,i.RI)(r,s)||(0,i.RI)(Zt,s)||(0,i.RI)(o.config.globalProperties,s)}},zt=(0,i.l7)({},Xt,{get(e,t){if(t!==Symbol.unscopables)return Xt.get(e,t,e)},has:(e,t)=>"_"!==t[0]&&!(0,i.e1)(t)}),qt=Be();let Yt=0;function Qt(e,t,n){const o=e.type,a=(t?t.appContext:e.appContext)||qt,s={uid:Yt++,vnode:e,type:o,parent:t,appContext:a,root:null,next:null,subTree:null,update:null,scope:new r.Bj(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(a.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:xe(o,a),emitsOptions:d(o,a),emit:null,emitted:null,propsDefaults:i.kT,inheritAttrs:o.inheritAttrs,ctx:i.kT,data:i.kT,props:i.kT,attrs:i.kT,slots:i.kT,refs:i.kT,setupState:i.kT,setupContext:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return s.ctx={_:s},s.root=t?t.root:s,s.emit=f.bind(null,s),e.ce&&e.ce(s),s}let Jt=null;const en=()=>Jt||p,tn=e=>{Jt=e,e.scope.on()},nn=()=>{Jt&&Jt.scope.off(),Jt=null};function rn(e){return 4&e.vnode.shapeFlag}let on,an,sn=!1;function ln(e,t=!1){sn=t;const{props:n,children:o}=e.vnode,a=rn(e);!function(e,t,n,o=!1){const a={},s={};(0,i.Nj)(s,kt,1),e.propsDefaults=Object.create(null),_e(e,t,a,s);for(const t in e.propsOptions[0])t in a||(a[t]=void 0);n?e.props=o?a:(0,r.Um)(a):e.type.props?e.props=a:e.props=s,e.attrs=s}(e,n,a,t),((e,t)=>{if(32&e.vnode.shapeFlag){const n=t._;n?(e.slots=(0,r.IU)(t),(0,i.Nj)(t,"_",n)):Ie(t,e.slots={})}else e.slots={},t&&De(e,t);(0,i.Nj)(e.slots,kt,1)})(e,o);const s=a?function(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=(0,r.Xl)(new Proxy(e.ctx,Xt));const{setup:o}=n;if(o){const n=e.setupContext=o.length>1?hn(e):null;tn(e),(0,r.Jd)();const a=En(o,e,0,[e.props,n]);if((0,r.lk)(),nn(),(0,i.tI)(a)){if(a.then(nn,nn),t)return a.then((n=>{un(e,n,t)})).catch((t=>{_n(t,e,0)}));e.asyncDep=a}else un(e,a,t)}else dn(e)}(e,t):void 0;return sn=!1,s}function un(e,t,n){(0,i.mf)(t)?e.render=t:(0,i.Kn)(t)&&(__VUE_PROD_DEVTOOLS__&&(e.devtoolsRawSetupState=t),e.setupState=(0,r.WL)(t)),dn(e)}function cn(e){on=e,an=e=>{e.render._rc&&(e.withProxy=new Proxy(e.ctx,zt))}}const fn=()=>!on;function dn(e,t,n){const o=e.type;if(!e.render){if(on&&!o.render){const t=o.template;if(t){const{isCustomElement:n,compilerOptions:r}=e.appContext.config,{delimiters:a,compilerOptions:s}=o,l=(0,i.l7)((0,i.l7)({isCustomElement:n,delimiters:a},r),s);o.render=on(t,l)}}e.render=o.render||i.dG,an&&an(e)}__VUE_OPTIONS_API__&&(tn(e),(0,r.Jd)(),function(e){const t=ve(e),n=e.proxy,o=e.ctx;pe=!1,t.beforeCreate&&me(t.beforeCreate,e,"bc");const{data:a,computed:s,methods:l,watch:u,provide:c,inject:f,created:d,beforeMount:h,mounted:p,beforeUpdate:m,updated:g,activated:v,deactivated:y,beforeDestroy:b,beforeUnmount:T,destroyed:S,unmounted:E,render:w,renderTracked:_,renderTriggered:A,errorCaptured:x,serverPrefetch:k,expose:L,inheritAttrs:P,components:C,directives:M,filters:I}=t;if(f&&function(e,t,n=i.dG,o=!1){(0,i.kJ)(e)&&(e=Se(e));for(const n in e){const a=e[n];let s;s=(0,i.Kn)(a)?"default"in a?O(a.from||n,a.default,!0):O(a.from||n):O(a),(0,r.dq)(s)&&o?Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>s.value,set:e=>s.value=e}):t[n]=s}}(f,o,null,e.appContext.config.unwrapInjectedRef),l)for(const e in l){const t=l[e];(0,i.mf)(t)&&(o[e]=t.bind(n))}if(a){const t=a.call(n,n);(0,i.Kn)(t)&&(e.data=(0,r.qj)(t))}if(pe=!0,s)for(const e in s){const t=s[e],a=(0,i.mf)(t)?t.bind(n,n):(0,i.mf)(t.get)?t.get.bind(n,n):i.dG,l=!(0,i.mf)(t)&&(0,i.mf)(t.set)?t.set.bind(n):i.dG,u=(0,r.Fl)({get:a,set:l});Object.defineProperty(o,e,{enumerable:!0,configurable:!0,get:()=>u.value,set:e=>u.value=e})}if(u)for(const e in u)ge(u[e],o,n,e);if(c){const e=(0,i.mf)(c)?c.call(n):c;Reflect.ownKeys(e).forEach((t=>{R(t,e[t])}))}function D(e,t){(0,i.kJ)(t)?t.forEach((t=>e(t.bind(n)))):t&&e(t.bind(n))}if(d&&me(d,e,"c"),D(ie,h),D(oe,p),D(ae,m),D(se,g),D(q,v),D(Y,y),D(he,x),D(de,_),D(fe,A),D(le,T),D(ue,E),D(ce,k),(0,i.kJ)(L))if(L.length){const t=e.exposed||(e.exposed={});L.forEach((e=>{Object.defineProperty(t,e,{get:()=>n[e],set:t=>n[e]=t})}))}else e.exposed||(e.exposed={});w&&e.render===i.dG&&(e.render=w),null!=P&&(e.inheritAttrs=P),C&&(e.components=C),M&&(e.directives=M)}(e),(0,r.lk)(),nn())}function hn(e){let t;return{get attrs(){return t||(t=function(e){return new Proxy(e.attrs,{get:(t,n)=>((0,r.j)(e,"get","$attrs"),t[n])})}(e))},slots:e.slots,emit:e.emit,expose:t=>{e.exposed=t||{}}}}function pn(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy((0,r.WL)((0,r.Xl)(e.exposed)),{get:(t,n)=>n in t?t[n]:n in Zt?Zt[n](e):void 0}))}const mn=/(?:^|[-_])(\w)/g;function gn(e){return(0,i.mf)(e)&&e.displayName||e.name}function vn(e,t,n=!1){let r=gn(t);if(!r&&t.__file){const e=t.__file.match(/([^/\\]+)\.\w+$/);e&&(r=e[1])}if(!r&&e&&e.parent){const n=e=>{for(const n in e)if(e[n]===t)return n};r=n(e.components||e.parent.type.components)||n(e.appContext.components)}return r?r.replace(mn,(e=>e.toUpperCase())).replace(/[-_]/g,""):n?"App":"Anonymous"}const yn=[];function bn(e,...t){(0,r.Jd)();const n=yn.length?yn[yn.length-1].component:null,i=n&&n.appContext.config.warnHandler,o=function(){let e=yn[yn.length-1];if(!e)return[];const t=[];for(;e;){const n=t[0];n&&n.vnode===e?n.recurseCount++:t.push({vnode:e,recurseCount:0});const r=e.component&&e.component.parent;e=r&&r.vnode}return t}();if(i)En(i,n,11,[e+t.join(""),n&&n.proxy,o.map((({vnode:e})=>`at <${vn(n,e.type)}>`)).join("\n"),o]);else{const n=[`[Vue warn]: ${e}`,...t];o.length&&n.push("\n",...function(e){const t=[];return e.forEach(((e,n)=>{t.push(...0===n?[]:["\n"],...function({vnode:e,recurseCount:t}){const n=t>0?`... (${t} recursive calls)`:"",r=!!e.component&&null==e.component.parent,i=` at <${vn(e.component,e.type,r)}`,o=">"+n;return e.props?[i,...Tn(e.props),o]:[i+o]}(e))})),t}(o)),console.warn(...n)}(0,r.lk)()}function Tn(e){const t=[],n=Object.keys(e);return n.slice(0,3).forEach((n=>{t.push(...Sn(n,e[n]))})),n.length>3&&t.push(" ..."),t}function Sn(e,t,n){return(0,i.HD)(t)?(t=JSON.stringify(t),n?t:[`${e}=${t}`]):"number"==typeof t||"boolean"==typeof t||null==t?n?t:[`${e}=${t}`]:(0,r.dq)(t)?(t=Sn(e,(0,r.IU)(t.value),!0),n?t:[`${e}=Ref<`,t,">"]):(0,i.mf)(t)?[`${e}=fn${t.name?`<${t.name}>`:""}`]:(t=(0,r.IU)(t),n?t:[`${e}=`,t])}function En(e,t,n,r){let i;try{i=r?e(...r):e()}catch(e){_n(e,t,n)}return i}function wn(e,t,n,r){if((0,i.mf)(e)){const o=En(e,t,n,r);return o&&(0,i.tI)(o)&&o.catch((e=>{_n(e,t,n)})),o}const o=[];for(let i=0;i<e.length;i++)o.push(wn(e[i],t,n,r));return o}function _n(e,t,n,r=!0){if(t&&t.vnode,t){let r=t.parent;const i=t.proxy,o=n;for(;r;){const t=r.ec;if(t)for(let n=0;n<t.length;n++)if(!1===t[n](e,i,o))return;r=r.parent}const a=t.appContext.config.errorHandler;if(a)return void En(a,null,10,[e,i,o])}!function(e,t,n,r=!0){console.error(e)}(e,0,0,r)}let An=!1,xn=!1;const kn=[];let Ln=0;const Pn=[];let Cn=null,Mn=0;const Rn=[];let On=null,In=0;const Dn=Promise.resolve();let Nn=null,Fn=null;function Bn(e){const t=Nn||Dn;return e?t.then(this?e.bind(this):e):t}function Gn(e){kn.length&&kn.includes(e,An&&e.allowRecurse?Ln+1:Ln)||e===Fn||(null==e.id?kn.push(e):kn.splice(function(e){let t=Ln+1,n=kn.length;for(;t<n;){const r=t+n>>>1;$n(kn[r])<e?t=r+1:n=r}return t}(e.id),0,e),Un())}function Un(){An||xn||(xn=!0,Nn=Dn.then(Kn))}function Hn(e,t,n,r){(0,i.kJ)(e)?n.push(...e):t&&t.includes(e,e.allowRecurse?r+1:r)||n.push(e),Un()}function Vn(e){Hn(e,On,Rn,In)}function jn(e,t=null){if(Pn.length){for(Fn=t,Cn=[...new Set(Pn)],Pn.length=0,Mn=0;Mn<Cn.length;Mn++)Cn[Mn]();Cn=null,Mn=0,Fn=null,jn(e,t)}}function Wn(e){if(Rn.length){const e=[...new Set(Rn)];if(Rn.length=0,On)return void On.push(...e);for(On=e,On.sort(((e,t)=>$n(e)-$n(t))),In=0;In<On.length;In++)On[In]();On=null,In=0}}const $n=e=>null==e.id?1/0:e.id;function Kn(e){xn=!1,An=!0,jn(e),kn.sort(((e,t)=>$n(e)-$n(t)));try{for(Ln=0;Ln<kn.length;Ln++){const e=kn[Ln];e&&!1!==e.active&&En(e,null,14)}}finally{Ln=0,kn.length=0,Wn(),An=!1,Nn=null,(kn.length||Pn.length||Rn.length)&&Kn(e)}}function Zn(e,t){return Qn(e,null,t)}function Xn(e,t){return Qn(e,null,{flush:"post"})}function zn(e,t){return Qn(e,null,{flush:"sync"})}const qn={};function Yn(e,t,n){return Qn(e,t,n)}function Qn(e,t,{immediate:n,deep:o,flush:a,onTrack:s,onTrigger:l}=i.kT){const u=Jt;let c,f,d=!1,h=!1;if((0,r.dq)(e)?(c=()=>e.value,d=!!e._shallow):(0,r.PG)(e)?(c=()=>e,o=!0):(0,i.kJ)(e)?(h=!0,d=e.some(r.PG),c=()=>e.map((e=>(0,r.dq)(e)?e.value:(0,r.PG)(e)?tr(e):(0,i.mf)(e)?En(e,u,2):void 0))):c=(0,i.mf)(e)?t?()=>En(e,u,2):()=>{if(!u||!u.isUnmounted)return f&&f(),wn(e,u,3,[p])}:i.dG,t&&o){const e=c;c=()=>tr(e())}let p=e=>{f=y.onStop=()=>{En(e,u,4)}},m=h?[]:qn;const g=()=>{if(y.active)if(t){const e=y.run();(o||d||(h?e.some(((e,t)=>(0,i.aU)(e,m[t]))):(0,i.aU)(e,m)))&&(f&&f(),wn(t,u,3,[e,m===qn?void 0:m,p]),m=e)}else y.run()};let v;g.allowRecurse=!!t,v="sync"===a?g:"post"===a?()=>$e(g,u&&u.suspense):()=>{!u||u.isMounted?function(e){Hn(e,Cn,Pn,Mn)}(g):g()};const y=new r.qq(c,v);return t?n?g():m=y.run():"post"===a?$e(y.run.bind(y),u&&u.suspense):y.run(),()=>{y.stop(),u&&u.scope&&(0,i.Od)(u.scope.effects,y)}}function Jn(e,t,n){const r=this.proxy,o=(0,i.HD)(e)?e.includes(".")?er(r,e):()=>r[e]:e.bind(r,r);let a;(0,i.mf)(t)?a=t:(a=t.handler,n=t);const s=Jt;tn(this);const l=Qn(o,a.bind(r),n);return s?tn(s):nn(),l}function er(e,t){const n=t.split(".");return()=>{let t=e;for(let e=0;e<n.length&&t;e++)t=t[n[e]];return t}}function tr(e,t=new Set){if(!(0,i.Kn)(e)||e.__v_skip)return e;if((t=t||new Set).has(e))return e;if(t.add(e),(0,r.dq)(e))tr(e.value,t);else if((0,i.kJ)(e))for(let n=0;n<e.length;n++)tr(e[n],t);else if((0,i.DM)(e)||(0,i._N)(e))e.forEach((e=>{tr(e,t)}));else if((0,i.PO)(e))for(const n in e)tr(e[n],t);return e}const nr=e=>"function"==typeof e;function rr(){return null}function ir(){return null}function or(e){}function ar(e,t){return null}function sr(){return ur().slots}function lr(){return ur().attrs}function ur(){const e=en();return e.setupContext||(e.setupContext=hn(e))}function cr(e,t){for(const n in t){const r=e[n];r?r.default=t[n]:null===r&&(e[n]={default:t[n]})}return e}function fr(e){const t=en();let n=e();var r;return nn(),(e=>null!==e&&"object"==typeof e)(r=n)&&nr(r.then)&&nr(r.catch)&&(n=n.catch((e=>{throw tn(t),e}))),[n,()=>tn(t)]}function dr(e,t,n){const r=arguments.length;return 2===r?(0,i.Kn)(t)&&!(0,i.kJ)(t)?_t(t)?Mt(e,null,[t]):Mt(e,t):Mt(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):3===r&&_t(n)&&(n=[n]),Mt(e,t,n))}const hr=Symbol(""),pr=()=>{{const e=O(hr);return e||bn("Server rendering context not provided. Make sure to only call useSSRContext() conditionally in the server build."),e}};function mr(){}function gr(e,t,n,r){const i=n[r];if(i&&vr(i,e))return i;const o=t();return o.memo=e.slice(),n[r]=o}function vr(e,t){const n=e.memo;if(n.length!=t.length)return!1;for(let e=0;e<n.length;e++)if(n[e]!==t[e])return!1;return bt>0&&mt&&mt.push(e),!0}const yr="3.2.11",br={createComponentInstance:Qt,setupComponent:ln,renderComponentRoot:S,setCurrentRenderingInstance:g,isVNode:_t,normalizeVNode:Ft},Tr=null,Sr=null},99454:(e,t,n)=>{"use strict";function r(e,t){const n=Object.create(null),r=e.split(",");for(let e=0;e<r.length;e++)n[r[e]]=!0;return t?e=>!!n[e.toLowerCase()]:e=>!!n[e]}n.d(t,{Z6:()=>p,kT:()=>h,NO:()=>g,dG:()=>m,_A:()=>F,kC:()=>U,Nj:()=>W,l7:()=>T,E9:()=>Z,aU:()=>V,RI:()=>w,rs:()=>G,ir:()=>j,kJ:()=>_,mf:()=>k,e1:()=>i,_N:()=>A,tR:()=>b,Kn:()=>P,F7:()=>y,PO:()=>O,tI:()=>C,Gg:()=>I,DM:()=>x,HD:()=>L,C_:()=>u,vs:()=>c,j5:()=>o,Od:()=>S,zw:()=>f,hR:()=>H,He:()=>$});const i=r("Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt");function o(e){if(_(e)){const t={};for(let n=0;n<e.length;n++){const r=e[n],i=L(r)?l(r):o(r);if(i)for(const e in i)t[e]=i[e]}return t}return L(e)||P(e)?e:void 0}const a=/;(?![^(]*\))/g,s=/:(.+)/;function l(e){const t={};return e.split(a).forEach((e=>{if(e){const n=e.split(s);n.length>1&&(t[n[0].trim()]=n[1].trim())}})),t}function u(e){let t="";if(L(e))t=e;else if(_(e))for(let n=0;n<e.length;n++){const r=u(e[n]);r&&(t+=r+" ")}else if(P(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}function c(e){if(!e)return null;let{class:t,style:n}=e;return t&&!L(t)&&(e.class=u(t)),n&&(e.style=o(n)),e}const f=e=>null==e?"":_(e)||P(e)&&(e.toString===M||!k(e.toString))?JSON.stringify(e,d,2):String(e),d=(e,t)=>t&&t.__v_isRef?d(e,t.value):A(t)?{[`Map(${t.size})`]:[...t.entries()].reduce(((e,[t,n])=>(e[`${t} =>`]=n,e)),{})}:x(t)?{[`Set(${t.size})`]:[...t.values()]}:!P(t)||_(t)||O(t)?t:String(t),h={},p=[],m=()=>{},g=()=>!1,v=/^on[^a-z]/,y=e=>v.test(e),b=e=>e.startsWith("onUpdate:"),T=Object.assign,S=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},E=Object.prototype.hasOwnProperty,w=(e,t)=>E.call(e,t),_=Array.isArray,A=e=>"[object Map]"===R(e),x=e=>"[object Set]"===R(e),k=e=>"function"==typeof e,L=e=>"string"==typeof e,P=e=>null!==e&&"object"==typeof e,C=e=>P(e)&&k(e.then)&&k(e.catch),M=Object.prototype.toString,R=e=>M.call(e),O=e=>"[object Object]"===R(e),I=r(",key,ref,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),D=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},N=/-(\w)/g,F=D((e=>e.replace(N,((e,t)=>t?t.toUpperCase():"")))),B=/\B([A-Z])/g,G=D((e=>e.replace(B,"-$1").toLowerCase())),U=D((e=>e.charAt(0).toUpperCase()+e.slice(1))),H=D((e=>e?`on${U(e)}`:"")),V=(e,t)=>!Object.is(e,t),j=(e,t)=>{for(let n=0;n<e.length;n++)e[n](t)},W=(e,t,n)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},$=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let K;const Z=()=>K||(K="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==n.g?n.g:{})},23678:(e,t,n)=>{"use strict";n.r(t),n.d(t,{BaseTransition:()=>r.BaseTransition,Comment:()=>r.Comment,EffectScope:()=>r.EffectScope,Fragment:()=>r.Fragment,KeepAlive:()=>r.KeepAlive,ReactiveEffect:()=>r.ReactiveEffect,Static:()=>r.Static,Suspense:()=>r.Suspense,Teleport:()=>r.Teleport,Text:()=>r.Text,Transition:()=>te,TransitionGroup:()=>be,VueElement:()=>X,callWithAsyncErrorHandling:()=>r.callWithAsyncErrorHandling,callWithErrorHandling:()=>r.callWithErrorHandling,camelize:()=>r.camelize,capitalize:()=>r.capitalize,cloneVNode:()=>r.cloneVNode,compatUtils:()=>r.compatUtils,computed:()=>r.computed,createApp:()=>qe,createBlock:()=>r.createBlock,createCommentVNode:()=>r.createCommentVNode,createElementBlock:()=>r.createElementBlock,createElementVNode:()=>r.createElementVNode,createHydrationRenderer:()=>r.createHydrationRenderer,createRenderer:()=>r.createRenderer,createSSRApp:()=>Ye,createSlots:()=>r.createSlots,createStaticVNode:()=>r.createStaticVNode,createTextVNode:()=>r.createTextVNode,createVNode:()=>r.createVNode,customRef:()=>r.customRef,defineAsyncComponent:()=>r.defineAsyncComponent,defineComponent:()=>r.defineComponent,defineCustomElement:()=>$,defineEmits:()=>r.defineEmits,defineExpose:()=>r.defineExpose,defineProps:()=>r.defineProps,defineSSRCustomElement:()=>K,devtools:()=>r.devtools,effect:()=>r.effect,effectScope:()=>r.effectScope,getCurrentInstance:()=>r.getCurrentInstance,getCurrentScope:()=>r.getCurrentScope,getTransitionRawChildren:()=>r.getTransitionRawChildren,guardReactiveProps:()=>r.guardReactiveProps,h:()=>r.h,handleError:()=>r.handleError,hydrate:()=>ze,initCustomFormatter:()=>r.initCustomFormatter,inject:()=>r.inject,isMemoSame:()=>r.isMemoSame,isProxy:()=>r.isProxy,isReactive:()=>r.isReactive,isReadonly:()=>r.isReadonly,isRef:()=>r.isRef,isRuntimeOnly:()=>r.isRuntimeOnly,isVNode:()=>r.isVNode,markRaw:()=>r.markRaw,mergeDefaults:()=>r.mergeDefaults,mergeProps:()=>r.mergeProps,nextTick:()=>r.nextTick,normalizeClass:()=>r.normalizeClass,normalizeProps:()=>r.normalizeProps,normalizeStyle:()=>r.normalizeStyle,onActivated:()=>r.onActivated,onBeforeMount:()=>r.onBeforeMount,onBeforeUnmount:()=>r.onBeforeUnmount,onBeforeUpdate:()=>r.onBeforeUpdate,onDeactivated:()=>r.onDeactivated,onErrorCaptured:()=>r.onErrorCaptured,onMounted:()=>r.onMounted,onRenderTracked:()=>r.onRenderTracked,onRenderTriggered:()=>r.onRenderTriggered,onScopeDispose:()=>r.onScopeDispose,onServerPrefetch:()=>r.onServerPrefetch,onUnmounted:()=>r.onUnmounted,onUpdated:()=>r.onUpdated,openBlock:()=>r.openBlock,popScopeId:()=>r.popScopeId,provide:()=>r.provide,proxyRefs:()=>r.proxyRefs,pushScopeId:()=>r.pushScopeId,queuePostFlushCb:()=>r.queuePostFlushCb,reactive:()=>r.reactive,readonly:()=>r.readonly,ref:()=>r.ref,registerRuntimeCompiler:()=>r.registerRuntimeCompiler,render:()=>Xe,renderList:()=>r.renderList,renderSlot:()=>r.renderSlot,resolveComponent:()=>r.resolveComponent,resolveDirective:()=>r.resolveDirective,resolveDynamicComponent:()=>r.resolveDynamicComponent,resolveFilter:()=>r.resolveFilter,resolveTransitionHooks:()=>r.resolveTransitionHooks,setBlockTracking:()=>r.setBlockTracking,setDevtoolsHook:()=>r.setDevtoolsHook,setTransitionHooks:()=>r.setTransitionHooks,shallowReactive:()=>r.shallowReactive,shallowReadonly:()=>r.shallowReadonly,shallowRef:()=>r.shallowRef,ssrContextKey:()=>r.ssrContextKey,ssrUtils:()=>r.ssrUtils,stop:()=>r.stop,toDisplayString:()=>r.toDisplayString,toHandlerKey:()=>r.toHandlerKey,toHandlers:()=>r.toHandlers,toRaw:()=>r.toRaw,toRef:()=>r.toRef,toRefs:()=>r.toRefs,transformVNodeArgs:()=>r.transformVNodeArgs,triggerRef:()=>r.triggerRef,unref:()=>r.unref,useAttrs:()=>r.useAttrs,useCssModule:()=>z,useCssVars:()=>q,useSSRContext:()=>r.useSSRContext,useSlots:()=>r.useSlots,useTransitionState:()=>r.useTransitionState,vModelCheckbox:()=>ke,vModelDynamic:()=>Ie,vModelRadio:()=>Pe,vModelSelect:()=>Ce,vModelText:()=>xe,vShow:()=>He,version:()=>r.version,warn:()=>r.warn,watch:()=>r.watch,watchEffect:()=>r.watchEffect,watchPostEffect:()=>r.watchPostEffect,watchSyncEffect:()=>r.watchSyncEffect,withAsyncContext:()=>r.withAsyncContext,withCtx:()=>r.withCtx,withDefaults:()=>r.withDefaults,withDirectives:()=>r.withDirectives,withKeys:()=>Ue,withMemo:()=>r.withMemo,withModifiers:()=>Be,withScopeId:()=>r.withScopeId});var r=n(27875),i=n(99454),o=n(23517);const a=function(e,t){const n=Object.create(null),r="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly".split(",");for(let e=0;e<r.length;e++)n[r[e]]=!0;return e=>!!n[e]}();function s(e){return!!e||""===e}function l(e,t){if(e===t)return!0;let n=m(e),r=m(t);if(n||r)return!(!n||!r)&&e.getTime()===t.getTime();if(n=h(e),r=h(t),n||r)return!(!n||!r)&&function(e,t){if(e.length!==t.length)return!1;let n=!0;for(let r=0;n&&r<e.length;r++)n=l(e[r],t[r]);return n}(e,t);if(n=y(e),r=y(t),n||r){if(!n||!r)return!1;if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e){const r=e.hasOwnProperty(n),i=t.hasOwnProperty(n);if(r&&!i||!r&&i||!l(e[n],t[n]))return!1}}return String(e)===String(t)}function u(e,t){return e.findIndex((e=>l(e,t)))}const c={},f=/^on[^a-z]/,d=Object.assign,h=(Object.prototype.hasOwnProperty,Array.isArray),p=e=>"[object Set]"===T(e),m=e=>e instanceof Date,g=e=>"function"==typeof e,v=e=>"string"==typeof e,y=e=>null!==e&&"object"==typeof e,b=Object.prototype.toString,T=e=>b.call(e),S=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},E=/-(\w)/g,w=S((e=>e.replace(E,((e,t)=>t?t.toUpperCase():"")))),_=/\B([A-Z])/g,A=S((e=>e.replace(_,"-$1").toLowerCase())),x=S((e=>e.charAt(0).toUpperCase()+e.slice(1))),k=(S((e=>e?`on${x(e)}`:"")),e=>{const t=parseFloat(e);return isNaN(t)?e:t}),L="undefined"!=typeof document?document:null,P=new Map,C={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{const i=t?L.createElementNS("http://www.w3.org/2000/svg",e):L.createElement(e,n?{is:n}:void 0);return"select"===e&&r&&null!=r.multiple&&i.setAttribute("multiple",r.multiple),i},createText:e=>L.createTextNode(e),createComment:e=>L.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>L.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},cloneNode(e){const t=e.cloneNode(!0);return"_value"in e&&(t._value=e._value),t},insertStaticContent(e,t,n,r){const i=n?n.previousSibling:t.lastChild;let o=P.get(e);if(!o){const t=L.createElement("template");if(t.innerHTML=r?`<svg>${e}</svg>`:e,o=t.content,r){const e=o.firstChild;for(;e.firstChild;)o.appendChild(e.firstChild);o.removeChild(e)}P.set(e,o)}return t.insertBefore(o.cloneNode(!0),n),[i?i.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},M=/\s*!important$/;function R(e,t,n){if(h(n))n.forEach((n=>R(e,t,n)));else if(t.startsWith("--"))e.setProperty(t,n);else{const r=function(e,t){const n=I[t];if(n)return n;let r=(0,i._A)(t);if("filter"!==r&&r in e)return I[t]=r;r=x(r);for(let n=0;n<O.length;n++){const i=O[n]+r;if(i in e)return I[t]=i}return t}(e,t);M.test(n)?e.setProperty(A(r),n.replace(M,""),"important"):e[r]=n}}const O=["Webkit","Moz","ms"],I={},D="http://www.w3.org/1999/xlink";let N=Date.now,F=!1;if("undefined"!=typeof window){N()>document.createEvent("Event").timeStamp&&(N=()=>performance.now());const e=navigator.userAgent.match(/firefox\/(\d+)/i);F=!!(e&&Number(e[1])<=53)}let B=0;const G=Promise.resolve(),U=()=>{B=0};function H(e,t,n,r){e.addEventListener(t,n,r)}function V(e,t,n,i,o=null){const a=e._vei||(e._vei={}),s=a[t];if(i&&s)s.value=i;else{const[n,l]=function(e){let t;if(j.test(e)){let n;for(t={};n=e.match(j);)e=e.slice(0,e.length-n[0].length),t[n[0].toLowerCase()]=!0}return[A(e.slice(2)),t]}(t);i?H(e,n,a[t]=function(e,t){const n=e=>{const i=e.timeStamp||N();(F||i>=n.attached-1)&&(0,r.callWithAsyncErrorHandling)(function(e,t){if(h(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map((e=>t=>!t._stopped&&e(t)))}return t}(e,n.value),t,5,[e])};return n.value=e,n.attached=B||(G.then(U),B=N()),n}(i,o),l):s&&(function(e,t,n,r){e.removeEventListener(t,n,r)}(e,n,s,l),a[t]=void 0)}}const j=/(?:Once|Passive|Capture)$/,W=/^on[a-z]/;function $(e,t){const n=(0,r.defineComponent)(e);class i extends X{constructor(e){super(n,e,t)}}return i.def=n,i}const K=e=>$(e,ze),Z="undefined"!=typeof HTMLElement?HTMLElement:class{};class X extends Z{constructor(e,t={},n){super(),this._def=e,this._props=t,this._instance=null,this._connected=!1,this._resolved=!1,this.shadowRoot&&n?n(this._createVNode(),this.shadowRoot):this.attachShadow({mode:"open"});for(let e=0;e<this.attributes.length;e++)this._setAttr(this.attributes[e].name);new MutationObserver((e=>{for(const t of e)this._setAttr(t.attributeName)})).observe(this,{attributes:!0})}connectedCallback(){this._connected=!0,this._instance||(this._resolveDef(),Xe(this._createVNode(),this.shadowRoot))}disconnectedCallback(){this._connected=!1,(0,r.nextTick)((()=>{this._connected||(Xe(null,this.shadowRoot),this._instance=null)}))}_resolveDef(){if(this._resolved)return;const e=e=>{this._resolved=!0;for(const e of Object.keys(this))"_"!==e[0]&&this._setProp(e,this[e]);const{props:t,styles:n}=e,r=t?h(t)?t:Object.keys(t):[];for(const e of r.map(w))Object.defineProperty(this,e,{get(){return this._getProp(e)},set(t){this._setProp(e,t)}});this._applyStyles(n)},t=this._def.__asyncLoader;t?t().then(e):e(this._def)}_setAttr(e){this._setProp(w(e),k(this.getAttribute(e)),!1)}_getProp(e){return this._props[e]}_setProp(e,t,n=!0){t!==this._props[e]&&(this._props[e]=t,this._instance&&Xe(this._createVNode(),this.shadowRoot),n&&(!0===t?this.setAttribute(A(e),""):"string"==typeof t||"number"==typeof t?this.setAttribute(A(e),t+""):t||this.removeAttribute(A(e))))}_createVNode(){const e=(0,r.createVNode)(this._def,d({},this._props));return this._instance||(e.ce=e=>{this._instance=e,e.isCE=!0,e.emit=(e,...t)=>{this.dispatchEvent(new CustomEvent(e,{detail:t}))};let t=this;for(;t=t&&(t.parentNode||t.host);)if(t instanceof X){e.parent=t._instance;break}}),e}_applyStyles(e){e&&e.forEach((e=>{const t=document.createElement("style");t.textContent=e,this.shadowRoot.appendChild(t)}))}}function z(e="$style"){{const t=(0,r.getCurrentInstance)();if(!t)return c;const n=t.type.__cssModules;return n&&n[e]||c}}function q(e){const t=(0,r.getCurrentInstance)();if(!t)return;const n=()=>Y(t.subTree,e(t.proxy));(0,r.watchPostEffect)(n),(0,r.onMounted)((()=>{const e=new MutationObserver(n);e.observe(t.subTree.el.parentNode,{childList:!0}),(0,r.onUnmounted)((()=>e.disconnect()))}))}function Y(e,t){if(128&e.shapeFlag){const n=e.suspense;e=n.activeBranch,n.pendingBranch&&!n.isHydrating&&n.effects.push((()=>{Y(n.activeBranch,t)}))}for(;e.component;)e=e.component.subTree;if(1&e.shapeFlag&&e.el)Q(e.el,t);else if(e.type===r.Fragment)e.children.forEach((e=>Y(e,t)));else if(e.type===r.Static){let{el:n,anchor:r}=e;for(;n&&(Q(n,t),n!==r);)n=n.nextSibling}}function Q(e,t){if(1===e.nodeType){const n=e.style;for(const e in t)n.setProperty(`--${e}`,t[e])}}const J="transition",ee="animation",te=(e,{slots:t})=>(0,r.h)(r.BaseTransition,ae(e),t);te.displayName="Transition";const ne={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},re=te.props=d({},r.BaseTransition.props,ne),ie=(e,t=[])=>{h(e)?e.forEach((e=>e(...t))):e&&e(...t)},oe=e=>!!e&&(h(e)?e.some((e=>e.length>1)):e.length>1);function ae(e){const t={};for(const n in e)n in ne||(t[n]=e[n]);if(!1===e.css)return t;const{name:n="v",type:r,duration:i,enterFromClass:o=`${n}-enter-from`,enterActiveClass:a=`${n}-enter-active`,enterToClass:s=`${n}-enter-to`,appearFromClass:l=o,appearActiveClass:u=a,appearToClass:c=s,leaveFromClass:f=`${n}-leave-from`,leaveActiveClass:h=`${n}-leave-active`,leaveToClass:p=`${n}-leave-to`}=e,m=function(e){if(null==e)return null;if(y(e))return[se(e.enter),se(e.leave)];{const t=se(e);return[t,t]}}(i),g=m&&m[0],v=m&&m[1],{onBeforeEnter:b,onEnter:T,onEnterCancelled:S,onLeave:E,onLeaveCancelled:w,onBeforeAppear:_=b,onAppear:A=T,onAppearCancelled:x=S}=t,k=(e,t,n)=>{ue(e,t?c:s),ue(e,t?u:a),n&&n()},L=(e,t)=>{ue(e,p),ue(e,h),t&&t()},P=e=>(t,n)=>{const i=e?A:T,a=()=>k(t,e,n);ie(i,[t,a]),ce((()=>{ue(t,e?l:o),le(t,e?c:s),oe(i)||de(t,r,g,a)}))};return d(t,{onBeforeEnter(e){ie(b,[e]),le(e,o),le(e,a)},onBeforeAppear(e){ie(_,[e]),le(e,l),le(e,u)},onEnter:P(!1),onAppear:P(!0),onLeave(e,t){const n=()=>L(e,t);le(e,f),ge(),le(e,h),ce((()=>{ue(e,f),le(e,p),oe(E)||de(e,r,v,n)})),ie(E,[e,n])},onEnterCancelled(e){k(e,!1),ie(S,[e])},onAppearCancelled(e){k(e,!0),ie(x,[e])},onLeaveCancelled(e){L(e),ie(w,[e])}})}function se(e){return k(e)}function le(e,t){t.split(/\s+/).forEach((t=>t&&e.classList.add(t))),(e._vtc||(e._vtc=new Set)).add(t)}function ue(e,t){t.split(/\s+/).forEach((t=>t&&e.classList.remove(t)));const{_vtc:n}=e;n&&(n.delete(t),n.size||(e._vtc=void 0))}function ce(e){requestAnimationFrame((()=>{requestAnimationFrame(e)}))}let fe=0;function de(e,t,n,r){const i=e._endId=++fe,o=()=>{i===e._endId&&r()};if(n)return setTimeout(o,n);const{type:a,timeout:s,propCount:l}=he(e,t);if(!a)return r();const u=a+"end";let c=0;const f=()=>{e.removeEventListener(u,d),o()},d=t=>{t.target===e&&++c>=l&&f()};setTimeout((()=>{c<l&&f()}),s+1),e.addEventListener(u,d)}function he(e,t){const n=window.getComputedStyle(e),r=e=>(n[e]||"").split(", "),i=r("transitionDelay"),o=r("transitionDuration"),a=pe(i,o),s=r("animationDelay"),l=r("animationDuration"),u=pe(s,l);let c=null,f=0,d=0;return t===J?a>0&&(c=J,f=a,d=o.length):t===ee?u>0&&(c=ee,f=u,d=l.length):(f=Math.max(a,u),c=f>0?a>u?J:ee:null,d=c?c===J?o.length:l.length:0),{type:c,timeout:f,propCount:d,hasTransform:c===J&&/\b(transform|all)(,|$)/.test(n.transitionProperty)}}function pe(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map(((t,n)=>me(t)+me(e[n]))))}function me(e){return 1e3*Number(e.slice(0,-1).replace(",","."))}function ge(){return document.body.offsetHeight}const ve=new WeakMap,ye=new WeakMap,be={name:"TransitionGroup",props:d({},re,{tag:String,moveClass:String}),setup(e,{slots:t}){const n=(0,r.getCurrentInstance)(),i=(0,r.useTransitionState)();let a,s;return(0,r.onUpdated)((()=>{if(!a.length)return;const t=e.moveClass||`${e.name||"v"}-move`;if(!function(e,t,n){const r=e.cloneNode();e._vtc&&e._vtc.forEach((e=>{e.split(/\s+/).forEach((e=>e&&r.classList.remove(e)))})),n.split(/\s+/).forEach((e=>e&&r.classList.add(e))),r.style.display="none";const i=1===t.nodeType?t:t.parentNode;i.appendChild(r);const{hasTransform:o}=he(r);return i.removeChild(r),o}(a[0].el,n.vnode.el,t))return;a.forEach(Te),a.forEach(Se);const r=a.filter(Ee);ge(),r.forEach((e=>{const n=e.el,r=n.style;le(n,t),r.transform=r.webkitTransform=r.transitionDuration="";const i=n._moveCb=e=>{e&&e.target!==n||e&&!/transform$/.test(e.propertyName)||(n.removeEventListener("transitionend",i),n._moveCb=null,ue(n,t))};n.addEventListener("transitionend",i)}))})),()=>{const l=(0,o.IU)(e),u=ae(l);let c=l.tag||r.Fragment;a=s,s=t.default?(0,r.getTransitionRawChildren)(t.default()):[];for(let e=0;e<s.length;e++){const t=s[e];null!=t.key&&(0,r.setTransitionHooks)(t,(0,r.resolveTransitionHooks)(t,u,i,n))}if(a)for(let e=0;e<a.length;e++){const t=a[e];(0,r.setTransitionHooks)(t,(0,r.resolveTransitionHooks)(t,u,i,n)),ve.set(t,t.el.getBoundingClientRect())}return(0,r.createVNode)(c,null,s)}}};function Te(e){const t=e.el;t._moveCb&&t._moveCb(),t._enterCb&&t._enterCb()}function Se(e){ye.set(e,e.el.getBoundingClientRect())}function Ee(e){const t=ve.get(e),n=ye.get(e),r=t.left-n.left,i=t.top-n.top;if(r||i){const t=e.el.style;return t.transform=t.webkitTransform=`translate(${r}px,${i}px)`,t.transitionDuration="0s",e}}const we=e=>{const t=e.props["onUpdate:modelValue"];return h(t)?e=>((e,t)=>{for(let n=0;n<e.length;n++)e[n](t)})(t,e):t};function _e(e){e.target.composing=!0}function Ae(e){const t=e.target;t.composing&&(t.composing=!1,function(e,t){const n=document.createEvent("HTMLEvents");n.initEvent("input",!0,!0),e.dispatchEvent(n)}(t))}const xe={created(e,{modifiers:{lazy:t,trim:n,number:r}},i){e._assign=we(i);const o=r||i.props&&"number"===i.props.type;H(e,t?"change":"input",(t=>{if(t.target.composing)return;let r=e.value;n?r=r.trim():o&&(r=k(r)),e._assign(r)})),n&&H(e,"change",(()=>{e.value=e.value.trim()})),t||(H(e,"compositionstart",_e),H(e,"compositionend",Ae),H(e,"change",Ae))},mounted(e,{value:t}){e.value=null==t?"":t},beforeUpdate(e,{value:t,modifiers:{lazy:n,trim:r,number:i}},o){if(e._assign=we(o),e.composing)return;if(document.activeElement===e){if(n)return;if(r&&e.value.trim()===t)return;if((i||"number"===e.type)&&k(e.value)===t)return}const a=null==t?"":t;e.value!==a&&(e.value=a)}},ke={deep:!0,created(e,t,n){e._assign=we(n),H(e,"change",(()=>{const t=e._modelValue,n=Re(e),r=e.checked,i=e._assign;if(h(t)){const e=u(t,n),o=-1!==e;if(r&&!o)i(t.concat(n));else if(!r&&o){const n=[...t];n.splice(e,1),i(n)}}else if(p(t)){const e=new Set(t);r?e.add(n):e.delete(n),i(e)}else i(Oe(e,r))}))},mounted:Le,beforeUpdate(e,t,n){e._assign=we(n),Le(e,t,n)}};function Le(e,{value:t,oldValue:n},r){e._modelValue=t,h(t)?e.checked=u(t,r.props.value)>-1:p(t)?e.checked=t.has(r.props.value):t!==n&&(e.checked=l(t,Oe(e,!0)))}const Pe={created(e,{value:t},n){e.checked=l(t,n.props.value),e._assign=we(n),H(e,"change",(()=>{e._assign(Re(e))}))},beforeUpdate(e,{value:t,oldValue:n},r){e._assign=we(r),t!==n&&(e.checked=l(t,r.props.value))}},Ce={deep:!0,created(e,{value:t,modifiers:{number:n}},r){const i=p(t);H(e,"change",(()=>{const t=Array.prototype.filter.call(e.options,(e=>e.selected)).map((e=>n?k(Re(e)):Re(e)));e._assign(e.multiple?i?new Set(t):t:t[0])})),e._assign=we(r)},mounted(e,{value:t}){Me(e,t)},beforeUpdate(e,t,n){e._assign=we(n)},updated(e,{value:t}){Me(e,t)}};function Me(e,t){const n=e.multiple;if(!n||h(t)||p(t)){for(let r=0,i=e.options.length;r<i;r++){const i=e.options[r],o=Re(i);if(n)h(t)?i.selected=u(t,o)>-1:i.selected=t.has(o);else if(l(Re(i),t))return void(e.selectedIndex!==r&&(e.selectedIndex=r))}n||-1===e.selectedIndex||(e.selectedIndex=-1)}}function Re(e){return"_value"in e?e._value:e.value}function Oe(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const Ie={created(e,t,n){De(e,t,n,null,"created")},mounted(e,t,n){De(e,t,n,null,"mounted")},beforeUpdate(e,t,n,r){De(e,t,n,r,"beforeUpdate")},updated(e,t,n,r){De(e,t,n,r,"updated")}};function De(e,t,n,r,i){let o;switch(e.tagName){case"SELECT":o=Ce;break;case"TEXTAREA":o=xe;break;default:switch(n.props&&n.props.type){case"checkbox":o=ke;break;case"radio":o=Pe;break;default:o=xe}}const a=o[i];a&&a(e,t,n,r)}const Ne=["ctrl","shift","alt","meta"],Fe={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&0!==e.button,middle:e=>"button"in e&&1!==e.button,right:e=>"button"in e&&2!==e.button,exact:(e,t)=>Ne.some((n=>e[`${n}Key`]&&!t.includes(n)))},Be=(e,t)=>(n,...r)=>{for(let e=0;e<t.length;e++){const r=Fe[t[e]];if(r&&r(n,t))return}return e(n,...r)},Ge={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},Ue=(e,t)=>n=>{if(!("key"in n))return;const r=A(n.key);return t.some((e=>e===r||Ge[e]===r))?e(n):void 0},He={beforeMount(e,{value:t},{transition:n}){e._vod="none"===e.style.display?"":e.style.display,n&&t?n.beforeEnter(e):Ve(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:r}){!t!=!n&&(r?t?(r.beforeEnter(e),Ve(e,!0),r.enter(e)):r.leave(e,(()=>{Ve(e,!1)})):Ve(e,t))},beforeUnmount(e,{value:t}){Ve(e,t)}};function Ve(e,t){e.style.display=t?e._vod:"none"}const je=d({patchProp:(e,t,n,r,i=!1,o,l,u,c)=>{"class"===t?function(e,t,n){const r=e._vtc;r&&(t=(t?[t,...r]:[...r]).join(" ")),null==t?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}(e,r,i):"style"===t?function(e,t,n){const r=e.style,i=r.display;if(n)if(v(n))t!==n&&(r.cssText=n);else{for(const e in n)R(r,e,n[e]);if(t&&!v(t))for(const e in t)null==n[e]&&R(r,e,"")}else e.removeAttribute("style");"_vod"in e&&(r.display=i)}(e,n,r):(e=>f.test(e))(t)?(e=>e.startsWith("onUpdate:"))(t)||V(e,t,0,r,l):("."===t[0]?(t=t.slice(1),1):"^"===t[0]?(t=t.slice(1),0):function(e,t,n,r){return r?"innerHTML"===t||"textContent"===t||!!(t in e&&W.test(t)&&g(n)):!("spellcheck"===t||"draggable"===t||"form"===t||"list"===t&&"INPUT"===e.tagName||"type"===t&&"TEXTAREA"===e.tagName||W.test(t)&&v(n)||!(t in e))}(e,t,r,i))?function(e,t,n,r,i,o,a){if("innerHTML"===t||"textContent"===t)return r&&a(r,i,o),void(e[t]=null==n?"":n);if("value"===t&&"PROGRESS"!==e.tagName){e._value=n;const r=null==n?"":n;return e.value!==r&&(e.value=r),void(null==n&&e.removeAttribute(t))}if(""===n||null==n){const r=typeof e[t];if("boolean"===r)return void(e[t]=s(n));if(null==n&&"string"===r)return e[t]="",void e.removeAttribute(t);if("number"===r){try{e[t]=0}catch(e){}return void e.removeAttribute(t)}}try{e[t]=n}catch(e){}}(e,t,r,o,l,u,c):("true-value"===t?e._trueValue=r:"false-value"===t&&(e._falseValue=r),function(e,t,n,r,i){if(r&&t.startsWith("xlink:"))null==n?e.removeAttributeNS(D,t.slice(6,t.length)):e.setAttributeNS(D,t,n);else{const r=a(t);null==n||r&&!s(n)?e.removeAttribute(t):e.setAttribute(t,r?"":n)}}(e,t,r,i))}},C);let We,$e=!1;function Ke(){return We||(We=(0,r.createRenderer)(je))}function Ze(){return We=$e?We:(0,r.createHydrationRenderer)(je),$e=!0,We}const Xe=(...e)=>{Ke().render(...e)},ze=(...e)=>{Ze().hydrate(...e)},qe=(...e)=>{const t=Ke().createApp(...e),{mount:n}=t;return t.mount=e=>{const r=Qe(e);if(!r)return;const i=t._component;g(i)||i.render||i.template||(i.template=r.innerHTML),r.innerHTML="";const o=n(r,!1,r instanceof SVGElement);return r instanceof Element&&(r.removeAttribute("v-cloak"),r.setAttribute("data-v-app","")),o},t},Ye=(...e)=>{const t=Ze().createApp(...e),{mount:n}=t;return t.mount=e=>{const t=Qe(e);if(t)return n(t,!0,t instanceof SVGElement)},t};function Qe(e){return v(e)?document.querySelector(e):e}},58138:e=>{var t=function(){"use strict";function e(t,r,i,o){"object"==typeof r&&(i=r.depth,o=r.prototype,r.filter,r=r.circular);var a=[],s=[],l="undefined"!=typeof Buffer;return void 0===r&&(r=!0),void 0===i&&(i=1/0),function t(i,u){if(null===i)return null;if(0==u)return i;var c,f;if("object"!=typeof i)return i;if(e.__isArray(i))c=[];else if(e.__isRegExp(i))c=new RegExp(i.source,n(i)),i.lastIndex&&(c.lastIndex=i.lastIndex);else if(e.__isDate(i))c=new Date(i.getTime());else{if(l&&Buffer.isBuffer(i))return c=Buffer.allocUnsafe?Buffer.allocUnsafe(i.length):new Buffer(i.length),i.copy(c),c;void 0===o?(f=Object.getPrototypeOf(i),c=Object.create(f)):(c=Object.create(o),f=o)}if(r){var d=a.indexOf(i);if(-1!=d)return s[d];a.push(i),s.push(c)}for(var h in i){var p;f&&(p=Object.getOwnPropertyDescriptor(f,h)),p&&null==p.set||(c[h]=t(i[h],u-1))}return c}(t,i)}function t(e){return Object.prototype.toString.call(e)}function n(e){var t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),t}return e.clonePrototype=function(e){if(null===e)return null;var t=function(){};return t.prototype=e,new t},e.__objToStr=t,e.__isDate=function(e){return"object"==typeof e&&"[object Date]"===t(e)},e.__isArray=function(e){return"object"==typeof e&&"[object Array]"===t(e)},e.__isRegExp=function(e){return"object"==typeof e&&"[object RegExp]"===t(e)},e.__getRegExpFlags=n,e}();e.exports&&(e.exports=t)},44959:(e,t,n)=>{var r=n(11103),i={};for(var o in r)r.hasOwnProperty(o)&&(i[r[o]]=o);var a=e.exports={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};for(var s in a)if(a.hasOwnProperty(s)){if(!("channels"in a[s]))throw new Error("missing channels property: "+s);if(!("labels"in a[s]))throw new Error("missing channel labels property: "+s);if(a[s].labels.length!==a[s].channels)throw new Error("channel and label counts mismatch: "+s);var l=a[s].channels,u=a[s].labels;delete a[s].channels,delete a[s].labels,Object.defineProperty(a[s],"channels",{value:l}),Object.defineProperty(a[s],"labels",{value:u})}a.rgb.hsl=function(e){var t,n,r=e[0]/255,i=e[1]/255,o=e[2]/255,a=Math.min(r,i,o),s=Math.max(r,i,o),l=s-a;return s===a?t=0:r===s?t=(i-o)/l:i===s?t=2+(o-r)/l:o===s&&(t=4+(r-i)/l),(t=Math.min(60*t,360))<0&&(t+=360),n=(a+s)/2,[t,100*(s===a?0:n<=.5?l/(s+a):l/(2-s-a)),100*n]},a.rgb.hsv=function(e){var t,n,r,i,o,a=e[0]/255,s=e[1]/255,l=e[2]/255,u=Math.max(a,s,l),c=u-Math.min(a,s,l),f=function(e){return(u-e)/6/c+.5};return 0===c?i=o=0:(o=c/u,t=f(a),n=f(s),r=f(l),a===u?i=r-n:s===u?i=1/3+t-r:l===u&&(i=2/3+n-t),i<0?i+=1:i>1&&(i-=1)),[360*i,100*o,100*u]},a.rgb.hwb=function(e){var t=e[0],n=e[1],r=e[2];return[a.rgb.hsl(e)[0],1/255*Math.min(t,Math.min(n,r))*100,100*(r=1-1/255*Math.max(t,Math.max(n,r)))]},a.rgb.cmyk=function(e){var t,n=e[0]/255,r=e[1]/255,i=e[2]/255;return[100*((1-n-(t=Math.min(1-n,1-r,1-i)))/(1-t)||0),100*((1-r-t)/(1-t)||0),100*((1-i-t)/(1-t)||0),100*t]},a.rgb.keyword=function(e){var t=i[e];if(t)return t;var n,o,a,s=1/0;for(var l in r)if(r.hasOwnProperty(l)){var u=(o=e,a=r[l],Math.pow(o[0]-a[0],2)+Math.pow(o[1]-a[1],2)+Math.pow(o[2]-a[2],2));u<s&&(s=u,n=l)}return n},a.keyword.rgb=function(e){return r[e]},a.rgb.xyz=function(e){var t=e[0]/255,n=e[1]/255,r=e[2]/255;return[100*(.4124*(t=t>.04045?Math.pow((t+.055)/1.055,2.4):t/12.92)+.3576*(n=n>.04045?Math.pow((n+.055)/1.055,2.4):n/12.92)+.1805*(r=r>.04045?Math.pow((r+.055)/1.055,2.4):r/12.92)),100*(.2126*t+.7152*n+.0722*r),100*(.0193*t+.1192*n+.9505*r)]},a.rgb.lab=function(e){var t=a.rgb.xyz(e),n=t[0],r=t[1],i=t[2];return r/=100,i/=108.883,n=(n/=95.047)>.008856?Math.pow(n,1/3):7.787*n+16/116,[116*(r=r>.008856?Math.pow(r,1/3):7.787*r+16/116)-16,500*(n-r),200*(r-(i=i>.008856?Math.pow(i,1/3):7.787*i+16/116))]},a.hsl.rgb=function(e){var t,n,r,i,o,a=e[0]/360,s=e[1]/100,l=e[2]/100;if(0===s)return[o=255*l,o,o];t=2*l-(n=l<.5?l*(1+s):l+s-l*s),i=[0,0,0];for(var u=0;u<3;u++)(r=a+1/3*-(u-1))<0&&r++,r>1&&r--,o=6*r<1?t+6*(n-t)*r:2*r<1?n:3*r<2?t+(n-t)*(2/3-r)*6:t,i[u]=255*o;return i},a.hsl.hsv=function(e){var t=e[0],n=e[1]/100,r=e[2]/100,i=n,o=Math.max(r,.01);return n*=(r*=2)<=1?r:2-r,i*=o<=1?o:2-o,[t,100*(0===r?2*i/(o+i):2*n/(r+n)),(r+n)/2*100]},a.hsv.rgb=function(e){var t=e[0]/60,n=e[1]/100,r=e[2]/100,i=Math.floor(t)%6,o=t-Math.floor(t),a=255*r*(1-n),s=255*r*(1-n*o),l=255*r*(1-n*(1-o));switch(r*=255,i){case 0:return[r,l,a];case 1:return[s,r,a];case 2:return[a,r,l];case 3:return[a,s,r];case 4:return[l,a,r];case 5:return[r,a,s]}},a.hsv.hsl=function(e){var t,n,r,i=e[0],o=e[1]/100,a=e[2]/100,s=Math.max(a,.01);return r=(2-o)*a,n=o*s,[i,100*(n=(n/=(t=(2-o)*s)<=1?t:2-t)||0),100*(r/=2)]},a.hwb.rgb=function(e){var t,n,r,i,o,a,s,l=e[0]/360,u=e[1]/100,c=e[2]/100,f=u+c;switch(f>1&&(u/=f,c/=f),r=6*l-(t=Math.floor(6*l)),0!=(1&t)&&(r=1-r),i=u+r*((n=1-c)-u),t){default:case 6:case 0:o=n,a=i,s=u;break;case 1:o=i,a=n,s=u;break;case 2:o=u,a=n,s=i;break;case 3:o=u,a=i,s=n;break;case 4:o=i,a=u,s=n;break;case 5:o=n,a=u,s=i}return[255*o,255*a,255*s]},a.cmyk.rgb=function(e){var t=e[0]/100,n=e[1]/100,r=e[2]/100,i=e[3]/100;return[255*(1-Math.min(1,t*(1-i)+i)),255*(1-Math.min(1,n*(1-i)+i)),255*(1-Math.min(1,r*(1-i)+i))]},a.xyz.rgb=function(e){var t,n,r,i=e[0]/100,o=e[1]/100,a=e[2]/100;return n=-.9689*i+1.8758*o+.0415*a,r=.0557*i+-.204*o+1.057*a,t=(t=3.2406*i+-1.5372*o+-.4986*a)>.0031308?1.055*Math.pow(t,1/2.4)-.055:12.92*t,n=n>.0031308?1.055*Math.pow(n,1/2.4)-.055:12.92*n,r=r>.0031308?1.055*Math.pow(r,1/2.4)-.055:12.92*r,[255*(t=Math.min(Math.max(0,t),1)),255*(n=Math.min(Math.max(0,n),1)),255*(r=Math.min(Math.max(0,r),1))]},a.xyz.lab=function(e){var t=e[0],n=e[1],r=e[2];return n/=100,r/=108.883,t=(t/=95.047)>.008856?Math.pow(t,1/3):7.787*t+16/116,[116*(n=n>.008856?Math.pow(n,1/3):7.787*n+16/116)-16,500*(t-n),200*(n-(r=r>.008856?Math.pow(r,1/3):7.787*r+16/116))]},a.lab.xyz=function(e){var t,n,r,i=e[0];t=e[1]/500+(n=(i+16)/116),r=n-e[2]/200;var o=Math.pow(n,3),a=Math.pow(t,3),s=Math.pow(r,3);return n=o>.008856?o:(n-16/116)/7.787,t=a>.008856?a:(t-16/116)/7.787,r=s>.008856?s:(r-16/116)/7.787,[t*=95.047,n*=100,r*=108.883]},a.lab.lch=function(e){var t,n=e[0],r=e[1],i=e[2];return(t=360*Math.atan2(i,r)/2/Math.PI)<0&&(t+=360),[n,Math.sqrt(r*r+i*i),t]},a.lch.lab=function(e){var t,n=e[0],r=e[1];return t=e[2]/360*2*Math.PI,[n,r*Math.cos(t),r*Math.sin(t)]},a.rgb.ansi16=function(e){var t=e[0],n=e[1],r=e[2],i=1 in arguments?arguments[1]:a.rgb.hsv(e)[2];if(0===(i=Math.round(i/50)))return 30;var o=30+(Math.round(r/255)<<2|Math.round(n/255)<<1|Math.round(t/255));return 2===i&&(o+=60),o},a.hsv.ansi16=function(e){return a.rgb.ansi16(a.hsv.rgb(e),e[2])},a.rgb.ansi256=function(e){var t=e[0],n=e[1],r=e[2];return t===n&&n===r?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(n/255*5)+Math.round(r/255*5)},a.ansi16.rgb=function(e){var t=e%10;if(0===t||7===t)return e>50&&(t+=3.5),[t=t/10.5*255,t,t];var n=.5*(1+~~(e>50));return[(1&t)*n*255,(t>>1&1)*n*255,(t>>2&1)*n*255]},a.ansi256.rgb=function(e){if(e>=232){var t=10*(e-232)+8;return[t,t,t]}var n;return e-=16,[Math.floor(e/36)/5*255,Math.floor((n=e%36)/6)/5*255,n%6/5*255]},a.rgb.hex=function(e){var t=(((255&Math.round(e[0]))<<16)+((255&Math.round(e[1]))<<8)+(255&Math.round(e[2]))).toString(16).toUpperCase();return"000000".substring(t.length)+t},a.hex.rgb=function(e){var t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];var n=t[0];3===t[0].length&&(n=n.split("").map((function(e){return e+e})).join(""));var r=parseInt(n,16);return[r>>16&255,r>>8&255,255&r]},a.rgb.hcg=function(e){var t,n=e[0]/255,r=e[1]/255,i=e[2]/255,o=Math.max(Math.max(n,r),i),a=Math.min(Math.min(n,r),i),s=o-a;return t=s<=0?0:o===n?(r-i)/s%6:o===r?2+(i-n)/s:4+(n-r)/s+4,t/=6,[360*(t%=1),100*s,100*(s<1?a/(1-s):0)]},a.hsl.hcg=function(e){var t,n=e[1]/100,r=e[2]/100,i=0;return(t=r<.5?2*n*r:2*n*(1-r))<1&&(i=(r-.5*t)/(1-t)),[e[0],100*t,100*i]},a.hsv.hcg=function(e){var t=e[1]/100,n=e[2]/100,r=t*n,i=0;return r<1&&(i=(n-r)/(1-r)),[e[0],100*r,100*i]},a.hcg.rgb=function(e){var t=e[0]/360,n=e[1]/100,r=e[2]/100;if(0===n)return[255*r,255*r,255*r];var i,o=[0,0,0],a=t%1*6,s=a%1,l=1-s;switch(Math.floor(a)){case 0:o[0]=1,o[1]=s,o[2]=0;break;case 1:o[0]=l,o[1]=1,o[2]=0;break;case 2:o[0]=0,o[1]=1,o[2]=s;break;case 3:o[0]=0,o[1]=l,o[2]=1;break;case 4:o[0]=s,o[1]=0,o[2]=1;break;default:o[0]=1,o[1]=0,o[2]=l}return i=(1-n)*r,[255*(n*o[0]+i),255*(n*o[1]+i),255*(n*o[2]+i)]},a.hcg.hsv=function(e){var t=e[1]/100,n=t+e[2]/100*(1-t),r=0;return n>0&&(r=t/n),[e[0],100*r,100*n]},a.hcg.hsl=function(e){var t=e[1]/100,n=e[2]/100*(1-t)+.5*t,r=0;return n>0&&n<.5?r=t/(2*n):n>=.5&&n<1&&(r=t/(2*(1-n))),[e[0],100*r,100*n]},a.hcg.hwb=function(e){var t=e[1]/100,n=t+e[2]/100*(1-t);return[e[0],100*(n-t),100*(1-n)]},a.hwb.hcg=function(e){var t=e[1]/100,n=1-e[2]/100,r=n-t,i=0;return r<1&&(i=(n-r)/(1-r)),[e[0],100*r,100*i]},a.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]},a.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]},a.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]},a.gray.hsl=a.gray.hsv=function(e){return[0,0,e[0]]},a.gray.hwb=function(e){return[0,100,e[0]]},a.gray.cmyk=function(e){return[0,0,0,e[0]]},a.gray.lab=function(e){return[e[0],0,0]},a.gray.hex=function(e){var t=255&Math.round(e[0]/100*255),n=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".substring(n.length)+n},a.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]}},50841:(e,t,n)=>{var r=n(44959),i=n(19325),o={};Object.keys(r).forEach((function(e){o[e]={},Object.defineProperty(o[e],"channels",{value:r[e].channels}),Object.defineProperty(o[e],"labels",{value:r[e].labels});var t=i(e);Object.keys(t).forEach((function(n){var r=t[n];o[e][n]=function(e){var t=function(t){if(null==t)return t;arguments.length>1&&(t=Array.prototype.slice.call(arguments));var n=e(t);if("object"==typeof n)for(var r=n.length,i=0;i<r;i++)n[i]=Math.round(n[i]);return n};return"conversion"in e&&(t.conversion=e.conversion),t}(r),o[e][n].raw=function(e){var t=function(t){return null==t?t:(arguments.length>1&&(t=Array.prototype.slice.call(arguments)),e(t))};return"conversion"in e&&(t.conversion=e.conversion),t}(r)}))})),e.exports=o},19325:(e,t,n)=>{var r=n(44959);function i(e){var t=function(){for(var e={},t=Object.keys(r),n=t.length,i=0;i<n;i++)e[t[i]]={distance:-1,parent:null};return e}(),n=[e];for(t[e].distance=0;n.length;)for(var i=n.pop(),o=Object.keys(r[i]),a=o.length,s=0;s<a;s++){var l=o[s],u=t[l];-1===u.distance&&(u.distance=t[i].distance+1,u.parent=i,n.unshift(l))}return t}function o(e,t){return function(n){return t(e(n))}}function a(e,t){for(var n=[t[e].parent,e],i=r[t[e].parent][e],a=t[e].parent;t[a].parent;)n.unshift(t[a].parent),i=o(r[t[a].parent][a],i),a=t[a].parent;return i.conversion=n,i}e.exports=function(e){for(var t=i(e),n={},r=Object.keys(t),o=r.length,s=0;s<o;s++){var l=r[s];null!==t[l].parent&&(n[l]=a(l,t))}return n}},11103:e=>{"use strict";e.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}},67804:(e,t,n)=>{var r=n(11103),i=n(26047),o=Object.hasOwnProperty,a=Object.create(null);for(var s in r)o.call(r,s)&&(a[r[s]]=s);var l=e.exports={to:{},get:{}};function u(e,t,n){return Math.min(Math.max(t,e),n)}function c(e){var t=Math.round(e).toString(16).toUpperCase();return t.length<2?"0"+t:t}l.get=function(e){var t,n;switch(e.substring(0,3).toLowerCase()){case"hsl":t=l.get.hsl(e),n="hsl";break;case"hwb":t=l.get.hwb(e),n="hwb";break;default:t=l.get.rgb(e),n="rgb"}return t?{model:n,value:t}:null},l.get.rgb=function(e){if(!e)return null;var t,n,i,a=[0,0,0,1];if(t=e.match(/^#([a-f0-9]{6})([a-f0-9]{2})?$/i)){for(i=t[2],t=t[1],n=0;n<3;n++){var s=2*n;a[n]=parseInt(t.slice(s,s+2),16)}i&&(a[3]=parseInt(i,16)/255)}else if(t=e.match(/^#([a-f0-9]{3,4})$/i)){for(i=(t=t[1])[3],n=0;n<3;n++)a[n]=parseInt(t[n]+t[n],16);i&&(a[3]=parseInt(i+i,16)/255)}else if(t=e.match(/^rgba?\(\s*([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/)){for(n=0;n<3;n++)a[n]=parseInt(t[n+1],0);t[4]&&(t[5]?a[3]=.01*parseFloat(t[4]):a[3]=parseFloat(t[4]))}else{if(!(t=e.match(/^rgba?\(\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/)))return(t=e.match(/^(\w+)$/))?"transparent"===t[1]?[0,0,0,0]:o.call(r,t[1])?((a=r[t[1]])[3]=1,a):null:null;for(n=0;n<3;n++)a[n]=Math.round(2.55*parseFloat(t[n+1]));t[4]&&(t[5]?a[3]=.01*parseFloat(t[4]):a[3]=parseFloat(t[4]))}for(n=0;n<3;n++)a[n]=u(a[n],0,255);return a[3]=u(a[3],0,1),a},l.get.hsl=function(e){if(!e)return null;var t=e.match(/^hsla?\(\s*([+-]?(?:\d{0,3}\.)?\d+)(?:deg)?\s*,?\s*([+-]?[\d\.]+)%\s*,?\s*([+-]?[\d\.]+)%\s*(?:[,|\/]\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/);if(t){var n=parseFloat(t[4]);return[(parseFloat(t[1])%360+360)%360,u(parseFloat(t[2]),0,100),u(parseFloat(t[3]),0,100),u(isNaN(n)?1:n,0,1)]}return null},l.get.hwb=function(e){if(!e)return null;var t=e.match(/^hwb\(\s*([+-]?\d{0,3}(?:\.\d+)?)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/);if(t){var n=parseFloat(t[4]);return[(parseFloat(t[1])%360+360)%360,u(parseFloat(t[2]),0,100),u(parseFloat(t[3]),0,100),u(isNaN(n)?1:n,0,1)]}return null},l.to.hex=function(){var e=i(arguments);return"#"+c(e[0])+c(e[1])+c(e[2])+(e[3]<1?c(Math.round(255*e[3])):"")},l.to.rgb=function(){var e=i(arguments);return e.length<4||1===e[3]?"rgb("+Math.round(e[0])+", "+Math.round(e[1])+", "+Math.round(e[2])+")":"rgba("+Math.round(e[0])+", "+Math.round(e[1])+", "+Math.round(e[2])+", "+e[3]+")"},l.to.rgb.percent=function(){var e=i(arguments),t=Math.round(e[0]/255*100),n=Math.round(e[1]/255*100),r=Math.round(e[2]/255*100);return e.length<4||1===e[3]?"rgb("+t+"%, "+n+"%, "+r+"%)":"rgba("+t+"%, "+n+"%, "+r+"%, "+e[3]+")"},l.to.hsl=function(){var e=i(arguments);return e.length<4||1===e[3]?"hsl("+e[0]+", "+e[1]+"%, "+e[2]+"%)":"hsla("+e[0]+", "+e[1]+"%, "+e[2]+"%, "+e[3]+")"},l.to.hwb=function(){var e=i(arguments),t="";return e.length>=4&&1!==e[3]&&(t=", "+e[3]),"hwb("+e[0]+", "+e[1]+"%, "+e[2]+"%"+t+")"},l.to.keyword=function(e){return a[e.slice(0,3)]}},71346:(e,t,n)=>{"use strict";var r=n(67804),i=n(50841),o=[].slice,a=["keyword","gray","hex"],s={};Object.keys(i).forEach((function(e){s[o.call(i[e].labels).sort().join("")]=e}));var l={};function u(e,t){if(!(this instanceof u))return new u(e,t);if(t&&t in a&&(t=null),t&&!(t in i))throw new Error("Unknown model: "+t);var n,c;if(null==e)this.model="rgb",this.color=[0,0,0],this.valpha=1;else if(e instanceof u)this.model=e.model,this.color=e.color.slice(),this.valpha=e.valpha;else if("string"==typeof e){var f=r.get(e);if(null===f)throw new Error("Unable to parse color from string: "+e);this.model=f.model,c=i[this.model].channels,this.color=f.value.slice(0,c),this.valpha="number"==typeof f.value[c]?f.value[c]:1}else if(e.length){this.model=t||"rgb",c=i[this.model].channels;var d=o.call(e,0,c);this.color=h(d,c),this.valpha="number"==typeof e[c]?e[c]:1}else if("number"==typeof e)e&=16777215,this.model="rgb",this.color=[e>>16&255,e>>8&255,255&e],this.valpha=1;else{this.valpha=1;var p=Object.keys(e);"alpha"in e&&(p.splice(p.indexOf("alpha"),1),this.valpha="number"==typeof e.alpha?e.alpha:0);var m=p.sort().join("");if(!(m in s))throw new Error("Unable to parse color from object: "+JSON.stringify(e));this.model=s[m];var g=i[this.model].labels,v=[];for(n=0;n<g.length;n++)v.push(e[g[n]]);this.color=h(v)}if(l[this.model])for(c=i[this.model].channels,n=0;n<c;n++){var y=l[this.model][n];y&&(this.color[n]=y(this.color[n]))}this.valpha=Math.max(0,Math.min(1,this.valpha)),Object.freeze&&Object.freeze(this)}function c(e,t,n){return(e=Array.isArray(e)?e:[e]).forEach((function(e){(l[e]||(l[e]=[]))[t]=n})),e=e[0],function(r){var i;return arguments.length?(n&&(r=n(r)),(i=this[e]()).color[t]=r,i):(i=this[e]().color[t],n&&(i=n(i)),i)}}function f(e){return function(t){return Math.max(0,Math.min(e,t))}}function d(e){return Array.isArray(e)?e:[e]}function h(e,t){for(var n=0;n<t;n++)"number"!=typeof e[n]&&(e[n]=0);return e}u.prototype={toString:function(){return this.string()},toJSON:function(){return this[this.model]()},string:function(e){var t=this.model in r.to?this:this.rgb(),n=1===(t=t.round("number"==typeof e?e:1)).valpha?t.color:t.color.concat(this.valpha);return r.to[t.model](n)},percentString:function(e){var t=this.rgb().round("number"==typeof e?e:1),n=1===t.valpha?t.color:t.color.concat(this.valpha);return r.to.rgb.percent(n)},array:function(){return 1===this.valpha?this.color.slice():this.color.concat(this.valpha)},object:function(){for(var e={},t=i[this.model].channels,n=i[this.model].labels,r=0;r<t;r++)e[n[r]]=this.color[r];return 1!==this.valpha&&(e.alpha=this.valpha),e},unitArray:function(){var e=this.rgb().color;return e[0]/=255,e[1]/=255,e[2]/=255,1!==this.valpha&&e.push(this.valpha),e},unitObject:function(){var e=this.rgb().object();return e.r/=255,e.g/=255,e.b/=255,1!==this.valpha&&(e.alpha=this.valpha),e},round:function(e){return e=Math.max(e||0,0),new u(this.color.map(function(e){return function(t){return function(e,t){return Number(e.toFixed(t))}(t,e)}}(e)).concat(this.valpha),this.model)},alpha:function(e){return arguments.length?new u(this.color.concat(Math.max(0,Math.min(1,e))),this.model):this.valpha},red:c("rgb",0,f(255)),green:c("rgb",1,f(255)),blue:c("rgb",2,f(255)),hue:c(["hsl","hsv","hsl","hwb","hcg"],0,(function(e){return(e%360+360)%360})),saturationl:c("hsl",1,f(100)),lightness:c("hsl",2,f(100)),saturationv:c("hsv",1,f(100)),value:c("hsv",2,f(100)),chroma:c("hcg",1,f(100)),gray:c("hcg",2,f(100)),white:c("hwb",1,f(100)),wblack:c("hwb",2,f(100)),cyan:c("cmyk",0,f(100)),magenta:c("cmyk",1,f(100)),yellow:c("cmyk",2,f(100)),black:c("cmyk",3,f(100)),x:c("xyz",0,f(100)),y:c("xyz",1,f(100)),z:c("xyz",2,f(100)),l:c("lab",0,f(100)),a:c("lab",1),b:c("lab",2),keyword:function(e){return arguments.length?new u(e):i[this.model].keyword(this.color)},hex:function(e){return arguments.length?new u(e):r.to.hex(this.rgb().round().color)},rgbNumber:function(){var e=this.rgb().color;return(255&e[0])<<16|(255&e[1])<<8|255&e[2]},luminosity:function(){for(var e=this.rgb().color,t=[],n=0;n<e.length;n++){var r=e[n]/255;t[n]=r<=.03928?r/12.92:Math.pow((r+.055)/1.055,2.4)}return.2126*t[0]+.7152*t[1]+.0722*t[2]},contrast:function(e){var t=this.luminosity(),n=e.luminosity();return t>n?(t+.05)/(n+.05):(n+.05)/(t+.05)},level:function(e){var t=this.contrast(e);return t>=7.1?"AAA":t>=4.5?"AA":""},isDark:function(){var e=this.rgb().color;return(299*e[0]+587*e[1]+114*e[2])/1e3<128},isLight:function(){return!this.isDark()},negate:function(){for(var e=this.rgb(),t=0;t<3;t++)e.color[t]=255-e.color[t];return e},lighten:function(e){var t=this.hsl();return t.color[2]+=t.color[2]*e,t},darken:function(e){var t=this.hsl();return t.color[2]-=t.color[2]*e,t},saturate:function(e){var t=this.hsl();return t.color[1]+=t.color[1]*e,t},desaturate:function(e){var t=this.hsl();return t.color[1]-=t.color[1]*e,t},whiten:function(e){var t=this.hwb();return t.color[1]+=t.color[1]*e,t},blacken:function(e){var t=this.hwb();return t.color[2]+=t.color[2]*e,t},grayscale:function(){var e=this.rgb().color,t=.3*e[0]+.59*e[1]+.11*e[2];return u.rgb(t,t,t)},fade:function(e){return this.alpha(this.valpha-this.valpha*e)},opaquer:function(e){return this.alpha(this.valpha+this.valpha*e)},rotate:function(e){var t=this.hsl(),n=t.color[0];return n=(n=(n+e)%360)<0?360+n:n,t.color[0]=n,t},mix:function(e,t){if(!e||!e.rgb)throw new Error('Argument to "mix" was not a Color instance, but rather an instance of '+typeof e);var n=e.rgb(),r=this.rgb(),i=void 0===t?.5:t,o=2*i-1,a=n.alpha()-r.alpha(),s=((o*a==-1?o:(o+a)/(1+o*a))+1)/2,l=1-s;return u.rgb(s*n.red()+l*r.red(),s*n.green()+l*r.green(),s*n.blue()+l*r.blue(),n.alpha()*i+r.alpha()*(1-i))}},Object.keys(i).forEach((function(e){if(-1===a.indexOf(e)){var t=i[e].channels;u.prototype[e]=function(){if(this.model===e)return new u(this);if(arguments.length)return new u(arguments,e);var n="number"==typeof arguments[t]?t:this.valpha;return new u(d(i[this.model][e].raw(this.color)).concat(n),e)},u[e]=function(n){return"number"==typeof n&&(n=h(o.call(arguments),t)),new u(n,e)}}})),e.exports=u},27068:(e,t,n)=>{"use strict";function r(e,t){if(t.length<e)throw new TypeError(e+" argument"+(e>1?"s":"")+" required, but only "+t.length+" present")}function i(e){r(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||"object"==typeof e&&"[object Date]"===t?new Date(e.getTime()):"number"==typeof e||"[object Number]"===t?new Date(e):("string"!=typeof e&&"[object String]"!==t||"undefined"==typeof console||(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://git.io/fjule"),console.warn((new Error).stack)),new Date(NaN))}function o(e){r(1,arguments);var t=i(e);return!isNaN(t)}n.d(t,{Z:()=>Z});var a={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}};function s(e){return function(t){var n=t||{},r=n.width?String(n.width):e.defaultWidth;return e.formats[r]||e.formats[e.defaultWidth]}}var l,u={date:s({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:s({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:s({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},c={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function f(e){return function(t,n){var r,i=n||{};if("formatting"===(i.context?String(i.context):"standalone")&&e.formattingValues){var o=e.defaultFormattingWidth||e.defaultWidth,a=i.width?String(i.width):o;r=e.formattingValues[a]||e.formattingValues[o]}else{var s=e.defaultWidth,l=i.width?String(i.width):e.defaultWidth;r=e.values[l]||e.values[s]}return r[e.argumentCallback?e.argumentCallback(t):t]}}function d(e){return function(t,n){var r=String(t),i=n||{},o=i.width,a=o&&e.matchPatterns[o]||e.matchPatterns[e.defaultMatchWidth],s=r.match(a);if(!s)return null;var l,u=s[0],c=o&&e.parsePatterns[o]||e.parsePatterns[e.defaultParseWidth];return l="[object Array]"===Object.prototype.toString.call(c)?function(e,t){for(var n=0;n<e.length;n++)if(t(e[n]))return n}(c,(function(e){return e.test(u)})):function(e,t){for(var n in e)if(e.hasOwnProperty(n)&&t(e[n]))return n}(c,(function(e){return e.test(u)})),l=e.valueCallback?e.valueCallback(l):l,{value:l=i.valueCallback?i.valueCallback(l):l,rest:r.slice(u.length)}}}const h={code:"en-US",formatDistance:function(e,t,n){var r;return n=n||{},r="string"==typeof a[e]?a[e]:1===t?a[e].one:a[e].other.replace("{{count}}",t),n.addSuffix?n.comparison>0?"in "+r:r+" ago":r},formatLong:u,formatRelative:function(e,t,n,r){return c[e]},localize:{ordinalNumber:function(e,t){var n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},era:f({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:f({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:function(e){return Number(e)-1}}),month:f({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:f({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:f({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:(l={matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}},function(e,t){var n=String(e),r=t||{},i=n.match(l.matchPattern);if(!i)return null;var o=i[0],a=n.match(l.parsePattern);if(!a)return null;var s=l.valueCallback?l.valueCallback(a[0]):a[0];return{value:s=r.valueCallback?r.valueCallback(s):s,rest:n.slice(o.length)}}),era:d({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:d({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:d({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:d({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:d({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})},options:{weekStartsOn:0,firstWeekContainsDate:1}};function p(e){if(null===e||!0===e||!1===e)return NaN;var t=Number(e);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)}function m(e,t){r(2,arguments);var n=i(e).getTime(),o=p(t);return new Date(n+o)}function g(e,t){r(2,arguments);var n=p(t);return m(e,-n)}function v(e,t){for(var n=e<0?"-":"",r=Math.abs(e).toString();r.length<t;)r="0"+r;return n+r}var y=864e5;function b(e){r(1,arguments);var t=1,n=i(e),o=n.getUTCDay(),a=(o<t?7:0)+o-t;return n.setUTCDate(n.getUTCDate()-a),n.setUTCHours(0,0,0,0),n}function T(e){r(1,arguments);var t=i(e),n=t.getUTCFullYear(),o=new Date(0);o.setUTCFullYear(n+1,0,4),o.setUTCHours(0,0,0,0);var a=b(o),s=new Date(0);s.setUTCFullYear(n,0,4),s.setUTCHours(0,0,0,0);var l=b(s);return t.getTime()>=a.getTime()?n+1:t.getTime()>=l.getTime()?n:n-1}function S(e){r(1,arguments);var t=T(e),n=new Date(0);n.setUTCFullYear(t,0,4),n.setUTCHours(0,0,0,0);var i=b(n);return i}var E=6048e5;function w(e,t){r(1,arguments);var n=t||{},o=n.locale,a=o&&o.options&&o.options.weekStartsOn,s=null==a?0:p(a),l=null==n.weekStartsOn?s:p(n.weekStartsOn);if(!(l>=0&&l<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var u=i(e),c=u.getUTCDay(),f=(c<l?7:0)+c-l;return u.setUTCDate(u.getUTCDate()-f),u.setUTCHours(0,0,0,0),u}function _(e,t){r(1,arguments);var n=i(e,t),o=n.getUTCFullYear(),a=t||{},s=a.locale,l=s&&s.options&&s.options.firstWeekContainsDate,u=null==l?1:p(l),c=null==a.firstWeekContainsDate?u:p(a.firstWeekContainsDate);if(!(c>=1&&c<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var f=new Date(0);f.setUTCFullYear(o+1,0,c),f.setUTCHours(0,0,0,0);var d=w(f,t),h=new Date(0);h.setUTCFullYear(o,0,c),h.setUTCHours(0,0,0,0);var m=w(h,t);return n.getTime()>=d.getTime()?o+1:n.getTime()>=m.getTime()?o:o-1}function A(e,t){r(1,arguments);var n=t||{},i=n.locale,o=i&&i.options&&i.options.firstWeekContainsDate,a=null==o?1:p(o),s=null==n.firstWeekContainsDate?a:p(n.firstWeekContainsDate),l=_(e,t),u=new Date(0);u.setUTCFullYear(l,0,s),u.setUTCHours(0,0,0,0);var c=w(u,t);return c}var x=6048e5;function k(e,t){var n=e>0?"-":"+",r=Math.abs(e),i=Math.floor(r/60),o=r%60;if(0===o)return n+String(i);var a=t||"";return n+String(i)+a+v(o,2)}function L(e,t){return e%60==0?(e>0?"-":"+")+v(Math.abs(e)/60,2):P(e,t)}function P(e,t){var n=t||"",r=e>0?"-":"+",i=Math.abs(e);return r+v(Math.floor(i/60),2)+n+v(i%60,2)}const C={G:function(e,t,n){var r=e.getUTCFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});case"GGGG":default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if("yo"===t){var r=e.getUTCFullYear(),i=r>0?r:1-r;return n.ordinalNumber(i,{unit:"year"})}return function(e,t){var n=e.getUTCFullYear(),r=n>0?n:1-n;return v("yy"===t?r%100:r,t.length)}(e,t)},Y:function(e,t,n,r){var i=_(e,r),o=i>0?i:1-i;return"YY"===t?v(o%100,2):"Yo"===t?n.ordinalNumber(o,{unit:"year"}):v(o,t.length)},R:function(e,t){return v(T(e),t.length)},u:function(e,t){return v(e.getUTCFullYear(),t.length)},Q:function(e,t,n){var r=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return v(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){var r=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return v(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){var r=e.getUTCMonth();switch(t){case"M":case"MM":return function(e,t){var n=e.getUTCMonth();return"M"===t?String(n+1):v(n+1,2)}(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){var r=e.getUTCMonth();switch(t){case"L":return String(r+1);case"LL":return v(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,o){var a=function(e,t){r(1,arguments);var n=i(e),o=w(n,t).getTime()-A(n,t).getTime();return Math.round(o/x)+1}(e,o);return"wo"===t?n.ordinalNumber(a,{unit:"week"}):v(a,t.length)},I:function(e,t,n){var o=function(e){r(1,arguments);var t=i(e),n=b(t).getTime()-S(t).getTime();return Math.round(n/E)+1}(e);return"Io"===t?n.ordinalNumber(o,{unit:"week"}):v(o,t.length)},d:function(e,t,n){return"do"===t?n.ordinalNumber(e.getUTCDate(),{unit:"date"}):function(e,t){return v(e.getUTCDate(),t.length)}(e,t)},D:function(e,t,n){var o=function(e){r(1,arguments);var t=i(e),n=t.getTime();t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0);var o=t.getTime(),a=n-o;return Math.floor(a/y)+1}(e);return"Do"===t?n.ordinalNumber(o,{unit:"dayOfYear"}):v(o,t.length)},E:function(e,t,n){var r=e.getUTCDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});case"EEEE":default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){var i=e.getUTCDay(),o=(i-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(o);case"ee":return v(o,2);case"eo":return n.ordinalNumber(o,{unit:"day"});case"eee":return n.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(i,{width:"short",context:"formatting"});case"eeee":default:return n.day(i,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){var i=e.getUTCDay(),o=(i-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(o);case"cc":return v(o,t.length);case"co":return n.ordinalNumber(o,{unit:"day"});case"ccc":return n.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(i,{width:"narrow",context:"standalone"});case"cccccc":return n.day(i,{width:"short",context:"standalone"});case"cccc":default:return n.day(i,{width:"wide",context:"standalone"})}},i:function(e,t,n){var r=e.getUTCDay(),i=0===r?7:r;switch(t){case"i":return String(i);case"ii":return v(i,t.length);case"io":return n.ordinalNumber(i,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});case"iiii":default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){var r=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":case"aaa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"aaaaa":return n.dayPeriod(r,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},b:function(e,t,n){var r,i=e.getUTCHours();switch(r=12===i?"noon":0===i?"midnight":i/12>=1?"pm":"am",t){case"b":case"bb":case"bbb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"bbbbb":return n.dayPeriod(r,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},B:function(e,t,n){var r,i=e.getUTCHours();switch(r=i>=17?"evening":i>=12?"afternoon":i>=4?"morning":"night",t){case"B":case"BB":case"BBB":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(r,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},h:function(e,t,n){if("ho"===t){var r=e.getUTCHours()%12;return 0===r&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return function(e,t){return v(e.getUTCHours()%12||12,t.length)}(e,t)},H:function(e,t,n){return"Ho"===t?n.ordinalNumber(e.getUTCHours(),{unit:"hour"}):function(e,t){return v(e.getUTCHours(),t.length)}(e,t)},K:function(e,t,n){var r=e.getUTCHours()%12;return"Ko"===t?n.ordinalNumber(r,{unit:"hour"}):v(r,t.length)},k:function(e,t,n){var r=e.getUTCHours();return 0===r&&(r=24),"ko"===t?n.ordinalNumber(r,{unit:"hour"}):v(r,t.length)},m:function(e,t,n){return"mo"===t?n.ordinalNumber(e.getUTCMinutes(),{unit:"minute"}):function(e,t){return v(e.getUTCMinutes(),t.length)}(e,t)},s:function(e,t,n){return"so"===t?n.ordinalNumber(e.getUTCSeconds(),{unit:"second"}):function(e,t){return v(e.getUTCSeconds(),t.length)}(e,t)},S:function(e,t){return function(e,t){var n=t.length,r=e.getUTCMilliseconds();return v(Math.floor(r*Math.pow(10,n-3)),t.length)}(e,t)},X:function(e,t,n,r){var i=(r._originalDate||e).getTimezoneOffset();if(0===i)return"Z";switch(t){case"X":return L(i);case"XXXX":case"XX":return P(i);case"XXXXX":case"XXX":default:return P(i,":")}},x:function(e,t,n,r){var i=(r._originalDate||e).getTimezoneOffset();switch(t){case"x":return L(i);case"xxxx":case"xx":return P(i);case"xxxxx":case"xxx":default:return P(i,":")}},O:function(e,t,n,r){var i=(r._originalDate||e).getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+k(i,":");case"OOOO":default:return"GMT"+P(i,":")}},z:function(e,t,n,r){var i=(r._originalDate||e).getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+k(i,":");case"zzzz":default:return"GMT"+P(i,":")}},t:function(e,t,n,r){var i=r._originalDate||e;return v(Math.floor(i.getTime()/1e3),t.length)},T:function(e,t,n,r){return v((r._originalDate||e).getTime(),t.length)}};function M(e,t){switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}}function R(e,t){switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}}const O={p:R,P:function(e,t){var n,r=e.match(/(P+)(p+)?/),i=r[1],o=r[2];if(!o)return M(e,t);switch(i){case"P":n=t.dateTime({width:"short"});break;case"PP":n=t.dateTime({width:"medium"});break;case"PPP":n=t.dateTime({width:"long"});break;case"PPPP":default:n=t.dateTime({width:"full"})}return n.replace("{{date}}",M(i,t)).replace("{{time}}",R(o,t))}};var I=6e4;function D(e){return e.getTime()%I}function N(e){var t=new Date(e.getTime()),n=Math.ceil(t.getTimezoneOffset());t.setSeconds(0,0);var r=n>0?(I+D(t))%I:D(t);return n*I+r}var F=["D","DD"],B=["YY","YYYY"];function G(e){return-1!==F.indexOf(e)}function U(e){return-1!==B.indexOf(e)}function H(e,t,n){if("YYYY"===e)throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://git.io/fxCyr"));if("YY"===e)throw new RangeError("Use `yy` instead of `YY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://git.io/fxCyr"));if("D"===e)throw new RangeError("Use `d` instead of `D` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://git.io/fxCyr"));if("DD"===e)throw new RangeError("Use `dd` instead of `DD` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://git.io/fxCyr"))}var V=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,j=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,W=/^'([^]*?)'?$/,$=/''/g,K=/[a-zA-Z]/;function Z(e,t,n){r(2,arguments);var a=String(t),s=n||{},l=s.locale||h,u=l.options&&l.options.firstWeekContainsDate,c=null==u?1:p(u),f=null==s.firstWeekContainsDate?c:p(s.firstWeekContainsDate);if(!(f>=1&&f<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var d=l.options&&l.options.weekStartsOn,m=null==d?0:p(d),v=null==s.weekStartsOn?m:p(s.weekStartsOn);if(!(v>=0&&v<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!l.localize)throw new RangeError("locale must contain localize property");if(!l.formatLong)throw new RangeError("locale must contain formatLong property");var y=i(e);if(!o(y))throw new RangeError("Invalid time value");var b=N(y),T=g(y,b),S={firstWeekContainsDate:f,weekStartsOn:v,locale:l,_originalDate:y},E=a.match(j).map((function(e){var t=e[0];return"p"===t||"P"===t?(0,O[t])(e,l.formatLong,S):e})).join("").match(V).map((function(n){if("''"===n)return"'";var r=n[0];if("'"===r)return X(n);var i=C[r];if(i)return!s.useAdditionalWeekYearTokens&&U(n)&&H(n,t,e),!s.useAdditionalDayOfYearTokens&&G(n)&&H(n,t,e),i(T,n,l.localize,S);if(r.match(K))throw new RangeError("Format string contains an unescaped latin alphabet character `"+r+"`");return n})).join("");return E}function X(e){return e.match(W)[1].replace($,"'")}},42526:(e,t,n)=>{var r=n(58138);e.exports=function(e,t){return e=e||{},Object.keys(t).forEach((function(n){void 0===e[n]&&(e[n]=r(t[n]))})),e}},54924:(e,t,n)=>{"use strict";n.d(t,{qY:()=>f});var r=function(e,t,n){this.name=e,this.version=t,this.os=n,this.type="browser"},i=function(e){this.version=e,this.type="node",this.name="node",this.os=process.platform},o=function(e,t,n,r){this.name=e,this.version=t,this.os=n,this.bot=r,this.type="bot-device"},a=function(){this.type="bot",this.bot=!0,this.name="bot",this.version=null,this.os=null},s=function(){this.type="react-native",this.name="react-native",this.version=null,this.os=null},l=/(nuhk|Googlebot|Yammybot|Openbot|Slurp|MSNBot|Ask\ Jeeves\/Teoma|ia_archiver)/,u=[["aol",/AOLShield\/([0-9\._]+)/],["edge",/Edge\/([0-9\._]+)/],["edge-ios",/EdgiOS\/([0-9\._]+)/],["yandexbrowser",/YaBrowser\/([0-9\._]+)/],["kakaotalk",/KAKAOTALK\s([0-9\.]+)/],["samsung",/SamsungBrowser\/([0-9\.]+)/],["silk",/\bSilk\/([0-9._-]+)\b/],["miui",/MiuiBrowser\/([0-9\.]+)$/],["beaker",/BeakerBrowser\/([0-9\.]+)/],["edge-chromium",/Edg\/([0-9\.]+)/],["chromium-webview",/(?!Chrom.*OPR)wv\).*Chrom(?:e|ium)\/([0-9\.]+)(:?\s|$)/],["chrome",/(?!Chrom.*OPR)Chrom(?:e|ium)\/([0-9\.]+)(:?\s|$)/],["phantomjs",/PhantomJS\/([0-9\.]+)(:?\s|$)/],["crios",/CriOS\/([0-9\.]+)(:?\s|$)/],["firefox",/Firefox\/([0-9\.]+)(?:\s|$)/],["fxios",/FxiOS\/([0-9\.]+)/],["opera-mini",/Opera Mini.*Version\/([0-9\.]+)/],["opera",/Opera\/([0-9\.]+)(?:\s|$)/],["opera",/OPR\/([0-9\.]+)(:?\s|$)/],["ie",/Trident\/7\.0.*rv\:([0-9\.]+).*\).*Gecko$/],["ie",/MSIE\s([0-9\.]+);.*Trident\/[4-7].0/],["ie",/MSIE\s(7\.0)/],["bb10",/BB10;\sTouch.*Version\/([0-9\.]+)/],["android",/Android\s([0-9\.]+)/],["ios",/Version\/([0-9\._]+).*Mobile.*Safari.*/],["safari",/Version\/([0-9\._]+).*Safari/],["facebook",/FBAV\/([0-9\.]+)/],["instagram",/Instagram\s([0-9\.]+)/],["ios-webview",/AppleWebKit\/([0-9\.]+).*Mobile/],["ios-webview",/AppleWebKit\/([0-9\.]+).*Gecko\)$/],["searchbot",/alexa|bot|crawl(er|ing)|facebookexternalhit|feedburner|google web preview|nagios|postrank|pingdom|slurp|spider|yahoo!|yandex/]],c=[["iOS",/iP(hone|od|ad)/],["Android OS",/Android/],["BlackBerry OS",/BlackBerry|BB10/],["Windows Mobile",/IEMobile/],["Amazon OS",/Kindle/],["Windows 3.11",/Win16/],["Windows 95",/(Windows 95)|(Win95)|(Windows_95)/],["Windows 98",/(Windows 98)|(Win98)/],["Windows 2000",/(Windows NT 5.0)|(Windows 2000)/],["Windows XP",/(Windows NT 5.1)|(Windows XP)/],["Windows Server 2003",/(Windows NT 5.2)/],["Windows Vista",/(Windows NT 6.0)/],["Windows 7",/(Windows NT 6.1)/],["Windows 8",/(Windows NT 6.2)/],["Windows 8.1",/(Windows NT 6.3)/],["Windows 10",/(Windows NT 10.0)/],["Windows ME",/Windows ME/],["Open BSD",/OpenBSD/],["Sun OS",/SunOS/],["Chrome OS",/CrOS/],["Linux",/(Linux)|(X11)/],["Mac OS",/(Mac_PowerPC)|(Macintosh)/],["QNX",/QNX/],["BeOS",/BeOS/],["OS/2",/OS\/2/]];function f(e){return e?h(e):"undefined"==typeof document&&"undefined"!=typeof navigator&&"ReactNative"===navigator.product?new s:"undefined"!=typeof navigator?h(navigator.userAgent):"undefined"!=typeof process&&process.version?new i(process.version.slice(1)):null}function d(e){return""!==e&&u.reduce((function(t,n){var r=n[0],i=n[1];if(t)return t;var o=i.exec(e);return!!o&&[r,o]}),!1)}function h(e){var t=d(e);if(!t)return null;var n=t[0],i=t[1];if("searchbot"===n)return new a;var s=i[1]&&i[1].split(/[._]/).slice(0,3);s?s.length<3&&(s=function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),i=0;for(t=0;t<n;t++)for(var o=arguments[t],a=0,s=o.length;a<s;a++,i++)r[i]=o[a];return r}(s,function(e){for(var t=[],n=0;n<e;n++)t.push("0");return t}(3-s.length))):s=[];var u=s.join("."),f=function(e){for(var t=0,n=c.length;t<n;t++){var r=c[t],i=r[0];if(r[1].exec(e))return i}return null}(e),h=l.exec(e);return h&&h[1]?new o(n,u,f,h[1]):new r(n,u,f)}},35368:function(e){e.exports=function(){"use strict";const{entries:e,setPrototypeOf:t,isFrozen:n,getPrototypeOf:r,getOwnPropertyDescriptor:i}=Object;let{freeze:o,seal:a,create:s}=Object,{apply:l,construct:u}="undefined"!=typeof Reflect&&Reflect;o||(o=function(e){return e}),a||(a=function(e){return e}),l||(l=function(e,t,n){return e.apply(t,n)}),u||(u=function(e,t){return new e(...t)});const c=S(Array.prototype.forEach),f=S(Array.prototype.pop),d=S(Array.prototype.push),h=S(String.prototype.toLowerCase),p=S(String.prototype.toString),m=S(String.prototype.match),g=S(String.prototype.replace),v=S(String.prototype.indexOf),y=S(String.prototype.trim),b=S(RegExp.prototype.test),T=function(e){return function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return u(e,n)}}(TypeError);function S(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return l(e,t,r)}}function E(e,r){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:h;t&&t(e,null);let o=r.length;for(;o--;){let t=r[o];if("string"==typeof t){const e=i(t);e!==t&&(n(r)||(r[o]=e),t=e)}e[t]=!0}return e}function w(e){for(let t=0;t<e.length;t++)void 0===i(e,t)&&(e[t]=null);return e}function _(t){const n=s(null);for(const[r,o]of e(t))void 0!==i(t,r)&&(Array.isArray(o)?n[r]=w(o):o&&"object"==typeof o&&o.constructor===Object?n[r]=_(o):n[r]=o);return n}function A(e,t){for(;null!==e;){const n=i(e,t);if(n){if(n.get)return S(n.get);if("function"==typeof n.value)return S(n.value)}e=r(e)}return function(e){return console.warn("fallback value for",e),null}}const x=o(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),k=o(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),L=o(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),P=o(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),C=o(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),M=o(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),R=o(["#text"]),O=o(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","xmlns","slot"]),I=o(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),D=o(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),N=o(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),F=a(/\{\{[\w\W]*|[\w\W]*\}\}/gm),B=a(/<%[\w\W]*|[\w\W]*%>/gm),G=a(/\${[\w\W]*}/gm),U=a(/^data-[\-\w.\u00B7-\uFFFF]/),H=a(/^aria-[\-\w]+$/),V=a(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),j=a(/^(?:\w+script|data):/i),W=a(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),$=a(/^html$/i);var K=Object.freeze({__proto__:null,MUSTACHE_EXPR:F,ERB_EXPR:B,TMPLIT_EXPR:G,DATA_ATTR:U,ARIA_ATTR:H,IS_ALLOWED_URI:V,IS_SCRIPT_OR_DATA:j,ATTR_WHITESPACE:W,DOCTYPE_NAME:$});const Z=function(){return"undefined"==typeof window?null:window},X=function(e,t){if("object"!=typeof e||"function"!=typeof e.createPolicy)return null;let n=null;const r="data-tt-policy-suffix";t&&t.hasAttribute(r)&&(n=t.getAttribute(r));const i="dompurify"+(n?"#"+n:"");try{return e.createPolicy(i,{createHTML:e=>e,createScriptURL:e=>e})}catch(e){return console.warn("TrustedTypes policy "+i+" could not be created."),null}};return function t(){let n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Z();const r=e=>t(e);if(r.version="3.0.8",r.removed=[],!n||!n.document||9!==n.document.nodeType)return r.isSupported=!1,r;let{document:i}=n;const a=i,l=a.currentScript,{DocumentFragment:u,HTMLTemplateElement:S,Node:w,Element:F,NodeFilter:B,NamedNodeMap:G=n.NamedNodeMap||n.MozNamedAttrMap,HTMLFormElement:U,DOMParser:H,trustedTypes:j}=n,W=F.prototype,z=A(W,"cloneNode"),q=A(W,"nextSibling"),Y=A(W,"childNodes"),Q=A(W,"parentNode");if("function"==typeof S){const e=i.createElement("template");e.content&&e.content.ownerDocument&&(i=e.content.ownerDocument)}let J,ee="";const{implementation:te,createNodeIterator:ne,createDocumentFragment:re,getElementsByTagName:ie}=i,{importNode:oe}=a;let ae={};r.isSupported="function"==typeof e&&"function"==typeof Q&&te&&void 0!==te.createHTMLDocument;const{MUSTACHE_EXPR:se,ERB_EXPR:le,TMPLIT_EXPR:ue,DATA_ATTR:ce,ARIA_ATTR:fe,IS_SCRIPT_OR_DATA:de,ATTR_WHITESPACE:he}=K;let{IS_ALLOWED_URI:pe}=K,me=null;const ge=E({},[...x,...k,...L,...C,...R]);let ve=null;const ye=E({},[...O,...I,...D,...N]);let be=Object.seal(s(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),Te=null,Se=null,Ee=!0,we=!0,_e=!1,Ae=!0,xe=!1,ke=!1,Le=!1,Pe=!1,Ce=!1,Me=!1,Re=!1,Oe=!0,Ie=!1;const De="user-content-";let Ne=!0,Fe=!1,Be={},Ge=null;const Ue=E({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let He=null;const Ve=E({},["audio","video","img","source","image","track"]);let je=null;const We=E({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),$e="http://www.w3.org/1998/Math/MathML",Ke="http://www.w3.org/2000/svg",Ze="http://www.w3.org/1999/xhtml";let Xe=Ze,ze=!1,qe=null;const Ye=E({},[$e,Ke,Ze],p);let Qe=null;const Je=["application/xhtml+xml","text/html"],et="text/html";let tt=null,nt=null;const rt=i.createElement("form"),it=function(e){return e instanceof RegExp||e instanceof Function},ot=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!nt||nt!==e){if(e&&"object"==typeof e||(e={}),e=_(e),Qe=-1===Je.indexOf(e.PARSER_MEDIA_TYPE)?et:e.PARSER_MEDIA_TYPE,tt="application/xhtml+xml"===Qe?p:h,me="ALLOWED_TAGS"in e?E({},e.ALLOWED_TAGS,tt):ge,ve="ALLOWED_ATTR"in e?E({},e.ALLOWED_ATTR,tt):ye,qe="ALLOWED_NAMESPACES"in e?E({},e.ALLOWED_NAMESPACES,p):Ye,je="ADD_URI_SAFE_ATTR"in e?E(_(We),e.ADD_URI_SAFE_ATTR,tt):We,He="ADD_DATA_URI_TAGS"in e?E(_(Ve),e.ADD_DATA_URI_TAGS,tt):Ve,Ge="FORBID_CONTENTS"in e?E({},e.FORBID_CONTENTS,tt):Ue,Te="FORBID_TAGS"in e?E({},e.FORBID_TAGS,tt):{},Se="FORBID_ATTR"in e?E({},e.FORBID_ATTR,tt):{},Be="USE_PROFILES"in e&&e.USE_PROFILES,Ee=!1!==e.ALLOW_ARIA_ATTR,we=!1!==e.ALLOW_DATA_ATTR,_e=e.ALLOW_UNKNOWN_PROTOCOLS||!1,Ae=!1!==e.ALLOW_SELF_CLOSE_IN_ATTR,xe=e.SAFE_FOR_TEMPLATES||!1,ke=e.WHOLE_DOCUMENT||!1,Ce=e.RETURN_DOM||!1,Me=e.RETURN_DOM_FRAGMENT||!1,Re=e.RETURN_TRUSTED_TYPE||!1,Pe=e.FORCE_BODY||!1,Oe=!1!==e.SANITIZE_DOM,Ie=e.SANITIZE_NAMED_PROPS||!1,Ne=!1!==e.KEEP_CONTENT,Fe=e.IN_PLACE||!1,pe=e.ALLOWED_URI_REGEXP||V,Xe=e.NAMESPACE||Ze,be=e.CUSTOM_ELEMENT_HANDLING||{},e.CUSTOM_ELEMENT_HANDLING&&it(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(be.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&it(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(be.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(be.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),xe&&(we=!1),Me&&(Ce=!0),Be&&(me=E({},R),ve=[],!0===Be.html&&(E(me,x),E(ve,O)),!0===Be.svg&&(E(me,k),E(ve,I),E(ve,N)),!0===Be.svgFilters&&(E(me,L),E(ve,I),E(ve,N)),!0===Be.mathMl&&(E(me,C),E(ve,D),E(ve,N))),e.ADD_TAGS&&(me===ge&&(me=_(me)),E(me,e.ADD_TAGS,tt)),e.ADD_ATTR&&(ve===ye&&(ve=_(ve)),E(ve,e.ADD_ATTR,tt)),e.ADD_URI_SAFE_ATTR&&E(je,e.ADD_URI_SAFE_ATTR,tt),e.FORBID_CONTENTS&&(Ge===Ue&&(Ge=_(Ge)),E(Ge,e.FORBID_CONTENTS,tt)),Ne&&(me["#text"]=!0),ke&&E(me,["html","head","body"]),me.table&&(E(me,["tbody"]),delete Te.tbody),e.TRUSTED_TYPES_POLICY){if("function"!=typeof e.TRUSTED_TYPES_POLICY.createHTML)throw T('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof e.TRUSTED_TYPES_POLICY.createScriptURL)throw T('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');J=e.TRUSTED_TYPES_POLICY,ee=J.createHTML("")}else void 0===J&&(J=X(j,l)),null!==J&&"string"==typeof ee&&(ee=J.createHTML(""));o&&o(e),nt=e}},at=E({},["mi","mo","mn","ms","mtext"]),st=E({},["foreignobject","desc","title","annotation-xml"]),lt=E({},["title","style","font","a","script"]),ut=E({},[...k,...L,...P]),ct=E({},[...C,...M]),ft=function(e){let t=Q(e);t&&t.tagName||(t={namespaceURI:Xe,tagName:"template"});const n=h(e.tagName),r=h(t.tagName);return!!qe[e.namespaceURI]&&(e.namespaceURI===Ke?t.namespaceURI===Ze?"svg"===n:t.namespaceURI===$e?"svg"===n&&("annotation-xml"===r||at[r]):Boolean(ut[n]):e.namespaceURI===$e?t.namespaceURI===Ze?"math"===n:t.namespaceURI===Ke?"math"===n&&st[r]:Boolean(ct[n]):e.namespaceURI===Ze?!(t.namespaceURI===Ke&&!st[r])&&!(t.namespaceURI===$e&&!at[r])&&!ct[n]&&(lt[n]||!ut[n]):!("application/xhtml+xml"!==Qe||!qe[e.namespaceURI]))},dt=function(e){d(r.removed,{element:e});try{e.parentNode.removeChild(e)}catch(t){e.remove()}},ht=function(e,t){try{d(r.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){d(r.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e&&!ve[e])if(Ce||Me)try{dt(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},pt=function(e){let t=null,n=null;if(Pe)e="<remove></remove>"+e;else{const t=m(e,/^[\r\n\t ]+/);n=t&&t[0]}"application/xhtml+xml"===Qe&&Xe===Ze&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");const r=J?J.createHTML(e):e;if(Xe===Ze)try{t=(new H).parseFromString(r,Qe)}catch(e){}if(!t||!t.documentElement){t=te.createDocument(Xe,"template",null);try{t.documentElement.innerHTML=ze?ee:r}catch(e){}}const o=t.body||t.documentElement;return e&&n&&o.insertBefore(i.createTextNode(n),o.childNodes[0]||null),Xe===Ze?ie.call(t,ke?"html":"body")[0]:ke?t.documentElement:o},mt=function(e){return ne.call(e.ownerDocument||e,e,B.SHOW_ELEMENT|B.SHOW_COMMENT|B.SHOW_TEXT,null)},gt=function(e){return e instanceof U&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||!(e.attributes instanceof G)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore||"function"!=typeof e.hasChildNodes)},vt=function(e){return"function"==typeof w&&e instanceof w},yt=function(e,t,n){ae[e]&&c(ae[e],(e=>{e.call(r,t,n,nt)}))},bt=function(e){let t=null;if(yt("beforeSanitizeElements",e,null),gt(e))return dt(e),!0;const n=tt(e.nodeName);if(yt("uponSanitizeElement",e,{tagName:n,allowedTags:me}),e.hasChildNodes()&&!vt(e.firstElementChild)&&b(/<[/\w]/g,e.innerHTML)&&b(/<[/\w]/g,e.textContent))return dt(e),!0;if(!me[n]||Te[n]){if(!Te[n]&&St(n)){if(be.tagNameCheck instanceof RegExp&&b(be.tagNameCheck,n))return!1;if(be.tagNameCheck instanceof Function&&be.tagNameCheck(n))return!1}if(Ne&&!Ge[n]){const t=Q(e)||e.parentNode,n=Y(e)||e.childNodes;if(n&&t)for(let r=n.length-1;r>=0;--r)t.insertBefore(z(n[r],!0),q(e))}return dt(e),!0}return e instanceof F&&!ft(e)?(dt(e),!0):"noscript"!==n&&"noembed"!==n&&"noframes"!==n||!b(/<\/no(script|embed|frames)/i,e.innerHTML)?(xe&&3===e.nodeType&&(t=e.textContent,c([se,le,ue],(e=>{t=g(t,e," ")})),e.textContent!==t&&(d(r.removed,{element:e.cloneNode()}),e.textContent=t)),yt("afterSanitizeElements",e,null),!1):(dt(e),!0)},Tt=function(e,t,n){if(Oe&&("id"===t||"name"===t)&&(n in i||n in rt))return!1;if(we&&!Se[t]&&b(ce,t));else if(Ee&&b(fe,t));else if(!ve[t]||Se[t]){if(!(St(e)&&(be.tagNameCheck instanceof RegExp&&b(be.tagNameCheck,e)||be.tagNameCheck instanceof Function&&be.tagNameCheck(e))&&(be.attributeNameCheck instanceof RegExp&&b(be.attributeNameCheck,t)||be.attributeNameCheck instanceof Function&&be.attributeNameCheck(t))||"is"===t&&be.allowCustomizedBuiltInElements&&(be.tagNameCheck instanceof RegExp&&b(be.tagNameCheck,n)||be.tagNameCheck instanceof Function&&be.tagNameCheck(n))))return!1}else if(je[t]);else if(b(pe,g(n,he,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==v(n,"data:")||!He[e])if(_e&&!b(de,g(n,he,"")));else if(n)return!1;return!0},St=function(e){return e.indexOf("-")>0},Et=function(e){yt("beforeSanitizeAttributes",e,null);const{attributes:t}=e;if(!t)return;const n={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:ve};let i=t.length;for(;i--;){const o=t[i],{name:a,namespaceURI:s,value:l}=o,u=tt(a);let d="value"===a?l:y(l);if(n.attrName=u,n.attrValue=d,n.keepAttr=!0,n.forceKeepAttr=void 0,yt("uponSanitizeAttribute",e,n),d=n.attrValue,n.forceKeepAttr)continue;if(ht(a,e),!n.keepAttr)continue;if(!Ae&&b(/\/>/i,d)){ht(a,e);continue}xe&&c([se,le,ue],(e=>{d=g(d,e," ")}));const h=tt(e.nodeName);if(Tt(h,u,d)){if(!Ie||"id"!==u&&"name"!==u||(ht(a,e),d=De+d),J&&"object"==typeof j&&"function"==typeof j.getAttributeType)if(s);else switch(j.getAttributeType(h,u)){case"TrustedHTML":d=J.createHTML(d);break;case"TrustedScriptURL":d=J.createScriptURL(d)}try{s?e.setAttributeNS(s,a,d):e.setAttribute(a,d),f(r.removed)}catch(e){}}}yt("afterSanitizeAttributes",e,null)},wt=function e(t){let n=null;const r=mt(t);for(yt("beforeSanitizeShadowDOM",t,null);n=r.nextNode();)yt("uponSanitizeShadowNode",n,null),bt(n)||(n.content instanceof u&&e(n.content),Et(n));yt("afterSanitizeShadowDOM",t,null)};return r.sanitize=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=null,i=null,o=null,s=null;if(ze=!e,ze&&(e="\x3c!--\x3e"),"string"!=typeof e&&!vt(e)){if("function"!=typeof e.toString)throw T("toString is not a function");if("string"!=typeof(e=e.toString()))throw T("dirty is not a string, aborting")}if(!r.isSupported)return e;if(Le||ot(t),r.removed=[],"string"==typeof e&&(Fe=!1),Fe){if(e.nodeName){const t=tt(e.nodeName);if(!me[t]||Te[t])throw T("root node is forbidden and cannot be sanitized in-place")}}else if(e instanceof w)n=pt("\x3c!----\x3e"),i=n.ownerDocument.importNode(e,!0),1===i.nodeType&&"BODY"===i.nodeName||"HTML"===i.nodeName?n=i:n.appendChild(i);else{if(!Ce&&!xe&&!ke&&-1===e.indexOf("<"))return J&&Re?J.createHTML(e):e;if(n=pt(e),!n)return Ce?null:Re?ee:""}n&&Pe&&dt(n.firstChild);const l=mt(Fe?e:n);for(;o=l.nextNode();)bt(o)||(o.content instanceof u&&wt(o.content),Et(o));if(Fe)return e;if(Ce){if(Me)for(s=re.call(n.ownerDocument);n.firstChild;)s.appendChild(n.firstChild);else s=n;return(ve.shadowroot||ve.shadowrootmode)&&(s=oe.call(a,s,!0)),s}let f=ke?n.outerHTML:n.innerHTML;return ke&&me["!doctype"]&&n.ownerDocument&&n.ownerDocument.doctype&&n.ownerDocument.doctype.name&&b($,n.ownerDocument.doctype.name)&&(f="<!DOCTYPE "+n.ownerDocument.doctype.name+">\n"+f),xe&&c([se,le,ue],(e=>{f=g(f,e," ")})),J&&Re?J.createHTML(f):f},r.setConfig=function(){ot(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),Le=!0},r.clearConfig=function(){nt=null,Le=!1},r.isValidAttribute=function(e,t,n){nt||ot({});const r=tt(e),i=tt(t);return Tt(r,i,n)},r.addHook=function(e,t){"function"==typeof t&&(ae[e]=ae[e]||[],d(ae[e],t))},r.removeHook=function(e){if(ae[e])return f(ae[e])},r.removeHooks=function(e){ae[e]&&(ae[e]=[])},r.removeAllHooks=function(){ae={}},r}()}()},87655:e=>{!function t(n){e.exports=function(){"use strict";function e(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 r(t){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?e(Object(r),!0).forEach((function(e){a(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):e(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,p(r.key),r)}}function o(e,t,n){return t&&i(e.prototype,t),n&&i(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function a(e,t,n){return(t=p(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function s(){return(s=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}).apply(this,arguments)}function l(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,c(e,t)}function u(e){return(u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function c(e,t){return(c=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function f(){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(e){return!1}}function d(e,t,n){return(d=f()?Reflect.construct.bind():function(e,t,n){var r=[null];r.push.apply(r,t);var i=new(Function.bind.apply(e,r));return n&&c(i,n.prototype),i}).apply(null,arguments)}function h(e){var t="function"==typeof Map?new Map:void 0;return(h=function(e){if(null===e||!function(e){return-1!==Function.toString.call(e).indexOf("[native code]")}(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return d(e,arguments,u(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),c(n,e)})(e)}function p(e){var t=function(e,t){if("object"!=typeof e||null===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:String(t)}function m(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var g={exports:{}};!function(e,t){var n,r,i,o,a;n=/^(?=((?:[a-zA-Z0-9+\-.]+:)?))\1(?=((?:\/\/[^\/?#]*)?))\2(?=((?:(?:[^?#\/]*\/)*[^;?#\/]*)?))\3((?:;[^?#]*)?)(\?[^#]*)?(#[^]*)?$/,r=/^(?=([^\/?#]*))\1([^]*)$/,i=/(?:\/|^)\.(?=\/)/g,o=/(?:\/|^)\.\.\/(?!\.\.\/)[^\/]*(?=\/)/g,a={buildAbsoluteURL:function(e,t,n){if(n=n||{},e=e.trim(),!(t=t.trim())){if(!n.alwaysNormalize)return e;var i=a.parseURL(e);if(!i)throw new Error("Error trying to parse base URL.");return i.path=a.normalizePath(i.path),a.buildURLFromParts(i)}var o=a.parseURL(t);if(!o)throw new Error("Error trying to parse relative URL.");if(o.scheme)return n.alwaysNormalize?(o.path=a.normalizePath(o.path),a.buildURLFromParts(o)):t;var s=a.parseURL(e);if(!s)throw new Error("Error trying to parse base URL.");if(!s.netLoc&&s.path&&"/"!==s.path[0]){var l=r.exec(s.path);s.netLoc=l[1],s.path=l[2]}s.netLoc&&!s.path&&(s.path="/");var u={scheme:s.scheme,netLoc:o.netLoc,path:null,params:o.params,query:o.query,fragment:o.fragment};if(!o.netLoc&&(u.netLoc=s.netLoc,"/"!==o.path[0]))if(o.path){var c=s.path,f=c.substring(0,c.lastIndexOf("/")+1)+o.path;u.path=a.normalizePath(f)}else u.path=s.path,o.params||(u.params=s.params,o.query||(u.query=s.query));return null===u.path&&(u.path=n.alwaysNormalize?a.normalizePath(o.path):o.path),a.buildURLFromParts(u)},parseURL:function(e){var t=n.exec(e);return t?{scheme:t[1]||"",netLoc:t[2]||"",path:t[3]||"",params:t[4]||"",query:t[5]||"",fragment:t[6]||""}:null},normalizePath:function(e){for(e=e.split("").reverse().join("").replace(i,"");e.length!==(e=e.replace(o,"")).length;);return e.split("").reverse().join("")},buildURLFromParts:function(e){return e.scheme+e.netLoc+e.path+e.params+e.query+e.fragment}},e.exports=a}(g);var v=g.exports,y=Number.isFinite||function(e){return"number"==typeof e&&isFinite(e)},b=Number.isSafeInteger||function(e){return"number"==typeof e&&Math.abs(e)<=T},T=Number.MAX_SAFE_INTEGER||9007199254740991,S=function(e){return e.MEDIA_ATTACHING="hlsMediaAttaching",e.MEDIA_ATTACHED="hlsMediaAttached",e.MEDIA_DETACHING="hlsMediaDetaching",e.MEDIA_DETACHED="hlsMediaDetached",e.BUFFER_RESET="hlsBufferReset",e.BUFFER_CODECS="hlsBufferCodecs",e.BUFFER_CREATED="hlsBufferCreated",e.BUFFER_APPENDING="hlsBufferAppending",e.BUFFER_APPENDED="hlsBufferAppended",e.BUFFER_EOS="hlsBufferEos",e.BUFFER_FLUSHING="hlsBufferFlushing",e.BUFFER_FLUSHED="hlsBufferFlushed",e.MANIFEST_LOADING="hlsManifestLoading",e.MANIFEST_LOADED="hlsManifestLoaded",e.MANIFEST_PARSED="hlsManifestParsed",e.LEVEL_SWITCHING="hlsLevelSwitching",e.LEVEL_SWITCHED="hlsLevelSwitched",e.LEVEL_LOADING="hlsLevelLoading",e.LEVEL_LOADED="hlsLevelLoaded",e.LEVEL_UPDATED="hlsLevelUpdated",e.LEVEL_PTS_UPDATED="hlsLevelPtsUpdated",e.LEVELS_UPDATED="hlsLevelsUpdated",e.AUDIO_TRACKS_UPDATED="hlsAudioTracksUpdated",e.AUDIO_TRACK_SWITCHING="hlsAudioTrackSwitching",e.AUDIO_TRACK_SWITCHED="hlsAudioTrackSwitched",e.AUDIO_TRACK_LOADING="hlsAudioTrackLoading",e.AUDIO_TRACK_LOADED="hlsAudioTrackLoaded",e.SUBTITLE_TRACKS_UPDATED="hlsSubtitleTracksUpdated",e.SUBTITLE_TRACKS_CLEARED="hlsSubtitleTracksCleared",e.SUBTITLE_TRACK_SWITCH="hlsSubtitleTrackSwitch",e.SUBTITLE_TRACK_LOADING="hlsSubtitleTrackLoading",e.SUBTITLE_TRACK_LOADED="hlsSubtitleTrackLoaded",e.SUBTITLE_FRAG_PROCESSED="hlsSubtitleFragProcessed",e.CUES_PARSED="hlsCuesParsed",e.NON_NATIVE_TEXT_TRACKS_FOUND="hlsNonNativeTextTracksFound",e.INIT_PTS_FOUND="hlsInitPtsFound",e.FRAG_LOADING="hlsFragLoading",e.FRAG_LOAD_EMERGENCY_ABORTED="hlsFragLoadEmergencyAborted",e.FRAG_LOADED="hlsFragLoaded",e.FRAG_DECRYPTED="hlsFragDecrypted",e.FRAG_PARSING_INIT_SEGMENT="hlsFragParsingInitSegment",e.FRAG_PARSING_USERDATA="hlsFragParsingUserdata",e.FRAG_PARSING_METADATA="hlsFragParsingMetadata",e.FRAG_PARSED="hlsFragParsed",e.FRAG_BUFFERED="hlsFragBuffered",e.FRAG_CHANGED="hlsFragChanged",e.FPS_DROP="hlsFpsDrop",e.FPS_DROP_LEVEL_CAPPING="hlsFpsDropLevelCapping",e.ERROR="hlsError",e.DESTROYING="hlsDestroying",e.KEY_LOADING="hlsKeyLoading",e.KEY_LOADED="hlsKeyLoaded",e.LIVE_BACK_BUFFER_REACHED="hlsLiveBackBufferReached",e.BACK_BUFFER_REACHED="hlsBackBufferReached",e}({}),E=function(e){return e.NETWORK_ERROR="networkError",e.MEDIA_ERROR="mediaError",e.KEY_SYSTEM_ERROR="keySystemError",e.MUX_ERROR="muxError",e.OTHER_ERROR="otherError",e}({}),w=function(e){return e.KEY_SYSTEM_NO_KEYS="keySystemNoKeys",e.KEY_SYSTEM_NO_ACCESS="keySystemNoAccess",e.KEY_SYSTEM_NO_SESSION="keySystemNoSession",e.KEY_SYSTEM_NO_CONFIGURED_LICENSE="keySystemNoConfiguredLicense",e.KEY_SYSTEM_LICENSE_REQUEST_FAILED="keySystemLicenseRequestFailed",e.KEY_SYSTEM_SERVER_CERTIFICATE_REQUEST_FAILED="keySystemServerCertificateRequestFailed",e.KEY_SYSTEM_SERVER_CERTIFICATE_UPDATE_FAILED="keySystemServerCertificateUpdateFailed",e.KEY_SYSTEM_SESSION_UPDATE_FAILED="keySystemSessionUpdateFailed",e.KEY_SYSTEM_STATUS_OUTPUT_RESTRICTED="keySystemStatusOutputRestricted",e.KEY_SYSTEM_STATUS_INTERNAL_ERROR="keySystemStatusInternalError",e.MANIFEST_LOAD_ERROR="manifestLoadError",e.MANIFEST_LOAD_TIMEOUT="manifestLoadTimeOut",e.MANIFEST_PARSING_ERROR="manifestParsingError",e.MANIFEST_INCOMPATIBLE_CODECS_ERROR="manifestIncompatibleCodecsError",e.LEVEL_EMPTY_ERROR="levelEmptyError",e.LEVEL_LOAD_ERROR="levelLoadError",e.LEVEL_LOAD_TIMEOUT="levelLoadTimeOut",e.LEVEL_PARSING_ERROR="levelParsingError",e.LEVEL_SWITCH_ERROR="levelSwitchError",e.AUDIO_TRACK_LOAD_ERROR="audioTrackLoadError",e.AUDIO_TRACK_LOAD_TIMEOUT="audioTrackLoadTimeOut",e.SUBTITLE_LOAD_ERROR="subtitleTrackLoadError",e.SUBTITLE_TRACK_LOAD_TIMEOUT="subtitleTrackLoadTimeOut",e.FRAG_LOAD_ERROR="fragLoadError",e.FRAG_LOAD_TIMEOUT="fragLoadTimeOut",e.FRAG_DECRYPT_ERROR="fragDecryptError",e.FRAG_PARSING_ERROR="fragParsingError",e.FRAG_GAP="fragGap",e.REMUX_ALLOC_ERROR="remuxAllocError",e.KEY_LOAD_ERROR="keyLoadError",e.KEY_LOAD_TIMEOUT="keyLoadTimeOut",e.BUFFER_ADD_CODEC_ERROR="bufferAddCodecError",e.BUFFER_INCOMPATIBLE_CODECS_ERROR="bufferIncompatibleCodecsError",e.BUFFER_APPEND_ERROR="bufferAppendError",e.BUFFER_APPENDING_ERROR="bufferAppendingError",e.BUFFER_STALLED_ERROR="bufferStalledError",e.BUFFER_FULL_ERROR="bufferFullError",e.BUFFER_SEEK_OVER_HOLE="bufferSeekOverHole",e.BUFFER_NUDGE_ON_STALL="bufferNudgeOnStall",e.INTERNAL_EXCEPTION="internalException",e.INTERNAL_ABORTED="aborted",e.UNKNOWN="unknown",e}({}),_=function(){},A={trace:_,debug:_,log:_,warn:_,info:_,error:_},x=A;function k(e){var t=self.console[e];return t?t.bind(self.console,"["+e+"] >"):_}function L(e,t){if(self.console&&!0===e||"object"==typeof e){!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];n.forEach((function(t){x[t]=e[t]?e[t].bind(e):k(t)}))}(e,"debug","log","info","warn","error");try{x.log('Debug logs enabled for "'+t+'" in hls.js version 1.4.14')}catch(e){x=A}}else x=A}var P=x,C=/^(\d+)x(\d+)$/,M=/(.+?)=(".*?"|.*?)(?:,|$)/g,R=function(){function e(t){for(var n in"string"==typeof t&&(t=e.parseAttrList(t)),t)t.hasOwnProperty(n)&&("X-"===n.substring(0,2)&&(this.clientAttrs=this.clientAttrs||[],this.clientAttrs.push(n)),this[n]=t[n])}var t=e.prototype;return t.decimalInteger=function(e){var t=parseInt(this[e],10);return t>Number.MAX_SAFE_INTEGER?1/0:t},t.hexadecimalInteger=function(e){if(this[e]){var t=(this[e]||"0x").slice(2);t=(1&t.length?"0":"")+t;for(var n=new Uint8Array(t.length/2),r=0;r<t.length/2;r++)n[r]=parseInt(t.slice(2*r,2*r+2),16);return n}return null},t.hexadecimalIntegerAsNumber=function(e){var t=parseInt(this[e],16);return t>Number.MAX_SAFE_INTEGER?1/0:t},t.decimalFloatingPoint=function(e){return parseFloat(this[e])},t.optionalFloat=function(e,t){var n=this[e];return n?parseFloat(n):t},t.enumeratedString=function(e){return this[e]},t.bool=function(e){return"YES"===this[e]},t.decimalResolution=function(e){var t=C.exec(this[e]);if(null!==t)return{width:parseInt(t[1],10),height:parseInt(t[2],10)}},e.parseAttrList=function(e){var t,n={};for(M.lastIndex=0;null!==(t=M.exec(e));){var r=t[2];0===r.indexOf('"')&&r.lastIndexOf('"')===r.length-1&&(r=r.slice(1,-1)),n[t[1].trim()]=r}return n},e}();function O(e){return"ID"!==e&&"CLASS"!==e&&"START-DATE"!==e&&"DURATION"!==e&&"END-DATE"!==e&&"END-ON-NEXT"!==e}function I(e){return"SCTE35-OUT"===e||"SCTE35-IN"===e}var D=function(){function e(e,t){if(this.attr=void 0,this._startDate=void 0,this._endDate=void 0,this._badValueForSameId=void 0,t){var n=t.attr;for(var r in n)if(Object.prototype.hasOwnProperty.call(e,r)&&e[r]!==n[r]){P.warn('DATERANGE tag attribute: "'+r+'" does not match for tags with ID: "'+e.ID+'"'),this._badValueForSameId=r;break}e=s(new R({}),n,e)}if(this.attr=e,this._startDate=new Date(e["START-DATE"]),"END-DATE"in this.attr){var i=new Date(this.attr["END-DATE"]);y(i.getTime())&&(this._endDate=i)}}return o(e,[{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 e=this.duration;return null!==e?new Date(this._startDate.getTime()+1e3*e):null}},{key:"duration",get:function(){if("DURATION"in this.attr){var e=this.attr.decimalFloatingPoint("DURATION");if(y(e))return e}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)}}]),e}(),N=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}},F="audio",B="video",G=function(){function e(e){var t;this._byteRange=null,this._url=null,this.baseurl=void 0,this.relurl=void 0,this.elementaryStreams=((t={}).audio=null,t.video=null,t.audiovideo=null,t),this.baseurl=e}return e.prototype.setByteRange=function(e,t){var n=e.split("@",2),r=[];1===n.length?r[0]=t?t.byteRangeEndOffset:0:r[0]=parseInt(n[1]),r[1]=parseInt(n[0])+r[0],this._byteRange=r},o(e,[{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=v.buildAbsoluteURL(this.baseurl,this.relurl,{alwaysNormalize:!0})),this._url||""},set:function(e){this._url=e}}]),e}(),U=function(e){function t(t,n){var r;return(r=e.call(this,n)||this)._decryptdata=null,r.rawProgramDateTime=null,r.programDateTime=null,r.tagList=[],r.duration=0,r.sn=0,r.levelkeys=void 0,r.type=void 0,r.loader=null,r.keyLoader=null,r.level=-1,r.cc=0,r.startPTS=void 0,r.endPTS=void 0,r.startDTS=void 0,r.endDTS=void 0,r.start=0,r.deltaPTS=void 0,r.maxStartPTS=void 0,r.minEndPTS=void 0,r.stats=new N,r.urlId=0,r.data=void 0,r.bitrateTest=!1,r.title=null,r.initSegment=null,r.endList=void 0,r.gap=void 0,r.type=t,r}l(t,e);var n=t.prototype;return n.setKeyFormat=function(e){if(this.levelkeys){var t=this.levelkeys[e];t&&!this._decryptdata&&(this._decryptdata=t.getDecryptData(this.sn))}},n.abortRequests=function(){var e,t;null==(e=this.loader)||e.abort(),null==(t=this.keyLoader)||t.abort()},n.setElementaryStreamInfo=function(e,t,n,r,i,o){void 0===o&&(o=!1);var a=this.elementaryStreams,s=a[e];s?(s.startPTS=Math.min(s.startPTS,t),s.endPTS=Math.max(s.endPTS,n),s.startDTS=Math.min(s.startDTS,r),s.endDTS=Math.max(s.endDTS,i)):a[e]={startPTS:t,endPTS:n,startDTS:r,endDTS:i,partial:o}},n.clearElementaryStreamInfo=function(){var e=this.elementaryStreams;e.audio=null,e.video=null,e.audiovideo=null},o(t,[{key:"decryptdata",get:function(){if(!this.levelkeys&&!this._decryptdata)return null;if(!this._decryptdata&&this.levelkeys&&!this.levelkeys.NONE){var e=this.levelkeys.identity;if(e)this._decryptdata=e.getDecryptData(this.sn);else{var t=Object.keys(this.levelkeys);if(1===t.length)return this._decryptdata=this.levelkeys[t[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 e=y(this.duration)?this.duration:0;return this.programDateTime+1e3*e}},{key:"encrypted",get:function(){var e;if(null!=(e=this._decryptdata)&&e.encrypted)return!0;if(this.levelkeys){var t=Object.keys(this.levelkeys),n=t.length;if(n>1||1===n&&this.levelkeys[t[0]].encrypted)return!0}return!1}}]),t}(G),H=function(e){function t(t,n,r,i,o){var a;(a=e.call(this,r)||this).fragOffset=0,a.duration=0,a.gap=!1,a.independent=!1,a.relurl=void 0,a.fragment=void 0,a.index=void 0,a.stats=new N,a.duration=t.decimalFloatingPoint("DURATION"),a.gap=t.bool("GAP"),a.independent=t.bool("INDEPENDENT"),a.relurl=t.enumeratedString("URI"),a.fragment=n,a.index=i;var s=t.enumeratedString("BYTERANGE");return s&&a.setByteRange(s,o),o&&(a.fragOffset=o.fragOffset+o.duration),a}return l(t,e),o(t,[{key:"start",get:function(){return this.fragment.start+this.fragOffset}},{key:"end",get:function(){return this.start+this.duration}},{key:"loaded",get:function(){var e=this.elementaryStreams;return!!(e.audio||e.video||e.audiovideo)}}]),t}(G),V=function(){function e(e){this.PTSKnown=!1,this.alignedSliding=!1,this.averagetargetduration=void 0,this.endCC=0,this.endSN=0,this.fragments=void 0,this.fragmentHint=void 0,this.partList=null,this.dateRanges=void 0,this.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=e}return e.prototype.reloaded=function(e){if(!e)return this.advanced=!0,void(this.updated=!0);var t=this.lastPartSn-e.lastPartSn,n=this.lastPartIndex-e.lastPartIndex;this.updated=this.endSN!==e.endSN||!!n||!!t||!this.live,this.advanced=this.endSN>e.endSN||t>0||0===t&&n>0,this.updated||this.advanced?this.misses=Math.floor(.6*e.misses):this.misses=e.misses+1,this.availabilityDelay=e.availabilityDelay},o(e,[{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 e=this.driftEndTime-this.driftStartTime;return e>0?1e3*(this.driftEnd-this.driftStart)/e:1}},{key:"edge",get:function(){return this.partEnd||this.fragmentEnd}},{key:"partEnd",get:function(){var e;return null!=(e=this.partList)&&e.length?this.partList[this.partList.length-1].end:this.fragmentEnd}},{key:"fragmentEnd",get:function(){var e;return null!=(e=this.fragments)&&e.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 e;return null!=(e=this.partList)&&e.length?this.partList[this.partList.length-1].index:-1}},{key:"lastPartSn",get:function(){var e;return null!=(e=this.partList)&&e.length?this.partList[this.partList.length-1].fragment.sn:this.endSN}}]),e}(),j=m(void 0);function W(e,t,n){return Uint8Array.prototype.slice?e.slice(t,n):new Uint8Array(Array.prototype.slice.call(e,t,n))}var $,K=function(e,t){return t+10<=e.length&&73===e[t]&&68===e[t+1]&&51===e[t+2]&&e[t+3]<255&&e[t+4]<255&&e[t+6]<128&&e[t+7]<128&&e[t+8]<128&&e[t+9]<128},Z=function(e,t){return t+10<=e.length&&51===e[t]&&68===e[t+1]&&73===e[t+2]&&e[t+3]<255&&e[t+4]<255&&e[t+6]<128&&e[t+7]<128&&e[t+8]<128&&e[t+9]<128},X=function(e,t){for(var n=t,r=0;K(e,t);)r+=10,r+=z(e,t+6),Z(e,t+10)&&(r+=10),t+=r;if(r>0)return e.subarray(n,n+r)},z=function(e,t){var n=0;return n=(127&e[t])<<21,n|=(127&e[t+1])<<14,(n|=(127&e[t+2])<<7)|127&e[t+3]},q=function(e,t){return K(e,t)&&z(e,t+6)+10<=e.length-t},Y=function(e){return e&&"PRIV"===e.key&&"com.apple.streaming.transportStreamTimestamp"===e.info},Q=function(e){var t=String.fromCharCode(e[0],e[1],e[2],e[3]),n=z(e,4);return{type:t,size:n,data:e.subarray(10,10+n)}},J=function(e){for(var t=0,n=[];K(e,t);){for(var r=z(e,t+6),i=(t+=10)+r;t+8<i;){var o=Q(e.subarray(t)),a=ee(o);a&&n.push(a),t+=o.size+10}Z(e,t)&&(t+=10)}return n},ee=function(e){return"PRIV"===e.type?te(e):"W"===e.type[0]?re(e):ne(e)},te=function(e){if(!(e.size<2)){var t=oe(e.data,!0),n=new Uint8Array(e.data.subarray(t.length+1));return{key:e.type,info:t,data:n.buffer}}},ne=function(e){if(!(e.size<2)){if("TXXX"===e.type){var t=1,n=oe(e.data.subarray(t),!0);t+=n.length+1;var r=oe(e.data.subarray(t));return{key:e.type,info:n,data:r}}var i=oe(e.data.subarray(1));return{key:e.type,data:i}}},re=function(e){if("WXXX"===e.type){if(e.size<2)return;var t=1,n=oe(e.data.subarray(t),!0);t+=n.length+1;var r=oe(e.data.subarray(t));return{key:e.type,info:n,data:r}}var i=oe(e.data);return{key:e.type,data:i}},ie=function(e){if(8===e.data.byteLength){var t=new Uint8Array(e.data),n=1&t[3],r=(t[4]<<23)+(t[5]<<15)+(t[6]<<7)+t[7];return r/=45,n&&(r+=47721858.84),Math.round(r)}},oe=function(e,t){void 0===t&&(t=!1);var n=function(){if(!navigator.userAgent.includes("PlayStation 4"))return $||void 0===self.TextDecoder||($=new self.TextDecoder("utf-8")),$}();if(n){var r=n.decode(e);if(t){var i=r.indexOf("\0");return-1!==i?r.substring(0,i):r}return r.replace(/\0/g,"")}for(var o,a,s,l=e.length,u="",c=0;c<l;){if(0===(o=e[c++])&&t)return u;if(0!==o&&3!==o)switch(o>>4){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:u+=String.fromCharCode(o);break;case 12:case 13:a=e[c++],u+=String.fromCharCode((31&o)<<6|63&a);break;case 14:a=e[c++],s=e[c++],u+=String.fromCharCode((15&o)<<12|(63&a)<<6|(63&s)<<0)}}return u},ae=function(e){for(var t="",n=0;n<e.length;n++){var r=e[n].toString(16);r.length<2&&(r="0"+r),t+=r}return t},se=Math.pow(2,32)-1,le=[].push,ue={video:1,audio:2,id3:3,text:4};function ce(e){return String.fromCharCode.apply(null,e)}function fe(e,t){var n=e[t]<<8|e[t+1];return n<0?65536+n:n}function de(e,t){var n=he(e,t);return n<0?4294967296+n:n}function he(e,t){return e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3]}function pe(e,t,n){e[t]=n>>24,e[t+1]=n>>16&255,e[t+2]=n>>8&255,e[t+3]=255&n}function me(e,t){var n=[];if(!t.length)return n;for(var r=e.byteLength,i=0;i<r;){var o=de(e,i),a=o>1?i+o:r;if(ce(e.subarray(i+4,i+8))===t[0])if(1===t.length)n.push(e.subarray(i+8,a));else{var s=me(e.subarray(i+8,a),t.slice(1));s.length&&le.apply(n,s)}i=a}return n}function ge(e){var t=[],n=e[0],r=8,i=de(e,r);r+=4,r+=0===n?8:16,r+=2;var o=e.length+0,a=fe(e,r);r+=2;for(var s=0;s<a;s++){var l=r,u=de(e,l);l+=4;var c=2147483647&u;if(1==(2147483648&u)>>>31)return P.warn("SIDX has hierarchical references (not supported)"),null;var f=de(e,l);l+=4,t.push({referenceSize:c,subsegmentDuration:f,info:{duration:f/i,start:o,end:o+c-1}}),o+=c,r=l+=4}return{earliestPresentationTime:0,timescale:i,version:n,referencesCount:a,references:t}}function ve(e){for(var t=[],n=me(e,["moov","trak"]),r=0;r<n.length;r++){var i=n[r],o=me(i,["tkhd"])[0];if(o){var a=o[0],s=0===a?12:20,l=de(o,s),u=me(i,["mdia","mdhd"])[0];if(u){var c=de(u,s=0===(a=u[0])?12:20),f=me(i,["mdia","hdlr"])[0];if(f){var d=ce(f.subarray(8,12)),h={soun:F,vide:B}[d];if(h){var p=me(i,["mdia","minf","stbl","stsd"])[0],m=void 0;p&&(m=ce(p.subarray(12,16))),t[l]={timescale:c,type:h},t[h]={timescale:c,id:l,codec:m}}}}}}return me(e,["moov","mvex","trex"]).forEach((function(e){var n=de(e,4),r=t[n];r&&(r.default={duration:de(e,12),flags:de(e,20)})})),t}function ye(e){var t=de(e,0),n=8;1&t&&(n+=4),4&t&&(n+=4);for(var r=0,i=de(e,4),o=0;o<i;o++)256&t&&(r+=de(e,n),n+=4),512&t&&(n+=4),1024&t&&(n+=4),2048&t&&(n+=4);return r}function be(e,t){var n=new Uint8Array(e.length+t.length);return n.set(e),n.set(t,e.length),n}function Te(e,t){var n=[],r=t.samples,i=t.timescale,o=t.id,a=!1;return me(r,["moof"]).map((function(s){var l=s.byteOffset-8;me(s,["traf"]).map((function(s){var u=me(s,["tfdt"]).map((function(e){var t=e[0],n=de(e,4);return 1===t&&(n*=Math.pow(2,32),n+=de(e,8)),n/i}))[0];return void 0!==u&&(e=u),me(s,["tfhd"]).map((function(u){var c=de(u,4),f=16777215&de(u,0),d=0,h=0!=(16&f),p=0,m=0!=(32&f),g=8;c===o&&(0!=(1&f)&&(g+=8),0!=(2&f)&&(g+=4),0!=(8&f)&&(d=de(u,g),g+=4),h&&(p=de(u,g),g+=4),m&&(g+=4),"video"===t.type&&(a=function(e){if(!e)return!1;var t=e.indexOf("."),n=t<0?e:e.substring(0,t);return"hvc1"===n||"hev1"===n||"dvh1"===n||"dvhe"===n}(t.codec)),me(s,["trun"]).map((function(o){var s=o[0],u=16777215&de(o,0),c=0!=(1&u),f=0,h=0!=(4&u),m=0!=(256&u),g=0,v=0!=(512&u),y=0,b=0!=(1024&u),T=0!=(2048&u),S=0,E=de(o,4),w=8;c&&(f=de(o,w),w+=4),h&&(w+=4);for(var _=f+l,A=0;A<E;A++){if(m?(g=de(o,w),w+=4):g=d,v?(y=de(o,w),w+=4):y=p,b&&(w+=4),T&&(S=0===s?de(o,w):he(o,w),w+=4),t.type===B)for(var x=0;x<y;){var k=de(r,_);Se(a,r[_+=4])&&Ee(r.subarray(_,_+k),a?2:1,e+S/i,n),_+=k,x+=k+4}e+=g/i}})))}))}))})),n}function Se(e,t){if(e){var n=t>>1&63;return 39===n||40===n}return 6==(31&t)}function Ee(e,t,n,r){var i=we(e),o=0;o+=t;for(var a=0,s=0,l=!1,u=0;o<i.length;){a=0;do{if(o>=i.length)break;a+=u=i[o++]}while(255===u);s=0;do{if(o>=i.length)break;s+=u=i[o++]}while(255===u);var c=i.length-o;if(!l&&4===a&&o<i.length){if(l=!0,181===i[o++]){var f=fe(i,o);if(o+=2,49===f){var d=de(i,o);if(o+=4,1195456820===d){var h=i[o++];if(3===h){var p=i[o++],m=64&p,g=m?2+3*(31&p):0,v=new Uint8Array(g);if(m){v[0]=p;for(var y=1;y<g;y++)v[y]=i[o++]}r.push({type:h,payloadType:a,pts:n,bytes:v})}}}}}else if(5===a&&s<c){if(l=!0,s>16){for(var b=[],T=0;T<16;T++){var S=i[o++].toString(16);b.push(1==S.length?"0"+S:S),3!==T&&5!==T&&7!==T&&9!==T||b.push("-")}for(var E=s-16,w=new Uint8Array(E),_=0;_<E;_++)w[_]=i[o++];r.push({payloadType:a,pts:n,uuid:b.join(""),userData:oe(w),userDataBytes:w})}}else if(s<c)o+=s;else if(s>c)break}}function we(e){for(var t=e.byteLength,n=[],r=1;r<t-2;)0===e[r]&&0===e[r+1]&&3===e[r+2]?(n.push(r+2),r+=2):r++;if(0===n.length)return e;var i=t-n.length,o=new Uint8Array(i),a=0;for(r=0;r<i;a++,r++)a===n[0]&&(a++,n.shift()),o[r]=e[a];return o}var _e=function(){function e(e,t,n,r,i){void 0===r&&(r=[1]),void 0===i&&(i=null),this.uri=void 0,this.method=void 0,this.keyFormat=void 0,this.keyFormatVersions=void 0,this.encrypted=void 0,this.isCommonEncryption=void 0,this.iv=null,this.key=null,this.keyId=null,this.pssh=null,this.method=e,this.uri=t,this.keyFormat=n,this.keyFormatVersions=r,this.iv=i,this.encrypted=!!e&&"NONE"!==e,this.isCommonEncryption=this.encrypted&&"AES-128"!==e}e.clearKeyUriToKeyIdMap=function(){};var t=e.prototype;return t.isSupported=function(){if(this.method){if("AES-128"===this.method||"NONE"===this.method)return!0;if("identity"===this.keyFormat)return"SAMPLE-AES"===this.method}return!1},t.getDecryptData=function(t){if(!this.encrypted||!this.uri)return null;if("AES-128"===this.method&&this.uri&&!this.iv){"number"!=typeof t&&("AES-128"!==this.method||this.iv||P.warn('missing IV for initialization segment with method="'+this.method+'" - compliance issue'),t=0);var n=function(e){for(var t=new Uint8Array(16),n=12;n<16;n++)t[n]=e>>8*(15-n)&255;return t}(t);return new e(this.method,this.uri,"identity",this.keyFormatVersions,n)}return this},e}();function Ae(){if("undefined"!=typeof self)return self.MediaSource||self.WebKitMediaSource}var xe={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}},ke=Ae();function Le(e,t){var n;return null!=(n=null==ke?void 0:ke.isTypeSupported((t||"video")+'/mp4;codecs="'+e+'"'))&&n}var Pe=/#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,Ce=/#EXT-X-MEDIA:(.*)/g,Me=/^#EXT(?:INF|-X-TARGETDURATION):/m,Re=new RegExp([/#EXTINF:\s*(\d*(?:\.\d+)?)(?:,(.*)\s+)?/.source,/(?!#) *(\S[\S ]*)/.source,/#EXT-X-BYTERANGE:*(.+)/.source,/#EXT-X-PROGRAM-DATE-TIME:(.+)/.source,/#.*/.source].join("|"),"g"),Oe=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("|")),Ie=function(){function e(){}return e.findGroup=function(e,t){for(var n=0;n<e.length;n++){var r=e[n];if(r.id===t)return r}},e.convertAVC1ToAVCOTI=function(e){var t=e.split(".");if(t.length>2){var n=t.shift()+".";return(n+=parseInt(t.shift()).toString(16))+("000"+parseInt(t.shift()).toString(16)).slice(-4)}return e},e.resolve=function(e,t){return v.buildAbsoluteURL(t,e,{alwaysNormalize:!0})},e.isMediaPlaylist=function(e){return Me.test(e)},e.parseMasterPlaylist=function(t,n){var r,i={contentSteering:null,levels:[],playlistParsingError:null,sessionData:null,sessionKeys:null,startTimeOffset:null,variableList:null,hasVariableRefs:!1},o=[];for(Pe.lastIndex=0;null!=(r=Pe.exec(t));)if(r[1]){var a,s=new R(r[1]),l=r[2],u={attrs:s,bitrate:s.decimalInteger("AVERAGE-BANDWIDTH")||s.decimalInteger("BANDWIDTH"),name:s.NAME,url:e.resolve(l,n)},c=s.decimalResolution("RESOLUTION");c&&(u.width=c.width,u.height=c.height),Fe((s.CODECS||"").split(/[ ,]+/).filter((function(e){return e})),u),u.videoCodec&&-1!==u.videoCodec.indexOf("avc1")&&(u.videoCodec=e.convertAVC1ToAVCOTI(u.videoCodec)),null!=(a=u.unknownCodecs)&&a.length||o.push(u),i.levels.push(u)}else if(r[3]){var f=r[3],d=r[4];switch(f){case"SESSION-DATA":var h=new R(d),p=h["DATA-ID"];p&&(null===i.sessionData&&(i.sessionData={}),i.sessionData[p]=h);break;case"SESSION-KEY":var m=De(d,n);m.encrypted&&m.isSupported()?(null===i.sessionKeys&&(i.sessionKeys=[]),i.sessionKeys.push(m)):P.warn('[Keys] Ignoring invalid EXT-X-SESSION-KEY tag: "'+d+'"');break;case"DEFINE":break;case"CONTENT-STEERING":var g=new R(d);i.contentSteering={uri:e.resolve(g["SERVER-URI"],n),pathwayId:g["PATHWAY-ID"]||"."};break;case"START":i.startTimeOffset=Ne(d)}}var v=o.length>0&&o.length<i.levels.length;return i.levels=v?o:i.levels,0===i.levels.length&&(i.playlistParsingError=new Error("no levels found in manifest")),i},e.parseMasterPlaylistMedia=function(t,n,r){var i,o={},a=r.levels,s={AUDIO:a.map((function(e){return{id:e.attrs.AUDIO,audioCodec:e.audioCodec}})),SUBTITLES:a.map((function(e){return{id:e.attrs.SUBTITLES,textCodec:e.textCodec}})),"CLOSED-CAPTIONS":[]},l=0;for(Ce.lastIndex=0;null!==(i=Ce.exec(t));){var u=new R(i[1]),c=u.TYPE;if(c){var f=s[c],d=o[c]||[];o[c]=d;var h={attrs:u,bitrate:0,id:l++,groupId:u["GROUP-ID"]||"",instreamId:u["INSTREAM-ID"],name:u.NAME||u.LANGUAGE||"",type:c,default:u.bool("DEFAULT"),autoselect:u.bool("AUTOSELECT"),forced:u.bool("FORCED"),lang:u.LANGUAGE,url:u.URI?e.resolve(u.URI,n):""};if(null!=f&&f.length){var p=e.findGroup(f,h.groupId)||f[0];Be(h,p,"audioCodec"),Be(h,p,"textCodec")}d.push(h)}}return o},e.parseLevelPlaylist=function(e,t,n,r,i,o){var a,l,u,c=new V(t),f=c.fragments,d=null,h=0,p=0,m=0,g=0,v=null,b=new U(r,t),T=-1,S=!1;for(Re.lastIndex=0,c.m3u8=e,c.hasVariableRefs=!1;null!==(a=Re.exec(e));){S&&(S=!1,(b=new U(r,t)).start=m,b.sn=h,b.cc=g,b.level=n,d&&(b.initSegment=d,b.rawProgramDateTime=d.rawProgramDateTime,d.rawProgramDateTime=null));var E=a[1];if(E){b.duration=parseFloat(E);var w=(" "+a[2]).slice(1);b.title=w||null,b.tagList.push(w?["INF",E,w]:["INF",E])}else if(a[3]){if(y(b.duration)){b.start=m,u&&He(b,u,c),b.sn=h,b.level=n,b.cc=g,b.urlId=i,f.push(b);var _=(" "+a[3]).slice(1);b.relurl=_,Ge(b,v),v=b,m+=b.duration,h++,p=0,S=!0}}else if(a[4]){var A=(" "+a[4]).slice(1);v?b.setByteRange(A,v):b.setByteRange(A)}else if(a[5])b.rawProgramDateTime=(" "+a[5]).slice(1),b.tagList.push(["PROGRAM-DATE-TIME",b.rawProgramDateTime]),-1===T&&(T=f.length);else{if(!(a=a[0].match(Oe))){P.warn("No matches on slow regex match for level playlist!");continue}for(l=1;l<a.length&&void 0===a[l];l++);var x=(" "+a[l]).slice(1),k=(" "+a[l+1]).slice(1),L=a[l+2]?(" "+a[l+2]).slice(1):"";switch(x){case"PLAYLIST-TYPE":c.type=k.toUpperCase();break;case"MEDIA-SEQUENCE":h=c.startSN=parseInt(k);break;case"SKIP":var C=new R(k),M=C.decimalInteger("SKIPPED-SEGMENTS");if(y(M)){c.skippedSegments=M;for(var O=M;O--;)f.unshift(null);h+=M}var I=C.enumeratedString("RECENTLY-REMOVED-DATERANGES");I&&(c.recentlyRemovedDateranges=I.split("\t"));break;case"TARGETDURATION":c.targetduration=Math.max(parseInt(k),1);break;case"VERSION":c.version=parseInt(k);break;case"EXTM3U":break;case"ENDLIST":c.live=!1;break;case"#":(k||L)&&b.tagList.push(L?[k,L]:[k]);break;case"DISCONTINUITY":g++,b.tagList.push(["DIS"]);break;case"GAP":b.gap=!0,b.tagList.push([x]);break;case"BITRATE":b.tagList.push([x,k]);break;case"DATERANGE":var N=new R(k),F=new D(N,c.dateRanges[N.ID]);F.isValid||c.skippedSegments?c.dateRanges[F.id]=F:P.warn('Ignoring invalid DATERANGE tag: "'+k+'"'),b.tagList.push(["EXT-X-DATERANGE",k]);break;case"DEFINE":break;case"DISCONTINUITY-SEQUENCE":g=parseInt(k);break;case"KEY":var B=De(k,t);if(B.isSupported()){if("NONE"===B.method){u=void 0;break}u||(u={}),u[B.keyFormat]&&(u=s({},u)),u[B.keyFormat]=B}else P.warn('[Keys] Ignoring invalid EXT-X-KEY tag: "'+k+'"');break;case"START":c.startTimeOffset=Ne(k);break;case"MAP":var G=new R(k);if(b.duration){var j=new U(r,t);Ue(j,G,n,u),d=j,b.initSegment=d,d.rawProgramDateTime&&!b.rawProgramDateTime&&(b.rawProgramDateTime=d.rawProgramDateTime)}else Ue(b,G,n,u),d=b,S=!0;break;case"SERVER-CONTROL":var W=new R(k);c.canBlockReload=W.bool("CAN-BLOCK-RELOAD"),c.canSkipUntil=W.optionalFloat("CAN-SKIP-UNTIL",0),c.canSkipDateRanges=c.canSkipUntil>0&&W.bool("CAN-SKIP-DATERANGES"),c.partHoldBack=W.optionalFloat("PART-HOLD-BACK",0),c.holdBack=W.optionalFloat("HOLD-BACK",0);break;case"PART-INF":var $=new R(k);c.partTarget=$.decimalFloatingPoint("PART-TARGET");break;case"PART":var K=c.partList;K||(K=c.partList=[]);var Z=p>0?K[K.length-1]:void 0,X=p++,z=new R(k),q=new H(z,b,t,X,Z);K.push(q),b.duration+=q.duration;break;case"PRELOAD-HINT":var Y=new R(k);c.preloadHint=Y;break;case"RENDITION-REPORT":var Q=new R(k);c.renditionReports=c.renditionReports||[],c.renditionReports.push(Q);break;default:P.warn("line parsed but not handled: "+a)}}}v&&!v.relurl?(f.pop(),m-=v.duration,c.partList&&(c.fragmentHint=v)):c.partList&&(Ge(b,v),b.cc=g,c.fragmentHint=b,u&&He(b,u,c));var J=f.length,ee=f[0],te=f[J-1];if((m+=c.skippedSegments*c.targetduration)>0&&J&&te){c.averagetargetduration=m/J;var ne=te.sn;c.endSN="initSegment"!==ne?ne:0,c.live||(te.endList=!0),ee&&(c.startCC=ee.cc)}else c.endSN=0,c.startCC=0;return c.fragmentHint&&(m+=c.fragmentHint.duration),c.totalduration=m,c.endCC=g,T>0&&function(e,t){for(var n=e[t],r=t;r--;){var i=e[r];if(!i)return;i.programDateTime=n.programDateTime-1e3*i.duration,n=i}}(f,T),c},e}();function De(e,t,n){var r,i,o=new R(e),a=null!=(r=o.METHOD)?r:"",s=o.URI,l=o.hexadecimalInteger("IV"),u=o.KEYFORMATVERSIONS,c=null!=(i=o.KEYFORMAT)?i:"identity";s&&o.IV&&!l&&P.error("Invalid IV: "+o.IV);var f=s?Ie.resolve(s,t):"",d=(u||"1").split("/").map(Number).filter(Number.isFinite);return new _e(a,f,c,d,l)}function Ne(e){var t=new R(e).decimalFloatingPoint("TIME-OFFSET");return y(t)?t:null}function Fe(e,t){["video","audio","text"].forEach((function(n){var r=e.filter((function(e){return function(e,t){var n=xe[t];return!!n&&!0===n[e.slice(0,4)]}(e,n)}));if(r.length){var i=r.filter((function(e){return 0===e.lastIndexOf("avc1",0)||0===e.lastIndexOf("mp4a",0)}));t[n+"Codec"]=i.length>0?i[0]:r[0],e=e.filter((function(e){return-1===r.indexOf(e)}))}})),t.unknownCodecs=e}function Be(e,t,n){var r=t[n];r&&(e[n]=r)}function Ge(e,t){e.rawProgramDateTime?e.programDateTime=Date.parse(e.rawProgramDateTime):null!=t&&t.programDateTime&&(e.programDateTime=t.endProgramDateTime),y(e.programDateTime)||(e.programDateTime=null,e.rawProgramDateTime=null)}function Ue(e,t,n,r){e.relurl=t.URI,t.BYTERANGE&&e.setByteRange(t.BYTERANGE),e.level=n,e.sn="initSegment",r&&(e.levelkeys=r),e.initSegment=null}function He(e,t,n){e.levelkeys=t;var r=n.encryptedFragments;r.length&&r[r.length-1].levelkeys===t||!Object.keys(t).some((function(e){return t[e].isCommonEncryption}))||r.push(e)}var Ve="manifest",je="level",We="audioTrack",$e="subtitleTrack",Ke="main",Ze="audio",Xe="subtitle";function ze(e){switch(e.type){case We:return Ze;case $e:return Xe;default:return Ke}}function qe(e,t){var n=e.url;return void 0!==n&&0!==n.indexOf("data:")||(n=t.url),n}var Ye=function(){function e(e){this.hls=void 0,this.loaders=Object.create(null),this.variableList=null,this.hls=e,this.registerListeners()}var t=e.prototype;return t.startLoad=function(e){},t.stopLoad=function(){this.destroyInternalLoaders()},t.registerListeners=function(){var e=this.hls;e.on(S.MANIFEST_LOADING,this.onManifestLoading,this),e.on(S.LEVEL_LOADING,this.onLevelLoading,this),e.on(S.AUDIO_TRACK_LOADING,this.onAudioTrackLoading,this),e.on(S.SUBTITLE_TRACK_LOADING,this.onSubtitleTrackLoading,this)},t.unregisterListeners=function(){var e=this.hls;e.off(S.MANIFEST_LOADING,this.onManifestLoading,this),e.off(S.LEVEL_LOADING,this.onLevelLoading,this),e.off(S.AUDIO_TRACK_LOADING,this.onAudioTrackLoading,this),e.off(S.SUBTITLE_TRACK_LOADING,this.onSubtitleTrackLoading,this)},t.createInternalLoader=function(e){var t=this.hls.config,n=t.pLoader,r=t.loader,i=new(n||r)(t);return this.loaders[e.type]=i,i},t.getInternalLoader=function(e){return this.loaders[e.type]},t.resetInternalLoader=function(e){this.loaders[e]&&delete this.loaders[e]},t.destroyInternalLoaders=function(){for(var e in this.loaders){var t=this.loaders[e];t&&t.destroy(),this.resetInternalLoader(e)}},t.destroy=function(){this.variableList=null,this.unregisterListeners(),this.destroyInternalLoaders()},t.onManifestLoading=function(e,t){var n=t.url;this.variableList=null,this.load({id:null,level:0,responseType:"text",type:Ve,url:n,deliveryDirectives:null})},t.onLevelLoading=function(e,t){var n=t.id,r=t.level,i=t.url,o=t.deliveryDirectives;this.load({id:n,level:r,responseType:"text",type:je,url:i,deliveryDirectives:o})},t.onAudioTrackLoading=function(e,t){var n=t.id,r=t.groupId,i=t.url,o=t.deliveryDirectives;this.load({id:n,groupId:r,level:null,responseType:"text",type:We,url:i,deliveryDirectives:o})},t.onSubtitleTrackLoading=function(e,t){var n=t.id,r=t.groupId,i=t.url,o=t.deliveryDirectives;this.load({id:n,groupId:r,level:null,responseType:"text",type:$e,url:i,deliveryDirectives:o})},t.load=function(e){var t,n,r,i=this,o=this.hls.config,a=this.getInternalLoader(e);if(a){var l=a.context;if(l&&l.url===e.url)return void P.trace("[playlist-loader]: playlist request ongoing");P.log("[playlist-loader]: aborting previous loader for type: "+e.type),a.abort()}if(n=e.type===Ve?o.manifestLoadPolicy.default:s({},o.playlistLoadPolicy.default,{timeoutRetry:null,errorRetry:null}),a=this.createInternalLoader(e),null!=(t=e.deliveryDirectives)&&t.part&&(e.type===je&&null!==e.level?r=this.hls.levels[e.level].details:e.type===We&&null!==e.id?r=this.hls.audioTracks[e.id].details:e.type===$e&&null!==e.id&&(r=this.hls.subtitleTracks[e.id].details),r)){var u=r.partTarget,c=r.targetduration;if(u&&c){var f=1e3*Math.max(3*u,.8*c);n=s({},n,{maxTimeToFirstByteMs:Math.min(f,n.maxTimeToFirstByteMs),maxLoadTimeMs:Math.min(f,n.maxTimeToFirstByteMs)})}}var d=n.errorRetry||n.timeoutRetry||{},h={loadPolicy:n,timeout:n.maxLoadTimeMs,maxRetry:d.maxNumRetry||0,retryDelay:d.retryDelayMs||0,maxRetryDelay:d.maxRetryDelayMs||0},p={onSuccess:function(e,t,n,r){var o=i.getInternalLoader(n);i.resetInternalLoader(n.type);var a=e.data;0===a.indexOf("#EXTM3U")?(t.parsing.start=performance.now(),Ie.isMediaPlaylist(a)?i.handleTrackOrLevelPlaylist(e,t,n,r||null,o):i.handleMasterPlaylist(e,t,n,r)):i.handleManifestParsingError(e,n,new Error("no EXTM3U delimiter"),r||null,t)},onError:function(e,t,n,r){i.handleNetworkError(t,n,!1,e,r)},onTimeout:function(e,t,n){i.handleNetworkError(t,n,!0,void 0,e)}};a.load(e,h,p)},t.handleMasterPlaylist=function(e,t,n,r){var i=this.hls,o=e.data,a=qe(e,n),s=Ie.parseMasterPlaylist(o,a);if(s.playlistParsingError)this.handleManifestParsingError(e,n,s.playlistParsingError,r,t);else{var l=s.contentSteering,u=s.levels,c=s.sessionData,f=s.sessionKeys,d=s.startTimeOffset,h=s.variableList;this.variableList=h;var p=Ie.parseMasterPlaylistMedia(o,a,s),m=p.AUDIO,g=void 0===m?[]:m,v=p.SUBTITLES,y=p["CLOSED-CAPTIONS"];g.length&&(g.some((function(e){return!e.url}))||!u[0].audioCodec||u[0].attrs.AUDIO||(P.log("[playlist-loader]: audio codec signaled in quality level, but no embedded audio track signaled, create one"),g.unshift({type:"main",name:"main",groupId:"main",default:!1,autoselect:!1,forced:!1,id:-1,attrs:new R({}),bitrate:0,url:""}))),i.trigger(S.MANIFEST_LOADED,{levels:u,audioTracks:g,subtitles:v,captions:y,contentSteering:l,url:a,stats:t,networkDetails:r,sessionData:c,sessionKeys:f,startTimeOffset:d,variableList:h})}},t.handleTrackOrLevelPlaylist=function(e,t,n,r,i){var o=this.hls,a=n.id,s=n.level,l=n.type,u=qe(e,n),c=y(a)?a:0,f=y(s)?s:c,d=ze(n),h=Ie.parseLevelPlaylist(e.data,u,f,d,c,this.variableList);if(l===Ve){var p={attrs:new R({}),bitrate:0,details:h,name:"",url:u};o.trigger(S.MANIFEST_LOADED,{levels:[p],audioTracks:[],url:u,stats:t,networkDetails:r,sessionData:null,sessionKeys:null,contentSteering:null,startTimeOffset:null,variableList:null})}t.parsing.end=performance.now(),n.levelDetails=h,this.handlePlaylistLoaded(h,e,t,n,r,i)},t.handleManifestParsingError=function(e,t,n,r,i){this.hls.trigger(S.ERROR,{type:E.NETWORK_ERROR,details:w.MANIFEST_PARSING_ERROR,fatal:t.type===Ve,url:e.url,err:n,error:n,reason:n.message,response:e,context:t,networkDetails:r,stats:i})},t.handleNetworkError=function(e,t,n,i,o){void 0===n&&(n=!1);var a="A network "+(n?"timeout":"error"+(i?" (status "+i.code+")":""))+" occurred while loading "+e.type;e.type===je?a+=": "+e.level+" id: "+e.id:e.type!==We&&e.type!==$e||(a+=" id: "+e.id+' group-id: "'+e.groupId+'"');var s=new Error(a);P.warn("[playlist-loader]: "+a);var l=w.UNKNOWN,u=!1,c=this.getInternalLoader(e);switch(e.type){case Ve:l=n?w.MANIFEST_LOAD_TIMEOUT:w.MANIFEST_LOAD_ERROR,u=!0;break;case je:l=n?w.LEVEL_LOAD_TIMEOUT:w.LEVEL_LOAD_ERROR,u=!1;break;case We:l=n?w.AUDIO_TRACK_LOAD_TIMEOUT:w.AUDIO_TRACK_LOAD_ERROR,u=!1;break;case $e:l=n?w.SUBTITLE_TRACK_LOAD_TIMEOUT:w.SUBTITLE_LOAD_ERROR,u=!1}c&&this.resetInternalLoader(e.type);var f={type:E.NETWORK_ERROR,details:l,fatal:u,url:e.url,loader:c,context:e,error:s,networkDetails:t,stats:o};if(i){var d=(null==t?void 0:t.url)||e.url;f.response=r({url:d,data:void 0},i)}this.hls.trigger(S.ERROR,f)},t.handlePlaylistLoaded=function(e,t,n,r,i,o){var a=this.hls,s=r.type,l=r.level,u=r.id,c=r.groupId,f=r.deliveryDirectives,d=qe(t,r),h=ze(r),p="number"==typeof r.level&&h===Ke?l:void 0;if(e.fragments.length){e.targetduration||(e.playlistParsingError=new Error("Missing Target Duration"));var m=e.playlistParsingError;if(m)a.trigger(S.ERROR,{type:E.NETWORK_ERROR,details:w.LEVEL_PARSING_ERROR,fatal:!1,url:d,error:m,reason:m.message,response:t,context:r,level:p,parent:h,networkDetails:i,stats:n});else switch(e.live&&o&&(o.getCacheAge&&(e.ageHeader=o.getCacheAge()||0),o.getCacheAge&&!isNaN(e.ageHeader)||(e.ageHeader=0)),s){case Ve:case je:a.trigger(S.LEVEL_LOADED,{details:e,level:p||0,id:u||0,stats:n,networkDetails:i,deliveryDirectives:f});break;case We:a.trigger(S.AUDIO_TRACK_LOADED,{details:e,id:u||0,groupId:c||"",stats:n,networkDetails:i,deliveryDirectives:f});break;case $e:a.trigger(S.SUBTITLE_TRACK_LOADED,{details:e,id:u||0,groupId:c||"",stats:n,networkDetails:i,deliveryDirectives:f})}}else{var g=new Error("No Segments found in Playlist");a.trigger(S.ERROR,{type:E.NETWORK_ERROR,details:w.LEVEL_EMPTY_ERROR,fatal:!1,url:d,error:g,reason:g.message,response:t,context:r,level:p,parent:h,networkDetails:i,stats:n})}},e}();function Qe(e,t){var n;try{n=new Event("addtrack")}catch(e){(n=document.createEvent("Event")).initEvent("addtrack",!1,!1)}n.track=e,t.dispatchEvent(n)}var Je="org.id3",et="https://aomedia.org/emsg/ID3";function tt(){if("undefined"!=typeof self)return self.VTTCue||self.TextTrackCue}function nt(e,t,n,i,o){var a=new e(t,n,"");try{a.value=i,o&&(a.type=o)}catch(s){a=new e(t,n,JSON.stringify(o?r({type:o},i):i))}return a}var rt=function(){var e=tt();try{e&&new e(0,Number.POSITIVE_INFINITY,"")}catch(e){return Number.MAX_VALUE}return Number.POSITIVE_INFINITY}();function it(e,t){return e.getTime()/1e3-t}function ot(e){return Uint8Array.from(e.replace(/^0x/,"").replace(/([\da-fA-F]{2}) ?/g,"0x$1 ").replace(/ +$/,"").split(" ")).buffer}var at=function(){function e(e){this.hls=void 0,this.id3Track=null,this.media=null,this.dateRangeCuesAppended={},this.hls=e,this._registerListeners()}var t=e.prototype;return t.destroy=function(){this._unregisterListeners(),this.id3Track=null,this.media=null,this.dateRangeCuesAppended={},this.hls=null},t._registerListeners=function(){var e=this.hls;e.on(S.MEDIA_ATTACHED,this.onMediaAttached,this),e.on(S.MEDIA_DETACHING,this.onMediaDetaching,this),e.on(S.MANIFEST_LOADING,this.onManifestLoading,this),e.on(S.FRAG_PARSING_METADATA,this.onFragParsingMetadata,this),e.on(S.BUFFER_FLUSHING,this.onBufferFlushing,this),e.on(S.LEVEL_UPDATED,this.onLevelUpdated,this)},t._unregisterListeners=function(){var e=this.hls;e.off(S.MEDIA_ATTACHED,this.onMediaAttached,this),e.off(S.MEDIA_DETACHING,this.onMediaDetaching,this),e.off(S.MANIFEST_LOADING,this.onManifestLoading,this),e.off(S.FRAG_PARSING_METADATA,this.onFragParsingMetadata,this),e.off(S.BUFFER_FLUSHING,this.onBufferFlushing,this),e.off(S.LEVEL_UPDATED,this.onLevelUpdated,this)},t.onMediaAttached=function(e,t){this.media=t.media},t.onMediaDetaching=function(){this.id3Track&&(function(e){var t=e.mode;if("disabled"===t&&(e.mode="hidden"),e.cues)for(var n=e.cues.length;n--;)e.removeCue(e.cues[n]);"disabled"===t&&(e.mode=t)}(this.id3Track),this.id3Track=null,this.media=null,this.dateRangeCuesAppended={})},t.onManifestLoading=function(){this.dateRangeCuesAppended={}},t.createTrack=function(e){var t=this.getID3Track(e.textTracks);return t.mode="hidden",t},t.getID3Track=function(e){if(this.media){for(var t=0;t<e.length;t++){var n=e[t];if("metadata"===n.kind&&"id3"===n.label)return Qe(n,this.media),n}return this.media.addTextTrack("metadata","id3")}},t.onFragParsingMetadata=function(e,t){if(this.media){var n=this.hls.config,r=n.enableEmsgMetadataCues,i=n.enableID3MetadataCues;if(r||i){var o=t.samples;this.id3Track||(this.id3Track=this.createTrack(this.media));var a=tt();if(a)for(var s=0;s<o.length;s++){var l=o[s].type;if((l!==et||r)&&i){var u=J(o[s].data);if(u){var c=o[s].pts,f=c+o[s].duration;f>rt&&(f=rt),f-c<=0&&(f=c+.25);for(var d=0;d<u.length;d++){var h=u[d];if(!Y(h)){this.updateId3CueEnds(c,l);var p=nt(a,c,f,h,l);p&&this.id3Track.addCue(p)}}}}}}}},t.updateId3CueEnds=function(e,t){var n,r=null==(n=this.id3Track)?void 0:n.cues;if(r)for(var i=r.length;i--;){var o=r[i];o.type===t&&o.startTime<e&&o.endTime===rt&&(o.endTime=e)}},t.onBufferFlushing=function(e,t){var n=t.startOffset,r=t.endOffset,i=t.type,o=this.id3Track,a=this.hls;if(a){var s=a.config,l=s.enableEmsgMetadataCues,u=s.enableID3MetadataCues;o&&(l||u)&&function(e,t,n,r){var i=e.mode;if("disabled"===i&&(e.mode="hidden"),e.cues&&e.cues.length>0)for(var o=function(e,t,n){var r=[],i=function(e,t){if(t<e[0].startTime)return 0;var n=e.length-1;if(t>e[n].endTime)return-1;for(var r=0,i=n;r<=i;){var o=Math.floor((i+r)/2);if(t<e[o].startTime)i=o-1;else{if(!(t>e[o].startTime&&r<n))return o;r=o+1}}return e[r].startTime-t<t-e[i].startTime?r:i}(e,t);if(i>-1)for(var o=i,a=e.length;o<a;o++){var s=e[o];if(s.startTime>=t&&s.endTime<=n)r.push(s);else if(s.startTime>n)return r}return r}(e.cues,t,n),a=0;a<o.length;a++)r&&!r(o[a])||e.removeCue(o[a]);"disabled"===i&&(e.mode=i)}(o,n,r,"audio"===i?function(e){return e.type===Je&&u}:"video"===i?function(e){return e.type===et&&l}:function(e){return e.type===Je&&u||e.type===et&&l})}},t.onLevelUpdated=function(e,t){var n=this,r=t.details;if(this.media&&r.hasProgramDateTime&&this.hls.config.enableDateRangeMetadataCues){var i=this.dateRangeCuesAppended,o=this.id3Track,a=r.dateRanges,s=Object.keys(a);if(o)for(var l=Object.keys(i).filter((function(e){return!s.includes(e)})),u=function(){var e=l[c];Object.keys(i[e].cues).forEach((function(t){o.removeCue(i[e].cues[t])})),delete i[e]},c=l.length;c--;)u();var f=r.fragments[r.fragments.length-1];if(0!==s.length&&y(null==f?void 0:f.programDateTime)){this.id3Track||(this.id3Track=this.createTrack(this.media));for(var d=f.programDateTime/1e3-f.start,h=tt(),p=function(){var e=s[m],t=a[e],r=i[e],o=(null==r?void 0:r.cues)||{},l=(null==r?void 0:r.durationKnown)||!1,u=it(t.startDate,d),c=rt,f=t.endDate;if(f)c=it(f,d),l=!0;else if(t.endOnNext&&!l){var p=s.reduce((function(e,n){var r=a[n];return r.class===t.class&&r.id!==n&&r.startDate>t.startDate&&e.push(r),e}),[]).sort((function(e,t){return e.startDate.getTime()-t.startDate.getTime()}))[0];p&&(c=it(p.startDate,d),l=!0)}for(var g=Object.keys(t.attr),v=0;v<g.length;v++){var y=g[v];if(O(y)){var b=o[y];if(b)l&&!r.durationKnown&&(b.endTime=c);else if(h){var T=t.attr[y];I(y)&&(T=ot(T));var S=nt(h,u,c,{key:y,data:T},"com.apple.quicktime.HLS");S&&(S.id=e,n.id3Track.addCue(S),o[y]=S)}}}i[e]={cues:o,dateRange:t,durationKnown:l}},m=0;m<s.length;m++)p()}}},e}(),st=function(){function e(e){var t=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 t.timeupdate()},this.hls=e,this.config=e.config,this.registerListeners()}var t=e.prototype;return t.destroy=function(){this.unregisterListeners(),this.onMediaDetaching(),this.levelDetails=null,this.hls=this.timeupdateHandler=null},t.registerListeners=function(){this.hls.on(S.MEDIA_ATTACHED,this.onMediaAttached,this),this.hls.on(S.MEDIA_DETACHING,this.onMediaDetaching,this),this.hls.on(S.MANIFEST_LOADING,this.onManifestLoading,this),this.hls.on(S.LEVEL_UPDATED,this.onLevelUpdated,this),this.hls.on(S.ERROR,this.onError,this)},t.unregisterListeners=function(){this.hls.off(S.MEDIA_ATTACHED,this.onMediaAttached,this),this.hls.off(S.MEDIA_DETACHING,this.onMediaDetaching,this),this.hls.off(S.MANIFEST_LOADING,this.onManifestLoading,this),this.hls.off(S.LEVEL_UPDATED,this.onLevelUpdated,this),this.hls.off(S.ERROR,this.onError,this)},t.onMediaAttached=function(e,t){this.media=t.media,this.media.addEventListener("timeupdate",this.timeupdateHandler)},t.onMediaDetaching=function(){this.media&&(this.media.removeEventListener("timeupdate",this.timeupdateHandler),this.media=null)},t.onManifestLoading=function(){this.levelDetails=null,this._latency=null,this.stallCount=0},t.onLevelUpdated=function(e,t){var n=t.details;this.levelDetails=n,n.advanced&&this.timeupdate(),!n.live&&this.media&&this.media.removeEventListener("timeupdate",this.timeupdateHandler)},t.onError=function(e,t){var n;t.details===w.BUFFER_STALLED_ERROR&&(this.stallCount++,null!=(n=this.levelDetails)&&n.live&&P.warn("[playback-rate-controller]: Stall detected, adjusting target latency"))},t.timeupdate=function(){var e=this.media,t=this.levelDetails;if(e&&t){this.currentTime=e.currentTime;var n=this.computeLatency();if(null!==n){this._latency=n;var r=this.config,i=r.lowLatencyMode,o=r.maxLiveSyncPlaybackRate;if(i&&1!==o){var a=this.targetLatency;if(null!==a){var s=n-a,l=s<Math.min(this.maxLatency,a+t.targetduration);if(t.live&&l&&s>.05&&this.forwardBufferLength>1){var u=Math.min(2,Math.max(1,o)),c=Math.round(2/(1+Math.exp(-.75*s-this.edgeStalled))*20)/20;e.playbackRate=Math.min(u,Math.max(1,c))}else 1!==e.playbackRate&&0!==e.playbackRate&&(e.playbackRate=1)}}}}},t.estimateLiveEdge=function(){var e=this.levelDetails;return null===e?null:e.edge+e.age},t.computeLatency=function(){var e=this.estimateLiveEdge();return null===e?null:e-this.currentTime},o(e,[{key:"latency",get:function(){return this._latency||0}},{key:"maxLatency",get:function(){var e=this.config,t=this.levelDetails;return void 0!==e.liveMaxLatencyDuration?e.liveMaxLatencyDuration:t?e.liveMaxLatencyDurationCount*t.targetduration:0}},{key:"targetLatency",get:function(){var e=this.levelDetails;if(null===e)return null;var t=e.holdBack,n=e.partHoldBack,r=e.targetduration,i=this.config,o=i.liveSyncDuration,a=i.liveSyncDurationCount,s=i.lowLatencyMode,l=this.hls.userConfig,u=s&&n||t;(l.liveSyncDuration||l.liveSyncDurationCount||0===u)&&(u=void 0!==o?o:a*r);var c=r;return u+Math.min(1*this.stallCount,c)}},{key:"liveSyncPosition",get:function(){var e=this.estimateLiveEdge(),t=this.targetLatency,n=this.levelDetails;if(null===e||null===t||null===n)return null;var r=n.edge,i=e-t-this.edgeStalled,o=r-n.totalduration,a=r-(this.config.lowLatencyMode&&n.partTarget||n.targetduration);return Math.min(Math.max(o,i),a)}},{key:"drift",get:function(){var e=this.levelDetails;return null===e?1:e.drift}},{key:"edgeStalled",get:function(){var e=this.levelDetails;if(null===e)return 0;var t=3*(this.config.lowLatencyMode&&e.partTarget||e.targetduration);return Math.max(e.age-t,0)}},{key:"forwardBufferLength",get:function(){var e=this.media,t=this.levelDetails;if(!e||!t)return 0;var n=e.buffered.length;return(n?e.buffered.end(n-1):t.edge)-this.currentTime}}]),e}(),lt=["NONE","TYPE-0","TYPE-1",null],ut=function(){function e(e,t,n){this.msn=void 0,this.part=void 0,this.skip=void 0,this.msn=e,this.part=t,this.skip=n}return e.prototype.addDirectives=function(e){var t=new self.URL(e);return void 0!==this.msn&&t.searchParams.set("_HLS_msn",this.msn.toString()),void 0!==this.part&&t.searchParams.set("_HLS_part",this.part.toString()),this.skip&&t.searchParams.set("_HLS_skip",this.skip),t.href},e}(),ct=function(){function e(e){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=[e.url],this._attrs=[e.attrs],this.bitrate=e.bitrate,e.details&&(this.details=e.details),this.id=e.id||0,this.name=e.name,this.width=e.width||0,this.height=e.height||0,this.audioCodec=e.audioCodec,this.videoCodec=e.videoCodec,this.unknownCodecs=e.unknownCodecs,this.codecSet=[e.videoCodec,e.audioCodec].filter((function(e){return e})).join(",").replace(/\.[^.,]+/g,"")}return e.prototype.addFallback=function(e){this.url.push(e.url),this._attrs.push(e.attrs)},o(e,[{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(e){var t=e%this.url.length;this._urlId!==t&&(this.fragmentError=0,this.loadError=0,this.details=void 0,this._urlId=t)}},{key:"audioGroupId",get:function(){var e;return null==(e=this.audioGroupIds)?void 0:e[this.urlId]}},{key:"textGroupId",get:function(){var e;return null==(e=this.textGroupIds)?void 0:e[this.urlId]}}]),e}();function ft(e,t){var n=t.startPTS;if(y(n)){var r,i=0;t.sn>e.sn?(i=n-e.start,r=e):(i=e.start-n,r=t),r.duration!==i&&(r.duration=i)}else t.sn>e.sn?e.cc===t.cc&&e.minEndPTS?t.start=e.start+(e.minEndPTS-e.start):t.start=e.start+e.duration:t.start=Math.max(e.start-t.duration,0)}function dt(e,t,n,r,i,o){r-n<=0&&(P.warn("Fragment should have a positive duration",t),r=n+t.duration,o=i+t.duration);var a=n,s=r,l=t.startPTS,u=t.endPTS;if(y(l)){var c=Math.abs(l-n);y(t.deltaPTS)?t.deltaPTS=Math.max(c,t.deltaPTS):t.deltaPTS=c,a=Math.max(n,l),n=Math.min(n,l),i=Math.min(i,t.startDTS),s=Math.min(r,u),r=Math.max(r,u),o=Math.max(o,t.endDTS)}var f=n-t.start;0!==t.start&&(t.start=n),t.duration=r-t.start,t.startPTS=n,t.maxStartPTS=a,t.startDTS=i,t.endPTS=r,t.minEndPTS=s,t.endDTS=o;var d,h=t.sn;if(!e||h<e.startSN||h>e.endSN)return 0;var p=h-e.startSN,m=e.fragments;for(m[p]=t,d=p;d>0;d--)ft(m[d],m[d-1]);for(d=p;d<m.length-1;d++)ft(m[d],m[d+1]);return e.fragmentHint&&ft(m[m.length-1],e.fragmentHint),e.PTSKnown=e.alignedSliding=!0,f}function ht(e,t){for(var n=null,r=e.fragments,i=r.length-1;i>=0;i--){var o=r[i].initSegment;if(o){n=o;break}}e.fragmentHint&&delete e.fragmentHint.endPTS;var a,s=0;if(function(e,t,n){for(var r=t.skippedSegments,i=Math.max(e.startSN,t.startSN)-t.startSN,o=(e.fragmentHint?1:0)+(r?t.endSN:Math.min(e.endSN,t.endSN))-t.startSN,a=t.startSN-e.startSN,s=t.fragmentHint?t.fragments.concat(t.fragmentHint):t.fragments,l=e.fragmentHint?e.fragments.concat(e.fragmentHint):e.fragments,u=i;u<=o;u++){var c=l[a+u],f=s[u];r&&!f&&u<r&&(f=t.fragments[u]=c),c&&f&&n(c,f)}}(e,t,(function(e,r){e.relurl&&(s=e.cc-r.cc),y(e.startPTS)&&y(e.endPTS)&&(r.start=r.startPTS=e.startPTS,r.startDTS=e.startDTS,r.maxStartPTS=e.maxStartPTS,r.endPTS=e.endPTS,r.endDTS=e.endDTS,r.minEndPTS=e.minEndPTS,r.duration=e.endPTS-e.startPTS,r.duration&&(a=r),t.PTSKnown=t.alignedSliding=!0),r.elementaryStreams=e.elementaryStreams,r.loader=e.loader,r.stats=e.stats,r.urlId=e.urlId,e.initSegment&&(r.initSegment=e.initSegment,n=e.initSegment)})),n&&(t.fragmentHint?t.fragments.concat(t.fragmentHint):t.fragments).forEach((function(e){var t;e.initSegment&&e.initSegment.relurl!==(null==(t=n)?void 0:t.relurl)||(e.initSegment=n)})),t.skippedSegments)if(t.deltaUpdateFailed=t.fragments.some((function(e){return!e})),t.deltaUpdateFailed){P.warn("[level-helper] Previous playlist missing segments skipped in delta playlist");for(var l=t.skippedSegments;l--;)t.fragments.shift();t.startSN=t.fragments[0].sn,t.startCC=t.fragments[0].cc}else t.canSkipDateRanges&&(t.dateRanges=pt(e.dateRanges,t.dateRanges,t.recentlyRemovedDateranges));var u=t.fragments;if(s){P.warn("discontinuity sliding from playlist, take drift into account");for(var c=0;c<u.length;c++)u[c].cc+=s}t.skippedSegments&&(t.startCC=t.fragments[0].cc),function(e,t,n){if(e&&t)for(var r=0,i=0,o=e.length;i<=o;i++){var a=e[i],s=t[i+r];a&&s&&a.index===s.index&&a.fragment.sn===s.fragment.sn?n(a,s):r--}}(e.partList,t.partList,(function(e,t){t.elementaryStreams=e.elementaryStreams,t.stats=e.stats})),a?dt(t,a,a.startPTS,a.endPTS,a.startDTS,a.endDTS):mt(e,t),u.length&&(t.totalduration=t.edge-u[0].start),t.driftStartTime=e.driftStartTime,t.driftStart=e.driftStart;var f=t.advancedDateTime;if(t.advanced&&f){var d=t.edge;t.driftStart||(t.driftStartTime=f,t.driftStart=d),t.driftEndTime=f,t.driftEnd=d}else t.driftEndTime=e.driftEndTime,t.driftEnd=e.driftEnd,t.advancedDateTime=e.advancedDateTime}function pt(e,t,n){var r=s({},e);return n&&n.forEach((function(e){delete r[e]})),Object.keys(t).forEach((function(e){var n=new D(t[e].attr,r[e]);n.isValid?r[e]=n:P.warn('Ignoring invalid Playlist Delta Update DATERANGE tag: "'+JSON.stringify(t[e].attr)+'"')})),r}function mt(e,t){var n=t.startSN+t.skippedSegments-e.startSN,r=e.fragments;n<0||n>=r.length||function(e,t){if(t){for(var n=e.fragments,r=e.skippedSegments;r<n.length;r++)n[r].start+=t;e.fragmentHint&&(e.fragmentHint.start+=t)}}(t,r[n].start)}function gt(e,t,n){var r;return null!=e&&e.details?vt(null==(r=e.details)?void 0:r.partList,t,n):null}function vt(e,t,n){if(e)for(var r=e.length;r--;){var i=e[r];if(i.index===n&&i.fragment.sn===t)return i}return null}function yt(e){switch(e.details){case w.FRAG_LOAD_TIMEOUT:case w.KEY_LOAD_TIMEOUT:case w.LEVEL_LOAD_TIMEOUT:case w.MANIFEST_LOAD_TIMEOUT:return!0}return!1}function bt(e,t){var n=yt(t);return e.default[(n?"timeout":"error")+"Retry"]}function Tt(e,t){var n="linear"===e.backoff?1:Math.pow(2,t);return Math.min(n*e.retryDelayMs,e.maxRetryDelayMs)}function St(e){return r(r({},e),{errorRetry:null,timeoutRetry:null})}function Et(e,t,n,r){return!!e&&t<e.maxNumRetry&&(function(e){return 0===e&&!1===navigator.onLine||!!e&&(e<400||e>499)}(r)||!!n)}var wt=function(e,t){for(var n=0,r=e.length-1,i=null,o=null;n<=r;){var a=t(o=e[i=(n+r)/2|0]);if(a>0)n=i+1;else{if(!(a<0))return o;r=i-1}}return null};function _t(e,t,n,r){void 0===n&&(n=0),void 0===r&&(r=0);var i=null;if(e?i=t[e.sn-t[0].sn+1]||null:0===n&&0===t[0].start&&(i=t[0]),i&&0===At(n,r,i))return i;var o=wt(t,At.bind(null,n,r));return!o||o===e&&i?i:o}function At(e,t,n){if(void 0===e&&(e=0),void 0===t&&(t=0),n.start<=e&&n.start+n.duration>e)return 0;var r=Math.min(t,n.duration+(n.deltaPTS?n.deltaPTS:0));return n.start+n.duration-r<=e?1:n.start-r>e&&n.start?-1:0}function xt(e,t,n){var r=1e3*Math.min(t,n.duration+(n.deltaPTS?n.deltaPTS:0));return(n.endProgramDateTime||0)-r>e}var kt,Lt=function(){function e(e){this.hls=void 0,this.playlistError=0,this.penalizedRenditions={},this.log=void 0,this.warn=void 0,this.error=void 0,this.hls=e,this.log=P.log.bind(P,"[info]:"),this.warn=P.warn.bind(P,"[warning]:"),this.error=P.error.bind(P,"[error]:"),this.registerListeners()}var t=e.prototype;return t.registerListeners=function(){var e=this.hls;e.on(S.ERROR,this.onError,this),e.on(S.MANIFEST_LOADING,this.onManifestLoading,this),e.on(S.LEVEL_UPDATED,this.onLevelUpdated,this)},t.unregisterListeners=function(){var e=this.hls;e&&(e.off(S.ERROR,this.onError,this),e.off(S.ERROR,this.onErrorOut,this),e.off(S.MANIFEST_LOADING,this.onManifestLoading,this),e.off(S.LEVEL_UPDATED,this.onLevelUpdated,this))},t.destroy=function(){this.unregisterListeners(),this.hls=null,this.penalizedRenditions={}},t.startLoad=function(e){this.playlistError=0},t.stopLoad=function(){},t.getVariantLevelIndex=function(e){return(null==e?void 0:e.type)===Ke?e.level:this.hls.loadLevel},t.onManifestLoading=function(){this.playlistError=0,this.penalizedRenditions={}},t.onLevelUpdated=function(){this.playlistError=0},t.onError=function(e,t){var n,r;if(!t.fatal){var i=this.hls,o=t.context;switch(t.details){case w.FRAG_LOAD_ERROR:case w.FRAG_LOAD_TIMEOUT:case w.KEY_LOAD_ERROR:case w.KEY_LOAD_TIMEOUT:return void(t.errorAction=this.getFragRetryOrSwitchAction(t));case w.FRAG_PARSING_ERROR:if(null!=(n=t.frag)&&n.gap)return void(t.errorAction={action:0,flags:0});case w.FRAG_GAP:case w.FRAG_DECRYPT_ERROR:return t.errorAction=this.getFragRetryOrSwitchAction(t),void(t.errorAction.action=2);case w.LEVEL_EMPTY_ERROR:case w.LEVEL_PARSING_ERROR:var a,s,l=t.parent===Ke?t.level:i.loadLevel;return void(t.details===w.LEVEL_EMPTY_ERROR&&null!=(a=t.context)&&null!=(s=a.levelDetails)&&s.live?t.errorAction=this.getPlaylistRetryOrSwitchAction(t,l):(t.levelRetry=!1,t.errorAction=this.getLevelSwitchAction(t,l)));case w.LEVEL_LOAD_ERROR:case w.LEVEL_LOAD_TIMEOUT:return void("number"==typeof(null==o?void 0:o.level)&&(t.errorAction=this.getPlaylistRetryOrSwitchAction(t,o.level)));case w.AUDIO_TRACK_LOAD_ERROR:case w.AUDIO_TRACK_LOAD_TIMEOUT:case w.SUBTITLE_LOAD_ERROR:case w.SUBTITLE_TRACK_LOAD_TIMEOUT:if(o){var u=i.levels[i.loadLevel];if(u&&(o.type===We&&o.groupId===u.audioGroupId||o.type===$e&&o.groupId===u.textGroupId))return t.errorAction=this.getPlaylistRetryOrSwitchAction(t,i.loadLevel),t.errorAction.action=2,void(t.errorAction.flags=1)}return;case w.KEY_SYSTEM_STATUS_OUTPUT_RESTRICTED:var c=i.levels[i.loadLevel],f=null==c?void 0:c.attrs["HDCP-LEVEL"];return void(f&&(t.errorAction={action:2,flags:2,hdcpLevel:f}));case w.BUFFER_ADD_CODEC_ERROR:case w.REMUX_ALLOC_ERROR:return void(t.errorAction=this.getLevelSwitchAction(t,null!=(r=t.level)?r:i.loadLevel));case w.INTERNAL_EXCEPTION:case w.BUFFER_APPENDING_ERROR:case w.BUFFER_APPEND_ERROR:case w.BUFFER_FULL_ERROR:case w.LEVEL_SWITCH_ERROR:case w.BUFFER_STALLED_ERROR:case w.BUFFER_SEEK_OVER_HOLE:case w.BUFFER_NUDGE_ON_STALL:return void(t.errorAction={action:0,flags:0})}if(t.type===E.KEY_SYSTEM_ERROR){var d=this.getVariantLevelIndex(t.frag);return t.levelRetry=!1,void(t.errorAction=this.getLevelSwitchAction(t,d))}}},t.getPlaylistRetryOrSwitchAction=function(e,t){var n,r=bt(this.hls.config.playlistLoadPolicy,e),i=this.playlistError++,o=null==(n=e.response)?void 0:n.code;if(Et(r,i,yt(e),o))return{action:5,flags:0,retryConfig:r,retryCount:i};var a=this.getLevelSwitchAction(e,t);return r&&(a.retryConfig=r,a.retryCount=i),a},t.getFragRetryOrSwitchAction=function(e){var t=this.hls,n=this.getVariantLevelIndex(e.frag),r=t.levels[n],i=t.config,o=i.fragLoadPolicy,a=i.keyLoadPolicy,s=bt(e.details.startsWith("key")?a:o,e),l=t.levels.reduce((function(e,t){return e+t.fragmentError}),0);if(r){var u;e.details!==w.FRAG_GAP&&r.fragmentError++;var c=null==(u=e.response)?void 0:u.code;if(Et(s,l,yt(e),c))return{action:5,flags:0,retryConfig:s,retryCount:l}}var f=this.getLevelSwitchAction(e,n);return s&&(f.retryConfig=s,f.retryCount=l),f},t.getLevelSwitchAction=function(e,t){var n=this.hls;null==t&&(t=n.loadLevel);var r=this.hls.levels[t];if(r&&(r.loadError++,n.autoLevelEnabled)){for(var i,o,a=-1,s=n.levels,l=n.loadLevel,u=n.minAutoLevel,c=n.maxAutoLevel,f=null==(i=e.frag)?void 0:i.type,d=null!=(o=e.context)?o:{},h=d.type,p=d.groupId,m=s.length;m--;){var g=(m+l)%s.length;if(g!==l&&g>=u&&g<=c&&0===s[g].loadError){var v=s[g];if(e.details===w.FRAG_GAP&&e.frag){var y=s[g].details;if(y){var b=_t(e.frag,y.fragments,e.frag.start);if(null!=b&&b.gap)continue}}else{if(h===We&&p===v.audioGroupId||h===$e&&p===v.textGroupId)continue;if(f===Ze&&r.audioGroupId===v.audioGroupId||f===Xe&&r.textGroupId===v.textGroupId)continue}a=g;break}}if(a>-1&&n.loadLevel!==a)return e.levelRetry=!0,this.playlistError=0,{action:2,flags:0,nextAutoLevel:a}}return{action:2,flags:1}},t.onErrorOut=function(e,t){var n;switch(null==(n=t.errorAction)?void 0:n.action){case 0:break;case 2:this.sendAlternateToPenaltyBox(t),t.errorAction.resolved||t.details===w.FRAG_GAP||(t.fatal=!0)}t.fatal&&this.hls.stopLoad()},t.sendAlternateToPenaltyBox=function(e){var t=this.hls,n=e.errorAction;if(n){var r=n.flags,i=n.hdcpLevel,o=n.nextAutoLevel;switch(r){case 0:this.switchLevel(e,o);break;case 1:n.resolved||(n.resolved=this.redundantFailover(e));break;case 2:i&&(t.maxHdcpLevel=lt[lt.indexOf(i)-1],n.resolved=!0),this.warn('Restricting playback to HDCP-LEVEL of "'+t.maxHdcpLevel+'" or lower')}n.resolved||this.switchLevel(e,o)}},t.switchLevel=function(e,t){void 0!==t&&e.errorAction&&(this.warn("switching to level "+t+" after "+e.details),this.hls.nextAutoLevel=t,e.errorAction.resolved=!0,this.hls.nextLoadLevel=this.hls.nextAutoLevel)},t.redundantFailover=function(e){var t=this,n=this.hls,r=this.penalizedRenditions,i=e.parent===Ke?e.level:n.loadLevel,o=n.levels[i],a=o.url.length,s=e.frag?e.frag.urlId:o.urlId;o.urlId!==s||e.frag&&!o.details||this.penalizeRendition(o,e);for(var l=function(){var l=(s+u)%a,c=r[l];if(!c||function(e,t,n){if(performance.now()-e.lastErrorPerfMs>3e5)return!0;var r=e.details;if(t.details===w.FRAG_GAP&&r&&t.frag){var i=t.frag.start,o=_t(null,r.fragments,i);if(o&&!o.gap)return!0}if(n&&e.errors.length<n.errors.length){var a=e.errors[e.errors.length-1];if(r&&a.frag&&t.frag&&Math.abs(a.frag.start-t.frag.start)>3*r.targetduration)return!0}return!1}(c,e,r[s]))return t.warn("Switching to Redundant Stream "+(l+1)+"/"+a+': "'+o.url[l]+'" after '+e.details),t.playlistError=0,n.levels.forEach((function(e){e.urlId=l})),n.nextLoadLevel=i,{v:!0}},u=1;u<a;u++){var c=l();if("object"==typeof c)return c.v}return!1},t.penalizeRendition=function(e,t){var n=this.penalizedRenditions,r=n[e.urlId]||{lastErrorPerfMs:0,errors:[],details:void 0};r.lastErrorPerfMs=performance.now(),r.errors.push(t),r.details=e.details,n[e.urlId]=r},e}(),Pt=function(e){function t(t,n){var r;return(r=e.call(this,t,"[level-controller]")||this)._levels=[],r._firstLevel=-1,r._startLevel=void 0,r.currentLevel=null,r.currentLevelIndex=-1,r.manualLevelIndex=-1,r.steering=void 0,r.onParsedComplete=void 0,r.steering=n,r._registerListeners(),r}l(t,e);var n=t.prototype;return n._registerListeners=function(){var e=this.hls;e.on(S.MANIFEST_LOADING,this.onManifestLoading,this),e.on(S.MANIFEST_LOADED,this.onManifestLoaded,this),e.on(S.LEVEL_LOADED,this.onLevelLoaded,this),e.on(S.LEVELS_UPDATED,this.onLevelsUpdated,this),e.on(S.AUDIO_TRACK_SWITCHED,this.onAudioTrackSwitched,this),e.on(S.FRAG_LOADED,this.onFragLoaded,this),e.on(S.ERROR,this.onError,this)},n._unregisterListeners=function(){var e=this.hls;e.off(S.MANIFEST_LOADING,this.onManifestLoading,this),e.off(S.MANIFEST_LOADED,this.onManifestLoaded,this),e.off(S.LEVEL_LOADED,this.onLevelLoaded,this),e.off(S.LEVELS_UPDATED,this.onLevelsUpdated,this),e.off(S.AUDIO_TRACK_SWITCHED,this.onAudioTrackSwitched,this),e.off(S.FRAG_LOADED,this.onFragLoaded,this),e.off(S.ERROR,this.onError,this)},n.destroy=function(){this._unregisterListeners(),this.steering=null,this.resetLevels(),e.prototype.destroy.call(this)},n.startLoad=function(){this._levels.forEach((function(e){e.loadError=0,e.fragmentError=0})),e.prototype.startLoad.call(this)},n.resetLevels=function(){this._startLevel=void 0,this.manualLevelIndex=-1,this.currentLevelIndex=-1,this.currentLevel=null,this._levels=[]},n.onManifestLoading=function(e,t){this.resetLevels()},n.onManifestLoaded=function(e,t){var n,r=[],i={};t.levels.forEach((function(e){var t,o=e.attrs;-1!==(null==(t=e.audioCodec)?void 0:t.indexOf("mp4a.40.34"))&&(kt||(kt=/chrome|firefox/i.test(navigator.userAgent)),kt&&(e.audioCodec=void 0));var a=o.AUDIO,s=o.CODECS,l=o["FRAME-RATE"];o["PATHWAY-ID"];var u=o.RESOLUTION,c=o.SUBTITLES,f=e.bitrate+"-"+u+"-"+l+"-"+s;(n=i[f])?n.addFallback(e):(n=new ct(e),i[f]=n,r.push(n)),Ct(n,"audio",a),Ct(n,"text",c)})),this.filterAndSortMediaOptions(r,t)},n.filterAndSortMediaOptions=function(e,t){var n=this,r=[],i=[],o=!1,a=!1,s=!1,l=e.filter((function(e){var t=e.audioCodec,n=e.videoCodec,r=e.width,i=e.height,l=e.unknownCodecs;return o||(o=!(!r||!i)),a||(a=!!n),s||(s=!!t),!(null!=l&&l.length)&&(!t||Le(t,"audio"))&&(!n||Le(n,"video"))}));if((o||a)&&s&&(l=l.filter((function(e){var t=e.videoCodec,n=e.width,r=e.height;return!!t||!(!n||!r)}))),0!==l.length){t.audioTracks&&Mt(r=t.audioTracks.filter((function(e){return!e.audioCodec||Le(e.audioCodec,"audio")}))),t.subtitles&&Mt(i=t.subtitles);var u=l.slice(0);l.sort((function(e,t){return e.attrs["HDCP-LEVEL"]!==t.attrs["HDCP-LEVEL"]?(e.attrs["HDCP-LEVEL"]||"")>(t.attrs["HDCP-LEVEL"]||"")?1:-1:e.bitrate!==t.bitrate?e.bitrate-t.bitrate:e.attrs["FRAME-RATE"]!==t.attrs["FRAME-RATE"]?e.attrs.decimalFloatingPoint("FRAME-RATE")-t.attrs.decimalFloatingPoint("FRAME-RATE"):e.attrs.SCORE!==t.attrs.SCORE?e.attrs.decimalFloatingPoint("SCORE")-t.attrs.decimalFloatingPoint("SCORE"):o&&e.height!==t.height?e.height-t.height:0}));var c=u[0];if(this.steering&&(l=this.steering.filterParsedLevels(l)).length!==u.length)for(var f=0;f<u.length;f++)if(u[f].pathwayId===l[0].pathwayId){c=u[f];break}this._levels=l;for(var d=0;d<l.length;d++)if(l[d]===c){this._firstLevel=d,this.log("manifest loaded, "+l.length+" level(s) found, first bitrate: "+c.bitrate);break}var h=s&&!a,p={levels:l,audioTracks:r,subtitleTracks:i,sessionData:t.sessionData,sessionKeys:t.sessionKeys,firstLevel:this._firstLevel,stats:t.stats,audio:s,video:a,altAudio:!h&&r.some((function(e){return!!e.url}))};this.hls.trigger(S.MANIFEST_PARSED,p),(this.hls.config.autoStartLoad||this.hls.forceStartLoad)&&this.hls.startLoad(this.hls.config.startPosition)}else Promise.resolve().then((function(){if(n.hls){var e=new Error("no level with compatible codecs found in manifest");n.hls.trigger(S.ERROR,{type:E.MEDIA_ERROR,details:w.MANIFEST_INCOMPATIBLE_CODECS_ERROR,fatal:!0,url:t.url,error:e,reason:e.message})}}))},n.onError=function(e,t){!t.fatal&&t.context&&t.context.type===je&&t.context.level===this.level&&this.checkRetry(t)},n.onFragLoaded=function(e,t){var n=t.frag;if(void 0!==n&&n.type===Ke){var r=this._levels[n.level];void 0!==r&&(r.loadError=0)}},n.onLevelLoaded=function(e,t){var n,r,i=t.level,o=t.details,a=this._levels[i];if(!a)return this.warn("Invalid level index "+i),void(null!=(r=t.deliveryDirectives)&&r.skip&&(o.deltaUpdateFailed=!0));i===this.currentLevelIndex?(0===a.fragmentError&&(a.loadError=0),this.playlistLoaded(i,t,a.details)):null!=(n=t.deliveryDirectives)&&n.skip&&(o.deltaUpdateFailed=!0)},n.onAudioTrackSwitched=function(e,t){var n=this.currentLevel;if(n){var r=this.hls.audioTracks[t.id].groupId;if(n.audioGroupIds&&n.audioGroupId!==r){for(var i=-1,o=0;o<n.audioGroupIds.length;o++)if(n.audioGroupIds[o]===r){i=o;break}-1!==i&&i!==n.urlId&&(n.urlId=i,this.canLoad&&this.startLoad())}}},n.loadPlaylist=function(t){e.prototype.loadPlaylist.call(this);var n=this.currentLevelIndex,r=this.currentLevel;if(r&&this.shouldLoadPlaylist(r)){var i=r.urlId,o=r.uri;if(t)try{o=t.addDirectives(o)}catch(e){this.warn("Could not construct new URL with HLS Delivery Directives: "+e)}var a=r.attrs["PATHWAY-ID"];this.log("Loading level index "+n+(void 0!==(null==t?void 0:t.msn)?" at sn "+t.msn+" part "+t.part:"")+" with"+(a?" Pathway "+a:"")+" URI "+(i+1)+"/"+r.url.length+" "+o),this.clearTimer(),this.hls.trigger(S.LEVEL_LOADING,{url:o,level:n,id:i,deliveryDirectives:t||null})}},n.removeLevel=function(e,t){var n=this,r=function(e,n){return n!==t},i=this._levels.filter((function(i,o){return o!==e||(i.url.length>1&&void 0!==t?(i.url=i.url.filter(r),i.audioGroupIds&&(i.audioGroupIds=i.audioGroupIds.filter(r)),i.textGroupIds&&(i.textGroupIds=i.textGroupIds.filter(r)),i.urlId=0,!0):(n.steering&&n.steering.removeLevel(i),!1))}));this.hls.trigger(S.LEVELS_UPDATED,{levels:i})},n.onLevelsUpdated=function(e,t){var n=t.levels;n.forEach((function(e,t){var n=e.details;null!=n&&n.fragments&&n.fragments.forEach((function(e){e.level=t}))})),this._levels=n},o(t,[{key:"levels",get:function(){return 0===this._levels.length?null:this._levels}},{key:"level",get:function(){return this.currentLevelIndex},set:function(e){var t=this._levels;if(0!==t.length){if(e<0||e>=t.length){var n=new Error("invalid level idx"),r=e<0;if(this.hls.trigger(S.ERROR,{type:E.OTHER_ERROR,details:w.LEVEL_SWITCH_ERROR,level:e,fatal:r,error:n,reason:n.message}),r)return;e=Math.min(e,t.length-1)}var i=this.currentLevelIndex,o=this.currentLevel,a=o?o.attrs["PATHWAY-ID"]:void 0,l=t[e],u=l.attrs["PATHWAY-ID"];if(this.currentLevelIndex=e,this.currentLevel=l,i!==e||!l.details||!o||a!==u){this.log("Switching to level "+e+(u?" with Pathway "+u:"")+" from level "+i+(a?" with Pathway "+a:""));var c=s({},l,{level:e,maxBitrate:l.maxBitrate,attrs:l.attrs,uri:l.uri,urlId:l.urlId});delete c._attrs,delete c._urlId,this.hls.trigger(S.LEVEL_SWITCHING,c);var f=l.details;if(!f||f.live){var d=this.switchParams(l.uri,null==o?void 0:o.details);this.loadPlaylist(d)}}}}},{key:"manualLevel",get:function(){return this.manualLevelIndex},set:function(e){this.manualLevelIndex=e,void 0===this._startLevel&&(this._startLevel=e),-1!==e&&(this.level=e)}},{key:"firstLevel",get:function(){return this._firstLevel},set:function(e){this._firstLevel=e}},{key:"startLevel",get:function(){if(void 0===this._startLevel){var e=this.hls.config.startLevel;return void 0!==e?e:this._firstLevel}return this._startLevel},set:function(e){this._startLevel=e}},{key:"nextLoadLevel",get:function(){return-1!==this.manualLevelIndex?this.manualLevelIndex:this.hls.nextAutoLevel},set:function(e){this.level=e,-1===this.manualLevelIndex&&(this.hls.nextAutoLevel=e)}}]),t}(function(){function e(e,t){this.hls=void 0,this.timer=-1,this.requestScheduled=-1,this.canLoad=!1,this.log=void 0,this.warn=void 0,this.log=P.log.bind(P,t+":"),this.warn=P.warn.bind(P,t+":"),this.hls=e}var t=e.prototype;return t.destroy=function(){this.clearTimer(),this.hls=this.log=this.warn=null},t.clearTimer=function(){clearTimeout(this.timer),this.timer=-1},t.startLoad=function(){this.canLoad=!0,this.requestScheduled=-1,this.loadPlaylist()},t.stopLoad=function(){this.canLoad=!1,this.clearTimer()},t.switchParams=function(e,t){var n=null==t?void 0:t.renditionReports;if(n){for(var r=-1,i=0;i<n.length;i++){var o=n[i],a=void 0;try{a=new self.URL(o.URI,t.url).href}catch(e){P.warn("Could not construct new URL for Rendition Report: "+e),a=o.URI||""}if(a===e){r=i;break}a===e.substring(0,a.length)&&(r=i)}if(-1!==r){var s=n[r],l=parseInt(s["LAST-MSN"])||(null==t?void 0:t.lastPartSn),u=parseInt(s["LAST-PART"])||(null==t?void 0:t.lastPartIndex);if(this.hls.config.lowLatencyMode){var c=Math.min(t.age-t.partTarget,t.targetduration);u>=0&&c>t.partTarget&&(u+=1)}return new ut(l,u>=0?u:void 0,"")}}},t.loadPlaylist=function(e){-1===this.requestScheduled&&(this.requestScheduled=self.performance.now())},t.shouldLoadPlaylist=function(e){return this.canLoad&&!!e&&!!e.url&&(!e.details||e.details.live)},t.shouldReloadPlaylist=function(e){return-1===this.timer&&-1===this.requestScheduled&&this.shouldLoadPlaylist(e)},t.playlistLoaded=function(e,t,n){var r=this,i=t.details,o=t.stats,a=self.performance.now(),s=o.loading.first?Math.max(0,a-o.loading.first):0;if(i.advancedDateTime=Date.now()-s,i.live||null!=n&&n.live){if(i.reloaded(n),n&&this.log("live playlist "+e+" "+(i.advanced?"REFRESHED "+i.lastPartSn+"-"+i.lastPartIndex:i.updated?"UPDATED":"MISSED")),n&&i.fragments.length>0&&ht(n,i),!this.canLoad||!i.live)return;var l,u=void 0,c=void 0;if(i.canBlockReload&&i.endSN&&i.advanced){var f=this.hls.config.lowLatencyMode,d=i.lastPartSn,h=i.endSN,p=i.lastPartIndex,m=d===h;-1!==p?(u=m?h+1:d,c=m?f?0:p:p+1):u=h+1;var g=i.age,v=g+i.ageHeader,y=Math.min(v-i.partTarget,1.5*i.targetduration);if(y>0){if(n&&y>n.tuneInGoal)this.warn("CDN Tune-in goal increased from: "+n.tuneInGoal+" to: "+y+" with playlist age: "+i.age),y=0;else{var b=Math.floor(y/i.targetduration);u+=b,void 0!==c&&(c+=Math.round(y%i.targetduration/i.partTarget)),this.log("CDN Tune-in age: "+i.ageHeader+"s last advanced "+g.toFixed(2)+"s goal: "+y+" skip sn "+b+" to part "+c)}i.tuneInGoal=y}if(l=this.getDeliveryDirectives(i,t.deliveryDirectives,u,c),f||!m)return void this.loadPlaylist(l)}else(i.canBlockReload||i.canSkipUntil)&&(l=this.getDeliveryDirectives(i,t.deliveryDirectives,u,c));var T=this.hls.mainForwardBufferInfo,S=T?T.end-T.len:0,E=function(e,t){void 0===t&&(t=1/0);var n=1e3*e.targetduration;if(e.updated){var r=e.fragments;if(r.length&&4*n>t){var i=1e3*r[r.length-1].duration;i<n&&(n=i)}}else n/=2;return Math.round(n)}(i,1e3*(i.edge-S));i.updated&&a>this.requestScheduled+E&&(this.requestScheduled=o.loading.start),void 0!==u&&i.canBlockReload?this.requestScheduled=o.loading.first+E-(1e3*i.partTarget||1e3):-1===this.requestScheduled||this.requestScheduled+E<a?this.requestScheduled=a:this.requestScheduled-a<=0&&(this.requestScheduled+=E);var w=this.requestScheduled-a;w=Math.max(0,w),this.log("reload live playlist "+e+" in "+Math.round(w)+" ms"),this.timer=self.setTimeout((function(){return r.loadPlaylist(l)}),w)}else this.clearTimer()},t.getDeliveryDirectives=function(e,t,n,r){var i=function(e,t){var n=e.canSkipUntil,r=e.canSkipDateRanges,i=e.endSN;return n&&(void 0!==t?t-i:0)<n?r?"v2":"YES":""}(e,n);return null!=t&&t.skip&&e.deltaUpdateFailed&&(n=t.msn,r=t.part,i=""),new ut(n,r,i)},t.checkRetry=function(e){var t=this,n=e.details,r=yt(e),i=e.errorAction,o=i||{},a=o.action,s=o.retryCount,l=void 0===s?0:s,u=o.retryConfig,c=!!i&&!!u&&(5===a||!i.resolved&&2===a);if(c){var f;if(this.requestScheduled=-1,l>=u.maxNumRetry)return!1;if(r&&null!=(f=e.context)&&f.deliveryDirectives)this.warn("Retrying playlist loading "+(l+1)+"/"+u.maxNumRetry+' after "'+n+'" without delivery-directives'),this.loadPlaylist();else{var d=Tt(u,l);this.timer=self.setTimeout((function(){return t.loadPlaylist()}),d),this.warn("Retrying playlist loading "+(l+1)+"/"+u.maxNumRetry+' after "'+n+'" in '+d+"ms")}e.levelRetry=!0,i.resolved=!0}return c},e}());function Ct(e,t,n){n&&("audio"===t?(e.audioGroupIds||(e.audioGroupIds=[]),e.audioGroupIds[e.url.length-1]=n):"text"===t&&(e.textGroupIds||(e.textGroupIds=[]),e.textGroupIds[e.url.length-1]=n))}function Mt(e){var t={};e.forEach((function(e){var n=e.groupId||"";e.id=t[n]=t[n]||0,t[n]++}))}var Rt="NOT_LOADED",Ot="APPENDING",It="PARTIAL",Dt="OK",Nt=function(){function e(e){this.activePartLists=Object.create(null),this.endListFragments=Object.create(null),this.fragments=Object.create(null),this.timeRanges=Object.create(null),this.bufferPadding=.2,this.hls=void 0,this.hasGaps=!1,this.hls=e,this._registerListeners()}var t=e.prototype;return t._registerListeners=function(){var e=this.hls;e.on(S.BUFFER_APPENDED,this.onBufferAppended,this),e.on(S.FRAG_BUFFERED,this.onFragBuffered,this),e.on(S.FRAG_LOADED,this.onFragLoaded,this)},t._unregisterListeners=function(){var e=this.hls;e.off(S.BUFFER_APPENDED,this.onBufferAppended,this),e.off(S.FRAG_BUFFERED,this.onFragBuffered,this),e.off(S.FRAG_LOADED,this.onFragLoaded,this)},t.destroy=function(){this._unregisterListeners(),this.fragments=this.activePartLists=this.endListFragments=this.timeRanges=null},t.getAppendedFrag=function(e,t){var n=this.activePartLists[t];if(n)for(var r=n.length;r--;){var i=n[r];if(!i)break;var o=i.end;if(i.start<=e&&null!==o&&e<=o)return i}return this.getBufferedFrag(e,t)},t.getBufferedFrag=function(e,t){for(var n=this.fragments,r=Object.keys(n),i=r.length;i--;){var o=n[r[i]];if((null==o?void 0:o.body.type)===t&&o.buffered){var a=o.body;if(a.start<=e&&e<=a.end)return a}}return null},t.detectEvictedFragments=function(e,t,n,r){var i=this;this.timeRanges&&(this.timeRanges[e]=t);var o=(null==r?void 0:r.fragment.sn)||-1;Object.keys(this.fragments).forEach((function(r){var a=i.fragments[r];if(a&&!(o>=a.body.sn))if(a.buffered||a.loaded){var s=a.range[e];s&&s.time.some((function(e){var n=!i.isTimeBuffered(e.startPTS,e.endPTS,t);return n&&i.removeFragment(a.body),n}))}else a.body.type===n&&i.removeFragment(a.body)}))},t.detectPartialFragments=function(e){var t=this,n=this.timeRanges,r=e.frag,i=e.part;if(n&&"initSegment"!==r.sn){var o=Bt(r),a=this.fragments[o];if(!(!a||a.buffered&&r.gap)){var s=!r.relurl;Object.keys(n).forEach((function(e){var o=r.elementaryStreams[e];if(o){var l=n[e],u=s||!0===o.partial;a.range[e]=t.getBufferedTimes(r,i,u,l)}})),a.loaded=null,Object.keys(a.range).length?(a.buffered=!0,(a.body.endList=r.endList||a.body.endList)&&(this.endListFragments[a.body.type]=a),Ft(a)||this.removeParts(r.sn-1,r.type)):this.removeFragment(a.body)}}},t.removeParts=function(e,t){var n=this.activePartLists[t];n&&(this.activePartLists[t]=n.filter((function(t){return t.fragment.sn>=e})))},t.fragBuffered=function(e,t){var n=Bt(e),r=this.fragments[n];!r&&t&&(r=this.fragments[n]={body:e,appendedPTS:null,loaded:null,buffered:!1,range:Object.create(null)},e.gap&&(this.hasGaps=!0)),r&&(r.loaded=null,r.buffered=!0)},t.getBufferedTimes=function(e,t,n,r){for(var i={time:[],partial:n},o=e.start,a=e.end,s=e.minEndPTS||a,l=e.maxStartPTS||o,u=0;u<r.length;u++){var c=r.start(u)-this.bufferPadding,f=r.end(u)+this.bufferPadding;if(l>=c&&s<=f){i.time.push({startPTS:Math.max(o,r.start(u)),endPTS:Math.min(a,r.end(u))});break}if(o<f&&a>c)i.partial=!0,i.time.push({startPTS:Math.max(o,r.start(u)),endPTS:Math.min(a,r.end(u))});else if(a<=c)break}return i},t.getPartialFragment=function(e){var t,n,r,i=null,o=0,a=this.bufferPadding,s=this.fragments;return Object.keys(s).forEach((function(l){var u=s[l];u&&Ft(u)&&(n=u.body.start-a,r=u.body.end+a,e>=n&&e<=r&&(t=Math.min(e-n,r-e),o<=t&&(i=u.body,o=t)))})),i},t.isEndListAppended=function(e){var t=this.endListFragments[e];return void 0!==t&&(t.buffered||Ft(t))},t.getState=function(e){var t=Bt(e),n=this.fragments[t];return n?n.buffered?Ft(n)?It:Dt:Ot:Rt},t.isTimeBuffered=function(e,t,n){for(var r,i,o=0;o<n.length;o++){if(r=n.start(o)-this.bufferPadding,i=n.end(o)+this.bufferPadding,e>=r&&t<=i)return!0;if(t<=r)return!1}return!1},t.onFragLoaded=function(e,t){var n=t.frag,r=t.part;if("initSegment"!==n.sn&&!n.bitrateTest){var i=r?null:t,o=Bt(n);this.fragments[o]={body:n,appendedPTS:null,loaded:i,buffered:!1,range:Object.create(null)}}},t.onBufferAppended=function(e,t){var n=this,r=t.frag,i=t.part,o=t.timeRanges;if("initSegment"!==r.sn){var a=r.type;if(i){var s=this.activePartLists[a];s||(this.activePartLists[a]=s=[]),s.push(i)}this.timeRanges=o,Object.keys(o).forEach((function(e){var t=o[e];n.detectEvictedFragments(e,t,a,i)}))}},t.onFragBuffered=function(e,t){this.detectPartialFragments(t)},t.hasFragment=function(e){var t=Bt(e);return!!this.fragments[t]},t.hasParts=function(e){var t;return!(null==(t=this.activePartLists[e])||!t.length)},t.removeFragmentsInRange=function(e,t,n,r,i){var o=this;r&&!this.hasGaps||Object.keys(this.fragments).forEach((function(a){var s=o.fragments[a];if(s){var l=s.body;l.type!==n||r&&!l.gap||l.start<t&&l.end>e&&(s.buffered||i)&&o.removeFragment(l)}}))},t.removeFragment=function(e){var t=Bt(e);e.stats.loaded=0,e.clearElementaryStreamInfo();var n=this.activePartLists[e.type];if(n){var r=e.sn;this.activePartLists[e.type]=n.filter((function(e){return e.fragment.sn!==r}))}delete this.fragments[t],e.endList&&delete this.endListFragments[e.type]},t.removeAllFragments=function(){this.fragments=Object.create(null),this.endListFragments=Object.create(null),this.activePartLists=Object.create(null),this.hasGaps=!1},e}();function Ft(e){var t,n,r;return e.buffered&&(e.body.gap||(null==(t=e.range.video)?void 0:t.partial)||(null==(n=e.range.audio)?void 0:n.partial)||(null==(r=e.range.audiovideo)?void 0:r.partial))}function Bt(e){return e.type+"_"+e.level+"_"+e.urlId+"_"+e.sn}var Gt=Math.pow(2,17),Ut=function(){function e(e){this.config=void 0,this.loader=null,this.partLoadTimeout=-1,this.config=e}var t=e.prototype;return t.destroy=function(){this.loader&&(this.loader.destroy(),this.loader=null)},t.abort=function(){this.loader&&this.loader.abort()},t.load=function(e,t){var n=this,i=e.url;if(!i)return Promise.reject(new jt({type:E.NETWORK_ERROR,details:w.FRAG_LOAD_ERROR,fatal:!1,frag:e,error:new Error("Fragment does not have a "+(i?"part list":"url")),networkDetails:null}));this.abort();var o=this.config,a=o.fLoader,s=o.loader;return new Promise((function(l,u){if(n.loader&&n.loader.destroy(),e.gap){if(e.tagList.some((function(e){return"GAP"===e[0]})))return void u(Vt(e));e.gap=!1}var c=n.loader=e.loader=a?new a(o):new s(o),f=Ht(e),d=St(o.fragLoadPolicy.default),h={loadPolicy:d,timeout:d.maxLoadTimeMs,maxRetry:0,retryDelay:0,maxRetryDelay:0,highWaterMark:"initSegment"===e.sn?1/0:Gt};e.stats=c.stats,c.load(f,h,{onSuccess:function(t,r,i,o){n.resetLoader(e,c);var a=t.data;i.resetIV&&e.decryptdata&&(e.decryptdata.iv=new Uint8Array(a.slice(0,16)),a=a.slice(16)),l({frag:e,part:null,payload:a,networkDetails:o})},onError:function(t,o,a,s){n.resetLoader(e,c),u(new jt({type:E.NETWORK_ERROR,details:w.FRAG_LOAD_ERROR,fatal:!1,frag:e,response:r({url:i,data:void 0},t),error:new Error("HTTP Error "+t.code+" "+t.text),networkDetails:a,stats:s}))},onAbort:function(t,r,i){n.resetLoader(e,c),u(new jt({type:E.NETWORK_ERROR,details:w.INTERNAL_ABORTED,fatal:!1,frag:e,error:new Error("Aborted"),networkDetails:i,stats:t}))},onTimeout:function(t,r,i){n.resetLoader(e,c),u(new jt({type:E.NETWORK_ERROR,details:w.FRAG_LOAD_TIMEOUT,fatal:!1,frag:e,error:new Error("Timeout after "+h.timeout+"ms"),networkDetails:i,stats:t}))},onProgress:function(n,r,i,o){t&&t({frag:e,part:null,payload:i,networkDetails:o})}})}))},t.loadPart=function(e,t,n){var i=this;this.abort();var o=this.config,a=o.fLoader,s=o.loader;return new Promise((function(l,u){if(i.loader&&i.loader.destroy(),e.gap||t.gap)u(Vt(e,t));else{var c=i.loader=e.loader=a?new a(o):new s(o),f=Ht(e,t),d=St(o.fragLoadPolicy.default),h={loadPolicy:d,timeout:d.maxLoadTimeMs,maxRetry:0,retryDelay:0,maxRetryDelay:0,highWaterMark:Gt};t.stats=c.stats,c.load(f,h,{onSuccess:function(r,o,a,s){i.resetLoader(e,c),i.updateStatsFromPart(e,t);var u={frag:e,part:t,payload:r.data,networkDetails:s};n(u),l(u)},onError:function(n,o,a,s){i.resetLoader(e,c),u(new jt({type:E.NETWORK_ERROR,details:w.FRAG_LOAD_ERROR,fatal:!1,frag:e,part:t,response:r({url:f.url,data:void 0},n),error:new Error("HTTP Error "+n.code+" "+n.text),networkDetails:a,stats:s}))},onAbort:function(n,r,o){e.stats.aborted=t.stats.aborted,i.resetLoader(e,c),u(new jt({type:E.NETWORK_ERROR,details:w.INTERNAL_ABORTED,fatal:!1,frag:e,part:t,error:new Error("Aborted"),networkDetails:o,stats:n}))},onTimeout:function(n,r,o){i.resetLoader(e,c),u(new jt({type:E.NETWORK_ERROR,details:w.FRAG_LOAD_TIMEOUT,fatal:!1,frag:e,part:t,error:new Error("Timeout after "+h.timeout+"ms"),networkDetails:o,stats:n}))}})}}))},t.updateStatsFromPart=function(e,t){var n=e.stats,r=t.stats,i=r.total;if(n.loaded+=r.loaded,i){var o=Math.round(e.duration/t.duration),a=Math.min(Math.round(n.loaded/i),o),s=(o-a)*Math.round(n.loaded/a);n.total=n.loaded+s}else n.total=Math.max(n.loaded,n.total);var l=n.loading,u=r.loading;l.start?l.first+=u.first-u.start:(l.start=u.start,l.first=u.first),l.end=u.end},t.resetLoader=function(e,t){e.loader=null,this.loader===t&&(self.clearTimeout(this.partLoadTimeout),this.loader=null),t.destroy()},e}();function Ht(e,t){void 0===t&&(t=null);var n=t||e,r={frag:e,part:t,responseType:"arraybuffer",url:n.url,headers:{},rangeStart:0,rangeEnd:0},i=n.byteRangeStartOffset,o=n.byteRangeEndOffset;if(y(i)&&y(o)){var a,s=i,l=o;if("initSegment"===e.sn&&"AES-128"===(null==(a=e.decryptdata)?void 0:a.method)){var u=o-i;u%16&&(l=o+(16-u%16)),0!==i&&(r.resetIV=!0,s=i-16)}r.rangeStart=s,r.rangeEnd=l}return r}function Vt(e,t){var n=new Error("GAP "+(e.gap?"tag":"attribute")+" found"),r={type:E.MEDIA_ERROR,details:w.FRAG_GAP,fatal:!1,frag:e,error:n,networkDetails:null};return t&&(r.part=t),(t||e).stats.aborted=!0,new jt(r)}var jt=function(e){function t(t){var n;return(n=e.call(this,t.error.message)||this).data=void 0,n.data=t,n}return l(t,e),t}(h(Error)),Wt=function(){function e(e){this.config=void 0,this.keyUriToKeyInfo={},this.emeController=null,this.config=e}var t=e.prototype;return t.abort=function(e){for(var t in this.keyUriToKeyInfo){var n=this.keyUriToKeyInfo[t].loader;if(n){if(e&&e!==n.context.frag.type)return;n.abort()}}},t.detach=function(){for(var e in this.keyUriToKeyInfo){var t=this.keyUriToKeyInfo[e];(t.mediaKeySessionContext||t.decryptdata.isCommonEncryption)&&delete this.keyUriToKeyInfo[e]}},t.destroy=function(){for(var e in this.detach(),this.keyUriToKeyInfo){var t=this.keyUriToKeyInfo[e].loader;t&&t.destroy()}this.keyUriToKeyInfo={}},t.createKeyLoadError=function(e,t,n,r,i){return void 0===t&&(t=w.KEY_LOAD_ERROR),new jt({type:E.NETWORK_ERROR,details:t,fatal:!1,frag:e,response:i,error:n,networkDetails:r})},t.loadClear=function(e,t){var n=this;if(this.emeController&&this.config.emeEnabled)for(var r=e.sn,i=e.cc,o=function(){var e=t[a];if(i<=e.cc&&("initSegment"===r||"initSegment"===e.sn||r<e.sn))return n.emeController.selectKeySystemFormat(e).then((function(t){e.setKeyFormat(t)})),"break"},a=0;a<t.length&&"break"!==o();a++);},t.load=function(e){var t=this;return!e.decryptdata&&e.encrypted&&this.emeController?this.emeController.selectKeySystemFormat(e).then((function(n){return t.loadInternal(e,n)})):this.loadInternal(e)},t.loadInternal=function(e,t){var n,r;t&&e.setKeyFormat(t);var i=e.decryptdata;if(!i){var o=new Error(t?"Expected frag.decryptdata to be defined after setting format "+t:"Missing decryption data on fragment in onKeyLoading");return Promise.reject(this.createKeyLoadError(e,w.KEY_LOAD_ERROR,o))}var a=i.uri;if(!a)return Promise.reject(this.createKeyLoadError(e,w.KEY_LOAD_ERROR,new Error('Invalid key URI: "'+a+'"')));var s,l=this.keyUriToKeyInfo[a];if(null!=(n=l)&&n.decryptdata.key)return i.key=l.decryptdata.key,Promise.resolve({frag:e,keyInfo:l});if(null!=(r=l)&&r.keyLoadPromise)switch(null==(s=l.mediaKeySessionContext)?void 0:s.keyStatus){case void 0:case"status-pending":case"usable":case"usable-in-future":return l.keyLoadPromise.then((function(t){return i.key=t.keyInfo.decryptdata.key,{frag:e,keyInfo:l}}))}switch(l=this.keyUriToKeyInfo[a]={decryptdata:i,keyLoadPromise:null,loader:null,mediaKeySessionContext:null},i.method){case"ISO-23001-7":case"SAMPLE-AES":case"SAMPLE-AES-CENC":case"SAMPLE-AES-CTR":return"identity"===i.keyFormat?this.loadKeyHTTP(l,e):this.loadKeyEME(l,e);case"AES-128":return this.loadKeyHTTP(l,e);default:return Promise.reject(this.createKeyLoadError(e,w.KEY_LOAD_ERROR,new Error('Key supplied with unsupported METHOD: "'+i.method+'"')))}},t.loadKeyEME=function(e,t){var n={frag:t,keyInfo:e};if(this.emeController&&this.config.emeEnabled){var r=this.emeController.loadKey(n);if(r)return(e.keyLoadPromise=r.then((function(t){return e.mediaKeySessionContext=t,n}))).catch((function(t){throw e.keyLoadPromise=null,t}))}return Promise.resolve(n)},t.loadKeyHTTP=function(e,t){var n=this,i=this.config,o=new(0,i.loader)(i);return t.keyLoader=e.loader=o,e.keyLoadPromise=new Promise((function(a,s){var l={keyInfo:e,frag:t,responseType:"arraybuffer",url:e.decryptdata.uri},u=i.keyLoadPolicy.default,c={loadPolicy:u,timeout:u.maxLoadTimeMs,maxRetry:0,retryDelay:0,maxRetryDelay:0},f={onSuccess:function(e,t,r,i){var o=r.frag,l=r.keyInfo,u=r.url;if(!o.decryptdata||l!==n.keyUriToKeyInfo[u])return s(n.createKeyLoadError(o,w.KEY_LOAD_ERROR,new Error("after key load, decryptdata unset or changed"),i));l.decryptdata.key=o.decryptdata.key=new Uint8Array(e.data),o.keyLoader=null,l.loader=null,a({frag:o,keyInfo:l})},onError:function(e,i,o,a){n.resetLoader(i),s(n.createKeyLoadError(t,w.KEY_LOAD_ERROR,new Error("HTTP Error "+e.code+" loading key "+e.text),o,r({url:l.url,data:void 0},e)))},onTimeout:function(e,r,i){n.resetLoader(r),s(n.createKeyLoadError(t,w.KEY_LOAD_TIMEOUT,new Error("key loading timed out"),i))},onAbort:function(e,r,i){n.resetLoader(r),s(n.createKeyLoadError(t,w.INTERNAL_ABORTED,new Error("key loading aborted"),i))}};o.load(l,c,f)}))},t.resetLoader=function(e){var t=e.frag,n=e.keyInfo,r=e.url,i=n.loader;t.keyLoader===i&&(t.keyLoader=null,n.loader=null),delete this.keyUriToKeyInfo[r],i&&i.destroy()},e}(),$t=function(){function e(){this._boundTick=void 0,this._tickTimer=null,this._tickInterval=null,this._tickCallCount=0,this._boundTick=this.tick.bind(this)}var t=e.prototype;return t.destroy=function(){this.onHandlerDestroying(),this.onHandlerDestroyed()},t.onHandlerDestroying=function(){this.clearNextTick(),this.clearInterval()},t.onHandlerDestroyed=function(){},t.hasInterval=function(){return!!this._tickInterval},t.hasNextTick=function(){return!!this._tickTimer},t.setInterval=function(e){return!this._tickInterval&&(this._tickCallCount=0,this._tickInterval=self.setInterval(this._boundTick,e),!0)},t.clearInterval=function(){return!!this._tickInterval&&(self.clearInterval(this._tickInterval),this._tickInterval=null,!0)},t.clearNextTick=function(){return!!this._tickTimer&&(self.clearTimeout(this._tickTimer),this._tickTimer=null,!0)},t.tick=function(){this._tickCallCount++,1===this._tickCallCount&&(this.doTick(),this._tickCallCount>1&&this.tickImmediate(),this._tickCallCount=0)},t.tickImmediate=function(){this.clearNextTick(),this._tickTimer=self.setTimeout(this._boundTick,0)},t.doTick=function(){},e}(),Kt={length:0,start:function(){return 0},end:function(){return 0}},Zt=function(){function e(){}return e.isBuffered=function(t,n){try{if(t)for(var r=e.getBuffered(t),i=0;i<r.length;i++)if(n>=r.start(i)&&n<=r.end(i))return!0}catch(e){}return!1},e.bufferInfo=function(t,n,r){try{if(t){var i,o=e.getBuffered(t),a=[];for(i=0;i<o.length;i++)a.push({start:o.start(i),end:o.end(i)});return this.bufferedInfo(a,n,r)}}catch(e){}return{len:0,start:n,end:n,nextStart:void 0}},e.bufferedInfo=function(e,t,n){t=Math.max(0,t),e.sort((function(e,t){return e.start-t.start||t.end-e.end}));var r=[];if(n)for(var i=0;i<e.length;i++){var o=r.length;if(o){var a=r[o-1].end;e[i].start-a<n?e[i].end>a&&(r[o-1].end=e[i].end):r.push(e[i])}else r.push(e[i])}else r=e;for(var s,l=0,u=t,c=t,f=0;f<r.length;f++){var d=r[f].start,h=r[f].end;if(t+n>=d&&t<h)u=d,l=(c=h)-t;else if(t+n<d){s=d;break}}return{len:l,start:u||0,end:c||0,nextStart:s}},e.getBuffered=function(e){try{return e.buffered}catch(e){return P.log("failed to get media.buffered",e),Kt}},e}(),Xt=function(e,t,n,r,i,o){void 0===r&&(r=0),void 0===i&&(i=-1),void 0===o&&(o=!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=e,this.sn=t,this.id=n,this.size=r,this.part=i,this.partial=o};function zt(e,t){if(e){var n=e.start+t;e.start=e.startPTS=n,e.endPTS=n+e.duration}}function qt(e,t){for(var n=t.fragments,r=0,i=n.length;r<i;r++)zt(n[r],e);t.fragmentHint&&zt(t.fragmentHint,e),t.alignedSliding=!0}var Yt=function(){function e(e,t){this.subtle=void 0,this.aesIV=void 0,this.subtle=e,this.aesIV=t}return e.prototype.decrypt=function(e,t){return this.subtle.decrypt({name:"AES-CBC",iv:this.aesIV},t,e)},e}(),Qt=function(){function e(e,t){this.subtle=void 0,this.key=void 0,this.subtle=e,this.key=t}return e.prototype.expandKey=function(){return this.subtle.importKey("raw",this.key,{name:"AES-CBC"},!1,["encrypt","decrypt"])},e}(),Jt=function(){function e(){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 t=e.prototype;return t.uint8ArrayToUint32Array_=function(e){for(var t=new DataView(e),n=new Uint32Array(4),r=0;r<4;r++)n[r]=t.getUint32(4*r);return n},t.initTable=function(){var e=this.sBox,t=this.invSBox,n=this.subMix,r=n[0],i=n[1],o=n[2],a=n[3],s=this.invSubMix,l=s[0],u=s[1],c=s[2],f=s[3],d=new Uint32Array(256),h=0,p=0,m=0;for(m=0;m<256;m++)d[m]=m<128?m<<1:m<<1^283;for(m=0;m<256;m++){var g=p^p<<1^p<<2^p<<3^p<<4;g=g>>>8^255&g^99,e[h]=g,t[g]=h;var v=d[h],y=d[v],b=d[y],T=257*d[g]^16843008*g;r[h]=T<<24|T>>>8,i[h]=T<<16|T>>>16,o[h]=T<<8|T>>>24,a[h]=T,T=16843009*b^65537*y^257*v^16843008*h,l[g]=T<<24|T>>>8,u[g]=T<<16|T>>>16,c[g]=T<<8|T>>>24,f[g]=T,h?(h=v^d[d[d[b^v]]],p^=d[d[p]]):h=p=1}},t.expandKey=function(e){for(var t=this.uint8ArrayToUint32Array_(e),n=!0,r=0;r<t.length&&n;)n=t[r]===this.key[r],r++;if(!n){this.key=t;var i=this.keySize=t.length;if(4!==i&&6!==i&&8!==i)throw new Error("Invalid aes key size="+i);var o,a,s,l,u=this.ksRows=4*(i+6+1),c=this.keySchedule=new Uint32Array(u),f=this.invKeySchedule=new Uint32Array(u),d=this.sBox,h=this.rcon,p=this.invSubMix,m=p[0],g=p[1],v=p[2],y=p[3];for(o=0;o<u;o++)o<i?s=c[o]=t[o]:(l=s,o%i==0?(l=d[(l=l<<8|l>>>24)>>>24]<<24|d[l>>>16&255]<<16|d[l>>>8&255]<<8|d[255&l],l^=h[o/i|0]<<24):i>6&&o%i==4&&(l=d[l>>>24]<<24|d[l>>>16&255]<<16|d[l>>>8&255]<<8|d[255&l]),c[o]=s=(c[o-i]^l)>>>0);for(a=0;a<u;a++)o=u-a,l=3&a?c[o]:c[o-4],f[a]=a<4||o<=4?l:m[d[l>>>24]]^g[d[l>>>16&255]]^v[d[l>>>8&255]]^y[d[255&l]],f[a]=f[a]>>>0}},t.networkToHostOrderSwap=function(e){return e<<24|(65280&e)<<8|(16711680&e)>>8|e>>>24},t.decrypt=function(e,t,n){for(var r,i,o,a,s,l,u,c,f,d,h,p,m,g,v=this.keySize+6,y=this.invKeySchedule,b=this.invSBox,T=this.invSubMix,S=T[0],E=T[1],w=T[2],_=T[3],A=this.uint8ArrayToUint32Array_(n),x=A[0],k=A[1],L=A[2],P=A[3],C=new Int32Array(e),M=new Int32Array(C.length),R=this.networkToHostOrderSwap;t<C.length;){for(f=R(C[t]),d=R(C[t+1]),h=R(C[t+2]),p=R(C[t+3]),s=f^y[0],l=p^y[1],u=h^y[2],c=d^y[3],m=4,g=1;g<v;g++)r=S[s>>>24]^E[l>>16&255]^w[u>>8&255]^_[255&c]^y[m],i=S[l>>>24]^E[u>>16&255]^w[c>>8&255]^_[255&s]^y[m+1],o=S[u>>>24]^E[c>>16&255]^w[s>>8&255]^_[255&l]^y[m+2],a=S[c>>>24]^E[s>>16&255]^w[l>>8&255]^_[255&u]^y[m+3],s=r,l=i,u=o,c=a,m+=4;r=b[s>>>24]<<24^b[l>>16&255]<<16^b[u>>8&255]<<8^b[255&c]^y[m],i=b[l>>>24]<<24^b[u>>16&255]<<16^b[c>>8&255]<<8^b[255&s]^y[m+1],o=b[u>>>24]<<24^b[c>>16&255]<<16^b[s>>8&255]<<8^b[255&l]^y[m+2],a=b[c>>>24]<<24^b[s>>16&255]<<16^b[l>>8&255]<<8^b[255&u]^y[m+3],M[t]=R(r^x),M[t+1]=R(a^k),M[t+2]=R(o^L),M[t+3]=R(i^P),x=f,k=d,L=h,P=p,t+=4}return M.buffer},e}(),en=function(){function e(e,t){var n=(void 0===t?{}:t).removePKCS7Padding,r=void 0===n||n;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=e.enableSoftwareAES,this.removePKCS7Padding=r,r)try{var i=self.crypto;i&&(this.subtle=i.subtle||i.webkitSubtle)}catch(e){}null===this.subtle&&(this.useSoftware=!0)}var t=e.prototype;return t.destroy=function(){this.subtle=null,this.softwareDecrypter=null,this.key=null,this.fastAesKey=null,this.remainderData=null,this.currentIV=null,this.currentResult=null},t.isSync=function(){return this.useSoftware},t.flush=function(){var e=this.currentResult,t=this.remainderData;if(!e||t)return this.reset(),null;var n=new Uint8Array(e);return this.reset(),this.removePKCS7Padding?function(e){var t=e.byteLength,n=t&&new DataView(e.buffer).getUint8(t-1);return n?W(e,0,t-n):e}(n):n},t.reset=function(){this.currentResult=null,this.currentIV=null,this.remainderData=null,this.softwareDecrypter&&(this.softwareDecrypter=null)},t.decrypt=function(e,t,n){var r=this;return this.useSoftware?new Promise((function(i,o){r.softwareDecrypt(new Uint8Array(e),t,n);var a=r.flush();a?i(a.buffer):o(new Error("[softwareDecrypt] Failed to decrypt data"))})):this.webCryptoDecrypt(new Uint8Array(e),t,n)},t.softwareDecrypt=function(e,t,n){var r=this.currentIV,i=this.currentResult,o=this.remainderData;this.logOnce("JS AES decrypt"),o&&(e=be(o,e),this.remainderData=null);var a=this.getValidChunk(e);if(!a.length)return null;r&&(n=r);var s=this.softwareDecrypter;s||(s=this.softwareDecrypter=new Jt),s.expandKey(t);var l=i;return this.currentResult=s.decrypt(a.buffer,0,n),this.currentIV=W(a,-16).buffer,l||null},t.webCryptoDecrypt=function(e,t,n){var r=this,i=this.subtle;return this.key===t&&this.fastAesKey||(this.key=t,this.fastAesKey=new Qt(i,t)),this.fastAesKey.expandKey().then((function(t){return i?(r.logOnce("WebCrypto AES decrypt"),new Yt(i,new Uint8Array(n)).decrypt(e.buffer,t)):Promise.reject(new Error("web crypto not initialized"))})).catch((function(i){return P.warn("[decrypter]: WebCrypto Error, disable WebCrypto API, "+i.name+": "+i.message),r.onWebCryptoError(e,t,n)}))},t.onWebCryptoError=function(e,t,n){this.useSoftware=!0,this.logEnabled=!0,this.softwareDecrypt(e,t,n);var r=this.flush();if(r)return r.buffer;throw new Error("WebCrypto and softwareDecrypt: failed to decrypt data")},t.getValidChunk=function(e){var t=e,n=e.length-e.length%16;return n!==e.length&&(t=W(e,0,n),this.remainderData=W(e,n)),t},t.logOnce=function(e){this.logEnabled&&(P.log("[decrypter]: "+e),this.logEnabled=!1)},e}(),tn="STOPPED",nn="IDLE",rn="KEY_LOADING",on="FRAG_LOADING",an="FRAG_LOADING_WAITING_RETRY",sn="PARSING",ln="PARSED",un="ENDED",cn="ERROR",fn="WAITING_LEVEL",dn=function(e){function t(t,n,r,i,o){var a;return(a=e.call(this)||this).hls=void 0,a.fragPrevious=null,a.fragCurrent=null,a.fragmentTracker=void 0,a.transmuxer=null,a._state=tn,a.playlistType=void 0,a.media=null,a.mediaBuffer=null,a.config=void 0,a.bitrateTest=!1,a.lastCurrentTime=0,a.nextLoadPosition=0,a.startPosition=0,a.startTimeOffset=null,a.loadedmetadata=!1,a.retryDate=0,a.levels=null,a.fragmentLoader=void 0,a.keyLoader=void 0,a.levelLastLoaded=null,a.startFragRequested=!1,a.decrypter=void 0,a.initPTS=[],a.onvseeking=null,a.onvended=null,a.logPrefix="",a.log=void 0,a.warn=void 0,a.playlistType=o,a.logPrefix=i,a.log=P.log.bind(P,i+":"),a.warn=P.warn.bind(P,i+":"),a.hls=t,a.fragmentLoader=new Ut(t.config),a.keyLoader=r,a.fragmentTracker=n,a.config=t.config,a.decrypter=new en(t.config),t.on(S.MANIFEST_LOADED,a.onManifestLoaded,function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(a)),a}l(t,e);var n=t.prototype;return n.doTick=function(){this.onTickEnd()},n.onTickEnd=function(){},n.startLoad=function(e){},n.stopLoad=function(){this.fragmentLoader.abort(),this.keyLoader.abort(this.playlistType);var e=this.fragCurrent;null!=e&&e.loader&&(e.abortRequests(),this.fragmentTracker.removeFragment(e)),this.resetTransmuxer(),this.fragCurrent=null,this.fragPrevious=null,this.clearInterval(),this.clearNextTick(),this.state=tn},n._streamEnded=function(e,t){if(t.live||e.nextStart||!e.end||!this.media)return!1;var n=t.partList;if(null!=n&&n.length){var r=n[n.length-1];return Zt.isBuffered(this.media,r.start+r.duration/2)}var i=t.fragments[t.fragments.length-1].type;return this.fragmentTracker.isEndListAppended(i)},n.getLevelDetails=function(){var e;if(this.levels&&null!==this.levelLastLoaded)return null==(e=this.levels[this.levelLastLoaded])?void 0:e.details},n.onMediaAttached=function(e,t){var n=this.media=this.mediaBuffer=t.media;this.onvseeking=this.onMediaSeeking.bind(this),this.onvended=this.onMediaEnded.bind(this),n.addEventListener("seeking",this.onvseeking),n.addEventListener("ended",this.onvended);var r=this.config;this.levels&&r.autoStartLoad&&this.state===tn&&this.startLoad(r.startPosition)},n.onMediaDetaching=function(){var e=this.media;null!=e&&e.ended&&(this.log("MSE detaching and video ended, reset startPosition"),this.startPosition=this.lastCurrentTime=0),e&&this.onvseeking&&this.onvended&&(e.removeEventListener("seeking",this.onvseeking),e.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()},n.onMediaSeeking=function(){var e=this.config,t=this.fragCurrent,n=this.media,r=this.mediaBuffer,i=this.state,o=n?n.currentTime:0,a=Zt.bufferInfo(r||n,o,e.maxBufferHole);if(this.log("media seeking to "+(y(o)?o.toFixed(3):o)+", state: "+i),this.state===un)this.resetLoadingState();else if(t){var s=e.maxFragLookUpTolerance,l=t.start-s,u=t.start+t.duration+s;if(!a.len||u<a.start||l>a.end){var c=o>u;(o<l||c)&&(c&&t.loader&&(this.log("seeking outside of buffer while fragment load in progress, cancel fragment load"),t.abortRequests(),this.resetLoadingState()),this.fragPrevious=null)}}n&&(this.fragmentTracker.removeFragmentsInRange(o,1/0,this.playlistType,!0),this.lastCurrentTime=o),this.loadedmetadata||a.len||(this.nextLoadPosition=this.startPosition=o),this.tickImmediate()},n.onMediaEnded=function(){this.startPosition=this.lastCurrentTime=0},n.onManifestLoaded=function(e,t){this.startTimeOffset=t.startTimeOffset,this.initPTS=[]},n.onHandlerDestroying=function(){this.stopLoad(),e.prototype.onHandlerDestroying.call(this)},n.onHandlerDestroyed=function(){this.state=tn,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,e.prototype.onHandlerDestroyed.call(this)},n.loadFragment=function(e,t,n){this._loadFragForPlayback(e,t,n)},n._loadFragForPlayback=function(e,t,n){var r=this;this._doFragLoad(e,t,n,(function(t){if(r.fragContextChanged(e))return r.warn("Fragment "+e.sn+(t.part?" p: "+t.part.index:"")+" of level "+e.level+" was dropped during download."),void r.fragmentTracker.removeFragment(e);e.stats.chunkCount++,r._handleFragmentLoadProgress(t)})).then((function(t){if(t){var n=r.state;r.fragContextChanged(e)?(n===on||!r.fragCurrent&&n===sn)&&(r.fragmentTracker.removeFragment(e),r.state=nn):("payload"in t&&(r.log("Loaded fragment "+e.sn+" of level "+e.level),r.hls.trigger(S.FRAG_LOADED,t)),r._handleFragmentLoadComplete(t))}})).catch((function(t){r.state!==tn&&r.state!==cn&&(r.warn(t),r.resetFragmentLoading(e))}))},n.clearTrackerIfNeeded=function(e){var t,n=this.fragmentTracker;if(n.getState(e)===Ot){var r=e.type,i=this.getFwdBufferInfo(this.mediaBuffer,r),o=Math.max(e.duration,i?i.len:this.config.maxBufferLength);this.reduceMaxBufferLength(o)&&n.removeFragment(e)}else 0===(null==(t=this.mediaBuffer)?void 0:t.buffered.length)?n.removeAllFragments():n.hasParts(e.type)&&(n.detectPartialFragments({frag:e,part:null,stats:e.stats,id:e.type}),n.getState(e)===It&&n.removeFragment(e))},n.checkLiveUpdate=function(e){if(e.updated&&!e.live){var t=e.fragments[e.fragments.length-1];this.fragmentTracker.detectPartialFragments({frag:t,part:null,stats:t.stats,id:t.type})}e.fragments[0]||(e.deltaUpdateFailed=!0)},n.flushMainBuffer=function(e,t,n){if(void 0===n&&(n=null),e-t){var r={startOffset:e,endOffset:t,type:n};this.hls.trigger(S.BUFFER_FLUSHING,r)}},n._loadInitSegment=function(e,t){var n=this;this._doFragLoad(e,t).then((function(t){if(!t||n.fragContextChanged(e)||!n.levels)throw new Error("init load aborted");return t})).then((function(t){var r=n.hls,i=t.payload,o=e.decryptdata;if(i&&i.byteLength>0&&o&&o.key&&o.iv&&"AES-128"===o.method){var a=self.performance.now();return n.decrypter.decrypt(new Uint8Array(i),o.key.buffer,o.iv.buffer).catch((function(t){throw r.trigger(S.ERROR,{type:E.MEDIA_ERROR,details:w.FRAG_DECRYPT_ERROR,fatal:!1,error:t,reason:t.message,frag:e}),t})).then((function(n){var i=self.performance.now();return r.trigger(S.FRAG_DECRYPTED,{frag:e,payload:n,stats:{tstart:a,tdecrypt:i}}),t.payload=n,t}))}return t})).then((function(r){var i=n.fragCurrent,o=n.hls;if(!n.levels)throw new Error("init load aborted, missing levels");var a=e.stats;n.state=nn,t.fragmentError=0,e.data=new Uint8Array(r.payload),a.parsing.start=a.buffering.start=self.performance.now(),a.parsing.end=a.buffering.end=self.performance.now(),r.frag===i&&o.trigger(S.FRAG_BUFFERED,{stats:a,frag:i,part:null,id:e.type}),n.tick()})).catch((function(t){n.state!==tn&&n.state!==cn&&(n.warn(t),n.resetFragmentLoading(e))}))},n.fragContextChanged=function(e){var t=this.fragCurrent;return!e||!t||e.level!==t.level||e.sn!==t.sn||e.urlId!==t.urlId},n.fragBufferedComplete=function(e,t){var n,r,i,o,a=this.mediaBuffer?this.mediaBuffer:this.media;this.log("Buffered "+e.type+" sn: "+e.sn+(t?" part: "+t.index:"")+" of "+(this.playlistType===Ke?"level":"track")+" "+e.level+" (frag:["+(null!=(n=e.startPTS)?n:NaN).toFixed(3)+"-"+(null!=(r=e.endPTS)?r:NaN).toFixed(3)+"] > buffer:"+(a?function(e){for(var t="",n=e.length,r=0;r<n;r++)t+="["+e.start(r).toFixed(3)+"-"+e.end(r).toFixed(3)+"]";return t}(Zt.getBuffered(a)):"(detached)")+")"),this.state=nn,a&&(!this.loadedmetadata&&e.type==Ke&&a.buffered.length&&(null==(i=this.fragCurrent)?void 0:i.sn)===(null==(o=this.fragPrevious)?void 0:o.sn)&&(this.loadedmetadata=!0,this.seekToStartPos()),this.tick())},n.seekToStartPos=function(){},n._handleFragmentLoadComplete=function(e){var t=this.transmuxer;if(t){var n=e.frag,r=e.part,i=e.partsLoaded,o=!i||0===i.length||i.some((function(e){return!e})),a=new Xt(n.level,n.sn,n.stats.chunkCount+1,0,r?r.index:-1,!o);t.flush(a)}},n._handleFragmentLoadProgress=function(e){},n._doFragLoad=function(e,t,n,r){var i,o=this;void 0===n&&(n=null);var a=null==t?void 0:t.details;if(!this.levels||!a)throw new Error("frag load aborted, missing level"+(a?"":" detail")+"s");var s=null;if(!e.encrypted||null!=(i=e.decryptdata)&&i.key?!e.encrypted&&a.encryptedFragments.length&&this.keyLoader.loadClear(e,a.encryptedFragments):(this.log("Loading key for "+e.sn+" of ["+a.startSN+"-"+a.endSN+"], "+("[stream-controller]"===this.logPrefix?"level":"track")+" "+e.level),this.state=rn,this.fragCurrent=e,s=this.keyLoader.load(e).then((function(e){if(!o.fragContextChanged(e.frag))return o.hls.trigger(S.KEY_LOADED,e),o.state===rn&&(o.state=nn),e})),this.hls.trigger(S.KEY_LOADING,{frag:e}),null===this.fragCurrent&&(s=Promise.reject(new Error("frag load aborted, context changed in KEY_LOADING")))),n=Math.max(e.start,n||0),this.config.lowLatencyMode&&"initSegment"!==e.sn){var l=a.partList;if(l&&r){n>e.end&&a.fragmentHint&&(e=a.fragmentHint);var u=this.getNextPart(l,e,n);if(u>-1){var c,f=l[u];return this.log("Loading part sn: "+e.sn+" p: "+f.index+" cc: "+e.cc+" of playlist ["+a.startSN+"-"+a.endSN+"] parts [0-"+u+"-"+(l.length-1)+"] "+("[stream-controller]"===this.logPrefix?"level":"track")+": "+e.level+", target: "+parseFloat(n.toFixed(3))),this.nextLoadPosition=f.start+f.duration,this.state=on,c=s?s.then((function(n){return!n||o.fragContextChanged(n.frag)?null:o.doFragPartsLoad(e,f,t,r)})).catch((function(e){return o.handleFragLoadError(e)})):this.doFragPartsLoad(e,f,t,r).catch((function(e){return o.handleFragLoadError(e)})),this.hls.trigger(S.FRAG_LOADING,{frag:e,part:f,targetBufferTime:n}),null===this.fragCurrent?Promise.reject(new Error("frag load aborted, context changed in FRAG_LOADING parts")):c}if(!e.url||this.loadedEndOfParts(l,n))return Promise.resolve(null)}}this.log("Loading fragment "+e.sn+" cc: "+e.cc+" "+(a?"of ["+a.startSN+"-"+a.endSN+"] ":"")+("[stream-controller]"===this.logPrefix?"level":"track")+": "+e.level+", target: "+parseFloat(n.toFixed(3))),y(e.sn)&&!this.bitrateTest&&(this.nextLoadPosition=e.start+e.duration),this.state=on;var d,h=this.config.progressive;return d=h&&s?s.then((function(t){return!t||o.fragContextChanged(null==t?void 0:t.frag)?null:o.fragmentLoader.load(e,r)})).catch((function(e){return o.handleFragLoadError(e)})):Promise.all([this.fragmentLoader.load(e,h?r:void 0),s]).then((function(e){var t=e[0];return!h&&t&&r&&r(t),t})).catch((function(e){return o.handleFragLoadError(e)})),this.hls.trigger(S.FRAG_LOADING,{frag:e,targetBufferTime:n}),null===this.fragCurrent?Promise.reject(new Error("frag load aborted, context changed in FRAG_LOADING")):d},n.doFragPartsLoad=function(e,t,n,r){var i=this;return new Promise((function(o,a){var s,l=[],u=null==(s=n.details)?void 0:s.partList;!function t(s){i.fragmentLoader.loadPart(e,s,r).then((function(r){l[s.index]=r;var a=r.part;i.hls.trigger(S.FRAG_LOADED,r);var c=gt(n,e.sn,s.index+1)||vt(u,e.sn,s.index+1);if(!c)return o({frag:e,part:a,partsLoaded:l});t(c)})).catch(a)}(t)}))},n.handleFragLoadError=function(e){if("data"in e){var t=e.data;e.data&&t.details===w.INTERNAL_ABORTED?this.handleFragLoadAborted(t.frag,t.part):this.hls.trigger(S.ERROR,t)}else this.hls.trigger(S.ERROR,{type:E.OTHER_ERROR,details:w.INTERNAL_EXCEPTION,err:e,error:e,fatal:!0});return null},n._handleTransmuxerFlush=function(e){var t=this.getCurrentContext(e);if(t&&this.state===sn){var n=t.frag,r=t.part,i=t.level,o=self.performance.now();n.stats.parsing.end=o,r&&(r.stats.parsing.end=o),this.updateLevelTiming(n,r,i,e.partial)}else this.fragCurrent||this.state===tn||this.state===cn||(this.state=nn)},n.getCurrentContext=function(e){var t=this.levels,n=this.fragCurrent,r=e.level,i=e.sn,o=e.part;if(null==t||!t[r])return this.warn("Levels object was unset while buffering fragment "+i+" of level "+r+". The current chunk will not be buffered."),null;var a=t[r],s=o>-1?gt(a,i,o):null,l=s?s.fragment:function(e,t,n){if(null==e||!e.details)return null;var r=e.details,i=r.fragments[t-r.startSN];return i||((i=r.fragmentHint)&&i.sn===t?i:t<r.startSN&&n&&n.sn===t?n:null)}(a,i,n);return l?(n&&n!==l&&(l.stats=n.stats),{frag:l,part:s,level:a}):null},n.bufferFragmentData=function(e,t,n,r,i){var o;if(e&&this.state===sn){var a=e.data1,s=e.data2,l=a;if(a&&s&&(l=be(a,s)),null!=(o=l)&&o.length){var u={type:e.type,frag:t,part:n,chunkMeta:r,parent:t.type,data:l};if(this.hls.trigger(S.BUFFER_APPENDING,u),e.dropped&&e.independent&&!n){if(i)return;this.flushBufferGap(t)}}}},n.flushBufferGap=function(e){var t=this.media;if(t)if(Zt.isBuffered(t,t.currentTime)){var n=t.currentTime,r=Zt.bufferInfo(t,n,0),i=e.duration,o=Math.min(2*this.config.maxFragLookUpTolerance,.25*i),a=Math.max(Math.min(e.start-o,r.end-o),n+o);e.start-a>o&&this.flushMainBuffer(a,e.start)}else this.flushMainBuffer(0,e.start)},n.getFwdBufferInfo=function(e,t){var n=this.getLoadPosition();return y(n)?this.getFwdBufferInfoAtPos(e,n,t):null},n.getFwdBufferInfoAtPos=function(e,t,n){var r=this.config.maxBufferHole,i=Zt.bufferInfo(e,t,r);if(0===i.len&&void 0!==i.nextStart){var o=this.fragmentTracker.getBufferedFrag(t,n);if(o&&i.nextStart<o.end)return Zt.bufferInfo(e,t,Math.max(i.nextStart,r))}return i},n.getMaxBufferLength=function(e){var t,n=this.config;return t=e?Math.max(8*n.maxBufferSize/e,n.maxBufferLength):n.maxBufferLength,Math.min(t,n.maxMaxBufferLength)},n.reduceMaxBufferLength=function(e){var t=this.config,n=e||t.maxBufferLength;return t.maxMaxBufferLength>=n&&(t.maxMaxBufferLength/=2,this.warn("Reduce max buffer length to "+t.maxMaxBufferLength+"s"),!0)},n.getAppendedFrag=function(e,t){var n=this.fragmentTracker.getAppendedFrag(e,Ke);return n&&"fragment"in n?n.fragment:n},n.getNextFragment=function(e,t){var n=t.fragments,r=n.length;if(!r)return null;var i,o=this.config,a=n[0].start;if(t.live){var s=o.initialLiveManifestSize;if(r<s)return this.warn("Not enough fragments to start playback (have: "+r+", need: "+s+")"),null;t.PTSKnown||this.startFragRequested||-1!==this.startPosition||(i=this.getInitialLiveFragment(t,n),this.startPosition=i?this.hls.liveSyncPosition||i.start:e)}else e<=a&&(i=n[0]);if(!i){var l=o.lowLatencyMode?t.partEnd:t.fragmentEnd;i=this.getFragmentAtPosition(e,l,t)}return this.mapToInitFragWhenRequired(i)},n.isLoopLoading=function(e,t){var n=this.fragmentTracker.getState(e);return(n===Dt||n===It&&!!e.gap)&&this.nextLoadPosition>t},n.getNextFragmentLoopLoading=function(e,t,n,r,i){var o=e.gap,a=this.getNextFragment(this.nextLoadPosition,t);if(null===a)return a;if(e=a,o&&e&&!e.gap&&n.nextStart){var s=this.getFwdBufferInfoAtPos(this.mediaBuffer?this.mediaBuffer:this.media,n.nextStart,r);if(null!==s&&n.len+s.len>=i)return this.log('buffer full after gaps in "'+r+'" playlist starting at sn: '+e.sn),null}return e},n.mapToInitFragWhenRequired=function(e){return null==e||!e.initSegment||null!=e&&e.initSegment.data||this.bitrateTest?e:e.initSegment},n.getNextPart=function(e,t,n){for(var r=-1,i=!1,o=!0,a=0,s=e.length;a<s;a++){var l=e[a];if(o=o&&!l.independent,r>-1&&n<l.start)break;var u=l.loaded;u?r=-1:(i||l.independent||o)&&l.fragment===t&&(r=a),i=u}return r},n.loadedEndOfParts=function(e,t){var n=e[e.length-1];return n&&t>n.start&&n.loaded},n.getInitialLiveFragment=function(e,t){var n=this.fragPrevious,r=null;if(n){if(e.hasProgramDateTime&&(this.log("Live playlist, switching playlist, load frag with same PDT: "+n.programDateTime),r=function(e,t,n){if(null===t||!Array.isArray(e)||!e.length||!y(t))return null;if(t<(e[0].programDateTime||0))return null;if(t>=(e[e.length-1].endProgramDateTime||0))return null;n=n||0;for(var r=0;r<e.length;++r){var i=e[r];if(xt(t,n,i))return i}return null}(t,n.endProgramDateTime,this.config.maxFragLookUpTolerance)),!r){var i=n.sn+1;if(i>=e.startSN&&i<=e.endSN){var o=t[i-e.startSN];n.cc===o.cc&&(r=o,this.log("Live playlist, switching playlist, load frag with next SN: "+r.sn))}r||(r=function(e,t){return wt(e,(function(e){return e.cc<t?1:e.cc>t?-1:0}))}(t,n.cc))&&this.log("Live playlist, switching playlist, load frag with same CC: "+r.sn)}}else{var a=this.hls.liveSyncPosition;null!==a&&(r=this.getFragmentAtPosition(a,this.bitrateTest?e.fragmentEnd:e.edge,e))}return r},n.getFragmentAtPosition=function(e,t,n){var r,i=this.config,o=this.fragPrevious,a=n.fragments,s=n.endSN,l=n.fragmentHint,u=i.maxFragLookUpTolerance,c=n.partList,f=!!(i.lowLatencyMode&&null!=c&&c.length&&l);if(f&&l&&!this.bitrateTest&&(a=a.concat(l),s=l.sn),r=e<t?_t(o,a,e,e>t-u?0:u):a[a.length-1]){var d=r.sn-n.startSN,h=this.fragmentTracker.getState(r);if((h===Dt||h===It&&r.gap)&&(o=r),o&&r.sn===o.sn&&(!f||c[0].fragment.sn>r.sn)&&o&&r.level===o.level){var p=a[d+1];r=r.sn<s&&this.fragmentTracker.getState(p)!==Dt?p:null}}return r},n.synchronizeToLiveEdge=function(e){var t=this.config,n=this.media;if(n){var r=this.hls.liveSyncPosition,i=n.currentTime,o=e.fragments[0].start,a=e.edge,s=i>=o-t.maxFragLookUpTolerance&&i<=a;if(null!==r&&n.duration>r&&(i<r||!s)){var l=void 0!==t.liveMaxLatencyDuration?t.liveMaxLatencyDuration:t.liveMaxLatencyDurationCount*e.targetduration;(!s&&n.readyState<4||i<a-l)&&(this.loadedmetadata||(this.nextLoadPosition=r),n.readyState&&(this.warn("Playback: "+i.toFixed(3)+" is located too far from the end of live sliding playlist: "+a+", reset currentTime to : "+r.toFixed(3)),n.currentTime=r))}}},n.alignPlaylists=function(e,t){var n=this.levels,r=this.levelLastLoaded,i=this.fragPrevious,o=null!==r?n[r]:null,a=e.fragments.length;if(!a)return this.warn("No fragments in live playlist"),0;var s=e.fragments[0].start,l=!t,u=e.alignedSliding&&y(s);if(l||!u&&!s){!function(e,t,n){t&&(function(e,t,n){if(function(e,t,n){return!(!t.details||!(n.endCC>n.startCC||e&&e.cc<n.startCC))}(e,n,t)){var r=function(e,t,n){var r=e.fragments,i=t.fragments;if(i.length&&r.length){var o=function(e,t){for(var n=null,r=0,i=e.length;r<i;r++){var o=e[r];if(o&&o.cc===t){n=o;break}}return n}(r,i[0].cc);if(o&&(!o||o.startPTS))return o;P.log("No frag in previous level to align on")}else P.log("No fragments to align")}(n.details,t);r&&y(r.start)&&(P.log("Adjusting PTS using last level due to CC increase within current level "+t.url),qt(r.start,t))}}(e,n,t),!n.alignedSliding&&t.details&&function(e,t){if(t.fragments.length&&e.hasProgramDateTime&&t.hasProgramDateTime){var n=t.fragments[0].programDateTime,r=e.fragments[0].programDateTime,i=(r-n)/1e3+t.fragments[0].start;i&&y(i)&&(P.log("Adjusting PTS using programDateTime delta "+(r-n)+"ms, sliding:"+i.toFixed(3)+" "+e.url+" "),qt(i,e))}}(n,t.details),n.alignedSliding||!t.details||n.skippedSegments||mt(t.details,n))}(i,o,e);var c=e.fragments[0].start;return this.log("Live playlist sliding: "+c.toFixed(2)+" start-sn: "+(t?t.startSN:"na")+"->"+e.startSN+" prev-sn: "+(i?i.sn:"na")+" fragments: "+a),c}return s},n.waitForCdnTuneIn=function(e){return e.live&&e.canBlockReload&&e.partTarget&&e.tuneInGoal>Math.max(e.partHoldBack,3*e.partTarget)},n.setStartPosition=function(e,t){var n=this.startPosition;if(n<t&&(n=-1),-1===n||-1===this.lastCurrentTime){var r=null!==this.startTimeOffset,i=r?this.startTimeOffset:e.startTimeOffset;null!==i&&y(i)?(n=t+i,i<0&&(n+=e.totalduration),n=Math.min(Math.max(t,n),t+e.totalduration),this.log("Start time offset "+i+" found in "+(r?"multivariant":"media")+" playlist, adjust startPosition to "+n),this.startPosition=n):e.live?n=this.hls.liveSyncPosition||t:this.startPosition=n=0,this.lastCurrentTime=n}this.nextLoadPosition=n},n.getLoadPosition=function(){var e=this.media,t=0;return this.loadedmetadata&&e?t=e.currentTime:this.nextLoadPosition&&(t=this.nextLoadPosition),t},n.handleFragLoadAborted=function(e,t){this.transmuxer&&"initSegment"!==e.sn&&e.stats.aborted&&(this.warn("Fragment "+e.sn+(t?" part "+t.index:"")+" of level "+e.level+" was aborted"),this.resetFragmentLoading(e))},n.resetFragmentLoading=function(e){this.fragCurrent&&(this.fragContextChanged(e)||this.state===an)||(this.state=nn)},n.onFragmentOrKeyLoadError=function(e,t){if(t.chunkMeta&&!t.frag){var n=this.getCurrentContext(t.chunkMeta);n&&(t.frag=n.frag)}var r=t.frag;if(r&&r.type===e&&this.levels)if(this.fragContextChanged(r)){var i;this.warn("Frag load error must match current frag to retry "+r.url+" > "+(null==(i=this.fragCurrent)?void 0:i.url))}else{var o=t.details===w.FRAG_GAP;o&&this.fragmentTracker.fragBuffered(r,!0);var a=t.errorAction,s=a||{},l=s.action,u=s.retryCount,c=void 0===u?0:u,f=s.retryConfig;if(a&&5===l&&f){var d;this.resetStartWhenNotLoaded(null!=(d=this.levelLastLoaded)?d:r.level);var h=Tt(f,c);this.warn("Fragment "+r.sn+" of "+e+" "+r.level+" errored with "+t.details+", retrying loading "+(c+1)+"/"+f.maxNumRetry+" in "+h+"ms"),a.resolved=!0,this.retryDate=self.performance.now()+h,this.state=an}else f&&a?(this.resetFragmentErrors(e),c<f.maxNumRetry?o||(a.resolved=!0):P.warn(t.details+" reached or exceeded max retry ("+c+")")):2===(null==a?void 0:a.action)?this.state=fn:this.state=cn;this.tickImmediate()}},n.reduceLengthAndFlushBuffer=function(e){if(this.state===sn||this.state===ln){var t=e.parent,n=this.getFwdBufferInfo(this.mediaBuffer,t),r=n&&n.len>.5;r&&this.reduceMaxBufferLength(n.len);var i=!r;return i&&this.warn("Buffer full error while media.currentTime is not buffered, flush "+t+" buffer"),e.frag&&(this.fragmentTracker.removeFragment(e.frag),this.nextLoadPosition=e.frag.start),this.resetLoadingState(),i}return!1},n.resetFragmentErrors=function(e){e===Ze&&(this.fragCurrent=null),this.loadedmetadata||(this.startFragRequested=!1),this.state!==tn&&(this.state=nn)},n.afterBufferFlushed=function(e,t,n){if(e){var r=Zt.getBuffered(e);this.fragmentTracker.detectEvictedFragments(t,r,n),this.state===un&&this.resetLoadingState()}},n.resetLoadingState=function(){this.log("Reset loading state"),this.fragCurrent=null,this.fragPrevious=null,this.state=nn},n.resetStartWhenNotLoaded=function(e){if(!this.loadedmetadata){this.startFragRequested=!1;var t=this.levels?this.levels[e].details:null;null!=t&&t.live?(this.startPosition=-1,this.setStartPosition(t,0),this.resetLoadingState()):this.nextLoadPosition=this.startPosition}},n.resetWhenMissingContext=function(e){var t;this.warn("The loading context changed while buffering fragment "+e.sn+" of level "+e.level+". This chunk will not be buffered."),this.removeUnbufferedFrags(),this.resetStartWhenNotLoaded(null!=(t=this.levelLastLoaded)?t:e.level),this.resetLoadingState()},n.removeUnbufferedFrags=function(e){void 0===e&&(e=0),this.fragmentTracker.removeFragmentsInRange(e,1/0,this.playlistType,!1,!0)},n.updateLevelTiming=function(e,t,n,r){var i,o=this,a=n.details;if(a){if(Object.keys(e.elementaryStreams).reduce((function(t,i){var s=e.elementaryStreams[i];if(s){var l=s.endPTS-s.startPTS;if(l<=0)return o.warn("Could not parse fragment "+e.sn+" "+i+" duration reliably ("+l+")"),t||!1;var u=r?0:dt(a,e,s.startPTS,s.endPTS,s.startDTS,s.endDTS);return o.hls.trigger(S.LEVEL_PTS_UPDATED,{details:a,level:n,drift:u,type:i,frag:e,start:s.startPTS,end:s.endPTS}),!0}return t}),!1))n.fragmentError=0;else if(null===(null==(i=this.transmuxer)?void 0:i.error)){var s=new Error("Found no media in fragment "+e.sn+" of level "+e.level+" resetting transmuxer to fallback to playlist timing");if(0===n.fragmentError&&(n.fragmentError++,e.gap=!0,this.fragmentTracker.removeFragment(e),this.fragmentTracker.fragBuffered(e,!0)),this.warn(s.message),this.hls.trigger(S.ERROR,{type:E.MEDIA_ERROR,details:w.FRAG_PARSING_ERROR,fatal:!1,error:s,frag:e,reason:"Found no media in msn "+e.sn+' of level "'+n.url+'"'}),!this.hls)return;this.resetTransmuxer()}this.state=ln,this.hls.trigger(S.FRAG_PARSED,{frag:e,part:t})}else this.warn("level.details undefined")},n.resetTransmuxer=function(){this.transmuxer&&(this.transmuxer.destroy(),this.transmuxer=null)},n.recoverWorkerError=function(e){var t,n,r;"demuxerWorker"===e.event&&(this.fragmentTracker.removeAllFragments(),this.resetTransmuxer(),this.resetStartWhenNotLoaded(null!=(t=null!=(n=this.levelLastLoaded)?n:null==(r=this.fragCurrent)?void 0:r.level)?t:0),this.resetLoadingState())},o(t,[{key:"state",get:function(){return this._state},set:function(e){var t=this._state;t!==e&&(this._state=e,this.log(t+"->"+e))}}]),t}($t);function hn(){return self.SourceBuffer||self.WebKitSourceBuffer}function pn(e,t){return void 0===e&&(e=""),void 0===t&&(t=9e4),{type:e,id:-1,pid:-1,inputTimeScale:t,sequenceNumber:-1,samples:[],dropped:0}}var mn=function(){function e(){this._audioTrack=void 0,this._id3Track=void 0,this.frameIndex=0,this.cachedData=null,this.basePTS=null,this.initPTS=null,this.lastPTS=null}var t=e.prototype;return t.resetInitSegment=function(e,t,n,r){this._id3Track={type:"id3",id:3,pid:-1,inputTimeScale:9e4,sequenceNumber:0,samples:[],dropped:0}},t.resetTimeStamp=function(e){this.initPTS=e,this.resetContiguity()},t.resetContiguity=function(){this.basePTS=null,this.lastPTS=null,this.frameIndex=0},t.canParse=function(e,t){return!1},t.appendFrame=function(e,t,n){},t.demux=function(e,t){this.cachedData&&(e=be(this.cachedData,e),this.cachedData=null);var n,r=X(e,0),i=r?r.length:0,o=this._audioTrack,a=this._id3Track,s=r?function(e){for(var t=J(e),n=0;n<t.length;n++){var r=t[n];if(Y(r))return ie(r)}}(r):void 0,l=e.length;for((null===this.basePTS||0===this.frameIndex&&y(s))&&(this.basePTS=gn(s,t,this.initPTS),this.lastPTS=this.basePTS),null===this.lastPTS&&(this.lastPTS=this.basePTS),r&&r.length>0&&a.samples.push({pts:this.lastPTS,dts:this.lastPTS,data:r,type:Je,duration:Number.POSITIVE_INFINITY});i<l;){if(this.canParse(e,i)){var u=this.appendFrame(o,e,i);u?(this.frameIndex++,this.lastPTS=u.sample.pts,n=i+=u.length):i=l}else q(e,i)?(r=X(e,i),a.samples.push({pts:this.lastPTS,dts:this.lastPTS,data:r,type:Je,duration:Number.POSITIVE_INFINITY}),n=i+=r.length):i++;if(i===l&&n!==l){var c=W(e,n);this.cachedData?this.cachedData=be(this.cachedData,c):this.cachedData=c}}return{audioTrack:o,videoTrack:pn(),id3Track:a,textTrack:pn()}},t.demuxSampleAes=function(e,t,n){return Promise.reject(new Error("["+this+"] This demuxer does not support Sample-AES decryption"))},t.flush=function(e){var t=this.cachedData;return t&&(this.cachedData=null,this.demux(t,0)),{audioTrack:this._audioTrack,videoTrack:pn(),id3Track:this._id3Track,textTrack:pn()}},t.destroy=function(){},e}(),gn=function(e,t,n){return y(e)?90*e:9e4*t+(n?9e4*n.baseTime/n.timescale:0)};function vn(e,t){return 255===e[t]&&240==(246&e[t+1])}function yn(e,t){return 1&e[t+1]?7:9}function bn(e,t){return(3&e[t+3])<<11|e[t+4]<<3|(224&e[t+5])>>>5}function Tn(e,t){return t+1<e.length&&vn(e,t)}function Sn(e,t){if(Tn(e,t)){var n=yn(e,t);if(t+n>=e.length)return!1;var r=bn(e,t);if(r<=n)return!1;var i=t+r;return i===e.length||Tn(e,i)}return!1}function En(e,t,n,r,i){if(!e.samplerate){var o=function(e,t,n,r){var i,o,a,s,l=navigator.userAgent.toLowerCase(),u=r,c=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350];i=1+((192&t[n+2])>>>6);var f=(60&t[n+2])>>>2;if(!(f>c.length-1))return a=(1&t[n+2])<<2,a|=(192&t[n+3])>>>6,P.log("manifest codec:"+r+", ADTS type:"+i+", samplingIndex:"+f),/firefox/i.test(l)?f>=6?(i=5,s=new Array(4),o=f-3):(i=2,s=new Array(2),o=f):-1!==l.indexOf("android")?(i=2,s=new Array(2),o=f):(i=5,s=new Array(4),r&&(-1!==r.indexOf("mp4a.40.29")||-1!==r.indexOf("mp4a.40.5"))||!r&&f>=6?o=f-3:((r&&-1!==r.indexOf("mp4a.40.2")&&(f>=6&&1===a||/vivaldi/i.test(l))||!r&&1===a)&&(i=2,s=new Array(2)),o=f)),s[0]=i<<3,s[0]|=(14&f)>>1,s[1]|=(1&f)<<7,s[1]|=a<<3,5===i&&(s[1]|=(14&o)>>1,s[2]=(1&o)<<7,s[2]|=8,s[3]=0),{config:s,samplerate:c[f],channelCount:a,codec:"mp4a.40."+i,manifestCodec:u};e.trigger(S.ERROR,{type:E.MEDIA_ERROR,details:w.FRAG_PARSING_ERROR,fatal:!0,reason:"invalid ADTS sampling index:"+f})}(t,n,r,i);if(!o)return;e.config=o.config,e.samplerate=o.samplerate,e.channelCount=o.channelCount,e.codec=o.codec,e.manifestCodec=o.manifestCodec,P.log("parsed codec:"+e.codec+", rate:"+o.samplerate+", channels:"+o.channelCount)}}function wn(e){return 9216e4/e}function _n(e,t,n,r,i){var o,a=r+i*wn(e.samplerate),s=function(e,t){var n=yn(e,t);if(t+n<=e.length){var r=bn(e,t)-n;if(r>0)return{headerLength:n,frameLength:r}}}(t,n);if(s){var l=s.frameLength,u=s.headerLength,c=u+l,f=Math.max(0,n+c-t.length);f?(o=new Uint8Array(c-u)).set(t.subarray(n+u,t.length),0):o=t.subarray(n+u,n+c);var d={unit:o,pts:a};return f||e.samples.push(d),{sample:d,length:c,missing:f}}var h=t.length-n;return(o=new Uint8Array(h)).set(t.subarray(n,t.length),0),{sample:{unit:o,pts:a},length:h,missing:-1}}var An=function(e){function t(t,n){var r;return(r=e.call(this)||this).observer=void 0,r.config=void 0,r.observer=t,r.config=n,r}l(t,e);var n=t.prototype;return n.resetInitSegment=function(t,n,r,i){e.prototype.resetInitSegment.call(this,t,n,r,i),this._audioTrack={container:"audio/adts",type:"audio",id:2,pid:-1,sequenceNumber:0,segmentCodec:"aac",samples:[],manifestCodec:n,duration:i,inputTimeScale:9e4,dropped:0}},t.probe=function(e){if(!e)return!1;for(var t=(X(e,0)||[]).length,n=e.length;t<n;t++)if(Sn(e,t))return P.log("ADTS sync word found !"),!0;return!1},n.canParse=function(e,t){return function(e,t){return function(e,t){return t+5<e.length}(e,t)&&vn(e,t)&&bn(e,t)<=e.length-t}(e,t)},n.appendFrame=function(e,t,n){En(e,this.observer,t,n,e.manifestCodec);var r=_n(e,t,n,this.basePTS,this.frameIndex);if(r&&0===r.missing)return r},t}(mn),xn=/\/emsg[-/]ID3/i,kn=function(){function e(e,t){this.remainderData=null,this.timeOffset=0,this.config=void 0,this.videoTrack=void 0,this.audioTrack=void 0,this.id3Track=void 0,this.txtTrack=void 0,this.config=t}var t=e.prototype;return t.resetTimeStamp=function(){},t.resetInitSegment=function(e,t,n,r){var i=this.videoTrack=pn("video",1),o=this.audioTrack=pn("audio",1),a=this.txtTrack=pn("text",1);if(this.id3Track=pn("id3",1),this.timeOffset=0,null!=e&&e.byteLength){var s=ve(e);if(s.video){var l=s.video,u=l.id,c=l.timescale,f=l.codec;i.id=u,i.timescale=a.timescale=c,i.codec=f}if(s.audio){var d=s.audio,h=d.id,p=d.timescale,m=d.codec;o.id=h,o.timescale=p,o.codec=m}a.id=ue.text,i.sampleDuration=0,i.duration=o.duration=r}},t.resetContiguity=function(){this.remainderData=null},e.probe=function(e){return me(e=e.length>16384?e.subarray(0,16384):e,["moof"]).length>0},t.demux=function(e,t){this.timeOffset=t;var n=e,r=this.videoTrack,i=this.txtTrack;if(this.config.progressive){this.remainderData&&(n=be(this.remainderData,e));var o=function(e){var t={valid:null,remainder:null},n=me(e,["moof"]);if(!n)return t;if(n.length<2)return t.remainder=e,t;var r=n[n.length-1];return t.valid=W(e,0,r.byteOffset-8),t.remainder=W(e,r.byteOffset-8),t}(n);this.remainderData=o.remainder,r.samples=o.valid||new Uint8Array}else r.samples=n;var a=this.extractID3Track(r,t);return i.samples=Te(t,r),{videoTrack:r,audioTrack:this.audioTrack,id3Track:a,textTrack:this.txtTrack}},t.flush=function(){var e=this.timeOffset,t=this.videoTrack,n=this.txtTrack;t.samples=this.remainderData||new Uint8Array,this.remainderData=null;var r=this.extractID3Track(t,this.timeOffset);return n.samples=Te(e,t),{videoTrack:t,audioTrack:pn(),id3Track:r,textTrack:pn()}},t.extractID3Track=function(e,t){var n=this.id3Track;if(e.samples.length){var r=me(e.samples,["emsg"]);r&&r.forEach((function(e){var r=function(e){var t=e[0],n="",r="",i=0,o=0,a=0,s=0,l=0,u=0;if(0===t){for(;"\0"!==ce(e.subarray(u,u+1));)n+=ce(e.subarray(u,u+1)),u+=1;for(n+=ce(e.subarray(u,u+1)),u+=1;"\0"!==ce(e.subarray(u,u+1));)r+=ce(e.subarray(u,u+1)),u+=1;r+=ce(e.subarray(u,u+1)),u+=1,i=de(e,12),o=de(e,16),s=de(e,20),l=de(e,24),u=28}else if(1===t){i=de(e,u+=4);var c=de(e,u+=4),f=de(e,u+=4);for(u+=4,a=Math.pow(2,32)*c+f,b(a)||(a=Number.MAX_SAFE_INTEGER,P.warn("Presentation time exceeds safe integer limit and wrapped to max safe integer in parsing emsg box")),s=de(e,u),l=de(e,u+=4),u+=4;"\0"!==ce(e.subarray(u,u+1));)n+=ce(e.subarray(u,u+1)),u+=1;for(n+=ce(e.subarray(u,u+1)),u+=1;"\0"!==ce(e.subarray(u,u+1));)r+=ce(e.subarray(u,u+1)),u+=1;r+=ce(e.subarray(u,u+1)),u+=1}return{schemeIdUri:n,value:r,timeScale:i,presentationTime:a,presentationTimeDelta:o,eventDuration:s,id:l,payload:e.subarray(u,e.byteLength)}}(e);if(xn.test(r.schemeIdUri)){var i=y(r.presentationTime)?r.presentationTime/r.timeScale:t+r.presentationTimeDelta/r.timeScale,o=4294967295===r.eventDuration?Number.POSITIVE_INFINITY:r.eventDuration/r.timeScale;o<=.001&&(o=Number.POSITIVE_INFINITY);var a=r.payload;n.samples.push({data:a,len:a.byteLength,dts:i,pts:i,type:et,duration:o})}}))}return n},t.demuxSampleAes=function(e,t,n){return Promise.reject(new Error("The MP4 demuxer does not support SAMPLE-AES decryption"))},t.destroy=function(){},e}(),Ln=null,Pn=[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],Cn=[44100,48e3,32e3,22050,24e3,16e3,11025,12e3,8e3],Mn=[[0,72,144,12],[0,0,0,0],[0,72,144,12],[0,144,144,12]],Rn=[0,1,1,4];function On(e,t,n,r,i){if(!(n+24>t.length)){var o=In(t,n);if(o&&n+o.frameLength<=t.length){var a=r+i*(9e4*o.samplesPerFrame/o.sampleRate),s={unit:t.subarray(n,n+o.frameLength),pts:a,dts:a};return e.config=[],e.channelCount=o.channelCount,e.samplerate=o.sampleRate,e.samples.push(s),{sample:s,length:o.frameLength,missing:0}}}}function In(e,t){var n=e[t+1]>>3&3,r=e[t+1]>>1&3,i=e[t+2]>>4&15,o=e[t+2]>>2&3;if(1!==n&&0!==i&&15!==i&&3!==o){var a=e[t+2]>>1&1,s=e[t+3]>>6,l=1e3*Pn[14*(3===n?3-r:3===r?3:4)+i-1],u=Cn[3*(3===n?0:2===n?1:2)+o],c=3===s?1:2,f=Mn[n][r],d=Rn[r],h=8*f*d,p=Math.floor(f*l/u+a)*d;if(null===Ln){var m=(navigator.userAgent||"").match(/Chrome\/(\d+)/i);Ln=m?parseInt(m[1]):0}return!!Ln&&Ln<=87&&2===r&&l>=224e3&&0===s&&(e[t+3]=128|e[t+3]),{sampleRate:u,channelCount:c,frameLength:p,samplesPerFrame:h}}}function Dn(e,t){return 255===e[t]&&224==(224&e[t+1])&&0!=(6&e[t+1])}function Nn(e,t){return t+1<e.length&&Dn(e,t)}function Fn(e,t){if(t+1<e.length&&Dn(e,t)){var n=In(e,t),r=4;null!=n&&n.frameLength&&(r=n.frameLength);var i=t+r;return i===e.length||Nn(e,i)}return!1}var Bn=function(){function e(e){this.data=void 0,this.bytesAvailable=void 0,this.word=void 0,this.bitsAvailable=void 0,this.data=e,this.bytesAvailable=e.byteLength,this.word=0,this.bitsAvailable=0}var t=e.prototype;return t.loadWord=function(){var e=this.data,t=this.bytesAvailable,n=e.byteLength-t,r=new Uint8Array(4),i=Math.min(4,t);if(0===i)throw new Error("no bytes available");r.set(e.subarray(n,n+i)),this.word=new DataView(r.buffer).getUint32(0),this.bitsAvailable=8*i,this.bytesAvailable-=i},t.skipBits=function(e){var t;e=Math.min(e,8*this.bytesAvailable+this.bitsAvailable),this.bitsAvailable>e?(this.word<<=e,this.bitsAvailable-=e):(e-=this.bitsAvailable,e-=(t=e>>3)<<3,this.bytesAvailable-=t,this.loadWord(),this.word<<=e,this.bitsAvailable-=e)},t.readBits=function(e){var t=Math.min(this.bitsAvailable,e),n=this.word>>>32-t;if(e>32&&P.error("Cannot read more than 32 bits at a time"),this.bitsAvailable-=t,this.bitsAvailable>0)this.word<<=t;else{if(!(this.bytesAvailable>0))throw new Error("no bits available");this.loadWord()}return(t=e-t)>0&&this.bitsAvailable?n<<t|this.readBits(t):n},t.skipLZ=function(){var e;for(e=0;e<this.bitsAvailable;++e)if(0!=(this.word&2147483648>>>e))return this.word<<=e,this.bitsAvailable-=e,e;return this.loadWord(),e+this.skipLZ()},t.skipUEG=function(){this.skipBits(1+this.skipLZ())},t.skipEG=function(){this.skipBits(1+this.skipLZ())},t.readUEG=function(){var e=this.skipLZ();return this.readBits(e+1)-1},t.readEG=function(){var e=this.readUEG();return 1&e?1+e>>>1:-1*(e>>>1)},t.readBoolean=function(){return 1===this.readBits(1)},t.readUByte=function(){return this.readBits(8)},t.readUShort=function(){return this.readBits(16)},t.readUInt=function(){return this.readBits(32)},t.skipScalingList=function(e){for(var t=8,n=8,r=0;r<e;r++)0!==n&&(n=(t+this.readEG()+256)%256),t=0===n?t:n},t.readSPS=function(){var e,t,n,r=0,i=0,o=0,a=0,s=this.readUByte.bind(this),l=this.readBits.bind(this),u=this.readUEG.bind(this),c=this.readBoolean.bind(this),f=this.skipBits.bind(this),d=this.skipEG.bind(this),h=this.skipUEG.bind(this),p=this.skipScalingList.bind(this);s();var m=s();if(l(5),f(3),s(),h(),100===m||110===m||122===m||244===m||44===m||83===m||86===m||118===m||128===m){var g=u();if(3===g&&f(1),h(),h(),f(1),c())for(t=3!==g?8:12,n=0;n<t;n++)c()&&p(n<6?16:64)}h();var v=u();if(0===v)u();else if(1===v)for(f(1),d(),d(),e=u(),n=0;n<e;n++)d();h(),f(1);var y=u(),b=u(),T=l(1);0===T&&f(1),f(1),c()&&(r=u(),i=u(),o=u(),a=u());var S=[1,1];if(c()&&c())switch(s()){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=[s()<<8|s(),s()<<8|s()]}return{width:Math.ceil(16*(y+1)-2*r-2*i),height:(2-T)*(b+1)*16-(T?2:4)*(o+a),pixelRatio:S}},t.readSliceType=function(){return this.readUByte(),this.readUEG(),this.readUEG()},e}(),Gn=function(){function e(e,t,n){this.keyData=void 0,this.decrypter=void 0,this.keyData=n,this.decrypter=new en(t,{removePKCS7Padding:!1})}var t=e.prototype;return t.decryptBuffer=function(e){return this.decrypter.decrypt(e,this.keyData.key.buffer,this.keyData.iv.buffer)},t.decryptAacSample=function(e,t,n){var r=this,i=e[t].unit;if(!(i.length<=16)){var o=i.subarray(16,i.length-i.length%16),a=o.buffer.slice(o.byteOffset,o.byteOffset+o.length);this.decryptBuffer(a).then((function(o){var a=new Uint8Array(o);i.set(a,16),r.decrypter.isSync()||r.decryptAacSamples(e,t+1,n)}))}},t.decryptAacSamples=function(e,t,n){for(;;t++){if(t>=e.length)return void n();if(!(e[t].unit.length<32||(this.decryptAacSample(e,t,n),this.decrypter.isSync())))return}},t.getAvcEncryptedData=function(e){for(var t=16*Math.floor((e.length-48)/160)+16,n=new Int8Array(t),r=0,i=32;i<e.length-16;i+=160,r+=16)n.set(e.subarray(i,i+16),r);return n},t.getAvcDecryptedUnit=function(e,t){for(var n=new Uint8Array(t),r=0,i=32;i<e.length-16;i+=160,r+=16)e.set(n.subarray(r,r+16),i);return e},t.decryptAvcSample=function(e,t,n,r,i){var o=this,a=we(i.data),s=this.getAvcEncryptedData(a);this.decryptBuffer(s.buffer).then((function(s){i.data=o.getAvcDecryptedUnit(a,s),o.decrypter.isSync()||o.decryptAvcSamples(e,t,n+1,r)}))},t.decryptAvcSamples=function(e,t,n,r){if(e instanceof Uint8Array)throw new Error("Cannot decrypt samples of type Uint8Array");for(;;t++,n=0){if(t>=e.length)return void r();for(var i=e[t].units;!(n>=i.length);n++){var o=i[n];if(!(o.data.length<=48||1!==o.type&&5!==o.type||(this.decryptAvcSample(e,t,n,r,o),this.decrypter.isSync())))return}}},e}(),Un=188,Hn=function(){function e(e,t,n){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=e,this.config=t,this.typeSupported=n}e.probe=function(t){var n=e.syncOffset(t);return n>0&&P.warn("MPEG2-TS detected but first sync word found @ offset "+n),-1!==n},e.syncOffset=function(e){for(var t=e.length,n=Math.min(940,e.length-Un)+1,r=0;r<n;){for(var i=!1,o=-1,a=0,s=r;s<t;s+=Un){if(71!==e[s]){if(a)return-1;break}if(a++,-1===o&&0!==(o=s)&&(n=Math.min(o+18612,e.length-Un)+1),i||(i=0===jn(e,s)),i&&a>1&&(0===o&&a>2||s+Un>n))return o}r++}return-1},e.createTrack=function(e,t){return{container:"video"===e||"audio"===e?"video/mp2t":void 0,type:e,id:ue[e],pid:-1,inputTimeScale:9e4,sequenceNumber:0,samples:[],dropped:0,duration:"audio"===e?t:void 0}};var t=e.prototype;return t.resetInitSegment=function(t,n,r,i){this.pmtParsed=!1,this._pmtId=-1,this._avcTrack=e.createTrack("video"),this._audioTrack=e.createTrack("audio",i),this._id3Track=e.createTrack("id3"),this._txtTrack=e.createTrack("text"),this._audioTrack.segmentCodec="aac",this.aacOverFlow=null,this.avcSample=null,this.remainderData=null,this.audioCodec=n,this.videoCodec=r,this._duration=i},t.resetTimeStamp=function(){},t.resetContiguity=function(){var e=this._audioTrack,t=this._avcTrack,n=this._id3Track;e&&(e.pesData=null),t&&(t.pesData=null),n&&(n.pesData=null),this.aacOverFlow=null,this.avcSample=null,this.remainderData=null},t.demux=function(t,n,r,i){var o;void 0===r&&(r=!1),void 0===i&&(i=!1),r||(this.sampleAes=null);var a=this._avcTrack,s=this._audioTrack,l=this._id3Track,u=this._txtTrack,c=a.pid,f=a.pesData,d=s.pid,h=l.pid,p=s.pesData,m=l.pesData,g=null,v=this.pmtParsed,y=this._pmtId,b=t.length;if(this.remainderData&&(b=(t=be(this.remainderData,t)).length,this.remainderData=null),b<Un&&!i)return this.remainderData=t,{audioTrack:s,videoTrack:a,id3Track:l,textTrack:u};var T=Math.max(0,e.syncOffset(t));(b-=(b-T)%Un)<t.byteLength&&!i&&(this.remainderData=new Uint8Array(t.buffer,b,t.buffer.byteLength-b));for(var _=0,A=T;A<b;A+=Un)if(71===t[A]){var x=!!(64&t[A+1]),k=jn(t,A),L=void 0;if((48&t[A+3])>>4>1){if((L=A+5+t[A+4])===A+Un)continue}else L=A+4;switch(k){case c:x&&(f&&(o=Kn(f))&&this.parseAVCPES(a,u,o,!1),f={data:[],size:0}),f&&(f.data.push(t.subarray(L,A+Un)),f.size+=A+Un-L);break;case d:if(x){if(p&&(o=Kn(p)))switch(s.segmentCodec){case"aac":this.parseAACPES(s,o);break;case"mp3":this.parseMPEGPES(s,o)}p={data:[],size:0}}p&&(p.data.push(t.subarray(L,A+Un)),p.size+=A+Un-L);break;case h:x&&(m&&(o=Kn(m))&&this.parseID3PES(l,o),m={data:[],size:0}),m&&(m.data.push(t.subarray(L,A+Un)),m.size+=A+Un-L);break;case 0:x&&(L+=t[L]+1),y=this._pmtId=Wn(t,L);break;case y:x&&(L+=t[L]+1);var C=$n(t,L,this.typeSupported,r);(c=C.avc)>0&&(a.pid=c),(d=C.audio)>0&&(s.pid=d,s.segmentCodec=C.segmentCodec),(h=C.id3)>0&&(l.pid=h),null===g||v||(P.warn("MPEG-TS PMT found at "+A+" after unknown PID '"+g+"'. Backtracking to sync byte @"+T+" to parse all TS packets."),g=null,A=T-188),v=this.pmtParsed=!0;break;case 17:case 8191:break;default:g=k}}else _++;if(_>0){var M=new Error("Found "+_+" TS packet/s that do not start with 0x47");this.observer.emit(S.ERROR,S.ERROR,{type:E.MEDIA_ERROR,details:w.FRAG_PARSING_ERROR,fatal:!1,error:M,reason:M.message})}a.pesData=f,s.pesData=p,l.pesData=m;var R={audioTrack:s,videoTrack:a,id3Track:l,textTrack:u};return i&&this.extractRemainingSamples(R),R},t.flush=function(){var e,t=this.remainderData;return this.remainderData=null,e=t?this.demux(t,-1,!1,!0):{videoTrack:this._avcTrack,audioTrack:this._audioTrack,id3Track:this._id3Track,textTrack:this._txtTrack},this.extractRemainingSamples(e),this.sampleAes?this.decrypt(e,this.sampleAes):e},t.extractRemainingSamples=function(e){var t,n=e.audioTrack,r=e.videoTrack,i=e.id3Track,o=e.textTrack,a=r.pesData,s=n.pesData,l=i.pesData;if(a&&(t=Kn(a))?(this.parseAVCPES(r,o,t,!0),r.pesData=null):r.pesData=a,s&&(t=Kn(s))){switch(n.segmentCodec){case"aac":this.parseAACPES(n,t);break;case"mp3":this.parseMPEGPES(n,t)}n.pesData=null}else null!=s&&s.size&&P.log("last AAC PES packet truncated,might overlap between fragments"),n.pesData=s;l&&(t=Kn(l))?(this.parseID3PES(i,t),i.pesData=null):i.pesData=l},t.demuxSampleAes=function(e,t,n){var r=this.demux(e,n,!0,!this.config.progressive),i=this.sampleAes=new Gn(this.observer,this.config,t);return this.decrypt(r,i)},t.decrypt=function(e,t){return new Promise((function(n){var r=e.audioTrack,i=e.videoTrack;r.samples&&"aac"===r.segmentCodec?t.decryptAacSamples(r.samples,0,(function(){i.samples?t.decryptAvcSamples(i.samples,0,0,(function(){n(e)})):n(e)})):i.samples&&t.decryptAvcSamples(i.samples,0,0,(function(){n(e)}))}))},t.destroy=function(){this._duration=0},t.parseAVCPES=function(e,t,n,r){var i,o=this,a=this.parseAVCNALu(e,n.data),s=this.avcSample,l=!1;n.data=null,s&&a.length&&!e.audFound&&(Zn(s,e),s=this.avcSample=Vn(!1,n.pts,n.dts,"")),a.forEach((function(r){var a;switch(r.type){case 1:var u=!1;i=!0;var c,f=r.data;if(l&&f.length>4){var d=new Bn(f).readSliceType();2!==d&&4!==d&&7!==d&&9!==d||(u=!0)}u&&null!=(c=s)&&c.frame&&!s.key&&(Zn(s,e),s=o.avcSample=null),s||(s=o.avcSample=Vn(!0,n.pts,n.dts,"")),s.frame=!0,s.key=u;break;case 5:i=!0,null!=(a=s)&&a.frame&&!s.key&&(Zn(s,e),s=o.avcSample=null),s||(s=o.avcSample=Vn(!0,n.pts,n.dts,"")),s.key=!0,s.frame=!0;break;case 6:i=!0,Ee(r.data,1,n.pts,t.samples);break;case 7:if(i=!0,l=!0,!e.sps){var h=r.data,p=new Bn(h).readSPS();e.width=p.width,e.height=p.height,e.pixelRatio=p.pixelRatio,e.sps=[h],e.duration=o._duration;for(var m=h.subarray(1,4),g="avc1.",v=0;v<3;v++){var y=m[v].toString(16);y.length<2&&(y="0"+y),g+=y}e.codec=g}break;case 8:i=!0,e.pps||(e.pps=[r.data]);break;case 9:i=!1,e.audFound=!0,s&&Zn(s,e),s=o.avcSample=Vn(!1,n.pts,n.dts,"");break;case 12:i=!0;break;default:i=!1,s&&(s.debug+="unknown NAL "+r.type+" ")}s&&i&&s.units.push(r)})),r&&s&&(Zn(s,e),this.avcSample=null)},t.getLastNalUnit=function(e){var t,n,r=this.avcSample;if(r&&0!==r.units.length||(r=e[e.length-1]),null!=(t=r)&&t.units){var i=r.units;n=i[i.length-1]}return n},t.parseAVCNALu=function(e,t){var n,r,i=t.byteLength,o=e.naluState||0,a=o,s=[],l=0,u=-1,c=0;for(-1===o&&(u=0,c=31&t[0],o=0,l=1);l<i;)if(n=t[l++],o)if(1!==o)if(n)if(1===n){if(u>=0){var f={data:t.subarray(u,l-o-1),type:c};s.push(f)}else{var d=this.getLastNalUnit(e.samples);if(d&&(a&&l<=4-a&&d.state&&(d.data=d.data.subarray(0,d.data.byteLength-a)),(r=l-o-1)>0)){var h=new Uint8Array(d.data.byteLength+r);h.set(d.data,0),h.set(t.subarray(0,r),d.data.byteLength),d.data=h,d.state=0}}l<i?(u=l,c=31&t[l],o=0):o=-1}else o=0;else o=3;else o=n?0:2;else o=n?0:1;if(u>=0&&o>=0){var p={data:t.subarray(u,i),type:c,state:o};s.push(p)}if(0===s.length){var m=this.getLastNalUnit(e.samples);if(m){var g=new Uint8Array(m.data.byteLength+t.byteLength);g.set(m.data,0),g.set(t,m.data.byteLength),m.data=g}}return e.naluState=o,s},t.parseAACPES=function(e,t){var n,r,i,o=0,a=this.aacOverFlow,s=t.data;if(a){this.aacOverFlow=null;var l=a.missing,u=a.sample.unit.byteLength;if(-1===l){var c=new Uint8Array(u+s.byteLength);c.set(a.sample.unit,0),c.set(s,u),s=c}else{var f=u-l;a.sample.unit.set(s.subarray(0,l),f),e.samples.push(a.sample),o=a.missing}}for(n=o,r=s.length;n<r-1&&!Tn(s,n);n++);if(n!==o){var d,h=n<r-1;d=h?"AAC PES did not start with ADTS header,offset:"+n:"No ADTS header found in AAC PES";var p=new Error(d);if(P.warn("parsing error: "+d),this.observer.emit(S.ERROR,S.ERROR,{type:E.MEDIA_ERROR,details:w.FRAG_PARSING_ERROR,fatal:!1,levelRetry:h,error:p,reason:d}),!h)return}if(En(e,this.observer,s,n,this.audioCodec),void 0!==t.pts)i=t.pts;else{if(!a)return void P.warn("[tsdemuxer]: AAC PES unknown PTS");var m=wn(e.samplerate);i=a.sample.pts+m}for(var g,v=0;n<r;){if(n+=(g=_n(e,s,n,i,v)).length,g.missing){this.aacOverFlow=g;break}for(v++;n<r-1&&!Tn(s,n);n++);}},t.parseMPEGPES=function(e,t){var n=t.data,r=n.length,i=0,o=0,a=t.pts;if(void 0!==a)for(;o<r;)if(Nn(n,o)){var s=On(e,n,o,a,i);if(!s)break;o+=s.length,i++}else o++;else P.warn("[tsdemuxer]: MPEG PES unknown PTS")},t.parseID3PES=function(e,t){if(void 0!==t.pts){var n=s({},t,{type:this._avcTrack?et:Je,duration:Number.POSITIVE_INFINITY});e.samples.push(n)}else P.warn("[tsdemuxer]: ID3 PES unknown PTS")},e}();function Vn(e,t,n,r){return{key:e,frame:!1,pts:t,dts:n,units:[],debug:r,length:0}}function jn(e,t){return((31&e[t+1])<<8)+e[t+2]}function Wn(e,t){return(31&e[t+10])<<8|e[t+11]}function $n(e,t,n,r){var i={audio:-1,avc:-1,id3:-1,segmentCodec:"aac"},o=t+3+((15&e[t+1])<<8|e[t+2])-4;for(t+=12+((15&e[t+10])<<8|e[t+11]);t<o;){var a=jn(e,t);switch(e[t]){case 207:if(!r){P.log("ADTS AAC with AES-128-CBC frame encryption found in unencrypted stream");break}case 15:-1===i.audio&&(i.audio=a);break;case 21:-1===i.id3&&(i.id3=a);break;case 219:if(!r){P.log("H.264 with AES-128-CBC slice encryption found in unencrypted stream");break}case 27:-1===i.avc&&(i.avc=a);break;case 3:case 4:!0!==n.mpeg&&!0!==n.mp3?P.log("MPEG audio found, not supported in this browser"):-1===i.audio&&(i.audio=a,i.segmentCodec="mp3");break;case 36:P.warn("Unsupported HEVC stream type found")}t+=5+((15&e[t+3])<<8|e[t+4])}return i}function Kn(e){var t,n,r,i,o,a=0,s=e.data;if(!e||0===e.size)return null;for(;s[0].length<19&&s.length>1;){var l=new Uint8Array(s[0].length+s[1].length);l.set(s[0]),l.set(s[1],s[0].length),s[0]=l,s.splice(1,1)}if(1===((t=s[0])[0]<<16)+(t[1]<<8)+t[2]){if((n=(t[4]<<8)+t[5])&&n>e.size-6)return null;var u=t[7];192&u&&(i=536870912*(14&t[9])+4194304*(255&t[10])+16384*(254&t[11])+128*(255&t[12])+(254&t[13])/2,64&u?i-(o=536870912*(14&t[14])+4194304*(255&t[15])+16384*(254&t[16])+128*(255&t[17])+(254&t[18])/2)>54e5&&(P.warn(Math.round((i-o)/9e4)+"s delta between PTS and DTS, align them"),i=o):o=i);var c=(r=t[8])+9;if(e.size<=c)return null;e.size-=c;for(var f=new Uint8Array(e.size),d=0,h=s.length;d<h;d++){var p=(t=s[d]).byteLength;if(c){if(c>p){c-=p;continue}t=t.subarray(c),p-=c,c=0}f.set(t,a),a+=p}return n&&(n-=r+3),{data:f,pts:i,dts:o,len:n}}return null}function Zn(e,t){if(e.units.length&&e.frame){if(void 0===e.pts){var n=t.samples,r=n.length;if(!r)return void t.dropped++;var i=n[r-1];e.pts=i.pts,e.dts=i.dts}t.samples.push(e)}e.debug.length&&P.log(e.pts+"/"+e.dts+":"+e.debug)}var Xn=function(e){function t(){return e.apply(this,arguments)||this}l(t,e);var n=t.prototype;return n.resetInitSegment=function(t,n,r,i){e.prototype.resetInitSegment.call(this,t,n,r,i),this._audioTrack={container:"audio/mpeg",type:"audio",id:2,pid:-1,sequenceNumber:0,segmentCodec:"mp3",samples:[],manifestCodec:n,duration:i,inputTimeScale:9e4,dropped:0}},t.probe=function(e){if(!e)return!1;for(var t=(X(e,0)||[]).length,n=e.length;t<n;t++)if(Fn(e,t))return P.log("MPEG Audio sync word found !"),!0;return!1},n.canParse=function(e,t){return function(e,t){return Dn(e,t)&&4<=e.length-t}(e,t)},n.appendFrame=function(e,t,n){if(null!==this.basePTS)return On(e,t,n,this.basePTS,this.frameIndex)},t}(mn),zn=function(){function e(){}return e.getSilentFrame=function(e,t){switch(e){case"mp4a.40.2":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]);break;default: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])}},e}(),qn=Math.pow(2,32)-1,Yn=function(){function e(){}return e.init=function(){var t;for(t in e.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:[]},e.types)e.types.hasOwnProperty(t)&&(e.types[t]=[t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2),t.charCodeAt(3)]);var n=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]),r=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]);e.HDLR_TYPES={video:n,audio:r};var i=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,12,117,114,108,32,0,0,0,1]),o=new Uint8Array([0,0,0,0,0,0,0,0]);e.STTS=e.STSC=e.STCO=o,e.STSZ=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0]),e.VMHD=new Uint8Array([0,0,0,1,0,0,0,0,0,0,0,0]),e.SMHD=new Uint8Array([0,0,0,0,0,0,0,0]),e.STSD=new Uint8Array([0,0,0,0,0,0,0,1]);var a=new Uint8Array([105,115,111,109]),s=new Uint8Array([97,118,99,49]),l=new Uint8Array([0,0,0,1]);e.FTYP=e.box(e.types.ftyp,a,l,a,s),e.DINF=e.box(e.types.dinf,e.box(e.types.dref,i))},e.box=function(e){for(var t=8,n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];for(var o=r.length,a=o;o--;)t+=r[o].byteLength;var s=new Uint8Array(t);for(s[0]=t>>24&255,s[1]=t>>16&255,s[2]=t>>8&255,s[3]=255&t,s.set(e,4),o=0,t=8;o<a;o++)s.set(r[o],t),t+=r[o].byteLength;return s},e.hdlr=function(t){return e.box(e.types.hdlr,e.HDLR_TYPES[t])},e.mdat=function(t){return e.box(e.types.mdat,t)},e.mdhd=function(t,n){n*=t;var r=Math.floor(n/(qn+1)),i=Math.floor(n%(qn+1));return e.box(e.types.mdhd,new Uint8Array([1,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3,t>>24&255,t>>16&255,t>>8&255,255&t,r>>24,r>>16&255,r>>8&255,255&r,i>>24,i>>16&255,i>>8&255,255&i,85,196,0,0]))},e.mdia=function(t){return e.box(e.types.mdia,e.mdhd(t.timescale,t.duration),e.hdlr(t.type),e.minf(t))},e.mfhd=function(t){return e.box(e.types.mfhd,new Uint8Array([0,0,0,0,t>>24,t>>16&255,t>>8&255,255&t]))},e.minf=function(t){return"audio"===t.type?e.box(e.types.minf,e.box(e.types.smhd,e.SMHD),e.DINF,e.stbl(t)):e.box(e.types.minf,e.box(e.types.vmhd,e.VMHD),e.DINF,e.stbl(t))},e.moof=function(t,n,r){return e.box(e.types.moof,e.mfhd(t),e.traf(r,n))},e.moov=function(t){for(var n=t.length,r=[];n--;)r[n]=e.trak(t[n]);return e.box.apply(null,[e.types.moov,e.mvhd(t[0].timescale,t[0].duration)].concat(r).concat(e.mvex(t)))},e.mvex=function(t){for(var n=t.length,r=[];n--;)r[n]=e.trex(t[n]);return e.box.apply(null,[e.types.mvex].concat(r))},e.mvhd=function(t,n){n*=t;var r=Math.floor(n/(qn+1)),i=Math.floor(n%(qn+1)),o=new Uint8Array([1,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3,t>>24&255,t>>16&255,t>>8&255,255&t,r>>24,r>>16&255,r>>8&255,255&r,i>>24,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]);return e.box(e.types.mvhd,o)},e.sdtp=function(t){var n,r,i=t.samples||[],o=new Uint8Array(4+i.length);for(n=0;n<i.length;n++)r=i[n].flags,o[n+4]=r.dependsOn<<4|r.isDependedOn<<2|r.hasRedundancy;return e.box(e.types.sdtp,o)},e.stbl=function(t){return e.box(e.types.stbl,e.stsd(t),e.box(e.types.stts,e.STTS),e.box(e.types.stsc,e.STSC),e.box(e.types.stsz,e.STSZ),e.box(e.types.stco,e.STCO))},e.avc1=function(t){var n,r,i,o=[],a=[];for(n=0;n<t.sps.length;n++)i=(r=t.sps[n]).byteLength,o.push(i>>>8&255),o.push(255&i),o=o.concat(Array.prototype.slice.call(r));for(n=0;n<t.pps.length;n++)i=(r=t.pps[n]).byteLength,a.push(i>>>8&255),a.push(255&i),a=a.concat(Array.prototype.slice.call(r));var s=e.box(e.types.avcC,new Uint8Array([1,o[3],o[4],o[5],255,224|t.sps.length].concat(o).concat([t.pps.length]).concat(a))),l=t.width,u=t.height,c=t.pixelRatio[0],f=t.pixelRatio[1];return e.box(e.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]),s,e.box(e.types.btrt,new Uint8Array([0,28,156,128,0,45,198,192,0,45,198,192])),e.box(e.types.pasp,new Uint8Array([c>>24,c>>16&255,c>>8&255,255&c,f>>24,f>>16&255,f>>8&255,255&f])))},e.esds=function(e){var t=e.config.length;return new Uint8Array([0,0,0,0,3,23+t,0,1,0,4,15+t,64,21,0,0,0,0,0,0,0,0,0,0,0,5].concat([t]).concat(e.config).concat([6,1,2]))},e.mp4a=function(t){var n=t.samplerate;return e.box(e.types.mp4a,new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,t.channelCount,0,16,0,0,0,0,n>>8&255,255&n,0,0]),e.box(e.types.esds,e.esds(t)))},e.mp3=function(t){var n=t.samplerate;return e.box(e.types[".mp3"],new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,t.channelCount,0,16,0,0,0,0,n>>8&255,255&n,0,0]))},e.stsd=function(t){return"audio"===t.type?"mp3"===t.segmentCodec&&"mp3"===t.codec?e.box(e.types.stsd,e.STSD,e.mp3(t)):e.box(e.types.stsd,e.STSD,e.mp4a(t)):e.box(e.types.stsd,e.STSD,e.avc1(t))},e.tkhd=function(t){var n=t.id,r=t.duration*t.timescale,i=t.width,o=t.height,a=Math.floor(r/(qn+1)),s=Math.floor(r%(qn+1));return e.box(e.types.tkhd,new Uint8Array([1,0,0,7,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3,n>>24&255,n>>16&255,n>>8&255,255&n,0,0,0,0,a>>24,a>>16&255,a>>8&255,255&a,s>>24,s>>16&255,s>>8&255,255&s,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,i>>8&255,255&i,0,0,o>>8&255,255&o,0,0]))},e.traf=function(t,n){var r=e.sdtp(t),i=t.id,o=Math.floor(n/(qn+1)),a=Math.floor(n%(qn+1));return e.box(e.types.traf,e.box(e.types.tfhd,new Uint8Array([0,0,0,0,i>>24,i>>16&255,i>>8&255,255&i])),e.box(e.types.tfdt,new Uint8Array([1,0,0,0,o>>24,o>>16&255,o>>8&255,255&o,a>>24,a>>16&255,a>>8&255,255&a])),e.trun(t,r.length+16+20+8+16+8+8),r)},e.trak=function(t){return t.duration=t.duration||4294967295,e.box(e.types.trak,e.tkhd(t),e.mdia(t))},e.trex=function(t){var n=t.id;return e.box(e.types.trex,new Uint8Array([0,0,0,0,n>>24,n>>16&255,n>>8&255,255&n,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,1]))},e.trun=function(t,n){var r,i,o,a,s,l,u=t.samples||[],c=u.length,f=12+16*c,d=new Uint8Array(f);for(n+=8+f,d.set(["video"===t.type?1:0,0,15,1,c>>>24&255,c>>>16&255,c>>>8&255,255&c,n>>>24&255,n>>>16&255,n>>>8&255,255&n],0),r=0;r<c;r++)o=(i=u[r]).duration,a=i.size,s=i.flags,l=i.cts,d.set([o>>>24&255,o>>>16&255,o>>>8&255,255&o,a>>>24&255,a>>>16&255,a>>>8&255,255&a,s.isLeading<<2|s.dependsOn,s.isDependedOn<<6|s.hasRedundancy<<4|s.paddingValue<<1|s.isNonSync,61440&s.degradPrio,15&s.degradPrio,l>>>24&255,l>>>16&255,l>>>8&255,255&l],12+16*r);return e.box(e.types.trun,d)},e.initSegment=function(t){e.types||e.init();var n=e.moov(t),r=new Uint8Array(e.FTYP.byteLength+n.byteLength);return r.set(e.FTYP),r.set(n,e.FTYP.byteLength),r},e}();function Qn(e,t){return void 0===t&&(t=!1),function(e,t,n,r){void 0===n&&(n=1),void 0===r&&(r=!1);var i=1e3*e*n;return r?Math.round(i):i}(e,0,1/9e4,t)}Yn.types=void 0,Yn.HDLR_TYPES=void 0,Yn.STTS=void 0,Yn.STSC=void 0,Yn.STCO=void 0,Yn.STSZ=void 0,Yn.VMHD=void 0,Yn.SMHD=void 0,Yn.STSD=void 0,Yn.FTYP=void 0,Yn.DINF=void 0;var Jn=null,er=null,tr=function(){function e(e,t,n,r){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=e,this.config=t,this.typeSupported=n,this.ISGenerated=!1,null===Jn){var i=(navigator.userAgent||"").match(/Chrome\/(\d+)/i);Jn=i?parseInt(i[1]):0}if(null===er){var o=navigator.userAgent.match(/Safari\/(\d+)/i);er=o?parseInt(o[1]):0}}var t=e.prototype;return t.destroy=function(){},t.resetTimeStamp=function(e){P.log("[mp4-remuxer]: initPTS & initDTS reset"),this._initPTS=this._initDTS=e},t.resetNextTimestamp=function(){P.log("[mp4-remuxer]: reset next timestamp"),this.isVideoContiguous=!1,this.isAudioContiguous=!1},t.resetInitSegment=function(){P.log("[mp4-remuxer]: ISGenerated flag reset"),this.ISGenerated=!1},t.getVideoStartPts=function(e){var t=!1,n=e.reduce((function(e,n){var r=n.pts-e;return r<-4294967296?(t=!0,nr(e,n.pts)):r>0?e:n.pts}),e[0].pts);return t&&P.debug("PTS rollover detected"),n},t.remux=function(e,t,n,r,i,o,a,s){var l,u,c,f,d,h,p=i,m=i,g=e.pid>-1,v=t.pid>-1,y=t.samples.length,b=e.samples.length>0,T=a&&y>0||y>1;if((!g||b)&&(!v||T)||this.ISGenerated||a){this.ISGenerated||(c=this.generateIS(e,t,i,o));var S,E=this.isVideoContiguous,w=-1;if(T&&(w=function(e){for(var t=0;t<e.length;t++)if(e[t].key)return t;return-1}(t.samples),!E&&this.config.forceKeyFrameOnDiscontinuity))if(h=!0,w>0){P.warn("[mp4-remuxer]: Dropped "+w+" out of "+y+" video samples due to a missing keyframe");var _=this.getVideoStartPts(t.samples);t.samples=t.samples.slice(w),t.dropped+=w,S=m+=(t.samples[0].pts-_)/t.inputTimeScale}else-1===w&&(P.warn("[mp4-remuxer]: No keyframe found out of "+y+" video samples"),h=!1);if(this.ISGenerated){if(b&&T){var A=this.getVideoStartPts(t.samples),x=(nr(e.samples[0].pts,A)-A)/t.inputTimeScale;p+=Math.max(0,x),m+=Math.max(0,-x)}if(b){if(e.samplerate||(P.warn("[mp4-remuxer]: regenerate InitSegment as audio detected"),c=this.generateIS(e,t,i,o)),u=this.remuxAudio(e,p,this.isAudioContiguous,o,v||T||s===Ze?m:void 0),T){var k=u?u.endPTS-u.startPTS:0;t.inputTimeScale||(P.warn("[mp4-remuxer]: regenerate InitSegment as video detected"),c=this.generateIS(e,t,i,o)),l=this.remuxVideo(t,m,E,k)}}else T&&(l=this.remuxVideo(t,m,E,0));l&&(l.firstKeyFrame=w,l.independent=-1!==w,l.firstKeyFramePTS=S)}}return this.ISGenerated&&this._initPTS&&this._initDTS&&(n.samples.length&&(d=rr(n,i,this._initPTS,this._initDTS)),r.samples.length&&(f=ir(r,i,this._initPTS))),{audio:u,video:l,initSegment:c,independent:h,text:f,id3:d}},t.generateIS=function(e,t,n,r){var i,o,a,s=e.samples,l=t.samples,u=this.typeSupported,c={},f=this._initPTS,d=!f||r,h="audio/mp4";if(d&&(i=o=1/0),e.config&&s.length){switch(e.timescale=e.samplerate,e.segmentCodec){case"mp3":u.mpeg?(h="audio/mpeg",e.codec=""):u.mp3&&(e.codec="mp3")}c.audio={id:"audio",container:h,codec:e.codec,initSegment:"mp3"===e.segmentCodec&&u.mpeg?new Uint8Array(0):Yn.initSegment([e]),metadata:{channelCount:e.channelCount}},d&&(a=e.inputTimeScale,f&&a===f.timescale?d=!1:i=o=s[0].pts-Math.round(a*n))}if(t.sps&&t.pps&&l.length&&(t.timescale=t.inputTimeScale,c.video={id:"main",container:"video/mp4",codec:t.codec,initSegment:Yn.initSegment([t]),metadata:{width:t.width,height:t.height}},d))if(a=t.inputTimeScale,f&&a===f.timescale)d=!1;else{var p=this.getVideoStartPts(l),m=Math.round(a*n);o=Math.min(o,nr(l[0].dts,p)-m),i=Math.min(i,p-m)}if(Object.keys(c).length)return this.ISGenerated=!0,d?(this._initPTS={baseTime:i,timescale:a},this._initDTS={baseTime:o,timescale:a}):i=a=void 0,{tracks:c,initPTS:i,timescale:a}},t.remuxVideo=function(e,t,n,r){var i,o,a=e.inputTimeScale,l=e.samples,u=[],c=l.length,f=this._initPTS,d=this.nextAvcDts,h=8,p=this.videoSampleDuration,m=Number.POSITIVE_INFINITY,g=Number.NEGATIVE_INFINITY,v=!1;n&&null!==d||(d=t*a-(l[0].pts-nr(l[0].dts,l[0].pts)));for(var y=f.baseTime*a/f.timescale,b=0;b<c;b++){var T=l[b];T.pts=nr(T.pts-y,d),T.dts=nr(T.dts-y,d),T.dts<l[b>0?b-1:b].dts&&(v=!0)}v&&l.sort((function(e,t){var n=e.dts-t.dts,r=e.pts-t.pts;return n||r})),i=l[0].dts;var _=l[l.length-1].dts-i,A=_?Math.round(_/(c-1)):p||e.inputTimeScale/30;if(n){var x=i-d,k=x>A,L=x<-1;if((k||L)&&(k?P.warn("AVC: "+Qn(x,!0)+" ms ("+x+"dts) hole between fragments detected, filling it"):P.warn("AVC: "+Qn(-x,!0)+" ms ("+x+"dts) overlapping between fragments detected"),!L||d>=l[0].pts)){i=d;var C=l[0].pts-x;l[0].dts=i,l[0].pts=C,P.log("Video: First PTS/DTS adjusted: "+Qn(C,!0)+"/"+Qn(i,!0)+", delta: "+Qn(x,!0)+" ms")}}i=Math.max(0,i);for(var M=0,R=0,O=0;O<c;O++){for(var I=l[O],D=I.units,N=D.length,F=0,B=0;B<N;B++)F+=D[B].data.length;R+=F,M+=N,I.length=F,I.dts=Math.max(I.dts,i),m=Math.min(I.pts,m),g=Math.max(I.pts,g)}o=l[c-1].dts;var G,U=R+4*M+8;try{G=new Uint8Array(U)}catch(e){return void this.observer.emit(S.ERROR,S.ERROR,{type:E.MUX_ERROR,details:w.REMUX_ALLOC_ERROR,fatal:!1,error:e,bytes:U,reason:"fail allocating video mdat "+U})}var H=new DataView(G.buffer);H.setUint32(0,U),G.set(Yn.types.mdat,4);for(var V=!1,j=Number.POSITIVE_INFINITY,W=Number.POSITIVE_INFINITY,$=Number.NEGATIVE_INFINITY,K=Number.NEGATIVE_INFINITY,Z=0;Z<c;Z++){for(var X=l[Z],z=X.units,q=0,Y=0,Q=z.length;Y<Q;Y++){var J=z[Y],ee=J.data,te=J.data.byteLength;H.setUint32(h,te),h+=4,G.set(ee,h),h+=te,q+=4+te}var ne=void 0;if(Z<c-1)p=l[Z+1].dts-X.dts,ne=l[Z+1].pts-X.pts;else{var re=this.config,ie=Z>0?X.dts-l[Z-1].dts:A;if(ne=Z>0?X.pts-l[Z-1].pts:A,re.stretchShortVideoTrack&&null!==this.nextAudioPts){var oe=Math.floor(re.maxBufferHole*a),ae=(r?m+r*a:this.nextAudioPts)-X.pts;ae>oe?((p=ae-ie)<0?p=ie:V=!0,P.log("[mp4-remuxer]: It is approximately "+ae/90+" ms to the next segment; using duration "+p/90+" ms for the last video frame.")):p=ie}else p=ie}var se=Math.round(X.pts-X.dts);j=Math.min(j,p),$=Math.max($,p),W=Math.min(W,ne),K=Math.max(K,ne),u.push(new ar(X.key,p,q,se))}if(u.length)if(Jn){if(Jn<70){var le=u[0].flags;le.dependsOn=2,le.isNonSync=0}}else if(er&&K-W<$-j&&A/$<.025&&0===u[0].cts){P.warn("Found irregular gaps in sample duration. Using PTS instead of DTS to determine MP4 sample duration.");for(var ue=i,ce=0,fe=u.length;ce<fe;ce++){var de=ue+u[ce].duration,he=ue+u[ce].cts;if(ce<fe-1){var pe=de+u[ce+1].cts;u[ce].duration=pe-he}else u[ce].duration=ce?u[ce-1].duration:A;u[ce].cts=0,ue=de}}p=V||!p?A:p,this.nextAvcDts=d=o+p,this.videoSampleDuration=p,this.isVideoContiguous=!0;var me={data1:Yn.moof(e.sequenceNumber++,i,s({},e,{samples:u})),data2:G,startPTS:m/a,endPTS:(g+p)/a,startDTS:i/a,endDTS:d/a,type:"video",hasAudio:!1,hasVideo:!0,nb:u.length,dropped:e.dropped};return e.samples=[],e.dropped=0,me},t.remuxAudio=function(e,t,n,r,i){var o=e.inputTimeScale,a=o/(e.samplerate?e.samplerate:o),l="aac"===e.segmentCodec?1024:1152,u=l*a,c=this._initPTS,f="mp3"===e.segmentCodec&&this.typeSupported.mpeg,d=[],h=void 0!==i,p=e.samples,m=f?0:8,g=this.nextAudioPts||-1,v=t*o,y=c.baseTime*o/c.timescale;if(this.isAudioContiguous=n=n||p.length&&g>0&&(r&&Math.abs(v-g)<9e3||Math.abs(nr(p[0].pts-y,v)-g)<20*u),p.forEach((function(e){e.pts=nr(e.pts-y,v)})),!n||g<0){if(!(p=p.filter((function(e){return e.pts>=0}))).length)return;g=0===i?0:r&&!h?Math.max(0,v):p[0].pts}if("aac"===e.segmentCodec)for(var b=this.config.maxAudioFramesDrift,T=0,_=g;T<p.length;T++){var A=p[T],x=A.pts,k=x-_,L=Math.abs(1e3*k/o);if(k<=-b*u&&h)0===T&&(P.warn("Audio frame @ "+(x/o).toFixed(3)+"s overlaps nextAudioPts by "+Math.round(1e3*k/o)+" ms."),this.nextAudioPts=g=_=x);else if(k>=b*u&&L<1e4&&h){var C=Math.round(k/u);(_=x-C*u)<0&&(C--,_+=u),0===T&&(this.nextAudioPts=g=_),P.warn("[mp4-remuxer]: Injecting "+C+" audio frame @ "+(_/o).toFixed(3)+"s due to "+Math.round(1e3*k/o)+" ms gap.");for(var M=0;M<C;M++){var R=Math.max(_,0),O=zn.getSilentFrame(e.manifestCodec||e.codec,e.channelCount);O||(P.log("[mp4-remuxer]: Unable to get silent frame for given audio codec; duplicating last frame instead."),O=A.unit.subarray()),p.splice(T,0,{unit:O,pts:R}),_+=u,T++}}A.pts=_,_+=u}for(var I,D=null,N=null,F=0,B=p.length;B--;)F+=p[B].unit.byteLength;for(var G=0,U=p.length;G<U;G++){var H=p[G],V=H.unit,j=H.pts;if(null!==N)d[G-1].duration=Math.round((j-N)/a);else{if(n&&"aac"===e.segmentCodec&&(j=g),D=j,!(F>0))return;F+=m;try{I=new Uint8Array(F)}catch(e){return void this.observer.emit(S.ERROR,S.ERROR,{type:E.MUX_ERROR,details:w.REMUX_ALLOC_ERROR,fatal:!1,error:e,bytes:F,reason:"fail allocating audio mdat "+F})}f||(new DataView(I.buffer).setUint32(0,F),I.set(Yn.types.mdat,4))}I.set(V,m);var W=V.byteLength;m+=W,d.push(new ar(!0,l,W,0)),N=j}var $=d.length;if($){var K=d[d.length-1];this.nextAudioPts=g=N+a*K.duration;var Z=f?new Uint8Array(0):Yn.moof(e.sequenceNumber++,D/a,s({},e,{samples:d}));e.samples=[];var X=D/o,z=g/o,q={data1:Z,data2:I,startPTS:X,endPTS:z,startDTS:X,endDTS:z,type:"audio",hasAudio:!0,hasVideo:!1,nb:$};return this.isAudioContiguous=!0,q}},t.remuxEmptyAudio=function(e,t,n,r){var i=e.inputTimeScale,o=i/(e.samplerate?e.samplerate:i),a=this.nextAudioPts,s=this._initDTS,l=9e4*s.baseTime/s.timescale,u=(null!==a?a:r.startDTS*i)+l,c=r.endDTS*i+l,f=1024*o,d=Math.ceil((c-u)/f),h=zn.getSilentFrame(e.manifestCodec||e.codec,e.channelCount);if(P.warn("[mp4-remuxer]: remux empty Audio"),h){for(var p=[],m=0;m<d;m++){var g=u+m*f;p.push({unit:h,pts:g,dts:g})}return e.samples=p,this.remuxAudio(e,t,n,!1)}P.trace("[mp4-remuxer]: Unable to remuxEmptyAudio since we were unable to get a silent frame for given audio codec")},e}();function nr(e,t){var n;if(null===t)return e;for(n=t<e?-8589934592:8589934592;Math.abs(e-t)>4294967296;)e+=n;return e}function rr(e,t,n,r){var i=e.samples.length;if(i){for(var o=e.inputTimeScale,a=0;a<i;a++){var s=e.samples[a];s.pts=nr(s.pts-n.baseTime*o/n.timescale,t*o)/o,s.dts=nr(s.dts-r.baseTime*o/r.timescale,t*o)/o}var l=e.samples;return e.samples=[],{samples:l}}}function ir(e,t,n){var r=e.samples.length;if(r){for(var i=e.inputTimeScale,o=0;o<r;o++){var a=e.samples[o];a.pts=nr(a.pts-n.baseTime*i/n.timescale,t*i)/i}e.samples.sort((function(e,t){return e.pts-t.pts}));var s=e.samples;return e.samples=[],{samples:s}}}var or,ar=function(e,t,n,r){this.size=void 0,this.duration=void 0,this.cts=void 0,this.flags=void 0,this.duration=t,this.size=n,this.cts=r,this.flags=new sr(e)},sr=function(e){this.isLeading=0,this.isDependedOn=0,this.hasRedundancy=0,this.degradPrio=0,this.dependsOn=1,this.isNonSync=1,this.dependsOn=e?2:1,this.isNonSync=e?0:1},lr=function(){function e(){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 t=e.prototype;return t.destroy=function(){},t.resetTimeStamp=function(e){this.initPTS=e,this.lastEndTime=null},t.resetNextTimestamp=function(){this.lastEndTime=null},t.resetInitSegment=function(e,t,n,r){this.audioCodec=t,this.videoCodec=n,this.generateInitSegment(function(e,t){if(!e||!t)return e;var n=t.keyId;return n&&t.isCommonEncryption&&me(e,["moov","trak"]).forEach((function(e){var t=me(e,["mdia","minf","stbl","stsd"])[0].subarray(8),r=me(t,["enca"]),i=r.length>0;i||(r=me(t,["encv"])),r.forEach((function(e){me(i?e.subarray(28):e.subarray(78),["sinf"]).forEach((function(e){var t=function(e){var t=me(e,["schm"])[0];if(t){var n=ce(t.subarray(4,8));if("cbcs"===n||"cenc"===n)return me(e,["schi","tenc"])[0]}return P.error("[eme] missing 'schm' box"),null}(e);if(t){var r=t.subarray(8,24);r.some((function(e){return 0!==e}))||(P.log("[eme] Patching keyId in 'enc"+(i?"a":"v")+">sinf>>tenc' box: "+ae(r)+" -> "+ae(n)),t.set(n,8))}}))}))})),e}(e,r)),this.emitInitSegment=!0},t.generateInitSegment=function(e){var t=this.audioCodec,n=this.videoCodec;if(null==e||!e.byteLength)return this.initTracks=void 0,void(this.initData=void 0);var r=this.initData=ve(e);t||(t=ur(r.audio,F)),n||(n=ur(r.video,B));var i={};r.audio&&r.video?i.audiovideo={container:"video/mp4",codec:t+","+n,initSegment:e,id:"main"}:r.audio?i.audio={container:"audio/mp4",codec:t,initSegment:e,id:"audio"}:r.video?i.video={container:"video/mp4",codec:n,initSegment:e,id:"main"}:P.warn("[passthrough-remuxer.ts]: initSegment does not contain moov or trak boxes."),this.initTracks=i},t.remux=function(e,t,n,r,i,o){var a,s,l=this.initPTS,u=this.lastEndTime,c={audio:void 0,video:void 0,text:r,id3:n,initSegment:void 0};y(u)||(u=this.lastEndTime=i||0);var f=t.samples;if(null==f||!f.length)return c;var d={initPTS:void 0,timescale:1},h=this.initData;if(null!=(a=h)&&a.length||(this.generateInitSegment(f),h=this.initData),null==(s=h)||!s.length)return P.warn("[passthrough-remuxer.ts]: Failed to generate initSegment."),c;this.emitInitSegment&&(d.tracks=this.initTracks,this.emitInitSegment=!1);var p=function(e,t){for(var n=0,r=0,i=0,o=me(e,["moof","traf"]),a=0;a<o.length;a++){var s=o[a],l=me(s,["tfhd"])[0],u=t[de(l,4)];if(u){var c=u.default,f=de(l,0)|(null==c?void 0:c.flags),d=null==c?void 0:c.duration;8&f&&(d=de(l,2&f?12:8));for(var h=u.timescale||9e4,p=me(s,["trun"]),m=0;m<p.length;m++)!(n=ye(p[m]))&&d&&(n=d*de(p[m],4)),u.type===B?r+=n/h:u.type===F&&(i+=n/h)}}if(0===r&&0===i){for(var g=0,v=me(e,["sidx"]),y=0;y<v.length;y++){var b=ge(v[y]);null!=b&&b.references&&(g+=b.references.reduce((function(e,t){return e+t.info.duration||0}),0))}return g}return r||i}(f,h),m=function(e,t){return me(t,["moof","traf"]).reduce((function(t,n){var r=me(n,["tfdt"])[0],i=r[0],o=me(n,["tfhd"]).reduce((function(t,n){var o=de(n,4),a=e[o];if(a){var s=de(r,4);if(1===i){if(s===se)return P.warn("[mp4-demuxer]: Ignoring assumed invalid signed 64-bit track fragment decode time"),t;s*=se+1,s+=de(r,8)}var l=s/(a.timescale||9e4);if(y(l)&&(null===t||l<t))return l}return t}),null);return null!==o&&y(o)&&(null===t||o<t)?o:t}),null)}(h,f),g=null===m?i:m;(function(e,t,n,r){if(null===e)return!0;var i=Math.max(r,1),o=t-e.baseTime/e.timescale;return Math.abs(o-n)>i}(l,g,i,p)||d.timescale!==l.timescale&&o)&&(d.initPTS=g-i,l&&1===l.timescale&&P.warn("Adjusting initPTS by "+(d.initPTS-l.baseTime)),this.initPTS=l={baseTime:d.initPTS,timescale:1});var v=e?g-l.baseTime/l.timescale:u,b=v+p;(function(e,t,n){me(t,["moof","traf"]).forEach((function(t){me(t,["tfhd"]).forEach((function(r){var i=de(r,4),o=e[i];if(o){var a=o.timescale||9e4;me(t,["tfdt"]).forEach((function(e){var t=e[0],r=de(e,4);if(0===t)r-=n*a,pe(e,4,r=Math.max(r,0));else{r*=Math.pow(2,32),r+=de(e,8),r-=n*a,r=Math.max(r,0);var i=Math.floor(r/(se+1)),o=Math.floor(r%(se+1));pe(e,4,i),pe(e,8,o)}}))}}))}))})(h,f,l.baseTime/l.timescale),p>0?this.lastEndTime=b:(P.warn("Duration parsed from mp4 should be greater than zero"),this.resetNextTimestamp());var T=!!h.audio,S=!!h.video,E="";T&&(E+="audio"),S&&(E+="video");var w={data1:f,startPTS:v,startDTS:v,endPTS:b,endDTS:b,type:E,hasAudio:T,hasVideo:S,nb:1,dropped:0};return c.audio="audio"===w.type?w:void 0,c.video="audio"!==w.type?w:void 0,c.initSegment=d,c.id3=rr(n,i,l,l),r.samples.length&&(c.text=ir(r,i,l)),c},e}();function ur(e,t){var n=null==e?void 0:e.codec;return n&&n.length>4?n:"hvc1"===n||"hev1"===n?"hvc1.1.6.L120.90":"av01"===n?"av01.0.04M.08":"avc1"===n||t===B?"avc1.42e01e":"mp4a.40.5"}try{or=self.performance.now.bind(self.performance)}catch(e){P.debug("Unable to use Performance API on this environment"),or="undefined"!=typeof self&&self.Date.now}var cr=[{demux:kn,remux:lr},{demux:Hn,remux:tr},{demux:An,remux:tr},{demux:Xn,remux:tr}],fr=function(){function e(e,t,n,r,i){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=e,this.typeSupported=t,this.config=n,this.vendor=r,this.id=i}var t=e.prototype;return t.configure=function(e){this.transmuxConfig=e,this.decrypter&&this.decrypter.reset()},t.push=function(e,t,n,r){var i=this,o=n.transmuxing;o.executeStart=or();var a=new Uint8Array(e),s=this.currentTransmuxState,l=this.transmuxConfig;r&&(this.currentTransmuxState=r);var u=r||s,c=u.contiguous,f=u.discontinuity,d=u.trackSwitch,h=u.accurateTimeOffset,p=u.timeOffset,m=u.initSegmentChange,g=l.audioCodec,v=l.videoCodec,y=l.defaultInitPts,b=l.duration,T=l.initSegmentData,_=function(e,t){var n=null;return e.byteLength>0&&null!=t&&null!=t.key&&null!==t.iv&&null!=t.method&&(n=t),n}(a,t);if(_&&"AES-128"===_.method){var A=this.getDecrypter();if(!A.isSync())return this.decryptionPromise=A.webCryptoDecrypt(a,_.key.buffer,_.iv.buffer).then((function(e){var t=i.push(e,null,n);return i.decryptionPromise=null,t})),this.decryptionPromise;var x=A.softwareDecrypt(a,_.key.buffer,_.iv.buffer);if(n.part>-1&&(x=A.flush()),!x)return o.executeEnd=or(),dr(n);a=new Uint8Array(x)}var k=this.needsProbing(f,d);if(k){var L=this.configureTransmuxer(a);if(L)return P.warn("[transmuxer] "+L.message),this.observer.emit(S.ERROR,S.ERROR,{type:E.MEDIA_ERROR,details:w.FRAG_PARSING_ERROR,fatal:!1,error:L,reason:L.message}),o.executeEnd=or(),dr(n)}(f||d||m||k)&&this.resetInitSegment(T,g,v,b,t),(f||m||k)&&this.resetInitialTimestamp(y),c||this.resetContiguity();var C=this.transmux(a,_,p,h,n),M=this.currentTransmuxState;return M.contiguous=!0,M.discontinuity=!1,M.trackSwitch=!1,o.executeEnd=or(),C},t.flush=function(e){var t=this,n=e.transmuxing;n.executeStart=or();var r=this.decrypter,i=this.currentTransmuxState,o=this.decryptionPromise;if(o)return o.then((function(){return t.flush(e)}));var a=[],s=i.timeOffset;if(r){var l=r.flush();l&&a.push(this.push(l,null,e))}var u=this.demuxer,c=this.remuxer;if(!u||!c)return n.executeEnd=or(),[dr(e)];var f=u.flush(s);return hr(f)?f.then((function(n){return t.flushRemux(a,n,e),a})):(this.flushRemux(a,f,e),a)},t.flushRemux=function(e,t,n){var r=t.audioTrack,i=t.videoTrack,o=t.id3Track,a=t.textTrack,s=this.currentTransmuxState,l=s.accurateTimeOffset,u=s.timeOffset;P.log("[transmuxer.ts]: Flushed fragment "+n.sn+(n.part>-1?" p: "+n.part:"")+" of level "+n.level);var c=this.remuxer.remux(r,i,o,a,u,l,!0,this.id);e.push({remuxResult:c,chunkMeta:n}),n.transmuxing.executeEnd=or()},t.resetInitialTimestamp=function(e){var t=this.demuxer,n=this.remuxer;t&&n&&(t.resetTimeStamp(e),n.resetTimeStamp(e))},t.resetContiguity=function(){var e=this.demuxer,t=this.remuxer;e&&t&&(e.resetContiguity(),t.resetNextTimestamp())},t.resetInitSegment=function(e,t,n,r,i){var o=this.demuxer,a=this.remuxer;o&&a&&(o.resetInitSegment(e,t,n,r),a.resetInitSegment(e,t,n,i))},t.destroy=function(){this.demuxer&&(this.demuxer.destroy(),this.demuxer=void 0),this.remuxer&&(this.remuxer.destroy(),this.remuxer=void 0)},t.transmux=function(e,t,n,r,i){return t&&"SAMPLE-AES"===t.method?this.transmuxSampleAes(e,t,n,r,i):this.transmuxUnencrypted(e,n,r,i)},t.transmuxUnencrypted=function(e,t,n,r){var i=this.demuxer.demux(e,t,!1,!this.config.progressive),o=i.audioTrack,a=i.videoTrack,s=i.id3Track,l=i.textTrack;return{remuxResult:this.remuxer.remux(o,a,s,l,t,n,!1,this.id),chunkMeta:r}},t.transmuxSampleAes=function(e,t,n,r,i){var o=this;return this.demuxer.demuxSampleAes(e,t,n).then((function(e){return{remuxResult:o.remuxer.remux(e.audioTrack,e.videoTrack,e.id3Track,e.textTrack,n,r,!1,o.id),chunkMeta:i}}))},t.configureTransmuxer=function(e){for(var t,n=this.config,r=this.observer,i=this.typeSupported,o=this.vendor,a=0,s=cr.length;a<s;a++)if(cr[a].demux.probe(e)){t=cr[a];break}if(!t)return new Error("Failed to find demuxer by probing fragment data");var l=this.demuxer,u=this.remuxer,c=t.remux,f=t.demux;u&&u instanceof c||(this.remuxer=new c(r,n,i,o)),l&&l instanceof f||(this.demuxer=new f(r,n,i),this.probe=f.probe)},t.needsProbing=function(e,t){return!this.demuxer||!this.remuxer||e||t},t.getDecrypter=function(){var e=this.decrypter;return e||(e=this.decrypter=new en(this.config)),e},e}(),dr=function(e){return{remuxResult:{},chunkMeta:e}};function hr(e){return"then"in e&&e.then instanceof Function}var pr=function(e,t,n,r,i){this.audioCodec=void 0,this.videoCodec=void 0,this.initSegmentData=void 0,this.duration=void 0,this.defaultInitPts=void 0,this.audioCodec=e,this.videoCodec=t,this.initSegmentData=n,this.duration=r,this.defaultInitPts=i||null},mr=function(e,t,n,r,i,o){this.discontinuity=void 0,this.contiguous=void 0,this.accurateTimeOffset=void 0,this.trackSwitch=void 0,this.timeOffset=void 0,this.initSegmentChange=void 0,this.discontinuity=e,this.contiguous=t,this.accurateTimeOffset=n,this.trackSwitch=r,this.timeOffset=i,this.initSegmentChange=o},gr={exports:{}};!function(e){var t=Object.prototype.hasOwnProperty,n="~";function r(){}function i(e,t,n){this.fn=e,this.context=t,this.once=n||!1}function o(e,t,r,o,a){if("function"!=typeof r)throw new TypeError("The listener must be a function");var s=new i(r,o||e,a),l=n?n+t:t;return e._events[l]?e._events[l].fn?e._events[l]=[e._events[l],s]:e._events[l].push(s):(e._events[l]=s,e._eventsCount++),e}function a(e,t){0==--e._eventsCount?e._events=new r:delete e._events[t]}function s(){this._events=new r,this._eventsCount=0}Object.create&&(r.prototype=Object.create(null),(new r).__proto__||(n=!1)),s.prototype.eventNames=function(){var e,r,i=[];if(0===this._eventsCount)return i;for(r in e=this._events)t.call(e,r)&&i.push(n?r.slice(1):r);return Object.getOwnPropertySymbols?i.concat(Object.getOwnPropertySymbols(e)):i},s.prototype.listeners=function(e){var t=n?n+e:e,r=this._events[t];if(!r)return[];if(r.fn)return[r.fn];for(var i=0,o=r.length,a=new Array(o);i<o;i++)a[i]=r[i].fn;return a},s.prototype.listenerCount=function(e){var t=n?n+e:e,r=this._events[t];return r?r.fn?1:r.length:0},s.prototype.emit=function(e,t,r,i,o,a){var s=n?n+e:e;if(!this._events[s])return!1;var l,u,c=this._events[s],f=arguments.length;if(c.fn){switch(c.once&&this.removeListener(e,c.fn,void 0,!0),f){case 1:return c.fn.call(c.context),!0;case 2:return c.fn.call(c.context,t),!0;case 3:return c.fn.call(c.context,t,r),!0;case 4:return c.fn.call(c.context,t,r,i),!0;case 5:return c.fn.call(c.context,t,r,i,o),!0;case 6:return c.fn.call(c.context,t,r,i,o,a),!0}for(u=1,l=new Array(f-1);u<f;u++)l[u-1]=arguments[u];c.fn.apply(c.context,l)}else{var d,h=c.length;for(u=0;u<h;u++)switch(c[u].once&&this.removeListener(e,c[u].fn,void 0,!0),f){case 1:c[u].fn.call(c[u].context);break;case 2:c[u].fn.call(c[u].context,t);break;case 3:c[u].fn.call(c[u].context,t,r);break;case 4:c[u].fn.call(c[u].context,t,r,i);break;default:if(!l)for(d=1,l=new Array(f-1);d<f;d++)l[d-1]=arguments[d];c[u].fn.apply(c[u].context,l)}}return!0},s.prototype.on=function(e,t,n){return o(this,e,t,n,!1)},s.prototype.once=function(e,t,n){return o(this,e,t,n,!0)},s.prototype.removeListener=function(e,t,r,i){var o=n?n+e:e;if(!this._events[o])return this;if(!t)return a(this,o),this;var s=this._events[o];if(s.fn)s.fn!==t||i&&!s.once||r&&s.context!==r||a(this,o);else{for(var l=0,u=[],c=s.length;l<c;l++)(s[l].fn!==t||i&&!s[l].once||r&&s[l].context!==r)&&u.push(s[l]);u.length?this._events[o]=1===u.length?u[0]:u:a(this,o)}return this},s.prototype.removeAllListeners=function(e){var t;return e?(t=n?n+e:e,this._events[t]&&a(this,t)):(this._events=new r,this._eventsCount=0),this},s.prototype.off=s.prototype.removeListener,s.prototype.addListener=s.prototype.on,s.prefixed=n,s.EventEmitter=s,e.exports=s}(gr);var vr=m(gr.exports);function yr(e,t){if(function(e){return!(e.audio||e.video||e.text||e.id3||e.initSegment)}(t.remuxResult))return!1;var n=[],r=t.remuxResult,i=r.audio,o=r.video;return i&&br(n,i),o&&br(n,o),e.postMessage({event:"transmuxComplete",data:t},n),!0}function br(e,t){t.data1&&e.push(t.data1.buffer),t.data2&&e.push(t.data2.buffer)}function Tr(e,t,n){t.reduce((function(t,n){return yr(e,n)||t}),!1)||e.postMessage({event:"transmuxComplete",data:t[0]}),e.postMessage({event:"flush",data:n})}function Sr(){var e=new self.Blob(["var exports={};var module={exports:exports};function define(f){f()};define.amd=true;("+t.toString()+")(true);"],{type:"text/javascript"}),n=self.URL.createObjectURL(e);return{worker:new self.Worker(n),objectURL:n}}void 0!==n&&n&&function(e){var t=new vr,n=function(t,n){e.postMessage({event:t,data:n})};t.on(S.FRAG_DECRYPTED,n),t.on(S.ERROR,n),e.addEventListener("message",(function(r){var i=r.data;switch(i.cmd){case"init":var o=JSON.parse(i.config);e.transmuxer=new fr(t,i.typeSupported,o,i.vendor,i.id),L(o.debug,i.id),function(){var e=function(e){P[e]=function(t){n("workerLog",{logType:e,message:t})}};for(var t in P)e(t)}(),n("init",null);break;case"configure":e.transmuxer.configure(i.config);break;case"demux":var a=e.transmuxer.push(i.data,i.decryptdata,i.chunkMeta,i.state);hr(a)?(e.transmuxer.async=!0,a.then((function(t){yr(e,t)})).catch((function(e){n(S.ERROR,{type:E.MEDIA_ERROR,details:w.FRAG_PARSING_ERROR,chunkMeta:i.chunkMeta,fatal:!1,error:e,err:e,reason:"transmuxer-worker push error"})}))):(e.transmuxer.async=!1,yr(e,a));break;case"flush":var s=i.chunkMeta,l=e.transmuxer.flush(s);hr(l)||e.transmuxer.async?(hr(l)||(l=Promise.resolve(l)),l.then((function(t){Tr(e,t,s)})).catch((function(e){n(S.ERROR,{type:E.MEDIA_ERROR,details:w.FRAG_PARSING_ERROR,chunkMeta:i.chunkMeta,fatal:!1,error:e,err:e,reason:"transmuxer-worker flush error"})}))):Tr(e,l,s)}}))}(self);var Er=Ae()||{isTypeSupported:function(){return!1}},wr=function(){function e(e,t,n,r){var i=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 o=e.config;this.hls=e,this.id=t,this.useWorker=!!o.enableWorker,this.onTransmuxComplete=n,this.onFlush=r;var a=function(e,t){(t=t||{}).frag=i.frag,t.id=i.id,e===S.ERROR&&(i.error=t.error),i.hls.trigger(e,t)};this.observer=new vr,this.observer.on(S.FRAG_DECRYPTED,a),this.observer.on(S.ERROR,a);var s={mp4:Er.isTypeSupported("video/mp4"),mpeg:Er.isTypeSupported("audio/mpeg"),mp3:Er.isTypeSupported('audio/mp4; codecs="mp3"')},l=navigator.vendor;if(this.useWorker&&"undefined"!=typeof Worker&&(o.workerPath,1))try{o.workerPath?(P.log("loading Web Worker "+o.workerPath+' for "'+t+'"'),this.workerContext=function(e){var t=new self.URL(e,self.location.href).href;return{worker:new self.Worker(t),scriptURL:t}}(o.workerPath)):(P.log('injecting Web Worker for "'+t+'"'),this.workerContext=Sr()),this.onwmsg=function(e){return i.onWorkerMessage(e)};var u=this.workerContext.worker;u.addEventListener("message",this.onwmsg),u.onerror=function(e){var n=new Error(e.message+" ("+e.filename+":"+e.lineno+")");o.enableWorker=!1,P.warn('Error in "'+t+'" Web Worker, fallback to inline'),i.hls.trigger(S.ERROR,{type:E.OTHER_ERROR,details:w.INTERNAL_EXCEPTION,fatal:!1,event:"demuxerWorker",error:n})},u.postMessage({cmd:"init",typeSupported:s,vendor:l,id:t,config:JSON.stringify(o)})}catch(e){P.warn('Error setting up "'+t+'" Web Worker, fallback to inline',e),this.resetWorker(),this.error=null,this.transmuxer=new fr(this.observer,s,o,l,t)}else this.transmuxer=new fr(this.observer,s,o,l,t)}var t=e.prototype;return t.resetWorker=function(){if(this.workerContext){var e=this.workerContext,t=e.worker,n=e.objectURL;n&&self.URL.revokeObjectURL(n),t.removeEventListener("message",this.onwmsg),t.onerror=null,t.terminate(),this.workerContext=null}},t.destroy=function(){if(this.workerContext)this.resetWorker(),this.onwmsg=void 0;else{var e=this.transmuxer;e&&(e.destroy(),this.transmuxer=null)}var t=this.observer;t&&t.removeAllListeners(),this.frag=null,this.observer=null,this.hls=null},t.push=function(e,t,n,r,i,o,a,s,l,u){var c,f,d=this;l.transmuxing.start=self.performance.now();var h=this.transmuxer,p=o?o.start:i.start,m=i.decryptdata,g=this.frag,v=!(g&&i.cc===g.cc),y=!(g&&l.level===g.level),b=g?l.sn-g.sn:-1,T=this.part?l.part-this.part.index:-1,S=0===b&&l.id>1&&l.id===(null==g?void 0:g.stats.chunkCount),E=!y&&(1===b||0===b&&(1===T||S&&T<=0)),w=self.performance.now();(y||b||0===i.stats.parsing.start)&&(i.stats.parsing.start=w),!o||!T&&E||(o.stats.parsing.start=w);var _=!(g&&(null==(c=i.initSegment)?void 0:c.url)===(null==(f=g.initSegment)?void 0:f.url)),A=new mr(v,E,s,y,p,_);if(!E||v||_){P.log("[transmuxer-interface, "+i.type+"]: Starting new transmux session for sn: "+l.sn+" p: "+l.part+" level: "+l.level+" id: "+l.id+"\n discontinuity: "+v+"\n trackSwitch: "+y+"\n contiguous: "+E+"\n accurateTimeOffset: "+s+"\n timeOffset: "+p+"\n initSegmentChange: "+_);var x=new pr(n,r,t,a,u);this.configureTransmuxer(x)}if(this.frag=i,this.part=o,this.workerContext)this.workerContext.worker.postMessage({cmd:"demux",data:e,decryptdata:m,chunkMeta:l,state:A},e instanceof ArrayBuffer?[e]:[]);else if(h){var k=h.push(e,m,l,A);hr(k)?(h.async=!0,k.then((function(e){d.handleTransmuxComplete(e)})).catch((function(e){d.transmuxerError(e,l,"transmuxer-interface push error")}))):(h.async=!1,this.handleTransmuxComplete(k))}},t.flush=function(e){var t=this;e.transmuxing.start=self.performance.now();var n=this.transmuxer;if(this.workerContext)this.workerContext.worker.postMessage({cmd:"flush",chunkMeta:e});else if(n){var r=n.flush(e);hr(r)||n.async?(hr(r)||(r=Promise.resolve(r)),r.then((function(n){t.handleFlushResult(n,e)})).catch((function(n){t.transmuxerError(n,e,"transmuxer-interface flush error")}))):this.handleFlushResult(r,e)}},t.transmuxerError=function(e,t,n){this.hls&&(this.error=e,this.hls.trigger(S.ERROR,{type:E.MEDIA_ERROR,details:w.FRAG_PARSING_ERROR,chunkMeta:t,fatal:!1,error:e,err:e,reason:n}))},t.handleFlushResult=function(e,t){var n=this;e.forEach((function(e){n.handleTransmuxComplete(e)})),this.onFlush(t)},t.onWorkerMessage=function(e){var t=e.data,n=this.hls;switch(t.event){case"init":var r,i=null==(r=this.workerContext)?void 0:r.objectURL;i&&self.URL.revokeObjectURL(i);break;case"transmuxComplete":this.handleTransmuxComplete(t.data);break;case"flush":this.onFlush(t.data);break;case"workerLog":P[t.data.logType]&&P[t.data.logType](t.data.message);break;default:t.data=t.data||{},t.data.frag=this.frag,t.data.id=this.id,n.trigger(t.event,t.data)}},t.configureTransmuxer=function(e){var t=this.transmuxer;this.workerContext?this.workerContext.worker.postMessage({cmd:"configure",config:e}):t&&t.configure(e)},t.handleTransmuxComplete=function(e){e.chunkMeta.transmuxing.end=self.performance.now(),this.onTransmuxComplete(e)},e}(),_r=function(){function e(e,t,n,r){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=e,this.media=t,this.fragmentTracker=n,this.hls=r}var t=e.prototype;return t.destroy=function(){this.media=null,this.hls=this.fragmentTracker=null},t.poll=function(e,t){var n=this.config,r=this.media,i=this.stalled;if(null!==r){var o=r.currentTime,a=r.seeking,s=this.seeking&&!a,l=!this.seeking&&a;if(this.seeking=a,o===e){if(l||s)this.stalled=null;else if(!(r.paused&&!a||r.ended||0===r.playbackRate)&&Zt.getBuffered(r).length){var u=Zt.bufferInfo(r,o,0),c=u.len>0,f=u.nextStart||0;if(c||f){if(a){var d=u.len>2,h=!f||t&&t.start<=o||f-o>2&&!this.fragmentTracker.getPartialFragment(o);if(d||h)return;this.moved=!1}if(!this.moved&&null!==this.stalled){var p,m=Math.max(f,u.start||0)-o,g=this.hls.levels?this.hls.levels[this.hls.currentLevel]:null,v=(null==g||null==(p=g.details)?void 0:p.live)?2*g.details.targetduration:2,y=this.fragmentTracker.getPartialFragment(o);if(m>0&&(m<=v||y))return void this._trySkipBufferHole(y)}var b=self.performance.now();if(null!==i){var T=b-i;if(a||!(T>=250)||(this._reportStall(u),this.media)){var S=Zt.bufferInfo(r,o,n.maxBufferHole);this._tryFixBufferStall(S,T)}}else this.stalled=b}}}else if(this.moved=!0,null!==i){if(this.stallReported){var E=self.performance.now()-i;P.warn("playback not stuck anymore @"+o+", after "+Math.round(E)+"ms"),this.stallReported=!1}this.stalled=null,this.nudgeRetry=0}}},t._tryFixBufferStall=function(e,t){var n=this.config,r=this.fragmentTracker,i=this.media;if(null!==i){var o=i.currentTime,a=r.getPartialFragment(o);if(a&&(this._trySkipBufferHole(a)||!this.media))return;(e.len>n.maxBufferHole||e.nextStart&&e.nextStart-o<n.maxBufferHole)&&t>1e3*n.highBufferWatchdogPeriod&&(P.warn("Trying to nudge playhead over buffer-hole"),this.stalled=null,this._tryNudgeBuffer())}},t._reportStall=function(e){var t=this.hls,n=this.media;if(!this.stallReported&&n){this.stallReported=!0;var r=new Error("Playback stalling at @"+n.currentTime+" due to low buffer ("+JSON.stringify(e)+")");P.warn(r.message),t.trigger(S.ERROR,{type:E.MEDIA_ERROR,details:w.BUFFER_STALLED_ERROR,fatal:!1,error:r,buffer:e.len})}},t._trySkipBufferHole=function(e){var t=this.config,n=this.hls,r=this.media;if(null===r)return 0;var i=r.currentTime,o=Zt.bufferInfo(r,i,0),a=i<o.start?o.start:o.nextStart;if(a){var s=o.len<=t.maxBufferHole,l=o.len>0&&o.len<1&&r.readyState<3,u=a-i;if(u>0&&(s||l)){if(u>t.maxBufferHole){var c=this.fragmentTracker,f=!1;if(0===i){var d=c.getAppendedFrag(0,Ke);d&&a<d.end&&(f=!0)}if(!f){var h=e||c.getAppendedFrag(i,Ke);if(h){for(var p=!1,m=h.end;m<a;){var g=c.getPartialFragment(m);if(!g){p=!0;break}m+=g.duration}if(p)return 0}}}var v=Math.max(a+.05,i+.1);if(P.warn("skipping hole, adjusting currentTime from "+i+" to "+v),this.moved=!0,this.stalled=null,r.currentTime=v,e&&!e.gap){var y=new Error("fragment loaded with buffer holes, seeking from "+i+" to "+v);n.trigger(S.ERROR,{type:E.MEDIA_ERROR,details:w.BUFFER_SEEK_OVER_HOLE,fatal:!1,error:y,reason:y.message,frag:e})}return v}}return 0},t._tryNudgeBuffer=function(){var e=this.config,t=this.hls,n=this.media,r=this.nudgeRetry;if(null!==n){var i=n.currentTime;if(this.nudgeRetry++,r<e.nudgeMaxRetry){var o=i+(r+1)*e.nudgeOffset,a=new Error("Nudging 'currentTime' from "+i+" to "+o);P.warn(a.message),n.currentTime=o,t.trigger(S.ERROR,{type:E.MEDIA_ERROR,details:w.BUFFER_NUDGE_ON_STALL,error:a,fatal:!1})}else{var s=new Error("Playhead still not moving while enough data buffered @"+i+" after "+e.nudgeMaxRetry+" nudges");P.error(s.message),t.trigger(S.ERROR,{type:E.MEDIA_ERROR,details:w.BUFFER_STALLED_ERROR,error:s,fatal:!0})}}},e}(),Ar=function(e){function t(t,n,r){var i;return(i=e.call(this,t,n,r,"[stream-controller]",Ke)||this).audioCodecSwap=!1,i.gapController=null,i.level=-1,i._forceStartLoad=!1,i.altAudio=!1,i.audioOnly=!1,i.fragPlaying=null,i.onvplaying=null,i.onvseeked=null,i.fragLastKbps=0,i.couldBacktrack=!1,i.backtrackFragment=null,i.audioCodecSwitch=!1,i.videoBuffer=null,i._registerListeners(),i}l(t,e);var n=t.prototype;return n._registerListeners=function(){var e=this.hls;e.on(S.MEDIA_ATTACHED,this.onMediaAttached,this),e.on(S.MEDIA_DETACHING,this.onMediaDetaching,this),e.on(S.MANIFEST_LOADING,this.onManifestLoading,this),e.on(S.MANIFEST_PARSED,this.onManifestParsed,this),e.on(S.LEVEL_LOADING,this.onLevelLoading,this),e.on(S.LEVEL_LOADED,this.onLevelLoaded,this),e.on(S.FRAG_LOAD_EMERGENCY_ABORTED,this.onFragLoadEmergencyAborted,this),e.on(S.ERROR,this.onError,this),e.on(S.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),e.on(S.AUDIO_TRACK_SWITCHED,this.onAudioTrackSwitched,this),e.on(S.BUFFER_CREATED,this.onBufferCreated,this),e.on(S.BUFFER_FLUSHED,this.onBufferFlushed,this),e.on(S.LEVELS_UPDATED,this.onLevelsUpdated,this),e.on(S.FRAG_BUFFERED,this.onFragBuffered,this)},n._unregisterListeners=function(){var e=this.hls;e.off(S.MEDIA_ATTACHED,this.onMediaAttached,this),e.off(S.MEDIA_DETACHING,this.onMediaDetaching,this),e.off(S.MANIFEST_LOADING,this.onManifestLoading,this),e.off(S.MANIFEST_PARSED,this.onManifestParsed,this),e.off(S.LEVEL_LOADED,this.onLevelLoaded,this),e.off(S.FRAG_LOAD_EMERGENCY_ABORTED,this.onFragLoadEmergencyAborted,this),e.off(S.ERROR,this.onError,this),e.off(S.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),e.off(S.AUDIO_TRACK_SWITCHED,this.onAudioTrackSwitched,this),e.off(S.BUFFER_CREATED,this.onBufferCreated,this),e.off(S.BUFFER_FLUSHED,this.onBufferFlushed,this),e.off(S.LEVELS_UPDATED,this.onLevelsUpdated,this),e.off(S.FRAG_BUFFERED,this.onFragBuffered,this)},n.onHandlerDestroying=function(){this._unregisterListeners(),this.onMediaDetaching()},n.startLoad=function(e){if(this.levels){var t=this.lastCurrentTime,n=this.hls;if(this.stopLoad(),this.setInterval(100),this.level=-1,!this.startFragRequested){var r=n.startLevel;-1===r&&(n.config.testBandwidth&&this.levels.length>1?(r=0,this.bitrateTest=!0):r=n.nextAutoLevel),this.level=n.nextLoadLevel=r,this.loadedmetadata=!1}t>0&&-1===e&&(this.log("Override startPosition with lastCurrentTime @"+t.toFixed(3)),e=t),this.state=nn,this.nextLoadPosition=this.startPosition=this.lastCurrentTime=e,this.tick()}else this._forceStartLoad=!0,this.state=tn},n.stopLoad=function(){this._forceStartLoad=!1,e.prototype.stopLoad.call(this)},n.doTick=function(){switch(this.state){case fn:var e,t=this.levels,n=this.level,r=null==t||null==(e=t[n])?void 0:e.details;if(r&&(!r.live||this.levelLastLoaded===this.level)){if(this.waitForCdnTuneIn(r))break;this.state=nn;break}if(this.hls.nextLoadLevel!==this.level){this.state=nn;break}break;case an:var i,o=self.performance.now(),a=this.retryDate;(!a||o>=a||null!=(i=this.media)&&i.seeking)&&(this.resetStartWhenNotLoaded(this.level),this.state=nn)}this.state===nn&&this.doTickIdle(),this.onTickEnd()},n.onTickEnd=function(){e.prototype.onTickEnd.call(this),this.checkBuffer(),this.checkFragmentChanged()},n.doTickIdle=function(){var e=this.hls,t=this.levelLastLoaded,n=this.levels,r=this.media,i=e.config,o=e.nextLoadLevel;if(null!==t&&(r||!this.startFragRequested&&i.startFragPrefetch)&&(!this.altAudio||!this.audioOnly)&&null!=n&&n[o]){var a=n[o],s=this.getMainFwdBufferInfo();if(null!==s){var l=this.getLevelDetails();if(l&&this._streamEnded(s,l)){var u={};return this.altAudio&&(u.type="video"),this.hls.trigger(S.BUFFER_EOS,u),void(this.state=un)}e.loadLevel!==o&&-1===e.manualLevel&&this.log("Adapting to level "+o+" from level "+this.level),this.level=e.nextLoadLevel=o;var c=a.details;if(!c||this.state===fn||c.live&&this.levelLastLoaded!==o)return this.level=o,void(this.state=fn);var f=s.len,d=this.getMaxBufferLength(a.maxBitrate);if(!(f>=d)){this.backtrackFragment&&this.backtrackFragment.start>s.end&&(this.backtrackFragment=null);var h=this.backtrackFragment?this.backtrackFragment.start:s.end,p=this.getNextFragment(h,c);if(this.couldBacktrack&&!this.fragPrevious&&p&&"initSegment"!==p.sn&&this.fragmentTracker.getState(p)!==Dt){var m,g=(null!=(m=this.backtrackFragment)?m:p).sn-c.startSN,v=c.fragments[g-1];v&&p.cc===v.cc&&(p=v,this.fragmentTracker.removeFragment(v))}else this.backtrackFragment&&s.len&&(this.backtrackFragment=null);if(p&&this.isLoopLoading(p,h)){if(!p.gap){var y=this.audioOnly&&!this.altAudio?F:B,b=(y===B?this.videoBuffer:this.mediaBuffer)||this.media;b&&this.afterBufferFlushed(b,y,Ke)}p=this.getNextFragmentLoopLoading(p,c,s,Ke,d)}p&&(!p.initSegment||p.initSegment.data||this.bitrateTest||(p=p.initSegment),this.loadFragment(p,a,h))}}}},n.loadFragment=function(t,n,r){var i=this.fragmentTracker.getState(t);this.fragCurrent=t,i===Rt||i===It?"initSegment"===t.sn?this._loadInitSegment(t,n):this.bitrateTest?(this.log("Fragment "+t.sn+" of level "+t.level+" is being downloaded to test bitrate and will not be buffered"),this._loadBitrateTestFrag(t,n)):(this.startFragRequested=!0,e.prototype.loadFragment.call(this,t,n,r)):this.clearTrackerIfNeeded(t)},n.getBufferedFrag=function(e){return this.fragmentTracker.getBufferedFrag(e,Ke)},n.followingBufferedFrag=function(e){return e?this.getBufferedFrag(e.end+.5):null},n.immediateLevelSwitch=function(){this.abortCurrentFrag(),this.flushMainBuffer(0,Number.POSITIVE_INFINITY)},n.nextLevelSwitch=function(){var e=this.levels,t=this.media;if(null!=t&&t.readyState){var n,r=this.getAppendedFrag(t.currentTime);r&&r.start>1&&this.flushMainBuffer(0,r.start-1);var i=this.getLevelDetails();if(null!=i&&i.live){var o=this.getMainFwdBufferInfo();if(!o||o.len<2*i.targetduration)return}if(!t.paused&&e){var a=e[this.hls.nextLoadLevel],s=this.fragLastKbps;n=s&&this.fragCurrent?this.fragCurrent.duration*a.maxBitrate/(1e3*s)+1:0}else n=0;var l=this.getBufferedFrag(t.currentTime+n);if(l){var u=this.followingBufferedFrag(l);if(u){this.abortCurrentFrag();var c=u.maxStartPTS?u.maxStartPTS:u.start,f=u.duration,d=Math.max(l.end,c+Math.min(Math.max(f-this.config.maxFragLookUpTolerance,.5*f),.75*f));this.flushMainBuffer(d,Number.POSITIVE_INFINITY)}}}},n.abortCurrentFrag=function(){var e=this.fragCurrent;switch(this.fragCurrent=null,this.backtrackFragment=null,e&&(e.abortRequests(),this.fragmentTracker.removeFragment(e)),this.state){case rn:case on:case an:case sn:case ln:this.state=nn}this.nextLoadPosition=this.getLoadPosition()},n.flushMainBuffer=function(t,n){e.prototype.flushMainBuffer.call(this,t,n,this.altAudio?"video":null)},n.onMediaAttached=function(t,n){e.prototype.onMediaAttached.call(this,t,n);var r=n.media;this.onvplaying=this.onMediaPlaying.bind(this),this.onvseeked=this.onMediaSeeked.bind(this),r.addEventListener("playing",this.onvplaying),r.addEventListener("seeked",this.onvseeked),this.gapController=new _r(this.config,r,this.fragmentTracker,this.hls)},n.onMediaDetaching=function(){var t=this.media;t&&this.onvplaying&&this.onvseeked&&(t.removeEventListener("playing",this.onvplaying),t.removeEventListener("seeked",this.onvseeked),this.onvplaying=this.onvseeked=null,this.videoBuffer=null),this.fragPlaying=null,this.gapController&&(this.gapController.destroy(),this.gapController=null),e.prototype.onMediaDetaching.call(this)},n.onMediaPlaying=function(){this.tick()},n.onMediaSeeked=function(){var e=this.media,t=e?e.currentTime:null;y(t)&&this.log("Media seeked to "+t.toFixed(3));var n=this.getMainFwdBufferInfo();null!==n&&0!==n.len?this.tick():this.warn('Main forward buffer length on "seeked" event '+(n?n.len:"empty")+")")},n.onManifestLoading=function(){this.log("Trigger BUFFER_RESET"),this.hls.trigger(S.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},n.onManifestParsed=function(e,t){var n,r=!1,i=!1;t.levels.forEach((function(e){(n=e.audioCodec)&&(-1!==n.indexOf("mp4a.40.2")&&(r=!0),-1!==n.indexOf("mp4a.40.5")&&(i=!0))})),this.audioCodecSwitch=r&&i&&!function(){var e,t=hn();return"function"==typeof(null==t||null==(e=t.prototype)?void 0:e.changeType)}(),this.audioCodecSwitch&&this.log("Both AAC/HE-AAC audio found in levels; declaring level codec as HE-AAC"),this.levels=t.levels,this.startFragRequested=!1},n.onLevelLoading=function(e,t){var n=this.levels;if(n&&this.state===nn){var r=n[t.level];(!r.details||r.details.live&&this.levelLastLoaded!==t.level||this.waitForCdnTuneIn(r.details))&&(this.state=fn)}},n.onLevelLoaded=function(e,t){var n,r=this.levels,i=t.level,o=t.details,a=o.totalduration;if(r){this.log("Level "+i+" loaded ["+o.startSN+","+o.endSN+"]"+(o.lastPartSn?"[part-"+o.lastPartSn+"-"+o.lastPartIndex+"]":"")+", cc ["+o.startCC+", "+o.endCC+"] duration:"+a);var s=r[i],l=this.fragCurrent;!l||this.state!==on&&this.state!==an||l.level===t.level&&l.urlId===s.urlId||!l.loader||this.abortCurrentFrag();var u=0;if(o.live||null!=(n=s.details)&&n.live){if(this.checkLiveUpdate(o),o.deltaUpdateFailed)return;u=this.alignPlaylists(o,s.details)}if(s.details=o,this.levelLastLoaded=i,this.hls.trigger(S.LEVEL_UPDATED,{details:o,level:i}),this.state===fn){if(this.waitForCdnTuneIn(o))return;this.state=nn}this.startFragRequested?o.live&&this.synchronizeToLiveEdge(o):this.setStartPosition(o,u),this.tick()}else this.warn("Levels were reset while loading level "+i)},n._handleFragmentLoadProgress=function(e){var t,n=e.frag,r=e.part,i=e.payload,o=this.levels;if(o){var a=o[n.level],s=a.details;if(!s)return this.warn("Dropping fragment "+n.sn+" of level "+n.level+" after level details were reset"),void this.fragmentTracker.removeFragment(n);var l=a.videoCodec,u=s.PTSKnown||!s.live,c=null==(t=n.initSegment)?void 0:t.data,f=this._getAudioCodec(a),d=this.transmuxer=this.transmuxer||new wr(this.hls,Ke,this._handleTransmuxComplete.bind(this),this._handleTransmuxerFlush.bind(this)),h=r?r.index:-1,p=-1!==h,m=new Xt(n.level,n.sn,n.stats.chunkCount,i.byteLength,h,p),g=this.initPTS[n.cc];d.push(i,c,f,l,n,r,s.totalduration,u,m,g)}else this.warn("Levels were reset while fragment load was in progress. Fragment "+n.sn+" of level "+n.level+" will not be buffered")},n.onAudioTrackSwitching=function(e,t){var n=this.altAudio;if(!t.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 r=this.fragCurrent;r&&(this.log("Switching to main audio track, cancel main fragment load"),r.abortRequests(),this.fragmentTracker.removeFragment(r)),this.resetTransmuxer(),this.resetLoadingState()}else this.audioOnly&&this.resetTransmuxer();var i=this.hls;n&&(i.trigger(S.BUFFER_FLUSHING,{startOffset:0,endOffset:Number.POSITIVE_INFINITY,type:null}),this.fragmentTracker.removeAllFragments()),i.trigger(S.AUDIO_TRACK_SWITCHED,t)}},n.onAudioTrackSwitched=function(e,t){var n=t.id,r=!!this.hls.audioTracks[n].url;if(r){var i=this.videoBuffer;i&&this.mediaBuffer!==i&&(this.log("Switching on alternate audio, use video.buffered to schedule main fragment loading"),this.mediaBuffer=i)}this.altAudio=r,this.tick()},n.onBufferCreated=function(e,t){var n,r,i=t.tracks,o=!1;for(var a in i){var s=i[a];if("main"===s.id){if(r=a,n=s,"video"===a){var l=i[a];l&&(this.videoBuffer=l.buffer)}}else o=!0}o&&n?(this.log("Alternate track found, use "+r+".buffered to schedule main fragment loading"),this.mediaBuffer=n.buffer):this.mediaBuffer=this.media},n.onFragBuffered=function(e,t){var n=t.frag,r=t.part;if(!n||n.type===Ke){if(this.fragContextChanged(n))return this.warn("Fragment "+n.sn+(r?" p: "+r.index:"")+" of level "+n.level+" finished buffering, but was aborted. state: "+this.state),void(this.state===ln&&(this.state=nn));var i=r?r.stats:n.stats;this.fragLastKbps=Math.round(8*i.total/(i.buffering.end-i.loading.first)),"initSegment"!==n.sn&&(this.fragPrevious=n),this.fragBufferedComplete(n,r)}},n.onError=function(e,t){var n;if(t.fatal)this.state=cn;else switch(t.details){case w.FRAG_GAP:case w.FRAG_PARSING_ERROR:case w.FRAG_DECRYPT_ERROR:case w.FRAG_LOAD_ERROR:case w.FRAG_LOAD_TIMEOUT:case w.KEY_LOAD_ERROR:case w.KEY_LOAD_TIMEOUT:this.onFragmentOrKeyLoadError(Ke,t);break;case w.LEVEL_LOAD_ERROR:case w.LEVEL_LOAD_TIMEOUT:case w.LEVEL_PARSING_ERROR:t.levelRetry||this.state!==fn||(null==(n=t.context)?void 0:n.type)!==je||(this.state=nn);break;case w.BUFFER_FULL_ERROR:if(!t.parent||"main"!==t.parent)return;this.reduceLengthAndFlushBuffer(t)&&this.flushMainBuffer(0,Number.POSITIVE_INFINITY);break;case w.INTERNAL_EXCEPTION:this.recoverWorkerError(t)}},n.checkBuffer=function(){var e=this.media,t=this.gapController;if(e&&t&&e.readyState){if(this.loadedmetadata||!Zt.getBuffered(e).length){var n=this.state!==nn?this.fragCurrent:null;t.poll(this.lastCurrentTime,n)}this.lastCurrentTime=e.currentTime}},n.onFragLoadEmergencyAborted=function(){this.state=nn,this.loadedmetadata||(this.startFragRequested=!1,this.nextLoadPosition=this.startPosition),this.tickImmediate()},n.onBufferFlushed=function(e,t){var n=t.type;if(n!==F||this.audioOnly&&!this.altAudio){var r=(n===B?this.videoBuffer:this.mediaBuffer)||this.media;this.afterBufferFlushed(r,n,Ke)}},n.onLevelsUpdated=function(e,t){this.levels=t.levels},n.swapAudioCodec=function(){this.audioCodecSwap=!this.audioCodecSwap},n.seekToStartPos=function(){var e=this.media;if(e){var t=e.currentTime,n=this.startPosition;if(n>=0&&t<n){if(e.seeking)return void this.log("could not seek to "+n+", already seeking at "+t);var r=Zt.getBuffered(e),i=(r.length?r.start(0):0)-n;i>0&&(i<this.config.maxBufferHole||i<this.config.maxFragLookUpTolerance)&&(this.log("adjusting start position by "+i+" to match buffer start"),n+=i,this.startPosition=n),this.log("seek to target start position "+n+" from current time "+t),e.currentTime=n}}},n._getAudioCodec=function(e){var t=this.config.defaultAudioCodec||e.audioCodec;return this.audioCodecSwap&&t&&(this.log("Swapping audio codec"),t=-1!==t.indexOf("mp4a.40.5")?"mp4a.40.2":"mp4a.40.5"),t},n._loadBitrateTestFrag=function(e,t){var n=this;e.bitrateTest=!0,this._doFragLoad(e,t).then((function(r){var i=n.hls;if(r&&!n.fragContextChanged(e)){t.fragmentError=0,n.state=nn,n.startFragRequested=!1,n.bitrateTest=!1;var o=e.stats;o.parsing.start=o.parsing.end=o.buffering.start=o.buffering.end=self.performance.now(),i.trigger(S.FRAG_LOADED,r),e.bitrateTest=!1}}))},n._handleTransmuxComplete=function(e){var t,n="main",r=this.hls,i=e.remuxResult,o=e.chunkMeta,a=this.getCurrentContext(o);if(a){var s=a.frag,l=a.part,u=a.level,c=i.video,f=i.text,d=i.id3,h=i.initSegment,p=u.details,m=this.altAudio?void 0:i.audio;if(this.fragContextChanged(s))this.fragmentTracker.removeFragment(s);else{if(this.state=sn,h){if(null!=h&&h.tracks){var g=s.initSegment||s;this._bufferInitSegment(u,h.tracks,g,o),r.trigger(S.FRAG_PARSING_INIT_SEGMENT,{frag:g,id:n,tracks:h.tracks})}var v=h.initPTS,b=h.timescale;y(v)&&(this.initPTS[s.cc]={baseTime:v,timescale:b},r.trigger(S.INIT_PTS_FOUND,{frag:s,id:n,initPTS:v,timescale:b}))}if(c&&p&&"initSegment"!==s.sn){var T=p.fragments[s.sn-1-p.startSN],E=s.sn===p.startSN,w=!T||s.cc>T.cc;if(!1!==i.independent){var _=c.startPTS,A=c.endPTS,x=c.startDTS,k=c.endDTS;if(l)l.elementaryStreams[c.type]={startPTS:_,endPTS:A,startDTS:x,endDTS:k};else if(c.firstKeyFrame&&c.independent&&1===o.id&&!w&&(this.couldBacktrack=!0),c.dropped&&c.independent){var L=this.getMainFwdBufferInfo(),P=(L?L.end:this.getLoadPosition())+this.config.maxBufferHole,C=c.firstKeyFramePTS?c.firstKeyFramePTS:_;if(!E&&P<C-this.config.maxBufferHole&&!w)return void this.backtrack(s);w&&(s.gap=!0),s.setElementaryStreamInfo(c.type,s.start,A,s.start,k,!0)}s.setElementaryStreamInfo(c.type,_,A,x,k),this.backtrackFragment&&(this.backtrackFragment=s),this.bufferFragmentData(c,s,l,o,E||w)}else{if(!E&&!w)return void this.backtrack(s);s.gap=!0}}if(m){var M=m.startPTS,R=m.endPTS,O=m.startDTS,I=m.endDTS;l&&(l.elementaryStreams.audio={startPTS:M,endPTS:R,startDTS:O,endDTS:I}),s.setElementaryStreamInfo(F,M,R,O,I),this.bufferFragmentData(m,s,l,o)}if(p&&null!=d&&null!=(t=d.samples)&&t.length){var D={id:n,frag:s,details:p,samples:d.samples};r.trigger(S.FRAG_PARSING_METADATA,D)}if(p&&f){var N={id:n,frag:s,details:p,samples:f.samples};r.trigger(S.FRAG_PARSING_USERDATA,N)}}}else this.resetWhenMissingContext(o)},n._bufferInitSegment=function(e,t,n,r){var i=this;if(this.state===sn){this.audioOnly=!!t.audio&&!t.video,this.altAudio&&!this.audioOnly&&delete t.audio;var o=t.audio,a=t.video,s=t.audiovideo;if(o){var l=e.audioCodec,u=navigator.userAgent.toLowerCase();this.audioCodecSwitch&&(l&&(l=-1!==l.indexOf("mp4a.40.5")?"mp4a.40.2":"mp4a.40.5"),1!==o.metadata.channelCount&&-1===u.indexOf("firefox")&&(l="mp4a.40.5")),-1!==u.indexOf("android")&&"audio/mpeg"!==o.container&&(l="mp4a.40.2",this.log("Android: force audio codec to "+l)),e.audioCodec&&e.audioCodec!==l&&this.log('Swapping manifest audio codec "'+e.audioCodec+'" for "'+l+'"'),o.levelCodec=l,o.id="main",this.log("Init audio buffer, container:"+o.container+", codecs[selected/level/parsed]=["+(l||"")+"/"+(e.audioCodec||"")+"/"+o.codec+"]")}a&&(a.levelCodec=e.videoCodec,a.id="main",this.log("Init video buffer, container:"+a.container+", codecs[level/parsed]=["+(e.videoCodec||"")+"/"+a.codec+"]")),s&&this.log("Init audiovideo buffer, container:"+s.container+", codecs[level/parsed]=["+(e.attrs.CODECS||"")+"/"+s.codec+"]"),this.hls.trigger(S.BUFFER_CODECS,t),Object.keys(t).forEach((function(e){var o=t[e].initSegment;null!=o&&o.byteLength&&i.hls.trigger(S.BUFFER_APPENDING,{type:e,data:o,frag:n,part:null,chunkMeta:r,parent:n.type})})),this.tick()}},n.getMainFwdBufferInfo=function(){return this.getFwdBufferInfo(this.mediaBuffer?this.mediaBuffer:this.media,Ke)},n.backtrack=function(e){this.couldBacktrack=!0,this.backtrackFragment=e,this.resetTransmuxer(),this.flushBufferGap(e),this.fragmentTracker.removeFragment(e),this.fragPrevious=null,this.nextLoadPosition=e.start,this.state=nn},n.checkFragmentChanged=function(){var e=this.media,t=null;if(e&&e.readyState>1&&!1===e.seeking){var n=e.currentTime;if(Zt.isBuffered(e,n)?t=this.getAppendedFrag(n):Zt.isBuffered(e,n+.1)&&(t=this.getAppendedFrag(n+.1)),t){this.backtrackFragment=null;var r=this.fragPlaying,i=t.level;r&&t.sn===r.sn&&r.level===i&&t.urlId===r.urlId||(this.fragPlaying=t,this.hls.trigger(S.FRAG_CHANGED,{frag:t}),r&&r.level===i||this.hls.trigger(S.LEVEL_SWITCHED,{level:i}))}}},o(t,[{key:"nextLevel",get:function(){var e=this.nextBufferedFrag;return e?e.level:-1}},{key:"currentFrag",get:function(){var e=this.media;return e?this.fragPlaying||this.getAppendedFrag(e.currentTime):null}},{key:"currentProgramDateTime",get:function(){var e=this.media;if(e){var t=e.currentTime,n=this.currentFrag;if(n&&y(t)&&y(n.programDateTime)){var r=n.programDateTime+1e3*(t-n.start);return new Date(r)}}return null}},{key:"currentLevel",get:function(){var e=this.currentFrag;return e?e.level:-1}},{key:"nextBufferedFrag",get:function(){var e=this.currentFrag;return e?this.followingBufferedFrag(e):null}},{key:"forceStartLoad",get:function(){return this._forceStartLoad}}]),t}(dn),xr=function(){function e(e,t,n){void 0===t&&(t=0),void 0===n&&(n=0),this.halfLife=void 0,this.alpha_=void 0,this.estimate_=void 0,this.totalWeight_=void 0,this.halfLife=e,this.alpha_=e?Math.exp(Math.log(.5)/e):0,this.estimate_=t,this.totalWeight_=n}var t=e.prototype;return t.sample=function(e,t){var n=Math.pow(this.alpha_,e);this.estimate_=t*(1-n)+n*this.estimate_,this.totalWeight_+=e},t.getTotalWeight=function(){return this.totalWeight_},t.getEstimate=function(){if(this.alpha_){var e=1-Math.pow(this.alpha_,this.totalWeight_);if(e)return this.estimate_/e}return this.estimate_},e}(),kr=function(){function e(e,t,n,r){void 0===r&&(r=100),this.defaultEstimate_=void 0,this.minWeight_=void 0,this.minDelayMs_=void 0,this.slow_=void 0,this.fast_=void 0,this.defaultTTFB_=void 0,this.ttfb_=void 0,this.defaultEstimate_=n,this.minWeight_=.001,this.minDelayMs_=50,this.slow_=new xr(e),this.fast_=new xr(t),this.defaultTTFB_=r,this.ttfb_=new xr(e)}var t=e.prototype;return t.update=function(e,t){var n=this.slow_,r=this.fast_,i=this.ttfb_;n.halfLife!==e&&(this.slow_=new xr(e,n.getEstimate(),n.getTotalWeight())),r.halfLife!==t&&(this.fast_=new xr(t,r.getEstimate(),r.getTotalWeight())),i.halfLife!==e&&(this.ttfb_=new xr(e,i.getEstimate(),i.getTotalWeight()))},t.sample=function(e,t){var n=(e=Math.max(e,this.minDelayMs_))/1e3,r=8*t/n;this.fast_.sample(n,r),this.slow_.sample(n,r)},t.sampleTTFB=function(e){var t=e/1e3,n=Math.sqrt(2)*Math.exp(-Math.pow(t,2)/2);this.ttfb_.sample(n,Math.max(e,5))},t.canEstimate=function(){return this.fast_.getTotalWeight()>=this.minWeight_},t.getEstimate=function(){return this.canEstimate()?Math.min(this.fast_.getEstimate(),this.slow_.getEstimate()):this.defaultEstimate_},t.getEstimateTTFB=function(){return this.ttfb_.getTotalWeight()>=this.minWeight_?this.ttfb_.getEstimate():this.defaultTTFB_},t.destroy=function(){},e}(),Lr=function(){function e(e){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=e;var t=e.config;this.bwEstimator=new kr(t.abrEwmaSlowVoD,t.abrEwmaFastVoD,t.abrEwmaDefaultEstimate),this.registerListeners()}var t=e.prototype;return t.registerListeners=function(){var e=this.hls;e.on(S.FRAG_LOADING,this.onFragLoading,this),e.on(S.FRAG_LOADED,this.onFragLoaded,this),e.on(S.FRAG_BUFFERED,this.onFragBuffered,this),e.on(S.LEVEL_SWITCHING,this.onLevelSwitching,this),e.on(S.LEVEL_LOADED,this.onLevelLoaded,this)},t.unregisterListeners=function(){var e=this.hls;e.off(S.FRAG_LOADING,this.onFragLoading,this),e.off(S.FRAG_LOADED,this.onFragLoaded,this),e.off(S.FRAG_BUFFERED,this.onFragBuffered,this),e.off(S.LEVEL_SWITCHING,this.onLevelSwitching,this),e.off(S.LEVEL_LOADED,this.onLevelLoaded,this)},t.destroy=function(){this.unregisterListeners(),this.clearTimer(),this.hls=this.onCheck=null,this.fragCurrent=this.partCurrent=null},t.onFragLoading=function(e,t){var n,r=t.frag;this.ignoreFragment(r)||(this.fragCurrent=r,this.partCurrent=null!=(n=t.part)?n:null,this.clearTimer(),this.timer=self.setInterval(this.onCheck,100))},t.onLevelSwitching=function(e,t){this.clearTimer()},t.getTimeToLoadFrag=function(e,t,n,r){return e+n/t+(r?this.lastLevelLoadSec:0)},t.onLevelLoaded=function(e,t){var n=this.hls.config,r=t.stats,i=r.total,o=r.bwEstimate;y(i)&&y(o)&&(this.lastLevelLoadSec=8*i/o),t.details.live?this.bwEstimator.update(n.abrEwmaSlowLive,n.abrEwmaFastLive):this.bwEstimator.update(n.abrEwmaSlowVoD,n.abrEwmaFastVoD)},t._abandonRulesCheck=function(){var e=this.fragCurrent,t=this.partCurrent,n=this.hls,r=n.autoLevelEnabled,i=n.media;if(e&&i){var o=performance.now(),a=t?t.stats:e.stats,s=t?t.duration:e.duration,l=o-a.loading.start;if(a.aborted||a.loaded&&a.loaded===a.total||0===e.level)return this.clearTimer(),void(this._nextAutoLevel=-1);if(r&&!i.paused&&i.playbackRate&&i.readyState){var u=n.mainForwardBufferInfo;if(null!==u){var c=this.bwEstimator.getEstimateTTFB(),f=Math.abs(i.playbackRate);if(!(l<=Math.max(c,s/(2*f)*1e3))){var d=u.len/f;if(!(d>=2*s/f)){var h=a.loading.first?a.loading.first-a.loading.start:-1,p=a.loaded&&h>-1,m=this.bwEstimator.getEstimate(),g=n.levels,v=n.minAutoLevel,b=g[e.level],T=a.total||Math.max(a.loaded,Math.round(s*b.maxBitrate/8)),E=l-h;E<1&&p&&(E=Math.min(l,8*a.loaded/m));var w=p?1e3*a.loaded/E:0,_=w?(T-a.loaded)/w:8*T/m+c/1e3;if(!(_<=d)){var A,x=w?8*w:m,k=Number.POSITIVE_INFINITY;for(A=e.level-1;A>v;A--){var L=g[A].maxBitrate;if((k=this.getTimeToLoadFrag(c/1e3,x,s*L,!g[A].details))<d)break}k>=_||k>10*s||(n.nextLoadLevel=A,p?this.bwEstimator.sample(l-Math.min(c,h),a.loaded):this.bwEstimator.sampleTTFB(l),this.clearTimer(),P.warn("[abr] Fragment "+e.sn+(t?" part "+t.index:"")+" of level "+e.level+" is loading too slowly;\n Time to underbuffer: "+d.toFixed(3)+" s\n Estimated load time for current fragment: "+_.toFixed(3)+" s\n Estimated load time for down switch fragment: "+k.toFixed(3)+" s\n TTFB estimate: "+h+"\n Current BW estimate: "+(y(m)?(m/1024).toFixed(3):"Unknown")+" Kb/s\n New BW estimate: "+(this.bwEstimator.getEstimate()/1024).toFixed(3)+" Kb/s\n Aborting and switching to level "+A),e.loader&&(this.fragCurrent=this.partCurrent=null,e.abortRequests()),n.trigger(S.FRAG_LOAD_EMERGENCY_ABORTED,{frag:e,part:t,stats:a}))}}}}}}},t.onFragLoaded=function(e,t){var n=t.frag,r=t.part,i=r?r.stats:n.stats;if(n.type===Ke&&this.bwEstimator.sampleTTFB(i.loading.first-i.loading.start),!this.ignoreFragment(n)){if(this.clearTimer(),this.lastLoadedFragLevel=n.level,this._nextAutoLevel=-1,this.hls.config.abrMaxWithRealBitrate){var o=r?r.duration:n.duration,a=this.hls.levels[n.level],s=(a.loaded?a.loaded.bytes:0)+i.loaded,l=(a.loaded?a.loaded.duration:0)+o;a.loaded={bytes:s,duration:l},a.realBitrate=Math.round(8*s/l)}if(n.bitrateTest){var u={stats:i,frag:n,part:r,id:n.type};this.onFragBuffered(S.FRAG_BUFFERED,u),n.bitrateTest=!1}}},t.onFragBuffered=function(e,t){var n=t.frag,r=t.part,i=null!=r&&r.stats.loaded?r.stats:n.stats;if(!i.aborted&&!this.ignoreFragment(n)){var o=i.parsing.end-i.loading.start-Math.min(i.loading.first-i.loading.start,this.bwEstimator.getEstimateTTFB());this.bwEstimator.sample(o,i.loaded),i.bwEstimate=this.bwEstimator.getEstimate(),n.bitrateTest?this.bitrateTestDelay=o/1e3:this.bitrateTestDelay=0}},t.ignoreFragment=function(e){return e.type!==Ke||"initSegment"===e.sn},t.clearTimer=function(){self.clearInterval(this.timer)},t.getNextABRAutoLevel=function(){var e=this.fragCurrent,t=this.partCurrent,n=this.hls,r=n.maxAutoLevel,i=n.config,o=n.minAutoLevel,a=n.media,s=t?t.duration:e?e.duration:0,l=a&&0!==a.playbackRate?Math.abs(a.playbackRate):1,u=this.bwEstimator?this.bwEstimator.getEstimate():i.abrEwmaDefaultEstimate,c=n.mainForwardBufferInfo,f=(c?c.len:0)/l,d=this.findBestLevel(u,o,r,f,i.abrBandWidthFactor,i.abrBandWidthUpFactor);if(d>=0)return d;P.trace("[abr] "+(f?"rebuffering expected":"buffer is empty")+", finding optimal quality level");var h=s?Math.min(s,i.maxStarvationDelay):i.maxStarvationDelay,p=i.abrBandWidthFactor,m=i.abrBandWidthUpFactor;if(!f){var g=this.bitrateTestDelay;g&&(h=(s?Math.min(s,i.maxLoadingDelay):i.maxLoadingDelay)-g,P.trace("[abr] bitrate test took "+Math.round(1e3*g)+"ms, set first fragment max fetchDuration to "+Math.round(1e3*h)+" ms"),p=m=1)}return d=this.findBestLevel(u,o,r,f+h,p,m),Math.max(d,0)},t.findBestLevel=function(e,t,n,r,i,o){for(var a,s=this.fragCurrent,l=this.partCurrent,u=this.lastLoadedFragLevel,c=this.hls.levels,f=c[u],d=!(null==f||null==(a=f.details)||!a.live),h=null==f?void 0:f.codecSet,p=l?l.duration:s?s.duration:0,m=this.bwEstimator.getEstimateTTFB()/1e3,g=t,v=-1,b=n;b>=t;b--){var T=c[b];if(!T||h&&T.codecSet!==h)T&&(g=Math.min(b,g),v=Math.max(b,v));else{-1!==v&&P.trace("[abr] Skipped level(s) "+g+"-"+v+' with CODECS:"'+c[v].attrs.CODECS+'"; not compatible with "'+f.attrs.CODECS+'"');var S,E=T.details,w=(l?null==E?void 0:E.partTarget:null==E?void 0:E.averagetargetduration)||p;S=b<=u?i*e:o*e;var _=c[b].maxBitrate,A=this.getTimeToLoadFrag(m,S,_*w,void 0===E);if(P.trace("[abr] level:"+b+" adjustedbw-bitrate:"+Math.round(S-_)+" avgDuration:"+w.toFixed(1)+" maxFetchDuration:"+r.toFixed(1)+" fetchDuration:"+A.toFixed(1)),S>_&&(0===A||!y(A)||d&&!this.bitrateTestDelay||A<r))return b}}return-1},o(e,[{key:"nextAutoLevel",get:function(){var e=this._nextAutoLevel,t=this.bwEstimator;if(-1!==e&&!t.canEstimate())return e;var n=this.getNextABRAutoLevel();if(-1!==e){var r=this.hls.levels;if(r.length>Math.max(e,n)&&r[e].loadError<=r[n].loadError)return e}return-1!==e&&(n=Math.min(e,n)),n},set:function(e){this._nextAutoLevel=e}}]),e}(),Pr=function(){function e(e){this.buffers=void 0,this.queues={video:[],audio:[],audiovideo:[]},this.buffers=e}var t=e.prototype;return t.append=function(e,t){var n=this.queues[t];n.push(e),1===n.length&&this.buffers[t]&&this.executeNext(t)},t.insertAbort=function(e,t){this.queues[t].unshift(e),this.executeNext(t)},t.appendBlocker=function(e){var t,n=new Promise((function(e){t=e})),r={execute:t,onStart:function(){},onComplete:function(){},onError:function(){}};return this.append(r,e),n},t.executeNext=function(e){var t=this.buffers,n=this.queues,r=t[e],i=n[e];if(i.length){var o=i[0];try{o.execute()}catch(t){P.warn("[buffer-operation-queue]: Unhandled exception executing the current operation"),o.onError(t),null!=r&&r.updating||(i.shift(),this.executeNext(e))}}},t.shiftAndExecuteNext=function(e){this.queues[e].shift(),this.executeNext(e)},t.current=function(e){return this.queues[e][0]},e}(),Cr=Ae(),Mr=/([ha]vc.)(?:\.[^.,]+)+/,Rr=function(){function e(e){var t=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 e=t.media,n=t.mediaSource;P.log("[buffer-controller]: Media source opened"),e&&(e.removeEventListener("emptied",t._onMediaEmptied),t.updateMediaElementDuration(),t.hls.trigger(S.MEDIA_ATTACHED,{media:e})),n&&n.removeEventListener("sourceopen",t._onMediaSourceOpen),t.checkPendingTracks()},this._onMediaSourceClose=function(){P.log("[buffer-controller]: Media source closed")},this._onMediaSourceEnded=function(){P.log("[buffer-controller]: Media source ended")},this._onMediaEmptied=function(){var e=t.media,n=t._objectUrl;e&&e.src!==n&&P.error("Media element src was set while attaching MediaSource ("+n+" > "+e.src+")")},this.hls=e,this._initSourceBuffer(),this.registerListeners()}var t=e.prototype;return t.hasSourceTypes=function(){return this.getSourceBufferTypes().length>0||Object.keys(this.pendingTracks).length>0},t.destroy=function(){this.unregisterListeners(),this.details=null,this.lastMpegAudioChunk=null},t.registerListeners=function(){var e=this.hls;e.on(S.MEDIA_ATTACHING,this.onMediaAttaching,this),e.on(S.MEDIA_DETACHING,this.onMediaDetaching,this),e.on(S.MANIFEST_LOADING,this.onManifestLoading,this),e.on(S.MANIFEST_PARSED,this.onManifestParsed,this),e.on(S.BUFFER_RESET,this.onBufferReset,this),e.on(S.BUFFER_APPENDING,this.onBufferAppending,this),e.on(S.BUFFER_CODECS,this.onBufferCodecs,this),e.on(S.BUFFER_EOS,this.onBufferEos,this),e.on(S.BUFFER_FLUSHING,this.onBufferFlushing,this),e.on(S.LEVEL_UPDATED,this.onLevelUpdated,this),e.on(S.FRAG_PARSED,this.onFragParsed,this),e.on(S.FRAG_CHANGED,this.onFragChanged,this)},t.unregisterListeners=function(){var e=this.hls;e.off(S.MEDIA_ATTACHING,this.onMediaAttaching,this),e.off(S.MEDIA_DETACHING,this.onMediaDetaching,this),e.off(S.MANIFEST_LOADING,this.onManifestLoading,this),e.off(S.MANIFEST_PARSED,this.onManifestParsed,this),e.off(S.BUFFER_RESET,this.onBufferReset,this),e.off(S.BUFFER_APPENDING,this.onBufferAppending,this),e.off(S.BUFFER_CODECS,this.onBufferCodecs,this),e.off(S.BUFFER_EOS,this.onBufferEos,this),e.off(S.BUFFER_FLUSHING,this.onBufferFlushing,this),e.off(S.LEVEL_UPDATED,this.onLevelUpdated,this),e.off(S.FRAG_PARSED,this.onFragParsed,this),e.off(S.FRAG_CHANGED,this.onFragChanged,this)},t._initSourceBuffer=function(){this.sourceBuffer={},this.operationQueue=new Pr(this.sourceBuffer),this.listeners={audio:[],video:[],audiovideo:[]},this.lastMpegAudioChunk=null},t.onManifestLoading=function(){this.bufferCodecEventsExpected=this._bufferCodecEventsTotal=0,this.details=null},t.onManifestParsed=function(e,t){t.audio&&!t.video||t.altAudio,this.bufferCodecEventsExpected=this._bufferCodecEventsTotal=1,P.log(this.bufferCodecEventsExpected+" bufferCodec event(s) expected")},t.onMediaAttaching=function(e,t){var n=this.media=t.media;if(n&&Cr){var r=this.mediaSource=new Cr;r.addEventListener("sourceopen",this._onMediaSourceOpen),r.addEventListener("sourceended",this._onMediaSourceEnded),r.addEventListener("sourceclose",this._onMediaSourceClose),n.src=self.URL.createObjectURL(r),this._objectUrl=n.src,n.addEventListener("emptied",this._onMediaEmptied)}},t.onMediaDetaching=function(){var e=this.media,t=this.mediaSource,n=this._objectUrl;if(t){if(P.log("[buffer-controller]: media source detaching"),"open"===t.readyState)try{t.endOfStream()}catch(e){P.warn("[buffer-controller]: onMediaDetaching: "+e.message+" while calling endOfStream")}this.onBufferReset(),t.removeEventListener("sourceopen",this._onMediaSourceOpen),t.removeEventListener("sourceended",this._onMediaSourceEnded),t.removeEventListener("sourceclose",this._onMediaSourceClose),e&&(e.removeEventListener("emptied",this._onMediaEmptied),n&&self.URL.revokeObjectURL(n),e.src===n?(e.removeAttribute("src"),e.load()):P.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(S.MEDIA_DETACHED,void 0)},t.onBufferReset=function(){var e=this;this.getSourceBufferTypes().forEach((function(t){var n=e.sourceBuffer[t];try{n&&(e.removeBufferListeners(t),e.mediaSource&&e.mediaSource.removeSourceBuffer(n),e.sourceBuffer[t]=void 0)}catch(e){P.warn("[buffer-controller]: Failed to reset the "+t+" buffer",e)}})),this._initSourceBuffer()},t.onBufferCodecs=function(e,t){var n=this,r=this.getSourceBufferTypes().length;Object.keys(t).forEach((function(e){if(r){var i=n.tracks[e];if(i&&"function"==typeof i.buffer.changeType){var o=t[e],a=o.id,s=o.codec,l=o.levelCodec,u=o.container,c=o.metadata,f=(i.levelCodec||i.codec).replace(Mr,"$1"),d=(l||s).replace(Mr,"$1");if(f!==d){var h=u+";codecs="+(l||s);n.appendChangeType(e,h),P.log("[buffer-controller]: switching codec "+f+" to "+d),n.tracks[e]={buffer:i.buffer,codec:s,container:u,levelCodec:l,metadata:c,id:a}}}}else n.pendingTracks[e]=t[e]})),r||(this.bufferCodecEventsExpected=Math.max(this.bufferCodecEventsExpected-1,0),this.mediaSource&&"open"===this.mediaSource.readyState&&this.checkPendingTracks())},t.appendChangeType=function(e,t){var n=this,r=this.operationQueue,i={execute:function(){var i=n.sourceBuffer[e];i&&(P.log("[buffer-controller]: changing "+e+" sourceBuffer type to "+t),i.changeType(t)),r.shiftAndExecuteNext(e)},onStart:function(){},onComplete:function(){},onError:function(t){P.warn("[buffer-controller]: Failed to change "+e+" SourceBuffer type",t)}};r.append(i,e)},t.onBufferAppending=function(e,t){var n=this,r=this.hls,i=this.operationQueue,o=this.tracks,a=t.data,s=t.type,l=t.frag,u=t.part,c=t.chunkMeta,f=c.buffering[s],d=self.performance.now();f.start=d;var h=l.stats.buffering,p=u?u.stats.buffering:null;0===h.start&&(h.start=d),p&&0===p.start&&(p.start=d);var m=o.audio,g=!1;"audio"===s&&"audio/mpeg"===(null==m?void 0:m.container)&&(g=!this.lastMpegAudioChunk||1===c.id||this.lastMpegAudioChunk.sn!==c.sn,this.lastMpegAudioChunk=c);var v=l.start,y={execute:function(){if(f.executeStart=self.performance.now(),g){var e=n.sourceBuffer[s];if(e){var t=v-e.timestampOffset;Math.abs(t)>=.1&&(P.log("[buffer-controller]: Updating audio SourceBuffer timestampOffset to "+v+" (delta: "+t+") sn: "+l.sn+")"),e.timestampOffset=v)}}n.appendExecutor(a,s)},onStart:function(){},onComplete:function(){var e=self.performance.now();f.executeEnd=f.end=e,0===h.first&&(h.first=e),p&&0===p.first&&(p.first=e);var t=n.sourceBuffer,r={};for(var i in t)r[i]=Zt.getBuffered(t[i]);n.appendError=0,n.hls.trigger(S.BUFFER_APPENDED,{type:s,frag:l,part:u,chunkMeta:c,parent:l.type,timeRanges:r})},onError:function(e){P.error("[buffer-controller]: Error encountered while trying to append to the "+s+" SourceBuffer",e);var t={type:E.MEDIA_ERROR,parent:l.type,details:w.BUFFER_APPEND_ERROR,frag:l,part:u,chunkMeta:c,error:e,err:e,fatal:!1};e.code===DOMException.QUOTA_EXCEEDED_ERR?t.details=w.BUFFER_FULL_ERROR:(n.appendError++,t.details=w.BUFFER_APPEND_ERROR,n.appendError>r.config.appendErrorMaxRetry&&(P.error("[buffer-controller]: Failed "+r.config.appendErrorMaxRetry+" times to append segment in sourceBuffer"),t.fatal=!0)),r.trigger(S.ERROR,t)}};i.append(y,s)},t.onBufferFlushing=function(e,t){var n=this,r=this.operationQueue,i=function(e){return{execute:n.removeExecutor.bind(n,e,t.startOffset,t.endOffset),onStart:function(){},onComplete:function(){n.hls.trigger(S.BUFFER_FLUSHED,{type:e})},onError:function(t){P.warn("[buffer-controller]: Failed to remove from "+e+" SourceBuffer",t)}}};t.type?r.append(i(t.type),t.type):this.getSourceBufferTypes().forEach((function(e){r.append(i(e),e)}))},t.onFragParsed=function(e,t){var n=this,r=t.frag,i=t.part,o=[],a=i?i.elementaryStreams:r.elementaryStreams;a.audiovideo?o.push("audiovideo"):(a.audio&&o.push("audio"),a.video&&o.push("video")),0===o.length&&P.warn("Fragments must have at least one ElementaryStreamType set. type: "+r.type+" level: "+r.level+" sn: "+r.sn),this.blockBuffers((function(){var e=self.performance.now();r.stats.buffering.end=e,i&&(i.stats.buffering.end=e);var t=i?i.stats:r.stats;n.hls.trigger(S.FRAG_BUFFERED,{frag:r,part:i,stats:t,id:r.type})}),o)},t.onFragChanged=function(e,t){this.flushBackBuffer()},t.onBufferEos=function(e,t){var n=this;this.getSourceBufferTypes().reduce((function(e,r){var i=n.sourceBuffer[r];return!i||t.type&&t.type!==r||(i.ending=!0,i.ended||(i.ended=!0,P.log("[buffer-controller]: "+r+" sourceBuffer now EOS"))),e&&!(i&&!i.ended)}),!0)&&(P.log("[buffer-controller]: Queueing mediaSource.endOfStream()"),this.blockBuffers((function(){n.getSourceBufferTypes().forEach((function(e){var t=n.sourceBuffer[e];t&&(t.ending=!1)}));var e=n.mediaSource;e&&"open"===e.readyState?(P.log("[buffer-controller]: Calling mediaSource.endOfStream()"),e.endOfStream()):e&&P.info("[buffer-controller]: Could not call mediaSource.endOfStream(). mediaSource.readyState: "+e.readyState)})))},t.onLevelUpdated=function(e,t){var n=t.details;n.fragments.length&&(this.details=n,this.getSourceBufferTypes().length?this.blockBuffers(this.updateMediaElementDuration.bind(this)):this.updateMediaElementDuration())},t.flushBackBuffer=function(){var e=this.hls,t=this.details,n=this.media,r=this.sourceBuffer;if(n&&null!==t){var i=this.getSourceBufferTypes();if(i.length){var o=t.live&&null!==e.config.liveBackBufferLength?e.config.liveBackBufferLength:e.config.backBufferLength;if(y(o)&&!(o<0)){var a=n.currentTime,s=t.levelTargetDuration,l=Math.max(o,s),u=Math.floor(a/s)*s-l;i.forEach((function(n){var i=r[n];if(i){var o=Zt.getBuffered(i);if(o.length>0&&u>o.start(0)){if(e.trigger(S.BACK_BUFFER_REACHED,{bufferEnd:u}),t.live)e.trigger(S.LIVE_BACK_BUFFER_REACHED,{bufferEnd:u});else if(i.ended&&o.end(o.length-1)-a<2*s)return void P.info("[buffer-controller]: Cannot flush "+n+" back buffer while SourceBuffer is in ended state");e.trigger(S.BUFFER_FLUSHING,{startOffset:0,endOffset:u,type:n})}}}))}}}},t.updateMediaElementDuration=function(){if(this.details&&this.media&&this.mediaSource&&"open"===this.mediaSource.readyState){var e=this.details,t=this.hls,n=this.media,r=this.mediaSource,i=e.fragments[0].start+e.totalduration,o=n.duration,a=y(r.duration)?r.duration:0;e.live&&t.config.liveDurationInfinity?(P.log("[buffer-controller]: Media Source duration is set to Infinity"),r.duration=1/0,this.updateSeekableRange(e)):(i>a&&i>o||!y(o))&&(P.log("[buffer-controller]: Updating Media Source duration to "+i.toFixed(3)),r.duration=i)}},t.updateSeekableRange=function(e){var t=this.mediaSource,n=e.fragments;if(n.length&&e.live&&null!=t&&t.setLiveSeekableRange){var r=Math.max(0,n[0].start),i=Math.max(r,r+e.totalduration);t.setLiveSeekableRange(r,i)}},t.checkPendingTracks=function(){var e=this.bufferCodecEventsExpected,t=this.operationQueue,n=this.pendingTracks,r=Object.keys(n).length;if(r&&!e||2===r){this.createSourceBuffers(n),this.pendingTracks={};var i=this.getSourceBufferTypes();if(i.length)this.hls.trigger(S.BUFFER_CREATED,{tracks:this.tracks}),i.forEach((function(e){t.executeNext(e)}));else{var o=new Error("could not create source buffer for media codec(s)");this.hls.trigger(S.ERROR,{type:E.MEDIA_ERROR,details:w.BUFFER_INCOMPATIBLE_CODECS_ERROR,fatal:!0,error:o,reason:o.message})}}},t.createSourceBuffers=function(e){var t=this.sourceBuffer,n=this.mediaSource;if(!n)throw Error("createSourceBuffers called when mediaSource was null");for(var r in e)if(!t[r]){var i=e[r];if(!i)throw Error("source buffer exists for track "+r+", however track does not");var o=i.levelCodec||i.codec,a=i.container+";codecs="+o;P.log("[buffer-controller]: creating sourceBuffer("+a+")");try{var s=t[r]=n.addSourceBuffer(a),l=r;this.addBufferListener(l,"updatestart",this._onSBUpdateStart),this.addBufferListener(l,"updateend",this._onSBUpdateEnd),this.addBufferListener(l,"error",this._onSBUpdateError),this.tracks[r]={buffer:s,codec:o,container:i.container,levelCodec:i.levelCodec,metadata:i.metadata,id:i.id}}catch(e){P.error("[buffer-controller]: error while trying to add sourceBuffer: "+e.message),this.hls.trigger(S.ERROR,{type:E.MEDIA_ERROR,details:w.BUFFER_ADD_CODEC_ERROR,fatal:!1,error:e,mimeType:a})}}},t._onSBUpdateStart=function(e){this.operationQueue.current(e).onStart()},t._onSBUpdateEnd=function(e){var t=this.operationQueue;t.current(e).onComplete(),t.shiftAndExecuteNext(e)},t._onSBUpdateError=function(e,t){var n=new Error(e+" SourceBuffer error");P.error("[buffer-controller]: "+n,t),this.hls.trigger(S.ERROR,{type:E.MEDIA_ERROR,details:w.BUFFER_APPENDING_ERROR,error:n,fatal:!1});var r=this.operationQueue.current(e);r&&r.onError(t)},t.removeExecutor=function(e,t,n){var r=this.media,i=this.mediaSource,o=this.operationQueue,a=this.sourceBuffer[e];if(!r||!i||!a)return P.warn("[buffer-controller]: Attempting to remove from the "+e+" SourceBuffer, but it does not exist"),void o.shiftAndExecuteNext(e);var s=y(r.duration)?r.duration:1/0,l=y(i.duration)?i.duration:1/0,u=Math.max(0,t),c=Math.min(n,s,l);c>u&&!a.ending?(a.ended=!1,P.log("[buffer-controller]: Removing ["+u+","+c+"] from the "+e+" SourceBuffer"),a.remove(u,c)):o.shiftAndExecuteNext(e)},t.appendExecutor=function(e,t){var n=this.operationQueue,r=this.sourceBuffer[t];if(!r)return P.warn("[buffer-controller]: Attempting to append to the "+t+" SourceBuffer, but it does not exist"),void n.shiftAndExecuteNext(t);r.ended=!1,r.appendBuffer(e)},t.blockBuffers=function(e,t){var n=this;if(void 0===t&&(t=this.getSourceBufferTypes()),!t.length)return P.log("[buffer-controller]: Blocking operation requested, but no SourceBuffers exist"),void Promise.resolve().then(e);var r=this.operationQueue,i=t.map((function(e){return r.appendBlocker(e)}));Promise.all(i).then((function(){e(),t.forEach((function(e){var t=n.sourceBuffer[e];null!=t&&t.updating||r.shiftAndExecuteNext(e)}))}))},t.getSourceBufferTypes=function(){return Object.keys(this.sourceBuffer)},t.addBufferListener=function(e,t,n){var r=this.sourceBuffer[e];if(r){var i=n.bind(this,e);this.listeners[e].push({event:t,listener:i}),r.addEventListener(t,i)}},t.removeBufferListeners=function(e){var t=this.sourceBuffer[e];t&&this.listeners[e].forEach((function(e){t.removeEventListener(e.event,e.listener)}))},e}(),Or=function(){function e(e){this.hls=void 0,this.autoLevelCapping=void 0,this.firstLevel=void 0,this.media=void 0,this.restrictedLevels=void 0,this.timer=void 0,this.clientRect=void 0,this.streamController=void 0,this.hls=e,this.autoLevelCapping=Number.POSITIVE_INFINITY,this.firstLevel=-1,this.media=null,this.restrictedLevels=[],this.timer=void 0,this.clientRect=null,this.registerListeners()}var t=e.prototype;return t.setStreamController=function(e){this.streamController=e},t.destroy=function(){this.unregisterListener(),this.hls.config.capLevelToPlayerSize&&this.stopCapping(),this.media=null,this.clientRect=null,this.hls=this.streamController=null},t.registerListeners=function(){var e=this.hls;e.on(S.FPS_DROP_LEVEL_CAPPING,this.onFpsDropLevelCapping,this),e.on(S.MEDIA_ATTACHING,this.onMediaAttaching,this),e.on(S.MANIFEST_PARSED,this.onManifestParsed,this),e.on(S.BUFFER_CODECS,this.onBufferCodecs,this),e.on(S.MEDIA_DETACHING,this.onMediaDetaching,this)},t.unregisterListener=function(){var e=this.hls;e.off(S.FPS_DROP_LEVEL_CAPPING,this.onFpsDropLevelCapping,this),e.off(S.MEDIA_ATTACHING,this.onMediaAttaching,this),e.off(S.MANIFEST_PARSED,this.onManifestParsed,this),e.off(S.BUFFER_CODECS,this.onBufferCodecs,this),e.off(S.MEDIA_DETACHING,this.onMediaDetaching,this)},t.onFpsDropLevelCapping=function(e,t){var n=this.hls.levels[t.droppedLevel];this.isLevelAllowed(n)&&this.restrictedLevels.push({bitrate:n.bitrate,height:n.height,width:n.width})},t.onMediaAttaching=function(e,t){this.media=t.media instanceof HTMLVideoElement?t.media:null,this.clientRect=null},t.onManifestParsed=function(e,t){var n=this.hls;this.restrictedLevels=[],this.firstLevel=t.firstLevel,n.config.capLevelToPlayerSize&&t.video&&this.startCapping()},t.onBufferCodecs=function(e,t){this.hls.config.capLevelToPlayerSize&&t.video&&this.startCapping()},t.onMediaDetaching=function(){this.stopCapping()},t.detectPlayerSize=function(){if(this.media&&this.mediaHeight>0&&this.mediaWidth>0){var e=this.hls.levels;if(e.length){var t=this.hls;t.autoLevelCapping=this.getMaxLevel(e.length-1),t.autoLevelCapping>this.autoLevelCapping&&this.streamController&&this.streamController.nextLevelSwitch(),this.autoLevelCapping=t.autoLevelCapping}}},t.getMaxLevel=function(t){var n=this,r=this.hls.levels;if(!r.length)return-1;var i=r.filter((function(e,r){return n.isLevelAllowed(e)&&r<=t}));return this.clientRect=null,e.getMaxLevelByMediaSize(i,this.mediaWidth,this.mediaHeight)},t.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())},t.stopCapping=function(){this.restrictedLevels=[],this.firstLevel=-1,this.autoLevelCapping=Number.POSITIVE_INFINITY,this.timer&&(self.clearInterval(this.timer),this.timer=void 0)},t.getDimensions=function(){if(this.clientRect)return this.clientRect;var e=this.media,t={width:0,height:0};if(e){var n=e.getBoundingClientRect();t.width=n.width,t.height=n.height,t.width||t.height||(t.width=n.right-n.left||e.width||0,t.height=n.bottom-n.top||e.height||0)}return this.clientRect=t,t},t.isLevelAllowed=function(e){return!this.restrictedLevels.some((function(t){return e.bitrate===t.bitrate&&e.width===t.width&&e.height===t.height}))},e.getMaxLevelByMediaSize=function(e,t,n){if(null==e||!e.length)return-1;for(var r=function(e,t){return!t||e.width!==t.width||e.height!==t.height},i=e.length-1,o=0;o<e.length;o+=1){var a=e[o];if((a.width>=t||a.height>=n)&&r(a,e[o+1])){i=o;break}}return i},o(e,[{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 e=1;if(!this.hls.config.ignoreDevicePixelRatio)try{e=self.devicePixelRatio}catch(e){}return e}}]),e}(),Ir=function(){function e(e){this.hls=void 0,this.isVideoPlaybackQualityAvailable=!1,this.timer=void 0,this.media=null,this.lastTime=void 0,this.lastDroppedFrames=0,this.lastDecodedFrames=0,this.streamController=void 0,this.hls=e,this.registerListeners()}var t=e.prototype;return t.setStreamController=function(e){this.streamController=e},t.registerListeners=function(){this.hls.on(S.MEDIA_ATTACHING,this.onMediaAttaching,this)},t.unregisterListeners=function(){this.hls.off(S.MEDIA_ATTACHING,this.onMediaAttaching,this)},t.destroy=function(){this.timer&&clearInterval(this.timer),this.unregisterListeners(),this.isVideoPlaybackQualityAvailable=!1,this.media=null},t.onMediaAttaching=function(e,t){var n=this.hls.config;if(n.capLevelOnFPSDrop){var r=t.media instanceof self.HTMLVideoElement?t.media:null;this.media=r,r&&"function"==typeof r.getVideoPlaybackQuality&&(this.isVideoPlaybackQualityAvailable=!0),self.clearInterval(this.timer),this.timer=self.setInterval(this.checkFPSInterval.bind(this),n.fpsDroppedMonitoringPeriod)}},t.checkFPS=function(e,t,n){var r=performance.now();if(t){if(this.lastTime){var i=r-this.lastTime,o=n-this.lastDroppedFrames,a=t-this.lastDecodedFrames,s=1e3*o/i,l=this.hls;if(l.trigger(S.FPS_DROP,{currentDropped:o,currentDecoded:a,totalDroppedFrames:n}),s>0&&o>l.config.fpsDroppedMonitoringThreshold*a){var u=l.currentLevel;P.warn("drop FPS ratio greater than max allowed value for currentLevel: "+u),u>0&&(-1===l.autoLevelCapping||l.autoLevelCapping>=u)&&(u-=1,l.trigger(S.FPS_DROP_LEVEL_CAPPING,{level:u,droppedLevel:l.currentLevel}),l.autoLevelCapping=u,this.streamController.nextLevelSwitch())}}this.lastTime=r,this.lastDroppedFrames=n,this.lastDecodedFrames=t}},t.checkFPSInterval=function(){var e=this.media;if(e)if(this.isVideoPlaybackQualityAvailable){var t=e.getVideoPlaybackQuality();this.checkFPS(e,t.totalVideoFrames,t.droppedVideoFrames)}else this.checkFPS(e,e.webkitDecodedFrameCount,e.webkitDroppedFrameCount)},e}(),Dr=/^age:\s*[\d.]+\s*$/im,Nr=function(){function e(e){this.xhrSetup=void 0,this.requestTimeout=void 0,this.retryTimeout=void 0,this.retryDelay=void 0,this.config=null,this.callbacks=null,this.context=void 0,this.loader=null,this.stats=void 0,this.xhrSetup=e&&e.xhrSetup||null,this.stats=new N,this.retryDelay=0}var t=e.prototype;return t.destroy=function(){this.callbacks=null,this.abortInternal(),this.loader=null,this.config=null},t.abortInternal=function(){var e=this.loader;self.clearTimeout(this.requestTimeout),self.clearTimeout(this.retryTimeout),e&&(e.onreadystatechange=null,e.onprogress=null,4!==e.readyState&&(this.stats.aborted=!0,e.abort()))},t.abort=function(){var e;this.abortInternal(),null!=(e=this.callbacks)&&e.onAbort&&this.callbacks.onAbort(this.stats,this.context,this.loader)},t.load=function(e,t,n){if(this.stats.loading.start)throw new Error("Loader can only be used once.");this.stats.loading.start=self.performance.now(),this.context=e,this.config=t,this.callbacks=n,this.loadInternal()},t.loadInternal=function(){var e=this,t=this.config,n=this.context;if(t){var r=this.loader=new self.XMLHttpRequest,i=this.stats;i.loading.first=0,i.loaded=0,i.aborted=!1;var o=this.xhrSetup;o?Promise.resolve().then((function(){if(!e.stats.aborted)return o(r,n.url)})).catch((function(e){return r.open("GET",n.url,!0),o(r,n.url)})).then((function(){e.stats.aborted||e.openAndSendXhr(r,n,t)})).catch((function(t){e.callbacks.onError({code:r.status,text:t.message},n,r,i)})):this.openAndSendXhr(r,n,t)}},t.openAndSendXhr=function(e,t,n){e.readyState||e.open("GET",t.url,!0);var r=this.context.headers,i=n.loadPolicy,o=i.maxTimeToFirstByteMs,a=i.maxLoadTimeMs;if(r)for(var s in r)e.setRequestHeader(s,r[s]);t.rangeEnd&&e.setRequestHeader("Range","bytes="+t.rangeStart+"-"+(t.rangeEnd-1)),e.onreadystatechange=this.readystatechange.bind(this),e.onprogress=this.loadprogress.bind(this),e.responseType=t.responseType,self.clearTimeout(this.requestTimeout),n.timeout=o&&y(o)?o:a,this.requestTimeout=self.setTimeout(this.loadtimeout.bind(this),n.timeout),e.send()},t.readystatechange=function(){var e=this.context,t=this.loader,n=this.stats;if(e&&t){var r=t.readyState,i=this.config;if(!n.aborted&&r>=2&&(0===n.loading.first&&(n.loading.first=Math.max(self.performance.now(),n.loading.start),i.timeout!==i.loadPolicy.maxLoadTimeMs&&(self.clearTimeout(this.requestTimeout),i.timeout=i.loadPolicy.maxLoadTimeMs,this.requestTimeout=self.setTimeout(this.loadtimeout.bind(this),i.loadPolicy.maxLoadTimeMs-(n.loading.first-n.loading.start)))),4===r)){self.clearTimeout(this.requestTimeout),t.onreadystatechange=null,t.onprogress=null;var o=t.status,a="text"!==t.responseType;if(o>=200&&o<300&&(a&&t.response||null!==t.responseText)){n.loading.end=Math.max(self.performance.now(),n.loading.first);var s=a?t.response:t.responseText,l="arraybuffer"===t.responseType?s.byteLength:s.length;if(n.loaded=n.total=l,n.bwEstimate=8e3*n.total/(n.loading.end-n.loading.first),!this.callbacks)return;var u=this.callbacks.onProgress;if(u&&u(n,e,s,t),!this.callbacks)return;var c={url:t.responseURL,data:s,code:o};this.callbacks.onSuccess(c,n,e,t)}else{var f=i.loadPolicy.errorRetry;Et(f,n.retry,!1,o)?this.retry(f):(P.error(o+" while loading "+e.url),this.callbacks.onError({code:o,text:t.statusText},e,t,n))}}}},t.loadtimeout=function(){var e,t=null==(e=this.config)?void 0:e.loadPolicy.timeoutRetry;if(Et(t,this.stats.retry,!0))this.retry(t);else{P.warn("timeout while loading "+this.context.url);var n=this.callbacks;n&&(this.abortInternal(),n.onTimeout(this.stats,this.context,this.loader))}},t.retry=function(e){var t=this.context,n=this.stats;this.retryDelay=Tt(e,n.retry),n.retry++,P.warn((status?"HTTP Status "+status:"Timeout")+" while loading "+t.url+", retrying "+n.retry+"/"+e.maxNumRetry+" in "+this.retryDelay+"ms"),this.abortInternal(),this.loader=null,self.clearTimeout(this.retryTimeout),this.retryTimeout=self.setTimeout(this.loadInternal.bind(this),this.retryDelay)},t.loadprogress=function(e){var t=this.stats;t.loaded=e.loaded,e.lengthComputable&&(t.total=e.total)},t.getCacheAge=function(){var e=null;if(this.loader&&Dr.test(this.loader.getAllResponseHeaders())){var t=this.loader.getResponseHeader("age");e=t?parseFloat(t):null}return e},t.getResponseHeader=function(e){return this.loader&&new RegExp("^"+e+":\\s*[\\d.]+\\s*$","im").test(this.loader.getAllResponseHeaders())?this.loader.getResponseHeader(e):null},e}(),Fr=function(){function e(){this.chunks=[],this.dataLength=0}var t=e.prototype;return t.push=function(e){this.chunks.push(e),this.dataLength+=e.length},t.flush=function(){var e,t=this.chunks,n=this.dataLength;return t.length?(e=1===t.length?t[0]:function(e,t){for(var n=new Uint8Array(t),r=0,i=0;i<e.length;i++){var o=e[i];n.set(o,r),r+=o.length}return n}(t,n),this.reset(),e):new Uint8Array(0)},t.reset=function(){this.chunks.length=0,this.dataLength=0},e}(),Br=/(\d+)-(\d+)\/(\d+)/,Gr=function(){function e(e){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=e.fetchSetup||Hr,this.controller=new self.AbortController,this.stats=new N}var t=e.prototype;return t.destroy=function(){this.loader=this.callbacks=null,this.abortInternal()},t.abortInternal=function(){var e=this.response;null!=e&&e.ok||(this.stats.aborted=!0,this.controller.abort())},t.abort=function(){var e;this.abortInternal(),null!=(e=this.callbacks)&&e.onAbort&&this.callbacks.onAbort(this.stats,this.context,this.response)},t.load=function(e,t,n){var r=this,i=this.stats;if(i.loading.start)throw new Error("Loader can only be used once.");i.loading.start=self.performance.now();var o=Ur(e,this.controller.signal),a=n.onProgress,s="arraybuffer"===e.responseType,l=s?"byteLength":"length",u=t.loadPolicy,c=u.maxTimeToFirstByteMs,f=u.maxLoadTimeMs;this.context=e,this.config=t,this.callbacks=n,this.request=this.fetchSetup(e,o),self.clearTimeout(this.requestTimeout),t.timeout=c&&y(c)?c:f,this.requestTimeout=self.setTimeout((function(){r.abortInternal(),n.onTimeout(i,e,r.response)}),t.timeout),self.fetch(this.request).then((function(o){r.response=r.loader=o;var l=Math.max(self.performance.now(),i.loading.start);if(self.clearTimeout(r.requestTimeout),t.timeout=f,r.requestTimeout=self.setTimeout((function(){r.abortInternal(),n.onTimeout(i,e,r.response)}),f-(l-i.loading.start)),!o.ok){var u=o.status,c=o.statusText;throw new Vr(c||"fetch, bad network response",u,o)}return i.loading.first=l,i.total=function(e){var t=e.get("Content-Range");if(t){var n=function(e){var t=Br.exec(e);if(t)return parseInt(t[2])-parseInt(t[1])+1}(t);if(y(n))return n}var r=e.get("Content-Length");if(r)return parseInt(r)}(o.headers)||i.total,a&&y(t.highWaterMark)?r.loadProgressively(o,i,e,t.highWaterMark,a):s?o.arrayBuffer():"json"===e.responseType?o.json():o.text()})).then((function(o){var s=r.response;self.clearTimeout(r.requestTimeout),i.loading.end=Math.max(self.performance.now(),i.loading.first);var u=o[l];u&&(i.loaded=i.total=u);var c={url:s.url,data:o,code:s.status};a&&!y(t.highWaterMark)&&a(i,e,o,s),n.onSuccess(c,i,e,s)})).catch((function(t){if(self.clearTimeout(r.requestTimeout),!i.aborted){var o=t&&t.code||0,a=t?t.message:null;n.onError({code:o,text:a},e,t?t.details:null,i)}}))},t.getCacheAge=function(){var e=null;if(this.response){var t=this.response.headers.get("age");e=t?parseFloat(t):null}return e},t.getResponseHeader=function(e){return this.response?this.response.headers.get(e):null},t.loadProgressively=function(e,t,n,r,i){void 0===r&&(r=0);var o=new Fr,a=e.body.getReader();return function s(){return a.read().then((function(a){if(a.done)return o.dataLength&&i(t,n,o.flush(),e),Promise.resolve(new ArrayBuffer(0));var l=a.value,u=l.length;return t.loaded+=u,u<r||o.dataLength?(o.push(l),o.dataLength>=r&&i(t,n,o.flush(),e)):i(t,n,l,e),s()})).catch((function(){return Promise.reject()}))}()},e}();function Ur(e,t){var n={method:"GET",mode:"cors",credentials:"same-origin",signal:t,headers:new self.Headers(s({},e.headers))};return e.rangeEnd&&n.headers.set("Range","bytes="+e.rangeStart+"-"+String(e.rangeEnd-1)),n}function Hr(e,t){return new self.Request(e.url,t)}var Vr=function(e){function t(t,n,r){var i;return(i=e.call(this,t)||this).code=void 0,i.details=void 0,i.code=n,i.details=r,i}return l(t,e),t}(h(Error)),jr={maxTimeToFirstByteMs:8e3,maxLoadTimeMs:2e4,timeoutRetry:null,errorRetry:null},Wr=r(r({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:Nr,fLoader:void 0,pLoader:void 0,xhrSetup:void 0,licenseXhrSetup:void 0,licenseResponseCallback:void 0,abrController:Lr,bufferController:Rr,capLevelController:Or,errorController:Lt,fpsController:Ir,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:null,testBandwidth:!0,progressive:!1,lowLatencyMode:!0,cmcd:void 0,enableDateRangeMetadataCues:!0,enableEmsgMetadataCues:!0,enableID3MetadataCues:!0,certLoadPolicy:{default:jr},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:jr},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:j,enableWebVTT:!1,enableIMSC1:!1,enableCEA708Captions:!1,captionsTextTrack1Label:"English",captionsTextTrack1LanguageCode:"en",captionsTextTrack2Label:"Spanish",captionsTextTrack2LanguageCode:"es",captionsTextTrack3Label:"Unknown CC",captionsTextTrack3LanguageCode:"",captionsTextTrack4Label:"Unknown CC",captionsTextTrack4LanguageCode:"",renderTextTracksNatively:!0}),{},{subtitleStreamController:void 0,subtitleTrackController:void 0,timelineController:void 0,audioStreamController:void 0,audioTrackController:void 0,emeController:void 0,cmcdController:void 0,contentSteeringController:void 0});function $r(e,t){if((t.liveSyncDurationCount||t.liveMaxLatencyDurationCount)&&(t.liveSyncDuration||t.liveMaxLatencyDuration))throw new Error("Illegal hls.js config: don't mix up liveSyncDurationCount/liveMaxLatencyDurationCount and liveSyncDuration/liveMaxLatencyDuration");if(void 0!==t.liveMaxLatencyDurationCount&&(void 0===t.liveSyncDurationCount||t.liveMaxLatencyDurationCount<=t.liveSyncDurationCount))throw new Error('Illegal hls.js config: "liveMaxLatencyDurationCount" must be greater than "liveSyncDurationCount"');if(void 0!==t.liveMaxLatencyDuration&&(void 0===t.liveSyncDuration||t.liveMaxLatencyDuration<=t.liveSyncDuration))throw new Error('Illegal hls.js config: "liveMaxLatencyDuration" must be greater than "liveSyncDuration"');var n=Kr(e),i=["TimeOut","MaxRetry","RetryDelay","MaxRetryTimeout"];return["manifest","level","frag"].forEach((function(e){var r=("level"===e?"playlist":e)+"LoadPolicy",o=void 0===t[r],a=[];i.forEach((function(i){var s=e+"Loading"+i,l=t[s];if(void 0!==l&&o){a.push(s);var u=n[r].default;switch(t[r]={default:u},i){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}}})),a.length&&P.warn('hls.js config: "'+a.join('", "')+'" setting(s) are deprecated, use "'+r+'": '+JSON.stringify(t[r]))})),r(r({},n),t)}function Kr(e){return e&&"object"==typeof e?Array.isArray(e)?e.map(Kr):Object.keys(e).reduce((function(t,n){return t[n]=Kr(e[n]),t}),{}):e}var Zr=function(){function e(t){void 0===t&&(t={}),this.config=void 0,this.userConfig=void 0,this.coreComponents=void 0,this.networkControllers=void 0,this._emitter=new vr,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,L(t.debug||!1,"Hls instance");var n=this.config=$r(e.DefaultConfig,t);this.userConfig=t,this._autoLevelCapping=-1,n.progressive&&function(e){var t=e.loader;t!==Gr&&t!==Nr?(P.log("[config]: Custom loader detected, cannot enable progressive streaming"),e.progressive=!1):function(){if(self.fetch&&self.AbortController&&self.ReadableStream&&self.Request)try{return new self.ReadableStream({}),!0}catch(e){}return!1}()&&(e.loader=Gr,e.progressive=!0,e.enableSoftwareAES=!0,P.log("[config]: Progressive streaming enabled, using FetchLoader"))}(n);var r=n.abrController,i=n.bufferController,o=n.capLevelController,a=n.errorController,s=n.fpsController,l=new a(this),u=this.abrController=new r(this),c=this.bufferController=new i(this),f=this.capLevelController=new o(this),d=new s(this),h=new Ye(this),p=new at(this),m=n.contentSteeringController,g=m?new m(this):null,v=this.levelController=new Pt(this,g),y=new Nt(this),b=new Wt(this.config),T=this.streamController=new Ar(this,y,b);f.setStreamController(T),d.setStreamController(T);var E=[h,v,T];g&&E.splice(1,0,g),this.networkControllers=E;var w=[u,c,f,d,p,y];this.audioTrackController=this.createController(n.audioTrackController,E);var _=n.audioStreamController;_&&E.push(new _(this,y,b)),this.subtitleTrackController=this.createController(n.subtitleTrackController,E);var A=n.subtitleStreamController;A&&E.push(new A(this,y,b)),this.createController(n.timelineController,w),b.emeController=this.emeController=this.createController(n.emeController,w),this.cmcdController=this.createController(n.cmcdController,w),this.latencyController=this.createController(st,w),this.coreComponents=w,E.push(l);var x=l.onErrorOut;"function"==typeof x&&this.on(S.ERROR,x,l)}e.isSupported=function(){return function(){var e=Ae();if(!e)return!1;var t=hn(),n=e&&"function"==typeof e.isTypeSupported&&e.isTypeSupported('video/mp4; codecs="avc1.42E01E,mp4a.40.2"'),r=!t||t.prototype&&"function"==typeof t.prototype.appendBuffer&&"function"==typeof t.prototype.remove;return!!n&&!!r}()};var t=e.prototype;return t.createController=function(e,t){if(e){var n=new e(this);return t&&t.push(n),n}return null},t.on=function(e,t,n){void 0===n&&(n=this),this._emitter.on(e,t,n)},t.once=function(e,t,n){void 0===n&&(n=this),this._emitter.once(e,t,n)},t.removeAllListeners=function(e){this._emitter.removeAllListeners(e)},t.off=function(e,t,n,r){void 0===n&&(n=this),this._emitter.off(e,t,n,r)},t.listeners=function(e){return this._emitter.listeners(e)},t.emit=function(e,t,n){return this._emitter.emit(e,t,n)},t.trigger=function(e,t){if(this.config.debug)return this.emit(e,e,t);try{return this.emit(e,e,t)}catch(t){P.error("An internal error happened while handling event "+e+'. Error message: "'+t.message+'". Here is a stacktrace:',t),this.trigger(S.ERROR,{type:E.OTHER_ERROR,details:w.INTERNAL_EXCEPTION,fatal:!1,event:e,error:t})}return!1},t.listenerCount=function(e){return this._emitter.listenerCount(e)},t.destroy=function(){P.log("destroy"),this.trigger(S.DESTROYING,void 0),this.detachMedia(),this.removeAllListeners(),this._autoLevelCapping=-1,this.url=null,this.networkControllers.forEach((function(e){return e.destroy()})),this.networkControllers.length=0,this.coreComponents.forEach((function(e){return e.destroy()})),this.coreComponents.length=0;var e=this.config;e.xhrSetup=e.fetchSetup=void 0,this.userConfig=null},t.attachMedia=function(e){P.log("attachMedia"),this._media=e,this.trigger(S.MEDIA_ATTACHING,{media:e})},t.detachMedia=function(){P.log("detachMedia"),this.trigger(S.MEDIA_DETACHING,void 0),this._media=null},t.loadSource=function(e){this.stopLoad();var t=this.media,n=this.url,r=this.url=v.buildAbsoluteURL(self.location.href,e,{alwaysNormalize:!0});P.log("loadSource:"+r),t&&n&&(n!==r||this.bufferController.hasSourceTypes())&&(this.detachMedia(),this.attachMedia(t)),this.trigger(S.MANIFEST_LOADING,{url:e})},t.startLoad=function(e){void 0===e&&(e=-1),P.log("startLoad("+e+")"),this.networkControllers.forEach((function(t){t.startLoad(e)}))},t.stopLoad=function(){P.log("stopLoad"),this.networkControllers.forEach((function(e){e.stopLoad()}))},t.swapAudioCodec=function(){P.log("swapAudioCodec"),this.streamController.swapAudioCodec()},t.recoverMediaError=function(){P.log("recoverMediaError");var e=this._media;this.detachMedia(),e&&this.attachMedia(e)},t.removeLevel=function(e,t){void 0===t&&(t=0),this.levelController.removeLevel(e,t)},o(e,[{key:"levels",get:function(){return this.levelController.levels||[]}},{key:"currentLevel",get:function(){return this.streamController.currentLevel},set:function(e){P.log("set currentLevel:"+e),this.loadLevel=e,this.abrController.clearTimer(),this.streamController.immediateLevelSwitch()}},{key:"nextLevel",get:function(){return this.streamController.nextLevel},set:function(e){P.log("set nextLevel:"+e),this.levelController.manualLevel=e,this.streamController.nextLevelSwitch()}},{key:"loadLevel",get:function(){return this.levelController.level},set:function(e){P.log("set loadLevel:"+e),this.levelController.manualLevel=e}},{key:"nextLoadLevel",get:function(){return this.levelController.nextLoadLevel},set:function(e){this.levelController.nextLoadLevel=e}},{key:"firstLevel",get:function(){return Math.max(this.levelController.firstLevel,this.minAutoLevel)},set:function(e){P.log("set firstLevel:"+e),this.levelController.firstLevel=e}},{key:"startLevel",get:function(){return this.levelController.startLevel},set:function(e){P.log("set startLevel:"+e),-1!==e&&(e=Math.max(e,this.minAutoLevel)),this.levelController.startLevel=e}},{key:"capLevelToPlayerSize",get:function(){return this.config.capLevelToPlayerSize},set:function(e){var t=!!e;t!==this.config.capLevelToPlayerSize&&(t?this.capLevelController.startCapping():(this.capLevelController.stopCapping(),this.autoLevelCapping=-1,this.streamController.nextLevelSwitch()),this.config.capLevelToPlayerSize=t)}},{key:"autoLevelCapping",get:function(){return this._autoLevelCapping},set:function(e){this._autoLevelCapping!==e&&(P.log("set autoLevelCapping:"+e),this._autoLevelCapping=e)}},{key:"bandwidthEstimate",get:function(){var e=this.abrController.bwEstimator;return e?e.getEstimate():NaN}},{key:"ttfbEstimate",get:function(){var e=this.abrController.bwEstimator;return e?e.getEstimateTTFB():NaN}},{key:"maxHdcpLevel",get:function(){return this._maxHdcpLevel},set:function(e){lt.indexOf(e)>-1&&(this._maxHdcpLevel=e)}},{key:"autoLevelEnabled",get:function(){return-1===this.levelController.manualLevel}},{key:"manualLevel",get:function(){return this.levelController.manualLevel}},{key:"minAutoLevel",get:function(){var e=this.levels,t=this.config.minAutoBitrate;if(!e)return 0;for(var n=e.length,r=0;r<n;r++)if(e[r].maxBitrate>=t)return r;return 0}},{key:"maxAutoLevel",get:function(){var e,t=this.levels,n=this.autoLevelCapping,r=this.maxHdcpLevel;if(e=-1===n&&t&&t.length?t.length-1:n,r)for(var i=e;i--;){var o=t[i].attrs["HDCP-LEVEL"];if(o&&o<=r)return i}return e}},{key:"nextAutoLevel",get:function(){return Math.min(Math.max(this.abrController.nextAutoLevel,this.minAutoLevel),this.maxAutoLevel)},set:function(e){this.abrController.nextAutoLevel=Math.max(this.minAutoLevel,e)}},{key:"playingDate",get:function(){return this.streamController.currentProgramDateTime}},{key:"mainForwardBufferInfo",get:function(){return this.streamController.getMainFwdBufferInfo()}},{key:"audioTracks",get:function(){var e=this.audioTrackController;return e?e.audioTracks:[]}},{key:"audioTrack",get:function(){var e=this.audioTrackController;return e?e.audioTrack:-1},set:function(e){var t=this.audioTrackController;t&&(t.audioTrack=e)}},{key:"subtitleTracks",get:function(){var e=this.subtitleTrackController;return e?e.subtitleTracks:[]}},{key:"subtitleTrack",get:function(){var e=this.subtitleTrackController;return e?e.subtitleTrack:-1},set:function(e){var t=this.subtitleTrackController;t&&(t.subtitleTrack=e)}},{key:"media",get:function(){return this._media}},{key:"subtitleDisplay",get:function(){var e=this.subtitleTrackController;return!!e&&e.subtitleDisplay},set:function(e){var t=this.subtitleTrackController;t&&(t.subtitleDisplay=e)}},{key:"lowLatencyMode",get:function(){return this.config.lowLatencyMode},set:function(e){this.config.lowLatencyMode=e}},{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.14"}},{key:"Events",get:function(){return S}},{key:"ErrorTypes",get:function(){return E}},{key:"ErrorDetails",get:function(){return w}},{key:"DefaultConfig",get:function(){return e.defaultConfig?e.defaultConfig:Wr},set:function(t){e.defaultConfig=t}}]),e}();return Zr.defaultConfig=void 0,Zr}()}(!1)},47677:e=>{"use strict";e.exports=function(e,t,n,r,i,o,a,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 u=[n,r,i,o,a,s],c=0;(l=new Error(t.replace(/%s/g,(function(){return u[c++]})))).name="Invariant Violation"}throw l.framesToPop=1,l}}},29620:(e,t)=>{function n(e){if(e&&"object"==typeof e){var t=e.which||e.keyCode||e.charCode;t&&(e=t)}if("number"==typeof e)return a[e];var n,o=String(e);return(n=r[o.toLowerCase()])?n:(n=i[o.toLowerCase()])||(1===o.length?o.charCodeAt(0):void 0)}n.isEventKey=function(e,t){if(e&&"object"==typeof e){var n=e.which||e.keyCode||e.charCode;if(null==n)return!1;if("string"==typeof t){var o;if(o=r[t.toLowerCase()])return o===n;if(o=i[t.toLowerCase()])return o===n}else if("number"==typeof t)return t===n;return!1}};var r=(t=e.exports=n).code=t.codes={backspace:8,tab:9,enter:13,shift:16,ctrl:17,alt:18,"pause/break":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,insert:45,delete:46,command:91,"left command":91,"right command":93,"numpad *":106,"numpad +":107,"numpad -":109,"numpad .":110,"numpad /":111,"num lock":144,"scroll lock":145,"my computer":182,"my calculator":183,";":186,"=":187,",":188,"-":189,".":190,"/":191,"`":192,"[":219,"\\":220,"]":221,"'":222},i=t.aliases={windows:91,"⇧":16,"⌥":18,"⌃":17,"⌘":91,ctl:17,control:17,option:18,pause:19,break:19,caps:20,return:13,escape:27,spc:32,spacebar:32,pgup:33,pgdn:34,ins:45,del:46,cmd:91};for(o=97;o<123;o++)r[String.fromCharCode(o)]=o-32;for(var o=48;o<58;o++)r[o-48]=o;for(o=1;o<13;o++)r["f"+o]=o+111;for(o=0;o<10;o++)r["numpad "+o]=o+96;var a=t.names=t.title={};for(o in r)a[r[o]]=o;for(var s in i)r[s]=i[s]},17895:(e,t,n)=>{!function(e,t){e((function(){"use strict";var e,n={mobileDetectRules:{phones:{iPhone:"\\biPhone\\b|\\biPod\\b",BlackBerry:"BlackBerry|\\bBB10\\b|rim[0-9]+|\\b(BBA100|BBB100|BBD100|BBE100|BBF100|STH100)\\b-[0-9]+",HTC:"HTC|HTC.*(Sensation|Evo|Vision|Explorer|6800|8100|8900|A7272|S510e|C110e|Legend|Desire|T8282)|APX515CKT|Qtek9090|APA9292KT|HD_mini|Sensation.*Z710e|PG86100|Z715e|Desire.*(A8181|HD)|ADR6200|ADR6400L|ADR6425|001HT|Inspire 4G|Android.*\\bEVO\\b|T-Mobile G1|Z520m|Android [0-9.]+; Pixel",Nexus:"Nexus One|Nexus S|Galaxy.*Nexus|Android.*Nexus.*Mobile|Nexus 4|Nexus 5|Nexus 6",Dell:"Dell[;]? (Streak|Aero|Venue|Venue Pro|Flash|Smoke|Mini 3iX)|XCD28|XCD35|\\b001DL\\b|\\b101DL\\b|\\bGS01\\b",Motorola:"Motorola|DROIDX|DROID BIONIC|\\bDroid\\b.*Build|Android.*Xoom|HRI39|MOT-|A1260|A1680|A555|A853|A855|A953|A955|A956|Motorola.*ELECTRIFY|Motorola.*i1|i867|i940|MB200|MB300|MB501|MB502|MB508|MB511|MB520|MB525|MB526|MB611|MB612|MB632|MB810|MB855|MB860|MB861|MB865|MB870|ME501|ME502|ME511|ME525|ME600|ME632|ME722|ME811|ME860|ME863|ME865|MT620|MT710|MT716|MT720|MT810|MT870|MT917|Motorola.*TITANIUM|WX435|WX445|XT300|XT301|XT311|XT316|XT317|XT319|XT320|XT390|XT502|XT530|XT531|XT532|XT535|XT603|XT610|XT611|XT615|XT681|XT701|XT702|XT711|XT720|XT800|XT806|XT860|XT862|XT875|XT882|XT883|XT894|XT901|XT907|XT909|XT910|XT912|XT928|XT926|XT915|XT919|XT925|XT1021|\\bMoto E\\b|XT1068|XT1092|XT1052",Samsung:"\\bSamsung\\b|SM-G950F|SM-G955F|SM-G9250|GT-19300|SGH-I337|BGT-S5230|GT-B2100|GT-B2700|GT-B2710|GT-B3210|GT-B3310|GT-B3410|GT-B3730|GT-B3740|GT-B5510|GT-B5512|GT-B5722|GT-B6520|GT-B7300|GT-B7320|GT-B7330|GT-B7350|GT-B7510|GT-B7722|GT-B7800|GT-C3010|GT-C3011|GT-C3060|GT-C3200|GT-C3212|GT-C3212I|GT-C3262|GT-C3222|GT-C3300|GT-C3300K|GT-C3303|GT-C3303K|GT-C3310|GT-C3322|GT-C3330|GT-C3350|GT-C3500|GT-C3510|GT-C3530|GT-C3630|GT-C3780|GT-C5010|GT-C5212|GT-C6620|GT-C6625|GT-C6712|GT-E1050|GT-E1070|GT-E1075|GT-E1080|GT-E1081|GT-E1085|GT-E1087|GT-E1100|GT-E1107|GT-E1110|GT-E1120|GT-E1125|GT-E1130|GT-E1160|GT-E1170|GT-E1175|GT-E1180|GT-E1182|GT-E1200|GT-E1210|GT-E1225|GT-E1230|GT-E1390|GT-E2100|GT-E2120|GT-E2121|GT-E2152|GT-E2220|GT-E2222|GT-E2230|GT-E2232|GT-E2250|GT-E2370|GT-E2550|GT-E2652|GT-E3210|GT-E3213|GT-I5500|GT-I5503|GT-I5700|GT-I5800|GT-I5801|GT-I6410|GT-I6420|GT-I7110|GT-I7410|GT-I7500|GT-I8000|GT-I8150|GT-I8160|GT-I8190|GT-I8320|GT-I8330|GT-I8350|GT-I8530|GT-I8700|GT-I8703|GT-I8910|GT-I9000|GT-I9001|GT-I9003|GT-I9010|GT-I9020|GT-I9023|GT-I9070|GT-I9082|GT-I9100|GT-I9103|GT-I9220|GT-I9250|GT-I9300|GT-I9305|GT-I9500|GT-I9505|GT-M3510|GT-M5650|GT-M7500|GT-M7600|GT-M7603|GT-M8800|GT-M8910|GT-N7000|GT-S3110|GT-S3310|GT-S3350|GT-S3353|GT-S3370|GT-S3650|GT-S3653|GT-S3770|GT-S3850|GT-S5210|GT-S5220|GT-S5229|GT-S5230|GT-S5233|GT-S5250|GT-S5253|GT-S5260|GT-S5263|GT-S5270|GT-S5300|GT-S5330|GT-S5350|GT-S5360|GT-S5363|GT-S5369|GT-S5380|GT-S5380D|GT-S5560|GT-S5570|GT-S5600|GT-S5603|GT-S5610|GT-S5620|GT-S5660|GT-S5670|GT-S5690|GT-S5750|GT-S5780|GT-S5830|GT-S5839|GT-S6102|GT-S6500|GT-S7070|GT-S7200|GT-S7220|GT-S7230|GT-S7233|GT-S7250|GT-S7500|GT-S7530|GT-S7550|GT-S7562|GT-S7710|GT-S8000|GT-S8003|GT-S8500|GT-S8530|GT-S8600|SCH-A310|SCH-A530|SCH-A570|SCH-A610|SCH-A630|SCH-A650|SCH-A790|SCH-A795|SCH-A850|SCH-A870|SCH-A890|SCH-A930|SCH-A950|SCH-A970|SCH-A990|SCH-I100|SCH-I110|SCH-I400|SCH-I405|SCH-I500|SCH-I510|SCH-I515|SCH-I600|SCH-I730|SCH-I760|SCH-I770|SCH-I830|SCH-I910|SCH-I920|SCH-I959|SCH-LC11|SCH-N150|SCH-N300|SCH-R100|SCH-R300|SCH-R351|SCH-R400|SCH-R410|SCH-T300|SCH-U310|SCH-U320|SCH-U350|SCH-U360|SCH-U365|SCH-U370|SCH-U380|SCH-U410|SCH-U430|SCH-U450|SCH-U460|SCH-U470|SCH-U490|SCH-U540|SCH-U550|SCH-U620|SCH-U640|SCH-U650|SCH-U660|SCH-U700|SCH-U740|SCH-U750|SCH-U810|SCH-U820|SCH-U900|SCH-U940|SCH-U960|SCS-26UC|SGH-A107|SGH-A117|SGH-A127|SGH-A137|SGH-A157|SGH-A167|SGH-A177|SGH-A187|SGH-A197|SGH-A227|SGH-A237|SGH-A257|SGH-A437|SGH-A517|SGH-A597|SGH-A637|SGH-A657|SGH-A667|SGH-A687|SGH-A697|SGH-A707|SGH-A717|SGH-A727|SGH-A737|SGH-A747|SGH-A767|SGH-A777|SGH-A797|SGH-A817|SGH-A827|SGH-A837|SGH-A847|SGH-A867|SGH-A877|SGH-A887|SGH-A897|SGH-A927|SGH-B100|SGH-B130|SGH-B200|SGH-B220|SGH-C100|SGH-C110|SGH-C120|SGH-C130|SGH-C140|SGH-C160|SGH-C170|SGH-C180|SGH-C200|SGH-C207|SGH-C210|SGH-C225|SGH-C230|SGH-C417|SGH-C450|SGH-D307|SGH-D347|SGH-D357|SGH-D407|SGH-D415|SGH-D780|SGH-D807|SGH-D980|SGH-E105|SGH-E200|SGH-E315|SGH-E316|SGH-E317|SGH-E335|SGH-E590|SGH-E635|SGH-E715|SGH-E890|SGH-F300|SGH-F480|SGH-I200|SGH-I300|SGH-I320|SGH-I550|SGH-I577|SGH-I600|SGH-I607|SGH-I617|SGH-I627|SGH-I637|SGH-I677|SGH-I700|SGH-I717|SGH-I727|SGH-i747M|SGH-I777|SGH-I780|SGH-I827|SGH-I847|SGH-I857|SGH-I896|SGH-I897|SGH-I900|SGH-I907|SGH-I917|SGH-I927|SGH-I937|SGH-I997|SGH-J150|SGH-J200|SGH-L170|SGH-L700|SGH-M110|SGH-M150|SGH-M200|SGH-N105|SGH-N500|SGH-N600|SGH-N620|SGH-N625|SGH-N700|SGH-N710|SGH-P107|SGH-P207|SGH-P300|SGH-P310|SGH-P520|SGH-P735|SGH-P777|SGH-Q105|SGH-R210|SGH-R220|SGH-R225|SGH-S105|SGH-S307|SGH-T109|SGH-T119|SGH-T139|SGH-T209|SGH-T219|SGH-T229|SGH-T239|SGH-T249|SGH-T259|SGH-T309|SGH-T319|SGH-T329|SGH-T339|SGH-T349|SGH-T359|SGH-T369|SGH-T379|SGH-T409|SGH-T429|SGH-T439|SGH-T459|SGH-T469|SGH-T479|SGH-T499|SGH-T509|SGH-T519|SGH-T539|SGH-T559|SGH-T589|SGH-T609|SGH-T619|SGH-T629|SGH-T639|SGH-T659|SGH-T669|SGH-T679|SGH-T709|SGH-T719|SGH-T729|SGH-T739|SGH-T746|SGH-T749|SGH-T759|SGH-T769|SGH-T809|SGH-T819|SGH-T839|SGH-T919|SGH-T929|SGH-T939|SGH-T959|SGH-T989|SGH-U100|SGH-U200|SGH-U800|SGH-V205|SGH-V206|SGH-X100|SGH-X105|SGH-X120|SGH-X140|SGH-X426|SGH-X427|SGH-X475|SGH-X495|SGH-X497|SGH-X507|SGH-X600|SGH-X610|SGH-X620|SGH-X630|SGH-X700|SGH-X820|SGH-X890|SGH-Z130|SGH-Z150|SGH-Z170|SGH-ZX10|SGH-ZX20|SHW-M110|SPH-A120|SPH-A400|SPH-A420|SPH-A460|SPH-A500|SPH-A560|SPH-A600|SPH-A620|SPH-A660|SPH-A700|SPH-A740|SPH-A760|SPH-A790|SPH-A800|SPH-A820|SPH-A840|SPH-A880|SPH-A900|SPH-A940|SPH-A960|SPH-D600|SPH-D700|SPH-D710|SPH-D720|SPH-I300|SPH-I325|SPH-I330|SPH-I350|SPH-I500|SPH-I600|SPH-I700|SPH-L700|SPH-M100|SPH-M220|SPH-M240|SPH-M300|SPH-M305|SPH-M320|SPH-M330|SPH-M350|SPH-M360|SPH-M370|SPH-M380|SPH-M510|SPH-M540|SPH-M550|SPH-M560|SPH-M570|SPH-M580|SPH-M610|SPH-M620|SPH-M630|SPH-M800|SPH-M810|SPH-M850|SPH-M900|SPH-M910|SPH-M920|SPH-M930|SPH-N100|SPH-N200|SPH-N240|SPH-N300|SPH-N400|SPH-Z400|SWC-E100|SCH-i909|GT-N7100|GT-N7105|SCH-I535|SM-N900A|SGH-I317|SGH-T999L|GT-S5360B|GT-I8262|GT-S6802|GT-S6312|GT-S6310|GT-S5312|GT-S5310|GT-I9105|GT-I8510|GT-S6790N|SM-G7105|SM-N9005|GT-S5301|GT-I9295|GT-I9195|SM-C101|GT-S7392|GT-S7560|GT-B7610|GT-I5510|GT-S7582|GT-S7530E|GT-I8750|SM-G9006V|SM-G9008V|SM-G9009D|SM-G900A|SM-G900D|SM-G900F|SM-G900H|SM-G900I|SM-G900J|SM-G900K|SM-G900L|SM-G900M|SM-G900P|SM-G900R4|SM-G900S|SM-G900T|SM-G900V|SM-G900W8|SHV-E160K|SCH-P709|SCH-P729|SM-T2558|GT-I9205|SM-G9350|SM-J120F|SM-G920F|SM-G920V|SM-G930F|SM-N910C|SM-A310F|GT-I9190|SM-J500FN|SM-G903F|SM-J330F",LG:"\\bLG\\b;|LG[- ]?(C800|C900|E400|E610|E900|E-900|F160|F180K|F180L|F180S|730|855|L160|LS740|LS840|LS970|LU6200|MS690|MS695|MS770|MS840|MS870|MS910|P500|P700|P705|VM696|AS680|AS695|AX840|C729|E970|GS505|272|C395|E739BK|E960|L55C|L75C|LS696|LS860|P769BK|P350|P500|P509|P870|UN272|US730|VS840|VS950|LN272|LN510|LS670|LS855|LW690|MN270|MN510|P509|P769|P930|UN200|UN270|UN510|UN610|US670|US740|US760|UX265|UX840|VN271|VN530|VS660|VS700|VS740|VS750|VS910|VS920|VS930|VX9200|VX11000|AX840A|LW770|P506|P925|P999|E612|D955|D802|MS323|M257)|LM-G710",Sony:"SonyST|SonyLT|SonyEricsson|SonyEricssonLT15iv|LT18i|E10i|LT28h|LT26w|SonyEricssonMT27i|C5303|C6902|C6903|C6906|C6943|D2533",Asus:"Asus.*Galaxy|PadFone.*Mobile",NokiaLumia:"Lumia [0-9]{3,4}",Micromax:"Micromax.*\\b(A210|A92|A88|A72|A111|A110Q|A115|A116|A110|A90S|A26|A51|A35|A54|A25|A27|A89|A68|A65|A57|A90)\\b",Palm:"PalmSource|Palm",Vertu:"Vertu|Vertu.*Ltd|Vertu.*Ascent|Vertu.*Ayxta|Vertu.*Constellation(F|Quest)?|Vertu.*Monika|Vertu.*Signature",Pantech:"PANTECH|IM-A850S|IM-A840S|IM-A830L|IM-A830K|IM-A830S|IM-A820L|IM-A810K|IM-A810S|IM-A800S|IM-T100K|IM-A725L|IM-A780L|IM-A775C|IM-A770K|IM-A760S|IM-A750K|IM-A740S|IM-A730S|IM-A720L|IM-A710K|IM-A690L|IM-A690S|IM-A650S|IM-A630K|IM-A600S|VEGA PTL21|PT003|P8010|ADR910L|P6030|P6020|P9070|P4100|P9060|P5000|CDM8992|TXT8045|ADR8995|IS11PT|P2030|P6010|P8000|PT002|IS06|CDM8999|P9050|PT001|TXT8040|P2020|P9020|P2000|P7040|P7000|C790",Fly:"IQ230|IQ444|IQ450|IQ440|IQ442|IQ441|IQ245|IQ256|IQ236|IQ255|IQ235|IQ245|IQ275|IQ240|IQ285|IQ280|IQ270|IQ260|IQ250",Wiko:"KITE 4G|HIGHWAY|GETAWAY|STAIRWAY|DARKSIDE|DARKFULL|DARKNIGHT|DARKMOON|SLIDE|WAX 4G|RAINBOW|BLOOM|SUNSET|GOA(?!nna)|LENNY|BARRY|IGGY|OZZY|CINK FIVE|CINK PEAX|CINK PEAX 2|CINK SLIM|CINK SLIM 2|CINK +|CINK KING|CINK PEAX|CINK SLIM|SUBLIM",iMobile:"i-mobile (IQ|i-STYLE|idea|ZAA|Hitz)",SimValley:"\\b(SP-80|XT-930|SX-340|XT-930|SX-310|SP-360|SP60|SPT-800|SP-120|SPT-800|SP-140|SPX-5|SPX-8|SP-100|SPX-8|SPX-12)\\b",Wolfgang:"AT-B24D|AT-AS50HD|AT-AS40W|AT-AS55HD|AT-AS45q2|AT-B26D|AT-AS50Q",Alcatel:"Alcatel",Nintendo:"Nintendo (3DS|Switch)",Amoi:"Amoi",INQ:"INQ",OnePlus:"ONEPLUS",GenericPhone:"Tapatalk|PDA;|SAGEM|\\bmmp\\b|pocket|\\bpsp\\b|symbian|Smartphone|smartfon|treo|up.browser|up.link|vodafone|\\bwap\\b|nokia|Series40|Series60|S60|SonyEricsson|N900|MAUI.*WAP.*Browser"},tablets:{iPad:"iPad|iPad.*Mobile",NexusTablet:"Android.*Nexus[\\s]+(7|9|10)",GoogleTablet:"Android.*Pixel C",SamsungTablet:"SAMSUNG.*Tablet|Galaxy.*Tab|SC-01C|GT-P1000|GT-P1003|GT-P1010|GT-P3105|GT-P6210|GT-P6800|GT-P6810|GT-P7100|GT-P7300|GT-P7310|GT-P7500|GT-P7510|SCH-I800|SCH-I815|SCH-I905|SGH-I957|SGH-I987|SGH-T849|SGH-T859|SGH-T869|SPH-P100|GT-P3100|GT-P3108|GT-P3110|GT-P5100|GT-P5110|GT-P6200|GT-P7320|GT-P7511|GT-N8000|GT-P8510|SGH-I497|SPH-P500|SGH-T779|SCH-I705|SCH-I915|GT-N8013|GT-P3113|GT-P5113|GT-P8110|GT-N8010|GT-N8005|GT-N8020|GT-P1013|GT-P6201|GT-P7501|GT-N5100|GT-N5105|GT-N5110|SHV-E140K|SHV-E140L|SHV-E140S|SHV-E150S|SHV-E230K|SHV-E230L|SHV-E230S|SHW-M180K|SHW-M180L|SHW-M180S|SHW-M180W|SHW-M300W|SHW-M305W|SHW-M380K|SHW-M380S|SHW-M380W|SHW-M430W|SHW-M480K|SHW-M480S|SHW-M480W|SHW-M485W|SHW-M486W|SHW-M500W|GT-I9228|SCH-P739|SCH-I925|GT-I9200|GT-P5200|GT-P5210|GT-P5210X|SM-T311|SM-T310|SM-T310X|SM-T210|SM-T210R|SM-T211|SM-P600|SM-P601|SM-P605|SM-P900|SM-P901|SM-T217|SM-T217A|SM-T217S|SM-P6000|SM-T3100|SGH-I467|XE500|SM-T110|GT-P5220|GT-I9200X|GT-N5110X|GT-N5120|SM-P905|SM-T111|SM-T2105|SM-T315|SM-T320|SM-T320X|SM-T321|SM-T520|SM-T525|SM-T530NU|SM-T230NU|SM-T330NU|SM-T900|XE500T1C|SM-P605V|SM-P905V|SM-T337V|SM-T537V|SM-T707V|SM-T807V|SM-P600X|SM-P900X|SM-T210X|SM-T230|SM-T230X|SM-T325|GT-P7503|SM-T531|SM-T330|SM-T530|SM-T705|SM-T705C|SM-T535|SM-T331|SM-T800|SM-T700|SM-T537|SM-T807|SM-P907A|SM-T337A|SM-T537A|SM-T707A|SM-T807A|SM-T237|SM-T807P|SM-P607T|SM-T217T|SM-T337T|SM-T807T|SM-T116NQ|SM-T116BU|SM-P550|SM-T350|SM-T550|SM-T9000|SM-P9000|SM-T705Y|SM-T805|GT-P3113|SM-T710|SM-T810|SM-T815|SM-T360|SM-T533|SM-T113|SM-T335|SM-T715|SM-T560|SM-T670|SM-T677|SM-T377|SM-T567|SM-T357T|SM-T555|SM-T561|SM-T713|SM-T719|SM-T813|SM-T819|SM-T580|SM-T355Y?|SM-T280|SM-T817A|SM-T820|SM-W700|SM-P580|SM-T587|SM-P350|SM-P555M|SM-P355M|SM-T113NU|SM-T815Y|SM-T585|SM-T285|SM-T825|SM-W708|SM-T835|SM-T830|SM-T837V|SM-T720|SM-T510|SM-T387V",Kindle:"Kindle|Silk.*Accelerated|Android.*\\b(KFOT|KFTT|KFJWI|KFJWA|KFOTE|KFSOWI|KFTHWI|KFTHWA|KFAPWI|KFAPWA|WFJWAE|KFSAWA|KFSAWI|KFASWI|KFARWI|KFFOWI|KFGIWI|KFMEWI)\\b|Android.*Silk/[0-9.]+ like Chrome/[0-9.]+ (?!Mobile)",SurfaceTablet:"Windows NT [0-9.]+; ARM;.*(Tablet|ARMBJS)",HPTablet:"HP Slate (7|8|10)|HP ElitePad 900|hp-tablet|EliteBook.*Touch|HP 8|Slate 21|HP SlateBook 10",AsusTablet:"^.*PadFone((?!Mobile).)*$|Transformer|TF101|TF101G|TF300T|TF300TG|TF300TL|TF700T|TF700KL|TF701T|TF810C|ME171|ME301T|ME302C|ME371MG|ME370T|ME372MG|ME172V|ME173X|ME400C|Slider SL101|\\bK00F\\b|\\bK00C\\b|\\bK00E\\b|\\bK00L\\b|TX201LA|ME176C|ME102A|\\bM80TA\\b|ME372CL|ME560CG|ME372CG|ME302KL| K010 | K011 | K017 | K01E |ME572C|ME103K|ME170C|ME171C|\\bME70C\\b|ME581C|ME581CL|ME8510C|ME181C|P01Y|PO1MA|P01Z|\\bP027\\b|\\bP024\\b|\\bP00C\\b",BlackBerryTablet:"PlayBook|RIM Tablet",HTCtablet:"HTC_Flyer_P512|HTC Flyer|HTC Jetstream|HTC-P715a|HTC EVO View 4G|PG41200|PG09410",MotorolaTablet:"xoom|sholest|MZ615|MZ605|MZ505|MZ601|MZ602|MZ603|MZ604|MZ606|MZ607|MZ608|MZ609|MZ615|MZ616|MZ617",NookTablet:"Android.*Nook|NookColor|nook browser|BNRV200|BNRV200A|BNTV250|BNTV250A|BNTV400|BNTV600|LogicPD Zoom2",AcerTablet:"Android.*; \\b(A100|A101|A110|A200|A210|A211|A500|A501|A510|A511|A700|A701|W500|W500P|W501|W501P|W510|W511|W700|G100|G100W|B1-A71|B1-710|B1-711|A1-810|A1-811|A1-830)\\b|W3-810|\\bA3-A10\\b|\\bA3-A11\\b|\\bA3-A20\\b|\\bA3-A30",ToshibaTablet:"Android.*(AT100|AT105|AT200|AT205|AT270|AT275|AT300|AT305|AT1S5|AT500|AT570|AT700|AT830)|TOSHIBA.*FOLIO",LGTablet:"\\bL-06C|LG-V909|LG-V900|LG-V700|LG-V510|LG-V500|LG-V410|LG-V400|LG-VK810\\b",FujitsuTablet:"Android.*\\b(F-01D|F-02F|F-05E|F-10D|M532|Q572)\\b",PrestigioTablet:"PMP3170B|PMP3270B|PMP3470B|PMP7170B|PMP3370B|PMP3570C|PMP5870C|PMP3670B|PMP5570C|PMP5770D|PMP3970B|PMP3870C|PMP5580C|PMP5880D|PMP5780D|PMP5588C|PMP7280C|PMP7280C3G|PMP7280|PMP7880D|PMP5597D|PMP5597|PMP7100D|PER3464|PER3274|PER3574|PER3884|PER5274|PER5474|PMP5097CPRO|PMP5097|PMP7380D|PMP5297C|PMP5297C_QUAD|PMP812E|PMP812E3G|PMP812F|PMP810E|PMP880TD|PMT3017|PMT3037|PMT3047|PMT3057|PMT7008|PMT5887|PMT5001|PMT5002",LenovoTablet:"Lenovo TAB|Idea(Tab|Pad)( A1|A10| K1|)|ThinkPad([ ]+)?Tablet|YT3-850M|YT3-X90L|YT3-X90F|YT3-X90X|Lenovo.*(S2109|S2110|S5000|S6000|K3011|A3000|A3500|A1000|A2107|A2109|A1107|A5500|A7600|B6000|B8000|B8080)(-|)(FL|F|HV|H|)|TB-X103F|TB-X304X|TB-X304F|TB-X304L|TB-X505F|TB-X505L|TB-X505X|TB-X605F|TB-X605L|TB-8703F|TB-8703X|TB-8703N|TB-8704N|TB-8704F|TB-8704X|TB-8704V|TB-7304F|TB-7304I|TB-7304X|Tab2A7-10F|Tab2A7-20F|TB2-X30L|YT3-X50L|YT3-X50F|YT3-X50M|YT-X705F|YT-X703F|YT-X703L|YT-X705L|YT-X705X|TB2-X30F|TB2-X30L|TB2-X30M|A2107A-F|A2107A-H|TB3-730F|TB3-730M|TB3-730X|TB-7504F|TB-7504X",DellTablet:"Venue 11|Venue 8|Venue 7|Dell Streak 10|Dell Streak 7",YarvikTablet:"Android.*\\b(TAB210|TAB211|TAB224|TAB250|TAB260|TAB264|TAB310|TAB360|TAB364|TAB410|TAB411|TAB420|TAB424|TAB450|TAB460|TAB461|TAB464|TAB465|TAB467|TAB468|TAB07-100|TAB07-101|TAB07-150|TAB07-151|TAB07-152|TAB07-200|TAB07-201-3G|TAB07-210|TAB07-211|TAB07-212|TAB07-214|TAB07-220|TAB07-400|TAB07-485|TAB08-150|TAB08-200|TAB08-201-3G|TAB08-201-30|TAB09-100|TAB09-211|TAB09-410|TAB10-150|TAB10-201|TAB10-211|TAB10-400|TAB10-410|TAB13-201|TAB274EUK|TAB275EUK|TAB374EUK|TAB462EUK|TAB474EUK|TAB9-200)\\b",MedionTablet:"Android.*\\bOYO\\b|LIFE.*(P9212|P9514|P9516|S9512)|LIFETAB",ArnovaTablet:"97G4|AN10G2|AN7bG3|AN7fG3|AN8G3|AN8cG3|AN7G3|AN9G3|AN7dG3|AN7dG3ST|AN7dG3ChildPad|AN10bG3|AN10bG3DT|AN9G2",IntensoTablet:"INM8002KP|INM1010FP|INM805ND|Intenso Tab|TAB1004",IRUTablet:"M702pro",MegafonTablet:"MegaFon V9|\\bZTE V9\\b|Android.*\\bMT7A\\b",EbodaTablet:"E-Boda (Supreme|Impresspeed|Izzycomm|Essential)",AllViewTablet:"Allview.*(Viva|Alldro|City|Speed|All TV|Frenzy|Quasar|Shine|TX1|AX1|AX2)",ArchosTablet:"\\b(101G9|80G9|A101IT)\\b|Qilive 97R|Archos5|\\bARCHOS (70|79|80|90|97|101|FAMILYPAD|)(b|c|)(G10| Cobalt| TITANIUM(HD|)| Xenon| Neon|XSK| 2| XS 2| PLATINUM| CARBON|GAMEPAD)\\b",AinolTablet:"NOVO7|NOVO8|NOVO10|Novo7Aurora|Novo7Basic|NOVO7PALADIN|novo9-Spark",NokiaLumiaTablet:"Lumia 2520",SonyTablet:"Sony.*Tablet|Xperia Tablet|Sony Tablet S|SO-03E|SGPT12|SGPT13|SGPT114|SGPT121|SGPT122|SGPT123|SGPT111|SGPT112|SGPT113|SGPT131|SGPT132|SGPT133|SGPT211|SGPT212|SGPT213|SGP311|SGP312|SGP321|EBRD1101|EBRD1102|EBRD1201|SGP351|SGP341|SGP511|SGP512|SGP521|SGP541|SGP551|SGP621|SGP641|SGP612|SOT31|SGP771|SGP611|SGP612|SGP712",PhilipsTablet:"\\b(PI2010|PI3000|PI3100|PI3105|PI3110|PI3205|PI3210|PI3900|PI4010|PI7000|PI7100)\\b",CubeTablet:"Android.*(K8GT|U9GT|U10GT|U16GT|U17GT|U18GT|U19GT|U20GT|U23GT|U30GT)|CUBE U8GT",CobyTablet:"MID1042|MID1045|MID1125|MID1126|MID7012|MID7014|MID7015|MID7034|MID7035|MID7036|MID7042|MID7048|MID7127|MID8042|MID8048|MID8127|MID9042|MID9740|MID9742|MID7022|MID7010",MIDTablet:"M9701|M9000|M9100|M806|M1052|M806|T703|MID701|MID713|MID710|MID727|MID760|MID830|MID728|MID933|MID125|MID810|MID732|MID120|MID930|MID800|MID731|MID900|MID100|MID820|MID735|MID980|MID130|MID833|MID737|MID960|MID135|MID860|MID736|MID140|MID930|MID835|MID733|MID4X10",MSITablet:"MSI \\b(Primo 73K|Primo 73L|Primo 81L|Primo 77|Primo 93|Primo 75|Primo 76|Primo 73|Primo 81|Primo 91|Primo 90|Enjoy 71|Enjoy 7|Enjoy 10)\\b",SMiTTablet:"Android.*(\\bMID\\b|MID-560|MTV-T1200|MTV-PND531|MTV-P1101|MTV-PND530)",RockChipTablet:"Android.*(RK2818|RK2808A|RK2918|RK3066)|RK2738|RK2808A",FlyTablet:"IQ310|Fly Vision",bqTablet:"Android.*(bq)?.*\\b(Elcano|Curie|Edison|Maxwell|Kepler|Pascal|Tesla|Hypatia|Platon|Newton|Livingstone|Cervantes|Avant|Aquaris ([E|M]10|M8))\\b|Maxwell.*Lite|Maxwell.*Plus",HuaweiTablet:"MediaPad|MediaPad 7 Youth|IDEOS S7|S7-201c|S7-202u|S7-101|S7-103|S7-104|S7-105|S7-106|S7-201|S7-Slim|M2-A01L|BAH-L09|BAH-W09|AGS-L09|CMR-AL19",NecTablet:"\\bN-06D|\\bN-08D",PantechTablet:"Pantech.*P4100",BronchoTablet:"Broncho.*(N701|N708|N802|a710)",VersusTablet:"TOUCHPAD.*[78910]|\\bTOUCHTAB\\b",ZyncTablet:"z1000|Z99 2G|z930|z990|z909|Z919|z900",PositivoTablet:"TB07STA|TB10STA|TB07FTA|TB10FTA",NabiTablet:"Android.*\\bNabi",KoboTablet:"Kobo Touch|\\bK080\\b|\\bVox\\b Build|\\bArc\\b Build",DanewTablet:"DSlide.*\\b(700|701R|702|703R|704|802|970|971|972|973|974|1010|1012)\\b",TexetTablet:"NaviPad|TB-772A|TM-7045|TM-7055|TM-9750|TM-7016|TM-7024|TM-7026|TM-7041|TM-7043|TM-7047|TM-8041|TM-9741|TM-9747|TM-9748|TM-9751|TM-7022|TM-7021|TM-7020|TM-7011|TM-7010|TM-7023|TM-7025|TM-7037W|TM-7038W|TM-7027W|TM-9720|TM-9725|TM-9737W|TM-1020|TM-9738W|TM-9740|TM-9743W|TB-807A|TB-771A|TB-727A|TB-725A|TB-719A|TB-823A|TB-805A|TB-723A|TB-715A|TB-707A|TB-705A|TB-709A|TB-711A|TB-890HD|TB-880HD|TB-790HD|TB-780HD|TB-770HD|TB-721HD|TB-710HD|TB-434HD|TB-860HD|TB-840HD|TB-760HD|TB-750HD|TB-740HD|TB-730HD|TB-722HD|TB-720HD|TB-700HD|TB-500HD|TB-470HD|TB-431HD|TB-430HD|TB-506|TB-504|TB-446|TB-436|TB-416|TB-146SE|TB-126SE",PlaystationTablet:"Playstation.*(Portable|Vita)",TrekstorTablet:"ST10416-1|VT10416-1|ST70408-1|ST702xx-1|ST702xx-2|ST80208|ST97216|ST70104-2|VT10416-2|ST10216-2A|SurfTab",PyleAudioTablet:"\\b(PTBL10CEU|PTBL10C|PTBL72BC|PTBL72BCEU|PTBL7CEU|PTBL7C|PTBL92BC|PTBL92BCEU|PTBL9CEU|PTBL9CUK|PTBL9C)\\b",AdvanTablet:"Android.* \\b(E3A|T3X|T5C|T5B|T3E|T3C|T3B|T1J|T1F|T2A|T1H|T1i|E1C|T1-E|T5-A|T4|E1-B|T2Ci|T1-B|T1-D|O1-A|E1-A|T1-A|T3A|T4i)\\b ",DanyTechTablet:"Genius Tab G3|Genius Tab S2|Genius Tab Q3|Genius Tab G4|Genius Tab Q4|Genius Tab G-II|Genius TAB GII|Genius TAB GIII|Genius Tab S1",GalapadTablet:"Android.*\\bG1\\b(?!\\))",MicromaxTablet:"Funbook|Micromax.*\\b(P250|P560|P360|P362|P600|P300|P350|P500|P275)\\b",KarbonnTablet:"Android.*\\b(A39|A37|A34|ST8|ST10|ST7|Smart Tab3|Smart Tab2)\\b",AllFineTablet:"Fine7 Genius|Fine7 Shine|Fine7 Air|Fine8 Style|Fine9 More|Fine10 Joy|Fine11 Wide",PROSCANTablet:"\\b(PEM63|PLT1023G|PLT1041|PLT1044|PLT1044G|PLT1091|PLT4311|PLT4311PL|PLT4315|PLT7030|PLT7033|PLT7033D|PLT7035|PLT7035D|PLT7044K|PLT7045K|PLT7045KB|PLT7071KG|PLT7072|PLT7223G|PLT7225G|PLT7777G|PLT7810K|PLT7849G|PLT7851G|PLT7852G|PLT8015|PLT8031|PLT8034|PLT8036|PLT8080K|PLT8082|PLT8088|PLT8223G|PLT8234G|PLT8235G|PLT8816K|PLT9011|PLT9045K|PLT9233G|PLT9735|PLT9760G|PLT9770G)\\b",YONESTablet:"BQ1078|BC1003|BC1077|RK9702|BC9730|BC9001|IT9001|BC7008|BC7010|BC708|BC728|BC7012|BC7030|BC7027|BC7026",ChangJiaTablet:"TPC7102|TPC7103|TPC7105|TPC7106|TPC7107|TPC7201|TPC7203|TPC7205|TPC7210|TPC7708|TPC7709|TPC7712|TPC7110|TPC8101|TPC8103|TPC8105|TPC8106|TPC8203|TPC8205|TPC8503|TPC9106|TPC9701|TPC97101|TPC97103|TPC97105|TPC97106|TPC97111|TPC97113|TPC97203|TPC97603|TPC97809|TPC97205|TPC10101|TPC10103|TPC10106|TPC10111|TPC10203|TPC10205|TPC10503",GUTablet:"TX-A1301|TX-M9002|Q702|kf026",PointOfViewTablet:"TAB-P506|TAB-navi-7-3G-M|TAB-P517|TAB-P-527|TAB-P701|TAB-P703|TAB-P721|TAB-P731N|TAB-P741|TAB-P825|TAB-P905|TAB-P925|TAB-PR945|TAB-PL1015|TAB-P1025|TAB-PI1045|TAB-P1325|TAB-PROTAB[0-9]+|TAB-PROTAB25|TAB-PROTAB26|TAB-PROTAB27|TAB-PROTAB26XL|TAB-PROTAB2-IPS9|TAB-PROTAB30-IPS9|TAB-PROTAB25XXL|TAB-PROTAB26-IPS10|TAB-PROTAB30-IPS10",OvermaxTablet:"OV-(SteelCore|NewBase|Basecore|Baseone|Exellen|Quattor|EduTab|Solution|ACTION|BasicTab|TeddyTab|MagicTab|Stream|TB-08|TB-09)|Qualcore 1027",HCLTablet:"HCL.*Tablet|Connect-3G-2.0|Connect-2G-2.0|ME Tablet U1|ME Tablet U2|ME Tablet G1|ME Tablet X1|ME Tablet Y2|ME Tablet Sync",DPSTablet:"DPS Dream 9|DPS Dual 7",VistureTablet:"V97 HD|i75 3G|Visture V4( HD)?|Visture V5( HD)?|Visture V10",CrestaTablet:"CTP(-)?810|CTP(-)?818|CTP(-)?828|CTP(-)?838|CTP(-)?888|CTP(-)?978|CTP(-)?980|CTP(-)?987|CTP(-)?988|CTP(-)?989",MediatekTablet:"\\bMT8125|MT8389|MT8135|MT8377\\b",ConcordeTablet:"Concorde([ ]+)?Tab|ConCorde ReadMan",GoCleverTablet:"GOCLEVER TAB|A7GOCLEVER|M1042|M7841|M742|R1042BK|R1041|TAB A975|TAB A7842|TAB A741|TAB A741L|TAB M723G|TAB M721|TAB A1021|TAB I921|TAB R721|TAB I720|TAB T76|TAB R70|TAB R76.2|TAB R106|TAB R83.2|TAB M813G|TAB I721|GCTA722|TAB I70|TAB I71|TAB S73|TAB R73|TAB R74|TAB R93|TAB R75|TAB R76.1|TAB A73|TAB A93|TAB A93.2|TAB T72|TAB R83|TAB R974|TAB R973|TAB A101|TAB A103|TAB A104|TAB A104.2|R105BK|M713G|A972BK|TAB A971|TAB R974.2|TAB R104|TAB R83.3|TAB A1042",ModecomTablet:"FreeTAB 9000|FreeTAB 7.4|FreeTAB 7004|FreeTAB 7800|FreeTAB 2096|FreeTAB 7.5|FreeTAB 1014|FreeTAB 1001 |FreeTAB 8001|FreeTAB 9706|FreeTAB 9702|FreeTAB 7003|FreeTAB 7002|FreeTAB 1002|FreeTAB 7801|FreeTAB 1331|FreeTAB 1004|FreeTAB 8002|FreeTAB 8014|FreeTAB 9704|FreeTAB 1003",VoninoTablet:"\\b(Argus[ _]?S|Diamond[ _]?79HD|Emerald[ _]?78E|Luna[ _]?70C|Onyx[ _]?S|Onyx[ _]?Z|Orin[ _]?HD|Orin[ _]?S|Otis[ _]?S|SpeedStar[ _]?S|Magnet[ _]?M9|Primus[ _]?94[ _]?3G|Primus[ _]?94HD|Primus[ _]?QS|Android.*\\bQ8\\b|Sirius[ _]?EVO[ _]?QS|Sirius[ _]?QS|Spirit[ _]?S)\\b",ECSTablet:"V07OT2|TM105A|S10OT1|TR10CS1",StorexTablet:"eZee[_']?(Tab|Go)[0-9]+|TabLC7|Looney Tunes Tab",VodafoneTablet:"SmartTab([ ]+)?[0-9]+|SmartTabII10|SmartTabII7|VF-1497|VFD 1400",EssentielBTablet:"Smart[ ']?TAB[ ]+?[0-9]+|Family[ ']?TAB2",RossMoorTablet:"RM-790|RM-997|RMD-878G|RMD-974R|RMT-705A|RMT-701|RME-601|RMT-501|RMT-711",iMobileTablet:"i-mobile i-note",TolinoTablet:"tolino tab [0-9.]+|tolino shine",AudioSonicTablet:"\\bC-22Q|T7-QC|T-17B|T-17P\\b",AMPETablet:"Android.* A78 ",SkkTablet:"Android.* (SKYPAD|PHOENIX|CYCLOPS)",TecnoTablet:"TECNO P9|TECNO DP8D",JXDTablet:"Android.* \\b(F3000|A3300|JXD5000|JXD3000|JXD2000|JXD300B|JXD300|S5800|S7800|S602b|S5110b|S7300|S5300|S602|S603|S5100|S5110|S601|S7100a|P3000F|P3000s|P101|P200s|P1000m|P200m|P9100|P1000s|S6600b|S908|P1000|P300|S18|S6600|S9100)\\b",iJoyTablet:"Tablet (Spirit 7|Essentia|Galatea|Fusion|Onix 7|Landa|Titan|Scooby|Deox|Stella|Themis|Argon|Unique 7|Sygnus|Hexen|Finity 7|Cream|Cream X2|Jade|Neon 7|Neron 7|Kandy|Scape|Saphyr 7|Rebel|Biox|Rebel|Rebel 8GB|Myst|Draco 7|Myst|Tab7-004|Myst|Tadeo Jones|Tablet Boing|Arrow|Draco Dual Cam|Aurix|Mint|Amity|Revolution|Finity 9|Neon 9|T9w|Amity 4GB Dual Cam|Stone 4GB|Stone 8GB|Andromeda|Silken|X2|Andromeda II|Halley|Flame|Saphyr 9,7|Touch 8|Planet|Triton|Unique 10|Hexen 10|Memphis 4GB|Memphis 8GB|Onix 10)",FX2Tablet:"FX2 PAD7|FX2 PAD10",XoroTablet:"KidsPAD 701|PAD[ ]?712|PAD[ ]?714|PAD[ ]?716|PAD[ ]?717|PAD[ ]?718|PAD[ ]?720|PAD[ ]?721|PAD[ ]?722|PAD[ ]?790|PAD[ ]?792|PAD[ ]?900|PAD[ ]?9715D|PAD[ ]?9716DR|PAD[ ]?9718DR|PAD[ ]?9719QR|PAD[ ]?9720QR|TelePAD1030|Telepad1032|TelePAD730|TelePAD731|TelePAD732|TelePAD735Q|TelePAD830|TelePAD9730|TelePAD795|MegaPAD 1331|MegaPAD 1851|MegaPAD 2151",ViewsonicTablet:"ViewPad 10pi|ViewPad 10e|ViewPad 10s|ViewPad E72|ViewPad7|ViewPad E100|ViewPad 7e|ViewSonic VB733|VB100a",VerizonTablet:"QTAQZ3|QTAIR7|QTAQTZ3|QTASUN1|QTASUN2|QTAXIA1",OdysTablet:"LOOX|XENO10|ODYS[ -](Space|EVO|Xpress|NOON)|\\bXELIO\\b|Xelio10Pro|XELIO7PHONETAB|XELIO10EXTREME|XELIOPT2|NEO_QUAD10",CaptivaTablet:"CAPTIVA PAD",IconbitTablet:"NetTAB|NT-3702|NT-3702S|NT-3702S|NT-3603P|NT-3603P|NT-0704S|NT-0704S|NT-3805C|NT-3805C|NT-0806C|NT-0806C|NT-0909T|NT-0909T|NT-0907S|NT-0907S|NT-0902S|NT-0902S",TeclastTablet:"T98 4G|\\bP80\\b|\\bX90HD\\b|X98 Air|X98 Air 3G|\\bX89\\b|P80 3G|\\bX80h\\b|P98 Air|\\bX89HD\\b|P98 3G|\\bP90HD\\b|P89 3G|X98 3G|\\bP70h\\b|P79HD 3G|G18d 3G|\\bP79HD\\b|\\bP89s\\b|\\bA88\\b|\\bP10HD\\b|\\bP19HD\\b|G18 3G|\\bP78HD\\b|\\bA78\\b|\\bP75\\b|G17s 3G|G17h 3G|\\bP85t\\b|\\bP90\\b|\\bP11\\b|\\bP98t\\b|\\bP98HD\\b|\\bG18d\\b|\\bP85s\\b|\\bP11HD\\b|\\bP88s\\b|\\bA80HD\\b|\\bA80se\\b|\\bA10h\\b|\\bP89\\b|\\bP78s\\b|\\bG18\\b|\\bP85\\b|\\bA70h\\b|\\bA70\\b|\\bG17\\b|\\bP18\\b|\\bA80s\\b|\\bA11s\\b|\\bP88HD\\b|\\bA80h\\b|\\bP76s\\b|\\bP76h\\b|\\bP98\\b|\\bA10HD\\b|\\bP78\\b|\\bP88\\b|\\bA11\\b|\\bA10t\\b|\\bP76a\\b|\\bP76t\\b|\\bP76e\\b|\\bP85HD\\b|\\bP85a\\b|\\bP86\\b|\\bP75HD\\b|\\bP76v\\b|\\bA12\\b|\\bP75a\\b|\\bA15\\b|\\bP76Ti\\b|\\bP81HD\\b|\\bA10\\b|\\bT760VE\\b|\\bT720HD\\b|\\bP76\\b|\\bP73\\b|\\bP71\\b|\\bP72\\b|\\bT720SE\\b|\\bC520Ti\\b|\\bT760\\b|\\bT720VE\\b|T720-3GE|T720-WiFi",OndaTablet:"\\b(V975i|Vi30|VX530|V701|Vi60|V701s|Vi50|V801s|V719|Vx610w|VX610W|V819i|Vi10|VX580W|Vi10|V711s|V813|V811|V820w|V820|Vi20|V711|VI30W|V712|V891w|V972|V819w|V820w|Vi60|V820w|V711|V813s|V801|V819|V975s|V801|V819|V819|V818|V811|V712|V975m|V101w|V961w|V812|V818|V971|V971s|V919|V989|V116w|V102w|V973|Vi40)\\b[\\s]+|V10 \\b4G\\b",JaytechTablet:"TPC-PA762",BlaupunktTablet:"Endeavour 800NG|Endeavour 1010",DigmaTablet:"\\b(iDx10|iDx9|iDx8|iDx7|iDxD7|iDxD8|iDsQ8|iDsQ7|iDsQ8|iDsD10|iDnD7|3TS804H|iDsQ11|iDj7|iDs10)\\b",EvolioTablet:"ARIA_Mini_wifi|Aria[ _]Mini|Evolio X10|Evolio X7|Evolio X8|\\bEvotab\\b|\\bNeura\\b",LavaTablet:"QPAD E704|\\bIvoryS\\b|E-TAB IVORY|\\bE-TAB\\b",AocTablet:"MW0811|MW0812|MW0922|MTK8382|MW1031|MW0831|MW0821|MW0931|MW0712",MpmanTablet:"MP11 OCTA|MP10 OCTA|MPQC1114|MPQC1004|MPQC994|MPQC974|MPQC973|MPQC804|MPQC784|MPQC780|\\bMPG7\\b|MPDCG75|MPDCG71|MPDC1006|MP101DC|MPDC9000|MPDC905|MPDC706HD|MPDC706|MPDC705|MPDC110|MPDC100|MPDC99|MPDC97|MPDC88|MPDC8|MPDC77|MP709|MID701|MID711|MID170|MPDC703|MPQC1010",CelkonTablet:"CT695|CT888|CT[\\s]?910|CT7 Tab|CT9 Tab|CT3 Tab|CT2 Tab|CT1 Tab|C820|C720|\\bCT-1\\b",WolderTablet:"miTab \\b(DIAMOND|SPACE|BROOKLYN|NEO|FLY|MANHATTAN|FUNK|EVOLUTION|SKY|GOCAR|IRON|GENIUS|POP|MINT|EPSILON|BROADWAY|JUMP|HOP|LEGEND|NEW AGE|LINE|ADVANCE|FEEL|FOLLOW|LIKE|LINK|LIVE|THINK|FREEDOM|CHICAGO|CLEVELAND|BALTIMORE-GH|IOWA|BOSTON|SEATTLE|PHOENIX|DALLAS|IN 101|MasterChef)\\b",MediacomTablet:"M-MPI10C3G|M-SP10EG|M-SP10EGP|M-SP10HXAH|M-SP7HXAH|M-SP10HXBH|M-SP8HXAH|M-SP8MXA",MiTablet:"\\bMI PAD\\b|\\bHM NOTE 1W\\b",NibiruTablet:"Nibiru M1|Nibiru Jupiter One",NexoTablet:"NEXO NOVA|NEXO 10|NEXO AVIO|NEXO FREE|NEXO GO|NEXO EVO|NEXO 3G|NEXO SMART|NEXO KIDDO|NEXO MOBI",LeaderTablet:"TBLT10Q|TBLT10I|TBL-10WDKB|TBL-10WDKBO2013|TBL-W230V2|TBL-W450|TBL-W500|SV572|TBLT7I|TBA-AC7-8G|TBLT79|TBL-8W16|TBL-10W32|TBL-10WKB|TBL-W100",UbislateTablet:"UbiSlate[\\s]?7C",PocketBookTablet:"Pocketbook",KocasoTablet:"\\b(TB-1207)\\b",HisenseTablet:"\\b(F5281|E2371)\\b",Hudl:"Hudl HT7S3|Hudl 2",TelstraTablet:"T-Hub2",GenericTablet:"Android.*\\b97D\\b|Tablet(?!.*PC)|BNTV250A|MID-WCDMA|LogicPD Zoom2|\\bA7EB\\b|CatNova8|A1_07|CT704|CT1002|\\bM721\\b|rk30sdk|\\bEVOTAB\\b|M758A|ET904|ALUMIUM10|Smartfren Tab|Endeavour 1010|Tablet-PC-4|Tagi Tab|\\bM6pro\\b|CT1020W|arc 10HD|\\bTP750\\b|\\bQTAQZ3\\b|WVT101|TM1088|KT107"},oss:{AndroidOS:"Android",BlackBerryOS:"blackberry|\\bBB10\\b|rim tablet os",PalmOS:"PalmOS|avantgo|blazer|elaine|hiptop|palm|plucker|xiino",SymbianOS:"Symbian|SymbOS|Series60|Series40|SYB-[0-9]+|\\bS60\\b",WindowsMobileOS:"Windows CE.*(PPC|Smartphone|Mobile|[0-9]{3}x[0-9]{3})|Windows Mobile|Windows Phone [0-9.]+|WCE;",WindowsPhoneOS:"Windows Phone 10.0|Windows Phone 8.1|Windows Phone 8.0|Windows Phone OS|XBLWP7|ZuneWP7|Windows NT 6.[23]; ARM;",iOS:"\\biPhone.*Mobile|\\biPod|\\biPad|AppleCoreMedia",iPadOS:"CPU OS 13",MeeGoOS:"MeeGo",MaemoOS:"Maemo",JavaOS:"J2ME/|\\bMIDP\\b|\\bCLDC\\b",webOS:"webOS|hpwOS",badaOS:"\\bBada\\b",BREWOS:"BREW"},uas:{Chrome:"\\bCrMo\\b|CriOS|Android.*Chrome/[.0-9]* (Mobile)?",Dolfin:"\\bDolfin\\b",Opera:"Opera.*Mini|Opera.*Mobi|Android.*Opera|Mobile.*OPR/[0-9.]+$|Coast/[0-9.]+",Skyfire:"Skyfire",Edge:"Mobile Safari/[.0-9]* Edge",IE:"IEMobile|MSIEMobile",Firefox:"fennec|firefox.*maemo|(Mobile|Tablet).*Firefox|Firefox.*Mobile|FxiOS",Bolt:"bolt",TeaShark:"teashark",Blazer:"Blazer",Safari:"Version.*Mobile.*Safari|Safari.*Mobile|MobileSafari",WeChat:"\\bMicroMessenger\\b",UCBrowser:"UC.*Browser|UCWEB",baiduboxapp:"baiduboxapp",baidubrowser:"baidubrowser",DiigoBrowser:"DiigoBrowser",Mercury:"\\bMercury\\b",ObigoBrowser:"Obigo",NetFront:"NF-Browser",GenericBrowser:"NokiaBrowser|OviBrowser|OneBrowser|TwonkyBeamBrowser|SEMC.*Browser|FlyFlow|Minimo|NetFront|Novarra-Vision|MQQBrowser|MicroMessenger",PaleMoon:"Android.*PaleMoon|Mobile.*PaleMoon"},props:{Mobile:"Mobile/[VER]",Build:"Build/[VER]",Version:"Version/[VER]",VendorID:"VendorID/[VER]",iPad:"iPad.*CPU[a-z ]+[VER]",iPhone:"iPhone.*CPU[a-z ]+[VER]",iPod:"iPod.*CPU[a-z ]+[VER]",Kindle:"Kindle/[VER]",Chrome:["Chrome/[VER]","CriOS/[VER]","CrMo/[VER]"],Coast:["Coast/[VER]"],Dolfin:"Dolfin/[VER]",Firefox:["Firefox/[VER]","FxiOS/[VER]"],Fennec:"Fennec/[VER]",Edge:"Edge/[VER]",IE:["IEMobile/[VER];","IEMobile [VER]","MSIE [VER];","Trident/[0-9.]+;.*rv:[VER]"],NetFront:"NetFront/[VER]",NokiaBrowser:"NokiaBrowser/[VER]",Opera:[" OPR/[VER]","Opera Mini/[VER]","Version/[VER]"],"Opera Mini":"Opera Mini/[VER]","Opera Mobi":"Version/[VER]",UCBrowser:["UCWEB[VER]","UC.*Browser/[VER]"],MQQBrowser:"MQQBrowser/[VER]",MicroMessenger:"MicroMessenger/[VER]",baiduboxapp:"baiduboxapp/[VER]",baidubrowser:"baidubrowser/[VER]",SamsungBrowser:"SamsungBrowser/[VER]",Iron:"Iron/[VER]",Safari:["Version/[VER]","Safari/[VER]"],Skyfire:"Skyfire/[VER]",Tizen:"Tizen/[VER]",Webkit:"webkit[ /][VER]",PaleMoon:"PaleMoon/[VER]",Gecko:"Gecko/[VER]",Trident:"Trident/[VER]",Presto:"Presto/[VER]",Goanna:"Goanna/[VER]",iOS:" \\bi?OS\\b [VER][ ;]{1}",Android:"Android [VER]",BlackBerry:["BlackBerry[\\w]+/[VER]","BlackBerry.*Version/[VER]","Version/[VER]"],BREW:"BREW [VER]",Java:"Java/[VER]","Windows Phone OS":["Windows Phone OS [VER]","Windows Phone [VER]"],"Windows Phone":"Windows Phone [VER]","Windows CE":"Windows CE/[VER]","Windows NT":"Windows NT [VER]",Symbian:["SymbianOS/[VER]","Symbian/[VER]"],webOS:["webOS/[VER]","hpwOS/[VER];"]},utils:{Bot:"Googlebot|facebookexternalhit|Google-AMPHTML|s~amp-validator|AdsBot-Google|Google Keyword Suggestion|Facebot|YandexBot|YandexMobileBot|bingbot|ia_archiver|AhrefsBot|Ezooms|GSLFbot|WBSearchBot|Twitterbot|TweetmemeBot|Twikle|PaperLiBot|Wotbox|UnwindFetchor|Exabot|MJ12bot|YandexImages|TurnitinBot|Pingdom|contentkingapp",MobileBot:"Googlebot-Mobile|AdsBot-Google-Mobile|YahooSeeker/M1A1-R2D2",DesktopMode:"WPDesktop",TV:"SonyDTV|HbbTV",WebKit:"(webkit)[ /]([\\w.]+)",Console:"\\b(Nintendo|Nintendo WiiU|Nintendo 3DS|Nintendo Switch|PLAYSTATION|Xbox)\\b",Watch:"SM-V700"}},detectMobileBrowsers:{fullPattern:/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i,shortPattern:/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i,tabletPattern:/android|ipad|playbook|silk/i}},r=Object.prototype.hasOwnProperty;function i(e,t){return null!=e&&null!=t&&e.toLowerCase()===t.toLowerCase()}function o(e,t){var n,r,i=e.length;if(!i||!t)return!1;for(n=t.toLowerCase(),r=0;r<i;++r)if(n===e[r].toLowerCase())return!0;return!1}function a(e){for(var t in e)r.call(e,t)&&(e[t]=new RegExp(e[t],"i"))}function s(e,t){this.ua=function(e){return(e||"").substr(0,500)}(e),this._cache={},this.maxPhoneWidth=t||600}return n.FALLBACK_PHONE="UnknownPhone",n.FALLBACK_TABLET="UnknownTablet",n.FALLBACK_MOBILE="UnknownMobile",e="isArray"in Array?Array.isArray:function(e){return"[object Array]"===Object.prototype.toString.call(e)},function(){var t,i,o,s,l,u,c=n.mobileDetectRules;for(t in c.props)if(r.call(c.props,t)){for(i=c.props[t],e(i)||(i=[i]),l=i.length,s=0;s<l;++s)(u=(o=i[s]).indexOf("[VER]"))>=0&&(o=o.substring(0,u)+"([\\w._\\+]+)"+o.substring(u+5)),i[s]=new RegExp(o,"i");c.props[t]=i}a(c.oss),a(c.phones),a(c.tablets),a(c.uas),a(c.utils),c.oss0={WindowsPhoneOS:c.oss.WindowsPhoneOS,WindowsMobileOS:c.oss.WindowsMobileOS}}(),n.findMatch=function(e,t){for(var n in e)if(r.call(e,n)&&e[n].test(t))return n;return null},n.findMatches=function(e,t){var n=[];for(var i in e)r.call(e,i)&&e[i].test(t)&&n.push(i);return n},n.getVersionStr=function(e,t){var i,o,a,s,l=n.mobileDetectRules.props;if(r.call(l,e))for(a=(i=l[e]).length,o=0;o<a;++o)if(null!==(s=i[o].exec(t)))return s[1];return null},n.getVersion=function(e,t){var r=n.getVersionStr(e,t);return r?n.prepareVersionNo(r):NaN},n.prepareVersionNo=function(e){var t;return 1===(t=e.split(/[a-z._ \/\-]/i)).length&&(e=t[0]),t.length>1&&(e=t[0]+".",t.shift(),e+=t.join("")),Number(e)},n.isMobileFallback=function(e){return n.detectMobileBrowsers.fullPattern.test(e)||n.detectMobileBrowsers.shortPattern.test(e.substr(0,4))},n.isTabletFallback=function(e){return n.detectMobileBrowsers.tabletPattern.test(e)},n.prepareDetectionCache=function(e,r,i){if(e.mobile===t){var o,a,l;if(a=n.findMatch(n.mobileDetectRules.tablets,r))return e.mobile=e.tablet=a,void(e.phone=null);if(o=n.findMatch(n.mobileDetectRules.phones,r))return e.mobile=e.phone=o,void(e.tablet=null);n.isMobileFallback(r)?(l=s.isPhoneSized(i))===t?(e.mobile=n.FALLBACK_MOBILE,e.tablet=e.phone=null):l?(e.mobile=e.phone=n.FALLBACK_PHONE,e.tablet=null):(e.mobile=e.tablet=n.FALLBACK_TABLET,e.phone=null):n.isTabletFallback(r)?(e.mobile=e.tablet=n.FALLBACK_TABLET,e.phone=null):e.mobile=e.tablet=e.phone=null}},n.mobileGrade=function(e){var t=null!==e.mobile();return e.os("iOS")&&e.version("iPad")>=4.3||e.os("iOS")&&e.version("iPhone")>=3.1||e.os("iOS")&&e.version("iPod")>=3.1||e.version("Android")>2.1&&e.is("Webkit")||e.version("Windows Phone OS")>=7||e.is("BlackBerry")&&e.version("BlackBerry")>=6||e.match("Playbook.*Tablet")||e.version("webOS")>=1.4&&e.match("Palm|Pre|Pixi")||e.match("hp.*TouchPad")||e.is("Firefox")&&e.version("Firefox")>=12||e.is("Chrome")&&e.is("AndroidOS")&&e.version("Android")>=4||e.is("Skyfire")&&e.version("Skyfire")>=4.1&&e.is("AndroidOS")&&e.version("Android")>=2.3||e.is("Opera")&&e.version("Opera Mobi")>11&&e.is("AndroidOS")||e.is("MeeGoOS")||e.is("Tizen")||e.is("Dolfin")&&e.version("Bada")>=2||(e.is("UC Browser")||e.is("Dolfin"))&&e.version("Android")>=2.3||e.match("Kindle Fire")||e.is("Kindle")&&e.version("Kindle")>=3||e.is("AndroidOS")&&e.is("NookTablet")||e.version("Chrome")>=11&&!t||e.version("Safari")>=5&&!t||e.version("Firefox")>=4&&!t||e.version("MSIE")>=7&&!t||e.version("Opera")>=10&&!t?"A":e.os("iOS")&&e.version("iPad")<4.3||e.os("iOS")&&e.version("iPhone")<3.1||e.os("iOS")&&e.version("iPod")<3.1||e.is("Blackberry")&&e.version("BlackBerry")>=5&&e.version("BlackBerry")<6||e.version("Opera Mini")>=5&&e.version("Opera Mini")<=6.5&&(e.version("Android")>=2.3||e.is("iOS"))||e.match("NokiaN8|NokiaC7|N97.*Series60|Symbian/3")||e.version("Opera Mobi")>=11&&e.is("SymbianOS")?"B":(e.version("BlackBerry")<5||e.match("MSIEMobile|Windows CE.*Mobile")||e.version("Windows Mobile"),"C")},n.detectOS=function(e){return n.findMatch(n.mobileDetectRules.oss0,e)||n.findMatch(n.mobileDetectRules.oss,e)},n.getDeviceSmallerSide=function(){return window.screen.width<window.screen.height?window.screen.width:window.screen.height},s.prototype={constructor:s,mobile:function(){return n.prepareDetectionCache(this._cache,this.ua,this.maxPhoneWidth),this._cache.mobile},phone:function(){return n.prepareDetectionCache(this._cache,this.ua,this.maxPhoneWidth),this._cache.phone},tablet:function(){return n.prepareDetectionCache(this._cache,this.ua,this.maxPhoneWidth),this._cache.tablet},userAgent:function(){return this._cache.userAgent===t&&(this._cache.userAgent=n.findMatch(n.mobileDetectRules.uas,this.ua)),this._cache.userAgent},userAgents:function(){return this._cache.userAgents===t&&(this._cache.userAgents=n.findMatches(n.mobileDetectRules.uas,this.ua)),this._cache.userAgents},os:function(){return this._cache.os===t&&(this._cache.os=n.detectOS(this.ua)),this._cache.os},version:function(e){return n.getVersion(e,this.ua)},versionStr:function(e){return n.getVersionStr(e,this.ua)},is:function(e){return o(this.userAgents(),e)||i(e,this.os())||i(e,this.phone())||i(e,this.tablet())||o(n.findMatches(n.mobileDetectRules.utils,this.ua),e)},match:function(e){return e instanceof RegExp||(e=new RegExp(e,"i")),e.test(this.ua)},isPhoneSized:function(e){return s.isPhoneSized(e||this.maxPhoneWidth)},mobileGrade:function(){return this._cache.grade===t&&(this._cache.grade=n.mobileGrade(this)),this._cache.grade}},"undefined"!=typeof window&&window.screen?s.isPhoneSized=function(e){return e<0?t:n.getDeviceSmallerSide()<=e}:s.isPhoneSized=function(){},s._impl=n,s.version="1.4.4 2019-09-21",s}))}(e.exports?function(t){e.exports=t()}:n.amdD)},9788:e=>{e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=0)}([function(e,t,n){"use strict";function r(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}var a=n(1),s=n(2),l=n(3);function u(e){if("string"!=typeof e||1!==e.length)throw new TypeError("arrayFormatSeparator must be single character string")}function c(e,t){return t.encode?t.strict?a(e):encodeURIComponent(e):e}function f(e,t){return t.decode?s(e):e}function d(e){return Array.isArray(e)?e.sort():"object"===i(e)?d(Object.keys(e)).sort((function(e,t){return Number(e)-Number(t)})).map((function(t){return e[t]})):e}function h(e){var t=e.indexOf("#");return-1!==t&&(e=e.slice(0,t)),e}function p(e){var t=(e=h(e)).indexOf("?");return-1===t?"":e.slice(t+1)}function m(e,t){return t.parseNumbers&&!Number.isNaN(Number(e))&&"string"==typeof e&&""!==e.trim()?e=Number(e):!t.parseBooleans||null===e||"true"!==e.toLowerCase()&&"false"!==e.toLowerCase()||(e="true"===e.toLowerCase()),e}function g(e,t){u((t=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},t)).arrayFormatSeparator);var n=function(e){var t;switch(e.arrayFormat){case"index":return function(e,n,r){t=/\[(\d*)\]$/.exec(e),e=e.replace(/\[\d*\]$/,""),t?(void 0===r[e]&&(r[e]={}),r[e][t[1]]=n):r[e]=n};case"bracket":return function(e,n,r){t=/(\[\])$/.exec(e),e=e.replace(/\[\]$/,""),t?void 0!==r[e]?r[e]=[].concat(r[e],n):r[e]=[n]:r[e]=n};case"comma":case"separator":return function(t,n,r){var i="string"==typeof n&&n.includes(e.arrayFormatSeparator),o="string"==typeof n&&!i&&f(n,e).includes(e.arrayFormatSeparator);n=o?f(n,e):n;var a=i||o?n.split(e.arrayFormatSeparator).map((function(t){return f(t,e)})):null===n?n:f(n,e);r[t]=a};default:return function(e,t,n){void 0!==n[e]?n[e]=[].concat(n[e],t):n[e]=t}}}(t),o=Object.create(null);if("string"!=typeof e)return o;if(!(e=e.trim().replace(/^[?#&]/,"")))return o;var a=!0,s=!1,c=void 0;try{for(var h,p=e.split("&")[Symbol.iterator]();!(a=(h=p.next()).done);a=!0){var g=h.value,v=r(l(t.decode?g.replace(/\+/g," "):g,"="),2),y=v[0];S=void 0===(S=v[1])?null:["comma","separator"].includes(t.arrayFormat)?S:f(S,t),n(f(y,t),S,o)}}catch(e){s=!0,c=e}finally{try{a||null==p.return||p.return()}finally{if(s)throw c}}for(var b=0,T=Object.keys(o);b<T.length;b++){var S;if(y=T[b],"object"===i(S=o[y])&&null!==S)for(var E=0,w=Object.keys(S);E<w.length;E++){var _=w[E];S[_]=m(S[_],t)}else o[y]=m(S,t)}return!1===t.sort?o:(!0===t.sort?Object.keys(o).sort():Object.keys(o).sort(t.sort)).reduce((function(e,t){var n=o[t];return Boolean(n)&&"object"===i(n)&&!Array.isArray(n)?e[t]=d(n):e[t]=n,e}),Object.create(null))}t.extract=p,t.parse=g,t.stringify=function(e,t){if(!e)return"";u((t=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},t)).arrayFormatSeparator);for(var n=function(n){return t.skipNull&&null==e[n]||t.skipEmptyString&&""===e[n]},r=function(e){switch(e.arrayFormat){case"index":return function(t){return function(n,r){var i=n.length;return void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r?n:[].concat(o(n),null===r?[[c(t,e),"[",i,"]"].join("")]:[[c(t,e),"[",c(i,e),"]=",c(r,e)].join("")])}};case"bracket":return function(t){return function(n,r){return void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r?n:[].concat(o(n),null===r?[[c(t,e),"[]"].join("")]:[[c(t,e),"[]=",c(r,e)].join("")])}};case"comma":case"separator":return function(t){return function(n,r){return null==r||0===r.length?n:0===n.length?[[c(t,e),"=",c(r,e)].join("")]:[[n,c(r,e)].join(e.arrayFormatSeparator)]}};default:return function(t){return function(n,r){return void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r?n:[].concat(o(n),null===r?[c(t,e)]:[[c(t,e),"=",c(r,e)].join("")])}}}}(t),i={},a=0,s=Object.keys(e);a<s.length;a++){var l=s[a];n(l)||(i[l]=e[l])}var f=Object.keys(i);return!1!==t.sort&&f.sort(t.sort),f.map((function(n){var i=e[n];return void 0===i?"":null===i?c(n,t):Array.isArray(i)?i.reduce(r(n),[]).join("&"):c(n,t)+"="+c(i,t)})).filter((function(e){return e.length>0})).join("&")},t.parseUrl=function(e,t){t=Object.assign({decode:!0},t);var n=r(l(e,"#"),2),i=n[0],o=n[1];return Object.assign({url:i.split("?")[0]||"",query:g(p(e),t)},t&&t.parseFragmentIdentifier&&o?{fragmentIdentifier:f(o,t)}:{})},t.stringifyUrl=function(e,n){n=Object.assign({encode:!0,strict:!0},n);var r=h(e.url).split("?")[0]||"",i=t.extract(e.url),o=t.parse(i,{sort:!1}),a=Object.assign(o,e.query),s=t.stringify(a,n);s&&(s="?".concat(s));var l=function(e){var t="",n=e.indexOf("#");return-1!==n&&(t=e.slice(n)),t}(e.url);return e.fragmentIdentifier&&(l="#".concat(c(e.fragmentIdentifier,n))),"".concat(r).concat(s).concat(l)}},function(e,t,n){"use strict";e.exports=function(e){return encodeURIComponent(e).replace(/[!'()*]/g,(function(e){return"%".concat(e.charCodeAt(0).toString(16).toUpperCase())}))}},function(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)}var i="%[a-f0-9]{2}",o=new RegExp(i,"gi"),a=new RegExp("("+i+")+","gi");function s(e,t){try{return decodeURIComponent(e.join(""))}catch(e){}if(1===e.length)return e;t=t||1;var n=e.slice(0,t),r=e.slice(t);return Array.prototype.concat.call([],s(n),s(r))}function l(e){try{return decodeURIComponent(e)}catch(r){for(var t=e.match(o),n=1;n<t.length;n++)t=(e=s(t,n).join("")).match(o);return e}}e.exports=function(e){if("string"!=typeof e)throw new TypeError("Expected `encodedURI` to be of type `string`, got `"+r(e)+"`");try{return e=e.replace(/\+/g," "),decodeURIComponent(e)}catch(t){return function(e){for(var t={"%FE%FF":"��","%FF%FE":"��"},n=a.exec(e);n;){try{t[n[0]]=decodeURIComponent(n[0])}catch(e){var r=l(n[0]);r!==n[0]&&(t[n[0]]=r)}n=a.exec(e)}t["%C2"]="�";for(var i=Object.keys(t),o=0;o<i.length;o++){var s=i[o];e=e.replace(new RegExp(s,"g"),t[s])}return e}(e)}}},function(e,t,n){"use strict";e.exports=function(e,t){if("string"!=typeof e||"string"!=typeof t)throw new TypeError("Expected the arguments to be of type `string`");if(""===t)return[e];var n=e.indexOf(t);return-1===n?[e]:[e.slice(0,n),e.slice(n+t.length)]}}])},53695:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r=(0,n(97652).Z)((function(e,t){return Number(e)+Number(t)}))},3e3:(e,t,n)=>{"use strict";n.d(t,{Z:()=>f});var r=n(31697);function i(e,t){return function(){return t.call(this,e.apply(this,arguments))}}var o=n(67698),a=n(24467);function s(){if(0===arguments.length)throw new Error("pipe requires at least one argument");return(0,r.Z)(arguments[0].length,(0,o.Z)(i,arguments[0],(0,a.Z)(arguments)))}var l=n(1453),u=n(91874);const c=(0,l.Z)((function(e){return(0,u.Z)(e)?e.split("").reverse().join(""):Array.prototype.slice.call(e,0).reverse()}));function f(){if(0===arguments.length)throw new Error("compose requires at least one argument");return s.apply(this,c(arguments))}},41999:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var r=n(97652),i=n(39232),o=n(73500),a=n(91874),s=n(51917);const l=(0,r.Z)((function(e,t){if((0,i.Z)(e)){if((0,i.Z)(t))return e.concat(t);throw new TypeError((0,s.Z)(t)+" is not an array")}if((0,a.Z)(e)){if((0,a.Z)(t))return e+t;throw new TypeError((0,s.Z)(t)+" is not a string")}if(null!=e&&(0,o.Z)(e["fantasy-land/concat"]))return e["fantasy-land/concat"](t);if(null!=e&&(0,o.Z)(e.concat))return e.concat(t);throw new TypeError((0,s.Z)(e)+' does not have a method named "concat" or "fantasy-land/concat"')}))},32427:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(1453),i=n(52051);const o=(0,r.Z)((function(e){return(0,i.Z)(e.length,e)}))},52051:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var r=n(31697),i=n(1453),o=n(97652),a=n(56187);function s(e,t,n){return function(){for(var i=[],o=0,l=e,u=0;u<t.length||o<arguments.length;){var c;u<t.length&&(!(0,a.Z)(t[u])||o>=arguments.length)?c=t[u]:(c=arguments[o],o+=1),i[u]=c,(0,a.Z)(c)||(l-=1),u+=1}return l<=0?n.apply(this,i):(0,r.Z)(l,s(e,i,n))}}const l=(0,o.Z)((function(e,t){return 1===e?(0,i.Z)(t):(0,r.Z)(e,s(e,[],t))}))},715:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r=(0,n(97652).Z)((function(e,t){return null==t||t!=t?e:t}))},85324:(e,t,n)=>{"use strict";n.d(t,{Z:()=>h});var r=n(97652),i=n(73500),o=n(1453),a=n(58550),s=n(15942);const l=(0,r.Z)((function(e,t){return"function"==typeof t["fantasy-land/ap"]?t["fantasy-land/ap"](e):"function"==typeof e.ap?e.ap(t):"function"==typeof e?function(n){return e(n)(t(n))}:(0,a.Z)((function(e,n){return function(e,t){var n;t=t||[];var r=(e=e||[]).length,i=t.length,o=[];for(n=0;n<r;)o[o.length]=e[n],n+=1;for(n=0;n<i;)o[o.length]=t[n],n+=1;return o}(e,(0,s.Z)(n,t))}),[],e)}));var u=n(52051);const c=(0,r.Z)((function(e,t){var n=(0,u.Z)(e,t);return(0,u.Z)(e,(function(){return(0,a.Z)(l,(0,s.Z)(n,arguments[0]),Array.prototype.slice.call(arguments,1))}))})),f=(0,o.Z)((function(e){return c(e.length,e)})),d=(0,r.Z)((function(e,t){return e||t})),h=(0,r.Z)((function(e,t){return(0,i.Z)(e)?function(){return e.apply(this,arguments)||t.apply(this,arguments)}:f(d)(e,t)}))},31200:(e,t,n)=>{"use strict";n.d(t,{Z:()=>d});var r=n(97652),i=n(14559),o=n(36512),a=n(63634),s=function(){function e(e,t){this.xf=t,this.n=e}return e.prototype["@@transducer/init"]=a.Z.init,e.prototype["@@transducer/result"]=a.Z.result,e.prototype["@@transducer/step"]=function(e,t){return this.n>0?(this.n-=1,e):this.xf["@@transducer/step"](e,t)},e}();const l=(0,r.Z)((function(e,t){return new s(e,t)}));var u=n(61203);const c=(0,r.Z)((0,o.Z)(["drop"],l,(function(e,t){return(0,u.Z)(Math.max(0,e),1/0,t)}))),f=(0,r.Z)((function(e,t){return c(e>=0?t.length-e:0,t)})),d=(0,r.Z)((function(e,t){return(0,i.Z)(f(e.length,t),e)}))},14559:(e,t,n)=>{"use strict";n.d(t,{Z:()=>d});var r=n(97652);function i(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}function o(e,t,n){for(var r=0,i=n.length;r<i;){if(e(t,n[r]))return!0;r+=1}return!1}var a=n(34293);const s="function"==typeof Object.is?Object.is:function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t};var l=n(2276);const u=(0,n(1453).Z)((function(e){return null===e?"Null":void 0===e?"Undefined":Object.prototype.toString.call(e).slice(8,-1)}));function c(e,t,n,r){var a=i(e);function s(e,t){return f(e,t,n.slice(),r.slice())}return!o((function(e,t){return!o(s,t,e)}),i(t),a)}function f(e,t,n,r){if(s(e,t))return!0;var i,o,d=u(e);if(d!==u(t))return!1;if(null==e||null==t)return!1;if("function"==typeof e["fantasy-land/equals"]||"function"==typeof t["fantasy-land/equals"])return"function"==typeof e["fantasy-land/equals"]&&e["fantasy-land/equals"](t)&&"function"==typeof t["fantasy-land/equals"]&&t["fantasy-land/equals"](e);if("function"==typeof e.equals||"function"==typeof t.equals)return"function"==typeof e.equals&&e.equals(t)&&"function"==typeof t.equals&&t.equals(e);switch(d){case"Arguments":case"Array":case"Object":if("function"==typeof e.constructor&&"Promise"===(i=e.constructor,null==(o=String(i).match(/^function (\w*)/))?"":o[1]))return e===t;break;case"Boolean":case"Number":case"String":if(typeof e!=typeof t||!s(e.valueOf(),t.valueOf()))return!1;break;case"Date":if(!s(e.valueOf(),t.valueOf()))return!1;break;case"Error":return e.name===t.name&&e.message===t.message;case"RegExp":if(e.source!==t.source||e.global!==t.global||e.ignoreCase!==t.ignoreCase||e.multiline!==t.multiline||e.sticky!==t.sticky||e.unicode!==t.unicode)return!1}for(var h=n.length-1;h>=0;){if(n[h]===e)return r[h]===t;h-=1}switch(d){case"Map":return e.size===t.size&&c(e.entries(),t.entries(),n.concat([e]),r.concat([t]));case"Set":return e.size===t.size&&c(e.values(),t.values(),n.concat([e]),r.concat([t]));case"Arguments":case"Array":case"Object":case"Boolean":case"Number":case"String":case"Date":case"Error":case"RegExp":case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"ArrayBuffer":break;default:return!1}var p=(0,l.Z)(e);if(p.length!==(0,l.Z)(t).length)return!1;var m=n.concat([e]),g=r.concat([t]);for(h=p.length-1;h>=0;){var v=p[h];if(!(0,a.Z)(v,t)||!f(t[v],e[v],m,g))return!1;h-=1}return!0}const d=(0,r.Z)((function(e,t){return f(e,t,[],[])}))},50265:(e,t,n)=>{"use strict";n.d(t,{Z:()=>f});var r=n(97652),i=n(36512),o=n(31099),a=n(58550),s=n(63634),l=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=s.Z.init,e.prototype["@@transducer/result"]=s.Z.result,e.prototype["@@transducer/step"]=function(e,t){return this.f(t)?this.xf["@@transducer/step"](e,t):e},e}();const u=(0,r.Z)((function(e,t){return new l(e,t)}));var c=n(2276);const f=(0,r.Z)((0,i.Z)(["filter"],u,(function(e,t){return(0,o.Z)(t)?(0,a.Z)((function(n,r){return e(t[r])&&(n[r]=t[r]),n}),{},(0,c.Z)(t)):function(e,t){for(var n=0,r=t.length,i=[];n<r;)e(t[n])&&(i[i.length]=t[n]),n+=1;return i}(e,t)})))},70160:(e,t,n)=>{"use strict";n.d(t,{Z:()=>u});var r=n(97652),i=n(36512),o=n(76282),a=n(63634),s=function(){function e(e,t){this.xf=t,this.f=e,this.found=!1}return e.prototype["@@transducer/init"]=a.Z.init,e.prototype["@@transducer/result"]=function(e){return this.found||(e=this.xf["@@transducer/step"](e,void 0)),this.xf["@@transducer/result"](e)},e.prototype["@@transducer/step"]=function(e,t){return this.f(t)&&(this.found=!0,e=(0,o.Z)(this.xf["@@transducer/step"](e,t))),e},e}();const l=(0,r.Z)((function(e,t){return new s(e,t)})),u=(0,r.Z)((0,i.Z)(["find"],l,(function(e,t){for(var n=0,r=t.length;n<r;){if(e(t[n]))return t[n];n+=1}})))},5025:(e,t,n)=>{"use strict";n.d(t,{Z:()=>u});var r=n(97652),i=n(36512),o=n(76282),a=n(63634),s=function(){function e(e,t){this.xf=t,this.f=e,this.idx=-1,this.found=!1}return e.prototype["@@transducer/init"]=a.Z.init,e.prototype["@@transducer/result"]=function(e){return this.found||(e=this.xf["@@transducer/step"](e,-1)),this.xf["@@transducer/result"](e)},e.prototype["@@transducer/step"]=function(e,t){return this.idx+=1,this.f(t)&&(this.found=!0,e=(0,o.Z)(this.xf["@@transducer/step"](e,this.idx))),e},e}();const l=(0,r.Z)((function(e,t){return new s(e,t)})),u=(0,r.Z)((0,i.Z)([],l,(function(e,t){for(var n=0,r=t.length;n<r;){if(e(t[n]))return n;n+=1}return-1})))},50642:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r=(0,n(97652).Z)((function(e,t){return e>t}))},25861:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r=(0,n(35285).Z)(0)},60508:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r=(0,n(1453).Z)((function(e){return e}))},31697:(e,t,n)=>{"use strict";function r(e,t){switch(e){case 0:return function(){return t.apply(this,arguments)};case 1:return function(e){return t.apply(this,arguments)};case 2:return function(e,n){return t.apply(this,arguments)};case 3:return function(e,n,r){return t.apply(this,arguments)};case 4:return function(e,n,r,i){return t.apply(this,arguments)};case 5:return function(e,n,r,i,o){return t.apply(this,arguments)};case 6:return function(e,n,r,i,o,a){return t.apply(this,arguments)};case 7:return function(e,n,r,i,o,a,s){return t.apply(this,arguments)};case 8:return function(e,n,r,i,o,a,s,l){return t.apply(this,arguments)};case 9:return function(e,n,r,i,o,a,s,l,u){return t.apply(this,arguments)};case 10:return function(e,n,r,i,o,a,s,l,u,c){return t.apply(this,arguments)};default:throw new Error("First argument to _arity must be a non-negative integer no greater than ten")}}n.d(t,{Z:()=>r})},55557:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(39232);function i(e,t){return function(){var n=arguments.length;if(0===n)return t();var i=arguments[n-1];return(0,r.Z)(i)||"function"!=typeof i[e]?t.apply(this,arguments):i[e].apply(i,Array.prototype.slice.call(arguments,0,n-1))}}},1453:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(56187);function i(e){return function t(n){return 0===arguments.length||(0,r.Z)(n)?t:e.apply(this,arguments)}}},97652:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(1453),i=n(56187);function o(e){return function t(n,o){switch(arguments.length){case 0:return t;case 1:return(0,i.Z)(n)?t:(0,r.Z)((function(t){return e(n,t)}));default:return(0,i.Z)(n)&&(0,i.Z)(o)?t:(0,i.Z)(n)?(0,r.Z)((function(t){return e(t,o)})):(0,i.Z)(o)?(0,r.Z)((function(t){return e(n,t)})):e(n,o)}}}},35327:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(1453),i=n(97652),o=n(56187);function a(e){return function t(n,a,s){switch(arguments.length){case 0:return t;case 1:return(0,o.Z)(n)?t:(0,i.Z)((function(t,r){return e(n,t,r)}));case 2:return(0,o.Z)(n)&&(0,o.Z)(a)?t:(0,o.Z)(n)?(0,i.Z)((function(t,n){return e(t,a,n)})):(0,o.Z)(a)?(0,i.Z)((function(t,r){return e(n,t,r)})):(0,r.Z)((function(t){return e(n,a,t)}));default:return(0,o.Z)(n)&&(0,o.Z)(a)&&(0,o.Z)(s)?t:(0,o.Z)(n)&&(0,o.Z)(a)?(0,i.Z)((function(t,n){return e(t,n,s)})):(0,o.Z)(n)&&(0,o.Z)(s)?(0,i.Z)((function(t,n){return e(t,a,n)})):(0,o.Z)(a)&&(0,o.Z)(s)?(0,i.Z)((function(t,r){return e(n,t,r)})):(0,o.Z)(n)?(0,r.Z)((function(t){return e(t,a,s)})):(0,o.Z)(a)?(0,r.Z)((function(t){return e(n,t,s)})):(0,o.Z)(s)?(0,r.Z)((function(t){return e(n,a,t)})):e(n,a,s)}}}},36512:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(39232);function i(e){return null!=e&&"function"==typeof e["@@transducer/step"]}function o(e,t,n){return function(){if(0===arguments.length)return n();var o=Array.prototype.slice.call(arguments,0),a=o.pop();if(!(0,r.Z)(a)){for(var s=0;s<e.length;){if("function"==typeof a[e[s]])return a[e[s]].apply(a,o);s+=1}if(i(a)){var l=t.apply(null,o);return l(a)}}return n.apply(this,arguments)}}},34293:(e,t,n)=>{"use strict";function r(e,t){return Object.prototype.hasOwnProperty.call(t,e)}n.d(t,{Z:()=>r})},51266:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(14559);function i(e,t){return function(e,t,n){var i,o;if("function"==typeof e.indexOf)switch(typeof t){case"number":if(0===t){for(i=1/t;n<e.length;){if(0===(o=e[n])&&1/o===i)return n;n+=1}return-1}if(t!=t){for(;n<e.length;){if("number"==typeof(o=e[n])&&o!=o)return n;n+=1}return-1}return e.indexOf(t,n);case"string":case"boolean":case"function":case"undefined":return e.indexOf(t,n);case"object":if(null===t)return e.indexOf(t,n)}for(;n<e.length;){if((0,r.Z)(e[n],t))return n;n+=1}return-1}(t,e,0)>=0}},67510:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(34293),i=Object.prototype.toString;const o=function(){return"[object Arguments]"===i.call(arguments)?function(e){return"[object Arguments]"===i.call(e)}:function(e){return(0,r.Z)("callee",e)}}()},39232:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r=Array.isArray||function(e){return null!=e&&e.length>=0&&"[object Array]"===Object.prototype.toString.call(e)}},73500:(e,t,n)=>{"use strict";function r(e){var t=Object.prototype.toString.call(e);return"[object Function]"===t||"[object AsyncFunction]"===t||"[object GeneratorFunction]"===t||"[object AsyncGeneratorFunction]"===t}n.d(t,{Z:()=>r})},31099:(e,t,n)=>{"use strict";function r(e){return"[object Object]"===Object.prototype.toString.call(e)}n.d(t,{Z:()=>r})},56187:(e,t,n)=>{"use strict";function r(e){return null!=e&&"object"==typeof e&&!0===e["@@functional/placeholder"]}n.d(t,{Z:()=>r})},91874:(e,t,n)=>{"use strict";function r(e){return"[object String]"===Object.prototype.toString.call(e)}n.d(t,{Z:()=>r})},87512:(e,t,n)=>{"use strict";function r(e,t){for(var n=0,r=t.length,i=Array(r);n<r;)i[n]=e(t[n]),n+=1;return i}n.d(t,{Z:()=>r})},58550:(e,t,n)=>{"use strict";n.d(t,{Z:()=>h});var r=n(1453),i=n(39232),o=n(91874);const a=(0,r.Z)((function(e){return!!(0,i.Z)(e)||!!e&&"object"==typeof e&&!(0,o.Z)(e)&&(1===e.nodeType?!!e.length:0===e.length||e.length>0&&e.hasOwnProperty(0)&&e.hasOwnProperty(e.length-1))}));var s=function(){function e(e){this.f=e}return e.prototype["@@transducer/init"]=function(){throw new Error("init not implemented on XWrap")},e.prototype["@@transducer/result"]=function(e){return e},e.prototype["@@transducer/step"]=function(e,t){return this.f(e,t)},e}(),l=n(31697);const u=(0,n(97652).Z)((function(e,t){return(0,l.Z)(e.length,(function(){return e.apply(t,arguments)}))}));function c(e,t,n){for(var r=n.next();!r.done;){if((t=e["@@transducer/step"](t,r.value))&&t["@@transducer/reduced"]){t=t["@@transducer/value"];break}r=n.next()}return e["@@transducer/result"](t)}function f(e,t,n,r){return e["@@transducer/result"](n[r](u(e["@@transducer/step"],e),t))}var d="undefined"!=typeof Symbol?Symbol.iterator:"@@iterator";function h(e,t,n){if("function"==typeof e&&(e=function(e){return new s(e)}(e)),a(n))return function(e,t,n){for(var r=0,i=n.length;r<i;){if((t=e["@@transducer/step"](t,n[r]))&&t["@@transducer/reduced"]){t=t["@@transducer/value"];break}r+=1}return e["@@transducer/result"](t)}(e,t,n);if("function"==typeof n["fantasy-land/reduce"])return f(e,t,n,"fantasy-land/reduce");if(null!=n[d])return c(e,t,n[d]());if("function"==typeof n.next)return c(e,t,n);if("function"==typeof n.reduce)return f(e,t,n,"reduce");throw new TypeError("reduce: list must be array or iterable")}},76282:(e,t,n)=>{"use strict";function r(e){return e&&e["@@transducer/reduced"]?e:{"@@transducer/value":e,"@@transducer/reduced":!0}}n.d(t,{Z:()=>r})},63634:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r={init:function(){return this.xf["@@transducer/init"]()},result:function(e){return this.xf["@@transducer/result"](e)}}},77340:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(97652),i=n(73500),o=n(52051),a=n(51917);const s=(0,r.Z)((function(e,t){return(0,o.Z)(e+1,(function(){var n=arguments[e];if(null!=n&&(0,i.Z)(n[t]))return n[t].apply(n,Array.prototype.slice.call(arguments,0,e));throw new TypeError((0,a.Z)(n)+' does not have a method named "'+t+'"')}))}))},96730:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r=(0,n(97652).Z)((function(e,t){return null!=t&&t.constructor===e||t instanceof e}))},91092:(e,t,n)=>{"use strict";n.d(t,{Z:()=>c});var r=n(1453),i=n(67510),o=n(39232),a=n(31099),s=n(91874);const l=(0,r.Z)((function(e){return null!=e&&"function"==typeof e["fantasy-land/empty"]?e["fantasy-land/empty"]():null!=e&&null!=e.constructor&&"function"==typeof e.constructor["fantasy-land/empty"]?e.constructor["fantasy-land/empty"]():null!=e&&"function"==typeof e.empty?e.empty():null!=e&&null!=e.constructor&&"function"==typeof e.constructor.empty?e.constructor.empty():(0,o.Z)(e)?[]:(0,s.Z)(e)?"":(0,a.Z)(e)?{}:(0,i.Z)(e)?function(){return arguments}():void 0}));var u=n(14559);const c=(0,r.Z)((function(e){return null!=e&&(0,u.Z)(e,l(e))}))},57040:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r=(0,n(1453).Z)((function(e){return null==e}))},63544:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r=(0,n(77340).Z)(1,"join")},89786:(e,t,n)=>{"use strict";n.d(t,{Z:()=>f});var r=n(1453),i=n(97652),o=n(87512),a=n(52051),s=n(78884),l=n(10198),u=n(67698);const c=(0,i.Z)((function(e,t){return(0,a.Z)((0,u.Z)(s.Z,0,(0,l.Z)("length",t)),(function(){var n=arguments,r=this;return e.apply(r,(0,o.Z)((function(e){return e.apply(r,n)}),t))}))})),f=(0,r.Z)((function(e){return c((function(){return Array.prototype.slice.call(arguments,0)}),e)}))},2276:(e,t,n)=>{"use strict";n.d(t,{Z:()=>c});var r=n(1453),i=n(34293),o=n(67510),a=!{toString:null}.propertyIsEnumerable("toString"),s=["constructor","valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],l=function(){return arguments.propertyIsEnumerable("length")}(),u=function(e,t){for(var n=0;n<e.length;){if(e[n]===t)return!0;n+=1}return!1};const c="function"!=typeof Object.keys||l?(0,r.Z)((function(e){if(Object(e)!==e)return[];var t,n,r=[],c=l&&(0,o.Z)(e);for(t in e)!(0,i.Z)(t,e)||c&&"length"===t||(r[r.length]=t);if(a)for(n=s.length-1;n>=0;)t=s[n],(0,i.Z)(t,e)&&!u(r,t)&&(r[r.length]=t),n-=1;return r})):(0,r.Z)((function(e){return Object(e)!==e?[]:Object.keys(e)}))},63979:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r=(0,n(35285).Z)(-1)},13359:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r=(0,n(1453).Z)((function(e){return null!=e&&(t=e.length,"[object Number]"===Object.prototype.toString.call(t))?e.length:NaN;var t}))},92749:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r=(0,n(97652).Z)((function(e,t){return e<t}))},15942:(e,t,n)=>{"use strict";n.d(t,{Z:()=>d});var r=n(97652),i=n(36512),o=n(87512),a=n(58550),s=n(63634),l=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=s.Z.init,e.prototype["@@transducer/result"]=s.Z.result,e.prototype["@@transducer/step"]=function(e,t){return this.xf["@@transducer/step"](e,this.f(t))},e}();const u=(0,r.Z)((function(e,t){return new l(e,t)}));var c=n(52051),f=n(2276);const d=(0,r.Z)((0,i.Z)(["fantasy-land/map","map"],u,(function(e,t){switch(Object.prototype.toString.call(t)){case"[object Function]":return(0,c.Z)(t.length,(function(){return e.call(this,t.apply(this,arguments))}));case"[object Object]":return(0,a.Z)((function(n,r){return n[r]=e(t[r]),n}),{},(0,f.Z)(t));default:return(0,o.Z)(e,t)}})))},78884:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r=(0,n(97652).Z)((function(e,t){return t>e?t:e}))},20583:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r=(0,n(97652).Z)((function(e,t){return t<e?t:e}))},35285:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(97652),i=n(91874);const o=(0,r.Z)((function(e,t){var n=e<0?t.length+e:e;return(0,i.Z)(t)?t.charAt(n):t[n]}))},25837:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(97652);const i=Number.isInteger||function(e){return e<<0===e};var o=n(35285);const a=(0,r.Z)((function(e,t){return e.map((function(e){for(var n,r=t,a=0;a<e.length;){if(null==r)return;n=e[a],r=i(n)?(0,o.Z)(n,r):r[n],a+=1}return r}))})),s=(0,r.Z)((function(e,t){return a([e],t)[0]}))},67191:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(35327),i=n(715),o=n(25837);const a=(0,r.Z)((function(e,t,n){return(0,i.Z)(e,(0,o.Z)(t,n))}))},10198:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(97652),i=n(15942),o=n(76603);const a=(0,r.Z)((function(e,t){return(0,i.Z)((0,o.Z)(e),t)}))},76603:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(97652),i=n(25837);const o=(0,r.Z)((function(e,t){return(0,i.Z)([e],t)}))},76847:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(35327),i=n(14559);const o=(0,r.Z)((function(e,t,n){return(0,i.Z)(t,n[e])}))},21620:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(35327),i=n(67191);const o=(0,r.Z)((function(e,t,n){return(0,i.Z)(e,[t],n)}))},67698:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(35327),i=n(58550);const o=(0,r.Z)(i.Z)},65041:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r=(0,n(35327).Z)((function(e,t,n){return n.replace(e,t)}))},61203:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(55557);const i=(0,n(35327).Z)((0,r.Z)("slice",(function(e,t,n){return Array.prototype.slice.call(n,e,t)})))},10463:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r=(0,n(97652).Z)((function(e,t){return Array.prototype.slice.call(t,0).sort((function(t,n){var r=e(t),i=e(n);return r<i?-1:r>i?1:0}))}))},24467:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(55557),i=n(1453),o=n(61203);const a=(0,i.Z)((0,r.Z)("tail",(0,o.Z)(1,1/0)))},51917:(e,t,n)=>{"use strict";n.d(t,{Z:()=>p});var r=n(1453),i=n(51266),o=n(87512);function a(e){return'"'+e.replace(/\\/g,"\\\\").replace(/[\b]/g,"\\b").replace(/\f/g,"\\f").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\t/g,"\\t").replace(/\v/g,"\\v").replace(/\0/g,"\\0").replace(/"/g,'\\"')+'"'}var s=function(e){return(e<10?"0":"")+e};const l="function"==typeof Date.prototype.toISOString?function(e){return e.toISOString()}:function(e){return e.getUTCFullYear()+"-"+s(e.getUTCMonth()+1)+"-"+s(e.getUTCDate())+"T"+s(e.getUTCHours())+":"+s(e.getUTCMinutes())+":"+s(e.getUTCSeconds())+"."+(e.getUTCMilliseconds()/1e3).toFixed(3).slice(2,5)+"Z"};var u=n(2276),c=n(97652),f=n(50265);const d=(0,c.Z)((function(e,t){return(0,f.Z)((n=e,function(){return!n.apply(this,arguments)}),t);var n}));function h(e,t){var n=function(n){var r=t.concat([e]);return(0,i.Z)(n,r)?"<Circular>":h(n,r)},r=function(e,t){return(0,o.Z)((function(t){return a(t)+": "+n(e[t])}),t.slice().sort())};switch(Object.prototype.toString.call(e)){case"[object Arguments]":return"(function() { return arguments; }("+(0,o.Z)(n,e).join(", ")+"))";case"[object Array]":return"["+(0,o.Z)(n,e).concat(r(e,d((function(e){return/^\d+$/.test(e)}),(0,u.Z)(e)))).join(", ")+"]";case"[object Boolean]":return"object"==typeof e?"new Boolean("+n(e.valueOf())+")":e.toString();case"[object Date]":return"new Date("+(isNaN(e.valueOf())?n(NaN):a(l(e)))+")";case"[object Null]":return"null";case"[object Number]":return"object"==typeof e?"new Number("+n(e.valueOf())+")":1/e==-1/0?"-0":e.toString(10);case"[object String]":return"object"==typeof e?"new String("+n(e.valueOf())+")":a(e);case"[object Undefined]":return"undefined";default:if("function"==typeof e.toString){var s=e.toString();if("[object Object]"!==s)return s}return"{"+r(e,(0,u.Z)(e)).join(", ")+"}"}}const p=(0,r.Z)((function(e){return h(e,[])}))},82735:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r=(0,n(77340).Z)(0,"toUpperCase")},39758:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(60508),i=n(51266);function o(e,t,n){var r,o=typeof e;switch(o){case"string":case"number":return 0===e&&1/e==-1/0?!!n._items["-0"]||(t&&(n._items["-0"]=!0),!1):null!==n._nativeSet?t?(r=n._nativeSet.size,n._nativeSet.add(e),n._nativeSet.size===r):n._nativeSet.has(e):o in n._items?e in n._items[o]||(t&&(n._items[o][e]=!0),!1):(t&&(n._items[o]={},n._items[o][e]=!0),!1);case"boolean":if(o in n._items){var a=e?1:0;return!!n._items[o][a]||(t&&(n._items[o][a]=!0),!1)}return t&&(n._items[o]=e?[!1,!0]:[!0,!1]),!1;case"function":return null!==n._nativeSet?t?(r=n._nativeSet.size,n._nativeSet.add(e),n._nativeSet.size===r):n._nativeSet.has(e):o in n._items?!!(0,i.Z)(e,n._items[o])||(t&&n._items[o].push(e),!1):(t&&(n._items[o]=[e]),!1);case"undefined":return!!n._items[o]||(t&&(n._items[o]=!0),!1);case"object":if(null===e)return!!n._items.null||(t&&(n._items.null=!0),!1);default:return(o=Object.prototype.toString.call(e))in n._items?!!(0,i.Z)(e,n._items[o])||(t&&n._items[o].push(e),!1):(t&&(n._items[o]=[e]),!1)}}const a=function(){function e(){this._nativeSet="function"==typeof Set?new Set:null,this._items={}}return e.prototype.add=function(e){return!o(e,!0,this)},e.prototype.has=function(e){return o(e,!1,this)},e}(),s=(0,n(97652).Z)((function(e,t){for(var n,r,i=new a,o=[],s=0;s<t.length;)n=e(r=t[s]),i.add(n)&&o.push(r),s+=1;return o}))(r.Z)},29979:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(1453),i=n(2276);const o=(0,r.Z)((function(e){for(var t=(0,i.Z)(e),n=t.length,r=[],o=0;o<n;)r[o]=e[t[o]],o+=1;return r}))},89525:function(e){e.exports=function(){"use strict";function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var t={addCSS:!0,thumbWidth:15,watch:!0},n=function(e){return null!=e?e.constructor:null},r=function(e,t){return!!(e&&t&&e instanceof t)},i=function(e){return null==e},o=function(e){return n(e)===Object},a=function(e){return n(e)===String},s=function(e){return Array.isArray(e)},l=function(e){return r(e,NodeList)},u={nullOrUndefined:i,object:o,number:function(e){return n(e)===Number&&!Number.isNaN(e)},string:a,boolean:function(e){return n(e)===Boolean},function:function(e){return n(e)===Function},array:s,nodeList:l,element:function(e){return r(e,Element)},event:function(e){return r(e,Event)},empty:function(e){return i(e)||(a(e)||s(e)||l(e))&&!e.length||o(e)&&!Object.keys(e).length}};return function(){function n(e,r){(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,n),u.element(e)?this.element=e:u.string(e)&&(this.element=document.querySelector(e)),u.element(this.element)&&u.empty(this.element.rangeTouch)&&(this.config=Object.assign({},t,r),this.init())}return r=n,o=[{key:"setup",value:function(e){var r=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},i=null;if(u.empty(e)||u.string(e)?i=Array.from(document.querySelectorAll(u.string(e)?e:'input[type="range"]')):u.element(e)?i=[e]:u.nodeList(e)?i=Array.from(e):u.array(e)&&(i=e.filter(u.element)),u.empty(i))return null;var o=Object.assign({},t,r);return u.string(e)&&o.watch&&new MutationObserver((function(t){Array.from(t).forEach((function(t){Array.from(t.addedNodes).forEach((function(t){u.element(t)&&function(e,t){return function(){return Array.from(document.querySelectorAll(t)).includes(this)}.call(e,t)}(t,e)&&new n(t,o)}))}))})).observe(document.body,{childList:!0,subtree:!0}),i.map((function(e){return new n(e,r)}))}},{key:"enabled",get:function(){return"ontouchstart"in document.documentElement}}],(i=[{key:"init",value:function(){n.enabled&&(this.config.addCSS&&(this.element.style.userSelect="none",this.element.style.webKitUserSelect="none",this.element.style.touchAction="manipulation"),this.listeners(!0),this.element.rangeTouch=this)}},{key:"destroy",value:function(){n.enabled&&(this.listeners(!1),this.element.rangeTouch=null)}},{key:"listeners",value:function(e){var t=this,n=e?"addEventListener":"removeEventListener";["touchstart","touchmove","touchend"].forEach((function(e){t.element[n](e,(function(e){return t.set(e)}),!1)}))}},{key:"get",value:function(e){if(!n.enabled||!u.event(e))return null;var t,r=e.target,i=e.changedTouches[0],o=parseFloat(r.getAttribute("min"))||0,a=parseFloat(r.getAttribute("max"))||100,s=parseFloat(r.getAttribute("step"))||1,l=r.getBoundingClientRect(),c=100/l.width*(this.config.thumbWidth/2)/100;return 0>(t=100/l.width*(i.clientX-l.left))?t=0:100<t&&(t=100),50>t?t-=(100-2*t)*c:50<t&&(t+=2*(t-50)*c),o+function(e,t){if(1>t){var n=function(e){var t="".concat(e).match(/(?:\.(\d+))?(?:[eE]([+-]?\d+))?$/);return t?Math.max(0,(t[1]?t[1].length:0)-(t[2]?+t[2]:0)):0}(t);return parseFloat(e.toFixed(n))}return Math.round(e/t)*t}(t/100*(a-o),s)}},{key:"set",value:function(e){n.enabled&&u.event(e)&&!e.target.disabled&&(e.preventDefault(),e.target.value=this.get(e),function(e,t){if(e&&t){var n=new Event(t);e.dispatchEvent(n)}}(e.target,"touchend"===e.type?"change":"input"))}}])&&e(r.prototype,i),o&&e(r,o),n;var r,i,o}()}()},21627:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var r=n(47677),i=n.n(r),o=n(81393),a=n(75952);const s=function(e){return null===e};function l(e,t,n){void 0===t&&(t=a.Z),i()((0,o.Z)(t)||s(t),"Expected payloadCreator to be a function, undefined or null");var r=s(t)||t===a.Z?a.Z:function(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return e instanceof Error?e:t.apply(void 0,[e].concat(r))},l=(0,o.Z)(n),u=e.toString(),c=function(){var t=r.apply(void 0,arguments),i={type:e};return t instanceof Error&&(i.error=!0),void 0!==t&&(i.payload=t),l&&(i.meta=n.apply(void 0,arguments)),i};return c.toString=function(){return u},c}},24220:(e,t,n)=>{"use strict";n.d(t,{Z:()=>g});const r=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];var r="function"!=typeof t[t.length-1]&&t.pop(),i=t;if(void 0===r)throw new TypeError("The initial state may not be undefined. If you do not want to set a value for this reducer, you can use null instead of undefined.");return function(e,t){for(var n=arguments.length,o=Array(n>2?n-2:0),a=2;a<n;a++)o[a-2]=arguments[a];var s=void 0===e,l=void 0===t;return s&&l&&r?r:i.reduce((function(e,n){return n.apply(void 0,[e,t].concat(o))}),s&&!l&&r?r:e)}};var i=n(47677),o=n.n(i);const a=function(e){if("object"!=typeof e||null===e)return!1;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t},s=function(e){return"undefined"!=typeof Map&&e instanceof Map};function l(e){if(s(e))return Array.from(e.keys());if("undefined"!=typeof Reflect&&"function"==typeof Reflect.ownKeys)return Reflect.ownKeys(e);var t=Object.getOwnPropertyNames(e);return"function"==typeof Object.getOwnPropertySymbols&&(t=t.concat(Object.getOwnPropertySymbols(e))),t}var u="||";function c(e,t){return s(t)?t.get(e):t[e]}const f=(d=function(e){return(a(e)||s(e))&&(n=(t=l(e)).every((function(e){return"next"===e||"throw"===e})),!(t.length&&t.length<=2&&n));var t,n},function e(t,n,r,i){var o=void 0===n?{}:n,a=o.namespace,s=void 0===a?"/":a,f=o.prefix;return void 0===r&&(r={}),void 0===i&&(i=""),l(t).forEach((function(n){var o=function(e){return i||!f||f&&new RegExp("^"+f+s).test(e)?e:""+f+s+e}(function(e){var t;if(!i)return e;var n=e.toString().split(u),r=i.split(u);return(t=[]).concat.apply(t,r.map((function(e){return n.map((function(t){return""+e+s+t}))}))).join(u)}(n)),a=c(n,t);d(a)?e(a,{namespace:s,prefix:f},r,o):r[o]=a})),r});var d,h=n(81393),p=n(75952);const m=function(e){return e.toString()};function g(e,t,n){void 0===n&&(n={}),o()(a(e)||s(e),"Expected handlers to be a plain object.");var i=f(e,n),d=l(i).map((function(e){return function(e,t,n){void 0===t&&(t=p.Z);var r=m(e).split(u);o()(!(void 0===n),"defaultState for reducer handling "+r.join(", ")+" should be defined"),o()((0,h.Z)(t)||a(t),"Expected reducer to be a function or object with next and throw reducers");var i=(0,h.Z)(t)?[t,t]:[t.next,t.throw].map((function(e){return null==e?p.Z:e})),s=i[0],l=i[1];return function(e,t){void 0===e&&(e=n);var i=t.type;return i&&-1!==r.indexOf(m(i))?(!0===t.error?l:s)(e,t):e}}(e,c(e,i),t)})),g=r.apply(void 0,d.concat([t]));return function(e,n){return void 0===e&&(e=t),g(e,n)}}},75952:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r=function(e){return e}},81393:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r=function(e){return"function"==typeof e}},1242:(e,t,n)=>{"use strict";n.d(t,{ZP:()=>H,GG:()=>_});var r=n(23143),i=n(7560),o=n(83594),a=n(93325);var s=[],l=0;function u(e){try{d(),e()}finally{h()}}function c(e){s.push(e),l||(d(),p())}function f(e){try{return d(),e()}finally{p()}}function d(){l++}function h(){l--}function p(){var e;for(h();!l&&void 0!==(e=s.shift());)u(e)}var m=function(e){return function(t){return e.some((function(e){return T(e)(t)}))}},g=function(e){return function(t){return e(t)}},v=function(e){return function(t){return t.type===String(e)}},y=function(e){return function(t){return t.type===e}},b=function(){return a.k};function T(e){var t="*"===e?b:(0,o.Z_)(e)?v:(0,o.IX)(e)?m:(0,o.eR)(e)?v:(0,o.Yl)(e)?g:(0,o.NA)(e)?y:null;if(null===t)throw new Error("invalid pattern: "+e);return t(e)}var S={type:r.sZ},E=function(e){return e&&e.type===r.sZ};function w(e){void 0===e&&(e=(0,a.e)());var t=!1,n=[];return{take:function(r){t&&e.isEmpty()?r(S):e.isEmpty()?(n.push(r),r.cancel=function(){(0,a.r)(n,r)}):r(e.take())},put:function(r){if(!t){if(0===n.length)return e.put(r);n.shift()(r)}},flush:function(n){t&&e.isEmpty()?n(S):n(e.flush())},close:function(){if(!t){t=!0;var e=n;n=[];for(var r=0,i=e.length;r<i;r++)(0,e[r])(S)}}}}function _(e,t){void 0===t&&(t=(0,a.n)());var n,r=!1,i=w(t),s=function(){r||(r=!0,(0,o.Yl)(n)&&n(),i.close())};return n=e((function(e){E(e)?s():i.put(e)})),n=(0,a.o)(n),r&&n(),{take:i.take,flush:i.flush,close:s}}function A(){var e,t,n,i,o,s,l=(t=!1,i=n=[],o=function(){i===n&&(i=n.slice())},s=function(){t=!0;var e=n=i;i=[],e.forEach((function(e){e(S)}))},(e={})[r.AS]=!0,e.put=function(e){if(!t)if(E(e))s();else for(var o=n=i,a=0,l=o.length;a<l;a++){var u=o[a];u[r.uq](e)&&(u.cancel(),u(e))}},e.take=function(e,n){void 0===n&&(n=b),t?e(S):(e[r.uq]=n,o(),i.push(e),e.cancel=(0,a.o)((function(){o(),(0,a.r)(i,e)})))},e.close=s,e),u=l.put;return l.put=function(e){e[r.Nm]?u(e):c((function(){u(e)}))},l}function x(e,t){var n=e[r.n1];(0,o.Yl)(n)&&(t.cancel=n),e.then(t,(function(e){t(e,!0)}))}var k,L=0,P=function(){return++L};function C(e){e.isRunning()&&e.cancel()}var M=((k={})[a.T]=function(e,t,n){var i=t.channel,a=void 0===i?e.channel:i,s=t.pattern,l=t.maybe,u=function(e){e instanceof Error?n(e,!0):!E(e)||l?n(e):n(r.EO)};try{a.take(u,(0,o.d5)(s)?T(s):null)}catch(e){return void n(e,!0)}n.cancel=u.cancel},k[a.P]=function(e,t,n){var r=t.channel,i=t.action,a=t.resolve;c((function(){var t;try{t=(r?r.put:e.dispatch)(i)}catch(e){return void n(e,!0)}a&&(0,o.MC)(t)?x(t,n):n(t)}))},k[a.A]=function(e,t,n,r){var i=r.digestEffect,s=L,l=Object.keys(t);if(0!==l.length){var u=(0,a.l)(t,n);l.forEach((function(e){i(t[e],s,u[e],e)}))}else n((0,o.IX)(t)?[]:{})},k[a.R]=function(e,t,n,r){var i=r.digestEffect,s=L,l=Object.keys(t),u=(0,o.IX)(t)?(0,a.m)(l.length):{},c={},f=!1;l.forEach((function(e){var t=function(t,r){f||(r||(0,a.s)(t)?(n.cancel(),n(t,r)):(n.cancel(),f=!0,u[e]=t,n(u)))};t.cancel=a.t,c[e]=t})),n.cancel=function(){f||(f=!0,l.forEach((function(e){return c[e].cancel()})))},l.forEach((function(e){f||i(t[e],s,c[e],e)}))},k[a.C]=function(e,t,n,r){var i=t.context,s=t.fn,l=t.args,u=r.task;try{var c=s.apply(i,l);if((0,o.MC)(c))return void x(c,n);if((0,o.hZ)(c))return void G(e,c,u.context,L,(0,a.j)(s),!1,n);n(c)}catch(e){n(e,!0)}},k[a.a]=function(e,t,n){var r=t.context,i=t.fn,a=t.args;try{var s=function(e,t){(0,o.sR)(e)?n(t):n(e,!0)};i.apply(r,a.concat(s)),s.cancel&&(n.cancel=s.cancel)}catch(e){n(e,!0)}},k[a.F]=function(e,t,n,r){var i=t.context,s=t.fn,l=t.args,u=t.detached,c=r.task,d=function(e){var t=e.context,n=e.fn,r=e.args;try{var i=n.apply(t,r);if((0,o.hZ)(i))return i;var s=!1;return(0,a.q)((function(e){return s?{value:e,done:!0}:(s=!0,{value:i,done:!(0,o.MC)(i)})}))}catch(e){return(0,a.q)((function(){throw e}))}}({context:i,fn:s,args:l}),h=function(e,t){return e.isSagaIterator?{name:e.meta.name}:(0,a.j)(t)}(d,s);f((function(){var t=G(e,d,c.context,L,h,u,void 0);u?n(t):t.isRunning()?(c.queue.addTask(t),n(t)):t.isAborted()?c.queue.abort(t.error()):n(t)}))},k[a.J]=function(e,t,n,r){var i=r.task,s=function(e,t){if(e.isRunning()){var n={task:i,cb:t};t.cancel=function(){e.isRunning()&&(0,a.r)(e.joiners,n)},e.joiners.push(n)}else e.isAborted()?t(e.error(),!0):t(e.result())};if((0,o.IX)(t)){if(0===t.length)return void n([]);var l=(0,a.l)(t,n);t.forEach((function(e,t){s(e,l[t])}))}else s(t,n)},k[a.b]=function(e,t,n,i){var a=i.task;t===r.sC?C(a):(0,o.IX)(t)?t.forEach(C):C(t),n()},k[a.S]=function(e,t,n){var r=t.selector,i=t.args;try{n(r.apply(void 0,[e.getState()].concat(i)))}catch(e){n(e,!0)}},k[a.d]=function(e,t,n){var r=t.pattern,i=w(t.buffer),o=T(r),a=function t(n){E(n)||e.channel.take(t,o),i.put(n)},s=i.close;i.close=function(){a.cancel(),s()},e.channel.take(a,o),n(i)},k[a.f]=function(e,t,n,r){n(r.task.isCancelled())},k[a.g]=function(e,t,n){t.flush(n)},k[a.G]=function(e,t,n,r){n(r.task.context[t])},k[a.h]=function(e,t,n,r){var i=r.task;(0,a.p)(i.context,t),n()},k);function R(e,t){return e+"?"+t}function O(e){var t=e.name,n=e.location;return n?t+" "+R(n.fileName,n.lineNumber):t}function I(e){var t=(0,a.u)((function(e){return e.cancelledTasks}),e);return t.length?["Tasks cancelled due to error:"].concat(t).join("\n"):""}var D=null,N=[],F=function(){D=null,N.length=0};function B(e,t,n,i,o,s,l){var u;void 0===l&&(l=a.t);var c,f,d=0,h=null,p=[],m=Object.create(n),g=function(e,t,n){var r,i=[],o=!1;function s(e){p.push.apply(p,g.getTasks().map((function(e){return e.meta.name}))),u(),n(e,!0)}function l(t){i.push(t),t.cont=function(l,u){o||((0,a.r)(i,t),t.cont=a.t,u?s(l):(t===e&&(r=l),i.length||(o=!0,n(r))))}}function u(){o||(o=!0,i.forEach((function(e){e.cont=a.t,e.cancel()})),i=[])}return l(e),{addTask:l,cancelAll:u,abort:s,getTasks:function(){return i}}}(t,0,v);function v(t,n){if(n){if(d=2,function(e){e.crashedEffect=D,N.push(e)}({meta:o,cancelledTasks:p}),y.isRoot){var i=function(){var e=N[0],t=N.slice(1),n=e.crashedEffect?function(e){var t=(0,a.v)(e);return t?t.code+" "+R(t.fileName,t.lineNumber):""}(e.crashedEffect):null;return["The above error occurred in task "+O(e.meta)+(n?" \n when executing effect "+n:"")].concat(t.map((function(e){return" created by "+O(e.meta)})),[I(N)]).join("\n")}();F(),e.onError(t,{sagaStack:i})}f=t,h&&h.reject(t)}else t===r.Wd?d=1:1!==d&&(d=3),c=t,h&&h.resolve(t);y.cont(t,n),y.joiners.forEach((function(e){e.cb(t,n)})),y.joiners=null}var y=((u={})[r.Cs]=!0,u.id=i,u.meta=o,u.isRoot=s,u.context=m,u.joiners=[],u.queue=g,u.cancel=function(){0===d&&(d=1,g.cancelAll(),v(r.Wd,!1))},u.cont=l,u.end=v,u.setContext=function(e){(0,a.p)(m,e)},u.toPromise=function(){return h||(h=function(){var e={};return e.promise=new Promise((function(t,n){e.resolve=t,e.reject=n})),e}(),2===d?h.reject(f):0!==d&&h.resolve(c)),h.promise},u.isRunning=function(){return 0===d},u.isCancelled=function(){return 1===d||0===d&&1===t.status},u.isAborted=function(){return 2===d},u.result=function(){return c},u.error=function(){return f},u);return y}function G(e,t,n,i,s,l,u){var c=e.finalizeRunEffect((function(t,n,i){(0,o.MC)(t)?x(t,i):(0,o.hZ)(t)?G(e,t,d.context,n,s,!1,i):t&&t[r.IO]?(0,M[t.type])(e,t.payload,i,h):i(t)}));p.cancel=a.t;var f={meta:s,cancel:function(){0===f.status&&(f.status=1,p(r.Wd))},status:0},d=B(e,f,n,i,s,l,u),h={task:d,digestEffect:m};return u&&(u.cancel=d.cancel),p(),d;function p(e,n){try{var s;n?(s=t.throw(e),F()):(0,a.y)(e)?(f.status=1,p.cancel(),s=(0,o.Yl)(t.return)?t.return(r.Wd):{done:!0,value:r.Wd}):s=(0,a.z)(e)?(0,o.Yl)(t.return)?t.return():{done:!0}:t.next(e),s.done?(1!==f.status&&(f.status=3),f.cont(s.value)):m(s.value,i,p)}catch(e){if(1===f.status)throw e;f.status=2,f.cont(e,!0)}}function m(t,n,r,i){void 0===i&&(i="");var o,s=P();function l(n,i){o||(o=!0,r.cancel=a.t,e.sagaMonitor&&(i?e.sagaMonitor.effectRejected(s,n):e.sagaMonitor.effectResolved(s,n)),i&&function(e){D=e}(t),r(n,i))}e.sagaMonitor&&e.sagaMonitor.effectTriggered({effectId:s,parentEffectId:n,label:i,effect:t}),l.cancel=a.t,r.cancel=function(){o||(o=!0,l.cancel(),l.cancel=a.t,e.sagaMonitor&&e.sagaMonitor.effectCancelled(s))},c(t,s,l)}}function U(e,t){for(var n=e.channel,r=void 0===n?A():n,i=e.dispatch,o=e.getState,s=e.context,l=void 0===s?{}:s,u=e.sagaMonitor,c=e.effectMiddlewares,d=e.onError,h=void 0===d?a.D:d,p=arguments.length,m=new Array(p>2?p-2:0),g=2;g<p;g++)m[g-2]=arguments[g];var v,y=t.apply(void 0,m),b=P();if(u&&(u.rootSagaStarted=u.rootSagaStarted||a.t,u.effectTriggered=u.effectTriggered||a.t,u.effectResolved=u.effectResolved||a.t,u.effectRejected=u.effectRejected||a.t,u.effectCancelled=u.effectCancelled||a.t,u.actionDispatched=u.actionDispatched||a.t,u.rootSagaStarted({effectId:b,saga:t,args:m})),c){var T=a.B.apply(void 0,c);v=function(e){return function(t,n,r){return T((function(t){return e(t,n,r)}))(t)}}}else v=a.H;var S={channel:r,dispatch:(0,a.E)(i),getState:o,sagaMonitor:u,onError:h,finalizeRunEffect:v};return f((function(){var e=G(S,y,l,b,(0,a.j)(t),!0,void 0);return u&&u.effectResolved(b,e),e}))}const H=function(e){var t,n=void 0===e?{}:e,r=n.context,o=void 0===r?{}:r,s=n.channel,l=void 0===s?A():s,u=n.sagaMonitor,c=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(n,["context","channel","sagaMonitor"]);function f(e){var n=e.getState,r=e.dispatch;return t=U.bind(null,(0,i.Z)({},c,{context:o,channel:l,dispatch:r,getState:n,sagaMonitor:u})),function(e){return function(t){u&&u.actionDispatched&&u.actionDispatched(t);var n=e(t);return l.put(t),n}}}return f.run=function(){return t.apply(void 0,arguments)},f.setContext=function(e){(0,a.p)(o,e)},f}},27422:(e,t,n)=>{"use strict";n.d(t,{RE:()=>i.O,Ds:()=>d,gw:()=>i.Q,rM:()=>i.M,gz:()=>i.Z,Ys:()=>i.a4,qn:()=>i.L,ib:()=>f});var r=n(83594),i=n(93325),o=function(e){return{done:!0,value:e}},a={};function s(e){return(0,r.CE)(e)?"channel":(0,r.eR)(e)?String(e):(0,r.Yl)(e)?e.name:String(e)}function l(e,t,n){var r,s,l,u=t;function c(t,n){if(u===a)return o(t);if(n&&!s)throw u=a,n;r&&r(t);var i=n?e[s](n):e[u]();return u=i.nextState,l=i.effect,r=i.stateUpdater,s=i.errorState,u===a?o(t):l}return(0,i.q)(c,(function(e){return c(null,e)}),n)}function u(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];var a,u={done:!1,value:(0,i.L)(e)},c=function(e){return{done:!1,value:i.M.apply(void 0,[t].concat(r,[e]))}},f=function(e){return a=e};return l({q1:function(){return{nextState:"q2",effect:u,stateUpdater:f}},q2:function(){return{nextState:"q1",effect:c(a)}}},"q1","takeEvery("+s(e)+", "+t.name+")")}function c(e,t,n){for(var r=arguments.length,o=new Array(r>3?r-3:0),a=3;a<r;a++)o[a-3]=arguments[a];var u,c,f={done:!1,value:(0,i.L)(t)},d={done:!1,value:(0,i.W)({action:(0,i.L)(t),debounce:(0,i.Q)(e)})},h=function(e){return{done:!1,value:i.M.apply(void 0,[n].concat(o,[e]))}},p=function(e){return{done:!1,value:e}},m=function(e){return u=e},g=function(e){return c=e};return l({q1:function(){return{nextState:"q2",effect:f,stateUpdater:m}},q2:function(){return{nextState:"q3",effect:d,stateUpdater:g}},q3:function(){return c.debounce?{nextState:"q1",effect:h(u)}:{nextState:"q2",effect:p(c.action),stateUpdater:m}}},"q1","debounce("+s(t)+", "+n.name+")")}function f(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];return i.M.apply(void 0,[u,e,t].concat(r))}function d(e,t,n){for(var r=arguments.length,o=new Array(r>3?r-3:0),a=3;a<r;a++)o[a-3]=arguments[a];return i.M.apply(void 0,[c,e,t,n].concat(o))}},26897:(e,t,n)=>{!function(e,t){for(var n in t)e[n]=t[n]}(t,function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=6)}([function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.injectActions=t.injectStore=t.provideActions=t.provideStore=t.actionsToken=t.storeToken=void 0;const r=n(8),i=n(3);t.storeToken=Symbol("ReduxStore"),t.actionsToken=Symbol("ReduxActions"),t.provideStore=(e,n)=>{if(!e)throw new Error("[redux-vuex]: store is not defined");n?n.provide(t.storeToken,e):i.provide(t.storeToken,e)},t.provideActions=(e,n)=>{e&&(n?n.provide(t.actionsToken,e):i.provide(t.actionsToken,e))},t.injectStore=()=>i.inject(t.storeToken)||(console.warn("[redux-vuex]: couldn't find a store, make sure you have provided it"),r.createStore(r.combineReducers({}))),t.injectActions=()=>i.inject(t.actionsToken,{})},function(e,t,n){"use strict";e.exports=function(e){return null!=e&&"object"==typeof e&&!1===Array.isArray(e)}},function(e,t,n){const r=n(1);function i(e,t,n){return"function"==typeof n.join?n.join(e):e[0]+t+e[1]}function o(e,t,n){return"function"!=typeof n.isValid||n.isValid(e,t)}function a(e){return r(e)||Array.isArray(e)||"function"==typeof e}e.exports=function(e,t,n){if(r(n)||(n={default:n}),!a(e))return void 0!==n.default?n.default:e;"number"==typeof t&&(t=String(t));const s=Array.isArray(t),l="string"==typeof t,u=n.separator||".",c=n.joinChar||("string"==typeof u?u:".");if(!l&&!s)return e;if(l&&t in e)return o(t,e,n)?e[t]:n.default;let f=s?t:function(e,t,n){return"function"==typeof n.split?n.split(e):e.split(t)}(t,u,n),d=f.length,h=0;do{let t=f[h];for("number"==typeof t&&(t=String(t));t&&"\\"===t.slice(-1);)t=i([t.slice(0,-1),f[++h]||""],c,n);if(t in e){if(!o(t,e,n))return n.default;e=e[t]}else{let r=!1,a=h+1;for(;a<d;)if(t=i([t,f[a++]],c,n),r=t in e){if(!o(t,e,n))return n.default;e=e[t],h=a-1;break}if(!r)return n.default}}while(++h<d&&a(e));return h===d?e:n.default}},function(e,t){e.exports=n(27875)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.applyMappers=t.objectMapper=void 0,t.objectMapper=e=>{const[t]=e;if(!Array.isArray(t)&&"object"==typeof t)return Object.keys(t).reduce(((e,n)=>{const r=t[n];return Object.assign(Object.assign({},e),{[n]:r})}),{});const n=e;return[].concat.apply([],n).reduce(((e,t)=>Object.assign(Object.assign({},e),{[t]:t})),{})},t.applyMappers=(e,t)=>Object.keys(e).reduce(((n,r)=>{const i=e[r];return Object.assign(Object.assign({},n),{[r]:t(r,i)})}),{})},,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.injectActions=t.injectStore=t.mapActions=t.mapState=t.provideStore=void 0;const r=n(7);Object.defineProperty(t,"provideStore",{enumerable:!0,get:function(){return r.provide}});const i=n(9);Object.defineProperty(t,"mapState",{enumerable:!0,get:function(){return i.mapState}});const o=n(10);Object.defineProperty(t,"mapActions",{enumerable:!0,get:function(){return o.mapActions}});const a=n(0);Object.defineProperty(t,"injectStore",{enumerable:!0,get:function(){return a.injectStore}}),Object.defineProperty(t,"injectActions",{enumerable:!0,get:function(){return a.injectActions}})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.provide=void 0;const r=n(0);t.provide=function(e){r.provideStore(e.store,e.app),r.provideActions(e.actions,e.app)}},function(e,t){e.exports=n(18717)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mapState=void 0;const r=n(2),i=n(3),o=n(0),a=n(4);t.mapState=function(...e){const t=o.injectStore(),n=a.objectMapper(e),s=a.applyMappers(n,((e,t)=>{return"string"==typeof t?(n=t,e=>r(e,n)):t;var n})),l=i.reactive(a.applyMappers(n,(e=>i.ref(e)))),u=()=>{Object.keys(n).forEach((e=>{l[e]=s[e].call(null,t.getState())}))};u();const c=t.subscribe(u);return i.onUnmounted(c),l}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mapActions=void 0;const r=n(4),i=n(0);t.mapActions=function(...e){const t=i.injectStore(),n=i.injectActions(),o=r.objectMapper(e);return r.applyMappers(o,((e,r)=>{return"string"==typeof r?(e=>{const r=n[e];if(r)return(...e)=>t.dispatch(r(...e));console.warn(`[redux-vuex] action ${e} is not defined`)})(r):(i=r,(...e)=>{i.apply(null,[Object.assign({},t,{actions:n}),...e])});var i}))}}]))},18717:(e,t,n)=>{"use strict";n.r(t),n.d(t,{__DO_NOT_USE__ActionTypes:()=>o,applyMiddleware:()=>g,bindActionCreators:()=>f,combineReducers:()=>u,compose:()=>m,createStore:()=>s});var r=n(7288),i=function(){return Math.random().toString(36).substring(7).split("").join(".")},o={INIT:"@@redux/INIT"+i(),REPLACE:"@@redux/REPLACE"+i(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+i()}};function a(e){if("object"!=typeof e||null===e)return!1;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function s(e,t,n){var i;if("function"==typeof t&&"function"==typeof n||"function"==typeof n&&"function"==typeof arguments[3])throw new Error("It looks like you are passing several store enhancers to createStore(). This is not supported. Instead, compose them together to a single function.");if("function"==typeof t&&void 0===n&&(n=t,t=void 0),void 0!==n){if("function"!=typeof n)throw new Error("Expected the enhancer to be a function.");return n(s)(e,t)}if("function"!=typeof e)throw new Error("Expected the reducer to be a function.");var l=e,u=t,c=[],f=c,d=!1;function h(){f===c&&(f=c.slice())}function p(){if(d)throw new Error("You may not call store.getState() while the reducer is executing. The reducer has already received the state as an argument. Pass it down from the top reducer instead of reading it from the store.");return u}function m(e){if("function"!=typeof e)throw new Error("Expected the listener to be a function.");if(d)throw new Error("You may not call store.subscribe() while the reducer is executing. If you would like to be notified after the store has been updated, subscribe from a component and invoke store.getState() in the callback to access the latest state. See https://redux.js.org/api-reference/store#subscribe(listener) for more details.");var t=!0;return h(),f.push(e),function(){if(t){if(d)throw new Error("You may not unsubscribe from a store listener while the reducer is executing. See https://redux.js.org/api-reference/store#subscribe(listener) for more details.");t=!1,h();var n=f.indexOf(e);f.splice(n,1)}}}function g(e){if(!a(e))throw new Error("Actions must be plain objects. Use custom middleware for async actions.");if(void 0===e.type)throw new Error('Actions may not have an undefined "type" property. Have you misspelled a constant?');if(d)throw new Error("Reducers may not dispatch actions.");try{d=!0,u=l(u,e)}finally{d=!1}for(var t=c=f,n=0;n<t.length;n++)(0,t[n])();return e}function v(e){if("function"!=typeof e)throw new Error("Expected the nextReducer to be a function.");l=e,g({type:o.REPLACE})}function y(){var e,t=m;return(e={subscribe:function(e){if("object"!=typeof e||null===e)throw new TypeError("Expected the observer to be an object.");function n(){e.next&&e.next(p())}return n(),{unsubscribe:t(n)}}})[r.Z]=function(){return this},e}return g({type:o.INIT}),(i={dispatch:g,subscribe:m,getState:p,replaceReducer:v})[r.Z]=y,i}function l(e,t){var n=t&&t.type;return"Given "+(n&&'action "'+String(n)+'"'||"an action")+', reducer "'+e+'" returned undefined. To ignore an action, you must explicitly return the previous state. If you want this reducer to hold no value, you can return null instead of undefined.'}function u(e){for(var t=Object.keys(e),n={},r=0;r<t.length;r++){var i=t[r];"function"==typeof e[i]&&(n[i]=e[i])}var a,s=Object.keys(n);try{!function(e){Object.keys(e).forEach((function(t){var n=e[t];if(void 0===n(void 0,{type:o.INIT}))throw new Error('Reducer "'+t+"\" returned undefined during initialization. If the state passed to the reducer is undefined, you must explicitly return the initial state. The initial state may not be undefined. If you don't want to set a value for this reducer, you can use null instead of undefined.");if(void 0===n(void 0,{type:o.PROBE_UNKNOWN_ACTION()}))throw new Error('Reducer "'+t+"\" returned undefined when probed with a random type. Don't try to handle "+o.INIT+' or other actions in "redux/*" namespace. They are considered private. Instead, you must return the current state for any unknown actions, unless it is undefined, in which case you must return the initial state, regardless of the action type. The initial state may not be undefined, but can be null.')}))}(n)}catch(e){a=e}return function(e,t){if(void 0===e&&(e={}),a)throw a;for(var r=!1,i={},o=0;o<s.length;o++){var u=s[o],c=n[u],f=e[u],d=c(f,t);if(void 0===d){var h=l(u,t);throw new Error(h)}i[u]=d,r=r||d!==f}return r?i:e}}function c(e,t){return function(){return t(e.apply(this,arguments))}}function f(e,t){if("function"==typeof e)return c(e,t);if("object"!=typeof e||null===e)throw new Error("bindActionCreators expected an object or a function, instead received "+(null===e?"null":typeof e)+'. Did you write "import ActionCreators from" instead of "import * as ActionCreators from"?');var n={};for(var r in e){var i=e[r];"function"==typeof i&&(n[r]=c(i,t))}return n}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}function h(e,t){var n=Object.keys(e);return Object.getOwnPropertySymbols&&n.push.apply(n,Object.getOwnPropertySymbols(e)),t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n}function p(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?h(n,!0).forEach((function(t){d(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):h(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function m(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return 0===t.length?function(e){return e}:1===t.length?t[0]:t.reduce((function(e,t){return function(){return e(t.apply(void 0,arguments))}}))}function g(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){return function(){var n=e.apply(void 0,arguments),r=function(){throw new Error("Dispatching while constructing your middleware is not allowed. Other middleware would not be applied to this dispatch.")},i={getState:n.getState,dispatch:function(){return r.apply(void 0,arguments)}},o=t.map((function(e){return e(i)}));return p({},n,{dispatch:r=m.apply(void 0,o)(n.dispatch)})}}}},25047:e=>{var t=function(e){"use strict";var t,n=Object.prototype,r=n.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},o=i.iterator||"@@iterator",a=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function l(e,t,n,r){var i=t&&t.prototype instanceof m?t:m,o=Object.create(i.prototype),a=new k(r||[]);return o._invoke=function(e,t,n){var r=c;return function(i,o){if(r===d)throw new Error("Generator is already running");if(r===h){if("throw"===i)throw o;return P()}for(n.method=i,n.arg=o;;){var a=n.delegate;if(a){var s=_(a,n);if(s){if(s===p)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===c)throw r=h,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=d;var l=u(e,t,n);if("normal"===l.type){if(r=n.done?h:f,l.arg===p)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(r=h,n.method="throw",n.arg=l.arg)}}}(e,n,a),o}function u(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=l;var c="suspendedStart",f="suspendedYield",d="executing",h="completed",p={};function m(){}function g(){}function v(){}var y={};y[o]=function(){return this};var b=Object.getPrototypeOf,T=b&&b(b(L([])));T&&T!==n&&r.call(T,o)&&(y=T);var S=v.prototype=m.prototype=Object.create(y);function E(e){["next","throw","return"].forEach((function(t){e[t]=function(e){return this._invoke(t,e)}}))}function w(e){function t(n,i,o,a){var s=u(e[n],e,i);if("throw"!==s.type){var l=s.arg,c=l.value;return c&&"object"==typeof c&&r.call(c,"__await")?Promise.resolve(c.__await).then((function(e){t("next",e,o,a)}),(function(e){t("throw",e,o,a)})):Promise.resolve(c).then((function(e){l.value=e,o(l)}),(function(e){return t("throw",e,o,a)}))}a(s.arg)}var n;this._invoke=function(e,r){function i(){return new Promise((function(n,i){t(e,r,n,i)}))}return n=n?n.then(i,i):i()}}function _(e,n){var r=e.iterator[n.method];if(r===t){if(n.delegate=null,"throw"===n.method){if(e.iterator.return&&(n.method="return",n.arg=t,_(e,n),"throw"===n.method))return p;n.method="throw",n.arg=new TypeError("The iterator does not provide a 'throw' method")}return p}var i=u(r,e.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,p;var o=i.arg;return o?o.done?(n[e.resultName]=o.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,p):o:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,p)}function A(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function x(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function k(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(A,this),this.reset(!0)}function L(e){if(e){var n=e[o];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,a=function n(){for(;++i<e.length;)if(r.call(e,i))return n.value=e[i],n.done=!1,n;return n.value=t,n.done=!0,n};return a.next=a}}return{next:P}}function P(){return{value:t,done:!0}}return g.prototype=S.constructor=v,v.constructor=g,v[s]=g.displayName="GeneratorFunction",e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===g||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,s in e||(e[s]="GeneratorFunction")),e.prototype=Object.create(S),e},e.awrap=function(e){return{__await:e}},E(w.prototype),w.prototype[a]=function(){return this},e.AsyncIterator=w,e.async=function(t,n,r,i){var o=new w(l(t,n,r,i));return e.isGeneratorFunction(n)?o:o.next().then((function(e){return e.done?e.value:o.next()}))},E(S),S[s]="Generator",S[o]=function(){return this},S.toString=function(){return"[object Generator]"},e.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},e.values=L,k.prototype={constructor:k,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(x),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function i(r,i){return s.type="throw",s.arg=e,n.next=r,i&&(n.method="next",n.arg=t),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var l=r.call(a,"catchLoc"),u=r.call(a,"finallyLoc");if(l&&u){if(this.prev<a.catchLoc)return i(a.catchLoc,!0);if(this.prev<a.finallyLoc)return i(a.finallyLoc)}else if(l){if(this.prev<a.catchLoc)return i(a.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return i(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,p):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),p},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),x(n),p}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;x(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:L(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),p}},e}(e.exports);try{regeneratorRuntime=t}catch(e){Function("r","regeneratorRuntime = r")(t)}},26047:(e,t,n)=>{"use strict";var r=n(30905),i=Array.prototype.concat,o=Array.prototype.slice,a=e.exports=function(e){for(var t=[],n=0,a=e.length;n<a;n++){var s=e[n];r(s)?t=i.call(t,o.call(s)):t.push(s)}return t};a.wrap=function(e){return function(){return e(a(arguments))}}},30905:e=>{e.exports=function(e){return!(!e||"string"==typeof e)&&(e instanceof Array||Array.isArray(e)||e.length>=0&&(e.splice instanceof Function||Object.getOwnPropertyDescriptor(e,e.length-1)&&"String"!==e.constructor.name))}},7288:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r}),e=n.hmd(e);const r=function(e){var t,n=e.Symbol;return"function"==typeof n?n.observable?t=n.observable:(t=n("observable"),n.observable=t):t="@@observable",t}("undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==n.g?n.g:e)},16782:(e,t,n)=>{"use strict";function r(e,t){return t=t||{},new Promise((function(n,r){var i=new XMLHttpRequest,o=[],a=[],s={},l=function(){return{ok:2==(i.status/100|0),statusText:i.statusText,status:i.status,url:i.responseURL,text:function(){return Promise.resolve(i.responseText)},json:function(){return Promise.resolve(JSON.parse(i.responseText))},blob:function(){return Promise.resolve(new Blob([i.response]))},clone:l,headers:{keys:function(){return o},entries:function(){return a},get:function(e){return s[e.toLowerCase()]},has:function(e){return e.toLowerCase()in s}}}};for(var u in i.open(t.method||"get",e,!0),i.onload=function(){i.getAllResponseHeaders().replace(/^(.*?):[^\S\n]*([\s\S]*?)$/gm,(function(e,t,n){o.push(t=t.toLowerCase()),a.push([t,n]),s[t]=s[t]?s[t]+","+n:n})),n(l())},i.onerror=r,i.withCredentials="include"==t.credentials,t.headers)i.setRequestHeader(u,t.headers[u]);i.send(t.body||null)}))}n.d(t,{Z:()=>r})},36994:(e,t,n)=>{"use strict";n.d(t,{Lt:()=>Ye});var r="top",i="bottom",o="right",a="left",s="auto",l=[r,i,o,a],u="start",c="end",f="viewport",d="popper",h=l.reduce((function(e,t){return e.concat([t+"-"+u,t+"-"+c])}),[]),p=[].concat(l,[s]).reduce((function(e,t){return e.concat([t,t+"-"+u,t+"-"+c])}),[]),m=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function g(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function v(e){return e instanceof g(e).Element||e instanceof Element}function y(e){return e instanceof g(e).HTMLElement||e instanceof HTMLElement}function b(e){return"undefined"!=typeof ShadowRoot&&(e instanceof g(e).ShadowRoot||e instanceof ShadowRoot)}var T=Math.max,S=Math.min,E=Math.round;function w(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map((function(e){return e.brand+"/"+e.version})).join(" "):navigator.userAgent}function _(){return!/^((?!chrome|android).)*safari/i.test(w())}function A(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var r=e.getBoundingClientRect(),i=1,o=1;t&&y(e)&&(i=e.offsetWidth>0&&E(r.width)/e.offsetWidth||1,o=e.offsetHeight>0&&E(r.height)/e.offsetHeight||1);var a=(v(e)?g(e):window).visualViewport,s=!_()&&n,l=(r.left+(s&&a?a.offsetLeft:0))/i,u=(r.top+(s&&a?a.offsetTop:0))/o,c=r.width/i,f=r.height/o;return{width:c,height:f,top:u,right:l+c,bottom:u+f,left:l,x:l,y:u}}function x(e){var t=g(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function k(e){return e?(e.nodeName||"").toLowerCase():null}function L(e){return((v(e)?e.ownerDocument:e.document)||window.document).documentElement}function P(e){return A(L(e)).left+x(e).scrollLeft}function C(e){return g(e).getComputedStyle(e)}function M(e){var t=C(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function R(e,t,n){void 0===n&&(n=!1);var r,i,o=y(t),a=y(t)&&function(e){var t=e.getBoundingClientRect(),n=E(t.width)/e.offsetWidth||1,r=E(t.height)/e.offsetHeight||1;return 1!==n||1!==r}(t),s=L(t),l=A(e,a,n),u={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(o||!o&&!n)&&(("body"!==k(t)||M(s))&&(u=(r=t)!==g(r)&&y(r)?{scrollLeft:(i=r).scrollLeft,scrollTop:i.scrollTop}:x(r)),y(t)?((c=A(t,!0)).x+=t.clientLeft,c.y+=t.clientTop):s&&(c.x=P(s))),{x:l.left+u.scrollLeft-c.x,y:l.top+u.scrollTop-c.y,width:l.width,height:l.height}}function O(e){var t=A(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function I(e){return"html"===k(e)?e:e.assignedSlot||e.parentNode||(b(e)?e.host:null)||L(e)}function D(e){return["html","body","#document"].indexOf(k(e))>=0?e.ownerDocument.body:y(e)&&M(e)?e:D(I(e))}function N(e,t){var n;void 0===t&&(t=[]);var r=D(e),i=r===(null==(n=e.ownerDocument)?void 0:n.body),o=g(r),a=i?[o].concat(o.visualViewport||[],M(r)?r:[]):r,s=t.concat(a);return i?s:s.concat(N(I(a)))}function F(e){return["table","td","th"].indexOf(k(e))>=0}function B(e){return y(e)&&"fixed"!==C(e).position?e.offsetParent:null}function G(e){for(var t=g(e),n=B(e);n&&F(n)&&"static"===C(n).position;)n=B(n);return n&&("html"===k(n)||"body"===k(n)&&"static"===C(n).position)?t:n||function(e){var t=/firefox/i.test(w());if(/Trident/i.test(w())&&y(e)&&"fixed"===C(e).position)return null;var n=I(e);for(b(n)&&(n=n.host);y(n)&&["html","body"].indexOf(k(n))<0;){var r=C(n);if("none"!==r.transform||"none"!==r.perspective||"paint"===r.contain||-1!==["transform","perspective"].indexOf(r.willChange)||t&&"filter"===r.willChange||t&&r.filter&&"none"!==r.filter)return n;n=n.parentNode}return null}(e)||t}function U(e){var t=new Map,n=new Set,r=[];function i(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!n.has(e)){var r=t.get(e);r&&i(r)}})),r.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){n.has(e.name)||i(e)})),r}var H={placement:"bottom",modifiers:[],strategy:"absolute"};function V(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some((function(e){return!(e&&"function"==typeof e.getBoundingClientRect)}))}var j={passive:!0};function W(e){return e.split("-")[0]}function $(e){return e.split("-")[1]}function K(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Z(e){var t,n=e.reference,s=e.element,l=e.placement,f=l?W(l):null,d=l?$(l):null,h=n.x+n.width/2-s.width/2,p=n.y+n.height/2-s.height/2;switch(f){case r:t={x:h,y:n.y-s.height};break;case i:t={x:h,y:n.y+n.height};break;case o:t={x:n.x+n.width,y:p};break;case a:t={x:n.x-s.width,y:p};break;default:t={x:n.x,y:n.y}}var m=f?K(f):null;if(null!=m){var g="y"===m?"height":"width";switch(d){case u:t[m]=t[m]-(n[g]/2-s[g]/2);break;case c:t[m]=t[m]+(n[g]/2-s[g]/2)}}return t}var X={top:"auto",right:"auto",bottom:"auto",left:"auto"};function z(e){var t,n=e.popper,s=e.popperRect,l=e.placement,u=e.variation,f=e.offsets,d=e.position,h=e.gpuAcceleration,p=e.adaptive,m=e.roundOffsets,v=e.isFixed,y=f.x,b=void 0===y?0:y,T=f.y,S=void 0===T?0:T,w="function"==typeof m?m({x:b,y:S}):{x:b,y:S};b=w.x,S=w.y;var _=f.hasOwnProperty("x"),A=f.hasOwnProperty("y"),x=a,k=r,P=window;if(p){var M=G(n),R="clientHeight",O="clientWidth";M===g(n)&&"static"!==C(M=L(n)).position&&"absolute"===d&&(R="scrollHeight",O="scrollWidth"),M=M,(l===r||(l===a||l===o)&&u===c)&&(k=i,S-=(v&&M===P&&P.visualViewport?P.visualViewport.height:M[R])-s.height,S*=h?1:-1),l!==a&&(l!==r&&l!==i||u!==c)||(x=o,b-=(v&&M===P&&P.visualViewport?P.visualViewport.width:M[O])-s.width,b*=h?1:-1)}var I,D=Object.assign({position:d},p&&X),N=!0===m?function(e,t){var n=e.x,r=e.y,i=t.devicePixelRatio||1;return{x:E(n*i)/i||0,y:E(r*i)/i||0}}({x:b,y:S},g(n)):{x:b,y:S};return b=N.x,S=N.y,h?Object.assign({},D,((I={})[k]=A?"0":"",I[x]=_?"0":"",I.transform=(P.devicePixelRatio||1)<=1?"translate("+b+"px, "+S+"px)":"translate3d("+b+"px, "+S+"px, 0)",I)):Object.assign({},D,((t={})[k]=A?S+"px":"",t[x]=_?b+"px":"",t.transform="",t))}var q={left:"right",right:"left",bottom:"top",top:"bottom"};function Y(e){return e.replace(/left|right|bottom|top/g,(function(e){return q[e]}))}var Q={start:"end",end:"start"};function J(e){return e.replace(/start|end/g,(function(e){return Q[e]}))}function ee(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&b(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function te(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function ne(e,t,n){return t===f?te(function(e,t){var n=g(e),r=L(e),i=n.visualViewport,o=r.clientWidth,a=r.clientHeight,s=0,l=0;if(i){o=i.width,a=i.height;var u=_();(u||!u&&"fixed"===t)&&(s=i.offsetLeft,l=i.offsetTop)}return{width:o,height:a,x:s+P(e),y:l}}(e,n)):v(t)?function(e,t){var n=A(e,!1,"fixed"===t);return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}(t,n):te(function(e){var t,n=L(e),r=x(e),i=null==(t=e.ownerDocument)?void 0:t.body,o=T(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),a=T(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),s=-r.scrollLeft+P(e),l=-r.scrollTop;return"rtl"===C(i||n).direction&&(s+=T(n.clientWidth,i?i.clientWidth:0)-o),{width:o,height:a,x:s,y:l}}(L(e)))}function re(e,t,n,r){var i="clippingParents"===t?function(e){var t=N(I(e)),n=["absolute","fixed"].indexOf(C(e).position)>=0&&y(e)?G(e):e;return v(n)?t.filter((function(e){return v(e)&&ee(e,n)&&"body"!==k(e)})):[]}(e):[].concat(t),o=[].concat(i,[n]),a=o[0],s=o.reduce((function(t,n){var i=ne(e,n,r);return t.top=T(i.top,t.top),t.right=S(i.right,t.right),t.bottom=S(i.bottom,t.bottom),t.left=T(i.left,t.left),t}),ne(e,a,r));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function ie(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function oe(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}function ae(e,t){void 0===t&&(t={});var n=t,a=n.placement,s=void 0===a?e.placement:a,u=n.strategy,c=void 0===u?e.strategy:u,h=n.boundary,p=void 0===h?"clippingParents":h,m=n.rootBoundary,g=void 0===m?f:m,y=n.elementContext,b=void 0===y?d:y,T=n.altBoundary,S=void 0!==T&&T,E=n.padding,w=void 0===E?0:E,_=ie("number"!=typeof w?w:oe(w,l)),x=b===d?"reference":d,k=e.rects.popper,P=e.elements[S?x:b],C=re(v(P)?P:P.contextElement||L(e.elements.popper),p,g,c),M=A(e.elements.reference),R=Z({reference:M,element:k,strategy:"absolute",placement:s}),O=te(Object.assign({},k,R)),I=b===d?O:M,D={top:C.top-I.top+_.top,bottom:I.bottom-C.bottom+_.bottom,left:C.left-I.left+_.left,right:I.right-C.right+_.right},N=e.modifiersData.offset;if(b===d&&N){var F=N[s];Object.keys(D).forEach((function(e){var t=[o,i].indexOf(e)>=0?1:-1,n=[r,i].indexOf(e)>=0?"y":"x";D[e]+=F[n]*t}))}return D}function se(e,t,n){return T(e,S(t,n))}function le(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function ue(e){return[r,o,i,a].some((function(t){return e[t]>=0}))}var ce=function(e){void 0===e&&(e={});var t=e,n=t.defaultModifiers,r=void 0===n?[]:n,i=t.defaultOptions,o=void 0===i?H:i;return function(e,t,n){void 0===n&&(n=o);var i,a,s={placement:"bottom",orderedModifiers:[],options:Object.assign({},H,o),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},l=[],u=!1,c={state:s,setOptions:function(n){var i="function"==typeof n?n(s.options):n;f(),s.options=Object.assign({},o,s.options,i),s.scrollParents={reference:v(e)?N(e):e.contextElement?N(e.contextElement):[],popper:N(t)};var a,u,d=function(e){var t=U(e);return m.reduce((function(e,n){return e.concat(t.filter((function(e){return e.phase===n})))}),[])}((a=[].concat(r,s.options.modifiers),u=a.reduce((function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e}),{}),Object.keys(u).map((function(e){return u[e]}))));return s.orderedModifiers=d.filter((function(e){return e.enabled})),s.orderedModifiers.forEach((function(e){var t=e.name,n=e.options,r=void 0===n?{}:n,i=e.effect;if("function"==typeof i){var o=i({state:s,name:t,instance:c,options:r});l.push(o||function(){})}})),c.update()},forceUpdate:function(){if(!u){var e=s.elements,t=e.reference,n=e.popper;if(V(t,n)){s.rects={reference:R(t,G(n),"fixed"===s.options.strategy),popper:O(n)},s.reset=!1,s.placement=s.options.placement,s.orderedModifiers.forEach((function(e){return s.modifiersData[e.name]=Object.assign({},e.data)}));for(var r=0;r<s.orderedModifiers.length;r++)if(!0!==s.reset){var i=s.orderedModifiers[r],o=i.fn,a=i.options,l=void 0===a?{}:a,f=i.name;"function"==typeof o&&(s=o({state:s,options:l,name:f,instance:c})||s)}else s.reset=!1,r=-1}}},update:(i=function(){return new Promise((function(e){c.forceUpdate(),e(s)}))},function(){return a||(a=new Promise((function(e){Promise.resolve().then((function(){a=void 0,e(i())}))}))),a}),destroy:function(){f(),u=!0}};if(!V(e,t))return c;function f(){l.forEach((function(e){return e()})),l=[]}return c.setOptions(n).then((function(e){!u&&n.onFirstUpdate&&n.onFirstUpdate(e)})),c}}({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,r=e.options,i=r.scroll,o=void 0===i||i,a=r.resize,s=void 0===a||a,l=g(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&u.forEach((function(e){e.addEventListener("scroll",n.update,j)})),s&&l.addEventListener("resize",n.update,j),function(){o&&u.forEach((function(e){e.removeEventListener("scroll",n.update,j)})),s&&l.removeEventListener("resize",n.update,j)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=Z({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,r=n.gpuAcceleration,i=void 0===r||r,o=n.adaptive,a=void 0===o||o,s=n.roundOffsets,l=void 0===s||s,u={placement:W(t.placement),variation:$(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,z(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:l})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,z(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},{name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var n=t.styles[e]||{},r=t.attributes[e]||{},i=t.elements[e];y(i)&&k(i)&&(Object.assign(i.style,n),Object.keys(r).forEach((function(e){var t=r[e];!1===t?i.removeAttribute(e):i.setAttribute(e,!0===t?"":t)})))}))},effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach((function(e){var r=t.elements[e],i=t.attributes[e]||{},o=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce((function(e,t){return e[t]="",e}),{});y(r)&&k(r)&&(Object.assign(r.style,o),Object.keys(i).forEach((function(e){r.removeAttribute(e)})))}))}},requires:["computeStyles"]},{name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,i=e.name,s=n.offset,l=void 0===s?[0,0]:s,u=p.reduce((function(e,n){return e[n]=function(e,t,n){var i=W(e),s=[a,r].indexOf(i)>=0?-1:1,l="function"==typeof n?n(Object.assign({},t,{placement:e})):n,u=l[0],c=l[1];return u=u||0,c=(c||0)*s,[a,o].indexOf(i)>=0?{x:c,y:u}:{x:u,y:c}}(n,t.rects,l),e}),{}),c=u[t.placement],f=c.x,d=c.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=f,t.modifiersData.popperOffsets.y+=d),t.modifiersData[i]=u}},{name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,c=e.name;if(!t.modifiersData[c]._skip){for(var f=n.mainAxis,d=void 0===f||f,m=n.altAxis,g=void 0===m||m,v=n.fallbackPlacements,y=n.padding,b=n.boundary,T=n.rootBoundary,S=n.altBoundary,E=n.flipVariations,w=void 0===E||E,_=n.allowedAutoPlacements,A=t.options.placement,x=W(A),k=v||(x!==A&&w?function(e){if(W(e)===s)return[];var t=Y(e);return[J(e),t,J(t)]}(A):[Y(A)]),L=[A].concat(k).reduce((function(e,n){return e.concat(W(n)===s?function(e,t){void 0===t&&(t={});var n=t,r=n.placement,i=n.boundary,o=n.rootBoundary,a=n.padding,s=n.flipVariations,u=n.allowedAutoPlacements,c=void 0===u?p:u,f=$(r),d=f?s?h:h.filter((function(e){return $(e)===f})):l,m=d.filter((function(e){return c.indexOf(e)>=0}));0===m.length&&(m=d);var g=m.reduce((function(t,n){return t[n]=ae(e,{placement:n,boundary:i,rootBoundary:o,padding:a})[W(n)],t}),{});return Object.keys(g).sort((function(e,t){return g[e]-g[t]}))}(t,{placement:n,boundary:b,rootBoundary:T,padding:y,flipVariations:w,allowedAutoPlacements:_}):n)}),[]),P=t.rects.reference,C=t.rects.popper,M=new Map,R=!0,O=L[0],I=0;I<L.length;I++){var D=L[I],N=W(D),F=$(D)===u,B=[r,i].indexOf(N)>=0,G=B?"width":"height",U=ae(t,{placement:D,boundary:b,rootBoundary:T,altBoundary:S,padding:y}),H=B?F?o:a:F?i:r;P[G]>C[G]&&(H=Y(H));var V=Y(H),j=[];if(d&&j.push(U[N]<=0),g&&j.push(U[H]<=0,U[V]<=0),j.every((function(e){return e}))){O=D,R=!1;break}M.set(D,j)}if(R)for(var K=function(e){var t=L.find((function(t){var n=M.get(t);if(n)return n.slice(0,e).every((function(e){return e}))}));if(t)return O=t,"break"},Z=w?3:1;Z>0&&"break"!==K(Z);Z--);t.placement!==O&&(t.modifiersData[c]._skip=!0,t.placement=O,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}},{name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,s=e.name,l=n.mainAxis,c=void 0===l||l,f=n.altAxis,d=void 0!==f&&f,h=n.boundary,p=n.rootBoundary,m=n.altBoundary,g=n.padding,v=n.tether,y=void 0===v||v,b=n.tetherOffset,E=void 0===b?0:b,w=ae(t,{boundary:h,rootBoundary:p,padding:g,altBoundary:m}),_=W(t.placement),A=$(t.placement),x=!A,k=K(_),L="x"===k?"y":"x",P=t.modifiersData.popperOffsets,C=t.rects.reference,M=t.rects.popper,R="function"==typeof E?E(Object.assign({},t.rects,{placement:t.placement})):E,I="number"==typeof R?{mainAxis:R,altAxis:R}:Object.assign({mainAxis:0,altAxis:0},R),D=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,N={x:0,y:0};if(P){if(c){var F,B="y"===k?r:a,U="y"===k?i:o,H="y"===k?"height":"width",V=P[k],j=V+w[B],Z=V-w[U],X=y?-M[H]/2:0,z=A===u?C[H]:M[H],q=A===u?-M[H]:-C[H],Y=t.elements.arrow,Q=y&&Y?O(Y):{width:0,height:0},J=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},ee=J[B],te=J[U],ne=se(0,C[H],Q[H]),re=x?C[H]/2-X-ne-ee-I.mainAxis:z-ne-ee-I.mainAxis,ie=x?-C[H]/2+X+ne+te+I.mainAxis:q+ne+te+I.mainAxis,oe=t.elements.arrow&&G(t.elements.arrow),le=oe?"y"===k?oe.clientTop||0:oe.clientLeft||0:0,ue=null!=(F=null==D?void 0:D[k])?F:0,ce=V+ie-ue,fe=se(y?S(j,V+re-ue-le):j,V,y?T(Z,ce):Z);P[k]=fe,N[k]=fe-V}if(d){var de,he="x"===k?r:a,pe="x"===k?i:o,me=P[L],ge="y"===L?"height":"width",ve=me+w[he],ye=me-w[pe],be=-1!==[r,a].indexOf(_),Te=null!=(de=null==D?void 0:D[L])?de:0,Se=be?ve:me-C[ge]-M[ge]-Te+I.altAxis,Ee=be?me+C[ge]+M[ge]-Te-I.altAxis:ye,we=y&&be?function(e,t,n){var r=se(e,t,n);return r>n?n:r}(Se,me,Ee):se(y?Se:ve,me,y?Ee:ye);P[L]=we,N[L]=we-me}t.modifiersData[s]=N}},requiresIfExists:["offset"]},{name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,s=e.name,u=e.options,c=n.elements.arrow,f=n.modifiersData.popperOffsets,d=W(n.placement),h=K(d),p=[a,o].indexOf(d)>=0?"height":"width";if(c&&f){var m=function(e,t){return ie("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:oe(e,l))}(u.padding,n),g=O(c),v="y"===h?r:a,y="y"===h?i:o,b=n.rects.reference[p]+n.rects.reference[h]-f[h]-n.rects.popper[p],T=f[h]-n.rects.reference[h],S=G(c),E=S?"y"===h?S.clientHeight||0:S.clientWidth||0:0,w=b/2-T/2,_=m[v],A=E-g[p]-m[y],x=E/2-g[p]/2+w,k=se(_,x,A),L=h;n.modifiersData[s]=((t={})[L]=k,t.centerOffset=k-x,t)}},effect:function(e){var t=e.state,n=e.options.element,r=void 0===n?"[data-popper-arrow]":n;null!=r&&("string"!=typeof r||(r=t.elements.popper.querySelector(r)))&&ee(t.elements.popper,r)&&(t.elements.arrow=r)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]},{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,r=t.rects.reference,i=t.rects.popper,o=t.modifiersData.preventOverflow,a=ae(t,{elementContext:"reference"}),s=ae(t,{altBoundary:!0}),l=le(a,r),u=le(s,i,o),c=ue(l),f=ue(u);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:u,isReferenceHidden:c,hasPopperEscaped:f},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":f})}}]}),fe=n(27875);let de;function he(){he.init||(he.init=!0,de=-1!==function(){var e=window.navigator.userAgent,t=e.indexOf("MSIE ");if(t>0)return parseInt(e.substring(t+5,e.indexOf(".",t)),10);if(e.indexOf("Trident/")>0){var n=e.indexOf("rv:");return parseInt(e.substring(n+3,e.indexOf(".",n)),10)}var r=e.indexOf("Edge/");return r>0?parseInt(e.substring(r+5,e.indexOf(".",r)),10):-1}())}var pe={name:"ResizeObserver",props:{emitOnMount:{type:Boolean,default:!1},ignoreWidth:{type:Boolean,default:!1},ignoreHeight:{type:Boolean,default:!1}},emits:["notify"],mounted(){he(),(0,fe.nextTick)((()=>{this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitOnMount&&this.emitSize()}));const e=document.createElement("object");this._resizeObject=e,e.setAttribute("aria-hidden","true"),e.setAttribute("tabindex",-1),e.onload=this.addResizeHandlers,e.type="text/html",de&&this.$el.appendChild(e),e.data="about:blank",de||this.$el.appendChild(e)},beforeUnmount(){this.removeResizeHandlers()},methods:{compareAndNotify(){(!this.ignoreWidth&&this._w!==this.$el.offsetWidth||!this.ignoreHeight&&this._h!==this.$el.offsetHeight)&&(this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitSize())},emitSize(){this.$emit("notify",{width:this._w,height:this._h})},addResizeHandlers(){this._resizeObject.contentDocument.defaultView.addEventListener("resize",this.compareAndNotify),this.compareAndNotify()},removeResizeHandlers(){this._resizeObject&&this._resizeObject.onload&&(!de&&this._resizeObject.contentDocument&&this._resizeObject.contentDocument.defaultView.removeEventListener("resize",this.compareAndNotify),this.$el.removeChild(this._resizeObject),this._resizeObject.onload=null,this._resizeObject=null)}}};const me=(0,fe.withScopeId)("data-v-b329ee4c");(0,fe.pushScopeId)("data-v-b329ee4c");const ge={class:"resize-observer",tabindex:"-1"};(0,fe.popScopeId)();const ve=me(((e,t,n,r,i,o)=>((0,fe.openBlock)(),(0,fe.createBlock)("div",ge))));pe.render=ve,pe.__scopeId="data-v-b329ee4c",pe.__file="src/components/ResizeObserver.vue";var ye=n(23678);n(99454);function be(e,t,n,r,i,o,a){try{var s=e[o](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,i)}function Te(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function a(e){be(o,r,i,a,s,"next",e)}function s(e){be(o,r,i,a,s,"throw",e)}a(void 0)}))}}function Se(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ee(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 we(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ee(Object(n),!0).forEach((function(t){Se(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ee(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function _e(e){return function(e){if(Array.isArray(e))return xe(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||Ae(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 Ae(e,t){if(e){if("string"==typeof e)return xe(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)?xe(e,t):void 0}}function xe(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 ke(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=Ae(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,a=!0,s=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}var Le={disabled:!1,offset:[0,5],container:"body",boundary:void 0,instantMove:!1,disposeTimeout:5e3,popperTriggers:[],strategy:"absolute",modifiers:[],popperOptions:{},themes:{tooltip:{placement:"top",triggers:["hover","focus","touch"],hideTriggers:function(e){return[].concat(_e(e),["click"])},delay:{show:200,hide:0},handleResize:!1,html:!1,loadingContent:"..."},dropdown:{placement:"bottom",triggers:["click"],delay:0,handleResize:!0,autoHide:!0},menu:{$extend:"dropdown",triggers:["hover","focus"],popperTriggers:["hover","focus"],delay:{show:0,hide:400}}}};function Pe(e,t){var n,r=Le.themes[e]||{};do{void 0===(n=r[t])?r.$extend?r=Le.themes[r.$extend]||{}:(r=null,n=Le[t]):r=null}while(r);return n}var Ce=!1;if("undefined"!=typeof window){Ce=!1;try{var Me=Object.defineProperty({},"passive",{get:function(){Ce=!0}});window.addEventListener("test",null,Me)}catch(e){}}var Re=!1;function Oe(e,t,n){var r=e.find((function(e){return e.name===t}));r||(r={name:t,options:{}},e.push(r)),Object.assign(r.options,n)}"undefined"!=typeof window&&"undefined"!=typeof navigator&&(Re=/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream);var Ie={hover:"mouseenter",focus:"focus",click:"click",touch:"touchstart"},De={hover:"mouseleave",focus:"blur",click:"click",touch:"touchend"};function Ne(e,t){var n=e.indexOf(t);-1!==n&&e.splice(n,1)}var Fe=[],Be=null,Ge=function(){};"undefined"!=typeof window&&(Ge=window.Element);var Ue=function(){return{name:"VPopper",props:{theme:{type:String,required:!0},targetNodes:{type:Function,required:!0},referenceNode:{type:Function,required:!0},popperNode:{type:Function,required:!0},arrowNode:{type:Function,default:null},shown:{type:Boolean,default:!1},showGroup:{type:String,default:null},ariaId:{default:null},disabled:{type:Boolean,default:function(e){return Pe(e.theme,"disabled")}},placement:{type:String,default:function(e){return Pe(e.theme,"placement")},validator:function(e){return p.includes(e)}},delay:{type:[String,Number,Object],default:function(e){return Pe(e.theme,"delay")}},offset:{type:[Array,Function],default:function(e){return Pe(e.theme,"offset")}},triggers:{type:Array,default:function(e){return Pe(e.theme,"triggers")}},showTriggers:{type:[Array,Function],default:function(e){return Pe(e.theme,"showTriggers")}},hideTriggers:{type:[Array,Function],default:function(e){return Pe(e.theme,"hideTriggers")}},popperTriggers:{type:Array,default:function(e){return Pe(e.theme,"popperTriggers")}},popperShowTriggers:{type:[Array,Function],default:function(e){return Pe(e.theme,"popperShowTriggers")}},popperHideTriggers:{type:[Array,Function],default:function(e){return Pe(e.theme,"popperHideTriggers")}},container:{type:[String,Object,Ge,Boolean],default:function(e){return Pe(e.theme,"container")}},boundary:{type:[String,Ge],default:function(e){return Pe(e.theme,"boundary")}},strategy:{type:String,validator:function(e){return["absolute","fixed"].includes(e)},default:function(e){return Pe(e.theme,"strategy")}},modifiers:{type:Array,default:function(e){return Pe(e.theme,"modifiers")}},popperOptions:{type:Object,default:function(e){return Pe(e.theme,"popperOptions")}},autoHide:{type:Boolean,default:function(e){return Pe(e.theme,"autoHide")}},handleResize:{type:Boolean,default:function(e){return Pe(e.theme,"handleResize")}},instantMove:{type:Boolean,default:function(e){return Pe(e.theme,"instantMove")}},eagerMount:{type:Boolean,default:function(e){return Pe(e.theme,"eagerMount")}}},emits:["show","hide","update:shown","apply-show","apply-hide","close-group","close-directive","auto-hide","resize","dispose"],data:function(){return{isShown:!1,isMounted:!1,skipTransition:!1,classes:{showFrom:!1,showTo:!1,hideFrom:!1,hideTo:!0}}},computed:{popperId:function(){return null!=this.ariaId?this.ariaId:this.randomId},shouldMountContent:function(){return this.eagerMount||this.isMounted},slotData:function(){return{popperId:this.popperId,isShown:this.isShown,shouldMountContent:this.shouldMountContent,skipTransition:this.skipTransition,autoHide:this.autoHide,hide:this.hide,handleResize:this.handleResize,onResize:this.onResize,classes:we({},this.classes)}}},watch:{shown:"$_autoShowHide",disabled:function(e){e?this.dispose():this.init()},container:function(){var e=this;return Te((function*(){e.isShown&&e.popperInstance&&(e.$_ensureContainer(),yield e.popperInstance.update())}))()},triggers:function(){this.$_removeEventListeners(),this.$_addEventListeners()},placement:"$_refreshPopperOptions",offset:"$_refreshPopperOptions",boundary:"$_refreshPopperOptions",strategy:"$_refreshPopperOptions",modifiers:"$_refreshPopperOptions",popperOptions:{handler:"$_refreshPopperOptions",deep:!0}},created:function(){this.randomId="popper_".concat([Math.random(),Date.now()].map((function(e){return e.toString(36).substr(2,10)})).join("_"))},mounted:function(){this.init()},activated:function(){this.$_autoShowHide()},deactivated:function(){this.hide()},beforeUnmount:function(){this.dispose()},methods:{show:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.event,r=t.skipDelay,i=void 0!==r&&r,o=t.force,a=void 0!==o&&o;!a&&this.disabled||(this.$_scheduleShow(n,i),this.$emit("show"),this.$_showFrameLocked=!0,requestAnimationFrame((function(){e.$_showFrameLocked=!1}))),this.$emit("update:shown",!0)},hide:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.event,n=e.skipDelay,r=void 0!==n&&n;this.$_scheduleHide(t,r),this.$emit("hide"),this.$emit("update:shown",!1)},init:function(){this.$_isDisposed=!1,this.isMounted=!1,this.$_events=[],this.$_preventShow=!1,this.$_targetNodes=this.targetNodes().filter((function(e){return e.nodeType===e.ELEMENT_NODE})),this.$_popperNode=this.popperNode(),this.$_swapTargetAttrs("title","data-original-title"),this.$_detachPopperNode(),this.triggers.length&&this.$_addEventListeners(),this.shown&&this.show()},dispose:function(){this.$_isDisposed=!0,this.$_removeEventListeners(),this.hide({skipDelay:!0}),this.popperInstance&&(this.popperInstance.destroy(),this.$_detachPopperNode()),this.isMounted=!1,this.popperInstance=null,this.isShown=!1,this.$_swapTargetAttrs("data-original-title","title"),this.$emit("dispose")},onResize:function(){var e=this;return Te((function*(){e.isShown&&e.popperInstance&&(yield e.popperInstance.update(),e.$emit("resize"))}))()},$_getPopperOptions:function(){var e,t=this,n=we(we({},this.popperOptions),{},{placement:this.placement,strategy:this.strategy,modifiers:this.modifiers,onFirstUpdate:(e=Te((function*(e){t.popperOptions.onFirstUpdate&&t.popperOptions.onFirstUpdate(e),yield t.$_applyShowEffect()})),function(t){return e.apply(this,arguments)})});return n.modifiers||(n.modifiers=[]),Oe(n.modifiers,"arrow",{element:this.arrowNode&&this.arrowNode()||"[data-popper-arrow]"}),this.offset&&Oe(n.modifiers,"offset",{offset:this.offset}),this.boundary&&Oe(n.modifiers,"preventOverflow",{boundary:this.boundary}),this.isShown||Oe(n.modifiers,"eventListeners",{enabled:!1}),n},$_refreshPopperOptions:function(){var e=this;return Te((function*(){e.popperInstance&&(yield e.popperInstance.setOptions(e.$_getPopperOptions()))}))()},$_scheduleShow:function(){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(this.$_hideInProgress=!1,clearTimeout(this.$_scheduleTimer),Be&&this.instantMove&&Be.instantMove)return Be.$_applyHide(!0),void this.$_applyShow(!0);e?this.$_applyShow():this.$_scheduleTimer=setTimeout(this.$_applyShow.bind(this),this.$_computeDelay("show"))},$_scheduleHide:function(){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.$_hideInProgress=!0,clearTimeout(this.$_scheduleTimer),this.isShown&&(Be=this),e?this.$_applyHide():this.$_scheduleTimer=setTimeout(this.$_applyHide.bind(this),this.$_computeDelay("hide"))},$_computeDelay:function(e){var t=this.delay;return parseInt(t&&t[e]||t||0)},$_applyShow:function(){var e=arguments,t=this;return Te((function*(){var n=e.length>0&&void 0!==e[0]&&e[0];clearTimeout(t.$_disposeTimer),clearTimeout(t.$_scheduleTimer),t.skipTransition=n,t.isShown||(t.isMounted||(t.$_ensureContainer(),t.isMounted=!0),t.popperInstance?(yield t.popperInstance.update(),yield t.$_refreshPopperOptions(),yield t.$_applyShowEffect()):t.popperInstance=ce(t.referenceNode(),t.$_popperNode,t.$_getPopperOptions()))}))()},$_applyShowEffect:function(){var e=this;return Te((function*(){if(!e.$_hideInProgress){e.isShown=!0,e.$_applyAttrsToTarget({"aria-describedby":e.popperId,"data-popper-shown":""});var t=e.showGroup;if(t)for(var n,r=0;r<Fe.length;r++)(n=Fe[r]).showGroup!==t&&(n.hide(),n.$emit("close-group"));Fe.push(e),e.$emit("apply-show"),e.$_popperNode.setAttribute("data-popper-placement",e.popperInstance.state.placement),e.classes.showFrom=!0,e.classes.showTo=!1,e.classes.hideFrom=!1,e.classes.hideTo=!1,yield Ve(),e.classes.showFrom=!1,e.classes.showTo=!0}}))()},$_applyHide:function(){var e=arguments,t=this;return Te((function*(){var n=e.length>0&&void 0!==e[0]&&e[0];if(clearTimeout(t.$_scheduleTimer),t.isShown){t.skipTransition=n,Ne(Fe,t),Be===t&&(Be=null),t.isShown=!1,t.popperInstance&&(yield t.$_refreshPopperOptions()),t.$_applyAttrsToTarget({"aria-describedby":void 0,"data-popper-shown":void 0}),clearTimeout(t.$_disposeTimer);var r=Pe(t.theme,"disposeTimeout");null!==r&&(t.$_disposeTimer=setTimeout((function(){t.$_popperNode&&(t.$_detachPopperNode(),t.isMounted=!1)}),r)),t.$emit("apply-hide"),t.classes.showFrom=!1,t.classes.showTo=!1,t.classes.hideFrom=!0,t.classes.hideTo=!1,yield Ve(),t.classes.hideFrom=!1,t.classes.hideTo=!0}}))()},$_autoShowHide:function(){this.shown?this.show():this.hide()},$_ensureContainer:function(){var e=this.container;if("string"==typeof e?e=window.document.querySelector(e):!1===e&&(e=this.$_targetNodes[0].parentNode),!e)throw new Error("No container for popover: "+this.container);e.appendChild(this.$_popperNode)},$_addEventListeners:function(){var e=this,t=function(t,n,r,i,o){var a=r;null!=i&&(a="function"==typeof i?i(a):i),a.forEach((function(r){var i=n[r];i&&(e.$_events.push({targetNodes:t,eventType:i,handler:o}),t.forEach((function(e){return e.addEventListener(i,o)})))}))},n=function(t){e.isShown&&!e.$_hideInProgress||(t.usedByTooltip=!0,!e.$_preventShow&&e.show({event:t}))};t(this.$_targetNodes,Ie,this.triggers,this.showTriggers,n),t([this.$_popperNode],Ie,this.popperTriggers,this.popperShowTriggers,n);var r=function(t){t.usedByTooltip||e.hide({event:t})};t(this.$_targetNodes,De,this.triggers,this.hideTriggers,r),t([this.$_popperNode],De,this.popperTriggers,this.popperHideTriggers,r)},$_removeEventListeners:function(){this.$_events.forEach((function(e){var t=e.targetNodes,n=e.eventType,r=e.handler;t.forEach((function(e){return e.removeEventListener(n,r)}))})),this.$_events=[]},$_handleGlobalClose:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.$_showFrameLocked||(this.hide({event:e}),e.closePopover?this.$emit("close-directive"):this.$emit("auto-hide"),n&&(this.$_preventShow=!0,setTimeout((function(){t.$_preventShow=!1}),300)))},$_detachPopperNode:function(){this.$_popperNode.parentNode&&this.$_popperNode.parentNode.removeChild(this.$_popperNode)},$_swapTargetAttrs:function(e,t){var n,r=ke(this.$_targetNodes);try{for(r.s();!(n=r.n()).done;){var i=n.value,o=i.getAttribute(e);o&&(i.removeAttribute(e),i.setAttribute(t,o))}}catch(e){r.e(e)}finally{r.f()}},$_applyAttrsToTarget:function(e){var t,n=ke(this.$_targetNodes);try{for(n.s();!(t=n.n()).done;){var r=t.value;for(var i in e){var o=e[i];null==o?r.removeAttribute(i):r.setAttribute(i,o)}}}catch(e){n.e(e)}finally{n.f()}}},render:function(){return this.$slots.default(this.slotData)}}};function He(e){for(var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=function(n){var r=Fe[n],i=r.popperNode().contains(e.target);requestAnimationFrame((function(){(e.closeAllPopover||e.closePopover&&i||r.autoHide&&!i)&&r.$_handleGlobalClose(e,t)}))},r=0;r<Fe.length;r++)n(r)}function Ve(){return new Promise((function(e){return requestAnimationFrame(e)}))}"undefined"!=typeof document&&"undefined"!=typeof window&&(Re?document.addEventListener("touchend",(function(e){He(e,!0)}),!Ce||{passive:!0,capture:!0}):window.addEventListener("click",(function(e){He(e)}),!0));var je={computed:{themeClass:function(){return function(e){var t=[e],n=Le.themes[e]||{};do{n.$extend&&!n.$resetCss?(t.push(n.$extend),n=Le.themes[n.$extend]||{}):n=null}while(n);return t.map((function(e){return"v-popper--theme-".concat(e)}))}(this.theme)}}},We={name:"VPopperContent",components:{ResizeObserver:pe},mixins:[je],props:{popperId:String,theme:String,shown:Boolean,mounted:Boolean,skipTransition:Boolean,autoHide:Boolean,handleResize:Boolean,classes:Object},emits:["hide","resize"]},$e={class:"v-popper__wrapper"},Ke={ref:"inner",class:"v-popper__inner"},Ze={ref:"arrow",class:"v-popper__arrow-container"},Xe=(0,fe.createVNode)("div",{class:"v-popper__arrow"},null,-1);We.render=function(e,t,n,r,i,o){var a=(0,fe.resolveComponent)("ResizeObserver");return(0,fe.openBlock)(),(0,fe.createBlock)("div",{id:n.popperId,ref:"popover",class:["v-popper__popper",[e.themeClass,{"v-popper__popper--shown":n.shown,"v-popper__popper--hidden":!n.shown,"v-popper__popper--show-from":n.classes.showFrom,"v-popper__popper--show-to":n.classes.showTo,"v-popper__popper--hide-from":n.classes.hideFrom,"v-popper__popper--hide-to":n.classes.hideTo,"v-popper__popper--skip-transition":n.skipTransition}]],"aria-hidden":n.shown?"false":"true",tabindex:n.autoHide?0:void 0,onKeyup:t[2]||(t[2]=(0,ye.withKeys)((function(t){return n.autoHide&&e.$emit("hide")}),["esc"]))},[(0,fe.createVNode)("div",$e,[(0,fe.createVNode)("div",Ke,[n.mounted?((0,fe.openBlock)(),(0,fe.createBlock)(fe.Fragment,{key:0},[(0,fe.createVNode)("div",null,[(0,fe.renderSlot)(e.$slots,"default")]),n.handleResize?((0,fe.openBlock)(),(0,fe.createBlock)(a,{key:0,onNotify:t[1]||(t[1]=function(t){return e.$emit("resize",t)})})):(0,fe.createCommentVNode)("v-if",!0)],64)):(0,fe.createCommentVNode)("v-if",!0)],512),(0,fe.createVNode)("div",Ze,[Xe],512)])],42,["id","aria-hidden","tabindex"])},We.__file="src/components/PopperContent.vue";var ze={name:"VPopperWrapper",components:{Popper:Ue(),PopperContent:We},mixins:[{methods:{show:function(){var e;return(e=this.$refs.popper).show.apply(e,arguments)},hide:function(){var e;return(e=this.$refs.popper).hide.apply(e,arguments)},dispose:function(){var e;return(e=this.$refs.popper).dispose.apply(e,arguments)},onResize:function(){var e;return(e=this.$refs.popper).onResize.apply(e,arguments)}}},je],inheritAttrs:!1,props:{theme:{type:String,default:null}},computed:{finalTheme:function(){var e;return null!==(e=this.theme)&&void 0!==e?e:this.$options.vPopperTheme}},methods:{getTargetNodes:function(){var e=_e(this.$refs.reference.children);return e.slice(0,e.length-1).filter(Boolean)}},render:function(e,t,n,r,i,o){var a=(0,fe.resolveComponent)("PopperContent"),s=(0,fe.resolveComponent)("Popper");return(0,fe.openBlock)(),(0,fe.createBlock)(s,(0,fe.mergeProps)({ref:"popper"},e.$attrs,{theme:o.finalTheme,"target-nodes":o.getTargetNodes,"reference-node":function(){return e.$refs.reference},"popper-node":function(){return e.$refs.popperContent.$el},"arrow-node":function(){return e.$refs.popperContent.$refs.arrow}}),{default:(0,fe.withCtx)((function(t){var n=t.popperId,r=t.isShown,i=t.shouldMountContent,s=t.skipTransition,l=t.autoHide,u=t.hide,c=t.handleResize,f=t.onResize,d=t.classes;return[(0,fe.createVNode)("div",{ref:"reference",class:["v-popper",[e.themeClass,{"v-popper--shown":r}]]},[(0,fe.renderSlot)(e.$slots,"default"),(0,fe.createVNode)(a,{ref:"popperContent","popper-id":n,theme:o.finalTheme,shown:r,mounted:i,"skip-transition":s,"auto-hide":l,"handle-resize":c,classes:d,onHide:u,onResize:f},{default:(0,fe.withCtx)((function(){return[(0,fe.renderSlot)(e.$slots,"popper",{shown:r})]})),_:2},1032,["popper-id","theme","shown","mounted","skip-transition","auto-hide","handle-resize","classes","onHide","onResize"])],2)]})),_:3},16,["theme","target-nodes","reference-node","popper-node","arrow-node"])},__file:"src/components/PopperWrapper.vue"},qe=we(we({},ze),{},{name:"VDropdown",vPopperTheme:"dropdown"});qe.__file="src/components/Dropdown.vue",we(we({},ze),{},{name:"VMenu",vPopperTheme:"menu"}).__file="src/components/Menu.vue",we(we({},ze),{},{name:"VTooltip",vPopperTheme:"tooltip"}).__file="src/components/Tooltip.vue",Ue(),Boolean;var Ye=qe},35604:(e,t,n)=>{"use strict";n.d(t,{o:()=>mt});const r="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag,i=e=>r?Symbol(e):e,o=e=>"number"==typeof e&&isFinite(e),a=e=>"[object RegExp]"===S(e),s=e=>E(e)&&0===Object.keys(e).length;function l(e,t){"undefined"!=typeof console&&(console.warn("[intlify] "+e),t&&console.warn(t.stack))}const u=Object.assign;let c;const f=()=>c||(c="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==n.g?n.g:{});function d(e){return e.replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}const h=Object.prototype.hasOwnProperty;function p(e,t){return h.call(e,t)}const m=Array.isArray,g=e=>"function"==typeof e,v=e=>"string"==typeof e,y=e=>"boolean"==typeof e,b=e=>null!==e&&"object"==typeof e,T=Object.prototype.toString,S=e=>T.call(e),E=e=>"[object Object]"===S(e);function w(){const e=new Map;return{events:e,on(t,n){const r=e.get(t);r&&r.push(n)||e.set(t,[n])},off(t,n){const r=e.get(t);r&&r.splice(r.indexOf(n)>>>0,1)},emit(t,n){(e.get(t)||[]).slice().map((e=>e(n))),(e.get("*")||[]).slice().map((e=>e(t,n)))}}}const _=Object.prototype.hasOwnProperty;function A(e,t){return _.call(e,t)}const x=e=>null!==e&&"object"==typeof e,k=[];k[0]={w:[0],i:[3,0],"[":[4],o:[7]},k[1]={w:[1],".":[2],"[":[4],o:[7]},k[2]={w:[2],i:[3,0],0:[3,0]},k[3]={i:[3,0],0:[3,0],w:[1,1],".":[2,1],"[":[4,1],o:[7,1]},k[4]={"'":[5,0],'"':[6,0],"[":[4,2],"]":[1,3],o:8,l:[4,0]},k[5]={"'":[4,0],o:8,l:[5,0]},k[6]={'"':[4,0],o:8,l:[6,0]};const L=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function P(e){if(null==e)return"o";switch(e.charCodeAt(0)){case 91:case 93:case 46:case 34:case 39:return e;case 95:case 36:case 45:return"i";case 9:case 10:case 13:case 160:case 65279:case 8232:case 8233:return"w"}return"i"}const C=new Map;function M(e,t){if(!x(e))return null;let n=C.get(t);if(n||(n=function(e){const t=[];let n,r,i,o,a,s,l,u=-1,c=0,f=0;const d=[];function h(){const t=e[u+1];if(5===c&&"'"===t||6===c&&'"'===t)return u++,i="\\"+t,d[0](),!0}for(d[0]=()=>{void 0===r?r=i:r+=i},d[1]=()=>{void 0!==r&&(t.push(r),r=void 0)},d[2]=()=>{d[0](),f++},d[3]=()=>{if(f>0)f--,c=4,d[0]();else{if(f=0,void 0===r)return!1;if(r=function(e){const t=e.trim();return("0"!==e.charAt(0)||!isNaN(parseInt(e)))&&(n=t,L.test(n)?function(e){const t=e.charCodeAt(0);return t!==e.charCodeAt(e.length-1)||34!==t&&39!==t?e:e.slice(1,-1)}(t):"*"+t);var n}(r),!1===r)return!1;d[1]()}};null!==c;)if(u++,n=e[u],"\\"!==n||!h()){if(o=P(n),l=k[c],a=l[o]||l.l||8,8===a)return;if(c=a[0],void 0!==a[1]&&(s=d[a[1]],s&&(i=n,!1===s())))return;if(7===c)return t}}(t),n&&C.set(t,n)),!n)return null;const r=n.length;let i=e,o=0;for(;o<r;){const e=i[n[o]];if(void 0===e)return null;i=e,o++}return i}function R(e){if(!x(e))return e;for(const t in e)if(A(e,t))if(t.includes(".")){const n=t.split("."),r=n.length-1;let i=e;for(let e=0;e<r;e++)n[e]in i||(i[n[e]]={}),i=i[n[e]];i[n[r]]=e[t],delete e[t],x(i[n[r]])&&R(i[n[r]])}else x(e[t])&&R(e[t]);return e}const O=e=>e,I=e=>"",D=e=>0===e.length?"":e.join(""),N=e=>null==e?"":m(e)||E(e)&&e.toString===T?JSON.stringify(e,null,2):String(e);function F(e,t){return e=Math.abs(e),2===t?e?e>1?1:0:1:e?Math.min(e,2):0}function B(e={}){const t=e.locale,n=function(e){const t=o(e.pluralIndex)?e.pluralIndex:-1;return e.named&&(o(e.named.count)||o(e.named.n))?o(e.named.count)?e.named.count:o(e.named.n)?e.named.n:t:t}(e),r=b(e.pluralRules)&&v(t)&&g(e.pluralRules[t])?e.pluralRules[t]:F,i=b(e.pluralRules)&&v(t)&&g(e.pluralRules[t])?F:void 0,a=e.list||[],s=e.named||{};function l(t){return(g(e.messages)?e.messages(t):!!b(e.messages)&&e.messages[t])||(e.parent?e.parent.message(t):I)}o(e.pluralIndex)&&function(e,t){t.count||(t.count=e),t.n||(t.n=e)}(n,s);const u=E(e.processor)&&g(e.processor.normalize)?e.processor.normalize:D,c=E(e.processor)&&g(e.processor.interpolate)?e.processor.interpolate:N,f={list:e=>a[e],named:e=>s[e],plural:e=>e[r(n,e.length,i)],linked:(t,n)=>{const r=l(t)(f);return v(n)?(i=n,e.modifiers?e.modifiers[i]:O)(r):r;var i},message:l,type:E(e.processor)&&v(e.processor.type)?e.processor.type:"text",interpolate:c,normalize:u};return f}function G(e,t,n={}){const{domain:r,messages:i,args:o}=n,a=new SyntaxError(String(e));return a.code=e,t&&(a.location=t),a.domain=r,a}function U(e){throw e}function H(e,t,n){const r={start:e,end:t};return null!=n&&(r.source=n),r}const V=" ",j="\n",W=String.fromCharCode(8232),$=String.fromCharCode(8233);const K=void 0;function Z(e,t={}){const n=!1!==t.location,r=function(e){const t=e;let n=0,r=1,i=1,o=0;const a=e=>"\r"===t[e]&&t[e+1]===j,s=e=>t[e]===$,l=e=>t[e]===W,u=e=>a(e)||s(e)||l(e)?j:t[e];function c(){return o=0,(e=>a(e)||(e=>t[e]===j)(e)||s(e)||l(e))(n)&&(r++,i=0),a(n)&&n++,n++,i++,t[n]}return{index:()=>n,line:()=>r,column:()=>i,peekOffset:()=>o,charAt:u,currentChar:()=>u(n),currentPeek:()=>u(n+o),next:c,peek:function(){return a(n+o)&&o++,o++,t[n+o]},reset:function(){n=0,r=1,i=1,o=0},resetPeek:function(e=0){o=e},skipToPeek:function(){const e=n+o;for(;e!==n;)c();o=0}}}(e),i=()=>r.index(),o=()=>({line:r.line(),column:r.column(),offset:r.index()}),a=o(),s=i(),l={currentType:14,offset:s,startLoc:a,endLoc:a,lastType:14,lastOffset:s,lastStartLoc:a,lastEndLoc:a,braceNest:0,inLinked:!1,text:""},u=()=>l,{onError:c}=t;function f(e,t,n,...r){const i=u();if(t.column+=n,t.offset+=n,c){const n=G(e,H(i.startLoc,t),{domain:"tokenizer",args:r});c(n)}}function d(e,t,r){e.endLoc=o(),e.currentType=t;const i={type:t};return n&&(i.loc=H(e.startLoc,e.endLoc)),null!=r&&(i.value=r),i}const h=e=>d(e,14);function p(e,t){return e.currentChar()===t?(e.next(),t):(f(0,o(),0,t),"")}function m(e){let t="";for(;e.currentPeek()===V||e.currentPeek()===j;)t+=e.currentPeek(),e.peek();return t}function g(e){const t=m(e);return e.skipToPeek(),t}function v(e){if(e===K)return!1;const t=e.charCodeAt(0);return t>=97&&t<=122||t>=65&&t<=90||95===t}function y(e){m(e);const t="|"===e.currentPeek();return e.resetPeek(),t}function b(e,t=!0){const n=(t=!1,r="",i=!1)=>{const o=e.currentPeek();return"{"===o?"%"!==r&&t:"@"!==o&&o?"%"===o?(e.peek(),n(t,"%",!0)):"|"===o?!("%"!==r&&!i&&(r===V||r===j)):o===V?(e.peek(),n(!0,V,i)):o!==j||(e.peek(),n(!0,j,i)):"%"===r||t},r=n();return t&&e.resetPeek(),r}function T(e,t){const n=e.currentChar();return n===K?K:t(n)?(e.next(),n):null}function S(e){return T(e,(e=>{const t=e.charCodeAt(0);return t>=97&&t<=122||t>=65&&t<=90||t>=48&&t<=57||95===t||36===t}))}function E(e){return T(e,(e=>{const t=e.charCodeAt(0);return t>=48&&t<=57}))}function w(e){return T(e,(e=>{const t=e.charCodeAt(0);return t>=48&&t<=57||t>=65&&t<=70||t>=97&&t<=102}))}function _(e){let t="",n="";for(;t=E(e);)n+=t;return n}function A(e){const t=e.currentChar();switch(t){case"\\":case"'":return e.next(),`\\${t}`;case"u":return x(e,t,4);case"U":return x(e,t,6);default:return f(3,o(),0,t),""}}function x(e,t,n){p(e,t);let r="";for(let i=0;i<n;i++){const n=w(e);if(!n){f(4,o(),0,`\\${t}${r}${e.currentChar()}`);break}r+=n}return`\\${t}${r}`}function k(e){g(e);const t=p(e,"|");return g(e),t}function L(e,t){let n=null;switch(e.currentChar()){case"{":return t.braceNest>=1&&f(8,o(),0),e.next(),n=d(t,2,"{"),g(e),t.braceNest++,n;case"}":return t.braceNest>0&&2===t.currentType&&f(7,o(),0),e.next(),n=d(t,3,"}"),t.braceNest--,t.braceNest>0&&g(e),t.inLinked&&0===t.braceNest&&(t.inLinked=!1),n;case"@":return t.braceNest>0&&f(6,o(),0),n=P(e,t)||h(t),t.braceNest=0,n;default:let r=!0,i=!0,a=!0;if(y(e))return t.braceNest>0&&f(6,o(),0),n=d(t,1,k(e)),t.braceNest=0,t.inLinked=!1,n;if(t.braceNest>0&&(5===t.currentType||6===t.currentType||7===t.currentType))return f(6,o(),0),t.braceNest=0,C(e,t);if(r=function(e,t){const{currentType:n}=t;if(2!==n)return!1;m(e);const r=v(e.currentPeek());return e.resetPeek(),r}(e,t))return n=d(t,5,function(e){g(e);let t="",n="";for(;t=S(e);)n+=t;return e.currentChar()===K&&f(6,o(),0),n}(e)),g(e),n;if(i=function(e,t){const{currentType:n}=t;if(2!==n)return!1;m(e);const r=function(e){if(e===K)return!1;const t=e.charCodeAt(0);return t>=48&&t<=57}("-"===e.currentPeek()?e.peek():e.currentPeek());return e.resetPeek(),r}(e,t))return n=d(t,6,function(e){g(e);let t="";return"-"===e.currentChar()?(e.next(),t+=`-${_(e)}`):t+=_(e),e.currentChar()===K&&f(6,o(),0),t}(e)),g(e),n;if(a=function(e,t){const{currentType:n}=t;if(2!==n)return!1;m(e);const r="'"===e.currentPeek();return e.resetPeek(),r}(e,t))return n=d(t,7,function(e){g(e),p(e,"'");let t="",n="";const r=e=>"'"!==e&&e!==j;for(;t=T(e,r);)n+="\\"===t?A(e):t;const i=e.currentChar();return i===j||i===K?(f(2,o(),0),i===j&&(e.next(),p(e,"'")),n):(p(e,"'"),n)}(e)),g(e),n;if(!r&&!i&&!a)return n=d(t,13,function(e){g(e);let t="",n="";const r=e=>"{"!==e&&"}"!==e&&e!==V&&e!==j;for(;t=T(e,r);)n+=t;return n}(e)),f(1,o(),0,n.value),g(e),n}return n}function P(e,t){const{currentType:n}=t;let r=null;const i=e.currentChar();switch(8!==n&&9!==n&&12!==n&&10!==n||i!==j&&i!==V||f(9,o(),0),i){case"@":return e.next(),r=d(t,8,"@"),t.inLinked=!0,r;case".":return g(e),e.next(),d(t,9,".");case":":return g(e),e.next(),d(t,10,":");default:return y(e)?(r=d(t,1,k(e)),t.braceNest=0,t.inLinked=!1,r):function(e,t){const{currentType:n}=t;if(8!==n)return!1;m(e);const r="."===e.currentPeek();return e.resetPeek(),r}(e,t)||function(e,t){const{currentType:n}=t;if(8!==n&&12!==n)return!1;m(e);const r=":"===e.currentPeek();return e.resetPeek(),r}(e,t)?(g(e),P(e,t)):function(e,t){const{currentType:n}=t;if(9!==n)return!1;m(e);const r=v(e.currentPeek());return e.resetPeek(),r}(e,t)?(g(e),d(t,12,function(e){let t="",n="";for(;t=S(e);)n+=t;return n}(e))):function(e,t){const{currentType:n}=t;if(10!==n)return!1;const r=()=>{const t=e.currentPeek();return"{"===t?v(e.peek()):!("@"===t||"%"===t||"|"===t||":"===t||"."===t||t===V||!t)&&(t===j?(e.peek(),r()):v(t))},i=r();return e.resetPeek(),i}(e,t)?(g(e),"{"===i?L(e,t)||r:d(t,11,function(e){const t=(n=!1,r)=>{const i=e.currentChar();return"{"!==i&&"%"!==i&&"@"!==i&&"|"!==i&&i?i===V?r:i===j?(r+=i,e.next(),t(n,r)):(r+=i,e.next(),t(!0,r)):r};return t(!1,"")}(e))):(8===n&&f(9,o(),0),t.braceNest=0,t.inLinked=!1,C(e,t))}}function C(e,t){let n={type:14};if(t.braceNest>0)return L(e,t)||h(t);if(t.inLinked)return P(e,t)||h(t);const r=e.currentChar();switch(r){case"{":return L(e,t)||h(t);case"}":return f(5,o(),0),e.next(),d(t,3,"}");case"@":return P(e,t)||h(t);default:if(y(e))return n=d(t,1,k(e)),t.braceNest=0,t.inLinked=!1,n;if(b(e))return d(t,0,function(e){const t=n=>{const r=e.currentChar();return"{"!==r&&"}"!==r&&"@"!==r&&r?"%"===r?b(e)?(n+=r,e.next(),t(n)):n:"|"===r?n:r===V||r===j?b(e)?(n+=r,e.next(),t(n)):y(e)?n:(n+=r,e.next(),t(n)):(n+=r,e.next(),t(n)):n};return t("")}(e));if("%"===r)return e.next(),d(t,4,"%")}return n}return{nextToken:function(){const{currentType:e,offset:t,startLoc:n,endLoc:a}=l;return l.lastType=e,l.lastOffset=t,l.lastStartLoc=n,l.lastEndLoc=a,l.offset=i(),l.startLoc=o(),r.currentChar()===K?d(l,14):C(r,l)},currentOffset:i,currentPosition:o,context:u}}const X=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;function z(e,t,n){switch(e){case"\\\\":return"\\";case"\\'":return"'";default:{const e=parseInt(t||n,16);return e<=55295||e>=57344?String.fromCodePoint(e):"�"}}}function q(e){if(14===e.type)return"EOF";const t=(e.value||"").replace(/\r?\n/gu,"\\n");return t.length>10?t.slice(0,9)+"…":t}function Y(e,t){for(let n=0;n<e.length;n++)Q(e[n],t)}function Q(e,t){switch(e.type){case 1:Y(e.cases,t),t.helper("plural");break;case 2:Y(e.items,t);break;case 6:Q(e.key,t),t.helper("linked");break;case 5:t.helper("interpolate"),t.helper("list");break;case 4:t.helper("interpolate"),t.helper("named")}}function J(e,t){const{helper:n}=e;switch(t.type){case 0:!function(e,t){t.body?J(e,t.body):e.push("null")}(e,t);break;case 1:!function(e,t){const{helper:n,needIndent:r}=e;if(t.cases.length>1){e.push(`${n("plural")}([`),e.indent(r());const i=t.cases.length;for(let n=0;n<i&&(J(e,t.cases[n]),n!==i-1);n++)e.push(", ");e.deindent(r()),e.push("])")}}(e,t);break;case 2:!function(e,t){const{helper:n,needIndent:r}=e;e.push(`${n("normalize")}([`),e.indent(r());const i=t.items.length;for(let n=0;n<i&&(J(e,t.items[n]),n!==i-1);n++)e.push(", ");e.deindent(r()),e.push("])")}(e,t);break;case 6:!function(e,t){const{helper:n}=e;e.push(`${n("linked")}(`),J(e,t.key),t.modifier&&(e.push(", "),J(e,t.modifier)),e.push(")")}(e,t);break;case 8:case 7:e.push(JSON.stringify(t.value),t);break;case 5:e.push(`${n("interpolate")}(${n("list")}(${t.index}))`,t);break;case 4:e.push(`${n("interpolate")}(${n("named")}(${JSON.stringify(t.key)}))`,t);break;case 9:case 3:e.push(JSON.stringify(t.value),t)}}function ee(e,t={}){const n=u({},t),r=function(e={}){const t=!1!==e.location,{onError:n}=e;function r(e,t,r,i,...o){const a=e.currentPosition();if(a.offset+=i,a.column+=i,n){const e=G(t,H(r,a),{domain:"parser",args:o});n(e)}}function i(e,n,r){const i={type:e,start:n,end:n};return t&&(i.loc={start:r,end:r}),i}function o(e,n,r,i){e.end=n,i&&(e.type=i),t&&e.loc&&(e.loc.end=r)}function a(e,t){const n=e.context(),r=i(3,n.offset,n.startLoc);return r.value=t,o(r,e.currentOffset(),e.currentPosition()),r}function s(e,t){const n=e.context(),{lastOffset:r,lastStartLoc:a}=n,s=i(5,r,a);return s.index=parseInt(t,10),e.nextToken(),o(s,e.currentOffset(),e.currentPosition()),s}function l(e,t){const n=e.context(),{lastOffset:r,lastStartLoc:a}=n,s=i(4,r,a);return s.key=t,e.nextToken(),o(s,e.currentOffset(),e.currentPosition()),s}function c(e,t){const n=e.context(),{lastOffset:r,lastStartLoc:a}=n,s=i(9,r,a);return s.value=t.replace(X,z),e.nextToken(),o(s,e.currentOffset(),e.currentPosition()),s}function f(e){const t=e.context(),n=i(6,t.offset,t.startLoc);let a=e.nextToken();if(9===a.type){const t=function(e){const t=e.nextToken(),n=e.context(),{lastOffset:a,lastStartLoc:s}=n,l=i(8,a,s);return 12!==t.type?(r(e,11,n.lastStartLoc,0),l.value="",o(l,a,s),{nextConsumeToken:t,node:l}):(null==t.value&&r(e,13,n.lastStartLoc,0,q(t)),l.value=t.value||"",o(l,e.currentOffset(),e.currentPosition()),{node:l})}(e);n.modifier=t.node,a=t.nextConsumeToken||e.nextToken()}switch(10!==a.type&&r(e,13,t.lastStartLoc,0,q(a)),a=e.nextToken(),2===a.type&&(a=e.nextToken()),a.type){case 11:null==a.value&&r(e,13,t.lastStartLoc,0,q(a)),n.key=function(e,t){const n=e.context(),r=i(7,n.offset,n.startLoc);return r.value=t,o(r,e.currentOffset(),e.currentPosition()),r}(e,a.value||"");break;case 5:null==a.value&&r(e,13,t.lastStartLoc,0,q(a)),n.key=l(e,a.value||"");break;case 6:null==a.value&&r(e,13,t.lastStartLoc,0,q(a)),n.key=s(e,a.value||"");break;case 7:null==a.value&&r(e,13,t.lastStartLoc,0,q(a)),n.key=c(e,a.value||"");break;default:r(e,12,t.lastStartLoc,0);const u=e.context(),f=i(7,u.offset,u.startLoc);return f.value="",o(f,u.offset,u.startLoc),n.key=f,o(n,u.offset,u.startLoc),{nextConsumeToken:a,node:n}}return o(n,e.currentOffset(),e.currentPosition()),{node:n}}function d(e){const t=e.context(),n=i(2,1===t.currentType?e.currentOffset():t.offset,1===t.currentType?t.endLoc:t.startLoc);n.items=[];let u=null;do{const i=u||e.nextToken();switch(u=null,i.type){case 0:null==i.value&&r(e,13,t.lastStartLoc,0,q(i)),n.items.push(a(e,i.value||""));break;case 6:null==i.value&&r(e,13,t.lastStartLoc,0,q(i)),n.items.push(s(e,i.value||""));break;case 5:null==i.value&&r(e,13,t.lastStartLoc,0,q(i)),n.items.push(l(e,i.value||""));break;case 7:null==i.value&&r(e,13,t.lastStartLoc,0,q(i)),n.items.push(c(e,i.value||""));break;case 8:const o=f(e);n.items.push(o.node),u=o.nextConsumeToken||null}}while(14!==t.currentType&&1!==t.currentType);return o(n,1===t.currentType?t.lastOffset:e.currentOffset(),1===t.currentType?t.lastEndLoc:e.currentPosition()),n}return{parse:function(n){const a=Z(n,u({},e)),s=a.context(),l=i(0,s.offset,s.startLoc);return t&&l.loc&&(l.loc.source=n),l.body=function(e){const t=e.context(),{offset:n,startLoc:a}=t,s=d(e);return 14===t.currentType?s:function(e,t,n,a){const s=e.context();let l=0===a.items.length;const u=i(1,t,n);u.cases=[],u.cases.push(a);do{const t=d(e);l||(l=0===t.items.length),u.cases.push(t)}while(14!==s.currentType);return l&&r(e,10,n,0),o(u,e.currentOffset(),e.currentPosition()),u}(e,n,a,s)}(a),14!==s.currentType&&r(a,13,s.lastStartLoc,0,n[s.offset]||""),o(l,a.currentOffset(),a.currentPosition()),l}}}(n).parse(e);return function(e,t={}){const n=function(e,t={}){const n={ast:e,helpers:new Set};return{context:()=>n,helper:e=>(n.helpers.add(e),e)}}(e);n.helper("normalize"),e.body&&Q(e.body,n);const r=n.context();e.helpers=Array.from(r.helpers)}(r,n),((e,t={})=>{const n=v(t.mode)?t.mode:"normal",r=v(t.filename)?t.filename:"message.intl",i=!!t.sourceMap,o=null!=t.breakLineCode?t.breakLineCode:"arrow"===n?";":"\n",a=t.needIndent?t.needIndent:"arrow"!==n,s=e.helpers||[],l=function(e,t){const{sourceMap:n,filename:r,breakLineCode:i,needIndent:o}=t,a={source:e.loc.source,filename:r,code:"",column:1,line:1,offset:0,map:void 0,breakLineCode:i,needIndent:o,indentLevel:0};function s(e,t){a.code+=e}function l(e,t=!0){const n=t?i:"";s(o?n+" ".repeat(e):n)}return{context:()=>a,push:s,indent:function(e=!0){const t=++a.indentLevel;e&&l(t)},deindent:function(e=!0){const t=--a.indentLevel;e&&l(t)},newline:function(){l(a.indentLevel)},helper:e=>`_${e}`,needIndent:()=>a.needIndent}}(e,{mode:n,filename:r,sourceMap:i,breakLineCode:o,needIndent:a});l.push("normal"===n?"function __msg__ (ctx) {":"(ctx) => {"),l.indent(a),s.length>0&&(l.push(`const { ${s.map((e=>`${e}: _${e}`)).join(", ")} } = ctx`),l.newline()),l.push("return "),J(l,e),l.deindent(a),l.push("}");const{code:u,map:c}=l.context();return{ast:e,code:u,map:c?c.toJSON():void 0}})(r,n)}let te=null;const ne=e=>te&&te.emit("function:translate",e);let re,ie=null;const oe=e=>{ie=e};let ae=0;function se(e={}){const t=v(e.version)?e.version:"9.1.7",n=v(e.locale)?e.locale:"en-US",r=m(e.fallbackLocale)||E(e.fallbackLocale)||v(e.fallbackLocale)||!1===e.fallbackLocale?e.fallbackLocale:n,i=E(e.messages)?e.messages:{[n]:{}},o=E(e.datetimeFormats)?e.datetimeFormats:{[n]:{}},s=E(e.numberFormats)?e.numberFormats:{[n]:{}},c=u({},e.modifiers||{},{upper:e=>v(e)?e.toUpperCase():e,lower:e=>v(e)?e.toLowerCase():e,capitalize:e=>v(e)?`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`:e}),f=e.pluralRules||{},d=g(e.missing)?e.missing:null,h=!y(e.missingWarn)&&!a(e.missingWarn)||e.missingWarn,p=!y(e.fallbackWarn)&&!a(e.fallbackWarn)||e.fallbackWarn,T=!!e.fallbackFormat,S=!!e.unresolving,w=g(e.postTranslation)?e.postTranslation:null,_=E(e.processor)?e.processor:null,A=!y(e.warnHtmlMessage)||e.warnHtmlMessage,x=!!e.escapeParameter,k=g(e.messageCompiler)?e.messageCompiler:re,L=g(e.onWarn)?e.onWarn:l,P=e,C=b(P.__datetimeFormatters)?P.__datetimeFormatters:new Map,M=b(P.__numberFormatters)?P.__numberFormatters:new Map,R=b(P.__meta)?P.__meta:{};ae++;const O={version:t,cid:ae,locale:n,fallbackLocale:r,messages:i,datetimeFormats:o,numberFormats:s,modifiers:c,pluralRules:f,missing:d,missingWarn:h,fallbackWarn:p,fallbackFormat:T,unresolving:S,postTranslation:w,processor:_,warnHtmlMessage:A,escapeParameter:x,messageCompiler:k,onWarn:L,__datetimeFormatters:C,__numberFormatters:M,__meta:R};return __INTLIFY_PROD_DEVTOOLS__&&function(e,t,n){te&&te.emit("i18n:init",{timestamp:Date.now(),i18n:e,version:t,meta:n})}(O,t,R),O}function le(e,t,n,r,i){const{missing:o,onWarn:a}=e;if(null!==o){const r=o(e,n,t,i);return v(r)?r:t}return t}function ue(e,t,n){const r=e;r.__localeChainCache||(r.__localeChainCache=new Map);let i=r.__localeChainCache.get(n);if(!i){i=[];let e=[n];for(;m(e);)e=ce(i,e,t);const o=m(t)?t:E(t)?t.default?t.default:null:t;e=v(o)?[o]:o,m(e)&&ce(i,e,!1),r.__localeChainCache.set(n,i)}return i}function ce(e,t,n){let r=!0;for(let i=0;i<t.length&&y(r);i++){const o=t[i];v(o)&&(r=fe(e,t[i],n))}return r}function fe(e,t,n){let r;const i=t.split("-");do{r=de(e,i.join("-"),n),i.splice(-1,1)}while(i.length&&!0===r);return r}function de(e,t,n){let r=!1;if(!e.includes(t)&&(r=!0,t)){r="!"!==t[t.length-1];const i=t.replace(/!/g,"");e.push(i),(m(n)||E(n))&&n[i]&&(r=n[i])}return r}function he(e,t,n){e.__localeChainCache=new Map,ue(e,n,t)}const pe=e=>e;let me=Object.create(null);function ge(e){return G(e,null,void 0)}const ve=()=>"",ye=e=>g(e);function be(e,...t){const{fallbackFormat:n,postTranslation:r,unresolving:i,fallbackLocale:a,messages:s}=e,[l,c]=Se(...t),f=(y(c.missingWarn)?c.missingWarn:e.missingWarn,y(c.fallbackWarn)?c.fallbackWarn:e.fallbackWarn,y(c.escapeParameter)?c.escapeParameter:e.escapeParameter),h=!!c.resolvedMessage,p=v(c.default)||y(c.default)?y(c.default)?l:c.default:n?l:"",T=n||""!==p,S=v(c.locale)?c.locale:e.locale;f&&function(e){m(e.list)?e.list=e.list.map((e=>v(e)?d(e):e)):b(e.named)&&Object.keys(e.named).forEach((t=>{v(e.named[t])&&(e.named[t]=d(e.named[t]))}))}(c);let[E,w,_]=h?[l,S,s[S]||{}]:function(e,t,n,r,i,o){const{messages:a,onWarn:s}=e,l=ue(e,r,n);let u,c={},f=null,d=n,h=null;for(let n=0;n<l.length&&(u=h=l[n],c=a[u]||{},null===(f=M(c,t))&&(f=c[t]),!v(f)&&!g(f));n++){const n=le(e,t,u,0,"translate");n!==t&&(f=n),d=h}return[f,u,c]}(e,l,S,a),A=l;if(h||v(E)||ye(E)||T&&(E=p,A=E),!(h||(v(E)||ye(E))&&v(w)))return i?-1:l;let x=!1;const k=ye(E)?E:Te(e,l,w,E,A,(()=>{x=!0}));if(x)return E;const L=function(e,t,n){return t(n)}(0,k,B(function(e,t,n,r){const{modifiers:i,pluralRules:a}=e,s={locale:t,modifiers:i,pluralRules:a,messages:r=>{const i=M(n,r);if(v(i)){let n=!1;const o=Te(e,r,t,i,r,(()=>{n=!0}));return n?ve:o}return ye(i)?i:ve}};return e.processor&&(s.processor=e.processor),r.list&&(s.list=r.list),r.named&&(s.named=r.named),o(r.plural)&&(s.pluralIndex=r.plural),s}(e,w,_,c))),P=r?r(L):L;if(__INTLIFY_PROD_DEVTOOLS__){const t={timestamp:Date.now(),key:v(l)?l:ye(E)?E.key:"",locale:w||(ye(E)?E.locale:""),format:v(E)?E:ye(E)?E.source:"",message:P};t.meta=u({},e.__meta,ie||{}),ne(t)}return P}function Te(e,t,n,r,i,o){const{messageCompiler:a,warnHtmlMessage:s}=e;if(ye(r)){const e=r;return e.locale=e.locale||n,e.key=e.key||t,e}const l=a(r,function(e,t,n,r,i,o){return{warnHtmlMessage:i,onError:e=>{throw o&&o(e),e},onCacheKey:e=>((e,t,n)=>(e=>JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"))({l:e,k:t,s:n}))(t,n,e)}}(0,n,i,0,s,o));return l.locale=n,l.key=t,l.source=r,l}function Se(...e){const[t,n,r]=e,i={};if(!v(t)&&!o(t)&&!ye(t))throw ge(14);const a=o(t)?String(t):(ye(t),t);return o(n)?i.plural=n:v(n)?i.default=n:E(n)&&!s(n)?i.named=n:m(n)&&(i.list=n),o(r)?i.plural=r:v(r)?i.default=r:E(r)&&u(i,r),[a,i]}const Ee="undefined"!=typeof Intl;function we(e,...t){const{datetimeFormats:n,unresolving:r,fallbackLocale:i,onWarn:o}=e,{__datetimeFormatters:a}=e,[l,c,f,d]=_e(...t),h=(y(f.missingWarn)?f.missingWarn:e.missingWarn,y(f.fallbackWarn)?f.fallbackWarn:e.fallbackWarn,!!f.part),p=v(f.locale)?f.locale:e.locale,m=ue(e,i,p);if(!v(l)||""===l)return new Intl.DateTimeFormat(p).format(c);let g,b={},T=null,S=p,w=null;for(let t=0;t<m.length&&(g=w=m[t],b=n[g]||{},T=b[l],!E(T));t++)le(e,l,g,0,"datetime format"),S=w;if(!E(T)||!v(g))return r?-1:l;let _=`${g}__${l}`;s(d)||(_=`${_}__${JSON.stringify(d)}`);let A=a.get(_);return A||(A=new Intl.DateTimeFormat(g,u({},T,d)),a.set(_,A)),h?A.formatToParts(c):A.format(c)}function _e(...e){const[t,n,r,i]=e;let a,s={},l={};if(v(t)){if(!/\d{4}-\d{2}-\d{2}(T.*)?/.test(t))throw ge(16);a=new Date(t);try{a.toISOString()}catch(e){throw ge(16)}}else if("[object Date]"===S(t)){if(isNaN(t.getTime()))throw ge(15);a=t}else{if(!o(t))throw ge(14);a=t}return v(n)?s.key=n:E(n)&&(s=n),v(r)?s.locale=r:E(r)&&(l=r),E(i)&&(l=i),[s.key||"",a,s,l]}function Ae(e,t,n){const r=e;for(const e in n){const n=`${t}__${e}`;r.__datetimeFormatters.has(n)&&r.__datetimeFormatters.delete(n)}}function xe(e,...t){const{numberFormats:n,unresolving:r,fallbackLocale:i,onWarn:o}=e,{__numberFormatters:a}=e,[l,c,f,d]=ke(...t),h=(y(f.missingWarn)?f.missingWarn:e.missingWarn,y(f.fallbackWarn)?f.fallbackWarn:e.fallbackWarn,!!f.part),p=v(f.locale)?f.locale:e.locale,m=ue(e,i,p);if(!v(l)||""===l)return new Intl.NumberFormat(p).format(c);let g,b={},T=null,S=p,w=null;for(let t=0;t<m.length&&(g=w=m[t],b=n[g]||{},T=b[l],!E(T));t++)le(e,l,g,0,"number format"),S=w;if(!E(T)||!v(g))return r?-1:l;let _=`${g}__${l}`;s(d)||(_=`${_}__${JSON.stringify(d)}`);let A=a.get(_);return A||(A=new Intl.NumberFormat(g,u({},T,d)),a.set(_,A)),h?A.formatToParts(c):A.format(c)}function ke(...e){const[t,n,r,i]=e;let a={},s={};if(!o(t))throw ge(14);const l=t;return v(n)?a.key=n:E(n)&&(a=n),v(r)?a.locale=r:E(r)&&(s=r),E(i)&&(s=i),[a.key||"",l,a,s]}function Le(e,t,n){const r=e;for(const e in n){const n=`${t}__${e}`;r.__numberFormatters.has(n)&&r.__numberFormatters.delete(n)}}Ee&&Intl.DateTimeFormat,Ee&&Intl.NumberFormat,"boolean"!=typeof __INTLIFY_PROD_DEVTOOLS__&&(f().__INTLIFY_PROD_DEVTOOLS__=!1);var Pe=n(27875),Ce=n(23517);function Me(){return"undefined"!=typeof navigator&&"undefined"!=typeof window?window:"undefined"!=typeof globalThis?globalThis:{}}const Re="function"==typeof Proxy;let Oe,Ie;class De{constructor(e,t){this.target=null,this.targetQueue=[],this.onQueue=[],this.plugin=e,this.hook=t;const n={};if(e.settings)for(const t in e.settings){const r=e.settings[t];n[t]=r.defaultValue}const r=`__vue-devtools-plugin-settings__${e.id}`;let i=Object.assign({},n);try{const e=localStorage.getItem(r),t=JSON.parse(e);Object.assign(i,t)}catch(e){}this.fallbacks={getSettings:()=>i,setSettings(e){try{localStorage.setItem(r,JSON.stringify(e))}catch(e){}i=e},now:()=>function(){return void 0!==Oe||("undefined"!=typeof window&&window.performance?(Oe=!0,Ie=window.performance):"undefined"!=typeof globalThis&&(null===(e=globalThis.perf_hooks)||void 0===e?void 0:e.performance)?(Oe=!0,Ie=globalThis.perf_hooks.performance):Oe=!1),Oe?Ie.now():Date.now();var e}()},t&&t.on("plugin:settings:set",((e,t)=>{e===this.plugin.id&&this.fallbacks.setSettings(t)})),this.proxiedOn=new Proxy({},{get:(e,t)=>this.target?this.target.on[t]:(...e)=>{this.onQueue.push({method:t,args:e})}}),this.proxiedTarget=new Proxy({},{get:(e,t)=>this.target?this.target[t]:"on"===t?this.proxiedOn:Object.keys(this.fallbacks).includes(t)?(...e)=>(this.targetQueue.push({method:t,args:e,resolve:()=>{}}),this.fallbacks[t](...e)):(...e)=>new Promise((n=>{this.targetQueue.push({method:t,args:e,resolve:n})}))})}async setRealTarget(e){this.target=e;for(const e of this.onQueue)this.target.on[e.method](...e.args);for(const e of this.targetQueue)e.resolve(await this.target[e.method](...e.args))}}function Ne(e,...t){return G(e,null,void 0)}const Fe="__INTLIFY_META__",Be=i("__transrateVNode"),Ge=i("__datetimeParts"),Ue=i("__numberParts"),He=i("__enableEmitter"),Ve=i("__disableEmitter"),je=i("__setPluralRules");i("__intlifyMeta");let We=0;function $e(e){return(t,n,r,i)=>e(n,r,(0,Pe.getCurrentInstance)()||void 0,i)}function Ke(e,t){const{messages:n,__i18n:r}=t,i=E(n)?n:m(r)?{}:{[e]:{}};if(m(r)&&r.forEach((({locale:e,resource:t})=>{e?(i[e]=i[e]||{},Xe(t,i[e])):Xe(t,i)})),t.flatJson)for(const e in i)p(i,e)&&R(i[e]);return i}const Ze=e=>!b(e)||m(e);function Xe(e,t){if(Ze(e)||Ze(t))throw Ne(20);for(const n in e)p(e,n)&&(Ze(e[n])||Ze(t[n])?t[n]=e[n]:Xe(e[n],t[n]))}function ze(e={}){const{__root:t}=e,n=void 0===t;let r=!y(e.inheritLocale)||e.inheritLocale;const i=(0,Ce.iH)(t&&r?t.locale.value:v(e.locale)?e.locale:"en-US"),s=(0,Ce.iH)(t&&r?t.fallbackLocale.value:v(e.fallbackLocale)||m(e.fallbackLocale)||E(e.fallbackLocale)||!1===e.fallbackLocale?e.fallbackLocale:i.value),l=(0,Ce.iH)(Ke(i.value,e)),c=(0,Ce.iH)(E(e.datetimeFormats)?e.datetimeFormats:{[i.value]:{}}),f=(0,Ce.iH)(E(e.numberFormats)?e.numberFormats:{[i.value]:{}});let d=t?t.missingWarn:!y(e.missingWarn)&&!a(e.missingWarn)||e.missingWarn,h=t?t.fallbackWarn:!y(e.fallbackWarn)&&!a(e.fallbackWarn)||e.fallbackWarn,p=t?t.fallbackRoot:!y(e.fallbackRoot)||e.fallbackRoot,T=!!e.fallbackFormat,S=g(e.missing)?e.missing:null,w=g(e.missing)?$e(e.missing):null,_=g(e.postTranslation)?e.postTranslation:null,A=!y(e.warnHtmlMessage)||e.warnHtmlMessage,x=!!e.escapeParameter;const k=t?t.modifiers:E(e.modifiers)?e.modifiers:{};let L,P=e.pluralRules||t&&t.pluralRules;L=se({version:"9.1.7",locale:i.value,fallbackLocale:s.value,messages:l.value,datetimeFormats:c.value,numberFormats:f.value,modifiers:k,pluralRules:P,missing:null===w?void 0:w,missingWarn:d,fallbackWarn:h,fallbackFormat:T,unresolving:!0,postTranslation:null===_?void 0:_,warnHtmlMessage:A,escapeParameter:x,__datetimeFormatters:E(L)?L.__datetimeFormatters:void 0,__numberFormatters:E(L)?L.__numberFormatters:void 0,__v_emitter:E(L)?L.__v_emitter:void 0,__meta:{framework:"vue"}}),he(L,i.value,s.value);const C=(0,Ce.Fl)({get:()=>i.value,set:e=>{i.value=e,L.locale=i.value}}),R=(0,Ce.Fl)({get:()=>s.value,set:e=>{s.value=e,L.fallbackLocale=s.value,he(L,i.value,e)}}),O=(0,Ce.Fl)((()=>l.value)),I=(0,Ce.Fl)((()=>c.value)),D=(0,Ce.Fl)((()=>f.value));function N(e,n,r,a,u,d){let h;if(i.value,s.value,l.value,c.value,f.value,__INTLIFY_PROD_DEVTOOLS__)try{oe((()=>{const e=(0,Pe.getCurrentInstance)();return e&&e.type[Fe]?{[Fe]:e.type[Fe]}:null})()),h=e(L)}finally{oe(null)}else h=e(L);if(o(h)&&-1===h){const[e,r]=n();return t&&p?a(t):u(e)}if(d(h))return h;throw Ne(14)}function F(...e){return N((t=>be(t,...e)),(()=>Se(...e)),0,(t=>t.t(...e)),(e=>e),(e=>v(e)))}const B={normalize:function(e){return e.map((e=>v(e)?(0,Pe.createVNode)(Pe.Text,null,e,0):e))},interpolate:e=>e,type:"vnode"};function G(e){return l.value[e]||{}}return We++,t&&((0,Pe.watch)(t.locale,(e=>{r&&(i.value=e,L.locale=e,he(L,i.value,s.value))})),(0,Pe.watch)(t.fallbackLocale,(e=>{r&&(s.value=e,L.fallbackLocale=e,he(L,i.value,s.value))}))),{id:We,locale:C,fallbackLocale:R,get inheritLocale(){return r},set inheritLocale(e){r=e,e&&t&&(i.value=t.locale.value,s.value=t.fallbackLocale.value,he(L,i.value,s.value))},get availableLocales(){return Object.keys(l.value).sort()},messages:O,datetimeFormats:I,numberFormats:D,get modifiers(){return k},get pluralRules(){return P||{}},get isGlobal(){return n},get missingWarn(){return d},set missingWarn(e){d=e,L.missingWarn=d},get fallbackWarn(){return h},set fallbackWarn(e){h=e,L.fallbackWarn=h},get fallbackRoot(){return p},set fallbackRoot(e){p=e},get fallbackFormat(){return T},set fallbackFormat(e){T=e,L.fallbackFormat=T},get warnHtmlMessage(){return A},set warnHtmlMessage(e){A=e,L.warnHtmlMessage=e},get escapeParameter(){return x},set escapeParameter(e){x=e,L.escapeParameter=e},t:F,rt:function(...e){const[t,n,r]=e;if(r&&!b(r))throw Ne(15);return F(t,n,u({resolvedMessage:!0},r||{}))},d:function(...e){return N((t=>we(t,...e)),(()=>_e(...e)),0,(t=>t.d(...e)),(()=>""),(e=>v(e)))},n:function(...e){return N((t=>xe(t,...e)),(()=>ke(...e)),0,(t=>t.n(...e)),(()=>""),(e=>v(e)))},te:function(e,t){return null!==M(G(v(t)?t:i.value),e)},tm:function(e){const n=function(e){let t=null;const n=ue(L,s.value,i.value);for(let r=0;r<n.length;r++){const i=M(l.value[n[r]]||{},e);if(null!=i){t=i;break}}return t}(e);return null!=n?n:t&&t.tm(e)||{}},getLocaleMessage:G,setLocaleMessage:function(e,t){l.value[e]=t,L.messages=l.value},mergeLocaleMessage:function(e,t){l.value[e]=l.value[e]||{},Xe(t,l.value[e]),L.messages=l.value},getDateTimeFormat:function(e){return c.value[e]||{}},setDateTimeFormat:function(e,t){c.value[e]=t,L.datetimeFormats=c.value,Ae(L,e,t)},mergeDateTimeFormat:function(e,t){c.value[e]=u(c.value[e]||{},t),L.datetimeFormats=c.value,Ae(L,e,t)},getNumberFormat:function(e){return f.value[e]||{}},setNumberFormat:function(e,t){f.value[e]=t,L.numberFormats=f.value,Le(L,e,t)},mergeNumberFormat:function(e,t){f.value[e]=u(f.value[e]||{},t),L.numberFormats=f.value,Le(L,e,t)},getPostTranslationHandler:function(){return g(_)?_:null},setPostTranslationHandler:function(e){_=e,L.postTranslation=e},getMissingHandler:function(){return S},setMissingHandler:function(e){null!==e&&(w=$e(e)),S=e,L.missing=w},[Be]:function(...e){return N((t=>{let n;const r=t;try{r.processor=B,n=be(r,...e)}finally{r.processor=null}return n}),(()=>Se(...e)),0,(t=>t[Be](...e)),(e=>[(0,Pe.createVNode)(Pe.Text,null,e,0)]),(e=>m(e)))},[Ue]:function(...e){return N((t=>xe(t,...e)),(()=>ke(...e)),0,(t=>t[Ue](...e)),(()=>[]),(e=>v(e)||m(e)))},[Ge]:function(...e){return N((t=>we(t,...e)),(()=>_e(...e)),0,(t=>t[Ge](...e)),(()=>[]),(e=>v(e)||m(e)))},[je]:function(e){P=e,L.pluralRules=P}}}function qe(e={}){const t=ze(function(e){const t=v(e.locale)?e.locale:"en-US",n=v(e.fallbackLocale)||m(e.fallbackLocale)||E(e.fallbackLocale)||!1===e.fallbackLocale?e.fallbackLocale:t,r=g(e.missing)?e.missing:void 0,i=!y(e.silentTranslationWarn)&&!a(e.silentTranslationWarn)||!e.silentTranslationWarn,o=!y(e.silentFallbackWarn)&&!a(e.silentFallbackWarn)||!e.silentFallbackWarn,s=!y(e.fallbackRoot)||e.fallbackRoot,l=!!e.formatFallbackMessages,c=E(e.modifiers)?e.modifiers:{},f=e.pluralizationRules,d=g(e.postTranslation)?e.postTranslation:void 0,h=!v(e.warnHtmlInMessage)||"off"!==e.warnHtmlInMessage,p=!!e.escapeParameterHtml,b=!y(e.sync)||e.sync;let T=e.messages;if(E(e.sharedMessages)){const t=e.sharedMessages;T=Object.keys(t).reduce(((e,n)=>{const r=e[n]||(e[n]={});return u(r,t[n]),e}),T||{})}const{__i18n:S,__root:w}=e,_=e.datetimeFormats,A=e.numberFormats;return{locale:t,fallbackLocale:n,messages:T,flatJson:e.flatJson,datetimeFormats:_,numberFormats:A,missing:r,missingWarn:i,fallbackWarn:o,fallbackRoot:s,fallbackFormat:l,modifiers:c,pluralRules:f,postTranslation:d,warnHtmlMessage:h,escapeParameter:p,inheritLocale:b,__i18n:S,__root:w}}(e)),n={id:t.id,get locale(){return t.locale.value},set locale(e){t.locale.value=e},get fallbackLocale(){return t.fallbackLocale.value},set fallbackLocale(e){t.fallbackLocale.value=e},get messages(){return t.messages.value},get datetimeFormats(){return t.datetimeFormats.value},get numberFormats(){return t.numberFormats.value},get availableLocales(){return t.availableLocales},get formatter(){return{interpolate:()=>[]}},set formatter(e){},get missing(){return t.getMissingHandler()},set missing(e){t.setMissingHandler(e)},get silentTranslationWarn(){return y(t.missingWarn)?!t.missingWarn:t.missingWarn},set silentTranslationWarn(e){t.missingWarn=y(e)?!e:e},get silentFallbackWarn(){return y(t.fallbackWarn)?!t.fallbackWarn:t.fallbackWarn},set silentFallbackWarn(e){t.fallbackWarn=y(e)?!e:e},get modifiers(){return t.modifiers},get formatFallbackMessages(){return t.fallbackFormat},set formatFallbackMessages(e){t.fallbackFormat=e},get postTranslation(){return t.getPostTranslationHandler()},set postTranslation(e){t.setPostTranslationHandler(e)},get sync(){return t.inheritLocale},set sync(e){t.inheritLocale=e},get warnHtmlInMessage(){return t.warnHtmlMessage?"warn":"off"},set warnHtmlInMessage(e){t.warnHtmlMessage="off"!==e},get escapeParameterHtml(){return t.escapeParameter},set escapeParameterHtml(e){t.escapeParameter=e},get preserveDirectiveContent(){return!0},set preserveDirectiveContent(e){},get pluralizationRules(){return t.pluralRules||{}},__composer:t,t(...e){const[n,r,i]=e,o={};let a=null,s=null;if(!v(n))throw Ne(15);const l=n;return v(r)?o.locale=r:m(r)?a=r:E(r)&&(s=r),m(i)?a=i:E(i)&&(s=i),t.t(l,a||s||{},o)},rt:(...e)=>t.rt(...e),tc(...e){const[n,r,i]=e,a={plural:1};let s=null,l=null;if(!v(n))throw Ne(15);const u=n;return v(r)?a.locale=r:o(r)?a.plural=r:m(r)?s=r:E(r)&&(l=r),v(i)?a.locale=i:m(i)?s=i:E(i)&&(l=i),t.t(u,s||l||{},a)},te:(e,n)=>t.te(e,n),tm:e=>t.tm(e),getLocaleMessage:e=>t.getLocaleMessage(e),setLocaleMessage(e,n){t.setLocaleMessage(e,n)},mergeLocaleMessage(e,n){t.mergeLocaleMessage(e,n)},d:(...e)=>t.d(...e),getDateTimeFormat:e=>t.getDateTimeFormat(e),setDateTimeFormat(e,n){t.setDateTimeFormat(e,n)},mergeDateTimeFormat(e,n){t.mergeDateTimeFormat(e,n)},n:(...e)=>t.n(...e),getNumberFormat:e=>t.getNumberFormat(e),setNumberFormat(e,n){t.setNumberFormat(e,n)},mergeNumberFormat(e,n){t.mergeNumberFormat(e,n)},getChoiceIndex:(e,t)=>-1,__onComponentInstanceCreated(t){const{componentInstanceCreatedListener:r}=e;r&&r(t,n)}};return n}const Ye={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>"parent"===e||"global"===e,default:"parent"},i18n:{type:Object}},Qe={name:"i18n-t",props:u({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>o(e)||!isNaN(e)}},Ye),setup(e,t){const{slots:n,attrs:r}=t,i=e.i18n||gt({useScope:e.scope}),o=Object.keys(n).filter((e=>"_"!==e));return()=>{const n={};e.locale&&(n.locale=e.locale),void 0!==e.plural&&(n.plural=v(e.plural)?+e.plural:e.plural);const a=function({slots:e},t){return 1===t.length&&"default"===t[0]?e.default?e.default():[]:t.reduce(((t,n)=>{const r=e[n];return r&&(t[n]=r()),t}),{})}(t,o),s=i[Be](e.keypath,a,n),l=u({},r);return v(e.tag)||b(e.tag)?(0,Pe.h)(e.tag,l,s):(0,Pe.h)(Pe.Fragment,l,s)}}};function Je(e,t,n,r){const{slots:i,attrs:o}=t;return()=>{const t={part:!0};let a={};e.locale&&(t.locale=e.locale),v(e.format)?t.key=e.format:b(e.format)&&(v(e.format.key)&&(t.key=e.format.key),a=Object.keys(e.format).reduce(((t,r)=>n.includes(r)?u({},t,{[r]:e.format[r]}):t),{}));const s=r(e.value,t,a);let l=[t.key];m(s)?l=s.map(((e,t)=>{const n=i[e.type];return n?n({[e.type]:e.value,index:t,parts:s}):[e.value]})):v(s)&&(l=[s]);const c=u({},o);return v(e.tag)||b(e.tag)?(0,Pe.h)(e.tag,c,l):(0,Pe.h)(Pe.Fragment,c,l)}}const et=["localeMatcher","style","unit","unitDisplay","currency","currencyDisplay","useGrouping","numberingSystem","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","notation","formatMatcher"],tt={name:"i18n-n",props:u({value:{type:Number,required:!0},format:{type:[String,Object]}},Ye),setup(e,t){const n=e.i18n||gt({useScope:"parent"});return Je(e,t,et,((...e)=>n[Ue](...e)))}},nt=["dateStyle","timeStyle","fractionalSecondDigits","calendar","dayPeriod","numberingSystem","localeMatcher","timeZone","hour12","hourCycle","formatMatcher","weekday","era","year","month","day","hour","minute","second","timeZoneName"],rt={name:"i18n-d",props:u({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},Ye),setup(e,t){const n=e.i18n||gt({useScope:"parent"});return Je(e,t,nt,((...e)=>n[Ge](...e)))}};function it(e){const t=(t,{instance:n,value:r,modifiers:i})=>{if(!n||!n.$)throw Ne(22);const a=function(e,t){const n=e;if("composition"===e.mode)return n.__getInstance(t)||e.global;{const r=n.__getInstance(t);return null!=r?r.__composer:e.global.__composer}}(e,n.$),s=function(e){if(v(e))return{path:e};if(E(e)){if(!("path"in e))throw Ne(19);return e}throw Ne(20)}(r);t.textContent=a.t(...function(e){const{path:t,locale:n,args:r,choice:i,plural:a}=e,s={},l=r||{};return v(n)&&(s.locale=n),o(i)&&(s.plural=i),o(a)&&(s.plural=a),[t,l,s]}(s))};return{beforeMount:t,beforeUpdate:t}}const ot="vue-i18n: composer properties";let at;function st(e,t){const n=ot;e.state.push({type:n,key:"locale",editable:!0,value:t.locale.value}),e.state.push({type:n,key:"availableLocales",editable:!1,value:t.availableLocales}),e.state.push({type:n,key:"fallbackLocale",editable:!0,value:t.fallbackLocale.value}),e.state.push({type:n,key:"inheritLocale",editable:!0,value:t.inheritLocale}),e.state.push({type:n,key:"messages",editable:!1,value:lt(t.messages.value)}),e.state.push({type:n,key:"datetimeFormats",editable:!1,value:t.datetimeFormats.value}),e.state.push({type:n,key:"numberFormats",editable:!1,value:t.numberFormats.value})}function lt(e){const t={};return Object.keys(e).forEach((n=>{const r=e[n];g(r)&&"source"in r?t[n]=function(e){return{_custom:{type:"function",display:"<span>ƒ</span> "+(e.source?`("${ct(e.source)}")`:"(?)")}}}(r):b(r)?t[n]=lt(r):t[n]=r})),t}const ut={"<":"<",">":">",'"':""","&":"&"};function ct(e){return e.replace(/[<>"&]/g,ft)}function ft(e){return ut[e]||e}function dt(e,t){if("global"===e)return"composition"===t.mode?t.global:t.global.__composer;{const n=Array.from(t.__instances.values()).find((t=>t.id.toString()===e));return n?"composition"===t.mode?n:n.__composer:null}}function ht(e,t){if(at){let n;t&&"groupId"in t&&(n=t.groupId,delete t.groupId),at.addTimelineEvent({layerId:"vue-i18n-timeline",event:{title:e,groupId:n,time:Date.now(),meta:{},data:t||{},logType:"compile-error"===e?"error":"fallback"===e||"missing"===e?"warning":"default"}})}}function pt(e,t){e.locale=t.locale||e.locale,e.fallbackLocale=t.fallbackLocale||e.fallbackLocale,e.missing=t.missing||e.missing,e.silentTranslationWarn=t.silentTranslationWarn||e.silentFallbackWarn,e.silentFallbackWarn=t.silentFallbackWarn||e.silentFallbackWarn,e.formatFallbackMessages=t.formatFallbackMessages||e.formatFallbackMessages,e.postTranslation=t.postTranslation||e.postTranslation,e.warnHtmlInMessage=t.warnHtmlInMessage||e.warnHtmlInMessage,e.escapeParameterHtml=t.escapeParameterHtml||e.escapeParameterHtml,e.sync=t.sync||e.sync,e.__composer[je](t.pluralizationRules||e.pluralizationRules);const n=Ke(e.locale,{messages:t.messages,__i18n:t.__i18n});return Object.keys(n).forEach((t=>e.mergeLocaleMessage(t,n[t]))),t.datetimeFormats&&Object.keys(t.datetimeFormats).forEach((n=>e.mergeDateTimeFormat(n,t.datetimeFormats[n]))),t.numberFormats&&Object.keys(t.numberFormats).forEach((n=>e.mergeNumberFormat(n,t.numberFormats[n]))),e}function mt(e={}){const t=__VUE_I18N_LEGACY_API__&&y(e.legacy)?e.legacy:__VUE_I18N_LEGACY_API__,n=!!e.globalInjection,r=new Map,o=__VUE_I18N_LEGACY_API__&&t?qe(e):ze(e),a=i(""),s={get mode(){return __VUE_I18N_LEGACY_API__&&t?"legacy":"composition"},async install(e,...r){if(__VUE_I18N_PROD_DEVTOOLS__&&(e.__VUE_I18N__=s),e.__VUE_I18N_SYMBOL__=a,e.provide(e.__VUE_I18N_SYMBOL__,s),!t&&n&&function(e,t){const n=Object.create(null);vt.forEach((e=>{const r=Object.getOwnPropertyDescriptor(t,e);if(!r)throw Ne(22);const i=(0,Ce.dq)(r.value)?{get:()=>r.value.value,set(e){r.value.value=e}}:{get:()=>r.get&&r.get()};Object.defineProperty(n,e,i)})),e.config.globalProperties.$i18n=n,yt.forEach((n=>{const r=Object.getOwnPropertyDescriptor(t,n);if(!r||!r.value)throw Ne(22);Object.defineProperty(e.config.globalProperties,`$${n}`,r)}))}(e,s.global),__VUE_I18N_FULL_INSTALL__&&function(e,t,...n){const r=E(n[0])?n[0]:{},i=!!r.useI18nComponentName;(!y(r.globalInstall)||r.globalInstall)&&(e.component(i?"i18n":Qe.name,Qe),e.component(tt.name,tt),e.component(rt.name,rt)),e.directive("t",it(t))}(e,s,...r),__VUE_I18N_LEGACY_API__&&t&&e.mixin(function(e,t,n){return{beforeCreate(){const r=(0,Pe.getCurrentInstance)();if(!r)throw Ne(22);const i=this.$options;if(i.i18n){const n=i.i18n;i.__i18n&&(n.__i18n=i.__i18n),n.__root=t,this===this.$root?this.$i18n=pt(e,n):this.$i18n=qe(n)}else i.__i18n?this===this.$root?this.$i18n=pt(e,i):this.$i18n=qe({__i18n:i.__i18n,__root:t}):this.$i18n=e;e.__onComponentInstanceCreated(this.$i18n),n.__setInstance(r,this.$i18n),this.$t=(...e)=>this.$i18n.t(...e),this.$rt=(...e)=>this.$i18n.rt(...e),this.$tc=(...e)=>this.$i18n.tc(...e),this.$te=(e,t)=>this.$i18n.te(e,t),this.$d=(...e)=>this.$i18n.d(...e),this.$n=(...e)=>this.$i18n.n(...e),this.$tm=e=>this.$i18n.tm(e)},mounted(){if(__VUE_I18N_PROD_DEVTOOLS__){this.$el.__VUE_I18N__=this.$i18n.__composer;const e=this.__v_emitter=w(),t=this.$i18n;t.__enableEmitter&&t.__enableEmitter(e),e.on("*",ht)}},beforeUnmount(){const e=(0,Pe.getCurrentInstance)();if(!e)throw Ne(22);if(__VUE_I18N_PROD_DEVTOOLS__){this.__v_emitter&&(this.__v_emitter.off("*",ht),delete this.__v_emitter);const e=this.$i18n;e.__disableEmitter&&e.__disableEmitter(),delete this.$el.__VUE_I18N__}delete this.$t,delete this.$rt,delete this.$tc,delete this.$te,delete this.$d,delete this.$n,delete this.$tm,n.__deleteInstance(e),delete this.$i18n}}}(o,o.__composer,s)),__VUE_I18N_PROD_DEVTOOLS__){if(!await async function(e,t){return new Promise(((n,r)=>{try{!function(e,t){const n=e,r=Me(),i=Me().__VUE_DEVTOOLS_GLOBAL_HOOK__,o=Re&&n.enableEarlyProxy;if(!i||!r.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__&&o){const e=o?new De(n,i):null;(r.__VUE_DEVTOOLS_PLUGINS__=r.__VUE_DEVTOOLS_PLUGINS__||[]).push({pluginDescriptor:n,setupFn:t,proxy:e}),e&&t(e.proxiedTarget)}else i.emit("devtools-plugin:setup",e,t)}({id:"vue-devtools-plugin-vue-i18n",label:"Vue I18n devtools",packageName:"vue-i18n",homepage:"https://vue-i18n.intlify.dev",logo:"https://vue-i18n.intlify.dev/vue-i18n-devtools-logo.png",componentStateTypes:[ot],app:e},(r=>{at=r,r.on.visitComponentTree((({componentInstance:e,treeNode:n})=>{!function(e,t,n){const r="composition"===n.mode?n.global:n.global.__composer;if(e&&e.vnode.el.__VUE_I18N__&&e.vnode.el.__VUE_I18N__!==r){const n={label:`i18n (${e.type.name||e.type.displayName||e.type.__file} Scope)`,textColor:0,backgroundColor:16764185};t.tags.push(n)}}(e,n,t)})),r.on.inspectComponent((({componentInstance:e,instanceData:n})=>{e.vnode.el.__VUE_I18N__&&n&&("legacy"===t.mode?e.vnode.el.__VUE_I18N__!==t.global.__composer&&st(n,e.vnode.el.__VUE_I18N__):st(n,e.vnode.el.__VUE_I18N__))})),r.addInspector({id:"vue-i18n-resource-inspector",label:"I18n Resources",icon:"language",treeFilterPlaceholder:"Search for scopes ..."}),r.on.getInspectorTree((n=>{n.app===e&&"vue-i18n-resource-inspector"===n.inspectorId&&function(e,t){e.rootNodes.push({id:"global",label:"Global Scope"});const n="composition"===t.mode?t.global:t.global.__composer;for(const[r,i]of t.__instances){const o="composition"===t.mode?i:i.__composer;if(n===o)continue;const a=r.type.name||r.type.displayName||r.type.__file;e.rootNodes.push({id:o.id.toString(),label:`${a} Scope`})}}(n,t)})),r.on.getInspectorState((n=>{n.app===e&&"vue-i18n-resource-inspector"===n.inspectorId&&function(e,t){const n=dt(e.nodeId,t);n&&(e.state=function(e){const t={},n="Locale related info",r=[{type:n,key:"locale",editable:!0,value:e.locale.value},{type:n,key:"fallbackLocale",editable:!0,value:e.fallbackLocale.value},{type:n,key:"availableLocales",editable:!1,value:e.availableLocales},{type:n,key:"inheritLocale",editable:!0,value:e.inheritLocale}];t[n]=r;const i="Locale messages info",o=[{type:i,key:"messages",editable:!1,value:lt(e.messages.value)}];t[i]=o;const a="Datetime formats info",s=[{type:a,key:"datetimeFormats",editable:!1,value:e.datetimeFormats.value}];t[a]=s;const l="Datetime formats info",u=[{type:l,key:"numberFormats",editable:!1,value:e.numberFormats.value}];return t[l]=u,t}(n))}(n,t)})),r.on.editInspectorState((n=>{n.app===e&&"vue-i18n-resource-inspector"===n.inspectorId&&function(e,t){const n=dt(e.nodeId,t);if(n){const[t]=e.path;"locale"===t&&v(e.state.value)?n.locale.value=e.state.value:"fallbackLocale"===t&&(v(e.state.value)||m(e.state.value)||b(e.state.value))?n.fallbackLocale.value=e.state.value:"inheritLocale"===t&&y(e.state.value)&&(n.inheritLocale=e.state.value)}}(n,t)})),r.addTimelineLayer({id:"vue-i18n-timeline",label:"Vue I18n",color:16764185}),n(!0)}))}catch(e){console.error(e),r(!1)}}))}(e,s))throw Ne(21);const n=w();if(t){const e=o;e.__enableEmitter&&e.__enableEmitter(n)}else{const e=o;e[He]&&e[He](n)}n.on("*",ht)}},get global(){return o},__instances:r,__getInstance:e=>r.get(e)||null,__setInstance(e,t){r.set(e,t)},__deleteInstance(e){r.delete(e)}};return s}function gt(e={}){const t=(0,Pe.getCurrentInstance)();if(null==t)throw Ne(16);if(!t.appContext.app.__VUE_I18N_SYMBOL__)throw Ne(17);const n=(0,Pe.inject)(t.appContext.app.__VUE_I18N_SYMBOL__);if(!n)throw Ne(22);const r="composition"===n.mode?n.global:n.global.__composer,i=s(e)?"__i18n"in t.type?"local":"global":e.useScope?e.useScope:"local";if("global"===i){let n=b(e.messages)?e.messages:{};"__i18nGlobal"in t.type&&(n=Ke(r.locale.value,{messages:n,__i18n:t.type.__i18nGlobal}));const i=Object.keys(n);if(i.length&&i.forEach((e=>{r.mergeLocaleMessage(e,n[e])})),b(e.datetimeFormats)){const t=Object.keys(e.datetimeFormats);t.length&&t.forEach((t=>{r.mergeDateTimeFormat(t,e.datetimeFormats[t])}))}if(b(e.numberFormats)){const t=Object.keys(e.numberFormats);t.length&&t.forEach((t=>{r.mergeNumberFormat(t,e.numberFormats[t])}))}return r}if("parent"===i){let e=function(e,t){let n=null;const r=t.root;let i=t.parent;for(;null!=i;){const t=e;if("composition"===e.mode)n=t.__getInstance(i);else{const e=t.__getInstance(i);null!=e&&(n=e.__composer)}if(null!=n)break;if(r===i)break;i=i.parent}return n}(n,t);return null==e&&(e=r),e}if("legacy"===n.mode)throw Ne(18);const o=n;let a=o.__getInstance(t);if(null==a){const n=t.type,i=u({},e);n.__i18n&&(i.__i18n=n.__i18n),r&&(i.__root=r),a=ze(i),function(e,t,n){let r=null;(0,Pe.onMounted)((()=>{if(__VUE_I18N_PROD_DEVTOOLS__&&t.vnode.el){t.vnode.el.__VUE_I18N__=n,r=w();const e=n;e[He]&&e[He](r),r.on("*",ht)}}),t),(0,Pe.onUnmounted)((()=>{if(__VUE_I18N_PROD_DEVTOOLS__&&t.vnode.el&&t.vnode.el.__VUE_I18N__){r&&r.off("*",ht);const e=n;e[Ve]&&e[Ve](),delete t.vnode.el.__VUE_I18N__}e.__deleteInstance(t)}),t)}(o,t,a),o.__setInstance(t,a)}return a}const vt=["locale","fallbackLocale","availableLocales"],yt=["t","rt","d","n","tm"];var bt;if(re=function(e,t={}){{const n=(t.onCacheKey||pe)(e),r=me[n];if(r)return r;let i=!1;const o=t.onError||U;t.onError=e=>{i=!0,o(e)};const{code:a}=ee(e,t),s=new Function(`return ${a}`)();return i?s:me[n]=s}},function(){let e=!1;"boolean"!=typeof __VUE_I18N_FULL_INSTALL__&&(e=!0,f().__VUE_I18N_FULL_INSTALL__=!0),"boolean"!=typeof __VUE_I18N_LEGACY_API__&&(e=!0,f().__VUE_I18N_LEGACY_API__=!0),"boolean"!=typeof __VUE_I18N_PROD_DEVTOOLS__&&(e=!0,f().__VUE_I18N_PROD_DEVTOOLS__=!1),"boolean"!=typeof __INTLIFY_PROD_DEVTOOLS__&&(f().__INTLIFY_PROD_DEVTOOLS__=!1)}(),__INTLIFY_PROD_DEVTOOLS__){const e=f();e.__INTLIFY__=!0,bt=e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__,te=bt}},14779:function(e,t){!function(e){"use strict";var t=void 0,n={attributes:!0,attributeOldValue:!0,childList:!0,characterData:!0,characterDataOldValue:!0},r={bind:function(e,n){var r=n.value;if(!r)return console.warn('vue-mutation-observer: "Please set callback or config object."');var i="function"==typeof r&&r||r.callback;t=new MutationObserver(i)},inserted:function(e,r){var i=r.value,o=r.modifiers,a=r.arg,s={},l=!0,u=!1,c=void 0;try{for(var f,d=Object.keys(o)[Symbol.iterator]();!(l=(f=d.next()).done);l=!0){var h=f.value;switch(h){case"characterData":s=Object.assign(s,{characterData:!0,characterDataOldValue:!0});break;case"attributes":s=Object.assign(s,{attributes:!0,attributeOldValue:!0});break;case"childList":s=Object.assign(s,{childList:!0});break;default:console.warn('vue-mutation-observer: "Unknown modifier: '+h+'."')}}}catch(e){u=!0,c=e}finally{try{!l&&d.return&&d.return()}finally{if(u)throw c}}i.config&&(s=Object.assign(s,i.config));var p=0<Object.keys(s).length&&s||n;p.subtree=!!a&&"subtree"===a;try{t.observe(e,p)}catch(e){console.error('vue-mutation-observer: "'+e+'."')}},install:function(e){e.directive("observer",r)}};"undefined"!=typeof window&&window.Vue&&window.Vue.use(r);var i=r;e.observer=i,e.default=r,Object.defineProperty(e,"__esModule",{value:!0})}(t)},70525:(e,t,n)=>{"use strict";n.d(t,{ri:()=>r.createApp});var r=n(23678),i=n(27875);function o(e,t){const n=Object.create(null),r=e.split(",");for(let e=0;e<r.length;e++)n[r[e]]=!0;return t?e=>!!n[e.toLowerCase()]:e=>!!n[e]}const a=/;(?![^(]*\))/g,s=/:(.+)/,l=o("html,body,base,head,link,meta,style,title,address,article,aside,footer,header,h1,h2,h3,h4,h5,h6,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,summary,template,blockquote,iframe,tfoot"),u=o("svg,animate,animateMotion,animateTransform,circle,clipPath,color-profile,defs,desc,discard,ellipse,feBlend,feColorMatrix,feComponentTransfer,feComposite,feConvolveMatrix,feDiffuseLighting,feDisplacementMap,feDistanceLight,feDropShadow,feFlood,feFuncA,feFuncB,feFuncG,feFuncR,feGaussianBlur,feImage,feMerge,feMergeNode,feMorphology,feOffset,fePointLight,feSpecularLighting,feSpotLight,feTile,feTurbulence,filter,foreignObject,g,hatch,hatchpath,image,line,linearGradient,marker,mask,mesh,meshgradient,meshpatch,meshrow,metadata,mpath,path,pattern,polygon,polyline,radialGradient,rect,set,solidcolor,stop,switch,symbol,text,textPath,title,tspan,unknown,use,view"),c=o("area,base,br,col,embed,hr,img,input,link,meta,param,source,track,wbr"),f={},d=()=>{},h=()=>!1,p=/^on[^a-z]/,m=Object.assign,g=(Object.prototype.hasOwnProperty,Array.isArray),v=e=>"string"==typeof e,y=e=>"symbol"==typeof e,b=(Object.prototype.toString,o(",key,ref,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted")),T=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},S=/-(\w)/g,E=T((e=>e.replace(S,((e,t)=>t?t.toUpperCase():"")))),w=/\B([A-Z])/g,_=T((e=>e.replace(w,"-$1").toLowerCase())),A=T((e=>e.charAt(0).toUpperCase()+e.slice(1))),x=T((e=>e?`on${A(e)}`:""));function k(e){throw e}function L(e){}function P(e,t,n,r){const i=new SyntaxError(String(e));return i.code=e,i.loc=t,i}const C=Symbol(""),M=Symbol(""),R=Symbol(""),O=Symbol(""),I=Symbol(""),D=Symbol(""),N=Symbol(""),F=Symbol(""),B=Symbol(""),G=Symbol(""),U=Symbol(""),H=Symbol(""),V=Symbol(""),j=Symbol(""),W=Symbol(""),$=Symbol(""),K=Symbol(""),Z=Symbol(""),X=Symbol(""),z=Symbol(""),q=Symbol(""),Y=Symbol(""),Q=Symbol(""),J=Symbol(""),ee=Symbol(""),te=Symbol(""),ne=Symbol(""),re=Symbol(""),ie=Symbol(""),oe=Symbol(""),ae=Symbol(""),se=Symbol(""),le=Symbol(""),ue=Symbol(""),ce=Symbol(""),fe=Symbol(""),de=Symbol(""),he=Symbol(""),pe=Symbol(""),me={[C]:"Fragment",[M]:"Teleport",[R]:"Suspense",[O]:"KeepAlive",[I]:"BaseTransition",[D]:"openBlock",[N]:"createBlock",[F]:"createElementBlock",[B]:"createVNode",[G]:"createElementVNode",[U]:"createCommentVNode",[H]:"createTextVNode",[V]:"createStaticVNode",[j]:"resolveComponent",[W]:"resolveDynamicComponent",[$]:"resolveDirective",[K]:"resolveFilter",[Z]:"withDirectives",[X]:"renderList",[z]:"renderSlot",[q]:"createSlots",[Y]:"toDisplayString",[Q]:"mergeProps",[J]:"normalizeClass",[ee]:"normalizeStyle",[te]:"normalizeProps",[ne]:"guardReactiveProps",[re]:"toHandlers",[ie]:"camelize",[oe]:"capitalize",[ae]:"toHandlerKey",[se]:"setBlockTracking",[le]:"pushScopeId",[ue]:"popScopeId",[ce]:"withCtx",[fe]:"unref",[de]:"isRef",[he]:"withMemo",[pe]:"isMemoSame"},ge={source:"",start:{line:1,column:1,offset:0},end:{line:1,column:1,offset:0}};function ve(e,t,n,r,i,o,a,s=!1,l=!1,u=!1,c=ge){return e&&(s?(e.helper(D),e.helper(Ke(e.inSSR,u))):e.helper($e(e.inSSR,u)),a&&e.helper(Z)),{type:13,tag:t,props:n,children:r,patchFlag:i,dynamicProps:o,directives:a,isBlock:s,disableTracking:l,isComponent:u,loc:c}}function ye(e,t=ge){return{type:17,loc:t,elements:e}}function be(e,t=ge){return{type:15,loc:t,properties:e}}function Te(e,t){return{type:16,loc:ge,key:v(e)?Se(e,!0):e,value:t}}function Se(e,t=!1,n=ge,r=0){return{type:4,loc:n,content:e,isStatic:t,constType:t?3:r}}function Ee(e,t=ge){return{type:8,loc:t,children:e}}function we(e,t=[],n=ge){return{type:14,loc:n,callee:e,arguments:t}}function _e(e,t,n=!1,r=!1,i=ge){return{type:18,params:e,returns:t,newline:n,isSlot:r,loc:i}}function Ae(e,t,n,r=!0){return{type:19,test:e,consequent:t,alternate:n,newline:r,loc:ge}}const xe=e=>4===e.type&&e.isStatic,ke=(e,t)=>e===t||e===_(t);function Le(e){return ke(e,"Teleport")?M:ke(e,"Suspense")?R:ke(e,"KeepAlive")?O:ke(e,"BaseTransition")?I:void 0}const Pe=/^\d|[^\$\w]/,Ce=e=>!Pe.test(e),Me=/[A-Za-z_$\xA0-\uFFFF]/,Re=/[\.\?\w$\xA0-\uFFFF]/,Oe=/\s+[.[]\s*|\s*[.[]\s+/g,Ie=e=>{e=e.trim().replace(Oe,(e=>e.trim()));let t=0,n=[],r=0,i=0,o=null;for(let a=0;a<e.length;a++){const s=e.charAt(a);switch(t){case 0:if("["===s)n.push(t),t=1,r++;else if("("===s)n.push(t),t=2,i++;else if(!(0===a?Me:Re).test(s))return!1;break;case 1:"'"===s||'"'===s||"`"===s?(n.push(t),t=3,o=s):"["===s?r++:"]"===s&&(--r||(t=n.pop()));break;case 2:if("'"===s||'"'===s||"`"===s)n.push(t),t=3,o=s;else if("("===s)i++;else if(")"===s){if(a===e.length-1)return!1;--i||(t=n.pop())}break;case 3:s===o&&(t=n.pop(),o=null)}}return!r&&!i};function De(e,t,n){const r={source:e.source.substr(t,n),start:Ne(e.start,e.source,t),end:e.end};return null!=n&&(r.end=Ne(e.start,e.source,t+n)),r}function Ne(e,t,n=t.length){return Fe(m({},e),t,n)}function Fe(e,t,n=t.length){let r=0,i=-1;for(let e=0;e<n;e++)10===t.charCodeAt(e)&&(r++,i=e);return e.offset+=n,e.line+=r,e.column=-1===i?e.column+n:n-i,e}function Be(e,t,n=!1){for(let r=0;r<e.props.length;r++){const i=e.props[r];if(7===i.type&&(n||i.exp)&&(v(t)?i.name===t:t.test(i.name)))return i}}function Ge(e,t,n=!1,r=!1){for(let i=0;i<e.props.length;i++){const o=e.props[i];if(6===o.type){if(n)continue;if(o.name===t&&(o.value||r))return o}else if("bind"===o.name&&(o.exp||r)&&Ue(o.arg,t))return o}}function Ue(e,t){return!(!e||!xe(e)||e.content!==t)}function He(e){return 5===e.type||2===e.type}function Ve(e){return 7===e.type&&"slot"===e.name}function je(e){return 1===e.type&&3===e.tagType}function We(e){return 1===e.type&&2===e.tagType}function $e(e,t){return e||t?B:G}function Ke(e,t){return e||t?N:F}const Ze=new Set([te,ne]);function Xe(e,t=[]){if(e&&!v(e)&&14===e.type){const n=e.callee;if(!v(n)&&Ze.has(n))return Xe(e.arguments[0],t.concat(e))}return[e,t]}function ze(e,t,n){let r,i,o=13===e.type?e.props:e.arguments[2],a=[];if(o&&!v(o)&&14===o.type){const e=Xe(o);o=e[0],a=e[1],i=a[a.length-1]}if(null==o||v(o))r=be([t]);else if(14===o.type){const e=o.arguments[0];v(e)||15!==e.type?o.callee===re?r=we(n.helper(Q),[be([t]),o]):o.arguments.unshift(be([t])):e.properties.unshift(t),!r&&(r=o)}else if(15===o.type){let e=!1;if(4===t.key.type){const n=t.key.content;e=o.properties.some((e=>4===e.key.type&&e.key.content===n))}e||o.properties.unshift(t),r=o}else r=we(n.helper(Q),[be([t]),o]),i&&i.callee===ne&&(i=a[a.length-2]);13===e.type?i?i.arguments[0]=r:e.props=r:i?i.arguments[0]=r:e.arguments[2]=r}function qe(e,t){return`_${t}_${e.replace(/[^\w]/g,((t,n)=>"-"===t?"_":e.charCodeAt(n).toString()))}`}function Ye(e,{helper:t,removeHelper:n,inSSR:r}){e.isBlock||(e.isBlock=!0,n($e(r,e.isComponent)),t(D),t(Ke(r,e.isComponent)))}function Qe(e,t){const n=t.options?t.options.compatConfig:t.compatConfig,r=n&&n[e];return"MODE"===e?r||3:r}function Je(e,t){const n=Qe("MODE",t),r=Qe(e,t);return 3===n?!0===r:!1!==r}function et(e,t,n,...r){return Je(e,t)}const tt=/&(gt|lt|amp|apos|quot);/g,nt={gt:">",lt:"<",amp:"&",apos:"'",quot:'"'},rt={delimiters:["{{","}}"],getNamespace:()=>0,getTextMode:()=>0,isVoidTag:h,isPreTag:h,isCustomElement:h,decodeEntities:e=>e.replace(tt,((e,t)=>nt[t])),onError:k,onWarn:L,comments:!1};function it(e,t,n){const r=bt(n),i=r?r.ns:0,o=[];for(;!At(e,t,n);){const a=e.source;let s;if(0===t||1===t)if(!e.inVPre&&Tt(a,e.options.delimiters[0]))s=pt(e,t);else if(0===t&&"<"===a[0])if(1===a.length)_t(e,5,1);else if("!"===a[1])Tt(a,"\x3c!--")?s=st(e):Tt(a,"<!DOCTYPE")?s=lt(e):Tt(a,"<![CDATA[")?0!==i?s=at(e,n):(_t(e,1),s=lt(e)):(_t(e,11),s=lt(e));else if("/"===a[1])if(2===a.length)_t(e,5,2);else{if(">"===a[2]){_t(e,14,2),St(e,3);continue}if(/[a-z]/i.test(a[2])){_t(e,23),ft(e,1,r);continue}_t(e,12,2),s=lt(e)}else/[a-z]/i.test(a[1])?(s=ut(e,n),Je("COMPILER_NATIVE_TEMPLATE",e)&&s&&"template"===s.tag&&!s.props.some((e=>7===e.type&&ct(e.name)))&&(s=s.children)):"?"===a[1]?(_t(e,21,1),s=lt(e)):_t(e,12,1);if(s||(s=mt(e,t)),g(s))for(let e=0;e<s.length;e++)ot(o,s[e]);else ot(o,s)}let a=!1;if(2!==t&&1!==t){const t="preserve"!==e.options.whitespace;for(let n=0;n<o.length;n++){const r=o[n];if(e.inPre||2!==r.type)3!==r.type||e.options.comments||(a=!0,o[n]=null);else if(/[^\t\r\n\f ]/.test(r.content))t&&(r.content=r.content.replace(/[\t\r\n\f ]+/g," "));else{const e=o[n-1],i=o[n+1];!e||!i||t&&(3===e.type||3===i.type||1===e.type&&1===i.type&&/[\r\n]/.test(r.content))?(a=!0,o[n]=null):r.content=" "}}if(e.inPre&&r&&e.options.isPreTag(r.tag)){const e=o[0];e&&2===e.type&&(e.content=e.content.replace(/^\r?\n/,""))}}return a?o.filter(Boolean):o}function ot(e,t){if(2===t.type){const n=bt(e);if(n&&2===n.type&&n.loc.end.offset===t.loc.start.offset)return n.content+=t.content,n.loc.end=t.loc.end,void(n.loc.source+=t.loc.source)}e.push(t)}function at(e,t){St(e,9);const n=it(e,3,t);return 0===e.source.length?_t(e,6):St(e,3),n}function st(e){const t=vt(e);let n;const r=/--(\!)?>/.exec(e.source);if(r){r.index<=3&&_t(e,0),r[1]&&_t(e,10),n=e.source.slice(4,r.index);const t=e.source.slice(0,r.index);let i=1,o=0;for(;-1!==(o=t.indexOf("\x3c!--",i));)St(e,o-i+1),o+4<t.length&&_t(e,16),i=o+1;St(e,r.index+r[0].length-i+1)}else n=e.source.slice(4),St(e,e.source.length),_t(e,7);return{type:3,content:n,loc:yt(e,t)}}function lt(e){const t=vt(e),n="?"===e.source[1]?1:2;let r;const i=e.source.indexOf(">");return-1===i?(r=e.source.slice(n),St(e,e.source.length)):(r=e.source.slice(n,i),St(e,i+1)),{type:3,content:r,loc:yt(e,t)}}function ut(e,t){const n=e.inPre,r=e.inVPre,i=bt(t),o=ft(e,0,i),a=e.inPre&&!n,s=e.inVPre&&!r;if(o.isSelfClosing||e.options.isVoidTag(o.tag))return a&&(e.inPre=!1),s&&(e.inVPre=!1),o;t.push(o);const l=e.options.getTextMode(o,i),u=it(e,l,t);t.pop();{const t=o.props.find((e=>6===e.type&&"inline-template"===e.name));if(t&&et("COMPILER_INLINE_TEMPLATE",e,t.loc)){const n=yt(e,o.loc.end);t.value={type:2,content:n.source,loc:n}}}if(o.children=u,xt(e.source,o.tag))ft(e,1,i);else if(_t(e,24,0,o.loc.start),0===e.source.length&&"script"===o.tag.toLowerCase()){const t=u[0];t&&Tt(t.loc.source,"\x3c!--")&&_t(e,8)}return o.loc=yt(e,o.loc.start),a&&(e.inPre=!1),s&&(e.inVPre=!1),o}const ct=o("if,else,else-if,for,slot");function ft(e,t,n){const r=vt(e),i=/^<\/?([a-z][^\t\r\n\f />]*)/i.exec(e.source),o=i[1],a=e.options.getNamespace(o,n);St(e,i[0].length),Et(e);const s=vt(e),l=e.source;e.options.isPreTag(o)&&(e.inPre=!0);let u=dt(e,t);0===t&&!e.inVPre&&u.some((e=>7===e.type&&"pre"===e.name))&&(e.inVPre=!0,m(e,s),e.source=l,u=dt(e,t).filter((e=>"v-pre"!==e.name)));let c=!1;if(0===e.source.length?_t(e,9):(c=Tt(e.source,"/>"),1===t&&c&&_t(e,4),St(e,c?2:1)),1===t)return;let f=0;return e.inVPre||("slot"===o?f=2:"template"===o?u.some((e=>7===e.type&&ct(e.name)))&&(f=3):function(e,t,n){const r=n.options;if(r.isCustomElement(e))return!1;if("component"===e||/^[A-Z]/.test(e)||Le(e)||r.isBuiltInComponent&&r.isBuiltInComponent(e)||r.isNativeTag&&!r.isNativeTag(e))return!0;for(let e=0;e<t.length;e++){const r=t[e];if(6===r.type){if("is"===r.name&&r.value){if(r.value.content.startsWith("vue:"))return!0;if(et("COMPILER_IS_ON_ELEMENT",n,r.loc))return!0}}else{if("is"===r.name)return!0;if("bind"===r.name&&Ue(r.arg,"is")&&et("COMPILER_IS_ON_ELEMENT",n,r.loc))return!0}}}(o,u,e)&&(f=1)),{type:1,ns:a,tag:o,tagType:f,props:u,isSelfClosing:c,children:[],loc:yt(e,r),codegenNode:void 0}}function dt(e,t){const n=[],r=new Set;for(;e.source.length>0&&!Tt(e.source,">")&&!Tt(e.source,"/>");){if(Tt(e.source,"/")){_t(e,22),St(e,1),Et(e);continue}1===t&&_t(e,3);const i=ht(e,r);6===i.type&&i.value&&"class"===i.name&&(i.value.content=i.value.content.replace(/\s+/g," ").trim()),0===t&&n.push(i),/^[^\t\r\n\f />]/.test(e.source)&&_t(e,15),Et(e)}return n}function ht(e,t){const n=vt(e),r=/^[^\t\r\n\f />][^\t\r\n\f />=]*/.exec(e.source)[0];t.has(r)&&_t(e,2),t.add(r),"="===r[0]&&_t(e,19);{const t=/["'<]/g;let n;for(;n=t.exec(r);)_t(e,17,n.index)}let i;St(e,r.length),/^[\t\r\n\f ]*=/.test(e.source)&&(Et(e),St(e,1),Et(e),i=function(e){const t=vt(e);let n;const r=e.source[0],i='"'===r||"'"===r;if(i){St(e,1);const t=e.source.indexOf(r);-1===t?n=gt(e,e.source.length,4):(n=gt(e,t,4),St(e,1))}else{const t=/^[^\t\r\n\f >]+/.exec(e.source);if(!t)return;const r=/["'<=`]/g;let i;for(;i=r.exec(t[0]);)_t(e,18,i.index);n=gt(e,t[0].length,4)}return{content:n,isQuoted:i,loc:yt(e,t)}}(e),i||_t(e,13));const o=yt(e,n);if(!e.inVPre&&/^(v-[A-Za-z0-9-]|:|\.|@|#)/.test(r)){const t=/(?:^v-([a-z0-9-]+))?(?:(?::|^\.|^@|^#)(\[[^\]]+\]|[^\.]+))?(.+)?$/i.exec(r);let a,s=Tt(r,"."),l=t[1]||(s||Tt(r,":")?"bind":Tt(r,"@")?"on":"slot");if(t[2]){const i="slot"===l,o=r.lastIndexOf(t[2]),s=yt(e,wt(e,n,o),wt(e,n,o+t[2].length+(i&&t[3]||"").length));let u=t[2],c=!0;u.startsWith("[")?(c=!1,u.endsWith("]")?u=u.substr(1,u.length-2):(_t(e,27),u=u.substr(1))):i&&(u+=t[3]||""),a={type:4,content:u,isStatic:c,constType:c?3:0,loc:s}}if(i&&i.isQuoted){const e=i.loc;e.start.offset++,e.start.column++,e.end=Ne(e.start,i.content),e.source=e.source.slice(1,-1)}const u=t[3]?t[3].substr(1).split("."):[];return s&&u.push("prop"),"bind"===l&&a&&u.includes("sync")&&et("COMPILER_V_BIND_SYNC",e,0,a.loc.source)&&(l="model",u.splice(u.indexOf("sync"),1)),{type:7,name:l,exp:i&&{type:4,content:i.content,isStatic:!1,constType:0,loc:i.loc},arg:a,modifiers:u,loc:o}}return!e.inVPre&&Tt(r,"v-")&&_t(e,26),{type:6,name:r,value:i&&{type:2,content:i.content,loc:i.loc},loc:o}}function pt(e,t){const[n,r]=e.options.delimiters,i=e.source.indexOf(r,n.length);if(-1===i)return void _t(e,25);const o=vt(e);St(e,n.length);const a=vt(e),s=vt(e),l=i-n.length,u=e.source.slice(0,l),c=gt(e,l,t),f=c.trim(),d=c.indexOf(f);return d>0&&Fe(a,u,d),Fe(s,u,l-(c.length-f.length-d)),St(e,r.length),{type:5,content:{type:4,isStatic:!1,constType:0,content:f,loc:yt(e,a,s)},loc:yt(e,o)}}function mt(e,t){const n=3===t?["]]>"]:["<",e.options.delimiters[0]];let r=e.source.length;for(let t=0;t<n.length;t++){const i=e.source.indexOf(n[t],1);-1!==i&&r>i&&(r=i)}const i=vt(e);return{type:2,content:gt(e,r,t),loc:yt(e,i)}}function gt(e,t,n){const r=e.source.slice(0,t);return St(e,t),2===n||3===n||-1===r.indexOf("&")?r:e.options.decodeEntities(r,4===n)}function vt(e){const{column:t,line:n,offset:r}=e;return{column:t,line:n,offset:r}}function yt(e,t,n){return{start:t,end:n=n||vt(e),source:e.originalSource.slice(t.offset,n.offset)}}function bt(e){return e[e.length-1]}function Tt(e,t){return e.startsWith(t)}function St(e,t){const{source:n}=e;Fe(e,n,t),e.source=n.slice(t)}function Et(e){const t=/^[\t\r\n\f ]+/.exec(e.source);t&&St(e,t[0].length)}function wt(e,t,n){return Ne(t,e.originalSource.slice(t.offset,n),n)}function _t(e,t,n,r=vt(e)){n&&(r.offset+=n,r.column+=n),e.options.onError(P(t,{start:r,end:r,source:""}))}function At(e,t,n){const r=e.source;switch(t){case 0:if(Tt(r,"</"))for(let e=n.length-1;e>=0;--e)if(xt(r,n[e].tag))return!0;break;case 1:case 2:{const e=bt(n);if(e&&xt(r,e.tag))return!0;break}case 3:if(Tt(r,"]]>"))return!0}return!r}function xt(e,t){return Tt(e,"</")&&e.substr(2,t.length).toLowerCase()===t.toLowerCase()&&/[\t\r\n\f />]/.test(e[2+t.length]||">")}function kt(e,t){Pt(e,t,Lt(e,e.children[0]))}function Lt(e,t){const{children:n}=e;return 1===n.length&&1===t.type&&!We(t)}function Pt(e,t,n=!1){let r=!0;const{children:i}=e,o=i.length;let a=0;for(let e=0;e<i.length;e++){const o=i[e];if(1===o.type&&0===o.tagType){const e=n?0:Ct(o,t);if(e>0){if(e<3&&(r=!1),e>=2){o.codegenNode.patchFlag="-1",o.codegenNode=t.hoist(o.codegenNode),a++;continue}}else{const e=o.codegenNode;if(13===e.type){const n=Dt(e);if((!n||512===n||1===n)&&Ot(o,t)>=2){const n=It(o);n&&(e.props=t.hoist(n))}e.dynamicProps&&(e.dynamicProps=t.hoist(e.dynamicProps))}}}else if(12===o.type){const e=Ct(o.content,t);e>0&&(e<3&&(r=!1),e>=2&&(o.codegenNode=t.hoist(o.codegenNode),a++))}if(1===o.type){const e=1===o.tagType;e&&t.scopes.vSlot++,Pt(o,t),e&&t.scopes.vSlot--}else if(11===o.type)Pt(o,t,1===o.children.length);else if(9===o.type)for(let e=0;e<o.branches.length;e++)Pt(o.branches[e],t,1===o.branches[e].children.length)}r&&a&&t.transformHoist&&t.transformHoist(i,t,e),a&&a===o&&1===e.type&&0===e.tagType&&e.codegenNode&&13===e.codegenNode.type&&g(e.codegenNode.children)&&(e.codegenNode.children=t.hoist(ye(e.codegenNode.children)))}function Ct(e,t){const{constantCache:n}=t;switch(e.type){case 1:if(0!==e.tagType)return 0;const r=n.get(e);if(void 0!==r)return r;const i=e.codegenNode;if(13!==i.type)return 0;if(Dt(i))return n.set(e,0),0;{let r=3;const o=Ot(e,t);if(0===o)return n.set(e,0),0;o<r&&(r=o);for(let i=0;i<e.children.length;i++){const o=Ct(e.children[i],t);if(0===o)return n.set(e,0),0;o<r&&(r=o)}if(r>1)for(let i=0;i<e.props.length;i++){const o=e.props[i];if(7===o.type&&"bind"===o.name&&o.exp){const i=Ct(o.exp,t);if(0===i)return n.set(e,0),0;i<r&&(r=i)}}return i.isBlock&&(t.removeHelper(D),t.removeHelper(Ke(t.inSSR,i.isComponent)),i.isBlock=!1,t.helper($e(t.inSSR,i.isComponent))),n.set(e,r),r}case 2:case 3:return 3;case 9:case 11:case 10:return 0;case 5:case 12:return Ct(e.content,t);case 4:return e.constType;case 8:let o=3;for(let n=0;n<e.children.length;n++){const r=e.children[n];if(v(r)||y(r))continue;const i=Ct(r,t);if(0===i)return 0;i<o&&(o=i)}return o;default:return 0}}const Mt=new Set([J,ee,te,ne]);function Rt(e,t){if(14===e.type&&!v(e.callee)&&Mt.has(e.callee)){const n=e.arguments[0];if(4===n.type)return Ct(n,t);if(14===n.type)return Rt(n,t)}return 0}function Ot(e,t){let n=3;const r=It(e);if(r&&15===r.type){const{properties:e}=r;for(let r=0;r<e.length;r++){const{key:i,value:o}=e[r],a=Ct(i,t);if(0===a)return a;let s;if(a<n&&(n=a),s=4===o.type?Ct(o,t):14===o.type?Rt(o,t):0,0===s)return s;s<n&&(n=s)}}return n}function It(e){const t=e.codegenNode;if(13===t.type)return t.props}function Dt(e){const t=e.patchFlag;return t?parseInt(t,10):void 0}function Nt(e,t){t.currentNode=e;const{nodeTransforms:n}=t,r=[];for(let i=0;i<n.length;i++){const o=n[i](e,t);if(o&&(g(o)?r.push(...o):r.push(o)),!t.currentNode)return;e=t.currentNode}switch(e.type){case 3:t.ssr||t.helper(U);break;case 5:t.ssr||t.helper(Y);break;case 9:for(let n=0;n<e.branches.length;n++)Nt(e.branches[n],t);break;case 10:case 11:case 1:case 0:!function(e,t){let n=0;const r=()=>{n--};for(;n<e.children.length;n++){const i=e.children[n];v(i)||(t.parent=e,t.childIndex=n,t.onNodeRemoved=r,Nt(i,t))}}(e,t)}t.currentNode=e;let i=r.length;for(;i--;)r[i]()}function Ft(e,t){const n=v(e)?t=>t===e:t=>e.test(t);return(e,r)=>{if(1===e.type){const{props:i}=e;if(3===e.tagType&&i.some(Ve))return;const o=[];for(let a=0;a<i.length;a++){const s=i[a];if(7===s.type&&n(s.name)){i.splice(a,1),a--;const n=t(e,s,r);n&&o.push(n)}}return o}}}const Bt="/*#__PURE__*/";function Gt(e,t,{helper:n,push:r,newline:i,isTS:o}){const a=n("filter"===t?K:"component"===t?j:$);for(let n=0;n<e.length;n++){let s=e[n];const l=s.endsWith("__self");l&&(s=s.slice(0,-6)),r(`const ${qe(s,t)} = ${a}(${JSON.stringify(s)}${l?", true":""})${o?"!":""}`),n<e.length-1&&i()}}function Ut(e,t){const n=e.length>3||!1;t.push("["),n&&t.indent(),Ht(e,t,n),n&&t.deindent(),t.push("]")}function Ht(e,t,n=!1,r=!0){const{push:i,newline:o}=t;for(let a=0;a<e.length;a++){const s=e[a];v(s)?i(s):g(s)?Ut(s,t):Vt(s,t),a<e.length-1&&(n?(r&&i(","),o()):r&&i(", "))}}function Vt(e,t){if(v(e))t.push(e);else if(y(e))t.push(t.helper(e));else switch(e.type){case 1:case 9:case 11:Vt(e.codegenNode,t);break;case 2:!function(e,t){t.push(JSON.stringify(e.content),e)}(e,t);break;case 4:jt(e,t);break;case 5:!function(e,t){const{push:n,helper:r,pure:i}=t;i&&n(Bt),n(`${r(Y)}(`),Vt(e.content,t),n(")")}(e,t);break;case 12:Vt(e.codegenNode,t);break;case 8:Wt(e,t);break;case 3:!function(e,t){const{push:n,helper:r,pure:i}=t;i&&n(Bt),n(`${r(U)}(${JSON.stringify(e.content)})`,e)}(e,t);break;case 13:!function(e,t){const{push:n,helper:r,pure:i}=t,{tag:o,props:a,children:s,patchFlag:l,dynamicProps:u,directives:c,isBlock:f,disableTracking:d,isComponent:h}=e;c&&n(r(Z)+"("),f&&n(`(${r(D)}(${d?"true":""}), `),i&&n(Bt),n(r(f?Ke(t.inSSR,h):$e(t.inSSR,h))+"(",e),Ht(function(e){let t=e.length;for(;t--&&null==e[t];);return e.slice(0,t+1).map((e=>e||"null"))}([o,a,s,l,u]),t),n(")"),f&&n(")"),c&&(n(", "),Vt(c,t),n(")"))}(e,t);break;case 14:!function(e,t){const{push:n,helper:r,pure:i}=t,o=v(e.callee)?e.callee:r(e.callee);i&&n(Bt),n(o+"(",e),Ht(e.arguments,t),n(")")}(e,t);break;case 15:!function(e,t){const{push:n,indent:r,deindent:i,newline:o}=t,{properties:a}=e;if(!a.length)return void n("{}",e);const s=a.length>1||!1;n(s?"{":"{ "),s&&r();for(let e=0;e<a.length;e++){const{key:r,value:i}=a[e];$t(r,t),n(": "),Vt(i,t),e<a.length-1&&(n(","),o())}s&&i(),n(s?"}":" }")}(e,t);break;case 17:!function(e,t){Ut(e.elements,t)}(e,t);break;case 18:!function(e,t){const{push:n,indent:r,deindent:i}=t,{params:o,returns:a,body:s,newline:l,isSlot:u}=e;u&&n(`_${me[ce]}(`),n("(",e),g(o)?Ht(o,t):o&&Vt(o,t),n(") => "),(l||s)&&(n("{"),r()),a?(l&&n("return "),g(a)?Ut(a,t):Vt(a,t)):s&&Vt(s,t),(l||s)&&(i(),n("}")),u&&(e.isNonScopedSlot&&n(", undefined, true"),n(")"))}(e,t);break;case 19:!function(e,t){const{test:n,consequent:r,alternate:i,newline:o}=e,{push:a,indent:s,deindent:l,newline:u}=t;if(4===n.type){const e=!Ce(n.content);e&&a("("),jt(n,t),e&&a(")")}else a("("),Vt(n,t),a(")");o&&s(),t.indentLevel++,o||a(" "),a("? "),Vt(r,t),t.indentLevel--,o&&u(),o||a(" "),a(": ");const c=19===i.type;c||t.indentLevel++,Vt(i,t),c||t.indentLevel--,o&&l(!0)}(e,t);break;case 20:!function(e,t){const{push:n,helper:r,indent:i,deindent:o,newline:a}=t;n(`_cache[${e.index}] || (`),e.isVNode&&(i(),n(`${r(se)}(-1),`),a()),n(`_cache[${e.index}] = `),Vt(e.value,t),e.isVNode&&(n(","),a(),n(`${r(se)}(1),`),a(),n(`_cache[${e.index}]`),o()),n(")")}(e,t);break;case 21:Ht(e.body,t,!0,!1)}}function jt(e,t){const{content:n,isStatic:r}=e;t.push(r?JSON.stringify(n):n,e)}function Wt(e,t){for(let n=0;n<e.children.length;n++){const r=e.children[n];v(r)?t.push(r):Vt(r,t)}}function $t(e,t){const{push:n}=t;8===e.type?(n("["),Wt(e,t),n("]")):e.isStatic?n(Ce(e.content)?e.content:JSON.stringify(e.content),e):n(`[${e.content}]`,e)}new RegExp("\\b"+"do,if,for,let,new,try,var,case,else,with,await,break,catch,class,const,super,throw,while,yield,delete,export,import,return,switch,default,extends,finally,continue,debugger,function,arguments,typeof,void".split(",").join("\\b|\\b")+"\\b");const Kt=Ft(/^(if|else|else-if)$/,((e,t,n)=>function(e,t,n,r){if(!("else"===t.name||t.exp&&t.exp.content.trim())){const r=t.exp?t.exp.loc:e.loc;n.onError(P(28,t.loc)),t.exp=Se("true",!1,r)}if("if"===t.name){const i=Zt(e,t),o={type:9,loc:e.loc,branches:[i]};if(n.replaceNode(o),r)return r(o,i,!0)}else{const i=n.parent.children;let o=i.indexOf(e);for(;o-- >=-1;){const a=i[o];if(!a||2!==a.type||a.content.trim().length){if(a&&9===a.type){n.removeNode();const i=Zt(e,t);a.branches.push(i);const o=r&&r(a,i,!1);Nt(i,n),o&&o(),n.currentNode=null}else n.onError(P(30,e.loc));break}n.removeNode(a)}}}(e,t,n,((e,t,r)=>{const i=n.parent.children;let o=i.indexOf(e),a=0;for(;o-- >=0;){const e=i[o];e&&9===e.type&&(a+=e.branches.length)}return()=>{r?e.codegenNode=Xt(t,a,n):(function(e){for(;;)if(19===e.type){if(19!==e.alternate.type)return e;e=e.alternate}else 20===e.type&&(e=e.value)}(e.codegenNode)).alternate=Xt(t,a+e.branches.length-1,n)}}))));function Zt(e,t){return{type:10,loc:e.loc,condition:"else"===t.name?void 0:t.exp,children:3!==e.tagType||Be(e,"for")?[e]:e.children,userKey:Ge(e,"key")}}function Xt(e,t,n){return e.condition?Ae(e.condition,zt(e,t,n),we(n.helper(U),['""',"true"])):zt(e,t,n)}function zt(e,t,n){const{helper:r}=n,i=Te("key",Se(`${t}`,!1,ge,2)),{children:o}=e,a=o[0];if(1!==o.length||1!==a.type){if(1===o.length&&11===a.type){const e=a.codegenNode;return ze(e,i,n),e}{let t=64;return ve(n,r(C),be([i]),o,t+"",void 0,void 0,!0,!1,!1,e.loc)}}{const e=a.codegenNode,t=14===(s=e).type&&s.callee===he?s.arguments[1].returns:s;return 13===t.type&&Ye(t,n),ze(t,i,n),e}var s}const qt=Ft("for",((e,t,n)=>{const{helper:r,removeHelper:i}=n;return function(e,t,n,r){if(!t.exp)return void n.onError(P(31,t.loc));const i=en(t.exp);if(!i)return void n.onError(P(32,t.loc));const{addIdentifiers:o,removeIdentifiers:a,scopes:s}=n,{source:l,value:u,key:c,index:f}=i,d={type:11,loc:t.loc,source:l,valueAlias:u,keyAlias:c,objectIndexAlias:f,parseResult:i,children:je(e)?e.children:[e]};n.replaceNode(d),s.vFor++;const h=r&&r(d);return()=>{s.vFor--,h&&h()}}(e,t,n,(t=>{const o=we(r(X),[t.source]),a=Be(e,"memo"),s=Ge(e,"key"),l=s&&(6===s.type?Se(s.value.content,!0):s.exp),u=s?Te("key",l):null,c=4===t.source.type&&t.source.constType>0,f=c?64:s?128:256;return t.codegenNode=ve(n,r(C),void 0,o,f+"",void 0,void 0,!0,!c,!1,e.loc),()=>{let s;const f=je(e),{children:d}=t,h=1!==d.length||1!==d[0].type,p=We(e)?e:f&&1===e.children.length&&We(e.children[0])?e.children[0]:null;if(p?(s=p.codegenNode,f&&u&&ze(s,u,n)):h?s=ve(n,r(C),u?be([u]):void 0,e.children,"64",void 0,void 0,!0,void 0,!1):(s=d[0].codegenNode,f&&u&&ze(s,u,n),s.isBlock!==!c&&(s.isBlock?(i(D),i(Ke(n.inSSR,s.isComponent))):i($e(n.inSSR,s.isComponent))),s.isBlock=!c,s.isBlock?(r(D),r(Ke(n.inSSR,s.isComponent))):r($e(n.inSSR,s.isComponent))),a){const e=_e(nn(t.parseResult,[Se("_cached")]));e.body={type:21,body:[Ee(["const _memo = (",a.exp,")"]),Ee(["if (_cached",...l?[" && _cached.key === ",l]:[],` && ${n.helperString(pe)}(_cached, _memo)) return _cached`]),Ee(["const _item = ",s]),Se("_item.memo = _memo"),Se("return _item")],loc:ge},o.arguments.push(e,Se("_cache"),Se(String(n.cached++)))}else o.arguments.push(_e(nn(t.parseResult),s,!0))}}))})),Yt=/([\s\S]*?)\s+(?:in|of)\s+([\s\S]*)/,Qt=/,([^,\}\]]*)(?:,([^,\}\]]*))?$/,Jt=/^\(|\)$/g;function en(e,t){const n=e.loc,r=e.content,i=r.match(Yt);if(!i)return;const[,o,a]=i,s={source:tn(n,a.trim(),r.indexOf(a,o.length)),value:void 0,key:void 0,index:void 0};let l=o.trim().replace(Jt,"").trim();const u=o.indexOf(l),c=l.match(Qt);if(c){l=l.replace(Qt,"").trim();const e=c[1].trim();let t;if(e&&(t=r.indexOf(e,u+l.length),s.key=tn(n,e,t)),c[2]){const i=c[2].trim();i&&(s.index=tn(n,i,r.indexOf(i,s.key?t+e.length:u+l.length)))}}return l&&(s.value=tn(n,l,u)),s}function tn(e,t,n){return Se(t,!1,De(e,n,t.length))}function nn({value:e,key:t,index:n},r=[]){return function(e){let t=e.length;for(;t--&&!e[t];);return e.slice(0,t+1).map(((e,t)=>e||Se("_".repeat(t+1),!1)))}([e,t,n,...r])}const rn=Se("undefined",!1),on=(e,t)=>{if(1===e.type&&(1===e.tagType||3===e.tagType)){const n=Be(e,"slot");if(n)return n.exp,t.scopes.vSlot++,()=>{t.scopes.vSlot--}}},an=(e,t,n)=>_e(e,t,!1,!0,t.length?t[0].loc:n);function sn(e,t,n=an){t.helper(ce);const{children:r,loc:i}=e,o=[],a=[];let s=t.scopes.vSlot>0||t.scopes.vFor>0;const l=Be(e,"slot",!0);if(l){const{arg:e,exp:t}=l;e&&!xe(e)&&(s=!0),o.push(Te(e||Se("default",!0),n(t,r,i)))}let u=!1,c=!1;const f=[],d=new Set;for(let e=0;e<r.length;e++){const i=r[e];let h;if(!je(i)||!(h=Be(i,"slot",!0))){3!==i.type&&f.push(i);continue}if(l){t.onError(P(37,h.loc));break}u=!0;const{children:p,loc:m}=i,{arg:g=Se("default",!0),exp:v,loc:y}=h;let b;xe(g)?b=g?g.content:"default":s=!0;const T=n(v,p,m);let S,E,w;if(S=Be(i,"if"))s=!0,a.push(Ae(S.exp,ln(g,T),rn));else if(E=Be(i,/^else(-if)?$/,!0)){let n,i=e;for(;i--&&(n=r[i],3===n.type););if(n&&je(n)&&Be(n,"if")){r.splice(e,1),e--;let t=a[a.length-1];for(;19===t.alternate.type;)t=t.alternate;t.alternate=E.exp?Ae(E.exp,ln(g,T),rn):ln(g,T)}else t.onError(P(30,E.loc))}else if(w=Be(i,"for")){s=!0;const e=w.parseResult||en(w.exp);e?a.push(we(t.helper(X),[e.source,_e(nn(e),ln(g,T),!0)])):t.onError(P(32,w.loc))}else{if(b){if(d.has(b)){t.onError(P(38,y));continue}d.add(b),"default"===b&&(c=!0)}o.push(Te(g,T))}}if(!l){const e=(e,r)=>{const o=n(e,r,i);return t.compatConfig&&(o.isNonScopedSlot=!0),Te("default",o)};u?f.length&&f.some((e=>cn(e)))&&(c?t.onError(P(39,f[0].loc)):o.push(e(void 0,f))):o.push(e(void 0,r))}const h=s?2:un(e.children)?3:1;let p=be(o.concat(Te("_",Se(h+"",!1))),i);return a.length&&(p=we(t.helper(q),[p,ye(a)])),{slots:p,hasDynamicSlots:s}}function ln(e,t){return be([Te("name",e),Te("fn",t)])}function un(e){for(let t=0;t<e.length;t++){const n=e[t];switch(n.type){case 1:if(2===n.tagType||un(n.children))return!0;break;case 9:if(un(n.branches))return!0;break;case 10:case 11:if(un(n.children))return!0}}return!1}function cn(e){return 2!==e.type&&12!==e.type||(2===e.type?!!e.content.trim():cn(e.content))}const fn=new WeakMap,dn=(e,t)=>function(){if(1!==(e=t.currentNode).type||0!==e.tagType&&1!==e.tagType)return;const{tag:n,props:r}=e,i=1===e.tagType;let o,a,s,l,u,c,f=i?function(e,t,n=!1){let{tag:r}=e;const i=gn(r),o=Ge(e,"is");if(o)if(i||Je("COMPILER_IS_ON_ELEMENT",t)){const e=6===o.type?o.value&&Se(o.value.content,!0):o.exp;if(e)return we(t.helper(W),[e])}else 6===o.type&&o.value.content.startsWith("vue:")&&(r=o.value.content.slice(4));const a=!i&&Be(e,"is");if(a&&a.exp)return we(t.helper(W),[a.exp]);const s=Le(r)||t.isBuiltInComponent(r);return s?(n||t.helper(s),s):(t.helper(j),t.components.add(r),qe(r,"component"))}(e,t):`"${n}"`,d=0,h=(e=>null!==e&&"object"==typeof e)(f)&&f.callee===W||f===M||f===R||!i&&("svg"===n||"foreignObject"===n||Ge(e,"key",!0));if(r.length>0){const n=hn(e,t);o=n.props,d=n.patchFlag,u=n.dynamicPropNames;const r=n.directives;c=r&&r.length?ye(r.map((e=>function(e,t){const n=[],r=fn.get(e);r?n.push(t.helperString(r)):(t.helper($),t.directives.add(e.name),n.push(qe(e.name,"directive")));const{loc:i}=e;if(e.exp&&n.push(e.exp),e.arg&&(e.exp||n.push("void 0"),n.push(e.arg)),Object.keys(e.modifiers).length){e.arg||(e.exp||n.push("void 0"),n.push("void 0"));const t=Se("true",!1,i);n.push(be(e.modifiers.map((e=>Te(e,t))),i))}return ye(n,e.loc)}(e,t)))):void 0}if(e.children.length>0)if(f===O&&(h=!0,d|=1024),i&&f!==M&&f!==O){const{slots:n,hasDynamicSlots:r}=sn(e,t);a=n,r&&(d|=1024)}else if(1===e.children.length&&f!==M){const n=e.children[0],r=n.type,i=5===r||8===r;i&&0===Ct(n,t)&&(d|=1),a=i||2===r?n:e.children}else a=e.children;0!==d&&(s=String(d),u&&u.length&&(l=function(e){let t="[";for(let n=0,r=e.length;n<r;n++)t+=JSON.stringify(e[n]),n<r-1&&(t+=", ");return t+"]"}(u))),e.codegenNode=ve(t,f,o,a,s,l,c,!!h,!1,i,e.loc)};function hn(e,t,n=e.props,r=!1){const{tag:i,loc:o}=e,a=1===e.tagType;let s=[];const l=[],u=[];let c=0,f=!1,d=!1,h=!1,m=!1,g=!1,v=!1;const T=[],S=({key:e,value:n})=>{if(xe(e)){const r=e.content,i=(e=>p.test(e))(r);if(a||!i||"onclick"===r.toLowerCase()||"onUpdate:modelValue"===r||b(r)||(m=!0),i&&b(r)&&(v=!0),20===n.type||(4===n.type||8===n.type)&&Ct(n,t)>0)return;"ref"===r?f=!0:"class"===r?d=!0:"style"===r?h=!0:"key"===r||T.includes(r)||T.push(r),!a||"class"!==r&&"style"!==r||T.includes(r)||T.push(r)}else g=!0};for(let c=0;c<n.length;c++){const d=n[c];if(6===d.type){const{loc:e,name:n,value:r}=d;let o=Se(r?r.content:"",!0,r?r.loc:e);if("ref"===n&&(f=!0),"is"===n&&(gn(i)||r&&r.content.startsWith("vue:")||Je("COMPILER_IS_ON_ELEMENT",t)))continue;s.push(Te(Se(n,!0,De(e,0,n.length)),o))}else{const{name:n,arg:c,exp:f,loc:h}=d,p="bind"===n,m="on"===n;if("slot"===n){a||t.onError(P(40,h));continue}if("once"===n||"memo"===n)continue;if("is"===n||p&&Ue(c,"is")&&(gn(i)||Je("COMPILER_IS_ON_ELEMENT",t)))continue;if(m&&r)continue;if(!c&&(p||m)){if(g=!0,f)if(s.length&&(l.push(be(pn(s),o)),s=[]),p){if(Je("COMPILER_V_BIND_OBJECT_ORDER",t)){l.unshift(f);continue}l.push(f)}else l.push({type:14,loc:h,callee:t.helper(re),arguments:[f]});else t.onError(P(p?34:35,h));continue}const v=t.directiveTransforms[n];if(v){const{props:n,needRuntime:i}=v(d,e,t);!r&&n.forEach(S),s.push(...n),i&&(u.push(d),y(i)&&fn.set(d,i))}else u.push(d)}6===d.type&&"ref"===d.name&&t.scopes.vFor>0&&et("COMPILER_V_FOR_REF",t,d.loc)&&s.push(Te(Se("refInFor",!0),Se("true",!1)))}let E;if(l.length?(s.length&&l.push(be(pn(s),o)),E=l.length>1?we(t.helper(Q),l,o):l[0]):s.length&&(E=be(pn(s),o)),g?c|=16:(d&&!a&&(c|=2),h&&!a&&(c|=4),T.length&&(c|=8),m&&(c|=32)),0!==c&&32!==c||!(f||v||u.length>0)||(c|=512),!t.inSSR&&E)switch(E.type){case 15:let e=-1,n=-1,r=!1;for(let t=0;t<E.properties.length;t++){const i=E.properties[t].key;xe(i)?"class"===i.content?e=t:"style"===i.content&&(n=t):i.isHandlerKey||(r=!0)}const i=E.properties[e],o=E.properties[n];r?E=we(t.helper(te),[E]):(i&&!xe(i.value)&&(i.value=we(t.helper(J),[i.value])),!o||xe(o.value)||!h&&17!==o.value.type||(o.value=we(t.helper(ee),[o.value])));break;case 14:break;default:E=we(t.helper(te),[we(t.helper(ne),[E])])}return{props:E,directives:u,patchFlag:c,dynamicPropNames:T}}function pn(e){const t=new Map,n=[];for(let r=0;r<e.length;r++){const i=e[r];if(8===i.key.type||!i.key.isStatic){n.push(i);continue}const o=i.key.content,a=t.get(o);a?("style"===o||"class"===o||o.startsWith("on"))&&mn(a,i):(t.set(o,i),n.push(i))}return n}function mn(e,t){17===e.value.type?e.value.elements.push(t.value):e.value=ye([e.value,t.value],e.loc)}function gn(e){return e[0].toLowerCase()+e.slice(1)==="component"}const vn=/-(\w)/g,yn=(e=>{const t=Object.create(null);return e=>t[e]||(t[e]=(e=>e.replace(vn,((e,t)=>t?t.toUpperCase():"")))(e))})(),bn=(e,t)=>{if(We(e)){const{children:n,loc:r}=e,{slotName:i,slotProps:o}=function(e,t){let n,r='"default"';const i=[];for(let t=0;t<e.props.length;t++){const n=e.props[t];6===n.type?n.value&&("name"===n.name?r=JSON.stringify(n.value.content):(n.name=yn(n.name),i.push(n))):"bind"===n.name&&Ue(n.arg,"name")?n.exp&&(r=n.exp):("bind"===n.name&&n.arg&&xe(n.arg)&&(n.arg.content=yn(n.arg.content)),i.push(n))}if(i.length>0){const{props:r,directives:o}=hn(e,t,i);n=r,o.length&&t.onError(P(36,o[0].loc))}return{slotName:r,slotProps:n}}(e,t),a=[t.prefixIdentifiers?"_ctx.$slots":"$slots",i];o&&a.push(o),n.length&&(o||a.push("{}"),a.push(_e([],n,!1,!1,r))),t.scopeId&&!t.slotted&&(o||a.push("{}"),n.length||a.push("undefined"),a.push("true")),e.codegenNode=we(t.helper(z),a,r)}},Tn=/^\s*([\w$_]+|\([^)]*?\))\s*=>|^\s*function(?:\s+[\w$]+)?\s*\(/,Sn=(e,t,n,r)=>{const{loc:i,modifiers:o,arg:a}=e;let s;if(e.exp||o.length||n.onError(P(35,i)),4===a.type)if(a.isStatic){const e=a.content;s=Se(x(E(e)),!0,a.loc)}else s=Ee([`${n.helperString(ae)}(`,a,")"]);else s=a,s.children.unshift(`${n.helperString(ae)}(`),s.children.push(")");let l=e.exp;l&&!l.content.trim()&&(l=void 0);let u=n.cacheHandlers&&!l&&!n.inVOnce;if(l){const e=Ie(l.content),t=!(e||Tn.test(l.content)),n=l.content.includes(";");(t||u&&e)&&(l=Ee([`${t?"$event":"(...args)"} => ${n?"{":"("}`,l,n?"}":")"]))}let c={props:[Te(s,l||Se("() => {}",!1,i))]};return r&&(c=r(c)),u&&(c.props[0].value=n.cache(c.props[0].value)),c.props.forEach((e=>e.key.isHandlerKey=!0)),c},En=(e,t,n)=>{const{exp:r,modifiers:i,loc:o}=e,a=e.arg;return 4!==a.type?(a.children.unshift("("),a.children.push(') || ""')):a.isStatic||(a.content=`${a.content} || ""`),i.includes("camel")&&(4===a.type?a.isStatic?a.content=E(a.content):a.content=`${n.helperString(ie)}(${a.content})`:(a.children.unshift(`${n.helperString(ie)}(`),a.children.push(")"))),n.inSSR||(i.includes("prop")&&wn(a,"."),i.includes("attr")&&wn(a,"^")),!r||4===r.type&&!r.content.trim()?(n.onError(P(34,o)),{props:[Te(a,Se("",!0,o))]}):{props:[Te(a,r)]}},wn=(e,t)=>{4===e.type?e.isStatic?e.content=t+e.content:e.content=`\`${t}\${${e.content}}\``:(e.children.unshift(`'${t}' + (`),e.children.push(")"))},_n=(e,t)=>{if(0===e.type||1===e.type||11===e.type||10===e.type)return()=>{const n=e.children;let r,i=!1;for(let e=0;e<n.length;e++){const t=n[e];if(He(t)){i=!0;for(let i=e+1;i<n.length;i++){const o=n[i];if(!He(o)){r=void 0;break}r||(r=n[e]={type:8,loc:t.loc,children:[t]}),r.children.push(" + ",o),n.splice(i,1),i--}}}if(i&&(1!==n.length||0!==e.type&&(1!==e.type||0!==e.tagType||e.props.find((e=>7===e.type&&!t.directiveTransforms[e.name]))||"template"===e.tag)))for(let e=0;e<n.length;e++){const r=n[e];if(He(r)||8===r.type){const i=[];2===r.type&&" "===r.content||i.push(r),t.ssr||0!==Ct(r,t)||i.push("1"),n[e]={type:12,content:r,loc:r.loc,codegenNode:we(t.helper(H),i)}}}}},An=new WeakSet,xn=(e,t)=>{if(1===e.type&&Be(e,"once",!0)){if(An.has(e)||t.inVOnce)return;return An.add(e),t.inVOnce=!0,t.helper(se),()=>{t.inVOnce=!1;const e=t.currentNode;e.codegenNode&&(e.codegenNode=t.cache(e.codegenNode,!0))}}},kn=(e,t,n)=>{const{exp:r,arg:i}=e;if(!r)return n.onError(P(41,e.loc)),Ln();const o=r.loc.source,a=4===r.type?r.content:o;if(n.bindingMetadata[o],!a.trim()||!Ie(a))return n.onError(P(42,r.loc)),Ln();const s=i||Se("modelValue",!0),l=i?xe(i)?`onUpdate:${i.content}`:Ee(['"onUpdate:" + ',i]):"onUpdate:modelValue";let u;u=Ee([(n.isTS?"($event: any)":"$event")+" => (",r," = $event)"]);const c=[Te(s,e.exp),Te(l,u)];if(e.modifiers.length&&1===t.tagType){const t=e.modifiers.map((e=>(Ce(e)?e:JSON.stringify(e))+": true")).join(", "),n=i?xe(i)?`${i.content}Modifiers`:Ee([i,' + "Modifiers"']):"modelModifiers";c.push(Te(n,Se(`{ ${t} }`,!1,e.loc,2)))}return Ln(c)};function Ln(e=[]){return{props:e}}const Pn=/[\w).+\-_$\]]/,Cn=(e,t)=>{Je("COMPILER_FILTER",t)&&(5===e.type&&Mn(e.content,t),1===e.type&&e.props.forEach((e=>{7===e.type&&"for"!==e.name&&e.exp&&Mn(e.exp,t)})))};function Mn(e,t){if(4===e.type)Rn(e,t);else for(let n=0;n<e.children.length;n++){const r=e.children[n];"object"==typeof r&&(4===r.type?Rn(r,t):8===r.type?Mn(e,t):5===r.type&&Mn(r.content,t))}}function Rn(e,t){const n=e.content;let r,i,o,a,s=!1,l=!1,u=!1,c=!1,f=0,d=0,h=0,p=0,m=[];for(o=0;o<n.length;o++)if(i=r,r=n.charCodeAt(o),s)39===r&&92!==i&&(s=!1);else if(l)34===r&&92!==i&&(l=!1);else if(u)96===r&&92!==i&&(u=!1);else if(c)47===r&&92!==i&&(c=!1);else if(124!==r||124===n.charCodeAt(o+1)||124===n.charCodeAt(o-1)||f||d||h){switch(r){case 34:l=!0;break;case 39:s=!0;break;case 96:u=!0;break;case 40:h++;break;case 41:h--;break;case 91:d++;break;case 93:d--;break;case 123:f++;break;case 125:f--}if(47===r){let e,t=o-1;for(;t>=0&&(e=n.charAt(t)," "===e);t--);e&&Pn.test(e)||(c=!0)}}else void 0===a?(p=o+1,a=n.slice(0,o).trim()):g();function g(){m.push(n.slice(p,o).trim()),p=o+1}if(void 0===a?a=n.slice(0,o).trim():0!==p&&g(),m.length){for(o=0;o<m.length;o++)a=On(a,m[o],t);e.content=a}}function On(e,t,n){n.helper(K);const r=t.indexOf("(");if(r<0)return n.filters.add(t),`${qe(t,"filter")}(${e})`;{const i=t.slice(0,r),o=t.slice(r+1);return n.filters.add(i),`${qe(i,"filter")}(${e}${")"!==o?","+o:o}`}}const In=new WeakSet,Dn=(e,t)=>{if(1===e.type){const n=Be(e,"memo");if(!n||In.has(e))return;return In.add(e),()=>{const r=e.codegenNode||t.currentNode.codegenNode;r&&13===r.type&&(1!==e.tagType&&Ye(r,t),e.codegenNode=we(t.helper(he),[n.exp,_e(void 0,r),"_cache",String(t.cached++)]))}}};function Nn(e,t={}){const n=t.onError||k,r="module"===t.mode;!0===t.prefixIdentifiers?n(P(46)):r&&n(P(47)),t.cacheHandlers&&n(P(48)),t.scopeId&&!r&&n(P(49));const i=v(e)?function(e,t={}){const n=function(e,t){const n=m({},rt);let r;for(r in t)n[r]=void 0===t[r]?rt[r]:t[r];return{options:n,column:1,line:1,offset:0,originalSource:e,source:e,inPre:!1,inVPre:!1,onWarn:n.onWarn}}(e,t),r=vt(n);return function(e,t=ge){return{type:0,children:e,helpers:[],components:[],directives:[],hoists:[],imports:[],cached:0,temps:0,codegenNode:void 0,loc:t}}(it(n,0,[]),yt(n,r))}(e,t):e,[o,a]=[[xn,Kt,Dn,qt,Cn,bn,dn,on,_n],{on:Sn,bind:En,model:kn}];return function(e,t){const n=function(e,{filename:t="",prefixIdentifiers:n=!1,hoistStatic:r=!1,cacheHandlers:i=!1,nodeTransforms:o=[],directiveTransforms:a={},transformHoist:s=null,isBuiltInComponent:l=d,isCustomElement:u=d,expressionPlugins:c=[],scopeId:h=null,slotted:p=!0,ssr:m=!1,inSSR:g=!1,ssrCssVars:y="",bindingMetadata:b=f,inline:T=!1,isTS:S=!1,onError:w=k,onWarn:_=L,compatConfig:x}){const P=t.replace(/\?.*$/,"").match(/([^/\\]+)\.\w+$/),C={selfName:P&&A(E(P[1])),prefixIdentifiers:n,hoistStatic:r,cacheHandlers:i,nodeTransforms:o,directiveTransforms:a,transformHoist:s,isBuiltInComponent:l,isCustomElement:u,expressionPlugins:c,scopeId:h,slotted:p,ssr:m,inSSR:g,ssrCssVars:y,bindingMetadata:b,inline:T,isTS:S,onError:w,onWarn:_,compatConfig:x,root:e,helpers:new Map,components:new Set,directives:new Set,hoists:[],imports:[],constantCache:new Map,temps:0,cached:0,identifiers:Object.create(null),scopes:{vFor:0,vSlot:0,vPre:0,vOnce:0},parent:null,currentNode:e,childIndex:0,inVOnce:!1,helper(e){const t=C.helpers.get(e)||0;return C.helpers.set(e,t+1),e},removeHelper(e){const t=C.helpers.get(e);if(t){const n=t-1;n?C.helpers.set(e,n):C.helpers.delete(e)}},helperString:e=>`_${me[C.helper(e)]}`,replaceNode(e){C.parent.children[C.childIndex]=C.currentNode=e},removeNode(e){const t=C.parent.children,n=e?t.indexOf(e):C.currentNode?C.childIndex:-1;e&&e!==C.currentNode?C.childIndex>n&&(C.childIndex--,C.onNodeRemoved()):(C.currentNode=null,C.onNodeRemoved()),C.parent.children.splice(n,1)},onNodeRemoved:()=>{},addIdentifiers(e){},removeIdentifiers(e){},hoist(e){v(e)&&(e=Se(e)),C.hoists.push(e);const t=Se(`_hoisted_${C.hoists.length}`,!1,e.loc,2);return t.hoisted=e,t},cache:(e,t=!1)=>function(e,t,n=!1){return{type:20,index:e,value:t,isVNode:n,loc:ge}}(C.cached++,e,t)};return C.filters=new Set,C}(e,t);Nt(e,n),t.hoistStatic&&kt(e,n),t.ssr||function(e,t){const{helper:n}=t,{children:r}=e;if(1===r.length){const n=r[0];if(Lt(e,n)&&n.codegenNode){const r=n.codegenNode;13===r.type&&Ye(r,t),e.codegenNode=r}else e.codegenNode=n}else if(r.length>1){let r=64;e.codegenNode=ve(t,n(C),void 0,e.children,r+"",void 0,void 0,!0,void 0,!1)}}(e,n),e.helpers=[...n.helpers.keys()],e.components=[...n.components],e.directives=[...n.directives],e.imports=n.imports,e.hoists=n.hoists,e.temps=n.temps,e.cached=n.cached,e.filters=[...n.filters]}(i,m({},t,{prefixIdentifiers:!1,nodeTransforms:[...o,...t.nodeTransforms||[]],directiveTransforms:m({},a,t.directiveTransforms||{})})),function(e,t={}){const n=function(e,{mode:t="function",prefixIdentifiers:n="module"===t,sourceMap:r=!1,filename:i="template.vue.html",scopeId:o=null,optimizeImports:a=!1,runtimeGlobalName:s="Vue",runtimeModuleName:l="vue",ssr:u=!1,isTS:c=!1,inSSR:f=!1}){const d={mode:t,prefixIdentifiers:n,sourceMap:r,filename:i,scopeId:o,optimizeImports:a,runtimeGlobalName:s,runtimeModuleName:l,ssr:u,isTS:c,inSSR:f,source:e.loc.source,code:"",column:1,line:1,offset:0,indentLevel:0,pure:!1,map:void 0,helper:e=>`_${me[e]}`,push(e,t){d.code+=e},indent(){h(++d.indentLevel)},deindent(e=!1){e?--d.indentLevel:h(--d.indentLevel)},newline(){h(d.indentLevel)}};function h(e){d.push("\n"+" ".repeat(e))}return d}(e,t);t.onContextCreated&&t.onContextCreated(n);const{mode:r,push:i,prefixIdentifiers:o,indent:a,deindent:s,newline:l,scopeId:u,ssr:c}=n,f=e.helpers.length>0,d=!o&&"module"!==r;if(function(e,t){const{ssr:n,prefixIdentifiers:r,push:i,newline:o,runtimeModuleName:a,runtimeGlobalName:s}=t,l=s;e.helpers.length>0&&(i(`const _Vue = ${l}\n`),e.hoists.length)&&i(`const { ${[B,G,U,H,V].filter((t=>e.helpers.includes(t))).map((e=>`${me[e]}: _${me[e]}`)).join(", ")} } = _Vue\n`),function(e,t){if(!e.length)return;t.pure=!0;const{push:n,newline:r,helper:i,scopeId:o,mode:a}=t;r(),e.forEach(((e,i)=>{e&&(n(`const _hoisted_${i+1} = `),Vt(e,t),r())})),t.pure=!1}(e.hoists,t),o(),i("return ")}(e,n),i(`function ${c?"ssrRender":"render"}(${(c?["_ctx","_push","_parent","_attrs"]:["_ctx","_cache"]).join(", ")}) {`),a(),d&&(i("with (_ctx) {"),a(),f&&(i(`const { ${e.helpers.map((e=>`${me[e]}: _${me[e]}`)).join(", ")} } = _Vue`),i("\n"),l())),e.components.length&&(Gt(e.components,"component",n),(e.directives.length||e.temps>0)&&l()),e.directives.length&&(Gt(e.directives,"directive",n),e.temps>0&&l()),e.filters&&e.filters.length&&(l(),Gt(e.filters,"filter",n),l()),e.temps>0){i("let ");for(let t=0;t<e.temps;t++)i(`${t>0?", ":""}_temp${t}`)}return(e.components.length||e.directives.length||e.temps)&&(i("\n"),l()),c||i("return "),e.codegenNode?Vt(e.codegenNode,n):i("null"),d&&(s(),i("}")),s(),i("}"),{ast:e,code:n.code,preamble:"",map:n.map?n.map.toJSON():void 0}}(i,m({},t,{prefixIdentifiers:!1}))}const Fn=Symbol(""),Bn=Symbol(""),Gn=Symbol(""),Un=Symbol(""),Hn=Symbol(""),Vn=Symbol(""),jn=Symbol(""),Wn=Symbol(""),$n=Symbol(""),Kn=Symbol("");var Zn;let Xn;Zn={[Fn]:"vModelRadio",[Bn]:"vModelCheckbox",[Gn]:"vModelText",[Un]:"vModelSelect",[Hn]:"vModelDynamic",[Vn]:"withModifiers",[jn]:"withKeys",[Wn]:"vShow",[$n]:"Transition",[Kn]:"TransitionGroup"},Object.getOwnPropertySymbols(Zn).forEach((e=>{me[e]=Zn[e]}));const zn=o("style,iframe,script,noscript",!0),qn={isVoidTag:c,isNativeTag:e=>l(e)||u(e),isPreTag:e=>"pre"===e,decodeEntities:function(e,t=!1){return Xn||(Xn=document.createElement("div")),t?(Xn.innerHTML=`<div foo="${e.replace(/"/g,""")}">`,Xn.children[0].getAttribute("foo")):(Xn.innerHTML=e,Xn.textContent)},isBuiltInComponent:e=>ke(e,"Transition")?$n:ke(e,"TransitionGroup")?Kn:void 0,getNamespace(e,t){let n=t?t.ns:0;if(t&&2===n)if("annotation-xml"===t.tag){if("svg"===e)return 1;t.props.some((e=>6===e.type&&"encoding"===e.name&&null!=e.value&&("text/html"===e.value.content||"application/xhtml+xml"===e.value.content)))&&(n=0)}else/^m(?:[ions]|text)$/.test(t.tag)&&"mglyph"!==e&&"malignmark"!==e&&(n=0);else t&&1===n&&("foreignObject"!==t.tag&&"desc"!==t.tag&&"title"!==t.tag||(n=0));if(0===n){if("svg"===e)return 1;if("math"===e)return 2}return n},getTextMode({tag:e,ns:t}){if(0===t){if("textarea"===e||"title"===e)return 1;if(zn(e))return 2}return 0}},Yn=(e,t)=>{const n=function(e){const t={};return e.split(a).forEach((e=>{if(e){const n=e.split(s);n.length>1&&(t[n[0].trim()]=n[1].trim())}})),t}(e);return Se(JSON.stringify(n),!1,t,3)};function Qn(e,t){return P(e,t)}const Jn=o("passive,once,capture"),er=o("stop,prevent,self,ctrl,shift,alt,meta,exact,middle"),tr=o("left,right"),nr=o("onkeyup,onkeydown,onkeypress",!0),rr=(e,t)=>xe(e)&&"onclick"===e.content.toLowerCase()?Se(t,!0):4!==e.type?Ee(["(",e,`) === "onClick" ? "${t}" : (`,e,")"]):e,ir=(e,t)=>{1!==e.type||0!==e.tagType||"script"!==e.tag&&"style"!==e.tag||(t.onError(Qn(60,e.loc)),t.removeNode())},or=[e=>{1===e.type&&e.props.forEach(((t,n)=>{6===t.type&&"style"===t.name&&t.value&&(e.props[n]={type:7,name:"bind",arg:Se("style",!0,t.loc),exp:Yn(t.value.content,t.loc),modifiers:[],loc:t.loc})}))}],ar={cloak:()=>({props:[]}),html:(e,t,n)=>{const{exp:r,loc:i}=e;return r||n.onError(Qn(50,i)),t.children.length&&(n.onError(Qn(51,i)),t.children.length=0),{props:[Te(Se("innerHTML",!0,i),r||Se("",!0))]}},text:(e,t,n)=>{const{exp:r,loc:i}=e;return r||n.onError(Qn(52,i)),t.children.length&&(n.onError(Qn(53,i)),t.children.length=0),{props:[Te(Se("textContent",!0),r?we(n.helperString(Y),[r],i):Se("",!0))]}},model:(e,t,n)=>{const r=kn(e,t,n);if(!r.props.length||1===t.tagType)return r;e.arg&&n.onError(Qn(55,e.arg.loc));const{tag:i}=t,o=n.isCustomElement(i);if("input"===i||"textarea"===i||"select"===i||o){let a=Gn,s=!1;if("input"===i||o){const r=Ge(t,"type");if(r){if(7===r.type)a=Hn;else if(r.value)switch(r.value.content){case"radio":a=Fn;break;case"checkbox":a=Bn;break;case"file":s=!0,n.onError(Qn(56,e.loc))}}else(function(e){return e.props.some((e=>!(7!==e.type||"bind"!==e.name||e.arg&&4===e.arg.type&&e.arg.isStatic)))})(t)&&(a=Hn)}else"select"===i&&(a=Un);s||(r.needRuntime=n.helper(a))}else n.onError(Qn(54,e.loc));return r.props=r.props.filter((e=>!(4===e.key.type&&"modelValue"===e.key.content))),r},on:(e,t,n)=>Sn(e,0,n,(t=>{const{modifiers:r}=e;if(!r.length)return t;let{key:i,value:o}=t.props[0];const{keyModifiers:a,nonKeyModifiers:s,eventOptionModifiers:l}=((e,t,n,r)=>{const i=[],o=[],a=[];for(let r=0;r<t.length;r++){const s=t[r];"native"===s&&et("COMPILER_V_ON_NATIVE",n)||Jn(s)?a.push(s):tr(s)?xe(e)?nr(e.content)?i.push(s):o.push(s):(i.push(s),o.push(s)):er(s)?o.push(s):i.push(s)}return{keyModifiers:i,nonKeyModifiers:o,eventOptionModifiers:a}})(i,r,n,e.loc);if(s.includes("right")&&(i=rr(i,"onContextmenu")),s.includes("middle")&&(i=rr(i,"onMouseup")),s.length&&(o=we(n.helper(Vn),[o,JSON.stringify(s)])),!a.length||xe(i)&&!nr(i.content)||(o=we(n.helper(jn),[o,JSON.stringify(a)])),l.length){const e=l.map(A).join("");i=xe(i)?Se(`${i.content}${e}`,!0):Ee(["(",i,`) + "${e}"`])}return{props:[Te(i,o)]}})),show:(e,t,n)=>{const{exp:r,loc:i}=e;return r||n.onError(Qn(58,i)),{props:[],needRuntime:n.helper(Wn)}}},sr=Object.create(null);(0,i.registerRuntimeCompiler)((function(e,t){if(!v(e)){if(!e.nodeType)return d;e=e.innerHTML}const n=e,i=sr[n];if(i)return i;if("#"===e[0]){const t=document.querySelector(e);e=t?t.innerHTML:""}const{code:o}=function(e,t={}){return Nn(e,m({},qn,t,{nodeTransforms:[ir,...or,...t.nodeTransforms||[]],directiveTransforms:m({},ar,t.directiveTransforms||{}),transformHoist:null}))}(e,m({hoistStatic:!0,onError:void 0,onWarn:d},t)),a=new Function("Vue",o)(r);return a._rc=!0,sr[n]=a}))}}]);