From d532b70eb13def2362e594536c7e884207b78331 Mon Sep 17 00:00:00 2001 From: shiyiya Date: Sat, 8 Jun 2024 07:06:16 +0000 Subject: [PATCH] deploy: b2635ada5d6568c5ea96c8c4f1c371836cffce37 --- 404.html | 2 +- index.html | 2 +- report.html | 4 +- ...53bd2.chunk.css => 395.44d53bd2.chunk.css} | 0 ...ad2b5.chunk.css => 410.b11ad2b5.chunk.css} | 0 ...1750b.chunk.css => 562.7371750b.chunk.css} | 0 ...4c8dc.chunk.css => 566.cf24c8dc.chunk.css} | 0 ...d4c87.chunk.css => 636.f1cd4c87.chunk.css} | 0 ...96a63.chunk.css => 649.e3e96a63.chunk.css} | 0 ...bdb91.chunk.css => 713.fb6bdb91.chunk.css} | 0 ...0a6412.chunk.css => 86.690a6412.chunk.css} | 0 static/js/122.3bda5e5a.chunk.js | 2 + ....txt => 122.3bda5e5a.chunk.js.LICENSE.txt} | 0 static/js/122.a3590436.chunk.js | 2 - static/js/197.129409a0.chunk.js | 1 - static/js/197.6e0862f3.chunk.js | 1 + static/js/207.6b4a7248.js | 172 ++++++++++++++++++ ...ICENSE.txt => 207.6b4a7248.js.LICENSE.txt} | 0 static/js/279.7c7bed31.chunk.js | 2 - static/js/291.d99b0865.chunk.js | 1 - static/js/395.5820e30a.chunk.js | 2 + ....txt => 395.5820e30a.chunk.js.LICENSE.txt} | 0 static/js/410.b3648545.chunk.js | 2 + ....txt => 410.b3648545.chunk.js.LICENSE.txt} | 0 static/js/413.2f326699.chunk.js | 2 + ....txt => 413.2f326699.chunk.js.LICENSE.txt} | 0 ...2c2a689.chunk.js => 459.b4f44b26.chunk.js} | 2 +- static/js/467.4fb76faf.chunk.js | 1 + static/js/498.43c164e2.chunk.js | 1 - static/js/513.9cc80aee.chunk.js | 2 - ...bfd0ef4.chunk.js => 528.6139713c.chunk.js} | 2 +- static/js/528.e84cf917.chunk.js | 1 - static/js/562.2e0e6596.chunk.js | 1 + static/js/566.d8e07940.chunk.js | 1 + static/js/570.a518d501.chunk.js | 2 - static/js/636.e8f05cd5.chunk.js | 2 + ....txt => 636.e8f05cd5.chunk.js.LICENSE.txt} | 0 static/js/647.94cc1f9d.chunk.js | 2 - static/js/649.b5ca47bd.chunk.js | 2 + ....txt => 649.b5ca47bd.chunk.js.LICENSE.txt} | 0 ...769a8a5.chunk.js => 656.87222b9f.chunk.js} | 2 +- static/js/713.7b297f52.chunk.js | 2 + ....txt => 713.7b297f52.chunk.js.LICENSE.txt} | 0 static/js/794.5cb5dcd7.chunk.js | 1 + static/js/794.c990a0bc.chunk.js | 1 - static/js/850.00c08f62.chunk.js | 2 - static/js/86.ee8ce94b.chunk.js | 1 + static/js/881.554949ca.js | 172 ------------------ static/js/893.aa844a9b.chunk.js | 1 - static/js/963.00a6a427.chunk.js | 2 - static/js/app.20ff673b.js | 1 - static/js/app.5cfb6921.js | 1 + ...666b944.chunk.js => hls.b82da4a7.chunk.js} | 2 +- static/js/markdown-editor.3cad080b.chunk.js | 1 - static/js/markdown-editor.c53afd16.chunk.js | 1 + static/js/oplayer.3915c8e9.chunk.js | 1 - static/js/oplayer.3d5c4f7c.chunk.js | 1 + ... pnpm.devtools-detector.86a31839.chunk.js} | 2 +- ...0c786b16.js => pnpm.lru-cache.8b93174e.js} | 2 +- ....js => pnpm.m3u8-parser.c71522df.chunk.js} | 4 +- ...m3u8-parser.c71522df.chunk.js.LICENSE.txt} | 0 ...ea8a7f93.js => pnpm.react-dom.82ae3bb8.js} | 4 +- ...=> pnpm.react-dom.82ae3bb8.js.LICENSE.txt} | 0 static/js/runtime.85e336dc.js | 1 - static/js/runtime.e7fe2209.js | 1 + 65 files changed, 210 insertions(+), 210 deletions(-) rename static/css/{647.44d53bd2.chunk.css => 395.44d53bd2.chunk.css} (100%) rename static/css/{513.b11ad2b5.chunk.css => 410.b11ad2b5.chunk.css} (100%) rename static/css/{498.7371750b.chunk.css => 562.7371750b.chunk.css} (100%) rename static/css/{893.cf24c8dc.chunk.css => 566.cf24c8dc.chunk.css} (100%) rename static/css/{279.f1cd4c87.chunk.css => 636.f1cd4c87.chunk.css} (100%) rename static/css/{850.e3e96a63.chunk.css => 649.e3e96a63.chunk.css} (100%) rename static/css/{570.fb6bdb91.chunk.css => 713.fb6bdb91.chunk.css} (100%) rename static/css/{528.690a6412.chunk.css => 86.690a6412.chunk.css} (100%) create mode 100644 static/js/122.3bda5e5a.chunk.js rename static/js/{122.a3590436.chunk.js.LICENSE.txt => 122.3bda5e5a.chunk.js.LICENSE.txt} (100%) delete mode 100644 static/js/122.a3590436.chunk.js delete mode 100644 static/js/197.129409a0.chunk.js create mode 100644 static/js/197.6e0862f3.chunk.js create mode 100644 static/js/207.6b4a7248.js rename static/js/{881.554949ca.js.LICENSE.txt => 207.6b4a7248.js.LICENSE.txt} (100%) delete mode 100644 static/js/279.7c7bed31.chunk.js delete mode 100644 static/js/291.d99b0865.chunk.js create mode 100644 static/js/395.5820e30a.chunk.js rename static/js/{279.7c7bed31.chunk.js.LICENSE.txt => 395.5820e30a.chunk.js.LICENSE.txt} (100%) create mode 100644 static/js/410.b3648545.chunk.js rename static/js/{513.9cc80aee.chunk.js.LICENSE.txt => 410.b3648545.chunk.js.LICENSE.txt} (100%) create mode 100644 static/js/413.2f326699.chunk.js rename static/js/{963.00a6a427.chunk.js.LICENSE.txt => 413.2f326699.chunk.js.LICENSE.txt} (100%) rename static/js/{271.a2c2a689.chunk.js => 459.b4f44b26.chunk.js} (78%) create mode 100644 static/js/467.4fb76faf.chunk.js delete mode 100644 static/js/498.43c164e2.chunk.js delete mode 100644 static/js/513.9cc80aee.chunk.js rename static/js/{147.8bfd0ef4.chunk.js => 528.6139713c.chunk.js} (92%) delete mode 100644 static/js/528.e84cf917.chunk.js create mode 100644 static/js/562.2e0e6596.chunk.js create mode 100644 static/js/566.d8e07940.chunk.js delete mode 100644 static/js/570.a518d501.chunk.js create mode 100644 static/js/636.e8f05cd5.chunk.js rename static/js/{570.a518d501.chunk.js.LICENSE.txt => 636.e8f05cd5.chunk.js.LICENSE.txt} (100%) delete mode 100644 static/js/647.94cc1f9d.chunk.js create mode 100644 static/js/649.b5ca47bd.chunk.js rename static/js/{647.94cc1f9d.chunk.js.LICENSE.txt => 649.b5ca47bd.chunk.js.LICENSE.txt} (100%) rename static/js/{656.d769a8a5.chunk.js => 656.87222b9f.chunk.js} (87%) create mode 100644 static/js/713.7b297f52.chunk.js rename static/js/{850.00c08f62.chunk.js.LICENSE.txt => 713.7b297f52.chunk.js.LICENSE.txt} (100%) create mode 100644 static/js/794.5cb5dcd7.chunk.js delete mode 100644 static/js/794.c990a0bc.chunk.js delete mode 100644 static/js/850.00c08f62.chunk.js create mode 100644 static/js/86.ee8ce94b.chunk.js delete mode 100644 static/js/881.554949ca.js delete mode 100644 static/js/893.aa844a9b.chunk.js delete mode 100644 static/js/963.00a6a427.chunk.js delete mode 100644 static/js/app.20ff673b.js create mode 100644 static/js/app.5cfb6921.js rename static/js/{hls.b666b944.chunk.js => hls.b82da4a7.chunk.js} (70%) delete mode 100644 static/js/markdown-editor.3cad080b.chunk.js create mode 100644 static/js/markdown-editor.c53afd16.chunk.js delete mode 100644 static/js/oplayer.3915c8e9.chunk.js create mode 100644 static/js/oplayer.3d5c4f7c.chunk.js rename static/js/{pnpm.devtools-detector.2f48b910.chunk.js => pnpm.devtools-detector.86a31839.chunk.js} (99%) rename static/js/{pnpm.lru-cache.0c786b16.js => pnpm.lru-cache.8b93174e.js} (99%) rename static/js/{pnpm.m3u8-parser.9cd34530.chunk.js => pnpm.m3u8-parser.c71522df.chunk.js} (98%) rename static/js/{pnpm.m3u8-parser.9cd34530.chunk.js.LICENSE.txt => pnpm.m3u8-parser.c71522df.chunk.js.LICENSE.txt} (100%) rename static/js/{pnpm.react-dom.ea8a7f93.js => pnpm.react-dom.82ae3bb8.js} (99%) rename static/js/{pnpm.react-dom.ea8a7f93.js.LICENSE.txt => pnpm.react-dom.82ae3bb8.js.LICENSE.txt} (100%) delete mode 100644 static/js/runtime.85e336dc.js create mode 100644 static/js/runtime.e7fe2209.js diff --git a/404.html b/404.html index e087fd93..868e4d00 100644 --- a/404.html +++ b/404.html @@ -1 +1 @@ -UPV - free animes no ads
\ No newline at end of file +UPV - free animes no ads
\ No newline at end of file diff --git a/index.html b/index.html index e087fd93..868e4d00 100644 --- a/index.html +++ b/index.html @@ -1 +1 @@ -UPV - free animes no ads
\ No newline at end of file +UPV - free animes no ads
\ No newline at end of file diff --git a/report.html b/report.html index 574832bf..10901afe 100644 --- a/report.html +++ b/report.html @@ -3,7 +3,7 @@ - @web/index [19 May 2024 at 06:37] + @web/index [8 Jun 2024 at 07:06] diff --git a/static/css/647.44d53bd2.chunk.css b/static/css/395.44d53bd2.chunk.css similarity index 100% rename from static/css/647.44d53bd2.chunk.css rename to static/css/395.44d53bd2.chunk.css diff --git a/static/css/513.b11ad2b5.chunk.css b/static/css/410.b11ad2b5.chunk.css similarity index 100% rename from static/css/513.b11ad2b5.chunk.css rename to static/css/410.b11ad2b5.chunk.css diff --git a/static/css/498.7371750b.chunk.css b/static/css/562.7371750b.chunk.css similarity index 100% rename from static/css/498.7371750b.chunk.css rename to static/css/562.7371750b.chunk.css diff --git a/static/css/893.cf24c8dc.chunk.css b/static/css/566.cf24c8dc.chunk.css similarity index 100% rename from static/css/893.cf24c8dc.chunk.css rename to static/css/566.cf24c8dc.chunk.css diff --git a/static/css/279.f1cd4c87.chunk.css b/static/css/636.f1cd4c87.chunk.css similarity index 100% rename from static/css/279.f1cd4c87.chunk.css rename to static/css/636.f1cd4c87.chunk.css diff --git a/static/css/850.e3e96a63.chunk.css b/static/css/649.e3e96a63.chunk.css similarity index 100% rename from static/css/850.e3e96a63.chunk.css rename to static/css/649.e3e96a63.chunk.css diff --git a/static/css/570.fb6bdb91.chunk.css b/static/css/713.fb6bdb91.chunk.css similarity index 100% rename from static/css/570.fb6bdb91.chunk.css rename to static/css/713.fb6bdb91.chunk.css diff --git a/static/css/528.690a6412.chunk.css b/static/css/86.690a6412.chunk.css similarity index 100% rename from static/css/528.690a6412.chunk.css rename to static/css/86.690a6412.chunk.css diff --git a/static/js/122.3bda5e5a.chunk.js b/static/js/122.3bda5e5a.chunk.js new file mode 100644 index 00000000..3616b70b --- /dev/null +++ b/static/js/122.3bda5e5a.chunk.js @@ -0,0 +1,2 @@ +/*! For license information please see 122.3bda5e5a.chunk.js.LICENSE.txt */ +(self.webpackChunk_web_index=self.webpackChunk_web_index||[]).push([[122,265,806,450,815,919,852,741,512,320,854,528,274],{5069:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(1914),s=r(359),o=r(6796),a=r.n(o);function i({title:e,icon:t,videos:r,asideTitle:o,aside:i,moreUrl:l,isLive:c}){return(0,n.jsxs)("div",{className:a()("upv-grid",{"col-2":o,"is-live":c}),children:[(0,n.jsxs)("div",{className:"upv-card-list",children:[(0,n.jsxs)("div",{className:"list-header",children:[(0,n.jsxs)("div",{children:[t&&(0,n.jsx)("img",{src:t,alt:e}),(0,n.jsx)("h2",{children:e})]}),l&&r&&r.length>0&&(0,n.jsxs)("a",{className:"list-header__more",href:l,target:"_blank",children:["more",(0,n.jsxs)("svg",{width:"10",height:"10",viewBox:"0 0 9 9",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"channel-entry-more__link--arrow",children:[(0,n.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.50588 3.40623C7.40825 3.3086 7.24996 3.3086 7.15232 3.40623L4.41244 6.14612L1.67255 3.40623C1.57491 3.3086 1.41662 3.3086 1.31899 3.40623C1.22136 3.50386 1.22136 3.66215 1.31899 3.75978L4.11781 6.5586C4.28053 6.72132 4.54434 6.72132 4.70706 6.5586L7.50588 3.75978C7.60351 3.66215 7.60351 3.50386 7.50588 3.40623Z",fill:"currentColor"}),(0,n.jsx)("path",{d:"M7.15232 3.40623L7.50588 3.75978L7.50588 3.75978L7.15232 3.40623ZM7.50588 3.40623L7.15232 3.75978L7.15233 3.75978L7.50588 3.40623ZM4.41244 6.14612L4.05888 6.49967C4.15265 6.59344 4.27983 6.64612 4.41244 6.64612C4.54504 6.64612 4.67222 6.59344 4.76599 6.49967L4.41244 6.14612ZM1.67255 3.40623L2.0261 3.05268L2.0261 3.05268L1.67255 3.40623ZM1.31899 3.40623L0.965439 3.05268L0.965439 3.05268L1.31899 3.40623ZM1.31899 3.75978L1.67255 3.40623V3.40623L1.31899 3.75978ZM4.11781 6.5586L3.76425 6.91215L4.11781 6.5586ZM4.70706 6.5586L4.35351 6.20505L4.70706 6.5586ZM7.50588 3.75978L7.15233 3.40623L7.15232 3.40623L7.50588 3.75978ZM7.50588 3.75978C7.40825 3.85742 7.24996 3.85742 7.15232 3.75978L7.85943 3.05268C7.56654 2.75978 7.09166 2.75978 6.79877 3.05268L7.50588 3.75978ZM4.76599 6.49967L7.50588 3.75978L6.79877 3.05268L4.05888 5.79257L4.76599 6.49967ZM1.31899 3.75978L4.05888 6.49967L4.76599 5.79257L2.0261 3.05268L1.31899 3.75978ZM1.67254 3.75979C1.57491 3.85742 1.41662 3.85742 1.31899 3.75979L2.0261 3.05268C1.73321 2.75978 1.25833 2.75978 0.965439 3.05268L1.67254 3.75979ZM1.67255 3.40623C1.77018 3.50386 1.77018 3.66215 1.67255 3.75978L0.965439 3.05268C0.672546 3.34557 0.672546 3.82044 0.965439 4.11334L1.67255 3.40623ZM4.47136 6.20505L1.67255 3.40623L0.965439 4.11334L3.76425 6.91215L4.47136 6.20505ZM4.35351 6.20505C4.38605 6.1725 4.43882 6.1725 4.47136 6.20505L3.76425 6.91215C4.12223 7.27013 4.70264 7.27013 5.06062 6.91215L4.35351 6.20505ZM7.15232 3.40623L4.35351 6.20505L5.06062 6.91215L7.85943 4.11334L7.15232 3.40623ZM7.15233 3.75978C7.05469 3.66215 7.05469 3.50386 7.15233 3.40623L7.85943 4.11334C8.15233 3.82045 8.15233 3.34557 7.85943 3.05268L7.15233 3.75978Z",fill:"currentColor"})]})]})]}),(0,n.jsx)("div",{className:"list-body",children:r?r.length>0?r.map(((e,t)=>c?(0,n.jsx)(s.x,Object.assign({},e),t):(0,n.jsx)(s.A,{info:e},t))):(0,n.jsx)("div",{className:"empty",children:"No Data"}):(0,n.jsx)("span",{className:"loading empty",children:"loading\xb7\xb7\xb7"})})]}),!!o&&(0,n.jsxs)("aside",{children:[(0,n.jsx)("div",{className:"aside-header",children:(0,n.jsx)("div",{className:"aside-title",children:o})}),(0,n.jsx)("div",{className:"aside-body",children:i})]})]})}},359:(e,t,r)=>{"use strict";r.d(t,{x:()=>g,A:()=>m});var n=r(1914),s=r(1394),o=r(9163),a=r(5219),i=r(6796),l=r.n(i),c=r(6730);const d=6;let p;const u="loading"in HTMLImageElement.prototype;function m({info:e}){var t;const r="video"===e.Type?`/v/${e.ID}`:`/p/${e.ID}`,i=(0,s.useRef)(null);return(0,s.useEffect)((()=>{var e;if(p&&(null===(e=i.current)||void 0===e?void 0:e.dataset.cover))return p.observe(i.current),()=>{i.current&&(p.unobserve(i.current),i.current.querySelector(".upv-video-card__loading").classList.remove("upv-video-card__loading--hidden"),i.current.querySelector(".upv-video-card__error").classList.remove("upv-video-card__error--show"))}}),[i,e]),(0,n.jsxs)("div",{className:"upv-video-card",children:[(0,n.jsx)(c.N_,{href:r,children:(0,n.jsx)("div",{ref:i,"data-cover":e.Cover,title:e.Title,children:(0,n.jsxs)(o.A,{ratio:3/4,children:[e.Cover&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("img",{loading:"lazy",className:"upv-video-card__image",alt:e.Title,title:e.Title,"data-src":e.Cover,src:u?e.Cover:void 0}),!u&&[(0,n.jsx)("div",{className:"upv-video-card__loading",children:"LOADING"}),(0,n.jsx)("div",{className:"upv-video-card__error",children:"ERROR"})]]}),(0,n.jsx)("div",{className:l()("upv-video-card__nocover",{"upv-video-card__nocover--show":!e.Cover}),children:(0,n.jsx)("span",{className:l()({large:e.Title.length<=4}),children:e.Title.slice(0,d)})})]})})}),(0,n.jsxs)("div",{className:"upv-video-card__content",children:[(0,n.jsx)("div",{className:"upv-video-card__content__title",children:e.Title}),(0,n.jsxs)("div",{className:"upv-video-card__content__author",children:[(0,n.jsx)("span",{children:(null===(t=e.Creator)||void 0===t?void 0:t.Nickname)||"-"})," \xb7 ",(0,n.jsx)("span",{children:(0,a.D$)(e.CreatedAt)})]})]})]})}function g({id:e,level:t,name:r,qq:s,sign:o}){return(0,n.jsx)("a",{href:`/v/${e}?live`,children:(0,n.jsxs)("div",{className:"live-card",style:{display:"flex"},children:[(0,n.jsx)("div",{className:"live-avatar",children:(0,n.jsx)("img",{src:`https://q1.qlogo.cn/g?b=qq&nk=${s}&s=640`,alt:"name"})}),(0,n.jsxs)("div",{className:"live-info",children:[(0,n.jsxs)("span",{children:[o," ",(0,n.jsx)("sup",{children:t})]}),(0,n.jsx)("span",{children:r})]})]})})}u||(p=new IntersectionObserver((e=>{e.forEach((e=>{if(e.isIntersecting){const t=e.target;p.unobserve(t);const r=t.querySelector("img");r.src=r.dataset.src,r.onload=()=>{t.querySelector(".upv-video-card__loading").classList.add("upv-video-card__loading--hidden")},r.onerror=()=>{t.querySelector(".upv-video-card__error").classList.add("upv-video-card__error--show")}}}))}),{threshold:[.15]}))},83:(e,t,r)=>{"use strict";r.d(t,{gL:()=>s,ho:()=>a});function n(e){if(!e)return"https://ae01.alicdn.com/kf/U6751d35799cc4d06965aa7b1879e0fc6i.jpg";let t=e.match(/suo(.+?)\)/i);return t?t[1].slice(2):"https://cdn-us.imgs.moe/2023/02/27/63fcb180cbb30.jpg"}const s=e=>e?Object.assign(Object.assign({},e),{adp:!0,clicli:!0,ID:e.id,Cover:n(e.content),Title:e.title,Content:e.content,Tags:e.tag,Type:"video",CreatedAt:e.time,UpdatedAt:e.time,Meta:{TitleJapanese:"",TitleRomanji:"",Genre:e.sort,Region:"clicli",Episodes:e.content.split("\n").length,IsEnd:2,PublishDate:e.time,UpdatedDate:null},Creator:{ID:1,Name:"YUESE",Nickname:"YUESE",Avatar:"https://q1.qlogo.cn/g?b=qq&nk=7619376472&s=640",Bio:"\u8fd9\u4e2a\u4eba\u5f88\u9177\uff0c\u4ec0\u4e48\u90fd\u6ca1\u6709\u7559\u4e0b"},episodes:e.content.split("\n").map((t=>({ID:t.split("$")[0],Episode:t.split("$")[0],Cover:n(e.content),Title:t.split("$")[0],TitleJapanese:"",TitleRomanji:"",VideoUrl:"",Synopsis:"",Uid:1,Pid:e.id,CreatedAt:e.time,UpdatedAt:e.time})))}):{},o=[3421,31,786,3880,2617,4087],a=(e=[])=>e.filter((e=>!o.includes(e.id))).map(s)},7122:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>m});var n=r(1914),s=r(1394),o=r(8413),a=r(5069),i=r(83),l=r(6730),c=r(4097),d=r(3987);const p={},u=r(8635);function m(){const[e,t]=(0,s.useState)(),{title:r,type:m,page:g=1,tag:f}=c.A.parse((0,l.SQ)()),[,v]=(0,l.zy)(),h=e=>{const t=Object.assign({},c.A.parse(window.location.search),{page:e});v(`/pv/tag?${c.A.stringify(t)}`),root.scrollTop=0};return(0,s.useEffect)((()=>{if("recent"==m||"popular"==m||f)t(null),d.OF.get(`https://www.clicli.cc/posts?status=public&sort=&tag=${"popular"==m?"\u63a8\u8350":f}&uid=&page=${g}&pageSize=24`).then((e=>{t((0,i.ho)(e.posts))}));else{u.keys().filter((e=>!e.startsWith("./-"))).forEach((e=>p[e]=u(e).data));const e=Object.values(p).splice(20*(+g-1),20);t(e)}}),[g]),(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(o.m,{children:(0,n.jsx)("title",{children:`${r} - UPV - free animes no ads`})}),(0,n.jsxs)("div",{className:"search",children:[(0,n.jsx)("div",{className:"search-header"}),(0,n.jsxs)("div",{className:"search-body",children:[(0,n.jsx)(a.A,{title:r,videos:e}),"recommends"!=m&&(0,n.jsxs)("div",{className:"paginate-container field has-addons",style:{justifyContent:"center",paddingBottom:"28px"},children:[(0,n.jsx)("p",{className:"control",children:(0,n.jsx)("button",{className:"button",onClick:()=>h(+g-1),disabled:+g<=1,children:(0,n.jsx)("span",{children:"Newer"})})}),(0,n.jsx)("p",{className:"control",children:(0,n.jsx)("button",{className:"button is-outlined",disabled:!e||e&&e.length<1||e.length<12,onClick:()=>h(+g+1),children:(0,n.jsx)("span",{className:"is-primary",children:"Older"})})})]})]})]})]})}},9163:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var n=r(1914);const s=e=>{const{children:t,ratio:r,mw:s}=e;return(0,n.jsx)("div",{className:"aspect-ratio",style:{width:"string"===typeof s?s:`${s}px`},children:(0,n.jsx)("div",{className:"aspect-ratio__fill",style:{paddingTop:1/r*100+"%"},children:t})})}},5219:(e,t,r)=>{"use strict";function n(e){const t=new Date,r=new Date(e),n=(t.getTime()-r.getTime())/1e3;return n<30?"\u521a\u521a":n<3600?Math.ceil(n/60)+"\u5206\u949f\u524d":n<86400?Math.ceil(n/3600)+"\u5c0f\u65f6\u524d":n<172800?"1\u5929\u524d":n<2678400?Math.ceil(n/3600/24)+"\u5929\u524d":t.getFullYear()===r.getFullYear()?`${r.getMonth()+1}\u6708${r.getDate()}\u65e5`:`${r.getFullYear()}\u5e74${r.getMonth()+1}\u6708${r.getDate()}\u65e5`}function s(e,t=!1){const r=new Date(e);return(new Date).getFullYear()===r.getFullYear()?`${r.getMonth()+1}\u6708${r.getDate()}\u65e5 ${t?` ${r.getHours()}:${r.getMinutes().toString().padStart(2,"0")}`:""}`:`${r.getFullYear()}\u5e74${r.getMonth()+1}\u6708${r.getDate()}\u65e5 ${t?` ${r.getHours()}:${r.getMinutes().toString().padStart(2,"0")}`:""}`}r.d(t,{D$:()=>n,Yq:()=>s})},8635:(e,t,r)=>{var n={"./0.json":265,"./1.json":5806,"./10.json":8450,"./131478f2-31cd-446a-9cb2-15158b8c3efe.json":3815,"./2.json":5919,"./3.json":9852,"./4.json":9741,"./7.json":512,"./77745a95-b5db-4c0b-ad08-0a55a6e70f49.json":5320,"./9.json":6854,"./a7a1345e-1bc8-4793-9650-a0ee89b6d74b.json":9528,"./b2cf7c39-3f62-45c0-bbe1-a9522ff24cb7.json":274};function s(e){var t=o(e);return r(t)}function o(e){if(!r.o(n,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return n[e]}s.keys=function(){return Object.keys(n)},s.resolve=o,e.exports=s,s.id=8635},6796:(e,t)=>{var r;!function(){"use strict";var n={}.hasOwnProperty;function s(){for(var e="",t=0;t{"use strict";r.d(t,{A:()=>E});var n={};r.r(n),r.d(n,{exclude:()=>L,extract:()=>y,parse:()=>I,parseUrl:()=>x,pick:()=>N,stringify:()=>T,stringifyUrl:()=>k});const s="%[a-f0-9]{2}",o=new RegExp("("+s+")|([^%]+?)","gi"),a=new RegExp("("+s+")+","gi");function i(e,t){try{return[decodeURIComponent(e.join(""))]}catch{}if(1===e.length)return e;t=t||1;const r=e.slice(0,t),n=e.slice(t);return Array.prototype.concat.call([],i(r),i(n))}function l(e){try{return decodeURIComponent(e)}catch{let t=e.match(o)||[];for(let r=1;rnull===e||void 0===e,m=e=>encodeURIComponent(e).replaceAll(/[!'()*]/g,(e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`)),g=Symbol("encodeFragmentIdentifier");function f(e){if("string"!==typeof e||1!==e.length)throw new TypeError("arrayFormatSeparator must be single character string")}function v(e,t){return t.encode?t.strict?m(e):encodeURIComponent(e):e}function h(e,t){return t.decode?c(e):e}function C(e){return Array.isArray(e)?e.sort():"object"===typeof e?C(Object.keys(e)).sort(((e,t)=>Number(e)-Number(t))).map((t=>e[t])):e}function j(e){const t=e.indexOf("#");return-1!==t&&(e=e.slice(0,t)),e}function b(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 y(e){const t=(e=j(e)).indexOf("?");return-1===t?"":e.slice(t+1)}function I(e,t){f((t={decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1,...t}).arrayFormatSeparator);const r=function(e){let t;switch(e.arrayFormat){case"index":return(e,r,n)=>{t=/\[(\d*)]$/.exec(e),e=e.replace(/\[\d*]$/,""),t?(void 0===n[e]&&(n[e]={}),n[e][t[1]]=r):n[e]=r};case"bracket":return(e,r,n)=>{t=/(\[])$/.exec(e),e=e.replace(/\[]$/,""),t?void 0!==n[e]?n[e]=[...n[e],r]:n[e]=[r]:n[e]=r};case"colon-list-separator":return(e,r,n)=>{t=/(:list)$/.exec(e),e=e.replace(/:list$/,""),t?void 0!==n[e]?n[e]=[...n[e],r]:n[e]=[r]:n[e]=r};case"comma":case"separator":return(t,r,n)=>{const s="string"===typeof r&&r.includes(e.arrayFormatSeparator),o="string"===typeof r&&!s&&h(r,e).includes(e.arrayFormatSeparator);r=o?h(r,e):r;const a=s||o?r.split(e.arrayFormatSeparator).map((t=>h(t,e))):null===r?r:h(r,e);n[t]=a};case"bracket-separator":return(t,r,n)=>{const s=/(\[])$/.test(t);if(t=t.replace(/\[]$/,""),!s)return void(n[t]=r?h(r,e):r);const o=null===r?[]:r.split(e.arrayFormatSeparator).map((t=>h(t,e)));void 0!==n[t]?n[t]=[...n[t],...o]:n[t]=o};default:return(e,t,r)=>{void 0!==r[e]?r[e]=[...[r[e]].flat(),t]:r[e]=t}}}(t),n=Object.create(null);if("string"!==typeof e)return n;if(!(e=e.trim().replace(/^[?#&]/,"")))return n;for(const s of e.split("&")){if(""===s)continue;const e=t.decode?s.replaceAll("+"," "):s;let[o,a]=d(e,"=");void 0===o&&(o=e),a=void 0===a?null:["comma","separator","bracket-separator"].includes(t.arrayFormat)?a:h(a,t),r(h(o,t),a,n)}for(const[s,o]of Object.entries(n))if("object"===typeof o&&null!==o)for(const[e,r]of Object.entries(o))o[e]=b(r,t);else n[s]=b(o,t);return!1===t.sort?n:(!0===t.sort?Object.keys(n).sort():Object.keys(n).sort(t.sort)).reduce(((e,t)=>{const r=n[t];return e[t]=Boolean(r)&&"object"===typeof r&&!Array.isArray(r)?C(r):r,e}),Object.create(null))}function T(e,t){if(!e)return"";f((t={encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:",",...t}).arrayFormatSeparator);const r=r=>t.skipNull&&u(e[r])||t.skipEmptyString&&""===e[r],n=function(e){switch(e.arrayFormat){case"index":return t=>(r,n)=>{const s=r.length;return void 0===n||e.skipNull&&null===n||e.skipEmptyString&&""===n?r:null===n?[...r,[v(t,e),"[",s,"]"].join("")]:[...r,[v(t,e),"[",v(s,e),"]=",v(n,e)].join("")]};case"bracket":return t=>(r,n)=>void 0===n||e.skipNull&&null===n||e.skipEmptyString&&""===n?r:null===n?[...r,[v(t,e),"[]"].join("")]:[...r,[v(t,e),"[]=",v(n,e)].join("")];case"colon-list-separator":return t=>(r,n)=>void 0===n||e.skipNull&&null===n||e.skipEmptyString&&""===n?r:null===n?[...r,[v(t,e),":list="].join("")]:[...r,[v(t,e),":list=",v(n,e)].join("")];case"comma":case"separator":case"bracket-separator":{const t="bracket-separator"===e.arrayFormat?"[]=":"=";return r=>(n,s)=>void 0===s||e.skipNull&&null===s||e.skipEmptyString&&""===s?n:(s=null===s?"":s,0===n.length?[[v(r,e),t,v(s,e)].join("")]:[[n,v(s,e)].join(e.arrayFormatSeparator)])}default:return t=>(r,n)=>void 0===n||e.skipNull&&null===n||e.skipEmptyString&&""===n?r:null===n?[...r,v(t,e)]:[...r,[v(t,e),"=",v(n,e)].join("")]}}(t),s={};for(const[a,i]of Object.entries(e))r(a)||(s[a]=i);const o=Object.keys(s);return!1!==t.sort&&o.sort(t.sort),o.map((r=>{const s=e[r];return void 0===s?"":null===s?v(r,t):Array.isArray(s)?0===s.length&&"bracket-separator"===t.arrayFormat?v(r,t)+"[]":s.reduce(n(r),[]).join("&"):v(r,t)+"="+v(s,t)})).filter((e=>e.length>0)).join("&")}function x(e,t){t={decode:!0,...t};let[r,n]=d(e,"#");return void 0===r&&(r=e),{url:r?.split("?")?.[0]??"",query:I(y(e),t),...t&&t.parseFragmentIdentifier&&n?{fragmentIdentifier:h(n,t)}:{}}}function k(e,t){t={encode:!0,strict:!0,[g]:!0,...t};const r=j(e.url).split("?")[0]||"";let n=T({...I(y(e.url),{sort:!1}),...e.query},t);n&&=`?${n}`;let s=function(e){let t="";const r=e.indexOf("#");return-1!==r&&(t=e.slice(r)),t}(e.url);if("string"===typeof e.fragmentIdentifier){const n=new URL(r);n.hash=e.fragmentIdentifier,s=t[g]?n.hash:`#${e.fragmentIdentifier}`}return`${r}${n}${s}`}function N(e,t,r){r={parseFragmentIdentifier:!0,[g]:!1,...r};const{url:n,query:s,fragmentIdentifier:o}=x(e,r);return k({url:n,query:p(s,t),fragmentIdentifier:o},r)}function L(e,t,r){return N(e,Array.isArray(t)?e=>!t.includes(e):(e,r)=>!t(e,r),r)}const E=n},265:e=>{"use strict";e.exports=JSON.parse('{"data":{"ID":"0","Cover":"https://image.maimn.com/cover/aca8d4b0dd45052f72fc42d3e5a5deff.jpg","Title":"\u94c3\u82bd\u4e4b\u65c5","Content":"","Tags":"\u5176\u4ed6","Status":4,"Type":"video","IsPined":1,"IsRecommend":2,"IsOriginal":1,"CreatedAt":"2022-05-12T15:44:00+08:00","UpdatedAt":"2022-05-12T16:40:13+08:00","Meta":{"TitleJapanese":"","TitleRomanji":"","Genre":"\u756a\u5267","Region":"\u65e5\u672c","Episodes":12,"IsEnd":2,"PublishDate":null,"UpdatedDate":null},"Creator":{"ID":1,"Name":"root","Nickname":"YUESE","Avatar":"https://q1.qlogo.cn/g?b=qq&nk=7619376472&s=640","Bio":"\u8fd9\u4e2a\u4eba\u5f88\u9177\uff0c\u4ec0\u4e48\u90fd\u6ca1\u6709\u7559\u4e0b"},"Hits":33,"IsLiked":1,"LikesCount":1,"IsCollected":1,"CollectionCount":0,"CommentCount":0}}')},5806:e=>{"use strict";e.exports=JSON.parse('{"data":{"ID":"1","Cover":"https://img1.doubanio.com/view/photo/l/public/p2593787027.webp","Title":"\u5f02\u79cd\u65cf\u98ce\u4fd7\u5a18\u8bc4\u9274\u6307\u5357","Content":"\u8fd9\u91cc\u4e0d\u4ec5\u662f\u4eba\u7c7b\uff0c\u8fd8\u6709\u827e\u5c14\u592b\u3001\u517d\u4eba\u3001\u6076\u9b54\u3001\u5929\u4f7f\uff0c\u6240\u6709\u5f02\u79cd\u65cf\u6df7\u5728\u4e00\u8d77\u751f\u6d3b\u7684\u4e16\u754c\u3002\u90a3\u91cc\u5f53\u7136\u4e5f\u6709\u5404\u79cd\u5f02\u65cf\u7684\u5199\u751f\u5e97\u2026\u3002\\n\u5728\u63d0\u4f9b\u8db3\u4e0d\u51fa\u6237\u7684\u670d\u52a1\u7684\u5e97\u91cc\u5de5\u4f5c\u7684\u4eba\u7c7b\u5192\u9669\u8005\u53f2\u5766\u514b\uff0c\u6709\u4e00\u5929\u56e0\u79cd\u65cf\u95f4(\u6027\u610f\u4e49\u4e0a\u7684)\u611f\u6027\u5dee\u5f02\uff0c\u4e0e\u6076\u53cb\u827e\u6d1b\u57c3\u5c14\u592b\xb7\u585e\u5c14\u53d1\u751f\u51b2\u7a81\u3002\\n\u7ec8\u7ed3\u7684\u65b9\u6cd5\u662f\u2026\u2026\u5973\u513f\u7684\u8bc4\u8bba!?\u4ee5\u4ea4\u53c9\u8bc4\u8bba\u7684\u65b9\u5f0f\u5bf9\u6240\u6709\u5f02\u79cd\u65cf\u59d1\u5a18\u7684\u670d\u52a1\u8fdb\u884c\u8bc4\u5206\uff0c\u4f5c\u4e3a\u7ed9\u5176\u4ed6\u540c\u4f34\u7684\u201c\u89d2\u8272\u52c3\u201d\u4fe1\u606f\u63d0\u4f9b\u7684\u65af\u5766\u514b\u4eec\u7684\u6d3b\u8dc3\uff0c\u7b80\u76f4\u5c31\u50cf\u6027\u6218\u58eb\u4e00\u6837!\\n\u4eca\u5929\uff0c\u5973\u58eb\u4eec\u4e5f\u4e3a\u4e86\u5bfb\u627e\u65b0\u7684\u5feb\u4e50\u800c\u5f00\u59cb\u65c5\u884c\u2026\u2026\u3002","Tags":"\u5176\u4ed6","Status":4,"Type":"video","IsPined":1,"IsRecommend":2,"IsOriginal":1,"CreatedAt":"2022-05-12T15:44:00+08:00","UpdatedAt":"2022-05-12T16:40:13+08:00","Meta":{"TitleJapanese":"","TitleRomanji":"","Genre":"\u756a\u5267","Region":"\u65e5\u672c","Episodes":12,"IsEnd":2,"PublishDate":null,"UpdatedDate":null},"Creator":{"ID":1,"Name":"root","Nickname":"YUESE","Avatar":"https://q1.qlogo.cn/g?b=qq&nk=7619376472&s=640","Bio":"\u8fd9\u4e2a\u4eba\u5f88\u9177\uff0c\u4ec0\u4e48\u90fd\u6ca1\u6709\u7559\u4e0b"},"Hits":33,"IsLiked":1,"LikesCount":1,"IsCollected":1,"CollectionCount":0,"CommentCount":0}}')},8450:e=>{"use strict";e.exports=JSON.parse('{"data":{"ID":"10","Cover":"http://pic.ku-img.com/upload/vod/20220507-1/3f028116b79860ca1d1bbd7560129225.jpg","Title":"\u7231\uff0c\u6b7b\u4ea1\u548c\u673a\u5668\u4eba\u7b2c\u4e09\u5b63","Content":"\u827e\u7f8e\u5956\u83b7\u5956\u52a8\u753b\u9009\u96c6\u300a\u7231\u3001\u6b7b\u4ea1 & \u673a\u5668\u4eba\u300b\u7b2c\u4e09\u90e8\u56de\u5f52\uff0c\u7531\u8482\u59c6\xb7\u7c73\u52d2\uff08\u300a\u6b7b\u4f8d\u300b\u300a\u7ec8\u7ed3\u8005\uff1a\u9ed1\u6697\u547d\u8fd0\u300b\uff09\u548c\u5927\u536b\xb7\u82ac\u5947\uff08\u300a\u5fc3\u7075\u730e\u4eba\u300b\u300a\u66fc\u514b\u300b\uff09\u62c5\u4efb\u76d1\u5236\u3002\u6050\u6016\u3001\u60f3\u8c61\u529b\u548c\u7f8e\u5728\u65b0\u5267\u96c6\u4e2d\u5b8c\u7f8e\u878d\u5408\uff0c\u4ece\u63ed\u793a\u53e4\u8001\u7684\u90aa\u6076\u529b\u91cf\u5230\u559c\u5267\u822c\u7684\u672b\u65e5\uff0c\u5267\u96c6\u4ee5\u6807\u5fd7\u6027\u7684\u5de7\u601d\u548c\u521b\u9020\u6027\u7684\u89c6\u89c9\u6548\u679c\uff0c\u4e3a\u89c2\u4f17\u5e26\u6765\u4ee4\u4eba\u9707\u60ca\u7684\u5947\u5e7b\u3001\u6050\u6016\u548c\u79d1\u5e7b\u77ed\u7bc7\u6545\u4e8b\u3002","Tags":"R15","Status":4,"Type":"video","IsPined":1,"IsRecommend":2,"IsOriginal":1,"CreatedAt":"2022-05-21T13:44:16+08:00","UpdatedAt":"2022-05-21T13:54:18+08:00","Meta":{"TitleJapanese":"","TitleRomanji":"","Genre":"\u7535\u89c6\u5267","Region":"\u7f8e\u56fd","Episodes":0,"IsEnd":1,"PublishDate":null,"UpdatedDate":null},"Creator":{"ID":1,"Name":"root","Nickname":"YUESE","Avatar":"https://q1.qlogo.cn/g?b=qq&nk=7619376472&s=640","Bio":"\u8fd9\u4e2a\u4eba\u5f88\u9177\uff0c\u4ec0\u4e48\u90fd\u6ca1\u6709\u7559\u4e0b"},"Hits":71,"IsLiked":1,"LikesCount":0,"IsCollected":1,"CollectionCount":0,"CommentCount":0}}')},3815:e=>{"use strict";e.exports=JSON.parse('{"data":{"ID":"131478f2-31cd-446a-9cb2-15158b8c3efe","Cover":"https://static.iyf.tv/upload/video/201609071605010586376.gif?w=216&h=309&format=jpg&mode=stretch","Title":"\u82b1\u675f\u822c\u7684\u604b\u7231","Content":"","Tags":"\u5176\u4ed6","Status":4,"Type":"video","IsPined":1,"IsRecommend":2,"IsOriginal":1,"CreatedAt":"2022-05-24T21:00:39+08:00","UpdatedAt":"2022-05-24T21:02:47+08:00","Meta":{"TitleJapanese":"","TitleRomanji":"","Genre":"\u7535\u5f71","Region":"\u5176\u4ed6","Episodes":1,"IsEnd":1,"PublishDate":null,"UpdatedDate":null},"Creator":{"ID":1,"Name":"root","Nickname":"YUESE","Avatar":"https://q1.qlogo.cn/g?b=qq&nk=7619376472&s=640","Bio":"\u8fd9\u4e2a\u4eba\u5f88\u9177\uff0c\u4ec0\u4e48\u90fd\u6ca1\u6709\u7559\u4e0b"},"Hits":26,"IsLiked":1,"LikesCount":1,"IsCollected":1,"CollectionCount":0,"CommentCount":0}}')},5919:e=>{"use strict";e.exports=JSON.parse('{"data":{"ID":"2","Cover":"https://s2.loli.net/2022/05/01/nzFqRv3HPryWupg.png","Title":"\u604b\u7231\u8981\u5728\u5f81\u670d\u4e16\u754c\u540e","Content":"\u8bf4\u660e\u4e00\u4e0b\u5427\uff01\u4ee5\u4e16\u754c\u548c\u5e73\u4e3a\u76ee\u6807\u7684\u82f1\u96c4\u6218\u961f\u201c\u6770\u62c9\u72795\u201d\u7684\u961f\u957f\xb7\u76f8\u5ddd\u4e0d\u52a8\uff0c\u4e0e\u4f01\u56fe\u5f81\u670d\u4e16\u754c\u7684\u79d8\u5bc6\u7ed3\u793e\u201c\u683c\u683c\u8f66\u201d\u7684\u6218\u6597\u5458\u961f\u957f\xb7\u201c\u6b7b\u795e\u516c\u4e3b\u201d\u7978\u539f\u6b7b\u4ea1\u7f8e\u3002\u5bbf\u654c\u4e4b\u95f4\u7684\u4ed6\u4eec\uff0c\u6709\u7740\u8d85\u8d8a\u7ec4\u7ec7\u4e4b\u5899\u7684\u6df1\u6df1\u56e0\u7f18\uff01\uff01\u5176\u5b9e\u8fd9\u4e24\u4e2a\u4eba\u2026\u5728\u4ea4\u5f80\uff01\u4e24\u4eba\u6ca1\u6709\u5411\u793e\u4f1a\u548c\u670b\u53cb\u516c\u5f00\uff0c\u5f00\u59cb\u79d8\u5bc6\u4ea4\u5f80\u3002\u4f46\u662f\uff0c\u5bf9\u4e8e\u604b\u7231\u521d\u5b66\u8005\u7684\u7eaf\u6d01\u7684\u4e8c\u4eba\u6765\u8bf4\uff0c\u4e00\u5207\u90fd\u662f\u65b0\u7684\u3002\u4e00\u65e6\u88ab\u53d1\u73b0\uff0c\u6bd4\u8d5b\u5c31\u7ed3\u675f\u7684\u7981\u65ad\u7684\u7231\u60c5\u559c\u5267\u5f00\u59cb\u4e86","Tags":"\u5176\u4ed6","Status":4,"Type":"video","IsPined":1,"IsRecommend":2,"IsOriginal":1,"CreatedAt":"2022-05-12T16:00:40+08:00","UpdatedAt":"2022-05-12T16:40:19+08:00","Meta":{"TitleJapanese":"","TitleRomanji":"","Genre":"\u756a\u5267","Region":"\u65e5\u672c","Episodes":5,"IsEnd":1,"PublishDate":"2022-04-20T08:00:00+08:00","UpdatedDate":"2022-05-13T08:00:00+08:00"},"Creator":{"ID":1,"Name":"root","Nickname":"YUESE","Avatar":"https://q1.qlogo.cn/g?b=qq&nk=7619376472&s=640","Bio":"\u8fd9\u4e2a\u4eba\u5f88\u9177\uff0c\u4ec0\u4e48\u90fd\u6ca1\u6709\u7559\u4e0b"},"Hits":28,"IsLiked":1,"LikesCount":1,"IsCollected":1,"CollectionCount":0,"CommentCount":0}}')},9852:e=>{"use strict";e.exports=JSON.parse('{"data":{"ID":"7","Cover":"https://static.iyf.tv/upload/video/202211201400550056683.gif?w=216&h=309&format=jpg&mode=stretch","Title":"\u64c5\u957f\u6349\u5f04\u7684\u9ad8\u6728\u540c\u5b66 \u5267\u573a\u7248","Content":"\u64c5\u957f\u6349\u5f04\u7684\u9ad8\u6728\u540c\u5b66 \u5267\u573a\u7248","Tags":"\u7231\u60c5,\u6cbb\u6108,\u65e5\u672c\u52a8\u6f2b","Status":4,"Type":"video","IsPined":1,"IsRecommend":2,"IsOriginal":1,"CreatedAt":"2022-05-18T15:22:49+08:00","UpdatedAt":"2022-05-18T15:33:11+08:00","Meta":{"TitleJapanese":"","TitleRomanji":"","Genre":"\u52a8\u753b\u7535\u5f71","Region":"\u65e5\u672c","Episodes":1,"IsEnd":2,"PublishDate":null,"UpdatedDate":null},"Creator":{"ID":1,"Name":"root","Nickname":"YUESE","Avatar":"https://q1.qlogo.cn/g?b=qq&nk=7619376472&s=640","Bio":"\u8fd9\u4e2a\u4eba\u5f88\u9177\uff0c\u4ec0\u4e48\u90fd\u6ca1\u6709\u7559\u4e0b"},"Hits":2,"IsLiked":1,"LikesCount":0,"IsCollected":1,"CollectionCount":0,"CommentCount":0}}')},9741:e=>{"use strict";e.exports=JSON.parse('{"data":{"ID":"1","Cover":"https://img9.doubanio.com/view/photo/l/public/p2883720945.webp","Title":"\u8fdb\u51fb\u7684\u5de8\u4eba \u6700\u7ec8\u5b63 \u5b8c\u7ed3\u7bc7 \u524d\u7bc7","Content":"\u8fdb\u51fb\u7684\u5de8\u4eba \u6700\u7ec8\u5b63 \u5b8c\u7ed3\u7bc7 \u524d\u7bc7","Tags":"\u5176\u4ed6","Status":4,"Type":"video","IsPined":1,"IsRecommend":2,"IsOriginal":1,"CreatedAt":"2022-05-12T15:44:00+08:00","UpdatedAt":"2022-05-12T16:40:13+08:00","Meta":{"TitleJapanese":"","TitleRomanji":"","Genre":"\u756a\u5267","Region":"\u65e5\u672c","Episodes":12,"IsEnd":2,"PublishDate":null,"UpdatedDate":null},"Creator":{"ID":1,"Name":"root","Nickname":"YUESE","Avatar":"https://q1.qlogo.cn/g?b=qq&nk=7619376472&s=640","Bio":"\u8fd9\u4e2a\u4eba\u5f88\u9177\uff0c\u4ec0\u4e48\u90fd\u6ca1\u6709\u7559\u4e0b"},"Hits":33,"IsLiked":1,"LikesCount":1,"IsCollected":1,"CollectionCount":0,"CommentCount":0}}')},512:e=>{"use strict";e.exports=JSON.parse('{"data":{"ID":"7","Cover":"https://cdn.tupianla.cc/images/5ikmj/uploads/allimg/210821/85f7787b37c25437.jpg","Title":"\u6211\u60f3\u5403\u6389\u4f60\u7684\u80f0\u810f","Content":"\u6ca1\u6709\u540d\u5b57\u7684\u6211\uff0c\u6ca1\u6709\u672a\u6765\u7684\u5979\u201d\u5bf9\u4ed6\u4eba\u6beb\u65e0\u5174\u8da3\uff0c\u603b\u662f\u72ec\u81ea\u4e00\u4eba\u8bfb\u4e66\u7684\u9ad8\u4e2d\u751f\u201c\u6211\u201d\u3002\u8fd9\u6837\u7684\u201c\u6211\u201d\u6709\u4e00\u5929\uff0c\u5076\u7136\u6361\u5230\u4e00\u518c\u5199\u7740\u300a\u5171\u75c5\u6587\u5e93\u300b\u7684\u6587\u5e93\u672c\u3002\u90a3\u662f\uff0c\u5929\u771f\u70c2\u6f2b\u7684\u73ed\u4e0a\u4eba\u6c14\u738b\xb7\u5c71\u5185\u6a31\u826f\u79c1\u4e0b\u8bb0\u5f55\u7684\u65e5\u8bb0\u672c\u3002\u91cc\u9762\u8bb0\u8f7d\u7740\u5979\u8eab\u60a3\u80f0\u810f\u7684\u75be\u75c5\uff0c\u5df2\u7ecf\u65f6\u65e5\u65e0\u591a\u2026\u2026\u3002\u9690\u85cf\u81ea\u5df1\u7684\u75be\u75c5\u5ea6\u8fc7\u65e5\u5e38\u7684\u6a31\u826f\uff0c\u4e0e\u77e5\u6653\u5176\u79d8\u5bc6\u7684\u201c\u6211\u201d\u3002\u2014\u2014\u4e24\u4eba\u7684\u8ddd\u79bb\uff0c\u8fd8\u6ca1\u6709\u540d\u5b57\u3002","Tags":"\u5176\u4ed6","Status":4,"Type":"video","IsPined":1,"IsRecommend":2,"IsOriginal":1,"CreatedAt":"2022-05-18T15:22:49+08:00","UpdatedAt":"2022-05-18T15:33:11+08:00","Meta":{"TitleJapanese":"","TitleRomanji":"","Genre":"\u52a8\u753b\u7535\u5f71","Region":"\u4e2d\u56fd","Episodes":1,"IsEnd":2,"PublishDate":null,"UpdatedDate":null},"Creator":{"ID":1,"Name":"root","Nickname":"YUESE","Avatar":"https://q1.qlogo.cn/g?b=qq&nk=7619376472&s=640","Bio":"\u8fd9\u4e2a\u4eba\u5f88\u9177\uff0c\u4ec0\u4e48\u90fd\u6ca1\u6709\u7559\u4e0b"},"Hits":2,"IsLiked":1,"LikesCount":0,"IsCollected":1,"CollectionCount":0,"CommentCount":0}}')},5320:e=>{"use strict";e.exports=JSON.parse('{"data":{"ID":"77745a95-b5db-4c0b-ad08-0a55a6e70f49","Cover":"https://91m.pilipata.com/upload/vod/20220524-1/552c0b86fab876803f789b73ea22fe11.jpg","Title":"\u8a00\u53f6\u4e4b\u5ead","Content":"","Tags":"\u5176\u4ed6","Status":4,"Type":"video","IsPined":1,"IsRecommend":2,"IsOriginal":1,"CreatedAt":"2022-05-24T20:51:22+08:00","UpdatedAt":"2022-05-24T21:01:49+08:00","Meta":{"TitleJapanese":"","TitleRomanji":"","Genre":"\u756a\u5267","Region":"\u65e5\u672c","Episodes":1,"IsEnd":1,"PublishDate":null,"UpdatedDate":null},"Creator":{"ID":1,"Name":"root","Nickname":"YUESE","Avatar":"https://q1.qlogo.cn/g?b=qq&nk=7619376472&s=640","Bio":"\u8fd9\u4e2a\u4eba\u5f88\u9177\uff0c\u4ec0\u4e48\u90fd\u6ca1\u6709\u7559\u4e0b"},"Hits":14,"IsLiked":1,"LikesCount":0,"IsCollected":1,"CollectionCount":0,"CommentCount":0}}')},6854:e=>{"use strict";e.exports=JSON.parse('{"data":{"ID":"9","Cover":"https://cdn.tupianla.cc/images/5ikmj/uploads/allimg/210823/25469c1f97c06ad6.jpg","Title":"\u79d2\u901f5\u5398\u7c73","Content":"","Tags":"\u5176\u4ed6","Status":4,"Type":"video","IsPined":1,"IsRecommend":2,"IsOriginal":1,"CreatedAt":"2022-05-20T12:57:32+08:00","UpdatedAt":"2022-05-20T15:19:26+08:00","Meta":{"TitleJapanese":"","TitleRomanji":"","Genre":"\u756a\u5267","Region":"\u65e5\u672c","Episodes":0,"IsEnd":1,"PublishDate":null,"UpdatedDate":null},"Creator":{"ID":1,"Name":"root","Nickname":"YUESE","Avatar":"https://q1.qlogo.cn/g?b=qq&nk=7619376472&s=640","Bio":"\u8fd9\u4e2a\u4eba\u5f88\u9177\uff0c\u4ec0\u4e48\u90fd\u6ca1\u6709\u7559\u4e0b"},"Hits":22,"IsLiked":1,"LikesCount":0,"IsCollected":1,"CollectionCount":0,"CommentCount":0}}')},9528:e=>{"use strict";e.exports=JSON.parse('{"data":{"ID":"a7a1345e-1bc8-4793-9650-a0ee89b6d74b","Cover":"","Title":"\u65b0 QQ \u7fa4","Content":"\u70b9\u51fb\u94fe\u63a5\u52a0\u5165\u7fa4\u804a\u3010\u6708\u8272\u771f\u7f8e\u3011\uff1a[https://jq.qq.com/?_wv=1027&k=EFpgexC8](https://jq.qq.com/?_wv=1027&k=EFpgexC8)","Tags":"\u516c\u544a","Status":4,"Type":"post","IsPined":1,"IsRecommend":1,"IsOriginal":1,"CreatedAt":"2022-06-25T23:47:53+08:00","UpdatedAt":"2022-06-25T23:50:19+08:00","Creator":{"ID":1,"Name":"root","Nickname":"YUESE","Avatar":"https://q1.qlogo.cn/g?b=qq&nk=7619376472&s=640","Bio":"\u8fd9\u4e2a\u4eba\u5f88\u9177\uff0c\u4ec0\u4e48\u90fd\u6ca1\u6709\u7559\u4e0b"},"Hits":69,"IsLiked":1,"LikesCount":0,"IsCollected":1,"CollectionCount":0,"CommentCount":0}}')},274:e=>{"use strict";e.exports=JSON.parse('{"data":{"ID":"b2cf7c39-3f62-45c0-bbe1-a9522ff24cb7","Cover":"https://pic.monidai.com/img/55208d35c4e9b.jpg","Title":"\u5076\u7136\u4e0e\u60f3\u8c61","Content":"","Tags":"\u5176\u4ed6","Status":4,"Type":"video","IsPined":1,"IsRecommend":2,"IsOriginal":1,"CreatedAt":"2022-06-03T12:51:29+08:00","UpdatedAt":"2022-06-03T12:55:56+08:00","Meta":{"TitleJapanese":"","TitleRomanji":"","Genre":"\u756a\u5267","Region":"\u65e5\u672c","Episodes":13,"IsEnd":2,"PublishDate":"2015-01-01T08:00:00+08:00","UpdatedDate":null},"Creator":{"ID":1,"Name":"root","Nickname":"YUESE","Avatar":"https://q1.qlogo.cn/g?b=qq&nk=7619376472&s=640","Bio":"\u8fd9\u4e2a\u4eba\u5f88\u9177\uff0c\u4ec0\u4e48\u90fd\u6ca1\u6709\u7559\u4e0b"},"Hits":22,"IsLiked":1,"LikesCount":0,"IsCollected":1,"CollectionCount":0,"CommentCount":0}}')}}]); \ No newline at end of file diff --git a/static/js/122.a3590436.chunk.js.LICENSE.txt b/static/js/122.3bda5e5a.chunk.js.LICENSE.txt similarity index 100% rename from static/js/122.a3590436.chunk.js.LICENSE.txt rename to static/js/122.3bda5e5a.chunk.js.LICENSE.txt diff --git a/static/js/122.a3590436.chunk.js b/static/js/122.a3590436.chunk.js deleted file mode 100644 index a0edc5f3..00000000 --- a/static/js/122.a3590436.chunk.js +++ /dev/null @@ -1,2 +0,0 @@ -/*! For license information please see 122.a3590436.chunk.js.LICENSE.txt */ -(self.webpackChunk_web_index=self.webpackChunk_web_index||[]).push([[122,265,806,450,815,919,852,741,512,320,854,147,274],{3902:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(568),s=r(4676),o=r(6638),a=r.n(o);function i({title:e,icon:t,videos:r,asideTitle:o,aside:i,moreUrl:l,isLive:c}){return(0,n.jsxs)("div",{className:a()("upv-grid",{"col-2":o,"is-live":c}),children:[(0,n.jsxs)("div",{className:"upv-card-list",children:[(0,n.jsxs)("div",{className:"list-header",children:[(0,n.jsxs)("div",{children:[t&&(0,n.jsx)("img",{src:t,alt:e}),(0,n.jsx)("h2",{children:e})]}),l&&r&&r.length>0&&(0,n.jsxs)("a",{className:"list-header__more",href:l,target:"_blank",children:["more",(0,n.jsxs)("svg",{width:"10",height:"10",viewBox:"0 0 9 9",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"channel-entry-more__link--arrow",children:[(0,n.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.50588 3.40623C7.40825 3.3086 7.24996 3.3086 7.15232 3.40623L4.41244 6.14612L1.67255 3.40623C1.57491 3.3086 1.41662 3.3086 1.31899 3.40623C1.22136 3.50386 1.22136 3.66215 1.31899 3.75978L4.11781 6.5586C4.28053 6.72132 4.54434 6.72132 4.70706 6.5586L7.50588 3.75978C7.60351 3.66215 7.60351 3.50386 7.50588 3.40623Z",fill:"currentColor"}),(0,n.jsx)("path",{d:"M7.15232 3.40623L7.50588 3.75978L7.50588 3.75978L7.15232 3.40623ZM7.50588 3.40623L7.15232 3.75978L7.15233 3.75978L7.50588 3.40623ZM4.41244 6.14612L4.05888 6.49967C4.15265 6.59344 4.27983 6.64612 4.41244 6.64612C4.54504 6.64612 4.67222 6.59344 4.76599 6.49967L4.41244 6.14612ZM1.67255 3.40623L2.0261 3.05268L2.0261 3.05268L1.67255 3.40623ZM1.31899 3.40623L0.965439 3.05268L0.965439 3.05268L1.31899 3.40623ZM1.31899 3.75978L1.67255 3.40623V3.40623L1.31899 3.75978ZM4.11781 6.5586L3.76425 6.91215L4.11781 6.5586ZM4.70706 6.5586L4.35351 6.20505L4.70706 6.5586ZM7.50588 3.75978L7.15233 3.40623L7.15232 3.40623L7.50588 3.75978ZM7.50588 3.75978C7.40825 3.85742 7.24996 3.85742 7.15232 3.75978L7.85943 3.05268C7.56654 2.75978 7.09166 2.75978 6.79877 3.05268L7.50588 3.75978ZM4.76599 6.49967L7.50588 3.75978L6.79877 3.05268L4.05888 5.79257L4.76599 6.49967ZM1.31899 3.75978L4.05888 6.49967L4.76599 5.79257L2.0261 3.05268L1.31899 3.75978ZM1.67254 3.75979C1.57491 3.85742 1.41662 3.85742 1.31899 3.75979L2.0261 3.05268C1.73321 2.75978 1.25833 2.75978 0.965439 3.05268L1.67254 3.75979ZM1.67255 3.40623C1.77018 3.50386 1.77018 3.66215 1.67255 3.75978L0.965439 3.05268C0.672546 3.34557 0.672546 3.82044 0.965439 4.11334L1.67255 3.40623ZM4.47136 6.20505L1.67255 3.40623L0.965439 4.11334L3.76425 6.91215L4.47136 6.20505ZM4.35351 6.20505C4.38605 6.1725 4.43882 6.1725 4.47136 6.20505L3.76425 6.91215C4.12223 7.27013 4.70264 7.27013 5.06062 6.91215L4.35351 6.20505ZM7.15232 3.40623L4.35351 6.20505L5.06062 6.91215L7.85943 4.11334L7.15232 3.40623ZM7.15233 3.75978C7.05469 3.66215 7.05469 3.50386 7.15233 3.40623L7.85943 4.11334C8.15233 3.82045 8.15233 3.34557 7.85943 3.05268L7.15233 3.75978Z",fill:"currentColor"})]})]})]}),(0,n.jsx)("div",{className:"list-body",children:r?r.length>0?r.map(((e,t)=>c?(0,n.jsx)(s.x,Object.assign({},e),t):(0,n.jsx)(s.A,{info:e},t))):(0,n.jsx)("div",{className:"empty",children:"No Data"}):(0,n.jsx)("span",{className:"loading empty",children:"loading\xb7\xb7\xb7"})})]}),!!o&&(0,n.jsxs)("aside",{children:[(0,n.jsx)("div",{className:"aside-header",children:(0,n.jsx)("div",{className:"aside-title",children:o})}),(0,n.jsx)("div",{className:"aside-body",children:i})]})]})}},4676:(e,t,r)=>{"use strict";r.d(t,{x:()=>g,A:()=>m});var n=r(568),s=r(548),o=r(1908),a=r(5219),i=r(6638),l=r.n(i),c=r(6192);const d=6;let p;const u="loading"in HTMLImageElement.prototype;function m({info:e}){var t;const r="video"===e.Type?`/v/${e.ID}`:`/p/${e.ID}`,i=(0,s.useRef)(null);return(0,s.useEffect)((()=>{var e;if(p&&(null===(e=i.current)||void 0===e?void 0:e.dataset.cover))return p.observe(i.current),()=>{i.current&&(p.unobserve(i.current),i.current.querySelector(".upv-video-card__loading").classList.remove("upv-video-card__loading--hidden"),i.current.querySelector(".upv-video-card__error").classList.remove("upv-video-card__error--show"))}}),[i,e]),(0,n.jsxs)("div",{className:"upv-video-card",children:[(0,n.jsx)(c.N_,{href:r,children:(0,n.jsx)("div",{ref:i,"data-cover":e.Cover,title:e.Title,children:(0,n.jsxs)(o.A,{ratio:3/4,children:[e.Cover&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("img",{loading:"lazy",className:"upv-video-card__image",alt:e.Title,title:e.Title,"data-src":e.Cover,src:u?e.Cover:void 0}),!u&&[(0,n.jsx)("div",{className:"upv-video-card__loading",children:"LOADING"}),(0,n.jsx)("div",{className:"upv-video-card__error",children:"ERROR"})]]}),(0,n.jsx)("div",{className:l()("upv-video-card__nocover",{"upv-video-card__nocover--show":!e.Cover}),children:(0,n.jsx)("span",{className:l()({large:e.Title.length<=4}),children:e.Title.slice(0,d)})})]})})}),(0,n.jsxs)("div",{className:"upv-video-card__content",children:[(0,n.jsx)("div",{className:"upv-video-card__content__title",children:e.Title}),(0,n.jsxs)("div",{className:"upv-video-card__content__author",children:[(0,n.jsx)("span",{children:(null===(t=e.Creator)||void 0===t?void 0:t.Nickname)||"-"})," \xb7 ",(0,n.jsx)("span",{children:(0,a.D$)(e.CreatedAt)})]})]})]})}function g({id:e,level:t,name:r,qq:s,sign:o}){return(0,n.jsx)("a",{href:`/v/${e}?live`,children:(0,n.jsxs)("div",{className:"live-card",style:{display:"flex"},children:[(0,n.jsx)("div",{className:"live-avatar",children:(0,n.jsx)("img",{src:`https://q1.qlogo.cn/g?b=qq&nk=${s}&s=640`,alt:"name"})}),(0,n.jsxs)("div",{className:"live-info",children:[(0,n.jsxs)("span",{children:[o," ",(0,n.jsx)("sup",{children:t})]}),(0,n.jsx)("span",{children:r})]})]})})}u||(p=new IntersectionObserver((e=>{e.forEach((e=>{if(e.isIntersecting){const t=e.target;p.unobserve(t);const r=t.querySelector("img");r.src=r.dataset.src,r.onload=()=>{t.querySelector(".upv-video-card__loading").classList.add("upv-video-card__loading--hidden")},r.onerror=()=>{t.querySelector(".upv-video-card__error").classList.add("upv-video-card__error--show")}}}))}),{threshold:[.15]}))},83:(e,t,r)=>{"use strict";r.d(t,{gL:()=>s,ho:()=>a});function n(e){if(!e)return"https://ae01.alicdn.com/kf/U6751d35799cc4d06965aa7b1879e0fc6i.jpg";let t=e.match(/suo(.+?)\)/i);return t?t[1].slice(2):"https://cdn-us.imgs.moe/2023/02/27/63fcb180cbb30.jpg"}const s=e=>e?Object.assign(Object.assign({},e),{adp:!0,clicli:!0,ID:e.id,Cover:n(e.content),Title:e.title,Content:e.content,Tags:e.tag,Type:"video",CreatedAt:e.time,UpdatedAt:e.time,Meta:{TitleJapanese:"",TitleRomanji:"",Genre:e.sort,Region:"clicli",Episodes:e.content.split("\n").length,IsEnd:2,PublishDate:e.time,UpdatedDate:null},Creator:{ID:1,Name:"YUESE",Nickname:"YUESE",Avatar:"https://q1.qlogo.cn/g?b=qq&nk=7619376472&s=640",Bio:"\u8fd9\u4e2a\u4eba\u5f88\u9177\uff0c\u4ec0\u4e48\u90fd\u6ca1\u6709\u7559\u4e0b"},episodes:e.content.split("\n").map((t=>({ID:t.split("$")[0],Episode:t.split("$")[0],Cover:n(e.content),Title:t.split("$")[0],TitleJapanese:"",TitleRomanji:"",VideoUrl:"",Synopsis:"",Uid:1,Pid:e.id,CreatedAt:e.time,UpdatedAt:e.time})))}):{},o=[3421,31,786,3880,2617],a=(e=[])=>e.filter((e=>!o.includes(e.id))).map(s)},7122:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>m});var n=r(568),s=r(548),o=r(963),a=r(3902),i=r(83),l=r(6192),c=r(9841),d=r(3987);const p={},u=r(8635);function m(){const[e,t]=(0,s.useState)(),{title:r,type:m,page:g=1,tag:f}=c.A.parse((0,l.SQ)()),[,v]=(0,l.zy)(),h=e=>{const t=Object.assign({},c.A.parse(window.location.search),{page:e});v(`/pv/tag?${c.A.stringify(t)}`),root.scrollTop=0};return(0,s.useEffect)((()=>{if("recent"==m||"popular"==m||f)t(null),d.OF.get(`https://www.clicli.cc/posts?status=public&sort=&tag=${"popular"==m?"\u63a8\u8350":f}&uid=&page=${g}&pageSize=24`).then((e=>{t((0,i.ho)(e.posts))}));else{u.keys().filter((e=>!e.startsWith("./-"))).forEach((e=>p[e]=u(e).data));const e=Object.values(p).splice(20*(+g-1),20);t(e)}}),[g]),(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(o.m,{children:(0,n.jsx)("title",{children:`${r} - UPV - free animes no ads`})}),(0,n.jsxs)("div",{className:"search",children:[(0,n.jsx)("div",{className:"search-header"}),(0,n.jsxs)("div",{className:"search-body",children:[(0,n.jsx)(a.A,{title:r,videos:e}),"recommends"!=m&&(0,n.jsxs)("div",{className:"paginate-container field has-addons",style:{justifyContent:"center",paddingBottom:"28px"},children:[(0,n.jsx)("p",{className:"control",children:(0,n.jsx)("button",{className:"button",onClick:()=>h(+g-1),disabled:+g<=1,children:(0,n.jsx)("span",{children:"Newer"})})}),(0,n.jsx)("p",{className:"control",children:(0,n.jsx)("button",{className:"button is-outlined",disabled:!e||e&&e.length<1||e.length<12,onClick:()=>h(+g+1),children:(0,n.jsx)("span",{className:"is-primary",children:"Older"})})})]})]})]})]})}},1908:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var n=r(568);const s=e=>{const{children:t,ratio:r,mw:s}=e;return(0,n.jsx)("div",{className:"aspect-ratio",style:{width:"string"===typeof s?s:`${s}px`},children:(0,n.jsx)("div",{className:"aspect-ratio__fill",style:{paddingTop:1/r*100+"%"},children:t})})}},5219:(e,t,r)=>{"use strict";function n(e){const t=new Date,r=new Date(e),n=(t.getTime()-r.getTime())/1e3;return n<30?"\u521a\u521a":n<3600?Math.ceil(n/60)+"\u5206\u949f\u524d":n<86400?Math.ceil(n/3600)+"\u5c0f\u65f6\u524d":n<172800?"1\u5929\u524d":n<2678400?Math.ceil(n/3600/24)+"\u5929\u524d":t.getFullYear()===r.getFullYear()?`${r.getMonth()+1}\u6708${r.getDate()}\u65e5`:`${r.getFullYear()}\u5e74${r.getMonth()+1}\u6708${r.getDate()}\u65e5`}function s(e,t=!1){const r=new Date(e);return(new Date).getFullYear()===r.getFullYear()?`${r.getMonth()+1}\u6708${r.getDate()}\u65e5 ${t?` ${r.getHours()}:${r.getMinutes().toString().padStart(2,"0")}`:""}`:`${r.getFullYear()}\u5e74${r.getMonth()+1}\u6708${r.getDate()}\u65e5 ${t?` ${r.getHours()}:${r.getMinutes().toString().padStart(2,"0")}`:""}`}r.d(t,{D$:()=>n,Yq:()=>s})},8635:(e,t,r)=>{var n={"./0.json":265,"./1.json":5806,"./10.json":8450,"./131478f2-31cd-446a-9cb2-15158b8c3efe.json":3815,"./2.json":5919,"./3.json":9852,"./4.json":9741,"./7.json":512,"./77745a95-b5db-4c0b-ad08-0a55a6e70f49.json":5320,"./9.json":6854,"./a7a1345e-1bc8-4793-9650-a0ee89b6d74b.json":9528,"./b2cf7c39-3f62-45c0-bbe1-a9522ff24cb7.json":274};function s(e){var t=o(e);return r(t)}function o(e){if(!r.o(n,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return n[e]}s.keys=function(){return Object.keys(n)},s.resolve=o,e.exports=s,s.id=8635},6638:(e,t)=>{var r;!function(){"use strict";var n={}.hasOwnProperty;function s(){for(var e="",t=0;t{"use strict";r.d(t,{A:()=>E});var n={};r.r(n),r.d(n,{exclude:()=>L,extract:()=>y,parse:()=>I,parseUrl:()=>x,pick:()=>N,stringify:()=>T,stringifyUrl:()=>k});const s="%[a-f0-9]{2}",o=new RegExp("("+s+")|([^%]+?)","gi"),a=new RegExp("("+s+")+","gi");function i(e,t){try{return[decodeURIComponent(e.join(""))]}catch{}if(1===e.length)return e;t=t||1;const r=e.slice(0,t),n=e.slice(t);return Array.prototype.concat.call([],i(r),i(n))}function l(e){try{return decodeURIComponent(e)}catch{let t=e.match(o)||[];for(let r=1;rnull===e||void 0===e,m=e=>encodeURIComponent(e).replaceAll(/[!'()*]/g,(e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`)),g=Symbol("encodeFragmentIdentifier");function f(e){if("string"!==typeof e||1!==e.length)throw new TypeError("arrayFormatSeparator must be single character string")}function v(e,t){return t.encode?t.strict?m(e):encodeURIComponent(e):e}function h(e,t){return t.decode?c(e):e}function C(e){return Array.isArray(e)?e.sort():"object"===typeof e?C(Object.keys(e)).sort(((e,t)=>Number(e)-Number(t))).map((t=>e[t])):e}function j(e){const t=e.indexOf("#");return-1!==t&&(e=e.slice(0,t)),e}function b(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 y(e){const t=(e=j(e)).indexOf("?");return-1===t?"":e.slice(t+1)}function I(e,t){f((t={decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1,...t}).arrayFormatSeparator);const r=function(e){let t;switch(e.arrayFormat){case"index":return(e,r,n)=>{t=/\[(\d*)]$/.exec(e),e=e.replace(/\[\d*]$/,""),t?(void 0===n[e]&&(n[e]={}),n[e][t[1]]=r):n[e]=r};case"bracket":return(e,r,n)=>{t=/(\[])$/.exec(e),e=e.replace(/\[]$/,""),t?void 0!==n[e]?n[e]=[...n[e],r]:n[e]=[r]:n[e]=r};case"colon-list-separator":return(e,r,n)=>{t=/(:list)$/.exec(e),e=e.replace(/:list$/,""),t?void 0!==n[e]?n[e]=[...n[e],r]:n[e]=[r]:n[e]=r};case"comma":case"separator":return(t,r,n)=>{const s="string"===typeof r&&r.includes(e.arrayFormatSeparator),o="string"===typeof r&&!s&&h(r,e).includes(e.arrayFormatSeparator);r=o?h(r,e):r;const a=s||o?r.split(e.arrayFormatSeparator).map((t=>h(t,e))):null===r?r:h(r,e);n[t]=a};case"bracket-separator":return(t,r,n)=>{const s=/(\[])$/.test(t);if(t=t.replace(/\[]$/,""),!s)return void(n[t]=r?h(r,e):r);const o=null===r?[]:r.split(e.arrayFormatSeparator).map((t=>h(t,e)));void 0!==n[t]?n[t]=[...n[t],...o]:n[t]=o};default:return(e,t,r)=>{void 0!==r[e]?r[e]=[...[r[e]].flat(),t]:r[e]=t}}}(t),n=Object.create(null);if("string"!==typeof e)return n;if(!(e=e.trim().replace(/^[?#&]/,"")))return n;for(const s of e.split("&")){if(""===s)continue;const e=t.decode?s.replaceAll("+"," "):s;let[o,a]=d(e,"=");void 0===o&&(o=e),a=void 0===a?null:["comma","separator","bracket-separator"].includes(t.arrayFormat)?a:h(a,t),r(h(o,t),a,n)}for(const[s,o]of Object.entries(n))if("object"===typeof o&&null!==o)for(const[e,r]of Object.entries(o))o[e]=b(r,t);else n[s]=b(o,t);return!1===t.sort?n:(!0===t.sort?Object.keys(n).sort():Object.keys(n).sort(t.sort)).reduce(((e,t)=>{const r=n[t];return e[t]=Boolean(r)&&"object"===typeof r&&!Array.isArray(r)?C(r):r,e}),Object.create(null))}function T(e,t){if(!e)return"";f((t={encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:",",...t}).arrayFormatSeparator);const r=r=>t.skipNull&&u(e[r])||t.skipEmptyString&&""===e[r],n=function(e){switch(e.arrayFormat){case"index":return t=>(r,n)=>{const s=r.length;return void 0===n||e.skipNull&&null===n||e.skipEmptyString&&""===n?r:null===n?[...r,[v(t,e),"[",s,"]"].join("")]:[...r,[v(t,e),"[",v(s,e),"]=",v(n,e)].join("")]};case"bracket":return t=>(r,n)=>void 0===n||e.skipNull&&null===n||e.skipEmptyString&&""===n?r:null===n?[...r,[v(t,e),"[]"].join("")]:[...r,[v(t,e),"[]=",v(n,e)].join("")];case"colon-list-separator":return t=>(r,n)=>void 0===n||e.skipNull&&null===n||e.skipEmptyString&&""===n?r:null===n?[...r,[v(t,e),":list="].join("")]:[...r,[v(t,e),":list=",v(n,e)].join("")];case"comma":case"separator":case"bracket-separator":{const t="bracket-separator"===e.arrayFormat?"[]=":"=";return r=>(n,s)=>void 0===s||e.skipNull&&null===s||e.skipEmptyString&&""===s?n:(s=null===s?"":s,0===n.length?[[v(r,e),t,v(s,e)].join("")]:[[n,v(s,e)].join(e.arrayFormatSeparator)])}default:return t=>(r,n)=>void 0===n||e.skipNull&&null===n||e.skipEmptyString&&""===n?r:null===n?[...r,v(t,e)]:[...r,[v(t,e),"=",v(n,e)].join("")]}}(t),s={};for(const[a,i]of Object.entries(e))r(a)||(s[a]=i);const o=Object.keys(s);return!1!==t.sort&&o.sort(t.sort),o.map((r=>{const s=e[r];return void 0===s?"":null===s?v(r,t):Array.isArray(s)?0===s.length&&"bracket-separator"===t.arrayFormat?v(r,t)+"[]":s.reduce(n(r),[]).join("&"):v(r,t)+"="+v(s,t)})).filter((e=>e.length>0)).join("&")}function x(e,t){t={decode:!0,...t};let[r,n]=d(e,"#");return void 0===r&&(r=e),{url:r?.split("?")?.[0]??"",query:I(y(e),t),...t&&t.parseFragmentIdentifier&&n?{fragmentIdentifier:h(n,t)}:{}}}function k(e,t){t={encode:!0,strict:!0,[g]:!0,...t};const r=j(e.url).split("?")[0]||"";let n=T({...I(y(e.url),{sort:!1}),...e.query},t);n&&=`?${n}`;let s=function(e){let t="";const r=e.indexOf("#");return-1!==r&&(t=e.slice(r)),t}(e.url);if("string"===typeof e.fragmentIdentifier){const n=new URL(r);n.hash=e.fragmentIdentifier,s=t[g]?n.hash:`#${e.fragmentIdentifier}`}return`${r}${n}${s}`}function N(e,t,r){r={parseFragmentIdentifier:!0,[g]:!1,...r};const{url:n,query:s,fragmentIdentifier:o}=x(e,r);return k({url:n,query:p(s,t),fragmentIdentifier:o},r)}function L(e,t,r){return N(e,Array.isArray(t)?e=>!t.includes(e):(e,r)=>!t(e,r),r)}const E=n},265:e=>{"use strict";e.exports=JSON.parse('{"data":{"ID":"0","Cover":"https://image.maimn.com/cover/aca8d4b0dd45052f72fc42d3e5a5deff.jpg","Title":"\u94c3\u82bd\u4e4b\u65c5","Content":"","Tags":"\u5176\u4ed6","Status":4,"Type":"video","IsPined":1,"IsRecommend":2,"IsOriginal":1,"CreatedAt":"2022-05-12T15:44:00+08:00","UpdatedAt":"2022-05-12T16:40:13+08:00","Meta":{"TitleJapanese":"","TitleRomanji":"","Genre":"\u756a\u5267","Region":"\u65e5\u672c","Episodes":12,"IsEnd":2,"PublishDate":null,"UpdatedDate":null},"Creator":{"ID":1,"Name":"root","Nickname":"YUESE","Avatar":"https://q1.qlogo.cn/g?b=qq&nk=7619376472&s=640","Bio":"\u8fd9\u4e2a\u4eba\u5f88\u9177\uff0c\u4ec0\u4e48\u90fd\u6ca1\u6709\u7559\u4e0b"},"Hits":33,"IsLiked":1,"LikesCount":1,"IsCollected":1,"CollectionCount":0,"CommentCount":0}}')},5806:e=>{"use strict";e.exports=JSON.parse('{"data":{"ID":"1","Cover":"https://img1.doubanio.com/view/photo/l/public/p2593787027.webp","Title":"\u5f02\u79cd\u65cf\u98ce\u4fd7\u5a18\u8bc4\u9274\u6307\u5357","Content":"\u8fd9\u91cc\u4e0d\u4ec5\u662f\u4eba\u7c7b\uff0c\u8fd8\u6709\u827e\u5c14\u592b\u3001\u517d\u4eba\u3001\u6076\u9b54\u3001\u5929\u4f7f\uff0c\u6240\u6709\u5f02\u79cd\u65cf\u6df7\u5728\u4e00\u8d77\u751f\u6d3b\u7684\u4e16\u754c\u3002\u90a3\u91cc\u5f53\u7136\u4e5f\u6709\u5404\u79cd\u5f02\u65cf\u7684\u5199\u751f\u5e97\u2026\u3002\\n\u5728\u63d0\u4f9b\u8db3\u4e0d\u51fa\u6237\u7684\u670d\u52a1\u7684\u5e97\u91cc\u5de5\u4f5c\u7684\u4eba\u7c7b\u5192\u9669\u8005\u53f2\u5766\u514b\uff0c\u6709\u4e00\u5929\u56e0\u79cd\u65cf\u95f4(\u6027\u610f\u4e49\u4e0a\u7684)\u611f\u6027\u5dee\u5f02\uff0c\u4e0e\u6076\u53cb\u827e\u6d1b\u57c3\u5c14\u592b\xb7\u585e\u5c14\u53d1\u751f\u51b2\u7a81\u3002\\n\u7ec8\u7ed3\u7684\u65b9\u6cd5\u662f\u2026\u2026\u5973\u513f\u7684\u8bc4\u8bba!?\u4ee5\u4ea4\u53c9\u8bc4\u8bba\u7684\u65b9\u5f0f\u5bf9\u6240\u6709\u5f02\u79cd\u65cf\u59d1\u5a18\u7684\u670d\u52a1\u8fdb\u884c\u8bc4\u5206\uff0c\u4f5c\u4e3a\u7ed9\u5176\u4ed6\u540c\u4f34\u7684\u201c\u89d2\u8272\u52c3\u201d\u4fe1\u606f\u63d0\u4f9b\u7684\u65af\u5766\u514b\u4eec\u7684\u6d3b\u8dc3\uff0c\u7b80\u76f4\u5c31\u50cf\u6027\u6218\u58eb\u4e00\u6837!\\n\u4eca\u5929\uff0c\u5973\u58eb\u4eec\u4e5f\u4e3a\u4e86\u5bfb\u627e\u65b0\u7684\u5feb\u4e50\u800c\u5f00\u59cb\u65c5\u884c\u2026\u2026\u3002","Tags":"\u5176\u4ed6","Status":4,"Type":"video","IsPined":1,"IsRecommend":2,"IsOriginal":1,"CreatedAt":"2022-05-12T15:44:00+08:00","UpdatedAt":"2022-05-12T16:40:13+08:00","Meta":{"TitleJapanese":"","TitleRomanji":"","Genre":"\u756a\u5267","Region":"\u65e5\u672c","Episodes":12,"IsEnd":2,"PublishDate":null,"UpdatedDate":null},"Creator":{"ID":1,"Name":"root","Nickname":"YUESE","Avatar":"https://q1.qlogo.cn/g?b=qq&nk=7619376472&s=640","Bio":"\u8fd9\u4e2a\u4eba\u5f88\u9177\uff0c\u4ec0\u4e48\u90fd\u6ca1\u6709\u7559\u4e0b"},"Hits":33,"IsLiked":1,"LikesCount":1,"IsCollected":1,"CollectionCount":0,"CommentCount":0}}')},8450:e=>{"use strict";e.exports=JSON.parse('{"data":{"ID":"10","Cover":"http://pic.ku-img.com/upload/vod/20220507-1/3f028116b79860ca1d1bbd7560129225.jpg","Title":"\u7231\uff0c\u6b7b\u4ea1\u548c\u673a\u5668\u4eba\u7b2c\u4e09\u5b63","Content":"\u827e\u7f8e\u5956\u83b7\u5956\u52a8\u753b\u9009\u96c6\u300a\u7231\u3001\u6b7b\u4ea1 & \u673a\u5668\u4eba\u300b\u7b2c\u4e09\u90e8\u56de\u5f52\uff0c\u7531\u8482\u59c6\xb7\u7c73\u52d2\uff08\u300a\u6b7b\u4f8d\u300b\u300a\u7ec8\u7ed3\u8005\uff1a\u9ed1\u6697\u547d\u8fd0\u300b\uff09\u548c\u5927\u536b\xb7\u82ac\u5947\uff08\u300a\u5fc3\u7075\u730e\u4eba\u300b\u300a\u66fc\u514b\u300b\uff09\u62c5\u4efb\u76d1\u5236\u3002\u6050\u6016\u3001\u60f3\u8c61\u529b\u548c\u7f8e\u5728\u65b0\u5267\u96c6\u4e2d\u5b8c\u7f8e\u878d\u5408\uff0c\u4ece\u63ed\u793a\u53e4\u8001\u7684\u90aa\u6076\u529b\u91cf\u5230\u559c\u5267\u822c\u7684\u672b\u65e5\uff0c\u5267\u96c6\u4ee5\u6807\u5fd7\u6027\u7684\u5de7\u601d\u548c\u521b\u9020\u6027\u7684\u89c6\u89c9\u6548\u679c\uff0c\u4e3a\u89c2\u4f17\u5e26\u6765\u4ee4\u4eba\u9707\u60ca\u7684\u5947\u5e7b\u3001\u6050\u6016\u548c\u79d1\u5e7b\u77ed\u7bc7\u6545\u4e8b\u3002","Tags":"R15","Status":4,"Type":"video","IsPined":1,"IsRecommend":2,"IsOriginal":1,"CreatedAt":"2022-05-21T13:44:16+08:00","UpdatedAt":"2022-05-21T13:54:18+08:00","Meta":{"TitleJapanese":"","TitleRomanji":"","Genre":"\u7535\u89c6\u5267","Region":"\u7f8e\u56fd","Episodes":0,"IsEnd":1,"PublishDate":null,"UpdatedDate":null},"Creator":{"ID":1,"Name":"root","Nickname":"YUESE","Avatar":"https://q1.qlogo.cn/g?b=qq&nk=7619376472&s=640","Bio":"\u8fd9\u4e2a\u4eba\u5f88\u9177\uff0c\u4ec0\u4e48\u90fd\u6ca1\u6709\u7559\u4e0b"},"Hits":71,"IsLiked":1,"LikesCount":0,"IsCollected":1,"CollectionCount":0,"CommentCount":0}}')},3815:e=>{"use strict";e.exports=JSON.parse('{"data":{"ID":"131478f2-31cd-446a-9cb2-15158b8c3efe","Cover":"https://static.iyf.tv/upload/video/201609071605010586376.gif?w=216&h=309&format=jpg&mode=stretch","Title":"\u82b1\u675f\u822c\u7684\u604b\u7231","Content":"","Tags":"\u5176\u4ed6","Status":4,"Type":"video","IsPined":1,"IsRecommend":2,"IsOriginal":1,"CreatedAt":"2022-05-24T21:00:39+08:00","UpdatedAt":"2022-05-24T21:02:47+08:00","Meta":{"TitleJapanese":"","TitleRomanji":"","Genre":"\u7535\u5f71","Region":"\u5176\u4ed6","Episodes":1,"IsEnd":1,"PublishDate":null,"UpdatedDate":null},"Creator":{"ID":1,"Name":"root","Nickname":"YUESE","Avatar":"https://q1.qlogo.cn/g?b=qq&nk=7619376472&s=640","Bio":"\u8fd9\u4e2a\u4eba\u5f88\u9177\uff0c\u4ec0\u4e48\u90fd\u6ca1\u6709\u7559\u4e0b"},"Hits":26,"IsLiked":1,"LikesCount":1,"IsCollected":1,"CollectionCount":0,"CommentCount":0}}')},5919:e=>{"use strict";e.exports=JSON.parse('{"data":{"ID":"2","Cover":"https://s2.loli.net/2022/05/01/nzFqRv3HPryWupg.png","Title":"\u604b\u7231\u8981\u5728\u5f81\u670d\u4e16\u754c\u540e","Content":"\u8bf4\u660e\u4e00\u4e0b\u5427\uff01\u4ee5\u4e16\u754c\u548c\u5e73\u4e3a\u76ee\u6807\u7684\u82f1\u96c4\u6218\u961f\u201c\u6770\u62c9\u72795\u201d\u7684\u961f\u957f\xb7\u76f8\u5ddd\u4e0d\u52a8\uff0c\u4e0e\u4f01\u56fe\u5f81\u670d\u4e16\u754c\u7684\u79d8\u5bc6\u7ed3\u793e\u201c\u683c\u683c\u8f66\u201d\u7684\u6218\u6597\u5458\u961f\u957f\xb7\u201c\u6b7b\u795e\u516c\u4e3b\u201d\u7978\u539f\u6b7b\u4ea1\u7f8e\u3002\u5bbf\u654c\u4e4b\u95f4\u7684\u4ed6\u4eec\uff0c\u6709\u7740\u8d85\u8d8a\u7ec4\u7ec7\u4e4b\u5899\u7684\u6df1\u6df1\u56e0\u7f18\uff01\uff01\u5176\u5b9e\u8fd9\u4e24\u4e2a\u4eba\u2026\u5728\u4ea4\u5f80\uff01\u4e24\u4eba\u6ca1\u6709\u5411\u793e\u4f1a\u548c\u670b\u53cb\u516c\u5f00\uff0c\u5f00\u59cb\u79d8\u5bc6\u4ea4\u5f80\u3002\u4f46\u662f\uff0c\u5bf9\u4e8e\u604b\u7231\u521d\u5b66\u8005\u7684\u7eaf\u6d01\u7684\u4e8c\u4eba\u6765\u8bf4\uff0c\u4e00\u5207\u90fd\u662f\u65b0\u7684\u3002\u4e00\u65e6\u88ab\u53d1\u73b0\uff0c\u6bd4\u8d5b\u5c31\u7ed3\u675f\u7684\u7981\u65ad\u7684\u7231\u60c5\u559c\u5267\u5f00\u59cb\u4e86","Tags":"\u5176\u4ed6","Status":4,"Type":"video","IsPined":1,"IsRecommend":2,"IsOriginal":1,"CreatedAt":"2022-05-12T16:00:40+08:00","UpdatedAt":"2022-05-12T16:40:19+08:00","Meta":{"TitleJapanese":"","TitleRomanji":"","Genre":"\u756a\u5267","Region":"\u65e5\u672c","Episodes":5,"IsEnd":1,"PublishDate":"2022-04-20T08:00:00+08:00","UpdatedDate":"2022-05-13T08:00:00+08:00"},"Creator":{"ID":1,"Name":"root","Nickname":"YUESE","Avatar":"https://q1.qlogo.cn/g?b=qq&nk=7619376472&s=640","Bio":"\u8fd9\u4e2a\u4eba\u5f88\u9177\uff0c\u4ec0\u4e48\u90fd\u6ca1\u6709\u7559\u4e0b"},"Hits":28,"IsLiked":1,"LikesCount":1,"IsCollected":1,"CollectionCount":0,"CommentCount":0}}')},9852:e=>{"use strict";e.exports=JSON.parse('{"data":{"ID":"7","Cover":"https://static.iyf.tv/upload/video/202211201400550056683.gif?w=216&h=309&format=jpg&mode=stretch","Title":"\u64c5\u957f\u6349\u5f04\u7684\u9ad8\u6728\u540c\u5b66 \u5267\u573a\u7248","Content":"\u64c5\u957f\u6349\u5f04\u7684\u9ad8\u6728\u540c\u5b66 \u5267\u573a\u7248","Tags":"\u7231\u60c5,\u6cbb\u6108,\u65e5\u672c\u52a8\u6f2b","Status":4,"Type":"video","IsPined":1,"IsRecommend":2,"IsOriginal":1,"CreatedAt":"2022-05-18T15:22:49+08:00","UpdatedAt":"2022-05-18T15:33:11+08:00","Meta":{"TitleJapanese":"","TitleRomanji":"","Genre":"\u52a8\u753b\u7535\u5f71","Region":"\u65e5\u672c","Episodes":1,"IsEnd":2,"PublishDate":null,"UpdatedDate":null},"Creator":{"ID":1,"Name":"root","Nickname":"YUESE","Avatar":"https://q1.qlogo.cn/g?b=qq&nk=7619376472&s=640","Bio":"\u8fd9\u4e2a\u4eba\u5f88\u9177\uff0c\u4ec0\u4e48\u90fd\u6ca1\u6709\u7559\u4e0b"},"Hits":2,"IsLiked":1,"LikesCount":0,"IsCollected":1,"CollectionCount":0,"CommentCount":0}}')},9741:e=>{"use strict";e.exports=JSON.parse('{"data":{"ID":"1","Cover":"https://img9.doubanio.com/view/photo/l/public/p2883720945.webp","Title":"\u8fdb\u51fb\u7684\u5de8\u4eba \u6700\u7ec8\u5b63 \u5b8c\u7ed3\u7bc7 \u524d\u7bc7","Content":"\u8fdb\u51fb\u7684\u5de8\u4eba \u6700\u7ec8\u5b63 \u5b8c\u7ed3\u7bc7 \u524d\u7bc7","Tags":"\u5176\u4ed6","Status":4,"Type":"video","IsPined":1,"IsRecommend":2,"IsOriginal":1,"CreatedAt":"2022-05-12T15:44:00+08:00","UpdatedAt":"2022-05-12T16:40:13+08:00","Meta":{"TitleJapanese":"","TitleRomanji":"","Genre":"\u756a\u5267","Region":"\u65e5\u672c","Episodes":12,"IsEnd":2,"PublishDate":null,"UpdatedDate":null},"Creator":{"ID":1,"Name":"root","Nickname":"YUESE","Avatar":"https://q1.qlogo.cn/g?b=qq&nk=7619376472&s=640","Bio":"\u8fd9\u4e2a\u4eba\u5f88\u9177\uff0c\u4ec0\u4e48\u90fd\u6ca1\u6709\u7559\u4e0b"},"Hits":33,"IsLiked":1,"LikesCount":1,"IsCollected":1,"CollectionCount":0,"CommentCount":0}}')},512:e=>{"use strict";e.exports=JSON.parse('{"data":{"ID":"7","Cover":"https://cdn.tupianla.cc/images/5ikmj/uploads/allimg/210821/85f7787b37c25437.jpg","Title":"\u6211\u60f3\u5403\u6389\u4f60\u7684\u80f0\u810f","Content":"\u6ca1\u6709\u540d\u5b57\u7684\u6211\uff0c\u6ca1\u6709\u672a\u6765\u7684\u5979\u201d\u5bf9\u4ed6\u4eba\u6beb\u65e0\u5174\u8da3\uff0c\u603b\u662f\u72ec\u81ea\u4e00\u4eba\u8bfb\u4e66\u7684\u9ad8\u4e2d\u751f\u201c\u6211\u201d\u3002\u8fd9\u6837\u7684\u201c\u6211\u201d\u6709\u4e00\u5929\uff0c\u5076\u7136\u6361\u5230\u4e00\u518c\u5199\u7740\u300a\u5171\u75c5\u6587\u5e93\u300b\u7684\u6587\u5e93\u672c\u3002\u90a3\u662f\uff0c\u5929\u771f\u70c2\u6f2b\u7684\u73ed\u4e0a\u4eba\u6c14\u738b\xb7\u5c71\u5185\u6a31\u826f\u79c1\u4e0b\u8bb0\u5f55\u7684\u65e5\u8bb0\u672c\u3002\u91cc\u9762\u8bb0\u8f7d\u7740\u5979\u8eab\u60a3\u80f0\u810f\u7684\u75be\u75c5\uff0c\u5df2\u7ecf\u65f6\u65e5\u65e0\u591a\u2026\u2026\u3002\u9690\u85cf\u81ea\u5df1\u7684\u75be\u75c5\u5ea6\u8fc7\u65e5\u5e38\u7684\u6a31\u826f\uff0c\u4e0e\u77e5\u6653\u5176\u79d8\u5bc6\u7684\u201c\u6211\u201d\u3002\u2014\u2014\u4e24\u4eba\u7684\u8ddd\u79bb\uff0c\u8fd8\u6ca1\u6709\u540d\u5b57\u3002","Tags":"\u5176\u4ed6","Status":4,"Type":"video","IsPined":1,"IsRecommend":2,"IsOriginal":1,"CreatedAt":"2022-05-18T15:22:49+08:00","UpdatedAt":"2022-05-18T15:33:11+08:00","Meta":{"TitleJapanese":"","TitleRomanji":"","Genre":"\u52a8\u753b\u7535\u5f71","Region":"\u4e2d\u56fd","Episodes":1,"IsEnd":2,"PublishDate":null,"UpdatedDate":null},"Creator":{"ID":1,"Name":"root","Nickname":"YUESE","Avatar":"https://q1.qlogo.cn/g?b=qq&nk=7619376472&s=640","Bio":"\u8fd9\u4e2a\u4eba\u5f88\u9177\uff0c\u4ec0\u4e48\u90fd\u6ca1\u6709\u7559\u4e0b"},"Hits":2,"IsLiked":1,"LikesCount":0,"IsCollected":1,"CollectionCount":0,"CommentCount":0}}')},5320:e=>{"use strict";e.exports=JSON.parse('{"data":{"ID":"77745a95-b5db-4c0b-ad08-0a55a6e70f49","Cover":"https://91m.pilipata.com/upload/vod/20220524-1/552c0b86fab876803f789b73ea22fe11.jpg","Title":"\u8a00\u53f6\u4e4b\u5ead","Content":"","Tags":"\u5176\u4ed6","Status":4,"Type":"video","IsPined":1,"IsRecommend":2,"IsOriginal":1,"CreatedAt":"2022-05-24T20:51:22+08:00","UpdatedAt":"2022-05-24T21:01:49+08:00","Meta":{"TitleJapanese":"","TitleRomanji":"","Genre":"\u756a\u5267","Region":"\u65e5\u672c","Episodes":1,"IsEnd":1,"PublishDate":null,"UpdatedDate":null},"Creator":{"ID":1,"Name":"root","Nickname":"YUESE","Avatar":"https://q1.qlogo.cn/g?b=qq&nk=7619376472&s=640","Bio":"\u8fd9\u4e2a\u4eba\u5f88\u9177\uff0c\u4ec0\u4e48\u90fd\u6ca1\u6709\u7559\u4e0b"},"Hits":14,"IsLiked":1,"LikesCount":0,"IsCollected":1,"CollectionCount":0,"CommentCount":0}}')},6854:e=>{"use strict";e.exports=JSON.parse('{"data":{"ID":"9","Cover":"https://cdn.tupianla.cc/images/5ikmj/uploads/allimg/210823/25469c1f97c06ad6.jpg","Title":"\u79d2\u901f5\u5398\u7c73","Content":"","Tags":"\u5176\u4ed6","Status":4,"Type":"video","IsPined":1,"IsRecommend":2,"IsOriginal":1,"CreatedAt":"2022-05-20T12:57:32+08:00","UpdatedAt":"2022-05-20T15:19:26+08:00","Meta":{"TitleJapanese":"","TitleRomanji":"","Genre":"\u756a\u5267","Region":"\u65e5\u672c","Episodes":0,"IsEnd":1,"PublishDate":null,"UpdatedDate":null},"Creator":{"ID":1,"Name":"root","Nickname":"YUESE","Avatar":"https://q1.qlogo.cn/g?b=qq&nk=7619376472&s=640","Bio":"\u8fd9\u4e2a\u4eba\u5f88\u9177\uff0c\u4ec0\u4e48\u90fd\u6ca1\u6709\u7559\u4e0b"},"Hits":22,"IsLiked":1,"LikesCount":0,"IsCollected":1,"CollectionCount":0,"CommentCount":0}}')},9528:e=>{"use strict";e.exports=JSON.parse('{"data":{"ID":"a7a1345e-1bc8-4793-9650-a0ee89b6d74b","Cover":"","Title":"\u65b0 QQ \u7fa4","Content":"\u70b9\u51fb\u94fe\u63a5\u52a0\u5165\u7fa4\u804a\u3010\u6708\u8272\u771f\u7f8e\u3011\uff1a[https://jq.qq.com/?_wv=1027&k=EFpgexC8](https://jq.qq.com/?_wv=1027&k=EFpgexC8)","Tags":"\u516c\u544a","Status":4,"Type":"post","IsPined":1,"IsRecommend":1,"IsOriginal":1,"CreatedAt":"2022-06-25T23:47:53+08:00","UpdatedAt":"2022-06-25T23:50:19+08:00","Creator":{"ID":1,"Name":"root","Nickname":"YUESE","Avatar":"https://q1.qlogo.cn/g?b=qq&nk=7619376472&s=640","Bio":"\u8fd9\u4e2a\u4eba\u5f88\u9177\uff0c\u4ec0\u4e48\u90fd\u6ca1\u6709\u7559\u4e0b"},"Hits":69,"IsLiked":1,"LikesCount":0,"IsCollected":1,"CollectionCount":0,"CommentCount":0}}')},274:e=>{"use strict";e.exports=JSON.parse('{"data":{"ID":"b2cf7c39-3f62-45c0-bbe1-a9522ff24cb7","Cover":"https://pic.monidai.com/img/55208d35c4e9b.jpg","Title":"\u5076\u7136\u4e0e\u60f3\u8c61","Content":"","Tags":"\u5176\u4ed6","Status":4,"Type":"video","IsPined":1,"IsRecommend":2,"IsOriginal":1,"CreatedAt":"2022-06-03T12:51:29+08:00","UpdatedAt":"2022-06-03T12:55:56+08:00","Meta":{"TitleJapanese":"","TitleRomanji":"","Genre":"\u756a\u5267","Region":"\u65e5\u672c","Episodes":13,"IsEnd":2,"PublishDate":"2015-01-01T08:00:00+08:00","UpdatedDate":null},"Creator":{"ID":1,"Name":"root","Nickname":"YUESE","Avatar":"https://q1.qlogo.cn/g?b=qq&nk=7619376472&s=640","Bio":"\u8fd9\u4e2a\u4eba\u5f88\u9177\uff0c\u4ec0\u4e48\u90fd\u6ca1\u6709\u7559\u4e0b"},"Hits":22,"IsLiked":1,"LikesCount":0,"IsCollected":1,"CollectionCount":0,"CommentCount":0}}')}}]); \ No newline at end of file diff --git a/static/js/197.129409a0.chunk.js b/static/js/197.129409a0.chunk.js deleted file mode 100644 index 125f148d..00000000 --- a/static/js/197.129409a0.chunk.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunk_web_index=self.webpackChunk_web_index||[]).push([[197],{9197:(e,n,t)=>{t.r(n),t.d(n,{default:()=>r});var s=t(568),i=(t(548),t(6352)),o=t(963);const r=()=>(0,s.jsxs)("div",{className:"container",children:[(0,s.jsx)(o.m,{children:(0,s.jsx)("title",{children:"\u5173\u4e8e - UPV - free animes no ads"})}),(0,s.jsx)(i.o,{type:"render",value:"\n## About\n\nFree animes no ads.\n\n[Discord](https://discord.gg/Ue3p4CnRDP) |\n[GitHub](https://github.com/upvorg) |\n[APP Download](https://github.com/upvorg/cdn/releases) |\n[QQ Group](https://qm.qq.com/cgi-bin/qm/qr?_wv=1027&k=OWf2sPbc2FX2Q0yWc6kePlYMhfNNfiIC&authKey=vs38F6pgitYXKOtHyWpNSk%2BWrMz%2BA5ZlpQCY00OqbfUtihtRDKiNmLOCeXQryUIY&noverify=0&group_code=757260467)\n\n| ![](https://i.ibb.co/8PQ2P1Z/Screenshot-20230303-203520.jpg) | ![](https://i.ibb.co/yfcxbyZ/Screenshot-20230227-212716.jpg) | ![image](https://i.ibb.co/kKpLTs6/Screenshot-20230303-204742.jpg) |\n|---|---|-------------------------------------------------------------------|\n\n\n"})]})},6352:(e,n,t)=>{t.d(n,{o:()=>f});var s,i=t(568),o=(t(548),t(4041)),r=t(1992),a=t(7706),c=t(5107),u=t(9163),d=t(3549),l=t(8226),h=t(795),m=t(3125),p=t(7673),v=(t(8902),function(e,n,t,s){return new(t||(t=Promise))((function(i,o){function r(e){try{c(s.next(e))}catch(n){o(n)}}function a(e){try{c(s.throw(e))}catch(n){o(n)}}function c(e){var n;e.done?i(e.value):(n=e.value,n instanceof t?n:new t((function(e){e(n)}))).then(r,a)}c((s=s.apply(e,n||[])).next())}))});const b={render:{view:{menu:!1,md:!1,html:!0},classname:"markdown_render"},editor:{view:{menu:!0,md:!0,html:!1},classname:"markdown_editor"}},g=(0,o.l)().use(r.A).use(u.A).use(a.A,{allowDangerousHtml:!0}).use(c.A).use(d.A,{properties:"attr"}).use(l.A,Object.assign(Object.assign({},h.j),{attributes:Object.assign(Object.assign({},h.j.attributes),{img:[...(null===(s=null===h.j||void 0===h.j?void 0:h.j.attributes)||void 0===s?void 0:s.img)||[],["style"]]})})).use(m.A),f=e=>{const{value:n="",type:t,onChange:s,customClassName:o="",placeholder:r=""}=e,{view:a,classname:c}=b[t];let u=`markdown ${c}`;return o&&(u+=` ${o}`),(0,i.jsx)(p.Ay,{className:u,readOnly:"render"===t,view:a,value:n,htmlClass:"markdown-body",renderHTML:e=>v(void 0,void 0,void 0,(function*(){return(yield g.process(e)).toString()})),onChange:e=>null===s||void 0===s?void 0:s(e.text),placeholder:r})}}}]); \ No newline at end of file diff --git a/static/js/197.6e0862f3.chunk.js b/static/js/197.6e0862f3.chunk.js new file mode 100644 index 00000000..81d57825 --- /dev/null +++ b/static/js/197.6e0862f3.chunk.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk_web_index=self.webpackChunk_web_index||[]).push([[197],{9197:(e,n,t)=>{t.r(n),t.d(n,{default:()=>r});var s=t(1914),i=(t(1394),t(5607)),o=t(8413);const r=()=>(0,s.jsxs)("div",{className:"container",children:[(0,s.jsx)(o.m,{children:(0,s.jsx)("title",{children:"\u5173\u4e8e - UPV - free animes no ads"})}),(0,s.jsx)(i.o,{type:"render",value:"\n## About\n\nFree animes no ads.\n\n[Discord](https://discord.gg/Ue3p4CnRDP) |\n[GitHub](https://github.com/upvorg) |\n[APP Download](https://github.com/upvorg/cdn/releases) |\n[QQ Group](https://qm.qq.com/cgi-bin/qm/qr?_wv=1027&k=OWf2sPbc2FX2Q0yWc6kePlYMhfNNfiIC&authKey=vs38F6pgitYXKOtHyWpNSk%2BWrMz%2BA5ZlpQCY00OqbfUtihtRDKiNmLOCeXQryUIY&noverify=0&group_code=757260467)\n\n| ![](https://i.ibb.co/8PQ2P1Z/Screenshot-20230303-203520.jpg) | ![](https://i.ibb.co/yfcxbyZ/Screenshot-20230227-212716.jpg) | ![image](https://i.ibb.co/kKpLTs6/Screenshot-20230303-204742.jpg) |\n|---|---|-------------------------------------------------------------------|\n\n\n"})]})},5607:(e,n,t)=>{t.d(n,{o:()=>f});var s,i=t(1914),o=(t(1394),t(9309)),r=t(7299),a=t(9071),c=t(9277),u=t(1909),d=t(4886),l=t(5164),h=t(8633),m=t(1007),p=t(5277),v=(t(3571),function(e,n,t,s){return new(t||(t=Promise))((function(i,o){function r(e){try{c(s.next(e))}catch(n){o(n)}}function a(e){try{c(s.throw(e))}catch(n){o(n)}}function c(e){var n;e.done?i(e.value):(n=e.value,n instanceof t?n:new t((function(e){e(n)}))).then(r,a)}c((s=s.apply(e,n||[])).next())}))});const b={render:{view:{menu:!1,md:!1,html:!0},classname:"markdown_render"},editor:{view:{menu:!0,md:!0,html:!1},classname:"markdown_editor"}},g=(0,o.l)().use(r.A).use(u.A).use(a.A,{allowDangerousHtml:!0}).use(c.A).use(d.A,{properties:"attr"}).use(l.A,Object.assign(Object.assign({},h.j),{attributes:Object.assign(Object.assign({},h.j.attributes),{img:[...(null===(s=null===h.j||void 0===h.j?void 0:h.j.attributes)||void 0===s?void 0:s.img)||[],["style"]]})})).use(m.A),f=e=>{const{value:n="",type:t,onChange:s,customClassName:o="",placeholder:r=""}=e,{view:a,classname:c}=b[t];let u=`markdown ${c}`;return o&&(u+=` ${o}`),(0,i.jsx)(p.Ay,{className:u,readOnly:"render"===t,view:a,value:n,htmlClass:"markdown-body",renderHTML:e=>v(void 0,void 0,void 0,(function*(){return(yield g.process(e)).toString()})),onChange:e=>null===s||void 0===s?void 0:s(e.text),placeholder:r})}}}]); \ No newline at end of file diff --git a/static/js/207.6b4a7248.js b/static/js/207.6b4a7248.js new file mode 100644 index 00000000..a8f73fd4 --- /dev/null +++ b/static/js/207.6b4a7248.js @@ -0,0 +1,172 @@ +/*! For license information please see 207.6b4a7248.js.LICENSE.txt */ +"use strict";(self.webpackChunk_web_index=self.webpackChunk_web_index||[]).push([[207],{4290:(e,t,r)=>{var n=r(1394),o=Symbol.for("react.element"),a=Symbol.for("react.fragment"),i=Object.prototype.hasOwnProperty,s=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,u={key:!0,ref:!0,__self:!0,__source:!0};function l(e,t,r){var n,a={},l=null,c=null;for(n in void 0!==r&&(l=""+r),void 0!==t.key&&(l=""+t.key),void 0!==t.ref&&(c=t.ref),t)i.call(t,n)&&!u.hasOwnProperty(n)&&(a[n]=t[n]);if(e&&e.defaultProps)for(n in t=e.defaultProps)void 0===a[n]&&(a[n]=t[n]);return{$$typeof:o,type:e,key:l,ref:c,props:a,_owner:s.current}}t.Fragment=a,t.jsx=l,t.jsxs=l},3581:(e,t)=>{var r=Symbol.for("react.element"),n=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),u=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),f=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),d=Symbol.iterator;var y={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},m=Object.assign,h={};function b(e,t,r){this.props=e,this.context=t,this.refs=h,this.updater=r||y}function v(){}function g(e,t,r){this.props=e,this.context=t,this.refs=h,this.updater=r||y}b.prototype.isReactComponent={},b.prototype.setState=function(e,t){if("object"!==typeof e&&"function"!==typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},b.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},v.prototype=b.prototype;var w=g.prototype=new v;w.constructor=g,m(w,b.prototype),w.isPureReactComponent=!0;var x=Array.isArray,_=Object.prototype.hasOwnProperty,E={current:null},k={key:!0,ref:!0,__self:!0,__source:!0};function S(e,t,n){var o,a={},i=null,s=null;if(null!=t)for(o in void 0!==t.ref&&(s=t.ref),void 0!==t.key&&(i=""+t.key),t)_.call(t,o)&&!k.hasOwnProperty(o)&&(a[o]=t[o]);var u=arguments.length-2;if(1===u)a.children=n;else if(1{e.exports=r(3581)},1914:(e,t,r)=>{e.exports=r(4290)},8841:(e,t)=>{function r(e,t){var r=e.length;e.push(t);e:for(;0>>1,o=e[n];if(!(0>>1;na(u,r))la(c,u)?(e[n]=c,e[l]=r,n=l):(e[n]=u,e[s]=r,n=s);else{if(!(la(c,r)))break e;e[n]=c,e[l]=r,n=l}}}return t}function a(e,t){var r=e.sortIndex-t.sortIndex;return 0!==r?r:e.id-t.id}if("object"===typeof performance&&"function"===typeof performance.now){var i=performance;t.unstable_now=function(){return i.now()}}else{var s=Date,u=s.now();t.unstable_now=function(){return s.now()-u}}var l=[],c=[],f=1,p=null,d=3,y=!1,m=!1,h=!1,b="function"===typeof setTimeout?setTimeout:null,v="function"===typeof clearTimeout?clearTimeout:null,g="undefined"!==typeof setImmediate?setImmediate:null;function w(e){for(var t=n(c);null!==t;){if(null===t.callback)o(c);else{if(!(t.startTime<=e))break;o(c),t.sortIndex=t.expirationTime,r(l,t)}t=n(c)}}function x(e){if(h=!1,w(e),!m)if(null!==n(l))m=!0,T(_);else{var t=n(c);null!==t&&N(x,t.startTime-e)}}function _(e,r){m=!1,h&&(h=!1,v(C),C=-1),y=!0;var a=d;try{for(w(r),p=n(l);null!==p&&(!(p.expirationTime>r)||e&&!P());){var i=p.callback;if("function"===typeof i){p.callback=null,d=p.priorityLevel;var s=i(p.expirationTime<=r);r=t.unstable_now(),"function"===typeof s?p.callback=s:p===n(l)&&o(l),w(r)}else o(l);p=n(l)}if(null!==p)var u=!0;else{var f=n(c);null!==f&&N(x,f.startTime-r),u=!1}return u}finally{p=null,d=a,y=!1}}"undefined"!==typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var E,k=!1,S=null,C=-1,$=5,O=-1;function P(){return!(t.unstable_now()-O<$)}function j(){if(null!==S){var e=t.unstable_now();O=e;var r=!0;try{r=S(!0,e)}finally{r?E():(k=!1,S=null)}}else k=!1}if("function"===typeof g)E=function(){g(j)};else if("undefined"!==typeof MessageChannel){var R=new MessageChannel,I=R.port2;R.port1.onmessage=j,E=function(){I.postMessage(null)}}else E=function(){b(j,0)};function T(e){S=e,k||(k=!0,E())}function N(e,r){C=b((function(){e(t.unstable_now())}),r)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){m||y||(m=!0,T(_))},t.unstable_forceFrameRate=function(e){0>e||125i?(e.sortIndex=a,r(c,e),null===n(l)&&e===n(c)&&(h?(v(C),C=-1):h=!0,N(x,a-i))):(e.sortIndex=s,r(l,e),m||y||(m=!0,T(_))),e},t.unstable_shouldYield=P,t.unstable_wrapCallback=function(e){var t=d;return function(){var r=d;d=t;try{return e.apply(this,arguments)}finally{d=r}}}},148:(e,t,r)=>{e.exports=r(8841)},466:(e,t,r)=>{var n=r(1394);var o="function"===typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e===1/t)||e!==e&&t!==t},a=n.useState,i=n.useEffect,s=n.useLayoutEffect,u=n.useDebugValue;function l(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!o(e,r)}catch(n){return!0}}var c="undefined"===typeof window||"undefined"===typeof window.document||"undefined"===typeof window.document.createElement?function(e,t){return t()}:function(e,t){var r=t(),n=a({inst:{value:r,getSnapshot:t}}),o=n[0].inst,c=n[1];return s((function(){o.value=r,o.getSnapshot=t,l(o)&&c({inst:o})}),[e,r,t]),i((function(){return l(o)&&c({inst:o}),e((function(){l(o)&&c({inst:o})}))}),[e]),u(r),r};t.useSyncExternalStore=void 0!==n.useSyncExternalStore?n.useSyncExternalStore:c},6403:(e,t,r)=>{e.exports=r(466)},6730:(e,t,r)=>{r.d(t,{N_:()=>N,qh:()=>T,Ix:()=>R,dO:()=>D,zy:()=>$,lq:()=>j,SQ:()=>O});var n=r(1394),o=r.t(n,2),a=r(6403);const i=o.useInsertionEffect,s=!("undefined"===typeof window||"undefined"===typeof window.document||"undefined"===typeof window.document.createElement)?n.useLayoutEffect:n.useEffect,u=i||s,l=e=>{const t=n.useRef([e,(...e)=>t[0](...e)]).current;return u((()=>{t[0]=e})),t[1]},c="pushState",f="replaceState",p=["popstate",c,f,"hashchange"],d=e=>{for(const t of p)addEventListener(t,e);return()=>{for(const t of p)removeEventListener(t,e)}},y=(e,t)=>(0,a.useSyncExternalStore)(d,e,t),m=()=>location.search,h=()=>location.pathname,b=({ssrPath:e}={})=>y(h,e?()=>e:h),v=(e,{replace:t=!1,state:r=null}={})=>history[t?f:c](r,"",e),g=Symbol.for("wouter_v3");if("undefined"!==typeof history&&"undefined"===typeof window[g]){for(const e of[c,f]){const t=history[e];history[e]=function(){const r=t.apply(this,arguments),n=new Event(e);return n.arguments=arguments,dispatchEvent(n),r}}Object.defineProperty(window,g,{value:!0})}const w=(e="",t)=>t.toLowerCase().indexOf(e.toLowerCase())?"~"+t:t.slice(e.length)||"/",x=e=>{try{return decodeURI(e)}catch(t){return e}},_={hook:(e={})=>[b(e),v],searchHook:({ssrSearch:e=""}={})=>y(m,(()=>e)),parser:function(e,t){if(e instanceof RegExp)return{keys:!1,pattern:e};var r,n,o,a,i=[],s="",u=e.split("/");for(u[0]||u.shift();o=u.shift();)"*"===(r=o[0])?(i.push(r),s+="?"===o[1]?"(?:/(.*))?":"/(.*)"):":"===r?(n=o.indexOf("?",1),a=o.indexOf(".",1),i.push(o.substring(1,~n?n:~a?a:o.length)),s+=~n&&!~a?"(?:/([^/]+?))?":"/([^/]+?)",~a&&(s+=(~n?"?":"")+"\\"+o.substring(a))):s+="/"+o;return{keys:i,pattern:new RegExp("^"+s+(t?"(?=$|/)":"/?$"),"i")}},base:"",ssrPath:void 0,ssrSearch:void 0,hrefs:e=>e},E=(0,n.createContext)(_),k=()=>(0,n.useContext)(E),S=(0,n.createContext)({}),C=e=>{const[t,r]=e.hook(e);return[x(w(e.base,t)),l(((t,n)=>r(((e,t="")=>"~"===e[0]?e.slice(1):t+e)(t,e.base),n)))]},$=()=>C(k()),O=()=>{const e=k();return x("?"===(t=e.searchHook(e))[0]?t.slice(1):t);var t},P=(e,t,r,n)=>{const{pattern:o,keys:a}=t instanceof RegExp?{keys:!1,pattern:t}:e(t||"*",n),i=o.exec(r)||[],[s,...u]=i;return void 0!==s?[!0,(()=>{const e=!1!==a?Object.fromEntries(a.map(((e,t)=>[e,u[t]]))):i.groups;let t={...u};return e&&Object.assign(t,e),t})(),...n?[s]:[]]:[!1,null]},j=e=>P(k().parser,e,$()[0]),R=({children:e,...t})=>{const r=k(),o=t.hook?_:r;let a=o;const[i,s]=t.ssrPath?.split("?")??[];s&&(t.ssrSearch=s,t.ssrPath=i),t.hrefs=t.hrefs??t.hook?.hrefs;let u=(0,n.useRef)({}),l=u.current,c=l;for(let n in o){const e="base"===n?o[n]+(t[n]||""):t[n]||o[n];l===c&&e!==c[n]&&(u.current=c={...c}),c[n]=e,e!==o[n]&&(a=c)}return(0,n.createElement)(E.Provider,{value:a,children:e})},I=({children:e,component:t},r)=>t?(0,n.createElement)(t,{params:r}):"function"===typeof e?e(r):e,T=({path:e,nest:t,match:r,...o})=>{const a=k(),[i]=C(a),[s,u,l]=r??P(a.parser,e,i,t);if(!s)return null;const c=l?(0,n.createElement)(R,{base:l},I(o,u)):I(o,u);return(0,n.createElement)(S.Provider,{value:u,children:c})},N=(0,n.forwardRef)(((e,t)=>{const r=k(),[o,a]=C(r),{to:i,href:s=i,onClick:u,asChild:c,children:f,className:p,replace:d,state:y,...m}=e,h=l((t=>{t.ctrlKey||t.metaKey||t.altKey||t.shiftKey||0!==t.button||(u?.(t),t.defaultPrevented||(t.preventDefault(),a(s,e)))})),b=r.hrefs("~"===s[0]?s.slice(1):r.base+s,r);return c&&(0,n.isValidElement)(f)?(0,n.cloneElement)(f,{onClick:h,href:b}):(0,n.createElement)("a",{...m,onClick:h,href:b,className:p?.call?p(o===s):p,children:f,ref:t})})),L=e=>Array.isArray(e)?e.flatMap((e=>L(e&&e.type===n.Fragment?e.props.children:e))):[e],D=({children:e,location:t})=>{const r=k(),[o]=C(r);for(const a of L(e)){let e=0;if((0,n.isValidElement)(a)&&(e=P(r.parser,a.props.path,t||o,a.props.nest))[0])return(0,n.cloneElement)(a,{match:e})}return null}},4332:(e,t,r)=>{r.d(t,{l$:()=>re,Ay:()=>ne});var n=r(1394);let o={data:""},a=e=>"object"==typeof window?((e?e.querySelector("#_goober"):window._goober)||Object.assign((e||document.head).appendChild(document.createElement("style")),{innerHTML:" ",id:"_goober"})).firstChild:e||o,i=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,s=/\/\*[^]*?\*\/| +/g,u=/\n+/g,l=(e,t)=>{let r="",n="",o="";for(let a in e){let i=e[a];"@"==a[0]?"i"==a[1]?r=a+" "+i+";":n+="f"==a[1]?l(i,a):a+"{"+l(i,"k"==a[1]?"":t)+"}":"object"==typeof i?n+=l(i,t?t.replace(/([^,])+/g,(e=>a.replace(/(^:.*)|([^,])+/g,(t=>/&/.test(t)?t.replace(/&/g,e):e?e+" "+t:t)))):a):null!=i&&(a=/^--/.test(a)?a:a.replace(/[A-Z]/g,"-$&").toLowerCase(),o+=l.p?l.p(a,i):a+":"+i+";")}return r+(t&&o?t+"{"+o+"}":o)+n},c={},f=e=>{if("object"==typeof e){let t="";for(let r in e)t+=r+f(e[r]);return t}return e},p=(e,t,r,n,o)=>{let a=f(e),p=c[a]||(c[a]=(e=>{let t=0,r=11;for(;t>>0;return"go"+r})(a));if(!c[p]){let t=a!==e?e:(e=>{let t,r,n=[{}];for(;t=i.exec(e.replace(s,""));)t[4]?n.shift():t[3]?(r=t[3].replace(u," ").trim(),n.unshift(n[0][r]=n[0][r]||{})):n[0][t[1]]=t[2].replace(u," ").trim();return n[0]})(e);c[p]=l(o?{["@keyframes "+p]:t}:t,r?"":"."+p)}let d=r&&c.g?c.g:null;return r&&(c.g=c[p]),((e,t,r,n)=>{n?t.data=t.data.replace(n,e):-1===t.data.indexOf(e)&&(t.data=r?e+t.data:t.data+e)})(c[p],t,n,d),p},d=(e,t,r)=>e.reduce(((e,n,o)=>{let a=t[o];if(a&&a.call){let e=a(r),t=e&&e.props&&e.props.className||/^go/.test(e)&&e;a=t?"."+t:e&&"object"==typeof e?e.props?"":l(e,""):!1===e?"":e}return e+n+(null==a?"":a)}),"");function y(e){let t=this||{},r=e.call?e(t.p):e;return p(r.unshift?r.raw?d(r,[].slice.call(arguments,1),t.p):r.reduce(((e,r)=>Object.assign(e,r&&r.call?r(t.p):r)),{}):r,a(t.target),t.g,t.o,t.k)}y.bind({g:1});let m,h,b,v=y.bind({k:1});function g(e,t){let r=this||{};return function(){let n=arguments;function o(a,i){let s=Object.assign({},a),u=s.className||o.className;r.p=Object.assign({theme:h&&h()},s),r.o=/ *go\d+/.test(u),s.className=y.apply(r,n)+(u?" "+u:""),t&&(s.ref=i);let l=e;return e[0]&&(l=s.as||e,delete s.as),b&&l[0]&&b(s),m(l,s)}return t?t(o):o}}var w=(e,t)=>(e=>"function"==typeof e)(e)?e(t):e,x=(()=>{let e=0;return()=>(++e).toString()})(),_=(()=>{let e;return()=>{if(void 0===e&&typeof window<"u"){let t=matchMedia("(prefers-reduced-motion: reduce)");e=!t||t.matches}return e}})(),E=new Map,k=e=>{if(E.has(e))return;let t=setTimeout((()=>{E.delete(e),O({type:4,toastId:e})}),1e3);E.set(e,t)},S=(e,t)=>{switch(t.type){case 0:return{...e,toasts:[t.toast,...e.toasts].slice(0,20)};case 1:return t.toast.id&&(e=>{let t=E.get(e);t&&clearTimeout(t)})(t.toast.id),{...e,toasts:e.toasts.map((e=>e.id===t.toast.id?{...e,...t.toast}:e))};case 2:let{toast:r}=t;return e.toasts.find((e=>e.id===r.id))?S(e,{type:1,toast:r}):S(e,{type:0,toast:r});case 3:let{toastId:n}=t;return n?k(n):e.toasts.forEach((e=>{k(e.id)})),{...e,toasts:e.toasts.map((e=>e.id===n||void 0===n?{...e,visible:!1}:e))};case 4:return void 0===t.toastId?{...e,toasts:[]}:{...e,toasts:e.toasts.filter((e=>e.id!==t.toastId))};case 5:return{...e,pausedAt:t.time};case 6:let o=t.time-(e.pausedAt||0);return{...e,pausedAt:void 0,toasts:e.toasts.map((e=>({...e,pauseDuration:e.pauseDuration+o})))}}},C=[],$={toasts:[],pausedAt:void 0},O=e=>{$=S($,e),C.forEach((e=>{e($)}))},P={blank:4e3,error:4e3,success:2e3,loading:1/0,custom:4e3},j=e=>(t,r)=>{let n=((e,t="blank",r)=>({createdAt:Date.now(),visible:!0,type:t,ariaProps:{role:"status","aria-live":"polite"},message:e,pauseDuration:0,...r,id:(null==r?void 0:r.id)||x()}))(t,e,r);return O({type:2,toast:n}),n.id},R=(e,t)=>j("blank")(e,t);R.error=j("error"),R.success=j("success"),R.loading=j("loading"),R.custom=j("custom"),R.dismiss=e=>{O({type:3,toastId:e})},R.remove=e=>O({type:4,toastId:e}),R.promise=(e,t,r)=>{let n=R.loading(t.loading,{...r,...null==r?void 0:r.loading});return e.then((e=>(R.success(w(t.success,e),{id:n,...r,...null==r?void 0:r.success}),e))).catch((e=>{R.error(w(t.error,e),{id:n,...r,...null==r?void 0:r.error})})),e};var I=(e,t)=>{O({type:1,toast:{id:e,height:t}})},T=()=>{O({type:5,time:Date.now()})},N=e=>{let{toasts:t,pausedAt:r}=((e={})=>{let[t,r]=(0,n.useState)($);(0,n.useEffect)((()=>(C.push(r),()=>{let e=C.indexOf(r);e>-1&&C.splice(e,1)})),[t]);let o=t.toasts.map((t=>{var r,n;return{...e,...e[t.type],...t,duration:t.duration||(null==(r=e[t.type])?void 0:r.duration)||(null==e?void 0:e.duration)||P[t.type],style:{...e.style,...null==(n=e[t.type])?void 0:n.style,...t.style}}}));return{...t,toasts:o}})(e);(0,n.useEffect)((()=>{if(r)return;let e=Date.now(),n=t.map((t=>{if(t.duration===1/0)return;let r=(t.duration||0)+t.pauseDuration-(e-t.createdAt);if(!(r<0))return setTimeout((()=>R.dismiss(t.id)),r);t.visible&&R.dismiss(t.id)}));return()=>{n.forEach((e=>e&&clearTimeout(e)))}}),[t,r]);let o=(0,n.useCallback)((()=>{r&&O({type:6,time:Date.now()})}),[r]),a=(0,n.useCallback)(((e,r)=>{let{reverseOrder:n=!1,gutter:o=8,defaultPosition:a}=r||{},i=t.filter((t=>(t.position||a)===(e.position||a)&&t.height)),s=i.findIndex((t=>t.id===e.id)),u=i.filter(((e,t)=>te.visible)).slice(...n?[u+1]:[0,u]).reduce(((e,t)=>e+(t.height||0)+o),0)}),[t]);return{toasts:t,handlers:{updateHeight:I,startPause:T,endPause:o,calculateOffset:a}}},L=v` +from { + transform: scale(0) rotate(45deg); + opacity: 0; +} +to { + transform: scale(1) rotate(45deg); + opacity: 1; +}`,D=v` +from { + transform: scale(0); + opacity: 0; +} +to { + transform: scale(1); + opacity: 1; +}`,A=v` +from { + transform: scale(0) rotate(90deg); + opacity: 0; +} +to { + transform: scale(1) rotate(90deg); + opacity: 1; +}`,F=g("div")` + width: 20px; + opacity: 0; + height: 20px; + border-radius: 10px; + background: ${e=>e.primary||"#ff4b4b"}; + position: relative; + transform: rotate(45deg); + + animation: ${L} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) + forwards; + animation-delay: 100ms; + + &:after, + &:before { + content: ''; + animation: ${D} 0.15s ease-out forwards; + animation-delay: 150ms; + position: absolute; + border-radius: 3px; + opacity: 0; + background: ${e=>e.secondary||"#fff"}; + bottom: 9px; + left: 4px; + height: 2px; + width: 12px; + } + + &:before { + animation: ${A} 0.15s ease-out forwards; + animation-delay: 180ms; + transform: rotate(90deg); + } +`,M=v` + from { + transform: rotate(0deg); + } + to { + transform: rotate(360deg); + } +`,z=g("div")` + width: 12px; + height: 12px; + box-sizing: border-box; + border: 2px solid; + border-radius: 100%; + border-color: ${e=>e.secondary||"#e0e0e0"}; + border-right-color: ${e=>e.primary||"#616161"}; + animation: ${M} 1s linear infinite; +`,U=v` +from { + transform: scale(0) rotate(45deg); + opacity: 0; +} +to { + transform: scale(1) rotate(45deg); + opacity: 1; +}`,V=v` +0% { + height: 0; + width: 0; + opacity: 0; +} +40% { + height: 0; + width: 6px; + opacity: 1; +} +100% { + opacity: 1; + height: 10px; +}`,q=g("div")` + width: 20px; + opacity: 0; + height: 20px; + border-radius: 10px; + background: ${e=>e.primary||"#61d345"}; + position: relative; + transform: rotate(45deg); + + animation: ${U} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) + forwards; + animation-delay: 100ms; + &:after { + content: ''; + box-sizing: border-box; + animation: ${V} 0.2s ease-out forwards; + opacity: 0; + animation-delay: 200ms; + position: absolute; + border-right: 2px solid; + border-bottom: 2px solid; + border-color: ${e=>e.secondary||"#fff"}; + bottom: 6px; + left: 6px; + height: 10px; + width: 6px; + } +`,H=g("div")` + position: absolute; +`,B=g("div")` + position: relative; + display: flex; + justify-content: center; + align-items: center; + min-width: 20px; + min-height: 20px; +`,K=v` +from { + transform: scale(0.6); + opacity: 0.4; +} +to { + transform: scale(1); + opacity: 1; +}`,Y=g("div")` + position: relative; + transform: scale(0.6); + opacity: 0.4; + min-width: 20px; + animation: ${K} 0.3s 0.12s cubic-bezier(0.175, 0.885, 0.32, 1.275) + forwards; +`,W=({toast:e})=>{let{icon:t,type:r,iconTheme:o}=e;return void 0!==t?"string"==typeof t?n.createElement(Y,null,t):t:"blank"===r?null:n.createElement(B,null,n.createElement(z,{...o}),"loading"!==r&&n.createElement(H,null,"error"===r?n.createElement(F,{...o}):n.createElement(q,{...o})))},Q=e=>`\n0% {transform: translate3d(0,${-200*e}%,0) scale(.6); opacity:.5;}\n100% {transform: translate3d(0,0,0) scale(1); opacity:1;}\n`,Z=e=>`\n0% {transform: translate3d(0,0,-1px) scale(1); opacity:1;}\n100% {transform: translate3d(0,${-150*e}%,-1px) scale(.6); opacity:0;}\n`,G=g("div")` + display: flex; + align-items: center; + background: #fff; + color: #363636; + line-height: 1.3; + will-change: transform; + box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1), 0 3px 3px rgba(0, 0, 0, 0.05); + max-width: 350px; + pointer-events: auto; + padding: 8px 10px; + border-radius: 8px; +`,J=g("div")` + display: flex; + justify-content: center; + margin: 4px 10px; + color: inherit; + flex: 1 1 auto; + white-space: pre-line; +`,X=n.memo((({toast:e,position:t,style:r,children:o})=>{let a=e.height?((e,t)=>{let r=e.includes("top")?1:-1,[n,o]=_()?["0%{opacity:0;} 100%{opacity:1;}","0%{opacity:1;} 100%{opacity:0;}"]:[Q(r),Z(r)];return{animation:t?`${v(n)} 0.35s cubic-bezier(.21,1.02,.73,1) forwards`:`${v(o)} 0.4s forwards cubic-bezier(.06,.71,.55,1)`}})(e.position||t||"top-center",e.visible):{opacity:0},i=n.createElement(W,{toast:e}),s=n.createElement(J,{...e.ariaProps},w(e.message,e));return n.createElement(G,{className:e.className,style:{...a,...r,...e.style}},"function"==typeof o?o({icon:i,message:s}):n.createElement(n.Fragment,null,i,s))}));!function(e,t,r,n){l.p=t,m=e,h=r,b=n}(n.createElement);var ee=({id:e,className:t,style:r,onHeightUpdate:o,children:a})=>{let i=n.useCallback((t=>{if(t){let r=()=>{let r=t.getBoundingClientRect().height;o(e,r)};r(),new MutationObserver(r).observe(t,{subtree:!0,childList:!0,characterData:!0})}}),[e,o]);return n.createElement("div",{ref:i,className:t,style:r},a)},te=y` + z-index: 9999; + > * { + pointer-events: auto; + } +`,re=({reverseOrder:e,position:t="top-center",toastOptions:r,gutter:o,children:a,containerStyle:i,containerClassName:s})=>{let{toasts:u,handlers:l}=N(r);return n.createElement("div",{style:{position:"fixed",zIndex:9999,top:16,left:16,right:16,bottom:16,pointerEvents:"none",...i},className:s,onMouseEnter:l.startPause,onMouseLeave:l.endPause},u.map((r=>{let i=r.position||t,s=((e,t)=>{let r=e.includes("top"),n=r?{top:0}:{bottom:0},o=e.includes("center")?{justifyContent:"center"}:e.includes("right")?{justifyContent:"flex-end"}:{};return{left:0,right:0,display:"flex",position:"absolute",transition:_()?void 0:"all 230ms cubic-bezier(.21,1.02,.73,1)",transform:`translateY(${t*(r?1:-1)}px)`,...n,...o}})(i,l.calculateOffset(r,{reverseOrder:e,gutter:o,defaultPosition:t}));return n.createElement(ee,{id:r.id,key:r.id,onHeightUpdate:l.updateHeight,className:r.visible?te:"",style:s},"custom"===r.type?w(r.message,r):a?a(r):n.createElement(X,{toast:r,position:i}))})))},ne=R}}]); \ No newline at end of file diff --git a/static/js/881.554949ca.js.LICENSE.txt b/static/js/207.6b4a7248.js.LICENSE.txt similarity index 100% rename from static/js/881.554949ca.js.LICENSE.txt rename to static/js/207.6b4a7248.js.LICENSE.txt diff --git a/static/js/279.7c7bed31.chunk.js b/static/js/279.7c7bed31.chunk.js deleted file mode 100644 index f43ba46c..00000000 --- a/static/js/279.7c7bed31.chunk.js +++ /dev/null @@ -1,2 +0,0 @@ -/*! For license information please see 279.7c7bed31.chunk.js.LICENSE.txt */ -(self.webpackChunk_web_index=self.webpackChunk_web_index||[]).push([[279],{4279:(e,r,t)=>{"use strict";t.r(r),t.d(r,{default:()=>p});var n=t(568),s=t(4857),a=t(3987),i=t(5375),o=t(6638),c=t.n(o),l=t(548),d=t(9841),u=t(963);function p(){const[e,r]=(0,l.useState)(!0),{from:t}=d.A.parse(window.location.search),[o,p]=(0,l.useState)({Name:"",Pwd:"",Emial:""});if((0,s.k)())return window.location.href=t||"/",null;const f=e=>{const{name:r,value:t}=e.target;p(Object.assign(Object.assign({},o),{[r]:t}))};return(0,n.jsxs)("div",{className:"login card",children:[(0,n.jsx)(u.m,{children:(0,n.jsx)("title",{children:"\u767b\u5f55\uff5c\u6ce8\u518c - UPV - free animes no ads"})}),(0,n.jsx)("div",{className:"tabs",children:(0,n.jsx)("ul",{children:(0,n.jsx)("li",{className:c()({"is-active":e}),onClick:()=>r(!0),children:(0,n.jsx)("a",{children:"\u767b\u5f55"})})})}),(0,n.jsx)("form",{onSubmit:r=>{r.preventDefault(),(e?a.pY.post("/login",{data:{Name:o.Name,Pwd:o.Pwd}}):a.pY.post("/register",{data:{Name:o.Name,Pwd:o.Pwd}})).then((e=>{e.err||(i.N.login(e.data.user),window.location.href=t||"/")}))},children:(0,n.jsxs)("div",{className:"card-body",children:[(0,n.jsxs)("div",{className:"l",children:[!e&&(0,n.jsxs)("div",{className:"field",children:[(0,n.jsx)("label",{className:"label",children:"\u90ae\u7bb1"}),(0,n.jsx)("p",{className:"control",children:(0,n.jsx)("input",{className:"input",type:"email",placeholder:"Email",name:"Emial",onChange:f,required:!0})})]}),!e&&(0,n.jsxs)("div",{className:"field is-grouped",children:[(0,n.jsx)("p",{className:"control is-expanded",children:(0,n.jsx)("input",{className:"input",type:"text",placeholder:"Code",name:"Code",onChange:f,required:!0})}),(0,n.jsx)("p",{className:"control is-exdivanded",children:(0,n.jsx)("button",{className:"button is-primary",type:"button",children:"\u83b7\u53d6\u9a8c\u8bc1\u7801"})})]}),(0,n.jsxs)("div",{className:"field",children:[(0,n.jsx)("label",{className:"label",children:"\u7528\u6237\u540d"}),(0,n.jsx)("p",{className:"control",children:(0,n.jsx)("input",{className:"input",type:"text",placeholder:"Username",name:"Name",onChange:f,required:!0})})]}),(0,n.jsx)("div",{className:"field",children:(0,n.jsxs)("div",{className:"control",children:[(0,n.jsx)("label",{className:"label",children:"\u5bc6\u7801"}),(0,n.jsx)("input",{className:"input",type:"password",placeholder:"Password",name:"Pwd",onChange:f,required:!0}),(0,n.jsxs)("p",{style:{textAlign:"right",marginTop:".5em",fontSize:"12px"},children:[(0,n.jsx)("span",{style:{float:"left",color:"gray"},children:"\u672a\u6ce8\u518c\u5c06\u81ea\u52a8\u6ce8\u518c"}),(0,n.jsx)("a",{href:"#",children:"forget password?"})]})]})}),(0,n.jsx)("div",{className:"field",children:(0,n.jsx)("p",{className:"control",children:(0,n.jsx)("button",{className:"button is-primary is-fullwidth",type:"submit",children:e?"\u767b\u5f55":"\u6ce8\u518c"})})})]}),(0,n.jsxs)("div",{className:"r",children:[(0,n.jsx)("p",{className:"field",children:"\u793e\u4ea4\u5e73\u53f0\u767b\u5f55"}),(0,n.jsx)("div",{className:"field",children:(0,n.jsxs)("button",{className:"button",type:"button",children:[(0,n.jsx)("span",{className:"icon qq",children:(0,n.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512",children:(0,n.jsx)("path",{d:"M433.754 420.445c-11.526 1.393-44.86-52.741-44.86-52.741 0 31.345-16.136 72.247-51.051 101.786 16.842 5.192 54.843 19.167 45.803 34.421-7.316 12.343-125.51 7.881-159.632 4.037-34.122 3.844-152.316 8.306-159.632-4.037-9.045-15.25 28.918-29.214 45.783-34.415-34.92-29.539-51.059-70.445-51.059-101.792 0 0-33.334 54.134-44.859 52.741-5.37-.65-12.424-29.644 9.347-99.704 10.261-33.024 21.995-60.478 40.144-105.779C60.683 98.063 108.982.006 224 0c113.737.006 163.156 96.133 160.264 214.963 18.118 45.223 29.912 72.85 40.144 105.778 21.768 70.06 14.716 99.053 9.346 99.704z"})})}),(0,n.jsx)("span",{children:"QQ"})]})}),(0,n.jsx)("div",{className:"field",children:(0,n.jsxs)("button",{className:"button",type:"button",children:[(0,n.jsx)("span",{className:"icon github",children:(0,n.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 480 512",children:(0,n.jsx)("path",{d:"M186.1 328.7c0 20.9-10.9 55.1-36.7 55.1s-36.7-34.2-36.7-55.1 10.9-55.1 36.7-55.1 36.7 34.2 36.7 55.1zM480 278.2c0 31.9-3.2 65.7-17.5 95-37.9 76.6-142.1 74.8-216.7 74.8-75.8 0-186.2 2.7-225.6-74.8-14.6-29-20.2-63.1-20.2-95 0-41.9 13.9-81.5 41.5-113.6-5.2-15.8-7.7-32.4-7.7-48.8 0-21.5 4.9-32.3 14.6-51.8 45.3 0 74.3 9 108.8 36 29-6.9 58.8-10 88.7-10 27 0 54.2 2.9 80.4 9.2 34-26.7 63-35.2 107.8-35.2 9.8 19.5 14.6 30.3 14.6 51.8 0 16.4-2.6 32.7-7.7 48.2 27.5 32.4 39 72.3 39 114.2zm-64.3 50.5c0-43.9-26.7-82.6-73.5-82.6-18.9 0-37 3.4-56 6-14.9 2.3-29.8 3.2-45.1 3.2-15.2 0-30.1-.9-45.1-3.2-18.7-2.6-37-6-56-6-46.8 0-73.5 38.7-73.5 82.6 0 87.8 80.4 101.3 150.4 101.3h48.2c70.3 0 150.6-13.4 150.6-101.3zm-82.6-55.1c-25.8 0-36.7 34.2-36.7 55.1s10.9 55.1 36.7 55.1 36.7-34.2 36.7-55.1-10.9-55.1-36.7-55.1z"})})}),(0,n.jsx)("span",{children:"GitHub"})]})}),(0,n.jsx)("div",{className:"field",children:(0,n.jsxs)("button",{className:"button",type:"button",children:[(0,n.jsx)("span",{className:"icon google",children:(0,n.jsxs)("svg",{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"2280",width:"200",height:"200",children:[(0,n.jsx)("path",{d:"M960.032 521.92c0-36.8-3.04-63.68-9.632-91.552H521.184v166.24h251.936c-5.088 41.312-32.512 103.552-93.44 145.344l-0.864 5.568 135.68 103.04 9.408 0.928c86.368-78.176 136.128-193.152 136.128-329.536z",fill:"#4285F4","p-id":"2281"}),(0,n.jsx)("path",{d:"M521.152 960c123.424 0 227.04-39.808 302.72-108.512l-144.224-109.536c-38.624 26.4-90.432 44.8-158.496 44.8A274.688 274.688 0 0 1 261.12 600.64l-5.344 0.448-141.12 107.008-1.856 5.024C187.968 859.456 342.4 960 521.152 960z",fill:"#34A853","p-id":"2282"}),(0,n.jsx)("path",{d:"M261.12 600.608a270.816 270.816 0 0 1-15.232-88.64c0-30.848 5.568-60.704 14.72-88.576l-0.256-5.92-142.88-108.768-4.672 2.176A441.12 441.12 0 0 0 64.032 512c0 72.192 17.792 140.384 48.768 201.088L261.12 600.64z",fill:"#FBBC05","p-id":"2283"}),(0,n.jsx)("path",{d:"M521.152 237.216c85.856 0 143.744 36.352 176.768 66.72l129.024-123.456C747.712 108.288 644.576 64 521.152 64 342.4 64 187.968 164.544 112.768 310.88l147.84 112.512c37.056-108 139.68-186.176 260.544-186.176z",fill:"#EB4335","p-id":"2284"})]})}),(0,n.jsx)("span",{children:"Google"})]})}),(0,n.jsx)("div",{className:"field",children:(0,n.jsxs)("button",{className:"button",type:"button",children:[(0,n.jsx)("span",{className:"icon",children:(0,n.jsx)("svg",{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"7592",width:"200",height:"200",children:(0,n.jsx)("path",{d:"M546.986667 1024H56.490667A56.533333 56.533333 0 0 1 0 967.466667V56.533333C0 25.301333 25.301333 0 56.533333 0h910.933334C998.698667 0 1024 25.301333 1024 56.533333v910.933334c0 31.232-25.301333 56.533333-56.533333 56.533333H706.56v-396.544h133.12l19.882667-154.538667H706.56V374.186667c0-44.714667 12.373333-75.221333 76.586667-75.221334h81.834666v-138.24c-14.165333-1.92-62.72-6.101333-119.253333-6.101333-118.016 0-198.784 72.021333-198.784 204.288v113.92H413.525333v154.581333h133.418667V1024z",fill:"#3B5998","p-id":"7593"})})}),(0,n.jsx)("span",{children:"Facebook"})]})}),(0,n.jsx)("div",{className:"field",children:(0,n.jsxs)("div",{className:"agreement",children:["\u767b\u5f55\u5373\u8868\u793a\u60a8\u540c\u610f",(0,n.jsx)("a",{href:"",children:"\u300a\u7528\u6237\u534f\u8bae\u300b"}),"\u548c",(0,n.jsx)("a",{href:"",children:"\u300a\u9690\u79c1\u653f\u7b56\u300b"})]})})]})]})})]})}},6638:(e,r)=>{var t;!function(){"use strict";var n={}.hasOwnProperty;function s(){for(var e="",r=0;r{"use strict";t.d(r,{A:()=>O});var n={};t.r(n),t.d(n,{exclude:()=>S,extract:()=>v,parse:()=>N,parseUrl:()=>k,pick:()=>C,stringify:()=>w,stringifyUrl:()=>F});const s="%[a-f0-9]{2}",a=new RegExp("("+s+")|([^%]+?)","gi"),i=new RegExp("("+s+")+","gi");function o(e,r){try{return[decodeURIComponent(e.join(""))]}catch{}if(1===e.length)return e;r=r||1;const t=e.slice(0,r),n=e.slice(r);return Array.prototype.concat.call([],o(t),o(n))}function c(e){try{return decodeURIComponent(e)}catch{let r=e.match(a)||[];for(let t=1;tnull===e||void 0===e,f=e=>encodeURIComponent(e).replaceAll(/[!'()*]/g,(e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`)),m=Symbol("encodeFragmentIdentifier");function h(e){if("string"!==typeof e||1!==e.length)throw new TypeError("arrayFormatSeparator must be single character string")}function x(e,r){return r.encode?r.strict?f(e):encodeURIComponent(e):e}function j(e,r){return r.decode?l(e):e}function y(e){return Array.isArray(e)?e.sort():"object"===typeof e?y(Object.keys(e)).sort(((e,r)=>Number(e)-Number(r))).map((r=>e[r])):e}function g(e){const r=e.indexOf("#");return-1!==r&&(e=e.slice(0,r)),e}function b(e,r){return r.parseNumbers&&!Number.isNaN(Number(e))&&"string"===typeof e&&""!==e.trim()?e=Number(e):!r.parseBooleans||null===e||"true"!==e.toLowerCase()&&"false"!==e.toLowerCase()||(e="true"===e.toLowerCase()),e}function v(e){const r=(e=g(e)).indexOf("?");return-1===r?"":e.slice(r+1)}function N(e,r){h((r={decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1,...r}).arrayFormatSeparator);const t=function(e){let r;switch(e.arrayFormat){case"index":return(e,t,n)=>{r=/\[(\d*)]$/.exec(e),e=e.replace(/\[\d*]$/,""),r?(void 0===n[e]&&(n[e]={}),n[e][r[1]]=t):n[e]=t};case"bracket":return(e,t,n)=>{r=/(\[])$/.exec(e),e=e.replace(/\[]$/,""),r?void 0!==n[e]?n[e]=[...n[e],t]:n[e]=[t]:n[e]=t};case"colon-list-separator":return(e,t,n)=>{r=/(:list)$/.exec(e),e=e.replace(/:list$/,""),r?void 0!==n[e]?n[e]=[...n[e],t]:n[e]=[t]:n[e]=t};case"comma":case"separator":return(r,t,n)=>{const s="string"===typeof t&&t.includes(e.arrayFormatSeparator),a="string"===typeof t&&!s&&j(t,e).includes(e.arrayFormatSeparator);t=a?j(t,e):t;const i=s||a?t.split(e.arrayFormatSeparator).map((r=>j(r,e))):null===t?t:j(t,e);n[r]=i};case"bracket-separator":return(r,t,n)=>{const s=/(\[])$/.test(r);if(r=r.replace(/\[]$/,""),!s)return void(n[r]=t?j(t,e):t);const a=null===t?[]:t.split(e.arrayFormatSeparator).map((r=>j(r,e)));void 0!==n[r]?n[r]=[...n[r],...a]:n[r]=a};default:return(e,r,t)=>{void 0!==t[e]?t[e]=[...[t[e]].flat(),r]:t[e]=r}}}(r),n=Object.create(null);if("string"!==typeof e)return n;if(!(e=e.trim().replace(/^[?#&]/,"")))return n;for(const s of e.split("&")){if(""===s)continue;const e=r.decode?s.replaceAll("+"," "):s;let[a,i]=d(e,"=");void 0===a&&(a=e),i=void 0===i?null:["comma","separator","bracket-separator"].includes(r.arrayFormat)?i:j(i,r),t(j(a,r),i,n)}for(const[s,a]of Object.entries(n))if("object"===typeof a&&null!==a)for(const[e,t]of Object.entries(a))a[e]=b(t,r);else n[s]=b(a,r);return!1===r.sort?n:(!0===r.sort?Object.keys(n).sort():Object.keys(n).sort(r.sort)).reduce(((e,r)=>{const t=n[r];return e[r]=Boolean(t)&&"object"===typeof t&&!Array.isArray(t)?y(t):t,e}),Object.create(null))}function w(e,r){if(!e)return"";h((r={encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:",",...r}).arrayFormatSeparator);const t=t=>r.skipNull&&p(e[t])||r.skipEmptyString&&""===e[t],n=function(e){switch(e.arrayFormat){case"index":return r=>(t,n)=>{const s=t.length;return void 0===n||e.skipNull&&null===n||e.skipEmptyString&&""===n?t:null===n?[...t,[x(r,e),"[",s,"]"].join("")]:[...t,[x(r,e),"[",x(s,e),"]=",x(n,e)].join("")]};case"bracket":return r=>(t,n)=>void 0===n||e.skipNull&&null===n||e.skipEmptyString&&""===n?t:null===n?[...t,[x(r,e),"[]"].join("")]:[...t,[x(r,e),"[]=",x(n,e)].join("")];case"colon-list-separator":return r=>(t,n)=>void 0===n||e.skipNull&&null===n||e.skipEmptyString&&""===n?t:null===n?[...t,[x(r,e),":list="].join("")]:[...t,[x(r,e),":list=",x(n,e)].join("")];case"comma":case"separator":case"bracket-separator":{const r="bracket-separator"===e.arrayFormat?"[]=":"=";return t=>(n,s)=>void 0===s||e.skipNull&&null===s||e.skipEmptyString&&""===s?n:(s=null===s?"":s,0===n.length?[[x(t,e),r,x(s,e)].join("")]:[[n,x(s,e)].join(e.arrayFormatSeparator)])}default:return r=>(t,n)=>void 0===n||e.skipNull&&null===n||e.skipEmptyString&&""===n?t:null===n?[...t,x(r,e)]:[...t,[x(r,e),"=",x(n,e)].join("")]}}(r),s={};for(const[i,o]of Object.entries(e))t(i)||(s[i]=o);const a=Object.keys(s);return!1!==r.sort&&a.sort(r.sort),a.map((t=>{const s=e[t];return void 0===s?"":null===s?x(t,r):Array.isArray(s)?0===s.length&&"bracket-separator"===r.arrayFormat?x(t,r)+"[]":s.reduce(n(t),[]).join("&"):x(t,r)+"="+x(s,r)})).filter((e=>e.length>0)).join("&")}function k(e,r){r={decode:!0,...r};let[t,n]=d(e,"#");return void 0===t&&(t=e),{url:t?.split("?")?.[0]??"",query:N(v(e),r),...r&&r.parseFragmentIdentifier&&n?{fragmentIdentifier:j(n,r)}:{}}}function F(e,r){r={encode:!0,strict:!0,[m]:!0,...r};const t=g(e.url).split("?")[0]||"";let n=w({...N(v(e.url),{sort:!1}),...e.query},r);n&&=`?${n}`;let s=function(e){let r="";const t=e.indexOf("#");return-1!==t&&(r=e.slice(t)),r}(e.url);if("string"===typeof e.fragmentIdentifier){const n=new URL(t);n.hash=e.fragmentIdentifier,s=r[m]?n.hash:`#${e.fragmentIdentifier}`}return`${t}${n}${s}`}function C(e,r,t){t={parseFragmentIdentifier:!0,[m]:!1,...t};const{url:n,query:s,fragmentIdentifier:a}=k(e,t);return F({url:n,query:u(s,r),fragmentIdentifier:a},t)}function S(e,r,t){return C(e,Array.isArray(r)?e=>!r.includes(e):(e,t)=>!r(e,t),t)}const O=n}}]); \ No newline at end of file diff --git a/static/js/291.d99b0865.chunk.js b/static/js/291.d99b0865.chunk.js deleted file mode 100644 index 547df343..00000000 --- a/static/js/291.d99b0865.chunk.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunk_web_index=self.webpackChunk_web_index||[]).push([[291],{541:(e,t,n)=>{n.d(t,{A:()=>u});var r=n(568),a=n(548),i=n(4656),o=n(6638),c=n.n(o),l=n(5219),s=n(4857),d=n(3987),m=n(7857);const u=({id:e,onFocus:t,onBlur:n})=>{const[o,u]=(0,a.useState)(null),[h,g]=(0,a.useState)(""),x=(0,s.k)();(0,a.useEffect)((()=>{d.pY.get(`/post/${e}/comments`).then((e=>{u((null===e||void 0===e?void 0:e.data)||[])})).catch((()=>{u([])}))}),[]);const v=()=>{h?d.pY.post(`/post/${e}/comment`,{data:{content:h}}).then((e=>{e.err||(g(""),u([e.data,...o]))})):i.Ay.error("\u5199\u70b9\u4ec0\u4e48\u5427")};return(0,r.jsxs)("div",{className:"video-comment",children:[(0,r.jsx)("div",{className:"video-comment__title",children:(0,r.jsx)("h4",{children:"\u8bc4\u8bba"})}),(0,r.jsxs)("div",{className:"video-comment-edit",children:[(0,r.jsx)("img",{className:"video-comment-edit__avatar",src:(null===x||void 0===x?void 0:x.Avatar)||"/ic_launcher_round.png",alt:""}),(0,r.jsx)("textarea",{className:"video-comment-edit__input",placeholder:"\u7559\u4e0b\u8bc4\u8bba...",disabled:!x,value:h,onChange:e=>g(e.target.value),onKeyDown:e=>{e.ctrlKey&&13===e.keyCode&&v()},onFocus:e=>null===t||void 0===t?void 0:t(e),onBlur:e=>null===n||void 0===n?void 0:n(e)}),(0,r.jsx)("button",{disabled:!x||!h,className:"button is-primary video-comment-edit__button",onClick:v,children:"\u8bc4\u8bba"})]}),(0,r.jsx)("div",{className:"comment-list",children:o?o.length>0?(0,r.jsx)("ul",{children:o.map((e=>{var t,n;return(0,r.jsxs)("li",{className:c()("comment-item",{"--o":(null===x||void 0===x?void 0:x.ID)==e.Uid}),children:[(0,r.jsxs)("div",{className:"comment-item__head",children:[(0,r.jsx)("img",{className:"comment-item__avatar",src:null===(t=e.Creator)||void 0===t?void 0:t.Avatar,alt:""}),(0,r.jsxs)("div",{children:[(0,r.jsx)("span",{className:"comment-item__name",children:null===(n=e.Creator)||void 0===n?void 0:n.Nickname}),(0,r.jsx)("p",{className:"comment-item__time",children:(0,l.D$)(e.CreatedAt)})]})]}),(0,r.jsx)("div",{className:"comment-item__content",children:(0,r.jsx)("p",{children:e.Content})})]},e.ID)}))}):(0,r.jsx)("p",{className:"empty",children:"\u6682\u65e0\u8bc4\u8bba"}):(0,r.jsx)(m.BQ,{})})]})}},6848:(e,t,n)=>{n.d(t,{Y:()=>a});var r=n(568);const a=({tags:e})=>e.length?(0,r.jsx)("div",{className:"tags are-medium",children:e.map((({href:e,title:t},n)=>(0,r.jsx)("a",{className:"tag is-primary is-light",href:e,target:"_blank",style:{fontSize:"0.9rem"},children:t},n)))}):null},7857:(e,t,n)=>{n.d(t,{BQ:()=>d,BI:()=>m,M4:()=>u});var r=n(568),a=n(548),i=function(){return i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n(0,r.jsxs)(s,Object.assign({viewBox:"0 0 462 160"},e,{children:[(0,r.jsx)("rect",{x:"70",y:"16",rx:"5",ry:"5",width:"100",height:"12"}),(0,r.jsx)("rect",{x:"70",y:"39",rx:"5",ry:"5",width:"321",height:"20"}),(0,r.jsx)("circle",{cx:"26",cy:"40",r:"26"})]})),m=e=>(0,r.jsxs)(s,Object.assign({viewBox:"0 0 500 200"},e,{style:{padding:"0.5em"},children:[(0,r.jsx)("rect",{x:"60",y:"25",rx:"5",ry:"5",width:"50",height:"10"}),(0,r.jsx)("rect",{x:"60",y:"45",rx:"5",ry:"5",width:"60",height:"10"}),(0,r.jsx)("rect",{x:"0",y:"80",rx:"5",ry:"5",width:"46%",height:"20"}),(0,r.jsx)("rect",{x:"0",y:"110",rx:"5",ry:"5",width:"100%",height:"20"}),(0,r.jsx)("rect",{x:"0",y:"140",rx:"5",ry:"5",width:"70%",height:"20"}),(0,r.jsx)("rect",{x:"0",y:"170",rx:"5",ry:"5",width:"60%",height:"20"}),(0,r.jsx)("circle",{cx:"26",cy:"40",r:"26"})]})),u=e=>(0,r.jsxs)(s,Object.assign({viewBox:"0 0 462 160"},e,{children:[(0,r.jsx)("rect",{x:"70",y:"16",rx:"5",ry:"5",width:"100",height:"12"}),(0,r.jsx)("rect",{x:"70",y:"39",rx:"5",ry:"5",width:"321",height:"20"}),(0,r.jsx)("circle",{cx:"26",cy:"40",r:"26"})]}));d.metadata={name:"comment",github:"comment",description:"comment",filename:"CommentSkeleton"}},6352:(e,t,n)=>{n.d(t,{o:()=>p});var r,a=n(568),i=(n(548),n(4041)),o=n(1992),c=n(7706),l=n(5107),s=n(9163),d=n(3549),m=n(8226),u=n(795),h=n(3125),g=n(7673),x=(n(8902),function(e,t,n,r){return new(n||(n=Promise))((function(a,i){function o(e){try{l(r.next(e))}catch(t){i(t)}}function c(e){try{l(r.throw(e))}catch(t){i(t)}}function l(e){var t;e.done?a(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,c)}l((r=r.apply(e,t||[])).next())}))});const v={render:{view:{menu:!1,md:!1,html:!0},classname:"markdown_render"},editor:{view:{menu:!0,md:!0,html:!1},classname:"markdown_editor"}},y=(0,i.l)().use(o.A).use(s.A).use(c.A,{allowDangerousHtml:!0}).use(l.A).use(d.A,{properties:"attr"}).use(m.A,Object.assign(Object.assign({},u.j),{attributes:Object.assign(Object.assign({},u.j.attributes),{img:[...(null===(r=null===u.j||void 0===u.j?void 0:u.j.attributes)||void 0===r?void 0:r.img)||[],["style"]]})})).use(h.A),p=e=>{const{value:t="",type:n,onChange:r,customClassName:i="",placeholder:o=""}=e,{view:c,classname:l}=v[n];let s=`markdown ${l}`;return i&&(s+=` ${i}`),(0,a.jsx)(g.Ay,{className:s,readOnly:"render"===n,view:c,value:t,htmlClass:"markdown-body",renderHTML:e=>x(void 0,void 0,void 0,(function*(){return(yield y.process(e)).toString()})),onChange:e=>null===r||void 0===r?void 0:r(e.text),placeholder:o})}},5219:(e,t,n)=>{function r(e){const t=new Date,n=new Date(e),r=(t.getTime()-n.getTime())/1e3;return r<30?"\u521a\u521a":r<3600?Math.ceil(r/60)+"\u5206\u949f\u524d":r<86400?Math.ceil(r/3600)+"\u5c0f\u65f6\u524d":r<172800?"1\u5929\u524d":r<2678400?Math.ceil(r/3600/24)+"\u5929\u524d":t.getFullYear()===n.getFullYear()?`${n.getMonth()+1}\u6708${n.getDate()}\u65e5`:`${n.getFullYear()}\u5e74${n.getMonth()+1}\u6708${n.getDate()}\u65e5`}function a(e,t=!1){const n=new Date(e);return(new Date).getFullYear()===n.getFullYear()?`${n.getMonth()+1}\u6708${n.getDate()}\u65e5 ${t?` ${n.getHours()}:${n.getMinutes().toString().padStart(2,"0")}`:""}`:`${n.getFullYear()}\u5e74${n.getMonth()+1}\u6708${n.getDate()}\u65e5 ${t?` ${n.getHours()}:${n.getMinutes().toString().padStart(2,"0")}`:""}`}n.d(t,{D$:()=>r,Yq:()=>a})}}]); \ No newline at end of file diff --git a/static/js/395.5820e30a.chunk.js b/static/js/395.5820e30a.chunk.js new file mode 100644 index 00000000..095f3980 --- /dev/null +++ b/static/js/395.5820e30a.chunk.js @@ -0,0 +1,2 @@ +/*! For license information please see 395.5820e30a.chunk.js.LICENSE.txt */ +(self.webpackChunk_web_index=self.webpackChunk_web_index||[]).push([[395],{2726:(e,t,i)=>{"use strict";i.d(t,{A:()=>s});i(1394);const s=i.p+"static/media/recommend.7ba275a22dc6fc70d627a573dd2a26b5.svg"},5069:(e,t,i)=>{"use strict";i.d(t,{A:()=>l});var s=i(1914),a=i(359),r=i(6796),n=i.n(r);function l({title:e,icon:t,videos:i,asideTitle:r,aside:l,moreUrl:c,isLive:d}){return(0,s.jsxs)("div",{className:n()("upv-grid",{"col-2":r,"is-live":d}),children:[(0,s.jsxs)("div",{className:"upv-card-list",children:[(0,s.jsxs)("div",{className:"list-header",children:[(0,s.jsxs)("div",{children:[t&&(0,s.jsx)("img",{src:t,alt:e}),(0,s.jsx)("h2",{children:e})]}),c&&i&&i.length>0&&(0,s.jsxs)("a",{className:"list-header__more",href:c,target:"_blank",children:["more",(0,s.jsxs)("svg",{width:"10",height:"10",viewBox:"0 0 9 9",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"channel-entry-more__link--arrow",children:[(0,s.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.50588 3.40623C7.40825 3.3086 7.24996 3.3086 7.15232 3.40623L4.41244 6.14612L1.67255 3.40623C1.57491 3.3086 1.41662 3.3086 1.31899 3.40623C1.22136 3.50386 1.22136 3.66215 1.31899 3.75978L4.11781 6.5586C4.28053 6.72132 4.54434 6.72132 4.70706 6.5586L7.50588 3.75978C7.60351 3.66215 7.60351 3.50386 7.50588 3.40623Z",fill:"currentColor"}),(0,s.jsx)("path",{d:"M7.15232 3.40623L7.50588 3.75978L7.50588 3.75978L7.15232 3.40623ZM7.50588 3.40623L7.15232 3.75978L7.15233 3.75978L7.50588 3.40623ZM4.41244 6.14612L4.05888 6.49967C4.15265 6.59344 4.27983 6.64612 4.41244 6.64612C4.54504 6.64612 4.67222 6.59344 4.76599 6.49967L4.41244 6.14612ZM1.67255 3.40623L2.0261 3.05268L2.0261 3.05268L1.67255 3.40623ZM1.31899 3.40623L0.965439 3.05268L0.965439 3.05268L1.31899 3.40623ZM1.31899 3.75978L1.67255 3.40623V3.40623L1.31899 3.75978ZM4.11781 6.5586L3.76425 6.91215L4.11781 6.5586ZM4.70706 6.5586L4.35351 6.20505L4.70706 6.5586ZM7.50588 3.75978L7.15233 3.40623L7.15232 3.40623L7.50588 3.75978ZM7.50588 3.75978C7.40825 3.85742 7.24996 3.85742 7.15232 3.75978L7.85943 3.05268C7.56654 2.75978 7.09166 2.75978 6.79877 3.05268L7.50588 3.75978ZM4.76599 6.49967L7.50588 3.75978L6.79877 3.05268L4.05888 5.79257L4.76599 6.49967ZM1.31899 3.75978L4.05888 6.49967L4.76599 5.79257L2.0261 3.05268L1.31899 3.75978ZM1.67254 3.75979C1.57491 3.85742 1.41662 3.85742 1.31899 3.75979L2.0261 3.05268C1.73321 2.75978 1.25833 2.75978 0.965439 3.05268L1.67254 3.75979ZM1.67255 3.40623C1.77018 3.50386 1.77018 3.66215 1.67255 3.75978L0.965439 3.05268C0.672546 3.34557 0.672546 3.82044 0.965439 4.11334L1.67255 3.40623ZM4.47136 6.20505L1.67255 3.40623L0.965439 4.11334L3.76425 6.91215L4.47136 6.20505ZM4.35351 6.20505C4.38605 6.1725 4.43882 6.1725 4.47136 6.20505L3.76425 6.91215C4.12223 7.27013 4.70264 7.27013 5.06062 6.91215L4.35351 6.20505ZM7.15232 3.40623L4.35351 6.20505L5.06062 6.91215L7.85943 4.11334L7.15232 3.40623ZM7.15233 3.75978C7.05469 3.66215 7.05469 3.50386 7.15233 3.40623L7.85943 4.11334C8.15233 3.82045 8.15233 3.34557 7.85943 3.05268L7.15233 3.75978Z",fill:"currentColor"})]})]})]}),(0,s.jsx)("div",{className:"list-body",children:i?i.length>0?i.map(((e,t)=>d?(0,s.jsx)(a.x,Object.assign({},e),t):(0,s.jsx)(a.A,{info:e},t))):(0,s.jsx)("div",{className:"empty",children:"No Data"}):(0,s.jsx)("span",{className:"loading empty",children:"loading\xb7\xb7\xb7"})})]}),!!r&&(0,s.jsxs)("aside",{children:[(0,s.jsx)("div",{className:"aside-header",children:(0,s.jsx)("div",{className:"aside-title",children:r})}),(0,s.jsx)("div",{className:"aside-body",children:l})]})]})}},359:(e,t,i)=>{"use strict";i.d(t,{x:()=>h,A:()=>p});var s=i(1914),a=i(1394),r=i(9163),n=i(5219),l=i(6796),c=i.n(l),d=i(6730);const o=6;let v;const u="loading"in HTMLImageElement.prototype;function p({info:e}){var t;const i="video"===e.Type?`/v/${e.ID}`:`/p/${e.ID}`,l=(0,a.useRef)(null);return(0,a.useEffect)((()=>{var e;if(v&&(null===(e=l.current)||void 0===e?void 0:e.dataset.cover))return v.observe(l.current),()=>{l.current&&(v.unobserve(l.current),l.current.querySelector(".upv-video-card__loading").classList.remove("upv-video-card__loading--hidden"),l.current.querySelector(".upv-video-card__error").classList.remove("upv-video-card__error--show"))}}),[l,e]),(0,s.jsxs)("div",{className:"upv-video-card",children:[(0,s.jsx)(d.N_,{href:i,children:(0,s.jsx)("div",{ref:l,"data-cover":e.Cover,title:e.Title,children:(0,s.jsxs)(r.A,{ratio:3/4,children:[e.Cover&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("img",{loading:"lazy",className:"upv-video-card__image",alt:e.Title,title:e.Title,"data-src":e.Cover,src:u?e.Cover:void 0}),!u&&[(0,s.jsx)("div",{className:"upv-video-card__loading",children:"LOADING"}),(0,s.jsx)("div",{className:"upv-video-card__error",children:"ERROR"})]]}),(0,s.jsx)("div",{className:c()("upv-video-card__nocover",{"upv-video-card__nocover--show":!e.Cover}),children:(0,s.jsx)("span",{className:c()({large:e.Title.length<=4}),children:e.Title.slice(0,o)})})]})})}),(0,s.jsxs)("div",{className:"upv-video-card__content",children:[(0,s.jsx)("div",{className:"upv-video-card__content__title",children:e.Title}),(0,s.jsxs)("div",{className:"upv-video-card__content__author",children:[(0,s.jsx)("span",{children:(null===(t=e.Creator)||void 0===t?void 0:t.Nickname)||"-"})," \xb7 ",(0,s.jsx)("span",{children:(0,n.D$)(e.CreatedAt)})]})]})]})}function h({id:e,level:t,name:i,qq:a,sign:r}){return(0,s.jsx)("a",{href:`/v/${e}?live`,children:(0,s.jsxs)("div",{className:"live-card",style:{display:"flex"},children:[(0,s.jsx)("div",{className:"live-avatar",children:(0,s.jsx)("img",{src:`https://q1.qlogo.cn/g?b=qq&nk=${a}&s=640`,alt:"name"})}),(0,s.jsxs)("div",{className:"live-info",children:[(0,s.jsxs)("span",{children:[r," ",(0,s.jsx)("sup",{children:t})]}),(0,s.jsx)("span",{children:i})]})]})})}u||(v=new IntersectionObserver((e=>{e.forEach((e=>{if(e.isIntersecting){const t=e.target;v.unobserve(t);const i=t.querySelector("img");i.src=i.dataset.src,i.onload=()=>{t.querySelector(".upv-video-card__loading").classList.add("upv-video-card__loading--hidden")},i.onerror=()=>{t.querySelector(".upv-video-card__error").classList.add("upv-video-card__error--show")}}}))}),{threshold:[.15]}))},83:(e,t,i)=>{"use strict";i.d(t,{gL:()=>a,ho:()=>n});function s(e){if(!e)return"https://ae01.alicdn.com/kf/U6751d35799cc4d06965aa7b1879e0fc6i.jpg";let t=e.match(/suo(.+?)\)/i);return t?t[1].slice(2):"https://cdn-us.imgs.moe/2023/02/27/63fcb180cbb30.jpg"}const a=e=>e?Object.assign(Object.assign({},e),{adp:!0,clicli:!0,ID:e.id,Cover:s(e.content),Title:e.title,Content:e.content,Tags:e.tag,Type:"video",CreatedAt:e.time,UpdatedAt:e.time,Meta:{TitleJapanese:"",TitleRomanji:"",Genre:e.sort,Region:"clicli",Episodes:e.content.split("\n").length,IsEnd:2,PublishDate:e.time,UpdatedDate:null},Creator:{ID:1,Name:"YUESE",Nickname:"YUESE",Avatar:"https://q1.qlogo.cn/g?b=qq&nk=7619376472&s=640",Bio:"\u8fd9\u4e2a\u4eba\u5f88\u9177\uff0c\u4ec0\u4e48\u90fd\u6ca1\u6709\u7559\u4e0b"},episodes:e.content.split("\n").map((t=>({ID:t.split("$")[0],Episode:t.split("$")[0],Cover:s(e.content),Title:t.split("$")[0],TitleJapanese:"",TitleRomanji:"",VideoUrl:"",Synopsis:"",Uid:1,Pid:e.id,CreatedAt:e.time,UpdatedAt:e.time})))}):{},r=[3421,31,786,3880,2617,4087],n=(e=[])=>e.filter((e=>!r.includes(e.id))).map(a)},3395:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>p});var s=i(1914),a=i(1394),r=i(8413),n=i(6730);function l({list:e}){return(0,s.jsx)("div",{className:"rank-video-list",children:e?e.length>0?(0,s.jsx)("ul",{className:"rank-video-list__list",children:e.map(((e,t)=>(0,s.jsx)(n.N_,{href:"video"==e.Type?`/v/${e.ID}`:`/p/${e.ID}`,target:"_blank",children:(0,s.jsxs)("li",{className:"rank-video-list__item",children:[(0,s.jsx)("span",{className:"rank-video-list__item--index","data-index":t,children:t+1}),(0,s.jsx)("h3",{children:e.Title})]})},t)))}):(0,s.jsx)("div",{className:"empty",children:"No Data"}):(0,s.jsx)("div",{className:"loading empty",children:"loading\xb7\xb7\xb7"})})}var c=i(5069);const d=JSON.parse('{"data":[{"ID":"131478f2-31cd-446a-9cb2-15158b8c3efe","Cover":"https://static.xiaobaotv.app/upload/vod/20230812-7/08abde10fb590cb7a99c4e8818be3b95.jpg","Title":"\u82b1\u675f\u822c\u7684\u604b\u7231","Content":"","Tags":"\u5176\u4ed6","Status":4,"Type":"video","IsPined":1,"IsRecommend":2,"IsOriginal":1,"CreatedAt":"2022-05-24T21:00:39+08:00","UpdatedAt":"2022-05-24T21:02:47+08:00","Meta":{"TitleJapanese":"","TitleRomanji":"","Genre":"\u7535\u5f71","Region":"\u5176\u4ed6","Episodes":1,"IsEnd":1,"PublishDate":null,"UpdatedDate":null},"Creator":{"ID":1,"Name":"root","Nickname":"YUESE","Avatar":"https://q1.qlogo.cn/g?b=qq&nk=7619376472&s=640","Bio":"\u8fd9\u4e2a\u4eba\u5f88\u9177\uff0c\u4ec0\u4e48\u90fd\u6ca1\u6709\u7559\u4e0b"}}],"err":null}');var o=i(83),v=i(3987);const u=[{title:"Recommends",query:"type=recommends&title=recommends",icon:i(2726).A},{title:"What We're Watching Right Now",query:"type=popular&title=What We're Watching Right Now"},{title:"Latest Releases",query:"type=recent&title=Latest Releases"}];function p(){const[e,t]=(0,a.useState)([null,null]);return(0,a.useEffect)((()=>{Promise.allSettled([d,v.OF.get("https://www.clicli.cc/posts?status=public&sort=&tag=%E6%8E%A8%E8%8D%90&uid=&page=1&pageSize=12"),v.OF.get("https://www.clicli.cc/posts?status=public&sort=&tag=&uid=&page=1&pageSize=24"),v.OF.get("https://www.clicli.cc/rank?day=60")]).then((e=>{const i=e.map((({value:e})=>e.posts?(0,o.ho)(e.posts):e.data));t(i)}))}),[]),(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(r.m,{children:(0,s.jsx)("title",{children:"UPV - free animes no ads"})}),u.map(((t,i)=>(0,s.jsx)(c.A,{videos:e[i],isLive:-1==i,icon:u[i].icon,title:u[i].title,moreUrl:`/pv/tag?${u[i].query}`,aside:0==i&&(0,s.jsx)(l,{list:e[e.length-1]}),asideTitle:0==i&&"Ranks"},i)))]})}},9163:(e,t,i)=>{"use strict";i.d(t,{A:()=>a});var s=i(1914);const a=e=>{const{children:t,ratio:i,mw:a}=e;return(0,s.jsx)("div",{className:"aspect-ratio",style:{width:"string"===typeof a?a:`${a}px`},children:(0,s.jsx)("div",{className:"aspect-ratio__fill",style:{paddingTop:1/i*100+"%"},children:t})})}},5219:(e,t,i)=>{"use strict";function s(e){const t=new Date,i=new Date(e),s=(t.getTime()-i.getTime())/1e3;return s<30?"\u521a\u521a":s<3600?Math.ceil(s/60)+"\u5206\u949f\u524d":s<86400?Math.ceil(s/3600)+"\u5c0f\u65f6\u524d":s<172800?"1\u5929\u524d":s<2678400?Math.ceil(s/3600/24)+"\u5929\u524d":t.getFullYear()===i.getFullYear()?`${i.getMonth()+1}\u6708${i.getDate()}\u65e5`:`${i.getFullYear()}\u5e74${i.getMonth()+1}\u6708${i.getDate()}\u65e5`}function a(e,t=!1){const i=new Date(e);return(new Date).getFullYear()===i.getFullYear()?`${i.getMonth()+1}\u6708${i.getDate()}\u65e5 ${t?` ${i.getHours()}:${i.getMinutes().toString().padStart(2,"0")}`:""}`:`${i.getFullYear()}\u5e74${i.getMonth()+1}\u6708${i.getDate()}\u65e5 ${t?` ${i.getHours()}:${i.getMinutes().toString().padStart(2,"0")}`:""}`}i.d(t,{D$:()=>s,Yq:()=>a})},6796:(e,t)=>{var i;!function(){"use strict";var s={}.hasOwnProperty;function a(){for(var e="",t=0;t{"use strict";t.d(r,{x:()=>p,A:()=>h});var i=t(1914),s=t(1394),n=t(9163),a=t(5219),l=t(6796),c=t.n(l),d=t(6730);const o=6;let v;const u="loading"in HTMLImageElement.prototype;function h({info:e}){var r;const t="video"===e.Type?`/v/${e.ID}`:`/p/${e.ID}`,l=(0,s.useRef)(null);return(0,s.useEffect)((()=>{var e;if(v&&(null===(e=l.current)||void 0===e?void 0:e.dataset.cover))return v.observe(l.current),()=>{l.current&&(v.unobserve(l.current),l.current.querySelector(".upv-video-card__loading").classList.remove("upv-video-card__loading--hidden"),l.current.querySelector(".upv-video-card__error").classList.remove("upv-video-card__error--show"))}}),[l,e]),(0,i.jsxs)("div",{className:"upv-video-card",children:[(0,i.jsx)(d.N_,{href:t,children:(0,i.jsx)("div",{ref:l,"data-cover":e.Cover,title:e.Title,children:(0,i.jsxs)(n.A,{ratio:3/4,children:[e.Cover&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("img",{loading:"lazy",className:"upv-video-card__image",alt:e.Title,title:e.Title,"data-src":e.Cover,src:u?e.Cover:void 0}),!u&&[(0,i.jsx)("div",{className:"upv-video-card__loading",children:"LOADING"}),(0,i.jsx)("div",{className:"upv-video-card__error",children:"ERROR"})]]}),(0,i.jsx)("div",{className:c()("upv-video-card__nocover",{"upv-video-card__nocover--show":!e.Cover}),children:(0,i.jsx)("span",{className:c()({large:e.Title.length<=4}),children:e.Title.slice(0,o)})})]})})}),(0,i.jsxs)("div",{className:"upv-video-card__content",children:[(0,i.jsx)("div",{className:"upv-video-card__content__title",children:e.Title}),(0,i.jsxs)("div",{className:"upv-video-card__content__author",children:[(0,i.jsx)("span",{children:(null===(r=e.Creator)||void 0===r?void 0:r.Nickname)||"-"})," \xb7 ",(0,i.jsx)("span",{children:(0,a.D$)(e.CreatedAt)})]})]})]})}function p({id:e,level:r,name:t,qq:s,sign:n}){return(0,i.jsx)("a",{href:`/v/${e}?live`,children:(0,i.jsxs)("div",{className:"live-card",style:{display:"flex"},children:[(0,i.jsx)("div",{className:"live-avatar",children:(0,i.jsx)("img",{src:`https://q1.qlogo.cn/g?b=qq&nk=${s}&s=640`,alt:"name"})}),(0,i.jsxs)("div",{className:"live-info",children:[(0,i.jsxs)("span",{children:[n," ",(0,i.jsx)("sup",{children:r})]}),(0,i.jsx)("span",{children:t})]})]})})}u||(v=new IntersectionObserver((e=>{e.forEach((e=>{if(e.isIntersecting){const r=e.target;v.unobserve(r);const t=r.querySelector("img");t.src=t.dataset.src,t.onload=()=>{r.querySelector(".upv-video-card__loading").classList.add("upv-video-card__loading--hidden")},t.onerror=()=>{r.querySelector(".upv-video-card__error").classList.add("upv-video-card__error--show")}}}))}),{threshold:[.15]}))},9410:(e,r,t)=>{"use strict";t.r(r),t.d(r,{default:()=>o});var i=t(1914),s=t(1394),n=t(6796),a=t.n(n),l=t(3987),c=t(359),d=t(8413);const o=function(){var e;const[r,t]=(0,s.useState)((new Date).getDay()),[n,o]=(0,s.useState)([]);return(0,s.useEffect)((()=>{l.pY.get("/post/week").then((e=>{!e.err&&o(e.data)}))}),[]),(0,i.jsxs)("div",{className:"v-index",children:[(0,i.jsx)(d.m,{children:(0,i.jsx)("title",{children:"\u65b0\u756a\u65f6\u95f4\u8868 - UPV - free animes no ads"})}),(0,i.jsx)("div",{className:"index-header",children:(0,i.jsxs)("div",{className:"index-header-left",children:[(0,i.jsx)("h1",{className:"title",children:"\u6bcf\u5468\u66f4\u65b0"}),(0,i.jsx)("ul",{className:"tags are-medium",children:l.h8.map(((e,s)=>(0,i.jsx)("li",{className:a()("tag is-rounded",{"is-primary":s===r}),onClick:()=>t(s),children:e},s)))})]})}),(0,i.jsx)("ul",{className:"video-list",children:null===(e=n[r])||void 0===e?void 0:e.map(((e,r)=>(0,i.jsx)("li",{children:e&&(0,i.jsx)(c.A,{info:e})},r)))})]})}},9163:(e,r,t)=>{"use strict";t.d(r,{A:()=>s});var i=t(1914);const s=e=>{const{children:r,ratio:t,mw:s}=e;return(0,i.jsx)("div",{className:"aspect-ratio",style:{width:"string"===typeof s?s:`${s}px`},children:(0,i.jsx)("div",{className:"aspect-ratio__fill",style:{paddingTop:1/t*100+"%"},children:r})})}},5219:(e,r,t)=>{"use strict";function i(e){const r=new Date,t=new Date(e),i=(r.getTime()-t.getTime())/1e3;return i<30?"\u521a\u521a":i<3600?Math.ceil(i/60)+"\u5206\u949f\u524d":i<86400?Math.ceil(i/3600)+"\u5c0f\u65f6\u524d":i<172800?"1\u5929\u524d":i<2678400?Math.ceil(i/3600/24)+"\u5929\u524d":r.getFullYear()===t.getFullYear()?`${t.getMonth()+1}\u6708${t.getDate()}\u65e5`:`${t.getFullYear()}\u5e74${t.getMonth()+1}\u6708${t.getDate()}\u65e5`}function s(e,r=!1){const t=new Date(e);return(new Date).getFullYear()===t.getFullYear()?`${t.getMonth()+1}\u6708${t.getDate()}\u65e5 ${r?` ${t.getHours()}:${t.getMinutes().toString().padStart(2,"0")}`:""}`:`${t.getFullYear()}\u5e74${t.getMonth()+1}\u6708${t.getDate()}\u65e5 ${r?` ${t.getHours()}:${t.getMinutes().toString().padStart(2,"0")}`:""}`}t.d(r,{D$:()=>i,Yq:()=>s})},6796:(e,r)=>{var t;!function(){"use strict";var i={}.hasOwnProperty;function s(){for(var e="",r=0;r{"use strict";var t=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(o){return!1}}()?Object.assign:function(e,o){for(var i,a,u=function(e){if(null===e||void 0===e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),c=1;c{"use strict";var r=n(6733);function o(){}function i(){}i.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,i,a){if(a!==r){var u=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw u.name="Invariant Violation",u}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:o};return n.PropTypes=n,n}},4724:(e,t,n)=>{e.exports=n(6902)()},6733:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},7996:e=>{var t="undefined"!==typeof Element,n="function"===typeof Map,r="function"===typeof Set,o="function"===typeof ArrayBuffer&&!!ArrayBuffer.isView;function i(e,a){if(e===a)return!0;if(e&&a&&"object"==typeof e&&"object"==typeof a){if(e.constructor!==a.constructor)return!1;var u,c,s,f;if(Array.isArray(e)){if((u=e.length)!=a.length)return!1;for(c=u;0!==c--;)if(!i(e[c],a[c]))return!1;return!0}if(n&&e instanceof Map&&a instanceof Map){if(e.size!==a.size)return!1;for(f=e.entries();!(c=f.next()).done;)if(!a.has(c.value[0]))return!1;for(f=e.entries();!(c=f.next()).done;)if(!i(c.value[1],a.get(c.value[0])))return!1;return!0}if(r&&e instanceof Set&&a instanceof Set){if(e.size!==a.size)return!1;for(f=e.entries();!(c=f.next()).done;)if(!a.has(c.value[0]))return!1;return!0}if(o&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(a)){if((u=e.length)!=a.length)return!1;for(c=u;0!==c--;)if(e[c]!==a[c])return!1;return!0}if(e.constructor===RegExp)return e.source===a.source&&e.flags===a.flags;if(e.valueOf!==Object.prototype.valueOf&&"function"===typeof e.valueOf&&"function"===typeof a.valueOf)return e.valueOf()===a.valueOf();if(e.toString!==Object.prototype.toString&&"function"===typeof e.toString&&"function"===typeof a.toString)return e.toString()===a.toString();if((u=(s=Object.keys(e)).length)!==Object.keys(a).length)return!1;for(c=u;0!==c--;)if(!Object.prototype.hasOwnProperty.call(a,s[c]))return!1;if(t&&e instanceof Element)return!1;for(c=u;0!==c--;)if(("_owner"!==s[c]&&"__v"!==s[c]&&"__o"!==s[c]||!e.$$typeof)&&!i(e[s[c]],a[s[c]]))return!1;return!0}return e!==e&&a!==a}e.exports=function(e,t){try{return i(e,t)}catch(n){if((n.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw n}}},8413:(e,t,n)=>{"use strict";n.d(t,{m:()=>ce});var r=n(4724),o=n.n(r),i=n(2421),a=n.n(i),u=n(7996),c=n.n(u),s=n(1394),f=n(9767),l=n.n(f),p="bodyAttributes",d="htmlAttributes",y="titleAttributes",h={BASE:"base",BODY:"body",HEAD:"head",HTML:"html",LINK:"link",META:"meta",NOSCRIPT:"noscript",SCRIPT:"script",STYLE:"style",TITLE:"title"},b=(Object.keys(h).map((function(e){return h[e]})),"charset"),m="cssText",T="href",g="http-equiv",v="innerHTML",w="itemprop",O="name",C="property",A="rel",S="src",E="target",j={accesskey:"accessKey",charset:"charSet",class:"className",contenteditable:"contentEditable",contextmenu:"contextMenu","http-equiv":"httpEquiv",itemprop:"itemProp",tabindex:"tabIndex"},P="defaultTitle",k="defer",x="encodeSpecialCharacters",I="onChangeClientState",L="titleTemplate",_=Object.keys(j).reduce((function(e,t){return e[j[t]]=t,e}),{}),M=[h.NOSCRIPT,h.SCRIPT,h.STYLE],N="data-react-helmet",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},q=function(){function e(e,t){for(var n=0;n=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n},H=function(e){return!1===(!(arguments.length>1&&void 0!==arguments[1])||arguments[1])?String(e):String(e).replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'")},Y=function(e){var t=W(e,h.TITLE),n=W(e,L);if(n&&t)return n.replace(/%s/g,(function(){return Array.isArray(t)?t.join(""):t}));var r=W(e,P);return t||r||void 0},F=function(e){return W(e,I)||function(){}},U=function(e,t){return t.filter((function(t){return"undefined"!==typeof t[e]})).map((function(t){return t[e]})).reduce((function(e,t){return D({},e,t)}),{})},z=function(e,t){return t.filter((function(e){return"undefined"!==typeof e[h.BASE]})).map((function(e){return e[h.BASE]})).reverse().reduce((function(t,n){if(!t.length)for(var r=Object.keys(n),o=0;o=0;n--){var r=e[n];if(r.hasOwnProperty(t))return r[t]}return null},V=function(){var e=Date.now();return function(t){var n=Date.now();n-e>16?(e=n,t(n)):setTimeout((function(){V(t)}),0)}}(),$=function(e){return clearTimeout(e)},G="undefined"!==typeof window?window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||V:n.g.requestAnimationFrame||V,J="undefined"!==typeof window?window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||$:n.g.cancelAnimationFrame||$,Q=function(e){return console&&"function"===typeof console.warn&&console.warn(e)},X=null,Z=function(e,t){var n=e.baseTag,r=e.bodyAttributes,o=e.htmlAttributes,i=e.linkTags,a=e.metaTags,u=e.noscriptTags,c=e.onChangeClientState,s=e.scriptTags,f=e.styleTags,l=e.title,p=e.titleAttributes;ne(h.BODY,r),ne(h.HTML,o),te(l,p);var d={baseTag:re(h.BASE,n),linkTags:re(h.LINK,i),metaTags:re(h.META,a),noscriptTags:re(h.NOSCRIPT,u),scriptTags:re(h.SCRIPT,s),styleTags:re(h.STYLE,f)},y={},b={};Object.keys(d).forEach((function(e){var t=d[e],n=t.newTags,r=t.oldTags;n.length&&(y[e]=n),r.length&&(b[e]=d[e].oldTags)})),t&&t(),c(e,y,b)},ee=function(e){return Array.isArray(e)?e.join(""):e},te=function(e,t){"undefined"!==typeof e&&document.title!==e&&(document.title=ee(e)),ne(h.TITLE,t)},ne=function(e,t){var n=document.getElementsByTagName(e)[0];if(n){for(var r=n.getAttribute(N),o=r?r.split(","):[],i=[].concat(o),a=Object.keys(t),u=0;u=0;l--)n.removeAttribute(i[l]);o.length===i.length?n.removeAttribute(N):n.getAttribute(N)!==a.join(",")&&n.setAttribute(N,a.join(","))}},re=function(e,t){var n=document.head||document.querySelector(h.HEAD),r=n.querySelectorAll(e+"["+N+"]"),o=Array.prototype.slice.call(r),i=[],a=void 0;return t&&t.length&&t.forEach((function(t){var n=document.createElement(e);for(var r in t)if(t.hasOwnProperty(r))if(r===v)n.innerHTML=t.innerHTML;else if(r===m)n.styleSheet?n.styleSheet.cssText=t.cssText:n.appendChild(document.createTextNode(t.cssText));else{var u="undefined"===typeof t[r]?"":t[r];n.setAttribute(r,u)}n.setAttribute(N,"true"),o.some((function(e,t){return a=t,n.isEqualNode(e)}))?o.splice(a,1):i.push(n)})),o.forEach((function(e){return e.parentNode.removeChild(e)})),i.forEach((function(e){return n.appendChild(e)})),{oldTags:o,newTags:i}},oe=function(e){return Object.keys(e).reduce((function(t,n){var r="undefined"!==typeof e[n]?n+'="'+e[n]+'"':""+n;return t?t+" "+r:r}),"")},ie=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.keys(e).reduce((function(t,n){return t[j[n]||n]=e[n],t}),t)},ae=function(e,t,n){switch(e){case h.TITLE:return{toComponent:function(){return function(e,t,n){var r,o=((r={key:t})[N]=!0,r),i=ie(n,o);return[s.createElement(h.TITLE,i,t)]}(0,t.title,t.titleAttributes)},toString:function(){return function(e,t,n,r){var o=oe(n),i=ee(t);return o?"<"+e+" "+N+'="true" '+o+">"+H(i,r)+"":"<"+e+" "+N+'="true">'+H(i,r)+""}(e,t.title,t.titleAttributes,n)}};case p:case d:return{toComponent:function(){return ie(t)},toString:function(){return oe(t)}};default:return{toComponent:function(){return function(e,t){return t.map((function(t,n){var r,o=((r={key:n})[N]=!0,r);return Object.keys(t).forEach((function(e){var n=j[e]||e;if(n===v||n===m){var r=t.innerHTML||t.cssText;o.dangerouslySetInnerHTML={__html:r}}else o[n]=t[e]})),s.createElement(e,o)}))}(e,t)},toString:function(){return function(e,t,n){return t.reduce((function(t,r){var o=Object.keys(r).filter((function(e){return!(e===v||e===m)})).reduce((function(e,t){var o="undefined"===typeof r[t]?t:t+'="'+H(r[t],n)+'"';return e?e+" "+o:o}),""),i=r.innerHTML||r.cssText||"",a=-1===M.indexOf(e);return t+"<"+e+" "+N+'="true" '+o+(a?"/>":">"+i+"")}),"")}(e,t,n)}}}},ue=function(e){var t=e.baseTag,n=e.bodyAttributes,r=e.encode,o=e.htmlAttributes,i=e.linkTags,a=e.metaTags,u=e.noscriptTags,c=e.scriptTags,s=e.styleTags,f=e.title,l=void 0===f?"":f,y=e.titleAttributes;return{base:ae(h.BASE,t,r),bodyAttributes:ae(p,n,r),htmlAttributes:ae(d,o,r),link:ae(h.LINK,i,r),meta:ae(h.META,a,r),noscript:ae(h.NOSCRIPT,u,r),script:ae(h.SCRIPT,c,r),style:ae(h.STYLE,s,r),title:ae(h.TITLE,{title:l,titleAttributes:y},r)}},ce=function(e){var t,n;return n=t=function(t){function n(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}(this,t.apply(this,arguments))}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(n,t),n.prototype.shouldComponentUpdate=function(e){return!c()(this.props,e)},n.prototype.mapNestedChildrenToProps=function(e,t){if(!t)return null;switch(e.type){case h.SCRIPT:case h.NOSCRIPT:return{innerHTML:t};case h.STYLE:return{cssText:t}}throw new Error("<"+e.type+" /> elements are self-closing and can not contain children. Refer to our API for more information.")},n.prototype.flattenArrayTypeChildren=function(e){var t,n=e.child,r=e.arrayTypeChildren,o=e.newChildProps,i=e.nestedChildren;return D({},r,((t={})[n.type]=[].concat(r[n.type]||[],[D({},o,this.mapNestedChildrenToProps(n,i))]),t))},n.prototype.mapObjectTypeChildren=function(e){var t,n,r=e.child,o=e.newProps,i=e.newChildProps,a=e.nestedChildren;switch(r.type){case h.TITLE:return D({},o,((t={})[r.type]=a,t.titleAttributes=D({},i),t));case h.BODY:return D({},o,{bodyAttributes:D({},i)});case h.HTML:return D({},o,{htmlAttributes:D({},i)})}return D({},o,((n={})[r.type]=D({},i),n))},n.prototype.mapArrayTypeChildrenToProps=function(e,t){var n=D({},t);return Object.keys(e).forEach((function(t){var r;n=D({},n,((r={})[t]=e[t],r))})),n},n.prototype.warnOnInvalidChildren=function(e,t){return!0},n.prototype.mapChildrenToProps=function(e,t){var n=this,r={};return s.Children.forEach(e,(function(e){if(e&&e.props){var o=e.props,i=o.children,a=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.keys(e).reduce((function(t,n){return t[_[n]||n]=e[n],t}),t)}(B(o,["children"]));switch(n.warnOnInvalidChildren(e,i),e.type){case h.LINK:case h.META:case h.NOSCRIPT:case h.SCRIPT:case h.STYLE:r=n.flattenArrayTypeChildren({child:e,arrayTypeChildren:r,newChildProps:a,nestedChildren:i});break;default:t=n.mapObjectTypeChildren({child:e,newProps:t,newChildProps:a,nestedChildren:i})}}})),t=this.mapArrayTypeChildrenToProps(r,t)},n.prototype.render=function(){var t=this.props,n=t.children,r=B(t,["children"]),o=D({},r);return n&&(o=this.mapChildrenToProps(n,o)),s.createElement(e,o)},q(n,null,[{key:"canUseDOM",set:function(t){e.canUseDOM=t}}]),n}(s.Component),t.propTypes={base:o().object,bodyAttributes:o().object,children:o().oneOfType([o().arrayOf(o().node),o().node]),defaultTitle:o().string,defer:o().bool,encodeSpecialCharacters:o().bool,htmlAttributes:o().object,link:o().arrayOf(o().object),meta:o().arrayOf(o().object),noscript:o().arrayOf(o().object),onChangeClientState:o().func,script:o().arrayOf(o().object),style:o().arrayOf(o().object),title:o().string,titleAttributes:o().object,titleTemplate:o().string},t.defaultProps={defer:!0,encodeSpecialCharacters:!0},t.peek=e.peek,t.rewind=function(){var t=e.rewind();return t||(t=ue({baseTag:[],bodyAttributes:{},encodeSpecialCharacters:!0,htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}})),t},n}(a()((function(e){return{baseTag:z([T,E],e),bodyAttributes:U(p,e),defer:W(e,k),encode:W(e,x),htmlAttributes:U(d,e),linkTags:K(h.LINK,[A,T],e),metaTags:K(h.META,[O,b,g,C,w],e),noscriptTags:K(h.NOSCRIPT,[v],e),onChangeClientState:F(e),scriptTags:K(h.SCRIPT,[S,v],e),styleTags:K(h.STYLE,[m],e),title:Y(e),titleAttributes:U(y,e)}}),(function(e){X&&J(X),e.defer?X=G((function(){Z(e,(function(){X=null}))})):(Z(e),X=null)}),ue)((function(){return null})));ce.renderStatic=ce.rewind},2421:(e,t,n)=>{"use strict";var r,o=n(1394),i=(r=o)&&"object"===typeof r&&"default"in r?r.default:r;function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var u=!("undefined"===typeof window||!window.document||!window.document.createElement);e.exports=function(e,t,n){if("function"!==typeof e)throw new Error("Expected reducePropsToState to be a function.");if("function"!==typeof t)throw new Error("Expected handleStateChangeOnClient to be a function.");if("undefined"!==typeof n&&"function"!==typeof n)throw new Error("Expected mapStateOnServer to either be undefined or a function.");return function(r){if("function"!==typeof r)throw new Error("Expected WrappedComponent to be a React component.");var c,s=[];function f(){c=e(s.map((function(e){return e.props}))),l.canUseDOM?t(c):n&&(c=n(c))}var l=function(e){var t,n;function o(){return e.apply(this,arguments)||this}n=e,(t=o).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n,o.peek=function(){return c},o.rewind=function(){if(o.canUseDOM)throw new Error("You may only call rewind() on the server. Call peek() to read the current state.");var e=c;return c=void 0,s=[],e};var a=o.prototype;return a.UNSAFE_componentWillMount=function(){s.push(this),f()},a.componentDidUpdate=function(){f()},a.componentWillUnmount=function(){var e=s.indexOf(this);s.splice(e,1),f()},a.render=function(){return i.createElement(r,this.props)},o}(o.PureComponent);return a(l,"displayName","SideEffect("+function(e){return e.displayName||e.name||"Component"}(r)+")"),a(l,"canUseDOM",u),l}}}}]); \ No newline at end of file diff --git a/static/js/963.00a6a427.chunk.js.LICENSE.txt b/static/js/413.2f326699.chunk.js.LICENSE.txt similarity index 100% rename from static/js/963.00a6a427.chunk.js.LICENSE.txt rename to static/js/413.2f326699.chunk.js.LICENSE.txt diff --git a/static/js/271.a2c2a689.chunk.js b/static/js/459.b4f44b26.chunk.js similarity index 78% rename from static/js/271.a2c2a689.chunk.js rename to static/js/459.b4f44b26.chunk.js index 1c35f25e..de63ba1b 100644 --- a/static/js/271.a2c2a689.chunk.js +++ b/static/js/459.b4f44b26.chunk.js @@ -1 +1 @@ -(self.webpackChunk_web_index=self.webpackChunk_web_index||[]).push([[271],{9992:(e,t,n)=>{"use strict";n.d(t,{A:()=>f});var i=n(6823),s=n.n(i),r=function(e){return s().atob?s().atob(e):Buffer.from(e,"base64").toString("binary")};function f(e){for(var t=r(e),n=new Uint8Array(t.length),i=0;i{"use strict";n.d(t,{A:()=>i});var i=function(){function e(){this.listeners={}}var t=e.prototype;return t.on=function(e,t){this.listeners[e]||(this.listeners[e]=[]),this.listeners[e].push(t)},t.off=function(e,t){if(!this.listeners[e])return!1;var n=this.listeners[e].indexOf(t);return this.listeners[e]=this.listeners[e].slice(0),this.listeners[e].splice(n,1),n>-1},t.trigger=function(e){var t=this.listeners[e];if(t)if(2===arguments.length)for(var n=t.length,i=0;i{var i;i="undefined"!==typeof window?window:"undefined"!==typeof n.g?n.g:"undefined"!==typeof self?self:{},e.exports=i}}]); \ No newline at end of file +(self.webpackChunk_web_index=self.webpackChunk_web_index||[]).push([[459],{3386:(e,t,n)=>{"use strict";n.d(t,{A:()=>f});var i=n(4893),s=n.n(i),r=function(e){return s().atob?s().atob(e):Buffer.from(e,"base64").toString("binary")};function f(e){for(var t=r(e),n=new Uint8Array(t.length),i=0;i{"use strict";n.d(t,{A:()=>i});var i=function(){function e(){this.listeners={}}var t=e.prototype;return t.on=function(e,t){this.listeners[e]||(this.listeners[e]=[]),this.listeners[e].push(t)},t.off=function(e,t){if(!this.listeners[e])return!1;var n=this.listeners[e].indexOf(t);return this.listeners[e]=this.listeners[e].slice(0),this.listeners[e].splice(n,1),n>-1},t.trigger=function(e){var t=this.listeners[e];if(t)if(2===arguments.length)for(var n=t.length,i=0;i{var i;i="undefined"!==typeof window?window:"undefined"!==typeof n.g?n.g:"undefined"!==typeof self?self:{},e.exports=i}}]); \ No newline at end of file diff --git a/static/js/467.4fb76faf.chunk.js b/static/js/467.4fb76faf.chunk.js new file mode 100644 index 00000000..990fd469 --- /dev/null +++ b/static/js/467.4fb76faf.chunk.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk_web_index=self.webpackChunk_web_index||[]).push([[467],{6862:(e,t,n)=>{n.d(t,{A:()=>u});var r=n(1914),a=n(1394),i=n(4332),o=n(6796),c=n.n(o),l=n(5219),s=n(4857),d=n(3987),m=n(1645);const u=({id:e,onFocus:t,onBlur:n})=>{const[o,u]=(0,a.useState)(null),[h,g]=(0,a.useState)(""),x=(0,s.k)();(0,a.useEffect)((()=>{d.pY.get(`/post/${e}/comments`).then((e=>{u((null===e||void 0===e?void 0:e.data)||[])})).catch((()=>{u([])}))}),[]);const v=()=>{h?d.pY.post(`/post/${e}/comment`,{data:{content:h}}).then((e=>{e.err||(g(""),u([e.data,...o]))})):i.Ay.error("\u5199\u70b9\u4ec0\u4e48\u5427")};return(0,r.jsxs)("div",{className:"video-comment",children:[(0,r.jsx)("div",{className:"video-comment__title",children:(0,r.jsx)("h4",{children:"\u8bc4\u8bba"})}),(0,r.jsxs)("div",{className:"video-comment-edit",children:[(0,r.jsx)("img",{className:"video-comment-edit__avatar",src:(null===x||void 0===x?void 0:x.Avatar)||"/ic_launcher_round.png",alt:""}),(0,r.jsx)("textarea",{className:"video-comment-edit__input",placeholder:"\u7559\u4e0b\u8bc4\u8bba...",disabled:!x,value:h,onChange:e=>g(e.target.value),onKeyDown:e=>{e.ctrlKey&&13===e.keyCode&&v()},onFocus:e=>null===t||void 0===t?void 0:t(e),onBlur:e=>null===n||void 0===n?void 0:n(e)}),(0,r.jsx)("button",{disabled:!x||!h,className:"button is-primary video-comment-edit__button",onClick:v,children:"\u8bc4\u8bba"})]}),(0,r.jsx)("div",{className:"comment-list",children:o?o.length>0?(0,r.jsx)("ul",{children:o.map((e=>{var t,n;return(0,r.jsxs)("li",{className:c()("comment-item",{"--o":(null===x||void 0===x?void 0:x.ID)==e.Uid}),children:[(0,r.jsxs)("div",{className:"comment-item__head",children:[(0,r.jsx)("img",{className:"comment-item__avatar",src:null===(t=e.Creator)||void 0===t?void 0:t.Avatar,alt:""}),(0,r.jsxs)("div",{children:[(0,r.jsx)("span",{className:"comment-item__name",children:null===(n=e.Creator)||void 0===n?void 0:n.Nickname}),(0,r.jsx)("p",{className:"comment-item__time",children:(0,l.D$)(e.CreatedAt)})]})]}),(0,r.jsx)("div",{className:"comment-item__content",children:(0,r.jsx)("p",{children:e.Content})})]},e.ID)}))}):(0,r.jsx)("p",{className:"empty",children:"\u6682\u65e0\u8bc4\u8bba"}):(0,r.jsx)(m.BQ,{})})]})}},6848:(e,t,n)=>{n.d(t,{Y:()=>a});var r=n(1914);const a=({tags:e})=>e.length?(0,r.jsx)("div",{className:"tags are-medium",children:e.map((({href:e,title:t},n)=>(0,r.jsx)("a",{className:"tag is-primary is-light",href:e,target:"_blank",style:{fontSize:"0.9rem"},children:t},n)))}):null},1645:(e,t,n)=>{n.d(t,{BQ:()=>d,BI:()=>m,M4:()=>u});var r=n(1914),a=n(1394),i=function(){return i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n(0,r.jsxs)(s,Object.assign({viewBox:"0 0 462 160"},e,{children:[(0,r.jsx)("rect",{x:"70",y:"16",rx:"5",ry:"5",width:"100",height:"12"}),(0,r.jsx)("rect",{x:"70",y:"39",rx:"5",ry:"5",width:"321",height:"20"}),(0,r.jsx)("circle",{cx:"26",cy:"40",r:"26"})]})),m=e=>(0,r.jsxs)(s,Object.assign({viewBox:"0 0 500 200"},e,{style:{padding:"0.5em"},children:[(0,r.jsx)("rect",{x:"60",y:"25",rx:"5",ry:"5",width:"50",height:"10"}),(0,r.jsx)("rect",{x:"60",y:"45",rx:"5",ry:"5",width:"60",height:"10"}),(0,r.jsx)("rect",{x:"0",y:"80",rx:"5",ry:"5",width:"46%",height:"20"}),(0,r.jsx)("rect",{x:"0",y:"110",rx:"5",ry:"5",width:"100%",height:"20"}),(0,r.jsx)("rect",{x:"0",y:"140",rx:"5",ry:"5",width:"70%",height:"20"}),(0,r.jsx)("rect",{x:"0",y:"170",rx:"5",ry:"5",width:"60%",height:"20"}),(0,r.jsx)("circle",{cx:"26",cy:"40",r:"26"})]})),u=e=>(0,r.jsxs)(s,Object.assign({viewBox:"0 0 462 160"},e,{children:[(0,r.jsx)("rect",{x:"70",y:"16",rx:"5",ry:"5",width:"100",height:"12"}),(0,r.jsx)("rect",{x:"70",y:"39",rx:"5",ry:"5",width:"321",height:"20"}),(0,r.jsx)("circle",{cx:"26",cy:"40",r:"26"})]}));d.metadata={name:"comment",github:"comment",description:"comment",filename:"CommentSkeleton"}},5607:(e,t,n)=>{n.d(t,{o:()=>p});var r,a=n(1914),i=(n(1394),n(9309)),o=n(7299),c=n(9071),l=n(9277),s=n(1909),d=n(4886),m=n(5164),u=n(8633),h=n(1007),g=n(5277),x=(n(3571),function(e,t,n,r){return new(n||(n=Promise))((function(a,i){function o(e){try{l(r.next(e))}catch(t){i(t)}}function c(e){try{l(r.throw(e))}catch(t){i(t)}}function l(e){var t;e.done?a(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,c)}l((r=r.apply(e,t||[])).next())}))});const v={render:{view:{menu:!1,md:!1,html:!0},classname:"markdown_render"},editor:{view:{menu:!0,md:!0,html:!1},classname:"markdown_editor"}},y=(0,i.l)().use(o.A).use(s.A).use(c.A,{allowDangerousHtml:!0}).use(l.A).use(d.A,{properties:"attr"}).use(m.A,Object.assign(Object.assign({},u.j),{attributes:Object.assign(Object.assign({},u.j.attributes),{img:[...(null===(r=null===u.j||void 0===u.j?void 0:u.j.attributes)||void 0===r?void 0:r.img)||[],["style"]]})})).use(h.A),p=e=>{const{value:t="",type:n,onChange:r,customClassName:i="",placeholder:o=""}=e,{view:c,classname:l}=v[n];let s=`markdown ${l}`;return i&&(s+=` ${i}`),(0,a.jsx)(g.Ay,{className:s,readOnly:"render"===n,view:c,value:t,htmlClass:"markdown-body",renderHTML:e=>x(void 0,void 0,void 0,(function*(){return(yield y.process(e)).toString()})),onChange:e=>null===r||void 0===r?void 0:r(e.text),placeholder:o})}},5219:(e,t,n)=>{function r(e){const t=new Date,n=new Date(e),r=(t.getTime()-n.getTime())/1e3;return r<30?"\u521a\u521a":r<3600?Math.ceil(r/60)+"\u5206\u949f\u524d":r<86400?Math.ceil(r/3600)+"\u5c0f\u65f6\u524d":r<172800?"1\u5929\u524d":r<2678400?Math.ceil(r/3600/24)+"\u5929\u524d":t.getFullYear()===n.getFullYear()?`${n.getMonth()+1}\u6708${n.getDate()}\u65e5`:`${n.getFullYear()}\u5e74${n.getMonth()+1}\u6708${n.getDate()}\u65e5`}function a(e,t=!1){const n=new Date(e);return(new Date).getFullYear()===n.getFullYear()?`${n.getMonth()+1}\u6708${n.getDate()}\u65e5 ${t?` ${n.getHours()}:${n.getMinutes().toString().padStart(2,"0")}`:""}`:`${n.getFullYear()}\u5e74${n.getMonth()+1}\u6708${n.getDate()}\u65e5 ${t?` ${n.getHours()}:${n.getMinutes().toString().padStart(2,"0")}`:""}`}n.d(t,{D$:()=>r,Yq:()=>a})}}]); \ No newline at end of file diff --git a/static/js/498.43c164e2.chunk.js b/static/js/498.43c164e2.chunk.js deleted file mode 100644 index 5eb0cfe3..00000000 --- a/static/js/498.43c164e2.chunk.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunk_web_index=self.webpackChunk_web_index||[]).push([[498],{4499:(e,t,s)=>{s.r(t),s.d(t,{default:()=>x});var i=s(568),n=s(548),c=s(4656),o=s(6638),a=s.n(o),l=s(963);var d=s(5219),r=s(6352),C=s(3987),p=s(541),h=s(7857),v=s(6848);const x=({id:e})=>{const[t,o]=(0,n.useState)({}),[x,m]=(0,n.useState)(!1),[f,u]=(0,n.useState)(!1),[j,g]=(0,n.useState)(!1),w=(0,n.useMemo)((()=>window.innerWidth<991),[]);(0,n.useEffect)((()=>{s.e(611).then(s.t.bind(s,3611,19)).then((t=>{o(t.data.find((t=>t.ID==e)))}))}),[]),(0,n.useEffect)((()=>{if(!E||w)return;const e=()=>{s.getBoundingClientRect().top<=-200?t.classList.remove("post-side--hide"):t.classList.add("post-side--hide")},t=document.querySelector(".post-side"),s=document.querySelector(".post-container__cover");return document.getElementById("root").addEventListener("scroll",e),()=>{s&&document.getElementById("root").removeEventListener("scroll",e)}}),[t]);const b=(0,n.useCallback)((()=>{const s=x?-1:1,i=t.LikesCount||0;m((e=>!e)),o((e=>Object.assign(Object.assign({},e),{LikesCount:i+s}))),(x?C.pY.delete(`/like/post/${e}`):C.pY.post(`/like/post/${e}`)).then((e=>{e.err?(m((e=>!e)),o((e=>Object.assign(Object.assign({},e),{LikesCount:i-s})))):x?c.Ay.error("\u4f60\u6240\u70ed\u7231\u7684\uff0c\u5c31\u662f\u4f60\u7684\u751f\u6d3b\u3002\r\n \t\t\t\t--------?"):c.Ay.success("nice!")})).catch((()=>{setTimeout((()=>{m((e=>!e)),o((e=>Object.assign(Object.assign({},e),{LikesCount:i-1})))}),300)}))}),[t,x]),y=(0,n.useCallback)((()=>{const t=f?-1:1;u((e=>!e)),o((e=>Object.assign(Object.assign({},e),{CollectionCount:e.CollectionCount+t}))),(f?C.pY.delete(`/collect/post/${e}`):C.pY.post(`/collect/post/${e}`)).then((e=>{e.err?(u((e=>!e)),o((e=>Object.assign(Object.assign({},e),{CollectionCount:e.CollectionCount-t})))):f||c.Ay.success("nice!")})).catch((()=>{setTimeout((()=>{u((e=>!e)),o((e=>Object.assign(Object.assign({},e),{CollectionCount:e.CollectionCount-1})))}),300)}))}),[t,f]),{Title:M,Creator:_,CreatedAt:N,Hits:k,CommentCount:z,Tags:$,IsOriginal:H,LikesCount:L,CollectionCount:O,Content:A,Cover:E}=t,{Nickname:B,Avatar:S}=_||{};return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)(l.m,{children:[(0,i.jsx)("title",{children:`${M||""} - UPV - free animes no ads`}),(0,i.jsx)("meta",{name:"description",content:null===A||void 0===A?void 0:A.substring(0,200)}),(0,i.jsx)("meta",{name:"referrer",content:"no-referrer-when-downgrade"}),(0,i.jsx)("meta",{name:"keywords",content:`${M},${null===$||void 0===$?void 0:$.split(" ")}`}),(0,i.jsx)("meta",{name:"author",content:null===_||void 0===_?void 0:_.Nickname}),(0,i.jsx)("meta",{property:"og:title",content:`${M} - UPV - free animes no ads`}),(0,i.jsx)("meta",{property:"og:type",content:"article"}),(0,i.jsx)("meta",{property:"og:image",content:E}),(0,i.jsx)("meta",{property:"og:url",content:location.origin+location.pathname})]}),!!E&&(0,i.jsx)("div",{className:"post-container__cover",style:{background:`url(${E}) no-repeat top/cover #f4f5f7`}}),(0,i.jsxs)("div",{className:a()("post-container",{"--no-cover":!E}),children:[(0,i.jsxs)("div",{className:a()("post-side",{"post-side--hide":!!E&&!w,"--o":w&&j}),children:[(0,i.jsxs)("div",{className:a()("post-side-action",{"--l":x}),role:"button",onClick:b,children:[(0,i.jsx)("div",{className:"side-action-icon",children:(0,i.jsxs)("svg",{className:"side-action__icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"8638",width:"200",height:"200",children:[(0,i.jsx)("path",{d:"M64.67 512c2.03-148.27 27.78-271.04 103.07-344.26C240.96 92.45 363.73 66.7 512 64.67c148.27 2.03 271.04 27.78 344.26 103.07C931.55 240.96 957.3 363.73 959.33 512c-2.03 148.27-27.78 271.04-103.07 344.26C783.04 931.55 660.27 957.3 512 959.33c-148.27-2.03-271.04-27.78-344.26-103.07C92.45 783.04 66.7 660.27 64.67 512z","p-id":"8639","data-spm-anchor-id":"a313x.7781069.0.i2"}),(0,i.jsx)("path",{d:"M344.25 391.82c-4.3 0-8.62-1.32-12.32-4.07-9.21-6.81-11.16-19.8-4.35-29.01a133.117 133.117 0 0 0 24.14-56.43c1.94-11.29 12.59-18.98 23.97-16.9 11.29 1.94 18.86 12.68 16.9 23.97-2.39 13.87-6.47 27.4-12.09 40.24a174.495 174.495 0 0 1-19.57 33.78c-4.05 5.52-10.33 8.42-16.68 8.42z",fill:x?"#fff":"#6668ab","p-id":"8640"}),(0,i.jsx)("path",{d:"M479.65 371.62H369.82c-11.45 0-20.75-9.29-20.75-20.75s9.29-20.75 20.75-20.75h109.83c11.45 0 20.75 9.29 20.75 20.75s-9.3 20.75-20.75 20.75zM492.04 438.38H334.28c-11.45 0-20.75-9.29-20.75-20.75s9.29-20.75 20.75-20.75h157.76c11.45 0 20.75 9.29 20.75 20.75s-9.3 20.75-20.75 20.75z",fill:x?"#fff":"#6668ab","p-id":"8641"}),(0,i.jsx)("path",{d:"M434.46 438.11c-11.45 0-20.75-9.29-20.75-20.75v-101.7c0-11.45 9.29-20.75 20.75-20.75s20.75 9.29 20.75 20.75v101.7c-0.01 11.46-9.3 20.75-20.75 20.75zM533.12 391.82c-4.3 0-8.62-1.32-12.32-4.07-9.21-6.81-11.16-19.8-4.35-29.01a133.117 133.117 0 0 0 24.14-56.43c1.94-11.29 12.64-18.98 23.97-16.9 11.29 1.94 18.85 12.68 16.9 23.97-2.39 13.87-6.47 27.4-12.09 40.24a174.495 174.495 0 0 1-19.57 33.78c-4.05 5.52-10.33 8.42-16.68 8.42z",fill:x?"#fff":"#6668ab","p-id":"8642"}),(0,i.jsx)("path",{d:"M687.54 371.16H563.35c-11.45 0-20.75-9.29-20.75-20.75s9.29-20.75 20.75-20.75h124.19c11.45 0 20.75 9.29 20.75 20.75s-9.29 20.75-20.75 20.75zM702.21 438.38H544.46c-11.45 0-20.75-9.29-20.75-20.75s9.29-20.75 20.75-20.75h157.76c11.45 0 20.75 9.29 20.75 20.75s-9.31 20.75-20.76 20.75z",fill:x?"#fff":"#6668ab","p-id":"8643"}),(0,i.jsx)("path",{d:"M615.93 438.11c-11.45 0-20.75-9.29-20.75-20.75v-101.7c0-11.45 9.29-20.75 20.75-20.75 11.45 0 20.75 9.29 20.75 20.75v101.7c0 11.46-9.3 20.75-20.75 20.75zM334.29 541.84c-6.79 0-13.47-3.34-17.44-9.48-6.21-9.63-3.46-22.46 6.16-28.69 9.35-6.04 22.58-16.91 32.59-34.37 10.68-18.65 13.1-36.79 13.25-48.73 0.14-11.37 9.4-20.49 20.75-20.49h0.26c11.45 0.15 20.62 9.55 20.49 21-0.2 16.84-3.63 42.46-18.73 68.84-14.15 24.69-32.86 40.06-46.07 48.6a20.695 20.695 0 0 1-11.26 3.32zM456.16 511.15c-4.36 0-8.67-1.38-12.28-4.02a20.775 20.775 0 0 1-8.47-16.72v-62.24c0-11.45 9.29-20.75 20.75-20.75s20.75 9.29 20.75 20.75v34l8.93-2.8c10.94-3.46 22.57 2.66 26 13.6 3.42 10.93-2.66 22.57-13.6 26l-35.87 11.24c-2.03 0.63-4.13 0.94-6.21 0.94z",fill:x?"#fff":"#6668ab","p-id":"8644"}),(0,i.jsx)("path",{d:"M536.7 527.61c-5.78 0-11.52-2.39-15.63-7.08-7.55-8.63-6.67-21.73 1.94-29.28 8.7-7.6 15.82-16.56 21.15-26.58 9.49-17.86 11.21-35.21 10.97-46.61-0.23-11.47 8.86-20.93 20.31-21.18 11.63-0.31 20.93 8.86 21.18 20.31 0.34 16.34-2.15 41.22-15.83 66.95-7.71 14.49-17.95 27.39-30.44 38.33-3.94 3.46-8.8 5.14-13.65 5.14zM686.98 523.41c-3.9 0-7.5-0.23-10.59-0.42-13.1-0.8-32.87-2.01-47.66-18.53-13.32-14.86-14.42-32.83-13.91-42.22l-0.03-41.13c0-11.45 9.29-20.75 20.75-20.75 11.45 0 20.75 9.29 20.75 20.75v42.28c-0.16 3.55-0.11 9.54 3.35 13.38 3.09 3.46 8.51 4.15 19.29 4.81 6.47 0.38 15.32 0.95 17.84-1.7 1.03-1.07 1.73-3.05 1.99-5.59 1.13-11.4 11.22-19.92 22.7-18.57 11.4 1.13 19.72 11.3 18.57 22.7-1.19 11.83-5.74 22.22-13.18 30.04-12.07 12.7-27.49 14.95-39.87 14.95zM643.03 653.64c-11.45 0-20.75-9.29-20.75-20.75v-55.9H410.35v55.9c0 11.45-9.29 20.75-20.75 20.75s-20.75-9.29-20.75-20.75v-76.65c0-11.45 9.29-20.75 20.75-20.75h253.42c11.45 0 20.75 9.29 20.75 20.75v76.65c0 11.46-9.29 20.75-20.74 20.75z",fill:x?"#fff":"#6668ab","p-id":"8645"}),(0,i.jsx)("path",{d:"M358.89 732.59c-6.42 0-11.87-0.3-16.13-0.65-11.41-0.97-19.89-11.01-18.94-22.42 0.97-11.43 11.2-19.68 22.42-18.94 18.63 1.63 66.56 1.7 108.93-30.9 25.45-19.6 39.44-43.69 46.68-60.44 4.55-10.51 16.73-15.37 27.28-10.81 10.52 4.55 15.36 16.76 10.81 27.28-13.18 30.47-33.74 57.04-59.46 76.84-44.1 33.96-92.59 40.04-121.59 40.04z",fill:x?"#fff":"#6668ab","p-id":"8646"}),(0,i.jsx)("path",{d:"M685.65 738.92c-3.93 0-7.9-1.11-11.43-3.43a525.948 525.948 0 0 0-70.95-39.36 526.58 526.58 0 0 0-94.26-32.71c-11.13-2.7-17.95-13.93-15.24-25.07 2.71-11.13 13.82-17.95 25.07-15.24a570.02 570.02 0 0 1 101.69 35.28 570.902 570.902 0 0 1 76.57 42.46c9.55 6.32 12.18 19.19 5.88 28.76-4 6.04-10.6 9.31-17.33 9.31z",fill:x?"#fff":"#6668ab","p-id":"8647"})]})}),(0,i.jsx)("div",{className:"side-action__text",children:x?`\u83b7\u8d5e ${L}`:`\u70b9\u8d5e ${L||""}`})]}),(0,i.jsxs)("div",{className:a()("post-side-action",{"--l":f}),role:"button",onClick:y,children:[(0,i.jsx)("div",{className:"side-action-icon",style:{fontWeight:"bold",color:f?"#fff":"#6668ab"},children:"\u85cf"}),(0,i.jsx)("div",{className:"side-action__text",children:`\u6536\u85cf ${O||""}`})]}),(0,i.jsxs)("div",{className:"post-side-action share",role:"button",onClick:()=>{!function(e,{target:t=document.body}={}){if("string"!==typeof e)throw new TypeError(`Expected parameter \`text\` to be a \`string\`, got \`${typeof e}\`.`);const s=document.createElement("textarea"),i=document.activeElement;s.value=e,s.setAttribute("readonly",""),s.style.contain="strict",s.style.position="absolute",s.style.left="-9999px",s.style.fontSize="12pt";const n=document.getSelection(),c=n.rangeCount>0&&n.getRangeAt(0);t.append(s),s.select(),s.selectionStart=0,s.selectionEnd=e.length;let o=!1;try{o=document.execCommand("copy")}catch{}return s.remove(),c&&(n.removeAllRanges(),n.addRange(c)),i&&i.focus(),o}(`${t.Title} - ${t.Creator.Nickname} \r\n${window.location.href}`)?c.Ay.error("write to clipboard failed"):c.Ay.success("copied!")},children:[(0,i.jsx)("div",{className:"side-action-icon",children:(0,i.jsx)("svg",{className:"side-action__icon share",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"30471",width:"200",height:"200",children:(0,i.jsx)("path",{d:"M860.41 192.73L730.5 825.4a39.87 39.87 0 0 1-60.19 25.78l-139.24-87.06a11.18 11.18 0 0 0-13.82 1.58l-90.82 90.82c-16.16 16.15-43.78 4.71-43.78-18.14 0 0 0.4-121.39 0.86-162.09a33.29 33.29 0 0 1 9.11-22.5l318.5-338.49-13.83-6.91S420.78 558.83 348.68 624.2a30.41 30.41 0 0 1-36.68 3.18l-130.3-81.51c-26.48-16.56-24.5-55.76 3.52-69.56l636.43-313.52c20.35-10.02 43.35 7.73 38.76 29.94z","p-id":"30472","data-spm-anchor-id":"a313x.7781069.0.i12",fill:"#6668ab"})})}),(0,i.jsx)("div",{className:"side-action__text",children:"\u5206\u4eab"})]})]}),t.ID?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("h2",{className:"video-info__title post-title",children:M}),(0,i.jsxs)("div",{className:"video-info ",children:[(0,i.jsx)("div",{className:"video-author",children:(0,i.jsx)("img",{src:S||"/ic_launcher_round.png",alt:B})}),(0,i.jsxs)("div",{children:[(0,i.jsx)("span",{className:"video-info__title",children:B||"-"}),(0,i.jsxs)("div",{className:"video-meta",children:[(0,i.jsxs)("svg",{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"6827",width:"200",height:"200",children:[(0,i.jsx)("defs",{}),(0,i.jsx)("path",{d:"M167.024 512a344.976 344.976 0 1 1 689.952 0 344.976 344.976 0 0 1-690 0zM512 106.976a405.024 405.024 0 1 0 0 810.048 405.024 405.024 0 0 0 0-810z m30 235.008a30 30 0 1 0-60 0V512c0 7.968 3.168 15.6 8.784 21.216l120 120a30 30 0 1 0 42.432-42.432L542 499.52V341.984z",fill:"#9499A0","p-id":"6828"})]}),(0,i.jsx)("span",{children:N?(0,d.D$)(N):"-"}),(0,i.jsx)("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,i.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.67735 4.2798C5.98983 4.1725 7.85812 4.0625 10 4.0625C12.1421 4.0625 14.0105 4.17252 15.323 4.27983C16.2216 4.3533 16.9184 5.04049 16.9989 5.9318C17.0962 7.00837 17.1875 8.43614 17.1875 10C17.1875 11.5639 17.0962 12.9916 16.9989 14.0682C16.9184 14.9595 16.2216 15.6467 15.323 15.7202C14.0105 15.8275 12.1421 15.9375 10 15.9375C7.85812 15.9375 5.98983 15.8275 4.67735 15.7202C3.77861 15.6467 3.08174 14.9593 3.00119 14.0678C2.90388 12.9908 2.8125 11.5627 2.8125 10C2.8125 8.43727 2.90388 7.00924 3.00119 5.93221C3.08174 5.04067 3.77861 4.35327 4.67735 4.2798ZM10 2.8125C7.81674 2.8125 5.9136 2.92456 4.5755 3.03395C3.07738 3.15643 1.8921 4.31616 1.75626 5.81973C1.65651 6.92379 1.5625 8.39058 1.5625 10C1.5625 11.6094 1.65651 13.0762 1.75626 14.1803C1.8921 15.6838 3.07738 16.8436 4.5755 16.966C5.9136 17.0754 7.81674 17.1875 10 17.1875C12.1835 17.1875 14.0868 17.0754 15.4249 16.966C16.9228 16.8436 18.108 15.6841 18.2438 14.1807C18.3435 13.077 18.4375 11.6105 18.4375 10C18.4375 8.38948 18.3435 6.92296 18.2438 5.81931C18.108 4.31588 16.9228 3.15645 15.4249 3.03398C14.0868 2.92458 12.1835 2.8125 10 2.8125ZM12.1876 10.722C12.7431 10.4013 12.7431 9.59941 12.1876 9.27866L9.06133 7.47373C8.50577 7.15298 7.81133 7.55392 7.81133 8.19542V11.8053C7.81133 12.4468 8.50577 12.8477 9.06133 12.527L12.1876 10.722Z",fill:"var(--text3)"})}),(0,i.jsx)("span",{children:k||"-"}),(0,i.jsx)("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,i.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10 4.0625C7.85812 4.0625 5.98983 4.1725 4.67735 4.2798C3.77861 4.35327 3.08174 5.04067 3.00119 5.93221C2.90388 7.00924 2.8125 8.43727 2.8125 10C2.8125 11.5627 2.90388 12.9908 3.00119 14.0678C3.08174 14.9593 3.77861 15.6467 4.67735 15.7202C5.98983 15.8275 7.85812 15.9375 10 15.9375C12.1421 15.9375 14.0105 15.8275 15.323 15.7202C16.2216 15.6467 16.9184 14.9595 16.9989 14.0682C17.0962 12.9916 17.1875 11.5639 17.1875 10C17.1875 8.43614 17.0962 7.00837 16.9989 5.9318C16.9184 5.04049 16.2216 4.3533 15.323 4.27983C14.0105 4.17252 12.1421 4.0625 10 4.0625ZM4.5755 3.03395C5.9136 2.92456 7.81674 2.8125 10 2.8125C12.1835 2.8125 14.0868 2.92458 15.4249 3.03398C16.9228 3.15645 18.108 4.31588 18.2438 5.81931C18.3435 6.92296 18.4375 8.38948 18.4375 10C18.4375 11.6105 18.3435 13.077 18.2438 14.1807C18.108 15.6841 16.9228 16.8436 15.4249 16.966C14.0868 17.0754 12.1835 17.1875 10 17.1875C7.81674 17.1875 5.9136 17.0754 4.5755 16.966C3.07738 16.8436 1.8921 15.6838 1.75626 14.1803C1.65651 13.0762 1.5625 11.6094 1.5625 10C1.5625 8.39058 1.65651 6.92379 1.75626 5.81973C1.8921 4.31616 3.07738 3.15643 4.5755 3.03395ZM5 8.4375C5 8.09232 5.27982 7.8125 5.625 7.8125H5.9375C6.28268 7.8125 6.5625 8.09232 6.5625 8.4375C6.5625 8.78268 6.28268 9.0625 5.9375 9.0625H5.625C5.27982 9.0625 5 8.78268 5 8.4375ZM7.5 8.4375C7.5 8.09232 7.77982 7.8125 8.125 7.8125H13.125C13.4702 7.8125 13.75 8.09232 13.75 8.4375C13.75 8.78268 13.4702 9.0625 13.125 9.0625H8.125C7.77982 9.0625 7.5 8.78268 7.5 8.4375ZM6.875 10.9375C6.52982 10.9375 6.25 11.2173 6.25 11.5625C6.25 11.9077 6.52982 12.1875 6.875 12.1875H7.1875C7.53268 12.1875 7.8125 11.9077 7.8125 11.5625C7.8125 11.2173 7.53268 10.9375 7.1875 10.9375H6.875ZM9.375 10.9375C9.02982 10.9375 8.75 11.2173 8.75 11.5625C8.75 11.9077 9.02982 12.1875 9.375 12.1875H14.375C14.7202 12.1875 15 11.9077 15 11.5625C15 11.2173 14.7202 10.9375 14.375 10.9375H9.375Z",fill:"var(--text3)"})}),(0,i.jsx)("span",{children:z||"-"})]})]})]})]}):(0,i.jsx)(h.BI,{}),(0,i.jsx)(r.o,{type:"render",value:A}),(0,i.jsx)(v.Y,{tags:$?$.trim().split(" ").map((e=>({title:e,href:`/pv/tag?type=video&title=${e}`}))).concat(2==H?{title:"\u539f\u521b",href:"/pv/tag?type=video&is_original=2&title=\u539f\u521b"}:[]):[]}),(0,i.jsx)(p.A,{id:e,onFocus:()=>g(!0),onBlur:()=>g(!1)})]})]})}}}]); \ No newline at end of file diff --git a/static/js/513.9cc80aee.chunk.js b/static/js/513.9cc80aee.chunk.js deleted file mode 100644 index 538e903a..00000000 --- a/static/js/513.9cc80aee.chunk.js +++ /dev/null @@ -1,2 +0,0 @@ -/*! For license information please see 513.9cc80aee.chunk.js.LICENSE.txt */ -(self.webpackChunk_web_index=self.webpackChunk_web_index||[]).push([[513],{4676:(e,r,t)=>{"use strict";t.d(r,{x:()=>p,A:()=>h});var i=t(568),s=t(548),n=t(1908),a=t(5219),l=t(6638),c=t.n(l),d=t(6192);const o=6;let v;const u="loading"in HTMLImageElement.prototype;function h({info:e}){var r;const t="video"===e.Type?`/v/${e.ID}`:`/p/${e.ID}`,l=(0,s.useRef)(null);return(0,s.useEffect)((()=>{var e;if(v&&(null===(e=l.current)||void 0===e?void 0:e.dataset.cover))return v.observe(l.current),()=>{l.current&&(v.unobserve(l.current),l.current.querySelector(".upv-video-card__loading").classList.remove("upv-video-card__loading--hidden"),l.current.querySelector(".upv-video-card__error").classList.remove("upv-video-card__error--show"))}}),[l,e]),(0,i.jsxs)("div",{className:"upv-video-card",children:[(0,i.jsx)(d.N_,{href:t,children:(0,i.jsx)("div",{ref:l,"data-cover":e.Cover,title:e.Title,children:(0,i.jsxs)(n.A,{ratio:3/4,children:[e.Cover&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("img",{loading:"lazy",className:"upv-video-card__image",alt:e.Title,title:e.Title,"data-src":e.Cover,src:u?e.Cover:void 0}),!u&&[(0,i.jsx)("div",{className:"upv-video-card__loading",children:"LOADING"}),(0,i.jsx)("div",{className:"upv-video-card__error",children:"ERROR"})]]}),(0,i.jsx)("div",{className:c()("upv-video-card__nocover",{"upv-video-card__nocover--show":!e.Cover}),children:(0,i.jsx)("span",{className:c()({large:e.Title.length<=4}),children:e.Title.slice(0,o)})})]})})}),(0,i.jsxs)("div",{className:"upv-video-card__content",children:[(0,i.jsx)("div",{className:"upv-video-card__content__title",children:e.Title}),(0,i.jsxs)("div",{className:"upv-video-card__content__author",children:[(0,i.jsx)("span",{children:(null===(r=e.Creator)||void 0===r?void 0:r.Nickname)||"-"})," \xb7 ",(0,i.jsx)("span",{children:(0,a.D$)(e.CreatedAt)})]})]})]})}function p({id:e,level:r,name:t,qq:s,sign:n}){return(0,i.jsx)("a",{href:`/v/${e}?live`,children:(0,i.jsxs)("div",{className:"live-card",style:{display:"flex"},children:[(0,i.jsx)("div",{className:"live-avatar",children:(0,i.jsx)("img",{src:`https://q1.qlogo.cn/g?b=qq&nk=${s}&s=640`,alt:"name"})}),(0,i.jsxs)("div",{className:"live-info",children:[(0,i.jsxs)("span",{children:[n," ",(0,i.jsx)("sup",{children:r})]}),(0,i.jsx)("span",{children:t})]})]})})}u||(v=new IntersectionObserver((e=>{e.forEach((e=>{if(e.isIntersecting){const r=e.target;v.unobserve(r);const t=r.querySelector("img");t.src=t.dataset.src,t.onload=()=>{r.querySelector(".upv-video-card__loading").classList.add("upv-video-card__loading--hidden")},t.onerror=()=>{r.querySelector(".upv-video-card__error").classList.add("upv-video-card__error--show")}}}))}),{threshold:[.15]}))},8513:(e,r,t)=>{"use strict";t.r(r),t.d(r,{default:()=>o});var i=t(568),s=t(548),n=t(6638),a=t.n(n),l=t(3987),c=t(4676),d=t(963);const o=function(){var e;const[r,t]=(0,s.useState)((new Date).getDay()),[n,o]=(0,s.useState)([]);return(0,s.useEffect)((()=>{l.pY.get("/post/week").then((e=>{!e.err&&o(e.data)}))}),[]),(0,i.jsxs)("div",{className:"v-index",children:[(0,i.jsx)(d.m,{children:(0,i.jsx)("title",{children:"\u65b0\u756a\u65f6\u95f4\u8868 - UPV - free animes no ads"})}),(0,i.jsx)("div",{className:"index-header",children:(0,i.jsxs)("div",{className:"index-header-left",children:[(0,i.jsx)("h1",{className:"title",children:"\u6bcf\u5468\u66f4\u65b0"}),(0,i.jsx)("ul",{className:"tags are-medium",children:l.h8.map(((e,s)=>(0,i.jsx)("li",{className:a()("tag is-rounded",{"is-primary":s===r}),onClick:()=>t(s),children:e},s)))})]})}),(0,i.jsx)("ul",{className:"video-list",children:null===(e=n[r])||void 0===e?void 0:e.map(((e,r)=>(0,i.jsx)("li",{children:e&&(0,i.jsx)(c.A,{info:e})},r)))})]})}},1908:(e,r,t)=>{"use strict";t.d(r,{A:()=>s});var i=t(568);const s=e=>{const{children:r,ratio:t,mw:s}=e;return(0,i.jsx)("div",{className:"aspect-ratio",style:{width:"string"===typeof s?s:`${s}px`},children:(0,i.jsx)("div",{className:"aspect-ratio__fill",style:{paddingTop:1/t*100+"%"},children:r})})}},5219:(e,r,t)=>{"use strict";function i(e){const r=new Date,t=new Date(e),i=(r.getTime()-t.getTime())/1e3;return i<30?"\u521a\u521a":i<3600?Math.ceil(i/60)+"\u5206\u949f\u524d":i<86400?Math.ceil(i/3600)+"\u5c0f\u65f6\u524d":i<172800?"1\u5929\u524d":i<2678400?Math.ceil(i/3600/24)+"\u5929\u524d":r.getFullYear()===t.getFullYear()?`${t.getMonth()+1}\u6708${t.getDate()}\u65e5`:`${t.getFullYear()}\u5e74${t.getMonth()+1}\u6708${t.getDate()}\u65e5`}function s(e,r=!1){const t=new Date(e);return(new Date).getFullYear()===t.getFullYear()?`${t.getMonth()+1}\u6708${t.getDate()}\u65e5 ${r?` ${t.getHours()}:${t.getMinutes().toString().padStart(2,"0")}`:""}`:`${t.getFullYear()}\u5e74${t.getMonth()+1}\u6708${t.getDate()}\u65e5 ${r?` ${t.getHours()}:${t.getMinutes().toString().padStart(2,"0")}`:""}`}t.d(r,{D$:()=>i,Yq:()=>s})},6638:(e,r)=>{var t;!function(){"use strict";var i={}.hasOwnProperty;function s(){for(var e="",r=0;r{e.exports=JSON.parse('{"data":{"ID":"a7a1345e-1bc8-4793-9650-a0ee89b6d74b","Cover":"","Title":"\u65b0 QQ \u7fa4","Content":"\u70b9\u51fb\u94fe\u63a5\u52a0\u5165\u7fa4\u804a\u3010\u6708\u8272\u771f\u7f8e\u3011\uff1a[https://jq.qq.com/?_wv=1027&k=EFpgexC8](https://jq.qq.com/?_wv=1027&k=EFpgexC8)","Tags":"\u516c\u544a","Status":4,"Type":"post","IsPined":1,"IsRecommend":1,"IsOriginal":1,"CreatedAt":"2022-06-25T23:47:53+08:00","UpdatedAt":"2022-06-25T23:50:19+08:00","Creator":{"ID":1,"Name":"root","Nickname":"YUESE","Avatar":"https://q1.qlogo.cn/g?b=qq&nk=7619376472&s=640","Bio":"\u8fd9\u4e2a\u4eba\u5f88\u9177\uff0c\u4ec0\u4e48\u90fd\u6ca1\u6709\u7559\u4e0b"},"Hits":69,"IsLiked":1,"LikesCount":0,"IsCollected":1,"CollectionCount":0,"CommentCount":0}}')}}]); \ No newline at end of file +"use strict";(self.webpackChunk_web_index=self.webpackChunk_web_index||[]).push([[528],{9528:e=>{e.exports=JSON.parse('{"data":{"ID":"a7a1345e-1bc8-4793-9650-a0ee89b6d74b","Cover":"","Title":"\u65b0 QQ \u7fa4","Content":"\u70b9\u51fb\u94fe\u63a5\u52a0\u5165\u7fa4\u804a\u3010\u6708\u8272\u771f\u7f8e\u3011\uff1a[https://jq.qq.com/?_wv=1027&k=EFpgexC8](https://jq.qq.com/?_wv=1027&k=EFpgexC8)","Tags":"\u516c\u544a","Status":4,"Type":"post","IsPined":1,"IsRecommend":1,"IsOriginal":1,"CreatedAt":"2022-06-25T23:47:53+08:00","UpdatedAt":"2022-06-25T23:50:19+08:00","Creator":{"ID":1,"Name":"root","Nickname":"YUESE","Avatar":"https://q1.qlogo.cn/g?b=qq&nk=7619376472&s=640","Bio":"\u8fd9\u4e2a\u4eba\u5f88\u9177\uff0c\u4ec0\u4e48\u90fd\u6ca1\u6709\u7559\u4e0b"},"Hits":69,"IsLiked":1,"LikesCount":0,"IsCollected":1,"CollectionCount":0,"CommentCount":0}}')}}]); \ No newline at end of file diff --git a/static/js/528.e84cf917.chunk.js b/static/js/528.e84cf917.chunk.js deleted file mode 100644 index 777a169e..00000000 --- a/static/js/528.e84cf917.chunk.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk_web_index=self.webpackChunk_web_index||[]).push([[528],{83:(e,t,l)=>{"use strict";l.d(t,{gL:()=>s,ho:()=>n});function a(e){if(!e)return"https://ae01.alicdn.com/kf/U6751d35799cc4d06965aa7b1879e0fc6i.jpg";let t=e.match(/suo(.+?)\)/i);return t?t[1].slice(2):"https://cdn-us.imgs.moe/2023/02/27/63fcb180cbb30.jpg"}const s=e=>e?Object.assign(Object.assign({},e),{adp:!0,clicli:!0,ID:e.id,Cover:a(e.content),Title:e.title,Content:e.content,Tags:e.tag,Type:"video",CreatedAt:e.time,UpdatedAt:e.time,Meta:{TitleJapanese:"",TitleRomanji:"",Genre:e.sort,Region:"clicli",Episodes:e.content.split("\n").length,IsEnd:2,PublishDate:e.time,UpdatedDate:null},Creator:{ID:1,Name:"YUESE",Nickname:"YUESE",Avatar:"https://q1.qlogo.cn/g?b=qq&nk=7619376472&s=640",Bio:"\u8fd9\u4e2a\u4eba\u5f88\u9177\uff0c\u4ec0\u4e48\u90fd\u6ca1\u6709\u7559\u4e0b"},episodes:e.content.split("\n").map((t=>({ID:t.split("$")[0],Episode:t.split("$")[0],Cover:a(e.content),Title:t.split("$")[0],TitleJapanese:"",TitleRomanji:"",VideoUrl:"",Synopsis:"",Uid:1,Pid:e.id,CreatedAt:e.time,UpdatedAt:e.time})))}):{},i=[3421,31,786,3880,2617],n=(e=[])=>e.filter((e=>!i.includes(e.id))).map(s)},4413:(e,t,l)=>{"use strict";l.r(t),l.d(t,{default:()=>Z});var a=l(568),s=l(548),i=l(5219),n=l(3991),c=l(3242),o=l(6397),r=l(7454),d=l(1851),h=function(e,t){var l={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(l[a]=e[a]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var s=0;for(a=Object.getOwnPropertySymbols(e);s{var{playerIsPlaying:l,duration:i,onEvent:p,autoplay:v}=e,m=h(e,["playerIsPlaying","duration","onEvent","autoplay"]);const u=(0,s.useRef)(null);(0,s.useImperativeHandle)(t,(()=>u.current));const g=(0,s.useMemo)((()=>[(0,r.A)({speeds:[],pictureInPicture:!0,keyboard:{global:!0},forceLandscapeOnFullscreen:!0,subtitle:{background:!0,shadow:"none"},theme:{controller:{header:{},slideToSeek:"always",displayBehavior:"delay"},progress:{position:n.un?"top":"auto"}},settings:[{icon:'',name:"Power By OPlayer",type:"switcher",onChange(){window.open("https://github.com/shiyiya/oplayer")}}],icons:{loadingIndicator:'\n \n \n ',next:'',play:" ",volume:['',''],fullscreen:['',''],pip:['',''],setting:'',screenshot:'',playbackRate:'',loop:'',chromecast:''},menu:[{name:localStorage.getItem("speed")?localStorage.getItem("speed")+"x":"\u500d\u901f",children:["2.0","1.5","1.25","1.0","0.75","0.5"].map((e=>({name:e+"x",value:e,default:(localStorage.getItem("speed")||"1.0")==e}))),onChange({name:e,value:t},l,a){l.innerText=e,a.setPlaybackRate(+t),localStorage.setItem("speed",t)}}]}),(0,c.A)({forceHLS:!0}),new d.NN({sources:[]}),new d.gv]),[]);return(0,a.jsx)(o.Ay,Object.assign({ref:u},m,{plugins:g,onEvent:p,autoplay:v,duration:i,playing:l,volume:localStorage.getItem("volume")?+localStorage.getItem("volume"):1,playbackRate:localStorage.getItem("speed")?+localStorage.getItem("speed"):1}))}));var v=l(3987),m=l(4656),u=l(6638),g=l.n(u),j=l(963);const f="@player/";var x=l(541),w=l(7857),C=l(6848),b=l(1908),y=l(6352);function N({post:e,show:t,onChange:l}){const{Title:s,Content:i,IsOriginal:n,Tags:c}=e,{Region:o,Genre:r,IsEnd:d,UpdatedDate:h,PublishDate:p}=e.Meta||{};return(0,a.jsxs)("div",{className:g()("PlayerInfo modal",{"is-active":t}),children:[(0,a.jsx)("div",{className:"modal-background",onClick:()=>l(!1)}),(0,a.jsxs)("div",{className:"modal-card",children:[(0,a.jsx)("button",{className:"delete","aria-label":"close",onClick:()=>l(!1)}),(0,a.jsxs)("section",{className:"modal-card-body",children:[(0,a.jsxs)("div",{className:"post-head",children:[(0,a.jsx)("div",{children:(0,a.jsx)(b.A,{ratio:3/4,mw:"200px",children:(0,a.jsx)("img",{src:e.Cover,alt:e.Title})})}),(0,a.jsxs)("div",{className:"post-info",children:[(0,a.jsx)("h3",{className:"title",children:s}),(0,a.jsxs)("div",{className:"post-info-item is-h",children:[(0,a.jsxs)("div",{className:"post-info-item",children:[(0,a.jsx)("label",{className:"name",children:"\u5730\u533a"}),(0,a.jsx)("div",{className:"body",children:o||"-"})]}),(0,a.jsxs)("div",{className:"post-info-item",children:[(0,a.jsx)("label",{className:"name",children:"\u7c7b\u578b"}),(0,a.jsx)("div",{className:"body",children:r})]})]}),(0,a.jsxs)("div",{className:"post-info-item is-h",children:[(0,a.jsxs)("div",{className:"post-info-item",children:[(0,a.jsx)("label",{className:"name",children:"\u5e74\u4efd"}),(0,a.jsx)("div",{className:"body",children:p&&new Date(p).getFullYear()+" \u5e74"||"-"})]}),(0,a.jsxs)("div",{className:"post-info-item",children:[(0,a.jsx)("label",{className:"name",children:"\u5b8c\u7ed3"}),(0,a.jsx)("div",{className:"body",children:2==d?"\u662f":"\u5426"})]})]}),(0,a.jsxs)("div",{className:"post-info-item",children:[(0,a.jsx)("label",{className:"name",children:"\u66f4\u65b0"}),(0,a.jsx)("div",{className:"body",children:h&&`\u6bcf${v.h8[new Date(h).getDay()]} ${new Date(h).getHours()} \u70b9\u66f4\u65b0`||"-"})]}),(0,a.jsxs)("div",{className:"post-info-item tags",children:[2==n&&(0,a.jsx)("div",{className:"body tag is-primary is-light",children:"\u539f\u521b"}),c&&c.split(" ").map((e=>(0,a.jsx)("div",{className:"body tag is-primary is-light",children:e},e)))]})]})]}),(0,a.jsx)(y.o,{type:"render",value:(null===i||void 0===i?void 0:i.replace(/\!\[suo\](.+)/,"").replace(/\u64ad\u653e\u51fa\u9519.+\n/,"").replace(/\u64ad\u653e\u5931\u6548.+\n/,"").replace(/\u6709\u95ee\u9898.+\n/,"").replace(/clicli.*\n/,"").replace(/CliCli.*\d+/,""))||"#### \u6682\u65e0\u8be6\u60c5"})]})]})]})}var k,M=l(83);function z(){return z=Object.assign?Object.assign.bind():function(e){for(var t=1;t{let{title:l,titleId:a,...i}=e;return s.createElement("svg",z({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 576 512",ref:t,"aria-labelledby":a},i),l?s.createElement("title",{id:a},l):null,k||(k=s.createElement("path",{d:"M279.6 160.4C282.4 160.1 285.2 160 288 160C341 160 384 202.1 384 256C384 309 341 352 288 352C234.1 352 192 309 192 256C192 253.2 192.1 250.4 192.4 247.6C201.7 252.1 212.5 256 224 256C259.3 256 288 227.3 288 192C288 180.5 284.1 169.7 279.6 160.4zM480.6 112.6C527.4 156 558.7 207.1 573.5 243.7C576.8 251.6 576.8 260.4 573.5 268.3C558.7 304 527.4 355.1 480.6 399.4C433.5 443.2 368.8 480 288 480C207.2 480 142.5 443.2 95.42 399.4C48.62 355.1 17.34 304 2.461 268.3C-.8205 260.4-.8205 251.6 2.461 243.7C17.34 207.1 48.62 156 95.42 112.6C142.5 68.84 207.2 32 288 32C368.8 32 433.5 68.84 480.6 112.6V112.6zM288 112C208.5 112 144 176.5 144 256C144 335.5 208.5 400 288 400C367.5 400 432 335.5 432 256C432 176.5 367.5 112 288 112z"})))},E=(0,s.forwardRef)(O);l.p;var A;function S(){return S=Object.assign?Object.assign.bind():function(e){for(var t=1;t{let{title:l,titleId:a,...i}=e;return s.createElement("svg",S({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",ref:t,"aria-labelledby":a},i),l?s.createElement("title",{id:a},l):null,A||(A=s.createElement("path",{d:"M0 190.9V185.1C0 115.2 50.52 55.58 119.4 44.1C164.1 36.51 211.4 51.37 244 84.02L256 96L267.1 84.02C300.6 51.37 347 36.51 392.6 44.1C461.5 55.58 512 115.2 512 185.1V190.9C512 232.4 494.8 272.1 464.4 300.4L283.7 469.1C276.2 476.1 266.3 480 256 480C245.7 480 235.8 476.1 228.3 469.1L47.59 300.4C17.23 272.1 .0003 232.4 .0003 190.9L0 190.9z"})))},I=(0,s.forwardRef)(L);l.p;var T;function V(){return V=Object.assign?Object.assign.bind():function(e){for(var t=1;t{let{title:l,titleId:a,...i}=e;return s.createElement("svg",V({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",ref:t,"aria-labelledby":a},i),l?s.createElement("title",{id:a},l):null,T||(T=s.createElement("path",{d:"M256 0C114.6 0 0 114.6 0 256s114.6 256 256 256s256-114.6 256-256S397.4 0 256 0zM256 128c17.67 0 32 14.33 32 32c0 17.67-14.33 32-32 32S224 177.7 224 160C224 142.3 238.3 128 256 128zM296 384h-80C202.8 384 192 373.3 192 360s10.75-24 24-24h16v-64H224c-13.25 0-24-10.75-24-24S210.8 224 224 224h32c13.25 0 24 10.75 24 24v88h16c13.25 0 24 10.75 24 24S309.3 384 296 384z"})))},_=(0,s.forwardRef)(B);l.p;var P;function $(){return $=Object.assign?Object.assign.bind():function(e){for(var t=1;t{let{title:l,titleId:a,...i}=e;return s.createElement("svg",$({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",ref:t,"aria-labelledby":a},i),l?s.createElement("title",{id:a},l):null,P||(P=s.createElement("path",{d:"M511.1 63.1v287.1c0 35.25-28.75 63.1-64 63.1h-144l-124.9 93.68c-7.875 5.75-19.12 .0497-19.12-9.7v-83.98h-96c-35.25 0-64-28.75-64-63.1V63.1c0-35.25 28.75-63.1 64-63.1h384C483.2 0 511.1 28.75 511.1 63.1z"})))},D=(0,s.forwardRef)(H);l.p;var U;function R(){return R=Object.assign?Object.assign.bind():function(e){for(var t=1;t{let{title:l,titleId:a,...i}=e;return s.createElement("svg",R({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 576 512",ref:t,"aria-labelledby":a},i),l?s.createElement("title",{id:a},l):null,U||(U=s.createElement("path",{d:"M381.2 150.3L524.9 171.5C536.8 173.2 546.8 181.6 550.6 193.1C554.4 204.7 551.3 217.3 542.7 225.9L438.5 328.1L463.1 474.7C465.1 486.7 460.2 498.9 450.2 506C440.3 513.1 427.2 514 416.5 508.3L288.1 439.8L159.8 508.3C149 514 135.9 513.1 126 506C116.1 498.9 111.1 486.7 113.2 474.7L137.8 328.1L33.58 225.9C24.97 217.3 21.91 204.7 25.69 193.1C29.46 181.6 39.43 173.2 51.42 171.5L195 150.3L259.4 17.97C264.7 6.954 275.9-.0391 288.1-.0391C300.4-.0391 311.6 6.954 316.9 17.97L381.2 150.3z"})))},F=(0,s.forwardRef)(Y);l.p;function Z({id:e}){var t,c;const[o,r]=(0,s.useState)(!1),[d,h]=(0,s.useState)(!1),[u,b]=(0,s.useState)(!1),[y,k,z]=function(e){const t=(0,s.useMemo)((()=>{const t=new URLSearchParams(window.location.search),l={id:e,duration:0,episode:t.has("v")?+t.get("v")-1:0,time:0};return t.has("v")?l:JSON.parse(localStorage.getItem(f+e)||"null")||l}),[]),[l,a]=(0,s.useState)(t.episode),i=(0,s.useCallback)((t=>{localStorage.setItem(f+e,JSON.stringify(t))}),[]),n=(0,s.useCallback)(((e,t,s)=>{const n=t==l;i({id:e,episode:t,duration:s,time:Date.now()}),n||a(t)}),[l]);return[l,t.duration,n]}(e),[O,A]=(0,s.useState)({}),[S,L]=(0,s.useState)([]),T=(0,s.useRef)(null),[V,B]=(0,s.useState)(!1),[P,$]=(0,s.useState)({poster:"https://api.imlazy.ink/img",title:"LOADING ..."}),[H,U]=(0,s.useState)(!1);(0,s.useEffect)((()=>{l(7714)(`./${e}.json`).catch((()=>{throw B(!0),new Error("")})).then((t=>{if(t.data&&"video"===t.data.Type){if(!t.err){if(t.data&&A(t.data),2==t.data.IsLiked&&h(!0),2==t.data.IsCollected&&b(!0),t.data.videos)return void L(t.data.videos);l(7841)(`./${e}.json`).then((t=>{var l;t.data&&(t.data.sort(((e,t)=>e.Episode-t.Episode)),L(t.data),null===(l=T.current)||void 0===l||l.context.playlist.changeSourceList(t.data.map((e=>Object.assign(Object.assign({},e),{title:e.Title,src:e.VideoUrl})))),t.data.length<=y&&z(e,0,0))}))}}else m.Ay.error("\u89c6\u9891\u4e0d\u89c1\u4e86",{duration:9e4})}))}),[]),(0,s.useEffect)((()=>{var e;S.length&&(null===(e=T.current)||void 0===e||e.context.playlist.changeSource(y))}),[y,S]),(0,s.useEffect)((()=>{var t,l;document.location.search.includes("live")?L([{Episode:1,Title:"live",VideoUrl:`https://www.tm0.net/live/uu${e}.m3u8?hls_ctx=85097108`}]):V&&(null===(l=null===(t=T.current)||void 0===t?void 0:t.context.ui)||void 0===l||l.menu.unregister("Source"),v.OF.get(`https://www.clicli.cc/post/${e}`).then((e=>(0,M.gL)(e.result))).then((e=>{var t;A(e);const l=e.videos.split("\n").filter(Boolean).map(((e,t)=>{const[l,a]=e.split("$"),[s,i]=l.split(" ");return{Episode:i?s:t,Title:i||s,VideoUrl:a,title:i||s,src:a}}));L(l),null===(t=T.current)||void 0===t||t.context.playlist.changeSourceList(l)})))}),[V]),(0,s.useEffect)((()=>{var e;n.Fr||null===(e=T.current)||void 0===e||e.context.ui.menu.register({name:"Toggle Ep-Bar",position:"top",icon:'',onClick(e){U((t=>(e.style.opacity=t?"0.4":"1",!t)))}})}),[]);const R=(0,s.useCallback)((()=>{const t=d?-1:1,l=O.LikesCount||0;h((e=>!e)),A((e=>Object.assign(Object.assign({},e),{LikesCount:l+t}))),(d?v.pY.delete(`/like/post/${e}`):v.pY.post(`/like/post/${e}`)).then((e=>{e.err?(h((e=>!e)),A((e=>Object.assign(Object.assign({},e),{LikesCount:e.LikesCount-t})))):d?m.Ay.error("\u4f60\u6240\u70ed\u7231\u7684\uff0c\u5c31\u662f\u4f60\u7684\u751f\u6d3b\u3002\r\n \t\t\t\t--------?"):m.Ay.success("nice!")})).catch((()=>{setTimeout((()=>{h((e=>!e)),A((e=>Object.assign(Object.assign({},e),{LikesCount:e.LikesCount-t})))}),300)}))}),[O,d]),Y=(0,s.useCallback)((()=>{const t=u?-1:1;b((e=>!e)),A((e=>Object.assign(Object.assign({},e),{CollectionCount:e.CollectionCount+t}))),(u?v.pY.delete(`/collect/post/${e}`):v.pY.post(`/collect/post/${e}`)).then((e=>{e.err?(b((e=>!e)),A((e=>Object.assign(Object.assign({},e),{CollectionCount:e.CollectionCount-t})))):u||m.Ay.success("nice!")})).catch((()=>{setTimeout((()=>{b((e=>!e)),A((e=>Object.assign(Object.assign({},e),{CollectionCount:e.CollectionCount-1})))}),300)}))}),[O,u]),{Title:Z,Creator:q,Tags:G,IsOriginal:J,Hits:K,CommentCount:Q,LikesCount:W,CollectionCount:X,Content:ee,Meta:te,Cover:le}=O;return(0,a.jsxs)("div",{className:g()("player",{"no-side":!H}),children:[(0,a.jsxs)(j.m,{children:[(0,a.jsx)("title",{children:`${Z||""} - UPV - free animes no ads`}),(0,a.jsx)("meta",{name:"description",content:null===ee||void 0===ee?void 0:ee.substring(0,200)}),(0,a.jsx)("meta",{name:"keywords",content:`${Z},${null===te||void 0===te?void 0:te.Genre},${null===G||void 0===G?void 0:G.split(" ")}`}),(0,a.jsx)("meta",{name:"author",content:null===q||void 0===q?void 0:q.Nickname}),(0,a.jsx)("meta",{property:"og:title",content:`${Z} - UPV - free animes no ads`}),(0,a.jsx)("meta",{property:"og:type",content:"video"}),(0,a.jsx)("meta",{property:"og:image",content:le}),(0,a.jsx)("meta",{property:"og:url",content:location.origin+location.pathname})]}),(0,a.jsxs)("div",{className:"player-header",children:[(0,a.jsx)("div",{className:"player-header__player",children:(0,a.jsx)(p,{ref:T,autoplay:!0,source:P,onEvent:({type:t,payload:l})=>{var a;const s=null===(a=null===l||void 0===l?void 0:l.target)||void 0===a?void 0:a.currentTime;"timeupdate"==t?s<1||z(e,y,1e3*s):"ended"==t?z(e,y+1,0):"next"==t?S[y+1]?z(e,y+1,0):T.current.emit("notice",{text:"No next ep"}):"playlistsourcechange"==t&&y!=l.id&&z(e,l.id,0)},duration:k,isLive:"iptv"==e||document.location.search.includes("live")})}),(0,a.jsx)("div",{className:"player-header__r",children:(0,a.jsxs)("div",{className:"eplist_module",children:[(0,a.jsxs)("div",{className:"list-title",children:[(0,a.jsx)("h4",{children:"\u64ad\u653e\u5217\u8868"}),(0,a.jsxs)("span",{className:"ep-list-progress",children:[S.length>0?y+1:0,"/",S.length]})]}),(0,a.jsx)("div",{className:"list-wrapper",children:S.length>0?(0,a.jsx)("ul",{children:S.map(((t,l)=>(0,a.jsx)("a",{children:(0,a.jsx)("li",Object.assign({className:g()("list-item has-tooltip-bottom",{cursor:l===y}),onClick:()=>z(e,l,0),title:t.Title},t.Title&&{"data-tooltip":t.Title},{children:(0,a.jsxs)("span",{children:[" ",t.Episode||l+1]})}))},l)))}):(0,a.jsx)("span",{className:"empty",children:"\u6682\u65e0\u89c6\u9891"})})]})})]}),(0,a.jsxs)("div",{className:"video-actions",children:[(0,a.jsxs)("div",{className:"icon-text",children:[(0,a.jsx)("span",{className:"icon",children:(0,a.jsx)(E,{})}),(0,a.jsx)("span",{className:"text",children:K||"-"})]}),(0,a.jsxs)("div",{className:"icon-text",children:[(0,a.jsx)("span",{className:"icon",children:(0,a.jsx)(D,{})}),(0,a.jsx)("span",{className:"text",children:Q||"-"})]}),(0,a.jsxs)("div",{className:g()("icon-text",{"--active":d}),onClick:R,children:[(0,a.jsx)("span",{className:"icon",children:(0,a.jsx)(I,{})}),(0,a.jsx)("span",{className:"text",children:W||"-"})]}),(0,a.jsxs)("div",{className:g()("icon-text",{"--active":u}),onClick:Y,children:[(0,a.jsx)("span",{className:"icon",children:(0,a.jsx)(F,{})}),(0,a.jsx)("span",{className:"text",children:X||"-"})]})]}),O.ID?(0,a.jsxs)("div",{className:"video-info-wrapper",children:[(0,a.jsxs)("div",{className:"video-info",children:[(0,a.jsx)("img",{className:"video-info__avatar",src:(null===(t=O.Creator)||void 0===t?void 0:t.Avatar)||"https://uplife/ic_launcher_round.png",alt:null===(c=O.Creator)||void 0===c?void 0:c.Nickname}),(0,a.jsxs)("div",{children:[(0,a.jsxs)("h3",{className:"video-info__title",onClick:()=>r(!0),children:[O.Title||"-",(0,a.jsx)("span",{className:"icon has-text-info",children:(0,a.jsx)(_,{})})]}),(0,a.jsxs)("div",{className:"video-meta",children:[(0,a.jsx)("span",{children:(null===q||void 0===q?void 0:q.Nickname)||"-"}),(0,a.jsxs)("svg",{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"6827",width:"200",height:"200",children:[(0,a.jsx)("defs",{}),(0,a.jsx)("path",{d:"M167.024 512a344.976 344.976 0 1 1 689.952 0 344.976 344.976 0 0 1-690 0zM512 106.976a405.024 405.024 0 1 0 0 810.048 405.024 405.024 0 0 0 0-810z m30 235.008a30 30 0 1 0-60 0V512c0 7.968 3.168 15.6 8.784 21.216l120 120a30 30 0 1 0 42.432-42.432L542 499.52V341.984z",fill:"#9499A0","p-id":"6828"})]}),(0,a.jsx)("span",{children:O.CreatedAt?(0,i.D$)(O.CreatedAt):"-"})]})]})]}),(0,a.jsx)(C.Y,{tags:G?G.trim().split(" ").map((e=>({title:e,href:`/pv/tag?type=video&title=${e}&tag=${e}`}))).concat(2==J?{title:"\u539f\u521b",href:"/pv/tag?type=video&is_original=2&title=\u539f\u521b"}:[]):[]})]}):(0,a.jsx)(w.M4,{className:"video-info__skeleton",height:"200px"}),(0,a.jsx)(x.A,{id:e}),(0,a.jsx)(N,{post:O,show:o,onChange:r})]})}},1908:(e,t,l)=>{"use strict";l.d(t,{A:()=>s});var a=l(568);const s=e=>{const{children:t,ratio:l,mw:s}=e;return(0,a.jsx)("div",{className:"aspect-ratio",style:{width:"string"===typeof s?s:`${s}px`},children:(0,a.jsx)("div",{className:"aspect-ratio__fill",style:{paddingTop:1/l*100+"%"},children:t})})}},7714:(e,t,l)=>{var a={"./0.json":[265,265],"./1.json":[5806,806],"./10.json":[8450,450],"./131478f2-31cd-446a-9cb2-15158b8c3efe.json":[3815,815],"./2.json":[5919,919],"./3.json":[9852,852],"./4.json":[9741,741],"./7.json":[512,512],"./77745a95-b5db-4c0b-ad08-0a55a6e70f49.json":[5320,320],"./9.json":[6854,854],"./a7a1345e-1bc8-4793-9650-a0ee89b6d74b.json":[9528,147],"./b2cf7c39-3f62-45c0-bbe1-a9522ff24cb7.json":[274,274]};function s(e){if(!l.o(a,e))return Promise.resolve().then((()=>{var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}));var t=a[e],s=t[0];return l.e(t[1]).then((()=>l.t(s,19)))}s.keys=()=>Object.keys(a),s.id=7714,e.exports=s},7841:(e,t,l)=>{var a={"./0.json":[9196,196],"./1.json":[2735,735],"./10.json":[9081,81],"./131478f2-31cd-446a-9cb2-15158b8c3efe.json":[5808,808],"./2.json":[8846,846],"./3.json":[5209,209],"./4.json":[2275,656],"./7.json":[9085,85],"./77745a95-b5db-4c0b-ad08-0a55a6e70f49.json":[9535,535],"./9.json":[4615,615],"./b2cf7c39-3f62-45c0-bbe1-a9522ff24cb7.json":[701,701]};function s(e){if(!l.o(a,e))return Promise.resolve().then((()=>{var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}));var t=a[e],s=t[0];return l.e(t[1]).then((()=>l.t(s,19)))}s.keys=()=>Object.keys(a),s.id=7841,e.exports=s}}]); \ No newline at end of file diff --git a/static/js/562.2e0e6596.chunk.js b/static/js/562.2e0e6596.chunk.js new file mode 100644 index 00000000..6ab02d3e --- /dev/null +++ b/static/js/562.2e0e6596.chunk.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk_web_index=self.webpackChunk_web_index||[]).push([[562],{7089:(e,t,s)=>{s.r(t),s.d(t,{default:()=>x});var i=s(1914),n=s(1394),c=s(4332),o=s(6796),a=s.n(o),l=s(8413);var d=s(5219),r=s(5607),C=s(3987),p=s(6862),h=s(1645),v=s(6848);const x=({id:e})=>{const[t,o]=(0,n.useState)({}),[x,m]=(0,n.useState)(!1),[f,u]=(0,n.useState)(!1),[j,g]=(0,n.useState)(!1),w=(0,n.useMemo)((()=>window.innerWidth<991),[]);(0,n.useEffect)((()=>{s.e(611).then(s.t.bind(s,3611,19)).then((t=>{o(t.data.find((t=>t.ID==e)))}))}),[]),(0,n.useEffect)((()=>{if(!E||w)return;const e=()=>{s.getBoundingClientRect().top<=-200?t.classList.remove("post-side--hide"):t.classList.add("post-side--hide")},t=document.querySelector(".post-side"),s=document.querySelector(".post-container__cover");return document.getElementById("root").addEventListener("scroll",e),()=>{s&&document.getElementById("root").removeEventListener("scroll",e)}}),[t]);const b=(0,n.useCallback)((()=>{const s=x?-1:1,i=t.LikesCount||0;m((e=>!e)),o((e=>Object.assign(Object.assign({},e),{LikesCount:i+s}))),(x?C.pY.delete(`/like/post/${e}`):C.pY.post(`/like/post/${e}`)).then((e=>{e.err?(m((e=>!e)),o((e=>Object.assign(Object.assign({},e),{LikesCount:i-s})))):x?c.Ay.error("\u4f60\u6240\u70ed\u7231\u7684\uff0c\u5c31\u662f\u4f60\u7684\u751f\u6d3b\u3002\r\n \t\t\t\t--------?"):c.Ay.success("nice!")})).catch((()=>{setTimeout((()=>{m((e=>!e)),o((e=>Object.assign(Object.assign({},e),{LikesCount:i-1})))}),300)}))}),[t,x]),y=(0,n.useCallback)((()=>{const t=f?-1:1;u((e=>!e)),o((e=>Object.assign(Object.assign({},e),{CollectionCount:e.CollectionCount+t}))),(f?C.pY.delete(`/collect/post/${e}`):C.pY.post(`/collect/post/${e}`)).then((e=>{e.err?(u((e=>!e)),o((e=>Object.assign(Object.assign({},e),{CollectionCount:e.CollectionCount-t})))):f||c.Ay.success("nice!")})).catch((()=>{setTimeout((()=>{u((e=>!e)),o((e=>Object.assign(Object.assign({},e),{CollectionCount:e.CollectionCount-1})))}),300)}))}),[t,f]),{Title:M,Creator:_,CreatedAt:N,Hits:k,CommentCount:z,Tags:$,IsOriginal:H,LikesCount:L,CollectionCount:O,Content:A,Cover:E}=t,{Nickname:B,Avatar:S}=_||{};return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)(l.m,{children:[(0,i.jsx)("title",{children:`${M||""} - UPV - free animes no ads`}),(0,i.jsx)("meta",{name:"description",content:null===A||void 0===A?void 0:A.substring(0,200)}),(0,i.jsx)("meta",{name:"referrer",content:"no-referrer-when-downgrade"}),(0,i.jsx)("meta",{name:"keywords",content:`${M},${null===$||void 0===$?void 0:$.split(" ")}`}),(0,i.jsx)("meta",{name:"author",content:null===_||void 0===_?void 0:_.Nickname}),(0,i.jsx)("meta",{property:"og:title",content:`${M} - UPV - free animes no ads`}),(0,i.jsx)("meta",{property:"og:type",content:"article"}),(0,i.jsx)("meta",{property:"og:image",content:E}),(0,i.jsx)("meta",{property:"og:url",content:location.origin+location.pathname})]}),!!E&&(0,i.jsx)("div",{className:"post-container__cover",style:{background:`url(${E}) no-repeat top/cover #f4f5f7`}}),(0,i.jsxs)("div",{className:a()("post-container",{"--no-cover":!E}),children:[(0,i.jsxs)("div",{className:a()("post-side",{"post-side--hide":!!E&&!w,"--o":w&&j}),children:[(0,i.jsxs)("div",{className:a()("post-side-action",{"--l":x}),role:"button",onClick:b,children:[(0,i.jsx)("div",{className:"side-action-icon",children:(0,i.jsxs)("svg",{className:"side-action__icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"8638",width:"200",height:"200",children:[(0,i.jsx)("path",{d:"M64.67 512c2.03-148.27 27.78-271.04 103.07-344.26C240.96 92.45 363.73 66.7 512 64.67c148.27 2.03 271.04 27.78 344.26 103.07C931.55 240.96 957.3 363.73 959.33 512c-2.03 148.27-27.78 271.04-103.07 344.26C783.04 931.55 660.27 957.3 512 959.33c-148.27-2.03-271.04-27.78-344.26-103.07C92.45 783.04 66.7 660.27 64.67 512z","p-id":"8639","data-spm-anchor-id":"a313x.7781069.0.i2"}),(0,i.jsx)("path",{d:"M344.25 391.82c-4.3 0-8.62-1.32-12.32-4.07-9.21-6.81-11.16-19.8-4.35-29.01a133.117 133.117 0 0 0 24.14-56.43c1.94-11.29 12.59-18.98 23.97-16.9 11.29 1.94 18.86 12.68 16.9 23.97-2.39 13.87-6.47 27.4-12.09 40.24a174.495 174.495 0 0 1-19.57 33.78c-4.05 5.52-10.33 8.42-16.68 8.42z",fill:x?"#fff":"#6668ab","p-id":"8640"}),(0,i.jsx)("path",{d:"M479.65 371.62H369.82c-11.45 0-20.75-9.29-20.75-20.75s9.29-20.75 20.75-20.75h109.83c11.45 0 20.75 9.29 20.75 20.75s-9.3 20.75-20.75 20.75zM492.04 438.38H334.28c-11.45 0-20.75-9.29-20.75-20.75s9.29-20.75 20.75-20.75h157.76c11.45 0 20.75 9.29 20.75 20.75s-9.3 20.75-20.75 20.75z",fill:x?"#fff":"#6668ab","p-id":"8641"}),(0,i.jsx)("path",{d:"M434.46 438.11c-11.45 0-20.75-9.29-20.75-20.75v-101.7c0-11.45 9.29-20.75 20.75-20.75s20.75 9.29 20.75 20.75v101.7c-0.01 11.46-9.3 20.75-20.75 20.75zM533.12 391.82c-4.3 0-8.62-1.32-12.32-4.07-9.21-6.81-11.16-19.8-4.35-29.01a133.117 133.117 0 0 0 24.14-56.43c1.94-11.29 12.64-18.98 23.97-16.9 11.29 1.94 18.85 12.68 16.9 23.97-2.39 13.87-6.47 27.4-12.09 40.24a174.495 174.495 0 0 1-19.57 33.78c-4.05 5.52-10.33 8.42-16.68 8.42z",fill:x?"#fff":"#6668ab","p-id":"8642"}),(0,i.jsx)("path",{d:"M687.54 371.16H563.35c-11.45 0-20.75-9.29-20.75-20.75s9.29-20.75 20.75-20.75h124.19c11.45 0 20.75 9.29 20.75 20.75s-9.29 20.75-20.75 20.75zM702.21 438.38H544.46c-11.45 0-20.75-9.29-20.75-20.75s9.29-20.75 20.75-20.75h157.76c11.45 0 20.75 9.29 20.75 20.75s-9.31 20.75-20.76 20.75z",fill:x?"#fff":"#6668ab","p-id":"8643"}),(0,i.jsx)("path",{d:"M615.93 438.11c-11.45 0-20.75-9.29-20.75-20.75v-101.7c0-11.45 9.29-20.75 20.75-20.75 11.45 0 20.75 9.29 20.75 20.75v101.7c0 11.46-9.3 20.75-20.75 20.75zM334.29 541.84c-6.79 0-13.47-3.34-17.44-9.48-6.21-9.63-3.46-22.46 6.16-28.69 9.35-6.04 22.58-16.91 32.59-34.37 10.68-18.65 13.1-36.79 13.25-48.73 0.14-11.37 9.4-20.49 20.75-20.49h0.26c11.45 0.15 20.62 9.55 20.49 21-0.2 16.84-3.63 42.46-18.73 68.84-14.15 24.69-32.86 40.06-46.07 48.6a20.695 20.695 0 0 1-11.26 3.32zM456.16 511.15c-4.36 0-8.67-1.38-12.28-4.02a20.775 20.775 0 0 1-8.47-16.72v-62.24c0-11.45 9.29-20.75 20.75-20.75s20.75 9.29 20.75 20.75v34l8.93-2.8c10.94-3.46 22.57 2.66 26 13.6 3.42 10.93-2.66 22.57-13.6 26l-35.87 11.24c-2.03 0.63-4.13 0.94-6.21 0.94z",fill:x?"#fff":"#6668ab","p-id":"8644"}),(0,i.jsx)("path",{d:"M536.7 527.61c-5.78 0-11.52-2.39-15.63-7.08-7.55-8.63-6.67-21.73 1.94-29.28 8.7-7.6 15.82-16.56 21.15-26.58 9.49-17.86 11.21-35.21 10.97-46.61-0.23-11.47 8.86-20.93 20.31-21.18 11.63-0.31 20.93 8.86 21.18 20.31 0.34 16.34-2.15 41.22-15.83 66.95-7.71 14.49-17.95 27.39-30.44 38.33-3.94 3.46-8.8 5.14-13.65 5.14zM686.98 523.41c-3.9 0-7.5-0.23-10.59-0.42-13.1-0.8-32.87-2.01-47.66-18.53-13.32-14.86-14.42-32.83-13.91-42.22l-0.03-41.13c0-11.45 9.29-20.75 20.75-20.75 11.45 0 20.75 9.29 20.75 20.75v42.28c-0.16 3.55-0.11 9.54 3.35 13.38 3.09 3.46 8.51 4.15 19.29 4.81 6.47 0.38 15.32 0.95 17.84-1.7 1.03-1.07 1.73-3.05 1.99-5.59 1.13-11.4 11.22-19.92 22.7-18.57 11.4 1.13 19.72 11.3 18.57 22.7-1.19 11.83-5.74 22.22-13.18 30.04-12.07 12.7-27.49 14.95-39.87 14.95zM643.03 653.64c-11.45 0-20.75-9.29-20.75-20.75v-55.9H410.35v55.9c0 11.45-9.29 20.75-20.75 20.75s-20.75-9.29-20.75-20.75v-76.65c0-11.45 9.29-20.75 20.75-20.75h253.42c11.45 0 20.75 9.29 20.75 20.75v76.65c0 11.46-9.29 20.75-20.74 20.75z",fill:x?"#fff":"#6668ab","p-id":"8645"}),(0,i.jsx)("path",{d:"M358.89 732.59c-6.42 0-11.87-0.3-16.13-0.65-11.41-0.97-19.89-11.01-18.94-22.42 0.97-11.43 11.2-19.68 22.42-18.94 18.63 1.63 66.56 1.7 108.93-30.9 25.45-19.6 39.44-43.69 46.68-60.44 4.55-10.51 16.73-15.37 27.28-10.81 10.52 4.55 15.36 16.76 10.81 27.28-13.18 30.47-33.74 57.04-59.46 76.84-44.1 33.96-92.59 40.04-121.59 40.04z",fill:x?"#fff":"#6668ab","p-id":"8646"}),(0,i.jsx)("path",{d:"M685.65 738.92c-3.93 0-7.9-1.11-11.43-3.43a525.948 525.948 0 0 0-70.95-39.36 526.58 526.58 0 0 0-94.26-32.71c-11.13-2.7-17.95-13.93-15.24-25.07 2.71-11.13 13.82-17.95 25.07-15.24a570.02 570.02 0 0 1 101.69 35.28 570.902 570.902 0 0 1 76.57 42.46c9.55 6.32 12.18 19.19 5.88 28.76-4 6.04-10.6 9.31-17.33 9.31z",fill:x?"#fff":"#6668ab","p-id":"8647"})]})}),(0,i.jsx)("div",{className:"side-action__text",children:x?`\u83b7\u8d5e ${L}`:`\u70b9\u8d5e ${L||""}`})]}),(0,i.jsxs)("div",{className:a()("post-side-action",{"--l":f}),role:"button",onClick:y,children:[(0,i.jsx)("div",{className:"side-action-icon",style:{fontWeight:"bold",color:f?"#fff":"#6668ab"},children:"\u85cf"}),(0,i.jsx)("div",{className:"side-action__text",children:`\u6536\u85cf ${O||""}`})]}),(0,i.jsxs)("div",{className:"post-side-action share",role:"button",onClick:()=>{!function(e,{target:t=document.body}={}){if("string"!==typeof e)throw new TypeError(`Expected parameter \`text\` to be a \`string\`, got \`${typeof e}\`.`);const s=document.createElement("textarea"),i=document.activeElement;s.value=e,s.setAttribute("readonly",""),s.style.contain="strict",s.style.position="absolute",s.style.left="-9999px",s.style.fontSize="12pt";const n=document.getSelection(),c=n.rangeCount>0&&n.getRangeAt(0);t.append(s),s.select(),s.selectionStart=0,s.selectionEnd=e.length;let o=!1;try{o=document.execCommand("copy")}catch{}return s.remove(),c&&(n.removeAllRanges(),n.addRange(c)),i&&i.focus(),o}(`${t.Title} - ${t.Creator.Nickname} \r\n${window.location.href}`)?c.Ay.error("write to clipboard failed"):c.Ay.success("copied!")},children:[(0,i.jsx)("div",{className:"side-action-icon",children:(0,i.jsx)("svg",{className:"side-action__icon share",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"30471",width:"200",height:"200",children:(0,i.jsx)("path",{d:"M860.41 192.73L730.5 825.4a39.87 39.87 0 0 1-60.19 25.78l-139.24-87.06a11.18 11.18 0 0 0-13.82 1.58l-90.82 90.82c-16.16 16.15-43.78 4.71-43.78-18.14 0 0 0.4-121.39 0.86-162.09a33.29 33.29 0 0 1 9.11-22.5l318.5-338.49-13.83-6.91S420.78 558.83 348.68 624.2a30.41 30.41 0 0 1-36.68 3.18l-130.3-81.51c-26.48-16.56-24.5-55.76 3.52-69.56l636.43-313.52c20.35-10.02 43.35 7.73 38.76 29.94z","p-id":"30472","data-spm-anchor-id":"a313x.7781069.0.i12",fill:"#6668ab"})})}),(0,i.jsx)("div",{className:"side-action__text",children:"\u5206\u4eab"})]})]}),t.ID?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("h2",{className:"video-info__title post-title",children:M}),(0,i.jsxs)("div",{className:"video-info ",children:[(0,i.jsx)("div",{className:"video-author",children:(0,i.jsx)("img",{src:S||"/ic_launcher_round.png",alt:B})}),(0,i.jsxs)("div",{children:[(0,i.jsx)("span",{className:"video-info__title",children:B||"-"}),(0,i.jsxs)("div",{className:"video-meta",children:[(0,i.jsxs)("svg",{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"6827",width:"200",height:"200",children:[(0,i.jsx)("defs",{}),(0,i.jsx)("path",{d:"M167.024 512a344.976 344.976 0 1 1 689.952 0 344.976 344.976 0 0 1-690 0zM512 106.976a405.024 405.024 0 1 0 0 810.048 405.024 405.024 0 0 0 0-810z m30 235.008a30 30 0 1 0-60 0V512c0 7.968 3.168 15.6 8.784 21.216l120 120a30 30 0 1 0 42.432-42.432L542 499.52V341.984z",fill:"#9499A0","p-id":"6828"})]}),(0,i.jsx)("span",{children:N?(0,d.D$)(N):"-"}),(0,i.jsx)("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,i.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.67735 4.2798C5.98983 4.1725 7.85812 4.0625 10 4.0625C12.1421 4.0625 14.0105 4.17252 15.323 4.27983C16.2216 4.3533 16.9184 5.04049 16.9989 5.9318C17.0962 7.00837 17.1875 8.43614 17.1875 10C17.1875 11.5639 17.0962 12.9916 16.9989 14.0682C16.9184 14.9595 16.2216 15.6467 15.323 15.7202C14.0105 15.8275 12.1421 15.9375 10 15.9375C7.85812 15.9375 5.98983 15.8275 4.67735 15.7202C3.77861 15.6467 3.08174 14.9593 3.00119 14.0678C2.90388 12.9908 2.8125 11.5627 2.8125 10C2.8125 8.43727 2.90388 7.00924 3.00119 5.93221C3.08174 5.04067 3.77861 4.35327 4.67735 4.2798ZM10 2.8125C7.81674 2.8125 5.9136 2.92456 4.5755 3.03395C3.07738 3.15643 1.8921 4.31616 1.75626 5.81973C1.65651 6.92379 1.5625 8.39058 1.5625 10C1.5625 11.6094 1.65651 13.0762 1.75626 14.1803C1.8921 15.6838 3.07738 16.8436 4.5755 16.966C5.9136 17.0754 7.81674 17.1875 10 17.1875C12.1835 17.1875 14.0868 17.0754 15.4249 16.966C16.9228 16.8436 18.108 15.6841 18.2438 14.1807C18.3435 13.077 18.4375 11.6105 18.4375 10C18.4375 8.38948 18.3435 6.92296 18.2438 5.81931C18.108 4.31588 16.9228 3.15645 15.4249 3.03398C14.0868 2.92458 12.1835 2.8125 10 2.8125ZM12.1876 10.722C12.7431 10.4013 12.7431 9.59941 12.1876 9.27866L9.06133 7.47373C8.50577 7.15298 7.81133 7.55392 7.81133 8.19542V11.8053C7.81133 12.4468 8.50577 12.8477 9.06133 12.527L12.1876 10.722Z",fill:"var(--text3)"})}),(0,i.jsx)("span",{children:k||"-"}),(0,i.jsx)("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,i.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10 4.0625C7.85812 4.0625 5.98983 4.1725 4.67735 4.2798C3.77861 4.35327 3.08174 5.04067 3.00119 5.93221C2.90388 7.00924 2.8125 8.43727 2.8125 10C2.8125 11.5627 2.90388 12.9908 3.00119 14.0678C3.08174 14.9593 3.77861 15.6467 4.67735 15.7202C5.98983 15.8275 7.85812 15.9375 10 15.9375C12.1421 15.9375 14.0105 15.8275 15.323 15.7202C16.2216 15.6467 16.9184 14.9595 16.9989 14.0682C17.0962 12.9916 17.1875 11.5639 17.1875 10C17.1875 8.43614 17.0962 7.00837 16.9989 5.9318C16.9184 5.04049 16.2216 4.3533 15.323 4.27983C14.0105 4.17252 12.1421 4.0625 10 4.0625ZM4.5755 3.03395C5.9136 2.92456 7.81674 2.8125 10 2.8125C12.1835 2.8125 14.0868 2.92458 15.4249 3.03398C16.9228 3.15645 18.108 4.31588 18.2438 5.81931C18.3435 6.92296 18.4375 8.38948 18.4375 10C18.4375 11.6105 18.3435 13.077 18.2438 14.1807C18.108 15.6841 16.9228 16.8436 15.4249 16.966C14.0868 17.0754 12.1835 17.1875 10 17.1875C7.81674 17.1875 5.9136 17.0754 4.5755 16.966C3.07738 16.8436 1.8921 15.6838 1.75626 14.1803C1.65651 13.0762 1.5625 11.6094 1.5625 10C1.5625 8.39058 1.65651 6.92379 1.75626 5.81973C1.8921 4.31616 3.07738 3.15643 4.5755 3.03395ZM5 8.4375C5 8.09232 5.27982 7.8125 5.625 7.8125H5.9375C6.28268 7.8125 6.5625 8.09232 6.5625 8.4375C6.5625 8.78268 6.28268 9.0625 5.9375 9.0625H5.625C5.27982 9.0625 5 8.78268 5 8.4375ZM7.5 8.4375C7.5 8.09232 7.77982 7.8125 8.125 7.8125H13.125C13.4702 7.8125 13.75 8.09232 13.75 8.4375C13.75 8.78268 13.4702 9.0625 13.125 9.0625H8.125C7.77982 9.0625 7.5 8.78268 7.5 8.4375ZM6.875 10.9375C6.52982 10.9375 6.25 11.2173 6.25 11.5625C6.25 11.9077 6.52982 12.1875 6.875 12.1875H7.1875C7.53268 12.1875 7.8125 11.9077 7.8125 11.5625C7.8125 11.2173 7.53268 10.9375 7.1875 10.9375H6.875ZM9.375 10.9375C9.02982 10.9375 8.75 11.2173 8.75 11.5625C8.75 11.9077 9.02982 12.1875 9.375 12.1875H14.375C14.7202 12.1875 15 11.9077 15 11.5625C15 11.2173 14.7202 10.9375 14.375 10.9375H9.375Z",fill:"var(--text3)"})}),(0,i.jsx)("span",{children:z||"-"})]})]})]})]}):(0,i.jsx)(h.BI,{}),(0,i.jsx)(r.o,{type:"render",value:A}),(0,i.jsx)(v.Y,{tags:$?$.trim().split(" ").map((e=>({title:e,href:`/pv/tag?type=video&title=${e}`}))).concat(2==H?{title:"\u539f\u521b",href:"/pv/tag?type=video&is_original=2&title=\u539f\u521b"}:[]):[]}),(0,i.jsx)(p.A,{id:e,onFocus:()=>g(!0),onBlur:()=>g(!1)})]})]})}}}]); \ No newline at end of file diff --git a/static/js/566.d8e07940.chunk.js b/static/js/566.d8e07940.chunk.js new file mode 100644 index 00000000..f65c7150 --- /dev/null +++ b/static/js/566.d8e07940.chunk.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk_web_index=self.webpackChunk_web_index||[]).push([[566],{1566:(e,a,s)=>{s.r(a),s.d(a,{default:()=>r});var t=s(1914),n=s(1394),i=s(8413),l=s(5219),c=s(4857),d=s(3987);const r=()=>{const[e,a]=(0,n.useState)([]),[s,r]=(0,n.useState)({DisplayName:"",Email:"",Message:""}),[m,u]=(0,n.useState)(1),g=(0,c.k)();function o(e){r(Object.assign(Object.assign({},s),{[e.target.name]:e.target.value}))}return(0,n.useEffect)((()=>{d.pY.get("/feedbacks").then((e=>{a(e.data)}))}),[m]),(0,t.jsxs)("div",{className:"feedback-container",children:[(0,t.jsx)(i.m,{children:(0,t.jsx)("title",{children:"Feedback"})}),(0,t.jsx)("div",{className:"feedback-open",children:(0,t.jsxs)("form",{className:"feedback-form",onSubmit:function(e){e.preventDefault(),e.stopPropagation(),d.pY.post("/feedback",{data:Object.assign(Object.assign({},s),{name:null===g||void 0===g?void 0:g.Name})}).then((e=>{e.err||(u(Date.now()),r(Object.assign(Object.assign({},s),{Message:""})))}))},children:[(0,t.jsx)("h1",{children:"Feedback"}),(0,t.jsxs)("div",{className:"feedback-form-group",children:[(0,t.jsxs)("label",{htmlFor:"feedback-name",children:["Name",(0,t.jsx)("span",{children:"*"})]}),(0,t.jsx)("input",{type:"text",id:"feedback-name",className:"input",required:!0,name:"DisplayName",onChange:o,value:s.DisplayName})]}),(0,t.jsxs)("div",{className:"feedback-form-group",children:[(0,t.jsx)("label",{htmlFor:"feedback-email",children:"Email"}),(0,t.jsx)("input",{type:"email",id:"feedback-email",className:"input",name:"Email",value:s.Email,onChange:o})]}),(0,t.jsxs)("div",{className:"feedback-form-group",children:[(0,t.jsxs)("label",{htmlFor:"feedback-message",children:["Message",(0,t.jsx)("span",{children:"*"})]}),(0,t.jsx)("textarea",{id:"feedback-message",className:"textarea",required:!0,name:"Message",onChange:o,value:s.Message})]}),(0,t.jsx)("button",{type:"submit",className:"button is-black is-fullwidth",children:"Send"})]})}),(0,t.jsx)("div",{className:"feedback-list",children:(0,t.jsx)("ul",{children:null===e||void 0===e?void 0:e.map((e=>(0,t.jsxs)("li",{className:"feedback-item",id:`feedback-${e.ID}`,children:[(0,t.jsx)("div",{className:"feedback-item__head",children:(0,t.jsxs)("span",{className:"feedback-item__name",children:[e.DisplayName," :"]})}),(0,t.jsxs)("div",{className:"feedback-item__content",children:[(0,t.jsx)("p",{children:e.Message}),(0,t.jsxs)("p",{className:"feedback-item__time",children:[(0,l.Yq)(e.CreatedAt)," | ",e.Ip]})]})]},e.ID)))})})]})}},5219:(e,a,s)=>{function t(e){const a=new Date,s=new Date(e),t=(a.getTime()-s.getTime())/1e3;return t<30?"\u521a\u521a":t<3600?Math.ceil(t/60)+"\u5206\u949f\u524d":t<86400?Math.ceil(t/3600)+"\u5c0f\u65f6\u524d":t<172800?"1\u5929\u524d":t<2678400?Math.ceil(t/3600/24)+"\u5929\u524d":a.getFullYear()===s.getFullYear()?`${s.getMonth()+1}\u6708${s.getDate()}\u65e5`:`${s.getFullYear()}\u5e74${s.getMonth()+1}\u6708${s.getDate()}\u65e5`}function n(e,a=!1){const s=new Date(e);return(new Date).getFullYear()===s.getFullYear()?`${s.getMonth()+1}\u6708${s.getDate()}\u65e5 ${a?` ${s.getHours()}:${s.getMinutes().toString().padStart(2,"0")}`:""}`:`${s.getFullYear()}\u5e74${s.getMonth()+1}\u6708${s.getDate()}\u65e5 ${a?` ${s.getHours()}:${s.getMinutes().toString().padStart(2,"0")}`:""}`}s.d(a,{D$:()=>t,Yq:()=>n})}}]); \ No newline at end of file diff --git a/static/js/570.a518d501.chunk.js b/static/js/570.a518d501.chunk.js deleted file mode 100644 index c25d55a5..00000000 --- a/static/js/570.a518d501.chunk.js +++ /dev/null @@ -1,2 +0,0 @@ -/*! For license information please see 570.a518d501.chunk.js.LICENSE.txt */ -(self.webpackChunk_web_index=self.webpackChunk_web_index||[]).push([[570],{8182:e=>{"use strict";var t=Object.prototype.hasOwnProperty,n="~";function r(){}function s(e,t,n){this.fn=e,this.context=t,this.once=n||!1}function a(e,t,r,a,o){if("function"!==typeof r)throw new TypeError("The listener must be a function");var i=new s(r,a||e,o),c=n?n+t:t;return e._events[c]?e._events[c].fn?e._events[c]=[e._events[c],i]:e._events[c].push(i):(e._events[c]=i,e._eventsCount++),e}function o(e,t){0===--e._eventsCount?e._events=new r:delete e._events[t]}function i(){this._events=new r,this._eventsCount=0}Object.create&&(r.prototype=Object.create(null),(new r).__proto__||(n=!1)),i.prototype.eventNames=function(){var e,r,s=[];if(0===this._eventsCount)return s;for(r in e=this._events)t.call(e,r)&&s.push(n?r.slice(1):r);return Object.getOwnPropertySymbols?s.concat(Object.getOwnPropertySymbols(e)):s},i.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 s=0,a=r.length,o=new Array(a);s{"use strict";var t=Object.prototype.hasOwnProperty,n=Object.prototype.toString,r=Object.defineProperty,s=Object.getOwnPropertyDescriptor,a=function(e){return"function"===typeof Array.isArray?Array.isArray(e):"[object Array]"===n.call(e)},o=function(e){if(!e||"[object Object]"!==n.call(e))return!1;var r,s=t.call(e,"constructor"),a=e.constructor&&e.constructor.prototype&&t.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!s&&!a)return!1;for(r in e);return"undefined"===typeof r||t.call(e,r)},i=function(e,t){r&&"__proto__"===t.name?r(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},c=function(e,n){if("__proto__"===n){if(!t.call(e,n))return;if(s)return s(e,n).value}return e[n]};e.exports=function e(){var t,n,r,s,l,u,E=arguments[0],h=1,T=arguments.length,p=!1;for("boolean"===typeof E&&(p=E,E=arguments[1]||{},h=2),(null==E||"object"!==typeof E&&"function"!==typeof E)&&(E={});h{"use strict";var r;n.d(t,{A:()=>E});var s=new Uint8Array(16);function a(){if(!r&&!(r="undefined"!==typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!==typeof msCrypto&&"function"===typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return r(s)}const o=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;const i=function(e){return"string"===typeof e&&o.test(e)};for(var c=[],l=0;l<256;++l)c.push((l+256).toString(16).substr(1));const u=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=(c[e[t+0]]+c[e[t+1]]+c[e[t+2]]+c[e[t+3]]+"-"+c[e[t+4]]+c[e[t+5]]+"-"+c[e[t+6]]+c[e[t+7]]+"-"+c[e[t+8]]+c[e[t+9]]+"-"+c[e[t+10]]+c[e[t+11]]+c[e[t+12]]+c[e[t+13]]+c[e[t+14]]+c[e[t+15]]).toLowerCase();if(!i(n))throw TypeError("Stringified UUID is invalid");return n};const E=function(e,t,n){var r=(e=e||{}).random||(e.rng||a)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,t){n=n||0;for(var s=0;s<16;++s)t[n+s]=r[s];return t}return u(r)}},6638:(e,t)=>{var n;!function(){"use strict";var r={}.hasOwnProperty;function s(){for(var e="",t=0;t{"use strict";function r(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}n.d(t,{A:()=>r})},7675:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function s(e){var t=function(e,t){if("object"!=r(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var s=n.call(e,t||"default");if("object"!=r(s))return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==r(t)?t:t+""}function a(e,t){for(var n=0;no})},3165:(e,t,n)=>{"use strict";function r(){return r=Object.assign?Object.assign.bind():function(e){for(var t=1;tr})},6180:(e,t,n)=>{"use strict";function r(e,t){return r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},r(e,t)}function s(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,r(e,t)}n.d(t,{A:()=>s})},2675:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>E});const r="object"===typeof self?self:globalThis,s=e=>((e,t)=>{const n=(t,n)=>(e.set(n,t),t),s=a=>{if(e.has(a))return e.get(a);const[o,i]=t[a];switch(o){case 0:case-1:return n(i,a);case 1:{const e=n([],a);for(const t of i)e.push(s(t));return e}case 2:{const e=n({},a);for(const[t,n]of i)e[s(t)]=s(n);return e}case 3:return n(new Date(i),a);case 4:{const{source:e,flags:t}=i;return n(new RegExp(e,t),a)}case 5:{const e=n(new Map,a);for(const[t,n]of i)e.set(s(t),s(n));return e}case 6:{const e=n(new Set,a);for(const t of i)e.add(s(t));return e}case 7:{const{name:e,message:t}=i;return n(new r[e](t),a)}case 8:return n(BigInt(i),a);case"BigInt":return n(Object(BigInt(i)),a)}return n(new r[o](i),a)};return s})(new Map,e)(0),a="",{toString:o}={},{keys:i}=Object,c=e=>{const t=typeof e;if("object"!==t||!e)return[0,t];const n=o.call(e).slice(8,-1);switch(n){case"Array":return[1,a];case"Object":return[2,a];case"Date":return[3,a];case"RegExp":return[4,a];case"Map":return[5,a];case"Set":return[6,a]}return n.includes("Array")?[1,n]:n.includes("Error")?[7,n]:[2,n]},l=([e,t])=>0===e&&("function"===t||"symbol"===t),u=(e,{json:t,lossy:n}={})=>{const r=[];return((e,t,n,r)=>{const s=(e,t)=>{const s=r.push(e)-1;return n.set(t,s),s},a=r=>{if(n.has(r))return n.get(r);let[o,u]=c(r);switch(o){case 0:{let t=r;switch(u){case"bigint":o=8,t=r.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+u);t=null;break;case"undefined":return s([-1],r)}return s([o,t],r)}case 1:{if(u)return s([u,[...r]],r);const e=[],t=s([o,e],r);for(const n of r)e.push(a(n));return t}case 2:{if(u)switch(u){case"BigInt":return s([u,r.toString()],r);case"Boolean":case"Number":case"String":return s([u,r.valueOf()],r)}if(t&&"toJSON"in r)return a(r.toJSON());const n=[],E=s([o,n],r);for(const t of i(r))!e&&l(c(r[t]))||n.push([a(t),a(r[t])]);return E}case 3:return s([o,r.toISOString()],r);case 4:{const{source:e,flags:t}=r;return s([o,{source:e,flags:t}],r)}case 5:{const t=[],n=s([o,t],r);for(const[s,o]of r)(e||!l(c(s))&&!l(c(o)))&&t.push([a(s),a(o)]);return n}case 6:{const t=[],n=s([o,t],r);for(const s of r)!e&&l(c(s))||t.push(a(s));return n}}const{message:E}=r;return s([o,{name:u,message:E}],r)};return a})(!(t||n),!!t,new Map,r)(e),r},E="function"===typeof structuredClone?(e,t)=>t&&("json"in t||"lossy"in t)?s(u(e,t)):structuredClone(e):(e,t)=>s(u(e,t))},8614:(e,t,n)=>{"use strict";function r(e){if(e)throw e}n.d(t,{V:()=>r})},5643:(e,t,n)=>{"use strict";function r(e,t){const n=String(e);if("string"!==typeof t)throw new TypeError("Expected character");let r=0,s=n.indexOf(t);for(;-1!==s;)r++,s=n.indexOf(t,s+t.length);return r}n.d(t,{D:()=>r})},7237:(e,t,n)=>{"use strict";function r(e){const t=[],n=String(e||"");let r=n.indexOf(","),s=0,a=!1;for(;!a;){-1===r&&(r=n.length,a=!0);const e=n.slice(s,r).trim();!e&&a||t.push(e),s=r+1,r=n.indexOf(",",s)}return t}function s(e,t){const n=t||{};return(""===e[e.length-1]?[...e,""]:e).join((n.padRight?" ":"")+","+(!1===n.padLeft?"":" ")).trim()}n.d(t,{A:()=>s,q:()=>r})},3625:(e,t,n)=>{"use strict";n.d(t,{s:()=>s});const r=document.createElement("i");function s(e){const t="&"+e+";";r.innerHTML=t;const n=r.textContent;return(59!==n.charCodeAt(n.length-1)||"semi"===e)&&(n!==t&&n)}},7807:(e,t,n)=>{"use strict";function r(){}n.d(t,{ok:()=>r})},6193:(e,t,n)=>{"use strict";function r(e){if("string"!==typeof e)throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}n.d(t,{A:()=>r})},5651:(e,t,n)=>{"use strict";n.d(t,{l:()=>Ln});var r=n(2675),s=n(7807),a=n(2632),o=n(7237);const i=/[#.]/g;var c=n(1964),l=n(1740),u=n(6838);const E=new Set(["button","menu","reset","submit"]),h={}.hasOwnProperty;function T(e,t,n){const r=n&&function(e){const t={};let n=-1;for(;++n-1&&ee)return{line:t+1,column:e-(t>0?n[t-1]:0)+1,offset:e}},toOffset:function(e){const t=e&&e.line,r=e&&e.column;if("number"===typeof t&&"number"===typeof r&&!Number.isNaN(t)&&!Number.isNaN(r)&&t-1 in n){const e=(n[t-2]||0)+r-1||0;if(e>-1&&e=55296&&e<=57343}function K(e){return 32!==e&&10!==e&&13!==e&&9!==e&&12!==e&&e>=1&&e<=31||e>=127&&e<=159}function z(e){return e>=64976&&e<=65007||v.has(e)}var j;!function(e){e.controlCharacterInInputStream="control-character-in-input-stream",e.noncharacterInInputStream="noncharacter-in-input-stream",e.surrogateInInputStream="surrogate-in-input-stream",e.nonVoidHtmlElementStartTagWithTrailingSolidus="non-void-html-element-start-tag-with-trailing-solidus",e.endTagWithAttributes="end-tag-with-attributes",e.endTagWithTrailingSolidus="end-tag-with-trailing-solidus",e.unexpectedSolidusInTag="unexpected-solidus-in-tag",e.unexpectedNullCharacter="unexpected-null-character",e.unexpectedQuestionMarkInsteadOfTagName="unexpected-question-mark-instead-of-tag-name",e.invalidFirstCharacterOfTagName="invalid-first-character-of-tag-name",e.unexpectedEqualsSignBeforeAttributeName="unexpected-equals-sign-before-attribute-name",e.missingEndTagName="missing-end-tag-name",e.unexpectedCharacterInAttributeName="unexpected-character-in-attribute-name",e.unknownNamedCharacterReference="unknown-named-character-reference",e.missingSemicolonAfterCharacterReference="missing-semicolon-after-character-reference",e.unexpectedCharacterAfterDoctypeSystemIdentifier="unexpected-character-after-doctype-system-identifier",e.unexpectedCharacterInUnquotedAttributeValue="unexpected-character-in-unquoted-attribute-value",e.eofBeforeTagName="eof-before-tag-name",e.eofInTag="eof-in-tag",e.missingAttributeValue="missing-attribute-value",e.missingWhitespaceBetweenAttributes="missing-whitespace-between-attributes",e.missingWhitespaceAfterDoctypePublicKeyword="missing-whitespace-after-doctype-public-keyword",e.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers="missing-whitespace-between-doctype-public-and-system-identifiers",e.missingWhitespaceAfterDoctypeSystemKeyword="missing-whitespace-after-doctype-system-keyword",e.missingQuoteBeforeDoctypePublicIdentifier="missing-quote-before-doctype-public-identifier",e.missingQuoteBeforeDoctypeSystemIdentifier="missing-quote-before-doctype-system-identifier",e.missingDoctypePublicIdentifier="missing-doctype-public-identifier",e.missingDoctypeSystemIdentifier="missing-doctype-system-identifier",e.abruptDoctypePublicIdentifier="abrupt-doctype-public-identifier",e.abruptDoctypeSystemIdentifier="abrupt-doctype-system-identifier",e.cdataInHtmlContent="cdata-in-html-content",e.incorrectlyOpenedComment="incorrectly-opened-comment",e.eofInScriptHtmlCommentLikeText="eof-in-script-html-comment-like-text",e.eofInDoctype="eof-in-doctype",e.nestedComment="nested-comment",e.abruptClosingOfEmptyComment="abrupt-closing-of-empty-comment",e.eofInComment="eof-in-comment",e.incorrectlyClosedComment="incorrectly-closed-comment",e.eofInCdata="eof-in-cdata",e.absenceOfDigitsInNumericCharacterReference="absence-of-digits-in-numeric-character-reference",e.nullCharacterReference="null-character-reference",e.surrogateCharacterReference="surrogate-character-reference",e.characterReferenceOutsideUnicodeRange="character-reference-outside-unicode-range",e.controlCharacterReference="control-character-reference",e.noncharacterCharacterReference="noncharacter-character-reference",e.missingWhitespaceBeforeDoctypeName="missing-whitespace-before-doctype-name",e.missingDoctypeName="missing-doctype-name",e.invalidCharacterSequenceAfterDoctypeName="invalid-character-sequence-after-doctype-name",e.duplicateAttribute="duplicate-attribute",e.nonConformingDoctype="non-conforming-doctype",e.missingDoctype="missing-doctype",e.misplacedDoctype="misplaced-doctype",e.endTagWithoutMatchingOpenElement="end-tag-without-matching-open-element",e.closingOfElementWithOpenChildElements="closing-of-element-with-open-child-elements",e.disallowedContentInNoscriptInHead="disallowed-content-in-noscript-in-head",e.openElementsLeftAfterEof="open-elements-left-after-eof",e.abandonedHeadElementChild="abandoned-head-element-child",e.misplacedStartTagForHeadElement="misplaced-start-tag-for-head-element",e.nestedNoscriptInHead="nested-noscript-in-head",e.eofInElementThatCanContainOnlyText="eof-in-element-that-can-contain-only-text"}(j=j||(j={}));class J{constructor(e){this.handler=e,this.html="",this.pos=-1,this.lastGapPos=-2,this.gapStack=[],this.skipNextNewLine=!1,this.lastChunkWritten=!1,this.endOfChunkHit=!1,this.bufferWaterline=65536,this.isEol=!1,this.lineStartPos=0,this.droppedBufferSize=0,this.line=1,this.lastErrOffset=-1}get col(){return this.pos-this.lineStartPos+Number(this.lastGapPos!==this.pos)}get offset(){return this.droppedBufferSize+this.pos}getError(e){const{line:t,col:n,offset:r}=this;return{code:e,startLine:t,endLine:t,startCol:n,endCol:n,startOffset:r,endOffset:r}}_err(e){this.handler.onParseError&&this.lastErrOffset!==this.offset&&(this.lastErrOffset=this.offset,this.handler.onParseError(this.getError(e)))}_addGap(){this.gapStack.push(this.lastGapPos),this.lastGapPos=this.pos}_processSurrogate(e){if(this.pos!==this.html.length-1){const t=this.html.charCodeAt(this.pos+1);if(function(e){return e>=56320&&e<=57343}(t))return this.pos++,this._addGap(),1024*(e-55296)+9216+t}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,x.EOF;return this._err(j.surrogateInInputStream),e}willDropParsedChunk(){return this.pos>this.bufferWaterline}dropParsedChunk(){this.willDropParsedChunk()&&(this.html=this.html.substring(this.pos),this.lineStartPos-=this.pos,this.droppedBufferSize+=this.pos,this.pos=0,this.lastGapPos=-2,this.gapStack.length=0)}write(e,t){this.html.length>0?this.html+=e:this.html=e,this.endOfChunkHit=!1,this.lastChunkWritten=t}insertHtmlAtCurrentPos(e){this.html=this.html.substring(0,this.pos+1)+e+this.html.substring(this.pos+1),this.endOfChunkHit=!1}startsWith(e,t){if(this.pos+e.length>this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,!1;if(t)return this.html.startsWith(e,this.pos);for(let n=0;n=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,x.EOF;const n=this.html.charCodeAt(t);return n===x.CARRIAGE_RETURN?x.LINE_FEED:n}advance(){if(this.pos++,this.isEol&&(this.isEol=!1,this.line++,this.lineStartPos=this.pos),this.pos>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,x.EOF;let e=this.html.charCodeAt(this.pos);if(e===x.CARRIAGE_RETURN)return this.isEol=!0,this.skipNextNewLine=!0,x.LINE_FEED;if(e===x.LINE_FEED&&(this.isEol=!0,this.skipNextNewLine))return this.line--,this.skipNextNewLine=!1,this._addGap(),this.advance();this.skipNextNewLine=!1,V(e)&&(e=this._processSurrogate(e));return null===this.handler.onParseError||e>31&&e<127||e===x.LINE_FEED||e===x.CARRIAGE_RETURN||e>159&&e<64976||this._checkForProblematicCharacters(e),e}_checkForProblematicCharacters(e){K(e)?this._err(j.controlCharacterInInputStream):z(e)&&this._err(j.noncharacterInInputStream)}retreat(e){for(this.pos-=e;this.pos=0;n--)if(e.attrs[n].name===t)return e.attrs[n].value;return null}!function(e){e[e.CHARACTER=0]="CHARACTER",e[e.NULL_CHARACTER=1]="NULL_CHARACTER",e[e.WHITESPACE_CHARACTER=2]="WHITESPACE_CHARACTER",e[e.START_TAG=3]="START_TAG",e[e.END_TAG=4]="END_TAG",e[e.COMMENT=5]="COMMENT",e[e.DOCTYPE=6]="DOCTYPE",e[e.EOF=7]="EOF",e[e.HIBERNATION=8]="HIBERNATION"}(Z=Z||(Z={}));const ee=new Uint16Array('\u1d41<\xd5\u0131\u028a\u049d\u057b\u05d0\u0675\u06de\u07a2\u07d6\u080f\u0a4a\u0a91\u0da1\u0e6d\u0f09\u0f26\u10ca\u1228\u12e1\u1415\u149d\u14c3\u14df\u1525\0\0\0\0\0\0\u156b\u16cd\u198d\u1c12\u1ddd\u1f7e\u2060\u21b0\u228d\u23c0\u23fb\u2442\u2824\u2912\u2d08\u2e48\u2fce\u3016\u32ba\u3639\u37ac\u38fe\u3a28\u3a71\u3ae0\u3b2e\u0800EMabcfglmnoprstu\\bfms\x7f\x84\x8b\x90\x95\x98\xa6\xb3\xb9\xc8\xcflig\u803b\xc6\u40c6P\u803b&\u4026cute\u803b\xc1\u40c1reve;\u4102\u0100iyx}rc\u803b\xc2\u40c2;\u4410r;\uc000\ud835\udd04rave\u803b\xc0\u40c0pha;\u4391acr;\u4100d;\u6a53\u0100gp\x9d\xa1on;\u4104f;\uc000\ud835\udd38plyFunction;\u6061ing\u803b\xc5\u40c5\u0100cs\xbe\xc3r;\uc000\ud835\udc9cign;\u6254ilde\u803b\xc3\u40c3ml\u803b\xc4\u40c4\u0400aceforsu\xe5\xfb\xfe\u0117\u011c\u0122\u0127\u012a\u0100cr\xea\xf2kslash;\u6216\u0176\xf6\xf8;\u6ae7ed;\u6306y;\u4411\u0180crt\u0105\u010b\u0114ause;\u6235noullis;\u612ca;\u4392r;\uc000\ud835\udd05pf;\uc000\ud835\udd39eve;\u42d8c\xf2\u0113mpeq;\u624e\u0700HOacdefhilorsu\u014d\u0151\u0156\u0180\u019e\u01a2\u01b5\u01b7\u01ba\u01dc\u0215\u0273\u0278\u027ecy;\u4427PY\u803b\xa9\u40a9\u0180cpy\u015d\u0162\u017aute;\u4106\u0100;i\u0167\u0168\u62d2talDifferentialD;\u6145leys;\u612d\u0200aeio\u0189\u018e\u0194\u0198ron;\u410cdil\u803b\xc7\u40c7rc;\u4108nint;\u6230ot;\u410a\u0100dn\u01a7\u01adilla;\u40b8terDot;\u40b7\xf2\u017fi;\u43a7rcle\u0200DMPT\u01c7\u01cb\u01d1\u01d6ot;\u6299inus;\u6296lus;\u6295imes;\u6297o\u0100cs\u01e2\u01f8kwiseContourIntegral;\u6232eCurly\u0100DQ\u0203\u020foubleQuote;\u601duote;\u6019\u0200lnpu\u021e\u0228\u0247\u0255on\u0100;e\u0225\u0226\u6237;\u6a74\u0180git\u022f\u0236\u023aruent;\u6261nt;\u622fourIntegral;\u622e\u0100fr\u024c\u024e;\u6102oduct;\u6210nterClockwiseContourIntegral;\u6233oss;\u6a2fcr;\uc000\ud835\udc9ep\u0100;C\u0284\u0285\u62d3ap;\u624d\u0580DJSZacefios\u02a0\u02ac\u02b0\u02b4\u02b8\u02cb\u02d7\u02e1\u02e6\u0333\u048d\u0100;o\u0179\u02a5trahd;\u6911cy;\u4402cy;\u4405cy;\u440f\u0180grs\u02bf\u02c4\u02c7ger;\u6021r;\u61a1hv;\u6ae4\u0100ay\u02d0\u02d5ron;\u410e;\u4414l\u0100;t\u02dd\u02de\u6207a;\u4394r;\uc000\ud835\udd07\u0100af\u02eb\u0327\u0100cm\u02f0\u0322ritical\u0200ADGT\u0300\u0306\u0316\u031ccute;\u40b4o\u0174\u030b\u030d;\u42d9bleAcute;\u42ddrave;\u4060ilde;\u42dcond;\u62c4ferentialD;\u6146\u0470\u033d\0\0\0\u0342\u0354\0\u0405f;\uc000\ud835\udd3b\u0180;DE\u0348\u0349\u034d\u40a8ot;\u60dcqual;\u6250ble\u0300CDLRUV\u0363\u0372\u0382\u03cf\u03e2\u03f8ontourIntegra\xec\u0239o\u0274\u0379\0\0\u037b\xbb\u0349nArrow;\u61d3\u0100eo\u0387\u03a4ft\u0180ART\u0390\u0396\u03a1rrow;\u61d0ightArrow;\u61d4e\xe5\u02cang\u0100LR\u03ab\u03c4eft\u0100AR\u03b3\u03b9rrow;\u67f8ightArrow;\u67faightArrow;\u67f9ight\u0100AT\u03d8\u03derrow;\u61d2ee;\u62a8p\u0241\u03e9\0\0\u03efrrow;\u61d1ownArrow;\u61d5erticalBar;\u6225n\u0300ABLRTa\u0412\u042a\u0430\u045e\u047f\u037crrow\u0180;BU\u041d\u041e\u0422\u6193ar;\u6913pArrow;\u61f5reve;\u4311eft\u02d2\u043a\0\u0446\0\u0450ightVector;\u6950eeVector;\u695eector\u0100;B\u0459\u045a\u61bdar;\u6956ight\u01d4\u0467\0\u0471eeVector;\u695fector\u0100;B\u047a\u047b\u61c1ar;\u6957ee\u0100;A\u0486\u0487\u62a4rrow;\u61a7\u0100ct\u0492\u0497r;\uc000\ud835\udc9frok;\u4110\u0800NTacdfglmopqstux\u04bd\u04c0\u04c4\u04cb\u04de\u04e2\u04e7\u04ee\u04f5\u0521\u052f\u0536\u0552\u055d\u0560\u0565G;\u414aH\u803b\xd0\u40d0cute\u803b\xc9\u40c9\u0180aiy\u04d2\u04d7\u04dcron;\u411arc\u803b\xca\u40ca;\u442dot;\u4116r;\uc000\ud835\udd08rave\u803b\xc8\u40c8ement;\u6208\u0100ap\u04fa\u04fecr;\u4112ty\u0253\u0506\0\0\u0512mallSquare;\u65fberySmallSquare;\u65ab\u0100gp\u0526\u052aon;\u4118f;\uc000\ud835\udd3csilon;\u4395u\u0100ai\u053c\u0549l\u0100;T\u0542\u0543\u6a75ilde;\u6242librium;\u61cc\u0100ci\u0557\u055ar;\u6130m;\u6a73a;\u4397ml\u803b\xcb\u40cb\u0100ip\u056a\u056fsts;\u6203onentialE;\u6147\u0280cfios\u0585\u0588\u058d\u05b2\u05ccy;\u4424r;\uc000\ud835\udd09lled\u0253\u0597\0\0\u05a3mallSquare;\u65fcerySmallSquare;\u65aa\u0370\u05ba\0\u05bf\0\0\u05c4f;\uc000\ud835\udd3dAll;\u6200riertrf;\u6131c\xf2\u05cb\u0600JTabcdfgorst\u05e8\u05ec\u05ef\u05fa\u0600\u0612\u0616\u061b\u061d\u0623\u066c\u0672cy;\u4403\u803b>\u403emma\u0100;d\u05f7\u05f8\u4393;\u43dcreve;\u411e\u0180eiy\u0607\u060c\u0610dil;\u4122rc;\u411c;\u4413ot;\u4120r;\uc000\ud835\udd0a;\u62d9pf;\uc000\ud835\udd3eeater\u0300EFGLST\u0635\u0644\u064e\u0656\u065b\u0666qual\u0100;L\u063e\u063f\u6265ess;\u62dbullEqual;\u6267reater;\u6aa2ess;\u6277lantEqual;\u6a7eilde;\u6273cr;\uc000\ud835\udca2;\u626b\u0400Aacfiosu\u0685\u068b\u0696\u069b\u069e\u06aa\u06be\u06caRDcy;\u442a\u0100ct\u0690\u0694ek;\u42c7;\u405eirc;\u4124r;\u610clbertSpace;\u610b\u01f0\u06af\0\u06b2f;\u610dizontalLine;\u6500\u0100ct\u06c3\u06c5\xf2\u06a9rok;\u4126mp\u0144\u06d0\u06d8ownHum\xf0\u012fqual;\u624f\u0700EJOacdfgmnostu\u06fa\u06fe\u0703\u0707\u070e\u071a\u071e\u0721\u0728\u0744\u0778\u078b\u078f\u0795cy;\u4415lig;\u4132cy;\u4401cute\u803b\xcd\u40cd\u0100iy\u0713\u0718rc\u803b\xce\u40ce;\u4418ot;\u4130r;\u6111rave\u803b\xcc\u40cc\u0180;ap\u0720\u072f\u073f\u0100cg\u0734\u0737r;\u412ainaryI;\u6148lie\xf3\u03dd\u01f4\u0749\0\u0762\u0100;e\u074d\u074e\u622c\u0100gr\u0753\u0758ral;\u622bsection;\u62c2isible\u0100CT\u076c\u0772omma;\u6063imes;\u6062\u0180gpt\u077f\u0783\u0788on;\u412ef;\uc000\ud835\udd40a;\u4399cr;\u6110ilde;\u4128\u01eb\u079a\0\u079ecy;\u4406l\u803b\xcf\u40cf\u0280cfosu\u07ac\u07b7\u07bc\u07c2\u07d0\u0100iy\u07b1\u07b5rc;\u4134;\u4419r;\uc000\ud835\udd0dpf;\uc000\ud835\udd41\u01e3\u07c7\0\u07ccr;\uc000\ud835\udca5rcy;\u4408kcy;\u4404\u0380HJacfos\u07e4\u07e8\u07ec\u07f1\u07fd\u0802\u0808cy;\u4425cy;\u440cppa;\u439a\u0100ey\u07f6\u07fbdil;\u4136;\u441ar;\uc000\ud835\udd0epf;\uc000\ud835\udd42cr;\uc000\ud835\udca6\u0580JTaceflmost\u0825\u0829\u082c\u0850\u0863\u09b3\u09b8\u09c7\u09cd\u0a37\u0a47cy;\u4409\u803b<\u403c\u0280cmnpr\u0837\u083c\u0841\u0844\u084dute;\u4139bda;\u439bg;\u67ealacetrf;\u6112r;\u619e\u0180aey\u0857\u085c\u0861ron;\u413ddil;\u413b;\u441b\u0100fs\u0868\u0970t\u0500ACDFRTUVar\u087e\u08a9\u08b1\u08e0\u08e6\u08fc\u092f\u095b\u0390\u096a\u0100nr\u0883\u088fgleBracket;\u67e8row\u0180;BR\u0899\u089a\u089e\u6190ar;\u61e4ightArrow;\u61c6eiling;\u6308o\u01f5\u08b7\0\u08c3bleBracket;\u67e6n\u01d4\u08c8\0\u08d2eeVector;\u6961ector\u0100;B\u08db\u08dc\u61c3ar;\u6959loor;\u630aight\u0100AV\u08ef\u08f5rrow;\u6194ector;\u694e\u0100er\u0901\u0917e\u0180;AV\u0909\u090a\u0910\u62a3rrow;\u61a4ector;\u695aiangle\u0180;BE\u0924\u0925\u0929\u62b2ar;\u69cfqual;\u62b4p\u0180DTV\u0937\u0942\u094cownVector;\u6951eeVector;\u6960ector\u0100;B\u0956\u0957\u61bfar;\u6958ector\u0100;B\u0965\u0966\u61bcar;\u6952ight\xe1\u039cs\u0300EFGLST\u097e\u098b\u0995\u099d\u09a2\u09adqualGreater;\u62daullEqual;\u6266reater;\u6276ess;\u6aa1lantEqual;\u6a7dilde;\u6272r;\uc000\ud835\udd0f\u0100;e\u09bd\u09be\u62d8ftarrow;\u61daidot;\u413f\u0180npw\u09d4\u0a16\u0a1bg\u0200LRlr\u09de\u09f7\u0a02\u0a10eft\u0100AR\u09e6\u09ecrrow;\u67f5ightArrow;\u67f7ightArrow;\u67f6eft\u0100ar\u03b3\u0a0aight\xe1\u03bfight\xe1\u03caf;\uc000\ud835\udd43er\u0100LR\u0a22\u0a2ceftArrow;\u6199ightArrow;\u6198\u0180cht\u0a3e\u0a40\u0a42\xf2\u084c;\u61b0rok;\u4141;\u626a\u0400acefiosu\u0a5a\u0a5d\u0a60\u0a77\u0a7c\u0a85\u0a8b\u0a8ep;\u6905y;\u441c\u0100dl\u0a65\u0a6fiumSpace;\u605flintrf;\u6133r;\uc000\ud835\udd10nusPlus;\u6213pf;\uc000\ud835\udd44c\xf2\u0a76;\u439c\u0480Jacefostu\u0aa3\u0aa7\u0aad\u0ac0\u0b14\u0b19\u0d91\u0d97\u0d9ecy;\u440acute;\u4143\u0180aey\u0ab4\u0ab9\u0aberon;\u4147dil;\u4145;\u441d\u0180gsw\u0ac7\u0af0\u0b0eative\u0180MTV\u0ad3\u0adf\u0ae8ediumSpace;\u600bhi\u0100cn\u0ae6\u0ad8\xeb\u0ad9eryThi\xee\u0ad9ted\u0100GL\u0af8\u0b06reaterGreate\xf2\u0673essLes\xf3\u0a48Line;\u400ar;\uc000\ud835\udd11\u0200Bnpt\u0b22\u0b28\u0b37\u0b3areak;\u6060BreakingSpace;\u40a0f;\u6115\u0680;CDEGHLNPRSTV\u0b55\u0b56\u0b6a\u0b7c\u0ba1\u0beb\u0c04\u0c5e\u0c84\u0ca6\u0cd8\u0d61\u0d85\u6aec\u0100ou\u0b5b\u0b64ngruent;\u6262pCap;\u626doubleVerticalBar;\u6226\u0180lqx\u0b83\u0b8a\u0b9bement;\u6209ual\u0100;T\u0b92\u0b93\u6260ilde;\uc000\u2242\u0338ists;\u6204reater\u0380;EFGLST\u0bb6\u0bb7\u0bbd\u0bc9\u0bd3\u0bd8\u0be5\u626fqual;\u6271ullEqual;\uc000\u2267\u0338reater;\uc000\u226b\u0338ess;\u6279lantEqual;\uc000\u2a7e\u0338ilde;\u6275ump\u0144\u0bf2\u0bfdownHump;\uc000\u224e\u0338qual;\uc000\u224f\u0338e\u0100fs\u0c0a\u0c27tTriangle\u0180;BE\u0c1a\u0c1b\u0c21\u62eaar;\uc000\u29cf\u0338qual;\u62ecs\u0300;EGLST\u0c35\u0c36\u0c3c\u0c44\u0c4b\u0c58\u626equal;\u6270reater;\u6278ess;\uc000\u226a\u0338lantEqual;\uc000\u2a7d\u0338ilde;\u6274ested\u0100GL\u0c68\u0c79reaterGreater;\uc000\u2aa2\u0338essLess;\uc000\u2aa1\u0338recedes\u0180;ES\u0c92\u0c93\u0c9b\u6280qual;\uc000\u2aaf\u0338lantEqual;\u62e0\u0100ei\u0cab\u0cb9verseElement;\u620cghtTriangle\u0180;BE\u0ccb\u0ccc\u0cd2\u62ebar;\uc000\u29d0\u0338qual;\u62ed\u0100qu\u0cdd\u0d0cuareSu\u0100bp\u0ce8\u0cf9set\u0100;E\u0cf0\u0cf3\uc000\u228f\u0338qual;\u62e2erset\u0100;E\u0d03\u0d06\uc000\u2290\u0338qual;\u62e3\u0180bcp\u0d13\u0d24\u0d4eset\u0100;E\u0d1b\u0d1e\uc000\u2282\u20d2qual;\u6288ceeds\u0200;EST\u0d32\u0d33\u0d3b\u0d46\u6281qual;\uc000\u2ab0\u0338lantEqual;\u62e1ilde;\uc000\u227f\u0338erset\u0100;E\u0d58\u0d5b\uc000\u2283\u20d2qual;\u6289ilde\u0200;EFT\u0d6e\u0d6f\u0d75\u0d7f\u6241qual;\u6244ullEqual;\u6247ilde;\u6249erticalBar;\u6224cr;\uc000\ud835\udca9ilde\u803b\xd1\u40d1;\u439d\u0700Eacdfgmoprstuv\u0dbd\u0dc2\u0dc9\u0dd5\u0ddb\u0de0\u0de7\u0dfc\u0e02\u0e20\u0e22\u0e32\u0e3f\u0e44lig;\u4152cute\u803b\xd3\u40d3\u0100iy\u0dce\u0dd3rc\u803b\xd4\u40d4;\u441eblac;\u4150r;\uc000\ud835\udd12rave\u803b\xd2\u40d2\u0180aei\u0dee\u0df2\u0df6cr;\u414cga;\u43a9cron;\u439fpf;\uc000\ud835\udd46enCurly\u0100DQ\u0e0e\u0e1aoubleQuote;\u601cuote;\u6018;\u6a54\u0100cl\u0e27\u0e2cr;\uc000\ud835\udcaaash\u803b\xd8\u40d8i\u016c\u0e37\u0e3cde\u803b\xd5\u40d5es;\u6a37ml\u803b\xd6\u40d6er\u0100BP\u0e4b\u0e60\u0100ar\u0e50\u0e53r;\u603eac\u0100ek\u0e5a\u0e5c;\u63deet;\u63b4arenthesis;\u63dc\u0480acfhilors\u0e7f\u0e87\u0e8a\u0e8f\u0e92\u0e94\u0e9d\u0eb0\u0efcrtialD;\u6202y;\u441fr;\uc000\ud835\udd13i;\u43a6;\u43a0usMinus;\u40b1\u0100ip\u0ea2\u0eadncareplan\xe5\u069df;\u6119\u0200;eio\u0eb9\u0eba\u0ee0\u0ee4\u6abbcedes\u0200;EST\u0ec8\u0ec9\u0ecf\u0eda\u627aqual;\u6aaflantEqual;\u627cilde;\u627eme;\u6033\u0100dp\u0ee9\u0eeeuct;\u620fortion\u0100;a\u0225\u0ef9l;\u621d\u0100ci\u0f01\u0f06r;\uc000\ud835\udcab;\u43a8\u0200Ufos\u0f11\u0f16\u0f1b\u0f1fOT\u803b"\u4022r;\uc000\ud835\udd14pf;\u611acr;\uc000\ud835\udcac\u0600BEacefhiorsu\u0f3e\u0f43\u0f47\u0f60\u0f73\u0fa7\u0faa\u0fad\u1096\u10a9\u10b4\u10bearr;\u6910G\u803b\xae\u40ae\u0180cnr\u0f4e\u0f53\u0f56ute;\u4154g;\u67ebr\u0100;t\u0f5c\u0f5d\u61a0l;\u6916\u0180aey\u0f67\u0f6c\u0f71ron;\u4158dil;\u4156;\u4420\u0100;v\u0f78\u0f79\u611cerse\u0100EU\u0f82\u0f99\u0100lq\u0f87\u0f8eement;\u620builibrium;\u61cbpEquilibrium;\u696fr\xbb\u0f79o;\u43a1ght\u0400ACDFTUVa\u0fc1\u0feb\u0ff3\u1022\u1028\u105b\u1087\u03d8\u0100nr\u0fc6\u0fd2gleBracket;\u67e9row\u0180;BL\u0fdc\u0fdd\u0fe1\u6192ar;\u61e5eftArrow;\u61c4eiling;\u6309o\u01f5\u0ff9\0\u1005bleBracket;\u67e7n\u01d4\u100a\0\u1014eeVector;\u695dector\u0100;B\u101d\u101e\u61c2ar;\u6955loor;\u630b\u0100er\u102d\u1043e\u0180;AV\u1035\u1036\u103c\u62a2rrow;\u61a6ector;\u695biangle\u0180;BE\u1050\u1051\u1055\u62b3ar;\u69d0qual;\u62b5p\u0180DTV\u1063\u106e\u1078ownVector;\u694feeVector;\u695cector\u0100;B\u1082\u1083\u61bear;\u6954ector\u0100;B\u1091\u1092\u61c0ar;\u6953\u0100pu\u109b\u109ef;\u611dndImplies;\u6970ightarrow;\u61db\u0100ch\u10b9\u10bcr;\u611b;\u61b1leDelayed;\u69f4\u0680HOacfhimoqstu\u10e4\u10f1\u10f7\u10fd\u1119\u111e\u1151\u1156\u1161\u1167\u11b5\u11bb\u11bf\u0100Cc\u10e9\u10eeHcy;\u4429y;\u4428FTcy;\u442ccute;\u415a\u0280;aeiy\u1108\u1109\u110e\u1113\u1117\u6abcron;\u4160dil;\u415erc;\u415c;\u4421r;\uc000\ud835\udd16ort\u0200DLRU\u112a\u1134\u113e\u1149ownArrow\xbb\u041eeftArrow\xbb\u089aightArrow\xbb\u0fddpArrow;\u6191gma;\u43a3allCircle;\u6218pf;\uc000\ud835\udd4a\u0272\u116d\0\0\u1170t;\u621aare\u0200;ISU\u117b\u117c\u1189\u11af\u65a1ntersection;\u6293u\u0100bp\u118f\u119eset\u0100;E\u1197\u1198\u628fqual;\u6291erset\u0100;E\u11a8\u11a9\u6290qual;\u6292nion;\u6294cr;\uc000\ud835\udcaear;\u62c6\u0200bcmp\u11c8\u11db\u1209\u120b\u0100;s\u11cd\u11ce\u62d0et\u0100;E\u11cd\u11d5qual;\u6286\u0100ch\u11e0\u1205eeds\u0200;EST\u11ed\u11ee\u11f4\u11ff\u627bqual;\u6ab0lantEqual;\u627dilde;\u627fTh\xe1\u0f8c;\u6211\u0180;es\u1212\u1213\u1223\u62d1rset\u0100;E\u121c\u121d\u6283qual;\u6287et\xbb\u1213\u0580HRSacfhiors\u123e\u1244\u1249\u1255\u125e\u1271\u1276\u129f\u12c2\u12c8\u12d1ORN\u803b\xde\u40deADE;\u6122\u0100Hc\u124e\u1252cy;\u440by;\u4426\u0100bu\u125a\u125c;\u4009;\u43a4\u0180aey\u1265\u126a\u126fron;\u4164dil;\u4162;\u4422r;\uc000\ud835\udd17\u0100ei\u127b\u1289\u01f2\u1280\0\u1287efore;\u6234a;\u4398\u0100cn\u128e\u1298kSpace;\uc000\u205f\u200aSpace;\u6009lde\u0200;EFT\u12ab\u12ac\u12b2\u12bc\u623cqual;\u6243ullEqual;\u6245ilde;\u6248pf;\uc000\ud835\udd4bipleDot;\u60db\u0100ct\u12d6\u12dbr;\uc000\ud835\udcafrok;\u4166\u0ae1\u12f7\u130e\u131a\u1326\0\u132c\u1331\0\0\0\0\0\u1338\u133d\u1377\u1385\0\u13ff\u1404\u140a\u1410\u0100cr\u12fb\u1301ute\u803b\xda\u40dar\u0100;o\u1307\u1308\u619fcir;\u6949r\u01e3\u1313\0\u1316y;\u440eve;\u416c\u0100iy\u131e\u1323rc\u803b\xdb\u40db;\u4423blac;\u4170r;\uc000\ud835\udd18rave\u803b\xd9\u40d9acr;\u416a\u0100di\u1341\u1369er\u0100BP\u1348\u135d\u0100ar\u134d\u1350r;\u405fac\u0100ek\u1357\u1359;\u63dfet;\u63b5arenthesis;\u63ddon\u0100;P\u1370\u1371\u62c3lus;\u628e\u0100gp\u137b\u137fon;\u4172f;\uc000\ud835\udd4c\u0400ADETadps\u1395\u13ae\u13b8\u13c4\u03e8\u13d2\u13d7\u13f3rrow\u0180;BD\u1150\u13a0\u13a4ar;\u6912ownArrow;\u61c5ownArrow;\u6195quilibrium;\u696eee\u0100;A\u13cb\u13cc\u62a5rrow;\u61a5own\xe1\u03f3er\u0100LR\u13de\u13e8eftArrow;\u6196ightArrow;\u6197i\u0100;l\u13f9\u13fa\u43d2on;\u43a5ing;\u416ecr;\uc000\ud835\udcb0ilde;\u4168ml\u803b\xdc\u40dc\u0480Dbcdefosv\u1427\u142c\u1430\u1433\u143e\u1485\u148a\u1490\u1496ash;\u62abar;\u6aeby;\u4412ash\u0100;l\u143b\u143c\u62a9;\u6ae6\u0100er\u1443\u1445;\u62c1\u0180bty\u144c\u1450\u147aar;\u6016\u0100;i\u144f\u1455cal\u0200BLST\u1461\u1465\u146a\u1474ar;\u6223ine;\u407ceparator;\u6758ilde;\u6240ThinSpace;\u600ar;\uc000\ud835\udd19pf;\uc000\ud835\udd4dcr;\uc000\ud835\udcb1dash;\u62aa\u0280cefos\u14a7\u14ac\u14b1\u14b6\u14bcirc;\u4174dge;\u62c0r;\uc000\ud835\udd1apf;\uc000\ud835\udd4ecr;\uc000\ud835\udcb2\u0200fios\u14cb\u14d0\u14d2\u14d8r;\uc000\ud835\udd1b;\u439epf;\uc000\ud835\udd4fcr;\uc000\ud835\udcb3\u0480AIUacfosu\u14f1\u14f5\u14f9\u14fd\u1504\u150f\u1514\u151a\u1520cy;\u442fcy;\u4407cy;\u442ecute\u803b\xdd\u40dd\u0100iy\u1509\u150drc;\u4176;\u442br;\uc000\ud835\udd1cpf;\uc000\ud835\udd50cr;\uc000\ud835\udcb4ml;\u4178\u0400Hacdefos\u1535\u1539\u153f\u154b\u154f\u155d\u1560\u1564cy;\u4416cute;\u4179\u0100ay\u1544\u1549ron;\u417d;\u4417ot;\u417b\u01f2\u1554\0\u155boWidt\xe8\u0ad9a;\u4396r;\u6128pf;\u6124cr;\uc000\ud835\udcb5\u0be1\u1583\u158a\u1590\0\u15b0\u15b6\u15bf\0\0\0\0\u15c6\u15db\u15eb\u165f\u166d\0\u1695\u169b\u16b2\u16b9\0\u16becute\u803b\xe1\u40e1reve;\u4103\u0300;Ediuy\u159c\u159d\u15a1\u15a3\u15a8\u15ad\u623e;\uc000\u223e\u0333;\u623frc\u803b\xe2\u40e2te\u80bb\xb4\u0306;\u4430lig\u803b\xe6\u40e6\u0100;r\xb2\u15ba;\uc000\ud835\udd1erave\u803b\xe0\u40e0\u0100ep\u15ca\u15d6\u0100fp\u15cf\u15d4sym;\u6135\xe8\u15d3ha;\u43b1\u0100ap\u15dfc\u0100cl\u15e4\u15e7r;\u4101g;\u6a3f\u0264\u15f0\0\0\u160a\u0280;adsv\u15fa\u15fb\u15ff\u1601\u1607\u6227nd;\u6a55;\u6a5clope;\u6a58;\u6a5a\u0380;elmrsz\u1618\u1619\u161b\u161e\u163f\u164f\u1659\u6220;\u69a4e\xbb\u1619sd\u0100;a\u1625\u1626\u6221\u0461\u1630\u1632\u1634\u1636\u1638\u163a\u163c\u163e;\u69a8;\u69a9;\u69aa;\u69ab;\u69ac;\u69ad;\u69ae;\u69aft\u0100;v\u1645\u1646\u621fb\u0100;d\u164c\u164d\u62be;\u699d\u0100pt\u1654\u1657h;\u6222\xbb\xb9arr;\u637c\u0100gp\u1663\u1667on;\u4105f;\uc000\ud835\udd52\u0380;Eaeiop\u12c1\u167b\u167d\u1682\u1684\u1687\u168a;\u6a70cir;\u6a6f;\u624ad;\u624bs;\u4027rox\u0100;e\u12c1\u1692\xf1\u1683ing\u803b\xe5\u40e5\u0180cty\u16a1\u16a6\u16a8r;\uc000\ud835\udcb6;\u402amp\u0100;e\u12c1\u16af\xf1\u0288ilde\u803b\xe3\u40e3ml\u803b\xe4\u40e4\u0100ci\u16c2\u16c8onin\xf4\u0272nt;\u6a11\u0800Nabcdefiklnoprsu\u16ed\u16f1\u1730\u173c\u1743\u1748\u1778\u177d\u17e0\u17e6\u1839\u1850\u170d\u193d\u1948\u1970ot;\u6aed\u0100cr\u16f6\u171ek\u0200ceps\u1700\u1705\u170d\u1713ong;\u624cpsilon;\u43f6rime;\u6035im\u0100;e\u171a\u171b\u623dq;\u62cd\u0176\u1722\u1726ee;\u62bded\u0100;g\u172c\u172d\u6305e\xbb\u172drk\u0100;t\u135c\u1737brk;\u63b6\u0100oy\u1701\u1741;\u4431quo;\u601e\u0280cmprt\u1753\u175b\u1761\u1764\u1768aus\u0100;e\u010a\u0109ptyv;\u69b0s\xe9\u170cno\xf5\u0113\u0180ahw\u176f\u1771\u1773;\u43b2;\u6136een;\u626cr;\uc000\ud835\udd1fg\u0380costuvw\u178d\u179d\u17b3\u17c1\u17d5\u17db\u17de\u0180aiu\u1794\u1796\u179a\xf0\u0760rc;\u65efp\xbb\u1371\u0180dpt\u17a4\u17a8\u17adot;\u6a00lus;\u6a01imes;\u6a02\u0271\u17b9\0\0\u17becup;\u6a06ar;\u6605riangle\u0100du\u17cd\u17d2own;\u65bdp;\u65b3plus;\u6a04e\xe5\u1444\xe5\u14adarow;\u690d\u0180ako\u17ed\u1826\u1835\u0100cn\u17f2\u1823k\u0180lst\u17fa\u05ab\u1802ozenge;\u69ebriangle\u0200;dlr\u1812\u1813\u1818\u181d\u65b4own;\u65beeft;\u65c2ight;\u65b8k;\u6423\u01b1\u182b\0\u1833\u01b2\u182f\0\u1831;\u6592;\u65914;\u6593ck;\u6588\u0100eo\u183e\u184d\u0100;q\u1843\u1846\uc000=\u20e5uiv;\uc000\u2261\u20e5t;\u6310\u0200ptwx\u1859\u185e\u1867\u186cf;\uc000\ud835\udd53\u0100;t\u13cb\u1863om\xbb\u13cctie;\u62c8\u0600DHUVbdhmptuv\u1885\u1896\u18aa\u18bb\u18d7\u18db\u18ec\u18ff\u1905\u190a\u1910\u1921\u0200LRlr\u188e\u1890\u1892\u1894;\u6557;\u6554;\u6556;\u6553\u0280;DUdu\u18a1\u18a2\u18a4\u18a6\u18a8\u6550;\u6566;\u6569;\u6564;\u6567\u0200LRlr\u18b3\u18b5\u18b7\u18b9;\u655d;\u655a;\u655c;\u6559\u0380;HLRhlr\u18ca\u18cb\u18cd\u18cf\u18d1\u18d3\u18d5\u6551;\u656c;\u6563;\u6560;\u656b;\u6562;\u655fox;\u69c9\u0200LRlr\u18e4\u18e6\u18e8\u18ea;\u6555;\u6552;\u6510;\u650c\u0280;DUdu\u06bd\u18f7\u18f9\u18fb\u18fd;\u6565;\u6568;\u652c;\u6534inus;\u629flus;\u629eimes;\u62a0\u0200LRlr\u1919\u191b\u191d\u191f;\u655b;\u6558;\u6518;\u6514\u0380;HLRhlr\u1930\u1931\u1933\u1935\u1937\u1939\u193b\u6502;\u656a;\u6561;\u655e;\u653c;\u6524;\u651c\u0100ev\u0123\u1942bar\u803b\xa6\u40a6\u0200ceio\u1951\u1956\u195a\u1960r;\uc000\ud835\udcb7mi;\u604fm\u0100;e\u171a\u171cl\u0180;bh\u1968\u1969\u196b\u405c;\u69c5sub;\u67c8\u016c\u1974\u197el\u0100;e\u1979\u197a\u6022t\xbb\u197ap\u0180;Ee\u012f\u1985\u1987;\u6aae\u0100;q\u06dc\u06db\u0ce1\u19a7\0\u19e8\u1a11\u1a15\u1a32\0\u1a37\u1a50\0\0\u1ab4\0\0\u1ac1\0\0\u1b21\u1b2e\u1b4d\u1b52\0\u1bfd\0\u1c0c\u0180cpr\u19ad\u19b2\u19ddute;\u4107\u0300;abcds\u19bf\u19c0\u19c4\u19ca\u19d5\u19d9\u6229nd;\u6a44rcup;\u6a49\u0100au\u19cf\u19d2p;\u6a4bp;\u6a47ot;\u6a40;\uc000\u2229\ufe00\u0100eo\u19e2\u19e5t;\u6041\xee\u0693\u0200aeiu\u19f0\u19fb\u1a01\u1a05\u01f0\u19f5\0\u19f8s;\u6a4don;\u410ddil\u803b\xe7\u40e7rc;\u4109ps\u0100;s\u1a0c\u1a0d\u6a4cm;\u6a50ot;\u410b\u0180dmn\u1a1b\u1a20\u1a26il\u80bb\xb8\u01adptyv;\u69b2t\u8100\xa2;e\u1a2d\u1a2e\u40a2r\xe4\u01b2r;\uc000\ud835\udd20\u0180cei\u1a3d\u1a40\u1a4dy;\u4447ck\u0100;m\u1a47\u1a48\u6713ark\xbb\u1a48;\u43c7r\u0380;Ecefms\u1a5f\u1a60\u1a62\u1a6b\u1aa4\u1aaa\u1aae\u65cb;\u69c3\u0180;el\u1a69\u1a6a\u1a6d\u42c6q;\u6257e\u0261\u1a74\0\0\u1a88rrow\u0100lr\u1a7c\u1a81eft;\u61baight;\u61bb\u0280RSacd\u1a92\u1a94\u1a96\u1a9a\u1a9f\xbb\u0f47;\u64c8st;\u629birc;\u629aash;\u629dnint;\u6a10id;\u6aefcir;\u69c2ubs\u0100;u\u1abb\u1abc\u6663it\xbb\u1abc\u02ec\u1ac7\u1ad4\u1afa\0\u1b0aon\u0100;e\u1acd\u1ace\u403a\u0100;q\xc7\xc6\u026d\u1ad9\0\0\u1ae2a\u0100;t\u1ade\u1adf\u402c;\u4040\u0180;fl\u1ae8\u1ae9\u1aeb\u6201\xee\u1160e\u0100mx\u1af1\u1af6ent\xbb\u1ae9e\xf3\u024d\u01e7\u1afe\0\u1b07\u0100;d\u12bb\u1b02ot;\u6a6dn\xf4\u0246\u0180fry\u1b10\u1b14\u1b17;\uc000\ud835\udd54o\xe4\u0254\u8100\xa9;s\u0155\u1b1dr;\u6117\u0100ao\u1b25\u1b29rr;\u61b5ss;\u6717\u0100cu\u1b32\u1b37r;\uc000\ud835\udcb8\u0100bp\u1b3c\u1b44\u0100;e\u1b41\u1b42\u6acf;\u6ad1\u0100;e\u1b49\u1b4a\u6ad0;\u6ad2dot;\u62ef\u0380delprvw\u1b60\u1b6c\u1b77\u1b82\u1bac\u1bd4\u1bf9arr\u0100lr\u1b68\u1b6a;\u6938;\u6935\u0270\u1b72\0\0\u1b75r;\u62dec;\u62dfarr\u0100;p\u1b7f\u1b80\u61b6;\u693d\u0300;bcdos\u1b8f\u1b90\u1b96\u1ba1\u1ba5\u1ba8\u622arcap;\u6a48\u0100au\u1b9b\u1b9ep;\u6a46p;\u6a4aot;\u628dr;\u6a45;\uc000\u222a\ufe00\u0200alrv\u1bb5\u1bbf\u1bde\u1be3rr\u0100;m\u1bbc\u1bbd\u61b7;\u693cy\u0180evw\u1bc7\u1bd4\u1bd8q\u0270\u1bce\0\0\u1bd2re\xe3\u1b73u\xe3\u1b75ee;\u62ceedge;\u62cfen\u803b\xa4\u40a4earrow\u0100lr\u1bee\u1bf3eft\xbb\u1b80ight\xbb\u1bbde\xe4\u1bdd\u0100ci\u1c01\u1c07onin\xf4\u01f7nt;\u6231lcty;\u632d\u0980AHabcdefhijlorstuwz\u1c38\u1c3b\u1c3f\u1c5d\u1c69\u1c75\u1c8a\u1c9e\u1cac\u1cb7\u1cfb\u1cff\u1d0d\u1d7b\u1d91\u1dab\u1dbb\u1dc6\u1dcdr\xf2\u0381ar;\u6965\u0200glrs\u1c48\u1c4d\u1c52\u1c54ger;\u6020eth;\u6138\xf2\u1133h\u0100;v\u1c5a\u1c5b\u6010\xbb\u090a\u016b\u1c61\u1c67arow;\u690fa\xe3\u0315\u0100ay\u1c6e\u1c73ron;\u410f;\u4434\u0180;ao\u0332\u1c7c\u1c84\u0100gr\u02bf\u1c81r;\u61catseq;\u6a77\u0180glm\u1c91\u1c94\u1c98\u803b\xb0\u40b0ta;\u43b4ptyv;\u69b1\u0100ir\u1ca3\u1ca8sht;\u697f;\uc000\ud835\udd21ar\u0100lr\u1cb3\u1cb5\xbb\u08dc\xbb\u101e\u0280aegsv\u1cc2\u0378\u1cd6\u1cdc\u1ce0m\u0180;os\u0326\u1cca\u1cd4nd\u0100;s\u0326\u1cd1uit;\u6666amma;\u43ddin;\u62f2\u0180;io\u1ce7\u1ce8\u1cf8\u40f7de\u8100\xf7;o\u1ce7\u1cf0ntimes;\u62c7n\xf8\u1cf7cy;\u4452c\u026f\u1d06\0\0\u1d0arn;\u631eop;\u630d\u0280lptuw\u1d18\u1d1d\u1d22\u1d49\u1d55lar;\u4024f;\uc000\ud835\udd55\u0280;emps\u030b\u1d2d\u1d37\u1d3d\u1d42q\u0100;d\u0352\u1d33ot;\u6251inus;\u6238lus;\u6214quare;\u62a1blebarwedg\xe5\xfan\u0180adh\u112e\u1d5d\u1d67ownarrow\xf3\u1c83arpoon\u0100lr\u1d72\u1d76ef\xf4\u1cb4igh\xf4\u1cb6\u0162\u1d7f\u1d85karo\xf7\u0f42\u026f\u1d8a\0\0\u1d8ern;\u631fop;\u630c\u0180cot\u1d98\u1da3\u1da6\u0100ry\u1d9d\u1da1;\uc000\ud835\udcb9;\u4455l;\u69f6rok;\u4111\u0100dr\u1db0\u1db4ot;\u62f1i\u0100;f\u1dba\u1816\u65bf\u0100ah\u1dc0\u1dc3r\xf2\u0429a\xf2\u0fa6angle;\u69a6\u0100ci\u1dd2\u1dd5y;\u445fgrarr;\u67ff\u0900Dacdefglmnopqrstux\u1e01\u1e09\u1e19\u1e38\u0578\u1e3c\u1e49\u1e61\u1e7e\u1ea5\u1eaf\u1ebd\u1ee1\u1f2a\u1f37\u1f44\u1f4e\u1f5a\u0100Do\u1e06\u1d34o\xf4\u1c89\u0100cs\u1e0e\u1e14ute\u803b\xe9\u40e9ter;\u6a6e\u0200aioy\u1e22\u1e27\u1e31\u1e36ron;\u411br\u0100;c\u1e2d\u1e2e\u6256\u803b\xea\u40ealon;\u6255;\u444dot;\u4117\u0100Dr\u1e41\u1e45ot;\u6252;\uc000\ud835\udd22\u0180;rs\u1e50\u1e51\u1e57\u6a9aave\u803b\xe8\u40e8\u0100;d\u1e5c\u1e5d\u6a96ot;\u6a98\u0200;ils\u1e6a\u1e6b\u1e72\u1e74\u6a99nters;\u63e7;\u6113\u0100;d\u1e79\u1e7a\u6a95ot;\u6a97\u0180aps\u1e85\u1e89\u1e97cr;\u4113ty\u0180;sv\u1e92\u1e93\u1e95\u6205et\xbb\u1e93p\u01001;\u1e9d\u1ea4\u0133\u1ea1\u1ea3;\u6004;\u6005\u6003\u0100gs\u1eaa\u1eac;\u414bp;\u6002\u0100gp\u1eb4\u1eb8on;\u4119f;\uc000\ud835\udd56\u0180als\u1ec4\u1ece\u1ed2r\u0100;s\u1eca\u1ecb\u62d5l;\u69e3us;\u6a71i\u0180;lv\u1eda\u1edb\u1edf\u43b5on\xbb\u1edb;\u43f5\u0200csuv\u1eea\u1ef3\u1f0b\u1f23\u0100io\u1eef\u1e31rc\xbb\u1e2e\u0269\u1ef9\0\0\u1efb\xed\u0548ant\u0100gl\u1f02\u1f06tr\xbb\u1e5dess\xbb\u1e7a\u0180aei\u1f12\u1f16\u1f1als;\u403dst;\u625fv\u0100;D\u0235\u1f20D;\u6a78parsl;\u69e5\u0100Da\u1f2f\u1f33ot;\u6253rr;\u6971\u0180cdi\u1f3e\u1f41\u1ef8r;\u612fo\xf4\u0352\u0100ah\u1f49\u1f4b;\u43b7\u803b\xf0\u40f0\u0100mr\u1f53\u1f57l\u803b\xeb\u40ebo;\u60ac\u0180cip\u1f61\u1f64\u1f67l;\u4021s\xf4\u056e\u0100eo\u1f6c\u1f74ctatio\xee\u0559nential\xe5\u0579\u09e1\u1f92\0\u1f9e\0\u1fa1\u1fa7\0\0\u1fc6\u1fcc\0\u1fd3\0\u1fe6\u1fea\u2000\0\u2008\u205allingdotse\xf1\u1e44y;\u4444male;\u6640\u0180ilr\u1fad\u1fb3\u1fc1lig;\u8000\ufb03\u0269\u1fb9\0\0\u1fbdg;\u8000\ufb00ig;\u8000\ufb04;\uc000\ud835\udd23lig;\u8000\ufb01lig;\uc000fj\u0180alt\u1fd9\u1fdc\u1fe1t;\u666dig;\u8000\ufb02ns;\u65b1of;\u4192\u01f0\u1fee\0\u1ff3f;\uc000\ud835\udd57\u0100ak\u05bf\u1ff7\u0100;v\u1ffc\u1ffd\u62d4;\u6ad9artint;\u6a0d\u0100ao\u200c\u2055\u0100cs\u2011\u2052\u03b1\u201a\u2030\u2038\u2045\u2048\0\u2050\u03b2\u2022\u2025\u2027\u202a\u202c\0\u202e\u803b\xbd\u40bd;\u6153\u803b\xbc\u40bc;\u6155;\u6159;\u615b\u01b3\u2034\0\u2036;\u6154;\u6156\u02b4\u203e\u2041\0\0\u2043\u803b\xbe\u40be;\u6157;\u615c5;\u6158\u01b6\u204c\0\u204e;\u615a;\u615d8;\u615el;\u6044wn;\u6322cr;\uc000\ud835\udcbb\u0880Eabcdefgijlnorstv\u2082\u2089\u209f\u20a5\u20b0\u20b4\u20f0\u20f5\u20fa\u20ff\u2103\u2112\u2138\u0317\u213e\u2152\u219e\u0100;l\u064d\u2087;\u6a8c\u0180cmp\u2090\u2095\u209dute;\u41f5ma\u0100;d\u209c\u1cda\u43b3;\u6a86reve;\u411f\u0100iy\u20aa\u20aerc;\u411d;\u4433ot;\u4121\u0200;lqs\u063e\u0642\u20bd\u20c9\u0180;qs\u063e\u064c\u20c4lan\xf4\u0665\u0200;cdl\u0665\u20d2\u20d5\u20e5c;\u6aa9ot\u0100;o\u20dc\u20dd\u6a80\u0100;l\u20e2\u20e3\u6a82;\u6a84\u0100;e\u20ea\u20ed\uc000\u22db\ufe00s;\u6a94r;\uc000\ud835\udd24\u0100;g\u0673\u061bmel;\u6137cy;\u4453\u0200;Eaj\u065a\u210c\u210e\u2110;\u6a92;\u6aa5;\u6aa4\u0200Eaes\u211b\u211d\u2129\u2134;\u6269p\u0100;p\u2123\u2124\u6a8arox\xbb\u2124\u0100;q\u212e\u212f\u6a88\u0100;q\u212e\u211bim;\u62e7pf;\uc000\ud835\udd58\u0100ci\u2143\u2146r;\u610am\u0180;el\u066b\u214e\u2150;\u6a8e;\u6a90\u8300>;cdlqr\u05ee\u2160\u216a\u216e\u2173\u2179\u0100ci\u2165\u2167;\u6aa7r;\u6a7aot;\u62d7Par;\u6995uest;\u6a7c\u0280adels\u2184\u216a\u2190\u0656\u219b\u01f0\u2189\0\u218epro\xf8\u209er;\u6978q\u0100lq\u063f\u2196les\xf3\u2088i\xed\u066b\u0100en\u21a3\u21adrtneqq;\uc000\u2269\ufe00\xc5\u21aa\u0500Aabcefkosy\u21c4\u21c7\u21f1\u21f5\u21fa\u2218\u221d\u222f\u2268\u227dr\xf2\u03a0\u0200ilmr\u21d0\u21d4\u21d7\u21dbrs\xf0\u1484f\xbb\u2024il\xf4\u06a9\u0100dr\u21e0\u21e4cy;\u444a\u0180;cw\u08f4\u21eb\u21efir;\u6948;\u61adar;\u610firc;\u4125\u0180alr\u2201\u220e\u2213rts\u0100;u\u2209\u220a\u6665it\xbb\u220alip;\u6026con;\u62b9r;\uc000\ud835\udd25s\u0100ew\u2223\u2229arow;\u6925arow;\u6926\u0280amopr\u223a\u223e\u2243\u225e\u2263rr;\u61fftht;\u623bk\u0100lr\u2249\u2253eftarrow;\u61a9ightarrow;\u61aaf;\uc000\ud835\udd59bar;\u6015\u0180clt\u226f\u2274\u2278r;\uc000\ud835\udcbdas\xe8\u21f4rok;\u4127\u0100bp\u2282\u2287ull;\u6043hen\xbb\u1c5b\u0ae1\u22a3\0\u22aa\0\u22b8\u22c5\u22ce\0\u22d5\u22f3\0\0\u22f8\u2322\u2367\u2362\u237f\0\u2386\u23aa\u23b4cute\u803b\xed\u40ed\u0180;iy\u0771\u22b0\u22b5rc\u803b\xee\u40ee;\u4438\u0100cx\u22bc\u22bfy;\u4435cl\u803b\xa1\u40a1\u0100fr\u039f\u22c9;\uc000\ud835\udd26rave\u803b\xec\u40ec\u0200;ino\u073e\u22dd\u22e9\u22ee\u0100in\u22e2\u22e6nt;\u6a0ct;\u622dfin;\u69dcta;\u6129lig;\u4133\u0180aop\u22fe\u231a\u231d\u0180cgt\u2305\u2308\u2317r;\u412b\u0180elp\u071f\u230f\u2313in\xe5\u078ear\xf4\u0720h;\u4131f;\u62b7ed;\u41b5\u0280;cfot\u04f4\u232c\u2331\u233d\u2341are;\u6105in\u0100;t\u2338\u2339\u621eie;\u69dddo\xf4\u2319\u0280;celp\u0757\u234c\u2350\u235b\u2361al;\u62ba\u0100gr\u2355\u2359er\xf3\u1563\xe3\u234darhk;\u6a17rod;\u6a3c\u0200cgpt\u236f\u2372\u2376\u237by;\u4451on;\u412ff;\uc000\ud835\udd5aa;\u43b9uest\u803b\xbf\u40bf\u0100ci\u238a\u238fr;\uc000\ud835\udcben\u0280;Edsv\u04f4\u239b\u239d\u23a1\u04f3;\u62f9ot;\u62f5\u0100;v\u23a6\u23a7\u62f4;\u62f3\u0100;i\u0777\u23aelde;\u4129\u01eb\u23b8\0\u23bccy;\u4456l\u803b\xef\u40ef\u0300cfmosu\u23cc\u23d7\u23dc\u23e1\u23e7\u23f5\u0100iy\u23d1\u23d5rc;\u4135;\u4439r;\uc000\ud835\udd27ath;\u4237pf;\uc000\ud835\udd5b\u01e3\u23ec\0\u23f1r;\uc000\ud835\udcbfrcy;\u4458kcy;\u4454\u0400acfghjos\u240b\u2416\u2422\u2427\u242d\u2431\u2435\u243bppa\u0100;v\u2413\u2414\u43ba;\u43f0\u0100ey\u241b\u2420dil;\u4137;\u443ar;\uc000\ud835\udd28reen;\u4138cy;\u4445cy;\u445cpf;\uc000\ud835\udd5ccr;\uc000\ud835\udcc0\u0b80ABEHabcdefghjlmnoprstuv\u2470\u2481\u2486\u248d\u2491\u250e\u253d\u255a\u2580\u264e\u265e\u2665\u2679\u267d\u269a\u26b2\u26d8\u275d\u2768\u278b\u27c0\u2801\u2812\u0180art\u2477\u247a\u247cr\xf2\u09c6\xf2\u0395ail;\u691barr;\u690e\u0100;g\u0994\u248b;\u6a8bar;\u6962\u0963\u24a5\0\u24aa\0\u24b1\0\0\0\0\0\u24b5\u24ba\0\u24c6\u24c8\u24cd\0\u24f9ute;\u413amptyv;\u69b4ra\xee\u084cbda;\u43bbg\u0180;dl\u088e\u24c1\u24c3;\u6991\xe5\u088e;\u6a85uo\u803b\xab\u40abr\u0400;bfhlpst\u0899\u24de\u24e6\u24e9\u24eb\u24ee\u24f1\u24f5\u0100;f\u089d\u24e3s;\u691fs;\u691d\xeb\u2252p;\u61abl;\u6939im;\u6973l;\u61a2\u0180;ae\u24ff\u2500\u2504\u6aabil;\u6919\u0100;s\u2509\u250a\u6aad;\uc000\u2aad\ufe00\u0180abr\u2515\u2519\u251drr;\u690crk;\u6772\u0100ak\u2522\u252cc\u0100ek\u2528\u252a;\u407b;\u405b\u0100es\u2531\u2533;\u698bl\u0100du\u2539\u253b;\u698f;\u698d\u0200aeuy\u2546\u254b\u2556\u2558ron;\u413e\u0100di\u2550\u2554il;\u413c\xec\u08b0\xe2\u2529;\u443b\u0200cqrs\u2563\u2566\u256d\u257da;\u6936uo\u0100;r\u0e19\u1746\u0100du\u2572\u2577har;\u6967shar;\u694bh;\u61b2\u0280;fgqs\u258b\u258c\u0989\u25f3\u25ff\u6264t\u0280ahlrt\u2598\u25a4\u25b7\u25c2\u25e8rrow\u0100;t\u0899\u25a1a\xe9\u24f6arpoon\u0100du\u25af\u25b4own\xbb\u045ap\xbb\u0966eftarrows;\u61c7ight\u0180ahs\u25cd\u25d6\u25derrow\u0100;s\u08f4\u08a7arpoon\xf3\u0f98quigarro\xf7\u21f0hreetimes;\u62cb\u0180;qs\u258b\u0993\u25falan\xf4\u09ac\u0280;cdgs\u09ac\u260a\u260d\u261d\u2628c;\u6aa8ot\u0100;o\u2614\u2615\u6a7f\u0100;r\u261a\u261b\u6a81;\u6a83\u0100;e\u2622\u2625\uc000\u22da\ufe00s;\u6a93\u0280adegs\u2633\u2639\u263d\u2649\u264bppro\xf8\u24c6ot;\u62d6q\u0100gq\u2643\u2645\xf4\u0989gt\xf2\u248c\xf4\u099bi\xed\u09b2\u0180ilr\u2655\u08e1\u265asht;\u697c;\uc000\ud835\udd29\u0100;E\u099c\u2663;\u6a91\u0161\u2669\u2676r\u0100du\u25b2\u266e\u0100;l\u0965\u2673;\u696alk;\u6584cy;\u4459\u0280;acht\u0a48\u2688\u268b\u2691\u2696r\xf2\u25c1orne\xf2\u1d08ard;\u696bri;\u65fa\u0100io\u269f\u26a4dot;\u4140ust\u0100;a\u26ac\u26ad\u63b0che\xbb\u26ad\u0200Eaes\u26bb\u26bd\u26c9\u26d4;\u6268p\u0100;p\u26c3\u26c4\u6a89rox\xbb\u26c4\u0100;q\u26ce\u26cf\u6a87\u0100;q\u26ce\u26bbim;\u62e6\u0400abnoptwz\u26e9\u26f4\u26f7\u271a\u272f\u2741\u2747\u2750\u0100nr\u26ee\u26f1g;\u67ecr;\u61fdr\xeb\u08c1g\u0180lmr\u26ff\u270d\u2714eft\u0100ar\u09e6\u2707ight\xe1\u09f2apsto;\u67fcight\xe1\u09fdparrow\u0100lr\u2725\u2729ef\xf4\u24edight;\u61ac\u0180afl\u2736\u2739\u273dr;\u6985;\uc000\ud835\udd5dus;\u6a2dimes;\u6a34\u0161\u274b\u274fst;\u6217\xe1\u134e\u0180;ef\u2757\u2758\u1800\u65cange\xbb\u2758ar\u0100;l\u2764\u2765\u4028t;\u6993\u0280achmt\u2773\u2776\u277c\u2785\u2787r\xf2\u08a8orne\xf2\u1d8car\u0100;d\u0f98\u2783;\u696d;\u600eri;\u62bf\u0300achiqt\u2798\u279d\u0a40\u27a2\u27ae\u27bbquo;\u6039r;\uc000\ud835\udcc1m\u0180;eg\u09b2\u27aa\u27ac;\u6a8d;\u6a8f\u0100bu\u252a\u27b3o\u0100;r\u0e1f\u27b9;\u601arok;\u4142\u8400<;cdhilqr\u082b\u27d2\u2639\u27dc\u27e0\u27e5\u27ea\u27f0\u0100ci\u27d7\u27d9;\u6aa6r;\u6a79re\xe5\u25f2mes;\u62c9arr;\u6976uest;\u6a7b\u0100Pi\u27f5\u27f9ar;\u6996\u0180;ef\u2800\u092d\u181b\u65c3r\u0100du\u2807\u280dshar;\u694ahar;\u6966\u0100en\u2817\u2821rtneqq;\uc000\u2268\ufe00\xc5\u281e\u0700Dacdefhilnopsu\u2840\u2845\u2882\u288e\u2893\u28a0\u28a5\u28a8\u28da\u28e2\u28e4\u0a83\u28f3\u2902Dot;\u623a\u0200clpr\u284e\u2852\u2863\u287dr\u803b\xaf\u40af\u0100et\u2857\u2859;\u6642\u0100;e\u285e\u285f\u6720se\xbb\u285f\u0100;s\u103b\u2868to\u0200;dlu\u103b\u2873\u2877\u287bow\xee\u048cef\xf4\u090f\xf0\u13d1ker;\u65ae\u0100oy\u2887\u288cmma;\u6a29;\u443cash;\u6014asuredangle\xbb\u1626r;\uc000\ud835\udd2ao;\u6127\u0180cdn\u28af\u28b4\u28c9ro\u803b\xb5\u40b5\u0200;acd\u1464\u28bd\u28c0\u28c4s\xf4\u16a7ir;\u6af0ot\u80bb\xb7\u01b5us\u0180;bd\u28d2\u1903\u28d3\u6212\u0100;u\u1d3c\u28d8;\u6a2a\u0163\u28de\u28e1p;\u6adb\xf2\u2212\xf0\u0a81\u0100dp\u28e9\u28eeels;\u62a7f;\uc000\ud835\udd5e\u0100ct\u28f8\u28fdr;\uc000\ud835\udcc2pos\xbb\u159d\u0180;lm\u2909\u290a\u290d\u43bctimap;\u62b8\u0c00GLRVabcdefghijlmoprstuvw\u2942\u2953\u297e\u2989\u2998\u29da\u29e9\u2a15\u2a1a\u2a58\u2a5d\u2a83\u2a95\u2aa4\u2aa8\u2b04\u2b07\u2b44\u2b7f\u2bae\u2c34\u2c67\u2c7c\u2ce9\u0100gt\u2947\u294b;\uc000\u22d9\u0338\u0100;v\u2950\u0bcf\uc000\u226b\u20d2\u0180elt\u295a\u2972\u2976ft\u0100ar\u2961\u2967rrow;\u61cdightarrow;\u61ce;\uc000\u22d8\u0338\u0100;v\u297b\u0c47\uc000\u226a\u20d2ightarrow;\u61cf\u0100Dd\u298e\u2993ash;\u62afash;\u62ae\u0280bcnpt\u29a3\u29a7\u29ac\u29b1\u29ccla\xbb\u02deute;\u4144g;\uc000\u2220\u20d2\u0280;Eiop\u0d84\u29bc\u29c0\u29c5\u29c8;\uc000\u2a70\u0338d;\uc000\u224b\u0338s;\u4149ro\xf8\u0d84ur\u0100;a\u29d3\u29d4\u666el\u0100;s\u29d3\u0b38\u01f3\u29df\0\u29e3p\u80bb\xa0\u0b37mp\u0100;e\u0bf9\u0c00\u0280aeouy\u29f4\u29fe\u2a03\u2a10\u2a13\u01f0\u29f9\0\u29fb;\u6a43on;\u4148dil;\u4146ng\u0100;d\u0d7e\u2a0aot;\uc000\u2a6d\u0338p;\u6a42;\u443dash;\u6013\u0380;Aadqsx\u0b92\u2a29\u2a2d\u2a3b\u2a41\u2a45\u2a50rr;\u61d7r\u0100hr\u2a33\u2a36k;\u6924\u0100;o\u13f2\u13f0ot;\uc000\u2250\u0338ui\xf6\u0b63\u0100ei\u2a4a\u2a4ear;\u6928\xed\u0b98ist\u0100;s\u0ba0\u0b9fr;\uc000\ud835\udd2b\u0200Eest\u0bc5\u2a66\u2a79\u2a7c\u0180;qs\u0bbc\u2a6d\u0be1\u0180;qs\u0bbc\u0bc5\u2a74lan\xf4\u0be2i\xed\u0bea\u0100;r\u0bb6\u2a81\xbb\u0bb7\u0180Aap\u2a8a\u2a8d\u2a91r\xf2\u2971rr;\u61aear;\u6af2\u0180;sv\u0f8d\u2a9c\u0f8c\u0100;d\u2aa1\u2aa2\u62fc;\u62facy;\u445a\u0380AEadest\u2ab7\u2aba\u2abe\u2ac2\u2ac5\u2af6\u2af9r\xf2\u2966;\uc000\u2266\u0338rr;\u619ar;\u6025\u0200;fqs\u0c3b\u2ace\u2ae3\u2aeft\u0100ar\u2ad4\u2ad9rro\xf7\u2ac1ightarro\xf7\u2a90\u0180;qs\u0c3b\u2aba\u2aealan\xf4\u0c55\u0100;s\u0c55\u2af4\xbb\u0c36i\xed\u0c5d\u0100;r\u0c35\u2afei\u0100;e\u0c1a\u0c25i\xe4\u0d90\u0100pt\u2b0c\u2b11f;\uc000\ud835\udd5f\u8180\xac;in\u2b19\u2b1a\u2b36\u40acn\u0200;Edv\u0b89\u2b24\u2b28\u2b2e;\uc000\u22f9\u0338ot;\uc000\u22f5\u0338\u01e1\u0b89\u2b33\u2b35;\u62f7;\u62f6i\u0100;v\u0cb8\u2b3c\u01e1\u0cb8\u2b41\u2b43;\u62fe;\u62fd\u0180aor\u2b4b\u2b63\u2b69r\u0200;ast\u0b7b\u2b55\u2b5a\u2b5flle\xec\u0b7bl;\uc000\u2afd\u20e5;\uc000\u2202\u0338lint;\u6a14\u0180;ce\u0c92\u2b70\u2b73u\xe5\u0ca5\u0100;c\u0c98\u2b78\u0100;e\u0c92\u2b7d\xf1\u0c98\u0200Aait\u2b88\u2b8b\u2b9d\u2ba7r\xf2\u2988rr\u0180;cw\u2b94\u2b95\u2b99\u619b;\uc000\u2933\u0338;\uc000\u219d\u0338ghtarrow\xbb\u2b95ri\u0100;e\u0ccb\u0cd6\u0380chimpqu\u2bbd\u2bcd\u2bd9\u2b04\u0b78\u2be4\u2bef\u0200;cer\u0d32\u2bc6\u0d37\u2bc9u\xe5\u0d45;\uc000\ud835\udcc3ort\u026d\u2b05\0\0\u2bd6ar\xe1\u2b56m\u0100;e\u0d6e\u2bdf\u0100;q\u0d74\u0d73su\u0100bp\u2beb\u2bed\xe5\u0cf8\xe5\u0d0b\u0180bcp\u2bf6\u2c11\u2c19\u0200;Ees\u2bff\u2c00\u0d22\u2c04\u6284;\uc000\u2ac5\u0338et\u0100;e\u0d1b\u2c0bq\u0100;q\u0d23\u2c00c\u0100;e\u0d32\u2c17\xf1\u0d38\u0200;Ees\u2c22\u2c23\u0d5f\u2c27\u6285;\uc000\u2ac6\u0338et\u0100;e\u0d58\u2c2eq\u0100;q\u0d60\u2c23\u0200gilr\u2c3d\u2c3f\u2c45\u2c47\xec\u0bd7lde\u803b\xf1\u40f1\xe7\u0c43iangle\u0100lr\u2c52\u2c5ceft\u0100;e\u0c1a\u2c5a\xf1\u0c26ight\u0100;e\u0ccb\u2c65\xf1\u0cd7\u0100;m\u2c6c\u2c6d\u43bd\u0180;es\u2c74\u2c75\u2c79\u4023ro;\u6116p;\u6007\u0480DHadgilrs\u2c8f\u2c94\u2c99\u2c9e\u2ca3\u2cb0\u2cb6\u2cd3\u2ce3ash;\u62adarr;\u6904p;\uc000\u224d\u20d2ash;\u62ac\u0100et\u2ca8\u2cac;\uc000\u2265\u20d2;\uc000>\u20d2nfin;\u69de\u0180Aet\u2cbd\u2cc1\u2cc5rr;\u6902;\uc000\u2264\u20d2\u0100;r\u2cca\u2ccd\uc000<\u20d2ie;\uc000\u22b4\u20d2\u0100At\u2cd8\u2cdcrr;\u6903rie;\uc000\u22b5\u20d2im;\uc000\u223c\u20d2\u0180Aan\u2cf0\u2cf4\u2d02rr;\u61d6r\u0100hr\u2cfa\u2cfdk;\u6923\u0100;o\u13e7\u13e5ear;\u6927\u1253\u1a95\0\0\0\0\0\0\0\0\0\0\0\0\0\u2d2d\0\u2d38\u2d48\u2d60\u2d65\u2d72\u2d84\u1b07\0\0\u2d8d\u2dab\0\u2dc8\u2dce\0\u2ddc\u2e19\u2e2b\u2e3e\u2e43\u0100cs\u2d31\u1a97ute\u803b\xf3\u40f3\u0100iy\u2d3c\u2d45r\u0100;c\u1a9e\u2d42\u803b\xf4\u40f4;\u443e\u0280abios\u1aa0\u2d52\u2d57\u01c8\u2d5alac;\u4151v;\u6a38old;\u69bclig;\u4153\u0100cr\u2d69\u2d6dir;\u69bf;\uc000\ud835\udd2c\u036f\u2d79\0\0\u2d7c\0\u2d82n;\u42dbave\u803b\xf2\u40f2;\u69c1\u0100bm\u2d88\u0df4ar;\u69b5\u0200acit\u2d95\u2d98\u2da5\u2da8r\xf2\u1a80\u0100ir\u2d9d\u2da0r;\u69beoss;\u69bbn\xe5\u0e52;\u69c0\u0180aei\u2db1\u2db5\u2db9cr;\u414dga;\u43c9\u0180cdn\u2dc0\u2dc5\u01cdron;\u43bf;\u69b6pf;\uc000\ud835\udd60\u0180ael\u2dd4\u2dd7\u01d2r;\u69b7rp;\u69b9\u0380;adiosv\u2dea\u2deb\u2dee\u2e08\u2e0d\u2e10\u2e16\u6228r\xf2\u1a86\u0200;efm\u2df7\u2df8\u2e02\u2e05\u6a5dr\u0100;o\u2dfe\u2dff\u6134f\xbb\u2dff\u803b\xaa\u40aa\u803b\xba\u40bagof;\u62b6r;\u6a56lope;\u6a57;\u6a5b\u0180clo\u2e1f\u2e21\u2e27\xf2\u2e01ash\u803b\xf8\u40f8l;\u6298i\u016c\u2e2f\u2e34de\u803b\xf5\u40f5es\u0100;a\u01db\u2e3as;\u6a36ml\u803b\xf6\u40f6bar;\u633d\u0ae1\u2e5e\0\u2e7d\0\u2e80\u2e9d\0\u2ea2\u2eb9\0\0\u2ecb\u0e9c\0\u2f13\0\0\u2f2b\u2fbc\0\u2fc8r\u0200;ast\u0403\u2e67\u2e72\u0e85\u8100\xb6;l\u2e6d\u2e6e\u40b6le\xec\u0403\u0269\u2e78\0\0\u2e7bm;\u6af3;\u6afdy;\u443fr\u0280cimpt\u2e8b\u2e8f\u2e93\u1865\u2e97nt;\u4025od;\u402eil;\u6030enk;\u6031r;\uc000\ud835\udd2d\u0180imo\u2ea8\u2eb0\u2eb4\u0100;v\u2ead\u2eae\u43c6;\u43d5ma\xf4\u0a76ne;\u660e\u0180;tv\u2ebf\u2ec0\u2ec8\u43c0chfork\xbb\u1ffd;\u43d6\u0100au\u2ecf\u2edfn\u0100ck\u2ed5\u2eddk\u0100;h\u21f4\u2edb;\u610e\xf6\u21f4s\u0480;abcdemst\u2ef3\u2ef4\u1908\u2ef9\u2efd\u2f04\u2f06\u2f0a\u2f0e\u402bcir;\u6a23ir;\u6a22\u0100ou\u1d40\u2f02;\u6a25;\u6a72n\u80bb\xb1\u0e9dim;\u6a26wo;\u6a27\u0180ipu\u2f19\u2f20\u2f25ntint;\u6a15f;\uc000\ud835\udd61nd\u803b\xa3\u40a3\u0500;Eaceinosu\u0ec8\u2f3f\u2f41\u2f44\u2f47\u2f81\u2f89\u2f92\u2f7e\u2fb6;\u6ab3p;\u6ab7u\xe5\u0ed9\u0100;c\u0ece\u2f4c\u0300;acens\u0ec8\u2f59\u2f5f\u2f66\u2f68\u2f7eppro\xf8\u2f43urlye\xf1\u0ed9\xf1\u0ece\u0180aes\u2f6f\u2f76\u2f7approx;\u6ab9qq;\u6ab5im;\u62e8i\xed\u0edfme\u0100;s\u2f88\u0eae\u6032\u0180Eas\u2f78\u2f90\u2f7a\xf0\u2f75\u0180dfp\u0eec\u2f99\u2faf\u0180als\u2fa0\u2fa5\u2faalar;\u632eine;\u6312urf;\u6313\u0100;t\u0efb\u2fb4\xef\u0efbrel;\u62b0\u0100ci\u2fc0\u2fc5r;\uc000\ud835\udcc5;\u43c8ncsp;\u6008\u0300fiopsu\u2fda\u22e2\u2fdf\u2fe5\u2feb\u2ff1r;\uc000\ud835\udd2epf;\uc000\ud835\udd62rime;\u6057cr;\uc000\ud835\udcc6\u0180aeo\u2ff8\u3009\u3013t\u0100ei\u2ffe\u3005rnion\xf3\u06b0nt;\u6a16st\u0100;e\u3010\u3011\u403f\xf1\u1f19\xf4\u0f14\u0a80ABHabcdefhilmnoprstux\u3040\u3051\u3055\u3059\u30e0\u310e\u312b\u3147\u3162\u3172\u318e\u3206\u3215\u3224\u3229\u3258\u326e\u3272\u3290\u32b0\u32b7\u0180art\u3047\u304a\u304cr\xf2\u10b3\xf2\u03ddail;\u691car\xf2\u1c65ar;\u6964\u0380cdenqrt\u3068\u3075\u3078\u307f\u308f\u3094\u30cc\u0100eu\u306d\u3071;\uc000\u223d\u0331te;\u4155i\xe3\u116emptyv;\u69b3g\u0200;del\u0fd1\u3089\u308b\u308d;\u6992;\u69a5\xe5\u0fd1uo\u803b\xbb\u40bbr\u0580;abcfhlpstw\u0fdc\u30ac\u30af\u30b7\u30b9\u30bc\u30be\u30c0\u30c3\u30c7\u30cap;\u6975\u0100;f\u0fe0\u30b4s;\u6920;\u6933s;\u691e\xeb\u225d\xf0\u272el;\u6945im;\u6974l;\u61a3;\u619d\u0100ai\u30d1\u30d5il;\u691ao\u0100;n\u30db\u30dc\u6236al\xf3\u0f1e\u0180abr\u30e7\u30ea\u30eer\xf2\u17e5rk;\u6773\u0100ak\u30f3\u30fdc\u0100ek\u30f9\u30fb;\u407d;\u405d\u0100es\u3102\u3104;\u698cl\u0100du\u310a\u310c;\u698e;\u6990\u0200aeuy\u3117\u311c\u3127\u3129ron;\u4159\u0100di\u3121\u3125il;\u4157\xec\u0ff2\xe2\u30fa;\u4440\u0200clqs\u3134\u3137\u313d\u3144a;\u6937dhar;\u6969uo\u0100;r\u020e\u020dh;\u61b3\u0180acg\u314e\u315f\u0f44l\u0200;ips\u0f78\u3158\u315b\u109cn\xe5\u10bbar\xf4\u0fa9t;\u65ad\u0180ilr\u3169\u1023\u316esht;\u697d;\uc000\ud835\udd2f\u0100ao\u3177\u3186r\u0100du\u317d\u317f\xbb\u047b\u0100;l\u1091\u3184;\u696c\u0100;v\u318b\u318c\u43c1;\u43f1\u0180gns\u3195\u31f9\u31fcht\u0300ahlrst\u31a4\u31b0\u31c2\u31d8\u31e4\u31eerrow\u0100;t\u0fdc\u31ada\xe9\u30c8arpoon\u0100du\u31bb\u31bfow\xee\u317ep\xbb\u1092eft\u0100ah\u31ca\u31d0rrow\xf3\u0feaarpoon\xf3\u0551ightarrows;\u61c9quigarro\xf7\u30cbhreetimes;\u62ccg;\u42daingdotse\xf1\u1f32\u0180ahm\u320d\u3210\u3213r\xf2\u0feaa\xf2\u0551;\u600foust\u0100;a\u321e\u321f\u63b1che\xbb\u321fmid;\u6aee\u0200abpt\u3232\u323d\u3240\u3252\u0100nr\u3237\u323ag;\u67edr;\u61fer\xeb\u1003\u0180afl\u3247\u324a\u324er;\u6986;\uc000\ud835\udd63us;\u6a2eimes;\u6a35\u0100ap\u325d\u3267r\u0100;g\u3263\u3264\u4029t;\u6994olint;\u6a12ar\xf2\u31e3\u0200achq\u327b\u3280\u10bc\u3285quo;\u603ar;\uc000\ud835\udcc7\u0100bu\u30fb\u328ao\u0100;r\u0214\u0213\u0180hir\u3297\u329b\u32a0re\xe5\u31f8mes;\u62cai\u0200;efl\u32aa\u1059\u1821\u32ab\u65b9tri;\u69celuhar;\u6968;\u611e\u0d61\u32d5\u32db\u32df\u332c\u3338\u3371\0\u337a\u33a4\0\0\u33ec\u33f0\0\u3428\u3448\u345a\u34ad\u34b1\u34ca\u34f1\0\u3616\0\0\u3633cute;\u415bqu\xef\u27ba\u0500;Eaceinpsy\u11ed\u32f3\u32f5\u32ff\u3302\u330b\u330f\u331f\u3326\u3329;\u6ab4\u01f0\u32fa\0\u32fc;\u6ab8on;\u4161u\xe5\u11fe\u0100;d\u11f3\u3307il;\u415frc;\u415d\u0180Eas\u3316\u3318\u331b;\u6ab6p;\u6abaim;\u62e9olint;\u6a13i\xed\u1204;\u4441ot\u0180;be\u3334\u1d47\u3335\u62c5;\u6a66\u0380Aacmstx\u3346\u334a\u3357\u335b\u335e\u3363\u336drr;\u61d8r\u0100hr\u3350\u3352\xeb\u2228\u0100;o\u0a36\u0a34t\u803b\xa7\u40a7i;\u403bwar;\u6929m\u0100in\u3369\xf0nu\xf3\xf1t;\u6736r\u0100;o\u3376\u2055\uc000\ud835\udd30\u0200acoy\u3382\u3386\u3391\u33a0rp;\u666f\u0100hy\u338b\u338fcy;\u4449;\u4448rt\u026d\u3399\0\0\u339ci\xe4\u1464ara\xec\u2e6f\u803b\xad\u40ad\u0100gm\u33a8\u33b4ma\u0180;fv\u33b1\u33b2\u33b2\u43c3;\u43c2\u0400;deglnpr\u12ab\u33c5\u33c9\u33ce\u33d6\u33de\u33e1\u33e6ot;\u6a6a\u0100;q\u12b1\u12b0\u0100;E\u33d3\u33d4\u6a9e;\u6aa0\u0100;E\u33db\u33dc\u6a9d;\u6a9fe;\u6246lus;\u6a24arr;\u6972ar\xf2\u113d\u0200aeit\u33f8\u3408\u340f\u3417\u0100ls\u33fd\u3404lsetm\xe9\u336ahp;\u6a33parsl;\u69e4\u0100dl\u1463\u3414e;\u6323\u0100;e\u341c\u341d\u6aaa\u0100;s\u3422\u3423\u6aac;\uc000\u2aac\ufe00\u0180flp\u342e\u3433\u3442tcy;\u444c\u0100;b\u3438\u3439\u402f\u0100;a\u343e\u343f\u69c4r;\u633ff;\uc000\ud835\udd64a\u0100dr\u344d\u0402es\u0100;u\u3454\u3455\u6660it\xbb\u3455\u0180csu\u3460\u3479\u349f\u0100au\u3465\u346fp\u0100;s\u1188\u346b;\uc000\u2293\ufe00p\u0100;s\u11b4\u3475;\uc000\u2294\ufe00u\u0100bp\u347f\u348f\u0180;es\u1197\u119c\u3486et\u0100;e\u1197\u348d\xf1\u119d\u0180;es\u11a8\u11ad\u3496et\u0100;e\u11a8\u349d\xf1\u11ae\u0180;af\u117b\u34a6\u05b0r\u0165\u34ab\u05b1\xbb\u117car\xf2\u1148\u0200cemt\u34b9\u34be\u34c2\u34c5r;\uc000\ud835\udcc8tm\xee\xf1i\xec\u3415ar\xe6\u11be\u0100ar\u34ce\u34d5r\u0100;f\u34d4\u17bf\u6606\u0100an\u34da\u34edight\u0100ep\u34e3\u34eapsilo\xee\u1ee0h\xe9\u2eafs\xbb\u2852\u0280bcmnp\u34fb\u355e\u1209\u358b\u358e\u0480;Edemnprs\u350e\u350f\u3511\u3515\u351e\u3523\u352c\u3531\u3536\u6282;\u6ac5ot;\u6abd\u0100;d\u11da\u351aot;\u6ac3ult;\u6ac1\u0100Ee\u3528\u352a;\u6acb;\u628alus;\u6abfarr;\u6979\u0180eiu\u353d\u3552\u3555t\u0180;en\u350e\u3545\u354bq\u0100;q\u11da\u350feq\u0100;q\u352b\u3528m;\u6ac7\u0100bp\u355a\u355c;\u6ad5;\u6ad3c\u0300;acens\u11ed\u356c\u3572\u3579\u357b\u3326ppro\xf8\u32faurlye\xf1\u11fe\xf1\u11f3\u0180aes\u3582\u3588\u331bppro\xf8\u331aq\xf1\u3317g;\u666a\u0680123;Edehlmnps\u35a9\u35ac\u35af\u121c\u35b2\u35b4\u35c0\u35c9\u35d5\u35da\u35df\u35e8\u35ed\u803b\xb9\u40b9\u803b\xb2\u40b2\u803b\xb3\u40b3;\u6ac6\u0100os\u35b9\u35bct;\u6abeub;\u6ad8\u0100;d\u1222\u35c5ot;\u6ac4s\u0100ou\u35cf\u35d2l;\u67c9b;\u6ad7arr;\u697bult;\u6ac2\u0100Ee\u35e4\u35e6;\u6acc;\u628blus;\u6ac0\u0180eiu\u35f4\u3609\u360ct\u0180;en\u121c\u35fc\u3602q\u0100;q\u1222\u35b2eq\u0100;q\u35e7\u35e4m;\u6ac8\u0100bp\u3611\u3613;\u6ad4;\u6ad6\u0180Aan\u361c\u3620\u362drr;\u61d9r\u0100hr\u3626\u3628\xeb\u222e\u0100;o\u0a2b\u0a29war;\u692alig\u803b\xdf\u40df\u0be1\u3651\u365d\u3660\u12ce\u3673\u3679\0\u367e\u36c2\0\0\0\0\0\u36db\u3703\0\u3709\u376c\0\0\0\u3787\u0272\u3656\0\0\u365bget;\u6316;\u43c4r\xeb\u0e5f\u0180aey\u3666\u366b\u3670ron;\u4165dil;\u4163;\u4442lrec;\u6315r;\uc000\ud835\udd31\u0200eiko\u3686\u369d\u36b5\u36bc\u01f2\u368b\0\u3691e\u01004f\u1284\u1281a\u0180;sv\u3698\u3699\u369b\u43b8ym;\u43d1\u0100cn\u36a2\u36b2k\u0100as\u36a8\u36aeppro\xf8\u12c1im\xbb\u12acs\xf0\u129e\u0100as\u36ba\u36ae\xf0\u12c1rn\u803b\xfe\u40fe\u01ec\u031f\u36c6\u22e7es\u8180\xd7;bd\u36cf\u36d0\u36d8\u40d7\u0100;a\u190f\u36d5r;\u6a31;\u6a30\u0180eps\u36e1\u36e3\u3700\xe1\u2a4d\u0200;bcf\u0486\u36ec\u36f0\u36f4ot;\u6336ir;\u6af1\u0100;o\u36f9\u36fc\uc000\ud835\udd65rk;\u6ada\xe1\u3362rime;\u6034\u0180aip\u370f\u3712\u3764d\xe5\u1248\u0380adempst\u3721\u374d\u3740\u3751\u3757\u375c\u375fngle\u0280;dlqr\u3730\u3731\u3736\u3740\u3742\u65b5own\xbb\u1dbbeft\u0100;e\u2800\u373e\xf1\u092e;\u625cight\u0100;e\u32aa\u374b\xf1\u105aot;\u65ecinus;\u6a3alus;\u6a39b;\u69cdime;\u6a3bezium;\u63e2\u0180cht\u3772\u377d\u3781\u0100ry\u3777\u377b;\uc000\ud835\udcc9;\u4446cy;\u445brok;\u4167\u0100io\u378b\u378ex\xf4\u1777head\u0100lr\u3797\u37a0eftarro\xf7\u084fightarrow\xbb\u0f5d\u0900AHabcdfghlmoprstuw\u37d0\u37d3\u37d7\u37e4\u37f0\u37fc\u380e\u381c\u3823\u3834\u3851\u385d\u386b\u38a9\u38cc\u38d2\u38ea\u38f6r\xf2\u03edar;\u6963\u0100cr\u37dc\u37e2ute\u803b\xfa\u40fa\xf2\u1150r\u01e3\u37ea\0\u37edy;\u445eve;\u416d\u0100iy\u37f5\u37farc\u803b\xfb\u40fb;\u4443\u0180abh\u3803\u3806\u380br\xf2\u13adlac;\u4171a\xf2\u13c3\u0100ir\u3813\u3818sht;\u697e;\uc000\ud835\udd32rave\u803b\xf9\u40f9\u0161\u3827\u3831r\u0100lr\u382c\u382e\xbb\u0957\xbb\u1083lk;\u6580\u0100ct\u3839\u384d\u026f\u383f\0\0\u384arn\u0100;e\u3845\u3846\u631cr\xbb\u3846op;\u630fri;\u65f8\u0100al\u3856\u385acr;\u416b\u80bb\xa8\u0349\u0100gp\u3862\u3866on;\u4173f;\uc000\ud835\udd66\u0300adhlsu\u114b\u3878\u387d\u1372\u3891\u38a0own\xe1\u13b3arpoon\u0100lr\u3888\u388cef\xf4\u382digh\xf4\u382fi\u0180;hl\u3899\u389a\u389c\u43c5\xbb\u13faon\xbb\u389aparrows;\u61c8\u0180cit\u38b0\u38c4\u38c8\u026f\u38b6\0\0\u38c1rn\u0100;e\u38bc\u38bd\u631dr\xbb\u38bdop;\u630eng;\u416fri;\u65f9cr;\uc000\ud835\udcca\u0180dir\u38d9\u38dd\u38e2ot;\u62f0lde;\u4169i\u0100;f\u3730\u38e8\xbb\u1813\u0100am\u38ef\u38f2r\xf2\u38a8l\u803b\xfc\u40fcangle;\u69a7\u0780ABDacdeflnoprsz\u391c\u391f\u3929\u392d\u39b5\u39b8\u39bd\u39df\u39e4\u39e8\u39f3\u39f9\u39fd\u3a01\u3a20r\xf2\u03f7ar\u0100;v\u3926\u3927\u6ae8;\u6ae9as\xe8\u03e1\u0100nr\u3932\u3937grt;\u699c\u0380eknprst\u34e3\u3946\u394b\u3952\u395d\u3964\u3996app\xe1\u2415othin\xe7\u1e96\u0180hir\u34eb\u2ec8\u3959op\xf4\u2fb5\u0100;h\u13b7\u3962\xef\u318d\u0100iu\u3969\u396dgm\xe1\u33b3\u0100bp\u3972\u3984setneq\u0100;q\u397d\u3980\uc000\u228a\ufe00;\uc000\u2acb\ufe00setneq\u0100;q\u398f\u3992\uc000\u228b\ufe00;\uc000\u2acc\ufe00\u0100hr\u399b\u399fet\xe1\u369ciangle\u0100lr\u39aa\u39afeft\xbb\u0925ight\xbb\u1051y;\u4432ash\xbb\u1036\u0180elr\u39c4\u39d2\u39d7\u0180;be\u2dea\u39cb\u39cfar;\u62bbq;\u625alip;\u62ee\u0100bt\u39dc\u1468a\xf2\u1469r;\uc000\ud835\udd33tr\xe9\u39aesu\u0100bp\u39ef\u39f1\xbb\u0d1c\xbb\u0d59pf;\uc000\ud835\udd67ro\xf0\u0efbtr\xe9\u39b4\u0100cu\u3a06\u3a0br;\uc000\ud835\udccb\u0100bp\u3a10\u3a18n\u0100Ee\u3980\u3a16\xbb\u397en\u0100Ee\u3992\u3a1e\xbb\u3990igzag;\u699a\u0380cefoprs\u3a36\u3a3b\u3a56\u3a5b\u3a54\u3a61\u3a6airc;\u4175\u0100di\u3a40\u3a51\u0100bg\u3a45\u3a49ar;\u6a5fe\u0100;q\u15fa\u3a4f;\u6259erp;\u6118r;\uc000\ud835\udd34pf;\uc000\ud835\udd68\u0100;e\u1479\u3a66at\xe8\u1479cr;\uc000\ud835\udccc\u0ae3\u178e\u3a87\0\u3a8b\0\u3a90\u3a9b\0\0\u3a9d\u3aa8\u3aab\u3aaf\0\0\u3ac3\u3ace\0\u3ad8\u17dc\u17dftr\xe9\u17d1r;\uc000\ud835\udd35\u0100Aa\u3a94\u3a97r\xf2\u03c3r\xf2\u09f6;\u43be\u0100Aa\u3aa1\u3aa4r\xf2\u03b8r\xf2\u09eba\xf0\u2713is;\u62fb\u0180dpt\u17a4\u3ab5\u3abe\u0100fl\u3aba\u17a9;\uc000\ud835\udd69im\xe5\u17b2\u0100Aa\u3ac7\u3acar\xf2\u03cer\xf2\u0a01\u0100cq\u3ad2\u17b8r;\uc000\ud835\udccd\u0100pt\u17d6\u3adcr\xe9\u17d4\u0400acefiosu\u3af0\u3afd\u3b08\u3b0c\u3b11\u3b15\u3b1b\u3b21c\u0100uy\u3af6\u3afbte\u803b\xfd\u40fd;\u444f\u0100iy\u3b02\u3b06rc;\u4177;\u444bn\u803b\xa5\u40a5r;\uc000\ud835\udd36cy;\u4457pf;\uc000\ud835\udd6acr;\uc000\ud835\udcce\u0100cm\u3b26\u3b29y;\u444el\u803b\xff\u40ff\u0500acdefhiosw\u3b42\u3b48\u3b54\u3b58\u3b64\u3b69\u3b6d\u3b74\u3b7a\u3b80cute;\u417a\u0100ay\u3b4d\u3b52ron;\u417e;\u4437ot;\u417c\u0100et\u3b5d\u3b61tr\xe6\u155fa;\u43b6r;\uc000\ud835\udd37cy;\u4436grarr;\u61ddpf;\uc000\ud835\udd6bcr;\uc000\ud835\udccf\u0100jn\u3b85\u3b87;\u600dj;\u600c'.split("").map((e=>e.charCodeAt(0)))),te=new Uint16Array("\u0200aglq\t\x15\x18\x1b\u026d\x0f\0\0\x12p;\u4026os;\u4027t;\u403et;\u403cuot;\u4022".split("").map((e=>e.charCodeAt(0))));var ne;const re=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]),se=null!==(ne=String.fromCodePoint)&&void 0!==ne?ne:function(e){let t="";return e>65535&&(e-=65536,t+=String.fromCharCode(e>>>10&1023|55296),e=56320|1023&e),t+=String.fromCharCode(e),t};function ae(e){var t;return e>=55296&&e<=57343||e>1114111?65533:null!==(t=re.get(e))&&void 0!==t?t:e}var oe;!function(e){e[e.NUM=35]="NUM",e[e.SEMI=59]="SEMI",e[e.EQUALS=61]="EQUALS",e[e.ZERO=48]="ZERO",e[e.NINE=57]="NINE",e[e.LOWER_A=97]="LOWER_A",e[e.LOWER_F=102]="LOWER_F",e[e.LOWER_X=120]="LOWER_X",e[e.LOWER_Z=122]="LOWER_Z",e[e.UPPER_A=65]="UPPER_A",e[e.UPPER_F=70]="UPPER_F",e[e.UPPER_Z=90]="UPPER_Z"}(oe||(oe={}));var ie,ce,le;function ue(e){return e>=oe.ZERO&&e<=oe.NINE}function Ee(e){return e===oe.EQUALS||function(e){return e>=oe.UPPER_A&&e<=oe.UPPER_Z||e>=oe.LOWER_A&&e<=oe.LOWER_Z||ue(e)}(e)}!function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.BRANCH_LENGTH=16256]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"}(ie||(ie={})),function(e){e[e.EntityStart=0]="EntityStart",e[e.NumericStart=1]="NumericStart",e[e.NumericDecimal=2]="NumericDecimal",e[e.NumericHex=3]="NumericHex",e[e.NamedEntity=4]="NamedEntity"}(ce||(ce={})),function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"}(le||(le={}));class he{constructor(e,t,n){this.decodeTree=e,this.emitCodePoint=t,this.errors=n,this.state=ce.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=le.Strict}startEntity(e){this.decodeMode=e,this.state=ce.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(e,t){switch(this.state){case ce.EntityStart:return e.charCodeAt(t)===oe.NUM?(this.state=ce.NumericStart,this.consumed+=1,this.stateNumericStart(e,t+1)):(this.state=ce.NamedEntity,this.stateNamedEntity(e,t));case ce.NumericStart:return this.stateNumericStart(e,t);case ce.NumericDecimal:return this.stateNumericDecimal(e,t);case ce.NumericHex:return this.stateNumericHex(e,t);case ce.NamedEntity:return this.stateNamedEntity(e,t)}}stateNumericStart(e,t){return t>=e.length?-1:(32|e.charCodeAt(t))===oe.LOWER_X?(this.state=ce.NumericHex,this.consumed+=1,this.stateNumericHex(e,t+1)):(this.state=ce.NumericDecimal,this.stateNumericDecimal(e,t))}addToNumericResult(e,t,n,r){if(t!==n){const s=n-t;this.result=this.result*Math.pow(r,s)+parseInt(e.substr(t,s),r),this.consumed+=s}}stateNumericHex(e,t){const n=t;for(;t=oe.UPPER_A&&r<=oe.UPPER_F||r>=oe.LOWER_A&&r<=oe.LOWER_F)))return this.addToNumericResult(e,n,t,16),this.emitNumericEntity(s,3);t+=1}var r;return this.addToNumericResult(e,n,t,16),-1}stateNumericDecimal(e,t){const n=t;for(;t>14;for(;t>14,0!==s){if(a===oe.SEMI)return this.emitNamedEntityData(this.treeIndex,s,this.consumed+this.excess);this.decodeMode!==le.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var e;const{result:t,decodeTree:n}=this,r=(n[t]&ie.VALUE_LENGTH)>>14;return this.emitNamedEntityData(t,r,this.consumed),null===(e=this.errors)||void 0===e||e.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(e,t,n){const{decodeTree:r}=this;return this.emitCodePoint(1===t?r[e]&~ie.VALUE_LENGTH:r[e+1],n),3===t&&this.emitCodePoint(r[e+2],n),n}end(){var e;switch(this.state){case ce.NamedEntity:return 0===this.result||this.decodeMode===le.Attribute&&this.result!==this.treeIndex?0:this.emitNotTerminatedNamedEntity();case ce.NumericDecimal:return this.emitNumericEntity(0,2);case ce.NumericHex:return this.emitNumericEntity(0,3);case ce.NumericStart:return null===(e=this.errors)||void 0===e||e.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case ce.EntityStart:return 0}}}function Te(e){let t="";const n=new he(e,(e=>t+=se(e)));return function(e,r){let s=0,a=0;for(;(a=e.indexOf("&",a))>=0;){t+=e.slice(s,a),n.startEntity(r);const o=n.write(e,a+1);if(o<0){s=a+n.end();break}s=a+o,a=0===o?s+1:s}const o=t+e.slice(s);return t="",o}}function pe(e,t,n,r){const s=(t&ie.BRANCH_LENGTH)>>7,a=t&ie.JUMP_TABLE;if(0===s)return 0!==a&&r===a?n:-1;if(a){const t=r-a;return t<0||t>=s?-1:e[n+t]-1}let o=n,i=o+s-1;for(;o<=i;){const t=o+i>>>1,n=e[t];if(nr))return e[t+s];i=t-1}}return-1}Te(ee),Te(te);var me,de,Ae,_e,fe;!function(e){e.HTML="http://www.w3.org/1999/xhtml",e.MATHML="http://www.w3.org/1998/Math/MathML",e.SVG="http://www.w3.org/2000/svg",e.XLINK="http://www.w3.org/1999/xlink",e.XML="http://www.w3.org/XML/1998/namespace",e.XMLNS="http://www.w3.org/2000/xmlns/"}(me=me||(me={})),function(e){e.TYPE="type",e.ACTION="action",e.ENCODING="encoding",e.PROMPT="prompt",e.NAME="name",e.COLOR="color",e.FACE="face",e.SIZE="size"}(de=de||(de={})),function(e){e.NO_QUIRKS="no-quirks",e.QUIRKS="quirks",e.LIMITED_QUIRKS="limited-quirks"}(Ae=Ae||(Ae={})),function(e){e.A="a",e.ADDRESS="address",e.ANNOTATION_XML="annotation-xml",e.APPLET="applet",e.AREA="area",e.ARTICLE="article",e.ASIDE="aside",e.B="b",e.BASE="base",e.BASEFONT="basefont",e.BGSOUND="bgsound",e.BIG="big",e.BLOCKQUOTE="blockquote",e.BODY="body",e.BR="br",e.BUTTON="button",e.CAPTION="caption",e.CENTER="center",e.CODE="code",e.COL="col",e.COLGROUP="colgroup",e.DD="dd",e.DESC="desc",e.DETAILS="details",e.DIALOG="dialog",e.DIR="dir",e.DIV="div",e.DL="dl",e.DT="dt",e.EM="em",e.EMBED="embed",e.FIELDSET="fieldset",e.FIGCAPTION="figcaption",e.FIGURE="figure",e.FONT="font",e.FOOTER="footer",e.FOREIGN_OBJECT="foreignObject",e.FORM="form",e.FRAME="frame",e.FRAMESET="frameset",e.H1="h1",e.H2="h2",e.H3="h3",e.H4="h4",e.H5="h5",e.H6="h6",e.HEAD="head",e.HEADER="header",e.HGROUP="hgroup",e.HR="hr",e.HTML="html",e.I="i",e.IMG="img",e.IMAGE="image",e.INPUT="input",e.IFRAME="iframe",e.KEYGEN="keygen",e.LABEL="label",e.LI="li",e.LINK="link",e.LISTING="listing",e.MAIN="main",e.MALIGNMARK="malignmark",e.MARQUEE="marquee",e.MATH="math",e.MENU="menu",e.META="meta",e.MGLYPH="mglyph",e.MI="mi",e.MO="mo",e.MN="mn",e.MS="ms",e.MTEXT="mtext",e.NAV="nav",e.NOBR="nobr",e.NOFRAMES="noframes",e.NOEMBED="noembed",e.NOSCRIPT="noscript",e.OBJECT="object",e.OL="ol",e.OPTGROUP="optgroup",e.OPTION="option",e.P="p",e.PARAM="param",e.PLAINTEXT="plaintext",e.PRE="pre",e.RB="rb",e.RP="rp",e.RT="rt",e.RTC="rtc",e.RUBY="ruby",e.S="s",e.SCRIPT="script",e.SECTION="section",e.SELECT="select",e.SOURCE="source",e.SMALL="small",e.SPAN="span",e.STRIKE="strike",e.STRONG="strong",e.STYLE="style",e.SUB="sub",e.SUMMARY="summary",e.SUP="sup",e.TABLE="table",e.TBODY="tbody",e.TEMPLATE="template",e.TEXTAREA="textarea",e.TFOOT="tfoot",e.TD="td",e.TH="th",e.THEAD="thead",e.TITLE="title",e.TR="tr",e.TRACK="track",e.TT="tt",e.U="u",e.UL="ul",e.SVG="svg",e.VAR="var",e.WBR="wbr",e.XMP="xmp"}(_e=_e||(_e={})),function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.A=1]="A",e[e.ADDRESS=2]="ADDRESS",e[e.ANNOTATION_XML=3]="ANNOTATION_XML",e[e.APPLET=4]="APPLET",e[e.AREA=5]="AREA",e[e.ARTICLE=6]="ARTICLE",e[e.ASIDE=7]="ASIDE",e[e.B=8]="B",e[e.BASE=9]="BASE",e[e.BASEFONT=10]="BASEFONT",e[e.BGSOUND=11]="BGSOUND",e[e.BIG=12]="BIG",e[e.BLOCKQUOTE=13]="BLOCKQUOTE",e[e.BODY=14]="BODY",e[e.BR=15]="BR",e[e.BUTTON=16]="BUTTON",e[e.CAPTION=17]="CAPTION",e[e.CENTER=18]="CENTER",e[e.CODE=19]="CODE",e[e.COL=20]="COL",e[e.COLGROUP=21]="COLGROUP",e[e.DD=22]="DD",e[e.DESC=23]="DESC",e[e.DETAILS=24]="DETAILS",e[e.DIALOG=25]="DIALOG",e[e.DIR=26]="DIR",e[e.DIV=27]="DIV",e[e.DL=28]="DL",e[e.DT=29]="DT",e[e.EM=30]="EM",e[e.EMBED=31]="EMBED",e[e.FIELDSET=32]="FIELDSET",e[e.FIGCAPTION=33]="FIGCAPTION",e[e.FIGURE=34]="FIGURE",e[e.FONT=35]="FONT",e[e.FOOTER=36]="FOOTER",e[e.FOREIGN_OBJECT=37]="FOREIGN_OBJECT",e[e.FORM=38]="FORM",e[e.FRAME=39]="FRAME",e[e.FRAMESET=40]="FRAMESET",e[e.H1=41]="H1",e[e.H2=42]="H2",e[e.H3=43]="H3",e[e.H4=44]="H4",e[e.H5=45]="H5",e[e.H6=46]="H6",e[e.HEAD=47]="HEAD",e[e.HEADER=48]="HEADER",e[e.HGROUP=49]="HGROUP",e[e.HR=50]="HR",e[e.HTML=51]="HTML",e[e.I=52]="I",e[e.IMG=53]="IMG",e[e.IMAGE=54]="IMAGE",e[e.INPUT=55]="INPUT",e[e.IFRAME=56]="IFRAME",e[e.KEYGEN=57]="KEYGEN",e[e.LABEL=58]="LABEL",e[e.LI=59]="LI",e[e.LINK=60]="LINK",e[e.LISTING=61]="LISTING",e[e.MAIN=62]="MAIN",e[e.MALIGNMARK=63]="MALIGNMARK",e[e.MARQUEE=64]="MARQUEE",e[e.MATH=65]="MATH",e[e.MENU=66]="MENU",e[e.META=67]="META",e[e.MGLYPH=68]="MGLYPH",e[e.MI=69]="MI",e[e.MO=70]="MO",e[e.MN=71]="MN",e[e.MS=72]="MS",e[e.MTEXT=73]="MTEXT",e[e.NAV=74]="NAV",e[e.NOBR=75]="NOBR",e[e.NOFRAMES=76]="NOFRAMES",e[e.NOEMBED=77]="NOEMBED",e[e.NOSCRIPT=78]="NOSCRIPT",e[e.OBJECT=79]="OBJECT",e[e.OL=80]="OL",e[e.OPTGROUP=81]="OPTGROUP",e[e.OPTION=82]="OPTION",e[e.P=83]="P",e[e.PARAM=84]="PARAM",e[e.PLAINTEXT=85]="PLAINTEXT",e[e.PRE=86]="PRE",e[e.RB=87]="RB",e[e.RP=88]="RP",e[e.RT=89]="RT",e[e.RTC=90]="RTC",e[e.RUBY=91]="RUBY",e[e.S=92]="S",e[e.SCRIPT=93]="SCRIPT",e[e.SECTION=94]="SECTION",e[e.SELECT=95]="SELECT",e[e.SOURCE=96]="SOURCE",e[e.SMALL=97]="SMALL",e[e.SPAN=98]="SPAN",e[e.STRIKE=99]="STRIKE",e[e.STRONG=100]="STRONG",e[e.STYLE=101]="STYLE",e[e.SUB=102]="SUB",e[e.SUMMARY=103]="SUMMARY",e[e.SUP=104]="SUP",e[e.TABLE=105]="TABLE",e[e.TBODY=106]="TBODY",e[e.TEMPLATE=107]="TEMPLATE",e[e.TEXTAREA=108]="TEXTAREA",e[e.TFOOT=109]="TFOOT",e[e.TD=110]="TD",e[e.TH=111]="TH",e[e.THEAD=112]="THEAD",e[e.TITLE=113]="TITLE",e[e.TR=114]="TR",e[e.TRACK=115]="TRACK",e[e.TT=116]="TT",e[e.U=117]="U",e[e.UL=118]="UL",e[e.SVG=119]="SVG",e[e.VAR=120]="VAR",e[e.WBR=121]="WBR",e[e.XMP=122]="XMP"}(fe=fe||(fe={}));const Ne=new Map([[_e.A,fe.A],[_e.ADDRESS,fe.ADDRESS],[_e.ANNOTATION_XML,fe.ANNOTATION_XML],[_e.APPLET,fe.APPLET],[_e.AREA,fe.AREA],[_e.ARTICLE,fe.ARTICLE],[_e.ASIDE,fe.ASIDE],[_e.B,fe.B],[_e.BASE,fe.BASE],[_e.BASEFONT,fe.BASEFONT],[_e.BGSOUND,fe.BGSOUND],[_e.BIG,fe.BIG],[_e.BLOCKQUOTE,fe.BLOCKQUOTE],[_e.BODY,fe.BODY],[_e.BR,fe.BR],[_e.BUTTON,fe.BUTTON],[_e.CAPTION,fe.CAPTION],[_e.CENTER,fe.CENTER],[_e.CODE,fe.CODE],[_e.COL,fe.COL],[_e.COLGROUP,fe.COLGROUP],[_e.DD,fe.DD],[_e.DESC,fe.DESC],[_e.DETAILS,fe.DETAILS],[_e.DIALOG,fe.DIALOG],[_e.DIR,fe.DIR],[_e.DIV,fe.DIV],[_e.DL,fe.DL],[_e.DT,fe.DT],[_e.EM,fe.EM],[_e.EMBED,fe.EMBED],[_e.FIELDSET,fe.FIELDSET],[_e.FIGCAPTION,fe.FIGCAPTION],[_e.FIGURE,fe.FIGURE],[_e.FONT,fe.FONT],[_e.FOOTER,fe.FOOTER],[_e.FOREIGN_OBJECT,fe.FOREIGN_OBJECT],[_e.FORM,fe.FORM],[_e.FRAME,fe.FRAME],[_e.FRAMESET,fe.FRAMESET],[_e.H1,fe.H1],[_e.H2,fe.H2],[_e.H3,fe.H3],[_e.H4,fe.H4],[_e.H5,fe.H5],[_e.H6,fe.H6],[_e.HEAD,fe.HEAD],[_e.HEADER,fe.HEADER],[_e.HGROUP,fe.HGROUP],[_e.HR,fe.HR],[_e.HTML,fe.HTML],[_e.I,fe.I],[_e.IMG,fe.IMG],[_e.IMAGE,fe.IMAGE],[_e.INPUT,fe.INPUT],[_e.IFRAME,fe.IFRAME],[_e.KEYGEN,fe.KEYGEN],[_e.LABEL,fe.LABEL],[_e.LI,fe.LI],[_e.LINK,fe.LINK],[_e.LISTING,fe.LISTING],[_e.MAIN,fe.MAIN],[_e.MALIGNMARK,fe.MALIGNMARK],[_e.MARQUEE,fe.MARQUEE],[_e.MATH,fe.MATH],[_e.MENU,fe.MENU],[_e.META,fe.META],[_e.MGLYPH,fe.MGLYPH],[_e.MI,fe.MI],[_e.MO,fe.MO],[_e.MN,fe.MN],[_e.MS,fe.MS],[_e.MTEXT,fe.MTEXT],[_e.NAV,fe.NAV],[_e.NOBR,fe.NOBR],[_e.NOFRAMES,fe.NOFRAMES],[_e.NOEMBED,fe.NOEMBED],[_e.NOSCRIPT,fe.NOSCRIPT],[_e.OBJECT,fe.OBJECT],[_e.OL,fe.OL],[_e.OPTGROUP,fe.OPTGROUP],[_e.OPTION,fe.OPTION],[_e.P,fe.P],[_e.PARAM,fe.PARAM],[_e.PLAINTEXT,fe.PLAINTEXT],[_e.PRE,fe.PRE],[_e.RB,fe.RB],[_e.RP,fe.RP],[_e.RT,fe.RT],[_e.RTC,fe.RTC],[_e.RUBY,fe.RUBY],[_e.S,fe.S],[_e.SCRIPT,fe.SCRIPT],[_e.SECTION,fe.SECTION],[_e.SELECT,fe.SELECT],[_e.SOURCE,fe.SOURCE],[_e.SMALL,fe.SMALL],[_e.SPAN,fe.SPAN],[_e.STRIKE,fe.STRIKE],[_e.STRONG,fe.STRONG],[_e.STYLE,fe.STYLE],[_e.SUB,fe.SUB],[_e.SUMMARY,fe.SUMMARY],[_e.SUP,fe.SUP],[_e.TABLE,fe.TABLE],[_e.TBODY,fe.TBODY],[_e.TEMPLATE,fe.TEMPLATE],[_e.TEXTAREA,fe.TEXTAREA],[_e.TFOOT,fe.TFOOT],[_e.TD,fe.TD],[_e.TH,fe.TH],[_e.THEAD,fe.THEAD],[_e.TITLE,fe.TITLE],[_e.TR,fe.TR],[_e.TRACK,fe.TRACK],[_e.TT,fe.TT],[_e.U,fe.U],[_e.UL,fe.UL],[_e.SVG,fe.SVG],[_e.VAR,fe.VAR],[_e.WBR,fe.WBR],[_e.XMP,fe.XMP]]);function ge(e){var t;return null!==(t=Ne.get(e))&&void 0!==t?t:fe.UNKNOWN}const Ce=fe,Ie={[me.HTML]:new Set([Ce.ADDRESS,Ce.APPLET,Ce.AREA,Ce.ARTICLE,Ce.ASIDE,Ce.BASE,Ce.BASEFONT,Ce.BGSOUND,Ce.BLOCKQUOTE,Ce.BODY,Ce.BR,Ce.BUTTON,Ce.CAPTION,Ce.CENTER,Ce.COL,Ce.COLGROUP,Ce.DD,Ce.DETAILS,Ce.DIR,Ce.DIV,Ce.DL,Ce.DT,Ce.EMBED,Ce.FIELDSET,Ce.FIGCAPTION,Ce.FIGURE,Ce.FOOTER,Ce.FORM,Ce.FRAME,Ce.FRAMESET,Ce.H1,Ce.H2,Ce.H3,Ce.H4,Ce.H5,Ce.H6,Ce.HEAD,Ce.HEADER,Ce.HGROUP,Ce.HR,Ce.HTML,Ce.IFRAME,Ce.IMG,Ce.INPUT,Ce.LI,Ce.LINK,Ce.LISTING,Ce.MAIN,Ce.MARQUEE,Ce.MENU,Ce.META,Ce.NAV,Ce.NOEMBED,Ce.NOFRAMES,Ce.NOSCRIPT,Ce.OBJECT,Ce.OL,Ce.P,Ce.PARAM,Ce.PLAINTEXT,Ce.PRE,Ce.SCRIPT,Ce.SECTION,Ce.SELECT,Ce.SOURCE,Ce.STYLE,Ce.SUMMARY,Ce.TABLE,Ce.TBODY,Ce.TD,Ce.TEMPLATE,Ce.TEXTAREA,Ce.TFOOT,Ce.TH,Ce.THEAD,Ce.TITLE,Ce.TR,Ce.TRACK,Ce.UL,Ce.WBR,Ce.XMP]),[me.MATHML]:new Set([Ce.MI,Ce.MO,Ce.MN,Ce.MS,Ce.MTEXT,Ce.ANNOTATION_XML]),[me.SVG]:new Set([Ce.TITLE,Ce.FOREIGN_OBJECT,Ce.DESC]),[me.XLINK]:new Set,[me.XML]:new Set,[me.XMLNS]:new Set};function Se(e){return e===Ce.H1||e===Ce.H2||e===Ce.H3||e===Ce.H4||e===Ce.H5||e===Ce.H6}new Set([_e.STYLE,_e.SCRIPT,_e.XMP,_e.IFRAME,_e.NOEMBED,_e.NOFRAMES,_e.PLAINTEXT]);const Re=new Map([[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]);var De;!function(e){e[e.DATA=0]="DATA",e[e.RCDATA=1]="RCDATA",e[e.RAWTEXT=2]="RAWTEXT",e[e.SCRIPT_DATA=3]="SCRIPT_DATA",e[e.PLAINTEXT=4]="PLAINTEXT",e[e.TAG_OPEN=5]="TAG_OPEN",e[e.END_TAG_OPEN=6]="END_TAG_OPEN",e[e.TAG_NAME=7]="TAG_NAME",e[e.RCDATA_LESS_THAN_SIGN=8]="RCDATA_LESS_THAN_SIGN",e[e.RCDATA_END_TAG_OPEN=9]="RCDATA_END_TAG_OPEN",e[e.RCDATA_END_TAG_NAME=10]="RCDATA_END_TAG_NAME",e[e.RAWTEXT_LESS_THAN_SIGN=11]="RAWTEXT_LESS_THAN_SIGN",e[e.RAWTEXT_END_TAG_OPEN=12]="RAWTEXT_END_TAG_OPEN",e[e.RAWTEXT_END_TAG_NAME=13]="RAWTEXT_END_TAG_NAME",e[e.SCRIPT_DATA_LESS_THAN_SIGN=14]="SCRIPT_DATA_LESS_THAN_SIGN",e[e.SCRIPT_DATA_END_TAG_OPEN=15]="SCRIPT_DATA_END_TAG_OPEN",e[e.SCRIPT_DATA_END_TAG_NAME=16]="SCRIPT_DATA_END_TAG_NAME",e[e.SCRIPT_DATA_ESCAPE_START=17]="SCRIPT_DATA_ESCAPE_START",e[e.SCRIPT_DATA_ESCAPE_START_DASH=18]="SCRIPT_DATA_ESCAPE_START_DASH",e[e.SCRIPT_DATA_ESCAPED=19]="SCRIPT_DATA_ESCAPED",e[e.SCRIPT_DATA_ESCAPED_DASH=20]="SCRIPT_DATA_ESCAPED_DASH",e[e.SCRIPT_DATA_ESCAPED_DASH_DASH=21]="SCRIPT_DATA_ESCAPED_DASH_DASH",e[e.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN=22]="SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN",e[e.SCRIPT_DATA_ESCAPED_END_TAG_OPEN=23]="SCRIPT_DATA_ESCAPED_END_TAG_OPEN",e[e.SCRIPT_DATA_ESCAPED_END_TAG_NAME=24]="SCRIPT_DATA_ESCAPED_END_TAG_NAME",e[e.SCRIPT_DATA_DOUBLE_ESCAPE_START=25]="SCRIPT_DATA_DOUBLE_ESCAPE_START",e[e.SCRIPT_DATA_DOUBLE_ESCAPED=26]="SCRIPT_DATA_DOUBLE_ESCAPED",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_DASH=27]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH=28]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN=29]="SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN",e[e.SCRIPT_DATA_DOUBLE_ESCAPE_END=30]="SCRIPT_DATA_DOUBLE_ESCAPE_END",e[e.BEFORE_ATTRIBUTE_NAME=31]="BEFORE_ATTRIBUTE_NAME",e[e.ATTRIBUTE_NAME=32]="ATTRIBUTE_NAME",e[e.AFTER_ATTRIBUTE_NAME=33]="AFTER_ATTRIBUTE_NAME",e[e.BEFORE_ATTRIBUTE_VALUE=34]="BEFORE_ATTRIBUTE_VALUE",e[e.ATTRIBUTE_VALUE_DOUBLE_QUOTED=35]="ATTRIBUTE_VALUE_DOUBLE_QUOTED",e[e.ATTRIBUTE_VALUE_SINGLE_QUOTED=36]="ATTRIBUTE_VALUE_SINGLE_QUOTED",e[e.ATTRIBUTE_VALUE_UNQUOTED=37]="ATTRIBUTE_VALUE_UNQUOTED",e[e.AFTER_ATTRIBUTE_VALUE_QUOTED=38]="AFTER_ATTRIBUTE_VALUE_QUOTED",e[e.SELF_CLOSING_START_TAG=39]="SELF_CLOSING_START_TAG",e[e.BOGUS_COMMENT=40]="BOGUS_COMMENT",e[e.MARKUP_DECLARATION_OPEN=41]="MARKUP_DECLARATION_OPEN",e[e.COMMENT_START=42]="COMMENT_START",e[e.COMMENT_START_DASH=43]="COMMENT_START_DASH",e[e.COMMENT=44]="COMMENT",e[e.COMMENT_LESS_THAN_SIGN=45]="COMMENT_LESS_THAN_SIGN",e[e.COMMENT_LESS_THAN_SIGN_BANG=46]="COMMENT_LESS_THAN_SIGN_BANG",e[e.COMMENT_LESS_THAN_SIGN_BANG_DASH=47]="COMMENT_LESS_THAN_SIGN_BANG_DASH",e[e.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH=48]="COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH",e[e.COMMENT_END_DASH=49]="COMMENT_END_DASH",e[e.COMMENT_END=50]="COMMENT_END",e[e.COMMENT_END_BANG=51]="COMMENT_END_BANG",e[e.DOCTYPE=52]="DOCTYPE",e[e.BEFORE_DOCTYPE_NAME=53]="BEFORE_DOCTYPE_NAME",e[e.DOCTYPE_NAME=54]="DOCTYPE_NAME",e[e.AFTER_DOCTYPE_NAME=55]="AFTER_DOCTYPE_NAME",e[e.AFTER_DOCTYPE_PUBLIC_KEYWORD=56]="AFTER_DOCTYPE_PUBLIC_KEYWORD",e[e.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER=57]="BEFORE_DOCTYPE_PUBLIC_IDENTIFIER",e[e.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED=58]="DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED",e[e.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED=59]="DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED",e[e.AFTER_DOCTYPE_PUBLIC_IDENTIFIER=60]="AFTER_DOCTYPE_PUBLIC_IDENTIFIER",e[e.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS=61]="BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS",e[e.AFTER_DOCTYPE_SYSTEM_KEYWORD=62]="AFTER_DOCTYPE_SYSTEM_KEYWORD",e[e.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER=63]="BEFORE_DOCTYPE_SYSTEM_IDENTIFIER",e[e.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED=64]="DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED",e[e.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED=65]="DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED",e[e.AFTER_DOCTYPE_SYSTEM_IDENTIFIER=66]="AFTER_DOCTYPE_SYSTEM_IDENTIFIER",e[e.BOGUS_DOCTYPE=67]="BOGUS_DOCTYPE",e[e.CDATA_SECTION=68]="CDATA_SECTION",e[e.CDATA_SECTION_BRACKET=69]="CDATA_SECTION_BRACKET",e[e.CDATA_SECTION_END=70]="CDATA_SECTION_END",e[e.CHARACTER_REFERENCE=71]="CHARACTER_REFERENCE",e[e.NAMED_CHARACTER_REFERENCE=72]="NAMED_CHARACTER_REFERENCE",e[e.AMBIGUOUS_AMPERSAND=73]="AMBIGUOUS_AMPERSAND",e[e.NUMERIC_CHARACTER_REFERENCE=74]="NUMERIC_CHARACTER_REFERENCE",e[e.HEXADEMICAL_CHARACTER_REFERENCE_START=75]="HEXADEMICAL_CHARACTER_REFERENCE_START",e[e.HEXADEMICAL_CHARACTER_REFERENCE=76]="HEXADEMICAL_CHARACTER_REFERENCE",e[e.DECIMAL_CHARACTER_REFERENCE=77]="DECIMAL_CHARACTER_REFERENCE",e[e.NUMERIC_CHARACTER_REFERENCE_END=78]="NUMERIC_CHARACTER_REFERENCE_END"}(De||(De={}));const Oe={DATA:De.DATA,RCDATA:De.RCDATA,RAWTEXT:De.RAWTEXT,SCRIPT_DATA:De.SCRIPT_DATA,PLAINTEXT:De.PLAINTEXT,CDATA_SECTION:De.CDATA_SECTION};function Le(e){return e>=x.DIGIT_0&&e<=x.DIGIT_9}function be(e){return e>=x.LATIN_CAPITAL_A&&e<=x.LATIN_CAPITAL_Z}function ke(e){return function(e){return e>=x.LATIN_SMALL_A&&e<=x.LATIN_SMALL_Z}(e)||be(e)}function Pe(e){return ke(e)||Le(e)}function Me(e){return e>=x.LATIN_CAPITAL_A&&e<=x.LATIN_CAPITAL_F}function ye(e){return e>=x.LATIN_SMALL_A&&e<=x.LATIN_SMALL_F}function Be(e){return e+32}function He(e){return e===x.SPACE||e===x.LINE_FEED||e===x.TABULATION||e===x.FORM_FEED}function Ue(e){return He(e)||e===x.SOLIDUS||e===x.GREATER_THAN_SIGN}class Fe{constructor(e,t){this.options=e,this.handler=t,this.paused=!1,this.inLoop=!1,this.inForeignNode=!1,this.lastStartTagName="",this.active=!1,this.state=De.DATA,this.returnState=De.DATA,this.charRefCode=-1,this.consumedAfterSnapshot=-1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr={name:"",value:""},this.preprocessor=new J(t),this.currentLocation=this.getCurrentLocation(-1)}_err(e){var t,n;null===(n=(t=this.handler).onParseError)||void 0===n||n.call(t,this.preprocessor.getError(e))}getCurrentLocation(e){return this.options.sourceCodeLocationInfo?{startLine:this.preprocessor.line,startCol:this.preprocessor.col-e,startOffset:this.preprocessor.offset-e,endLine:-1,endCol:-1,endOffset:-1}:null}_runParsingLoop(){if(!this.inLoop){for(this.inLoop=!0;this.active&&!this.paused;){this.consumedAfterSnapshot=0;const e=this._consume();this._ensureHibernation()||this._callState(e)}this.inLoop=!1}}pause(){this.paused=!0}resume(e){if(!this.paused)throw new Error("Parser was already resumed");this.paused=!1,this.inLoop||(this._runParsingLoop(),this.paused||null===e||void 0===e||e())}write(e,t,n){this.active=!0,this.preprocessor.write(e,t),this._runParsingLoop(),this.paused||null===n||void 0===n||n()}insertHtmlAtCurrentPos(e){this.active=!0,this.preprocessor.insertHtmlAtCurrentPos(e),this._runParsingLoop()}_ensureHibernation(){return!!this.preprocessor.endOfChunkHit&&(this._unconsume(this.consumedAfterSnapshot),this.active=!1,!0)}_consume(){return this.consumedAfterSnapshot++,this.preprocessor.advance()}_unconsume(e){this.consumedAfterSnapshot-=e,this.preprocessor.retreat(e)}_reconsumeInState(e,t){this.state=e,this._callState(t)}_advanceBy(e){this.consumedAfterSnapshot+=e;for(let t=0;t0&&this._err(j.endTagWithAttributes),e.selfClosing&&this._err(j.endTagWithTrailingSolidus),this.handler.onEndTag(e)),this.preprocessor.dropParsedChunk()}emitCurrentComment(e){this.prepareToken(e),this.handler.onComment(e),this.preprocessor.dropParsedChunk()}emitCurrentDoctype(e){this.prepareToken(e),this.handler.onDoctype(e),this.preprocessor.dropParsedChunk()}_emitCurrentCharacterToken(e){if(this.currentCharacterToken){switch(e&&this.currentCharacterToken.location&&(this.currentCharacterToken.location.endLine=e.startLine,this.currentCharacterToken.location.endCol=e.startCol,this.currentCharacterToken.location.endOffset=e.startOffset),this.currentCharacterToken.type){case Z.CHARACTER:this.handler.onCharacter(this.currentCharacterToken);break;case Z.NULL_CHARACTER:this.handler.onNullCharacter(this.currentCharacterToken);break;case Z.WHITESPACE_CHARACTER:this.handler.onWhitespaceCharacter(this.currentCharacterToken)}this.currentCharacterToken=null}}_emitEOFToken(){const e=this.getCurrentLocation(0);e&&(e.endLine=e.startLine,e.endCol=e.startCol,e.endOffset=e.startOffset),this._emitCurrentCharacterToken(e),this.handler.onEof({type:Z.EOF,location:e}),this.active=!1}_appendCharToCurrentCharacterToken(e,t){if(this.currentCharacterToken){if(this.currentCharacterToken.type===e)return void(this.currentCharacterToken.chars+=t);this.currentLocation=this.getCurrentLocation(0),this._emitCurrentCharacterToken(this.currentLocation),this.preprocessor.dropParsedChunk()}this._createCharacterToken(e,t)}_emitCodePoint(e){const t=He(e)?Z.WHITESPACE_CHARACTER:e===x.NULL?Z.NULL_CHARACTER:Z.CHARACTER;this._appendCharToCurrentCharacterToken(t,String.fromCodePoint(e))}_emitChars(e){this._appendCharToCurrentCharacterToken(Z.CHARACTER,e)}_matchNamedCharacterReference(e){let t=null,n=0,r=!1;for(let a=0,o=ee[0];a>=0&&(a=pe(ee,o,a+1,e),!(a<0));e=this._consume()){n+=1,o=ee[a];const i=o&ie.VALUE_LENGTH;if(i){const o=(i>>14)-1;if(e!==x.SEMICOLON&&this._isCharacterReferenceInAttribute()&&((s=this.preprocessor.peek(1))===x.EQUALS_SIGN||Pe(s))?(t=[x.AMPERSAND],a+=o):(t=0===o?[ee[a]&~ie.VALUE_LENGTH]:1===o?[ee[++a]]:[ee[++a],ee[++a]],n=0,r=e!==x.SEMICOLON),0===o){this._consume();break}}}var s;return this._unconsume(n),r&&!this.preprocessor.endOfChunkHit&&this._err(j.missingSemicolonAfterCharacterReference),this._unconsume(1),t}_isCharacterReferenceInAttribute(){return this.returnState===De.ATTRIBUTE_VALUE_DOUBLE_QUOTED||this.returnState===De.ATTRIBUTE_VALUE_SINGLE_QUOTED||this.returnState===De.ATTRIBUTE_VALUE_UNQUOTED}_flushCodePointConsumedAsCharacterReference(e){this._isCharacterReferenceInAttribute()?this.currentAttr.value+=String.fromCodePoint(e):this._emitCodePoint(e)}_callState(e){switch(this.state){case De.DATA:this._stateData(e);break;case De.RCDATA:this._stateRcdata(e);break;case De.RAWTEXT:this._stateRawtext(e);break;case De.SCRIPT_DATA:this._stateScriptData(e);break;case De.PLAINTEXT:this._statePlaintext(e);break;case De.TAG_OPEN:this._stateTagOpen(e);break;case De.END_TAG_OPEN:this._stateEndTagOpen(e);break;case De.TAG_NAME:this._stateTagName(e);break;case De.RCDATA_LESS_THAN_SIGN:this._stateRcdataLessThanSign(e);break;case De.RCDATA_END_TAG_OPEN:this._stateRcdataEndTagOpen(e);break;case De.RCDATA_END_TAG_NAME:this._stateRcdataEndTagName(e);break;case De.RAWTEXT_LESS_THAN_SIGN:this._stateRawtextLessThanSign(e);break;case De.RAWTEXT_END_TAG_OPEN:this._stateRawtextEndTagOpen(e);break;case De.RAWTEXT_END_TAG_NAME:this._stateRawtextEndTagName(e);break;case De.SCRIPT_DATA_LESS_THAN_SIGN:this._stateScriptDataLessThanSign(e);break;case De.SCRIPT_DATA_END_TAG_OPEN:this._stateScriptDataEndTagOpen(e);break;case De.SCRIPT_DATA_END_TAG_NAME:this._stateScriptDataEndTagName(e);break;case De.SCRIPT_DATA_ESCAPE_START:this._stateScriptDataEscapeStart(e);break;case De.SCRIPT_DATA_ESCAPE_START_DASH:this._stateScriptDataEscapeStartDash(e);break;case De.SCRIPT_DATA_ESCAPED:this._stateScriptDataEscaped(e);break;case De.SCRIPT_DATA_ESCAPED_DASH:this._stateScriptDataEscapedDash(e);break;case De.SCRIPT_DATA_ESCAPED_DASH_DASH:this._stateScriptDataEscapedDashDash(e);break;case De.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN:this._stateScriptDataEscapedLessThanSign(e);break;case De.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:this._stateScriptDataEscapedEndTagOpen(e);break;case De.SCRIPT_DATA_ESCAPED_END_TAG_NAME:this._stateScriptDataEscapedEndTagName(e);break;case De.SCRIPT_DATA_DOUBLE_ESCAPE_START:this._stateScriptDataDoubleEscapeStart(e);break;case De.SCRIPT_DATA_DOUBLE_ESCAPED:this._stateScriptDataDoubleEscaped(e);break;case De.SCRIPT_DATA_DOUBLE_ESCAPED_DASH:this._stateScriptDataDoubleEscapedDash(e);break;case De.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH:this._stateScriptDataDoubleEscapedDashDash(e);break;case De.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN:this._stateScriptDataDoubleEscapedLessThanSign(e);break;case De.SCRIPT_DATA_DOUBLE_ESCAPE_END:this._stateScriptDataDoubleEscapeEnd(e);break;case De.BEFORE_ATTRIBUTE_NAME:this._stateBeforeAttributeName(e);break;case De.ATTRIBUTE_NAME:this._stateAttributeName(e);break;case De.AFTER_ATTRIBUTE_NAME:this._stateAfterAttributeName(e);break;case De.BEFORE_ATTRIBUTE_VALUE:this._stateBeforeAttributeValue(e);break;case De.ATTRIBUTE_VALUE_DOUBLE_QUOTED:this._stateAttributeValueDoubleQuoted(e);break;case De.ATTRIBUTE_VALUE_SINGLE_QUOTED:this._stateAttributeValueSingleQuoted(e);break;case De.ATTRIBUTE_VALUE_UNQUOTED:this._stateAttributeValueUnquoted(e);break;case De.AFTER_ATTRIBUTE_VALUE_QUOTED:this._stateAfterAttributeValueQuoted(e);break;case De.SELF_CLOSING_START_TAG:this._stateSelfClosingStartTag(e);break;case De.BOGUS_COMMENT:this._stateBogusComment(e);break;case De.MARKUP_DECLARATION_OPEN:this._stateMarkupDeclarationOpen(e);break;case De.COMMENT_START:this._stateCommentStart(e);break;case De.COMMENT_START_DASH:this._stateCommentStartDash(e);break;case De.COMMENT:this._stateComment(e);break;case De.COMMENT_LESS_THAN_SIGN:this._stateCommentLessThanSign(e);break;case De.COMMENT_LESS_THAN_SIGN_BANG:this._stateCommentLessThanSignBang(e);break;case De.COMMENT_LESS_THAN_SIGN_BANG_DASH:this._stateCommentLessThanSignBangDash(e);break;case De.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:this._stateCommentLessThanSignBangDashDash(e);break;case De.COMMENT_END_DASH:this._stateCommentEndDash(e);break;case De.COMMENT_END:this._stateCommentEnd(e);break;case De.COMMENT_END_BANG:this._stateCommentEndBang(e);break;case De.DOCTYPE:this._stateDoctype(e);break;case De.BEFORE_DOCTYPE_NAME:this._stateBeforeDoctypeName(e);break;case De.DOCTYPE_NAME:this._stateDoctypeName(e);break;case De.AFTER_DOCTYPE_NAME:this._stateAfterDoctypeName(e);break;case De.AFTER_DOCTYPE_PUBLIC_KEYWORD:this._stateAfterDoctypePublicKeyword(e);break;case De.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER:this._stateBeforeDoctypePublicIdentifier(e);break;case De.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED:this._stateDoctypePublicIdentifierDoubleQuoted(e);break;case De.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED:this._stateDoctypePublicIdentifierSingleQuoted(e);break;case De.AFTER_DOCTYPE_PUBLIC_IDENTIFIER:this._stateAfterDoctypePublicIdentifier(e);break;case De.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS:this._stateBetweenDoctypePublicAndSystemIdentifiers(e);break;case De.AFTER_DOCTYPE_SYSTEM_KEYWORD:this._stateAfterDoctypeSystemKeyword(e);break;case De.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER:this._stateBeforeDoctypeSystemIdentifier(e);break;case De.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED:this._stateDoctypeSystemIdentifierDoubleQuoted(e);break;case De.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED:this._stateDoctypeSystemIdentifierSingleQuoted(e);break;case De.AFTER_DOCTYPE_SYSTEM_IDENTIFIER:this._stateAfterDoctypeSystemIdentifier(e);break;case De.BOGUS_DOCTYPE:this._stateBogusDoctype(e);break;case De.CDATA_SECTION:this._stateCdataSection(e);break;case De.CDATA_SECTION_BRACKET:this._stateCdataSectionBracket(e);break;case De.CDATA_SECTION_END:this._stateCdataSectionEnd(e);break;case De.CHARACTER_REFERENCE:this._stateCharacterReference(e);break;case De.NAMED_CHARACTER_REFERENCE:this._stateNamedCharacterReference(e);break;case De.AMBIGUOUS_AMPERSAND:this._stateAmbiguousAmpersand(e);break;case De.NUMERIC_CHARACTER_REFERENCE:this._stateNumericCharacterReference(e);break;case De.HEXADEMICAL_CHARACTER_REFERENCE_START:this._stateHexademicalCharacterReferenceStart(e);break;case De.HEXADEMICAL_CHARACTER_REFERENCE:this._stateHexademicalCharacterReference(e);break;case De.DECIMAL_CHARACTER_REFERENCE:this._stateDecimalCharacterReference(e);break;case De.NUMERIC_CHARACTER_REFERENCE_END:this._stateNumericCharacterReferenceEnd(e);break;default:throw new Error("Unknown state")}}_stateData(e){switch(e){case x.LESS_THAN_SIGN:this.state=De.TAG_OPEN;break;case x.AMPERSAND:this.returnState=De.DATA,this.state=De.CHARACTER_REFERENCE;break;case x.NULL:this._err(j.unexpectedNullCharacter),this._emitCodePoint(e);break;case x.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateRcdata(e){switch(e){case x.AMPERSAND:this.returnState=De.RCDATA,this.state=De.CHARACTER_REFERENCE;break;case x.LESS_THAN_SIGN:this.state=De.RCDATA_LESS_THAN_SIGN;break;case x.NULL:this._err(j.unexpectedNullCharacter),this._emitChars(w);break;case x.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateRawtext(e){switch(e){case x.LESS_THAN_SIGN:this.state=De.RAWTEXT_LESS_THAN_SIGN;break;case x.NULL:this._err(j.unexpectedNullCharacter),this._emitChars(w);break;case x.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateScriptData(e){switch(e){case x.LESS_THAN_SIGN:this.state=De.SCRIPT_DATA_LESS_THAN_SIGN;break;case x.NULL:this._err(j.unexpectedNullCharacter),this._emitChars(w);break;case x.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}_statePlaintext(e){switch(e){case x.NULL:this._err(j.unexpectedNullCharacter),this._emitChars(w);break;case x.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateTagOpen(e){if(ke(e))this._createStartTagToken(),this.state=De.TAG_NAME,this._stateTagName(e);else switch(e){case x.EXCLAMATION_MARK:this.state=De.MARKUP_DECLARATION_OPEN;break;case x.SOLIDUS:this.state=De.END_TAG_OPEN;break;case x.QUESTION_MARK:this._err(j.unexpectedQuestionMarkInsteadOfTagName),this._createCommentToken(1),this.state=De.BOGUS_COMMENT,this._stateBogusComment(e);break;case x.EOF:this._err(j.eofBeforeTagName),this._emitChars("<"),this._emitEOFToken();break;default:this._err(j.invalidFirstCharacterOfTagName),this._emitChars("<"),this.state=De.DATA,this._stateData(e)}}_stateEndTagOpen(e){if(ke(e))this._createEndTagToken(),this.state=De.TAG_NAME,this._stateTagName(e);else switch(e){case x.GREATER_THAN_SIGN:this._err(j.missingEndTagName),this.state=De.DATA;break;case x.EOF:this._err(j.eofBeforeTagName),this._emitChars("");break;case x.NULL:this._err(j.unexpectedNullCharacter),this.state=De.SCRIPT_DATA_ESCAPED,this._emitChars(w);break;case x.EOF:this._err(j.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this.state=De.SCRIPT_DATA_ESCAPED,this._emitCodePoint(e)}}_stateScriptDataEscapedLessThanSign(e){e===x.SOLIDUS?this.state=De.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:ke(e)?(this._emitChars("<"),this.state=De.SCRIPT_DATA_DOUBLE_ESCAPE_START,this._stateScriptDataDoubleEscapeStart(e)):(this._emitChars("<"),this.state=De.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(e))}_stateScriptDataEscapedEndTagOpen(e){ke(e)?(this.state=De.SCRIPT_DATA_ESCAPED_END_TAG_NAME,this._stateScriptDataEscapedEndTagName(e)):(this._emitChars("");break;case x.NULL:this._err(j.unexpectedNullCharacter),this.state=De.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(w);break;case x.EOF:this._err(j.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this.state=De.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(e)}}_stateScriptDataDoubleEscapedLessThanSign(e){e===x.SOLIDUS?(this.state=De.SCRIPT_DATA_DOUBLE_ESCAPE_END,this._emitChars("/")):(this.state=De.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(e))}_stateScriptDataDoubleEscapeEnd(e){if(this.preprocessor.startsWith(W,!1)&&Ue(this.preprocessor.peek(W.length))){this._emitCodePoint(e);for(let e=0;e1114111)this._err(j.characterReferenceOutsideUnicodeRange),this.charRefCode=x.REPLACEMENT_CHARACTER;else if(V(this.charRefCode))this._err(j.surrogateCharacterReference),this.charRefCode=x.REPLACEMENT_CHARACTER;else if(z(this.charRefCode))this._err(j.noncharacterCharacterReference);else if(K(this.charRefCode)||this.charRefCode===x.CARRIAGE_RETURN){this._err(j.controlCharacterReference);const e=Re.get(this.charRefCode);void 0!==e&&(this.charRefCode=e)}this._flushCodePointConsumedAsCharacterReference(this.charRefCode),this._reconsumeInState(this.returnState,e)}}const ve=new Set([fe.DD,fe.DT,fe.LI,fe.OPTGROUP,fe.OPTION,fe.P,fe.RB,fe.RP,fe.RT,fe.RTC]),we=new Set([...ve,fe.CAPTION,fe.COLGROUP,fe.TBODY,fe.TD,fe.TFOOT,fe.TH,fe.THEAD,fe.TR]),xe=new Map([[fe.APPLET,me.HTML],[fe.CAPTION,me.HTML],[fe.HTML,me.HTML],[fe.MARQUEE,me.HTML],[fe.OBJECT,me.HTML],[fe.TABLE,me.HTML],[fe.TD,me.HTML],[fe.TEMPLATE,me.HTML],[fe.TH,me.HTML],[fe.ANNOTATION_XML,me.MATHML],[fe.MI,me.MATHML],[fe.MN,me.MATHML],[fe.MO,me.MATHML],[fe.MS,me.MATHML],[fe.MTEXT,me.MATHML],[fe.DESC,me.SVG],[fe.FOREIGN_OBJECT,me.SVG],[fe.TITLE,me.SVG]]),Ge=[fe.H1,fe.H2,fe.H3,fe.H4,fe.H5,fe.H6],Ye=[fe.TR,fe.TEMPLATE,fe.HTML],qe=[fe.TBODY,fe.TFOOT,fe.THEAD,fe.TEMPLATE,fe.HTML],We=[fe.TABLE,fe.TEMPLATE,fe.HTML],Qe=[fe.TD,fe.TH];class Xe{get currentTmplContentOrNode(){return this._isInTemplate()?this.treeAdapter.getTemplateContent(this.current):this.current}constructor(e,t,n){this.treeAdapter=t,this.handler=n,this.items=[],this.tagIDs=[],this.stackTop=-1,this.tmplCount=0,this.currentTagId=fe.UNKNOWN,this.current=e}_indexOf(e){return this.items.lastIndexOf(e,this.stackTop)}_isInTemplate(){return this.currentTagId===fe.TEMPLATE&&this.treeAdapter.getNamespaceURI(this.current)===me.HTML}_updateCurrentElement(){this.current=this.items[this.stackTop],this.currentTagId=this.tagIDs[this.stackTop]}push(e,t){this.stackTop++,this.items[this.stackTop]=e,this.current=e,this.tagIDs[this.stackTop]=t,this.currentTagId=t,this._isInTemplate()&&this.tmplCount++,this.handler.onItemPush(e,t,!0)}pop(){const e=this.current;this.tmplCount>0&&this._isInTemplate()&&this.tmplCount--,this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(e,!0)}replace(e,t){const n=this._indexOf(e);this.items[n]=t,n===this.stackTop&&(this.current=t)}insertAfter(e,t,n){const r=this._indexOf(e)+1;this.items.splice(r,0,t),this.tagIDs.splice(r,0,n),this.stackTop++,r===this.stackTop&&this._updateCurrentElement(),this.handler.onItemPush(this.current,this.currentTagId,r===this.stackTop)}popUntilTagNamePopped(e){let t=this.stackTop+1;do{t=this.tagIDs.lastIndexOf(e,t-1)}while(t>0&&this.treeAdapter.getNamespaceURI(this.items[t])!==me.HTML);this.shortenToLength(t<0?0:t)}shortenToLength(e){for(;this.stackTop>=e;){const t=this.current;this.tmplCount>0&&this._isInTemplate()&&(this.tmplCount-=1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(t,this.stackTop=0;n--)if(e.includes(this.tagIDs[n])&&this.treeAdapter.getNamespaceURI(this.items[n])===t)return n;return-1}clearBackTo(e,t){const n=this._indexOfTagNames(e,t);this.shortenToLength(n+1)}clearBackToTableContext(){this.clearBackTo(We,me.HTML)}clearBackToTableBodyContext(){this.clearBackTo(qe,me.HTML)}clearBackToTableRowContext(){this.clearBackTo(Ye,me.HTML)}remove(e){const t=this._indexOf(e);t>=0&&(t===this.stackTop?this.pop():(this.items.splice(t,1),this.tagIDs.splice(t,1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(e,!1)))}tryPeekProperlyNestedBodyElement(){return this.stackTop>=1&&this.tagIDs[1]===fe.BODY?this.items[1]:null}contains(e){return this._indexOf(e)>-1}getCommonAncestor(e){const t=this._indexOf(e)-1;return t>=0?this.items[t]:null}isRootHtmlElementCurrent(){return 0===this.stackTop&&this.tagIDs[0]===fe.HTML}hasInScope(e){for(let t=this.stackTop;t>=0;t--){const n=this.tagIDs[t],r=this.treeAdapter.getNamespaceURI(this.items[t]);if(n===e&&r===me.HTML)return!0;if(xe.get(n)===r)return!1}return!0}hasNumberedHeaderInScope(){for(let e=this.stackTop;e>=0;e--){const t=this.tagIDs[e],n=this.treeAdapter.getNamespaceURI(this.items[e]);if(Se(t)&&n===me.HTML)return!0;if(xe.get(t)===n)return!1}return!0}hasInListItemScope(e){for(let t=this.stackTop;t>=0;t--){const n=this.tagIDs[t],r=this.treeAdapter.getNamespaceURI(this.items[t]);if(n===e&&r===me.HTML)return!0;if((n===fe.UL||n===fe.OL)&&r===me.HTML||xe.get(n)===r)return!1}return!0}hasInButtonScope(e){for(let t=this.stackTop;t>=0;t--){const n=this.tagIDs[t],r=this.treeAdapter.getNamespaceURI(this.items[t]);if(n===e&&r===me.HTML)return!0;if(n===fe.BUTTON&&r===me.HTML||xe.get(n)===r)return!1}return!0}hasInTableScope(e){for(let t=this.stackTop;t>=0;t--){const n=this.tagIDs[t];if(this.treeAdapter.getNamespaceURI(this.items[t])===me.HTML){if(n===e)return!0;if(n===fe.TABLE||n===fe.TEMPLATE||n===fe.HTML)return!1}}return!0}hasTableBodyContextInTableScope(){for(let e=this.stackTop;e>=0;e--){const t=this.tagIDs[e];if(this.treeAdapter.getNamespaceURI(this.items[e])===me.HTML){if(t===fe.TBODY||t===fe.THEAD||t===fe.TFOOT)return!0;if(t===fe.TABLE||t===fe.HTML)return!1}}return!0}hasInSelectScope(e){for(let t=this.stackTop;t>=0;t--){const n=this.tagIDs[t];if(this.treeAdapter.getNamespaceURI(this.items[t])===me.HTML){if(n===e)return!0;if(n!==fe.OPTION&&n!==fe.OPTGROUP)return!1}}return!0}generateImpliedEndTags(){for(;ve.has(this.currentTagId);)this.pop()}generateImpliedEndTagsThoroughly(){for(;we.has(this.currentTagId);)this.pop()}generateImpliedEndTagsWithExclusion(e){for(;this.currentTagId!==e&&we.has(this.currentTagId);)this.pop()}}var Ve;!function(e){e[e.Marker=0]="Marker",e[e.Element=1]="Element"}(Ve=Ve||(Ve={}));const Ke={type:Ve.Marker};class ze{constructor(e){this.treeAdapter=e,this.entries=[],this.bookmark=null}_getNoahArkConditionCandidates(e,t){const n=[],r=t.length,s=this.treeAdapter.getTagName(e),a=this.treeAdapter.getNamespaceURI(e);for(let o=0;o[e.name,e.value])));let s=0;for(let a=0;ar.get(e.name)===e.value))&&(s+=1,s>=3&&this.entries.splice(e.idx,1))}}insertMarker(){this.entries.unshift(Ke)}pushElement(e,t){this._ensureNoahArkCondition(e),this.entries.unshift({type:Ve.Element,element:e,token:t})}insertElementAfterBookmark(e,t){const n=this.entries.indexOf(this.bookmark);this.entries.splice(n,0,{type:Ve.Element,element:e,token:t})}removeEntry(e){const t=this.entries.indexOf(e);t>=0&&this.entries.splice(t,1)}clearToLastMarker(){const e=this.entries.indexOf(Ke);e>=0?this.entries.splice(0,e+1):this.entries.length=0}getElementEntryInScopeWithTagName(e){const t=this.entries.find((t=>t.type===Ve.Marker||this.treeAdapter.getTagName(t.element)===e));return t&&t.type===Ve.Element?t:null}getElementEntry(e){return this.entries.find((t=>t.type===Ve.Element&&t.element===e))}}function je(e){return{nodeName:"#text",value:e,parentNode:null}}const Je={createDocument:()=>({nodeName:"#document",mode:Ae.NO_QUIRKS,childNodes:[]}),createDocumentFragment:()=>({nodeName:"#document-fragment",childNodes:[]}),createElement:(e,t,n)=>({nodeName:e,tagName:e,attrs:n,namespaceURI:t,childNodes:[],parentNode:null}),createCommentNode:e=>({nodeName:"#comment",data:e,parentNode:null}),appendChild(e,t){e.childNodes.push(t),t.parentNode=e},insertBefore(e,t,n){const r=e.childNodes.indexOf(n);e.childNodes.splice(r,0,t),t.parentNode=e},setTemplateContent(e,t){e.content=t},getTemplateContent:e=>e.content,setDocumentType(e,t,n,r){const s=e.childNodes.find((e=>"#documentType"===e.nodeName));if(s)s.name=t,s.publicId=n,s.systemId=r;else{const s={nodeName:"#documentType",name:t,publicId:n,systemId:r,parentNode:null};Je.appendChild(e,s)}},setDocumentMode(e,t){e.mode=t},getDocumentMode:e=>e.mode,detachNode(e){if(e.parentNode){const t=e.parentNode.childNodes.indexOf(e);e.parentNode.childNodes.splice(t,1),e.parentNode=null}},insertText(e,t){if(e.childNodes.length>0){const n=e.childNodes[e.childNodes.length-1];if(Je.isTextNode(n))return void(n.value+=t)}Je.appendChild(e,je(t))},insertTextBefore(e,t,n){const r=e.childNodes[e.childNodes.indexOf(n)-1];r&&Je.isTextNode(r)?r.value+=t:Je.insertBefore(e,je(t),n)},adoptAttributes(e,t){const n=new Set(e.attrs.map((e=>e.name)));for(let r=0;re.childNodes[0],getChildNodes:e=>e.childNodes,getParentNode:e=>e.parentNode,getAttrList:e=>e.attrs,getTagName:e=>e.tagName,getNamespaceURI:e=>e.namespaceURI,getTextNodeContent:e=>e.value,getCommentNodeContent:e=>e.data,getDocumentTypeNodeName:e=>e.name,getDocumentTypeNodePublicId:e=>e.publicId,getDocumentTypeNodeSystemId:e=>e.systemId,isTextNode:e=>"#text"===e.nodeName,isCommentNode:e=>"#comment"===e.nodeName,isDocumentTypeNode:e=>"#documentType"===e.nodeName,isElementNode:e=>Object.prototype.hasOwnProperty.call(e,"tagName"),setNodeSourceCodeLocation(e,t){e.sourceCodeLocation=t},getNodeSourceCodeLocation:e=>e.sourceCodeLocation,updateNodeSourceCodeLocation(e,t){e.sourceCodeLocation={...e.sourceCodeLocation,...t}}},Ze="html",$e="about:legacy-compat",et="http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd",tt=["+//silmaril//dtd html pro v0r11 19970101//","-//as//dtd html 3.0 aswedit + extensions//","-//advasoft ltd//dtd html 3.0 aswedit + extensions//","-//ietf//dtd html 2.0 level 1//","-//ietf//dtd html 2.0 level 2//","-//ietf//dtd html 2.0 strict level 1//","-//ietf//dtd html 2.0 strict level 2//","-//ietf//dtd html 2.0 strict//","-//ietf//dtd html 2.0//","-//ietf//dtd html 2.1e//","-//ietf//dtd html 3.0//","-//ietf//dtd html 3.2 final//","-//ietf//dtd html 3.2//","-//ietf//dtd html 3//","-//ietf//dtd html level 0//","-//ietf//dtd html level 1//","-//ietf//dtd html level 2//","-//ietf//dtd html level 3//","-//ietf//dtd html strict level 0//","-//ietf//dtd html strict level 1//","-//ietf//dtd html strict level 2//","-//ietf//dtd html strict level 3//","-//ietf//dtd html strict//","-//ietf//dtd html//","-//metrius//dtd metrius presentational//","-//microsoft//dtd internet explorer 2.0 html strict//","-//microsoft//dtd internet explorer 2.0 html//","-//microsoft//dtd internet explorer 2.0 tables//","-//microsoft//dtd internet explorer 3.0 html strict//","-//microsoft//dtd internet explorer 3.0 html//","-//microsoft//dtd internet explorer 3.0 tables//","-//netscape comm. corp.//dtd html//","-//netscape comm. corp.//dtd strict html//","-//o'reilly and associates//dtd html 2.0//","-//o'reilly and associates//dtd html extended 1.0//","-//o'reilly and associates//dtd html extended relaxed 1.0//","-//sq//dtd html 2.0 hotmetal + extensions//","-//softquad software//dtd hotmetal pro 6.0::19990601::extensions to html 4.0//","-//softquad//dtd hotmetal pro 4.0::19971010::extensions to html 4.0//","-//spyglass//dtd html 2.0 extended//","-//sun microsystems corp.//dtd hotjava html//","-//sun microsystems corp.//dtd hotjava strict html//","-//w3c//dtd html 3 1995-03-24//","-//w3c//dtd html 3.2 draft//","-//w3c//dtd html 3.2 final//","-//w3c//dtd html 3.2//","-//w3c//dtd html 3.2s draft//","-//w3c//dtd html 4.0 frameset//","-//w3c//dtd html 4.0 transitional//","-//w3c//dtd html experimental 19960712//","-//w3c//dtd html experimental 970421//","-//w3c//dtd w3 html//","-//w3o//dtd w3 html 3.0//","-//webtechs//dtd mozilla html 2.0//","-//webtechs//dtd mozilla html//"],nt=[...tt,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"],rt=new Set(["-//w3o//dtd w3 html strict 3.0//en//","-/w3c/dtd html 4.0 transitional/en","html"]),st=["-//w3c//dtd xhtml 1.0 frameset//","-//w3c//dtd xhtml 1.0 transitional//"],at=[...st,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"];function ot(e,t){return t.some((t=>e.startsWith(t)))}const it={TEXT_HTML:"text/html",APPLICATION_XML:"application/xhtml+xml"},ct="definitionurl",lt="definitionURL",ut=new Map(["attributeName","attributeType","baseFrequency","baseProfile","calcMode","clipPathUnits","diffuseConstant","edgeMode","filterUnits","glyphRef","gradientTransform","gradientUnits","kernelMatrix","kernelUnitLength","keyPoints","keySplines","keyTimes","lengthAdjust","limitingConeAngle","markerHeight","markerUnits","markerWidth","maskContentUnits","maskUnits","numOctaves","pathLength","patternContentUnits","patternTransform","patternUnits","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","refX","refY","repeatCount","repeatDur","requiredExtensions","requiredFeatures","specularConstant","specularExponent","spreadMethod","startOffset","stdDeviation","stitchTiles","surfaceScale","systemLanguage","tableValues","targetX","targetY","textLength","viewBox","viewTarget","xChannelSelector","yChannelSelector","zoomAndPan"].map((e=>[e.toLowerCase(),e]))),Et=new Map([["xlink:actuate",{prefix:"xlink",name:"actuate",namespace:me.XLINK}],["xlink:arcrole",{prefix:"xlink",name:"arcrole",namespace:me.XLINK}],["xlink:href",{prefix:"xlink",name:"href",namespace:me.XLINK}],["xlink:role",{prefix:"xlink",name:"role",namespace:me.XLINK}],["xlink:show",{prefix:"xlink",name:"show",namespace:me.XLINK}],["xlink:title",{prefix:"xlink",name:"title",namespace:me.XLINK}],["xlink:type",{prefix:"xlink",name:"type",namespace:me.XLINK}],["xml:base",{prefix:"xml",name:"base",namespace:me.XML}],["xml:lang",{prefix:"xml",name:"lang",namespace:me.XML}],["xml:space",{prefix:"xml",name:"space",namespace:me.XML}],["xmlns",{prefix:"",name:"xmlns",namespace:me.XMLNS}],["xmlns:xlink",{prefix:"xmlns",name:"xlink",namespace:me.XMLNS}]]),ht=new Map(["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","textPath"].map((e=>[e.toLowerCase(),e]))),Tt=new Set([fe.B,fe.BIG,fe.BLOCKQUOTE,fe.BODY,fe.BR,fe.CENTER,fe.CODE,fe.DD,fe.DIV,fe.DL,fe.DT,fe.EM,fe.EMBED,fe.H1,fe.H2,fe.H3,fe.H4,fe.H5,fe.H6,fe.HEAD,fe.HR,fe.I,fe.IMG,fe.LI,fe.LISTING,fe.MENU,fe.META,fe.NOBR,fe.OL,fe.P,fe.PRE,fe.RUBY,fe.S,fe.SMALL,fe.SPAN,fe.STRONG,fe.STRIKE,fe.SUB,fe.SUP,fe.TABLE,fe.TT,fe.U,fe.UL,fe.VAR]);function pt(e){for(let t=0;t0&&this._setContextModes(e,t)}onItemPop(e,t){var n,r;if(this.options.sourceCodeLocationInfo&&this._setEndLocation(e,this.currentToken),null===(r=(n=this.treeAdapter).onItemPop)||void 0===r||r.call(n,e,this.openElements.current),t){let e,t;0===this.openElements.stackTop&&this.fragmentContext?(e=this.fragmentContext,t=this.fragmentContextID):({current:e,currentTagId:t}=this.openElements),this._setContextModes(e,t)}}_setContextModes(e,t){const n=e===this.document||this.treeAdapter.getNamespaceURI(e)===me.HTML;this.currentNotInHTML=!n,this.tokenizer.inForeignNode=!n&&!this._isIntegrationPoint(t,e)}_switchToTextParsing(e,t){this._insertElement(e,me.HTML),this.tokenizer.state=t,this.originalInsertionMode=this.insertionMode,this.insertionMode=gt.TEXT}switchToPlaintextParsing(){this.insertionMode=gt.TEXT,this.originalInsertionMode=gt.IN_BODY,this.tokenizer.state=Oe.PLAINTEXT}_getAdjustedCurrentElement(){return 0===this.openElements.stackTop&&this.fragmentContext?this.fragmentContext:this.openElements.current}_findFormInFragmentContext(){let e=this.fragmentContext;for(;e;){if(this.treeAdapter.getTagName(e)===_e.FORM){this.formElement=e;break}e=this.treeAdapter.getParentNode(e)}}_initTokenizerForFragmentParsing(){if(this.fragmentContext&&this.treeAdapter.getNamespaceURI(this.fragmentContext)===me.HTML)switch(this.fragmentContextID){case fe.TITLE:case fe.TEXTAREA:this.tokenizer.state=Oe.RCDATA;break;case fe.STYLE:case fe.XMP:case fe.IFRAME:case fe.NOEMBED:case fe.NOFRAMES:case fe.NOSCRIPT:this.tokenizer.state=Oe.RAWTEXT;break;case fe.SCRIPT:this.tokenizer.state=Oe.SCRIPT_DATA;break;case fe.PLAINTEXT:this.tokenizer.state=Oe.PLAINTEXT}}_setDocumentType(e){const t=e.name||"",n=e.publicId||"",r=e.systemId||"";if(this.treeAdapter.setDocumentType(this.document,t,n,r),e.location){const t=this.treeAdapter.getChildNodes(this.document).find((e=>this.treeAdapter.isDocumentTypeNode(e)));t&&this.treeAdapter.setNodeSourceCodeLocation(t,e.location)}}_attachElementToTree(e,t){if(this.options.sourceCodeLocationInfo){const n=t&&{...t,startTag:t};this.treeAdapter.setNodeSourceCodeLocation(e,n)}if(this._shouldFosterParentOnInsertion())this._fosterParentElement(e);else{const t=this.openElements.currentTmplContentOrNode;this.treeAdapter.appendChild(t,e)}}_appendElement(e,t){const n=this.treeAdapter.createElement(e.tagName,t,e.attrs);this._attachElementToTree(n,e.location)}_insertElement(e,t){const n=this.treeAdapter.createElement(e.tagName,t,e.attrs);this._attachElementToTree(n,e.location),this.openElements.push(n,e.tagID)}_insertFakeElement(e,t){const n=this.treeAdapter.createElement(e,me.HTML,[]);this._attachElementToTree(n,null),this.openElements.push(n,t)}_insertTemplate(e){const t=this.treeAdapter.createElement(e.tagName,me.HTML,e.attrs),n=this.treeAdapter.createDocumentFragment();this.treeAdapter.setTemplateContent(t,n),this._attachElementToTree(t,e.location),this.openElements.push(t,e.tagID),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(n,null)}_insertFakeRootElement(){const e=this.treeAdapter.createElement(_e.HTML,me.HTML,[]);this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(e,null),this.treeAdapter.appendChild(this.openElements.current,e),this.openElements.push(e,fe.HTML)}_appendCommentNode(e,t){const n=this.treeAdapter.createCommentNode(e.data);this.treeAdapter.appendChild(t,n),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(n,e.location)}_insertCharacters(e){let t,n;if(this._shouldFosterParentOnInsertion()?(({parent:t,beforeElement:n}=this._findFosterParentingLocation()),n?this.treeAdapter.insertTextBefore(t,e.chars,n):this.treeAdapter.insertText(t,e.chars)):(t=this.openElements.currentTmplContentOrNode,this.treeAdapter.insertText(t,e.chars)),!e.location)return;const r=this.treeAdapter.getChildNodes(t),s=n?r.lastIndexOf(n):r.length,a=r[s-1];if(this.treeAdapter.getNodeSourceCodeLocation(a)){const{endLine:t,endCol:n,endOffset:r}=e.location;this.treeAdapter.updateNodeSourceCodeLocation(a,{endLine:t,endCol:n,endOffset:r})}else this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(a,e.location)}_adoptNodes(e,t){for(let n=this.treeAdapter.getFirstChild(e);n;n=this.treeAdapter.getFirstChild(e))this.treeAdapter.detachNode(n),this.treeAdapter.appendChild(t,n)}_setEndLocation(e,t){if(this.treeAdapter.getNodeSourceCodeLocation(e)&&t.location){const n=t.location,r=this.treeAdapter.getTagName(e),s=t.type===Z.END_TAG&&r===t.tagName?{endTag:{...n},endLine:n.endLine,endCol:n.endCol,endOffset:n.endOffset}:{endLine:n.startLine,endCol:n.startCol,endOffset:n.startOffset};this.treeAdapter.updateNodeSourceCodeLocation(e,s)}}shouldProcessStartTagTokenInForeignContent(e){if(!this.currentNotInHTML)return!1;let t,n;return 0===this.openElements.stackTop&&this.fragmentContext?(t=this.fragmentContext,n=this.fragmentContextID):({current:t,currentTagId:n}=this.openElements),(e.tagID!==fe.SVG||this.treeAdapter.getTagName(t)!==_e.ANNOTATION_XML||this.treeAdapter.getNamespaceURI(t)!==me.MATHML)&&(this.tokenizer.inForeignNode||(e.tagID===fe.MGLYPH||e.tagID===fe.MALIGNMARK)&&!this._isIntegrationPoint(n,t,me.HTML))}_processToken(e){switch(e.type){case Z.CHARACTER:this.onCharacter(e);break;case Z.NULL_CHARACTER:this.onNullCharacter(e);break;case Z.COMMENT:this.onComment(e);break;case Z.DOCTYPE:this.onDoctype(e);break;case Z.START_TAG:this._processStartTag(e);break;case Z.END_TAG:this.onEndTag(e);break;case Z.EOF:this.onEof(e);break;case Z.WHITESPACE_CHARACTER:this.onWhitespaceCharacter(e)}}_isIntegrationPoint(e,t,n){return At(e,this.treeAdapter.getNamespaceURI(t),this.treeAdapter.getAttrList(t),n)}_reconstructActiveFormattingElements(){const e=this.activeFormattingElements.entries.length;if(e){const t=this.activeFormattingElements.entries.findIndex((e=>e.type===Ve.Marker||this.openElements.contains(e.element)));for(let n=t<0?e-1:t-1;n>=0;n--){const e=this.activeFormattingElements.entries[n];this._insertElement(e.token,this.treeAdapter.getNamespaceURI(e.element)),e.element=this.openElements.current}}}_closeTableCell(){this.openElements.generateImpliedEndTags(),this.openElements.popUntilTableCellPopped(),this.activeFormattingElements.clearToLastMarker(),this.insertionMode=gt.IN_ROW}_closePElement(){this.openElements.generateImpliedEndTagsWithExclusion(fe.P),this.openElements.popUntilTagNamePopped(fe.P)}_resetInsertionMode(){for(let e=this.openElements.stackTop;e>=0;e--)switch(0===e&&this.fragmentContext?this.fragmentContextID:this.openElements.tagIDs[e]){case fe.TR:return void(this.insertionMode=gt.IN_ROW);case fe.TBODY:case fe.THEAD:case fe.TFOOT:return void(this.insertionMode=gt.IN_TABLE_BODY);case fe.CAPTION:return void(this.insertionMode=gt.IN_CAPTION);case fe.COLGROUP:return void(this.insertionMode=gt.IN_COLUMN_GROUP);case fe.TABLE:return void(this.insertionMode=gt.IN_TABLE);case fe.BODY:return void(this.insertionMode=gt.IN_BODY);case fe.FRAMESET:return void(this.insertionMode=gt.IN_FRAMESET);case fe.SELECT:return void this._resetInsertionModeForSelect(e);case fe.TEMPLATE:return void(this.insertionMode=this.tmplInsertionModeStack[0]);case fe.HTML:return void(this.insertionMode=this.headElement?gt.AFTER_HEAD:gt.BEFORE_HEAD);case fe.TD:case fe.TH:if(e>0)return void(this.insertionMode=gt.IN_CELL);break;case fe.HEAD:if(e>0)return void(this.insertionMode=gt.IN_HEAD)}this.insertionMode=gt.IN_BODY}_resetInsertionModeForSelect(e){if(e>0)for(let t=e-1;t>0;t--){const e=this.openElements.tagIDs[t];if(e===fe.TEMPLATE)break;if(e===fe.TABLE)return void(this.insertionMode=gt.IN_SELECT_IN_TABLE)}this.insertionMode=gt.IN_SELECT}_isElementCausesFosterParenting(e){return It.has(e)}_shouldFosterParentOnInsertion(){return this.fosterParentingEnabled&&this._isElementCausesFosterParenting(this.openElements.currentTagId)}_findFosterParentingLocation(){for(let e=this.openElements.stackTop;e>=0;e--){const t=this.openElements.items[e];switch(this.openElements.tagIDs[e]){case fe.TEMPLATE:if(this.treeAdapter.getNamespaceURI(t)===me.HTML)return{parent:this.treeAdapter.getTemplateContent(t),beforeElement:null};break;case fe.TABLE:{const n=this.treeAdapter.getParentNode(t);return n?{parent:n,beforeElement:t}:{parent:this.openElements.items[e-1],beforeElement:null}}}}return{parent:this.openElements.items[0],beforeElement:null}}_fosterParentElement(e){const t=this._findFosterParentingLocation();t.beforeElement?this.treeAdapter.insertBefore(t.parent,e,t.beforeElement):this.treeAdapter.appendChild(t.parent,e)}_isSpecialElement(e,t){const n=this.treeAdapter.getNamespaceURI(e);return Ie[n].has(t)}onCharacter(e){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode)!function(e,t){e._insertCharacters(t),e.framesetOk=!1}(this,e);else switch(this.insertionMode){case gt.INITIAL:Ht(this,e);break;case gt.BEFORE_HTML:Ut(this,e);break;case gt.BEFORE_HEAD:Ft(this,e);break;case gt.IN_HEAD:xt(this,e);break;case gt.IN_HEAD_NO_SCRIPT:Gt(this,e);break;case gt.AFTER_HEAD:Yt(this,e);break;case gt.IN_BODY:case gt.IN_CAPTION:case gt.IN_CELL:case gt.IN_TEMPLATE:Qt(this,e);break;case gt.TEXT:case gt.IN_SELECT:case gt.IN_SELECT_IN_TABLE:this._insertCharacters(e);break;case gt.IN_TABLE:case gt.IN_TABLE_BODY:case gt.IN_ROW:en(this,e);break;case gt.IN_TABLE_TEXT:an(this,e);break;case gt.IN_COLUMN_GROUP:un(this,e);break;case gt.AFTER_BODY:fn(this,e);break;case gt.AFTER_AFTER_BODY:Nn(this,e)}}onNullCharacter(e){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode)!function(e,t){t.chars=w,e._insertCharacters(t)}(this,e);else switch(this.insertionMode){case gt.INITIAL:Ht(this,e);break;case gt.BEFORE_HTML:Ut(this,e);break;case gt.BEFORE_HEAD:Ft(this,e);break;case gt.IN_HEAD:xt(this,e);break;case gt.IN_HEAD_NO_SCRIPT:Gt(this,e);break;case gt.AFTER_HEAD:Yt(this,e);break;case gt.TEXT:this._insertCharacters(e);break;case gt.IN_TABLE:case gt.IN_TABLE_BODY:case gt.IN_ROW:en(this,e);break;case gt.IN_COLUMN_GROUP:un(this,e);break;case gt.AFTER_BODY:fn(this,e);break;case gt.AFTER_AFTER_BODY:Nn(this,e)}}onComment(e){if(this.skipNextNewLine=!1,this.currentNotInHTML)yt(this,e);else switch(this.insertionMode){case gt.INITIAL:case gt.BEFORE_HTML:case gt.BEFORE_HEAD:case gt.IN_HEAD:case gt.IN_HEAD_NO_SCRIPT:case gt.AFTER_HEAD:case gt.IN_BODY:case gt.IN_TABLE:case gt.IN_CAPTION:case gt.IN_COLUMN_GROUP:case gt.IN_TABLE_BODY:case gt.IN_ROW:case gt.IN_CELL:case gt.IN_SELECT:case gt.IN_SELECT_IN_TABLE:case gt.IN_TEMPLATE:case gt.IN_FRAMESET:case gt.AFTER_FRAMESET:yt(this,e);break;case gt.IN_TABLE_TEXT:on(this,e);break;case gt.AFTER_BODY:!function(e,t){e._appendCommentNode(t,e.openElements.items[0])}(this,e);break;case gt.AFTER_AFTER_BODY:case gt.AFTER_AFTER_FRAMESET:!function(e,t){e._appendCommentNode(t,e.document)}(this,e)}}onDoctype(e){switch(this.skipNextNewLine=!1,this.insertionMode){case gt.INITIAL:!function(e,t){e._setDocumentType(t);const n=t.forceQuirks?Ae.QUIRKS:function(e){if(e.name!==Ze)return Ae.QUIRKS;const{systemId:t}=e;if(t&&t.toLowerCase()===et)return Ae.QUIRKS;let{publicId:n}=e;if(null!==n){if(n=n.toLowerCase(),rt.has(n))return Ae.QUIRKS;let e=null===t?nt:tt;if(ot(n,e))return Ae.QUIRKS;if(e=null===t?st:at,ot(n,e))return Ae.LIMITED_QUIRKS}return Ae.NO_QUIRKS}(t);(function(e){return e.name===Ze&&null===e.publicId&&(null===e.systemId||e.systemId===$e)})(t)||e._err(t,j.nonConformingDoctype);e.treeAdapter.setDocumentMode(e.document,n),e.insertionMode=gt.BEFORE_HTML}(this,e);break;case gt.BEFORE_HEAD:case gt.IN_HEAD:case gt.IN_HEAD_NO_SCRIPT:case gt.AFTER_HEAD:this._err(e,j.misplacedDoctype);break;case gt.IN_TABLE_TEXT:on(this,e)}}onStartTag(e){this.skipNextNewLine=!1,this.currentToken=e,this._processStartTag(e),e.selfClosing&&!e.ackSelfClosing&&this._err(e,j.nonVoidHtmlElementStartTagWithTrailingSolidus)}_processStartTag(e){this.shouldProcessStartTagTokenInForeignContent(e)?function(e,t){if(function(e){const t=e.tagID;return t===fe.FONT&&e.attrs.some((({name:e})=>e===de.COLOR||e===de.SIZE||e===de.FACE))||Tt.has(t)}(t))gn(e),e._startTagOutsideForeignContent(t);else{const n=e._getAdjustedCurrentElement(),r=e.treeAdapter.getNamespaceURI(n);r===me.MATHML?pt(t):r===me.SVG&&(!function(e){const t=ht.get(e.tagName);null!=t&&(e.tagName=t,e.tagID=ge(e.tagName))}(t),mt(t)),dt(t),t.selfClosing?e._appendElement(t,r):e._insertElement(t,r),t.ackSelfClosing=!0}}(this,e):this._startTagOutsideForeignContent(e)}_startTagOutsideForeignContent(e){switch(this.insertionMode){case gt.INITIAL:Ht(this,e);break;case gt.BEFORE_HTML:!function(e,t){t.tagID===fe.HTML?(e._insertElement(t,me.HTML),e.insertionMode=gt.BEFORE_HEAD):Ut(e,t)}(this,e);break;case gt.BEFORE_HEAD:!function(e,t){switch(t.tagID){case fe.HTML:jt(e,t);break;case fe.HEAD:e._insertElement(t,me.HTML),e.headElement=e.openElements.current,e.insertionMode=gt.IN_HEAD;break;default:Ft(e,t)}}(this,e);break;case gt.IN_HEAD:vt(this,e);break;case gt.IN_HEAD_NO_SCRIPT:!function(e,t){switch(t.tagID){case fe.HTML:jt(e,t);break;case fe.BASEFONT:case fe.BGSOUND:case fe.HEAD:case fe.LINK:case fe.META:case fe.NOFRAMES:case fe.STYLE:vt(e,t);break;case fe.NOSCRIPT:e._err(t,j.nestedNoscriptInHead);break;default:Gt(e,t)}}(this,e);break;case gt.AFTER_HEAD:!function(e,t){switch(t.tagID){case fe.HTML:jt(e,t);break;case fe.BODY:e._insertElement(t,me.HTML),e.framesetOk=!1,e.insertionMode=gt.IN_BODY;break;case fe.FRAMESET:e._insertElement(t,me.HTML),e.insertionMode=gt.IN_FRAMESET;break;case fe.BASE:case fe.BASEFONT:case fe.BGSOUND:case fe.LINK:case fe.META:case fe.NOFRAMES:case fe.SCRIPT:case fe.STYLE:case fe.TEMPLATE:case fe.TITLE:e._err(t,j.abandonedHeadElementChild),e.openElements.push(e.headElement,fe.HEAD),vt(e,t),e.openElements.remove(e.headElement);break;case fe.HEAD:e._err(t,j.misplacedStartTagForHeadElement);break;default:Yt(e,t)}}(this,e);break;case gt.IN_BODY:jt(this,e);break;case gt.IN_TABLE:tn(this,e);break;case gt.IN_TABLE_TEXT:on(this,e);break;case gt.IN_CAPTION:!function(e,t){const n=t.tagID;cn.has(n)?e.openElements.hasInTableScope(fe.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(fe.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=gt.IN_TABLE,tn(e,t)):jt(e,t)}(this,e);break;case gt.IN_COLUMN_GROUP:ln(this,e);break;case gt.IN_TABLE_BODY:En(this,e);break;case gt.IN_ROW:Tn(this,e);break;case gt.IN_CELL:!function(e,t){const n=t.tagID;cn.has(n)?(e.openElements.hasInTableScope(fe.TD)||e.openElements.hasInTableScope(fe.TH))&&(e._closeTableCell(),Tn(e,t)):jt(e,t)}(this,e);break;case gt.IN_SELECT:mn(this,e);break;case gt.IN_SELECT_IN_TABLE:!function(e,t){const n=t.tagID;n===fe.CAPTION||n===fe.TABLE||n===fe.TBODY||n===fe.TFOOT||n===fe.THEAD||n===fe.TR||n===fe.TD||n===fe.TH?(e.openElements.popUntilTagNamePopped(fe.SELECT),e._resetInsertionMode(),e._processStartTag(t)):mn(e,t)}(this,e);break;case gt.IN_TEMPLATE:!function(e,t){switch(t.tagID){case fe.BASE:case fe.BASEFONT:case fe.BGSOUND:case fe.LINK:case fe.META:case fe.NOFRAMES:case fe.SCRIPT:case fe.STYLE:case fe.TEMPLATE:case fe.TITLE:vt(e,t);break;case fe.CAPTION:case fe.COLGROUP:case fe.TBODY:case fe.TFOOT:case fe.THEAD:e.tmplInsertionModeStack[0]=gt.IN_TABLE,e.insertionMode=gt.IN_TABLE,tn(e,t);break;case fe.COL:e.tmplInsertionModeStack[0]=gt.IN_COLUMN_GROUP,e.insertionMode=gt.IN_COLUMN_GROUP,ln(e,t);break;case fe.TR:e.tmplInsertionModeStack[0]=gt.IN_TABLE_BODY,e.insertionMode=gt.IN_TABLE_BODY,En(e,t);break;case fe.TD:case fe.TH:e.tmplInsertionModeStack[0]=gt.IN_ROW,e.insertionMode=gt.IN_ROW,Tn(e,t);break;default:e.tmplInsertionModeStack[0]=gt.IN_BODY,e.insertionMode=gt.IN_BODY,jt(e,t)}}(this,e);break;case gt.AFTER_BODY:!function(e,t){t.tagID===fe.HTML?jt(e,t):fn(e,t)}(this,e);break;case gt.IN_FRAMESET:!function(e,t){switch(t.tagID){case fe.HTML:jt(e,t);break;case fe.FRAMESET:e._insertElement(t,me.HTML);break;case fe.FRAME:e._appendElement(t,me.HTML),t.ackSelfClosing=!0;break;case fe.NOFRAMES:vt(e,t)}}(this,e);break;case gt.AFTER_FRAMESET:!function(e,t){switch(t.tagID){case fe.HTML:jt(e,t);break;case fe.NOFRAMES:vt(e,t)}}(this,e);break;case gt.AFTER_AFTER_BODY:!function(e,t){t.tagID===fe.HTML?jt(e,t):Nn(e,t)}(this,e);break;case gt.AFTER_AFTER_FRAMESET:!function(e,t){switch(t.tagID){case fe.HTML:jt(e,t);break;case fe.NOFRAMES:vt(e,t)}}(this,e)}}onEndTag(e){this.skipNextNewLine=!1,this.currentToken=e,this.currentNotInHTML?function(e,t){if(t.tagID===fe.P||t.tagID===fe.BR)return gn(e),void e._endTagOutsideForeignContent(t);for(let n=e.openElements.stackTop;n>0;n--){const r=e.openElements.items[n];if(e.treeAdapter.getNamespaceURI(r)===me.HTML){e._endTagOutsideForeignContent(t);break}const s=e.treeAdapter.getTagName(r);if(s.toLowerCase()===t.tagName){t.tagName=s,e.openElements.shortenToLength(n);break}}}(this,e):this._endTagOutsideForeignContent(e)}_endTagOutsideForeignContent(e){switch(this.insertionMode){case gt.INITIAL:Ht(this,e);break;case gt.BEFORE_HTML:!function(e,t){const n=t.tagID;n!==fe.HTML&&n!==fe.HEAD&&n!==fe.BODY&&n!==fe.BR||Ut(e,t)}(this,e);break;case gt.BEFORE_HEAD:!function(e,t){const n=t.tagID;n===fe.HEAD||n===fe.BODY||n===fe.HTML||n===fe.BR?Ft(e,t):e._err(t,j.endTagWithoutMatchingOpenElement)}(this,e);break;case gt.IN_HEAD:!function(e,t){switch(t.tagID){case fe.HEAD:e.openElements.pop(),e.insertionMode=gt.AFTER_HEAD;break;case fe.BODY:case fe.BR:case fe.HTML:xt(e,t);break;case fe.TEMPLATE:wt(e,t);break;default:e._err(t,j.endTagWithoutMatchingOpenElement)}}(this,e);break;case gt.IN_HEAD_NO_SCRIPT:!function(e,t){switch(t.tagID){case fe.NOSCRIPT:e.openElements.pop(),e.insertionMode=gt.IN_HEAD;break;case fe.BR:Gt(e,t);break;default:e._err(t,j.endTagWithoutMatchingOpenElement)}}(this,e);break;case gt.AFTER_HEAD:!function(e,t){switch(t.tagID){case fe.BODY:case fe.HTML:case fe.BR:Yt(e,t);break;case fe.TEMPLATE:wt(e,t);break;default:e._err(t,j.endTagWithoutMatchingOpenElement)}}(this,e);break;case gt.IN_BODY:Zt(this,e);break;case gt.TEXT:!function(e,t){var n;t.tagID===fe.SCRIPT&&(null===(n=e.scriptHandler)||void 0===n||n.call(e,e.openElements.current));e.openElements.pop(),e.insertionMode=e.originalInsertionMode}(this,e);break;case gt.IN_TABLE:nn(this,e);break;case gt.IN_TABLE_TEXT:on(this,e);break;case gt.IN_CAPTION:!function(e,t){const n=t.tagID;switch(n){case fe.CAPTION:case fe.TABLE:e.openElements.hasInTableScope(fe.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(fe.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=gt.IN_TABLE,n===fe.TABLE&&nn(e,t));break;case fe.BODY:case fe.COL:case fe.COLGROUP:case fe.HTML:case fe.TBODY:case fe.TD:case fe.TFOOT:case fe.TH:case fe.THEAD:case fe.TR:break;default:Zt(e,t)}}(this,e);break;case gt.IN_COLUMN_GROUP:!function(e,t){switch(t.tagID){case fe.COLGROUP:e.openElements.currentTagId===fe.COLGROUP&&(e.openElements.pop(),e.insertionMode=gt.IN_TABLE);break;case fe.TEMPLATE:wt(e,t);break;case fe.COL:break;default:un(e,t)}}(this,e);break;case gt.IN_TABLE_BODY:hn(this,e);break;case gt.IN_ROW:pn(this,e);break;case gt.IN_CELL:!function(e,t){const n=t.tagID;switch(n){case fe.TD:case fe.TH:e.openElements.hasInTableScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=gt.IN_ROW);break;case fe.TABLE:case fe.TBODY:case fe.TFOOT:case fe.THEAD:case fe.TR:e.openElements.hasInTableScope(n)&&(e._closeTableCell(),pn(e,t));break;case fe.BODY:case fe.CAPTION:case fe.COL:case fe.COLGROUP:case fe.HTML:break;default:Zt(e,t)}}(this,e);break;case gt.IN_SELECT:dn(this,e);break;case gt.IN_SELECT_IN_TABLE:!function(e,t){const n=t.tagID;n===fe.CAPTION||n===fe.TABLE||n===fe.TBODY||n===fe.TFOOT||n===fe.THEAD||n===fe.TR||n===fe.TD||n===fe.TH?e.openElements.hasInTableScope(n)&&(e.openElements.popUntilTagNamePopped(fe.SELECT),e._resetInsertionMode(),e.onEndTag(t)):dn(e,t)}(this,e);break;case gt.IN_TEMPLATE:!function(e,t){t.tagID===fe.TEMPLATE&&wt(e,t)}(this,e);break;case gt.AFTER_BODY:_n(this,e);break;case gt.IN_FRAMESET:!function(e,t){t.tagID!==fe.FRAMESET||e.openElements.isRootHtmlElementCurrent()||(e.openElements.pop(),e.fragmentContext||e.openElements.currentTagId===fe.FRAMESET||(e.insertionMode=gt.AFTER_FRAMESET))}(this,e);break;case gt.AFTER_FRAMESET:!function(e,t){t.tagID===fe.HTML&&(e.insertionMode=gt.AFTER_AFTER_FRAMESET)}(this,e);break;case gt.AFTER_AFTER_BODY:Nn(this,e)}}onEof(e){switch(this.insertionMode){case gt.INITIAL:Ht(this,e);break;case gt.BEFORE_HTML:Ut(this,e);break;case gt.BEFORE_HEAD:Ft(this,e);break;case gt.IN_HEAD:xt(this,e);break;case gt.IN_HEAD_NO_SCRIPT:Gt(this,e);break;case gt.AFTER_HEAD:Yt(this,e);break;case gt.IN_BODY:case gt.IN_TABLE:case gt.IN_CAPTION:case gt.IN_COLUMN_GROUP:case gt.IN_TABLE_BODY:case gt.IN_ROW:case gt.IN_CELL:case gt.IN_SELECT:case gt.IN_SELECT_IN_TABLE:$t(this,e);break;case gt.TEXT:!function(e,t){e._err(t,j.eofInElementThatCanContainOnlyText),e.openElements.pop(),e.insertionMode=e.originalInsertionMode,e.onEof(t)}(this,e);break;case gt.IN_TABLE_TEXT:on(this,e);break;case gt.IN_TEMPLATE:An(this,e);break;case gt.AFTER_BODY:case gt.IN_FRAMESET:case gt.AFTER_FRAMESET:case gt.AFTER_AFTER_BODY:case gt.AFTER_AFTER_FRAMESET:Bt(this,e)}}onWhitespaceCharacter(e){if(this.skipNextNewLine&&(this.skipNextNewLine=!1,e.chars.charCodeAt(0)===x.LINE_FEED)){if(1===e.chars.length)return;e.chars=e.chars.substr(1)}if(this.tokenizer.inForeignNode)this._insertCharacters(e);else switch(this.insertionMode){case gt.IN_HEAD:case gt.IN_HEAD_NO_SCRIPT:case gt.AFTER_HEAD:case gt.TEXT:case gt.IN_COLUMN_GROUP:case gt.IN_SELECT:case gt.IN_SELECT_IN_TABLE:case gt.IN_FRAMESET:case gt.AFTER_FRAMESET:this._insertCharacters(e);break;case gt.IN_BODY:case gt.IN_CAPTION:case gt.IN_CELL:case gt.IN_TEMPLATE:case gt.AFTER_BODY:case gt.AFTER_AFTER_BODY:case gt.AFTER_AFTER_FRAMESET:Wt(this,e);break;case gt.IN_TABLE:case gt.IN_TABLE_BODY:case gt.IN_ROW:en(this,e);break;case gt.IN_TABLE_TEXT:sn(this,e)}}}function Dt(e,t){let n=e.activeFormattingElements.getElementEntryInScopeWithTagName(t.tagName);return n?e.openElements.contains(n.element)?e.openElements.hasInScope(t.tagID)||(n=null):(e.activeFormattingElements.removeEntry(n),n=null):Jt(e,t),n}function Ot(e,t){let n=null,r=e.openElements.stackTop;for(;r>=0;r--){const s=e.openElements.items[r];if(s===t.element)break;e._isSpecialElement(s,e.openElements.tagIDs[r])&&(n=s)}return n||(e.openElements.shortenToLength(r<0?0:r),e.activeFormattingElements.removeEntry(t)),n}function Lt(e,t,n){let r=t,s=e.openElements.getCommonAncestor(t);for(let a=0,o=s;o!==n;a++,o=s){s=e.openElements.getCommonAncestor(o);const n=e.activeFormattingElements.getElementEntry(o),i=n&&a>=Nt;!n||i?(i&&e.activeFormattingElements.removeEntry(n),e.openElements.remove(o)):(o=bt(e,n),r===t&&(e.activeFormattingElements.bookmark=n),e.treeAdapter.detachNode(r),e.treeAdapter.appendChild(o,r),r=o)}return r}function bt(e,t){const n=e.treeAdapter.getNamespaceURI(t.element),r=e.treeAdapter.createElement(t.token.tagName,n,t.token.attrs);return e.openElements.replace(t.element,r),t.element=r,r}function kt(e,t,n){const r=ge(e.treeAdapter.getTagName(t));if(e._isElementCausesFosterParenting(r))e._fosterParentElement(n);else{const s=e.treeAdapter.getNamespaceURI(t);r===fe.TEMPLATE&&s===me.HTML&&(t=e.treeAdapter.getTemplateContent(t)),e.treeAdapter.appendChild(t,n)}}function Pt(e,t,n){const r=e.treeAdapter.getNamespaceURI(n.element),{token:s}=n,a=e.treeAdapter.createElement(s.tagName,r,s.attrs);e._adoptNodes(t,a),e.treeAdapter.appendChild(t,a),e.activeFormattingElements.insertElementAfterBookmark(a,s),e.activeFormattingElements.removeEntry(n),e.openElements.remove(n.element),e.openElements.insertAfter(t,a,s.tagID)}function Mt(e,t){for(let n=0;n=n;r--)e._setEndLocation(e.openElements.items[r],t);if(!e.fragmentContext&&e.openElements.stackTop>=0){const n=e.openElements.items[0],r=e.treeAdapter.getNodeSourceCodeLocation(n);if(r&&!r.endTag&&(e._setEndLocation(n,t),e.openElements.stackTop>=1)){const n=e.openElements.items[1],r=e.treeAdapter.getNodeSourceCodeLocation(n);r&&!r.endTag&&e._setEndLocation(n,t)}}}}function Ht(e,t){e._err(t,j.missingDoctype,!0),e.treeAdapter.setDocumentMode(e.document,Ae.QUIRKS),e.insertionMode=gt.BEFORE_HTML,e._processToken(t)}function Ut(e,t){e._insertFakeRootElement(),e.insertionMode=gt.BEFORE_HEAD,e._processToken(t)}function Ft(e,t){e._insertFakeElement(_e.HEAD,fe.HEAD),e.headElement=e.openElements.current,e.insertionMode=gt.IN_HEAD,e._processToken(t)}function vt(e,t){switch(t.tagID){case fe.HTML:jt(e,t);break;case fe.BASE:case fe.BASEFONT:case fe.BGSOUND:case fe.LINK:case fe.META:e._appendElement(t,me.HTML),t.ackSelfClosing=!0;break;case fe.TITLE:e._switchToTextParsing(t,Oe.RCDATA);break;case fe.NOSCRIPT:e.options.scriptingEnabled?e._switchToTextParsing(t,Oe.RAWTEXT):(e._insertElement(t,me.HTML),e.insertionMode=gt.IN_HEAD_NO_SCRIPT);break;case fe.NOFRAMES:case fe.STYLE:e._switchToTextParsing(t,Oe.RAWTEXT);break;case fe.SCRIPT:e._switchToTextParsing(t,Oe.SCRIPT_DATA);break;case fe.TEMPLATE:e._insertTemplate(t),e.activeFormattingElements.insertMarker(),e.framesetOk=!1,e.insertionMode=gt.IN_TEMPLATE,e.tmplInsertionModeStack.unshift(gt.IN_TEMPLATE);break;case fe.HEAD:e._err(t,j.misplacedStartTagForHeadElement);break;default:xt(e,t)}}function wt(e,t){e.openElements.tmplCount>0?(e.openElements.generateImpliedEndTagsThoroughly(),e.openElements.currentTagId!==fe.TEMPLATE&&e._err(t,j.closingOfElementWithOpenChildElements),e.openElements.popUntilTagNamePopped(fe.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode()):e._err(t,j.endTagWithoutMatchingOpenElement)}function xt(e,t){e.openElements.pop(),e.insertionMode=gt.AFTER_HEAD,e._processToken(t)}function Gt(e,t){const n=t.type===Z.EOF?j.openElementsLeftAfterEof:j.disallowedContentInNoscriptInHead;e._err(t,n),e.openElements.pop(),e.insertionMode=gt.IN_HEAD,e._processToken(t)}function Yt(e,t){e._insertFakeElement(_e.BODY,fe.BODY),e.insertionMode=gt.IN_BODY,qt(e,t)}function qt(e,t){switch(t.type){case Z.CHARACTER:Qt(e,t);break;case Z.WHITESPACE_CHARACTER:Wt(e,t);break;case Z.COMMENT:yt(e,t);break;case Z.START_TAG:jt(e,t);break;case Z.END_TAG:Zt(e,t);break;case Z.EOF:$t(e,t)}}function Wt(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t)}function Qt(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t),e.framesetOk=!1}function Xt(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,me.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function Vt(e){const t=$(e,de.TYPE);return null!=t&&t.toLowerCase()===_t}function Kt(e,t){e._switchToTextParsing(t,Oe.RAWTEXT)}function zt(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,me.HTML)}function jt(e,t){switch(t.tagID){case fe.I:case fe.S:case fe.B:case fe.U:case fe.EM:case fe.TT:case fe.BIG:case fe.CODE:case fe.FONT:case fe.SMALL:case fe.STRIKE:case fe.STRONG:!function(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,me.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}(e,t);break;case fe.A:!function(e,t){const n=e.activeFormattingElements.getElementEntryInScopeWithTagName(_e.A);n&&(Mt(e,t),e.openElements.remove(n.element),e.activeFormattingElements.removeEntry(n)),e._reconstructActiveFormattingElements(),e._insertElement(t,me.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}(e,t);break;case fe.H1:case fe.H2:case fe.H3:case fe.H4:case fe.H5:case fe.H6:!function(e,t){e.openElements.hasInButtonScope(fe.P)&&e._closePElement(),Se(e.openElements.currentTagId)&&e.openElements.pop(),e._insertElement(t,me.HTML)}(e,t);break;case fe.P:case fe.DL:case fe.OL:case fe.UL:case fe.DIV:case fe.DIR:case fe.NAV:case fe.MAIN:case fe.MENU:case fe.ASIDE:case fe.CENTER:case fe.FIGURE:case fe.FOOTER:case fe.HEADER:case fe.HGROUP:case fe.DIALOG:case fe.DETAILS:case fe.ADDRESS:case fe.ARTICLE:case fe.SECTION:case fe.SUMMARY:case fe.FIELDSET:case fe.BLOCKQUOTE:case fe.FIGCAPTION:!function(e,t){e.openElements.hasInButtonScope(fe.P)&&e._closePElement(),e._insertElement(t,me.HTML)}(e,t);break;case fe.LI:case fe.DD:case fe.DT:!function(e,t){e.framesetOk=!1;const n=t.tagID;for(let r=e.openElements.stackTop;r>=0;r--){const t=e.openElements.tagIDs[r];if(n===fe.LI&&t===fe.LI||(n===fe.DD||n===fe.DT)&&(t===fe.DD||t===fe.DT)){e.openElements.generateImpliedEndTagsWithExclusion(t),e.openElements.popUntilTagNamePopped(t);break}if(t!==fe.ADDRESS&&t!==fe.DIV&&t!==fe.P&&e._isSpecialElement(e.openElements.items[r],t))break}e.openElements.hasInButtonScope(fe.P)&&e._closePElement(),e._insertElement(t,me.HTML)}(e,t);break;case fe.BR:case fe.IMG:case fe.WBR:case fe.AREA:case fe.EMBED:case fe.KEYGEN:Xt(e,t);break;case fe.HR:!function(e,t){e.openElements.hasInButtonScope(fe.P)&&e._closePElement(),e._appendElement(t,me.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}(e,t);break;case fe.RB:case fe.RTC:!function(e,t){e.openElements.hasInScope(fe.RUBY)&&e.openElements.generateImpliedEndTags(),e._insertElement(t,me.HTML)}(e,t);break;case fe.RT:case fe.RP:!function(e,t){e.openElements.hasInScope(fe.RUBY)&&e.openElements.generateImpliedEndTagsWithExclusion(fe.RTC),e._insertElement(t,me.HTML)}(e,t);break;case fe.PRE:case fe.LISTING:!function(e,t){e.openElements.hasInButtonScope(fe.P)&&e._closePElement(),e._insertElement(t,me.HTML),e.skipNextNewLine=!0,e.framesetOk=!1}(e,t);break;case fe.XMP:!function(e,t){e.openElements.hasInButtonScope(fe.P)&&e._closePElement(),e._reconstructActiveFormattingElements(),e.framesetOk=!1,e._switchToTextParsing(t,Oe.RAWTEXT)}(e,t);break;case fe.SVG:!function(e,t){e._reconstructActiveFormattingElements(),mt(t),dt(t),t.selfClosing?e._appendElement(t,me.SVG):e._insertElement(t,me.SVG),t.ackSelfClosing=!0}(e,t);break;case fe.HTML:!function(e,t){0===e.openElements.tmplCount&&e.treeAdapter.adoptAttributes(e.openElements.items[0],t.attrs)}(e,t);break;case fe.BASE:case fe.LINK:case fe.META:case fe.STYLE:case fe.TITLE:case fe.SCRIPT:case fe.BGSOUND:case fe.BASEFONT:case fe.TEMPLATE:vt(e,t);break;case fe.BODY:!function(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&0===e.openElements.tmplCount&&(e.framesetOk=!1,e.treeAdapter.adoptAttributes(n,t.attrs))}(e,t);break;case fe.FORM:!function(e,t){const n=e.openElements.tmplCount>0;e.formElement&&!n||(e.openElements.hasInButtonScope(fe.P)&&e._closePElement(),e._insertElement(t,me.HTML),n||(e.formElement=e.openElements.current))}(e,t);break;case fe.NOBR:!function(e,t){e._reconstructActiveFormattingElements(),e.openElements.hasInScope(fe.NOBR)&&(Mt(e,t),e._reconstructActiveFormattingElements()),e._insertElement(t,me.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}(e,t);break;case fe.MATH:!function(e,t){e._reconstructActiveFormattingElements(),pt(t),dt(t),t.selfClosing?e._appendElement(t,me.MATHML):e._insertElement(t,me.MATHML),t.ackSelfClosing=!0}(e,t);break;case fe.TABLE:!function(e,t){e.treeAdapter.getDocumentMode(e.document)!==Ae.QUIRKS&&e.openElements.hasInButtonScope(fe.P)&&e._closePElement(),e._insertElement(t,me.HTML),e.framesetOk=!1,e.insertionMode=gt.IN_TABLE}(e,t);break;case fe.INPUT:!function(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,me.HTML),Vt(t)||(e.framesetOk=!1),t.ackSelfClosing=!0}(e,t);break;case fe.PARAM:case fe.TRACK:case fe.SOURCE:!function(e,t){e._appendElement(t,me.HTML),t.ackSelfClosing=!0}(e,t);break;case fe.IMAGE:!function(e,t){t.tagName=_e.IMG,t.tagID=fe.IMG,Xt(e,t)}(e,t);break;case fe.BUTTON:!function(e,t){e.openElements.hasInScope(fe.BUTTON)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(fe.BUTTON)),e._reconstructActiveFormattingElements(),e._insertElement(t,me.HTML),e.framesetOk=!1}(e,t);break;case fe.APPLET:case fe.OBJECT:case fe.MARQUEE:!function(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,me.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1}(e,t);break;case fe.IFRAME:!function(e,t){e.framesetOk=!1,e._switchToTextParsing(t,Oe.RAWTEXT)}(e,t);break;case fe.SELECT:!function(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,me.HTML),e.framesetOk=!1,e.insertionMode=e.insertionMode===gt.IN_TABLE||e.insertionMode===gt.IN_CAPTION||e.insertionMode===gt.IN_TABLE_BODY||e.insertionMode===gt.IN_ROW||e.insertionMode===gt.IN_CELL?gt.IN_SELECT_IN_TABLE:gt.IN_SELECT}(e,t);break;case fe.OPTION:case fe.OPTGROUP:!function(e,t){e.openElements.currentTagId===fe.OPTION&&e.openElements.pop(),e._reconstructActiveFormattingElements(),e._insertElement(t,me.HTML)}(e,t);break;case fe.NOEMBED:Kt(e,t);break;case fe.FRAMESET:!function(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();e.framesetOk&&n&&(e.treeAdapter.detachNode(n),e.openElements.popAllUpToHtmlElement(),e._insertElement(t,me.HTML),e.insertionMode=gt.IN_FRAMESET)}(e,t);break;case fe.TEXTAREA:!function(e,t){e._insertElement(t,me.HTML),e.skipNextNewLine=!0,e.tokenizer.state=Oe.RCDATA,e.originalInsertionMode=e.insertionMode,e.framesetOk=!1,e.insertionMode=gt.TEXT}(e,t);break;case fe.NOSCRIPT:e.options.scriptingEnabled?Kt(e,t):zt(e,t);break;case fe.PLAINTEXT:!function(e,t){e.openElements.hasInButtonScope(fe.P)&&e._closePElement(),e._insertElement(t,me.HTML),e.tokenizer.state=Oe.PLAINTEXT}(e,t);break;case fe.COL:case fe.TH:case fe.TD:case fe.TR:case fe.HEAD:case fe.FRAME:case fe.TBODY:case fe.TFOOT:case fe.THEAD:case fe.CAPTION:case fe.COLGROUP:break;default:zt(e,t)}}function Jt(e,t){const n=t.tagName,r=t.tagID;for(let s=e.openElements.stackTop;s>0;s--){const t=e.openElements.items[s],a=e.openElements.tagIDs[s];if(r===a&&(r!==fe.UNKNOWN||e.treeAdapter.getTagName(t)===n)){e.openElements.generateImpliedEndTagsWithExclusion(r),e.openElements.stackTop>=s&&e.openElements.shortenToLength(s);break}if(e._isSpecialElement(t,a))break}}function Zt(e,t){switch(t.tagID){case fe.A:case fe.B:case fe.I:case fe.S:case fe.U:case fe.EM:case fe.TT:case fe.BIG:case fe.CODE:case fe.FONT:case fe.NOBR:case fe.SMALL:case fe.STRIKE:case fe.STRONG:Mt(e,t);break;case fe.P:!function(e){e.openElements.hasInButtonScope(fe.P)||e._insertFakeElement(_e.P,fe.P),e._closePElement()}(e);break;case fe.DL:case fe.UL:case fe.OL:case fe.DIR:case fe.DIV:case fe.NAV:case fe.PRE:case fe.MAIN:case fe.MENU:case fe.ASIDE:case fe.BUTTON:case fe.CENTER:case fe.FIGURE:case fe.FOOTER:case fe.HEADER:case fe.HGROUP:case fe.DIALOG:case fe.ADDRESS:case fe.ARTICLE:case fe.DETAILS:case fe.SECTION:case fe.SUMMARY:case fe.LISTING:case fe.FIELDSET:case fe.BLOCKQUOTE:case fe.FIGCAPTION:!function(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n))}(e,t);break;case fe.LI:!function(e){e.openElements.hasInListItemScope(fe.LI)&&(e.openElements.generateImpliedEndTagsWithExclusion(fe.LI),e.openElements.popUntilTagNamePopped(fe.LI))}(e);break;case fe.DD:case fe.DT:!function(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTagsWithExclusion(n),e.openElements.popUntilTagNamePopped(n))}(e,t);break;case fe.H1:case fe.H2:case fe.H3:case fe.H4:case fe.H5:case fe.H6:!function(e){e.openElements.hasNumberedHeaderInScope()&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilNumberedHeaderPopped())}(e);break;case fe.BR:!function(e){e._reconstructActiveFormattingElements(),e._insertFakeElement(_e.BR,fe.BR),e.openElements.pop(),e.framesetOk=!1}(e);break;case fe.BODY:!function(e,t){if(e.openElements.hasInScope(fe.BODY)&&(e.insertionMode=gt.AFTER_BODY,e.options.sourceCodeLocationInfo)){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e._setEndLocation(n,t)}}(e,t);break;case fe.HTML:!function(e,t){e.openElements.hasInScope(fe.BODY)&&(e.insertionMode=gt.AFTER_BODY,_n(e,t))}(e,t);break;case fe.FORM:!function(e){const t=e.openElements.tmplCount>0,{formElement:n}=e;t||(e.formElement=null),(n||t)&&e.openElements.hasInScope(fe.FORM)&&(e.openElements.generateImpliedEndTags(),t?e.openElements.popUntilTagNamePopped(fe.FORM):n&&e.openElements.remove(n))}(e);break;case fe.APPLET:case fe.OBJECT:case fe.MARQUEE:!function(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker())}(e,t);break;case fe.TEMPLATE:wt(e,t);break;default:Jt(e,t)}}function $t(e,t){e.tmplInsertionModeStack.length>0?An(e,t):Bt(e,t)}function en(e,t){if(It.has(e.openElements.currentTagId))switch(e.pendingCharacterTokens.length=0,e.hasNonWhitespacePendingCharacterToken=!1,e.originalInsertionMode=e.insertionMode,e.insertionMode=gt.IN_TABLE_TEXT,t.type){case Z.CHARACTER:an(e,t);break;case Z.WHITESPACE_CHARACTER:sn(e,t)}else rn(e,t)}function tn(e,t){switch(t.tagID){case fe.TD:case fe.TH:case fe.TR:!function(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(_e.TBODY,fe.TBODY),e.insertionMode=gt.IN_TABLE_BODY,En(e,t)}(e,t);break;case fe.STYLE:case fe.SCRIPT:case fe.TEMPLATE:vt(e,t);break;case fe.COL:!function(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(_e.COLGROUP,fe.COLGROUP),e.insertionMode=gt.IN_COLUMN_GROUP,ln(e,t)}(e,t);break;case fe.FORM:!function(e,t){e.formElement||0!==e.openElements.tmplCount||(e._insertElement(t,me.HTML),e.formElement=e.openElements.current,e.openElements.pop())}(e,t);break;case fe.TABLE:!function(e,t){e.openElements.hasInTableScope(fe.TABLE)&&(e.openElements.popUntilTagNamePopped(fe.TABLE),e._resetInsertionMode(),e._processStartTag(t))}(e,t);break;case fe.TBODY:case fe.TFOOT:case fe.THEAD:!function(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,me.HTML),e.insertionMode=gt.IN_TABLE_BODY}(e,t);break;case fe.INPUT:!function(e,t){Vt(t)?e._appendElement(t,me.HTML):rn(e,t),t.ackSelfClosing=!0}(e,t);break;case fe.CAPTION:!function(e,t){e.openElements.clearBackToTableContext(),e.activeFormattingElements.insertMarker(),e._insertElement(t,me.HTML),e.insertionMode=gt.IN_CAPTION}(e,t);break;case fe.COLGROUP:!function(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,me.HTML),e.insertionMode=gt.IN_COLUMN_GROUP}(e,t);break;default:rn(e,t)}}function nn(e,t){switch(t.tagID){case fe.TABLE:e.openElements.hasInTableScope(fe.TABLE)&&(e.openElements.popUntilTagNamePopped(fe.TABLE),e._resetInsertionMode());break;case fe.TEMPLATE:wt(e,t);break;case fe.BODY:case fe.CAPTION:case fe.COL:case fe.COLGROUP:case fe.HTML:case fe.TBODY:case fe.TD:case fe.TFOOT:case fe.TH:case fe.THEAD:case fe.TR:break;default:rn(e,t)}}function rn(e,t){const n=e.fosterParentingEnabled;e.fosterParentingEnabled=!0,qt(e,t),e.fosterParentingEnabled=n}function sn(e,t){e.pendingCharacterTokens.push(t)}function an(e,t){e.pendingCharacterTokens.push(t),e.hasNonWhitespacePendingCharacterToken=!0}function on(e,t){let n=0;if(e.hasNonWhitespacePendingCharacterToken)for(;n0&&e.openElements.currentTagId===fe.OPTION&&e.openElements.tagIDs[e.openElements.stackTop-1]===fe.OPTGROUP&&e.openElements.pop(),e.openElements.currentTagId===fe.OPTGROUP&&e.openElements.pop();break;case fe.OPTION:e.openElements.currentTagId===fe.OPTION&&e.openElements.pop();break;case fe.SELECT:e.openElements.hasInSelectScope(fe.SELECT)&&(e.openElements.popUntilTagNamePopped(fe.SELECT),e._resetInsertionMode());break;case fe.TEMPLATE:wt(e,t)}}function An(e,t){e.openElements.tmplCount>0?(e.openElements.popUntilTagNamePopped(fe.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode(),e.onEof(t)):Bt(e,t)}function _n(e,t){var n;if(t.tagID===fe.HTML){if(e.fragmentContext||(e.insertionMode=gt.AFTER_AFTER_BODY),e.options.sourceCodeLocationInfo&&e.openElements.tagIDs[0]===fe.HTML){e._setEndLocation(e.openElements.items[0],t);const r=e.openElements.items[1];r&&!(null===(n=e.treeAdapter.getNodeSourceCodeLocation(r))||void 0===n?void 0:n.endTag)&&e._setEndLocation(r,t)}}else fn(e,t)}function fn(e,t){e.insertionMode=gt.IN_BODY,qt(e,t)}function Nn(e,t){e.insertionMode=gt.IN_BODY,qt(e,t)}function gn(e){for(;e.treeAdapter.getNamespaceURI(e.openElements.current)!==me.HTML&&!e._isIntegrationPoint(e.openElements.currentTagId,e.openElements.current);)e.openElements.pop()}const Cn=new Map([[34,"""],[38,"&"],[39,"'"],[60,"<"],[62,">"]]);String.prototype.codePointAt;function In(e,t){return function(n){let r,s=0,a="";for(;r=e.exec(n);)s!==r.index&&(a+=n.substring(s,r.index)),a+=t.get(r[0].charCodeAt(0)),s=r.index+1;return a+n.substring(s)}}In(/[&<>'"]/g,Cn),In(/["&\u00A0]/g,new Map([[34,"""],[38,"&"],[160," "]])),In(/[&<>\u00A0]/g,new Map([[38,"&"],[60,"<"],[62,">"],[160," "]])),new Set([_e.AREA,_e.BASE,_e.BASEFONT,_e.BGSOUND,_e.BR,_e.COL,_e.EMBED,_e.FRAME,_e.HR,_e.IMG,_e.INPUT,_e.KEYGEN,_e.LINK,_e.META,_e.PARAM,_e.SOURCE,_e.TRACK,_e.WBR]);var Sn=n(2571),Rn=n(3013);const Dn=new Set(["mdxFlowExpression","mdxJsxFlowElement","mdxJsxTextElement","mdxTextExpression","mdxjsEsm"]),On={sourceCodeLocationInfo:!0,scriptingEnabled:!1};function Ln(e,t){const n=function(e){const t="root"===e.type?e.children[0]:e;return Boolean(t&&("doctype"===t.type||"element"===t.type&&"html"===t.tagName.toLowerCase()))}(e),r=(0,k.A)("type",{handlers:{root:kn,element:Pn,text:Mn,comment:Hn,doctype:yn,raw:Un},unknown:Fn}),s={parser:n?new Rt(On):Rt.getFragmentParser(void 0,On),handle(e){r(e,s)},stitches:!1,options:t||{}};r(e,s),vn(s,(0,Sn.PW)());const a=I(n?s.parser.document:s.parser.getFragment(),{file:s.options.file});return s.stitches&&(0,Rn.YR)(a,"comment",(function(e,t,n){const r=e;if(r.value.stitch&&n&&void 0!==t){return n.children[t]=r.value.stitch,t}})),"root"===a.type&&1===a.children.length&&a.children[0].type===e.type?a.children[0]:a}function bn(e,t){let n=-1;if(e)for(;++n{"use strict";n.d(t,{a:()=>i});var r=n(2675),s=n(2571),a=n(795);const o={}.hasOwnProperty;function i(e,t){let n={type:"root",children:[]};const r=c({schema:t?{...a.j,...t}:a.j,stack:[]},e);return r&&(Array.isArray(r)?1===r.length?n=r[0]:n.children=r:n=r),n}function c(e,t){if(t&&"object"===typeof t){const n=t;switch("string"===typeof n.type?n.type:""){case"comment":return function(e,t){if(e.schema.allowComments){const e="string"===typeof t.value?t.value:"",n=e.indexOf("--\x3e"),r={type:"comment",value:n<0?e:e.slice(0,n)};return h(r,t),r}}(e,n);case"doctype":return function(e,t){if(e.schema.allowDoctypes){const e={type:"doctype"};return h(e,t),e}}(e,n);case"element":return function(e,t){const n="string"===typeof t.tagName?t.tagName:"";e.stack.push(n);const r=l(e,t.children),s=function(e,t){const n=e.stack[e.stack.length-1],r=e.schema.attributes,s=e.schema.required,a=r&&o.call(r,n)?r[n]:void 0,i=r&&o.call(r,"*")?r["*"]:void 0,c=t&&"object"===typeof t?t:{},l={};let E;for(E in c)if(o.call(c,E)){const t=c[E];let n=u(e,T(a,E),E,t);null!==n&&void 0!==n||(n=u(e,T(i,E),E,t)),null!==n&&void 0!==n&&(l[E]=n)}if(s&&o.call(s,n)){const e=s[n];for(E in e)o.call(e,E)&&!o.call(l,E)&&(l[E]=e[E])}return l}(e,t.properties);e.stack.pop();let a=!1;if(n&&"*"!==n&&(!e.schema.tagNames||e.schema.tagNames.includes(n))&&(a=!0,e.schema.ancestors&&o.call(e.schema.ancestors,n))){const t=e.schema.ancestors[n];let r=-1;for(a=!1;++r-1&&a>l||i>-1&&a>i||c>-1&&a>c)return!0;let u=-1;for(;++u1){let e=!1,n=0;for(;++n4&&"data"===t.slice(0,4).toLowerCase())return n}},795:(e,t,n)=>{"use strict";n.d(t,{j:()=>s});const r=["ariaDescribedBy","ariaLabel","ariaLabelledBy"],s={ancestors:{tbody:["table"],td:["table"],th:["table"],thead:["table"],tfoot:["table"],tr:["table"]},attributes:{a:[...r,"dataFootnoteBackref","dataFootnoteRef",["className","data-footnote-backref"],"href"],blockquote:["cite"],code:[["className",/^language-./]],del:["cite"],div:["itemScope","itemType"],dl:[...r],h2:[["className","sr-only"]],img:[...r,"longDesc","src"],input:[["disabled",!0],["type","checkbox"]],ins:["cite"],li:[["className","task-list-item"]],ol:[...r,["className","contains-task-list"]],q:["cite"],section:["dataFootnotes",["className","footnotes"]],source:["srcSet"],summary:[...r],table:[...r],ul:[...r,["className","contains-task-list"]],"*":["abbr","accept","acceptCharset","accessKey","action","align","alt","axis","border","cellPadding","cellSpacing","char","charOff","charSet","checked","clear","colSpan","color","cols","compact","coords","dateTime","dir","encType","frame","hSpace","headers","height","hrefLang","htmlFor","id","isMap","itemProp","label","lang","maxLength","media","method","multiple","name","noHref","noShade","noWrap","open","prompt","readOnly","rev","rowSpan","rows","rules","scope","selected","shape","size","span","start","summary","tabIndex","title","useMap","vAlign","value","width"]},clobber:["ariaDescribedBy","ariaLabelledBy","id","name"],clobberPrefix:"user-content-",protocols:{cite:["http","https"],href:["http","https","irc","ircs","mailto","xmpp"],longDesc:["http","https"],src:["http","https"]},required:{input:{disabled:!0,type:"checkbox"}},strip:["script"],tagNames:["a","b","blockquote","br","code","dd","del","details","div","dl","dt","em","h1","h2","h3","h4","h5","h6","hr","i","img","input","ins","kbd","li","ol","p","picture","pre","q","rp","rt","ruby","s","samp","section","source","span","strike","strong","sub","summary","sup","table","tbody","td","tfoot","th","thead","tr","tt","ul","var"]}},8492:(e,t,n)=>{"use strict";n.d(t,{V:()=>Z});var r=n(3083),s=n(2632),a=n(9032);const o=/["&'<>`]/g,i=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,c=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,l=/[|\\{}()[\]^$+*?.]/g,u=new WeakMap;function E(e,t){return e=e.replace(t.subset?function(e){let t=u.get(e);t||(t=function(e){const t=[];let n=-1;for(;++n",OElig:"\u0152",oelig:"\u0153",Scaron:"\u0160",scaron:"\u0161",Yuml:"\u0178",circ:"\u02c6",tilde:"\u02dc",ensp:"\u2002",emsp:"\u2003",thinsp:"\u2009",zwnj:"\u200c",zwj:"\u200d",lrm:"\u200e",rlm:"\u200f",ndash:"\u2013",mdash:"\u2014",lsquo:"\u2018",rsquo:"\u2019",sbquo:"\u201a",ldquo:"\u201c",rdquo:"\u201d",bdquo:"\u201e",dagger:"\u2020",Dagger:"\u2021",permil:"\u2030",lsaquo:"\u2039",rsaquo:"\u203a",euro:"\u20ac"},d=["cent","copy","divide","gt","lt","not","para","times"],A={}.hasOwnProperty,_={};let f;for(f in m)A.call(m,f)&&(_[m[f]]=f);const N=/[^\dA-Za-z]/;function g(e,t,n){let r,s=function(e,t,n){const r="&#x"+e.toString(16).toUpperCase();return n&&t&&!h.test(String.fromCharCode(t))?r:r+";"}(e,t,n.omitOptionalSemicolons);if((n.useNamedReferences||n.useShortestReferences)&&(r=function(e,t,n,r){const s=String.fromCharCode(e);if(A.call(_,s)){const e=_[s],a="&"+e;return n&&p.includes(e)&&!d.includes(e)&&(!r||t&&61!==t&&N.test(String.fromCharCode(t)))?a:a+";"}return""}(e,t,n.omitOptionalSemicolons,n.attribute)),(n.useShortestReferences||!r)&&n.useShortestReferences){const r=function(e,t,n){const r="&#"+String(e);return n&&t&&!T.test(String.fromCharCode(t))?r:r+";"}(e,t,n.omitOptionalSemicolons);r.length|^->||--!>|"],R=["<",">"];var D=n(5643),O=n(7237),L=n(1964),b=n(6838);const k=/[ \t\n\f\r]/g;function P(e){return"object"===typeof e?"text"===e.type&&M(e.value):M(e)}function M(e){return""===e.replace(k,"")}const y=U(1),B=U(-1),H=[];function U(e){return function(t,n,r){const s=t?t.children:H;let a=(n||0)+e,o=s[a];if(!r)for(;o&&P(o);)a+=e,o=s[a];return o}}const F={}.hasOwnProperty;function v(e){return function(t,n,r){return F.call(e,t.tagName)&&e[t.tagName](t,n,r)}}const w=v({body:function(e,t,n){const r=y(n,t);return!r||"comment"!==r.type},caption:x,colgroup:x,dd:function(e,t,n){const r=y(n,t);return!r||"element"===r.type&&("dt"===r.tagName||"dd"===r.tagName)},dt:function(e,t,n){const r=y(n,t);return Boolean(r&&"element"===r.type&&("dt"===r.tagName||"dd"===r.tagName))},head:x,html:function(e,t,n){const r=y(n,t);return!r||"comment"!==r.type},li:function(e,t,n){const r=y(n,t);return!r||"element"===r.type&&"li"===r.tagName},optgroup:function(e,t,n){const r=y(n,t);return!r||"element"===r.type&&"optgroup"===r.tagName},option:function(e,t,n){const r=y(n,t);return!r||"element"===r.type&&("option"===r.tagName||"optgroup"===r.tagName)},p:function(e,t,n){const r=y(n,t);return r?"element"===r.type&&("address"===r.tagName||"article"===r.tagName||"aside"===r.tagName||"blockquote"===r.tagName||"details"===r.tagName||"div"===r.tagName||"dl"===r.tagName||"fieldset"===r.tagName||"figcaption"===r.tagName||"figure"===r.tagName||"footer"===r.tagName||"form"===r.tagName||"h1"===r.tagName||"h2"===r.tagName||"h3"===r.tagName||"h4"===r.tagName||"h5"===r.tagName||"h6"===r.tagName||"header"===r.tagName||"hgroup"===r.tagName||"hr"===r.tagName||"main"===r.tagName||"menu"===r.tagName||"nav"===r.tagName||"ol"===r.tagName||"p"===r.tagName||"pre"===r.tagName||"section"===r.tagName||"table"===r.tagName||"ul"===r.tagName):!n||!("element"===n.type&&("a"===n.tagName||"audio"===n.tagName||"del"===n.tagName||"ins"===n.tagName||"map"===n.tagName||"noscript"===n.tagName||"video"===n.tagName))},rp:G,rt:G,tbody:function(e,t,n){const r=y(n,t);return!r||"element"===r.type&&("tbody"===r.tagName||"tfoot"===r.tagName)},td:Y,tfoot:function(e,t,n){return!y(n,t)},th:Y,thead:function(e,t,n){const r=y(n,t);return Boolean(r&&"element"===r.type&&("tbody"===r.tagName||"tfoot"===r.tagName))},tr:function(e,t,n){const r=y(n,t);return!r||"element"===r.type&&"tr"===r.tagName}});function x(e,t,n){const r=y(n,t,!0);return!r||"comment"!==r.type&&!("text"===r.type&&P(r.value.charAt(0)))}function G(e,t,n){const r=y(n,t);return!r||"element"===r.type&&("rp"===r.tagName||"rt"===r.tagName)}function Y(e,t,n){const r=y(n,t);return!r||"element"===r.type&&("td"===r.tagName||"th"===r.tagName)}const q=v({body:function(e){const t=y(e,-1,!0);return!t||"comment"!==t.type&&!("text"===t.type&&P(t.value.charAt(0)))&&!("element"===t.type&&("meta"===t.tagName||"link"===t.tagName||"script"===t.tagName||"style"===t.tagName||"template"===t.tagName))},colgroup:function(e,t,n){const r=B(n,t),s=y(e,-1,!0);if(n&&r&&"element"===r.type&&"colgroup"===r.tagName&&w(r,n.children.indexOf(r),n))return!1;return Boolean(s&&"element"===s.type&&"col"===s.tagName)},head:function(e){const t=e.children,n=[];let r=-1;for(;++r0},html:function(e){const t=y(e,-1);return!t||"comment"!==t.type},tbody:function(e,t,n){const r=B(n,t),s=y(e,-1);if(n&&r&&"element"===r.type&&("thead"===r.tagName||"tbody"===r.tagName)&&w(r,n.children.indexOf(r),n))return!1;return Boolean(s&&"element"===s.type&&"tr"===s.tagName)}});const W={name:[["\t\n\f\r &/=>".split(""),"\t\n\f\r \"&'/=>`".split("")],["\0\t\n\f\r \"&'/<=>".split(""),"\0\t\n\f\r \"&'/<=>`".split("")]],unquoted:[["\t\n\f\r &>".split(""),"\0\t\n\f\r \"&'<=>`".split("")],["\0\t\n\f\r \"&'<=>`".split(""),"\0\t\n\f\r \"&'<=>`".split("")]],single:[["&'".split(""),"\"&'`".split("")],["\0&'".split(""),"\0\"&'`".split("")]],double:[['"&'.split(""),"\"&'`".split("")],['\0"&'.split(""),"\0\"&'`".split("")]]};function Q(e,t,n){const r=(0,L.I)(e.schema,t),s=e.settings.allowParseErrors&&"html"===e.schema.space?0:1,a=e.settings.allowDangerousCharacters?0:1;let o,i=e.quote;if(!r.overloadedBoolean||n!==r.attribute&&""!==n?(r.boolean||r.overloadedBoolean&&"string"!==typeof n)&&(n=Boolean(n)):n=!0,null===n||void 0===n||!1===n||"number"===typeof n&&Number.isNaN(n))return"";const c=C(r.attribute,Object.assign({},e.settings.characterReferences,{subset:W.name[s][a]}));return!0===n?c:(n=Array.isArray(n)?(r.commaSeparated?O.A:b.A)(n,{padLeft:!e.settings.tightCommaSeparatedLists}):String(n),e.settings.collapseEmptyAttributes&&!n?c:(e.settings.preferUnquoted&&(o=C(n,Object.assign({},e.settings.characterReferences,{attribute:!0,subset:W.unquoted[s][a]}))),o!==n&&(e.settings.quoteSmart&&(0,D.D)(n,i)>(0,D.D)(n,e.alternative)&&(i=e.alternative),o=i+C(n,Object.assign({},e.settings.characterReferences,{subset:("'"===i?W.single:W.double)[s][a],attribute:!0}))+i),c+(o?"="+o:o)))}const X=["<","&"];function V(e,t,n,r){return!n||"element"!==n.type||"script"!==n.tagName&&"style"!==n.tagName?C(e.value,Object.assign({},r.settings.characterReferences,{subset:X})):e.value}const K=(0,a.A)("type",{invalid:function(e){throw new Error("Expected node, not `"+e+"`")},unknown:function(e){throw new Error("Cannot compile unknown node `"+e.type+"`")},handlers:{comment:function(e,t,n,r){return r.settings.bogusComments?"":"\x3c!--"+e.value.replace(I,(function(e){return C(e,Object.assign({},r.settings.characterReferences,{subset:R}))}))+"--\x3e"},doctype:function(e,t,n,r){return""},element:function(e,t,n,r){const a=r.schema,o="svg"!==a.space&&r.settings.omitOptionalTags;let i="svg"===a.space?r.settings.closeEmptyElements:r.settings.voids.includes(e.tagName.toLowerCase());const c=[];let l;"html"===a.space&&"svg"===e.tagName&&(r.schema=s.JW);const u=function(e,t){const n=[];let r,s=-1;if(t)for(r in t)if(null!==t[r]&&void 0!==t[r]){const s=Q(e,r,t[r]);s&&n.push(s)}for(;++s")),c.push(E),i||o&&w(e,t,n)||c.push(""),c.join("")},raw:function(e,t,n,r){return r.settings.allowDangerousHtml?e.value:V(e,0,n,r)},root:function(e,t,n,r){return r.all(e)},text:V}});const z={},j={},J=[];function Z(e,t){const n=t||z,a=n.quote||'"',o='"'===a?"'":'"';if('"'!==a&&"'"!==a)throw new Error("Invalid quote `"+a+"`, expected `'` or `\"`");return{one:$,all:ee,settings:{omitOptionalTags:n.omitOptionalTags||!1,allowParseErrors:n.allowParseErrors||!1,allowDangerousCharacters:n.allowDangerousCharacters||!1,quoteSmart:n.quoteSmart||!1,preferUnquoted:n.preferUnquoted||!1,tightAttributes:n.tightAttributes||!1,upperDoctype:n.upperDoctype||!1,tightDoctype:n.tightDoctype||!1,bogusComments:n.bogusComments||!1,tightCommaSeparatedLists:n.tightCommaSeparatedLists||!1,tightSelfClosing:n.tightSelfClosing||!1,collapseEmptyAttributes:n.collapseEmptyAttributes||!1,allowDangerousHtml:n.allowDangerousHtml||!1,voids:n.voids||r.b,characterReferences:n.characterReferences||j,closeSelfClosing:n.closeSelfClosing||!1,closeEmptyElements:n.closeEmptyElements||!1},schema:"svg"===n.space?s.JW:s.qy,quote:a,alternative:o}.one(Array.isArray(e)?{type:"root",children:e}:e,void 0,void 0)}function $(e,t,n){return K(e,t,n,this)}function ee(e){const t=[],n=e&&e.children||J;let r=-1;for(;++r{"use strict";n.d(t,{b:()=>r});const r=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"]},3401:(e,t,n)=>{"use strict";function r(e){if("object"!==typeof e||null===e)return!1;const t=Object.getPrototypeOf(e);return(null===t||t===Object.prototype||null===Object.getPrototypeOf(t))&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}n.d(t,{A:()=>r})},4312:(e,t,n)=>{"use strict";function r(e,t){const n=String(e);let r=n.indexOf(t),s=r,a=0,o=0;if("string"!==typeof t)throw new TypeError("Expected substring");for(;-1!==r;)r===s?++a>o&&(o=a):a=1,s=r+t.length,r=n.indexOf(t,s);return o}n.d(t,{D:()=>r})},2632:(e,t,n)=>{"use strict";n.d(t,{qy:()=>_,JW:()=>f});class r{constructor(e,t,n){this.property=e,this.normal=t,n&&(this.space=n)}}function s(e,t){const n={},s={};let a=-1;for(;++a"xlink:"+t.slice(5).toLowerCase(),properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}}),u=c({space:"xml",transform:(e,t)=>"xml:"+t.slice(3).toLowerCase(),properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function E(e,t){return t in e?e[t]:t}function h(e,t){return E(e,t.toLowerCase())}const T=c({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:h,properties:{xmlns:null,xmlnsXLink:null}});var p=n(429);const m=c({transform:(e,t)=>"role"===t?t:"aria-"+t.slice(4).toLowerCase(),properties:{ariaActiveDescendant:null,ariaAtomic:p.booleanish,ariaAutoComplete:null,ariaBusy:p.booleanish,ariaChecked:p.booleanish,ariaColCount:p.number,ariaColIndex:p.number,ariaColSpan:p.number,ariaControls:p.spaceSeparated,ariaCurrent:null,ariaDescribedBy:p.spaceSeparated,ariaDetails:null,ariaDisabled:p.booleanish,ariaDropEffect:p.spaceSeparated,ariaErrorMessage:null,ariaExpanded:p.booleanish,ariaFlowTo:p.spaceSeparated,ariaGrabbed:p.booleanish,ariaHasPopup:null,ariaHidden:p.booleanish,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:p.spaceSeparated,ariaLevel:p.number,ariaLive:null,ariaModal:p.booleanish,ariaMultiLine:p.booleanish,ariaMultiSelectable:p.booleanish,ariaOrientation:null,ariaOwns:p.spaceSeparated,ariaPlaceholder:null,ariaPosInSet:p.number,ariaPressed:p.booleanish,ariaReadOnly:p.booleanish,ariaRelevant:null,ariaRequired:p.booleanish,ariaRoleDescription:p.spaceSeparated,ariaRowCount:p.number,ariaRowIndex:p.number,ariaRowSpan:p.number,ariaSelected:p.booleanish,ariaSetSize:p.number,ariaSort:null,ariaValueMax:p.number,ariaValueMin:p.number,ariaValueNow:p.number,ariaValueText:null,role:null}}),d=c({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:h,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:p.commaSeparated,acceptCharset:p.spaceSeparated,accessKey:p.spaceSeparated,action:null,allow:null,allowFullScreen:p.boolean,allowPaymentRequest:p.boolean,allowUserMedia:p.boolean,alt:null,as:null,async:p.boolean,autoCapitalize:null,autoComplete:p.spaceSeparated,autoFocus:p.boolean,autoPlay:p.boolean,blocking:p.spaceSeparated,capture:null,charSet:null,checked:p.boolean,cite:null,className:p.spaceSeparated,cols:p.number,colSpan:null,content:null,contentEditable:p.booleanish,controls:p.boolean,controlsList:p.spaceSeparated,coords:p.number|p.commaSeparated,crossOrigin:null,data:null,dateTime:null,decoding:null,default:p.boolean,defer:p.boolean,dir:null,dirName:null,disabled:p.boolean,download:p.overloadedBoolean,draggable:p.booleanish,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:p.boolean,formTarget:null,headers:p.spaceSeparated,height:p.number,hidden:p.boolean,high:p.number,href:null,hrefLang:null,htmlFor:p.spaceSeparated,httpEquiv:p.spaceSeparated,id:null,imageSizes:null,imageSrcSet:null,inert:p.boolean,inputMode:null,integrity:null,is:null,isMap:p.boolean,itemId:null,itemProp:p.spaceSeparated,itemRef:p.spaceSeparated,itemScope:p.boolean,itemType:p.spaceSeparated,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:p.boolean,low:p.number,manifest:null,max:null,maxLength:p.number,media:null,method:null,min:null,minLength:p.number,multiple:p.boolean,muted:p.boolean,name:null,nonce:null,noModule:p.boolean,noValidate:p.boolean,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:p.boolean,optimum:p.number,pattern:null,ping:p.spaceSeparated,placeholder:null,playsInline:p.boolean,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:p.boolean,referrerPolicy:null,rel:p.spaceSeparated,required:p.boolean,reversed:p.boolean,rows:p.number,rowSpan:p.number,sandbox:p.spaceSeparated,scope:null,scoped:p.boolean,seamless:p.boolean,selected:p.boolean,shadowRootClonable:p.boolean,shadowRootDelegatesFocus:p.boolean,shadowRootMode:null,shape:null,size:p.number,sizes:null,slot:null,span:p.number,spellCheck:p.booleanish,src:null,srcDoc:null,srcLang:null,srcSet:null,start:p.number,step:null,style:null,tabIndex:p.number,target:null,title:null,translate:null,type:null,typeMustMatch:p.boolean,useMap:null,value:p.booleanish,width:p.number,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:p.spaceSeparated,axis:null,background:null,bgColor:null,border:p.number,borderColor:null,bottomMargin:p.number,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:p.boolean,declare:p.boolean,event:null,face:null,frame:null,frameBorder:null,hSpace:p.number,leftMargin:p.number,link:null,longDesc:null,lowSrc:null,marginHeight:p.number,marginWidth:p.number,noResize:p.boolean,noHref:p.boolean,noShade:p.boolean,noWrap:p.boolean,object:null,profile:null,prompt:null,rev:null,rightMargin:p.number,rules:null,scheme:null,scrolling:p.booleanish,standby:null,summary:null,text:null,topMargin:p.number,valueType:null,version:null,vAlign:null,vLink:null,vSpace:p.number,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:p.boolean,disableRemotePlayback:p.boolean,prefix:null,property:null,results:p.number,security:null,unselectable:null}}),A=c({space:"svg",attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},transform:E,properties:{about:p.commaOrSpaceSeparated,accentHeight:p.number,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:p.number,amplitude:p.number,arabicForm:null,ascent:p.number,attributeName:null,attributeType:null,azimuth:p.number,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:p.number,by:null,calcMode:null,capHeight:p.number,className:p.spaceSeparated,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:p.number,diffuseConstant:p.number,direction:null,display:null,dur:null,divisor:p.number,dominantBaseline:null,download:p.boolean,dx:null,dy:null,edgeMode:null,editable:null,elevation:p.number,enableBackground:null,end:null,event:null,exponent:p.number,externalResourcesRequired:null,fill:null,fillOpacity:p.number,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:p.commaSeparated,g2:p.commaSeparated,glyphName:p.commaSeparated,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:p.number,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:p.number,horizOriginX:p.number,horizOriginY:p.number,id:null,ideographic:p.number,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:p.number,k:p.number,k1:p.number,k2:p.number,k3:p.number,k4:p.number,kernelMatrix:p.commaOrSpaceSeparated,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:p.number,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:p.number,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:p.number,overlineThickness:p.number,paintOrder:null,panose1:null,path:null,pathLength:p.number,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:p.spaceSeparated,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:p.number,pointsAtY:p.number,pointsAtZ:p.number,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:p.commaOrSpaceSeparated,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:p.commaOrSpaceSeparated,rev:p.commaOrSpaceSeparated,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:p.commaOrSpaceSeparated,requiredFeatures:p.commaOrSpaceSeparated,requiredFonts:p.commaOrSpaceSeparated,requiredFormats:p.commaOrSpaceSeparated,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:p.number,specularExponent:p.number,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:p.number,strikethroughThickness:p.number,string:null,stroke:null,strokeDashArray:p.commaOrSpaceSeparated,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:p.number,strokeOpacity:p.number,strokeWidth:null,style:null,surfaceScale:p.number,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:p.commaOrSpaceSeparated,tabIndex:p.number,tableValues:null,target:null,targetX:p.number,targetY:p.number,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:p.commaOrSpaceSeparated,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:p.number,underlineThickness:p.number,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:p.number,values:null,vAlphabetic:p.number,vMathematical:p.number,vectorEffect:null,vHanging:p.number,vIdeographic:p.number,version:null,vertAdvY:p.number,vertOriginX:p.number,vertOriginY:p.number,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:p.number,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),_=s([u,l,T,m,d],"html"),f=s([u,l,T,m,A],"svg")},1964:(e,t,n)=>{"use strict";n.d(t,{I:()=>l});var r=n(1740),s=n(6934),a=n(2246);const o=/^data[-\w.:]+$/i,i=/-[a-z]/g,c=/[A-Z]/g;function l(e,t){const n=(0,r.S)(t);let l=t,h=a.R;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&"data"===n.slice(0,4)&&o.test(t)){if("-"===t.charAt(4)){const e=t.slice(5).replace(i,E);l="data"+e.charAt(0).toUpperCase()+e.slice(1)}else{const e=t.slice(4);if(!i.test(e)){let n=e.replace(c,u);"-"!==n.charAt(0)&&(n="-"+n),t="data"+n}}h=s.E}return new h(l,t)}function u(e){return"-"+e.toLowerCase()}function E(e){return e.charAt(1).toUpperCase()}},1740:(e,t,n)=>{"use strict";function r(e){return e.toLowerCase()}n.d(t,{S:()=>r})},6934:(e,t,n)=>{"use strict";n.d(t,{E:()=>o});var r=n(2246),s=n(429);const a=Object.keys(s);class o extends r.R{constructor(e,t,n,r){let o=-1;if(super(e,t),i(this,"space",r),"number"===typeof n)for(;++o{"use strict";n.d(t,{R:()=>r});class r{constructor(e,t){this.property=e,this.attribute=t}}r.prototype.space=null,r.prototype.boolean=!1,r.prototype.booleanish=!1,r.prototype.overloadedBoolean=!1,r.prototype.number=!1,r.prototype.commaSeparated=!1,r.prototype.spaceSeparated=!1,r.prototype.commaOrSpaceSeparated=!1,r.prototype.mustUseProperty=!1,r.prototype.defined=!1},429:(e,t,n)=>{"use strict";n.r(t),n.d(t,{boolean:()=>s,booleanish:()=>a,commaOrSpaceSeparated:()=>u,commaSeparated:()=>l,number:()=>i,overloadedBoolean:()=>o,spaceSeparated:()=>c});let r=0;const s=E(),a=E(),o=E(),i=E(),c=E(),l=E(),u=E();function E(){return 2**++r}},6838:(e,t,n)=>{"use strict";function r(e){const t=String(e||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function s(e){return e.join(" ").trim()}n.d(t,{A:()=>s,q:()=>r})},7724:(e,t,n)=>{"use strict";n.d(t,{E:()=>a});const r=9,s=32;function a(e){const t=String(e),n=/\r?\n|\r/g;let r=n.exec(t),s=0;const a=[];for(;r;)a.push(o(t.slice(s,r.index),s>0,!0),r[0]),s=r.index+r[0].length,r=n.exec(t);return a.push(o(t.slice(s),s>0,!1)),a.join("")}function o(e,t,n){let a=0,o=e.length;if(t){let t=e.codePointAt(a);for(;t===r||t===s;)a++,t=e.codePointAt(a)}if(n){let t=e.codePointAt(o-1);for(;t===r||t===s;)o--,t=e.codePointAt(o-1)}return o>a?e.slice(a,o):""}},345:(e,t,n)=>{"use strict";function r(){const e=[],t={run:function(...t){let n=-1;const r=t.pop();if("function"!==typeof r)throw new TypeError("Expected function as last argument, not "+r);!function s(a,...o){const i=e[++n];let c=-1;if(a)r(a);else{for(;++ct.length;let i;r&&t.push(s);try{i=e.apply(this,t)}catch(a){if(r&&n)throw a;return s(a)}r||(i&&i.then&&"function"===typeof i.then?i.then(o,s):i instanceof Error?s(i):o(i))}function s(e,...r){n||(n=!0,t(e,...r))}function o(e){s(null,e)}}(i,s)(...o):r(null,...o)}}(null,...t)},use:function(n){if("function"!==typeof n)throw new TypeError("Expected `middelware` to be a function, not "+n);return e.push(n),t}};return t}n.d(t,{S:()=>r})},7626:(e,t,n)=>{"use strict";n.d(t,{C:()=>r});const r=function(e){if(null===e||void 0===e)return a;if("function"===typeof e)return s(e);if("object"===typeof e)return Array.isArray(e)?function(e){const t=[];let n=-1;for(;++n{"use strict";n.d(t,{G1:()=>o,PW:()=>s,Y:()=>r});const r=a("end"),s=a("start");function a(e){return function(t){const n=t&&t.position&&t.position[e]||{};if("number"===typeof n.line&&n.line>0&&"number"===typeof n.column&&n.column>0)return{line:n.line,column:n.column,offset:"number"===typeof n.offset&&n.offset>-1?n.offset:void 0}}}function o(e){const t=s(e),n=r(e);if(t&&n)return{start:t,end:n}}},6014:(e,t,n)=>{"use strict";function r(e){return e&&"object"===typeof e?"position"in e||"type"in e?a(e.position):"start"in e||"end"in e?a(e):"line"in e||"column"in e?s(e):"":""}function s(e){return o(e&&e.line)+":"+o(e&&e.column)}function a(e){return s(e&&e.start)+"-"+s(e&&e.end)}function o(e){return e&&"number"===typeof e?e:1}n.d(t,{L:()=>r})},3878:(e,t,n)=>{"use strict";n.d(t,{dc:()=>o,VG:()=>c});var r=n(7626);const s=[],a=!0,o=!1,i="skip";function c(e,t,n,c){let l;"function"===typeof t&&"function"!==typeof n?(c=n,n=t):l=t;const u=(0,r.C)(l),E=c?-1:1;!function e(r,l,h){const T=r&&"object"===typeof r?r:{};if("string"===typeof T.type){const e="string"===typeof T.tagName?T.tagName:"string"===typeof T.name?T.name:void 0;Object.defineProperty(p,"name",{value:"node ("+r.type+(e?"<"+e+">":"")+")"})}return p;function p(){let T,p,m,d=s;if((!t||u(r,l,h[h.length-1]||void 0))&&(d=function(e){if(Array.isArray(e))return e;if("number"===typeof e)return[a,e];return null===e||void 0===e?s:[e]}(n(r,h)),d[0]===o))return d;if("children"in r&&r.children){const t=r;if(t.children&&d[0]!==i)for(p=(c?t.children.length:-1)+E,m=h.concat(t);p>-1&&p{"use strict";n.d(t,{YR:()=>s});var r=n(3878);function s(e,t,n,s){let a,o,i;"function"===typeof t&&"function"!==typeof n?(o=void 0,i=t,a=n):(o=t,i=n,a=s),(0,r.VG)(e,o,(function(e,t){const n=t[t.length-1],r=n?n.children.indexOf(e):void 0;return i(e,r,n)}),a)}},1977:(e,t,n)=>{"use strict";n.d(t,{T:()=>E});var r=n(6014);class s extends Error{constructor(e,t,n){super(),"string"===typeof t&&(n=t,t=void 0);let s="",a={},o=!1;if(t&&(a="line"in t&&"column"in t||"start"in t&&"end"in t?{place:t}:"type"in t?{ancestors:[t],place:t.position}:{...t}),"string"===typeof e?s=e:!a.cause&&e&&(o=!0,s=e.message,a.cause=e),!a.ruleId&&!a.source&&"string"===typeof n){const e=n.indexOf(":");-1===e?a.ruleId=n:(a.source=n.slice(0,e),a.ruleId=n.slice(e+1))}if(!a.place&&a.ancestors&&a.ancestors){const e=a.ancestors[a.ancestors.length-1];e&&(a.place=e.position)}const i=a.place&&"start"in a.place?a.place.start:a.place;this.ancestors=a.ancestors||void 0,this.cause=a.cause||void 0,this.column=i?i.column:void 0,this.fatal=void 0,this.file,this.message=s,this.line=i?i.line:void 0,this.name=(0,r.L)(a.place)||"1:1",this.place=a.place||void 0,this.reason=this.message,this.ruleId=a.ruleId||void 0,this.source=a.source||void 0,this.stack=o&&a.cause&&"string"===typeof a.cause.stack?a.cause.stack:"",this.actual,this.expected,this.note,this.url}}s.prototype.file="",s.prototype.name="",s.prototype.reason="",s.prototype.message="",s.prototype.stack="",s.prototype.column=void 0,s.prototype.line=void 0,s.prototype.ancestors=void 0,s.prototype.cause=void 0,s.prototype.fatal=void 0,s.prototype.place=void 0,s.prototype.ruleId=void 0,s.prototype.source=void 0;const a={basename:function(e,t){if(void 0!==t&&"string"!==typeof t)throw new TypeError('"ext" argument must be a string');o(e);let n,r=0,s=-1,a=e.length;if(void 0===t||0===t.length||t.length>e.length){for(;a--;)if(47===e.codePointAt(a)){if(n){r=a+1;break}}else s<0&&(n=!0,s=a+1);return s<0?"":e.slice(r,s)}if(t===e)return"";let i=-1,c=t.length-1;for(;a--;)if(47===e.codePointAt(a)){if(n){r=a+1;break}}else i<0&&(n=!0,i=a+1),c>-1&&(e.codePointAt(a)===t.codePointAt(c--)?c<0&&(s=a):(c=-1,s=i));r===s?s=i:s<0&&(s=e.length);return e.slice(r,s)},dirname:function(e){if(o(e),0===e.length)return".";let t,n=-1,r=e.length;for(;--r;)if(47===e.codePointAt(r)){if(t){n=r;break}}else t||(t=!0);return n<0?47===e.codePointAt(0)?"/":".":1===n&&47===e.codePointAt(0)?"//":e.slice(0,n)},extname:function(e){o(e);let t,n=e.length,r=-1,s=0,a=-1,i=0;for(;n--;){const o=e.codePointAt(n);if(47!==o)r<0&&(t=!0,r=n+1),46===o?a<0?a=n:1!==i&&(i=1):a>-1&&(i=-1);else if(t){s=n+1;break}}if(a<0||r<0||0===i||1===i&&a===r-1&&a===s+1)return"";return e.slice(a,r)},join:function(...e){let t,n=-1;for(;++n2){if(r=s.lastIndexOf("/"),r!==s.length-1){r<0?(s="",a=0):(s=s.slice(0,r),a=s.length-1-s.lastIndexOf("/")),o=c,i=0;continue}}else if(s.length>0){s="",a=0,o=c,i=0;continue}t&&(s=s.length>0?s+"/..":"..",a=2)}else s.length>0?s+="/"+e.slice(o+1,c):s=e.slice(o+1,c),a=c-o-1;o=c,i=0}else 46===n&&i>-1?i++:i=-1}return s}(e,!t);0!==n.length||t||(n=".");n.length>0&&47===e.codePointAt(e.length-1)&&(n+="/");return t?"/"+n:n}(t)},sep:"/"};function o(e){if("string"!==typeof e)throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const i={cwd:function(){return"/"}};function c(e){return Boolean(null!==e&&"object"===typeof e&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&void 0===e.auth)}function l(e){if("string"===typeof e)e=new URL(e);else if(!c(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if("file:"!==e.protocol){const e=new TypeError("The URL must be of scheme file");throw e.code="ERR_INVALID_URL_SCHEME",e}return function(e){if(""!==e.hostname){const e=new TypeError('File URL host must be "localhost" or empty on darwin');throw e.code="ERR_INVALID_FILE_URL_HOST",e}const t=e.pathname;let n=-1;for(;++n{"use strict";n.d(t,{A:()=>s});const r={}.hasOwnProperty;function s(e,t){const n=t||{};function s(t,...n){let a=s.invalid;const o=s.handlers;if(t&&r.call(t,e)){const n=String(t[e]);a=r.call(o,n)?o[n]:s.unknown}if(a)return a.call(this,t,...n)}return s.handlers=n.handlers||{},s.invalid=n.invalid,s.unknown=n.unknown,s}}}]); \ No newline at end of file diff --git a/static/js/636.e8f05cd5.chunk.js b/static/js/636.e8f05cd5.chunk.js new file mode 100644 index 00000000..2186c46d --- /dev/null +++ b/static/js/636.e8f05cd5.chunk.js @@ -0,0 +1,2 @@ +/*! For license information please see 636.e8f05cd5.chunk.js.LICENSE.txt */ +(self.webpackChunk_web_index=self.webpackChunk_web_index||[]).push([[636],{2636:(e,r,t)=>{"use strict";t.r(r),t.d(r,{default:()=>p});var n=t(1914),s=t(4857),a=t(3987),i=t(5375),o=t(6796),c=t.n(o),l=t(1394),d=t(4097),u=t(8413);function p(){const[e,r]=(0,l.useState)(!0),{from:t}=d.A.parse(window.location.search),[o,p]=(0,l.useState)({Name:"",Pwd:"",Emial:""});if((0,s.k)())return window.location.href=t||"/",null;const f=e=>{const{name:r,value:t}=e.target;p(Object.assign(Object.assign({},o),{[r]:t}))};return(0,n.jsxs)("div",{className:"login card",children:[(0,n.jsx)(u.m,{children:(0,n.jsx)("title",{children:"\u767b\u5f55\uff5c\u6ce8\u518c - UPV - free animes no ads"})}),(0,n.jsx)("div",{className:"tabs",children:(0,n.jsx)("ul",{children:(0,n.jsx)("li",{className:c()({"is-active":e}),onClick:()=>r(!0),children:(0,n.jsx)("a",{children:"\u767b\u5f55"})})})}),(0,n.jsx)("form",{onSubmit:r=>{r.preventDefault(),(e?a.pY.post("/login",{data:{Name:o.Name,Pwd:o.Pwd}}):a.pY.post("/register",{data:{Name:o.Name,Pwd:o.Pwd}})).then((e=>{e.err||(i.N.login(e.data.user),window.location.href=t||"/")}))},children:(0,n.jsxs)("div",{className:"card-body",children:[(0,n.jsxs)("div",{className:"l",children:[!e&&(0,n.jsxs)("div",{className:"field",children:[(0,n.jsx)("label",{className:"label",children:"\u90ae\u7bb1"}),(0,n.jsx)("p",{className:"control",children:(0,n.jsx)("input",{className:"input",type:"email",placeholder:"Email",name:"Emial",onChange:f,required:!0})})]}),!e&&(0,n.jsxs)("div",{className:"field is-grouped",children:[(0,n.jsx)("p",{className:"control is-expanded",children:(0,n.jsx)("input",{className:"input",type:"text",placeholder:"Code",name:"Code",onChange:f,required:!0})}),(0,n.jsx)("p",{className:"control is-exdivanded",children:(0,n.jsx)("button",{className:"button is-primary",type:"button",children:"\u83b7\u53d6\u9a8c\u8bc1\u7801"})})]}),(0,n.jsxs)("div",{className:"field",children:[(0,n.jsx)("label",{className:"label",children:"\u7528\u6237\u540d"}),(0,n.jsx)("p",{className:"control",children:(0,n.jsx)("input",{className:"input",type:"text",placeholder:"Username",name:"Name",onChange:f,required:!0})})]}),(0,n.jsx)("div",{className:"field",children:(0,n.jsxs)("div",{className:"control",children:[(0,n.jsx)("label",{className:"label",children:"\u5bc6\u7801"}),(0,n.jsx)("input",{className:"input",type:"password",placeholder:"Password",name:"Pwd",onChange:f,required:!0}),(0,n.jsxs)("p",{style:{textAlign:"right",marginTop:".5em",fontSize:"12px"},children:[(0,n.jsx)("span",{style:{float:"left",color:"gray"},children:"\u672a\u6ce8\u518c\u5c06\u81ea\u52a8\u6ce8\u518c"}),(0,n.jsx)("a",{href:"#",children:"forget password?"})]})]})}),(0,n.jsx)("div",{className:"field",children:(0,n.jsx)("p",{className:"control",children:(0,n.jsx)("button",{className:"button is-primary is-fullwidth",type:"submit",children:e?"\u767b\u5f55":"\u6ce8\u518c"})})})]}),(0,n.jsxs)("div",{className:"r",children:[(0,n.jsx)("p",{className:"field",children:"\u793e\u4ea4\u5e73\u53f0\u767b\u5f55"}),(0,n.jsx)("div",{className:"field",children:(0,n.jsxs)("button",{className:"button",type:"button",children:[(0,n.jsx)("span",{className:"icon qq",children:(0,n.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512",children:(0,n.jsx)("path",{d:"M433.754 420.445c-11.526 1.393-44.86-52.741-44.86-52.741 0 31.345-16.136 72.247-51.051 101.786 16.842 5.192 54.843 19.167 45.803 34.421-7.316 12.343-125.51 7.881-159.632 4.037-34.122 3.844-152.316 8.306-159.632-4.037-9.045-15.25 28.918-29.214 45.783-34.415-34.92-29.539-51.059-70.445-51.059-101.792 0 0-33.334 54.134-44.859 52.741-5.37-.65-12.424-29.644 9.347-99.704 10.261-33.024 21.995-60.478 40.144-105.779C60.683 98.063 108.982.006 224 0c113.737.006 163.156 96.133 160.264 214.963 18.118 45.223 29.912 72.85 40.144 105.778 21.768 70.06 14.716 99.053 9.346 99.704z"})})}),(0,n.jsx)("span",{children:"QQ"})]})}),(0,n.jsx)("div",{className:"field",children:(0,n.jsxs)("button",{className:"button",type:"button",children:[(0,n.jsx)("span",{className:"icon github",children:(0,n.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 480 512",children:(0,n.jsx)("path",{d:"M186.1 328.7c0 20.9-10.9 55.1-36.7 55.1s-36.7-34.2-36.7-55.1 10.9-55.1 36.7-55.1 36.7 34.2 36.7 55.1zM480 278.2c0 31.9-3.2 65.7-17.5 95-37.9 76.6-142.1 74.8-216.7 74.8-75.8 0-186.2 2.7-225.6-74.8-14.6-29-20.2-63.1-20.2-95 0-41.9 13.9-81.5 41.5-113.6-5.2-15.8-7.7-32.4-7.7-48.8 0-21.5 4.9-32.3 14.6-51.8 45.3 0 74.3 9 108.8 36 29-6.9 58.8-10 88.7-10 27 0 54.2 2.9 80.4 9.2 34-26.7 63-35.2 107.8-35.2 9.8 19.5 14.6 30.3 14.6 51.8 0 16.4-2.6 32.7-7.7 48.2 27.5 32.4 39 72.3 39 114.2zm-64.3 50.5c0-43.9-26.7-82.6-73.5-82.6-18.9 0-37 3.4-56 6-14.9 2.3-29.8 3.2-45.1 3.2-15.2 0-30.1-.9-45.1-3.2-18.7-2.6-37-6-56-6-46.8 0-73.5 38.7-73.5 82.6 0 87.8 80.4 101.3 150.4 101.3h48.2c70.3 0 150.6-13.4 150.6-101.3zm-82.6-55.1c-25.8 0-36.7 34.2-36.7 55.1s10.9 55.1 36.7 55.1 36.7-34.2 36.7-55.1-10.9-55.1-36.7-55.1z"})})}),(0,n.jsx)("span",{children:"GitHub"})]})}),(0,n.jsx)("div",{className:"field",children:(0,n.jsxs)("button",{className:"button",type:"button",children:[(0,n.jsx)("span",{className:"icon google",children:(0,n.jsxs)("svg",{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"2280",width:"200",height:"200",children:[(0,n.jsx)("path",{d:"M960.032 521.92c0-36.8-3.04-63.68-9.632-91.552H521.184v166.24h251.936c-5.088 41.312-32.512 103.552-93.44 145.344l-0.864 5.568 135.68 103.04 9.408 0.928c86.368-78.176 136.128-193.152 136.128-329.536z",fill:"#4285F4","p-id":"2281"}),(0,n.jsx)("path",{d:"M521.152 960c123.424 0 227.04-39.808 302.72-108.512l-144.224-109.536c-38.624 26.4-90.432 44.8-158.496 44.8A274.688 274.688 0 0 1 261.12 600.64l-5.344 0.448-141.12 107.008-1.856 5.024C187.968 859.456 342.4 960 521.152 960z",fill:"#34A853","p-id":"2282"}),(0,n.jsx)("path",{d:"M261.12 600.608a270.816 270.816 0 0 1-15.232-88.64c0-30.848 5.568-60.704 14.72-88.576l-0.256-5.92-142.88-108.768-4.672 2.176A441.12 441.12 0 0 0 64.032 512c0 72.192 17.792 140.384 48.768 201.088L261.12 600.64z",fill:"#FBBC05","p-id":"2283"}),(0,n.jsx)("path",{d:"M521.152 237.216c85.856 0 143.744 36.352 176.768 66.72l129.024-123.456C747.712 108.288 644.576 64 521.152 64 342.4 64 187.968 164.544 112.768 310.88l147.84 112.512c37.056-108 139.68-186.176 260.544-186.176z",fill:"#EB4335","p-id":"2284"})]})}),(0,n.jsx)("span",{children:"Google"})]})}),(0,n.jsx)("div",{className:"field",children:(0,n.jsxs)("button",{className:"button",type:"button",children:[(0,n.jsx)("span",{className:"icon",children:(0,n.jsx)("svg",{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"7592",width:"200",height:"200",children:(0,n.jsx)("path",{d:"M546.986667 1024H56.490667A56.533333 56.533333 0 0 1 0 967.466667V56.533333C0 25.301333 25.301333 0 56.533333 0h910.933334C998.698667 0 1024 25.301333 1024 56.533333v910.933334c0 31.232-25.301333 56.533333-56.533333 56.533333H706.56v-396.544h133.12l19.882667-154.538667H706.56V374.186667c0-44.714667 12.373333-75.221333 76.586667-75.221334h81.834666v-138.24c-14.165333-1.92-62.72-6.101333-119.253333-6.101333-118.016 0-198.784 72.021333-198.784 204.288v113.92H413.525333v154.581333h133.418667V1024z",fill:"#3B5998","p-id":"7593"})})}),(0,n.jsx)("span",{children:"Facebook"})]})}),(0,n.jsx)("div",{className:"field",children:(0,n.jsxs)("div",{className:"agreement",children:["\u767b\u5f55\u5373\u8868\u793a\u60a8\u540c\u610f",(0,n.jsx)("a",{href:"",children:"\u300a\u7528\u6237\u534f\u8bae\u300b"}),"\u548c",(0,n.jsx)("a",{href:"",children:"\u300a\u9690\u79c1\u653f\u7b56\u300b"})]})})]})]})})]})}},6796:(e,r)=>{var t;!function(){"use strict";var n={}.hasOwnProperty;function s(){for(var e="",r=0;r{"use strict";t.d(r,{A:()=>O});var n={};t.r(n),t.d(n,{exclude:()=>S,extract:()=>v,parse:()=>N,parseUrl:()=>k,pick:()=>C,stringify:()=>w,stringifyUrl:()=>F});const s="%[a-f0-9]{2}",a=new RegExp("("+s+")|([^%]+?)","gi"),i=new RegExp("("+s+")+","gi");function o(e,r){try{return[decodeURIComponent(e.join(""))]}catch{}if(1===e.length)return e;r=r||1;const t=e.slice(0,r),n=e.slice(r);return Array.prototype.concat.call([],o(t),o(n))}function c(e){try{return decodeURIComponent(e)}catch{let r=e.match(a)||[];for(let t=1;tnull===e||void 0===e,f=e=>encodeURIComponent(e).replaceAll(/[!'()*]/g,(e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`)),m=Symbol("encodeFragmentIdentifier");function h(e){if("string"!==typeof e||1!==e.length)throw new TypeError("arrayFormatSeparator must be single character string")}function x(e,r){return r.encode?r.strict?f(e):encodeURIComponent(e):e}function j(e,r){return r.decode?l(e):e}function y(e){return Array.isArray(e)?e.sort():"object"===typeof e?y(Object.keys(e)).sort(((e,r)=>Number(e)-Number(r))).map((r=>e[r])):e}function g(e){const r=e.indexOf("#");return-1!==r&&(e=e.slice(0,r)),e}function b(e,r){return r.parseNumbers&&!Number.isNaN(Number(e))&&"string"===typeof e&&""!==e.trim()?e=Number(e):!r.parseBooleans||null===e||"true"!==e.toLowerCase()&&"false"!==e.toLowerCase()||(e="true"===e.toLowerCase()),e}function v(e){const r=(e=g(e)).indexOf("?");return-1===r?"":e.slice(r+1)}function N(e,r){h((r={decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1,...r}).arrayFormatSeparator);const t=function(e){let r;switch(e.arrayFormat){case"index":return(e,t,n)=>{r=/\[(\d*)]$/.exec(e),e=e.replace(/\[\d*]$/,""),r?(void 0===n[e]&&(n[e]={}),n[e][r[1]]=t):n[e]=t};case"bracket":return(e,t,n)=>{r=/(\[])$/.exec(e),e=e.replace(/\[]$/,""),r?void 0!==n[e]?n[e]=[...n[e],t]:n[e]=[t]:n[e]=t};case"colon-list-separator":return(e,t,n)=>{r=/(:list)$/.exec(e),e=e.replace(/:list$/,""),r?void 0!==n[e]?n[e]=[...n[e],t]:n[e]=[t]:n[e]=t};case"comma":case"separator":return(r,t,n)=>{const s="string"===typeof t&&t.includes(e.arrayFormatSeparator),a="string"===typeof t&&!s&&j(t,e).includes(e.arrayFormatSeparator);t=a?j(t,e):t;const i=s||a?t.split(e.arrayFormatSeparator).map((r=>j(r,e))):null===t?t:j(t,e);n[r]=i};case"bracket-separator":return(r,t,n)=>{const s=/(\[])$/.test(r);if(r=r.replace(/\[]$/,""),!s)return void(n[r]=t?j(t,e):t);const a=null===t?[]:t.split(e.arrayFormatSeparator).map((r=>j(r,e)));void 0!==n[r]?n[r]=[...n[r],...a]:n[r]=a};default:return(e,r,t)=>{void 0!==t[e]?t[e]=[...[t[e]].flat(),r]:t[e]=r}}}(r),n=Object.create(null);if("string"!==typeof e)return n;if(!(e=e.trim().replace(/^[?#&]/,"")))return n;for(const s of e.split("&")){if(""===s)continue;const e=r.decode?s.replaceAll("+"," "):s;let[a,i]=d(e,"=");void 0===a&&(a=e),i=void 0===i?null:["comma","separator","bracket-separator"].includes(r.arrayFormat)?i:j(i,r),t(j(a,r),i,n)}for(const[s,a]of Object.entries(n))if("object"===typeof a&&null!==a)for(const[e,t]of Object.entries(a))a[e]=b(t,r);else n[s]=b(a,r);return!1===r.sort?n:(!0===r.sort?Object.keys(n).sort():Object.keys(n).sort(r.sort)).reduce(((e,r)=>{const t=n[r];return e[r]=Boolean(t)&&"object"===typeof t&&!Array.isArray(t)?y(t):t,e}),Object.create(null))}function w(e,r){if(!e)return"";h((r={encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:",",...r}).arrayFormatSeparator);const t=t=>r.skipNull&&p(e[t])||r.skipEmptyString&&""===e[t],n=function(e){switch(e.arrayFormat){case"index":return r=>(t,n)=>{const s=t.length;return void 0===n||e.skipNull&&null===n||e.skipEmptyString&&""===n?t:null===n?[...t,[x(r,e),"[",s,"]"].join("")]:[...t,[x(r,e),"[",x(s,e),"]=",x(n,e)].join("")]};case"bracket":return r=>(t,n)=>void 0===n||e.skipNull&&null===n||e.skipEmptyString&&""===n?t:null===n?[...t,[x(r,e),"[]"].join("")]:[...t,[x(r,e),"[]=",x(n,e)].join("")];case"colon-list-separator":return r=>(t,n)=>void 0===n||e.skipNull&&null===n||e.skipEmptyString&&""===n?t:null===n?[...t,[x(r,e),":list="].join("")]:[...t,[x(r,e),":list=",x(n,e)].join("")];case"comma":case"separator":case"bracket-separator":{const r="bracket-separator"===e.arrayFormat?"[]=":"=";return t=>(n,s)=>void 0===s||e.skipNull&&null===s||e.skipEmptyString&&""===s?n:(s=null===s?"":s,0===n.length?[[x(t,e),r,x(s,e)].join("")]:[[n,x(s,e)].join(e.arrayFormatSeparator)])}default:return r=>(t,n)=>void 0===n||e.skipNull&&null===n||e.skipEmptyString&&""===n?t:null===n?[...t,x(r,e)]:[...t,[x(r,e),"=",x(n,e)].join("")]}}(r),s={};for(const[i,o]of Object.entries(e))t(i)||(s[i]=o);const a=Object.keys(s);return!1!==r.sort&&a.sort(r.sort),a.map((t=>{const s=e[t];return void 0===s?"":null===s?x(t,r):Array.isArray(s)?0===s.length&&"bracket-separator"===r.arrayFormat?x(t,r)+"[]":s.reduce(n(t),[]).join("&"):x(t,r)+"="+x(s,r)})).filter((e=>e.length>0)).join("&")}function k(e,r){r={decode:!0,...r};let[t,n]=d(e,"#");return void 0===t&&(t=e),{url:t?.split("?")?.[0]??"",query:N(v(e),r),...r&&r.parseFragmentIdentifier&&n?{fragmentIdentifier:j(n,r)}:{}}}function F(e,r){r={encode:!0,strict:!0,[m]:!0,...r};const t=g(e.url).split("?")[0]||"";let n=w({...N(v(e.url),{sort:!1}),...e.query},r);n&&=`?${n}`;let s=function(e){let r="";const t=e.indexOf("#");return-1!==t&&(r=e.slice(t)),r}(e.url);if("string"===typeof e.fragmentIdentifier){const n=new URL(t);n.hash=e.fragmentIdentifier,s=r[m]?n.hash:`#${e.fragmentIdentifier}`}return`${t}${n}${s}`}function C(e,r,t){t={parseFragmentIdentifier:!0,[m]:!1,...t};const{url:n,query:s,fragmentIdentifier:a}=k(e,t);return F({url:n,query:u(s,r),fragmentIdentifier:a},t)}function S(e,r,t){return C(e,Array.isArray(r)?e=>!r.includes(e):(e,t)=>!r(e,t),t)}const O=n}}]); \ No newline at end of file diff --git a/static/js/570.a518d501.chunk.js.LICENSE.txt b/static/js/636.e8f05cd5.chunk.js.LICENSE.txt similarity index 100% rename from static/js/570.a518d501.chunk.js.LICENSE.txt rename to static/js/636.e8f05cd5.chunk.js.LICENSE.txt diff --git a/static/js/647.94cc1f9d.chunk.js b/static/js/647.94cc1f9d.chunk.js deleted file mode 100644 index b58990b6..00000000 --- a/static/js/647.94cc1f9d.chunk.js +++ /dev/null @@ -1,2 +0,0 @@ -/*! For license information please see 647.94cc1f9d.chunk.js.LICENSE.txt */ -(self.webpackChunk_web_index=self.webpackChunk_web_index||[]).push([[647],{2726:(e,t,i)=>{"use strict";i.d(t,{A:()=>s});i(548);const s=i.p+"static/media/recommend.7ba275a22dc6fc70d627a573dd2a26b5.svg"},3902:(e,t,i)=>{"use strict";i.d(t,{A:()=>l});var s=i(568),a=i(4676),r=i(6638),n=i.n(r);function l({title:e,icon:t,videos:i,asideTitle:r,aside:l,moreUrl:c,isLive:d}){return(0,s.jsxs)("div",{className:n()("upv-grid",{"col-2":r,"is-live":d}),children:[(0,s.jsxs)("div",{className:"upv-card-list",children:[(0,s.jsxs)("div",{className:"list-header",children:[(0,s.jsxs)("div",{children:[t&&(0,s.jsx)("img",{src:t,alt:e}),(0,s.jsx)("h2",{children:e})]}),c&&i&&i.length>0&&(0,s.jsxs)("a",{className:"list-header__more",href:c,target:"_blank",children:["more",(0,s.jsxs)("svg",{width:"10",height:"10",viewBox:"0 0 9 9",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"channel-entry-more__link--arrow",children:[(0,s.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.50588 3.40623C7.40825 3.3086 7.24996 3.3086 7.15232 3.40623L4.41244 6.14612L1.67255 3.40623C1.57491 3.3086 1.41662 3.3086 1.31899 3.40623C1.22136 3.50386 1.22136 3.66215 1.31899 3.75978L4.11781 6.5586C4.28053 6.72132 4.54434 6.72132 4.70706 6.5586L7.50588 3.75978C7.60351 3.66215 7.60351 3.50386 7.50588 3.40623Z",fill:"currentColor"}),(0,s.jsx)("path",{d:"M7.15232 3.40623L7.50588 3.75978L7.50588 3.75978L7.15232 3.40623ZM7.50588 3.40623L7.15232 3.75978L7.15233 3.75978L7.50588 3.40623ZM4.41244 6.14612L4.05888 6.49967C4.15265 6.59344 4.27983 6.64612 4.41244 6.64612C4.54504 6.64612 4.67222 6.59344 4.76599 6.49967L4.41244 6.14612ZM1.67255 3.40623L2.0261 3.05268L2.0261 3.05268L1.67255 3.40623ZM1.31899 3.40623L0.965439 3.05268L0.965439 3.05268L1.31899 3.40623ZM1.31899 3.75978L1.67255 3.40623V3.40623L1.31899 3.75978ZM4.11781 6.5586L3.76425 6.91215L4.11781 6.5586ZM4.70706 6.5586L4.35351 6.20505L4.70706 6.5586ZM7.50588 3.75978L7.15233 3.40623L7.15232 3.40623L7.50588 3.75978ZM7.50588 3.75978C7.40825 3.85742 7.24996 3.85742 7.15232 3.75978L7.85943 3.05268C7.56654 2.75978 7.09166 2.75978 6.79877 3.05268L7.50588 3.75978ZM4.76599 6.49967L7.50588 3.75978L6.79877 3.05268L4.05888 5.79257L4.76599 6.49967ZM1.31899 3.75978L4.05888 6.49967L4.76599 5.79257L2.0261 3.05268L1.31899 3.75978ZM1.67254 3.75979C1.57491 3.85742 1.41662 3.85742 1.31899 3.75979L2.0261 3.05268C1.73321 2.75978 1.25833 2.75978 0.965439 3.05268L1.67254 3.75979ZM1.67255 3.40623C1.77018 3.50386 1.77018 3.66215 1.67255 3.75978L0.965439 3.05268C0.672546 3.34557 0.672546 3.82044 0.965439 4.11334L1.67255 3.40623ZM4.47136 6.20505L1.67255 3.40623L0.965439 4.11334L3.76425 6.91215L4.47136 6.20505ZM4.35351 6.20505C4.38605 6.1725 4.43882 6.1725 4.47136 6.20505L3.76425 6.91215C4.12223 7.27013 4.70264 7.27013 5.06062 6.91215L4.35351 6.20505ZM7.15232 3.40623L4.35351 6.20505L5.06062 6.91215L7.85943 4.11334L7.15232 3.40623ZM7.15233 3.75978C7.05469 3.66215 7.05469 3.50386 7.15233 3.40623L7.85943 4.11334C8.15233 3.82045 8.15233 3.34557 7.85943 3.05268L7.15233 3.75978Z",fill:"currentColor"})]})]})]}),(0,s.jsx)("div",{className:"list-body",children:i?i.length>0?i.map(((e,t)=>d?(0,s.jsx)(a.x,Object.assign({},e),t):(0,s.jsx)(a.A,{info:e},t))):(0,s.jsx)("div",{className:"empty",children:"No Data"}):(0,s.jsx)("span",{className:"loading empty",children:"loading\xb7\xb7\xb7"})})]}),!!r&&(0,s.jsxs)("aside",{children:[(0,s.jsx)("div",{className:"aside-header",children:(0,s.jsx)("div",{className:"aside-title",children:r})}),(0,s.jsx)("div",{className:"aside-body",children:l})]})]})}},4676:(e,t,i)=>{"use strict";i.d(t,{x:()=>h,A:()=>p});var s=i(568),a=i(548),r=i(1908),n=i(5219),l=i(6638),c=i.n(l),d=i(6192);const o=6;let v;const u="loading"in HTMLImageElement.prototype;function p({info:e}){var t;const i="video"===e.Type?`/v/${e.ID}`:`/p/${e.ID}`,l=(0,a.useRef)(null);return(0,a.useEffect)((()=>{var e;if(v&&(null===(e=l.current)||void 0===e?void 0:e.dataset.cover))return v.observe(l.current),()=>{l.current&&(v.unobserve(l.current),l.current.querySelector(".upv-video-card__loading").classList.remove("upv-video-card__loading--hidden"),l.current.querySelector(".upv-video-card__error").classList.remove("upv-video-card__error--show"))}}),[l,e]),(0,s.jsxs)("div",{className:"upv-video-card",children:[(0,s.jsx)(d.N_,{href:i,children:(0,s.jsx)("div",{ref:l,"data-cover":e.Cover,title:e.Title,children:(0,s.jsxs)(r.A,{ratio:3/4,children:[e.Cover&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("img",{loading:"lazy",className:"upv-video-card__image",alt:e.Title,title:e.Title,"data-src":e.Cover,src:u?e.Cover:void 0}),!u&&[(0,s.jsx)("div",{className:"upv-video-card__loading",children:"LOADING"}),(0,s.jsx)("div",{className:"upv-video-card__error",children:"ERROR"})]]}),(0,s.jsx)("div",{className:c()("upv-video-card__nocover",{"upv-video-card__nocover--show":!e.Cover}),children:(0,s.jsx)("span",{className:c()({large:e.Title.length<=4}),children:e.Title.slice(0,o)})})]})})}),(0,s.jsxs)("div",{className:"upv-video-card__content",children:[(0,s.jsx)("div",{className:"upv-video-card__content__title",children:e.Title}),(0,s.jsxs)("div",{className:"upv-video-card__content__author",children:[(0,s.jsx)("span",{children:(null===(t=e.Creator)||void 0===t?void 0:t.Nickname)||"-"})," \xb7 ",(0,s.jsx)("span",{children:(0,n.D$)(e.CreatedAt)})]})]})]})}function h({id:e,level:t,name:i,qq:a,sign:r}){return(0,s.jsx)("a",{href:`/v/${e}?live`,children:(0,s.jsxs)("div",{className:"live-card",style:{display:"flex"},children:[(0,s.jsx)("div",{className:"live-avatar",children:(0,s.jsx)("img",{src:`https://q1.qlogo.cn/g?b=qq&nk=${a}&s=640`,alt:"name"})}),(0,s.jsxs)("div",{className:"live-info",children:[(0,s.jsxs)("span",{children:[r," ",(0,s.jsx)("sup",{children:t})]}),(0,s.jsx)("span",{children:i})]})]})})}u||(v=new IntersectionObserver((e=>{e.forEach((e=>{if(e.isIntersecting){const t=e.target;v.unobserve(t);const i=t.querySelector("img");i.src=i.dataset.src,i.onload=()=>{t.querySelector(".upv-video-card__loading").classList.add("upv-video-card__loading--hidden")},i.onerror=()=>{t.querySelector(".upv-video-card__error").classList.add("upv-video-card__error--show")}}}))}),{threshold:[.15]}))},83:(e,t,i)=>{"use strict";i.d(t,{gL:()=>a,ho:()=>n});function s(e){if(!e)return"https://ae01.alicdn.com/kf/U6751d35799cc4d06965aa7b1879e0fc6i.jpg";let t=e.match(/suo(.+?)\)/i);return t?t[1].slice(2):"https://cdn-us.imgs.moe/2023/02/27/63fcb180cbb30.jpg"}const a=e=>e?Object.assign(Object.assign({},e),{adp:!0,clicli:!0,ID:e.id,Cover:s(e.content),Title:e.title,Content:e.content,Tags:e.tag,Type:"video",CreatedAt:e.time,UpdatedAt:e.time,Meta:{TitleJapanese:"",TitleRomanji:"",Genre:e.sort,Region:"clicli",Episodes:e.content.split("\n").length,IsEnd:2,PublishDate:e.time,UpdatedDate:null},Creator:{ID:1,Name:"YUESE",Nickname:"YUESE",Avatar:"https://q1.qlogo.cn/g?b=qq&nk=7619376472&s=640",Bio:"\u8fd9\u4e2a\u4eba\u5f88\u9177\uff0c\u4ec0\u4e48\u90fd\u6ca1\u6709\u7559\u4e0b"},episodes:e.content.split("\n").map((t=>({ID:t.split("$")[0],Episode:t.split("$")[0],Cover:s(e.content),Title:t.split("$")[0],TitleJapanese:"",TitleRomanji:"",VideoUrl:"",Synopsis:"",Uid:1,Pid:e.id,CreatedAt:e.time,UpdatedAt:e.time})))}):{},r=[3421,31,786,3880,2617],n=(e=[])=>e.filter((e=>!r.includes(e.id))).map(a)},2647:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>p});var s=i(568),a=i(548),r=i(963),n=i(6192);function l({list:e}){return(0,s.jsx)("div",{className:"rank-video-list",children:e?e.length>0?(0,s.jsx)("ul",{className:"rank-video-list__list",children:e.map(((e,t)=>(0,s.jsx)(n.N_,{href:"video"==e.Type?`/v/${e.ID}`:`/p/${e.ID}`,target:"_blank",children:(0,s.jsxs)("li",{className:"rank-video-list__item",children:[(0,s.jsx)("span",{className:"rank-video-list__item--index","data-index":t,children:t+1}),(0,s.jsx)("h3",{children:e.Title})]})},t)))}):(0,s.jsx)("div",{className:"empty",children:"No Data"}):(0,s.jsx)("div",{className:"loading empty",children:"loading\xb7\xb7\xb7"})})}var c=i(3902);const d=JSON.parse('{"data":[{"ID":"131478f2-31cd-446a-9cb2-15158b8c3efe","Cover":"https://static.xiaobaotv.app/upload/vod/20230812-7/08abde10fb590cb7a99c4e8818be3b95.jpg","Title":"\u82b1\u675f\u822c\u7684\u604b\u7231","Content":"","Tags":"\u5176\u4ed6","Status":4,"Type":"video","IsPined":1,"IsRecommend":2,"IsOriginal":1,"CreatedAt":"2022-05-24T21:00:39+08:00","UpdatedAt":"2022-05-24T21:02:47+08:00","Meta":{"TitleJapanese":"","TitleRomanji":"","Genre":"\u7535\u5f71","Region":"\u5176\u4ed6","Episodes":1,"IsEnd":1,"PublishDate":null,"UpdatedDate":null},"Creator":{"ID":1,"Name":"root","Nickname":"YUESE","Avatar":"https://q1.qlogo.cn/g?b=qq&nk=7619376472&s=640","Bio":"\u8fd9\u4e2a\u4eba\u5f88\u9177\uff0c\u4ec0\u4e48\u90fd\u6ca1\u6709\u7559\u4e0b"}}],"err":null}');var o=i(83),v=i(3987);const u=[{title:"Recommends",query:"type=recommends&title=recommends",icon:i(2726).A},{title:"What We're Watching Right Now",query:"type=popular&title=What We're Watching Right Now"},{title:"Latest Releases",query:"type=recent&title=Latest Releases"}];function p(){const[e,t]=(0,a.useState)([null,null]);return(0,a.useEffect)((()=>{Promise.allSettled([d,v.OF.get("https://www.clicli.cc/posts?status=public&sort=&tag=%E6%8E%A8%E8%8D%90&uid=&page=1&pageSize=12"),v.OF.get("https://www.clicli.cc/posts?status=public&sort=&tag=&uid=&page=1&pageSize=24"),v.OF.get("https://www.clicli.cc/rank?day=60")]).then((e=>{const i=e.map((({value:e})=>e.posts?(0,o.ho)(e.posts):e.data));t(i)}))}),[]),(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(r.m,{children:(0,s.jsx)("title",{children:"UPV - free animes no ads"})}),u.map(((t,i)=>(0,s.jsx)(c.A,{videos:e[i],isLive:-1==i,icon:u[i].icon,title:u[i].title,moreUrl:`/pv/tag?${u[i].query}`,aside:0==i&&(0,s.jsx)(l,{list:e[e.length-1]}),asideTitle:0==i&&"Ranks"},i)))]})}},1908:(e,t,i)=>{"use strict";i.d(t,{A:()=>a});var s=i(568);const a=e=>{const{children:t,ratio:i,mw:a}=e;return(0,s.jsx)("div",{className:"aspect-ratio",style:{width:"string"===typeof a?a:`${a}px`},children:(0,s.jsx)("div",{className:"aspect-ratio__fill",style:{paddingTop:1/i*100+"%"},children:t})})}},5219:(e,t,i)=>{"use strict";function s(e){const t=new Date,i=new Date(e),s=(t.getTime()-i.getTime())/1e3;return s<30?"\u521a\u521a":s<3600?Math.ceil(s/60)+"\u5206\u949f\u524d":s<86400?Math.ceil(s/3600)+"\u5c0f\u65f6\u524d":s<172800?"1\u5929\u524d":s<2678400?Math.ceil(s/3600/24)+"\u5929\u524d":t.getFullYear()===i.getFullYear()?`${i.getMonth()+1}\u6708${i.getDate()}\u65e5`:`${i.getFullYear()}\u5e74${i.getMonth()+1}\u6708${i.getDate()}\u65e5`}function a(e,t=!1){const i=new Date(e);return(new Date).getFullYear()===i.getFullYear()?`${i.getMonth()+1}\u6708${i.getDate()}\u65e5 ${t?` ${i.getHours()}:${i.getMinutes().toString().padStart(2,"0")}`:""}`:`${i.getFullYear()}\u5e74${i.getMonth()+1}\u6708${i.getDate()}\u65e5 ${t?` ${i.getHours()}:${i.getMinutes().toString().padStart(2,"0")}`:""}`}i.d(t,{D$:()=>s,Yq:()=>a})},6638:(e,t)=>{var i;!function(){"use strict";var s={}.hasOwnProperty;function a(){for(var e="",t=0;t{"use strict";r.d(t,{A:()=>o});var n=r(1914),s=r(359),i=r(6796),a=r.n(i);function o({title:e,icon:t,videos:r,asideTitle:i,aside:o,moreUrl:c,isLive:l}){return(0,n.jsxs)("div",{className:a()("upv-grid",{"col-2":i,"is-live":l}),children:[(0,n.jsxs)("div",{className:"upv-card-list",children:[(0,n.jsxs)("div",{className:"list-header",children:[(0,n.jsxs)("div",{children:[t&&(0,n.jsx)("img",{src:t,alt:e}),(0,n.jsx)("h2",{children:e})]}),c&&r&&r.length>0&&(0,n.jsxs)("a",{className:"list-header__more",href:c,target:"_blank",children:["more",(0,n.jsxs)("svg",{width:"10",height:"10",viewBox:"0 0 9 9",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"channel-entry-more__link--arrow",children:[(0,n.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.50588 3.40623C7.40825 3.3086 7.24996 3.3086 7.15232 3.40623L4.41244 6.14612L1.67255 3.40623C1.57491 3.3086 1.41662 3.3086 1.31899 3.40623C1.22136 3.50386 1.22136 3.66215 1.31899 3.75978L4.11781 6.5586C4.28053 6.72132 4.54434 6.72132 4.70706 6.5586L7.50588 3.75978C7.60351 3.66215 7.60351 3.50386 7.50588 3.40623Z",fill:"currentColor"}),(0,n.jsx)("path",{d:"M7.15232 3.40623L7.50588 3.75978L7.50588 3.75978L7.15232 3.40623ZM7.50588 3.40623L7.15232 3.75978L7.15233 3.75978L7.50588 3.40623ZM4.41244 6.14612L4.05888 6.49967C4.15265 6.59344 4.27983 6.64612 4.41244 6.64612C4.54504 6.64612 4.67222 6.59344 4.76599 6.49967L4.41244 6.14612ZM1.67255 3.40623L2.0261 3.05268L2.0261 3.05268L1.67255 3.40623ZM1.31899 3.40623L0.965439 3.05268L0.965439 3.05268L1.31899 3.40623ZM1.31899 3.75978L1.67255 3.40623V3.40623L1.31899 3.75978ZM4.11781 6.5586L3.76425 6.91215L4.11781 6.5586ZM4.70706 6.5586L4.35351 6.20505L4.70706 6.5586ZM7.50588 3.75978L7.15233 3.40623L7.15232 3.40623L7.50588 3.75978ZM7.50588 3.75978C7.40825 3.85742 7.24996 3.85742 7.15232 3.75978L7.85943 3.05268C7.56654 2.75978 7.09166 2.75978 6.79877 3.05268L7.50588 3.75978ZM4.76599 6.49967L7.50588 3.75978L6.79877 3.05268L4.05888 5.79257L4.76599 6.49967ZM1.31899 3.75978L4.05888 6.49967L4.76599 5.79257L2.0261 3.05268L1.31899 3.75978ZM1.67254 3.75979C1.57491 3.85742 1.41662 3.85742 1.31899 3.75979L2.0261 3.05268C1.73321 2.75978 1.25833 2.75978 0.965439 3.05268L1.67254 3.75979ZM1.67255 3.40623C1.77018 3.50386 1.77018 3.66215 1.67255 3.75978L0.965439 3.05268C0.672546 3.34557 0.672546 3.82044 0.965439 4.11334L1.67255 3.40623ZM4.47136 6.20505L1.67255 3.40623L0.965439 4.11334L3.76425 6.91215L4.47136 6.20505ZM4.35351 6.20505C4.38605 6.1725 4.43882 6.1725 4.47136 6.20505L3.76425 6.91215C4.12223 7.27013 4.70264 7.27013 5.06062 6.91215L4.35351 6.20505ZM7.15232 3.40623L4.35351 6.20505L5.06062 6.91215L7.85943 4.11334L7.15232 3.40623ZM7.15233 3.75978C7.05469 3.66215 7.05469 3.50386 7.15233 3.40623L7.85943 4.11334C8.15233 3.82045 8.15233 3.34557 7.85943 3.05268L7.15233 3.75978Z",fill:"currentColor"})]})]})]}),(0,n.jsx)("div",{className:"list-body",children:r?r.length>0?r.map(((e,t)=>l?(0,n.jsx)(s.x,Object.assign({},e),t):(0,n.jsx)(s.A,{info:e},t))):(0,n.jsx)("div",{className:"empty",children:"No Data"}):(0,n.jsx)("span",{className:"loading empty",children:"loading\xb7\xb7\xb7"})})]}),!!i&&(0,n.jsxs)("aside",{children:[(0,n.jsx)("div",{className:"aside-header",children:(0,n.jsx)("div",{className:"aside-title",children:i})}),(0,n.jsx)("div",{className:"aside-body",children:o})]})]})}},359:(e,t,r)=>{"use strict";r.d(t,{x:()=>m,A:()=>f});var n=r(1914),s=r(1394),i=r(9163),a=r(5219),o=r(6796),c=r.n(o),l=r(6730);const d=6;let u;const p="loading"in HTMLImageElement.prototype;function f({info:e}){var t;const r="video"===e.Type?`/v/${e.ID}`:`/p/${e.ID}`,o=(0,s.useRef)(null);return(0,s.useEffect)((()=>{var e;if(u&&(null===(e=o.current)||void 0===e?void 0:e.dataset.cover))return u.observe(o.current),()=>{o.current&&(u.unobserve(o.current),o.current.querySelector(".upv-video-card__loading").classList.remove("upv-video-card__loading--hidden"),o.current.querySelector(".upv-video-card__error").classList.remove("upv-video-card__error--show"))}}),[o,e]),(0,n.jsxs)("div",{className:"upv-video-card",children:[(0,n.jsx)(l.N_,{href:r,children:(0,n.jsx)("div",{ref:o,"data-cover":e.Cover,title:e.Title,children:(0,n.jsxs)(i.A,{ratio:3/4,children:[e.Cover&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("img",{loading:"lazy",className:"upv-video-card__image",alt:e.Title,title:e.Title,"data-src":e.Cover,src:p?e.Cover:void 0}),!p&&[(0,n.jsx)("div",{className:"upv-video-card__loading",children:"LOADING"}),(0,n.jsx)("div",{className:"upv-video-card__error",children:"ERROR"})]]}),(0,n.jsx)("div",{className:c()("upv-video-card__nocover",{"upv-video-card__nocover--show":!e.Cover}),children:(0,n.jsx)("span",{className:c()({large:e.Title.length<=4}),children:e.Title.slice(0,d)})})]})})}),(0,n.jsxs)("div",{className:"upv-video-card__content",children:[(0,n.jsx)("div",{className:"upv-video-card__content__title",children:e.Title}),(0,n.jsxs)("div",{className:"upv-video-card__content__author",children:[(0,n.jsx)("span",{children:(null===(t=e.Creator)||void 0===t?void 0:t.Nickname)||"-"})," \xb7 ",(0,n.jsx)("span",{children:(0,a.D$)(e.CreatedAt)})]})]})]})}function m({id:e,level:t,name:r,qq:s,sign:i}){return(0,n.jsx)("a",{href:`/v/${e}?live`,children:(0,n.jsxs)("div",{className:"live-card",style:{display:"flex"},children:[(0,n.jsx)("div",{className:"live-avatar",children:(0,n.jsx)("img",{src:`https://q1.qlogo.cn/g?b=qq&nk=${s}&s=640`,alt:"name"})}),(0,n.jsxs)("div",{className:"live-info",children:[(0,n.jsxs)("span",{children:[i," ",(0,n.jsx)("sup",{children:t})]}),(0,n.jsx)("span",{children:r})]})]})})}p||(u=new IntersectionObserver((e=>{e.forEach((e=>{if(e.isIntersecting){const t=e.target;u.unobserve(t);const r=t.querySelector("img");r.src=r.dataset.src,r.onload=()=>{t.querySelector(".upv-video-card__loading").classList.add("upv-video-card__loading--hidden")},r.onerror=()=>{t.querySelector(".upv-video-card__error").classList.add("upv-video-card__error--show")}}}))}),{threshold:[.15]}))},83:(e,t,r)=>{"use strict";r.d(t,{gL:()=>s,ho:()=>a});function n(e){if(!e)return"https://ae01.alicdn.com/kf/U6751d35799cc4d06965aa7b1879e0fc6i.jpg";let t=e.match(/suo(.+?)\)/i);return t?t[1].slice(2):"https://cdn-us.imgs.moe/2023/02/27/63fcb180cbb30.jpg"}const s=e=>e?Object.assign(Object.assign({},e),{adp:!0,clicli:!0,ID:e.id,Cover:n(e.content),Title:e.title,Content:e.content,Tags:e.tag,Type:"video",CreatedAt:e.time,UpdatedAt:e.time,Meta:{TitleJapanese:"",TitleRomanji:"",Genre:e.sort,Region:"clicli",Episodes:e.content.split("\n").length,IsEnd:2,PublishDate:e.time,UpdatedDate:null},Creator:{ID:1,Name:"YUESE",Nickname:"YUESE",Avatar:"https://q1.qlogo.cn/g?b=qq&nk=7619376472&s=640",Bio:"\u8fd9\u4e2a\u4eba\u5f88\u9177\uff0c\u4ec0\u4e48\u90fd\u6ca1\u6709\u7559\u4e0b"},episodes:e.content.split("\n").map((t=>({ID:t.split("$")[0],Episode:t.split("$")[0],Cover:n(e.content),Title:t.split("$")[0],TitleJapanese:"",TitleRomanji:"",VideoUrl:"",Synopsis:"",Uid:1,Pid:e.id,CreatedAt:e.time,UpdatedAt:e.time})))}):{},i=[3421,31,786,3880,2617,4087],a=(e=[])=>e.filter((e=>!i.includes(e.id))).map(s)},8649:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>u});var n=r(1914),s=r(1394),i=r(8413),a=r(5069),o=r(83),c=r(4097),l=r(6730),d=r(3987);function u(){const e=(0,s.useRef)(""),[t,r]=(0,s.useState)(),[,u]=(0,l.zy)(),{page:p,k:f}=c.A.parse((0,l.SQ)()),m=e=>{const t=Object.assign({},c.A.parse(window.location.search),{page:e});u(`/search?${c.A.stringify(t)}`),root.scrollTop=0};return(0,s.useEffect)((()=>{f&&(r(null),e.current=f,d.OF.get(`https://www.clicli.cc/search/posts?key=${encodeURIComponent(f)}`).then((e=>r((0,o.ho)(e.posts||null)))).catch((e=>{r([]),console.log(e)})))}),[f,p]),(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(i.m,{children:(0,n.jsx)("title",{children:f?`${f} - \u641c\u7d22 - UPV - free animes no ads`:"\u641c\u7d22 - UPV - free animes no ads"})}),(0,n.jsxs)("div",{className:"search",children:[(0,n.jsx)("div",{className:"search-header",children:(0,n.jsx)("form",{onSubmit:t=>{t.preventDefault();const r=Object.assign({},c.A.parse(window.location.search),{k:e.current,page:1});u(`/search?${c.A.stringify(r)}`)},children:(0,n.jsxs)("div",{className:"search-wrap",children:[(0,n.jsx)("div",{className:"search-action",children:(0,n.jsx)("div",{className:"control",children:(0,n.jsx)("input",{id:"search-input",className:"input",maxLength:100,autoComplete:"off",defaultValue:f,onChange:t=>e.current=t.target.value,type:"text",placeholder:"Type to search"})})}),(0,n.jsx)("button",{className:"button is-primary",children:"search"})]})})}),(0,n.jsxs)("div",{className:"search-body",children:[(0,n.jsx)(a.A,{title:"Result",videos:t}),(0,n.jsxs)("div",{className:"paginate-container field has-addons",style:{justifyContent:"center",paddingBottom:"28px"},children:[(0,n.jsx)("p",{className:"control",children:(0,n.jsx)("button",{className:"button",onClick:()=>m(+p-1),disabled:+p<=1,children:(0,n.jsx)("span",{children:"Newer"})})}),(0,n.jsx)("p",{className:"control",children:(0,n.jsx)("button",{className:"button is-outlined",disabled:!t||t&&((null===t||void 0===t?void 0:t.length)<1||(null===t||void 0===t?void 0:t.length)<12),onClick:()=>m(+p+1),children:(0,n.jsx)("span",{className:"is-primary",children:"Older"})})})]})]})]})]})}},9163:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var n=r(1914);const s=e=>{const{children:t,ratio:r,mw:s}=e;return(0,n.jsx)("div",{className:"aspect-ratio",style:{width:"string"===typeof s?s:`${s}px`},children:(0,n.jsx)("div",{className:"aspect-ratio__fill",style:{paddingTop:1/r*100+"%"},children:t})})}},5219:(e,t,r)=>{"use strict";function n(e){const t=new Date,r=new Date(e),n=(t.getTime()-r.getTime())/1e3;return n<30?"\u521a\u521a":n<3600?Math.ceil(n/60)+"\u5206\u949f\u524d":n<86400?Math.ceil(n/3600)+"\u5c0f\u65f6\u524d":n<172800?"1\u5929\u524d":n<2678400?Math.ceil(n/3600/24)+"\u5929\u524d":t.getFullYear()===r.getFullYear()?`${r.getMonth()+1}\u6708${r.getDate()}\u65e5`:`${r.getFullYear()}\u5e74${r.getMonth()+1}\u6708${r.getDate()}\u65e5`}function s(e,t=!1){const r=new Date(e);return(new Date).getFullYear()===r.getFullYear()?`${r.getMonth()+1}\u6708${r.getDate()}\u65e5 ${t?` ${r.getHours()}:${r.getMinutes().toString().padStart(2,"0")}`:""}`:`${r.getFullYear()}\u5e74${r.getMonth()+1}\u6708${r.getDate()}\u65e5 ${t?` ${r.getHours()}:${r.getMinutes().toString().padStart(2,"0")}`:""}`}r.d(t,{D$:()=>n,Yq:()=>s})},6796:(e,t)=>{var r;!function(){"use strict";var n={}.hasOwnProperty;function s(){for(var e="",t=0;t{"use strict";r.d(t,{A:()=>k});var n={};r.r(n),r.d(n,{exclude:()=>$,extract:()=>b,parse:()=>L,parseUrl:()=>C,pick:()=>_,stringify:()=>N,stringifyUrl:()=>w});const s="%[a-f0-9]{2}",i=new RegExp("("+s+")|([^%]+?)","gi"),a=new RegExp("("+s+")+","gi");function o(e,t){try{return[decodeURIComponent(e.join(""))]}catch{}if(1===e.length)return e;t=t||1;const r=e.slice(0,t),n=e.slice(t);return Array.prototype.concat.call([],o(r),o(n))}function c(e){try{return decodeURIComponent(e)}catch{let t=e.match(i)||[];for(let r=1;rnull===e||void 0===e,f=e=>encodeURIComponent(e).replaceAll(/[!'()*]/g,(e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`)),m=Symbol("encodeFragmentIdentifier");function h(e){if("string"!==typeof e||1!==e.length)throw new TypeError("arrayFormatSeparator must be single character string")}function v(e,t){return t.encode?t.strict?f(e):encodeURIComponent(e):e}function g(e,t){return t.decode?l(e):e}function y(e){return Array.isArray(e)?e.sort():"object"===typeof e?y(Object.keys(e)).sort(((e,t)=>Number(e)-Number(t))).map((t=>e[t])):e}function j(e){const t=e.indexOf("#");return-1!==t&&(e=e.slice(0,t)),e}function x(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 b(e){const t=(e=j(e)).indexOf("?");return-1===t?"":e.slice(t+1)}function L(e,t){h((t={decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1,...t}).arrayFormatSeparator);const r=function(e){let t;switch(e.arrayFormat){case"index":return(e,r,n)=>{t=/\[(\d*)]$/.exec(e),e=e.replace(/\[\d*]$/,""),t?(void 0===n[e]&&(n[e]={}),n[e][t[1]]=r):n[e]=r};case"bracket":return(e,r,n)=>{t=/(\[])$/.exec(e),e=e.replace(/\[]$/,""),t?void 0!==n[e]?n[e]=[...n[e],r]:n[e]=[r]:n[e]=r};case"colon-list-separator":return(e,r,n)=>{t=/(:list)$/.exec(e),e=e.replace(/:list$/,""),t?void 0!==n[e]?n[e]=[...n[e],r]:n[e]=[r]:n[e]=r};case"comma":case"separator":return(t,r,n)=>{const s="string"===typeof r&&r.includes(e.arrayFormatSeparator),i="string"===typeof r&&!s&&g(r,e).includes(e.arrayFormatSeparator);r=i?g(r,e):r;const a=s||i?r.split(e.arrayFormatSeparator).map((t=>g(t,e))):null===r?r:g(r,e);n[t]=a};case"bracket-separator":return(t,r,n)=>{const s=/(\[])$/.test(t);if(t=t.replace(/\[]$/,""),!s)return void(n[t]=r?g(r,e):r);const i=null===r?[]:r.split(e.arrayFormatSeparator).map((t=>g(t,e)));void 0!==n[t]?n[t]=[...n[t],...i]:n[t]=i};default:return(e,t,r)=>{void 0!==r[e]?r[e]=[...[r[e]].flat(),t]:r[e]=t}}}(t),n=Object.create(null);if("string"!==typeof e)return n;if(!(e=e.trim().replace(/^[?#&]/,"")))return n;for(const s of e.split("&")){if(""===s)continue;const e=t.decode?s.replaceAll("+"," "):s;let[i,a]=d(e,"=");void 0===i&&(i=e),a=void 0===a?null:["comma","separator","bracket-separator"].includes(t.arrayFormat)?a:g(a,t),r(g(i,t),a,n)}for(const[s,i]of Object.entries(n))if("object"===typeof i&&null!==i)for(const[e,r]of Object.entries(i))i[e]=x(r,t);else n[s]=x(i,t);return!1===t.sort?n:(!0===t.sort?Object.keys(n).sort():Object.keys(n).sort(t.sort)).reduce(((e,t)=>{const r=n[t];return e[t]=Boolean(r)&&"object"===typeof r&&!Array.isArray(r)?y(r):r,e}),Object.create(null))}function N(e,t){if(!e)return"";h((t={encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:",",...t}).arrayFormatSeparator);const r=r=>t.skipNull&&p(e[r])||t.skipEmptyString&&""===e[r],n=function(e){switch(e.arrayFormat){case"index":return t=>(r,n)=>{const s=r.length;return void 0===n||e.skipNull&&null===n||e.skipEmptyString&&""===n?r:null===n?[...r,[v(t,e),"[",s,"]"].join("")]:[...r,[v(t,e),"[",v(s,e),"]=",v(n,e)].join("")]};case"bracket":return t=>(r,n)=>void 0===n||e.skipNull&&null===n||e.skipEmptyString&&""===n?r:null===n?[...r,[v(t,e),"[]"].join("")]:[...r,[v(t,e),"[]=",v(n,e)].join("")];case"colon-list-separator":return t=>(r,n)=>void 0===n||e.skipNull&&null===n||e.skipEmptyString&&""===n?r:null===n?[...r,[v(t,e),":list="].join("")]:[...r,[v(t,e),":list=",v(n,e)].join("")];case"comma":case"separator":case"bracket-separator":{const t="bracket-separator"===e.arrayFormat?"[]=":"=";return r=>(n,s)=>void 0===s||e.skipNull&&null===s||e.skipEmptyString&&""===s?n:(s=null===s?"":s,0===n.length?[[v(r,e),t,v(s,e)].join("")]:[[n,v(s,e)].join(e.arrayFormatSeparator)])}default:return t=>(r,n)=>void 0===n||e.skipNull&&null===n||e.skipEmptyString&&""===n?r:null===n?[...r,v(t,e)]:[...r,[v(t,e),"=",v(n,e)].join("")]}}(t),s={};for(const[a,o]of Object.entries(e))r(a)||(s[a]=o);const i=Object.keys(s);return!1!==t.sort&&i.sort(t.sort),i.map((r=>{const s=e[r];return void 0===s?"":null===s?v(r,t):Array.isArray(s)?0===s.length&&"bracket-separator"===t.arrayFormat?v(r,t)+"[]":s.reduce(n(r),[]).join("&"):v(r,t)+"="+v(s,t)})).filter((e=>e.length>0)).join("&")}function C(e,t){t={decode:!0,...t};let[r,n]=d(e,"#");return void 0===r&&(r=e),{url:r?.split("?")?.[0]??"",query:L(b(e),t),...t&&t.parseFragmentIdentifier&&n?{fragmentIdentifier:g(n,t)}:{}}}function w(e,t){t={encode:!0,strict:!0,[m]:!0,...t};const r=j(e.url).split("?")[0]||"";let n=N({...L(b(e.url),{sort:!1}),...e.query},t);n&&=`?${n}`;let s=function(e){let t="";const r=e.indexOf("#");return-1!==r&&(t=e.slice(r)),t}(e.url);if("string"===typeof e.fragmentIdentifier){const n=new URL(r);n.hash=e.fragmentIdentifier,s=t[m]?n.hash:`#${e.fragmentIdentifier}`}return`${r}${n}${s}`}function _(e,t,r){r={parseFragmentIdentifier:!0,[m]:!1,...r};const{url:n,query:s,fragmentIdentifier:i}=C(e,r);return w({url:n,query:u(s,t),fragmentIdentifier:i},r)}function $(e,t,r){return _(e,Array.isArray(t)?e=>!t.includes(e):(e,r)=>!t(e,r),r)}const k=n}}]); \ No newline at end of file diff --git a/static/js/647.94cc1f9d.chunk.js.LICENSE.txt b/static/js/649.b5ca47bd.chunk.js.LICENSE.txt similarity index 100% rename from static/js/647.94cc1f9d.chunk.js.LICENSE.txt rename to static/js/649.b5ca47bd.chunk.js.LICENSE.txt diff --git a/static/js/656.d769a8a5.chunk.js b/static/js/656.87222b9f.chunk.js similarity index 87% rename from static/js/656.d769a8a5.chunk.js rename to static/js/656.87222b9f.chunk.js index d7cc4ad9..41138735 100644 --- a/static/js/656.d769a8a5.chunk.js +++ b/static/js/656.87222b9f.chunk.js @@ -1 +1 @@ -"use strict";(self.webpackChunk_web_index=self.webpackChunk_web_index||[]).push([[656],{2275:e=>{e.exports=JSON.parse('{"data":[{"ID":3,"Episode":1,"Cover":"","Title":"\u8fdb\u51fb\u7684\u5de8\u4eba \u6700\u7ec8\u5b63 \u5b8c\u7ed3\u7bc7 \u524d\u7bc7","TitleJapanese":"","TitleRomanji":"","VideoUrl":"https://bos.nj.bpc.baidu.com/tieba-movideo/1159493400_ac9f5553fbe9bb08fbb08939bd245951_e31fe6415d95.mp4","Synopsis":"","Uid":1,"Pid":"7","CreatedAt":"2022-05-18T15:23:02+08:00","UpdatedAt":"2022-05-18T15:23:02+08:00"}]}')}}]); \ No newline at end of file +"use strict";(self.webpackChunk_web_index=self.webpackChunk_web_index||[]).push([[656],{4656:e=>{e.exports=JSON.parse('{"data":[{"ID":3,"Episode":1,"Cover":"","Title":"\u8fdb\u51fb\u7684\u5de8\u4eba \u6700\u7ec8\u5b63 \u5b8c\u7ed3\u7bc7 \u524d\u7bc7","TitleJapanese":"","TitleRomanji":"","VideoUrl":"https://bos.nj.bpc.baidu.com/tieba-movideo/1159493400_ac9f5553fbe9bb08fbb08939bd245951_e31fe6415d95.mp4","Synopsis":"","Uid":1,"Pid":"7","CreatedAt":"2022-05-18T15:23:02+08:00","UpdatedAt":"2022-05-18T15:23:02+08:00"}]}')}}]); \ No newline at end of file diff --git a/static/js/713.7b297f52.chunk.js b/static/js/713.7b297f52.chunk.js new file mode 100644 index 00000000..e72779a6 --- /dev/null +++ b/static/js/713.7b297f52.chunk.js @@ -0,0 +1,2 @@ +/*! For license information please see 713.7b297f52.chunk.js.LICENSE.txt */ +(self.webpackChunk_web_index=self.webpackChunk_web_index||[]).push([[713],{2896:e=>{"use strict";var t=Object.prototype.hasOwnProperty,n="~";function r(){}function s(e,t,n){this.fn=e,this.context=t,this.once=n||!1}function a(e,t,r,a,o){if("function"!==typeof r)throw new TypeError("The listener must be a function");var i=new s(r,a||e,o),c=n?n+t:t;return e._events[c]?e._events[c].fn?e._events[c]=[e._events[c],i]:e._events[c].push(i):(e._events[c]=i,e._eventsCount++),e}function o(e,t){0===--e._eventsCount?e._events=new r:delete e._events[t]}function i(){this._events=new r,this._eventsCount=0}Object.create&&(r.prototype=Object.create(null),(new r).__proto__||(n=!1)),i.prototype.eventNames=function(){var e,r,s=[];if(0===this._eventsCount)return s;for(r in e=this._events)t.call(e,r)&&s.push(n?r.slice(1):r);return Object.getOwnPropertySymbols?s.concat(Object.getOwnPropertySymbols(e)):s},i.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 s=0,a=r.length,o=new Array(a);s{"use strict";var t=Object.prototype.hasOwnProperty,n=Object.prototype.toString,r=Object.defineProperty,s=Object.getOwnPropertyDescriptor,a=function(e){return"function"===typeof Array.isArray?Array.isArray(e):"[object Array]"===n.call(e)},o=function(e){if(!e||"[object Object]"!==n.call(e))return!1;var r,s=t.call(e,"constructor"),a=e.constructor&&e.constructor.prototype&&t.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!s&&!a)return!1;for(r in e);return"undefined"===typeof r||t.call(e,r)},i=function(e,t){r&&"__proto__"===t.name?r(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},c=function(e,n){if("__proto__"===n){if(!t.call(e,n))return;if(s)return s(e,n).value}return e[n]};e.exports=function e(){var t,n,r,s,l,u,E=arguments[0],h=1,T=arguments.length,p=!1;for("boolean"===typeof E&&(p=E,E=arguments[1]||{},h=2),(null==E||"object"!==typeof E&&"function"!==typeof E)&&(E={});h{"use strict";var r;n.d(t,{A:()=>E});var s=new Uint8Array(16);function a(){if(!r&&!(r="undefined"!==typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!==typeof msCrypto&&"function"===typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return r(s)}const o=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;const i=function(e){return"string"===typeof e&&o.test(e)};for(var c=[],l=0;l<256;++l)c.push((l+256).toString(16).substr(1));const u=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=(c[e[t+0]]+c[e[t+1]]+c[e[t+2]]+c[e[t+3]]+"-"+c[e[t+4]]+c[e[t+5]]+"-"+c[e[t+6]]+c[e[t+7]]+"-"+c[e[t+8]]+c[e[t+9]]+"-"+c[e[t+10]]+c[e[t+11]]+c[e[t+12]]+c[e[t+13]]+c[e[t+14]]+c[e[t+15]]).toLowerCase();if(!i(n))throw TypeError("Stringified UUID is invalid");return n};const E=function(e,t,n){var r=(e=e||{}).random||(e.rng||a)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,t){n=n||0;for(var s=0;s<16;++s)t[n+s]=r[s];return t}return u(r)}},6796:(e,t)=>{var n;!function(){"use strict";var r={}.hasOwnProperty;function s(){for(var e="",t=0;t{"use strict";function r(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}n.d(t,{A:()=>r})},6727:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function s(e){var t=function(e,t){if("object"!=r(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var s=n.call(e,t||"default");if("object"!=r(s))return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==r(t)?t:t+""}function a(e,t){for(var n=0;no})},9993:(e,t,n)=>{"use strict";function r(){return r=Object.assign?Object.assign.bind():function(e){for(var t=1;tr})},8698:(e,t,n)=>{"use strict";function r(e,t){return r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},r(e,t)}function s(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,r(e,t)}n.d(t,{A:()=>s})},8309:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>E});const r="object"===typeof self?self:globalThis,s=e=>((e,t)=>{const n=(t,n)=>(e.set(n,t),t),s=a=>{if(e.has(a))return e.get(a);const[o,i]=t[a];switch(o){case 0:case-1:return n(i,a);case 1:{const e=n([],a);for(const t of i)e.push(s(t));return e}case 2:{const e=n({},a);for(const[t,n]of i)e[s(t)]=s(n);return e}case 3:return n(new Date(i),a);case 4:{const{source:e,flags:t}=i;return n(new RegExp(e,t),a)}case 5:{const e=n(new Map,a);for(const[t,n]of i)e.set(s(t),s(n));return e}case 6:{const e=n(new Set,a);for(const t of i)e.add(s(t));return e}case 7:{const{name:e,message:t}=i;return n(new r[e](t),a)}case 8:return n(BigInt(i),a);case"BigInt":return n(Object(BigInt(i)),a)}return n(new r[o](i),a)};return s})(new Map,e)(0),a="",{toString:o}={},{keys:i}=Object,c=e=>{const t=typeof e;if("object"!==t||!e)return[0,t];const n=o.call(e).slice(8,-1);switch(n){case"Array":return[1,a];case"Object":return[2,a];case"Date":return[3,a];case"RegExp":return[4,a];case"Map":return[5,a];case"Set":return[6,a]}return n.includes("Array")?[1,n]:n.includes("Error")?[7,n]:[2,n]},l=([e,t])=>0===e&&("function"===t||"symbol"===t),u=(e,{json:t,lossy:n}={})=>{const r=[];return((e,t,n,r)=>{const s=(e,t)=>{const s=r.push(e)-1;return n.set(t,s),s},a=r=>{if(n.has(r))return n.get(r);let[o,u]=c(r);switch(o){case 0:{let t=r;switch(u){case"bigint":o=8,t=r.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+u);t=null;break;case"undefined":return s([-1],r)}return s([o,t],r)}case 1:{if(u)return s([u,[...r]],r);const e=[],t=s([o,e],r);for(const n of r)e.push(a(n));return t}case 2:{if(u)switch(u){case"BigInt":return s([u,r.toString()],r);case"Boolean":case"Number":case"String":return s([u,r.valueOf()],r)}if(t&&"toJSON"in r)return a(r.toJSON());const n=[],E=s([o,n],r);for(const t of i(r))!e&&l(c(r[t]))||n.push([a(t),a(r[t])]);return E}case 3:return s([o,r.toISOString()],r);case 4:{const{source:e,flags:t}=r;return s([o,{source:e,flags:t}],r)}case 5:{const t=[],n=s([o,t],r);for(const[s,o]of r)(e||!l(c(s))&&!l(c(o)))&&t.push([a(s),a(o)]);return n}case 6:{const t=[],n=s([o,t],r);for(const s of r)!e&&l(c(s))||t.push(a(s));return n}}const{message:E}=r;return s([o,{name:u,message:E}],r)};return a})(!(t||n),!!t,new Map,r)(e),r},E="function"===typeof structuredClone?(e,t)=>t&&("json"in t||"lossy"in t)?s(u(e,t)):structuredClone(e):(e,t)=>s(u(e,t))},2996:(e,t,n)=>{"use strict";function r(e){if(e)throw e}n.d(t,{V:()=>r})},5829:(e,t,n)=>{"use strict";function r(e,t){const n=String(e);if("string"!==typeof t)throw new TypeError("Expected character");let r=0,s=n.indexOf(t);for(;-1!==s;)r++,s=n.indexOf(t,s+t.length);return r}n.d(t,{D:()=>r})},8779:(e,t,n)=>{"use strict";function r(e){const t=[],n=String(e||"");let r=n.indexOf(","),s=0,a=!1;for(;!a;){-1===r&&(r=n.length,a=!0);const e=n.slice(s,r).trim();!e&&a||t.push(e),s=r+1,r=n.indexOf(",",s)}return t}function s(e,t){const n=t||{};return(""===e[e.length-1]?[...e,""]:e).join((n.padRight?" ":"")+","+(!1===n.padLeft?"":" ")).trim()}n.d(t,{A:()=>s,q:()=>r})},1555:(e,t,n)=>{"use strict";n.d(t,{s:()=>s});const r=document.createElement("i");function s(e){const t="&"+e+";";r.innerHTML=t;const n=r.textContent;return(59!==n.charCodeAt(n.length-1)||"semi"===e)&&(n!==t&&n)}},8085:(e,t,n)=>{"use strict";function r(){}n.d(t,{ok:()=>r})},775:(e,t,n)=>{"use strict";function r(e){if("string"!==typeof e)throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}n.d(t,{A:()=>r})},4566:(e,t,n)=>{"use strict";n.d(t,{l:()=>Ln});var r=n(8309),s=n(8085),a=n(8668),o=n(8779);const i=/[#.]/g;var c=n(2030),l=n(2738),u=n(9164);const E=new Set(["button","menu","reset","submit"]),h={}.hasOwnProperty;function T(e,t,n){const r=n&&function(e){const t={};let n=-1;for(;++n-1&&ee)return{line:t+1,column:e-(t>0?n[t-1]:0)+1,offset:e}},toOffset:function(e){const t=e&&e.line,r=e&&e.column;if("number"===typeof t&&"number"===typeof r&&!Number.isNaN(t)&&!Number.isNaN(r)&&t-1 in n){const e=(n[t-2]||0)+r-1||0;if(e>-1&&e=55296&&e<=57343}function K(e){return 32!==e&&10!==e&&13!==e&&9!==e&&12!==e&&e>=1&&e<=31||e>=127&&e<=159}function z(e){return e>=64976&&e<=65007||v.has(e)}var j;!function(e){e.controlCharacterInInputStream="control-character-in-input-stream",e.noncharacterInInputStream="noncharacter-in-input-stream",e.surrogateInInputStream="surrogate-in-input-stream",e.nonVoidHtmlElementStartTagWithTrailingSolidus="non-void-html-element-start-tag-with-trailing-solidus",e.endTagWithAttributes="end-tag-with-attributes",e.endTagWithTrailingSolidus="end-tag-with-trailing-solidus",e.unexpectedSolidusInTag="unexpected-solidus-in-tag",e.unexpectedNullCharacter="unexpected-null-character",e.unexpectedQuestionMarkInsteadOfTagName="unexpected-question-mark-instead-of-tag-name",e.invalidFirstCharacterOfTagName="invalid-first-character-of-tag-name",e.unexpectedEqualsSignBeforeAttributeName="unexpected-equals-sign-before-attribute-name",e.missingEndTagName="missing-end-tag-name",e.unexpectedCharacterInAttributeName="unexpected-character-in-attribute-name",e.unknownNamedCharacterReference="unknown-named-character-reference",e.missingSemicolonAfterCharacterReference="missing-semicolon-after-character-reference",e.unexpectedCharacterAfterDoctypeSystemIdentifier="unexpected-character-after-doctype-system-identifier",e.unexpectedCharacterInUnquotedAttributeValue="unexpected-character-in-unquoted-attribute-value",e.eofBeforeTagName="eof-before-tag-name",e.eofInTag="eof-in-tag",e.missingAttributeValue="missing-attribute-value",e.missingWhitespaceBetweenAttributes="missing-whitespace-between-attributes",e.missingWhitespaceAfterDoctypePublicKeyword="missing-whitespace-after-doctype-public-keyword",e.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers="missing-whitespace-between-doctype-public-and-system-identifiers",e.missingWhitespaceAfterDoctypeSystemKeyword="missing-whitespace-after-doctype-system-keyword",e.missingQuoteBeforeDoctypePublicIdentifier="missing-quote-before-doctype-public-identifier",e.missingQuoteBeforeDoctypeSystemIdentifier="missing-quote-before-doctype-system-identifier",e.missingDoctypePublicIdentifier="missing-doctype-public-identifier",e.missingDoctypeSystemIdentifier="missing-doctype-system-identifier",e.abruptDoctypePublicIdentifier="abrupt-doctype-public-identifier",e.abruptDoctypeSystemIdentifier="abrupt-doctype-system-identifier",e.cdataInHtmlContent="cdata-in-html-content",e.incorrectlyOpenedComment="incorrectly-opened-comment",e.eofInScriptHtmlCommentLikeText="eof-in-script-html-comment-like-text",e.eofInDoctype="eof-in-doctype",e.nestedComment="nested-comment",e.abruptClosingOfEmptyComment="abrupt-closing-of-empty-comment",e.eofInComment="eof-in-comment",e.incorrectlyClosedComment="incorrectly-closed-comment",e.eofInCdata="eof-in-cdata",e.absenceOfDigitsInNumericCharacterReference="absence-of-digits-in-numeric-character-reference",e.nullCharacterReference="null-character-reference",e.surrogateCharacterReference="surrogate-character-reference",e.characterReferenceOutsideUnicodeRange="character-reference-outside-unicode-range",e.controlCharacterReference="control-character-reference",e.noncharacterCharacterReference="noncharacter-character-reference",e.missingWhitespaceBeforeDoctypeName="missing-whitespace-before-doctype-name",e.missingDoctypeName="missing-doctype-name",e.invalidCharacterSequenceAfterDoctypeName="invalid-character-sequence-after-doctype-name",e.duplicateAttribute="duplicate-attribute",e.nonConformingDoctype="non-conforming-doctype",e.missingDoctype="missing-doctype",e.misplacedDoctype="misplaced-doctype",e.endTagWithoutMatchingOpenElement="end-tag-without-matching-open-element",e.closingOfElementWithOpenChildElements="closing-of-element-with-open-child-elements",e.disallowedContentInNoscriptInHead="disallowed-content-in-noscript-in-head",e.openElementsLeftAfterEof="open-elements-left-after-eof",e.abandonedHeadElementChild="abandoned-head-element-child",e.misplacedStartTagForHeadElement="misplaced-start-tag-for-head-element",e.nestedNoscriptInHead="nested-noscript-in-head",e.eofInElementThatCanContainOnlyText="eof-in-element-that-can-contain-only-text"}(j=j||(j={}));class J{constructor(e){this.handler=e,this.html="",this.pos=-1,this.lastGapPos=-2,this.gapStack=[],this.skipNextNewLine=!1,this.lastChunkWritten=!1,this.endOfChunkHit=!1,this.bufferWaterline=65536,this.isEol=!1,this.lineStartPos=0,this.droppedBufferSize=0,this.line=1,this.lastErrOffset=-1}get col(){return this.pos-this.lineStartPos+Number(this.lastGapPos!==this.pos)}get offset(){return this.droppedBufferSize+this.pos}getError(e){const{line:t,col:n,offset:r}=this;return{code:e,startLine:t,endLine:t,startCol:n,endCol:n,startOffset:r,endOffset:r}}_err(e){this.handler.onParseError&&this.lastErrOffset!==this.offset&&(this.lastErrOffset=this.offset,this.handler.onParseError(this.getError(e)))}_addGap(){this.gapStack.push(this.lastGapPos),this.lastGapPos=this.pos}_processSurrogate(e){if(this.pos!==this.html.length-1){const t=this.html.charCodeAt(this.pos+1);if(function(e){return e>=56320&&e<=57343}(t))return this.pos++,this._addGap(),1024*(e-55296)+9216+t}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,x.EOF;return this._err(j.surrogateInInputStream),e}willDropParsedChunk(){return this.pos>this.bufferWaterline}dropParsedChunk(){this.willDropParsedChunk()&&(this.html=this.html.substring(this.pos),this.lineStartPos-=this.pos,this.droppedBufferSize+=this.pos,this.pos=0,this.lastGapPos=-2,this.gapStack.length=0)}write(e,t){this.html.length>0?this.html+=e:this.html=e,this.endOfChunkHit=!1,this.lastChunkWritten=t}insertHtmlAtCurrentPos(e){this.html=this.html.substring(0,this.pos+1)+e+this.html.substring(this.pos+1),this.endOfChunkHit=!1}startsWith(e,t){if(this.pos+e.length>this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,!1;if(t)return this.html.startsWith(e,this.pos);for(let n=0;n=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,x.EOF;const n=this.html.charCodeAt(t);return n===x.CARRIAGE_RETURN?x.LINE_FEED:n}advance(){if(this.pos++,this.isEol&&(this.isEol=!1,this.line++,this.lineStartPos=this.pos),this.pos>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,x.EOF;let e=this.html.charCodeAt(this.pos);if(e===x.CARRIAGE_RETURN)return this.isEol=!0,this.skipNextNewLine=!0,x.LINE_FEED;if(e===x.LINE_FEED&&(this.isEol=!0,this.skipNextNewLine))return this.line--,this.skipNextNewLine=!1,this._addGap(),this.advance();this.skipNextNewLine=!1,V(e)&&(e=this._processSurrogate(e));return null===this.handler.onParseError||e>31&&e<127||e===x.LINE_FEED||e===x.CARRIAGE_RETURN||e>159&&e<64976||this._checkForProblematicCharacters(e),e}_checkForProblematicCharacters(e){K(e)?this._err(j.controlCharacterInInputStream):z(e)&&this._err(j.noncharacterInInputStream)}retreat(e){for(this.pos-=e;this.pos=0;n--)if(e.attrs[n].name===t)return e.attrs[n].value;return null}!function(e){e[e.CHARACTER=0]="CHARACTER",e[e.NULL_CHARACTER=1]="NULL_CHARACTER",e[e.WHITESPACE_CHARACTER=2]="WHITESPACE_CHARACTER",e[e.START_TAG=3]="START_TAG",e[e.END_TAG=4]="END_TAG",e[e.COMMENT=5]="COMMENT",e[e.DOCTYPE=6]="DOCTYPE",e[e.EOF=7]="EOF",e[e.HIBERNATION=8]="HIBERNATION"}(Z=Z||(Z={}));const ee=new Uint16Array('\u1d41<\xd5\u0131\u028a\u049d\u057b\u05d0\u0675\u06de\u07a2\u07d6\u080f\u0a4a\u0a91\u0da1\u0e6d\u0f09\u0f26\u10ca\u1228\u12e1\u1415\u149d\u14c3\u14df\u1525\0\0\0\0\0\0\u156b\u16cd\u198d\u1c12\u1ddd\u1f7e\u2060\u21b0\u228d\u23c0\u23fb\u2442\u2824\u2912\u2d08\u2e48\u2fce\u3016\u32ba\u3639\u37ac\u38fe\u3a28\u3a71\u3ae0\u3b2e\u0800EMabcfglmnoprstu\\bfms\x7f\x84\x8b\x90\x95\x98\xa6\xb3\xb9\xc8\xcflig\u803b\xc6\u40c6P\u803b&\u4026cute\u803b\xc1\u40c1reve;\u4102\u0100iyx}rc\u803b\xc2\u40c2;\u4410r;\uc000\ud835\udd04rave\u803b\xc0\u40c0pha;\u4391acr;\u4100d;\u6a53\u0100gp\x9d\xa1on;\u4104f;\uc000\ud835\udd38plyFunction;\u6061ing\u803b\xc5\u40c5\u0100cs\xbe\xc3r;\uc000\ud835\udc9cign;\u6254ilde\u803b\xc3\u40c3ml\u803b\xc4\u40c4\u0400aceforsu\xe5\xfb\xfe\u0117\u011c\u0122\u0127\u012a\u0100cr\xea\xf2kslash;\u6216\u0176\xf6\xf8;\u6ae7ed;\u6306y;\u4411\u0180crt\u0105\u010b\u0114ause;\u6235noullis;\u612ca;\u4392r;\uc000\ud835\udd05pf;\uc000\ud835\udd39eve;\u42d8c\xf2\u0113mpeq;\u624e\u0700HOacdefhilorsu\u014d\u0151\u0156\u0180\u019e\u01a2\u01b5\u01b7\u01ba\u01dc\u0215\u0273\u0278\u027ecy;\u4427PY\u803b\xa9\u40a9\u0180cpy\u015d\u0162\u017aute;\u4106\u0100;i\u0167\u0168\u62d2talDifferentialD;\u6145leys;\u612d\u0200aeio\u0189\u018e\u0194\u0198ron;\u410cdil\u803b\xc7\u40c7rc;\u4108nint;\u6230ot;\u410a\u0100dn\u01a7\u01adilla;\u40b8terDot;\u40b7\xf2\u017fi;\u43a7rcle\u0200DMPT\u01c7\u01cb\u01d1\u01d6ot;\u6299inus;\u6296lus;\u6295imes;\u6297o\u0100cs\u01e2\u01f8kwiseContourIntegral;\u6232eCurly\u0100DQ\u0203\u020foubleQuote;\u601duote;\u6019\u0200lnpu\u021e\u0228\u0247\u0255on\u0100;e\u0225\u0226\u6237;\u6a74\u0180git\u022f\u0236\u023aruent;\u6261nt;\u622fourIntegral;\u622e\u0100fr\u024c\u024e;\u6102oduct;\u6210nterClockwiseContourIntegral;\u6233oss;\u6a2fcr;\uc000\ud835\udc9ep\u0100;C\u0284\u0285\u62d3ap;\u624d\u0580DJSZacefios\u02a0\u02ac\u02b0\u02b4\u02b8\u02cb\u02d7\u02e1\u02e6\u0333\u048d\u0100;o\u0179\u02a5trahd;\u6911cy;\u4402cy;\u4405cy;\u440f\u0180grs\u02bf\u02c4\u02c7ger;\u6021r;\u61a1hv;\u6ae4\u0100ay\u02d0\u02d5ron;\u410e;\u4414l\u0100;t\u02dd\u02de\u6207a;\u4394r;\uc000\ud835\udd07\u0100af\u02eb\u0327\u0100cm\u02f0\u0322ritical\u0200ADGT\u0300\u0306\u0316\u031ccute;\u40b4o\u0174\u030b\u030d;\u42d9bleAcute;\u42ddrave;\u4060ilde;\u42dcond;\u62c4ferentialD;\u6146\u0470\u033d\0\0\0\u0342\u0354\0\u0405f;\uc000\ud835\udd3b\u0180;DE\u0348\u0349\u034d\u40a8ot;\u60dcqual;\u6250ble\u0300CDLRUV\u0363\u0372\u0382\u03cf\u03e2\u03f8ontourIntegra\xec\u0239o\u0274\u0379\0\0\u037b\xbb\u0349nArrow;\u61d3\u0100eo\u0387\u03a4ft\u0180ART\u0390\u0396\u03a1rrow;\u61d0ightArrow;\u61d4e\xe5\u02cang\u0100LR\u03ab\u03c4eft\u0100AR\u03b3\u03b9rrow;\u67f8ightArrow;\u67faightArrow;\u67f9ight\u0100AT\u03d8\u03derrow;\u61d2ee;\u62a8p\u0241\u03e9\0\0\u03efrrow;\u61d1ownArrow;\u61d5erticalBar;\u6225n\u0300ABLRTa\u0412\u042a\u0430\u045e\u047f\u037crrow\u0180;BU\u041d\u041e\u0422\u6193ar;\u6913pArrow;\u61f5reve;\u4311eft\u02d2\u043a\0\u0446\0\u0450ightVector;\u6950eeVector;\u695eector\u0100;B\u0459\u045a\u61bdar;\u6956ight\u01d4\u0467\0\u0471eeVector;\u695fector\u0100;B\u047a\u047b\u61c1ar;\u6957ee\u0100;A\u0486\u0487\u62a4rrow;\u61a7\u0100ct\u0492\u0497r;\uc000\ud835\udc9frok;\u4110\u0800NTacdfglmopqstux\u04bd\u04c0\u04c4\u04cb\u04de\u04e2\u04e7\u04ee\u04f5\u0521\u052f\u0536\u0552\u055d\u0560\u0565G;\u414aH\u803b\xd0\u40d0cute\u803b\xc9\u40c9\u0180aiy\u04d2\u04d7\u04dcron;\u411arc\u803b\xca\u40ca;\u442dot;\u4116r;\uc000\ud835\udd08rave\u803b\xc8\u40c8ement;\u6208\u0100ap\u04fa\u04fecr;\u4112ty\u0253\u0506\0\0\u0512mallSquare;\u65fberySmallSquare;\u65ab\u0100gp\u0526\u052aon;\u4118f;\uc000\ud835\udd3csilon;\u4395u\u0100ai\u053c\u0549l\u0100;T\u0542\u0543\u6a75ilde;\u6242librium;\u61cc\u0100ci\u0557\u055ar;\u6130m;\u6a73a;\u4397ml\u803b\xcb\u40cb\u0100ip\u056a\u056fsts;\u6203onentialE;\u6147\u0280cfios\u0585\u0588\u058d\u05b2\u05ccy;\u4424r;\uc000\ud835\udd09lled\u0253\u0597\0\0\u05a3mallSquare;\u65fcerySmallSquare;\u65aa\u0370\u05ba\0\u05bf\0\0\u05c4f;\uc000\ud835\udd3dAll;\u6200riertrf;\u6131c\xf2\u05cb\u0600JTabcdfgorst\u05e8\u05ec\u05ef\u05fa\u0600\u0612\u0616\u061b\u061d\u0623\u066c\u0672cy;\u4403\u803b>\u403emma\u0100;d\u05f7\u05f8\u4393;\u43dcreve;\u411e\u0180eiy\u0607\u060c\u0610dil;\u4122rc;\u411c;\u4413ot;\u4120r;\uc000\ud835\udd0a;\u62d9pf;\uc000\ud835\udd3eeater\u0300EFGLST\u0635\u0644\u064e\u0656\u065b\u0666qual\u0100;L\u063e\u063f\u6265ess;\u62dbullEqual;\u6267reater;\u6aa2ess;\u6277lantEqual;\u6a7eilde;\u6273cr;\uc000\ud835\udca2;\u626b\u0400Aacfiosu\u0685\u068b\u0696\u069b\u069e\u06aa\u06be\u06caRDcy;\u442a\u0100ct\u0690\u0694ek;\u42c7;\u405eirc;\u4124r;\u610clbertSpace;\u610b\u01f0\u06af\0\u06b2f;\u610dizontalLine;\u6500\u0100ct\u06c3\u06c5\xf2\u06a9rok;\u4126mp\u0144\u06d0\u06d8ownHum\xf0\u012fqual;\u624f\u0700EJOacdfgmnostu\u06fa\u06fe\u0703\u0707\u070e\u071a\u071e\u0721\u0728\u0744\u0778\u078b\u078f\u0795cy;\u4415lig;\u4132cy;\u4401cute\u803b\xcd\u40cd\u0100iy\u0713\u0718rc\u803b\xce\u40ce;\u4418ot;\u4130r;\u6111rave\u803b\xcc\u40cc\u0180;ap\u0720\u072f\u073f\u0100cg\u0734\u0737r;\u412ainaryI;\u6148lie\xf3\u03dd\u01f4\u0749\0\u0762\u0100;e\u074d\u074e\u622c\u0100gr\u0753\u0758ral;\u622bsection;\u62c2isible\u0100CT\u076c\u0772omma;\u6063imes;\u6062\u0180gpt\u077f\u0783\u0788on;\u412ef;\uc000\ud835\udd40a;\u4399cr;\u6110ilde;\u4128\u01eb\u079a\0\u079ecy;\u4406l\u803b\xcf\u40cf\u0280cfosu\u07ac\u07b7\u07bc\u07c2\u07d0\u0100iy\u07b1\u07b5rc;\u4134;\u4419r;\uc000\ud835\udd0dpf;\uc000\ud835\udd41\u01e3\u07c7\0\u07ccr;\uc000\ud835\udca5rcy;\u4408kcy;\u4404\u0380HJacfos\u07e4\u07e8\u07ec\u07f1\u07fd\u0802\u0808cy;\u4425cy;\u440cppa;\u439a\u0100ey\u07f6\u07fbdil;\u4136;\u441ar;\uc000\ud835\udd0epf;\uc000\ud835\udd42cr;\uc000\ud835\udca6\u0580JTaceflmost\u0825\u0829\u082c\u0850\u0863\u09b3\u09b8\u09c7\u09cd\u0a37\u0a47cy;\u4409\u803b<\u403c\u0280cmnpr\u0837\u083c\u0841\u0844\u084dute;\u4139bda;\u439bg;\u67ealacetrf;\u6112r;\u619e\u0180aey\u0857\u085c\u0861ron;\u413ddil;\u413b;\u441b\u0100fs\u0868\u0970t\u0500ACDFRTUVar\u087e\u08a9\u08b1\u08e0\u08e6\u08fc\u092f\u095b\u0390\u096a\u0100nr\u0883\u088fgleBracket;\u67e8row\u0180;BR\u0899\u089a\u089e\u6190ar;\u61e4ightArrow;\u61c6eiling;\u6308o\u01f5\u08b7\0\u08c3bleBracket;\u67e6n\u01d4\u08c8\0\u08d2eeVector;\u6961ector\u0100;B\u08db\u08dc\u61c3ar;\u6959loor;\u630aight\u0100AV\u08ef\u08f5rrow;\u6194ector;\u694e\u0100er\u0901\u0917e\u0180;AV\u0909\u090a\u0910\u62a3rrow;\u61a4ector;\u695aiangle\u0180;BE\u0924\u0925\u0929\u62b2ar;\u69cfqual;\u62b4p\u0180DTV\u0937\u0942\u094cownVector;\u6951eeVector;\u6960ector\u0100;B\u0956\u0957\u61bfar;\u6958ector\u0100;B\u0965\u0966\u61bcar;\u6952ight\xe1\u039cs\u0300EFGLST\u097e\u098b\u0995\u099d\u09a2\u09adqualGreater;\u62daullEqual;\u6266reater;\u6276ess;\u6aa1lantEqual;\u6a7dilde;\u6272r;\uc000\ud835\udd0f\u0100;e\u09bd\u09be\u62d8ftarrow;\u61daidot;\u413f\u0180npw\u09d4\u0a16\u0a1bg\u0200LRlr\u09de\u09f7\u0a02\u0a10eft\u0100AR\u09e6\u09ecrrow;\u67f5ightArrow;\u67f7ightArrow;\u67f6eft\u0100ar\u03b3\u0a0aight\xe1\u03bfight\xe1\u03caf;\uc000\ud835\udd43er\u0100LR\u0a22\u0a2ceftArrow;\u6199ightArrow;\u6198\u0180cht\u0a3e\u0a40\u0a42\xf2\u084c;\u61b0rok;\u4141;\u626a\u0400acefiosu\u0a5a\u0a5d\u0a60\u0a77\u0a7c\u0a85\u0a8b\u0a8ep;\u6905y;\u441c\u0100dl\u0a65\u0a6fiumSpace;\u605flintrf;\u6133r;\uc000\ud835\udd10nusPlus;\u6213pf;\uc000\ud835\udd44c\xf2\u0a76;\u439c\u0480Jacefostu\u0aa3\u0aa7\u0aad\u0ac0\u0b14\u0b19\u0d91\u0d97\u0d9ecy;\u440acute;\u4143\u0180aey\u0ab4\u0ab9\u0aberon;\u4147dil;\u4145;\u441d\u0180gsw\u0ac7\u0af0\u0b0eative\u0180MTV\u0ad3\u0adf\u0ae8ediumSpace;\u600bhi\u0100cn\u0ae6\u0ad8\xeb\u0ad9eryThi\xee\u0ad9ted\u0100GL\u0af8\u0b06reaterGreate\xf2\u0673essLes\xf3\u0a48Line;\u400ar;\uc000\ud835\udd11\u0200Bnpt\u0b22\u0b28\u0b37\u0b3areak;\u6060BreakingSpace;\u40a0f;\u6115\u0680;CDEGHLNPRSTV\u0b55\u0b56\u0b6a\u0b7c\u0ba1\u0beb\u0c04\u0c5e\u0c84\u0ca6\u0cd8\u0d61\u0d85\u6aec\u0100ou\u0b5b\u0b64ngruent;\u6262pCap;\u626doubleVerticalBar;\u6226\u0180lqx\u0b83\u0b8a\u0b9bement;\u6209ual\u0100;T\u0b92\u0b93\u6260ilde;\uc000\u2242\u0338ists;\u6204reater\u0380;EFGLST\u0bb6\u0bb7\u0bbd\u0bc9\u0bd3\u0bd8\u0be5\u626fqual;\u6271ullEqual;\uc000\u2267\u0338reater;\uc000\u226b\u0338ess;\u6279lantEqual;\uc000\u2a7e\u0338ilde;\u6275ump\u0144\u0bf2\u0bfdownHump;\uc000\u224e\u0338qual;\uc000\u224f\u0338e\u0100fs\u0c0a\u0c27tTriangle\u0180;BE\u0c1a\u0c1b\u0c21\u62eaar;\uc000\u29cf\u0338qual;\u62ecs\u0300;EGLST\u0c35\u0c36\u0c3c\u0c44\u0c4b\u0c58\u626equal;\u6270reater;\u6278ess;\uc000\u226a\u0338lantEqual;\uc000\u2a7d\u0338ilde;\u6274ested\u0100GL\u0c68\u0c79reaterGreater;\uc000\u2aa2\u0338essLess;\uc000\u2aa1\u0338recedes\u0180;ES\u0c92\u0c93\u0c9b\u6280qual;\uc000\u2aaf\u0338lantEqual;\u62e0\u0100ei\u0cab\u0cb9verseElement;\u620cghtTriangle\u0180;BE\u0ccb\u0ccc\u0cd2\u62ebar;\uc000\u29d0\u0338qual;\u62ed\u0100qu\u0cdd\u0d0cuareSu\u0100bp\u0ce8\u0cf9set\u0100;E\u0cf0\u0cf3\uc000\u228f\u0338qual;\u62e2erset\u0100;E\u0d03\u0d06\uc000\u2290\u0338qual;\u62e3\u0180bcp\u0d13\u0d24\u0d4eset\u0100;E\u0d1b\u0d1e\uc000\u2282\u20d2qual;\u6288ceeds\u0200;EST\u0d32\u0d33\u0d3b\u0d46\u6281qual;\uc000\u2ab0\u0338lantEqual;\u62e1ilde;\uc000\u227f\u0338erset\u0100;E\u0d58\u0d5b\uc000\u2283\u20d2qual;\u6289ilde\u0200;EFT\u0d6e\u0d6f\u0d75\u0d7f\u6241qual;\u6244ullEqual;\u6247ilde;\u6249erticalBar;\u6224cr;\uc000\ud835\udca9ilde\u803b\xd1\u40d1;\u439d\u0700Eacdfgmoprstuv\u0dbd\u0dc2\u0dc9\u0dd5\u0ddb\u0de0\u0de7\u0dfc\u0e02\u0e20\u0e22\u0e32\u0e3f\u0e44lig;\u4152cute\u803b\xd3\u40d3\u0100iy\u0dce\u0dd3rc\u803b\xd4\u40d4;\u441eblac;\u4150r;\uc000\ud835\udd12rave\u803b\xd2\u40d2\u0180aei\u0dee\u0df2\u0df6cr;\u414cga;\u43a9cron;\u439fpf;\uc000\ud835\udd46enCurly\u0100DQ\u0e0e\u0e1aoubleQuote;\u601cuote;\u6018;\u6a54\u0100cl\u0e27\u0e2cr;\uc000\ud835\udcaaash\u803b\xd8\u40d8i\u016c\u0e37\u0e3cde\u803b\xd5\u40d5es;\u6a37ml\u803b\xd6\u40d6er\u0100BP\u0e4b\u0e60\u0100ar\u0e50\u0e53r;\u603eac\u0100ek\u0e5a\u0e5c;\u63deet;\u63b4arenthesis;\u63dc\u0480acfhilors\u0e7f\u0e87\u0e8a\u0e8f\u0e92\u0e94\u0e9d\u0eb0\u0efcrtialD;\u6202y;\u441fr;\uc000\ud835\udd13i;\u43a6;\u43a0usMinus;\u40b1\u0100ip\u0ea2\u0eadncareplan\xe5\u069df;\u6119\u0200;eio\u0eb9\u0eba\u0ee0\u0ee4\u6abbcedes\u0200;EST\u0ec8\u0ec9\u0ecf\u0eda\u627aqual;\u6aaflantEqual;\u627cilde;\u627eme;\u6033\u0100dp\u0ee9\u0eeeuct;\u620fortion\u0100;a\u0225\u0ef9l;\u621d\u0100ci\u0f01\u0f06r;\uc000\ud835\udcab;\u43a8\u0200Ufos\u0f11\u0f16\u0f1b\u0f1fOT\u803b"\u4022r;\uc000\ud835\udd14pf;\u611acr;\uc000\ud835\udcac\u0600BEacefhiorsu\u0f3e\u0f43\u0f47\u0f60\u0f73\u0fa7\u0faa\u0fad\u1096\u10a9\u10b4\u10bearr;\u6910G\u803b\xae\u40ae\u0180cnr\u0f4e\u0f53\u0f56ute;\u4154g;\u67ebr\u0100;t\u0f5c\u0f5d\u61a0l;\u6916\u0180aey\u0f67\u0f6c\u0f71ron;\u4158dil;\u4156;\u4420\u0100;v\u0f78\u0f79\u611cerse\u0100EU\u0f82\u0f99\u0100lq\u0f87\u0f8eement;\u620builibrium;\u61cbpEquilibrium;\u696fr\xbb\u0f79o;\u43a1ght\u0400ACDFTUVa\u0fc1\u0feb\u0ff3\u1022\u1028\u105b\u1087\u03d8\u0100nr\u0fc6\u0fd2gleBracket;\u67e9row\u0180;BL\u0fdc\u0fdd\u0fe1\u6192ar;\u61e5eftArrow;\u61c4eiling;\u6309o\u01f5\u0ff9\0\u1005bleBracket;\u67e7n\u01d4\u100a\0\u1014eeVector;\u695dector\u0100;B\u101d\u101e\u61c2ar;\u6955loor;\u630b\u0100er\u102d\u1043e\u0180;AV\u1035\u1036\u103c\u62a2rrow;\u61a6ector;\u695biangle\u0180;BE\u1050\u1051\u1055\u62b3ar;\u69d0qual;\u62b5p\u0180DTV\u1063\u106e\u1078ownVector;\u694feeVector;\u695cector\u0100;B\u1082\u1083\u61bear;\u6954ector\u0100;B\u1091\u1092\u61c0ar;\u6953\u0100pu\u109b\u109ef;\u611dndImplies;\u6970ightarrow;\u61db\u0100ch\u10b9\u10bcr;\u611b;\u61b1leDelayed;\u69f4\u0680HOacfhimoqstu\u10e4\u10f1\u10f7\u10fd\u1119\u111e\u1151\u1156\u1161\u1167\u11b5\u11bb\u11bf\u0100Cc\u10e9\u10eeHcy;\u4429y;\u4428FTcy;\u442ccute;\u415a\u0280;aeiy\u1108\u1109\u110e\u1113\u1117\u6abcron;\u4160dil;\u415erc;\u415c;\u4421r;\uc000\ud835\udd16ort\u0200DLRU\u112a\u1134\u113e\u1149ownArrow\xbb\u041eeftArrow\xbb\u089aightArrow\xbb\u0fddpArrow;\u6191gma;\u43a3allCircle;\u6218pf;\uc000\ud835\udd4a\u0272\u116d\0\0\u1170t;\u621aare\u0200;ISU\u117b\u117c\u1189\u11af\u65a1ntersection;\u6293u\u0100bp\u118f\u119eset\u0100;E\u1197\u1198\u628fqual;\u6291erset\u0100;E\u11a8\u11a9\u6290qual;\u6292nion;\u6294cr;\uc000\ud835\udcaear;\u62c6\u0200bcmp\u11c8\u11db\u1209\u120b\u0100;s\u11cd\u11ce\u62d0et\u0100;E\u11cd\u11d5qual;\u6286\u0100ch\u11e0\u1205eeds\u0200;EST\u11ed\u11ee\u11f4\u11ff\u627bqual;\u6ab0lantEqual;\u627dilde;\u627fTh\xe1\u0f8c;\u6211\u0180;es\u1212\u1213\u1223\u62d1rset\u0100;E\u121c\u121d\u6283qual;\u6287et\xbb\u1213\u0580HRSacfhiors\u123e\u1244\u1249\u1255\u125e\u1271\u1276\u129f\u12c2\u12c8\u12d1ORN\u803b\xde\u40deADE;\u6122\u0100Hc\u124e\u1252cy;\u440by;\u4426\u0100bu\u125a\u125c;\u4009;\u43a4\u0180aey\u1265\u126a\u126fron;\u4164dil;\u4162;\u4422r;\uc000\ud835\udd17\u0100ei\u127b\u1289\u01f2\u1280\0\u1287efore;\u6234a;\u4398\u0100cn\u128e\u1298kSpace;\uc000\u205f\u200aSpace;\u6009lde\u0200;EFT\u12ab\u12ac\u12b2\u12bc\u623cqual;\u6243ullEqual;\u6245ilde;\u6248pf;\uc000\ud835\udd4bipleDot;\u60db\u0100ct\u12d6\u12dbr;\uc000\ud835\udcafrok;\u4166\u0ae1\u12f7\u130e\u131a\u1326\0\u132c\u1331\0\0\0\0\0\u1338\u133d\u1377\u1385\0\u13ff\u1404\u140a\u1410\u0100cr\u12fb\u1301ute\u803b\xda\u40dar\u0100;o\u1307\u1308\u619fcir;\u6949r\u01e3\u1313\0\u1316y;\u440eve;\u416c\u0100iy\u131e\u1323rc\u803b\xdb\u40db;\u4423blac;\u4170r;\uc000\ud835\udd18rave\u803b\xd9\u40d9acr;\u416a\u0100di\u1341\u1369er\u0100BP\u1348\u135d\u0100ar\u134d\u1350r;\u405fac\u0100ek\u1357\u1359;\u63dfet;\u63b5arenthesis;\u63ddon\u0100;P\u1370\u1371\u62c3lus;\u628e\u0100gp\u137b\u137fon;\u4172f;\uc000\ud835\udd4c\u0400ADETadps\u1395\u13ae\u13b8\u13c4\u03e8\u13d2\u13d7\u13f3rrow\u0180;BD\u1150\u13a0\u13a4ar;\u6912ownArrow;\u61c5ownArrow;\u6195quilibrium;\u696eee\u0100;A\u13cb\u13cc\u62a5rrow;\u61a5own\xe1\u03f3er\u0100LR\u13de\u13e8eftArrow;\u6196ightArrow;\u6197i\u0100;l\u13f9\u13fa\u43d2on;\u43a5ing;\u416ecr;\uc000\ud835\udcb0ilde;\u4168ml\u803b\xdc\u40dc\u0480Dbcdefosv\u1427\u142c\u1430\u1433\u143e\u1485\u148a\u1490\u1496ash;\u62abar;\u6aeby;\u4412ash\u0100;l\u143b\u143c\u62a9;\u6ae6\u0100er\u1443\u1445;\u62c1\u0180bty\u144c\u1450\u147aar;\u6016\u0100;i\u144f\u1455cal\u0200BLST\u1461\u1465\u146a\u1474ar;\u6223ine;\u407ceparator;\u6758ilde;\u6240ThinSpace;\u600ar;\uc000\ud835\udd19pf;\uc000\ud835\udd4dcr;\uc000\ud835\udcb1dash;\u62aa\u0280cefos\u14a7\u14ac\u14b1\u14b6\u14bcirc;\u4174dge;\u62c0r;\uc000\ud835\udd1apf;\uc000\ud835\udd4ecr;\uc000\ud835\udcb2\u0200fios\u14cb\u14d0\u14d2\u14d8r;\uc000\ud835\udd1b;\u439epf;\uc000\ud835\udd4fcr;\uc000\ud835\udcb3\u0480AIUacfosu\u14f1\u14f5\u14f9\u14fd\u1504\u150f\u1514\u151a\u1520cy;\u442fcy;\u4407cy;\u442ecute\u803b\xdd\u40dd\u0100iy\u1509\u150drc;\u4176;\u442br;\uc000\ud835\udd1cpf;\uc000\ud835\udd50cr;\uc000\ud835\udcb4ml;\u4178\u0400Hacdefos\u1535\u1539\u153f\u154b\u154f\u155d\u1560\u1564cy;\u4416cute;\u4179\u0100ay\u1544\u1549ron;\u417d;\u4417ot;\u417b\u01f2\u1554\0\u155boWidt\xe8\u0ad9a;\u4396r;\u6128pf;\u6124cr;\uc000\ud835\udcb5\u0be1\u1583\u158a\u1590\0\u15b0\u15b6\u15bf\0\0\0\0\u15c6\u15db\u15eb\u165f\u166d\0\u1695\u169b\u16b2\u16b9\0\u16becute\u803b\xe1\u40e1reve;\u4103\u0300;Ediuy\u159c\u159d\u15a1\u15a3\u15a8\u15ad\u623e;\uc000\u223e\u0333;\u623frc\u803b\xe2\u40e2te\u80bb\xb4\u0306;\u4430lig\u803b\xe6\u40e6\u0100;r\xb2\u15ba;\uc000\ud835\udd1erave\u803b\xe0\u40e0\u0100ep\u15ca\u15d6\u0100fp\u15cf\u15d4sym;\u6135\xe8\u15d3ha;\u43b1\u0100ap\u15dfc\u0100cl\u15e4\u15e7r;\u4101g;\u6a3f\u0264\u15f0\0\0\u160a\u0280;adsv\u15fa\u15fb\u15ff\u1601\u1607\u6227nd;\u6a55;\u6a5clope;\u6a58;\u6a5a\u0380;elmrsz\u1618\u1619\u161b\u161e\u163f\u164f\u1659\u6220;\u69a4e\xbb\u1619sd\u0100;a\u1625\u1626\u6221\u0461\u1630\u1632\u1634\u1636\u1638\u163a\u163c\u163e;\u69a8;\u69a9;\u69aa;\u69ab;\u69ac;\u69ad;\u69ae;\u69aft\u0100;v\u1645\u1646\u621fb\u0100;d\u164c\u164d\u62be;\u699d\u0100pt\u1654\u1657h;\u6222\xbb\xb9arr;\u637c\u0100gp\u1663\u1667on;\u4105f;\uc000\ud835\udd52\u0380;Eaeiop\u12c1\u167b\u167d\u1682\u1684\u1687\u168a;\u6a70cir;\u6a6f;\u624ad;\u624bs;\u4027rox\u0100;e\u12c1\u1692\xf1\u1683ing\u803b\xe5\u40e5\u0180cty\u16a1\u16a6\u16a8r;\uc000\ud835\udcb6;\u402amp\u0100;e\u12c1\u16af\xf1\u0288ilde\u803b\xe3\u40e3ml\u803b\xe4\u40e4\u0100ci\u16c2\u16c8onin\xf4\u0272nt;\u6a11\u0800Nabcdefiklnoprsu\u16ed\u16f1\u1730\u173c\u1743\u1748\u1778\u177d\u17e0\u17e6\u1839\u1850\u170d\u193d\u1948\u1970ot;\u6aed\u0100cr\u16f6\u171ek\u0200ceps\u1700\u1705\u170d\u1713ong;\u624cpsilon;\u43f6rime;\u6035im\u0100;e\u171a\u171b\u623dq;\u62cd\u0176\u1722\u1726ee;\u62bded\u0100;g\u172c\u172d\u6305e\xbb\u172drk\u0100;t\u135c\u1737brk;\u63b6\u0100oy\u1701\u1741;\u4431quo;\u601e\u0280cmprt\u1753\u175b\u1761\u1764\u1768aus\u0100;e\u010a\u0109ptyv;\u69b0s\xe9\u170cno\xf5\u0113\u0180ahw\u176f\u1771\u1773;\u43b2;\u6136een;\u626cr;\uc000\ud835\udd1fg\u0380costuvw\u178d\u179d\u17b3\u17c1\u17d5\u17db\u17de\u0180aiu\u1794\u1796\u179a\xf0\u0760rc;\u65efp\xbb\u1371\u0180dpt\u17a4\u17a8\u17adot;\u6a00lus;\u6a01imes;\u6a02\u0271\u17b9\0\0\u17becup;\u6a06ar;\u6605riangle\u0100du\u17cd\u17d2own;\u65bdp;\u65b3plus;\u6a04e\xe5\u1444\xe5\u14adarow;\u690d\u0180ako\u17ed\u1826\u1835\u0100cn\u17f2\u1823k\u0180lst\u17fa\u05ab\u1802ozenge;\u69ebriangle\u0200;dlr\u1812\u1813\u1818\u181d\u65b4own;\u65beeft;\u65c2ight;\u65b8k;\u6423\u01b1\u182b\0\u1833\u01b2\u182f\0\u1831;\u6592;\u65914;\u6593ck;\u6588\u0100eo\u183e\u184d\u0100;q\u1843\u1846\uc000=\u20e5uiv;\uc000\u2261\u20e5t;\u6310\u0200ptwx\u1859\u185e\u1867\u186cf;\uc000\ud835\udd53\u0100;t\u13cb\u1863om\xbb\u13cctie;\u62c8\u0600DHUVbdhmptuv\u1885\u1896\u18aa\u18bb\u18d7\u18db\u18ec\u18ff\u1905\u190a\u1910\u1921\u0200LRlr\u188e\u1890\u1892\u1894;\u6557;\u6554;\u6556;\u6553\u0280;DUdu\u18a1\u18a2\u18a4\u18a6\u18a8\u6550;\u6566;\u6569;\u6564;\u6567\u0200LRlr\u18b3\u18b5\u18b7\u18b9;\u655d;\u655a;\u655c;\u6559\u0380;HLRhlr\u18ca\u18cb\u18cd\u18cf\u18d1\u18d3\u18d5\u6551;\u656c;\u6563;\u6560;\u656b;\u6562;\u655fox;\u69c9\u0200LRlr\u18e4\u18e6\u18e8\u18ea;\u6555;\u6552;\u6510;\u650c\u0280;DUdu\u06bd\u18f7\u18f9\u18fb\u18fd;\u6565;\u6568;\u652c;\u6534inus;\u629flus;\u629eimes;\u62a0\u0200LRlr\u1919\u191b\u191d\u191f;\u655b;\u6558;\u6518;\u6514\u0380;HLRhlr\u1930\u1931\u1933\u1935\u1937\u1939\u193b\u6502;\u656a;\u6561;\u655e;\u653c;\u6524;\u651c\u0100ev\u0123\u1942bar\u803b\xa6\u40a6\u0200ceio\u1951\u1956\u195a\u1960r;\uc000\ud835\udcb7mi;\u604fm\u0100;e\u171a\u171cl\u0180;bh\u1968\u1969\u196b\u405c;\u69c5sub;\u67c8\u016c\u1974\u197el\u0100;e\u1979\u197a\u6022t\xbb\u197ap\u0180;Ee\u012f\u1985\u1987;\u6aae\u0100;q\u06dc\u06db\u0ce1\u19a7\0\u19e8\u1a11\u1a15\u1a32\0\u1a37\u1a50\0\0\u1ab4\0\0\u1ac1\0\0\u1b21\u1b2e\u1b4d\u1b52\0\u1bfd\0\u1c0c\u0180cpr\u19ad\u19b2\u19ddute;\u4107\u0300;abcds\u19bf\u19c0\u19c4\u19ca\u19d5\u19d9\u6229nd;\u6a44rcup;\u6a49\u0100au\u19cf\u19d2p;\u6a4bp;\u6a47ot;\u6a40;\uc000\u2229\ufe00\u0100eo\u19e2\u19e5t;\u6041\xee\u0693\u0200aeiu\u19f0\u19fb\u1a01\u1a05\u01f0\u19f5\0\u19f8s;\u6a4don;\u410ddil\u803b\xe7\u40e7rc;\u4109ps\u0100;s\u1a0c\u1a0d\u6a4cm;\u6a50ot;\u410b\u0180dmn\u1a1b\u1a20\u1a26il\u80bb\xb8\u01adptyv;\u69b2t\u8100\xa2;e\u1a2d\u1a2e\u40a2r\xe4\u01b2r;\uc000\ud835\udd20\u0180cei\u1a3d\u1a40\u1a4dy;\u4447ck\u0100;m\u1a47\u1a48\u6713ark\xbb\u1a48;\u43c7r\u0380;Ecefms\u1a5f\u1a60\u1a62\u1a6b\u1aa4\u1aaa\u1aae\u65cb;\u69c3\u0180;el\u1a69\u1a6a\u1a6d\u42c6q;\u6257e\u0261\u1a74\0\0\u1a88rrow\u0100lr\u1a7c\u1a81eft;\u61baight;\u61bb\u0280RSacd\u1a92\u1a94\u1a96\u1a9a\u1a9f\xbb\u0f47;\u64c8st;\u629birc;\u629aash;\u629dnint;\u6a10id;\u6aefcir;\u69c2ubs\u0100;u\u1abb\u1abc\u6663it\xbb\u1abc\u02ec\u1ac7\u1ad4\u1afa\0\u1b0aon\u0100;e\u1acd\u1ace\u403a\u0100;q\xc7\xc6\u026d\u1ad9\0\0\u1ae2a\u0100;t\u1ade\u1adf\u402c;\u4040\u0180;fl\u1ae8\u1ae9\u1aeb\u6201\xee\u1160e\u0100mx\u1af1\u1af6ent\xbb\u1ae9e\xf3\u024d\u01e7\u1afe\0\u1b07\u0100;d\u12bb\u1b02ot;\u6a6dn\xf4\u0246\u0180fry\u1b10\u1b14\u1b17;\uc000\ud835\udd54o\xe4\u0254\u8100\xa9;s\u0155\u1b1dr;\u6117\u0100ao\u1b25\u1b29rr;\u61b5ss;\u6717\u0100cu\u1b32\u1b37r;\uc000\ud835\udcb8\u0100bp\u1b3c\u1b44\u0100;e\u1b41\u1b42\u6acf;\u6ad1\u0100;e\u1b49\u1b4a\u6ad0;\u6ad2dot;\u62ef\u0380delprvw\u1b60\u1b6c\u1b77\u1b82\u1bac\u1bd4\u1bf9arr\u0100lr\u1b68\u1b6a;\u6938;\u6935\u0270\u1b72\0\0\u1b75r;\u62dec;\u62dfarr\u0100;p\u1b7f\u1b80\u61b6;\u693d\u0300;bcdos\u1b8f\u1b90\u1b96\u1ba1\u1ba5\u1ba8\u622arcap;\u6a48\u0100au\u1b9b\u1b9ep;\u6a46p;\u6a4aot;\u628dr;\u6a45;\uc000\u222a\ufe00\u0200alrv\u1bb5\u1bbf\u1bde\u1be3rr\u0100;m\u1bbc\u1bbd\u61b7;\u693cy\u0180evw\u1bc7\u1bd4\u1bd8q\u0270\u1bce\0\0\u1bd2re\xe3\u1b73u\xe3\u1b75ee;\u62ceedge;\u62cfen\u803b\xa4\u40a4earrow\u0100lr\u1bee\u1bf3eft\xbb\u1b80ight\xbb\u1bbde\xe4\u1bdd\u0100ci\u1c01\u1c07onin\xf4\u01f7nt;\u6231lcty;\u632d\u0980AHabcdefhijlorstuwz\u1c38\u1c3b\u1c3f\u1c5d\u1c69\u1c75\u1c8a\u1c9e\u1cac\u1cb7\u1cfb\u1cff\u1d0d\u1d7b\u1d91\u1dab\u1dbb\u1dc6\u1dcdr\xf2\u0381ar;\u6965\u0200glrs\u1c48\u1c4d\u1c52\u1c54ger;\u6020eth;\u6138\xf2\u1133h\u0100;v\u1c5a\u1c5b\u6010\xbb\u090a\u016b\u1c61\u1c67arow;\u690fa\xe3\u0315\u0100ay\u1c6e\u1c73ron;\u410f;\u4434\u0180;ao\u0332\u1c7c\u1c84\u0100gr\u02bf\u1c81r;\u61catseq;\u6a77\u0180glm\u1c91\u1c94\u1c98\u803b\xb0\u40b0ta;\u43b4ptyv;\u69b1\u0100ir\u1ca3\u1ca8sht;\u697f;\uc000\ud835\udd21ar\u0100lr\u1cb3\u1cb5\xbb\u08dc\xbb\u101e\u0280aegsv\u1cc2\u0378\u1cd6\u1cdc\u1ce0m\u0180;os\u0326\u1cca\u1cd4nd\u0100;s\u0326\u1cd1uit;\u6666amma;\u43ddin;\u62f2\u0180;io\u1ce7\u1ce8\u1cf8\u40f7de\u8100\xf7;o\u1ce7\u1cf0ntimes;\u62c7n\xf8\u1cf7cy;\u4452c\u026f\u1d06\0\0\u1d0arn;\u631eop;\u630d\u0280lptuw\u1d18\u1d1d\u1d22\u1d49\u1d55lar;\u4024f;\uc000\ud835\udd55\u0280;emps\u030b\u1d2d\u1d37\u1d3d\u1d42q\u0100;d\u0352\u1d33ot;\u6251inus;\u6238lus;\u6214quare;\u62a1blebarwedg\xe5\xfan\u0180adh\u112e\u1d5d\u1d67ownarrow\xf3\u1c83arpoon\u0100lr\u1d72\u1d76ef\xf4\u1cb4igh\xf4\u1cb6\u0162\u1d7f\u1d85karo\xf7\u0f42\u026f\u1d8a\0\0\u1d8ern;\u631fop;\u630c\u0180cot\u1d98\u1da3\u1da6\u0100ry\u1d9d\u1da1;\uc000\ud835\udcb9;\u4455l;\u69f6rok;\u4111\u0100dr\u1db0\u1db4ot;\u62f1i\u0100;f\u1dba\u1816\u65bf\u0100ah\u1dc0\u1dc3r\xf2\u0429a\xf2\u0fa6angle;\u69a6\u0100ci\u1dd2\u1dd5y;\u445fgrarr;\u67ff\u0900Dacdefglmnopqrstux\u1e01\u1e09\u1e19\u1e38\u0578\u1e3c\u1e49\u1e61\u1e7e\u1ea5\u1eaf\u1ebd\u1ee1\u1f2a\u1f37\u1f44\u1f4e\u1f5a\u0100Do\u1e06\u1d34o\xf4\u1c89\u0100cs\u1e0e\u1e14ute\u803b\xe9\u40e9ter;\u6a6e\u0200aioy\u1e22\u1e27\u1e31\u1e36ron;\u411br\u0100;c\u1e2d\u1e2e\u6256\u803b\xea\u40ealon;\u6255;\u444dot;\u4117\u0100Dr\u1e41\u1e45ot;\u6252;\uc000\ud835\udd22\u0180;rs\u1e50\u1e51\u1e57\u6a9aave\u803b\xe8\u40e8\u0100;d\u1e5c\u1e5d\u6a96ot;\u6a98\u0200;ils\u1e6a\u1e6b\u1e72\u1e74\u6a99nters;\u63e7;\u6113\u0100;d\u1e79\u1e7a\u6a95ot;\u6a97\u0180aps\u1e85\u1e89\u1e97cr;\u4113ty\u0180;sv\u1e92\u1e93\u1e95\u6205et\xbb\u1e93p\u01001;\u1e9d\u1ea4\u0133\u1ea1\u1ea3;\u6004;\u6005\u6003\u0100gs\u1eaa\u1eac;\u414bp;\u6002\u0100gp\u1eb4\u1eb8on;\u4119f;\uc000\ud835\udd56\u0180als\u1ec4\u1ece\u1ed2r\u0100;s\u1eca\u1ecb\u62d5l;\u69e3us;\u6a71i\u0180;lv\u1eda\u1edb\u1edf\u43b5on\xbb\u1edb;\u43f5\u0200csuv\u1eea\u1ef3\u1f0b\u1f23\u0100io\u1eef\u1e31rc\xbb\u1e2e\u0269\u1ef9\0\0\u1efb\xed\u0548ant\u0100gl\u1f02\u1f06tr\xbb\u1e5dess\xbb\u1e7a\u0180aei\u1f12\u1f16\u1f1als;\u403dst;\u625fv\u0100;D\u0235\u1f20D;\u6a78parsl;\u69e5\u0100Da\u1f2f\u1f33ot;\u6253rr;\u6971\u0180cdi\u1f3e\u1f41\u1ef8r;\u612fo\xf4\u0352\u0100ah\u1f49\u1f4b;\u43b7\u803b\xf0\u40f0\u0100mr\u1f53\u1f57l\u803b\xeb\u40ebo;\u60ac\u0180cip\u1f61\u1f64\u1f67l;\u4021s\xf4\u056e\u0100eo\u1f6c\u1f74ctatio\xee\u0559nential\xe5\u0579\u09e1\u1f92\0\u1f9e\0\u1fa1\u1fa7\0\0\u1fc6\u1fcc\0\u1fd3\0\u1fe6\u1fea\u2000\0\u2008\u205allingdotse\xf1\u1e44y;\u4444male;\u6640\u0180ilr\u1fad\u1fb3\u1fc1lig;\u8000\ufb03\u0269\u1fb9\0\0\u1fbdg;\u8000\ufb00ig;\u8000\ufb04;\uc000\ud835\udd23lig;\u8000\ufb01lig;\uc000fj\u0180alt\u1fd9\u1fdc\u1fe1t;\u666dig;\u8000\ufb02ns;\u65b1of;\u4192\u01f0\u1fee\0\u1ff3f;\uc000\ud835\udd57\u0100ak\u05bf\u1ff7\u0100;v\u1ffc\u1ffd\u62d4;\u6ad9artint;\u6a0d\u0100ao\u200c\u2055\u0100cs\u2011\u2052\u03b1\u201a\u2030\u2038\u2045\u2048\0\u2050\u03b2\u2022\u2025\u2027\u202a\u202c\0\u202e\u803b\xbd\u40bd;\u6153\u803b\xbc\u40bc;\u6155;\u6159;\u615b\u01b3\u2034\0\u2036;\u6154;\u6156\u02b4\u203e\u2041\0\0\u2043\u803b\xbe\u40be;\u6157;\u615c5;\u6158\u01b6\u204c\0\u204e;\u615a;\u615d8;\u615el;\u6044wn;\u6322cr;\uc000\ud835\udcbb\u0880Eabcdefgijlnorstv\u2082\u2089\u209f\u20a5\u20b0\u20b4\u20f0\u20f5\u20fa\u20ff\u2103\u2112\u2138\u0317\u213e\u2152\u219e\u0100;l\u064d\u2087;\u6a8c\u0180cmp\u2090\u2095\u209dute;\u41f5ma\u0100;d\u209c\u1cda\u43b3;\u6a86reve;\u411f\u0100iy\u20aa\u20aerc;\u411d;\u4433ot;\u4121\u0200;lqs\u063e\u0642\u20bd\u20c9\u0180;qs\u063e\u064c\u20c4lan\xf4\u0665\u0200;cdl\u0665\u20d2\u20d5\u20e5c;\u6aa9ot\u0100;o\u20dc\u20dd\u6a80\u0100;l\u20e2\u20e3\u6a82;\u6a84\u0100;e\u20ea\u20ed\uc000\u22db\ufe00s;\u6a94r;\uc000\ud835\udd24\u0100;g\u0673\u061bmel;\u6137cy;\u4453\u0200;Eaj\u065a\u210c\u210e\u2110;\u6a92;\u6aa5;\u6aa4\u0200Eaes\u211b\u211d\u2129\u2134;\u6269p\u0100;p\u2123\u2124\u6a8arox\xbb\u2124\u0100;q\u212e\u212f\u6a88\u0100;q\u212e\u211bim;\u62e7pf;\uc000\ud835\udd58\u0100ci\u2143\u2146r;\u610am\u0180;el\u066b\u214e\u2150;\u6a8e;\u6a90\u8300>;cdlqr\u05ee\u2160\u216a\u216e\u2173\u2179\u0100ci\u2165\u2167;\u6aa7r;\u6a7aot;\u62d7Par;\u6995uest;\u6a7c\u0280adels\u2184\u216a\u2190\u0656\u219b\u01f0\u2189\0\u218epro\xf8\u209er;\u6978q\u0100lq\u063f\u2196les\xf3\u2088i\xed\u066b\u0100en\u21a3\u21adrtneqq;\uc000\u2269\ufe00\xc5\u21aa\u0500Aabcefkosy\u21c4\u21c7\u21f1\u21f5\u21fa\u2218\u221d\u222f\u2268\u227dr\xf2\u03a0\u0200ilmr\u21d0\u21d4\u21d7\u21dbrs\xf0\u1484f\xbb\u2024il\xf4\u06a9\u0100dr\u21e0\u21e4cy;\u444a\u0180;cw\u08f4\u21eb\u21efir;\u6948;\u61adar;\u610firc;\u4125\u0180alr\u2201\u220e\u2213rts\u0100;u\u2209\u220a\u6665it\xbb\u220alip;\u6026con;\u62b9r;\uc000\ud835\udd25s\u0100ew\u2223\u2229arow;\u6925arow;\u6926\u0280amopr\u223a\u223e\u2243\u225e\u2263rr;\u61fftht;\u623bk\u0100lr\u2249\u2253eftarrow;\u61a9ightarrow;\u61aaf;\uc000\ud835\udd59bar;\u6015\u0180clt\u226f\u2274\u2278r;\uc000\ud835\udcbdas\xe8\u21f4rok;\u4127\u0100bp\u2282\u2287ull;\u6043hen\xbb\u1c5b\u0ae1\u22a3\0\u22aa\0\u22b8\u22c5\u22ce\0\u22d5\u22f3\0\0\u22f8\u2322\u2367\u2362\u237f\0\u2386\u23aa\u23b4cute\u803b\xed\u40ed\u0180;iy\u0771\u22b0\u22b5rc\u803b\xee\u40ee;\u4438\u0100cx\u22bc\u22bfy;\u4435cl\u803b\xa1\u40a1\u0100fr\u039f\u22c9;\uc000\ud835\udd26rave\u803b\xec\u40ec\u0200;ino\u073e\u22dd\u22e9\u22ee\u0100in\u22e2\u22e6nt;\u6a0ct;\u622dfin;\u69dcta;\u6129lig;\u4133\u0180aop\u22fe\u231a\u231d\u0180cgt\u2305\u2308\u2317r;\u412b\u0180elp\u071f\u230f\u2313in\xe5\u078ear\xf4\u0720h;\u4131f;\u62b7ed;\u41b5\u0280;cfot\u04f4\u232c\u2331\u233d\u2341are;\u6105in\u0100;t\u2338\u2339\u621eie;\u69dddo\xf4\u2319\u0280;celp\u0757\u234c\u2350\u235b\u2361al;\u62ba\u0100gr\u2355\u2359er\xf3\u1563\xe3\u234darhk;\u6a17rod;\u6a3c\u0200cgpt\u236f\u2372\u2376\u237by;\u4451on;\u412ff;\uc000\ud835\udd5aa;\u43b9uest\u803b\xbf\u40bf\u0100ci\u238a\u238fr;\uc000\ud835\udcben\u0280;Edsv\u04f4\u239b\u239d\u23a1\u04f3;\u62f9ot;\u62f5\u0100;v\u23a6\u23a7\u62f4;\u62f3\u0100;i\u0777\u23aelde;\u4129\u01eb\u23b8\0\u23bccy;\u4456l\u803b\xef\u40ef\u0300cfmosu\u23cc\u23d7\u23dc\u23e1\u23e7\u23f5\u0100iy\u23d1\u23d5rc;\u4135;\u4439r;\uc000\ud835\udd27ath;\u4237pf;\uc000\ud835\udd5b\u01e3\u23ec\0\u23f1r;\uc000\ud835\udcbfrcy;\u4458kcy;\u4454\u0400acfghjos\u240b\u2416\u2422\u2427\u242d\u2431\u2435\u243bppa\u0100;v\u2413\u2414\u43ba;\u43f0\u0100ey\u241b\u2420dil;\u4137;\u443ar;\uc000\ud835\udd28reen;\u4138cy;\u4445cy;\u445cpf;\uc000\ud835\udd5ccr;\uc000\ud835\udcc0\u0b80ABEHabcdefghjlmnoprstuv\u2470\u2481\u2486\u248d\u2491\u250e\u253d\u255a\u2580\u264e\u265e\u2665\u2679\u267d\u269a\u26b2\u26d8\u275d\u2768\u278b\u27c0\u2801\u2812\u0180art\u2477\u247a\u247cr\xf2\u09c6\xf2\u0395ail;\u691barr;\u690e\u0100;g\u0994\u248b;\u6a8bar;\u6962\u0963\u24a5\0\u24aa\0\u24b1\0\0\0\0\0\u24b5\u24ba\0\u24c6\u24c8\u24cd\0\u24f9ute;\u413amptyv;\u69b4ra\xee\u084cbda;\u43bbg\u0180;dl\u088e\u24c1\u24c3;\u6991\xe5\u088e;\u6a85uo\u803b\xab\u40abr\u0400;bfhlpst\u0899\u24de\u24e6\u24e9\u24eb\u24ee\u24f1\u24f5\u0100;f\u089d\u24e3s;\u691fs;\u691d\xeb\u2252p;\u61abl;\u6939im;\u6973l;\u61a2\u0180;ae\u24ff\u2500\u2504\u6aabil;\u6919\u0100;s\u2509\u250a\u6aad;\uc000\u2aad\ufe00\u0180abr\u2515\u2519\u251drr;\u690crk;\u6772\u0100ak\u2522\u252cc\u0100ek\u2528\u252a;\u407b;\u405b\u0100es\u2531\u2533;\u698bl\u0100du\u2539\u253b;\u698f;\u698d\u0200aeuy\u2546\u254b\u2556\u2558ron;\u413e\u0100di\u2550\u2554il;\u413c\xec\u08b0\xe2\u2529;\u443b\u0200cqrs\u2563\u2566\u256d\u257da;\u6936uo\u0100;r\u0e19\u1746\u0100du\u2572\u2577har;\u6967shar;\u694bh;\u61b2\u0280;fgqs\u258b\u258c\u0989\u25f3\u25ff\u6264t\u0280ahlrt\u2598\u25a4\u25b7\u25c2\u25e8rrow\u0100;t\u0899\u25a1a\xe9\u24f6arpoon\u0100du\u25af\u25b4own\xbb\u045ap\xbb\u0966eftarrows;\u61c7ight\u0180ahs\u25cd\u25d6\u25derrow\u0100;s\u08f4\u08a7arpoon\xf3\u0f98quigarro\xf7\u21f0hreetimes;\u62cb\u0180;qs\u258b\u0993\u25falan\xf4\u09ac\u0280;cdgs\u09ac\u260a\u260d\u261d\u2628c;\u6aa8ot\u0100;o\u2614\u2615\u6a7f\u0100;r\u261a\u261b\u6a81;\u6a83\u0100;e\u2622\u2625\uc000\u22da\ufe00s;\u6a93\u0280adegs\u2633\u2639\u263d\u2649\u264bppro\xf8\u24c6ot;\u62d6q\u0100gq\u2643\u2645\xf4\u0989gt\xf2\u248c\xf4\u099bi\xed\u09b2\u0180ilr\u2655\u08e1\u265asht;\u697c;\uc000\ud835\udd29\u0100;E\u099c\u2663;\u6a91\u0161\u2669\u2676r\u0100du\u25b2\u266e\u0100;l\u0965\u2673;\u696alk;\u6584cy;\u4459\u0280;acht\u0a48\u2688\u268b\u2691\u2696r\xf2\u25c1orne\xf2\u1d08ard;\u696bri;\u65fa\u0100io\u269f\u26a4dot;\u4140ust\u0100;a\u26ac\u26ad\u63b0che\xbb\u26ad\u0200Eaes\u26bb\u26bd\u26c9\u26d4;\u6268p\u0100;p\u26c3\u26c4\u6a89rox\xbb\u26c4\u0100;q\u26ce\u26cf\u6a87\u0100;q\u26ce\u26bbim;\u62e6\u0400abnoptwz\u26e9\u26f4\u26f7\u271a\u272f\u2741\u2747\u2750\u0100nr\u26ee\u26f1g;\u67ecr;\u61fdr\xeb\u08c1g\u0180lmr\u26ff\u270d\u2714eft\u0100ar\u09e6\u2707ight\xe1\u09f2apsto;\u67fcight\xe1\u09fdparrow\u0100lr\u2725\u2729ef\xf4\u24edight;\u61ac\u0180afl\u2736\u2739\u273dr;\u6985;\uc000\ud835\udd5dus;\u6a2dimes;\u6a34\u0161\u274b\u274fst;\u6217\xe1\u134e\u0180;ef\u2757\u2758\u1800\u65cange\xbb\u2758ar\u0100;l\u2764\u2765\u4028t;\u6993\u0280achmt\u2773\u2776\u277c\u2785\u2787r\xf2\u08a8orne\xf2\u1d8car\u0100;d\u0f98\u2783;\u696d;\u600eri;\u62bf\u0300achiqt\u2798\u279d\u0a40\u27a2\u27ae\u27bbquo;\u6039r;\uc000\ud835\udcc1m\u0180;eg\u09b2\u27aa\u27ac;\u6a8d;\u6a8f\u0100bu\u252a\u27b3o\u0100;r\u0e1f\u27b9;\u601arok;\u4142\u8400<;cdhilqr\u082b\u27d2\u2639\u27dc\u27e0\u27e5\u27ea\u27f0\u0100ci\u27d7\u27d9;\u6aa6r;\u6a79re\xe5\u25f2mes;\u62c9arr;\u6976uest;\u6a7b\u0100Pi\u27f5\u27f9ar;\u6996\u0180;ef\u2800\u092d\u181b\u65c3r\u0100du\u2807\u280dshar;\u694ahar;\u6966\u0100en\u2817\u2821rtneqq;\uc000\u2268\ufe00\xc5\u281e\u0700Dacdefhilnopsu\u2840\u2845\u2882\u288e\u2893\u28a0\u28a5\u28a8\u28da\u28e2\u28e4\u0a83\u28f3\u2902Dot;\u623a\u0200clpr\u284e\u2852\u2863\u287dr\u803b\xaf\u40af\u0100et\u2857\u2859;\u6642\u0100;e\u285e\u285f\u6720se\xbb\u285f\u0100;s\u103b\u2868to\u0200;dlu\u103b\u2873\u2877\u287bow\xee\u048cef\xf4\u090f\xf0\u13d1ker;\u65ae\u0100oy\u2887\u288cmma;\u6a29;\u443cash;\u6014asuredangle\xbb\u1626r;\uc000\ud835\udd2ao;\u6127\u0180cdn\u28af\u28b4\u28c9ro\u803b\xb5\u40b5\u0200;acd\u1464\u28bd\u28c0\u28c4s\xf4\u16a7ir;\u6af0ot\u80bb\xb7\u01b5us\u0180;bd\u28d2\u1903\u28d3\u6212\u0100;u\u1d3c\u28d8;\u6a2a\u0163\u28de\u28e1p;\u6adb\xf2\u2212\xf0\u0a81\u0100dp\u28e9\u28eeels;\u62a7f;\uc000\ud835\udd5e\u0100ct\u28f8\u28fdr;\uc000\ud835\udcc2pos\xbb\u159d\u0180;lm\u2909\u290a\u290d\u43bctimap;\u62b8\u0c00GLRVabcdefghijlmoprstuvw\u2942\u2953\u297e\u2989\u2998\u29da\u29e9\u2a15\u2a1a\u2a58\u2a5d\u2a83\u2a95\u2aa4\u2aa8\u2b04\u2b07\u2b44\u2b7f\u2bae\u2c34\u2c67\u2c7c\u2ce9\u0100gt\u2947\u294b;\uc000\u22d9\u0338\u0100;v\u2950\u0bcf\uc000\u226b\u20d2\u0180elt\u295a\u2972\u2976ft\u0100ar\u2961\u2967rrow;\u61cdightarrow;\u61ce;\uc000\u22d8\u0338\u0100;v\u297b\u0c47\uc000\u226a\u20d2ightarrow;\u61cf\u0100Dd\u298e\u2993ash;\u62afash;\u62ae\u0280bcnpt\u29a3\u29a7\u29ac\u29b1\u29ccla\xbb\u02deute;\u4144g;\uc000\u2220\u20d2\u0280;Eiop\u0d84\u29bc\u29c0\u29c5\u29c8;\uc000\u2a70\u0338d;\uc000\u224b\u0338s;\u4149ro\xf8\u0d84ur\u0100;a\u29d3\u29d4\u666el\u0100;s\u29d3\u0b38\u01f3\u29df\0\u29e3p\u80bb\xa0\u0b37mp\u0100;e\u0bf9\u0c00\u0280aeouy\u29f4\u29fe\u2a03\u2a10\u2a13\u01f0\u29f9\0\u29fb;\u6a43on;\u4148dil;\u4146ng\u0100;d\u0d7e\u2a0aot;\uc000\u2a6d\u0338p;\u6a42;\u443dash;\u6013\u0380;Aadqsx\u0b92\u2a29\u2a2d\u2a3b\u2a41\u2a45\u2a50rr;\u61d7r\u0100hr\u2a33\u2a36k;\u6924\u0100;o\u13f2\u13f0ot;\uc000\u2250\u0338ui\xf6\u0b63\u0100ei\u2a4a\u2a4ear;\u6928\xed\u0b98ist\u0100;s\u0ba0\u0b9fr;\uc000\ud835\udd2b\u0200Eest\u0bc5\u2a66\u2a79\u2a7c\u0180;qs\u0bbc\u2a6d\u0be1\u0180;qs\u0bbc\u0bc5\u2a74lan\xf4\u0be2i\xed\u0bea\u0100;r\u0bb6\u2a81\xbb\u0bb7\u0180Aap\u2a8a\u2a8d\u2a91r\xf2\u2971rr;\u61aear;\u6af2\u0180;sv\u0f8d\u2a9c\u0f8c\u0100;d\u2aa1\u2aa2\u62fc;\u62facy;\u445a\u0380AEadest\u2ab7\u2aba\u2abe\u2ac2\u2ac5\u2af6\u2af9r\xf2\u2966;\uc000\u2266\u0338rr;\u619ar;\u6025\u0200;fqs\u0c3b\u2ace\u2ae3\u2aeft\u0100ar\u2ad4\u2ad9rro\xf7\u2ac1ightarro\xf7\u2a90\u0180;qs\u0c3b\u2aba\u2aealan\xf4\u0c55\u0100;s\u0c55\u2af4\xbb\u0c36i\xed\u0c5d\u0100;r\u0c35\u2afei\u0100;e\u0c1a\u0c25i\xe4\u0d90\u0100pt\u2b0c\u2b11f;\uc000\ud835\udd5f\u8180\xac;in\u2b19\u2b1a\u2b36\u40acn\u0200;Edv\u0b89\u2b24\u2b28\u2b2e;\uc000\u22f9\u0338ot;\uc000\u22f5\u0338\u01e1\u0b89\u2b33\u2b35;\u62f7;\u62f6i\u0100;v\u0cb8\u2b3c\u01e1\u0cb8\u2b41\u2b43;\u62fe;\u62fd\u0180aor\u2b4b\u2b63\u2b69r\u0200;ast\u0b7b\u2b55\u2b5a\u2b5flle\xec\u0b7bl;\uc000\u2afd\u20e5;\uc000\u2202\u0338lint;\u6a14\u0180;ce\u0c92\u2b70\u2b73u\xe5\u0ca5\u0100;c\u0c98\u2b78\u0100;e\u0c92\u2b7d\xf1\u0c98\u0200Aait\u2b88\u2b8b\u2b9d\u2ba7r\xf2\u2988rr\u0180;cw\u2b94\u2b95\u2b99\u619b;\uc000\u2933\u0338;\uc000\u219d\u0338ghtarrow\xbb\u2b95ri\u0100;e\u0ccb\u0cd6\u0380chimpqu\u2bbd\u2bcd\u2bd9\u2b04\u0b78\u2be4\u2bef\u0200;cer\u0d32\u2bc6\u0d37\u2bc9u\xe5\u0d45;\uc000\ud835\udcc3ort\u026d\u2b05\0\0\u2bd6ar\xe1\u2b56m\u0100;e\u0d6e\u2bdf\u0100;q\u0d74\u0d73su\u0100bp\u2beb\u2bed\xe5\u0cf8\xe5\u0d0b\u0180bcp\u2bf6\u2c11\u2c19\u0200;Ees\u2bff\u2c00\u0d22\u2c04\u6284;\uc000\u2ac5\u0338et\u0100;e\u0d1b\u2c0bq\u0100;q\u0d23\u2c00c\u0100;e\u0d32\u2c17\xf1\u0d38\u0200;Ees\u2c22\u2c23\u0d5f\u2c27\u6285;\uc000\u2ac6\u0338et\u0100;e\u0d58\u2c2eq\u0100;q\u0d60\u2c23\u0200gilr\u2c3d\u2c3f\u2c45\u2c47\xec\u0bd7lde\u803b\xf1\u40f1\xe7\u0c43iangle\u0100lr\u2c52\u2c5ceft\u0100;e\u0c1a\u2c5a\xf1\u0c26ight\u0100;e\u0ccb\u2c65\xf1\u0cd7\u0100;m\u2c6c\u2c6d\u43bd\u0180;es\u2c74\u2c75\u2c79\u4023ro;\u6116p;\u6007\u0480DHadgilrs\u2c8f\u2c94\u2c99\u2c9e\u2ca3\u2cb0\u2cb6\u2cd3\u2ce3ash;\u62adarr;\u6904p;\uc000\u224d\u20d2ash;\u62ac\u0100et\u2ca8\u2cac;\uc000\u2265\u20d2;\uc000>\u20d2nfin;\u69de\u0180Aet\u2cbd\u2cc1\u2cc5rr;\u6902;\uc000\u2264\u20d2\u0100;r\u2cca\u2ccd\uc000<\u20d2ie;\uc000\u22b4\u20d2\u0100At\u2cd8\u2cdcrr;\u6903rie;\uc000\u22b5\u20d2im;\uc000\u223c\u20d2\u0180Aan\u2cf0\u2cf4\u2d02rr;\u61d6r\u0100hr\u2cfa\u2cfdk;\u6923\u0100;o\u13e7\u13e5ear;\u6927\u1253\u1a95\0\0\0\0\0\0\0\0\0\0\0\0\0\u2d2d\0\u2d38\u2d48\u2d60\u2d65\u2d72\u2d84\u1b07\0\0\u2d8d\u2dab\0\u2dc8\u2dce\0\u2ddc\u2e19\u2e2b\u2e3e\u2e43\u0100cs\u2d31\u1a97ute\u803b\xf3\u40f3\u0100iy\u2d3c\u2d45r\u0100;c\u1a9e\u2d42\u803b\xf4\u40f4;\u443e\u0280abios\u1aa0\u2d52\u2d57\u01c8\u2d5alac;\u4151v;\u6a38old;\u69bclig;\u4153\u0100cr\u2d69\u2d6dir;\u69bf;\uc000\ud835\udd2c\u036f\u2d79\0\0\u2d7c\0\u2d82n;\u42dbave\u803b\xf2\u40f2;\u69c1\u0100bm\u2d88\u0df4ar;\u69b5\u0200acit\u2d95\u2d98\u2da5\u2da8r\xf2\u1a80\u0100ir\u2d9d\u2da0r;\u69beoss;\u69bbn\xe5\u0e52;\u69c0\u0180aei\u2db1\u2db5\u2db9cr;\u414dga;\u43c9\u0180cdn\u2dc0\u2dc5\u01cdron;\u43bf;\u69b6pf;\uc000\ud835\udd60\u0180ael\u2dd4\u2dd7\u01d2r;\u69b7rp;\u69b9\u0380;adiosv\u2dea\u2deb\u2dee\u2e08\u2e0d\u2e10\u2e16\u6228r\xf2\u1a86\u0200;efm\u2df7\u2df8\u2e02\u2e05\u6a5dr\u0100;o\u2dfe\u2dff\u6134f\xbb\u2dff\u803b\xaa\u40aa\u803b\xba\u40bagof;\u62b6r;\u6a56lope;\u6a57;\u6a5b\u0180clo\u2e1f\u2e21\u2e27\xf2\u2e01ash\u803b\xf8\u40f8l;\u6298i\u016c\u2e2f\u2e34de\u803b\xf5\u40f5es\u0100;a\u01db\u2e3as;\u6a36ml\u803b\xf6\u40f6bar;\u633d\u0ae1\u2e5e\0\u2e7d\0\u2e80\u2e9d\0\u2ea2\u2eb9\0\0\u2ecb\u0e9c\0\u2f13\0\0\u2f2b\u2fbc\0\u2fc8r\u0200;ast\u0403\u2e67\u2e72\u0e85\u8100\xb6;l\u2e6d\u2e6e\u40b6le\xec\u0403\u0269\u2e78\0\0\u2e7bm;\u6af3;\u6afdy;\u443fr\u0280cimpt\u2e8b\u2e8f\u2e93\u1865\u2e97nt;\u4025od;\u402eil;\u6030enk;\u6031r;\uc000\ud835\udd2d\u0180imo\u2ea8\u2eb0\u2eb4\u0100;v\u2ead\u2eae\u43c6;\u43d5ma\xf4\u0a76ne;\u660e\u0180;tv\u2ebf\u2ec0\u2ec8\u43c0chfork\xbb\u1ffd;\u43d6\u0100au\u2ecf\u2edfn\u0100ck\u2ed5\u2eddk\u0100;h\u21f4\u2edb;\u610e\xf6\u21f4s\u0480;abcdemst\u2ef3\u2ef4\u1908\u2ef9\u2efd\u2f04\u2f06\u2f0a\u2f0e\u402bcir;\u6a23ir;\u6a22\u0100ou\u1d40\u2f02;\u6a25;\u6a72n\u80bb\xb1\u0e9dim;\u6a26wo;\u6a27\u0180ipu\u2f19\u2f20\u2f25ntint;\u6a15f;\uc000\ud835\udd61nd\u803b\xa3\u40a3\u0500;Eaceinosu\u0ec8\u2f3f\u2f41\u2f44\u2f47\u2f81\u2f89\u2f92\u2f7e\u2fb6;\u6ab3p;\u6ab7u\xe5\u0ed9\u0100;c\u0ece\u2f4c\u0300;acens\u0ec8\u2f59\u2f5f\u2f66\u2f68\u2f7eppro\xf8\u2f43urlye\xf1\u0ed9\xf1\u0ece\u0180aes\u2f6f\u2f76\u2f7approx;\u6ab9qq;\u6ab5im;\u62e8i\xed\u0edfme\u0100;s\u2f88\u0eae\u6032\u0180Eas\u2f78\u2f90\u2f7a\xf0\u2f75\u0180dfp\u0eec\u2f99\u2faf\u0180als\u2fa0\u2fa5\u2faalar;\u632eine;\u6312urf;\u6313\u0100;t\u0efb\u2fb4\xef\u0efbrel;\u62b0\u0100ci\u2fc0\u2fc5r;\uc000\ud835\udcc5;\u43c8ncsp;\u6008\u0300fiopsu\u2fda\u22e2\u2fdf\u2fe5\u2feb\u2ff1r;\uc000\ud835\udd2epf;\uc000\ud835\udd62rime;\u6057cr;\uc000\ud835\udcc6\u0180aeo\u2ff8\u3009\u3013t\u0100ei\u2ffe\u3005rnion\xf3\u06b0nt;\u6a16st\u0100;e\u3010\u3011\u403f\xf1\u1f19\xf4\u0f14\u0a80ABHabcdefhilmnoprstux\u3040\u3051\u3055\u3059\u30e0\u310e\u312b\u3147\u3162\u3172\u318e\u3206\u3215\u3224\u3229\u3258\u326e\u3272\u3290\u32b0\u32b7\u0180art\u3047\u304a\u304cr\xf2\u10b3\xf2\u03ddail;\u691car\xf2\u1c65ar;\u6964\u0380cdenqrt\u3068\u3075\u3078\u307f\u308f\u3094\u30cc\u0100eu\u306d\u3071;\uc000\u223d\u0331te;\u4155i\xe3\u116emptyv;\u69b3g\u0200;del\u0fd1\u3089\u308b\u308d;\u6992;\u69a5\xe5\u0fd1uo\u803b\xbb\u40bbr\u0580;abcfhlpstw\u0fdc\u30ac\u30af\u30b7\u30b9\u30bc\u30be\u30c0\u30c3\u30c7\u30cap;\u6975\u0100;f\u0fe0\u30b4s;\u6920;\u6933s;\u691e\xeb\u225d\xf0\u272el;\u6945im;\u6974l;\u61a3;\u619d\u0100ai\u30d1\u30d5il;\u691ao\u0100;n\u30db\u30dc\u6236al\xf3\u0f1e\u0180abr\u30e7\u30ea\u30eer\xf2\u17e5rk;\u6773\u0100ak\u30f3\u30fdc\u0100ek\u30f9\u30fb;\u407d;\u405d\u0100es\u3102\u3104;\u698cl\u0100du\u310a\u310c;\u698e;\u6990\u0200aeuy\u3117\u311c\u3127\u3129ron;\u4159\u0100di\u3121\u3125il;\u4157\xec\u0ff2\xe2\u30fa;\u4440\u0200clqs\u3134\u3137\u313d\u3144a;\u6937dhar;\u6969uo\u0100;r\u020e\u020dh;\u61b3\u0180acg\u314e\u315f\u0f44l\u0200;ips\u0f78\u3158\u315b\u109cn\xe5\u10bbar\xf4\u0fa9t;\u65ad\u0180ilr\u3169\u1023\u316esht;\u697d;\uc000\ud835\udd2f\u0100ao\u3177\u3186r\u0100du\u317d\u317f\xbb\u047b\u0100;l\u1091\u3184;\u696c\u0100;v\u318b\u318c\u43c1;\u43f1\u0180gns\u3195\u31f9\u31fcht\u0300ahlrst\u31a4\u31b0\u31c2\u31d8\u31e4\u31eerrow\u0100;t\u0fdc\u31ada\xe9\u30c8arpoon\u0100du\u31bb\u31bfow\xee\u317ep\xbb\u1092eft\u0100ah\u31ca\u31d0rrow\xf3\u0feaarpoon\xf3\u0551ightarrows;\u61c9quigarro\xf7\u30cbhreetimes;\u62ccg;\u42daingdotse\xf1\u1f32\u0180ahm\u320d\u3210\u3213r\xf2\u0feaa\xf2\u0551;\u600foust\u0100;a\u321e\u321f\u63b1che\xbb\u321fmid;\u6aee\u0200abpt\u3232\u323d\u3240\u3252\u0100nr\u3237\u323ag;\u67edr;\u61fer\xeb\u1003\u0180afl\u3247\u324a\u324er;\u6986;\uc000\ud835\udd63us;\u6a2eimes;\u6a35\u0100ap\u325d\u3267r\u0100;g\u3263\u3264\u4029t;\u6994olint;\u6a12ar\xf2\u31e3\u0200achq\u327b\u3280\u10bc\u3285quo;\u603ar;\uc000\ud835\udcc7\u0100bu\u30fb\u328ao\u0100;r\u0214\u0213\u0180hir\u3297\u329b\u32a0re\xe5\u31f8mes;\u62cai\u0200;efl\u32aa\u1059\u1821\u32ab\u65b9tri;\u69celuhar;\u6968;\u611e\u0d61\u32d5\u32db\u32df\u332c\u3338\u3371\0\u337a\u33a4\0\0\u33ec\u33f0\0\u3428\u3448\u345a\u34ad\u34b1\u34ca\u34f1\0\u3616\0\0\u3633cute;\u415bqu\xef\u27ba\u0500;Eaceinpsy\u11ed\u32f3\u32f5\u32ff\u3302\u330b\u330f\u331f\u3326\u3329;\u6ab4\u01f0\u32fa\0\u32fc;\u6ab8on;\u4161u\xe5\u11fe\u0100;d\u11f3\u3307il;\u415frc;\u415d\u0180Eas\u3316\u3318\u331b;\u6ab6p;\u6abaim;\u62e9olint;\u6a13i\xed\u1204;\u4441ot\u0180;be\u3334\u1d47\u3335\u62c5;\u6a66\u0380Aacmstx\u3346\u334a\u3357\u335b\u335e\u3363\u336drr;\u61d8r\u0100hr\u3350\u3352\xeb\u2228\u0100;o\u0a36\u0a34t\u803b\xa7\u40a7i;\u403bwar;\u6929m\u0100in\u3369\xf0nu\xf3\xf1t;\u6736r\u0100;o\u3376\u2055\uc000\ud835\udd30\u0200acoy\u3382\u3386\u3391\u33a0rp;\u666f\u0100hy\u338b\u338fcy;\u4449;\u4448rt\u026d\u3399\0\0\u339ci\xe4\u1464ara\xec\u2e6f\u803b\xad\u40ad\u0100gm\u33a8\u33b4ma\u0180;fv\u33b1\u33b2\u33b2\u43c3;\u43c2\u0400;deglnpr\u12ab\u33c5\u33c9\u33ce\u33d6\u33de\u33e1\u33e6ot;\u6a6a\u0100;q\u12b1\u12b0\u0100;E\u33d3\u33d4\u6a9e;\u6aa0\u0100;E\u33db\u33dc\u6a9d;\u6a9fe;\u6246lus;\u6a24arr;\u6972ar\xf2\u113d\u0200aeit\u33f8\u3408\u340f\u3417\u0100ls\u33fd\u3404lsetm\xe9\u336ahp;\u6a33parsl;\u69e4\u0100dl\u1463\u3414e;\u6323\u0100;e\u341c\u341d\u6aaa\u0100;s\u3422\u3423\u6aac;\uc000\u2aac\ufe00\u0180flp\u342e\u3433\u3442tcy;\u444c\u0100;b\u3438\u3439\u402f\u0100;a\u343e\u343f\u69c4r;\u633ff;\uc000\ud835\udd64a\u0100dr\u344d\u0402es\u0100;u\u3454\u3455\u6660it\xbb\u3455\u0180csu\u3460\u3479\u349f\u0100au\u3465\u346fp\u0100;s\u1188\u346b;\uc000\u2293\ufe00p\u0100;s\u11b4\u3475;\uc000\u2294\ufe00u\u0100bp\u347f\u348f\u0180;es\u1197\u119c\u3486et\u0100;e\u1197\u348d\xf1\u119d\u0180;es\u11a8\u11ad\u3496et\u0100;e\u11a8\u349d\xf1\u11ae\u0180;af\u117b\u34a6\u05b0r\u0165\u34ab\u05b1\xbb\u117car\xf2\u1148\u0200cemt\u34b9\u34be\u34c2\u34c5r;\uc000\ud835\udcc8tm\xee\xf1i\xec\u3415ar\xe6\u11be\u0100ar\u34ce\u34d5r\u0100;f\u34d4\u17bf\u6606\u0100an\u34da\u34edight\u0100ep\u34e3\u34eapsilo\xee\u1ee0h\xe9\u2eafs\xbb\u2852\u0280bcmnp\u34fb\u355e\u1209\u358b\u358e\u0480;Edemnprs\u350e\u350f\u3511\u3515\u351e\u3523\u352c\u3531\u3536\u6282;\u6ac5ot;\u6abd\u0100;d\u11da\u351aot;\u6ac3ult;\u6ac1\u0100Ee\u3528\u352a;\u6acb;\u628alus;\u6abfarr;\u6979\u0180eiu\u353d\u3552\u3555t\u0180;en\u350e\u3545\u354bq\u0100;q\u11da\u350feq\u0100;q\u352b\u3528m;\u6ac7\u0100bp\u355a\u355c;\u6ad5;\u6ad3c\u0300;acens\u11ed\u356c\u3572\u3579\u357b\u3326ppro\xf8\u32faurlye\xf1\u11fe\xf1\u11f3\u0180aes\u3582\u3588\u331bppro\xf8\u331aq\xf1\u3317g;\u666a\u0680123;Edehlmnps\u35a9\u35ac\u35af\u121c\u35b2\u35b4\u35c0\u35c9\u35d5\u35da\u35df\u35e8\u35ed\u803b\xb9\u40b9\u803b\xb2\u40b2\u803b\xb3\u40b3;\u6ac6\u0100os\u35b9\u35bct;\u6abeub;\u6ad8\u0100;d\u1222\u35c5ot;\u6ac4s\u0100ou\u35cf\u35d2l;\u67c9b;\u6ad7arr;\u697bult;\u6ac2\u0100Ee\u35e4\u35e6;\u6acc;\u628blus;\u6ac0\u0180eiu\u35f4\u3609\u360ct\u0180;en\u121c\u35fc\u3602q\u0100;q\u1222\u35b2eq\u0100;q\u35e7\u35e4m;\u6ac8\u0100bp\u3611\u3613;\u6ad4;\u6ad6\u0180Aan\u361c\u3620\u362drr;\u61d9r\u0100hr\u3626\u3628\xeb\u222e\u0100;o\u0a2b\u0a29war;\u692alig\u803b\xdf\u40df\u0be1\u3651\u365d\u3660\u12ce\u3673\u3679\0\u367e\u36c2\0\0\0\0\0\u36db\u3703\0\u3709\u376c\0\0\0\u3787\u0272\u3656\0\0\u365bget;\u6316;\u43c4r\xeb\u0e5f\u0180aey\u3666\u366b\u3670ron;\u4165dil;\u4163;\u4442lrec;\u6315r;\uc000\ud835\udd31\u0200eiko\u3686\u369d\u36b5\u36bc\u01f2\u368b\0\u3691e\u01004f\u1284\u1281a\u0180;sv\u3698\u3699\u369b\u43b8ym;\u43d1\u0100cn\u36a2\u36b2k\u0100as\u36a8\u36aeppro\xf8\u12c1im\xbb\u12acs\xf0\u129e\u0100as\u36ba\u36ae\xf0\u12c1rn\u803b\xfe\u40fe\u01ec\u031f\u36c6\u22e7es\u8180\xd7;bd\u36cf\u36d0\u36d8\u40d7\u0100;a\u190f\u36d5r;\u6a31;\u6a30\u0180eps\u36e1\u36e3\u3700\xe1\u2a4d\u0200;bcf\u0486\u36ec\u36f0\u36f4ot;\u6336ir;\u6af1\u0100;o\u36f9\u36fc\uc000\ud835\udd65rk;\u6ada\xe1\u3362rime;\u6034\u0180aip\u370f\u3712\u3764d\xe5\u1248\u0380adempst\u3721\u374d\u3740\u3751\u3757\u375c\u375fngle\u0280;dlqr\u3730\u3731\u3736\u3740\u3742\u65b5own\xbb\u1dbbeft\u0100;e\u2800\u373e\xf1\u092e;\u625cight\u0100;e\u32aa\u374b\xf1\u105aot;\u65ecinus;\u6a3alus;\u6a39b;\u69cdime;\u6a3bezium;\u63e2\u0180cht\u3772\u377d\u3781\u0100ry\u3777\u377b;\uc000\ud835\udcc9;\u4446cy;\u445brok;\u4167\u0100io\u378b\u378ex\xf4\u1777head\u0100lr\u3797\u37a0eftarro\xf7\u084fightarrow\xbb\u0f5d\u0900AHabcdfghlmoprstuw\u37d0\u37d3\u37d7\u37e4\u37f0\u37fc\u380e\u381c\u3823\u3834\u3851\u385d\u386b\u38a9\u38cc\u38d2\u38ea\u38f6r\xf2\u03edar;\u6963\u0100cr\u37dc\u37e2ute\u803b\xfa\u40fa\xf2\u1150r\u01e3\u37ea\0\u37edy;\u445eve;\u416d\u0100iy\u37f5\u37farc\u803b\xfb\u40fb;\u4443\u0180abh\u3803\u3806\u380br\xf2\u13adlac;\u4171a\xf2\u13c3\u0100ir\u3813\u3818sht;\u697e;\uc000\ud835\udd32rave\u803b\xf9\u40f9\u0161\u3827\u3831r\u0100lr\u382c\u382e\xbb\u0957\xbb\u1083lk;\u6580\u0100ct\u3839\u384d\u026f\u383f\0\0\u384arn\u0100;e\u3845\u3846\u631cr\xbb\u3846op;\u630fri;\u65f8\u0100al\u3856\u385acr;\u416b\u80bb\xa8\u0349\u0100gp\u3862\u3866on;\u4173f;\uc000\ud835\udd66\u0300adhlsu\u114b\u3878\u387d\u1372\u3891\u38a0own\xe1\u13b3arpoon\u0100lr\u3888\u388cef\xf4\u382digh\xf4\u382fi\u0180;hl\u3899\u389a\u389c\u43c5\xbb\u13faon\xbb\u389aparrows;\u61c8\u0180cit\u38b0\u38c4\u38c8\u026f\u38b6\0\0\u38c1rn\u0100;e\u38bc\u38bd\u631dr\xbb\u38bdop;\u630eng;\u416fri;\u65f9cr;\uc000\ud835\udcca\u0180dir\u38d9\u38dd\u38e2ot;\u62f0lde;\u4169i\u0100;f\u3730\u38e8\xbb\u1813\u0100am\u38ef\u38f2r\xf2\u38a8l\u803b\xfc\u40fcangle;\u69a7\u0780ABDacdeflnoprsz\u391c\u391f\u3929\u392d\u39b5\u39b8\u39bd\u39df\u39e4\u39e8\u39f3\u39f9\u39fd\u3a01\u3a20r\xf2\u03f7ar\u0100;v\u3926\u3927\u6ae8;\u6ae9as\xe8\u03e1\u0100nr\u3932\u3937grt;\u699c\u0380eknprst\u34e3\u3946\u394b\u3952\u395d\u3964\u3996app\xe1\u2415othin\xe7\u1e96\u0180hir\u34eb\u2ec8\u3959op\xf4\u2fb5\u0100;h\u13b7\u3962\xef\u318d\u0100iu\u3969\u396dgm\xe1\u33b3\u0100bp\u3972\u3984setneq\u0100;q\u397d\u3980\uc000\u228a\ufe00;\uc000\u2acb\ufe00setneq\u0100;q\u398f\u3992\uc000\u228b\ufe00;\uc000\u2acc\ufe00\u0100hr\u399b\u399fet\xe1\u369ciangle\u0100lr\u39aa\u39afeft\xbb\u0925ight\xbb\u1051y;\u4432ash\xbb\u1036\u0180elr\u39c4\u39d2\u39d7\u0180;be\u2dea\u39cb\u39cfar;\u62bbq;\u625alip;\u62ee\u0100bt\u39dc\u1468a\xf2\u1469r;\uc000\ud835\udd33tr\xe9\u39aesu\u0100bp\u39ef\u39f1\xbb\u0d1c\xbb\u0d59pf;\uc000\ud835\udd67ro\xf0\u0efbtr\xe9\u39b4\u0100cu\u3a06\u3a0br;\uc000\ud835\udccb\u0100bp\u3a10\u3a18n\u0100Ee\u3980\u3a16\xbb\u397en\u0100Ee\u3992\u3a1e\xbb\u3990igzag;\u699a\u0380cefoprs\u3a36\u3a3b\u3a56\u3a5b\u3a54\u3a61\u3a6airc;\u4175\u0100di\u3a40\u3a51\u0100bg\u3a45\u3a49ar;\u6a5fe\u0100;q\u15fa\u3a4f;\u6259erp;\u6118r;\uc000\ud835\udd34pf;\uc000\ud835\udd68\u0100;e\u1479\u3a66at\xe8\u1479cr;\uc000\ud835\udccc\u0ae3\u178e\u3a87\0\u3a8b\0\u3a90\u3a9b\0\0\u3a9d\u3aa8\u3aab\u3aaf\0\0\u3ac3\u3ace\0\u3ad8\u17dc\u17dftr\xe9\u17d1r;\uc000\ud835\udd35\u0100Aa\u3a94\u3a97r\xf2\u03c3r\xf2\u09f6;\u43be\u0100Aa\u3aa1\u3aa4r\xf2\u03b8r\xf2\u09eba\xf0\u2713is;\u62fb\u0180dpt\u17a4\u3ab5\u3abe\u0100fl\u3aba\u17a9;\uc000\ud835\udd69im\xe5\u17b2\u0100Aa\u3ac7\u3acar\xf2\u03cer\xf2\u0a01\u0100cq\u3ad2\u17b8r;\uc000\ud835\udccd\u0100pt\u17d6\u3adcr\xe9\u17d4\u0400acefiosu\u3af0\u3afd\u3b08\u3b0c\u3b11\u3b15\u3b1b\u3b21c\u0100uy\u3af6\u3afbte\u803b\xfd\u40fd;\u444f\u0100iy\u3b02\u3b06rc;\u4177;\u444bn\u803b\xa5\u40a5r;\uc000\ud835\udd36cy;\u4457pf;\uc000\ud835\udd6acr;\uc000\ud835\udcce\u0100cm\u3b26\u3b29y;\u444el\u803b\xff\u40ff\u0500acdefhiosw\u3b42\u3b48\u3b54\u3b58\u3b64\u3b69\u3b6d\u3b74\u3b7a\u3b80cute;\u417a\u0100ay\u3b4d\u3b52ron;\u417e;\u4437ot;\u417c\u0100et\u3b5d\u3b61tr\xe6\u155fa;\u43b6r;\uc000\ud835\udd37cy;\u4436grarr;\u61ddpf;\uc000\ud835\udd6bcr;\uc000\ud835\udccf\u0100jn\u3b85\u3b87;\u600dj;\u600c'.split("").map((e=>e.charCodeAt(0)))),te=new Uint16Array("\u0200aglq\t\x15\x18\x1b\u026d\x0f\0\0\x12p;\u4026os;\u4027t;\u403et;\u403cuot;\u4022".split("").map((e=>e.charCodeAt(0))));var ne;const re=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]),se=null!==(ne=String.fromCodePoint)&&void 0!==ne?ne:function(e){let t="";return e>65535&&(e-=65536,t+=String.fromCharCode(e>>>10&1023|55296),e=56320|1023&e),t+=String.fromCharCode(e),t};function ae(e){var t;return e>=55296&&e<=57343||e>1114111?65533:null!==(t=re.get(e))&&void 0!==t?t:e}var oe;!function(e){e[e.NUM=35]="NUM",e[e.SEMI=59]="SEMI",e[e.EQUALS=61]="EQUALS",e[e.ZERO=48]="ZERO",e[e.NINE=57]="NINE",e[e.LOWER_A=97]="LOWER_A",e[e.LOWER_F=102]="LOWER_F",e[e.LOWER_X=120]="LOWER_X",e[e.LOWER_Z=122]="LOWER_Z",e[e.UPPER_A=65]="UPPER_A",e[e.UPPER_F=70]="UPPER_F",e[e.UPPER_Z=90]="UPPER_Z"}(oe||(oe={}));var ie,ce,le;function ue(e){return e>=oe.ZERO&&e<=oe.NINE}function Ee(e){return e===oe.EQUALS||function(e){return e>=oe.UPPER_A&&e<=oe.UPPER_Z||e>=oe.LOWER_A&&e<=oe.LOWER_Z||ue(e)}(e)}!function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.BRANCH_LENGTH=16256]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"}(ie||(ie={})),function(e){e[e.EntityStart=0]="EntityStart",e[e.NumericStart=1]="NumericStart",e[e.NumericDecimal=2]="NumericDecimal",e[e.NumericHex=3]="NumericHex",e[e.NamedEntity=4]="NamedEntity"}(ce||(ce={})),function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"}(le||(le={}));class he{constructor(e,t,n){this.decodeTree=e,this.emitCodePoint=t,this.errors=n,this.state=ce.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=le.Strict}startEntity(e){this.decodeMode=e,this.state=ce.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(e,t){switch(this.state){case ce.EntityStart:return e.charCodeAt(t)===oe.NUM?(this.state=ce.NumericStart,this.consumed+=1,this.stateNumericStart(e,t+1)):(this.state=ce.NamedEntity,this.stateNamedEntity(e,t));case ce.NumericStart:return this.stateNumericStart(e,t);case ce.NumericDecimal:return this.stateNumericDecimal(e,t);case ce.NumericHex:return this.stateNumericHex(e,t);case ce.NamedEntity:return this.stateNamedEntity(e,t)}}stateNumericStart(e,t){return t>=e.length?-1:(32|e.charCodeAt(t))===oe.LOWER_X?(this.state=ce.NumericHex,this.consumed+=1,this.stateNumericHex(e,t+1)):(this.state=ce.NumericDecimal,this.stateNumericDecimal(e,t))}addToNumericResult(e,t,n,r){if(t!==n){const s=n-t;this.result=this.result*Math.pow(r,s)+parseInt(e.substr(t,s),r),this.consumed+=s}}stateNumericHex(e,t){const n=t;for(;t=oe.UPPER_A&&r<=oe.UPPER_F||r>=oe.LOWER_A&&r<=oe.LOWER_F)))return this.addToNumericResult(e,n,t,16),this.emitNumericEntity(s,3);t+=1}var r;return this.addToNumericResult(e,n,t,16),-1}stateNumericDecimal(e,t){const n=t;for(;t>14;for(;t>14,0!==s){if(a===oe.SEMI)return this.emitNamedEntityData(this.treeIndex,s,this.consumed+this.excess);this.decodeMode!==le.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var e;const{result:t,decodeTree:n}=this,r=(n[t]&ie.VALUE_LENGTH)>>14;return this.emitNamedEntityData(t,r,this.consumed),null===(e=this.errors)||void 0===e||e.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(e,t,n){const{decodeTree:r}=this;return this.emitCodePoint(1===t?r[e]&~ie.VALUE_LENGTH:r[e+1],n),3===t&&this.emitCodePoint(r[e+2],n),n}end(){var e;switch(this.state){case ce.NamedEntity:return 0===this.result||this.decodeMode===le.Attribute&&this.result!==this.treeIndex?0:this.emitNotTerminatedNamedEntity();case ce.NumericDecimal:return this.emitNumericEntity(0,2);case ce.NumericHex:return this.emitNumericEntity(0,3);case ce.NumericStart:return null===(e=this.errors)||void 0===e||e.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case ce.EntityStart:return 0}}}function Te(e){let t="";const n=new he(e,(e=>t+=se(e)));return function(e,r){let s=0,a=0;for(;(a=e.indexOf("&",a))>=0;){t+=e.slice(s,a),n.startEntity(r);const o=n.write(e,a+1);if(o<0){s=a+n.end();break}s=a+o,a=0===o?s+1:s}const o=t+e.slice(s);return t="",o}}function pe(e,t,n,r){const s=(t&ie.BRANCH_LENGTH)>>7,a=t&ie.JUMP_TABLE;if(0===s)return 0!==a&&r===a?n:-1;if(a){const t=r-a;return t<0||t>=s?-1:e[n+t]-1}let o=n,i=o+s-1;for(;o<=i;){const t=o+i>>>1,n=e[t];if(nr))return e[t+s];i=t-1}}return-1}Te(ee),Te(te);var me,de,Ae,_e,fe;!function(e){e.HTML="http://www.w3.org/1999/xhtml",e.MATHML="http://www.w3.org/1998/Math/MathML",e.SVG="http://www.w3.org/2000/svg",e.XLINK="http://www.w3.org/1999/xlink",e.XML="http://www.w3.org/XML/1998/namespace",e.XMLNS="http://www.w3.org/2000/xmlns/"}(me=me||(me={})),function(e){e.TYPE="type",e.ACTION="action",e.ENCODING="encoding",e.PROMPT="prompt",e.NAME="name",e.COLOR="color",e.FACE="face",e.SIZE="size"}(de=de||(de={})),function(e){e.NO_QUIRKS="no-quirks",e.QUIRKS="quirks",e.LIMITED_QUIRKS="limited-quirks"}(Ae=Ae||(Ae={})),function(e){e.A="a",e.ADDRESS="address",e.ANNOTATION_XML="annotation-xml",e.APPLET="applet",e.AREA="area",e.ARTICLE="article",e.ASIDE="aside",e.B="b",e.BASE="base",e.BASEFONT="basefont",e.BGSOUND="bgsound",e.BIG="big",e.BLOCKQUOTE="blockquote",e.BODY="body",e.BR="br",e.BUTTON="button",e.CAPTION="caption",e.CENTER="center",e.CODE="code",e.COL="col",e.COLGROUP="colgroup",e.DD="dd",e.DESC="desc",e.DETAILS="details",e.DIALOG="dialog",e.DIR="dir",e.DIV="div",e.DL="dl",e.DT="dt",e.EM="em",e.EMBED="embed",e.FIELDSET="fieldset",e.FIGCAPTION="figcaption",e.FIGURE="figure",e.FONT="font",e.FOOTER="footer",e.FOREIGN_OBJECT="foreignObject",e.FORM="form",e.FRAME="frame",e.FRAMESET="frameset",e.H1="h1",e.H2="h2",e.H3="h3",e.H4="h4",e.H5="h5",e.H6="h6",e.HEAD="head",e.HEADER="header",e.HGROUP="hgroup",e.HR="hr",e.HTML="html",e.I="i",e.IMG="img",e.IMAGE="image",e.INPUT="input",e.IFRAME="iframe",e.KEYGEN="keygen",e.LABEL="label",e.LI="li",e.LINK="link",e.LISTING="listing",e.MAIN="main",e.MALIGNMARK="malignmark",e.MARQUEE="marquee",e.MATH="math",e.MENU="menu",e.META="meta",e.MGLYPH="mglyph",e.MI="mi",e.MO="mo",e.MN="mn",e.MS="ms",e.MTEXT="mtext",e.NAV="nav",e.NOBR="nobr",e.NOFRAMES="noframes",e.NOEMBED="noembed",e.NOSCRIPT="noscript",e.OBJECT="object",e.OL="ol",e.OPTGROUP="optgroup",e.OPTION="option",e.P="p",e.PARAM="param",e.PLAINTEXT="plaintext",e.PRE="pre",e.RB="rb",e.RP="rp",e.RT="rt",e.RTC="rtc",e.RUBY="ruby",e.S="s",e.SCRIPT="script",e.SECTION="section",e.SELECT="select",e.SOURCE="source",e.SMALL="small",e.SPAN="span",e.STRIKE="strike",e.STRONG="strong",e.STYLE="style",e.SUB="sub",e.SUMMARY="summary",e.SUP="sup",e.TABLE="table",e.TBODY="tbody",e.TEMPLATE="template",e.TEXTAREA="textarea",e.TFOOT="tfoot",e.TD="td",e.TH="th",e.THEAD="thead",e.TITLE="title",e.TR="tr",e.TRACK="track",e.TT="tt",e.U="u",e.UL="ul",e.SVG="svg",e.VAR="var",e.WBR="wbr",e.XMP="xmp"}(_e=_e||(_e={})),function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.A=1]="A",e[e.ADDRESS=2]="ADDRESS",e[e.ANNOTATION_XML=3]="ANNOTATION_XML",e[e.APPLET=4]="APPLET",e[e.AREA=5]="AREA",e[e.ARTICLE=6]="ARTICLE",e[e.ASIDE=7]="ASIDE",e[e.B=8]="B",e[e.BASE=9]="BASE",e[e.BASEFONT=10]="BASEFONT",e[e.BGSOUND=11]="BGSOUND",e[e.BIG=12]="BIG",e[e.BLOCKQUOTE=13]="BLOCKQUOTE",e[e.BODY=14]="BODY",e[e.BR=15]="BR",e[e.BUTTON=16]="BUTTON",e[e.CAPTION=17]="CAPTION",e[e.CENTER=18]="CENTER",e[e.CODE=19]="CODE",e[e.COL=20]="COL",e[e.COLGROUP=21]="COLGROUP",e[e.DD=22]="DD",e[e.DESC=23]="DESC",e[e.DETAILS=24]="DETAILS",e[e.DIALOG=25]="DIALOG",e[e.DIR=26]="DIR",e[e.DIV=27]="DIV",e[e.DL=28]="DL",e[e.DT=29]="DT",e[e.EM=30]="EM",e[e.EMBED=31]="EMBED",e[e.FIELDSET=32]="FIELDSET",e[e.FIGCAPTION=33]="FIGCAPTION",e[e.FIGURE=34]="FIGURE",e[e.FONT=35]="FONT",e[e.FOOTER=36]="FOOTER",e[e.FOREIGN_OBJECT=37]="FOREIGN_OBJECT",e[e.FORM=38]="FORM",e[e.FRAME=39]="FRAME",e[e.FRAMESET=40]="FRAMESET",e[e.H1=41]="H1",e[e.H2=42]="H2",e[e.H3=43]="H3",e[e.H4=44]="H4",e[e.H5=45]="H5",e[e.H6=46]="H6",e[e.HEAD=47]="HEAD",e[e.HEADER=48]="HEADER",e[e.HGROUP=49]="HGROUP",e[e.HR=50]="HR",e[e.HTML=51]="HTML",e[e.I=52]="I",e[e.IMG=53]="IMG",e[e.IMAGE=54]="IMAGE",e[e.INPUT=55]="INPUT",e[e.IFRAME=56]="IFRAME",e[e.KEYGEN=57]="KEYGEN",e[e.LABEL=58]="LABEL",e[e.LI=59]="LI",e[e.LINK=60]="LINK",e[e.LISTING=61]="LISTING",e[e.MAIN=62]="MAIN",e[e.MALIGNMARK=63]="MALIGNMARK",e[e.MARQUEE=64]="MARQUEE",e[e.MATH=65]="MATH",e[e.MENU=66]="MENU",e[e.META=67]="META",e[e.MGLYPH=68]="MGLYPH",e[e.MI=69]="MI",e[e.MO=70]="MO",e[e.MN=71]="MN",e[e.MS=72]="MS",e[e.MTEXT=73]="MTEXT",e[e.NAV=74]="NAV",e[e.NOBR=75]="NOBR",e[e.NOFRAMES=76]="NOFRAMES",e[e.NOEMBED=77]="NOEMBED",e[e.NOSCRIPT=78]="NOSCRIPT",e[e.OBJECT=79]="OBJECT",e[e.OL=80]="OL",e[e.OPTGROUP=81]="OPTGROUP",e[e.OPTION=82]="OPTION",e[e.P=83]="P",e[e.PARAM=84]="PARAM",e[e.PLAINTEXT=85]="PLAINTEXT",e[e.PRE=86]="PRE",e[e.RB=87]="RB",e[e.RP=88]="RP",e[e.RT=89]="RT",e[e.RTC=90]="RTC",e[e.RUBY=91]="RUBY",e[e.S=92]="S",e[e.SCRIPT=93]="SCRIPT",e[e.SECTION=94]="SECTION",e[e.SELECT=95]="SELECT",e[e.SOURCE=96]="SOURCE",e[e.SMALL=97]="SMALL",e[e.SPAN=98]="SPAN",e[e.STRIKE=99]="STRIKE",e[e.STRONG=100]="STRONG",e[e.STYLE=101]="STYLE",e[e.SUB=102]="SUB",e[e.SUMMARY=103]="SUMMARY",e[e.SUP=104]="SUP",e[e.TABLE=105]="TABLE",e[e.TBODY=106]="TBODY",e[e.TEMPLATE=107]="TEMPLATE",e[e.TEXTAREA=108]="TEXTAREA",e[e.TFOOT=109]="TFOOT",e[e.TD=110]="TD",e[e.TH=111]="TH",e[e.THEAD=112]="THEAD",e[e.TITLE=113]="TITLE",e[e.TR=114]="TR",e[e.TRACK=115]="TRACK",e[e.TT=116]="TT",e[e.U=117]="U",e[e.UL=118]="UL",e[e.SVG=119]="SVG",e[e.VAR=120]="VAR",e[e.WBR=121]="WBR",e[e.XMP=122]="XMP"}(fe=fe||(fe={}));const Ne=new Map([[_e.A,fe.A],[_e.ADDRESS,fe.ADDRESS],[_e.ANNOTATION_XML,fe.ANNOTATION_XML],[_e.APPLET,fe.APPLET],[_e.AREA,fe.AREA],[_e.ARTICLE,fe.ARTICLE],[_e.ASIDE,fe.ASIDE],[_e.B,fe.B],[_e.BASE,fe.BASE],[_e.BASEFONT,fe.BASEFONT],[_e.BGSOUND,fe.BGSOUND],[_e.BIG,fe.BIG],[_e.BLOCKQUOTE,fe.BLOCKQUOTE],[_e.BODY,fe.BODY],[_e.BR,fe.BR],[_e.BUTTON,fe.BUTTON],[_e.CAPTION,fe.CAPTION],[_e.CENTER,fe.CENTER],[_e.CODE,fe.CODE],[_e.COL,fe.COL],[_e.COLGROUP,fe.COLGROUP],[_e.DD,fe.DD],[_e.DESC,fe.DESC],[_e.DETAILS,fe.DETAILS],[_e.DIALOG,fe.DIALOG],[_e.DIR,fe.DIR],[_e.DIV,fe.DIV],[_e.DL,fe.DL],[_e.DT,fe.DT],[_e.EM,fe.EM],[_e.EMBED,fe.EMBED],[_e.FIELDSET,fe.FIELDSET],[_e.FIGCAPTION,fe.FIGCAPTION],[_e.FIGURE,fe.FIGURE],[_e.FONT,fe.FONT],[_e.FOOTER,fe.FOOTER],[_e.FOREIGN_OBJECT,fe.FOREIGN_OBJECT],[_e.FORM,fe.FORM],[_e.FRAME,fe.FRAME],[_e.FRAMESET,fe.FRAMESET],[_e.H1,fe.H1],[_e.H2,fe.H2],[_e.H3,fe.H3],[_e.H4,fe.H4],[_e.H5,fe.H5],[_e.H6,fe.H6],[_e.HEAD,fe.HEAD],[_e.HEADER,fe.HEADER],[_e.HGROUP,fe.HGROUP],[_e.HR,fe.HR],[_e.HTML,fe.HTML],[_e.I,fe.I],[_e.IMG,fe.IMG],[_e.IMAGE,fe.IMAGE],[_e.INPUT,fe.INPUT],[_e.IFRAME,fe.IFRAME],[_e.KEYGEN,fe.KEYGEN],[_e.LABEL,fe.LABEL],[_e.LI,fe.LI],[_e.LINK,fe.LINK],[_e.LISTING,fe.LISTING],[_e.MAIN,fe.MAIN],[_e.MALIGNMARK,fe.MALIGNMARK],[_e.MARQUEE,fe.MARQUEE],[_e.MATH,fe.MATH],[_e.MENU,fe.MENU],[_e.META,fe.META],[_e.MGLYPH,fe.MGLYPH],[_e.MI,fe.MI],[_e.MO,fe.MO],[_e.MN,fe.MN],[_e.MS,fe.MS],[_e.MTEXT,fe.MTEXT],[_e.NAV,fe.NAV],[_e.NOBR,fe.NOBR],[_e.NOFRAMES,fe.NOFRAMES],[_e.NOEMBED,fe.NOEMBED],[_e.NOSCRIPT,fe.NOSCRIPT],[_e.OBJECT,fe.OBJECT],[_e.OL,fe.OL],[_e.OPTGROUP,fe.OPTGROUP],[_e.OPTION,fe.OPTION],[_e.P,fe.P],[_e.PARAM,fe.PARAM],[_e.PLAINTEXT,fe.PLAINTEXT],[_e.PRE,fe.PRE],[_e.RB,fe.RB],[_e.RP,fe.RP],[_e.RT,fe.RT],[_e.RTC,fe.RTC],[_e.RUBY,fe.RUBY],[_e.S,fe.S],[_e.SCRIPT,fe.SCRIPT],[_e.SECTION,fe.SECTION],[_e.SELECT,fe.SELECT],[_e.SOURCE,fe.SOURCE],[_e.SMALL,fe.SMALL],[_e.SPAN,fe.SPAN],[_e.STRIKE,fe.STRIKE],[_e.STRONG,fe.STRONG],[_e.STYLE,fe.STYLE],[_e.SUB,fe.SUB],[_e.SUMMARY,fe.SUMMARY],[_e.SUP,fe.SUP],[_e.TABLE,fe.TABLE],[_e.TBODY,fe.TBODY],[_e.TEMPLATE,fe.TEMPLATE],[_e.TEXTAREA,fe.TEXTAREA],[_e.TFOOT,fe.TFOOT],[_e.TD,fe.TD],[_e.TH,fe.TH],[_e.THEAD,fe.THEAD],[_e.TITLE,fe.TITLE],[_e.TR,fe.TR],[_e.TRACK,fe.TRACK],[_e.TT,fe.TT],[_e.U,fe.U],[_e.UL,fe.UL],[_e.SVG,fe.SVG],[_e.VAR,fe.VAR],[_e.WBR,fe.WBR],[_e.XMP,fe.XMP]]);function ge(e){var t;return null!==(t=Ne.get(e))&&void 0!==t?t:fe.UNKNOWN}const Ce=fe,Ie={[me.HTML]:new Set([Ce.ADDRESS,Ce.APPLET,Ce.AREA,Ce.ARTICLE,Ce.ASIDE,Ce.BASE,Ce.BASEFONT,Ce.BGSOUND,Ce.BLOCKQUOTE,Ce.BODY,Ce.BR,Ce.BUTTON,Ce.CAPTION,Ce.CENTER,Ce.COL,Ce.COLGROUP,Ce.DD,Ce.DETAILS,Ce.DIR,Ce.DIV,Ce.DL,Ce.DT,Ce.EMBED,Ce.FIELDSET,Ce.FIGCAPTION,Ce.FIGURE,Ce.FOOTER,Ce.FORM,Ce.FRAME,Ce.FRAMESET,Ce.H1,Ce.H2,Ce.H3,Ce.H4,Ce.H5,Ce.H6,Ce.HEAD,Ce.HEADER,Ce.HGROUP,Ce.HR,Ce.HTML,Ce.IFRAME,Ce.IMG,Ce.INPUT,Ce.LI,Ce.LINK,Ce.LISTING,Ce.MAIN,Ce.MARQUEE,Ce.MENU,Ce.META,Ce.NAV,Ce.NOEMBED,Ce.NOFRAMES,Ce.NOSCRIPT,Ce.OBJECT,Ce.OL,Ce.P,Ce.PARAM,Ce.PLAINTEXT,Ce.PRE,Ce.SCRIPT,Ce.SECTION,Ce.SELECT,Ce.SOURCE,Ce.STYLE,Ce.SUMMARY,Ce.TABLE,Ce.TBODY,Ce.TD,Ce.TEMPLATE,Ce.TEXTAREA,Ce.TFOOT,Ce.TH,Ce.THEAD,Ce.TITLE,Ce.TR,Ce.TRACK,Ce.UL,Ce.WBR,Ce.XMP]),[me.MATHML]:new Set([Ce.MI,Ce.MO,Ce.MN,Ce.MS,Ce.MTEXT,Ce.ANNOTATION_XML]),[me.SVG]:new Set([Ce.TITLE,Ce.FOREIGN_OBJECT,Ce.DESC]),[me.XLINK]:new Set,[me.XML]:new Set,[me.XMLNS]:new Set};function Se(e){return e===Ce.H1||e===Ce.H2||e===Ce.H3||e===Ce.H4||e===Ce.H5||e===Ce.H6}new Set([_e.STYLE,_e.SCRIPT,_e.XMP,_e.IFRAME,_e.NOEMBED,_e.NOFRAMES,_e.PLAINTEXT]);const Re=new Map([[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]);var De;!function(e){e[e.DATA=0]="DATA",e[e.RCDATA=1]="RCDATA",e[e.RAWTEXT=2]="RAWTEXT",e[e.SCRIPT_DATA=3]="SCRIPT_DATA",e[e.PLAINTEXT=4]="PLAINTEXT",e[e.TAG_OPEN=5]="TAG_OPEN",e[e.END_TAG_OPEN=6]="END_TAG_OPEN",e[e.TAG_NAME=7]="TAG_NAME",e[e.RCDATA_LESS_THAN_SIGN=8]="RCDATA_LESS_THAN_SIGN",e[e.RCDATA_END_TAG_OPEN=9]="RCDATA_END_TAG_OPEN",e[e.RCDATA_END_TAG_NAME=10]="RCDATA_END_TAG_NAME",e[e.RAWTEXT_LESS_THAN_SIGN=11]="RAWTEXT_LESS_THAN_SIGN",e[e.RAWTEXT_END_TAG_OPEN=12]="RAWTEXT_END_TAG_OPEN",e[e.RAWTEXT_END_TAG_NAME=13]="RAWTEXT_END_TAG_NAME",e[e.SCRIPT_DATA_LESS_THAN_SIGN=14]="SCRIPT_DATA_LESS_THAN_SIGN",e[e.SCRIPT_DATA_END_TAG_OPEN=15]="SCRIPT_DATA_END_TAG_OPEN",e[e.SCRIPT_DATA_END_TAG_NAME=16]="SCRIPT_DATA_END_TAG_NAME",e[e.SCRIPT_DATA_ESCAPE_START=17]="SCRIPT_DATA_ESCAPE_START",e[e.SCRIPT_DATA_ESCAPE_START_DASH=18]="SCRIPT_DATA_ESCAPE_START_DASH",e[e.SCRIPT_DATA_ESCAPED=19]="SCRIPT_DATA_ESCAPED",e[e.SCRIPT_DATA_ESCAPED_DASH=20]="SCRIPT_DATA_ESCAPED_DASH",e[e.SCRIPT_DATA_ESCAPED_DASH_DASH=21]="SCRIPT_DATA_ESCAPED_DASH_DASH",e[e.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN=22]="SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN",e[e.SCRIPT_DATA_ESCAPED_END_TAG_OPEN=23]="SCRIPT_DATA_ESCAPED_END_TAG_OPEN",e[e.SCRIPT_DATA_ESCAPED_END_TAG_NAME=24]="SCRIPT_DATA_ESCAPED_END_TAG_NAME",e[e.SCRIPT_DATA_DOUBLE_ESCAPE_START=25]="SCRIPT_DATA_DOUBLE_ESCAPE_START",e[e.SCRIPT_DATA_DOUBLE_ESCAPED=26]="SCRIPT_DATA_DOUBLE_ESCAPED",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_DASH=27]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH=28]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN=29]="SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN",e[e.SCRIPT_DATA_DOUBLE_ESCAPE_END=30]="SCRIPT_DATA_DOUBLE_ESCAPE_END",e[e.BEFORE_ATTRIBUTE_NAME=31]="BEFORE_ATTRIBUTE_NAME",e[e.ATTRIBUTE_NAME=32]="ATTRIBUTE_NAME",e[e.AFTER_ATTRIBUTE_NAME=33]="AFTER_ATTRIBUTE_NAME",e[e.BEFORE_ATTRIBUTE_VALUE=34]="BEFORE_ATTRIBUTE_VALUE",e[e.ATTRIBUTE_VALUE_DOUBLE_QUOTED=35]="ATTRIBUTE_VALUE_DOUBLE_QUOTED",e[e.ATTRIBUTE_VALUE_SINGLE_QUOTED=36]="ATTRIBUTE_VALUE_SINGLE_QUOTED",e[e.ATTRIBUTE_VALUE_UNQUOTED=37]="ATTRIBUTE_VALUE_UNQUOTED",e[e.AFTER_ATTRIBUTE_VALUE_QUOTED=38]="AFTER_ATTRIBUTE_VALUE_QUOTED",e[e.SELF_CLOSING_START_TAG=39]="SELF_CLOSING_START_TAG",e[e.BOGUS_COMMENT=40]="BOGUS_COMMENT",e[e.MARKUP_DECLARATION_OPEN=41]="MARKUP_DECLARATION_OPEN",e[e.COMMENT_START=42]="COMMENT_START",e[e.COMMENT_START_DASH=43]="COMMENT_START_DASH",e[e.COMMENT=44]="COMMENT",e[e.COMMENT_LESS_THAN_SIGN=45]="COMMENT_LESS_THAN_SIGN",e[e.COMMENT_LESS_THAN_SIGN_BANG=46]="COMMENT_LESS_THAN_SIGN_BANG",e[e.COMMENT_LESS_THAN_SIGN_BANG_DASH=47]="COMMENT_LESS_THAN_SIGN_BANG_DASH",e[e.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH=48]="COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH",e[e.COMMENT_END_DASH=49]="COMMENT_END_DASH",e[e.COMMENT_END=50]="COMMENT_END",e[e.COMMENT_END_BANG=51]="COMMENT_END_BANG",e[e.DOCTYPE=52]="DOCTYPE",e[e.BEFORE_DOCTYPE_NAME=53]="BEFORE_DOCTYPE_NAME",e[e.DOCTYPE_NAME=54]="DOCTYPE_NAME",e[e.AFTER_DOCTYPE_NAME=55]="AFTER_DOCTYPE_NAME",e[e.AFTER_DOCTYPE_PUBLIC_KEYWORD=56]="AFTER_DOCTYPE_PUBLIC_KEYWORD",e[e.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER=57]="BEFORE_DOCTYPE_PUBLIC_IDENTIFIER",e[e.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED=58]="DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED",e[e.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED=59]="DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED",e[e.AFTER_DOCTYPE_PUBLIC_IDENTIFIER=60]="AFTER_DOCTYPE_PUBLIC_IDENTIFIER",e[e.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS=61]="BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS",e[e.AFTER_DOCTYPE_SYSTEM_KEYWORD=62]="AFTER_DOCTYPE_SYSTEM_KEYWORD",e[e.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER=63]="BEFORE_DOCTYPE_SYSTEM_IDENTIFIER",e[e.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED=64]="DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED",e[e.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED=65]="DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED",e[e.AFTER_DOCTYPE_SYSTEM_IDENTIFIER=66]="AFTER_DOCTYPE_SYSTEM_IDENTIFIER",e[e.BOGUS_DOCTYPE=67]="BOGUS_DOCTYPE",e[e.CDATA_SECTION=68]="CDATA_SECTION",e[e.CDATA_SECTION_BRACKET=69]="CDATA_SECTION_BRACKET",e[e.CDATA_SECTION_END=70]="CDATA_SECTION_END",e[e.CHARACTER_REFERENCE=71]="CHARACTER_REFERENCE",e[e.NAMED_CHARACTER_REFERENCE=72]="NAMED_CHARACTER_REFERENCE",e[e.AMBIGUOUS_AMPERSAND=73]="AMBIGUOUS_AMPERSAND",e[e.NUMERIC_CHARACTER_REFERENCE=74]="NUMERIC_CHARACTER_REFERENCE",e[e.HEXADEMICAL_CHARACTER_REFERENCE_START=75]="HEXADEMICAL_CHARACTER_REFERENCE_START",e[e.HEXADEMICAL_CHARACTER_REFERENCE=76]="HEXADEMICAL_CHARACTER_REFERENCE",e[e.DECIMAL_CHARACTER_REFERENCE=77]="DECIMAL_CHARACTER_REFERENCE",e[e.NUMERIC_CHARACTER_REFERENCE_END=78]="NUMERIC_CHARACTER_REFERENCE_END"}(De||(De={}));const Oe={DATA:De.DATA,RCDATA:De.RCDATA,RAWTEXT:De.RAWTEXT,SCRIPT_DATA:De.SCRIPT_DATA,PLAINTEXT:De.PLAINTEXT,CDATA_SECTION:De.CDATA_SECTION};function Le(e){return e>=x.DIGIT_0&&e<=x.DIGIT_9}function be(e){return e>=x.LATIN_CAPITAL_A&&e<=x.LATIN_CAPITAL_Z}function ke(e){return function(e){return e>=x.LATIN_SMALL_A&&e<=x.LATIN_SMALL_Z}(e)||be(e)}function Pe(e){return ke(e)||Le(e)}function Me(e){return e>=x.LATIN_CAPITAL_A&&e<=x.LATIN_CAPITAL_F}function ye(e){return e>=x.LATIN_SMALL_A&&e<=x.LATIN_SMALL_F}function Be(e){return e+32}function He(e){return e===x.SPACE||e===x.LINE_FEED||e===x.TABULATION||e===x.FORM_FEED}function Ue(e){return He(e)||e===x.SOLIDUS||e===x.GREATER_THAN_SIGN}class Fe{constructor(e,t){this.options=e,this.handler=t,this.paused=!1,this.inLoop=!1,this.inForeignNode=!1,this.lastStartTagName="",this.active=!1,this.state=De.DATA,this.returnState=De.DATA,this.charRefCode=-1,this.consumedAfterSnapshot=-1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr={name:"",value:""},this.preprocessor=new J(t),this.currentLocation=this.getCurrentLocation(-1)}_err(e){var t,n;null===(n=(t=this.handler).onParseError)||void 0===n||n.call(t,this.preprocessor.getError(e))}getCurrentLocation(e){return this.options.sourceCodeLocationInfo?{startLine:this.preprocessor.line,startCol:this.preprocessor.col-e,startOffset:this.preprocessor.offset-e,endLine:-1,endCol:-1,endOffset:-1}:null}_runParsingLoop(){if(!this.inLoop){for(this.inLoop=!0;this.active&&!this.paused;){this.consumedAfterSnapshot=0;const e=this._consume();this._ensureHibernation()||this._callState(e)}this.inLoop=!1}}pause(){this.paused=!0}resume(e){if(!this.paused)throw new Error("Parser was already resumed");this.paused=!1,this.inLoop||(this._runParsingLoop(),this.paused||null===e||void 0===e||e())}write(e,t,n){this.active=!0,this.preprocessor.write(e,t),this._runParsingLoop(),this.paused||null===n||void 0===n||n()}insertHtmlAtCurrentPos(e){this.active=!0,this.preprocessor.insertHtmlAtCurrentPos(e),this._runParsingLoop()}_ensureHibernation(){return!!this.preprocessor.endOfChunkHit&&(this._unconsume(this.consumedAfterSnapshot),this.active=!1,!0)}_consume(){return this.consumedAfterSnapshot++,this.preprocessor.advance()}_unconsume(e){this.consumedAfterSnapshot-=e,this.preprocessor.retreat(e)}_reconsumeInState(e,t){this.state=e,this._callState(t)}_advanceBy(e){this.consumedAfterSnapshot+=e;for(let t=0;t0&&this._err(j.endTagWithAttributes),e.selfClosing&&this._err(j.endTagWithTrailingSolidus),this.handler.onEndTag(e)),this.preprocessor.dropParsedChunk()}emitCurrentComment(e){this.prepareToken(e),this.handler.onComment(e),this.preprocessor.dropParsedChunk()}emitCurrentDoctype(e){this.prepareToken(e),this.handler.onDoctype(e),this.preprocessor.dropParsedChunk()}_emitCurrentCharacterToken(e){if(this.currentCharacterToken){switch(e&&this.currentCharacterToken.location&&(this.currentCharacterToken.location.endLine=e.startLine,this.currentCharacterToken.location.endCol=e.startCol,this.currentCharacterToken.location.endOffset=e.startOffset),this.currentCharacterToken.type){case Z.CHARACTER:this.handler.onCharacter(this.currentCharacterToken);break;case Z.NULL_CHARACTER:this.handler.onNullCharacter(this.currentCharacterToken);break;case Z.WHITESPACE_CHARACTER:this.handler.onWhitespaceCharacter(this.currentCharacterToken)}this.currentCharacterToken=null}}_emitEOFToken(){const e=this.getCurrentLocation(0);e&&(e.endLine=e.startLine,e.endCol=e.startCol,e.endOffset=e.startOffset),this._emitCurrentCharacterToken(e),this.handler.onEof({type:Z.EOF,location:e}),this.active=!1}_appendCharToCurrentCharacterToken(e,t){if(this.currentCharacterToken){if(this.currentCharacterToken.type===e)return void(this.currentCharacterToken.chars+=t);this.currentLocation=this.getCurrentLocation(0),this._emitCurrentCharacterToken(this.currentLocation),this.preprocessor.dropParsedChunk()}this._createCharacterToken(e,t)}_emitCodePoint(e){const t=He(e)?Z.WHITESPACE_CHARACTER:e===x.NULL?Z.NULL_CHARACTER:Z.CHARACTER;this._appendCharToCurrentCharacterToken(t,String.fromCodePoint(e))}_emitChars(e){this._appendCharToCurrentCharacterToken(Z.CHARACTER,e)}_matchNamedCharacterReference(e){let t=null,n=0,r=!1;for(let a=0,o=ee[0];a>=0&&(a=pe(ee,o,a+1,e),!(a<0));e=this._consume()){n+=1,o=ee[a];const i=o&ie.VALUE_LENGTH;if(i){const o=(i>>14)-1;if(e!==x.SEMICOLON&&this._isCharacterReferenceInAttribute()&&((s=this.preprocessor.peek(1))===x.EQUALS_SIGN||Pe(s))?(t=[x.AMPERSAND],a+=o):(t=0===o?[ee[a]&~ie.VALUE_LENGTH]:1===o?[ee[++a]]:[ee[++a],ee[++a]],n=0,r=e!==x.SEMICOLON),0===o){this._consume();break}}}var s;return this._unconsume(n),r&&!this.preprocessor.endOfChunkHit&&this._err(j.missingSemicolonAfterCharacterReference),this._unconsume(1),t}_isCharacterReferenceInAttribute(){return this.returnState===De.ATTRIBUTE_VALUE_DOUBLE_QUOTED||this.returnState===De.ATTRIBUTE_VALUE_SINGLE_QUOTED||this.returnState===De.ATTRIBUTE_VALUE_UNQUOTED}_flushCodePointConsumedAsCharacterReference(e){this._isCharacterReferenceInAttribute()?this.currentAttr.value+=String.fromCodePoint(e):this._emitCodePoint(e)}_callState(e){switch(this.state){case De.DATA:this._stateData(e);break;case De.RCDATA:this._stateRcdata(e);break;case De.RAWTEXT:this._stateRawtext(e);break;case De.SCRIPT_DATA:this._stateScriptData(e);break;case De.PLAINTEXT:this._statePlaintext(e);break;case De.TAG_OPEN:this._stateTagOpen(e);break;case De.END_TAG_OPEN:this._stateEndTagOpen(e);break;case De.TAG_NAME:this._stateTagName(e);break;case De.RCDATA_LESS_THAN_SIGN:this._stateRcdataLessThanSign(e);break;case De.RCDATA_END_TAG_OPEN:this._stateRcdataEndTagOpen(e);break;case De.RCDATA_END_TAG_NAME:this._stateRcdataEndTagName(e);break;case De.RAWTEXT_LESS_THAN_SIGN:this._stateRawtextLessThanSign(e);break;case De.RAWTEXT_END_TAG_OPEN:this._stateRawtextEndTagOpen(e);break;case De.RAWTEXT_END_TAG_NAME:this._stateRawtextEndTagName(e);break;case De.SCRIPT_DATA_LESS_THAN_SIGN:this._stateScriptDataLessThanSign(e);break;case De.SCRIPT_DATA_END_TAG_OPEN:this._stateScriptDataEndTagOpen(e);break;case De.SCRIPT_DATA_END_TAG_NAME:this._stateScriptDataEndTagName(e);break;case De.SCRIPT_DATA_ESCAPE_START:this._stateScriptDataEscapeStart(e);break;case De.SCRIPT_DATA_ESCAPE_START_DASH:this._stateScriptDataEscapeStartDash(e);break;case De.SCRIPT_DATA_ESCAPED:this._stateScriptDataEscaped(e);break;case De.SCRIPT_DATA_ESCAPED_DASH:this._stateScriptDataEscapedDash(e);break;case De.SCRIPT_DATA_ESCAPED_DASH_DASH:this._stateScriptDataEscapedDashDash(e);break;case De.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN:this._stateScriptDataEscapedLessThanSign(e);break;case De.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:this._stateScriptDataEscapedEndTagOpen(e);break;case De.SCRIPT_DATA_ESCAPED_END_TAG_NAME:this._stateScriptDataEscapedEndTagName(e);break;case De.SCRIPT_DATA_DOUBLE_ESCAPE_START:this._stateScriptDataDoubleEscapeStart(e);break;case De.SCRIPT_DATA_DOUBLE_ESCAPED:this._stateScriptDataDoubleEscaped(e);break;case De.SCRIPT_DATA_DOUBLE_ESCAPED_DASH:this._stateScriptDataDoubleEscapedDash(e);break;case De.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH:this._stateScriptDataDoubleEscapedDashDash(e);break;case De.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN:this._stateScriptDataDoubleEscapedLessThanSign(e);break;case De.SCRIPT_DATA_DOUBLE_ESCAPE_END:this._stateScriptDataDoubleEscapeEnd(e);break;case De.BEFORE_ATTRIBUTE_NAME:this._stateBeforeAttributeName(e);break;case De.ATTRIBUTE_NAME:this._stateAttributeName(e);break;case De.AFTER_ATTRIBUTE_NAME:this._stateAfterAttributeName(e);break;case De.BEFORE_ATTRIBUTE_VALUE:this._stateBeforeAttributeValue(e);break;case De.ATTRIBUTE_VALUE_DOUBLE_QUOTED:this._stateAttributeValueDoubleQuoted(e);break;case De.ATTRIBUTE_VALUE_SINGLE_QUOTED:this._stateAttributeValueSingleQuoted(e);break;case De.ATTRIBUTE_VALUE_UNQUOTED:this._stateAttributeValueUnquoted(e);break;case De.AFTER_ATTRIBUTE_VALUE_QUOTED:this._stateAfterAttributeValueQuoted(e);break;case De.SELF_CLOSING_START_TAG:this._stateSelfClosingStartTag(e);break;case De.BOGUS_COMMENT:this._stateBogusComment(e);break;case De.MARKUP_DECLARATION_OPEN:this._stateMarkupDeclarationOpen(e);break;case De.COMMENT_START:this._stateCommentStart(e);break;case De.COMMENT_START_DASH:this._stateCommentStartDash(e);break;case De.COMMENT:this._stateComment(e);break;case De.COMMENT_LESS_THAN_SIGN:this._stateCommentLessThanSign(e);break;case De.COMMENT_LESS_THAN_SIGN_BANG:this._stateCommentLessThanSignBang(e);break;case De.COMMENT_LESS_THAN_SIGN_BANG_DASH:this._stateCommentLessThanSignBangDash(e);break;case De.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:this._stateCommentLessThanSignBangDashDash(e);break;case De.COMMENT_END_DASH:this._stateCommentEndDash(e);break;case De.COMMENT_END:this._stateCommentEnd(e);break;case De.COMMENT_END_BANG:this._stateCommentEndBang(e);break;case De.DOCTYPE:this._stateDoctype(e);break;case De.BEFORE_DOCTYPE_NAME:this._stateBeforeDoctypeName(e);break;case De.DOCTYPE_NAME:this._stateDoctypeName(e);break;case De.AFTER_DOCTYPE_NAME:this._stateAfterDoctypeName(e);break;case De.AFTER_DOCTYPE_PUBLIC_KEYWORD:this._stateAfterDoctypePublicKeyword(e);break;case De.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER:this._stateBeforeDoctypePublicIdentifier(e);break;case De.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED:this._stateDoctypePublicIdentifierDoubleQuoted(e);break;case De.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED:this._stateDoctypePublicIdentifierSingleQuoted(e);break;case De.AFTER_DOCTYPE_PUBLIC_IDENTIFIER:this._stateAfterDoctypePublicIdentifier(e);break;case De.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS:this._stateBetweenDoctypePublicAndSystemIdentifiers(e);break;case De.AFTER_DOCTYPE_SYSTEM_KEYWORD:this._stateAfterDoctypeSystemKeyword(e);break;case De.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER:this._stateBeforeDoctypeSystemIdentifier(e);break;case De.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED:this._stateDoctypeSystemIdentifierDoubleQuoted(e);break;case De.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED:this._stateDoctypeSystemIdentifierSingleQuoted(e);break;case De.AFTER_DOCTYPE_SYSTEM_IDENTIFIER:this._stateAfterDoctypeSystemIdentifier(e);break;case De.BOGUS_DOCTYPE:this._stateBogusDoctype(e);break;case De.CDATA_SECTION:this._stateCdataSection(e);break;case De.CDATA_SECTION_BRACKET:this._stateCdataSectionBracket(e);break;case De.CDATA_SECTION_END:this._stateCdataSectionEnd(e);break;case De.CHARACTER_REFERENCE:this._stateCharacterReference(e);break;case De.NAMED_CHARACTER_REFERENCE:this._stateNamedCharacterReference(e);break;case De.AMBIGUOUS_AMPERSAND:this._stateAmbiguousAmpersand(e);break;case De.NUMERIC_CHARACTER_REFERENCE:this._stateNumericCharacterReference(e);break;case De.HEXADEMICAL_CHARACTER_REFERENCE_START:this._stateHexademicalCharacterReferenceStart(e);break;case De.HEXADEMICAL_CHARACTER_REFERENCE:this._stateHexademicalCharacterReference(e);break;case De.DECIMAL_CHARACTER_REFERENCE:this._stateDecimalCharacterReference(e);break;case De.NUMERIC_CHARACTER_REFERENCE_END:this._stateNumericCharacterReferenceEnd(e);break;default:throw new Error("Unknown state")}}_stateData(e){switch(e){case x.LESS_THAN_SIGN:this.state=De.TAG_OPEN;break;case x.AMPERSAND:this.returnState=De.DATA,this.state=De.CHARACTER_REFERENCE;break;case x.NULL:this._err(j.unexpectedNullCharacter),this._emitCodePoint(e);break;case x.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateRcdata(e){switch(e){case x.AMPERSAND:this.returnState=De.RCDATA,this.state=De.CHARACTER_REFERENCE;break;case x.LESS_THAN_SIGN:this.state=De.RCDATA_LESS_THAN_SIGN;break;case x.NULL:this._err(j.unexpectedNullCharacter),this._emitChars(w);break;case x.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateRawtext(e){switch(e){case x.LESS_THAN_SIGN:this.state=De.RAWTEXT_LESS_THAN_SIGN;break;case x.NULL:this._err(j.unexpectedNullCharacter),this._emitChars(w);break;case x.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateScriptData(e){switch(e){case x.LESS_THAN_SIGN:this.state=De.SCRIPT_DATA_LESS_THAN_SIGN;break;case x.NULL:this._err(j.unexpectedNullCharacter),this._emitChars(w);break;case x.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}_statePlaintext(e){switch(e){case x.NULL:this._err(j.unexpectedNullCharacter),this._emitChars(w);break;case x.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateTagOpen(e){if(ke(e))this._createStartTagToken(),this.state=De.TAG_NAME,this._stateTagName(e);else switch(e){case x.EXCLAMATION_MARK:this.state=De.MARKUP_DECLARATION_OPEN;break;case x.SOLIDUS:this.state=De.END_TAG_OPEN;break;case x.QUESTION_MARK:this._err(j.unexpectedQuestionMarkInsteadOfTagName),this._createCommentToken(1),this.state=De.BOGUS_COMMENT,this._stateBogusComment(e);break;case x.EOF:this._err(j.eofBeforeTagName),this._emitChars("<"),this._emitEOFToken();break;default:this._err(j.invalidFirstCharacterOfTagName),this._emitChars("<"),this.state=De.DATA,this._stateData(e)}}_stateEndTagOpen(e){if(ke(e))this._createEndTagToken(),this.state=De.TAG_NAME,this._stateTagName(e);else switch(e){case x.GREATER_THAN_SIGN:this._err(j.missingEndTagName),this.state=De.DATA;break;case x.EOF:this._err(j.eofBeforeTagName),this._emitChars("");break;case x.NULL:this._err(j.unexpectedNullCharacter),this.state=De.SCRIPT_DATA_ESCAPED,this._emitChars(w);break;case x.EOF:this._err(j.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this.state=De.SCRIPT_DATA_ESCAPED,this._emitCodePoint(e)}}_stateScriptDataEscapedLessThanSign(e){e===x.SOLIDUS?this.state=De.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:ke(e)?(this._emitChars("<"),this.state=De.SCRIPT_DATA_DOUBLE_ESCAPE_START,this._stateScriptDataDoubleEscapeStart(e)):(this._emitChars("<"),this.state=De.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(e))}_stateScriptDataEscapedEndTagOpen(e){ke(e)?(this.state=De.SCRIPT_DATA_ESCAPED_END_TAG_NAME,this._stateScriptDataEscapedEndTagName(e)):(this._emitChars("");break;case x.NULL:this._err(j.unexpectedNullCharacter),this.state=De.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(w);break;case x.EOF:this._err(j.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this.state=De.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(e)}}_stateScriptDataDoubleEscapedLessThanSign(e){e===x.SOLIDUS?(this.state=De.SCRIPT_DATA_DOUBLE_ESCAPE_END,this._emitChars("/")):(this.state=De.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(e))}_stateScriptDataDoubleEscapeEnd(e){if(this.preprocessor.startsWith(W,!1)&&Ue(this.preprocessor.peek(W.length))){this._emitCodePoint(e);for(let e=0;e1114111)this._err(j.characterReferenceOutsideUnicodeRange),this.charRefCode=x.REPLACEMENT_CHARACTER;else if(V(this.charRefCode))this._err(j.surrogateCharacterReference),this.charRefCode=x.REPLACEMENT_CHARACTER;else if(z(this.charRefCode))this._err(j.noncharacterCharacterReference);else if(K(this.charRefCode)||this.charRefCode===x.CARRIAGE_RETURN){this._err(j.controlCharacterReference);const e=Re.get(this.charRefCode);void 0!==e&&(this.charRefCode=e)}this._flushCodePointConsumedAsCharacterReference(this.charRefCode),this._reconsumeInState(this.returnState,e)}}const ve=new Set([fe.DD,fe.DT,fe.LI,fe.OPTGROUP,fe.OPTION,fe.P,fe.RB,fe.RP,fe.RT,fe.RTC]),we=new Set([...ve,fe.CAPTION,fe.COLGROUP,fe.TBODY,fe.TD,fe.TFOOT,fe.TH,fe.THEAD,fe.TR]),xe=new Map([[fe.APPLET,me.HTML],[fe.CAPTION,me.HTML],[fe.HTML,me.HTML],[fe.MARQUEE,me.HTML],[fe.OBJECT,me.HTML],[fe.TABLE,me.HTML],[fe.TD,me.HTML],[fe.TEMPLATE,me.HTML],[fe.TH,me.HTML],[fe.ANNOTATION_XML,me.MATHML],[fe.MI,me.MATHML],[fe.MN,me.MATHML],[fe.MO,me.MATHML],[fe.MS,me.MATHML],[fe.MTEXT,me.MATHML],[fe.DESC,me.SVG],[fe.FOREIGN_OBJECT,me.SVG],[fe.TITLE,me.SVG]]),Ge=[fe.H1,fe.H2,fe.H3,fe.H4,fe.H5,fe.H6],Ye=[fe.TR,fe.TEMPLATE,fe.HTML],qe=[fe.TBODY,fe.TFOOT,fe.THEAD,fe.TEMPLATE,fe.HTML],We=[fe.TABLE,fe.TEMPLATE,fe.HTML],Qe=[fe.TD,fe.TH];class Xe{get currentTmplContentOrNode(){return this._isInTemplate()?this.treeAdapter.getTemplateContent(this.current):this.current}constructor(e,t,n){this.treeAdapter=t,this.handler=n,this.items=[],this.tagIDs=[],this.stackTop=-1,this.tmplCount=0,this.currentTagId=fe.UNKNOWN,this.current=e}_indexOf(e){return this.items.lastIndexOf(e,this.stackTop)}_isInTemplate(){return this.currentTagId===fe.TEMPLATE&&this.treeAdapter.getNamespaceURI(this.current)===me.HTML}_updateCurrentElement(){this.current=this.items[this.stackTop],this.currentTagId=this.tagIDs[this.stackTop]}push(e,t){this.stackTop++,this.items[this.stackTop]=e,this.current=e,this.tagIDs[this.stackTop]=t,this.currentTagId=t,this._isInTemplate()&&this.tmplCount++,this.handler.onItemPush(e,t,!0)}pop(){const e=this.current;this.tmplCount>0&&this._isInTemplate()&&this.tmplCount--,this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(e,!0)}replace(e,t){const n=this._indexOf(e);this.items[n]=t,n===this.stackTop&&(this.current=t)}insertAfter(e,t,n){const r=this._indexOf(e)+1;this.items.splice(r,0,t),this.tagIDs.splice(r,0,n),this.stackTop++,r===this.stackTop&&this._updateCurrentElement(),this.handler.onItemPush(this.current,this.currentTagId,r===this.stackTop)}popUntilTagNamePopped(e){let t=this.stackTop+1;do{t=this.tagIDs.lastIndexOf(e,t-1)}while(t>0&&this.treeAdapter.getNamespaceURI(this.items[t])!==me.HTML);this.shortenToLength(t<0?0:t)}shortenToLength(e){for(;this.stackTop>=e;){const t=this.current;this.tmplCount>0&&this._isInTemplate()&&(this.tmplCount-=1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(t,this.stackTop=0;n--)if(e.includes(this.tagIDs[n])&&this.treeAdapter.getNamespaceURI(this.items[n])===t)return n;return-1}clearBackTo(e,t){const n=this._indexOfTagNames(e,t);this.shortenToLength(n+1)}clearBackToTableContext(){this.clearBackTo(We,me.HTML)}clearBackToTableBodyContext(){this.clearBackTo(qe,me.HTML)}clearBackToTableRowContext(){this.clearBackTo(Ye,me.HTML)}remove(e){const t=this._indexOf(e);t>=0&&(t===this.stackTop?this.pop():(this.items.splice(t,1),this.tagIDs.splice(t,1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(e,!1)))}tryPeekProperlyNestedBodyElement(){return this.stackTop>=1&&this.tagIDs[1]===fe.BODY?this.items[1]:null}contains(e){return this._indexOf(e)>-1}getCommonAncestor(e){const t=this._indexOf(e)-1;return t>=0?this.items[t]:null}isRootHtmlElementCurrent(){return 0===this.stackTop&&this.tagIDs[0]===fe.HTML}hasInScope(e){for(let t=this.stackTop;t>=0;t--){const n=this.tagIDs[t],r=this.treeAdapter.getNamespaceURI(this.items[t]);if(n===e&&r===me.HTML)return!0;if(xe.get(n)===r)return!1}return!0}hasNumberedHeaderInScope(){for(let e=this.stackTop;e>=0;e--){const t=this.tagIDs[e],n=this.treeAdapter.getNamespaceURI(this.items[e]);if(Se(t)&&n===me.HTML)return!0;if(xe.get(t)===n)return!1}return!0}hasInListItemScope(e){for(let t=this.stackTop;t>=0;t--){const n=this.tagIDs[t],r=this.treeAdapter.getNamespaceURI(this.items[t]);if(n===e&&r===me.HTML)return!0;if((n===fe.UL||n===fe.OL)&&r===me.HTML||xe.get(n)===r)return!1}return!0}hasInButtonScope(e){for(let t=this.stackTop;t>=0;t--){const n=this.tagIDs[t],r=this.treeAdapter.getNamespaceURI(this.items[t]);if(n===e&&r===me.HTML)return!0;if(n===fe.BUTTON&&r===me.HTML||xe.get(n)===r)return!1}return!0}hasInTableScope(e){for(let t=this.stackTop;t>=0;t--){const n=this.tagIDs[t];if(this.treeAdapter.getNamespaceURI(this.items[t])===me.HTML){if(n===e)return!0;if(n===fe.TABLE||n===fe.TEMPLATE||n===fe.HTML)return!1}}return!0}hasTableBodyContextInTableScope(){for(let e=this.stackTop;e>=0;e--){const t=this.tagIDs[e];if(this.treeAdapter.getNamespaceURI(this.items[e])===me.HTML){if(t===fe.TBODY||t===fe.THEAD||t===fe.TFOOT)return!0;if(t===fe.TABLE||t===fe.HTML)return!1}}return!0}hasInSelectScope(e){for(let t=this.stackTop;t>=0;t--){const n=this.tagIDs[t];if(this.treeAdapter.getNamespaceURI(this.items[t])===me.HTML){if(n===e)return!0;if(n!==fe.OPTION&&n!==fe.OPTGROUP)return!1}}return!0}generateImpliedEndTags(){for(;ve.has(this.currentTagId);)this.pop()}generateImpliedEndTagsThoroughly(){for(;we.has(this.currentTagId);)this.pop()}generateImpliedEndTagsWithExclusion(e){for(;this.currentTagId!==e&&we.has(this.currentTagId);)this.pop()}}var Ve;!function(e){e[e.Marker=0]="Marker",e[e.Element=1]="Element"}(Ve=Ve||(Ve={}));const Ke={type:Ve.Marker};class ze{constructor(e){this.treeAdapter=e,this.entries=[],this.bookmark=null}_getNoahArkConditionCandidates(e,t){const n=[],r=t.length,s=this.treeAdapter.getTagName(e),a=this.treeAdapter.getNamespaceURI(e);for(let o=0;o[e.name,e.value])));let s=0;for(let a=0;ar.get(e.name)===e.value))&&(s+=1,s>=3&&this.entries.splice(e.idx,1))}}insertMarker(){this.entries.unshift(Ke)}pushElement(e,t){this._ensureNoahArkCondition(e),this.entries.unshift({type:Ve.Element,element:e,token:t})}insertElementAfterBookmark(e,t){const n=this.entries.indexOf(this.bookmark);this.entries.splice(n,0,{type:Ve.Element,element:e,token:t})}removeEntry(e){const t=this.entries.indexOf(e);t>=0&&this.entries.splice(t,1)}clearToLastMarker(){const e=this.entries.indexOf(Ke);e>=0?this.entries.splice(0,e+1):this.entries.length=0}getElementEntryInScopeWithTagName(e){const t=this.entries.find((t=>t.type===Ve.Marker||this.treeAdapter.getTagName(t.element)===e));return t&&t.type===Ve.Element?t:null}getElementEntry(e){return this.entries.find((t=>t.type===Ve.Element&&t.element===e))}}function je(e){return{nodeName:"#text",value:e,parentNode:null}}const Je={createDocument:()=>({nodeName:"#document",mode:Ae.NO_QUIRKS,childNodes:[]}),createDocumentFragment:()=>({nodeName:"#document-fragment",childNodes:[]}),createElement:(e,t,n)=>({nodeName:e,tagName:e,attrs:n,namespaceURI:t,childNodes:[],parentNode:null}),createCommentNode:e=>({nodeName:"#comment",data:e,parentNode:null}),appendChild(e,t){e.childNodes.push(t),t.parentNode=e},insertBefore(e,t,n){const r=e.childNodes.indexOf(n);e.childNodes.splice(r,0,t),t.parentNode=e},setTemplateContent(e,t){e.content=t},getTemplateContent:e=>e.content,setDocumentType(e,t,n,r){const s=e.childNodes.find((e=>"#documentType"===e.nodeName));if(s)s.name=t,s.publicId=n,s.systemId=r;else{const s={nodeName:"#documentType",name:t,publicId:n,systemId:r,parentNode:null};Je.appendChild(e,s)}},setDocumentMode(e,t){e.mode=t},getDocumentMode:e=>e.mode,detachNode(e){if(e.parentNode){const t=e.parentNode.childNodes.indexOf(e);e.parentNode.childNodes.splice(t,1),e.parentNode=null}},insertText(e,t){if(e.childNodes.length>0){const n=e.childNodes[e.childNodes.length-1];if(Je.isTextNode(n))return void(n.value+=t)}Je.appendChild(e,je(t))},insertTextBefore(e,t,n){const r=e.childNodes[e.childNodes.indexOf(n)-1];r&&Je.isTextNode(r)?r.value+=t:Je.insertBefore(e,je(t),n)},adoptAttributes(e,t){const n=new Set(e.attrs.map((e=>e.name)));for(let r=0;re.childNodes[0],getChildNodes:e=>e.childNodes,getParentNode:e=>e.parentNode,getAttrList:e=>e.attrs,getTagName:e=>e.tagName,getNamespaceURI:e=>e.namespaceURI,getTextNodeContent:e=>e.value,getCommentNodeContent:e=>e.data,getDocumentTypeNodeName:e=>e.name,getDocumentTypeNodePublicId:e=>e.publicId,getDocumentTypeNodeSystemId:e=>e.systemId,isTextNode:e=>"#text"===e.nodeName,isCommentNode:e=>"#comment"===e.nodeName,isDocumentTypeNode:e=>"#documentType"===e.nodeName,isElementNode:e=>Object.prototype.hasOwnProperty.call(e,"tagName"),setNodeSourceCodeLocation(e,t){e.sourceCodeLocation=t},getNodeSourceCodeLocation:e=>e.sourceCodeLocation,updateNodeSourceCodeLocation(e,t){e.sourceCodeLocation={...e.sourceCodeLocation,...t}}},Ze="html",$e="about:legacy-compat",et="http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd",tt=["+//silmaril//dtd html pro v0r11 19970101//","-//as//dtd html 3.0 aswedit + extensions//","-//advasoft ltd//dtd html 3.0 aswedit + extensions//","-//ietf//dtd html 2.0 level 1//","-//ietf//dtd html 2.0 level 2//","-//ietf//dtd html 2.0 strict level 1//","-//ietf//dtd html 2.0 strict level 2//","-//ietf//dtd html 2.0 strict//","-//ietf//dtd html 2.0//","-//ietf//dtd html 2.1e//","-//ietf//dtd html 3.0//","-//ietf//dtd html 3.2 final//","-//ietf//dtd html 3.2//","-//ietf//dtd html 3//","-//ietf//dtd html level 0//","-//ietf//dtd html level 1//","-//ietf//dtd html level 2//","-//ietf//dtd html level 3//","-//ietf//dtd html strict level 0//","-//ietf//dtd html strict level 1//","-//ietf//dtd html strict level 2//","-//ietf//dtd html strict level 3//","-//ietf//dtd html strict//","-//ietf//dtd html//","-//metrius//dtd metrius presentational//","-//microsoft//dtd internet explorer 2.0 html strict//","-//microsoft//dtd internet explorer 2.0 html//","-//microsoft//dtd internet explorer 2.0 tables//","-//microsoft//dtd internet explorer 3.0 html strict//","-//microsoft//dtd internet explorer 3.0 html//","-//microsoft//dtd internet explorer 3.0 tables//","-//netscape comm. corp.//dtd html//","-//netscape comm. corp.//dtd strict html//","-//o'reilly and associates//dtd html 2.0//","-//o'reilly and associates//dtd html extended 1.0//","-//o'reilly and associates//dtd html extended relaxed 1.0//","-//sq//dtd html 2.0 hotmetal + extensions//","-//softquad software//dtd hotmetal pro 6.0::19990601::extensions to html 4.0//","-//softquad//dtd hotmetal pro 4.0::19971010::extensions to html 4.0//","-//spyglass//dtd html 2.0 extended//","-//sun microsystems corp.//dtd hotjava html//","-//sun microsystems corp.//dtd hotjava strict html//","-//w3c//dtd html 3 1995-03-24//","-//w3c//dtd html 3.2 draft//","-//w3c//dtd html 3.2 final//","-//w3c//dtd html 3.2//","-//w3c//dtd html 3.2s draft//","-//w3c//dtd html 4.0 frameset//","-//w3c//dtd html 4.0 transitional//","-//w3c//dtd html experimental 19960712//","-//w3c//dtd html experimental 970421//","-//w3c//dtd w3 html//","-//w3o//dtd w3 html 3.0//","-//webtechs//dtd mozilla html 2.0//","-//webtechs//dtd mozilla html//"],nt=[...tt,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"],rt=new Set(["-//w3o//dtd w3 html strict 3.0//en//","-/w3c/dtd html 4.0 transitional/en","html"]),st=["-//w3c//dtd xhtml 1.0 frameset//","-//w3c//dtd xhtml 1.0 transitional//"],at=[...st,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"];function ot(e,t){return t.some((t=>e.startsWith(t)))}const it={TEXT_HTML:"text/html",APPLICATION_XML:"application/xhtml+xml"},ct="definitionurl",lt="definitionURL",ut=new Map(["attributeName","attributeType","baseFrequency","baseProfile","calcMode","clipPathUnits","diffuseConstant","edgeMode","filterUnits","glyphRef","gradientTransform","gradientUnits","kernelMatrix","kernelUnitLength","keyPoints","keySplines","keyTimes","lengthAdjust","limitingConeAngle","markerHeight","markerUnits","markerWidth","maskContentUnits","maskUnits","numOctaves","pathLength","patternContentUnits","patternTransform","patternUnits","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","refX","refY","repeatCount","repeatDur","requiredExtensions","requiredFeatures","specularConstant","specularExponent","spreadMethod","startOffset","stdDeviation","stitchTiles","surfaceScale","systemLanguage","tableValues","targetX","targetY","textLength","viewBox","viewTarget","xChannelSelector","yChannelSelector","zoomAndPan"].map((e=>[e.toLowerCase(),e]))),Et=new Map([["xlink:actuate",{prefix:"xlink",name:"actuate",namespace:me.XLINK}],["xlink:arcrole",{prefix:"xlink",name:"arcrole",namespace:me.XLINK}],["xlink:href",{prefix:"xlink",name:"href",namespace:me.XLINK}],["xlink:role",{prefix:"xlink",name:"role",namespace:me.XLINK}],["xlink:show",{prefix:"xlink",name:"show",namespace:me.XLINK}],["xlink:title",{prefix:"xlink",name:"title",namespace:me.XLINK}],["xlink:type",{prefix:"xlink",name:"type",namespace:me.XLINK}],["xml:base",{prefix:"xml",name:"base",namespace:me.XML}],["xml:lang",{prefix:"xml",name:"lang",namespace:me.XML}],["xml:space",{prefix:"xml",name:"space",namespace:me.XML}],["xmlns",{prefix:"",name:"xmlns",namespace:me.XMLNS}],["xmlns:xlink",{prefix:"xmlns",name:"xlink",namespace:me.XMLNS}]]),ht=new Map(["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","textPath"].map((e=>[e.toLowerCase(),e]))),Tt=new Set([fe.B,fe.BIG,fe.BLOCKQUOTE,fe.BODY,fe.BR,fe.CENTER,fe.CODE,fe.DD,fe.DIV,fe.DL,fe.DT,fe.EM,fe.EMBED,fe.H1,fe.H2,fe.H3,fe.H4,fe.H5,fe.H6,fe.HEAD,fe.HR,fe.I,fe.IMG,fe.LI,fe.LISTING,fe.MENU,fe.META,fe.NOBR,fe.OL,fe.P,fe.PRE,fe.RUBY,fe.S,fe.SMALL,fe.SPAN,fe.STRONG,fe.STRIKE,fe.SUB,fe.SUP,fe.TABLE,fe.TT,fe.U,fe.UL,fe.VAR]);function pt(e){for(let t=0;t0&&this._setContextModes(e,t)}onItemPop(e,t){var n,r;if(this.options.sourceCodeLocationInfo&&this._setEndLocation(e,this.currentToken),null===(r=(n=this.treeAdapter).onItemPop)||void 0===r||r.call(n,e,this.openElements.current),t){let e,t;0===this.openElements.stackTop&&this.fragmentContext?(e=this.fragmentContext,t=this.fragmentContextID):({current:e,currentTagId:t}=this.openElements),this._setContextModes(e,t)}}_setContextModes(e,t){const n=e===this.document||this.treeAdapter.getNamespaceURI(e)===me.HTML;this.currentNotInHTML=!n,this.tokenizer.inForeignNode=!n&&!this._isIntegrationPoint(t,e)}_switchToTextParsing(e,t){this._insertElement(e,me.HTML),this.tokenizer.state=t,this.originalInsertionMode=this.insertionMode,this.insertionMode=gt.TEXT}switchToPlaintextParsing(){this.insertionMode=gt.TEXT,this.originalInsertionMode=gt.IN_BODY,this.tokenizer.state=Oe.PLAINTEXT}_getAdjustedCurrentElement(){return 0===this.openElements.stackTop&&this.fragmentContext?this.fragmentContext:this.openElements.current}_findFormInFragmentContext(){let e=this.fragmentContext;for(;e;){if(this.treeAdapter.getTagName(e)===_e.FORM){this.formElement=e;break}e=this.treeAdapter.getParentNode(e)}}_initTokenizerForFragmentParsing(){if(this.fragmentContext&&this.treeAdapter.getNamespaceURI(this.fragmentContext)===me.HTML)switch(this.fragmentContextID){case fe.TITLE:case fe.TEXTAREA:this.tokenizer.state=Oe.RCDATA;break;case fe.STYLE:case fe.XMP:case fe.IFRAME:case fe.NOEMBED:case fe.NOFRAMES:case fe.NOSCRIPT:this.tokenizer.state=Oe.RAWTEXT;break;case fe.SCRIPT:this.tokenizer.state=Oe.SCRIPT_DATA;break;case fe.PLAINTEXT:this.tokenizer.state=Oe.PLAINTEXT}}_setDocumentType(e){const t=e.name||"",n=e.publicId||"",r=e.systemId||"";if(this.treeAdapter.setDocumentType(this.document,t,n,r),e.location){const t=this.treeAdapter.getChildNodes(this.document).find((e=>this.treeAdapter.isDocumentTypeNode(e)));t&&this.treeAdapter.setNodeSourceCodeLocation(t,e.location)}}_attachElementToTree(e,t){if(this.options.sourceCodeLocationInfo){const n=t&&{...t,startTag:t};this.treeAdapter.setNodeSourceCodeLocation(e,n)}if(this._shouldFosterParentOnInsertion())this._fosterParentElement(e);else{const t=this.openElements.currentTmplContentOrNode;this.treeAdapter.appendChild(t,e)}}_appendElement(e,t){const n=this.treeAdapter.createElement(e.tagName,t,e.attrs);this._attachElementToTree(n,e.location)}_insertElement(e,t){const n=this.treeAdapter.createElement(e.tagName,t,e.attrs);this._attachElementToTree(n,e.location),this.openElements.push(n,e.tagID)}_insertFakeElement(e,t){const n=this.treeAdapter.createElement(e,me.HTML,[]);this._attachElementToTree(n,null),this.openElements.push(n,t)}_insertTemplate(e){const t=this.treeAdapter.createElement(e.tagName,me.HTML,e.attrs),n=this.treeAdapter.createDocumentFragment();this.treeAdapter.setTemplateContent(t,n),this._attachElementToTree(t,e.location),this.openElements.push(t,e.tagID),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(n,null)}_insertFakeRootElement(){const e=this.treeAdapter.createElement(_e.HTML,me.HTML,[]);this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(e,null),this.treeAdapter.appendChild(this.openElements.current,e),this.openElements.push(e,fe.HTML)}_appendCommentNode(e,t){const n=this.treeAdapter.createCommentNode(e.data);this.treeAdapter.appendChild(t,n),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(n,e.location)}_insertCharacters(e){let t,n;if(this._shouldFosterParentOnInsertion()?(({parent:t,beforeElement:n}=this._findFosterParentingLocation()),n?this.treeAdapter.insertTextBefore(t,e.chars,n):this.treeAdapter.insertText(t,e.chars)):(t=this.openElements.currentTmplContentOrNode,this.treeAdapter.insertText(t,e.chars)),!e.location)return;const r=this.treeAdapter.getChildNodes(t),s=n?r.lastIndexOf(n):r.length,a=r[s-1];if(this.treeAdapter.getNodeSourceCodeLocation(a)){const{endLine:t,endCol:n,endOffset:r}=e.location;this.treeAdapter.updateNodeSourceCodeLocation(a,{endLine:t,endCol:n,endOffset:r})}else this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(a,e.location)}_adoptNodes(e,t){for(let n=this.treeAdapter.getFirstChild(e);n;n=this.treeAdapter.getFirstChild(e))this.treeAdapter.detachNode(n),this.treeAdapter.appendChild(t,n)}_setEndLocation(e,t){if(this.treeAdapter.getNodeSourceCodeLocation(e)&&t.location){const n=t.location,r=this.treeAdapter.getTagName(e),s=t.type===Z.END_TAG&&r===t.tagName?{endTag:{...n},endLine:n.endLine,endCol:n.endCol,endOffset:n.endOffset}:{endLine:n.startLine,endCol:n.startCol,endOffset:n.startOffset};this.treeAdapter.updateNodeSourceCodeLocation(e,s)}}shouldProcessStartTagTokenInForeignContent(e){if(!this.currentNotInHTML)return!1;let t,n;return 0===this.openElements.stackTop&&this.fragmentContext?(t=this.fragmentContext,n=this.fragmentContextID):({current:t,currentTagId:n}=this.openElements),(e.tagID!==fe.SVG||this.treeAdapter.getTagName(t)!==_e.ANNOTATION_XML||this.treeAdapter.getNamespaceURI(t)!==me.MATHML)&&(this.tokenizer.inForeignNode||(e.tagID===fe.MGLYPH||e.tagID===fe.MALIGNMARK)&&!this._isIntegrationPoint(n,t,me.HTML))}_processToken(e){switch(e.type){case Z.CHARACTER:this.onCharacter(e);break;case Z.NULL_CHARACTER:this.onNullCharacter(e);break;case Z.COMMENT:this.onComment(e);break;case Z.DOCTYPE:this.onDoctype(e);break;case Z.START_TAG:this._processStartTag(e);break;case Z.END_TAG:this.onEndTag(e);break;case Z.EOF:this.onEof(e);break;case Z.WHITESPACE_CHARACTER:this.onWhitespaceCharacter(e)}}_isIntegrationPoint(e,t,n){return At(e,this.treeAdapter.getNamespaceURI(t),this.treeAdapter.getAttrList(t),n)}_reconstructActiveFormattingElements(){const e=this.activeFormattingElements.entries.length;if(e){const t=this.activeFormattingElements.entries.findIndex((e=>e.type===Ve.Marker||this.openElements.contains(e.element)));for(let n=t<0?e-1:t-1;n>=0;n--){const e=this.activeFormattingElements.entries[n];this._insertElement(e.token,this.treeAdapter.getNamespaceURI(e.element)),e.element=this.openElements.current}}}_closeTableCell(){this.openElements.generateImpliedEndTags(),this.openElements.popUntilTableCellPopped(),this.activeFormattingElements.clearToLastMarker(),this.insertionMode=gt.IN_ROW}_closePElement(){this.openElements.generateImpliedEndTagsWithExclusion(fe.P),this.openElements.popUntilTagNamePopped(fe.P)}_resetInsertionMode(){for(let e=this.openElements.stackTop;e>=0;e--)switch(0===e&&this.fragmentContext?this.fragmentContextID:this.openElements.tagIDs[e]){case fe.TR:return void(this.insertionMode=gt.IN_ROW);case fe.TBODY:case fe.THEAD:case fe.TFOOT:return void(this.insertionMode=gt.IN_TABLE_BODY);case fe.CAPTION:return void(this.insertionMode=gt.IN_CAPTION);case fe.COLGROUP:return void(this.insertionMode=gt.IN_COLUMN_GROUP);case fe.TABLE:return void(this.insertionMode=gt.IN_TABLE);case fe.BODY:return void(this.insertionMode=gt.IN_BODY);case fe.FRAMESET:return void(this.insertionMode=gt.IN_FRAMESET);case fe.SELECT:return void this._resetInsertionModeForSelect(e);case fe.TEMPLATE:return void(this.insertionMode=this.tmplInsertionModeStack[0]);case fe.HTML:return void(this.insertionMode=this.headElement?gt.AFTER_HEAD:gt.BEFORE_HEAD);case fe.TD:case fe.TH:if(e>0)return void(this.insertionMode=gt.IN_CELL);break;case fe.HEAD:if(e>0)return void(this.insertionMode=gt.IN_HEAD)}this.insertionMode=gt.IN_BODY}_resetInsertionModeForSelect(e){if(e>0)for(let t=e-1;t>0;t--){const e=this.openElements.tagIDs[t];if(e===fe.TEMPLATE)break;if(e===fe.TABLE)return void(this.insertionMode=gt.IN_SELECT_IN_TABLE)}this.insertionMode=gt.IN_SELECT}_isElementCausesFosterParenting(e){return It.has(e)}_shouldFosterParentOnInsertion(){return this.fosterParentingEnabled&&this._isElementCausesFosterParenting(this.openElements.currentTagId)}_findFosterParentingLocation(){for(let e=this.openElements.stackTop;e>=0;e--){const t=this.openElements.items[e];switch(this.openElements.tagIDs[e]){case fe.TEMPLATE:if(this.treeAdapter.getNamespaceURI(t)===me.HTML)return{parent:this.treeAdapter.getTemplateContent(t),beforeElement:null};break;case fe.TABLE:{const n=this.treeAdapter.getParentNode(t);return n?{parent:n,beforeElement:t}:{parent:this.openElements.items[e-1],beforeElement:null}}}}return{parent:this.openElements.items[0],beforeElement:null}}_fosterParentElement(e){const t=this._findFosterParentingLocation();t.beforeElement?this.treeAdapter.insertBefore(t.parent,e,t.beforeElement):this.treeAdapter.appendChild(t.parent,e)}_isSpecialElement(e,t){const n=this.treeAdapter.getNamespaceURI(e);return Ie[n].has(t)}onCharacter(e){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode)!function(e,t){e._insertCharacters(t),e.framesetOk=!1}(this,e);else switch(this.insertionMode){case gt.INITIAL:Ht(this,e);break;case gt.BEFORE_HTML:Ut(this,e);break;case gt.BEFORE_HEAD:Ft(this,e);break;case gt.IN_HEAD:xt(this,e);break;case gt.IN_HEAD_NO_SCRIPT:Gt(this,e);break;case gt.AFTER_HEAD:Yt(this,e);break;case gt.IN_BODY:case gt.IN_CAPTION:case gt.IN_CELL:case gt.IN_TEMPLATE:Qt(this,e);break;case gt.TEXT:case gt.IN_SELECT:case gt.IN_SELECT_IN_TABLE:this._insertCharacters(e);break;case gt.IN_TABLE:case gt.IN_TABLE_BODY:case gt.IN_ROW:en(this,e);break;case gt.IN_TABLE_TEXT:an(this,e);break;case gt.IN_COLUMN_GROUP:un(this,e);break;case gt.AFTER_BODY:fn(this,e);break;case gt.AFTER_AFTER_BODY:Nn(this,e)}}onNullCharacter(e){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode)!function(e,t){t.chars=w,e._insertCharacters(t)}(this,e);else switch(this.insertionMode){case gt.INITIAL:Ht(this,e);break;case gt.BEFORE_HTML:Ut(this,e);break;case gt.BEFORE_HEAD:Ft(this,e);break;case gt.IN_HEAD:xt(this,e);break;case gt.IN_HEAD_NO_SCRIPT:Gt(this,e);break;case gt.AFTER_HEAD:Yt(this,e);break;case gt.TEXT:this._insertCharacters(e);break;case gt.IN_TABLE:case gt.IN_TABLE_BODY:case gt.IN_ROW:en(this,e);break;case gt.IN_COLUMN_GROUP:un(this,e);break;case gt.AFTER_BODY:fn(this,e);break;case gt.AFTER_AFTER_BODY:Nn(this,e)}}onComment(e){if(this.skipNextNewLine=!1,this.currentNotInHTML)yt(this,e);else switch(this.insertionMode){case gt.INITIAL:case gt.BEFORE_HTML:case gt.BEFORE_HEAD:case gt.IN_HEAD:case gt.IN_HEAD_NO_SCRIPT:case gt.AFTER_HEAD:case gt.IN_BODY:case gt.IN_TABLE:case gt.IN_CAPTION:case gt.IN_COLUMN_GROUP:case gt.IN_TABLE_BODY:case gt.IN_ROW:case gt.IN_CELL:case gt.IN_SELECT:case gt.IN_SELECT_IN_TABLE:case gt.IN_TEMPLATE:case gt.IN_FRAMESET:case gt.AFTER_FRAMESET:yt(this,e);break;case gt.IN_TABLE_TEXT:on(this,e);break;case gt.AFTER_BODY:!function(e,t){e._appendCommentNode(t,e.openElements.items[0])}(this,e);break;case gt.AFTER_AFTER_BODY:case gt.AFTER_AFTER_FRAMESET:!function(e,t){e._appendCommentNode(t,e.document)}(this,e)}}onDoctype(e){switch(this.skipNextNewLine=!1,this.insertionMode){case gt.INITIAL:!function(e,t){e._setDocumentType(t);const n=t.forceQuirks?Ae.QUIRKS:function(e){if(e.name!==Ze)return Ae.QUIRKS;const{systemId:t}=e;if(t&&t.toLowerCase()===et)return Ae.QUIRKS;let{publicId:n}=e;if(null!==n){if(n=n.toLowerCase(),rt.has(n))return Ae.QUIRKS;let e=null===t?nt:tt;if(ot(n,e))return Ae.QUIRKS;if(e=null===t?st:at,ot(n,e))return Ae.LIMITED_QUIRKS}return Ae.NO_QUIRKS}(t);(function(e){return e.name===Ze&&null===e.publicId&&(null===e.systemId||e.systemId===$e)})(t)||e._err(t,j.nonConformingDoctype);e.treeAdapter.setDocumentMode(e.document,n),e.insertionMode=gt.BEFORE_HTML}(this,e);break;case gt.BEFORE_HEAD:case gt.IN_HEAD:case gt.IN_HEAD_NO_SCRIPT:case gt.AFTER_HEAD:this._err(e,j.misplacedDoctype);break;case gt.IN_TABLE_TEXT:on(this,e)}}onStartTag(e){this.skipNextNewLine=!1,this.currentToken=e,this._processStartTag(e),e.selfClosing&&!e.ackSelfClosing&&this._err(e,j.nonVoidHtmlElementStartTagWithTrailingSolidus)}_processStartTag(e){this.shouldProcessStartTagTokenInForeignContent(e)?function(e,t){if(function(e){const t=e.tagID;return t===fe.FONT&&e.attrs.some((({name:e})=>e===de.COLOR||e===de.SIZE||e===de.FACE))||Tt.has(t)}(t))gn(e),e._startTagOutsideForeignContent(t);else{const n=e._getAdjustedCurrentElement(),r=e.treeAdapter.getNamespaceURI(n);r===me.MATHML?pt(t):r===me.SVG&&(!function(e){const t=ht.get(e.tagName);null!=t&&(e.tagName=t,e.tagID=ge(e.tagName))}(t),mt(t)),dt(t),t.selfClosing?e._appendElement(t,r):e._insertElement(t,r),t.ackSelfClosing=!0}}(this,e):this._startTagOutsideForeignContent(e)}_startTagOutsideForeignContent(e){switch(this.insertionMode){case gt.INITIAL:Ht(this,e);break;case gt.BEFORE_HTML:!function(e,t){t.tagID===fe.HTML?(e._insertElement(t,me.HTML),e.insertionMode=gt.BEFORE_HEAD):Ut(e,t)}(this,e);break;case gt.BEFORE_HEAD:!function(e,t){switch(t.tagID){case fe.HTML:jt(e,t);break;case fe.HEAD:e._insertElement(t,me.HTML),e.headElement=e.openElements.current,e.insertionMode=gt.IN_HEAD;break;default:Ft(e,t)}}(this,e);break;case gt.IN_HEAD:vt(this,e);break;case gt.IN_HEAD_NO_SCRIPT:!function(e,t){switch(t.tagID){case fe.HTML:jt(e,t);break;case fe.BASEFONT:case fe.BGSOUND:case fe.HEAD:case fe.LINK:case fe.META:case fe.NOFRAMES:case fe.STYLE:vt(e,t);break;case fe.NOSCRIPT:e._err(t,j.nestedNoscriptInHead);break;default:Gt(e,t)}}(this,e);break;case gt.AFTER_HEAD:!function(e,t){switch(t.tagID){case fe.HTML:jt(e,t);break;case fe.BODY:e._insertElement(t,me.HTML),e.framesetOk=!1,e.insertionMode=gt.IN_BODY;break;case fe.FRAMESET:e._insertElement(t,me.HTML),e.insertionMode=gt.IN_FRAMESET;break;case fe.BASE:case fe.BASEFONT:case fe.BGSOUND:case fe.LINK:case fe.META:case fe.NOFRAMES:case fe.SCRIPT:case fe.STYLE:case fe.TEMPLATE:case fe.TITLE:e._err(t,j.abandonedHeadElementChild),e.openElements.push(e.headElement,fe.HEAD),vt(e,t),e.openElements.remove(e.headElement);break;case fe.HEAD:e._err(t,j.misplacedStartTagForHeadElement);break;default:Yt(e,t)}}(this,e);break;case gt.IN_BODY:jt(this,e);break;case gt.IN_TABLE:tn(this,e);break;case gt.IN_TABLE_TEXT:on(this,e);break;case gt.IN_CAPTION:!function(e,t){const n=t.tagID;cn.has(n)?e.openElements.hasInTableScope(fe.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(fe.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=gt.IN_TABLE,tn(e,t)):jt(e,t)}(this,e);break;case gt.IN_COLUMN_GROUP:ln(this,e);break;case gt.IN_TABLE_BODY:En(this,e);break;case gt.IN_ROW:Tn(this,e);break;case gt.IN_CELL:!function(e,t){const n=t.tagID;cn.has(n)?(e.openElements.hasInTableScope(fe.TD)||e.openElements.hasInTableScope(fe.TH))&&(e._closeTableCell(),Tn(e,t)):jt(e,t)}(this,e);break;case gt.IN_SELECT:mn(this,e);break;case gt.IN_SELECT_IN_TABLE:!function(e,t){const n=t.tagID;n===fe.CAPTION||n===fe.TABLE||n===fe.TBODY||n===fe.TFOOT||n===fe.THEAD||n===fe.TR||n===fe.TD||n===fe.TH?(e.openElements.popUntilTagNamePopped(fe.SELECT),e._resetInsertionMode(),e._processStartTag(t)):mn(e,t)}(this,e);break;case gt.IN_TEMPLATE:!function(e,t){switch(t.tagID){case fe.BASE:case fe.BASEFONT:case fe.BGSOUND:case fe.LINK:case fe.META:case fe.NOFRAMES:case fe.SCRIPT:case fe.STYLE:case fe.TEMPLATE:case fe.TITLE:vt(e,t);break;case fe.CAPTION:case fe.COLGROUP:case fe.TBODY:case fe.TFOOT:case fe.THEAD:e.tmplInsertionModeStack[0]=gt.IN_TABLE,e.insertionMode=gt.IN_TABLE,tn(e,t);break;case fe.COL:e.tmplInsertionModeStack[0]=gt.IN_COLUMN_GROUP,e.insertionMode=gt.IN_COLUMN_GROUP,ln(e,t);break;case fe.TR:e.tmplInsertionModeStack[0]=gt.IN_TABLE_BODY,e.insertionMode=gt.IN_TABLE_BODY,En(e,t);break;case fe.TD:case fe.TH:e.tmplInsertionModeStack[0]=gt.IN_ROW,e.insertionMode=gt.IN_ROW,Tn(e,t);break;default:e.tmplInsertionModeStack[0]=gt.IN_BODY,e.insertionMode=gt.IN_BODY,jt(e,t)}}(this,e);break;case gt.AFTER_BODY:!function(e,t){t.tagID===fe.HTML?jt(e,t):fn(e,t)}(this,e);break;case gt.IN_FRAMESET:!function(e,t){switch(t.tagID){case fe.HTML:jt(e,t);break;case fe.FRAMESET:e._insertElement(t,me.HTML);break;case fe.FRAME:e._appendElement(t,me.HTML),t.ackSelfClosing=!0;break;case fe.NOFRAMES:vt(e,t)}}(this,e);break;case gt.AFTER_FRAMESET:!function(e,t){switch(t.tagID){case fe.HTML:jt(e,t);break;case fe.NOFRAMES:vt(e,t)}}(this,e);break;case gt.AFTER_AFTER_BODY:!function(e,t){t.tagID===fe.HTML?jt(e,t):Nn(e,t)}(this,e);break;case gt.AFTER_AFTER_FRAMESET:!function(e,t){switch(t.tagID){case fe.HTML:jt(e,t);break;case fe.NOFRAMES:vt(e,t)}}(this,e)}}onEndTag(e){this.skipNextNewLine=!1,this.currentToken=e,this.currentNotInHTML?function(e,t){if(t.tagID===fe.P||t.tagID===fe.BR)return gn(e),void e._endTagOutsideForeignContent(t);for(let n=e.openElements.stackTop;n>0;n--){const r=e.openElements.items[n];if(e.treeAdapter.getNamespaceURI(r)===me.HTML){e._endTagOutsideForeignContent(t);break}const s=e.treeAdapter.getTagName(r);if(s.toLowerCase()===t.tagName){t.tagName=s,e.openElements.shortenToLength(n);break}}}(this,e):this._endTagOutsideForeignContent(e)}_endTagOutsideForeignContent(e){switch(this.insertionMode){case gt.INITIAL:Ht(this,e);break;case gt.BEFORE_HTML:!function(e,t){const n=t.tagID;n!==fe.HTML&&n!==fe.HEAD&&n!==fe.BODY&&n!==fe.BR||Ut(e,t)}(this,e);break;case gt.BEFORE_HEAD:!function(e,t){const n=t.tagID;n===fe.HEAD||n===fe.BODY||n===fe.HTML||n===fe.BR?Ft(e,t):e._err(t,j.endTagWithoutMatchingOpenElement)}(this,e);break;case gt.IN_HEAD:!function(e,t){switch(t.tagID){case fe.HEAD:e.openElements.pop(),e.insertionMode=gt.AFTER_HEAD;break;case fe.BODY:case fe.BR:case fe.HTML:xt(e,t);break;case fe.TEMPLATE:wt(e,t);break;default:e._err(t,j.endTagWithoutMatchingOpenElement)}}(this,e);break;case gt.IN_HEAD_NO_SCRIPT:!function(e,t){switch(t.tagID){case fe.NOSCRIPT:e.openElements.pop(),e.insertionMode=gt.IN_HEAD;break;case fe.BR:Gt(e,t);break;default:e._err(t,j.endTagWithoutMatchingOpenElement)}}(this,e);break;case gt.AFTER_HEAD:!function(e,t){switch(t.tagID){case fe.BODY:case fe.HTML:case fe.BR:Yt(e,t);break;case fe.TEMPLATE:wt(e,t);break;default:e._err(t,j.endTagWithoutMatchingOpenElement)}}(this,e);break;case gt.IN_BODY:Zt(this,e);break;case gt.TEXT:!function(e,t){var n;t.tagID===fe.SCRIPT&&(null===(n=e.scriptHandler)||void 0===n||n.call(e,e.openElements.current));e.openElements.pop(),e.insertionMode=e.originalInsertionMode}(this,e);break;case gt.IN_TABLE:nn(this,e);break;case gt.IN_TABLE_TEXT:on(this,e);break;case gt.IN_CAPTION:!function(e,t){const n=t.tagID;switch(n){case fe.CAPTION:case fe.TABLE:e.openElements.hasInTableScope(fe.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(fe.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=gt.IN_TABLE,n===fe.TABLE&&nn(e,t));break;case fe.BODY:case fe.COL:case fe.COLGROUP:case fe.HTML:case fe.TBODY:case fe.TD:case fe.TFOOT:case fe.TH:case fe.THEAD:case fe.TR:break;default:Zt(e,t)}}(this,e);break;case gt.IN_COLUMN_GROUP:!function(e,t){switch(t.tagID){case fe.COLGROUP:e.openElements.currentTagId===fe.COLGROUP&&(e.openElements.pop(),e.insertionMode=gt.IN_TABLE);break;case fe.TEMPLATE:wt(e,t);break;case fe.COL:break;default:un(e,t)}}(this,e);break;case gt.IN_TABLE_BODY:hn(this,e);break;case gt.IN_ROW:pn(this,e);break;case gt.IN_CELL:!function(e,t){const n=t.tagID;switch(n){case fe.TD:case fe.TH:e.openElements.hasInTableScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=gt.IN_ROW);break;case fe.TABLE:case fe.TBODY:case fe.TFOOT:case fe.THEAD:case fe.TR:e.openElements.hasInTableScope(n)&&(e._closeTableCell(),pn(e,t));break;case fe.BODY:case fe.CAPTION:case fe.COL:case fe.COLGROUP:case fe.HTML:break;default:Zt(e,t)}}(this,e);break;case gt.IN_SELECT:dn(this,e);break;case gt.IN_SELECT_IN_TABLE:!function(e,t){const n=t.tagID;n===fe.CAPTION||n===fe.TABLE||n===fe.TBODY||n===fe.TFOOT||n===fe.THEAD||n===fe.TR||n===fe.TD||n===fe.TH?e.openElements.hasInTableScope(n)&&(e.openElements.popUntilTagNamePopped(fe.SELECT),e._resetInsertionMode(),e.onEndTag(t)):dn(e,t)}(this,e);break;case gt.IN_TEMPLATE:!function(e,t){t.tagID===fe.TEMPLATE&&wt(e,t)}(this,e);break;case gt.AFTER_BODY:_n(this,e);break;case gt.IN_FRAMESET:!function(e,t){t.tagID!==fe.FRAMESET||e.openElements.isRootHtmlElementCurrent()||(e.openElements.pop(),e.fragmentContext||e.openElements.currentTagId===fe.FRAMESET||(e.insertionMode=gt.AFTER_FRAMESET))}(this,e);break;case gt.AFTER_FRAMESET:!function(e,t){t.tagID===fe.HTML&&(e.insertionMode=gt.AFTER_AFTER_FRAMESET)}(this,e);break;case gt.AFTER_AFTER_BODY:Nn(this,e)}}onEof(e){switch(this.insertionMode){case gt.INITIAL:Ht(this,e);break;case gt.BEFORE_HTML:Ut(this,e);break;case gt.BEFORE_HEAD:Ft(this,e);break;case gt.IN_HEAD:xt(this,e);break;case gt.IN_HEAD_NO_SCRIPT:Gt(this,e);break;case gt.AFTER_HEAD:Yt(this,e);break;case gt.IN_BODY:case gt.IN_TABLE:case gt.IN_CAPTION:case gt.IN_COLUMN_GROUP:case gt.IN_TABLE_BODY:case gt.IN_ROW:case gt.IN_CELL:case gt.IN_SELECT:case gt.IN_SELECT_IN_TABLE:$t(this,e);break;case gt.TEXT:!function(e,t){e._err(t,j.eofInElementThatCanContainOnlyText),e.openElements.pop(),e.insertionMode=e.originalInsertionMode,e.onEof(t)}(this,e);break;case gt.IN_TABLE_TEXT:on(this,e);break;case gt.IN_TEMPLATE:An(this,e);break;case gt.AFTER_BODY:case gt.IN_FRAMESET:case gt.AFTER_FRAMESET:case gt.AFTER_AFTER_BODY:case gt.AFTER_AFTER_FRAMESET:Bt(this,e)}}onWhitespaceCharacter(e){if(this.skipNextNewLine&&(this.skipNextNewLine=!1,e.chars.charCodeAt(0)===x.LINE_FEED)){if(1===e.chars.length)return;e.chars=e.chars.substr(1)}if(this.tokenizer.inForeignNode)this._insertCharacters(e);else switch(this.insertionMode){case gt.IN_HEAD:case gt.IN_HEAD_NO_SCRIPT:case gt.AFTER_HEAD:case gt.TEXT:case gt.IN_COLUMN_GROUP:case gt.IN_SELECT:case gt.IN_SELECT_IN_TABLE:case gt.IN_FRAMESET:case gt.AFTER_FRAMESET:this._insertCharacters(e);break;case gt.IN_BODY:case gt.IN_CAPTION:case gt.IN_CELL:case gt.IN_TEMPLATE:case gt.AFTER_BODY:case gt.AFTER_AFTER_BODY:case gt.AFTER_AFTER_FRAMESET:Wt(this,e);break;case gt.IN_TABLE:case gt.IN_TABLE_BODY:case gt.IN_ROW:en(this,e);break;case gt.IN_TABLE_TEXT:sn(this,e)}}}function Dt(e,t){let n=e.activeFormattingElements.getElementEntryInScopeWithTagName(t.tagName);return n?e.openElements.contains(n.element)?e.openElements.hasInScope(t.tagID)||(n=null):(e.activeFormattingElements.removeEntry(n),n=null):Jt(e,t),n}function Ot(e,t){let n=null,r=e.openElements.stackTop;for(;r>=0;r--){const s=e.openElements.items[r];if(s===t.element)break;e._isSpecialElement(s,e.openElements.tagIDs[r])&&(n=s)}return n||(e.openElements.shortenToLength(r<0?0:r),e.activeFormattingElements.removeEntry(t)),n}function Lt(e,t,n){let r=t,s=e.openElements.getCommonAncestor(t);for(let a=0,o=s;o!==n;a++,o=s){s=e.openElements.getCommonAncestor(o);const n=e.activeFormattingElements.getElementEntry(o),i=n&&a>=Nt;!n||i?(i&&e.activeFormattingElements.removeEntry(n),e.openElements.remove(o)):(o=bt(e,n),r===t&&(e.activeFormattingElements.bookmark=n),e.treeAdapter.detachNode(r),e.treeAdapter.appendChild(o,r),r=o)}return r}function bt(e,t){const n=e.treeAdapter.getNamespaceURI(t.element),r=e.treeAdapter.createElement(t.token.tagName,n,t.token.attrs);return e.openElements.replace(t.element,r),t.element=r,r}function kt(e,t,n){const r=ge(e.treeAdapter.getTagName(t));if(e._isElementCausesFosterParenting(r))e._fosterParentElement(n);else{const s=e.treeAdapter.getNamespaceURI(t);r===fe.TEMPLATE&&s===me.HTML&&(t=e.treeAdapter.getTemplateContent(t)),e.treeAdapter.appendChild(t,n)}}function Pt(e,t,n){const r=e.treeAdapter.getNamespaceURI(n.element),{token:s}=n,a=e.treeAdapter.createElement(s.tagName,r,s.attrs);e._adoptNodes(t,a),e.treeAdapter.appendChild(t,a),e.activeFormattingElements.insertElementAfterBookmark(a,s),e.activeFormattingElements.removeEntry(n),e.openElements.remove(n.element),e.openElements.insertAfter(t,a,s.tagID)}function Mt(e,t){for(let n=0;n=n;r--)e._setEndLocation(e.openElements.items[r],t);if(!e.fragmentContext&&e.openElements.stackTop>=0){const n=e.openElements.items[0],r=e.treeAdapter.getNodeSourceCodeLocation(n);if(r&&!r.endTag&&(e._setEndLocation(n,t),e.openElements.stackTop>=1)){const n=e.openElements.items[1],r=e.treeAdapter.getNodeSourceCodeLocation(n);r&&!r.endTag&&e._setEndLocation(n,t)}}}}function Ht(e,t){e._err(t,j.missingDoctype,!0),e.treeAdapter.setDocumentMode(e.document,Ae.QUIRKS),e.insertionMode=gt.BEFORE_HTML,e._processToken(t)}function Ut(e,t){e._insertFakeRootElement(),e.insertionMode=gt.BEFORE_HEAD,e._processToken(t)}function Ft(e,t){e._insertFakeElement(_e.HEAD,fe.HEAD),e.headElement=e.openElements.current,e.insertionMode=gt.IN_HEAD,e._processToken(t)}function vt(e,t){switch(t.tagID){case fe.HTML:jt(e,t);break;case fe.BASE:case fe.BASEFONT:case fe.BGSOUND:case fe.LINK:case fe.META:e._appendElement(t,me.HTML),t.ackSelfClosing=!0;break;case fe.TITLE:e._switchToTextParsing(t,Oe.RCDATA);break;case fe.NOSCRIPT:e.options.scriptingEnabled?e._switchToTextParsing(t,Oe.RAWTEXT):(e._insertElement(t,me.HTML),e.insertionMode=gt.IN_HEAD_NO_SCRIPT);break;case fe.NOFRAMES:case fe.STYLE:e._switchToTextParsing(t,Oe.RAWTEXT);break;case fe.SCRIPT:e._switchToTextParsing(t,Oe.SCRIPT_DATA);break;case fe.TEMPLATE:e._insertTemplate(t),e.activeFormattingElements.insertMarker(),e.framesetOk=!1,e.insertionMode=gt.IN_TEMPLATE,e.tmplInsertionModeStack.unshift(gt.IN_TEMPLATE);break;case fe.HEAD:e._err(t,j.misplacedStartTagForHeadElement);break;default:xt(e,t)}}function wt(e,t){e.openElements.tmplCount>0?(e.openElements.generateImpliedEndTagsThoroughly(),e.openElements.currentTagId!==fe.TEMPLATE&&e._err(t,j.closingOfElementWithOpenChildElements),e.openElements.popUntilTagNamePopped(fe.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode()):e._err(t,j.endTagWithoutMatchingOpenElement)}function xt(e,t){e.openElements.pop(),e.insertionMode=gt.AFTER_HEAD,e._processToken(t)}function Gt(e,t){const n=t.type===Z.EOF?j.openElementsLeftAfterEof:j.disallowedContentInNoscriptInHead;e._err(t,n),e.openElements.pop(),e.insertionMode=gt.IN_HEAD,e._processToken(t)}function Yt(e,t){e._insertFakeElement(_e.BODY,fe.BODY),e.insertionMode=gt.IN_BODY,qt(e,t)}function qt(e,t){switch(t.type){case Z.CHARACTER:Qt(e,t);break;case Z.WHITESPACE_CHARACTER:Wt(e,t);break;case Z.COMMENT:yt(e,t);break;case Z.START_TAG:jt(e,t);break;case Z.END_TAG:Zt(e,t);break;case Z.EOF:$t(e,t)}}function Wt(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t)}function Qt(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t),e.framesetOk=!1}function Xt(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,me.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function Vt(e){const t=$(e,de.TYPE);return null!=t&&t.toLowerCase()===_t}function Kt(e,t){e._switchToTextParsing(t,Oe.RAWTEXT)}function zt(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,me.HTML)}function jt(e,t){switch(t.tagID){case fe.I:case fe.S:case fe.B:case fe.U:case fe.EM:case fe.TT:case fe.BIG:case fe.CODE:case fe.FONT:case fe.SMALL:case fe.STRIKE:case fe.STRONG:!function(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,me.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}(e,t);break;case fe.A:!function(e,t){const n=e.activeFormattingElements.getElementEntryInScopeWithTagName(_e.A);n&&(Mt(e,t),e.openElements.remove(n.element),e.activeFormattingElements.removeEntry(n)),e._reconstructActiveFormattingElements(),e._insertElement(t,me.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}(e,t);break;case fe.H1:case fe.H2:case fe.H3:case fe.H4:case fe.H5:case fe.H6:!function(e,t){e.openElements.hasInButtonScope(fe.P)&&e._closePElement(),Se(e.openElements.currentTagId)&&e.openElements.pop(),e._insertElement(t,me.HTML)}(e,t);break;case fe.P:case fe.DL:case fe.OL:case fe.UL:case fe.DIV:case fe.DIR:case fe.NAV:case fe.MAIN:case fe.MENU:case fe.ASIDE:case fe.CENTER:case fe.FIGURE:case fe.FOOTER:case fe.HEADER:case fe.HGROUP:case fe.DIALOG:case fe.DETAILS:case fe.ADDRESS:case fe.ARTICLE:case fe.SECTION:case fe.SUMMARY:case fe.FIELDSET:case fe.BLOCKQUOTE:case fe.FIGCAPTION:!function(e,t){e.openElements.hasInButtonScope(fe.P)&&e._closePElement(),e._insertElement(t,me.HTML)}(e,t);break;case fe.LI:case fe.DD:case fe.DT:!function(e,t){e.framesetOk=!1;const n=t.tagID;for(let r=e.openElements.stackTop;r>=0;r--){const t=e.openElements.tagIDs[r];if(n===fe.LI&&t===fe.LI||(n===fe.DD||n===fe.DT)&&(t===fe.DD||t===fe.DT)){e.openElements.generateImpliedEndTagsWithExclusion(t),e.openElements.popUntilTagNamePopped(t);break}if(t!==fe.ADDRESS&&t!==fe.DIV&&t!==fe.P&&e._isSpecialElement(e.openElements.items[r],t))break}e.openElements.hasInButtonScope(fe.P)&&e._closePElement(),e._insertElement(t,me.HTML)}(e,t);break;case fe.BR:case fe.IMG:case fe.WBR:case fe.AREA:case fe.EMBED:case fe.KEYGEN:Xt(e,t);break;case fe.HR:!function(e,t){e.openElements.hasInButtonScope(fe.P)&&e._closePElement(),e._appendElement(t,me.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}(e,t);break;case fe.RB:case fe.RTC:!function(e,t){e.openElements.hasInScope(fe.RUBY)&&e.openElements.generateImpliedEndTags(),e._insertElement(t,me.HTML)}(e,t);break;case fe.RT:case fe.RP:!function(e,t){e.openElements.hasInScope(fe.RUBY)&&e.openElements.generateImpliedEndTagsWithExclusion(fe.RTC),e._insertElement(t,me.HTML)}(e,t);break;case fe.PRE:case fe.LISTING:!function(e,t){e.openElements.hasInButtonScope(fe.P)&&e._closePElement(),e._insertElement(t,me.HTML),e.skipNextNewLine=!0,e.framesetOk=!1}(e,t);break;case fe.XMP:!function(e,t){e.openElements.hasInButtonScope(fe.P)&&e._closePElement(),e._reconstructActiveFormattingElements(),e.framesetOk=!1,e._switchToTextParsing(t,Oe.RAWTEXT)}(e,t);break;case fe.SVG:!function(e,t){e._reconstructActiveFormattingElements(),mt(t),dt(t),t.selfClosing?e._appendElement(t,me.SVG):e._insertElement(t,me.SVG),t.ackSelfClosing=!0}(e,t);break;case fe.HTML:!function(e,t){0===e.openElements.tmplCount&&e.treeAdapter.adoptAttributes(e.openElements.items[0],t.attrs)}(e,t);break;case fe.BASE:case fe.LINK:case fe.META:case fe.STYLE:case fe.TITLE:case fe.SCRIPT:case fe.BGSOUND:case fe.BASEFONT:case fe.TEMPLATE:vt(e,t);break;case fe.BODY:!function(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&0===e.openElements.tmplCount&&(e.framesetOk=!1,e.treeAdapter.adoptAttributes(n,t.attrs))}(e,t);break;case fe.FORM:!function(e,t){const n=e.openElements.tmplCount>0;e.formElement&&!n||(e.openElements.hasInButtonScope(fe.P)&&e._closePElement(),e._insertElement(t,me.HTML),n||(e.formElement=e.openElements.current))}(e,t);break;case fe.NOBR:!function(e,t){e._reconstructActiveFormattingElements(),e.openElements.hasInScope(fe.NOBR)&&(Mt(e,t),e._reconstructActiveFormattingElements()),e._insertElement(t,me.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}(e,t);break;case fe.MATH:!function(e,t){e._reconstructActiveFormattingElements(),pt(t),dt(t),t.selfClosing?e._appendElement(t,me.MATHML):e._insertElement(t,me.MATHML),t.ackSelfClosing=!0}(e,t);break;case fe.TABLE:!function(e,t){e.treeAdapter.getDocumentMode(e.document)!==Ae.QUIRKS&&e.openElements.hasInButtonScope(fe.P)&&e._closePElement(),e._insertElement(t,me.HTML),e.framesetOk=!1,e.insertionMode=gt.IN_TABLE}(e,t);break;case fe.INPUT:!function(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,me.HTML),Vt(t)||(e.framesetOk=!1),t.ackSelfClosing=!0}(e,t);break;case fe.PARAM:case fe.TRACK:case fe.SOURCE:!function(e,t){e._appendElement(t,me.HTML),t.ackSelfClosing=!0}(e,t);break;case fe.IMAGE:!function(e,t){t.tagName=_e.IMG,t.tagID=fe.IMG,Xt(e,t)}(e,t);break;case fe.BUTTON:!function(e,t){e.openElements.hasInScope(fe.BUTTON)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(fe.BUTTON)),e._reconstructActiveFormattingElements(),e._insertElement(t,me.HTML),e.framesetOk=!1}(e,t);break;case fe.APPLET:case fe.OBJECT:case fe.MARQUEE:!function(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,me.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1}(e,t);break;case fe.IFRAME:!function(e,t){e.framesetOk=!1,e._switchToTextParsing(t,Oe.RAWTEXT)}(e,t);break;case fe.SELECT:!function(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,me.HTML),e.framesetOk=!1,e.insertionMode=e.insertionMode===gt.IN_TABLE||e.insertionMode===gt.IN_CAPTION||e.insertionMode===gt.IN_TABLE_BODY||e.insertionMode===gt.IN_ROW||e.insertionMode===gt.IN_CELL?gt.IN_SELECT_IN_TABLE:gt.IN_SELECT}(e,t);break;case fe.OPTION:case fe.OPTGROUP:!function(e,t){e.openElements.currentTagId===fe.OPTION&&e.openElements.pop(),e._reconstructActiveFormattingElements(),e._insertElement(t,me.HTML)}(e,t);break;case fe.NOEMBED:Kt(e,t);break;case fe.FRAMESET:!function(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();e.framesetOk&&n&&(e.treeAdapter.detachNode(n),e.openElements.popAllUpToHtmlElement(),e._insertElement(t,me.HTML),e.insertionMode=gt.IN_FRAMESET)}(e,t);break;case fe.TEXTAREA:!function(e,t){e._insertElement(t,me.HTML),e.skipNextNewLine=!0,e.tokenizer.state=Oe.RCDATA,e.originalInsertionMode=e.insertionMode,e.framesetOk=!1,e.insertionMode=gt.TEXT}(e,t);break;case fe.NOSCRIPT:e.options.scriptingEnabled?Kt(e,t):zt(e,t);break;case fe.PLAINTEXT:!function(e,t){e.openElements.hasInButtonScope(fe.P)&&e._closePElement(),e._insertElement(t,me.HTML),e.tokenizer.state=Oe.PLAINTEXT}(e,t);break;case fe.COL:case fe.TH:case fe.TD:case fe.TR:case fe.HEAD:case fe.FRAME:case fe.TBODY:case fe.TFOOT:case fe.THEAD:case fe.CAPTION:case fe.COLGROUP:break;default:zt(e,t)}}function Jt(e,t){const n=t.tagName,r=t.tagID;for(let s=e.openElements.stackTop;s>0;s--){const t=e.openElements.items[s],a=e.openElements.tagIDs[s];if(r===a&&(r!==fe.UNKNOWN||e.treeAdapter.getTagName(t)===n)){e.openElements.generateImpliedEndTagsWithExclusion(r),e.openElements.stackTop>=s&&e.openElements.shortenToLength(s);break}if(e._isSpecialElement(t,a))break}}function Zt(e,t){switch(t.tagID){case fe.A:case fe.B:case fe.I:case fe.S:case fe.U:case fe.EM:case fe.TT:case fe.BIG:case fe.CODE:case fe.FONT:case fe.NOBR:case fe.SMALL:case fe.STRIKE:case fe.STRONG:Mt(e,t);break;case fe.P:!function(e){e.openElements.hasInButtonScope(fe.P)||e._insertFakeElement(_e.P,fe.P),e._closePElement()}(e);break;case fe.DL:case fe.UL:case fe.OL:case fe.DIR:case fe.DIV:case fe.NAV:case fe.PRE:case fe.MAIN:case fe.MENU:case fe.ASIDE:case fe.BUTTON:case fe.CENTER:case fe.FIGURE:case fe.FOOTER:case fe.HEADER:case fe.HGROUP:case fe.DIALOG:case fe.ADDRESS:case fe.ARTICLE:case fe.DETAILS:case fe.SECTION:case fe.SUMMARY:case fe.LISTING:case fe.FIELDSET:case fe.BLOCKQUOTE:case fe.FIGCAPTION:!function(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n))}(e,t);break;case fe.LI:!function(e){e.openElements.hasInListItemScope(fe.LI)&&(e.openElements.generateImpliedEndTagsWithExclusion(fe.LI),e.openElements.popUntilTagNamePopped(fe.LI))}(e);break;case fe.DD:case fe.DT:!function(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTagsWithExclusion(n),e.openElements.popUntilTagNamePopped(n))}(e,t);break;case fe.H1:case fe.H2:case fe.H3:case fe.H4:case fe.H5:case fe.H6:!function(e){e.openElements.hasNumberedHeaderInScope()&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilNumberedHeaderPopped())}(e);break;case fe.BR:!function(e){e._reconstructActiveFormattingElements(),e._insertFakeElement(_e.BR,fe.BR),e.openElements.pop(),e.framesetOk=!1}(e);break;case fe.BODY:!function(e,t){if(e.openElements.hasInScope(fe.BODY)&&(e.insertionMode=gt.AFTER_BODY,e.options.sourceCodeLocationInfo)){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e._setEndLocation(n,t)}}(e,t);break;case fe.HTML:!function(e,t){e.openElements.hasInScope(fe.BODY)&&(e.insertionMode=gt.AFTER_BODY,_n(e,t))}(e,t);break;case fe.FORM:!function(e){const t=e.openElements.tmplCount>0,{formElement:n}=e;t||(e.formElement=null),(n||t)&&e.openElements.hasInScope(fe.FORM)&&(e.openElements.generateImpliedEndTags(),t?e.openElements.popUntilTagNamePopped(fe.FORM):n&&e.openElements.remove(n))}(e);break;case fe.APPLET:case fe.OBJECT:case fe.MARQUEE:!function(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker())}(e,t);break;case fe.TEMPLATE:wt(e,t);break;default:Jt(e,t)}}function $t(e,t){e.tmplInsertionModeStack.length>0?An(e,t):Bt(e,t)}function en(e,t){if(It.has(e.openElements.currentTagId))switch(e.pendingCharacterTokens.length=0,e.hasNonWhitespacePendingCharacterToken=!1,e.originalInsertionMode=e.insertionMode,e.insertionMode=gt.IN_TABLE_TEXT,t.type){case Z.CHARACTER:an(e,t);break;case Z.WHITESPACE_CHARACTER:sn(e,t)}else rn(e,t)}function tn(e,t){switch(t.tagID){case fe.TD:case fe.TH:case fe.TR:!function(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(_e.TBODY,fe.TBODY),e.insertionMode=gt.IN_TABLE_BODY,En(e,t)}(e,t);break;case fe.STYLE:case fe.SCRIPT:case fe.TEMPLATE:vt(e,t);break;case fe.COL:!function(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(_e.COLGROUP,fe.COLGROUP),e.insertionMode=gt.IN_COLUMN_GROUP,ln(e,t)}(e,t);break;case fe.FORM:!function(e,t){e.formElement||0!==e.openElements.tmplCount||(e._insertElement(t,me.HTML),e.formElement=e.openElements.current,e.openElements.pop())}(e,t);break;case fe.TABLE:!function(e,t){e.openElements.hasInTableScope(fe.TABLE)&&(e.openElements.popUntilTagNamePopped(fe.TABLE),e._resetInsertionMode(),e._processStartTag(t))}(e,t);break;case fe.TBODY:case fe.TFOOT:case fe.THEAD:!function(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,me.HTML),e.insertionMode=gt.IN_TABLE_BODY}(e,t);break;case fe.INPUT:!function(e,t){Vt(t)?e._appendElement(t,me.HTML):rn(e,t),t.ackSelfClosing=!0}(e,t);break;case fe.CAPTION:!function(e,t){e.openElements.clearBackToTableContext(),e.activeFormattingElements.insertMarker(),e._insertElement(t,me.HTML),e.insertionMode=gt.IN_CAPTION}(e,t);break;case fe.COLGROUP:!function(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,me.HTML),e.insertionMode=gt.IN_COLUMN_GROUP}(e,t);break;default:rn(e,t)}}function nn(e,t){switch(t.tagID){case fe.TABLE:e.openElements.hasInTableScope(fe.TABLE)&&(e.openElements.popUntilTagNamePopped(fe.TABLE),e._resetInsertionMode());break;case fe.TEMPLATE:wt(e,t);break;case fe.BODY:case fe.CAPTION:case fe.COL:case fe.COLGROUP:case fe.HTML:case fe.TBODY:case fe.TD:case fe.TFOOT:case fe.TH:case fe.THEAD:case fe.TR:break;default:rn(e,t)}}function rn(e,t){const n=e.fosterParentingEnabled;e.fosterParentingEnabled=!0,qt(e,t),e.fosterParentingEnabled=n}function sn(e,t){e.pendingCharacterTokens.push(t)}function an(e,t){e.pendingCharacterTokens.push(t),e.hasNonWhitespacePendingCharacterToken=!0}function on(e,t){let n=0;if(e.hasNonWhitespacePendingCharacterToken)for(;n0&&e.openElements.currentTagId===fe.OPTION&&e.openElements.tagIDs[e.openElements.stackTop-1]===fe.OPTGROUP&&e.openElements.pop(),e.openElements.currentTagId===fe.OPTGROUP&&e.openElements.pop();break;case fe.OPTION:e.openElements.currentTagId===fe.OPTION&&e.openElements.pop();break;case fe.SELECT:e.openElements.hasInSelectScope(fe.SELECT)&&(e.openElements.popUntilTagNamePopped(fe.SELECT),e._resetInsertionMode());break;case fe.TEMPLATE:wt(e,t)}}function An(e,t){e.openElements.tmplCount>0?(e.openElements.popUntilTagNamePopped(fe.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode(),e.onEof(t)):Bt(e,t)}function _n(e,t){var n;if(t.tagID===fe.HTML){if(e.fragmentContext||(e.insertionMode=gt.AFTER_AFTER_BODY),e.options.sourceCodeLocationInfo&&e.openElements.tagIDs[0]===fe.HTML){e._setEndLocation(e.openElements.items[0],t);const r=e.openElements.items[1];r&&!(null===(n=e.treeAdapter.getNodeSourceCodeLocation(r))||void 0===n?void 0:n.endTag)&&e._setEndLocation(r,t)}}else fn(e,t)}function fn(e,t){e.insertionMode=gt.IN_BODY,qt(e,t)}function Nn(e,t){e.insertionMode=gt.IN_BODY,qt(e,t)}function gn(e){for(;e.treeAdapter.getNamespaceURI(e.openElements.current)!==me.HTML&&!e._isIntegrationPoint(e.openElements.currentTagId,e.openElements.current);)e.openElements.pop()}const Cn=new Map([[34,"""],[38,"&"],[39,"'"],[60,"<"],[62,">"]]);String.prototype.codePointAt;function In(e,t){return function(n){let r,s=0,a="";for(;r=e.exec(n);)s!==r.index&&(a+=n.substring(s,r.index)),a+=t.get(r[0].charCodeAt(0)),s=r.index+1;return a+n.substring(s)}}In(/[&<>'"]/g,Cn),In(/["&\u00A0]/g,new Map([[34,"""],[38,"&"],[160," "]])),In(/[&<>\u00A0]/g,new Map([[38,"&"],[60,"<"],[62,">"],[160," "]])),new Set([_e.AREA,_e.BASE,_e.BASEFONT,_e.BGSOUND,_e.BR,_e.COL,_e.EMBED,_e.FRAME,_e.HR,_e.IMG,_e.INPUT,_e.KEYGEN,_e.LINK,_e.META,_e.PARAM,_e.SOURCE,_e.TRACK,_e.WBR]);var Sn=n(8025),Rn=n(3731);const Dn=new Set(["mdxFlowExpression","mdxJsxFlowElement","mdxJsxTextElement","mdxTextExpression","mdxjsEsm"]),On={sourceCodeLocationInfo:!0,scriptingEnabled:!1};function Ln(e,t){const n=function(e){const t="root"===e.type?e.children[0]:e;return Boolean(t&&("doctype"===t.type||"element"===t.type&&"html"===t.tagName.toLowerCase()))}(e),r=(0,k.A)("type",{handlers:{root:kn,element:Pn,text:Mn,comment:Hn,doctype:yn,raw:Un},unknown:Fn}),s={parser:n?new Rt(On):Rt.getFragmentParser(void 0,On),handle(e){r(e,s)},stitches:!1,options:t||{}};r(e,s),vn(s,(0,Sn.PW)());const a=I(n?s.parser.document:s.parser.getFragment(),{file:s.options.file});return s.stitches&&(0,Rn.YR)(a,"comment",(function(e,t,n){const r=e;if(r.value.stitch&&n&&void 0!==t){return n.children[t]=r.value.stitch,t}})),"root"===a.type&&1===a.children.length&&a.children[0].type===e.type?a.children[0]:a}function bn(e,t){let n=-1;if(e)for(;++n{"use strict";n.d(t,{a:()=>i});var r=n(8309),s=n(8025),a=n(8633);const o={}.hasOwnProperty;function i(e,t){let n={type:"root",children:[]};const r=c({schema:t?{...a.j,...t}:a.j,stack:[]},e);return r&&(Array.isArray(r)?1===r.length?n=r[0]:n.children=r:n=r),n}function c(e,t){if(t&&"object"===typeof t){const n=t;switch("string"===typeof n.type?n.type:""){case"comment":return function(e,t){if(e.schema.allowComments){const e="string"===typeof t.value?t.value:"",n=e.indexOf("--\x3e"),r={type:"comment",value:n<0?e:e.slice(0,n)};return h(r,t),r}}(e,n);case"doctype":return function(e,t){if(e.schema.allowDoctypes){const e={type:"doctype"};return h(e,t),e}}(e,n);case"element":return function(e,t){const n="string"===typeof t.tagName?t.tagName:"";e.stack.push(n);const r=l(e,t.children),s=function(e,t){const n=e.stack[e.stack.length-1],r=e.schema.attributes,s=e.schema.required,a=r&&o.call(r,n)?r[n]:void 0,i=r&&o.call(r,"*")?r["*"]:void 0,c=t&&"object"===typeof t?t:{},l={};let E;for(E in c)if(o.call(c,E)){const t=c[E];let n=u(e,T(a,E),E,t);null!==n&&void 0!==n||(n=u(e,T(i,E),E,t)),null!==n&&void 0!==n&&(l[E]=n)}if(s&&o.call(s,n)){const e=s[n];for(E in e)o.call(e,E)&&!o.call(l,E)&&(l[E]=e[E])}return l}(e,t.properties);e.stack.pop();let a=!1;if(n&&"*"!==n&&(!e.schema.tagNames||e.schema.tagNames.includes(n))&&(a=!0,e.schema.ancestors&&o.call(e.schema.ancestors,n))){const t=e.schema.ancestors[n];let r=-1;for(a=!1;++r-1&&a>l||i>-1&&a>i||c>-1&&a>c)return!0;let u=-1;for(;++u1){let e=!1,n=0;for(;++n4&&"data"===t.slice(0,4).toLowerCase())return n}},8633:(e,t,n)=>{"use strict";n.d(t,{j:()=>s});const r=["ariaDescribedBy","ariaLabel","ariaLabelledBy"],s={ancestors:{tbody:["table"],td:["table"],th:["table"],thead:["table"],tfoot:["table"],tr:["table"]},attributes:{a:[...r,"dataFootnoteBackref","dataFootnoteRef",["className","data-footnote-backref"],"href"],blockquote:["cite"],code:[["className",/^language-./]],del:["cite"],div:["itemScope","itemType"],dl:[...r],h2:[["className","sr-only"]],img:[...r,"longDesc","src"],input:[["disabled",!0],["type","checkbox"]],ins:["cite"],li:[["className","task-list-item"]],ol:[...r,["className","contains-task-list"]],q:["cite"],section:["dataFootnotes",["className","footnotes"]],source:["srcSet"],summary:[...r],table:[...r],ul:[...r,["className","contains-task-list"]],"*":["abbr","accept","acceptCharset","accessKey","action","align","alt","axis","border","cellPadding","cellSpacing","char","charOff","charSet","checked","clear","colSpan","color","cols","compact","coords","dateTime","dir","encType","frame","hSpace","headers","height","hrefLang","htmlFor","id","isMap","itemProp","label","lang","maxLength","media","method","multiple","name","noHref","noShade","noWrap","open","prompt","readOnly","rev","rowSpan","rows","rules","scope","selected","shape","size","span","start","summary","tabIndex","title","useMap","vAlign","value","width"]},clobber:["ariaDescribedBy","ariaLabelledBy","id","name"],clobberPrefix:"user-content-",protocols:{cite:["http","https"],href:["http","https","irc","ircs","mailto","xmpp"],longDesc:["http","https"],src:["http","https"]},required:{input:{disabled:!0,type:"checkbox"}},strip:["script"],tagNames:["a","b","blockquote","br","code","dd","del","details","div","dl","dt","em","h1","h2","h3","h4","h5","h6","hr","i","img","input","ins","kbd","li","ol","p","picture","pre","q","rp","rt","ruby","s","samp","section","source","span","strike","strong","sub","summary","sup","table","tbody","td","tfoot","th","thead","tr","tt","ul","var"]}},2961:(e,t,n)=>{"use strict";n.d(t,{V:()=>Z});var r=n(2893),s=n(8668),a=n(5818);const o=/["&'<>`]/g,i=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,c=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,l=/[|\\{}()[\]^$+*?.]/g,u=new WeakMap;function E(e,t){return e=e.replace(t.subset?function(e){let t=u.get(e);t||(t=function(e){const t=[];let n=-1;for(;++n",OElig:"\u0152",oelig:"\u0153",Scaron:"\u0160",scaron:"\u0161",Yuml:"\u0178",circ:"\u02c6",tilde:"\u02dc",ensp:"\u2002",emsp:"\u2003",thinsp:"\u2009",zwnj:"\u200c",zwj:"\u200d",lrm:"\u200e",rlm:"\u200f",ndash:"\u2013",mdash:"\u2014",lsquo:"\u2018",rsquo:"\u2019",sbquo:"\u201a",ldquo:"\u201c",rdquo:"\u201d",bdquo:"\u201e",dagger:"\u2020",Dagger:"\u2021",permil:"\u2030",lsaquo:"\u2039",rsaquo:"\u203a",euro:"\u20ac"},d=["cent","copy","divide","gt","lt","not","para","times"],A={}.hasOwnProperty,_={};let f;for(f in m)A.call(m,f)&&(_[m[f]]=f);const N=/[^\dA-Za-z]/;function g(e,t,n){let r,s=function(e,t,n){const r="&#x"+e.toString(16).toUpperCase();return n&&t&&!h.test(String.fromCharCode(t))?r:r+";"}(e,t,n.omitOptionalSemicolons);if((n.useNamedReferences||n.useShortestReferences)&&(r=function(e,t,n,r){const s=String.fromCharCode(e);if(A.call(_,s)){const e=_[s],a="&"+e;return n&&p.includes(e)&&!d.includes(e)&&(!r||t&&61!==t&&N.test(String.fromCharCode(t)))?a:a+";"}return""}(e,t,n.omitOptionalSemicolons,n.attribute)),(n.useShortestReferences||!r)&&n.useShortestReferences){const r=function(e,t,n){const r="&#"+String(e);return n&&t&&!T.test(String.fromCharCode(t))?r:r+";"}(e,t,n.omitOptionalSemicolons);r.length|^->||--!>|"],R=["<",">"];var D=n(5829),O=n(8779),L=n(2030),b=n(9164);const k=/[ \t\n\f\r]/g;function P(e){return"object"===typeof e?"text"===e.type&&M(e.value):M(e)}function M(e){return""===e.replace(k,"")}const y=U(1),B=U(-1),H=[];function U(e){return function(t,n,r){const s=t?t.children:H;let a=(n||0)+e,o=s[a];if(!r)for(;o&&P(o);)a+=e,o=s[a];return o}}const F={}.hasOwnProperty;function v(e){return function(t,n,r){return F.call(e,t.tagName)&&e[t.tagName](t,n,r)}}const w=v({body:function(e,t,n){const r=y(n,t);return!r||"comment"!==r.type},caption:x,colgroup:x,dd:function(e,t,n){const r=y(n,t);return!r||"element"===r.type&&("dt"===r.tagName||"dd"===r.tagName)},dt:function(e,t,n){const r=y(n,t);return Boolean(r&&"element"===r.type&&("dt"===r.tagName||"dd"===r.tagName))},head:x,html:function(e,t,n){const r=y(n,t);return!r||"comment"!==r.type},li:function(e,t,n){const r=y(n,t);return!r||"element"===r.type&&"li"===r.tagName},optgroup:function(e,t,n){const r=y(n,t);return!r||"element"===r.type&&"optgroup"===r.tagName},option:function(e,t,n){const r=y(n,t);return!r||"element"===r.type&&("option"===r.tagName||"optgroup"===r.tagName)},p:function(e,t,n){const r=y(n,t);return r?"element"===r.type&&("address"===r.tagName||"article"===r.tagName||"aside"===r.tagName||"blockquote"===r.tagName||"details"===r.tagName||"div"===r.tagName||"dl"===r.tagName||"fieldset"===r.tagName||"figcaption"===r.tagName||"figure"===r.tagName||"footer"===r.tagName||"form"===r.tagName||"h1"===r.tagName||"h2"===r.tagName||"h3"===r.tagName||"h4"===r.tagName||"h5"===r.tagName||"h6"===r.tagName||"header"===r.tagName||"hgroup"===r.tagName||"hr"===r.tagName||"main"===r.tagName||"menu"===r.tagName||"nav"===r.tagName||"ol"===r.tagName||"p"===r.tagName||"pre"===r.tagName||"section"===r.tagName||"table"===r.tagName||"ul"===r.tagName):!n||!("element"===n.type&&("a"===n.tagName||"audio"===n.tagName||"del"===n.tagName||"ins"===n.tagName||"map"===n.tagName||"noscript"===n.tagName||"video"===n.tagName))},rp:G,rt:G,tbody:function(e,t,n){const r=y(n,t);return!r||"element"===r.type&&("tbody"===r.tagName||"tfoot"===r.tagName)},td:Y,tfoot:function(e,t,n){return!y(n,t)},th:Y,thead:function(e,t,n){const r=y(n,t);return Boolean(r&&"element"===r.type&&("tbody"===r.tagName||"tfoot"===r.tagName))},tr:function(e,t,n){const r=y(n,t);return!r||"element"===r.type&&"tr"===r.tagName}});function x(e,t,n){const r=y(n,t,!0);return!r||"comment"!==r.type&&!("text"===r.type&&P(r.value.charAt(0)))}function G(e,t,n){const r=y(n,t);return!r||"element"===r.type&&("rp"===r.tagName||"rt"===r.tagName)}function Y(e,t,n){const r=y(n,t);return!r||"element"===r.type&&("td"===r.tagName||"th"===r.tagName)}const q=v({body:function(e){const t=y(e,-1,!0);return!t||"comment"!==t.type&&!("text"===t.type&&P(t.value.charAt(0)))&&!("element"===t.type&&("meta"===t.tagName||"link"===t.tagName||"script"===t.tagName||"style"===t.tagName||"template"===t.tagName))},colgroup:function(e,t,n){const r=B(n,t),s=y(e,-1,!0);if(n&&r&&"element"===r.type&&"colgroup"===r.tagName&&w(r,n.children.indexOf(r),n))return!1;return Boolean(s&&"element"===s.type&&"col"===s.tagName)},head:function(e){const t=e.children,n=[];let r=-1;for(;++r0},html:function(e){const t=y(e,-1);return!t||"comment"!==t.type},tbody:function(e,t,n){const r=B(n,t),s=y(e,-1);if(n&&r&&"element"===r.type&&("thead"===r.tagName||"tbody"===r.tagName)&&w(r,n.children.indexOf(r),n))return!1;return Boolean(s&&"element"===s.type&&"tr"===s.tagName)}});const W={name:[["\t\n\f\r &/=>".split(""),"\t\n\f\r \"&'/=>`".split("")],["\0\t\n\f\r \"&'/<=>".split(""),"\0\t\n\f\r \"&'/<=>`".split("")]],unquoted:[["\t\n\f\r &>".split(""),"\0\t\n\f\r \"&'<=>`".split("")],["\0\t\n\f\r \"&'<=>`".split(""),"\0\t\n\f\r \"&'<=>`".split("")]],single:[["&'".split(""),"\"&'`".split("")],["\0&'".split(""),"\0\"&'`".split("")]],double:[['"&'.split(""),"\"&'`".split("")],['\0"&'.split(""),"\0\"&'`".split("")]]};function Q(e,t,n){const r=(0,L.I)(e.schema,t),s=e.settings.allowParseErrors&&"html"===e.schema.space?0:1,a=e.settings.allowDangerousCharacters?0:1;let o,i=e.quote;if(!r.overloadedBoolean||n!==r.attribute&&""!==n?(r.boolean||r.overloadedBoolean&&"string"!==typeof n)&&(n=Boolean(n)):n=!0,null===n||void 0===n||!1===n||"number"===typeof n&&Number.isNaN(n))return"";const c=C(r.attribute,Object.assign({},e.settings.characterReferences,{subset:W.name[s][a]}));return!0===n?c:(n=Array.isArray(n)?(r.commaSeparated?O.A:b.A)(n,{padLeft:!e.settings.tightCommaSeparatedLists}):String(n),e.settings.collapseEmptyAttributes&&!n?c:(e.settings.preferUnquoted&&(o=C(n,Object.assign({},e.settings.characterReferences,{attribute:!0,subset:W.unquoted[s][a]}))),o!==n&&(e.settings.quoteSmart&&(0,D.D)(n,i)>(0,D.D)(n,e.alternative)&&(i=e.alternative),o=i+C(n,Object.assign({},e.settings.characterReferences,{subset:("'"===i?W.single:W.double)[s][a],attribute:!0}))+i),c+(o?"="+o:o)))}const X=["<","&"];function V(e,t,n,r){return!n||"element"!==n.type||"script"!==n.tagName&&"style"!==n.tagName?C(e.value,Object.assign({},r.settings.characterReferences,{subset:X})):e.value}const K=(0,a.A)("type",{invalid:function(e){throw new Error("Expected node, not `"+e+"`")},unknown:function(e){throw new Error("Cannot compile unknown node `"+e.type+"`")},handlers:{comment:function(e,t,n,r){return r.settings.bogusComments?"":"\x3c!--"+e.value.replace(I,(function(e){return C(e,Object.assign({},r.settings.characterReferences,{subset:R}))}))+"--\x3e"},doctype:function(e,t,n,r){return""},element:function(e,t,n,r){const a=r.schema,o="svg"!==a.space&&r.settings.omitOptionalTags;let i="svg"===a.space?r.settings.closeEmptyElements:r.settings.voids.includes(e.tagName.toLowerCase());const c=[];let l;"html"===a.space&&"svg"===e.tagName&&(r.schema=s.JW);const u=function(e,t){const n=[];let r,s=-1;if(t)for(r in t)if(null!==t[r]&&void 0!==t[r]){const s=Q(e,r,t[r]);s&&n.push(s)}for(;++s")),c.push(E),i||o&&w(e,t,n)||c.push(""),c.join("")},raw:function(e,t,n,r){return r.settings.allowDangerousHtml?e.value:V(e,0,n,r)},root:function(e,t,n,r){return r.all(e)},text:V}});const z={},j={},J=[];function Z(e,t){const n=t||z,a=n.quote||'"',o='"'===a?"'":'"';if('"'!==a&&"'"!==a)throw new Error("Invalid quote `"+a+"`, expected `'` or `\"`");return{one:$,all:ee,settings:{omitOptionalTags:n.omitOptionalTags||!1,allowParseErrors:n.allowParseErrors||!1,allowDangerousCharacters:n.allowDangerousCharacters||!1,quoteSmart:n.quoteSmart||!1,preferUnquoted:n.preferUnquoted||!1,tightAttributes:n.tightAttributes||!1,upperDoctype:n.upperDoctype||!1,tightDoctype:n.tightDoctype||!1,bogusComments:n.bogusComments||!1,tightCommaSeparatedLists:n.tightCommaSeparatedLists||!1,tightSelfClosing:n.tightSelfClosing||!1,collapseEmptyAttributes:n.collapseEmptyAttributes||!1,allowDangerousHtml:n.allowDangerousHtml||!1,voids:n.voids||r.b,characterReferences:n.characterReferences||j,closeSelfClosing:n.closeSelfClosing||!1,closeEmptyElements:n.closeEmptyElements||!1},schema:"svg"===n.space?s.JW:s.qy,quote:a,alternative:o}.one(Array.isArray(e)?{type:"root",children:e}:e,void 0,void 0)}function $(e,t,n){return K(e,t,n,this)}function ee(e){const t=[],n=e&&e.children||J;let r=-1;for(;++r{"use strict";n.d(t,{b:()=>r});const r=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"]},1583:(e,t,n)=>{"use strict";function r(e){if("object"!==typeof e||null===e)return!1;const t=Object.getPrototypeOf(e);return(null===t||t===Object.prototype||null===Object.getPrototypeOf(t))&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}n.d(t,{A:()=>r})},8378:(e,t,n)=>{"use strict";function r(e,t){const n=String(e);let r=n.indexOf(t),s=r,a=0,o=0;if("string"!==typeof t)throw new TypeError("Expected substring");for(;-1!==r;)r===s?++a>o&&(o=a):a=1,s=r+t.length,r=n.indexOf(t,s);return o}n.d(t,{D:()=>r})},8668:(e,t,n)=>{"use strict";n.d(t,{qy:()=>_,JW:()=>f});class r{constructor(e,t,n){this.property=e,this.normal=t,n&&(this.space=n)}}function s(e,t){const n={},s={};let a=-1;for(;++a"xlink:"+t.slice(5).toLowerCase(),properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}}),u=c({space:"xml",transform:(e,t)=>"xml:"+t.slice(3).toLowerCase(),properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function E(e,t){return t in e?e[t]:t}function h(e,t){return E(e,t.toLowerCase())}const T=c({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:h,properties:{xmlns:null,xmlnsXLink:null}});var p=n(8767);const m=c({transform:(e,t)=>"role"===t?t:"aria-"+t.slice(4).toLowerCase(),properties:{ariaActiveDescendant:null,ariaAtomic:p.booleanish,ariaAutoComplete:null,ariaBusy:p.booleanish,ariaChecked:p.booleanish,ariaColCount:p.number,ariaColIndex:p.number,ariaColSpan:p.number,ariaControls:p.spaceSeparated,ariaCurrent:null,ariaDescribedBy:p.spaceSeparated,ariaDetails:null,ariaDisabled:p.booleanish,ariaDropEffect:p.spaceSeparated,ariaErrorMessage:null,ariaExpanded:p.booleanish,ariaFlowTo:p.spaceSeparated,ariaGrabbed:p.booleanish,ariaHasPopup:null,ariaHidden:p.booleanish,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:p.spaceSeparated,ariaLevel:p.number,ariaLive:null,ariaModal:p.booleanish,ariaMultiLine:p.booleanish,ariaMultiSelectable:p.booleanish,ariaOrientation:null,ariaOwns:p.spaceSeparated,ariaPlaceholder:null,ariaPosInSet:p.number,ariaPressed:p.booleanish,ariaReadOnly:p.booleanish,ariaRelevant:null,ariaRequired:p.booleanish,ariaRoleDescription:p.spaceSeparated,ariaRowCount:p.number,ariaRowIndex:p.number,ariaRowSpan:p.number,ariaSelected:p.booleanish,ariaSetSize:p.number,ariaSort:null,ariaValueMax:p.number,ariaValueMin:p.number,ariaValueNow:p.number,ariaValueText:null,role:null}}),d=c({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:h,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:p.commaSeparated,acceptCharset:p.spaceSeparated,accessKey:p.spaceSeparated,action:null,allow:null,allowFullScreen:p.boolean,allowPaymentRequest:p.boolean,allowUserMedia:p.boolean,alt:null,as:null,async:p.boolean,autoCapitalize:null,autoComplete:p.spaceSeparated,autoFocus:p.boolean,autoPlay:p.boolean,blocking:p.spaceSeparated,capture:null,charSet:null,checked:p.boolean,cite:null,className:p.spaceSeparated,cols:p.number,colSpan:null,content:null,contentEditable:p.booleanish,controls:p.boolean,controlsList:p.spaceSeparated,coords:p.number|p.commaSeparated,crossOrigin:null,data:null,dateTime:null,decoding:null,default:p.boolean,defer:p.boolean,dir:null,dirName:null,disabled:p.boolean,download:p.overloadedBoolean,draggable:p.booleanish,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:p.boolean,formTarget:null,headers:p.spaceSeparated,height:p.number,hidden:p.boolean,high:p.number,href:null,hrefLang:null,htmlFor:p.spaceSeparated,httpEquiv:p.spaceSeparated,id:null,imageSizes:null,imageSrcSet:null,inert:p.boolean,inputMode:null,integrity:null,is:null,isMap:p.boolean,itemId:null,itemProp:p.spaceSeparated,itemRef:p.spaceSeparated,itemScope:p.boolean,itemType:p.spaceSeparated,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:p.boolean,low:p.number,manifest:null,max:null,maxLength:p.number,media:null,method:null,min:null,minLength:p.number,multiple:p.boolean,muted:p.boolean,name:null,nonce:null,noModule:p.boolean,noValidate:p.boolean,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:p.boolean,optimum:p.number,pattern:null,ping:p.spaceSeparated,placeholder:null,playsInline:p.boolean,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:p.boolean,referrerPolicy:null,rel:p.spaceSeparated,required:p.boolean,reversed:p.boolean,rows:p.number,rowSpan:p.number,sandbox:p.spaceSeparated,scope:null,scoped:p.boolean,seamless:p.boolean,selected:p.boolean,shadowRootClonable:p.boolean,shadowRootDelegatesFocus:p.boolean,shadowRootMode:null,shape:null,size:p.number,sizes:null,slot:null,span:p.number,spellCheck:p.booleanish,src:null,srcDoc:null,srcLang:null,srcSet:null,start:p.number,step:null,style:null,tabIndex:p.number,target:null,title:null,translate:null,type:null,typeMustMatch:p.boolean,useMap:null,value:p.booleanish,width:p.number,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:p.spaceSeparated,axis:null,background:null,bgColor:null,border:p.number,borderColor:null,bottomMargin:p.number,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:p.boolean,declare:p.boolean,event:null,face:null,frame:null,frameBorder:null,hSpace:p.number,leftMargin:p.number,link:null,longDesc:null,lowSrc:null,marginHeight:p.number,marginWidth:p.number,noResize:p.boolean,noHref:p.boolean,noShade:p.boolean,noWrap:p.boolean,object:null,profile:null,prompt:null,rev:null,rightMargin:p.number,rules:null,scheme:null,scrolling:p.booleanish,standby:null,summary:null,text:null,topMargin:p.number,valueType:null,version:null,vAlign:null,vLink:null,vSpace:p.number,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:p.boolean,disableRemotePlayback:p.boolean,prefix:null,property:null,results:p.number,security:null,unselectable:null}}),A=c({space:"svg",attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},transform:E,properties:{about:p.commaOrSpaceSeparated,accentHeight:p.number,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:p.number,amplitude:p.number,arabicForm:null,ascent:p.number,attributeName:null,attributeType:null,azimuth:p.number,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:p.number,by:null,calcMode:null,capHeight:p.number,className:p.spaceSeparated,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:p.number,diffuseConstant:p.number,direction:null,display:null,dur:null,divisor:p.number,dominantBaseline:null,download:p.boolean,dx:null,dy:null,edgeMode:null,editable:null,elevation:p.number,enableBackground:null,end:null,event:null,exponent:p.number,externalResourcesRequired:null,fill:null,fillOpacity:p.number,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:p.commaSeparated,g2:p.commaSeparated,glyphName:p.commaSeparated,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:p.number,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:p.number,horizOriginX:p.number,horizOriginY:p.number,id:null,ideographic:p.number,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:p.number,k:p.number,k1:p.number,k2:p.number,k3:p.number,k4:p.number,kernelMatrix:p.commaOrSpaceSeparated,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:p.number,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:p.number,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:p.number,overlineThickness:p.number,paintOrder:null,panose1:null,path:null,pathLength:p.number,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:p.spaceSeparated,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:p.number,pointsAtY:p.number,pointsAtZ:p.number,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:p.commaOrSpaceSeparated,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:p.commaOrSpaceSeparated,rev:p.commaOrSpaceSeparated,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:p.commaOrSpaceSeparated,requiredFeatures:p.commaOrSpaceSeparated,requiredFonts:p.commaOrSpaceSeparated,requiredFormats:p.commaOrSpaceSeparated,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:p.number,specularExponent:p.number,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:p.number,strikethroughThickness:p.number,string:null,stroke:null,strokeDashArray:p.commaOrSpaceSeparated,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:p.number,strokeOpacity:p.number,strokeWidth:null,style:null,surfaceScale:p.number,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:p.commaOrSpaceSeparated,tabIndex:p.number,tableValues:null,target:null,targetX:p.number,targetY:p.number,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:p.commaOrSpaceSeparated,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:p.number,underlineThickness:p.number,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:p.number,values:null,vAlphabetic:p.number,vMathematical:p.number,vectorEffect:null,vHanging:p.number,vIdeographic:p.number,version:null,vertAdvY:p.number,vertOriginX:p.number,vertOriginY:p.number,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:p.number,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),_=s([u,l,T,m,d],"html"),f=s([u,l,T,m,A],"svg")},2030:(e,t,n)=>{"use strict";n.d(t,{I:()=>l});var r=n(2738),s=n(956),a=n(8908);const o=/^data[-\w.:]+$/i,i=/-[a-z]/g,c=/[A-Z]/g;function l(e,t){const n=(0,r.S)(t);let l=t,h=a.R;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&"data"===n.slice(0,4)&&o.test(t)){if("-"===t.charAt(4)){const e=t.slice(5).replace(i,E);l="data"+e.charAt(0).toUpperCase()+e.slice(1)}else{const e=t.slice(4);if(!i.test(e)){let n=e.replace(c,u);"-"!==n.charAt(0)&&(n="-"+n),t="data"+n}}h=s.E}return new h(l,t)}function u(e){return"-"+e.toLowerCase()}function E(e){return e.charAt(1).toUpperCase()}},2738:(e,t,n)=>{"use strict";function r(e){return e.toLowerCase()}n.d(t,{S:()=>r})},956:(e,t,n)=>{"use strict";n.d(t,{E:()=>o});var r=n(8908),s=n(8767);const a=Object.keys(s);class o extends r.R{constructor(e,t,n,r){let o=-1;if(super(e,t),i(this,"space",r),"number"===typeof n)for(;++o{"use strict";n.d(t,{R:()=>r});class r{constructor(e,t){this.property=e,this.attribute=t}}r.prototype.space=null,r.prototype.boolean=!1,r.prototype.booleanish=!1,r.prototype.overloadedBoolean=!1,r.prototype.number=!1,r.prototype.commaSeparated=!1,r.prototype.spaceSeparated=!1,r.prototype.commaOrSpaceSeparated=!1,r.prototype.mustUseProperty=!1,r.prototype.defined=!1},8767:(e,t,n)=>{"use strict";n.r(t),n.d(t,{boolean:()=>s,booleanish:()=>a,commaOrSpaceSeparated:()=>u,commaSeparated:()=>l,number:()=>i,overloadedBoolean:()=>o,spaceSeparated:()=>c});let r=0;const s=E(),a=E(),o=E(),i=E(),c=E(),l=E(),u=E();function E(){return 2**++r}},9164:(e,t,n)=>{"use strict";function r(e){const t=String(e||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function s(e){return e.join(" ").trim()}n.d(t,{A:()=>s,q:()=>r})},3614:(e,t,n)=>{"use strict";n.d(t,{E:()=>a});const r=9,s=32;function a(e){const t=String(e),n=/\r?\n|\r/g;let r=n.exec(t),s=0;const a=[];for(;r;)a.push(o(t.slice(s,r.index),s>0,!0),r[0]),s=r.index+r[0].length,r=n.exec(t);return a.push(o(t.slice(s),s>0,!1)),a.join("")}function o(e,t,n){let a=0,o=e.length;if(t){let t=e.codePointAt(a);for(;t===r||t===s;)a++,t=e.codePointAt(a)}if(n){let t=e.codePointAt(o-1);for(;t===r||t===s;)o--,t=e.codePointAt(o-1)}return o>a?e.slice(a,o):""}},8964:(e,t,n)=>{"use strict";function r(){const e=[],t={run:function(...t){let n=-1;const r=t.pop();if("function"!==typeof r)throw new TypeError("Expected function as last argument, not "+r);!function s(a,...o){const i=e[++n];let c=-1;if(a)r(a);else{for(;++ct.length;let i;r&&t.push(s);try{i=e.apply(this,t)}catch(a){if(r&&n)throw a;return s(a)}r||(i&&i.then&&"function"===typeof i.then?i.then(o,s):i instanceof Error?s(i):o(i))}function s(e,...r){n||(n=!0,t(e,...r))}function o(e){s(null,e)}}(i,s)(...o):r(null,...o)}}(null,...t)},use:function(n){if("function"!==typeof n)throw new TypeError("Expected `middelware` to be a function, not "+n);return e.push(n),t}};return t}n.d(t,{S:()=>r})},7836:(e,t,n)=>{"use strict";n.d(t,{C:()=>r});const r=function(e){if(null===e||void 0===e)return a;if("function"===typeof e)return s(e);if("object"===typeof e)return Array.isArray(e)?function(e){const t=[];let n=-1;for(;++n{"use strict";n.d(t,{G1:()=>o,PW:()=>s,Y:()=>r});const r=a("end"),s=a("start");function a(e){return function(t){const n=t&&t.position&&t.position[e]||{};if("number"===typeof n.line&&n.line>0&&"number"===typeof n.column&&n.column>0)return{line:n.line,column:n.column,offset:"number"===typeof n.offset&&n.offset>-1?n.offset:void 0}}}function o(e){const t=s(e),n=r(e);if(t&&n)return{start:t,end:n}}},268:(e,t,n)=>{"use strict";function r(e){return e&&"object"===typeof e?"position"in e||"type"in e?a(e.position):"start"in e||"end"in e?a(e):"line"in e||"column"in e?s(e):"":""}function s(e){return o(e&&e.line)+":"+o(e&&e.column)}function a(e){return s(e&&e.start)+"-"+s(e&&e.end)}function o(e){return e&&"number"===typeof e?e:1}n.d(t,{L:()=>r})},8048:(e,t,n)=>{"use strict";n.d(t,{dc:()=>o,VG:()=>c});var r=n(7836);const s=[],a=!0,o=!1,i="skip";function c(e,t,n,c){let l;"function"===typeof t&&"function"!==typeof n?(c=n,n=t):l=t;const u=(0,r.C)(l),E=c?-1:1;!function e(r,l,h){const T=r&&"object"===typeof r?r:{};if("string"===typeof T.type){const e="string"===typeof T.tagName?T.tagName:"string"===typeof T.name?T.name:void 0;Object.defineProperty(p,"name",{value:"node ("+r.type+(e?"<"+e+">":"")+")"})}return p;function p(){let T,p,m,d=s;if((!t||u(r,l,h[h.length-1]||void 0))&&(d=function(e){if(Array.isArray(e))return e;if("number"===typeof e)return[a,e];return null===e||void 0===e?s:[e]}(n(r,h)),d[0]===o))return d;if("children"in r&&r.children){const t=r;if(t.children&&d[0]!==i)for(p=(c?t.children.length:-1)+E,m=h.concat(t);p>-1&&p{"use strict";n.d(t,{YR:()=>s});var r=n(8048);function s(e,t,n,s){let a,o,i;"function"===typeof t&&"function"!==typeof n?(o=void 0,i=t,a=n):(o=t,i=n,a=s),(0,r.VG)(e,o,(function(e,t){const n=t[t.length-1],r=n?n.children.indexOf(e):void 0;return i(e,r,n)}),a)}},3825:(e,t,n)=>{"use strict";n.d(t,{T:()=>E});var r=n(268);class s extends Error{constructor(e,t,n){super(),"string"===typeof t&&(n=t,t=void 0);let s="",a={},o=!1;if(t&&(a="line"in t&&"column"in t||"start"in t&&"end"in t?{place:t}:"type"in t?{ancestors:[t],place:t.position}:{...t}),"string"===typeof e?s=e:!a.cause&&e&&(o=!0,s=e.message,a.cause=e),!a.ruleId&&!a.source&&"string"===typeof n){const e=n.indexOf(":");-1===e?a.ruleId=n:(a.source=n.slice(0,e),a.ruleId=n.slice(e+1))}if(!a.place&&a.ancestors&&a.ancestors){const e=a.ancestors[a.ancestors.length-1];e&&(a.place=e.position)}const i=a.place&&"start"in a.place?a.place.start:a.place;this.ancestors=a.ancestors||void 0,this.cause=a.cause||void 0,this.column=i?i.column:void 0,this.fatal=void 0,this.file,this.message=s,this.line=i?i.line:void 0,this.name=(0,r.L)(a.place)||"1:1",this.place=a.place||void 0,this.reason=this.message,this.ruleId=a.ruleId||void 0,this.source=a.source||void 0,this.stack=o&&a.cause&&"string"===typeof a.cause.stack?a.cause.stack:"",this.actual,this.expected,this.note,this.url}}s.prototype.file="",s.prototype.name="",s.prototype.reason="",s.prototype.message="",s.prototype.stack="",s.prototype.column=void 0,s.prototype.line=void 0,s.prototype.ancestors=void 0,s.prototype.cause=void 0,s.prototype.fatal=void 0,s.prototype.place=void 0,s.prototype.ruleId=void 0,s.prototype.source=void 0;const a={basename:function(e,t){if(void 0!==t&&"string"!==typeof t)throw new TypeError('"ext" argument must be a string');o(e);let n,r=0,s=-1,a=e.length;if(void 0===t||0===t.length||t.length>e.length){for(;a--;)if(47===e.codePointAt(a)){if(n){r=a+1;break}}else s<0&&(n=!0,s=a+1);return s<0?"":e.slice(r,s)}if(t===e)return"";let i=-1,c=t.length-1;for(;a--;)if(47===e.codePointAt(a)){if(n){r=a+1;break}}else i<0&&(n=!0,i=a+1),c>-1&&(e.codePointAt(a)===t.codePointAt(c--)?c<0&&(s=a):(c=-1,s=i));r===s?s=i:s<0&&(s=e.length);return e.slice(r,s)},dirname:function(e){if(o(e),0===e.length)return".";let t,n=-1,r=e.length;for(;--r;)if(47===e.codePointAt(r)){if(t){n=r;break}}else t||(t=!0);return n<0?47===e.codePointAt(0)?"/":".":1===n&&47===e.codePointAt(0)?"//":e.slice(0,n)},extname:function(e){o(e);let t,n=e.length,r=-1,s=0,a=-1,i=0;for(;n--;){const o=e.codePointAt(n);if(47!==o)r<0&&(t=!0,r=n+1),46===o?a<0?a=n:1!==i&&(i=1):a>-1&&(i=-1);else if(t){s=n+1;break}}if(a<0||r<0||0===i||1===i&&a===r-1&&a===s+1)return"";return e.slice(a,r)},join:function(...e){let t,n=-1;for(;++n2){if(r=s.lastIndexOf("/"),r!==s.length-1){r<0?(s="",a=0):(s=s.slice(0,r),a=s.length-1-s.lastIndexOf("/")),o=c,i=0;continue}}else if(s.length>0){s="",a=0,o=c,i=0;continue}t&&(s=s.length>0?s+"/..":"..",a=2)}else s.length>0?s+="/"+e.slice(o+1,c):s=e.slice(o+1,c),a=c-o-1;o=c,i=0}else 46===n&&i>-1?i++:i=-1}return s}(e,!t);0!==n.length||t||(n=".");n.length>0&&47===e.codePointAt(e.length-1)&&(n+="/");return t?"/"+n:n}(t)},sep:"/"};function o(e){if("string"!==typeof e)throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const i={cwd:function(){return"/"}};function c(e){return Boolean(null!==e&&"object"===typeof e&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&void 0===e.auth)}function l(e){if("string"===typeof e)e=new URL(e);else if(!c(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if("file:"!==e.protocol){const e=new TypeError("The URL must be of scheme file");throw e.code="ERR_INVALID_URL_SCHEME",e}return function(e){if(""!==e.hostname){const e=new TypeError('File URL host must be "localhost" or empty on darwin');throw e.code="ERR_INVALID_FILE_URL_HOST",e}const t=e.pathname;let n=-1;for(;++n{"use strict";n.d(t,{A:()=>s});const r={}.hasOwnProperty;function s(e,t){const n=t||{};function s(t,...n){let a=s.invalid;const o=s.handlers;if(t&&r.call(t,e)){const n=String(t[e]);a=r.call(o,n)?o[n]:s.unknown}if(a)return a.call(this,t,...n)}return s.handlers=n.handlers||{},s.invalid=n.invalid,s.unknown=n.unknown,s}}}]); \ No newline at end of file diff --git a/static/js/850.00c08f62.chunk.js.LICENSE.txt b/static/js/713.7b297f52.chunk.js.LICENSE.txt similarity index 100% rename from static/js/850.00c08f62.chunk.js.LICENSE.txt rename to static/js/713.7b297f52.chunk.js.LICENSE.txt diff --git a/static/js/794.5cb5dcd7.chunk.js b/static/js/794.5cb5dcd7.chunk.js new file mode 100644 index 00000000..6a0b0460 --- /dev/null +++ b/static/js/794.5cb5dcd7.chunk.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk_web_index=self.webpackChunk_web_index||[]).push([[794],{3794:(e,n,s)=>{s.r(n),s.d(n,{default:()=>r});var d=s(1914),i=s(8413);const r=()=>(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(i.m,{children:(0,d.jsx)("title",{children:"404 - UPV - free animes no ads"})}),(0,d.jsx)("h1",{children:"404"}),(0,d.jsx)("p",{children:"Page not found"})]})}}]); \ No newline at end of file diff --git a/static/js/794.c990a0bc.chunk.js b/static/js/794.c990a0bc.chunk.js deleted file mode 100644 index 6f790c2a..00000000 --- a/static/js/794.c990a0bc.chunk.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunk_web_index=self.webpackChunk_web_index||[]).push([[794],{3794:(e,n,s)=>{s.r(n),s.d(n,{default:()=>r});var d=s(568),i=s(963);const r=()=>(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(i.m,{children:(0,d.jsx)("title",{children:"404 - UPV - free animes no ads"})}),(0,d.jsx)("h1",{children:"404"}),(0,d.jsx)("p",{children:"Page not found"})]})}}]); \ No newline at end of file diff --git a/static/js/850.00c08f62.chunk.js b/static/js/850.00c08f62.chunk.js deleted file mode 100644 index 5a853a45..00000000 --- a/static/js/850.00c08f62.chunk.js +++ /dev/null @@ -1,2 +0,0 @@ -/*! For license information please see 850.00c08f62.chunk.js.LICENSE.txt */ -(self.webpackChunk_web_index=self.webpackChunk_web_index||[]).push([[850],{3902:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(568),s=r(4676),i=r(6638),a=r.n(i);function o({title:e,icon:t,videos:r,asideTitle:i,aside:o,moreUrl:c,isLive:l}){return(0,n.jsxs)("div",{className:a()("upv-grid",{"col-2":i,"is-live":l}),children:[(0,n.jsxs)("div",{className:"upv-card-list",children:[(0,n.jsxs)("div",{className:"list-header",children:[(0,n.jsxs)("div",{children:[t&&(0,n.jsx)("img",{src:t,alt:e}),(0,n.jsx)("h2",{children:e})]}),c&&r&&r.length>0&&(0,n.jsxs)("a",{className:"list-header__more",href:c,target:"_blank",children:["more",(0,n.jsxs)("svg",{width:"10",height:"10",viewBox:"0 0 9 9",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"channel-entry-more__link--arrow",children:[(0,n.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.50588 3.40623C7.40825 3.3086 7.24996 3.3086 7.15232 3.40623L4.41244 6.14612L1.67255 3.40623C1.57491 3.3086 1.41662 3.3086 1.31899 3.40623C1.22136 3.50386 1.22136 3.66215 1.31899 3.75978L4.11781 6.5586C4.28053 6.72132 4.54434 6.72132 4.70706 6.5586L7.50588 3.75978C7.60351 3.66215 7.60351 3.50386 7.50588 3.40623Z",fill:"currentColor"}),(0,n.jsx)("path",{d:"M7.15232 3.40623L7.50588 3.75978L7.50588 3.75978L7.15232 3.40623ZM7.50588 3.40623L7.15232 3.75978L7.15233 3.75978L7.50588 3.40623ZM4.41244 6.14612L4.05888 6.49967C4.15265 6.59344 4.27983 6.64612 4.41244 6.64612C4.54504 6.64612 4.67222 6.59344 4.76599 6.49967L4.41244 6.14612ZM1.67255 3.40623L2.0261 3.05268L2.0261 3.05268L1.67255 3.40623ZM1.31899 3.40623L0.965439 3.05268L0.965439 3.05268L1.31899 3.40623ZM1.31899 3.75978L1.67255 3.40623V3.40623L1.31899 3.75978ZM4.11781 6.5586L3.76425 6.91215L4.11781 6.5586ZM4.70706 6.5586L4.35351 6.20505L4.70706 6.5586ZM7.50588 3.75978L7.15233 3.40623L7.15232 3.40623L7.50588 3.75978ZM7.50588 3.75978C7.40825 3.85742 7.24996 3.85742 7.15232 3.75978L7.85943 3.05268C7.56654 2.75978 7.09166 2.75978 6.79877 3.05268L7.50588 3.75978ZM4.76599 6.49967L7.50588 3.75978L6.79877 3.05268L4.05888 5.79257L4.76599 6.49967ZM1.31899 3.75978L4.05888 6.49967L4.76599 5.79257L2.0261 3.05268L1.31899 3.75978ZM1.67254 3.75979C1.57491 3.85742 1.41662 3.85742 1.31899 3.75979L2.0261 3.05268C1.73321 2.75978 1.25833 2.75978 0.965439 3.05268L1.67254 3.75979ZM1.67255 3.40623C1.77018 3.50386 1.77018 3.66215 1.67255 3.75978L0.965439 3.05268C0.672546 3.34557 0.672546 3.82044 0.965439 4.11334L1.67255 3.40623ZM4.47136 6.20505L1.67255 3.40623L0.965439 4.11334L3.76425 6.91215L4.47136 6.20505ZM4.35351 6.20505C4.38605 6.1725 4.43882 6.1725 4.47136 6.20505L3.76425 6.91215C4.12223 7.27013 4.70264 7.27013 5.06062 6.91215L4.35351 6.20505ZM7.15232 3.40623L4.35351 6.20505L5.06062 6.91215L7.85943 4.11334L7.15232 3.40623ZM7.15233 3.75978C7.05469 3.66215 7.05469 3.50386 7.15233 3.40623L7.85943 4.11334C8.15233 3.82045 8.15233 3.34557 7.85943 3.05268L7.15233 3.75978Z",fill:"currentColor"})]})]})]}),(0,n.jsx)("div",{className:"list-body",children:r?r.length>0?r.map(((e,t)=>l?(0,n.jsx)(s.x,Object.assign({},e),t):(0,n.jsx)(s.A,{info:e},t))):(0,n.jsx)("div",{className:"empty",children:"No Data"}):(0,n.jsx)("span",{className:"loading empty",children:"loading\xb7\xb7\xb7"})})]}),!!i&&(0,n.jsxs)("aside",{children:[(0,n.jsx)("div",{className:"aside-header",children:(0,n.jsx)("div",{className:"aside-title",children:i})}),(0,n.jsx)("div",{className:"aside-body",children:o})]})]})}},4676:(e,t,r)=>{"use strict";r.d(t,{x:()=>m,A:()=>f});var n=r(568),s=r(548),i=r(1908),a=r(5219),o=r(6638),c=r.n(o),l=r(6192);const d=6;let u;const p="loading"in HTMLImageElement.prototype;function f({info:e}){var t;const r="video"===e.Type?`/v/${e.ID}`:`/p/${e.ID}`,o=(0,s.useRef)(null);return(0,s.useEffect)((()=>{var e;if(u&&(null===(e=o.current)||void 0===e?void 0:e.dataset.cover))return u.observe(o.current),()=>{o.current&&(u.unobserve(o.current),o.current.querySelector(".upv-video-card__loading").classList.remove("upv-video-card__loading--hidden"),o.current.querySelector(".upv-video-card__error").classList.remove("upv-video-card__error--show"))}}),[o,e]),(0,n.jsxs)("div",{className:"upv-video-card",children:[(0,n.jsx)(l.N_,{href:r,children:(0,n.jsx)("div",{ref:o,"data-cover":e.Cover,title:e.Title,children:(0,n.jsxs)(i.A,{ratio:3/4,children:[e.Cover&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("img",{loading:"lazy",className:"upv-video-card__image",alt:e.Title,title:e.Title,"data-src":e.Cover,src:p?e.Cover:void 0}),!p&&[(0,n.jsx)("div",{className:"upv-video-card__loading",children:"LOADING"}),(0,n.jsx)("div",{className:"upv-video-card__error",children:"ERROR"})]]}),(0,n.jsx)("div",{className:c()("upv-video-card__nocover",{"upv-video-card__nocover--show":!e.Cover}),children:(0,n.jsx)("span",{className:c()({large:e.Title.length<=4}),children:e.Title.slice(0,d)})})]})})}),(0,n.jsxs)("div",{className:"upv-video-card__content",children:[(0,n.jsx)("div",{className:"upv-video-card__content__title",children:e.Title}),(0,n.jsxs)("div",{className:"upv-video-card__content__author",children:[(0,n.jsx)("span",{children:(null===(t=e.Creator)||void 0===t?void 0:t.Nickname)||"-"})," \xb7 ",(0,n.jsx)("span",{children:(0,a.D$)(e.CreatedAt)})]})]})]})}function m({id:e,level:t,name:r,qq:s,sign:i}){return(0,n.jsx)("a",{href:`/v/${e}?live`,children:(0,n.jsxs)("div",{className:"live-card",style:{display:"flex"},children:[(0,n.jsx)("div",{className:"live-avatar",children:(0,n.jsx)("img",{src:`https://q1.qlogo.cn/g?b=qq&nk=${s}&s=640`,alt:"name"})}),(0,n.jsxs)("div",{className:"live-info",children:[(0,n.jsxs)("span",{children:[i," ",(0,n.jsx)("sup",{children:t})]}),(0,n.jsx)("span",{children:r})]})]})})}p||(u=new IntersectionObserver((e=>{e.forEach((e=>{if(e.isIntersecting){const t=e.target;u.unobserve(t);const r=t.querySelector("img");r.src=r.dataset.src,r.onload=()=>{t.querySelector(".upv-video-card__loading").classList.add("upv-video-card__loading--hidden")},r.onerror=()=>{t.querySelector(".upv-video-card__error").classList.add("upv-video-card__error--show")}}}))}),{threshold:[.15]}))},83:(e,t,r)=>{"use strict";r.d(t,{gL:()=>s,ho:()=>a});function n(e){if(!e)return"https://ae01.alicdn.com/kf/U6751d35799cc4d06965aa7b1879e0fc6i.jpg";let t=e.match(/suo(.+?)\)/i);return t?t[1].slice(2):"https://cdn-us.imgs.moe/2023/02/27/63fcb180cbb30.jpg"}const s=e=>e?Object.assign(Object.assign({},e),{adp:!0,clicli:!0,ID:e.id,Cover:n(e.content),Title:e.title,Content:e.content,Tags:e.tag,Type:"video",CreatedAt:e.time,UpdatedAt:e.time,Meta:{TitleJapanese:"",TitleRomanji:"",Genre:e.sort,Region:"clicli",Episodes:e.content.split("\n").length,IsEnd:2,PublishDate:e.time,UpdatedDate:null},Creator:{ID:1,Name:"YUESE",Nickname:"YUESE",Avatar:"https://q1.qlogo.cn/g?b=qq&nk=7619376472&s=640",Bio:"\u8fd9\u4e2a\u4eba\u5f88\u9177\uff0c\u4ec0\u4e48\u90fd\u6ca1\u6709\u7559\u4e0b"},episodes:e.content.split("\n").map((t=>({ID:t.split("$")[0],Episode:t.split("$")[0],Cover:n(e.content),Title:t.split("$")[0],TitleJapanese:"",TitleRomanji:"",VideoUrl:"",Synopsis:"",Uid:1,Pid:e.id,CreatedAt:e.time,UpdatedAt:e.time})))}):{},i=[3421,31,786,3880,2617],a=(e=[])=>e.filter((e=>!i.includes(e.id))).map(s)},7850:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>u});var n=r(568),s=r(548),i=r(963),a=r(3902),o=r(83),c=r(9841),l=r(6192),d=r(3987);function u(){const e=(0,s.useRef)(""),[t,r]=(0,s.useState)(),[,u]=(0,l.zy)(),{page:p,k:f}=c.A.parse((0,l.SQ)()),m=e=>{const t=Object.assign({},c.A.parse(window.location.search),{page:e});u(`/search?${c.A.stringify(t)}`),root.scrollTop=0};return(0,s.useEffect)((()=>{f&&(r(null),e.current=f,d.OF.get(`https://www.clicli.cc/search/posts?key=${encodeURIComponent(f)}`).then((e=>r((0,o.ho)(e.posts||null)))).catch((e=>{r([]),console.log(e)})))}),[f,p]),(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(i.m,{children:(0,n.jsx)("title",{children:f?`${f} - \u641c\u7d22 - UPV - free animes no ads`:"\u641c\u7d22 - UPV - free animes no ads"})}),(0,n.jsxs)("div",{className:"search",children:[(0,n.jsx)("div",{className:"search-header",children:(0,n.jsx)("form",{onSubmit:t=>{t.preventDefault();const r=Object.assign({},c.A.parse(window.location.search),{k:e.current,page:1});u(`/search?${c.A.stringify(r)}`)},children:(0,n.jsxs)("div",{className:"search-wrap",children:[(0,n.jsx)("div",{className:"search-action",children:(0,n.jsx)("div",{className:"control",children:(0,n.jsx)("input",{id:"search-input",className:"input",maxLength:100,autoComplete:"off",defaultValue:f,onChange:t=>e.current=t.target.value,type:"text",placeholder:"Type to search"})})}),(0,n.jsx)("button",{className:"button is-primary",children:"search"})]})})}),(0,n.jsxs)("div",{className:"search-body",children:[(0,n.jsx)(a.A,{title:"Result",videos:t}),(0,n.jsxs)("div",{className:"paginate-container field has-addons",style:{justifyContent:"center",paddingBottom:"28px"},children:[(0,n.jsx)("p",{className:"control",children:(0,n.jsx)("button",{className:"button",onClick:()=>m(+p-1),disabled:+p<=1,children:(0,n.jsx)("span",{children:"Newer"})})}),(0,n.jsx)("p",{className:"control",children:(0,n.jsx)("button",{className:"button is-outlined",disabled:!t||t&&((null===t||void 0===t?void 0:t.length)<1||(null===t||void 0===t?void 0:t.length)<12),onClick:()=>m(+p+1),children:(0,n.jsx)("span",{className:"is-primary",children:"Older"})})})]})]})]})]})}},1908:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var n=r(568);const s=e=>{const{children:t,ratio:r,mw:s}=e;return(0,n.jsx)("div",{className:"aspect-ratio",style:{width:"string"===typeof s?s:`${s}px`},children:(0,n.jsx)("div",{className:"aspect-ratio__fill",style:{paddingTop:1/r*100+"%"},children:t})})}},5219:(e,t,r)=>{"use strict";function n(e){const t=new Date,r=new Date(e),n=(t.getTime()-r.getTime())/1e3;return n<30?"\u521a\u521a":n<3600?Math.ceil(n/60)+"\u5206\u949f\u524d":n<86400?Math.ceil(n/3600)+"\u5c0f\u65f6\u524d":n<172800?"1\u5929\u524d":n<2678400?Math.ceil(n/3600/24)+"\u5929\u524d":t.getFullYear()===r.getFullYear()?`${r.getMonth()+1}\u6708${r.getDate()}\u65e5`:`${r.getFullYear()}\u5e74${r.getMonth()+1}\u6708${r.getDate()}\u65e5`}function s(e,t=!1){const r=new Date(e);return(new Date).getFullYear()===r.getFullYear()?`${r.getMonth()+1}\u6708${r.getDate()}\u65e5 ${t?` ${r.getHours()}:${r.getMinutes().toString().padStart(2,"0")}`:""}`:`${r.getFullYear()}\u5e74${r.getMonth()+1}\u6708${r.getDate()}\u65e5 ${t?` ${r.getHours()}:${r.getMinutes().toString().padStart(2,"0")}`:""}`}r.d(t,{D$:()=>n,Yq:()=>s})},6638:(e,t)=>{var r;!function(){"use strict";var n={}.hasOwnProperty;function s(){for(var e="",t=0;t{"use strict";r.d(t,{A:()=>k});var n={};r.r(n),r.d(n,{exclude:()=>$,extract:()=>b,parse:()=>L,parseUrl:()=>C,pick:()=>_,stringify:()=>N,stringifyUrl:()=>w});const s="%[a-f0-9]{2}",i=new RegExp("("+s+")|([^%]+?)","gi"),a=new RegExp("("+s+")+","gi");function o(e,t){try{return[decodeURIComponent(e.join(""))]}catch{}if(1===e.length)return e;t=t||1;const r=e.slice(0,t),n=e.slice(t);return Array.prototype.concat.call([],o(r),o(n))}function c(e){try{return decodeURIComponent(e)}catch{let t=e.match(i)||[];for(let r=1;rnull===e||void 0===e,f=e=>encodeURIComponent(e).replaceAll(/[!'()*]/g,(e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`)),m=Symbol("encodeFragmentIdentifier");function h(e){if("string"!==typeof e||1!==e.length)throw new TypeError("arrayFormatSeparator must be single character string")}function v(e,t){return t.encode?t.strict?f(e):encodeURIComponent(e):e}function g(e,t){return t.decode?l(e):e}function y(e){return Array.isArray(e)?e.sort():"object"===typeof e?y(Object.keys(e)).sort(((e,t)=>Number(e)-Number(t))).map((t=>e[t])):e}function j(e){const t=e.indexOf("#");return-1!==t&&(e=e.slice(0,t)),e}function x(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 b(e){const t=(e=j(e)).indexOf("?");return-1===t?"":e.slice(t+1)}function L(e,t){h((t={decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1,...t}).arrayFormatSeparator);const r=function(e){let t;switch(e.arrayFormat){case"index":return(e,r,n)=>{t=/\[(\d*)]$/.exec(e),e=e.replace(/\[\d*]$/,""),t?(void 0===n[e]&&(n[e]={}),n[e][t[1]]=r):n[e]=r};case"bracket":return(e,r,n)=>{t=/(\[])$/.exec(e),e=e.replace(/\[]$/,""),t?void 0!==n[e]?n[e]=[...n[e],r]:n[e]=[r]:n[e]=r};case"colon-list-separator":return(e,r,n)=>{t=/(:list)$/.exec(e),e=e.replace(/:list$/,""),t?void 0!==n[e]?n[e]=[...n[e],r]:n[e]=[r]:n[e]=r};case"comma":case"separator":return(t,r,n)=>{const s="string"===typeof r&&r.includes(e.arrayFormatSeparator),i="string"===typeof r&&!s&&g(r,e).includes(e.arrayFormatSeparator);r=i?g(r,e):r;const a=s||i?r.split(e.arrayFormatSeparator).map((t=>g(t,e))):null===r?r:g(r,e);n[t]=a};case"bracket-separator":return(t,r,n)=>{const s=/(\[])$/.test(t);if(t=t.replace(/\[]$/,""),!s)return void(n[t]=r?g(r,e):r);const i=null===r?[]:r.split(e.arrayFormatSeparator).map((t=>g(t,e)));void 0!==n[t]?n[t]=[...n[t],...i]:n[t]=i};default:return(e,t,r)=>{void 0!==r[e]?r[e]=[...[r[e]].flat(),t]:r[e]=t}}}(t),n=Object.create(null);if("string"!==typeof e)return n;if(!(e=e.trim().replace(/^[?#&]/,"")))return n;for(const s of e.split("&")){if(""===s)continue;const e=t.decode?s.replaceAll("+"," "):s;let[i,a]=d(e,"=");void 0===i&&(i=e),a=void 0===a?null:["comma","separator","bracket-separator"].includes(t.arrayFormat)?a:g(a,t),r(g(i,t),a,n)}for(const[s,i]of Object.entries(n))if("object"===typeof i&&null!==i)for(const[e,r]of Object.entries(i))i[e]=x(r,t);else n[s]=x(i,t);return!1===t.sort?n:(!0===t.sort?Object.keys(n).sort():Object.keys(n).sort(t.sort)).reduce(((e,t)=>{const r=n[t];return e[t]=Boolean(r)&&"object"===typeof r&&!Array.isArray(r)?y(r):r,e}),Object.create(null))}function N(e,t){if(!e)return"";h((t={encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:",",...t}).arrayFormatSeparator);const r=r=>t.skipNull&&p(e[r])||t.skipEmptyString&&""===e[r],n=function(e){switch(e.arrayFormat){case"index":return t=>(r,n)=>{const s=r.length;return void 0===n||e.skipNull&&null===n||e.skipEmptyString&&""===n?r:null===n?[...r,[v(t,e),"[",s,"]"].join("")]:[...r,[v(t,e),"[",v(s,e),"]=",v(n,e)].join("")]};case"bracket":return t=>(r,n)=>void 0===n||e.skipNull&&null===n||e.skipEmptyString&&""===n?r:null===n?[...r,[v(t,e),"[]"].join("")]:[...r,[v(t,e),"[]=",v(n,e)].join("")];case"colon-list-separator":return t=>(r,n)=>void 0===n||e.skipNull&&null===n||e.skipEmptyString&&""===n?r:null===n?[...r,[v(t,e),":list="].join("")]:[...r,[v(t,e),":list=",v(n,e)].join("")];case"comma":case"separator":case"bracket-separator":{const t="bracket-separator"===e.arrayFormat?"[]=":"=";return r=>(n,s)=>void 0===s||e.skipNull&&null===s||e.skipEmptyString&&""===s?n:(s=null===s?"":s,0===n.length?[[v(r,e),t,v(s,e)].join("")]:[[n,v(s,e)].join(e.arrayFormatSeparator)])}default:return t=>(r,n)=>void 0===n||e.skipNull&&null===n||e.skipEmptyString&&""===n?r:null===n?[...r,v(t,e)]:[...r,[v(t,e),"=",v(n,e)].join("")]}}(t),s={};for(const[a,o]of Object.entries(e))r(a)||(s[a]=o);const i=Object.keys(s);return!1!==t.sort&&i.sort(t.sort),i.map((r=>{const s=e[r];return void 0===s?"":null===s?v(r,t):Array.isArray(s)?0===s.length&&"bracket-separator"===t.arrayFormat?v(r,t)+"[]":s.reduce(n(r),[]).join("&"):v(r,t)+"="+v(s,t)})).filter((e=>e.length>0)).join("&")}function C(e,t){t={decode:!0,...t};let[r,n]=d(e,"#");return void 0===r&&(r=e),{url:r?.split("?")?.[0]??"",query:L(b(e),t),...t&&t.parseFragmentIdentifier&&n?{fragmentIdentifier:g(n,t)}:{}}}function w(e,t){t={encode:!0,strict:!0,[m]:!0,...t};const r=j(e.url).split("?")[0]||"";let n=N({...L(b(e.url),{sort:!1}),...e.query},t);n&&=`?${n}`;let s=function(e){let t="";const r=e.indexOf("#");return-1!==r&&(t=e.slice(r)),t}(e.url);if("string"===typeof e.fragmentIdentifier){const n=new URL(r);n.hash=e.fragmentIdentifier,s=t[m]?n.hash:`#${e.fragmentIdentifier}`}return`${r}${n}${s}`}function _(e,t,r){r={parseFragmentIdentifier:!0,[m]:!1,...r};const{url:n,query:s,fragmentIdentifier:i}=C(e,r);return w({url:n,query:u(s,t),fragmentIdentifier:i},r)}function $(e,t,r){return _(e,Array.isArray(t)?e=>!t.includes(e):(e,r)=>!t(e,r),r)}const k=n}}]); \ No newline at end of file diff --git a/static/js/86.ee8ce94b.chunk.js b/static/js/86.ee8ce94b.chunk.js new file mode 100644 index 00000000..f2a16921 --- /dev/null +++ b/static/js/86.ee8ce94b.chunk.js @@ -0,0 +1 @@ +(self.webpackChunk_web_index=self.webpackChunk_web_index||[]).push([[86],{83:(e,t,l)=>{"use strict";l.d(t,{gL:()=>s,ho:()=>n});function a(e){if(!e)return"https://ae01.alicdn.com/kf/U6751d35799cc4d06965aa7b1879e0fc6i.jpg";let t=e.match(/suo(.+?)\)/i);return t?t[1].slice(2):"https://cdn-us.imgs.moe/2023/02/27/63fcb180cbb30.jpg"}const s=e=>e?Object.assign(Object.assign({},e),{adp:!0,clicli:!0,ID:e.id,Cover:a(e.content),Title:e.title,Content:e.content,Tags:e.tag,Type:"video",CreatedAt:e.time,UpdatedAt:e.time,Meta:{TitleJapanese:"",TitleRomanji:"",Genre:e.sort,Region:"clicli",Episodes:e.content.split("\n").length,IsEnd:2,PublishDate:e.time,UpdatedDate:null},Creator:{ID:1,Name:"YUESE",Nickname:"YUESE",Avatar:"https://q1.qlogo.cn/g?b=qq&nk=7619376472&s=640",Bio:"\u8fd9\u4e2a\u4eba\u5f88\u9177\uff0c\u4ec0\u4e48\u90fd\u6ca1\u6709\u7559\u4e0b"},episodes:e.content.split("\n").map((t=>({ID:t.split("$")[0],Episode:t.split("$")[0],Cover:a(e.content),Title:t.split("$")[0],TitleJapanese:"",TitleRomanji:"",VideoUrl:"",Synopsis:"",Uid:1,Pid:e.id,CreatedAt:e.time,UpdatedAt:e.time})))}):{},i=[3421,31,786,3880,2617,4087],n=(e=[])=>e.filter((e=>!i.includes(e.id))).map(s)},829:(e,t,l)=>{"use strict";l.r(t),l.d(t,{default:()=>Z});var a=l(1914),s=l(1394),i=l(5219),n=l(7789),c=l(2236),o=l(8159),r=l(1604),d=l(5469),h=function(e,t){var l={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(l[a]=e[a]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var s=0;for(a=Object.getOwnPropertySymbols(e);s{var{playerIsPlaying:l,duration:i,onEvent:p,autoplay:v}=e,m=h(e,["playerIsPlaying","duration","onEvent","autoplay"]);const u=(0,s.useRef)(null);(0,s.useImperativeHandle)(t,(()=>u.current));const g=(0,s.useMemo)((()=>[(0,r.A)({speeds:[],pictureInPicture:!0,keyboard:{global:!0},forceLandscapeOnFullscreen:!0,subtitle:{background:!0,shadow:"none"},theme:{controller:{header:{},slideToSeek:"always",displayBehavior:"delay"},progress:{position:n.un?"top":"auto"}},settings:[{icon:'',name:"Power By OPlayer",type:"switcher",onChange(){window.open("https://github.com/shiyiya/oplayer")}}],icons:{loadingIndicator:'\n \n \n ',next:'',play:" ",volume:['',''],fullscreen:['',''],pip:['',''],setting:'',screenshot:'',playbackRate:'',loop:'',chromecast:''},menu:[{name:localStorage.getItem("speed")?localStorage.getItem("speed")+"x":"\u500d\u901f",children:["2.0","1.5","1.25","1.0","0.75","0.5"].map((e=>({name:e+"x",value:e,default:(localStorage.getItem("speed")||"1.0")==e}))),onChange({name:e,value:t},l,a){l.innerText=e,a.setPlaybackRate(+t),localStorage.setItem("speed",t)}}]}),(0,c.A)({forceHLS:!0}),new d.NN({sources:[]}),new d.gv]),[]);return(0,a.jsx)(o.Ay,Object.assign({ref:u},m,{plugins:g,onEvent:p,autoplay:v,duration:i,playing:l,volume:localStorage.getItem("volume")?+localStorage.getItem("volume"):1,playbackRate:localStorage.getItem("speed")?+localStorage.getItem("speed"):1}))}));var v=l(3987),m=l(4332),u=l(6796),g=l.n(u),f=l(8413);const j="@player/";var x=l(6862),w=l(1645),C=l(6848),b=l(9163),y=l(5607);function N({post:e,show:t,onChange:l}){const{Title:s,Content:i,IsOriginal:n,Tags:c}=e,{Region:o,Genre:r,IsEnd:d,UpdatedDate:h,PublishDate:p}=e.Meta||{};return(0,a.jsxs)("div",{className:g()("PlayerInfo modal",{"is-active":t}),children:[(0,a.jsx)("div",{className:"modal-background",onClick:()=>l(!1)}),(0,a.jsxs)("div",{className:"modal-card",children:[(0,a.jsx)("button",{className:"delete","aria-label":"close",onClick:()=>l(!1)}),(0,a.jsxs)("section",{className:"modal-card-body",children:[(0,a.jsxs)("div",{className:"post-head",children:[(0,a.jsx)("div",{children:(0,a.jsx)(b.A,{ratio:3/4,mw:"200px",children:(0,a.jsx)("img",{src:e.Cover,alt:e.Title})})}),(0,a.jsxs)("div",{className:"post-info",children:[(0,a.jsx)("h3",{className:"title",children:s}),(0,a.jsxs)("div",{className:"post-info-item is-h",children:[(0,a.jsxs)("div",{className:"post-info-item",children:[(0,a.jsx)("label",{className:"name",children:"\u5730\u533a"}),(0,a.jsx)("div",{className:"body",children:o||"-"})]}),(0,a.jsxs)("div",{className:"post-info-item",children:[(0,a.jsx)("label",{className:"name",children:"\u7c7b\u578b"}),(0,a.jsx)("div",{className:"body",children:r})]})]}),(0,a.jsxs)("div",{className:"post-info-item is-h",children:[(0,a.jsxs)("div",{className:"post-info-item",children:[(0,a.jsx)("label",{className:"name",children:"\u5e74\u4efd"}),(0,a.jsx)("div",{className:"body",children:p&&new Date(p).getFullYear()+" \u5e74"||"-"})]}),(0,a.jsxs)("div",{className:"post-info-item",children:[(0,a.jsx)("label",{className:"name",children:"\u5b8c\u7ed3"}),(0,a.jsx)("div",{className:"body",children:2==d?"\u662f":"\u5426"})]})]}),(0,a.jsxs)("div",{className:"post-info-item",children:[(0,a.jsx)("label",{className:"name",children:"\u66f4\u65b0"}),(0,a.jsx)("div",{className:"body",children:h&&`\u6bcf${v.h8[new Date(h).getDay()]} ${new Date(h).getHours()} \u70b9\u66f4\u65b0`||"-"})]}),(0,a.jsxs)("div",{className:"post-info-item tags",children:[2==n&&(0,a.jsx)("div",{className:"body tag is-primary is-light",children:"\u539f\u521b"}),c&&c.split(" ").map((e=>(0,a.jsx)("div",{className:"body tag is-primary is-light",children:e},e)))]})]})]}),(0,a.jsx)(y.o,{type:"render",value:(null===i||void 0===i?void 0:i.replace(/\!\[suo\](.+)/,"").replace(/\u64ad\u653e\u51fa\u9519.+\n/,"").replace(/\u64ad\u653e\u5931\u6548.+\n/,"").replace(/\u6709\u95ee\u9898.+\n/,"").replace(/clicli.*\n/,"").replace(/CliCli.*\d+/,""))||"#### \u6682\u65e0\u8be6\u60c5"})]})]})]})}var k,M=l(83);function z(){return z=Object.assign?Object.assign.bind():function(e){for(var t=1;t{let{title:l,titleId:a,...i}=e;return s.createElement("svg",z({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 576 512",ref:t,"aria-labelledby":a},i),l?s.createElement("title",{id:a},l):null,k||(k=s.createElement("path",{d:"M279.6 160.4C282.4 160.1 285.2 160 288 160C341 160 384 202.1 384 256C384 309 341 352 288 352C234.1 352 192 309 192 256C192 253.2 192.1 250.4 192.4 247.6C201.7 252.1 212.5 256 224 256C259.3 256 288 227.3 288 192C288 180.5 284.1 169.7 279.6 160.4zM480.6 112.6C527.4 156 558.7 207.1 573.5 243.7C576.8 251.6 576.8 260.4 573.5 268.3C558.7 304 527.4 355.1 480.6 399.4C433.5 443.2 368.8 480 288 480C207.2 480 142.5 443.2 95.42 399.4C48.62 355.1 17.34 304 2.461 268.3C-.8205 260.4-.8205 251.6 2.461 243.7C17.34 207.1 48.62 156 95.42 112.6C142.5 68.84 207.2 32 288 32C368.8 32 433.5 68.84 480.6 112.6V112.6zM288 112C208.5 112 144 176.5 144 256C144 335.5 208.5 400 288 400C367.5 400 432 335.5 432 256C432 176.5 367.5 112 288 112z"})))},E=(0,s.forwardRef)(O);l.p;var A;function S(){return S=Object.assign?Object.assign.bind():function(e){for(var t=1;t{let{title:l,titleId:a,...i}=e;return s.createElement("svg",S({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",ref:t,"aria-labelledby":a},i),l?s.createElement("title",{id:a},l):null,A||(A=s.createElement("path",{d:"M0 190.9V185.1C0 115.2 50.52 55.58 119.4 44.1C164.1 36.51 211.4 51.37 244 84.02L256 96L267.1 84.02C300.6 51.37 347 36.51 392.6 44.1C461.5 55.58 512 115.2 512 185.1V190.9C512 232.4 494.8 272.1 464.4 300.4L283.7 469.1C276.2 476.1 266.3 480 256 480C245.7 480 235.8 476.1 228.3 469.1L47.59 300.4C17.23 272.1 .0003 232.4 .0003 190.9L0 190.9z"})))},I=(0,s.forwardRef)(L);l.p;var T;function V(){return V=Object.assign?Object.assign.bind():function(e){for(var t=1;t{let{title:l,titleId:a,...i}=e;return s.createElement("svg",V({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",ref:t,"aria-labelledby":a},i),l?s.createElement("title",{id:a},l):null,T||(T=s.createElement("path",{d:"M256 0C114.6 0 0 114.6 0 256s114.6 256 256 256s256-114.6 256-256S397.4 0 256 0zM256 128c17.67 0 32 14.33 32 32c0 17.67-14.33 32-32 32S224 177.7 224 160C224 142.3 238.3 128 256 128zM296 384h-80C202.8 384 192 373.3 192 360s10.75-24 24-24h16v-64H224c-13.25 0-24-10.75-24-24S210.8 224 224 224h32c13.25 0 24 10.75 24 24v88h16c13.25 0 24 10.75 24 24S309.3 384 296 384z"})))},_=(0,s.forwardRef)(B);l.p;var P;function $(){return $=Object.assign?Object.assign.bind():function(e){for(var t=1;t{let{title:l,titleId:a,...i}=e;return s.createElement("svg",$({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",ref:t,"aria-labelledby":a},i),l?s.createElement("title",{id:a},l):null,P||(P=s.createElement("path",{d:"M511.1 63.1v287.1c0 35.25-28.75 63.1-64 63.1h-144l-124.9 93.68c-7.875 5.75-19.12 .0497-19.12-9.7v-83.98h-96c-35.25 0-64-28.75-64-63.1V63.1c0-35.25 28.75-63.1 64-63.1h384C483.2 0 511.1 28.75 511.1 63.1z"})))},D=(0,s.forwardRef)(H);l.p;var U;function R(){return R=Object.assign?Object.assign.bind():function(e){for(var t=1;t{let{title:l,titleId:a,...i}=e;return s.createElement("svg",R({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 576 512",ref:t,"aria-labelledby":a},i),l?s.createElement("title",{id:a},l):null,U||(U=s.createElement("path",{d:"M381.2 150.3L524.9 171.5C536.8 173.2 546.8 181.6 550.6 193.1C554.4 204.7 551.3 217.3 542.7 225.9L438.5 328.1L463.1 474.7C465.1 486.7 460.2 498.9 450.2 506C440.3 513.1 427.2 514 416.5 508.3L288.1 439.8L159.8 508.3C149 514 135.9 513.1 126 506C116.1 498.9 111.1 486.7 113.2 474.7L137.8 328.1L33.58 225.9C24.97 217.3 21.91 204.7 25.69 193.1C29.46 181.6 39.43 173.2 51.42 171.5L195 150.3L259.4 17.97C264.7 6.954 275.9-.0391 288.1-.0391C300.4-.0391 311.6 6.954 316.9 17.97L381.2 150.3z"})))},F=(0,s.forwardRef)(Y);l.p;function Z({id:e}){var t,c;const[o,r]=(0,s.useState)(!1),[d,h]=(0,s.useState)(!1),[u,b]=(0,s.useState)(!1),[y,k,z]=function(e){const t=(0,s.useMemo)((()=>{const t=new URLSearchParams(window.location.search),l={id:e,duration:0,episode:t.has("v")?+t.get("v")-1:0,time:0};return t.has("v")?l:JSON.parse(localStorage.getItem(j+e)||"null")||l}),[]),[l,a]=(0,s.useState)(t.episode),i=(0,s.useCallback)((t=>{localStorage.setItem(j+e,JSON.stringify(t))}),[]),n=(0,s.useCallback)(((e,t,s)=>{const n=t==l;i({id:e,episode:t,duration:s,time:Date.now()}),n||a(t)}),[l]);return[l,t.duration,n]}(e),[O,A]=(0,s.useState)({}),[S,L]=(0,s.useState)([]),T=(0,s.useRef)(null),[V,B]=(0,s.useState)(!1),[P,$]=(0,s.useState)({poster:"https://api.imlazy.ink/img",title:"LOADING ..."}),[H,U]=(0,s.useState)(!1);(0,s.useEffect)((()=>{l(7714)(`./${e}.json`).catch((()=>{throw B(!0),new Error("")})).then((t=>{if(t.data&&"video"===t.data.Type){if(!t.err){if(t.data&&A(t.data),2==t.data.IsLiked&&h(!0),2==t.data.IsCollected&&b(!0),t.data.videos)return void L(t.data.videos);l(7841)(`./${e}.json`).then((t=>{var l;t.data&&(t.data.sort(((e,t)=>e.Episode-t.Episode)),L(t.data),null===(l=T.current)||void 0===l||l.context.playlist.changeSourceList(t.data.map((e=>Object.assign(Object.assign({},e),{title:e.Title,src:e.VideoUrl})))),t.data.length<=y&&z(e,0,0))}))}}else m.Ay.error("\u89c6\u9891\u4e0d\u89c1\u4e86",{duration:9e4})}))}),[]),(0,s.useEffect)((()=>{var e;S.length&&(null===(e=T.current)||void 0===e||e.context.playlist.changeSource(y))}),[y,S]),(0,s.useEffect)((()=>{var t,l;document.location.search.includes("live")?L([{Episode:1,Title:"live",VideoUrl:`https://www.tm0.net/live/uu${e}.m3u8?hls_ctx=85097108`}]):V&&(null===(l=null===(t=T.current)||void 0===t?void 0:t.context.ui)||void 0===l||l.menu.unregister("Source"),v.OF.get(`https://www.clicli.cc/post/${e}`).then((e=>(0,M.gL)(e.result))).then((e=>{var t;A(e);const l=e.videos.split("\n").filter(Boolean).map(((e,t)=>{const[l,a]=e.split("$"),[s,i]=l.split(" ");return{Episode:i?s:t,Title:i||s,VideoUrl:a,title:i||s,src:a}}));L(l),null===(t=T.current)||void 0===t||t.context.playlist.changeSourceList(l)})))}),[V]),(0,s.useEffect)((()=>{var e;n.Fr||null===(e=T.current)||void 0===e||e.context.ui.menu.register({name:"Toggle Ep-Bar",position:"top",icon:'',onClick(e){U((t=>(e.style.opacity=t?"0.4":"1",!t)))}})}),[]);const R=(0,s.useCallback)((()=>{const t=d?-1:1,l=O.LikesCount||0;h((e=>!e)),A((e=>Object.assign(Object.assign({},e),{LikesCount:l+t}))),(d?v.pY.delete(`/like/post/${e}`):v.pY.post(`/like/post/${e}`)).then((e=>{e.err?(h((e=>!e)),A((e=>Object.assign(Object.assign({},e),{LikesCount:e.LikesCount-t})))):d?m.Ay.error("\u4f60\u6240\u70ed\u7231\u7684\uff0c\u5c31\u662f\u4f60\u7684\u751f\u6d3b\u3002\r\n \t\t\t\t--------?"):m.Ay.success("nice!")})).catch((()=>{setTimeout((()=>{h((e=>!e)),A((e=>Object.assign(Object.assign({},e),{LikesCount:e.LikesCount-t})))}),300)}))}),[O,d]),Y=(0,s.useCallback)((()=>{const t=u?-1:1;b((e=>!e)),A((e=>Object.assign(Object.assign({},e),{CollectionCount:e.CollectionCount+t}))),(u?v.pY.delete(`/collect/post/${e}`):v.pY.post(`/collect/post/${e}`)).then((e=>{e.err?(b((e=>!e)),A((e=>Object.assign(Object.assign({},e),{CollectionCount:e.CollectionCount-t})))):u||m.Ay.success("nice!")})).catch((()=>{setTimeout((()=>{b((e=>!e)),A((e=>Object.assign(Object.assign({},e),{CollectionCount:e.CollectionCount-1})))}),300)}))}),[O,u]),{Title:Z,Creator:q,Tags:G,IsOriginal:J,Hits:K,CommentCount:Q,LikesCount:W,CollectionCount:X,Content:ee,Meta:te,Cover:le}=O;return(0,a.jsxs)("div",{className:g()("player",{"no-side":!H}),children:[(0,a.jsxs)(f.m,{children:[(0,a.jsx)("title",{children:`${Z||""} - UPV - free animes no ads`}),(0,a.jsx)("meta",{name:"description",content:null===ee||void 0===ee?void 0:ee.substring(0,200)}),(0,a.jsx)("meta",{name:"keywords",content:`${Z},${null===te||void 0===te?void 0:te.Genre},${null===G||void 0===G?void 0:G.split(" ")}`}),(0,a.jsx)("meta",{name:"author",content:null===q||void 0===q?void 0:q.Nickname}),(0,a.jsx)("meta",{property:"og:title",content:`${Z} - UPV - free animes no ads`}),(0,a.jsx)("meta",{property:"og:type",content:"video"}),(0,a.jsx)("meta",{property:"og:image",content:le}),(0,a.jsx)("meta",{property:"og:url",content:location.origin+location.pathname})]}),(0,a.jsxs)("div",{className:"player-header",children:[(0,a.jsx)("div",{className:"player-header__player",children:(0,a.jsx)(p,{ref:T,autoplay:!0,source:P,onEvent:({type:t,payload:l})=>{var a;const s=null===(a=null===l||void 0===l?void 0:l.target)||void 0===a?void 0:a.currentTime;"timeupdate"==t?s<1||z(e,y,1e3*s):"ended"==t?z(e,y+1,0):"next"==t?S[y+1]?z(e,y+1,0):T.current.emit("notice",{text:"No next ep"}):"playlistsourcechange"==t&&y!=l.id&&z(e,l.id,0)},duration:k,isLive:"iptv"==e||document.location.search.includes("live")})}),(0,a.jsx)("div",{className:"player-header__r",children:(0,a.jsxs)("div",{className:"eplist_module",children:[(0,a.jsxs)("div",{className:"list-title",children:[(0,a.jsx)("h4",{children:"\u64ad\u653e\u5217\u8868"}),(0,a.jsxs)("span",{className:"ep-list-progress",children:[S.length>0?y+1:0,"/",S.length]})]}),(0,a.jsx)("div",{className:"list-wrapper",children:S.length>0?(0,a.jsx)("ul",{children:S.map(((t,l)=>(0,a.jsx)("a",{children:(0,a.jsx)("li",Object.assign({className:g()("list-item has-tooltip-bottom",{cursor:l===y}),onClick:()=>z(e,l,0),title:t.Title},t.Title&&{"data-tooltip":t.Title},{children:(0,a.jsxs)("span",{children:[" ",t.Episode||l+1]})}))},l)))}):(0,a.jsx)("span",{className:"empty",children:"\u6682\u65e0\u89c6\u9891"})})]})})]}),(0,a.jsxs)("div",{className:"video-actions",children:[(0,a.jsxs)("div",{className:"icon-text",children:[(0,a.jsx)("span",{className:"icon",children:(0,a.jsx)(E,{})}),(0,a.jsx)("span",{className:"text",children:K||"-"})]}),(0,a.jsxs)("div",{className:"icon-text",children:[(0,a.jsx)("span",{className:"icon",children:(0,a.jsx)(D,{})}),(0,a.jsx)("span",{className:"text",children:Q||"-"})]}),(0,a.jsxs)("div",{className:g()("icon-text",{"--active":d}),onClick:R,children:[(0,a.jsx)("span",{className:"icon",children:(0,a.jsx)(I,{})}),(0,a.jsx)("span",{className:"text",children:W||"-"})]}),(0,a.jsxs)("div",{className:g()("icon-text",{"--active":u}),onClick:Y,children:[(0,a.jsx)("span",{className:"icon",children:(0,a.jsx)(F,{})}),(0,a.jsx)("span",{className:"text",children:X||"-"})]})]}),O.ID?(0,a.jsxs)("div",{className:"video-info-wrapper",children:[(0,a.jsxs)("div",{className:"video-info",children:[(0,a.jsx)("img",{className:"video-info__avatar",src:(null===(t=O.Creator)||void 0===t?void 0:t.Avatar)||"https://uplife/ic_launcher_round.png",alt:null===(c=O.Creator)||void 0===c?void 0:c.Nickname}),(0,a.jsxs)("div",{children:[(0,a.jsxs)("h3",{className:"video-info__title",onClick:()=>r(!0),children:[O.Title||"-",(0,a.jsx)("span",{className:"icon has-text-info",children:(0,a.jsx)(_,{})})]}),(0,a.jsxs)("div",{className:"video-meta",children:[(0,a.jsx)("span",{children:(null===q||void 0===q?void 0:q.Nickname)||"-"}),(0,a.jsxs)("svg",{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"6827",width:"200",height:"200",children:[(0,a.jsx)("defs",{}),(0,a.jsx)("path",{d:"M167.024 512a344.976 344.976 0 1 1 689.952 0 344.976 344.976 0 0 1-690 0zM512 106.976a405.024 405.024 0 1 0 0 810.048 405.024 405.024 0 0 0 0-810z m30 235.008a30 30 0 1 0-60 0V512c0 7.968 3.168 15.6 8.784 21.216l120 120a30 30 0 1 0 42.432-42.432L542 499.52V341.984z",fill:"#9499A0","p-id":"6828"})]}),(0,a.jsx)("span",{children:O.CreatedAt?(0,i.D$)(O.CreatedAt):"-"})]})]})]}),(0,a.jsx)(C.Y,{tags:G?G.trim().split(" ").map((e=>({title:e,href:`/pv/tag?type=video&title=${e}&tag=${e}`}))).concat(2==J?{title:"\u539f\u521b",href:"/pv/tag?type=video&is_original=2&title=\u539f\u521b"}:[]):[]})]}):(0,a.jsx)(w.M4,{className:"video-info__skeleton",height:"200px"}),(0,a.jsx)(x.A,{id:e}),(0,a.jsx)(N,{post:O,show:o,onChange:r})]})}},9163:(e,t,l)=>{"use strict";l.d(t,{A:()=>s});var a=l(1914);const s=e=>{const{children:t,ratio:l,mw:s}=e;return(0,a.jsx)("div",{className:"aspect-ratio",style:{width:"string"===typeof s?s:`${s}px`},children:(0,a.jsx)("div",{className:"aspect-ratio__fill",style:{paddingTop:1/l*100+"%"},children:t})})}},7714:(e,t,l)=>{var a={"./0.json":[265,265],"./1.json":[5806,806],"./10.json":[8450,450],"./131478f2-31cd-446a-9cb2-15158b8c3efe.json":[3815,815],"./2.json":[5919,919],"./3.json":[9852,852],"./4.json":[9741,741],"./7.json":[512,512],"./77745a95-b5db-4c0b-ad08-0a55a6e70f49.json":[5320,320],"./9.json":[6854,854],"./a7a1345e-1bc8-4793-9650-a0ee89b6d74b.json":[9528,528],"./b2cf7c39-3f62-45c0-bbe1-a9522ff24cb7.json":[274,274]};function s(e){if(!l.o(a,e))return Promise.resolve().then((()=>{var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}));var t=a[e],s=t[0];return l.e(t[1]).then((()=>l.t(s,19)))}s.keys=()=>Object.keys(a),s.id=7714,e.exports=s},7841:(e,t,l)=>{var a={"./0.json":[9196,196],"./1.json":[2735,735],"./10.json":[9081,81],"./131478f2-31cd-446a-9cb2-15158b8c3efe.json":[5808,808],"./2.json":[8846,846],"./3.json":[5209,209],"./4.json":[4656,656],"./7.json":[9085,85],"./77745a95-b5db-4c0b-ad08-0a55a6e70f49.json":[9535,535],"./9.json":[4615,615],"./b2cf7c39-3f62-45c0-bbe1-a9522ff24cb7.json":[701,701]};function s(e){if(!l.o(a,e))return Promise.resolve().then((()=>{var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}));var t=a[e],s=t[0];return l.e(t[1]).then((()=>l.t(s,19)))}s.keys=()=>Object.keys(a),s.id=7841,e.exports=s}}]); \ No newline at end of file diff --git a/static/js/881.554949ca.js b/static/js/881.554949ca.js deleted file mode 100644 index b4b155e4..00000000 --- a/static/js/881.554949ca.js +++ /dev/null @@ -1,172 +0,0 @@ -/*! For license information please see 881.554949ca.js.LICENSE.txt */ -"use strict";(self.webpackChunk_web_index=self.webpackChunk_web_index||[]).push([[881],{3924:(e,t,r)=>{var n=r(548),o=Symbol.for("react.element"),a=Symbol.for("react.fragment"),i=Object.prototype.hasOwnProperty,s=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,u={key:!0,ref:!0,__self:!0,__source:!0};function l(e,t,r){var n,a={},l=null,c=null;for(n in void 0!==r&&(l=""+r),void 0!==t.key&&(l=""+t.key),void 0!==t.ref&&(c=t.ref),t)i.call(t,n)&&!u.hasOwnProperty(n)&&(a[n]=t[n]);if(e&&e.defaultProps)for(n in t=e.defaultProps)void 0===a[n]&&(a[n]=t[n]);return{$$typeof:o,type:e,key:l,ref:c,props:a,_owner:s.current}}t.Fragment=a,t.jsx=l,t.jsxs=l},4079:(e,t)=>{var r=Symbol.for("react.element"),n=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),u=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),f=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),d=Symbol.iterator;var y={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},m=Object.assign,h={};function b(e,t,r){this.props=e,this.context=t,this.refs=h,this.updater=r||y}function v(){}function g(e,t,r){this.props=e,this.context=t,this.refs=h,this.updater=r||y}b.prototype.isReactComponent={},b.prototype.setState=function(e,t){if("object"!==typeof e&&"function"!==typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},b.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},v.prototype=b.prototype;var w=g.prototype=new v;w.constructor=g,m(w,b.prototype),w.isPureReactComponent=!0;var x=Array.isArray,_=Object.prototype.hasOwnProperty,E={current:null},k={key:!0,ref:!0,__self:!0,__source:!0};function S(e,t,n){var o,a={},i=null,s=null;if(null!=t)for(o in void 0!==t.ref&&(s=t.ref),void 0!==t.key&&(i=""+t.key),t)_.call(t,o)&&!k.hasOwnProperty(o)&&(a[o]=t[o]);var u=arguments.length-2;if(1===u)a.children=n;else if(1{e.exports=r(4079)},568:(e,t,r)=>{e.exports=r(3924)},4911:(e,t)=>{function r(e,t){var r=e.length;e.push(t);e:for(;0>>1,o=e[n];if(!(0>>1;na(u,r))la(c,u)?(e[n]=c,e[l]=r,n=l):(e[n]=u,e[s]=r,n=s);else{if(!(la(c,r)))break e;e[n]=c,e[l]=r,n=l}}}return t}function a(e,t){var r=e.sortIndex-t.sortIndex;return 0!==r?r:e.id-t.id}if("object"===typeof performance&&"function"===typeof performance.now){var i=performance;t.unstable_now=function(){return i.now()}}else{var s=Date,u=s.now();t.unstable_now=function(){return s.now()-u}}var l=[],c=[],f=1,p=null,d=3,y=!1,m=!1,h=!1,b="function"===typeof setTimeout?setTimeout:null,v="function"===typeof clearTimeout?clearTimeout:null,g="undefined"!==typeof setImmediate?setImmediate:null;function w(e){for(var t=n(c);null!==t;){if(null===t.callback)o(c);else{if(!(t.startTime<=e))break;o(c),t.sortIndex=t.expirationTime,r(l,t)}t=n(c)}}function x(e){if(h=!1,w(e),!m)if(null!==n(l))m=!0,T(_);else{var t=n(c);null!==t&&N(x,t.startTime-e)}}function _(e,r){m=!1,h&&(h=!1,v(C),C=-1),y=!0;var a=d;try{for(w(r),p=n(l);null!==p&&(!(p.expirationTime>r)||e&&!O());){var i=p.callback;if("function"===typeof i){p.callback=null,d=p.priorityLevel;var s=i(p.expirationTime<=r);r=t.unstable_now(),"function"===typeof s?p.callback=s:p===n(l)&&o(l),w(r)}else o(l);p=n(l)}if(null!==p)var u=!0;else{var f=n(c);null!==f&&N(x,f.startTime-r),u=!1}return u}finally{p=null,d=a,y=!1}}"undefined"!==typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var E,k=!1,S=null,C=-1,$=5,P=-1;function O(){return!(t.unstable_now()-P<$)}function j(){if(null!==S){var e=t.unstable_now();P=e;var r=!0;try{r=S(!0,e)}finally{r?E():(k=!1,S=null)}}else k=!1}if("function"===typeof g)E=function(){g(j)};else if("undefined"!==typeof MessageChannel){var I=new MessageChannel,R=I.port2;I.port1.onmessage=j,E=function(){R.postMessage(null)}}else E=function(){b(j,0)};function T(e){S=e,k||(k=!0,E())}function N(e,r){C=b((function(){e(t.unstable_now())}),r)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){m||y||(m=!0,T(_))},t.unstable_forceFrameRate=function(e){0>e||125i?(e.sortIndex=a,r(c,e),null===n(l)&&e===n(c)&&(h?(v(C),C=-1):h=!0,N(x,a-i))):(e.sortIndex=s,r(l,e),m||y||(m=!0,T(_))),e},t.unstable_shouldYield=O,t.unstable_wrapCallback=function(e){var t=d;return function(){var r=d;d=t;try{return e.apply(this,arguments)}finally{d=r}}}},6182:(e,t,r)=>{e.exports=r(4911)},268:(e,t,r)=>{var n=r(548);var o="function"===typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e===1/t)||e!==e&&t!==t},a=n.useState,i=n.useEffect,s=n.useLayoutEffect,u=n.useDebugValue;function l(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!o(e,r)}catch(n){return!0}}var c="undefined"===typeof window||"undefined"===typeof window.document||"undefined"===typeof window.document.createElement?function(e,t){return t()}:function(e,t){var r=t(),n=a({inst:{value:r,getSnapshot:t}}),o=n[0].inst,c=n[1];return s((function(){o.value=r,o.getSnapshot=t,l(o)&&c({inst:o})}),[e,r,t]),i((function(){return l(o)&&c({inst:o}),e((function(){l(o)&&c({inst:o})}))}),[e]),u(r),r};t.useSyncExternalStore=void 0!==n.useSyncExternalStore?n.useSyncExternalStore:c},6957:(e,t,r)=>{e.exports=r(268)},6192:(e,t,r)=>{r.d(t,{N_:()=>A,qh:()=>D,Ix:()=>N,dO:()=>M,zy:()=>j,lq:()=>T,SQ:()=>I});var n=r(548),o=r.t(n,2),a=r(6957);const{useEffect:i,useLayoutEffect:s,useRef:u}=o,l=o.useInsertionEffect,c=!("undefined"===typeof window||"undefined"===typeof window.document||"undefined"===typeof window.document.createElement),f=l||(c?s:i),p=e=>{const t=u([e,(...e)=>t[0](...e)]).current;return f((()=>{t[0]=e})),t[1]},d="pushState",y="replaceState",m=["popstate",d,y,"hashchange"],h=e=>{for(const t of m)addEventListener(t,e);return()=>{for(const t of m)removeEventListener(t,e)}},b=(e,t)=>(0,a.useSyncExternalStore)(h,e,t),v=()=>location.search,g=()=>location.pathname,w=({ssrPath:e}={})=>b(g,e?()=>e:g),x=(e,{replace:t=!1,state:r=null}={})=>history[t?y:d](r,"",e),_=Symbol.for("wouter_v3");if("undefined"!==typeof history&&"undefined"===typeof window[_]){for(const e of[d,y]){const t=history[e];history[e]=function(){const r=t.apply(this,arguments),n=new Event(e);return n.arguments=arguments,dispatchEvent(n),r}}Object.defineProperty(window,_,{value:!0})}const E=(e="",t)=>t.toLowerCase().indexOf(e.toLowerCase())?"~"+t:t.slice(e.length)||"/",k=e=>{try{return decodeURI(e)}catch(t){return e}},S={hook:(e={})=>[w(e),x],searchHook:({ssrSearch:e=""}={})=>b(v,(()=>e)),parser:function(e,t){if(e instanceof RegExp)return{keys:!1,pattern:e};var r,n,o,a,i=[],s="",u=e.split("/");for(u[0]||u.shift();o=u.shift();)"*"===(r=o[0])?(i.push(r),s+="?"===o[1]?"(?:/(.*))?":"/(.*)"):":"===r?(n=o.indexOf("?",1),a=o.indexOf(".",1),i.push(o.substring(1,~n?n:~a?a:o.length)),s+=~n&&!~a?"(?:/([^/]+?))?":"/([^/]+?)",~a&&(s+=(~n?"?":"")+"\\"+o.substring(a))):s+="/"+o;return{keys:i,pattern:new RegExp("^"+s+(t?"(?=$|/)":"/?$"),"i")}},base:"",ssrPath:void 0,ssrSearch:void 0,hrefs:e=>e},C=(0,n.createContext)(S),$=()=>(0,n.useContext)(C),P=(0,n.createContext)({}),O=e=>{const[t,r]=e.hook(e);return[k(E(e.base,t)),p(((t,n)=>r(((e,t="")=>"~"===e[0]?e.slice(1):t+e)(t,e.base),n)))]},j=()=>O($()),I=()=>{const e=$();return k("?"===(t=e.searchHook(e))[0]?t.slice(1):t);var t},R=(e,t,r,n)=>{const{pattern:o,keys:a}=e(t||"*",n),[i,...s]=o.exec(r)||[];return void 0!==i?[!0,Object.fromEntries(a.map(((e,t)=>[e,s[t]]))),...n?[i]:[]]:[!1,null]},T=e=>R($().parser,e,j()[0]),N=({children:e,...t})=>{const r=$(),o=t.hook?S:r;let a=o;const[i,s]=t.ssrPath?.split("?")??[];s&&(t.ssrSearch=s,t.ssrPath=i),t.hrefs=t.hrefs??t.hook?.hrefs;let u=(0,n.useRef)({}),l=u.current,c=l;for(let n in o){const e="base"===n?o[n]+(t[n]||""):t[n]||o[n];l===c&&e!==c[n]&&(u.current=c={...c}),c[n]=e,e!==o[n]&&(a=c)}return(0,n.createElement)(C.Provider,{value:a,children:e})},L=({children:e,component:t},r)=>t?(0,n.createElement)(t,{params:r}):"function"===typeof e?e(r):e,D=({path:e,nest:t,match:r,...o})=>{const a=$(),[i]=O(a),[s,u,l]=r??R(a.parser,e,i,t);if(!s)return null;const c=l?(0,n.createElement)(N,{base:l},L(o,u)):L(o,u);return(0,n.createElement)(P.Provider,{value:u,children:c})},A=(0,n.forwardRef)(((e,t)=>{const r=$(),[o,a]=O(r),{to:i,href:s=i,onClick:u,asChild:l,children:c,className:f,replace:d,state:y,...m}=e,h=p((t=>{t.ctrlKey||t.metaKey||t.altKey||t.shiftKey||0!==t.button||(u?.(t),t.defaultPrevented||(t.preventDefault(),a(s,e)))})),b=r.hrefs("~"===s[0]?s.slice(1):r.base+s,r);return l&&(0,n.isValidElement)(c)?(0,n.cloneElement)(c,{onClick:h,href:b}):(0,n.createElement)("a",{...m,onClick:h,href:b,className:f?.call?f(o===s):f,children:c,ref:t})})),F=e=>Array.isArray(e)?e.flatMap((e=>F(e&&e.type===n.Fragment?e.props.children:e))):[e],M=({children:e,location:t})=>{const r=$(),[o]=O(r);for(const a of F(e)){let e=0;if((0,n.isValidElement)(a)&&(e=R(r.parser,a.props.path,t||o,a.props.nest))[0])return(0,n.cloneElement)(a,{match:e})}return null}},4656:(e,t,r)=>{r.d(t,{l$:()=>re,Ay:()=>ne});var n=r(548);let o={data:""},a=e=>"object"==typeof window?((e?e.querySelector("#_goober"):window._goober)||Object.assign((e||document.head).appendChild(document.createElement("style")),{innerHTML:" ",id:"_goober"})).firstChild:e||o,i=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,s=/\/\*[^]*?\*\/| +/g,u=/\n+/g,l=(e,t)=>{let r="",n="",o="";for(let a in e){let i=e[a];"@"==a[0]?"i"==a[1]?r=a+" "+i+";":n+="f"==a[1]?l(i,a):a+"{"+l(i,"k"==a[1]?"":t)+"}":"object"==typeof i?n+=l(i,t?t.replace(/([^,])+/g,(e=>a.replace(/(^:.*)|([^,])+/g,(t=>/&/.test(t)?t.replace(/&/g,e):e?e+" "+t:t)))):a):null!=i&&(a=/^--/.test(a)?a:a.replace(/[A-Z]/g,"-$&").toLowerCase(),o+=l.p?l.p(a,i):a+":"+i+";")}return r+(t&&o?t+"{"+o+"}":o)+n},c={},f=e=>{if("object"==typeof e){let t="";for(let r in e)t+=r+f(e[r]);return t}return e},p=(e,t,r,n,o)=>{let a=f(e),p=c[a]||(c[a]=(e=>{let t=0,r=11;for(;t>>0;return"go"+r})(a));if(!c[p]){let t=a!==e?e:(e=>{let t,r,n=[{}];for(;t=i.exec(e.replace(s,""));)t[4]?n.shift():t[3]?(r=t[3].replace(u," ").trim(),n.unshift(n[0][r]=n[0][r]||{})):n[0][t[1]]=t[2].replace(u," ").trim();return n[0]})(e);c[p]=l(o?{["@keyframes "+p]:t}:t,r?"":"."+p)}let d=r&&c.g?c.g:null;return r&&(c.g=c[p]),((e,t,r,n)=>{n?t.data=t.data.replace(n,e):-1===t.data.indexOf(e)&&(t.data=r?e+t.data:t.data+e)})(c[p],t,n,d),p},d=(e,t,r)=>e.reduce(((e,n,o)=>{let a=t[o];if(a&&a.call){let e=a(r),t=e&&e.props&&e.props.className||/^go/.test(e)&&e;a=t?"."+t:e&&"object"==typeof e?e.props?"":l(e,""):!1===e?"":e}return e+n+(null==a?"":a)}),"");function y(e){let t=this||{},r=e.call?e(t.p):e;return p(r.unshift?r.raw?d(r,[].slice.call(arguments,1),t.p):r.reduce(((e,r)=>Object.assign(e,r&&r.call?r(t.p):r)),{}):r,a(t.target),t.g,t.o,t.k)}y.bind({g:1});let m,h,b,v=y.bind({k:1});function g(e,t){let r=this||{};return function(){let n=arguments;function o(a,i){let s=Object.assign({},a),u=s.className||o.className;r.p=Object.assign({theme:h&&h()},s),r.o=/ *go\d+/.test(u),s.className=y.apply(r,n)+(u?" "+u:""),t&&(s.ref=i);let l=e;return e[0]&&(l=s.as||e,delete s.as),b&&l[0]&&b(s),m(l,s)}return t?t(o):o}}var w=(e,t)=>(e=>"function"==typeof e)(e)?e(t):e,x=(()=>{let e=0;return()=>(++e).toString()})(),_=(()=>{let e;return()=>{if(void 0===e&&typeof window<"u"){let t=matchMedia("(prefers-reduced-motion: reduce)");e=!t||t.matches}return e}})(),E=new Map,k=e=>{if(E.has(e))return;let t=setTimeout((()=>{E.delete(e),P({type:4,toastId:e})}),1e3);E.set(e,t)},S=(e,t)=>{switch(t.type){case 0:return{...e,toasts:[t.toast,...e.toasts].slice(0,20)};case 1:return t.toast.id&&(e=>{let t=E.get(e);t&&clearTimeout(t)})(t.toast.id),{...e,toasts:e.toasts.map((e=>e.id===t.toast.id?{...e,...t.toast}:e))};case 2:let{toast:r}=t;return e.toasts.find((e=>e.id===r.id))?S(e,{type:1,toast:r}):S(e,{type:0,toast:r});case 3:let{toastId:n}=t;return n?k(n):e.toasts.forEach((e=>{k(e.id)})),{...e,toasts:e.toasts.map((e=>e.id===n||void 0===n?{...e,visible:!1}:e))};case 4:return void 0===t.toastId?{...e,toasts:[]}:{...e,toasts:e.toasts.filter((e=>e.id!==t.toastId))};case 5:return{...e,pausedAt:t.time};case 6:let o=t.time-(e.pausedAt||0);return{...e,pausedAt:void 0,toasts:e.toasts.map((e=>({...e,pauseDuration:e.pauseDuration+o})))}}},C=[],$={toasts:[],pausedAt:void 0},P=e=>{$=S($,e),C.forEach((e=>{e($)}))},O={blank:4e3,error:4e3,success:2e3,loading:1/0,custom:4e3},j=e=>(t,r)=>{let n=((e,t="blank",r)=>({createdAt:Date.now(),visible:!0,type:t,ariaProps:{role:"status","aria-live":"polite"},message:e,pauseDuration:0,...r,id:(null==r?void 0:r.id)||x()}))(t,e,r);return P({type:2,toast:n}),n.id},I=(e,t)=>j("blank")(e,t);I.error=j("error"),I.success=j("success"),I.loading=j("loading"),I.custom=j("custom"),I.dismiss=e=>{P({type:3,toastId:e})},I.remove=e=>P({type:4,toastId:e}),I.promise=(e,t,r)=>{let n=I.loading(t.loading,{...r,...null==r?void 0:r.loading});return e.then((e=>(I.success(w(t.success,e),{id:n,...r,...null==r?void 0:r.success}),e))).catch((e=>{I.error(w(t.error,e),{id:n,...r,...null==r?void 0:r.error})})),e};var R=(e,t)=>{P({type:1,toast:{id:e,height:t}})},T=()=>{P({type:5,time:Date.now()})},N=e=>{let{toasts:t,pausedAt:r}=((e={})=>{let[t,r]=(0,n.useState)($);(0,n.useEffect)((()=>(C.push(r),()=>{let e=C.indexOf(r);e>-1&&C.splice(e,1)})),[t]);let o=t.toasts.map((t=>{var r,n;return{...e,...e[t.type],...t,duration:t.duration||(null==(r=e[t.type])?void 0:r.duration)||(null==e?void 0:e.duration)||O[t.type],style:{...e.style,...null==(n=e[t.type])?void 0:n.style,...t.style}}}));return{...t,toasts:o}})(e);(0,n.useEffect)((()=>{if(r)return;let e=Date.now(),n=t.map((t=>{if(t.duration===1/0)return;let r=(t.duration||0)+t.pauseDuration-(e-t.createdAt);if(!(r<0))return setTimeout((()=>I.dismiss(t.id)),r);t.visible&&I.dismiss(t.id)}));return()=>{n.forEach((e=>e&&clearTimeout(e)))}}),[t,r]);let o=(0,n.useCallback)((()=>{r&&P({type:6,time:Date.now()})}),[r]),a=(0,n.useCallback)(((e,r)=>{let{reverseOrder:n=!1,gutter:o=8,defaultPosition:a}=r||{},i=t.filter((t=>(t.position||a)===(e.position||a)&&t.height)),s=i.findIndex((t=>t.id===e.id)),u=i.filter(((e,t)=>te.visible)).slice(...n?[u+1]:[0,u]).reduce(((e,t)=>e+(t.height||0)+o),0)}),[t]);return{toasts:t,handlers:{updateHeight:R,startPause:T,endPause:o,calculateOffset:a}}},L=v` -from { - transform: scale(0) rotate(45deg); - opacity: 0; -} -to { - transform: scale(1) rotate(45deg); - opacity: 1; -}`,D=v` -from { - transform: scale(0); - opacity: 0; -} -to { - transform: scale(1); - opacity: 1; -}`,A=v` -from { - transform: scale(0) rotate(90deg); - opacity: 0; -} -to { - transform: scale(1) rotate(90deg); - opacity: 1; -}`,F=g("div")` - width: 20px; - opacity: 0; - height: 20px; - border-radius: 10px; - background: ${e=>e.primary||"#ff4b4b"}; - position: relative; - transform: rotate(45deg); - - animation: ${L} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) - forwards; - animation-delay: 100ms; - - &:after, - &:before { - content: ''; - animation: ${D} 0.15s ease-out forwards; - animation-delay: 150ms; - position: absolute; - border-radius: 3px; - opacity: 0; - background: ${e=>e.secondary||"#fff"}; - bottom: 9px; - left: 4px; - height: 2px; - width: 12px; - } - - &:before { - animation: ${A} 0.15s ease-out forwards; - animation-delay: 180ms; - transform: rotate(90deg); - } -`,M=v` - from { - transform: rotate(0deg); - } - to { - transform: rotate(360deg); - } -`,z=g("div")` - width: 12px; - height: 12px; - box-sizing: border-box; - border: 2px solid; - border-radius: 100%; - border-color: ${e=>e.secondary||"#e0e0e0"}; - border-right-color: ${e=>e.primary||"#616161"}; - animation: ${M} 1s linear infinite; -`,U=v` -from { - transform: scale(0) rotate(45deg); - opacity: 0; -} -to { - transform: scale(1) rotate(45deg); - opacity: 1; -}`,V=v` -0% { - height: 0; - width: 0; - opacity: 0; -} -40% { - height: 0; - width: 6px; - opacity: 1; -} -100% { - opacity: 1; - height: 10px; -}`,q=g("div")` - width: 20px; - opacity: 0; - height: 20px; - border-radius: 10px; - background: ${e=>e.primary||"#61d345"}; - position: relative; - transform: rotate(45deg); - - animation: ${U} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) - forwards; - animation-delay: 100ms; - &:after { - content: ''; - box-sizing: border-box; - animation: ${V} 0.2s ease-out forwards; - opacity: 0; - animation-delay: 200ms; - position: absolute; - border-right: 2px solid; - border-bottom: 2px solid; - border-color: ${e=>e.secondary||"#fff"}; - bottom: 6px; - left: 6px; - height: 10px; - width: 6px; - } -`,H=g("div")` - position: absolute; -`,B=g("div")` - position: relative; - display: flex; - justify-content: center; - align-items: center; - min-width: 20px; - min-height: 20px; -`,K=v` -from { - transform: scale(0.6); - opacity: 0.4; -} -to { - transform: scale(1); - opacity: 1; -}`,Y=g("div")` - position: relative; - transform: scale(0.6); - opacity: 0.4; - min-width: 20px; - animation: ${K} 0.3s 0.12s cubic-bezier(0.175, 0.885, 0.32, 1.275) - forwards; -`,W=({toast:e})=>{let{icon:t,type:r,iconTheme:o}=e;return void 0!==t?"string"==typeof t?n.createElement(Y,null,t):t:"blank"===r?null:n.createElement(B,null,n.createElement(z,{...o}),"loading"!==r&&n.createElement(H,null,"error"===r?n.createElement(F,{...o}):n.createElement(q,{...o})))},Q=e=>`\n0% {transform: translate3d(0,${-200*e}%,0) scale(.6); opacity:.5;}\n100% {transform: translate3d(0,0,0) scale(1); opacity:1;}\n`,Z=e=>`\n0% {transform: translate3d(0,0,-1px) scale(1); opacity:1;}\n100% {transform: translate3d(0,${-150*e}%,-1px) scale(.6); opacity:0;}\n`,G=g("div")` - display: flex; - align-items: center; - background: #fff; - color: #363636; - line-height: 1.3; - will-change: transform; - box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1), 0 3px 3px rgba(0, 0, 0, 0.05); - max-width: 350px; - pointer-events: auto; - padding: 8px 10px; - border-radius: 8px; -`,J=g("div")` - display: flex; - justify-content: center; - margin: 4px 10px; - color: inherit; - flex: 1 1 auto; - white-space: pre-line; -`,X=n.memo((({toast:e,position:t,style:r,children:o})=>{let a=e.height?((e,t)=>{let r=e.includes("top")?1:-1,[n,o]=_()?["0%{opacity:0;} 100%{opacity:1;}","0%{opacity:1;} 100%{opacity:0;}"]:[Q(r),Z(r)];return{animation:t?`${v(n)} 0.35s cubic-bezier(.21,1.02,.73,1) forwards`:`${v(o)} 0.4s forwards cubic-bezier(.06,.71,.55,1)`}})(e.position||t||"top-center",e.visible):{opacity:0},i=n.createElement(W,{toast:e}),s=n.createElement(J,{...e.ariaProps},w(e.message,e));return n.createElement(G,{className:e.className,style:{...a,...r,...e.style}},"function"==typeof o?o({icon:i,message:s}):n.createElement(n.Fragment,null,i,s))}));!function(e,t,r,n){l.p=t,m=e,h=r,b=n}(n.createElement);var ee=({id:e,className:t,style:r,onHeightUpdate:o,children:a})=>{let i=n.useCallback((t=>{if(t){let r=()=>{let r=t.getBoundingClientRect().height;o(e,r)};r(),new MutationObserver(r).observe(t,{subtree:!0,childList:!0,characterData:!0})}}),[e,o]);return n.createElement("div",{ref:i,className:t,style:r},a)},te=y` - z-index: 9999; - > * { - pointer-events: auto; - } -`,re=({reverseOrder:e,position:t="top-center",toastOptions:r,gutter:o,children:a,containerStyle:i,containerClassName:s})=>{let{toasts:u,handlers:l}=N(r);return n.createElement("div",{style:{position:"fixed",zIndex:9999,top:16,left:16,right:16,bottom:16,pointerEvents:"none",...i},className:s,onMouseEnter:l.startPause,onMouseLeave:l.endPause},u.map((r=>{let i=r.position||t,s=((e,t)=>{let r=e.includes("top"),n=r?{top:0}:{bottom:0},o=e.includes("center")?{justifyContent:"center"}:e.includes("right")?{justifyContent:"flex-end"}:{};return{left:0,right:0,display:"flex",position:"absolute",transition:_()?void 0:"all 230ms cubic-bezier(.21,1.02,.73,1)",transform:`translateY(${t*(r?1:-1)}px)`,...n,...o}})(i,l.calculateOffset(r,{reverseOrder:e,gutter:o,defaultPosition:t}));return n.createElement(ee,{id:r.id,key:r.id,onHeightUpdate:l.updateHeight,className:r.visible?te:"",style:s},"custom"===r.type?w(r.message,r):a?a(r):n.createElement(X,{toast:r,position:i}))})))},ne=I}}]); \ No newline at end of file diff --git a/static/js/893.aa844a9b.chunk.js b/static/js/893.aa844a9b.chunk.js deleted file mode 100644 index bdf79099..00000000 --- a/static/js/893.aa844a9b.chunk.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunk_web_index=self.webpackChunk_web_index||[]).push([[893],{893:(e,a,s)=>{s.r(a),s.d(a,{default:()=>r});var t=s(568),n=s(548),i=s(963),l=s(5219),c=s(4857),d=s(3987);const r=()=>{const[e,a]=(0,n.useState)([]),[s,r]=(0,n.useState)({DisplayName:"",Email:"",Message:""}),[m,u]=(0,n.useState)(1),g=(0,c.k)();function o(e){r(Object.assign(Object.assign({},s),{[e.target.name]:e.target.value}))}return(0,n.useEffect)((()=>{d.pY.get("/feedbacks").then((e=>{a(e.data)}))}),[m]),(0,t.jsxs)("div",{className:"feedback-container",children:[(0,t.jsx)(i.m,{children:(0,t.jsx)("title",{children:"Feedback"})}),(0,t.jsx)("div",{className:"feedback-open",children:(0,t.jsxs)("form",{className:"feedback-form",onSubmit:function(e){e.preventDefault(),e.stopPropagation(),d.pY.post("/feedback",{data:Object.assign(Object.assign({},s),{name:null===g||void 0===g?void 0:g.Name})}).then((e=>{e.err||(u(Date.now()),r(Object.assign(Object.assign({},s),{Message:""})))}))},children:[(0,t.jsx)("h1",{children:"Feedback"}),(0,t.jsxs)("div",{className:"feedback-form-group",children:[(0,t.jsxs)("label",{htmlFor:"feedback-name",children:["Name",(0,t.jsx)("span",{children:"*"})]}),(0,t.jsx)("input",{type:"text",id:"feedback-name",className:"input",required:!0,name:"DisplayName",onChange:o,value:s.DisplayName})]}),(0,t.jsxs)("div",{className:"feedback-form-group",children:[(0,t.jsx)("label",{htmlFor:"feedback-email",children:"Email"}),(0,t.jsx)("input",{type:"email",id:"feedback-email",className:"input",name:"Email",value:s.Email,onChange:o})]}),(0,t.jsxs)("div",{className:"feedback-form-group",children:[(0,t.jsxs)("label",{htmlFor:"feedback-message",children:["Message",(0,t.jsx)("span",{children:"*"})]}),(0,t.jsx)("textarea",{id:"feedback-message",className:"textarea",required:!0,name:"Message",onChange:o,value:s.Message})]}),(0,t.jsx)("button",{type:"submit",className:"button is-black is-fullwidth",children:"Send"})]})}),(0,t.jsx)("div",{className:"feedback-list",children:(0,t.jsx)("ul",{children:null===e||void 0===e?void 0:e.map((e=>(0,t.jsxs)("li",{className:"feedback-item",id:`feedback-${e.ID}`,children:[(0,t.jsx)("div",{className:"feedback-item__head",children:(0,t.jsxs)("span",{className:"feedback-item__name",children:[e.DisplayName," :"]})}),(0,t.jsxs)("div",{className:"feedback-item__content",children:[(0,t.jsx)("p",{children:e.Message}),(0,t.jsxs)("p",{className:"feedback-item__time",children:[(0,l.Yq)(e.CreatedAt)," | ",e.Ip]})]})]},e.ID)))})})]})}},5219:(e,a,s)=>{function t(e){const a=new Date,s=new Date(e),t=(a.getTime()-s.getTime())/1e3;return t<30?"\u521a\u521a":t<3600?Math.ceil(t/60)+"\u5206\u949f\u524d":t<86400?Math.ceil(t/3600)+"\u5c0f\u65f6\u524d":t<172800?"1\u5929\u524d":t<2678400?Math.ceil(t/3600/24)+"\u5929\u524d":a.getFullYear()===s.getFullYear()?`${s.getMonth()+1}\u6708${s.getDate()}\u65e5`:`${s.getFullYear()}\u5e74${s.getMonth()+1}\u6708${s.getDate()}\u65e5`}function n(e,a=!1){const s=new Date(e);return(new Date).getFullYear()===s.getFullYear()?`${s.getMonth()+1}\u6708${s.getDate()}\u65e5 ${a?` ${s.getHours()}:${s.getMinutes().toString().padStart(2,"0")}`:""}`:`${s.getFullYear()}\u5e74${s.getMonth()+1}\u6708${s.getDate()}\u65e5 ${a?` ${s.getHours()}:${s.getMinutes().toString().padStart(2,"0")}`:""}`}s.d(a,{D$:()=>t,Yq:()=>n})}}]); \ No newline at end of file diff --git a/static/js/963.00a6a427.chunk.js b/static/js/963.00a6a427.chunk.js deleted file mode 100644 index 03c810e0..00000000 --- a/static/js/963.00a6a427.chunk.js +++ /dev/null @@ -1,2 +0,0 @@ -/*! For license information please see 963.00a6a427.chunk.js.LICENSE.txt */ -(self.webpackChunk_web_index=self.webpackChunk_web_index||[]).push([[963],{425:e=>{"use strict";var t=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(o){return!1}}()?Object.assign:function(e,o){for(var i,a,u=function(e){if(null===e||void 0===e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),c=1;c{"use strict";var r=n(4635);function o(){}function i(){}i.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,i,a){if(a!==r){var u=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw u.name="Invariant Violation",u}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:o};return n.PropTypes=n,n}},7882:(e,t,n)=>{e.exports=n(6876)()},4635:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},7778:e=>{var t="undefined"!==typeof Element,n="function"===typeof Map,r="function"===typeof Set,o="function"===typeof ArrayBuffer&&!!ArrayBuffer.isView;function i(e,a){if(e===a)return!0;if(e&&a&&"object"==typeof e&&"object"==typeof a){if(e.constructor!==a.constructor)return!1;var u,c,s,f;if(Array.isArray(e)){if((u=e.length)!=a.length)return!1;for(c=u;0!==c--;)if(!i(e[c],a[c]))return!1;return!0}if(n&&e instanceof Map&&a instanceof Map){if(e.size!==a.size)return!1;for(f=e.entries();!(c=f.next()).done;)if(!a.has(c.value[0]))return!1;for(f=e.entries();!(c=f.next()).done;)if(!i(c.value[1],a.get(c.value[0])))return!1;return!0}if(r&&e instanceof Set&&a instanceof Set){if(e.size!==a.size)return!1;for(f=e.entries();!(c=f.next()).done;)if(!a.has(c.value[0]))return!1;return!0}if(o&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(a)){if((u=e.length)!=a.length)return!1;for(c=u;0!==c--;)if(e[c]!==a[c])return!1;return!0}if(e.constructor===RegExp)return e.source===a.source&&e.flags===a.flags;if(e.valueOf!==Object.prototype.valueOf&&"function"===typeof e.valueOf&&"function"===typeof a.valueOf)return e.valueOf()===a.valueOf();if(e.toString!==Object.prototype.toString&&"function"===typeof e.toString&&"function"===typeof a.toString)return e.toString()===a.toString();if((u=(s=Object.keys(e)).length)!==Object.keys(a).length)return!1;for(c=u;0!==c--;)if(!Object.prototype.hasOwnProperty.call(a,s[c]))return!1;if(t&&e instanceof Element)return!1;for(c=u;0!==c--;)if(("_owner"!==s[c]&&"__v"!==s[c]&&"__o"!==s[c]||!e.$$typeof)&&!i(e[s[c]],a[s[c]]))return!1;return!0}return e!==e&&a!==a}e.exports=function(e,t){try{return i(e,t)}catch(n){if((n.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw n}}},963:(e,t,n)=>{"use strict";n.d(t,{m:()=>ce});var r=n(7882),o=n.n(r),i=n(1595),a=n.n(i),u=n(7778),c=n.n(u),s=n(548),f=n(425),l=n.n(f),p="bodyAttributes",d="htmlAttributes",y="titleAttributes",h={BASE:"base",BODY:"body",HEAD:"head",HTML:"html",LINK:"link",META:"meta",NOSCRIPT:"noscript",SCRIPT:"script",STYLE:"style",TITLE:"title"},b=(Object.keys(h).map((function(e){return h[e]})),"charset"),m="cssText",T="href",g="http-equiv",v="innerHTML",w="itemprop",O="name",C="property",A="rel",S="src",E="target",j={accesskey:"accessKey",charset:"charSet",class:"className",contenteditable:"contentEditable",contextmenu:"contextMenu","http-equiv":"httpEquiv",itemprop:"itemProp",tabindex:"tabIndex"},P="defaultTitle",k="defer",x="encodeSpecialCharacters",I="onChangeClientState",L="titleTemplate",_=Object.keys(j).reduce((function(e,t){return e[j[t]]=t,e}),{}),M=[h.NOSCRIPT,h.SCRIPT,h.STYLE],N="data-react-helmet",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},q=function(){function e(e,t){for(var n=0;n=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n},H=function(e){return!1===(!(arguments.length>1&&void 0!==arguments[1])||arguments[1])?String(e):String(e).replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'")},Y=function(e){var t=W(e,h.TITLE),n=W(e,L);if(n&&t)return n.replace(/%s/g,(function(){return Array.isArray(t)?t.join(""):t}));var r=W(e,P);return t||r||void 0},F=function(e){return W(e,I)||function(){}},U=function(e,t){return t.filter((function(t){return"undefined"!==typeof t[e]})).map((function(t){return t[e]})).reduce((function(e,t){return D({},e,t)}),{})},z=function(e,t){return t.filter((function(e){return"undefined"!==typeof e[h.BASE]})).map((function(e){return e[h.BASE]})).reverse().reduce((function(t,n){if(!t.length)for(var r=Object.keys(n),o=0;o=0;n--){var r=e[n];if(r.hasOwnProperty(t))return r[t]}return null},V=function(){var e=Date.now();return function(t){var n=Date.now();n-e>16?(e=n,t(n)):setTimeout((function(){V(t)}),0)}}(),$=function(e){return clearTimeout(e)},G="undefined"!==typeof window?window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||V:n.g.requestAnimationFrame||V,J="undefined"!==typeof window?window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||$:n.g.cancelAnimationFrame||$,Q=function(e){return console&&"function"===typeof console.warn&&console.warn(e)},X=null,Z=function(e,t){var n=e.baseTag,r=e.bodyAttributes,o=e.htmlAttributes,i=e.linkTags,a=e.metaTags,u=e.noscriptTags,c=e.onChangeClientState,s=e.scriptTags,f=e.styleTags,l=e.title,p=e.titleAttributes;ne(h.BODY,r),ne(h.HTML,o),te(l,p);var d={baseTag:re(h.BASE,n),linkTags:re(h.LINK,i),metaTags:re(h.META,a),noscriptTags:re(h.NOSCRIPT,u),scriptTags:re(h.SCRIPT,s),styleTags:re(h.STYLE,f)},y={},b={};Object.keys(d).forEach((function(e){var t=d[e],n=t.newTags,r=t.oldTags;n.length&&(y[e]=n),r.length&&(b[e]=d[e].oldTags)})),t&&t(),c(e,y,b)},ee=function(e){return Array.isArray(e)?e.join(""):e},te=function(e,t){"undefined"!==typeof e&&document.title!==e&&(document.title=ee(e)),ne(h.TITLE,t)},ne=function(e,t){var n=document.getElementsByTagName(e)[0];if(n){for(var r=n.getAttribute(N),o=r?r.split(","):[],i=[].concat(o),a=Object.keys(t),u=0;u=0;l--)n.removeAttribute(i[l]);o.length===i.length?n.removeAttribute(N):n.getAttribute(N)!==a.join(",")&&n.setAttribute(N,a.join(","))}},re=function(e,t){var n=document.head||document.querySelector(h.HEAD),r=n.querySelectorAll(e+"["+N+"]"),o=Array.prototype.slice.call(r),i=[],a=void 0;return t&&t.length&&t.forEach((function(t){var n=document.createElement(e);for(var r in t)if(t.hasOwnProperty(r))if(r===v)n.innerHTML=t.innerHTML;else if(r===m)n.styleSheet?n.styleSheet.cssText=t.cssText:n.appendChild(document.createTextNode(t.cssText));else{var u="undefined"===typeof t[r]?"":t[r];n.setAttribute(r,u)}n.setAttribute(N,"true"),o.some((function(e,t){return a=t,n.isEqualNode(e)}))?o.splice(a,1):i.push(n)})),o.forEach((function(e){return e.parentNode.removeChild(e)})),i.forEach((function(e){return n.appendChild(e)})),{oldTags:o,newTags:i}},oe=function(e){return Object.keys(e).reduce((function(t,n){var r="undefined"!==typeof e[n]?n+'="'+e[n]+'"':""+n;return t?t+" "+r:r}),"")},ie=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.keys(e).reduce((function(t,n){return t[j[n]||n]=e[n],t}),t)},ae=function(e,t,n){switch(e){case h.TITLE:return{toComponent:function(){return function(e,t,n){var r,o=((r={key:t})[N]=!0,r),i=ie(n,o);return[s.createElement(h.TITLE,i,t)]}(0,t.title,t.titleAttributes)},toString:function(){return function(e,t,n,r){var o=oe(n),i=ee(t);return o?"<"+e+" "+N+'="true" '+o+">"+H(i,r)+"":"<"+e+" "+N+'="true">'+H(i,r)+""}(e,t.title,t.titleAttributes,n)}};case p:case d:return{toComponent:function(){return ie(t)},toString:function(){return oe(t)}};default:return{toComponent:function(){return function(e,t){return t.map((function(t,n){var r,o=((r={key:n})[N]=!0,r);return Object.keys(t).forEach((function(e){var n=j[e]||e;if(n===v||n===m){var r=t.innerHTML||t.cssText;o.dangerouslySetInnerHTML={__html:r}}else o[n]=t[e]})),s.createElement(e,o)}))}(e,t)},toString:function(){return function(e,t,n){return t.reduce((function(t,r){var o=Object.keys(r).filter((function(e){return!(e===v||e===m)})).reduce((function(e,t){var o="undefined"===typeof r[t]?t:t+'="'+H(r[t],n)+'"';return e?e+" "+o:o}),""),i=r.innerHTML||r.cssText||"",a=-1===M.indexOf(e);return t+"<"+e+" "+N+'="true" '+o+(a?"/>":">"+i+"")}),"")}(e,t,n)}}}},ue=function(e){var t=e.baseTag,n=e.bodyAttributes,r=e.encode,o=e.htmlAttributes,i=e.linkTags,a=e.metaTags,u=e.noscriptTags,c=e.scriptTags,s=e.styleTags,f=e.title,l=void 0===f?"":f,y=e.titleAttributes;return{base:ae(h.BASE,t,r),bodyAttributes:ae(p,n,r),htmlAttributes:ae(d,o,r),link:ae(h.LINK,i,r),meta:ae(h.META,a,r),noscript:ae(h.NOSCRIPT,u,r),script:ae(h.SCRIPT,c,r),style:ae(h.STYLE,s,r),title:ae(h.TITLE,{title:l,titleAttributes:y},r)}},ce=function(e){var t,n;return n=t=function(t){function n(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}(this,t.apply(this,arguments))}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(n,t),n.prototype.shouldComponentUpdate=function(e){return!c()(this.props,e)},n.prototype.mapNestedChildrenToProps=function(e,t){if(!t)return null;switch(e.type){case h.SCRIPT:case h.NOSCRIPT:return{innerHTML:t};case h.STYLE:return{cssText:t}}throw new Error("<"+e.type+" /> elements are self-closing and can not contain children. Refer to our API for more information.")},n.prototype.flattenArrayTypeChildren=function(e){var t,n=e.child,r=e.arrayTypeChildren,o=e.newChildProps,i=e.nestedChildren;return D({},r,((t={})[n.type]=[].concat(r[n.type]||[],[D({},o,this.mapNestedChildrenToProps(n,i))]),t))},n.prototype.mapObjectTypeChildren=function(e){var t,n,r=e.child,o=e.newProps,i=e.newChildProps,a=e.nestedChildren;switch(r.type){case h.TITLE:return D({},o,((t={})[r.type]=a,t.titleAttributes=D({},i),t));case h.BODY:return D({},o,{bodyAttributes:D({},i)});case h.HTML:return D({},o,{htmlAttributes:D({},i)})}return D({},o,((n={})[r.type]=D({},i),n))},n.prototype.mapArrayTypeChildrenToProps=function(e,t){var n=D({},t);return Object.keys(e).forEach((function(t){var r;n=D({},n,((r={})[t]=e[t],r))})),n},n.prototype.warnOnInvalidChildren=function(e,t){return!0},n.prototype.mapChildrenToProps=function(e,t){var n=this,r={};return s.Children.forEach(e,(function(e){if(e&&e.props){var o=e.props,i=o.children,a=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.keys(e).reduce((function(t,n){return t[_[n]||n]=e[n],t}),t)}(B(o,["children"]));switch(n.warnOnInvalidChildren(e,i),e.type){case h.LINK:case h.META:case h.NOSCRIPT:case h.SCRIPT:case h.STYLE:r=n.flattenArrayTypeChildren({child:e,arrayTypeChildren:r,newChildProps:a,nestedChildren:i});break;default:t=n.mapObjectTypeChildren({child:e,newProps:t,newChildProps:a,nestedChildren:i})}}})),t=this.mapArrayTypeChildrenToProps(r,t)},n.prototype.render=function(){var t=this.props,n=t.children,r=B(t,["children"]),o=D({},r);return n&&(o=this.mapChildrenToProps(n,o)),s.createElement(e,o)},q(n,null,[{key:"canUseDOM",set:function(t){e.canUseDOM=t}}]),n}(s.Component),t.propTypes={base:o().object,bodyAttributes:o().object,children:o().oneOfType([o().arrayOf(o().node),o().node]),defaultTitle:o().string,defer:o().bool,encodeSpecialCharacters:o().bool,htmlAttributes:o().object,link:o().arrayOf(o().object),meta:o().arrayOf(o().object),noscript:o().arrayOf(o().object),onChangeClientState:o().func,script:o().arrayOf(o().object),style:o().arrayOf(o().object),title:o().string,titleAttributes:o().object,titleTemplate:o().string},t.defaultProps={defer:!0,encodeSpecialCharacters:!0},t.peek=e.peek,t.rewind=function(){var t=e.rewind();return t||(t=ue({baseTag:[],bodyAttributes:{},encodeSpecialCharacters:!0,htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}})),t},n}(a()((function(e){return{baseTag:z([T,E],e),bodyAttributes:U(p,e),defer:W(e,k),encode:W(e,x),htmlAttributes:U(d,e),linkTags:K(h.LINK,[A,T],e),metaTags:K(h.META,[O,b,g,C,w],e),noscriptTags:K(h.NOSCRIPT,[v],e),onChangeClientState:F(e),scriptTags:K(h.SCRIPT,[S,v],e),styleTags:K(h.STYLE,[m],e),title:Y(e),titleAttributes:U(y,e)}}),(function(e){X&&J(X),e.defer?X=G((function(){Z(e,(function(){X=null}))})):(Z(e),X=null)}),ue)((function(){return null})));ce.renderStatic=ce.rewind},1595:(e,t,n)=>{"use strict";var r,o=n(548),i=(r=o)&&"object"===typeof r&&"default"in r?r.default:r;function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var u=!("undefined"===typeof window||!window.document||!window.document.createElement);e.exports=function(e,t,n){if("function"!==typeof e)throw new Error("Expected reducePropsToState to be a function.");if("function"!==typeof t)throw new Error("Expected handleStateChangeOnClient to be a function.");if("undefined"!==typeof n&&"function"!==typeof n)throw new Error("Expected mapStateOnServer to either be undefined or a function.");return function(r){if("function"!==typeof r)throw new Error("Expected WrappedComponent to be a React component.");var c,s=[];function f(){c=e(s.map((function(e){return e.props}))),l.canUseDOM?t(c):n&&(c=n(c))}var l=function(e){var t,n;function o(){return e.apply(this,arguments)||this}n=e,(t=o).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n,o.peek=function(){return c},o.rewind=function(){if(o.canUseDOM)throw new Error("You may only call rewind() on the server. Call peek() to read the current state.");var e=c;return c=void 0,s=[],e};var a=o.prototype;return a.UNSAFE_componentWillMount=function(){s.push(this),f()},a.componentDidUpdate=function(){f()},a.componentWillUnmount=function(){var e=s.indexOf(this);s.splice(e,1),f()},a.render=function(){return i.createElement(r,this.props)},o}(o.PureComponent);return a(l,"displayName","SideEffect("+function(e){return e.displayName||e.name||"Component"}(r)+")"),a(l,"canUseDOM",u),l}}}}]); \ No newline at end of file diff --git a/static/js/app.20ff673b.js b/static/js/app.20ff673b.js deleted file mode 100644 index dd2a8cf5..00000000 --- a/static/js/app.20ff673b.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunk_web_index=self.webpackChunk_web_index||[]).push([[524],{4623:(e,t,a)=>{var n,s=a(568),r=a(4818),c=a(3987),i=a(548),o=a(6192),l=a(5375),d=a(4857);function h(){return h=Object.assign?Object.assign.bind():function(e){for(var t=1;t{let{title:a,titleId:s,...r}=e;return i.createElement("svg",h({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512",ref:t,"aria-labelledby":s},r),a?i.createElement("title",{id:s},a):null,n||(n=i.createElement("path",{d:"M384 352v64c0 17.67-14.33 32-32 32H96c-17.67 0-32-14.33-32-32v-64c0-17.67-14.33-32-32-32s-32 14.33-32 32v64c0 53.02 42.98 96 96 96h256c53.02 0 96-42.98 96-96v-64c0-17.67-14.33-32-32-32S384 334.3 384 352zM201.4 9.375l-128 128c-12.51 12.51-12.49 32.76 0 45.25c12.5 12.5 32.75 12.5 45.25 0L192 109.3V320c0 17.69 14.31 32 32 32s32-14.31 32-32V109.3l73.38 73.38c12.5 12.5 32.75 12.5 45.25 0s12.5-32.75 0-45.25l-128-128C234.1-3.125 213.9-3.125 201.4 9.375z"})))},m=(0,i.forwardRef)(u),v=(a.p,"darkMode");function p(){const e=(0,i.useRef)(""),[t]=(0,o.lq)("/search"),[a,n]=(0,i.useState)("Search"),r=(0,d.k)(),{value:h,toggle:u}=((e=Boolean(localStorage.getItem(v)),t={})=>{const{classNameDark:a="dark",classNameLight:n="light",storageKey:s=v,element:r=globalThis.document&&document.documentElement,transition:c=(document.startViewTransition&&!window.matchMedia("(prefers-reduced-motion: reduce)").matches?document.startViewTransition():void 0)}=t,[o,l]=(0,i.useState)(e),[d,h]=(0,i.useState)({x:0,y:0});(0,i.useEffect)((()=>{const e=localStorage.getItem(s);l(e?"true"===e:window.matchMedia("(prefers-color-scheme: dark)").matches)}),[s]),(0,i.useEffect)((()=>{const e=e=>{const t="true"===localStorage.getItem(s);l(e.matches),t===e.matches&&localStorage.removeItem(s)},t=()=>{const e=localStorage.getItem(s);l(void 0===e?window.matchMedia("(prefers-color-scheme: dark)").matches:"true"===e)};return window.addEventListener("storage",t),window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",e),()=>{window.removeEventListener("storage",t),window.matchMedia("(prefers-color-scheme: dark)").removeEventListener("change",e)}}),[s]);const u=(0,i.useRef)(o);return(0,i.useEffect)((()=>{u.current=o}),[o]),(0,i.useEffect)((()=>{const e=()=>{window.matchMedia("(prefers-color-scheme: dark)").matches===u.current&&localStorage.removeItem(v)};return window.addEventListener("beforeunload",e),()=>{window.removeEventListener("beforeunload",e)}}),[]),(0,i.useEffect)((()=>{if("undefined"===typeof o)return;const e=r,t=()=>{o?(e.classList.remove(n),e.classList.add(a)):(e.classList.remove(a),e.classList.add(n))},{x:s,y:i}=d,l=Math.hypot(Math.max(s,innerWidth-s),Math.max(i,innerHeight-i));c?c.ready.then((()=>{if(t(),0===d.x)return;const a=[`circle(0px at ${s}px ${i}px)`,`circle(${l}px at ${s}px ${i}px)`];e.animate({clipPath:o?[...a].reverse():a},{duration:400,easing:"ease-in-out",pseudoElement:o?"::view-transition-old(root)":"::view-transition-new(root)"})})):t()}),[a,n,o,r]),{value:o,toggle:e=>{l((t=>(s&&(localStorage.setItem(s,String(!t)),h({x:e.clientX,y:e.clientY})),!t)))}}})();return(0,i.useEffect)((()=>{fetch("//v1.hitokoto.cn?c=a").then((e=>e.json())).then((e=>{n(e.hitokoto)}));const e=document.querySelector(".navbar-burger"),t=()=>{const t=document.getElementById(e.dataset.target);e.classList.toggle("is-active"),t.classList.toggle("is-active")};return e.addEventListener("click",t,!1),()=>{e.removeEventListener("click",t,!1)}}),[]),(0,s.jsxs)("nav",{className:"navbar is-transparent",role:"navigation","aria-label":"main navigation",children:[(0,s.jsxs)("div",{className:"navbar-brand",children:[(0,s.jsx)(o.N_,{href:"/",className:"navbar-item",children:(0,s.jsx)("h1",{className:"logo",children:"UPV"})}),(0,s.jsxs)("a",{role:"button",className:"navbar-burger","aria-label":"menu","aria-expanded":"false","data-target":"upv-nav",children:[(0,s.jsx)("span",{"aria-hidden":"true"}),(0,s.jsx)("span",{"aria-hidden":"true"}),(0,s.jsx)("span",{"aria-hidden":"true"})]})]}),(0,s.jsxs)("div",{id:"upv-nav",className:"navbar-menu",children:[(0,s.jsxs)("div",{className:"navbar-start",children:[(0,s.jsx)(o.N_,{href:"/",className:"navbar-item",children:"Home"}),(0,s.jsx)("a",{className:"navbar-item",href:"/anime/index",target:"_blank",children:"Schedule"}),(0,s.jsx)("a",{className:"navbar-item",href:"https://cdn.jsdelivr.net/gh/upvorg/cdn@master/apk/app-arm64-v8a-release.apk",target:"_blank",children:"App"}),(0,s.jsx)("a",{className:"navbar-item",href:"/about",target:"_blank",children:"About"})]}),!t&&(0,s.jsx)("div",{className:"navbar-item center-search",children:(0,s.jsxs)("form",{className:"nav-search-form",onSubmit:t=>{t.preventDefault(),window.open(`/search?k=${e.current}`)},children:[(0,s.jsxs)("div",{className:"nav-search-content",children:[(0,s.jsx)("input",{className:"nav-search-input",type:"text",autoComplete:"off",accessKey:"s",maxLength:100,"x-webkit-speech":"","x-webkit-grammar":"builtin:translate",placeholder:a,title:a,onChange:t=>{e.current=t.target.value}}),(0,s.jsx)("div",{className:"nav-search-clean",children:(0,s.jsx)("button",{className:"delete is-small",type:"reset"})})]}),(0,s.jsx)("button",{className:"nav-search-btn icon",children:(0,s.jsx)("svg",{"aria-hidden":"true",focusable:"false","data-prefix":"fas","data-icon":"search",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",className:"svg-inline--fa fa-search fa-w-16 fa-fw",children:(0,s.jsx)("path",{fill:"currentColor",d:"M505 442.7L405.3 343c-4.5-4.5-10.6-7-17-7H372c27.6-35.3 44-79.7 44-128C416 93.1 322.9 0 208 0S0 93.1 0 208s93.1 208 208 208c48.3 0 92.7-16.4 128-44v16.3c0 6.4 2.5 12.5 7 17l99.7 99.7c9.4 9.4 24.6 9.4 33.9 0l28.3-28.3c9.4-9.4 9.4-24.6.1-34zM208 336c-70.7 0-128-57.2-128-128 0-70.7 57.2-128 128-128 70.7 0 128 57.2 128 128 0 70.7-57.2 128-128 128z"})})})]})}),(0,s.jsxs)("div",{className:"navbar-end",children:[(0,s.jsx)("div",{className:"navbar-item theme",onClick:u,children:(0,s.jsx)("button",{className:"button is-light","aria-haspopup":"true","aria-controls":"dropdown-menu4",children:h?(0,s.jsx)("svg",{viewBox:"0 0 1024 1024",children:(0,s.jsx)("path",{d:"M185.335 178.178l-2.742-2.384c-13.39-11.534-14.895-31.74-3.36-45.13a32 32 0 0 1 4.324-4.158C249.354 74.17 337.575 48 448.22 48 704.358 48 912 255.74 912 512l-0.062 7.673C907.842 772.394 701.797 976 448.22 976c-110.645 0-198.866-26.169-264.663-78.506a32 32 0 0 1-4.325-4.159c-11.419-13.256-10.058-33.192 2.962-44.78l0.399-0.35 2.742-2.383c89.13-78.201 134.016-188.043 134.66-329.525L320 512c0.253-143.557-44.635-254.831-134.665-333.822z",fill:"#FFC445"})}):(0,s.jsxs)("svg",{viewBox:"0 0 1028 1024",children:[(0,s.jsx)("path",{d:"M514.133333 509.866667m-256 0a256 256 0 1 0 512 0 256 256 0 1 0-512 0Z",fill:"#FFC445"}),(0,s.jsx)("path",{d:"M514.133333 170.666667c-19.2 0-32-14.933333-32-32V29.866667c0-17.066667 12.8-29.866667 29.866667-29.866667h2.133333c17.066667 0 32 14.933333 32 32v108.8c0 14.933333-14.933333 29.866667-32 29.866667zM514.133333 1024c-19.2 0-32-14.933333-32-32v-108.8c0-17.066667 14.933333-32 32-32h2.133334c17.066667 0 32 14.933333 32 32v108.8c-2.133333 17.066667-17.066667 32-34.133334 32zM853.333333 509.866667c0-19.2 14.933333-32 32-32h108.8c17.066667 0 32 14.933333 32 32v2.133333c0 17.066667-14.933333 32-32 32h-108.8c-17.066667-2.133333-32-17.066667-32-34.133333zM0 509.866667c0-19.2 14.933333-32 32-32h108.8c17.066667 0 32 14.933333 32 32v2.133333c0 17.066667-14.933333 32-32 32H32c-17.066667-2.133333-32-17.066667-32-34.133333zM742.4 247.466667c-12.8-12.8-12.8-32-2.133333-44.8l76.8-76.8c12.8-12.8 32-12.8 44.8 0V128c12.8 12.8 12.8 32 0 44.8l-76.8 76.8c-10.666667 10.666667-32 10.666667-42.666667-2.133333zM138.666667 851.2c-12.8-12.8-12.8-34.133333-2.133334-44.8l76.8-76.8c12.8-12.8 32-12.8 44.8 0l2.133334 2.133333c12.8 12.8 12.8 32 0 44.8L183.466667 853.333333c-12.8 10.666667-32 10.666667-44.8-2.133333zM740.266667 727.466667c12.8-12.8 34.133333-12.8 44.8-2.133334l76.8 76.8c12.8 12.8 12.8 32 0 44.8l-2.133334 2.133334c-12.8 12.8-32 12.8-44.8 0l-76.8-76.8c-10.666667-12.8-10.666667-32 2.133334-44.8zM136.533333 123.733333c12.8-12.8 34.133333-12.8 44.8-2.133333l76.8 76.8c12.8 12.8 12.8 32 0 44.8l-2.133333 2.133333c-12.8 12.8-32 12.8-44.8 0L136.533333 168.533333c-10.666667-12.8-10.666667-32 0-44.8z",fill:"#FFC445"})]})})}),(0,s.jsx)("div",{className:"navbar-item upload",children:(0,s.jsx)("a",{href:c.PK,target:"_blank",children:(0,s.jsxs)("button",{className:"button is-primary","aria-haspopup":"true","aria-controls":"dropdown-menu4",children:[(0,s.jsx)(m,{}),"\xa0\xa0",(0,s.jsx)("strong",{children:"Upload"})]})})}),r?(0,s.jsxs)("div",{className:"navbar-item has-dropdown is-hoverable",children:[(0,s.jsx)("div",{className:"navbar-link is-arrowless",children:(0,s.jsx)("figure",{className:"image avatar",children:(0,s.jsx)("img",{className:"is-rounded",src:r.Avatar})})}),(0,s.jsxs)("div",{className:"navbar-dropdown is-right",children:[(0,s.jsx)("a",{className:"navbar-item",href:c.PK+`/user/profile?name=${r.Name}`,target:"_blank",children:"\u6211\u7684\u8d44\u6599"}),(0,s.jsx)("hr",{className:"navbar-divider"}),(0,s.jsx)("a",{className:"navbar-item",onClick:()=>l.N.logout(),children:"\u9000\u51fa\u767b\u5f55"})]})]}):(0,s.jsx)("div",{className:"navbar-item",children:(0,s.jsx)("div",{className:"buttons",children:(0,s.jsx)("a",{href:"/login",className:"button is-light",children:"Log in"})})})]})]})]})}var g=function(e,t){var a={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(a[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var s=0;for(n=Object.getOwnPropertySymbols(e);s((0,i.useEffect)((()=>{const e=document.querySelector(".upv-header__bar"),t=t=>{f.scrollTop>=222?e.classList.add("fixed-header"):e.classList.remove("fixed-header")};return f.addEventListener("scroll",t),()=>{f.removeEventListener("scroll",t)}}),[]),(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{className:"upv-header",children:[(0,s.jsx)("div",{className:"upv-header__bar",children:(0,s.jsx)(p,{})}),(0,s.jsx)("div",{className:"upv-header__banner",children:(0,s.jsx)("div",{className:"taper-line"})})]}),(0,s.jsx)("main",{className:"container",children:e.children})]})),j=e=>(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{className:"upv-header",children:(0,s.jsx)("div",{className:"upv-header__bar fixed-header",children:(0,s.jsx)(p,{})})}),(0,s.jsx)("main",{className:"container",children:e.children})]}),b=e=>{var{component:t,layout:a,children:n}=e,r=g(e,["component","layout","children"]);return(0,i.useEffect)((()=>{root.scrollTo({top:0,left:0})}),[]),(0,s.jsx)(o.qh,Object.assign({},r,{component:({params:e})=>(0,s.jsx)(a,{children:(0,s.jsx)(i.Suspense,{fallback:(0,s.jsx)(y,{}),children:t?(0,s.jsx)(t,Object.assign({},e)):"function"===typeof n?n(e):n})})}))},N=e=>{var t=g(e,[]);return(0,s.jsx)(b,Object.assign({},t,{layout:x}))},w=e=>{var t=g(e,[]);return(0,s.jsx)(b,Object.assign({},t,{layout:j}))};function y(){return(0,s.jsxs)("div",{style:{height:"80vh",lineHeight:"80vh",textAlign:"center",fontSize:"32px"},children:[(0,s.jsx)("h2",{className:"__loading__",children:"\ud83c\udf00 Loading..."}),(0,s.jsx)("style",{children:".__loading__{ animation: loading 5s infinite ease-in-out; }"})]})}var E=a(4656),O=a(4837);const S=()=>{const[e,t]=(0,i.useState)(null);return(0,i.useEffect)((()=>{c.pY.interceptors.response.use((e=>e),(e=>(e.err&&E.Ay.error(e.err),401===e.status&&(t(null),l.N.logout(`${c.jg}/login?from=${location.href}`)),e)));const e=O.H.get(c.od),a=localStorage.getItem(c.Pz);a&&e?t(JSON.parse(a)):e&&c.pY.get("/user").then((e=>{e.data&&(t(e.data),localStorage.setItem(c.Pz,JSON.stringify(e.data)))}))}),[]),(0,s.jsxs)(i.Fragment,{children:[(0,s.jsx)(o.Ix,{children:(0,s.jsx)(d.R.Provider,{value:e,children:(0,s.jsxs)(o.dO,{children:[(0,s.jsx)(N,{path:"/",component:(0,i.lazy)((()=>Promise.all([a.e(963),a.e(647)]).then(a.bind(a,2647))))}),(0,s.jsx)(N,{path:"/login",component:(0,i.lazy)((()=>Promise.all([a.e(963),a.e(279)]).then(a.bind(a,4279))))}),(0,s.jsx)(w,{path:"/p/:id",component:(0,i.lazy)((()=>Promise.all([a.e(714),a.e(963),a.e(570),a.e(291),a.e(498)]).then(a.bind(a,4499))))}),(0,s.jsx)(w,{path:"/v/:id",component:(0,i.lazy)((()=>Promise.all([a.e(714),a.e(458),a.e(533),a.e(963),a.e(570),a.e(291),a.e(528)]).then(a.bind(a,4413))))}),(0,s.jsx)(w,{path:"/pv/tag",component:(0,i.lazy)((()=>Promise.all([a.e(963),a.e(122)]).then(a.bind(a,7122))))}),(0,s.jsx)(w,{path:"/search",component:(0,i.lazy)((()=>Promise.all([a.e(963),a.e(850)]).then(a.bind(a,7850))))}),(0,s.jsx)(w,{path:"/about",component:(0,i.lazy)((()=>Promise.all([a.e(714),a.e(963),a.e(570),a.e(197)]).then(a.bind(a,9197))))}),(0,s.jsx)(w,{path:"/feedback",component:(0,i.lazy)((()=>Promise.all([a.e(963),a.e(893)]).then(a.bind(a,893))))}),(0,s.jsx)(w,{path:"/anime/index",component:(0,i.lazy)((()=>Promise.all([a.e(963),a.e(513)]).then(a.bind(a,8513))))}),(0,s.jsx)(w,{path:"/:rest*",component:(0,i.lazy)((()=>Promise.all([a.e(963),a.e(794)]).then(a.bind(a,3794))))})]})})}),(0,s.jsxs)("footer",{className:"footer",children:[(0,s.jsx)("div",{className:"bd-footer-support",children:(0,s.jsxs)("h4",{className:"bd-footer-title",children:[(0,s.jsx)("strong",{children:"Support"})," ",(0,s.jsx)("span",{className:"font-family-logo",children:"UPV"})]})}),(0,s.jsxs)("div",{className:"content",children:[(0,s.jsxs)("p",{className:"links",children:[(0,s.jsx)("a",{className:"link",href:"/feedback",target:"_blank",children:"\u7559\u8a00"})," ","|"," ",(0,s.jsx)("a",{className:"link",href:"/feedback",target:"_blank",children:"\u53cd\u9988"})," ","|"," ",(0,s.jsx)("a",{className:"link",href:"/about",target:"_blank",children:"\u5173\u4e8e"})]}),(0,s.jsxs)("p",{children:["Copyright \xa9 2022"," ",(0,s.jsx)("a",{href:"/",className:"font-family-logo",children:"UPV"})]})]})]}),(0,s.jsx)(E.l$,{position:"top-right",toastOptions:{success:{iconTheme:{primary:c.VG,secondary:"#fff"}}},containerStyle:{top:70,right:20}})]})};a(5232),(0,r.H)(document.getElementById("root")).render((0,s.jsx)(S,{}))},4857:(e,t,a)=>{a.d(t,{R:()=>s,k:()=>r});var n=a(548);const s=n.createContext(null),r=()=>n.useContext(s);s.displayName="UserContext"},5375:(e,t,a)=>{a.d(t,{N:()=>n});var n,s=a(3987),r=a(4837);!function(e){e.logout=function(e){r.H.del(s.od,"/",s.V2),localStorage.removeItem(s.n),localStorage.removeItem(s.Pz),location.href=e||location.href},e.getAccessToken=function(){return r.H.get(s.od)},e.login=function(e){localStorage.setItem(s.n,r.H.get(s.od)),localStorage.setItem(s.Pz,JSON.stringify(e))}}(n||(n={}))},3987:(e,t,a)=>{a.d(t,{PK:()=>d,od:()=>m,h8:()=>p,V2:()=>o,jg:()=>l,n:()=>u,Pz:()=>h,VG:()=>v,pY:()=>x,OF:()=>j});var n=a(4837),s=a(3842);class r{constructor(){this.resolve=e=>e,this.reject=e=>e}use(e,t){this.resolve=e,t&&(this.reject=t)}}const c=new s.q({max:10});class i{constructor(e){var t,a,n;this.baseUrl=null!==(t=e.baseUrl)&&void 0!==t?t:"",this.headers=null!==(a=e.headers)&&void 0!==a?a:{},this.config=null!==(n=e.config)&&void 0!==n?n:{},this.interceptors={request:new r,response:new r}}static create(e,t){return new i({baseUrl:e,headers:null===t||void 0===t?void 0:t.header,config:null===t||void 0===t?void 0:t.config})}get(e,{headers:t,data:a}={}){return this._send(e,"GET",t,a)}post(e,{headers:t,data:a}={}){return this._send(e,"POST",t,a)}put(e,{headers:t,data:a}={}){return this._send(e,"PUT",t,a)}delete(e,{headers:t,data:a}={}){return this._send(e,"DELETE",t,a)}_send(e,t,a={},n={}){var s,r;const i=JSON.stringify({url:e,method:t,headers:a,data:n});if(c.has(i))return c.get(i);const o=null===(r=(s=this.interceptors.request).resolve)||void 0===r?void 0:r.call(s,Object.assign(Object.assign({},this.headers),a));let l;return n instanceof FormData||!this.headers["Content-type"]||(o["Content-type"]="application/json; charset=UTF-8"),fetch(`${this.baseUrl}${this.baseUrl?encodeURIComponent(e):e}`,Object.assign(Object.assign({method:t,headers:o},this.config),!["GET","HEAD"].includes(t.toUpperCase())&&{body:n instanceof FormData?n:JSON.stringify(n)})).then((e=>{l=e;const t=e.json();c.set(i,t);try{return t}catch(a){throw a}}),(e=>{var t,a;return console.error("<--- request error"+e),null===(a=(t=this.interceptors.request).reject)||void 0===a?void 0:a.call(t,e)})).then((e=>{var t,a,n,s,r;if(!l.ok)throw null===(a=(t=this.interceptors.response).reject)||void 0===a?void 0:a.call(t,Object.assign({status:l.status,statusText:l.statusText},e));return null!==(r=null===(s=(n=this.interceptors.response).resolve)||void 0===s?void 0:s.call(n,e))&&void 0!==r?r:e}))}}const o="xn--7ov117aclgs4c.life",l="https://xn--7ov117aclgs4c.life",d="https://admin.xn--7ov117aclgs4c.life",h="USER_INFO",u="ACCESS_TOKEN",m="access_token",v="#6668ab",p=["\u5468\u65e5","\u5468\u4e00","\u5468\u4e8c","\u5468\u4e09","\u5468\u56db","\u5468\u4e94","\u5468\u516d"];var g;!function(e){e[e.NORMAL=4]="NORMAL",e[e.CREATOR=3]="CREATOR",e[e.ADMIN=2]="ADMIN",e[e.ROOT=1]="ROOT",e.ALL=""}(g||(g={}));g.NORMAL,g.CREATOR,g.ADMIN,g.ROOT,g.ALL;var f;!function(e){e[e.DRAFT=5]="DRAFT",e[e.PUBLISHED=4]="PUBLISHED",e[e.PENDING=3]="PENDING",e[e.REJECT=2]="REJECT",e[e.DELETED=1]="DELETED",e.ALL=""}(f||(f={}));f.PUBLISHED,f.PENDING,f.REJECT,f.ALL;const x=i.create("https://api.xn--7ov117aclgs4c.life/api",{config:{credentials:"include"}});x.interceptors.request.use((e=>{const t=n.H.get(m);return Object.assign(Object.assign({},e),{Authorization:t?`Bearer ${t}`:""})})),document.location.search.includes("cors")&&localStorage.setItem("cors","1");const j=i.create("1"==localStorage.getItem("cors")?"":"https://cors-flame.vercel.app/api/cors?url=")},5232:(e,t,a)=>{a.r(t);var n=function(e,t,a,n){return new(a||(a=Promise))((function(s,r){function c(e){try{o(n.next(e))}catch(t){r(t)}}function i(e){try{o(n.throw(e))}catch(t){r(t)}}function o(e){var t;e.done?s(e.value):(t=e.value,t instanceof a?t:new a((function(e){e(t)}))).then(c,i)}o((n=n.apply(e,t||[])).next())}))};let s=!1;if(document.location.search.includes("debug")&&localStorage.setItem("debug","1"),"1"!=localStorage.getItem("debug")){const e=e=>n(void 0,void 0,void 0,(function*(){e.isSafari&&(document.body.innerHTML='

\ud83d\udc7e\u6253\u65ad\u65bd\u6cd5!

',yield new Promise((e=>setTimeout(e,1e3)))),window.close(),window.location.href="https://www.baidu.com/s?wd=ip"}));a.e(643).then(a.t.bind(a,2940,23)).then((function(t){t.addListener((function(a){s=a,a&&e(t)})),t.launch(),window.addEventListener("pageshow",(a=>{var n,r;(a.persisted||2==(null===(r=null===(n=window.performance)||void 0===n?void 0:n.navigation)||void 0===r?void 0:r.type))&&s&&e(t)}),!1)}))}},4837:(e,t,a)=>{var n;a.d(t,{H:()=>n}),function(e){e.get=function(e){for(var t=e+"=",a=document.cookie.split(";"),n=0;n{e.O(0,[784,648,881],(()=>{return t=4623,e(e.s=t);var t}));e.O()}]); \ No newline at end of file diff --git a/static/js/app.5cfb6921.js b/static/js/app.5cfb6921.js new file mode 100644 index 00000000..6b60d73e --- /dev/null +++ b/static/js/app.5cfb6921.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk_web_index=self.webpackChunk_web_index||[]).push([[524],{5282:(e,t,a)=>{var n,s=a(1914),r=a(1764),c=a(3987),i=a(1394),o=a(6730),l=a(5375),d=a(4857);function h(){return h=Object.assign?Object.assign.bind():function(e){for(var t=1;t{let{title:a,titleId:s,...r}=e;return i.createElement("svg",h({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512",ref:t,"aria-labelledby":s},r),a?i.createElement("title",{id:s},a):null,n||(n=i.createElement("path",{d:"M384 352v64c0 17.67-14.33 32-32 32H96c-17.67 0-32-14.33-32-32v-64c0-17.67-14.33-32-32-32s-32 14.33-32 32v64c0 53.02 42.98 96 96 96h256c53.02 0 96-42.98 96-96v-64c0-17.67-14.33-32-32-32S384 334.3 384 352zM201.4 9.375l-128 128c-12.51 12.51-12.49 32.76 0 45.25c12.5 12.5 32.75 12.5 45.25 0L192 109.3V320c0 17.69 14.31 32 32 32s32-14.31 32-32V109.3l73.38 73.38c12.5 12.5 32.75 12.5 45.25 0s12.5-32.75 0-45.25l-128-128C234.1-3.125 213.9-3.125 201.4 9.375z"})))},m=(0,i.forwardRef)(u),v=(a.p,"darkMode");function p(){const e=(0,i.useRef)(""),[t]=(0,o.lq)("/search"),[a,n]=(0,i.useState)("Search"),r=(0,d.k)(),{value:h,toggle:u}=((e=Boolean(localStorage.getItem(v)),t={})=>{const{classNameDark:a="dark",classNameLight:n="light",storageKey:s=v,element:r=globalThis.document&&document.documentElement,transition:c=(document.startViewTransition&&!window.matchMedia("(prefers-reduced-motion: reduce)").matches?document.startViewTransition():void 0)}=t,[o,l]=(0,i.useState)(e),[d,h]=(0,i.useState)({x:0,y:0});(0,i.useEffect)((()=>{const e=localStorage.getItem(s);l(e?"true"===e:window.matchMedia("(prefers-color-scheme: dark)").matches)}),[s]),(0,i.useEffect)((()=>{const e=e=>{const t="true"===localStorage.getItem(s);l(e.matches),t===e.matches&&localStorage.removeItem(s)},t=()=>{const e=localStorage.getItem(s);l(void 0===e?window.matchMedia("(prefers-color-scheme: dark)").matches:"true"===e)};return window.addEventListener("storage",t),window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",e),()=>{window.removeEventListener("storage",t),window.matchMedia("(prefers-color-scheme: dark)").removeEventListener("change",e)}}),[s]);const u=(0,i.useRef)(o);return(0,i.useEffect)((()=>{u.current=o}),[o]),(0,i.useEffect)((()=>{const e=()=>{window.matchMedia("(prefers-color-scheme: dark)").matches===u.current&&localStorage.removeItem(v)};return window.addEventListener("beforeunload",e),()=>{window.removeEventListener("beforeunload",e)}}),[]),(0,i.useEffect)((()=>{if("undefined"===typeof o)return;const e=r,t=()=>{o?(e.classList.remove(n),e.classList.add(a)):(e.classList.remove(a),e.classList.add(n))},{x:s,y:i}=d,l=Math.hypot(Math.max(s,innerWidth-s),Math.max(i,innerHeight-i));c?c.ready.then((()=>{if(t(),0===d.x)return;const a=[`circle(0px at ${s}px ${i}px)`,`circle(${l}px at ${s}px ${i}px)`];e.animate({clipPath:o?[...a].reverse():a},{duration:400,easing:"ease-in-out",pseudoElement:o?"::view-transition-old(root)":"::view-transition-new(root)"})})):t()}),[a,n,o,r]),{value:o,toggle:e=>{l((t=>(s&&(localStorage.setItem(s,String(!t)),h({x:e.clientX,y:e.clientY})),!t)))}}})();return(0,i.useEffect)((()=>{fetch("//v1.hitokoto.cn?c=a").then((e=>e.json())).then((e=>{n(e.hitokoto)}));const e=document.querySelector(".navbar-burger"),t=()=>{const t=document.getElementById(e.dataset.target);e.classList.toggle("is-active"),t.classList.toggle("is-active")};return e.addEventListener("click",t,!1),()=>{e.removeEventListener("click",t,!1)}}),[]),(0,s.jsxs)("nav",{className:"navbar is-transparent",role:"navigation","aria-label":"main navigation",children:[(0,s.jsxs)("div",{className:"navbar-brand",children:[(0,s.jsx)(o.N_,{href:"/",className:"navbar-item",children:(0,s.jsx)("h1",{className:"logo",children:"UPV"})}),(0,s.jsxs)("a",{role:"button",className:"navbar-burger","aria-label":"menu","aria-expanded":"false","data-target":"upv-nav",children:[(0,s.jsx)("span",{"aria-hidden":"true"}),(0,s.jsx)("span",{"aria-hidden":"true"}),(0,s.jsx)("span",{"aria-hidden":"true"})]})]}),(0,s.jsxs)("div",{id:"upv-nav",className:"navbar-menu",children:[(0,s.jsxs)("div",{className:"navbar-start",children:[(0,s.jsx)(o.N_,{href:"/",className:"navbar-item",children:"Home"}),(0,s.jsx)("a",{className:"navbar-item",href:"/anime/index",target:"_blank",children:"Schedule"}),(0,s.jsx)("a",{className:"navbar-item",href:"https://cdn.jsdelivr.net/gh/upvorg/cdn@master/apk/app-arm64-v8a-release.apk",target:"_blank",children:"App"}),(0,s.jsx)("a",{className:"navbar-item",href:"/about",target:"_blank",children:"About"})]}),!t&&(0,s.jsx)("div",{className:"navbar-item center-search",children:(0,s.jsxs)("form",{className:"nav-search-form",onSubmit:t=>{t.preventDefault(),window.open(`/search?k=${e.current}`)},children:[(0,s.jsxs)("div",{className:"nav-search-content",children:[(0,s.jsx)("input",{className:"nav-search-input",type:"text",autoComplete:"off",accessKey:"s",maxLength:100,"x-webkit-speech":"","x-webkit-grammar":"builtin:translate",placeholder:a,title:a,onChange:t=>{e.current=t.target.value}}),(0,s.jsx)("div",{className:"nav-search-clean",children:(0,s.jsx)("button",{className:"delete is-small",type:"reset"})})]}),(0,s.jsx)("button",{className:"nav-search-btn icon",children:(0,s.jsx)("svg",{"aria-hidden":"true",focusable:"false","data-prefix":"fas","data-icon":"search",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",className:"svg-inline--fa fa-search fa-w-16 fa-fw",children:(0,s.jsx)("path",{fill:"currentColor",d:"M505 442.7L405.3 343c-4.5-4.5-10.6-7-17-7H372c27.6-35.3 44-79.7 44-128C416 93.1 322.9 0 208 0S0 93.1 0 208s93.1 208 208 208c48.3 0 92.7-16.4 128-44v16.3c0 6.4 2.5 12.5 7 17l99.7 99.7c9.4 9.4 24.6 9.4 33.9 0l28.3-28.3c9.4-9.4 9.4-24.6.1-34zM208 336c-70.7 0-128-57.2-128-128 0-70.7 57.2-128 128-128 70.7 0 128 57.2 128 128 0 70.7-57.2 128-128 128z"})})})]})}),(0,s.jsxs)("div",{className:"navbar-end",children:[(0,s.jsx)("div",{className:"navbar-item theme",onClick:u,children:(0,s.jsx)("button",{className:"button is-light","aria-haspopup":"true","aria-controls":"dropdown-menu4",children:h?(0,s.jsx)("svg",{viewBox:"0 0 1024 1024",children:(0,s.jsx)("path",{d:"M185.335 178.178l-2.742-2.384c-13.39-11.534-14.895-31.74-3.36-45.13a32 32 0 0 1 4.324-4.158C249.354 74.17 337.575 48 448.22 48 704.358 48 912 255.74 912 512l-0.062 7.673C907.842 772.394 701.797 976 448.22 976c-110.645 0-198.866-26.169-264.663-78.506a32 32 0 0 1-4.325-4.159c-11.419-13.256-10.058-33.192 2.962-44.78l0.399-0.35 2.742-2.383c89.13-78.201 134.016-188.043 134.66-329.525L320 512c0.253-143.557-44.635-254.831-134.665-333.822z",fill:"#FFC445"})}):(0,s.jsxs)("svg",{viewBox:"0 0 1028 1024",children:[(0,s.jsx)("path",{d:"M514.133333 509.866667m-256 0a256 256 0 1 0 512 0 256 256 0 1 0-512 0Z",fill:"#FFC445"}),(0,s.jsx)("path",{d:"M514.133333 170.666667c-19.2 0-32-14.933333-32-32V29.866667c0-17.066667 12.8-29.866667 29.866667-29.866667h2.133333c17.066667 0 32 14.933333 32 32v108.8c0 14.933333-14.933333 29.866667-32 29.866667zM514.133333 1024c-19.2 0-32-14.933333-32-32v-108.8c0-17.066667 14.933333-32 32-32h2.133334c17.066667 0 32 14.933333 32 32v108.8c-2.133333 17.066667-17.066667 32-34.133334 32zM853.333333 509.866667c0-19.2 14.933333-32 32-32h108.8c17.066667 0 32 14.933333 32 32v2.133333c0 17.066667-14.933333 32-32 32h-108.8c-17.066667-2.133333-32-17.066667-32-34.133333zM0 509.866667c0-19.2 14.933333-32 32-32h108.8c17.066667 0 32 14.933333 32 32v2.133333c0 17.066667-14.933333 32-32 32H32c-17.066667-2.133333-32-17.066667-32-34.133333zM742.4 247.466667c-12.8-12.8-12.8-32-2.133333-44.8l76.8-76.8c12.8-12.8 32-12.8 44.8 0V128c12.8 12.8 12.8 32 0 44.8l-76.8 76.8c-10.666667 10.666667-32 10.666667-42.666667-2.133333zM138.666667 851.2c-12.8-12.8-12.8-34.133333-2.133334-44.8l76.8-76.8c12.8-12.8 32-12.8 44.8 0l2.133334 2.133333c12.8 12.8 12.8 32 0 44.8L183.466667 853.333333c-12.8 10.666667-32 10.666667-44.8-2.133333zM740.266667 727.466667c12.8-12.8 34.133333-12.8 44.8-2.133334l76.8 76.8c12.8 12.8 12.8 32 0 44.8l-2.133334 2.133334c-12.8 12.8-32 12.8-44.8 0l-76.8-76.8c-10.666667-12.8-10.666667-32 2.133334-44.8zM136.533333 123.733333c12.8-12.8 34.133333-12.8 44.8-2.133333l76.8 76.8c12.8 12.8 12.8 32 0 44.8l-2.133333 2.133333c-12.8 12.8-32 12.8-44.8 0L136.533333 168.533333c-10.666667-12.8-10.666667-32 0-44.8z",fill:"#FFC445"})]})})}),(0,s.jsx)("div",{className:"navbar-item upload",children:(0,s.jsx)("a",{href:c.PK,target:"_blank",children:(0,s.jsxs)("button",{className:"button is-primary","aria-haspopup":"true","aria-controls":"dropdown-menu4",children:[(0,s.jsx)(m,{}),"\xa0\xa0",(0,s.jsx)("strong",{children:"Upload"})]})})}),r?(0,s.jsxs)("div",{className:"navbar-item has-dropdown is-hoverable",children:[(0,s.jsx)("div",{className:"navbar-link is-arrowless",children:(0,s.jsx)("figure",{className:"image avatar",children:(0,s.jsx)("img",{className:"is-rounded",src:r.Avatar})})}),(0,s.jsxs)("div",{className:"navbar-dropdown is-right",children:[(0,s.jsx)("a",{className:"navbar-item",href:c.PK+`/user/profile?name=${r.Name}`,target:"_blank",children:"\u6211\u7684\u8d44\u6599"}),(0,s.jsx)("hr",{className:"navbar-divider"}),(0,s.jsx)("a",{className:"navbar-item",onClick:()=>l.N.logout(),children:"\u9000\u51fa\u767b\u5f55"})]})]}):(0,s.jsx)("div",{className:"navbar-item",children:(0,s.jsx)("div",{className:"buttons",children:(0,s.jsx)("a",{href:"/login",className:"button is-light",children:"Log in"})})})]})]})]})}var g=function(e,t){var a={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(a[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var s=0;for(n=Object.getOwnPropertySymbols(e);s((0,i.useEffect)((()=>{const e=document.querySelector(".upv-header__bar"),t=t=>{f.scrollTop>=222?e.classList.add("fixed-header"):e.classList.remove("fixed-header")};return f.addEventListener("scroll",t),()=>{f.removeEventListener("scroll",t)}}),[]),(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{className:"upv-header",children:[(0,s.jsx)("div",{className:"upv-header__bar",children:(0,s.jsx)(p,{})}),(0,s.jsx)("div",{className:"upv-header__banner",children:(0,s.jsx)("div",{className:"taper-line"})})]}),(0,s.jsx)("main",{className:"container",children:e.children})]})),j=e=>(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{className:"upv-header",children:(0,s.jsx)("div",{className:"upv-header__bar fixed-header",children:(0,s.jsx)(p,{})})}),(0,s.jsx)("main",{className:"container",children:e.children})]}),b=e=>{var{component:t,layout:a,children:n}=e,r=g(e,["component","layout","children"]);return(0,i.useEffect)((()=>{root.scrollTo({top:0,left:0})}),[]),(0,s.jsx)(o.qh,Object.assign({},r,{component:({params:e})=>(0,s.jsx)(a,{children:(0,s.jsx)(i.Suspense,{fallback:(0,s.jsx)(y,{}),children:t?(0,s.jsx)(t,Object.assign({},e)):"function"===typeof n?n(e):n})})}))},N=e=>{var t=g(e,[]);return(0,s.jsx)(b,Object.assign({},t,{layout:x}))},w=e=>{var t=g(e,[]);return(0,s.jsx)(b,Object.assign({},t,{layout:j}))};function y(){return(0,s.jsxs)("div",{style:{height:"80vh",lineHeight:"80vh",textAlign:"center",fontSize:"32px"},children:[(0,s.jsx)("h2",{className:"__loading__",children:"\ud83c\udf00 Loading..."}),(0,s.jsx)("style",{children:".__loading__{ animation: loading 5s infinite ease-in-out; }"})]})}var E=a(4332),O=a(4837);const S=()=>{const[e,t]=(0,i.useState)(null);return(0,i.useEffect)((()=>{c.pY.interceptors.response.use((e=>e),(e=>(e.err&&E.Ay.error(e.err),401===e.status&&(t(null),l.N.logout(`${c.jg}/login?from=${location.href}`)),e)));const e=O.H.get(c.od),a=localStorage.getItem(c.Pz);a&&e?t(JSON.parse(a)):e&&c.pY.get("/user").then((e=>{e.data&&(t(e.data),localStorage.setItem(c.Pz,JSON.stringify(e.data)))}))}),[]),(0,s.jsxs)(i.Fragment,{children:[(0,s.jsx)(o.Ix,{children:(0,s.jsx)(d.R.Provider,{value:e,children:(0,s.jsxs)(o.dO,{children:[(0,s.jsx)(N,{path:"/",component:(0,i.lazy)((()=>Promise.all([a.e(413),a.e(395)]).then(a.bind(a,3395))))}),(0,s.jsx)(N,{path:"/login",component:(0,i.lazy)((()=>Promise.all([a.e(413),a.e(636)]).then(a.bind(a,2636))))}),(0,s.jsx)(w,{path:"/p/:id",component:(0,i.lazy)((()=>Promise.all([a.e(714),a.e(413),a.e(713),a.e(467),a.e(562)]).then(a.bind(a,7089))))}),(0,s.jsx)(w,{path:"/v/:id",component:(0,i.lazy)((()=>Promise.all([a.e(714),a.e(458),a.e(533),a.e(413),a.e(713),a.e(467),a.e(86)]).then(a.bind(a,829))))}),(0,s.jsx)(w,{path:"/pv/tag",component:(0,i.lazy)((()=>Promise.all([a.e(413),a.e(122)]).then(a.bind(a,7122))))}),(0,s.jsx)(w,{path:"/search",component:(0,i.lazy)((()=>Promise.all([a.e(413),a.e(649)]).then(a.bind(a,8649))))}),(0,s.jsx)(w,{path:"/about",component:(0,i.lazy)((()=>Promise.all([a.e(714),a.e(413),a.e(713),a.e(197)]).then(a.bind(a,9197))))}),(0,s.jsx)(w,{path:"/feedback",component:(0,i.lazy)((()=>Promise.all([a.e(413),a.e(566)]).then(a.bind(a,1566))))}),(0,s.jsx)(w,{path:"/anime/index",component:(0,i.lazy)((()=>Promise.all([a.e(413),a.e(410)]).then(a.bind(a,9410))))}),(0,s.jsx)(w,{path:"/:rest*",component:(0,i.lazy)((()=>Promise.all([a.e(413),a.e(794)]).then(a.bind(a,3794))))})]})})}),(0,s.jsxs)("footer",{className:"footer",children:[(0,s.jsx)("div",{className:"bd-footer-support",children:(0,s.jsxs)("h4",{className:"bd-footer-title",children:[(0,s.jsx)("strong",{children:"Support"})," ",(0,s.jsx)("span",{className:"font-family-logo",children:"UPV"})]})}),(0,s.jsxs)("div",{className:"content",children:[(0,s.jsxs)("p",{className:"links",children:[(0,s.jsx)("a",{className:"link",href:"/feedback",target:"_blank",children:"\u7559\u8a00"})," ","|"," ",(0,s.jsx)("a",{className:"link",href:"/feedback",target:"_blank",children:"\u53cd\u9988"})," ","|"," ",(0,s.jsx)("a",{className:"link",href:"/about",target:"_blank",children:"\u5173\u4e8e"})]}),(0,s.jsxs)("p",{children:["Copyright \xa9 2022"," ",(0,s.jsx)("a",{href:"/",className:"font-family-logo",children:"UPV"})]})]})]}),(0,s.jsx)(E.l$,{position:"top-right",toastOptions:{success:{iconTheme:{primary:c.VG,secondary:"#fff"}}},containerStyle:{top:70,right:20}})]})};a(5232),(0,r.H)(document.getElementById("root")).render((0,s.jsx)(S,{}))},4857:(e,t,a)=>{a.d(t,{R:()=>s,k:()=>r});var n=a(1394);const s=n.createContext(null),r=()=>n.useContext(s);s.displayName="UserContext"},5375:(e,t,a)=>{a.d(t,{N:()=>n});var n,s=a(3987),r=a(4837);!function(e){e.logout=function(e){r.H.del(s.od,"/",s.V2),localStorage.removeItem(s.n),localStorage.removeItem(s.Pz),location.href=e||location.href},e.getAccessToken=function(){return r.H.get(s.od)},e.login=function(e){localStorage.setItem(s.n,r.H.get(s.od)),localStorage.setItem(s.Pz,JSON.stringify(e))}}(n||(n={}))},3987:(e,t,a)=>{a.d(t,{PK:()=>d,od:()=>m,h8:()=>p,V2:()=>o,jg:()=>l,n:()=>u,Pz:()=>h,VG:()=>v,pY:()=>x,OF:()=>j});var n=a(4837),s=a(8288);class r{constructor(){this.resolve=e=>e,this.reject=e=>e}use(e,t){this.resolve=e,t&&(this.reject=t)}}const c=new s.q({max:10});class i{constructor(e){var t,a,n;this.baseUrl=null!==(t=e.baseUrl)&&void 0!==t?t:"",this.headers=null!==(a=e.headers)&&void 0!==a?a:{},this.config=null!==(n=e.config)&&void 0!==n?n:{},this.interceptors={request:new r,response:new r}}static create(e,t){return new i({baseUrl:e,headers:null===t||void 0===t?void 0:t.header,config:null===t||void 0===t?void 0:t.config})}get(e,{headers:t,data:a}={}){return this._send(e,"GET",t,a)}post(e,{headers:t,data:a}={}){return this._send(e,"POST",t,a)}put(e,{headers:t,data:a}={}){return this._send(e,"PUT",t,a)}delete(e,{headers:t,data:a}={}){return this._send(e,"DELETE",t,a)}_send(e,t,a={},n={}){var s,r;const i=JSON.stringify({url:e,method:t,headers:a,data:n});if(c.has(i))return c.get(i);const o=null===(r=(s=this.interceptors.request).resolve)||void 0===r?void 0:r.call(s,Object.assign(Object.assign({},this.headers),a));let l;return n instanceof FormData||!this.headers["Content-type"]||(o["Content-type"]="application/json; charset=UTF-8"),fetch(`${this.baseUrl}${this.baseUrl?encodeURIComponent(e):e}`,Object.assign(Object.assign({method:t,headers:o},this.config),!["GET","HEAD"].includes(t.toUpperCase())&&{body:n instanceof FormData?n:JSON.stringify(n)})).then((e=>{l=e;const t=e.json();c.set(i,t);try{return t}catch(a){throw a}}),(e=>{var t,a;return console.error("<--- request error"+e),null===(a=(t=this.interceptors.request).reject)||void 0===a?void 0:a.call(t,e)})).then((e=>{var t,a,n,s,r;if(!l.ok)throw null===(a=(t=this.interceptors.response).reject)||void 0===a?void 0:a.call(t,Object.assign({status:l.status,statusText:l.statusText},e));return null!==(r=null===(s=(n=this.interceptors.response).resolve)||void 0===s?void 0:s.call(n,e))&&void 0!==r?r:e}))}}const o="xn--7ov117aclgs4c.life",l="https://xn--7ov117aclgs4c.life",d="https://admin.xn--7ov117aclgs4c.life",h="USER_INFO",u="ACCESS_TOKEN",m="access_token",v="#6668ab",p=["\u5468\u65e5","\u5468\u4e00","\u5468\u4e8c","\u5468\u4e09","\u5468\u56db","\u5468\u4e94","\u5468\u516d"];var g;!function(e){e[e.NORMAL=4]="NORMAL",e[e.CREATOR=3]="CREATOR",e[e.ADMIN=2]="ADMIN",e[e.ROOT=1]="ROOT",e.ALL=""}(g||(g={}));g.NORMAL,g.CREATOR,g.ADMIN,g.ROOT,g.ALL;var f;!function(e){e[e.DRAFT=5]="DRAFT",e[e.PUBLISHED=4]="PUBLISHED",e[e.PENDING=3]="PENDING",e[e.REJECT=2]="REJECT",e[e.DELETED=1]="DELETED",e.ALL=""}(f||(f={}));f.PUBLISHED,f.PENDING,f.REJECT,f.ALL;const x=i.create("https://api.xn--7ov117aclgs4c.life/api",{config:{credentials:"include"}});x.interceptors.request.use((e=>{const t=n.H.get(m);return Object.assign(Object.assign({},e),{Authorization:t?`Bearer ${t}`:""})})),document.location.search.includes("cors")&&localStorage.setItem("cors","1");const j=i.create("1"==localStorage.getItem("cors")?"":"https://cors-flame.vercel.app/api/cors?url=")},5232:(e,t,a)=>{a.r(t);var n=function(e,t,a,n){return new(a||(a=Promise))((function(s,r){function c(e){try{o(n.next(e))}catch(t){r(t)}}function i(e){try{o(n.throw(e))}catch(t){r(t)}}function o(e){var t;e.done?s(e.value):(t=e.value,t instanceof a?t:new a((function(e){e(t)}))).then(c,i)}o((n=n.apply(e,t||[])).next())}))};let s=!1;if(document.location.search.includes("debug")&&localStorage.setItem("debug","1"),"1"!=localStorage.getItem("debug")){const e=e=>n(void 0,void 0,void 0,(function*(){e.isSafari&&(document.body.innerHTML='

\ud83d\udc7e\u6253\u65ad\u65bd\u6cd5!

',yield new Promise((e=>setTimeout(e,1e3)))),window.close(),window.location.href="https://www.baidu.com/s?wd=ip"}));a.e(643).then(a.t.bind(a,7182,23)).then((function(t){t.addListener((function(a){s=a,a&&e(t)})),t.launch(),window.addEventListener("pageshow",(a=>{var n,r;(a.persisted||2==(null===(r=null===(n=window.performance)||void 0===n?void 0:n.navigation)||void 0===r?void 0:r.type))&&s&&e(t)}),!1)}))}},4837:(e,t,a)=>{var n;a.d(t,{H:()=>n}),function(e){e.get=function(e){for(var t=e+"=",a=document.cookie.split(";"),n=0;n{e.O(0,[784,648,207],(()=>{return t=5282,e(e.s=t);var t}));e.O()}]); \ No newline at end of file diff --git a/static/js/hls.b666b944.chunk.js b/static/js/hls.b82da4a7.chunk.js similarity index 70% rename from static/js/hls.b666b944.chunk.js rename to static/js/hls.b82da4a7.chunk.js index 434c42f3..40676f1e 100644 --- a/static/js/hls.b666b944.chunk.js +++ b/static/js/hls.b82da4a7.chunk.js @@ -1 +1 @@ -(self.webpackChunk_web_index=self.webpackChunk_web_index||[]).push([[458],{187:t=>{!function e(r){var i;i=function(){"use strict";function t(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,i)}return r}function i(e){for(var r=1;rt.length)&&(e=t.length);for(var r=0,i=new Array(e);r1?e-1:0),i=1;i"):L}(e)}))}(t,"debug","log","info","warn","error");try{R.log('Debug logs enabled for "'+e+'" in hls.js version 1.5.8')}catch(t){R=A}}else R=A}var k=R,D=/^(\d+)x(\d+)$/,I=/(.+?)=(".*?"|.*?)(?:,|$)/g,w=function(){function t(e){"string"==typeof e&&(e=t.parseAttrList(e)),o(this,e)}var e=t.prototype;return e.decimalInteger=function(t){var e=parseInt(this[t],10);return e>Number.MAX_SAFE_INTEGER?1/0:e},e.hexadecimalInteger=function(t){if(this[t]){var e=(this[t]||"0x").slice(2);e=(1&e.length?"0":"")+e;for(var r=new Uint8Array(e.length/2),i=0;iNumber.MAX_SAFE_INTEGER?1/0:e},e.decimalFloatingPoint=function(t){return parseFloat(this[t])},e.optionalFloat=function(t,e){var r=this[t];return r?parseFloat(r):e},e.enumeratedString=function(t){return this[t]},e.bool=function(t){return"YES"===this[t]},e.decimalResolution=function(t){var e=D.exec(this[t]);if(null!==e)return{width:parseInt(e[1],10),height:parseInt(e[2],10)}},t.parseAttrList=function(t){var e,r={};for(I.lastIndex=0;null!==(e=I.exec(t));){var i=e[2];0===i.indexOf('"')&&i.lastIndexOf('"')===i.length-1&&(i=i.slice(1,-1)),r[e[1].trim()]=i}return r},s(t,[{key:"clientAttrs",get:function(){return Object.keys(this).filter((function(t){return"X-"===t.substring(0,2)}))}}]),t}();function C(t){return"SCTE35-OUT"===t||"SCTE35-IN"===t}var _=function(){function t(t,e){if(this.attr=void 0,this._startDate=void 0,this._endDate=void 0,this._badValueForSameId=void 0,e){var r=e.attr;for(var i in r)if(Object.prototype.hasOwnProperty.call(t,i)&&t[i]!==r[i]){k.warn('DATERANGE tag attribute: "'+i+'" does not match for tags with ID: "'+t.ID+'"'),this._badValueForSameId=i;break}t=o(new w({}),r,t)}if(this.attr=t,this._startDate=new Date(t["START-DATE"]),"END-DATE"in this.attr){var n=new Date(this.attr["END-DATE"]);m(n.getTime())&&(this._endDate=n)}}return s(t,[{key:"id",get:function(){return this.attr.ID}},{key:"class",get:function(){return this.attr.CLASS}},{key:"startDate",get:function(){return this._startDate}},{key:"endDate",get:function(){if(this._endDate)return this._endDate;var t=this.duration;return null!==t?new Date(this._startDate.getTime()+1e3*t):null}},{key:"duration",get:function(){if("DURATION"in this.attr){var t=this.attr.decimalFloatingPoint("DURATION");if(m(t))return t}else if(this._endDate)return(this._endDate.getTime()-this._startDate.getTime())/1e3;return null}},{key:"plannedDuration",get:function(){return"PLANNED-DURATION"in this.attr?this.attr.decimalFloatingPoint("PLANNED-DURATION"):null}},{key:"endOnNext",get:function(){return this.attr.bool("END-ON-NEXT")}},{key:"isValid",get:function(){return!!this.id&&!this._badValueForSameId&&m(this.startDate.getTime())&&(null===this.duration||this.duration>=0)&&(!this.endOnNext||!!this.class)}}]),t}(),x=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}},P="audio",F="video",M="audiovideo",O=function(){function t(t){var e;this._byteRange=null,this._url=null,this.baseurl=void 0,this.relurl=void 0,this.elementaryStreams=((e={})[P]=null,e[F]=null,e[M]=null,e),this.baseurl=t}return t.prototype.setByteRange=function(t,e){var r,i=t.split("@",2);r=1===i.length?(null==e?void 0:e.byteRangeEndOffset)||0:parseInt(i[1]),this._byteRange=[r,parseInt(i[0])+r]},s(t,[{key:"byteRange",get:function(){return this._byteRange?this._byteRange:[]}},{key:"byteRangeStartOffset",get:function(){return this.byteRange[0]}},{key:"byteRangeEndOffset",get:function(){return this.byteRange[1]}},{key:"url",get:function(){return!this._url&&this.baseurl&&this.relurl&&(this._url=v.buildAbsoluteURL(this.baseurl,this.relurl,{alwaysNormalize:!0})),this._url||""},set:function(t){this._url=t}}]),t}(),N=function(t){function e(e,r){var i;return(i=t.call(this,r)||this)._decryptdata=null,i.rawProgramDateTime=null,i.programDateTime=null,i.tagList=[],i.duration=0,i.sn=0,i.levelkeys=void 0,i.type=void 0,i.loader=null,i.keyLoader=null,i.level=-1,i.cc=0,i.startPTS=void 0,i.endPTS=void 0,i.startDTS=void 0,i.endDTS=void 0,i.start=0,i.deltaPTS=void 0,i.maxStartPTS=void 0,i.minEndPTS=void 0,i.stats=new x,i.data=void 0,i.bitrateTest=!1,i.title=null,i.initSegment=null,i.endList=void 0,i.gap=void 0,i.urlId=0,i.type=e,i}l(e,t);var r=e.prototype;return r.setKeyFormat=function(t){if(this.levelkeys){var e=this.levelkeys[t];e&&!this._decryptdata&&(this._decryptdata=e.getDecryptData(this.sn))}},r.abortRequests=function(){var t,e;null==(t=this.loader)||t.abort(),null==(e=this.keyLoader)||e.abort()},r.setElementaryStreamInfo=function(t,e,r,i,n,a){void 0===a&&(a=!1);var s=this.elementaryStreams,o=s[t];o?(o.startPTS=Math.min(o.startPTS,e),o.endPTS=Math.max(o.endPTS,r),o.startDTS=Math.min(o.startDTS,i),o.endDTS=Math.max(o.endDTS,n)):s[t]={startPTS:e,endPTS:r,startDTS:i,endDTS:n,partial:a}},r.clearElementaryStreamInfo=function(){var t=this.elementaryStreams;t[P]=null,t[F]=null,t[M]=null},s(e,[{key:"decryptdata",get:function(){if(!this.levelkeys&&!this._decryptdata)return null;if(!this._decryptdata&&this.levelkeys&&!this.levelkeys.NONE){var t=this.levelkeys.identity;if(t)this._decryptdata=t.getDecryptData(this.sn);else{var e=Object.keys(this.levelkeys);if(1===e.length)return this._decryptdata=this.levelkeys[e[0]].getDecryptData(this.sn)}}return this._decryptdata}},{key:"end",get:function(){return this.start+this.duration}},{key:"endProgramDateTime",get:function(){if(null===this.programDateTime)return null;if(!m(this.programDateTime))return null;var t=m(this.duration)?this.duration:0;return this.programDateTime+1e3*t}},{key:"encrypted",get:function(){var t;if(null!=(t=this._decryptdata)&&t.encrypted)return!0;if(this.levelkeys){var e=Object.keys(this.levelkeys),r=e.length;if(r>1||1===r&&this.levelkeys[e[0]].encrypted)return!0}return!1}}]),e}(O),U=function(t){function e(e,r,i,n,a){var s;(s=t.call(this,i)||this).fragOffset=0,s.duration=0,s.gap=!1,s.independent=!1,s.relurl=void 0,s.fragment=void 0,s.index=void 0,s.stats=new x,s.duration=e.decimalFloatingPoint("DURATION"),s.gap=e.bool("GAP"),s.independent=e.bool("INDEPENDENT"),s.relurl=e.enumeratedString("URI"),s.fragment=r,s.index=n;var o=e.enumeratedString("BYTERANGE");return o&&s.setByteRange(o,a),a&&(s.fragOffset=a.fragOffset+a.duration),s}return l(e,t),s(e,[{key:"start",get:function(){return this.fragment.start+this.fragOffset}},{key:"end",get:function(){return this.start+this.duration}},{key:"loaded",get:function(){var t=this.elementaryStreams;return!!(t.audio||t.video||t.audiovideo)}}]),e}(O),B=function(){function t(t){this.PTSKnown=!1,this.alignedSliding=!1,this.averagetargetduration=void 0,this.endCC=0,this.endSN=0,this.fragments=void 0,this.fragmentHint=void 0,this.partList=null,this.dateRanges=void 0,this.live=!0,this.ageHeader=0,this.advancedDateTime=void 0,this.updated=!0,this.advanced=!0,this.availabilityDelay=void 0,this.misses=0,this.startCC=0,this.startSN=0,this.startTimeOffset=null,this.targetduration=0,this.totalduration=0,this.type=null,this.url=void 0,this.m3u8="",this.version=null,this.canBlockReload=!1,this.canSkipUntil=0,this.canSkipDateRanges=!1,this.skippedSegments=0,this.recentlyRemovedDateranges=void 0,this.partHoldBack=0,this.holdBack=0,this.partTarget=0,this.preloadHint=void 0,this.renditionReports=void 0,this.tuneInGoal=0,this.deltaUpdateFailed=void 0,this.driftStartTime=0,this.driftEndTime=0,this.driftStart=0,this.driftEnd=0,this.encryptedFragments=void 0,this.playlistParsingError=null,this.variableList=null,this.hasVariableRefs=!1,this.fragments=[],this.encryptedFragments=[],this.dateRanges={},this.url=t}return t.prototype.reloaded=function(t){if(!t)return this.advanced=!0,void(this.updated=!0);var e=this.lastPartSn-t.lastPartSn,r=this.lastPartIndex-t.lastPartIndex;this.updated=this.endSN!==t.endSN||!!r||!!e||!this.live,this.advanced=this.endSN>t.endSN||e>0||0===e&&r>0,this.updated||this.advanced?this.misses=Math.floor(.6*t.misses):this.misses=t.misses+1,this.availabilityDelay=t.availabilityDelay},s(t,[{key:"hasProgramDateTime",get:function(){return!!this.fragments.length&&m(this.fragments[this.fragments.length-1].programDateTime)}},{key:"levelTargetDuration",get:function(){return this.averagetargetduration||this.targetduration||10}},{key:"drift",get:function(){var t=this.driftEndTime-this.driftStartTime;return t>0?1e3*(this.driftEnd-this.driftStart)/t:1}},{key:"edge",get:function(){return this.partEnd||this.fragmentEnd}},{key:"partEnd",get:function(){var t;return null!=(t=this.partList)&&t.length?this.partList[this.partList.length-1].end:this.fragmentEnd}},{key:"fragmentEnd",get:function(){var t;return null!=(t=this.fragments)&&t.length?this.fragments[this.fragments.length-1].end:0}},{key:"age",get:function(){return this.advancedDateTime?Math.max(Date.now()-this.advancedDateTime,0)/1e3:0}},{key:"lastPartIndex",get:function(){var t;return null!=(t=this.partList)&&t.length?this.partList[this.partList.length-1].index:-1}},{key:"lastPartSn",get:function(){var t;return null!=(t=this.partList)&&t.length?this.partList[this.partList.length-1].fragment.sn:this.endSN}}]),t}();function G(t){return Uint8Array.from(atob(t),(function(t){return t.charCodeAt(0)}))}function K(t){return Uint8Array.from(unescape(encodeURIComponent(t)),(function(t){return t.charCodeAt(0)}))}var H="undefined"!=typeof self?self:void 0,V={CLEARKEY:"org.w3.clearkey",FAIRPLAY:"com.apple.fps",PLAYREADY:"com.microsoft.playready",WIDEVINE:"com.widevine.alpha"},Y="org.w3.clearkey",W="com.apple.streamingkeydelivery",j="com.microsoft.playready",q="urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed";function X(t){switch(t){case W:return V.FAIRPLAY;case j:return V.PLAYREADY;case q:return V.WIDEVINE;case Y:return V.CLEARKEY}}var z="edef8ba979d64acea3c827dcd51d21ed";function Q(t){switch(t){case V.FAIRPLAY:return W;case V.PLAYREADY:return j;case V.WIDEVINE:return q;case V.CLEARKEY:return Y}}function J(t){var e=t.drmSystems,r=t.widevineLicenseUrl,i=e?[V.FAIRPLAY,V.WIDEVINE,V.PLAYREADY,V.CLEARKEY].filter((function(t){return!!e[t]})):[];return!i[V.WIDEVINE]&&r&&i.push(V.WIDEVINE),i}var $,Z=null!=H&&null!=($=H.navigator)&&$.requestMediaKeySystemAccess?self.navigator.requestMediaKeySystemAccess.bind(self.navigator):null;function tt(t,e,r){return Uint8Array.prototype.slice?t.slice(e,r):new Uint8Array(Array.prototype.slice.call(t,e,r))}var et,rt=function(t,e){return e+10<=t.length&&73===t[e]&&68===t[e+1]&&51===t[e+2]&&t[e+3]<255&&t[e+4]<255&&t[e+6]<128&&t[e+7]<128&&t[e+8]<128&&t[e+9]<128},it=function(t,e){return e+10<=t.length&&51===t[e]&&68===t[e+1]&&73===t[e+2]&&t[e+3]<255&&t[e+4]<255&&t[e+6]<128&&t[e+7]<128&&t[e+8]<128&&t[e+9]<128},nt=function(t,e){for(var r=e,i=0;rt(t,e);)i+=10,i+=at(t,e+6),it(t,e+10)&&(i+=10),e+=i;if(i>0)return t.subarray(r,r+i)},at=function(t,e){var r=0;return r=(127&t[e])<<21,r|=(127&t[e+1])<<14,(r|=(127&t[e+2])<<7)|127&t[e+3]},st=function(t,e){return rt(t,e)&&at(t,e+6)+10<=t.length-e},ot=function(t){for(var e=ht(t),r=0;r>4){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:u+=String.fromCharCode(a);break;case 12:case 13:s=t[h++],u+=String.fromCharCode((31&a)<<6|63&s);break;case 14:s=t[h++],o=t[h++],u+=String.fromCharCode((15&a)<<12|(63&s)<<6|63&o)}}return u};var pt=function(t){for(var e="",r=0;r>24,t[e+1]=r>>16&255,t[e+2]=r>>8&255,t[e+3]=255&r}function Dt(t,e){var r=[];if(!e.length)return r;for(var i=t.byteLength,n=0;n1?n+a:i;if(St(t.subarray(n+4,n+8))===e[0])if(1===e.length)r.push(t.subarray(n+8,s));else{var o=Dt(t.subarray(n+8,s),e.slice(1));o.length&&Et.apply(r,o)}n=s}return r}function It(t){var e=[],r=t[0],i=8,n=At(t,i);i+=4;var a=0,s=0;0===r?(a=At(t,i),s=At(t,i+4),i+=8):(a=Rt(t,i),s=Rt(t,i+8),i+=16),i+=2;var o=t.length+s,l=Lt(t,i);i+=2;for(var u=0;u>>31)return k.warn("SIDX has hierarchical references (not supported)"),null;var f=At(t,h);h+=4,e.push({referenceSize:c,subsegmentDuration:f,info:{duration:f/n,start:o,end:o+c-1}}),o+=c,i=h+=4}return{earliestPresentationTime:a,timescale:n,version:r,referencesCount:l,references:e}}function wt(t){for(var e=[],r=Dt(t,["moov","trak"]),n=0;n12){var h=4;if(3!==u[h++])break;h=_t(u,h),h+=2;var d=u[h++];if(128&d&&(h+=2),64&d&&(h+=u[h++]),4!==u[h++])break;h=_t(u,h);var c=u[h++];if(64!==c)break;if(n+="."+xt(c),h+=12,5!==u[h++])break;h=_t(u,h);var f=u[h++],g=(248&f)>>3;31===g&&(g+=1+((7&f)<<3)+((224&u[h])>>5)),n+="."+g}break;case"hvc1":case"hev1":var v=Dt(r,["hvcC"])[0],m=v[1],p=["","A","B","C"][m>>6],y=31&m,E=At(v,2),T=(32&m)>>5?"H":"L",S=v[12],L=v.subarray(6,12);n+="."+p+y,n+="."+E.toString(16).toUpperCase(),n+="."+T+S;for(var A="",R=L.length;R--;){var b=L[R];(b||A)&&(A="."+b.toString(16).toUpperCase()+A)}n+=A;break;case"dvh1":case"dvhe":var k=Dt(r,["dvcC"])[0],D=k[2]>>1&127,I=k[2]<<5&32|k[3]>>3&31;n+="."+Pt(D)+"."+Pt(I);break;case"vp09":var w=Dt(r,["vpcC"])[0],C=w[4],_=w[5],x=w[6]>>4&15;n+="."+Pt(C)+"."+Pt(_)+"."+Pt(x);break;case"av01":var P=Dt(r,["av1C"])[0],F=P[1]>>>5,M=31&P[1],O=P[2]>>>7?"H":"M",N=(64&P[2])>>6,U=(32&P[2])>>5,B=2===F&&N?U?12:10:N?10:8,G=(16&P[2])>>4,K=(8&P[2])>>3,H=(4&P[2])>>2,V=3&P[2];n+="."+F+"."+Pt(M)+O+"."+Pt(B)+"."+G+"."+K+H+V+"."+Pt(1)+"."+Pt(1)+"."+Pt(1)+".0"}return{codec:n,encrypted:a}}function _t(t,e){for(var r=e+5;128&t[e++]&&e>1&63;return 39===r||40===r}return 6==(31&e)}function Bt(t,e,r,i){var n=Gt(t),a=0;a+=e;for(var s=0,o=0,l=0;a=n.length)break;s+=l=n[a++]}while(255===l);o=0;do{if(a>=n.length)break;o+=l=n[a++]}while(255===l);var u=n.length-a,h=a;if(ou){k.error("Malformed SEI payload. "+o+" is too small, only "+u+" bytes left to parse.");break}if(4===s){if(181===n[h++]){var d=Lt(n,h);if(h+=2,49===d){var c=At(n,h);if(h+=4,1195456820===c){var f=n[h++];if(3===f){var g=n[h++],v=64&g,m=v?2+3*(31&g):0,p=new Uint8Array(m);if(v){p[0]=g;for(var y=1;y16){for(var E=[],T=0;T<16;T++){var S=n[h++].toString(16);E.push(1==S.length?"0"+S:S),3!==T&&5!==T&&7!==T&&9!==T||E.push("-")}for(var L=o-16,A=new Uint8Array(L),R=0;R>8*(15-r)&255;return e}(e);return new t(this.method,this.uri,"identity",this.keyFormatVersions,r)}var i=function(t){var e,r,i=t.split(":"),n=null;if("data"===i[0]&&2===i.length){var a=i[1].split(";"),s=a[a.length-1].split(",");if(2===s.length){var o="base64"===s[0],l=s[1];o?(a.splice(-1,1),n=G(l)):(e=K(l).subarray(0,16),(r=new Uint8Array(16)).set(e,16-e.length),n=r)}}return n}(this.uri);if(i)switch(this.keyFormat){case q:this.pssh=i,i.length>=22&&(this.keyId=i.subarray(i.length-22,i.length-6));break;case j:var n=new Uint8Array([154,4,240,121,152,64,66,134,171,146,230,91,224,136,95,149]);this.pssh=function(t,e,r){if(16!==t.byteLength)throw new RangeError("Invalid system id");var i,n,a;if(e){i=1,n=new Uint8Array(16*e.length);for(var s=0;s0?(a=new Uint8Array(4),e.length>0&&new DataView(a.buffer).setUint32(0,e.length,!1)):a=new Uint8Array;var l=new Uint8Array(4);return r&&r.byteLength>0&&new DataView(l.buffer).setUint32(0,r.byteLength,!1),function(t){for(var e=arguments.length,r=new Array(e>1?e-1:0),i=1;i>24&255,o[1]=a>>16&255,o[2]=a>>8&255,o[3]=255&a,o.set(t,4),s=0,a=8;s0&&a.length0&&X.bool("CAN-SKIP-DATERANGES"),h.partHoldBack=X.optionalFloat("PART-HOLD-BACK",0),h.holdBack=X.optionalFloat("HOLD-BACK",0);break;case"PART-INF":var z=new w(C);h.partTarget=z.decimalFloatingPoint("PART-TARGET");break;case"PART":var Q=h.partList;Q||(Q=h.partList=[]);var J=g>0?Q[Q.length-1]:void 0,$=g++,Z=new w(C);Wt(h,Z,["BYTERANGE","URI"]);var tt=new U(Z,E,e,$,J);Q.push(tt),E.duration+=tt.duration;break;case"PRELOAD-HINT":var et=new w(C);Wt(h,et,["URI"]),h.preloadHint=et;break;case"RENDITION-REPORT":var rt=new w(C);Wt(h,rt,["URI"]),h.renditionReports=h.renditionReports||[],h.renditionReports.push(rt);break;default:k.warn("line parsed but not handled: "+s)}}}y&&!y.relurl?(d.pop(),v-=y.duration,h.partList&&(h.fragmentHint=y)):h.partList&&(me(E,y),E.cc=p,h.fragmentHint=E,u&&ye(E,u,h));var it=d.length,nt=d[0],at=d[it-1];if((v+=h.skippedSegments*h.targetduration)>0&&it&&at){h.averagetargetduration=v/it;var st=at.sn;h.endSN="initSegment"!==st?st:0,h.live||(at.endList=!0),nt&&(h.startCC=nt.cc)}else h.endSN=0,h.startCC=0;return h.fragmentHint&&(v+=h.fragmentHint.duration),h.totalduration=v,h.endCC=p,T>0&&function(t,e){for(var r=t[e],i=e;i--;){var n=t[i];if(!n)return;n.programDateTime=r.programDateTime-1e3*n.duration,r=n}}(d,T),h},t}();function ce(t,e,r){var i,n,a=new w(t);Wt(r,a,["KEYFORMAT","KEYFORMATVERSIONS","URI","IV","URI"]);var s=null!=(i=a.METHOD)?i:"",o=a.URI,l=a.hexadecimalInteger("IV"),u=a.KEYFORMATVERSIONS,h=null!=(n=a.KEYFORMAT)?n:"identity";o&&a.IV&&!l&&k.error("Invalid IV: "+a.IV);var d=o?de.resolve(o,e):"",c=(u||"1").split("/").map(Number).filter(Number.isFinite);return new Ht(s,d,h,c,l)}function fe(t){var e=new w(t).decimalFloatingPoint("TIME-OFFSET");return m(e)?e:null}function ge(t,e){var r=(t||"").split(/[ ,]+/).filter((function(t){return t}));["video","audio","text"].forEach((function(t){var i=r.filter((function(e){return function(t,e){var r=Qt[e];return!!r&&!!r[t.slice(0,4)]}(e,t)}));i.length&&(e[t+"Codec"]=i.join(","),r=r.filter((function(t){return-1===i.indexOf(t)})))})),e.unknownCodecs=r}function ve(t,e,r){var i=e[r];i&&(t[r]=i)}function me(t,e){t.rawProgramDateTime?t.programDateTime=Date.parse(t.rawProgramDateTime):null!=e&&e.programDateTime&&(t.programDateTime=e.endProgramDateTime),m(t.programDateTime)||(t.programDateTime=null,t.rawProgramDateTime=null)}function pe(t,e,r,i){t.relurl=e.URI,e.BYTERANGE&&t.setByteRange(e.BYTERANGE),t.level=r,t.sn="initSegment",i&&(t.levelkeys=i),t.initSegment=null}function ye(t,e,r){t.levelkeys=e;var i=r.encryptedFragments;i.length&&i[i.length-1].levelkeys===e||!Object.keys(e).some((function(t){return e[t].isCommonEncryption}))||i.push(t)}var Ee="manifest",Te="level",Se="audioTrack",Le="subtitleTrack",Ae="main",Re="audio",be="subtitle";function ke(t){switch(t.type){case Se:return Re;case Le:return be;default:return Ae}}function De(t,e){var r=t.url;return void 0!==r&&0!==r.indexOf("data:")||(r=e.url),r}var Ie=function(){function t(t){this.hls=void 0,this.loaders=Object.create(null),this.variableList=null,this.hls=t,this.registerListeners()}var e=t.prototype;return e.startLoad=function(t){},e.stopLoad=function(){this.destroyInternalLoaders()},e.registerListeners=function(){var t=this.hls;t.on(E.MANIFEST_LOADING,this.onManifestLoading,this),t.on(E.LEVEL_LOADING,this.onLevelLoading,this),t.on(E.AUDIO_TRACK_LOADING,this.onAudioTrackLoading,this),t.on(E.SUBTITLE_TRACK_LOADING,this.onSubtitleTrackLoading,this)},e.unregisterListeners=function(){var t=this.hls;t.off(E.MANIFEST_LOADING,this.onManifestLoading,this),t.off(E.LEVEL_LOADING,this.onLevelLoading,this),t.off(E.AUDIO_TRACK_LOADING,this.onAudioTrackLoading,this),t.off(E.SUBTITLE_TRACK_LOADING,this.onSubtitleTrackLoading,this)},e.createInternalLoader=function(t){var e=this.hls.config,r=e.pLoader,i=e.loader,n=new(r||i)(e);return this.loaders[t.type]=n,n},e.getInternalLoader=function(t){return this.loaders[t.type]},e.resetInternalLoader=function(t){this.loaders[t]&&delete this.loaders[t]},e.destroyInternalLoaders=function(){for(var t in this.loaders){var e=this.loaders[t];e&&e.destroy(),this.resetInternalLoader(t)}},e.destroy=function(){this.variableList=null,this.unregisterListeners(),this.destroyInternalLoaders()},e.onManifestLoading=function(t,e){var r=e.url;this.variableList=null,this.load({id:null,level:0,responseType:"text",type:Ee,url:r,deliveryDirectives:null})},e.onLevelLoading=function(t,e){var r=e.id,i=e.level,n=e.pathwayId,a=e.url,s=e.deliveryDirectives;this.load({id:r,level:i,pathwayId:n,responseType:"text",type:Te,url:a,deliveryDirectives:s})},e.onAudioTrackLoading=function(t,e){var r=e.id,i=e.groupId,n=e.url,a=e.deliveryDirectives;this.load({id:r,groupId:i,level:null,responseType:"text",type:Se,url:n,deliveryDirectives:a})},e.onSubtitleTrackLoading=function(t,e){var r=e.id,i=e.groupId,n=e.url,a=e.deliveryDirectives;this.load({id:r,groupId:i,level:null,responseType:"text",type:Le,url:n,deliveryDirectives:a})},e.load=function(t){var e,r,i,n=this,a=this.hls.config,s=this.getInternalLoader(t);if(s){var l=s.context;if(l&&l.url===t.url&&l.level===t.level)return void k.trace("[playlist-loader]: playlist request ongoing");k.log("[playlist-loader]: aborting previous loader for type: "+t.type),s.abort()}if(r=t.type===Ee?a.manifestLoadPolicy.default:o({},a.playlistLoadPolicy.default,{timeoutRetry:null,errorRetry:null}),s=this.createInternalLoader(t),m(null==(e=t.deliveryDirectives)?void 0:e.part)&&(t.type===Te&&null!==t.level?i=this.hls.levels[t.level].details:t.type===Se&&null!==t.id?i=this.hls.audioTracks[t.id].details:t.type===Le&&null!==t.id&&(i=this.hls.subtitleTracks[t.id].details),i)){var u=i.partTarget,h=i.targetduration;if(u&&h){var d=1e3*Math.max(3*u,.8*h);r=o({},r,{maxTimeToFirstByteMs:Math.min(d,r.maxTimeToFirstByteMs),maxLoadTimeMs:Math.min(d,r.maxTimeToFirstByteMs)})}}var c=r.errorRetry||r.timeoutRetry||{},f={loadPolicy:r,timeout:r.maxLoadTimeMs,maxRetry:c.maxNumRetry||0,retryDelay:c.retryDelayMs||0,maxRetryDelay:c.maxRetryDelayMs||0},g={onSuccess:function(t,e,r,i){var a=n.getInternalLoader(r);n.resetInternalLoader(r.type);var s=t.data;0===s.indexOf("#EXTM3U")?(e.parsing.start=performance.now(),de.isMediaPlaylist(s)?n.handleTrackOrLevelPlaylist(t,e,r,i||null,a):n.handleMasterPlaylist(t,e,r,i)):n.handleManifestParsingError(t,r,new Error("no EXTM3U delimiter"),i||null,e)},onError:function(t,e,r,i){n.handleNetworkError(e,r,!1,t,i)},onTimeout:function(t,e,r){n.handleNetworkError(e,r,!0,void 0,t)}};s.load(t,f,g)},e.handleMasterPlaylist=function(t,e,r,i){var n=this.hls,a=t.data,s=De(t,r),o=de.parseMasterPlaylist(a,s);if(o.playlistParsingError)this.handleManifestParsingError(t,r,o.playlistParsingError,i,e);else{var l=o.contentSteering,u=o.levels,h=o.sessionData,d=o.sessionKeys,c=o.startTimeOffset,f=o.variableList;this.variableList=f;var g=de.parseMasterPlaylistMedia(a,s,o),v=g.AUDIO,m=void 0===v?[]:v,p=g.SUBTITLES,y=g["CLOSED-CAPTIONS"];m.length&&(m.some((function(t){return!t.url}))||!u[0].audioCodec||u[0].attrs.AUDIO||(k.log("[playlist-loader]: audio codec signaled in quality level, but no embedded audio track signaled, create one"),m.unshift({type:"main",name:"main",groupId:"main",default:!1,autoselect:!1,forced:!1,id:-1,attrs:new w({}),bitrate:0,url:""}))),n.trigger(E.MANIFEST_LOADED,{levels:u,audioTracks:m,subtitles:p,captions:y,contentSteering:l,url:s,stats:e,networkDetails:i,sessionData:h,sessionKeys:d,startTimeOffset:c,variableList:f})}},e.handleTrackOrLevelPlaylist=function(t,e,r,i,n){var a=this.hls,s=r.id,o=r.level,l=r.type,u=De(t,r),h=m(o)?o:m(s)?s:0,d=ke(r),c=de.parseLevelPlaylist(t.data,u,h,d,0,this.variableList);if(l===Ee){var f={attrs:new w({}),bitrate:0,details:c,name:"",url:u};a.trigger(E.MANIFEST_LOADED,{levels:[f],audioTracks:[],url:u,stats:e,networkDetails:i,sessionData:null,sessionKeys:null,contentSteering:null,startTimeOffset:null,variableList:null})}e.parsing.end=performance.now(),r.levelDetails=c,this.handlePlaylistLoaded(c,t,e,r,i,n)},e.handleManifestParsingError=function(t,e,r,i,n){this.hls.trigger(E.ERROR,{type:T.NETWORK_ERROR,details:S.MANIFEST_PARSING_ERROR,fatal:e.type===Ee,url:t.url,err:r,error:r,reason:r.message,response:t,context:e,networkDetails:i,stats:n})},e.handleNetworkError=function(t,e,r,n,a){void 0===r&&(r=!1);var s="A network "+(r?"timeout":"error"+(n?" (status "+n.code+")":""))+" occurred while loading "+t.type;t.type===Te?s+=": "+t.level+" id: "+t.id:t.type!==Se&&t.type!==Le||(s+=" id: "+t.id+' group-id: "'+t.groupId+'"');var o=new Error(s);k.warn("[playlist-loader]: "+s);var l=S.UNKNOWN,u=!1,h=this.getInternalLoader(t);switch(t.type){case Ee:l=r?S.MANIFEST_LOAD_TIMEOUT:S.MANIFEST_LOAD_ERROR,u=!0;break;case Te:l=r?S.LEVEL_LOAD_TIMEOUT:S.LEVEL_LOAD_ERROR,u=!1;break;case Se:l=r?S.AUDIO_TRACK_LOAD_TIMEOUT:S.AUDIO_TRACK_LOAD_ERROR,u=!1;break;case Le:l=r?S.SUBTITLE_TRACK_LOAD_TIMEOUT:S.SUBTITLE_LOAD_ERROR,u=!1}h&&this.resetInternalLoader(t.type);var d={type:T.NETWORK_ERROR,details:l,fatal:u,url:t.url,loader:h,context:t,error:o,networkDetails:e,stats:a};if(n){var c=(null==e?void 0:e.url)||t.url;d.response=i({url:c,data:void 0},n)}this.hls.trigger(E.ERROR,d)},e.handlePlaylistLoaded=function(t,e,r,i,n,a){var s=this.hls,o=i.type,l=i.level,u=i.id,h=i.groupId,d=i.deliveryDirectives,c=De(e,i),f=ke(i),g="number"==typeof i.level&&f===Ae?l:void 0;if(t.fragments.length){t.targetduration||(t.playlistParsingError=new Error("Missing Target Duration"));var v=t.playlistParsingError;if(v)s.trigger(E.ERROR,{type:T.NETWORK_ERROR,details:S.LEVEL_PARSING_ERROR,fatal:!1,url:c,error:v,reason:v.message,response:e,context:i,level:g,parent:f,networkDetails:n,stats:r});else switch(t.live&&a&&(a.getCacheAge&&(t.ageHeader=a.getCacheAge()||0),a.getCacheAge&&!isNaN(t.ageHeader)||(t.ageHeader=0)),o){case Ee:case Te:s.trigger(E.LEVEL_LOADED,{details:t,level:g||0,id:u||0,stats:r,networkDetails:n,deliveryDirectives:d});break;case Se:s.trigger(E.AUDIO_TRACK_LOADED,{details:t,id:u||0,groupId:h||"",stats:r,networkDetails:n,deliveryDirectives:d});break;case Le:s.trigger(E.SUBTITLE_TRACK_LOADED,{details:t,id:u||0,groupId:h||"",stats:r,networkDetails:n,deliveryDirectives:d})}}else{var m=new Error("No Segments found in Playlist");s.trigger(E.ERROR,{type:T.NETWORK_ERROR,details:S.LEVEL_EMPTY_ERROR,fatal:!1,url:c,error:m,reason:m.message,response:e,context:i,level:g,parent:f,networkDetails:n,stats:r})}},t}();function we(t,e){var r;try{r=new Event("addtrack")}catch(t){(r=document.createEvent("Event")).initEvent("addtrack",!1,!1)}r.track=t,e.dispatchEvent(r)}function Ce(t,e){var r=t.mode;if("disabled"===r&&(t.mode="hidden"),t.cues&&!t.cues.getCueById(e.id))try{if(t.addCue(e),!t.cues.getCueById(e.id))throw new Error("addCue is failed for: "+e)}catch(r){k.debug("[texttrack-utils]: "+r);try{var i=new self.TextTrackCue(e.startTime,e.endTime,e.text);i.id=e.id,t.addCue(i)}catch(t){k.debug("[texttrack-utils]: Legacy TextTrackCue fallback failed: "+t)}}"disabled"===r&&(t.mode=r)}function _e(t){var e=t.mode;if("disabled"===e&&(t.mode="hidden"),t.cues)for(var r=t.cues.length;r--;)t.removeCue(t.cues[r]);"disabled"===e&&(t.mode=e)}function xe(t,e,r,i){var n=t.mode;if("disabled"===n&&(t.mode="hidden"),t.cues&&t.cues.length>0)for(var a=function(t,e,r){var i=[],n=function(t,e){if(et[r].endTime)return-1;for(var i=0,n=r;i<=n;){var a=Math.floor((n+i)/2);if(et[a].startTime&&i-1)for(var a=n,s=t.length;a=e&&o.endTime<=r)i.push(o);else if(o.startTime>r)return i}return i}(t.cues,e,r),s=0;sUe&&(d=Ue),d-h<=0&&(d=h+.25);for(var c=0;ce.startDate&&(!t||e.startDate.05&&this.forwardBufferLength>1){var l=Math.min(2,Math.max(1,a)),u=Math.round(2/(1+Math.exp(-.75*o-this.edgeStalled))*20)/20;t.playbackRate=Math.min(l,Math.max(1,u))}else 1!==t.playbackRate&&0!==t.playbackRate&&(t.playbackRate=1)}}}}},e.estimateLiveEdge=function(){var t=this.levelDetails;return null===t?null:t.edge+t.age},e.computeLatency=function(){var t=this.estimateLiveEdge();return null===t?null:t-this.currentTime},s(t,[{key:"latency",get:function(){return this._latency||0}},{key:"maxLatency",get:function(){var t=this.config,e=this.levelDetails;return void 0!==t.liveMaxLatencyDuration?t.liveMaxLatencyDuration:e?t.liveMaxLatencyDurationCount*e.targetduration:0}},{key:"targetLatency",get:function(){var t=this.levelDetails;if(null===t)return null;var e=t.holdBack,r=t.partHoldBack,i=t.targetduration,n=this.config,a=n.liveSyncDuration,s=n.liveSyncDurationCount,o=n.lowLatencyMode,l=this.hls.userConfig,u=o&&r||e;(l.liveSyncDuration||l.liveSyncDurationCount||0===u)&&(u=void 0!==a?a:s*i);var h=i;return u+Math.min(1*this.stallCount,h)}},{key:"liveSyncPosition",get:function(){var t=this.estimateLiveEdge(),e=this.targetLatency,r=this.levelDetails;if(null===t||null===e||null===r)return null;var i=r.edge,n=t-e-this.edgeStalled,a=i-r.totalduration,s=i-(this.config.lowLatencyMode&&r.partTarget||r.targetduration);return Math.min(Math.max(a,n),s)}},{key:"drift",get:function(){var t=this.levelDetails;return null===t?1:t.drift}},{key:"edgeStalled",get:function(){var t=this.levelDetails;if(null===t)return 0;var e=3*(this.config.lowLatencyMode&&t.partTarget||t.targetduration);return Math.max(t.age-e,0)}},{key:"forwardBufferLength",get:function(){var t=this.media,e=this.levelDetails;if(!t||!e)return 0;var r=t.buffered.length;return(r?t.buffered.end(r-1):e.edge)-this.currentTime}}]),t}(),He=["NONE","TYPE-0","TYPE-1",null],Ve=["SDR","PQ","HLG"];function Ye(t){var e=t.canSkipUntil,r=t.canSkipDateRanges,i=t.age;return e&&it.sn?(n=r-t.start,i=t):(n=t.start-r,i=e),i.duration!==n&&(i.duration=n)}else e.sn>t.sn?t.cc===e.cc&&t.minEndPTS?e.start=t.start+(t.minEndPTS-t.start):e.start=t.start+t.duration:e.start=Math.max(t.start-e.duration,0)}function ze(t,e,r,i,n,a){i-r<=0&&(k.warn("Fragment should have a positive duration",e),i=r+e.duration,a=n+e.duration);var s=r,o=i,l=e.startPTS,u=e.endPTS;if(m(l)){var h=Math.abs(l-r);m(e.deltaPTS)?e.deltaPTS=Math.max(h,e.deltaPTS):e.deltaPTS=h,s=Math.max(r,l),r=Math.min(r,l),n=Math.min(n,e.startDTS),o=Math.min(i,u),i=Math.max(i,u),a=Math.max(a,e.endDTS)}var d=r-e.start;0!==e.start&&(e.start=r),e.duration=i-e.start,e.startPTS=r,e.maxStartPTS=s,e.startDTS=n,e.endPTS=i,e.minEndPTS=o,e.endDTS=a;var c,f=e.sn;if(!t||ft.endSN)return 0;var g=f-t.startSN,v=t.fragments;for(v[g]=e,c=g;c>0;c--)Xe(v[c],v[c-1]);for(c=g;c=0;n--){var a=i[n].initSegment;if(a){r=a;break}}t.fragmentHint&&delete t.fragmentHint.endPTS;var s,l,u,h,d,c=0;if(function(t,e,r){for(var i=e.skippedSegments,n=Math.max(t.startSN,e.startSN)-e.startSN,a=(t.fragmentHint?1:0)+(i?e.endSN:Math.min(t.endSN,e.endSN))-e.startSN,s=e.startSN-t.startSN,o=e.fragmentHint?e.fragments.concat(e.fragmentHint):e.fragments,l=t.fragmentHint?t.fragments.concat(t.fragmentHint):t.fragments,u=n;u<=a;u++){var h=l[s+u],d=o[u];i&&!d&&u=i.length||$e(e,i[r].start)}function $e(t,e){if(e){for(var r=t.fragments,i=t.skippedSegments;i499)}(n)||!!r);return t.shouldRetry?t.shouldRetry(t,e,r,i,a):a}var or=function(t,e){for(var r=0,i=t.length-1,n=null,a=null;r<=i;){var s=e(a=t[n=(r+i)/2|0]);if(s>0)r=n+1;else{if(!(s<0))return a;i=n-1}}return null};function lr(t,e,r,i){void 0===r&&(r=0),void 0===i&&(i=0);var n=null;if(t){n=e[t.sn-e[0].sn+1]||null;var a=t.endDTS-r;a>0&&a<15e-7&&(r+=15e-7)}else 0===r&&0===e[0].start&&(n=e[0]);if(n&&(!t||t.level===n.level)&&0===ur(r,i,n))return n;var s=or(e,ur.bind(null,r,i));return!s||s===t&&n?n:s}function ur(t,e,r){if(void 0===t&&(t=0),void 0===e&&(e=0),r.start<=t&&r.start+r.duration>t)return 0;var i=Math.min(e,r.duration+(r.deltaPTS?r.deltaPTS:0));return r.start+r.duration-i<=t?1:r.start-i>t&&r.start?-1:0}function hr(t,e,r){var i=1e3*Math.min(e,r.duration+(r.deltaPTS?r.deltaPTS:0));return(r.endProgramDateTime||0)-i>t}var dr=function(){function t(t){this.hls=void 0,this.playlistError=0,this.penalizedRenditions={},this.log=void 0,this.warn=void 0,this.error=void 0,this.hls=t,this.log=k.log.bind(k,"[info]:"),this.warn=k.warn.bind(k,"[warning]:"),this.error=k.error.bind(k,"[error]:"),this.registerListeners()}var e=t.prototype;return e.registerListeners=function(){var t=this.hls;t.on(E.ERROR,this.onError,this),t.on(E.MANIFEST_LOADING,this.onManifestLoading,this),t.on(E.LEVEL_UPDATED,this.onLevelUpdated,this)},e.unregisterListeners=function(){var t=this.hls;t&&(t.off(E.ERROR,this.onError,this),t.off(E.ERROR,this.onErrorOut,this),t.off(E.MANIFEST_LOADING,this.onManifestLoading,this),t.off(E.LEVEL_UPDATED,this.onLevelUpdated,this))},e.destroy=function(){this.unregisterListeners(),this.hls=null,this.penalizedRenditions={}},e.startLoad=function(t){},e.stopLoad=function(){this.playlistError=0},e.getVariantLevelIndex=function(t){return(null==t?void 0:t.type)===Ae?t.level:this.hls.loadLevel},e.onManifestLoading=function(){this.playlistError=0,this.penalizedRenditions={}},e.onLevelUpdated=function(){this.playlistError=0},e.onError=function(t,e){var r,i;if(!e.fatal){var n=this.hls,a=e.context;switch(e.details){case S.FRAG_LOAD_ERROR:case S.FRAG_LOAD_TIMEOUT:case S.KEY_LOAD_ERROR:case S.KEY_LOAD_TIMEOUT:return void(e.errorAction=this.getFragRetryOrSwitchAction(e));case S.FRAG_PARSING_ERROR:if(null!=(r=e.frag)&&r.gap)return void(e.errorAction={action:0,flags:0});case S.FRAG_GAP:case S.FRAG_DECRYPT_ERROR:return e.errorAction=this.getFragRetryOrSwitchAction(e),void(e.errorAction.action=2);case S.LEVEL_EMPTY_ERROR:case S.LEVEL_PARSING_ERROR:var s,o,l=e.parent===Ae?e.level:n.loadLevel;return void(e.details===S.LEVEL_EMPTY_ERROR&&null!=(s=e.context)&&null!=(o=s.levelDetails)&&o.live?e.errorAction=this.getPlaylistRetryOrSwitchAction(e,l):(e.levelRetry=!1,e.errorAction=this.getLevelSwitchAction(e,l)));case S.LEVEL_LOAD_ERROR:case S.LEVEL_LOAD_TIMEOUT:return void("number"==typeof(null==a?void 0:a.level)&&(e.errorAction=this.getPlaylistRetryOrSwitchAction(e,a.level)));case S.AUDIO_TRACK_LOAD_ERROR:case S.AUDIO_TRACK_LOAD_TIMEOUT:case S.SUBTITLE_LOAD_ERROR:case S.SUBTITLE_TRACK_LOAD_TIMEOUT:if(a){var u=n.levels[n.loadLevel];if(u&&(a.type===Se&&u.hasAudioGroup(a.groupId)||a.type===Le&&u.hasSubtitleGroup(a.groupId)))return e.errorAction=this.getPlaylistRetryOrSwitchAction(e,n.loadLevel),e.errorAction.action=2,void(e.errorAction.flags=1)}return;case S.KEY_SYSTEM_STATUS_OUTPUT_RESTRICTED:var h=n.levels[n.loadLevel],d=null==h?void 0:h.attrs["HDCP-LEVEL"];return void(d?e.errorAction={action:2,flags:2,hdcpLevel:d}:this.keySystemError(e));case S.BUFFER_ADD_CODEC_ERROR:case S.REMUX_ALLOC_ERROR:case S.BUFFER_APPEND_ERROR:return void(e.errorAction=this.getLevelSwitchAction(e,null!=(i=e.level)?i:n.loadLevel));case S.INTERNAL_EXCEPTION:case S.BUFFER_APPENDING_ERROR:case S.BUFFER_FULL_ERROR:case S.LEVEL_SWITCH_ERROR:case S.BUFFER_STALLED_ERROR:case S.BUFFER_SEEK_OVER_HOLE:case S.BUFFER_NUDGE_ON_STALL:return void(e.errorAction={action:0,flags:0})}e.type===T.KEY_SYSTEM_ERROR&&this.keySystemError(e)}},e.keySystemError=function(t){var e=this.getVariantLevelIndex(t.frag);t.levelRetry=!1,t.errorAction=this.getLevelSwitchAction(t,e)},e.getPlaylistRetryOrSwitchAction=function(t,e){var r=ir(this.hls.config.playlistLoadPolicy,t),i=this.playlistError++;if(sr(r,i,rr(t),t.response))return{action:5,flags:0,retryConfig:r,retryCount:i};var n=this.getLevelSwitchAction(t,e);return r&&(n.retryConfig=r,n.retryCount=i),n},e.getFragRetryOrSwitchAction=function(t){var e=this.hls,r=this.getVariantLevelIndex(t.frag),i=e.levels[r],n=e.config,a=n.fragLoadPolicy,s=n.keyLoadPolicy,o=ir(t.details.startsWith("key")?s:a,t),l=e.levels.reduce((function(t,e){return t+e.fragmentError}),0);if(i&&(t.details!==S.FRAG_GAP&&i.fragmentError++,sr(o,l,rr(t),t.response)))return{action:5,flags:0,retryConfig:o,retryCount:l};var u=this.getLevelSwitchAction(t,r);return o&&(u.retryConfig=o,u.retryCount=l),u},e.getLevelSwitchAction=function(t,e){var r=this.hls;null==e&&(e=r.loadLevel);var i=this.hls.levels[e];if(i){var n,a,s=t.details;i.loadError++,s===S.BUFFER_APPEND_ERROR&&i.fragmentError++;var o=-1,l=r.levels,u=r.loadLevel,h=r.minAutoLevel,d=r.maxAutoLevel;r.autoLevelEnabled||(r.loadLevel=-1);for(var c,f=null==(n=t.frag)?void 0:n.type,g=(f===Re&&s===S.FRAG_PARSING_ERROR||"audio"===t.sourceBufferName&&(s===S.BUFFER_ADD_CODEC_ERROR||s===S.BUFFER_APPEND_ERROR))&&l.some((function(t){var e=t.audioCodec;return i.audioCodec!==e})),v="video"===t.sourceBufferName&&(s===S.BUFFER_ADD_CODEC_ERROR||s===S.BUFFER_APPEND_ERROR)&&l.some((function(t){var e=t.codecSet,r=t.audioCodec;return i.codecSet!==e&&i.audioCodec===r})),m=null!=(a=t.context)?a:{},p=m.type,y=m.groupId,E=function(){var e=(T+u)%l.length;if(e!==u&&e>=h&&e<=d&&0===l[e].loadError){var r,n,a=l[e];if(s===S.FRAG_GAP&&t.frag){var c=l[e].details;if(c){var m=lr(t.frag,c.fragments,t.frag.start);if(null!=m&&m.gap)return 0}}else{if(p===Se&&a.hasAudioGroup(y)||p===Le&&a.hasSubtitleGroup(y))return 0;if(f===Re&&null!=(r=i.audioGroups)&&r.some((function(t){return a.hasAudioGroup(t)}))||f===be&&null!=(n=i.subtitleGroups)&&n.some((function(t){return a.hasSubtitleGroup(t)}))||g&&i.audioCodec===a.audioCodec||!g&&i.audioCodec!==a.audioCodec||v&&i.codecSet===a.codecSet)return 0}return o=e,1}},T=l.length;T--&&(0===(c=E())||1!==c););if(o>-1&&r.loadLevel!==o)return t.levelRetry=!0,this.playlistError=0,{action:2,flags:0,nextAutoLevel:o}}return{action:2,flags:1}},e.onErrorOut=function(t,e){var r;switch(null==(r=e.errorAction)?void 0:r.action){case 0:break;case 2:this.sendAlternateToPenaltyBox(e),e.errorAction.resolved||e.details===S.FRAG_GAP?/MediaSource readyState: ended/.test(e.error.message)&&(this.warn('MediaSource ended after "'+e.sourceBufferName+'" sourceBuffer append error. Attempting to recover from media error.'),this.hls.recoverMediaError()):e.fatal=!0}e.fatal&&this.hls.stopLoad()},e.sendAlternateToPenaltyBox=function(t){var e=this.hls,r=t.errorAction;if(r){var i=r.flags,n=r.hdcpLevel,a=r.nextAutoLevel;switch(i){case 0:this.switchLevel(t,a);break;case 2:n&&(e.maxHdcpLevel=He[He.indexOf(n)-1],r.resolved=!0),this.warn('Restricting playback to HDCP-LEVEL of "'+e.maxHdcpLevel+'" or lower')}r.resolved||this.switchLevel(t,a)}},e.switchLevel=function(t,e){void 0!==e&&t.errorAction&&(this.warn("switching to level "+e+" after "+t.details),this.hls.nextAutoLevel=e,t.errorAction.resolved=!0,this.hls.nextLoadLevel=this.hls.nextAutoLevel)},t}(),cr=function(){function t(t,e){this.hls=void 0,this.timer=-1,this.requestScheduled=-1,this.canLoad=!1,this.log=void 0,this.warn=void 0,this.log=k.log.bind(k,e+":"),this.warn=k.warn.bind(k,e+":"),this.hls=t}var e=t.prototype;return e.destroy=function(){this.clearTimer(),this.hls=this.log=this.warn=null},e.clearTimer=function(){-1!==this.timer&&(self.clearTimeout(this.timer),this.timer=-1)},e.startLoad=function(){this.canLoad=!0,this.requestScheduled=-1,this.loadPlaylist()},e.stopLoad=function(){this.canLoad=!1,this.clearTimer()},e.switchParams=function(t,e,r){var i=null==e?void 0:e.renditionReports;if(i){for(var n=-1,a=0;a=0&&d>e.partTarget&&(h+=1)}var c=r&&Ye(r);return new We(u,h>=0?h:void 0,c)}}},e.loadPlaylist=function(t){-1===this.requestScheduled&&(this.requestScheduled=self.performance.now())},e.shouldLoadPlaylist=function(t){return this.canLoad&&!!t&&!!t.url&&(!t.details||t.details.live)},e.shouldReloadPlaylist=function(t){return-1===this.timer&&-1===this.requestScheduled&&this.shouldLoadPlaylist(t)},e.playlistLoaded=function(t,e,r){var i=this,n=e.details,a=e.stats,s=self.performance.now(),o=a.loading.first?Math.max(0,s-a.loading.first):0;if(n.advancedDateTime=Date.now()-o,n.live||null!=r&&r.live){if(n.reloaded(r),r&&this.log("live playlist "+t+" "+(n.advanced?"REFRESHED "+n.lastPartSn+"-"+n.lastPartIndex:n.updated?"UPDATED":"MISSED")),r&&n.fragments.length>0&&Qe(r,n),!this.canLoad||!n.live)return;var l,u=void 0,h=void 0;if(n.canBlockReload&&n.endSN&&n.advanced){var d=this.hls.config.lowLatencyMode,c=n.lastPartSn,f=n.endSN,g=n.lastPartIndex,v=c===f;-1!==g?(u=v?f+1:c,h=v?d?0:g:g+1):u=f+1;var m=n.age,p=m+n.ageHeader,y=Math.min(p-n.partTarget,1.5*n.targetduration);if(y>0){if(r&&y>r.tuneInGoal)this.warn("CDN Tune-in goal increased from: "+r.tuneInGoal+" to: "+y+" with playlist age: "+n.age),y=0;else{var E=Math.floor(y/n.targetduration);u+=E,void 0!==h&&(h+=Math.round(y%n.targetduration/n.partTarget)),this.log("CDN Tune-in age: "+n.ageHeader+"s last advanced "+m.toFixed(2)+"s goal: "+y+" skip sn "+E+" to part "+h)}n.tuneInGoal=y}if(l=this.getDeliveryDirectives(n,e.deliveryDirectives,u,h),d||!v)return void this.loadPlaylist(l)}else(n.canBlockReload||n.canSkipUntil)&&(l=this.getDeliveryDirectives(n,e.deliveryDirectives,u,h));var T=this.hls.mainForwardBufferInfo,S=T?T.end-T.len:0,L=function(t,e){void 0===e&&(e=1/0);var r=1e3*t.targetduration;if(t.updated){var i=t.fragments;if(i.length&&4*r>e){var n=1e3*i[i.length-1].duration;nthis.requestScheduled+L&&(this.requestScheduled=a.loading.start),void 0!==u&&n.canBlockReload?this.requestScheduled=a.loading.first+L-(1e3*n.partTarget||1e3):-1===this.requestScheduled||this.requestScheduled+L=u.maxNumRetry)return!1;if(i&&null!=(d=t.context)&&d.deliveryDirectives)this.warn("Retrying playlist loading "+(l+1)+"/"+u.maxNumRetry+' after "'+r+'" without delivery-directives'),this.loadPlaylist();else{var c=nr(u,l);this.timer=self.setTimeout((function(){return e.loadPlaylist()}),c),this.warn("Retrying playlist loading "+(l+1)+"/"+u.maxNumRetry+' after "'+r+'" in '+c+"ms")}t.levelRetry=!0,n.resolved=!0}return h},t}(),fr=function(){function t(t,e,r){void 0===e&&(e=0),void 0===r&&(r=0),this.halfLife=void 0,this.alpha_=void 0,this.estimate_=void 0,this.totalWeight_=void 0,this.halfLife=t,this.alpha_=t?Math.exp(Math.log(.5)/t):0,this.estimate_=e,this.totalWeight_=r}var e=t.prototype;return e.sample=function(t,e){var r=Math.pow(this.alpha_,t);this.estimate_=e*(1-r)+r*this.estimate_,this.totalWeight_+=t},e.getTotalWeight=function(){return this.totalWeight_},e.getEstimate=function(){if(this.alpha_){var t=1-Math.pow(this.alpha_,this.totalWeight_);if(t)return this.estimate_/t}return this.estimate_},t}(),gr=function(){function t(t,e,r,i){void 0===i&&(i=100),this.defaultEstimate_=void 0,this.minWeight_=void 0,this.minDelayMs_=void 0,this.slow_=void 0,this.fast_=void 0,this.defaultTTFB_=void 0,this.ttfb_=void 0,this.defaultEstimate_=r,this.minWeight_=.001,this.minDelayMs_=50,this.slow_=new fr(t),this.fast_=new fr(e),this.defaultTTFB_=i,this.ttfb_=new fr(t)}var e=t.prototype;return e.update=function(t,e){var r=this.slow_,i=this.fast_,n=this.ttfb_;r.halfLife!==t&&(this.slow_=new fr(t,r.getEstimate(),r.getTotalWeight())),i.halfLife!==e&&(this.fast_=new fr(e,i.getEstimate(),i.getTotalWeight())),n.halfLife!==t&&(this.ttfb_=new fr(t,n.getEstimate(),n.getTotalWeight()))},e.sample=function(t,e){var r=(t=Math.max(t,this.minDelayMs_))/1e3,i=8*e/r;this.fast_.sample(r,i),this.slow_.sample(r,i)},e.sampleTTFB=function(t){var e=t/1e3,r=Math.sqrt(2)*Math.exp(-Math.pow(e,2)/2);this.ttfb_.sample(r,Math.max(t,5))},e.canEstimate=function(){return this.fast_.getTotalWeight()>=this.minWeight_},e.getEstimate=function(){return this.canEstimate()?Math.min(this.fast_.getEstimate(),this.slow_.getEstimate()):this.defaultEstimate_},e.getEstimateTTFB=function(){return this.ttfb_.getTotalWeight()>=this.minWeight_?this.ttfb_.getEstimate():this.defaultTTFB_},e.destroy=function(){},t}(),vr={supported:!0,configurations:[],decodingInfoResults:[{supported:!0,powerEfficient:!0,smooth:!0}]},mr={};function pr(t,e,r){var n=t.videoCodec,a=t.audioCodec;if(!n||!a||!r)return Promise.resolve(vr);var s={width:t.width,height:t.height,bitrate:Math.ceil(Math.max(.9*t.bitrate,t.averageBitrate)),framerate:t.frameRate||30},o=t.videoRange;"SDR"!==o&&(s.transferFunction=o.toLowerCase());var l=n.split(",").map((function(t){return{type:"media-source",video:i(i({},s),{},{contentType:Zt(t,"video")})}}));return a&&t.audioGroups&&t.audioGroups.forEach((function(t){var r;t&&(null==(r=e.groups[t])||r.tracks.forEach((function(e){if(e.groupId===t){var r=e.channels||"",i=parseFloat(r);m(i)&&i>2&&l.push.apply(l,a.split(",").map((function(t){return{type:"media-source",audio:{contentType:Zt(t,"audio"),channels:""+i}}})))}})))})),Promise.all(l.map((function(t){var e=function(t){var e=t.audio,r=t.video,i=r||e;if(i){var n=i.contentType.split('"')[1];if(r)return"r"+r.height+"x"+r.width+"f"+Math.ceil(r.framerate)+(r.transferFunction||"sd")+"_"+n+"_"+Math.ceil(r.bitrate/1e5);if(e)return"c"+e.channels+(e.spatialRendering?"s":"n")+"_"+n}return""}(t);return mr[e]||(mr[e]=r.decodingInfo(t))}))).then((function(t){return{supported:!t.some((function(t){return!t.supported})),configurations:l,decodingInfoResults:t}})).catch((function(t){return{supported:!1,configurations:l,decodingInfoResults:[],error:t}}))}function yr(t,e){k.log('[abr] start candidates with "'+t+'" ignored because '+e)}function Er(t,e,r){if("attrs"in t){var i=e.indexOf(t);if(-1!==i)return i}for(var n=0;n-1,y=e.getBwEstimate(),T=i.levels,S=T[t.level],L=o.total||Math.max(o.loaded,Math.round(l*S.averageBitrate/8)),A=p?u-v:u;A<1&&p&&(A=Math.min(u,8*o.loaded/y));var R=p?1e3*o.loaded/A:0,b=R?(L-o.loaded)/R:8*L/y+c/1e3;if(!(b<=g)){var D,I=R?8*R:y,w=Number.POSITIVE_INFINITY;for(D=t.level-1;D>h;D--){var C=T[D].maxBitrate;if((w=e.getTimeToLoadFrag(c/1e3,I,l*C,!T[D].details))=b||w>10*l)){i.nextLoadLevel=i.nextAutoLevel=D,p?e.bwEstimator.sample(u-Math.min(c,v),o.loaded):e.bwEstimator.sampleTTFB(u);var _=T[D].maxBitrate;e.getBwEstimate()*e.hls.config.abrBandWidthUpFactor>_&&e.resetEstimator(_),e.clearTimer(),k.warn("[abr] Fragment "+t.sn+(r?" part "+r.index:"")+" of level "+t.level+" is loading too slowly;\n Time to underbuffer: "+g.toFixed(3)+" s\n Estimated load time for current fragment: "+b.toFixed(3)+" s\n Estimated load time for down switch fragment: "+w.toFixed(3)+" s\n TTFB estimate: "+(0|v)+" ms\n Current BW estimate: "+(m(y)?0|y:"Unknown")+" bps\n New BW estimate: "+(0|e.getBwEstimate())+" bps\n Switching to level "+D+" @ "+(0|_)+" bps"),i.trigger(E.FRAG_LOAD_EMERGENCY_ABORTED,{frag:t,part:r,stats:o})}}}}}}},this.hls=t,this.bwEstimator=this.initEstimator(),this.registerListeners()}var e=t.prototype;return e.resetEstimator=function(t){t&&(k.log("setting initial bwe to "+t),this.hls.config.abrEwmaDefaultEstimate=t),this.firstSelection=-1,this.bwEstimator=this.initEstimator()},e.initEstimator=function(){var t=this.hls.config;return new gr(t.abrEwmaSlowVoD,t.abrEwmaFastVoD,t.abrEwmaDefaultEstimate)},e.registerListeners=function(){var t=this.hls;t.on(E.MANIFEST_LOADING,this.onManifestLoading,this),t.on(E.FRAG_LOADING,this.onFragLoading,this),t.on(E.FRAG_LOADED,this.onFragLoaded,this),t.on(E.FRAG_BUFFERED,this.onFragBuffered,this),t.on(E.LEVEL_SWITCHING,this.onLevelSwitching,this),t.on(E.LEVEL_LOADED,this.onLevelLoaded,this),t.on(E.LEVELS_UPDATED,this.onLevelsUpdated,this),t.on(E.MAX_AUTO_LEVEL_UPDATED,this.onMaxAutoLevelUpdated,this),t.on(E.ERROR,this.onError,this)},e.unregisterListeners=function(){var t=this.hls;t&&(t.off(E.MANIFEST_LOADING,this.onManifestLoading,this),t.off(E.FRAG_LOADING,this.onFragLoading,this),t.off(E.FRAG_LOADED,this.onFragLoaded,this),t.off(E.FRAG_BUFFERED,this.onFragBuffered,this),t.off(E.LEVEL_SWITCHING,this.onLevelSwitching,this),t.off(E.LEVEL_LOADED,this.onLevelLoaded,this),t.off(E.LEVELS_UPDATED,this.onLevelsUpdated,this),t.off(E.MAX_AUTO_LEVEL_UPDATED,this.onMaxAutoLevelUpdated,this),t.off(E.ERROR,this.onError,this))},e.destroy=function(){this.unregisterListeners(),this.clearTimer(),this.hls=this._abandonRulesCheck=null,this.fragCurrent=this.partCurrent=null},e.onManifestLoading=function(t,e){this.lastLoadedFragLevel=-1,this.firstSelection=-1,this.lastLevelLoadSec=0,this.fragCurrent=this.partCurrent=null,this.onLevelsUpdated(),this.clearTimer()},e.onLevelsUpdated=function(){this.lastLoadedFragLevel>-1&&this.fragCurrent&&(this.lastLoadedFragLevel=this.fragCurrent.level),this._nextAutoLevel=-1,this.onMaxAutoLevelUpdated(),this.codecTiers=null,this.audioTracksByGroup=null},e.onMaxAutoLevelUpdated=function(){this.firstSelection=-1,this.nextAutoLevelKey=""},e.onFragLoading=function(t,e){var r,i=e.frag;this.ignoreFragment(i)||(i.bitrateTest||(this.fragCurrent=i,this.partCurrent=null!=(r=e.part)?r:null),this.clearTimer(),this.timer=self.setInterval(this._abandonRulesCheck,100))},e.onLevelSwitching=function(t,e){this.clearTimer()},e.onError=function(t,e){if(!e.fatal)switch(e.details){case S.BUFFER_ADD_CODEC_ERROR:case S.BUFFER_APPEND_ERROR:this.lastLoadedFragLevel=-1,this.firstSelection=-1;break;case S.FRAG_LOAD_TIMEOUT:var r=e.frag,i=this.fragCurrent,n=this.partCurrent;if(r&&i&&r.sn===i.sn&&r.level===i.level){var a=performance.now(),s=n?n.stats:r.stats,o=a-s.loading.start,l=s.loading.first?s.loading.first-s.loading.start:-1;if(s.loaded&&l>-1){var u=this.bwEstimator.getEstimateTTFB();this.bwEstimator.sample(o-Math.min(u,l),s.loaded)}else this.bwEstimator.sampleTTFB(o)}}},e.getTimeToLoadFrag=function(t,e,r,i){return t+r/e+(i?this.lastLevelLoadSec:0)},e.onLevelLoaded=function(t,e){var r=this.hls.config,i=e.stats.loading,n=i.end-i.start;m(n)&&(this.lastLevelLoadSec=n/1e3),e.details.live?this.bwEstimator.update(r.abrEwmaSlowLive,r.abrEwmaFastLive):this.bwEstimator.update(r.abrEwmaSlowVoD,r.abrEwmaFastVoD)},e.onFragLoaded=function(t,e){var r=e.frag,i=e.part,n=i?i.stats:r.stats;if(r.type===Ae&&this.bwEstimator.sampleTTFB(n.loading.first-n.loading.start),!this.ignoreFragment(r)){if(this.clearTimer(),r.level===this._nextAutoLevel&&(this._nextAutoLevel=-1),this.firstSelection=-1,this.hls.config.abrMaxWithRealBitrate){var a=i?i.duration:r.duration,s=this.hls.levels[r.level],o=(s.loaded?s.loaded.bytes:0)+n.loaded,l=(s.loaded?s.loaded.duration:0)+a;s.loaded={bytes:o,duration:l},s.realBitrate=Math.round(8*o/l)}if(r.bitrateTest){var u={stats:n,frag:r,part:i,id:r.type};this.onFragBuffered(E.FRAG_BUFFERED,u),r.bitrateTest=!1}else this.lastLoadedFragLevel=r.level}},e.onFragBuffered=function(t,e){var r=e.frag,i=e.part,n=null!=i&&i.stats.loaded?i.stats:r.stats;if(!n.aborted&&!this.ignoreFragment(r)){var a=n.parsing.end-n.loading.start-Math.min(n.loading.first-n.loading.start,this.bwEstimator.getEstimateTTFB());this.bwEstimator.sample(a,n.loaded),n.bwEstimate=this.getBwEstimate(),r.bitrateTest?this.bitrateTestDelay=a/1e3:this.bitrateTestDelay=0}},e.ignoreFragment=function(t){return t.type!==Ae||"initSegment"===t.sn},e.clearTimer=function(){this.timer>-1&&(self.clearInterval(this.timer),this.timer=-1)},e.getAutoLevelKey=function(){return this.getBwEstimate()+"_"+this.getStarvationDelay().toFixed(2)},e.getNextABRAutoLevel=function(){var t=this.fragCurrent,e=this.partCurrent,r=this.hls,i=r.maxAutoLevel,n=r.config,a=r.minAutoLevel,s=e?e.duration:t?t.duration:0,o=this.getBwEstimate(),l=this.getStarvationDelay(),u=n.abrBandWidthFactor,h=n.abrBandWidthUpFactor;if(l){var d=this.findBestLevel(o,a,i,l,0,u,h);if(d>=0)return d}var c=s?Math.min(s,n.maxStarvationDelay):n.maxStarvationDelay;if(!l){var f=this.bitrateTestDelay;f&&(c=(s?Math.min(s,n.maxLoadingDelay):n.maxLoadingDelay)-f,k.info("[abr] bitrate test took "+Math.round(1e3*f)+"ms, set first fragment max fetchDuration to "+Math.round(1e3*c)+" ms"),u=h=1)}var g=this.findBestLevel(o,a,i,l,c,u,h);if(k.info("[abr] "+(l?"rebuffering expected":"buffer is empty")+", optimal quality level "+g),g>-1)return g;var v=r.levels[a],m=r.levels[r.loadLevel];return(null==v?void 0:v.bitrate)<(null==m?void 0:m.bitrate)?a:r.loadLevel},e.getStarvationDelay=function(){var t=this.hls,e=t.media;if(!e)return 1/0;var r=e&&0!==e.playbackRate?Math.abs(e.playbackRate):1,i=t.mainForwardBufferInfo;return(i?i.len:0)/r},e.getBwEstimate=function(){return this.bwEstimator.canEstimate()?this.bwEstimator.getEstimate():this.hls.config.abrEwmaDefaultEstimate},e.findBestLevel=function(t,e,r,i,n,a,s){var o,l=this,u=i+n,h=this.lastLoadedFragLevel,d=-1===h?this.hls.firstLevel:h,c=this.fragCurrent,f=this.partCurrent,g=this.hls,v=g.levels,p=g.allAudioTracks,y=g.loadLevel,E=g.config;if(1===v.length)return 0;var T,S=v[d],L=!(null==S||null==(o=S.details)||!o.live),A=-1===y||-1===h,R="SDR",b=(null==S?void 0:S.frameRate)||0,D=E.audioPreference,I=E.videoPreference,w=this.audioTracksByGroup||(this.audioTracksByGroup=function(t){return t.reduce((function(t,e){var r=t.groups[e.groupId];r||(r=t.groups[e.groupId]={tracks:[],channels:{2:0},hasDefault:!1,hasAutoSelect:!1}),r.tracks.push(e);var i=e.channels||"2";return r.channels[i]=(r.channels[i]||0)+1,r.hasDefault=r.hasDefault||e.default,r.hasAutoSelect=r.hasAutoSelect||e.autoselect,r.hasDefault&&(t.hasDefaultAudio=!0),r.hasAutoSelect&&(t.hasAutoSelectAudio=!0),t}),{hasDefaultAudio:!1,hasAutoSelectAudio:!1,groups:{}})}(p));if(A){if(-1!==this.firstSelection)return this.firstSelection;var C=this.codecTiers||(this.codecTiers=function(t,e,r,i){return t.slice(r,i+1).reduce((function(t,r){if(!r.codecSet)return t;var i=r.audioGroups,n=t[r.codecSet];n||(t[r.codecSet]=n={minBitrate:1/0,minHeight:1/0,minFramerate:1/0,maxScore:0,videoRanges:{SDR:0},channels:{2:0},hasDefaultAudio:!i,fragmentError:0}),n.minBitrate=Math.min(n.minBitrate,r.bitrate);var a=Math.min(r.height,r.width);return n.minHeight=Math.min(n.minHeight,a),n.minFramerate=Math.min(n.minFramerate,r.frameRate),n.maxScore=Math.max(n.maxScore,r.score),n.fragmentError+=r.fragmentError,n.videoRanges[r.videoRange]=(n.videoRanges[r.videoRange]||0)+1,i&&i.forEach((function(t){if(t){var r=e.groups[t];r&&(n.hasDefaultAudio=n.hasDefaultAudio||e.hasDefaultAudio?r.hasDefault:r.hasAutoSelect||!e.hasDefaultAudio&&!e.hasAutoSelectAudio,Object.keys(r.channels).forEach((function(t){n.channels[t]=(n.channels[t]||0)+r.channels[t]})))}})),t}),{})}(v,w,e,r)),_=function(t,e,r,i,n){for(var a=Object.keys(t),s=null==i?void 0:i.channels,o=null==i?void 0:i.audioCodec,l=s&&2===parseInt(s),u=!0,h=!1,d=1/0,c=1/0,f=1/0,g=0,v=[],p=function(t,e){var r=!1,i=[];return t&&(r="SDR"!==t,i=[t]),e&&(i=e.allowedVideoRanges||Ve.slice(0),i=(r=void 0!==e.preferHDR?e.preferHDR:function(){if("function"==typeof matchMedia){var t=matchMedia("(dynamic-range: high)"),e=matchMedia("bad query");if(t.media!==e.media)return!0===t.matches}return!1}())?i.filter((function(t){return"SDR"!==t})):["SDR"]),{preferHDR:r,allowedVideoRanges:i}}(e,n),y=p.preferHDR,E=p.allowedVideoRanges,T=function(){var e=t[a[S]];u=e.channels[2]>0,d=Math.min(d,e.minHeight),c=Math.min(c,e.minFramerate),f=Math.min(f,e.minBitrate);var r=E.filter((function(t){return e.videoRanges[t]>0}));r.length>0&&(h=!0,v=r)},S=a.length;S--;)T();d=m(d)?d:0,c=m(c)?c:0;var L=Math.max(1080,d),A=Math.max(30,c);return f=m(f)?f:r,r=Math.max(f,r),h||(e=void 0,v=[]),{codecSet:a.reduce((function(e,i){var n=t[i];if(i===e)return e;if(n.minBitrate>r)return yr(i,"min bitrate of "+n.minBitrate+" > current estimate of "+r),e;if(!n.hasDefaultAudio)return yr(i,"no renditions with default or auto-select sound found"),e;if(o&&i.indexOf(o.substring(0,4))%5!=0)return yr(i,'audio codec preference "'+o+'" not found'),e;if(s&&!l){if(!n.channels[s])return yr(i,"no renditions with "+s+" channel sound found (channels options: "+Object.keys(n.channels)+")"),e}else if((!o||l)&&u&&0===n.channels[2])return yr(i,"no renditions with stereo sound found"),e;return n.minHeight>L?(yr(i,"min resolution of "+n.minHeight+" > maximum of "+L),e):n.minFramerate>A?(yr(i,"min framerate of "+n.minFramerate+" > maximum of "+A),e):v.some((function(t){return n.videoRanges[t]>0}))?n.maxScore=ee(e)||n.fragmentError>t[e].fragmentError)?e:(g=n.maxScore,i):(yr(i,"no variants with VIDEO-RANGE of "+JSON.stringify(v)+" found"),e)}),void 0),videoRanges:v,preferHDR:y,minFramerate:c,minBitrate:f}}(C,R,t,D,I),x=_.codecSet,P=_.videoRanges,F=_.minFramerate,M=_.minBitrate,O=_.preferHDR;T=x,R=O?P[P.length-1]:P[0],b=F,t=Math.max(t,M),k.log("[abr] picked start tier "+JSON.stringify(_))}else T=null==S?void 0:S.codecSet,R=null==S?void 0:S.videoRange;for(var N,U=f?f.duration:c?c.duration:0,B=this.bwEstimator.getEstimateTTFB()/1e3,G=[],K=function(){var e,o=v[H],c=H>d;if(!o)return 0;if(E.useMediaCapabilities&&!o.supportedResult&&!o.supportedPromise){var g=navigator.mediaCapabilities;"function"==typeof(null==g?void 0:g.decodingInfo)&&function(t,e,r,i,n,a){var s=t.audioCodec?t.audioGroups:null,o=null==a?void 0:a.audioCodec,l=null==a?void 0:a.channels,u=l?parseInt(l):o?1/0:2,h=null;if(null!=s&&s.length)try{h=1===s.length&&s[0]?e.groups[s[0]].channels:s.reduce((function(t,r){if(r){var i=e.groups[r];if(!i)throw new Error("Audio track group "+r+" not found");Object.keys(i.channels).forEach((function(e){t[e]=(t[e]||0)+i.channels[e]}))}return t}),{2:0})}catch(t){return!0}return void 0!==t.videoCodec&&(t.width>1920&&t.height>1088||t.height>1920&&t.width>1088||t.frameRate>Math.max(i,30)||"SDR"!==t.videoRange&&t.videoRange!==r||t.bitrate>Math.max(n,8e6))||!!h&&m(u)&&Object.keys(h).some((function(t){return parseInt(t)>u}))}(o,w,R,b,t,D)?(o.supportedPromise=pr(o,w,g),o.supportedPromise.then((function(t){if(l.hls){o.supportedResult=t;var e=l.hls.levels,r=e.indexOf(o);t.error?k.warn('[abr] MediaCapabilities decodingInfo error: "'+t.error+'" for level '+r+" "+JSON.stringify(t)):t.supported||(k.warn("[abr] Unsupported MediaCapabilities decodingInfo result for level "+r+" "+JSON.stringify(t)),r>-1&&e.length>1&&(k.log("[abr] Removing unsupported level "+r),l.hls.removeLevel(r)))}}))):o.supportedResult=vr}if(T&&o.codecSet!==T||R&&o.videoRange!==R||c&&b>o.frameRate||!c&&b>0&&b=2*U&&0===n?v[H].averageBitrate:v[H].maxBitrate,x=l.getTimeToLoadFrag(B,p,_*C,void 0===I);if(p>=_&&(H===h||0===o.loadError&&0===o.fragmentError)&&(x<=B||!m(x)||L&&!l.bitrateTestDelay||x"+H+" adjustedbw("+Math.round(p)+")-bitrate="+Math.round(p-_)+" ttfb:"+B.toFixed(1)+" avgDuration:"+C.toFixed(1)+" maxFetchDuration:"+u.toFixed(1)+" fetchDuration:"+x.toFixed(1)+" firstSelection:"+A+" codecSet:"+T+" videoRange:"+R+" hls.loadLevel:"+y)),A&&(l.firstSelection=H),{v:H}}},H=r;H>=e;H--)if(0!==(N=K())&&N)return N.v;return-1},s(t,[{key:"firstAutoLevel",get:function(){var t=this.hls,e=t.maxAutoLevel,r=t.minAutoLevel,i=this.getBwEstimate(),n=this.hls.config.maxStarvationDelay,a=this.findBestLevel(i,r,e,0,n,1,1);if(a>-1)return a;var s=this.hls.firstLevel,o=Math.min(Math.max(s,r),e);return k.warn("[abr] Could not find best starting auto level. Defaulting to first in playlist "+s+" clamped to "+o),o}},{key:"forcedAutoLevel",get:function(){return this.nextAutoLevelKey?-1:this._nextAutoLevel}},{key:"nextAutoLevel",get:function(){var t=this.forcedAutoLevel,e=this.bwEstimator.canEstimate(),r=this.lastLoadedFragLevel>-1;if(!(-1===t||e&&r&&this.nextAutoLevelKey!==this.getAutoLevelKey()))return t;var i=e&&r?this.getNextABRAutoLevel():this.firstAutoLevel;if(-1!==t){var n=this.hls.levels;if(n.length>Math.max(t,i)&&n[t].loadError<=n[i].loadError)return t}return this._nextAutoLevel=i,this.nextAutoLevelKey=this.getAutoLevelKey(),i},set:function(t){var e=this.hls,r=e.maxAutoLevel,i=e.minAutoLevel,n=Math.min(Math.max(t,i),r);this._nextAutoLevel!==n&&(this.nextAutoLevelKey="",this._nextAutoLevel=n)}}]),t}(),Rr=function(){function t(){this._boundTick=void 0,this._tickTimer=null,this._tickInterval=null,this._tickCallCount=0,this._boundTick=this.tick.bind(this)}var e=t.prototype;return e.destroy=function(){this.onHandlerDestroying(),this.onHandlerDestroyed()},e.onHandlerDestroying=function(){this.clearNextTick(),this.clearInterval()},e.onHandlerDestroyed=function(){},e.hasInterval=function(){return!!this._tickInterval},e.hasNextTick=function(){return!!this._tickTimer},e.setInterval=function(t){return!this._tickInterval&&(this._tickCallCount=0,this._tickInterval=self.setInterval(this._boundTick,t),!0)},e.clearInterval=function(){return!!this._tickInterval&&(self.clearInterval(this._tickInterval),this._tickInterval=null,!0)},e.clearNextTick=function(){return!!this._tickTimer&&(self.clearTimeout(this._tickTimer),this._tickTimer=null,!0)},e.tick=function(){this._tickCallCount++,1===this._tickCallCount&&(this.doTick(),this._tickCallCount>1&&this.tickImmediate(),this._tickCallCount=0)},e.tickImmediate=function(){this.clearNextTick(),this._tickTimer=self.setTimeout(this._boundTick,0)},e.doTick=function(){},t}(),br="NOT_LOADED",kr="APPENDING",Dr="PARTIAL",Ir="OK",wr=function(){function t(t){this.activePartLists=Object.create(null),this.endListFragments=Object.create(null),this.fragments=Object.create(null),this.timeRanges=Object.create(null),this.bufferPadding=.2,this.hls=void 0,this.hasGaps=!1,this.hls=t,this._registerListeners()}var e=t.prototype;return e._registerListeners=function(){var t=this.hls;t.on(E.BUFFER_APPENDED,this.onBufferAppended,this),t.on(E.FRAG_BUFFERED,this.onFragBuffered,this),t.on(E.FRAG_LOADED,this.onFragLoaded,this)},e._unregisterListeners=function(){var t=this.hls;t.off(E.BUFFER_APPENDED,this.onBufferAppended,this),t.off(E.FRAG_BUFFERED,this.onFragBuffered,this),t.off(E.FRAG_LOADED,this.onFragLoaded,this)},e.destroy=function(){this._unregisterListeners(),this.fragments=this.activePartLists=this.endListFragments=this.timeRanges=null},e.getAppendedFrag=function(t,e){var r=this.activePartLists[e];if(r)for(var i=r.length;i--;){var n=r[i];if(!n)break;var a=n.end;if(n.start<=t&&null!==a&&t<=a)return n}return this.getBufferedFrag(t,e)},e.getBufferedFrag=function(t,e){for(var r=this.fragments,i=Object.keys(r),n=i.length;n--;){var a=r[i[n]];if((null==a?void 0:a.body.type)===e&&a.buffered){var s=a.body;if(s.start<=t&&t<=s.end)return s}}return null},e.detectEvictedFragments=function(t,e,r,i){var n=this;this.timeRanges&&(this.timeRanges[t]=e);var a=(null==i?void 0:i.fragment.sn)||-1;Object.keys(this.fragments).forEach((function(i){var s=n.fragments[i];if(s&&!(a>=s.body.sn))if(s.buffered||s.loaded){var o=s.range[t];o&&o.time.some((function(t){var r=!n.isTimeBuffered(t.startPTS,t.endPTS,e);return r&&n.removeFragment(s.body),r}))}else s.body.type===r&&n.removeFragment(s.body)}))},e.detectPartialFragments=function(t){var e=this,r=this.timeRanges,i=t.frag,n=t.part;if(r&&"initSegment"!==i.sn){var a=_r(i),s=this.fragments[a];if(!(!s||s.buffered&&i.gap)){var o=!i.relurl;Object.keys(r).forEach((function(t){var a=i.elementaryStreams[t];if(a){var l=r[t],u=o||!0===a.partial;s.range[t]=e.getBufferedTimes(i,n,u,l)}})),s.loaded=null,Object.keys(s.range).length?(s.buffered=!0,(s.body.endList=i.endList||s.body.endList)&&(this.endListFragments[s.body.type]=s),Cr(s)||this.removeParts(i.sn-1,i.type)):this.removeFragment(s.body)}}},e.removeParts=function(t,e){var r=this.activePartLists[e];r&&(this.activePartLists[e]=r.filter((function(e){return e.fragment.sn>=t})))},e.fragBuffered=function(t,e){var r=_r(t),i=this.fragments[r];!i&&e&&(i=this.fragments[r]={body:t,appendedPTS:null,loaded:null,buffered:!1,range:Object.create(null)},t.gap&&(this.hasGaps=!0)),i&&(i.loaded=null,i.buffered=!0)},e.getBufferedTimes=function(t,e,r,i){for(var n={time:[],partial:r},a=t.start,s=t.end,o=t.minEndPTS||s,l=t.maxStartPTS||a,u=0;u=h&&o<=d){n.time.push({startPTS:Math.max(a,i.start(u)),endPTS:Math.min(s,i.end(u))});break}if(ah){var c=Math.max(a,i.start(u)),f=Math.min(s,i.end(u));f>c&&(n.partial=!0,n.time.push({startPTS:c,endPTS:f}))}else if(s<=h)break}return n},e.getPartialFragment=function(t){var e,r,i,n=null,a=0,s=this.bufferPadding,o=this.fragments;return Object.keys(o).forEach((function(l){var u=o[l];u&&Cr(u)&&(r=u.body.start-s,i=u.body.end+s,t>=r&&t<=i&&(e=Math.min(t-r,i-t),a<=e&&(n=u.body,a=e)))})),n},e.isEndListAppended=function(t){var e=this.endListFragments[t];return void 0!==e&&(e.buffered||Cr(e))},e.getState=function(t){var e=_r(t),r=this.fragments[e];return r?r.buffered?Cr(r)?Dr:Ir:kr:br},e.isTimeBuffered=function(t,e,r){for(var i,n,a=0;a=i&&e<=n)return!0;if(e<=i)return!1}return!1},e.onFragLoaded=function(t,e){var r=e.frag,i=e.part;if("initSegment"!==r.sn&&!r.bitrateTest){var n=i?null:e,a=_r(r);this.fragments[a]={body:r,appendedPTS:null,loaded:n,buffered:!1,range:Object.create(null)}}},e.onBufferAppended=function(t,e){var r=this,i=e.frag,n=e.part,a=e.timeRanges;if("initSegment"!==i.sn){var s=i.type;if(n){var o=this.activePartLists[s];o||(this.activePartLists[s]=o=[]),o.push(n)}this.timeRanges=a,Object.keys(a).forEach((function(t){var e=a[t];r.detectEvictedFragments(t,e,s,n)}))}},e.onFragBuffered=function(t,e){this.detectPartialFragments(e)},e.hasFragment=function(t){var e=_r(t);return!!this.fragments[e]},e.hasParts=function(t){var e;return!(null==(e=this.activePartLists[t])||!e.length)},e.removeFragmentsInRange=function(t,e,r,i,n){var a=this;i&&!this.hasGaps||Object.keys(this.fragments).forEach((function(s){var o=a.fragments[s];if(o){var l=o.body;l.type!==r||i&&!l.gap||l.startt&&(o.buffered||n)&&a.removeFragment(l)}}))},e.removeFragment=function(t){var e=_r(t);t.stats.loaded=0,t.clearElementaryStreamInfo();var r=this.activePartLists[t.type];if(r){var i=t.sn;this.activePartLists[t.type]=r.filter((function(t){return t.fragment.sn!==i}))}delete this.fragments[e],t.endList&&delete this.endListFragments[t.type]},e.removeAllFragments=function(){this.fragments=Object.create(null),this.endListFragments=Object.create(null),this.activePartLists=Object.create(null),this.hasGaps=!1},t}();function Cr(t){var e,r,i;return t.buffered&&(t.body.gap||(null==(e=t.range.video)?void 0:e.partial)||(null==(r=t.range.audio)?void 0:r.partial)||(null==(i=t.range.audiovideo)?void 0:i.partial))}function _r(t){return t.type+"_"+t.level+"_"+t.sn}var xr={length:0,start:function(){return 0},end:function(){return 0}},Pr=function(){function t(){}return t.isBuffered=function(e,r){try{if(e)for(var i=t.getBuffered(e),n=0;n=i.start(n)&&r<=i.end(n))return!0}catch(t){}return!1},t.bufferInfo=function(e,r,i){try{if(e){var n,a=t.getBuffered(e),s=[];for(n=0;ns&&(i[a-1].end=t[n].end):i.push(t[n])}else i.push(t[n])}else i=t;for(var o,l=0,u=e,h=e,d=0;d=c&&e>>8^255&m^99,t[f]=m,e[m]=f;var p=c[f],y=c[p],E=c[y],T=257*c[m]^16843008*m;i[f]=T<<24|T>>>8,n[f]=T<<16|T>>>16,a[f]=T<<8|T>>>24,s[f]=T,T=16843009*E^65537*y^257*p^16843008*f,l[m]=T<<24|T>>>8,u[m]=T<<16|T>>>16,h[m]=T<<8|T>>>24,d[m]=T,f?(f=p^c[c[c[E^p]]],g^=c[c[g]]):f=g=1}},e.expandKey=function(t){for(var e=this.uint8ArrayToUint32Array_(t),r=!0,i=0;is.end){var h=a>u;(a0&&null!=a&&a.key&&a.iv&&"AES-128"===a.method){var s=self.performance.now();return r.decrypter.decrypt(new Uint8Array(n),a.key.buffer,a.iv.buffer).catch((function(e){throw i.trigger(E.ERROR,{type:T.MEDIA_ERROR,details:S.FRAG_DECRYPT_ERROR,fatal:!1,error:e,reason:e.message,frag:t}),e})).then((function(n){var a=self.performance.now();return i.trigger(E.FRAG_DECRYPTED,{frag:t,payload:n,stats:{tstart:s,tdecrypt:a}}),e.payload=n,r.completeInitSegmentLoad(e)}))}return r.completeInitSegmentLoad(e)})).catch((function(e){r.state!==Xr&&r.state!==ii&&(r.warn(e),r.resetFragmentLoading(t))}))},r.completeInitSegmentLoad=function(t){if(!this.levels)throw new Error("init load aborted, missing levels");var e=t.frag.stats;this.state=zr,t.frag.data=new Uint8Array(t.payload),e.parsing.start=e.buffering.start=self.performance.now(),e.parsing.end=e.buffering.end=self.performance.now(),this.tick()},r.fragContextChanged=function(t){var e=this.fragCurrent;return!t||!e||t.sn!==e.sn||t.level!==e.level},r.fragBufferedComplete=function(t,e){var r,i,n,a,s=this.mediaBuffer?this.mediaBuffer:this.media;if(this.log("Buffered "+t.type+" sn: "+t.sn+(e?" part: "+e.index:"")+" of "+(this.playlistType===Ae?"level":"track")+" "+t.level+" (frag:["+(null!=(r=t.startPTS)?r:NaN).toFixed(3)+"-"+(null!=(i=t.endPTS)?i:NaN).toFixed(3)+"] > buffer:"+(s?function(t){for(var e="",r=t.length,i=0;it.end&&s.fragmentHint&&(t=s.fragmentHint);var u=this.getNextPart(l,t,r);if(u>-1){var h,d=l[u];return this.log("Loading part sn: "+t.sn+" p: "+d.index+" cc: "+t.cc+" of playlist ["+s.startSN+"-"+s.endSN+"] parts [0-"+u+"-"+(l.length-1)+"] "+("[stream-controller]"===this.logPrefix?"level":"track")+": "+t.level+", target: "+parseFloat(r.toFixed(3))),this.nextLoadPosition=d.start+d.duration,this.state=Jr,h=o?o.then((function(r){return!r||a.fragContextChanged(r.frag)?null:a.doFragPartsLoad(t,d,e,i)})).catch((function(t){return a.handleFragLoadError(t)})):this.doFragPartsLoad(t,d,e,i).catch((function(t){return a.handleFragLoadError(t)})),this.hls.trigger(E.FRAG_LOADING,{frag:t,part:d,targetBufferTime:r}),null===this.fragCurrent?Promise.reject(new Error("frag load aborted, context changed in FRAG_LOADING parts")):h}if(!t.url||this.loadedEndOfParts(l,r))return Promise.resolve(null)}}this.log("Loading fragment "+t.sn+" cc: "+t.cc+" "+(s?"of ["+s.startSN+"-"+s.endSN+"] ":"")+("[stream-controller]"===this.logPrefix?"level":"track")+": "+t.level+", target: "+parseFloat(r.toFixed(3))),m(t.sn)&&!this.bitrateTest&&(this.nextLoadPosition=t.start+t.duration),this.state=Jr;var c,f=this.config.progressive;return c=f&&o?o.then((function(e){return!e||a.fragContextChanged(null==e?void 0:e.frag)?null:a.fragmentLoader.load(t,i)})).catch((function(t){return a.handleFragLoadError(t)})):Promise.all([this.fragmentLoader.load(t,f?i:void 0),o]).then((function(t){var e=t[0];return!f&&e&&i&&i(e),e})).catch((function(t){return a.handleFragLoadError(t)})),this.hls.trigger(E.FRAG_LOADING,{frag:t,targetBufferTime:r}),null===this.fragCurrent?Promise.reject(new Error("frag load aborted, context changed in FRAG_LOADING")):c},r.doFragPartsLoad=function(t,e,r,i){var n=this;return new Promise((function(a,s){var o,l=[],u=null==(o=r.details)?void 0:o.partList;!function e(o){n.fragmentLoader.loadPart(t,o,i).then((function(i){l[o.index]=i;var s=i.part;n.hls.trigger(E.FRAG_LOADED,i);var h=Ze(r,t.sn,o.index+1)||tr(u,t.sn,o.index+1);if(!h)return a({frag:t,part:s,partsLoaded:l});e(h)})).catch(s)}(e)}))},r.handleFragLoadError=function(t){if("data"in t){var e=t.data;t.data&&e.details===S.INTERNAL_ABORTED?this.handleFragLoadAborted(e.frag,e.part):this.hls.trigger(E.ERROR,e)}else this.hls.trigger(E.ERROR,{type:T.OTHER_ERROR,details:S.INTERNAL_EXCEPTION,err:t,error:t,fatal:!0});return null},r._handleTransmuxerFlush=function(t){var e=this.getCurrentContext(t);if(e&&this.state===ti){var r=e.frag,i=e.part,n=e.level,a=self.performance.now();r.stats.parsing.end=a,i&&(i.stats.parsing.end=a),this.updateLevelTiming(r,i,n,t.partial)}else this.fragCurrent||this.state===Xr||this.state===ii||(this.state=zr)},r.getCurrentContext=function(t){var e=this.levels,r=this.fragCurrent,i=t.level,n=t.sn,a=t.part;if(null==e||!e[i])return this.warn("Levels object was unset while buffering fragment "+n+" of level "+i+". The current chunk will not be buffered."),null;var s=e[i],o=a>-1?Ze(s,n,a):null,l=o?o.fragment:function(t,e,r){if(null==t||!t.details)return null;var i=t.details,n=i.fragments[e-i.startSN];return n||((n=i.fragmentHint)&&n.sn===e?n:ea&&this.flushMainBuffer(s,t.start)}else this.flushMainBuffer(0,t.start)},r.getFwdBufferInfo=function(t,e){var r=this.getLoadPosition();return m(r)?this.getFwdBufferInfoAtPos(t,r,e):null},r.getFwdBufferInfoAtPos=function(t,e,r){var i=this.config.maxBufferHole,n=Pr.bufferInfo(t,e,i);if(0===n.len&&void 0!==n.nextStart){var a=this.fragmentTracker.getBufferedFrag(e,r);if(a&&n.nextStart=r&&(e.maxMaxBufferLength/=2,this.warn("Reduce max buffer length to "+e.maxMaxBufferLength+"s"),!0)},r.getAppendedFrag=function(t,e){var r=this.fragmentTracker.getAppendedFrag(t,Ae);return r&&"fragment"in r?r.fragment:r},r.getNextFragment=function(t,e){var r=e.fragments,i=r.length;if(!i)return null;var n,a=this.config,s=r[0].start;if(e.live){var o=a.initialLiveManifestSize;if(ie},r.getNextFragmentLoopLoading=function(t,e,r,i,n){var a=t.gap,s=this.getNextFragment(this.nextLoadPosition,e);if(null===s)return s;if(t=s,a&&t&&!t.gap&&r.nextStart){var o=this.getFwdBufferInfoAtPos(this.mediaBuffer?this.mediaBuffer:this.media,r.nextStart,i);if(null!==o&&r.len+o.len>=n)return this.log('buffer full after gaps in "'+i+'" playlist starting at sn: '+t.sn),null}return t},r.mapToInitFragWhenRequired=function(t){return null==t||!t.initSegment||null!=t&&t.initSegment.data||this.bitrateTest?t:t.initSegment},r.getNextPart=function(t,e,r){for(var i=-1,n=!1,a=!0,s=0,o=t.length;s-1&&rr.start&&r.loaded},r.getInitialLiveFragment=function(t,e){var r=this.fragPrevious,i=null;if(r){if(t.hasProgramDateTime&&(this.log("Live playlist, switching playlist, load frag with same PDT: "+r.programDateTime),i=function(t,e,r){if(null===e||!Array.isArray(t)||!t.length||!m(e))return null;if(e<(t[0].programDateTime||0))return null;if(e>=(t[t.length-1].endProgramDateTime||0))return null;r=r||0;for(var i=0;i=t.startSN&&n<=t.endSN){var a=e[n-t.startSN];r.cc===a.cc&&(i=a,this.log("Live playlist, switching playlist, load frag with next SN: "+i.sn))}i||(i=function(t,e){return or(t,(function(t){return t.cce?-1:0}))}(e,r.cc),i&&this.log("Live playlist, switching playlist, load frag with same CC: "+i.sn))}}else{var s=this.hls.liveSyncPosition;null!==s&&(i=this.getFragmentAtPosition(s,this.bitrateTest?t.fragmentEnd:t.edge,t))}return i},r.getFragmentAtPosition=function(t,e,r){var i,n=this.config,a=this.fragPrevious,s=r.fragments,o=r.endSN,l=r.fragmentHint,u=n.maxFragLookUpTolerance,h=r.partList,d=!!(n.lowLatencyMode&&null!=h&&h.length&&l);if(d&&l&&!this.bitrateTest&&(s=s.concat(l),o=l.sn),i=te-u?0:u):s[s.length-1]){var c=i.sn-r.startSN,f=this.fragmentTracker.getState(i);if((f===Ir||f===Dr&&i.gap)&&(a=i),a&&i.sn===a.sn&&(!d||h[0].fragment.sn>i.sn)&&a&&i.level===a.level){var g=s[c+1];i=i.sn=a-e.maxFragLookUpTolerance&&n<=s;if(null!==i&&r.duration>i&&(nr.startCC||t&&t.cc"+t.startSN+" prev-sn: "+(o?o.sn:"na")+" fragments: "+i),l}return n},r.waitForCdnTuneIn=function(t){return t.live&&t.canBlockReload&&t.partTarget&&t.tuneInGoal>Math.max(t.partHoldBack,3*t.partTarget)},r.setStartPosition=function(t,e){var r=this.startPosition;if(r "+(null==(n=this.fragCurrent)?void 0:n.url))}else{var a=e.details===S.FRAG_GAP;a&&this.fragmentTracker.fragBuffered(i,!0);var s=e.errorAction,o=s||{},l=o.action,u=o.retryCount,h=void 0===u?0:u,d=o.retryConfig;if(s&&5===l&&d){this.resetStartWhenNotLoaded(this.levelLastLoaded);var c=nr(d,h);this.warn("Fragment "+i.sn+" of "+t+" "+i.level+" errored with "+e.details+", retrying loading "+(h+1)+"/"+d.maxNumRetry+" in "+c+"ms"),s.resolved=!0,this.retryDate=self.performance.now()+c,this.state=$r}else if(d&&s){if(this.resetFragmentErrors(t),!(h.5;i&&this.reduceMaxBufferLength(r.len);var n=!i;return n&&this.warn("Buffer full error while media.currentTime is not buffered, flush "+e+" buffer"),t.frag&&(this.fragmentTracker.removeFragment(t.frag),this.nextLoadPosition=t.frag.start),this.resetLoadingState(),n}return!1},r.resetFragmentErrors=function(t){t===Re&&(this.fragCurrent=null),this.loadedmetadata||(this.startFragRequested=!1),this.state!==Xr&&(this.state=zr)},r.afterBufferFlushed=function(t,e,r){if(t){var i=Pr.getBuffered(t);this.fragmentTracker.detectEvictedFragments(e,i,r),this.state===ri&&this.resetLoadingState()}},r.resetLoadingState=function(){this.log("Reset loading state"),this.fragCurrent=null,this.fragPrevious=null,this.state=zr},r.resetStartWhenNotLoaded=function(t){if(!this.loadedmetadata){this.startFragRequested=!1;var e=t?t.details:null;null!=e&&e.live?(this.startPosition=-1,this.setStartPosition(e,0),this.resetLoadingState()):this.nextLoadPosition=this.startPosition}},r.resetWhenMissingContext=function(t){this.warn("The loading context changed while buffering fragment "+t.sn+" of level "+t.level+". This chunk will not be buffered."),this.removeUnbufferedFrags(),this.resetStartWhenNotLoaded(this.levelLastLoaded),this.resetLoadingState()},r.removeUnbufferedFrags=function(t){void 0===t&&(t=0),this.fragmentTracker.removeFragmentsInRange(t,1/0,this.playlistType,!1,!0)},r.updateLevelTiming=function(t,e,r,i){var n,a=this,s=r.details;if(s){if(!Object.keys(t.elementaryStreams).reduce((function(e,n){var o=t.elementaryStreams[n];if(o){var l=o.endPTS-o.startPTS;if(l<=0)return a.warn("Could not parse fragment "+t.sn+" "+n+" duration reliably ("+l+")"),e||!1;var u=i?0:ze(s,t,o.startPTS,o.endPTS,o.startDTS,o.endDTS);return a.hls.trigger(E.LEVEL_PTS_UPDATED,{details:s,level:r,drift:u,type:n,frag:t,start:o.startPTS,end:o.endPTS}),!0}return e}),!1)&&null===(null==(n=this.transmuxer)?void 0:n.error)){var o=new Error("Found no media in fragment "+t.sn+" of level "+t.level+" resetting transmuxer to fallback to playlist timing");if(0===r.fragmentError&&(r.fragmentError++,t.gap=!0,this.fragmentTracker.removeFragment(t),this.fragmentTracker.fragBuffered(t,!0)),this.warn(o.message),this.hls.trigger(E.ERROR,{type:T.MEDIA_ERROR,details:S.FRAG_PARSING_ERROR,fatal:!1,error:o,frag:t,reason:"Found no media in msn "+t.sn+' of level "'+r.url+'"'}),!this.hls)return;this.resetTransmuxer()}this.state=ei,this.hls.trigger(E.FRAG_PARSED,{frag:t,part:e})}else this.warn("level.details undefined")},r.resetTransmuxer=function(){this.transmuxer&&(this.transmuxer.destroy(),this.transmuxer=null)},r.recoverWorkerError=function(t){"demuxerWorker"===t.event&&(this.fragmentTracker.removeAllFragments(),this.resetTransmuxer(),this.resetStartWhenNotLoaded(this.levelLastLoaded),this.resetLoadingState())},s(e,[{key:"state",get:function(){return this._state},set:function(t){var e=this._state;e!==t&&(this._state=t,this.log(e+"->"+t))}}]),e}(Rr),oi=function(){function t(){this.chunks=[],this.dataLength=0}var e=t.prototype;return e.push=function(t){this.chunks.push(t),this.dataLength+=t.length},e.flush=function(){var t,e=this.chunks,r=this.dataLength;return e.length?(t=1===e.length?e[0]:function(t,e){for(var r=new Uint8Array(e),i=0,n=0;n0&&s.samples.push({pts:this.lastPTS,dts:this.lastPTS,data:i,type:Fe,duration:Number.POSITIVE_INFINITY});n>>5}function gi(t,e){return e+1=t.length)return!1;var i=fi(t,e);if(i<=r)return!1;var n=e+i;return n===t.length||gi(t,n)}return!1}function mi(t,e,r,i,n){if(!t.samplerate){var a=function(t,e,r,i){var n,a,s,o,l=navigator.userAgent.toLowerCase(),u=i,h=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350];n=1+((192&e[r+2])>>>6);var d=(60&e[r+2])>>>2;if(!(d>h.length-1))return s=(1&e[r+2])<<2,s|=(192&e[r+3])>>>6,k.log("manifest codec:"+i+", ADTS type:"+n+", samplingIndex:"+d),/firefox/i.test(l)?d>=6?(n=5,o=new Array(4),a=d-3):(n=2,o=new Array(2),a=d):-1!==l.indexOf("android")?(n=2,o=new Array(2),a=d):(n=5,o=new Array(4),i&&(-1!==i.indexOf("mp4a.40.29")||-1!==i.indexOf("mp4a.40.5"))||!i&&d>=6?a=d-3:((i&&-1!==i.indexOf("mp4a.40.2")&&(d>=6&&1===s||/vivaldi/i.test(l))||!i&&1===s)&&(n=2,o=new Array(2)),a=d)),o[0]=n<<3,o[0]|=(14&d)>>1,o[1]|=(1&d)<<7,o[1]|=s<<3,5===n&&(o[1]|=(14&a)>>1,o[2]=(1&a)<<7,o[2]|=8,o[3]=0),{config:o,samplerate:h[d],channelCount:s,codec:"mp4a.40."+n,manifestCodec:u};var c=new Error("invalid ADTS sampling index:"+d);t.emit(E.ERROR,E.ERROR,{type:T.MEDIA_ERROR,details:S.FRAG_PARSING_ERROR,fatal:!0,error:c,reason:c.message})}(e,r,i,n);if(!a)return;t.config=a.config,t.samplerate=a.samplerate,t.channelCount=a.channelCount,t.codec=a.codec,t.manifestCodec=a.manifestCodec,k.log("parsed codec:"+t.codec+", rate:"+a.samplerate+", channels:"+a.channelCount)}}function pi(t){return 9216e4/t}function yi(t,e,r,i,n){var a,s=i+n*pi(t.samplerate),o=function(t,e){var r=ci(t,e);if(e+r<=t.length){var i=fi(t,e)-r;if(i>0)return{headerLength:r,frameLength:i}}}(e,r);if(o){var l=o.frameLength,u=o.headerLength,h=u+l,d=Math.max(0,r+h-e.length);d?(a=new Uint8Array(h-u)).set(e.subarray(r+u,e.length),0):a=e.subarray(r+u,r+h);var c={unit:a,pts:s};return d||t.samples.push(c),{sample:c,length:h,missing:d}}var f=e.length-r;return(a=new Uint8Array(f)).set(e.subarray(r,e.length),0),{sample:{unit:a,pts:s},length:f,missing:-1}}var Ei=null,Ti=[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],Si=[44100,48e3,32e3,22050,24e3,16e3,11025,12e3,8e3],Li=[[0,72,144,12],[0,0,0,0],[0,72,144,12],[0,144,144,12]],Ai=[0,1,1,4];function Ri(t,e,r,i,n){if(!(r+24>e.length)){var a=bi(e,r);if(a&&r+a.frameLength<=e.length){var s=i+n*(9e4*a.samplesPerFrame/a.sampleRate),o={unit:e.subarray(r,r+a.frameLength),pts:s,dts:s};return t.config=[],t.channelCount=a.channelCount,t.samplerate=a.sampleRate,t.samples.push(o),{sample:o,length:a.frameLength,missing:0}}}}function bi(t,e){var r=t[e+1]>>3&3,i=t[e+1]>>1&3,n=t[e+2]>>4&15,a=t[e+2]>>2&3;if(1!==r&&0!==n&&15!==n&&3!==a){var s=t[e+2]>>1&1,o=t[e+3]>>6,l=1e3*Ti[14*(3===r?3-i:3===i?3:4)+n-1],u=Si[3*(3===r?0:2===r?1:2)+a],h=3===o?1:2,d=Li[r][i],c=Ai[i],f=8*d*c,g=Math.floor(d*l/u+s)*c;if(null===Ei){var v=(navigator.userAgent||"").match(/Chrome\/(\d+)/i);Ei=v?parseInt(v[1]):0}return!!Ei&&Ei<=87&&2===i&&l>=224e3&&0===o&&(t[e+3]=128|t[e+3]),{sampleRate:u,channelCount:h,frameLength:g,samplesPerFrame:f}}}function ki(t,e){return 255===t[e]&&224==(224&t[e+1])&&0!=(6&t[e+1])}function Di(t,e){return e+18&&109===t[r+4]&&111===t[r+5]&&111===t[r+6]&&102===t[r+7])return!0;r=i>1?r+i:e}return!1}(t)},e.demux=function(t,e){this.timeOffset=e;var r=t,i=this.videoTrack,n=this.txtTrack;if(this.config.progressive){this.remainderData&&(r=Ot(this.remainderData,t));var a=function(t){var e={valid:null,remainder:null},r=Dt(t,["moof"]);if(r.length<2)return e.remainder=t,e;var i=r[r.length-1];return e.valid=tt(t,0,i.byteOffset-8),e.remainder=tt(t,i.byteOffset-8),e}(r);this.remainderData=a.remainder,i.samples=a.valid||new Uint8Array}else i.samples=r;var s=this.extractID3Track(i,e);return n.samples=Nt(e,i),{videoTrack:i,audioTrack:this.audioTrack,id3Track:s,textTrack:this.txtTrack}},e.flush=function(){var t=this.timeOffset,e=this.videoTrack,r=this.txtTrack;e.samples=this.remainderData||new Uint8Array,this.remainderData=null;var i=this.extractID3Track(e,this.timeOffset);return r.samples=Nt(t,e),{videoTrack:e,audioTrack:li(),id3Track:i,textTrack:li()}},e.extractID3Track=function(t,e){var r=this.id3Track;if(t.samples.length){var i=Dt(t.samples,["emsg"]);i&&i.forEach((function(t){var i=function(t){var e=t[0],r="",i="",n=0,a=0,s=0,o=0,l=0,u=0;if(0===e){for(;"\0"!==St(t.subarray(u,u+1));)r+=St(t.subarray(u,u+1)),u+=1;for(r+=St(t.subarray(u,u+1)),u+=1;"\0"!==St(t.subarray(u,u+1));)i+=St(t.subarray(u,u+1)),u+=1;i+=St(t.subarray(u,u+1)),u+=1,n=At(t,12),a=At(t,16),o=At(t,20),l=At(t,24),u=28}else if(1===e){n=At(t,u+=4);var h=At(t,u+=4),d=At(t,u+=4);for(u+=4,s=Math.pow(2,32)*h+d,p(s)||(s=Number.MAX_SAFE_INTEGER,k.warn("Presentation time exceeds safe integer limit and wrapped to max safe integer in parsing emsg box")),o=At(t,u),l=At(t,u+=4),u+=4;"\0"!==St(t.subarray(u,u+1));)r+=St(t.subarray(u,u+1)),u+=1;for(r+=St(t.subarray(u,u+1)),u+=1;"\0"!==St(t.subarray(u,u+1));)i+=St(t.subarray(u,u+1)),u+=1;i+=St(t.subarray(u,u+1)),u+=1}return{schemeIdUri:r,value:i,timeScale:n,presentationTime:s,presentationTimeDelta:a,eventDuration:o,id:l,payload:t.subarray(u,t.byteLength)}}(t);if(Ci.test(i.schemeIdUri)){var n=m(i.presentationTime)?i.presentationTime/i.timeScale:e+i.presentationTimeDelta/i.timeScale,a=4294967295===i.eventDuration?Number.POSITIVE_INFINITY:i.eventDuration/i.timeScale;a<=.001&&(a=Number.POSITIVE_INFINITY);var s=i.payload;r.samples.push({data:s,len:s.byteLength,dts:n,pts:n,type:Me,duration:a})}}))}return r},e.demuxSampleAes=function(t,e,r){return Promise.reject(new Error("The MP4 demuxer does not support SAMPLE-AES decryption"))},e.destroy=function(){},t}(),xi=function(t,e){var r=0,i=5;e+=i;for(var n=new Uint32Array(1),a=new Uint32Array(1),s=new Uint8Array(1);i>0;){s[0]=t[e];var o=Math.min(i,8),l=8-o;a[0]=4278190080>>>24+l<>l,r=r?r<e.length)return-1;if(11!==e[r]||119!==e[r+1])return-1;var a=e[r+4]>>6;if(a>=3)return-1;var s=[48e3,44100,32e3][a],o=63&e[r+4],l=2*[64,69,96,64,70,96,80,87,120,80,88,120,96,104,144,96,105,144,112,121,168,112,122,168,128,139,192,128,140,192,160,174,240,160,175,240,192,208,288,192,209,288,224,243,336,224,244,336,256,278,384,256,279,384,320,348,480,320,349,480,384,417,576,384,418,576,448,487,672,448,488,672,512,557,768,512,558,768,640,696,960,640,697,960,768,835,1152,768,836,1152,896,975,1344,896,976,1344,1024,1114,1536,1024,1115,1536,1152,1253,1728,1152,1254,1728,1280,1393,1920,1280,1394,1920][3*o+a];if(r+l>e.length)return-1;var u=e[r+6]>>5,h=0;2===u?h+=2:(1&u&&1!==u&&(h+=2),4&u&&(h+=2));var d=(e[r+6]<<8|e[r+7])>>12-h&1,c=[2,1,2,3,3,4,4,5][u]+d,f=e[r+5]>>3,g=7&e[r+5],v=new Uint8Array([a<<6|f<<1|g>>2,(3&g)<<6|u<<3|d<<2|o>>4,o<<4&224]),m=i+n*(1536/s*9e4),p=e.subarray(r,r+l);return t.config=v,t.channelCount=c,t.samplerate=s,t.samples.push({unit:p,pts:m}),l}var Mi=function(){function t(){this.VideoSample=null}var e=t.prototype;return e.createVideoSample=function(t,e,r,i){return{key:t,frame:!1,pts:e,dts:r,units:[],debug:i,length:0}},e.getLastNalUnit=function(t){var e,r,i=this.VideoSample;if(i&&0!==i.units.length||(i=t[t.length-1]),null!=(e=i)&&e.units){var n=i.units;r=n[n.length-1]}return r},e.pushAccessUnit=function(t,e){if(t.units.length&&t.frame){if(void 0===t.pts){var r=e.samples,i=r.length;if(!i)return void e.dropped++;var n=r[i-1];t.pts=n.pts,t.dts=n.dts}e.samples.push(t)}t.debug.length&&k.log(t.pts+"/"+t.dts+":"+t.debug)},t}(),Oi=function(){function t(t){this.data=void 0,this.bytesAvailable=void 0,this.word=void 0,this.bitsAvailable=void 0,this.data=t,this.bytesAvailable=t.byteLength,this.word=0,this.bitsAvailable=0}var e=t.prototype;return e.loadWord=function(){var t=this.data,e=this.bytesAvailable,r=t.byteLength-e,i=new Uint8Array(4),n=Math.min(4,e);if(0===n)throw new Error("no bytes available");i.set(t.subarray(r,r+n)),this.word=new DataView(i.buffer).getUint32(0),this.bitsAvailable=8*n,this.bytesAvailable-=n},e.skipBits=function(t){var e;t=Math.min(t,8*this.bytesAvailable+this.bitsAvailable),this.bitsAvailable>t?(this.word<<=t,this.bitsAvailable-=t):(t-=this.bitsAvailable,t-=(e=t>>3)<<3,this.bytesAvailable-=e,this.loadWord(),this.word<<=t,this.bitsAvailable-=t)},e.readBits=function(t){var e=Math.min(this.bitsAvailable,t),r=this.word>>>32-e;if(t>32&&k.error("Cannot read more than 32 bits at a time"),this.bitsAvailable-=e,this.bitsAvailable>0)this.word<<=e;else{if(!(this.bytesAvailable>0))throw new Error("no bits available");this.loadWord()}return(e=t-e)>0&&this.bitsAvailable?r<>>t))return this.word<<=t,this.bitsAvailable-=t,t;return this.loadWord(),t+this.skipLZ()},e.skipUEG=function(){this.skipBits(1+this.skipLZ())},e.skipEG=function(){this.skipBits(1+this.skipLZ())},e.readUEG=function(){var t=this.skipLZ();return this.readBits(t+1)-1},e.readEG=function(){var t=this.readUEG();return 1&t?1+t>>>1:-1*(t>>>1)},e.readBoolean=function(){return 1===this.readBits(1)},e.readUByte=function(){return this.readBits(8)},e.readUShort=function(){return this.readBits(16)},e.readUInt=function(){return this.readBits(32)},e.skipScalingList=function(t){for(var e=8,r=8,i=0;i4){var f=new Oi(c).readSliceType();2!==f&&4!==f&&7!==f&&9!==f||(h=!0)}h&&null!=(d=l)&&d.frame&&!l.key&&(s.pushAccessUnit(l,t),l=s.VideoSample=null),l||(l=s.VideoSample=s.createVideoSample(!0,r.pts,r.dts,"")),l.frame=!0,l.key=h;break;case 5:a=!0,null!=(o=l)&&o.frame&&!l.key&&(s.pushAccessUnit(l,t),l=s.VideoSample=null),l||(l=s.VideoSample=s.createVideoSample(!0,r.pts,r.dts,"")),l.key=!0,l.frame=!0;break;case 6:a=!0,Bt(i.data,1,r.pts,e.samples);break;case 7:var g,v;a=!0,u=!0;var m=i.data,p=new Oi(m).readSPS();if(!t.sps||t.width!==p.width||t.height!==p.height||(null==(g=t.pixelRatio)?void 0:g[0])!==p.pixelRatio[0]||(null==(v=t.pixelRatio)?void 0:v[1])!==p.pixelRatio[1]){t.width=p.width,t.height=p.height,t.pixelRatio=p.pixelRatio,t.sps=[m],t.duration=n;for(var y=m.subarray(1,4),E="avc1.",T=0;T<3;T++){var S=y[T].toString(16);S.length<2&&(S="0"+S),E+=S}t.codec=E}break;case 8:a=!0,t.pps=[i.data];break;case 9:a=!0,t.audFound=!0,l&&s.pushAccessUnit(l,t),l=s.VideoSample=s.createVideoSample(!1,r.pts,r.dts,"");break;case 12:a=!0;break;default:a=!1,l&&(l.debug+="unknown NAL "+i.type+" ")}l&&a&&l.units.push(i)})),i&&l&&(this.pushAccessUnit(l,t),this.VideoSample=null)},r.parseAVCNALu=function(t,e){var r,i,n=e.byteLength,a=t.naluState||0,s=a,o=[],l=0,u=-1,h=0;for(-1===a&&(u=0,h=31&e[0],a=0,l=1);l=0){var d={data:e.subarray(u,i),type:h};o.push(d)}else{var c=this.getLastNalUnit(t.samples);c&&(s&&l<=4-s&&c.state&&(c.data=c.data.subarray(0,c.data.byteLength-s)),i>0&&(c.data=Ot(c.data,e.subarray(0,i)),c.state=0))}l=0&&a>=0){var f={data:e.subarray(u,n),type:h,state:a};o.push(f)}if(0===o.length){var g=this.getLastNalUnit(t.samples);g&&(g.data=Ot(g.data,e))}return t.naluState=a,o},e}(Mi),Ui=function(){function t(t,e,r){this.keyData=void 0,this.decrypter=void 0,this.keyData=r,this.decrypter=new qr(e,{removePKCS7Padding:!1})}var e=t.prototype;return e.decryptBuffer=function(t){return this.decrypter.decrypt(t,this.keyData.key.buffer,this.keyData.iv.buffer)},e.decryptAacSample=function(t,e,r){var i=this,n=t[e].unit;if(!(n.length<=16)){var a=n.subarray(16,n.length-n.length%16),s=a.buffer.slice(a.byteOffset,a.byteOffset+a.length);this.decryptBuffer(s).then((function(a){var s=new Uint8Array(a);n.set(s,16),i.decrypter.isSync()||i.decryptAacSamples(t,e+1,r)}))}},e.decryptAacSamples=function(t,e,r){for(;;e++){if(e>=t.length)return void r();if(!(t[e].unit.length<32||(this.decryptAacSample(t,e,r),this.decrypter.isSync())))return}},e.getAvcEncryptedData=function(t){for(var e=16*Math.floor((t.length-48)/160)+16,r=new Int8Array(e),i=0,n=32;n=t.length)return void i();for(var n=t[e].units;!(r>=n.length);r++){var a=n[r];if(!(a.data.length<=48||1!==a.type&&5!==a.type||(this.decryptAvcSample(t,e,r,i,a),this.decrypter.isSync())))return}}},t}(),Bi=188,Gi=function(){function t(t,e,r){this.observer=void 0,this.config=void 0,this.typeSupported=void 0,this.sampleAes=null,this.pmtParsed=!1,this.audioCodec=void 0,this.videoCodec=void 0,this._duration=0,this._pmtId=-1,this._videoTrack=void 0,this._audioTrack=void 0,this._id3Track=void 0,this._txtTrack=void 0,this.aacOverFlow=null,this.remainderData=null,this.videoParser=void 0,this.observer=t,this.config=e,this.typeSupported=r,this.videoParser=new Ni}t.probe=function(e){var r=t.syncOffset(e);return r>0&&k.warn("MPEG2-TS detected but first sync word found @ offset "+r),-1!==r},t.syncOffset=function(t){for(var e=t.length,r=Math.min(940,e-Bi)+1,i=0;i1&&(0===a&&s>2||o+Bi>r))return a}i++}return-1},t.createTrack=function(t,e){return{container:"video"===t||"audio"===t?"video/mp2t":void 0,type:t,id:Tt[t],pid:-1,inputTimeScale:9e4,sequenceNumber:0,samples:[],dropped:0,duration:"audio"===t?e:void 0}};var e=t.prototype;return e.resetInitSegment=function(e,r,i,n){this.pmtParsed=!1,this._pmtId=-1,this._videoTrack=t.createTrack("video"),this._audioTrack=t.createTrack("audio",n),this._id3Track=t.createTrack("id3"),this._txtTrack=t.createTrack("text"),this._audioTrack.segmentCodec="aac",this.aacOverFlow=null,this.remainderData=null,this.audioCodec=r,this.videoCodec=i,this._duration=n},e.resetTimeStamp=function(){},e.resetContiguity=function(){var t=this._audioTrack,e=this._videoTrack,r=this._id3Track;t&&(t.pesData=null),e&&(e.pesData=null),r&&(r.pesData=null),this.aacOverFlow=null,this.remainderData=null},e.demux=function(e,r,i,n){var a;void 0===i&&(i=!1),void 0===n&&(n=!1),i||(this.sampleAes=null);var s=this._videoTrack,o=this._audioTrack,l=this._id3Track,u=this._txtTrack,h=s.pid,d=s.pesData,c=o.pid,f=l.pid,g=o.pesData,v=l.pesData,m=null,p=this.pmtParsed,y=this._pmtId,L=e.length;if(this.remainderData&&(L=(e=Ot(this.remainderData,e)).length,this.remainderData=null),L>4>1){if((w=b+5+e[b+4])===b+Bi)continue}else w=b+4;switch(I){case h:D&&(d&&(a=Wi(d))&&this.videoParser.parseAVCPES(s,u,a,!1,this._duration),d={data:[],size:0}),d&&(d.data.push(e.subarray(w,b+Bi)),d.size+=b+Bi-w);break;case c:if(D){if(g&&(a=Wi(g)))switch(o.segmentCodec){case"aac":this.parseAACPES(o,a);break;case"mp3":this.parseMPEGPES(o,a);break;case"ac3":this.parseAC3PES(o,a)}g={data:[],size:0}}g&&(g.data.push(e.subarray(w,b+Bi)),g.size+=b+Bi-w);break;case f:D&&(v&&(a=Wi(v))&&this.parseID3PES(l,a),v={data:[],size:0}),v&&(v.data.push(e.subarray(w,b+Bi)),v.size+=b+Bi-w);break;case 0:D&&(w+=e[w]+1),y=this._pmtId=Hi(e,w);break;case y:D&&(w+=e[w]+1);var C=Vi(e,w,this.typeSupported,i);(h=C.videoPid)>0&&(s.pid=h,s.segmentCodec=C.segmentVideoCodec),(c=C.audioPid)>0&&(o.pid=c,o.segmentCodec=C.segmentAudioCodec),(f=C.id3Pid)>0&&(l.pid=f),null===m||p||(k.warn("MPEG-TS PMT found at "+b+" after unknown PID '"+m+"'. Backtracking to sync byte @"+A+" to parse all TS packets."),m=null,b=A-188),p=this.pmtParsed=!0;break;case 17:case 8191:break;default:m=I}}else R++;if(R>0){var _=new Error("Found "+R+" TS packet/s that do not start with 0x47");this.observer.emit(E.ERROR,E.ERROR,{type:T.MEDIA_ERROR,details:S.FRAG_PARSING_ERROR,fatal:!1,error:_,reason:_.message})}s.pesData=d,o.pesData=g,l.pesData=v;var x={audioTrack:o,videoTrack:s,id3Track:l,textTrack:u};return n&&this.extractRemainingSamples(x),x},e.flush=function(){var t,e=this.remainderData;return this.remainderData=null,t=e?this.demux(e,-1,!1,!0):{videoTrack:this._videoTrack,audioTrack:this._audioTrack,id3Track:this._id3Track,textTrack:this._txtTrack},this.extractRemainingSamples(t),this.sampleAes?this.decrypt(t,this.sampleAes):t},e.extractRemainingSamples=function(t){var e,r=t.audioTrack,i=t.videoTrack,n=t.id3Track,a=t.textTrack,s=i.pesData,o=r.pesData,l=n.pesData;if(s&&(e=Wi(s))?(this.videoParser.parseAVCPES(i,a,e,!0,this._duration),i.pesData=null):i.pesData=s,o&&(e=Wi(o))){switch(r.segmentCodec){case"aac":this.parseAACPES(r,e);break;case"mp3":this.parseMPEGPES(r,e);break;case"ac3":this.parseAC3PES(r,e)}r.pesData=null}else null!=o&&o.size&&k.log("last AAC PES packet truncated,might overlap between fragments"),r.pesData=o;l&&(e=Wi(l))?(this.parseID3PES(n,e),n.pesData=null):n.pesData=l},e.demuxSampleAes=function(t,e,r){var i=this.demux(t,r,!0,!this.config.progressive),n=this.sampleAes=new Ui(this.observer,this.config,e);return this.decrypt(i,n)},e.decrypt=function(t,e){return new Promise((function(r){var i=t.audioTrack,n=t.videoTrack;i.samples&&"aac"===i.segmentCodec?e.decryptAacSamples(i.samples,0,(function(){n.samples?e.decryptAvcSamples(n.samples,0,0,(function(){r(t)})):r(t)})):n.samples&&e.decryptAvcSamples(n.samples,0,0,(function(){r(t)}))}))},e.destroy=function(){this._duration=0},e.parseAACPES=function(t,e){var r,i,n,a=0,s=this.aacOverFlow,o=e.data;if(s){this.aacOverFlow=null;var l=s.missing,u=s.sample.unit.byteLength;if(-1===l)o=Ot(s.sample.unit,o);else{var h=u-l;s.sample.unit.set(o.subarray(0,l),h),t.samples.push(s.sample),a=s.missing}}for(r=a,i=o.length;r0;)o+=n;else k.warn("[tsdemuxer]: AC3 PES unknown PTS")},e.parseID3PES=function(t,e){if(void 0!==e.pts){var r=o({},e,{type:this._videoTrack?Me:Fe,duration:Number.POSITIVE_INFINITY});t.samples.push(r)}else k.warn("[tsdemuxer]: ID3 PES unknown PTS")},t}();function Ki(t,e){return((31&t[e+1])<<8)+t[e+2]}function Hi(t,e){return(31&t[e+10])<<8|t[e+11]}function Vi(t,e,r,i){var n={audioPid:-1,videoPid:-1,id3Pid:-1,segmentVideoCodec:"avc",segmentAudioCodec:"aac"},a=e+3+((15&t[e+1])<<8|t[e+2])-4;for(e+=12+((15&t[e+10])<<8|t[e+11]);e0)for(var l=e+5,u=o;u>2;){106===t[l]&&(!0!==r.ac3?k.log("AC-3 audio found, not supported in this browser for now"):(n.audioPid=s,n.segmentAudioCodec="ac3"));var h=t[l+1]+2;l+=h,u-=h}break;case 194:case 135:k.warn("Unsupported EC-3 in M2TS found");break;case 36:k.warn("Unsupported HEVC in M2TS found")}e+=o+5}return n}function Yi(t){k.log(t+" with AES-128-CBC encryption found in unencrypted stream")}function Wi(t){var e,r,i,n,a,s=0,o=t.data;if(!t||0===t.size)return null;for(;o[0].length<19&&o.length>1;)o[0]=Ot(o[0],o[1]),o.splice(1,1);if(1===((e=o[0])[0]<<16)+(e[1]<<8)+e[2]){if((r=(e[4]<<8)+e[5])&&r>t.size-6)return null;var l=e[7];192&l&&(n=536870912*(14&e[9])+4194304*(255&e[10])+16384*(254&e[11])+128*(255&e[12])+(254&e[13])/2,64&l?n-(a=536870912*(14&e[14])+4194304*(255&e[15])+16384*(254&e[16])+128*(255&e[17])+(254&e[18])/2)>54e5&&(k.warn(Math.round((n-a)/9e4)+"s delta between PTS and DTS, align them"),n=a):a=n);var u=(i=e[8])+9;if(t.size<=u)return null;t.size-=u;for(var h=new Uint8Array(t.size),d=0,c=o.length;df){u-=f;continue}e=e.subarray(u),f-=u,u=0}h.set(e,s),s+=f}return r&&(r-=i+3),{data:h,pts:n,dts:a,len:r}}return null}var ji=function(t){function e(){return t.apply(this,arguments)||this}l(e,t);var r=e.prototype;return r.resetInitSegment=function(e,r,i,n){t.prototype.resetInitSegment.call(this,e,r,i,n),this._audioTrack={container:"audio/mpeg",type:"audio",id:2,pid:-1,sequenceNumber:0,segmentCodec:"mp3",samples:[],manifestCodec:r,duration:n,inputTimeScale:9e4,dropped:0}},e.probe=function(t){if(!t)return!1;var e=nt(t,0),r=(null==e?void 0:e.length)||0;if(e&&11===t[r]&&119===t[r+1]&&void 0!==ot(e)&&xi(t,r)<=16)return!1;for(var i=t.length;r1?r-1:0),n=1;n>24&255,o[1]=e>>16&255,o[2]=e>>8&255,o[3]=255&e,o.set(t,4),a=0,e=8;a>24&255,e>>16&255,e>>8&255,255&e,i>>24,i>>16&255,i>>8&255,255&i,n>>24,n>>16&255,n>>8&255,255&n,85,196,0,0]))},t.mdia=function(e){return t.box(t.types.mdia,t.mdhd(e.timescale,e.duration),t.hdlr(e.type),t.minf(e))},t.mfhd=function(e){return t.box(t.types.mfhd,new Uint8Array([0,0,0,0,e>>24,e>>16&255,e>>8&255,255&e]))},t.minf=function(e){return"audio"===e.type?t.box(t.types.minf,t.box(t.types.smhd,t.SMHD),t.DINF,t.stbl(e)):t.box(t.types.minf,t.box(t.types.vmhd,t.VMHD),t.DINF,t.stbl(e))},t.moof=function(e,r,i){return t.box(t.types.moof,t.mfhd(e),t.traf(i,r))},t.moov=function(e){for(var r=e.length,i=[];r--;)i[r]=t.trak(e[r]);return t.box.apply(null,[t.types.moov,t.mvhd(e[0].timescale,e[0].duration)].concat(i).concat(t.mvex(e)))},t.mvex=function(e){for(var r=e.length,i=[];r--;)i[r]=t.trex(e[r]);return t.box.apply(null,[t.types.mvex].concat(i))},t.mvhd=function(e,r){r*=e;var i=Math.floor(r/(Xi+1)),n=Math.floor(r%(Xi+1)),a=new Uint8Array([1,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3,e>>24&255,e>>16&255,e>>8&255,255&e,i>>24,i>>16&255,i>>8&255,255&i,n>>24,n>>16&255,n>>8&255,255&n,0,1,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255]);return t.box(t.types.mvhd,a)},t.sdtp=function(e){var r,i,n=e.samples||[],a=new Uint8Array(4+n.length);for(r=0;r>>8&255),a.push(255&n),a=a.concat(Array.prototype.slice.call(i));for(r=0;r>>8&255),s.push(255&n),s=s.concat(Array.prototype.slice.call(i));var o=t.box(t.types.avcC,new Uint8Array([1,a[3],a[4],a[5],255,224|e.sps.length].concat(a).concat([e.pps.length]).concat(s))),l=e.width,u=e.height,h=e.pixelRatio[0],d=e.pixelRatio[1];return t.box(t.types.avc1,new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,l>>8&255,255&l,u>>8&255,255&u,0,72,0,0,0,72,0,0,0,0,0,0,0,1,18,100,97,105,108,121,109,111,116,105,111,110,47,104,108,115,46,106,115,0,0,0,0,0,0,0,0,0,0,0,0,0,0,24,17,17]),o,t.box(t.types.btrt,new Uint8Array([0,28,156,128,0,45,198,192,0,45,198,192])),t.box(t.types.pasp,new Uint8Array([h>>24,h>>16&255,h>>8&255,255&h,d>>24,d>>16&255,d>>8&255,255&d])))},t.esds=function(t){var e=t.config.length;return new Uint8Array([0,0,0,0,3,23+e,0,1,0,4,15+e,64,21,0,0,0,0,0,0,0,0,0,0,0,5].concat([e]).concat(t.config).concat([6,1,2]))},t.audioStsd=function(t){var e=t.samplerate;return 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,e>>8&255,255&e,0,0])},t.mp4a=function(e){return t.box(t.types.mp4a,t.audioStsd(e),t.box(t.types.esds,t.esds(e)))},t.mp3=function(e){return t.box(t.types[".mp3"],t.audioStsd(e))},t.ac3=function(e){return t.box(t.types["ac-3"],t.audioStsd(e),t.box(t.types.dac3,e.config))},t.stsd=function(e){return"audio"===e.type?"mp3"===e.segmentCodec&&"mp3"===e.codec?t.box(t.types.stsd,t.STSD,t.mp3(e)):"ac3"===e.segmentCodec?t.box(t.types.stsd,t.STSD,t.ac3(e)):t.box(t.types.stsd,t.STSD,t.mp4a(e)):t.box(t.types.stsd,t.STSD,t.avc1(e))},t.tkhd=function(e){var r=e.id,i=e.duration*e.timescale,n=e.width,a=e.height,s=Math.floor(i/(Xi+1)),o=Math.floor(i%(Xi+1));return t.box(t.types.tkhd,new Uint8Array([1,0,0,7,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3,r>>24&255,r>>16&255,r>>8&255,255&r,0,0,0,0,s>>24,s>>16&255,s>>8&255,255&s,o>>24,o>>16&255,o>>8&255,255&o,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,n>>8&255,255&n,0,0,a>>8&255,255&a,0,0]))},t.traf=function(e,r){var i=t.sdtp(e),n=e.id,a=Math.floor(r/(Xi+1)),s=Math.floor(r%(Xi+1));return t.box(t.types.traf,t.box(t.types.tfhd,new Uint8Array([0,0,0,0,n>>24,n>>16&255,n>>8&255,255&n])),t.box(t.types.tfdt,new Uint8Array([1,0,0,0,a>>24,a>>16&255,a>>8&255,255&a,s>>24,s>>16&255,s>>8&255,255&s])),t.trun(e,i.length+16+20+8+16+8+8),i)},t.trak=function(e){return e.duration=e.duration||4294967295,t.box(t.types.trak,t.tkhd(e),t.mdia(e))},t.trex=function(e){var r=e.id;return t.box(t.types.trex,new Uint8Array([0,0,0,0,r>>24,r>>16&255,r>>8&255,255&r,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,1]))},t.trun=function(e,r){var i,n,a,s,o,l,u=e.samples||[],h=u.length,d=12+16*h,c=new Uint8Array(d);for(r+=8+d,c.set(["video"===e.type?1:0,0,15,1,h>>>24&255,h>>>16&255,h>>>8&255,255&h,r>>>24&255,r>>>16&255,r>>>8&255,255&r],0),i=0;i>>24&255,a>>>16&255,a>>>8&255,255&a,s>>>24&255,s>>>16&255,s>>>8&255,255&s,o.isLeading<<2|o.dependsOn,o.isDependedOn<<6|o.hasRedundancy<<4|o.paddingValue<<1|o.isNonSync,61440&o.degradPrio,15&o.degradPrio,l>>>24&255,l>>>16&255,l>>>8&255,255&l],12+16*i);return t.box(t.types.trun,c)},t.initSegment=function(e){t.types||t.init();var r=t.moov(e);return Ot(t.FTYP,r)},t}();zi.types=void 0,zi.HDLR_TYPES=void 0,zi.STTS=void 0,zi.STSC=void 0,zi.STCO=void 0,zi.STSZ=void 0,zi.VMHD=void 0,zi.SMHD=void 0,zi.STSD=void 0,zi.FTYP=void 0,zi.DINF=void 0;function Qi(t,e,r,i){void 0===r&&(r=1),void 0===i&&(i=!1);var n=t*e*r;return i?Math.round(n):n}function Ji(t,e){return void 0===e&&(e=!1),Qi(t,1e3,1/9e4,e)}var $i=null,Zi=null,tn=function(){function t(t,e,r,i){if(this.observer=void 0,this.config=void 0,this.typeSupported=void 0,this.ISGenerated=!1,this._initPTS=null,this._initDTS=null,this.nextAvcDts=null,this.nextAudioPts=null,this.videoSampleDuration=null,this.isAudioContiguous=!1,this.isVideoContiguous=!1,this.videoTrackConfig=void 0,this.observer=t,this.config=e,this.typeSupported=r,this.ISGenerated=!1,null===$i){var n=(navigator.userAgent||"").match(/Chrome\/(\d+)/i);$i=n?parseInt(n[1]):0}if(null===Zi){var a=navigator.userAgent.match(/Safari\/(\d+)/i);Zi=a?parseInt(a[1]):0}}var e=t.prototype;return e.destroy=function(){this.config=this.videoTrackConfig=this._initPTS=this._initDTS=null},e.resetTimeStamp=function(t){k.log("[mp4-remuxer]: initPTS & initDTS reset"),this._initPTS=this._initDTS=t},e.resetNextTimestamp=function(){k.log("[mp4-remuxer]: reset next timestamp"),this.isVideoContiguous=!1,this.isAudioContiguous=!1},e.resetInitSegment=function(){k.log("[mp4-remuxer]: ISGenerated flag reset"),this.ISGenerated=!1,this.videoTrackConfig=void 0},e.getVideoStartPts=function(t){var e=!1,r=t.reduce((function(t,r){var i=r.pts-t;return i<-4294967296?(e=!0,en(t,r.pts)):i>0?t:r.pts}),t[0].pts);return e&&k.debug("PTS rollover detected"),r},e.remux=function(t,e,r,i,n,a,s,o){var l,u,h,d,c,f,g=n,v=n,m=t.pid>-1,p=e.pid>-1,y=e.samples.length,E=t.samples.length>0,T=s&&y>0||y>1;if((!m||E)&&(!p||T)||this.ISGenerated||s){if(this.ISGenerated){var S,L,A,R,b=this.videoTrackConfig;!b||e.width===b.width&&e.height===b.height&&(null==(S=e.pixelRatio)?void 0:S[0])===(null==(L=b.pixelRatio)?void 0:L[0])&&(null==(A=e.pixelRatio)?void 0:A[1])===(null==(R=b.pixelRatio)?void 0:R[1])||this.resetInitSegment()}else h=this.generateIS(t,e,n,a);var D,I=this.isVideoContiguous,w=-1;if(T&&(w=function(t){for(var e=0;e0){k.warn("[mp4-remuxer]: Dropped "+w+" out of "+y+" video samples due to a missing keyframe");var C=this.getVideoStartPts(e.samples);e.samples=e.samples.slice(w),e.dropped+=w,D=v+=(e.samples[0].pts-C)/e.inputTimeScale}else-1===w&&(k.warn("[mp4-remuxer]: No keyframe found out of "+y+" video samples"),f=!1);if(this.ISGenerated){if(E&&T){var _=this.getVideoStartPts(e.samples),x=(en(t.samples[0].pts,_)-_)/e.inputTimeScale;g+=Math.max(0,x),v+=Math.max(0,-x)}if(E){if(t.samplerate||(k.warn("[mp4-remuxer]: regenerate InitSegment as audio detected"),h=this.generateIS(t,e,n,a)),u=this.remuxAudio(t,g,this.isAudioContiguous,a,p||T||o===Re?v:void 0),T){var P=u?u.endPTS-u.startPTS:0;e.inputTimeScale||(k.warn("[mp4-remuxer]: regenerate InitSegment as video detected"),h=this.generateIS(t,e,n,a)),l=this.remuxVideo(e,v,I,P)}}else T&&(l=this.remuxVideo(e,v,I,0));l&&(l.firstKeyFrame=w,l.independent=-1!==w,l.firstKeyFramePTS=D)}}return this.ISGenerated&&this._initPTS&&this._initDTS&&(r.samples.length&&(c=rn(r,n,this._initPTS,this._initDTS)),i.samples.length&&(d=nn(i,n,this._initPTS))),{audio:u,video:l,initSegment:h,independent:f,text:d,id3:c}},e.generateIS=function(t,e,r,i){var n,a,s,o=t.samples,l=e.samples,u=this.typeSupported,h={},d=this._initPTS,c=!d||i,f="audio/mp4";if(c&&(n=a=1/0),t.config&&o.length){switch(t.timescale=t.samplerate,t.segmentCodec){case"mp3":u.mpeg?(f="audio/mpeg",t.codec=""):u.mp3&&(t.codec="mp3");break;case"ac3":t.codec="ac-3"}h.audio={id:"audio",container:f,codec:t.codec,initSegment:"mp3"===t.segmentCodec&&u.mpeg?new Uint8Array(0):zi.initSegment([t]),metadata:{channelCount:t.channelCount}},c&&(s=t.inputTimeScale,d&&s===d.timescale?c=!1:n=a=o[0].pts-Math.round(s*r))}if(e.sps&&e.pps&&l.length){if(e.timescale=e.inputTimeScale,h.video={id:"main",container:"video/mp4",codec:e.codec,initSegment:zi.initSegment([e]),metadata:{width:e.width,height:e.height}},c)if(s=e.inputTimeScale,d&&s===d.timescale)c=!1;else{var g=this.getVideoStartPts(l),v=Math.round(s*r);a=Math.min(a,en(l[0].dts,g)-v),n=Math.min(n,g-v)}this.videoTrackConfig={width:e.width,height:e.height,pixelRatio:e.pixelRatio}}if(Object.keys(h).length)return this.ISGenerated=!0,c?(this._initPTS={baseTime:n,timescale:s},this._initDTS={baseTime:a,timescale:s}):n=s=void 0,{tracks:h,initPTS:n,timescale:s}},e.remuxVideo=function(t,e,r,i){var n,a,s=t.inputTimeScale,l=t.samples,u=[],h=l.length,d=this._initPTS,c=this.nextAvcDts,f=8,g=this.videoSampleDuration,v=Number.POSITIVE_INFINITY,m=Number.NEGATIVE_INFINITY,p=!1;if(!r||null===c){var y=e*s,L=l[0].pts-en(l[0].dts,l[0].pts);$i&&null!==c&&Math.abs(y-L-c)<15e3?r=!0:c=y-L}for(var A=d.baseTime*s/d.timescale,R=0;R0?R-1:R].dts&&(p=!0)}p&&l.sort((function(t,e){var r=t.dts-e.dts,i=t.pts-e.pts;return r||i})),n=l[0].dts;var D=l[l.length-1].dts-n,I=D?Math.round(D/(h-1)):g||t.inputTimeScale/30;if(r){var w=n-c,C=w>I,_=w<-1;if((C||_)&&(C?k.warn("AVC: "+Ji(w,!0)+" ms ("+w+"dts) hole between fragments detected at "+e.toFixed(3)):k.warn("AVC: "+Ji(-w,!0)+" ms ("+w+"dts) overlapping between fragments detected at "+e.toFixed(3)),!_||c>=l[0].pts||$i)){n=c;var x=l[0].pts-w;if(C)l[0].dts=n,l[0].pts=x;else for(var P=0;Px);P++)l[P].dts-=w,l[P].pts-=w;k.log("Video: Initial PTS/DTS adjusted: "+Ji(x,!0)+"/"+Ji(n,!0)+", delta: "+Ji(w,!0)+" ms")}}for(var F=0,M=0,O=n=Math.max(0,n),N=0;N0?$.dts-l[J-1].dts:I;if(st=J>0?$.pts-l[J-1].pts:I,ot.stretchShortVideoTrack&&null!==this.nextAudioPts){var ut=Math.floor(ot.maxBufferHole*s),ht=(i?v+i*s:this.nextAudioPts)-$.pts;ht>ut?((g=ht-lt)<0?g=lt:j=!0,k.log("[mp4-remuxer]: It is approximately "+ht/90+" ms to the next segment; using duration "+g/90+" ms for the last video frame.")):g=lt}else g=lt}var dt=Math.round($.pts-$.dts);q=Math.min(q,g),z=Math.max(z,g),X=Math.min(X,st),Q=Math.max(Q,st),u.push(new sn($.key,g,tt,dt))}if(u.length)if($i){if($i<70){var ct=u[0].flags;ct.dependsOn=2,ct.isNonSync=0}}else if(Zi&&Q-X0&&(i&&Math.abs(p-m)<9e3||Math.abs(en(g[0].pts-y,p)-m)<20*u),g.forEach((function(t){t.pts=en(t.pts-y,p)})),!r||m<0){if(g=g.filter((function(t){return t.pts>=0})),!g.length)return;m=0===n?0:i&&!f?Math.max(0,p):g[0].pts}if("aac"===t.segmentCodec)for(var L=this.config.maxAudioFramesDrift,A=0,R=m;A=L*u&&w<1e4&&f){var C=Math.round(I/u);(R=D-C*u)<0&&(C--,R+=u),0===A&&(this.nextAudioPts=m=R),k.warn("[mp4-remuxer]: Injecting "+C+" audio frame @ "+(R/a).toFixed(3)+"s due to "+Math.round(1e3*I/a)+" ms gap.");for(var _=0;_0))return;N+=v;try{F=new Uint8Array(N)}catch(t){return void this.observer.emit(E.ERROR,E.ERROR,{type:T.MUX_ERROR,details:S.REMUX_ALLOC_ERROR,fatal:!1,error:t,bytes:N,reason:"fail allocating audio mdat "+N})}d||(new DataView(F.buffer).setUint32(0,N),F.set(zi.types.mdat,4))}F.set(H,v);var Y=H.byteLength;v+=Y,c.push(new sn(!0,l,Y,0)),O=V}var W=c.length;if(W){var j=c[c.length-1];this.nextAudioPts=m=O+s*j.duration;var q=d?new Uint8Array(0):zi.moof(t.sequenceNumber++,M/s,o({},t,{samples:c}));t.samples=[];var X=M/a,z=m/a,Q={data1:q,data2:F,startPTS:X,endPTS:z,startDTS:X,endDTS:z,type:"audio",hasAudio:!0,hasVideo:!1,nb:W};return this.isAudioContiguous=!0,Q}},e.remuxEmptyAudio=function(t,e,r,i){var n=t.inputTimeScale,a=n/(t.samplerate?t.samplerate:n),s=this.nextAudioPts,o=this._initDTS,l=9e4*o.baseTime/o.timescale,u=(null!==s?s:i.startDTS*n)+l,h=i.endDTS*n+l,d=1024*a,c=Math.ceil((h-u)/d),f=qi.getSilentFrame(t.manifestCodec||t.codec,t.channelCount);if(k.warn("[mp4-remuxer]: remux empty Audio"),f){for(var g=[],v=0;v4294967296;)t+=r;return t}function rn(t,e,r,i){var n=t.samples.length;if(n){for(var a=t.inputTimeScale,s=0;s0;n||(i=Dt(e,["encv"])),i.forEach((function(t){Dt(n?t.subarray(28):t.subarray(78),["sinf"]).forEach((function(t){var e=Ft(t);if(e){var i=e.subarray(8,24);i.some((function(t){return 0!==t}))||(k.log("[eme] Patching keyId in 'enc"+(n?"a":"v")+">sinf>>tenc' box: "+pt(i)+" -> "+pt(r)),e.set(r,8))}}))}))})),t}(t,i)),this.emitInitSegment=!0},e.generateInitSegment=function(t){var e=this.audioCodec,r=this.videoCodec;if(null==t||!t.byteLength)return this.initTracks=void 0,void(this.initData=void 0);var i=this.initData=wt(t);i.audio&&(e=ln(i.audio,P)),i.video&&(r=ln(i.video,F));var n={};i.audio&&i.video?n.audiovideo={container:"video/mp4",codec:e+","+r,initSegment:t,id:"main"}:i.audio?n.audio={container:"audio/mp4",codec:e,initSegment:t,id:"audio"}:i.video?n.video={container:"video/mp4",codec:r,initSegment:t,id:"main"}:k.warn("[passthrough-remuxer.ts]: initSegment does not contain moov or trak boxes."),this.initTracks=n},e.remux=function(t,e,r,i,n,a){var s,o,l=this.initPTS,u=this.lastEndTime,h={audio:void 0,video:void 0,text:i,id3:r,initSegment:void 0};m(u)||(u=this.lastEndTime=n||0);var d=e.samples;if(null==d||!d.length)return h;var c={initPTS:void 0,timescale:1},f=this.initData;if(null!=(s=f)&&s.length||(this.generateInitSegment(d),f=this.initData),null==(o=f)||!o.length)return k.warn("[passthrough-remuxer.ts]: Failed to generate initSegment."),h;this.emitInitSegment&&(c.tracks=this.initTracks,this.emitInitSegment=!1);var g=function(t,e){for(var r=0,i=0,n=0,a=Dt(t,["moof","traf"]),s=0;sn}(l,p,n,g)||c.timescale!==l.timescale&&a)&&(c.initPTS=p-n,l&&1===l.timescale&&k.warn("Adjusting initPTS by "+(c.initPTS-l.baseTime)),this.initPTS=l={baseTime:c.initPTS,timescale:1});var y=t?p-l.baseTime/l.timescale:u,E=y+g;!function(t,e,r){Dt(e,["moof","traf"]).forEach((function(e){Dt(e,["tfhd"]).forEach((function(i){var n=At(i,4),a=t[n];if(a){var s=a.timescale||9e4;Dt(e,["tfdt"]).forEach((function(t){var e=t[0],i=r*s;if(i){var n=At(t,4);if(0===e)n-=i,kt(t,4,n=Math.max(n,0));else{n*=Math.pow(2,32),n+=At(t,8),n-=i,n=Math.max(n,0);var a=Math.floor(n/(yt+1)),o=Math.floor(n%(yt+1));kt(t,4,a),kt(t,8,o)}}}))}}))}))}(f,d,l.baseTime/l.timescale),g>0?this.lastEndTime=E:(k.warn("Duration parsed from mp4 should be greater than zero"),this.resetNextTimestamp());var T=!!f.audio,S=!!f.video,L="";T&&(L+="audio"),S&&(L+="video");var A={data1:d,startPTS:y,startDTS:y,endPTS:E,endDTS:E,type:L,hasAudio:T,hasVideo:S,nb:1,dropped:0};return h.audio="audio"===A.type?A:void 0,h.video="audio"!==A.type?A:void 0,h.initSegment=c,h.id3=rn(r,n,l,l),i.samples.length&&(h.text=nn(i,n,l)),h},t}();function ln(t,e){var r=null==t?void 0:t.codec;if(r&&r.length>4)return r;if(e===P){if("ec-3"===r||"ac-3"===r||"alac"===r)return r;if("fLaC"===r||"Opus"===r)return ne(r,!1);var i="mp4a.40.5";return k.info('Parsed audio codec "'+r+'" or audio object type not handled. Using "'+i+'"'),i}return k.warn('Unhandled video codec "'+r+'"'),"hvc1"===r||"hev1"===r?"hvc1.1.6.L120.90":"av01"===r?"av01.0.04M.08":"avc1.42e01e"}try{an=self.performance.now.bind(self.performance)}catch(e){k.debug("Unable to use Performance API on this environment"),an=null==H?void 0:H.Date.now}var un=[{demux:_i,remux:on},{demux:Gi,remux:tn},{demux:wi,remux:tn},{demux:ji,remux:tn}];un.splice(2,0,{demux:Pi,remux:tn});var hn=function(){function t(t,e,r,i,n){this.async=!1,this.observer=void 0,this.typeSupported=void 0,this.config=void 0,this.vendor=void 0,this.id=void 0,this.demuxer=void 0,this.remuxer=void 0,this.decrypter=void 0,this.probe=void 0,this.decryptionPromise=null,this.transmuxConfig=void 0,this.currentTransmuxState=void 0,this.observer=t,this.typeSupported=e,this.config=r,this.vendor=i,this.id=n}var e=t.prototype;return e.configure=function(t){this.transmuxConfig=t,this.decrypter&&this.decrypter.reset()},e.push=function(t,e,r,i){var n=this,a=r.transmuxing;a.executeStart=an();var s=new Uint8Array(t),o=this.currentTransmuxState,l=this.transmuxConfig;i&&(this.currentTransmuxState=i);var u=i||o,h=u.contiguous,d=u.discontinuity,c=u.trackSwitch,f=u.accurateTimeOffset,g=u.timeOffset,v=u.initSegmentChange,m=l.audioCodec,p=l.videoCodec,y=l.defaultInitPts,L=l.duration,A=l.initSegmentData,R=function(t,e){var r=null;return t.byteLength>0&&null!=(null==e?void 0:e.key)&&null!==e.iv&&null!=e.method&&(r=e),r}(s,e);if(R&&"AES-128"===R.method){var b=this.getDecrypter();if(!b.isSync())return this.decryptionPromise=b.webCryptoDecrypt(s,R.key.buffer,R.iv.buffer).then((function(t){var e=n.push(t,null,r);return n.decryptionPromise=null,e})),this.decryptionPromise;var D=b.softwareDecrypt(s,R.key.buffer,R.iv.buffer);if(r.part>-1&&(D=b.flush()),!D)return a.executeEnd=an(),dn(r);s=new Uint8Array(D)}var I=this.needsProbing(d,c);if(I){var w=this.configureTransmuxer(s);if(w)return k.warn("[transmuxer] "+w.message),this.observer.emit(E.ERROR,E.ERROR,{type:T.MEDIA_ERROR,details:S.FRAG_PARSING_ERROR,fatal:!1,error:w,reason:w.message}),a.executeEnd=an(),dn(r)}(d||c||v||I)&&this.resetInitSegment(A,m,p,L,e),(d||v||I)&&this.resetInitialTimestamp(y),h||this.resetContiguity();var C=this.transmux(s,R,g,f,r),_=this.currentTransmuxState;return _.contiguous=!0,_.discontinuity=!1,_.trackSwitch=!1,a.executeEnd=an(),C},e.flush=function(t){var e=this,r=t.transmuxing;r.executeStart=an();var i=this.decrypter,n=this.currentTransmuxState,a=this.decryptionPromise;if(a)return a.then((function(){return e.flush(t)}));var s=[],o=n.timeOffset;if(i){var l=i.flush();l&&s.push(this.push(l,null,t))}var u=this.demuxer,h=this.remuxer;if(!u||!h)return r.executeEnd=an(),[dn(t)];var d=u.flush(o);return cn(d)?d.then((function(r){return e.flushRemux(s,r,t),s})):(this.flushRemux(s,d,t),s)},e.flushRemux=function(t,e,r){var i=e.audioTrack,n=e.videoTrack,a=e.id3Track,s=e.textTrack,o=this.currentTransmuxState,l=o.accurateTimeOffset,u=o.timeOffset;k.log("[transmuxer.ts]: Flushed fragment "+r.sn+(r.part>-1?" p: "+r.part:"")+" of level "+r.level);var h=this.remuxer.remux(i,n,a,s,u,l,!0,this.id);t.push({remuxResult:h,chunkMeta:r}),r.transmuxing.executeEnd=an()},e.resetInitialTimestamp=function(t){var e=this.demuxer,r=this.remuxer;e&&r&&(e.resetTimeStamp(t),r.resetTimeStamp(t))},e.resetContiguity=function(){var t=this.demuxer,e=this.remuxer;t&&e&&(t.resetContiguity(),e.resetNextTimestamp())},e.resetInitSegment=function(t,e,r,i,n){var a=this.demuxer,s=this.remuxer;a&&s&&(a.resetInitSegment(t,e,r,i),s.resetInitSegment(t,e,r,n))},e.destroy=function(){this.demuxer&&(this.demuxer.destroy(),this.demuxer=void 0),this.remuxer&&(this.remuxer.destroy(),this.remuxer=void 0)},e.transmux=function(t,e,r,i,n){return e&&"SAMPLE-AES"===e.method?this.transmuxSampleAes(t,e,r,i,n):this.transmuxUnencrypted(t,r,i,n)},e.transmuxUnencrypted=function(t,e,r,i){var n=this.demuxer.demux(t,e,!1,!this.config.progressive),a=n.audioTrack,s=n.videoTrack,o=n.id3Track,l=n.textTrack;return{remuxResult:this.remuxer.remux(a,s,o,l,e,r,!1,this.id),chunkMeta:i}},e.transmuxSampleAes=function(t,e,r,i,n){var a=this;return this.demuxer.demuxSampleAes(t,e,r).then((function(t){return{remuxResult:a.remuxer.remux(t.audioTrack,t.videoTrack,t.id3Track,t.textTrack,r,i,!1,a.id),chunkMeta:n}}))},e.configureTransmuxer=function(t){for(var e,r=this.config,i=this.observer,n=this.typeSupported,a=this.vendor,s=0,o=un.length;s1&&l.id===(null==m?void 0:m.stats.chunkCount),L=!y&&(1===E||0===E&&(1===T||S&&T<=0)),A=self.performance.now();(y||E||0===n.stats.parsing.start)&&(n.stats.parsing.start=A),!a||!T&&L||(a.stats.parsing.start=A);var R=!(m&&(null==(h=n.initSegment)?void 0:h.url)===(null==(d=m.initSegment)?void 0:d.url)),b=new gn(p,L,o,y,g,R);if(!L||p||R){k.log("[transmuxer-interface, "+n.type+"]: Starting new transmux session for sn: "+l.sn+" p: "+l.part+" level: "+l.level+" id: "+l.id+"\n discontinuity: "+p+"\n trackSwitch: "+y+"\n contiguous: "+L+"\n accurateTimeOffset: "+o+"\n timeOffset: "+g+"\n initSegmentChange: "+R);var D=new fn(r,i,e,s,u);this.configureTransmuxer(D)}if(this.frag=n,this.part=a,this.workerContext)this.workerContext.worker.postMessage({cmd:"demux",data:t,decryptdata:v,chunkMeta:l,state:b},t instanceof ArrayBuffer?[t]:[]);else if(f){var I=f.push(t,v,l,b);cn(I)?(f.async=!0,I.then((function(t){c.handleTransmuxComplete(t)})).catch((function(t){c.transmuxerError(t,l,"transmuxer-interface push error")}))):(f.async=!1,this.handleTransmuxComplete(I))}},r.flush=function(t){var e=this;t.transmuxing.start=self.performance.now();var r=this.transmuxer;if(this.workerContext)this.workerContext.worker.postMessage({cmd:"flush",chunkMeta:t});else if(r){var i=r.flush(t);cn(i)||r.async?(cn(i)||(i=Promise.resolve(i)),i.then((function(r){e.handleFlushResult(r,t)})).catch((function(r){e.transmuxerError(r,t,"transmuxer-interface flush error")}))):this.handleFlushResult(i,t)}},r.transmuxerError=function(t,e,r){this.hls&&(this.error=t,this.hls.trigger(E.ERROR,{type:T.MEDIA_ERROR,details:S.FRAG_PARSING_ERROR,chunkMeta:e,fatal:!1,error:t,err:t,reason:r}))},r.handleFlushResult=function(t,e){var r=this;t.forEach((function(t){r.handleTransmuxComplete(t)})),this.onFlush(e)},r.onWorkerMessage=function(t){var e=t.data,r=this.hls;switch(e.event){case"init":var i,n=null==(i=this.workerContext)?void 0:i.objectURL;n&&self.URL.revokeObjectURL(n);break;case"transmuxComplete":this.handleTransmuxComplete(e.data);break;case"flush":this.onFlush(e.data);break;case"workerLog":k[e.data.logType]&&k[e.data.logType](e.data.message);break;default:e.data=e.data||{},e.data.frag=this.frag,e.data.id=this.id,r.trigger(e.event,e.data)}},r.configureTransmuxer=function(t){var e=this.transmuxer;this.workerContext?this.workerContext.worker.postMessage({cmd:"configure",config:t}):e&&e.configure(t)},r.handleTransmuxComplete=function(t){t.chunkMeta.transmuxing.end=self.performance.now(),this.onTransmuxComplete(t)},t}();function Sn(t,e){if(t.length!==e.length)return!1;for(var r=0;r0&&-1===t?(this.log("Override startPosition with lastCurrentTime @"+e.toFixed(3)),t=e,this.state=zr):(this.loadedmetadata=!1,this.state=Zr),this.nextLoadPosition=this.startPosition=this.lastCurrentTime=t,this.tick()},r.doTick=function(){switch(this.state){case zr:this.doTickIdle();break;case Zr:var e,r=this.levels,i=this.trackId,n=null==r||null==(e=r[i])?void 0:e.details;if(n){if(this.waitForCdnTuneIn(n))break;this.state=ni}break;case $r:var a,s=performance.now(),o=this.retryDate;if(!o||s>=o||null!=(a=this.media)&&a.seeking){var l=this.levels,u=this.trackId;this.log("RetryDate reached, switch back to IDLE state"),this.resetStartWhenNotLoaded((null==l?void 0:l[u])||null),this.state=zr}break;case ni:var h=this.waitingData;if(h){var d=h.frag,c=h.part,f=h.cache,g=h.complete;if(void 0!==this.initPTS[d.cc]){this.waitingData=null,this.waitingVideoCC=-1,this.state=Jr;var v={frag:d,part:c,payload:f.flush(),networkDetails:null};this._handleFragmentLoadProgress(v),g&&t.prototype._handleFragmentLoadComplete.call(this,v)}else if(this.videoTrackCC!==this.waitingVideoCC)this.log("Waiting fragment cc ("+d.cc+") cancelled because video is at cc "+this.videoTrackCC),this.clearWaitingFragment();else{var m=this.getLoadPosition(),p=Pr.bufferInfo(this.mediaBuffer,m,this.config.maxBufferHole);ur(p.end,this.config.maxFragLookUpTolerance,d)<0&&(this.log("Waiting fragment cc ("+d.cc+") @ "+d.start+" cancelled because another fragment at "+p.end+" is needed"),this.clearWaitingFragment())}}else this.state=zr}this.onTickEnd()},r.clearWaitingFragment=function(){var t=this.waitingData;t&&(this.fragmentTracker.removeFragment(t.frag),this.waitingData=null,this.waitingVideoCC=-1,this.state=zr)},r.resetLoadingState=function(){this.clearWaitingFragment(),t.prototype.resetLoadingState.call(this)},r.onTickEnd=function(){var t=this.media;null!=t&&t.readyState&&(this.lastCurrentTime=t.currentTime)},r.doTickIdle=function(){var t=this.hls,e=this.levels,r=this.media,i=this.trackId,n=t.config;if((r||!this.startFragRequested&&n.startFragPrefetch)&&null!=e&&e[i]){var a=e[i],s=a.details;if(!s||s.live&&this.levelLastLoaded!==a||this.waitForCdnTuneIn(s))this.state=Zr;else{var o=this.mediaBuffer?this.mediaBuffer:this.media;this.bufferFlushed&&o&&(this.bufferFlushed=!1,this.afterBufferFlushed(o,P,Re));var l=this.getFwdBufferInfo(o,Re);if(null!==l){var u=this.bufferedTrack,h=this.switchingTrack;if(!h&&this._streamEnded(l,s))return t.trigger(E.BUFFER_EOS,{type:"audio"}),void(this.state=ri);var d=this.getFwdBufferInfo(this.videoBuffer?this.videoBuffer:this.media,Ae),c=l.len,f=this.getMaxBufferLength(null==d?void 0:d.len),g=s.fragments,v=g[0].start,m=this.flushing?this.getLoadPosition():l.end;if(h&&r){var p=this.getLoadPosition();u&&!Ln(h.attrs,u.attrs)&&(m=p),s.PTSKnown&&pv||l.nextStart)&&(this.log("Alt audio track ahead of main track, seek to start of alt audio track"),r.currentTime=v+.05)}if(!(c>=f&&!h&&md.end+s.targetduration;if(S||(null==d||!d.len)&&l.len){var L=this.getAppendedFrag(y.start,Ae);if(null===L)return;if(T||(T=!!L.gap||!!S&&0===d.len),S&&!T||T&&l.nextStart&&l.nextStart-1)n=a[o];else{var l=Er(s,this.tracks);n=this.tracks[l]}}var u=this.findTrackId(n);-1===u&&n&&(u=this.findTrackId(null));var h={audioTracks:a};this.log("Updating audio tracks, "+a.length+" track(s) found in group(s): "+(null==r?void 0:r.join(","))),this.hls.trigger(E.AUDIO_TRACKS_UPDATED,h);var d=this.trackId;if(-1!==u&&-1===d)this.setAudioTrack(u);else if(a.length&&-1===d){var c,f=new Error("No audio track selected for current audio group-ID(s): "+(null==(c=this.groupIds)?void 0:c.join(","))+" track count: "+a.length);this.warn(f.message),this.hls.trigger(E.ERROR,{type:T.MEDIA_ERROR,details:S.AUDIO_TRACK_LOAD_ERROR,fatal:!0,error:f})}}else this.shouldReloadPlaylist(n)&&this.setAudioTrack(this.trackId)}},r.onError=function(t,e){!e.fatal&&e.context&&(e.context.type!==Se||e.context.id!==this.trackId||this.groupIds&&-1===this.groupIds.indexOf(e.context.groupId)||(this.requestScheduled=-1,this.checkRetry(e)))},r.setAudioOption=function(t){var e=this.hls;if(e.config.audioPreference=t,t){var r=this.allAudioTracks;if(this.selectDefaultTrack=!1,r.length){var i=this.currentTrack;if(i&&Tr(t,i,Sr))return i;var n=Er(t,this.tracksInGroup,Sr);if(n>-1){var a=this.tracksInGroup[n];return this.setAudioTrack(n),a}if(i){var s=e.loadLevel;-1===s&&(s=e.firstAutoLevel);var o=function(t,e,r,i,n){var a=e[i],s=e.reduce((function(t,e,r){var i=e.uri;return(t[i]||(t[i]=[])).push(r),t}),{})[a.uri];s.length>1&&(i=Math.max.apply(Math,s));var o=a.videoRange,l=a.frameRate,u=a.codecSet.substring(0,4),h=Lr(e,i,(function(e){if(e.videoRange!==o||e.frameRate!==l||e.codecSet.substring(0,4)!==u)return!1;var i=e.audioGroups,a=r.filter((function(t){return!i||-1!==i.indexOf(t.groupId)}));return Er(t,a,n)>-1}));return h>-1?h:Lr(e,i,(function(e){var i=e.audioGroups,a=r.filter((function(t){return!i||-1!==i.indexOf(t.groupId)}));return Er(t,a,n)>-1}))}(t,e.levels,r,s,Sr);if(-1===o)return null;e.nextLoadLevel=o}if(t.channels||t.audioCodec){var l=Er(t,r);if(l>-1)return r[l]}}}return null},r.setAudioTrack=function(t){var e=this.tracksInGroup;if(t<0||t>=e.length)this.warn("Invalid audio track id: "+t);else{this.clearTimer(),this.selectDefaultTrack=!1;var r=this.currentTrack,n=e[t],a=n.details&&!n.details.live;if(!(t===this.trackId&&n===r&&a||(this.log("Switching to audio-track "+t+' "'+n.name+'" lang:'+n.lang+" group:"+n.groupId+" channels:"+n.channels),this.trackId=t,this.currentTrack=n,this.hls.trigger(E.AUDIO_TRACK_SWITCHING,i({},n)),a))){var s=this.switchParams(n.url,null==r?void 0:r.details,n.details);this.loadPlaylist(s)}}},r.findTrackId=function(t){for(var e=this.tracksInGroup,r=0;r=n[o].start&&s<=n[o].end){a=n[o];break}var l=r.start+r.duration;a?a.end=l:(a={start:s,end:l},n.push(a)),this.fragmentTracker.fragBuffered(r),this.fragBufferedComplete(r,null)}}},r.onBufferFlushing=function(t,e){var r=e.startOffset,i=e.endOffset;if(0===r&&i!==Number.POSITIVE_INFINITY){var n=i-1;if(n<=0)return;e.endOffsetSubtitles=Math.max(0,n),this.tracksBuffered.forEach((function(t){for(var e=0;e=n.length||s!==i)&&o){this.log("Subtitle track "+s+" loaded ["+a.startSN+","+a.endSN+"]"+(a.lastPartSn?"[part-"+a.lastPartSn+"-"+a.lastPartIndex+"]":"")+",duration:"+a.totalduration),this.mediaBuffer=this.mediaBufferTimeRanges;var l=0;if(a.live||null!=(r=o.details)&&r.live){var u=this.mainDetails;if(a.deltaUpdateFailed||!u)return;var h,d=u.fragments[0];o.details?0===(l=this.alignPlaylists(a,o.details,null==(h=this.levelLastLoaded)?void 0:h.details))&&d&&$e(a,l=d.start):a.hasProgramDateTime&&u.hasProgramDateTime?(Ur(a,u),l=a.fragments[0].start):d&&$e(a,l=d.start)}o.details=a,this.levelLastLoaded=o,this.startFragRequested||!this.mainDetails&&a.live||this.setStartPosition(this.mainDetails||a,l),this.tick(),a.live&&!this.fragCurrent&&this.media&&this.state===zr&&(lr(null,a.fragments,this.media.currentTime,0)||(this.warn("Subtitle playlist not aligned with playback"),o.details=void 0))}}else this.warn("Subtitle tracks were reset while loading level "+s)},r._handleFragmentLoadComplete=function(t){var e=this,r=t.frag,i=t.payload,n=r.decryptdata,a=this.hls;if(!this.fragContextChanged(r)&&i&&i.byteLength>0&&null!=n&&n.key&&n.iv&&"AES-128"===n.method){var s=performance.now();this.decrypter.decrypt(new Uint8Array(i),n.key.buffer,n.iv.buffer).catch((function(t){throw a.trigger(E.ERROR,{type:T.MEDIA_ERROR,details:S.FRAG_DECRYPT_ERROR,fatal:!1,error:t,reason:t.message,frag:r}),t})).then((function(t){var e=performance.now();a.trigger(E.FRAG_DECRYPTED,{frag:r,payload:t,stats:{tstart:s,tdecrypt:e}})})).catch((function(t){e.warn(t.name+": "+t.message),e.state=zr}))}},r.doTick=function(){if(this.media){if(this.state===zr){var t=this.currentTrackId,e=this.levels,r=null==e?void 0:e[t];if(!r||!e.length||!r.details)return;var i=this.config,n=this.getLoadPosition(),a=Pr.bufferedInfo(this.tracksBuffered[this.currentTrackId]||[],n,i.maxBufferHole),s=a.end,o=a.len,l=this.getFwdBufferInfo(this.media,Ae),u=r.details;if(o>this.getMaxBufferLength(null==l?void 0:l.len)+u.levelTargetDuration)return;var h=u.fragments,d=h.length,c=u.edge,f=null,g=this.fragPrevious;if(sc-v?0:v;!(f=lr(g,h,Math.max(h[0].start,s),m))&&g&&g.start>>=0)>i-1)throw new DOMException("Failed to execute '"+e+"' on 'TimeRanges': The index provided ("+r+") is greater than the maximum bound ("+i+")");return t[r][e]};this.buffered={get length(){return t.length},end:function(r){return e("end",r,t.length)},start:function(r){return e("start",r,t.length)}}},In=function(t){function e(e){var r;return(r=t.call(this,e,"[subtitle-track-controller]")||this).media=null,r.tracks=[],r.groupIds=null,r.tracksInGroup=[],r.trackId=-1,r.currentTrack=null,r.selectDefaultTrack=!0,r.queuedDefaultTrack=-1,r.asyncPollTrackChange=function(){return r.pollTrackChange(0)},r.useTextTrackPolling=!1,r.subtitlePollingInterval=-1,r._subtitleDisplay=!0,r.onTextTracksChanged=function(){if(r.useTextTrackPolling||self.clearInterval(r.subtitlePollingInterval),r.media&&r.hls.config.renderTextTracksNatively){for(var t=null,e=Pe(r.media.textTracks),i=0;i-1&&(this.subtitleTrack=this.queuedDefaultTrack,this.queuedDefaultTrack=-1),this.useTextTrackPolling=!(this.media.textTracks&&"onchange"in this.media.textTracks),this.useTextTrackPolling?this.pollTrackChange(500):this.media.textTracks.addEventListener("change",this.asyncPollTrackChange))},r.pollTrackChange=function(t){self.clearInterval(this.subtitlePollingInterval),this.subtitlePollingInterval=self.setInterval(this.onTextTracksChanged,t)},r.onMediaDetaching=function(){this.media&&(self.clearInterval(this.subtitlePollingInterval),this.useTextTrackPolling||this.media.textTracks.removeEventListener("change",this.asyncPollTrackChange),this.trackId>-1&&(this.queuedDefaultTrack=this.trackId),Pe(this.media.textTracks).forEach((function(t){_e(t)})),this.subtitleTrack=-1,this.media=null)},r.onManifestLoading=function(){this.tracks=[],this.groupIds=null,this.tracksInGroup=[],this.trackId=-1,this.currentTrack=null,this.selectDefaultTrack=!0},r.onManifestParsed=function(t,e){this.tracks=e.subtitleTracks},r.onSubtitleTrackLoaded=function(t,e){var r=e.id,i=e.groupId,n=e.details,a=this.tracksInGroup[r];if(a&&a.groupId===i){var s=a.details;a.details=e.details,this.log("Subtitle track "+r+' "'+a.name+'" lang:'+a.lang+" group:"+i+" loaded ["+n.startSN+"-"+n.endSN+"]"),r===this.trackId&&this.playlistLoaded(r,e,s)}else this.warn("Subtitle track with id:"+r+" and group:"+i+" not found in active group "+(null==a?void 0:a.groupId))},r.onLevelLoading=function(t,e){this.switchLevel(e.level)},r.onLevelSwitching=function(t,e){this.switchLevel(e.level)},r.switchLevel=function(t){var e=this.hls.levels[t];if(e){var r=e.subtitleGroups||null,i=this.groupIds,n=this.currentTrack;if(!r||(null==i?void 0:i.length)!==(null==r?void 0:r.length)||null!=r&&r.some((function(t){return-1===(null==i?void 0:i.indexOf(t))}))){this.groupIds=r,this.trackId=-1,this.currentTrack=null;var a=this.tracks.filter((function(t){return!r||-1!==r.indexOf(t.groupId)}));if(a.length)this.selectDefaultTrack&&!a.some((function(t){return t.default}))&&(this.selectDefaultTrack=!1),a.forEach((function(t,e){t.id=e}));else if(!n&&!this.tracksInGroup.length)return;this.tracksInGroup=a;var s=this.hls.config.subtitlePreference;if(!n&&s){this.selectDefaultTrack=!1;var o=Er(s,a);if(o>-1)n=a[o];else{var l=Er(s,this.tracks);n=this.tracks[l]}}var u=this.findTrackId(n);-1===u&&n&&(u=this.findTrackId(null));var h={subtitleTracks:a};this.log("Updating subtitle tracks, "+a.length+' track(s) found in "'+(null==r?void 0:r.join(","))+'" group-id'),this.hls.trigger(E.SUBTITLE_TRACKS_UPDATED,h),-1!==u&&-1===this.trackId&&this.setSubtitleTrack(u)}else this.shouldReloadPlaylist(n)&&this.setSubtitleTrack(this.trackId)}},r.findTrackId=function(t){for(var e=this.tracksInGroup,r=this.selectDefaultTrack,i=0;i-1){var n=this.tracksInGroup[i];return this.setSubtitleTrack(i),n}if(r)return null;var a=Er(t,e);if(a>-1)return e[a]}}return null},r.loadPlaylist=function(e){t.prototype.loadPlaylist.call(this);var r=this.currentTrack;if(this.shouldLoadPlaylist(r)&&r){var i=r.id,n=r.groupId,a=r.url;if(e)try{a=e.addDirectives(a)}catch(t){this.warn("Could not construct new URL with HLS Delivery Directives: "+t)}this.log("Loading subtitle playlist for id "+i),this.hls.trigger(E.SUBTITLE_TRACK_LOADING,{url:a,id:i,groupId:n,deliveryDirectives:e||null})}},r.toggleTrackModes=function(){var t=this.media;if(t){var e,r=Pe(t.textTracks),i=this.currentTrack;if(i&&((e=r.filter((function(t){return An(i,t)}))[0])||this.warn('Unable to find subtitle TextTrack with name "'+i.name+'" and language "'+i.lang+'"')),[].slice.call(r).forEach((function(t){"disabled"!==t.mode&&t!==e&&(t.mode="disabled")})),e){var n=this.subtitleDisplay?"showing":"hidden";e.mode!==n&&(e.mode=n)}}},r.setSubtitleTrack=function(t){var e=this.tracksInGroup;if(this.media)if(t<-1||t>=e.length||!m(t))this.warn("Invalid subtitle track id: "+t);else{this.clearTimer(),this.selectDefaultTrack=!1;var r=this.currentTrack,i=e[t]||null;if(this.trackId=t,this.currentTrack=i,this.toggleTrackModes(),i){var n=!!i.details&&!i.details.live;if(t!==this.trackId||i!==r||!n){this.log("Switching to subtitle-track "+t+(i?' "'+i.name+'" lang:'+i.lang+" group:"+i.groupId:""));var a=i.id,s=i.groupId,o=void 0===s?"":s,l=i.name,u=i.type,h=i.url;this.hls.trigger(E.SUBTITLE_TRACK_SWITCH,{id:a,groupId:o,name:l,type:u,url:h});var d=this.switchParams(i.url,null==r?void 0:r.details,i.details);this.loadPlaylist(d)}}else this.hls.trigger(E.SUBTITLE_TRACK_SWITCH,{id:t})}else this.queuedDefaultTrack=t},s(e,[{key:"subtitleDisplay",get:function(){return this._subtitleDisplay},set:function(t){this._subtitleDisplay=t,this.trackId>-1&&this.toggleTrackModes()}},{key:"allSubtitleTracks",get:function(){return this.tracks}},{key:"subtitleTracks",get:function(){return this.tracksInGroup}},{key:"subtitleTrack",get:function(){return this.trackId},set:function(t){this.selectDefaultTrack=!1,this.setSubtitleTrack(t)}}]),e}(cr),wn=function(){function t(t){this.buffers=void 0,this.queues={video:[],audio:[],audiovideo:[]},this.buffers=t}var e=t.prototype;return e.append=function(t,e,r){var i=this.queues[e];i.push(t),1!==i.length||r||this.executeNext(e)},e.insertAbort=function(t,e){this.queues[e].unshift(t),this.executeNext(e)},e.appendBlocker=function(t){var e,r=new Promise((function(t){e=t})),i={execute:e,onStart:function(){},onComplete:function(){},onError:function(){}};return this.append(i,t),r},e.executeNext=function(t){var e=this.queues[t];if(e.length){var r=e[0];try{r.execute()}catch(e){k.warn('[buffer-operation-queue]: Exception executing "'+t+'" SourceBuffer operation: '+e),r.onError(e);var i=this.buffers[t];null!=i&&i.updating||this.shiftAndExecuteNext(t)}}},e.shiftAndExecuteNext=function(t){this.queues[t].shift(),this.executeNext(t)},e.current=function(t){return this.queues[t][0]},t}(),Cn=/(avc[1234]|hvc1|hev1|dvh[1e]|vp09|av01)(?:\.[^.,]+)+/,_n=function(){function t(t){var e=this;this.details=null,this._objectUrl=null,this.operationQueue=void 0,this.listeners=void 0,this.hls=void 0,this.bufferCodecEventsExpected=0,this._bufferCodecEventsTotal=0,this.media=null,this.mediaSource=null,this.lastMpegAudioChunk=null,this.appendSource=void 0,this.appendErrors={audio:0,video:0,audiovideo:0},this.tracks={},this.pendingTracks={},this.sourceBuffer=void 0,this.log=void 0,this.warn=void 0,this.error=void 0,this._onEndStreaming=function(t){e.hls&&e.hls.pauseBuffering()},this._onStartStreaming=function(t){e.hls&&e.hls.resumeBuffering()},this._onMediaSourceOpen=function(){var t=e.media,r=e.mediaSource;e.log("Media source opened"),t&&(t.removeEventListener("emptied",e._onMediaEmptied),e.updateMediaElementDuration(),e.hls.trigger(E.MEDIA_ATTACHED,{media:t,mediaSource:r})),r&&r.removeEventListener("sourceopen",e._onMediaSourceOpen),e.checkPendingTracks()},this._onMediaSourceClose=function(){e.log("Media source closed")},this._onMediaSourceEnded=function(){e.log("Media source ended")},this._onMediaEmptied=function(){var t=e.mediaSrc,r=e._objectUrl;t!==r&&k.error("Media element src was set while attaching MediaSource ("+r+" > "+t+")")},this.hls=t;var r,i="[buffer-controller]";this.appendSource=(r=zt(t.config.preferManagedMediaSource),"undefined"!=typeof self&&r===self.ManagedMediaSource),this.log=k.log.bind(k,i),this.warn=k.warn.bind(k,i),this.error=k.error.bind(k,i),this._initSourceBuffer(),this.registerListeners()}var e=t.prototype;return e.hasSourceTypes=function(){return this.getSourceBufferTypes().length>0||Object.keys(this.pendingTracks).length>0},e.destroy=function(){this.unregisterListeners(),this.details=null,this.lastMpegAudioChunk=null,this.hls=null},e.registerListeners=function(){var t=this.hls;t.on(E.MEDIA_ATTACHING,this.onMediaAttaching,this),t.on(E.MEDIA_DETACHING,this.onMediaDetaching,this),t.on(E.MANIFEST_LOADING,this.onManifestLoading,this),t.on(E.MANIFEST_PARSED,this.onManifestParsed,this),t.on(E.BUFFER_RESET,this.onBufferReset,this),t.on(E.BUFFER_APPENDING,this.onBufferAppending,this),t.on(E.BUFFER_CODECS,this.onBufferCodecs,this),t.on(E.BUFFER_EOS,this.onBufferEos,this),t.on(E.BUFFER_FLUSHING,this.onBufferFlushing,this),t.on(E.LEVEL_UPDATED,this.onLevelUpdated,this),t.on(E.FRAG_PARSED,this.onFragParsed,this),t.on(E.FRAG_CHANGED,this.onFragChanged,this)},e.unregisterListeners=function(){var t=this.hls;t.off(E.MEDIA_ATTACHING,this.onMediaAttaching,this),t.off(E.MEDIA_DETACHING,this.onMediaDetaching,this),t.off(E.MANIFEST_LOADING,this.onManifestLoading,this),t.off(E.MANIFEST_PARSED,this.onManifestParsed,this),t.off(E.BUFFER_RESET,this.onBufferReset,this),t.off(E.BUFFER_APPENDING,this.onBufferAppending,this),t.off(E.BUFFER_CODECS,this.onBufferCodecs,this),t.off(E.BUFFER_EOS,this.onBufferEos,this),t.off(E.BUFFER_FLUSHING,this.onBufferFlushing,this),t.off(E.LEVEL_UPDATED,this.onLevelUpdated,this),t.off(E.FRAG_PARSED,this.onFragParsed,this),t.off(E.FRAG_CHANGED,this.onFragChanged,this)},e._initSourceBuffer=function(){this.sourceBuffer={},this.operationQueue=new wn(this.sourceBuffer),this.listeners={audio:[],video:[],audiovideo:[]},this.appendErrors={audio:0,video:0,audiovideo:0},this.lastMpegAudioChunk=null},e.onManifestLoading=function(){this.bufferCodecEventsExpected=this._bufferCodecEventsTotal=0,this.details=null},e.onManifestParsed=function(t,e){var r=2;(e.audio&&!e.video||!e.altAudio)&&(r=1),this.bufferCodecEventsExpected=this._bufferCodecEventsTotal=r,this.log(this.bufferCodecEventsExpected+" bufferCodec event(s) expected")},e.onMediaAttaching=function(t,e){var r=this.media=e.media,i=zt(this.appendSource);if(r&&i){var n,a=this.mediaSource=new i;this.log("created media source: "+(null==(n=a.constructor)?void 0:n.name)),a.addEventListener("sourceopen",this._onMediaSourceOpen),a.addEventListener("sourceended",this._onMediaSourceEnded),a.addEventListener("sourceclose",this._onMediaSourceClose),this.appendSource&&(a.addEventListener("startstreaming",this._onStartStreaming),a.addEventListener("endstreaming",this._onEndStreaming));var s=this._objectUrl=self.URL.createObjectURL(a);if(this.appendSource)try{r.removeAttribute("src");var o=self.ManagedMediaSource;r.disableRemotePlayback=r.disableRemotePlayback||o&&a instanceof o,xn(r),function(t,e){var r=self.document.createElement("source");r.type="video/mp4",r.src=e,t.appendChild(r)}(r,s),r.load()}catch(t){r.src=s}else r.src=s;r.addEventListener("emptied",this._onMediaEmptied)}},e.onMediaDetaching=function(){var t=this.media,e=this.mediaSource,r=this._objectUrl;if(e){if(this.log("media source detaching"),"open"===e.readyState)try{e.endOfStream()}catch(t){this.warn("onMediaDetaching: "+t.message+" while calling endOfStream")}this.onBufferReset(),e.removeEventListener("sourceopen",this._onMediaSourceOpen),e.removeEventListener("sourceended",this._onMediaSourceEnded),e.removeEventListener("sourceclose",this._onMediaSourceClose),this.appendSource&&(e.removeEventListener("startstreaming",this._onStartStreaming),e.removeEventListener("endstreaming",this._onEndStreaming)),t&&(t.removeEventListener("emptied",this._onMediaEmptied),r&&self.URL.revokeObjectURL(r),this.mediaSrc===r?(t.removeAttribute("src"),this.appendSource&&xn(t),t.load()):this.warn("media|source.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(E.MEDIA_DETACHED,void 0)},e.onBufferReset=function(){var t=this;this.getSourceBufferTypes().forEach((function(e){t.resetBuffer(e)})),this._initSourceBuffer()},e.resetBuffer=function(t){var e=this.sourceBuffer[t];try{var r;e&&(this.removeBufferListeners(t),this.sourceBuffer[t]=void 0,null!=(r=this.mediaSource)&&r.sourceBuffers.length&&this.mediaSource.removeSourceBuffer(e))}catch(e){this.warn("onBufferReset "+t,e)}},e.onBufferCodecs=function(t,e){var r=this,i=this.getSourceBufferTypes().length,n=Object.keys(e);if(n.forEach((function(t){if(i){var n=r.tracks[t];if(n&&"function"==typeof n.buffer.changeType){var a,s=e[t],o=s.id,l=s.codec,u=s.levelCodec,h=s.container,d=s.metadata,c=ae(n.codec,n.levelCodec),f=null==c?void 0:c.replace(Cn,"$1"),g=ae(l,u),v=null==(a=g)?void 0:a.replace(Cn,"$1");if(g&&f!==v){"audio"===t.slice(0,5)&&(g=ne(g,r.appendSource));var m=h+";codecs="+g;r.appendChangeType(t,m),r.log("switching codec "+c+" to "+g),r.tracks[t]={buffer:n.buffer,codec:l,container:h,levelCodec:u,metadata:d,id:o}}}}else r.pendingTracks[t]=e[t]})),!i){var a=Math.max(this.bufferCodecEventsExpected-1,0);this.bufferCodecEventsExpected!==a&&(this.log(a+" bufferCodec event(s) expected "+n.join(",")),this.bufferCodecEventsExpected=a),this.mediaSource&&"open"===this.mediaSource.readyState&&this.checkPendingTracks()}},e.appendChangeType=function(t,e){var r=this,i=this.operationQueue,n={execute:function(){var n=r.sourceBuffer[t];n&&(r.log("changing "+t+" sourceBuffer type to "+e),n.changeType(e)),i.shiftAndExecuteNext(t)},onStart:function(){},onComplete:function(){},onError:function(e){r.warn("Failed to change "+t+" SourceBuffer type",e)}};i.append(n,t,!!this.pendingTracks[t])},e.onBufferAppending=function(t,e){var r=this,i=this.hls,n=this.operationQueue,a=this.tracks,s=e.data,o=e.type,l=e.frag,u=e.part,h=e.chunkMeta,d=h.buffering[o],c=self.performance.now();d.start=c;var f=l.stats.buffering,g=u?u.stats.buffering:null;0===f.start&&(f.start=c),g&&0===g.start&&(g.start=c);var v=a.audio,m=!1;"audio"===o&&"audio/mpeg"===(null==v?void 0:v.container)&&(m=!this.lastMpegAudioChunk||1===h.id||this.lastMpegAudioChunk.sn!==h.sn,this.lastMpegAudioChunk=h);var p=l.start,y={execute:function(){if(d.executeStart=self.performance.now(),m){var t=r.sourceBuffer[o];if(t){var e=p-t.timestampOffset;Math.abs(e)>=.1&&(r.log("Updating audio SourceBuffer timestampOffset to "+p+" (delta: "+e+") sn: "+l.sn+")"),t.timestampOffset=p)}}r.appendExecutor(s,o)},onStart:function(){},onComplete:function(){var t=self.performance.now();d.executeEnd=d.end=t,0===f.first&&(f.first=t),g&&0===g.first&&(g.first=t);var e=r.sourceBuffer,i={};for(var n in e)i[n]=Pr.getBuffered(e[n]);r.appendErrors[o]=0,"audio"===o||"video"===o?r.appendErrors.audiovideo=0:(r.appendErrors.audio=0,r.appendErrors.video=0),r.hls.trigger(E.BUFFER_APPENDED,{type:o,frag:l,part:u,chunkMeta:h,parent:l.type,timeRanges:i})},onError:function(t){var e={type:T.MEDIA_ERROR,parent:l.type,details:S.BUFFER_APPEND_ERROR,sourceBufferName:o,frag:l,part:u,chunkMeta:h,error:t,err:t,fatal:!1};if(t.code===DOMException.QUOTA_EXCEEDED_ERR)e.details=S.BUFFER_FULL_ERROR;else{var n=++r.appendErrors[o];e.details=S.BUFFER_APPEND_ERROR,r.warn("Failed "+n+"/"+i.config.appendErrorMaxRetry+' times to append segment in "'+o+'" sourceBuffer'),n>=i.config.appendErrorMaxRetry&&(e.fatal=!0)}i.trigger(E.ERROR,e)}};n.append(y,o,!!this.pendingTracks[o])},e.onBufferFlushing=function(t,e){var r=this,i=this.operationQueue,n=function(t){return{execute:r.removeExecutor.bind(r,t,e.startOffset,e.endOffset),onStart:function(){},onComplete:function(){r.hls.trigger(E.BUFFER_FLUSHED,{type:t})},onError:function(e){r.warn("Failed to remove from "+t+" SourceBuffer",e)}}};e.type?i.append(n(e.type),e.type):this.getSourceBufferTypes().forEach((function(t){i.append(n(t),t)}))},e.onFragParsed=function(t,e){var r=this,i=e.frag,n=e.part,a=[],s=n?n.elementaryStreams:i.elementaryStreams;s[M]?a.push("audiovideo"):(s[P]&&a.push("audio"),s[F]&&a.push("video")),0===a.length&&this.warn("Fragments must have at least one ElementaryStreamType set. type: "+i.type+" level: "+i.level+" sn: "+i.sn),this.blockBuffers((function(){var t=self.performance.now();i.stats.buffering.end=t,n&&(n.stats.buffering.end=t);var e=n?n.stats:i.stats;r.hls.trigger(E.FRAG_BUFFERED,{frag:i,part:n,stats:e,id:i.type})}),a)},e.onFragChanged=function(t,e){this.trimBuffers()},e.onBufferEos=function(t,e){var r=this;this.getSourceBufferTypes().reduce((function(t,i){var n=r.sourceBuffer[i];return!n||e.type&&e.type!==i||(n.ending=!0,n.ended||(n.ended=!0,r.log(i+" sourceBuffer now EOS"))),t&&!(n&&!n.ended)}),!0)&&(this.log("Queueing mediaSource.endOfStream()"),this.blockBuffers((function(){r.getSourceBufferTypes().forEach((function(t){var e=r.sourceBuffer[t];e&&(e.ending=!1)}));var t=r.mediaSource;t&&"open"===t.readyState?(r.log("Calling mediaSource.endOfStream()"),t.endOfStream()):t&&r.log("Could not call mediaSource.endOfStream(). mediaSource.readyState: "+t.readyState)})))},e.onLevelUpdated=function(t,e){var r=e.details;r.fragments.length&&(this.details=r,this.getSourceBufferTypes().length?this.blockBuffers(this.updateMediaElementDuration.bind(this)):this.updateMediaElementDuration())},e.trimBuffers=function(){var t=this.hls,e=this.details,r=this.media;if(r&&null!==e&&this.getSourceBufferTypes().length){var i=t.config,n=r.currentTime,a=e.levelTargetDuration,s=e.live&&null!==i.liveBackBufferLength?i.liveBackBufferLength:i.backBufferLength;if(m(s)&&s>0){var o=Math.max(s,a),l=Math.floor(n/a)*a-o;this.flushBackBuffer(n,a,l)}if(m(i.frontBufferFlushThreshold)&&i.frontBufferFlushThreshold>0){var u=Math.max(i.maxBufferLength,i.frontBufferFlushThreshold),h=Math.max(u,a),d=Math.floor(n/a)*a+h;this.flushFrontBuffer(n,a,d)}}},e.flushBackBuffer=function(t,e,r){var i=this,n=this.details,a=this.sourceBuffer;this.getSourceBufferTypes().forEach((function(s){var o=a[s];if(o){var l=Pr.getBuffered(o);if(l.length>0&&r>l.start(0)){if(i.hls.trigger(E.BACK_BUFFER_REACHED,{bufferEnd:r}),null!=n&&n.live)i.hls.trigger(E.LIVE_BACK_BUFFER_REACHED,{bufferEnd:r});else if(o.ended&&l.end(l.length-1)-t<2*e)return void i.log("Cannot flush "+s+" back buffer while SourceBuffer is in ended state");i.hls.trigger(E.BUFFER_FLUSHING,{startOffset:0,endOffset:r,type:s})}}}))},e.flushFrontBuffer=function(t,e,r){var i=this,n=this.sourceBuffer;this.getSourceBufferTypes().forEach((function(a){var s=n[a];if(s){var o=Pr.getBuffered(s),l=o.length;if(l<2)return;var u=o.start(l-1),h=o.end(l-1);if(r>u||t>=u&&t<=h)return;if(s.ended&&t-h<2*e)return void i.log("Cannot flush "+a+" front buffer while SourceBuffer is in ended state");i.hls.trigger(E.BUFFER_FLUSHING,{startOffset:u,endOffset:1/0,type:a})}}))},e.updateMediaElementDuration=function(){if(this.details&&this.media&&this.mediaSource&&"open"===this.mediaSource.readyState){var t=this.details,e=this.hls,r=this.media,i=this.mediaSource,n=t.fragments[0].start+t.totalduration,a=r.duration,s=m(i.duration)?i.duration:0;t.live&&e.config.liveDurationInfinity?(i.duration=1/0,this.updateSeekableRange(t)):(n>s&&n>a||!m(a))&&(this.log("Updating Media Source duration to "+n.toFixed(3)),i.duration=n)}},e.updateSeekableRange=function(t){var e=this.mediaSource,r=t.fragments;if(r.length&&t.live&&null!=e&&e.setLiveSeekableRange){var i=Math.max(0,r[0].start),n=Math.max(i,i+t.totalduration);this.log("Media Source duration is set to "+e.duration+". Setting seekable range to "+i+"-"+n+"."),e.setLiveSeekableRange(i,n)}},e.checkPendingTracks=function(){var t=this.bufferCodecEventsExpected,e=this.operationQueue,r=this.pendingTracks,i=Object.keys(r).length;if(i&&(!t||2===i||"audiovideo"in r)){this.createSourceBuffers(r),this.pendingTracks={};var n=this.getSourceBufferTypes();if(n.length)this.hls.trigger(E.BUFFER_CREATED,{tracks:this.tracks}),n.forEach((function(t){e.executeNext(t)}));else{var a=new Error("could not create source buffer for media codec(s)");this.hls.trigger(E.ERROR,{type:T.MEDIA_ERROR,details:S.BUFFER_INCOMPATIBLE_CODECS_ERROR,fatal:!0,error:a,reason:a.message})}}},e.createSourceBuffers=function(t){var e=this,r=this.sourceBuffer,i=this.mediaSource;if(!i)throw Error("createSourceBuffers called when mediaSource was null");var n=function(n){if(!r[n]){var a,s=t[n];if(!s)throw Error("source buffer exists for track "+n+", however track does not");var o=-1===(null==(a=s.levelCodec)?void 0:a.indexOf(","))?s.levelCodec:s.codec;o&&"audio"===n.slice(0,5)&&(o=ne(o,e.appendSource));var l=s.container+";codecs="+o;e.log("creating sourceBuffer("+l+")");try{var u=r[n]=i.addSourceBuffer(l),h=n;e.addBufferListener(h,"updatestart",e._onSBUpdateStart),e.addBufferListener(h,"updateend",e._onSBUpdateEnd),e.addBufferListener(h,"error",e._onSBUpdateError),e.appendSource&&e.addBufferListener(h,"bufferedchange",(function(t,r){var i=r.removedRanges;null!=i&&i.length&&e.hls.trigger(E.BUFFER_FLUSHED,{type:n})})),e.tracks[n]={buffer:u,codec:o,container:s.container,levelCodec:s.levelCodec,metadata:s.metadata,id:s.id}}catch(t){e.error("error while trying to add sourceBuffer: "+t.message),e.hls.trigger(E.ERROR,{type:T.MEDIA_ERROR,details:S.BUFFER_ADD_CODEC_ERROR,fatal:!1,error:t,sourceBufferName:n,mimeType:l})}}};for(var a in t)n(a)},e._onSBUpdateStart=function(t){this.operationQueue.current(t).onStart()},e._onSBUpdateEnd=function(t){var e;if("closed"!==(null==(e=this.mediaSource)?void 0:e.readyState)){var r=this.operationQueue;r.current(t).onComplete(),r.shiftAndExecuteNext(t)}else this.resetBuffer(t)},e._onSBUpdateError=function(t,e){var r,i=new Error(t+" SourceBuffer error. MediaSource readyState: "+(null==(r=this.mediaSource)?void 0:r.readyState));this.error(""+i,e),this.hls.trigger(E.ERROR,{type:T.MEDIA_ERROR,details:S.BUFFER_APPENDING_ERROR,sourceBufferName:t,error:i,fatal:!1});var n=this.operationQueue.current(t);n&&n.onError(i)},e.removeExecutor=function(t,e,r){var i=this.media,n=this.mediaSource,a=this.operationQueue,s=this.sourceBuffer[t];if(!i||!n||!s)return this.warn("Attempting to remove from the "+t+" SourceBuffer, but it does not exist"),void a.shiftAndExecuteNext(t);var o=m(i.duration)?i.duration:1/0,l=m(n.duration)?n.duration:1/0,u=Math.max(0,e),h=Math.min(r,o,l);h>u&&(!s.ending||s.ended)?(s.ended=!1,this.log("Removing ["+u+","+h+"] from the "+t+" SourceBuffer"),s.remove(u,h)):a.shiftAndExecuteNext(t)},e.appendExecutor=function(t,e){var r=this.sourceBuffer[e];if(r)r.ended=!1,r.appendBuffer(t);else if(!this.pendingTracks[e])throw new Error("Attempting to append to the "+e+" SourceBuffer, but it does not exist")},e.blockBuffers=function(t,e){var r=this;if(void 0===e&&(e=this.getSourceBufferTypes()),!e.length)return this.log("Blocking operation requested, but no SourceBuffers exist"),void Promise.resolve().then(t);var i=this.operationQueue,n=e.map((function(t){return i.appendBlocker(t)}));Promise.all(n).then((function(){t(),e.forEach((function(t){var e=r.sourceBuffer[t];null!=e&&e.updating||i.shiftAndExecuteNext(t)}))}))},e.getSourceBufferTypes=function(){return Object.keys(this.sourceBuffer)},e.addBufferListener=function(t,e,r){var i=this.sourceBuffer[t];if(i){var n=r.bind(this,t);this.listeners[t].push({event:e,listener:n}),i.addEventListener(e,n)}},e.removeBufferListeners=function(t){var e=this.sourceBuffer[t];e&&this.listeners[t].forEach((function(t){e.removeEventListener(t.event,t.listener)}))},s(t,[{key:"mediaSrc",get:function(){var t,e=(null==(t=this.media)?void 0:t.firstChild)||this.media;return null==e?void 0:e.src}}]),t}();function xn(t){var e=t.querySelectorAll("source");[].slice.call(e).forEach((function(e){t.removeChild(e)}))}var Pn={42:225,92:233,94:237,95:243,96:250,123:231,124:247,125:209,126:241,127:9608,128:174,129:176,130:189,131:191,132:8482,133:162,134:163,135:9834,136:224,137:32,138:232,139:226,140:234,141:238,142:244,143:251,144:193,145:201,146:211,147:218,148:220,149:252,150:8216,151:161,152:42,153:8217,154:9473,155:169,156:8480,157:8226,158:8220,159:8221,160:192,161:194,162:199,163:200,164:202,165:203,166:235,167:206,168:207,169:239,170:212,171:217,172:249,173:219,174:171,175:187,176:195,177:227,178:205,179:204,180:236,181:210,182:242,183:213,184:245,185:123,186:125,187:92,188:94,189:95,190:124,191:8764,192:196,193:228,194:214,195:246,196:223,197:165,198:164,199:9475,200:197,201:229,202:216,203:248,204:9487,205:9491,206:9495,207:9499},Fn=function(t){var e=t;return Pn.hasOwnProperty(t)&&(e=Pn[t]),String.fromCharCode(e)},Mn=15,On=100,Nn={17:1,18:3,21:5,22:7,23:9,16:11,19:12,20:14},Un={17:2,18:4,21:6,22:8,23:10,19:13,20:15},Bn={25:1,26:3,29:5,30:7,31:9,24:11,27:12,28:14},Gn={25:2,26:4,29:6,30:8,31:10,27:13,28:15},Kn=["white","green","blue","cyan","red","yellow","magenta","black","transparent"],Hn=function(){function t(){this.time=null,this.verboseLevel=0}return t.prototype.log=function(t,e){if(this.verboseLevel>=t){var r="function"==typeof e?e():e;k.log(this.time+" ["+t+"] "+r)}},t}(),Vn=function(t){for(var e=[],r=0;rOn&&(this.logger.log(3,"Too large cursor position "+this.pos),this.pos=On)},e.moveCursor=function(t){var e=this.pos+t;if(t>1)for(var r=this.pos+1;r=144&&this.backSpace();var r=Fn(t);this.pos>=On?this.logger.log(0,(function(){return"Cannot insert "+t.toString(16)+" ("+r+") at position "+e.pos+". Skipping it!"})):(this.chars[this.pos].setChar(r,this.currPenState),this.moveCursor(1))},e.clearFromPos=function(t){var e;for(e=t;e0&&(r=t?"["+e.join(" | ")+"]":e.join("\n")),r},e.getTextAndFormat=function(){return this.rows},t}(),Xn=function(){function t(t,e,r){this.chNr=void 0,this.outputFilter=void 0,this.mode=void 0,this.verbose=void 0,this.displayedMemory=void 0,this.nonDisplayedMemory=void 0,this.lastOutputScreen=void 0,this.currRollUpRow=void 0,this.writeScreen=void 0,this.cueStartTime=void 0,this.logger=void 0,this.chNr=t,this.outputFilter=e,this.mode=null,this.verbose=0,this.displayedMemory=new qn(r),this.nonDisplayedMemory=new qn(r),this.lastOutputScreen=new qn(r),this.currRollUpRow=this.displayedMemory.rows[14],this.writeScreen=this.displayedMemory,this.mode=null,this.cueStartTime=null,this.logger=r}var e=t.prototype;return e.reset=function(){this.mode=null,this.displayedMemory.reset(),this.nonDisplayedMemory.reset(),this.lastOutputScreen.reset(),this.outputFilter.reset(),this.currRollUpRow=this.displayedMemory.rows[14],this.writeScreen=this.displayedMemory,this.mode=null,this.cueStartTime=null},e.getHandler=function(){return this.outputFilter},e.setHandler=function(t){this.outputFilter=t},e.setPAC=function(t){this.writeScreen.setPAC(t)},e.setBkgData=function(t){this.writeScreen.setBkgData(t)},e.setMode=function(t){t!==this.mode&&(this.mode=t,this.logger.log(2,(function(){return"MODE="+t})),"MODE_POP-ON"===this.mode?this.writeScreen=this.nonDisplayedMemory:(this.writeScreen=this.displayedMemory,this.writeScreen.reset()),"MODE_ROLL-UP"!==this.mode&&(this.displayedMemory.nrRollUpRows=null,this.nonDisplayedMemory.nrRollUpRows=null),this.mode=t)},e.insertChars=function(t){for(var e=this,r=0;r=46,e.italics)e.foreground="white";else{var r=Math.floor(t/2)-16;e.foreground=["white","green","blue","cyan","red","yellow","magenta"][r]}this.logger.log(2,"MIDROW: "+JSON.stringify(e)),this.writeScreen.setPen(e)},e.outputDataUpdate=function(t){void 0===t&&(t=!1);var e=this.logger.time;null!==e&&this.outputFilter&&(null!==this.cueStartTime||this.displayedMemory.isEmpty()?this.displayedMemory.equals(this.lastOutputScreen)||(this.outputFilter.newCue(this.cueStartTime,e,this.lastOutputScreen),t&&this.outputFilter.dispatchCue&&this.outputFilter.dispatchCue(),this.cueStartTime=this.displayedMemory.isEmpty()?null:e):this.cueStartTime=e,this.lastOutputScreen.copy(this.displayedMemory))},e.cueSplitAtTime=function(t){this.outputFilter&&(this.displayedMemory.isEmpty()||(this.outputFilter.newCue&&this.outputFilter.newCue(this.cueStartTime,t,this.displayedMemory),this.cueStartTime=t))},t}(),zn=function(){function t(t,e,r){this.channels=void 0,this.currentChannel=0,this.cmdHistory={a:null,b:null},this.logger=void 0;var i=this.logger=new Hn;this.channels=[null,new Xn(t,e,i),new Xn(t+1,r,i)]}var e=t.prototype;return e.getHandler=function(t){return this.channels[t].getHandler()},e.setHandler=function(t,e){this.channels[t].setHandler(e)},e.addData=function(t,e){var r,i,n,a=!1;this.logger.time=t;for(var s=0;s ("+Vn([i,n])+")"),(r=this.parseCmd(i,n))||(r=this.parseMidrow(i,n)),r||(r=this.parsePAC(i,n)),r||(r=this.parseBackgroundAttributes(i,n)),!r&&(a=this.parseChars(i,n))){var o=this.currentChannel;o&&o>0?this.channels[o].insertChars(a):this.logger.log(2,"No channel found yet. TEXT-MODE?")}r||a||this.logger.log(2,"Couldn't parse cleaned data "+Vn([i,n])+" orig: "+Vn([e[s],e[s+1]]))}},e.parseCmd=function(t,e){var r=this.cmdHistory;if(!((20===t||28===t||21===t||29===t)&&e>=32&&e<=47||(23===t||31===t)&&e>=33&&e<=35))return!1;if(Jn(t,e,r))return Qn(null,null,r),this.logger.log(3,"Repeated command ("+Vn([t,e])+") is dropped"),!0;var i=20===t||21===t||23===t?1:2,n=this.channels[i];return 20===t||21===t||28===t||29===t?32===e?n.ccRCL():33===e?n.ccBS():34===e?n.ccAOF():35===e?n.ccAON():36===e?n.ccDER():37===e?n.ccRU(2):38===e?n.ccRU(3):39===e?n.ccRU(4):40===e?n.ccFON():41===e?n.ccRDC():42===e?n.ccTR():43===e?n.ccRTD():44===e?n.ccEDM():45===e?n.ccCR():46===e?n.ccENM():47===e&&n.ccEOC():n.ccTO(e-32),Qn(t,e,r),this.currentChannel=i,!0},e.parseMidrow=function(t,e){var r=0;if((17===t||25===t)&&e>=32&&e<=47){if((r=17===t?1:2)!==this.currentChannel)return this.logger.log(0,"Mismatch channel in midrow parsing"),!1;var i=this.channels[r];return!!i&&(i.ccMIDROW(e),this.logger.log(3,"MIDROW ("+Vn([t,e])+")"),!0)}return!1},e.parsePAC=function(t,e){var r,i=this.cmdHistory;if(!((t>=17&&t<=23||t>=25&&t<=31)&&e>=64&&e<=127||(16===t||24===t)&&e>=64&&e<=95))return!1;if(Jn(t,e,i))return Qn(null,null,i),!0;var n=t<=23?1:2;r=e>=64&&e<=95?1===n?Nn[t]:Bn[t]:1===n?Un[t]:Gn[t];var a=this.channels[n];return!!a&&(a.setPAC(this.interpretPAC(r,e)),Qn(t,e,i),this.currentChannel=n,!0)},e.interpretPAC=function(t,e){var r,i={color:null,italics:!1,indent:null,underline:!1,row:t};return r=e>95?e-96:e-64,i.underline=1==(1&r),r<=13?i.color=["white","green","blue","cyan","red","yellow","magenta","white"][Math.floor(r/2)]:r<=15?(i.italics=!0,i.color="white"):i.indent=4*Math.floor((r-16)/2),i},e.parseChars=function(t,e){var r,i,n=null,a=null;if(t>=25?(r=2,a=t-8):(r=1,a=t),a>=17&&a<=19?(i=17===a?e+80:18===a?e+112:e+144,this.logger.log(2,"Special char '"+Fn(i)+"' in channel "+r),n=[i]):t>=32&&t<=127&&(n=0===e?[t]:[t,e]),n){var s=Vn(n);this.logger.log(3,"Char codes = "+s.join(",")),Qn(t,e,this.cmdHistory)}return n},e.parseBackgroundAttributes=function(t,e){var r;if(!((16===t||24===t)&&e>=32&&e<=47||(23===t||31===t)&&e>=45&&e<=47))return!1;var i={};16===t||24===t?(r=Math.floor((e-32)/2),i.background=Kn[r],e%2==1&&(i.background=i.background+"_semi")):45===e?i.background="transparent":(i.foreground="black",47===e&&(i.underline=!0));var n=t<=23?1:2;return this.channels[n].setBkgData(i),Qn(t,e,this.cmdHistory),!0},e.reset=function(){for(var t=0;tt)&&(this.startTime=t),this.endTime=e,this.screen=r,this.timelineController.createCaptionsTrack(this.trackName)},e.reset=function(){this.cueRanges=[],this.startTime=null},t}(),Zn=function(){if(null!=H&&H.VTTCue)return self.VTTCue;var t=["","lr","rl"],e=["start","middle","end","left","right"];function r(t,e){if("string"!=typeof e)return!1;if(!Array.isArray(t))return!1;var r=e.toLowerCase();return!!~t.indexOf(r)&&r}function i(t){return r(e,t)}function n(t){for(var e=arguments.length,r=new Array(e>1?e-1:0),i=1;i100)throw new Error("Position must be between 0 and 100.");E=t,this.hasBeenReset=!0}})),Object.defineProperty(o,"positionAlign",n({},l,{get:function(){return T},set:function(t){var e=i(t);if(!e)throw new SyntaxError("An invalid or illegal string was specified.");T=e,this.hasBeenReset=!0}})),Object.defineProperty(o,"size",n({},l,{get:function(){return S},set:function(t){if(t<0||t>100)throw new Error("Size must be between 0 and 100.");S=t,this.hasBeenReset=!0}})),Object.defineProperty(o,"align",n({},l,{get:function(){return L},set:function(t){var e=i(t);if(!e)throw new SyntaxError("An invalid or illegal string was specified.");L=e,this.hasBeenReset=!0}})),o.displayState=void 0}return a.prototype.getCueAsHTML=function(){return self.WebVTT.convertCueToDOMTree(self,this.text)},a}(),ta=function(){function t(){}return t.prototype.decode=function(t,e){if(!t)return"";if("string"!=typeof t)throw new Error("Error - expected string data.");return decodeURIComponent(encodeURIComponent(t))},t}();function ea(t){function e(t,e,r,i){return 3600*(0|t)+60*(0|e)+(0|r)+parseFloat(i||0)}var r=t.match(/^(?:(\d+):)?(\d{2}):(\d{2})(\.\d+)?/);return r?parseFloat(r[2])>59?e(r[2],r[3],0,r[4]):e(r[1],r[2],r[3],r[4]):null}var ra=function(){function t(){this.values=Object.create(null)}var e=t.prototype;return e.set=function(t,e){this.get(t)||""===e||(this.values[t]=e)},e.get=function(t,e,r){return r?this.has(t)?this.values[t]:e[r]:this.has(t)?this.values[t]:e},e.has=function(t){return t in this.values},e.alt=function(t,e,r){for(var i=0;i=0&&r<=100)return this.set(t,r),!0}return!1},t}();function ia(t,e,r,i){var n=i?t.split(i):[t];for(var a in n)if("string"==typeof n[a]){var s=n[a].split(r);2===s.length&&e(s[0],s[1])}}var na=new Zn(0,0,""),aa="middle"===na.align?"middle":"center";function sa(t,e,r){var i=t;function n(){var e=ea(t);if(null===e)throw new Error("Malformed timestamp: "+i);return t=t.replace(/^[^\sa-zA-Z-]+/,""),e}function a(){t=t.replace(/^\s+/,"")}if(a(),e.startTime=n(),a(),"--\x3e"!==t.slice(0,3))throw new Error("Malformed time stamp (time stamps must be separated by '--\x3e'): "+i);t=t.slice(3),a(),e.endTime=n(),a(),function(t,e){var i=new ra;ia(t,(function(t,e){var n;switch(t){case"region":for(var a=r.length-1;a>=0;a--)if(r[a].id===e){i.set(t,r[a].region);break}break;case"vertical":i.alt(t,e,["rl","lr"]);break;case"line":n=e.split(","),i.integer(t,n[0]),i.percent(t,n[0])&&i.set("snapToLines",!1),i.alt(t,n[0],["auto"]),2===n.length&&i.alt("lineAlign",n[1],["start",aa,"end"]);break;case"position":n=e.split(","),i.percent(t,n[0]),2===n.length&&i.alt("positionAlign",n[1],["start",aa,"end","line-left","line-right","auto"]);break;case"size":i.percent(t,e);break;case"align":i.alt(t,e,["start",aa,"end","left","right"])}}),/:/,/\s/),e.region=i.get("region",null),e.vertical=i.get("vertical","");var n=i.get("line","auto");"auto"===n&&-1===na.line&&(n=-1),e.line=n,e.lineAlign=i.get("lineAlign","start"),e.snapToLines=i.get("snapToLines",!0),e.size=i.get("size",100),e.align=i.get("align",aa);var a=i.get("position","auto");"auto"===a&&50===na.position&&(a="start"===e.align||"left"===e.align?0:"end"===e.align||"right"===e.align?100:50),e.position=a}(t,e)}function oa(t){return t.replace(//gi,"\n")}var la=function(){function t(){this.state="INITIAL",this.buffer="",this.decoder=new ta,this.regionList=[],this.cue=null,this.oncue=void 0,this.onparsingerror=void 0,this.onflush=void 0}var e=t.prototype;return e.parse=function(t){var e=this;function r(){var t=e.buffer,r=0;for(t=oa(t);r>>0).toString()};function ca(t,e,r){return da(t.toString())+da(e.toString())+da(r)}var fa="stpp.ttml.im1t",ga=/^(\d{2,}):(\d{2}):(\d{2}):(\d{2})\.?(\d+)?$/,va=/^(\d*(?:\.\d*)?)(h|m|s|ms|f|t)$/,ma={left:"start",center:"center",right:"end",start:"start",end:"end"};function pa(t,e,r,i){var n=Dt(new Uint8Array(t),["mdat"]);if(0!==n.length){var a,s,l,u=n.map((function(t){return mt(t)})),h=(a=e.baseTime,1,void 0===(s=e.timescale)&&(s=1),void 0===l&&(l=!1),Qi(a,1,1/s,l));try{u.forEach((function(t){return r(function(t,e){var r=(new DOMParser).parseFromString(t,"text/xml").getElementsByTagName("tt")[0];if(!r)throw new Error("Invalid ttml");var i={frameRate:30,subFrameRate:1,frameRateMultiplier:0,tickRate:0},n=Object.keys(i).reduce((function(t,e){return t[e]=r.getAttribute("ttp:"+e)||i[e],t}),{}),a="preserve"!==r.getAttribute("xml:space"),s=Ea(ya(r,"styling","style")),l=Ea(ya(r,"layout","region")),u=ya(r,"body","[begin]");return[].map.call(u,(function(t){var r=Ta(t,a);if(!r||!t.hasAttribute("begin"))return null;var i=Aa(t.getAttribute("begin"),n),u=Aa(t.getAttribute("dur"),n),h=Aa(t.getAttribute("end"),n);if(null===i)throw La(t);if(null===h){if(null===u)throw La(t);h=i+u}var d=new Zn(i-e,h-e,r);d.id=ca(d.startTime,d.endTime,d.text);var c=function(t,e,r){var i="http://www.w3.org/ns/ttml#styling",n=null,a=null!=t&&t.hasAttribute("style")?t.getAttribute("style"):null;return a&&r.hasOwnProperty(a)&&(n=r[a]),["displayAlign","textAlign","color","backgroundColor","fontSize","fontFamily"].reduce((function(r,a){var s=Sa(e,i,a)||Sa(t,i,a)||Sa(n,i,a);return s&&(r[a]=s),r}),{})}(l[t.getAttribute("region")],s[t.getAttribute("style")],s),f=c.textAlign;if(f){var g=ma[f];g&&(d.lineAlign=g),d.align=f}return o(d,c),d})).filter((function(t){return null!==t}))}(t,h))}))}catch(t){i(t)}}else i(new Error("Could not parse IMSC1 mdat"))}function ya(t,e,r){var i=t.getElementsByTagName(e)[0];return i?[].slice.call(i.querySelectorAll(r)):[]}function Ea(t){return t.reduce((function(t,e){var r=e.getAttribute("xml:id");return r&&(t[r]=e),t}),{})}function Ta(t,e){return[].slice.call(t.childNodes).reduce((function(t,r,i){var n;return"br"===r.nodeName&&i?t+"\n":null!=(n=r.childNodes)&&n.length?Ta(r,e):e?t+r.textContent.trim().replace(/\s+/g," "):t+r.textContent}),"")}function Sa(t,e,r){return t&&t.hasAttributeNS(e,r)?t.getAttributeNS(e,r):null}function La(t){return new Error("Could not parse ttml timestamp "+t)}function Aa(t,e){if(!t)return null;var r=ea(t);return null===r&&(ga.test(t)?r=function(t,e){var r=ga.exec(t),i=(0|r[4])+(0|r[5])/e.subFrameRate;return 3600*(0|r[1])+60*(0|r[2])+(0|r[3])+i/e.frameRate}(t,e):va.test(t)&&(r=function(t,e){var r=va.exec(t),i=Number(r[1]);switch(r[2]){case"h":return 3600*i;case"m":return 60*i;case"ms":return 1e3*i;case"f":return i/e.frameRate;case"t":return i/e.tickRate}return i}(t,e))),r}var Ra=function(){function t(t){this.hls=void 0,this.media=null,this.config=void 0,this.enabled=!0,this.Cues=void 0,this.textTracks=[],this.tracks=[],this.initPTS=[],this.unparsedVttFrags=[],this.captionsTracks={},this.nonNativeCaptionsTracks={},this.cea608Parser1=void 0,this.cea608Parser2=void 0,this.lastCc=-1,this.lastSn=-1,this.lastPartIndex=-1,this.prevCC=-1,this.vttCCs={ccOffset:0,presentationOffset:0,0:{start:0,prevCC:-1,new:!0}},this.captionsProperties=void 0,this.hls=t,this.config=t.config,this.Cues=t.config.cueHandler,this.captionsProperties={textTrack1:{label:this.config.captionsTextTrack1Label,languageCode:this.config.captionsTextTrack1LanguageCode},textTrack2:{label:this.config.captionsTextTrack2Label,languageCode:this.config.captionsTextTrack2LanguageCode},textTrack3:{label:this.config.captionsTextTrack3Label,languageCode:this.config.captionsTextTrack3LanguageCode},textTrack4:{label:this.config.captionsTextTrack4Label,languageCode:this.config.captionsTextTrack4LanguageCode}},t.on(E.MEDIA_ATTACHING,this.onMediaAttaching,this),t.on(E.MEDIA_DETACHING,this.onMediaDetaching,this),t.on(E.MANIFEST_LOADING,this.onManifestLoading,this),t.on(E.MANIFEST_LOADED,this.onManifestLoaded,this),t.on(E.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),t.on(E.FRAG_LOADING,this.onFragLoading,this),t.on(E.FRAG_LOADED,this.onFragLoaded,this),t.on(E.FRAG_PARSING_USERDATA,this.onFragParsingUserdata,this),t.on(E.FRAG_DECRYPTED,this.onFragDecrypted,this),t.on(E.INIT_PTS_FOUND,this.onInitPtsFound,this),t.on(E.SUBTITLE_TRACKS_CLEARED,this.onSubtitleTracksCleared,this),t.on(E.BUFFER_FLUSHING,this.onBufferFlushing,this)}var e=t.prototype;return e.destroy=function(){var t=this.hls;t.off(E.MEDIA_ATTACHING,this.onMediaAttaching,this),t.off(E.MEDIA_DETACHING,this.onMediaDetaching,this),t.off(E.MANIFEST_LOADING,this.onManifestLoading,this),t.off(E.MANIFEST_LOADED,this.onManifestLoaded,this),t.off(E.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),t.off(E.FRAG_LOADING,this.onFragLoading,this),t.off(E.FRAG_LOADED,this.onFragLoaded,this),t.off(E.FRAG_PARSING_USERDATA,this.onFragParsingUserdata,this),t.off(E.FRAG_DECRYPTED,this.onFragDecrypted,this),t.off(E.INIT_PTS_FOUND,this.onInitPtsFound,this),t.off(E.SUBTITLE_TRACKS_CLEARED,this.onSubtitleTracksCleared,this),t.off(E.BUFFER_FLUSHING,this.onBufferFlushing,this),this.hls=this.config=null,this.cea608Parser1=this.cea608Parser2=void 0},e.initCea608Parsers=function(){if(this.config.enableCEA708Captions&&(!this.cea608Parser1||!this.cea608Parser2)){var t=new $n(this,"textTrack1"),e=new $n(this,"textTrack2"),r=new $n(this,"textTrack3"),i=new $n(this,"textTrack4");this.cea608Parser1=new zn(1,t,e),this.cea608Parser2=new zn(3,r,i)}},e.addCues=function(t,e,r,i,n){for(var a,s,o,l,u=!1,h=n.length;h--;){var d=n[h],c=(a=d[0],s=d[1],o=e,l=r,Math.min(s,l)-Math.max(a,o));if(c>=0&&(d[0]=Math.min(d[0],e),d[1]=Math.max(d[1],r),u=!0,c/(r-e)>.5))return}if(u||n.push([e,r]),this.config.renderTextTracksNatively){var f=this.captionsTracks[t];this.Cues.newCue(f,e,r,i)}else{var g=this.Cues.newCue(null,e,r,i);this.hls.trigger(E.CUES_PARSED,{type:"captions",cues:g,track:t})}},e.onInitPtsFound=function(t,e){var r=this,i=e.frag,n=e.id,a=e.initPTS,s=e.timescale,o=this.unparsedVttFrags;"main"===n&&(this.initPTS[i.cc]={baseTime:a,timescale:s}),o.length&&(this.unparsedVttFrags=[],o.forEach((function(t){r.onFragLoaded(E.FRAG_LOADED,t)})))},e.getExistingTrack=function(t,e){var r=this.media;if(r)for(var i=0;i0&&c.push(t)},h.onparsingerror=function(t){u=t},h.onflush=function(){u?s(u):a(c)},d.forEach((function(t){if(y){if(ha(t,"X-TIMESTAMP-MAP=")){y=!1,t.slice(16).split(",").forEach((function(t){ha(t,"LOCAL:")?g=t.slice(6):ha(t,"MPEGTS:")&&(v=parseInt(t.slice(7)))}));try{p=function(t){var e=parseInt(t.slice(-3)),r=parseInt(t.slice(-6,-4)),i=parseInt(t.slice(-9,-7)),n=t.length>9?parseInt(t.substring(0,t.indexOf(":"))):0;if(!(m(e)&&m(r)&&m(i)&&m(n)))throw Error("Malformed X-TIMESTAMP-MAP: Local:"+t);return e+=1e3*r,(e+=6e4*i)+36e5*n}(g)/1e3}catch(t){u=t}return}""===t&&(y=!1)}h.parse(t+"\n")})),h.flush()}(null!=(e=i.initSegment)&&e.data?Ot(i.initSegment.data,new Uint8Array(n)):n,this.initPTS[i.cc],this.vttCCs,i.cc,i.start,(function(t){r._appendCues(t,i.level),l.trigger(E.SUBTITLE_FRAG_PROCESSED,{success:!0,frag:i})}),(function(e){var a="Missing initPTS for VTT MPEGTS"===e.message;a?s.push(t):r._fallbackToIMSC1(i,n),k.log("Failed to parse VTT cue: "+e),a&&o>i.cc||l.trigger(E.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:i,error:e})}))}else s.push(t)},e._fallbackToIMSC1=function(t,e){var r=this,i=this.tracks[t.level];i.textCodec||pa(e,this.initPTS[t.cc],(function(){i.textCodec=fa,r._parseIMSC1(t,e)}),(function(){i.textCodec="wvtt"}))},e._appendCues=function(t,e){var r=this.hls;if(this.config.renderTextTracksNatively){var i=this.textTracks[e];if(!i||"disabled"===i.mode)return;t.forEach((function(t){return Ce(i,t)}))}else{var n=this.tracks[e];if(!n)return;var a=n.default?"default":"subtitles"+e;r.trigger(E.CUES_PARSED,{type:"subtitles",cues:t,track:a})}},e.onFragDecrypted=function(t,e){e.frag.type===be&&this.onFragLoaded(E.FRAG_LOADED,e)},e.onSubtitleTracksCleared=function(){this.tracks=[],this.captionsTracks={}},e.onFragParsingUserdata=function(t,e){this.initCea608Parsers();var r=this.cea608Parser1,i=this.cea608Parser2;if(this.enabled&&r&&i){var n=e.frag,a=e.samples;if(n.type!==Ae||"NONE"!==this.closedCaptionsForLevel(n))for(var s=0;sthis.autoLevelCapping&&this.streamController&&this.streamController.nextLevelSwitch(),this.autoLevelCapping=e.autoLevelCapping}}},e.getMaxLevel=function(e){var r=this,i=this.hls.levels;if(!i.length)return-1;var n=i.filter((function(t,i){return r.isLevelAllowed(t)&&i<=e}));return this.clientRect=null,t.getMaxLevelByMediaSize(n,this.mediaWidth,this.mediaHeight)},e.startCapping=function(){this.timer||(this.autoLevelCapping=Number.POSITIVE_INFINITY,self.clearInterval(this.timer),this.timer=self.setInterval(this.detectPlayerSize.bind(this),1e3),this.detectPlayerSize())},e.stopCapping=function(){this.restrictedLevels=[],this.firstLevel=-1,this.autoLevelCapping=Number.POSITIVE_INFINITY,this.timer&&(self.clearInterval(this.timer),this.timer=void 0)},e.getDimensions=function(){if(this.clientRect)return this.clientRect;var t=this.media,e={width:0,height:0};if(t){var r=t.getBoundingClientRect();e.width=r.width,e.height=r.height,e.width||e.height||(e.width=r.right-r.left||t.width||0,e.height=r.bottom-r.top||t.height||0)}return this.clientRect=e,e},e.isLevelAllowed=function(t){return!this.restrictedLevels.some((function(e){return t.bitrate===e.bitrate&&t.width===e.width&&t.height===e.height}))},t.getMaxLevelByMediaSize=function(t,e,r){if(null==t||!t.length)return-1;for(var i,n,a=t.length-1,s=Math.max(e,r),o=0;o=s||l.height>=s)&&(i=l,!(n=t[o+1])||i.width!==n.width||i.height!==n.height)){a=o;break}}return a},s(t,[{key:"mediaWidth",get:function(){return this.getDimensions().width*this.contentScaleFactor}},{key:"mediaHeight",get:function(){return this.getDimensions().height*this.contentScaleFactor}},{key:"contentScaleFactor",get:function(){var t=1;if(!this.hls.config.ignoreDevicePixelRatio)try{t=self.devicePixelRatio}catch(t){}return t}}]),t}(),Ia=function(){function t(t){this.hls=void 0,this.isVideoPlaybackQualityAvailable=!1,this.timer=void 0,this.media=null,this.lastTime=void 0,this.lastDroppedFrames=0,this.lastDecodedFrames=0,this.streamController=void 0,this.hls=t,this.registerListeners()}var e=t.prototype;return e.setStreamController=function(t){this.streamController=t},e.registerListeners=function(){this.hls.on(E.MEDIA_ATTACHING,this.onMediaAttaching,this)},e.unregisterListeners=function(){this.hls.off(E.MEDIA_ATTACHING,this.onMediaAttaching,this)},e.destroy=function(){this.timer&&clearInterval(this.timer),this.unregisterListeners(),this.isVideoPlaybackQualityAvailable=!1,this.media=null},e.onMediaAttaching=function(t,e){var r=this.hls.config;if(r.capLevelOnFPSDrop){var i=e.media instanceof self.HTMLVideoElement?e.media:null;this.media=i,i&&"function"==typeof i.getVideoPlaybackQuality&&(this.isVideoPlaybackQualityAvailable=!0),self.clearInterval(this.timer),this.timer=self.setInterval(this.checkFPSInterval.bind(this),r.fpsDroppedMonitoringPeriod)}},e.checkFPS=function(t,e,r){var i=performance.now();if(e){if(this.lastTime){var n=i-this.lastTime,a=r-this.lastDroppedFrames,s=e-this.lastDecodedFrames,o=1e3*a/n,l=this.hls;if(l.trigger(E.FPS_DROP,{currentDropped:a,currentDecoded:s,totalDroppedFrames:r}),o>0&&a>l.config.fpsDroppedMonitoringThreshold*s){var u=l.currentLevel;k.warn("drop FPS ratio greater than max allowed value for currentLevel: "+u),u>0&&(-1===l.autoLevelCapping||l.autoLevelCapping>=u)&&(u-=1,l.trigger(E.FPS_DROP_LEVEL_CAPPING,{level:u,droppedLevel:l.currentLevel}),l.autoLevelCapping=u,this.streamController.nextLevelSwitch())}}this.lastTime=i,this.lastDroppedFrames=r,this.lastDecodedFrames=e}},e.checkFPSInterval=function(){var t=this.media;if(t)if(this.isVideoPlaybackQualityAvailable){var e=t.getVideoPlaybackQuality();this.checkFPS(t,e.totalVideoFrames,e.droppedVideoFrames)}else this.checkFPS(t,t.webkitDecodedFrameCount,t.webkitDroppedFrameCount)},t}(),wa="[eme]",Ca=function(){function t(e){this.hls=void 0,this.config=void 0,this.media=null,this.keyFormatPromise=null,this.keySystemAccessPromises={},this._requestLicenseFailureCount=0,this.mediaKeySessions=[],this.keyIdToKeySessionPromise={},this.setMediaKeysQueue=t.CDMCleanupPromise?[t.CDMCleanupPromise]:[],this.onMediaEncrypted=this._onMediaEncrypted.bind(this),this.onWaitingForKey=this._onWaitingForKey.bind(this),this.debug=k.debug.bind(k,wa),this.log=k.log.bind(k,wa),this.warn=k.warn.bind(k,wa),this.error=k.error.bind(k,wa),this.hls=e,this.config=e.config,this.registerListeners()}var e=t.prototype;return e.destroy=function(){this.unregisterListeners(),this.onMediaDetached();var t=this.config;t.requestMediaKeySystemAccessFunc=null,t.licenseXhrSetup=t.licenseResponseCallback=void 0,t.drmSystems=t.drmSystemOptions={},this.hls=this.onMediaEncrypted=this.onWaitingForKey=this.keyIdToKeySessionPromise=null,this.config=null},e.registerListeners=function(){this.hls.on(E.MEDIA_ATTACHED,this.onMediaAttached,this),this.hls.on(E.MEDIA_DETACHED,this.onMediaDetached,this),this.hls.on(E.MANIFEST_LOADING,this.onManifestLoading,this),this.hls.on(E.MANIFEST_LOADED,this.onManifestLoaded,this)},e.unregisterListeners=function(){this.hls.off(E.MEDIA_ATTACHED,this.onMediaAttached,this),this.hls.off(E.MEDIA_DETACHED,this.onMediaDetached,this),this.hls.off(E.MANIFEST_LOADING,this.onManifestLoading,this),this.hls.off(E.MANIFEST_LOADED,this.onManifestLoaded,this)},e.getLicenseServerUrl=function(t){var e=this.config,r=e.drmSystems,i=e.widevineLicenseUrl,n=r[t];if(n)return n.licenseUrl;if(t===V.WIDEVINE&&i)return i;throw new Error('no license server URL configured for key-system "'+t+'"')},e.getServerCertificateUrl=function(t){var e=this.config.drmSystems[t];if(e)return e.serverCertificateUrl;this.log('No Server Certificate in config.drmSystems["'+t+'"]')},e.attemptKeySystemAccess=function(t){var e=this,r=this.hls.levels,i=function(t,e,r){return!!t&&r.indexOf(t)===e},n=r.map((function(t){return t.audioCodec})).filter(i),a=r.map((function(t){return t.videoCodec})).filter(i);return n.length+a.length===0&&a.push("avc1.42e01e"),new Promise((function(r,i){!function t(s){var o=s.shift();e.getMediaKeysPromise(o,n,a).then((function(t){return r({keySystem:o,mediaKeys:t})})).catch((function(e){s.length?t(s):i(e instanceof Ma?e:new Ma({type:T.KEY_SYSTEM_ERROR,details:S.KEY_SYSTEM_NO_ACCESS,error:e,fatal:!0},e.message))}))}(t)}))},e.requestMediaKeySystemAccess=function(t,e){var r=this.config.requestMediaKeySystemAccessFunc;if("function"!=typeof r){var i="Configured requestMediaKeySystemAccess is not a function "+r;return null===Z&&"http:"===self.location.protocol&&(i="navigator.requestMediaKeySystemAccess is not available over insecure protocol "+location.protocol),Promise.reject(new Error(i))}return r(t,e)},e.getMediaKeysPromise=function(t,e,r){var i=this,n=function(t,e,r,i){var n;switch(t){case V.FAIRPLAY:n=["cenc","sinf"];break;case V.WIDEVINE:case V.PLAYREADY:n=["cenc"];break;case V.CLEARKEY:n=["cenc","keyids"];break;default:throw new Error("Unknown key-system: "+t)}return function(t,e,r,i){return[{initDataTypes:t,persistentState:i.persistentState||"optional",distinctiveIdentifier:i.distinctiveIdentifier||"optional",sessionTypes:i.sessionTypes||[i.sessionType||"temporary"],audioCapabilities:e.map((function(t){return{contentType:'audio/mp4; codecs="'+t+'"',robustness:i.audioRobustness||"",encryptionScheme:i.audioEncryptionScheme||null}})),videoCapabilities:r.map((function(t){return{contentType:'video/mp4; codecs="'+t+'"',robustness:i.videoRobustness||"",encryptionScheme:i.videoEncryptionScheme||null}}))}]}(n,e,r,i)}(t,e,r,this.config.drmSystemOptions),a=this.keySystemAccessPromises[t],s=null==a?void 0:a.keySystemAccess;if(!s){this.log('Requesting encrypted media "'+t+'" key-system access with config: '+JSON.stringify(n)),s=this.requestMediaKeySystemAccess(t,n);var o=this.keySystemAccessPromises[t]={keySystemAccess:s};return s.catch((function(e){i.log('Failed to obtain access to key-system "'+t+'": '+e)})),s.then((function(e){i.log('Access for key-system "'+e.keySystem+'" obtained');var r=i.fetchServerCertificate(t);return i.log('Create media-keys for "'+t+'"'),o.mediaKeys=e.createMediaKeys().then((function(e){return i.log('Media-keys created for "'+t+'"'),r.then((function(r){return r?i.setMediaKeysServerCertificate(e,t,r):e}))})),o.mediaKeys.catch((function(e){i.error('Failed to create media-keys for "'+t+'"}: '+e)})),o.mediaKeys}))}return s.then((function(){return a.mediaKeys}))},e.createMediaKeySessionContext=function(t){var e=t.decryptdata,r=t.keySystem,i=t.mediaKeys;this.log('Creating key-system session "'+r+'" keyId: '+pt(e.keyId||[]));var n=i.createSession(),a={decryptdata:e,keySystem:r,mediaKeys:i,mediaKeysSession:n,keyStatus:"status-pending"};return this.mediaKeySessions.push(a),a},e.renewKeySession=function(t){var e=t.decryptdata;if(e.pssh){var r=this.createMediaKeySessionContext(t),i=this.getKeyIdString(e);this.keyIdToKeySessionPromise[i]=this.generateRequestWithPreferredKeySession(r,"cenc",e.pssh,"expired")}else this.warn("Could not renew expired session. Missing pssh initData.");this.removeSession(t)},e.getKeyIdString=function(t){if(!t)throw new Error("Could not read keyId of undefined decryptdata");if(null===t.keyId)throw new Error("keyId is null");return pt(t.keyId)},e.updateKeySession=function(t,e){var r,i=t.mediaKeysSession;return this.log('Updating key-session "'+i.sessionId+'" for keyID '+pt((null==(r=t.decryptdata)?void 0:r.keyId)||[])+"\n } (data length: "+(e?e.byteLength:e)+")"),i.update(e)},e.selectKeySystemFormat=function(t){var e=Object.keys(t.levelkeys||{});return this.keyFormatPromise||(this.log("Selecting key-system from fragment (sn: "+t.sn+" "+t.type+": "+t.level+") key formats "+e.join(", ")),this.keyFormatPromise=this.getKeyFormatPromise(e)),this.keyFormatPromise},e.getKeyFormatPromise=function(t){var e=this;return new Promise((function(r,i){var n=J(e.config),a=t.map(X).filter((function(t){return!!t&&-1!==n.indexOf(t)}));return e.getKeySystemSelectionPromise(a).then((function(t){var e=t.keySystem,n=Q(e);n?r(n):i(new Error('Unable to find format for key-system "'+e+'"'))})).catch(i)}))},e.loadKey=function(t){var e=this,r=t.keyInfo.decryptdata,i=this.getKeyIdString(r),n="(keyId: "+i+' format: "'+r.keyFormat+'" method: '+r.method+" uri: "+r.uri+")";this.log("Starting session for key "+n);var a=this.keyIdToKeySessionPromise[i];return a||(a=this.keyIdToKeySessionPromise[i]=this.getKeySystemForKeyPromise(r).then((function(i){var a=i.keySystem,s=i.mediaKeys;return e.throwIfDestroyed(),e.log("Handle encrypted media sn: "+t.frag.sn+" "+t.frag.type+": "+t.frag.level+" using key "+n),e.attemptSetMediaKeys(a,s).then((function(){e.throwIfDestroyed();var t=e.createMediaKeySessionContext({keySystem:a,mediaKeys:s,decryptdata:r});return e.generateRequestWithPreferredKeySession(t,"cenc",r.pssh,"playlist-key")}))}))).catch((function(t){return e.handleError(t)})),a},e.throwIfDestroyed=function(t){if(!this.hls)throw new Error("invalid state")},e.handleError=function(t){this.hls&&(this.error(t.message),t instanceof Ma?this.hls.trigger(E.ERROR,t.data):this.hls.trigger(E.ERROR,{type:T.KEY_SYSTEM_ERROR,details:S.KEY_SYSTEM_NO_KEYS,error:t,fatal:!0}))},e.getKeySystemForKeyPromise=function(t){var e=this.getKeyIdString(t),r=this.keyIdToKeySessionPromise[e];if(!r){var i=X(t.keyFormat),n=i?[i]:J(this.config);return this.attemptKeySystemAccess(n)}return r},e.getKeySystemSelectionPromise=function(t){if(t.length||(t=J(this.config)),0===t.length)throw new Ma({type:T.KEY_SYSTEM_ERROR,details:S.KEY_SYSTEM_NO_CONFIGURED_LICENSE,fatal:!0},"Missing key-system license configuration options "+JSON.stringify({drmSystems:this.config.drmSystems}));return this.attemptKeySystemAccess(t)},e._onMediaEncrypted=function(t){var e=this,r=t.initDataType,i=t.initData;if(this.debug('"'+t.type+'" event: init data type: "'+r+'"'),null!==i){var n,a;if("sinf"===r&&this.config.drmSystems[V.FAIRPLAY]){var s=St(new Uint8Array(i));try{var o=G(JSON.parse(s).sinf),l=Ft(new Uint8Array(o));if(!l)return;n=l.subarray(8,24),a=V.FAIRPLAY}catch(t){return void this.warn('Failed to parse sinf "encrypted" event message initData')}}else{var u=function(t){if(!(t instanceof ArrayBuffer)||t.byteLength<32)return null;var e={version:0,systemId:"",kids:null,data:null},r=new DataView(t),i=r.getUint32(0);if(t.byteLength!==i&&i>44)return null;if(1886614376!==r.getUint32(4))return null;if(e.version=r.getUint32(8)>>>24,e.version>1)return null;e.systemId=pt(new Uint8Array(t,12,16));var n=r.getUint32(28);if(0===e.version){if(i-320)for(var a,s=0,o=n.length;s in key message");return K(atob(f))},e.setupLicenseXHR=function(t,e,r,i){var n=this,a=this.config.licenseXhrSetup;return a?Promise.resolve().then((function(){if(!r.decryptdata)throw new Error("Key removed");return a.call(n.hls,t,e,r,i)})).catch((function(s){if(!r.decryptdata)throw s;return t.open("POST",e,!0),a.call(n.hls,t,e,r,i)})).then((function(r){return t.readyState||t.open("POST",e,!0),{xhr:t,licenseChallenge:r||i}})):(t.open("POST",e,!0),Promise.resolve({xhr:t,licenseChallenge:i}))},e.requestLicense=function(t,e){var r=this,i=this.config.keyLoadPolicy.default;return new Promise((function(n,a){var s=r.getLicenseServerUrl(t.keySystem);r.log("Sending license request to URL: "+s);var o=new XMLHttpRequest;o.responseType="arraybuffer",o.onreadystatechange=function(){if(!r.hls||!t.mediaKeysSession)return a(new Error("invalid state"));if(4===o.readyState)if(200===o.status){r._requestLicenseFailureCount=0;var l=o.response;r.log("License received "+(l instanceof ArrayBuffer?l.byteLength:l));var u=r.config.licenseResponseCallback;if(u)try{l=u.call(r.hls,o,s,t)}catch(t){r.error(t)}n(l)}else{var h=i.errorRetry,d=h?h.maxNumRetry:0;if(r._requestLicenseFailureCount++,r._requestLicenseFailureCount>d||o.status>=400&&o.status<500)a(new Ma({type:T.KEY_SYSTEM_ERROR,details:S.KEY_SYSTEM_LICENSE_REQUEST_FAILED,fatal:!0,networkDetails:o,response:{url:s,data:void 0,code:o.status,text:o.statusText}},"License Request XHR failed ("+s+"). Status: "+o.status+" ("+o.statusText+")"));else{var c=d-r._requestLicenseFailureCount+1;r.warn("Retrying license request, "+c+" attempts left"),r.requestLicense(t,e).then(n,a)}}},t.licenseXhr&&t.licenseXhr.readyState!==XMLHttpRequest.DONE&&t.licenseXhr.abort(),t.licenseXhr=o,r.setupLicenseXHR(o,s,t,e).then((function(e){var i=e.xhr,n=e.licenseChallenge;t.keySystem==V.PLAYREADY&&(n=r.unpackPlayReadyKeyMessage(i,n)),i.send(n)}))}))},e.onMediaAttached=function(t,e){if(this.config.emeEnabled){var r=e.media;this.media=r,r.addEventListener("encrypted",this.onMediaEncrypted),r.addEventListener("waitingforkey",this.onWaitingForKey)}},e.onMediaDetached=function(){var e=this,r=this.media,i=this.mediaKeySessions;r&&(r.removeEventListener("encrypted",this.onMediaEncrypted),r.removeEventListener("waitingforkey",this.onWaitingForKey),this.media=null),this._requestLicenseFailureCount=0,this.setMediaKeysQueue=[],this.mediaKeySessions=[],this.keyIdToKeySessionPromise={},Ht.clearKeyUriToKeyIdMap();var n=i.length;t.CDMCleanupPromise=Promise.all(i.map((function(t){return e.removeSession(t)})).concat(null==r?void 0:r.setMediaKeys(null).catch((function(t){e.log("Could not clear media keys: "+t)})))).then((function(){n&&(e.log("finished closing key sessions and clearing media keys"),i.length=0)})).catch((function(t){e.log("Could not close sessions and clear media keys: "+t)}))},e.onManifestLoading=function(){this.keyFormatPromise=null},e.onManifestLoaded=function(t,e){var r=e.sessionKeys;if(r&&this.config.emeEnabled&&!this.keyFormatPromise){var i=r.reduce((function(t,e){return-1===t.indexOf(e.keyFormat)&&t.push(e.keyFormat),t}),[]);this.log("Selecting key-system from session-keys "+i.join(", ")),this.keyFormatPromise=this.getKeyFormatPromise(i)}},e.removeSession=function(t){var e=this,r=t.mediaKeysSession,i=t.licenseXhr;if(r){this.log("Remove licenses and keys and close session "+r.sessionId),t._onmessage&&(r.removeEventListener("message",t._onmessage),t._onmessage=void 0),t._onkeystatuseschange&&(r.removeEventListener("keystatuseschange",t._onkeystatuseschange),t._onkeystatuseschange=void 0),i&&i.readyState!==XMLHttpRequest.DONE&&i.abort(),t.mediaKeysSession=t.decryptdata=t.licenseXhr=void 0;var n=this.mediaKeySessions.indexOf(t);return n>-1&&this.mediaKeySessions.splice(n,1),r.remove().catch((function(t){e.log("Could not remove session: "+t)})).then((function(){return r.close()})).catch((function(t){e.log("Could not close session: "+t)}))}},t}();Ca.CDMCleanupPromise=void 0;var _a,xa,Pa,Fa,Ma=function(t){function e(e,r){var i;return(i=t.call(this,r)||this).data=void 0,e.error||(e.error=new Error(r)),i.data=e,e.err=e.error,i}return l(e,t),e}(c(Error));!function(t){t.MANIFEST="m",t.AUDIO="a",t.VIDEO="v",t.MUXED="av",t.INIT="i",t.CAPTION="c",t.TIMED_TEXT="tt",t.KEY="k",t.OTHER="o"}(_a||(_a={})),function(t){t.DASH="d",t.HLS="h",t.SMOOTH="s",t.OTHER="o"}(xa||(xa={})),function(t){t.OBJECT="CMCD-Object",t.REQUEST="CMCD-Request",t.SESSION="CMCD-Session",t.STATUS="CMCD-Status"}(Pa||(Pa={}));var Oa=((Fa={})[Pa.OBJECT]=["br","d","ot","tb"],Fa[Pa.REQUEST]=["bl","dl","mtp","nor","nrr","su"],Fa[Pa.SESSION]=["cid","pr","sf","sid","st","v"],Fa[Pa.STATUS]=["bs","rtp"],Fa),Na=function t(e,r){this.value=void 0,this.params=void 0,Array.isArray(e)&&(e=e.map((function(e){return e instanceof t?e:new t(e)}))),this.value=e,this.params=r},Ua=function(t){this.description=void 0,this.description=t},Ba="Dict";var Ga="Bare Item",Ka="Boolean",Ha="Byte Sequence",Va="Decimal",Ya="Integer",Wa=/[\x00-\x1f\x7f]+/,ja="Token",qa="Key";function Xa(t,e,r){return function(t,e,r,i){return new Error("failed to "+t+' "'+(n=e,(Array.isArray(n)?JSON.stringify(n):n instanceof Map?"Map{}":n instanceof Set?"Set{}":"object"==typeof n?JSON.stringify(n):String(n))+'" as ')+r,{cause:i});var n}("serialize",t,e,r)}function za(t){if(function(t){return t<-999999999999999||99999999999999912)throw Xa(t,Va);var r=e.toString();return r.includes(".")?r:r+".0"}var $a="String";function Za(t){var e,r=(e=t).description||e.toString().slice(7,-1);if(!1===/^([a-zA-Z*])([!#$%&'*+\-.^_`|~\w:/]*)$/.test(r))throw Xa(r,ja);return r}function ts(t){switch(typeof t){case"number":if(!m(t))throw Xa(t,Ga);return Number.isInteger(t)?za(t):Ja(t);case"string":return function(t){if(Wa.test(t))throw Xa(t,$a);return'"'+t.replace(/\\/g,"\\\\").replace(/"/g,'\\"')+'"'}(t);case"symbol":return Za(t);case"boolean":return function(t){if("boolean"!=typeof t)throw Xa(t,Ka);return t?"?1":"?0"}(t);case"object":if(t instanceof Date)return function(t){return"@"+za(t.getTime()/1e3)}(t);if(t instanceof Uint8Array)return function(t){if(!1===ArrayBuffer.isView(t))throw Xa(t,Ha);return":"+(e=t,btoa(String.fromCharCode.apply(String,e))+":");var e}(t);if(t instanceof Ua)return Za(t);default:throw Xa(t,Ga)}}function es(t){if(!1===/^[a-z*][a-z0-9\-_.*]*$/.test(t))throw Xa(t,qa);return t}function rs(t){return null==t?"":Object.entries(t).map((function(t){var e=t[0],r=t[1];return!0===r?";"+es(e):";"+es(e)+"="+ts(r)})).join("")}function is(t){return t instanceof Na?""+ts(t.value)+rs(t.params):ts(t)}var ns=function(t){return"ot"===t||"sf"===t||"st"===t},as=function(t){return"number"==typeof t?m(t):null!=t&&""!==t&&!1!==t},ss=function(t){return Math.round(t)},os=function(t){return 100*ss(t/100)},ls={br:ss,d:ss,bl:os,dl:os,mtp:os,nor:function(t,e){return null!=e&&e.baseUrl&&(t=function(t,e){var r=new URL(t),i=new URL(e);if(r.origin!==i.origin)return t;for(var n=r.pathname.split("/").slice(1),a=i.pathname.split("/").slice(1,-1);n[0]===a[0];)n.shift(),a.shift();for(;a.length;)a.shift(),n.unshift("..");return n.join("/")}(t,e.baseUrl)),encodeURIComponent(t)},rtp:os,tb:ss};function us(t,e){return void 0===e&&(e={}),t?function(t,e){return function(t,e){var r;if(void 0===e&&(e={whitespace:!0}),"object"!=typeof t)throw Xa(t,Ba);var i=t instanceof Map?t.entries():Object.entries(t),n=null!=(r=e)&&r.whitespace?" ":"";return Array.from(i).map((function(t){var e=t[0],r=t[1];r instanceof Na==0&&(r=new Na(r));var i,n=es(e);return!0===r.value?n+=rs(r.params):(n+="=",Array.isArray(r.value)?n+="("+(i=r).value.map(is).join(" ")+")"+rs(i.params):n+=is(r)),n})).join(","+n)}(t,e)}(function(t,e){var r={};if(null==t||"object"!=typeof t)return r;var i=Object.keys(t).sort(),n=o({},ls,null==e?void 0:e.formatters),a=null==e?void 0:e.filter;return i.forEach((function(i){if(null==a||!a(i)){var s=t[i],o=n[i];o&&(s=o(s,e)),"v"===i&&1===s||"pr"==i&&1===s||as(s)&&(ns(i)&&"string"==typeof s&&(s=new Ua(s)),r[i]=s)}})),r}(t,e),o({whitespace:!1},e)):""}var hs=/CMCD=[^&#]+/;var ds=function(){function t(t){var e=this;this.hls=void 0,this.config=void 0,this.media=void 0,this.sid=void 0,this.cid=void 0,this.useHeaders=!1,this.includeKeys=void 0,this.initialized=!1,this.starved=!1,this.buffering=!0,this.audioBuffer=void 0,this.videoBuffer=void 0,this.onWaiting=function(){e.initialized&&(e.starved=!0),e.buffering=!0},this.onPlaying=function(){e.initialized||(e.initialized=!0),e.buffering=!1},this.applyPlaylistData=function(t){try{e.apply(t,{ot:_a.MANIFEST,su:!e.initialized})}catch(t){k.warn("Could not generate manifest CMCD data.",t)}},this.applyFragmentData=function(t){try{var r=t.frag,i=e.hls.levels[r.level],n=e.getObjectType(r),a={d:1e3*r.duration,ot:n};n!==_a.VIDEO&&n!==_a.AUDIO&&n!=_a.MUXED||(a.br=i.bitrate/1e3,a.tb=e.getTopBandwidth(n)/1e3,a.bl=e.getBufferLength(n)),e.apply(t,a)}catch(t){k.warn("Could not generate segment CMCD data.",t)}},this.hls=t;var r=this.config=t.config,i=r.cmcd;null!=i&&(r.pLoader=this.createPlaylistLoader(),r.fLoader=this.createFragmentLoader(),this.sid=i.sessionId||function(){try{return crypto.randomUUID()}catch(i){try{var t=URL.createObjectURL(new Blob),e=t.toString();return URL.revokeObjectURL(t),e.slice(e.lastIndexOf("/")+1)}catch(t){var r=(new Date).getTime();return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(t){var e=(r+16*Math.random())%16|0;return r=Math.floor(r/16),("x"==t?e:3&e|8).toString(16)}))}}}(),this.cid=i.contentId,this.useHeaders=!0===i.useHeaders,this.includeKeys=i.includeKeys,this.registerListeners())}var e=t.prototype;return e.registerListeners=function(){var t=this.hls;t.on(E.MEDIA_ATTACHED,this.onMediaAttached,this),t.on(E.MEDIA_DETACHED,this.onMediaDetached,this),t.on(E.BUFFER_CREATED,this.onBufferCreated,this)},e.unregisterListeners=function(){var t=this.hls;t.off(E.MEDIA_ATTACHED,this.onMediaAttached,this),t.off(E.MEDIA_DETACHED,this.onMediaDetached,this),t.off(E.BUFFER_CREATED,this.onBufferCreated,this)},e.destroy=function(){this.unregisterListeners(),this.onMediaDetached(),this.hls=this.config=this.audioBuffer=this.videoBuffer=null,this.onWaiting=this.onPlaying=null},e.onMediaAttached=function(t,e){this.media=e.media,this.media.addEventListener("waiting",this.onWaiting),this.media.addEventListener("playing",this.onPlaying)},e.onMediaDetached=function(){this.media&&(this.media.removeEventListener("waiting",this.onWaiting),this.media.removeEventListener("playing",this.onPlaying),this.media=null)},e.onBufferCreated=function(t,e){var r,i;this.audioBuffer=null==(r=e.tracks.audio)?void 0:r.buffer,this.videoBuffer=null==(i=e.tracks.video)?void 0:i.buffer},e.createData=function(){var t;return{v:1,sf:xa.HLS,sid:this.sid,cid:this.cid,pr:null==(t=this.media)?void 0:t.playbackRate,mtp:this.hls.bandwidthEstimate/1e3}},e.apply=function(t,e){void 0===e&&(e={}),o(e,this.createData());var r=e.ot===_a.INIT||e.ot===_a.VIDEO||e.ot===_a.MUXED;this.starved&&r&&(e.bs=!0,e.su=!0,this.starved=!1),null==e.su&&(e.su=this.buffering);var i=this.includeKeys;i&&(e=Object.keys(e).reduce((function(t,r){return i.includes(r)&&(t[r]=e[r]),t}),{})),this.useHeaders?(t.headers||(t.headers={}),function(t,e,r){o(t,function(t,e){var r;if(void 0===e&&(e={}),!t)return{};var i=Object.entries(t),n=Object.entries(Oa).concat(Object.entries((null==(r=e)?void 0:r.customHeaderMap)||{})),a=i.reduce((function(t,e){var r,i=e[0],a=e[1],s=(null==(r=n.find((function(t){return t[1].includes(i)})))?void 0:r[0])||Pa.REQUEST;return null!=t[s]||(t[s]={}),t[s][i]=a,t}),{});return Object.entries(a).reduce((function(t,r){var i=r[0],n=r[1];return t[i]=us(n,e),t}),{})}(e,r))}(t.headers,e)):t.url=function(t,e,r){var i=function(t,e){if(void 0===e&&(e={}),!t)return"";var r=us(t,e);return"CMCD="+encodeURIComponent(r)}(e,r);if(!i)return t;if(hs.test(t))return t.replace(hs,i);var n=t.includes("?")?"&":"?";return""+t+n+i}(t.url,e)},e.getObjectType=function(t){var e=t.type;return"subtitle"===e?_a.TIMED_TEXT:"initSegment"===t.sn?_a.INIT:"audio"===e?_a.AUDIO:"main"===e?this.hls.audioTracks.length?_a.VIDEO:_a.MUXED:void 0},e.getTopBandwidth=function(t){var e,r=0,i=this.hls;if(t===_a.AUDIO)e=i.audioTracks;else{var n=i.maxAutoLevel,a=n>-1?n+1:i.levels.length;e=i.levels.slice(0,a)}for(var s,o=function(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(r)return(r=r.call(t)).next.bind(r);if(Array.isArray(t)||(r=function(t,e){if(t){if("string"==typeof t)return f(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?f(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var i=0;return function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(e);!(s=o()).done;){var l=s.value;l.bitrate>r&&(r=l.bitrate)}return r>0?r:NaN},e.getBufferLength=function(t){var e=this.hls.media,r=t===_a.AUDIO?this.audioBuffer:this.videoBuffer;return r&&e?1e3*Pr.bufferInfo(r,e.currentTime,this.config.maxBufferHole).len:NaN},e.createPlaylistLoader=function(){var t=this.config.pLoader,e=this.applyPlaylistData,r=t||this.config.loader;return function(){function t(t){this.loader=void 0,this.loader=new r(t)}var i=t.prototype;return i.destroy=function(){this.loader.destroy()},i.abort=function(){this.loader.abort()},i.load=function(t,r,i){e(t),this.loader.load(t,r,i)},s(t,[{key:"stats",get:function(){return this.loader.stats}},{key:"context",get:function(){return this.loader.context}}]),t}()},e.createFragmentLoader=function(){var t=this.config.fLoader,e=this.applyFragmentData,r=t||this.config.loader;return function(){function t(t){this.loader=void 0,this.loader=new r(t)}var i=t.prototype;return i.destroy=function(){this.loader.destroy()},i.abort=function(){this.loader.abort()},i.load=function(t,r,i){e(t),this.loader.load(t,r,i)},s(t,[{key:"stats",get:function(){return this.loader.stats}},{key:"context",get:function(){return this.loader.context}}]),t}()},t}(),cs=function(){function t(t){this.hls=void 0,this.log=void 0,this.loader=null,this.uri=null,this.pathwayId=".",this.pathwayPriority=null,this.timeToLoad=300,this.reloadTimer=-1,this.updated=0,this.started=!1,this.enabled=!0,this.levels=null,this.audioTracks=null,this.subtitleTracks=null,this.penalizedPathways={},this.hls=t,this.log=k.log.bind(k,"[content-steering]:"),this.registerListeners()}var e=t.prototype;return e.registerListeners=function(){var t=this.hls;t.on(E.MANIFEST_LOADING,this.onManifestLoading,this),t.on(E.MANIFEST_LOADED,this.onManifestLoaded,this),t.on(E.MANIFEST_PARSED,this.onManifestParsed,this),t.on(E.ERROR,this.onError,this)},e.unregisterListeners=function(){var t=this.hls;t&&(t.off(E.MANIFEST_LOADING,this.onManifestLoading,this),t.off(E.MANIFEST_LOADED,this.onManifestLoaded,this),t.off(E.MANIFEST_PARSED,this.onManifestParsed,this),t.off(E.ERROR,this.onError,this))},e.startLoad=function(){if(this.started=!0,this.clearTimeout(),this.enabled&&this.uri){if(this.updated){var t=1e3*this.timeToLoad-(performance.now()-this.updated);if(t>0)return void this.scheduleRefresh(this.uri,t)}this.loadSteeringManifest(this.uri)}},e.stopLoad=function(){this.started=!1,this.loader&&(this.loader.destroy(),this.loader=null),this.clearTimeout()},e.clearTimeout=function(){-1!==this.reloadTimer&&(self.clearTimeout(this.reloadTimer),this.reloadTimer=-1)},e.destroy=function(){this.unregisterListeners(),this.stopLoad(),this.hls=null,this.levels=this.audioTracks=this.subtitleTracks=null},e.removeLevel=function(t){var e=this.levels;e&&(this.levels=e.filter((function(e){return e!==t})))},e.onManifestLoading=function(){this.stopLoad(),this.enabled=!0,this.timeToLoad=300,this.updated=0,this.uri=null,this.pathwayId=".",this.levels=this.audioTracks=this.subtitleTracks=null},e.onManifestLoaded=function(t,e){var r=e.contentSteering;null!==r&&(this.pathwayId=r.pathwayId,this.uri=r.uri,this.started&&this.startLoad())},e.onManifestParsed=function(t,e){this.audioTracks=e.audioTracks,this.subtitleTracks=e.subtitleTracks},e.onError=function(t,e){var r=e.errorAction;if(2===(null==r?void 0:r.action)&&1===r.flags){var i=this.levels,n=this.pathwayPriority,a=this.pathwayId;if(e.context){var s=e.context,o=s.groupId,l=s.pathwayId,u=s.type;o&&i?a=this.getPathwayForGroupId(o,u,a):l&&(a=l)}a in this.penalizedPathways||(this.penalizedPathways[a]=performance.now()),!n&&i&&(n=i.reduce((function(t,e){return-1===t.indexOf(e.pathwayId)&&t.push(e.pathwayId),t}),[])),n&&n.length>1&&(this.updatePathwayPriority(n),r.resolved=this.pathwayId!==a),r.resolved||k.warn("Could not resolve "+e.details+' ("'+e.error.message+'") with content-steering for Pathway: '+a+" levels: "+(i?i.length:i)+" priorities: "+JSON.stringify(n)+" penalized: "+JSON.stringify(this.penalizedPathways))}},e.filterParsedLevels=function(t){this.levels=t;var e=this.getLevelsForPathway(this.pathwayId);if(0===e.length){var r=t[0].pathwayId;this.log("No levels found in Pathway "+this.pathwayId+'. Setting initial Pathway to "'+r+'"'),e=this.getLevelsForPathway(r),this.pathwayId=r}return e.length!==t.length?(this.log("Found "+e.length+"/"+t.length+' levels in Pathway "'+this.pathwayId+'"'),e):t},e.getLevelsForPathway=function(t){return null===this.levels?[]:this.levels.filter((function(e){return t===e.pathwayId}))},e.updatePathwayPriority=function(t){var e;this.pathwayPriority=t;var r=this.penalizedPathways,i=performance.now();Object.keys(r).forEach((function(t){i-r[t]>3e5&&delete r[t]}));for(var n=0;n0){this.log('Setting Pathway to "'+a+'"'),this.pathwayId=a,er(e),this.hls.trigger(E.LEVELS_UPDATED,{levels:e});var l=this.hls.levels[s];o&&l&&this.levels&&(l.attrs["STABLE-VARIANT-ID"]!==o.attrs["STABLE-VARIANT-ID"]&&l.bitrate!==o.bitrate&&this.log("Unstable Pathways change from bitrate "+o.bitrate+" to "+l.bitrate),this.hls.nextLoadLevel=s);break}}}},e.getPathwayForGroupId=function(t,e,r){for(var i=this.getLevelsForPathway(r).concat(this.levels||[]),n=0;n=2&&(0===r.loading.first&&(r.loading.first=Math.max(self.performance.now(),r.loading.start),n.timeout!==n.loadPolicy.maxLoadTimeMs&&(self.clearTimeout(this.requestTimeout),n.timeout=n.loadPolicy.maxLoadTimeMs,this.requestTimeout=self.setTimeout(this.loadtimeout.bind(this),n.loadPolicy.maxLoadTimeMs-(r.loading.first-r.loading.start)))),4===i)){self.clearTimeout(this.requestTimeout),e.onreadystatechange=null,e.onprogress=null;var a=e.status,s="text"!==e.responseType;if(a>=200&&a<300&&(s&&e.response||null!==e.responseText)){r.loading.end=Math.max(self.performance.now(),r.loading.first);var o=s?e.response:e.responseText,l="arraybuffer"===e.responseType?o.byteLength:o.length;if(r.loaded=r.total=l,r.bwEstimate=8e3*r.total/(r.loading.end-r.loading.first),!this.callbacks)return;var u=this.callbacks.onProgress;if(u&&u(r,t,o,e),!this.callbacks)return;var h={url:e.responseURL,data:o,code:a};this.callbacks.onSuccess(h,r,t,e)}else{var d=n.loadPolicy.errorRetry;sr(d,r.retry,!1,{url:t.url,data:void 0,code:a})?this.retry(d):(k.error(a+" while loading "+t.url),this.callbacks.onError({code:a,text:e.statusText},t,e,r))}}}},e.loadtimeout=function(){var t,e=null==(t=this.config)?void 0:t.loadPolicy.timeoutRetry;if(sr(e,this.stats.retry,!0))this.retry(e);else{var r;k.warn("timeout while loading "+(null==(r=this.context)?void 0:r.url));var i=this.callbacks;i&&(this.abortInternal(),i.onTimeout(this.stats,this.context,this.loader))}},e.retry=function(t){var e=this.context,r=this.stats;this.retryDelay=nr(t,r.retry),r.retry++,k.warn((status?"HTTP Status "+status:"Timeout")+" while loading "+(null==e?void 0:e.url)+", retrying "+r.retry+"/"+t.maxNumRetry+" in "+this.retryDelay+"ms"),this.abortInternal(),this.loader=null,self.clearTimeout(this.retryTimeout),this.retryTimeout=self.setTimeout(this.loadInternal.bind(this),this.retryDelay)},e.loadprogress=function(t){var e=this.stats;e.loaded=t.loaded,t.lengthComputable&&(e.total=t.total)},e.getCacheAge=function(){var t=null;if(this.loader&&vs.test(this.loader.getAllResponseHeaders())){var e=this.loader.getResponseHeader("age");t=e?parseFloat(e):null}return t},e.getResponseHeader=function(t){return this.loader&&new RegExp("^"+t+":\\s*[\\d.]+\\s*$","im").test(this.loader.getAllResponseHeaders())?this.loader.getResponseHeader(t):null},t}(),ps=/(\d+)-(\d+)\/(\d+)/,ys=function(){function t(t){this.fetchSetup=void 0,this.requestTimeout=void 0,this.request=null,this.response=null,this.controller=void 0,this.context=null,this.config=null,this.callbacks=null,this.stats=void 0,this.loader=null,this.fetchSetup=t.fetchSetup||Es,this.controller=new self.AbortController,this.stats=new x}var e=t.prototype;return e.destroy=function(){this.loader=this.callbacks=this.context=this.config=this.request=null,this.abortInternal(),this.response=null,this.fetchSetup=this.controller=this.stats=null},e.abortInternal=function(){this.controller&&!this.stats.loading.end&&(this.stats.aborted=!0,this.controller.abort())},e.abort=function(){var t;this.abortInternal(),null!=(t=this.callbacks)&&t.onAbort&&this.callbacks.onAbort(this.stats,this.context,this.response)},e.load=function(t,e,r){var i=this,n=this.stats;if(n.loading.start)throw new Error("Loader can only be used once.");n.loading.start=self.performance.now();var a=function(t,e){var r={method:"GET",mode:"cors",credentials:"same-origin",signal:e,headers:new self.Headers(o({},t.headers))};return t.rangeEnd&&r.headers.set("Range","bytes="+t.rangeStart+"-"+String(t.rangeEnd-1)),r}(t,this.controller.signal),s=r.onProgress,l="arraybuffer"===t.responseType,u=l?"byteLength":"length",h=e.loadPolicy,d=h.maxTimeToFirstByteMs,c=h.maxLoadTimeMs;this.context=t,this.config=e,this.callbacks=r,this.request=this.fetchSetup(t,a),self.clearTimeout(this.requestTimeout),e.timeout=d&&m(d)?d:c,this.requestTimeout=self.setTimeout((function(){i.abortInternal(),r.onTimeout(n,t,i.response)}),e.timeout),self.fetch(this.request).then((function(a){i.response=i.loader=a;var o=Math.max(self.performance.now(),n.loading.start);if(self.clearTimeout(i.requestTimeout),e.timeout=c,i.requestTimeout=self.setTimeout((function(){i.abortInternal(),r.onTimeout(n,t,i.response)}),c-(o-n.loading.start)),!a.ok){var u=a.status,h=a.statusText;throw new Ss(h||"fetch, bad network response",u,a)}return n.loading.first=o,n.total=function(t){var e=t.get("Content-Range");if(e){var r=function(t){var e=ps.exec(t);if(e)return parseInt(e[2])-parseInt(e[1])+1}(e);if(m(r))return r}var i=t.get("Content-Length");if(i)return parseInt(i)}(a.headers)||n.total,s&&m(e.highWaterMark)?i.loadProgressively(a,n,t,e.highWaterMark,s):l?a.arrayBuffer():"json"===t.responseType?a.json():a.text()})).then((function(a){var o=i.response;if(!o)throw new Error("loader destroyed");self.clearTimeout(i.requestTimeout),n.loading.end=Math.max(self.performance.now(),n.loading.first);var l=a[u];l&&(n.loaded=n.total=l);var h={url:o.url,data:a,code:o.status};s&&!m(e.highWaterMark)&&s(n,t,a,o),r.onSuccess(h,n,t,o)})).catch((function(e){if(self.clearTimeout(i.requestTimeout),!n.aborted){var a=e&&e.code||0,s=e?e.message:null;r.onError({code:a,text:s},t,e?e.details:null,n)}}))},e.getCacheAge=function(){var t=null;if(this.response){var e=this.response.headers.get("age");t=e?parseFloat(e):null}return t},e.getResponseHeader=function(t){return this.response?this.response.headers.get(t):null},e.loadProgressively=function(t,e,r,i,n){void 0===i&&(i=0);var a=new oi,s=t.body.getReader();return function o(){return s.read().then((function(s){if(s.done)return a.dataLength&&n(e,r,a.flush(),t),Promise.resolve(new ArrayBuffer(0));var l=s.value,u=l.length;return e.loaded+=u,u=i&&n(e,r,a.flush(),t)):n(e,r,l,t),o()})).catch((function(){return Promise.reject()}))}()},t}();function Es(t,e){return new self.Request(t.url,e)}var Ts,Ss=function(t){function e(e,r,i){var n;return(n=t.call(this,e)||this).code=void 0,n.details=void 0,n.code=r,n.details=i,n}return l(e,t),e}(c(Error)),Ls=/\s/,As=i(i({autoStartLoad:!0,startPosition:-1,defaultAudioCodec:void 0,debug:!1,capLevelOnFPSDrop:!1,capLevelToPlayerSize:!1,ignoreDevicePixelRatio:!1,preferManagedMediaSource:!0,initialLiveManifestSize:1,maxBufferLength:30,backBufferLength:1/0,frontBufferFlushThreshold: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:ms,fLoader:void 0,pLoader:void 0,xhrSetup:void 0,licenseXhrSetup:void 0,licenseResponseCallback:void 0,abrController:Ar,bufferController:_n,capLevelController:Da,errorController:dr,fpsController:Ia,stretchShortVideoTrack:!1,maxAudioFramesDrift:1,forceKeyFrameOnDiscontinuity:!0,abrEwmaFastLive:3,abrEwmaSlowLive:9,abrEwmaFastVoD:3,abrEwmaSlowVoD:9,abrEwmaDefaultEstimate:5e5,abrEwmaDefaultEstimateMax:5e6,abrBandWidthFactor:.95,abrBandWidthUpFactor:.7,abrMaxWithRealBitrate:!1,maxStarvationDelay:4,maxLoadingDelay:4,minAutoBitrate:0,emeEnabled:!1,widevineLicenseUrl:void 0,drmSystems:{},drmSystemOptions:{},requestMediaKeySystemAccessFunc:Z,testBandwidth:!0,progressive:!1,lowLatencyMode:!0,cmcd:void 0,enableDateRangeMetadataCues:!0,enableEmsgMetadataCues:!0,enableID3MetadataCues:!0,useMediaCapabilities:!0,certLoadPolicy:{default:{maxTimeToFirstByteMs:8e3,maxLoadTimeMs:2e4,timeoutRetry:null,errorRetry:null}},keyLoadPolicy:{default:{maxTimeToFirstByteMs:8e3,maxLoadTimeMs:2e4,timeoutRetry:{maxNumRetry:1,retryDelayMs:1e3,maxRetryDelayMs:2e4,backoff:"linear"},errorRetry:{maxNumRetry:8,retryDelayMs:1e3,maxRetryDelayMs:2e4,backoff:"linear"}}},manifestLoadPolicy:{default:{maxTimeToFirstByteMs:1/0,maxLoadTimeMs:2e4,timeoutRetry:{maxNumRetry:2,retryDelayMs:0,maxRetryDelayMs:0},errorRetry:{maxNumRetry:1,retryDelayMs:1e3,maxRetryDelayMs:8e3}}},playlistLoadPolicy:{default:{maxTimeToFirstByteMs:1e4,maxLoadTimeMs:2e4,timeoutRetry:{maxNumRetry:2,retryDelayMs:0,maxRetryDelayMs:0},errorRetry:{maxNumRetry:2,retryDelayMs:1e3,maxRetryDelayMs:8e3}}},fragLoadPolicy:{default:{maxTimeToFirstByteMs:1e4,maxLoadTimeMs:12e4,timeoutRetry:{maxNumRetry:4,retryDelayMs:0,maxRetryDelayMs:0},errorRetry:{maxNumRetry:6,retryDelayMs:1e3,maxRetryDelayMs:8e3}}},steeringManifestLoadPolicy:{default:{maxTimeToFirstByteMs:1e4,maxLoadTimeMs:2e4,timeoutRetry:{maxNumRetry:2,retryDelayMs:0,maxRetryDelayMs:0},errorRetry:{maxNumRetry:1,retryDelayMs:1e3,maxRetryDelayMs:8e3}}},manifestLoadingTimeOut:1e4,manifestLoadingMaxRetry:1,manifestLoadingRetryDelay:1e3,manifestLoadingMaxRetryTimeout:64e3,levelLoadingTimeOut:1e4,levelLoadingMaxRetry:4,levelLoadingRetryDelay:1e3,levelLoadingMaxRetryTimeout:64e3,fragLoadingTimeOut:2e4,fragLoadingMaxRetry:6,fragLoadingRetryDelay:1e3,fragLoadingMaxRetryTimeout:64e3},{cueHandler:{newCue:function(t,e,r,i){for(var n,a,s,o,l,u=[],h=self.VTTCue||self.TextTrackCue,d=0;d=16?o--:o++;var g=oa(l.trim()),v=ca(e,r,g);null!=t&&null!=(c=t.cues)&&c.getCueById(v)||((a=new h(e,r,g)).id=v,a.line=d+1,a.align="left",a.position=10+Math.min(80,10*Math.floor(8*o/32)),u.push(a))}return t&&u.length&&(u.sort((function(t,e){return"auto"===t.line||"auto"===e.line?0:t.line>8&&e.line>8?e.line-t.line:t.line-e.line})),u.forEach((function(e){return Ce(t,e)}))),u}},enableWebVTT:!0,enableIMSC1:!0,enableCEA708Captions:!0,captionsTextTrack1Label:"English",captionsTextTrack1LanguageCode:"en",captionsTextTrack2Label:"Spanish",captionsTextTrack2LanguageCode:"es",captionsTextTrack3Label:"Unknown CC",captionsTextTrack3LanguageCode:"",captionsTextTrack4Label:"Unknown CC",captionsTextTrack4LanguageCode:"",renderTextTracksNatively:!0}),{},{subtitleStreamController:kn,subtitleTrackController:In,timelineController:Ra,audioStreamController:Rn,audioTrackController:bn,emeController:Ca,cmcdController:ds,contentSteeringController:cs});function Rs(t){return t&&"object"==typeof t?Array.isArray(t)?t.map(Rs):Object.keys(t).reduce((function(e,r){return e[r]=Rs(t[r]),e}),{}):t}var bs=function(t){function e(e,r){var i;return(i=t.call(this,e,"[level-controller]")||this)._levels=[],i._firstLevel=-1,i._maxAutoLevel=-1,i._startLevel=void 0,i.currentLevel=null,i.currentLevelIndex=-1,i.manualLevelIndex=-1,i.steering=void 0,i.onParsedComplete=void 0,i.steering=r,i._registerListeners(),i}l(e,t);var r=e.prototype;return r._registerListeners=function(){var t=this.hls;t.on(E.MANIFEST_LOADING,this.onManifestLoading,this),t.on(E.MANIFEST_LOADED,this.onManifestLoaded,this),t.on(E.LEVEL_LOADED,this.onLevelLoaded,this),t.on(E.LEVELS_UPDATED,this.onLevelsUpdated,this),t.on(E.FRAG_BUFFERED,this.onFragBuffered,this),t.on(E.ERROR,this.onError,this)},r._unregisterListeners=function(){var t=this.hls;t.off(E.MANIFEST_LOADING,this.onManifestLoading,this),t.off(E.MANIFEST_LOADED,this.onManifestLoaded,this),t.off(E.LEVEL_LOADED,this.onLevelLoaded,this),t.off(E.LEVELS_UPDATED,this.onLevelsUpdated,this),t.off(E.FRAG_BUFFERED,this.onFragBuffered,this),t.off(E.ERROR,this.onError,this)},r.destroy=function(){this._unregisterListeners(),this.steering=null,this.resetLevels(),t.prototype.destroy.call(this)},r.stopLoad=function(){this._levels.forEach((function(t){t.loadError=0,t.fragmentError=0})),t.prototype.stopLoad.call(this)},r.resetLevels=function(){this._startLevel=void 0,this.manualLevelIndex=-1,this.currentLevelIndex=-1,this.currentLevel=null,this._levels=[],this._maxAutoLevel=-1},r.onManifestLoading=function(t,e){this.resetLevels()},r.onManifestLoaded=function(t,e){var r=this.hls.config.preferManagedMediaSource,i=[],n={},a={},s=!1,o=!1,l=!1;e.levels.forEach((function(t){var e,u,h=t.attrs,d=t.audioCodec,c=t.videoCodec;-1!==(null==(e=d)?void 0:e.indexOf("mp4a.40.34"))&&(Ts||(Ts=/chrome|firefox/i.test(navigator.userAgent)),Ts&&(t.audioCodec=d=void 0)),d&&(t.audioCodec=d=ne(d,r)),0===(null==(u=c)?void 0:u.indexOf("avc1"))&&(c=t.videoCodec=function(t){var e=t.split(".");if(e.length>2){var r=e.shift()+".";return(r+=parseInt(e.shift()).toString(16))+("000"+parseInt(e.shift()).toString(16)).slice(-4)}return t}(c));var f=t.width,g=t.height,v=t.unknownCodecs;if(s||(s=!(!f||!g)),o||(o=!!c),l||(l=!!d),!(null!=v&&v.length||d&&!Jt(d,"audio",r)||c&&!Jt(c,"video",r))){var m=h.CODECS,p=h["FRAME-RATE"],y=h["HDCP-LEVEL"],E=h["PATHWAY-ID"],T=h.RESOLUTION,S=h["VIDEO-RANGE"],L=(E||".")+"-"+t.bitrate+"-"+T+"-"+p+"-"+m+"-"+S+"-"+y;if(n[L])if(n[L].uri===t.url||t.attrs["PATHWAY-ID"])n[L].addGroupId("audio",h.AUDIO),n[L].addGroupId("text",h.SUBTITLES);else{var A=a[L]+=1;t.attrs["PATHWAY-ID"]=new Array(A+1).join(".");var R=new je(t);n[L]=R,i.push(R)}else{var b=new je(t);n[L]=b,a[L]=1,i.push(b)}}})),this.filterAndSortMediaOptions(i,e,s,o,l)},r.filterAndSortMediaOptions=function(t,e,r,i,n){var a=this,s=[],o=[],l=t;if((r||i)&&n&&(l=l.filter((function(t){var e,r=t.videoCodec,i=t.videoRange,n=t.width,a=t.height;return(!!r||!(!n||!a))&&!!(e=i)&&Ve.indexOf(e)>-1}))),0!==l.length){if(e.audioTracks){var u=this.hls.config.preferManagedMediaSource;ks(s=e.audioTracks.filter((function(t){return!t.audioCodec||Jt(t.audioCodec,"audio",u)})))}e.subtitles&&ks(o=e.subtitles);var h=l.slice(0);l.sort((function(t,e){if(t.attrs["HDCP-LEVEL"]!==e.attrs["HDCP-LEVEL"])return(t.attrs["HDCP-LEVEL"]||"")>(e.attrs["HDCP-LEVEL"]||"")?1:-1;if(r&&t.height!==e.height)return t.height-e.height;if(t.frameRate!==e.frameRate)return t.frameRate-e.frameRate;if(t.videoRange!==e.videoRange)return Ve.indexOf(t.videoRange)-Ve.indexOf(e.videoRange);if(t.videoCodec!==e.videoCodec){var i=te(t.videoCodec),n=te(e.videoCodec);if(i!==n)return n-i}if(t.uri===e.uri&&t.codecSet!==e.codecSet){var a=ee(t.codecSet),s=ee(e.codecSet);if(a!==s)return s-a}return t.averageBitrate!==e.averageBitrate?t.averageBitrate-e.averageBitrate:0}));var d=h[0];if(this.steering&&(l=this.steering.filterParsedLevels(l)).length!==h.length)for(var c=0;cm&&m===As.abrEwmaDefaultEstimate&&(this.hls.bandwidthEstimate=p)}break}var y=n&&!i,L={levels:l,audioTracks:s,subtitleTracks:o,sessionData:e.sessionData,sessionKeys:e.sessionKeys,firstLevel:this._firstLevel,stats:e.stats,audio:n,video:i,altAudio:!y&&s.some((function(t){return!!t.url}))};this.hls.trigger(E.MANIFEST_PARSED,L),(this.hls.config.autoStartLoad||this.hls.forceStartLoad)&&this.hls.startLoad(this.hls.config.startPosition)}else Promise.resolve().then((function(){if(a.hls){e.levels.length&&a.warn("One or more CODECS in variant not supported: "+JSON.stringify(e.levels[0].attrs));var t=new Error("no level with compatible codecs found in manifest");a.hls.trigger(E.ERROR,{type:T.MEDIA_ERROR,details:S.MANIFEST_INCOMPATIBLE_CODECS_ERROR,fatal:!0,url:e.url,error:t,reason:t.message})}}))},r.onError=function(t,e){!e.fatal&&e.context&&e.context.type===Te&&e.context.level===this.level&&this.checkRetry(e)},r.onFragBuffered=function(t,e){var r=e.frag;if(void 0!==r&&r.type===Ae){var i=r.elementaryStreams;if(!Object.keys(i).some((function(t){return!!i[t]})))return;var n=this._levels[r.level];null!=n&&n.loadError&&(this.log("Resetting level error count of "+n.loadError+" on frag buffered"),n.loadError=0)}},r.onLevelLoaded=function(t,e){var r,i,n=e.level,a=e.details,s=this._levels[n];if(!s)return this.warn("Invalid level index "+n),void(null!=(i=e.deliveryDirectives)&&i.skip&&(a.deltaUpdateFailed=!0));n===this.currentLevelIndex?(0===s.fragmentError&&(s.loadError=0),this.playlistLoaded(n,e,s.details)):null!=(r=e.deliveryDirectives)&&r.skip&&(a.deltaUpdateFailed=!0)},r.loadPlaylist=function(e){t.prototype.loadPlaylist.call(this);var r=this.currentLevelIndex,i=this.currentLevel;if(i&&this.shouldLoadPlaylist(i)){var n=i.uri;if(e)try{n=e.addDirectives(n)}catch(t){this.warn("Could not construct new URL with HLS Delivery Directives: "+t)}var a=i.attrs["PATHWAY-ID"];this.log("Loading level index "+r+(void 0!==(null==e?void 0:e.msn)?" at sn "+e.msn+" part "+e.part:"")+" with"+(a?" Pathway "+a:"")+" "+n),this.clearTimer(),this.hls.trigger(E.LEVEL_LOADING,{url:n,level:r,pathwayId:i.attrs["PATHWAY-ID"],id:0,deliveryDirectives:e||null})}},r.removeLevel=function(t){var e,r=this,i=this._levels.filter((function(e,i){return i!==t||(r.steering&&r.steering.removeLevel(e),e===r.currentLevel&&(r.currentLevel=null,r.currentLevelIndex=-1,e.details&&e.details.fragments.forEach((function(t){return t.level=-1}))),!1)}));er(i),this._levels=i,this.currentLevelIndex>-1&&null!=(e=this.currentLevel)&&e.details&&(this.currentLevelIndex=this.currentLevel.details.fragments[0].level),this.hls.trigger(E.LEVELS_UPDATED,{levels:i})},r.onLevelsUpdated=function(t,e){var r=e.levels;this._levels=r},r.checkMaxAutoUpdated=function(){var t=this.hls,e=t.autoLevelCapping,r=t.maxAutoLevel,i=t.maxHdcpLevel;this._maxAutoLevel!==r&&(this._maxAutoLevel=r,this.hls.trigger(E.MAX_AUTO_LEVEL_UPDATED,{autoLevelCapping:e,levels:this.levels,maxAutoLevel:r,minAutoLevel:this.hls.minAutoLevel,maxHdcpLevel:i}))},s(e,[{key:"levels",get:function(){return 0===this._levels.length?null:this._levels}},{key:"level",get:function(){return this.currentLevelIndex},set:function(t){var e=this._levels;if(0!==e.length){if(t<0||t>=e.length){var r=new Error("invalid level idx"),i=t<0;if(this.hls.trigger(E.ERROR,{type:T.OTHER_ERROR,details:S.LEVEL_SWITCH_ERROR,level:t,fatal:i,error:r,reason:r.message}),i)return;t=Math.min(t,e.length-1)}var n=this.currentLevelIndex,a=this.currentLevel,s=a?a.attrs["PATHWAY-ID"]:void 0,o=e[t],l=o.attrs["PATHWAY-ID"];if(this.currentLevelIndex=t,this.currentLevel=o,n!==t||!o.details||!a||s!==l){this.log("Switching to level "+t+" ("+(o.height?o.height+"p ":"")+(o.videoRange?o.videoRange+" ":"")+(o.codecSet?o.codecSet+" ":"")+"@"+o.bitrate+")"+(l?" with Pathway "+l:"")+" from level "+n+(s?" with Pathway "+s:""));var u={level:t,attrs:o.attrs,details:o.details,bitrate:o.bitrate,averageBitrate:o.averageBitrate,maxBitrate:o.maxBitrate,realBitrate:o.realBitrate,width:o.width,height:o.height,codecSet:o.codecSet,audioCodec:o.audioCodec,videoCodec:o.videoCodec,audioGroups:o.audioGroups,subtitleGroups:o.subtitleGroups,loaded:o.loaded,loadError:o.loadError,fragmentError:o.fragmentError,name:o.name,id:o.id,uri:o.uri,url:o.url,urlId:0,audioGroupIds:o.audioGroupIds,textGroupIds:o.textGroupIds};this.hls.trigger(E.LEVEL_SWITCHING,u);var h=o.details;if(!h||h.live){var d=this.switchParams(o.uri,null==a?void 0:a.details,h);this.loadPlaylist(d)}}}}},{key:"manualLevel",get:function(){return this.manualLevelIndex},set:function(t){this.manualLevelIndex=t,void 0===this._startLevel&&(this._startLevel=t),-1!==t&&(this.level=t)}},{key:"firstLevel",get:function(){return this._firstLevel},set:function(t){this._firstLevel=t}},{key:"startLevel",get:function(){if(void 0===this._startLevel){var t=this.hls.config.startLevel;return void 0!==t?t:this.hls.firstAutoLevel}return this._startLevel},set:function(t){this._startLevel=t}},{key:"nextLoadLevel",get:function(){return-1!==this.manualLevelIndex?this.manualLevelIndex:this.hls.nextAutoLevel},set:function(t){this.level=t,-1===this.manualLevelIndex&&(this.hls.nextAutoLevel=t)}}]),e}(cr);function ks(t){var e={};t.forEach((function(t){var r=t.groupId||"";t.id=e[r]=e[r]||0,e[r]++}))}var Ds=function(){function t(t){this.config=void 0,this.keyUriToKeyInfo={},this.emeController=null,this.config=t}var e=t.prototype;return e.abort=function(t){for(var e in this.keyUriToKeyInfo){var r=this.keyUriToKeyInfo[e].loader;if(r){var i;if(t&&t!==(null==(i=r.context)?void 0:i.frag.type))return;r.abort()}}},e.detach=function(){for(var t in this.keyUriToKeyInfo){var e=this.keyUriToKeyInfo[t];(e.mediaKeySessionContext||e.decryptdata.isCommonEncryption)&&delete this.keyUriToKeyInfo[t]}},e.destroy=function(){for(var t in this.detach(),this.keyUriToKeyInfo){var e=this.keyUriToKeyInfo[t].loader;e&&e.destroy()}this.keyUriToKeyInfo={}},e.createKeyLoadError=function(t,e,r,i,n){return void 0===e&&(e=S.KEY_LOAD_ERROR),new Vr({type:T.NETWORK_ERROR,details:e,fatal:!1,frag:t,response:n,error:r,networkDetails:i})},e.loadClear=function(t,e){var r=this;if(this.emeController&&this.config.emeEnabled)for(var i=t.sn,n=t.cc,a=function(){var t=e[s];if(n<=t.cc&&("initSegment"===i||"initSegment"===t.sn||i2,c=!h||e&&e.start<=a||h-a>2&&!this.fragmentTracker.getPartialFragment(a);if(d||c)return;this.moved=!1}if(!this.moved&&null!==this.stalled){var f;if(!(u.len>0||h))return;var g=Math.max(h,u.start||0)-a,v=this.hls.levels?this.hls.levels[this.hls.currentLevel]:null,m=(null==v||null==(f=v.details)?void 0:f.live)?2*v.details.targetduration:2,p=this.fragmentTracker.getPartialFragment(a);if(g>0&&(g<=m||p))return void(i.paused||this._trySkipBufferHole(p))}var y=self.performance.now();if(null!==n){var E=y-n;if(s||!(E>=250)||(this._reportStall(u),this.media)){var T=Pr.bufferInfo(i,a,r.maxBufferHole);this._tryFixBufferStall(T,E)}}else this.stalled=y}else if(this.moved=!0,s||(this.nudgeRetry=0),null!==n){if(this.stallReported){var S=self.performance.now()-n;k.warn("playback not stuck anymore @"+a+", after "+Math.round(S)+"ms"),this.stallReported=!1}this.stalled=null}}},e._tryFixBufferStall=function(t,e){var r=this.config,i=this.fragmentTracker,n=this.media;if(null!==n){var a=n.currentTime,s=i.getPartialFragment(a);if(s&&(this._trySkipBufferHole(s)||!this.media))return;(t.len>r.maxBufferHole||t.nextStart&&t.nextStart-a1e3*r.highBufferWatchdogPeriod&&(k.warn("Trying to nudge playhead over buffer-hole"),this.stalled=null,this._tryNudgeBuffer())}},e._reportStall=function(t){var e=this.hls,r=this.media;if(!this.stallReported&&r){this.stallReported=!0;var i=new Error("Playback stalling at @"+r.currentTime+" due to low buffer ("+JSON.stringify(t)+")");k.warn(i.message),e.trigger(E.ERROR,{type:T.MEDIA_ERROR,details:S.BUFFER_STALLED_ERROR,fatal:!1,error:i,buffer:t.len})}},e._trySkipBufferHole=function(t){var e=this.config,r=this.hls,i=this.media;if(null===i)return 0;var n=i.currentTime,a=Pr.bufferInfo(i,n,0),s=n0&&a.len<1&&i.readyState<3,u=s-n;if(u>0&&(o||l)){if(u>e.maxBufferHole){var h=this.fragmentTracker,d=!1;if(0===n){var c=h.getAppendedFrag(0,Ae);c&&s1?(i=0,this.bitrateTest=!0):i=r.firstAutoLevel),r.nextLoadLevel=i,this.level=r.loadLevel,this.loadedmetadata=!1}e>0&&-1===t&&(this.log("Override startPosition with lastCurrentTime @"+e.toFixed(3)),t=e),this.state=zr,this.nextLoadPosition=this.startPosition=this.lastCurrentTime=t,this.tick()}else this._forceStartLoad=!0,this.state=Xr},r.stopLoad=function(){this._forceStartLoad=!1,t.prototype.stopLoad.call(this)},r.doTick=function(){switch(this.state){case ai:var t=this.levels,e=this.level,r=null==t?void 0:t[e],i=null==r?void 0:r.details;if(i&&(!i.live||this.levelLastLoaded===r)){if(this.waitForCdnTuneIn(i))break;this.state=zr;break}if(this.hls.nextLoadLevel!==this.level){this.state=zr;break}break;case $r:var n,a=self.performance.now(),s=this.retryDate;if(!s||a>=s||null!=(n=this.media)&&n.seeking){var o=this.levels,l=this.level,u=null==o?void 0:o[l];this.resetStartWhenNotLoaded(u||null),this.state=zr}}this.state===zr&&this.doTickIdle(),this.onTickEnd()},r.onTickEnd=function(){t.prototype.onTickEnd.call(this),this.checkBuffer(),this.checkFragmentChanged()},r.doTickIdle=function(){var t=this.hls,e=this.levelLastLoaded,r=this.levels,i=this.media;if(null!==e&&(i||!this.startFragRequested&&t.config.startFragPrefetch)&&(!this.altAudio||!this.audioOnly)){var n=t.nextLoadLevel;if(null!=r&&r[n]){var a=r[n],s=this.getMainFwdBufferInfo();if(null!==s){var o=this.getLevelDetails();if(o&&this._streamEnded(s,o)){var l={};return this.altAudio&&(l.type="video"),this.hls.trigger(E.BUFFER_EOS,l),void(this.state=ri)}t.loadLevel!==n&&-1===t.manualLevel&&this.log("Adapting to level "+n+" from level "+this.level),this.level=t.nextLoadLevel=n;var u=a.details;if(!u||this.state===ai||u.live&&this.levelLastLoaded!==a)return this.level=n,void(this.state=ai);var h=s.len,d=this.getMaxBufferLength(a.maxBitrate);if(!(h>=d)){this.backtrackFragment&&this.backtrackFragment.start>s.end&&(this.backtrackFragment=null);var c=this.backtrackFragment?this.backtrackFragment.start:s.end,f=this.getNextFragment(c,u);if(this.couldBacktrack&&!this.fragPrevious&&f&&"initSegment"!==f.sn&&this.fragmentTracker.getState(f)!==Ir){var g,v=(null!=(g=this.backtrackFragment)?g:f).sn-u.startSN,m=u.fragments[v-1];m&&f.cc===m.cc&&(f=m,this.fragmentTracker.removeFragment(m))}else this.backtrackFragment&&s.len&&(this.backtrackFragment=null);if(f&&this.isLoopLoading(f,c)){if(!f.gap){var p=this.audioOnly&&!this.altAudio?P:F,y=(p===F?this.videoBuffer:this.mediaBuffer)||this.media;y&&this.afterBufferFlushed(y,p,Ae)}f=this.getNextFragmentLoopLoading(f,u,s,Ae,d)}f&&(!f.initSegment||f.initSegment.data||this.bitrateTest||(f=f.initSegment),this.loadFragment(f,a,c))}}}}},r.loadFragment=function(e,r,i){var n=this.fragmentTracker.getState(e);this.fragCurrent=e,n===br||n===Dr?"initSegment"===e.sn?this._loadInitSegment(e,r):this.bitrateTest?(this.log("Fragment "+e.sn+" of level "+e.level+" is being downloaded to test bitrate and will not be buffered"),this._loadBitrateTestFrag(e,r)):(this.startFragRequested=!0,t.prototype.loadFragment.call(this,e,r,i)):this.clearTrackerIfNeeded(e)},r.getBufferedFrag=function(t){return this.fragmentTracker.getBufferedFrag(t,Ae)},r.followingBufferedFrag=function(t){return t?this.getBufferedFrag(t.end+.5):null},r.immediateLevelSwitch=function(){this.abortCurrentFrag(),this.flushMainBuffer(0,Number.POSITIVE_INFINITY)},r.nextLevelSwitch=function(){var t=this.levels,e=this.media;if(null!=e&&e.readyState){var r,i=this.getAppendedFrag(e.currentTime);i&&i.start>1&&this.flushMainBuffer(0,i.start-1);var n=this.getLevelDetails();if(null!=n&&n.live){var a=this.getMainFwdBufferInfo();if(!a||a.len<2*n.targetduration)return}if(!e.paused&&t){var s=t[this.hls.nextLoadLevel],o=this.fragLastKbps;r=o&&this.fragCurrent?this.fragCurrent.duration*s.maxBitrate/(1e3*o)+1:0}else r=0;var l=this.getBufferedFrag(e.currentTime+r);if(l){var u=this.followingBufferedFrag(l);if(u){this.abortCurrentFrag();var h=u.maxStartPTS?u.maxStartPTS:u.start,d=u.duration,c=Math.max(l.end,h+Math.min(Math.max(d-this.config.maxFragLookUpTolerance,d*(this.couldBacktrack?.5:.125)),d*(this.couldBacktrack?.75:.25)));this.flushMainBuffer(c,Number.POSITIVE_INFINITY)}}}},r.abortCurrentFrag=function(){var t=this.fragCurrent;switch(this.fragCurrent=null,this.backtrackFragment=null,t&&(t.abortRequests(),this.fragmentTracker.removeFragment(t)),this.state){case Qr:case Jr:case $r:case ti:case ei:this.state=zr}this.nextLoadPosition=this.getLoadPosition()},r.flushMainBuffer=function(e,r){t.prototype.flushMainBuffer.call(this,e,r,this.altAudio?"video":null)},r.onMediaAttached=function(e,r){t.prototype.onMediaAttached.call(this,e,r);var i=r.media;this.onvplaying=this.onMediaPlaying.bind(this),this.onvseeked=this.onMediaSeeked.bind(this),i.addEventListener("playing",this.onvplaying),i.addEventListener("seeked",this.onvseeked),this.gapController=new Cs(this.config,i,this.fragmentTracker,this.hls)},r.onMediaDetaching=function(){var e=this.media;e&&this.onvplaying&&this.onvseeked&&(e.removeEventListener("playing",this.onvplaying),e.removeEventListener("seeked",this.onvseeked),this.onvplaying=this.onvseeked=null,this.videoBuffer=null),this.fragPlaying=null,this.gapController&&(this.gapController.destroy(),this.gapController=null),t.prototype.onMediaDetaching.call(this)},r.onMediaPlaying=function(){this.tick()},r.onMediaSeeked=function(){var t=this.media,e=t?t.currentTime:null;m(e)&&this.log("Media seeked to "+e.toFixed(3));var r=this.getMainFwdBufferInfo();null!==r&&0!==r.len?this.tick():this.warn('Main forward buffer length on "seeked" event '+(r?r.len:"empty")+")")},r.onManifestLoading=function(){this.log("Trigger BUFFER_RESET"),this.hls.trigger(E.BUFFER_RESET,void 0),this.fragmentTracker.removeAllFragments(),this.couldBacktrack=!1,this.startPosition=this.lastCurrentTime=this.fragLastKbps=0,this.levels=this.fragPlaying=this.backtrackFragment=this.levelLastLoaded=null,this.altAudio=this.audioOnly=this.startFragRequested=!1},r.onManifestParsed=function(t,e){var r,i,n=!1,a=!1;e.levels.forEach((function(t){var e=t.audioCodec;e&&(n=n||-1!==e.indexOf("mp4a.40.2"),a=a||-1!==e.indexOf("mp4a.40.5"))})),this.audioCodecSwitch=n&&a&&!("function"==typeof(null==(i=Is())||null==(r=i.prototype)?void 0:r.changeType)),this.audioCodecSwitch&&this.log("Both AAC/HE-AAC audio found in levels; declaring level codec as HE-AAC"),this.levels=e.levels,this.startFragRequested=!1},r.onLevelLoading=function(t,e){var r=this.levels;if(r&&this.state===zr){var i=r[e.level];(!i.details||i.details.live&&this.levelLastLoaded!==i||this.waitForCdnTuneIn(i.details))&&(this.state=ai)}},r.onLevelLoaded=function(t,e){var r,i=this.levels,n=e.level,a=e.details,s=a.totalduration;if(i){this.log("Level "+n+" loaded ["+a.startSN+","+a.endSN+"]"+(a.lastPartSn?"[part-"+a.lastPartSn+"-"+a.lastPartIndex+"]":"")+", cc ["+a.startCC+", "+a.endCC+"] duration:"+s);var o=i[n],l=this.fragCurrent;!l||this.state!==Jr&&this.state!==$r||l.level!==e.level&&l.loader&&this.abortCurrentFrag();var u=0;if(a.live||null!=(r=o.details)&&r.live){var h;if(this.checkLiveUpdate(a),a.deltaUpdateFailed)return;u=this.alignPlaylists(a,o.details,null==(h=this.levelLastLoaded)?void 0:h.details)}if(o.details=a,this.levelLastLoaded=o,this.hls.trigger(E.LEVEL_UPDATED,{details:a,level:n}),this.state===ai){if(this.waitForCdnTuneIn(a))return;this.state=zr}this.startFragRequested?a.live&&this.synchronizeToLiveEdge(a):this.setStartPosition(a,u),this.tick()}else this.warn("Levels were reset while loading level "+n)},r._handleFragmentLoadProgress=function(t){var e,r=t.frag,i=t.part,n=t.payload,a=this.levels;if(a){var s=a[r.level],o=s.details;if(!o)return this.warn("Dropping fragment "+r.sn+" of level "+r.level+" after level details were reset"),void this.fragmentTracker.removeFragment(r);var l=s.videoCodec,u=o.PTSKnown||!o.live,h=null==(e=r.initSegment)?void 0:e.data,d=this._getAudioCodec(s),c=this.transmuxer=this.transmuxer||new Tn(this.hls,Ae,this._handleTransmuxComplete.bind(this),this._handleTransmuxerFlush.bind(this)),f=i?i.index:-1,g=-1!==f,v=new Fr(r.level,r.sn,r.stats.chunkCount,n.byteLength,f,g),m=this.initPTS[r.cc];c.push(n,h,d,l,r,i,o.totalduration,u,v,m)}else this.warn("Levels were reset while fragment load was in progress. Fragment "+r.sn+" of level "+r.level+" will not be buffered")},r.onAudioTrackSwitching=function(t,e){var r=this.altAudio;if(!e.url){if(this.mediaBuffer!==this.media){this.log("Switching on main audio, use media.buffered to schedule main fragment loading"),this.mediaBuffer=this.media;var i=this.fragCurrent;i&&(this.log("Switching to main audio track, cancel main fragment load"),i.abortRequests(),this.fragmentTracker.removeFragment(i)),this.resetTransmuxer(),this.resetLoadingState()}else this.audioOnly&&this.resetTransmuxer();var n=this.hls;r&&(n.trigger(E.BUFFER_FLUSHING,{startOffset:0,endOffset:Number.POSITIVE_INFINITY,type:null}),this.fragmentTracker.removeAllFragments()),n.trigger(E.AUDIO_TRACK_SWITCHED,e)}},r.onAudioTrackSwitched=function(t,e){var r=e.id,i=!!this.hls.audioTracks[r].url;if(i){var n=this.videoBuffer;n&&this.mediaBuffer!==n&&(this.log("Switching on alternate audio, use video.buffered to schedule main fragment loading"),this.mediaBuffer=n)}this.altAudio=i,this.tick()},r.onBufferCreated=function(t,e){var r,i,n=e.tracks,a=!1;for(var s in n){var o=n[s];if("main"===o.id){if(i=s,r=o,"video"===s){var l=n[s];l&&(this.videoBuffer=l.buffer)}}else a=!0}a&&r?(this.log("Alternate track found, use "+i+".buffered to schedule main fragment loading"),this.mediaBuffer=r.buffer):this.mediaBuffer=this.media},r.onFragBuffered=function(t,e){var r=e.frag,i=e.part;if(!r||r.type===Ae){if(this.fragContextChanged(r))return this.warn("Fragment "+r.sn+(i?" p: "+i.index:"")+" of level "+r.level+" finished buffering, but was aborted. state: "+this.state),void(this.state===ei&&(this.state=zr));var n=i?i.stats:r.stats;this.fragLastKbps=Math.round(8*n.total/(n.buffering.end-n.loading.first)),"initSegment"!==r.sn&&(this.fragPrevious=r),this.fragBufferedComplete(r,i)}},r.onError=function(t,e){var r;if(e.fatal)this.state=ii;else switch(e.details){case S.FRAG_GAP:case S.FRAG_PARSING_ERROR:case S.FRAG_DECRYPT_ERROR:case S.FRAG_LOAD_ERROR:case S.FRAG_LOAD_TIMEOUT:case S.KEY_LOAD_ERROR:case S.KEY_LOAD_TIMEOUT:this.onFragmentOrKeyLoadError(Ae,e);break;case S.LEVEL_LOAD_ERROR:case S.LEVEL_LOAD_TIMEOUT:case S.LEVEL_PARSING_ERROR:e.levelRetry||this.state!==ai||(null==(r=e.context)?void 0:r.type)!==Te||(this.state=zr);break;case S.BUFFER_APPEND_ERROR:case S.BUFFER_FULL_ERROR:if(!e.parent||"main"!==e.parent)return;if(e.details===S.BUFFER_APPEND_ERROR)return void this.resetLoadingState();this.reduceLengthAndFlushBuffer(e)&&this.flushMainBuffer(0,Number.POSITIVE_INFINITY);break;case S.INTERNAL_EXCEPTION:this.recoverWorkerError(e)}},r.checkBuffer=function(){var t=this.media,e=this.gapController;if(t&&e&&t.readyState){if(this.loadedmetadata||!Pr.getBuffered(t).length){var r=this.state!==zr?this.fragCurrent:null;e.poll(this.lastCurrentTime,r)}this.lastCurrentTime=t.currentTime}},r.onFragLoadEmergencyAborted=function(){this.state=zr,this.loadedmetadata||(this.startFragRequested=!1,this.nextLoadPosition=this.startPosition),this.tickImmediate()},r.onBufferFlushed=function(t,e){var r=e.type;if(r!==P||this.audioOnly&&!this.altAudio){var i=(r===F?this.videoBuffer:this.mediaBuffer)||this.media;this.afterBufferFlushed(i,r,Ae),this.tick()}},r.onLevelsUpdated=function(t,e){this.level>-1&&this.fragCurrent&&(this.level=this.fragCurrent.level),this.levels=e.levels},r.swapAudioCodec=function(){this.audioCodecSwap=!this.audioCodecSwap},r.seekToStartPos=function(){var t=this.media;if(t){var e=t.currentTime,r=this.startPosition;if(r>=0&&e0&&(nS.cc;if(!1!==n.independent){var R=h.startPTS,b=h.endPTS,k=h.startDTS,D=h.endDTS;if(l)l.elementaryStreams[h.type]={startPTS:R,endPTS:b,startDTS:k,endDTS:D};else if(h.firstKeyFrame&&h.independent&&1===a.id&&!A&&(this.couldBacktrack=!0),h.dropped&&h.independent){var I=this.getMainFwdBufferInfo(),w=(I?I.end:this.getLoadPosition())+this.config.maxBufferHole,C=h.firstKeyFramePTS?h.firstKeyFramePTS:R;if(!L&&w2&&(o.gap=!0);o.setElementaryStreamInfo(h.type,R,b,k,D),this.backtrackFragment&&(this.backtrackFragment=o),this.bufferFragmentData(h,o,l,a,L||A)}else{if(!L&&!A)return void this.backtrack(o);o.gap=!0}}if(v){var _=v.startPTS,x=v.endPTS,F=v.startDTS,M=v.endDTS;l&&(l.elementaryStreams[P]={startPTS:_,endPTS:x,startDTS:F,endDTS:M}),o.setElementaryStreamInfo(P,_,x,F,M),this.bufferFragmentData(v,o,l,a)}if(g&&null!=c&&null!=(e=c.samples)&&e.length){var O={id:r,frag:o,details:g,samples:c.samples};i.trigger(E.FRAG_PARSING_METADATA,O)}if(g&&d){var N={id:r,frag:o,details:g,samples:d.samples};i.trigger(E.FRAG_PARSING_USERDATA,N)}}}else this.resetWhenMissingContext(a)},r._bufferInitSegment=function(t,e,r,i){var n=this;if(this.state===ti){this.audioOnly=!!e.audio&&!e.video,this.altAudio&&!this.audioOnly&&delete e.audio;var a=e.audio,s=e.video,o=e.audiovideo;if(a){var l=t.audioCodec,u=navigator.userAgent.toLowerCase();this.audioCodecSwitch&&(l&&(l=-1!==l.indexOf("mp4a.40.5")?"mp4a.40.2":"mp4a.40.5"),1!==a.metadata.channelCount&&-1===u.indexOf("firefox")&&(l="mp4a.40.5")),l&&-1!==l.indexOf("mp4a.40.5")&&-1!==u.indexOf("android")&&"audio/mpeg"!==a.container&&(l="mp4a.40.2",this.log("Android: force audio codec to "+l)),t.audioCodec&&t.audioCodec!==l&&this.log('Swapping manifest audio codec "'+t.audioCodec+'" for "'+l+'"'),a.levelCodec=l,a.id="main",this.log("Init audio buffer, container:"+a.container+", codecs[selected/level/parsed]=["+(l||"")+"/"+(t.audioCodec||"")+"/"+a.codec+"]")}s&&(s.levelCodec=t.videoCodec,s.id="main",this.log("Init video buffer, container:"+s.container+", codecs[level/parsed]=["+(t.videoCodec||"")+"/"+s.codec+"]")),o&&this.log("Init audiovideo buffer, container:"+o.container+", codecs[level/parsed]=["+t.codecs+"/"+o.codec+"]"),this.hls.trigger(E.BUFFER_CODECS,e),Object.keys(e).forEach((function(t){var a=e[t].initSegment;null!=a&&a.byteLength&&n.hls.trigger(E.BUFFER_APPENDING,{type:t,data:a,frag:r,part:null,chunkMeta:i,parent:r.type})})),this.tickImmediate()}},r.getMainFwdBufferInfo=function(){return this.getFwdBufferInfo(this.mediaBuffer?this.mediaBuffer:this.media,Ae)},r.backtrack=function(t){this.couldBacktrack=!0,this.backtrackFragment=t,this.resetTransmuxer(),this.flushBufferGap(t),this.fragmentTracker.removeFragment(t),this.fragPrevious=null,this.nextLoadPosition=t.start,this.state=zr},r.checkFragmentChanged=function(){var t=this.media,e=null;if(t&&t.readyState>1&&!1===t.seeking){var r=t.currentTime;if(Pr.isBuffered(t,r)?e=this.getAppendedFrag(r):Pr.isBuffered(t,r+.1)&&(e=this.getAppendedFrag(r+.1)),e){this.backtrackFragment=null;var i=this.fragPlaying,n=e.level;i&&e.sn===i.sn&&i.level===n||(this.fragPlaying=e,this.hls.trigger(E.FRAG_CHANGED,{frag:e}),i&&i.level===n||this.hls.trigger(E.LEVEL_SWITCHED,{level:n}))}}},s(e,[{key:"nextLevel",get:function(){var t=this.nextBufferedFrag;return t?t.level:-1}},{key:"currentFrag",get:function(){var t=this.media;return t?this.fragPlaying||this.getAppendedFrag(t.currentTime):null}},{key:"currentProgramDateTime",get:function(){var t=this.media;if(t){var e=t.currentTime,r=this.currentFrag;if(r&&m(e)&&m(r.programDateTime)){var i=r.programDateTime+1e3*(e-r.start);return new Date(i)}}return null}},{key:"currentLevel",get:function(){var t=this.currentFrag;return t?t.level:-1}},{key:"nextBufferedFrag",get:function(){var t=this.currentFrag;return t?this.followingBufferedFrag(t):null}},{key:"forceStartLoad",get:function(){return this._forceStartLoad}}]),e}(si),xs=function(){function t(e){void 0===e&&(e={}),this.config=void 0,this.userConfig=void 0,this.coreComponents=void 0,this.networkControllers=void 0,this.started=!1,this._emitter=new mn,this._autoLevelCapping=-1,this._maxHdcpLevel=null,this.abrController=void 0,this.bufferController=void 0,this.capLevelController=void 0,this.latencyController=void 0,this.levelController=void 0,this.streamController=void 0,this.audioTrackController=void 0,this.subtitleTrackController=void 0,this.emeController=void 0,this.cmcdController=void 0,this._media=null,this.url=null,this.triggeringException=void 0,b(e.debug||!1,"Hls instance");var r=this.config=function(t,e){if((e.liveSyncDurationCount||e.liveMaxLatencyDurationCount)&&(e.liveSyncDuration||e.liveMaxLatencyDuration))throw new Error("Illegal hls.js config: don't mix up liveSyncDurationCount/liveMaxLatencyDurationCount and liveSyncDuration/liveMaxLatencyDuration");if(void 0!==e.liveMaxLatencyDurationCount&&(void 0===e.liveSyncDurationCount||e.liveMaxLatencyDurationCount<=e.liveSyncDurationCount))throw new Error('Illegal hls.js config: "liveMaxLatencyDurationCount" must be greater than "liveSyncDurationCount"');if(void 0!==e.liveMaxLatencyDuration&&(void 0===e.liveSyncDuration||e.liveMaxLatencyDuration<=e.liveSyncDuration))throw new Error('Illegal hls.js config: "liveMaxLatencyDuration" must be greater than "liveSyncDuration"');var r=Rs(t),n=["TimeOut","MaxRetry","RetryDelay","MaxRetryTimeout"];return["manifest","level","frag"].forEach((function(t){var i=("level"===t?"playlist":t)+"LoadPolicy",a=void 0===e[i],s=[];n.forEach((function(n){var o=t+"Loading"+n,l=e[o];if(void 0!==l&&a){s.push(o);var u=r[i].default;switch(e[i]={default:u},n){case"TimeOut":u.maxLoadTimeMs=l,u.maxTimeToFirstByteMs=l;break;case"MaxRetry":u.errorRetry.maxNumRetry=l,u.timeoutRetry.maxNumRetry=l;break;case"RetryDelay":u.errorRetry.retryDelayMs=l,u.timeoutRetry.retryDelayMs=l;break;case"MaxRetryTimeout":u.errorRetry.maxRetryDelayMs=l,u.timeoutRetry.maxRetryDelayMs=l}}})),s.length&&k.warn('hls.js config: "'+s.join('", "')+'" setting(s) are deprecated, use "'+i+'": '+JSON.stringify(e[i]))})),i(i({},r),e)}(t.DefaultConfig,e);this.userConfig=e,r.progressive&&function(t){var e=t.loader;e!==ys&&e!==ms?(k.log("[config]: Custom loader detected, cannot enable progressive streaming"),t.progressive=!1):function(){if(self.fetch&&self.AbortController&&self.ReadableStream&&self.Request)try{return new self.ReadableStream({}),!0}catch(t){}return!1}()&&(t.loader=ys,t.progressive=!0,t.enableSoftwareAES=!0,k.log("[config]: Progressive streaming enabled, using FetchLoader"))}(r);var n=r.abrController,a=r.bufferController,s=r.capLevelController,o=r.errorController,l=r.fpsController,u=new o(this),h=this.abrController=new n(this),d=this.bufferController=new a(this),c=this.capLevelController=new s(this),f=new l(this),g=new Ie(this),v=new Ge(this),m=r.contentSteeringController,p=m?new m(this):null,y=this.levelController=new bs(this,p),T=new wr(this),S=new Ds(this.config),L=this.streamController=new _s(this,T,S);c.setStreamController(L),f.setStreamController(L);var A=[g,y,L];p&&A.splice(1,0,p),this.networkControllers=A;var R=[h,d,c,f,v,T];this.audioTrackController=this.createController(r.audioTrackController,A);var D=r.audioStreamController;D&&A.push(new D(this,T,S)),this.subtitleTrackController=this.createController(r.subtitleTrackController,A);var I=r.subtitleStreamController;I&&A.push(new I(this,T,S)),this.createController(r.timelineController,R),S.emeController=this.emeController=this.createController(r.emeController,R),this.cmcdController=this.createController(r.cmcdController,R),this.latencyController=this.createController(Ke,R),this.coreComponents=R,A.push(u);var w=u.onErrorOut;"function"==typeof w&&this.on(E.ERROR,w,u)}t.isMSESupported=function(){return ws()},t.isSupported=function(){return function(){if(!ws())return!1;var t=zt();return"function"==typeof(null==t?void 0:t.isTypeSupported)&&(["avc1.42E01E,mp4a.40.2","av01.0.01M.08","vp09.00.50.08"].some((function(e){return t.isTypeSupported(Zt(e,"video"))}))||["mp4a.40.2","fLaC"].some((function(e){return t.isTypeSupported(Zt(e,"audio"))})))}()},t.getMediaSource=function(){return zt()};var e=t.prototype;return e.createController=function(t,e){if(t){var r=new t(this);return e&&e.push(r),r}return null},e.on=function(t,e,r){void 0===r&&(r=this),this._emitter.on(t,e,r)},e.once=function(t,e,r){void 0===r&&(r=this),this._emitter.once(t,e,r)},e.removeAllListeners=function(t){this._emitter.removeAllListeners(t)},e.off=function(t,e,r,i){void 0===r&&(r=this),this._emitter.off(t,e,r,i)},e.listeners=function(t){return this._emitter.listeners(t)},e.emit=function(t,e,r){return this._emitter.emit(t,e,r)},e.trigger=function(t,e){if(this.config.debug)return this.emit(t,t,e);try{return this.emit(t,t,e)}catch(e){if(k.error("An internal error happened while handling event "+t+'. Error message: "'+e.message+'". Here is a stacktrace:',e),!this.triggeringException){this.triggeringException=!0;var r=t===E.ERROR;this.trigger(E.ERROR,{type:T.OTHER_ERROR,details:S.INTERNAL_EXCEPTION,fatal:r,event:t,error:e}),this.triggeringException=!1}}return!1},e.listenerCount=function(t){return this._emitter.listenerCount(t)},e.destroy=function(){k.log("destroy"),this.trigger(E.DESTROYING,void 0),this.detachMedia(),this.removeAllListeners(),this._autoLevelCapping=-1,this.url=null,this.networkControllers.forEach((function(t){return t.destroy()})),this.networkControllers.length=0,this.coreComponents.forEach((function(t){return t.destroy()})),this.coreComponents.length=0;var t=this.config;t.xhrSetup=t.fetchSetup=void 0,this.userConfig=null},e.attachMedia=function(t){k.log("attachMedia"),this._media=t,this.trigger(E.MEDIA_ATTACHING,{media:t})},e.detachMedia=function(){k.log("detachMedia"),this.trigger(E.MEDIA_DETACHING,void 0),this._media=null},e.loadSource=function(t){this.stopLoad();var e=this.media,r=this.url,i=this.url=v.buildAbsoluteURL(self.location.href,t,{alwaysNormalize:!0});this._autoLevelCapping=-1,this._maxHdcpLevel=null,k.log("loadSource:"+i),e&&r&&(r!==i||this.bufferController.hasSourceTypes())&&(this.detachMedia(),this.attachMedia(e)),this.trigger(E.MANIFEST_LOADING,{url:t})},e.startLoad=function(t){void 0===t&&(t=-1),k.log("startLoad("+t+")"),this.started=!0,this.networkControllers.forEach((function(e){e.startLoad(t)}))},e.stopLoad=function(){k.log("stopLoad"),this.started=!1,this.networkControllers.forEach((function(t){t.stopLoad()}))},e.resumeBuffering=function(){this.started&&this.networkControllers.forEach((function(t){"fragmentLoader"in t&&t.startLoad(-1)}))},e.pauseBuffering=function(){this.networkControllers.forEach((function(t){"fragmentLoader"in t&&t.stopLoad()}))},e.swapAudioCodec=function(){k.log("swapAudioCodec"),this.streamController.swapAudioCodec()},e.recoverMediaError=function(){k.log("recoverMediaError");var t=this._media;this.detachMedia(),t&&this.attachMedia(t)},e.removeLevel=function(t){this.levelController.removeLevel(t)},e.setAudioOption=function(t){var e;return null==(e=this.audioTrackController)?void 0:e.setAudioOption(t)},e.setSubtitleOption=function(t){var e;return null==(e=this.subtitleTrackController)||e.setSubtitleOption(t),null},s(t,[{key:"levels",get:function(){return this.levelController.levels||[]}},{key:"currentLevel",get:function(){return this.streamController.currentLevel},set:function(t){k.log("set currentLevel:"+t),this.levelController.manualLevel=t,this.streamController.immediateLevelSwitch()}},{key:"nextLevel",get:function(){return this.streamController.nextLevel},set:function(t){k.log("set nextLevel:"+t),this.levelController.manualLevel=t,this.streamController.nextLevelSwitch()}},{key:"loadLevel",get:function(){return this.levelController.level},set:function(t){k.log("set loadLevel:"+t),this.levelController.manualLevel=t}},{key:"nextLoadLevel",get:function(){return this.levelController.nextLoadLevel},set:function(t){this.levelController.nextLoadLevel=t}},{key:"firstLevel",get:function(){return Math.max(this.levelController.firstLevel,this.minAutoLevel)},set:function(t){k.log("set firstLevel:"+t),this.levelController.firstLevel=t}},{key:"startLevel",get:function(){var t=this.levelController.startLevel;return-1===t&&this.abrController.forcedAutoLevel>-1?this.abrController.forcedAutoLevel:t},set:function(t){k.log("set startLevel:"+t),-1!==t&&(t=Math.max(t,this.minAutoLevel)),this.levelController.startLevel=t}},{key:"capLevelToPlayerSize",get:function(){return this.config.capLevelToPlayerSize},set:function(t){var e=!!t;e!==this.config.capLevelToPlayerSize&&(e?this.capLevelController.startCapping():(this.capLevelController.stopCapping(),this.autoLevelCapping=-1,this.streamController.nextLevelSwitch()),this.config.capLevelToPlayerSize=e)}},{key:"autoLevelCapping",get:function(){return this._autoLevelCapping},set:function(t){this._autoLevelCapping!==t&&(k.log("set autoLevelCapping:"+t),this._autoLevelCapping=t,this.levelController.checkMaxAutoUpdated())}},{key:"bandwidthEstimate",get:function(){var t=this.abrController.bwEstimator;return t?t.getEstimate():NaN},set:function(t){this.abrController.resetEstimator(t)}},{key:"ttfbEstimate",get:function(){var t=this.abrController.bwEstimator;return t?t.getEstimateTTFB():NaN}},{key:"maxHdcpLevel",get:function(){return this._maxHdcpLevel},set:function(t){(function(t){return He.indexOf(t)>-1})(t)&&this._maxHdcpLevel!==t&&(this._maxHdcpLevel=t,this.levelController.checkMaxAutoUpdated())}},{key:"autoLevelEnabled",get:function(){return-1===this.levelController.manualLevel}},{key:"manualLevel",get:function(){return this.levelController.manualLevel}},{key:"minAutoLevel",get:function(){var t=this.levels,e=this.config.minAutoBitrate;if(!t)return 0;for(var r=t.length,i=0;i=e)return i;return 0}},{key:"maxAutoLevel",get:function(){var t,e=this.levels,r=this.autoLevelCapping,i=this.maxHdcpLevel;if(t=-1===r&&null!=e&&e.length?e.length-1:r,i)for(var n=t;n--;){var a=e[n].attrs["HDCP-LEVEL"];if(a&&a<=i)return n}return t}},{key:"firstAutoLevel",get:function(){return this.abrController.firstAutoLevel}},{key:"nextAutoLevel",get:function(){return this.abrController.nextAutoLevel},set:function(t){this.abrController.nextAutoLevel=t}},{key:"playingDate",get:function(){return this.streamController.currentProgramDateTime}},{key:"mainForwardBufferInfo",get:function(){return this.streamController.getMainFwdBufferInfo()}},{key:"allAudioTracks",get:function(){var t=this.audioTrackController;return t?t.allAudioTracks:[]}},{key:"audioTracks",get:function(){var t=this.audioTrackController;return t?t.audioTracks:[]}},{key:"audioTrack",get:function(){var t=this.audioTrackController;return t?t.audioTrack:-1},set:function(t){var e=this.audioTrackController;e&&(e.audioTrack=t)}},{key:"allSubtitleTracks",get:function(){var t=this.subtitleTrackController;return t?t.allSubtitleTracks:[]}},{key:"subtitleTracks",get:function(){var t=this.subtitleTrackController;return t?t.subtitleTracks:[]}},{key:"subtitleTrack",get:function(){var t=this.subtitleTrackController;return t?t.subtitleTrack:-1},set:function(t){var e=this.subtitleTrackController;e&&(e.subtitleTrack=t)}},{key:"media",get:function(){return this._media}},{key:"subtitleDisplay",get:function(){var t=this.subtitleTrackController;return!!t&&t.subtitleDisplay},set:function(t){var e=this.subtitleTrackController;e&&(e.subtitleDisplay=t)}},{key:"lowLatencyMode",get:function(){return this.config.lowLatencyMode},set:function(t){this.config.lowLatencyMode=t}},{key:"liveSyncPosition",get:function(){return this.latencyController.liveSyncPosition}},{key:"latency",get:function(){return this.latencyController.latency}},{key:"maxLatency",get:function(){return this.latencyController.maxLatency}},{key:"targetLatency",get:function(){return this.latencyController.targetLatency}},{key:"drift",get:function(){return this.latencyController.drift}},{key:"forceStartLoad",get:function(){return this.streamController.forceStartLoad}}],[{key:"version",get:function(){return"1.5.8"}},{key:"Events",get:function(){return E}},{key:"ErrorTypes",get:function(){return T}},{key:"ErrorDetails",get:function(){return S}},{key:"DefaultConfig",get:function(){return t.defaultConfig?t.defaultConfig:As},set:function(e){t.defaultConfig=e}}]),t}();return xs.defaultConfig=void 0,xs},t.exports=i()}(!1)},3242:(t,e,r)=>{"use strict";r.d(e,{A:()=>o});var i=r(3991);const n="oplayer-plugin-hls",a=(t,e,r)=>"hls"===e.format||"m3u8"===e.format||("auto"===e.format||"undefined"===typeof e.format)&&/m3u8(#|\?|$)/i.test(e.src)&&(r||!(Boolean(t.canPlayType("application/x-mpegURL"))||Boolean(t.canPlayType("application/vnd.apple.mpegURL"))));class s{constructor(t){this.key="hls",this.name=n,this.version="1.2.26",this.options={config:{},forceHLS:!1,textControl:!0,audioControl:!0,qualityControl:!0,withBitrate:!1,qualitySwitch:"immediate",matcher:a},Object.assign(this.options,t)}apply(t){return this.player=t,this}async load(t,e){var a;let o=t.$video;const u=this.options,h=u.matcher,d=u.forceHLS,c=u.library;if(!h(o,e,d))return!1;if(s.library||(s.library=c?await(0,i.VD)(c,"Hls"):(await r.e(458).then(r.t.bind(r,187,19))).default),!s.library.isSupported())return!1;const f=this.options,g=f.config,v=f.errorHandler;this.instance=new s.library(g),this.instance.attachMedia(o);const m=this.instance,p=this.player,y=document.createElement("source");return y.setAttribute("src",e.src),y.setAttribute("type",e.type||(e.type="application/x-mpegurl")),y.setAttribute("data-hls",""),o.append(y),m.on(s.library.Events.DESTROYING,(()=>{y.remove()})),m.on(s.library.Events.ERROR,(function(t,e){if(e.fatal)if("mediaError"===e.type)m.recoverMediaError();else v?v(p,e):(p.hasError=!0,p.emit("error",Object.assign({},e,{pluginName:n,message:e.type+": "+(e.reason||e.details)})))})),m.on(s.library.Events.LEVEL_LOADED,((t,e)=>{setTimeout((()=>{p.emit("canplay",e)}))})),m.loadSource(e.src),(null==(a=p.context.ui)?void 0:a.setting)&&l(p,m,this.options),this}unload(){var t;null==(t=this.instance)||t.stopLoad()}destroy(){var t;if(this.instance){const e=this.player,r=this.instance;(null==(t=e.context.ui)?void 0:t.setting)&&u(e),r.destroy()}}}function o(t){return new s(t)}s.library=globalThis.Hls;const l=function(t,e){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const i=t.context.ui;function a(e){const r=e.settings();if(r&&r.length<2)return;const i=e.name,a=e.icon,s=e.onChange;t.context.ui.setting.unregister(n+"-"+i),t.context.ui.setting.register({name:t.locales.get(i),icon:a,onChange:s,type:"selector",key:n+"-"+i,children:r})}r.qualityControl&&(e.once(s.library.Events.LEVEL_LOADED,(()=>{a({icon:i.icons.quality,name:"Quality",settings:()=>e.levels.length>1?e.levels.reduce(((t,i,n)=>{let a=(i.name||i.height).toString();if(isFinite(+a)&&(a+="p"),r.withBitrate){const t=i.bitrate/1e3,e=t>1e3;a+=" ("+(e?(t/1e3).toFixed(2):Math.floor(t))+(e?"m":"k")+"bps)"}return t.push({name:a,default:e.currentLevel==n,value:n}),t}),[{name:t.locales.get("Auto"),default:e.autoLevelEnabled,value:-1}]):[],onChange(t){"immediate"==r.qualitySwitch?(e.currentLevel=t.value,-1!==t.value&&(e.loadLevel=t.value)):(e.nextLevel=t.value,-1!==t.value&&(e.nextLoadLevel=t.value))}})})),e.on(s.library.Events.LEVEL_SWITCHED,(function(r,a){let s=a.level;if(e.autoLevelEnabled){const r=e.levels[s].height,a=t.locales.get("Auto")+(r?" ("+r+"p)":"");i.setting.updateLabel(n+"-Quality",a)}else i.setting.select(n+"-Quality",s+1,!1)}))),r.audioControl&&e.on(s.library.Events.LEVEL_LOADED,(()=>{a({icon:i.icons.lang,name:"Language",settings:()=>e.audioTracks.length>1?e.audioTracks.map((t=>{let r=t.name,i=t.lang,n=t.id;return{name:i||r,default:e.audioTrack==n,value:n}})):[],onChange(t){e.audioTrack=t.value}})})),r.textControl&&e.on(s.library.Events.SUBTITLE_TRACK_LOADED,(()=>{a({icon:i.icons.subtitle,name:"Subtitle",settings:()=>e.subtitleTracks.length>1?e.subtitleTracks.reduce(((t,r)=>{let i=r.name,n=r.lang,a=r.id;return t.push({name:n||i,default:e.subtitleTrack==a,value:a}),t}),[{name:t.locales.get("Off"),default:!e.subtitleDisplay,value:-1}]):[],onChange(t){let r=t.value;(e.subtitleDisplay=!(-1==r))&&(e.subtitleTrack=r)}})}))},u=t=>{["Quality","Language","Subtitle"].forEach((e=>t.context.ui.setting.unregister(n+"-"+e)))}}}]); \ No newline at end of file +(self.webpackChunk_web_index=self.webpackChunk_web_index||[]).push([[458],{837:t=>{!function e(r){var i;i=function(){"use strict";function t(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,i)}return r}function i(e){for(var r=1;rt.length)&&(e=t.length);for(var r=0,i=new Array(e);r1?e-1:0),i=1;i"):L}(e)}))}(t,"debug","log","info","warn","error");try{R.log('Debug logs enabled for "'+e+'" in hls.js version 1.5.8')}catch(t){R=A}}else R=A}var k=R,D=/^(\d+)x(\d+)$/,I=/(.+?)=(".*?"|.*?)(?:,|$)/g,w=function(){function t(e){"string"==typeof e&&(e=t.parseAttrList(e)),o(this,e)}var e=t.prototype;return e.decimalInteger=function(t){var e=parseInt(this[t],10);return e>Number.MAX_SAFE_INTEGER?1/0:e},e.hexadecimalInteger=function(t){if(this[t]){var e=(this[t]||"0x").slice(2);e=(1&e.length?"0":"")+e;for(var r=new Uint8Array(e.length/2),i=0;iNumber.MAX_SAFE_INTEGER?1/0:e},e.decimalFloatingPoint=function(t){return parseFloat(this[t])},e.optionalFloat=function(t,e){var r=this[t];return r?parseFloat(r):e},e.enumeratedString=function(t){return this[t]},e.bool=function(t){return"YES"===this[t]},e.decimalResolution=function(t){var e=D.exec(this[t]);if(null!==e)return{width:parseInt(e[1],10),height:parseInt(e[2],10)}},t.parseAttrList=function(t){var e,r={};for(I.lastIndex=0;null!==(e=I.exec(t));){var i=e[2];0===i.indexOf('"')&&i.lastIndexOf('"')===i.length-1&&(i=i.slice(1,-1)),r[e[1].trim()]=i}return r},s(t,[{key:"clientAttrs",get:function(){return Object.keys(this).filter((function(t){return"X-"===t.substring(0,2)}))}}]),t}();function C(t){return"SCTE35-OUT"===t||"SCTE35-IN"===t}var _=function(){function t(t,e){if(this.attr=void 0,this._startDate=void 0,this._endDate=void 0,this._badValueForSameId=void 0,e){var r=e.attr;for(var i in r)if(Object.prototype.hasOwnProperty.call(t,i)&&t[i]!==r[i]){k.warn('DATERANGE tag attribute: "'+i+'" does not match for tags with ID: "'+t.ID+'"'),this._badValueForSameId=i;break}t=o(new w({}),r,t)}if(this.attr=t,this._startDate=new Date(t["START-DATE"]),"END-DATE"in this.attr){var n=new Date(this.attr["END-DATE"]);m(n.getTime())&&(this._endDate=n)}}return s(t,[{key:"id",get:function(){return this.attr.ID}},{key:"class",get:function(){return this.attr.CLASS}},{key:"startDate",get:function(){return this._startDate}},{key:"endDate",get:function(){if(this._endDate)return this._endDate;var t=this.duration;return null!==t?new Date(this._startDate.getTime()+1e3*t):null}},{key:"duration",get:function(){if("DURATION"in this.attr){var t=this.attr.decimalFloatingPoint("DURATION");if(m(t))return t}else if(this._endDate)return(this._endDate.getTime()-this._startDate.getTime())/1e3;return null}},{key:"plannedDuration",get:function(){return"PLANNED-DURATION"in this.attr?this.attr.decimalFloatingPoint("PLANNED-DURATION"):null}},{key:"endOnNext",get:function(){return this.attr.bool("END-ON-NEXT")}},{key:"isValid",get:function(){return!!this.id&&!this._badValueForSameId&&m(this.startDate.getTime())&&(null===this.duration||this.duration>=0)&&(!this.endOnNext||!!this.class)}}]),t}(),x=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}},P="audio",F="video",M="audiovideo",O=function(){function t(t){var e;this._byteRange=null,this._url=null,this.baseurl=void 0,this.relurl=void 0,this.elementaryStreams=((e={})[P]=null,e[F]=null,e[M]=null,e),this.baseurl=t}return t.prototype.setByteRange=function(t,e){var r,i=t.split("@",2);r=1===i.length?(null==e?void 0:e.byteRangeEndOffset)||0:parseInt(i[1]),this._byteRange=[r,parseInt(i[0])+r]},s(t,[{key:"byteRange",get:function(){return this._byteRange?this._byteRange:[]}},{key:"byteRangeStartOffset",get:function(){return this.byteRange[0]}},{key:"byteRangeEndOffset",get:function(){return this.byteRange[1]}},{key:"url",get:function(){return!this._url&&this.baseurl&&this.relurl&&(this._url=v.buildAbsoluteURL(this.baseurl,this.relurl,{alwaysNormalize:!0})),this._url||""},set:function(t){this._url=t}}]),t}(),N=function(t){function e(e,r){var i;return(i=t.call(this,r)||this)._decryptdata=null,i.rawProgramDateTime=null,i.programDateTime=null,i.tagList=[],i.duration=0,i.sn=0,i.levelkeys=void 0,i.type=void 0,i.loader=null,i.keyLoader=null,i.level=-1,i.cc=0,i.startPTS=void 0,i.endPTS=void 0,i.startDTS=void 0,i.endDTS=void 0,i.start=0,i.deltaPTS=void 0,i.maxStartPTS=void 0,i.minEndPTS=void 0,i.stats=new x,i.data=void 0,i.bitrateTest=!1,i.title=null,i.initSegment=null,i.endList=void 0,i.gap=void 0,i.urlId=0,i.type=e,i}l(e,t);var r=e.prototype;return r.setKeyFormat=function(t){if(this.levelkeys){var e=this.levelkeys[t];e&&!this._decryptdata&&(this._decryptdata=e.getDecryptData(this.sn))}},r.abortRequests=function(){var t,e;null==(t=this.loader)||t.abort(),null==(e=this.keyLoader)||e.abort()},r.setElementaryStreamInfo=function(t,e,r,i,n,a){void 0===a&&(a=!1);var s=this.elementaryStreams,o=s[t];o?(o.startPTS=Math.min(o.startPTS,e),o.endPTS=Math.max(o.endPTS,r),o.startDTS=Math.min(o.startDTS,i),o.endDTS=Math.max(o.endDTS,n)):s[t]={startPTS:e,endPTS:r,startDTS:i,endDTS:n,partial:a}},r.clearElementaryStreamInfo=function(){var t=this.elementaryStreams;t[P]=null,t[F]=null,t[M]=null},s(e,[{key:"decryptdata",get:function(){if(!this.levelkeys&&!this._decryptdata)return null;if(!this._decryptdata&&this.levelkeys&&!this.levelkeys.NONE){var t=this.levelkeys.identity;if(t)this._decryptdata=t.getDecryptData(this.sn);else{var e=Object.keys(this.levelkeys);if(1===e.length)return this._decryptdata=this.levelkeys[e[0]].getDecryptData(this.sn)}}return this._decryptdata}},{key:"end",get:function(){return this.start+this.duration}},{key:"endProgramDateTime",get:function(){if(null===this.programDateTime)return null;if(!m(this.programDateTime))return null;var t=m(this.duration)?this.duration:0;return this.programDateTime+1e3*t}},{key:"encrypted",get:function(){var t;if(null!=(t=this._decryptdata)&&t.encrypted)return!0;if(this.levelkeys){var e=Object.keys(this.levelkeys),r=e.length;if(r>1||1===r&&this.levelkeys[e[0]].encrypted)return!0}return!1}}]),e}(O),U=function(t){function e(e,r,i,n,a){var s;(s=t.call(this,i)||this).fragOffset=0,s.duration=0,s.gap=!1,s.independent=!1,s.relurl=void 0,s.fragment=void 0,s.index=void 0,s.stats=new x,s.duration=e.decimalFloatingPoint("DURATION"),s.gap=e.bool("GAP"),s.independent=e.bool("INDEPENDENT"),s.relurl=e.enumeratedString("URI"),s.fragment=r,s.index=n;var o=e.enumeratedString("BYTERANGE");return o&&s.setByteRange(o,a),a&&(s.fragOffset=a.fragOffset+a.duration),s}return l(e,t),s(e,[{key:"start",get:function(){return this.fragment.start+this.fragOffset}},{key:"end",get:function(){return this.start+this.duration}},{key:"loaded",get:function(){var t=this.elementaryStreams;return!!(t.audio||t.video||t.audiovideo)}}]),e}(O),B=function(){function t(t){this.PTSKnown=!1,this.alignedSliding=!1,this.averagetargetduration=void 0,this.endCC=0,this.endSN=0,this.fragments=void 0,this.fragmentHint=void 0,this.partList=null,this.dateRanges=void 0,this.live=!0,this.ageHeader=0,this.advancedDateTime=void 0,this.updated=!0,this.advanced=!0,this.availabilityDelay=void 0,this.misses=0,this.startCC=0,this.startSN=0,this.startTimeOffset=null,this.targetduration=0,this.totalduration=0,this.type=null,this.url=void 0,this.m3u8="",this.version=null,this.canBlockReload=!1,this.canSkipUntil=0,this.canSkipDateRanges=!1,this.skippedSegments=0,this.recentlyRemovedDateranges=void 0,this.partHoldBack=0,this.holdBack=0,this.partTarget=0,this.preloadHint=void 0,this.renditionReports=void 0,this.tuneInGoal=0,this.deltaUpdateFailed=void 0,this.driftStartTime=0,this.driftEndTime=0,this.driftStart=0,this.driftEnd=0,this.encryptedFragments=void 0,this.playlistParsingError=null,this.variableList=null,this.hasVariableRefs=!1,this.fragments=[],this.encryptedFragments=[],this.dateRanges={},this.url=t}return t.prototype.reloaded=function(t){if(!t)return this.advanced=!0,void(this.updated=!0);var e=this.lastPartSn-t.lastPartSn,r=this.lastPartIndex-t.lastPartIndex;this.updated=this.endSN!==t.endSN||!!r||!!e||!this.live,this.advanced=this.endSN>t.endSN||e>0||0===e&&r>0,this.updated||this.advanced?this.misses=Math.floor(.6*t.misses):this.misses=t.misses+1,this.availabilityDelay=t.availabilityDelay},s(t,[{key:"hasProgramDateTime",get:function(){return!!this.fragments.length&&m(this.fragments[this.fragments.length-1].programDateTime)}},{key:"levelTargetDuration",get:function(){return this.averagetargetduration||this.targetduration||10}},{key:"drift",get:function(){var t=this.driftEndTime-this.driftStartTime;return t>0?1e3*(this.driftEnd-this.driftStart)/t:1}},{key:"edge",get:function(){return this.partEnd||this.fragmentEnd}},{key:"partEnd",get:function(){var t;return null!=(t=this.partList)&&t.length?this.partList[this.partList.length-1].end:this.fragmentEnd}},{key:"fragmentEnd",get:function(){var t;return null!=(t=this.fragments)&&t.length?this.fragments[this.fragments.length-1].end:0}},{key:"age",get:function(){return this.advancedDateTime?Math.max(Date.now()-this.advancedDateTime,0)/1e3:0}},{key:"lastPartIndex",get:function(){var t;return null!=(t=this.partList)&&t.length?this.partList[this.partList.length-1].index:-1}},{key:"lastPartSn",get:function(){var t;return null!=(t=this.partList)&&t.length?this.partList[this.partList.length-1].fragment.sn:this.endSN}}]),t}();function G(t){return Uint8Array.from(atob(t),(function(t){return t.charCodeAt(0)}))}function K(t){return Uint8Array.from(unescape(encodeURIComponent(t)),(function(t){return t.charCodeAt(0)}))}var H="undefined"!=typeof self?self:void 0,V={CLEARKEY:"org.w3.clearkey",FAIRPLAY:"com.apple.fps",PLAYREADY:"com.microsoft.playready",WIDEVINE:"com.widevine.alpha"},Y="org.w3.clearkey",W="com.apple.streamingkeydelivery",j="com.microsoft.playready",q="urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed";function X(t){switch(t){case W:return V.FAIRPLAY;case j:return V.PLAYREADY;case q:return V.WIDEVINE;case Y:return V.CLEARKEY}}var z="edef8ba979d64acea3c827dcd51d21ed";function Q(t){switch(t){case V.FAIRPLAY:return W;case V.PLAYREADY:return j;case V.WIDEVINE:return q;case V.CLEARKEY:return Y}}function J(t){var e=t.drmSystems,r=t.widevineLicenseUrl,i=e?[V.FAIRPLAY,V.WIDEVINE,V.PLAYREADY,V.CLEARKEY].filter((function(t){return!!e[t]})):[];return!i[V.WIDEVINE]&&r&&i.push(V.WIDEVINE),i}var $,Z=null!=H&&null!=($=H.navigator)&&$.requestMediaKeySystemAccess?self.navigator.requestMediaKeySystemAccess.bind(self.navigator):null;function tt(t,e,r){return Uint8Array.prototype.slice?t.slice(e,r):new Uint8Array(Array.prototype.slice.call(t,e,r))}var et,rt=function(t,e){return e+10<=t.length&&73===t[e]&&68===t[e+1]&&51===t[e+2]&&t[e+3]<255&&t[e+4]<255&&t[e+6]<128&&t[e+7]<128&&t[e+8]<128&&t[e+9]<128},it=function(t,e){return e+10<=t.length&&51===t[e]&&68===t[e+1]&&73===t[e+2]&&t[e+3]<255&&t[e+4]<255&&t[e+6]<128&&t[e+7]<128&&t[e+8]<128&&t[e+9]<128},nt=function(t,e){for(var r=e,i=0;rt(t,e);)i+=10,i+=at(t,e+6),it(t,e+10)&&(i+=10),e+=i;if(i>0)return t.subarray(r,r+i)},at=function(t,e){var r=0;return r=(127&t[e])<<21,r|=(127&t[e+1])<<14,(r|=(127&t[e+2])<<7)|127&t[e+3]},st=function(t,e){return rt(t,e)&&at(t,e+6)+10<=t.length-e},ot=function(t){for(var e=ht(t),r=0;r>4){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:u+=String.fromCharCode(a);break;case 12:case 13:s=t[h++],u+=String.fromCharCode((31&a)<<6|63&s);break;case 14:s=t[h++],o=t[h++],u+=String.fromCharCode((15&a)<<12|(63&s)<<6|63&o)}}return u};var pt=function(t){for(var e="",r=0;r>24,t[e+1]=r>>16&255,t[e+2]=r>>8&255,t[e+3]=255&r}function Dt(t,e){var r=[];if(!e.length)return r;for(var i=t.byteLength,n=0;n1?n+a:i;if(St(t.subarray(n+4,n+8))===e[0])if(1===e.length)r.push(t.subarray(n+8,s));else{var o=Dt(t.subarray(n+8,s),e.slice(1));o.length&&Et.apply(r,o)}n=s}return r}function It(t){var e=[],r=t[0],i=8,n=At(t,i);i+=4;var a=0,s=0;0===r?(a=At(t,i),s=At(t,i+4),i+=8):(a=Rt(t,i),s=Rt(t,i+8),i+=16),i+=2;var o=t.length+s,l=Lt(t,i);i+=2;for(var u=0;u>>31)return k.warn("SIDX has hierarchical references (not supported)"),null;var f=At(t,h);h+=4,e.push({referenceSize:c,subsegmentDuration:f,info:{duration:f/n,start:o,end:o+c-1}}),o+=c,i=h+=4}return{earliestPresentationTime:a,timescale:n,version:r,referencesCount:l,references:e}}function wt(t){for(var e=[],r=Dt(t,["moov","trak"]),n=0;n12){var h=4;if(3!==u[h++])break;h=_t(u,h),h+=2;var d=u[h++];if(128&d&&(h+=2),64&d&&(h+=u[h++]),4!==u[h++])break;h=_t(u,h);var c=u[h++];if(64!==c)break;if(n+="."+xt(c),h+=12,5!==u[h++])break;h=_t(u,h);var f=u[h++],g=(248&f)>>3;31===g&&(g+=1+((7&f)<<3)+((224&u[h])>>5)),n+="."+g}break;case"hvc1":case"hev1":var v=Dt(r,["hvcC"])[0],m=v[1],p=["","A","B","C"][m>>6],y=31&m,E=At(v,2),T=(32&m)>>5?"H":"L",S=v[12],L=v.subarray(6,12);n+="."+p+y,n+="."+E.toString(16).toUpperCase(),n+="."+T+S;for(var A="",R=L.length;R--;){var b=L[R];(b||A)&&(A="."+b.toString(16).toUpperCase()+A)}n+=A;break;case"dvh1":case"dvhe":var k=Dt(r,["dvcC"])[0],D=k[2]>>1&127,I=k[2]<<5&32|k[3]>>3&31;n+="."+Pt(D)+"."+Pt(I);break;case"vp09":var w=Dt(r,["vpcC"])[0],C=w[4],_=w[5],x=w[6]>>4&15;n+="."+Pt(C)+"."+Pt(_)+"."+Pt(x);break;case"av01":var P=Dt(r,["av1C"])[0],F=P[1]>>>5,M=31&P[1],O=P[2]>>>7?"H":"M",N=(64&P[2])>>6,U=(32&P[2])>>5,B=2===F&&N?U?12:10:N?10:8,G=(16&P[2])>>4,K=(8&P[2])>>3,H=(4&P[2])>>2,V=3&P[2];n+="."+F+"."+Pt(M)+O+"."+Pt(B)+"."+G+"."+K+H+V+"."+Pt(1)+"."+Pt(1)+"."+Pt(1)+".0"}return{codec:n,encrypted:a}}function _t(t,e){for(var r=e+5;128&t[e++]&&e>1&63;return 39===r||40===r}return 6==(31&e)}function Bt(t,e,r,i){var n=Gt(t),a=0;a+=e;for(var s=0,o=0,l=0;a=n.length)break;s+=l=n[a++]}while(255===l);o=0;do{if(a>=n.length)break;o+=l=n[a++]}while(255===l);var u=n.length-a,h=a;if(ou){k.error("Malformed SEI payload. "+o+" is too small, only "+u+" bytes left to parse.");break}if(4===s){if(181===n[h++]){var d=Lt(n,h);if(h+=2,49===d){var c=At(n,h);if(h+=4,1195456820===c){var f=n[h++];if(3===f){var g=n[h++],v=64&g,m=v?2+3*(31&g):0,p=new Uint8Array(m);if(v){p[0]=g;for(var y=1;y16){for(var E=[],T=0;T<16;T++){var S=n[h++].toString(16);E.push(1==S.length?"0"+S:S),3!==T&&5!==T&&7!==T&&9!==T||E.push("-")}for(var L=o-16,A=new Uint8Array(L),R=0;R>8*(15-r)&255;return e}(e);return new t(this.method,this.uri,"identity",this.keyFormatVersions,r)}var i=function(t){var e,r,i=t.split(":"),n=null;if("data"===i[0]&&2===i.length){var a=i[1].split(";"),s=a[a.length-1].split(",");if(2===s.length){var o="base64"===s[0],l=s[1];o?(a.splice(-1,1),n=G(l)):(e=K(l).subarray(0,16),(r=new Uint8Array(16)).set(e,16-e.length),n=r)}}return n}(this.uri);if(i)switch(this.keyFormat){case q:this.pssh=i,i.length>=22&&(this.keyId=i.subarray(i.length-22,i.length-6));break;case j:var n=new Uint8Array([154,4,240,121,152,64,66,134,171,146,230,91,224,136,95,149]);this.pssh=function(t,e,r){if(16!==t.byteLength)throw new RangeError("Invalid system id");var i,n,a;if(e){i=1,n=new Uint8Array(16*e.length);for(var s=0;s0?(a=new Uint8Array(4),e.length>0&&new DataView(a.buffer).setUint32(0,e.length,!1)):a=new Uint8Array;var l=new Uint8Array(4);return r&&r.byteLength>0&&new DataView(l.buffer).setUint32(0,r.byteLength,!1),function(t){for(var e=arguments.length,r=new Array(e>1?e-1:0),i=1;i>24&255,o[1]=a>>16&255,o[2]=a>>8&255,o[3]=255&a,o.set(t,4),s=0,a=8;s0&&a.length0&&X.bool("CAN-SKIP-DATERANGES"),h.partHoldBack=X.optionalFloat("PART-HOLD-BACK",0),h.holdBack=X.optionalFloat("HOLD-BACK",0);break;case"PART-INF":var z=new w(C);h.partTarget=z.decimalFloatingPoint("PART-TARGET");break;case"PART":var Q=h.partList;Q||(Q=h.partList=[]);var J=g>0?Q[Q.length-1]:void 0,$=g++,Z=new w(C);Wt(h,Z,["BYTERANGE","URI"]);var tt=new U(Z,E,e,$,J);Q.push(tt),E.duration+=tt.duration;break;case"PRELOAD-HINT":var et=new w(C);Wt(h,et,["URI"]),h.preloadHint=et;break;case"RENDITION-REPORT":var rt=new w(C);Wt(h,rt,["URI"]),h.renditionReports=h.renditionReports||[],h.renditionReports.push(rt);break;default:k.warn("line parsed but not handled: "+s)}}}y&&!y.relurl?(d.pop(),v-=y.duration,h.partList&&(h.fragmentHint=y)):h.partList&&(me(E,y),E.cc=p,h.fragmentHint=E,u&&ye(E,u,h));var it=d.length,nt=d[0],at=d[it-1];if((v+=h.skippedSegments*h.targetduration)>0&&it&&at){h.averagetargetduration=v/it;var st=at.sn;h.endSN="initSegment"!==st?st:0,h.live||(at.endList=!0),nt&&(h.startCC=nt.cc)}else h.endSN=0,h.startCC=0;return h.fragmentHint&&(v+=h.fragmentHint.duration),h.totalduration=v,h.endCC=p,T>0&&function(t,e){for(var r=t[e],i=e;i--;){var n=t[i];if(!n)return;n.programDateTime=r.programDateTime-1e3*n.duration,r=n}}(d,T),h},t}();function ce(t,e,r){var i,n,a=new w(t);Wt(r,a,["KEYFORMAT","KEYFORMATVERSIONS","URI","IV","URI"]);var s=null!=(i=a.METHOD)?i:"",o=a.URI,l=a.hexadecimalInteger("IV"),u=a.KEYFORMATVERSIONS,h=null!=(n=a.KEYFORMAT)?n:"identity";o&&a.IV&&!l&&k.error("Invalid IV: "+a.IV);var d=o?de.resolve(o,e):"",c=(u||"1").split("/").map(Number).filter(Number.isFinite);return new Ht(s,d,h,c,l)}function fe(t){var e=new w(t).decimalFloatingPoint("TIME-OFFSET");return m(e)?e:null}function ge(t,e){var r=(t||"").split(/[ ,]+/).filter((function(t){return t}));["video","audio","text"].forEach((function(t){var i=r.filter((function(e){return function(t,e){var r=Qt[e];return!!r&&!!r[t.slice(0,4)]}(e,t)}));i.length&&(e[t+"Codec"]=i.join(","),r=r.filter((function(t){return-1===i.indexOf(t)})))})),e.unknownCodecs=r}function ve(t,e,r){var i=e[r];i&&(t[r]=i)}function me(t,e){t.rawProgramDateTime?t.programDateTime=Date.parse(t.rawProgramDateTime):null!=e&&e.programDateTime&&(t.programDateTime=e.endProgramDateTime),m(t.programDateTime)||(t.programDateTime=null,t.rawProgramDateTime=null)}function pe(t,e,r,i){t.relurl=e.URI,e.BYTERANGE&&t.setByteRange(e.BYTERANGE),t.level=r,t.sn="initSegment",i&&(t.levelkeys=i),t.initSegment=null}function ye(t,e,r){t.levelkeys=e;var i=r.encryptedFragments;i.length&&i[i.length-1].levelkeys===e||!Object.keys(e).some((function(t){return e[t].isCommonEncryption}))||i.push(t)}var Ee="manifest",Te="level",Se="audioTrack",Le="subtitleTrack",Ae="main",Re="audio",be="subtitle";function ke(t){switch(t.type){case Se:return Re;case Le:return be;default:return Ae}}function De(t,e){var r=t.url;return void 0!==r&&0!==r.indexOf("data:")||(r=e.url),r}var Ie=function(){function t(t){this.hls=void 0,this.loaders=Object.create(null),this.variableList=null,this.hls=t,this.registerListeners()}var e=t.prototype;return e.startLoad=function(t){},e.stopLoad=function(){this.destroyInternalLoaders()},e.registerListeners=function(){var t=this.hls;t.on(E.MANIFEST_LOADING,this.onManifestLoading,this),t.on(E.LEVEL_LOADING,this.onLevelLoading,this),t.on(E.AUDIO_TRACK_LOADING,this.onAudioTrackLoading,this),t.on(E.SUBTITLE_TRACK_LOADING,this.onSubtitleTrackLoading,this)},e.unregisterListeners=function(){var t=this.hls;t.off(E.MANIFEST_LOADING,this.onManifestLoading,this),t.off(E.LEVEL_LOADING,this.onLevelLoading,this),t.off(E.AUDIO_TRACK_LOADING,this.onAudioTrackLoading,this),t.off(E.SUBTITLE_TRACK_LOADING,this.onSubtitleTrackLoading,this)},e.createInternalLoader=function(t){var e=this.hls.config,r=e.pLoader,i=e.loader,n=new(r||i)(e);return this.loaders[t.type]=n,n},e.getInternalLoader=function(t){return this.loaders[t.type]},e.resetInternalLoader=function(t){this.loaders[t]&&delete this.loaders[t]},e.destroyInternalLoaders=function(){for(var t in this.loaders){var e=this.loaders[t];e&&e.destroy(),this.resetInternalLoader(t)}},e.destroy=function(){this.variableList=null,this.unregisterListeners(),this.destroyInternalLoaders()},e.onManifestLoading=function(t,e){var r=e.url;this.variableList=null,this.load({id:null,level:0,responseType:"text",type:Ee,url:r,deliveryDirectives:null})},e.onLevelLoading=function(t,e){var r=e.id,i=e.level,n=e.pathwayId,a=e.url,s=e.deliveryDirectives;this.load({id:r,level:i,pathwayId:n,responseType:"text",type:Te,url:a,deliveryDirectives:s})},e.onAudioTrackLoading=function(t,e){var r=e.id,i=e.groupId,n=e.url,a=e.deliveryDirectives;this.load({id:r,groupId:i,level:null,responseType:"text",type:Se,url:n,deliveryDirectives:a})},e.onSubtitleTrackLoading=function(t,e){var r=e.id,i=e.groupId,n=e.url,a=e.deliveryDirectives;this.load({id:r,groupId:i,level:null,responseType:"text",type:Le,url:n,deliveryDirectives:a})},e.load=function(t){var e,r,i,n=this,a=this.hls.config,s=this.getInternalLoader(t);if(s){var l=s.context;if(l&&l.url===t.url&&l.level===t.level)return void k.trace("[playlist-loader]: playlist request ongoing");k.log("[playlist-loader]: aborting previous loader for type: "+t.type),s.abort()}if(r=t.type===Ee?a.manifestLoadPolicy.default:o({},a.playlistLoadPolicy.default,{timeoutRetry:null,errorRetry:null}),s=this.createInternalLoader(t),m(null==(e=t.deliveryDirectives)?void 0:e.part)&&(t.type===Te&&null!==t.level?i=this.hls.levels[t.level].details:t.type===Se&&null!==t.id?i=this.hls.audioTracks[t.id].details:t.type===Le&&null!==t.id&&(i=this.hls.subtitleTracks[t.id].details),i)){var u=i.partTarget,h=i.targetduration;if(u&&h){var d=1e3*Math.max(3*u,.8*h);r=o({},r,{maxTimeToFirstByteMs:Math.min(d,r.maxTimeToFirstByteMs),maxLoadTimeMs:Math.min(d,r.maxTimeToFirstByteMs)})}}var c=r.errorRetry||r.timeoutRetry||{},f={loadPolicy:r,timeout:r.maxLoadTimeMs,maxRetry:c.maxNumRetry||0,retryDelay:c.retryDelayMs||0,maxRetryDelay:c.maxRetryDelayMs||0},g={onSuccess:function(t,e,r,i){var a=n.getInternalLoader(r);n.resetInternalLoader(r.type);var s=t.data;0===s.indexOf("#EXTM3U")?(e.parsing.start=performance.now(),de.isMediaPlaylist(s)?n.handleTrackOrLevelPlaylist(t,e,r,i||null,a):n.handleMasterPlaylist(t,e,r,i)):n.handleManifestParsingError(t,r,new Error("no EXTM3U delimiter"),i||null,e)},onError:function(t,e,r,i){n.handleNetworkError(e,r,!1,t,i)},onTimeout:function(t,e,r){n.handleNetworkError(e,r,!0,void 0,t)}};s.load(t,f,g)},e.handleMasterPlaylist=function(t,e,r,i){var n=this.hls,a=t.data,s=De(t,r),o=de.parseMasterPlaylist(a,s);if(o.playlistParsingError)this.handleManifestParsingError(t,r,o.playlistParsingError,i,e);else{var l=o.contentSteering,u=o.levels,h=o.sessionData,d=o.sessionKeys,c=o.startTimeOffset,f=o.variableList;this.variableList=f;var g=de.parseMasterPlaylistMedia(a,s,o),v=g.AUDIO,m=void 0===v?[]:v,p=g.SUBTITLES,y=g["CLOSED-CAPTIONS"];m.length&&(m.some((function(t){return!t.url}))||!u[0].audioCodec||u[0].attrs.AUDIO||(k.log("[playlist-loader]: audio codec signaled in quality level, but no embedded audio track signaled, create one"),m.unshift({type:"main",name:"main",groupId:"main",default:!1,autoselect:!1,forced:!1,id:-1,attrs:new w({}),bitrate:0,url:""}))),n.trigger(E.MANIFEST_LOADED,{levels:u,audioTracks:m,subtitles:p,captions:y,contentSteering:l,url:s,stats:e,networkDetails:i,sessionData:h,sessionKeys:d,startTimeOffset:c,variableList:f})}},e.handleTrackOrLevelPlaylist=function(t,e,r,i,n){var a=this.hls,s=r.id,o=r.level,l=r.type,u=De(t,r),h=m(o)?o:m(s)?s:0,d=ke(r),c=de.parseLevelPlaylist(t.data,u,h,d,0,this.variableList);if(l===Ee){var f={attrs:new w({}),bitrate:0,details:c,name:"",url:u};a.trigger(E.MANIFEST_LOADED,{levels:[f],audioTracks:[],url:u,stats:e,networkDetails:i,sessionData:null,sessionKeys:null,contentSteering:null,startTimeOffset:null,variableList:null})}e.parsing.end=performance.now(),r.levelDetails=c,this.handlePlaylistLoaded(c,t,e,r,i,n)},e.handleManifestParsingError=function(t,e,r,i,n){this.hls.trigger(E.ERROR,{type:T.NETWORK_ERROR,details:S.MANIFEST_PARSING_ERROR,fatal:e.type===Ee,url:t.url,err:r,error:r,reason:r.message,response:t,context:e,networkDetails:i,stats:n})},e.handleNetworkError=function(t,e,r,n,a){void 0===r&&(r=!1);var s="A network "+(r?"timeout":"error"+(n?" (status "+n.code+")":""))+" occurred while loading "+t.type;t.type===Te?s+=": "+t.level+" id: "+t.id:t.type!==Se&&t.type!==Le||(s+=" id: "+t.id+' group-id: "'+t.groupId+'"');var o=new Error(s);k.warn("[playlist-loader]: "+s);var l=S.UNKNOWN,u=!1,h=this.getInternalLoader(t);switch(t.type){case Ee:l=r?S.MANIFEST_LOAD_TIMEOUT:S.MANIFEST_LOAD_ERROR,u=!0;break;case Te:l=r?S.LEVEL_LOAD_TIMEOUT:S.LEVEL_LOAD_ERROR,u=!1;break;case Se:l=r?S.AUDIO_TRACK_LOAD_TIMEOUT:S.AUDIO_TRACK_LOAD_ERROR,u=!1;break;case Le:l=r?S.SUBTITLE_TRACK_LOAD_TIMEOUT:S.SUBTITLE_LOAD_ERROR,u=!1}h&&this.resetInternalLoader(t.type);var d={type:T.NETWORK_ERROR,details:l,fatal:u,url:t.url,loader:h,context:t,error:o,networkDetails:e,stats:a};if(n){var c=(null==e?void 0:e.url)||t.url;d.response=i({url:c,data:void 0},n)}this.hls.trigger(E.ERROR,d)},e.handlePlaylistLoaded=function(t,e,r,i,n,a){var s=this.hls,o=i.type,l=i.level,u=i.id,h=i.groupId,d=i.deliveryDirectives,c=De(e,i),f=ke(i),g="number"==typeof i.level&&f===Ae?l:void 0;if(t.fragments.length){t.targetduration||(t.playlistParsingError=new Error("Missing Target Duration"));var v=t.playlistParsingError;if(v)s.trigger(E.ERROR,{type:T.NETWORK_ERROR,details:S.LEVEL_PARSING_ERROR,fatal:!1,url:c,error:v,reason:v.message,response:e,context:i,level:g,parent:f,networkDetails:n,stats:r});else switch(t.live&&a&&(a.getCacheAge&&(t.ageHeader=a.getCacheAge()||0),a.getCacheAge&&!isNaN(t.ageHeader)||(t.ageHeader=0)),o){case Ee:case Te:s.trigger(E.LEVEL_LOADED,{details:t,level:g||0,id:u||0,stats:r,networkDetails:n,deliveryDirectives:d});break;case Se:s.trigger(E.AUDIO_TRACK_LOADED,{details:t,id:u||0,groupId:h||"",stats:r,networkDetails:n,deliveryDirectives:d});break;case Le:s.trigger(E.SUBTITLE_TRACK_LOADED,{details:t,id:u||0,groupId:h||"",stats:r,networkDetails:n,deliveryDirectives:d})}}else{var m=new Error("No Segments found in Playlist");s.trigger(E.ERROR,{type:T.NETWORK_ERROR,details:S.LEVEL_EMPTY_ERROR,fatal:!1,url:c,error:m,reason:m.message,response:e,context:i,level:g,parent:f,networkDetails:n,stats:r})}},t}();function we(t,e){var r;try{r=new Event("addtrack")}catch(t){(r=document.createEvent("Event")).initEvent("addtrack",!1,!1)}r.track=t,e.dispatchEvent(r)}function Ce(t,e){var r=t.mode;if("disabled"===r&&(t.mode="hidden"),t.cues&&!t.cues.getCueById(e.id))try{if(t.addCue(e),!t.cues.getCueById(e.id))throw new Error("addCue is failed for: "+e)}catch(r){k.debug("[texttrack-utils]: "+r);try{var i=new self.TextTrackCue(e.startTime,e.endTime,e.text);i.id=e.id,t.addCue(i)}catch(t){k.debug("[texttrack-utils]: Legacy TextTrackCue fallback failed: "+t)}}"disabled"===r&&(t.mode=r)}function _e(t){var e=t.mode;if("disabled"===e&&(t.mode="hidden"),t.cues)for(var r=t.cues.length;r--;)t.removeCue(t.cues[r]);"disabled"===e&&(t.mode=e)}function xe(t,e,r,i){var n=t.mode;if("disabled"===n&&(t.mode="hidden"),t.cues&&t.cues.length>0)for(var a=function(t,e,r){var i=[],n=function(t,e){if(et[r].endTime)return-1;for(var i=0,n=r;i<=n;){var a=Math.floor((n+i)/2);if(et[a].startTime&&i-1)for(var a=n,s=t.length;a=e&&o.endTime<=r)i.push(o);else if(o.startTime>r)return i}return i}(t.cues,e,r),s=0;sUe&&(d=Ue),d-h<=0&&(d=h+.25);for(var c=0;ce.startDate&&(!t||e.startDate.05&&this.forwardBufferLength>1){var l=Math.min(2,Math.max(1,a)),u=Math.round(2/(1+Math.exp(-.75*o-this.edgeStalled))*20)/20;t.playbackRate=Math.min(l,Math.max(1,u))}else 1!==t.playbackRate&&0!==t.playbackRate&&(t.playbackRate=1)}}}}},e.estimateLiveEdge=function(){var t=this.levelDetails;return null===t?null:t.edge+t.age},e.computeLatency=function(){var t=this.estimateLiveEdge();return null===t?null:t-this.currentTime},s(t,[{key:"latency",get:function(){return this._latency||0}},{key:"maxLatency",get:function(){var t=this.config,e=this.levelDetails;return void 0!==t.liveMaxLatencyDuration?t.liveMaxLatencyDuration:e?t.liveMaxLatencyDurationCount*e.targetduration:0}},{key:"targetLatency",get:function(){var t=this.levelDetails;if(null===t)return null;var e=t.holdBack,r=t.partHoldBack,i=t.targetduration,n=this.config,a=n.liveSyncDuration,s=n.liveSyncDurationCount,o=n.lowLatencyMode,l=this.hls.userConfig,u=o&&r||e;(l.liveSyncDuration||l.liveSyncDurationCount||0===u)&&(u=void 0!==a?a:s*i);var h=i;return u+Math.min(1*this.stallCount,h)}},{key:"liveSyncPosition",get:function(){var t=this.estimateLiveEdge(),e=this.targetLatency,r=this.levelDetails;if(null===t||null===e||null===r)return null;var i=r.edge,n=t-e-this.edgeStalled,a=i-r.totalduration,s=i-(this.config.lowLatencyMode&&r.partTarget||r.targetduration);return Math.min(Math.max(a,n),s)}},{key:"drift",get:function(){var t=this.levelDetails;return null===t?1:t.drift}},{key:"edgeStalled",get:function(){var t=this.levelDetails;if(null===t)return 0;var e=3*(this.config.lowLatencyMode&&t.partTarget||t.targetduration);return Math.max(t.age-e,0)}},{key:"forwardBufferLength",get:function(){var t=this.media,e=this.levelDetails;if(!t||!e)return 0;var r=t.buffered.length;return(r?t.buffered.end(r-1):e.edge)-this.currentTime}}]),t}(),He=["NONE","TYPE-0","TYPE-1",null],Ve=["SDR","PQ","HLG"];function Ye(t){var e=t.canSkipUntil,r=t.canSkipDateRanges,i=t.age;return e&&it.sn?(n=r-t.start,i=t):(n=t.start-r,i=e),i.duration!==n&&(i.duration=n)}else e.sn>t.sn?t.cc===e.cc&&t.minEndPTS?e.start=t.start+(t.minEndPTS-t.start):e.start=t.start+t.duration:e.start=Math.max(t.start-e.duration,0)}function ze(t,e,r,i,n,a){i-r<=0&&(k.warn("Fragment should have a positive duration",e),i=r+e.duration,a=n+e.duration);var s=r,o=i,l=e.startPTS,u=e.endPTS;if(m(l)){var h=Math.abs(l-r);m(e.deltaPTS)?e.deltaPTS=Math.max(h,e.deltaPTS):e.deltaPTS=h,s=Math.max(r,l),r=Math.min(r,l),n=Math.min(n,e.startDTS),o=Math.min(i,u),i=Math.max(i,u),a=Math.max(a,e.endDTS)}var d=r-e.start;0!==e.start&&(e.start=r),e.duration=i-e.start,e.startPTS=r,e.maxStartPTS=s,e.startDTS=n,e.endPTS=i,e.minEndPTS=o,e.endDTS=a;var c,f=e.sn;if(!t||ft.endSN)return 0;var g=f-t.startSN,v=t.fragments;for(v[g]=e,c=g;c>0;c--)Xe(v[c],v[c-1]);for(c=g;c=0;n--){var a=i[n].initSegment;if(a){r=a;break}}t.fragmentHint&&delete t.fragmentHint.endPTS;var s,l,u,h,d,c=0;if(function(t,e,r){for(var i=e.skippedSegments,n=Math.max(t.startSN,e.startSN)-e.startSN,a=(t.fragmentHint?1:0)+(i?e.endSN:Math.min(t.endSN,e.endSN))-e.startSN,s=e.startSN-t.startSN,o=e.fragmentHint?e.fragments.concat(e.fragmentHint):e.fragments,l=t.fragmentHint?t.fragments.concat(t.fragmentHint):t.fragments,u=n;u<=a;u++){var h=l[s+u],d=o[u];i&&!d&&u=i.length||$e(e,i[r].start)}function $e(t,e){if(e){for(var r=t.fragments,i=t.skippedSegments;i499)}(n)||!!r);return t.shouldRetry?t.shouldRetry(t,e,r,i,a):a}var or=function(t,e){for(var r=0,i=t.length-1,n=null,a=null;r<=i;){var s=e(a=t[n=(r+i)/2|0]);if(s>0)r=n+1;else{if(!(s<0))return a;i=n-1}}return null};function lr(t,e,r,i){void 0===r&&(r=0),void 0===i&&(i=0);var n=null;if(t){n=e[t.sn-e[0].sn+1]||null;var a=t.endDTS-r;a>0&&a<15e-7&&(r+=15e-7)}else 0===r&&0===e[0].start&&(n=e[0]);if(n&&(!t||t.level===n.level)&&0===ur(r,i,n))return n;var s=or(e,ur.bind(null,r,i));return!s||s===t&&n?n:s}function ur(t,e,r){if(void 0===t&&(t=0),void 0===e&&(e=0),r.start<=t&&r.start+r.duration>t)return 0;var i=Math.min(e,r.duration+(r.deltaPTS?r.deltaPTS:0));return r.start+r.duration-i<=t?1:r.start-i>t&&r.start?-1:0}function hr(t,e,r){var i=1e3*Math.min(e,r.duration+(r.deltaPTS?r.deltaPTS:0));return(r.endProgramDateTime||0)-i>t}var dr=function(){function t(t){this.hls=void 0,this.playlistError=0,this.penalizedRenditions={},this.log=void 0,this.warn=void 0,this.error=void 0,this.hls=t,this.log=k.log.bind(k,"[info]:"),this.warn=k.warn.bind(k,"[warning]:"),this.error=k.error.bind(k,"[error]:"),this.registerListeners()}var e=t.prototype;return e.registerListeners=function(){var t=this.hls;t.on(E.ERROR,this.onError,this),t.on(E.MANIFEST_LOADING,this.onManifestLoading,this),t.on(E.LEVEL_UPDATED,this.onLevelUpdated,this)},e.unregisterListeners=function(){var t=this.hls;t&&(t.off(E.ERROR,this.onError,this),t.off(E.ERROR,this.onErrorOut,this),t.off(E.MANIFEST_LOADING,this.onManifestLoading,this),t.off(E.LEVEL_UPDATED,this.onLevelUpdated,this))},e.destroy=function(){this.unregisterListeners(),this.hls=null,this.penalizedRenditions={}},e.startLoad=function(t){},e.stopLoad=function(){this.playlistError=0},e.getVariantLevelIndex=function(t){return(null==t?void 0:t.type)===Ae?t.level:this.hls.loadLevel},e.onManifestLoading=function(){this.playlistError=0,this.penalizedRenditions={}},e.onLevelUpdated=function(){this.playlistError=0},e.onError=function(t,e){var r,i;if(!e.fatal){var n=this.hls,a=e.context;switch(e.details){case S.FRAG_LOAD_ERROR:case S.FRAG_LOAD_TIMEOUT:case S.KEY_LOAD_ERROR:case S.KEY_LOAD_TIMEOUT:return void(e.errorAction=this.getFragRetryOrSwitchAction(e));case S.FRAG_PARSING_ERROR:if(null!=(r=e.frag)&&r.gap)return void(e.errorAction={action:0,flags:0});case S.FRAG_GAP:case S.FRAG_DECRYPT_ERROR:return e.errorAction=this.getFragRetryOrSwitchAction(e),void(e.errorAction.action=2);case S.LEVEL_EMPTY_ERROR:case S.LEVEL_PARSING_ERROR:var s,o,l=e.parent===Ae?e.level:n.loadLevel;return void(e.details===S.LEVEL_EMPTY_ERROR&&null!=(s=e.context)&&null!=(o=s.levelDetails)&&o.live?e.errorAction=this.getPlaylistRetryOrSwitchAction(e,l):(e.levelRetry=!1,e.errorAction=this.getLevelSwitchAction(e,l)));case S.LEVEL_LOAD_ERROR:case S.LEVEL_LOAD_TIMEOUT:return void("number"==typeof(null==a?void 0:a.level)&&(e.errorAction=this.getPlaylistRetryOrSwitchAction(e,a.level)));case S.AUDIO_TRACK_LOAD_ERROR:case S.AUDIO_TRACK_LOAD_TIMEOUT:case S.SUBTITLE_LOAD_ERROR:case S.SUBTITLE_TRACK_LOAD_TIMEOUT:if(a){var u=n.levels[n.loadLevel];if(u&&(a.type===Se&&u.hasAudioGroup(a.groupId)||a.type===Le&&u.hasSubtitleGroup(a.groupId)))return e.errorAction=this.getPlaylistRetryOrSwitchAction(e,n.loadLevel),e.errorAction.action=2,void(e.errorAction.flags=1)}return;case S.KEY_SYSTEM_STATUS_OUTPUT_RESTRICTED:var h=n.levels[n.loadLevel],d=null==h?void 0:h.attrs["HDCP-LEVEL"];return void(d?e.errorAction={action:2,flags:2,hdcpLevel:d}:this.keySystemError(e));case S.BUFFER_ADD_CODEC_ERROR:case S.REMUX_ALLOC_ERROR:case S.BUFFER_APPEND_ERROR:return void(e.errorAction=this.getLevelSwitchAction(e,null!=(i=e.level)?i:n.loadLevel));case S.INTERNAL_EXCEPTION:case S.BUFFER_APPENDING_ERROR:case S.BUFFER_FULL_ERROR:case S.LEVEL_SWITCH_ERROR:case S.BUFFER_STALLED_ERROR:case S.BUFFER_SEEK_OVER_HOLE:case S.BUFFER_NUDGE_ON_STALL:return void(e.errorAction={action:0,flags:0})}e.type===T.KEY_SYSTEM_ERROR&&this.keySystemError(e)}},e.keySystemError=function(t){var e=this.getVariantLevelIndex(t.frag);t.levelRetry=!1,t.errorAction=this.getLevelSwitchAction(t,e)},e.getPlaylistRetryOrSwitchAction=function(t,e){var r=ir(this.hls.config.playlistLoadPolicy,t),i=this.playlistError++;if(sr(r,i,rr(t),t.response))return{action:5,flags:0,retryConfig:r,retryCount:i};var n=this.getLevelSwitchAction(t,e);return r&&(n.retryConfig=r,n.retryCount=i),n},e.getFragRetryOrSwitchAction=function(t){var e=this.hls,r=this.getVariantLevelIndex(t.frag),i=e.levels[r],n=e.config,a=n.fragLoadPolicy,s=n.keyLoadPolicy,o=ir(t.details.startsWith("key")?s:a,t),l=e.levels.reduce((function(t,e){return t+e.fragmentError}),0);if(i&&(t.details!==S.FRAG_GAP&&i.fragmentError++,sr(o,l,rr(t),t.response)))return{action:5,flags:0,retryConfig:o,retryCount:l};var u=this.getLevelSwitchAction(t,r);return o&&(u.retryConfig=o,u.retryCount=l),u},e.getLevelSwitchAction=function(t,e){var r=this.hls;null==e&&(e=r.loadLevel);var i=this.hls.levels[e];if(i){var n,a,s=t.details;i.loadError++,s===S.BUFFER_APPEND_ERROR&&i.fragmentError++;var o=-1,l=r.levels,u=r.loadLevel,h=r.minAutoLevel,d=r.maxAutoLevel;r.autoLevelEnabled||(r.loadLevel=-1);for(var c,f=null==(n=t.frag)?void 0:n.type,g=(f===Re&&s===S.FRAG_PARSING_ERROR||"audio"===t.sourceBufferName&&(s===S.BUFFER_ADD_CODEC_ERROR||s===S.BUFFER_APPEND_ERROR))&&l.some((function(t){var e=t.audioCodec;return i.audioCodec!==e})),v="video"===t.sourceBufferName&&(s===S.BUFFER_ADD_CODEC_ERROR||s===S.BUFFER_APPEND_ERROR)&&l.some((function(t){var e=t.codecSet,r=t.audioCodec;return i.codecSet!==e&&i.audioCodec===r})),m=null!=(a=t.context)?a:{},p=m.type,y=m.groupId,E=function(){var e=(T+u)%l.length;if(e!==u&&e>=h&&e<=d&&0===l[e].loadError){var r,n,a=l[e];if(s===S.FRAG_GAP&&t.frag){var c=l[e].details;if(c){var m=lr(t.frag,c.fragments,t.frag.start);if(null!=m&&m.gap)return 0}}else{if(p===Se&&a.hasAudioGroup(y)||p===Le&&a.hasSubtitleGroup(y))return 0;if(f===Re&&null!=(r=i.audioGroups)&&r.some((function(t){return a.hasAudioGroup(t)}))||f===be&&null!=(n=i.subtitleGroups)&&n.some((function(t){return a.hasSubtitleGroup(t)}))||g&&i.audioCodec===a.audioCodec||!g&&i.audioCodec!==a.audioCodec||v&&i.codecSet===a.codecSet)return 0}return o=e,1}},T=l.length;T--&&(0===(c=E())||1!==c););if(o>-1&&r.loadLevel!==o)return t.levelRetry=!0,this.playlistError=0,{action:2,flags:0,nextAutoLevel:o}}return{action:2,flags:1}},e.onErrorOut=function(t,e){var r;switch(null==(r=e.errorAction)?void 0:r.action){case 0:break;case 2:this.sendAlternateToPenaltyBox(e),e.errorAction.resolved||e.details===S.FRAG_GAP?/MediaSource readyState: ended/.test(e.error.message)&&(this.warn('MediaSource ended after "'+e.sourceBufferName+'" sourceBuffer append error. Attempting to recover from media error.'),this.hls.recoverMediaError()):e.fatal=!0}e.fatal&&this.hls.stopLoad()},e.sendAlternateToPenaltyBox=function(t){var e=this.hls,r=t.errorAction;if(r){var i=r.flags,n=r.hdcpLevel,a=r.nextAutoLevel;switch(i){case 0:this.switchLevel(t,a);break;case 2:n&&(e.maxHdcpLevel=He[He.indexOf(n)-1],r.resolved=!0),this.warn('Restricting playback to HDCP-LEVEL of "'+e.maxHdcpLevel+'" or lower')}r.resolved||this.switchLevel(t,a)}},e.switchLevel=function(t,e){void 0!==e&&t.errorAction&&(this.warn("switching to level "+e+" after "+t.details),this.hls.nextAutoLevel=e,t.errorAction.resolved=!0,this.hls.nextLoadLevel=this.hls.nextAutoLevel)},t}(),cr=function(){function t(t,e){this.hls=void 0,this.timer=-1,this.requestScheduled=-1,this.canLoad=!1,this.log=void 0,this.warn=void 0,this.log=k.log.bind(k,e+":"),this.warn=k.warn.bind(k,e+":"),this.hls=t}var e=t.prototype;return e.destroy=function(){this.clearTimer(),this.hls=this.log=this.warn=null},e.clearTimer=function(){-1!==this.timer&&(self.clearTimeout(this.timer),this.timer=-1)},e.startLoad=function(){this.canLoad=!0,this.requestScheduled=-1,this.loadPlaylist()},e.stopLoad=function(){this.canLoad=!1,this.clearTimer()},e.switchParams=function(t,e,r){var i=null==e?void 0:e.renditionReports;if(i){for(var n=-1,a=0;a=0&&d>e.partTarget&&(h+=1)}var c=r&&Ye(r);return new We(u,h>=0?h:void 0,c)}}},e.loadPlaylist=function(t){-1===this.requestScheduled&&(this.requestScheduled=self.performance.now())},e.shouldLoadPlaylist=function(t){return this.canLoad&&!!t&&!!t.url&&(!t.details||t.details.live)},e.shouldReloadPlaylist=function(t){return-1===this.timer&&-1===this.requestScheduled&&this.shouldLoadPlaylist(t)},e.playlistLoaded=function(t,e,r){var i=this,n=e.details,a=e.stats,s=self.performance.now(),o=a.loading.first?Math.max(0,s-a.loading.first):0;if(n.advancedDateTime=Date.now()-o,n.live||null!=r&&r.live){if(n.reloaded(r),r&&this.log("live playlist "+t+" "+(n.advanced?"REFRESHED "+n.lastPartSn+"-"+n.lastPartIndex:n.updated?"UPDATED":"MISSED")),r&&n.fragments.length>0&&Qe(r,n),!this.canLoad||!n.live)return;var l,u=void 0,h=void 0;if(n.canBlockReload&&n.endSN&&n.advanced){var d=this.hls.config.lowLatencyMode,c=n.lastPartSn,f=n.endSN,g=n.lastPartIndex,v=c===f;-1!==g?(u=v?f+1:c,h=v?d?0:g:g+1):u=f+1;var m=n.age,p=m+n.ageHeader,y=Math.min(p-n.partTarget,1.5*n.targetduration);if(y>0){if(r&&y>r.tuneInGoal)this.warn("CDN Tune-in goal increased from: "+r.tuneInGoal+" to: "+y+" with playlist age: "+n.age),y=0;else{var E=Math.floor(y/n.targetduration);u+=E,void 0!==h&&(h+=Math.round(y%n.targetduration/n.partTarget)),this.log("CDN Tune-in age: "+n.ageHeader+"s last advanced "+m.toFixed(2)+"s goal: "+y+" skip sn "+E+" to part "+h)}n.tuneInGoal=y}if(l=this.getDeliveryDirectives(n,e.deliveryDirectives,u,h),d||!v)return void this.loadPlaylist(l)}else(n.canBlockReload||n.canSkipUntil)&&(l=this.getDeliveryDirectives(n,e.deliveryDirectives,u,h));var T=this.hls.mainForwardBufferInfo,S=T?T.end-T.len:0,L=function(t,e){void 0===e&&(e=1/0);var r=1e3*t.targetduration;if(t.updated){var i=t.fragments;if(i.length&&4*r>e){var n=1e3*i[i.length-1].duration;nthis.requestScheduled+L&&(this.requestScheduled=a.loading.start),void 0!==u&&n.canBlockReload?this.requestScheduled=a.loading.first+L-(1e3*n.partTarget||1e3):-1===this.requestScheduled||this.requestScheduled+L=u.maxNumRetry)return!1;if(i&&null!=(d=t.context)&&d.deliveryDirectives)this.warn("Retrying playlist loading "+(l+1)+"/"+u.maxNumRetry+' after "'+r+'" without delivery-directives'),this.loadPlaylist();else{var c=nr(u,l);this.timer=self.setTimeout((function(){return e.loadPlaylist()}),c),this.warn("Retrying playlist loading "+(l+1)+"/"+u.maxNumRetry+' after "'+r+'" in '+c+"ms")}t.levelRetry=!0,n.resolved=!0}return h},t}(),fr=function(){function t(t,e,r){void 0===e&&(e=0),void 0===r&&(r=0),this.halfLife=void 0,this.alpha_=void 0,this.estimate_=void 0,this.totalWeight_=void 0,this.halfLife=t,this.alpha_=t?Math.exp(Math.log(.5)/t):0,this.estimate_=e,this.totalWeight_=r}var e=t.prototype;return e.sample=function(t,e){var r=Math.pow(this.alpha_,t);this.estimate_=e*(1-r)+r*this.estimate_,this.totalWeight_+=t},e.getTotalWeight=function(){return this.totalWeight_},e.getEstimate=function(){if(this.alpha_){var t=1-Math.pow(this.alpha_,this.totalWeight_);if(t)return this.estimate_/t}return this.estimate_},t}(),gr=function(){function t(t,e,r,i){void 0===i&&(i=100),this.defaultEstimate_=void 0,this.minWeight_=void 0,this.minDelayMs_=void 0,this.slow_=void 0,this.fast_=void 0,this.defaultTTFB_=void 0,this.ttfb_=void 0,this.defaultEstimate_=r,this.minWeight_=.001,this.minDelayMs_=50,this.slow_=new fr(t),this.fast_=new fr(e),this.defaultTTFB_=i,this.ttfb_=new fr(t)}var e=t.prototype;return e.update=function(t,e){var r=this.slow_,i=this.fast_,n=this.ttfb_;r.halfLife!==t&&(this.slow_=new fr(t,r.getEstimate(),r.getTotalWeight())),i.halfLife!==e&&(this.fast_=new fr(e,i.getEstimate(),i.getTotalWeight())),n.halfLife!==t&&(this.ttfb_=new fr(t,n.getEstimate(),n.getTotalWeight()))},e.sample=function(t,e){var r=(t=Math.max(t,this.minDelayMs_))/1e3,i=8*e/r;this.fast_.sample(r,i),this.slow_.sample(r,i)},e.sampleTTFB=function(t){var e=t/1e3,r=Math.sqrt(2)*Math.exp(-Math.pow(e,2)/2);this.ttfb_.sample(r,Math.max(t,5))},e.canEstimate=function(){return this.fast_.getTotalWeight()>=this.minWeight_},e.getEstimate=function(){return this.canEstimate()?Math.min(this.fast_.getEstimate(),this.slow_.getEstimate()):this.defaultEstimate_},e.getEstimateTTFB=function(){return this.ttfb_.getTotalWeight()>=this.minWeight_?this.ttfb_.getEstimate():this.defaultTTFB_},e.destroy=function(){},t}(),vr={supported:!0,configurations:[],decodingInfoResults:[{supported:!0,powerEfficient:!0,smooth:!0}]},mr={};function pr(t,e,r){var n=t.videoCodec,a=t.audioCodec;if(!n||!a||!r)return Promise.resolve(vr);var s={width:t.width,height:t.height,bitrate:Math.ceil(Math.max(.9*t.bitrate,t.averageBitrate)),framerate:t.frameRate||30},o=t.videoRange;"SDR"!==o&&(s.transferFunction=o.toLowerCase());var l=n.split(",").map((function(t){return{type:"media-source",video:i(i({},s),{},{contentType:Zt(t,"video")})}}));return a&&t.audioGroups&&t.audioGroups.forEach((function(t){var r;t&&(null==(r=e.groups[t])||r.tracks.forEach((function(e){if(e.groupId===t){var r=e.channels||"",i=parseFloat(r);m(i)&&i>2&&l.push.apply(l,a.split(",").map((function(t){return{type:"media-source",audio:{contentType:Zt(t,"audio"),channels:""+i}}})))}})))})),Promise.all(l.map((function(t){var e=function(t){var e=t.audio,r=t.video,i=r||e;if(i){var n=i.contentType.split('"')[1];if(r)return"r"+r.height+"x"+r.width+"f"+Math.ceil(r.framerate)+(r.transferFunction||"sd")+"_"+n+"_"+Math.ceil(r.bitrate/1e5);if(e)return"c"+e.channels+(e.spatialRendering?"s":"n")+"_"+n}return""}(t);return mr[e]||(mr[e]=r.decodingInfo(t))}))).then((function(t){return{supported:!t.some((function(t){return!t.supported})),configurations:l,decodingInfoResults:t}})).catch((function(t){return{supported:!1,configurations:l,decodingInfoResults:[],error:t}}))}function yr(t,e){k.log('[abr] start candidates with "'+t+'" ignored because '+e)}function Er(t,e,r){if("attrs"in t){var i=e.indexOf(t);if(-1!==i)return i}for(var n=0;n-1,y=e.getBwEstimate(),T=i.levels,S=T[t.level],L=o.total||Math.max(o.loaded,Math.round(l*S.averageBitrate/8)),A=p?u-v:u;A<1&&p&&(A=Math.min(u,8*o.loaded/y));var R=p?1e3*o.loaded/A:0,b=R?(L-o.loaded)/R:8*L/y+c/1e3;if(!(b<=g)){var D,I=R?8*R:y,w=Number.POSITIVE_INFINITY;for(D=t.level-1;D>h;D--){var C=T[D].maxBitrate;if((w=e.getTimeToLoadFrag(c/1e3,I,l*C,!T[D].details))=b||w>10*l)){i.nextLoadLevel=i.nextAutoLevel=D,p?e.bwEstimator.sample(u-Math.min(c,v),o.loaded):e.bwEstimator.sampleTTFB(u);var _=T[D].maxBitrate;e.getBwEstimate()*e.hls.config.abrBandWidthUpFactor>_&&e.resetEstimator(_),e.clearTimer(),k.warn("[abr] Fragment "+t.sn+(r?" part "+r.index:"")+" of level "+t.level+" is loading too slowly;\n Time to underbuffer: "+g.toFixed(3)+" s\n Estimated load time for current fragment: "+b.toFixed(3)+" s\n Estimated load time for down switch fragment: "+w.toFixed(3)+" s\n TTFB estimate: "+(0|v)+" ms\n Current BW estimate: "+(m(y)?0|y:"Unknown")+" bps\n New BW estimate: "+(0|e.getBwEstimate())+" bps\n Switching to level "+D+" @ "+(0|_)+" bps"),i.trigger(E.FRAG_LOAD_EMERGENCY_ABORTED,{frag:t,part:r,stats:o})}}}}}}},this.hls=t,this.bwEstimator=this.initEstimator(),this.registerListeners()}var e=t.prototype;return e.resetEstimator=function(t){t&&(k.log("setting initial bwe to "+t),this.hls.config.abrEwmaDefaultEstimate=t),this.firstSelection=-1,this.bwEstimator=this.initEstimator()},e.initEstimator=function(){var t=this.hls.config;return new gr(t.abrEwmaSlowVoD,t.abrEwmaFastVoD,t.abrEwmaDefaultEstimate)},e.registerListeners=function(){var t=this.hls;t.on(E.MANIFEST_LOADING,this.onManifestLoading,this),t.on(E.FRAG_LOADING,this.onFragLoading,this),t.on(E.FRAG_LOADED,this.onFragLoaded,this),t.on(E.FRAG_BUFFERED,this.onFragBuffered,this),t.on(E.LEVEL_SWITCHING,this.onLevelSwitching,this),t.on(E.LEVEL_LOADED,this.onLevelLoaded,this),t.on(E.LEVELS_UPDATED,this.onLevelsUpdated,this),t.on(E.MAX_AUTO_LEVEL_UPDATED,this.onMaxAutoLevelUpdated,this),t.on(E.ERROR,this.onError,this)},e.unregisterListeners=function(){var t=this.hls;t&&(t.off(E.MANIFEST_LOADING,this.onManifestLoading,this),t.off(E.FRAG_LOADING,this.onFragLoading,this),t.off(E.FRAG_LOADED,this.onFragLoaded,this),t.off(E.FRAG_BUFFERED,this.onFragBuffered,this),t.off(E.LEVEL_SWITCHING,this.onLevelSwitching,this),t.off(E.LEVEL_LOADED,this.onLevelLoaded,this),t.off(E.LEVELS_UPDATED,this.onLevelsUpdated,this),t.off(E.MAX_AUTO_LEVEL_UPDATED,this.onMaxAutoLevelUpdated,this),t.off(E.ERROR,this.onError,this))},e.destroy=function(){this.unregisterListeners(),this.clearTimer(),this.hls=this._abandonRulesCheck=null,this.fragCurrent=this.partCurrent=null},e.onManifestLoading=function(t,e){this.lastLoadedFragLevel=-1,this.firstSelection=-1,this.lastLevelLoadSec=0,this.fragCurrent=this.partCurrent=null,this.onLevelsUpdated(),this.clearTimer()},e.onLevelsUpdated=function(){this.lastLoadedFragLevel>-1&&this.fragCurrent&&(this.lastLoadedFragLevel=this.fragCurrent.level),this._nextAutoLevel=-1,this.onMaxAutoLevelUpdated(),this.codecTiers=null,this.audioTracksByGroup=null},e.onMaxAutoLevelUpdated=function(){this.firstSelection=-1,this.nextAutoLevelKey=""},e.onFragLoading=function(t,e){var r,i=e.frag;this.ignoreFragment(i)||(i.bitrateTest||(this.fragCurrent=i,this.partCurrent=null!=(r=e.part)?r:null),this.clearTimer(),this.timer=self.setInterval(this._abandonRulesCheck,100))},e.onLevelSwitching=function(t,e){this.clearTimer()},e.onError=function(t,e){if(!e.fatal)switch(e.details){case S.BUFFER_ADD_CODEC_ERROR:case S.BUFFER_APPEND_ERROR:this.lastLoadedFragLevel=-1,this.firstSelection=-1;break;case S.FRAG_LOAD_TIMEOUT:var r=e.frag,i=this.fragCurrent,n=this.partCurrent;if(r&&i&&r.sn===i.sn&&r.level===i.level){var a=performance.now(),s=n?n.stats:r.stats,o=a-s.loading.start,l=s.loading.first?s.loading.first-s.loading.start:-1;if(s.loaded&&l>-1){var u=this.bwEstimator.getEstimateTTFB();this.bwEstimator.sample(o-Math.min(u,l),s.loaded)}else this.bwEstimator.sampleTTFB(o)}}},e.getTimeToLoadFrag=function(t,e,r,i){return t+r/e+(i?this.lastLevelLoadSec:0)},e.onLevelLoaded=function(t,e){var r=this.hls.config,i=e.stats.loading,n=i.end-i.start;m(n)&&(this.lastLevelLoadSec=n/1e3),e.details.live?this.bwEstimator.update(r.abrEwmaSlowLive,r.abrEwmaFastLive):this.bwEstimator.update(r.abrEwmaSlowVoD,r.abrEwmaFastVoD)},e.onFragLoaded=function(t,e){var r=e.frag,i=e.part,n=i?i.stats:r.stats;if(r.type===Ae&&this.bwEstimator.sampleTTFB(n.loading.first-n.loading.start),!this.ignoreFragment(r)){if(this.clearTimer(),r.level===this._nextAutoLevel&&(this._nextAutoLevel=-1),this.firstSelection=-1,this.hls.config.abrMaxWithRealBitrate){var a=i?i.duration:r.duration,s=this.hls.levels[r.level],o=(s.loaded?s.loaded.bytes:0)+n.loaded,l=(s.loaded?s.loaded.duration:0)+a;s.loaded={bytes:o,duration:l},s.realBitrate=Math.round(8*o/l)}if(r.bitrateTest){var u={stats:n,frag:r,part:i,id:r.type};this.onFragBuffered(E.FRAG_BUFFERED,u),r.bitrateTest=!1}else this.lastLoadedFragLevel=r.level}},e.onFragBuffered=function(t,e){var r=e.frag,i=e.part,n=null!=i&&i.stats.loaded?i.stats:r.stats;if(!n.aborted&&!this.ignoreFragment(r)){var a=n.parsing.end-n.loading.start-Math.min(n.loading.first-n.loading.start,this.bwEstimator.getEstimateTTFB());this.bwEstimator.sample(a,n.loaded),n.bwEstimate=this.getBwEstimate(),r.bitrateTest?this.bitrateTestDelay=a/1e3:this.bitrateTestDelay=0}},e.ignoreFragment=function(t){return t.type!==Ae||"initSegment"===t.sn},e.clearTimer=function(){this.timer>-1&&(self.clearInterval(this.timer),this.timer=-1)},e.getAutoLevelKey=function(){return this.getBwEstimate()+"_"+this.getStarvationDelay().toFixed(2)},e.getNextABRAutoLevel=function(){var t=this.fragCurrent,e=this.partCurrent,r=this.hls,i=r.maxAutoLevel,n=r.config,a=r.minAutoLevel,s=e?e.duration:t?t.duration:0,o=this.getBwEstimate(),l=this.getStarvationDelay(),u=n.abrBandWidthFactor,h=n.abrBandWidthUpFactor;if(l){var d=this.findBestLevel(o,a,i,l,0,u,h);if(d>=0)return d}var c=s?Math.min(s,n.maxStarvationDelay):n.maxStarvationDelay;if(!l){var f=this.bitrateTestDelay;f&&(c=(s?Math.min(s,n.maxLoadingDelay):n.maxLoadingDelay)-f,k.info("[abr] bitrate test took "+Math.round(1e3*f)+"ms, set first fragment max fetchDuration to "+Math.round(1e3*c)+" ms"),u=h=1)}var g=this.findBestLevel(o,a,i,l,c,u,h);if(k.info("[abr] "+(l?"rebuffering expected":"buffer is empty")+", optimal quality level "+g),g>-1)return g;var v=r.levels[a],m=r.levels[r.loadLevel];return(null==v?void 0:v.bitrate)<(null==m?void 0:m.bitrate)?a:r.loadLevel},e.getStarvationDelay=function(){var t=this.hls,e=t.media;if(!e)return 1/0;var r=e&&0!==e.playbackRate?Math.abs(e.playbackRate):1,i=t.mainForwardBufferInfo;return(i?i.len:0)/r},e.getBwEstimate=function(){return this.bwEstimator.canEstimate()?this.bwEstimator.getEstimate():this.hls.config.abrEwmaDefaultEstimate},e.findBestLevel=function(t,e,r,i,n,a,s){var o,l=this,u=i+n,h=this.lastLoadedFragLevel,d=-1===h?this.hls.firstLevel:h,c=this.fragCurrent,f=this.partCurrent,g=this.hls,v=g.levels,p=g.allAudioTracks,y=g.loadLevel,E=g.config;if(1===v.length)return 0;var T,S=v[d],L=!(null==S||null==(o=S.details)||!o.live),A=-1===y||-1===h,R="SDR",b=(null==S?void 0:S.frameRate)||0,D=E.audioPreference,I=E.videoPreference,w=this.audioTracksByGroup||(this.audioTracksByGroup=function(t){return t.reduce((function(t,e){var r=t.groups[e.groupId];r||(r=t.groups[e.groupId]={tracks:[],channels:{2:0},hasDefault:!1,hasAutoSelect:!1}),r.tracks.push(e);var i=e.channels||"2";return r.channels[i]=(r.channels[i]||0)+1,r.hasDefault=r.hasDefault||e.default,r.hasAutoSelect=r.hasAutoSelect||e.autoselect,r.hasDefault&&(t.hasDefaultAudio=!0),r.hasAutoSelect&&(t.hasAutoSelectAudio=!0),t}),{hasDefaultAudio:!1,hasAutoSelectAudio:!1,groups:{}})}(p));if(A){if(-1!==this.firstSelection)return this.firstSelection;var C=this.codecTiers||(this.codecTiers=function(t,e,r,i){return t.slice(r,i+1).reduce((function(t,r){if(!r.codecSet)return t;var i=r.audioGroups,n=t[r.codecSet];n||(t[r.codecSet]=n={minBitrate:1/0,minHeight:1/0,minFramerate:1/0,maxScore:0,videoRanges:{SDR:0},channels:{2:0},hasDefaultAudio:!i,fragmentError:0}),n.minBitrate=Math.min(n.minBitrate,r.bitrate);var a=Math.min(r.height,r.width);return n.minHeight=Math.min(n.minHeight,a),n.minFramerate=Math.min(n.minFramerate,r.frameRate),n.maxScore=Math.max(n.maxScore,r.score),n.fragmentError+=r.fragmentError,n.videoRanges[r.videoRange]=(n.videoRanges[r.videoRange]||0)+1,i&&i.forEach((function(t){if(t){var r=e.groups[t];r&&(n.hasDefaultAudio=n.hasDefaultAudio||e.hasDefaultAudio?r.hasDefault:r.hasAutoSelect||!e.hasDefaultAudio&&!e.hasAutoSelectAudio,Object.keys(r.channels).forEach((function(t){n.channels[t]=(n.channels[t]||0)+r.channels[t]})))}})),t}),{})}(v,w,e,r)),_=function(t,e,r,i,n){for(var a=Object.keys(t),s=null==i?void 0:i.channels,o=null==i?void 0:i.audioCodec,l=s&&2===parseInt(s),u=!0,h=!1,d=1/0,c=1/0,f=1/0,g=0,v=[],p=function(t,e){var r=!1,i=[];return t&&(r="SDR"!==t,i=[t]),e&&(i=e.allowedVideoRanges||Ve.slice(0),i=(r=void 0!==e.preferHDR?e.preferHDR:function(){if("function"==typeof matchMedia){var t=matchMedia("(dynamic-range: high)"),e=matchMedia("bad query");if(t.media!==e.media)return!0===t.matches}return!1}())?i.filter((function(t){return"SDR"!==t})):["SDR"]),{preferHDR:r,allowedVideoRanges:i}}(e,n),y=p.preferHDR,E=p.allowedVideoRanges,T=function(){var e=t[a[S]];u=e.channels[2]>0,d=Math.min(d,e.minHeight),c=Math.min(c,e.minFramerate),f=Math.min(f,e.minBitrate);var r=E.filter((function(t){return e.videoRanges[t]>0}));r.length>0&&(h=!0,v=r)},S=a.length;S--;)T();d=m(d)?d:0,c=m(c)?c:0;var L=Math.max(1080,d),A=Math.max(30,c);return f=m(f)?f:r,r=Math.max(f,r),h||(e=void 0,v=[]),{codecSet:a.reduce((function(e,i){var n=t[i];if(i===e)return e;if(n.minBitrate>r)return yr(i,"min bitrate of "+n.minBitrate+" > current estimate of "+r),e;if(!n.hasDefaultAudio)return yr(i,"no renditions with default or auto-select sound found"),e;if(o&&i.indexOf(o.substring(0,4))%5!=0)return yr(i,'audio codec preference "'+o+'" not found'),e;if(s&&!l){if(!n.channels[s])return yr(i,"no renditions with "+s+" channel sound found (channels options: "+Object.keys(n.channels)+")"),e}else if((!o||l)&&u&&0===n.channels[2])return yr(i,"no renditions with stereo sound found"),e;return n.minHeight>L?(yr(i,"min resolution of "+n.minHeight+" > maximum of "+L),e):n.minFramerate>A?(yr(i,"min framerate of "+n.minFramerate+" > maximum of "+A),e):v.some((function(t){return n.videoRanges[t]>0}))?n.maxScore=ee(e)||n.fragmentError>t[e].fragmentError)?e:(g=n.maxScore,i):(yr(i,"no variants with VIDEO-RANGE of "+JSON.stringify(v)+" found"),e)}),void 0),videoRanges:v,preferHDR:y,minFramerate:c,minBitrate:f}}(C,R,t,D,I),x=_.codecSet,P=_.videoRanges,F=_.minFramerate,M=_.minBitrate,O=_.preferHDR;T=x,R=O?P[P.length-1]:P[0],b=F,t=Math.max(t,M),k.log("[abr] picked start tier "+JSON.stringify(_))}else T=null==S?void 0:S.codecSet,R=null==S?void 0:S.videoRange;for(var N,U=f?f.duration:c?c.duration:0,B=this.bwEstimator.getEstimateTTFB()/1e3,G=[],K=function(){var e,o=v[H],c=H>d;if(!o)return 0;if(E.useMediaCapabilities&&!o.supportedResult&&!o.supportedPromise){var g=navigator.mediaCapabilities;"function"==typeof(null==g?void 0:g.decodingInfo)&&function(t,e,r,i,n,a){var s=t.audioCodec?t.audioGroups:null,o=null==a?void 0:a.audioCodec,l=null==a?void 0:a.channels,u=l?parseInt(l):o?1/0:2,h=null;if(null!=s&&s.length)try{h=1===s.length&&s[0]?e.groups[s[0]].channels:s.reduce((function(t,r){if(r){var i=e.groups[r];if(!i)throw new Error("Audio track group "+r+" not found");Object.keys(i.channels).forEach((function(e){t[e]=(t[e]||0)+i.channels[e]}))}return t}),{2:0})}catch(t){return!0}return void 0!==t.videoCodec&&(t.width>1920&&t.height>1088||t.height>1920&&t.width>1088||t.frameRate>Math.max(i,30)||"SDR"!==t.videoRange&&t.videoRange!==r||t.bitrate>Math.max(n,8e6))||!!h&&m(u)&&Object.keys(h).some((function(t){return parseInt(t)>u}))}(o,w,R,b,t,D)?(o.supportedPromise=pr(o,w,g),o.supportedPromise.then((function(t){if(l.hls){o.supportedResult=t;var e=l.hls.levels,r=e.indexOf(o);t.error?k.warn('[abr] MediaCapabilities decodingInfo error: "'+t.error+'" for level '+r+" "+JSON.stringify(t)):t.supported||(k.warn("[abr] Unsupported MediaCapabilities decodingInfo result for level "+r+" "+JSON.stringify(t)),r>-1&&e.length>1&&(k.log("[abr] Removing unsupported level "+r),l.hls.removeLevel(r)))}}))):o.supportedResult=vr}if(T&&o.codecSet!==T||R&&o.videoRange!==R||c&&b>o.frameRate||!c&&b>0&&b=2*U&&0===n?v[H].averageBitrate:v[H].maxBitrate,x=l.getTimeToLoadFrag(B,p,_*C,void 0===I);if(p>=_&&(H===h||0===o.loadError&&0===o.fragmentError)&&(x<=B||!m(x)||L&&!l.bitrateTestDelay||x"+H+" adjustedbw("+Math.round(p)+")-bitrate="+Math.round(p-_)+" ttfb:"+B.toFixed(1)+" avgDuration:"+C.toFixed(1)+" maxFetchDuration:"+u.toFixed(1)+" fetchDuration:"+x.toFixed(1)+" firstSelection:"+A+" codecSet:"+T+" videoRange:"+R+" hls.loadLevel:"+y)),A&&(l.firstSelection=H),{v:H}}},H=r;H>=e;H--)if(0!==(N=K())&&N)return N.v;return-1},s(t,[{key:"firstAutoLevel",get:function(){var t=this.hls,e=t.maxAutoLevel,r=t.minAutoLevel,i=this.getBwEstimate(),n=this.hls.config.maxStarvationDelay,a=this.findBestLevel(i,r,e,0,n,1,1);if(a>-1)return a;var s=this.hls.firstLevel,o=Math.min(Math.max(s,r),e);return k.warn("[abr] Could not find best starting auto level. Defaulting to first in playlist "+s+" clamped to "+o),o}},{key:"forcedAutoLevel",get:function(){return this.nextAutoLevelKey?-1:this._nextAutoLevel}},{key:"nextAutoLevel",get:function(){var t=this.forcedAutoLevel,e=this.bwEstimator.canEstimate(),r=this.lastLoadedFragLevel>-1;if(!(-1===t||e&&r&&this.nextAutoLevelKey!==this.getAutoLevelKey()))return t;var i=e&&r?this.getNextABRAutoLevel():this.firstAutoLevel;if(-1!==t){var n=this.hls.levels;if(n.length>Math.max(t,i)&&n[t].loadError<=n[i].loadError)return t}return this._nextAutoLevel=i,this.nextAutoLevelKey=this.getAutoLevelKey(),i},set:function(t){var e=this.hls,r=e.maxAutoLevel,i=e.minAutoLevel,n=Math.min(Math.max(t,i),r);this._nextAutoLevel!==n&&(this.nextAutoLevelKey="",this._nextAutoLevel=n)}}]),t}(),Rr=function(){function t(){this._boundTick=void 0,this._tickTimer=null,this._tickInterval=null,this._tickCallCount=0,this._boundTick=this.tick.bind(this)}var e=t.prototype;return e.destroy=function(){this.onHandlerDestroying(),this.onHandlerDestroyed()},e.onHandlerDestroying=function(){this.clearNextTick(),this.clearInterval()},e.onHandlerDestroyed=function(){},e.hasInterval=function(){return!!this._tickInterval},e.hasNextTick=function(){return!!this._tickTimer},e.setInterval=function(t){return!this._tickInterval&&(this._tickCallCount=0,this._tickInterval=self.setInterval(this._boundTick,t),!0)},e.clearInterval=function(){return!!this._tickInterval&&(self.clearInterval(this._tickInterval),this._tickInterval=null,!0)},e.clearNextTick=function(){return!!this._tickTimer&&(self.clearTimeout(this._tickTimer),this._tickTimer=null,!0)},e.tick=function(){this._tickCallCount++,1===this._tickCallCount&&(this.doTick(),this._tickCallCount>1&&this.tickImmediate(),this._tickCallCount=0)},e.tickImmediate=function(){this.clearNextTick(),this._tickTimer=self.setTimeout(this._boundTick,0)},e.doTick=function(){},t}(),br="NOT_LOADED",kr="APPENDING",Dr="PARTIAL",Ir="OK",wr=function(){function t(t){this.activePartLists=Object.create(null),this.endListFragments=Object.create(null),this.fragments=Object.create(null),this.timeRanges=Object.create(null),this.bufferPadding=.2,this.hls=void 0,this.hasGaps=!1,this.hls=t,this._registerListeners()}var e=t.prototype;return e._registerListeners=function(){var t=this.hls;t.on(E.BUFFER_APPENDED,this.onBufferAppended,this),t.on(E.FRAG_BUFFERED,this.onFragBuffered,this),t.on(E.FRAG_LOADED,this.onFragLoaded,this)},e._unregisterListeners=function(){var t=this.hls;t.off(E.BUFFER_APPENDED,this.onBufferAppended,this),t.off(E.FRAG_BUFFERED,this.onFragBuffered,this),t.off(E.FRAG_LOADED,this.onFragLoaded,this)},e.destroy=function(){this._unregisterListeners(),this.fragments=this.activePartLists=this.endListFragments=this.timeRanges=null},e.getAppendedFrag=function(t,e){var r=this.activePartLists[e];if(r)for(var i=r.length;i--;){var n=r[i];if(!n)break;var a=n.end;if(n.start<=t&&null!==a&&t<=a)return n}return this.getBufferedFrag(t,e)},e.getBufferedFrag=function(t,e){for(var r=this.fragments,i=Object.keys(r),n=i.length;n--;){var a=r[i[n]];if((null==a?void 0:a.body.type)===e&&a.buffered){var s=a.body;if(s.start<=t&&t<=s.end)return s}}return null},e.detectEvictedFragments=function(t,e,r,i){var n=this;this.timeRanges&&(this.timeRanges[t]=e);var a=(null==i?void 0:i.fragment.sn)||-1;Object.keys(this.fragments).forEach((function(i){var s=n.fragments[i];if(s&&!(a>=s.body.sn))if(s.buffered||s.loaded){var o=s.range[t];o&&o.time.some((function(t){var r=!n.isTimeBuffered(t.startPTS,t.endPTS,e);return r&&n.removeFragment(s.body),r}))}else s.body.type===r&&n.removeFragment(s.body)}))},e.detectPartialFragments=function(t){var e=this,r=this.timeRanges,i=t.frag,n=t.part;if(r&&"initSegment"!==i.sn){var a=_r(i),s=this.fragments[a];if(!(!s||s.buffered&&i.gap)){var o=!i.relurl;Object.keys(r).forEach((function(t){var a=i.elementaryStreams[t];if(a){var l=r[t],u=o||!0===a.partial;s.range[t]=e.getBufferedTimes(i,n,u,l)}})),s.loaded=null,Object.keys(s.range).length?(s.buffered=!0,(s.body.endList=i.endList||s.body.endList)&&(this.endListFragments[s.body.type]=s),Cr(s)||this.removeParts(i.sn-1,i.type)):this.removeFragment(s.body)}}},e.removeParts=function(t,e){var r=this.activePartLists[e];r&&(this.activePartLists[e]=r.filter((function(e){return e.fragment.sn>=t})))},e.fragBuffered=function(t,e){var r=_r(t),i=this.fragments[r];!i&&e&&(i=this.fragments[r]={body:t,appendedPTS:null,loaded:null,buffered:!1,range:Object.create(null)},t.gap&&(this.hasGaps=!0)),i&&(i.loaded=null,i.buffered=!0)},e.getBufferedTimes=function(t,e,r,i){for(var n={time:[],partial:r},a=t.start,s=t.end,o=t.minEndPTS||s,l=t.maxStartPTS||a,u=0;u=h&&o<=d){n.time.push({startPTS:Math.max(a,i.start(u)),endPTS:Math.min(s,i.end(u))});break}if(ah){var c=Math.max(a,i.start(u)),f=Math.min(s,i.end(u));f>c&&(n.partial=!0,n.time.push({startPTS:c,endPTS:f}))}else if(s<=h)break}return n},e.getPartialFragment=function(t){var e,r,i,n=null,a=0,s=this.bufferPadding,o=this.fragments;return Object.keys(o).forEach((function(l){var u=o[l];u&&Cr(u)&&(r=u.body.start-s,i=u.body.end+s,t>=r&&t<=i&&(e=Math.min(t-r,i-t),a<=e&&(n=u.body,a=e)))})),n},e.isEndListAppended=function(t){var e=this.endListFragments[t];return void 0!==e&&(e.buffered||Cr(e))},e.getState=function(t){var e=_r(t),r=this.fragments[e];return r?r.buffered?Cr(r)?Dr:Ir:kr:br},e.isTimeBuffered=function(t,e,r){for(var i,n,a=0;a=i&&e<=n)return!0;if(e<=i)return!1}return!1},e.onFragLoaded=function(t,e){var r=e.frag,i=e.part;if("initSegment"!==r.sn&&!r.bitrateTest){var n=i?null:e,a=_r(r);this.fragments[a]={body:r,appendedPTS:null,loaded:n,buffered:!1,range:Object.create(null)}}},e.onBufferAppended=function(t,e){var r=this,i=e.frag,n=e.part,a=e.timeRanges;if("initSegment"!==i.sn){var s=i.type;if(n){var o=this.activePartLists[s];o||(this.activePartLists[s]=o=[]),o.push(n)}this.timeRanges=a,Object.keys(a).forEach((function(t){var e=a[t];r.detectEvictedFragments(t,e,s,n)}))}},e.onFragBuffered=function(t,e){this.detectPartialFragments(e)},e.hasFragment=function(t){var e=_r(t);return!!this.fragments[e]},e.hasParts=function(t){var e;return!(null==(e=this.activePartLists[t])||!e.length)},e.removeFragmentsInRange=function(t,e,r,i,n){var a=this;i&&!this.hasGaps||Object.keys(this.fragments).forEach((function(s){var o=a.fragments[s];if(o){var l=o.body;l.type!==r||i&&!l.gap||l.startt&&(o.buffered||n)&&a.removeFragment(l)}}))},e.removeFragment=function(t){var e=_r(t);t.stats.loaded=0,t.clearElementaryStreamInfo();var r=this.activePartLists[t.type];if(r){var i=t.sn;this.activePartLists[t.type]=r.filter((function(t){return t.fragment.sn!==i}))}delete this.fragments[e],t.endList&&delete this.endListFragments[t.type]},e.removeAllFragments=function(){this.fragments=Object.create(null),this.endListFragments=Object.create(null),this.activePartLists=Object.create(null),this.hasGaps=!1},t}();function Cr(t){var e,r,i;return t.buffered&&(t.body.gap||(null==(e=t.range.video)?void 0:e.partial)||(null==(r=t.range.audio)?void 0:r.partial)||(null==(i=t.range.audiovideo)?void 0:i.partial))}function _r(t){return t.type+"_"+t.level+"_"+t.sn}var xr={length:0,start:function(){return 0},end:function(){return 0}},Pr=function(){function t(){}return t.isBuffered=function(e,r){try{if(e)for(var i=t.getBuffered(e),n=0;n=i.start(n)&&r<=i.end(n))return!0}catch(t){}return!1},t.bufferInfo=function(e,r,i){try{if(e){var n,a=t.getBuffered(e),s=[];for(n=0;ns&&(i[a-1].end=t[n].end):i.push(t[n])}else i.push(t[n])}else i=t;for(var o,l=0,u=e,h=e,d=0;d=c&&e>>8^255&m^99,t[f]=m,e[m]=f;var p=c[f],y=c[p],E=c[y],T=257*c[m]^16843008*m;i[f]=T<<24|T>>>8,n[f]=T<<16|T>>>16,a[f]=T<<8|T>>>24,s[f]=T,T=16843009*E^65537*y^257*p^16843008*f,l[m]=T<<24|T>>>8,u[m]=T<<16|T>>>16,h[m]=T<<8|T>>>24,d[m]=T,f?(f=p^c[c[c[E^p]]],g^=c[c[g]]):f=g=1}},e.expandKey=function(t){for(var e=this.uint8ArrayToUint32Array_(t),r=!0,i=0;is.end){var h=a>u;(a0&&null!=a&&a.key&&a.iv&&"AES-128"===a.method){var s=self.performance.now();return r.decrypter.decrypt(new Uint8Array(n),a.key.buffer,a.iv.buffer).catch((function(e){throw i.trigger(E.ERROR,{type:T.MEDIA_ERROR,details:S.FRAG_DECRYPT_ERROR,fatal:!1,error:e,reason:e.message,frag:t}),e})).then((function(n){var a=self.performance.now();return i.trigger(E.FRAG_DECRYPTED,{frag:t,payload:n,stats:{tstart:s,tdecrypt:a}}),e.payload=n,r.completeInitSegmentLoad(e)}))}return r.completeInitSegmentLoad(e)})).catch((function(e){r.state!==Xr&&r.state!==ii&&(r.warn(e),r.resetFragmentLoading(t))}))},r.completeInitSegmentLoad=function(t){if(!this.levels)throw new Error("init load aborted, missing levels");var e=t.frag.stats;this.state=zr,t.frag.data=new Uint8Array(t.payload),e.parsing.start=e.buffering.start=self.performance.now(),e.parsing.end=e.buffering.end=self.performance.now(),this.tick()},r.fragContextChanged=function(t){var e=this.fragCurrent;return!t||!e||t.sn!==e.sn||t.level!==e.level},r.fragBufferedComplete=function(t,e){var r,i,n,a,s=this.mediaBuffer?this.mediaBuffer:this.media;if(this.log("Buffered "+t.type+" sn: "+t.sn+(e?" part: "+e.index:"")+" of "+(this.playlistType===Ae?"level":"track")+" "+t.level+" (frag:["+(null!=(r=t.startPTS)?r:NaN).toFixed(3)+"-"+(null!=(i=t.endPTS)?i:NaN).toFixed(3)+"] > buffer:"+(s?function(t){for(var e="",r=t.length,i=0;it.end&&s.fragmentHint&&(t=s.fragmentHint);var u=this.getNextPart(l,t,r);if(u>-1){var h,d=l[u];return this.log("Loading part sn: "+t.sn+" p: "+d.index+" cc: "+t.cc+" of playlist ["+s.startSN+"-"+s.endSN+"] parts [0-"+u+"-"+(l.length-1)+"] "+("[stream-controller]"===this.logPrefix?"level":"track")+": "+t.level+", target: "+parseFloat(r.toFixed(3))),this.nextLoadPosition=d.start+d.duration,this.state=Jr,h=o?o.then((function(r){return!r||a.fragContextChanged(r.frag)?null:a.doFragPartsLoad(t,d,e,i)})).catch((function(t){return a.handleFragLoadError(t)})):this.doFragPartsLoad(t,d,e,i).catch((function(t){return a.handleFragLoadError(t)})),this.hls.trigger(E.FRAG_LOADING,{frag:t,part:d,targetBufferTime:r}),null===this.fragCurrent?Promise.reject(new Error("frag load aborted, context changed in FRAG_LOADING parts")):h}if(!t.url||this.loadedEndOfParts(l,r))return Promise.resolve(null)}}this.log("Loading fragment "+t.sn+" cc: "+t.cc+" "+(s?"of ["+s.startSN+"-"+s.endSN+"] ":"")+("[stream-controller]"===this.logPrefix?"level":"track")+": "+t.level+", target: "+parseFloat(r.toFixed(3))),m(t.sn)&&!this.bitrateTest&&(this.nextLoadPosition=t.start+t.duration),this.state=Jr;var c,f=this.config.progressive;return c=f&&o?o.then((function(e){return!e||a.fragContextChanged(null==e?void 0:e.frag)?null:a.fragmentLoader.load(t,i)})).catch((function(t){return a.handleFragLoadError(t)})):Promise.all([this.fragmentLoader.load(t,f?i:void 0),o]).then((function(t){var e=t[0];return!f&&e&&i&&i(e),e})).catch((function(t){return a.handleFragLoadError(t)})),this.hls.trigger(E.FRAG_LOADING,{frag:t,targetBufferTime:r}),null===this.fragCurrent?Promise.reject(new Error("frag load aborted, context changed in FRAG_LOADING")):c},r.doFragPartsLoad=function(t,e,r,i){var n=this;return new Promise((function(a,s){var o,l=[],u=null==(o=r.details)?void 0:o.partList;!function e(o){n.fragmentLoader.loadPart(t,o,i).then((function(i){l[o.index]=i;var s=i.part;n.hls.trigger(E.FRAG_LOADED,i);var h=Ze(r,t.sn,o.index+1)||tr(u,t.sn,o.index+1);if(!h)return a({frag:t,part:s,partsLoaded:l});e(h)})).catch(s)}(e)}))},r.handleFragLoadError=function(t){if("data"in t){var e=t.data;t.data&&e.details===S.INTERNAL_ABORTED?this.handleFragLoadAborted(e.frag,e.part):this.hls.trigger(E.ERROR,e)}else this.hls.trigger(E.ERROR,{type:T.OTHER_ERROR,details:S.INTERNAL_EXCEPTION,err:t,error:t,fatal:!0});return null},r._handleTransmuxerFlush=function(t){var e=this.getCurrentContext(t);if(e&&this.state===ti){var r=e.frag,i=e.part,n=e.level,a=self.performance.now();r.stats.parsing.end=a,i&&(i.stats.parsing.end=a),this.updateLevelTiming(r,i,n,t.partial)}else this.fragCurrent||this.state===Xr||this.state===ii||(this.state=zr)},r.getCurrentContext=function(t){var e=this.levels,r=this.fragCurrent,i=t.level,n=t.sn,a=t.part;if(null==e||!e[i])return this.warn("Levels object was unset while buffering fragment "+n+" of level "+i+". The current chunk will not be buffered."),null;var s=e[i],o=a>-1?Ze(s,n,a):null,l=o?o.fragment:function(t,e,r){if(null==t||!t.details)return null;var i=t.details,n=i.fragments[e-i.startSN];return n||((n=i.fragmentHint)&&n.sn===e?n:ea&&this.flushMainBuffer(s,t.start)}else this.flushMainBuffer(0,t.start)},r.getFwdBufferInfo=function(t,e){var r=this.getLoadPosition();return m(r)?this.getFwdBufferInfoAtPos(t,r,e):null},r.getFwdBufferInfoAtPos=function(t,e,r){var i=this.config.maxBufferHole,n=Pr.bufferInfo(t,e,i);if(0===n.len&&void 0!==n.nextStart){var a=this.fragmentTracker.getBufferedFrag(e,r);if(a&&n.nextStart=r&&(e.maxMaxBufferLength/=2,this.warn("Reduce max buffer length to "+e.maxMaxBufferLength+"s"),!0)},r.getAppendedFrag=function(t,e){var r=this.fragmentTracker.getAppendedFrag(t,Ae);return r&&"fragment"in r?r.fragment:r},r.getNextFragment=function(t,e){var r=e.fragments,i=r.length;if(!i)return null;var n,a=this.config,s=r[0].start;if(e.live){var o=a.initialLiveManifestSize;if(ie},r.getNextFragmentLoopLoading=function(t,e,r,i,n){var a=t.gap,s=this.getNextFragment(this.nextLoadPosition,e);if(null===s)return s;if(t=s,a&&t&&!t.gap&&r.nextStart){var o=this.getFwdBufferInfoAtPos(this.mediaBuffer?this.mediaBuffer:this.media,r.nextStart,i);if(null!==o&&r.len+o.len>=n)return this.log('buffer full after gaps in "'+i+'" playlist starting at sn: '+t.sn),null}return t},r.mapToInitFragWhenRequired=function(t){return null==t||!t.initSegment||null!=t&&t.initSegment.data||this.bitrateTest?t:t.initSegment},r.getNextPart=function(t,e,r){for(var i=-1,n=!1,a=!0,s=0,o=t.length;s-1&&rr.start&&r.loaded},r.getInitialLiveFragment=function(t,e){var r=this.fragPrevious,i=null;if(r){if(t.hasProgramDateTime&&(this.log("Live playlist, switching playlist, load frag with same PDT: "+r.programDateTime),i=function(t,e,r){if(null===e||!Array.isArray(t)||!t.length||!m(e))return null;if(e<(t[0].programDateTime||0))return null;if(e>=(t[t.length-1].endProgramDateTime||0))return null;r=r||0;for(var i=0;i=t.startSN&&n<=t.endSN){var a=e[n-t.startSN];r.cc===a.cc&&(i=a,this.log("Live playlist, switching playlist, load frag with next SN: "+i.sn))}i||(i=function(t,e){return or(t,(function(t){return t.cce?-1:0}))}(e,r.cc),i&&this.log("Live playlist, switching playlist, load frag with same CC: "+i.sn))}}else{var s=this.hls.liveSyncPosition;null!==s&&(i=this.getFragmentAtPosition(s,this.bitrateTest?t.fragmentEnd:t.edge,t))}return i},r.getFragmentAtPosition=function(t,e,r){var i,n=this.config,a=this.fragPrevious,s=r.fragments,o=r.endSN,l=r.fragmentHint,u=n.maxFragLookUpTolerance,h=r.partList,d=!!(n.lowLatencyMode&&null!=h&&h.length&&l);if(d&&l&&!this.bitrateTest&&(s=s.concat(l),o=l.sn),i=te-u?0:u):s[s.length-1]){var c=i.sn-r.startSN,f=this.fragmentTracker.getState(i);if((f===Ir||f===Dr&&i.gap)&&(a=i),a&&i.sn===a.sn&&(!d||h[0].fragment.sn>i.sn)&&a&&i.level===a.level){var g=s[c+1];i=i.sn=a-e.maxFragLookUpTolerance&&n<=s;if(null!==i&&r.duration>i&&(nr.startCC||t&&t.cc"+t.startSN+" prev-sn: "+(o?o.sn:"na")+" fragments: "+i),l}return n},r.waitForCdnTuneIn=function(t){return t.live&&t.canBlockReload&&t.partTarget&&t.tuneInGoal>Math.max(t.partHoldBack,3*t.partTarget)},r.setStartPosition=function(t,e){var r=this.startPosition;if(r "+(null==(n=this.fragCurrent)?void 0:n.url))}else{var a=e.details===S.FRAG_GAP;a&&this.fragmentTracker.fragBuffered(i,!0);var s=e.errorAction,o=s||{},l=o.action,u=o.retryCount,h=void 0===u?0:u,d=o.retryConfig;if(s&&5===l&&d){this.resetStartWhenNotLoaded(this.levelLastLoaded);var c=nr(d,h);this.warn("Fragment "+i.sn+" of "+t+" "+i.level+" errored with "+e.details+", retrying loading "+(h+1)+"/"+d.maxNumRetry+" in "+c+"ms"),s.resolved=!0,this.retryDate=self.performance.now()+c,this.state=$r}else if(d&&s){if(this.resetFragmentErrors(t),!(h.5;i&&this.reduceMaxBufferLength(r.len);var n=!i;return n&&this.warn("Buffer full error while media.currentTime is not buffered, flush "+e+" buffer"),t.frag&&(this.fragmentTracker.removeFragment(t.frag),this.nextLoadPosition=t.frag.start),this.resetLoadingState(),n}return!1},r.resetFragmentErrors=function(t){t===Re&&(this.fragCurrent=null),this.loadedmetadata||(this.startFragRequested=!1),this.state!==Xr&&(this.state=zr)},r.afterBufferFlushed=function(t,e,r){if(t){var i=Pr.getBuffered(t);this.fragmentTracker.detectEvictedFragments(e,i,r),this.state===ri&&this.resetLoadingState()}},r.resetLoadingState=function(){this.log("Reset loading state"),this.fragCurrent=null,this.fragPrevious=null,this.state=zr},r.resetStartWhenNotLoaded=function(t){if(!this.loadedmetadata){this.startFragRequested=!1;var e=t?t.details:null;null!=e&&e.live?(this.startPosition=-1,this.setStartPosition(e,0),this.resetLoadingState()):this.nextLoadPosition=this.startPosition}},r.resetWhenMissingContext=function(t){this.warn("The loading context changed while buffering fragment "+t.sn+" of level "+t.level+". This chunk will not be buffered."),this.removeUnbufferedFrags(),this.resetStartWhenNotLoaded(this.levelLastLoaded),this.resetLoadingState()},r.removeUnbufferedFrags=function(t){void 0===t&&(t=0),this.fragmentTracker.removeFragmentsInRange(t,1/0,this.playlistType,!1,!0)},r.updateLevelTiming=function(t,e,r,i){var n,a=this,s=r.details;if(s){if(!Object.keys(t.elementaryStreams).reduce((function(e,n){var o=t.elementaryStreams[n];if(o){var l=o.endPTS-o.startPTS;if(l<=0)return a.warn("Could not parse fragment "+t.sn+" "+n+" duration reliably ("+l+")"),e||!1;var u=i?0:ze(s,t,o.startPTS,o.endPTS,o.startDTS,o.endDTS);return a.hls.trigger(E.LEVEL_PTS_UPDATED,{details:s,level:r,drift:u,type:n,frag:t,start:o.startPTS,end:o.endPTS}),!0}return e}),!1)&&null===(null==(n=this.transmuxer)?void 0:n.error)){var o=new Error("Found no media in fragment "+t.sn+" of level "+t.level+" resetting transmuxer to fallback to playlist timing");if(0===r.fragmentError&&(r.fragmentError++,t.gap=!0,this.fragmentTracker.removeFragment(t),this.fragmentTracker.fragBuffered(t,!0)),this.warn(o.message),this.hls.trigger(E.ERROR,{type:T.MEDIA_ERROR,details:S.FRAG_PARSING_ERROR,fatal:!1,error:o,frag:t,reason:"Found no media in msn "+t.sn+' of level "'+r.url+'"'}),!this.hls)return;this.resetTransmuxer()}this.state=ei,this.hls.trigger(E.FRAG_PARSED,{frag:t,part:e})}else this.warn("level.details undefined")},r.resetTransmuxer=function(){this.transmuxer&&(this.transmuxer.destroy(),this.transmuxer=null)},r.recoverWorkerError=function(t){"demuxerWorker"===t.event&&(this.fragmentTracker.removeAllFragments(),this.resetTransmuxer(),this.resetStartWhenNotLoaded(this.levelLastLoaded),this.resetLoadingState())},s(e,[{key:"state",get:function(){return this._state},set:function(t){var e=this._state;e!==t&&(this._state=t,this.log(e+"->"+t))}}]),e}(Rr),oi=function(){function t(){this.chunks=[],this.dataLength=0}var e=t.prototype;return e.push=function(t){this.chunks.push(t),this.dataLength+=t.length},e.flush=function(){var t,e=this.chunks,r=this.dataLength;return e.length?(t=1===e.length?e[0]:function(t,e){for(var r=new Uint8Array(e),i=0,n=0;n0&&s.samples.push({pts:this.lastPTS,dts:this.lastPTS,data:i,type:Fe,duration:Number.POSITIVE_INFINITY});n>>5}function gi(t,e){return e+1=t.length)return!1;var i=fi(t,e);if(i<=r)return!1;var n=e+i;return n===t.length||gi(t,n)}return!1}function mi(t,e,r,i,n){if(!t.samplerate){var a=function(t,e,r,i){var n,a,s,o,l=navigator.userAgent.toLowerCase(),u=i,h=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350];n=1+((192&e[r+2])>>>6);var d=(60&e[r+2])>>>2;if(!(d>h.length-1))return s=(1&e[r+2])<<2,s|=(192&e[r+3])>>>6,k.log("manifest codec:"+i+", ADTS type:"+n+", samplingIndex:"+d),/firefox/i.test(l)?d>=6?(n=5,o=new Array(4),a=d-3):(n=2,o=new Array(2),a=d):-1!==l.indexOf("android")?(n=2,o=new Array(2),a=d):(n=5,o=new Array(4),i&&(-1!==i.indexOf("mp4a.40.29")||-1!==i.indexOf("mp4a.40.5"))||!i&&d>=6?a=d-3:((i&&-1!==i.indexOf("mp4a.40.2")&&(d>=6&&1===s||/vivaldi/i.test(l))||!i&&1===s)&&(n=2,o=new Array(2)),a=d)),o[0]=n<<3,o[0]|=(14&d)>>1,o[1]|=(1&d)<<7,o[1]|=s<<3,5===n&&(o[1]|=(14&a)>>1,o[2]=(1&a)<<7,o[2]|=8,o[3]=0),{config:o,samplerate:h[d],channelCount:s,codec:"mp4a.40."+n,manifestCodec:u};var c=new Error("invalid ADTS sampling index:"+d);t.emit(E.ERROR,E.ERROR,{type:T.MEDIA_ERROR,details:S.FRAG_PARSING_ERROR,fatal:!0,error:c,reason:c.message})}(e,r,i,n);if(!a)return;t.config=a.config,t.samplerate=a.samplerate,t.channelCount=a.channelCount,t.codec=a.codec,t.manifestCodec=a.manifestCodec,k.log("parsed codec:"+t.codec+", rate:"+a.samplerate+", channels:"+a.channelCount)}}function pi(t){return 9216e4/t}function yi(t,e,r,i,n){var a,s=i+n*pi(t.samplerate),o=function(t,e){var r=ci(t,e);if(e+r<=t.length){var i=fi(t,e)-r;if(i>0)return{headerLength:r,frameLength:i}}}(e,r);if(o){var l=o.frameLength,u=o.headerLength,h=u+l,d=Math.max(0,r+h-e.length);d?(a=new Uint8Array(h-u)).set(e.subarray(r+u,e.length),0):a=e.subarray(r+u,r+h);var c={unit:a,pts:s};return d||t.samples.push(c),{sample:c,length:h,missing:d}}var f=e.length-r;return(a=new Uint8Array(f)).set(e.subarray(r,e.length),0),{sample:{unit:a,pts:s},length:f,missing:-1}}var Ei=null,Ti=[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],Si=[44100,48e3,32e3,22050,24e3,16e3,11025,12e3,8e3],Li=[[0,72,144,12],[0,0,0,0],[0,72,144,12],[0,144,144,12]],Ai=[0,1,1,4];function Ri(t,e,r,i,n){if(!(r+24>e.length)){var a=bi(e,r);if(a&&r+a.frameLength<=e.length){var s=i+n*(9e4*a.samplesPerFrame/a.sampleRate),o={unit:e.subarray(r,r+a.frameLength),pts:s,dts:s};return t.config=[],t.channelCount=a.channelCount,t.samplerate=a.sampleRate,t.samples.push(o),{sample:o,length:a.frameLength,missing:0}}}}function bi(t,e){var r=t[e+1]>>3&3,i=t[e+1]>>1&3,n=t[e+2]>>4&15,a=t[e+2]>>2&3;if(1!==r&&0!==n&&15!==n&&3!==a){var s=t[e+2]>>1&1,o=t[e+3]>>6,l=1e3*Ti[14*(3===r?3-i:3===i?3:4)+n-1],u=Si[3*(3===r?0:2===r?1:2)+a],h=3===o?1:2,d=Li[r][i],c=Ai[i],f=8*d*c,g=Math.floor(d*l/u+s)*c;if(null===Ei){var v=(navigator.userAgent||"").match(/Chrome\/(\d+)/i);Ei=v?parseInt(v[1]):0}return!!Ei&&Ei<=87&&2===i&&l>=224e3&&0===o&&(t[e+3]=128|t[e+3]),{sampleRate:u,channelCount:h,frameLength:g,samplesPerFrame:f}}}function ki(t,e){return 255===t[e]&&224==(224&t[e+1])&&0!=(6&t[e+1])}function Di(t,e){return e+18&&109===t[r+4]&&111===t[r+5]&&111===t[r+6]&&102===t[r+7])return!0;r=i>1?r+i:e}return!1}(t)},e.demux=function(t,e){this.timeOffset=e;var r=t,i=this.videoTrack,n=this.txtTrack;if(this.config.progressive){this.remainderData&&(r=Ot(this.remainderData,t));var a=function(t){var e={valid:null,remainder:null},r=Dt(t,["moof"]);if(r.length<2)return e.remainder=t,e;var i=r[r.length-1];return e.valid=tt(t,0,i.byteOffset-8),e.remainder=tt(t,i.byteOffset-8),e}(r);this.remainderData=a.remainder,i.samples=a.valid||new Uint8Array}else i.samples=r;var s=this.extractID3Track(i,e);return n.samples=Nt(e,i),{videoTrack:i,audioTrack:this.audioTrack,id3Track:s,textTrack:this.txtTrack}},e.flush=function(){var t=this.timeOffset,e=this.videoTrack,r=this.txtTrack;e.samples=this.remainderData||new Uint8Array,this.remainderData=null;var i=this.extractID3Track(e,this.timeOffset);return r.samples=Nt(t,e),{videoTrack:e,audioTrack:li(),id3Track:i,textTrack:li()}},e.extractID3Track=function(t,e){var r=this.id3Track;if(t.samples.length){var i=Dt(t.samples,["emsg"]);i&&i.forEach((function(t){var i=function(t){var e=t[0],r="",i="",n=0,a=0,s=0,o=0,l=0,u=0;if(0===e){for(;"\0"!==St(t.subarray(u,u+1));)r+=St(t.subarray(u,u+1)),u+=1;for(r+=St(t.subarray(u,u+1)),u+=1;"\0"!==St(t.subarray(u,u+1));)i+=St(t.subarray(u,u+1)),u+=1;i+=St(t.subarray(u,u+1)),u+=1,n=At(t,12),a=At(t,16),o=At(t,20),l=At(t,24),u=28}else if(1===e){n=At(t,u+=4);var h=At(t,u+=4),d=At(t,u+=4);for(u+=4,s=Math.pow(2,32)*h+d,p(s)||(s=Number.MAX_SAFE_INTEGER,k.warn("Presentation time exceeds safe integer limit and wrapped to max safe integer in parsing emsg box")),o=At(t,u),l=At(t,u+=4),u+=4;"\0"!==St(t.subarray(u,u+1));)r+=St(t.subarray(u,u+1)),u+=1;for(r+=St(t.subarray(u,u+1)),u+=1;"\0"!==St(t.subarray(u,u+1));)i+=St(t.subarray(u,u+1)),u+=1;i+=St(t.subarray(u,u+1)),u+=1}return{schemeIdUri:r,value:i,timeScale:n,presentationTime:s,presentationTimeDelta:a,eventDuration:o,id:l,payload:t.subarray(u,t.byteLength)}}(t);if(Ci.test(i.schemeIdUri)){var n=m(i.presentationTime)?i.presentationTime/i.timeScale:e+i.presentationTimeDelta/i.timeScale,a=4294967295===i.eventDuration?Number.POSITIVE_INFINITY:i.eventDuration/i.timeScale;a<=.001&&(a=Number.POSITIVE_INFINITY);var s=i.payload;r.samples.push({data:s,len:s.byteLength,dts:n,pts:n,type:Me,duration:a})}}))}return r},e.demuxSampleAes=function(t,e,r){return Promise.reject(new Error("The MP4 demuxer does not support SAMPLE-AES decryption"))},e.destroy=function(){},t}(),xi=function(t,e){var r=0,i=5;e+=i;for(var n=new Uint32Array(1),a=new Uint32Array(1),s=new Uint8Array(1);i>0;){s[0]=t[e];var o=Math.min(i,8),l=8-o;a[0]=4278190080>>>24+l<>l,r=r?r<e.length)return-1;if(11!==e[r]||119!==e[r+1])return-1;var a=e[r+4]>>6;if(a>=3)return-1;var s=[48e3,44100,32e3][a],o=63&e[r+4],l=2*[64,69,96,64,70,96,80,87,120,80,88,120,96,104,144,96,105,144,112,121,168,112,122,168,128,139,192,128,140,192,160,174,240,160,175,240,192,208,288,192,209,288,224,243,336,224,244,336,256,278,384,256,279,384,320,348,480,320,349,480,384,417,576,384,418,576,448,487,672,448,488,672,512,557,768,512,558,768,640,696,960,640,697,960,768,835,1152,768,836,1152,896,975,1344,896,976,1344,1024,1114,1536,1024,1115,1536,1152,1253,1728,1152,1254,1728,1280,1393,1920,1280,1394,1920][3*o+a];if(r+l>e.length)return-1;var u=e[r+6]>>5,h=0;2===u?h+=2:(1&u&&1!==u&&(h+=2),4&u&&(h+=2));var d=(e[r+6]<<8|e[r+7])>>12-h&1,c=[2,1,2,3,3,4,4,5][u]+d,f=e[r+5]>>3,g=7&e[r+5],v=new Uint8Array([a<<6|f<<1|g>>2,(3&g)<<6|u<<3|d<<2|o>>4,o<<4&224]),m=i+n*(1536/s*9e4),p=e.subarray(r,r+l);return t.config=v,t.channelCount=c,t.samplerate=s,t.samples.push({unit:p,pts:m}),l}var Mi=function(){function t(){this.VideoSample=null}var e=t.prototype;return e.createVideoSample=function(t,e,r,i){return{key:t,frame:!1,pts:e,dts:r,units:[],debug:i,length:0}},e.getLastNalUnit=function(t){var e,r,i=this.VideoSample;if(i&&0!==i.units.length||(i=t[t.length-1]),null!=(e=i)&&e.units){var n=i.units;r=n[n.length-1]}return r},e.pushAccessUnit=function(t,e){if(t.units.length&&t.frame){if(void 0===t.pts){var r=e.samples,i=r.length;if(!i)return void e.dropped++;var n=r[i-1];t.pts=n.pts,t.dts=n.dts}e.samples.push(t)}t.debug.length&&k.log(t.pts+"/"+t.dts+":"+t.debug)},t}(),Oi=function(){function t(t){this.data=void 0,this.bytesAvailable=void 0,this.word=void 0,this.bitsAvailable=void 0,this.data=t,this.bytesAvailable=t.byteLength,this.word=0,this.bitsAvailable=0}var e=t.prototype;return e.loadWord=function(){var t=this.data,e=this.bytesAvailable,r=t.byteLength-e,i=new Uint8Array(4),n=Math.min(4,e);if(0===n)throw new Error("no bytes available");i.set(t.subarray(r,r+n)),this.word=new DataView(i.buffer).getUint32(0),this.bitsAvailable=8*n,this.bytesAvailable-=n},e.skipBits=function(t){var e;t=Math.min(t,8*this.bytesAvailable+this.bitsAvailable),this.bitsAvailable>t?(this.word<<=t,this.bitsAvailable-=t):(t-=this.bitsAvailable,t-=(e=t>>3)<<3,this.bytesAvailable-=e,this.loadWord(),this.word<<=t,this.bitsAvailable-=t)},e.readBits=function(t){var e=Math.min(this.bitsAvailable,t),r=this.word>>>32-e;if(t>32&&k.error("Cannot read more than 32 bits at a time"),this.bitsAvailable-=e,this.bitsAvailable>0)this.word<<=e;else{if(!(this.bytesAvailable>0))throw new Error("no bits available");this.loadWord()}return(e=t-e)>0&&this.bitsAvailable?r<>>t))return this.word<<=t,this.bitsAvailable-=t,t;return this.loadWord(),t+this.skipLZ()},e.skipUEG=function(){this.skipBits(1+this.skipLZ())},e.skipEG=function(){this.skipBits(1+this.skipLZ())},e.readUEG=function(){var t=this.skipLZ();return this.readBits(t+1)-1},e.readEG=function(){var t=this.readUEG();return 1&t?1+t>>>1:-1*(t>>>1)},e.readBoolean=function(){return 1===this.readBits(1)},e.readUByte=function(){return this.readBits(8)},e.readUShort=function(){return this.readBits(16)},e.readUInt=function(){return this.readBits(32)},e.skipScalingList=function(t){for(var e=8,r=8,i=0;i4){var f=new Oi(c).readSliceType();2!==f&&4!==f&&7!==f&&9!==f||(h=!0)}h&&null!=(d=l)&&d.frame&&!l.key&&(s.pushAccessUnit(l,t),l=s.VideoSample=null),l||(l=s.VideoSample=s.createVideoSample(!0,r.pts,r.dts,"")),l.frame=!0,l.key=h;break;case 5:a=!0,null!=(o=l)&&o.frame&&!l.key&&(s.pushAccessUnit(l,t),l=s.VideoSample=null),l||(l=s.VideoSample=s.createVideoSample(!0,r.pts,r.dts,"")),l.key=!0,l.frame=!0;break;case 6:a=!0,Bt(i.data,1,r.pts,e.samples);break;case 7:var g,v;a=!0,u=!0;var m=i.data,p=new Oi(m).readSPS();if(!t.sps||t.width!==p.width||t.height!==p.height||(null==(g=t.pixelRatio)?void 0:g[0])!==p.pixelRatio[0]||(null==(v=t.pixelRatio)?void 0:v[1])!==p.pixelRatio[1]){t.width=p.width,t.height=p.height,t.pixelRatio=p.pixelRatio,t.sps=[m],t.duration=n;for(var y=m.subarray(1,4),E="avc1.",T=0;T<3;T++){var S=y[T].toString(16);S.length<2&&(S="0"+S),E+=S}t.codec=E}break;case 8:a=!0,t.pps=[i.data];break;case 9:a=!0,t.audFound=!0,l&&s.pushAccessUnit(l,t),l=s.VideoSample=s.createVideoSample(!1,r.pts,r.dts,"");break;case 12:a=!0;break;default:a=!1,l&&(l.debug+="unknown NAL "+i.type+" ")}l&&a&&l.units.push(i)})),i&&l&&(this.pushAccessUnit(l,t),this.VideoSample=null)},r.parseAVCNALu=function(t,e){var r,i,n=e.byteLength,a=t.naluState||0,s=a,o=[],l=0,u=-1,h=0;for(-1===a&&(u=0,h=31&e[0],a=0,l=1);l=0){var d={data:e.subarray(u,i),type:h};o.push(d)}else{var c=this.getLastNalUnit(t.samples);c&&(s&&l<=4-s&&c.state&&(c.data=c.data.subarray(0,c.data.byteLength-s)),i>0&&(c.data=Ot(c.data,e.subarray(0,i)),c.state=0))}l=0&&a>=0){var f={data:e.subarray(u,n),type:h,state:a};o.push(f)}if(0===o.length){var g=this.getLastNalUnit(t.samples);g&&(g.data=Ot(g.data,e))}return t.naluState=a,o},e}(Mi),Ui=function(){function t(t,e,r){this.keyData=void 0,this.decrypter=void 0,this.keyData=r,this.decrypter=new qr(e,{removePKCS7Padding:!1})}var e=t.prototype;return e.decryptBuffer=function(t){return this.decrypter.decrypt(t,this.keyData.key.buffer,this.keyData.iv.buffer)},e.decryptAacSample=function(t,e,r){var i=this,n=t[e].unit;if(!(n.length<=16)){var a=n.subarray(16,n.length-n.length%16),s=a.buffer.slice(a.byteOffset,a.byteOffset+a.length);this.decryptBuffer(s).then((function(a){var s=new Uint8Array(a);n.set(s,16),i.decrypter.isSync()||i.decryptAacSamples(t,e+1,r)}))}},e.decryptAacSamples=function(t,e,r){for(;;e++){if(e>=t.length)return void r();if(!(t[e].unit.length<32||(this.decryptAacSample(t,e,r),this.decrypter.isSync())))return}},e.getAvcEncryptedData=function(t){for(var e=16*Math.floor((t.length-48)/160)+16,r=new Int8Array(e),i=0,n=32;n=t.length)return void i();for(var n=t[e].units;!(r>=n.length);r++){var a=n[r];if(!(a.data.length<=48||1!==a.type&&5!==a.type||(this.decryptAvcSample(t,e,r,i,a),this.decrypter.isSync())))return}}},t}(),Bi=188,Gi=function(){function t(t,e,r){this.observer=void 0,this.config=void 0,this.typeSupported=void 0,this.sampleAes=null,this.pmtParsed=!1,this.audioCodec=void 0,this.videoCodec=void 0,this._duration=0,this._pmtId=-1,this._videoTrack=void 0,this._audioTrack=void 0,this._id3Track=void 0,this._txtTrack=void 0,this.aacOverFlow=null,this.remainderData=null,this.videoParser=void 0,this.observer=t,this.config=e,this.typeSupported=r,this.videoParser=new Ni}t.probe=function(e){var r=t.syncOffset(e);return r>0&&k.warn("MPEG2-TS detected but first sync word found @ offset "+r),-1!==r},t.syncOffset=function(t){for(var e=t.length,r=Math.min(940,e-Bi)+1,i=0;i1&&(0===a&&s>2||o+Bi>r))return a}i++}return-1},t.createTrack=function(t,e){return{container:"video"===t||"audio"===t?"video/mp2t":void 0,type:t,id:Tt[t],pid:-1,inputTimeScale:9e4,sequenceNumber:0,samples:[],dropped:0,duration:"audio"===t?e:void 0}};var e=t.prototype;return e.resetInitSegment=function(e,r,i,n){this.pmtParsed=!1,this._pmtId=-1,this._videoTrack=t.createTrack("video"),this._audioTrack=t.createTrack("audio",n),this._id3Track=t.createTrack("id3"),this._txtTrack=t.createTrack("text"),this._audioTrack.segmentCodec="aac",this.aacOverFlow=null,this.remainderData=null,this.audioCodec=r,this.videoCodec=i,this._duration=n},e.resetTimeStamp=function(){},e.resetContiguity=function(){var t=this._audioTrack,e=this._videoTrack,r=this._id3Track;t&&(t.pesData=null),e&&(e.pesData=null),r&&(r.pesData=null),this.aacOverFlow=null,this.remainderData=null},e.demux=function(e,r,i,n){var a;void 0===i&&(i=!1),void 0===n&&(n=!1),i||(this.sampleAes=null);var s=this._videoTrack,o=this._audioTrack,l=this._id3Track,u=this._txtTrack,h=s.pid,d=s.pesData,c=o.pid,f=l.pid,g=o.pesData,v=l.pesData,m=null,p=this.pmtParsed,y=this._pmtId,L=e.length;if(this.remainderData&&(L=(e=Ot(this.remainderData,e)).length,this.remainderData=null),L>4>1){if((w=b+5+e[b+4])===b+Bi)continue}else w=b+4;switch(I){case h:D&&(d&&(a=Wi(d))&&this.videoParser.parseAVCPES(s,u,a,!1,this._duration),d={data:[],size:0}),d&&(d.data.push(e.subarray(w,b+Bi)),d.size+=b+Bi-w);break;case c:if(D){if(g&&(a=Wi(g)))switch(o.segmentCodec){case"aac":this.parseAACPES(o,a);break;case"mp3":this.parseMPEGPES(o,a);break;case"ac3":this.parseAC3PES(o,a)}g={data:[],size:0}}g&&(g.data.push(e.subarray(w,b+Bi)),g.size+=b+Bi-w);break;case f:D&&(v&&(a=Wi(v))&&this.parseID3PES(l,a),v={data:[],size:0}),v&&(v.data.push(e.subarray(w,b+Bi)),v.size+=b+Bi-w);break;case 0:D&&(w+=e[w]+1),y=this._pmtId=Hi(e,w);break;case y:D&&(w+=e[w]+1);var C=Vi(e,w,this.typeSupported,i);(h=C.videoPid)>0&&(s.pid=h,s.segmentCodec=C.segmentVideoCodec),(c=C.audioPid)>0&&(o.pid=c,o.segmentCodec=C.segmentAudioCodec),(f=C.id3Pid)>0&&(l.pid=f),null===m||p||(k.warn("MPEG-TS PMT found at "+b+" after unknown PID '"+m+"'. Backtracking to sync byte @"+A+" to parse all TS packets."),m=null,b=A-188),p=this.pmtParsed=!0;break;case 17:case 8191:break;default:m=I}}else R++;if(R>0){var _=new Error("Found "+R+" TS packet/s that do not start with 0x47");this.observer.emit(E.ERROR,E.ERROR,{type:T.MEDIA_ERROR,details:S.FRAG_PARSING_ERROR,fatal:!1,error:_,reason:_.message})}s.pesData=d,o.pesData=g,l.pesData=v;var x={audioTrack:o,videoTrack:s,id3Track:l,textTrack:u};return n&&this.extractRemainingSamples(x),x},e.flush=function(){var t,e=this.remainderData;return this.remainderData=null,t=e?this.demux(e,-1,!1,!0):{videoTrack:this._videoTrack,audioTrack:this._audioTrack,id3Track:this._id3Track,textTrack:this._txtTrack},this.extractRemainingSamples(t),this.sampleAes?this.decrypt(t,this.sampleAes):t},e.extractRemainingSamples=function(t){var e,r=t.audioTrack,i=t.videoTrack,n=t.id3Track,a=t.textTrack,s=i.pesData,o=r.pesData,l=n.pesData;if(s&&(e=Wi(s))?(this.videoParser.parseAVCPES(i,a,e,!0,this._duration),i.pesData=null):i.pesData=s,o&&(e=Wi(o))){switch(r.segmentCodec){case"aac":this.parseAACPES(r,e);break;case"mp3":this.parseMPEGPES(r,e);break;case"ac3":this.parseAC3PES(r,e)}r.pesData=null}else null!=o&&o.size&&k.log("last AAC PES packet truncated,might overlap between fragments"),r.pesData=o;l&&(e=Wi(l))?(this.parseID3PES(n,e),n.pesData=null):n.pesData=l},e.demuxSampleAes=function(t,e,r){var i=this.demux(t,r,!0,!this.config.progressive),n=this.sampleAes=new Ui(this.observer,this.config,e);return this.decrypt(i,n)},e.decrypt=function(t,e){return new Promise((function(r){var i=t.audioTrack,n=t.videoTrack;i.samples&&"aac"===i.segmentCodec?e.decryptAacSamples(i.samples,0,(function(){n.samples?e.decryptAvcSamples(n.samples,0,0,(function(){r(t)})):r(t)})):n.samples&&e.decryptAvcSamples(n.samples,0,0,(function(){r(t)}))}))},e.destroy=function(){this._duration=0},e.parseAACPES=function(t,e){var r,i,n,a=0,s=this.aacOverFlow,o=e.data;if(s){this.aacOverFlow=null;var l=s.missing,u=s.sample.unit.byteLength;if(-1===l)o=Ot(s.sample.unit,o);else{var h=u-l;s.sample.unit.set(o.subarray(0,l),h),t.samples.push(s.sample),a=s.missing}}for(r=a,i=o.length;r0;)o+=n;else k.warn("[tsdemuxer]: AC3 PES unknown PTS")},e.parseID3PES=function(t,e){if(void 0!==e.pts){var r=o({},e,{type:this._videoTrack?Me:Fe,duration:Number.POSITIVE_INFINITY});t.samples.push(r)}else k.warn("[tsdemuxer]: ID3 PES unknown PTS")},t}();function Ki(t,e){return((31&t[e+1])<<8)+t[e+2]}function Hi(t,e){return(31&t[e+10])<<8|t[e+11]}function Vi(t,e,r,i){var n={audioPid:-1,videoPid:-1,id3Pid:-1,segmentVideoCodec:"avc",segmentAudioCodec:"aac"},a=e+3+((15&t[e+1])<<8|t[e+2])-4;for(e+=12+((15&t[e+10])<<8|t[e+11]);e0)for(var l=e+5,u=o;u>2;){106===t[l]&&(!0!==r.ac3?k.log("AC-3 audio found, not supported in this browser for now"):(n.audioPid=s,n.segmentAudioCodec="ac3"));var h=t[l+1]+2;l+=h,u-=h}break;case 194:case 135:k.warn("Unsupported EC-3 in M2TS found");break;case 36:k.warn("Unsupported HEVC in M2TS found")}e+=o+5}return n}function Yi(t){k.log(t+" with AES-128-CBC encryption found in unencrypted stream")}function Wi(t){var e,r,i,n,a,s=0,o=t.data;if(!t||0===t.size)return null;for(;o[0].length<19&&o.length>1;)o[0]=Ot(o[0],o[1]),o.splice(1,1);if(1===((e=o[0])[0]<<16)+(e[1]<<8)+e[2]){if((r=(e[4]<<8)+e[5])&&r>t.size-6)return null;var l=e[7];192&l&&(n=536870912*(14&e[9])+4194304*(255&e[10])+16384*(254&e[11])+128*(255&e[12])+(254&e[13])/2,64&l?n-(a=536870912*(14&e[14])+4194304*(255&e[15])+16384*(254&e[16])+128*(255&e[17])+(254&e[18])/2)>54e5&&(k.warn(Math.round((n-a)/9e4)+"s delta between PTS and DTS, align them"),n=a):a=n);var u=(i=e[8])+9;if(t.size<=u)return null;t.size-=u;for(var h=new Uint8Array(t.size),d=0,c=o.length;df){u-=f;continue}e=e.subarray(u),f-=u,u=0}h.set(e,s),s+=f}return r&&(r-=i+3),{data:h,pts:n,dts:a,len:r}}return null}var ji=function(t){function e(){return t.apply(this,arguments)||this}l(e,t);var r=e.prototype;return r.resetInitSegment=function(e,r,i,n){t.prototype.resetInitSegment.call(this,e,r,i,n),this._audioTrack={container:"audio/mpeg",type:"audio",id:2,pid:-1,sequenceNumber:0,segmentCodec:"mp3",samples:[],manifestCodec:r,duration:n,inputTimeScale:9e4,dropped:0}},e.probe=function(t){if(!t)return!1;var e=nt(t,0),r=(null==e?void 0:e.length)||0;if(e&&11===t[r]&&119===t[r+1]&&void 0!==ot(e)&&xi(t,r)<=16)return!1;for(var i=t.length;r1?r-1:0),n=1;n>24&255,o[1]=e>>16&255,o[2]=e>>8&255,o[3]=255&e,o.set(t,4),a=0,e=8;a>24&255,e>>16&255,e>>8&255,255&e,i>>24,i>>16&255,i>>8&255,255&i,n>>24,n>>16&255,n>>8&255,255&n,85,196,0,0]))},t.mdia=function(e){return t.box(t.types.mdia,t.mdhd(e.timescale,e.duration),t.hdlr(e.type),t.minf(e))},t.mfhd=function(e){return t.box(t.types.mfhd,new Uint8Array([0,0,0,0,e>>24,e>>16&255,e>>8&255,255&e]))},t.minf=function(e){return"audio"===e.type?t.box(t.types.minf,t.box(t.types.smhd,t.SMHD),t.DINF,t.stbl(e)):t.box(t.types.minf,t.box(t.types.vmhd,t.VMHD),t.DINF,t.stbl(e))},t.moof=function(e,r,i){return t.box(t.types.moof,t.mfhd(e),t.traf(i,r))},t.moov=function(e){for(var r=e.length,i=[];r--;)i[r]=t.trak(e[r]);return t.box.apply(null,[t.types.moov,t.mvhd(e[0].timescale,e[0].duration)].concat(i).concat(t.mvex(e)))},t.mvex=function(e){for(var r=e.length,i=[];r--;)i[r]=t.trex(e[r]);return t.box.apply(null,[t.types.mvex].concat(i))},t.mvhd=function(e,r){r*=e;var i=Math.floor(r/(Xi+1)),n=Math.floor(r%(Xi+1)),a=new Uint8Array([1,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3,e>>24&255,e>>16&255,e>>8&255,255&e,i>>24,i>>16&255,i>>8&255,255&i,n>>24,n>>16&255,n>>8&255,255&n,0,1,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255]);return t.box(t.types.mvhd,a)},t.sdtp=function(e){var r,i,n=e.samples||[],a=new Uint8Array(4+n.length);for(r=0;r>>8&255),a.push(255&n),a=a.concat(Array.prototype.slice.call(i));for(r=0;r>>8&255),s.push(255&n),s=s.concat(Array.prototype.slice.call(i));var o=t.box(t.types.avcC,new Uint8Array([1,a[3],a[4],a[5],255,224|e.sps.length].concat(a).concat([e.pps.length]).concat(s))),l=e.width,u=e.height,h=e.pixelRatio[0],d=e.pixelRatio[1];return t.box(t.types.avc1,new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,l>>8&255,255&l,u>>8&255,255&u,0,72,0,0,0,72,0,0,0,0,0,0,0,1,18,100,97,105,108,121,109,111,116,105,111,110,47,104,108,115,46,106,115,0,0,0,0,0,0,0,0,0,0,0,0,0,0,24,17,17]),o,t.box(t.types.btrt,new Uint8Array([0,28,156,128,0,45,198,192,0,45,198,192])),t.box(t.types.pasp,new Uint8Array([h>>24,h>>16&255,h>>8&255,255&h,d>>24,d>>16&255,d>>8&255,255&d])))},t.esds=function(t){var e=t.config.length;return new Uint8Array([0,0,0,0,3,23+e,0,1,0,4,15+e,64,21,0,0,0,0,0,0,0,0,0,0,0,5].concat([e]).concat(t.config).concat([6,1,2]))},t.audioStsd=function(t){var e=t.samplerate;return 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,e>>8&255,255&e,0,0])},t.mp4a=function(e){return t.box(t.types.mp4a,t.audioStsd(e),t.box(t.types.esds,t.esds(e)))},t.mp3=function(e){return t.box(t.types[".mp3"],t.audioStsd(e))},t.ac3=function(e){return t.box(t.types["ac-3"],t.audioStsd(e),t.box(t.types.dac3,e.config))},t.stsd=function(e){return"audio"===e.type?"mp3"===e.segmentCodec&&"mp3"===e.codec?t.box(t.types.stsd,t.STSD,t.mp3(e)):"ac3"===e.segmentCodec?t.box(t.types.stsd,t.STSD,t.ac3(e)):t.box(t.types.stsd,t.STSD,t.mp4a(e)):t.box(t.types.stsd,t.STSD,t.avc1(e))},t.tkhd=function(e){var r=e.id,i=e.duration*e.timescale,n=e.width,a=e.height,s=Math.floor(i/(Xi+1)),o=Math.floor(i%(Xi+1));return t.box(t.types.tkhd,new Uint8Array([1,0,0,7,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3,r>>24&255,r>>16&255,r>>8&255,255&r,0,0,0,0,s>>24,s>>16&255,s>>8&255,255&s,o>>24,o>>16&255,o>>8&255,255&o,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,n>>8&255,255&n,0,0,a>>8&255,255&a,0,0]))},t.traf=function(e,r){var i=t.sdtp(e),n=e.id,a=Math.floor(r/(Xi+1)),s=Math.floor(r%(Xi+1));return t.box(t.types.traf,t.box(t.types.tfhd,new Uint8Array([0,0,0,0,n>>24,n>>16&255,n>>8&255,255&n])),t.box(t.types.tfdt,new Uint8Array([1,0,0,0,a>>24,a>>16&255,a>>8&255,255&a,s>>24,s>>16&255,s>>8&255,255&s])),t.trun(e,i.length+16+20+8+16+8+8),i)},t.trak=function(e){return e.duration=e.duration||4294967295,t.box(t.types.trak,t.tkhd(e),t.mdia(e))},t.trex=function(e){var r=e.id;return t.box(t.types.trex,new Uint8Array([0,0,0,0,r>>24,r>>16&255,r>>8&255,255&r,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,1]))},t.trun=function(e,r){var i,n,a,s,o,l,u=e.samples||[],h=u.length,d=12+16*h,c=new Uint8Array(d);for(r+=8+d,c.set(["video"===e.type?1:0,0,15,1,h>>>24&255,h>>>16&255,h>>>8&255,255&h,r>>>24&255,r>>>16&255,r>>>8&255,255&r],0),i=0;i>>24&255,a>>>16&255,a>>>8&255,255&a,s>>>24&255,s>>>16&255,s>>>8&255,255&s,o.isLeading<<2|o.dependsOn,o.isDependedOn<<6|o.hasRedundancy<<4|o.paddingValue<<1|o.isNonSync,61440&o.degradPrio,15&o.degradPrio,l>>>24&255,l>>>16&255,l>>>8&255,255&l],12+16*i);return t.box(t.types.trun,c)},t.initSegment=function(e){t.types||t.init();var r=t.moov(e);return Ot(t.FTYP,r)},t}();zi.types=void 0,zi.HDLR_TYPES=void 0,zi.STTS=void 0,zi.STSC=void 0,zi.STCO=void 0,zi.STSZ=void 0,zi.VMHD=void 0,zi.SMHD=void 0,zi.STSD=void 0,zi.FTYP=void 0,zi.DINF=void 0;function Qi(t,e,r,i){void 0===r&&(r=1),void 0===i&&(i=!1);var n=t*e*r;return i?Math.round(n):n}function Ji(t,e){return void 0===e&&(e=!1),Qi(t,1e3,1/9e4,e)}var $i=null,Zi=null,tn=function(){function t(t,e,r,i){if(this.observer=void 0,this.config=void 0,this.typeSupported=void 0,this.ISGenerated=!1,this._initPTS=null,this._initDTS=null,this.nextAvcDts=null,this.nextAudioPts=null,this.videoSampleDuration=null,this.isAudioContiguous=!1,this.isVideoContiguous=!1,this.videoTrackConfig=void 0,this.observer=t,this.config=e,this.typeSupported=r,this.ISGenerated=!1,null===$i){var n=(navigator.userAgent||"").match(/Chrome\/(\d+)/i);$i=n?parseInt(n[1]):0}if(null===Zi){var a=navigator.userAgent.match(/Safari\/(\d+)/i);Zi=a?parseInt(a[1]):0}}var e=t.prototype;return e.destroy=function(){this.config=this.videoTrackConfig=this._initPTS=this._initDTS=null},e.resetTimeStamp=function(t){k.log("[mp4-remuxer]: initPTS & initDTS reset"),this._initPTS=this._initDTS=t},e.resetNextTimestamp=function(){k.log("[mp4-remuxer]: reset next timestamp"),this.isVideoContiguous=!1,this.isAudioContiguous=!1},e.resetInitSegment=function(){k.log("[mp4-remuxer]: ISGenerated flag reset"),this.ISGenerated=!1,this.videoTrackConfig=void 0},e.getVideoStartPts=function(t){var e=!1,r=t.reduce((function(t,r){var i=r.pts-t;return i<-4294967296?(e=!0,en(t,r.pts)):i>0?t:r.pts}),t[0].pts);return e&&k.debug("PTS rollover detected"),r},e.remux=function(t,e,r,i,n,a,s,o){var l,u,h,d,c,f,g=n,v=n,m=t.pid>-1,p=e.pid>-1,y=e.samples.length,E=t.samples.length>0,T=s&&y>0||y>1;if((!m||E)&&(!p||T)||this.ISGenerated||s){if(this.ISGenerated){var S,L,A,R,b=this.videoTrackConfig;!b||e.width===b.width&&e.height===b.height&&(null==(S=e.pixelRatio)?void 0:S[0])===(null==(L=b.pixelRatio)?void 0:L[0])&&(null==(A=e.pixelRatio)?void 0:A[1])===(null==(R=b.pixelRatio)?void 0:R[1])||this.resetInitSegment()}else h=this.generateIS(t,e,n,a);var D,I=this.isVideoContiguous,w=-1;if(T&&(w=function(t){for(var e=0;e0){k.warn("[mp4-remuxer]: Dropped "+w+" out of "+y+" video samples due to a missing keyframe");var C=this.getVideoStartPts(e.samples);e.samples=e.samples.slice(w),e.dropped+=w,D=v+=(e.samples[0].pts-C)/e.inputTimeScale}else-1===w&&(k.warn("[mp4-remuxer]: No keyframe found out of "+y+" video samples"),f=!1);if(this.ISGenerated){if(E&&T){var _=this.getVideoStartPts(e.samples),x=(en(t.samples[0].pts,_)-_)/e.inputTimeScale;g+=Math.max(0,x),v+=Math.max(0,-x)}if(E){if(t.samplerate||(k.warn("[mp4-remuxer]: regenerate InitSegment as audio detected"),h=this.generateIS(t,e,n,a)),u=this.remuxAudio(t,g,this.isAudioContiguous,a,p||T||o===Re?v:void 0),T){var P=u?u.endPTS-u.startPTS:0;e.inputTimeScale||(k.warn("[mp4-remuxer]: regenerate InitSegment as video detected"),h=this.generateIS(t,e,n,a)),l=this.remuxVideo(e,v,I,P)}}else T&&(l=this.remuxVideo(e,v,I,0));l&&(l.firstKeyFrame=w,l.independent=-1!==w,l.firstKeyFramePTS=D)}}return this.ISGenerated&&this._initPTS&&this._initDTS&&(r.samples.length&&(c=rn(r,n,this._initPTS,this._initDTS)),i.samples.length&&(d=nn(i,n,this._initPTS))),{audio:u,video:l,initSegment:h,independent:f,text:d,id3:c}},e.generateIS=function(t,e,r,i){var n,a,s,o=t.samples,l=e.samples,u=this.typeSupported,h={},d=this._initPTS,c=!d||i,f="audio/mp4";if(c&&(n=a=1/0),t.config&&o.length){switch(t.timescale=t.samplerate,t.segmentCodec){case"mp3":u.mpeg?(f="audio/mpeg",t.codec=""):u.mp3&&(t.codec="mp3");break;case"ac3":t.codec="ac-3"}h.audio={id:"audio",container:f,codec:t.codec,initSegment:"mp3"===t.segmentCodec&&u.mpeg?new Uint8Array(0):zi.initSegment([t]),metadata:{channelCount:t.channelCount}},c&&(s=t.inputTimeScale,d&&s===d.timescale?c=!1:n=a=o[0].pts-Math.round(s*r))}if(e.sps&&e.pps&&l.length){if(e.timescale=e.inputTimeScale,h.video={id:"main",container:"video/mp4",codec:e.codec,initSegment:zi.initSegment([e]),metadata:{width:e.width,height:e.height}},c)if(s=e.inputTimeScale,d&&s===d.timescale)c=!1;else{var g=this.getVideoStartPts(l),v=Math.round(s*r);a=Math.min(a,en(l[0].dts,g)-v),n=Math.min(n,g-v)}this.videoTrackConfig={width:e.width,height:e.height,pixelRatio:e.pixelRatio}}if(Object.keys(h).length)return this.ISGenerated=!0,c?(this._initPTS={baseTime:n,timescale:s},this._initDTS={baseTime:a,timescale:s}):n=s=void 0,{tracks:h,initPTS:n,timescale:s}},e.remuxVideo=function(t,e,r,i){var n,a,s=t.inputTimeScale,l=t.samples,u=[],h=l.length,d=this._initPTS,c=this.nextAvcDts,f=8,g=this.videoSampleDuration,v=Number.POSITIVE_INFINITY,m=Number.NEGATIVE_INFINITY,p=!1;if(!r||null===c){var y=e*s,L=l[0].pts-en(l[0].dts,l[0].pts);$i&&null!==c&&Math.abs(y-L-c)<15e3?r=!0:c=y-L}for(var A=d.baseTime*s/d.timescale,R=0;R0?R-1:R].dts&&(p=!0)}p&&l.sort((function(t,e){var r=t.dts-e.dts,i=t.pts-e.pts;return r||i})),n=l[0].dts;var D=l[l.length-1].dts-n,I=D?Math.round(D/(h-1)):g||t.inputTimeScale/30;if(r){var w=n-c,C=w>I,_=w<-1;if((C||_)&&(C?k.warn("AVC: "+Ji(w,!0)+" ms ("+w+"dts) hole between fragments detected at "+e.toFixed(3)):k.warn("AVC: "+Ji(-w,!0)+" ms ("+w+"dts) overlapping between fragments detected at "+e.toFixed(3)),!_||c>=l[0].pts||$i)){n=c;var x=l[0].pts-w;if(C)l[0].dts=n,l[0].pts=x;else for(var P=0;Px);P++)l[P].dts-=w,l[P].pts-=w;k.log("Video: Initial PTS/DTS adjusted: "+Ji(x,!0)+"/"+Ji(n,!0)+", delta: "+Ji(w,!0)+" ms")}}for(var F=0,M=0,O=n=Math.max(0,n),N=0;N0?$.dts-l[J-1].dts:I;if(st=J>0?$.pts-l[J-1].pts:I,ot.stretchShortVideoTrack&&null!==this.nextAudioPts){var ut=Math.floor(ot.maxBufferHole*s),ht=(i?v+i*s:this.nextAudioPts)-$.pts;ht>ut?((g=ht-lt)<0?g=lt:j=!0,k.log("[mp4-remuxer]: It is approximately "+ht/90+" ms to the next segment; using duration "+g/90+" ms for the last video frame.")):g=lt}else g=lt}var dt=Math.round($.pts-$.dts);q=Math.min(q,g),z=Math.max(z,g),X=Math.min(X,st),Q=Math.max(Q,st),u.push(new sn($.key,g,tt,dt))}if(u.length)if($i){if($i<70){var ct=u[0].flags;ct.dependsOn=2,ct.isNonSync=0}}else if(Zi&&Q-X0&&(i&&Math.abs(p-m)<9e3||Math.abs(en(g[0].pts-y,p)-m)<20*u),g.forEach((function(t){t.pts=en(t.pts-y,p)})),!r||m<0){if(g=g.filter((function(t){return t.pts>=0})),!g.length)return;m=0===n?0:i&&!f?Math.max(0,p):g[0].pts}if("aac"===t.segmentCodec)for(var L=this.config.maxAudioFramesDrift,A=0,R=m;A=L*u&&w<1e4&&f){var C=Math.round(I/u);(R=D-C*u)<0&&(C--,R+=u),0===A&&(this.nextAudioPts=m=R),k.warn("[mp4-remuxer]: Injecting "+C+" audio frame @ "+(R/a).toFixed(3)+"s due to "+Math.round(1e3*I/a)+" ms gap.");for(var _=0;_0))return;N+=v;try{F=new Uint8Array(N)}catch(t){return void this.observer.emit(E.ERROR,E.ERROR,{type:T.MUX_ERROR,details:S.REMUX_ALLOC_ERROR,fatal:!1,error:t,bytes:N,reason:"fail allocating audio mdat "+N})}d||(new DataView(F.buffer).setUint32(0,N),F.set(zi.types.mdat,4))}F.set(H,v);var Y=H.byteLength;v+=Y,c.push(new sn(!0,l,Y,0)),O=V}var W=c.length;if(W){var j=c[c.length-1];this.nextAudioPts=m=O+s*j.duration;var q=d?new Uint8Array(0):zi.moof(t.sequenceNumber++,M/s,o({},t,{samples:c}));t.samples=[];var X=M/a,z=m/a,Q={data1:q,data2:F,startPTS:X,endPTS:z,startDTS:X,endDTS:z,type:"audio",hasAudio:!0,hasVideo:!1,nb:W};return this.isAudioContiguous=!0,Q}},e.remuxEmptyAudio=function(t,e,r,i){var n=t.inputTimeScale,a=n/(t.samplerate?t.samplerate:n),s=this.nextAudioPts,o=this._initDTS,l=9e4*o.baseTime/o.timescale,u=(null!==s?s:i.startDTS*n)+l,h=i.endDTS*n+l,d=1024*a,c=Math.ceil((h-u)/d),f=qi.getSilentFrame(t.manifestCodec||t.codec,t.channelCount);if(k.warn("[mp4-remuxer]: remux empty Audio"),f){for(var g=[],v=0;v4294967296;)t+=r;return t}function rn(t,e,r,i){var n=t.samples.length;if(n){for(var a=t.inputTimeScale,s=0;s0;n||(i=Dt(e,["encv"])),i.forEach((function(t){Dt(n?t.subarray(28):t.subarray(78),["sinf"]).forEach((function(t){var e=Ft(t);if(e){var i=e.subarray(8,24);i.some((function(t){return 0!==t}))||(k.log("[eme] Patching keyId in 'enc"+(n?"a":"v")+">sinf>>tenc' box: "+pt(i)+" -> "+pt(r)),e.set(r,8))}}))}))})),t}(t,i)),this.emitInitSegment=!0},e.generateInitSegment=function(t){var e=this.audioCodec,r=this.videoCodec;if(null==t||!t.byteLength)return this.initTracks=void 0,void(this.initData=void 0);var i=this.initData=wt(t);i.audio&&(e=ln(i.audio,P)),i.video&&(r=ln(i.video,F));var n={};i.audio&&i.video?n.audiovideo={container:"video/mp4",codec:e+","+r,initSegment:t,id:"main"}:i.audio?n.audio={container:"audio/mp4",codec:e,initSegment:t,id:"audio"}:i.video?n.video={container:"video/mp4",codec:r,initSegment:t,id:"main"}:k.warn("[passthrough-remuxer.ts]: initSegment does not contain moov or trak boxes."),this.initTracks=n},e.remux=function(t,e,r,i,n,a){var s,o,l=this.initPTS,u=this.lastEndTime,h={audio:void 0,video:void 0,text:i,id3:r,initSegment:void 0};m(u)||(u=this.lastEndTime=n||0);var d=e.samples;if(null==d||!d.length)return h;var c={initPTS:void 0,timescale:1},f=this.initData;if(null!=(s=f)&&s.length||(this.generateInitSegment(d),f=this.initData),null==(o=f)||!o.length)return k.warn("[passthrough-remuxer.ts]: Failed to generate initSegment."),h;this.emitInitSegment&&(c.tracks=this.initTracks,this.emitInitSegment=!1);var g=function(t,e){for(var r=0,i=0,n=0,a=Dt(t,["moof","traf"]),s=0;sn}(l,p,n,g)||c.timescale!==l.timescale&&a)&&(c.initPTS=p-n,l&&1===l.timescale&&k.warn("Adjusting initPTS by "+(c.initPTS-l.baseTime)),this.initPTS=l={baseTime:c.initPTS,timescale:1});var y=t?p-l.baseTime/l.timescale:u,E=y+g;!function(t,e,r){Dt(e,["moof","traf"]).forEach((function(e){Dt(e,["tfhd"]).forEach((function(i){var n=At(i,4),a=t[n];if(a){var s=a.timescale||9e4;Dt(e,["tfdt"]).forEach((function(t){var e=t[0],i=r*s;if(i){var n=At(t,4);if(0===e)n-=i,kt(t,4,n=Math.max(n,0));else{n*=Math.pow(2,32),n+=At(t,8),n-=i,n=Math.max(n,0);var a=Math.floor(n/(yt+1)),o=Math.floor(n%(yt+1));kt(t,4,a),kt(t,8,o)}}}))}}))}))}(f,d,l.baseTime/l.timescale),g>0?this.lastEndTime=E:(k.warn("Duration parsed from mp4 should be greater than zero"),this.resetNextTimestamp());var T=!!f.audio,S=!!f.video,L="";T&&(L+="audio"),S&&(L+="video");var A={data1:d,startPTS:y,startDTS:y,endPTS:E,endDTS:E,type:L,hasAudio:T,hasVideo:S,nb:1,dropped:0};return h.audio="audio"===A.type?A:void 0,h.video="audio"!==A.type?A:void 0,h.initSegment=c,h.id3=rn(r,n,l,l),i.samples.length&&(h.text=nn(i,n,l)),h},t}();function ln(t,e){var r=null==t?void 0:t.codec;if(r&&r.length>4)return r;if(e===P){if("ec-3"===r||"ac-3"===r||"alac"===r)return r;if("fLaC"===r||"Opus"===r)return ne(r,!1);var i="mp4a.40.5";return k.info('Parsed audio codec "'+r+'" or audio object type not handled. Using "'+i+'"'),i}return k.warn('Unhandled video codec "'+r+'"'),"hvc1"===r||"hev1"===r?"hvc1.1.6.L120.90":"av01"===r?"av01.0.04M.08":"avc1.42e01e"}try{an=self.performance.now.bind(self.performance)}catch(e){k.debug("Unable to use Performance API on this environment"),an=null==H?void 0:H.Date.now}var un=[{demux:_i,remux:on},{demux:Gi,remux:tn},{demux:wi,remux:tn},{demux:ji,remux:tn}];un.splice(2,0,{demux:Pi,remux:tn});var hn=function(){function t(t,e,r,i,n){this.async=!1,this.observer=void 0,this.typeSupported=void 0,this.config=void 0,this.vendor=void 0,this.id=void 0,this.demuxer=void 0,this.remuxer=void 0,this.decrypter=void 0,this.probe=void 0,this.decryptionPromise=null,this.transmuxConfig=void 0,this.currentTransmuxState=void 0,this.observer=t,this.typeSupported=e,this.config=r,this.vendor=i,this.id=n}var e=t.prototype;return e.configure=function(t){this.transmuxConfig=t,this.decrypter&&this.decrypter.reset()},e.push=function(t,e,r,i){var n=this,a=r.transmuxing;a.executeStart=an();var s=new Uint8Array(t),o=this.currentTransmuxState,l=this.transmuxConfig;i&&(this.currentTransmuxState=i);var u=i||o,h=u.contiguous,d=u.discontinuity,c=u.trackSwitch,f=u.accurateTimeOffset,g=u.timeOffset,v=u.initSegmentChange,m=l.audioCodec,p=l.videoCodec,y=l.defaultInitPts,L=l.duration,A=l.initSegmentData,R=function(t,e){var r=null;return t.byteLength>0&&null!=(null==e?void 0:e.key)&&null!==e.iv&&null!=e.method&&(r=e),r}(s,e);if(R&&"AES-128"===R.method){var b=this.getDecrypter();if(!b.isSync())return this.decryptionPromise=b.webCryptoDecrypt(s,R.key.buffer,R.iv.buffer).then((function(t){var e=n.push(t,null,r);return n.decryptionPromise=null,e})),this.decryptionPromise;var D=b.softwareDecrypt(s,R.key.buffer,R.iv.buffer);if(r.part>-1&&(D=b.flush()),!D)return a.executeEnd=an(),dn(r);s=new Uint8Array(D)}var I=this.needsProbing(d,c);if(I){var w=this.configureTransmuxer(s);if(w)return k.warn("[transmuxer] "+w.message),this.observer.emit(E.ERROR,E.ERROR,{type:T.MEDIA_ERROR,details:S.FRAG_PARSING_ERROR,fatal:!1,error:w,reason:w.message}),a.executeEnd=an(),dn(r)}(d||c||v||I)&&this.resetInitSegment(A,m,p,L,e),(d||v||I)&&this.resetInitialTimestamp(y),h||this.resetContiguity();var C=this.transmux(s,R,g,f,r),_=this.currentTransmuxState;return _.contiguous=!0,_.discontinuity=!1,_.trackSwitch=!1,a.executeEnd=an(),C},e.flush=function(t){var e=this,r=t.transmuxing;r.executeStart=an();var i=this.decrypter,n=this.currentTransmuxState,a=this.decryptionPromise;if(a)return a.then((function(){return e.flush(t)}));var s=[],o=n.timeOffset;if(i){var l=i.flush();l&&s.push(this.push(l,null,t))}var u=this.demuxer,h=this.remuxer;if(!u||!h)return r.executeEnd=an(),[dn(t)];var d=u.flush(o);return cn(d)?d.then((function(r){return e.flushRemux(s,r,t),s})):(this.flushRemux(s,d,t),s)},e.flushRemux=function(t,e,r){var i=e.audioTrack,n=e.videoTrack,a=e.id3Track,s=e.textTrack,o=this.currentTransmuxState,l=o.accurateTimeOffset,u=o.timeOffset;k.log("[transmuxer.ts]: Flushed fragment "+r.sn+(r.part>-1?" p: "+r.part:"")+" of level "+r.level);var h=this.remuxer.remux(i,n,a,s,u,l,!0,this.id);t.push({remuxResult:h,chunkMeta:r}),r.transmuxing.executeEnd=an()},e.resetInitialTimestamp=function(t){var e=this.demuxer,r=this.remuxer;e&&r&&(e.resetTimeStamp(t),r.resetTimeStamp(t))},e.resetContiguity=function(){var t=this.demuxer,e=this.remuxer;t&&e&&(t.resetContiguity(),e.resetNextTimestamp())},e.resetInitSegment=function(t,e,r,i,n){var a=this.demuxer,s=this.remuxer;a&&s&&(a.resetInitSegment(t,e,r,i),s.resetInitSegment(t,e,r,n))},e.destroy=function(){this.demuxer&&(this.demuxer.destroy(),this.demuxer=void 0),this.remuxer&&(this.remuxer.destroy(),this.remuxer=void 0)},e.transmux=function(t,e,r,i,n){return e&&"SAMPLE-AES"===e.method?this.transmuxSampleAes(t,e,r,i,n):this.transmuxUnencrypted(t,r,i,n)},e.transmuxUnencrypted=function(t,e,r,i){var n=this.demuxer.demux(t,e,!1,!this.config.progressive),a=n.audioTrack,s=n.videoTrack,o=n.id3Track,l=n.textTrack;return{remuxResult:this.remuxer.remux(a,s,o,l,e,r,!1,this.id),chunkMeta:i}},e.transmuxSampleAes=function(t,e,r,i,n){var a=this;return this.demuxer.demuxSampleAes(t,e,r).then((function(t){return{remuxResult:a.remuxer.remux(t.audioTrack,t.videoTrack,t.id3Track,t.textTrack,r,i,!1,a.id),chunkMeta:n}}))},e.configureTransmuxer=function(t){for(var e,r=this.config,i=this.observer,n=this.typeSupported,a=this.vendor,s=0,o=un.length;s1&&l.id===(null==m?void 0:m.stats.chunkCount),L=!y&&(1===E||0===E&&(1===T||S&&T<=0)),A=self.performance.now();(y||E||0===n.stats.parsing.start)&&(n.stats.parsing.start=A),!a||!T&&L||(a.stats.parsing.start=A);var R=!(m&&(null==(h=n.initSegment)?void 0:h.url)===(null==(d=m.initSegment)?void 0:d.url)),b=new gn(p,L,o,y,g,R);if(!L||p||R){k.log("[transmuxer-interface, "+n.type+"]: Starting new transmux session for sn: "+l.sn+" p: "+l.part+" level: "+l.level+" id: "+l.id+"\n discontinuity: "+p+"\n trackSwitch: "+y+"\n contiguous: "+L+"\n accurateTimeOffset: "+o+"\n timeOffset: "+g+"\n initSegmentChange: "+R);var D=new fn(r,i,e,s,u);this.configureTransmuxer(D)}if(this.frag=n,this.part=a,this.workerContext)this.workerContext.worker.postMessage({cmd:"demux",data:t,decryptdata:v,chunkMeta:l,state:b},t instanceof ArrayBuffer?[t]:[]);else if(f){var I=f.push(t,v,l,b);cn(I)?(f.async=!0,I.then((function(t){c.handleTransmuxComplete(t)})).catch((function(t){c.transmuxerError(t,l,"transmuxer-interface push error")}))):(f.async=!1,this.handleTransmuxComplete(I))}},r.flush=function(t){var e=this;t.transmuxing.start=self.performance.now();var r=this.transmuxer;if(this.workerContext)this.workerContext.worker.postMessage({cmd:"flush",chunkMeta:t});else if(r){var i=r.flush(t);cn(i)||r.async?(cn(i)||(i=Promise.resolve(i)),i.then((function(r){e.handleFlushResult(r,t)})).catch((function(r){e.transmuxerError(r,t,"transmuxer-interface flush error")}))):this.handleFlushResult(i,t)}},r.transmuxerError=function(t,e,r){this.hls&&(this.error=t,this.hls.trigger(E.ERROR,{type:T.MEDIA_ERROR,details:S.FRAG_PARSING_ERROR,chunkMeta:e,fatal:!1,error:t,err:t,reason:r}))},r.handleFlushResult=function(t,e){var r=this;t.forEach((function(t){r.handleTransmuxComplete(t)})),this.onFlush(e)},r.onWorkerMessage=function(t){var e=t.data,r=this.hls;switch(e.event){case"init":var i,n=null==(i=this.workerContext)?void 0:i.objectURL;n&&self.URL.revokeObjectURL(n);break;case"transmuxComplete":this.handleTransmuxComplete(e.data);break;case"flush":this.onFlush(e.data);break;case"workerLog":k[e.data.logType]&&k[e.data.logType](e.data.message);break;default:e.data=e.data||{},e.data.frag=this.frag,e.data.id=this.id,r.trigger(e.event,e.data)}},r.configureTransmuxer=function(t){var e=this.transmuxer;this.workerContext?this.workerContext.worker.postMessage({cmd:"configure",config:t}):e&&e.configure(t)},r.handleTransmuxComplete=function(t){t.chunkMeta.transmuxing.end=self.performance.now(),this.onTransmuxComplete(t)},t}();function Sn(t,e){if(t.length!==e.length)return!1;for(var r=0;r0&&-1===t?(this.log("Override startPosition with lastCurrentTime @"+e.toFixed(3)),t=e,this.state=zr):(this.loadedmetadata=!1,this.state=Zr),this.nextLoadPosition=this.startPosition=this.lastCurrentTime=t,this.tick()},r.doTick=function(){switch(this.state){case zr:this.doTickIdle();break;case Zr:var e,r=this.levels,i=this.trackId,n=null==r||null==(e=r[i])?void 0:e.details;if(n){if(this.waitForCdnTuneIn(n))break;this.state=ni}break;case $r:var a,s=performance.now(),o=this.retryDate;if(!o||s>=o||null!=(a=this.media)&&a.seeking){var l=this.levels,u=this.trackId;this.log("RetryDate reached, switch back to IDLE state"),this.resetStartWhenNotLoaded((null==l?void 0:l[u])||null),this.state=zr}break;case ni:var h=this.waitingData;if(h){var d=h.frag,c=h.part,f=h.cache,g=h.complete;if(void 0!==this.initPTS[d.cc]){this.waitingData=null,this.waitingVideoCC=-1,this.state=Jr;var v={frag:d,part:c,payload:f.flush(),networkDetails:null};this._handleFragmentLoadProgress(v),g&&t.prototype._handleFragmentLoadComplete.call(this,v)}else if(this.videoTrackCC!==this.waitingVideoCC)this.log("Waiting fragment cc ("+d.cc+") cancelled because video is at cc "+this.videoTrackCC),this.clearWaitingFragment();else{var m=this.getLoadPosition(),p=Pr.bufferInfo(this.mediaBuffer,m,this.config.maxBufferHole);ur(p.end,this.config.maxFragLookUpTolerance,d)<0&&(this.log("Waiting fragment cc ("+d.cc+") @ "+d.start+" cancelled because another fragment at "+p.end+" is needed"),this.clearWaitingFragment())}}else this.state=zr}this.onTickEnd()},r.clearWaitingFragment=function(){var t=this.waitingData;t&&(this.fragmentTracker.removeFragment(t.frag),this.waitingData=null,this.waitingVideoCC=-1,this.state=zr)},r.resetLoadingState=function(){this.clearWaitingFragment(),t.prototype.resetLoadingState.call(this)},r.onTickEnd=function(){var t=this.media;null!=t&&t.readyState&&(this.lastCurrentTime=t.currentTime)},r.doTickIdle=function(){var t=this.hls,e=this.levels,r=this.media,i=this.trackId,n=t.config;if((r||!this.startFragRequested&&n.startFragPrefetch)&&null!=e&&e[i]){var a=e[i],s=a.details;if(!s||s.live&&this.levelLastLoaded!==a||this.waitForCdnTuneIn(s))this.state=Zr;else{var o=this.mediaBuffer?this.mediaBuffer:this.media;this.bufferFlushed&&o&&(this.bufferFlushed=!1,this.afterBufferFlushed(o,P,Re));var l=this.getFwdBufferInfo(o,Re);if(null!==l){var u=this.bufferedTrack,h=this.switchingTrack;if(!h&&this._streamEnded(l,s))return t.trigger(E.BUFFER_EOS,{type:"audio"}),void(this.state=ri);var d=this.getFwdBufferInfo(this.videoBuffer?this.videoBuffer:this.media,Ae),c=l.len,f=this.getMaxBufferLength(null==d?void 0:d.len),g=s.fragments,v=g[0].start,m=this.flushing?this.getLoadPosition():l.end;if(h&&r){var p=this.getLoadPosition();u&&!Ln(h.attrs,u.attrs)&&(m=p),s.PTSKnown&&pv||l.nextStart)&&(this.log("Alt audio track ahead of main track, seek to start of alt audio track"),r.currentTime=v+.05)}if(!(c>=f&&!h&&md.end+s.targetduration;if(S||(null==d||!d.len)&&l.len){var L=this.getAppendedFrag(y.start,Ae);if(null===L)return;if(T||(T=!!L.gap||!!S&&0===d.len),S&&!T||T&&l.nextStart&&l.nextStart-1)n=a[o];else{var l=Er(s,this.tracks);n=this.tracks[l]}}var u=this.findTrackId(n);-1===u&&n&&(u=this.findTrackId(null));var h={audioTracks:a};this.log("Updating audio tracks, "+a.length+" track(s) found in group(s): "+(null==r?void 0:r.join(","))),this.hls.trigger(E.AUDIO_TRACKS_UPDATED,h);var d=this.trackId;if(-1!==u&&-1===d)this.setAudioTrack(u);else if(a.length&&-1===d){var c,f=new Error("No audio track selected for current audio group-ID(s): "+(null==(c=this.groupIds)?void 0:c.join(","))+" track count: "+a.length);this.warn(f.message),this.hls.trigger(E.ERROR,{type:T.MEDIA_ERROR,details:S.AUDIO_TRACK_LOAD_ERROR,fatal:!0,error:f})}}else this.shouldReloadPlaylist(n)&&this.setAudioTrack(this.trackId)}},r.onError=function(t,e){!e.fatal&&e.context&&(e.context.type!==Se||e.context.id!==this.trackId||this.groupIds&&-1===this.groupIds.indexOf(e.context.groupId)||(this.requestScheduled=-1,this.checkRetry(e)))},r.setAudioOption=function(t){var e=this.hls;if(e.config.audioPreference=t,t){var r=this.allAudioTracks;if(this.selectDefaultTrack=!1,r.length){var i=this.currentTrack;if(i&&Tr(t,i,Sr))return i;var n=Er(t,this.tracksInGroup,Sr);if(n>-1){var a=this.tracksInGroup[n];return this.setAudioTrack(n),a}if(i){var s=e.loadLevel;-1===s&&(s=e.firstAutoLevel);var o=function(t,e,r,i,n){var a=e[i],s=e.reduce((function(t,e,r){var i=e.uri;return(t[i]||(t[i]=[])).push(r),t}),{})[a.uri];s.length>1&&(i=Math.max.apply(Math,s));var o=a.videoRange,l=a.frameRate,u=a.codecSet.substring(0,4),h=Lr(e,i,(function(e){if(e.videoRange!==o||e.frameRate!==l||e.codecSet.substring(0,4)!==u)return!1;var i=e.audioGroups,a=r.filter((function(t){return!i||-1!==i.indexOf(t.groupId)}));return Er(t,a,n)>-1}));return h>-1?h:Lr(e,i,(function(e){var i=e.audioGroups,a=r.filter((function(t){return!i||-1!==i.indexOf(t.groupId)}));return Er(t,a,n)>-1}))}(t,e.levels,r,s,Sr);if(-1===o)return null;e.nextLoadLevel=o}if(t.channels||t.audioCodec){var l=Er(t,r);if(l>-1)return r[l]}}}return null},r.setAudioTrack=function(t){var e=this.tracksInGroup;if(t<0||t>=e.length)this.warn("Invalid audio track id: "+t);else{this.clearTimer(),this.selectDefaultTrack=!1;var r=this.currentTrack,n=e[t],a=n.details&&!n.details.live;if(!(t===this.trackId&&n===r&&a||(this.log("Switching to audio-track "+t+' "'+n.name+'" lang:'+n.lang+" group:"+n.groupId+" channels:"+n.channels),this.trackId=t,this.currentTrack=n,this.hls.trigger(E.AUDIO_TRACK_SWITCHING,i({},n)),a))){var s=this.switchParams(n.url,null==r?void 0:r.details,n.details);this.loadPlaylist(s)}}},r.findTrackId=function(t){for(var e=this.tracksInGroup,r=0;r=n[o].start&&s<=n[o].end){a=n[o];break}var l=r.start+r.duration;a?a.end=l:(a={start:s,end:l},n.push(a)),this.fragmentTracker.fragBuffered(r),this.fragBufferedComplete(r,null)}}},r.onBufferFlushing=function(t,e){var r=e.startOffset,i=e.endOffset;if(0===r&&i!==Number.POSITIVE_INFINITY){var n=i-1;if(n<=0)return;e.endOffsetSubtitles=Math.max(0,n),this.tracksBuffered.forEach((function(t){for(var e=0;e=n.length||s!==i)&&o){this.log("Subtitle track "+s+" loaded ["+a.startSN+","+a.endSN+"]"+(a.lastPartSn?"[part-"+a.lastPartSn+"-"+a.lastPartIndex+"]":"")+",duration:"+a.totalduration),this.mediaBuffer=this.mediaBufferTimeRanges;var l=0;if(a.live||null!=(r=o.details)&&r.live){var u=this.mainDetails;if(a.deltaUpdateFailed||!u)return;var h,d=u.fragments[0];o.details?0===(l=this.alignPlaylists(a,o.details,null==(h=this.levelLastLoaded)?void 0:h.details))&&d&&$e(a,l=d.start):a.hasProgramDateTime&&u.hasProgramDateTime?(Ur(a,u),l=a.fragments[0].start):d&&$e(a,l=d.start)}o.details=a,this.levelLastLoaded=o,this.startFragRequested||!this.mainDetails&&a.live||this.setStartPosition(this.mainDetails||a,l),this.tick(),a.live&&!this.fragCurrent&&this.media&&this.state===zr&&(lr(null,a.fragments,this.media.currentTime,0)||(this.warn("Subtitle playlist not aligned with playback"),o.details=void 0))}}else this.warn("Subtitle tracks were reset while loading level "+s)},r._handleFragmentLoadComplete=function(t){var e=this,r=t.frag,i=t.payload,n=r.decryptdata,a=this.hls;if(!this.fragContextChanged(r)&&i&&i.byteLength>0&&null!=n&&n.key&&n.iv&&"AES-128"===n.method){var s=performance.now();this.decrypter.decrypt(new Uint8Array(i),n.key.buffer,n.iv.buffer).catch((function(t){throw a.trigger(E.ERROR,{type:T.MEDIA_ERROR,details:S.FRAG_DECRYPT_ERROR,fatal:!1,error:t,reason:t.message,frag:r}),t})).then((function(t){var e=performance.now();a.trigger(E.FRAG_DECRYPTED,{frag:r,payload:t,stats:{tstart:s,tdecrypt:e}})})).catch((function(t){e.warn(t.name+": "+t.message),e.state=zr}))}},r.doTick=function(){if(this.media){if(this.state===zr){var t=this.currentTrackId,e=this.levels,r=null==e?void 0:e[t];if(!r||!e.length||!r.details)return;var i=this.config,n=this.getLoadPosition(),a=Pr.bufferedInfo(this.tracksBuffered[this.currentTrackId]||[],n,i.maxBufferHole),s=a.end,o=a.len,l=this.getFwdBufferInfo(this.media,Ae),u=r.details;if(o>this.getMaxBufferLength(null==l?void 0:l.len)+u.levelTargetDuration)return;var h=u.fragments,d=h.length,c=u.edge,f=null,g=this.fragPrevious;if(sc-v?0:v;!(f=lr(g,h,Math.max(h[0].start,s),m))&&g&&g.start>>=0)>i-1)throw new DOMException("Failed to execute '"+e+"' on 'TimeRanges': The index provided ("+r+") is greater than the maximum bound ("+i+")");return t[r][e]};this.buffered={get length(){return t.length},end:function(r){return e("end",r,t.length)},start:function(r){return e("start",r,t.length)}}},In=function(t){function e(e){var r;return(r=t.call(this,e,"[subtitle-track-controller]")||this).media=null,r.tracks=[],r.groupIds=null,r.tracksInGroup=[],r.trackId=-1,r.currentTrack=null,r.selectDefaultTrack=!0,r.queuedDefaultTrack=-1,r.asyncPollTrackChange=function(){return r.pollTrackChange(0)},r.useTextTrackPolling=!1,r.subtitlePollingInterval=-1,r._subtitleDisplay=!0,r.onTextTracksChanged=function(){if(r.useTextTrackPolling||self.clearInterval(r.subtitlePollingInterval),r.media&&r.hls.config.renderTextTracksNatively){for(var t=null,e=Pe(r.media.textTracks),i=0;i-1&&(this.subtitleTrack=this.queuedDefaultTrack,this.queuedDefaultTrack=-1),this.useTextTrackPolling=!(this.media.textTracks&&"onchange"in this.media.textTracks),this.useTextTrackPolling?this.pollTrackChange(500):this.media.textTracks.addEventListener("change",this.asyncPollTrackChange))},r.pollTrackChange=function(t){self.clearInterval(this.subtitlePollingInterval),this.subtitlePollingInterval=self.setInterval(this.onTextTracksChanged,t)},r.onMediaDetaching=function(){this.media&&(self.clearInterval(this.subtitlePollingInterval),this.useTextTrackPolling||this.media.textTracks.removeEventListener("change",this.asyncPollTrackChange),this.trackId>-1&&(this.queuedDefaultTrack=this.trackId),Pe(this.media.textTracks).forEach((function(t){_e(t)})),this.subtitleTrack=-1,this.media=null)},r.onManifestLoading=function(){this.tracks=[],this.groupIds=null,this.tracksInGroup=[],this.trackId=-1,this.currentTrack=null,this.selectDefaultTrack=!0},r.onManifestParsed=function(t,e){this.tracks=e.subtitleTracks},r.onSubtitleTrackLoaded=function(t,e){var r=e.id,i=e.groupId,n=e.details,a=this.tracksInGroup[r];if(a&&a.groupId===i){var s=a.details;a.details=e.details,this.log("Subtitle track "+r+' "'+a.name+'" lang:'+a.lang+" group:"+i+" loaded ["+n.startSN+"-"+n.endSN+"]"),r===this.trackId&&this.playlistLoaded(r,e,s)}else this.warn("Subtitle track with id:"+r+" and group:"+i+" not found in active group "+(null==a?void 0:a.groupId))},r.onLevelLoading=function(t,e){this.switchLevel(e.level)},r.onLevelSwitching=function(t,e){this.switchLevel(e.level)},r.switchLevel=function(t){var e=this.hls.levels[t];if(e){var r=e.subtitleGroups||null,i=this.groupIds,n=this.currentTrack;if(!r||(null==i?void 0:i.length)!==(null==r?void 0:r.length)||null!=r&&r.some((function(t){return-1===(null==i?void 0:i.indexOf(t))}))){this.groupIds=r,this.trackId=-1,this.currentTrack=null;var a=this.tracks.filter((function(t){return!r||-1!==r.indexOf(t.groupId)}));if(a.length)this.selectDefaultTrack&&!a.some((function(t){return t.default}))&&(this.selectDefaultTrack=!1),a.forEach((function(t,e){t.id=e}));else if(!n&&!this.tracksInGroup.length)return;this.tracksInGroup=a;var s=this.hls.config.subtitlePreference;if(!n&&s){this.selectDefaultTrack=!1;var o=Er(s,a);if(o>-1)n=a[o];else{var l=Er(s,this.tracks);n=this.tracks[l]}}var u=this.findTrackId(n);-1===u&&n&&(u=this.findTrackId(null));var h={subtitleTracks:a};this.log("Updating subtitle tracks, "+a.length+' track(s) found in "'+(null==r?void 0:r.join(","))+'" group-id'),this.hls.trigger(E.SUBTITLE_TRACKS_UPDATED,h),-1!==u&&-1===this.trackId&&this.setSubtitleTrack(u)}else this.shouldReloadPlaylist(n)&&this.setSubtitleTrack(this.trackId)}},r.findTrackId=function(t){for(var e=this.tracksInGroup,r=this.selectDefaultTrack,i=0;i-1){var n=this.tracksInGroup[i];return this.setSubtitleTrack(i),n}if(r)return null;var a=Er(t,e);if(a>-1)return e[a]}}return null},r.loadPlaylist=function(e){t.prototype.loadPlaylist.call(this);var r=this.currentTrack;if(this.shouldLoadPlaylist(r)&&r){var i=r.id,n=r.groupId,a=r.url;if(e)try{a=e.addDirectives(a)}catch(t){this.warn("Could not construct new URL with HLS Delivery Directives: "+t)}this.log("Loading subtitle playlist for id "+i),this.hls.trigger(E.SUBTITLE_TRACK_LOADING,{url:a,id:i,groupId:n,deliveryDirectives:e||null})}},r.toggleTrackModes=function(){var t=this.media;if(t){var e,r=Pe(t.textTracks),i=this.currentTrack;if(i&&((e=r.filter((function(t){return An(i,t)}))[0])||this.warn('Unable to find subtitle TextTrack with name "'+i.name+'" and language "'+i.lang+'"')),[].slice.call(r).forEach((function(t){"disabled"!==t.mode&&t!==e&&(t.mode="disabled")})),e){var n=this.subtitleDisplay?"showing":"hidden";e.mode!==n&&(e.mode=n)}}},r.setSubtitleTrack=function(t){var e=this.tracksInGroup;if(this.media)if(t<-1||t>=e.length||!m(t))this.warn("Invalid subtitle track id: "+t);else{this.clearTimer(),this.selectDefaultTrack=!1;var r=this.currentTrack,i=e[t]||null;if(this.trackId=t,this.currentTrack=i,this.toggleTrackModes(),i){var n=!!i.details&&!i.details.live;if(t!==this.trackId||i!==r||!n){this.log("Switching to subtitle-track "+t+(i?' "'+i.name+'" lang:'+i.lang+" group:"+i.groupId:""));var a=i.id,s=i.groupId,o=void 0===s?"":s,l=i.name,u=i.type,h=i.url;this.hls.trigger(E.SUBTITLE_TRACK_SWITCH,{id:a,groupId:o,name:l,type:u,url:h});var d=this.switchParams(i.url,null==r?void 0:r.details,i.details);this.loadPlaylist(d)}}else this.hls.trigger(E.SUBTITLE_TRACK_SWITCH,{id:t})}else this.queuedDefaultTrack=t},s(e,[{key:"subtitleDisplay",get:function(){return this._subtitleDisplay},set:function(t){this._subtitleDisplay=t,this.trackId>-1&&this.toggleTrackModes()}},{key:"allSubtitleTracks",get:function(){return this.tracks}},{key:"subtitleTracks",get:function(){return this.tracksInGroup}},{key:"subtitleTrack",get:function(){return this.trackId},set:function(t){this.selectDefaultTrack=!1,this.setSubtitleTrack(t)}}]),e}(cr),wn=function(){function t(t){this.buffers=void 0,this.queues={video:[],audio:[],audiovideo:[]},this.buffers=t}var e=t.prototype;return e.append=function(t,e,r){var i=this.queues[e];i.push(t),1!==i.length||r||this.executeNext(e)},e.insertAbort=function(t,e){this.queues[e].unshift(t),this.executeNext(e)},e.appendBlocker=function(t){var e,r=new Promise((function(t){e=t})),i={execute:e,onStart:function(){},onComplete:function(){},onError:function(){}};return this.append(i,t),r},e.executeNext=function(t){var e=this.queues[t];if(e.length){var r=e[0];try{r.execute()}catch(e){k.warn('[buffer-operation-queue]: Exception executing "'+t+'" SourceBuffer operation: '+e),r.onError(e);var i=this.buffers[t];null!=i&&i.updating||this.shiftAndExecuteNext(t)}}},e.shiftAndExecuteNext=function(t){this.queues[t].shift(),this.executeNext(t)},e.current=function(t){return this.queues[t][0]},t}(),Cn=/(avc[1234]|hvc1|hev1|dvh[1e]|vp09|av01)(?:\.[^.,]+)+/,_n=function(){function t(t){var e=this;this.details=null,this._objectUrl=null,this.operationQueue=void 0,this.listeners=void 0,this.hls=void 0,this.bufferCodecEventsExpected=0,this._bufferCodecEventsTotal=0,this.media=null,this.mediaSource=null,this.lastMpegAudioChunk=null,this.appendSource=void 0,this.appendErrors={audio:0,video:0,audiovideo:0},this.tracks={},this.pendingTracks={},this.sourceBuffer=void 0,this.log=void 0,this.warn=void 0,this.error=void 0,this._onEndStreaming=function(t){e.hls&&e.hls.pauseBuffering()},this._onStartStreaming=function(t){e.hls&&e.hls.resumeBuffering()},this._onMediaSourceOpen=function(){var t=e.media,r=e.mediaSource;e.log("Media source opened"),t&&(t.removeEventListener("emptied",e._onMediaEmptied),e.updateMediaElementDuration(),e.hls.trigger(E.MEDIA_ATTACHED,{media:t,mediaSource:r})),r&&r.removeEventListener("sourceopen",e._onMediaSourceOpen),e.checkPendingTracks()},this._onMediaSourceClose=function(){e.log("Media source closed")},this._onMediaSourceEnded=function(){e.log("Media source ended")},this._onMediaEmptied=function(){var t=e.mediaSrc,r=e._objectUrl;t!==r&&k.error("Media element src was set while attaching MediaSource ("+r+" > "+t+")")},this.hls=t;var r,i="[buffer-controller]";this.appendSource=(r=zt(t.config.preferManagedMediaSource),"undefined"!=typeof self&&r===self.ManagedMediaSource),this.log=k.log.bind(k,i),this.warn=k.warn.bind(k,i),this.error=k.error.bind(k,i),this._initSourceBuffer(),this.registerListeners()}var e=t.prototype;return e.hasSourceTypes=function(){return this.getSourceBufferTypes().length>0||Object.keys(this.pendingTracks).length>0},e.destroy=function(){this.unregisterListeners(),this.details=null,this.lastMpegAudioChunk=null,this.hls=null},e.registerListeners=function(){var t=this.hls;t.on(E.MEDIA_ATTACHING,this.onMediaAttaching,this),t.on(E.MEDIA_DETACHING,this.onMediaDetaching,this),t.on(E.MANIFEST_LOADING,this.onManifestLoading,this),t.on(E.MANIFEST_PARSED,this.onManifestParsed,this),t.on(E.BUFFER_RESET,this.onBufferReset,this),t.on(E.BUFFER_APPENDING,this.onBufferAppending,this),t.on(E.BUFFER_CODECS,this.onBufferCodecs,this),t.on(E.BUFFER_EOS,this.onBufferEos,this),t.on(E.BUFFER_FLUSHING,this.onBufferFlushing,this),t.on(E.LEVEL_UPDATED,this.onLevelUpdated,this),t.on(E.FRAG_PARSED,this.onFragParsed,this),t.on(E.FRAG_CHANGED,this.onFragChanged,this)},e.unregisterListeners=function(){var t=this.hls;t.off(E.MEDIA_ATTACHING,this.onMediaAttaching,this),t.off(E.MEDIA_DETACHING,this.onMediaDetaching,this),t.off(E.MANIFEST_LOADING,this.onManifestLoading,this),t.off(E.MANIFEST_PARSED,this.onManifestParsed,this),t.off(E.BUFFER_RESET,this.onBufferReset,this),t.off(E.BUFFER_APPENDING,this.onBufferAppending,this),t.off(E.BUFFER_CODECS,this.onBufferCodecs,this),t.off(E.BUFFER_EOS,this.onBufferEos,this),t.off(E.BUFFER_FLUSHING,this.onBufferFlushing,this),t.off(E.LEVEL_UPDATED,this.onLevelUpdated,this),t.off(E.FRAG_PARSED,this.onFragParsed,this),t.off(E.FRAG_CHANGED,this.onFragChanged,this)},e._initSourceBuffer=function(){this.sourceBuffer={},this.operationQueue=new wn(this.sourceBuffer),this.listeners={audio:[],video:[],audiovideo:[]},this.appendErrors={audio:0,video:0,audiovideo:0},this.lastMpegAudioChunk=null},e.onManifestLoading=function(){this.bufferCodecEventsExpected=this._bufferCodecEventsTotal=0,this.details=null},e.onManifestParsed=function(t,e){var r=2;(e.audio&&!e.video||!e.altAudio)&&(r=1),this.bufferCodecEventsExpected=this._bufferCodecEventsTotal=r,this.log(this.bufferCodecEventsExpected+" bufferCodec event(s) expected")},e.onMediaAttaching=function(t,e){var r=this.media=e.media,i=zt(this.appendSource);if(r&&i){var n,a=this.mediaSource=new i;this.log("created media source: "+(null==(n=a.constructor)?void 0:n.name)),a.addEventListener("sourceopen",this._onMediaSourceOpen),a.addEventListener("sourceended",this._onMediaSourceEnded),a.addEventListener("sourceclose",this._onMediaSourceClose),this.appendSource&&(a.addEventListener("startstreaming",this._onStartStreaming),a.addEventListener("endstreaming",this._onEndStreaming));var s=this._objectUrl=self.URL.createObjectURL(a);if(this.appendSource)try{r.removeAttribute("src");var o=self.ManagedMediaSource;r.disableRemotePlayback=r.disableRemotePlayback||o&&a instanceof o,xn(r),function(t,e){var r=self.document.createElement("source");r.type="video/mp4",r.src=e,t.appendChild(r)}(r,s),r.load()}catch(t){r.src=s}else r.src=s;r.addEventListener("emptied",this._onMediaEmptied)}},e.onMediaDetaching=function(){var t=this.media,e=this.mediaSource,r=this._objectUrl;if(e){if(this.log("media source detaching"),"open"===e.readyState)try{e.endOfStream()}catch(t){this.warn("onMediaDetaching: "+t.message+" while calling endOfStream")}this.onBufferReset(),e.removeEventListener("sourceopen",this._onMediaSourceOpen),e.removeEventListener("sourceended",this._onMediaSourceEnded),e.removeEventListener("sourceclose",this._onMediaSourceClose),this.appendSource&&(e.removeEventListener("startstreaming",this._onStartStreaming),e.removeEventListener("endstreaming",this._onEndStreaming)),t&&(t.removeEventListener("emptied",this._onMediaEmptied),r&&self.URL.revokeObjectURL(r),this.mediaSrc===r?(t.removeAttribute("src"),this.appendSource&&xn(t),t.load()):this.warn("media|source.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(E.MEDIA_DETACHED,void 0)},e.onBufferReset=function(){var t=this;this.getSourceBufferTypes().forEach((function(e){t.resetBuffer(e)})),this._initSourceBuffer()},e.resetBuffer=function(t){var e=this.sourceBuffer[t];try{var r;e&&(this.removeBufferListeners(t),this.sourceBuffer[t]=void 0,null!=(r=this.mediaSource)&&r.sourceBuffers.length&&this.mediaSource.removeSourceBuffer(e))}catch(e){this.warn("onBufferReset "+t,e)}},e.onBufferCodecs=function(t,e){var r=this,i=this.getSourceBufferTypes().length,n=Object.keys(e);if(n.forEach((function(t){if(i){var n=r.tracks[t];if(n&&"function"==typeof n.buffer.changeType){var a,s=e[t],o=s.id,l=s.codec,u=s.levelCodec,h=s.container,d=s.metadata,c=ae(n.codec,n.levelCodec),f=null==c?void 0:c.replace(Cn,"$1"),g=ae(l,u),v=null==(a=g)?void 0:a.replace(Cn,"$1");if(g&&f!==v){"audio"===t.slice(0,5)&&(g=ne(g,r.appendSource));var m=h+";codecs="+g;r.appendChangeType(t,m),r.log("switching codec "+c+" to "+g),r.tracks[t]={buffer:n.buffer,codec:l,container:h,levelCodec:u,metadata:d,id:o}}}}else r.pendingTracks[t]=e[t]})),!i){var a=Math.max(this.bufferCodecEventsExpected-1,0);this.bufferCodecEventsExpected!==a&&(this.log(a+" bufferCodec event(s) expected "+n.join(",")),this.bufferCodecEventsExpected=a),this.mediaSource&&"open"===this.mediaSource.readyState&&this.checkPendingTracks()}},e.appendChangeType=function(t,e){var r=this,i=this.operationQueue,n={execute:function(){var n=r.sourceBuffer[t];n&&(r.log("changing "+t+" sourceBuffer type to "+e),n.changeType(e)),i.shiftAndExecuteNext(t)},onStart:function(){},onComplete:function(){},onError:function(e){r.warn("Failed to change "+t+" SourceBuffer type",e)}};i.append(n,t,!!this.pendingTracks[t])},e.onBufferAppending=function(t,e){var r=this,i=this.hls,n=this.operationQueue,a=this.tracks,s=e.data,o=e.type,l=e.frag,u=e.part,h=e.chunkMeta,d=h.buffering[o],c=self.performance.now();d.start=c;var f=l.stats.buffering,g=u?u.stats.buffering:null;0===f.start&&(f.start=c),g&&0===g.start&&(g.start=c);var v=a.audio,m=!1;"audio"===o&&"audio/mpeg"===(null==v?void 0:v.container)&&(m=!this.lastMpegAudioChunk||1===h.id||this.lastMpegAudioChunk.sn!==h.sn,this.lastMpegAudioChunk=h);var p=l.start,y={execute:function(){if(d.executeStart=self.performance.now(),m){var t=r.sourceBuffer[o];if(t){var e=p-t.timestampOffset;Math.abs(e)>=.1&&(r.log("Updating audio SourceBuffer timestampOffset to "+p+" (delta: "+e+") sn: "+l.sn+")"),t.timestampOffset=p)}}r.appendExecutor(s,o)},onStart:function(){},onComplete:function(){var t=self.performance.now();d.executeEnd=d.end=t,0===f.first&&(f.first=t),g&&0===g.first&&(g.first=t);var e=r.sourceBuffer,i={};for(var n in e)i[n]=Pr.getBuffered(e[n]);r.appendErrors[o]=0,"audio"===o||"video"===o?r.appendErrors.audiovideo=0:(r.appendErrors.audio=0,r.appendErrors.video=0),r.hls.trigger(E.BUFFER_APPENDED,{type:o,frag:l,part:u,chunkMeta:h,parent:l.type,timeRanges:i})},onError:function(t){var e={type:T.MEDIA_ERROR,parent:l.type,details:S.BUFFER_APPEND_ERROR,sourceBufferName:o,frag:l,part:u,chunkMeta:h,error:t,err:t,fatal:!1};if(t.code===DOMException.QUOTA_EXCEEDED_ERR)e.details=S.BUFFER_FULL_ERROR;else{var n=++r.appendErrors[o];e.details=S.BUFFER_APPEND_ERROR,r.warn("Failed "+n+"/"+i.config.appendErrorMaxRetry+' times to append segment in "'+o+'" sourceBuffer'),n>=i.config.appendErrorMaxRetry&&(e.fatal=!0)}i.trigger(E.ERROR,e)}};n.append(y,o,!!this.pendingTracks[o])},e.onBufferFlushing=function(t,e){var r=this,i=this.operationQueue,n=function(t){return{execute:r.removeExecutor.bind(r,t,e.startOffset,e.endOffset),onStart:function(){},onComplete:function(){r.hls.trigger(E.BUFFER_FLUSHED,{type:t})},onError:function(e){r.warn("Failed to remove from "+t+" SourceBuffer",e)}}};e.type?i.append(n(e.type),e.type):this.getSourceBufferTypes().forEach((function(t){i.append(n(t),t)}))},e.onFragParsed=function(t,e){var r=this,i=e.frag,n=e.part,a=[],s=n?n.elementaryStreams:i.elementaryStreams;s[M]?a.push("audiovideo"):(s[P]&&a.push("audio"),s[F]&&a.push("video")),0===a.length&&this.warn("Fragments must have at least one ElementaryStreamType set. type: "+i.type+" level: "+i.level+" sn: "+i.sn),this.blockBuffers((function(){var t=self.performance.now();i.stats.buffering.end=t,n&&(n.stats.buffering.end=t);var e=n?n.stats:i.stats;r.hls.trigger(E.FRAG_BUFFERED,{frag:i,part:n,stats:e,id:i.type})}),a)},e.onFragChanged=function(t,e){this.trimBuffers()},e.onBufferEos=function(t,e){var r=this;this.getSourceBufferTypes().reduce((function(t,i){var n=r.sourceBuffer[i];return!n||e.type&&e.type!==i||(n.ending=!0,n.ended||(n.ended=!0,r.log(i+" sourceBuffer now EOS"))),t&&!(n&&!n.ended)}),!0)&&(this.log("Queueing mediaSource.endOfStream()"),this.blockBuffers((function(){r.getSourceBufferTypes().forEach((function(t){var e=r.sourceBuffer[t];e&&(e.ending=!1)}));var t=r.mediaSource;t&&"open"===t.readyState?(r.log("Calling mediaSource.endOfStream()"),t.endOfStream()):t&&r.log("Could not call mediaSource.endOfStream(). mediaSource.readyState: "+t.readyState)})))},e.onLevelUpdated=function(t,e){var r=e.details;r.fragments.length&&(this.details=r,this.getSourceBufferTypes().length?this.blockBuffers(this.updateMediaElementDuration.bind(this)):this.updateMediaElementDuration())},e.trimBuffers=function(){var t=this.hls,e=this.details,r=this.media;if(r&&null!==e&&this.getSourceBufferTypes().length){var i=t.config,n=r.currentTime,a=e.levelTargetDuration,s=e.live&&null!==i.liveBackBufferLength?i.liveBackBufferLength:i.backBufferLength;if(m(s)&&s>0){var o=Math.max(s,a),l=Math.floor(n/a)*a-o;this.flushBackBuffer(n,a,l)}if(m(i.frontBufferFlushThreshold)&&i.frontBufferFlushThreshold>0){var u=Math.max(i.maxBufferLength,i.frontBufferFlushThreshold),h=Math.max(u,a),d=Math.floor(n/a)*a+h;this.flushFrontBuffer(n,a,d)}}},e.flushBackBuffer=function(t,e,r){var i=this,n=this.details,a=this.sourceBuffer;this.getSourceBufferTypes().forEach((function(s){var o=a[s];if(o){var l=Pr.getBuffered(o);if(l.length>0&&r>l.start(0)){if(i.hls.trigger(E.BACK_BUFFER_REACHED,{bufferEnd:r}),null!=n&&n.live)i.hls.trigger(E.LIVE_BACK_BUFFER_REACHED,{bufferEnd:r});else if(o.ended&&l.end(l.length-1)-t<2*e)return void i.log("Cannot flush "+s+" back buffer while SourceBuffer is in ended state");i.hls.trigger(E.BUFFER_FLUSHING,{startOffset:0,endOffset:r,type:s})}}}))},e.flushFrontBuffer=function(t,e,r){var i=this,n=this.sourceBuffer;this.getSourceBufferTypes().forEach((function(a){var s=n[a];if(s){var o=Pr.getBuffered(s),l=o.length;if(l<2)return;var u=o.start(l-1),h=o.end(l-1);if(r>u||t>=u&&t<=h)return;if(s.ended&&t-h<2*e)return void i.log("Cannot flush "+a+" front buffer while SourceBuffer is in ended state");i.hls.trigger(E.BUFFER_FLUSHING,{startOffset:u,endOffset:1/0,type:a})}}))},e.updateMediaElementDuration=function(){if(this.details&&this.media&&this.mediaSource&&"open"===this.mediaSource.readyState){var t=this.details,e=this.hls,r=this.media,i=this.mediaSource,n=t.fragments[0].start+t.totalduration,a=r.duration,s=m(i.duration)?i.duration:0;t.live&&e.config.liveDurationInfinity?(i.duration=1/0,this.updateSeekableRange(t)):(n>s&&n>a||!m(a))&&(this.log("Updating Media Source duration to "+n.toFixed(3)),i.duration=n)}},e.updateSeekableRange=function(t){var e=this.mediaSource,r=t.fragments;if(r.length&&t.live&&null!=e&&e.setLiveSeekableRange){var i=Math.max(0,r[0].start),n=Math.max(i,i+t.totalduration);this.log("Media Source duration is set to "+e.duration+". Setting seekable range to "+i+"-"+n+"."),e.setLiveSeekableRange(i,n)}},e.checkPendingTracks=function(){var t=this.bufferCodecEventsExpected,e=this.operationQueue,r=this.pendingTracks,i=Object.keys(r).length;if(i&&(!t||2===i||"audiovideo"in r)){this.createSourceBuffers(r),this.pendingTracks={};var n=this.getSourceBufferTypes();if(n.length)this.hls.trigger(E.BUFFER_CREATED,{tracks:this.tracks}),n.forEach((function(t){e.executeNext(t)}));else{var a=new Error("could not create source buffer for media codec(s)");this.hls.trigger(E.ERROR,{type:T.MEDIA_ERROR,details:S.BUFFER_INCOMPATIBLE_CODECS_ERROR,fatal:!0,error:a,reason:a.message})}}},e.createSourceBuffers=function(t){var e=this,r=this.sourceBuffer,i=this.mediaSource;if(!i)throw Error("createSourceBuffers called when mediaSource was null");var n=function(n){if(!r[n]){var a,s=t[n];if(!s)throw Error("source buffer exists for track "+n+", however track does not");var o=-1===(null==(a=s.levelCodec)?void 0:a.indexOf(","))?s.levelCodec:s.codec;o&&"audio"===n.slice(0,5)&&(o=ne(o,e.appendSource));var l=s.container+";codecs="+o;e.log("creating sourceBuffer("+l+")");try{var u=r[n]=i.addSourceBuffer(l),h=n;e.addBufferListener(h,"updatestart",e._onSBUpdateStart),e.addBufferListener(h,"updateend",e._onSBUpdateEnd),e.addBufferListener(h,"error",e._onSBUpdateError),e.appendSource&&e.addBufferListener(h,"bufferedchange",(function(t,r){var i=r.removedRanges;null!=i&&i.length&&e.hls.trigger(E.BUFFER_FLUSHED,{type:n})})),e.tracks[n]={buffer:u,codec:o,container:s.container,levelCodec:s.levelCodec,metadata:s.metadata,id:s.id}}catch(t){e.error("error while trying to add sourceBuffer: "+t.message),e.hls.trigger(E.ERROR,{type:T.MEDIA_ERROR,details:S.BUFFER_ADD_CODEC_ERROR,fatal:!1,error:t,sourceBufferName:n,mimeType:l})}}};for(var a in t)n(a)},e._onSBUpdateStart=function(t){this.operationQueue.current(t).onStart()},e._onSBUpdateEnd=function(t){var e;if("closed"!==(null==(e=this.mediaSource)?void 0:e.readyState)){var r=this.operationQueue;r.current(t).onComplete(),r.shiftAndExecuteNext(t)}else this.resetBuffer(t)},e._onSBUpdateError=function(t,e){var r,i=new Error(t+" SourceBuffer error. MediaSource readyState: "+(null==(r=this.mediaSource)?void 0:r.readyState));this.error(""+i,e),this.hls.trigger(E.ERROR,{type:T.MEDIA_ERROR,details:S.BUFFER_APPENDING_ERROR,sourceBufferName:t,error:i,fatal:!1});var n=this.operationQueue.current(t);n&&n.onError(i)},e.removeExecutor=function(t,e,r){var i=this.media,n=this.mediaSource,a=this.operationQueue,s=this.sourceBuffer[t];if(!i||!n||!s)return this.warn("Attempting to remove from the "+t+" SourceBuffer, but it does not exist"),void a.shiftAndExecuteNext(t);var o=m(i.duration)?i.duration:1/0,l=m(n.duration)?n.duration:1/0,u=Math.max(0,e),h=Math.min(r,o,l);h>u&&(!s.ending||s.ended)?(s.ended=!1,this.log("Removing ["+u+","+h+"] from the "+t+" SourceBuffer"),s.remove(u,h)):a.shiftAndExecuteNext(t)},e.appendExecutor=function(t,e){var r=this.sourceBuffer[e];if(r)r.ended=!1,r.appendBuffer(t);else if(!this.pendingTracks[e])throw new Error("Attempting to append to the "+e+" SourceBuffer, but it does not exist")},e.blockBuffers=function(t,e){var r=this;if(void 0===e&&(e=this.getSourceBufferTypes()),!e.length)return this.log("Blocking operation requested, but no SourceBuffers exist"),void Promise.resolve().then(t);var i=this.operationQueue,n=e.map((function(t){return i.appendBlocker(t)}));Promise.all(n).then((function(){t(),e.forEach((function(t){var e=r.sourceBuffer[t];null!=e&&e.updating||i.shiftAndExecuteNext(t)}))}))},e.getSourceBufferTypes=function(){return Object.keys(this.sourceBuffer)},e.addBufferListener=function(t,e,r){var i=this.sourceBuffer[t];if(i){var n=r.bind(this,t);this.listeners[t].push({event:e,listener:n}),i.addEventListener(e,n)}},e.removeBufferListeners=function(t){var e=this.sourceBuffer[t];e&&this.listeners[t].forEach((function(t){e.removeEventListener(t.event,t.listener)}))},s(t,[{key:"mediaSrc",get:function(){var t,e=(null==(t=this.media)?void 0:t.firstChild)||this.media;return null==e?void 0:e.src}}]),t}();function xn(t){var e=t.querySelectorAll("source");[].slice.call(e).forEach((function(e){t.removeChild(e)}))}var Pn={42:225,92:233,94:237,95:243,96:250,123:231,124:247,125:209,126:241,127:9608,128:174,129:176,130:189,131:191,132:8482,133:162,134:163,135:9834,136:224,137:32,138:232,139:226,140:234,141:238,142:244,143:251,144:193,145:201,146:211,147:218,148:220,149:252,150:8216,151:161,152:42,153:8217,154:9473,155:169,156:8480,157:8226,158:8220,159:8221,160:192,161:194,162:199,163:200,164:202,165:203,166:235,167:206,168:207,169:239,170:212,171:217,172:249,173:219,174:171,175:187,176:195,177:227,178:205,179:204,180:236,181:210,182:242,183:213,184:245,185:123,186:125,187:92,188:94,189:95,190:124,191:8764,192:196,193:228,194:214,195:246,196:223,197:165,198:164,199:9475,200:197,201:229,202:216,203:248,204:9487,205:9491,206:9495,207:9499},Fn=function(t){var e=t;return Pn.hasOwnProperty(t)&&(e=Pn[t]),String.fromCharCode(e)},Mn=15,On=100,Nn={17:1,18:3,21:5,22:7,23:9,16:11,19:12,20:14},Un={17:2,18:4,21:6,22:8,23:10,19:13,20:15},Bn={25:1,26:3,29:5,30:7,31:9,24:11,27:12,28:14},Gn={25:2,26:4,29:6,30:8,31:10,27:13,28:15},Kn=["white","green","blue","cyan","red","yellow","magenta","black","transparent"],Hn=function(){function t(){this.time=null,this.verboseLevel=0}return t.prototype.log=function(t,e){if(this.verboseLevel>=t){var r="function"==typeof e?e():e;k.log(this.time+" ["+t+"] "+r)}},t}(),Vn=function(t){for(var e=[],r=0;rOn&&(this.logger.log(3,"Too large cursor position "+this.pos),this.pos=On)},e.moveCursor=function(t){var e=this.pos+t;if(t>1)for(var r=this.pos+1;r=144&&this.backSpace();var r=Fn(t);this.pos>=On?this.logger.log(0,(function(){return"Cannot insert "+t.toString(16)+" ("+r+") at position "+e.pos+". Skipping it!"})):(this.chars[this.pos].setChar(r,this.currPenState),this.moveCursor(1))},e.clearFromPos=function(t){var e;for(e=t;e0&&(r=t?"["+e.join(" | ")+"]":e.join("\n")),r},e.getTextAndFormat=function(){return this.rows},t}(),Xn=function(){function t(t,e,r){this.chNr=void 0,this.outputFilter=void 0,this.mode=void 0,this.verbose=void 0,this.displayedMemory=void 0,this.nonDisplayedMemory=void 0,this.lastOutputScreen=void 0,this.currRollUpRow=void 0,this.writeScreen=void 0,this.cueStartTime=void 0,this.logger=void 0,this.chNr=t,this.outputFilter=e,this.mode=null,this.verbose=0,this.displayedMemory=new qn(r),this.nonDisplayedMemory=new qn(r),this.lastOutputScreen=new qn(r),this.currRollUpRow=this.displayedMemory.rows[14],this.writeScreen=this.displayedMemory,this.mode=null,this.cueStartTime=null,this.logger=r}var e=t.prototype;return e.reset=function(){this.mode=null,this.displayedMemory.reset(),this.nonDisplayedMemory.reset(),this.lastOutputScreen.reset(),this.outputFilter.reset(),this.currRollUpRow=this.displayedMemory.rows[14],this.writeScreen=this.displayedMemory,this.mode=null,this.cueStartTime=null},e.getHandler=function(){return this.outputFilter},e.setHandler=function(t){this.outputFilter=t},e.setPAC=function(t){this.writeScreen.setPAC(t)},e.setBkgData=function(t){this.writeScreen.setBkgData(t)},e.setMode=function(t){t!==this.mode&&(this.mode=t,this.logger.log(2,(function(){return"MODE="+t})),"MODE_POP-ON"===this.mode?this.writeScreen=this.nonDisplayedMemory:(this.writeScreen=this.displayedMemory,this.writeScreen.reset()),"MODE_ROLL-UP"!==this.mode&&(this.displayedMemory.nrRollUpRows=null,this.nonDisplayedMemory.nrRollUpRows=null),this.mode=t)},e.insertChars=function(t){for(var e=this,r=0;r=46,e.italics)e.foreground="white";else{var r=Math.floor(t/2)-16;e.foreground=["white","green","blue","cyan","red","yellow","magenta"][r]}this.logger.log(2,"MIDROW: "+JSON.stringify(e)),this.writeScreen.setPen(e)},e.outputDataUpdate=function(t){void 0===t&&(t=!1);var e=this.logger.time;null!==e&&this.outputFilter&&(null!==this.cueStartTime||this.displayedMemory.isEmpty()?this.displayedMemory.equals(this.lastOutputScreen)||(this.outputFilter.newCue(this.cueStartTime,e,this.lastOutputScreen),t&&this.outputFilter.dispatchCue&&this.outputFilter.dispatchCue(),this.cueStartTime=this.displayedMemory.isEmpty()?null:e):this.cueStartTime=e,this.lastOutputScreen.copy(this.displayedMemory))},e.cueSplitAtTime=function(t){this.outputFilter&&(this.displayedMemory.isEmpty()||(this.outputFilter.newCue&&this.outputFilter.newCue(this.cueStartTime,t,this.displayedMemory),this.cueStartTime=t))},t}(),zn=function(){function t(t,e,r){this.channels=void 0,this.currentChannel=0,this.cmdHistory={a:null,b:null},this.logger=void 0;var i=this.logger=new Hn;this.channels=[null,new Xn(t,e,i),new Xn(t+1,r,i)]}var e=t.prototype;return e.getHandler=function(t){return this.channels[t].getHandler()},e.setHandler=function(t,e){this.channels[t].setHandler(e)},e.addData=function(t,e){var r,i,n,a=!1;this.logger.time=t;for(var s=0;s ("+Vn([i,n])+")"),(r=this.parseCmd(i,n))||(r=this.parseMidrow(i,n)),r||(r=this.parsePAC(i,n)),r||(r=this.parseBackgroundAttributes(i,n)),!r&&(a=this.parseChars(i,n))){var o=this.currentChannel;o&&o>0?this.channels[o].insertChars(a):this.logger.log(2,"No channel found yet. TEXT-MODE?")}r||a||this.logger.log(2,"Couldn't parse cleaned data "+Vn([i,n])+" orig: "+Vn([e[s],e[s+1]]))}},e.parseCmd=function(t,e){var r=this.cmdHistory;if(!((20===t||28===t||21===t||29===t)&&e>=32&&e<=47||(23===t||31===t)&&e>=33&&e<=35))return!1;if(Jn(t,e,r))return Qn(null,null,r),this.logger.log(3,"Repeated command ("+Vn([t,e])+") is dropped"),!0;var i=20===t||21===t||23===t?1:2,n=this.channels[i];return 20===t||21===t||28===t||29===t?32===e?n.ccRCL():33===e?n.ccBS():34===e?n.ccAOF():35===e?n.ccAON():36===e?n.ccDER():37===e?n.ccRU(2):38===e?n.ccRU(3):39===e?n.ccRU(4):40===e?n.ccFON():41===e?n.ccRDC():42===e?n.ccTR():43===e?n.ccRTD():44===e?n.ccEDM():45===e?n.ccCR():46===e?n.ccENM():47===e&&n.ccEOC():n.ccTO(e-32),Qn(t,e,r),this.currentChannel=i,!0},e.parseMidrow=function(t,e){var r=0;if((17===t||25===t)&&e>=32&&e<=47){if((r=17===t?1:2)!==this.currentChannel)return this.logger.log(0,"Mismatch channel in midrow parsing"),!1;var i=this.channels[r];return!!i&&(i.ccMIDROW(e),this.logger.log(3,"MIDROW ("+Vn([t,e])+")"),!0)}return!1},e.parsePAC=function(t,e){var r,i=this.cmdHistory;if(!((t>=17&&t<=23||t>=25&&t<=31)&&e>=64&&e<=127||(16===t||24===t)&&e>=64&&e<=95))return!1;if(Jn(t,e,i))return Qn(null,null,i),!0;var n=t<=23?1:2;r=e>=64&&e<=95?1===n?Nn[t]:Bn[t]:1===n?Un[t]:Gn[t];var a=this.channels[n];return!!a&&(a.setPAC(this.interpretPAC(r,e)),Qn(t,e,i),this.currentChannel=n,!0)},e.interpretPAC=function(t,e){var r,i={color:null,italics:!1,indent:null,underline:!1,row:t};return r=e>95?e-96:e-64,i.underline=1==(1&r),r<=13?i.color=["white","green","blue","cyan","red","yellow","magenta","white"][Math.floor(r/2)]:r<=15?(i.italics=!0,i.color="white"):i.indent=4*Math.floor((r-16)/2),i},e.parseChars=function(t,e){var r,i,n=null,a=null;if(t>=25?(r=2,a=t-8):(r=1,a=t),a>=17&&a<=19?(i=17===a?e+80:18===a?e+112:e+144,this.logger.log(2,"Special char '"+Fn(i)+"' in channel "+r),n=[i]):t>=32&&t<=127&&(n=0===e?[t]:[t,e]),n){var s=Vn(n);this.logger.log(3,"Char codes = "+s.join(",")),Qn(t,e,this.cmdHistory)}return n},e.parseBackgroundAttributes=function(t,e){var r;if(!((16===t||24===t)&&e>=32&&e<=47||(23===t||31===t)&&e>=45&&e<=47))return!1;var i={};16===t||24===t?(r=Math.floor((e-32)/2),i.background=Kn[r],e%2==1&&(i.background=i.background+"_semi")):45===e?i.background="transparent":(i.foreground="black",47===e&&(i.underline=!0));var n=t<=23?1:2;return this.channels[n].setBkgData(i),Qn(t,e,this.cmdHistory),!0},e.reset=function(){for(var t=0;tt)&&(this.startTime=t),this.endTime=e,this.screen=r,this.timelineController.createCaptionsTrack(this.trackName)},e.reset=function(){this.cueRanges=[],this.startTime=null},t}(),Zn=function(){if(null!=H&&H.VTTCue)return self.VTTCue;var t=["","lr","rl"],e=["start","middle","end","left","right"];function r(t,e){if("string"!=typeof e)return!1;if(!Array.isArray(t))return!1;var r=e.toLowerCase();return!!~t.indexOf(r)&&r}function i(t){return r(e,t)}function n(t){for(var e=arguments.length,r=new Array(e>1?e-1:0),i=1;i100)throw new Error("Position must be between 0 and 100.");E=t,this.hasBeenReset=!0}})),Object.defineProperty(o,"positionAlign",n({},l,{get:function(){return T},set:function(t){var e=i(t);if(!e)throw new SyntaxError("An invalid or illegal string was specified.");T=e,this.hasBeenReset=!0}})),Object.defineProperty(o,"size",n({},l,{get:function(){return S},set:function(t){if(t<0||t>100)throw new Error("Size must be between 0 and 100.");S=t,this.hasBeenReset=!0}})),Object.defineProperty(o,"align",n({},l,{get:function(){return L},set:function(t){var e=i(t);if(!e)throw new SyntaxError("An invalid or illegal string was specified.");L=e,this.hasBeenReset=!0}})),o.displayState=void 0}return a.prototype.getCueAsHTML=function(){return self.WebVTT.convertCueToDOMTree(self,this.text)},a}(),ta=function(){function t(){}return t.prototype.decode=function(t,e){if(!t)return"";if("string"!=typeof t)throw new Error("Error - expected string data.");return decodeURIComponent(encodeURIComponent(t))},t}();function ea(t){function e(t,e,r,i){return 3600*(0|t)+60*(0|e)+(0|r)+parseFloat(i||0)}var r=t.match(/^(?:(\d+):)?(\d{2}):(\d{2})(\.\d+)?/);return r?parseFloat(r[2])>59?e(r[2],r[3],0,r[4]):e(r[1],r[2],r[3],r[4]):null}var ra=function(){function t(){this.values=Object.create(null)}var e=t.prototype;return e.set=function(t,e){this.get(t)||""===e||(this.values[t]=e)},e.get=function(t,e,r){return r?this.has(t)?this.values[t]:e[r]:this.has(t)?this.values[t]:e},e.has=function(t){return t in this.values},e.alt=function(t,e,r){for(var i=0;i=0&&r<=100)return this.set(t,r),!0}return!1},t}();function ia(t,e,r,i){var n=i?t.split(i):[t];for(var a in n)if("string"==typeof n[a]){var s=n[a].split(r);2===s.length&&e(s[0],s[1])}}var na=new Zn(0,0,""),aa="middle"===na.align?"middle":"center";function sa(t,e,r){var i=t;function n(){var e=ea(t);if(null===e)throw new Error("Malformed timestamp: "+i);return t=t.replace(/^[^\sa-zA-Z-]+/,""),e}function a(){t=t.replace(/^\s+/,"")}if(a(),e.startTime=n(),a(),"--\x3e"!==t.slice(0,3))throw new Error("Malformed time stamp (time stamps must be separated by '--\x3e'): "+i);t=t.slice(3),a(),e.endTime=n(),a(),function(t,e){var i=new ra;ia(t,(function(t,e){var n;switch(t){case"region":for(var a=r.length-1;a>=0;a--)if(r[a].id===e){i.set(t,r[a].region);break}break;case"vertical":i.alt(t,e,["rl","lr"]);break;case"line":n=e.split(","),i.integer(t,n[0]),i.percent(t,n[0])&&i.set("snapToLines",!1),i.alt(t,n[0],["auto"]),2===n.length&&i.alt("lineAlign",n[1],["start",aa,"end"]);break;case"position":n=e.split(","),i.percent(t,n[0]),2===n.length&&i.alt("positionAlign",n[1],["start",aa,"end","line-left","line-right","auto"]);break;case"size":i.percent(t,e);break;case"align":i.alt(t,e,["start",aa,"end","left","right"])}}),/:/,/\s/),e.region=i.get("region",null),e.vertical=i.get("vertical","");var n=i.get("line","auto");"auto"===n&&-1===na.line&&(n=-1),e.line=n,e.lineAlign=i.get("lineAlign","start"),e.snapToLines=i.get("snapToLines",!0),e.size=i.get("size",100),e.align=i.get("align",aa);var a=i.get("position","auto");"auto"===a&&50===na.position&&(a="start"===e.align||"left"===e.align?0:"end"===e.align||"right"===e.align?100:50),e.position=a}(t,e)}function oa(t){return t.replace(//gi,"\n")}var la=function(){function t(){this.state="INITIAL",this.buffer="",this.decoder=new ta,this.regionList=[],this.cue=null,this.oncue=void 0,this.onparsingerror=void 0,this.onflush=void 0}var e=t.prototype;return e.parse=function(t){var e=this;function r(){var t=e.buffer,r=0;for(t=oa(t);r>>0).toString()};function ca(t,e,r){return da(t.toString())+da(e.toString())+da(r)}var fa="stpp.ttml.im1t",ga=/^(\d{2,}):(\d{2}):(\d{2}):(\d{2})\.?(\d+)?$/,va=/^(\d*(?:\.\d*)?)(h|m|s|ms|f|t)$/,ma={left:"start",center:"center",right:"end",start:"start",end:"end"};function pa(t,e,r,i){var n=Dt(new Uint8Array(t),["mdat"]);if(0!==n.length){var a,s,l,u=n.map((function(t){return mt(t)})),h=(a=e.baseTime,void 0===(s=e.timescale)&&(s=1),void 0===l&&(l=!1),Qi(a,1,1/s,l));try{u.forEach((function(t){return r(function(t,e){var r=(new DOMParser).parseFromString(t,"text/xml").getElementsByTagName("tt")[0];if(!r)throw new Error("Invalid ttml");var i={frameRate:30,subFrameRate:1,frameRateMultiplier:0,tickRate:0},n=Object.keys(i).reduce((function(t,e){return t[e]=r.getAttribute("ttp:"+e)||i[e],t}),{}),a="preserve"!==r.getAttribute("xml:space"),s=Ea(ya(r,"styling","style")),l=Ea(ya(r,"layout","region")),u=ya(r,"body","[begin]");return[].map.call(u,(function(t){var r=Ta(t,a);if(!r||!t.hasAttribute("begin"))return null;var i=Aa(t.getAttribute("begin"),n),u=Aa(t.getAttribute("dur"),n),h=Aa(t.getAttribute("end"),n);if(null===i)throw La(t);if(null===h){if(null===u)throw La(t);h=i+u}var d=new Zn(i-e,h-e,r);d.id=ca(d.startTime,d.endTime,d.text);var c=function(t,e,r){var i="http://www.w3.org/ns/ttml#styling",n=null,a=null!=t&&t.hasAttribute("style")?t.getAttribute("style"):null;return a&&r.hasOwnProperty(a)&&(n=r[a]),["displayAlign","textAlign","color","backgroundColor","fontSize","fontFamily"].reduce((function(r,a){var s=Sa(e,i,a)||Sa(t,i,a)||Sa(n,i,a);return s&&(r[a]=s),r}),{})}(l[t.getAttribute("region")],s[t.getAttribute("style")],s),f=c.textAlign;if(f){var g=ma[f];g&&(d.lineAlign=g),d.align=f}return o(d,c),d})).filter((function(t){return null!==t}))}(t,h))}))}catch(t){i(t)}}else i(new Error("Could not parse IMSC1 mdat"))}function ya(t,e,r){var i=t.getElementsByTagName(e)[0];return i?[].slice.call(i.querySelectorAll(r)):[]}function Ea(t){return t.reduce((function(t,e){var r=e.getAttribute("xml:id");return r&&(t[r]=e),t}),{})}function Ta(t,e){return[].slice.call(t.childNodes).reduce((function(t,r,i){var n;return"br"===r.nodeName&&i?t+"\n":null!=(n=r.childNodes)&&n.length?Ta(r,e):e?t+r.textContent.trim().replace(/\s+/g," "):t+r.textContent}),"")}function Sa(t,e,r){return t&&t.hasAttributeNS(e,r)?t.getAttributeNS(e,r):null}function La(t){return new Error("Could not parse ttml timestamp "+t)}function Aa(t,e){if(!t)return null;var r=ea(t);return null===r&&(ga.test(t)?r=function(t,e){var r=ga.exec(t),i=(0|r[4])+(0|r[5])/e.subFrameRate;return 3600*(0|r[1])+60*(0|r[2])+(0|r[3])+i/e.frameRate}(t,e):va.test(t)&&(r=function(t,e){var r=va.exec(t),i=Number(r[1]);switch(r[2]){case"h":return 3600*i;case"m":return 60*i;case"ms":return 1e3*i;case"f":return i/e.frameRate;case"t":return i/e.tickRate}return i}(t,e))),r}var Ra=function(){function t(t){this.hls=void 0,this.media=null,this.config=void 0,this.enabled=!0,this.Cues=void 0,this.textTracks=[],this.tracks=[],this.initPTS=[],this.unparsedVttFrags=[],this.captionsTracks={},this.nonNativeCaptionsTracks={},this.cea608Parser1=void 0,this.cea608Parser2=void 0,this.lastCc=-1,this.lastSn=-1,this.lastPartIndex=-1,this.prevCC=-1,this.vttCCs={ccOffset:0,presentationOffset:0,0:{start:0,prevCC:-1,new:!0}},this.captionsProperties=void 0,this.hls=t,this.config=t.config,this.Cues=t.config.cueHandler,this.captionsProperties={textTrack1:{label:this.config.captionsTextTrack1Label,languageCode:this.config.captionsTextTrack1LanguageCode},textTrack2:{label:this.config.captionsTextTrack2Label,languageCode:this.config.captionsTextTrack2LanguageCode},textTrack3:{label:this.config.captionsTextTrack3Label,languageCode:this.config.captionsTextTrack3LanguageCode},textTrack4:{label:this.config.captionsTextTrack4Label,languageCode:this.config.captionsTextTrack4LanguageCode}},t.on(E.MEDIA_ATTACHING,this.onMediaAttaching,this),t.on(E.MEDIA_DETACHING,this.onMediaDetaching,this),t.on(E.MANIFEST_LOADING,this.onManifestLoading,this),t.on(E.MANIFEST_LOADED,this.onManifestLoaded,this),t.on(E.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),t.on(E.FRAG_LOADING,this.onFragLoading,this),t.on(E.FRAG_LOADED,this.onFragLoaded,this),t.on(E.FRAG_PARSING_USERDATA,this.onFragParsingUserdata,this),t.on(E.FRAG_DECRYPTED,this.onFragDecrypted,this),t.on(E.INIT_PTS_FOUND,this.onInitPtsFound,this),t.on(E.SUBTITLE_TRACKS_CLEARED,this.onSubtitleTracksCleared,this),t.on(E.BUFFER_FLUSHING,this.onBufferFlushing,this)}var e=t.prototype;return e.destroy=function(){var t=this.hls;t.off(E.MEDIA_ATTACHING,this.onMediaAttaching,this),t.off(E.MEDIA_DETACHING,this.onMediaDetaching,this),t.off(E.MANIFEST_LOADING,this.onManifestLoading,this),t.off(E.MANIFEST_LOADED,this.onManifestLoaded,this),t.off(E.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),t.off(E.FRAG_LOADING,this.onFragLoading,this),t.off(E.FRAG_LOADED,this.onFragLoaded,this),t.off(E.FRAG_PARSING_USERDATA,this.onFragParsingUserdata,this),t.off(E.FRAG_DECRYPTED,this.onFragDecrypted,this),t.off(E.INIT_PTS_FOUND,this.onInitPtsFound,this),t.off(E.SUBTITLE_TRACKS_CLEARED,this.onSubtitleTracksCleared,this),t.off(E.BUFFER_FLUSHING,this.onBufferFlushing,this),this.hls=this.config=null,this.cea608Parser1=this.cea608Parser2=void 0},e.initCea608Parsers=function(){if(this.config.enableCEA708Captions&&(!this.cea608Parser1||!this.cea608Parser2)){var t=new $n(this,"textTrack1"),e=new $n(this,"textTrack2"),r=new $n(this,"textTrack3"),i=new $n(this,"textTrack4");this.cea608Parser1=new zn(1,t,e),this.cea608Parser2=new zn(3,r,i)}},e.addCues=function(t,e,r,i,n){for(var a,s,o,l,u=!1,h=n.length;h--;){var d=n[h],c=(a=d[0],s=d[1],o=e,l=r,Math.min(s,l)-Math.max(a,o));if(c>=0&&(d[0]=Math.min(d[0],e),d[1]=Math.max(d[1],r),u=!0,c/(r-e)>.5))return}if(u||n.push([e,r]),this.config.renderTextTracksNatively){var f=this.captionsTracks[t];this.Cues.newCue(f,e,r,i)}else{var g=this.Cues.newCue(null,e,r,i);this.hls.trigger(E.CUES_PARSED,{type:"captions",cues:g,track:t})}},e.onInitPtsFound=function(t,e){var r=this,i=e.frag,n=e.id,a=e.initPTS,s=e.timescale,o=this.unparsedVttFrags;"main"===n&&(this.initPTS[i.cc]={baseTime:a,timescale:s}),o.length&&(this.unparsedVttFrags=[],o.forEach((function(t){r.onFragLoaded(E.FRAG_LOADED,t)})))},e.getExistingTrack=function(t,e){var r=this.media;if(r)for(var i=0;i0&&c.push(t)},h.onparsingerror=function(t){u=t},h.onflush=function(){u?s(u):a(c)},d.forEach((function(t){if(y){if(ha(t,"X-TIMESTAMP-MAP=")){y=!1,t.slice(16).split(",").forEach((function(t){ha(t,"LOCAL:")?g=t.slice(6):ha(t,"MPEGTS:")&&(v=parseInt(t.slice(7)))}));try{p=function(t){var e=parseInt(t.slice(-3)),r=parseInt(t.slice(-6,-4)),i=parseInt(t.slice(-9,-7)),n=t.length>9?parseInt(t.substring(0,t.indexOf(":"))):0;if(!(m(e)&&m(r)&&m(i)&&m(n)))throw Error("Malformed X-TIMESTAMP-MAP: Local:"+t);return e+=1e3*r,(e+=6e4*i)+36e5*n}(g)/1e3}catch(t){u=t}return}""===t&&(y=!1)}h.parse(t+"\n")})),h.flush()}(null!=(e=i.initSegment)&&e.data?Ot(i.initSegment.data,new Uint8Array(n)):n,this.initPTS[i.cc],this.vttCCs,i.cc,i.start,(function(t){r._appendCues(t,i.level),l.trigger(E.SUBTITLE_FRAG_PROCESSED,{success:!0,frag:i})}),(function(e){var a="Missing initPTS for VTT MPEGTS"===e.message;a?s.push(t):r._fallbackToIMSC1(i,n),k.log("Failed to parse VTT cue: "+e),a&&o>i.cc||l.trigger(E.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:i,error:e})}))}else s.push(t)},e._fallbackToIMSC1=function(t,e){var r=this,i=this.tracks[t.level];i.textCodec||pa(e,this.initPTS[t.cc],(function(){i.textCodec=fa,r._parseIMSC1(t,e)}),(function(){i.textCodec="wvtt"}))},e._appendCues=function(t,e){var r=this.hls;if(this.config.renderTextTracksNatively){var i=this.textTracks[e];if(!i||"disabled"===i.mode)return;t.forEach((function(t){return Ce(i,t)}))}else{var n=this.tracks[e];if(!n)return;var a=n.default?"default":"subtitles"+e;r.trigger(E.CUES_PARSED,{type:"subtitles",cues:t,track:a})}},e.onFragDecrypted=function(t,e){e.frag.type===be&&this.onFragLoaded(E.FRAG_LOADED,e)},e.onSubtitleTracksCleared=function(){this.tracks=[],this.captionsTracks={}},e.onFragParsingUserdata=function(t,e){this.initCea608Parsers();var r=this.cea608Parser1,i=this.cea608Parser2;if(this.enabled&&r&&i){var n=e.frag,a=e.samples;if(n.type!==Ae||"NONE"!==this.closedCaptionsForLevel(n))for(var s=0;sthis.autoLevelCapping&&this.streamController&&this.streamController.nextLevelSwitch(),this.autoLevelCapping=e.autoLevelCapping}}},e.getMaxLevel=function(e){var r=this,i=this.hls.levels;if(!i.length)return-1;var n=i.filter((function(t,i){return r.isLevelAllowed(t)&&i<=e}));return this.clientRect=null,t.getMaxLevelByMediaSize(n,this.mediaWidth,this.mediaHeight)},e.startCapping=function(){this.timer||(this.autoLevelCapping=Number.POSITIVE_INFINITY,self.clearInterval(this.timer),this.timer=self.setInterval(this.detectPlayerSize.bind(this),1e3),this.detectPlayerSize())},e.stopCapping=function(){this.restrictedLevels=[],this.firstLevel=-1,this.autoLevelCapping=Number.POSITIVE_INFINITY,this.timer&&(self.clearInterval(this.timer),this.timer=void 0)},e.getDimensions=function(){if(this.clientRect)return this.clientRect;var t=this.media,e={width:0,height:0};if(t){var r=t.getBoundingClientRect();e.width=r.width,e.height=r.height,e.width||e.height||(e.width=r.right-r.left||t.width||0,e.height=r.bottom-r.top||t.height||0)}return this.clientRect=e,e},e.isLevelAllowed=function(t){return!this.restrictedLevels.some((function(e){return t.bitrate===e.bitrate&&t.width===e.width&&t.height===e.height}))},t.getMaxLevelByMediaSize=function(t,e,r){if(null==t||!t.length)return-1;for(var i,n,a=t.length-1,s=Math.max(e,r),o=0;o=s||l.height>=s)&&(i=l,!(n=t[o+1])||i.width!==n.width||i.height!==n.height)){a=o;break}}return a},s(t,[{key:"mediaWidth",get:function(){return this.getDimensions().width*this.contentScaleFactor}},{key:"mediaHeight",get:function(){return this.getDimensions().height*this.contentScaleFactor}},{key:"contentScaleFactor",get:function(){var t=1;if(!this.hls.config.ignoreDevicePixelRatio)try{t=self.devicePixelRatio}catch(t){}return t}}]),t}(),Ia=function(){function t(t){this.hls=void 0,this.isVideoPlaybackQualityAvailable=!1,this.timer=void 0,this.media=null,this.lastTime=void 0,this.lastDroppedFrames=0,this.lastDecodedFrames=0,this.streamController=void 0,this.hls=t,this.registerListeners()}var e=t.prototype;return e.setStreamController=function(t){this.streamController=t},e.registerListeners=function(){this.hls.on(E.MEDIA_ATTACHING,this.onMediaAttaching,this)},e.unregisterListeners=function(){this.hls.off(E.MEDIA_ATTACHING,this.onMediaAttaching,this)},e.destroy=function(){this.timer&&clearInterval(this.timer),this.unregisterListeners(),this.isVideoPlaybackQualityAvailable=!1,this.media=null},e.onMediaAttaching=function(t,e){var r=this.hls.config;if(r.capLevelOnFPSDrop){var i=e.media instanceof self.HTMLVideoElement?e.media:null;this.media=i,i&&"function"==typeof i.getVideoPlaybackQuality&&(this.isVideoPlaybackQualityAvailable=!0),self.clearInterval(this.timer),this.timer=self.setInterval(this.checkFPSInterval.bind(this),r.fpsDroppedMonitoringPeriod)}},e.checkFPS=function(t,e,r){var i=performance.now();if(e){if(this.lastTime){var n=i-this.lastTime,a=r-this.lastDroppedFrames,s=e-this.lastDecodedFrames,o=1e3*a/n,l=this.hls;if(l.trigger(E.FPS_DROP,{currentDropped:a,currentDecoded:s,totalDroppedFrames:r}),o>0&&a>l.config.fpsDroppedMonitoringThreshold*s){var u=l.currentLevel;k.warn("drop FPS ratio greater than max allowed value for currentLevel: "+u),u>0&&(-1===l.autoLevelCapping||l.autoLevelCapping>=u)&&(u-=1,l.trigger(E.FPS_DROP_LEVEL_CAPPING,{level:u,droppedLevel:l.currentLevel}),l.autoLevelCapping=u,this.streamController.nextLevelSwitch())}}this.lastTime=i,this.lastDroppedFrames=r,this.lastDecodedFrames=e}},e.checkFPSInterval=function(){var t=this.media;if(t)if(this.isVideoPlaybackQualityAvailable){var e=t.getVideoPlaybackQuality();this.checkFPS(t,e.totalVideoFrames,e.droppedVideoFrames)}else this.checkFPS(t,t.webkitDecodedFrameCount,t.webkitDroppedFrameCount)},t}(),wa="[eme]",Ca=function(){function t(e){this.hls=void 0,this.config=void 0,this.media=null,this.keyFormatPromise=null,this.keySystemAccessPromises={},this._requestLicenseFailureCount=0,this.mediaKeySessions=[],this.keyIdToKeySessionPromise={},this.setMediaKeysQueue=t.CDMCleanupPromise?[t.CDMCleanupPromise]:[],this.onMediaEncrypted=this._onMediaEncrypted.bind(this),this.onWaitingForKey=this._onWaitingForKey.bind(this),this.debug=k.debug.bind(k,wa),this.log=k.log.bind(k,wa),this.warn=k.warn.bind(k,wa),this.error=k.error.bind(k,wa),this.hls=e,this.config=e.config,this.registerListeners()}var e=t.prototype;return e.destroy=function(){this.unregisterListeners(),this.onMediaDetached();var t=this.config;t.requestMediaKeySystemAccessFunc=null,t.licenseXhrSetup=t.licenseResponseCallback=void 0,t.drmSystems=t.drmSystemOptions={},this.hls=this.onMediaEncrypted=this.onWaitingForKey=this.keyIdToKeySessionPromise=null,this.config=null},e.registerListeners=function(){this.hls.on(E.MEDIA_ATTACHED,this.onMediaAttached,this),this.hls.on(E.MEDIA_DETACHED,this.onMediaDetached,this),this.hls.on(E.MANIFEST_LOADING,this.onManifestLoading,this),this.hls.on(E.MANIFEST_LOADED,this.onManifestLoaded,this)},e.unregisterListeners=function(){this.hls.off(E.MEDIA_ATTACHED,this.onMediaAttached,this),this.hls.off(E.MEDIA_DETACHED,this.onMediaDetached,this),this.hls.off(E.MANIFEST_LOADING,this.onManifestLoading,this),this.hls.off(E.MANIFEST_LOADED,this.onManifestLoaded,this)},e.getLicenseServerUrl=function(t){var e=this.config,r=e.drmSystems,i=e.widevineLicenseUrl,n=r[t];if(n)return n.licenseUrl;if(t===V.WIDEVINE&&i)return i;throw new Error('no license server URL configured for key-system "'+t+'"')},e.getServerCertificateUrl=function(t){var e=this.config.drmSystems[t];if(e)return e.serverCertificateUrl;this.log('No Server Certificate in config.drmSystems["'+t+'"]')},e.attemptKeySystemAccess=function(t){var e=this,r=this.hls.levels,i=function(t,e,r){return!!t&&r.indexOf(t)===e},n=r.map((function(t){return t.audioCodec})).filter(i),a=r.map((function(t){return t.videoCodec})).filter(i);return n.length+a.length===0&&a.push("avc1.42e01e"),new Promise((function(r,i){!function t(s){var o=s.shift();e.getMediaKeysPromise(o,n,a).then((function(t){return r({keySystem:o,mediaKeys:t})})).catch((function(e){s.length?t(s):i(e instanceof Ma?e:new Ma({type:T.KEY_SYSTEM_ERROR,details:S.KEY_SYSTEM_NO_ACCESS,error:e,fatal:!0},e.message))}))}(t)}))},e.requestMediaKeySystemAccess=function(t,e){var r=this.config.requestMediaKeySystemAccessFunc;if("function"!=typeof r){var i="Configured requestMediaKeySystemAccess is not a function "+r;return null===Z&&"http:"===self.location.protocol&&(i="navigator.requestMediaKeySystemAccess is not available over insecure protocol "+location.protocol),Promise.reject(new Error(i))}return r(t,e)},e.getMediaKeysPromise=function(t,e,r){var i=this,n=function(t,e,r,i){var n;switch(t){case V.FAIRPLAY:n=["cenc","sinf"];break;case V.WIDEVINE:case V.PLAYREADY:n=["cenc"];break;case V.CLEARKEY:n=["cenc","keyids"];break;default:throw new Error("Unknown key-system: "+t)}return function(t,e,r,i){return[{initDataTypes:t,persistentState:i.persistentState||"optional",distinctiveIdentifier:i.distinctiveIdentifier||"optional",sessionTypes:i.sessionTypes||[i.sessionType||"temporary"],audioCapabilities:e.map((function(t){return{contentType:'audio/mp4; codecs="'+t+'"',robustness:i.audioRobustness||"",encryptionScheme:i.audioEncryptionScheme||null}})),videoCapabilities:r.map((function(t){return{contentType:'video/mp4; codecs="'+t+'"',robustness:i.videoRobustness||"",encryptionScheme:i.videoEncryptionScheme||null}}))}]}(n,e,r,i)}(t,e,r,this.config.drmSystemOptions),a=this.keySystemAccessPromises[t],s=null==a?void 0:a.keySystemAccess;if(!s){this.log('Requesting encrypted media "'+t+'" key-system access with config: '+JSON.stringify(n)),s=this.requestMediaKeySystemAccess(t,n);var o=this.keySystemAccessPromises[t]={keySystemAccess:s};return s.catch((function(e){i.log('Failed to obtain access to key-system "'+t+'": '+e)})),s.then((function(e){i.log('Access for key-system "'+e.keySystem+'" obtained');var r=i.fetchServerCertificate(t);return i.log('Create media-keys for "'+t+'"'),o.mediaKeys=e.createMediaKeys().then((function(e){return i.log('Media-keys created for "'+t+'"'),r.then((function(r){return r?i.setMediaKeysServerCertificate(e,t,r):e}))})),o.mediaKeys.catch((function(e){i.error('Failed to create media-keys for "'+t+'"}: '+e)})),o.mediaKeys}))}return s.then((function(){return a.mediaKeys}))},e.createMediaKeySessionContext=function(t){var e=t.decryptdata,r=t.keySystem,i=t.mediaKeys;this.log('Creating key-system session "'+r+'" keyId: '+pt(e.keyId||[]));var n=i.createSession(),a={decryptdata:e,keySystem:r,mediaKeys:i,mediaKeysSession:n,keyStatus:"status-pending"};return this.mediaKeySessions.push(a),a},e.renewKeySession=function(t){var e=t.decryptdata;if(e.pssh){var r=this.createMediaKeySessionContext(t),i=this.getKeyIdString(e);this.keyIdToKeySessionPromise[i]=this.generateRequestWithPreferredKeySession(r,"cenc",e.pssh,"expired")}else this.warn("Could not renew expired session. Missing pssh initData.");this.removeSession(t)},e.getKeyIdString=function(t){if(!t)throw new Error("Could not read keyId of undefined decryptdata");if(null===t.keyId)throw new Error("keyId is null");return pt(t.keyId)},e.updateKeySession=function(t,e){var r,i=t.mediaKeysSession;return this.log('Updating key-session "'+i.sessionId+'" for keyID '+pt((null==(r=t.decryptdata)?void 0:r.keyId)||[])+"\n } (data length: "+(e?e.byteLength:e)+")"),i.update(e)},e.selectKeySystemFormat=function(t){var e=Object.keys(t.levelkeys||{});return this.keyFormatPromise||(this.log("Selecting key-system from fragment (sn: "+t.sn+" "+t.type+": "+t.level+") key formats "+e.join(", ")),this.keyFormatPromise=this.getKeyFormatPromise(e)),this.keyFormatPromise},e.getKeyFormatPromise=function(t){var e=this;return new Promise((function(r,i){var n=J(e.config),a=t.map(X).filter((function(t){return!!t&&-1!==n.indexOf(t)}));return e.getKeySystemSelectionPromise(a).then((function(t){var e=t.keySystem,n=Q(e);n?r(n):i(new Error('Unable to find format for key-system "'+e+'"'))})).catch(i)}))},e.loadKey=function(t){var e=this,r=t.keyInfo.decryptdata,i=this.getKeyIdString(r),n="(keyId: "+i+' format: "'+r.keyFormat+'" method: '+r.method+" uri: "+r.uri+")";this.log("Starting session for key "+n);var a=this.keyIdToKeySessionPromise[i];return a||(a=this.keyIdToKeySessionPromise[i]=this.getKeySystemForKeyPromise(r).then((function(i){var a=i.keySystem,s=i.mediaKeys;return e.throwIfDestroyed(),e.log("Handle encrypted media sn: "+t.frag.sn+" "+t.frag.type+": "+t.frag.level+" using key "+n),e.attemptSetMediaKeys(a,s).then((function(){e.throwIfDestroyed();var t=e.createMediaKeySessionContext({keySystem:a,mediaKeys:s,decryptdata:r});return e.generateRequestWithPreferredKeySession(t,"cenc",r.pssh,"playlist-key")}))}))).catch((function(t){return e.handleError(t)})),a},e.throwIfDestroyed=function(t){if(!this.hls)throw new Error("invalid state")},e.handleError=function(t){this.hls&&(this.error(t.message),t instanceof Ma?this.hls.trigger(E.ERROR,t.data):this.hls.trigger(E.ERROR,{type:T.KEY_SYSTEM_ERROR,details:S.KEY_SYSTEM_NO_KEYS,error:t,fatal:!0}))},e.getKeySystemForKeyPromise=function(t){var e=this.getKeyIdString(t),r=this.keyIdToKeySessionPromise[e];if(!r){var i=X(t.keyFormat),n=i?[i]:J(this.config);return this.attemptKeySystemAccess(n)}return r},e.getKeySystemSelectionPromise=function(t){if(t.length||(t=J(this.config)),0===t.length)throw new Ma({type:T.KEY_SYSTEM_ERROR,details:S.KEY_SYSTEM_NO_CONFIGURED_LICENSE,fatal:!0},"Missing key-system license configuration options "+JSON.stringify({drmSystems:this.config.drmSystems}));return this.attemptKeySystemAccess(t)},e._onMediaEncrypted=function(t){var e=this,r=t.initDataType,i=t.initData;if(this.debug('"'+t.type+'" event: init data type: "'+r+'"'),null!==i){var n,a;if("sinf"===r&&this.config.drmSystems[V.FAIRPLAY]){var s=St(new Uint8Array(i));try{var o=G(JSON.parse(s).sinf),l=Ft(new Uint8Array(o));if(!l)return;n=l.subarray(8,24),a=V.FAIRPLAY}catch(t){return void this.warn('Failed to parse sinf "encrypted" event message initData')}}else{var u=function(t){if(!(t instanceof ArrayBuffer)||t.byteLength<32)return null;var e={version:0,systemId:"",kids:null,data:null},r=new DataView(t),i=r.getUint32(0);if(t.byteLength!==i&&i>44)return null;if(1886614376!==r.getUint32(4))return null;if(e.version=r.getUint32(8)>>>24,e.version>1)return null;e.systemId=pt(new Uint8Array(t,12,16));var n=r.getUint32(28);if(0===e.version){if(i-320)for(var a,s=0,o=n.length;s in key message");return K(atob(f))},e.setupLicenseXHR=function(t,e,r,i){var n=this,a=this.config.licenseXhrSetup;return a?Promise.resolve().then((function(){if(!r.decryptdata)throw new Error("Key removed");return a.call(n.hls,t,e,r,i)})).catch((function(s){if(!r.decryptdata)throw s;return t.open("POST",e,!0),a.call(n.hls,t,e,r,i)})).then((function(r){return t.readyState||t.open("POST",e,!0),{xhr:t,licenseChallenge:r||i}})):(t.open("POST",e,!0),Promise.resolve({xhr:t,licenseChallenge:i}))},e.requestLicense=function(t,e){var r=this,i=this.config.keyLoadPolicy.default;return new Promise((function(n,a){var s=r.getLicenseServerUrl(t.keySystem);r.log("Sending license request to URL: "+s);var o=new XMLHttpRequest;o.responseType="arraybuffer",o.onreadystatechange=function(){if(!r.hls||!t.mediaKeysSession)return a(new Error("invalid state"));if(4===o.readyState)if(200===o.status){r._requestLicenseFailureCount=0;var l=o.response;r.log("License received "+(l instanceof ArrayBuffer?l.byteLength:l));var u=r.config.licenseResponseCallback;if(u)try{l=u.call(r.hls,o,s,t)}catch(t){r.error(t)}n(l)}else{var h=i.errorRetry,d=h?h.maxNumRetry:0;if(r._requestLicenseFailureCount++,r._requestLicenseFailureCount>d||o.status>=400&&o.status<500)a(new Ma({type:T.KEY_SYSTEM_ERROR,details:S.KEY_SYSTEM_LICENSE_REQUEST_FAILED,fatal:!0,networkDetails:o,response:{url:s,data:void 0,code:o.status,text:o.statusText}},"License Request XHR failed ("+s+"). Status: "+o.status+" ("+o.statusText+")"));else{var c=d-r._requestLicenseFailureCount+1;r.warn("Retrying license request, "+c+" attempts left"),r.requestLicense(t,e).then(n,a)}}},t.licenseXhr&&t.licenseXhr.readyState!==XMLHttpRequest.DONE&&t.licenseXhr.abort(),t.licenseXhr=o,r.setupLicenseXHR(o,s,t,e).then((function(e){var i=e.xhr,n=e.licenseChallenge;t.keySystem==V.PLAYREADY&&(n=r.unpackPlayReadyKeyMessage(i,n)),i.send(n)}))}))},e.onMediaAttached=function(t,e){if(this.config.emeEnabled){var r=e.media;this.media=r,r.addEventListener("encrypted",this.onMediaEncrypted),r.addEventListener("waitingforkey",this.onWaitingForKey)}},e.onMediaDetached=function(){var e=this,r=this.media,i=this.mediaKeySessions;r&&(r.removeEventListener("encrypted",this.onMediaEncrypted),r.removeEventListener("waitingforkey",this.onWaitingForKey),this.media=null),this._requestLicenseFailureCount=0,this.setMediaKeysQueue=[],this.mediaKeySessions=[],this.keyIdToKeySessionPromise={},Ht.clearKeyUriToKeyIdMap();var n=i.length;t.CDMCleanupPromise=Promise.all(i.map((function(t){return e.removeSession(t)})).concat(null==r?void 0:r.setMediaKeys(null).catch((function(t){e.log("Could not clear media keys: "+t)})))).then((function(){n&&(e.log("finished closing key sessions and clearing media keys"),i.length=0)})).catch((function(t){e.log("Could not close sessions and clear media keys: "+t)}))},e.onManifestLoading=function(){this.keyFormatPromise=null},e.onManifestLoaded=function(t,e){var r=e.sessionKeys;if(r&&this.config.emeEnabled&&!this.keyFormatPromise){var i=r.reduce((function(t,e){return-1===t.indexOf(e.keyFormat)&&t.push(e.keyFormat),t}),[]);this.log("Selecting key-system from session-keys "+i.join(", ")),this.keyFormatPromise=this.getKeyFormatPromise(i)}},e.removeSession=function(t){var e=this,r=t.mediaKeysSession,i=t.licenseXhr;if(r){this.log("Remove licenses and keys and close session "+r.sessionId),t._onmessage&&(r.removeEventListener("message",t._onmessage),t._onmessage=void 0),t._onkeystatuseschange&&(r.removeEventListener("keystatuseschange",t._onkeystatuseschange),t._onkeystatuseschange=void 0),i&&i.readyState!==XMLHttpRequest.DONE&&i.abort(),t.mediaKeysSession=t.decryptdata=t.licenseXhr=void 0;var n=this.mediaKeySessions.indexOf(t);return n>-1&&this.mediaKeySessions.splice(n,1),r.remove().catch((function(t){e.log("Could not remove session: "+t)})).then((function(){return r.close()})).catch((function(t){e.log("Could not close session: "+t)}))}},t}();Ca.CDMCleanupPromise=void 0;var _a,xa,Pa,Fa,Ma=function(t){function e(e,r){var i;return(i=t.call(this,r)||this).data=void 0,e.error||(e.error=new Error(r)),i.data=e,e.err=e.error,i}return l(e,t),e}(c(Error));!function(t){t.MANIFEST="m",t.AUDIO="a",t.VIDEO="v",t.MUXED="av",t.INIT="i",t.CAPTION="c",t.TIMED_TEXT="tt",t.KEY="k",t.OTHER="o"}(_a||(_a={})),function(t){t.DASH="d",t.HLS="h",t.SMOOTH="s",t.OTHER="o"}(xa||(xa={})),function(t){t.OBJECT="CMCD-Object",t.REQUEST="CMCD-Request",t.SESSION="CMCD-Session",t.STATUS="CMCD-Status"}(Pa||(Pa={}));var Oa=((Fa={})[Pa.OBJECT]=["br","d","ot","tb"],Fa[Pa.REQUEST]=["bl","dl","mtp","nor","nrr","su"],Fa[Pa.SESSION]=["cid","pr","sf","sid","st","v"],Fa[Pa.STATUS]=["bs","rtp"],Fa),Na=function t(e,r){this.value=void 0,this.params=void 0,Array.isArray(e)&&(e=e.map((function(e){return e instanceof t?e:new t(e)}))),this.value=e,this.params=r},Ua=function(t){this.description=void 0,this.description=t},Ba="Dict";var Ga="Bare Item",Ka="Boolean",Ha="Byte Sequence",Va="Decimal",Ya="Integer",Wa=/[\x00-\x1f\x7f]+/,ja="Token",qa="Key";function Xa(t,e,r){return function(t,e,r,i){return new Error("failed to "+t+' "'+(n=e,(Array.isArray(n)?JSON.stringify(n):n instanceof Map?"Map{}":n instanceof Set?"Set{}":"object"==typeof n?JSON.stringify(n):String(n))+'" as ')+r,{cause:i});var n}("serialize",t,e,r)}function za(t){if(function(t){return t<-999999999999999||99999999999999912)throw Xa(t,Va);var r=e.toString();return r.includes(".")?r:r+".0"}var $a="String";function Za(t){var e,r=(e=t).description||e.toString().slice(7,-1);if(!1===/^([a-zA-Z*])([!#$%&'*+\-.^_`|~\w:/]*)$/.test(r))throw Xa(r,ja);return r}function ts(t){switch(typeof t){case"number":if(!m(t))throw Xa(t,Ga);return Number.isInteger(t)?za(t):Ja(t);case"string":return function(t){if(Wa.test(t))throw Xa(t,$a);return'"'+t.replace(/\\/g,"\\\\").replace(/"/g,'\\"')+'"'}(t);case"symbol":return Za(t);case"boolean":return function(t){if("boolean"!=typeof t)throw Xa(t,Ka);return t?"?1":"?0"}(t);case"object":if(t instanceof Date)return function(t){return"@"+za(t.getTime()/1e3)}(t);if(t instanceof Uint8Array)return function(t){if(!1===ArrayBuffer.isView(t))throw Xa(t,Ha);return":"+(e=t,btoa(String.fromCharCode.apply(String,e))+":");var e}(t);if(t instanceof Ua)return Za(t);default:throw Xa(t,Ga)}}function es(t){if(!1===/^[a-z*][a-z0-9\-_.*]*$/.test(t))throw Xa(t,qa);return t}function rs(t){return null==t?"":Object.entries(t).map((function(t){var e=t[0],r=t[1];return!0===r?";"+es(e):";"+es(e)+"="+ts(r)})).join("")}function is(t){return t instanceof Na?""+ts(t.value)+rs(t.params):ts(t)}var ns=function(t){return"ot"===t||"sf"===t||"st"===t},as=function(t){return"number"==typeof t?m(t):null!=t&&""!==t&&!1!==t},ss=function(t){return Math.round(t)},os=function(t){return 100*ss(t/100)},ls={br:ss,d:ss,bl:os,dl:os,mtp:os,nor:function(t,e){return null!=e&&e.baseUrl&&(t=function(t,e){var r=new URL(t),i=new URL(e);if(r.origin!==i.origin)return t;for(var n=r.pathname.split("/").slice(1),a=i.pathname.split("/").slice(1,-1);n[0]===a[0];)n.shift(),a.shift();for(;a.length;)a.shift(),n.unshift("..");return n.join("/")}(t,e.baseUrl)),encodeURIComponent(t)},rtp:os,tb:ss};function us(t,e){return void 0===e&&(e={}),t?function(t,e){return function(t,e){var r;if(void 0===e&&(e={whitespace:!0}),"object"!=typeof t)throw Xa(t,Ba);var i=t instanceof Map?t.entries():Object.entries(t),n=null!=(r=e)&&r.whitespace?" ":"";return Array.from(i).map((function(t){var e=t[0],r=t[1];r instanceof Na==0&&(r=new Na(r));var i,n=es(e);return!0===r.value?n+=rs(r.params):(n+="=",Array.isArray(r.value)?n+="("+(i=r).value.map(is).join(" ")+")"+rs(i.params):n+=is(r)),n})).join(","+n)}(t,e)}(function(t,e){var r={};if(null==t||"object"!=typeof t)return r;var i=Object.keys(t).sort(),n=o({},ls,null==e?void 0:e.formatters),a=null==e?void 0:e.filter;return i.forEach((function(i){if(null==a||!a(i)){var s=t[i],o=n[i];o&&(s=o(s,e)),"v"===i&&1===s||"pr"==i&&1===s||as(s)&&(ns(i)&&"string"==typeof s&&(s=new Ua(s)),r[i]=s)}})),r}(t,e),o({whitespace:!1},e)):""}var hs=/CMCD=[^&#]+/;var ds=function(){function t(t){var e=this;this.hls=void 0,this.config=void 0,this.media=void 0,this.sid=void 0,this.cid=void 0,this.useHeaders=!1,this.includeKeys=void 0,this.initialized=!1,this.starved=!1,this.buffering=!0,this.audioBuffer=void 0,this.videoBuffer=void 0,this.onWaiting=function(){e.initialized&&(e.starved=!0),e.buffering=!0},this.onPlaying=function(){e.initialized||(e.initialized=!0),e.buffering=!1},this.applyPlaylistData=function(t){try{e.apply(t,{ot:_a.MANIFEST,su:!e.initialized})}catch(t){k.warn("Could not generate manifest CMCD data.",t)}},this.applyFragmentData=function(t){try{var r=t.frag,i=e.hls.levels[r.level],n=e.getObjectType(r),a={d:1e3*r.duration,ot:n};n!==_a.VIDEO&&n!==_a.AUDIO&&n!=_a.MUXED||(a.br=i.bitrate/1e3,a.tb=e.getTopBandwidth(n)/1e3,a.bl=e.getBufferLength(n)),e.apply(t,a)}catch(t){k.warn("Could not generate segment CMCD data.",t)}},this.hls=t;var r=this.config=t.config,i=r.cmcd;null!=i&&(r.pLoader=this.createPlaylistLoader(),r.fLoader=this.createFragmentLoader(),this.sid=i.sessionId||function(){try{return crypto.randomUUID()}catch(i){try{var t=URL.createObjectURL(new Blob),e=t.toString();return URL.revokeObjectURL(t),e.slice(e.lastIndexOf("/")+1)}catch(t){var r=(new Date).getTime();return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(t){var e=(r+16*Math.random())%16|0;return r=Math.floor(r/16),("x"==t?e:3&e|8).toString(16)}))}}}(),this.cid=i.contentId,this.useHeaders=!0===i.useHeaders,this.includeKeys=i.includeKeys,this.registerListeners())}var e=t.prototype;return e.registerListeners=function(){var t=this.hls;t.on(E.MEDIA_ATTACHED,this.onMediaAttached,this),t.on(E.MEDIA_DETACHED,this.onMediaDetached,this),t.on(E.BUFFER_CREATED,this.onBufferCreated,this)},e.unregisterListeners=function(){var t=this.hls;t.off(E.MEDIA_ATTACHED,this.onMediaAttached,this),t.off(E.MEDIA_DETACHED,this.onMediaDetached,this),t.off(E.BUFFER_CREATED,this.onBufferCreated,this)},e.destroy=function(){this.unregisterListeners(),this.onMediaDetached(),this.hls=this.config=this.audioBuffer=this.videoBuffer=null,this.onWaiting=this.onPlaying=null},e.onMediaAttached=function(t,e){this.media=e.media,this.media.addEventListener("waiting",this.onWaiting),this.media.addEventListener("playing",this.onPlaying)},e.onMediaDetached=function(){this.media&&(this.media.removeEventListener("waiting",this.onWaiting),this.media.removeEventListener("playing",this.onPlaying),this.media=null)},e.onBufferCreated=function(t,e){var r,i;this.audioBuffer=null==(r=e.tracks.audio)?void 0:r.buffer,this.videoBuffer=null==(i=e.tracks.video)?void 0:i.buffer},e.createData=function(){var t;return{v:1,sf:xa.HLS,sid:this.sid,cid:this.cid,pr:null==(t=this.media)?void 0:t.playbackRate,mtp:this.hls.bandwidthEstimate/1e3}},e.apply=function(t,e){void 0===e&&(e={}),o(e,this.createData());var r=e.ot===_a.INIT||e.ot===_a.VIDEO||e.ot===_a.MUXED;this.starved&&r&&(e.bs=!0,e.su=!0,this.starved=!1),null==e.su&&(e.su=this.buffering);var i=this.includeKeys;i&&(e=Object.keys(e).reduce((function(t,r){return i.includes(r)&&(t[r]=e[r]),t}),{})),this.useHeaders?(t.headers||(t.headers={}),function(t,e,r){o(t,function(t,e){var r;if(void 0===e&&(e={}),!t)return{};var i=Object.entries(t),n=Object.entries(Oa).concat(Object.entries((null==(r=e)?void 0:r.customHeaderMap)||{})),a=i.reduce((function(t,e){var r,i=e[0],a=e[1],s=(null==(r=n.find((function(t){return t[1].includes(i)})))?void 0:r[0])||Pa.REQUEST;return null!=t[s]||(t[s]={}),t[s][i]=a,t}),{});return Object.entries(a).reduce((function(t,r){var i=r[0],n=r[1];return t[i]=us(n,e),t}),{})}(e,r))}(t.headers,e)):t.url=function(t,e,r){var i=function(t,e){if(void 0===e&&(e={}),!t)return"";var r=us(t,e);return"CMCD="+encodeURIComponent(r)}(e,r);if(!i)return t;if(hs.test(t))return t.replace(hs,i);var n=t.includes("?")?"&":"?";return""+t+n+i}(t.url,e)},e.getObjectType=function(t){var e=t.type;return"subtitle"===e?_a.TIMED_TEXT:"initSegment"===t.sn?_a.INIT:"audio"===e?_a.AUDIO:"main"===e?this.hls.audioTracks.length?_a.VIDEO:_a.MUXED:void 0},e.getTopBandwidth=function(t){var e,r=0,i=this.hls;if(t===_a.AUDIO)e=i.audioTracks;else{var n=i.maxAutoLevel,a=n>-1?n+1:i.levels.length;e=i.levels.slice(0,a)}for(var s,o=function(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(r)return(r=r.call(t)).next.bind(r);if(Array.isArray(t)||(r=function(t,e){if(t){if("string"==typeof t)return f(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?f(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var i=0;return function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(e);!(s=o()).done;){var l=s.value;l.bitrate>r&&(r=l.bitrate)}return r>0?r:NaN},e.getBufferLength=function(t){var e=this.hls.media,r=t===_a.AUDIO?this.audioBuffer:this.videoBuffer;return r&&e?1e3*Pr.bufferInfo(r,e.currentTime,this.config.maxBufferHole).len:NaN},e.createPlaylistLoader=function(){var t=this.config.pLoader,e=this.applyPlaylistData,r=t||this.config.loader;return function(){function t(t){this.loader=void 0,this.loader=new r(t)}var i=t.prototype;return i.destroy=function(){this.loader.destroy()},i.abort=function(){this.loader.abort()},i.load=function(t,r,i){e(t),this.loader.load(t,r,i)},s(t,[{key:"stats",get:function(){return this.loader.stats}},{key:"context",get:function(){return this.loader.context}}]),t}()},e.createFragmentLoader=function(){var t=this.config.fLoader,e=this.applyFragmentData,r=t||this.config.loader;return function(){function t(t){this.loader=void 0,this.loader=new r(t)}var i=t.prototype;return i.destroy=function(){this.loader.destroy()},i.abort=function(){this.loader.abort()},i.load=function(t,r,i){e(t),this.loader.load(t,r,i)},s(t,[{key:"stats",get:function(){return this.loader.stats}},{key:"context",get:function(){return this.loader.context}}]),t}()},t}(),cs=function(){function t(t){this.hls=void 0,this.log=void 0,this.loader=null,this.uri=null,this.pathwayId=".",this.pathwayPriority=null,this.timeToLoad=300,this.reloadTimer=-1,this.updated=0,this.started=!1,this.enabled=!0,this.levels=null,this.audioTracks=null,this.subtitleTracks=null,this.penalizedPathways={},this.hls=t,this.log=k.log.bind(k,"[content-steering]:"),this.registerListeners()}var e=t.prototype;return e.registerListeners=function(){var t=this.hls;t.on(E.MANIFEST_LOADING,this.onManifestLoading,this),t.on(E.MANIFEST_LOADED,this.onManifestLoaded,this),t.on(E.MANIFEST_PARSED,this.onManifestParsed,this),t.on(E.ERROR,this.onError,this)},e.unregisterListeners=function(){var t=this.hls;t&&(t.off(E.MANIFEST_LOADING,this.onManifestLoading,this),t.off(E.MANIFEST_LOADED,this.onManifestLoaded,this),t.off(E.MANIFEST_PARSED,this.onManifestParsed,this),t.off(E.ERROR,this.onError,this))},e.startLoad=function(){if(this.started=!0,this.clearTimeout(),this.enabled&&this.uri){if(this.updated){var t=1e3*this.timeToLoad-(performance.now()-this.updated);if(t>0)return void this.scheduleRefresh(this.uri,t)}this.loadSteeringManifest(this.uri)}},e.stopLoad=function(){this.started=!1,this.loader&&(this.loader.destroy(),this.loader=null),this.clearTimeout()},e.clearTimeout=function(){-1!==this.reloadTimer&&(self.clearTimeout(this.reloadTimer),this.reloadTimer=-1)},e.destroy=function(){this.unregisterListeners(),this.stopLoad(),this.hls=null,this.levels=this.audioTracks=this.subtitleTracks=null},e.removeLevel=function(t){var e=this.levels;e&&(this.levels=e.filter((function(e){return e!==t})))},e.onManifestLoading=function(){this.stopLoad(),this.enabled=!0,this.timeToLoad=300,this.updated=0,this.uri=null,this.pathwayId=".",this.levels=this.audioTracks=this.subtitleTracks=null},e.onManifestLoaded=function(t,e){var r=e.contentSteering;null!==r&&(this.pathwayId=r.pathwayId,this.uri=r.uri,this.started&&this.startLoad())},e.onManifestParsed=function(t,e){this.audioTracks=e.audioTracks,this.subtitleTracks=e.subtitleTracks},e.onError=function(t,e){var r=e.errorAction;if(2===(null==r?void 0:r.action)&&1===r.flags){var i=this.levels,n=this.pathwayPriority,a=this.pathwayId;if(e.context){var s=e.context,o=s.groupId,l=s.pathwayId,u=s.type;o&&i?a=this.getPathwayForGroupId(o,u,a):l&&(a=l)}a in this.penalizedPathways||(this.penalizedPathways[a]=performance.now()),!n&&i&&(n=i.reduce((function(t,e){return-1===t.indexOf(e.pathwayId)&&t.push(e.pathwayId),t}),[])),n&&n.length>1&&(this.updatePathwayPriority(n),r.resolved=this.pathwayId!==a),r.resolved||k.warn("Could not resolve "+e.details+' ("'+e.error.message+'") with content-steering for Pathway: '+a+" levels: "+(i?i.length:i)+" priorities: "+JSON.stringify(n)+" penalized: "+JSON.stringify(this.penalizedPathways))}},e.filterParsedLevels=function(t){this.levels=t;var e=this.getLevelsForPathway(this.pathwayId);if(0===e.length){var r=t[0].pathwayId;this.log("No levels found in Pathway "+this.pathwayId+'. Setting initial Pathway to "'+r+'"'),e=this.getLevelsForPathway(r),this.pathwayId=r}return e.length!==t.length?(this.log("Found "+e.length+"/"+t.length+' levels in Pathway "'+this.pathwayId+'"'),e):t},e.getLevelsForPathway=function(t){return null===this.levels?[]:this.levels.filter((function(e){return t===e.pathwayId}))},e.updatePathwayPriority=function(t){var e;this.pathwayPriority=t;var r=this.penalizedPathways,i=performance.now();Object.keys(r).forEach((function(t){i-r[t]>3e5&&delete r[t]}));for(var n=0;n0){this.log('Setting Pathway to "'+a+'"'),this.pathwayId=a,er(e),this.hls.trigger(E.LEVELS_UPDATED,{levels:e});var l=this.hls.levels[s];o&&l&&this.levels&&(l.attrs["STABLE-VARIANT-ID"]!==o.attrs["STABLE-VARIANT-ID"]&&l.bitrate!==o.bitrate&&this.log("Unstable Pathways change from bitrate "+o.bitrate+" to "+l.bitrate),this.hls.nextLoadLevel=s);break}}}},e.getPathwayForGroupId=function(t,e,r){for(var i=this.getLevelsForPathway(r).concat(this.levels||[]),n=0;n=2&&(0===r.loading.first&&(r.loading.first=Math.max(self.performance.now(),r.loading.start),n.timeout!==n.loadPolicy.maxLoadTimeMs&&(self.clearTimeout(this.requestTimeout),n.timeout=n.loadPolicy.maxLoadTimeMs,this.requestTimeout=self.setTimeout(this.loadtimeout.bind(this),n.loadPolicy.maxLoadTimeMs-(r.loading.first-r.loading.start)))),4===i)){self.clearTimeout(this.requestTimeout),e.onreadystatechange=null,e.onprogress=null;var a=e.status,s="text"!==e.responseType;if(a>=200&&a<300&&(s&&e.response||null!==e.responseText)){r.loading.end=Math.max(self.performance.now(),r.loading.first);var o=s?e.response:e.responseText,l="arraybuffer"===e.responseType?o.byteLength:o.length;if(r.loaded=r.total=l,r.bwEstimate=8e3*r.total/(r.loading.end-r.loading.first),!this.callbacks)return;var u=this.callbacks.onProgress;if(u&&u(r,t,o,e),!this.callbacks)return;var h={url:e.responseURL,data:o,code:a};this.callbacks.onSuccess(h,r,t,e)}else{var d=n.loadPolicy.errorRetry;sr(d,r.retry,!1,{url:t.url,data:void 0,code:a})?this.retry(d):(k.error(a+" while loading "+t.url),this.callbacks.onError({code:a,text:e.statusText},t,e,r))}}}},e.loadtimeout=function(){var t,e=null==(t=this.config)?void 0:t.loadPolicy.timeoutRetry;if(sr(e,this.stats.retry,!0))this.retry(e);else{var r;k.warn("timeout while loading "+(null==(r=this.context)?void 0:r.url));var i=this.callbacks;i&&(this.abortInternal(),i.onTimeout(this.stats,this.context,this.loader))}},e.retry=function(t){var e=this.context,r=this.stats;this.retryDelay=nr(t,r.retry),r.retry++,k.warn((status?"HTTP Status "+status:"Timeout")+" while loading "+(null==e?void 0:e.url)+", retrying "+r.retry+"/"+t.maxNumRetry+" in "+this.retryDelay+"ms"),this.abortInternal(),this.loader=null,self.clearTimeout(this.retryTimeout),this.retryTimeout=self.setTimeout(this.loadInternal.bind(this),this.retryDelay)},e.loadprogress=function(t){var e=this.stats;e.loaded=t.loaded,t.lengthComputable&&(e.total=t.total)},e.getCacheAge=function(){var t=null;if(this.loader&&vs.test(this.loader.getAllResponseHeaders())){var e=this.loader.getResponseHeader("age");t=e?parseFloat(e):null}return t},e.getResponseHeader=function(t){return this.loader&&new RegExp("^"+t+":\\s*[\\d.]+\\s*$","im").test(this.loader.getAllResponseHeaders())?this.loader.getResponseHeader(t):null},t}(),ps=/(\d+)-(\d+)\/(\d+)/,ys=function(){function t(t){this.fetchSetup=void 0,this.requestTimeout=void 0,this.request=null,this.response=null,this.controller=void 0,this.context=null,this.config=null,this.callbacks=null,this.stats=void 0,this.loader=null,this.fetchSetup=t.fetchSetup||Es,this.controller=new self.AbortController,this.stats=new x}var e=t.prototype;return e.destroy=function(){this.loader=this.callbacks=this.context=this.config=this.request=null,this.abortInternal(),this.response=null,this.fetchSetup=this.controller=this.stats=null},e.abortInternal=function(){this.controller&&!this.stats.loading.end&&(this.stats.aborted=!0,this.controller.abort())},e.abort=function(){var t;this.abortInternal(),null!=(t=this.callbacks)&&t.onAbort&&this.callbacks.onAbort(this.stats,this.context,this.response)},e.load=function(t,e,r){var i=this,n=this.stats;if(n.loading.start)throw new Error("Loader can only be used once.");n.loading.start=self.performance.now();var a=function(t,e){var r={method:"GET",mode:"cors",credentials:"same-origin",signal:e,headers:new self.Headers(o({},t.headers))};return t.rangeEnd&&r.headers.set("Range","bytes="+t.rangeStart+"-"+String(t.rangeEnd-1)),r}(t,this.controller.signal),s=r.onProgress,l="arraybuffer"===t.responseType,u=l?"byteLength":"length",h=e.loadPolicy,d=h.maxTimeToFirstByteMs,c=h.maxLoadTimeMs;this.context=t,this.config=e,this.callbacks=r,this.request=this.fetchSetup(t,a),self.clearTimeout(this.requestTimeout),e.timeout=d&&m(d)?d:c,this.requestTimeout=self.setTimeout((function(){i.abortInternal(),r.onTimeout(n,t,i.response)}),e.timeout),self.fetch(this.request).then((function(a){i.response=i.loader=a;var o=Math.max(self.performance.now(),n.loading.start);if(self.clearTimeout(i.requestTimeout),e.timeout=c,i.requestTimeout=self.setTimeout((function(){i.abortInternal(),r.onTimeout(n,t,i.response)}),c-(o-n.loading.start)),!a.ok){var u=a.status,h=a.statusText;throw new Ss(h||"fetch, bad network response",u,a)}return n.loading.first=o,n.total=function(t){var e=t.get("Content-Range");if(e){var r=function(t){var e=ps.exec(t);if(e)return parseInt(e[2])-parseInt(e[1])+1}(e);if(m(r))return r}var i=t.get("Content-Length");if(i)return parseInt(i)}(a.headers)||n.total,s&&m(e.highWaterMark)?i.loadProgressively(a,n,t,e.highWaterMark,s):l?a.arrayBuffer():"json"===t.responseType?a.json():a.text()})).then((function(a){var o=i.response;if(!o)throw new Error("loader destroyed");self.clearTimeout(i.requestTimeout),n.loading.end=Math.max(self.performance.now(),n.loading.first);var l=a[u];l&&(n.loaded=n.total=l);var h={url:o.url,data:a,code:o.status};s&&!m(e.highWaterMark)&&s(n,t,a,o),r.onSuccess(h,n,t,o)})).catch((function(e){if(self.clearTimeout(i.requestTimeout),!n.aborted){var a=e&&e.code||0,s=e?e.message:null;r.onError({code:a,text:s},t,e?e.details:null,n)}}))},e.getCacheAge=function(){var t=null;if(this.response){var e=this.response.headers.get("age");t=e?parseFloat(e):null}return t},e.getResponseHeader=function(t){return this.response?this.response.headers.get(t):null},e.loadProgressively=function(t,e,r,i,n){void 0===i&&(i=0);var a=new oi,s=t.body.getReader();return function o(){return s.read().then((function(s){if(s.done)return a.dataLength&&n(e,r,a.flush(),t),Promise.resolve(new ArrayBuffer(0));var l=s.value,u=l.length;return e.loaded+=u,u=i&&n(e,r,a.flush(),t)):n(e,r,l,t),o()})).catch((function(){return Promise.reject()}))}()},t}();function Es(t,e){return new self.Request(t.url,e)}var Ts,Ss=function(t){function e(e,r,i){var n;return(n=t.call(this,e)||this).code=void 0,n.details=void 0,n.code=r,n.details=i,n}return l(e,t),e}(c(Error)),Ls=/\s/,As=i(i({autoStartLoad:!0,startPosition:-1,defaultAudioCodec:void 0,debug:!1,capLevelOnFPSDrop:!1,capLevelToPlayerSize:!1,ignoreDevicePixelRatio:!1,preferManagedMediaSource:!0,initialLiveManifestSize:1,maxBufferLength:30,backBufferLength:1/0,frontBufferFlushThreshold: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:ms,fLoader:void 0,pLoader:void 0,xhrSetup:void 0,licenseXhrSetup:void 0,licenseResponseCallback:void 0,abrController:Ar,bufferController:_n,capLevelController:Da,errorController:dr,fpsController:Ia,stretchShortVideoTrack:!1,maxAudioFramesDrift:1,forceKeyFrameOnDiscontinuity:!0,abrEwmaFastLive:3,abrEwmaSlowLive:9,abrEwmaFastVoD:3,abrEwmaSlowVoD:9,abrEwmaDefaultEstimate:5e5,abrEwmaDefaultEstimateMax:5e6,abrBandWidthFactor:.95,abrBandWidthUpFactor:.7,abrMaxWithRealBitrate:!1,maxStarvationDelay:4,maxLoadingDelay:4,minAutoBitrate:0,emeEnabled:!1,widevineLicenseUrl:void 0,drmSystems:{},drmSystemOptions:{},requestMediaKeySystemAccessFunc:Z,testBandwidth:!0,progressive:!1,lowLatencyMode:!0,cmcd:void 0,enableDateRangeMetadataCues:!0,enableEmsgMetadataCues:!0,enableID3MetadataCues:!0,useMediaCapabilities:!0,certLoadPolicy:{default:{maxTimeToFirstByteMs:8e3,maxLoadTimeMs:2e4,timeoutRetry:null,errorRetry:null}},keyLoadPolicy:{default:{maxTimeToFirstByteMs:8e3,maxLoadTimeMs:2e4,timeoutRetry:{maxNumRetry:1,retryDelayMs:1e3,maxRetryDelayMs:2e4,backoff:"linear"},errorRetry:{maxNumRetry:8,retryDelayMs:1e3,maxRetryDelayMs:2e4,backoff:"linear"}}},manifestLoadPolicy:{default:{maxTimeToFirstByteMs:1/0,maxLoadTimeMs:2e4,timeoutRetry:{maxNumRetry:2,retryDelayMs:0,maxRetryDelayMs:0},errorRetry:{maxNumRetry:1,retryDelayMs:1e3,maxRetryDelayMs:8e3}}},playlistLoadPolicy:{default:{maxTimeToFirstByteMs:1e4,maxLoadTimeMs:2e4,timeoutRetry:{maxNumRetry:2,retryDelayMs:0,maxRetryDelayMs:0},errorRetry:{maxNumRetry:2,retryDelayMs:1e3,maxRetryDelayMs:8e3}}},fragLoadPolicy:{default:{maxTimeToFirstByteMs:1e4,maxLoadTimeMs:12e4,timeoutRetry:{maxNumRetry:4,retryDelayMs:0,maxRetryDelayMs:0},errorRetry:{maxNumRetry:6,retryDelayMs:1e3,maxRetryDelayMs:8e3}}},steeringManifestLoadPolicy:{default:{maxTimeToFirstByteMs:1e4,maxLoadTimeMs:2e4,timeoutRetry:{maxNumRetry:2,retryDelayMs:0,maxRetryDelayMs:0},errorRetry:{maxNumRetry:1,retryDelayMs:1e3,maxRetryDelayMs:8e3}}},manifestLoadingTimeOut:1e4,manifestLoadingMaxRetry:1,manifestLoadingRetryDelay:1e3,manifestLoadingMaxRetryTimeout:64e3,levelLoadingTimeOut:1e4,levelLoadingMaxRetry:4,levelLoadingRetryDelay:1e3,levelLoadingMaxRetryTimeout:64e3,fragLoadingTimeOut:2e4,fragLoadingMaxRetry:6,fragLoadingRetryDelay:1e3,fragLoadingMaxRetryTimeout:64e3},{cueHandler:{newCue:function(t,e,r,i){for(var n,a,s,o,l,u=[],h=self.VTTCue||self.TextTrackCue,d=0;d=16?o--:o++;var g=oa(l.trim()),v=ca(e,r,g);null!=t&&null!=(c=t.cues)&&c.getCueById(v)||((a=new h(e,r,g)).id=v,a.line=d+1,a.align="left",a.position=10+Math.min(80,10*Math.floor(8*o/32)),u.push(a))}return t&&u.length&&(u.sort((function(t,e){return"auto"===t.line||"auto"===e.line?0:t.line>8&&e.line>8?e.line-t.line:t.line-e.line})),u.forEach((function(e){return Ce(t,e)}))),u}},enableWebVTT:!0,enableIMSC1:!0,enableCEA708Captions:!0,captionsTextTrack1Label:"English",captionsTextTrack1LanguageCode:"en",captionsTextTrack2Label:"Spanish",captionsTextTrack2LanguageCode:"es",captionsTextTrack3Label:"Unknown CC",captionsTextTrack3LanguageCode:"",captionsTextTrack4Label:"Unknown CC",captionsTextTrack4LanguageCode:"",renderTextTracksNatively:!0}),{},{subtitleStreamController:kn,subtitleTrackController:In,timelineController:Ra,audioStreamController:Rn,audioTrackController:bn,emeController:Ca,cmcdController:ds,contentSteeringController:cs});function Rs(t){return t&&"object"==typeof t?Array.isArray(t)?t.map(Rs):Object.keys(t).reduce((function(e,r){return e[r]=Rs(t[r]),e}),{}):t}var bs=function(t){function e(e,r){var i;return(i=t.call(this,e,"[level-controller]")||this)._levels=[],i._firstLevel=-1,i._maxAutoLevel=-1,i._startLevel=void 0,i.currentLevel=null,i.currentLevelIndex=-1,i.manualLevelIndex=-1,i.steering=void 0,i.onParsedComplete=void 0,i.steering=r,i._registerListeners(),i}l(e,t);var r=e.prototype;return r._registerListeners=function(){var t=this.hls;t.on(E.MANIFEST_LOADING,this.onManifestLoading,this),t.on(E.MANIFEST_LOADED,this.onManifestLoaded,this),t.on(E.LEVEL_LOADED,this.onLevelLoaded,this),t.on(E.LEVELS_UPDATED,this.onLevelsUpdated,this),t.on(E.FRAG_BUFFERED,this.onFragBuffered,this),t.on(E.ERROR,this.onError,this)},r._unregisterListeners=function(){var t=this.hls;t.off(E.MANIFEST_LOADING,this.onManifestLoading,this),t.off(E.MANIFEST_LOADED,this.onManifestLoaded,this),t.off(E.LEVEL_LOADED,this.onLevelLoaded,this),t.off(E.LEVELS_UPDATED,this.onLevelsUpdated,this),t.off(E.FRAG_BUFFERED,this.onFragBuffered,this),t.off(E.ERROR,this.onError,this)},r.destroy=function(){this._unregisterListeners(),this.steering=null,this.resetLevels(),t.prototype.destroy.call(this)},r.stopLoad=function(){this._levels.forEach((function(t){t.loadError=0,t.fragmentError=0})),t.prototype.stopLoad.call(this)},r.resetLevels=function(){this._startLevel=void 0,this.manualLevelIndex=-1,this.currentLevelIndex=-1,this.currentLevel=null,this._levels=[],this._maxAutoLevel=-1},r.onManifestLoading=function(t,e){this.resetLevels()},r.onManifestLoaded=function(t,e){var r=this.hls.config.preferManagedMediaSource,i=[],n={},a={},s=!1,o=!1,l=!1;e.levels.forEach((function(t){var e,u,h=t.attrs,d=t.audioCodec,c=t.videoCodec;-1!==(null==(e=d)?void 0:e.indexOf("mp4a.40.34"))&&(Ts||(Ts=/chrome|firefox/i.test(navigator.userAgent)),Ts&&(t.audioCodec=d=void 0)),d&&(t.audioCodec=d=ne(d,r)),0===(null==(u=c)?void 0:u.indexOf("avc1"))&&(c=t.videoCodec=function(t){var e=t.split(".");if(e.length>2){var r=e.shift()+".";return(r+=parseInt(e.shift()).toString(16))+("000"+parseInt(e.shift()).toString(16)).slice(-4)}return t}(c));var f=t.width,g=t.height,v=t.unknownCodecs;if(s||(s=!(!f||!g)),o||(o=!!c),l||(l=!!d),!(null!=v&&v.length||d&&!Jt(d,"audio",r)||c&&!Jt(c,"video",r))){var m=h.CODECS,p=h["FRAME-RATE"],y=h["HDCP-LEVEL"],E=h["PATHWAY-ID"],T=h.RESOLUTION,S=h["VIDEO-RANGE"],L=(E||".")+"-"+t.bitrate+"-"+T+"-"+p+"-"+m+"-"+S+"-"+y;if(n[L])if(n[L].uri===t.url||t.attrs["PATHWAY-ID"])n[L].addGroupId("audio",h.AUDIO),n[L].addGroupId("text",h.SUBTITLES);else{var A=a[L]+=1;t.attrs["PATHWAY-ID"]=new Array(A+1).join(".");var R=new je(t);n[L]=R,i.push(R)}else{var b=new je(t);n[L]=b,a[L]=1,i.push(b)}}})),this.filterAndSortMediaOptions(i,e,s,o,l)},r.filterAndSortMediaOptions=function(t,e,r,i,n){var a=this,s=[],o=[],l=t;if((r||i)&&n&&(l=l.filter((function(t){var e,r=t.videoCodec,i=t.videoRange,n=t.width,a=t.height;return(!!r||!(!n||!a))&&!!(e=i)&&Ve.indexOf(e)>-1}))),0!==l.length){if(e.audioTracks){var u=this.hls.config.preferManagedMediaSource;ks(s=e.audioTracks.filter((function(t){return!t.audioCodec||Jt(t.audioCodec,"audio",u)})))}e.subtitles&&ks(o=e.subtitles);var h=l.slice(0);l.sort((function(t,e){if(t.attrs["HDCP-LEVEL"]!==e.attrs["HDCP-LEVEL"])return(t.attrs["HDCP-LEVEL"]||"")>(e.attrs["HDCP-LEVEL"]||"")?1:-1;if(r&&t.height!==e.height)return t.height-e.height;if(t.frameRate!==e.frameRate)return t.frameRate-e.frameRate;if(t.videoRange!==e.videoRange)return Ve.indexOf(t.videoRange)-Ve.indexOf(e.videoRange);if(t.videoCodec!==e.videoCodec){var i=te(t.videoCodec),n=te(e.videoCodec);if(i!==n)return n-i}if(t.uri===e.uri&&t.codecSet!==e.codecSet){var a=ee(t.codecSet),s=ee(e.codecSet);if(a!==s)return s-a}return t.averageBitrate!==e.averageBitrate?t.averageBitrate-e.averageBitrate:0}));var d=h[0];if(this.steering&&(l=this.steering.filterParsedLevels(l)).length!==h.length)for(var c=0;cm&&m===As.abrEwmaDefaultEstimate&&(this.hls.bandwidthEstimate=p)}break}var y=n&&!i,L={levels:l,audioTracks:s,subtitleTracks:o,sessionData:e.sessionData,sessionKeys:e.sessionKeys,firstLevel:this._firstLevel,stats:e.stats,audio:n,video:i,altAudio:!y&&s.some((function(t){return!!t.url}))};this.hls.trigger(E.MANIFEST_PARSED,L),(this.hls.config.autoStartLoad||this.hls.forceStartLoad)&&this.hls.startLoad(this.hls.config.startPosition)}else Promise.resolve().then((function(){if(a.hls){e.levels.length&&a.warn("One or more CODECS in variant not supported: "+JSON.stringify(e.levels[0].attrs));var t=new Error("no level with compatible codecs found in manifest");a.hls.trigger(E.ERROR,{type:T.MEDIA_ERROR,details:S.MANIFEST_INCOMPATIBLE_CODECS_ERROR,fatal:!0,url:e.url,error:t,reason:t.message})}}))},r.onError=function(t,e){!e.fatal&&e.context&&e.context.type===Te&&e.context.level===this.level&&this.checkRetry(e)},r.onFragBuffered=function(t,e){var r=e.frag;if(void 0!==r&&r.type===Ae){var i=r.elementaryStreams;if(!Object.keys(i).some((function(t){return!!i[t]})))return;var n=this._levels[r.level];null!=n&&n.loadError&&(this.log("Resetting level error count of "+n.loadError+" on frag buffered"),n.loadError=0)}},r.onLevelLoaded=function(t,e){var r,i,n=e.level,a=e.details,s=this._levels[n];if(!s)return this.warn("Invalid level index "+n),void(null!=(i=e.deliveryDirectives)&&i.skip&&(a.deltaUpdateFailed=!0));n===this.currentLevelIndex?(0===s.fragmentError&&(s.loadError=0),this.playlistLoaded(n,e,s.details)):null!=(r=e.deliveryDirectives)&&r.skip&&(a.deltaUpdateFailed=!0)},r.loadPlaylist=function(e){t.prototype.loadPlaylist.call(this);var r=this.currentLevelIndex,i=this.currentLevel;if(i&&this.shouldLoadPlaylist(i)){var n=i.uri;if(e)try{n=e.addDirectives(n)}catch(t){this.warn("Could not construct new URL with HLS Delivery Directives: "+t)}var a=i.attrs["PATHWAY-ID"];this.log("Loading level index "+r+(void 0!==(null==e?void 0:e.msn)?" at sn "+e.msn+" part "+e.part:"")+" with"+(a?" Pathway "+a:"")+" "+n),this.clearTimer(),this.hls.trigger(E.LEVEL_LOADING,{url:n,level:r,pathwayId:i.attrs["PATHWAY-ID"],id:0,deliveryDirectives:e||null})}},r.removeLevel=function(t){var e,r=this,i=this._levels.filter((function(e,i){return i!==t||(r.steering&&r.steering.removeLevel(e),e===r.currentLevel&&(r.currentLevel=null,r.currentLevelIndex=-1,e.details&&e.details.fragments.forEach((function(t){return t.level=-1}))),!1)}));er(i),this._levels=i,this.currentLevelIndex>-1&&null!=(e=this.currentLevel)&&e.details&&(this.currentLevelIndex=this.currentLevel.details.fragments[0].level),this.hls.trigger(E.LEVELS_UPDATED,{levels:i})},r.onLevelsUpdated=function(t,e){var r=e.levels;this._levels=r},r.checkMaxAutoUpdated=function(){var t=this.hls,e=t.autoLevelCapping,r=t.maxAutoLevel,i=t.maxHdcpLevel;this._maxAutoLevel!==r&&(this._maxAutoLevel=r,this.hls.trigger(E.MAX_AUTO_LEVEL_UPDATED,{autoLevelCapping:e,levels:this.levels,maxAutoLevel:r,minAutoLevel:this.hls.minAutoLevel,maxHdcpLevel:i}))},s(e,[{key:"levels",get:function(){return 0===this._levels.length?null:this._levels}},{key:"level",get:function(){return this.currentLevelIndex},set:function(t){var e=this._levels;if(0!==e.length){if(t<0||t>=e.length){var r=new Error("invalid level idx"),i=t<0;if(this.hls.trigger(E.ERROR,{type:T.OTHER_ERROR,details:S.LEVEL_SWITCH_ERROR,level:t,fatal:i,error:r,reason:r.message}),i)return;t=Math.min(t,e.length-1)}var n=this.currentLevelIndex,a=this.currentLevel,s=a?a.attrs["PATHWAY-ID"]:void 0,o=e[t],l=o.attrs["PATHWAY-ID"];if(this.currentLevelIndex=t,this.currentLevel=o,n!==t||!o.details||!a||s!==l){this.log("Switching to level "+t+" ("+(o.height?o.height+"p ":"")+(o.videoRange?o.videoRange+" ":"")+(o.codecSet?o.codecSet+" ":"")+"@"+o.bitrate+")"+(l?" with Pathway "+l:"")+" from level "+n+(s?" with Pathway "+s:""));var u={level:t,attrs:o.attrs,details:o.details,bitrate:o.bitrate,averageBitrate:o.averageBitrate,maxBitrate:o.maxBitrate,realBitrate:o.realBitrate,width:o.width,height:o.height,codecSet:o.codecSet,audioCodec:o.audioCodec,videoCodec:o.videoCodec,audioGroups:o.audioGroups,subtitleGroups:o.subtitleGroups,loaded:o.loaded,loadError:o.loadError,fragmentError:o.fragmentError,name:o.name,id:o.id,uri:o.uri,url:o.url,urlId:0,audioGroupIds:o.audioGroupIds,textGroupIds:o.textGroupIds};this.hls.trigger(E.LEVEL_SWITCHING,u);var h=o.details;if(!h||h.live){var d=this.switchParams(o.uri,null==a?void 0:a.details,h);this.loadPlaylist(d)}}}}},{key:"manualLevel",get:function(){return this.manualLevelIndex},set:function(t){this.manualLevelIndex=t,void 0===this._startLevel&&(this._startLevel=t),-1!==t&&(this.level=t)}},{key:"firstLevel",get:function(){return this._firstLevel},set:function(t){this._firstLevel=t}},{key:"startLevel",get:function(){if(void 0===this._startLevel){var t=this.hls.config.startLevel;return void 0!==t?t:this.hls.firstAutoLevel}return this._startLevel},set:function(t){this._startLevel=t}},{key:"nextLoadLevel",get:function(){return-1!==this.manualLevelIndex?this.manualLevelIndex:this.hls.nextAutoLevel},set:function(t){this.level=t,-1===this.manualLevelIndex&&(this.hls.nextAutoLevel=t)}}]),e}(cr);function ks(t){var e={};t.forEach((function(t){var r=t.groupId||"";t.id=e[r]=e[r]||0,e[r]++}))}var Ds=function(){function t(t){this.config=void 0,this.keyUriToKeyInfo={},this.emeController=null,this.config=t}var e=t.prototype;return e.abort=function(t){for(var e in this.keyUriToKeyInfo){var r=this.keyUriToKeyInfo[e].loader;if(r){var i;if(t&&t!==(null==(i=r.context)?void 0:i.frag.type))return;r.abort()}}},e.detach=function(){for(var t in this.keyUriToKeyInfo){var e=this.keyUriToKeyInfo[t];(e.mediaKeySessionContext||e.decryptdata.isCommonEncryption)&&delete this.keyUriToKeyInfo[t]}},e.destroy=function(){for(var t in this.detach(),this.keyUriToKeyInfo){var e=this.keyUriToKeyInfo[t].loader;e&&e.destroy()}this.keyUriToKeyInfo={}},e.createKeyLoadError=function(t,e,r,i,n){return void 0===e&&(e=S.KEY_LOAD_ERROR),new Vr({type:T.NETWORK_ERROR,details:e,fatal:!1,frag:t,response:n,error:r,networkDetails:i})},e.loadClear=function(t,e){var r=this;if(this.emeController&&this.config.emeEnabled)for(var i=t.sn,n=t.cc,a=function(){var t=e[s];if(n<=t.cc&&("initSegment"===i||"initSegment"===t.sn||i2,c=!h||e&&e.start<=a||h-a>2&&!this.fragmentTracker.getPartialFragment(a);if(d||c)return;this.moved=!1}if(!this.moved&&null!==this.stalled){var f;if(!(u.len>0||h))return;var g=Math.max(h,u.start||0)-a,v=this.hls.levels?this.hls.levels[this.hls.currentLevel]:null,m=(null==v||null==(f=v.details)?void 0:f.live)?2*v.details.targetduration:2,p=this.fragmentTracker.getPartialFragment(a);if(g>0&&(g<=m||p))return void(i.paused||this._trySkipBufferHole(p))}var y=self.performance.now();if(null!==n){var E=y-n;if(s||!(E>=250)||(this._reportStall(u),this.media)){var T=Pr.bufferInfo(i,a,r.maxBufferHole);this._tryFixBufferStall(T,E)}}else this.stalled=y}else if(this.moved=!0,s||(this.nudgeRetry=0),null!==n){if(this.stallReported){var S=self.performance.now()-n;k.warn("playback not stuck anymore @"+a+", after "+Math.round(S)+"ms"),this.stallReported=!1}this.stalled=null}}},e._tryFixBufferStall=function(t,e){var r=this.config,i=this.fragmentTracker,n=this.media;if(null!==n){var a=n.currentTime,s=i.getPartialFragment(a);if(s&&(this._trySkipBufferHole(s)||!this.media))return;(t.len>r.maxBufferHole||t.nextStart&&t.nextStart-a1e3*r.highBufferWatchdogPeriod&&(k.warn("Trying to nudge playhead over buffer-hole"),this.stalled=null,this._tryNudgeBuffer())}},e._reportStall=function(t){var e=this.hls,r=this.media;if(!this.stallReported&&r){this.stallReported=!0;var i=new Error("Playback stalling at @"+r.currentTime+" due to low buffer ("+JSON.stringify(t)+")");k.warn(i.message),e.trigger(E.ERROR,{type:T.MEDIA_ERROR,details:S.BUFFER_STALLED_ERROR,fatal:!1,error:i,buffer:t.len})}},e._trySkipBufferHole=function(t){var e=this.config,r=this.hls,i=this.media;if(null===i)return 0;var n=i.currentTime,a=Pr.bufferInfo(i,n,0),s=n0&&a.len<1&&i.readyState<3,u=s-n;if(u>0&&(o||l)){if(u>e.maxBufferHole){var h=this.fragmentTracker,d=!1;if(0===n){var c=h.getAppendedFrag(0,Ae);c&&s1?(i=0,this.bitrateTest=!0):i=r.firstAutoLevel),r.nextLoadLevel=i,this.level=r.loadLevel,this.loadedmetadata=!1}e>0&&-1===t&&(this.log("Override startPosition with lastCurrentTime @"+e.toFixed(3)),t=e),this.state=zr,this.nextLoadPosition=this.startPosition=this.lastCurrentTime=t,this.tick()}else this._forceStartLoad=!0,this.state=Xr},r.stopLoad=function(){this._forceStartLoad=!1,t.prototype.stopLoad.call(this)},r.doTick=function(){switch(this.state){case ai:var t=this.levels,e=this.level,r=null==t?void 0:t[e],i=null==r?void 0:r.details;if(i&&(!i.live||this.levelLastLoaded===r)){if(this.waitForCdnTuneIn(i))break;this.state=zr;break}if(this.hls.nextLoadLevel!==this.level){this.state=zr;break}break;case $r:var n,a=self.performance.now(),s=this.retryDate;if(!s||a>=s||null!=(n=this.media)&&n.seeking){var o=this.levels,l=this.level,u=null==o?void 0:o[l];this.resetStartWhenNotLoaded(u||null),this.state=zr}}this.state===zr&&this.doTickIdle(),this.onTickEnd()},r.onTickEnd=function(){t.prototype.onTickEnd.call(this),this.checkBuffer(),this.checkFragmentChanged()},r.doTickIdle=function(){var t=this.hls,e=this.levelLastLoaded,r=this.levels,i=this.media;if(null!==e&&(i||!this.startFragRequested&&t.config.startFragPrefetch)&&(!this.altAudio||!this.audioOnly)){var n=t.nextLoadLevel;if(null!=r&&r[n]){var a=r[n],s=this.getMainFwdBufferInfo();if(null!==s){var o=this.getLevelDetails();if(o&&this._streamEnded(s,o)){var l={};return this.altAudio&&(l.type="video"),this.hls.trigger(E.BUFFER_EOS,l),void(this.state=ri)}t.loadLevel!==n&&-1===t.manualLevel&&this.log("Adapting to level "+n+" from level "+this.level),this.level=t.nextLoadLevel=n;var u=a.details;if(!u||this.state===ai||u.live&&this.levelLastLoaded!==a)return this.level=n,void(this.state=ai);var h=s.len,d=this.getMaxBufferLength(a.maxBitrate);if(!(h>=d)){this.backtrackFragment&&this.backtrackFragment.start>s.end&&(this.backtrackFragment=null);var c=this.backtrackFragment?this.backtrackFragment.start:s.end,f=this.getNextFragment(c,u);if(this.couldBacktrack&&!this.fragPrevious&&f&&"initSegment"!==f.sn&&this.fragmentTracker.getState(f)!==Ir){var g,v=(null!=(g=this.backtrackFragment)?g:f).sn-u.startSN,m=u.fragments[v-1];m&&f.cc===m.cc&&(f=m,this.fragmentTracker.removeFragment(m))}else this.backtrackFragment&&s.len&&(this.backtrackFragment=null);if(f&&this.isLoopLoading(f,c)){if(!f.gap){var p=this.audioOnly&&!this.altAudio?P:F,y=(p===F?this.videoBuffer:this.mediaBuffer)||this.media;y&&this.afterBufferFlushed(y,p,Ae)}f=this.getNextFragmentLoopLoading(f,u,s,Ae,d)}f&&(!f.initSegment||f.initSegment.data||this.bitrateTest||(f=f.initSegment),this.loadFragment(f,a,c))}}}}},r.loadFragment=function(e,r,i){var n=this.fragmentTracker.getState(e);this.fragCurrent=e,n===br||n===Dr?"initSegment"===e.sn?this._loadInitSegment(e,r):this.bitrateTest?(this.log("Fragment "+e.sn+" of level "+e.level+" is being downloaded to test bitrate and will not be buffered"),this._loadBitrateTestFrag(e,r)):(this.startFragRequested=!0,t.prototype.loadFragment.call(this,e,r,i)):this.clearTrackerIfNeeded(e)},r.getBufferedFrag=function(t){return this.fragmentTracker.getBufferedFrag(t,Ae)},r.followingBufferedFrag=function(t){return t?this.getBufferedFrag(t.end+.5):null},r.immediateLevelSwitch=function(){this.abortCurrentFrag(),this.flushMainBuffer(0,Number.POSITIVE_INFINITY)},r.nextLevelSwitch=function(){var t=this.levels,e=this.media;if(null!=e&&e.readyState){var r,i=this.getAppendedFrag(e.currentTime);i&&i.start>1&&this.flushMainBuffer(0,i.start-1);var n=this.getLevelDetails();if(null!=n&&n.live){var a=this.getMainFwdBufferInfo();if(!a||a.len<2*n.targetduration)return}if(!e.paused&&t){var s=t[this.hls.nextLoadLevel],o=this.fragLastKbps;r=o&&this.fragCurrent?this.fragCurrent.duration*s.maxBitrate/(1e3*o)+1:0}else r=0;var l=this.getBufferedFrag(e.currentTime+r);if(l){var u=this.followingBufferedFrag(l);if(u){this.abortCurrentFrag();var h=u.maxStartPTS?u.maxStartPTS:u.start,d=u.duration,c=Math.max(l.end,h+Math.min(Math.max(d-this.config.maxFragLookUpTolerance,d*(this.couldBacktrack?.5:.125)),d*(this.couldBacktrack?.75:.25)));this.flushMainBuffer(c,Number.POSITIVE_INFINITY)}}}},r.abortCurrentFrag=function(){var t=this.fragCurrent;switch(this.fragCurrent=null,this.backtrackFragment=null,t&&(t.abortRequests(),this.fragmentTracker.removeFragment(t)),this.state){case Qr:case Jr:case $r:case ti:case ei:this.state=zr}this.nextLoadPosition=this.getLoadPosition()},r.flushMainBuffer=function(e,r){t.prototype.flushMainBuffer.call(this,e,r,this.altAudio?"video":null)},r.onMediaAttached=function(e,r){t.prototype.onMediaAttached.call(this,e,r);var i=r.media;this.onvplaying=this.onMediaPlaying.bind(this),this.onvseeked=this.onMediaSeeked.bind(this),i.addEventListener("playing",this.onvplaying),i.addEventListener("seeked",this.onvseeked),this.gapController=new Cs(this.config,i,this.fragmentTracker,this.hls)},r.onMediaDetaching=function(){var e=this.media;e&&this.onvplaying&&this.onvseeked&&(e.removeEventListener("playing",this.onvplaying),e.removeEventListener("seeked",this.onvseeked),this.onvplaying=this.onvseeked=null,this.videoBuffer=null),this.fragPlaying=null,this.gapController&&(this.gapController.destroy(),this.gapController=null),t.prototype.onMediaDetaching.call(this)},r.onMediaPlaying=function(){this.tick()},r.onMediaSeeked=function(){var t=this.media,e=t?t.currentTime:null;m(e)&&this.log("Media seeked to "+e.toFixed(3));var r=this.getMainFwdBufferInfo();null!==r&&0!==r.len?this.tick():this.warn('Main forward buffer length on "seeked" event '+(r?r.len:"empty")+")")},r.onManifestLoading=function(){this.log("Trigger BUFFER_RESET"),this.hls.trigger(E.BUFFER_RESET,void 0),this.fragmentTracker.removeAllFragments(),this.couldBacktrack=!1,this.startPosition=this.lastCurrentTime=this.fragLastKbps=0,this.levels=this.fragPlaying=this.backtrackFragment=this.levelLastLoaded=null,this.altAudio=this.audioOnly=this.startFragRequested=!1},r.onManifestParsed=function(t,e){var r,i,n=!1,a=!1;e.levels.forEach((function(t){var e=t.audioCodec;e&&(n=n||-1!==e.indexOf("mp4a.40.2"),a=a||-1!==e.indexOf("mp4a.40.5"))})),this.audioCodecSwitch=n&&a&&!("function"==typeof(null==(i=Is())||null==(r=i.prototype)?void 0:r.changeType)),this.audioCodecSwitch&&this.log("Both AAC/HE-AAC audio found in levels; declaring level codec as HE-AAC"),this.levels=e.levels,this.startFragRequested=!1},r.onLevelLoading=function(t,e){var r=this.levels;if(r&&this.state===zr){var i=r[e.level];(!i.details||i.details.live&&this.levelLastLoaded!==i||this.waitForCdnTuneIn(i.details))&&(this.state=ai)}},r.onLevelLoaded=function(t,e){var r,i=this.levels,n=e.level,a=e.details,s=a.totalduration;if(i){this.log("Level "+n+" loaded ["+a.startSN+","+a.endSN+"]"+(a.lastPartSn?"[part-"+a.lastPartSn+"-"+a.lastPartIndex+"]":"")+", cc ["+a.startCC+", "+a.endCC+"] duration:"+s);var o=i[n],l=this.fragCurrent;!l||this.state!==Jr&&this.state!==$r||l.level!==e.level&&l.loader&&this.abortCurrentFrag();var u=0;if(a.live||null!=(r=o.details)&&r.live){var h;if(this.checkLiveUpdate(a),a.deltaUpdateFailed)return;u=this.alignPlaylists(a,o.details,null==(h=this.levelLastLoaded)?void 0:h.details)}if(o.details=a,this.levelLastLoaded=o,this.hls.trigger(E.LEVEL_UPDATED,{details:a,level:n}),this.state===ai){if(this.waitForCdnTuneIn(a))return;this.state=zr}this.startFragRequested?a.live&&this.synchronizeToLiveEdge(a):this.setStartPosition(a,u),this.tick()}else this.warn("Levels were reset while loading level "+n)},r._handleFragmentLoadProgress=function(t){var e,r=t.frag,i=t.part,n=t.payload,a=this.levels;if(a){var s=a[r.level],o=s.details;if(!o)return this.warn("Dropping fragment "+r.sn+" of level "+r.level+" after level details were reset"),void this.fragmentTracker.removeFragment(r);var l=s.videoCodec,u=o.PTSKnown||!o.live,h=null==(e=r.initSegment)?void 0:e.data,d=this._getAudioCodec(s),c=this.transmuxer=this.transmuxer||new Tn(this.hls,Ae,this._handleTransmuxComplete.bind(this),this._handleTransmuxerFlush.bind(this)),f=i?i.index:-1,g=-1!==f,v=new Fr(r.level,r.sn,r.stats.chunkCount,n.byteLength,f,g),m=this.initPTS[r.cc];c.push(n,h,d,l,r,i,o.totalduration,u,v,m)}else this.warn("Levels were reset while fragment load was in progress. Fragment "+r.sn+" of level "+r.level+" will not be buffered")},r.onAudioTrackSwitching=function(t,e){var r=this.altAudio;if(!e.url){if(this.mediaBuffer!==this.media){this.log("Switching on main audio, use media.buffered to schedule main fragment loading"),this.mediaBuffer=this.media;var i=this.fragCurrent;i&&(this.log("Switching to main audio track, cancel main fragment load"),i.abortRequests(),this.fragmentTracker.removeFragment(i)),this.resetTransmuxer(),this.resetLoadingState()}else this.audioOnly&&this.resetTransmuxer();var n=this.hls;r&&(n.trigger(E.BUFFER_FLUSHING,{startOffset:0,endOffset:Number.POSITIVE_INFINITY,type:null}),this.fragmentTracker.removeAllFragments()),n.trigger(E.AUDIO_TRACK_SWITCHED,e)}},r.onAudioTrackSwitched=function(t,e){var r=e.id,i=!!this.hls.audioTracks[r].url;if(i){var n=this.videoBuffer;n&&this.mediaBuffer!==n&&(this.log("Switching on alternate audio, use video.buffered to schedule main fragment loading"),this.mediaBuffer=n)}this.altAudio=i,this.tick()},r.onBufferCreated=function(t,e){var r,i,n=e.tracks,a=!1;for(var s in n){var o=n[s];if("main"===o.id){if(i=s,r=o,"video"===s){var l=n[s];l&&(this.videoBuffer=l.buffer)}}else a=!0}a&&r?(this.log("Alternate track found, use "+i+".buffered to schedule main fragment loading"),this.mediaBuffer=r.buffer):this.mediaBuffer=this.media},r.onFragBuffered=function(t,e){var r=e.frag,i=e.part;if(!r||r.type===Ae){if(this.fragContextChanged(r))return this.warn("Fragment "+r.sn+(i?" p: "+i.index:"")+" of level "+r.level+" finished buffering, but was aborted. state: "+this.state),void(this.state===ei&&(this.state=zr));var n=i?i.stats:r.stats;this.fragLastKbps=Math.round(8*n.total/(n.buffering.end-n.loading.first)),"initSegment"!==r.sn&&(this.fragPrevious=r),this.fragBufferedComplete(r,i)}},r.onError=function(t,e){var r;if(e.fatal)this.state=ii;else switch(e.details){case S.FRAG_GAP:case S.FRAG_PARSING_ERROR:case S.FRAG_DECRYPT_ERROR:case S.FRAG_LOAD_ERROR:case S.FRAG_LOAD_TIMEOUT:case S.KEY_LOAD_ERROR:case S.KEY_LOAD_TIMEOUT:this.onFragmentOrKeyLoadError(Ae,e);break;case S.LEVEL_LOAD_ERROR:case S.LEVEL_LOAD_TIMEOUT:case S.LEVEL_PARSING_ERROR:e.levelRetry||this.state!==ai||(null==(r=e.context)?void 0:r.type)!==Te||(this.state=zr);break;case S.BUFFER_APPEND_ERROR:case S.BUFFER_FULL_ERROR:if(!e.parent||"main"!==e.parent)return;if(e.details===S.BUFFER_APPEND_ERROR)return void this.resetLoadingState();this.reduceLengthAndFlushBuffer(e)&&this.flushMainBuffer(0,Number.POSITIVE_INFINITY);break;case S.INTERNAL_EXCEPTION:this.recoverWorkerError(e)}},r.checkBuffer=function(){var t=this.media,e=this.gapController;if(t&&e&&t.readyState){if(this.loadedmetadata||!Pr.getBuffered(t).length){var r=this.state!==zr?this.fragCurrent:null;e.poll(this.lastCurrentTime,r)}this.lastCurrentTime=t.currentTime}},r.onFragLoadEmergencyAborted=function(){this.state=zr,this.loadedmetadata||(this.startFragRequested=!1,this.nextLoadPosition=this.startPosition),this.tickImmediate()},r.onBufferFlushed=function(t,e){var r=e.type;if(r!==P||this.audioOnly&&!this.altAudio){var i=(r===F?this.videoBuffer:this.mediaBuffer)||this.media;this.afterBufferFlushed(i,r,Ae),this.tick()}},r.onLevelsUpdated=function(t,e){this.level>-1&&this.fragCurrent&&(this.level=this.fragCurrent.level),this.levels=e.levels},r.swapAudioCodec=function(){this.audioCodecSwap=!this.audioCodecSwap},r.seekToStartPos=function(){var t=this.media;if(t){var e=t.currentTime,r=this.startPosition;if(r>=0&&e0&&(nS.cc;if(!1!==n.independent){var R=h.startPTS,b=h.endPTS,k=h.startDTS,D=h.endDTS;if(l)l.elementaryStreams[h.type]={startPTS:R,endPTS:b,startDTS:k,endDTS:D};else if(h.firstKeyFrame&&h.independent&&1===a.id&&!A&&(this.couldBacktrack=!0),h.dropped&&h.independent){var I=this.getMainFwdBufferInfo(),w=(I?I.end:this.getLoadPosition())+this.config.maxBufferHole,C=h.firstKeyFramePTS?h.firstKeyFramePTS:R;if(!L&&w2&&(o.gap=!0);o.setElementaryStreamInfo(h.type,R,b,k,D),this.backtrackFragment&&(this.backtrackFragment=o),this.bufferFragmentData(h,o,l,a,L||A)}else{if(!L&&!A)return void this.backtrack(o);o.gap=!0}}if(v){var _=v.startPTS,x=v.endPTS,F=v.startDTS,M=v.endDTS;l&&(l.elementaryStreams[P]={startPTS:_,endPTS:x,startDTS:F,endDTS:M}),o.setElementaryStreamInfo(P,_,x,F,M),this.bufferFragmentData(v,o,l,a)}if(g&&null!=c&&null!=(e=c.samples)&&e.length){var O={id:r,frag:o,details:g,samples:c.samples};i.trigger(E.FRAG_PARSING_METADATA,O)}if(g&&d){var N={id:r,frag:o,details:g,samples:d.samples};i.trigger(E.FRAG_PARSING_USERDATA,N)}}}else this.resetWhenMissingContext(a)},r._bufferInitSegment=function(t,e,r,i){var n=this;if(this.state===ti){this.audioOnly=!!e.audio&&!e.video,this.altAudio&&!this.audioOnly&&delete e.audio;var a=e.audio,s=e.video,o=e.audiovideo;if(a){var l=t.audioCodec,u=navigator.userAgent.toLowerCase();this.audioCodecSwitch&&(l&&(l=-1!==l.indexOf("mp4a.40.5")?"mp4a.40.2":"mp4a.40.5"),1!==a.metadata.channelCount&&-1===u.indexOf("firefox")&&(l="mp4a.40.5")),l&&-1!==l.indexOf("mp4a.40.5")&&-1!==u.indexOf("android")&&"audio/mpeg"!==a.container&&(l="mp4a.40.2",this.log("Android: force audio codec to "+l)),t.audioCodec&&t.audioCodec!==l&&this.log('Swapping manifest audio codec "'+t.audioCodec+'" for "'+l+'"'),a.levelCodec=l,a.id="main",this.log("Init audio buffer, container:"+a.container+", codecs[selected/level/parsed]=["+(l||"")+"/"+(t.audioCodec||"")+"/"+a.codec+"]")}s&&(s.levelCodec=t.videoCodec,s.id="main",this.log("Init video buffer, container:"+s.container+", codecs[level/parsed]=["+(t.videoCodec||"")+"/"+s.codec+"]")),o&&this.log("Init audiovideo buffer, container:"+o.container+", codecs[level/parsed]=["+t.codecs+"/"+o.codec+"]"),this.hls.trigger(E.BUFFER_CODECS,e),Object.keys(e).forEach((function(t){var a=e[t].initSegment;null!=a&&a.byteLength&&n.hls.trigger(E.BUFFER_APPENDING,{type:t,data:a,frag:r,part:null,chunkMeta:i,parent:r.type})})),this.tickImmediate()}},r.getMainFwdBufferInfo=function(){return this.getFwdBufferInfo(this.mediaBuffer?this.mediaBuffer:this.media,Ae)},r.backtrack=function(t){this.couldBacktrack=!0,this.backtrackFragment=t,this.resetTransmuxer(),this.flushBufferGap(t),this.fragmentTracker.removeFragment(t),this.fragPrevious=null,this.nextLoadPosition=t.start,this.state=zr},r.checkFragmentChanged=function(){var t=this.media,e=null;if(t&&t.readyState>1&&!1===t.seeking){var r=t.currentTime;if(Pr.isBuffered(t,r)?e=this.getAppendedFrag(r):Pr.isBuffered(t,r+.1)&&(e=this.getAppendedFrag(r+.1)),e){this.backtrackFragment=null;var i=this.fragPlaying,n=e.level;i&&e.sn===i.sn&&i.level===n||(this.fragPlaying=e,this.hls.trigger(E.FRAG_CHANGED,{frag:e}),i&&i.level===n||this.hls.trigger(E.LEVEL_SWITCHED,{level:n}))}}},s(e,[{key:"nextLevel",get:function(){var t=this.nextBufferedFrag;return t?t.level:-1}},{key:"currentFrag",get:function(){var t=this.media;return t?this.fragPlaying||this.getAppendedFrag(t.currentTime):null}},{key:"currentProgramDateTime",get:function(){var t=this.media;if(t){var e=t.currentTime,r=this.currentFrag;if(r&&m(e)&&m(r.programDateTime)){var i=r.programDateTime+1e3*(e-r.start);return new Date(i)}}return null}},{key:"currentLevel",get:function(){var t=this.currentFrag;return t?t.level:-1}},{key:"nextBufferedFrag",get:function(){var t=this.currentFrag;return t?this.followingBufferedFrag(t):null}},{key:"forceStartLoad",get:function(){return this._forceStartLoad}}]),e}(si),xs=function(){function t(e){void 0===e&&(e={}),this.config=void 0,this.userConfig=void 0,this.coreComponents=void 0,this.networkControllers=void 0,this.started=!1,this._emitter=new mn,this._autoLevelCapping=-1,this._maxHdcpLevel=null,this.abrController=void 0,this.bufferController=void 0,this.capLevelController=void 0,this.latencyController=void 0,this.levelController=void 0,this.streamController=void 0,this.audioTrackController=void 0,this.subtitleTrackController=void 0,this.emeController=void 0,this.cmcdController=void 0,this._media=null,this.url=null,this.triggeringException=void 0,b(e.debug||!1,"Hls instance");var r=this.config=function(t,e){if((e.liveSyncDurationCount||e.liveMaxLatencyDurationCount)&&(e.liveSyncDuration||e.liveMaxLatencyDuration))throw new Error("Illegal hls.js config: don't mix up liveSyncDurationCount/liveMaxLatencyDurationCount and liveSyncDuration/liveMaxLatencyDuration");if(void 0!==e.liveMaxLatencyDurationCount&&(void 0===e.liveSyncDurationCount||e.liveMaxLatencyDurationCount<=e.liveSyncDurationCount))throw new Error('Illegal hls.js config: "liveMaxLatencyDurationCount" must be greater than "liveSyncDurationCount"');if(void 0!==e.liveMaxLatencyDuration&&(void 0===e.liveSyncDuration||e.liveMaxLatencyDuration<=e.liveSyncDuration))throw new Error('Illegal hls.js config: "liveMaxLatencyDuration" must be greater than "liveSyncDuration"');var r=Rs(t),n=["TimeOut","MaxRetry","RetryDelay","MaxRetryTimeout"];return["manifest","level","frag"].forEach((function(t){var i=("level"===t?"playlist":t)+"LoadPolicy",a=void 0===e[i],s=[];n.forEach((function(n){var o=t+"Loading"+n,l=e[o];if(void 0!==l&&a){s.push(o);var u=r[i].default;switch(e[i]={default:u},n){case"TimeOut":u.maxLoadTimeMs=l,u.maxTimeToFirstByteMs=l;break;case"MaxRetry":u.errorRetry.maxNumRetry=l,u.timeoutRetry.maxNumRetry=l;break;case"RetryDelay":u.errorRetry.retryDelayMs=l,u.timeoutRetry.retryDelayMs=l;break;case"MaxRetryTimeout":u.errorRetry.maxRetryDelayMs=l,u.timeoutRetry.maxRetryDelayMs=l}}})),s.length&&k.warn('hls.js config: "'+s.join('", "')+'" setting(s) are deprecated, use "'+i+'": '+JSON.stringify(e[i]))})),i(i({},r),e)}(t.DefaultConfig,e);this.userConfig=e,r.progressive&&function(t){var e=t.loader;e!==ys&&e!==ms?(k.log("[config]: Custom loader detected, cannot enable progressive streaming"),t.progressive=!1):function(){if(self.fetch&&self.AbortController&&self.ReadableStream&&self.Request)try{return new self.ReadableStream({}),!0}catch(t){}return!1}()&&(t.loader=ys,t.progressive=!0,t.enableSoftwareAES=!0,k.log("[config]: Progressive streaming enabled, using FetchLoader"))}(r);var n=r.abrController,a=r.bufferController,s=r.capLevelController,o=r.errorController,l=r.fpsController,u=new o(this),h=this.abrController=new n(this),d=this.bufferController=new a(this),c=this.capLevelController=new s(this),f=new l(this),g=new Ie(this),v=new Ge(this),m=r.contentSteeringController,p=m?new m(this):null,y=this.levelController=new bs(this,p),T=new wr(this),S=new Ds(this.config),L=this.streamController=new _s(this,T,S);c.setStreamController(L),f.setStreamController(L);var A=[g,y,L];p&&A.splice(1,0,p),this.networkControllers=A;var R=[h,d,c,f,v,T];this.audioTrackController=this.createController(r.audioTrackController,A);var D=r.audioStreamController;D&&A.push(new D(this,T,S)),this.subtitleTrackController=this.createController(r.subtitleTrackController,A);var I=r.subtitleStreamController;I&&A.push(new I(this,T,S)),this.createController(r.timelineController,R),S.emeController=this.emeController=this.createController(r.emeController,R),this.cmcdController=this.createController(r.cmcdController,R),this.latencyController=this.createController(Ke,R),this.coreComponents=R,A.push(u);var w=u.onErrorOut;"function"==typeof w&&this.on(E.ERROR,w,u)}t.isMSESupported=function(){return ws()},t.isSupported=function(){return function(){if(!ws())return!1;var t=zt();return"function"==typeof(null==t?void 0:t.isTypeSupported)&&(["avc1.42E01E,mp4a.40.2","av01.0.01M.08","vp09.00.50.08"].some((function(e){return t.isTypeSupported(Zt(e,"video"))}))||["mp4a.40.2","fLaC"].some((function(e){return t.isTypeSupported(Zt(e,"audio"))})))}()},t.getMediaSource=function(){return zt()};var e=t.prototype;return e.createController=function(t,e){if(t){var r=new t(this);return e&&e.push(r),r}return null},e.on=function(t,e,r){void 0===r&&(r=this),this._emitter.on(t,e,r)},e.once=function(t,e,r){void 0===r&&(r=this),this._emitter.once(t,e,r)},e.removeAllListeners=function(t){this._emitter.removeAllListeners(t)},e.off=function(t,e,r,i){void 0===r&&(r=this),this._emitter.off(t,e,r,i)},e.listeners=function(t){return this._emitter.listeners(t)},e.emit=function(t,e,r){return this._emitter.emit(t,e,r)},e.trigger=function(t,e){if(this.config.debug)return this.emit(t,t,e);try{return this.emit(t,t,e)}catch(e){if(k.error("An internal error happened while handling event "+t+'. Error message: "'+e.message+'". Here is a stacktrace:',e),!this.triggeringException){this.triggeringException=!0;var r=t===E.ERROR;this.trigger(E.ERROR,{type:T.OTHER_ERROR,details:S.INTERNAL_EXCEPTION,fatal:r,event:t,error:e}),this.triggeringException=!1}}return!1},e.listenerCount=function(t){return this._emitter.listenerCount(t)},e.destroy=function(){k.log("destroy"),this.trigger(E.DESTROYING,void 0),this.detachMedia(),this.removeAllListeners(),this._autoLevelCapping=-1,this.url=null,this.networkControllers.forEach((function(t){return t.destroy()})),this.networkControllers.length=0,this.coreComponents.forEach((function(t){return t.destroy()})),this.coreComponents.length=0;var t=this.config;t.xhrSetup=t.fetchSetup=void 0,this.userConfig=null},e.attachMedia=function(t){k.log("attachMedia"),this._media=t,this.trigger(E.MEDIA_ATTACHING,{media:t})},e.detachMedia=function(){k.log("detachMedia"),this.trigger(E.MEDIA_DETACHING,void 0),this._media=null},e.loadSource=function(t){this.stopLoad();var e=this.media,r=this.url,i=this.url=v.buildAbsoluteURL(self.location.href,t,{alwaysNormalize:!0});this._autoLevelCapping=-1,this._maxHdcpLevel=null,k.log("loadSource:"+i),e&&r&&(r!==i||this.bufferController.hasSourceTypes())&&(this.detachMedia(),this.attachMedia(e)),this.trigger(E.MANIFEST_LOADING,{url:t})},e.startLoad=function(t){void 0===t&&(t=-1),k.log("startLoad("+t+")"),this.started=!0,this.networkControllers.forEach((function(e){e.startLoad(t)}))},e.stopLoad=function(){k.log("stopLoad"),this.started=!1,this.networkControllers.forEach((function(t){t.stopLoad()}))},e.resumeBuffering=function(){this.started&&this.networkControllers.forEach((function(t){"fragmentLoader"in t&&t.startLoad(-1)}))},e.pauseBuffering=function(){this.networkControllers.forEach((function(t){"fragmentLoader"in t&&t.stopLoad()}))},e.swapAudioCodec=function(){k.log("swapAudioCodec"),this.streamController.swapAudioCodec()},e.recoverMediaError=function(){k.log("recoverMediaError");var t=this._media;this.detachMedia(),t&&this.attachMedia(t)},e.removeLevel=function(t){this.levelController.removeLevel(t)},e.setAudioOption=function(t){var e;return null==(e=this.audioTrackController)?void 0:e.setAudioOption(t)},e.setSubtitleOption=function(t){var e;return null==(e=this.subtitleTrackController)||e.setSubtitleOption(t),null},s(t,[{key:"levels",get:function(){return this.levelController.levels||[]}},{key:"currentLevel",get:function(){return this.streamController.currentLevel},set:function(t){k.log("set currentLevel:"+t),this.levelController.manualLevel=t,this.streamController.immediateLevelSwitch()}},{key:"nextLevel",get:function(){return this.streamController.nextLevel},set:function(t){k.log("set nextLevel:"+t),this.levelController.manualLevel=t,this.streamController.nextLevelSwitch()}},{key:"loadLevel",get:function(){return this.levelController.level},set:function(t){k.log("set loadLevel:"+t),this.levelController.manualLevel=t}},{key:"nextLoadLevel",get:function(){return this.levelController.nextLoadLevel},set:function(t){this.levelController.nextLoadLevel=t}},{key:"firstLevel",get:function(){return Math.max(this.levelController.firstLevel,this.minAutoLevel)},set:function(t){k.log("set firstLevel:"+t),this.levelController.firstLevel=t}},{key:"startLevel",get:function(){var t=this.levelController.startLevel;return-1===t&&this.abrController.forcedAutoLevel>-1?this.abrController.forcedAutoLevel:t},set:function(t){k.log("set startLevel:"+t),-1!==t&&(t=Math.max(t,this.minAutoLevel)),this.levelController.startLevel=t}},{key:"capLevelToPlayerSize",get:function(){return this.config.capLevelToPlayerSize},set:function(t){var e=!!t;e!==this.config.capLevelToPlayerSize&&(e?this.capLevelController.startCapping():(this.capLevelController.stopCapping(),this.autoLevelCapping=-1,this.streamController.nextLevelSwitch()),this.config.capLevelToPlayerSize=e)}},{key:"autoLevelCapping",get:function(){return this._autoLevelCapping},set:function(t){this._autoLevelCapping!==t&&(k.log("set autoLevelCapping:"+t),this._autoLevelCapping=t,this.levelController.checkMaxAutoUpdated())}},{key:"bandwidthEstimate",get:function(){var t=this.abrController.bwEstimator;return t?t.getEstimate():NaN},set:function(t){this.abrController.resetEstimator(t)}},{key:"ttfbEstimate",get:function(){var t=this.abrController.bwEstimator;return t?t.getEstimateTTFB():NaN}},{key:"maxHdcpLevel",get:function(){return this._maxHdcpLevel},set:function(t){(function(t){return He.indexOf(t)>-1})(t)&&this._maxHdcpLevel!==t&&(this._maxHdcpLevel=t,this.levelController.checkMaxAutoUpdated())}},{key:"autoLevelEnabled",get:function(){return-1===this.levelController.manualLevel}},{key:"manualLevel",get:function(){return this.levelController.manualLevel}},{key:"minAutoLevel",get:function(){var t=this.levels,e=this.config.minAutoBitrate;if(!t)return 0;for(var r=t.length,i=0;i=e)return i;return 0}},{key:"maxAutoLevel",get:function(){var t,e=this.levels,r=this.autoLevelCapping,i=this.maxHdcpLevel;if(t=-1===r&&null!=e&&e.length?e.length-1:r,i)for(var n=t;n--;){var a=e[n].attrs["HDCP-LEVEL"];if(a&&a<=i)return n}return t}},{key:"firstAutoLevel",get:function(){return this.abrController.firstAutoLevel}},{key:"nextAutoLevel",get:function(){return this.abrController.nextAutoLevel},set:function(t){this.abrController.nextAutoLevel=t}},{key:"playingDate",get:function(){return this.streamController.currentProgramDateTime}},{key:"mainForwardBufferInfo",get:function(){return this.streamController.getMainFwdBufferInfo()}},{key:"allAudioTracks",get:function(){var t=this.audioTrackController;return t?t.allAudioTracks:[]}},{key:"audioTracks",get:function(){var t=this.audioTrackController;return t?t.audioTracks:[]}},{key:"audioTrack",get:function(){var t=this.audioTrackController;return t?t.audioTrack:-1},set:function(t){var e=this.audioTrackController;e&&(e.audioTrack=t)}},{key:"allSubtitleTracks",get:function(){var t=this.subtitleTrackController;return t?t.allSubtitleTracks:[]}},{key:"subtitleTracks",get:function(){var t=this.subtitleTrackController;return t?t.subtitleTracks:[]}},{key:"subtitleTrack",get:function(){var t=this.subtitleTrackController;return t?t.subtitleTrack:-1},set:function(t){var e=this.subtitleTrackController;e&&(e.subtitleTrack=t)}},{key:"media",get:function(){return this._media}},{key:"subtitleDisplay",get:function(){var t=this.subtitleTrackController;return!!t&&t.subtitleDisplay},set:function(t){var e=this.subtitleTrackController;e&&(e.subtitleDisplay=t)}},{key:"lowLatencyMode",get:function(){return this.config.lowLatencyMode},set:function(t){this.config.lowLatencyMode=t}},{key:"liveSyncPosition",get:function(){return this.latencyController.liveSyncPosition}},{key:"latency",get:function(){return this.latencyController.latency}},{key:"maxLatency",get:function(){return this.latencyController.maxLatency}},{key:"targetLatency",get:function(){return this.latencyController.targetLatency}},{key:"drift",get:function(){return this.latencyController.drift}},{key:"forceStartLoad",get:function(){return this.streamController.forceStartLoad}}],[{key:"version",get:function(){return"1.5.8"}},{key:"Events",get:function(){return E}},{key:"ErrorTypes",get:function(){return T}},{key:"ErrorDetails",get:function(){return S}},{key:"DefaultConfig",get:function(){return t.defaultConfig?t.defaultConfig:As},set:function(e){t.defaultConfig=e}}]),t}();return xs.defaultConfig=void 0,xs},t.exports=i()}(!1)},2236:(t,e,r)=>{"use strict";r.d(e,{A:()=>o});var i=r(7789);const n="oplayer-plugin-hls",a=(t,e,r)=>"hls"===e.format||"m3u8"===e.format||("auto"===e.format||"undefined"===typeof e.format)&&/m3u8(#|\?|$)/i.test(e.src)&&(r||!(Boolean(t.canPlayType("application/x-mpegURL"))||Boolean(t.canPlayType("application/vnd.apple.mpegURL"))));class s{constructor(t){this.key="hls",this.name=n,this.version="1.2.26",this.options={config:{},forceHLS:!1,textControl:!0,audioControl:!0,qualityControl:!0,withBitrate:!1,qualitySwitch:"immediate",matcher:a},Object.assign(this.options,t)}apply(t){return this.player=t,this}async load(t,e){var a;let o=t.$video;const u=this.options,h=u.matcher,d=u.forceHLS,c=u.library;if(!h(o,e,d))return!1;if(s.library||(s.library=c?await(0,i.VD)(c,"Hls"):(await r.e(458).then(r.t.bind(r,837,19))).default),!s.library.isSupported())return!1;const f=this.options,g=f.config,v=f.errorHandler;this.instance=new s.library(g),this.instance.attachMedia(o);const m=this.instance,p=this.player,y=document.createElement("source");return y.setAttribute("src",e.src),y.setAttribute("type",e.type||(e.type="application/x-mpegurl")),y.setAttribute("data-hls",""),o.append(y),m.on(s.library.Events.DESTROYING,(()=>{y.remove()})),m.on(s.library.Events.ERROR,(function(t,e){if(e.fatal)if("mediaError"===e.type)m.recoverMediaError();else v?v(p,e):(p.hasError=!0,p.emit("error",Object.assign({},e,{pluginName:n,message:e.type+": "+(e.reason||e.details)})))})),m.on(s.library.Events.LEVEL_LOADED,((t,e)=>{setTimeout((()=>{p.emit("canplay",e)}))})),m.loadSource(e.src),(null==(a=p.context.ui)?void 0:a.setting)&&l(p,m,this.options),this}unload(){var t;null==(t=this.instance)||t.stopLoad()}destroy(){var t;if(this.instance){const e=this.player,r=this.instance;(null==(t=e.context.ui)?void 0:t.setting)&&u(e),r.destroy()}}}function o(t){return new s(t)}s.library=globalThis.Hls;const l=function(t,e){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const i=t.context.ui;function a(e){const r=e.settings();if(r&&r.length<2)return;const i=e.name,a=e.icon,s=e.onChange;t.context.ui.setting.unregister(n+"-"+i),t.context.ui.setting.register({name:t.locales.get(i),icon:a,onChange:s,type:"selector",key:n+"-"+i,children:r})}r.qualityControl&&(e.once(s.library.Events.LEVEL_LOADED,(()=>{a({icon:i.icons.quality,name:"Quality",settings:()=>e.levels.length>1?e.levels.reduce(((t,i,n)=>{let a=(i.name||i.height).toString();if(isFinite(+a)&&(a+="p"),r.withBitrate){const t=i.bitrate/1e3,e=t>1e3;a+=" ("+(e?(t/1e3).toFixed(2):Math.floor(t))+(e?"m":"k")+"bps)"}return t.push({name:a,default:e.currentLevel==n,value:n}),t}),[{name:t.locales.get("Auto"),default:e.autoLevelEnabled,value:-1}]):[],onChange(t){"immediate"==r.qualitySwitch?(e.currentLevel=t.value,-1!==t.value&&(e.loadLevel=t.value)):(e.nextLevel=t.value,-1!==t.value&&(e.nextLoadLevel=t.value))}})})),e.on(s.library.Events.LEVEL_SWITCHED,(function(r,a){let s=a.level;if(e.autoLevelEnabled){const r=e.levels[s].height,a=t.locales.get("Auto")+(r?" ("+r+"p)":"");i.setting.updateLabel(n+"-Quality",a)}else i.setting.select(n+"-Quality",s+1,!1)}))),r.audioControl&&e.on(s.library.Events.LEVEL_LOADED,(()=>{a({icon:i.icons.lang,name:"Language",settings:()=>e.audioTracks.length>1?e.audioTracks.map((t=>{let r=t.name,i=t.lang,n=t.id;return{name:i||r,default:e.audioTrack==n,value:n}})):[],onChange(t){e.audioTrack=t.value}})})),r.textControl&&e.on(s.library.Events.SUBTITLE_TRACK_LOADED,(()=>{a({icon:i.icons.subtitle,name:"Subtitle",settings:()=>e.subtitleTracks.length>1?e.subtitleTracks.reduce(((t,r)=>{let i=r.name,n=r.lang,a=r.id;return t.push({name:n||i,default:e.subtitleTrack==a,value:a}),t}),[{name:t.locales.get("Off"),default:!e.subtitleDisplay,value:-1}]):[],onChange(t){let r=t.value;(e.subtitleDisplay=!(-1==r))&&(e.subtitleTrack=r)}})}))},u=t=>{["Quality","Language","Subtitle"].forEach((e=>t.context.ui.setting.unregister(n+"-"+e)))}}}]); \ No newline at end of file diff --git a/static/js/markdown-editor.3cad080b.chunk.js b/static/js/markdown-editor.3cad080b.chunk.js deleted file mode 100644 index a3d62482..00000000 --- a/static/js/markdown-editor.3cad080b.chunk.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunk_web_index=self.webpackChunk_web_index||[]).push([[714],{7673:(e,t,n)=>{n.d(t,{Ay:()=>ke});var r=n(3165),i=n(936),o=n(6180),s=n(548),a=n(2553);function l(e){return s.createElement("i",{className:"rmel-iconfont rmel-icon-"+e.type})}function c(e){return s.createElement("div",{className:"rc-md-navigation "+(e.visible?"visible":"in-visible")},s.createElement("div",{className:"navigation-nav left"},s.createElement("div",{className:"button-wrap"},e.left)),s.createElement("div",{className:"navigation-nav right"},s.createElement("div",{className:"button-wrap"},e.right)))}function u(e){return s.createElement("div",{className:"tool-bar",style:e.style},e.children)}var f=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),i=0;i=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function w(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0)for(var a,l=x(n);!(a=l()).done;){var c=a.value;if("undefined"!==typeof s[c]&&!s[c])return!1}else if(s.metaKey||s.ctrlKey||s.shiftKey||s.altKey)return!1;return s.key?s.key===i:s.keyCode===r}function T(e,t){var n=e.split("\n"),r=e.substr(0,t).split("\n"),i=r.length,o=r[r.length-1].length,s=n[r.length-1],a=r.length>1?r[r.length-2]:null,l=n.length>r.length?n[r.length]:null;return{line:i,col:o,beforeText:e.substr(0,t),afterText:e.substr(t),curLine:s,prevLine:a,nextLine:l}}for(var A={bold:["**","**"],italic:["*","*"],underline:["++","++"],strikethrough:["~~","~~"],quote:["\n> ","\n"],inlinecode:["`","`"],code:["\n```\n","\n```\n"]},I=1;I<=6;I++)A["h"+I]=["\n"+E("#",I)+" ","\n"];function N(e){for(var t=e.row,n=void 0===t?2:t,r=e.col,i=void 0===r?2:r,o=["|"],s=["|"],a=["|"],l="",c=1;c<=i;c++)o.push(" Head |"),a.push(" --- |"),s.push(" Data |");for(var u=1;u<=n;u++)l+="\n"+s.join("");return o.join("")+"\n"+a.join("")+l}function M(e,t){var n=t;if("\n"!==n.substr(0,1)&&(n="\n"+n),"unordered"===e)return n.length>1?n.replace(/\n/g,"\n* ").trim():"* ";var r=1;return n.length>1?n.replace(/\n/g,(function(){return"\n"+r+++". "})).trim():"1. "}function O(e,t){return{text:e,newBlock:t,selection:{start:e.length,end:e.length}}}const P=function(e,t,n){if("undefined"!==typeof A[t])return{text:""+A[t][0]+e+A[t][1],selection:{start:A[t][0].length,end:A[t][0].length+e.length}};switch(t){case"tab":var r=1===n.tabMapValue?"\t":" ".repeat(n.tabMapValue),i=r+e.replace(/\n/g,"\n"+r),o=e.includes("\n")?e.match(/\n/g).length:0;return{text:i,selection:{start:n.tabMapValue,end:n.tabMapValue*(o+1)+e.length}};case"unordered":return O(M("unordered",e),!0);case"order":return O(M("order",e),!0);case"hr":return O("---",!0);case"table":return{text:N(n),newBlock:!0};case"image":return{text:"!["+(e||n.target)+"]("+(n.imageUrl||"")+")",selection:{start:2,end:e.length+2}};case"link":return{text:"["+e+"]("+(n.linkUrl||"")+")",selection:{start:1,end:e.length+1}}}return{text:e,selection:{start:0,end:e.length}}};function L(e,t){var n={};return Object.keys(e).forEach((function(r){"undefined"!==typeof t[r]?"object"!==typeof t[r]?n[r]=t[r]:Array.isArray(t[r])?n[r]=[].concat(t[r]):n[r]=L(e[r],t[r]):n[r]=e[r]})),n}function F(e){for(var t=(0,r.A)({},e),n=arguments.length,i=new Array(n>1?n-1:0),o=1;o=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function V(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&f.length>0&&(a="\n"+a,l&&(l.start++,l.end++));var h=c.afterText;n.start!==n.end&&(h=T(this.getMdValue(),n.end).afterText),""!==h.trim()&&"\n\n"!==h.substr(0,2)&&("\n"!==h.substr(0,1)&&(a+="\n"),a+="\n")}this.insertText(a,!0,l)},n.insertPlaceholder=function(e,t){var n=this;this.insertText(e,!0),t.then((function(t){var r=n.getMdValue().replace(e,t);n.setText(r)}))},n.insertText=function(e,t,n){void 0===e&&(e=""),void 0===t&&(t=!1);var r=this.state.text,i=this.getSelection(),o=r.slice(0,i.start),s=r.slice(t?i.end:i.start,r.length);this.setText(o+e+s,void 0,n?{start:n.start+o.length,end:n.end+o.length}:{start:i.start,end:i.start})},n.setText=function(e,t,n){var r=this;void 0===e&&(e="");var i=this.config.onChangeTrigger,o=void 0===i?"both":i,s=e.replace(/\u21b5/g,"\n");if(this.state.text!==e){this.setState({text:s}),!this.props.onChange||"both"!==o&&"beforeRender"!==o||this.props.onChange({text:s,html:this.getHtmlValue()},t),this.emitter.emit(this.emitter.EVENT_CHANGE,e,t,"undefined"===typeof t),n&&setTimeout((function(){return r.setSelection(n)})),this.hasContentChanged||(this.hasContentChanged=!0);var a=this.renderHTML(s);"both"!==o&&"afterRender"!==o||a.then((function(){r.props.onChange&&r.props.onChange({text:r.state.text,html:r.getHtmlValue()},t)}))}},n.getMdValue=function(){return this.state.text},n.getHtmlValue=function(){return"string"===typeof this.state.html?this.state.html:this.nodeMdPreview.current?this.nodeMdPreview.current.getHtml():""},n.onKeyboard=function(e){var t=this;Array.isArray(e)?e.forEach((function(e){return t.onKeyboard(e)})):this.keyboardListeners.includes(e)||this.keyboardListeners.push(e)},n.offKeyboard=function(e){var t=this;if(Array.isArray(e))e.forEach((function(e){return t.offKeyboard(e)}));else{var n=this.keyboardListeners.indexOf(e);n>=0&&this.keyboardListeners.splice(n,1)}},n.handleKeyDown=function(e){for(var t,n=z(this.keyboardListeners);!(t=n()).done;){var r=t.value;if(S(e,r))return e.preventDefault(),void r.callback(e)}this.emitter.emit(this.emitter.EVENT_KEY_DOWN,e)},n.getEventType=function(e){switch(e){case"change":return this.emitter.EVENT_CHANGE;case"fullscreen":return this.emitter.EVENT_FULL_SCREEN;case"viewchange":return this.emitter.EVENT_VIEW_CHANGE;case"keydown":return this.emitter.EVENT_KEY_DOWN;case"editor_keydown":return this.emitter.EVENT_EDITOR_KEY_DOWN;case"blur":return this.emitter.EVENT_BLUR;case"focus":return this.emitter.EVENT_FOCUS;case"scroll":return this.emitter.EVENT_SCROLL}},n.on=function(e,t){var n=this.getEventType(e);n&&this.emitter.on(n,t)},n.off=function(e,t){var n=this.getEventType(e);n&&this.emitter.off(n,t)},n.setView=function(e){var t=this,n=(0,r.A)({},this.state.view,e);this.setState({view:n},(function(){t.emitter.emit(t.emitter.EVENT_VIEW_CHANGE,n)}))},n.getView=function(){return(0,r.A)({},this.state.view)},n.fullScreen=function(e){var t=this;this.state.fullScreen!==e&&this.setState({fullScreen:e},(function(){t.emitter.emit(t.emitter.EVENT_FULL_SCREEN,e)}))},n.registerPluginApi=function(e,t){this.pluginApis.set(e,t)},n.unregisterPluginApi=function(e){this.pluginApis.delete(e)},n.callPluginApi=function(e){var t=this.pluginApis.get(e);if(!t)throw new Error("API "+e+" not found");for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i0&&e.onImageChanged(t.target.files[0])}}))},t}(v);re.pluginName="image";var ie=function(e){function t(t){var n;return(n=e.call(this,t)||this).handleKeyboard={key:"k",keyCode:75,aliasCommand:!0,withKey:["ctrlKey"],callback:function(){return n.editor.insertMarkdown("link")}},n}(0,o.A)(t,e);var n=t.prototype;return n.componentDidMount=function(){this.editorConfig.shortcuts&&this.editor.onKeyboard(this.handleKeyboard)},n.componentWillUnmount=function(){this.editor.offKeyboard(this.handleKeyboard)},n.render=function(){var e=this;return s.createElement("span",{className:"button button-type-link",title:g.get("btnLink"),onClick:function(){return e.editor.insertMarkdown("link")}},s.createElement(l,{type:"link"}))},t}(v);ie.pluginName="link";var oe=function(e){function t(t){var n;return(n=e.call(this,t)||this).handleKeyboard={key:"7",keyCode:55,withKey:["ctrlKey","shiftKey"],aliasCommand:!0,callback:function(){return n.editor.insertMarkdown("order")}},n}(0,o.A)(t,e);var n=t.prototype;return n.componentDidMount=function(){this.editorConfig.shortcuts&&this.editor.onKeyboard(this.handleKeyboard)},n.componentWillUnmount=function(){this.editor.offKeyboard(this.handleKeyboard)},n.render=function(){var e=this;return s.createElement("span",{className:"button button-type-ordered",title:g.get("btnOrdered"),onClick:function(){return e.editor.insertMarkdown("order")}},s.createElement(l,{type:"list-ordered"}))},t}(v);oe.pluginName="list-ordered";var se=function(e){function t(t){var n;return(n=e.call(this,t)||this).handleKeyboard={key:"8",keyCode:56,withKey:["ctrlKey","shiftKey"],aliasCommand:!0,callback:function(){return n.editor.insertMarkdown("unordered")}},n}(0,o.A)(t,e);var n=t.prototype;return n.componentDidMount=function(){this.editorConfig.shortcuts&&this.editor.onKeyboard(this.handleKeyboard)},n.componentWillUnmount=function(){this.editor.offKeyboard(this.handleKeyboard)},n.render=function(){var e=this;return s.createElement("span",{className:"button button-type-unordered",title:g.get("btnUnordered"),onClick:function(){return e.editor.insertMarkdown("unordered")}},s.createElement(l,{type:"list-unordered"}))},t}(v);se.pluginName="list-unordered";const ae=function(){function e(e){void 0===e&&(e={}),this.record=[],this.recycle=[],this.initValue="";var t=e.maxSize,n=void 0===t?100:t;this.maxSize=n}var t=e.prototype;return t.push=function(e){for(var t=this.record.push(e);this.record.length>this.maxSize;)this.record.shift();return t},t.get=function(){return this.record},t.getLast=function(){var e=this.record.length;return this.record[e-1]},t.undo=function(e){var t=this.record.pop();if("undefined"===typeof t)return this.initValue;if(t!==e)return this.recycle.push(t),t;var n=this.record.pop();return"undefined"===typeof n?(this.recycle.push(t),this.initValue):(this.recycle.push(t),n)},t.redo=function(){var e=this.recycle.pop();if("undefined"!==typeof e)return this.push(e),e},t.cleanRedo=function(){this.recycle=[]},t.getUndoCount=function(){return this.undo.length},t.getRedoCount=function(){return this.recycle.length},e}();var le,ce=function(e){function t(t){var n;return(n=e.call(this,t)||this).handleKeyboards=[],n.lastPop=null,n.handleChange=n.handleChange.bind((0,i.A)(n)),n.handleRedo=n.handleRedo.bind((0,i.A)(n)),n.handleUndo=n.handleUndo.bind((0,i.A)(n)),n.handleKeyboards=[{key:"y",keyCode:89,withKey:["ctrlKey"],callback:n.handleRedo},{key:"z",keyCode:90,withKey:["metaKey","shiftKey"],callback:n.handleRedo},{key:"z",keyCode:90,aliasCommand:!0,withKey:["ctrlKey"],callback:n.handleUndo}],n.logger=new ae({maxSize:n.editorConfig.loggerMaxSize}),n.editor.registerPluginApi("undo",n.handleUndo),n.editor.registerPluginApi("redo",n.handleRedo),n}(0,o.A)(t,e);var n=t.prototype;return n.handleUndo=function(){var e=this.logger.undo(this.editor.getMdValue());"undefined"!==typeof e&&(this.pause(),this.lastPop=e,this.editor.setText(e),this.forceUpdate())},n.handleRedo=function(){var e=this.logger.redo();"undefined"!==typeof e&&(this.lastPop=e,this.editor.setText(e),this.forceUpdate())},n.handleChange=function(e,t,n){var r=this;if(this.logger.getLast()!==e&&(null===this.lastPop||this.lastPop!==e)){if(this.logger.cleanRedo(),n)return this.logger.push(e),this.lastPop=null,void this.forceUpdate();this.timerId&&(window.clearTimeout(this.timerId),this.timerId=0),this.timerId=window.setTimeout((function(){r.logger.getLast()!==e&&(r.logger.push(e),r.lastPop=null,r.forceUpdate()),window.clearTimeout(r.timerId),r.timerId=0}),this.editorConfig.loggerInterval)}},n.componentDidMount=function(){var e=this;this.editor.on("change",this.handleChange),this.handleKeyboards.forEach((function(t){return e.editor.onKeyboard(t)})),this.logger.initValue=this.editor.getMdValue(),this.forceUpdate()},n.componentWillUnmount=function(){var e=this;this.timerId&&window.clearTimeout(this.timerId),this.editor.off("change",this.handleChange),this.editor.unregisterPluginApi("undo"),this.editor.unregisterPluginApi("redo"),this.handleKeyboards.forEach((function(t){return e.editor.offKeyboard(t)}))},n.pause=function(){this.timerId&&(window.clearTimeout(this.timerId),this.timerId=void 0)},n.render=function(){var e=this.logger.getUndoCount()>1||this.logger.initValue!==this.editor.getMdValue(),t=this.logger.getRedoCount()>0;return s.createElement(s.Fragment,null,s.createElement("span",{className:"button button-type-undo "+(e?"":"disabled"),title:g.get("btnUndo"),onClick:this.handleUndo},s.createElement(l,{type:"undo"})),s.createElement("span",{className:"button button-type-redo "+(t?"":"disabled"),title:g.get("btnRedo"),onClick:this.handleRedo},s.createElement(l,{type:"redo"})))},t}(v);ce.pluginName="logger",function(e){e[e.SHOW_ALL=0]="SHOW_ALL",e[e.SHOW_MD=1]="SHOW_MD",e[e.SHOW_HTML=2]="SHOW_HTML"}(le||(le={}));var ue=function(e){function t(t){var n;return(n=e.call(this,t)||this).handleClick=n.handleClick.bind((0,i.A)(n)),n.handleChange=n.handleChange.bind((0,i.A)(n)),n.state={view:n.editor.getView()},n}(0,o.A)(t,e);var n=t.prototype;return n.handleClick=function(){switch(this.next){case le.SHOW_ALL:this.editor.setView({html:!0,md:!0});break;case le.SHOW_HTML:this.editor.setView({html:!0,md:!1});break;case le.SHOW_MD:this.editor.setView({html:!1,md:!0})}},n.handleChange=function(e){this.setState({view:e})},n.componentDidMount=function(){this.editor.on("viewchange",this.handleChange)},n.componentWillUnmount=function(){this.editor.off("viewchange",this.handleChange)},n.getDisplayInfo=function(){switch(this.next){case le.SHOW_ALL:return{icon:"view-split",title:"All"};case le.SHOW_HTML:return{icon:"visibility",title:"Preview"};default:return{icon:"keyboard",title:"Editor"}}},n.render=function(){if(this.isDisplay){var e=this.getDisplayInfo();return s.createElement("span",{className:"button button-type-mode",title:g.get("btnMode"+e.title),onClick:this.handleClick},s.createElement(l,{type:e.icon}))}return null},(0,y.A)(t,[{key:"isDisplay",get:function(){var e=this.editorConfig.canView;return!!e&&[e.html,e.md,e.both].filter((function(e){return e})).length>=2}},{key:"next",get:function(){var e=this.editorConfig.canView,t=this.state.view,n=[le.SHOW_ALL,le.SHOW_MD,le.SHOW_HTML];e&&(e.both||n.splice(n.indexOf(le.SHOW_ALL),1),e.md||n.splice(n.indexOf(le.SHOW_MD),1),e.html||n.splice(n.indexOf(le.SHOW_HTML),1));var r=le.SHOW_MD;if(t.html&&(r=le.SHOW_HTML),t.html&&t.md&&(r=le.SHOW_ALL),0===n.length)return r;if(1===n.length)return n[0];var i=n.indexOf(r);return i{},5654:(e,t,n)=>{n.d(t,{d:()=>i});const r={};function i(e,t){const n=t||r;return o(e,"boolean"!==typeof n.includeImageAlt||n.includeImageAlt,"boolean"!==typeof n.includeHtml||n.includeHtml)}function o(e,t,n){if(function(e){return Boolean(e&&"object"===typeof e)}(e)){if("value"in e)return"html"!==e.type||n?e.value:"";if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return s(e.children,t,n)}return Array.isArray(e)?s(e,t,n):""}function s(e,t,n){const r=[];let i=-1;for(;++i{n.d(t,{B:()=>o});var r=n(8498),i=n(2787);const o={tokenize:function(e,t,n){return function(t){return(0,i.On)(t)?(0,r.N)(e,o,"linePrefix")(t):o(t)};function o(e){return null===e||(0,i.HP)(e)?t(e):n(e)}},partial:!0}},8498:(e,t,n)=>{n.d(t,{N:()=>i});var r=n(2787);function i(e,t,n,i){const o=i?i-1:Number.POSITIVE_INFINITY;let s=0;return function(i){if((0,r.On)(i))return e.enter(n),a(i);return t(i)};function a(i){return(0,r.On)(i)&&s++{n.d(t,{BM:()=>a,CW:()=>r,Ee:()=>f,HP:()=>u,JQ:()=>s,Ny:()=>p,On:()=>h,cx:()=>o,es:()=>d,lV:()=>i,ok:()=>l,ol:()=>c});const r=m(/[A-Za-z]/),i=m(/[\dA-Za-z]/),o=m(/[#-'*+\--9=?A-Z^-~]/);function s(e){return null!==e&&(e<32||127===e)}const a=m(/\d/),l=m(/[\dA-Fa-f]/),c=m(/[!-/:-@[-`{-~]/);function u(e){return null!==e&&e<-2}function f(e){return null!==e&&(e<0||32===e)}function h(e){return-2===e||-1===e||32===e}const d=m(/\p{P}|\p{S}/u),p=m(/\s/);function m(e){return function(t){return null!==t&&t>-1&&e.test(String.fromCharCode(t))}}},2792:(e,t,n)=>{function r(e,t,n,r){const i=e.length;let o,s=0;if(t=t<0?-t>i?0:i+t:t>i?i:t,n=n>0?n:0,r.length<1e4)o=Array.from(r),o.unshift(t,n),e.splice(...o);else for(n&&e.splice(t,n);s0?(r(e,e.length,0,t),e):t}n.d(t,{V:()=>i,m:()=>r})},4454:(e,t,n)=>{n.d(t,{S:()=>i});var r=n(2787);function i(e){return null===e||(0,r.Ee)(e)||(0,r.Ny)(e)?1:(0,r.es)(e)?2:void 0}},9110:(e,t,n)=>{n.d(t,{y:()=>o});var r=n(2792);const i={}.hasOwnProperty;function o(e){const t={};let n=-1;for(;++n{function r(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}n.d(t,{B:()=>r})},7820:(e,t,n)=>{function r(e,t,n){const r=[];let i=-1;for(;++ir})},3549:(e,t,n)=>{n.d(t,{A:()=>a});var r=n(3013);const i=(e=[],t,n,r)=>{let o=t;for(;o/,"$2")||""))return;if(r){if(i(e,o,"pre",r))return;return t.value=(t.value||"").replace(/^(\n|\s)+/,""),t}return t.value=(t.value||"").replace(/^(\n|\s)+/,""),t}}},o=({value:e=""})=>{const t=((e="")=>(e.match(/([^?=&]+)(=([^&]*))/g)||[]).reduce(((e,t)=>(e[t.slice(0,t.indexOf("="))]=t.slice(t.indexOf("=")+1),e)),{}))(e.replace(/^/,"$1").replace(/^rehype:/,""));return Object.keys(t).forEach((e=>{"true"===t[e]&&(t[e]=!0),"false"===t[e]&&(t[e]=!1),"string"!==typeof t[e]||/^0/.test(t[e])||isNaN(+t[e])||(t[e]=+t[e])})),t},s=(e,t,n)=>"string"===n?{...e,"data-config":JSON.stringify({...t,rehyp:!0})}:"attr"===n?{...e,...t}:{...e,"data-config":{...t,rehyp:!0}},a=(e={})=>{const{properties:t="data",codeBlockParames:n=!0}=e;return e=>{(0,r.YR)(e,"element",((e,r,a)=>{if(n&&"pre"===e.tagName&&e&&Array.isArray(e.children)&&a&&Array.isArray(a.children)&&a.children.length>1){const n=e.children[0];if(n&&"code"===n.tagName&&"number"===typeof r){const i=((e=[],t)=>{let n=t;for(;n>-1;){if(n--,!e[n])return;if(e[n]&&e[n].value&&""!==e[n].value.replace(/(\n|\s)/g,"")||"text"!==e[n].type){if(!/^rehype:/.test(e[n].value)||"comment"!==e[n].type)return;return e[n]}}})(a.children,r);if(i){const r=o(i);Object.keys(r).length>0&&(e.properties={...e.properties,"data-type":"rehyp"},n.properties=s(n.properties,r,t))}}}if(/^(em|strong|b|a|i|p|pre|kbd|blockquote|h(1|2|3|4|5|6)|code|table|img|del|ul|ol)$/.test(e.tagName)&&a&&Array.isArray(a.children)&&"number"===typeof r){const l=i(a.children,r,"",n);if(l){const n=o(l);Object.keys(n).length>0&&(e.properties=s(e.properties,n,t))}}}))}}},5107:(e,t,n)=>{n.d(t,{A:()=>i});var r=n(5651);function i(e){return function(t,n){return(0,r.l)(t,{...e,file:n})}}},8226:(e,t,n)=>{n.d(t,{A:()=>i});var r=n(898);function i(e){return function(t){return(0,r.a)(t,e)}}},3125:(e,t,n)=>{n.d(t,{A:()=>i});var r=n(8492);function i(e){const t={...this.data("settings"),...e};this.compiler=function(e){return(0,r.V)(e,t)}}},9163:(e,t,n)=>{n.d(t,{A:()=>ot});var r=n(5643),i=n(7807),o=n(2787),s=n(6193),a=n(3878),l=n(7626);function c(e,t,n){const r=n||{},i=(0,l.C)(r.ignore||[]),o=function(e){const t=[];if(!Array.isArray(e))throw new TypeError("Expected find and replace tuple or list of tuples");const n=!e[0]||Array.isArray(e[0])?e:[e];let r=-1;for(;++r0?{type:"text",value:s}:void 0),!1===s?r.lastIndex=n+1:(a!==n&&u.push({type:"text",value:e.value.slice(a,n)}),Array.isArray(s)?u.push(...s):s&&u.push(s),a=n+f[0].length,c=!0),!r.global)break;f=r.exec(e.value)}c?(a?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],i=n.indexOf(")");const o=(0,r.D)(e,"(");let s=(0,r.D)(e,")");for(;-1!==i&&o>s;)e+=n.slice(0,i+1),n=n.slice(i+1),i=n.indexOf(")"),s++;return[e,n]}(n+i);if(!a[0])return!1;const l={type:"link",title:null,url:s+t+a[0],children:[{type:"text",value:t+a[0]}]};return a[1]?[l,{type:"text",value:a[1]}]:l}function w(e,t,n,r){return!(!C(r,!0)||/[-\d_]$/.test(n))&&{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function C(e,t){const n=e.input.charCodeAt(e.index-1);return(0===e.index||(0,o.Ny)(n)||(0,o.es)(n))&&(!t||47!==n)}var E=n(7876);function S(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function T(){this.buffer()}function A(e){const t=this.resume(),n=this.stack[this.stack.length-1];(0,i.ok)("footnoteDefinition"===n.type),n.label=t,n.identifier=(0,E.B)(this.sliceSerialize(e)).toLowerCase()}function I(e){this.exit(e)}function N(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function M(){this.buffer()}function O(e){const t=this.resume(),n=this.stack[this.stack.length-1];(0,i.ok)("footnoteReference"===n.type),n.label=t,n.identifier=(0,E.B)(this.sliceSerialize(e)).toLowerCase()}function P(e){this.exit(e)}function L(e,t,n,r){const i=n.createTracker(r);let o=i.move("[^");const s=n.enter("footnoteReference"),a=n.enter("reference");return o+=i.move(n.safe(n.associationId(e),{...i.current(),before:o,after:"]"})),a(),s(),o+=i.move("]"),o}function F(e,t,n,r){const i=n.createTracker(r);let o=i.move("[^");const s=n.enter("footnoteDefinition"),a=n.enter("label");return o+=i.move(n.safe(n.associationId(e),{...i.current(),before:o,after:"]"})),a(),o+=i.move("]:"+(e.children&&e.children.length>0?" ":"")),i.shift(4),o+=i.move(n.indentLines(n.containerFlow(e,i.current()),D)),s(),o}function D(e,t,n){return 0===t?e:(n?"":" ")+e}L.peek=function(){return"["};const H=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];function _(e){this.enter({type:"delete",children:[]},e)}function z(e){this.exit(e)}function V(e,t,n,r){const i=n.createTracker(r),o=n.enter("strikethrough");let s=i.move("~~");return s+=n.containerPhrasing(e,{...i.current(),before:s,after:"~"}),s+=i.move("~~"),o(),s}function R(e){return e.length}function U(e){const t="string"===typeof e?e.codePointAt(0):0;return 67===t||99===t?99:76===t||108===t?108:82===t||114===t?114:0}function B(e,t,n){return">"+(n?"":" ")+e}function K(e,t,n){if("string"===typeof t&&(t=[t]),!t||0===t.length)return n;let r=-1;for(;++r",...l.current()})),c+=l.move(">")):(a=n.enter("destinationRaw"),c+=l.move(n.safe(e.url,{before:c,after:e.title?" ":")",...l.current()}))),a(),e.title&&(a=n.enter(`title${o}`),c+=l.move(" "+i),c+=l.move(n.safe(e.title,{before:c,after:i,...l.current()})),c+=l.move(i),a()),c+=l.move(")"),s(),c}function X(e,t,n,r){const i=e.referenceType,o=n.enter("imageReference");let s=n.enter("label");const a=n.createTracker(r);let l=a.move("![");const c=n.safe(e.alt,{before:l,after:"]",...a.current()});l+=a.move(c+"]["),s();const u=n.stack;n.stack=[],s=n.enter("reference");const f=n.safe(n.associationId(e),{before:l,after:"]",...a.current()});return s(),n.stack=u,o(),"full"!==i&&c&&c===f?"shortcut"===i?l=l.slice(0,-1):l+=a.move("]"):l+=a.move(f+"]"),l}function ee(e,t,n){let r=e.value||"",i="`",o=-1;for(;new RegExp("(^|[^`])"+i+"([^`]|$)").test(r);)i+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=" "+r+" ");++o\u007F]/.test(e.url))}function ne(e,t,n,r){const i=Q(n),o='"'===i?"Quote":"Apostrophe",s=n.createTracker(r);let a,l;if(te(e,n)){const t=n.stack;n.stack=[],a=n.enter("autolink");let r=s.move("<");return r+=s.move(n.containerPhrasing(e,{before:r,after:">",...s.current()})),r+=s.move(">"),a(),n.stack=t,r}a=n.enter("link"),l=n.enter("label");let c=s.move("[");return c+=s.move(n.containerPhrasing(e,{before:c,after:"](",...s.current()})),c+=s.move("]("),l(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(l=n.enter("destinationLiteral"),c+=s.move("<"),c+=s.move(n.safe(e.url,{before:c,after:">",...s.current()})),c+=s.move(">")):(l=n.enter("destinationRaw"),c+=s.move(n.safe(e.url,{before:c,after:e.title?" ":")",...s.current()}))),l(),e.title&&(l=n.enter(`title${o}`),c+=s.move(" "+i),c+=s.move(n.safe(e.title,{before:c,after:i,...s.current()})),c+=s.move(i),l()),c+=s.move(")"),a(),c}function re(e,t,n,r){const i=e.referenceType,o=n.enter("linkReference");let s=n.enter("label");const a=n.createTracker(r);let l=a.move("[");const c=n.containerPhrasing(e,{before:l,after:"]",...a.current()});l+=a.move(c+"]["),s();const u=n.stack;n.stack=[],s=n.enter("reference");const f=n.safe(n.associationId(e),{before:l,after:"]",...a.current()});return s(),n.stack=u,o(),"full"!==i&&c&&c===f?"shortcut"===i?l=l.slice(0,-1):l+=a.move("]"):l+=a.move(f+"]"),l}function ie(e){const t=e.options.bullet||"*";if("*"!==t&&"+"!==t&&"-"!==t)throw new Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}function oe(e){const t=e.options.rule||"*";if("*"!==t&&"-"!==t&&"_"!==t)throw new Error("Cannot serialize rules with `"+t+"` for `options.rule`, expected `*`, `-`, or `_`");return t}J.peek=function(){return"<"},Z.peek=function(){return"!"},X.peek=function(){return"!"},ee.peek=function(){return"`"},ne.peek=function(e,t,n){return te(e,n)?"<":"["},re.peek=function(){return"["};const se=(0,l.C)(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function ae(e,t,n,r){const i=function(e){const t=e.options.strong||"*";if("*"!==t&&"_"!==t)throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}(n),o=n.enter("strong"),s=n.createTracker(r);let a=s.move(i+i);return a+=s.move(n.containerPhrasing(e,{before:a,after:i,...s.current()})),a+=s.move(i+i),o(),a}ae.peek=function(e,t,n){return n.options.strong||"*"};const le={blockquote:function(e,t,n,r){const i=n.enter("blockquote"),o=n.createTracker(r);o.move("> "),o.shift(2);const s=n.indentLines(n.containerFlow(e,o.current()),B);return i(),s},break:j,code:function(e,t,n,r){const i=function(e){const t=e.options.fence||"`";if("`"!==t&&"~"!==t)throw new Error("Cannot serialize code with `"+t+"` for `options.fence`, expected `` ` `` or `~`");return t}(n),o=e.value||"",s="`"===i?"GraveAccent":"Tilde";if(function(e,t){return Boolean(!1===t.options.fences&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}(e,n)){const e=n.enter("codeIndented"),t=n.indentLines(o,q);return e(),t}const a=n.createTracker(r),l=i.repeat(Math.max((0,W.D)(o,i)+1,3)),c=n.enter("codeFenced");let u=a.move(l);if(e.lang){const t=n.enter(`codeFencedLang${s}`);u+=a.move(n.safe(e.lang,{before:u,after:" ",encode:["`"],...a.current()})),t()}if(e.lang&&e.meta){const t=n.enter(`codeFencedMeta${s}`);u+=a.move(" "),u+=a.move(n.safe(e.meta,{before:u,after:"\n",encode:["`"],...a.current()})),t()}return u+=a.move("\n"),o&&(u+=a.move(o+"\n")),u+=a.move(l),c(),u},definition:function(e,t,n,r){const i=Q(n),o='"'===i?"Quote":"Apostrophe",s=n.enter("definition");let a=n.enter("label");const l=n.createTracker(r);let c=l.move("[");return c+=l.move(n.safe(n.associationId(e),{before:c,after:"]",...l.current()})),c+=l.move("]: "),a(),!e.url||/[\0- \u007F]/.test(e.url)?(a=n.enter("destinationLiteral"),c+=l.move("<"),c+=l.move(n.safe(e.url,{before:c,after:">",...l.current()})),c+=l.move(">")):(a=n.enter("destinationRaw"),c+=l.move(n.safe(e.url,{before:c,after:e.title?" ":"\n",...l.current()}))),a(),e.title&&(a=n.enter(`title${o}`),c+=l.move(" "+i),c+=l.move(n.safe(e.title,{before:c,after:i,...l.current()})),c+=l.move(i),a()),s(),c},emphasis:$,hardBreak:j,heading:function(e,t,n,r){const i=Math.max(Math.min(6,e.depth||1),1),o=n.createTracker(r);if(function(e,t){let n=!1;return(0,Y.YR)(e,(function(e){if("value"in e&&/\r?\n|\r/.test(e.value)||"break"===e.type)return n=!0,a.dc})),Boolean((!e.depth||e.depth<3)&&(0,G.d)(e)&&(t.options.setext||n))}(e,n)){const t=n.enter("headingSetext"),r=n.enter("phrasing"),s=n.containerPhrasing(e,{...o.current(),before:"\n",after:"\n"});return r(),t(),s+"\n"+(1===i?"=":"-").repeat(s.length-(Math.max(s.lastIndexOf("\r"),s.lastIndexOf("\n"))+1))}const s="#".repeat(i),l=n.enter("headingAtx"),c=n.enter("phrasing");o.move(s+" ");let u=n.containerPhrasing(e,{before:"# ",after:"\n",...o.current()});return/^[\t ]/.test(u)&&(u="&#x"+u.charCodeAt(0).toString(16).toUpperCase()+";"+u.slice(1)),u=u?s+" "+u:s,n.options.closeAtx&&(u+=" "+s),c(),l(),u},html:J,image:Z,imageReference:X,inlineCode:ee,link:ne,linkReference:re,list:function(e,t,n,r){const i=n.enter("list"),o=n.bulletCurrent;let s=e.ordered?function(e){const t=e.options.bulletOrdered||".";if("."!==t&&")"!==t)throw new Error("Cannot serialize items with `"+t+"` for `options.bulletOrdered`, expected `.` or `)`");return t}(n):ie(n);const a=e.ordered?"."===s?")":".":function(e){const t=ie(e),n=e.options.bulletOther;if(!n)return"*"===t?"-":"*";if("*"!==n&&"+"!==n&&"-"!==n)throw new Error("Cannot serialize items with `"+n+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(n===t)throw new Error("Expected `bullet` (`"+t+"`) and `bulletOther` (`"+n+"`) to be different");return n}(n);let l=!(!t||!n.bulletLastUsed)&&s===n.bulletLastUsed;if(!e.ordered){const t=e.children?e.children[0]:void 0;if("*"!==s&&"-"!==s||!t||t.children&&t.children[0]||"list"!==n.stack[n.stack.length-1]||"listItem"!==n.stack[n.stack.length-2]||"list"!==n.stack[n.stack.length-3]||"listItem"!==n.stack[n.stack.length-4]||0!==n.indexStack[n.indexStack.length-1]||0!==n.indexStack[n.indexStack.length-2]||0!==n.indexStack[n.indexStack.length-3]||(l=!0),oe(n)===s&&t){let t=-1;for(;++t-1?t.start:1)+(!1===n.options.incrementListMarker?0:t.children.indexOf(e))+o);let s=o.length+1;("tab"===i||"mixed"===i&&(t&&"list"===t.type&&t.spread||e.spread))&&(s=4*Math.ceil(s/4));const a=n.createTracker(r);a.move(o+" ".repeat(s-o.length)),a.shift(s);const l=n.enter("listItem"),c=n.indentLines(n.containerFlow(e,a.current()),(function(e,t,n){if(t)return(n?"":" ".repeat(s))+e;return(n?o:o+" ".repeat(s-o.length))+e}));return l(),c},paragraph:function(e,t,n,r){const i=n.enter("paragraph"),o=n.enter("phrasing"),s=n.containerPhrasing(e,r);return o(),i(),s},root:function(e,t,n,r){return(e.children.some((function(e){return se(e)}))?n.containerPhrasing:n.containerFlow).call(n,e,r)},strong:ae,text:function(e,t,n,r){return n.safe(e.value,r)},thematicBreak:function(e,t,n){const r=(oe(n)+(n.options.ruleSpaces?" ":"")).repeat(function(e){const t=e.options.ruleRepetition||3;if(t<3)throw new Error("Cannot serialize rules with repetition `"+t+"` for `options.ruleRepetition`, expected `3` or more");return t}(n));return n.options.ruleSpaces?r.slice(0,-1):r}};function ce(e){const t=e._align;(0,i.ok)(t,"expected `_align` on table"),this.enter({type:"table",align:t.map((function(e){return"none"===e?null:e})),children:[]},e),this.data.inTable=!0}function ue(e){this.exit(e),this.data.inTable=void 0}function fe(e){this.enter({type:"tableRow",children:[]},e)}function he(e){this.exit(e)}function de(e){this.enter({type:"tableCell",children:[]},e)}function pe(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,me));const n=this.stack[this.stack.length-1];(0,i.ok)("inlineCode"===n.type),n.value=t,this.exit(e)}function me(e,t){return"|"===t?t:e}function ge(e){const t=e||{},n=t.tableCellPadding,r=t.tablePipeAlign,i=t.stringLength,o=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:"\n",inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[\t :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:function(e,t,n){let r=le.inlineCode(e,t,n);n.stack.includes("tableCell")&&(r=r.replace(/\|/g,"\\$&"));return r},table:function(e,t,n,r){return a(function(e,t,n){const r=e.children;let i=-1;const o=[],s=t.enter("table");for(;++il&&(l=e[c].length);++fa[f])&&(a[f]=e)}n.push(o)}o[c]=n,s[c]=i}var u;let f=-1;if("object"===typeof n&&"length"in n)for(;++fa[f]&&(a[f]=o),d[f]=o),h[f]=s}o.splice(1,0,h),s.splice(1,0,d),c=-1;const p=[];for(;++c0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}Ne[43]=Ie,Ne[45]=Ie,Ne[46]=Ie,Ne[95]=Ie,Ne[72]=[Ie,Ae],Ne[104]=[Ie,Ae],Ne[87]=[Ie,Te],Ne[119]=[Ie,Te];var He=n(718),_e=n(8498);const ze={tokenize:function(e,t,n){const r=this;return(0,_e.N)(e,(function(e){const i=r.events[r.events.length-1];return i&&"gfmFootnoteDefinitionIndent"===i[1].type&&4===i[2].sliceSerialize(i[1],!0).length?t(e):n(e)}),"gfmFootnoteDefinitionIndent",5)},partial:!0};function Ve(e,t,n){const r=this;let i=r.events.length;const o=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let s;for(;i--;){const e=r.events[i][1];if("labelImage"===e.type){s=e;break}if("gfmFootnoteCall"===e.type||"labelLink"===e.type||"label"===e.type||"image"===e.type||"link"===e.type)break}return function(i){if(!s||!s._balanced)return n(i);const a=(0,E.B)(r.sliceSerialize({start:s.end,end:r.now()}));if(94!==a.codePointAt(0)||!o.includes(a.slice(1)))return n(i);return e.enter("gfmFootnoteCallLabelMarker"),e.consume(i),e.exit("gfmFootnoteCallLabelMarker"),t(i)}}function Re(e,t){let n,r=e.length;for(;r--;)if("labelImage"===e[r][1].type&&"enter"===e[r][0]){n=e[r][1];break}e[r+1][1].type="data",e[r+3][1].type="gfmFootnoteCallLabelMarker";const i={type:"gfmFootnoteCall",start:Object.assign({},e[r+3][1].start),end:Object.assign({},e[e.length-1][1].end)},o={type:"gfmFootnoteCallMarker",start:Object.assign({},e[r+3][1].end),end:Object.assign({},e[r+3][1].end)};o.end.column++,o.end.offset++,o.end._bufferIndex++;const s={type:"gfmFootnoteCallString",start:Object.assign({},o.end),end:Object.assign({},e[e.length-1][1].start)},a={type:"chunkString",contentType:"string",start:Object.assign({},s.start),end:Object.assign({},s.end)},l=[e[r+1],e[r+2],["enter",i,t],e[r+3],e[r+4],["enter",o,t],["exit",o,t],["enter",s,t],["enter",a,t],["exit",a,t],["exit",s,t],e[e.length-2],e[e.length-1],["exit",i,t]];return e.splice(r,e.length-r+1,...l),e}function Ue(e,t,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let s,a=0;return function(t){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(t),e.exit("gfmFootnoteCallLabelMarker"),l};function l(t){return 94!==t?n(t):(e.enter("gfmFootnoteCallMarker"),e.consume(t),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",c)}function c(l){if(a>999||93===l&&!s||null===l||91===l||(0,o.Ee)(l))return n(l);if(93===l){e.exit("chunkString");const o=e.exit("gfmFootnoteCallString");return i.includes((0,E.B)(r.sliceSerialize(o)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(l),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(l)}return(0,o.Ee)(l)||(s=!0),a++,e.consume(l),92===l?u:c}function u(t){return 91===t||92===t||93===t?(e.consume(t),a++,c):c(t)}}function Be(e,t,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let s,a,l=0;return function(t){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionLabelMarker"),c};function c(t){return 94===t?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",u):n(t)}function u(t){if(l>999||93===t&&!a||null===t||91===t||(0,o.Ee)(t))return n(t);if(93===t){e.exit("chunkString");const n=e.exit("gfmFootnoteDefinitionLabelString");return s=(0,E.B)(r.sliceSerialize(n)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),h}return(0,o.Ee)(t)||(a=!0),l++,e.consume(t),92===t?f:u}function f(t){return 91===t||92===t||93===t?(e.consume(t),l++,u):u(t)}function h(t){return 58===t?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),i.includes(s)||i.push(s),(0,_e.N)(e,d,"gfmFootnoteDefinitionWhitespace")):n(t)}function d(e){return t(e)}}function Ke(e,t,n){return e.check(He.B,t,e.attempt(ze,t,n))}function je(e){e.exit("gfmFootnoteDefinition")}var We=n(2792),qe=n(4454),Qe=n(7820);function $e(e){let t=(e||{}).singleTilde;const n={tokenize:function(e,n,r){const i=this.previous,o=this.events;let s=0;return function(t){if(126===i&&"characterEscape"!==o[o.length-1][1].type)return r(t);return e.enter("strikethroughSequenceTemporary"),a(t)};function a(o){const l=(0,qe.S)(i);if(126===o)return s>1?r(o):(e.consume(o),s++,a);if(s<2&&!t)return r(o);const c=e.exit("strikethroughSequenceTemporary"),u=(0,qe.S)(o);return c._open=!u||2===u&&Boolean(l),c._close=!l||2===l&&Boolean(u),n(o)}},resolveAll:function(e,t){let n=-1;for(;++n0;)t-=1,n.push(e.slice(this.map[t][0]+this.map[t][1]),this.map[t][2]),e.length=this.map[t][0];n.push([...e]),e.length=0;let r=n.pop();for(;r;)e.push(...r),r=n.pop();this.map.length=0}}function Ge(e,t){let n=!1;const r=[];for(;t-1;){const e=r.events[t][1].type;if("lineEnding"!==e&&"linePrefix"!==e)break;t--}const i=t>-1?r.events[t][1].type:null,o="tableHead"===i||"tableRow"===i?x:l;if(o===x&&r.parser.lazy[r.now().line])return n(e);return o(e)};function l(t){return e.enter("tableHead"),e.enter("tableRow"),function(e){if(124===e)return c(e);return i=!0,a+=1,c(e)}(t)}function c(t){return null===t?n(t):(0,o.HP)(t)?a>1?(a=0,r.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),h):n(t):(0,o.On)(t)?(0,_e.N)(e,c,"whitespace")(t):(a+=1,i&&(i=!1,s+=1),124===t?(e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),i=!0,c):(e.enter("data"),u(t)))}function u(t){return null===t||124===t||(0,o.Ee)(t)?(e.exit("data"),c(t)):(e.consume(t),92===t?f:u)}function f(t){return 92===t||124===t?(e.consume(t),u):u(t)}function h(t){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(t):(e.enter("tableDelimiterRow"),i=!1,(0,o.On)(t)?(0,_e.N)(e,d,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):d(t))}function d(t){return 45===t||58===t?m(t):124===t?(i=!0,e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),p):b(t)}function p(t){return(0,o.On)(t)?(0,_e.N)(e,m,"whitespace")(t):m(t)}function m(t){return 58===t?(a+=1,i=!0,e.enter("tableDelimiterMarker"),e.consume(t),e.exit("tableDelimiterMarker"),g):45===t?(a+=1,g(t)):null===t||(0,o.HP)(t)?k(t):b(t)}function g(t){return 45===t?(e.enter("tableDelimiterFiller"),y(t)):b(t)}function y(t){return 45===t?(e.consume(t),y):58===t?(i=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(t),e.exit("tableDelimiterMarker"),v):(e.exit("tableDelimiterFiller"),v(t))}function v(t){return(0,o.On)(t)?(0,_e.N)(e,k,"whitespace")(t):k(t)}function k(n){return 124===n?d(n):(null===n||(0,o.HP)(n))&&i&&s===a?(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(n)):b(n)}function b(e){return n(e)}function x(t){return e.enter("tableRow"),w(t)}function w(n){return 124===n?(e.enter("tableCellDivider"),e.consume(n),e.exit("tableCellDivider"),w):null===n||(0,o.HP)(n)?(e.exit("tableRow"),t(n)):(0,o.On)(n)?(0,_e.N)(e,w,"whitespace")(n):(e.enter("data"),C(n))}function C(t){return null===t||124===t||(0,o.Ee)(t)?(e.exit("data"),w(t)):(e.consume(t),92===t?E:C)}function E(t){return 92===t||124===t?(e.consume(t),C):C(t)}}function Ze(e,t){let n,r,i,o=-1,s=!0,a=0,l=[0,0,0,0],c=[0,0,0,0],u=!1,f=0;const h=new Ye;for(;++on[2]+1){const t=n[2]+1,r=n[3]-n[2]-1;e.add(t,r,[])}}e.add(n[3]+1,0,[["exit",s,t]])}return void 0!==i&&(o.end=Object.assign({},tt(t.events,i)),e.add(i,0,[["exit",o,t]]),o=void 0),o}function et(e,t,n,r,i){const o=[],s=tt(t.events,n);i&&(i.end=Object.assign({},s),o.push(["exit",i,t])),r.end=Object.assign({},s),o.push(["exit",r,t]),e.add(n+1,0,o)}function tt(e,t){const n=e[t],r="enter"===n[0]?"start":"end";return n[1][r]}const nt={tokenize:function(e,t,n){const r=this;return function(t){if(null!==r.previous||!r._gfmTasklistFirstContentOfListItem)return n(t);return e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(t),e.exit("taskListCheckMarker"),i};function i(t){return(0,o.Ee)(t)?(e.enter("taskListCheckValueUnchecked"),e.consume(t),e.exit("taskListCheckValueUnchecked"),s):88===t||120===t?(e.enter("taskListCheckValueChecked"),e.consume(t),e.exit("taskListCheckValueChecked"),s):n(t)}function s(t){return 93===t?(e.enter("taskListCheckMarker"),e.consume(t),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),a):n(t)}function a(r){return(0,o.HP)(r)?t(r):(0,o.On)(r)?e.check({tokenize:rt},t,n)(r):n(r)}}};function rt(e,t,n){return(0,_e.N)(e,(function(e){return null===e?n(e):t(e)}),"whitespace")}const it={};function ot(e){const t=e||it,n=this.data(),r=n.micromarkExtensions||(n.micromarkExtensions=[]),i=n.fromMarkdownExtensions||(n.fromMarkdownExtensions=[]),o=n.toMarkdownExtensions||(n.toMarkdownExtensions=[]);r.push(function(e){return(0,be.y)([{text:Ne},{document:{91:{tokenize:Be,continuation:{tokenize:Ke},exit:je}},text:{91:{tokenize:Ue},93:{add:"after",tokenize:Ve,resolveTo:Re}}},$e(e),{flow:{null:{tokenize:Je,resolveAll:Ze}}},{text:{91:nt}}])}(t)),i.push([{transforms:[b],enter:{literalAutolink:p,literalAutolinkEmail:m,literalAutolinkHttp:m,literalAutolinkWww:m},exit:{literalAutolink:k,literalAutolinkEmail:v,literalAutolinkHttp:g,literalAutolinkWww:y}},{enter:{gfmFootnoteDefinition:S,gfmFootnoteDefinitionLabelString:T,gfmFootnoteCall:N,gfmFootnoteCallString:M},exit:{gfmFootnoteDefinition:I,gfmFootnoteDefinitionLabelString:A,gfmFootnoteCall:P,gfmFootnoteCallString:O}},{canContainEols:["delete"],enter:{strikethrough:_},exit:{strikethrough:z}},{enter:{table:ce,tableData:de,tableHeader:de,tableRow:fe},exit:{codeText:pe,table:ue,tableData:he,tableHeader:he,tableRow:he}},{exit:{taskListCheckValueChecked:ye,taskListCheckValueUnchecked:ye,paragraph:ve}}]),o.push(function(e){return{extensions:[{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:h,notInConstruct:d},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:h,notInConstruct:d},{character:":",before:"[ps]",after:"\\/",inConstruct:h,notInConstruct:d}]},{unsafe:[{character:"[",inConstruct:["phrasing","label","reference"]}],handlers:{footnoteDefinition:F,footnoteReference:L}},{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:H}],handlers:{delete:V}},ge(e),{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:ke}}]}}(t))}},1992:(e,t,n)=>{n.d(t,{A:()=>Fe});var r={};n.r(r),n.d(r,{attentionMarkers:()=>xe,contentInitial:()=>me,disable:()=>we,document:()=>pe,flow:()=>ye,flowInitial:()=>ge,insideSpan:()=>be,string:()=>ve,text:()=>ke});var i=n(5654),o=n(2792);class s{constructor(e){this.left=e?[...e]:[],this.right=[]}get(e){if(e<0||e>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+e+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return ethis.left.length?this.right.slice(this.right.length-n+this.left.length,this.right.length-e+this.left.length).reverse():this.left.slice(e).concat(this.right.slice(this.right.length-n+this.left.length).reverse())}splice(e,t,n){const r=t||0;this.setCursor(Math.trunc(e));const i=this.right.splice(this.right.length-r,Number.POSITIVE_INFINITY);return n&&a(this.left,n),i.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(e){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(e)}pushMany(e){this.setCursor(Number.POSITIVE_INFINITY),a(this.left,e)}unshift(e){this.setCursor(0),this.right.push(e)}unshiftMany(e){this.setCursor(0),a(this.right,e.reverse())}setCursor(e){if(!(e===this.left.length||e>this.left.length&&0===this.right.length||e<0&&0===this.left.length))if(es))return;const n=t.events.length;let i,l,c=n;for(;c--;)if("exit"===t.events[c][0]&&"chunkFlow"===t.events[c][1].type){if(i){l=t.events[c][1].end;break}i=!0}for(b(a),e=n;er;){const r=n[i];t.containerState=r[1],r[0].exit.call(t,e)}n.length=r}function x(){r.write([null]),i=void 0,r=void 0,t.containerState._closeFlow=void 0}}},m={tokenize:function(e,t,n){return(0,f.N)(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}};var g=n(718);const y={tokenize:function(e,t){let n;return function(t){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),r(t)};function r(t){return null===t?i(t):(0,h.HP)(t)?e.check(v,o,i)(t):(e.consume(t),r)}function i(n){return e.exit("chunkContent"),e.exit("content"),t(n)}function o(t){return e.consume(t),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,r}},resolve:function(e){return l(e),e}},v={tokenize:function(e,t,n){const r=this;return function(t){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),(0,f.N)(e,i,"linePrefix")};function i(i){if(null===i||(0,h.HP)(i))return n(i);const o=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&o&&"linePrefix"===o[1].type&&o[2].sliceSerialize(o[1],!0).length>=4?t(i):e.interrupt(r.parser.constructs.flow,n,t)(i)}},partial:!0};const k={tokenize:function(e){const t=this,n=e.attempt(g.B,(function(r){if(null===r)return void e.consume(r);return e.enter("lineEndingBlank"),e.consume(r),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}),e.attempt(this.parser.constructs.flowInitial,r,(0,f.N)(e,e.attempt(this.parser.constructs.flow,r,e.attempt(y,r)),"linePrefix")));return n;function r(r){if(null!==r)return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),t.currentConstruct=void 0,n;e.consume(r)}}};const b={resolveAll:E()},x=C("string"),w=C("text");function C(e){return{tokenize:function(t){const n=this,r=this.parser.constructs[e],i=t.attempt(r,o,s);return o;function o(e){return l(e)?i(e):s(e)}function s(e){if(null!==e)return t.enter("data"),t.consume(e),a;t.consume(e)}function a(e){return l(e)?(t.exit("data"),i(e)):(t.consume(e),a)}function l(e){if(null===e)return!0;const t=r[e];let i=-1;if(t)for(;++i-1){const e=s[0];"string"===typeof e?s[0]=e.slice(r):s.shift()}o>0&&s.push(e[i].slice(0,o))}return s}(a,e)}function g(){const{line:e,column:t,offset:n,_index:i,_bufferIndex:o}=r;return{line:e,column:t,offset:n,_index:i,_bufferIndex:o}}function y(){let e;for(;r._index=3&&(null===o||(0,h.HP)(o))?(e.exit("thematicBreak"),t(o)):n(o)}function s(t){return t===r?(e.consume(t),i++,s):(e.exit("thematicBreakSequence"),(0,h.On)(t)?(0,f.N)(e,o,"whitespace")(t):o(t))}}};const N={name:"list",tokenize:function(e,t,n){const r=this,i=r.events[r.events.length-1];let o=i&&"linePrefix"===i[1].type?i[2].sliceSerialize(i[1],!0).length:0,s=0;return function(t){const i=r.containerState.type||(42===t||43===t||45===t?"listUnordered":"listOrdered");if("listUnordered"===i?!r.containerState.marker||t===r.containerState.marker:(0,h.BM)(t)){if(r.containerState.type||(r.containerState.type=i,e.enter(i,{_container:!0})),"listUnordered"===i)return e.enter("listItemPrefix"),42===t||45===t?e.check(I,n,l)(t):l(t);if(!r.interrupt||49===t)return e.enter("listItemPrefix"),e.enter("listItemValue"),a(t)}return n(t)};function a(t){return(0,h.BM)(t)&&++s<10?(e.consume(t),a):(!r.interrupt||s<2)&&(r.containerState.marker?t===r.containerState.marker:41===t||46===t)?(e.exit("listItemValue"),l(t)):n(t)}function l(t){return e.enter("listItemMarker"),e.consume(t),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||t,e.check(g.B,r.interrupt?n:c,e.attempt(M,f,u))}function c(e){return r.containerState.initialBlankLine=!0,o++,f(e)}function u(t){return(0,h.On)(t)?(e.enter("listItemPrefixWhitespace"),e.consume(t),e.exit("listItemPrefixWhitespace"),f):n(t)}function f(n){return r.containerState.size=o+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(n)}},continuation:{tokenize:function(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(g.B,(function(n){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,(0,f.N)(e,t,"listItemIndent",r.containerState.size+1)(n)}),(function(n){if(r.containerState.furtherBlankLines||!(0,h.On)(n))return r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,i(n);return r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(O,t,i)(n)}));function i(i){return r.containerState._closeFlow=!0,r.interrupt=void 0,(0,f.N)(e,e.attempt(N,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(i)}}},exit:function(e){e.exit(this.containerState.type)}},M={tokenize:function(e,t,n){const r=this;return(0,f.N)(e,(function(e){const i=r.events[r.events.length-1];return!(0,h.On)(e)&&i&&"listItemPrefixWhitespace"===i[1].type?t(e):n(e)}),"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5)},partial:!0},O={tokenize:function(e,t,n){const r=this;return(0,f.N)(e,(function(e){const i=r.events[r.events.length-1];return i&&"listItemIndent"===i[1].type&&i[2].sliceSerialize(i[1],!0).length===r.containerState.size?t(e):n(e)}),"listItemIndent",r.containerState.size+1)},partial:!0};const P={name:"blockQuote",tokenize:function(e,t,n){const r=this;return function(t){if(62===t){const n=r.containerState;return n.open||(e.enter("blockQuote",{_container:!0}),n.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(t),e.exit("blockQuoteMarker"),i}return n(t)};function i(n){return(0,h.On)(n)?(e.enter("blockQuotePrefixWhitespace"),e.consume(n),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(n))}},continuation:{tokenize:function(e,t,n){const r=this;return function(t){if((0,h.On)(t))return(0,f.N)(e,i,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t);return i(t)};function i(r){return e.attempt(P,t,n)(r)}}},exit:function(e){e.exit("blockQuote")}};function L(e,t,n,r,i,o,s,a,l){const c=l||Number.POSITIVE_INFINITY;let u=0;return function(t){if(60===t)return e.enter(r),e.enter(i),e.enter(o),e.consume(t),e.exit(o),f;if(null===t||32===t||41===t||(0,h.JQ)(t))return n(t);return e.enter(r),e.enter(s),e.enter(a),e.enter("chunkString",{contentType:"string"}),m(t)};function f(n){return 62===n?(e.enter(o),e.consume(n),e.exit(o),e.exit(i),e.exit(r),t):(e.enter(a),e.enter("chunkString",{contentType:"string"}),d(n))}function d(t){return 62===t?(e.exit("chunkString"),e.exit(a),f(t)):null===t||60===t||(0,h.HP)(t)?n(t):(e.consume(t),92===t?p:d)}function p(t){return 60===t||62===t||92===t?(e.consume(t),d):d(t)}function m(i){return u||null!==i&&41!==i&&!(0,h.Ee)(i)?u999||null===f||91===f||93===f&&!a||94===f&&!l&&"_hiddenFootnoteSupport"in s.parser.constructs?n(f):93===f?(e.exit(o),e.enter(i),e.consume(f),e.exit(i),e.exit(r),t):(0,h.HP)(f)?(e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),c):(e.enter("chunkString",{contentType:"string"}),u(f))}function u(t){return null===t||91===t||93===t||(0,h.HP)(t)||l++>999?(e.exit("chunkString"),c(t)):(e.consume(t),a||(a=!(0,h.On)(t)),92===t?f:u)}function f(t){return 91===t||92===t||93===t?(e.consume(t),l++,u):u(t)}}function D(e,t,n,r,i,o){let s;return function(t){if(34===t||39===t||40===t)return e.enter(r),e.enter(i),e.consume(t),e.exit(i),s=40===t?41:t,a;return n(t)};function a(n){return n===s?(e.enter(i),e.consume(n),e.exit(i),e.exit(r),t):(e.enter(o),l(n))}function l(t){return t===s?(e.exit(o),a(s)):null===t?n(t):(0,h.HP)(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),(0,f.N)(e,l,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),c(t))}function c(t){return t===s||null===t||(0,h.HP)(t)?(e.exit("chunkString"),l(t)):(e.consume(t),92===t?u:c)}function u(t){return t===s||92===t?(e.consume(t),c):c(t)}}function H(e,t){let n;return function r(i){if((0,h.HP)(i))return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),n=!0,r;if((0,h.On)(i))return(0,f.N)(e,r,n?"linePrefix":"lineSuffix")(i);return t(i)}}var _=n(7876);const z={name:"definition",tokenize:function(e,t,n){const r=this;let i;return function(t){return e.enter("definition"),function(t){return F.call(r,e,o,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(t)}(t)};function o(t){return i=(0,_.B)(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),58===t?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),s):n(t)}function s(t){return(0,h.Ee)(t)?H(e,a)(t):a(t)}function a(t){return L(e,l,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(t)}function l(t){return e.attempt(V,c,c)(t)}function c(t){return(0,h.On)(t)?(0,f.N)(e,u,"whitespace")(t):u(t)}function u(o){return null===o||(0,h.HP)(o)?(e.exit("definition"),r.parser.defined.push(i),t(o)):n(o)}}},V={tokenize:function(e,t,n){return function(t){return(0,h.Ee)(t)?H(e,r)(t):n(t)};function r(t){return D(e,i,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(t)}function i(t){return(0,h.On)(t)?(0,f.N)(e,o,"whitespace")(t):o(t)}function o(e){return null===e||(0,h.HP)(e)?t(e):n(e)}},partial:!0};const R={name:"codeIndented",tokenize:function(e,t,n){const r=this;return function(t){return e.enter("codeIndented"),(0,f.N)(e,i,"linePrefix",5)(t)};function i(e){const t=r.events[r.events.length-1];return t&&"linePrefix"===t[1].type&&t[2].sliceSerialize(t[1],!0).length>=4?o(e):n(e)}function o(t){return null===t?a(t):(0,h.HP)(t)?e.attempt(U,o,a)(t):(e.enter("codeFlowValue"),s(t))}function s(t){return null===t||(0,h.HP)(t)?(e.exit("codeFlowValue"),o(t)):(e.consume(t),s)}function a(n){return e.exit("codeIndented"),t(n)}}},U={tokenize:function(e,t,n){const r=this;return i;function i(t){return r.parser.lazy[r.now().line]?n(t):(0,h.HP)(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),i):(0,f.N)(e,o,"linePrefix",5)(t)}function o(e){const o=r.events[r.events.length-1];return o&&"linePrefix"===o[1].type&&o[2].sliceSerialize(o[1],!0).length>=4?t(e):(0,h.HP)(e)?i(e):n(e)}},partial:!0};const B={name:"headingAtx",tokenize:function(e,t,n){let r=0;return function(t){return e.enter("atxHeading"),function(t){return e.enter("atxHeadingSequence"),i(t)}(t)};function i(t){return 35===t&&r++<6?(e.consume(t),i):null===t||(0,h.Ee)(t)?(e.exit("atxHeadingSequence"),o(t)):n(t)}function o(n){return 35===n?(e.enter("atxHeadingSequence"),s(n)):null===n||(0,h.HP)(n)?(e.exit("atxHeading"),t(n)):(0,h.On)(n)?(0,f.N)(e,o,"whitespace")(n):(e.enter("atxHeadingText"),a(n))}function s(t){return 35===t?(e.consume(t),s):(e.exit("atxHeadingSequence"),o(t))}function a(t){return null===t||35===t||(0,h.Ee)(t)?(e.exit("atxHeadingText"),o(t)):(e.consume(t),a)}},resolve:function(e,t){let n,r,i=e.length-2,s=3;"whitespace"===e[s][1].type&&(s+=2);i-2>s&&"whitespace"===e[i][1].type&&(i-=2);"atxHeadingSequence"===e[i][1].type&&(s===i-1||i-4>s&&"whitespace"===e[i-2][1].type)&&(i-=s+1===i?2:4);i>s&&(n={type:"atxHeadingText",start:e[s][1].start,end:e[i][1].end},r={type:"chunkText",start:e[s][1].start,end:e[i][1].end,contentType:"text"},(0,o.m)(e,s,i-s+1,[["enter",n,t],["enter",r,t],["exit",r,t],["exit",n,t]]));return e}};const K={name:"setextUnderline",tokenize:function(e,t,n){const r=this;let i;return function(t){let s,a=r.events.length;for(;a--;)if("lineEnding"!==r.events[a][1].type&&"linePrefix"!==r.events[a][1].type&&"content"!==r.events[a][1].type){s="paragraph"===r.events[a][1].type;break}if(!r.parser.lazy[r.now().line]&&(r.interrupt||s))return e.enter("setextHeadingLine"),i=t,function(t){return e.enter("setextHeadingLineSequence"),o(t)}(t);return n(t)};function o(t){return t===i?(e.consume(t),o):(e.exit("setextHeadingLineSequence"),(0,h.On)(t)?(0,f.N)(e,s,"lineSuffix")(t):s(t))}function s(r){return null===r||(0,h.HP)(r)?(e.exit("setextHeadingLine"),t(r)):n(r)}},resolveTo:function(e,t){let n,r,i,o=e.length;for(;o--;)if("enter"===e[o][0]){if("content"===e[o][1].type){n=o;break}"paragraph"===e[o][1].type&&(r=o)}else"content"===e[o][1].type&&e.splice(o,1),i||"definition"!==e[o][1].type||(i=o);const s={type:"setextHeading",start:Object.assign({},e[r][1].start),end:Object.assign({},e[e.length-1][1].end)};e[r][1].type="setextHeadingText",i?(e.splice(r,0,["enter",s,t]),e.splice(i+1,0,["exit",e[n][1],t]),e[n][1].end=Object.assign({},e[i][1].end)):e[n][1]=s;return e.push(["exit",s,t]),e}};const j=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],W=["pre","script","style","textarea"],q={name:"htmlFlow",tokenize:function(e,t,n){const r=this;let i,o,s,a,l;return function(t){return function(t){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(t),c}(t)};function c(a){return 33===a?(e.consume(a),u):47===a?(e.consume(a),o=!0,p):63===a?(e.consume(a),i=3,r.interrupt?t:D):(0,h.CW)(a)?(e.consume(a),s=String.fromCharCode(a),m):n(a)}function u(o){return 45===o?(e.consume(o),i=2,f):91===o?(e.consume(o),i=5,a=0,d):(0,h.CW)(o)?(e.consume(o),i=4,r.interrupt?t:D):n(o)}function f(i){return 45===i?(e.consume(i),r.interrupt?t:D):n(i)}function d(i){const o="CDATA[";return i===o.charCodeAt(a++)?(e.consume(i),6===a?r.interrupt?t:A:d):n(i)}function p(t){return(0,h.CW)(t)?(e.consume(t),s=String.fromCharCode(t),m):n(t)}function m(a){if(null===a||47===a||62===a||(0,h.Ee)(a)){const l=47===a,c=s.toLowerCase();return l||o||!W.includes(c)?j.includes(s.toLowerCase())?(i=6,l?(e.consume(a),g):r.interrupt?t(a):A(a)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(a):o?y(a):v(a)):(i=1,r.interrupt?t(a):A(a))}return 45===a||(0,h.lV)(a)?(e.consume(a),s+=String.fromCharCode(a),m):n(a)}function g(i){return 62===i?(e.consume(i),r.interrupt?t:A):n(i)}function y(t){return(0,h.On)(t)?(e.consume(t),y):S(t)}function v(t){return 47===t?(e.consume(t),S):58===t||95===t||(0,h.CW)(t)?(e.consume(t),k):(0,h.On)(t)?(e.consume(t),v):S(t)}function k(t){return 45===t||46===t||58===t||95===t||(0,h.lV)(t)?(e.consume(t),k):b(t)}function b(t){return 61===t?(e.consume(t),x):(0,h.On)(t)?(e.consume(t),b):v(t)}function x(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),l=t,w):(0,h.On)(t)?(e.consume(t),x):C(t)}function w(t){return t===l?(e.consume(t),l=null,E):null===t||(0,h.HP)(t)?n(t):(e.consume(t),w)}function C(t){return null===t||34===t||39===t||47===t||60===t||61===t||62===t||96===t||(0,h.Ee)(t)?b(t):(e.consume(t),C)}function E(e){return 47===e||62===e||(0,h.On)(e)?v(e):n(e)}function S(t){return 62===t?(e.consume(t),T):n(t)}function T(t){return null===t||(0,h.HP)(t)?A(t):(0,h.On)(t)?(e.consume(t),T):n(t)}function A(t){return 45===t&&2===i?(e.consume(t),O):60===t&&1===i?(e.consume(t),P):62===t&&4===i?(e.consume(t),H):63===t&&3===i?(e.consume(t),D):93===t&&5===i?(e.consume(t),F):!(0,h.HP)(t)||6!==i&&7!==i?null===t||(0,h.HP)(t)?(e.exit("htmlFlowData"),I(t)):(e.consume(t),A):(e.exit("htmlFlowData"),e.check(Q,_,I)(t))}function I(t){return e.check($,N,_)(t)}function N(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),M}function M(t){return null===t||(0,h.HP)(t)?I(t):(e.enter("htmlFlowData"),A(t))}function O(t){return 45===t?(e.consume(t),D):A(t)}function P(t){return 47===t?(e.consume(t),s="",L):A(t)}function L(t){if(62===t){const n=s.toLowerCase();return W.includes(n)?(e.consume(t),H):A(t)}return(0,h.CW)(t)&&s.length<8?(e.consume(t),s+=String.fromCharCode(t),L):A(t)}function F(t){return 93===t?(e.consume(t),D):A(t)}function D(t){return 62===t?(e.consume(t),H):45===t&&2===i?(e.consume(t),D):A(t)}function H(t){return null===t||(0,h.HP)(t)?(e.exit("htmlFlowData"),_(t)):(e.consume(t),H)}function _(n){return e.exit("htmlFlow"),t(n)}},resolveTo:function(e){let t=e.length;for(;t--&&("enter"!==e[t][0]||"htmlFlow"!==e[t][1].type););t>1&&"linePrefix"===e[t-2][1].type&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2));return e},concrete:!0},Q={tokenize:function(e,t,n){return function(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),e.attempt(g.B,t,n)}},partial:!0},$={tokenize:function(e,t,n){const r=this;return function(t){if((0,h.HP)(t))return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),i;return n(t)};function i(e){return r.parser.lazy[r.now().line]?n(e):t(e)}},partial:!0};const Y={tokenize:function(e,t,n){const r=this;return function(t){if(null===t)return n(t);return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),i};function i(e){return r.parser.lazy[r.now().line]?n(e):t(e)}},partial:!0},G={name:"codeFenced",tokenize:function(e,t,n){const r=this,i={tokenize:function(e,t,n){let i=0;return s;function s(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),l}function l(t){return e.enter("codeFencedFence"),(0,h.On)(t)?(0,f.N)(e,c,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):c(t)}function c(t){return t===o?(e.enter("codeFencedFenceSequence"),u(t)):n(t)}function u(t){return t===o?(i++,e.consume(t),u):i>=a?(e.exit("codeFencedFenceSequence"),(0,h.On)(t)?(0,f.N)(e,d,"whitespace")(t):d(t)):n(t)}function d(r){return null===r||(0,h.HP)(r)?(e.exit("codeFencedFence"),t(r)):n(r)}},partial:!0};let o,s=0,a=0;return function(t){return function(t){const n=r.events[r.events.length-1];return s=n&&"linePrefix"===n[1].type?n[2].sliceSerialize(n[1],!0).length:0,o=t,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),l(t)}(t)};function l(t){return t===o?(a++,e.consume(t),l):a<3?n(t):(e.exit("codeFencedFenceSequence"),(0,h.On)(t)?(0,f.N)(e,c,"whitespace")(t):c(t))}function c(n){return null===n||(0,h.HP)(n)?(e.exit("codeFencedFence"),r.interrupt?t(n):e.check(Y,m,b)(n)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),u(n))}function u(t){return null===t||(0,h.HP)(t)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),c(t)):(0,h.On)(t)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),(0,f.N)(e,d,"whitespace")(t)):96===t&&t===o?n(t):(e.consume(t),u)}function d(t){return null===t||(0,h.HP)(t)?c(t):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),p(t))}function p(t){return null===t||(0,h.HP)(t)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),c(t)):96===t&&t===o?n(t):(e.consume(t),p)}function m(t){return e.attempt(i,b,g)(t)}function g(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),y}function y(t){return s>0&&(0,h.On)(t)?(0,f.N)(e,v,"linePrefix",s+1)(t):v(t)}function v(t){return null===t||(0,h.HP)(t)?e.check(Y,m,b)(t):(e.enter("codeFlowValue"),k(t))}function k(t){return null===t||(0,h.HP)(t)?(e.exit("codeFlowValue"),v(t)):(e.consume(t),k)}function b(n){return e.exit("codeFenced"),t(n)}},concrete:!0};var J=n(3625);const Z={name:"characterReference",tokenize:function(e,t,n){const r=this;let i,o,s=0;return function(t){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(t),e.exit("characterReferenceMarker"),a};function a(t){return 35===t?(e.enter("characterReferenceMarkerNumeric"),e.consume(t),e.exit("characterReferenceMarkerNumeric"),l):(e.enter("characterReferenceValue"),i=31,o=h.lV,c(t))}function l(t){return 88===t||120===t?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(t),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),i=6,o=h.ok,c):(e.enter("characterReferenceValue"),i=7,o=h.BM,c(t))}function c(a){if(59===a&&s){const i=e.exit("characterReferenceValue");return o!==h.lV||(0,J.s)(r.sliceSerialize(i))?(e.enter("characterReferenceMarker"),e.consume(a),e.exit("characterReferenceMarker"),e.exit("characterReference"),t):n(a)}return o(a)&&s++1&&e[f][1].end.offset-e[f][1].start.offset>1?2:1;const h=Object.assign({},e[n][1].end),d=Object.assign({},e[f][1].start);le(h,-l),le(d,l),s={type:l>1?"strongSequence":"emphasisSequence",start:h,end:Object.assign({},e[n][1].end)},a={type:l>1?"strongSequence":"emphasisSequence",start:Object.assign({},e[f][1].start),end:d},i={type:l>1?"strongText":"emphasisText",start:Object.assign({},e[n][1].end),end:Object.assign({},e[f][1].start)},r={type:l>1?"strong":"emphasis",start:Object.assign({},s.start),end:Object.assign({},a.end)},e[n][1].end=Object.assign({},s.start),e[f][1].start=Object.assign({},a.end),c=[],e[n][1].end.offset-e[n][1].start.offset&&(c=(0,o.V)(c,[["enter",e[n][1],t],["exit",e[n][1],t]])),c=(0,o.V)(c,[["enter",r,t],["enter",s,t],["exit",s,t],["enter",i,t]]),c=(0,o.V)(c,(0,T.W)(t.parser.constructs.insideSpan.null,e.slice(n+1,f),t)),c=(0,o.V)(c,[["exit",i,t],["enter",a,t],["exit",a,t],["exit",r,t]]),e[f][1].end.offset-e[f][1].start.offset?(u=2,c=(0,o.V)(c,[["enter",e[f][1],t],["exit",e[f][1],t]])):u=0,(0,o.m)(e,n-1,f-n+3,c),f=n+c.length-u-2;break}f=-1;for(;++f13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||65535===(65535&n)||65534===(65535&n)||n>1114111?"\ufffd":String.fromCodePoint(n)}const Se=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function Te(e,t,n){if(t)return t;if(35===n.charCodeAt(0)){const e=n.charCodeAt(1),t=120===e||88===e;return Ee(n.slice(t?2:1),t?16:10)}return(0,J.s)(n)||e}var Ae=n(6014);const Ie={}.hasOwnProperty;function Ne(e,t,n){return"string"!==typeof t&&(n=t,t=void 0),function(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:s(re),autolinkProtocol:T,autolinkEmail:T,atxHeading:s(X),blockQuote:s(Q),characterEscape:T,characterReference:T,codeFenced:s($),codeFencedFenceInfo:a,codeFencedFenceMeta:a,codeIndented:s($,a),codeText:s(Y,a),codeTextData:T,data:T,codeFlowValue:T,definition:s(G),definitionDestinationString:a,definitionLabelString:a,definitionTitleString:a,emphasis:s(Z),hardBreakEscape:s(ee),hardBreakTrailing:s(ee),htmlFlow:s(te,a),htmlFlowData:T,htmlText:s(te,a),htmlTextData:T,image:s(ne),label:a,link:s(re),listItem:s(oe),listItemValue:d,listOrdered:s(ie,h),listUnordered:s(ie),paragraph:s(se),reference:U,referenceString:a,resourceDestinationString:a,resourceTitleString:a,setextHeading:s(X),strong:s(ae),thematicBreak:s(ce)},exit:{atxHeading:c(),atxHeadingSequence:w,autolink:c(),autolinkEmail:q,autolinkProtocol:W,blockQuote:c(),characterEscapeValue:A,characterReferenceMarkerHexadecimal:K,characterReferenceMarkerNumeric:K,characterReferenceValue:j,codeFenced:c(y),codeFencedFence:g,codeFencedFenceInfo:p,codeFencedFenceMeta:m,codeFlowValue:A,codeIndented:c(v),codeText:c(P),codeTextData:A,data:A,definition:c(),definitionDestinationString:x,definitionLabelString:k,definitionTitleString:b,emphasis:c(),hardBreakEscape:c(N),hardBreakTrailing:c(N),htmlFlow:c(M),htmlFlowData:A,htmlText:c(O),htmlTextData:A,image:c(F),label:H,labelText:D,lineEnding:I,link:c(L),listItem:c(),listOrdered:c(),listUnordered:c(),paragraph:c(),referenceString:B,resourceDestinationString:z,resourceTitleString:V,resource:R,setextHeading:c(S),setextHeadingLineSequence:E,setextHeadingText:C,strong:c(),thematicBreak:c()}};Oe(t,(e||{}).mdastExtensions||[]);const n={};return r;function r(e){let r={type:"root",children:[]};const i={stack:[r],tokenStack:[],config:t,enter:l,exit:u,buffer:a,resume:f,data:n},s=[];let c=-1;for(;++c0){const e=i.tokenStack[i.tokenStack.length-1];(e[1]||Le).call(i,void 0,e[0])}for(r.position={start:Me(e.length>0?e[0][1].start:{line:1,column:1,offset:0}),end:Me(e.length>0?e[e.length-2][1].end:{line:1,column:1,offset:0})},c=-1;++c{n.d(t,{A:()=>E});var r=n(7807),i=n(2675),o=n(2787);function s(e){const t=[];let n=-1,r=0,i=0;for(;++n55295&&s<57344){const t=e.charCodeAt(n+1);s<56320&&t>56319&&t<57344?(a=String.fromCharCode(s,t),i=1):a="\ufffd"}else a=String.fromCharCode(s);a&&(t.push(e.slice(r,n),encodeURIComponent(a)),r=n+i+1,a=""),i&&(n+=i,i=0)}return t.join("")+e.slice(r)}function a(e,t){const n=[{type:"text",value:"\u21a9"}];return t>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),n}function l(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}var c=n(3013),u=n(2571);function f(e,t){const n=t.referenceType;let r="]";if("collapsed"===n?r+="[]":"full"===n&&(r+="["+(t.label||t.identifier)+"]"),"imageReference"===t.type)return[{type:"text",value:"!["+t.alt+r}];const i=e.all(t),o=i[0];o&&"text"===o.type?o.value="["+o.value:i.unshift({type:"text",value:"["});const s=i[i.length-1];return s&&"text"===s.type?s.value+=r:i.push({type:"text",value:r}),i}function h(e){const t=e.spread;return null===t||void 0===t?e.children.length>1:t}var d=n(7724);const p={blockquote:function(e,t){const n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)},break:function(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:"\n"}]},code:function(e,t){const n=t.value?t.value+"\n":"",r={};t.lang&&(r.className=["language-"+t.lang]);let i={type:"element",tagName:"code",properties:r,children:[{type:"text",value:n}]};return t.meta&&(i.data={meta:t.meta}),e.patch(t,i),i=e.applyData(t,i),i={type:"element",tagName:"pre",properties:{},children:[i]},e.patch(t,i),i},delete:function(e,t){const n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},emphasis:function(e,t){const n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},footnoteReference:function(e,t){const n="string"===typeof e.options.clobberPrefix?e.options.clobberPrefix:"user-content-",r=String(t.identifier).toUpperCase(),i=s(r.toLowerCase()),o=e.footnoteOrder.indexOf(r);let a,l=e.footnoteCounts.get(r);void 0===l?(l=0,e.footnoteOrder.push(r),a=e.footnoteOrder.length):a=o+1,l+=1,e.footnoteCounts.set(r,l);const c={type:"element",tagName:"a",properties:{href:"#"+n+"fn-"+i,id:n+"fnref-"+i+(l>1?"-"+l:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(a)}]};e.patch(t,c);const u={type:"element",tagName:"sup",properties:{},children:[c]};return e.patch(t,u),e.applyData(t,u)},heading:function(e,t){const n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},html:function(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}},imageReference:function(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return f(e,t);const i={src:s(r.url||""),alt:t.alt};null!==r.title&&void 0!==r.title&&(i.title=r.title);const o={type:"element",tagName:"img",properties:i,children:[]};return e.patch(t,o),e.applyData(t,o)},image:function(e,t){const n={src:s(t.url)};null!==t.alt&&void 0!==t.alt&&(n.alt=t.alt),null!==t.title&&void 0!==t.title&&(n.title=t.title);const r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)},inlineCode:function(e,t){const n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);const r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)},linkReference:function(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return f(e,t);const i={href:s(r.url||"")};null!==r.title&&void 0!==r.title&&(i.title=r.title);const o={type:"element",tagName:"a",properties:i,children:e.all(t)};return e.patch(t,o),e.applyData(t,o)},link:function(e,t){const n={href:s(t.url)};null!==t.title&&void 0!==t.title&&(n.title=t.title);const r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)},listItem:function(e,t,n){const r=e.all(t),i=n?function(e){let t=!1;if("list"===e.type){t=e.spread||!1;const n=e.children;let r=-1;for(;!t&&++r0&&n.children.unshift({type:"text",value:" "}),n.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),o.className=["task-list-item"]}let a=-1;for(;++a0){const r={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},o=(0,u.PW)(t.children[1]),s=(0,u.Y)(t.children[t.children.length-1]);o&&s&&(r.position={start:o,end:s}),i.push(r)}const o={type:"element",tagName:"table",properties:{},children:e.wrap(i,!0)};return e.patch(t,o),e.applyData(t,o)},tableCell:function(e,t){const n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},tableRow:function(e,t,n){const r=n?n.children:void 0,i=0===(r?r.indexOf(t):1)?"th":"td",o=n&&"table"===n.type?n.align:void 0,s=o?o.length:t.children.length;let a=-1;const l=[];for(;++a0&&n.push({type:"text",value:"\n"}),n}function w(e){let t=0,n=e.charCodeAt(t);for(;9===n||32===n;)t++,n=e.charCodeAt(t);return e.slice(t)}function C(e,t){const n=function(e,t){const n=t||y,r=new Map,o=new Map,s=new Map,a={...p,...n.handlers},l={all:function(e){const t=[];if("children"in e){const n=e.children;let r=-1;for(;++r0&&u.push({type:"text",value:" "});let e="string"===typeof n?n:n(h,c);"string"===typeof e&&(e={type:"text",value:e}),u.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+l+(c>1?"-"+c:""),dataFootnoteBackref:"",ariaLabel:"string"===typeof r?r:r(h,c),className:["data-footnote-backref"]},children:Array.isArray(e)?e:[e]})}const p=o[o.length-1];if(p&&"element"===p.type&&"p"===p.tagName){const e=p.children[p.children.length-1];e&&"text"===e.type?e.value+=" ":p.children.push({type:"text",value:" "}),p.children.push(...u)}else o.push(...u);const m={type:"element",tagName:"li",properties:{id:t+"fn-"+l},children:e.wrap(o,!0)};e.patch(i,m),f.push(m)}if(0!==f.length)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:c,properties:{...(0,i.Ay)(u),id:"footnote-label"},children:[{type:"text",value:o}]},{type:"text",value:"\n"},{type:"element",tagName:"ol",properties:{},children:e.wrap(f,!0)},{type:"text",value:"\n"}]}}(n),f=Array.isArray(o)?{type:"root",children:o}:o||{type:"root",children:[]};return u&&((0,r.ok)("children"in f),f.children.push({type:"text",value:"\n"},u)),f}function E(e,t){return e&&"run"in e?async function(n,r){const i=C(n,{file:r,...t});await e.run(i,r)}:function(n,r){return C(n,{file:r,...t||e})}}},4041:(e,t,n)=>{n.d(t,{l:()=>h});var r=n(8614),i=n(6636),o=n(7807),s=n(3401),a=n(345),l=n(1977);const c=function(e){const t=this.constructor.prototype,n=t[e],r=function(){return n.apply(r,arguments)};Object.setPrototypeOf(r,t);const i=Object.getOwnPropertyNames(n);for(const o of i){const e=Object.getOwnPropertyDescriptor(n,o);e&&Object.defineProperty(r,o,e)}return r},u={}.hasOwnProperty;class f extends c{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=(0,a.S)()}copy(){const e=new f;let t=-1;for(;++t0){let[r,...a]=t;const l=n[o][1];(0,s.A)(l)&&(0,s.A)(r)&&(r=i(!0,l,r)),n[o]=[e,r,...a]}}}}const h=(new f).freeze();function d(e,t){if("function"!==typeof t)throw new TypeError("Cannot `"+e+"` without `parser`")}function p(e,t){if("function"!==typeof t)throw new TypeError("Cannot `"+e+"` without `compiler`")}function m(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function g(e){if(!(0,s.A)(e)||"string"!==typeof e.type)throw new TypeError("Expected node, got `"+e+"`")}function y(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function v(e){return function(e){return Boolean(e&&"object"===typeof e&&"message"in e&&"messages"in e)}(e)?e:new l.T(e)}}}]); \ No newline at end of file diff --git a/static/js/markdown-editor.c53afd16.chunk.js b/static/js/markdown-editor.c53afd16.chunk.js new file mode 100644 index 00000000..8a076c3c --- /dev/null +++ b/static/js/markdown-editor.c53afd16.chunk.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk_web_index=self.webpackChunk_web_index||[]).push([[714],{5277:(e,t,n)=>{n.d(t,{Ay:()=>ke});var r=n(9993),i=n(6620),o=n(8698),s=n(1394),a=n(162);function l(e){return s.createElement("i",{className:"rmel-iconfont rmel-icon-"+e.type})}function c(e){return s.createElement("div",{className:"rc-md-navigation "+(e.visible?"visible":"in-visible")},s.createElement("div",{className:"navigation-nav left"},s.createElement("div",{className:"button-wrap"},e.left)),s.createElement("div",{className:"navigation-nav right"},s.createElement("div",{className:"button-wrap"},e.right)))}function u(e){return s.createElement("div",{className:"tool-bar",style:e.style},e.children)}var f=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),i=0;i=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function w(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0)for(var a,l=x(n);!(a=l()).done;){var c=a.value;if("undefined"!==typeof s[c]&&!s[c])return!1}else if(s.metaKey||s.ctrlKey||s.shiftKey||s.altKey)return!1;return s.key?s.key===i:s.keyCode===r}function T(e,t){var n=e.split("\n"),r=e.substr(0,t).split("\n"),i=r.length,o=r[r.length-1].length,s=n[r.length-1],a=r.length>1?r[r.length-2]:null,l=n.length>r.length?n[r.length]:null;return{line:i,col:o,beforeText:e.substr(0,t),afterText:e.substr(t),curLine:s,prevLine:a,nextLine:l}}for(var A={bold:["**","**"],italic:["*","*"],underline:["++","++"],strikethrough:["~~","~~"],quote:["\n> ","\n"],inlinecode:["`","`"],code:["\n```\n","\n```\n"]},I=1;I<=6;I++)A["h"+I]=["\n"+E("#",I)+" ","\n"];function N(e){for(var t=e.row,n=void 0===t?2:t,r=e.col,i=void 0===r?2:r,o=["|"],s=["|"],a=["|"],l="",c=1;c<=i;c++)o.push(" Head |"),a.push(" --- |"),s.push(" Data |");for(var u=1;u<=n;u++)l+="\n"+s.join("");return o.join("")+"\n"+a.join("")+l}function M(e,t){var n=t;if("\n"!==n.substr(0,1)&&(n="\n"+n),"unordered"===e)return n.length>1?n.replace(/\n/g,"\n* ").trim():"* ";var r=1;return n.length>1?n.replace(/\n/g,(function(){return"\n"+r+++". "})).trim():"1. "}function O(e,t){return{text:e,newBlock:t,selection:{start:e.length,end:e.length}}}const P=function(e,t,n){if("undefined"!==typeof A[t])return{text:""+A[t][0]+e+A[t][1],selection:{start:A[t][0].length,end:A[t][0].length+e.length}};switch(t){case"tab":var r=1===n.tabMapValue?"\t":" ".repeat(n.tabMapValue),i=r+e.replace(/\n/g,"\n"+r),o=e.includes("\n")?e.match(/\n/g).length:0;return{text:i,selection:{start:n.tabMapValue,end:n.tabMapValue*(o+1)+e.length}};case"unordered":return O(M("unordered",e),!0);case"order":return O(M("order",e),!0);case"hr":return O("---",!0);case"table":return{text:N(n),newBlock:!0};case"image":return{text:"!["+(e||n.target)+"]("+(n.imageUrl||"")+")",selection:{start:2,end:e.length+2}};case"link":return{text:"["+e+"]("+(n.linkUrl||"")+")",selection:{start:1,end:e.length+1}}}return{text:e,selection:{start:0,end:e.length}}};function L(e,t){var n={};return Object.keys(e).forEach((function(r){"undefined"!==typeof t[r]?"object"!==typeof t[r]?n[r]=t[r]:Array.isArray(t[r])?n[r]=[].concat(t[r]):n[r]=L(e[r],t[r]):n[r]=e[r]})),n}function F(e){for(var t=(0,r.A)({},e),n=arguments.length,i=new Array(n>1?n-1:0),o=1;o=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function V(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&f.length>0&&(a="\n"+a,l&&(l.start++,l.end++));var h=c.afterText;n.start!==n.end&&(h=T(this.getMdValue(),n.end).afterText),""!==h.trim()&&"\n\n"!==h.substr(0,2)&&("\n"!==h.substr(0,1)&&(a+="\n"),a+="\n")}this.insertText(a,!0,l)},n.insertPlaceholder=function(e,t){var n=this;this.insertText(e,!0),t.then((function(t){var r=n.getMdValue().replace(e,t);n.setText(r)}))},n.insertText=function(e,t,n){void 0===e&&(e=""),void 0===t&&(t=!1);var r=this.state.text,i=this.getSelection(),o=r.slice(0,i.start),s=r.slice(t?i.end:i.start,r.length);this.setText(o+e+s,void 0,n?{start:n.start+o.length,end:n.end+o.length}:{start:i.start,end:i.start})},n.setText=function(e,t,n){var r=this;void 0===e&&(e="");var i=this.config.onChangeTrigger,o=void 0===i?"both":i,s=e.replace(/\u21b5/g,"\n");if(this.state.text!==e){this.setState({text:s}),!this.props.onChange||"both"!==o&&"beforeRender"!==o||this.props.onChange({text:s,html:this.getHtmlValue()},t),this.emitter.emit(this.emitter.EVENT_CHANGE,e,t,"undefined"===typeof t),n&&setTimeout((function(){return r.setSelection(n)})),this.hasContentChanged||(this.hasContentChanged=!0);var a=this.renderHTML(s);"both"!==o&&"afterRender"!==o||a.then((function(){r.props.onChange&&r.props.onChange({text:r.state.text,html:r.getHtmlValue()},t)}))}},n.getMdValue=function(){return this.state.text},n.getHtmlValue=function(){return"string"===typeof this.state.html?this.state.html:this.nodeMdPreview.current?this.nodeMdPreview.current.getHtml():""},n.onKeyboard=function(e){var t=this;Array.isArray(e)?e.forEach((function(e){return t.onKeyboard(e)})):this.keyboardListeners.includes(e)||this.keyboardListeners.push(e)},n.offKeyboard=function(e){var t=this;if(Array.isArray(e))e.forEach((function(e){return t.offKeyboard(e)}));else{var n=this.keyboardListeners.indexOf(e);n>=0&&this.keyboardListeners.splice(n,1)}},n.handleKeyDown=function(e){for(var t,n=z(this.keyboardListeners);!(t=n()).done;){var r=t.value;if(S(e,r))return e.preventDefault(),void r.callback(e)}this.emitter.emit(this.emitter.EVENT_KEY_DOWN,e)},n.getEventType=function(e){switch(e){case"change":return this.emitter.EVENT_CHANGE;case"fullscreen":return this.emitter.EVENT_FULL_SCREEN;case"viewchange":return this.emitter.EVENT_VIEW_CHANGE;case"keydown":return this.emitter.EVENT_KEY_DOWN;case"editor_keydown":return this.emitter.EVENT_EDITOR_KEY_DOWN;case"blur":return this.emitter.EVENT_BLUR;case"focus":return this.emitter.EVENT_FOCUS;case"scroll":return this.emitter.EVENT_SCROLL}},n.on=function(e,t){var n=this.getEventType(e);n&&this.emitter.on(n,t)},n.off=function(e,t){var n=this.getEventType(e);n&&this.emitter.off(n,t)},n.setView=function(e){var t=this,n=(0,r.A)({},this.state.view,e);this.setState({view:n},(function(){t.emitter.emit(t.emitter.EVENT_VIEW_CHANGE,n)}))},n.getView=function(){return(0,r.A)({},this.state.view)},n.fullScreen=function(e){var t=this;this.state.fullScreen!==e&&this.setState({fullScreen:e},(function(){t.emitter.emit(t.emitter.EVENT_FULL_SCREEN,e)}))},n.registerPluginApi=function(e,t){this.pluginApis.set(e,t)},n.unregisterPluginApi=function(e){this.pluginApis.delete(e)},n.callPluginApi=function(e){var t=this.pluginApis.get(e);if(!t)throw new Error("API "+e+" not found");for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i0&&e.onImageChanged(t.target.files[0])}}))},t}(v);re.pluginName="image";var ie=function(e){function t(t){var n;return(n=e.call(this,t)||this).handleKeyboard={key:"k",keyCode:75,aliasCommand:!0,withKey:["ctrlKey"],callback:function(){return n.editor.insertMarkdown("link")}},n}(0,o.A)(t,e);var n=t.prototype;return n.componentDidMount=function(){this.editorConfig.shortcuts&&this.editor.onKeyboard(this.handleKeyboard)},n.componentWillUnmount=function(){this.editor.offKeyboard(this.handleKeyboard)},n.render=function(){var e=this;return s.createElement("span",{className:"button button-type-link",title:g.get("btnLink"),onClick:function(){return e.editor.insertMarkdown("link")}},s.createElement(l,{type:"link"}))},t}(v);ie.pluginName="link";var oe=function(e){function t(t){var n;return(n=e.call(this,t)||this).handleKeyboard={key:"7",keyCode:55,withKey:["ctrlKey","shiftKey"],aliasCommand:!0,callback:function(){return n.editor.insertMarkdown("order")}},n}(0,o.A)(t,e);var n=t.prototype;return n.componentDidMount=function(){this.editorConfig.shortcuts&&this.editor.onKeyboard(this.handleKeyboard)},n.componentWillUnmount=function(){this.editor.offKeyboard(this.handleKeyboard)},n.render=function(){var e=this;return s.createElement("span",{className:"button button-type-ordered",title:g.get("btnOrdered"),onClick:function(){return e.editor.insertMarkdown("order")}},s.createElement(l,{type:"list-ordered"}))},t}(v);oe.pluginName="list-ordered";var se=function(e){function t(t){var n;return(n=e.call(this,t)||this).handleKeyboard={key:"8",keyCode:56,withKey:["ctrlKey","shiftKey"],aliasCommand:!0,callback:function(){return n.editor.insertMarkdown("unordered")}},n}(0,o.A)(t,e);var n=t.prototype;return n.componentDidMount=function(){this.editorConfig.shortcuts&&this.editor.onKeyboard(this.handleKeyboard)},n.componentWillUnmount=function(){this.editor.offKeyboard(this.handleKeyboard)},n.render=function(){var e=this;return s.createElement("span",{className:"button button-type-unordered",title:g.get("btnUnordered"),onClick:function(){return e.editor.insertMarkdown("unordered")}},s.createElement(l,{type:"list-unordered"}))},t}(v);se.pluginName="list-unordered";const ae=function(){function e(e){void 0===e&&(e={}),this.record=[],this.recycle=[],this.initValue="";var t=e.maxSize,n=void 0===t?100:t;this.maxSize=n}var t=e.prototype;return t.push=function(e){for(var t=this.record.push(e);this.record.length>this.maxSize;)this.record.shift();return t},t.get=function(){return this.record},t.getLast=function(){var e=this.record.length;return this.record[e-1]},t.undo=function(e){var t=this.record.pop();if("undefined"===typeof t)return this.initValue;if(t!==e)return this.recycle.push(t),t;var n=this.record.pop();return"undefined"===typeof n?(this.recycle.push(t),this.initValue):(this.recycle.push(t),n)},t.redo=function(){var e=this.recycle.pop();if("undefined"!==typeof e)return this.push(e),e},t.cleanRedo=function(){this.recycle=[]},t.getUndoCount=function(){return this.undo.length},t.getRedoCount=function(){return this.recycle.length},e}();var le,ce=function(e){function t(t){var n;return(n=e.call(this,t)||this).handleKeyboards=[],n.lastPop=null,n.handleChange=n.handleChange.bind((0,i.A)(n)),n.handleRedo=n.handleRedo.bind((0,i.A)(n)),n.handleUndo=n.handleUndo.bind((0,i.A)(n)),n.handleKeyboards=[{key:"y",keyCode:89,withKey:["ctrlKey"],callback:n.handleRedo},{key:"z",keyCode:90,withKey:["metaKey","shiftKey"],callback:n.handleRedo},{key:"z",keyCode:90,aliasCommand:!0,withKey:["ctrlKey"],callback:n.handleUndo}],n.logger=new ae({maxSize:n.editorConfig.loggerMaxSize}),n.editor.registerPluginApi("undo",n.handleUndo),n.editor.registerPluginApi("redo",n.handleRedo),n}(0,o.A)(t,e);var n=t.prototype;return n.handleUndo=function(){var e=this.logger.undo(this.editor.getMdValue());"undefined"!==typeof e&&(this.pause(),this.lastPop=e,this.editor.setText(e),this.forceUpdate())},n.handleRedo=function(){var e=this.logger.redo();"undefined"!==typeof e&&(this.lastPop=e,this.editor.setText(e),this.forceUpdate())},n.handleChange=function(e,t,n){var r=this;if(this.logger.getLast()!==e&&(null===this.lastPop||this.lastPop!==e)){if(this.logger.cleanRedo(),n)return this.logger.push(e),this.lastPop=null,void this.forceUpdate();this.timerId&&(window.clearTimeout(this.timerId),this.timerId=0),this.timerId=window.setTimeout((function(){r.logger.getLast()!==e&&(r.logger.push(e),r.lastPop=null,r.forceUpdate()),window.clearTimeout(r.timerId),r.timerId=0}),this.editorConfig.loggerInterval)}},n.componentDidMount=function(){var e=this;this.editor.on("change",this.handleChange),this.handleKeyboards.forEach((function(t){return e.editor.onKeyboard(t)})),this.logger.initValue=this.editor.getMdValue(),this.forceUpdate()},n.componentWillUnmount=function(){var e=this;this.timerId&&window.clearTimeout(this.timerId),this.editor.off("change",this.handleChange),this.editor.unregisterPluginApi("undo"),this.editor.unregisterPluginApi("redo"),this.handleKeyboards.forEach((function(t){return e.editor.offKeyboard(t)}))},n.pause=function(){this.timerId&&(window.clearTimeout(this.timerId),this.timerId=void 0)},n.render=function(){var e=this.logger.getUndoCount()>1||this.logger.initValue!==this.editor.getMdValue(),t=this.logger.getRedoCount()>0;return s.createElement(s.Fragment,null,s.createElement("span",{className:"button button-type-undo "+(e?"":"disabled"),title:g.get("btnUndo"),onClick:this.handleUndo},s.createElement(l,{type:"undo"})),s.createElement("span",{className:"button button-type-redo "+(t?"":"disabled"),title:g.get("btnRedo"),onClick:this.handleRedo},s.createElement(l,{type:"redo"})))},t}(v);ce.pluginName="logger",function(e){e[e.SHOW_ALL=0]="SHOW_ALL",e[e.SHOW_MD=1]="SHOW_MD",e[e.SHOW_HTML=2]="SHOW_HTML"}(le||(le={}));var ue=function(e){function t(t){var n;return(n=e.call(this,t)||this).handleClick=n.handleClick.bind((0,i.A)(n)),n.handleChange=n.handleChange.bind((0,i.A)(n)),n.state={view:n.editor.getView()},n}(0,o.A)(t,e);var n=t.prototype;return n.handleClick=function(){switch(this.next){case le.SHOW_ALL:this.editor.setView({html:!0,md:!0});break;case le.SHOW_HTML:this.editor.setView({html:!0,md:!1});break;case le.SHOW_MD:this.editor.setView({html:!1,md:!0})}},n.handleChange=function(e){this.setState({view:e})},n.componentDidMount=function(){this.editor.on("viewchange",this.handleChange)},n.componentWillUnmount=function(){this.editor.off("viewchange",this.handleChange)},n.getDisplayInfo=function(){switch(this.next){case le.SHOW_ALL:return{icon:"view-split",title:"All"};case le.SHOW_HTML:return{icon:"visibility",title:"Preview"};default:return{icon:"keyboard",title:"Editor"}}},n.render=function(){if(this.isDisplay){var e=this.getDisplayInfo();return s.createElement("span",{className:"button button-type-mode",title:g.get("btnMode"+e.title),onClick:this.handleClick},s.createElement(l,{type:e.icon}))}return null},(0,y.A)(t,[{key:"isDisplay",get:function(){var e=this.editorConfig.canView;return!!e&&[e.html,e.md,e.both].filter((function(e){return e})).length>=2}},{key:"next",get:function(){var e=this.editorConfig.canView,t=this.state.view,n=[le.SHOW_ALL,le.SHOW_MD,le.SHOW_HTML];e&&(e.both||n.splice(n.indexOf(le.SHOW_ALL),1),e.md||n.splice(n.indexOf(le.SHOW_MD),1),e.html||n.splice(n.indexOf(le.SHOW_HTML),1));var r=le.SHOW_MD;if(t.html&&(r=le.SHOW_HTML),t.html&&t.md&&(r=le.SHOW_ALL),0===n.length)return r;if(1===n.length)return n[0];var i=n.indexOf(r);return i{},4172:(e,t,n)=>{n.d(t,{d:()=>i});const r={};function i(e,t){const n=t||r;return o(e,"boolean"!==typeof n.includeImageAlt||n.includeImageAlt,"boolean"!==typeof n.includeHtml||n.includeHtml)}function o(e,t,n){if(function(e){return Boolean(e&&"object"===typeof e)}(e)){if("value"in e)return"html"!==e.type||n?e.value:"";if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return s(e.children,t,n)}return Array.isArray(e)?s(e,t,n):""}function s(e,t,n){const r=[];let i=-1;for(;++i{n.d(t,{B:()=>o});var r=n(8956),i=n(4493);const o={tokenize:function(e,t,n){return function(t){return(0,i.On)(t)?(0,r.N)(e,o,"linePrefix")(t):o(t)};function o(e){return null===e||(0,i.HP)(e)?t(e):n(e)}},partial:!0}},8956:(e,t,n)=>{n.d(t,{N:()=>i});var r=n(4493);function i(e,t,n,i){const o=i?i-1:Number.POSITIVE_INFINITY;let s=0;return function(i){if((0,r.On)(i))return e.enter(n),a(i);return t(i)};function a(i){return(0,r.On)(i)&&s++{n.d(t,{BM:()=>a,CW:()=>r,Ee:()=>f,HP:()=>u,JQ:()=>s,Ny:()=>p,On:()=>h,cx:()=>o,es:()=>d,lV:()=>i,ok:()=>l,ol:()=>c});const r=m(/[A-Za-z]/),i=m(/[\dA-Za-z]/),o=m(/[#-'*+\--9=?A-Z^-~]/);function s(e){return null!==e&&(e<32||127===e)}const a=m(/\d/),l=m(/[\dA-Fa-f]/),c=m(/[!-/:-@[-`{-~]/);function u(e){return null!==e&&e<-2}function f(e){return null!==e&&(e<0||32===e)}function h(e){return-2===e||-1===e||32===e}const d=m(/\p{P}|\p{S}/u),p=m(/\s/);function m(e){return function(t){return null!==t&&t>-1&&e.test(String.fromCharCode(t))}}},7538:(e,t,n)=>{function r(e,t,n,r){const i=e.length;let o,s=0;if(t=t<0?-t>i?0:i+t:t>i?i:t,n=n>0?n:0,r.length<1e4)o=Array.from(r),o.unshift(t,n),e.splice(...o);else for(n&&e.splice(t,n);s0?(r(e,e.length,0,t),e):t}n.d(t,{V:()=>i,m:()=>r})},2536:(e,t,n)=>{n.d(t,{S:()=>i});var r=n(4493);function i(e){return null===e||(0,r.Ee)(e)||(0,r.Ny)(e)?1:(0,r.es)(e)?2:void 0}},7696:(e,t,n)=>{n.d(t,{y:()=>o});var r=n(7538);const i={}.hasOwnProperty;function o(e){const t={};let n=-1;for(;++n{function r(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}n.d(t,{B:()=>r})},6438:(e,t,n)=>{function r(e,t,n){const r=[];let i=-1;for(;++ir})},4886:(e,t,n)=>{n.d(t,{A:()=>a});var r=n(3731);const i=(e=[],t,n,r)=>{let o=t;for(;o/,"$2")||""))return;if(r){if(i(e,o,"pre",r))return;return t.value=(t.value||"").replace(/^(\n|\s)+/,""),t}return t.value=(t.value||"").replace(/^(\n|\s)+/,""),t}}},o=({value:e=""})=>{const t=((e="")=>(e.match(/([^?=&]+)(=([^&]*))/g)||[]).reduce(((e,t)=>(e[t.slice(0,t.indexOf("="))]=t.slice(t.indexOf("=")+1),e)),{}))(e.replace(/^/,"$1").replace(/^rehype:/,""));return Object.keys(t).forEach((e=>{"true"===t[e]&&(t[e]=!0),"false"===t[e]&&(t[e]=!1),"string"!==typeof t[e]||/^0/.test(t[e])||isNaN(+t[e])||(t[e]=+t[e])})),t},s=(e,t,n)=>"string"===n?{...e,"data-config":JSON.stringify({...t,rehyp:!0})}:"attr"===n?{...e,...t}:{...e,"data-config":{...t,rehyp:!0}},a=(e={})=>{const{properties:t="data",codeBlockParames:n=!0}=e;return e=>{(0,r.YR)(e,"element",((e,r,a)=>{if(n&&"pre"===e.tagName&&e&&Array.isArray(e.children)&&a&&Array.isArray(a.children)&&a.children.length>1){const n=e.children[0];if(n&&"code"===n.tagName&&"number"===typeof r){const i=((e=[],t)=>{let n=t;for(;n>-1;){if(n--,!e[n])return;if(e[n]&&e[n].value&&""!==e[n].value.replace(/(\n|\s)/g,"")||"text"!==e[n].type){if(!/^rehype:/.test(e[n].value)||"comment"!==e[n].type)return;return e[n]}}})(a.children,r);if(i){const r=o(i);Object.keys(r).length>0&&(e.properties={...e.properties,"data-type":"rehyp"},n.properties=s(n.properties,r,t))}}}if(/^(em|strong|b|a|i|p|pre|kbd|blockquote|h(1|2|3|4|5|6)|code|table|img|del|ul|ol)$/.test(e.tagName)&&a&&Array.isArray(a.children)&&"number"===typeof r){const l=i(a.children,r,"",n);if(l){const n=o(l);Object.keys(n).length>0&&(e.properties=s(e.properties,n,t))}}}))}}},9277:(e,t,n)=>{n.d(t,{A:()=>i});var r=n(4566);function i(e){return function(t,n){return(0,r.l)(t,{...e,file:n})}}},5164:(e,t,n)=>{n.d(t,{A:()=>i});var r=n(6744);function i(e){return function(t){return(0,r.a)(t,e)}}},1007:(e,t,n)=>{n.d(t,{A:()=>i});var r=n(2961);function i(e){const t={...this.data("settings"),...e};this.compiler=function(e){return(0,r.V)(e,t)}}},1909:(e,t,n)=>{n.d(t,{A:()=>ot});var r=n(5829),i=n(8085),o=n(4493),s=n(775),a=n(8048),l=n(7836);function c(e,t,n){const r=n||{},i=(0,l.C)(r.ignore||[]),o=function(e){const t=[];if(!Array.isArray(e))throw new TypeError("Expected find and replace tuple or list of tuples");const n=!e[0]||Array.isArray(e[0])?e:[e];let r=-1;for(;++r0?{type:"text",value:s}:void 0),!1===s?r.lastIndex=n+1:(a!==n&&u.push({type:"text",value:e.value.slice(a,n)}),Array.isArray(s)?u.push(...s):s&&u.push(s),a=n+f[0].length,c=!0),!r.global)break;f=r.exec(e.value)}c?(a?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],i=n.indexOf(")");const o=(0,r.D)(e,"(");let s=(0,r.D)(e,")");for(;-1!==i&&o>s;)e+=n.slice(0,i+1),n=n.slice(i+1),i=n.indexOf(")"),s++;return[e,n]}(n+i);if(!a[0])return!1;const l={type:"link",title:null,url:s+t+a[0],children:[{type:"text",value:t+a[0]}]};return a[1]?[l,{type:"text",value:a[1]}]:l}function w(e,t,n,r){return!(!C(r,!0)||/[-\d_]$/.test(n))&&{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function C(e,t){const n=e.input.charCodeAt(e.index-1);return(0===e.index||(0,o.Ny)(n)||(0,o.es)(n))&&(!t||47!==n)}var E=n(5662);function S(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function T(){this.buffer()}function A(e){const t=this.resume(),n=this.stack[this.stack.length-1];(0,i.ok)("footnoteDefinition"===n.type),n.label=t,n.identifier=(0,E.B)(this.sliceSerialize(e)).toLowerCase()}function I(e){this.exit(e)}function N(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function M(){this.buffer()}function O(e){const t=this.resume(),n=this.stack[this.stack.length-1];(0,i.ok)("footnoteReference"===n.type),n.label=t,n.identifier=(0,E.B)(this.sliceSerialize(e)).toLowerCase()}function P(e){this.exit(e)}function L(e,t,n,r){const i=n.createTracker(r);let o=i.move("[^");const s=n.enter("footnoteReference"),a=n.enter("reference");return o+=i.move(n.safe(n.associationId(e),{...i.current(),before:o,after:"]"})),a(),s(),o+=i.move("]"),o}function F(e,t,n,r){const i=n.createTracker(r);let o=i.move("[^");const s=n.enter("footnoteDefinition"),a=n.enter("label");return o+=i.move(n.safe(n.associationId(e),{...i.current(),before:o,after:"]"})),a(),o+=i.move("]:"+(e.children&&e.children.length>0?" ":"")),i.shift(4),o+=i.move(n.indentLines(n.containerFlow(e,i.current()),D)),s(),o}function D(e,t,n){return 0===t?e:(n?"":" ")+e}L.peek=function(){return"["};const H=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];function _(e){this.enter({type:"delete",children:[]},e)}function z(e){this.exit(e)}function V(e,t,n,r){const i=n.createTracker(r),o=n.enter("strikethrough");let s=i.move("~~");return s+=n.containerPhrasing(e,{...i.current(),before:s,after:"~"}),s+=i.move("~~"),o(),s}function R(e){return e.length}function U(e){const t="string"===typeof e?e.codePointAt(0):0;return 67===t||99===t?99:76===t||108===t?108:82===t||114===t?114:0}function B(e,t,n){return">"+(n?"":" ")+e}function K(e,t,n){if("string"===typeof t&&(t=[t]),!t||0===t.length)return n;let r=-1;for(;++r",...l.current()})),c+=l.move(">")):(a=n.enter("destinationRaw"),c+=l.move(n.safe(e.url,{before:c,after:e.title?" ":")",...l.current()}))),a(),e.title&&(a=n.enter(`title${o}`),c+=l.move(" "+i),c+=l.move(n.safe(e.title,{before:c,after:i,...l.current()})),c+=l.move(i),a()),c+=l.move(")"),s(),c}function X(e,t,n,r){const i=e.referenceType,o=n.enter("imageReference");let s=n.enter("label");const a=n.createTracker(r);let l=a.move("![");const c=n.safe(e.alt,{before:l,after:"]",...a.current()});l+=a.move(c+"]["),s();const u=n.stack;n.stack=[],s=n.enter("reference");const f=n.safe(n.associationId(e),{before:l,after:"]",...a.current()});return s(),n.stack=u,o(),"full"!==i&&c&&c===f?"shortcut"===i?l=l.slice(0,-1):l+=a.move("]"):l+=a.move(f+"]"),l}function ee(e,t,n){let r=e.value||"",i="`",o=-1;for(;new RegExp("(^|[^`])"+i+"([^`]|$)").test(r);)i+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=" "+r+" ");++o\u007F]/.test(e.url))}function ne(e,t,n,r){const i=Q(n),o='"'===i?"Quote":"Apostrophe",s=n.createTracker(r);let a,l;if(te(e,n)){const t=n.stack;n.stack=[],a=n.enter("autolink");let r=s.move("<");return r+=s.move(n.containerPhrasing(e,{before:r,after:">",...s.current()})),r+=s.move(">"),a(),n.stack=t,r}a=n.enter("link"),l=n.enter("label");let c=s.move("[");return c+=s.move(n.containerPhrasing(e,{before:c,after:"](",...s.current()})),c+=s.move("]("),l(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(l=n.enter("destinationLiteral"),c+=s.move("<"),c+=s.move(n.safe(e.url,{before:c,after:">",...s.current()})),c+=s.move(">")):(l=n.enter("destinationRaw"),c+=s.move(n.safe(e.url,{before:c,after:e.title?" ":")",...s.current()}))),l(),e.title&&(l=n.enter(`title${o}`),c+=s.move(" "+i),c+=s.move(n.safe(e.title,{before:c,after:i,...s.current()})),c+=s.move(i),l()),c+=s.move(")"),a(),c}function re(e,t,n,r){const i=e.referenceType,o=n.enter("linkReference");let s=n.enter("label");const a=n.createTracker(r);let l=a.move("[");const c=n.containerPhrasing(e,{before:l,after:"]",...a.current()});l+=a.move(c+"]["),s();const u=n.stack;n.stack=[],s=n.enter("reference");const f=n.safe(n.associationId(e),{before:l,after:"]",...a.current()});return s(),n.stack=u,o(),"full"!==i&&c&&c===f?"shortcut"===i?l=l.slice(0,-1):l+=a.move("]"):l+=a.move(f+"]"),l}function ie(e){const t=e.options.bullet||"*";if("*"!==t&&"+"!==t&&"-"!==t)throw new Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}function oe(e){const t=e.options.rule||"*";if("*"!==t&&"-"!==t&&"_"!==t)throw new Error("Cannot serialize rules with `"+t+"` for `options.rule`, expected `*`, `-`, or `_`");return t}J.peek=function(){return"<"},Z.peek=function(){return"!"},X.peek=function(){return"!"},ee.peek=function(){return"`"},ne.peek=function(e,t,n){return te(e,n)?"<":"["},re.peek=function(){return"["};const se=(0,l.C)(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function ae(e,t,n,r){const i=function(e){const t=e.options.strong||"*";if("*"!==t&&"_"!==t)throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}(n),o=n.enter("strong"),s=n.createTracker(r);let a=s.move(i+i);return a+=s.move(n.containerPhrasing(e,{before:a,after:i,...s.current()})),a+=s.move(i+i),o(),a}ae.peek=function(e,t,n){return n.options.strong||"*"};const le={blockquote:function(e,t,n,r){const i=n.enter("blockquote"),o=n.createTracker(r);o.move("> "),o.shift(2);const s=n.indentLines(n.containerFlow(e,o.current()),B);return i(),s},break:j,code:function(e,t,n,r){const i=function(e){const t=e.options.fence||"`";if("`"!==t&&"~"!==t)throw new Error("Cannot serialize code with `"+t+"` for `options.fence`, expected `` ` `` or `~`");return t}(n),o=e.value||"",s="`"===i?"GraveAccent":"Tilde";if(function(e,t){return Boolean(!1===t.options.fences&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}(e,n)){const e=n.enter("codeIndented"),t=n.indentLines(o,q);return e(),t}const a=n.createTracker(r),l=i.repeat(Math.max((0,W.D)(o,i)+1,3)),c=n.enter("codeFenced");let u=a.move(l);if(e.lang){const t=n.enter(`codeFencedLang${s}`);u+=a.move(n.safe(e.lang,{before:u,after:" ",encode:["`"],...a.current()})),t()}if(e.lang&&e.meta){const t=n.enter(`codeFencedMeta${s}`);u+=a.move(" "),u+=a.move(n.safe(e.meta,{before:u,after:"\n",encode:["`"],...a.current()})),t()}return u+=a.move("\n"),o&&(u+=a.move(o+"\n")),u+=a.move(l),c(),u},definition:function(e,t,n,r){const i=Q(n),o='"'===i?"Quote":"Apostrophe",s=n.enter("definition");let a=n.enter("label");const l=n.createTracker(r);let c=l.move("[");return c+=l.move(n.safe(n.associationId(e),{before:c,after:"]",...l.current()})),c+=l.move("]: "),a(),!e.url||/[\0- \u007F]/.test(e.url)?(a=n.enter("destinationLiteral"),c+=l.move("<"),c+=l.move(n.safe(e.url,{before:c,after:">",...l.current()})),c+=l.move(">")):(a=n.enter("destinationRaw"),c+=l.move(n.safe(e.url,{before:c,after:e.title?" ":"\n",...l.current()}))),a(),e.title&&(a=n.enter(`title${o}`),c+=l.move(" "+i),c+=l.move(n.safe(e.title,{before:c,after:i,...l.current()})),c+=l.move(i),a()),s(),c},emphasis:$,hardBreak:j,heading:function(e,t,n,r){const i=Math.max(Math.min(6,e.depth||1),1),o=n.createTracker(r);if(function(e,t){let n=!1;return(0,Y.YR)(e,(function(e){if("value"in e&&/\r?\n|\r/.test(e.value)||"break"===e.type)return n=!0,a.dc})),Boolean((!e.depth||e.depth<3)&&(0,G.d)(e)&&(t.options.setext||n))}(e,n)){const t=n.enter("headingSetext"),r=n.enter("phrasing"),s=n.containerPhrasing(e,{...o.current(),before:"\n",after:"\n"});return r(),t(),s+"\n"+(1===i?"=":"-").repeat(s.length-(Math.max(s.lastIndexOf("\r"),s.lastIndexOf("\n"))+1))}const s="#".repeat(i),l=n.enter("headingAtx"),c=n.enter("phrasing");o.move(s+" ");let u=n.containerPhrasing(e,{before:"# ",after:"\n",...o.current()});return/^[\t ]/.test(u)&&(u="&#x"+u.charCodeAt(0).toString(16).toUpperCase()+";"+u.slice(1)),u=u?s+" "+u:s,n.options.closeAtx&&(u+=" "+s),c(),l(),u},html:J,image:Z,imageReference:X,inlineCode:ee,link:ne,linkReference:re,list:function(e,t,n,r){const i=n.enter("list"),o=n.bulletCurrent;let s=e.ordered?function(e){const t=e.options.bulletOrdered||".";if("."!==t&&")"!==t)throw new Error("Cannot serialize items with `"+t+"` for `options.bulletOrdered`, expected `.` or `)`");return t}(n):ie(n);const a=e.ordered?"."===s?")":".":function(e){const t=ie(e),n=e.options.bulletOther;if(!n)return"*"===t?"-":"*";if("*"!==n&&"+"!==n&&"-"!==n)throw new Error("Cannot serialize items with `"+n+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(n===t)throw new Error("Expected `bullet` (`"+t+"`) and `bulletOther` (`"+n+"`) to be different");return n}(n);let l=!(!t||!n.bulletLastUsed)&&s===n.bulletLastUsed;if(!e.ordered){const t=e.children?e.children[0]:void 0;if("*"!==s&&"-"!==s||!t||t.children&&t.children[0]||"list"!==n.stack[n.stack.length-1]||"listItem"!==n.stack[n.stack.length-2]||"list"!==n.stack[n.stack.length-3]||"listItem"!==n.stack[n.stack.length-4]||0!==n.indexStack[n.indexStack.length-1]||0!==n.indexStack[n.indexStack.length-2]||0!==n.indexStack[n.indexStack.length-3]||(l=!0),oe(n)===s&&t){let t=-1;for(;++t-1?t.start:1)+(!1===n.options.incrementListMarker?0:t.children.indexOf(e))+o);let s=o.length+1;("tab"===i||"mixed"===i&&(t&&"list"===t.type&&t.spread||e.spread))&&(s=4*Math.ceil(s/4));const a=n.createTracker(r);a.move(o+" ".repeat(s-o.length)),a.shift(s);const l=n.enter("listItem"),c=n.indentLines(n.containerFlow(e,a.current()),(function(e,t,n){if(t)return(n?"":" ".repeat(s))+e;return(n?o:o+" ".repeat(s-o.length))+e}));return l(),c},paragraph:function(e,t,n,r){const i=n.enter("paragraph"),o=n.enter("phrasing"),s=n.containerPhrasing(e,r);return o(),i(),s},root:function(e,t,n,r){return(e.children.some((function(e){return se(e)}))?n.containerPhrasing:n.containerFlow).call(n,e,r)},strong:ae,text:function(e,t,n,r){return n.safe(e.value,r)},thematicBreak:function(e,t,n){const r=(oe(n)+(n.options.ruleSpaces?" ":"")).repeat(function(e){const t=e.options.ruleRepetition||3;if(t<3)throw new Error("Cannot serialize rules with repetition `"+t+"` for `options.ruleRepetition`, expected `3` or more");return t}(n));return n.options.ruleSpaces?r.slice(0,-1):r}};function ce(e){const t=e._align;(0,i.ok)(t,"expected `_align` on table"),this.enter({type:"table",align:t.map((function(e){return"none"===e?null:e})),children:[]},e),this.data.inTable=!0}function ue(e){this.exit(e),this.data.inTable=void 0}function fe(e){this.enter({type:"tableRow",children:[]},e)}function he(e){this.exit(e)}function de(e){this.enter({type:"tableCell",children:[]},e)}function pe(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,me));const n=this.stack[this.stack.length-1];(0,i.ok)("inlineCode"===n.type),n.value=t,this.exit(e)}function me(e,t){return"|"===t?t:e}function ge(e){const t=e||{},n=t.tableCellPadding,r=t.tablePipeAlign,i=t.stringLength,o=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:"\n",inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[\t :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:function(e,t,n){let r=le.inlineCode(e,t,n);n.stack.includes("tableCell")&&(r=r.replace(/\|/g,"\\$&"));return r},table:function(e,t,n,r){return a(function(e,t,n){const r=e.children;let i=-1;const o=[],s=t.enter("table");for(;++il&&(l=e[c].length);++fa[f])&&(a[f]=e)}n.push(o)}o[c]=n,s[c]=i}var u;let f=-1;if("object"===typeof n&&"length"in n)for(;++fa[f]&&(a[f]=o),d[f]=o),h[f]=s}o.splice(1,0,h),s.splice(1,0,d),c=-1;const p=[];for(;++c0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}Ne[43]=Ie,Ne[45]=Ie,Ne[46]=Ie,Ne[95]=Ie,Ne[72]=[Ie,Ae],Ne[104]=[Ie,Ae],Ne[87]=[Ie,Te],Ne[119]=[Ie,Te];var He=n(7312),_e=n(8956);const ze={tokenize:function(e,t,n){const r=this;return(0,_e.N)(e,(function(e){const i=r.events[r.events.length-1];return i&&"gfmFootnoteDefinitionIndent"===i[1].type&&4===i[2].sliceSerialize(i[1],!0).length?t(e):n(e)}),"gfmFootnoteDefinitionIndent",5)},partial:!0};function Ve(e,t,n){const r=this;let i=r.events.length;const o=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let s;for(;i--;){const e=r.events[i][1];if("labelImage"===e.type){s=e;break}if("gfmFootnoteCall"===e.type||"labelLink"===e.type||"label"===e.type||"image"===e.type||"link"===e.type)break}return function(i){if(!s||!s._balanced)return n(i);const a=(0,E.B)(r.sliceSerialize({start:s.end,end:r.now()}));if(94!==a.codePointAt(0)||!o.includes(a.slice(1)))return n(i);return e.enter("gfmFootnoteCallLabelMarker"),e.consume(i),e.exit("gfmFootnoteCallLabelMarker"),t(i)}}function Re(e,t){let n,r=e.length;for(;r--;)if("labelImage"===e[r][1].type&&"enter"===e[r][0]){n=e[r][1];break}e[r+1][1].type="data",e[r+3][1].type="gfmFootnoteCallLabelMarker";const i={type:"gfmFootnoteCall",start:Object.assign({},e[r+3][1].start),end:Object.assign({},e[e.length-1][1].end)},o={type:"gfmFootnoteCallMarker",start:Object.assign({},e[r+3][1].end),end:Object.assign({},e[r+3][1].end)};o.end.column++,o.end.offset++,o.end._bufferIndex++;const s={type:"gfmFootnoteCallString",start:Object.assign({},o.end),end:Object.assign({},e[e.length-1][1].start)},a={type:"chunkString",contentType:"string",start:Object.assign({},s.start),end:Object.assign({},s.end)},l=[e[r+1],e[r+2],["enter",i,t],e[r+3],e[r+4],["enter",o,t],["exit",o,t],["enter",s,t],["enter",a,t],["exit",a,t],["exit",s,t],e[e.length-2],e[e.length-1],["exit",i,t]];return e.splice(r,e.length-r+1,...l),e}function Ue(e,t,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let s,a=0;return function(t){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(t),e.exit("gfmFootnoteCallLabelMarker"),l};function l(t){return 94!==t?n(t):(e.enter("gfmFootnoteCallMarker"),e.consume(t),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",c)}function c(l){if(a>999||93===l&&!s||null===l||91===l||(0,o.Ee)(l))return n(l);if(93===l){e.exit("chunkString");const o=e.exit("gfmFootnoteCallString");return i.includes((0,E.B)(r.sliceSerialize(o)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(l),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(l)}return(0,o.Ee)(l)||(s=!0),a++,e.consume(l),92===l?u:c}function u(t){return 91===t||92===t||93===t?(e.consume(t),a++,c):c(t)}}function Be(e,t,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let s,a,l=0;return function(t){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionLabelMarker"),c};function c(t){return 94===t?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",u):n(t)}function u(t){if(l>999||93===t&&!a||null===t||91===t||(0,o.Ee)(t))return n(t);if(93===t){e.exit("chunkString");const n=e.exit("gfmFootnoteDefinitionLabelString");return s=(0,E.B)(r.sliceSerialize(n)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),h}return(0,o.Ee)(t)||(a=!0),l++,e.consume(t),92===t?f:u}function f(t){return 91===t||92===t||93===t?(e.consume(t),l++,u):u(t)}function h(t){return 58===t?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),i.includes(s)||i.push(s),(0,_e.N)(e,d,"gfmFootnoteDefinitionWhitespace")):n(t)}function d(e){return t(e)}}function Ke(e,t,n){return e.check(He.B,t,e.attempt(ze,t,n))}function je(e){e.exit("gfmFootnoteDefinition")}var We=n(7538),qe=n(2536),Qe=n(6438);function $e(e){let t=(e||{}).singleTilde;const n={tokenize:function(e,n,r){const i=this.previous,o=this.events;let s=0;return function(t){if(126===i&&"characterEscape"!==o[o.length-1][1].type)return r(t);return e.enter("strikethroughSequenceTemporary"),a(t)};function a(o){const l=(0,qe.S)(i);if(126===o)return s>1?r(o):(e.consume(o),s++,a);if(s<2&&!t)return r(o);const c=e.exit("strikethroughSequenceTemporary"),u=(0,qe.S)(o);return c._open=!u||2===u&&Boolean(l),c._close=!l||2===l&&Boolean(u),n(o)}},resolveAll:function(e,t){let n=-1;for(;++n0;)t-=1,n.push(e.slice(this.map[t][0]+this.map[t][1]),this.map[t][2]),e.length=this.map[t][0];n.push([...e]),e.length=0;let r=n.pop();for(;r;)e.push(...r),r=n.pop();this.map.length=0}}function Ge(e,t){let n=!1;const r=[];for(;t-1;){const e=r.events[t][1].type;if("lineEnding"!==e&&"linePrefix"!==e)break;t--}const i=t>-1?r.events[t][1].type:null,o="tableHead"===i||"tableRow"===i?x:l;if(o===x&&r.parser.lazy[r.now().line])return n(e);return o(e)};function l(t){return e.enter("tableHead"),e.enter("tableRow"),function(e){if(124===e)return c(e);return i=!0,a+=1,c(e)}(t)}function c(t){return null===t?n(t):(0,o.HP)(t)?a>1?(a=0,r.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),h):n(t):(0,o.On)(t)?(0,_e.N)(e,c,"whitespace")(t):(a+=1,i&&(i=!1,s+=1),124===t?(e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),i=!0,c):(e.enter("data"),u(t)))}function u(t){return null===t||124===t||(0,o.Ee)(t)?(e.exit("data"),c(t)):(e.consume(t),92===t?f:u)}function f(t){return 92===t||124===t?(e.consume(t),u):u(t)}function h(t){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(t):(e.enter("tableDelimiterRow"),i=!1,(0,o.On)(t)?(0,_e.N)(e,d,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):d(t))}function d(t){return 45===t||58===t?m(t):124===t?(i=!0,e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),p):b(t)}function p(t){return(0,o.On)(t)?(0,_e.N)(e,m,"whitespace")(t):m(t)}function m(t){return 58===t?(a+=1,i=!0,e.enter("tableDelimiterMarker"),e.consume(t),e.exit("tableDelimiterMarker"),g):45===t?(a+=1,g(t)):null===t||(0,o.HP)(t)?k(t):b(t)}function g(t){return 45===t?(e.enter("tableDelimiterFiller"),y(t)):b(t)}function y(t){return 45===t?(e.consume(t),y):58===t?(i=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(t),e.exit("tableDelimiterMarker"),v):(e.exit("tableDelimiterFiller"),v(t))}function v(t){return(0,o.On)(t)?(0,_e.N)(e,k,"whitespace")(t):k(t)}function k(n){return 124===n?d(n):(null===n||(0,o.HP)(n))&&i&&s===a?(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(n)):b(n)}function b(e){return n(e)}function x(t){return e.enter("tableRow"),w(t)}function w(n){return 124===n?(e.enter("tableCellDivider"),e.consume(n),e.exit("tableCellDivider"),w):null===n||(0,o.HP)(n)?(e.exit("tableRow"),t(n)):(0,o.On)(n)?(0,_e.N)(e,w,"whitespace")(n):(e.enter("data"),C(n))}function C(t){return null===t||124===t||(0,o.Ee)(t)?(e.exit("data"),w(t)):(e.consume(t),92===t?E:C)}function E(t){return 92===t||124===t?(e.consume(t),C):C(t)}}function Ze(e,t){let n,r,i,o=-1,s=!0,a=0,l=[0,0,0,0],c=[0,0,0,0],u=!1,f=0;const h=new Ye;for(;++on[2]+1){const t=n[2]+1,r=n[3]-n[2]-1;e.add(t,r,[])}}e.add(n[3]+1,0,[["exit",s,t]])}return void 0!==i&&(o.end=Object.assign({},tt(t.events,i)),e.add(i,0,[["exit",o,t]]),o=void 0),o}function et(e,t,n,r,i){const o=[],s=tt(t.events,n);i&&(i.end=Object.assign({},s),o.push(["exit",i,t])),r.end=Object.assign({},s),o.push(["exit",r,t]),e.add(n+1,0,o)}function tt(e,t){const n=e[t],r="enter"===n[0]?"start":"end";return n[1][r]}const nt={tokenize:function(e,t,n){const r=this;return function(t){if(null!==r.previous||!r._gfmTasklistFirstContentOfListItem)return n(t);return e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(t),e.exit("taskListCheckMarker"),i};function i(t){return(0,o.Ee)(t)?(e.enter("taskListCheckValueUnchecked"),e.consume(t),e.exit("taskListCheckValueUnchecked"),s):88===t||120===t?(e.enter("taskListCheckValueChecked"),e.consume(t),e.exit("taskListCheckValueChecked"),s):n(t)}function s(t){return 93===t?(e.enter("taskListCheckMarker"),e.consume(t),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),a):n(t)}function a(r){return(0,o.HP)(r)?t(r):(0,o.On)(r)?e.check({tokenize:rt},t,n)(r):n(r)}}};function rt(e,t,n){return(0,_e.N)(e,(function(e){return null===e?n(e):t(e)}),"whitespace")}const it={};function ot(e){const t=e||it,n=this.data(),r=n.micromarkExtensions||(n.micromarkExtensions=[]),i=n.fromMarkdownExtensions||(n.fromMarkdownExtensions=[]),o=n.toMarkdownExtensions||(n.toMarkdownExtensions=[]);r.push(function(e){return(0,be.y)([{text:Ne},{document:{91:{tokenize:Be,continuation:{tokenize:Ke},exit:je}},text:{91:{tokenize:Ue},93:{add:"after",tokenize:Ve,resolveTo:Re}}},$e(e),{flow:{null:{tokenize:Je,resolveAll:Ze}}},{text:{91:nt}}])}(t)),i.push([{transforms:[b],enter:{literalAutolink:p,literalAutolinkEmail:m,literalAutolinkHttp:m,literalAutolinkWww:m},exit:{literalAutolink:k,literalAutolinkEmail:v,literalAutolinkHttp:g,literalAutolinkWww:y}},{enter:{gfmFootnoteDefinition:S,gfmFootnoteDefinitionLabelString:T,gfmFootnoteCall:N,gfmFootnoteCallString:M},exit:{gfmFootnoteDefinition:I,gfmFootnoteDefinitionLabelString:A,gfmFootnoteCall:P,gfmFootnoteCallString:O}},{canContainEols:["delete"],enter:{strikethrough:_},exit:{strikethrough:z}},{enter:{table:ce,tableData:de,tableHeader:de,tableRow:fe},exit:{codeText:pe,table:ue,tableData:he,tableHeader:he,tableRow:he}},{exit:{taskListCheckValueChecked:ye,taskListCheckValueUnchecked:ye,paragraph:ve}}]),o.push(function(e){return{extensions:[{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:h,notInConstruct:d},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:h,notInConstruct:d},{character:":",before:"[ps]",after:"\\/",inConstruct:h,notInConstruct:d}]},{unsafe:[{character:"[",inConstruct:["phrasing","label","reference"]}],handlers:{footnoteDefinition:F,footnoteReference:L}},{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:H}],handlers:{delete:V}},ge(e),{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:ke}}]}}(t))}},7299:(e,t,n)=>{n.d(t,{A:()=>Fe});var r={};n.r(r),n.d(r,{attentionMarkers:()=>xe,contentInitial:()=>me,disable:()=>we,document:()=>pe,flow:()=>ye,flowInitial:()=>ge,insideSpan:()=>be,string:()=>ve,text:()=>ke});var i=n(4172),o=n(7538);class s{constructor(e){this.left=e?[...e]:[],this.right=[]}get(e){if(e<0||e>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+e+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return ethis.left.length?this.right.slice(this.right.length-n+this.left.length,this.right.length-e+this.left.length).reverse():this.left.slice(e).concat(this.right.slice(this.right.length-n+this.left.length).reverse())}splice(e,t,n){const r=t||0;this.setCursor(Math.trunc(e));const i=this.right.splice(this.right.length-r,Number.POSITIVE_INFINITY);return n&&a(this.left,n),i.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(e){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(e)}pushMany(e){this.setCursor(Number.POSITIVE_INFINITY),a(this.left,e)}unshift(e){this.setCursor(0),this.right.push(e)}unshiftMany(e){this.setCursor(0),a(this.right,e.reverse())}setCursor(e){if(!(e===this.left.length||e>this.left.length&&0===this.right.length||e<0&&0===this.left.length))if(es))return;const n=t.events.length;let i,l,c=n;for(;c--;)if("exit"===t.events[c][0]&&"chunkFlow"===t.events[c][1].type){if(i){l=t.events[c][1].end;break}i=!0}for(b(a),e=n;er;){const r=n[i];t.containerState=r[1],r[0].exit.call(t,e)}n.length=r}function x(){r.write([null]),i=void 0,r=void 0,t.containerState._closeFlow=void 0}}},m={tokenize:function(e,t,n){return(0,f.N)(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}};var g=n(7312);const y={tokenize:function(e,t){let n;return function(t){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),r(t)};function r(t){return null===t?i(t):(0,h.HP)(t)?e.check(v,o,i)(t):(e.consume(t),r)}function i(n){return e.exit("chunkContent"),e.exit("content"),t(n)}function o(t){return e.consume(t),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,r}},resolve:function(e){return l(e),e}},v={tokenize:function(e,t,n){const r=this;return function(t){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),(0,f.N)(e,i,"linePrefix")};function i(i){if(null===i||(0,h.HP)(i))return n(i);const o=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&o&&"linePrefix"===o[1].type&&o[2].sliceSerialize(o[1],!0).length>=4?t(i):e.interrupt(r.parser.constructs.flow,n,t)(i)}},partial:!0};const k={tokenize:function(e){const t=this,n=e.attempt(g.B,(function(r){if(null===r)return void e.consume(r);return e.enter("lineEndingBlank"),e.consume(r),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}),e.attempt(this.parser.constructs.flowInitial,r,(0,f.N)(e,e.attempt(this.parser.constructs.flow,r,e.attempt(y,r)),"linePrefix")));return n;function r(r){if(null!==r)return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),t.currentConstruct=void 0,n;e.consume(r)}}};const b={resolveAll:E()},x=C("string"),w=C("text");function C(e){return{tokenize:function(t){const n=this,r=this.parser.constructs[e],i=t.attempt(r,o,s);return o;function o(e){return l(e)?i(e):s(e)}function s(e){if(null!==e)return t.enter("data"),t.consume(e),a;t.consume(e)}function a(e){return l(e)?(t.exit("data"),i(e)):(t.consume(e),a)}function l(e){if(null===e)return!0;const t=r[e];let i=-1;if(t)for(;++i-1){const e=s[0];"string"===typeof e?s[0]=e.slice(r):s.shift()}o>0&&s.push(e[i].slice(0,o))}return s}(a,e)}function g(){const{line:e,column:t,offset:n,_index:i,_bufferIndex:o}=r;return{line:e,column:t,offset:n,_index:i,_bufferIndex:o}}function y(){let e;for(;r._index=3&&(null===o||(0,h.HP)(o))?(e.exit("thematicBreak"),t(o)):n(o)}function s(t){return t===r?(e.consume(t),i++,s):(e.exit("thematicBreakSequence"),(0,h.On)(t)?(0,f.N)(e,o,"whitespace")(t):o(t))}}};const N={name:"list",tokenize:function(e,t,n){const r=this,i=r.events[r.events.length-1];let o=i&&"linePrefix"===i[1].type?i[2].sliceSerialize(i[1],!0).length:0,s=0;return function(t){const i=r.containerState.type||(42===t||43===t||45===t?"listUnordered":"listOrdered");if("listUnordered"===i?!r.containerState.marker||t===r.containerState.marker:(0,h.BM)(t)){if(r.containerState.type||(r.containerState.type=i,e.enter(i,{_container:!0})),"listUnordered"===i)return e.enter("listItemPrefix"),42===t||45===t?e.check(I,n,l)(t):l(t);if(!r.interrupt||49===t)return e.enter("listItemPrefix"),e.enter("listItemValue"),a(t)}return n(t)};function a(t){return(0,h.BM)(t)&&++s<10?(e.consume(t),a):(!r.interrupt||s<2)&&(r.containerState.marker?t===r.containerState.marker:41===t||46===t)?(e.exit("listItemValue"),l(t)):n(t)}function l(t){return e.enter("listItemMarker"),e.consume(t),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||t,e.check(g.B,r.interrupt?n:c,e.attempt(M,f,u))}function c(e){return r.containerState.initialBlankLine=!0,o++,f(e)}function u(t){return(0,h.On)(t)?(e.enter("listItemPrefixWhitespace"),e.consume(t),e.exit("listItemPrefixWhitespace"),f):n(t)}function f(n){return r.containerState.size=o+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(n)}},continuation:{tokenize:function(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(g.B,(function(n){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,(0,f.N)(e,t,"listItemIndent",r.containerState.size+1)(n)}),(function(n){if(r.containerState.furtherBlankLines||!(0,h.On)(n))return r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,i(n);return r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(O,t,i)(n)}));function i(i){return r.containerState._closeFlow=!0,r.interrupt=void 0,(0,f.N)(e,e.attempt(N,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(i)}}},exit:function(e){e.exit(this.containerState.type)}},M={tokenize:function(e,t,n){const r=this;return(0,f.N)(e,(function(e){const i=r.events[r.events.length-1];return!(0,h.On)(e)&&i&&"listItemPrefixWhitespace"===i[1].type?t(e):n(e)}),"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5)},partial:!0},O={tokenize:function(e,t,n){const r=this;return(0,f.N)(e,(function(e){const i=r.events[r.events.length-1];return i&&"listItemIndent"===i[1].type&&i[2].sliceSerialize(i[1],!0).length===r.containerState.size?t(e):n(e)}),"listItemIndent",r.containerState.size+1)},partial:!0};const P={name:"blockQuote",tokenize:function(e,t,n){const r=this;return function(t){if(62===t){const n=r.containerState;return n.open||(e.enter("blockQuote",{_container:!0}),n.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(t),e.exit("blockQuoteMarker"),i}return n(t)};function i(n){return(0,h.On)(n)?(e.enter("blockQuotePrefixWhitespace"),e.consume(n),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(n))}},continuation:{tokenize:function(e,t,n){const r=this;return function(t){if((0,h.On)(t))return(0,f.N)(e,i,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t);return i(t)};function i(r){return e.attempt(P,t,n)(r)}}},exit:function(e){e.exit("blockQuote")}};function L(e,t,n,r,i,o,s,a,l){const c=l||Number.POSITIVE_INFINITY;let u=0;return function(t){if(60===t)return e.enter(r),e.enter(i),e.enter(o),e.consume(t),e.exit(o),f;if(null===t||32===t||41===t||(0,h.JQ)(t))return n(t);return e.enter(r),e.enter(s),e.enter(a),e.enter("chunkString",{contentType:"string"}),m(t)};function f(n){return 62===n?(e.enter(o),e.consume(n),e.exit(o),e.exit(i),e.exit(r),t):(e.enter(a),e.enter("chunkString",{contentType:"string"}),d(n))}function d(t){return 62===t?(e.exit("chunkString"),e.exit(a),f(t)):null===t||60===t||(0,h.HP)(t)?n(t):(e.consume(t),92===t?p:d)}function p(t){return 60===t||62===t||92===t?(e.consume(t),d):d(t)}function m(i){return u||null!==i&&41!==i&&!(0,h.Ee)(i)?u999||null===f||91===f||93===f&&!a||94===f&&!l&&"_hiddenFootnoteSupport"in s.parser.constructs?n(f):93===f?(e.exit(o),e.enter(i),e.consume(f),e.exit(i),e.exit(r),t):(0,h.HP)(f)?(e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),c):(e.enter("chunkString",{contentType:"string"}),u(f))}function u(t){return null===t||91===t||93===t||(0,h.HP)(t)||l++>999?(e.exit("chunkString"),c(t)):(e.consume(t),a||(a=!(0,h.On)(t)),92===t?f:u)}function f(t){return 91===t||92===t||93===t?(e.consume(t),l++,u):u(t)}}function D(e,t,n,r,i,o){let s;return function(t){if(34===t||39===t||40===t)return e.enter(r),e.enter(i),e.consume(t),e.exit(i),s=40===t?41:t,a;return n(t)};function a(n){return n===s?(e.enter(i),e.consume(n),e.exit(i),e.exit(r),t):(e.enter(o),l(n))}function l(t){return t===s?(e.exit(o),a(s)):null===t?n(t):(0,h.HP)(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),(0,f.N)(e,l,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),c(t))}function c(t){return t===s||null===t||(0,h.HP)(t)?(e.exit("chunkString"),l(t)):(e.consume(t),92===t?u:c)}function u(t){return t===s||92===t?(e.consume(t),c):c(t)}}function H(e,t){let n;return function r(i){if((0,h.HP)(i))return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),n=!0,r;if((0,h.On)(i))return(0,f.N)(e,r,n?"linePrefix":"lineSuffix")(i);return t(i)}}var _=n(5662);const z={name:"definition",tokenize:function(e,t,n){const r=this;let i;return function(t){return e.enter("definition"),function(t){return F.call(r,e,o,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(t)}(t)};function o(t){return i=(0,_.B)(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),58===t?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),s):n(t)}function s(t){return(0,h.Ee)(t)?H(e,a)(t):a(t)}function a(t){return L(e,l,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(t)}function l(t){return e.attempt(V,c,c)(t)}function c(t){return(0,h.On)(t)?(0,f.N)(e,u,"whitespace")(t):u(t)}function u(o){return null===o||(0,h.HP)(o)?(e.exit("definition"),r.parser.defined.push(i),t(o)):n(o)}}},V={tokenize:function(e,t,n){return function(t){return(0,h.Ee)(t)?H(e,r)(t):n(t)};function r(t){return D(e,i,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(t)}function i(t){return(0,h.On)(t)?(0,f.N)(e,o,"whitespace")(t):o(t)}function o(e){return null===e||(0,h.HP)(e)?t(e):n(e)}},partial:!0};const R={name:"codeIndented",tokenize:function(e,t,n){const r=this;return function(t){return e.enter("codeIndented"),(0,f.N)(e,i,"linePrefix",5)(t)};function i(e){const t=r.events[r.events.length-1];return t&&"linePrefix"===t[1].type&&t[2].sliceSerialize(t[1],!0).length>=4?o(e):n(e)}function o(t){return null===t?a(t):(0,h.HP)(t)?e.attempt(U,o,a)(t):(e.enter("codeFlowValue"),s(t))}function s(t){return null===t||(0,h.HP)(t)?(e.exit("codeFlowValue"),o(t)):(e.consume(t),s)}function a(n){return e.exit("codeIndented"),t(n)}}},U={tokenize:function(e,t,n){const r=this;return i;function i(t){return r.parser.lazy[r.now().line]?n(t):(0,h.HP)(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),i):(0,f.N)(e,o,"linePrefix",5)(t)}function o(e){const o=r.events[r.events.length-1];return o&&"linePrefix"===o[1].type&&o[2].sliceSerialize(o[1],!0).length>=4?t(e):(0,h.HP)(e)?i(e):n(e)}},partial:!0};const B={name:"headingAtx",tokenize:function(e,t,n){let r=0;return function(t){return e.enter("atxHeading"),function(t){return e.enter("atxHeadingSequence"),i(t)}(t)};function i(t){return 35===t&&r++<6?(e.consume(t),i):null===t||(0,h.Ee)(t)?(e.exit("atxHeadingSequence"),o(t)):n(t)}function o(n){return 35===n?(e.enter("atxHeadingSequence"),s(n)):null===n||(0,h.HP)(n)?(e.exit("atxHeading"),t(n)):(0,h.On)(n)?(0,f.N)(e,o,"whitespace")(n):(e.enter("atxHeadingText"),a(n))}function s(t){return 35===t?(e.consume(t),s):(e.exit("atxHeadingSequence"),o(t))}function a(t){return null===t||35===t||(0,h.Ee)(t)?(e.exit("atxHeadingText"),o(t)):(e.consume(t),a)}},resolve:function(e,t){let n,r,i=e.length-2,s=3;"whitespace"===e[s][1].type&&(s+=2);i-2>s&&"whitespace"===e[i][1].type&&(i-=2);"atxHeadingSequence"===e[i][1].type&&(s===i-1||i-4>s&&"whitespace"===e[i-2][1].type)&&(i-=s+1===i?2:4);i>s&&(n={type:"atxHeadingText",start:e[s][1].start,end:e[i][1].end},r={type:"chunkText",start:e[s][1].start,end:e[i][1].end,contentType:"text"},(0,o.m)(e,s,i-s+1,[["enter",n,t],["enter",r,t],["exit",r,t],["exit",n,t]]));return e}};const K={name:"setextUnderline",tokenize:function(e,t,n){const r=this;let i;return function(t){let s,a=r.events.length;for(;a--;)if("lineEnding"!==r.events[a][1].type&&"linePrefix"!==r.events[a][1].type&&"content"!==r.events[a][1].type){s="paragraph"===r.events[a][1].type;break}if(!r.parser.lazy[r.now().line]&&(r.interrupt||s))return e.enter("setextHeadingLine"),i=t,function(t){return e.enter("setextHeadingLineSequence"),o(t)}(t);return n(t)};function o(t){return t===i?(e.consume(t),o):(e.exit("setextHeadingLineSequence"),(0,h.On)(t)?(0,f.N)(e,s,"lineSuffix")(t):s(t))}function s(r){return null===r||(0,h.HP)(r)?(e.exit("setextHeadingLine"),t(r)):n(r)}},resolveTo:function(e,t){let n,r,i,o=e.length;for(;o--;)if("enter"===e[o][0]){if("content"===e[o][1].type){n=o;break}"paragraph"===e[o][1].type&&(r=o)}else"content"===e[o][1].type&&e.splice(o,1),i||"definition"!==e[o][1].type||(i=o);const s={type:"setextHeading",start:Object.assign({},e[r][1].start),end:Object.assign({},e[e.length-1][1].end)};e[r][1].type="setextHeadingText",i?(e.splice(r,0,["enter",s,t]),e.splice(i+1,0,["exit",e[n][1],t]),e[n][1].end=Object.assign({},e[i][1].end)):e[n][1]=s;return e.push(["exit",s,t]),e}};const j=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],W=["pre","script","style","textarea"],q={name:"htmlFlow",tokenize:function(e,t,n){const r=this;let i,o,s,a,l;return function(t){return function(t){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(t),c}(t)};function c(a){return 33===a?(e.consume(a),u):47===a?(e.consume(a),o=!0,p):63===a?(e.consume(a),i=3,r.interrupt?t:D):(0,h.CW)(a)?(e.consume(a),s=String.fromCharCode(a),m):n(a)}function u(o){return 45===o?(e.consume(o),i=2,f):91===o?(e.consume(o),i=5,a=0,d):(0,h.CW)(o)?(e.consume(o),i=4,r.interrupt?t:D):n(o)}function f(i){return 45===i?(e.consume(i),r.interrupt?t:D):n(i)}function d(i){const o="CDATA[";return i===o.charCodeAt(a++)?(e.consume(i),6===a?r.interrupt?t:A:d):n(i)}function p(t){return(0,h.CW)(t)?(e.consume(t),s=String.fromCharCode(t),m):n(t)}function m(a){if(null===a||47===a||62===a||(0,h.Ee)(a)){const l=47===a,c=s.toLowerCase();return l||o||!W.includes(c)?j.includes(s.toLowerCase())?(i=6,l?(e.consume(a),g):r.interrupt?t(a):A(a)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(a):o?y(a):v(a)):(i=1,r.interrupt?t(a):A(a))}return 45===a||(0,h.lV)(a)?(e.consume(a),s+=String.fromCharCode(a),m):n(a)}function g(i){return 62===i?(e.consume(i),r.interrupt?t:A):n(i)}function y(t){return(0,h.On)(t)?(e.consume(t),y):S(t)}function v(t){return 47===t?(e.consume(t),S):58===t||95===t||(0,h.CW)(t)?(e.consume(t),k):(0,h.On)(t)?(e.consume(t),v):S(t)}function k(t){return 45===t||46===t||58===t||95===t||(0,h.lV)(t)?(e.consume(t),k):b(t)}function b(t){return 61===t?(e.consume(t),x):(0,h.On)(t)?(e.consume(t),b):v(t)}function x(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),l=t,w):(0,h.On)(t)?(e.consume(t),x):C(t)}function w(t){return t===l?(e.consume(t),l=null,E):null===t||(0,h.HP)(t)?n(t):(e.consume(t),w)}function C(t){return null===t||34===t||39===t||47===t||60===t||61===t||62===t||96===t||(0,h.Ee)(t)?b(t):(e.consume(t),C)}function E(e){return 47===e||62===e||(0,h.On)(e)?v(e):n(e)}function S(t){return 62===t?(e.consume(t),T):n(t)}function T(t){return null===t||(0,h.HP)(t)?A(t):(0,h.On)(t)?(e.consume(t),T):n(t)}function A(t){return 45===t&&2===i?(e.consume(t),O):60===t&&1===i?(e.consume(t),P):62===t&&4===i?(e.consume(t),H):63===t&&3===i?(e.consume(t),D):93===t&&5===i?(e.consume(t),F):!(0,h.HP)(t)||6!==i&&7!==i?null===t||(0,h.HP)(t)?(e.exit("htmlFlowData"),I(t)):(e.consume(t),A):(e.exit("htmlFlowData"),e.check(Q,_,I)(t))}function I(t){return e.check($,N,_)(t)}function N(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),M}function M(t){return null===t||(0,h.HP)(t)?I(t):(e.enter("htmlFlowData"),A(t))}function O(t){return 45===t?(e.consume(t),D):A(t)}function P(t){return 47===t?(e.consume(t),s="",L):A(t)}function L(t){if(62===t){const n=s.toLowerCase();return W.includes(n)?(e.consume(t),H):A(t)}return(0,h.CW)(t)&&s.length<8?(e.consume(t),s+=String.fromCharCode(t),L):A(t)}function F(t){return 93===t?(e.consume(t),D):A(t)}function D(t){return 62===t?(e.consume(t),H):45===t&&2===i?(e.consume(t),D):A(t)}function H(t){return null===t||(0,h.HP)(t)?(e.exit("htmlFlowData"),_(t)):(e.consume(t),H)}function _(n){return e.exit("htmlFlow"),t(n)}},resolveTo:function(e){let t=e.length;for(;t--&&("enter"!==e[t][0]||"htmlFlow"!==e[t][1].type););t>1&&"linePrefix"===e[t-2][1].type&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2));return e},concrete:!0},Q={tokenize:function(e,t,n){return function(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),e.attempt(g.B,t,n)}},partial:!0},$={tokenize:function(e,t,n){const r=this;return function(t){if((0,h.HP)(t))return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),i;return n(t)};function i(e){return r.parser.lazy[r.now().line]?n(e):t(e)}},partial:!0};const Y={tokenize:function(e,t,n){const r=this;return function(t){if(null===t)return n(t);return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),i};function i(e){return r.parser.lazy[r.now().line]?n(e):t(e)}},partial:!0},G={name:"codeFenced",tokenize:function(e,t,n){const r=this,i={tokenize:function(e,t,n){let i=0;return s;function s(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),l}function l(t){return e.enter("codeFencedFence"),(0,h.On)(t)?(0,f.N)(e,c,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):c(t)}function c(t){return t===o?(e.enter("codeFencedFenceSequence"),u(t)):n(t)}function u(t){return t===o?(i++,e.consume(t),u):i>=a?(e.exit("codeFencedFenceSequence"),(0,h.On)(t)?(0,f.N)(e,d,"whitespace")(t):d(t)):n(t)}function d(r){return null===r||(0,h.HP)(r)?(e.exit("codeFencedFence"),t(r)):n(r)}},partial:!0};let o,s=0,a=0;return function(t){return function(t){const n=r.events[r.events.length-1];return s=n&&"linePrefix"===n[1].type?n[2].sliceSerialize(n[1],!0).length:0,o=t,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),l(t)}(t)};function l(t){return t===o?(a++,e.consume(t),l):a<3?n(t):(e.exit("codeFencedFenceSequence"),(0,h.On)(t)?(0,f.N)(e,c,"whitespace")(t):c(t))}function c(n){return null===n||(0,h.HP)(n)?(e.exit("codeFencedFence"),r.interrupt?t(n):e.check(Y,m,b)(n)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),u(n))}function u(t){return null===t||(0,h.HP)(t)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),c(t)):(0,h.On)(t)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),(0,f.N)(e,d,"whitespace")(t)):96===t&&t===o?n(t):(e.consume(t),u)}function d(t){return null===t||(0,h.HP)(t)?c(t):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),p(t))}function p(t){return null===t||(0,h.HP)(t)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),c(t)):96===t&&t===o?n(t):(e.consume(t),p)}function m(t){return e.attempt(i,b,g)(t)}function g(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),y}function y(t){return s>0&&(0,h.On)(t)?(0,f.N)(e,v,"linePrefix",s+1)(t):v(t)}function v(t){return null===t||(0,h.HP)(t)?e.check(Y,m,b)(t):(e.enter("codeFlowValue"),k(t))}function k(t){return null===t||(0,h.HP)(t)?(e.exit("codeFlowValue"),v(t)):(e.consume(t),k)}function b(n){return e.exit("codeFenced"),t(n)}},concrete:!0};var J=n(1555);const Z={name:"characterReference",tokenize:function(e,t,n){const r=this;let i,o,s=0;return function(t){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(t),e.exit("characterReferenceMarker"),a};function a(t){return 35===t?(e.enter("characterReferenceMarkerNumeric"),e.consume(t),e.exit("characterReferenceMarkerNumeric"),l):(e.enter("characterReferenceValue"),i=31,o=h.lV,c(t))}function l(t){return 88===t||120===t?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(t),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),i=6,o=h.ok,c):(e.enter("characterReferenceValue"),i=7,o=h.BM,c(t))}function c(a){if(59===a&&s){const i=e.exit("characterReferenceValue");return o!==h.lV||(0,J.s)(r.sliceSerialize(i))?(e.enter("characterReferenceMarker"),e.consume(a),e.exit("characterReferenceMarker"),e.exit("characterReference"),t):n(a)}return o(a)&&s++1&&e[f][1].end.offset-e[f][1].start.offset>1?2:1;const h=Object.assign({},e[n][1].end),d=Object.assign({},e[f][1].start);le(h,-l),le(d,l),s={type:l>1?"strongSequence":"emphasisSequence",start:h,end:Object.assign({},e[n][1].end)},a={type:l>1?"strongSequence":"emphasisSequence",start:Object.assign({},e[f][1].start),end:d},i={type:l>1?"strongText":"emphasisText",start:Object.assign({},e[n][1].end),end:Object.assign({},e[f][1].start)},r={type:l>1?"strong":"emphasis",start:Object.assign({},s.start),end:Object.assign({},a.end)},e[n][1].end=Object.assign({},s.start),e[f][1].start=Object.assign({},a.end),c=[],e[n][1].end.offset-e[n][1].start.offset&&(c=(0,o.V)(c,[["enter",e[n][1],t],["exit",e[n][1],t]])),c=(0,o.V)(c,[["enter",r,t],["enter",s,t],["exit",s,t],["enter",i,t]]),c=(0,o.V)(c,(0,T.W)(t.parser.constructs.insideSpan.null,e.slice(n+1,f),t)),c=(0,o.V)(c,[["exit",i,t],["enter",a,t],["exit",a,t],["exit",r,t]]),e[f][1].end.offset-e[f][1].start.offset?(u=2,c=(0,o.V)(c,[["enter",e[f][1],t],["exit",e[f][1],t]])):u=0,(0,o.m)(e,n-1,f-n+3,c),f=n+c.length-u-2;break}f=-1;for(;++f13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||65535===(65535&n)||65534===(65535&n)||n>1114111?"\ufffd":String.fromCodePoint(n)}const Se=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function Te(e,t,n){if(t)return t;if(35===n.charCodeAt(0)){const e=n.charCodeAt(1),t=120===e||88===e;return Ee(n.slice(t?2:1),t?16:10)}return(0,J.s)(n)||e}var Ae=n(268);const Ie={}.hasOwnProperty;function Ne(e,t,n){return"string"!==typeof t&&(n=t,t=void 0),function(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:s(ie),autolinkProtocol:T,autolinkEmail:T,atxHeading:s(ee),blockQuote:s($),characterEscape:T,characterReference:T,codeFenced:s(Y),codeFencedFenceInfo:a,codeFencedFenceMeta:a,codeIndented:s(Y,a),codeText:s(G,a),codeTextData:T,data:T,codeFlowValue:T,definition:s(Z),definitionDestinationString:a,definitionLabelString:a,definitionTitleString:a,emphasis:s(X),hardBreakEscape:s(te),hardBreakTrailing:s(te),htmlFlow:s(ne,a),htmlFlowData:T,htmlText:s(ne,a),htmlTextData:T,image:s(re),label:a,link:s(ie),listItem:s(se),listItemValue:d,listOrdered:s(oe,h),listUnordered:s(oe),paragraph:s(ae),reference:U,referenceString:a,resourceDestinationString:a,resourceTitleString:a,setextHeading:s(ee),strong:s(le),thematicBreak:s(ue)},exit:{atxHeading:c(),atxHeadingSequence:w,autolink:c(),autolinkEmail:Q,autolinkProtocol:q,blockQuote:c(),characterEscapeValue:A,characterReferenceMarkerHexadecimal:K,characterReferenceMarkerNumeric:K,characterReferenceValue:j,characterReference:W,codeFenced:c(y),codeFencedFence:g,codeFencedFenceInfo:p,codeFencedFenceMeta:m,codeFlowValue:A,codeIndented:c(v),codeText:c(P),codeTextData:A,data:A,definition:c(),definitionDestinationString:x,definitionLabelString:k,definitionTitleString:b,emphasis:c(),hardBreakEscape:c(N),hardBreakTrailing:c(N),htmlFlow:c(M),htmlFlowData:A,htmlText:c(O),htmlTextData:A,image:c(F),label:H,labelText:D,lineEnding:I,link:c(L),listItem:c(),listOrdered:c(),listUnordered:c(),paragraph:c(),referenceString:B,resourceDestinationString:z,resourceTitleString:V,resource:R,setextHeading:c(S),setextHeadingLineSequence:E,setextHeadingText:C,strong:c(),thematicBreak:c()}};Oe(t,(e||{}).mdastExtensions||[]);const n={};return r;function r(e){let r={type:"root",children:[]};const i={stack:[r],tokenStack:[],config:t,enter:l,exit:u,buffer:a,resume:f,data:n},s=[];let c=-1;for(;++c0){const e=i.tokenStack[i.tokenStack.length-1];(e[1]||Le).call(i,void 0,e[0])}for(r.position={start:Me(e.length>0?e[0][1].start:{line:1,column:1,offset:0}),end:Me(e.length>0?e[e.length-2][1].end:{line:1,column:1,offset:0})},c=-1;++c{n.d(t,{A:()=>E});var r=n(8085),i=n(8309),o=n(4493);function s(e){const t=[];let n=-1,r=0,i=0;for(;++n55295&&s<57344){const t=e.charCodeAt(n+1);s<56320&&t>56319&&t<57344?(a=String.fromCharCode(s,t),i=1):a="\ufffd"}else a=String.fromCharCode(s);a&&(t.push(e.slice(r,n),encodeURIComponent(a)),r=n+i+1,a=""),i&&(n+=i,i=0)}return t.join("")+e.slice(r)}function a(e,t){const n=[{type:"text",value:"\u21a9"}];return t>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),n}function l(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}var c=n(3731),u=n(8025);function f(e,t){const n=t.referenceType;let r="]";if("collapsed"===n?r+="[]":"full"===n&&(r+="["+(t.label||t.identifier)+"]"),"imageReference"===t.type)return[{type:"text",value:"!["+t.alt+r}];const i=e.all(t),o=i[0];o&&"text"===o.type?o.value="["+o.value:i.unshift({type:"text",value:"["});const s=i[i.length-1];return s&&"text"===s.type?s.value+=r:i.push({type:"text",value:r}),i}function h(e){const t=e.spread;return null===t||void 0===t?e.children.length>1:t}var d=n(3614);const p={blockquote:function(e,t){const n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)},break:function(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:"\n"}]},code:function(e,t){const n=t.value?t.value+"\n":"",r={};t.lang&&(r.className=["language-"+t.lang]);let i={type:"element",tagName:"code",properties:r,children:[{type:"text",value:n}]};return t.meta&&(i.data={meta:t.meta}),e.patch(t,i),i=e.applyData(t,i),i={type:"element",tagName:"pre",properties:{},children:[i]},e.patch(t,i),i},delete:function(e,t){const n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},emphasis:function(e,t){const n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},footnoteReference:function(e,t){const n="string"===typeof e.options.clobberPrefix?e.options.clobberPrefix:"user-content-",r=String(t.identifier).toUpperCase(),i=s(r.toLowerCase()),o=e.footnoteOrder.indexOf(r);let a,l=e.footnoteCounts.get(r);void 0===l?(l=0,e.footnoteOrder.push(r),a=e.footnoteOrder.length):a=o+1,l+=1,e.footnoteCounts.set(r,l);const c={type:"element",tagName:"a",properties:{href:"#"+n+"fn-"+i,id:n+"fnref-"+i+(l>1?"-"+l:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(a)}]};e.patch(t,c);const u={type:"element",tagName:"sup",properties:{},children:[c]};return e.patch(t,u),e.applyData(t,u)},heading:function(e,t){const n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},html:function(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}},imageReference:function(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return f(e,t);const i={src:s(r.url||""),alt:t.alt};null!==r.title&&void 0!==r.title&&(i.title=r.title);const o={type:"element",tagName:"img",properties:i,children:[]};return e.patch(t,o),e.applyData(t,o)},image:function(e,t){const n={src:s(t.url)};null!==t.alt&&void 0!==t.alt&&(n.alt=t.alt),null!==t.title&&void 0!==t.title&&(n.title=t.title);const r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)},inlineCode:function(e,t){const n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);const r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)},linkReference:function(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return f(e,t);const i={href:s(r.url||"")};null!==r.title&&void 0!==r.title&&(i.title=r.title);const o={type:"element",tagName:"a",properties:i,children:e.all(t)};return e.patch(t,o),e.applyData(t,o)},link:function(e,t){const n={href:s(t.url)};null!==t.title&&void 0!==t.title&&(n.title=t.title);const r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)},listItem:function(e,t,n){const r=e.all(t),i=n?function(e){let t=!1;if("list"===e.type){t=e.spread||!1;const n=e.children;let r=-1;for(;!t&&++r0&&n.children.unshift({type:"text",value:" "}),n.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),o.className=["task-list-item"]}let a=-1;for(;++a0){const r={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},o=(0,u.PW)(t.children[1]),s=(0,u.Y)(t.children[t.children.length-1]);o&&s&&(r.position={start:o,end:s}),i.push(r)}const o={type:"element",tagName:"table",properties:{},children:e.wrap(i,!0)};return e.patch(t,o),e.applyData(t,o)},tableCell:function(e,t){const n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},tableRow:function(e,t,n){const r=n?n.children:void 0,i=0===(r?r.indexOf(t):1)?"th":"td",o=n&&"table"===n.type?n.align:void 0,s=o?o.length:t.children.length;let a=-1;const l=[];for(;++a0&&n.push({type:"text",value:"\n"}),n}function w(e){let t=0,n=e.charCodeAt(t);for(;9===n||32===n;)t++,n=e.charCodeAt(t);return e.slice(t)}function C(e,t){const n=function(e,t){const n=t||y,r=new Map,o=new Map,s=new Map,a={...p,...n.handlers},l={all:function(e){const t=[];if("children"in e){const n=e.children;let r=-1;for(;++r0&&u.push({type:"text",value:" "});let e="string"===typeof n?n:n(h,c);"string"===typeof e&&(e={type:"text",value:e}),u.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+l+(c>1?"-"+c:""),dataFootnoteBackref:"",ariaLabel:"string"===typeof r?r:r(h,c),className:["data-footnote-backref"]},children:Array.isArray(e)?e:[e]})}const p=o[o.length-1];if(p&&"element"===p.type&&"p"===p.tagName){const e=p.children[p.children.length-1];e&&"text"===e.type?e.value+=" ":p.children.push({type:"text",value:" "}),p.children.push(...u)}else o.push(...u);const m={type:"element",tagName:"li",properties:{id:t+"fn-"+l},children:e.wrap(o,!0)};e.patch(i,m),f.push(m)}if(0!==f.length)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:c,properties:{...(0,i.Ay)(u),id:"footnote-label"},children:[{type:"text",value:o}]},{type:"text",value:"\n"},{type:"element",tagName:"ol",properties:{},children:e.wrap(f,!0)},{type:"text",value:"\n"}]}}(n),f=Array.isArray(o)?{type:"root",children:o}:o||{type:"root",children:[]};return u&&((0,r.ok)("children"in f),f.children.push({type:"text",value:"\n"},u)),f}function E(e,t){return e&&"run"in e?async function(n,r){const i=C(n,{file:r,...t});await e.run(i,r)}:function(n,r){return C(n,{file:r,...t||e})}}},9309:(e,t,n)=>{n.d(t,{l:()=>h});var r=n(2996),i=n(5626),o=n(8085),s=n(1583),a=n(8964),l=n(3825);const c=function(e){const t=this.constructor.prototype,n=t[e],r=function(){return n.apply(r,arguments)};Object.setPrototypeOf(r,t);const i=Object.getOwnPropertyNames(n);for(const o of i){const e=Object.getOwnPropertyDescriptor(n,o);e&&Object.defineProperty(r,o,e)}return r},u={}.hasOwnProperty;class f extends c{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=(0,a.S)()}copy(){const e=new f;let t=-1;for(;++t0){let[r,...a]=t;const l=n[o][1];(0,s.A)(l)&&(0,s.A)(r)&&(r=i(!0,l,r)),n[o]=[e,r,...a]}}}}const h=(new f).freeze();function d(e,t){if("function"!==typeof t)throw new TypeError("Cannot `"+e+"` without `parser`")}function p(e,t){if("function"!==typeof t)throw new TypeError("Cannot `"+e+"` without `compiler`")}function m(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function g(e){if(!(0,s.A)(e)||"string"!==typeof e.type)throw new TypeError("Expected node, got `"+e+"`")}function y(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function v(e){return function(e){return Boolean(e&&"object"===typeof e&&"message"in e&&"messages"in e)}(e)?e:new l.T(e)}}}]); \ No newline at end of file diff --git a/static/js/oplayer.3915c8e9.chunk.js b/static/js/oplayer.3915c8e9.chunk.js deleted file mode 100644 index 72f85da9..00000000 --- a/static/js/oplayer.3915c8e9.chunk.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunk_web_index=self.webpackChunk_web_index||[]).push([[533],{3991:(e,t,n)=>{var i,s,r,o,a,l,c,d,u;function h(e){return function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=1540483477,i=24,s=t^e.length,r=e.length,o=0;for(;r>=4;){let t=p(e,o);t=m(t,n),t^=t>>>i,t=m(t,n),s=m(s,n),s^=t,o+=4,r-=4}switch(r){case 3:s^=g(e,o),s^=e.charCodeAt(o+2)<<16,s=m(s,n);break;case 2:s^=g(e,o),s=m(s,n);break;case 1:s^=e.charCodeAt(o),s=m(s,n)}return s^=s>>>13,s=m(s,n),s^=s>>>15,s>>>0}(e).toString(36)}function p(e,t){return e.charCodeAt(t++)+(e.charCodeAt(t++)<<8)+(e.charCodeAt(t++)<<16)+(e.charCodeAt(t)<<24)}function g(e,t){return e.charCodeAt(t++)+(e.charCodeAt(t++)<<8)}function m(e,t){return(65535&(e|=0))*(t|=0)+(((e>>>16)*t&65535)<<16)|0}function v(e){return Boolean(e&&"object"===typeof e&&!Array.isArray(e))}function f(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;iy,Ay:()=>X,D9:()=>f,Fr:()=>M,VD:()=>j,nr:()=>A,un:()=>F});var y,b=/[(),]|"(?:\\.|[^"\n])*"|'(?:\\.|[^'\n])*'|\/\*[\s\S]*?\*\//g;function x(e){if(-1===e.indexOf(","))return[e];for(var t,n=[],i=[],s=0;t=b.exec(e);)switch(t[0]){case"(":s++;break;case")":s--;break;case",":if(s)break;n.push(t.index)}for(t=n.length;t--;)i.unshift(e.slice(n[t]+1)),e=e.slice(0,n[t]);return i.unshift(e),i}function $(e,t){let n=x(e);return x(t).map((e=>e.indexOf("&")>=0?e:"&"+e)).reduce(((e,t)=>e.concat(n.map((e=>t.replace(/\&/g,e))))),[]).join(",")}function w(e){return 0===e.indexOf("@media")}function k(e){return 0===e.indexOf("@keyframes")}function E(e,t){var n;let i=t.rules,s=t.mediaQuery,r=t.globalSelector,o={};return r&&(e=r),null==(n=Object.keys(i))||n.forEach((t=>{if(function(e){return 0===e.indexOf("@global")}(t)){const n=t,a=(t=t.substring(8)).indexOf("&");let l;-1!=a?(l=$(e,t),r=t.substring(0,a-1).trim()):l=t,f(o,E(l,{mediaQuery:s,rules:i[n],globalSelector:l}))}else if(function(e){let t=[":",".","[",">"," "],n=!1,i=e.charAt(0);for(let s=0;s=0}(t))f(o,E($(e,t),{rules:i[t],mediaQuery:s}));else if(w(t))f(o,E(e,{mediaQuery:(h=s,p=t,h?"@media "+h.substring(6)+" and "+p.substring(6):p),rules:i[t]}));else{var n,a,l,c,d,u;if(s)null!==(n=o[s])&&void 0!==n||(o[s]={}),null!==(c=(a=o[s])[l=e])&&void 0!==c||(a[l]={}),o[s][e][t]=i[t];else if(k(t))o[t]=i[t];else null!==(u=o[d=e])&&void 0!==u||(o[d]={}),o[e][t]=i[t]}var h,p})),o}function L(e){let t=[];for(const n in e)if(Object.hasOwnProperty.call(e,n)){const i=e[n];v(i)?t.push(n+"{"+L(i)+"}"):t.push(n+":"+i)}return/^\d%/.test(t[0])?t.join(" "):t.join(";")}function S(e){let t=[];for(const n in e)if(Object.hasOwnProperty.call(e,n)){const i=e[n];if(w(n))t.push(n+"{"+S(i)+"}");else if(k(n))t.push(n+"{"+L(i)+"}");else{const e=Object.entries(i).map((e=>e[0]+":"+e[1])).join(";");t.push(n+"{"+e+"}")}}return t}function T(e,t){return S(E(t,{rules:e}))}(e=>{function t(t){if(!(0,e.isBrowser)())return null;let n=document.createElement("style");n.setAttribute("data-"+t,""),n.appendChild(document.createTextNode("")),(document.head||document.getElementsByTagName("head")[0]).appendChild(n);for(let e=0;e1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";const i=-1!==e.indexOf("#"),s=-1!==e.indexOf("."),r=i?e.split("#"):s?e.split("."):[e],o=r[0],a=r[1],l=document.createElement(o);return i&&(l.id=a),s&&l.classList.add(a),n&&(l.innerHTML=n),Object.keys(t).forEach((e=>{const n=t[e];"video"!==o&&"audio"!==o||"boolean"!==typeof n?"undefined"!==typeof n&&l.setAttribute(e,""+n):n&&l.setAttribute(e,"")})),l},e.render=(e,t)=>t.appendChild(e),e.isBrowser=()=>Boolean("undefined"!==typeof globalThis&&globalThis.document&&globalThis.document.documentElement),e.createSheet=t;const n=(()=>{const e=Object.create({});return t=>{const n="object"==typeof t?JSON.stringify(t):t;return e[n]||(e[n]="css-"+h(n)),e[n]}})();e.createCss=e=>{let t=e.sheet,i=e.ssrData;return function(){for(var e,s=arguments.length,r=new Array(s),o=0;o{t.insertRule(e,t.cssRules.length)})):i=i.concat(d),c}},e.createStyled=()=>{const n=[],i=t("oplayer");return{css:(0,e.createCss)({sheet:i,ssrData:n}),getCssValue:()=>n}};var i=(0,e.createStyled)();e.css=i.css,e.getCssValue=i.getCssValue,e.cls=e=>"css-"+h(e)})(y||(y={}));const C=y,P=/(iPad)/gi.test(null==(i=globalThis.navigator)?void 0:i.userAgent)||/Macintosh/i.test(null==(s=globalThis.navigator)?void 0:s.userAgent)&&Boolean(null==(r=globalThis.navigator)?void 0:r.maxTouchPoints)&&(null==(o=globalThis.navigator)?void 0:o.maxTouchPoints)>=1,z=/iPhone/gi.test(null==(a=globalThis.navigator)?void 0:a.userAgent),A=/^((?!chrome|android).)*safari/i.test(null==(l=globalThis.navigator)?void 0:l.userAgent),F=z||P,M=/Android|webOS|iPhone|iPad|iPod|BlackBerry|Windows Phone/i.test(null==(c=globalThis.navigator)?void 0:c.userAgent)||F,_=/mqqbrowser/i.test(null==(d=globalThis.navigator)?void 0:d.userAgent)&&!/ qq/i.test(null==(u=globalThis.navigator)?void 0:u.userAgent),O=(e,t,n)=>{var i;const s=document.createElement("script");s.src=e,s.onload=t,s.onerror=n;const r=document.getElementsByTagName("script")[0];null==(i=null==r?void 0:r.parentNode)||i.insertBefore(s,r)},R={},I=e=>"undefined"===typeof e,j=function(e,t,n){let i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:()=>!0,s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:O;const r=e=>I(window[e])?window.exports&&window.exports[e]?window.exports[e]:window.module&&window.module.exports&&window.module.exports[e]?window.module.exports[e]:void 0:window[e],o=r(t);return o&&i(o)?Promise.resolve(o):new Promise(((i,o)=>{if(!I(R[e]))return void R[e].push({resolve:i,reject:o});R[e]=[{resolve:i,reject:o}];const a=t=>{var n;null==(n=R[e])||n.forEach((e=>e.resolve(t)))};if(!I(n)){const e=window[n];window[n]=function(){I(e)||e.apply(void 0,arguments),a(r(t))}}s(e,(()=>{I(n)&&a(r(t))}),(t=>{var n;null==(n=R[e])||n.forEach((e=>{e.reject(t)})),delete R[e]}))}))},B=["abort","canplay","canplaythrough","durationchange","emptied","ended","error","loadeddata","loadedmetadata","loadstart","pause","play","playing","progress","ratechange","seeked","seeking","stalled","suspend","timeupdate","volumechange","waiting","encrypted","waitingforkey","enterpictureinpicture","leavepictureinpicture"],H=["contextmenu"];[].concat(B,H,["loadedplugin","videoqualitychange","videosourcechange","destroy"]);class q{constructor(){this.events=Object.create(null)}on(e,t){this.events[e]||(this.events[e]=[]),this.events[e].push(t)}onAny(e,t){e.forEach((e=>this.on(e,t)))}once(e,t){const n=n=>{t({type:e,payload:n.payload})};n.raw=t,this.on(e,n)}off(e,t){if(this.events[e])for(let n=0;n{n({type:e,payload:t}),n.raw&&s.push(n)})),null==(i=this.events["*"])||i.forEach((n=>{n({type:e,payload:t}),n.raw&&s.push(n)})),s.forEach((t=>{this.off(e,t)}))}}const N={Play:"\u64ad\u653e",Pause:"\u6682\u505c",Loop:"\u5faa\u73af\u64ad\u653e",Volume:"\u97f3\u91cf","Volume: %s":"\u97f3\u91cf\uff1a%s",Mute:"\u9759\u97f3",Speed:"\u64ad\u653e\u901f\u5ea6",LIVE:"\u76f4\u64ad",Language:"\u8bed\u8a00",Screenshot:"\u622a\u56fe",Subtitle:"\u5b57\u5e55",Quality:"\u753b\u8d28",Fullscreen:"\u5168\u5c4f","TextDecoder Not Supported":"\u4e0d\u652f\u6301\u539f\u751f\u5b57\u5e55",Settings:"\u8bbe\u7f6e","Picture in Picture":"\u753b\u4e2d\u753b",Danmaku:"\u5f39\u5e55",Display:"\u663e\u793a",Opacity:"\u900f\u660e\u5ea6",FontSize:"\u5b57\u4f53\u5927\u5c0f","Display Area":"\u663e\u793a\u533a\u57df",Off:"\u5173\u95ed",Auto:"\u81ea\u52a8",Default:"\u9ed8\u8ba4",Normal:"\u6b63\u5e38","%ss":"%s\u79d2",Close:"\u5173\u95ed","Can be closed after %ss":"%s\u79d2\u540e\u53ef\u5173\u95ed\u5e7f\u544a"};class D{constructor(e){this.languages={zh:N,"zh-CN":N,en:Object.keys(N).reduce(((e,t)=>(e[t]=t,e)),{})},this.lang="auto"===e?navigator.language:e,this.languages[this.lang]||navigator.languages.some((e=>{if(this.languages[e])return this.lang=e,!0;if(-1!==e.indexOf("-")){const t=e.split("-")[0];if(t&&this.languages[t])return this.lang=t,!0}return!1})),this.languages[this.lang]||(this.lang="zh-CN")}get(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i{var e;return null!==(e=n[r++])&&void 0!==e?e:""}))}update(e){f(this.languages,e)}}const V={autoplay:!1,muted:!1,loop:!1,volume:1,preload:"metadata",playbackRate:1,playsinline:!0,lang:"auto",source:{},videoAttr:{},isLive:!1,autopause:!0,isNativeUI:()=>_},U=class e{constructor(e,t){if(this.plugins=[],this.context={},this.listeners=Object.create(null),this.hasError=!1,this.isSourceChanging=!1,this.container="string"==typeof e?document.querySelector(e):e,!this.container)throw new Error(("string"==typeof e?e:"Element")+"does not exist");this.options=Object.assign({},V,"string"===typeof t?{source:{src:t}}:t),this.locales=new D(this.options.lang),this.eventEmitter=new q}static make(t,n){return new e(t,n)}use(e){return e.forEach((e=>{this.plugins.push(e)})),this}create(){return this.render(),this.initEvent(),this.plugins.forEach((e=>this.applyPlugin(e,!0))),this.options.source.src&&this.load(this.options.source),e.players.push(this),this}initEvent(){this.listeners.error=e=>{this.$video.error&&(this.hasError=!0,this.eventEmitter.emit("error",e))},this.$video.addEventListener("error",(e=>this.listeners.error(e)));const e=(e,t)=>{this.eventEmitter.emit(e,t)};[[this.$video,["fullscreenchange","webkitbeginfullscreen","webkitendfullscreen"],["fullscreenerror","webkitfullscreenerror","mozfullscreenerror"]],[this.$root,["fullscreenchange","webkitfullscreenchange"],["fullscreenerror","webkitfullscreenerror","mozfullscreenerror"]]].forEach((t=>{const n=t[0];t.slice(1).forEach((t=>{const i=t[0];this.listeners[i]=e,t.forEach((e=>{n.addEventListener(e,(e=>{this.listeners[i](i,e)}),{passive:!0})}))}))})),[[this.$video,B],[this.$root,H]].forEach((t=>{let n=t[0];t[1].forEach((t=>{this.listeners[t]||(this.listeners[t]=e,n.addEventListener(t,(e=>{var n;null==(n=this.listeners)||n[t](t,e)}),{passive:!0}))}))}))}render(){this.$video=C.create("video."+C.css("\n width: 100%;\n height: 100%;\n display: block;\n position: relative;\n "),Object.assign({autoplay:this.options.autoplay,loop:this.options.loop,playsinline:this.options.playsinline,"webkit-playsinline":this.options.playsinline,"x5-playsinline":this.options.playsinline,preload:this.options.preload,poster:this.options.source.poster},this.options.videoAttr));const e=this.options,t=e.muted,n=e.volume,i=e.playbackRate;t&&this.mute(),this.$video.volume=n,setTimeout((()=>{this.$root&&this.setPlaybackRate(i)})),this.$root=C.create("div."+C.css("\n position: relative;\n width: 100%;\n height: 100%;\n overflow: hidden;\n background-color: #000;\n ")),C.render(this.$video,this.$root),C.render(this.$root,this.container)}async load(e){var t;await(null==(t=this.loader)?void 0:t.destroy()),this.loader=void 0;for(const n of this.plugins)if(n.load){const t=await n.load(this,e);if(0!=t&&!this.loader){this.loader=t,this.emit("loaderchange",t);break}}return this.loader||(this.$video.src=e.src),e}applyPlugin(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const n=e.name,i=e.key;if(this.context[e.key||e.name])throw new Error("duplicate plugin");t||this.plugins.push(e);const s=e.apply(this);s&&(this.context[i||n]=s)}on(e,t){return"string"===typeof e?this.eventEmitter.on(e,t):Array.isArray(e)?this.eventEmitter.onAny(e,t):"function"===typeof e&&this.eventEmitter.on("*",e),this}once(e,t){this.eventEmitter.once(e,t)}off(e,t){this.eventEmitter.off(e,t)}emit(e,t){this.eventEmitter.emit(e,t)}setPoster(e){this.$video.poster=e}play(){if((this.$video.src||this.$video.currentSrc)&&!this.isSourceChanging){if(this.options.autopause)for(let t=0;t1?1:e<0?0:e,this.$video.volume>0&&this.isMuted&&this.unmute()}setPlaybackRate(e){this.$video.playbackRate=e}seek(e){this.$video.currentTime=e}setLoop(e){this.$video.loop=e}async enterFullscreen(){this.isInPip&&await this.exitPip(),this._requestFullscreen?this._requestFullscreen.call(this.$root,{navigationUI:"hide"}):this.$video.webkitEnterFullscreen()}exitFullscreen(){return this._exitFullscreen.call(document)}get isFullscreenEnabled(){return document.fullscreenEnabled||document.webkitFullscreenEnabled||document.mozFullScreenEnabled||document.msFullscreenEnabled||this.$video.webkitEnterFullscreen}get isFullScreen(){return Boolean((document.fullscreenElement||document.webkitFullscreenElement||document.mozFullScreenElement||document.msFullscreenElement)===this.$root||this.$video.webkitDisplayingFullscreen)}toggleFullScreen(){return this.isFullScreen?this.exitFullscreen():this.enterFullscreen()}get isPipEnabled(){return document.pictureInPictureEnabled}enterPip(){return this.$video.requestPictureInPicture()}exitPip(){return!!this.isInPip&&document.exitPictureInPicture()}get isInPip(){return document.pictureInPictureElement==this.$video}togglePip(){return this.isInPip?this.exitPip():this.enterPip()}changeQuality(e){return this._loader(e,{keepPlaying:!0,keepTime:!0,preEvent:"videoqualitychange",event:"videoqualitychanged",brokenEvent:"qualitychangeerror"})}changeSource(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return this._loader(e,{keepPlaying:t,preEvent:"videosourcechange",event:"videosourcechanged",brokenEvent:"sourcechangeerror"})}_loader(e,t){return new Promise(((n,i)=>{if(this.isSourceChanging)return i(Error("Previous Source is Changing."));const s=this.isPlaying,r=this.currentTime,o=this.volume,a=this.playbackRate;this.pause(),this.hasError=!1,this.isSourceChanging=!0,this.emit(t.preEvent,e);const l=t.keepPlaying,c=t.keepTime,d="none"==this.options.preload,u=d?"loadstart":"loadedmetadata",h=l&&s;let p;const g=n=>{this.$root&&(this.off(u,v),this.emit(t.brokenEvent,{source:p||e,error:n}),"videosourcechanged"==t.event?this.isSourceChanging=!1:this.load(this.options.source).then(m).finally((()=>{this.isSourceChanging=!1})),i(n))},m=()=>{o!=this.volume&&this.setVolume(o),a!=this.playbackRate&&this.setPlaybackRate(a),d&&c&&this.$video.load(),c&&!this.options.isLive&&this.seek(r),h&&!this.isPlaying&&this.$video.play(),Object.assign(this.options.source,p)},v=()=>{this.$root&&(this.off("error",g),m(),this.isSourceChanging=!1,this.emit(t.event,p),n())};return(e instanceof Promise?e:Promise.resolve(e)).then((e=>{if(!e.src)throw new Error("Empty Source");return p=e,this.$video.poster=e.poster||"",this.once("error",g),this.once(u,v),e})).then((e=>this.load(e))).catch(g)}))}destroy(){e.players.splice(e.players.indexOf(this),1);const t=this.eventEmitter,n=this.loader,i=this.plugins,s=this.container,r=this.$root,o=this.$video,a=this.isPlaying,l=this.isFullScreen,c=this.isInPip;t.emit("destroy"),t.offAll(),null==n||n.destroy(),i.forEach((e=>{var t;return!e.load&&(null==(t=e.destroy)?void 0:t.call(e))})),a&&this.pause(),l&&this.exitFullscreen(),c&&this.exitPip(),o.src&&URL.revokeObjectURL(o.src),s.removeChild(r),this.eventEmitter=this.locales=this.options=this.listeners=this.context=this.plugins=this.container=this.$root=this.$video=this.loader=void 0}get isNativeUI(){return this.options.isNativeUI()}get state(){return this.$video.readyState}get isPlaying(){return!this.$video.paused}get isMuted(){return this.$video.muted}get isEnded(){return this.$video.ended}get isLoop(){return this.$video.loop}get isAutoPlay(){return this.$video.autoplay}get duration(){return this.$video.duration}get buffered(){return this.$video.buffered}get currentTime(){return this.$video.currentTime}get volume(){return this.$video.volume}get playbackRate(){return this.$video.playbackRate}get _requestFullscreen(){return HTMLElement.prototype.requestFullscreen||HTMLElement.prototype.webkitRequestFullscreen||HTMLElement.prototype.mozRequestFullScreen||HTMLElement.prototype.msRequestFullscreen}get _exitFullscreen(){return Document.prototype.exitFullscreen||Document.prototype.webkitExitFullscreen||Document.prototype.cancelFullScreen||Document.prototype.mozCancelFullScreen||Document.prototype.msExitFullscreen}static get version(){return"1.2.36"}};U.players=[];let X=U;globalThis.window&&console.log("%cOPlayer%c v%s\n %c\nOh! Another HTML5 video player.\nhttps://github.com/shiyiya/oplayer\n","font-size:32px;","font-size:12px;color:#999999;",X.version,"font-size:14px;")},1851:(e,t,n)=>{n.d(t,{NN:()=>a,gv:()=>r});var i=n(3991);!function(){try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode('.playlist{position:absolute;top:0;left:100%;height:100%;z-index:9;width:18em;transition:transform .3s;background-color:#1c1c1ce6}@media (max-width: 991px){.playlist{max-width:70%}}.playlist.playlist__active{transform:translate(-100%)}.playlist.playlist__wait .playlist-list{cursor:wait}.playlist.playlist__wait .playlist-list .playlist-list-item{pointer-events:none}.playlist.playlist__active:before{content:"";position:absolute;width:100vw;height:100%;right:0;z-index:-1}.playlist-head{display:flex;justify-content:space-between;background:#000;border-bottom:1px solid #484848;padding:.2em .2em .2em .4em;align-items:center;color:#fff;box-sizing:border-box;height:2.2em}.playlist-head>span{font-size:.8em}.playlist-head .playlist-back{display:flex;align-items:center;cursor:pointer}.playlist-head .playlist-back>svg{width:1.75em;height:1.75em;fill:#fff;pointer-events:none}.playlist-head .playlist-back:hover{background-color:#ffffff4d;border-radius:2px}.playlist-list{overflow:auto;height:100%;padding-bottom:2.2em;box-sizing:border-box;color:#ccc}.playlist-list::-webkit-scrollbar{width:.3em}.playlist-list::-webkit-scrollbar-thumb{background:#ccc}.playlist-list-item{position:relative;border-bottom:1px solid #444;padding:8px;display:flex;height:5em;cursor:pointer;box-sizing:border-box;overflow:hidden}.playlist-list-item>*{pointer-events:none}.playlist-list-item:hover,.playlist-list-item.playlist-source__active{color:#fff;background-color:#ffffff1a}.playlist-list-item.playlist-source__progress:before{content:"";top:0;left:-100%;position:absolute;width:100%;height:100%;animation:progress 1s infinite;background:linear-gradient(to right,transparent,rgba(255,255,255,.4),transparent)}@keyframes progress{0%{left:-100%}to{left:100%}}.playlist-list-item-thumb{background-color:#000;border:1px solid #444;float:left;margin-right:10px;height:100%;aspect-ratio:16/9;color:#555;display:flex;justify-content:center;align-items:center;position:relative}.playlist-list-item-img{height:100%;width:100%;object-fit:cover}.playlist-list-item-img__error:after{content:"ERROR";position:absolute;left:0;top:0;width:100%;height:100%;background-color:#000;display:flex;justify-content:center;align-items:center}.playlist-list-item-desc{width:100%;font-size:14px;display:flex;flex-direction:column;justify-content:space-evenly}.playlist-list-item-desc>p{margin:0 0 6px;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;overflow:hidden;-webkit-box-orient:vertical;line-height:1.2}')),document.head.appendChild(e)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}}();const s=!!globalThis.chrome;class r{constructor(e){this.options=e,this.name="oplayer-plugin-chromecast",this.version="1.0.13"}apply(e){if(this.canPlay())return this.player=e,this.registerUI(),this}get cast(){return cast.framework.CastContext.getInstance()}get castSessionMedia(){var e;return null==(e=this.cast.getCurrentSession())?void 0:e.getSessionObj().media[0]}get isCastConnected(){return this.cast.getCastState()===cast.framework.CastState.CONNECTED}get device(){var e;return null==(e=this.cast.getCurrentSession())?void 0:e.getCastDevice()}hasActiveCastSession(e){var t,n;return(null==(n=null==(t=this.castSessionMedia)?void 0:t.media)?void 0:n.contentId)===(null==e?void 0:e.src)}canPlay(){return s&&!i.un}async __requestChromeCast(){var e;if(this._player||(this._player=new cast.framework.RemotePlayer,new cast.framework.RemotePlayerController(this._player)),this.hasActiveCastSession(this.player.options.source))return;this.cast.setOptions({receiverApplicationId:window.chrome.cast.media.DEFAULT_MEDIA_RECEIVER_APP_ID,autoJoinPolicy:chrome.cast.AutoJoinPolicy.ORIGIN_SCOPED,resumeSavedSession:!0,androidReceiverCompatible:!0,...this.options});const t=await this.cast.requestSession();if(t)throw new Error(`Chrome Cast Error Code: ${t}`);return null==(e=this.cast.getCurrentSession())?void 0:e.loadMedia(this.__buildRequest())}__buildRequest(){var e,t;const{source:n,isLive:i}=this.player.options,s=new chrome.cast.media.MediaInfo(n.src,n.type||"video/mp4");s.streamType=i?chrome.cast.media.StreamType.LIVE:chrome.cast.media.StreamType.BUFFERED;const r=new chrome.cast.media.GenericMediaMetadata;n.title&&(r.title=n.title),n.poster&&(r.images=[{url:n.poster,height:null,width:null}]),s.metadata=r;const o=null==(t=null==(e=this.player.context.ui)?void 0:e.config.subtitle)?void 0:t.source;o&&(s.tracks=o.map(((e,t)=>{const n=new chrome.cast.media.Track(t,chrome.cast.media.TrackType.TEXT);return n.name=e.name,n.trackContentId=e.src,n.trackContentType=e.type||"text/vtt",n.language=e.language||e.name,n.subtype=chrome.cast.media.TextTrackType.CAPTIONS,n})));const a=new chrome.cast.media.LoadRequest(s);return a.autoplay=this.player.isPlaying,a.currentTime=this.player.currentTime,a}async _loadCast(){var e;null!=(e=window.cast)&&e.framework||(await(0,i.VD)("https://www.gstatic.com/cv/js/sender/v1/cast_sender.js?loadCastFramework=1","cast"),await customElements.whenDefined("google-cast-launcher"))}async start(){try{await this._loadCast();const e=await this.__requestChromeCast();if(e)throw new Error(`Chrome Cast Error Code: ${e}`)}catch(e){this.player.emit("cast-error",e)}}registerUI(){if(!this.player.context.ui)return;const{menu:e,icons:t}=this.player.context.ui;null==e||e.register({name:"ChromeCast",position:"top",icon:t.chromecast||'',onClick:()=>this.start()})}}const o=class e{constructor(e){this.key="playlist",this.name="oplayer-plugin-playlist",this.version="1.0.13",this.options=Object.assign({autoNext:!0,autoHide:!0,sources:[]},e)}apply(e){if(!e.isNativeUI)return this.player=e,this._init(),this}async _init(){var t;const i=()=>{var e;this.renderContainer(),this.changeSourceList(this.options.sources),"number"==typeof s&&this.changeSource(s),this.options.autoNext&&this.player.on(["ended","error"],(()=>{this.next()})),null==(e=this.player.context.ui.keyboard)||e.register({l:()=>{this.$root.classList.toggle("playlist__active")}})},{initialIndex:s,m3uList:r,sources:o}=this.options;r&&null!=(t=o[0])&&t.src?(e.m3u8Parser||(e.m3u8Parser=globalThis.m3u8Parser||await Promise.all([n.e(447),n.e(271)]).then(n.bind(n,3713))),fetch(o[0].src).then((e=>e.text())).then((t=>{const n=new e.m3u8Parser.Parser;n.push(t),n.end(),this.options.sources=n.manifest.segments.map((e=>null!=r&&r.sourceFormat?r.sourceFormat(e):{src:e.uri,title:e.title})),i()})).catch((e=>{this.player.emit("notice",{pluginName:this.name,text:"Playlist: "+e.message})}))):i()}get isWaiting(){return this.$root.classList.contains("playlist__wait")}changeSource(e){if(!this.options.sources[e]||this.isWaiting)return;const t=this.$root.querySelector(`.playlist-list-item[data-index='${e}']`);this.$root.classList.add("playlist__wait"),null==t||t.classList.add("playlist-source__progress");const n=this.options.sources[e];return new Promise((t=>{var i,s;n.src||!this.options.customFetcher?t(n):t(null==(s=(i=this.options).customFetcher)?void 0:s.call(i,n,e))})).then((e=>{if(!e.src)throw this.player.context.ui.notice("Empty Source"),new Error("Empty Source");const{src:t,poster:n,format:i,title:s,subtitles:r,thumbnails:o,highlights:a,danmaku:l}=e;return this.player.changeSource({src:t,poster:n,format:i,title:s}).then((()=>{var e;r&&this.player.context.ui.subtitle.changeSource(r),o&&this.player.context.ui.changThumbnails(o),a&&this.player.context.ui.changHighlightSource(a),l&&(null==(e=this.player.context.danmaku)||e.bootstrap(l))}))})).then((()=>{this.player.emit("playlistsourcechange",{source:n,id:e}),this.options.autoHide&&setTimeout((()=>{this.hideUI()}),300)})).catch((t=>{this.player.emit("playlistsourceerror",{error:(null==t?void 0:t.payload)||t,idx:e})})).finally((()=>{var n;this.currentIndex=e,this._updateHeader(),null==(n=this.$root.querySelector(".playlist-source__active"))||n.classList.remove("playlist-source__active"),null==t||t.classList.add("playlist-source__active"),setTimeout((()=>{this.$root.classList.remove("playlist__wait"),null==t||t.classList.remove("playlist-source__progress")}),300)}))}changeSourceList(e){this.options.sources=e,this.renderList(e),this.player.emit("playlistchange",e)}next(){this.changeSource((this.currentIndex||0)+1)}previous(){this.changeSource((this.currentIndex||0)-1)}showUI(){this.$root.classList.add("playlist__active")}hideUI(){this.$root.classList.remove("playlist__active")}renderContainer(){const e=`\n
\n ${this.player.locales.get("PLAYLIST")}\n
${this.player.context.ui.icons.playlist||''}
\n
\n
\n
`;this.$root=document.createElement("div"),this.$root.innerHTML=e,this.$root.className="playlist",this.$root.onclick=e=>{const t=e.target;t.classList.contains("playlist-list-item")?this.changeSource(+t.getAttribute("data-index")):(t.classList.contains("playlist-back")||t==this.$root&&t.classList.contains("playlist__active"))&&this.hideUI()},this.player.context.ui.$root.appendChild(this.$root),this.player.context.ui.menu.register({name:"Playlist",icon:'',position:"top",onClick:()=>{this.showUI();const e=this.$root.querySelector(".playlist-list"),t=this.$root.querySelector(".playlist-source__active");t&&e.scrollHeight>0&&this.currentIndex&&e.scrollTo(0,t.offsetTop-t.offsetHeight)}})}renderList(e){const t=e.map(((e,t)=>`\n
\n
\n ${e.poster?`${e.title||`:"EMPTY"}\n
\n\n
\n

${e.title}

\n ${e.duration?`${e.duration}`:""}\n
\n
`)).join("");this._updateHeader(),this.$root.querySelector(".playlist-list").innerHTML=t}_updateHeader(){this.$root.querySelector(".playlist-head-title").textContent=`${this.player.locales.get("PLAYLIST")} (${void 0!==this.currentIndex?`${this.currentIndex+1}/`:""}${this.options.sources.length})`}destroy(){this.currentIndex=void 0,this.options.sources=[],this.renderList([])}};o.m3u8Parser=globalThis.m3u8Parser;let a=o},6397:(e,t,n)=>{n.d(t,{Ay:()=>a});var i=n(568),s=n(3991),r=n(548);const o=["playing","duration","aspectRatio","plugins","onEvent"];const a=(0,r.forwardRef)(((e,t)=>{const n=e.playing,a=e.duration,c=e.aspectRatio,d=void 0===c?9/16:c,u=e.plugins,h=void 0===u?[]:u,p=e.onEvent,g=function(e,t){if(null==e)return{};var n,i,s={},r=Object.keys(e);for(i=0;i=0||(s[n]=e[n]);return s}(e,o),m=(0,r.useRef)(p);m.current=p;const v=(0,r.useRef)(null),f=function(e){const t=(0,r.useRef)();return(0,r.useEffect)((()=>{t.current=e}),[e]),t.current}(g.source),y=v.current&&v.current.$root,b=(0,r.useCallback)((e=>{null===e||y||(v.current=s.Ay.make(e,g).use(h).create(),"number"==typeof a&&v.current.seek(a/1e3),p&&v.current.on((e=>{var t;return null==(t=m.current)?void 0:t.call(m,e)})))}),[]);return l(y,(()=>{n?v.current.isPlaying||v.current.play():v.current.isPlaying&&v.current.pause()}),[n]),l(y,(()=>{var e;(g.source instanceof Promise&&f!=g.source||(null==(e=g.source)?void 0:e.src)&&(null==f?void 0:f.src)!==g.source.src)&&v.current.changeSource(g.source)}),[g.source]),l(y&&"number"===typeof a,(()=>{v.current.seek(a/1e3)}),[a]),l(y,(()=>{g.muted?v.current.mute():v.current.unmute()}),[g.muted]),l(y,(()=>{v.current.setPlaybackRate(g.playbackRate)}),[g.playbackRate]),(0,r.useEffect)((()=>()=>{var e;return null==(e=v.current)?void 0:e.destroy()}),[]),(0,r.useImperativeHandle)(t,(()=>v.current),[]),(0,r.useMemo)((()=>0==d?(0,i.jsx)("div",{ref:b}):(0,i.jsx)("div",{style:{width:"100%",paddingTop:100*d+"%",backgroundColor:"#f4f4f4",position:"relative"},children:(0,i.jsx)("div",{style:{position:"absolute",top:0,left:0,width:"100%",height:"100%"},ref:b})})),[])})),l=(e,t,n)=>{(0,r.useEffect)((()=>{if(Boolean(e))return t()}),n)}},7454:(e,t,n)=>{n.d(t,{A:()=>xt});var i,s,r,o,a,l,c,d,u=n(3991);function h(e,t){return t||(t=e.slice(0)),e.raw=t,e}const p=u.$.cls("loading"),g=u.$.cls("playing"),m=u.$.cls("focused"),v=u.$.cls("fullscreen"),f=u.$.cls("settingShown"),y=u.$.css("display:none"),b="data-ctrl-hidden",x=u.$.css({["."+g]:{cursor:"none"}}),$=u.$.cls("error"),w=u.$.css(i||(i=h(["\n z-index: 99 !important;\n position: fixed !important;\n left: 0;\n right: 0;\n top: 0;\n bottom: 0;"]))),k=u.$.css({background:"none",border:"none",cursor:"pointer",padding:0,outline:"none",font:"inherit",color:"inherit",fill:"#fff","line-height":"inherit","text-align":"inherit",width:"100%","-webkit-tap-highlight-color":"transparent","user-select":"none"}),E=u.$.css({"& > *:nth-child(1)":{display:"none"}}),L=u.$.css({"& > *:nth-child(2)":{display:"none"}}),S=u.Fr?"":u.$.css({position:"relative","&:hover":{"&::after":{opacity:1,transform:"translateX(-50%) scale(1)"},"&:not([data-tooltip-pos]):last-child::after":{right:0,left:"auto",transform:"translateY(0) scale(1)"},"&[data-tooltip-pos=down]::after":{transform:"translateX(-50%) scale(1)"},"&[data-tooltip-pos=down]:last-child::after":{right:0,transform:"translateY(0) scale(1)"}},"&::after":{position:"absolute",content:"attr(aria-label)",bottom:"100%",left:"50%","margin-bottom":"0.5em","white-space":"nowrap",background:"var(--shadow-background-color)",transform:"translate(-50%, 10px) scale(.8)","transform-origin":"50% 100%",opacity:0,padding:"6px 8px","border-radius":"2px",transition:"transform .2s ease .1s,opacity .2s ease .1s","pointer-events":"none","font-size":"0.75em"},"&[data-tooltip-pos=down]::after":{top:"100%",bottom:"auto","margin-top":"0.5em",transform:"translate(-50%, -10px) scale(.8)"},"&[data-tooltip-pos=down]:last-child::after":{right:0,top:"100%",bottom:"unset",left:"auto","margin-top":"0.5em",transform:"translateY(-10px) scale(.8)","transform-origin":"100% 0"},"&:not([data-tooltip-pos]):last-child::after":{right:0,left:"auto",transform:"translateY(10px) scale(.8)","transform-origin":"100% 100%"}}),T={play:'',pause:'',volume:['',''],fullscreen:['',''],pip:['',''],setting:'\n',screenshot:'',playbackRate:'',subtitle:'',loop:'',quality:'',lang:'',progressIndicator:null,loadingIndicator:null,previous:null,next:null,chromecast:null,airplay:null,danmaku:null,playlist:null};var C,P;(P=C||(C={})).setupIcons=e=>{for(const t in e)Object.prototype.hasOwnProperty.call(e,t)&&(T[t]=e[t]);return T},P.get=e=>T[e];const z=e=>{const t=()=>e.$root.classList.add(p),n=()=>{e.isSourceChanging||e.$root.classList.remove(p)};"none"!=e.$video.preload&&t(),e.on("loadstart",(()=>{"none"==e.$video.preload&&n()})),e.on(["seeking","videoqualitychange","videosourcechange"],t),e.on(["canplaythrough","playing","pause","seeked","error"],n),e.on(e.options.autoplay||u.nr?"loadedmetadata":"canplay",(()=>e.$root.classList.remove(p))),e.on(["waiting","playing"],(i=>{"waiting"==i.type&&t();const s=e.currentTime,r=()=>{s!==e.currentTime?(n(),e.off("timeupdate",r)):t()};e.on("timeupdate",r)}))},A=(e,t)=>{(e=>{e.on("play",(()=>{e.$root.classList.add(g)})),e.on(["pause","videosourcechange"],(()=>{e.$root.classList.remove(g)}))})(e),z(e),(e=>{e.on("fullscreenchange",(t=>{if(t.payload.isWeb)e.$root.classList.toggle(w);else{if(!e._requestFullscreen)return;e.$root.classList.toggle(v)}}))})(e),u.Fr||((e,t)=>{function n(t){let n=t.target;n&&(e.$root.contains(n)||e.$root==n)?e.$root.classList.add(m):e.$root.classList.remove(m)}t&&e.$root.classList.add(m),document.addEventListener("click",n),document.addEventListener("contextmenu",n),e.on("destroy",(()=>{document.removeEventListener("click",n),document.removeEventListener("contextmenu",n)}))})(e,t.autoFocus)};function F(e,t,n){return Math.min(Math.max(e,t),n)}function M(e){return e<10?"0"+e:""+e}function _(e){if(!isFinite(e))return"--:--";const t=Math.floor(e/3600),n=Math.floor(e%3600/60),i=Math.floor(e%3600%60);return(t>0?M(t)+":":"")+M(n)+":"+M(i)}const O=e=>{if((e=>e.$root.classList.contains(p))(e)||isNaN(e.duration))return void e.emit("notice",{text:e.locales.get("Please wait for loading to complete")});const t=(e=>{var t;try{const n=e.$video,i=e.$root,s=e.context.ui,r=document.createElement("canvas"),o=n.videoWidth,a=n.videoHeight;r.width=o,r.height=a,r.getContext("2d").drawImage(n,0,0,o,a);const l=(null==(t=s.$watermark)?void 0:t.style)||{},c=l.top,d=l.left,u=l.right,h=l.bottom;if(s.$watermark&&[c,d,u,h].filter((e=>void 0!=e)).length>1){const e=s.$watermark,t=e.offsetLeft,n=e.offsetTop,a=e.offsetWidth,l=e.offsetHeight,p=s.$watermark.getBoundingClientRect(),g=p.width,m=p.height;let v=0,f=0;d?v=t:u&&(v=o-(i.clientWidth-t-a)-a),c?f=n:h&&(f=o-(i.clientHeight-n-l)-l),r.getContext("2d").drawImage(s.$watermark,v,f,g,m)}return r.toDataURL("image/png")}catch(n){return n}})(e);if(t instanceof Error)e.emit("notice",{text:t.message});else{!function(e,t){const n=document.createElement("a");n.href=e,n.download=t,n.click()}(t,(e.options.source.title||"OPlayer-ScreenShot")+"-"+_(e.currentTime).replace(/:/g,"-")+".png")}},R=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1500,n=null;const i=()=>n&&clearTimeout(n);return{callee:()=>{i(),n=setTimeout((()=>{e()}),t)},clear:i}};function I(e,t){return e.classList.add(t),e}function j(e,t){return e.classList.remove(t),e}function B(e,t){return e.classList.contains(t)}const H={dragStart:u.Fr?"touchstart":"mousedown",dragMove:u.Fr?"touchmove":"mousemove",dragEnd:u.Fr?"touchend":"mouseup"},q={ArrowUp:e=>{const t=100*e.volume+10;e.setVolume(t/100),e.emit("notice",{text:e.locales.get("Volume: %s",~~(100*e.volume)+"%")})},ArrowDown:e=>{const t=100*e.volume-10;e.setVolume(t/100),e.emit("notice",{text:e.locales.get("Volume: %s",~~(100*e.volume)+"%")})},ArrowLeft:(e,t)=>{var n,i;if(e.options.isLive||e.hasError)return;e.currentTime-((null==(n=t.theme.progress)?void 0:n.backward)||5)<0?e.seek(0):e.seek(e.currentTime-((null==(i=t.theme.progress)?void 0:i.forward)||5)),e.emit("notice",{text:_(e.currentTime)+" / "+_(e.duration)})},ArrowRight:e=>{e.options.isLive||e.hasError||(e.seek(e.currentTime+5),e.emit("notice",{text:_(e.currentTime)+" / "+_(e.duration)}))}," ":e=>e.togglePlay(),k:e=>e.togglePlay(),Escape:e=>{e.isFullScreen?e.exitFullscreen():e.$root.classList.contains(w)&&e.emit("fullscreenchange",{isWeb:!0})},f:e=>e.toggleFullScreen(),w:e=>e.emit("fullscreenchange",{isWeb:!0}),s:O,m:e=>e.isMuted?e.unmute():e.mute()};function N(e){var t,n;const i=e.player,s=e.config;function r(e){var t,n,r;if("INPUT"==(null==(t=document.activeElement)?void 0:t.tagName)||"TEXTAREA"==(null==(n=document.activeElement)?void 0:n.tagName)||(null==(r=document.activeElement)?void 0:r.getAttribute("contenteditable"))||s.keyboard.focused&&!(e=>e.$root.classList.contains(m))(i)||e.altKey||e.ctrlKey||e.metaKey||e.shiftKey)return;const o=e.key;q[o]&&(e.preventDefault(),q[o](i,s))}(!u.Fr||(null==(t=s.keyboard)?void 0:t.focused)||(null==(n=s.keyboard)?void 0:n.global))&&(e.keyboard={register:function(e){for(const t in e)Object.prototype.hasOwnProperty.call(e,t)&&(q[t]=e[t])},unregister:function(e){e.forEach((e=>{delete q[e]}))}},document.addEventListener("keydown",r),i.on("destroy",(()=>{document.removeEventListener("keydown",r)})))}const D="speed";function V(e){var t;const n=e.player,i=e.config.theme,s=e.$mask,r=null==(t=i.controller)?void 0:t.slideToSeek;u.Fr&&!n.options.isLive&&r&&"none"!=r&&n.once("loadedmetadata",(()=>{let e,t=0,i=0,o=0,a=0;const l=n.$root.getBoundingClientRect();function c(e){if(0==t&&0==i)return;const s=e.changedTouches[0],r=s.clientX,o=s.clientY,c=r-t,d=i-o;if(Math.abs(c)<2&&Math.abs(d)<2)return;const u=function(e,t){return 180*Math.atan2(t,e)/Math.PI}(c,d);(u>=-45&&u<45||u>=135&&u<=180||u>=-180&&u<-135)&&(e.preventDefault(),a=60*c/l.width,n.emit("notice",{text:_(F(n.currentTime+a,0,n.duration))+" / "+_(n.duration),pos:"top"}))}function d(){0==t&&0==i||("long-touch"==r&&o<1e3&&(e&&clearInterval(e),s.removeEventListener("touchmove",c)),Math.abs(a)>=1&&n.seek(F(n.currentTime+a,0,n.duration)),t=i=a=o=0)}"always"==r&&(s.addEventListener("touchstart",(e=>{if(B(n.$root,f))return;const s=e.changedTouches[0],r=s.clientX,o=s.clientY;t=r,i=o})),s.addEventListener("touchmove",c),s.addEventListener("touchend",d)),"long-touch"==r&&s.addEventListener("touchstart",(r=>{if(B(n.$root,f))return;const a=r.changedTouches[0],l=a.clientX,u=a.clientY;t=l,i=u,e=window.setInterval((()=>{o+=100,o>=1e3&&(clearInterval(e),n.emit("notice",{text:"slid left or right to seek",pos:"top"}),s.addEventListener("touchmove",c))}),100),s.addEventListener("touchend",d,{once:!0})}))}))}const U=u.$.css(s||(s=h(["\n font-variant-numeric: tabular-nums;\n font-size: 0.875em;\n"]))),X=u.$.css("width:0.5em;height:0.5em;background-color:var(--primary-color);border-radius:50%;margin-right:0.5em"),W=u.$.css("\n position: absolute;\n top: 10px;\n right: 50%;\n border-radius: 2px;\n box-sizing: border-box;\n transform: translate(50%, -100%);\n transition: opacity 0.2s ease, top 0.2s ease;\n font-size: 0.875em;\n"),Y=u.$.css("\n top: calc(100% - 10px);\n right: 50%;\n transform: translateX(50%);\n"),K=u.$.css({position:"relative",display:"flex",["& ."+W]:{visibility:"hidden",opacity:0,"background-color":"var(--shadow-background-color)"}}),Q=u.$.css({"&:hover":{"padding-top":"0.5em","margin-top":"-0.5em",["& ."+W]:{visibility:"visible",opacity:1,top:0}},"&[data-dropdown-pos=top]:hover":{"padding-bottom":"0.5em","margin-bottom":"-0.5em",["& ."+W]:{top:"100%"}}}),J=u.$.css({padding:"0 0.5em","min-width":"6em",display:"block",height:"2.4em","line-height":"2.4em",cursor:"pointer","text-align":"center","word-break":"keep-all","&:nth-last-child(1)":{"margin-bottom":"0px"},"& *":{"pointer-events":"none"},"&[aria-checked=true]":{color:"var(--primary-color)"},"&:hover":{"background-color":"rgba(255, 255, 255, 0.1)"}}),G=u.$.cls("textIcon"),Z=u.$.css({display:"flex","align-items":"center",["& > ."+k+":last-child"+(u.Fr?", & > ."+k+'[aria-label="Play"], & > .'+k+'[aria-label="Pause"]':"")]:{"margin-right":0}}),ee=u.$.css({color:"#fff",height:"2.375em",display:"flex","box-sizing":"border-box","justify-content":"space-between","align-items":"center","padding-bottom":u.Fr?0:"0.25em",["& ."+k+"."+G]:{width:"auto","min-width":"2em","font-size":"0.875em",padding:"0 4px","border-radius":"2px"},["& ."+k]:Object.assign({width:"2em",height:u.Fr?"auto":"2em","margin-right":"0.5em","justify-content":"center","align-items":"center",display:"inline-flex","& > *":{height:"1.5em",width:"1.5em","pointer-events":"none",transition:"transform .2s ease-in-out"}},u.Fr?{"&:active > *":{transform:"scale(.9)"}}:{"&:hover":{"background-color":"rgb(255 255 255 / .2)"}})}),te=u.$.css({flex:1,height:"100%","padding-left":"0.5em","> div":{height:"100%",display:"flex","align-items":"center"}}),ne=u.$.css("display: block;"),ie=u.$.css("min-width: 15.5em;"),se=u.$.css("min-width: 10.5em;"),re=u.$.css("\n display: none;\n width: 1.4em;\n height: 1.4em;\n"),oe=u.$.css("\n width: 2em;\n height: 2em;\n margin: 0 -10px 0 -5px;\n"),ae=u.$.css("\n width: 2em;\n height: 2em;\n transform: rotate(180deg);\n margin-left: -10px;\n"),le=u.$.css({position:"absolute",cursor:"pointer",top:"0",left:"0",right:"0",bottom:"0","background-color":"#ccc",transition:".3s","border-radius":"34px","&:before":{position:"absolute",content:'""',height:"1em",width:"1em",left:"0.25em",bottom:"0.1875em","background-color":"white",transition:".3s","border-radius":"50%"}}),ce=u.$.css("\n position: relative;\n width: 2.5em;\n height: 1.375em;\n"),de=u.$.css("\n white-space: nowrap;\n color: rgba(255, 255, 255, 0.7);\n font-size: 0.8em;\n"),ue=u.$.css({height:"2.4em",cursor:"pointer",color:"#fff","justify-content":"space-between","align-items":"center",padding:"0 0.75em","line-height":"1",display:"flex",overflow:"hidden","& > *":{"pointer-events":"none"},"&:hover":{"background-color":"rgba(255, 255, 255, 0.1)"},"&[aria-checked='true']":{["& ."+re]:{display:"block"},"&[data-index]":{"background-color":"rgba(255, 255, 255, 0.1)"},["& ."+le]:{"background-color":"var(--primary-color)","&:before":{transform:"translateX(1em)"}}}}),he=u.$.css({display:"flex","align-items":"center","margin-right":"10px","& > svg":{width:"1.7em",height:"1.7em","margin-right":"0.5em"}}),pe=u.$.css("\n display: flex;\n align-items: center;\n"),ge=u.$.css({width:"100%",display:"flex","align-items":"center","border-bottom":"1px solid rgb(255 255 255 / 10%)"}),me=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:oe;return"'},ve=function(e){return'
\n '+(arguments.length>1&&void 0!==arguments[1]?arguments[1]:"")+"\n "+e+"\n
\n \n \n \n'},fe=function(e){return'
\n '+(arguments.length>1&&void 0!==arguments[1]?arguments[1]:"")+"\n "+e+"\n
\n
\n '+me(ae)+"\n "+e+"\n
\n",be=function(e){return'
\n '+(arguments.length>1&&void 0!==arguments[1]?arguments[1]:"")+"\n "+e+"\n
\n
\n \n
\n"};function xe(e){let t=e.type,n=e.key,i=e.name,s=e.icon,r=e.default,o=e.index,a=u.$.create("div."+ue,{"data-key":n,role:Boolean(t)?"menuitem":"menuitemradio","aria-haspopup":"selector"==t});const l={$row:a,$label:void 0};switch(t){case"switcher":a.innerHTML=be(i,s),a.setAttribute("aria-checked",r||!1);break;case"selector":a.innerHTML=fe(i,s),l.$label=a.querySelector('span[role="label"]');break;case"back":a.innerHTML=ye(i);break;default:a.innerHTML=ve(i,s),a.setAttribute("aria-checked",r||!1),"number"==typeof o&&a.setAttribute("data-index",o.toString())}return l}function $e(e,t,n){let i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};if(!n||0==n.length)return;const s=i.key,r=i.target,o=i.parent,a=i.isSelectorOptionsPanel,l=i.name;let c={},d=s||"root";t[0]&&"root"==d?(c=t[0],d=t[0].key):(c.$ref=u.$.create("div."+(t[0]&&a?se:ie),{"data-key":d,role:"menu"}),c.key=d,t.push(c)),c.parent=o;const h="root"==c.key;if(!h){const e=xe({name:l,type:"back"}).$row;e.addEventListener("click",(()=>{var e;c.$ref.classList.remove(ne),null==(e=c.parent)||e.$ref.classList.add(ne)})),u.$.render(e,c.$ref)}for(let p=0;p!Boolean(e.type))),i=$e(e,t,d,{key:l,target:r,parent:c,isSelectorOptionsPanel:n,name:"selector"==o?s:void 0});if(y.addEventListener("click",(()=>{c.$ref.classList.remove(ne),i.$ref.classList.add(ne)})),n){const t=d.find((e=>e.default));t&&(b.innerText=t.name),i.select=(t,n)=>{var s;if(-1==t)return void(null==(s=i.$ref.querySelector("[aria-checked=true]"))||s.setAttribute("aria-checked","false"));const r=i.$ref.querySelectorAll("[aria-checked]");if("true"!=r.item(t).getAttribute("aria-checked")){r.forEach((e=>e.setAttribute("aria-checked","false"))),r.item(t).setAttribute("aria-checked","true");const i=d[t];b.innerText=i.name,n&&(null==v||v(i,{index:t,player:e}))}},i.$ref.addEventListener("click",(e=>{const t=e.target;t.hasAttribute("data-index")&&(i.select(+t.getAttribute("data-index"),!0),c.$ref.classList.add(ne),i.$ref.classList.remove(ne))}))}}else"switcher"==o&&(y.select=function(e){const t="true"==this.getAttribute("aria-checked");this.setAttribute("aria-checked",""+!t),e&&(null==v||v(!t))},y.addEventListener("click",(()=>y.select(!0))))}return c}function we(e){var t,n;const i=e.player,s=e.$root,r=e.config;if(!1===r.settings)return;const o=null==(t=r.theme.controller)?void 0:t.setting,a=r.settings||[],l=(null==(n=r.theme.controller)?void 0:n.header)&&("top"==o||u.Fr&&"auto"==o),c=u.$.create("div."+(e=>u.$.css({"z-index":"8","max-height":"75%","border-radius":"2px",display:"block",position:"absolute",right:"1em",[e]:"top"==e?"var(--control-bar-height)":"2.5em",overflow:"auto","background-color":"var(--shadow-background-color)",fill:"#fff","&::-webkit-scrollbar":{width:"2px"},"&::-webkit-scrollbar-thumb":{background:"var(--primary-color)"},"& > div":{display:"none","font-size":"0.875em"},["& > div."+ne]:{display:"block"}}))(l?"top":"bottom"),{"aria-label":"Setting"});let d=[],h=!1;const p={loop:{name:i.locales.get("Loop"),type:"switcher",key:"loop",icon:C.get("loop"),default:i.isLoop,onChange:e=>i.setLoop(e)}};function g(e){var t,n;h&&(null==(n=null==(t=d[0])?void 0:t.$ref.querySelector("[data-key="+e+"]"))||n.remove(),d=d.filter((t=>t.key!==e||(t.$ref.remove(),t=null,!1))))}function m(t){var n;t.length<1||(h||(h=!0,u.$.render(c,s),function(){const t=u.$.create("button",{class:k+" "+S,"aria-label":i.locales.get("Settings"),"data-tooltip-pos":"top"==o?"down":""},""+C.get("setting"));t.addEventListener("click",(e=>{e.stopPropagation(),v()}));const n=[r.pictureInPicture&&i.isPipEnabled,r.fullscreen].filter(Boolean).length;if(l){const n=e.$controllerBar.lastElementChild;n.insertBefore(t,n.children[n.children.length])}else{const i=e.$controllerBottom.lastElementChild;i.insertBefore(t,i.children[i.children.length-n])}}(),null==(n=e.keyboard)||n.register({c:v})),$e(i,d,t,{target:c}))}function v(){function e(t){c.contains(t.target)||(i.$root.classList.remove(f),d.forEach((e=>e.$ref.classList.remove(ne))),document.removeEventListener("click",e))}i.$root.classList.add(f),d[0].$ref.classList.add(ne),setTimeout((()=>{document.addEventListener("click",e)}))}m(a.map((e=>"string"==typeof e?p[e]:e))),e.setting={register:function(e){m((Array.isArray(e)?e:[e]).map((e=>{const t=d.find((t=>t.key==e.key));if(!t)return e;g(t.key)})).filter(Boolean))},unregister:g,updateLabel:function(e,t){if(!h)return;const n=c.querySelector('[data-key="'+e+'"] span[role="label"]');n&&(n.innerText=t)},select:function(e,t){var n;let i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(h)if("number"==typeof t)for(let s=0;s div:nth-child(1)":{overflow:"hidden",flex:"1 1 0","margin-right":"0.5em"},["& > div:nth-child(2) ."+K+":last-child ."+W]:{right:"max(50%,3em)"},["@global ."+x+" &"]:{transform:"translateY(calc(-100%))","&::before":{opacity:0}}}),Ee=u.$.css("width: 2.5em;height: 2.5em;margin:0 -10px;transform: rotate(180deg);"),Le=u.$.css("flex:1;font-size:1em;margin: 0 0.25em;overflow: hidden;text-overflow: ellipsis;white-space: nowrap;"),Se=u.$.css(r||(r=h(["\n width: 2.65em;\n display: flex;\n height: 7.65em;\n box-sizing: border-box;\n flex-direction: column;\n"]))),Te=u.$.css("\n width: 100%;\n text-align: center;\n height: 28px;\n line-height: 28px;\n margin-bottom: 2px;\n font-size: 0.75em;\n"),Ce=u.$.css("\n position: relative;\n display: flex;\n justify-content: center;\n flex: 1;\n cursor: pointer;\n padding: 5px 0 14px;\n"),Pe=u.$.css("\n height: 100%;\n width: 4px;\n position: relative;\n"),ze=u.$.css("\n width: 4px;\n height: 100%;\n overflow: hidden;\n border-radius: 2px;\n background: rgba(255, 255, 255, 0.3);\n"),Ae=u.$.css("\n height: 100%;\n background-color: var(--primary-color);\n transform-origin: 0 100%;\n"),Fe=u.$.css(o||(o=h(["\n position:absolute;\n bottom: 0;\n top: auto;\n left: -4px;\n width: 12px;\n height: 12px;\n border-radius: 50%;\n background-color: var(--primary-color);\n vertical-align: middle;\n pointer-events: none;\n "]))),Me=(e,t)=>{const n=u.$.create("div."+Se,{},"
100
\n\n
\n
\n
\n
\n
\n\n
\n
\n
"),i=n.querySelector("."+Ce),s=n.querySelector("."+Fe),r=n.querySelector("."+Ae),o=n.querySelector("."+Te),a=t=>{t.preventDefault(),e.setVolume(l((e=>{const t=i.getBoundingClientRect(),n=(t.bottom-(e.clientY||e.changedTouches[0].clientY))/t.height;return n>=1?1:n<=0?0:n})(t)))},l=e=>(o.innerText=""+~~(100*e),r.style.transform="scaleY("+e+")",s.style.bottom="calc("+~~(100*e)+"% - 6px)",e);l(e.volume),e.on("volumechange",(()=>{l(e.isMuted?0:e.volume)})),i.addEventListener(H.dragStart,(e=>{a(e),document.addEventListener(H.dragMove,a,{passive:!1}),document.addEventListener(H.dragEnd,(()=>{document.removeEventListener(H.dragMove,a)}),{once:!0})})),u.$.render(n,t)},_e=u.$.css("\n display: none;\n bottom: 15px;\n position: absolute;\n left: 50%;\n padding: 6px 8px;\n background-color: var(--shadow-background-color);\n color: #fff;\n border-radius: 2px;\n white-space: nowrap;\n word-break: nowrap;\n transform: translateX(-50%);"),Oe=u.$.css({position:"absolute",width:"0.8em",height:"0.33em","background-color":"var(--highlight-color)",transform:"translateX(-3px)",transition:"all 0.2s",["&:hover > ."+_e]:{display:"block"}});const Re=u.$.css("\n position: absolute;\n left: 0;\n bottom: 12px;\n pointer-events: none;\n transform: translateX(-50%);\n background-position-y: center;\n border-radius: 2px;\n display: none;"),Ie=u.$.css("\n position: absolute;\n left: 0;\n bottom: 12px;\n pointer-events: none;\n border-radius: 2px;\n display: none;"),je={width:160,height:90};const Be=u.$.css({"background-color":"hsla(0, 0%, 100%, 0.4)"}),He=u.$.css({"background-color":"var(--primary-color)"}),qe=u.$.css({"pointer-events":"none",position:"relative","& > *":{display:"block",position:"absolute",width:"1.4em",height:"1.4em",top:"0",left:"0",margin:"-0.535em 0 0 -0.7em",transform:u.Fr?"none":"scale(0)",transition:"transform 0.3s ease","z-index":"1"},"& > *:not(svg)":{width:"1em",height:"1em",margin:"-0.335em 0 0 -0.5em","border-radius":"50%","background-color":"#fff"}}),Ne=u.$.css({position:"absolute",left:"0","border-radius":"2px",padding:"6px 8px","background-color":"var(--shadow-background-color)",color:"#fff","z-index":"2","pointer-events":"none",transform:"translateX(-50%)",display:"none",bottom:"15px"}),De=u.$.css("/* progressDragging */"),Ve=u.$.css(Object.assign({position:"relative","box-sizing":"border-box",padding:"0.5em",cursor:"pointer",width:"100%","font-size":"0.75em",transition:"padding 0.3s ease",["&."+De+" ."+Ne+", &."+De+" ."+Re+", &."+De+" ."+Ie]:{display:"block"}},u.Fr?{["@global ."+x+" ."+qe+" > *"]:{transform:"scale(0)"}}:{["&."+De+" ."+qe+" > *, &:hover ."+qe+" > *"]:{transform:"scale(1)"}})),Ue=u.$.css({position:"relative",height:"0.33em",width:"100%","background-color":"hsla(0, 0%, 100%, 0.2)",["& ."+Be+", & ."+He]:{position:"absolute",left:"0",top:"0",bottom:"0","pointer-events":"none"}}),Xe=(e,t)=>{var n;const i=e.player,s=e.config;if(i.options.isLive)return;const r=e.$progress=u.$.create("div."+Ve,{},"
00:00
\n
\n
\n
\n '+(C.get("progressIndicator")||"")+"\n
\n
"),o=r.firstElementChild;(null==(n=s.thumbnails)?void 0:n.isVTT)?console.warn("vtt thumbnails support by @oplayer/pluins"):function(e,t){const n=e.config.thumbnails,i=e.player;let s,r=!1;const o=u.$.render(u.$.create("div."+Re),t);function a(e){if(r&&e){const n=[s.width/2,t.clientWidth],i=n[0],r=n[1],a=i/r,l=(r-i)/r;if(o.style.left=100*(el?l:e)+"%",Array.isArray(s.src)){const t=s.number*e,n=Math.ceil(t/(s.x*s.y))-1,i=t%s.number,r=Math.floor(i/s.x),a=Math.ceil(i%s.x);o.style.backgroundImage="url("+s.src[n]+")",o.style.backgroundPosition=-a+"00% "+-r+"00%"}else{const t=Math.floor(e*s.number);o.style.backgroundPositionX="-"+t+"00%"}}else r=!0,o.style.width=s.width+"px",o.style.height=s.height+"px",Array.isArray(s.src)||(o.style.backgroundImage="url("+s.src+")")}function l(t){r=!1,s=Object.assign({},je,t),s.y&&!Array.isArray(s.src)&&(s.src=[s.src]),e.progressHoverCallback.push(a)}(null==n?void 0:n.src)&&l(n),i.on("videosourcechange",(()=>{r=!1,o.style.backgroundImage="none",e.progressHoverCallback.splice(e.progressHoverCallback.findIndex((e=>e==a)),1)})),e.changThumbnails=l}(e,o),e.vttThumbnailsCls=Ie,function(e,t){const n=e.player,i=e.config.highlight;let s=[];function r(e){const t=u.$.create("div."+Oe,{},''+e.text+"");return t.style.left=e.left+"%",t}function o(e,n){s.forEach((e=>e.remove()));for(let i=0;i0?o(e,n.duration):n.once("loadedmetadata",(function(){o(e,n.duration)}))}t.style.setProperty("--highlight-color",(null==i?void 0:i.color)||"#FFF"),(null==i?void 0:i.source)&&a(i.source),n.on("videosourcechange",(()=>{s.forEach((e=>e.remove())),s=[]})),e.changHighlightSource=function(e){a(e)}}(e,o);const a=r.querySelector("."+Be),l=r.querySelector("."+He),c=r.querySelector("."+qe),d=r.querySelector("."+Ne);let h=!1;const p=e=>{const t=r.getBoundingClientRect(),n=((e.clientX||e.changedTouches[0].clientX)-t.left)/t.width;return n>=1?1:n<=0?0:n},g=e=>{const t=p(e),n=100*t;return l.style.width=n+"%",c.style.transform="translateX("+n+"%)",d.innerText=_(i.duration*t),d.style.left=n+"%",t};r.addEventListener(H.dragStart,(t=>{h=!0,r.classList.add(De);const n=g(t);function s(t){t.preventDefault();const n=g(t);e.progressHoverCallback.forEach((e=>e(n)))}e.progressHoverCallback.forEach((e=>e(n))),document.addEventListener(H.dragMove,s,{passive:!1}),document.addEventListener(H.dragEnd,(e=>{r.classList.remove(De),h=!1,document.removeEventListener(H.dragMove,s),isNaN(i.duration)||i.seek(p(e)*i.duration)}),{once:!0})})),u.Fr||(r.addEventListener("mouseenter",(()=>{h||e.progressHoverCallback.forEach((e=>e()))})),r.addEventListener("mousemove",(t=>{if(h)return;r.classList.add(De),t.target.classList.contains(Oe)?d.style.display="none":d.removeAttribute("style");const n=p(t);d.innerText=_(i.duration*n),d.style.left=100*n+"%",e.progressHoverCallback.forEach((e=>e(n)))}),{passive:!1}),r.addEventListener("mouseleave",(()=>{h||r.classList.remove(De)}))),i.on(["timeupdate","seeking"],(()=>{if(h)return;const e=i.currentTime/i.duration*100||0;l.style.width=e+"%",c.style.transform="translateX("+e+"%)"})),i.on("progress",(()=>{const e=i.buffered.length?i.buffered.end(i.buffered.length-1)/i.duration*100:0;a.style.width=e+"%"})),i.on("videosourcechange",(()=>{a.style.width="0%",l.style.width="0%",c.style.transform="translateX(0%)"})),u.$.render(r,t)},We=u.$.css({position:"absolute",left:0,right:0,bottom:0,"z-index":7,padding:"0 0.5em",transition:"transform 0.3s ease, padding 0.3s ease","min-height":"var(--control-bar-height)","&::before":{position:"absolute",content:"''",width:"100%",display:"block",bottom:0,left:0,"z-index":-1,top:"-1em",transition:"opacity 0.3s ease","pointer-events":"none","background-image":"linear-gradient(transparent, rgba(0, 0, 0, .3))"},["@global ."+x+" &"]:{"pointer-events":"none",transform:"translateY(calc(100% - 0.55em))",padding:0,"&::before":{opacity:0}},["@global ."+x+" ."+Ve]:{"padding-left":0,"padding-right":0}}),Ye=(e,t)=>{var n,i,s;const r=e.player,o=e.config,a=u.$.render(u.$.create("div."+We),t);(null==(n=o.theme.progress)?void 0:n.mini)||u.$.css({["@global ."+x+" ."+We]:{transform:"translateY(100%)"}});const l=[r.locales.get("Play"),r.locales.get("Pause"),r.locales.get("Screenshot"),r.locales.get("Picture in Picture"),r.locales.get(r.isFullscreenEnabled?"Fullscreen":"WebFullscreen"),r.locales.get("Previous"),r.locales.get("Next")],c=l[0],d=l[1],h=l[2],p=l[3],g=l[4],m=l[5],f=l[6],y=C.get("previous")||"",b=C.get("next")||"",$=e.$controllerBottom=u.$.create("div."+ee,{},'
\n\n '+(y&&'")+'\n\n \n '+C.get("play")+"\n "+C.get("pause")+"\n \n\n "+(b&&'")+"\n\n "+(r.options.isLive?'':"")+"\n\n "+(r.options.isLive||"none"==r.$video.preload?"00:00":"00:00 / --:--")+'\n
\n\n
\n\n
\n
\n \n "+(u.un?"":"
")+"\n
\n\n "+(o.screenshot?'":"")+"\n\n "+(o.pictureInPicture&&r.isPipEnabled?'\n '+C.get("pip")[0]+"\n "+C.get("pip")[1]+"\n ":"")+"\n\n "+(o.fullscreen?'":"")+"\n
");"auto"==(null==(i=o.theme.progress)?void 0:i.position)&&u.Fr||"center"==(null==(s=o.theme.progress)?void 0:s.position)?Xe(e,$.querySelector("."+te)):Xe(e,a);const T=$.querySelector("button[aria-label=Volume]");u.un||Me(r,T.nextElementSibling);const P=$.querySelector("button[aria-label="+c+"]"),z=$.querySelector("."+U),A=$.querySelector('button[aria-label="'+g+'"]'),F=$.querySelector('button[aria-label="'+p+'"]'),M=(e,t)=>{e.classList.add(t?E:L),e.classList.remove(t?L:E)};o.fullscreen&&r.on("fullscreenchange",(()=>setTimeout((()=>{M(A,(e=>e.$root.classList.contains(v)||e.$root.classList.contains(w))(r))})))),o.pictureInPicture&&r.on(["enterpictureinpicture","leavepictureinpicture"],(()=>M(F,r.isInPip))),r.on(["play","pause","videosourcechange"],(()=>{P.setAttribute("aria-label",r.isPlaying?d:c),M(P,r.isPlaying)})),r.on("volumechange",(()=>M(T,r.isMuted))),r.on(["durationchange","timeupdate","seeking","seeked"],(()=>{z.innerText=_(r.currentTime)+" "+(r.options.isLive?"":"/ "+_(r.duration))})),r.on("videosourcechange",(()=>{z.innerText=r.options.isLive||"none"==r.$video.preload?"00:00":"00:00 / --:--"})),$.addEventListener("click",(e=>{switch(e.target.getAttribute("aria-label")){case c:case d:return r.togglePlay();case"Volume":if(u.Fr&&!u.un)return;r.isMuted?r.unmute():r.mute();break;case p:return r.togglePip();case g:return void((e=>e.$root.classList.contains(w))(r)||!r.isFullscreenEnabled?r.emit("fullscreenchange",{isWeb:!0}):r.toggleFullScreen());case h:O(r);break;case f:r.emit("next");break;case m:r.emit("previous")}})),u.$.render($,a)},Ke=e=>{const t=e.player,n=e.config,i=e.$root,s=u.$.create("div");((e,t)=>{var n,i,s;const r=e.player,o=null==(n=e.config.theme.controller)?void 0:n.header;if(!o)return;const a=null==o?void 0:o.back,l=a&&u.Fr,c=e.$controllerBar=u.$.create("div",{class:ke+" "+ee},'
\n '+(l?"'+me("")+"":"")+"\n

"+((null==(s=null==(i=r.options)?void 0:i.source)?void 0:s.title)||"")+'

\n
\n
'),d=c.querySelector("."+Le);if(l){const e=d.previousElementSibling;e.addEventListener("click",(e=>{r.isFullScreen&&r.exitFullscreen(),r.emit("backward",e)})),"fullscreen"==a&&r.on("fullscreenchange",(()=>{r.isFullScreen?e.classList.remove(y):e.classList.add(y)}))}r.on("videosourcechange",(e=>{let t=e.payload;t.then||(d.innerText=t.title||"")})),r.on("sourcechangeerror",(e=>{var t,n;let i=e.payload;(null==(t=i.source)?void 0:t.title)||(d.innerText=(null==(n=i.e)?void 0:n.message)||"ERROR")})),r.on("videosourcechanged",(e=>{let t=e.payload;d.innerText=t.title||""})),u.$.render(c,t)})(e,s),Ye(e,s);const r=n.theme.controller||{},o=r.display,a=r.displayBehavior;"played"==o&&(I(s,y),t.once("play",(()=>{j(s,y)})));const l=()=>{var e;!t.isPlaying&&!u.Fr||B(t.$root,x)||B(t.$root,f)||B(t.$root,$)||t.$root.contains(document.activeElement)&&"INPUT"==(null==(e=document.activeElement)?void 0:e.tagName)||(I(t.$root,x),t.$root.setAttribute(b,"true"),t.emit("controlshidden",!1))},c=R(l,2e3),d=c.callee,h=c.clear,p=()=>{h(),B(t.$root,x)&&(j(t.$root,x),t.$root.setAttribute(b,"false"),t.emit("controlsshown",!0))};"none"!=a&&(t.on("play",d),t.on(["pause","videosourcechange"],p),t.on("destroy",h)),u.Fr||(t.$root.addEventListener("mousemove",(e=>{p(),s.contains(e.target)||d()})),"delay"==a&&t.$root.addEventListener("mouseleave",d),"hover"==a&&t.$root.addEventListener("mouseleave",l)),e.toggleController=function(){B(s,y)?t.play():B(t.$root,x)?p():l()},u.$.render(s,i)},Qe={opacity:0,"pointer-events":"none"},Je=u.$.css(Object.assign({transition:"opacity 100ms linear",position:"absolute",top:0,bottom:0,left:0,right:0,margin:"auto",fill:"#fff",width:"3em",height:"3em","z-index":"7","& > button":{width:"100%",height:"100%","border-radius":"100%",background:"var(--primary-color)",opacity:.9,padding:"1em",transition:"transform .2s ease-in-out","&:active":{transform:"scale(.85)"},"& > *":{position:"relative",width:"1.5em",height:"1.5em",left:"-0.2em",top:"-0.25em"}},["@global ."+g+" &"]:Qe,["@global ."+p+" &"]:Qe,["@global ."+$+" &"]:Qe},u.Fr&&{["@global ."+x+" &"]:Qe})),Ge=(e,t)=>{const n=u.$.create("div."+Je,{},'");return u.$.render(n,t).addEventListener("click",(()=>e.play())),n},Ze=u.$.css("\n display: none;\n position: absolute;\n top: 0;\n bottom: 0;\n left: 0;\n right: 0;\n color: #fff;\n background: #000;\n z-index: 7;\n align-items: center;\n padding: 0 10px;\n word-break: break-all;\n justify-content: center;\n text-align: center;\n"),et=u.$.css("display: flex;"),tt={1:"MEDIA_ERR_ABORTED",2:"MEDIA_ERR_NETWORK",3:"MEDIA_ERR_DECODE",4:"MEDIA_ERR_SRC_NOT_SUPPORTED"},nt=(e,t,n)=>{const i=u.$.render(u.$.create("div."+Ze,{"aria-label":"Error Overlay"}),t);function s(t){var n;let s="";if(t instanceof Event){const e=null==(n=t.target)?void 0:n.error;if(!e||!e.message&&"number"!=typeof e.code)return;s=e.message||tt[e.code]}else s=t.message;i.innerText=s||"UNKNOWN_ERROR",e.$root.classList.add($),I(i,et)}return e.on(["videosourcechange","videoqualitychange","loadedmetadata"],(function(){j(i,et),e.$root.classList.remove($),i.innerText=""})),e.on("error",(e=>(e=>{n.errorBuilder?n.errorBuilder(e,i,(e=>s(e))):s(e)})(e.payload))),s},it=u.$.css({position:"absolute",top:"0",bottom:"0",left:"0",right:"0",display:"none","align-items":"center","justify-content":"center",["@global ."+p+" &"]:{display:"flex"}}),st=u.$.css({position:"relative",overflow:"hidden",width:"20%",height:"4px","border-radius":"4px","&::before,&::after":{display:"block",content:"''",position:"absolute",height:"100%",width:"100%","background-color":"var(--primary-color)","border-radius":"4px"},"&::before":{opacity:"0.4"},"&::after":{animation:"indeterminate 1.3s infinite linear","transform-origin":"0% 50%"},"@keyframes indeterminate":{"0%":{transform:"translateX(0) scaleX(0)"},"10%":{transform:"translateX(0) scaleX(0.2)"},"40%":{transform:"translateX(0) scaleX(0.7)"},"60%":{transform:"translateX(60%) scaleX(0.4)"},"100%":{transform:"translateX(100%) scaleX(0.2)"}}}),rt=(e,t)=>{const n=u.$.create("div."+it,{"aria-label":"Loading"},""+(C.get("loadingIndicator")||'
'));u.$.render(n,t)},ot=u.$.css({width:"100%",height:"100%",position:"absolute",top:"0",left:"0",right:"0",bottom:"0",["@global ."+f+" &"]:{"z-index":"8"}}),at=e=>{const t="true"==e.getAttribute("aria-checked");e.setAttribute("aria-checked",""+!t),((e,t)=>{var n=[],i=e.parentNode.children;for(let s=0,r=i.length;se.setAttribute("aria-checked",""+t)))},lt=u.$.css({position:"absolute",display:"none",top:"0.625em",left:"0.625em",right:"0.625em","z-index":9,"margin-top":"var(--control-bar-height)",transition:"margin 0.2s",["@global ."+x+" &"]:{"margin-top":0}}),ct=u.$.css("\n -moz-user-select: all;\n -webkit-user-select: all;\n -ms-user-select: all;\n user-select: all;\n color: #fff;\n background-color: var(--shadow-background-color);\n border-radius: 2px;\n padding: 5px 10px;\n font-size: 0.875em;\n"),dt=u.$.css(a||(a=h(["\n text-align: center;\n"]))),ut=u.$.css(l||(l=h(["\n text-align: right;\n"]))),ht=u.$.css(c||(c=h(["\n bottom: 6em;\n top: initial;\n"]))),pt={center:u.$.css(d||(d=h(["\n top: 50%;\n text-align: center;\n transform: translateY(-50%);\n"]))),left:"","top-left":"",top:dt,"top-center":dt,"top-right":ut,right:ut,bottom:ht,"left-bottom":ht},gt=u.$.css("display:block;");function mt(e){return URL.createObjectURL(new Blob([e],{type:"text/vtt"}))}const vt="Subtitle";class ft{constructor(e,t,n,i){this.player=e,this.setting=t,this.el=n,this.isShow=!1,this.update=()=>{let e="";const t=this.$track.track.activeCues;if(null==t?void 0:t.length)for(let n=0;n"

"+e+"

")).join(""))}this.$dom.innerHTML=e},window.TextDecoder?(this.options=Object.assign({source:[]},i),this.createContainer(),this.changeSource(this.options.source),this.player.on(["destroy","videosourcechange"],this.destroy.bind(this)),this.player.on("videoqualitychang",(()=>{this.isShow&&this.hide()})),this.player.on("videoqualitychanged",this.fetchSubtitle.bind(this))):e.emit("notice",{text:e.locales.get("TextDecoder not supported")})}changeSource(e){var t;null==(t=this.setting)||t.unregister(vt),this.processDefault(e),this.loadSetting(),this.currentSubtitle&&(this.player.isSourceChanging||isNaN(this.player.duration)||this.player.duration<1?this.player.once("loadedmetadata",this.fetchSubtitle.bind(this)):this.fetchSubtitle())}createContainer(){const e=this.el,t=this.options,n=t.color,i=t.shadow,s=t.fontSize,r=t.bottom,o=t.fontFamily,a=t.background,l=t.marginBottom;this.$dom=u.$.create("div."+u.$.css(Object.assign({left:"2%",right:"2%","text-align":"center","pointer-events":"none",position:"absolute","line-height":"1.5","font-family":o||"inherit",color:n||"#fff","text-shadow":i||"1px 0 1px #000, 0 1px 1px #000, -1px 0 1px #000, 0 -1px 1px #000, 1px 1px 1px #000, -1px -1px 1px #000, 1px -1px 1px #000, -1px 1px 1px #000",bottom:r||"2%","font-size":(s||(u.Fr?16:20))/16+"em","& > p":{margin:0,"& span":{"white-space":"pre-wrap",background:a?"rgba(8, 8, 8, 0.75)":"inherit",padding:"0 0.25em"}}},!u.Fr&&{"margin-bottom":l||"2.2em",transition:"margin 0.3s",["@global ."+x+" &"]:{"margin-bottom":0}})),{"aria-label":"Subtitle"}),u.$.render(this.$dom,e)}createTrack(){const e=this.player.$video;if(this.$track=u.$.render(u.$.create("track",{default:!0,kind:"metadata",id:"primary"}),e),!this.player._requestFullscreen){const t=(this.$iosTrack=u.$.create("track",{default:!1,kind:"captions",id:"__Orz__"})).track;t.mode="hidden",u.$.render(this.$iosTrack,e),this.player.on("fullscreenchange",(e=>{e.payload.isWeb||setTimeout((()=>{const e=this.player.isFullScreen&&this.isShow;t.mode=e?"showing":"hidden"}))}))}}changeOffset(){var e;const t=null==(e=this.currentSubtitle)?void 0:e.offset;t&&[this.$track,this.$iosTrack].forEach((e=>{if(!e)return;const n=e.track.cues,i=this.player.duration;Array.from(n||[]).forEach((e=>{e.startTime=F(e.startTime+t,0,i),e.endTime=F(e.endTime+t,0,i)}))}))}processDefault(e){this.options.source=e,this.currentSubtitle=e.find((e=>e.default))}show(){this.isShow=!0,this.$track.addEventListener("cuechange",this.update)}hide(){const e=this.$track,t=this.$dom;this.isShow=!1,t.innerHTML="",e.removeEventListener("cuechange",this.update)}fetchSubtitle(){if(!this.currentSubtitle)return;this.$track||this.createTrack();const e=this.currentSubtitle,t=this.player,n=this.$track,i=this.$iosTrack,s=e.src,r=e.encoding,o=e.type,a=void 0===o?"auto":o;return fetch(s).then((e=>e.arrayBuffer())).then((e=>{var t;const n=new TextDecoder(r).decode(e);switch("auto"==a?null==(t=/srt|ass|vtt(#|\?|$)/i.exec(s))?void 0:t[0]:a){case"srt":return mt(function(e){return"WEBVTT \r\n\r\n".concat((t=e,t.replace(/(\d\d:\d\d:\d\d)[,.](\d+)/g,((e,t,n)=>{let i=n.slice(0,3);return 1===n.length&&(i=n+"00"),2===n.length&&(i=n+"0"),t+","+i}))).replace(/\{\\([ibu])\}/g,"").replace(/\{\\([ibu])1\}/g,"<$1>").replace(/\{([ibu])\}/g,"<$1>").replace(/\{\/([ibu])\}/g,"").replace(/(\d\d:\d\d:\d\d),(\d\d\d)/g,"$1.$2").replace(/{[\s\S]*?}/g,"").concat("\r\n\r\n"));var t}(n));case"ass":return mt(function(e){const t=new RegExp("Dialogue:\\s\\d+,(\\d+:\\d\\d:\\d\\d.\\d\\d),(\\d+:\\d\\d:\\d\\d.\\d\\d),([^,]*),([^,]*),(?:[^,]*,){4}(.*)$","i");return"WEBVTT\r\n\r\n"+e.split(/\r?\n/).map((e=>{const n=e.match(t);return n&&n[1]&&n[2]&&n[5]?{start:n[1],end:n[2],text:(i=n[5].replace(/{[\s\S]*?}/g,"").replace(/\\N/g,"\r\n").replace(/\\n/g," ").replace(/\\h/g," "),i.replace(/[&<>'"]/g,(e=>({"&":"&","<":"<",">":">","'":"'",'"':"""}[e]||e))))}:null;var i})).filter((e=>null!=e)).map(((e,t)=>t+1+"\r\n0"+e.start+"0 --\x3e 0"+e.end+"0\r\n"+e.text)).join("\r\n\r\n")}(n));case"vtt":return mt(n);default:return s}})).then((e=>{n.src&&URL.revokeObjectURL(n.src),(null==i?void 0:i.src)&&URL.revokeObjectURL(i.src),this.$track.addEventListener("load",(()=>{this.changeOffset(),this.show()}),{once:!0}),n.src=e,i&&(i.src=e)})).catch((e=>{t.emit("notice",{text:"Subtitle"+e.message})}))}loadSetting(){if(!this.setting)return;const e=this.options.source;e.length&&this.setting.register({name:this.player.locales.get("Subtitle"),type:"selector",icon:C.get("subtitle"),key:vt,onChange:e=>{var t;let n=e.value;n?n.src==(null==(t=this.currentSubtitle)?void 0:t.src)?this.show():(this.currentSubtitle=n,this.$dom.innerHTML="",this.fetchSubtitle()):this.hide()},children:[{name:this.player.locales.get("OFF"),default:!this.currentSubtitle}].concat(null==e?void 0:e.map((e=>{var t;return{name:e.name,default:(null==(t=this.currentSubtitle)?void 0:t.src)==e.src,value:e}})))})}destroy(){var e;const t=this.$dom,n=this.$track,i=this.$iosTrack;null==n||n.removeEventListener("cuechange",this.update),null==(e=this.setting)||e.unregister(vt),(null==n?void 0:n.src)&&URL.revokeObjectURL(n.src),(null==i?void 0:i.src)&&URL.revokeObjectURL(i.src),null==n||n.remove(),null==i||i.remove(),t.innerHTML="",this.isShow=!1,this.$track=this.$iosTrack=void 0}}const yt={theme:{primaryColor:"#6668ab",progress:{position:"top",mini:!0},controller:{setting:"auto",display:"always",coverButton:!0,displayBehavior:"hover"}},fullscreen:!0,autoFocus:!0,forceLandscapeOnFullscreen:!0,settings:["loop"],keyboard:{focused:!0},speeds:["2.0","1.5","1.25","1.0","0.75","0.5"]};class bt{constructor(e){var t;this.key="ui",this.version="1.3.3-beta.0",this.name="oplayer-theme-ui",this.keyboard={},this.setting={},this.menu={},this.progressHoverCallback=[],this.config=(0,u.D9)({},yt,e),(null==(t=this.config.keyboard)?void 0:t.global)&&(this.config.keyboard.focused=!1)}apply(e){var t;const n=this.config;this.player=e;const i=this.$root=u.$.create("div."+(e=>{var t;return u.$.css(Object.assign({"--primary-color":""+e.theme.primaryColor,"--shadow-background-color":"rgba(28 ,28 ,28 , .9)","--control-bar-height":(null==(t=e.theme.controller)?void 0:t.display)?"2.5em":0,position:"absolute",top:"0",left:"0",width:"100%",height:"100%","line-height":1,"font-size":u.Fr?"16px":"18px","&, & > *":{"-webkit-tap-highlight-color":"rgba(0, 0, 0, 0)"},"& [hidden]":{display:"none"}},{["@global ."+w+" &"]:{"font-size":u.Fr?"18px":"22px"},["@global ."+v+" &"]:{"font-size":u.Fr?"18px":"22px"}}))})(n));return((e,t)=>{const n=t.theme.watermark;if(!n)return;const i=e.$watermark=document.createElement("img");i.setAttribute("alt","watermark");for(const s in n.style)i.style[s]=n.style[s];for(const s in n.attrs)i.setAttribute(s,n.attrs[s]);i.src=n.src,e.$root.appendChild(i)})(this,n),e.isNativeUI?(z(e),Ge(e,i),rt(0,i),void u.$.render(i,e.$root)):(this.icons=C.setupIcons(n.icons),A(e,n),N(this),nt(e,i,n),(e=>{const t=e.player,n=e.$root,i=u.$.create("div."+lt,{"aria-label":"Notice"},''),s=i.querySelector("."+ct),r=R((()=>j(i,gt)),2e3).callee;function o(e,t){s.innerHTML=e,i.className=lt+" "+gt+" "+pt[t||"left"],r()}t.on("notice",(e=>{let t=e.payload;return o(t.text,t.pos)})),e.notice=o,u.$.render(i,n)})(this),rt(0,i),(null==(t=n.theme.controller)?void 0:t.coverButton)&&(this.$coverButton=Ge(e,i)),Ke(this),(e=>{const t=e.player,n=e.$root,i=e.$mask=u.$.create("div."+ot);let s,r=0;i.addEventListener("click",(()=>{B(t.$root,f)||(u.Fr?e.toggleController():(0==r&&t.togglePlay(),s&&clearTimeout(s),s=window.setTimeout((()=>{2==r&&(t.togglePlay(),t.toggleFullScreen()),r=0}),200)),r+=1)})),u.$.render(i,n)})(this),we(this),(e=>{var t;const n=e.config.menu,i=[],s=null==(t=e.$controllerBar)?void 0:t.lastElementChild,r=e.$controllerBottom.lastElementChild,o=[s,r].filter(Boolean);function a(t){var n,s;const r=t.target,o=r.getAttribute("aria-label"),a=i.find((e=>e.name==o));a&&"true"!=r.getAttribute("aria-checked")&&("SPAN"==r.tagName.toUpperCase()?(at(r),null==(n=a.onChange)||n.call(a,a.children[+r.getAttribute("data-index")],r.parentElement.previousElementSibling,e.player)):"BUTTON"==r.tagName.toUpperCase()&&(null==(s=a.onClick)||s.call(a,r,e.player)))}function l(e){const t=i.find((t=>t.name==e.name));t&&c(t.name);const n=e.name,a=e.icon,l=e.children,d="top"==e.position&&2==o.length;let u="";const h='\n '+(a||n)+"";u=e.children?'\n
\n '+h+"\n \n
":h,d?s.insertAdjacentHTML("afterbegin",u):r.insertAdjacentHTML("afterbegin",u),i.push(e)}function c(e){o.forEach((t=>{var n,i;null==(n=t.querySelector("button[aria-label='"+e+"']"))||n.remove(),null==(i=t.querySelector("div[aria-label='"+e+"]'"))||i.remove()}))}o.forEach((e=>{e.addEventListener("click",a)})),n&&n.forEach(l),e.menu={register:function(e){(Array.isArray(e)?e:[e]).forEach(l)},unregister:c,select:function(e,t){let n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];o.forEach((i=>{const s=i.querySelector("."+W+" > span[aria-label='"+e+"']:nth-child("+(t+1)+")");s&&(at(s),n&&s.click())}))}}})(this),function(e){const t=e.player,n=e.$root,i=e.config.subtitle,s=e.setting;e.subtitle=new ft(t,s,n,i)}(this),function(e){const t=e.player,n=e.config.speeds,i=e.setting;(null==n?void 0:n.length)&&i&&(i.register({key:D,type:"selector",name:t.locales.get("Speed"),icon:C.get("playbackRate"),children:n.map((e=>({name:1==+e?t.locales.get("Normal"):e+"x",value:+e,default:t.playbackRate==+e}))),onChange:e=>{let n=e.value;return t.setPlaybackRate(n)}}),t.on("ratechange",(()=>{const e=t.playbackRate,s=n.findIndex((t=>+t==e));-1==s?i.updateLabel(D,e+"x"):i.select(D,s,!1)})))}(this),V(this),function(e,t){t.forceLandscapeOnFullscreen&&!u.un&&u.Fr&&e.on("fullscreenchange",(t=>{var n,i,s,r;!t.payload.isWeb&&e._requestFullscreen&&(e.isFullScreen?null==(i=null==(n=globalThis.screen.orientation)?void 0:n.lock)||i.call(n,"landscape"):null==(r=null==(s=globalThis.screen.orientation)?void 0:s.unlock)||r.call(s))}))}(e,n),u.$.render(i,e.$root),this)}destroy(){}}function xt(e){return new bt(e)}}}]); \ No newline at end of file diff --git a/static/js/oplayer.3d5c4f7c.chunk.js b/static/js/oplayer.3d5c4f7c.chunk.js new file mode 100644 index 00000000..a489e3f3 --- /dev/null +++ b/static/js/oplayer.3d5c4f7c.chunk.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk_web_index=self.webpackChunk_web_index||[]).push([[533],{7789:(e,t,n)=>{var i,s,r,o,a,l,c,d,u;function h(e){return function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=1540483477,i=24,s=t^e.length,r=e.length,o=0;for(;r>=4;){let t=p(e,o);t=m(t,n),t^=t>>>i,t=m(t,n),s=m(s,n),s^=t,o+=4,r-=4}switch(r){case 3:s^=g(e,o),s^=e.charCodeAt(o+2)<<16,s=m(s,n);break;case 2:s^=g(e,o),s=m(s,n);break;case 1:s^=e.charCodeAt(o),s=m(s,n)}return s^=s>>>13,s=m(s,n),s^=s>>>15,s>>>0}(e).toString(36)}function p(e,t){return e.charCodeAt(t++)+(e.charCodeAt(t++)<<8)+(e.charCodeAt(t++)<<16)+(e.charCodeAt(t)<<24)}function g(e,t){return e.charCodeAt(t++)+(e.charCodeAt(t++)<<8)}function m(e,t){return(65535&(e|=0))*(t|=0)+(((e>>>16)*t&65535)<<16)|0}function v(e){return Boolean(e&&"object"===typeof e&&!Array.isArray(e))}function f(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;iy,Ay:()=>X,D9:()=>f,Fr:()=>M,VD:()=>j,nr:()=>A,un:()=>F});var y,b=/[(),]|"(?:\\.|[^"\n])*"|'(?:\\.|[^'\n])*'|\/\*[\s\S]*?\*\//g;function x(e){if(-1===e.indexOf(","))return[e];for(var t,n=[],i=[],s=0;t=b.exec(e);)switch(t[0]){case"(":s++;break;case")":s--;break;case",":if(s)break;n.push(t.index)}for(t=n.length;t--;)i.unshift(e.slice(n[t]+1)),e=e.slice(0,n[t]);return i.unshift(e),i}function $(e,t){let n=x(e);return x(t).map((e=>e.indexOf("&")>=0?e:"&"+e)).reduce(((e,t)=>e.concat(n.map((e=>t.replace(/\&/g,e))))),[]).join(",")}function w(e){return 0===e.indexOf("@media")}function k(e){return 0===e.indexOf("@keyframes")}function E(e,t){var n;let i=t.rules,s=t.mediaQuery,r=t.globalSelector,o={};return r&&(e=r),null==(n=Object.keys(i))||n.forEach((t=>{if(function(e){return 0===e.indexOf("@global")}(t)){const n=t,a=(t=t.substring(8)).indexOf("&");let l;-1!=a?(l=$(e,t),r=t.substring(0,a-1).trim()):l=t,f(o,E(l,{mediaQuery:s,rules:i[n],globalSelector:l}))}else if(function(e){let t=[":",".","[",">"," "],n=!1,i=e.charAt(0);for(let s=0;s=0}(t))f(o,E($(e,t),{rules:i[t],mediaQuery:s}));else if(w(t))f(o,E(e,{mediaQuery:(h=s,p=t,h?"@media "+h.substring(6)+" and "+p.substring(6):p),rules:i[t]}));else{var n,a,l,c,d,u;if(s)null!==(n=o[s])&&void 0!==n||(o[s]={}),null!==(c=(a=o[s])[l=e])&&void 0!==c||(a[l]={}),o[s][e][t]=i[t];else if(k(t))o[t]=i[t];else null!==(u=o[d=e])&&void 0!==u||(o[d]={}),o[e][t]=i[t]}var h,p})),o}function L(e){let t=[];for(const n in e)if(Object.hasOwnProperty.call(e,n)){const i=e[n];v(i)?t.push(n+"{"+L(i)+"}"):t.push(n+":"+i)}return/^\d%/.test(t[0])?t.join(" "):t.join(";")}function S(e){let t=[];for(const n in e)if(Object.hasOwnProperty.call(e,n)){const i=e[n];if(w(n))t.push(n+"{"+S(i)+"}");else if(k(n))t.push(n+"{"+L(i)+"}");else{const e=Object.entries(i).map((e=>e[0]+":"+e[1])).join(";");t.push(n+"{"+e+"}")}}return t}function T(e,t){return S(E(t,{rules:e}))}(e=>{function t(t){if(!(0,e.isBrowser)())return null;let n=document.createElement("style");n.setAttribute("data-"+t,""),n.appendChild(document.createTextNode("")),(document.head||document.getElementsByTagName("head")[0]).appendChild(n);for(let e=0;e1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";const i=-1!==e.indexOf("#"),s=-1!==e.indexOf("."),r=i?e.split("#"):s?e.split("."):[e],o=r[0],a=r[1],l=document.createElement(o);return i&&(l.id=a),s&&l.classList.add(a),n&&(l.innerHTML=n),Object.keys(t).forEach((e=>{const n=t[e];"video"!==o&&"audio"!==o||"boolean"!==typeof n?"undefined"!==typeof n&&l.setAttribute(e,""+n):n&&l.setAttribute(e,"")})),l},e.render=(e,t)=>t.appendChild(e),e.isBrowser=()=>Boolean("undefined"!==typeof globalThis&&globalThis.document&&globalThis.document.documentElement),e.createSheet=t;const n=(()=>{const e=Object.create({});return t=>{const n="object"==typeof t?JSON.stringify(t):t;return e[n]||(e[n]="css-"+h(n)),e[n]}})();e.createCss=e=>{let t=e.sheet,i=e.ssrData;return function(){for(var e,s=arguments.length,r=new Array(s),o=0;o{t.insertRule(e,t.cssRules.length)})):i=i.concat(d),c}},e.createStyled=()=>{const n=[],i=t("oplayer");return{css:(0,e.createCss)({sheet:i,ssrData:n}),getCssValue:()=>n}};var i=(0,e.createStyled)();e.css=i.css,e.getCssValue=i.getCssValue,e.cls=e=>"css-"+h(e)})(y||(y={}));const C=y,P=/(iPad)/gi.test(null==(i=globalThis.navigator)?void 0:i.userAgent)||/Macintosh/i.test(null==(s=globalThis.navigator)?void 0:s.userAgent)&&Boolean(null==(r=globalThis.navigator)?void 0:r.maxTouchPoints)&&(null==(o=globalThis.navigator)?void 0:o.maxTouchPoints)>=1,z=/iPhone/gi.test(null==(a=globalThis.navigator)?void 0:a.userAgent),A=/^((?!chrome|android).)*safari/i.test(null==(l=globalThis.navigator)?void 0:l.userAgent),F=z||P,M=/Android|webOS|iPhone|iPad|iPod|BlackBerry|Windows Phone/i.test(null==(c=globalThis.navigator)?void 0:c.userAgent)||F,_=/mqqbrowser/i.test(null==(d=globalThis.navigator)?void 0:d.userAgent)&&!/ qq/i.test(null==(u=globalThis.navigator)?void 0:u.userAgent),O=(e,t,n)=>{var i;const s=document.createElement("script");s.src=e,s.onload=t,s.onerror=n;const r=document.getElementsByTagName("script")[0];null==(i=null==r?void 0:r.parentNode)||i.insertBefore(s,r)},R={},I=e=>"undefined"===typeof e,j=function(e,t,n){let i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:()=>!0,s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:O;const r=e=>I(window[e])?window.exports&&window.exports[e]?window.exports[e]:window.module&&window.module.exports&&window.module.exports[e]?window.module.exports[e]:void 0:window[e],o=r(t);return o&&i(o)?Promise.resolve(o):new Promise(((i,o)=>{if(!I(R[e]))return void R[e].push({resolve:i,reject:o});R[e]=[{resolve:i,reject:o}];const a=t=>{var n;null==(n=R[e])||n.forEach((e=>e.resolve(t)))};if(!I(n)){const e=window[n];window[n]=function(){I(e)||e.apply(void 0,arguments),a(r(t))}}s(e,(()=>{I(n)&&a(r(t))}),(t=>{var n;null==(n=R[e])||n.forEach((e=>{e.reject(t)})),delete R[e]}))}))},B=["abort","canplay","canplaythrough","durationchange","emptied","ended","error","loadeddata","loadedmetadata","loadstart","pause","play","playing","progress","ratechange","seeked","seeking","stalled","suspend","timeupdate","volumechange","waiting","encrypted","waitingforkey","enterpictureinpicture","leavepictureinpicture"],H=["contextmenu"];[].concat(B,H,["loadedplugin","videoqualitychange","videosourcechange","destroy"]);class q{constructor(){this.events=Object.create(null)}on(e,t){this.events[e]||(this.events[e]=[]),this.events[e].push(t)}onAny(e,t){e.forEach((e=>this.on(e,t)))}once(e,t){const n=n=>{t({type:e,payload:n.payload})};n.raw=t,this.on(e,n)}off(e,t){if(this.events[e])for(let n=0;n{n({type:e,payload:t}),n.raw&&s.push(n)})),null==(i=this.events["*"])||i.forEach((n=>{n({type:e,payload:t}),n.raw&&s.push(n)})),s.forEach((t=>{this.off(e,t)}))}}const N={Play:"\u64ad\u653e",Pause:"\u6682\u505c",Loop:"\u5faa\u73af\u64ad\u653e",Volume:"\u97f3\u91cf","Volume: %s":"\u97f3\u91cf\uff1a%s",Mute:"\u9759\u97f3",Speed:"\u64ad\u653e\u901f\u5ea6",LIVE:"\u76f4\u64ad",Language:"\u8bed\u8a00",Screenshot:"\u622a\u56fe",Subtitle:"\u5b57\u5e55",Quality:"\u753b\u8d28",Fullscreen:"\u5168\u5c4f","TextDecoder Not Supported":"\u4e0d\u652f\u6301\u539f\u751f\u5b57\u5e55",Settings:"\u8bbe\u7f6e","Picture in Picture":"\u753b\u4e2d\u753b",Danmaku:"\u5f39\u5e55",Display:"\u663e\u793a",Opacity:"\u900f\u660e\u5ea6",FontSize:"\u5b57\u4f53\u5927\u5c0f","Display Area":"\u663e\u793a\u533a\u57df",Off:"\u5173\u95ed",Auto:"\u81ea\u52a8",Default:"\u9ed8\u8ba4",Normal:"\u6b63\u5e38","%ss":"%s\u79d2",Close:"\u5173\u95ed","Can be closed after %ss":"%s\u79d2\u540e\u53ef\u5173\u95ed\u5e7f\u544a"};class D{constructor(e){this.languages={zh:N,"zh-CN":N,en:Object.keys(N).reduce(((e,t)=>(e[t]=t,e)),{})},this.lang="auto"===e?navigator.language:e,this.languages[this.lang]||navigator.languages.some((e=>{if(this.languages[e])return this.lang=e,!0;if(-1!==e.indexOf("-")){const t=e.split("-")[0];if(t&&this.languages[t])return this.lang=t,!0}return!1})),this.languages[this.lang]||(this.lang="zh-CN")}get(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i{var e;return null!==(e=n[r++])&&void 0!==e?e:""}))}update(e){f(this.languages,e)}}const V={autoplay:!1,muted:!1,loop:!1,volume:1,preload:"metadata",playbackRate:1,playsinline:!0,lang:"auto",source:{},videoAttr:{},isLive:!1,autopause:!0,isNativeUI:()=>_},U=class e{constructor(e,t){if(this.plugins=[],this.context={},this.listeners=Object.create(null),this.hasError=!1,this.isSourceChanging=!1,this.container="string"==typeof e?document.querySelector(e):e,!this.container)throw new Error(("string"==typeof e?e:"Element")+"does not exist");this.options=Object.assign({},V,"string"===typeof t?{source:{src:t}}:t),this.locales=new D(this.options.lang),this.eventEmitter=new q}static make(t,n){return new e(t,n)}use(e){return e.forEach((e=>{this.plugins.push(e)})),this}create(){return this.render(),this.initEvent(),this.plugins.forEach((e=>this.applyPlugin(e,!0))),this.options.source.src&&this.load(this.options.source),e.players.push(this),this}initEvent(){this.listeners.error=e=>{this.$video.error&&(this.hasError=!0,this.eventEmitter.emit("error",e))},this.$video.addEventListener("error",(e=>this.listeners.error(e)));const e=(e,t)=>{this.eventEmitter.emit(e,t)};[[this.$video,["fullscreenchange","webkitbeginfullscreen","webkitendfullscreen"],["fullscreenerror","webkitfullscreenerror","mozfullscreenerror"]],[this.$root,["fullscreenchange","webkitfullscreenchange"],["fullscreenerror","webkitfullscreenerror","mozfullscreenerror"]]].forEach((t=>{const n=t[0];t.slice(1).forEach((t=>{const i=t[0];this.listeners[i]=e,t.forEach((e=>{n.addEventListener(e,(e=>{this.listeners[i](i,e)}),{passive:!0})}))}))})),[[this.$video,B],[this.$root,H]].forEach((t=>{let n=t[0];t[1].forEach((t=>{this.listeners[t]||(this.listeners[t]=e,n.addEventListener(t,(e=>{var n;null==(n=this.listeners)||n[t](t,e)}),{passive:!0}))}))}))}render(){this.$video=C.create("video."+C.css("\n width: 100%;\n height: 100%;\n display: block;\n position: relative;\n "),Object.assign({autoplay:this.options.autoplay,loop:this.options.loop,playsinline:this.options.playsinline,"webkit-playsinline":this.options.playsinline,"x5-playsinline":this.options.playsinline,preload:this.options.preload,poster:this.options.source.poster},this.options.videoAttr));const e=this.options,t=e.muted,n=e.volume,i=e.playbackRate;t&&this.mute(),this.$video.volume=n,setTimeout((()=>{this.$root&&this.setPlaybackRate(i)})),this.$root=C.create("div."+C.css("\n position: relative;\n width: 100%;\n height: 100%;\n overflow: hidden;\n background-color: #000;\n ")),C.render(this.$video,this.$root),C.render(this.$root,this.container)}async load(e){var t;await(null==(t=this.loader)?void 0:t.destroy()),this.loader=void 0;for(const n of this.plugins)if(n.load){const t=await n.load(this,e);if(0!=t&&!this.loader){this.loader=t,this.emit("loaderchange",t);break}}return this.loader||(this.$video.src=e.src),e}applyPlugin(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const n=e.name,i=e.key;if(this.context[e.key||e.name])throw new Error("duplicate plugin");t||this.plugins.push(e);const s=e.apply(this);s&&(this.context[i||n]=s)}on(e,t){return"string"===typeof e?this.eventEmitter.on(e,t):Array.isArray(e)?this.eventEmitter.onAny(e,t):"function"===typeof e&&this.eventEmitter.on("*",e),this}once(e,t){this.eventEmitter.once(e,t)}off(e,t){this.eventEmitter.off(e,t)}emit(e,t){this.eventEmitter.emit(e,t)}setPoster(e){this.$video.poster=e}play(){if((this.$video.src||this.$video.currentSrc)&&!this.isSourceChanging){if(this.options.autopause)for(let t=0;t1?1:e<0?0:e,this.$video.volume>0&&this.isMuted&&this.unmute()}setPlaybackRate(e){this.$video.playbackRate=e}seek(e){this.$video.currentTime=e}setLoop(e){this.$video.loop=e}async enterFullscreen(){this.isInPip&&await this.exitPip(),this._requestFullscreen?this._requestFullscreen.call(this.$root,{navigationUI:"hide"}):this.$video.webkitEnterFullscreen()}exitFullscreen(){return this._exitFullscreen.call(document)}get isFullscreenEnabled(){return document.fullscreenEnabled||document.webkitFullscreenEnabled||document.mozFullScreenEnabled||document.msFullscreenEnabled||this.$video.webkitEnterFullscreen}get isFullScreen(){return Boolean((document.fullscreenElement||document.webkitFullscreenElement||document.mozFullScreenElement||document.msFullscreenElement)===this.$root||this.$video.webkitDisplayingFullscreen)}toggleFullScreen(){return this.isFullScreen?this.exitFullscreen():this.enterFullscreen()}get isPipEnabled(){return document.pictureInPictureEnabled}enterPip(){return this.$video.requestPictureInPicture()}exitPip(){return!!this.isInPip&&document.exitPictureInPicture()}get isInPip(){return document.pictureInPictureElement==this.$video}togglePip(){return this.isInPip?this.exitPip():this.enterPip()}changeQuality(e){return this._loader(e,{keepPlaying:!0,keepTime:!0,preEvent:"videoqualitychange",event:"videoqualitychanged",brokenEvent:"qualitychangeerror"})}changeSource(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return this._loader(e,{keepPlaying:t,preEvent:"videosourcechange",event:"videosourcechanged",brokenEvent:"sourcechangeerror"})}_loader(e,t){return new Promise(((n,i)=>{if(this.isSourceChanging)return i(Error("Previous Source is Changing."));const s=this.isPlaying,r=this.currentTime,o=this.volume,a=this.playbackRate;this.pause(),this.hasError=!1,this.isSourceChanging=!0,this.emit(t.preEvent,e);const l=t.keepPlaying,c=t.keepTime,d="none"==this.options.preload,u=d?"loadstart":"loadedmetadata",h=l&&s;let p;const g=n=>{this.$root&&(this.off(u,v),this.emit(t.brokenEvent,{source:p||e,error:n}),"videosourcechanged"==t.event?this.isSourceChanging=!1:this.load(this.options.source).then(m).finally((()=>{this.isSourceChanging=!1})),i(n))},m=()=>{o!=this.volume&&this.setVolume(o),a!=this.playbackRate&&this.setPlaybackRate(a),d&&c&&this.$video.load(),c&&!this.options.isLive&&this.seek(r),h&&!this.isPlaying&&this.$video.play(),Object.assign(this.options.source,p)},v=()=>{this.$root&&(this.off("error",g),m(),this.isSourceChanging=!1,this.emit(t.event,p),n())};return(e instanceof Promise?e:Promise.resolve(e)).then((e=>{if(!e.src)throw new Error("Empty Source");return p=e,this.$video.poster=e.poster||"",this.once("error",g),this.once(u,v),e})).then((e=>this.load(e))).catch(g)}))}destroy(){e.players.splice(e.players.indexOf(this),1);const t=this.eventEmitter,n=this.loader,i=this.plugins,s=this.container,r=this.$root,o=this.$video,a=this.isPlaying,l=this.isFullScreen,c=this.isInPip;t.emit("destroy"),t.offAll(),null==n||n.destroy(),i.forEach((e=>{var t;return!e.load&&(null==(t=e.destroy)?void 0:t.call(e))})),a&&this.pause(),l&&this.exitFullscreen(),c&&this.exitPip(),o.src&&URL.revokeObjectURL(o.src),s.removeChild(r),this.eventEmitter=this.locales=this.options=this.listeners=this.context=this.plugins=this.container=this.$root=this.$video=this.loader=void 0}get isNativeUI(){return this.options.isNativeUI()}get state(){return this.$video.readyState}get isPlaying(){return!this.$video.paused}get isMuted(){return this.$video.muted}get isEnded(){return this.$video.ended}get isLoop(){return this.$video.loop}get isAutoPlay(){return this.$video.autoplay}get duration(){return this.$video.duration}get buffered(){return this.$video.buffered}get currentTime(){return this.$video.currentTime}get volume(){return this.$video.volume}get playbackRate(){return this.$video.playbackRate}get _requestFullscreen(){return HTMLElement.prototype.requestFullscreen||HTMLElement.prototype.webkitRequestFullscreen||HTMLElement.prototype.mozRequestFullScreen||HTMLElement.prototype.msRequestFullscreen}get _exitFullscreen(){return Document.prototype.exitFullscreen||Document.prototype.webkitExitFullscreen||Document.prototype.cancelFullScreen||Document.prototype.mozCancelFullScreen||Document.prototype.msExitFullscreen}static get version(){return"1.2.36"}};U.players=[];let X=U;globalThis.window&&console.log("%cOPlayer%c v%s\n %c\nOh! Another HTML5 video player.\nhttps://github.com/shiyiya/oplayer\n","font-size:32px;","font-size:12px;color:#999999;",X.version,"font-size:14px;")},5469:(e,t,n)=>{n.d(t,{NN:()=>a,gv:()=>r});var i=n(7789);!function(){try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode('.playlist{position:absolute;top:0;left:100%;height:100%;z-index:9;width:18em;transition:transform .3s;background-color:#1c1c1ce6}@media (max-width: 991px){.playlist{max-width:70%}}.playlist.playlist__active{transform:translate(-100%)}.playlist.playlist__wait .playlist-list{cursor:wait}.playlist.playlist__wait .playlist-list .playlist-list-item{pointer-events:none}.playlist.playlist__active:before{content:"";position:absolute;width:100vw;height:100%;right:0;z-index:-1}.playlist-head{display:flex;justify-content:space-between;background:#000;border-bottom:1px solid #484848;padding:.2em .2em .2em .4em;align-items:center;color:#fff;box-sizing:border-box;height:2.2em}.playlist-head>span{font-size:.8em}.playlist-head .playlist-back{display:flex;align-items:center;cursor:pointer}.playlist-head .playlist-back>svg{width:1.75em;height:1.75em;fill:#fff;pointer-events:none}.playlist-head .playlist-back:hover{background-color:#ffffff4d;border-radius:2px}.playlist-list{overflow:auto;height:100%;padding-bottom:2.2em;box-sizing:border-box;color:#ccc}.playlist-list::-webkit-scrollbar{width:.3em}.playlist-list::-webkit-scrollbar-thumb{background:#ccc}.playlist-list-item{position:relative;border-bottom:1px solid #444;padding:8px;display:flex;height:5em;cursor:pointer;box-sizing:border-box;overflow:hidden}.playlist-list-item>*{pointer-events:none}.playlist-list-item:hover,.playlist-list-item.playlist-source__active{color:#fff;background-color:#ffffff1a}.playlist-list-item.playlist-source__progress:before{content:"";top:0;left:-100%;position:absolute;width:100%;height:100%;animation:progress 1s infinite;background:linear-gradient(to right,transparent,rgba(255,255,255,.4),transparent)}@keyframes progress{0%{left:-100%}to{left:100%}}.playlist-list-item-thumb{background-color:#000;border:1px solid #444;float:left;margin-right:10px;height:100%;aspect-ratio:16/9;color:#555;display:flex;justify-content:center;align-items:center;position:relative}.playlist-list-item-img{height:100%;width:100%;object-fit:cover}.playlist-list-item-img__error:after{content:"ERROR";position:absolute;left:0;top:0;width:100%;height:100%;background-color:#000;display:flex;justify-content:center;align-items:center}.playlist-list-item-desc{width:100%;font-size:14px;display:flex;flex-direction:column;justify-content:space-evenly}.playlist-list-item-desc>p{margin:0 0 6px;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;overflow:hidden;-webkit-box-orient:vertical;line-height:1.2}')),document.head.appendChild(e)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}}();const s=!!globalThis.chrome;class r{constructor(e){this.options=e,this.name="oplayer-plugin-chromecast",this.version="1.0.13"}apply(e){if(this.canPlay())return this.player=e,this.registerUI(),this}get cast(){return cast.framework.CastContext.getInstance()}get castSessionMedia(){var e;return null==(e=this.cast.getCurrentSession())?void 0:e.getSessionObj().media[0]}get isCastConnected(){return this.cast.getCastState()===cast.framework.CastState.CONNECTED}get device(){var e;return null==(e=this.cast.getCurrentSession())?void 0:e.getCastDevice()}hasActiveCastSession(e){var t,n;return(null==(n=null==(t=this.castSessionMedia)?void 0:t.media)?void 0:n.contentId)===(null==e?void 0:e.src)}canPlay(){return s&&!i.un}async __requestChromeCast(){var e;if(this._player||(this._player=new cast.framework.RemotePlayer,new cast.framework.RemotePlayerController(this._player)),this.hasActiveCastSession(this.player.options.source))return;this.cast.setOptions({receiverApplicationId:window.chrome.cast.media.DEFAULT_MEDIA_RECEIVER_APP_ID,autoJoinPolicy:chrome.cast.AutoJoinPolicy.ORIGIN_SCOPED,resumeSavedSession:!0,androidReceiverCompatible:!0,...this.options});const t=await this.cast.requestSession();if(t)throw new Error(`Chrome Cast Error Code: ${t}`);return null==(e=this.cast.getCurrentSession())?void 0:e.loadMedia(this.__buildRequest())}__buildRequest(){var e,t;const{source:n,isLive:i}=this.player.options,s=new chrome.cast.media.MediaInfo(n.src,n.type||"video/mp4");s.streamType=i?chrome.cast.media.StreamType.LIVE:chrome.cast.media.StreamType.BUFFERED;const r=new chrome.cast.media.GenericMediaMetadata;n.title&&(r.title=n.title),n.poster&&(r.images=[{url:n.poster,height:null,width:null}]),s.metadata=r;const o=null==(t=null==(e=this.player.context.ui)?void 0:e.config.subtitle)?void 0:t.source;o&&(s.tracks=o.map(((e,t)=>{const n=new chrome.cast.media.Track(t,chrome.cast.media.TrackType.TEXT);return n.name=e.name,n.trackContentId=e.src,n.trackContentType=e.type||"text/vtt",n.language=e.language||e.name,n.subtype=chrome.cast.media.TextTrackType.CAPTIONS,n})));const a=new chrome.cast.media.LoadRequest(s);return a.autoplay=this.player.isPlaying,a.currentTime=this.player.currentTime,a}async _loadCast(){var e;null!=(e=window.cast)&&e.framework||(await(0,i.VD)("https://www.gstatic.com/cv/js/sender/v1/cast_sender.js?loadCastFramework=1","cast"),await customElements.whenDefined("google-cast-launcher"))}async start(){try{await this._loadCast();const e=await this.__requestChromeCast();if(e)throw new Error(`Chrome Cast Error Code: ${e}`)}catch(e){this.player.emit("cast-error",e)}}registerUI(){if(!this.player.context.ui)return;const{menu:e,icons:t}=this.player.context.ui;null==e||e.register({name:"ChromeCast",position:"top",icon:t.chromecast||'',onClick:()=>this.start()})}}const o=class e{constructor(e){this.key="playlist",this.name="oplayer-plugin-playlist",this.version="1.0.13",this.options=Object.assign({autoNext:!0,autoHide:!0,sources:[]},e)}apply(e){if(!e.isNativeUI)return this.player=e,this._init(),this}async _init(){var t;const i=()=>{var e;this.renderContainer(),this.changeSourceList(this.options.sources),"number"==typeof s&&this.changeSource(s),this.options.autoNext&&this.player.on(["ended","error"],(()=>{this.next()})),null==(e=this.player.context.ui.keyboard)||e.register({l:()=>{this.$root.classList.toggle("playlist__active")}})},{initialIndex:s,m3uList:r,sources:o}=this.options;r&&null!=(t=o[0])&&t.src?(e.m3u8Parser||(e.m3u8Parser=globalThis.m3u8Parser||await Promise.all([n.e(447),n.e(459)]).then(n.bind(n,9775))),fetch(o[0].src).then((e=>e.text())).then((t=>{const n=new e.m3u8Parser.Parser;n.push(t),n.end(),this.options.sources=n.manifest.segments.map((e=>null!=r&&r.sourceFormat?r.sourceFormat(e):{src:e.uri,title:e.title})),i()})).catch((e=>{this.player.emit("notice",{pluginName:this.name,text:"Playlist: "+e.message})}))):i()}get isWaiting(){return this.$root.classList.contains("playlist__wait")}changeSource(e){if(!this.options.sources[e]||this.isWaiting)return;const t=this.$root.querySelector(`.playlist-list-item[data-index='${e}']`);this.$root.classList.add("playlist__wait"),null==t||t.classList.add("playlist-source__progress");const n=this.options.sources[e];return new Promise((t=>{var i,s;n.src||!this.options.customFetcher?t(n):t(null==(s=(i=this.options).customFetcher)?void 0:s.call(i,n,e))})).then((e=>{if(!e.src)throw this.player.context.ui.notice("Empty Source"),new Error("Empty Source");const{src:t,poster:n,format:i,title:s,subtitles:r,thumbnails:o,highlights:a,danmaku:l}=e;return this.player.changeSource({src:t,poster:n,format:i,title:s}).then((()=>{var e;r&&this.player.context.ui.subtitle.changeSource(r),o&&this.player.context.ui.changThumbnails(o),a&&this.player.context.ui.changHighlightSource(a),l&&(null==(e=this.player.context.danmaku)||e.bootstrap(l))}))})).then((()=>{this.player.emit("playlistsourcechange",{source:n,id:e}),this.options.autoHide&&setTimeout((()=>{this.hideUI()}),300)})).catch((t=>{this.player.emit("playlistsourceerror",{error:(null==t?void 0:t.payload)||t,idx:e})})).finally((()=>{var n;this.currentIndex=e,this._updateHeader(),null==(n=this.$root.querySelector(".playlist-source__active"))||n.classList.remove("playlist-source__active"),null==t||t.classList.add("playlist-source__active"),setTimeout((()=>{this.$root.classList.remove("playlist__wait"),null==t||t.classList.remove("playlist-source__progress")}),300)}))}changeSourceList(e){this.options.sources=e,this.renderList(e),this.player.emit("playlistchange",e)}next(){this.changeSource((this.currentIndex||0)+1)}previous(){this.changeSource((this.currentIndex||0)-1)}showUI(){this.$root.classList.add("playlist__active")}hideUI(){this.$root.classList.remove("playlist__active")}renderContainer(){const e=`\n
\n ${this.player.locales.get("PLAYLIST")}\n
${this.player.context.ui.icons.playlist||''}
\n
\n
\n
`;this.$root=document.createElement("div"),this.$root.innerHTML=e,this.$root.className="playlist",this.$root.onclick=e=>{const t=e.target;t.classList.contains("playlist-list-item")?this.changeSource(+t.getAttribute("data-index")):(t.classList.contains("playlist-back")||t==this.$root&&t.classList.contains("playlist__active"))&&this.hideUI()},this.player.context.ui.$root.appendChild(this.$root),this.player.context.ui.menu.register({name:"Playlist",icon:'',position:"top",onClick:()=>{this.showUI();const e=this.$root.querySelector(".playlist-list"),t=this.$root.querySelector(".playlist-source__active");t&&e.scrollHeight>0&&this.currentIndex&&e.scrollTo(0,t.offsetTop-t.offsetHeight)}})}renderList(e){const t=e.map(((e,t)=>`\n
\n
\n ${e.poster?`${e.title||`:"EMPTY"}\n
\n\n
\n

${e.title}

\n ${e.duration?`${e.duration}`:""}\n
\n
`)).join("");this._updateHeader(),this.$root.querySelector(".playlist-list").innerHTML=t}_updateHeader(){this.$root.querySelector(".playlist-head-title").textContent=`${this.player.locales.get("PLAYLIST")} (${void 0!==this.currentIndex?`${this.currentIndex+1}/`:""}${this.options.sources.length})`}destroy(){this.currentIndex=void 0,this.options.sources=[],this.renderList([])}};o.m3u8Parser=globalThis.m3u8Parser;let a=o},8159:(e,t,n)=>{n.d(t,{Ay:()=>a});var i=n(1914),s=n(7789),r=n(1394);const o=["playing","duration","aspectRatio","plugins","onEvent"];const a=(0,r.forwardRef)(((e,t)=>{const n=e.playing,a=e.duration,c=e.aspectRatio,d=void 0===c?9/16:c,u=e.plugins,h=void 0===u?[]:u,p=e.onEvent,g=function(e,t){if(null==e)return{};var n,i,s={},r=Object.keys(e);for(i=0;i=0||(s[n]=e[n]);return s}(e,o),m=(0,r.useRef)(p);m.current=p;const v=(0,r.useRef)(null),f=function(e){const t=(0,r.useRef)();return(0,r.useEffect)((()=>{t.current=e}),[e]),t.current}(g.source),y=v.current&&v.current.$root,b=(0,r.useCallback)((e=>{null===e||y||(v.current=s.Ay.make(e,g).use(h).create(),"number"==typeof a&&v.current.seek(a/1e3),p&&v.current.on((e=>{var t;return null==(t=m.current)?void 0:t.call(m,e)})))}),[]);return l(y,(()=>{n?v.current.isPlaying||v.current.play():v.current.isPlaying&&v.current.pause()}),[n]),l(y,(()=>{var e;(g.source instanceof Promise&&f!=g.source||(null==(e=g.source)?void 0:e.src)&&(null==f?void 0:f.src)!==g.source.src)&&v.current.changeSource(g.source)}),[g.source]),l(y&&"number"===typeof a,(()=>{v.current.seek(a/1e3)}),[a]),l(y,(()=>{g.muted?v.current.mute():v.current.unmute()}),[g.muted]),l(y,(()=>{v.current.setPlaybackRate(g.playbackRate)}),[g.playbackRate]),(0,r.useEffect)((()=>()=>{var e;return null==(e=v.current)?void 0:e.destroy()}),[]),(0,r.useImperativeHandle)(t,(()=>v.current),[]),(0,r.useMemo)((()=>0==d?(0,i.jsx)("div",{ref:b}):(0,i.jsx)("div",{style:{width:"100%",paddingTop:100*d+"%",backgroundColor:"#f4f4f4",position:"relative"},children:(0,i.jsx)("div",{style:{position:"absolute",top:0,left:0,width:"100%",height:"100%"},ref:b})})),[])})),l=(e,t,n)=>{(0,r.useEffect)((()=>{if(Boolean(e))return t()}),n)}},1604:(e,t,n)=>{n.d(t,{A:()=>xt});var i,s,r,o,a,l,c,d,u=n(7789);function h(e,t){return t||(t=e.slice(0)),e.raw=t,e}const p=u.$.cls("loading"),g=u.$.cls("playing"),m=u.$.cls("focused"),v=u.$.cls("fullscreen"),f=u.$.cls("settingShown"),y=u.$.css("display:none"),b="data-ctrl-hidden",x=u.$.css({["."+g]:{cursor:"none"}}),$=u.$.cls("error"),w=u.$.css(i||(i=h(["\n z-index: 99 !important;\n position: fixed !important;\n left: 0;\n right: 0;\n top: 0;\n bottom: 0;"]))),k=u.$.css({background:"none",border:"none",cursor:"pointer",padding:0,outline:"none",font:"inherit",color:"inherit",fill:"#fff","line-height":"inherit","text-align":"inherit",width:"100%","-webkit-tap-highlight-color":"transparent","user-select":"none"}),E=u.$.css({"& > *:nth-child(1)":{display:"none"}}),L=u.$.css({"& > *:nth-child(2)":{display:"none"}}),S=u.Fr?"":u.$.css({position:"relative","&:hover":{"&::after":{opacity:1,transform:"translateX(-50%) scale(1)"},"&:not([data-tooltip-pos]):last-child::after":{right:0,left:"auto",transform:"translateY(0) scale(1)"},"&[data-tooltip-pos=down]::after":{transform:"translateX(-50%) scale(1)"},"&[data-tooltip-pos=down]:last-child::after":{right:0,transform:"translateY(0) scale(1)"}},"&::after":{position:"absolute",content:"attr(aria-label)",bottom:"100%",left:"50%","margin-bottom":"0.5em","white-space":"nowrap",background:"var(--shadow-background-color)",transform:"translate(-50%, 10px) scale(.8)","transform-origin":"50% 100%",opacity:0,padding:"6px 8px","border-radius":"2px",transition:"transform .2s ease .1s,opacity .2s ease .1s","pointer-events":"none","font-size":"0.75em"},"&[data-tooltip-pos=down]::after":{top:"100%",bottom:"auto","margin-top":"0.5em",transform:"translate(-50%, -10px) scale(.8)"},"&[data-tooltip-pos=down]:last-child::after":{right:0,top:"100%",bottom:"unset",left:"auto","margin-top":"0.5em",transform:"translateY(-10px) scale(.8)","transform-origin":"100% 0"},"&:not([data-tooltip-pos]):last-child::after":{right:0,left:"auto",transform:"translateY(10px) scale(.8)","transform-origin":"100% 100%"}}),T={play:'',pause:'',volume:['',''],fullscreen:['',''],pip:['',''],setting:'\n',screenshot:'',playbackRate:'',subtitle:'',loop:'',quality:'',lang:'',progressIndicator:null,loadingIndicator:null,previous:null,next:null,chromecast:null,airplay:null,danmaku:null,playlist:null};var C,P;(P=C||(C={})).setupIcons=e=>{for(const t in e)Object.prototype.hasOwnProperty.call(e,t)&&(T[t]=e[t]);return T},P.get=e=>T[e];const z=e=>{const t=()=>e.$root.classList.add(p),n=()=>{e.isSourceChanging||e.$root.classList.remove(p)};"none"!=e.$video.preload&&t(),e.on("loadstart",(()=>{"none"==e.$video.preload&&n()})),e.on(["seeking","videoqualitychange","videosourcechange"],t),e.on(["canplaythrough","playing","pause","seeked","error"],n),e.on(e.options.autoplay||u.nr?"loadedmetadata":"canplay",(()=>e.$root.classList.remove(p))),e.on(["waiting","playing"],(i=>{"waiting"==i.type&&t();const s=e.currentTime,r=()=>{s!==e.currentTime?(n(),e.off("timeupdate",r)):t()};e.on("timeupdate",r)}))},A=(e,t)=>{(e=>{e.on("play",(()=>{e.$root.classList.add(g)})),e.on(["pause","videosourcechange"],(()=>{e.$root.classList.remove(g)}))})(e),z(e),(e=>{e.on("fullscreenchange",(t=>{if(t.payload.isWeb)e.$root.classList.toggle(w);else{if(!e._requestFullscreen)return;e.$root.classList.toggle(v)}}))})(e),u.Fr||((e,t)=>{function n(t){let n=t.target;n&&(e.$root.contains(n)||e.$root==n)?e.$root.classList.add(m):e.$root.classList.remove(m)}t&&e.$root.classList.add(m),document.addEventListener("click",n),document.addEventListener("contextmenu",n),e.on("destroy",(()=>{document.removeEventListener("click",n),document.removeEventListener("contextmenu",n)}))})(e,t.autoFocus)};function F(e,t,n){return Math.min(Math.max(e,t),n)}function M(e){return e<10?"0"+e:""+e}function _(e){if(!isFinite(e))return"--:--";const t=Math.floor(e/3600),n=Math.floor(e%3600/60),i=Math.floor(e%3600%60);return(t>0?M(t)+":":"")+M(n)+":"+M(i)}const O=e=>{if((e=>e.$root.classList.contains(p))(e)||isNaN(e.duration))return void e.emit("notice",{text:e.locales.get("Please wait for loading to complete")});const t=(e=>{var t;try{const n=e.$video,i=e.$root,s=e.context.ui,r=document.createElement("canvas"),o=n.videoWidth,a=n.videoHeight;r.width=o,r.height=a,r.getContext("2d").drawImage(n,0,0,o,a);const l=(null==(t=s.$watermark)?void 0:t.style)||{},c=l.top,d=l.left,u=l.right,h=l.bottom;if(s.$watermark&&[c,d,u,h].filter((e=>void 0!=e)).length>1){const e=s.$watermark,t=e.offsetLeft,n=e.offsetTop,a=e.offsetWidth,l=e.offsetHeight,p=s.$watermark.getBoundingClientRect(),g=p.width,m=p.height;let v=0,f=0;d?v=t:u&&(v=o-(i.clientWidth-t-a)-a),c?f=n:h&&(f=o-(i.clientHeight-n-l)-l),r.getContext("2d").drawImage(s.$watermark,v,f,g,m)}return r.toDataURL("image/png")}catch(n){return n}})(e);if(t instanceof Error)e.emit("notice",{text:t.message});else{!function(e,t){const n=document.createElement("a");n.href=e,n.download=t,n.click()}(t,(e.options.source.title||"OPlayer-ScreenShot")+"-"+_(e.currentTime).replace(/:/g,"-")+".png")}},R=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1500,n=null;const i=()=>n&&clearTimeout(n);return{callee:()=>{i(),n=setTimeout((()=>{e()}),t)},clear:i}};function I(e,t){return e.classList.add(t),e}function j(e,t){return e.classList.remove(t),e}function B(e,t){return e.classList.contains(t)}const H={dragStart:u.Fr?"touchstart":"mousedown",dragMove:u.Fr?"touchmove":"mousemove",dragEnd:u.Fr?"touchend":"mouseup"},q={ArrowUp:e=>{const t=100*e.volume+10;e.setVolume(t/100),e.emit("notice",{text:e.locales.get("Volume: %s",~~(100*e.volume)+"%")})},ArrowDown:e=>{const t=100*e.volume-10;e.setVolume(t/100),e.emit("notice",{text:e.locales.get("Volume: %s",~~(100*e.volume)+"%")})},ArrowLeft:(e,t)=>{var n,i;if(e.options.isLive||e.hasError)return;e.currentTime-((null==(n=t.theme.progress)?void 0:n.backward)||5)<0?e.seek(0):e.seek(e.currentTime-((null==(i=t.theme.progress)?void 0:i.forward)||5)),e.emit("notice",{text:_(e.currentTime)+" / "+_(e.duration)})},ArrowRight:e=>{e.options.isLive||e.hasError||(e.seek(e.currentTime+5),e.emit("notice",{text:_(e.currentTime)+" / "+_(e.duration)}))}," ":e=>e.togglePlay(),k:e=>e.togglePlay(),Escape:e=>{e.isFullScreen?e.exitFullscreen():e.$root.classList.contains(w)&&e.emit("fullscreenchange",{isWeb:!0})},f:e=>e.toggleFullScreen(),w:e=>e.emit("fullscreenchange",{isWeb:!0}),s:O,m:e=>e.isMuted?e.unmute():e.mute()};function N(e){var t,n;const i=e.player,s=e.config;function r(e){var t,n,r;if("INPUT"==(null==(t=document.activeElement)?void 0:t.tagName)||"TEXTAREA"==(null==(n=document.activeElement)?void 0:n.tagName)||(null==(r=document.activeElement)?void 0:r.getAttribute("contenteditable"))||s.keyboard.focused&&!(e=>e.$root.classList.contains(m))(i)||e.altKey||e.ctrlKey||e.metaKey||e.shiftKey)return;const o=e.key;q[o]&&(e.preventDefault(),q[o](i,s))}(!u.Fr||(null==(t=s.keyboard)?void 0:t.focused)||(null==(n=s.keyboard)?void 0:n.global))&&(e.keyboard={register:function(e){for(const t in e)Object.prototype.hasOwnProperty.call(e,t)&&(q[t]=e[t])},unregister:function(e){e.forEach((e=>{delete q[e]}))}},document.addEventListener("keydown",r),i.on("destroy",(()=>{document.removeEventListener("keydown",r)})))}const D="speed";function V(e){var t;const n=e.player,i=e.config.theme,s=e.$mask,r=null==(t=i.controller)?void 0:t.slideToSeek;u.Fr&&!n.options.isLive&&r&&"none"!=r&&n.once("loadedmetadata",(()=>{let e,t=0,i=0,o=0,a=0;const l=n.$root.getBoundingClientRect();function c(e){if(0==t&&0==i)return;const s=e.changedTouches[0],r=s.clientX,o=s.clientY,c=r-t,d=i-o;if(Math.abs(c)<2&&Math.abs(d)<2)return;const u=function(e,t){return 180*Math.atan2(t,e)/Math.PI}(c,d);(u>=-45&&u<45||u>=135&&u<=180||u>=-180&&u<-135)&&(e.preventDefault(),a=60*c/l.width,n.emit("notice",{text:_(F(n.currentTime+a,0,n.duration))+" / "+_(n.duration),pos:"top"}))}function d(){0==t&&0==i||("long-touch"==r&&o<1e3&&(e&&clearInterval(e),s.removeEventListener("touchmove",c)),Math.abs(a)>=1&&n.seek(F(n.currentTime+a,0,n.duration)),t=i=a=o=0)}"always"==r&&(s.addEventListener("touchstart",(e=>{if(B(n.$root,f))return;const s=e.changedTouches[0],r=s.clientX,o=s.clientY;t=r,i=o})),s.addEventListener("touchmove",c),s.addEventListener("touchend",d)),"long-touch"==r&&s.addEventListener("touchstart",(r=>{if(B(n.$root,f))return;const a=r.changedTouches[0],l=a.clientX,u=a.clientY;t=l,i=u,e=window.setInterval((()=>{o+=100,o>=1e3&&(clearInterval(e),n.emit("notice",{text:"slid left or right to seek",pos:"top"}),s.addEventListener("touchmove",c))}),100),s.addEventListener("touchend",d,{once:!0})}))}))}const U=u.$.css(s||(s=h(["\n font-variant-numeric: tabular-nums;\n font-size: 0.875em;\n"]))),X=u.$.css("width:0.5em;height:0.5em;background-color:var(--primary-color);border-radius:50%;margin-right:0.5em"),W=u.$.css("\n position: absolute;\n top: 10px;\n right: 50%;\n border-radius: 2px;\n box-sizing: border-box;\n transform: translate(50%, -100%);\n transition: opacity 0.2s ease, top 0.2s ease;\n font-size: 0.875em;\n"),Y=u.$.css("\n top: calc(100% - 10px);\n right: 50%;\n transform: translateX(50%);\n"),K=u.$.css({position:"relative",display:"flex",["& ."+W]:{visibility:"hidden",opacity:0,"background-color":"var(--shadow-background-color)"}}),Q=u.$.css({"&:hover":{"padding-top":"0.5em","margin-top":"-0.5em",["& ."+W]:{visibility:"visible",opacity:1,top:0}},"&[data-dropdown-pos=top]:hover":{"padding-bottom":"0.5em","margin-bottom":"-0.5em",["& ."+W]:{top:"100%"}}}),J=u.$.css({padding:"0 0.5em","min-width":"6em",display:"block",height:"2.4em","line-height":"2.4em",cursor:"pointer","text-align":"center","word-break":"keep-all","&:nth-last-child(1)":{"margin-bottom":"0px"},"& *":{"pointer-events":"none"},"&[aria-checked=true]":{color:"var(--primary-color)"},"&:hover":{"background-color":"rgba(255, 255, 255, 0.1)"}}),G=u.$.cls("textIcon"),Z=u.$.css({display:"flex","align-items":"center",["& > ."+k+":last-child"+(u.Fr?", & > ."+k+'[aria-label="Play"], & > .'+k+'[aria-label="Pause"]':"")]:{"margin-right":0}}),ee=u.$.css({color:"#fff",height:"2.375em",display:"flex","box-sizing":"border-box","justify-content":"space-between","align-items":"center","padding-bottom":u.Fr?0:"0.25em",["& ."+k+"."+G]:{width:"auto","min-width":"2em","font-size":"0.875em",padding:"0 4px","border-radius":"2px"},["& ."+k]:Object.assign({width:"2em",height:u.Fr?"auto":"2em","margin-right":"0.5em","justify-content":"center","align-items":"center",display:"inline-flex","& > *":{height:"1.5em",width:"1.5em","pointer-events":"none",transition:"transform .2s ease-in-out"}},u.Fr?{"&:active > *":{transform:"scale(.9)"}}:{"&:hover":{"background-color":"rgb(255 255 255 / .2)"}})}),te=u.$.css({flex:1,height:"100%","padding-left":"0.5em","> div":{height:"100%",display:"flex","align-items":"center"}}),ne=u.$.css("display: block;"),ie=u.$.css("min-width: 15.5em;"),se=u.$.css("min-width: 10.5em;"),re=u.$.css("\n display: none;\n width: 1.4em;\n height: 1.4em;\n"),oe=u.$.css("\n width: 2em;\n height: 2em;\n margin: 0 -10px 0 -5px;\n"),ae=u.$.css("\n width: 2em;\n height: 2em;\n transform: rotate(180deg);\n margin-left: -10px;\n"),le=u.$.css({position:"absolute",cursor:"pointer",top:"0",left:"0",right:"0",bottom:"0","background-color":"#ccc",transition:".3s","border-radius":"34px","&:before":{position:"absolute",content:'""',height:"1em",width:"1em",left:"0.25em",bottom:"0.1875em","background-color":"white",transition:".3s","border-radius":"50%"}}),ce=u.$.css("\n position: relative;\n width: 2.5em;\n height: 1.375em;\n"),de=u.$.css("\n white-space: nowrap;\n color: rgba(255, 255, 255, 0.7);\n font-size: 0.8em;\n"),ue=u.$.css({height:"2.4em",cursor:"pointer",color:"#fff","justify-content":"space-between","align-items":"center",padding:"0 0.75em","line-height":"1",display:"flex",overflow:"hidden","& > *":{"pointer-events":"none"},"&:hover":{"background-color":"rgba(255, 255, 255, 0.1)"},"&[aria-checked='true']":{["& ."+re]:{display:"block"},"&[data-index]":{"background-color":"rgba(255, 255, 255, 0.1)"},["& ."+le]:{"background-color":"var(--primary-color)","&:before":{transform:"translateX(1em)"}}}}),he=u.$.css({display:"flex","align-items":"center","margin-right":"10px","& > svg":{width:"1.7em",height:"1.7em","margin-right":"0.5em"}}),pe=u.$.css("\n display: flex;\n align-items: center;\n"),ge=u.$.css({width:"100%",display:"flex","align-items":"center","border-bottom":"1px solid rgb(255 255 255 / 10%)"}),me=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:oe;return"'},ve=function(e){return'
\n '+(arguments.length>1&&void 0!==arguments[1]?arguments[1]:"")+"\n "+e+"\n
\n \n \n \n'},fe=function(e){return'
\n '+(arguments.length>1&&void 0!==arguments[1]?arguments[1]:"")+"\n "+e+"\n
\n
\n '+me(ae)+"\n "+e+"\n
\n",be=function(e){return'
\n '+(arguments.length>1&&void 0!==arguments[1]?arguments[1]:"")+"\n "+e+"\n
\n
\n \n
\n"};function xe(e){let t=e.type,n=e.key,i=e.name,s=e.icon,r=e.default,o=e.index,a=u.$.create("div."+ue,{"data-key":n,role:Boolean(t)?"menuitem":"menuitemradio","aria-haspopup":"selector"==t});const l={$row:a,$label:void 0};switch(t){case"switcher":a.innerHTML=be(i,s),a.setAttribute("aria-checked",r||!1);break;case"selector":a.innerHTML=fe(i,s),l.$label=a.querySelector('span[role="label"]');break;case"back":a.innerHTML=ye(i);break;default:a.innerHTML=ve(i,s),a.setAttribute("aria-checked",r||!1),"number"==typeof o&&a.setAttribute("data-index",o.toString())}return l}function $e(e,t,n){let i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};if(!n||0==n.length)return;const s=i.key,r=i.target,o=i.parent,a=i.isSelectorOptionsPanel,l=i.name;let c={},d=s||"root";t[0]&&"root"==d?(c=t[0],d=t[0].key):(c.$ref=u.$.create("div."+(t[0]&&a?se:ie),{"data-key":d,role:"menu"}),c.key=d,t.push(c)),c.parent=o;const h="root"==c.key;if(!h){const e=xe({name:l,type:"back"}).$row;e.addEventListener("click",(()=>{var e;c.$ref.classList.remove(ne),null==(e=c.parent)||e.$ref.classList.add(ne)})),u.$.render(e,c.$ref)}for(let p=0;p!Boolean(e.type))),i=$e(e,t,d,{key:l,target:r,parent:c,isSelectorOptionsPanel:n,name:"selector"==o?s:void 0});if(y.addEventListener("click",(()=>{c.$ref.classList.remove(ne),i.$ref.classList.add(ne)})),n){const t=d.find((e=>e.default));t&&(b.innerText=t.name),i.select=(t,n)=>{var s;if(-1==t)return void(null==(s=i.$ref.querySelector("[aria-checked=true]"))||s.setAttribute("aria-checked","false"));const r=i.$ref.querySelectorAll("[aria-checked]");if("true"!=r.item(t).getAttribute("aria-checked")){r.forEach((e=>e.setAttribute("aria-checked","false"))),r.item(t).setAttribute("aria-checked","true");const i=d[t];b.innerText=i.name,n&&(null==v||v(i,{index:t,player:e}))}},i.$ref.addEventListener("click",(e=>{const t=e.target;t.hasAttribute("data-index")&&(i.select(+t.getAttribute("data-index"),!0),c.$ref.classList.add(ne),i.$ref.classList.remove(ne))}))}}else"switcher"==o&&(y.select=function(e){const t="true"==this.getAttribute("aria-checked");this.setAttribute("aria-checked",""+!t),e&&(null==v||v(!t))},y.addEventListener("click",(()=>y.select(!0))))}return c}function we(e){var t,n;const i=e.player,s=e.$root,r=e.config;if(!1===r.settings)return;const o=null==(t=r.theme.controller)?void 0:t.setting,a=r.settings||[],l=(null==(n=r.theme.controller)?void 0:n.header)&&("top"==o||u.Fr&&"auto"==o),c=u.$.create("div."+(e=>u.$.css({"z-index":"8","max-height":"75%","border-radius":"2px",display:"block",position:"absolute",right:"1em",[e]:"top"==e?"var(--control-bar-height)":"2.5em",overflow:"auto","background-color":"var(--shadow-background-color)",fill:"#fff","&::-webkit-scrollbar":{width:"2px"},"&::-webkit-scrollbar-thumb":{background:"var(--primary-color)"},"& > div":{display:"none","font-size":"0.875em"},["& > div."+ne]:{display:"block"}}))(l?"top":"bottom"),{"aria-label":"Setting"});let d=[],h=!1;const p={loop:{name:i.locales.get("Loop"),type:"switcher",key:"loop",icon:C.get("loop"),default:i.isLoop,onChange:e=>i.setLoop(e)}};function g(e){var t,n;h&&(null==(n=null==(t=d[0])?void 0:t.$ref.querySelector("[data-key="+e+"]"))||n.remove(),d=d.filter((t=>t.key!==e||(t.$ref.remove(),t=null,!1))))}function m(t){var n;t.length<1||(h||(h=!0,u.$.render(c,s),function(){const t=u.$.create("button",{class:k+" "+S,"aria-label":i.locales.get("Settings"),"data-tooltip-pos":"top"==o?"down":""},""+C.get("setting"));t.addEventListener("click",(e=>{e.stopPropagation(),v()}));const n=[r.pictureInPicture&&i.isPipEnabled,r.fullscreen].filter(Boolean).length;if(l){const n=e.$controllerBar.lastElementChild;n.insertBefore(t,n.children[n.children.length])}else{const i=e.$controllerBottom.lastElementChild;i.insertBefore(t,i.children[i.children.length-n])}}(),null==(n=e.keyboard)||n.register({c:v})),$e(i,d,t,{target:c}))}function v(){function e(t){c.contains(t.target)||(i.$root.classList.remove(f),d.forEach((e=>e.$ref.classList.remove(ne))),document.removeEventListener("click",e))}i.$root.classList.add(f),d[0].$ref.classList.add(ne),setTimeout((()=>{document.addEventListener("click",e)}))}m(a.map((e=>"string"==typeof e?p[e]:e))),e.setting={register:function(e){m((Array.isArray(e)?e:[e]).map((e=>{const t=d.find((t=>t.key==e.key));if(!t)return e;g(t.key)})).filter(Boolean))},unregister:g,updateLabel:function(e,t){if(!h)return;const n=c.querySelector('[data-key="'+e+'"] span[role="label"]');n&&(n.innerText=t)},select:function(e,t){var n;let i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(h)if("number"==typeof t)for(let s=0;s div:nth-child(1)":{overflow:"hidden",flex:"1 1 0","margin-right":"0.5em"},["& > div:nth-child(2) ."+K+":last-child ."+W]:{right:"max(50%,3em)"},["@global ."+x+" &"]:{transform:"translateY(calc(-100%))","&::before":{opacity:0}}}),Ee=u.$.css("width: 2.5em;height: 2.5em;margin:0 -10px;transform: rotate(180deg);"),Le=u.$.css("flex:1;font-size:1em;margin: 0 0.25em;overflow: hidden;text-overflow: ellipsis;white-space: nowrap;"),Se=u.$.css(r||(r=h(["\n width: 2.65em;\n display: flex;\n height: 7.65em;\n box-sizing: border-box;\n flex-direction: column;\n"]))),Te=u.$.css("\n width: 100%;\n text-align: center;\n height: 28px;\n line-height: 28px;\n margin-bottom: 2px;\n font-size: 0.75em;\n"),Ce=u.$.css("\n position: relative;\n display: flex;\n justify-content: center;\n flex: 1;\n cursor: pointer;\n padding: 5px 0 14px;\n"),Pe=u.$.css("\n height: 100%;\n width: 4px;\n position: relative;\n"),ze=u.$.css("\n width: 4px;\n height: 100%;\n overflow: hidden;\n border-radius: 2px;\n background: rgba(255, 255, 255, 0.3);\n"),Ae=u.$.css("\n height: 100%;\n background-color: var(--primary-color);\n transform-origin: 0 100%;\n"),Fe=u.$.css(o||(o=h(["\n position:absolute;\n bottom: 0;\n top: auto;\n left: -4px;\n width: 12px;\n height: 12px;\n border-radius: 50%;\n background-color: var(--primary-color);\n vertical-align: middle;\n pointer-events: none;\n "]))),Me=(e,t)=>{const n=u.$.create("div."+Se,{},"
100
\n\n
\n
\n
\n
\n
\n\n
\n
\n
"),i=n.querySelector("."+Ce),s=n.querySelector("."+Fe),r=n.querySelector("."+Ae),o=n.querySelector("."+Te),a=t=>{t.preventDefault(),e.setVolume(l((e=>{const t=i.getBoundingClientRect(),n=(t.bottom-(e.clientY||e.changedTouches[0].clientY))/t.height;return n>=1?1:n<=0?0:n})(t)))},l=e=>(o.innerText=""+~~(100*e),r.style.transform="scaleY("+e+")",s.style.bottom="calc("+~~(100*e)+"% - 6px)",e);l(e.volume),e.on("volumechange",(()=>{l(e.isMuted?0:e.volume)})),i.addEventListener(H.dragStart,(e=>{a(e),document.addEventListener(H.dragMove,a,{passive:!1}),document.addEventListener(H.dragEnd,(()=>{document.removeEventListener(H.dragMove,a)}),{once:!0})})),u.$.render(n,t)},_e=u.$.css("\n display: none;\n bottom: 15px;\n position: absolute;\n left: 50%;\n padding: 6px 8px;\n background-color: var(--shadow-background-color);\n color: #fff;\n border-radius: 2px;\n white-space: nowrap;\n word-break: nowrap;\n transform: translateX(-50%);"),Oe=u.$.css({position:"absolute",width:"0.8em",height:"0.33em","background-color":"var(--highlight-color)",transform:"translateX(-3px)",transition:"all 0.2s",["&:hover > ."+_e]:{display:"block"}});const Re=u.$.css("\n position: absolute;\n left: 0;\n bottom: 12px;\n pointer-events: none;\n transform: translateX(-50%);\n background-position-y: center;\n border-radius: 2px;\n display: none;"),Ie=u.$.css("\n position: absolute;\n left: 0;\n bottom: 12px;\n pointer-events: none;\n border-radius: 2px;\n display: none;"),je={width:160,height:90};const Be=u.$.css({"background-color":"hsla(0, 0%, 100%, 0.4)"}),He=u.$.css({"background-color":"var(--primary-color)"}),qe=u.$.css({"pointer-events":"none",position:"relative","& > *":{display:"block",position:"absolute",width:"1.4em",height:"1.4em",top:"0",left:"0",margin:"-0.535em 0 0 -0.7em",transform:u.Fr?"none":"scale(0)",transition:"transform 0.3s ease","z-index":"1"},"& > *:not(svg)":{width:"1em",height:"1em",margin:"-0.335em 0 0 -0.5em","border-radius":"50%","background-color":"#fff"}}),Ne=u.$.css({position:"absolute",left:"0","border-radius":"2px",padding:"6px 8px","background-color":"var(--shadow-background-color)",color:"#fff","z-index":"2","pointer-events":"none",transform:"translateX(-50%)",display:"none",bottom:"15px"}),De=u.$.css("/* progressDragging */"),Ve=u.$.css(Object.assign({position:"relative","box-sizing":"border-box",padding:"0.5em",cursor:"pointer",width:"100%","font-size":"0.75em",transition:"padding 0.3s ease",["&."+De+" ."+Ne+", &."+De+" ."+Re+", &."+De+" ."+Ie]:{display:"block"}},u.Fr?{["@global ."+x+" ."+qe+" > *"]:{transform:"scale(0)"}}:{["&."+De+" ."+qe+" > *, &:hover ."+qe+" > *"]:{transform:"scale(1)"}})),Ue=u.$.css({position:"relative",height:"0.33em",width:"100%","background-color":"hsla(0, 0%, 100%, 0.2)",["& ."+Be+", & ."+He]:{position:"absolute",left:"0",top:"0",bottom:"0","pointer-events":"none"}}),Xe=(e,t)=>{var n;const i=e.player,s=e.config;if(i.options.isLive)return;const r=e.$progress=u.$.create("div."+Ve,{},"
00:00
\n
\n
\n
\n '+(C.get("progressIndicator")||"")+"\n
\n
"),o=r.firstElementChild;(null==(n=s.thumbnails)?void 0:n.isVTT)?console.warn("vtt thumbnails support by @oplayer/pluins"):function(e,t){const n=e.config.thumbnails,i=e.player;let s,r=!1;const o=u.$.render(u.$.create("div."+Re),t);function a(e){if(r&&e){const n=[s.width/2,t.clientWidth],i=n[0],r=n[1],a=i/r,l=(r-i)/r;if(o.style.left=100*(el?l:e)+"%",Array.isArray(s.src)){const t=s.number*e,n=Math.ceil(t/(s.x*s.y))-1,i=t%s.number,r=Math.floor(i/s.x),a=Math.ceil(i%s.x);o.style.backgroundImage="url("+s.src[n]+")",o.style.backgroundPosition=-a+"00% "+-r+"00%"}else{const t=Math.floor(e*s.number);o.style.backgroundPositionX="-"+t+"00%"}}else r=!0,o.style.width=s.width+"px",o.style.height=s.height+"px",Array.isArray(s.src)||(o.style.backgroundImage="url("+s.src+")")}function l(t){r=!1,s=Object.assign({},je,t),s.y&&!Array.isArray(s.src)&&(s.src=[s.src]),e.progressHoverCallback.push(a)}(null==n?void 0:n.src)&&l(n),i.on("videosourcechange",(()=>{r=!1,o.style.backgroundImage="none",e.progressHoverCallback.splice(e.progressHoverCallback.findIndex((e=>e==a)),1)})),e.changThumbnails=l}(e,o),e.vttThumbnailsCls=Ie,function(e,t){const n=e.player,i=e.config.highlight;let s=[];function r(e){const t=u.$.create("div."+Oe,{},''+e.text+"");return t.style.left=e.left+"%",t}function o(e,n){s.forEach((e=>e.remove()));for(let i=0;i0?o(e,n.duration):n.once("loadedmetadata",(function(){o(e,n.duration)}))}t.style.setProperty("--highlight-color",(null==i?void 0:i.color)||"#FFF"),(null==i?void 0:i.source)&&a(i.source),n.on("videosourcechange",(()=>{s.forEach((e=>e.remove())),s=[]})),e.changHighlightSource=function(e){a(e)}}(e,o);const a=r.querySelector("."+Be),l=r.querySelector("."+He),c=r.querySelector("."+qe),d=r.querySelector("."+Ne);let h=!1;const p=e=>{const t=r.getBoundingClientRect(),n=((e.clientX||e.changedTouches[0].clientX)-t.left)/t.width;return n>=1?1:n<=0?0:n},g=e=>{const t=p(e),n=100*t;return l.style.width=n+"%",c.style.transform="translateX("+n+"%)",d.innerText=_(i.duration*t),d.style.left=n+"%",t};r.addEventListener(H.dragStart,(t=>{h=!0,r.classList.add(De);const n=g(t);function s(t){t.preventDefault();const n=g(t);e.progressHoverCallback.forEach((e=>e(n)))}e.progressHoverCallback.forEach((e=>e(n))),document.addEventListener(H.dragMove,s,{passive:!1}),document.addEventListener(H.dragEnd,(e=>{r.classList.remove(De),h=!1,document.removeEventListener(H.dragMove,s),isNaN(i.duration)||i.seek(p(e)*i.duration)}),{once:!0})})),u.Fr||(r.addEventListener("mouseenter",(()=>{h||e.progressHoverCallback.forEach((e=>e()))})),r.addEventListener("mousemove",(t=>{if(h)return;r.classList.add(De),t.target.classList.contains(Oe)?d.style.display="none":d.removeAttribute("style");const n=p(t);d.innerText=_(i.duration*n),d.style.left=100*n+"%",e.progressHoverCallback.forEach((e=>e(n)))}),{passive:!1}),r.addEventListener("mouseleave",(()=>{h||r.classList.remove(De)}))),i.on(["timeupdate","seeking"],(()=>{if(h)return;const e=i.currentTime/i.duration*100||0;l.style.width=e+"%",c.style.transform="translateX("+e+"%)"})),i.on("progress",(()=>{const e=i.buffered.length?i.buffered.end(i.buffered.length-1)/i.duration*100:0;a.style.width=e+"%"})),i.on("videosourcechange",(()=>{a.style.width="0%",l.style.width="0%",c.style.transform="translateX(0%)"})),u.$.render(r,t)},We=u.$.css({position:"absolute",left:0,right:0,bottom:0,"z-index":7,padding:"0 0.5em",transition:"transform 0.3s ease, padding 0.3s ease","min-height":"var(--control-bar-height)","&::before":{position:"absolute",content:"''",width:"100%",display:"block",bottom:0,left:0,"z-index":-1,top:"-1em",transition:"opacity 0.3s ease","pointer-events":"none","background-image":"linear-gradient(transparent, rgba(0, 0, 0, .3))"},["@global ."+x+" &"]:{"pointer-events":"none",transform:"translateY(calc(100% - 0.55em))",padding:0,"&::before":{opacity:0}},["@global ."+x+" ."+Ve]:{"padding-left":0,"padding-right":0}}),Ye=(e,t)=>{var n,i,s;const r=e.player,o=e.config,a=u.$.render(u.$.create("div."+We),t);(null==(n=o.theme.progress)?void 0:n.mini)||u.$.css({["@global ."+x+" ."+We]:{transform:"translateY(100%)"}});const l=[r.locales.get("Play"),r.locales.get("Pause"),r.locales.get("Screenshot"),r.locales.get("Picture in Picture"),r.locales.get(r.isFullscreenEnabled?"Fullscreen":"WebFullscreen"),r.locales.get("Previous"),r.locales.get("Next")],c=l[0],d=l[1],h=l[2],p=l[3],g=l[4],m=l[5],f=l[6],y=C.get("previous")||"",b=C.get("next")||"",$=e.$controllerBottom=u.$.create("div."+ee,{},'
\n\n '+(y&&'")+'\n\n \n '+C.get("play")+"\n "+C.get("pause")+"\n \n\n "+(b&&'")+"\n\n "+(r.options.isLive?'':"")+"\n\n "+(r.options.isLive||"none"==r.$video.preload?"00:00":"00:00 / --:--")+'\n
\n\n
\n\n
\n
\n \n "+(u.un?"":"
")+"\n
\n\n "+(o.screenshot?'":"")+"\n\n "+(o.pictureInPicture&&r.isPipEnabled?'\n '+C.get("pip")[0]+"\n "+C.get("pip")[1]+"\n ":"")+"\n\n "+(o.fullscreen?'":"")+"\n
");"auto"==(null==(i=o.theme.progress)?void 0:i.position)&&u.Fr||"center"==(null==(s=o.theme.progress)?void 0:s.position)?Xe(e,$.querySelector("."+te)):Xe(e,a);const T=$.querySelector("button[aria-label=Volume]");u.un||Me(r,T.nextElementSibling);const P=$.querySelector("button[aria-label="+c+"]"),z=$.querySelector("."+U),A=$.querySelector('button[aria-label="'+g+'"]'),F=$.querySelector('button[aria-label="'+p+'"]'),M=(e,t)=>{e.classList.add(t?E:L),e.classList.remove(t?L:E)};o.fullscreen&&r.on("fullscreenchange",(()=>setTimeout((()=>{M(A,(e=>e.$root.classList.contains(v)||e.$root.classList.contains(w))(r))})))),o.pictureInPicture&&r.on(["enterpictureinpicture","leavepictureinpicture"],(()=>M(F,r.isInPip))),r.on(["play","pause","videosourcechange"],(()=>{P.setAttribute("aria-label",r.isPlaying?d:c),M(P,r.isPlaying)})),r.on("volumechange",(()=>M(T,r.isMuted))),r.on(["durationchange","timeupdate","seeking","seeked"],(()=>{z.innerText=_(r.currentTime)+" "+(r.options.isLive?"":"/ "+_(r.duration))})),r.on("videosourcechange",(()=>{z.innerText=r.options.isLive||"none"==r.$video.preload?"00:00":"00:00 / --:--"})),$.addEventListener("click",(e=>{switch(e.target.getAttribute("aria-label")){case c:case d:return r.togglePlay();case"Volume":if(u.Fr&&!u.un)return;r.isMuted?r.unmute():r.mute();break;case p:return r.togglePip();case g:return void((e=>e.$root.classList.contains(w))(r)||!r.isFullscreenEnabled?r.emit("fullscreenchange",{isWeb:!0}):r.toggleFullScreen());case h:O(r);break;case f:r.emit("next");break;case m:r.emit("previous")}})),u.$.render($,a)},Ke=e=>{const t=e.player,n=e.config,i=e.$root,s=u.$.create("div");((e,t)=>{var n,i,s;const r=e.player,o=null==(n=e.config.theme.controller)?void 0:n.header;if(!o)return;const a=null==o?void 0:o.back,l=a&&u.Fr,c=e.$controllerBar=u.$.create("div",{class:ke+" "+ee},'
\n '+(l?"'+me("")+"":"")+"\n

"+((null==(s=null==(i=r.options)?void 0:i.source)?void 0:s.title)||"")+'

\n
\n
'),d=c.querySelector("."+Le);if(l){const e=d.previousElementSibling;e.addEventListener("click",(e=>{r.isFullScreen&&r.exitFullscreen(),r.emit("backward",e)})),"fullscreen"==a&&r.on("fullscreenchange",(()=>{r.isFullScreen?e.classList.remove(y):e.classList.add(y)}))}r.on("videosourcechange",(e=>{let t=e.payload;t.then||(d.innerText=t.title||"")})),r.on("sourcechangeerror",(e=>{var t,n;let i=e.payload;(null==(t=i.source)?void 0:t.title)||(d.innerText=(null==(n=i.e)?void 0:n.message)||"ERROR")})),r.on("videosourcechanged",(e=>{let t=e.payload;d.innerText=t.title||""})),u.$.render(c,t)})(e,s),Ye(e,s);const r=n.theme.controller||{},o=r.display,a=r.displayBehavior;"played"==o&&(I(s,y),t.once("play",(()=>{j(s,y)})));const l=()=>{var e;!t.isPlaying&&!u.Fr||B(t.$root,x)||B(t.$root,f)||B(t.$root,$)||t.$root.contains(document.activeElement)&&"INPUT"==(null==(e=document.activeElement)?void 0:e.tagName)||(I(t.$root,x),t.$root.setAttribute(b,"true"),t.emit("controlshidden",!1))},c=R(l,2e3),d=c.callee,h=c.clear,p=()=>{h(),B(t.$root,x)&&(j(t.$root,x),t.$root.setAttribute(b,"false"),t.emit("controlsshown",!0))};"none"!=a&&(t.on("play",d),t.on(["pause","videosourcechange"],p),t.on("destroy",h)),u.Fr||(t.$root.addEventListener("mousemove",(e=>{p(),s.contains(e.target)||d()})),"delay"==a&&t.$root.addEventListener("mouseleave",d),"hover"==a&&t.$root.addEventListener("mouseleave",l)),e.toggleController=function(){B(s,y)?t.play():B(t.$root,x)?p():l()},u.$.render(s,i)},Qe={opacity:0,"pointer-events":"none"},Je=u.$.css(Object.assign({transition:"opacity 100ms linear",position:"absolute",top:0,bottom:0,left:0,right:0,margin:"auto",fill:"#fff",width:"3em",height:"3em","z-index":"7","& > button":{width:"100%",height:"100%","border-radius":"100%",background:"var(--primary-color)",opacity:.9,padding:"1em",transition:"transform .2s ease-in-out","&:active":{transform:"scale(.85)"},"& > *":{position:"relative",width:"1.5em",height:"1.5em",left:"-0.2em",top:"-0.25em"}},["@global ."+g+" &"]:Qe,["@global ."+p+" &"]:Qe,["@global ."+$+" &"]:Qe},u.Fr&&{["@global ."+x+" &"]:Qe})),Ge=(e,t)=>{const n=u.$.create("div."+Je,{},'");return u.$.render(n,t).addEventListener("click",(()=>e.play())),n},Ze=u.$.css("\n display: none;\n position: absolute;\n top: 0;\n bottom: 0;\n left: 0;\n right: 0;\n color: #fff;\n background: #000;\n z-index: 7;\n align-items: center;\n padding: 0 10px;\n word-break: break-all;\n justify-content: center;\n text-align: center;\n"),et=u.$.css("display: flex;"),tt={1:"MEDIA_ERR_ABORTED",2:"MEDIA_ERR_NETWORK",3:"MEDIA_ERR_DECODE",4:"MEDIA_ERR_SRC_NOT_SUPPORTED"},nt=(e,t,n)=>{const i=u.$.render(u.$.create("div."+Ze,{"aria-label":"Error Overlay"}),t);function s(t){var n;let s="";if(t instanceof Event){const e=null==(n=t.target)?void 0:n.error;if(!e||!e.message&&"number"!=typeof e.code)return;s=e.message||tt[e.code]}else s=t.message;i.innerText=s||"UNKNOWN_ERROR",e.$root.classList.add($),I(i,et)}return e.on(["videosourcechange","videoqualitychange","loadedmetadata"],(function(){j(i,et),e.$root.classList.remove($),i.innerText=""})),e.on("error",(e=>(e=>{n.errorBuilder?n.errorBuilder(e,i,(e=>s(e))):s(e)})(e.payload))),s},it=u.$.css({position:"absolute",top:"0",bottom:"0",left:"0",right:"0",display:"none","align-items":"center","justify-content":"center",["@global ."+p+" &"]:{display:"flex"}}),st=u.$.css({position:"relative",overflow:"hidden",width:"20%",height:"4px","border-radius":"4px","&::before,&::after":{display:"block",content:"''",position:"absolute",height:"100%",width:"100%","background-color":"var(--primary-color)","border-radius":"4px"},"&::before":{opacity:"0.4"},"&::after":{animation:"indeterminate 1.3s infinite linear","transform-origin":"0% 50%"},"@keyframes indeterminate":{"0%":{transform:"translateX(0) scaleX(0)"},"10%":{transform:"translateX(0) scaleX(0.2)"},"40%":{transform:"translateX(0) scaleX(0.7)"},"60%":{transform:"translateX(60%) scaleX(0.4)"},"100%":{transform:"translateX(100%) scaleX(0.2)"}}}),rt=(e,t)=>{const n=u.$.create("div."+it,{"aria-label":"Loading"},""+(C.get("loadingIndicator")||'
'));u.$.render(n,t)},ot=u.$.css({width:"100%",height:"100%",position:"absolute",top:"0",left:"0",right:"0",bottom:"0",["@global ."+f+" &"]:{"z-index":"8"}}),at=e=>{const t="true"==e.getAttribute("aria-checked");e.setAttribute("aria-checked",""+!t),((e,t)=>{var n=[],i=e.parentNode.children;for(let s=0,r=i.length;se.setAttribute("aria-checked",""+t)))},lt=u.$.css({position:"absolute",display:"none",top:"0.625em",left:"0.625em",right:"0.625em","z-index":9,"margin-top":"var(--control-bar-height)",transition:"margin 0.2s",["@global ."+x+" &"]:{"margin-top":0}}),ct=u.$.css("\n -moz-user-select: all;\n -webkit-user-select: all;\n -ms-user-select: all;\n user-select: all;\n color: #fff;\n background-color: var(--shadow-background-color);\n border-radius: 2px;\n padding: 5px 10px;\n font-size: 0.875em;\n"),dt=u.$.css(a||(a=h(["\n text-align: center;\n"]))),ut=u.$.css(l||(l=h(["\n text-align: right;\n"]))),ht=u.$.css(c||(c=h(["\n bottom: 6em;\n top: initial;\n"]))),pt={center:u.$.css(d||(d=h(["\n top: 50%;\n text-align: center;\n transform: translateY(-50%);\n"]))),left:"","top-left":"",top:dt,"top-center":dt,"top-right":ut,right:ut,bottom:ht,"left-bottom":ht},gt=u.$.css("display:block;");function mt(e){return URL.createObjectURL(new Blob([e],{type:"text/vtt"}))}const vt="Subtitle";class ft{constructor(e,t,n,i){this.player=e,this.setting=t,this.el=n,this.isShow=!1,this.update=()=>{let e="";const t=this.$track.track.activeCues;if(null==t?void 0:t.length)for(let n=0;n"

"+e+"

")).join(""))}this.$dom.innerHTML=e},window.TextDecoder?(this.options=Object.assign({source:[]},i),this.createContainer(),this.changeSource(this.options.source),this.player.on(["destroy","videosourcechange"],this.destroy.bind(this)),this.player.on("videoqualitychang",(()=>{this.isShow&&this.hide()})),this.player.on("videoqualitychanged",this.fetchSubtitle.bind(this))):e.emit("notice",{text:e.locales.get("TextDecoder not supported")})}changeSource(e){var t;null==(t=this.setting)||t.unregister(vt),this.processDefault(e),this.loadSetting(),this.currentSubtitle&&(this.player.isSourceChanging||isNaN(this.player.duration)||this.player.duration<1?this.player.once("loadedmetadata",this.fetchSubtitle.bind(this)):this.fetchSubtitle())}createContainer(){const e=this.el,t=this.options,n=t.color,i=t.shadow,s=t.fontSize,r=t.bottom,o=t.fontFamily,a=t.background,l=t.marginBottom;this.$dom=u.$.create("div."+u.$.css(Object.assign({left:"2%",right:"2%","text-align":"center","pointer-events":"none",position:"absolute","line-height":"1.5","font-family":o||"inherit",color:n||"#fff","text-shadow":i||"1px 0 1px #000, 0 1px 1px #000, -1px 0 1px #000, 0 -1px 1px #000, 1px 1px 1px #000, -1px -1px 1px #000, 1px -1px 1px #000, -1px 1px 1px #000",bottom:r||"2%","font-size":(s||(u.Fr?16:20))/16+"em","& > p":{margin:0,"& span":{"white-space":"pre-wrap",background:a?"rgba(8, 8, 8, 0.75)":"inherit",padding:"0 0.25em"}}},!u.Fr&&{"margin-bottom":l||"2.2em",transition:"margin 0.3s",["@global ."+x+" &"]:{"margin-bottom":0}})),{"aria-label":"Subtitle"}),u.$.render(this.$dom,e)}createTrack(){const e=this.player.$video;if(this.$track=u.$.render(u.$.create("track",{default:!0,kind:"metadata",id:"primary"}),e),!this.player._requestFullscreen){const t=(this.$iosTrack=u.$.create("track",{default:!1,kind:"captions",id:"__Orz__"})).track;t.mode="hidden",u.$.render(this.$iosTrack,e),this.player.on("fullscreenchange",(e=>{e.payload.isWeb||setTimeout((()=>{const e=this.player.isFullScreen&&this.isShow;t.mode=e?"showing":"hidden"}))}))}}changeOffset(){var e;const t=null==(e=this.currentSubtitle)?void 0:e.offset;t&&[this.$track,this.$iosTrack].forEach((e=>{if(!e)return;const n=e.track.cues,i=this.player.duration;Array.from(n||[]).forEach((e=>{e.startTime=F(e.startTime+t,0,i),e.endTime=F(e.endTime+t,0,i)}))}))}processDefault(e){this.options.source=e,this.currentSubtitle=e.find((e=>e.default))}show(){this.isShow=!0,this.$track.addEventListener("cuechange",this.update)}hide(){const e=this.$track,t=this.$dom;this.isShow=!1,t.innerHTML="",e.removeEventListener("cuechange",this.update)}fetchSubtitle(){if(!this.currentSubtitle)return;this.$track||this.createTrack();const e=this.currentSubtitle,t=this.player,n=this.$track,i=this.$iosTrack,s=e.src,r=e.encoding,o=e.type,a=void 0===o?"auto":o;return fetch(s).then((e=>e.arrayBuffer())).then((e=>{var t;const n=new TextDecoder(r).decode(e);switch("auto"==a?null==(t=/srt|ass|vtt(#|\?|$)/i.exec(s))?void 0:t[0]:a){case"srt":return mt(function(e){return"WEBVTT \r\n\r\n".concat((t=e,t.replace(/(\d\d:\d\d:\d\d)[,.](\d+)/g,((e,t,n)=>{let i=n.slice(0,3);return 1===n.length&&(i=n+"00"),2===n.length&&(i=n+"0"),t+","+i}))).replace(/\{\\([ibu])\}/g,"").replace(/\{\\([ibu])1\}/g,"<$1>").replace(/\{([ibu])\}/g,"<$1>").replace(/\{\/([ibu])\}/g,"").replace(/(\d\d:\d\d:\d\d),(\d\d\d)/g,"$1.$2").replace(/{[\s\S]*?}/g,"").concat("\r\n\r\n"));var t}(n));case"ass":return mt(function(e){const t=new RegExp("Dialogue:\\s\\d+,(\\d+:\\d\\d:\\d\\d.\\d\\d),(\\d+:\\d\\d:\\d\\d.\\d\\d),([^,]*),([^,]*),(?:[^,]*,){4}(.*)$","i");return"WEBVTT\r\n\r\n"+e.split(/\r?\n/).map((e=>{const n=e.match(t);return n&&n[1]&&n[2]&&n[5]?{start:n[1],end:n[2],text:(i=n[5].replace(/{[\s\S]*?}/g,"").replace(/\\N/g,"\r\n").replace(/\\n/g," ").replace(/\\h/g," "),i.replace(/[&<>'"]/g,(e=>({"&":"&","<":"<",">":">","'":"'",'"':"""}[e]||e))))}:null;var i})).filter((e=>null!=e)).map(((e,t)=>t+1+"\r\n0"+e.start+"0 --\x3e 0"+e.end+"0\r\n"+e.text)).join("\r\n\r\n")}(n));case"vtt":return mt(n);default:return s}})).then((e=>{n.src&&URL.revokeObjectURL(n.src),(null==i?void 0:i.src)&&URL.revokeObjectURL(i.src),this.$track.addEventListener("load",(()=>{this.changeOffset(),this.show()}),{once:!0}),n.src=e,i&&(i.src=e)})).catch((e=>{t.emit("notice",{text:"Subtitle"+e.message})}))}loadSetting(){if(!this.setting)return;const e=this.options.source;e.length&&this.setting.register({name:this.player.locales.get("Subtitle"),type:"selector",icon:C.get("subtitle"),key:vt,onChange:e=>{var t;let n=e.value;n?n.src==(null==(t=this.currentSubtitle)?void 0:t.src)?this.show():(this.currentSubtitle=n,this.$dom.innerHTML="",this.fetchSubtitle()):this.hide()},children:[{name:this.player.locales.get("OFF"),default:!this.currentSubtitle}].concat(null==e?void 0:e.map((e=>{var t;return{name:e.name,default:(null==(t=this.currentSubtitle)?void 0:t.src)==e.src,value:e}})))})}destroy(){var e;const t=this.$dom,n=this.$track,i=this.$iosTrack;null==n||n.removeEventListener("cuechange",this.update),null==(e=this.setting)||e.unregister(vt),(null==n?void 0:n.src)&&URL.revokeObjectURL(n.src),(null==i?void 0:i.src)&&URL.revokeObjectURL(i.src),null==n||n.remove(),null==i||i.remove(),t.innerHTML="",this.isShow=!1,this.$track=this.$iosTrack=void 0}}const yt={theme:{primaryColor:"#6668ab",progress:{position:"top",mini:!0},controller:{setting:"auto",display:"always",coverButton:!0,displayBehavior:"hover"}},fullscreen:!0,autoFocus:!0,forceLandscapeOnFullscreen:!0,settings:["loop"],keyboard:{focused:!0},speeds:["2.0","1.5","1.25","1.0","0.75","0.5"]};class bt{constructor(e){var t;this.key="ui",this.version="1.3.3-beta.0",this.name="oplayer-theme-ui",this.keyboard={},this.setting={},this.menu={},this.progressHoverCallback=[],this.config=(0,u.D9)({},yt,e),(null==(t=this.config.keyboard)?void 0:t.global)&&(this.config.keyboard.focused=!1)}apply(e){var t;const n=this.config;this.player=e;const i=this.$root=u.$.create("div."+(e=>{var t;return u.$.css(Object.assign({"--primary-color":""+e.theme.primaryColor,"--shadow-background-color":"rgba(28 ,28 ,28 , .9)","--control-bar-height":(null==(t=e.theme.controller)?void 0:t.display)?"2.5em":0,position:"absolute",top:"0",left:"0",width:"100%",height:"100%","line-height":1,"font-size":u.Fr?"16px":"18px","&, & > *":{"-webkit-tap-highlight-color":"rgba(0, 0, 0, 0)"},"& [hidden]":{display:"none"}},{["@global ."+w+" &"]:{"font-size":u.Fr?"18px":"22px"},["@global ."+v+" &"]:{"font-size":u.Fr?"18px":"22px"}}))})(n));return((e,t)=>{const n=t.theme.watermark;if(!n)return;const i=e.$watermark=document.createElement("img");i.setAttribute("alt","watermark");for(const s in n.style)i.style[s]=n.style[s];for(const s in n.attrs)i.setAttribute(s,n.attrs[s]);i.src=n.src,e.$root.appendChild(i)})(this,n),e.isNativeUI?(z(e),Ge(e,i),rt(0,i),void u.$.render(i,e.$root)):(this.icons=C.setupIcons(n.icons),A(e,n),N(this),nt(e,i,n),(e=>{const t=e.player,n=e.$root,i=u.$.create("div."+lt,{"aria-label":"Notice"},''),s=i.querySelector("."+ct),r=R((()=>j(i,gt)),2e3).callee;function o(e,t){s.innerHTML=e,i.className=lt+" "+gt+" "+pt[t||"left"],r()}t.on("notice",(e=>{let t=e.payload;return o(t.text,t.pos)})),e.notice=o,u.$.render(i,n)})(this),rt(0,i),(null==(t=n.theme.controller)?void 0:t.coverButton)&&(this.$coverButton=Ge(e,i)),Ke(this),(e=>{const t=e.player,n=e.$root,i=e.$mask=u.$.create("div."+ot);let s,r=0;i.addEventListener("click",(()=>{B(t.$root,f)||(u.Fr?e.toggleController():(0==r&&t.togglePlay(),s&&clearTimeout(s),s=window.setTimeout((()=>{2==r&&(t.togglePlay(),t.toggleFullScreen()),r=0}),200)),r+=1)})),u.$.render(i,n)})(this),we(this),(e=>{var t;const n=e.config.menu,i=[],s=null==(t=e.$controllerBar)?void 0:t.lastElementChild,r=e.$controllerBottom.lastElementChild,o=[s,r].filter(Boolean);function a(t){var n,s;const r=t.target,o=r.getAttribute("aria-label"),a=i.find((e=>e.name==o));a&&"true"!=r.getAttribute("aria-checked")&&("SPAN"==r.tagName.toUpperCase()?(at(r),null==(n=a.onChange)||n.call(a,a.children[+r.getAttribute("data-index")],r.parentElement.previousElementSibling,e.player)):"BUTTON"==r.tagName.toUpperCase()&&(null==(s=a.onClick)||s.call(a,r,e.player)))}function l(e){const t=i.find((t=>t.name==e.name));t&&c(t.name);const n=e.name,a=e.icon,l=e.children,d="top"==e.position&&2==o.length;let u="";const h='\n '+(a||n)+"";u=e.children?'\n
\n '+h+"\n \n
":h,d?s.insertAdjacentHTML("afterbegin",u):r.insertAdjacentHTML("afterbegin",u),i.push(e)}function c(e){o.forEach((t=>{var n,i;null==(n=t.querySelector("button[aria-label='"+e+"']"))||n.remove(),null==(i=t.querySelector("div[aria-label='"+e+"]'"))||i.remove()}))}o.forEach((e=>{e.addEventListener("click",a)})),n&&n.forEach(l),e.menu={register:function(e){(Array.isArray(e)?e:[e]).forEach(l)},unregister:c,select:function(e,t){let n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];o.forEach((i=>{const s=i.querySelector("."+W+" > span[aria-label='"+e+"']:nth-child("+(t+1)+")");s&&(at(s),n&&s.click())}))}}})(this),function(e){const t=e.player,n=e.$root,i=e.config.subtitle,s=e.setting;e.subtitle=new ft(t,s,n,i)}(this),function(e){const t=e.player,n=e.config.speeds,i=e.setting;(null==n?void 0:n.length)&&i&&(i.register({key:D,type:"selector",name:t.locales.get("Speed"),icon:C.get("playbackRate"),children:n.map((e=>({name:1==+e?t.locales.get("Normal"):e+"x",value:+e,default:t.playbackRate==+e}))),onChange:e=>{let n=e.value;return t.setPlaybackRate(n)}}),t.on("ratechange",(()=>{const e=t.playbackRate,s=n.findIndex((t=>+t==e));-1==s?i.updateLabel(D,e+"x"):i.select(D,s,!1)})))}(this),V(this),function(e,t){t.forceLandscapeOnFullscreen&&!u.un&&u.Fr&&e.on("fullscreenchange",(t=>{var n,i,s,r;!t.payload.isWeb&&e._requestFullscreen&&(e.isFullScreen?null==(i=null==(n=globalThis.screen.orientation)?void 0:n.lock)||i.call(n,"landscape"):null==(r=null==(s=globalThis.screen.orientation)?void 0:s.unlock)||r.call(s))}))}(e,n),u.$.render(i,e.$root),this)}destroy(){}}function xt(e){return new bt(e)}}}]); \ No newline at end of file diff --git a/static/js/pnpm.devtools-detector.2f48b910.chunk.js b/static/js/pnpm.devtools-detector.86a31839.chunk.js similarity index 99% rename from static/js/pnpm.devtools-detector.2f48b910.chunk.js rename to static/js/pnpm.devtools-detector.86a31839.chunk.js index 408dfd00..d7e6e563 100644 --- a/static/js/pnpm.devtools-detector.2f48b910.chunk.js +++ b/static/js/pnpm.devtools-detector.86a31839.chunk.js @@ -1 +1 @@ -(self.webpackChunk_web_index=self.webpackChunk_web_index||[]).push([[643],{2940:function(t){"undefined"!=typeof self&&self,t.exports=function(t){var n={};function e(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,e),o.l=!0,o.exports}return e.m=t,e.c=n,e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:r})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,n){return Object.prototype.hasOwnProperty.call(t,n)},e.p="",e(e.s=4)}([function(t,n,e){"use strict";e.d(n,"i",(function(){return l})),e.d(n,"d",(function(){return f})),e.d(n,"e",(function(){return h})),e.d(n,"c",(function(){return d})),e.d(n,"h",(function(){return p})),e.d(n,"f",(function(){return b})),e.d(n,"b",(function(){return v})),e.d(n,"g",(function(){return y})),e.d(n,"a",(function(){return w}));var r,o,i,u,c,a=e(3),s=Object(a.b)(),l=(null===(r=null===s||void 0===s?void 0:s.navigator)||void 0===r?void 0:r.userAgent)||"unknown",f="InstallTrigger"in((null===s||void 0===s?void 0:s.window)||{})||/firefox/i.test(l),h=/trident/i.test(l)||/msie/i.test(l),d=/edge/i.test(l),p=/webkit/i.test(l)&&!d,b=/IqiyiApp/.test(l),v=void 0!==(null===(o=null===s||void 0===s?void 0:s.window)||void 0===o?void 0:o.chrome)||/chrome/i.test(l)||/CriOS/i.test(l),y="[object SafariRemoteNotification]"===((null===(u=null===(i=null===s||void 0===s?void 0:s.window)||void 0===i?void 0:i.safari)||void 0===u?void 0:u.pushNotification)||!1).toString()||/safari/i.test(l)&&!v,w="function"==typeof(null===(c=s.document)||void 0===c?void 0:c.createElement)},function(t,n,e){"use strict";e.d(n,"b",(function(){return i})),e.d(n,"c",(function(){return u})),e.d(n,"a",(function(){return c}));var r=e(0);function o(t){if(console){if(!r.e&&!r.c)return console[t];if("log"===t||"clear"===t)return function(){for(var n=[],e=0;e1,u=/iphone/i.test(r.i),c=/android/i.test(r.i),a=/windows/i.test(r.i)},function(t,n,e){"use strict";n.a=function(){return"undefined"!=typeof performance?performance.now():Date.now()}},function(t,n,e){"use strict";n.a=function(){return null===r&&(r=function(){for(var t=function(){for(var t={},n=0;n<500;n++)t["".concat(n)]="".concat(n);return t}(),n=[],e=0;e<50;e++)n.push(t);return n}()),r};var r=null},function(t,n,e){"use strict";e.d(n,"a",(function(){return u}));var r=e(0),o=this&&this.__awaiter||function(t,n,e,r){return new(e||(e=Promise))((function(o,i){function u(t){try{a(r.next(t))}catch(t){i(t)}}function c(t){try{a(r.throw(t))}catch(t){i(t)}}function a(t){t.done?o(t.value):function(t){return t instanceof e?t:new e((function(n){n(t)}))}(t.value).then(u,c)}a((r=r.apply(t,n||[])).next())}))},i=this&&this.__generator||function(t,n){var e,r,o,i,u={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function c(c){return function(a){return function(c){if(e)throw new TypeError("Generator is already executing.");for(;i&&(i=0,c[0]&&(u=0)),u;)try{if(e=1,r&&(o=2&c[0]?r.return:c[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,c[1])).done)return o;switch(r=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return u.label++,{value:c[1],done:!1};case 5:u.label++,r=c[1],c=[0];continue;case 7:c=u.ops.pop(),u.trys.pop();continue;default:if(!(o=(o=u.trys).length>0&&o[o.length-1])&&(6===c[0]||2===c[0])){u=0;continue}if(3===c[0]&&(!o||c[1]>o[0]&&c[1]0&&!this._detectLoopStopped?this._timer=setTimeout((function(){return u._detectLoop()}),this._detectLoopDelay):this.stop(),[2]}}))}))},t}()},function(t,n){var e;e=function(){return this}();try{e=e||Function("return this")()||(0,eval)("this")}catch(t){"object"==typeof window&&(e=window)}t.exports=e},function(t,n,e){"use strict";e.d(n,"a",(function(){return c}));var r=e(11),o=this&&this.__awaiter||function(t,n,e,r){return new(e||(e=Promise))((function(o,i){function u(t){try{a(r.next(t))}catch(t){i(t)}}function c(t){try{a(r.throw(t))}catch(t){i(t)}}function a(t){t.done?o(t.value):function(t){return t instanceof e?t:new e((function(n){n(t)}))}(t.value).then(u,c)}a((r=r.apply(t,n||[])).next())}))},i=this&&this.__generator||function(t,n){var e,r,o,i,u={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function c(c){return function(a){return function(c){if(e)throw new TypeError("Generator is already executing.");for(;i&&(i=0,c[0]&&(u=0)),u;)try{if(e=1,r&&(o=2&c[0]?r.return:c[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,c[1])).done)return o;switch(r=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return u.label++,{value:c[1],done:!1};case 5:u.label++,r=c[1],c=[0];continue;case 7:c=u.ops.pop(),u.trys.pop();continue;default:if(!(o=(o=u.trys).length>0&&o[o.length-1])&&(6===c[0]||2===c[0])){u=0;continue}if(3===c[0]&&(!o||c[1]>o[0]&&c[1]Number.MAX_SAFE_INTEGER&&(r=0),r++};var r=0},function(t,n,e){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=e(13);e.d(n,"depRegToStringChecker",(function(){return r.a}));var o=e(14);e.d(n,"elementIdChecker",(function(){return o.a}));var i=e(15);e.d(n,"functionToStringChecker",(function(){return i.a}));var u=e(16);e.d(n,"regToStringChecker",(function(){return u.a}));var c=e(17);e.d(n,"debuggerChecker",(function(){return c.a}));var a=e(18);e.d(n,"dateToStringChecker",(function(){return a.a}));var s=e(19);e.d(n,"performanceChecker",(function(){return s.a}));var l=e(20);e.d(n,"erudaChecker",(function(){return l.a}));var f=e(21);e.d(n,"devtoolsFormatterChecker",(function(){return f.a}));var h=e(22);e.d(n,"workerPerformanceChecker",(function(){return h.a}))},function(t,n,e){"use strict";e.d(n,"a",(function(){return l}));var r=e(0),o=e(1),i=e(2),u=this&&this.__awaiter||function(t,n,e,r){return new(e||(e=Promise))((function(o,i){function u(t){try{a(r.next(t))}catch(t){i(t)}}function c(t){try{a(r.throw(t))}catch(t){i(t)}}function a(t){t.done?o(t.value):function(t){return t instanceof e?t:new e((function(n){n(t)}))}(t.value).then(u,c)}a((r=r.apply(t,n||[])).next())}))},c=this&&this.__generator||function(t,n){var e,r,o,i,u={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function c(c){return function(a){return function(c){if(e)throw new TypeError("Generator is already executing.");for(;i&&(i=0,c[0]&&(u=0)),u;)try{if(e=1,r&&(o=2&c[0]?r.return:c[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,c[1])).done)return o;switch(r=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return u.label++,{value:c[1],done:!1};case 5:u.label++,r=c[1],c=[0];continue;case 7:c=u.ops.pop(),u.trys.pop();continue;default:if(!(o=(o=u.trys).length>0&&o[o.length-1])&&(6===c[0]||2===c[0])){u=0;continue}if(3===c[0]&&(!o||c[1]>o[0]&&c[1]0&&o[o.length-1])&&(6===c[0]||2===c[0])){u=0;continue}if(3===c[0]&&(!o||c[1]>o[0]&&c[1]0&&o[o.length-1])&&(6===c[0]||2===c[0])){u=0;continue}if(3===c[0]&&(!o||c[1]>o[0]&&c[1]0&&o[o.length-1])&&(6===c[0]||2===c[0])){u=0;continue}if(3===c[0]&&(!o||c[1]>o[0]&&c[1]0&&o[o.length-1])&&(6===c[0]||2===c[0])){u=0;continue}if(3===c[0]&&(!o||c[1]>o[0]&&c[1]100]}))}))},isEnable:function(){return o(this,void 0,void 0,(function(){return i(this,(function(t){return[2,!0]}))}))}}},function(t,n,e){"use strict";e.d(n,"a",(function(){return f}));var r=e(0),o=e(1),i=e(2),u=e(4),c=this&&this.__awaiter||function(t,n,e,r){return new(e||(e=Promise))((function(o,i){function u(t){try{a(r.next(t))}catch(t){i(t)}}function c(t){try{a(r.throw(t))}catch(t){i(t)}}function a(t){t.done?o(t.value):function(t){return t instanceof e?t:new e((function(n){n(t)}))}(t.value).then(u,c)}a((r=r.apply(t,n||[])).next())}))},a=this&&this.__generator||function(t,n){var e,r,o,i,u={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function c(c){return function(a){return function(c){if(e)throw new TypeError("Generator is already executing.");for(;i&&(i=0,c[0]&&(u=0)),u;)try{if(e=1,r&&(o=2&c[0]?r.return:c[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,c[1])).done)return o;switch(r=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return u.label++,{value:c[1],done:!1};case 5:u.label++,r=c[1],c=[0];continue;case 7:c=u.ops.pop(),u.trys.pop();continue;default:if(!(o=(o=u.trys).length>0&&o[o.length-1])&&(6===c[0]||2===c[0])){u=0;continue}if(3===c[0]&&(!o||c[1]>o[0]&&c[1]0&&o[o.length-1])&&(6===c[0]||2===c[0])){u=0;continue}if(3===c[0]&&(!o||c[1]>o[0]&&c[1]10*l]}))}))},isEnable:function(){return a(this,void 0,void 0,(function(){return s(this,(function(t){return[2,Object(u.a)({includes:[o.b],excludes:[]})]}))}))}}},function(t,n,e){"use strict";e.d(n,"a",(function(){return i}));var r=this&&this.__awaiter||function(t,n,e,r){return new(e||(e=Promise))((function(o,i){function u(t){try{a(r.next(t))}catch(t){i(t)}}function c(t){try{a(r.throw(t))}catch(t){i(t)}}function a(t){t.done?o(t.value):function(t){return t instanceof e?t:new e((function(n){n(t)}))}(t.value).then(u,c)}a((r=r.apply(t,n||[])).next())}))},o=this&&this.__generator||function(t,n){var e,r,o,i,u={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function c(c){return function(a){return function(c){if(e)throw new TypeError("Generator is already executing.");for(;i&&(i=0,c[0]&&(u=0)),u;)try{if(e=1,r&&(o=2&c[0]?r.return:c[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,c[1])).done)return o;switch(r=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return u.label++,{value:c[1],done:!1};case 5:u.label++,r=c[1],c=[0];continue;case 7:c=u.ops.pop(),u.trys.pop();continue;default:if(!(o=(o=u.trys).length>0&&o[o.length-1])&&(6===c[0]||2===c[0])){u=0;continue}if(3===c[0]&&(!o||c[1]>o[0]&&c[1]0&&o[o.length-1])&&(6===c[0]||2===c[0])){u=0;continue}if(3===c[0]&&(!o||c[1]>o[0]&&c[1]0&&o[o.length-1])&&(6===c[0]||2===c[0])){u=0;continue}if(3===c[0]&&(!o||c[1]>o[0]&&c[1]10*s]}}))}))},isEnable:function(){return c(this,void 0,void 0,(function(){return a(this,(function(t){return[2,Object(o.a)({includes:[r.b],excludes:[]})]}))}))}}},function(t,n,e){"use strict";e.d(n,"a",(function(){return r}));for(var r={},o=0,i=(e(0).i||"").match(/\w+\/(\d|\.)+(\s|$)/gi)||[];o1,u=/iphone/i.test(r.i),c=/android/i.test(r.i),a=/windows/i.test(r.i)},function(t,n,e){"use strict";n.a=function(){return"undefined"!=typeof performance?performance.now():Date.now()}},function(t,n,e){"use strict";n.a=function(){return null===r&&(r=function(){for(var t=function(){for(var t={},n=0;n<500;n++)t["".concat(n)]="".concat(n);return t}(),n=[],e=0;e<50;e++)n.push(t);return n}()),r};var r=null},function(t,n,e){"use strict";e.d(n,"a",(function(){return u}));var r=e(0),o=this&&this.__awaiter||function(t,n,e,r){return new(e||(e=Promise))((function(o,i){function u(t){try{a(r.next(t))}catch(t){i(t)}}function c(t){try{a(r.throw(t))}catch(t){i(t)}}function a(t){t.done?o(t.value):function(t){return t instanceof e?t:new e((function(n){n(t)}))}(t.value).then(u,c)}a((r=r.apply(t,n||[])).next())}))},i=this&&this.__generator||function(t,n){var e,r,o,i,u={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function c(c){return function(a){return function(c){if(e)throw new TypeError("Generator is already executing.");for(;i&&(i=0,c[0]&&(u=0)),u;)try{if(e=1,r&&(o=2&c[0]?r.return:c[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,c[1])).done)return o;switch(r=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return u.label++,{value:c[1],done:!1};case 5:u.label++,r=c[1],c=[0];continue;case 7:c=u.ops.pop(),u.trys.pop();continue;default:if(!(o=(o=u.trys).length>0&&o[o.length-1])&&(6===c[0]||2===c[0])){u=0;continue}if(3===c[0]&&(!o||c[1]>o[0]&&c[1]0&&!this._detectLoopStopped?this._timer=setTimeout((function(){return u._detectLoop()}),this._detectLoopDelay):this.stop(),[2]}}))}))},t}()},function(t,n){var e;e=function(){return this}();try{e=e||Function("return this")()||(0,eval)("this")}catch(t){"object"==typeof window&&(e=window)}t.exports=e},function(t,n,e){"use strict";e.d(n,"a",(function(){return c}));var r=e(11),o=this&&this.__awaiter||function(t,n,e,r){return new(e||(e=Promise))((function(o,i){function u(t){try{a(r.next(t))}catch(t){i(t)}}function c(t){try{a(r.throw(t))}catch(t){i(t)}}function a(t){t.done?o(t.value):function(t){return t instanceof e?t:new e((function(n){n(t)}))}(t.value).then(u,c)}a((r=r.apply(t,n||[])).next())}))},i=this&&this.__generator||function(t,n){var e,r,o,i,u={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function c(c){return function(a){return function(c){if(e)throw new TypeError("Generator is already executing.");for(;i&&(i=0,c[0]&&(u=0)),u;)try{if(e=1,r&&(o=2&c[0]?r.return:c[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,c[1])).done)return o;switch(r=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return u.label++,{value:c[1],done:!1};case 5:u.label++,r=c[1],c=[0];continue;case 7:c=u.ops.pop(),u.trys.pop();continue;default:if(!(o=(o=u.trys).length>0&&o[o.length-1])&&(6===c[0]||2===c[0])){u=0;continue}if(3===c[0]&&(!o||c[1]>o[0]&&c[1]Number.MAX_SAFE_INTEGER&&(r=0),r++};var r=0},function(t,n,e){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=e(13);e.d(n,"depRegToStringChecker",(function(){return r.a}));var o=e(14);e.d(n,"elementIdChecker",(function(){return o.a}));var i=e(15);e.d(n,"functionToStringChecker",(function(){return i.a}));var u=e(16);e.d(n,"regToStringChecker",(function(){return u.a}));var c=e(17);e.d(n,"debuggerChecker",(function(){return c.a}));var a=e(18);e.d(n,"dateToStringChecker",(function(){return a.a}));var s=e(19);e.d(n,"performanceChecker",(function(){return s.a}));var l=e(20);e.d(n,"erudaChecker",(function(){return l.a}));var f=e(21);e.d(n,"devtoolsFormatterChecker",(function(){return f.a}));var h=e(22);e.d(n,"workerPerformanceChecker",(function(){return h.a}))},function(t,n,e){"use strict";e.d(n,"a",(function(){return l}));var r=e(0),o=e(1),i=e(2),u=this&&this.__awaiter||function(t,n,e,r){return new(e||(e=Promise))((function(o,i){function u(t){try{a(r.next(t))}catch(t){i(t)}}function c(t){try{a(r.throw(t))}catch(t){i(t)}}function a(t){t.done?o(t.value):function(t){return t instanceof e?t:new e((function(n){n(t)}))}(t.value).then(u,c)}a((r=r.apply(t,n||[])).next())}))},c=this&&this.__generator||function(t,n){var e,r,o,i,u={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function c(c){return function(a){return function(c){if(e)throw new TypeError("Generator is already executing.");for(;i&&(i=0,c[0]&&(u=0)),u;)try{if(e=1,r&&(o=2&c[0]?r.return:c[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,c[1])).done)return o;switch(r=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return u.label++,{value:c[1],done:!1};case 5:u.label++,r=c[1],c=[0];continue;case 7:c=u.ops.pop(),u.trys.pop();continue;default:if(!(o=(o=u.trys).length>0&&o[o.length-1])&&(6===c[0]||2===c[0])){u=0;continue}if(3===c[0]&&(!o||c[1]>o[0]&&c[1]0&&o[o.length-1])&&(6===c[0]||2===c[0])){u=0;continue}if(3===c[0]&&(!o||c[1]>o[0]&&c[1]0&&o[o.length-1])&&(6===c[0]||2===c[0])){u=0;continue}if(3===c[0]&&(!o||c[1]>o[0]&&c[1]0&&o[o.length-1])&&(6===c[0]||2===c[0])){u=0;continue}if(3===c[0]&&(!o||c[1]>o[0]&&c[1]0&&o[o.length-1])&&(6===c[0]||2===c[0])){u=0;continue}if(3===c[0]&&(!o||c[1]>o[0]&&c[1]100]}))}))},isEnable:function(){return o(this,void 0,void 0,(function(){return i(this,(function(t){return[2,!0]}))}))}}},function(t,n,e){"use strict";e.d(n,"a",(function(){return f}));var r=e(0),o=e(1),i=e(2),u=e(4),c=this&&this.__awaiter||function(t,n,e,r){return new(e||(e=Promise))((function(o,i){function u(t){try{a(r.next(t))}catch(t){i(t)}}function c(t){try{a(r.throw(t))}catch(t){i(t)}}function a(t){t.done?o(t.value):function(t){return t instanceof e?t:new e((function(n){n(t)}))}(t.value).then(u,c)}a((r=r.apply(t,n||[])).next())}))},a=this&&this.__generator||function(t,n){var e,r,o,i,u={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function c(c){return function(a){return function(c){if(e)throw new TypeError("Generator is already executing.");for(;i&&(i=0,c[0]&&(u=0)),u;)try{if(e=1,r&&(o=2&c[0]?r.return:c[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,c[1])).done)return o;switch(r=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return u.label++,{value:c[1],done:!1};case 5:u.label++,r=c[1],c=[0];continue;case 7:c=u.ops.pop(),u.trys.pop();continue;default:if(!(o=(o=u.trys).length>0&&o[o.length-1])&&(6===c[0]||2===c[0])){u=0;continue}if(3===c[0]&&(!o||c[1]>o[0]&&c[1]0&&o[o.length-1])&&(6===c[0]||2===c[0])){u=0;continue}if(3===c[0]&&(!o||c[1]>o[0]&&c[1]10*l]}))}))},isEnable:function(){return a(this,void 0,void 0,(function(){return s(this,(function(t){return[2,Object(u.a)({includes:[o.b],excludes:[]})]}))}))}}},function(t,n,e){"use strict";e.d(n,"a",(function(){return i}));var r=this&&this.__awaiter||function(t,n,e,r){return new(e||(e=Promise))((function(o,i){function u(t){try{a(r.next(t))}catch(t){i(t)}}function c(t){try{a(r.throw(t))}catch(t){i(t)}}function a(t){t.done?o(t.value):function(t){return t instanceof e?t:new e((function(n){n(t)}))}(t.value).then(u,c)}a((r=r.apply(t,n||[])).next())}))},o=this&&this.__generator||function(t,n){var e,r,o,i,u={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function c(c){return function(a){return function(c){if(e)throw new TypeError("Generator is already executing.");for(;i&&(i=0,c[0]&&(u=0)),u;)try{if(e=1,r&&(o=2&c[0]?r.return:c[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,c[1])).done)return o;switch(r=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return u.label++,{value:c[1],done:!1};case 5:u.label++,r=c[1],c=[0];continue;case 7:c=u.ops.pop(),u.trys.pop();continue;default:if(!(o=(o=u.trys).length>0&&o[o.length-1])&&(6===c[0]||2===c[0])){u=0;continue}if(3===c[0]&&(!o||c[1]>o[0]&&c[1]0&&o[o.length-1])&&(6===c[0]||2===c[0])){u=0;continue}if(3===c[0]&&(!o||c[1]>o[0]&&c[1]0&&o[o.length-1])&&(6===c[0]||2===c[0])){u=0;continue}if(3===c[0]&&(!o||c[1]>o[0]&&c[1]10*s]}}))}))},isEnable:function(){return c(this,void 0,void 0,(function(){return a(this,(function(t){return[2,Object(o.a)({includes:[r.b],excludes:[]})]}))}))}}},function(t,n,e){"use strict";e.d(n,"a",(function(){return r}));for(var r={},o=0,i=(e(0).i||"").match(/\w+\/(\d|\.)+(\s|$)/gi)||[];o{i.d(e,{q:()=>f});const s="object"===typeof performance&&performance&&"function"===typeof performance.now?performance:Date,h=new Set,o="object"===typeof process&&process?process:{},n=(t,e,i,s)=>{"function"===typeof o.emitWarning?o.emitWarning(t,e,i,s):console.error(`[${i}] ${e}: ${t}`)};let a=globalThis.AbortController,r=globalThis.AbortSignal;if("undefined"===typeof a){r=class{onabort;_onabort=[];reason;aborted=!1;addEventListener(t,e){this._onabort.push(e)}},a=class{constructor(){e()}signal=new r;abort(t){if(!this.signal.aborted){this.signal.reason=t,this.signal.aborted=!0;for(const e of this.signal._onabort)e(t);this.signal.onabort?.(t)}}};let t="1"!==o.env?.LRU_CACHE_IGNORE_AC_WARNING;const e=()=>{t&&(t=!1,n("AbortController is not defined. If using lru-cache in node 14, load an AbortController polyfill from the `node-abort-controller` package. A minimal polyfill is provided for use by LRUCache.fetch(), but it should not be relied upon in other contexts (eg, passing it to other APIs that use AbortController/AbortSignal might have undesirable effects). You may disable this with LRU_CACHE_IGNORE_AC_WARNING=1 in the env.","NO_ABORT_CONTROLLER","ENOTSUP",e))}}Symbol("type");const l=t=>t&&t===Math.floor(t)&&t>0&&isFinite(t),c=t=>l(t)?t<=Math.pow(2,8)?Uint8Array:t<=Math.pow(2,16)?Uint16Array:t<=Math.pow(2,32)?Uint32Array:t<=Number.MAX_SAFE_INTEGER?d:null:null;class d extends Array{constructor(t){super(t),this.fill(0)}}class u{heap;length;static#t=!1;static create(t){const e=c(t);if(!e)return[];u.#t=!0;const i=new u(t,e);return u.#t=!1,i}constructor(t,e){if(!u.#t)throw new TypeError("instantiate Stack using Stack.create(n)");this.heap=new e(t),this.length=0}push(t){this.heap[this.length++]=t}pop(){return this.heap[--this.length]}}class f{#e;#i;#s;#h;#o;ttl;ttlResolution;ttlAutopurge;updateAgeOnGet;updateAgeOnHas;allowStale;noDisposeOnSet;noUpdateTTL;maxEntrySize;sizeCalculation;noDeleteOnFetchRejection;noDeleteOnStaleGet;allowStaleOnFetchAbort;allowStaleOnFetchRejection;ignoreFetchAbort;#n;#a;#r;#l;#c;#d;#u;#f;#p;#g;#v;#S;#m;#z;#y;#w;#L;static unsafeExposeInternals(t){return{starts:t.#m,ttls:t.#z,sizes:t.#S,keyMap:t.#r,keyList:t.#l,valList:t.#c,next:t.#d,prev:t.#u,get head(){return t.#f},get tail(){return t.#p},free:t.#g,isBackgroundFetch:e=>t.#F(e),backgroundFetch:(e,i,s,h)=>t.#_(e,i,s,h),moveToTail:e=>t.#A(e),indexes:e=>t.#x(e),rindexes:e=>t.#k(e),isStale:e=>t.#T(e)}}get max(){return this.#e}get maxSize(){return this.#i}get calculatedSize(){return this.#a}get size(){return this.#n}get fetchMethod(){return this.#o}get dispose(){return this.#s}get disposeAfter(){return this.#h}constructor(t){const{max:e=0,ttl:i,ttlResolution:s=1,ttlAutopurge:o,updateAgeOnGet:a,updateAgeOnHas:r,allowStale:d,dispose:p,disposeAfter:g,noDisposeOnSet:v,noUpdateTTL:S,maxSize:m=0,maxEntrySize:z=0,sizeCalculation:y,fetchMethod:w,noDeleteOnFetchRejection:L,noDeleteOnStaleGet:F,allowStaleOnFetchRejection:_,allowStaleOnFetchAbort:A,ignoreFetchAbort:x}=t;if(0!==e&&!l(e))throw new TypeError("max option must be a nonnegative integer");const k=e?c(e):Array;if(!k)throw new Error("invalid max value: "+e);if(this.#e=e,this.#i=m,this.maxEntrySize=z||this.#i,this.sizeCalculation=y,this.sizeCalculation){if(!this.#i&&!this.maxEntrySize)throw new TypeError("cannot set sizeCalculation without setting maxSize or maxEntrySize");if("function"!==typeof this.sizeCalculation)throw new TypeError("sizeCalculation set to non-function")}if(void 0!==w&&"function"!==typeof w)throw new TypeError("fetchMethod must be a function if specified");if(this.#o=w,this.#w=!!w,this.#r=new Map,this.#l=new Array(e).fill(void 0),this.#c=new Array(e).fill(void 0),this.#d=new k(e),this.#u=new k(e),this.#f=0,this.#p=0,this.#g=u.create(e),this.#n=0,this.#a=0,"function"===typeof p&&(this.#s=p),"function"===typeof g?(this.#h=g,this.#v=[]):(this.#h=void 0,this.#v=void 0),this.#y=!!this.#s,this.#L=!!this.#h,this.noDisposeOnSet=!!v,this.noUpdateTTL=!!S,this.noDeleteOnFetchRejection=!!L,this.allowStaleOnFetchRejection=!!_,this.allowStaleOnFetchAbort=!!A,this.ignoreFetchAbort=!!x,0!==this.maxEntrySize){if(0!==this.#i&&!l(this.#i))throw new TypeError("maxSize must be a positive integer if specified");if(!l(this.maxEntrySize))throw new TypeError("maxEntrySize must be a positive integer if specified");this.#b()}if(this.allowStale=!!d,this.noDeleteOnStaleGet=!!F,this.updateAgeOnGet=!!a,this.updateAgeOnHas=!!r,this.ttlResolution=l(s)||0===s?s:1,this.ttlAutopurge=!!o,this.ttl=i||0,this.ttl){if(!l(this.ttl))throw new TypeError("ttl must be a positive integer if specified");this.#O()}if(0===this.#e&&0===this.ttl&&0===this.#i)throw new TypeError("At least one of max, maxSize, or ttl is required");if(!this.ttlAutopurge&&!this.#e&&!this.#i){const t="LRU_CACHE_UNBOUNDED";if((t=>!h.has(t))(t)){h.add(t);n("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.","UnboundedCacheWarning",t,f)}}}getRemainingTTL(t){return this.#r.has(t)?1/0:0}#O(){const t=new d(this.#e),e=new d(this.#e);this.#z=t,this.#m=e,this.#D=(i,h,o=s.now())=>{if(e[i]=0!==h?o:0,t[i]=h,0!==h&&this.ttlAutopurge){const t=setTimeout((()=>{this.#T(i)&&this.delete(this.#l[i])}),h+1);t.unref&&t.unref()}},this.#E=i=>{e[i]=0!==t[i]?s.now():0},this.#C=(s,o)=>{if(t[o]){const n=t[o],a=e[o];if(!n||!a)return;s.ttl=n,s.start=a,s.now=i||h();const r=s.now-a;s.remainingTTL=n-r}};let i=0;const h=()=>{const t=s.now();if(this.ttlResolution>0){i=t;const e=setTimeout((()=>i=0),this.ttlResolution);e.unref&&e.unref()}return t};this.getRemainingTTL=s=>{const o=this.#r.get(s);if(void 0===o)return 0;const n=t[o],a=e[o];if(!n||!a)return 1/0;return n-((i||h())-a)},this.#T=s=>{const o=e[s],n=t[s];return!!n&&!!o&&(i||h())-o>n}}#E=()=>{};#C=()=>{};#D=()=>{};#T=()=>!1;#b(){const t=new d(this.#e);this.#a=0,this.#S=t,this.#M=e=>{this.#a-=t[e],t[e]=0},this.#R=(t,e,i,s)=>{if(this.#F(e))return 0;if(!l(i)){if(!s)throw new TypeError("invalid size value (must be positive integer). When maxSize or maxEntrySize is used, sizeCalculation or size must be set.");if("function"!==typeof s)throw new TypeError("sizeCalculation must be a function");if(i=s(e,t),!l(i))throw new TypeError("sizeCalculation return invalid (expect positive integer)")}return i},this.#W=(e,i,s)=>{if(t[e]=i,this.#i){const i=this.#i-t[e];for(;this.#a>i;)this.#I(!0)}this.#a+=t[e],s&&(s.entrySize=i,s.totalCalculatedSize=this.#a)}}#M=t=>{};#W=(t,e,i)=>{};#R=(t,e,i,s)=>{if(i||s)throw new TypeError("cannot set size without setting maxSize or maxEntrySize on cache");return 0};*#x({allowStale:t=this.allowStale}={}){if(this.#n)for(let e=this.#p;this.#B(e)&&(!t&&this.#T(e)||(yield e),e!==this.#f);)e=this.#u[e]}*#k({allowStale:t=this.allowStale}={}){if(this.#n)for(let e=this.#f;this.#B(e)&&(!t&&this.#T(e)||(yield e),e!==this.#p);)e=this.#d[e]}#B(t){return void 0!==t&&this.#r.get(this.#l[t])===t}*entries(){for(const t of this.#x())void 0===this.#c[t]||void 0===this.#l[t]||this.#F(this.#c[t])||(yield[this.#l[t],this.#c[t]])}*rentries(){for(const t of this.#k())void 0===this.#c[t]||void 0===this.#l[t]||this.#F(this.#c[t])||(yield[this.#l[t],this.#c[t]])}*keys(){for(const t of this.#x()){const e=this.#l[t];void 0===e||this.#F(this.#c[t])||(yield e)}}*rkeys(){for(const t of this.#k()){const e=this.#l[t];void 0===e||this.#F(this.#c[t])||(yield e)}}*values(){for(const t of this.#x()){void 0===this.#c[t]||this.#F(this.#c[t])||(yield this.#c[t])}}*rvalues(){for(const t of this.#k()){void 0===this.#c[t]||this.#F(this.#c[t])||(yield this.#c[t])}}[Symbol.iterator](){return this.entries()}[Symbol.toStringTag]="LRUCache";find(t,e={}){for(const i of this.#x()){const s=this.#c[i],h=this.#F(s)?s.__staleWhileFetching:s;if(void 0!==h&&t(h,this.#l[i],this))return this.get(this.#l[i],e)}}forEach(t,e=this){for(const i of this.#x()){const s=this.#c[i],h=this.#F(s)?s.__staleWhileFetching:s;void 0!==h&&t.call(e,h,this.#l[i],this)}}rforEach(t,e=this){for(const i of this.#k()){const s=this.#c[i],h=this.#F(s)?s.__staleWhileFetching:s;void 0!==h&&t.call(e,h,this.#l[i],this)}}purgeStale(){let t=!1;for(const e of this.#k({allowStale:!0}))this.#T(e)&&(this.delete(this.#l[e]),t=!0);return t}info(t){const e=this.#r.get(t);if(void 0===e)return;const i=this.#c[e],h=this.#F(i)?i.__staleWhileFetching:i;if(void 0===h)return;const o={value:h};if(this.#z&&this.#m){const t=this.#z[e],i=this.#m[e];if(t&&i){const e=t-(s.now()-i);o.ttl=e,o.start=Date.now()}}return this.#S&&(o.size=this.#S[e]),o}dump(){const t=[];for(const e of this.#x({allowStale:!0})){const i=this.#l[e],h=this.#c[e],o=this.#F(h)?h.__staleWhileFetching:h;if(void 0===o||void 0===i)continue;const n={value:o};if(this.#z&&this.#m){n.ttl=this.#z[e];const t=s.now()-this.#m[e];n.start=Math.floor(Date.now()-t)}this.#S&&(n.size=this.#S[e]),t.unshift([i,n])}return t}load(t){this.clear();for(const[e,i]of t){if(i.start){const t=Date.now()-i.start;i.start=s.now()-t}this.set(e,i.value,i)}}set(t,e,i={}){if(void 0===e)return this.delete(t),this;const{ttl:s=this.ttl,start:h,noDisposeOnSet:o=this.noDisposeOnSet,sizeCalculation:n=this.sizeCalculation,status:a}=i;let{noUpdateTTL:r=this.noUpdateTTL}=i;const l=this.#R(t,e,i.size||0,n);if(this.maxEntrySize&&l>this.maxEntrySize)return a&&(a.set="miss",a.maxEntrySizeExceeded=!0),this.delete(t),this;let c=0===this.#n?void 0:this.#r.get(t);if(void 0===c)c=0===this.#n?this.#p:0!==this.#g.length?this.#g.pop():this.#n===this.#e?this.#I(!1):this.#n,this.#l[c]=t,this.#c[c]=e,this.#r.set(t,c),this.#d[this.#p]=c,this.#u[c]=this.#p,this.#p=c,this.#n++,this.#W(c,l,a),a&&(a.set="add"),r=!1;else{this.#A(c);const i=this.#c[c];if(e!==i){if(this.#w&&this.#F(i)){i.__abortController.abort(new Error("replaced"));const{__staleWhileFetching:e}=i;void 0===e||o||(this.#y&&this.#s?.(e,t,"set"),this.#L&&this.#v?.push([e,t,"set"]))}else o||(this.#y&&this.#s?.(i,t,"set"),this.#L&&this.#v?.push([i,t,"set"]));if(this.#M(c),this.#W(c,l,a),this.#c[c]=e,a){a.set="replace";const t=i&&this.#F(i)?i.__staleWhileFetching:i;void 0!==t&&(a.oldValue=t)}}else a&&(a.set="update")}if(0===s||this.#z||this.#O(),this.#z&&(r||this.#D(c,s,h),a&&this.#C(a,c)),!o&&this.#L&&this.#v){const t=this.#v;let e;for(;e=t?.shift();)this.#h?.(...e)}return this}pop(){try{for(;this.#n;){const t=this.#c[this.#f];if(this.#I(!0),this.#F(t)){if(t.__staleWhileFetching)return t.__staleWhileFetching}else if(void 0!==t)return t}}finally{if(this.#L&&this.#v){const t=this.#v;let e;for(;e=t?.shift();)this.#h?.(...e)}}}#I(t){const e=this.#f,i=this.#l[e],s=this.#c[e];return this.#w&&this.#F(s)?s.__abortController.abort(new Error("evicted")):(this.#y||this.#L)&&(this.#y&&this.#s?.(s,i,"evict"),this.#L&&this.#v?.push([s,i,"evict"])),this.#M(e),t&&(this.#l[e]=void 0,this.#c[e]=void 0,this.#g.push(e)),1===this.#n?(this.#f=this.#p=0,this.#g.length=0):this.#f=this.#d[e],this.#r.delete(i),this.#n--,e}has(t,e={}){const{updateAgeOnHas:i=this.updateAgeOnHas,status:s}=e,h=this.#r.get(t);if(void 0!==h){const t=this.#c[h];if(this.#F(t)&&void 0===t.__staleWhileFetching)return!1;if(!this.#T(h))return i&&this.#E(h),s&&(s.has="hit",this.#C(s,h)),!0;s&&(s.has="stale",this.#C(s,h))}else s&&(s.has="miss");return!1}peek(t,e={}){const{allowStale:i=this.allowStale}=e,s=this.#r.get(t);if(void 0===s||!i&&this.#T(s))return;const h=this.#c[s];return this.#F(h)?h.__staleWhileFetching:h}#_(t,e,i,s){const h=void 0===e?void 0:this.#c[e];if(this.#F(h))return h;const o=new a,{signal:n}=i;n?.addEventListener("abort",(()=>o.abort(n.reason)),{signal:o.signal});const r={signal:o.signal,options:i,context:s},l=(s,h=!1)=>{const{aborted:n}=o.signal,a=i.ignoreFetchAbort&&void 0!==s;if(i.status&&(n&&!h?(i.status.fetchAborted=!0,i.status.fetchError=o.signal.reason,a&&(i.status.fetchAbortIgnored=!0)):i.status.fetchResolved=!0),n&&!a&&!h)return c(o.signal.reason);const l=d;return this.#c[e]===d&&(void 0===s?l.__staleWhileFetching?this.#c[e]=l.__staleWhileFetching:this.delete(t):(i.status&&(i.status.fetchUpdated=!0),this.set(t,s,r.options))),s},c=s=>{const{aborted:h}=o.signal,n=h&&i.allowStaleOnFetchAbort,a=n||i.allowStaleOnFetchRejection,r=a||i.noDeleteOnFetchRejection,l=d;if(this.#c[e]===d){!r||void 0===l.__staleWhileFetching?this.delete(t):n||(this.#c[e]=l.__staleWhileFetching)}if(a)return i.status&&void 0!==l.__staleWhileFetching&&(i.status.returnedStale=!0),l.__staleWhileFetching;if(l.__returned===l)throw s};i.status&&(i.status.fetchDispatched=!0);const d=new Promise(((e,s)=>{const n=this.#o?.(t,h,r);n&&n instanceof Promise&&n.then((t=>e(void 0===t?void 0:t)),s),o.signal.addEventListener("abort",(()=>{i.ignoreFetchAbort&&!i.allowStaleOnFetchAbort||(e(void 0),i.allowStaleOnFetchAbort&&(e=t=>l(t,!0)))}))})).then(l,(t=>(i.status&&(i.status.fetchRejected=!0,i.status.fetchError=t),c(t)))),u=Object.assign(d,{__abortController:o,__staleWhileFetching:h,__returned:void 0});return void 0===e?(this.set(t,u,{...r.options,status:void 0}),e=this.#r.get(t)):this.#c[e]=u,u}#F(t){if(!this.#w)return!1;const e=t;return!!e&&e instanceof Promise&&e.hasOwnProperty("__staleWhileFetching")&&e.__abortController instanceof a}async fetch(t,e={}){const{allowStale:i=this.allowStale,updateAgeOnGet:s=this.updateAgeOnGet,noDeleteOnStaleGet:h=this.noDeleteOnStaleGet,ttl:o=this.ttl,noDisposeOnSet:n=this.noDisposeOnSet,size:a=0,sizeCalculation:r=this.sizeCalculation,noUpdateTTL:l=this.noUpdateTTL,noDeleteOnFetchRejection:c=this.noDeleteOnFetchRejection,allowStaleOnFetchRejection:d=this.allowStaleOnFetchRejection,ignoreFetchAbort:u=this.ignoreFetchAbort,allowStaleOnFetchAbort:f=this.allowStaleOnFetchAbort,context:p,forceRefresh:g=!1,status:v,signal:S}=e;if(!this.#w)return v&&(v.fetch="get"),this.get(t,{allowStale:i,updateAgeOnGet:s,noDeleteOnStaleGet:h,status:v});const m={allowStale:i,updateAgeOnGet:s,noDeleteOnStaleGet:h,ttl:o,noDisposeOnSet:n,size:a,sizeCalculation:r,noUpdateTTL:l,noDeleteOnFetchRejection:c,allowStaleOnFetchRejection:d,allowStaleOnFetchAbort:f,ignoreFetchAbort:u,status:v,signal:S};let z=this.#r.get(t);if(void 0===z){v&&(v.fetch="miss");const e=this.#_(t,z,m,p);return e.__returned=e}{const e=this.#c[z];if(this.#F(e)){const t=i&&void 0!==e.__staleWhileFetching;return v&&(v.fetch="inflight",t&&(v.returnedStale=!0)),t?e.__staleWhileFetching:e.__returned=e}const h=this.#T(z);if(!g&&!h)return v&&(v.fetch="hit"),this.#A(z),s&&this.#E(z),v&&this.#C(v,z),e;const o=this.#_(t,z,m,p),n=void 0!==o.__staleWhileFetching&&i;return v&&(v.fetch=h?"stale":"refresh",n&&h&&(v.returnedStale=!0)),n?o.__staleWhileFetching:o.__returned=o}}get(t,e={}){const{allowStale:i=this.allowStale,updateAgeOnGet:s=this.updateAgeOnGet,noDeleteOnStaleGet:h=this.noDeleteOnStaleGet,status:o}=e,n=this.#r.get(t);if(void 0!==n){const e=this.#c[n],a=this.#F(e);return o&&this.#C(o,n),this.#T(n)?(o&&(o.get="stale"),a?(o&&i&&void 0!==e.__staleWhileFetching&&(o.returnedStale=!0),i?e.__staleWhileFetching:void 0):(h||this.delete(t),o&&i&&(o.returnedStale=!0),i?e:void 0)):(o&&(o.get="hit"),a?e.__staleWhileFetching:(this.#A(n),s&&this.#E(n),e))}o&&(o.get="miss")}#G(t,e){this.#u[e]=t,this.#d[t]=e}#A(t){t!==this.#p&&(t===this.#f?this.#f=this.#d[t]:this.#G(this.#u[t],this.#d[t]),this.#G(this.#p,t),this.#p=t)}delete(t){let e=!1;if(0!==this.#n){const i=this.#r.get(t);if(void 0!==i)if(e=!0,1===this.#n)this.clear();else{this.#M(i);const e=this.#c[i];if(this.#F(e)?e.__abortController.abort(new Error("deleted")):(this.#y||this.#L)&&(this.#y&&this.#s?.(e,t,"delete"),this.#L&&this.#v?.push([e,t,"delete"])),this.#r.delete(t),this.#l[i]=void 0,this.#c[i]=void 0,i===this.#p)this.#p=this.#u[i];else if(i===this.#f)this.#f=this.#d[i];else{const t=this.#u[i];this.#d[t]=this.#d[i];const e=this.#d[i];this.#u[e]=this.#u[i]}this.#n--,this.#g.push(i)}}if(this.#L&&this.#v?.length){const t=this.#v;let e;for(;e=t?.shift();)this.#h?.(...e)}return e}clear(){for(const t of this.#k({allowStale:!0})){const e=this.#c[t];if(this.#F(e))e.__abortController.abort(new Error("deleted"));else{const i=this.#l[t];this.#y&&this.#s?.(e,i,"delete"),this.#L&&this.#v?.push([e,i,"delete"])}}if(this.#r.clear(),this.#c.fill(void 0),this.#l.fill(void 0),this.#z&&this.#m&&(this.#z.fill(0),this.#m.fill(0)),this.#S&&this.#S.fill(0),this.#f=0,this.#p=0,this.#g.length=0,this.#a=0,this.#n=0,this.#L&&this.#v){const t=this.#v;let e;for(;e=t?.shift();)this.#h?.(...e)}}}}}]); \ No newline at end of file +"use strict";(self.webpackChunk_web_index=self.webpackChunk_web_index||[]).push([[648],{8288:(t,e,i)=>{i.d(e,{q:()=>f});const s="object"===typeof performance&&performance&&"function"===typeof performance.now?performance:Date,h=new Set,o="object"===typeof process&&process?process:{},n=(t,e,i,s)=>{"function"===typeof o.emitWarning?o.emitWarning(t,e,i,s):console.error(`[${i}] ${e}: ${t}`)};let a=globalThis.AbortController,r=globalThis.AbortSignal;if("undefined"===typeof a){r=class{onabort;_onabort=[];reason;aborted=!1;addEventListener(t,e){this._onabort.push(e)}},a=class{constructor(){e()}signal=new r;abort(t){if(!this.signal.aborted){this.signal.reason=t,this.signal.aborted=!0;for(const e of this.signal._onabort)e(t);this.signal.onabort?.(t)}}};let t="1"!==o.env?.LRU_CACHE_IGNORE_AC_WARNING;const e=()=>{t&&(t=!1,n("AbortController is not defined. If using lru-cache in node 14, load an AbortController polyfill from the `node-abort-controller` package. A minimal polyfill is provided for use by LRUCache.fetch(), but it should not be relied upon in other contexts (eg, passing it to other APIs that use AbortController/AbortSignal might have undesirable effects). You may disable this with LRU_CACHE_IGNORE_AC_WARNING=1 in the env.","NO_ABORT_CONTROLLER","ENOTSUP",e))}}Symbol("type");const l=t=>t&&t===Math.floor(t)&&t>0&&isFinite(t),c=t=>l(t)?t<=Math.pow(2,8)?Uint8Array:t<=Math.pow(2,16)?Uint16Array:t<=Math.pow(2,32)?Uint32Array:t<=Number.MAX_SAFE_INTEGER?d:null:null;class d extends Array{constructor(t){super(t),this.fill(0)}}class u{heap;length;static#t=!1;static create(t){const e=c(t);if(!e)return[];u.#t=!0;const i=new u(t,e);return u.#t=!1,i}constructor(t,e){if(!u.#t)throw new TypeError("instantiate Stack using Stack.create(n)");this.heap=new e(t),this.length=0}push(t){this.heap[this.length++]=t}pop(){return this.heap[--this.length]}}class f{#e;#i;#s;#h;#o;ttl;ttlResolution;ttlAutopurge;updateAgeOnGet;updateAgeOnHas;allowStale;noDisposeOnSet;noUpdateTTL;maxEntrySize;sizeCalculation;noDeleteOnFetchRejection;noDeleteOnStaleGet;allowStaleOnFetchAbort;allowStaleOnFetchRejection;ignoreFetchAbort;#n;#a;#r;#l;#c;#d;#u;#f;#p;#g;#v;#S;#m;#z;#y;#w;#L;static unsafeExposeInternals(t){return{starts:t.#m,ttls:t.#z,sizes:t.#S,keyMap:t.#r,keyList:t.#l,valList:t.#c,next:t.#d,prev:t.#u,get head(){return t.#f},get tail(){return t.#p},free:t.#g,isBackgroundFetch:e=>t.#F(e),backgroundFetch:(e,i,s,h)=>t.#_(e,i,s,h),moveToTail:e=>t.#A(e),indexes:e=>t.#x(e),rindexes:e=>t.#k(e),isStale:e=>t.#T(e)}}get max(){return this.#e}get maxSize(){return this.#i}get calculatedSize(){return this.#a}get size(){return this.#n}get fetchMethod(){return this.#o}get dispose(){return this.#s}get disposeAfter(){return this.#h}constructor(t){const{max:e=0,ttl:i,ttlResolution:s=1,ttlAutopurge:o,updateAgeOnGet:a,updateAgeOnHas:r,allowStale:d,dispose:p,disposeAfter:g,noDisposeOnSet:v,noUpdateTTL:S,maxSize:m=0,maxEntrySize:z=0,sizeCalculation:y,fetchMethod:w,noDeleteOnFetchRejection:L,noDeleteOnStaleGet:F,allowStaleOnFetchRejection:_,allowStaleOnFetchAbort:A,ignoreFetchAbort:x}=t;if(0!==e&&!l(e))throw new TypeError("max option must be a nonnegative integer");const k=e?c(e):Array;if(!k)throw new Error("invalid max value: "+e);if(this.#e=e,this.#i=m,this.maxEntrySize=z||this.#i,this.sizeCalculation=y,this.sizeCalculation){if(!this.#i&&!this.maxEntrySize)throw new TypeError("cannot set sizeCalculation without setting maxSize or maxEntrySize");if("function"!==typeof this.sizeCalculation)throw new TypeError("sizeCalculation set to non-function")}if(void 0!==w&&"function"!==typeof w)throw new TypeError("fetchMethod must be a function if specified");if(this.#o=w,this.#w=!!w,this.#r=new Map,this.#l=new Array(e).fill(void 0),this.#c=new Array(e).fill(void 0),this.#d=new k(e),this.#u=new k(e),this.#f=0,this.#p=0,this.#g=u.create(e),this.#n=0,this.#a=0,"function"===typeof p&&(this.#s=p),"function"===typeof g?(this.#h=g,this.#v=[]):(this.#h=void 0,this.#v=void 0),this.#y=!!this.#s,this.#L=!!this.#h,this.noDisposeOnSet=!!v,this.noUpdateTTL=!!S,this.noDeleteOnFetchRejection=!!L,this.allowStaleOnFetchRejection=!!_,this.allowStaleOnFetchAbort=!!A,this.ignoreFetchAbort=!!x,0!==this.maxEntrySize){if(0!==this.#i&&!l(this.#i))throw new TypeError("maxSize must be a positive integer if specified");if(!l(this.maxEntrySize))throw new TypeError("maxEntrySize must be a positive integer if specified");this.#b()}if(this.allowStale=!!d,this.noDeleteOnStaleGet=!!F,this.updateAgeOnGet=!!a,this.updateAgeOnHas=!!r,this.ttlResolution=l(s)||0===s?s:1,this.ttlAutopurge=!!o,this.ttl=i||0,this.ttl){if(!l(this.ttl))throw new TypeError("ttl must be a positive integer if specified");this.#O()}if(0===this.#e&&0===this.ttl&&0===this.#i)throw new TypeError("At least one of max, maxSize, or ttl is required");if(!this.ttlAutopurge&&!this.#e&&!this.#i){const t="LRU_CACHE_UNBOUNDED";if((t=>!h.has(t))(t)){h.add(t);n("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.","UnboundedCacheWarning",t,f)}}}getRemainingTTL(t){return this.#r.has(t)?1/0:0}#O(){const t=new d(this.#e),e=new d(this.#e);this.#z=t,this.#m=e,this.#D=(i,h,o=s.now())=>{if(e[i]=0!==h?o:0,t[i]=h,0!==h&&this.ttlAutopurge){const t=setTimeout((()=>{this.#T(i)&&this.delete(this.#l[i])}),h+1);t.unref&&t.unref()}},this.#E=i=>{e[i]=0!==t[i]?s.now():0},this.#C=(s,o)=>{if(t[o]){const n=t[o],a=e[o];if(!n||!a)return;s.ttl=n,s.start=a,s.now=i||h();const r=s.now-a;s.remainingTTL=n-r}};let i=0;const h=()=>{const t=s.now();if(this.ttlResolution>0){i=t;const e=setTimeout((()=>i=0),this.ttlResolution);e.unref&&e.unref()}return t};this.getRemainingTTL=s=>{const o=this.#r.get(s);if(void 0===o)return 0;const n=t[o],a=e[o];if(!n||!a)return 1/0;return n-((i||h())-a)},this.#T=s=>{const o=e[s],n=t[s];return!!n&&!!o&&(i||h())-o>n}}#E=()=>{};#C=()=>{};#D=()=>{};#T=()=>!1;#b(){const t=new d(this.#e);this.#a=0,this.#S=t,this.#M=e=>{this.#a-=t[e],t[e]=0},this.#R=(t,e,i,s)=>{if(this.#F(e))return 0;if(!l(i)){if(!s)throw new TypeError("invalid size value (must be positive integer). When maxSize or maxEntrySize is used, sizeCalculation or size must be set.");if("function"!==typeof s)throw new TypeError("sizeCalculation must be a function");if(i=s(e,t),!l(i))throw new TypeError("sizeCalculation return invalid (expect positive integer)")}return i},this.#W=(e,i,s)=>{if(t[e]=i,this.#i){const i=this.#i-t[e];for(;this.#a>i;)this.#I(!0)}this.#a+=t[e],s&&(s.entrySize=i,s.totalCalculatedSize=this.#a)}}#M=t=>{};#W=(t,e,i)=>{};#R=(t,e,i,s)=>{if(i||s)throw new TypeError("cannot set size without setting maxSize or maxEntrySize on cache");return 0};*#x({allowStale:t=this.allowStale}={}){if(this.#n)for(let e=this.#p;this.#B(e)&&(!t&&this.#T(e)||(yield e),e!==this.#f);)e=this.#u[e]}*#k({allowStale:t=this.allowStale}={}){if(this.#n)for(let e=this.#f;this.#B(e)&&(!t&&this.#T(e)||(yield e),e!==this.#p);)e=this.#d[e]}#B(t){return void 0!==t&&this.#r.get(this.#l[t])===t}*entries(){for(const t of this.#x())void 0===this.#c[t]||void 0===this.#l[t]||this.#F(this.#c[t])||(yield[this.#l[t],this.#c[t]])}*rentries(){for(const t of this.#k())void 0===this.#c[t]||void 0===this.#l[t]||this.#F(this.#c[t])||(yield[this.#l[t],this.#c[t]])}*keys(){for(const t of this.#x()){const e=this.#l[t];void 0===e||this.#F(this.#c[t])||(yield e)}}*rkeys(){for(const t of this.#k()){const e=this.#l[t];void 0===e||this.#F(this.#c[t])||(yield e)}}*values(){for(const t of this.#x()){void 0===this.#c[t]||this.#F(this.#c[t])||(yield this.#c[t])}}*rvalues(){for(const t of this.#k()){void 0===this.#c[t]||this.#F(this.#c[t])||(yield this.#c[t])}}[Symbol.iterator](){return this.entries()}[Symbol.toStringTag]="LRUCache";find(t,e={}){for(const i of this.#x()){const s=this.#c[i],h=this.#F(s)?s.__staleWhileFetching:s;if(void 0!==h&&t(h,this.#l[i],this))return this.get(this.#l[i],e)}}forEach(t,e=this){for(const i of this.#x()){const s=this.#c[i],h=this.#F(s)?s.__staleWhileFetching:s;void 0!==h&&t.call(e,h,this.#l[i],this)}}rforEach(t,e=this){for(const i of this.#k()){const s=this.#c[i],h=this.#F(s)?s.__staleWhileFetching:s;void 0!==h&&t.call(e,h,this.#l[i],this)}}purgeStale(){let t=!1;for(const e of this.#k({allowStale:!0}))this.#T(e)&&(this.delete(this.#l[e]),t=!0);return t}info(t){const e=this.#r.get(t);if(void 0===e)return;const i=this.#c[e],h=this.#F(i)?i.__staleWhileFetching:i;if(void 0===h)return;const o={value:h};if(this.#z&&this.#m){const t=this.#z[e],i=this.#m[e];if(t&&i){const e=t-(s.now()-i);o.ttl=e,o.start=Date.now()}}return this.#S&&(o.size=this.#S[e]),o}dump(){const t=[];for(const e of this.#x({allowStale:!0})){const i=this.#l[e],h=this.#c[e],o=this.#F(h)?h.__staleWhileFetching:h;if(void 0===o||void 0===i)continue;const n={value:o};if(this.#z&&this.#m){n.ttl=this.#z[e];const t=s.now()-this.#m[e];n.start=Math.floor(Date.now()-t)}this.#S&&(n.size=this.#S[e]),t.unshift([i,n])}return t}load(t){this.clear();for(const[e,i]of t){if(i.start){const t=Date.now()-i.start;i.start=s.now()-t}this.set(e,i.value,i)}}set(t,e,i={}){if(void 0===e)return this.delete(t),this;const{ttl:s=this.ttl,start:h,noDisposeOnSet:o=this.noDisposeOnSet,sizeCalculation:n=this.sizeCalculation,status:a}=i;let{noUpdateTTL:r=this.noUpdateTTL}=i;const l=this.#R(t,e,i.size||0,n);if(this.maxEntrySize&&l>this.maxEntrySize)return a&&(a.set="miss",a.maxEntrySizeExceeded=!0),this.delete(t),this;let c=0===this.#n?void 0:this.#r.get(t);if(void 0===c)c=0===this.#n?this.#p:0!==this.#g.length?this.#g.pop():this.#n===this.#e?this.#I(!1):this.#n,this.#l[c]=t,this.#c[c]=e,this.#r.set(t,c),this.#d[this.#p]=c,this.#u[c]=this.#p,this.#p=c,this.#n++,this.#W(c,l,a),a&&(a.set="add"),r=!1;else{this.#A(c);const i=this.#c[c];if(e!==i){if(this.#w&&this.#F(i)){i.__abortController.abort(new Error("replaced"));const{__staleWhileFetching:e}=i;void 0===e||o||(this.#y&&this.#s?.(e,t,"set"),this.#L&&this.#v?.push([e,t,"set"]))}else o||(this.#y&&this.#s?.(i,t,"set"),this.#L&&this.#v?.push([i,t,"set"]));if(this.#M(c),this.#W(c,l,a),this.#c[c]=e,a){a.set="replace";const t=i&&this.#F(i)?i.__staleWhileFetching:i;void 0!==t&&(a.oldValue=t)}}else a&&(a.set="update")}if(0===s||this.#z||this.#O(),this.#z&&(r||this.#D(c,s,h),a&&this.#C(a,c)),!o&&this.#L&&this.#v){const t=this.#v;let e;for(;e=t?.shift();)this.#h?.(...e)}return this}pop(){try{for(;this.#n;){const t=this.#c[this.#f];if(this.#I(!0),this.#F(t)){if(t.__staleWhileFetching)return t.__staleWhileFetching}else if(void 0!==t)return t}}finally{if(this.#L&&this.#v){const t=this.#v;let e;for(;e=t?.shift();)this.#h?.(...e)}}}#I(t){const e=this.#f,i=this.#l[e],s=this.#c[e];return this.#w&&this.#F(s)?s.__abortController.abort(new Error("evicted")):(this.#y||this.#L)&&(this.#y&&this.#s?.(s,i,"evict"),this.#L&&this.#v?.push([s,i,"evict"])),this.#M(e),t&&(this.#l[e]=void 0,this.#c[e]=void 0,this.#g.push(e)),1===this.#n?(this.#f=this.#p=0,this.#g.length=0):this.#f=this.#d[e],this.#r.delete(i),this.#n--,e}has(t,e={}){const{updateAgeOnHas:i=this.updateAgeOnHas,status:s}=e,h=this.#r.get(t);if(void 0!==h){const t=this.#c[h];if(this.#F(t)&&void 0===t.__staleWhileFetching)return!1;if(!this.#T(h))return i&&this.#E(h),s&&(s.has="hit",this.#C(s,h)),!0;s&&(s.has="stale",this.#C(s,h))}else s&&(s.has="miss");return!1}peek(t,e={}){const{allowStale:i=this.allowStale}=e,s=this.#r.get(t);if(void 0===s||!i&&this.#T(s))return;const h=this.#c[s];return this.#F(h)?h.__staleWhileFetching:h}#_(t,e,i,s){const h=void 0===e?void 0:this.#c[e];if(this.#F(h))return h;const o=new a,{signal:n}=i;n?.addEventListener("abort",(()=>o.abort(n.reason)),{signal:o.signal});const r={signal:o.signal,options:i,context:s},l=(s,h=!1)=>{const{aborted:n}=o.signal,a=i.ignoreFetchAbort&&void 0!==s;if(i.status&&(n&&!h?(i.status.fetchAborted=!0,i.status.fetchError=o.signal.reason,a&&(i.status.fetchAbortIgnored=!0)):i.status.fetchResolved=!0),n&&!a&&!h)return c(o.signal.reason);const l=d;return this.#c[e]===d&&(void 0===s?l.__staleWhileFetching?this.#c[e]=l.__staleWhileFetching:this.delete(t):(i.status&&(i.status.fetchUpdated=!0),this.set(t,s,r.options))),s},c=s=>{const{aborted:h}=o.signal,n=h&&i.allowStaleOnFetchAbort,a=n||i.allowStaleOnFetchRejection,r=a||i.noDeleteOnFetchRejection,l=d;if(this.#c[e]===d){!r||void 0===l.__staleWhileFetching?this.delete(t):n||(this.#c[e]=l.__staleWhileFetching)}if(a)return i.status&&void 0!==l.__staleWhileFetching&&(i.status.returnedStale=!0),l.__staleWhileFetching;if(l.__returned===l)throw s};i.status&&(i.status.fetchDispatched=!0);const d=new Promise(((e,s)=>{const n=this.#o?.(t,h,r);n&&n instanceof Promise&&n.then((t=>e(void 0===t?void 0:t)),s),o.signal.addEventListener("abort",(()=>{i.ignoreFetchAbort&&!i.allowStaleOnFetchAbort||(e(void 0),i.allowStaleOnFetchAbort&&(e=t=>l(t,!0)))}))})).then(l,(t=>(i.status&&(i.status.fetchRejected=!0,i.status.fetchError=t),c(t)))),u=Object.assign(d,{__abortController:o,__staleWhileFetching:h,__returned:void 0});return void 0===e?(this.set(t,u,{...r.options,status:void 0}),e=this.#r.get(t)):this.#c[e]=u,u}#F(t){if(!this.#w)return!1;const e=t;return!!e&&e instanceof Promise&&e.hasOwnProperty("__staleWhileFetching")&&e.__abortController instanceof a}async fetch(t,e={}){const{allowStale:i=this.allowStale,updateAgeOnGet:s=this.updateAgeOnGet,noDeleteOnStaleGet:h=this.noDeleteOnStaleGet,ttl:o=this.ttl,noDisposeOnSet:n=this.noDisposeOnSet,size:a=0,sizeCalculation:r=this.sizeCalculation,noUpdateTTL:l=this.noUpdateTTL,noDeleteOnFetchRejection:c=this.noDeleteOnFetchRejection,allowStaleOnFetchRejection:d=this.allowStaleOnFetchRejection,ignoreFetchAbort:u=this.ignoreFetchAbort,allowStaleOnFetchAbort:f=this.allowStaleOnFetchAbort,context:p,forceRefresh:g=!1,status:v,signal:S}=e;if(!this.#w)return v&&(v.fetch="get"),this.get(t,{allowStale:i,updateAgeOnGet:s,noDeleteOnStaleGet:h,status:v});const m={allowStale:i,updateAgeOnGet:s,noDeleteOnStaleGet:h,ttl:o,noDisposeOnSet:n,size:a,sizeCalculation:r,noUpdateTTL:l,noDeleteOnFetchRejection:c,allowStaleOnFetchRejection:d,allowStaleOnFetchAbort:f,ignoreFetchAbort:u,status:v,signal:S};let z=this.#r.get(t);if(void 0===z){v&&(v.fetch="miss");const e=this.#_(t,z,m,p);return e.__returned=e}{const e=this.#c[z];if(this.#F(e)){const t=i&&void 0!==e.__staleWhileFetching;return v&&(v.fetch="inflight",t&&(v.returnedStale=!0)),t?e.__staleWhileFetching:e.__returned=e}const h=this.#T(z);if(!g&&!h)return v&&(v.fetch="hit"),this.#A(z),s&&this.#E(z),v&&this.#C(v,z),e;const o=this.#_(t,z,m,p),n=void 0!==o.__staleWhileFetching&&i;return v&&(v.fetch=h?"stale":"refresh",n&&h&&(v.returnedStale=!0)),n?o.__staleWhileFetching:o.__returned=o}}get(t,e={}){const{allowStale:i=this.allowStale,updateAgeOnGet:s=this.updateAgeOnGet,noDeleteOnStaleGet:h=this.noDeleteOnStaleGet,status:o}=e,n=this.#r.get(t);if(void 0!==n){const e=this.#c[n],a=this.#F(e);return o&&this.#C(o,n),this.#T(n)?(o&&(o.get="stale"),a?(o&&i&&void 0!==e.__staleWhileFetching&&(o.returnedStale=!0),i?e.__staleWhileFetching:void 0):(h||this.delete(t),o&&i&&(o.returnedStale=!0),i?e:void 0)):(o&&(o.get="hit"),a?e.__staleWhileFetching:(this.#A(n),s&&this.#E(n),e))}o&&(o.get="miss")}#G(t,e){this.#u[e]=t,this.#d[t]=e}#A(t){t!==this.#p&&(t===this.#f?this.#f=this.#d[t]:this.#G(this.#u[t],this.#d[t]),this.#G(this.#p,t),this.#p=t)}delete(t){let e=!1;if(0!==this.#n){const i=this.#r.get(t);if(void 0!==i)if(e=!0,1===this.#n)this.clear();else{this.#M(i);const e=this.#c[i];if(this.#F(e)?e.__abortController.abort(new Error("deleted")):(this.#y||this.#L)&&(this.#y&&this.#s?.(e,t,"delete"),this.#L&&this.#v?.push([e,t,"delete"])),this.#r.delete(t),this.#l[i]=void 0,this.#c[i]=void 0,i===this.#p)this.#p=this.#u[i];else if(i===this.#f)this.#f=this.#d[i];else{const t=this.#u[i];this.#d[t]=this.#d[i];const e=this.#d[i];this.#u[e]=this.#u[i]}this.#n--,this.#g.push(i)}}if(this.#L&&this.#v?.length){const t=this.#v;let e;for(;e=t?.shift();)this.#h?.(...e)}return e}clear(){for(const t of this.#k({allowStale:!0})){const e=this.#c[t];if(this.#F(e))e.__abortController.abort(new Error("deleted"));else{const i=this.#l[t];this.#y&&this.#s?.(e,i,"delete"),this.#L&&this.#v?.push([e,i,"delete"])}}if(this.#r.clear(),this.#c.fill(void 0),this.#l.fill(void 0),this.#z&&this.#m&&(this.#z.fill(0),this.#m.fill(0)),this.#S&&this.#S.fill(0),this.#f=0,this.#p=0,this.#g.length=0,this.#a=0,this.#n=0,this.#L&&this.#v){const t=this.#v;let e;for(;e=t?.shift();)this.#h?.(...e)}}}}}]); \ No newline at end of file diff --git a/static/js/pnpm.m3u8-parser.9cd34530.chunk.js b/static/js/pnpm.m3u8-parser.c71522df.chunk.js similarity index 98% rename from static/js/pnpm.m3u8-parser.9cd34530.chunk.js rename to static/js/pnpm.m3u8-parser.c71522df.chunk.js index 055fa754..afccebd5 100644 --- a/static/js/pnpm.m3u8-parser.9cd34530.chunk.js +++ b/static/js/pnpm.m3u8-parser.c71522df.chunk.js @@ -1,2 +1,2 @@ -/*! For license information please see pnpm.m3u8-parser.9cd34530.chunk.js.LICENSE.txt */ -"use strict";(self.webpackChunk_web_index=self.webpackChunk_web_index||[]).push([[447],{3713:(t,e,i)=>{i.r(e),i.d(e,{LineStream:()=>n,ParseStream:()=>h,Parser:()=>T});var a=i(7204),s=i(3165),r=i(9992);class n extends a.A{constructor(){super(),this.buffer=""}push(t){let e;for(this.buffer+=t,e=this.buffer.indexOf("\n");e>-1;e=this.buffer.indexOf("\n"))this.trigger("data",this.buffer.substring(0,e)),this.buffer=this.buffer.substring(e+1)}}const u=String.fromCharCode(9),o=function(t){const e=/([0-9.]*)?@?([0-9.]*)?/.exec(t||""),i={};return e[1]&&(i.length=parseInt(e[1],10)),e[2]&&(i.offset=parseInt(e[2],10)),i},g=function(t){const e={};if(!t)return e;const i=t.split(new RegExp('(?:^|,)((?:[^=]*)=(?:"[^"]*"|[^,]*))'));let a,s=i.length;for(;s--;)""!==i[s]&&(a=/([^=]*)=(.*)/.exec(i[s]).slice(1),a[0]=a[0].replace(/^\s+|\s+$/g,""),a[1]=a[1].replace(/^\s+|\s+$/g,""),a[1]=a[1].replace(/^['"](.*)['"]$/g,"$1"),e[a[0]]=a[1]);return e};class h extends a.A{constructor(){super(),this.customParsers=[],this.tagMappers=[]}push(t){let e,i;if(0===(t=t.trim()).length)return;if("#"!==t[0])return void this.trigger("data",{type:"uri",uri:t});this.tagMappers.reduce(((e,i)=>{const a=i(t);return a===t?e:e.concat([a])}),[t]).forEach((t=>{for(let e=0;et),this.customParsers.push((s=>{if(t.exec(s))return this.trigger("data",{type:"custom",data:i(s),customType:e,segment:a}),!0}))}addTagMapper({expression:t,map:e}){this.tagMappers.push((i=>t.test(i)?e(i):i))}}const d=function(t){const e={};return Object.keys(t).forEach((function(i){var a;e[(a=i,a.toLowerCase().replace(/-(\w)/g,(t=>t[1].toUpperCase())))]=t[i]})),e},E=function(t){const{serverControl:e,targetDuration:i,partTargetDuration:a}=t;if(!e)return;const s="#EXT-X-SERVER-CONTROL",r="holdBack",n="partHoldBack",u=i&&3*i,o=a&&2*a;i&&!e.hasOwnProperty(r)&&(e[r]=u,this.trigger("info",{message:`${s} defaulting HOLD-BACK to targetDuration * 3 (${u}).`})),u&&e[r]{u.uri||!u.parts&&!u.preloadHints||(!u.map&&i&&(u.map=i),!u.key&&a&&(u.key=a),u.timeline||"number"!==typeof p||(u.timeline=p),this.manifest.preloadSegment=u)})),this.parseStream.on("data",(function(n){let h,b;({tag(){({version(){n.version&&(this.manifest.version=n.version)},"allow-cache"(){this.manifest.allowCache=n.allowed,"allowed"in n||(this.trigger("info",{message:"defaulting allowCache to YES"}),this.manifest.allowCache=!0)},byterange(){const t={};"length"in n&&(u.byterange=t,t.length=n.length,"offset"in n||(n.offset=c)),"offset"in n&&(u.byterange=t,t.offset=n.offset),c=t.offset+t.length},endlist(){this.manifest.endList=!0},inf(){"mediaSequence"in this.manifest||(this.manifest.mediaSequence=0,this.trigger("info",{message:"defaulting media sequence to zero"})),"discontinuitySequence"in this.manifest||(this.manifest.discontinuitySequence=0,this.trigger("info",{message:"defaulting discontinuity sequence to zero"})),n.title&&(u.title=n.title),n.duration>0&&(u.duration=n.duration),0===n.duration&&(u.duration=.01,this.trigger("info",{message:"updating zero segment duration to a small value"})),this.manifest.segments=e},key(){if(n.attributes)if("NONE"!==n.attributes.METHOD)if(n.attributes.URI){if("com.apple.streamingkeydelivery"===n.attributes.KEYFORMAT)return this.manifest.contentProtection=this.manifest.contentProtection||{},void(this.manifest.contentProtection["com.apple.fps.1_0"]={attributes:n.attributes});if("com.microsoft.playready"===n.attributes.KEYFORMAT)return this.manifest.contentProtection=this.manifest.contentProtection||{},void(this.manifest.contentProtection["com.microsoft.playready"]={uri:n.attributes.URI});if("urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed"===n.attributes.KEYFORMAT){return-1===["SAMPLE-AES","SAMPLE-AES-CTR","SAMPLE-AES-CENC"].indexOf(n.attributes.METHOD)?void this.trigger("warn",{message:"invalid key method provided for Widevine"}):("SAMPLE-AES-CENC"===n.attributes.METHOD&&this.trigger("warn",{message:"SAMPLE-AES-CENC is deprecated, please use SAMPLE-AES-CTR instead"}),"data:text/plain;base64,"!==n.attributes.URI.substring(0,23)?void this.trigger("warn",{message:"invalid key URI provided for Widevine"}):n.attributes.KEYID&&"0x"===n.attributes.KEYID.substring(0,2)?(this.manifest.contentProtection=this.manifest.contentProtection||{},void(this.manifest.contentProtection["com.widevine.alpha"]={attributes:{schemeIdUri:n.attributes.KEYFORMAT,keyId:n.attributes.KEYID.substring(2)},pssh:(0,r.A)(n.attributes.URI.split(",")[1])})):void this.trigger("warn",{message:"invalid key ID provided for Widevine"}))}n.attributes.METHOD||this.trigger("warn",{message:"defaulting key method to AES-128"}),a={method:n.attributes.METHOD||"AES-128",uri:n.attributes.URI},"undefined"!==typeof n.attributes.IV&&(a.iv=n.attributes.IV)}else this.trigger("warn",{message:"ignoring key declaration without URI"});else a=null;else this.trigger("warn",{message:"ignoring key declaration without attribute list"})},"media-sequence"(){isFinite(n.number)?this.manifest.mediaSequence=n.number:this.trigger("warn",{message:"ignoring invalid media sequence: "+n.number})},"discontinuity-sequence"(){isFinite(n.number)?(this.manifest.discontinuitySequence=n.number,p=n.number):this.trigger("warn",{message:"ignoring invalid discontinuity sequence: "+n.number})},"playlist-type"(){/VOD|EVENT/.test(n.playlistType)?this.manifest.playlistType=n.playlistType:this.trigger("warn",{message:"ignoring unknown playlist type: "+n.playlist})},map(){i={},n.uri&&(i.uri=n.uri),n.byterange&&(i.byterange=n.byterange),a&&(i.key=a)},"stream-inf"(){this.manifest.playlists=e,this.manifest.mediaGroups=this.manifest.mediaGroups||T,n.attributes?(u.attributes||(u.attributes={}),(0,s.A)(u.attributes,n.attributes)):this.trigger("warn",{message:"ignoring empty stream-inf attributes"})},media(){if(this.manifest.mediaGroups=this.manifest.mediaGroups||T,!(n.attributes&&n.attributes.TYPE&&n.attributes["GROUP-ID"]&&n.attributes.NAME))return void this.trigger("warn",{message:"ignoring incomplete or missing media group"});const t=this.manifest.mediaGroups[n.attributes.TYPE];t[n.attributes["GROUP-ID"]]=t[n.attributes["GROUP-ID"]]||{},h=t[n.attributes["GROUP-ID"]],b={default:/yes/i.test(n.attributes.DEFAULT)},b.default?b.autoselect=!0:b.autoselect=/yes/i.test(n.attributes.AUTOSELECT),n.attributes.LANGUAGE&&(b.language=n.attributes.LANGUAGE),n.attributes.URI&&(b.uri=n.attributes.URI),n.attributes["INSTREAM-ID"]&&(b.instreamId=n.attributes["INSTREAM-ID"]),n.attributes.CHARACTERISTICS&&(b.characteristics=n.attributes.CHARACTERISTICS),n.attributes.FORCED&&(b.forced=/yes/i.test(n.attributes.FORCED)),h[n.attributes.NAME]=b},discontinuity(){p+=1,u.discontinuity=!0,this.manifest.discontinuityStarts.push(e.length)},"program-date-time"(){"undefined"===typeof this.manifest.dateTimeString&&(this.manifest.dateTimeString=n.dateTimeString,this.manifest.dateTimeObject=n.dateTimeObject),u.dateTimeString=n.dateTimeString,u.dateTimeObject=n.dateTimeObject;const{lastProgramDateTime:t}=this;this.lastProgramDateTime=new Date(n.dateTimeString).getTime(),null===t&&this.manifest.segments.reduceRight(((t,e)=>(e.programDateTime=t-1e3*e.duration,e.programDateTime)),this.lastProgramDateTime)},targetduration(){!isFinite(n.duration)||n.duration<0?this.trigger("warn",{message:"ignoring invalid target duration: "+n.duration}):(this.manifest.targetDuration=n.duration,E.call(this,this.manifest))},start(){n.attributes&&!isNaN(n.attributes["TIME-OFFSET"])?this.manifest.start={timeOffset:n.attributes["TIME-OFFSET"],precise:n.attributes.PRECISE}:this.trigger("warn",{message:"ignoring start declaration without appropriate attribute list"})},"cue-out"(){u.cueOut=n.data},"cue-out-cont"(){u.cueOutCont=n.data},"cue-in"(){u.cueIn=n.data},skip(){this.manifest.skip=d(n.attributes),this.warnOnMissingAttributes_("#EXT-X-SKIP",n.attributes,["SKIPPED-SEGMENTS"])},part(){o=!0;const t=this.manifest.segments.length,e=d(n.attributes);u.parts=u.parts||[],u.parts.push(e),e.byterange&&(e.byterange.hasOwnProperty("offset")||(e.byterange.offset=f),f=e.byterange.offset+e.byterange.length);const i=u.parts.length-1;this.warnOnMissingAttributes_(`#EXT-X-PART #${i} for segment #${t}`,n.attributes,["URI","DURATION"]),this.manifest.renditionReports&&this.manifest.renditionReports.forEach(((t,e)=>{t.hasOwnProperty("lastPart")||this.trigger("warn",{message:`#EXT-X-RENDITION-REPORT #${e} lacks required attribute(s): LAST-PART`})}))},"server-control"(){const t=this.manifest.serverControl=d(n.attributes);t.hasOwnProperty("canBlockReload")||(t.canBlockReload=!1,this.trigger("info",{message:"#EXT-X-SERVER-CONTROL defaulting CAN-BLOCK-RELOAD to false"})),E.call(this,this.manifest),t.canSkipDateranges&&!t.hasOwnProperty("canSkipUntil")&&this.trigger("warn",{message:"#EXT-X-SERVER-CONTROL lacks required attribute CAN-SKIP-UNTIL which is required when CAN-SKIP-DATERANGES is set"})},"preload-hint"(){const t=this.manifest.segments.length,e=d(n.attributes),i=e.type&&"PART"===e.type;u.preloadHints=u.preloadHints||[],u.preloadHints.push(e),e.byterange&&(e.byterange.hasOwnProperty("offset")||(e.byterange.offset=i?f:0,i&&(f=e.byterange.offset+e.byterange.length)));const a=u.preloadHints.length-1;if(this.warnOnMissingAttributes_(`#EXT-X-PRELOAD-HINT #${a} for segment #${t}`,n.attributes,["TYPE","URI"]),e.type)for(let s=0;st.id===e.id));this.manifest.dateRanges[t]=(0,s.A)(this.manifest.dateRanges[t],e),m[e.id]=(0,s.A)(m[e.id],e),this.manifest.dateRanges.pop()}else m[e.id]=e},"independent-segments"(){this.manifest.independentSegments=!0},"content-steering"(){this.manifest.contentSteering=d(n.attributes),this.warnOnMissingAttributes_("#EXT-X-CONTENT-STEERING",n.attributes,["SERVER-URI"])}}[n.tagType]||g).call(t)},uri(){u.uri=n.uri,e.push(u),this.manifest.targetDuration&&!("duration"in u)&&(this.trigger("warn",{message:"defaulting segment duration to the target duration"}),u.duration=this.manifest.targetDuration),a&&(u.key=a),u.timeline=p,i&&(u.map=i),f=0,null!==this.lastProgramDateTime&&(u.programDateTime=this.lastProgramDateTime,this.lastProgramDateTime+=1e3*u.duration),u={}},comment(){},custom(){n.segment?(u.custom=u.custom||{},u.custom[n.customType]=n.data):(this.manifest.custom=this.manifest.custom||{},this.manifest.custom[n.customType]=n.data)}})[n.type].call(t)}))}warnOnMissingAttributes_(t,e,i){const a=[];i.forEach((function(t){e.hasOwnProperty(t)||a.push(t)})),a.length&&this.trigger("warn",{message:`${t} lacks required attribute(s): ${a.join(", ")}`})}push(t){this.lineStream.push(t)}end(){this.lineStream.push("\n"),this.manifest.dateRanges.length&&null===this.lastProgramDateTime&&this.trigger("warn",{message:"A playlist with EXT-X-DATERANGE tag must contain atleast one EXT-X-PROGRAM-DATE-TIME tag"}),this.lastProgramDateTime=null,this.trigger("end")}addParser(t){this.parseStream.addParser(t)}addTagMapper(t){this.parseStream.addTagMapper(t)}}}}]); \ No newline at end of file +/*! For license information please see pnpm.m3u8-parser.c71522df.chunk.js.LICENSE.txt */ +"use strict";(self.webpackChunk_web_index=self.webpackChunk_web_index||[]).push([[447],{9775:(t,e,i)=>{i.r(e),i.d(e,{LineStream:()=>n,ParseStream:()=>h,Parser:()=>T});var a=i(1722),s=i(9993),r=i(3386);class n extends a.A{constructor(){super(),this.buffer=""}push(t){let e;for(this.buffer+=t,e=this.buffer.indexOf("\n");e>-1;e=this.buffer.indexOf("\n"))this.trigger("data",this.buffer.substring(0,e)),this.buffer=this.buffer.substring(e+1)}}const u=String.fromCharCode(9),o=function(t){const e=/([0-9.]*)?@?([0-9.]*)?/.exec(t||""),i={};return e[1]&&(i.length=parseInt(e[1],10)),e[2]&&(i.offset=parseInt(e[2],10)),i},g=function(t){const e={};if(!t)return e;const i=t.split(new RegExp('(?:^|,)((?:[^=]*)=(?:"[^"]*"|[^,]*))'));let a,s=i.length;for(;s--;)""!==i[s]&&(a=/([^=]*)=(.*)/.exec(i[s]).slice(1),a[0]=a[0].replace(/^\s+|\s+$/g,""),a[1]=a[1].replace(/^\s+|\s+$/g,""),a[1]=a[1].replace(/^['"](.*)['"]$/g,"$1"),e[a[0]]=a[1]);return e};class h extends a.A{constructor(){super(),this.customParsers=[],this.tagMappers=[]}push(t){let e,i;if(0===(t=t.trim()).length)return;if("#"!==t[0])return void this.trigger("data",{type:"uri",uri:t});this.tagMappers.reduce(((e,i)=>{const a=i(t);return a===t?e:e.concat([a])}),[t]).forEach((t=>{for(let e=0;et),this.customParsers.push((s=>{if(t.exec(s))return this.trigger("data",{type:"custom",data:i(s),customType:e,segment:a}),!0}))}addTagMapper({expression:t,map:e}){this.tagMappers.push((i=>t.test(i)?e(i):i))}}const d=function(t){const e={};return Object.keys(t).forEach((function(i){var a;e[(a=i,a.toLowerCase().replace(/-(\w)/g,(t=>t[1].toUpperCase())))]=t[i]})),e},E=function(t){const{serverControl:e,targetDuration:i,partTargetDuration:a}=t;if(!e)return;const s="#EXT-X-SERVER-CONTROL",r="holdBack",n="partHoldBack",u=i&&3*i,o=a&&2*a;i&&!e.hasOwnProperty(r)&&(e[r]=u,this.trigger("info",{message:`${s} defaulting HOLD-BACK to targetDuration * 3 (${u}).`})),u&&e[r]{u.uri||!u.parts&&!u.preloadHints||(!u.map&&i&&(u.map=i),!u.key&&a&&(u.key=a),u.timeline||"number"!==typeof p||(u.timeline=p),this.manifest.preloadSegment=u)})),this.parseStream.on("data",(function(n){let h,b;({tag(){({version(){n.version&&(this.manifest.version=n.version)},"allow-cache"(){this.manifest.allowCache=n.allowed,"allowed"in n||(this.trigger("info",{message:"defaulting allowCache to YES"}),this.manifest.allowCache=!0)},byterange(){const t={};"length"in n&&(u.byterange=t,t.length=n.length,"offset"in n||(n.offset=c)),"offset"in n&&(u.byterange=t,t.offset=n.offset),c=t.offset+t.length},endlist(){this.manifest.endList=!0},inf(){"mediaSequence"in this.manifest||(this.manifest.mediaSequence=0,this.trigger("info",{message:"defaulting media sequence to zero"})),"discontinuitySequence"in this.manifest||(this.manifest.discontinuitySequence=0,this.trigger("info",{message:"defaulting discontinuity sequence to zero"})),n.title&&(u.title=n.title),n.duration>0&&(u.duration=n.duration),0===n.duration&&(u.duration=.01,this.trigger("info",{message:"updating zero segment duration to a small value"})),this.manifest.segments=e},key(){if(n.attributes)if("NONE"!==n.attributes.METHOD)if(n.attributes.URI){if("com.apple.streamingkeydelivery"===n.attributes.KEYFORMAT)return this.manifest.contentProtection=this.manifest.contentProtection||{},void(this.manifest.contentProtection["com.apple.fps.1_0"]={attributes:n.attributes});if("com.microsoft.playready"===n.attributes.KEYFORMAT)return this.manifest.contentProtection=this.manifest.contentProtection||{},void(this.manifest.contentProtection["com.microsoft.playready"]={uri:n.attributes.URI});if("urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed"===n.attributes.KEYFORMAT){return-1===["SAMPLE-AES","SAMPLE-AES-CTR","SAMPLE-AES-CENC"].indexOf(n.attributes.METHOD)?void this.trigger("warn",{message:"invalid key method provided for Widevine"}):("SAMPLE-AES-CENC"===n.attributes.METHOD&&this.trigger("warn",{message:"SAMPLE-AES-CENC is deprecated, please use SAMPLE-AES-CTR instead"}),"data:text/plain;base64,"!==n.attributes.URI.substring(0,23)?void this.trigger("warn",{message:"invalid key URI provided for Widevine"}):n.attributes.KEYID&&"0x"===n.attributes.KEYID.substring(0,2)?(this.manifest.contentProtection=this.manifest.contentProtection||{},void(this.manifest.contentProtection["com.widevine.alpha"]={attributes:{schemeIdUri:n.attributes.KEYFORMAT,keyId:n.attributes.KEYID.substring(2)},pssh:(0,r.A)(n.attributes.URI.split(",")[1])})):void this.trigger("warn",{message:"invalid key ID provided for Widevine"}))}n.attributes.METHOD||this.trigger("warn",{message:"defaulting key method to AES-128"}),a={method:n.attributes.METHOD||"AES-128",uri:n.attributes.URI},"undefined"!==typeof n.attributes.IV&&(a.iv=n.attributes.IV)}else this.trigger("warn",{message:"ignoring key declaration without URI"});else a=null;else this.trigger("warn",{message:"ignoring key declaration without attribute list"})},"media-sequence"(){isFinite(n.number)?this.manifest.mediaSequence=n.number:this.trigger("warn",{message:"ignoring invalid media sequence: "+n.number})},"discontinuity-sequence"(){isFinite(n.number)?(this.manifest.discontinuitySequence=n.number,p=n.number):this.trigger("warn",{message:"ignoring invalid discontinuity sequence: "+n.number})},"playlist-type"(){/VOD|EVENT/.test(n.playlistType)?this.manifest.playlistType=n.playlistType:this.trigger("warn",{message:"ignoring unknown playlist type: "+n.playlist})},map(){i={},n.uri&&(i.uri=n.uri),n.byterange&&(i.byterange=n.byterange),a&&(i.key=a)},"stream-inf"(){this.manifest.playlists=e,this.manifest.mediaGroups=this.manifest.mediaGroups||T,n.attributes?(u.attributes||(u.attributes={}),(0,s.A)(u.attributes,n.attributes)):this.trigger("warn",{message:"ignoring empty stream-inf attributes"})},media(){if(this.manifest.mediaGroups=this.manifest.mediaGroups||T,!(n.attributes&&n.attributes.TYPE&&n.attributes["GROUP-ID"]&&n.attributes.NAME))return void this.trigger("warn",{message:"ignoring incomplete or missing media group"});const t=this.manifest.mediaGroups[n.attributes.TYPE];t[n.attributes["GROUP-ID"]]=t[n.attributes["GROUP-ID"]]||{},h=t[n.attributes["GROUP-ID"]],b={default:/yes/i.test(n.attributes.DEFAULT)},b.default?b.autoselect=!0:b.autoselect=/yes/i.test(n.attributes.AUTOSELECT),n.attributes.LANGUAGE&&(b.language=n.attributes.LANGUAGE),n.attributes.URI&&(b.uri=n.attributes.URI),n.attributes["INSTREAM-ID"]&&(b.instreamId=n.attributes["INSTREAM-ID"]),n.attributes.CHARACTERISTICS&&(b.characteristics=n.attributes.CHARACTERISTICS),n.attributes.FORCED&&(b.forced=/yes/i.test(n.attributes.FORCED)),h[n.attributes.NAME]=b},discontinuity(){p+=1,u.discontinuity=!0,this.manifest.discontinuityStarts.push(e.length)},"program-date-time"(){"undefined"===typeof this.manifest.dateTimeString&&(this.manifest.dateTimeString=n.dateTimeString,this.manifest.dateTimeObject=n.dateTimeObject),u.dateTimeString=n.dateTimeString,u.dateTimeObject=n.dateTimeObject;const{lastProgramDateTime:t}=this;this.lastProgramDateTime=new Date(n.dateTimeString).getTime(),null===t&&this.manifest.segments.reduceRight(((t,e)=>(e.programDateTime=t-1e3*e.duration,e.programDateTime)),this.lastProgramDateTime)},targetduration(){!isFinite(n.duration)||n.duration<0?this.trigger("warn",{message:"ignoring invalid target duration: "+n.duration}):(this.manifest.targetDuration=n.duration,E.call(this,this.manifest))},start(){n.attributes&&!isNaN(n.attributes["TIME-OFFSET"])?this.manifest.start={timeOffset:n.attributes["TIME-OFFSET"],precise:n.attributes.PRECISE}:this.trigger("warn",{message:"ignoring start declaration without appropriate attribute list"})},"cue-out"(){u.cueOut=n.data},"cue-out-cont"(){u.cueOutCont=n.data},"cue-in"(){u.cueIn=n.data},skip(){this.manifest.skip=d(n.attributes),this.warnOnMissingAttributes_("#EXT-X-SKIP",n.attributes,["SKIPPED-SEGMENTS"])},part(){o=!0;const t=this.manifest.segments.length,e=d(n.attributes);u.parts=u.parts||[],u.parts.push(e),e.byterange&&(e.byterange.hasOwnProperty("offset")||(e.byterange.offset=f),f=e.byterange.offset+e.byterange.length);const i=u.parts.length-1;this.warnOnMissingAttributes_(`#EXT-X-PART #${i} for segment #${t}`,n.attributes,["URI","DURATION"]),this.manifest.renditionReports&&this.manifest.renditionReports.forEach(((t,e)=>{t.hasOwnProperty("lastPart")||this.trigger("warn",{message:`#EXT-X-RENDITION-REPORT #${e} lacks required attribute(s): LAST-PART`})}))},"server-control"(){const t=this.manifest.serverControl=d(n.attributes);t.hasOwnProperty("canBlockReload")||(t.canBlockReload=!1,this.trigger("info",{message:"#EXT-X-SERVER-CONTROL defaulting CAN-BLOCK-RELOAD to false"})),E.call(this,this.manifest),t.canSkipDateranges&&!t.hasOwnProperty("canSkipUntil")&&this.trigger("warn",{message:"#EXT-X-SERVER-CONTROL lacks required attribute CAN-SKIP-UNTIL which is required when CAN-SKIP-DATERANGES is set"})},"preload-hint"(){const t=this.manifest.segments.length,e=d(n.attributes),i=e.type&&"PART"===e.type;u.preloadHints=u.preloadHints||[],u.preloadHints.push(e),e.byterange&&(e.byterange.hasOwnProperty("offset")||(e.byterange.offset=i?f:0,i&&(f=e.byterange.offset+e.byterange.length)));const a=u.preloadHints.length-1;if(this.warnOnMissingAttributes_(`#EXT-X-PRELOAD-HINT #${a} for segment #${t}`,n.attributes,["TYPE","URI"]),e.type)for(let s=0;st.id===e.id));this.manifest.dateRanges[t]=(0,s.A)(this.manifest.dateRanges[t],e),m[e.id]=(0,s.A)(m[e.id],e),this.manifest.dateRanges.pop()}else m[e.id]=e},"independent-segments"(){this.manifest.independentSegments=!0},"content-steering"(){this.manifest.contentSteering=d(n.attributes),this.warnOnMissingAttributes_("#EXT-X-CONTENT-STEERING",n.attributes,["SERVER-URI"])}}[n.tagType]||g).call(t)},uri(){u.uri=n.uri,e.push(u),this.manifest.targetDuration&&!("duration"in u)&&(this.trigger("warn",{message:"defaulting segment duration to the target duration"}),u.duration=this.manifest.targetDuration),a&&(u.key=a),u.timeline=p,i&&(u.map=i),f=0,null!==this.lastProgramDateTime&&(u.programDateTime=this.lastProgramDateTime,this.lastProgramDateTime+=1e3*u.duration),u={}},comment(){},custom(){n.segment?(u.custom=u.custom||{},u.custom[n.customType]=n.data):(this.manifest.custom=this.manifest.custom||{},this.manifest.custom[n.customType]=n.data)}})[n.type].call(t)}))}warnOnMissingAttributes_(t,e,i){const a=[];i.forEach((function(t){e.hasOwnProperty(t)||a.push(t)})),a.length&&this.trigger("warn",{message:`${t} lacks required attribute(s): ${a.join(", ")}`})}push(t){this.lineStream.push(t)}end(){this.lineStream.push("\n"),this.manifest.dateRanges.length&&null===this.lastProgramDateTime&&this.trigger("warn",{message:"A playlist with EXT-X-DATERANGE tag must contain atleast one EXT-X-PROGRAM-DATE-TIME tag"}),this.lastProgramDateTime=null,this.trigger("end")}addParser(t){this.parseStream.addParser(t)}addTagMapper(t){this.parseStream.addTagMapper(t)}}}}]); \ No newline at end of file diff --git a/static/js/pnpm.m3u8-parser.9cd34530.chunk.js.LICENSE.txt b/static/js/pnpm.m3u8-parser.c71522df.chunk.js.LICENSE.txt similarity index 100% rename from static/js/pnpm.m3u8-parser.9cd34530.chunk.js.LICENSE.txt rename to static/js/pnpm.m3u8-parser.c71522df.chunk.js.LICENSE.txt diff --git a/static/js/pnpm.react-dom.ea8a7f93.js b/static/js/pnpm.react-dom.82ae3bb8.js similarity index 99% rename from static/js/pnpm.react-dom.ea8a7f93.js rename to static/js/pnpm.react-dom.82ae3bb8.js index 3a0de1d2..63f55724 100644 --- a/static/js/pnpm.react-dom.ea8a7f93.js +++ b/static/js/pnpm.react-dom.82ae3bb8.js @@ -1,2 +1,2 @@ -/*! For license information please see pnpm.react-dom.ea8a7f93.js.LICENSE.txt */ -"use strict";(self.webpackChunk_web_index=self.webpackChunk_web_index||[]).push([[784],{4191:(e,n,t)=>{var r=t(548),l=t(6182);function a(e){for(var n="https://reactjs.org/docs/error-decoder.html?invariant="+e,t=1;t